@lovrabet/lovrabet-cli 2.3.8-beta.7 → 2.3.8

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 (185) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/approval/index.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/device.js +1 -1
  14. package/lib/commands/auth/index.js +1 -1
  15. package/lib/commands/auth/prompt.js +1 -1
  16. package/lib/commands/bff/detail.js +1 -1
  17. package/lib/commands/bff/exec.js +1 -1
  18. package/lib/commands/bff/index.js +1 -1
  19. package/lib/commands/cli-skill/index.js +1 -1
  20. package/lib/commands/common/config-policy.js +1 -1
  21. package/lib/commands/common/constraints.js +1 -1
  22. package/lib/commands/common/flags.js +1 -1
  23. package/lib/commands/common/local-file.js +1 -1
  24. package/lib/commands/config/definitions.js +1 -1
  25. package/lib/commands/config/init.js +1 -1
  26. package/lib/commands/config/shared.js +1 -1
  27. package/lib/commands/data/import-excel.js +1 -1
  28. package/lib/commands/data/index.js +1 -1
  29. package/lib/commands/dataset/detail.js +1 -1
  30. package/lib/commands/dataset/index.js +1 -1
  31. package/lib/commands/dataset/list.js +1 -1
  32. package/lib/commands/dataset/sdk-doc.js +1 -1
  33. package/lib/commands/doctor.js +1 -1
  34. package/lib/commands/file/index.js +1 -1
  35. package/lib/commands/init.js +1 -1
  36. package/lib/commands/issue/context.js +1 -1
  37. package/lib/commands/issue/index.js +1 -1
  38. package/lib/commands/issue/report.js +1 -1
  39. package/lib/commands/kb/index.js +1 -1
  40. package/lib/commands/logs/index.js +1 -1
  41. package/lib/commands/notification/config-list.js +1 -1
  42. package/lib/commands/notification/index.js +1 -1
  43. package/lib/commands/notification/shared.js +1 -1
  44. package/lib/commands/ocr/index.js +1 -1
  45. package/lib/commands/permit/dataset-get.js +1 -1
  46. package/lib/commands/permit/dataset-set.js +1 -1
  47. package/lib/commands/permit/index.js +1 -1
  48. package/lib/commands/permit/page-get.js +1 -1
  49. package/lib/commands/permit/page-set.js +1 -1
  50. package/lib/commands/permit/role-menus-set.js +1 -1
  51. package/lib/commands/permit/role-menus.js +1 -1
  52. package/lib/commands/permit/shared.js +1 -1
  53. package/lib/commands/personal-bff/index.js +1 -1
  54. package/lib/commands/registry.js +1 -1
  55. package/lib/commands/role/create.js +1 -1
  56. package/lib/commands/role/delete.js +1 -1
  57. package/lib/commands/role/detail.js +1 -1
  58. package/lib/commands/role/index.js +1 -1
  59. package/lib/commands/role/list.js +1 -1
  60. package/lib/commands/role/shared.js +1 -1
  61. package/lib/commands/role/update.js +1 -1
  62. package/lib/commands/role/user-add.js +1 -1
  63. package/lib/commands/role/user-remove.js +1 -1
  64. package/lib/commands/schedule/index.js +1 -1
  65. package/lib/commands/schema.js +1 -1
  66. package/lib/commands/service/dynamic.js +1 -1
  67. package/lib/commands/service/function-name-adapter.js +1 -1
  68. package/lib/commands/service/index.js +1 -1
  69. package/lib/commands/service/registry.js +1 -1
  70. package/lib/commands/skill/commands/create.js +1 -1
  71. package/lib/commands/skill/commands/diagram.js +1 -1
  72. package/lib/commands/skill/commands/install.js +1 -1
  73. package/lib/commands/skill/commands/list.js +1 -1
  74. package/lib/commands/skill/commands/push.js +1 -1
  75. package/lib/commands/skill/commands/validate.js +1 -1
  76. package/lib/commands/skill/diagram.js +1 -1
  77. package/lib/commands/skill/flags.js +1 -1
  78. package/lib/commands/skill/index.js +1 -1
  79. package/lib/commands/skill/manifest-helpers.js +1 -1
  80. package/lib/commands/skill/push-execute.js +1 -1
  81. package/lib/commands/skill/push-flow-helpers.js +1 -1
  82. package/lib/commands/skill/push-retarget.js +1 -1
  83. package/lib/commands/skill/scopes.js +1 -1
  84. package/lib/commands/skill/summary.js +1 -1
  85. package/lib/commands/skill/templates.js +1 -1
  86. package/lib/commands/skill/validate.js +1 -1
  87. package/lib/commands/sql/detail.js +1 -1
  88. package/lib/commands/sql/exec.js +1 -1
  89. package/lib/commands/sql/index.js +1 -1
  90. package/lib/commands/update.js +1 -1
  91. package/lib/commands/user-account/bind.js +1 -1
  92. package/lib/commands/user-account/index.js +1 -1
  93. package/lib/commands/workspace/index.js +1 -1
  94. package/lib/config/domain-config.js +1 -1
  95. package/lib/config/schema.js +1 -1
  96. package/lib/constant/app.js +1 -1
  97. package/lib/constant/auth-mode.js +1 -1
  98. package/lib/constant/cli.js +1 -1
  99. package/lib/constant/defaults.js +1 -1
  100. package/lib/constant/distribution.js +1 -1
  101. package/lib/constant/domain.js +1 -1
  102. package/lib/constant/env.js +1 -1
  103. package/lib/constant/output.js +1 -1
  104. package/lib/constant/product.js +1 -1
  105. package/lib/constant/region.js +1 -1
  106. package/lib/constant/risk.js +1 -1
  107. package/lib/constant/url.js +1 -1
  108. package/lib/context.js +1 -1
  109. package/lib/core/api-client.js +1 -1
  110. package/lib/core/db-resolver.js +1 -1
  111. package/lib/core/kb-management-client.js +1 -1
  112. package/lib/core/kb-sdk-errors.js +1 -1
  113. package/lib/core/kb-search-client.js +1 -1
  114. package/lib/core/sdk-client.js +1 -1
  115. package/lib/errors.js +1 -1
  116. package/lib/framework/access-error.js +1 -1
  117. package/lib/framework/build-all-flags.js +1 -1
  118. package/lib/framework/dryrun.js +1 -1
  119. package/lib/framework/flags.js +1 -1
  120. package/lib/framework/help.js +1 -1
  121. package/lib/framework/index.js +1 -1
  122. package/lib/framework/output.js +1 -1
  123. package/lib/framework/preparse.js +1 -1
  124. package/lib/framework/rate-limit.js +1 -1
  125. package/lib/framework/raw-flags.js +1 -1
  126. package/lib/framework/response.js +1 -1
  127. package/lib/framework/runner-confirmation.js +1 -1
  128. package/lib/framework/runner-error.js +1 -1
  129. package/lib/framework/runner.js +1 -1
  130. package/lib/framework/schema-export.js +1 -1
  131. package/lib/framework/service-order.js +1 -1
  132. package/lib/framework/types.js +1 -1
  133. package/lib/generated/build-info.d.ts +4 -4
  134. package/lib/generated/build-info.js +1 -1
  135. package/lib/generated/official-routing.js +1 -1
  136. package/lib/generated/routing-contract.js +1 -1
  137. package/lib/help.js +1 -1
  138. package/lib/postinstall.js +1 -1
  139. package/lib/runtime/confirmation.js +1 -1
  140. package/lib/runtime/event.js +1 -1
  141. package/lib/runtime/index.js +1 -1
  142. package/lib/runtime/queue.js +1 -1
  143. package/lib/runtime/resolve.js +1 -1
  144. package/lib/services/dataset-import/auto-id-runner.js +1 -1
  145. package/lib/services/dataset-import/excel-reader.js +1 -1
  146. package/lib/services/dataset-import/image-bytes.js +1 -1
  147. package/lib/services/dataset-import/image-ooxml.js +1 -1
  148. package/lib/services/dataset-import/image-runner.js +1 -1
  149. package/lib/services/dataset-import/metadata.js +1 -1
  150. package/lib/services/dataset-import/preview.js +1 -1
  151. package/lib/services/dataset-import/runner.js +1 -1
  152. package/lib/skills/builtin-skill.js +1 -1
  153. package/lib/skills/npx-skills-add.js +1 -1
  154. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  155. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  156. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  157. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  158. package/lib/skills/runtime-skill-sync/links.js +1 -1
  159. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  160. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  161. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  162. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  163. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  164. package/lib/skills/runtime-skill-sync/push.js +1 -1
  165. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  166. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  167. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  168. package/lib/skills/runtime-skill-sync.js +1 -1
  169. package/lib/skills/skill-presence.js +1 -1
  170. package/lib/utils/access-key-redaction.js +1 -1
  171. package/lib/utils/apply-jq-filter.js +1 -1
  172. package/lib/utils/cli-version-check.js +1 -1
  173. package/lib/utils/cli-version-policy.js +1 -1
  174. package/lib/utils/logger.js +1 -1
  175. package/lib/utils/lossless-json.js +1 -1
  176. package/lib/utils/params.js +1 -1
  177. package/lib/utils/positive-safe-integer.js +1 -1
  178. package/lib/utils/redaction.js +1 -1
  179. package/lib/utils/runtime-user-id.js +1 -1
  180. package/lib/utils/update-notice.js +1 -1
  181. package/lib/utils/version.js +1 -1
  182. package/lib/utils/write-cli-side-channel.js +1 -1
  183. package/package.json +1 -1
  184. package/skills/lovrabet/SKILL.md +1 -1
  185. package/skills/lovrabet.manifest.json +3 -3
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- function a0_0x4dbe(){const _0x1478da=['validation','67148lGyWar','ERR_USE_AFTER_CLOSE','1222515HWIRVZ','message','./framework/preparse.js','log','25322055WNUmvN','exit','assign','57bZLWcn','Unexpected\x20error:','exitCode','ExitPromptError','6663330AKaXet','error','args','original','2522142DzbVuK','code','18jhnpfZ','definition','Error:\x20','cancelled','Hint:\x20',':\x20--','stderr','ERR_STREAM_DESTROYED','length','hint','268871ZaLNfM','defaultCommand','8aroVhd','flatMap','flags','doctor','2791831WIMoPu','name','input','help','write','6aqzMnO'];a0_0x4dbe=function(){return _0x1478da;};return a0_0x4dbe();}(function(_0xd88ef3,_0x21ce75){const _0x1a6e7c=a0_0x46da,_0x428882=_0xd88ef3();while(!![]){try{const _0x7cb558=parseInt(_0x1a6e7c(0xe3))/0x1*(-parseInt(_0x1a6e7c(0xee))/0x2)+-parseInt(_0x1a6e7c(0xf9))/0x3*(parseInt(_0x1a6e7c(0xf0))/0x4)+-parseInt(_0x1a6e7c(0xf2))/0x5*(parseInt(_0x1a6e7c(0xd9))/0x6)+parseInt(_0x1a6e7c(0xe9))/0x7*(-parseInt(_0x1a6e7c(0xe5))/0x8)+-parseInt(_0x1a6e7c(0xd7))/0x9+parseInt(_0x1a6e7c(0xd3))/0xa+parseInt(_0x1a6e7c(0xf6))/0xb;if(_0x7cb558===_0x21ce75)break;else _0x428882['push'](_0x428882['shift']());}catch(_0x215685){_0x428882['push'](_0x428882['shift']());}}}(a0_0x4dbe,0x69070));import{jsx as a0_0x29200a}from'react/jsx-runtime';import a0_0x52f8e0 from'meow';import{render}from'ink';import{Help}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{buildConfigFromFlags,initGlobalEnvironment}from'./context.js';import{isKnownService,getServiceEntry,findDefinition,getAllDefinitions,resolveRemovedCommand}from'./commands/registry.js';import{generateDynamicServiceHelp,resolveDynamicServiceCommand}from'./commands/service/dynamic.js';import{runCommand,createPipelineEnv}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{buildMeowFlags}from'./constant/cli.js';import{getCliVersionDisplay}from'./utils/version.js';const helpText=generateFullHelp(),cli=a0_0x52f8e0(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'version':getCliVersionDisplay()});function a0_0x46da(_0xf71d87,_0x53f80b){_0xf71d87=_0xf71d87-0xd0;const _0x4dbe25=a0_0x4dbe();let _0x46dace=_0x4dbe25[_0xf71d87];return _0x46dace;}void main()['catch'](handleError);async function main(){try{await run();}catch(_0x1240e8){handleError(_0x1240e8);}}async function run(){const _0x471ed6=a0_0x46da;let _0x2697c2=cli['input'][0x0],_0x5d3a9d=cli[_0x471ed6(0xeb)][0x1];const _0x2f86e8=cli[_0x471ed6(0xe7)];try{const {correctFlags:_0x3e0666}=await import(_0x471ed6(0xf4)),_0x101554=getAllDefinitions()[_0x471ed6(0xe6)](_0x46292c=>_0x46292c[_0x471ed6(0xe7)]??[]),{flags:_0xf2797a,corrections:_0x4c4746}=_0x3e0666(_0x2f86e8,_0x101554);if(_0x4c4746[_0x471ed6(0xe1)]>0x0){for(const _0x5d1da8 of _0x4c4746){process[_0x471ed6(0xdf)][_0x471ed6(0xed)]('[preparse]\x20'+_0x5d1da8['handler']+_0x471ed6(0xde)+_0x5d1da8[_0x471ed6(0xd6)]+'\x20->\x20--'+_0x5d1da8['corrected']+'\x0a');}Object[_0x471ed6(0xf8)](_0x2f86e8,_0xf2797a);}}catch{}if(!_0x2697c2){const {waitUntilExit:_0x4f81d0}=render(a0_0x29200a(Help,{}));await _0x4f81d0();return;}const _0x41ff15=resolveRemovedCommand(_0x2697c2,_0x5d3a9d);if(_0x41ff15)throw CliErrors[_0x471ed6(0xef)](_0x41ff15[_0x471ed6(0xf3)],_0x41ff15['hint']);if(!isKnownService(_0x2697c2)){const _0x1a3c5c=resolveDynamicServiceCommand(cli[_0x471ed6(0xeb)],_0x2f86e8);if(_0x1a3c5c){if(_0x2f86e8[_0x471ed6(0xec)]){console[_0x471ed6(0xf5)](generateCommandHelp(_0x1a3c5c['definition']));return;}Object[_0x471ed6(0xf8)](_0x2f86e8,_0x1a3c5c['flags']);const _0x235063=buildConfigFromFlags(_0x2f86e8);await initGlobalEnvironment(_0x235063);const _0x1c0cb5=createPipelineEnv(_0x235063,_0x2f86e8);_0x1c0cb5['args']=_0x1a3c5c['args'],await runCommand(_0x1a3c5c[_0x471ed6(0xda)],_0x1c0cb5);return;}if(_0x2f86e8['help']){const _0x1287b8=generateDynamicServiceHelp(_0x2697c2);if(_0x1287b8){console['log'](_0x1287b8);return;}}const {waitUntilExit:_0xc72e6c}=render(a0_0x29200a(Help,{}));await _0xc72e6c();return;}const _0x2d6cc4=getServiceEntry(_0x2697c2);if(!_0x5d3a9d){if(_0x2f86e8[_0x471ed6(0xec)]){console[_0x471ed6(0xf5)](generateServiceHelp(_0x2697c2));return;}if(_0x2d6cc4['defaultCommand'])_0x5d3a9d=_0x2d6cc4[_0x471ed6(0xe4)];else{console['log'](generateServiceHelp(_0x2697c2));return;}}const _0x3a61ef=findDefinition(_0x2697c2,_0x5d3a9d);!_0x3a61ef&&(console['log'](generateServiceHelp(_0x2697c2)),handleError(CliErrors['unknownCommand'](_0x2697c2+'\x20'+_0x5d3a9d)));if(_0x2f86e8[_0x471ed6(0xec)]){console[_0x471ed6(0xf5)](generateCommandHelp(_0x3a61ef));return;}const _0xcf69da=buildConfigFromFlags(_0x2f86e8);_0x2697c2!=='config'&&_0x2697c2!==_0x471ed6(0xe8)&&await initGlobalEnvironment(_0xcf69da);const _0x15c5f7=createPipelineEnv(_0xcf69da,_0x2f86e8);_0x15c5f7[_0x471ed6(0xd5)]=cli[_0x471ed6(0xeb)]['slice'](0x2),await runCommand(_0x3a61ef,_0x15c5f7);}function handleError(_0x12f6c8){const _0x11e9e5=a0_0x46da;if(_0x12f6c8 instanceof CliError){_0x12f6c8[_0x11e9e5(0xd8)]===_0x11e9e5(0xdc)&&(process[_0x11e9e5(0xdf)]['write']('\x0aCancelled.\x0a'),process[_0x11e9e5(0xf7)](0x0));console[_0x11e9e5(0xd4)](_0x11e9e5(0xdb)+_0x12f6c8[_0x11e9e5(0xf3)]);if(_0x12f6c8[_0x11e9e5(0xe2)])console[_0x11e9e5(0xd4)](_0x11e9e5(0xdd)+_0x12f6c8[_0x11e9e5(0xe2)]);process[_0x11e9e5(0xf7)](_0x12f6c8[_0x11e9e5(0xd1)]);}isUserCancellation(_0x12f6c8)&&(process[_0x11e9e5(0xdf)][_0x11e9e5(0xed)]('\x0aCancelled.\x0a'),process[_0x11e9e5(0xf7)](0x0)),console[_0x11e9e5(0xd4)](_0x11e9e5(0xd0),_0x12f6c8),process['exit'](0x1);}function isUserCancellation(_0x4583cb){const _0x429c26=a0_0x46da;if(!(_0x4583cb instanceof Error))return![];if(_0x4583cb[_0x429c26(0xea)]===_0x429c26(0xd2))return!![];if(_0x4583cb[_0x429c26(0xd8)]===_0x429c26(0xf1))return!![];if(_0x4583cb[_0x429c26(0xd8)]===_0x429c26(0xe0))return!![];return![];}
2
+ (function(_0x555474,_0x53d3e4){const _0x35864c=a0_0x142d,_0x59bcb0=_0x555474();while(!![]){try{const _0x5add3f=-parseInt(_0x35864c(0xe0))/0x1*(parseInt(_0x35864c(0xd3))/0x2)+-parseInt(_0x35864c(0xce))/0x3+parseInt(_0x35864c(0xb9))/0x4*(-parseInt(_0x35864c(0xbf))/0x5)+-parseInt(_0x35864c(0xb8))/0x6*(-parseInt(_0x35864c(0xb0))/0x7)+parseInt(_0x35864c(0xcd))/0x8*(parseInt(_0x35864c(0xcb))/0x9)+-parseInt(_0x35864c(0xb7))/0xa*(-parseInt(_0x35864c(0xd4))/0xb)+parseInt(_0x35864c(0xcc))/0xc;if(_0x5add3f===_0x53d3e4)break;else _0x59bcb0['push'](_0x59bcb0['shift']());}catch(_0x171958){_0x59bcb0['push'](_0x59bcb0['shift']());}}}(a0_0x5f46,0xcf6f7));import{jsx as a0_0x21d426}from'react/jsx-runtime';import a0_0x5b55ca from'meow';import{render}from'ink';import{Help}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{buildConfigFromFlags,initGlobalEnvironment}from'./context.js';import{isKnownService,getServiceEntry,findDefinition,getAllDefinitions,resolveRemovedCommand}from'./commands/registry.js';import{generateDynamicServiceHelp,resolveDynamicServiceCommand}from'./commands/service/dynamic.js';import{runCommand,createPipelineEnv}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{buildMeowFlags}from'./constant/cli.js';import{getCliVersionDisplay}from'./utils/version.js';const helpText=generateFullHelp(),cli=a0_0x5b55ca(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'version':getCliVersionDisplay()});void main()['catch'](handleError);function a0_0x142d(_0x1d80d8,_0x1a45dc){_0x1d80d8=_0x1d80d8-0xb0;const _0x5f4621=a0_0x5f46();let _0x142dc7=_0x5f4621[_0x1d80d8];return _0x142dc7;}async function main(){try{await run();}catch(_0x4cf869){handleError(_0x4cf869);}}function a0_0x5f46(){const _0x4c14bd=['exitCode','hint','assign','47017KQukUJ','7yjELJM','ERR_USE_AFTER_CLOSE','\x20->\x20--','ERR_STREAM_DESTROYED','write','./framework/preparse.js','message','30LIGYoJ','5392920UveLSL','256sXYeXk','flatMap','help','validation','input','error','48010AaDScp','original','length','handler','definition','name','unknownCommand','log','Hint:\x20','Error:\x20','stderr','args','22509lzbYVD','475152LaLhlJ','664FzKYdh','771375YEqBuO','doctor','flags','cancelled','config','20qmWWuJ','3833423AxKeqd','exit','defaultCommand','\x0aCancelled.\x0a',':\x20--','Unexpected\x20error:','[preparse]\x20','ExitPromptError','code'];a0_0x5f46=function(){return _0x4c14bd;};return a0_0x5f46();}async function run(){const _0x282b0b=a0_0x142d;let _0x1af662=cli['input'][0x0],_0x46508c=cli[_0x282b0b(0xbd)][0x1];const _0x13ca4c=cli[_0x282b0b(0xd0)];try{const {correctFlags:_0xcb1bc8}=await import(_0x282b0b(0xb5)),_0x595f9f=getAllDefinitions()[_0x282b0b(0xba)](_0x5ed13f=>_0x5ed13f['flags']??[]),{flags:_0xc5b345,corrections:_0x5d1ae8}=_0xcb1bc8(_0x13ca4c,_0x595f9f);if(_0x5d1ae8[_0x282b0b(0xc1)]>0x0){for(const _0xce4627 of _0x5d1ae8){process[_0x282b0b(0xc9)][_0x282b0b(0xb4)](_0x282b0b(0xda)+_0xce4627[_0x282b0b(0xc2)]+_0x282b0b(0xd8)+_0xce4627[_0x282b0b(0xc0)]+_0x282b0b(0xb2)+_0xce4627['corrected']+'\x0a');}Object[_0x282b0b(0xdf)](_0x13ca4c,_0xc5b345);}}catch{}if(!_0x1af662){const {waitUntilExit:_0x5cd497}=render(a0_0x21d426(Help,{}));await _0x5cd497();return;}const _0x256f3b=resolveRemovedCommand(_0x1af662,_0x46508c);if(_0x256f3b)throw CliErrors[_0x282b0b(0xbc)](_0x256f3b[_0x282b0b(0xb6)],_0x256f3b[_0x282b0b(0xde)]);if(!isKnownService(_0x1af662)){const _0x3e9507=resolveDynamicServiceCommand(cli['input'],_0x13ca4c);if(_0x3e9507){if(_0x13ca4c[_0x282b0b(0xbb)]){console['log'](generateCommandHelp(_0x3e9507[_0x282b0b(0xc3)]));return;}Object[_0x282b0b(0xdf)](_0x13ca4c,_0x3e9507[_0x282b0b(0xd0)]);const _0x2781b9=buildConfigFromFlags(_0x13ca4c);await initGlobalEnvironment(_0x2781b9);const _0x254a40=createPipelineEnv(_0x2781b9,_0x13ca4c);_0x254a40['args']=_0x3e9507['args'],await runCommand(_0x3e9507[_0x282b0b(0xc3)],_0x254a40);return;}if(_0x13ca4c[_0x282b0b(0xbb)]){const _0x23faa4=generateDynamicServiceHelp(_0x1af662);if(_0x23faa4){console['log'](_0x23faa4);return;}}const {waitUntilExit:_0x1cd89e}=render(a0_0x21d426(Help,{}));await _0x1cd89e();return;}const _0x5bb4ea=getServiceEntry(_0x1af662);if(!_0x46508c){if(_0x13ca4c['help']){console[_0x282b0b(0xc6)](generateServiceHelp(_0x1af662));return;}if(_0x5bb4ea[_0x282b0b(0xd6)])_0x46508c=_0x5bb4ea[_0x282b0b(0xd6)];else{console[_0x282b0b(0xc6)](generateServiceHelp(_0x1af662));return;}}const _0x35c1cb=findDefinition(_0x1af662,_0x46508c);!_0x35c1cb&&(console[_0x282b0b(0xc6)](generateServiceHelp(_0x1af662)),handleError(CliErrors[_0x282b0b(0xc5)](_0x1af662+'\x20'+_0x46508c)));if(_0x13ca4c[_0x282b0b(0xbb)]){console[_0x282b0b(0xc6)](generateCommandHelp(_0x35c1cb));return;}const _0xc54aa4=buildConfigFromFlags(_0x13ca4c);_0x1af662!==_0x282b0b(0xd2)&&_0x1af662!==_0x282b0b(0xcf)&&await initGlobalEnvironment(_0xc54aa4);const _0xeb736c=createPipelineEnv(_0xc54aa4,_0x13ca4c);_0xeb736c[_0x282b0b(0xca)]=cli[_0x282b0b(0xbd)]['slice'](0x2),await runCommand(_0x35c1cb,_0xeb736c);}function handleError(_0x29b879){const _0x45aa65=a0_0x142d;if(_0x29b879 instanceof CliError){_0x29b879[_0x45aa65(0xdc)]===_0x45aa65(0xd1)&&(process[_0x45aa65(0xc9)]['write']('\x0aCancelled.\x0a'),process[_0x45aa65(0xd5)](0x0));console['error'](_0x45aa65(0xc8)+_0x29b879['message']);if(_0x29b879['hint'])console['error'](_0x45aa65(0xc7)+_0x29b879[_0x45aa65(0xde)]);process[_0x45aa65(0xd5)](_0x29b879[_0x45aa65(0xdd)]);}isUserCancellation(_0x29b879)&&(process['stderr'][_0x45aa65(0xb4)](_0x45aa65(0xd7)),process[_0x45aa65(0xd5)](0x0)),console[_0x45aa65(0xbe)](_0x45aa65(0xd9),_0x29b879),process[_0x45aa65(0xd5)](0x1);}function isUserCancellation(_0x58c095){const _0x2c90d7=a0_0x142d;if(!(_0x58c095 instanceof Error))return![];if(_0x58c095[_0x2c90d7(0xc4)]===_0x2c90d7(0xdb))return!![];if(_0x58c095[_0x2c90d7(0xdc)]===_0x2c90d7(0xb1))return!![];if(_0x58c095[_0x2c90d7(0xdc)]===_0x2c90d7(0xb3))return!![];return![];}
@@ -1 +1 @@
1
- const a1_0x426fe=a1_0x4570;(function(_0xc7f9d6,_0xd8511e){const _0x5b473c=a1_0x4570,_0x228921=_0xc7f9d6();while(!![]){try{const _0x525472=parseInt(_0x5b473c(0x15d))/0x1*(parseInt(_0x5b473c(0x176))/0x2)+-parseInt(_0x5b473c(0x1a6))/0x3+parseInt(_0x5b473c(0x1bf))/0x4+parseInt(_0x5b473c(0x198))/0x5+parseInt(_0x5b473c(0x1b6))/0x6+-parseInt(_0x5b473c(0x1af))/0x7*(-parseInt(_0x5b473c(0x173))/0x8)+-parseInt(_0x5b473c(0x1b2))/0x9;if(_0x525472===_0xd8511e)break;else _0x228921['push'](_0x228921['shift']());}catch(_0x300cab){_0x228921['push'](_0x228921['shift']());}}}(a1_0x43b2,0x4aaa5));import{CliErrors}from'../../errors.js';function a1_0x4570(_0x59e9ee,_0x256702){_0x59e9ee=_0x59e9ee-0x15b;const _0x43b25e=a1_0x43b2();let _0x457023=_0x43b25e[_0x59e9ee];return _0x457023;}const CATEGORY_FLAG={'name':a1_0x426fe(0x1a7),'type':a1_0x426fe(0x180),'description':a1_0x426fe(0x181)},KEYWORD_FLAG={'name':a1_0x426fe(0x1b8),'type':'string','description':a1_0x426fe(0x1ae)},DOC_CODE_FLAG={'name':'code','type':a1_0x426fe(0x180),'required':!![],'description':'API\x20doc\x20code,\x20for\x20example\x20dataset_list'},DOCS=[{'code':a1_0x426fe(0x1d8),'category':a1_0x426fe(0x1bc),'title':a1_0x426fe(0x1a4),'method':a1_0x426fe(0x1a2),'path':a1_0x426fe(0x195),'summary':a1_0x426fe(0x160),'whenToUse':a1_0x426fe(0x194),'pathParams':[],'queryParams':[],'bodySchema':'{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','responseHighlights':[a1_0x426fe(0x1c2),'paging.totalCount\x20gives\x20total\x20rows'],'examples':[a1_0x426fe(0x17f)],'notes':[a1_0x426fe(0x162)],'markdown':[a1_0x426fe(0x19a),'',a1_0x426fe(0x18f)]['join']('\x0a')},{'code':'dataset_detail','category':a1_0x426fe(0x1bc),'title':a1_0x426fe(0x1c7),'method':a1_0x426fe(0x1b0),'path':a1_0x426fe(0x167),'summary':'Get\x20dataset\x20detail','whenToUse':a1_0x426fe(0x1a0),'pathParams':[],'queryParams':[{'name':a1_0x426fe(0x19b),'description':a1_0x426fe(0x182)}],'bodySchema':a1_0x426fe(0x1b1),'responseHighlights':[a1_0x426fe(0x1a3),'relations\x20contains\x20the\x20object-shaped\x20API\x20relations\x20value\x20when\x20returned',a1_0x426fe(0x178)],'examples':['lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>'],'notes':[a1_0x426fe(0x1d3)],'markdown':[a1_0x426fe(0x1a8),'',a1_0x426fe(0x17a)]['join']('\x0a')},{'code':a1_0x426fe(0x16e),'category':a1_0x426fe(0x1bc),'title':'Filter\x20dataset\x20data','method':a1_0x426fe(0x1a2),'path':a1_0x426fe(0x16b),'summary':a1_0x426fe(0x1a9),'whenToUse':a1_0x426fe(0x1ad),'pathParams':[{'name':a1_0x426fe(0x1bb),'description':'Current\x20app\x20code'},{'name':'datasetCode','description':a1_0x426fe(0x182)}],'queryParams':[],'bodySchema':'{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','responseHighlights':[a1_0x426fe(0x1aa),'paging\x20contains\x20pagination'],'examples':[a1_0x426fe(0x1cd),a1_0x426fe(0x16d)],'notes':['where,\x20select,\x20orderBy,\x20currentPage,\x20and\x20pageSize\x20belong\x20inside\x20one\x20--params\x20JSON\x20object;\x20they\x20are\x20not\x20standalone\x20CLI\x20flags.',a1_0x426fe(0x18e),a1_0x426fe(0x188),a1_0x426fe(0x1b4)],'markdown':['##\x20Filter\x20dataset\x20data','',a1_0x426fe(0x15e)][a1_0x426fe(0x18a)]('\x0a')},{'code':a1_0x426fe(0x1cc),'category':a1_0x426fe(0x1bc),'title':a1_0x426fe(0x1c3),'method':a1_0x426fe(0x1a2),'path':a1_0x426fe(0x172),'summary':a1_0x426fe(0x1ac),'whenToUse':a1_0x426fe(0x18c),'pathParams':[{'name':a1_0x426fe(0x1bb),'description':'Current\x20app\x20code'},{'name':a1_0x426fe(0x19f),'description':a1_0x426fe(0x182)}],'queryParams':[],'bodySchema':a1_0x426fe(0x15f),'responseHighlights':['result\x20rows\x20contain\x20aggregate\x20aliases','where\x20filters\x20before\x20aggregation'],'examples':[a1_0x426fe(0x19c)],'notes':[a1_0x426fe(0x1d1),a1_0x426fe(0x187)],'markdown':[a1_0x426fe(0x1d5),'',a1_0x426fe(0x16f)][a1_0x426fe(0x18a)]('\x0a')},{'code':a1_0x426fe(0x1b9),'category':'dataset','title':a1_0x426fe(0x1c8),'method':a1_0x426fe(0x1a2),'path':a1_0x426fe(0x184),'summary':a1_0x426fe(0x1c8),'whenToUse':a1_0x426fe(0x17c),'pathParams':[{'name':a1_0x426fe(0x1bb),'description':a1_0x426fe(0x16a)},{'name':a1_0x426fe(0x19f),'description':a1_0x426fe(0x182)}],'queryParams':[],'bodySchema':a1_0x426fe(0x1b7),'responseHighlights':[a1_0x426fe(0x15c)],'examples':[a1_0x426fe(0x183)],'notes':[a1_0x426fe(0x1a1)],'markdown':a1_0x426fe(0x199)},{'code':'dataset_data_create','category':a1_0x426fe(0x1bc),'title':'Create\x20dataset\x20record','method':a1_0x426fe(0x1a2),'path':a1_0x426fe(0x1d6),'summary':a1_0x426fe(0x186),'whenToUse':a1_0x426fe(0x161),'pathParams':[{'name':'appCode','description':a1_0x426fe(0x16a)},{'name':a1_0x426fe(0x19f),'description':a1_0x426fe(0x182)}],'queryParams':[],'bodySchema':'{\x22fieldName\x22:\x22value\x22}','responseHighlights':[a1_0x426fe(0x197)],'examples':['lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27'],'notes':[a1_0x426fe(0x17d)],'markdown':'##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.'},{'code':a1_0x426fe(0x1c4),'category':'bf','title':'Get\x20BF\x20endpoint\x20function\x20contract','method':a1_0x426fe(0x1b0),'path':'/client/bff/endpoint/{appCode}/{functionName}','summary':a1_0x426fe(0x1cf),'whenToUse':a1_0x426fe(0x1d4),'pathParams':[{'name':a1_0x426fe(0x1bb),'description':a1_0x426fe(0x16a)},{'name':'functionName','description':'Exact\x20endpoint\x20function\x20name'}],'queryParams':[],'bodySchema':'None','responseHighlights':[a1_0x426fe(0x196)],'examples':[a1_0x426fe(0x1d2)],'notes':[a1_0x426fe(0x1ce)],'markdown':a1_0x426fe(0x1c5)},{'code':'bf_execute','category':'bf','title':a1_0x426fe(0x1d7),'method':a1_0x426fe(0x1a2),'path':'/api/endpoint/{appCode}/{functionName}','summary':a1_0x426fe(0x190),'whenToUse':a1_0x426fe(0x185),'pathParams':[{'name':a1_0x426fe(0x1bb),'description':a1_0x426fe(0x16a)},{'name':a1_0x426fe(0x18b),'description':a1_0x426fe(0x1a5)}],'queryParams':[],'bodySchema':a1_0x426fe(0x193),'responseHighlights':[a1_0x426fe(0x174)],'examples':['lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27'],'notes':['Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.'],'markdown':a1_0x426fe(0x1cb)},{'code':a1_0x426fe(0x1c1),'category':'bf','title':'Execute\x20Personal\x20Backend\x20Function','method':'POST','path':'/api/runtime-bff/personal/{id}/execute','summary':a1_0x426fe(0x15b),'whenToUse':a1_0x426fe(0x179),'pathParams':[{'name':'id','description':'Personal\x20Backend\x20Function\x20script\x20ID,\x20for\x20example\x20123'}],'queryParams':[{'name':a1_0x426fe(0x1bb),'description':a1_0x426fe(0x16a)}],'bodySchema':a1_0x426fe(0x193),'responseHighlights':[a1_0x426fe(0x174)],'examples':[a1_0x426fe(0x1be)],'notes':[a1_0x426fe(0x1d0),a1_0x426fe(0x169)],'markdown':['##\x20Execute\x20Personal\x20Backend\x20Function','',a1_0x426fe(0x171)][a1_0x426fe(0x18a)]('\x0a')},{'code':a1_0x426fe(0x1b3),'category':a1_0x426fe(0x1ca),'title':a1_0x426fe(0x192),'method':a1_0x426fe(0x1a2),'path':'/api/custom/executeSql','summary':a1_0x426fe(0x192),'whenToUse':'Use\x20when\x20the\x20target\x20sqlCode\x20exists\x20and\x20you\x20need\x20to\x20execute\x20that\x20custom\x20SQL','pathParams':[],'queryParams':[],'bodySchema':'{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','responseHighlights':[a1_0x426fe(0x166)],'examples':[a1_0x426fe(0x164)],'notes':[a1_0x426fe(0x19d)],'markdown':'##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.'}];function entrySummary(_0x64d251){const _0x8ffe1f=a1_0x426fe;return{'code':_0x64d251[_0x8ffe1f(0x19b)],'category':_0x64d251[_0x8ffe1f(0x1a7)],'method':_0x64d251[_0x8ffe1f(0x175)],'path':_0x64d251[_0x8ffe1f(0x1ba)],'summary':_0x64d251[_0x8ffe1f(0x191)],'whenToUse':_0x64d251['whenToUse']};}export function listApiDocEntries(_0x45a018={}){const _0x198cba=a1_0x426fe,_0x48ac19=String(_0x45a018['category']||'')[_0x198cba(0x1c9)](),_0x28ba1b=String(_0x45a018['keyword']||'')[_0x198cba(0x1c9)]()['toLowerCase']();return DOCS[_0x198cba(0x19e)](_0x24d613=>{const _0x3b7435=_0x198cba;if(_0x48ac19&&_0x24d613[_0x3b7435(0x1a7)]!==_0x48ac19)return![];if(!_0x28ba1b)return!![];return[_0x24d613['code'],_0x24d613['category'],_0x24d613[_0x3b7435(0x175)],_0x24d613[_0x3b7435(0x1ba)],_0x24d613[_0x3b7435(0x191)],_0x24d613[_0x3b7435(0x17b)],_0x24d613[_0x3b7435(0x17e)]]['join']('\x20')[_0x3b7435(0x1ab)]()[_0x3b7435(0x16c)](_0x28ba1b);})[_0x198cba(0x177)](entrySummary);}export function getApiDocDetail(_0xb09944){const _0x47108f=a1_0x426fe,_0x3e18c3=DOCS[_0x47108f(0x1c6)](_0x3273a4=>_0x3273a4[_0x47108f(0x19b)]===_0xb09944);if(!_0x3e18c3)throw CliErrors[_0x47108f(0x163)](_0x47108f(0x1b5)+_0xb09944);return{..._0x3e18c3};}function a1_0x43b2(){const _0x47ec7=['Get\x20one\x20dataset\x20record','trim','custom_sql','##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.','dataset_data_aggregate','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22orderBy\x22:[{\x22id\x22:\x22asc\x22}],\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','This\x20is\x20an\x20exact\x20lookup\x20by\x20appCode\x20+\x20functionName.\x20The\x20CLI\x20does\x20not\x20enumerate\x20Backend\x20Function\x20definitions\x20or\x20expose\x20platform-only\x20fields.','Get\x20a\x20BF\x20endpoint\x20contract\x20by\x20app\x20and\x20function\x20name','Personal\x20BFF\x20scripts\x20are\x20user-owned\x20and\x20scoped\x20per\x20app.','Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.','lovrabet\x20bff\x20detail\x20--name\x20<functionName>','If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.','Use\x20when\x20the\x20function\x20name\x20is\x20already\x20confirmed\x20and\x20you\x20need\x20that\x20ENDPOINT\x27s\x20runtime\x20metadata','##\x20Aggregate\x20dataset\x20data','/api/{appCode}/{datasetCode}/create','Execute\x20BF\x20endpoint\x20function','dataset_list','Execute\x20a\x20Personal\x20Backend\x20Function\x20by\x20script\x20ID','Returns\x20one\x20matching\x20business\x20record','233353RFAemm','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.','{\x22aggregate\x22:[{\x22column\x22:\x20\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','List\x20datasets\x20with\x20pagination','Use\x20when\x20you\x20need\x20to\x20insert\x20one\x20business\x20record\x20into\x20a\x20dataset','CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.','validation','lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27','Show\x20runtime\x20API\x20documentation\x20by\x20code','Returns\x20SQL\x20execution\x20payload','/api/dataset/getOneByCode?code={datasetCode}','str','Function\x20execution\x20may\x20have\x20business\x20side\x20effects;\x20inspect\x20detail\x20before\x20execution.','Current\x20app\x20code','/api/{appCode}/{datasetCode}/filter','includes','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22orderBy\x22:[{\x22id\x22:\x22asc\x22}],\x22currentPage\x22:2,\x22pageSize\x22:20}\x27','dataset_data_filter','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.','read','Execute\x20a\x20known\x20Personal\x20Backend\x20Function\x20script\x20through\x20its\x20runtime\x20execute\x20endpoint.','/api/{appCode}/{datasetCode}/aggregate','24VXLeqU','Returns\x20script\x20business\x20payload','method','2cDhMui','map','operations\x20describes\x20runtime\x20APIs','Use\x20when\x20the\x20target\x20Personal\x20BFF\x20script\x20id\x20is\x20confirmed\x20under\x20the\x20current\x20user\x20and\x20you\x20need\x20to\x20execute\x20that\x20personal\x20script\x20with\x20optional\x20JSON\x20params','Inspect\x20field\x20names,\x20relations,\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.','whenToUse','Use\x20when\x20you\x20already\x20know\x20the\x20record\x20id\x20and\x20need\x20one\x20business\x20row\x20from\x20a\x20dataset','This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.','title','lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress','string','Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset','32-character\x20dataset\x20code','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27','/api/{appCode}/{datasetCode}/getOne','Use\x20when\x20the\x20target\x20BF\x20functionName\x20is\x20confirmed\x20and\x20you\x20need\x20to\x20call\x20that\x20ENDPOINT','Create\x20a\x20dataset\x20record','`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','Verify\x20tableData\x20and\x20paging\x20before\x20treating\x20the\x20response\x20as\x20a\x20business\x20fact.','length','join','functionName','Use\x20when\x20you\x20need\x20groupBy\x20plus\x20count,\x20sum,\x20avg,\x20max,\x20or\x20min\x20aggregates','List\x20available\x20runtime\x20API\x20documentation\x20entries','For\x20the\x20next\x20page,\x20keep\x20where/select/orderBy/pageSize\x20unchanged\x20and\x20increment\x20only\x20currentPage,\x20which\x20starts\x20at\x201.','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.','Execute\x20a\x20BF\x20endpoint\x20function','summary','Execute\x20custom\x20SQL','{\x22param\x22:\x22value\x22}','Use\x20when\x20you\x20need\x20a\x20paginated\x20runtime\x20dataset\x20list\x20by\x20appCode\x20and\x20want\x20to\x20collect\x20available\x20datasetCode\x20values','/api/dataset/get-dataset-list-by-app-code','CLI\x20returns\x20appCode/functionName/description/version/gmtModified','Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result','1002520AsIMCK','##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.','##\x20List\x20datasets','code','lovrabet\x20data\x20aggregate\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}]}\x27','Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.','filter','datasetCode','Use\x20when\x20you\x20need\x20fields,\x20table\x20info,\x20relations,\x20or\x20operation\x20definitions\x20for\x20a\x20dataset\x20code','Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.','POST','fields/properties\x20describe\x20data\x20shape','List\x20datasets','Endpoint\x20function\x20name','371493RYhYqk','category','##\x20Dataset\x20detail','Filter\x20dataset\x20records','tableData\x20contains\x20records','toLowerCase','Aggregate\x20dataset\x20records','Use\x20when\x20you\x20need\x20to\x20read\x20business\x20data\x20with\x20where,\x20orderBy,\x20pagination,\x20or\x20similar\x20filters','Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text','469987oONVzb','GET','None','8232687JpEmMv','custom_sql_execute','Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.','API\x20doc\x20code\x20not\x20found:\x20','2901888FpZldn','{\x22id\x22:123}','keyword','dataset_data_get_one','path','appCode','dataset','list','lovrabet\x20personal-bff\x20exec\x20--id\x20<id>\x20--params\x20\x27{}\x27','901900VUrpok','api-doc','personal_bf_execute','tableData\x20contains\x20dataset\x20id/code/name','Aggregate\x20dataset\x20data','bf_detail','##\x20Get\x20BF\x20endpoint\x20function\x20contract\x0a\x0aInspect\x20one\x20known\x20endpoint\x20function\x20through\x20the\x20AK-authenticated\x20exact\x20detail\x20API.','find','Dataset\x20detail'];a1_0x43b2=function(){return _0x47ec7;};return a1_0x43b2();}const apiDocList={'service':a1_0x426fe(0x1c0),'command':a1_0x426fe(0x1bd),'description':a1_0x426fe(0x18d),'risk':a1_0x426fe(0x170),'requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0x38361f){const _0x47813a=a1_0x426fe,_0x33d433=listApiDocEntries({'category':_0x38361f[_0x47813a(0x168)]('category'),'keyword':_0x38361f[_0x47813a(0x168)](_0x47813a(0x1b8))});return{'ok':!![],'data':{'total':_0x33d433[_0x47813a(0x189)],'items':_0x33d433}};}},apiDocDetail={'service':a1_0x426fe(0x1c0),'command':'detail','description':a1_0x426fe(0x165),'risk':'read','requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0xf81635){const _0x1b7998=a1_0x426fe;return{'ok':!![],'data':getApiDocDetail(_0xf81635[_0x1b7998(0x168)](_0x1b7998(0x19b)))};}};export const apiDocDefinitions=[apiDocList,apiDocDetail];
1
+ const a1_0x3875a7=a1_0x3542;(function(_0x5b9408,_0xa934){const _0x4db471=a1_0x3542,_0x3d6ef1=_0x5b9408();while(!![]){try{const _0x5999b1=-parseInt(_0x4db471(0x178))/0x1+-parseInt(_0x4db471(0x1eb))/0x2*(-parseInt(_0x4db471(0x1e2))/0x3)+-parseInt(_0x4db471(0x1e8))/0x4*(-parseInt(_0x4db471(0x1d5))/0x5)+parseInt(_0x4db471(0x1f1))/0x6*(-parseInt(_0x4db471(0x1b7))/0x7)+parseInt(_0x4db471(0x1bf))/0x8*(parseInt(_0x4db471(0x1a6))/0x9)+parseInt(_0x4db471(0x1b9))/0xa*(parseInt(_0x4db471(0x18c))/0xb)+parseInt(_0x4db471(0x17f))/0xc*(parseInt(_0x4db471(0x1c5))/0xd);if(_0x5999b1===_0xa934)break;else _0x3d6ef1['push'](_0x3d6ef1['shift']());}catch(_0x5210a6){_0x3d6ef1['push'](_0x3d6ef1['shift']());}}}(a1_0x1061,0x35f0f));import{CliErrors}from'../../errors.js';const CATEGORY_FLAG={'name':a1_0x3875a7(0x17d),'type':'string','description':a1_0x3875a7(0x179)},KEYWORD_FLAG={'name':a1_0x3875a7(0x1d7),'type':'string','description':a1_0x3875a7(0x1dc)},DOC_CODE_FLAG={'name':a1_0x3875a7(0x1f2),'type':'string','required':!![],'description':a1_0x3875a7(0x199)},DOCS=[{'code':a1_0x3875a7(0x180),'category':a1_0x3875a7(0x187),'title':a1_0x3875a7(0x19e),'method':a1_0x3875a7(0x1a3),'path':a1_0x3875a7(0x1de),'summary':'List\x20datasets\x20with\x20pagination','whenToUse':'Use\x20when\x20you\x20need\x20a\x20paginated\x20runtime\x20dataset\x20list\x20by\x20appCode\x20and\x20want\x20to\x20collect\x20available\x20datasetCode\x20values','pathParams':[],'queryParams':[],'bodySchema':a1_0x3875a7(0x1da),'responseHighlights':[a1_0x3875a7(0x1e9),'paging.totalCount\x20gives\x20total\x20rows'],'examples':[a1_0x3875a7(0x196)],'notes':[a1_0x3875a7(0x1c4)],'markdown':[a1_0x3875a7(0x1d6),'',a1_0x3875a7(0x1b8)][a1_0x3875a7(0x1e1)]('\x0a')},{'code':a1_0x3875a7(0x19d),'category':'dataset','title':a1_0x3875a7(0x1f7),'method':a1_0x3875a7(0x1b0),'path':'/api/dataset/getOneByCode?code={datasetCode}','summary':'Get\x20dataset\x20detail','whenToUse':a1_0x3875a7(0x1bd),'pathParams':[],'queryParams':[{'name':a1_0x3875a7(0x1f2),'description':'32-character\x20dataset\x20code'}],'bodySchema':a1_0x3875a7(0x1c3),'responseHighlights':['fields/properties\x20describe\x20data\x20shape',a1_0x3875a7(0x1a4),a1_0x3875a7(0x192)],'examples':['lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>'],'notes':[a1_0x3875a7(0x1fe)],'markdown':['##\x20Dataset\x20detail','','Inspect\x20field\x20names,\x20relations,\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.'][a1_0x3875a7(0x1e1)]('\x0a')},{'code':a1_0x3875a7(0x17a),'category':a1_0x3875a7(0x187),'title':'Filter\x20dataset\x20data','method':a1_0x3875a7(0x1a3),'path':a1_0x3875a7(0x1df),'summary':a1_0x3875a7(0x1dd),'whenToUse':a1_0x3875a7(0x1ca),'pathParams':[{'name':a1_0x3875a7(0x200),'description':a1_0x3875a7(0x1b2)},{'name':a1_0x3875a7(0x17e),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':'{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','responseHighlights':['tableData\x20contains\x20records',a1_0x3875a7(0x18e)],'examples':[a1_0x3875a7(0x1ab),a1_0x3875a7(0x1ed)],'notes':[a1_0x3875a7(0x1a2),'For\x20the\x20next\x20page,\x20keep\x20where/select/orderBy/pageSize\x20unchanged\x20and\x20increment\x20only\x20currentPage,\x20which\x20starts\x20at\x201.',a1_0x3875a7(0x182),a1_0x3875a7(0x1cc)],'markdown':[a1_0x3875a7(0x1d0),'',a1_0x3875a7(0x190)]['join']('\x0a')},{'code':'dataset_data_aggregate','category':'dataset','title':a1_0x3875a7(0x1ac),'method':a1_0x3875a7(0x1a3),'path':a1_0x3875a7(0x1fa),'summary':a1_0x3875a7(0x185),'whenToUse':a1_0x3875a7(0x1c6),'pathParams':[{'name':a1_0x3875a7(0x200),'description':a1_0x3875a7(0x1b2)},{'name':a1_0x3875a7(0x17e),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':a1_0x3875a7(0x19f),'responseHighlights':[a1_0x3875a7(0x1fc),a1_0x3875a7(0x186)],'examples':[a1_0x3875a7(0x1c0)],'notes':[a1_0x3875a7(0x1a9),'`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.'],'markdown':[a1_0x3875a7(0x18d),'',a1_0x3875a7(0x1b6)]['join']('\x0a')},{'code':a1_0x3875a7(0x1f5),'category':a1_0x3875a7(0x187),'title':a1_0x3875a7(0x1b4),'method':a1_0x3875a7(0x1a3),'path':a1_0x3875a7(0x189),'summary':a1_0x3875a7(0x1b4),'whenToUse':a1_0x3875a7(0x18f),'pathParams':[{'name':a1_0x3875a7(0x200),'description':'Current\x20app\x20code'},{'name':a1_0x3875a7(0x17e),'description':a1_0x3875a7(0x1e3)}],'queryParams':[],'bodySchema':a1_0x3875a7(0x1ea),'responseHighlights':['Returns\x20one\x20matching\x20business\x20record'],'examples':[a1_0x3875a7(0x1e0)],'notes':[a1_0x3875a7(0x1a8)],'markdown':a1_0x3875a7(0x181)},{'code':a1_0x3875a7(0x1c7),'category':a1_0x3875a7(0x187),'title':a1_0x3875a7(0x1e4),'method':a1_0x3875a7(0x1a3),'path':a1_0x3875a7(0x1a1),'summary':a1_0x3875a7(0x1f0),'whenToUse':a1_0x3875a7(0x201),'pathParams':[{'name':a1_0x3875a7(0x200),'description':'Current\x20app\x20code'},{'name':a1_0x3875a7(0x17e),'description':a1_0x3875a7(0x1e3)}],'queryParams':[],'bodySchema':a1_0x3875a7(0x1ec),'responseHighlights':[a1_0x3875a7(0x1cd)],'examples':['lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27'],'notes':[a1_0x3875a7(0x1aa)],'markdown':a1_0x3875a7(0x17c)},{'code':a1_0x3875a7(0x17b),'category':'bf','title':a1_0x3875a7(0x1d4),'method':a1_0x3875a7(0x1b0),'path':a1_0x3875a7(0x1d8),'summary':a1_0x3875a7(0x1d3),'whenToUse':a1_0x3875a7(0x1a7),'pathParams':[{'name':'appCode','description':a1_0x3875a7(0x1b2)},{'name':'functionName','description':a1_0x3875a7(0x1c8)}],'queryParams':[],'bodySchema':a1_0x3875a7(0x1c3),'responseHighlights':['CLI\x20returns\x20appCode/functionName/description/version/gmtModified'],'examples':['lovrabet\x20bff\x20detail\x20--name\x20<functionName>'],'notes':[a1_0x3875a7(0x1b3)],'markdown':a1_0x3875a7(0x194)},{'code':a1_0x3875a7(0x1fd),'category':'bf','title':a1_0x3875a7(0x1ef),'method':a1_0x3875a7(0x1a3),'path':a1_0x3875a7(0x1ff),'summary':'Execute\x20a\x20BF\x20endpoint\x20function','whenToUse':a1_0x3875a7(0x1bb),'pathParams':[{'name':a1_0x3875a7(0x200),'description':a1_0x3875a7(0x1b2)},{'name':a1_0x3875a7(0x1ba),'description':a1_0x3875a7(0x18a)}],'queryParams':[],'bodySchema':a1_0x3875a7(0x183),'responseHighlights':['Returns\x20script\x20business\x20payload'],'examples':[a1_0x3875a7(0x1f4)],'notes':[a1_0x3875a7(0x1ce)],'markdown':'##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.'},{'code':'personal_bf_execute','category':'bf','title':a1_0x3875a7(0x198),'method':a1_0x3875a7(0x1a3),'path':'/api/runtime-bff/personal/{id}/execute','summary':a1_0x3875a7(0x1f8),'whenToUse':a1_0x3875a7(0x1ad),'pathParams':[{'name':'id','description':a1_0x3875a7(0x188)}],'queryParams':[{'name':a1_0x3875a7(0x200),'description':a1_0x3875a7(0x1b2)}],'bodySchema':a1_0x3875a7(0x183),'responseHighlights':[a1_0x3875a7(0x1b1)],'examples':[a1_0x3875a7(0x195)],'notes':[a1_0x3875a7(0x1cb),a1_0x3875a7(0x1af)],'markdown':[a1_0x3875a7(0x193),'',a1_0x3875a7(0x1ae)][a1_0x3875a7(0x1e1)]('\x0a')},{'code':'custom_sql_execute','category':a1_0x3875a7(0x1c1),'title':a1_0x3875a7(0x1fb),'method':a1_0x3875a7(0x1a3),'path':a1_0x3875a7(0x1cf),'summary':a1_0x3875a7(0x1fb),'whenToUse':a1_0x3875a7(0x1bc),'pathParams':[],'queryParams':[],'bodySchema':'{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','responseHighlights':[a1_0x3875a7(0x1b5)],'examples':[a1_0x3875a7(0x1f9)],'notes':[a1_0x3875a7(0x1c2)],'markdown':a1_0x3875a7(0x1e7)}];function entrySummary(_0x27147d){const _0x471731=a1_0x3875a7;return{'code':_0x27147d[_0x471731(0x1f2)],'category':_0x27147d[_0x471731(0x17d)],'method':_0x27147d[_0x471731(0x184)],'path':_0x27147d[_0x471731(0x18b)],'summary':_0x27147d[_0x471731(0x1e6)],'whenToUse':_0x27147d[_0x471731(0x197)]};}export function listApiDocEntries(_0x4b354d={}){const _0x4ab062=a1_0x3875a7,_0x520b23=String(_0x4b354d[_0x4ab062(0x17d)]||'')[_0x4ab062(0x1c9)](),_0x41bc81=String(_0x4b354d[_0x4ab062(0x1d7)]||'')['trim']()[_0x4ab062(0x1a0)]();return DOCS[_0x4ab062(0x1e5)](_0x20e871=>{const _0x2c7614=_0x4ab062;if(_0x520b23&&_0x20e871['category']!==_0x520b23)return![];if(!_0x41bc81)return!![];return[_0x20e871[_0x2c7614(0x1f2)],_0x20e871[_0x2c7614(0x17d)],_0x20e871[_0x2c7614(0x184)],_0x20e871[_0x2c7614(0x18b)],_0x20e871[_0x2c7614(0x1e6)],_0x20e871[_0x2c7614(0x197)],_0x20e871[_0x2c7614(0x19b)]][_0x2c7614(0x1e1)]('\x20')[_0x2c7614(0x1a0)]()[_0x2c7614(0x191)](_0x41bc81);})[_0x4ab062(0x1ee)](entrySummary);}function a1_0x1061(){const _0x2dc511=['##\x20Get\x20BF\x20endpoint\x20function\x20contract\x0a\x0aInspect\x20one\x20known\x20endpoint\x20function\x20through\x20the\x20AK-authenticated\x20exact\x20detail\x20API.','lovrabet\x20personal-bff\x20exec\x20--id\x20<id>\x20--params\x20\x27{}\x27','lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress','whenToUse','Execute\x20Personal\x20Backend\x20Function','API\x20doc\x20code,\x20for\x20example\x20dataset_list','detail','title','length','dataset_detail','List\x20datasets','{\x22aggregate\x22:[{\x22column\x22:\x20\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','toLowerCase','/api/{appCode}/{datasetCode}/create','where,\x20select,\x20orderBy,\x20currentPage,\x20and\x20pageSize\x20belong\x20inside\x20one\x20--params\x20JSON\x20object;\x20they\x20are\x20not\x20standalone\x20CLI\x20flags.','POST','relations\x20contains\x20the\x20object-shaped\x20API\x20relations\x20value\x20when\x20returned','Show\x20runtime\x20API\x20documentation\x20by\x20code','9tuqwoq','Use\x20when\x20the\x20function\x20name\x20is\x20already\x20confirmed\x20and\x20you\x20need\x20that\x20ENDPOINT\x27s\x20runtime\x20metadata','Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.','Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.','This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22orderBy\x22:[{\x22id\x22:\x22asc\x22}],\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','Aggregate\x20dataset\x20data','Use\x20when\x20the\x20target\x20Personal\x20BFF\x20script\x20id\x20is\x20confirmed\x20under\x20the\x20current\x20user\x20and\x20you\x20need\x20to\x20execute\x20that\x20personal\x20script\x20with\x20optional\x20JSON\x20params','Execute\x20a\x20known\x20Personal\x20Backend\x20Function\x20script\x20through\x20its\x20runtime\x20execute\x20endpoint.','Function\x20execution\x20may\x20have\x20business\x20side\x20effects;\x20inspect\x20detail\x20before\x20execution.','GET','Returns\x20script\x20business\x20payload','Current\x20app\x20code','This\x20is\x20an\x20exact\x20lookup\x20by\x20appCode\x20+\x20functionName.\x20The\x20CLI\x20does\x20not\x20enumerate\x20Backend\x20Function\x20definitions\x20or\x20expose\x20platform-only\x20fields.','Get\x20one\x20dataset\x20record','Returns\x20SQL\x20execution\x20payload','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.','2761087LVxBNv','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.','860vhKmiu','functionName','Use\x20when\x20the\x20target\x20BF\x20functionName\x20is\x20confirmed\x20and\x20you\x20need\x20to\x20call\x20that\x20ENDPOINT','Use\x20when\x20the\x20target\x20sqlCode\x20exists\x20and\x20you\x20need\x20to\x20execute\x20that\x20custom\x20SQL','Use\x20when\x20you\x20need\x20fields,\x20table\x20info,\x20relations,\x20or\x20operation\x20definitions\x20for\x20a\x20dataset\x20code','find','1195912oekliK','lovrabet\x20data\x20aggregate\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}]}\x27','custom_sql','Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.','None','CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.','395135VaojeZ','Use\x20when\x20you\x20need\x20groupBy\x20plus\x20count,\x20sum,\x20avg,\x20max,\x20or\x20min\x20aggregates','dataset_data_create','Exact\x20endpoint\x20function\x20name','trim','Use\x20when\x20you\x20need\x20to\x20read\x20business\x20data\x20with\x20where,\x20orderBy,\x20pagination,\x20or\x20similar\x20filters','Personal\x20BFF\x20scripts\x20are\x20user-owned\x20and\x20scoped\x20per\x20app.','Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.','Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result','Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.','/api/custom/executeSql','##\x20Filter\x20dataset\x20data','api-doc','List\x20available\x20runtime\x20API\x20documentation\x20entries','Get\x20a\x20BF\x20endpoint\x20contract\x20by\x20app\x20and\x20function\x20name','Get\x20BF\x20endpoint\x20function\x20contract','5IbuNVE','##\x20List\x20datasets','keyword','/client/bff/endpoint/{appCode}/{functionName}','list','{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','str','Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text','Filter\x20dataset\x20records','/api/dataset/get-dataset-list-by-app-code','/api/{appCode}/{datasetCode}/filter','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27','join','3qkdpOi','32-character\x20dataset\x20code','Create\x20dataset\x20record','filter','summary','##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.','683404yKxeOF','tableData\x20contains\x20dataset\x20id/code/name','{\x22id\x22:123}','326398QtVXBB','{\x22fieldName\x22:\x22value\x22}','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22orderBy\x22:[{\x22id\x22:\x22asc\x22}],\x22currentPage\x22:2,\x22pageSize\x22:20}\x27','map','Execute\x20BF\x20endpoint\x20function','Create\x20a\x20dataset\x20record','6hPESZu','code','API\x20doc\x20code\x20not\x20found:\x20','lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27','dataset_data_get_one','read','Dataset\x20detail','Execute\x20a\x20Personal\x20Backend\x20Function\x20by\x20script\x20ID','lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27','/api/{appCode}/{datasetCode}/aggregate','Execute\x20custom\x20SQL','result\x20rows\x20contain\x20aggregate\x20aliases','bf_execute','If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.','/api/endpoint/{appCode}/{functionName}','appCode','Use\x20when\x20you\x20need\x20to\x20insert\x20one\x20business\x20record\x20into\x20a\x20dataset','339128fibSvX','Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset','dataset_data_filter','bf_detail','##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.','category','datasetCode','12JnnASy','dataset_list','##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.','Verify\x20tableData\x20and\x20paging\x20before\x20treating\x20the\x20response\x20as\x20a\x20business\x20fact.','{\x22param\x22:\x22value\x22}','method','Aggregate\x20dataset\x20records','where\x20filters\x20before\x20aggregation','dataset','Personal\x20Backend\x20Function\x20script\x20ID,\x20for\x20example\x20123','/api/{appCode}/{datasetCode}/getOne','Endpoint\x20function\x20name','path','56353PQUhOV','##\x20Aggregate\x20dataset\x20data','paging\x20contains\x20pagination','Use\x20when\x20you\x20already\x20know\x20the\x20record\x20id\x20and\x20need\x20one\x20business\x20row\x20from\x20a\x20dataset','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.','includes','operations\x20describes\x20runtime\x20APIs','##\x20Execute\x20Personal\x20Backend\x20Function'];a1_0x1061=function(){return _0x2dc511;};return a1_0x1061();}export function getApiDocDetail(_0x5e0a54){const _0x35009b=a1_0x3875a7,_0x80d357=DOCS[_0x35009b(0x1be)](_0x4c790c=>_0x4c790c['code']===_0x5e0a54);if(!_0x80d357)throw CliErrors['validation'](_0x35009b(0x1f3)+_0x5e0a54);return{..._0x80d357};}const apiDocList={'service':a1_0x3875a7(0x1d1),'command':a1_0x3875a7(0x1d9),'description':a1_0x3875a7(0x1d2),'risk':a1_0x3875a7(0x1f6),'requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0x24925c){const _0x361761=a1_0x3875a7,_0x22d083=listApiDocEntries({'category':_0x24925c[_0x361761(0x1db)](_0x361761(0x17d)),'keyword':_0x24925c['str'](_0x361761(0x1d7))});return{'ok':!![],'data':{'total':_0x22d083[_0x361761(0x19c)],'items':_0x22d083}};}},apiDocDetail={'service':a1_0x3875a7(0x1d1),'command':a1_0x3875a7(0x19a),'description':a1_0x3875a7(0x1a5),'risk':a1_0x3875a7(0x1f6),'requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0x3312eb){const _0x31cfaa=a1_0x3875a7;return{'ok':!![],'data':getApiDocDetail(_0x3312eb['str'](_0x31cfaa(0x1f2)))};}};function a1_0x3542(_0x54c694,_0x18407c){_0x54c694=_0x54c694-0x178;const _0x106120=a1_0x1061();let _0x354291=_0x106120[_0x54c694];return _0x354291;}export const apiDocDefinitions=[apiDocList,apiDocDetail];
@@ -1 +1 @@
1
- (function(_0x41e4d8,_0x2785ec){const _0x57e876=a2_0x3322,_0x5f3140=_0x41e4d8();while(!![]){try{const _0x5774f5=parseInt(_0x57e876(0x1a1))/0x1+parseInt(_0x57e876(0x1a7))/0x2*(-parseInt(_0x57e876(0x1a6))/0x3)+parseInt(_0x57e876(0x196))/0x4*(parseInt(_0x57e876(0x195))/0x5)+parseInt(_0x57e876(0x19e))/0x6+-parseInt(_0x57e876(0x19c))/0x7+-parseInt(_0x57e876(0x197))/0x8*(-parseInt(_0x57e876(0x1a2))/0x9)+parseInt(_0x57e876(0x1a4))/0xa;if(_0x5774f5===_0x2785ec)break;else _0x5f3140['push'](_0x5f3140['shift']());}catch(_0x591d6b){_0x5f3140['push'](_0x5f3140['shift']());}}}(a2_0x4e80,0x19b49));import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';import{dirname,resolve}from'node:path';import{PRODUCT_CONFIG}from'../../constant/product.js';import{isRuntimeAccessibleApp}from'../../commands/app/eligibility.js';function a2_0x4e80(){const _0xdafe93=['update','9318KTglbW','appCode','unknown','89074RwYMjA','81rIDERb','slice','1142290mkqjLO','EPERM','84498tnOscM','10tjplGC','hex','digest','items','stringify','appName','code','utf8','sha256','find','isArray','355PWDRFP','3356rTdlkB','74712wvQvgP','cache','my-apps.json','trim','EACCES','716499HaueqX'];a2_0x4e80=function(){return _0xdafe93;};return a2_0x4e80();}export function fingerprintAccessKey(_0x4d022c){const _0x24e29a=a2_0x3322,_0x14ecb1=_0x4d022c['trim'](),_0x4b84c4=_0x14ecb1[_0x24e29a(0x1a3)](-0x6)||_0x24e29a(0x1a0),_0x56230f=createHash(_0x24e29a(0x1af))[_0x24e29a(0x19d)](_0x14ecb1)[_0x24e29a(0x1a9)](_0x24e29a(0x1a8))[_0x24e29a(0x1a3)](0x0,0xc);return'ak_'+_0x4b84c4+'_'+_0x56230f;}export function getAppCacheFilePath(_0x204d3d,_0x5da7d2){const _0x596e1c=a2_0x3322;return resolve(homedir(),PRODUCT_CONFIG['homeDirName'],_0x596e1c(0x198),_0x204d3d,fingerprintAccessKey(_0x5da7d2),_0x596e1c(0x199));}export function readCachedAppList(_0x4de553,_0x5f31b4){const _0x541e60=a2_0x3322;if(!_0x5f31b4?.[_0x541e60(0x19a)]())return null;const _0x6d4c11=getAppCacheFilePath(_0x4de553,_0x5f31b4);if(!existsSync(_0x6d4c11))return null;try{const _0x4f2c43=readFileSync(_0x6d4c11,'utf8');if(!_0x4f2c43[_0x541e60(0x19a)]())return null;const _0x5e323b=JSON['parse'](_0x4f2c43);if(!Array[_0x541e60(0x1b1)](_0x5e323b['items']))return null;return _0x5e323b;}catch{return null;}}export function writeCachedAppList(_0x4f4363,_0x932444,_0x42f392){const _0x1de110=a2_0x3322,_0x59bd80=getAppCacheFilePath(_0x4f4363,_0x932444),_0x2147ec=dirname(_0x59bd80);!existsSync(_0x2147ec)&&mkdirSync(_0x2147ec,{'recursive':!![]});const _0x1fbf7a=_0x59bd80+'.tmp';try{writeFileSync(_0x1fbf7a,JSON[_0x1de110(0x1ab)](_0x42f392,null,0x2)+'\x0a',{'encoding':_0x1de110(0x1ae),'mode':0x180});try{renameSync(_0x1fbf7a,_0x59bd80);}catch(_0x41f9b0){if(_0x41f9b0[_0x1de110(0x1ad)]===_0x1de110(0x1a5)||_0x41f9b0[_0x1de110(0x1ad)]==='EXDEV'||_0x41f9b0[_0x1de110(0x1ad)]===_0x1de110(0x19b)){writeFileSync(_0x59bd80,JSON['stringify'](_0x42f392,null,0x2)+'\x0a',{'encoding':_0x1de110(0x1ae)});try{unlinkSync(_0x1fbf7a);}catch{}}else throw _0x41f9b0;}}catch(_0x49e78d){try{unlinkSync(_0x1fbf7a);}catch{}throw _0x49e78d;}return _0x59bd80;}function a2_0x3322(_0x194589,_0x5b119f){_0x194589=_0x194589-0x195;const _0x4e808c=a2_0x4e80();let _0x332260=_0x4e808c[_0x194589];return _0x332260;}export function resolveCachedAppCode(_0x51fa8d,_0x28cac2,_0x3ba750){const _0x4bc05f=a2_0x3322;if(!_0x51fa8d)return undefined;const _0x18fbb9=readCachedAppList(_0x28cac2,_0x3ba750),_0x7e1214=_0x18fbb9?.[_0x4bc05f(0x1aa)][_0x4bc05f(0x1b0)](_0x1eb315=>_0x1eb315[_0x4bc05f(0x1ac)]===_0x51fa8d&&isRuntimeAccessibleApp(_0x1eb315));return _0x7e1214?.[_0x4bc05f(0x19f)]?.[_0x4bc05f(0x19a)]()||undefined;}
1
+ (function(_0x2d1351,_0x426039){const _0x38ee30=a2_0x1111,_0x211a23=_0x2d1351();while(!![]){try{const _0x2e55ef=parseInt(_0x38ee30(0xa9))/0x1*(-parseInt(_0x38ee30(0xaa))/0x2)+-parseInt(_0x38ee30(0xa5))/0x3+parseInt(_0x38ee30(0xad))/0x4*(parseInt(_0x38ee30(0xa4))/0x5)+parseInt(_0x38ee30(0xa1))/0x6+parseInt(_0x38ee30(0xab))/0x7+-parseInt(_0x38ee30(0xa6))/0x8+-parseInt(_0x38ee30(0xb4))/0x9*(-parseInt(_0x38ee30(0xb8))/0xa);if(_0x2e55ef===_0x426039)break;else _0x211a23['push'](_0x211a23['shift']());}catch(_0x31bcbd){_0x211a23['push'](_0x211a23['shift']());}}}(a2_0x549b,0x7c725));import{createHash}from'node:crypto';function a2_0x549b(){const _0x36d8cb=['items','parse','appName','4839492BBRHpf','unknown','my-apps.json','3199865MVjwcA','1470330RFgXjH','854320CFHaYA','EACCES','trim','8mDavkH','155048MvquLJ','1060633lqednP','.tmp','4mfaAYB','sha256','utf8','find','homeDirName','isArray','ak_','165537FtryzH','cache','code','slice','70qqzVMB','stringify'];a2_0x549b=function(){return _0x36d8cb;};return a2_0x549b();}import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';import{dirname,resolve}from'node:path';import{PRODUCT_CONFIG}from'../../constant/product.js';import{isRuntimeAccessibleApp}from'../../commands/app/eligibility.js';export function fingerprintAccessKey(_0x1a2c70){const _0xd12708=a2_0x1111,_0x148b7a=_0x1a2c70[_0xd12708(0xa8)](),_0x42169f=_0x148b7a['slice'](-0x6)||_0xd12708(0xa2),_0xf93273=createHash(_0xd12708(0xae))['update'](_0x148b7a)['digest']('hex')[_0xd12708(0xb7)](0x0,0xc);return _0xd12708(0xb3)+_0x42169f+'_'+_0xf93273;}function a2_0x1111(_0x4b51db,_0xeb453b){_0x4b51db=_0x4b51db-0xa0;const _0x549b18=a2_0x549b();let _0x111122=_0x549b18[_0x4b51db];return _0x111122;}export function getAppCacheFilePath(_0x1fe8d5,_0x1d27d2){const _0x5422c6=a2_0x1111;return resolve(homedir(),PRODUCT_CONFIG[_0x5422c6(0xb1)],_0x5422c6(0xb5),_0x1fe8d5,fingerprintAccessKey(_0x1d27d2),_0x5422c6(0xa3));}export function readCachedAppList(_0x113edf,_0x4d264d){const _0x5f2f68=a2_0x1111;if(!_0x4d264d?.['trim']())return null;const _0x2f4e16=getAppCacheFilePath(_0x113edf,_0x4d264d);if(!existsSync(_0x2f4e16))return null;try{const _0x5d9282=readFileSync(_0x2f4e16,_0x5f2f68(0xaf));if(!_0x5d9282['trim']())return null;const _0x1b471a=JSON[_0x5f2f68(0xbb)](_0x5d9282);if(!Array[_0x5f2f68(0xb2)](_0x1b471a[_0x5f2f68(0xba)]))return null;return _0x1b471a;}catch{return null;}}export function writeCachedAppList(_0x44547a,_0x7436d5,_0x351912){const _0x378d43=a2_0x1111,_0xcd1a11=getAppCacheFilePath(_0x44547a,_0x7436d5),_0x29b8c2=dirname(_0xcd1a11);!existsSync(_0x29b8c2)&&mkdirSync(_0x29b8c2,{'recursive':!![]});const _0x3bd9ef=_0xcd1a11+_0x378d43(0xac);try{writeFileSync(_0x3bd9ef,JSON['stringify'](_0x351912,null,0x2)+'\x0a',{'encoding':_0x378d43(0xaf),'mode':0x180});try{renameSync(_0x3bd9ef,_0xcd1a11);}catch(_0x5269c1){if(_0x5269c1['code']==='EPERM'||_0x5269c1[_0x378d43(0xb6)]==='EXDEV'||_0x5269c1[_0x378d43(0xb6)]===_0x378d43(0xa7)){writeFileSync(_0xcd1a11,JSON[_0x378d43(0xb9)](_0x351912,null,0x2)+'\x0a',{'encoding':_0x378d43(0xaf)});try{unlinkSync(_0x3bd9ef);}catch{}}else throw _0x5269c1;}}catch(_0x40f368){try{unlinkSync(_0x3bd9ef);}catch{}throw _0x40f368;}return _0xcd1a11;}export function resolveCachedAppCode(_0x3d1015,_0x1f1c3b,_0x55dfa8){const _0x98d407=a2_0x1111;if(!_0x3d1015)return undefined;const _0x21e256=readCachedAppList(_0x1f1c3b,_0x55dfa8),_0x2181c5=_0x21e256?.[_0x98d407(0xba)][_0x98d407(0xb0)](_0xae9465=>_0xae9465[_0x98d407(0xa0)]===_0x3d1015&&isRuntimeAccessibleApp(_0xae9465));return _0x2181c5?.['appCode']?.[_0x98d407(0xa8)]()||undefined;}
@@ -1 +1 @@
1
- const a3_0x5114af=a3_0x4dcb;function a3_0x48db(){const _0x469cd1=['i18nInfo','80kwYEWm','Refreshed\x20app\x20cache\x20with\x20','str','read','local','production','find','globalPath','No\x20apps\x20found\x20on\x20the\x20platform.','no-cache','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','trim','items','isArray','\x20cached\x20app(s)\x20for\x20env=\x22','projectPath','push','Read\x20app\x20list\x20from\x20local\x20cache\x20only','import','17009973rJHSax','env','1206360xCORqT','accessKey','enableI18n','entries','1684212KQpYVn','length','2765365VgdgjI','appName','name','filter','nonInteractive','envName','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','22280ZGHmkY','\x20app(s)\x20for\x20env=\x22','Filter\x20by\x20environment\x20(default:\x20current\x20env)','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','Reads\x20the\x20apps\x20available\x20to\x20the\x20current\x20account\x20and\x20overwrites\x20the\x20local\x20app\x20cache\x20for\x20that\x20environment.\x20Platform\x20apps\x20are\x20not\x20modified.','source','app','appPublishStatus','Loaded\x20','isCurrent','Include\x20unpublished\x20apps\x20for\x20diagnostics','No\x20cached\x20apps\x20found.','map','Reads\x20the\x20given\x20.rabetbase.json\x20and\x20imports\x20a\x20usable\x20default\x20app\x20into\x20local\x20.lovrabet.json.\x20Matching\x20keys\x20may\x20be\x20updated.','type','cache','Read\x20from\x20local\x20cache\x20only','25438TSiFDS','appCode','boolean','55XLzpHt','375412LbYZKg','mergedCli','../../commands/app/remote-source.js','string','config','fetchedAt','bool','write'];a3_0x48db=function(){return _0x469cd1;};return a3_0x48db();}(function(_0x4068c9,_0x607be8){const _0x12a4eb=a3_0x4dcb,_0x2fcba8=_0x4068c9();while(!![]){try{const _0x577168=-parseInt(_0x12a4eb(0x1bb))/0x1*(parseInt(_0x12a4eb(0x1a7))/0x2)+-parseInt(_0x12a4eb(0x19e))/0x3+parseInt(_0x12a4eb(0x1bc))/0x4+-parseInt(_0x12a4eb(0x1a0))/0x5+parseInt(_0x12a4eb(0x19a))/0x6+-parseInt(_0x12a4eb(0x1b8))/0x7*(parseInt(_0x12a4eb(0x1c5))/0x8)+parseInt(_0x12a4eb(0x198))/0x9;if(_0x577168===_0x607be8)break;else _0x2fcba8['push'](_0x2fcba8['shift']());}catch(_0x212e4b){_0x2fcba8['push'](_0x2fcba8['shift']());}}}(a3_0x48db,0x66e11));import{appImportFlagDefs,runAppImport}from'../../commands/init.js';import{getEnv,RUNTIME_ENV_VALUES}from'../../constant/env.js';import{buildAppProfileListFields}from'../../config/schema.js';import{enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';import{filterRuntimeAccessibleApps,findAppByCode,isRuntimeAccessibleApp}from'../../commands/app/eligibility.js';function collectFlags(_0x4029da,_0x5897d9){const _0xc7d8f4=a3_0x4dcb,_0x5b98ea={};for(const _0x1c54fd of _0x5897d9){const _0x4c1139=_0x1c54fd[_0xc7d8f4(0x1b5)]===_0xc7d8f4(0x1ba)?_0x4029da['bool'](_0x1c54fd[_0xc7d8f4(0x1a2)]):_0x4029da[_0xc7d8f4(0x1c7)](_0x1c54fd['name']);if(_0x4c1139!==''&&_0x4c1139!==![])_0x5b98ea[_0x1c54fd['name']]=_0x4c1139;}if(_0x4029da['nonInteractive'])_0x5b98ea[_0xc7d8f4(0x1a4)]=!![];return _0x5b98ea;}function normalizeLanguages(_0x4769c6){const _0x4906d6=a3_0x4dcb;if(!Array[_0x4906d6(0x192)](_0x4769c6))return[];return _0x4769c6['filter'](_0x2214e3=>typeof _0x2214e3===_0x4906d6(0x1bf))[_0x4906d6(0x1b3)](_0x54c64b=>_0x54c64b['trim']())[_0x4906d6(0x1a3)](Boolean);}function buildRemoteAppI18nFields(_0x312631){const _0x5e0da9=a3_0x4dcb,_0x55a226=normalizeLanguages(_0x312631['i18nInfo']?.['langs']);return{'enableI18n':typeof _0x312631[_0x5e0da9(0x19c)]==='boolean'?_0x312631[_0x5e0da9(0x19c)]:null,'languages':_0x55a226,'i18nInfo':_0x312631[_0x5e0da9(0x1c4)]?{..._0x312631['i18nInfo'],'langs':_0x55a226[_0x5e0da9(0x19f)]?_0x55a226:null}:null};}function a3_0x4dcb(_0x53646b,_0xbb5769){_0x53646b=_0x53646b-0x18c;const _0x48db03=a3_0x48db();let _0x4dcb2c=_0x48db03[_0x53646b];return _0x4dcb2c;}const listDef={'service':a3_0x5114af(0x1ad),'command':'list','description':a3_0x5114af(0x1aa),'risk':a3_0x5114af(0x1c8),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a3_0x5114af(0x199),'type':'string','description':a3_0x5114af(0x1a9),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x5114af(0x1c9),'type':'boolean','description':a3_0x5114af(0x196),'default':![]},{'name':'no-cache','type':a3_0x5114af(0x1ba),'description':a3_0x5114af(0x18f),'default':![]},{'name':'include-unpublished','type':a3_0x5114af(0x1ba),'description':a3_0x5114af(0x1b1),'default':![]}],async 'execute'(_0xfc1a65){const _0x3e55d6=a3_0x5114af,_0x58ec19=_0xfc1a65[_0x3e55d6(0x1c7)](_0x3e55d6(0x199))||_0xfc1a65[_0x3e55d6(0x1a5)]||getEnv()||_0x3e55d6(0x1ca),_0x2dea9b=_0xfc1a65['bool'](_0x3e55d6(0x1c9)),_0x42f31d=_0xfc1a65[_0x3e55d6(0x1c2)]('no-cache'),_0xec7d16=_0xfc1a65[_0x3e55d6(0x1c2)]('include-unpublished'),{readRawConfigWithLayers:_0x525754,resolveDefaultAppSource:_0xdc5063,getLocalAppAliases:_0x514034}=await import('../../context.js'),{getRemoteAppList:_0x13b228}=await import('../../commands/app/remote-source.js'),{config:_0x592ecb,layers:_0x581c17}=_0x525754(),_0xc6de78=_0xdc5063(_0x581c17),{defaultApp:_0x42aa0c}=_0x592ecb,_0x7d272f=await _0x13b228({'env':_0x58ec19,'accessKey':_0xfc1a65[_0x3e55d6(0x19b)],'localOnly':_0x2dea9b,'noCache':_0x42f31d}),_0x3714f3=_0xec7d16?_0x7d272f[_0x3e55d6(0x191)]:filterRuntimeAccessibleApps(_0x7d272f[_0x3e55d6(0x191)]),_0x1fed9d=_0x7d272f[_0x3e55d6(0x191)][_0x3e55d6(0x19f)]-_0x3714f3[_0x3e55d6(0x19f)],_0x177dcd=_0x3714f3[_0x3e55d6(0x1b3)](_0x4bbfc4=>{const _0x194354=_0x3e55d6;return{'name':_0x4bbfc4[_0x194354(0x1a1)],'appcode':_0x4bbfc4[_0x194354(0x1b9)],'named':!![],'definedIn':'remote','isDefault':_0x4bbfc4[_0x194354(0x1a1)]===_0x42aa0c,...buildAppProfileListFields(_0x58ec19),...buildRemoteAppI18nFields(_0x4bbfc4),'source':_0x7d272f[_0x194354(0x1ac)],'owner':_0x4bbfc4['appOwnerName']??null,'status':_0x4bbfc4[_0x194354(0x1ae)]??null,'cachedAt':_0x7d272f[_0x194354(0x1c1)]};}),_0x2feb21=_0x514034(_0x592ecb);let _0x5eefe7=0x0;for(const [_0x3d6089,_0xba1ac4]of Object[_0x3e55d6(0x19d)](_0x2feb21)){const _0x353874=typeof _0xba1ac4['appcode']==='string'?_0xba1ac4['appcode'][_0x3e55d6(0x190)]():'';if(!_0x353874)continue;const _0x173a70=findAppByCode(_0x7d272f[_0x3e55d6(0x191)],_0x353874);if(!_0xec7d16&&_0x173a70&&!isRuntimeAccessibleApp(_0x173a70))continue;_0x5eefe7+=0x1,_0x177dcd[_0x3e55d6(0x195)]({'name':_0x3d6089,'appcode':_0x353874,'named':!![],'definedIn':_0x3e55d6(0x1c9),'isDefault':_0x3d6089===_0x42aa0c,...buildAppProfileListFields(_0x58ec19),'source':_0x3e55d6(0x1c0),'owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x177dcd,_0xfc1a65[_0x3e55d6(0x1bd)]);const _0x589661=_0x177dcd[_0x3e55d6(0x1cb)](_0xa5e1f=>_0xa5e1f[_0x3e55d6(0x1b0)]===!![]),_0x30ed7d=_0x42aa0c??_0x589661?.[_0x3e55d6(0x1a2)]??null,_0x20dbe6={'env':_0x58ec19,'source':_0x7d272f[_0x3e55d6(0x1ac)],'fetchedAt':_0x7d272f[_0x3e55d6(0x1c1)],'cachePath':_0x7d272f['cachePath'],'globalPath':_0x581c17[_0x3e55d6(0x18c)]??null,'projectPath':_0x581c17[_0x3e55d6(0x194)]??null,'defaultApp':_0x30ed7d,'defaultAppSource':_0x42aa0c!=null?_0xc6de78:null,'localAliasCount':_0x5eefe7,'remoteTotal':_0x7d272f[_0x3e55d6(0x191)][_0x3e55d6(0x19f)],'hiddenUnpublishedCount':_0x1fed9d,'includeUnpublished':_0xec7d16};if(_0x177dcd[_0x3e55d6(0x19f)]===0x0)return{'ok':!![],'data':{'items':_0x177dcd,'meta':_0x20dbe6},'message':_0x7d272f['source']===_0x3e55d6(0x1b6)?_0x3e55d6(0x1b2):_0x3e55d6(0x18d)};return{'ok':!![],'data':{'items':_0x177dcd,'meta':_0x20dbe6}};}},pullDef={'service':a3_0x5114af(0x1ad),'command':'pull','description':a3_0x5114af(0x1a6),'risk':a3_0x5114af(0x1c3),'confirmationDescription':a3_0x5114af(0x1ab),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a3_0x5114af(0x199),'type':a3_0x5114af(0x1bf),'description':'Target\x20environment\x20(default:\x20current\x20env)','enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x5114af(0x1c9),'type':a3_0x5114af(0x1ba),'description':a3_0x5114af(0x1b7),'default':![]},{'name':'no-cache','type':a3_0x5114af(0x1ba),'description':a3_0x5114af(0x18f),'default':![]}],async 'execute'(_0x4e501a){const _0x2ccb38=a3_0x5114af,_0x4aea11=_0x4e501a['str'](_0x2ccb38(0x199))||_0x4e501a[_0x2ccb38(0x1a5)]||getEnv()||_0x2ccb38(0x1ca),_0x3bd526=_0x4e501a[_0x2ccb38(0x1c2)](_0x2ccb38(0x1c9)),_0x11d65a=_0x4e501a[_0x2ccb38(0x1c2)](_0x2ccb38(0x18e)),{getRemoteAppList:_0x27db70}=await import(_0x2ccb38(0x1be)),_0x3d1d48=await _0x27db70({'env':_0x4aea11,'accessKey':_0x4e501a['accessKey'],'localOnly':_0x3bd526,'noCache':_0x11d65a});return{'ok':!![],'data':{'total':_0x3d1d48['items'][_0x2ccb38(0x19f)],'env':_0x4aea11,'source':_0x3d1d48[_0x2ccb38(0x1ac)],'fetchedAt':_0x3d1d48[_0x2ccb38(0x1c1)],'cachePath':_0x3d1d48['cachePath']},'message':_0x3d1d48['source']==='cache'?_0x2ccb38(0x1af)+_0x3d1d48[_0x2ccb38(0x191)][_0x2ccb38(0x19f)]+_0x2ccb38(0x193)+_0x4aea11+'\x22.':_0x2ccb38(0x1c6)+_0x3d1d48[_0x2ccb38(0x191)]['length']+_0x2ccb38(0x1a8)+_0x4aea11+'\x22.'};}},importDef={'service':a3_0x5114af(0x1ad),'command':a3_0x5114af(0x197),'description':'Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','risk':a3_0x5114af(0x1c3),'confirmationDescription':a3_0x5114af(0x1b4),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':appImportFlagDefs,async 'execute'(_0x17a249){return await runAppImport(collectFlags(_0x17a249,appImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[listDef,pullDef,importDef];
1
+ const a3_0x27317c=a3_0x343f;(function(_0x218196,_0xd24bcb){const _0x2eff27=a3_0x343f,_0x4969fa=_0x218196();while(!![]){try{const _0x374a99=-parseInt(_0x2eff27(0x176))/0x1+-parseInt(_0x2eff27(0x13a))/0x2+-parseInt(_0x2eff27(0x152))/0x3*(parseInt(_0x2eff27(0x172))/0x4)+parseInt(_0x2eff27(0x175))/0x5+-parseInt(_0x2eff27(0x158))/0x6*(-parseInt(_0x2eff27(0x15e))/0x7)+-parseInt(_0x2eff27(0x156))/0x8+-parseInt(_0x2eff27(0x142))/0x9*(-parseInt(_0x2eff27(0x153))/0xa);if(_0x374a99===_0xd24bcb)break;else _0x4969fa['push'](_0x4969fa['shift']());}catch(_0x4a5a6f){_0x4969fa['push'](_0x4969fa['shift']());}}}(a3_0x2aa8,0x9e22a));import{appImportFlagDefs,runAppImport}from'../../commands/init.js';import{getEnv,RUNTIME_ENV_VALUES}from'../../constant/env.js';import{buildAppProfileListFields}from'../../config/schema.js';function a3_0x2aa8(){const _0x36baf5=['config','boolean','Reads\x20the\x20apps\x20available\x20to\x20the\x20current\x20account\x20and\x20overwrites\x20the\x20local\x20app\x20cache\x20for\x20that\x20environment.\x20Platform\x20apps\x20are\x20not\x20modified.','fetchedAt','str','cachePath','remote','entries','env','../../commands/app/remote-source.js','23601dIrUKc','1670RcVnJI','appcode','No\x20apps\x20found\x20on\x20the\x20platform.','8763416PMMXPL','nonInteractive','1157508cralve','map','appName','app','\x20cached\x20app(s)\x20for\x20env=\x22','appPublishStatus','7QiWzwF','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','i18nInfo','list','bool','type','langs','Refreshed\x20app\x20cache\x20with\x20','projectPath','No\x20cached\x20apps\x20found.','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','appCode','envName','Read\x20app\x20list\x20from\x20local\x20cache\x20only','isCurrent','globalPath','push','name','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','no-cache','228pnCVuF','items','source','1045750YqBZMx','95463DNZakE','Include\x20unpublished\x20apps\x20for\x20diagnostics','cache','filter','read','local','length','1588102kOAFFl','Filter\x20by\x20environment\x20(default:\x20current\x20env)','Target\x20environment\x20(default:\x20current\x20env)','accessKey','appOwnerName','find','Reads\x20the\x20given\x20.rabetbase.json\x20and\x20imports\x20a\x20usable\x20default\x20app\x20into\x20local\x20.lovrabet.json.\x20Matching\x20keys\x20may\x20be\x20updated.','string','144378euyfGF','enableI18n','Read\x20from\x20local\x20cache\x20only','../../context.js','production','\x20app(s)\x20for\x20env=\x22'];a3_0x2aa8=function(){return _0x36baf5;};return a3_0x2aa8();}import{enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';function a3_0x343f(_0x558d6e,_0x1d8e47){_0x558d6e=_0x558d6e-0x13a;const _0x2aa895=a3_0x2aa8();let _0x343ff9=_0x2aa895[_0x558d6e];return _0x343ff9;}import{filterRuntimeAccessibleApps,findAppByCode,isRuntimeAccessibleApp}from'../../commands/app/eligibility.js';function collectFlags(_0x3b0c13,_0x42c29c){const _0x29b1e5=a3_0x343f,_0x347d23={};for(const _0x4fbf4b of _0x42c29c){const _0x358bea=_0x4fbf4b[_0x29b1e5(0x163)]===_0x29b1e5(0x149)?_0x3b0c13[_0x29b1e5(0x162)](_0x4fbf4b['name']):_0x3b0c13[_0x29b1e5(0x14c)](_0x4fbf4b[_0x29b1e5(0x16f)]);if(_0x358bea!==''&&_0x358bea!==![])_0x347d23[_0x4fbf4b['name']]=_0x358bea;}if(_0x3b0c13[_0x29b1e5(0x157)])_0x347d23[_0x29b1e5(0x157)]=!![];return _0x347d23;}function normalizeLanguages(_0x28b376){const _0x49d4fe=a3_0x343f;if(!Array['isArray'](_0x28b376))return[];return _0x28b376[_0x49d4fe(0x179)](_0x1520d0=>typeof _0x1520d0==='string')[_0x49d4fe(0x159)](_0x42c66d=>_0x42c66d['trim']())[_0x49d4fe(0x179)](Boolean);}function buildRemoteAppI18nFields(_0x5a334e){const _0x32d9b0=a3_0x343f,_0x4e6f13=normalizeLanguages(_0x5a334e['i18nInfo']?.[_0x32d9b0(0x164)]);return{'enableI18n':typeof _0x5a334e[_0x32d9b0(0x143)]===_0x32d9b0(0x149)?_0x5a334e[_0x32d9b0(0x143)]:null,'languages':_0x4e6f13,'i18nInfo':_0x5a334e['i18nInfo']?{..._0x5a334e[_0x32d9b0(0x160)],'langs':_0x4e6f13['length']?_0x4e6f13:null}:null};}const listDef={'service':a3_0x27317c(0x15b),'command':a3_0x27317c(0x161),'description':a3_0x27317c(0x170),'risk':a3_0x27317c(0x17a),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a3_0x27317c(0x150),'type':a3_0x27317c(0x141),'description':a3_0x27317c(0x13b),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x27317c(0x17b),'type':a3_0x27317c(0x149),'description':a3_0x27317c(0x16b),'default':![]},{'name':a3_0x27317c(0x171),'type':a3_0x27317c(0x149),'description':a3_0x27317c(0x15f),'default':![]},{'name':'include-unpublished','type':'boolean','description':a3_0x27317c(0x177),'default':![]}],async 'execute'(_0x1f7195){const _0x2dc113=a3_0x27317c,_0x55fa5c=_0x1f7195['str'](_0x2dc113(0x150))||_0x1f7195[_0x2dc113(0x16a)]||getEnv()||_0x2dc113(0x146),_0x561b76=_0x1f7195['bool'](_0x2dc113(0x17b)),_0x23a770=_0x1f7195[_0x2dc113(0x162)](_0x2dc113(0x171)),_0x4e4b4a=_0x1f7195[_0x2dc113(0x162)]('include-unpublished'),{readRawConfigWithLayers:_0x497605,resolveDefaultAppSource:_0x426651,getLocalAppAliases:_0x53f729}=await import(_0x2dc113(0x145)),{getRemoteAppList:_0x1b8d9f}=await import(_0x2dc113(0x151)),{config:_0x11a966,layers:_0x1976bc}=_0x497605(),_0x49822f=_0x426651(_0x1976bc),{defaultApp:_0x46163f}=_0x11a966,_0x543dcf=await _0x1b8d9f({'env':_0x55fa5c,'accessKey':_0x1f7195[_0x2dc113(0x13d)],'localOnly':_0x561b76,'noCache':_0x23a770}),_0x4c280e=_0x4e4b4a?_0x543dcf[_0x2dc113(0x173)]:filterRuntimeAccessibleApps(_0x543dcf['items']),_0x6e29bd=_0x543dcf[_0x2dc113(0x173)][_0x2dc113(0x17c)]-_0x4c280e[_0x2dc113(0x17c)],_0x4ac593=_0x4c280e[_0x2dc113(0x159)](_0x766173=>{const _0x5140b8=_0x2dc113;return{'name':_0x766173[_0x5140b8(0x15a)],'appcode':_0x766173[_0x5140b8(0x169)],'named':!![],'definedIn':_0x5140b8(0x14e),'isDefault':_0x766173[_0x5140b8(0x15a)]===_0x46163f,...buildAppProfileListFields(_0x55fa5c),...buildRemoteAppI18nFields(_0x766173),'source':_0x543dcf[_0x5140b8(0x174)],'owner':_0x766173[_0x5140b8(0x13e)]??null,'status':_0x766173[_0x5140b8(0x15d)]??null,'cachedAt':_0x543dcf[_0x5140b8(0x14b)]};}),_0x215119=_0x53f729(_0x11a966);let _0x392034=0x0;for(const [_0x5a0f2a,_0x22db71]of Object[_0x2dc113(0x14f)](_0x215119)){const _0x239eae=typeof _0x22db71[_0x2dc113(0x154)]==='string'?_0x22db71['appcode']['trim']():'';if(!_0x239eae)continue;const _0xc58b24=findAppByCode(_0x543dcf['items'],_0x239eae);if(!_0x4e4b4a&&_0xc58b24&&!isRuntimeAccessibleApp(_0xc58b24))continue;_0x392034+=0x1,_0x4ac593[_0x2dc113(0x16e)]({'name':_0x5a0f2a,'appcode':_0x239eae,'named':!![],'definedIn':_0x2dc113(0x17b),'isDefault':_0x5a0f2a===_0x46163f,...buildAppProfileListFields(_0x55fa5c),'source':_0x2dc113(0x148),'owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x4ac593,_0x1f7195['mergedCli']);const _0x566319=_0x4ac593[_0x2dc113(0x13f)](_0x1c380e=>_0x1c380e[_0x2dc113(0x16c)]===!![]),_0x430515=_0x46163f??_0x566319?.['name']??null,_0x91f14={'env':_0x55fa5c,'source':_0x543dcf[_0x2dc113(0x174)],'fetchedAt':_0x543dcf[_0x2dc113(0x14b)],'cachePath':_0x543dcf[_0x2dc113(0x14d)],'globalPath':_0x1976bc[_0x2dc113(0x16d)]??null,'projectPath':_0x1976bc[_0x2dc113(0x166)]??null,'defaultApp':_0x430515,'defaultAppSource':_0x46163f!=null?_0x49822f:null,'localAliasCount':_0x392034,'remoteTotal':_0x543dcf[_0x2dc113(0x173)][_0x2dc113(0x17c)],'hiddenUnpublishedCount':_0x6e29bd,'includeUnpublished':_0x4e4b4a};if(_0x4ac593[_0x2dc113(0x17c)]===0x0)return{'ok':!![],'data':{'items':_0x4ac593,'meta':_0x91f14},'message':_0x543dcf[_0x2dc113(0x174)]===_0x2dc113(0x178)?_0x2dc113(0x167):_0x2dc113(0x155)};return{'ok':!![],'data':{'items':_0x4ac593,'meta':_0x91f14}};}},pullDef={'service':'app','command':'pull','description':a3_0x27317c(0x168),'risk':'write','confirmationDescription':a3_0x27317c(0x14a),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'env','type':a3_0x27317c(0x141),'description':a3_0x27317c(0x13c),'enum':[...RUNTIME_ENV_VALUES]},{'name':'local','type':a3_0x27317c(0x149),'description':a3_0x27317c(0x144),'default':![]},{'name':a3_0x27317c(0x171),'type':'boolean','description':'Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','default':![]}],async 'execute'(_0x4e5885){const _0x137b5c=a3_0x27317c,_0x4bfcc2=_0x4e5885[_0x137b5c(0x14c)](_0x137b5c(0x150))||_0x4e5885[_0x137b5c(0x16a)]||getEnv()||'production',_0x4908ad=_0x4e5885[_0x137b5c(0x162)](_0x137b5c(0x17b)),_0x2d2013=_0x4e5885[_0x137b5c(0x162)]('no-cache'),{getRemoteAppList:_0x3d3974}=await import(_0x137b5c(0x151)),_0x515945=await _0x3d3974({'env':_0x4bfcc2,'accessKey':_0x4e5885[_0x137b5c(0x13d)],'localOnly':_0x4908ad,'noCache':_0x2d2013});return{'ok':!![],'data':{'total':_0x515945['items'][_0x137b5c(0x17c)],'env':_0x4bfcc2,'source':_0x515945[_0x137b5c(0x174)],'fetchedAt':_0x515945[_0x137b5c(0x14b)],'cachePath':_0x515945[_0x137b5c(0x14d)]},'message':_0x515945[_0x137b5c(0x174)]===_0x137b5c(0x178)?'Loaded\x20'+_0x515945['items'][_0x137b5c(0x17c)]+_0x137b5c(0x15c)+_0x4bfcc2+'\x22.':_0x137b5c(0x165)+_0x515945[_0x137b5c(0x173)][_0x137b5c(0x17c)]+_0x137b5c(0x147)+_0x4bfcc2+'\x22.'};}},importDef={'service':a3_0x27317c(0x15b),'command':'import','description':'Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','risk':'write','confirmationDescription':a3_0x27317c(0x140),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':appImportFlagDefs,async 'execute'(_0x14423f){return await runAppImport(collectFlags(_0x14423f,appImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[listDef,pullDef,importDef];
@@ -1 +1 @@
1
- function a4_0x41cd(_0x4a0cee,_0x4ee1e0){_0x4a0cee=_0x4a0cee-0x1bd;const _0x58e545=a4_0x58e5();let _0x41cdac=_0x58e545[_0x4a0cee];return _0x41cdac;}(function(_0x34a1d5,_0x17e58b){const _0x5dfb10=a4_0x41cd,_0x15f590=_0x34a1d5();while(!![]){try{const _0x5b4d81=-parseInt(_0x5dfb10(0x1c7))/0x1*(parseInt(_0x5dfb10(0x1c3))/0x2)+parseInt(_0x5dfb10(0x1bf))/0x3+-parseInt(_0x5dfb10(0x1cf))/0x4+parseInt(_0x5dfb10(0x1c0))/0x5+parseInt(_0x5dfb10(0x1c6))/0x6+-parseInt(_0x5dfb10(0x1cb))/0x7*(parseInt(_0x5dfb10(0x1cd))/0x8)+-parseInt(_0x5dfb10(0x1c5))/0x9*(parseInt(_0x5dfb10(0x1c9))/0xa);if(_0x5b4d81===_0x17e58b)break;else _0x15f590['push'](_0x15f590['shift']());}catch(_0x19eaf8){_0x15f590['push'](_0x15f590['shift']());}}}(a4_0x58e5,0xd73fd));import{CLI_BIN_NAME}from'../../constant/cli.js';function a4_0x58e5(){const _0x380a4d=['appCode','13803160PQgHUe','string','857094SmitYU','appName','8BReRQh','toUpperCase','2729416SorFPe','trim','find','appPublishStatus','UNKNOWN','4822017wFwnFX','6390760zFldqN','\x20is\x20not\x20available\x20for\x20runtime\x20AI\x20access.','validation','477824GfpCAz','\x20dataset/data/sql/bff\x20commands,\x20or\x20choose\x20a\x20published\x20app.','9JlUnbx','8255052vbfYVi','5XhNcFv'];a4_0x58e5=function(){return _0x380a4d;};return a4_0x58e5();}import{RUNTIME_ACCESSIBLE_APP_STATUS}from'../../constant/app.js';import{CliErrors}from'../../errors.js';export function normalizeAppPublishStatus(_0x1a4f67){const _0x4614ff=a4_0x41cd;if(typeof _0x1a4f67!==_0x4614ff(0x1ca))return null;const _0x5b6448=_0x1a4f67[_0x4614ff(0x1d0)]();return _0x5b6448?_0x5b6448[_0x4614ff(0x1ce)]():null;}export function isRuntimeAccessibleApp(_0x5a78e3){const _0x438542=a4_0x41cd;return normalizeAppPublishStatus(_0x5a78e3[_0x438542(0x1bd)])===RUNTIME_ACCESSIBLE_APP_STATUS;}export function filterRuntimeAccessibleApps(_0x42f5d7){return _0x42f5d7['filter'](isRuntimeAccessibleApp);}export function findAppByName(_0x4eee18,_0x3530b4){const _0x4c6775=a4_0x41cd;return _0x4eee18[_0x4c6775(0x1d1)](_0x34178c=>_0x34178c[_0x4c6775(0x1cc)]===_0x3530b4);}export function findAppByCode(_0x4ed7b0,_0x488fe7){const _0x3685a7=a4_0x41cd,_0x3749fe=_0x488fe7['trim']();if(!_0x3749fe)return undefined;return _0x4ed7b0['find'](_0x39bd32=>_0x39bd32[_0x3685a7(0x1c8)]?.[_0x3685a7(0x1d0)]()===_0x3749fe);}export function runtimeInaccessibleAppError(_0x702461,_0x254086){const _0x11b8df=a4_0x41cd,_0x41f056=normalizeAppPublishStatus(_0x702461['appPublishStatus'])??_0x11b8df(0x1be);return CliErrors[_0x11b8df(0x1c2)]('App\x20'+_0x254086+_0x11b8df(0x1c1),'Current\x20status:\x20'+_0x41f056+'.\x20Publish\x20the\x20app\x20before\x20using\x20'+CLI_BIN_NAME+_0x11b8df(0x1c4));}
1
+ (function(_0x3d49e7,_0x30cc31){const _0x412eb3=a4_0x20a2,_0x5416c7=_0x3d49e7();while(!![]){try{const _0x14c4b5=parseInt(_0x412eb3(0x16e))/0x1+-parseInt(_0x412eb3(0x167))/0x2+parseInt(_0x412eb3(0x16a))/0x3*(parseInt(_0x412eb3(0x169))/0x4)+parseInt(_0x412eb3(0x175))/0x5+-parseInt(_0x412eb3(0x160))/0x6*(parseInt(_0x412eb3(0x170))/0x7)+-parseInt(_0x412eb3(0x174))/0x8*(parseInt(_0x412eb3(0x16d))/0x9)+-parseInt(_0x412eb3(0x16c))/0xa*(-parseInt(_0x412eb3(0x161))/0xb);if(_0x14c4b5===_0x30cc31)break;else _0x5416c7['push'](_0x5416c7['shift']());}catch(_0x407acd){_0x5416c7['push'](_0x5416c7['shift']());}}}(a4_0x3eaa,0x21b60));import{CLI_BIN_NAME}from'../../constant/cli.js';function a4_0x20a2(_0x1fe847,_0x23e3f2){_0x1fe847=_0x1fe847-0x15f;const _0x3eaa80=a4_0x3eaa();let _0x20a220=_0x3eaa80[_0x1fe847];return _0x20a220;}function a4_0x3eaa(){const _0x3019af=['appPublishStatus','validation','104stmTVe','1235970OJIZiQ','App\x20','filter','3714MCfVEW','11HUUxJR','trim','Current\x20status:\x20','string','UNKNOWN','toUpperCase','94422aMCsXd','\x20dataset/data/sql/bff\x20commands,\x20or\x20choose\x20a\x20published\x20app.','10900RCjNdU','33cveAgm','find','382940faaENB','107181tLllVp','88402wlSzKu','.\x20Publish\x20the\x20app\x20before\x20using\x20','721hwnyWj','appCode'];a4_0x3eaa=function(){return _0x3019af;};return a4_0x3eaa();}import{RUNTIME_ACCESSIBLE_APP_STATUS}from'../../constant/app.js';import{CliErrors}from'../../errors.js';export function normalizeAppPublishStatus(_0x1730fb){const _0x5c9fd1=a4_0x20a2;if(typeof _0x1730fb!==_0x5c9fd1(0x164))return null;const _0x136b74=_0x1730fb['trim']();return _0x136b74?_0x136b74[_0x5c9fd1(0x166)]():null;}export function isRuntimeAccessibleApp(_0x236a63){const _0xfb694=a4_0x20a2;return normalizeAppPublishStatus(_0x236a63[_0xfb694(0x172)])===RUNTIME_ACCESSIBLE_APP_STATUS;}export function filterRuntimeAccessibleApps(_0x5d4c6c){const _0x2ca44b=a4_0x20a2;return _0x5d4c6c[_0x2ca44b(0x15f)](isRuntimeAccessibleApp);}export function findAppByName(_0x5ae424,_0x1ceeb8){const _0x1f68cd=a4_0x20a2;return _0x5ae424[_0x1f68cd(0x16b)](_0x3cbc40=>_0x3cbc40['appName']===_0x1ceeb8);}export function findAppByCode(_0xb807ba,_0x5a3f6c){const _0x4e9c79=a4_0x20a2,_0x1b6fe8=_0x5a3f6c[_0x4e9c79(0x162)]();if(!_0x1b6fe8)return undefined;return _0xb807ba[_0x4e9c79(0x16b)](_0x468b4f=>_0x468b4f[_0x4e9c79(0x171)]?.[_0x4e9c79(0x162)]()===_0x1b6fe8);}export function runtimeInaccessibleAppError(_0x3c5593,_0x368a6c){const _0x3cc50a=a4_0x20a2,_0x1d899f=normalizeAppPublishStatus(_0x3c5593[_0x3cc50a(0x172)])??_0x3cc50a(0x165);return CliErrors[_0x3cc50a(0x173)](_0x3cc50a(0x176)+_0x368a6c+'\x20is\x20not\x20available\x20for\x20runtime\x20AI\x20access.',_0x3cc50a(0x163)+_0x1d899f+_0x3cc50a(0x16f)+CLI_BIN_NAME+_0x3cc50a(0x168));}
@@ -1 +1 @@
1
- (function(_0x339564,_0x27d5b4){const _0x18f84c=a5_0x47c7,_0x318d30=_0x339564();while(!![]){try{const _0x4183dc=parseInt(_0x18f84c(0xcf))/0x1*(-parseInt(_0x18f84c(0xc8))/0x2)+-parseInt(_0x18f84c(0xce))/0x3*(parseInt(_0x18f84c(0xca))/0x4)+parseInt(_0x18f84c(0xbd))/0x5*(parseInt(_0x18f84c(0xc5))/0x6)+-parseInt(_0x18f84c(0xbf))/0x7+parseInt(_0x18f84c(0xc9))/0x8*(parseInt(_0x18f84c(0xc0))/0x9)+parseInt(_0x18f84c(0xc2))/0xa+parseInt(_0x18f84c(0xcc))/0xb*(-parseInt(_0x18f84c(0xbe))/0xc);if(_0x4183dc===_0x27d5b4)break;else _0x318d30['push'](_0x318d30['shift']());}catch(_0x3e0f29){_0x318d30['push'](_0x318d30['shift']());}}}(a5_0x1038,0x68e62));import{fileURLToPath}from'url';import{dirname,join}from'path';import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0x1d3d9d=a5_0x47c7,_0x386739=join(__dirname,_0x1d3d9d(0xcb)),_0x43a6e2=readFileSync(_0x386739,_0x1d3d9d(0xc1));return JSON[_0x1d3d9d(0xcd)](_0x43a6e2);}let _cached=null;function a5_0x1038(){const _0x1f8a27=['tableData','data','774lbqjbi','Mock\x20API\x20error:\x20','errorMsg','123106zKKfQg','5745928UaWErY','233452CTTOJR','../../../mock/app-list.json','2495680kLECBf','parse','33SjmVBs','1xRAxPS','10445hSUKgV','24KyHHog','1591457lprwbZ','9xIYQrW','utf-8','8266010wczJYS'];a5_0x1038=function(){return _0x1f8a27;};return a5_0x1038();}function a5_0x47c7(_0xf567ba,_0x3bfdeb){_0xf567ba=_0xf567ba-0xbd;const _0x1038f5=a5_0x1038();let _0x47c78d=_0x1038f5[_0xf567ba];return _0x47c78d;}export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x286cea=a5_0x47c7,_0x2ef805=getMockAppList();if(!_0x2ef805['success'])throw new Error(_0x286cea(0xc6)+_0x2ef805[_0x286cea(0xc7)]+'\x20('+_0x2ef805['errorCode']+')');return _0x2ef805[_0x286cea(0xc4)][_0x286cea(0xc3)];}
1
+ function a5_0x3110(){const _0x49658e=['Mock\x20API\x20error:\x20','4uXJWQM','10xIrfmu','5vRhaqJ','../../../mock/app-list.json','data','8155698JrZABA','16vIQyEh','success','utf-8','1510495vDDxCH','errorCode','31301172jbHwtq','errorMsg','tableData','13963914UqZNxk','3650018bSAdjB','18298181aJZADf','1178409lKJukR','1hJeLLC'];a5_0x3110=function(){return _0x49658e;};return a5_0x3110();}(function(_0x432f49,_0x125d25){const _0x216115=a5_0x13b2,_0x22c12c=_0x432f49();while(!![]){try{const _0x2f7803=-parseInt(_0x216115(0x1db))/0x1*(parseInt(_0x216115(0x1d8))/0x2)+-parseInt(_0x216115(0x1da))/0x3*(-parseInt(_0x216115(0x1dd))/0x4)+parseInt(_0x216115(0x1df))/0x5*(parseInt(_0x216115(0x1e2))/0x6)+-parseInt(_0x216115(0x1e6))/0x7*(-parseInt(_0x216115(0x1e3))/0x8)+parseInt(_0x216115(0x1eb))/0x9+parseInt(_0x216115(0x1de))/0xa*(parseInt(_0x216115(0x1d9))/0xb)+-parseInt(_0x216115(0x1e8))/0xc;if(_0x2f7803===_0x125d25)break;else _0x22c12c['push'](_0x22c12c['shift']());}catch(_0x22d66f){_0x22c12c['push'](_0x22c12c['shift']());}}}(a5_0x3110,0xeba71));import{fileURLToPath}from'url';import{dirname,join}from'path';import{readFileSync}from'fs';function a5_0x13b2(_0x480e28,_0x14fda6){_0x480e28=_0x480e28-0x1d8;const _0x3110e6=a5_0x3110();let _0x13b2b0=_0x3110e6[_0x480e28];return _0x13b2b0;}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0xca359d=a5_0x13b2,_0x49803e=join(__dirname,_0xca359d(0x1e0)),_0x5b93aa=readFileSync(_0x49803e,_0xca359d(0x1e5));return JSON['parse'](_0x5b93aa);}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x3bcf63=a5_0x13b2,_0x1e7dee=getMockAppList();if(!_0x1e7dee[_0x3bcf63(0x1e4)])throw new Error(_0x3bcf63(0x1dc)+_0x1e7dee[_0x3bcf63(0x1e9)]+'\x20('+_0x1e7dee[_0x3bcf63(0x1e7)]+')');return _0x1e7dee[_0x3bcf63(0x1e1)][_0x3bcf63(0x1ea)];}
@@ -1 +1 @@
1
- (function(_0xd6031e,_0x1361c2){const _0x13ed56=a6_0x344d,_0x274ef4=_0xd6031e();while(!![]){try{const _0x42c7d9=parseInt(_0x13ed56(0x1c4))/0x1*(parseInt(_0x13ed56(0x1c3))/0x2)+parseInt(_0x13ed56(0x1c9))/0x3+-parseInt(_0x13ed56(0x1ca))/0x4+parseInt(_0x13ed56(0x1c7))/0x5+parseInt(_0x13ed56(0x1bd))/0x6*(-parseInt(_0x13ed56(0x1bf))/0x7)+parseInt(_0x13ed56(0x1c1))/0x8+-parseInt(_0x13ed56(0x1be))/0x9;if(_0x42c7d9===_0x1361c2)break;else _0x274ef4['push'](_0x274ef4['shift']());}catch(_0x49562c){_0x274ef4['push'](_0x274ef4['shift']());}}}(a6_0x4786,0x89fca));import{getMyApps}from'../../core/api-client.js';import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';function a6_0x344d(_0x4883a1,_0xc4ecdd){_0x4883a1=_0x4883a1-0x1bc;const _0x4786cf=a6_0x4786();let _0x344d50=_0x4786cf[_0x4883a1];return _0x344d50;}import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';function a6_0x4786(){const _0x55e4f5=['remote','mock','3235460EfzKhu','items','1677315VprsyD','2991360aCSGRD','toISOString','fetchedAt','1392tkVhld','13896180xwpWOZ','8106CjSkjO','trim','8851440nKHVvu','APP_LIST_SOURCE','1626166IBWacZ','1NuzWiz'];a6_0x4786=function(){return _0x55e4f5;};return a6_0x4786();}import{productEnv}from'../../constant/product.js';export function shouldUseMockRemoteApps(){const _0x1d4848=a6_0x344d,_0x1a115b=(productEnv(_0x1d4848(0x1c2))||'')[_0x1d4848(0x1c0)]()['toLowerCase']();return _0x1a115b===_0x1d4848(0x1c6);}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x160dbd){const _0x304640=a6_0x344d,{env:_0x5606a0,accessKey:_0x5874b0,localOnly:localOnly=![],noCache:noCache=![]}=_0x160dbd,_0x42569d=readCachedAppList(_0x5606a0,_0x5874b0),_0x483aab=_0x5874b0?.[_0x304640(0x1c0)]()?getAppCacheFilePath(_0x5606a0,_0x5874b0):null;if(localOnly)return{'items':_0x42569d?.[_0x304640(0x1c8)]??[],'source':'cache','fetchedAt':_0x42569d?.['fetchedAt']??null,'cachePath':_0x483aab};try{const _0x2eba20=await getRemoteAppItems(),_0x4ccf1e=shouldUseMockRemoteApps()?_0x304640(0x1c6):_0x304640(0x1c5),_0x2aeb23=new Date()[_0x304640(0x1cb)](),_0x152837=_0x5874b0?.[_0x304640(0x1c0)]()?writeCachedAppList(_0x5606a0,_0x5874b0,{'env':_0x5606a0,'fetchedAt':_0x2aeb23,'source':_0x4ccf1e,'items':_0x2eba20}):null;return{'items':_0x2eba20,'source':_0x4ccf1e,'fetchedAt':_0x2aeb23,'cachePath':_0x152837};}catch(_0x360316){if(!noCache&&_0x42569d)return{'items':_0x42569d[_0x304640(0x1c8)],'source':'cache','fetchedAt':_0x42569d[_0x304640(0x1bc)],'cachePath':_0x483aab};throw _0x360316;}}
1
+ (function(_0x1979d7,_0x19f7c3){const _0x54574f=a6_0x4d11,_0xb6a9a1=_0x1979d7();while(!![]){try{const _0x181b59=-parseInt(_0x54574f(0x1e5))/0x1*(parseInt(_0x54574f(0x1e3))/0x2)+parseInt(_0x54574f(0x1eb))/0x3*(parseInt(_0x54574f(0x1e6))/0x4)+parseInt(_0x54574f(0x1df))/0x5+parseInt(_0x54574f(0x1e9))/0x6+-parseInt(_0x54574f(0x1ed))/0x7*(-parseInt(_0x54574f(0x1e0))/0x8)+-parseInt(_0x54574f(0x1ea))/0x9*(parseInt(_0x54574f(0x1ef))/0xa)+-parseInt(_0x54574f(0x1e7))/0xb*(parseInt(_0x54574f(0x1f0))/0xc);if(_0x181b59===_0x19f7c3)break;else _0xb6a9a1['push'](_0xb6a9a1['shift']());}catch(_0x3e61a2){_0xb6a9a1['push'](_0xb6a9a1['shift']());}}}(a6_0x253f,0x40060));import{getMyApps}from'../../core/api-client.js';import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';import{productEnv}from'../../constant/product.js';export function shouldUseMockRemoteApps(){const _0x5f54d8=a6_0x4d11,_0x2791fc=(productEnv('APP_LIST_SOURCE')||'')[_0x5f54d8(0x1ee)]()['toLowerCase']();return _0x2791fc===_0x5f54d8(0x1e4);}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}function a6_0x4d11(_0x23efbd,_0x4fd60a){_0x23efbd=_0x23efbd-0x1df;const _0x253fe7=a6_0x253f();let _0x4d1188=_0x253fe7[_0x23efbd];return _0x4d1188;}function a6_0x253f(){const _0x4ec7ba=['523726wYjVpZ','trim','10cdkfNn','12vEKhdQ','2325740AthGKy','56EWNmWG','fetchedAt','items','92tgunVy','mock','1213CTBaHq','1856bplHjy','14360533yMGNui','toISOString','2278902ILXBkJ','1869822KSlPmv','2991hXYpKl','cache'];a6_0x253f=function(){return _0x4ec7ba;};return a6_0x253f();}export async function getRemoteAppList(_0x11774f){const _0x12864a=a6_0x4d11,{env:_0xcc3e92,accessKey:_0x12762e,localOnly:localOnly=![],noCache:noCache=![]}=_0x11774f,_0x1326af=readCachedAppList(_0xcc3e92,_0x12762e),_0x31ae51=_0x12762e?.[_0x12864a(0x1ee)]()?getAppCacheFilePath(_0xcc3e92,_0x12762e):null;if(localOnly)return{'items':_0x1326af?.[_0x12864a(0x1e2)]??[],'source':_0x12864a(0x1ec),'fetchedAt':_0x1326af?.[_0x12864a(0x1e1)]??null,'cachePath':_0x31ae51};try{const _0x46082d=await getRemoteAppItems(),_0x135a6a=shouldUseMockRemoteApps()?'mock':'remote',_0x204d2a=new Date()[_0x12864a(0x1e8)](),_0x516e64=_0x12762e?.[_0x12864a(0x1ee)]()?writeCachedAppList(_0xcc3e92,_0x12762e,{'env':_0xcc3e92,'fetchedAt':_0x204d2a,'source':_0x135a6a,'items':_0x46082d}):null;return{'items':_0x46082d,'source':_0x135a6a,'fetchedAt':_0x204d2a,'cachePath':_0x516e64};}catch(_0x4002b0){if(!noCache&&_0x1326af)return{'items':_0x1326af['items'],'source':_0x12864a(0x1ec),'fetchedAt':_0x1326af[_0x12864a(0x1e1)],'cachePath':_0x31ae51};throw _0x4002b0;}}
@@ -1 +1 @@
1
- function a7_0x4438(){const _0x5b6364=['trim','appcode','isCurrent','named','name','appCode','2417331xhFjuP','currentApp','defaultApp','local','2079634ZgcwEU','find','1478375WCZXqg','1624675KziWnv','4454196zZYncI','17803304RdzAQv','18fkOBgB','6314497mpXiwe'];a7_0x4438=function(){return _0x5b6364;};return a7_0x4438();}function a7_0x2968(_0x553a92,_0x566f1e){_0x553a92=_0x553a92-0x1be;const _0x443835=a7_0x4438();let _0x296834=_0x443835[_0x553a92];return _0x296834;}(function(_0x25a8b3,_0xd66cb3){const _0x2a2b12=a7_0x2968,_0x49a308=_0x25a8b3();while(!![]){try{const _0x44f2d9=parseInt(_0x2a2b12(0x1cb))/0x1+-parseInt(_0x2a2b12(0x1c8))/0x2+-parseInt(_0x2a2b12(0x1c4))/0x3+-parseInt(_0x2a2b12(0x1cc))/0x4+parseInt(_0x2a2b12(0x1ca))/0x5*(parseInt(_0x2a2b12(0x1ce))/0x6)+-parseInt(_0x2a2b12(0x1cf))/0x7+parseInt(_0x2a2b12(0x1cd))/0x8;if(_0x44f2d9===_0xd66cb3)break;else _0x49a308['push'](_0x49a308['shift']());}catch(_0x394ef4){_0x49a308['push'](_0x49a308['shift']());}}}(a7_0x4438,0xd5d7b));export function enrichAppListItemsWithMergedSelection(_0x1afc09,_0x259935){const _0x4489e4=a7_0x2968;if(!_0x259935)return;const _0x411228=!!(_0x259935[_0x4489e4(0x1c5)]??_0x259935[_0x4489e4(0x1c6)]);for(const _0x681c43 of _0x1afc09){_0x681c43[_0x4489e4(0x1c0)]=![];}const _0x40cae0=_0x259935[_0x4489e4(0x1c3)]!=null?String(_0x259935['appCode'])[_0x4489e4(0x1be)]():'';if(_0x411228){const _0x71afc6=_0x259935[_0x4489e4(0x1c5)]??_0x259935[_0x4489e4(0x1c6)];if(_0x71afc6){const _0x34f620=_0x1afc09[_0x4489e4(0x1c9)](_0x2fa9de=>_0x2fa9de[_0x4489e4(0x1c1)]===!![]&&_0x2fa9de['name']===_0x71afc6&&_0x2fa9de['definedIn']===_0x4489e4(0x1c7)),_0x4cf785=_0x34f620??_0x1afc09[_0x4489e4(0x1c9)](_0x24818d=>_0x24818d[_0x4489e4(0x1c1)]===!![]&&_0x24818d[_0x4489e4(0x1c2)]===_0x71afc6);if(_0x4cf785){const _0x4f59e7=String(_0x4cf785[_0x4489e4(0x1bf)]??'')[_0x4489e4(0x1be)]();if(!_0x40cae0||_0x4f59e7===_0x40cae0){_0x4cf785['isCurrent']=!![];return;}}}if(_0x40cae0){const _0x39b3a2=_0x1afc09[_0x4489e4(0x1c9)](_0x151005=>String(_0x151005[_0x4489e4(0x1bf)]??'')[_0x4489e4(0x1be)]()===_0x40cae0);_0x39b3a2&&(_0x39b3a2[_0x4489e4(0x1c0)]=!![]);}return;}if(!_0x40cae0)return;for(const _0x41ba3e of _0x1afc09){String(_0x41ba3e[_0x4489e4(0x1bf)]??'')[_0x4489e4(0x1be)]()===_0x40cae0&&(_0x41ba3e[_0x4489e4(0x1c0)]=!![]);}}
1
+ function a7_0x4c34(){const _0x3a0578=['2zyscas','5366340JVHCBz','1166730UuBIbX','appcode','defaultApp','5001438WXQplQ','named','local','appCode','isCurrent','765615XeSPzG','1154340VgLNjy','currentApp','name','trim','960440RFHvbA','2619872bORXIO','find'];a7_0x4c34=function(){return _0x3a0578;};return a7_0x4c34();}function a7_0x2f79(_0x156f8b,_0x8fbe3d){_0x156f8b=_0x156f8b-0x6e;const _0x4c3412=a7_0x4c34();let _0x2f7936=_0x4c3412[_0x156f8b];return _0x2f7936;}(function(_0x21dd8c,_0x2cae52){const _0x3ffe0f=a7_0x2f79,_0x1b55a5=_0x21dd8c();while(!![]){try{const _0x46ef6e=-parseInt(_0x3ffe0f(0x74))/0x1*(-parseInt(_0x3ffe0f(0x72))/0x2)+parseInt(_0x3ffe0f(0x7c))/0x3+parseInt(_0x3ffe0f(0x70))/0x4+parseInt(_0x3ffe0f(0x7d))/0x5+-parseInt(_0x3ffe0f(0x77))/0x6+-parseInt(_0x3ffe0f(0x73))/0x7+-parseInt(_0x3ffe0f(0x6f))/0x8;if(_0x46ef6e===_0x2cae52)break;else _0x1b55a5['push'](_0x1b55a5['shift']());}catch(_0x4ab2bd){_0x1b55a5['push'](_0x1b55a5['shift']());}}}(a7_0x4c34,0x8f703));export function enrichAppListItemsWithMergedSelection(_0x5b3ddf,_0x580ecc){const _0x2361f2=a7_0x2f79;if(!_0x580ecc)return;const _0x3a758a=!!(_0x580ecc[_0x2361f2(0x7e)]??_0x580ecc[_0x2361f2(0x76)]);for(const _0x50386c of _0x5b3ddf){_0x50386c['isCurrent']=![];}const _0x538387=_0x580ecc[_0x2361f2(0x7a)]!=null?String(_0x580ecc[_0x2361f2(0x7a)])[_0x2361f2(0x6e)]():'';if(_0x3a758a){const _0x33d511=_0x580ecc[_0x2361f2(0x7e)]??_0x580ecc[_0x2361f2(0x76)];if(_0x33d511){const _0x4605f4=_0x5b3ddf[_0x2361f2(0x71)](_0x3ab730=>_0x3ab730[_0x2361f2(0x78)]===!![]&&_0x3ab730[_0x2361f2(0x7f)]===_0x33d511&&_0x3ab730['definedIn']===_0x2361f2(0x79)),_0x1de49e=_0x4605f4??_0x5b3ddf['find'](_0x36964c=>_0x36964c[_0x2361f2(0x78)]===!![]&&_0x36964c[_0x2361f2(0x7f)]===_0x33d511);if(_0x1de49e){const _0x496a18=String(_0x1de49e[_0x2361f2(0x75)]??'')[_0x2361f2(0x6e)]();if(!_0x538387||_0x496a18===_0x538387){_0x1de49e['isCurrent']=!![];return;}}}if(_0x538387){const _0x1473b3=_0x5b3ddf[_0x2361f2(0x71)](_0x477c12=>String(_0x477c12[_0x2361f2(0x75)]??'')['trim']()===_0x538387);_0x1473b3&&(_0x1473b3[_0x2361f2(0x7b)]=!![]);}return;}if(!_0x538387)return;for(const _0x23952f of _0x5b3ddf){String(_0x23952f[_0x2361f2(0x75)]??'')[_0x2361f2(0x6e)]()===_0x538387&&(_0x23952f[_0x2361f2(0x7b)]=!![]);}}
@@ -1 +1 @@
1
- const a8_0x178658=a8_0x26cb;(function(_0x287c67,_0x32f53f){const _0x348486=a8_0x26cb,_0x1cbefa=_0x287c67();while(!![]){try{const _0x4d642e=-parseInt(_0x348486(0xdd))/0x1*(-parseInt(_0x348486(0xe6))/0x2)+parseInt(_0x348486(0xd8))/0x3+parseInt(_0x348486(0xd7))/0x4*(-parseInt(_0x348486(0xe7))/0x5)+-parseInt(_0x348486(0xe4))/0x6+parseInt(_0x348486(0xd9))/0x7*(parseInt(_0x348486(0xed))/0x8)+parseInt(_0x348486(0xe3))/0x9*(-parseInt(_0x348486(0xdb))/0xa)+parseInt(_0x348486(0xe5))/0xb*(parseInt(_0x348486(0xe0))/0xc);if(_0x4d642e===_0x32f53f)break;else _0x1cbefa['push'](_0x1cbefa['shift']());}catch(_0x51a5d0){_0x1cbefa['push'](_0x1cbefa['shift']());}}}(a8_0x4023,0x7ee52));function a8_0x4023(){const _0x53096f=['1030071TcLiwc','get','310DQgrcz',',\x20appCode=','31348FBjNDt','validation','trim','48dfjFoa','\x20app-config\x20get\x20<key>','appCode','108666asmuWw','4363800xjEUKK','1356080aFXNfc','38SbukfH','35075ItiKjq','Unable\x20to\x20get\x20app-config\x20value:\x20key=','apiError','read','Get\x20one\x20runtime\x20app-config\x20value\x20by\x20key','key','16BJKgVf','172zKBqTd','1619889vJfOMD'];a8_0x4023=function(){return _0x53096f;};return a8_0x4023();}import{getRuntimeAppConfigByKey}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a8_0x26cb(_0x346d90,_0x1a0636){_0x346d90=_0x346d90-0xd7;const _0x402300=a8_0x4023();let _0x26cb7e=_0x402300[_0x346d90];return _0x26cb7e;}export const appConfigGet={'service':'app-config','command':a8_0x178658(0xda),'description':a8_0x178658(0xeb),'risk':a8_0x178658(0xea),'args':[{'name':a8_0x178658(0xec),'description':'App\x20config\x20key','required':!![]}],'flags':[],async 'execute'(_0x5cb8c1){const _0x4638fc=a8_0x178658,_0x257ef2=_0x5cb8c1['args'][0x0]?.[_0x4638fc(0xdf)]();if(!_0x257ef2)throw CliErrors[_0x4638fc(0xde)]('Missing\x20app-config\x20key.','Usage:\x20'+CLI_BIN_NAME+_0x4638fc(0xe1));try{const _0xda2752=await getRuntimeAppConfigByKey(_0x5cb8c1[_0x4638fc(0xe2)],_0x257ef2);return{'ok':!![],'data':_0xda2752};}catch{throw CliErrors[_0x4638fc(0xe9)](_0x4638fc(0xe8)+_0x257ef2+_0x4638fc(0xdc)+_0x5cb8c1[_0x4638fc(0xe2)],'Check\x20that\x20the\x20key\x20exists,\x20the\x20current\x20AccessKey\x20has\x20permission,\x20and\x20the\x20runtime\x20app-config\x20endpoint\x20is\x20available.');}}};
1
+ function a8_0x2a82(_0x49291c,_0x3c9539){_0x49291c=_0x49291c-0x13c;const _0x2f1e1d=a8_0x2f1e();let _0x2a824c=_0x2f1e1d[_0x49291c];return _0x2a824c;}const a8_0x3954dd=a8_0x2a82;(function(_0x3b2a80,_0x1bda7b){const _0x47e464=a8_0x2a82,_0x3a4f47=_0x3b2a80();while(!![]){try{const _0x14ea94=parseInt(_0x47e464(0x140))/0x1+-parseInt(_0x47e464(0x145))/0x2*(-parseInt(_0x47e464(0x14d))/0x3)+parseInt(_0x47e464(0x14e))/0x4+-parseInt(_0x47e464(0x14b))/0x5*(-parseInt(_0x47e464(0x152))/0x6)+-parseInt(_0x47e464(0x13f))/0x7*(-parseInt(_0x47e464(0x143))/0x8)+parseInt(_0x47e464(0x14a))/0x9+parseInt(_0x47e464(0x148))/0xa*(-parseInt(_0x47e464(0x13d))/0xb);if(_0x14ea94===_0x1bda7b)break;else _0x3a4f47['push'](_0x3a4f47['shift']());}catch(_0x4db06c){_0x3a4f47['push'](_0x3a4f47['shift']());}}}(a8_0x2f1e,0x9497e));import{getRuntimeAppConfigByKey}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const appConfigGet={'service':a8_0x3954dd(0x144),'command':a8_0x3954dd(0x146),'description':a8_0x3954dd(0x13c),'risk':a8_0x3954dd(0x149),'args':[{'name':a8_0x3954dd(0x14c),'description':'App\x20config\x20key','required':!![]}],'flags':[],async 'execute'(_0x4d017f){const _0x7243a5=a8_0x3954dd,_0x2d8c82=_0x4d017f['args'][0x0]?.[_0x7243a5(0x142)]();if(!_0x2d8c82)throw CliErrors[_0x7243a5(0x147)]('Missing\x20app-config\x20key.',_0x7243a5(0x151)+CLI_BIN_NAME+_0x7243a5(0x153));try{const _0x4aaef7=await getRuntimeAppConfigByKey(_0x4d017f[_0x7243a5(0x141)],_0x2d8c82);return{'ok':!![],'data':_0x4aaef7};}catch{throw CliErrors['apiError'](_0x7243a5(0x13e)+_0x2d8c82+_0x7243a5(0x150)+_0x4d017f[_0x7243a5(0x141)],_0x7243a5(0x14f));}}};function a8_0x2f1e(){const _0x4ccdda=['appCode','trim','371024AvDawa','app-config','19666brbiKA','get','validation','20AUEBSi','read','5275989yLCWEn','5MUElkt','key','33SyZEjA','2167284iSdAdO','Check\x20that\x20the\x20key\x20exists,\x20the\x20current\x20AccessKey\x20has\x20permission,\x20and\x20the\x20runtime\x20app-config\x20endpoint\x20is\x20available.',',\x20appCode=','Usage:\x20','593724bbKbrH','\x20app-config\x20get\x20<key>','Get\x20one\x20runtime\x20app-config\x20value\x20by\x20key','7597579yVSsaQ','Unable\x20to\x20get\x20app-config\x20value:\x20key=','21GCxBzr','515723kfnRED'];a8_0x2f1e=function(){return _0x4ccdda;};return a8_0x2f1e();}
@@ -1 +1 @@
1
- (function(_0x3ba056,_0x31224a){const _0x3ac660=a9_0x5f06,_0x5052ef=_0x3ba056();while(!![]){try{const _0x5d4020=-parseInt(_0x3ac660(0xe0))/0x1+-parseInt(_0x3ac660(0xde))/0x2+parseInt(_0x3ac660(0xe2))/0x3*(-parseInt(_0x3ac660(0xe3))/0x4)+parseInt(_0x3ac660(0xdf))/0x5+-parseInt(_0x3ac660(0xdd))/0x6*(parseInt(_0x3ac660(0xe4))/0x7)+parseInt(_0x3ac660(0xe5))/0x8*(-parseInt(_0x3ac660(0xdc))/0x9)+parseInt(_0x3ac660(0xe1))/0xa;if(_0x5d4020===_0x31224a)break;else _0x5052ef['push'](_0x5052ef['shift']());}catch(_0x40f863){_0x5052ef['push'](_0x5052ef['shift']());}}}(a9_0x4255,0x4128c));function a9_0x5f06(_0x2354f6,_0x569e76){_0x2354f6=_0x2354f6-0xdc;const _0x42554c=a9_0x4255();let _0x5f0678=_0x42554c[_0x2354f6];return _0x5f0678;}import{appConfigGet}from'../../commands/app-config/get.js';export const appConfigDefinitions=[appConfigGet];function a9_0x4255(){const _0x345215=['59887mqpEpj','14385730AUTZry','6PkDujU','489548NhRDEa','7myxSck','4304nquegf','7470FtSoLz','1540878ecfOwW','1061232eFNlco','1834745mJNsRS'];a9_0x4255=function(){return _0x345215;};return a9_0x4255();}
1
+ (function(_0x49ce40,_0xaf2c02){const _0x2b66e4=a9_0x4f26,_0x3c267e=_0x49ce40();while(!![]){try{const _0x20b4be=parseInt(_0x2b66e4(0x1ea))/0x1*(parseInt(_0x2b66e4(0x1ec))/0x2)+parseInt(_0x2b66e4(0x1eb))/0x3+parseInt(_0x2b66e4(0x1e9))/0x4+-parseInt(_0x2b66e4(0x1e5))/0x5+-parseInt(_0x2b66e4(0x1e6))/0x6+parseInt(_0x2b66e4(0x1e7))/0x7+parseInt(_0x2b66e4(0x1e8))/0x8*(-parseInt(_0x2b66e4(0x1e4))/0x9);if(_0x20b4be===_0xaf2c02)break;else _0x3c267e['push'](_0x3c267e['shift']());}catch(_0x251495){_0x3c267e['push'](_0x3c267e['shift']());}}}(a9_0x13ed,0xe65f6));function a9_0x13ed(){const _0x3f270b=['2529vrDHzy','8587115XpAtmG','5294550VZvDCQ','10986598rJYfpP','9208IePBgi','601260BDgBJj','682697lcTxgU','2344986Yropzp','4zXPGJI'];a9_0x13ed=function(){return _0x3f270b;};return a9_0x13ed();}import{appConfigGet}from'../../commands/app-config/get.js';function a9_0x4f26(_0x53957d,_0x2cdd96){_0x53957d=_0x53957d-0x1e4;const _0x13ed3c=a9_0x13ed();let _0x4f26c7=_0x13ed3c[_0x53957d];return _0x4f26c7;}export const appConfigDefinitions=[appConfigGet];
@@ -1 +1 @@
1
- const a10_0xff66d8=a10_0x34b7;(function(_0x1acd57,_0x20e78d){const _0x4baa65=a10_0x34b7,_0x24509d=_0x1acd57();while(!![]){try{const _0x4f6b1e=parseInt(_0x4baa65(0xe1))/0x1*(-parseInt(_0x4baa65(0xd7))/0x2)+-parseInt(_0x4baa65(0x100))/0x3+parseInt(_0x4baa65(0xf5))/0x4*(parseInt(_0x4baa65(0xe6))/0x5)+-parseInt(_0x4baa65(0xe4))/0x6*(-parseInt(_0x4baa65(0xd4))/0x7)+-parseInt(_0x4baa65(0xdd))/0x8*(parseInt(_0x4baa65(0xd5))/0x9)+parseInt(_0x4baa65(0xeb))/0xa+parseInt(_0x4baa65(0xf8))/0xb;if(_0x4f6b1e===_0x20e78d)break;else _0x24509d['push'](_0x24509d['shift']());}catch(_0x48938b){_0x24509d['push'](_0x24509d['shift']());}}}(a10_0x3785,0x7d591));function a10_0x34b7(_0x4fd0d1,_0x38fdb5){_0x4fd0d1=_0x4fd0d1-0xcc;const _0x3785c3=a10_0x3785();let _0x34b724=_0x3785c3[_0x4fd0d1];return _0x34b724;}import{readFileSync}from'node:fs';import{resolve}from'node:path';import{approveApprovalTask,getApprovalTaskDetail,listApprovalTodo,transferApprovalTask}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun as a10_0x2007e3}from'../../framework/dryrun.js';import{redactSensitiveValue}from'../../utils/redaction.js';import{parseLosslessJson}from'../../utils/lossless-json.js';const APP_CODE_FLAG={'name':'app-code','type':a10_0xff66d8(0xfe),'description':a10_0xff66d8(0xdb)},PAGE_FLAG={'name':a10_0xff66d8(0xf3),'type':a10_0xff66d8(0xd1),'default':0x1,'description':a10_0xff66d8(0xd8)},PAGE_SIZE_FLAG={'name':a10_0xff66d8(0xe8),'type':'number','default':0x14,'description':a10_0xff66d8(0xd3)},TASK_ID_FLAG={'name':'task-id','type':'string','required':!![],'description':'Runtime\x20approval\x20task\x20ID'},COMMENT_FLAG={'name':'comment','type':'string','description':'Approval\x20or\x20transfer\x20comment'},VARIABLES_FLAG={'name':a10_0xff66d8(0x103),'type':a10_0xff66d8(0xfe),'description':a10_0xff66d8(0x109)},TARGET_USER_ID_FLAG={'name':a10_0xff66d8(0x107),'type':'string','required':!![],'description':'Target\x20user\x20ID\x20selected\x20from\x20Runtime\x20transfer\x20candidates'};function requireApprovalAppCode(_0xd05142){const _0x1b284c=a10_0xff66d8,_0xb85ada=(_0xd05142['str'](_0x1b284c(0xe0))||_0xd05142['mergedCli']?.[_0x1b284c(0xfc)]||_0xd05142[_0x1b284c(0xfc)]||'')[_0x1b284c(0xda)]();if(!_0xb85ada)throw CliErrors[_0x1b284c(0xe5)]('Set\x20--app-code,\x20--appcode,\x20or\x20an\x20active\x20app\x20in\x20the\x20workspace\x20configuration.');return _0xb85ada;}function requireTaskId(_0x525e94){const _0x1f40c9=a10_0xff66d8,_0x37fc23=_0x525e94['str'](_0x1f40c9(0xcc))[_0x1f40c9(0xda)]();if(!_0x37fc23)throw CliErrors[_0x1f40c9(0x104)](_0x1f40c9(0xce));return _0x37fc23;}function a10_0x3785(){const _0x293197=['407543kWqrEC','POST','Show\x20an\x20approval\x20task\x20and\x20its\x20current\x20handling\x20permissions','378CIptdy','configMissing','1385NDSskY','Transferred\x20approval\x20task\x20','page-size','isSafeInteger','Unable\x20to\x20read\x20--variables\x20file.','5417020cAPxew','Approve\x20a\x20pending\x20Runtime\x20task','Preview:\x20transfer\x20an\x20approval\x20task','Transfer\x20a\x20pending\x20Runtime\x20task\x20to\x20an\x20allowed\x20user','approval','startsWith','Preview:\x20reject\x20an\x20approval\x20task','comment','page','reject','4612ivajWc','Transfers\x20the\x20pending\x20Runtime\x20task\x20to\x20the\x20selected\x20eligible\x20user.\x20The\x20current\x20handler\x20may\x20lose\x20permission\x20to\x20process\x20the\x20task.','/client/flow/task/transfer','7937182NnHLTi','List\x20the\x20current\x20user\x27s\x20approval\x20todo\x20tasks','str','Rejected\x20approval\x20task\x20','appCode','num','string','task-detail','1206900XGUeQM','/client/flow/approve','Reject\x20a\x20pending\x20Runtime\x20task','variables','validation','taskId','Approves\x20the\x20pending\x20Runtime\x20task\x20and\x20advances\x20its\x20workflow.\x20This\x20action\x20may\x20trigger\x20downstream\x20nodes\x20and\x20business\x20side\x20effects.','target-user-id','slice','Workflow\x20variables\x20as\x20JSON\x20or\x20@path/to/variables.json','todo','task-id','body','--task-id\x20must\x20not\x20be\x20blank.','description','high-risk-write','number','isArray','Number\x20of\x20todo\x20records\x20per\x20page','13769eJoWVS','5958IOechx','build','2WcvFTw','One-based\x20todo\x20page\x20number','read','trim','Application\x20code\x20(falls\x20back\x20to\x20the\x20active\x20workspace\x20app)','approve','4632PsHVNP','--target-user-id\x20must\x20not\x20be\x20blank.','Preview:\x20approve\x20an\x20approval\x20task','app-code'];a10_0x3785=function(){return _0x293197;};return a10_0x3785();}function validatePage(_0x58284d){const _0x5aff72=a10_0xff66d8,_0x506a01=_0x58284d['num']('page',0x1),_0xd41ad6=_0x58284d[_0x5aff72(0xfd)](_0x5aff72(0xe8),0x14);if(!Number['isSafeInteger'](_0x506a01)||_0x506a01<0x1)throw CliErrors['validation']('--page\x20must\x20be\x20a\x20positive\x20integer.');if(!Number[_0x5aff72(0xe9)](_0xd41ad6)||_0xd41ad6<0x1)throw CliErrors['validation']('--page-size\x20must\x20be\x20a\x20positive\x20integer.');}function readVariables(_0x248e88){const _0x3120ba=a10_0xff66d8,_0x10eb63=_0x248e88[_0x3120ba(0xfa)]('variables')[_0x3120ba(0xda)]();if(!_0x10eb63)return undefined;let _0x292a3e=_0x10eb63;if(_0x10eb63[_0x3120ba(0xf0)]('@')){const _0xed7264=_0x10eb63[_0x3120ba(0x108)](0x1)['trim']();if(!_0xed7264)throw CliErrors[_0x3120ba(0x104)]('--variables\x20@file\x20path\x20must\x20not\x20be\x20blank.');try{_0x292a3e=readFileSync(resolve(_0xed7264),'utf8');}catch{throw CliErrors[_0x3120ba(0x104)](_0x3120ba(0xea));}}let _0x185808;try{_0x185808=parseLosslessJson(_0x292a3e);}catch{throw CliErrors['validation']('--variables\x20must\x20contain\x20valid\x20JSON.');}if(!_0x185808||typeof _0x185808!=='object'||Array[_0x3120ba(0xd2)](_0x185808))throw CliErrors[_0x3120ba(0x104)]('--variables\x20must\x20be\x20a\x20JSON\x20object.');return _0x185808;}function approvalBody(_0x297ad8,_0x2df723){const _0x46b9d1=a10_0xff66d8,_0x39f657={'appCode':requireApprovalAppCode(_0x297ad8),'taskId':requireTaskId(_0x297ad8),'approved':_0x2df723},_0x1d3abf=_0x297ad8[_0x46b9d1(0xfa)](_0x46b9d1(0xf2)),_0x4bd793=readVariables(_0x297ad8);if(_0x1d3abf)_0x39f657[_0x46b9d1(0xf2)]=_0x1d3abf;if(_0x4bd793!==undefined)_0x39f657['variables']=_0x4bd793;return _0x39f657;}function transferBody(_0x162657){const _0x1bce8e=a10_0xff66d8,_0xa20f79=requireTaskId(_0x162657),_0x112588=_0x162657[_0x1bce8e(0xfa)](_0x1bce8e(0x107))[_0x1bce8e(0xda)]();if(!_0x112588)throw CliErrors[_0x1bce8e(0x104)](_0x1bce8e(0xde));const _0x387a99={'appCode':requireApprovalAppCode(_0x162657),'taskId':_0xa20f79,'targetUserId':_0x112588},_0x3458fe=_0x162657[_0x1bce8e(0xfa)](_0x1bce8e(0xf2));if(_0x3458fe)_0x387a99[_0x1bce8e(0xf2)]=_0x3458fe;return _0x387a99;}function sanitized(_0x42103d){return redactSensitiveValue(_0x42103d);}const approvalTodo={'service':a10_0xff66d8(0xef),'command':a10_0xff66d8(0x10a),'description':a10_0xff66d8(0xf9),'risk':a10_0xff66d8(0xd9),'requiresAppCode':![],'flags':[APP_CODE_FLAG,PAGE_FLAG,PAGE_SIZE_FLAG],async 'validate'(_0x366430){requireApprovalAppCode(_0x366430),validatePage(_0x366430);},async 'execute'(_0x1279c9){const _0x2326a8=a10_0xff66d8,_0x362249=requireApprovalAppCode(_0x1279c9),_0xfdfc9b=await listApprovalTodo(_0x362249,_0x1279c9[_0x2326a8(0xfd)](_0x2326a8(0xf3),0x1),_0x1279c9[_0x2326a8(0xfd)](_0x2326a8(0xe8),0x14));return{'ok':!![],'data':sanitized(_0xfdfc9b)};}},approvalTaskDetail={'service':a10_0xff66d8(0xef),'command':a10_0xff66d8(0xff),'description':a10_0xff66d8(0xe3),'risk':a10_0xff66d8(0xd9),'requiresAppCode':![],'flags':[APP_CODE_FLAG,TASK_ID_FLAG],async 'validate'(_0x52f293){requireApprovalAppCode(_0x52f293),requireTaskId(_0x52f293);},async 'execute'(_0x5991f3){const _0xeb7a7=requireTaskId(_0x5991f3),_0x475f5d=await getApprovalTaskDetail(_0xeb7a7,requireApprovalAppCode(_0x5991f3));return{'ok':!![],'data':sanitized(_0x475f5d)};}},approvalApprove={'service':a10_0xff66d8(0xef),'command':a10_0xff66d8(0xdc),'description':a10_0xff66d8(0xec),'risk':a10_0xff66d8(0xd0),'confirmationDescription':a10_0xff66d8(0x106),'requiresAppCode':![],'flags':[APP_CODE_FLAG,TASK_ID_FLAG,COMMENT_FLAG,VARIABLES_FLAG],async 'validate'(_0x842b2f){approvalBody(_0x842b2f,!![]);},async 'execute'(_0x52553c){const _0x3a885d=a10_0xff66d8,_0x424e36=approvalBody(_0x52553c,!![]),_0x4c7140=await approveApprovalTask(_0x424e36);return{'ok':!![],'data':sanitized(_0x4c7140),'message':'Approved\x20approval\x20task\x20'+_0x424e36[_0x3a885d(0x105)]};},async 'dryRun'(_0x3d9c83){const _0x4288c2=a10_0xff66d8,_0x518ea0=approvalBody(_0x3d9c83,!![]);return a10_0x2007e3(_0x4288c2(0xe2),'/client/flow/approve')[_0x4288c2(0xcd)](sanitized(_0x518ea0))[_0x4288c2(0xcf)](_0x4288c2(0xdf))[_0x4288c2(0xd6)]();}},approvalReject={'service':a10_0xff66d8(0xef),'command':a10_0xff66d8(0xf4),'description':a10_0xff66d8(0x102),'risk':a10_0xff66d8(0xd0),'confirmationDescription':'Rejects\x20the\x20pending\x20Runtime\x20task\x20and\x20applies\x20the\x20workflow\x20rejection\x20path.\x20This\x20action\x20may\x20end\x20the\x20workflow\x20or\x20trigger\x20downstream\x20business\x20side\x20effects.','requiresAppCode':![],'flags':[APP_CODE_FLAG,TASK_ID_FLAG,COMMENT_FLAG,VARIABLES_FLAG],async 'validate'(_0x3c0e18){approvalBody(_0x3c0e18,![]);},async 'execute'(_0x187020){const _0xe0f056=a10_0xff66d8,_0x469a2f=approvalBody(_0x187020,![]),_0x2d912a=await approveApprovalTask(_0x469a2f);return{'ok':!![],'data':sanitized(_0x2d912a),'message':_0xe0f056(0xfb)+_0x469a2f['taskId']};},async 'dryRun'(_0x18cef3){const _0x569262=a10_0xff66d8,_0x5566d2=approvalBody(_0x18cef3,![]);return a10_0x2007e3(_0x569262(0xe2),_0x569262(0x101))['body'](sanitized(_0x5566d2))[_0x569262(0xcf)](_0x569262(0xf1))[_0x569262(0xd6)]();}},approvalTransfer={'service':'approval','command':'transfer','description':a10_0xff66d8(0xee),'risk':a10_0xff66d8(0xd0),'confirmationDescription':a10_0xff66d8(0xf6),'requiresAppCode':![],'flags':[APP_CODE_FLAG,TASK_ID_FLAG,TARGET_USER_ID_FLAG,COMMENT_FLAG],async 'validate'(_0x19d986){transferBody(_0x19d986);},async 'execute'(_0x45964f){const _0x46cab7=a10_0xff66d8,_0x3a41e5=transferBody(_0x45964f),_0x2eeef6=await transferApprovalTask(_0x3a41e5);return{'ok':!![],'data':sanitized(_0x2eeef6),'message':_0x46cab7(0xe7)+_0x3a41e5[_0x46cab7(0x105)]};},async 'dryRun'(_0x16f184){const _0x5f1913=a10_0xff66d8,_0x16688f=transferBody(_0x16f184);return a10_0x2007e3('POST',_0x5f1913(0xf7))['body'](sanitized(_0x16688f))[_0x5f1913(0xcf)](_0x5f1913(0xed))[_0x5f1913(0xd6)]();}};export const approvalDefinitions=[approvalTodo,approvalTaskDetail,approvalApprove,approvalReject,approvalTransfer];export{approvalApprove,approvalReject,approvalTaskDetail,approvalTodo,approvalTransfer};
1
+ const a10_0x34c502=a10_0x3ab1;(function(_0x1f6de9,_0x5067d1){const _0x533054=a10_0x3ab1,_0x3e7bfe=_0x1f6de9();while(!![]){try{const _0x3becd9=-parseInt(_0x533054(0x112))/0x1+-parseInt(_0x533054(0x11b))/0x2+parseInt(_0x533054(0x149))/0x3+parseInt(_0x533054(0x121))/0x4+parseInt(_0x533054(0x125))/0x5+parseInt(_0x533054(0x143))/0x6+parseInt(_0x533054(0x11e))/0x7*(-parseInt(_0x533054(0x122))/0x8);if(_0x3becd9===_0x5067d1)break;else _0x3e7bfe['push'](_0x3e7bfe['shift']());}catch(_0x3f5582){_0x3e7bfe['push'](_0x3e7bfe['shift']());}}}(a10_0x2e5f,0xb66ed));import{readFileSync}from'node:fs';import{resolve}from'node:path';import{approveApprovalTask,getApprovalTaskDetail,listApprovalTodo,transferApprovalTask}from'../../core/api-client.js';function a10_0x2e5f(){const _0x16ce56=['559689yWXNsA','Preview:\x20transfer\x20an\x20approval\x20task','/client/flow/task/transfer','build','Preview:\x20approve\x20an\x20approval\x20task','Reject\x20a\x20pending\x20Runtime\x20task','Application\x20code\x20(falls\x20back\x20to\x20the\x20active\x20workspace\x20app)','1104112dOspag','Set\x20--app-code,\x20--appcode,\x20or\x20an\x20active\x20app\x20in\x20the\x20workspace\x20configuration.','Transfers\x20the\x20pending\x20Runtime\x20task\x20to\x20the\x20selected\x20eligible\x20user.\x20The\x20current\x20handler\x20may\x20lose\x20permission\x20to\x20process\x20the\x20task.','string','Number\x20of\x20todo\x20records\x20per\x20page','--page-size\x20must\x20be\x20a\x20positive\x20integer.','--page\x20must\x20be\x20a\x20positive\x20integer.','taskId','approve','566200WFqhrA','POST','--variables\x20must\x20contain\x20valid\x20JSON.','3403505yxucXw','body','num','4921808ZZuVpi','8HHyNQJ','str','page','4171835XyRkFG','number','todo','app-code','reject','trim','description','object','appCode','Workflow\x20variables\x20as\x20JSON\x20or\x20@path/to/variables.json','/client/flow/approve','approval','utf8','isSafeInteger','Approval\x20or\x20transfer\x20comment','Rejects\x20the\x20pending\x20Runtime\x20task\x20and\x20applies\x20the\x20workflow\x20rejection\x20path.\x20This\x20action\x20may\x20end\x20the\x20workflow\x20or\x20trigger\x20downstream\x20business\x20side\x20effects.','comment','variables','mergedCli','validation','target-user-id','high-risk-write','Rejected\x20approval\x20task\x20','startsWith','--target-user-id\x20must\x20not\x20be\x20blank.','Approves\x20the\x20pending\x20Runtime\x20task\x20and\x20advances\x20its\x20workflow.\x20This\x20action\x20may\x20trigger\x20downstream\x20nodes\x20and\x20business\x20side\x20effects.','isArray','Approve\x20a\x20pending\x20Runtime\x20task','page-size','Transferred\x20approval\x20task\x20','2215740YkVjXM','slice','--task-id\x20must\x20not\x20be\x20blank.','read','Runtime\x20approval\x20task\x20ID','task-detail'];a10_0x2e5f=function(){return _0x16ce56;};return a10_0x2e5f();}import{CliErrors}from'../../errors.js';import{dryRun as a10_0x432b60}from'../../framework/dryrun.js';import{redactSensitiveValue}from'../../utils/redaction.js';import{parseLosslessJson}from'../../utils/lossless-json.js';const APP_CODE_FLAG={'name':a10_0x34c502(0x128),'type':a10_0x34c502(0x115),'description':a10_0x34c502(0x111)},PAGE_FLAG={'name':a10_0x34c502(0x124),'type':a10_0x34c502(0x126),'default':0x1,'description':'One-based\x20todo\x20page\x20number'},PAGE_SIZE_FLAG={'name':a10_0x34c502(0x141),'type':a10_0x34c502(0x126),'default':0x14,'description':a10_0x34c502(0x116)},TASK_ID_FLAG={'name':'task-id','type':'string','required':!![],'description':a10_0x34c502(0x147)},COMMENT_FLAG={'name':'comment','type':a10_0x34c502(0x115),'description':a10_0x34c502(0x133)},VARIABLES_FLAG={'name':a10_0x34c502(0x136),'type':'string','description':a10_0x34c502(0x12e)},TARGET_USER_ID_FLAG={'name':a10_0x34c502(0x139),'type':a10_0x34c502(0x115),'required':!![],'description':'Target\x20user\x20ID\x20selected\x20from\x20Runtime\x20transfer\x20candidates'};function requireApprovalAppCode(_0x50c8dc){const _0x16035a=a10_0x34c502,_0x38d8e6=(_0x50c8dc[_0x16035a(0x123)](_0x16035a(0x128))||_0x50c8dc[_0x16035a(0x137)]?.[_0x16035a(0x12d)]||_0x50c8dc[_0x16035a(0x12d)]||'')['trim']();if(!_0x38d8e6)throw CliErrors['configMissing'](_0x16035a(0x113));return _0x38d8e6;}function requireTaskId(_0x5ac877){const _0x1918e0=a10_0x34c502,_0x4d366f=_0x5ac877[_0x1918e0(0x123)]('task-id')[_0x1918e0(0x12a)]();if(!_0x4d366f)throw CliErrors[_0x1918e0(0x138)](_0x1918e0(0x145));return _0x4d366f;}function validatePage(_0x1e2518){const _0x48b416=a10_0x34c502,_0x2dfd13=_0x1e2518['num'](_0x48b416(0x124),0x1),_0x1b5f54=_0x1e2518[_0x48b416(0x120)](_0x48b416(0x141),0x14);if(!Number[_0x48b416(0x132)](_0x2dfd13)||_0x2dfd13<0x1)throw CliErrors[_0x48b416(0x138)](_0x48b416(0x118));if(!Number['isSafeInteger'](_0x1b5f54)||_0x1b5f54<0x1)throw CliErrors[_0x48b416(0x138)](_0x48b416(0x117));}function readVariables(_0x46bf74){const _0x35860b=a10_0x34c502,_0x3c25ed=_0x46bf74[_0x35860b(0x123)](_0x35860b(0x136))[_0x35860b(0x12a)]();if(!_0x3c25ed)return undefined;let _0xa7624a=_0x3c25ed;if(_0x3c25ed[_0x35860b(0x13c)]('@')){const _0x14847a=_0x3c25ed[_0x35860b(0x144)](0x1)[_0x35860b(0x12a)]();if(!_0x14847a)throw CliErrors[_0x35860b(0x138)]('--variables\x20@file\x20path\x20must\x20not\x20be\x20blank.');try{_0xa7624a=readFileSync(resolve(_0x14847a),_0x35860b(0x131));}catch{throw CliErrors[_0x35860b(0x138)]('Unable\x20to\x20read\x20--variables\x20file.');}}let _0x2da804;try{_0x2da804=parseLosslessJson(_0xa7624a);}catch{throw CliErrors[_0x35860b(0x138)](_0x35860b(0x11d));}if(!_0x2da804||typeof _0x2da804!==_0x35860b(0x12c)||Array[_0x35860b(0x13f)](_0x2da804))throw CliErrors[_0x35860b(0x138)]('--variables\x20must\x20be\x20a\x20JSON\x20object.');return _0x2da804;}function approvalBody(_0x3a1ced,_0x34a65b){const _0xdb8590=a10_0x34c502,_0x3796c2={'appCode':requireApprovalAppCode(_0x3a1ced),'taskId':requireTaskId(_0x3a1ced),'approved':_0x34a65b},_0x216929=_0x3a1ced[_0xdb8590(0x123)](_0xdb8590(0x135)),_0xd70b14=readVariables(_0x3a1ced);if(_0x216929)_0x3796c2[_0xdb8590(0x135)]=_0x216929;if(_0xd70b14!==undefined)_0x3796c2[_0xdb8590(0x136)]=_0xd70b14;return _0x3796c2;}function transferBody(_0x3b0635){const _0x5ce1db=a10_0x34c502,_0x51bad3=requireTaskId(_0x3b0635),_0x318d55=_0x3b0635['str'](_0x5ce1db(0x139))[_0x5ce1db(0x12a)]();if(!_0x318d55)throw CliErrors['validation'](_0x5ce1db(0x13d));const _0x2bdabe={'appCode':requireApprovalAppCode(_0x3b0635),'taskId':_0x51bad3,'targetUserId':_0x318d55},_0x3f5673=_0x3b0635[_0x5ce1db(0x123)]('comment');if(_0x3f5673)_0x2bdabe[_0x5ce1db(0x135)]=_0x3f5673;return _0x2bdabe;}function sanitized(_0x275db3){return redactSensitiveValue(_0x275db3);}const approvalTodo={'service':'approval','command':a10_0x34c502(0x127),'description':'List\x20the\x20current\x20user\x27s\x20approval\x20todo\x20tasks','risk':a10_0x34c502(0x146),'requiresAppCode':![],'flags':[APP_CODE_FLAG,PAGE_FLAG,PAGE_SIZE_FLAG],async 'validate'(_0x43123b){requireApprovalAppCode(_0x43123b),validatePage(_0x43123b);},async 'execute'(_0x1e78dd){const _0xeef71e=a10_0x34c502,_0x4a473b=requireApprovalAppCode(_0x1e78dd),_0x56301c=await listApprovalTodo(_0x4a473b,_0x1e78dd['num'](_0xeef71e(0x124),0x1),_0x1e78dd[_0xeef71e(0x120)]('page-size',0x14));return{'ok':!![],'data':sanitized(_0x56301c)};}},approvalTaskDetail={'service':a10_0x34c502(0x130),'command':a10_0x34c502(0x148),'description':'Show\x20an\x20approval\x20task\x20and\x20its\x20current\x20handling\x20permissions','risk':'read','requiresAppCode':![],'flags':[APP_CODE_FLAG,TASK_ID_FLAG],async 'validate'(_0x213566){requireApprovalAppCode(_0x213566),requireTaskId(_0x213566);},async 'execute'(_0x196321){const _0x3c3ded=requireTaskId(_0x196321),_0x36e216=await getApprovalTaskDetail(_0x3c3ded,requireApprovalAppCode(_0x196321));return{'ok':!![],'data':sanitized(_0x36e216)};}},approvalApprove={'service':a10_0x34c502(0x130),'command':a10_0x34c502(0x11a),'description':a10_0x34c502(0x140),'risk':'high-risk-write','confirmationDescription':a10_0x34c502(0x13e),'requiresAppCode':![],'flags':[APP_CODE_FLAG,TASK_ID_FLAG,COMMENT_FLAG,VARIABLES_FLAG],async 'validate'(_0x3d4704){approvalBody(_0x3d4704,!![]);},async 'execute'(_0x2c2462){const _0x1a0257=a10_0x34c502,_0x1b9d4a=approvalBody(_0x2c2462,!![]),_0x1229cc=await approveApprovalTask(_0x1b9d4a);return{'ok':!![],'data':sanitized(_0x1229cc),'message':'Approved\x20approval\x20task\x20'+_0x1b9d4a[_0x1a0257(0x119)]};},async 'dryRun'(_0x160150){const _0x76fb0c=a10_0x34c502,_0x5e1f72=approvalBody(_0x160150,!![]);return a10_0x432b60(_0x76fb0c(0x11c),'/client/flow/approve')[_0x76fb0c(0x11f)](sanitized(_0x5e1f72))[_0x76fb0c(0x12b)](_0x76fb0c(0x10f))[_0x76fb0c(0x10e)]();}},approvalReject={'service':a10_0x34c502(0x130),'command':a10_0x34c502(0x129),'description':a10_0x34c502(0x110),'risk':a10_0x34c502(0x13a),'confirmationDescription':a10_0x34c502(0x134),'requiresAppCode':![],'flags':[APP_CODE_FLAG,TASK_ID_FLAG,COMMENT_FLAG,VARIABLES_FLAG],async 'validate'(_0xb03be9){approvalBody(_0xb03be9,![]);},async 'execute'(_0x521fc6){const _0x36bb08=a10_0x34c502,_0x1f307e=approvalBody(_0x521fc6,![]),_0x151610=await approveApprovalTask(_0x1f307e);return{'ok':!![],'data':sanitized(_0x151610),'message':_0x36bb08(0x13b)+_0x1f307e[_0x36bb08(0x119)]};},async 'dryRun'(_0x319194){const _0x37fe2c=a10_0x34c502,_0x3394d4=approvalBody(_0x319194,![]);return a10_0x432b60(_0x37fe2c(0x11c),_0x37fe2c(0x12f))[_0x37fe2c(0x11f)](sanitized(_0x3394d4))['description']('Preview:\x20reject\x20an\x20approval\x20task')[_0x37fe2c(0x10e)]();}},approvalTransfer={'service':'approval','command':'transfer','description':'Transfer\x20a\x20pending\x20Runtime\x20task\x20to\x20an\x20allowed\x20user','risk':a10_0x34c502(0x13a),'confirmationDescription':a10_0x34c502(0x114),'requiresAppCode':![],'flags':[APP_CODE_FLAG,TASK_ID_FLAG,TARGET_USER_ID_FLAG,COMMENT_FLAG],async 'validate'(_0x1f6bf7){transferBody(_0x1f6bf7);},async 'execute'(_0x5f2e6a){const _0x4c1218=a10_0x34c502,_0x26a25c=transferBody(_0x5f2e6a),_0x40b41e=await transferApprovalTask(_0x26a25c);return{'ok':!![],'data':sanitized(_0x40b41e),'message':_0x4c1218(0x142)+_0x26a25c[_0x4c1218(0x119)]};},async 'dryRun'(_0xd68175){const _0x5eabd7=a10_0x34c502,_0xfe3629=transferBody(_0xd68175);return a10_0x432b60(_0x5eabd7(0x11c),_0x5eabd7(0x10d))['body'](sanitized(_0xfe3629))[_0x5eabd7(0x12b)](_0x5eabd7(0x14a))['build']();}};export const approvalDefinitions=[approvalTodo,approvalTaskDetail,approvalApprove,approvalReject,approvalTransfer];function a10_0x3ab1(_0x226cff,_0x5cadcc){_0x226cff=_0x226cff-0x10d;const _0x2e5f8e=a10_0x2e5f();let _0x3ab1f5=_0x2e5f8e[_0x226cff];return _0x3ab1f5;}export{approvalApprove,approvalReject,approvalTaskDetail,approvalTodo,approvalTransfer};
@@ -1 +1 @@
1
- const a11_0xf3441e=a11_0x3abe;(function(_0x13bcf0,_0x44d971){const _0x29fd13=a11_0x3abe,_0x783af3=_0x13bcf0();while(!![]){try{const _0xcc07d3=parseInt(_0x29fd13(0x13b))/0x1*(parseInt(_0x29fd13(0x130))/0x2)+-parseInt(_0x29fd13(0x129))/0x3*(parseInt(_0x29fd13(0x147))/0x4)+-parseInt(_0x29fd13(0x12b))/0x5+parseInt(_0x29fd13(0x16c))/0x6+parseInt(_0x29fd13(0x16a))/0x7+-parseInt(_0x29fd13(0x12e))/0x8*(-parseInt(_0x29fd13(0x13f))/0x9)+-parseInt(_0x29fd13(0x125))/0xa*(parseInt(_0x29fd13(0x168))/0xb);if(_0xcc07d3===_0x44d971)break;else _0x783af3['push'](_0x783af3['shift']());}catch(_0x3d69cd){_0x783af3['push'](_0x783af3['shift']());}}}(a11_0xc9e0,0x1c303));import{existsSync,readFileSync,statSync}from'node:fs';import{createRuntimeArtifact,getRuntimeArtifact,listRuntimeArtifacts,updateRuntimeArtifact}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const ARTIFACT_TYPE_REACT_MODULE=a11_0xf3441e(0x165),ARTIFACT_SOURCE_AGENT=a11_0xf3441e(0x15e),ALLOWED_REACT_MODULE_IMPORTS=['react',a11_0xf3441e(0x138),a11_0xf3441e(0x135),a11_0xf3441e(0x171),a11_0xf3441e(0x15b),'@ant-design/icons'];function a11_0x3abe(_0x11d9bf,_0x1980fd){_0x11d9bf=_0x11d9bf-0x125;const _0xc9e02e=a11_0xc9e0();let _0x3abe4d=_0xc9e02e[_0x11d9bf];return _0x3abe4d;}export const ALLOWED_REACT_MODULE_IMPORTS_TEXT=ALLOWED_REACT_MODULE_IMPORTS[a11_0xf3441e(0x142)](',\x20');const IMPORT_SOURCE_PATTERNS=[/\bimport\s+(?:type\s+)?(?:[^'";]*?\s+from\s+)?["']([^"']+)["']/g,/\bexport\s+(?:type\s+)?[^'";]*?\s+from\s+["']([^"']+)["']/g,/\bimport\s*\(\s*["']([^"']+)["']\s*\)/g,/\brequire\s*\(\s*["']([^"']+)["']\s*\)/g],PAGE_LEVEL_PATTERNS=[/<!doctype\s+html/i,/<\s*html\b/i,/\bcreateRoot\s*\(/,/\bReactDOM\s*\.\s*render\s*\(/,/\bReactDOM\s*\.\s*createRoot\s*\(/],FILE_FLAG={'name':a11_0xf3441e(0x133),'type':'string','required':!![],'description':a11_0xf3441e(0x127)},ARTIFACT_NAME_FLAG={'name':'name','type':a11_0xf3441e(0x172),'description':a11_0xf3441e(0x163)},METADATA_FLAG={'name':a11_0xf3441e(0x139),'type':a11_0xf3441e(0x172),'description':a11_0xf3441e(0x15d)};function isPlainObject(_0x3a80c9){const _0x5d5b98=a11_0xf3441e;return typeof _0x3a80c9===_0x5d5b98(0x16e)&&_0x3a80c9!==null&&!Array[_0x5d5b98(0x164)](_0x3a80c9);}function a11_0xc9e0(){const _0x5246b6=['content','exec','trim','Artifact\x20display\x20name','isArray','react_module','name','deleted','11SvTIcF','utf8','1253147TnVZEL','flag','381258lVDiPp','description','object','react_module\x20imports\x20are\x20limited\x20to:\x20','/client/artifact/','dayjs','string','split','3556970gBDrUF','artifactType','Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file','read','642OnDvNV','body','262270uZmVwy','POST','add','1519816fDTOsG','build','106fLjqoq','create','Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','file','some','lodash','File\x20path\x20is\x20required.','source','react-dom','metadata','Optional\x20source\x20filter,\x20for\x20example\x20AGENT','2651dUxowj','map','/client/artifact/create','num','9UXESpD','lastIndex','Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','join','Optional\x20favorite-state\x20filter','compiledContent','Show\x20one\x20Artifact\x20by\x20id','Invalid\x20JSON\x20for\x20--metadata:\x20','924ECSAmh','.\x20Unsupported:\x20','artifact','test','length','str','favorite','Preview:\x20update\x20react_module\x20Artifact\x20','createTime','verbose','detail','Updated\x20Artifact\x20','validation','Artifact\x20ID','appCode','includes','isFile','startsWith','--metadata\x20must\x20be\x20a\x20JSON\x20object.','File\x20not\x20found:\x20','antd','bool','Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped','AGENT','updateTime'];a11_0xc9e0=function(){return _0x5246b6;};return a11_0xc9e0();}function readSourceFile(_0x237805){const _0x24e4f1=a11_0xf3441e;if(!_0x237805)throw CliErrors[_0x24e4f1(0x153)](_0x24e4f1(0x136));if(!existsSync(_0x237805))throw CliErrors[_0x24e4f1(0x153)](_0x24e4f1(0x15a)+_0x237805);if(!statSync(_0x237805)[_0x24e4f1(0x157)]())throw CliErrors[_0x24e4f1(0x153)]('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x237805);const _0x56225d=readFileSync(_0x237805,_0x24e4f1(0x169));return validateReactModuleSource(_0x56225d),_0x56225d;}function parseMetadata(_0x4f4a6b){const _0x133ac8=a11_0xf3441e;if(!_0x4f4a6b)return undefined;let _0x5a3c22;try{_0x5a3c22=JSON['parse'](_0x4f4a6b);}catch{throw CliErrors['validation'](_0x133ac8(0x146)+_0x4f4a6b);}if(!isPlainObject(_0x5a3c22))throw CliErrors[_0x133ac8(0x153)](_0x133ac8(0x159));const _0x31615c={..._0x5a3c22};return delete _0x31615c['compiledContent'],_0x31615c;}function getPackageName(_0x82ee3c){const _0x1c8628=a11_0xf3441e;if(_0x82ee3c[_0x1c8628(0x158)]('@')){const [_0x5af834,_0x579dfb]=_0x82ee3c[_0x1c8628(0x173)]('/');return _0x5af834&&_0x579dfb?_0x5af834+'/'+_0x579dfb:_0x82ee3c;}return _0x82ee3c['split']('/')[0x0]||_0x82ee3c;}function validateAllowedImports(_0x5d39a3){const _0x195161=a11_0xf3441e,_0x27ea57=new Set();for(const _0x4479d0 of IMPORT_SOURCE_PATTERNS){_0x4479d0[_0x195161(0x140)]=0x0;let _0x7390dd;while((_0x7390dd=_0x4479d0[_0x195161(0x161)](_0x5d39a3))!==null){const _0x466a1b=_0x7390dd[0x1]?.[_0x195161(0x162)]();_0x466a1b&&_0x27ea57[_0x195161(0x12d)](_0x466a1b);}}const _0x4e38a7=[..._0x27ea57][_0x195161(0x13c)](getPackageName)['filter'](_0x46eeae=>!ALLOWED_REACT_MODULE_IMPORTS[_0x195161(0x156)](_0x46eeae));if(_0x4e38a7['length']>0x0)throw CliErrors[_0x195161(0x153)](_0x195161(0x16f)+ALLOWED_REACT_MODULE_IMPORTS_TEXT+_0x195161(0x148)+[...new Set(_0x4e38a7)][_0x195161(0x142)](',\x20'));}export function validateReactModuleSource(_0x148eb5){const _0x55996e=a11_0xf3441e;if(!_0x148eb5[_0x55996e(0x162)]())throw CliErrors[_0x55996e(0x153)]('Artifact\x20source\x20file\x20is\x20blank.');if(PAGE_LEVEL_PATTERNS[_0x55996e(0x134)](_0x224b94=>_0x224b94[_0x55996e(0x14a)](_0x148eb5)))throw CliErrors[_0x55996e(0x153)]('react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.');validateAllowedImports(_0x148eb5);}function buildArtifactInput(_0x524da0){const _0x5da129=a11_0xf3441e,_0x50445f=readSourceFile(_0x524da0[_0x5da129(0x14c)](_0x5da129(0x133))),_0x58b7e3=_0x524da0[_0x5da129(0x14c)]('name')[_0x5da129(0x162)](),_0x23385=parseMetadata(_0x524da0[_0x5da129(0x14c)](_0x5da129(0x139)));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x58b7e3?{'name':_0x58b7e3}:{},'content':_0x50445f,..._0x23385?{'metadata':_0x23385}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0x56088c){const _0x2c114c=a11_0xf3441e;return{'id':_0x56088c['id'],'name':_0x56088c[_0x2c114c(0x166)],'artifactType':_0x56088c[_0x2c114c(0x126)],'source':_0x56088c[_0x2c114c(0x137)],'favorite':_0x56088c[_0x2c114c(0x14d)],'deleted':_0x56088c[_0x2c114c(0x167)],'createTime':_0x56088c[_0x2c114c(0x14f)],'updateTime':_0x56088c['updateTime']};}function detailArtifact(_0x4e3211){const _0x2059e1=a11_0xf3441e;return{'id':_0x4e3211['id'],'appCode':_0x4e3211[_0x2059e1(0x155)],'name':_0x4e3211['name'],'artifactType':_0x4e3211[_0x2059e1(0x126)],'source':_0x4e3211[_0x2059e1(0x137)],'favorite':_0x4e3211[_0x2059e1(0x14d)],'deleted':_0x4e3211[_0x2059e1(0x167)],'content':_0x4e3211[_0x2059e1(0x160)]??'','compiledContent':_0x4e3211[_0x2059e1(0x144)],'metadata':_0x4e3211[_0x2059e1(0x139)]??{},'createTime':_0x4e3211['createTime'],'updateTime':_0x4e3211[_0x2059e1(0x15f)]};}function readFavoriteFlag(_0x5da972){const _0x582c7d=a11_0xf3441e,_0x5e4f61=_0x5da972[_0x582c7d(0x16b)](_0x582c7d(0x14d));return _0x5e4f61===undefined||_0x5e4f61===null||_0x5e4f61===''?undefined:_0x5da972[_0x582c7d(0x15c)](_0x582c7d(0x14d));}const artifactList={'service':a11_0xf3441e(0x149),'command':'list','description':'List\x20current-app\x20react_module\x20Artifacts','risk':a11_0xf3441e(0x128),'flags':[{'name':a11_0xf3441e(0x137),'type':a11_0xf3441e(0x172),'description':a11_0xf3441e(0x13a)},{'name':a11_0xf3441e(0x14d),'type':'boolean','description':a11_0xf3441e(0x143)},VERBOSE_FLAG],async 'execute'(_0x4c450c){const _0xd81c0=a11_0xf3441e,_0x246142=await listRuntimeArtifacts(_0x4c450c[_0xd81c0(0x155)],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x4c450c[_0xd81c0(0x14c)](_0xd81c0(0x137))?{'source':_0x4c450c[_0xd81c0(0x14c)](_0xd81c0(0x137))}:{},...readFavoriteFlag(_0x4c450c)!==undefined?{'favorite':readFavoriteFlag(_0x4c450c)}:{}});return{'ok':!![],'data':{'total':_0x246142[_0xd81c0(0x14b)],'items':_0x4c450c[_0xd81c0(0x15c)](_0xd81c0(0x150))?_0x246142:_0x246142[_0xd81c0(0x13c)](summarizeArtifact)}};}},artifactDetail={'service':a11_0xf3441e(0x149),'command':a11_0xf3441e(0x151),'description':a11_0xf3441e(0x145),'risk':a11_0xf3441e(0x128),'flags':[{...ID_FLAG,'description':a11_0xf3441e(0x154)}],async 'execute'(_0x519c33){const _0x9289e8=a11_0xf3441e,_0x4dc15c=await getRuntimeArtifact(_0x519c33[_0x9289e8(0x13e)]('id'),_0x519c33[_0x9289e8(0x155)]);return{'ok':!![],'data':detailArtifact(_0x4dc15c)};}},artifactCreate={'service':a11_0xf3441e(0x149),'command':a11_0xf3441e(0x131),'description':a11_0xf3441e(0x141),'risk':a11_0xf3441e(0x128),'flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x18d877){const _0x210570=a11_0xf3441e,_0x1ff31c=buildArtifactInput(_0x18d877),_0x1a7679=await createRuntimeArtifact(_0x18d877[_0x210570(0x155)],_0x1ff31c);return{'ok':!![],'data':detailArtifact(_0x1a7679),'message':'Created\x20Artifact\x20'+_0x1a7679['id']+(_0x1a7679[_0x210570(0x166)]?'\x20('+_0x1a7679['name']+')':'')};},async 'dryRun'(_0x249029){const _0xa69697=a11_0xf3441e,_0xc44115=buildArtifactInput(_0x249029);return dryRun(_0xa69697(0x12c),_0xa69697(0x13d))[_0xa69697(0x12a)]({'appCode':_0x249029[_0xa69697(0x155)],..._0xc44115})[_0xa69697(0x16d)]('Preview:\x20create\x20react_module\x20Artifact')[_0xa69697(0x12f)]();}},artifactUpdate={'service':'artifact','command':'update','description':a11_0xf3441e(0x132),'risk':a11_0xf3441e(0x128),'flags':[{...ID_FLAG,'description':a11_0xf3441e(0x154)},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x422186){const _0x10c4eb=a11_0xf3441e,_0x1e2143=_0x422186[_0x10c4eb(0x13e)]('id'),_0x4fc5a1=buildArtifactInput(_0x422186),_0x1968b3=await updateRuntimeArtifact(_0x1e2143,_0x422186['appCode'],_0x4fc5a1);return{'ok':!![],'data':detailArtifact(_0x1968b3),'message':_0x10c4eb(0x152)+_0x1968b3['id']+(_0x1968b3[_0x10c4eb(0x166)]?'\x20('+_0x1968b3[_0x10c4eb(0x166)]+')':'')};},async 'dryRun'(_0x5a2a26){const _0x5ad2d2=a11_0xf3441e,_0x1df79b=_0x5a2a26[_0x5ad2d2(0x13e)]('id'),_0x39cac6=buildArtifactInput(_0x5a2a26);return dryRun(_0x5ad2d2(0x12c),_0x5ad2d2(0x170)+_0x1df79b+'/update')[_0x5ad2d2(0x12a)]({'appCode':_0x5a2a26[_0x5ad2d2(0x155)],..._0x39cac6})[_0x5ad2d2(0x16d)](_0x5ad2d2(0x14e)+_0x1df79b)[_0x5ad2d2(0x12f)]();}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
1
+ const a11_0x2e603b=a11_0x1c26;(function(_0x1f95d8,_0x1bb49f){const _0x5ae193=a11_0x1c26,_0x2d7590=_0x1f95d8();while(!![]){try{const _0x5ec134=parseInt(_0x5ae193(0x1e6))/0x1+-parseInt(_0x5ae193(0x20b))/0x2+-parseInt(_0x5ae193(0x1f2))/0x3+parseInt(_0x5ae193(0x1d4))/0x4*(parseInt(_0x5ae193(0x20e))/0x5)+parseInt(_0x5ae193(0x1d2))/0x6*(parseInt(_0x5ae193(0x1ea))/0x7)+parseInt(_0x5ae193(0x1fe))/0x8*(-parseInt(_0x5ae193(0x1e8))/0x9)+-parseInt(_0x5ae193(0x1f8))/0xa;if(_0x5ec134===_0x1bb49f)break;else _0x2d7590['push'](_0x2d7590['shift']());}catch(_0x20db9f){_0x2d7590['push'](_0x2d7590['shift']());}}}(a11_0x2793,0x70676));import{existsSync,readFileSync,statSync}from'node:fs';function a11_0x2793(){const _0x4a8e6e=['POST','Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','string','react','17088BZwRKN','Artifact\x20ID','136dCxJpQ','create','.\x20Unsupported:\x20','lastIndex','str','react-dom','Invalid\x20JSON\x20for\x20--metadata:\x20','isFile','Preview:\x20update\x20react_module\x20Artifact\x20','name','validation','body','react_module\x20imports\x20are\x20limited\x20to:\x20','artifact','--metadata\x20must\x20be\x20a\x20JSON\x20object.','Optional\x20source\x20filter,\x20for\x20example\x20AGENT','exec','split','906591eIcKUW','length','3991077tmtzPY','filter','1008NCBtIN','update','react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.','read','metadata','test','file','Artifact\x20source\x20file\x20is\x20blank.','869403nCqkGn','Created\x20Artifact\x20','File\x20not\x20found:\x20','antd','Optional\x20favorite-state\x20filter','utf8','2709180ucAYah','react_module','join','some','Preview:\x20create\x20react_module\x20Artifact','Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped','8owKQnT','File\x20is\x20not\x20a\x20regular\x20file:\x20','favorite','AGENT','createTime','isArray','dayjs','appCode','num','trim','updateTime','bool','object','1215346cEuEcj','deleted','lodash','111110RWwFmt','artifactType','/client/artifact/create','detail','Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file','list','@ant-design/icons','compiledContent','includes','map','/update','source','File\x20path\x20is\x20required.','Updated\x20Artifact\x20','build'];a11_0x2793=function(){return _0x4a8e6e;};return a11_0x2793();}import{createRuntimeArtifact,getRuntimeArtifact,listRuntimeArtifacts,updateRuntimeArtifact}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const ARTIFACT_TYPE_REACT_MODULE=a11_0x2e603b(0x1f9),ARTIFACT_SOURCE_AGENT=a11_0x2e603b(0x201),ALLOWED_REACT_MODULE_IMPORTS=[a11_0x2e603b(0x1d1),a11_0x2e603b(0x1d9),a11_0x2e603b(0x20d),a11_0x2e603b(0x204),a11_0x2e603b(0x1f5),a11_0x2e603b(0x1c5)];export const ALLOWED_REACT_MODULE_IMPORTS_TEXT=ALLOWED_REACT_MODULE_IMPORTS['join'](',\x20');const IMPORT_SOURCE_PATTERNS=[/\bimport\s+(?:type\s+)?(?:[^'";]*?\s+from\s+)?["']([^"']+)["']/g,/\bexport\s+(?:type\s+)?[^'";]*?\s+from\s+["']([^"']+)["']/g,/\bimport\s*\(\s*["']([^"']+)["']\s*\)/g,/\brequire\s*\(\s*["']([^"']+)["']\s*\)/g],PAGE_LEVEL_PATTERNS=[/<!doctype\s+html/i,/<\s*html\b/i,/\bcreateRoot\s*\(/,/\bReactDOM\s*\.\s*render\s*\(/,/\bReactDOM\s*\.\s*createRoot\s*\(/],FILE_FLAG={'name':a11_0x2e603b(0x1f0),'type':'string','required':!![],'description':a11_0x2e603b(0x1c3)},ARTIFACT_NAME_FLAG={'name':a11_0x2e603b(0x1dd),'type':a11_0x2e603b(0x1d0),'description':'Artifact\x20display\x20name'},METADATA_FLAG={'name':'metadata','type':a11_0x2e603b(0x1d0),'description':a11_0x2e603b(0x1fd)};function isPlainObject(_0x2c770a){const _0x1c230e=a11_0x2e603b;return typeof _0x2c770a===_0x1c230e(0x20a)&&_0x2c770a!==null&&!Array[_0x1c230e(0x203)](_0x2c770a);}function readSourceFile(_0x238e13){const _0x223e6b=a11_0x2e603b;if(!_0x238e13)throw CliErrors[_0x223e6b(0x1de)](_0x223e6b(0x1cb));if(!existsSync(_0x238e13))throw CliErrors[_0x223e6b(0x1de)](_0x223e6b(0x1f4)+_0x238e13);if(!statSync(_0x238e13)[_0x223e6b(0x1db)]())throw CliErrors['validation'](_0x223e6b(0x1ff)+_0x238e13);const _0x7311c2=readFileSync(_0x238e13,_0x223e6b(0x1f7));return validateReactModuleSource(_0x7311c2),_0x7311c2;}function parseMetadata(_0x26799b){const _0x1aab0e=a11_0x2e603b;if(!_0x26799b)return undefined;let _0x5df76a;try{_0x5df76a=JSON['parse'](_0x26799b);}catch{throw CliErrors[_0x1aab0e(0x1de)](_0x1aab0e(0x1da)+_0x26799b);}if(!isPlainObject(_0x5df76a))throw CliErrors['validation'](_0x1aab0e(0x1e2));const _0x3f1146={..._0x5df76a};return delete _0x3f1146[_0x1aab0e(0x1c6)],_0x3f1146;}function a11_0x1c26(_0xf85fb2,_0x51be32){_0xf85fb2=_0xf85fb2-0x1c1;const _0x279329=a11_0x2793();let _0x1c26ce=_0x279329[_0xf85fb2];return _0x1c26ce;}function getPackageName(_0x2c995c){const _0x49b376=a11_0x2e603b;if(_0x2c995c['startsWith']('@')){const [_0xef50df,_0x7752b4]=_0x2c995c[_0x49b376(0x1e5)]('/');return _0xef50df&&_0x7752b4?_0xef50df+'/'+_0x7752b4:_0x2c995c;}return _0x2c995c[_0x49b376(0x1e5)]('/')[0x0]||_0x2c995c;}function validateAllowedImports(_0x2ed920){const _0x460a5e=a11_0x2e603b,_0x45bb31=new Set();for(const _0x2736f1 of IMPORT_SOURCE_PATTERNS){_0x2736f1[_0x460a5e(0x1d7)]=0x0;let _0x10afd5;while((_0x10afd5=_0x2736f1[_0x460a5e(0x1e4)](_0x2ed920))!==null){const _0x640de7=_0x10afd5[0x1]?.[_0x460a5e(0x207)]();_0x640de7&&_0x45bb31['add'](_0x640de7);}}const _0x5f0c5b=[..._0x45bb31][_0x460a5e(0x1c8)](getPackageName)[_0x460a5e(0x1e9)](_0x9ae971=>!ALLOWED_REACT_MODULE_IMPORTS[_0x460a5e(0x1c7)](_0x9ae971));if(_0x5f0c5b[_0x460a5e(0x1e7)]>0x0)throw CliErrors[_0x460a5e(0x1de)](_0x460a5e(0x1e0)+ALLOWED_REACT_MODULE_IMPORTS_TEXT+_0x460a5e(0x1d6)+[...new Set(_0x5f0c5b)][_0x460a5e(0x1fa)](',\x20'));}export function validateReactModuleSource(_0x3fc558){const _0x5ad47b=a11_0x2e603b;if(!_0x3fc558['trim']())throw CliErrors['validation'](_0x5ad47b(0x1f1));if(PAGE_LEVEL_PATTERNS[_0x5ad47b(0x1fb)](_0x47f6e3=>_0x47f6e3[_0x5ad47b(0x1ef)](_0x3fc558)))throw CliErrors[_0x5ad47b(0x1de)](_0x5ad47b(0x1ec));validateAllowedImports(_0x3fc558);}function buildArtifactInput(_0x4558a6){const _0xfa6f57=a11_0x2e603b,_0x20546e=readSourceFile(_0x4558a6[_0xfa6f57(0x1d8)](_0xfa6f57(0x1f0))),_0x4547a1=_0x4558a6[_0xfa6f57(0x1d8)](_0xfa6f57(0x1dd))[_0xfa6f57(0x207)](),_0x2413e2=parseMetadata(_0x4558a6['str']('metadata'));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x4547a1?{'name':_0x4547a1}:{},'content':_0x20546e,..._0x2413e2?{'metadata':_0x2413e2}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0x470e74){const _0x556f26=a11_0x2e603b;return{'id':_0x470e74['id'],'name':_0x470e74['name'],'artifactType':_0x470e74[_0x556f26(0x20f)],'source':_0x470e74['source'],'favorite':_0x470e74[_0x556f26(0x200)],'deleted':_0x470e74[_0x556f26(0x20c)],'createTime':_0x470e74[_0x556f26(0x202)],'updateTime':_0x470e74[_0x556f26(0x208)]};}function detailArtifact(_0x5cf639){const _0x21b332=a11_0x2e603b;return{'id':_0x5cf639['id'],'appCode':_0x5cf639[_0x21b332(0x205)],'name':_0x5cf639['name'],'artifactType':_0x5cf639[_0x21b332(0x20f)],'source':_0x5cf639['source'],'favorite':_0x5cf639[_0x21b332(0x200)],'deleted':_0x5cf639[_0x21b332(0x20c)],'content':_0x5cf639['content']??'','compiledContent':_0x5cf639[_0x21b332(0x1c6)],'metadata':_0x5cf639[_0x21b332(0x1ee)]??{},'createTime':_0x5cf639[_0x21b332(0x202)],'updateTime':_0x5cf639['updateTime']};}function readFavoriteFlag(_0x14ef08){const _0x339ebd=a11_0x2e603b,_0x26506f=_0x14ef08['flag'](_0x339ebd(0x200));return _0x26506f===undefined||_0x26506f===null||_0x26506f===''?undefined:_0x14ef08[_0x339ebd(0x209)](_0x339ebd(0x200));}const artifactList={'service':a11_0x2e603b(0x1e1),'command':a11_0x2e603b(0x1c4),'description':'List\x20current-app\x20react_module\x20Artifacts','risk':a11_0x2e603b(0x1ed),'flags':[{'name':a11_0x2e603b(0x1ca),'type':'string','description':a11_0x2e603b(0x1e3)},{'name':a11_0x2e603b(0x200),'type':'boolean','description':a11_0x2e603b(0x1f6)},VERBOSE_FLAG],async 'execute'(_0x172f1a){const _0x318805=a11_0x2e603b,_0x22f2fd=await listRuntimeArtifacts(_0x172f1a['appCode'],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x172f1a[_0x318805(0x1d8)](_0x318805(0x1ca))?{'source':_0x172f1a[_0x318805(0x1d8)](_0x318805(0x1ca))}:{},...readFavoriteFlag(_0x172f1a)!==undefined?{'favorite':readFavoriteFlag(_0x172f1a)}:{}});return{'ok':!![],'data':{'total':_0x22f2fd[_0x318805(0x1e7)],'items':_0x172f1a[_0x318805(0x209)]('verbose')?_0x22f2fd:_0x22f2fd[_0x318805(0x1c8)](summarizeArtifact)}};}},artifactDetail={'service':a11_0x2e603b(0x1e1),'command':a11_0x2e603b(0x1c2),'description':'Show\x20one\x20Artifact\x20by\x20id','risk':'read','flags':[{...ID_FLAG,'description':a11_0x2e603b(0x1d3)}],async 'execute'(_0xbda5b5){const _0x5bf613=a11_0x2e603b,_0x2acc08=await getRuntimeArtifact(_0xbda5b5[_0x5bf613(0x206)]('id'),_0xbda5b5['appCode']);return{'ok':!![],'data':detailArtifact(_0x2acc08)};}},artifactCreate={'service':a11_0x2e603b(0x1e1),'command':a11_0x2e603b(0x1d5),'description':a11_0x2e603b(0x1cf),'risk':a11_0x2e603b(0x1ed),'flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x262877){const _0x185739=a11_0x2e603b,_0x3f1ee3=buildArtifactInput(_0x262877),_0xd0fc19=await createRuntimeArtifact(_0x262877[_0x185739(0x205)],_0x3f1ee3);return{'ok':!![],'data':detailArtifact(_0xd0fc19),'message':_0x185739(0x1f3)+_0xd0fc19['id']+(_0xd0fc19[_0x185739(0x1dd)]?'\x20('+_0xd0fc19['name']+')':'')};},async 'dryRun'(_0x57beeb){const _0x29497b=a11_0x2e603b,_0x513376=buildArtifactInput(_0x57beeb);return dryRun(_0x29497b(0x1ce),_0x29497b(0x1c1))[_0x29497b(0x1df)]({'appCode':_0x57beeb[_0x29497b(0x205)],..._0x513376})['description'](_0x29497b(0x1fc))[_0x29497b(0x1cd)]();}},artifactUpdate={'service':a11_0x2e603b(0x1e1),'command':a11_0x2e603b(0x1eb),'description':'Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','risk':a11_0x2e603b(0x1ed),'flags':[{...ID_FLAG,'description':a11_0x2e603b(0x1d3)},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x592870){const _0x3acd57=a11_0x2e603b,_0x4b82ec=_0x592870[_0x3acd57(0x206)]('id'),_0xedb078=buildArtifactInput(_0x592870),_0x504d91=await updateRuntimeArtifact(_0x4b82ec,_0x592870[_0x3acd57(0x205)],_0xedb078);return{'ok':!![],'data':detailArtifact(_0x504d91),'message':_0x3acd57(0x1cc)+_0x504d91['id']+(_0x504d91[_0x3acd57(0x1dd)]?'\x20('+_0x504d91['name']+')':'')};},async 'dryRun'(_0x50088f){const _0x32a09b=a11_0x2e603b,_0x62b89=_0x50088f[_0x32a09b(0x206)]('id'),_0xe9e10=buildArtifactInput(_0x50088f);return dryRun(_0x32a09b(0x1ce),'/client/artifact/'+_0x62b89+_0x32a09b(0x1c9))[_0x32a09b(0x1df)]({'appCode':_0x50088f[_0x32a09b(0x205)],..._0xe9e10})['description'](_0x32a09b(0x1dc)+_0x62b89)[_0x32a09b(0x1cd)]();}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
@@ -1 +1 @@
1
- function a12_0x31e1(){const _0x373f7b=['Invalid\x20device\x20auth\x20response','global-default','application/json','stderr','json','),\x20retrying...','string','Device\x20authorization\x20cancelled.','Device\x20authorization\x20successful.','removeListener','7011403jSzCDR','Device\x20auth\x20API\x20error\x20(','\x20remaining','Authorize\x20with\x20the\x20device-code\x20flow\x20(complete\x20in\x20the\x20browser;\x20no\x20copy-paste\x20required)','str','Device\x20code\x20expired.\x20Run\x20`lovrabet\x20auth\x20device`\x20to\x20get\x20a\x20new\x20code.','url-only','floor','nonInteractive','/device-auth?code=','145ockdBh','source','log','now','bool','networkError','\x20auth\x20device','28843110nHjgvE','homeDirName','cancelled','device','getTime','signal','lovrabet-cli','Invalid\x20access_key\x20returned\x20by\x20server.','17586epAioU','data','\x20auth\x20status','accessKey','code','once','abort','POST','SIGINT','access_key','The\x20device\x20code\x20is\x20valid\x20for\x2010\x20minutes.','Starts\x20the\x20device-code\x20login\x20flow.\x20On\x20success,\x20the\x20AccessKey\x20is\x20saved\x20to\x20the\x20selected\x20Lovrabet\x20config.\x20The\x20confirmation\x20UI\x20does\x20not\x20show\x20the\x20device\x20code\x20or\x20secret.','createdAt','Device\x20auth\x20API\x20unreachable\x20after\x20multiple\x20retries.','App\x20name\x20shown\x20on\x20authorization\x20page\x20(default:\x20lovrabet)','Device\x20authorization\x20timed\x20out\x20after\x2010\x20minutes.\x20Run\x20`lovrabet\x20auth\x20device`\x20to\x20get\x20a\x20new\x20code.','88692ApzYKB','stringify','object','428802MwvGVs','895696OiQiIY','apiError','status','randomUUID','global','1136788NWygji','AccessKey\x20saved\x20to\x20','toISOString','/api/device-auth/token','project','376PIApDF','&source=','parse','utf8','validation','Write\x20to\x20global\x20config\x20(default)','name','scope','Open\x20this\x20URL\x20in\x20your\x20browser\x20to\x20authorize:','aborted','Device\x20auth\x20API\x20returned\x20HTTP\x20','trim','boolean','success','write','Verify:\x20','Waiting\x20for\x20authorization\x20(timeout:\x2010\x20minutes,\x20Ctrl+C\x20to\x20cancel)...','Print\x20URL\x20to\x20stdout\x20and\x20exit\x20(for\x20WorkBuddy\x20integration)','6JLHPmh','Already\x20authorized.\x20Use\x20`lovrabet\x20auth\x20status`\x20to\x20verify.','expired'];a12_0x31e1=function(){return _0x373f7b;};return a12_0x31e1();}const a12_0x467d75=a12_0x1ce9;(function(_0x3f4941,_0x11007c){const _0x37bda9=a12_0x1ce9,_0x156dcd=_0x3f4941();while(!![]){try{const _0x455d86=-parseInt(_0x37bda9(0x114))/0x1+parseInt(_0x37bda9(0x10f))/0x2+parseInt(_0x37bda9(0x10e))/0x3+-parseInt(_0x37bda9(0x10b))/0x4*(parseInt(_0x37bda9(0xec))/0x5)+parseInt(_0x37bda9(0x12b))/0x6*(-parseInt(_0x37bda9(0x138))/0x7)+-parseInt(_0x37bda9(0x119))/0x8*(parseInt(_0x37bda9(0xfb))/0x9)+parseInt(_0x37bda9(0xf3))/0xa;if(_0x455d86===_0x11007c)break;else _0x156dcd['push'](_0x156dcd['shift']());}catch(_0x58c3ef){_0x156dcd['push'](_0x156dcd['shift']());}}}(a12_0x31e1,0x92edd));import{existsSync,mkdirSync,readFileSync,unlinkSync,writeFileSync}from'node:fs';import{dirname}from'node:path';function a12_0x1ce9(_0x5ab65d,_0x12ab49){_0x5ab65d=_0x5ab65d-0xe3;const _0x31e1e8=a12_0x31e1();let _0x1ce912=_0x31e1e8[_0x5ab65d];return _0x1ce912;}import{homedir}from'node:os';import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.js';import{getUserDomain}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';function resolveAuthScopeFlags(_0x165a7b){const _0x4d1306=a12_0x1ce9;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x165a7b[_0x4d1306(0xf0)](_0x4d1306(0x113)),'explicitProject':_0x165a7b[_0x4d1306(0xf0)]('project'),'policy':_0x4d1306(0x12f)}));}const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/,DEVICE_CODE_TTL_MS=0x927c0,POLL_INTERVAL_MS=0xbb8,MAX_POLLS=0xc8,MAX_CONSECUTIVE_NETWORK_ERRORS=0x5;export function generateDeviceCode(){const _0x16bd53=a12_0x1ce9;return crypto[_0x16bd53(0x112)]();}export function buildDeviceAuthUrl(_0xef2365,_0x3fecfc,_0x57d9cd=a12_0x467d75(0xf9)){const _0x228351=a12_0x467d75;return _0xef2365+_0x228351(0xeb)+encodeURIComponent(_0x3fecfc)+_0x228351(0x11a)+encodeURIComponent(_0x57d9cd);}export function getDeviceCodePath(){const _0x3c42a8=a12_0x467d75;return homedir()+'/'+PRODUCT_CONFIG[_0x3c42a8(0xf4)]+'/.device-auth';}export function readStoredDeviceCode(){const _0x3b78fd=a12_0x467d75,_0x4cf66a=getDeviceCodePath();if(!existsSync(_0x4cf66a))return null;try{const _0x3cd78e=readFileSync(_0x4cf66a,{'encoding':_0x3b78fd(0x11c)}),_0x147cef=JSON[_0x3b78fd(0x11b)](_0x3cd78e);if(_0x147cef&&typeof _0x147cef[_0x3b78fd(0xff)]===_0x3b78fd(0x134)&&typeof _0x147cef['createdAt']===_0x3b78fd(0x134)&&(_0x147cef['scope']==='global'||_0x147cef[_0x3b78fd(0x120)]===_0x3b78fd(0x118)))return _0x147cef;}catch{}return null;}export function writeStoredDeviceCode(_0x5d972d,_0x3d94da){const _0x19003e=a12_0x467d75,_0xe26c93=getDeviceCodePath(),_0x1e5820=dirname(_0xe26c93);!existsSync(_0x1e5820)&&mkdirSync(_0x1e5820,{'recursive':!![]});const _0x24cce1={'code':_0x5d972d,'createdAt':new Date()[_0x19003e(0x116)](),'scope':_0x3d94da};writeFileSync(_0xe26c93,JSON[_0x19003e(0x10c)](_0x24cce1),{'encoding':_0x19003e(0x11c),'mode':0x180});}export function deleteStoredDeviceCode(){const _0x1acf6d=getDeviceCodePath();try{unlinkSync(_0x1acf6d);}catch{}}export function isStoredDeviceCodeExpired(_0x37c18e){const _0x2a8e61=a12_0x467d75;return Date[_0x2a8e61(0xef)]()-new Date(_0x37c18e[_0x2a8e61(0x107)])[_0x2a8e61(0xf7)]()>DEVICE_CODE_TTL_MS;}export async function fetchDeviceToken(_0x5d12cb,_0x4dc989){const _0x441762=a12_0x467d75,_0x472ec5=_0x5d12cb+_0x441762(0x117),_0x247338=new AbortController(),_0x1a09e2=setTimeout(()=>_0x247338[_0x441762(0x101)](),0x2710),_0x1d3a1a=await fetch(_0x472ec5,{'method':_0x441762(0x102),'headers':{'Content-Type':_0x441762(0x130)},'body':JSON[_0x441762(0x10c)]({'code':_0x4dc989}),'signal':_0x247338[_0x441762(0xf8)]});clearTimeout(_0x1a09e2);if(!_0x1d3a1a['ok'])throw CliErrors[_0x441762(0xf1)](_0x441762(0x123)+_0x1d3a1a[_0x441762(0x111)]);const _0x48925f=await _0x1d3a1a[_0x441762(0x132)](),_0x2bebcc=_0x48925f[_0x441762(0xfc)]&&typeof _0x48925f['data']===_0x441762(0x10d)?_0x48925f[_0x441762(0xfc)]:_0x48925f;if(!_0x2bebcc||typeof _0x2bebcc[_0x441762(0x111)]!==_0x441762(0x134))throw CliErrors[_0x441762(0x110)](_0x441762(0x12e));return{'status':_0x2bebcc['status'],'access_key':typeof _0x2bebcc[_0x441762(0x104)]==='string'?_0x2bebcc['access_key']:undefined};}export async function pollDeviceToken(_0x25e3db,_0x591370,_0x4a654f){const _0x4d9da8=a12_0x467d75;let _0x5676f5=0x0;for(let _0x42e646=0x0;_0x42e646<MAX_POLLS;_0x42e646++){if(_0x4a654f[_0x4d9da8(0x122)])throw CliErrors[_0x4d9da8(0xf5)](_0x4d9da8(0x135));let _0x4a1572;try{_0x4a1572=await fetchDeviceToken(_0x25e3db,_0x591370);}catch(_0x47e07c){if(_0x47e07c instanceof Error&&_0x47e07c[_0x4d9da8(0x11f)]==='AbortError')throw CliErrors[_0x4d9da8(0xf5)]('Device\x20authorization\x20cancelled.');_0x5676f5++;if(_0x5676f5>=MAX_CONSECUTIVE_NETWORK_ERRORS)throw CliErrors[_0x4d9da8(0xf1)](_0x4d9da8(0x108));writeCliSideChannelLine(_0x4d9da8(0xe3)+_0x5676f5+'/'+MAX_CONSECUTIVE_NETWORK_ERRORS+_0x4d9da8(0x133)),await sleep(POLL_INTERVAL_MS);continue;}_0x5676f5=0x0;if(_0x4a1572[_0x4d9da8(0x111)]===_0x4d9da8(0x126)){if(!_0x4a1572[_0x4d9da8(0x104)])throw CliErrors['apiError'](_0x4d9da8(0xfa));return _0x4a1572[_0x4d9da8(0x104)];}if(_0x4a1572[_0x4d9da8(0x111)]===_0x4d9da8(0x12d)){deleteStoredDeviceCode();throw CliErrors['validation'](_0x4d9da8(0xe7));}const _0x52830e=(_0x42e646+0x1)*POLL_INTERVAL_MS,_0x372b4c=DEVICE_CODE_TTL_MS-_0x52830e,_0x5ecdf0=Math[_0x4d9da8(0xe9)](_0x372b4c/0xea60),_0xae64d5=Math[_0x4d9da8(0xe9)](_0x372b4c%0xea60/0x3e8);process[_0x4d9da8(0x131)]['write']('\x0dWaiting\x20for\x20authorization...\x20'+_0x5ecdf0+':'+String(_0xae64d5)['padStart'](0x2,'0')+_0x4d9da8(0xe4)),await sleep(POLL_INTERVAL_MS);}deleteStoredDeviceCode();throw CliErrors[_0x4d9da8(0x11d)](_0x4d9da8(0x10a));}function sleep(_0x3e10c9){return new Promise(_0x16c4f4=>setTimeout(_0x16c4f4,_0x3e10c9));}export const authDeviceDefinition={'service':'auth','command':a12_0x467d75(0xf6),'description':a12_0x467d75(0xe5),'risk':a12_0x467d75(0x127),'confirmationDescription':a12_0x467d75(0x106),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x467d75(0x113),'type':a12_0x467d75(0x125),'description':a12_0x467d75(0x11e),'default':!![]},{'name':'project','type':'boolean','description':'Write\x20to\x20project\x20config','default':![]},{'name':a12_0x467d75(0xed),'type':'string','description':a12_0x467d75(0x109),'default':a12_0x467d75(0xf9)},{'name':a12_0x467d75(0xe8),'type':a12_0x467d75(0x125),'description':a12_0x467d75(0x12a),'default':![]}],async 'execute'(_0x3df53c){const _0x18ec55=a12_0x467d75,_0x5f05ba=resolveAuthScopeFlags(_0x3df53c),_0x1ba5b7=_0x5f05ba[_0x18ec55(0x113)]?_0x18ec55(0x113):_0x18ec55(0x118),_0x3d20b4=readScopedConfig(_0x5f05ba);if(_0x3d20b4[_0x18ec55(0xfe)])return{'ok':!![],'message':_0x18ec55(0x12c)};const _0x19a75f=(_0x3df53c[_0x18ec55(0xe6)](_0x18ec55(0xed))||'lovrabet-cli')[_0x18ec55(0x124)](),_0x51288c=getUserDomain(),_0x22feb9=readStoredDeviceCode(),_0x821373=_0x22feb9&&!isStoredDeviceCodeExpired(_0x22feb9)?_0x22feb9[_0x18ec55(0xff)]:((()=>{const _0x3b87c7=generateDeviceCode();return writeStoredDeviceCode(_0x3b87c7,_0x1ba5b7),_0x3b87c7;})()),_0xb53d76=buildDeviceAuthUrl(_0x51288c,_0x821373,_0x19a75f);if(_0x3df53c[_0x18ec55(0xf0)]('url-only'))return console[_0x18ec55(0xee)](_0xb53d76),{'ok':!![]};writeCliSideChannelLine(_0x18ec55(0x121)),writeCliSideChannelLine(''),writeCliSideChannelLine(_0xb53d76),writeCliSideChannelLine(''),writeCliSideChannelLine(_0x18ec55(0x105));if(_0x3df53c[_0x18ec55(0xea)])return writeCliSideChannelLine('After\x20authorizing,\x20re-run:\x20'+CLI_BIN_NAME+_0x18ec55(0xf2)),{'ok':!![],'message':'Device\x20authorization\x20URL\x20printed.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20re-run.'};writeCliSideChannelLine(_0x18ec55(0x129));const _0x22c757=new AbortController(),_0x25b322=()=>{const _0x355370=_0x18ec55;_0x22c757[_0x355370(0x101)](),process[_0x355370(0x137)](_0x355370(0x103),_0x25b322);};process[_0x18ec55(0x100)](_0x18ec55(0x103),_0x25b322);let _0x181c49;try{_0x181c49=await pollDeviceToken(_0x51288c,_0x821373,_0x22c757[_0x18ec55(0xf8)]);}finally{process['removeListener']('SIGINT',_0x25b322);}if(!ACCESS_KEY_PATTERN['test'](_0x181c49))throw CliErrors[_0x18ec55(0x110)]('Invalid\x20access_key\x20returned\x20by\x20server.');const _0x5b2715=readScopedConfig(_0x5f05ba);return _0x5b2715[_0x18ec55(0xfe)]=_0x181c49,writeScopedConfig(_0x5b2715,_0x5f05ba),deleteStoredDeviceCode(),process[_0x18ec55(0x131)]['write']('\x0a'),writeCliSideChannelLine(_0x18ec55(0x115)+_0x1ba5b7+'\x20config.'),writeCliSideChannelLine(_0x18ec55(0x128)+CLI_BIN_NAME+_0x18ec55(0xfd)),{'ok':!![],'message':_0x18ec55(0x136)};}};
1
+ const a12_0x34c27a=a12_0x5b75;(function(_0x5dba78,_0x2f2dbc){const _0x10d2c8=a12_0x5b75,_0x1ee5b4=_0x5dba78();while(!![]){try{const _0x322271=parseInt(_0x10d2c8(0x22a))/0x1*(-parseInt(_0x10d2c8(0x21f))/0x2)+-parseInt(_0x10d2c8(0x228))/0x3+parseInt(_0x10d2c8(0x1ff))/0x4+parseInt(_0x10d2c8(0x20e))/0x5+-parseInt(_0x10d2c8(0x204))/0x6+-parseInt(_0x10d2c8(0x208))/0x7+parseInt(_0x10d2c8(0x231))/0x8*(parseInt(_0x10d2c8(0x1ef))/0x9);if(_0x322271===_0x2f2dbc)break;else _0x1ee5b4['push'](_0x1ee5b4['shift']());}catch(_0xff4ea1){_0x1ee5b4['push'](_0x1ee5b4['shift']());}}}(a12_0x5608,0x44b96));import{existsSync,mkdirSync,readFileSync,unlinkSync,writeFileSync}from'node:fs';import{dirname}from'node:path';import{homedir}from'node:os';import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a12_0x5b75(_0x777221,_0x4f6483){_0x777221=_0x777221-0x1ee;const _0x560861=a12_0x5608();let _0x5b755a=_0x560861[_0x777221];return _0x5b755a;}import{PRODUCT_CONFIG}from'../../constant/product.js';import{getUserDomain}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';function a12_0x5608(){const _0x11c827=['Device\x20auth\x20API\x20unreachable\x20after\x20multiple\x20retries.','2131VSdjMa','networkError','auth','url-only','Invalid\x20device\x20auth\x20response','Starts\x20the\x20device-code\x20login\x20flow.\x20On\x20success,\x20the\x20AccessKey\x20is\x20saved\x20to\x20the\x20selected\x20Lovrabet\x20config.\x20The\x20confirmation\x20UI\x20does\x20not\x20show\x20the\x20device\x20code\x20or\x20secret.','Device\x20auth\x20API\x20returned\x20HTTP\x20','1887912pfFxCW','Waiting\x20for\x20authorization\x20(timeout:\x2010\x20minutes,\x20Ctrl+C\x20to\x20cancel)...','bool','application/json','scope','success','string','nonInteractive','/.device-auth','18JrVipX','global-default','removeListener','accessKey','SIGINT','floor','/api/device-auth/token','code','Already\x20authorized.\x20Use\x20`lovrabet\x20auth\x20status`\x20to\x20verify.','POST','Device\x20authorization\x20URL\x20printed.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20re-run.','\x20remaining','Invalid\x20access_key\x20returned\x20by\x20server.','AbortError','source','stringify','1645296vbaqPm','now','signal','access_key','Device\x20authorization\x20successful.','1092360LtqSIt','object','apiError','data','1629201jJWWfs','App\x20name\x20shown\x20on\x20authorization\x20page\x20(default:\x20lovrabet)','name','\x20config.','After\x20authorizing,\x20re-run:\x20','Device\x20authorization\x20cancelled.','2204090INfiwL','str','stderr','cancelled','boolean','\x20auth\x20status','\x0dWaiting\x20for\x20authorization...\x20','expired','once','Write\x20to\x20project\x20config','validation','status','Device\x20auth\x20API\x20error\x20(','aborted','homeDirName','global','project','334ltlYLq','&source=','getTime','Authorize\x20with\x20the\x20device-code\x20flow\x20(complete\x20in\x20the\x20browser;\x20no\x20copy-paste\x20required)','/device-auth?code=','lovrabet-cli','),\x20retrying...','createdAt','padStart','815838TpDEBH'];a12_0x5608=function(){return _0x11c827;};return a12_0x5608();}function resolveAuthScopeFlags(_0x56ab19){const _0x3158ff=a12_0x5b75;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x56ab19[_0x3158ff(0x233)](_0x3158ff(0x21d)),'explicitProject':_0x56ab19[_0x3158ff(0x233)](_0x3158ff(0x21e)),'policy':_0x3158ff(0x1f0)}));}const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/,DEVICE_CODE_TTL_MS=0x927c0,POLL_INTERVAL_MS=0xbb8,MAX_POLLS=0xc8,MAX_CONSECUTIVE_NETWORK_ERRORS=0x5;export function generateDeviceCode(){return crypto['randomUUID']();}export function buildDeviceAuthUrl(_0x342554,_0x4edcaf,_0x177389=a12_0x34c27a(0x224)){const _0x5cac31=a12_0x34c27a;return _0x342554+_0x5cac31(0x223)+encodeURIComponent(_0x4edcaf)+_0x5cac31(0x220)+encodeURIComponent(_0x177389);}export function getDeviceCodePath(){const _0x10a761=a12_0x34c27a;return homedir()+'/'+PRODUCT_CONFIG[_0x10a761(0x21c)]+_0x10a761(0x1ee);}export function readStoredDeviceCode(){const _0x4b02b0=a12_0x34c27a,_0x4f4eb=getDeviceCodePath();if(!existsSync(_0x4f4eb))return null;try{const _0x417f85=readFileSync(_0x4f4eb,{'encoding':'utf8'}),_0x18e19b=JSON['parse'](_0x417f85);if(_0x18e19b&&typeof _0x18e19b[_0x4b02b0(0x1f6)]===_0x4b02b0(0x237)&&typeof _0x18e19b[_0x4b02b0(0x226)]===_0x4b02b0(0x237)&&(_0x18e19b['scope']===_0x4b02b0(0x21d)||_0x18e19b[_0x4b02b0(0x235)]===_0x4b02b0(0x21e)))return _0x18e19b;}catch{}return null;}export function writeStoredDeviceCode(_0x131cb2,_0x1a3a0e){const _0x395c0d=a12_0x34c27a,_0x4f858b=getDeviceCodePath(),_0x1e407c=dirname(_0x4f858b);!existsSync(_0x1e407c)&&mkdirSync(_0x1e407c,{'recursive':!![]});const _0xcda9e8={'code':_0x131cb2,'createdAt':new Date()['toISOString'](),'scope':_0x1a3a0e};writeFileSync(_0x4f858b,JSON[_0x395c0d(0x1fe)](_0xcda9e8),{'encoding':'utf8','mode':0x180});}export function deleteStoredDeviceCode(){const _0x179fc3=getDeviceCodePath();try{unlinkSync(_0x179fc3);}catch{}}export function isStoredDeviceCodeExpired(_0xea4560){const _0x555a99=a12_0x34c27a;return Date[_0x555a99(0x200)]()-new Date(_0xea4560[_0x555a99(0x226)])[_0x555a99(0x221)]()>DEVICE_CODE_TTL_MS;}export async function fetchDeviceToken(_0x56e2e1,_0x10be70){const _0x3a4daf=a12_0x34c27a,_0xed83fc=_0x56e2e1+_0x3a4daf(0x1f5),_0xd48e1d=new AbortController(),_0x497bef=setTimeout(()=>_0xd48e1d['abort'](),0x2710),_0x172795=await fetch(_0xed83fc,{'method':_0x3a4daf(0x1f8),'headers':{'Content-Type':_0x3a4daf(0x234)},'body':JSON['stringify']({'code':_0x10be70}),'signal':_0xd48e1d[_0x3a4daf(0x201)]});clearTimeout(_0x497bef);if(!_0x172795['ok'])throw CliErrors['networkError'](_0x3a4daf(0x230)+_0x172795['status']);const _0xf8930e=await _0x172795['json'](),_0x2d923e=_0xf8930e[_0x3a4daf(0x207)]&&typeof _0xf8930e[_0x3a4daf(0x207)]===_0x3a4daf(0x205)?_0xf8930e['data']:_0xf8930e;if(!_0x2d923e||typeof _0x2d923e[_0x3a4daf(0x219)]!==_0x3a4daf(0x237))throw CliErrors[_0x3a4daf(0x206)](_0x3a4daf(0x22e));return{'status':_0x2d923e[_0x3a4daf(0x219)],'access_key':typeof _0x2d923e['access_key']===_0x3a4daf(0x237)?_0x2d923e[_0x3a4daf(0x202)]:undefined};}export async function pollDeviceToken(_0xa3cc12,_0x265f26,_0x13eb0c){const _0x2ed68f=a12_0x34c27a;let _0x5260d3=0x0;for(let _0x4e665c=0x0;_0x4e665c<MAX_POLLS;_0x4e665c++){if(_0x13eb0c[_0x2ed68f(0x21b)])throw CliErrors[_0x2ed68f(0x211)]('Device\x20authorization\x20cancelled.');let _0x2df0af;try{_0x2df0af=await fetchDeviceToken(_0xa3cc12,_0x265f26);}catch(_0x3d80f1){if(_0x3d80f1 instanceof Error&&_0x3d80f1[_0x2ed68f(0x20a)]===_0x2ed68f(0x1fc))throw CliErrors[_0x2ed68f(0x211)](_0x2ed68f(0x20d));_0x5260d3++;if(_0x5260d3>=MAX_CONSECUTIVE_NETWORK_ERRORS)throw CliErrors[_0x2ed68f(0x22b)](_0x2ed68f(0x229));writeCliSideChannelLine(_0x2ed68f(0x21a)+_0x5260d3+'/'+MAX_CONSECUTIVE_NETWORK_ERRORS+_0x2ed68f(0x225)),await sleep(POLL_INTERVAL_MS);continue;}_0x5260d3=0x0;if(_0x2df0af[_0x2ed68f(0x219)]===_0x2ed68f(0x236)){if(!_0x2df0af['access_key'])throw CliErrors[_0x2ed68f(0x206)]('Invalid\x20access_key\x20returned\x20by\x20server.');return _0x2df0af[_0x2ed68f(0x202)];}if(_0x2df0af['status']===_0x2ed68f(0x215)){deleteStoredDeviceCode();throw CliErrors[_0x2ed68f(0x218)]('Device\x20code\x20expired.\x20Run\x20`lovrabet\x20auth\x20device`\x20to\x20get\x20a\x20new\x20code.');}const _0x350087=(_0x4e665c+0x1)*POLL_INTERVAL_MS,_0x454fdc=DEVICE_CODE_TTL_MS-_0x350087,_0x572f68=Math['floor'](_0x454fdc/0xea60),_0x2d541b=Math[_0x2ed68f(0x1f4)](_0x454fdc%0xea60/0x3e8);process[_0x2ed68f(0x210)]['write'](_0x2ed68f(0x214)+_0x572f68+':'+String(_0x2d541b)[_0x2ed68f(0x227)](0x2,'0')+_0x2ed68f(0x1fa)),await sleep(POLL_INTERVAL_MS);}deleteStoredDeviceCode();throw CliErrors[_0x2ed68f(0x218)]('Device\x20authorization\x20timed\x20out\x20after\x2010\x20minutes.\x20Run\x20`lovrabet\x20auth\x20device`\x20to\x20get\x20a\x20new\x20code.');}function sleep(_0x277468){return new Promise(_0x426e1f=>setTimeout(_0x426e1f,_0x277468));}export const authDeviceDefinition={'service':a12_0x34c27a(0x22c),'command':'device','description':a12_0x34c27a(0x222),'risk':'write','confirmationDescription':a12_0x34c27a(0x22f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'global','type':a12_0x34c27a(0x212),'description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':a12_0x34c27a(0x21e),'type':a12_0x34c27a(0x212),'description':a12_0x34c27a(0x217),'default':![]},{'name':a12_0x34c27a(0x1fd),'type':a12_0x34c27a(0x237),'description':a12_0x34c27a(0x209),'default':a12_0x34c27a(0x224)},{'name':a12_0x34c27a(0x22d),'type':a12_0x34c27a(0x212),'description':'Print\x20URL\x20to\x20stdout\x20and\x20exit\x20(for\x20WorkBuddy\x20integration)','default':![]}],async 'execute'(_0x2cd815){const _0x4c8bbe=a12_0x34c27a,_0x58b640=resolveAuthScopeFlags(_0x2cd815),_0x3ece3c=_0x58b640[_0x4c8bbe(0x21d)]?_0x4c8bbe(0x21d):'project',_0x2cc7ca=readScopedConfig(_0x58b640);if(_0x2cc7ca[_0x4c8bbe(0x1f2)])return{'ok':!![],'message':_0x4c8bbe(0x1f7)};const _0x50d3ec=(_0x2cd815[_0x4c8bbe(0x20f)](_0x4c8bbe(0x1fd))||_0x4c8bbe(0x224))['trim'](),_0x119566=getUserDomain(),_0x1f81a0=readStoredDeviceCode(),_0x51e59c=_0x1f81a0&&!isStoredDeviceCodeExpired(_0x1f81a0)?_0x1f81a0[_0x4c8bbe(0x1f6)]:((()=>{const _0x490845=generateDeviceCode();return writeStoredDeviceCode(_0x490845,_0x3ece3c),_0x490845;})()),_0x20a8d6=buildDeviceAuthUrl(_0x119566,_0x51e59c,_0x50d3ec);if(_0x2cd815[_0x4c8bbe(0x233)](_0x4c8bbe(0x22d)))return console['log'](_0x20a8d6),{'ok':!![]};writeCliSideChannelLine('Open\x20this\x20URL\x20in\x20your\x20browser\x20to\x20authorize:'),writeCliSideChannelLine(''),writeCliSideChannelLine(_0x20a8d6),writeCliSideChannelLine(''),writeCliSideChannelLine('The\x20device\x20code\x20is\x20valid\x20for\x2010\x20minutes.');if(_0x2cd815[_0x4c8bbe(0x238)])return writeCliSideChannelLine(_0x4c8bbe(0x20c)+CLI_BIN_NAME+'\x20auth\x20device'),{'ok':!![],'message':_0x4c8bbe(0x1f9)};writeCliSideChannelLine(_0x4c8bbe(0x232));const _0x287458=new AbortController(),_0x41cb30=()=>{const _0xb2e7f0=_0x4c8bbe;_0x287458['abort'](),process[_0xb2e7f0(0x1f1)](_0xb2e7f0(0x1f3),_0x41cb30);};process[_0x4c8bbe(0x216)]('SIGINT',_0x41cb30);let _0x3d6f96;try{_0x3d6f96=await pollDeviceToken(_0x119566,_0x51e59c,_0x287458[_0x4c8bbe(0x201)]);}finally{process[_0x4c8bbe(0x1f1)]('SIGINT',_0x41cb30);}if(!ACCESS_KEY_PATTERN['test'](_0x3d6f96))throw CliErrors[_0x4c8bbe(0x206)](_0x4c8bbe(0x1fb));const _0x2f4e88=readScopedConfig(_0x58b640);return _0x2f4e88[_0x4c8bbe(0x1f2)]=_0x3d6f96,writeScopedConfig(_0x2f4e88,_0x58b640),deleteStoredDeviceCode(),process[_0x4c8bbe(0x210)]['write']('\x0a'),writeCliSideChannelLine('AccessKey\x20saved\x20to\x20'+_0x3ece3c+_0x4c8bbe(0x20b)),writeCliSideChannelLine('Verify:\x20'+CLI_BIN_NAME+_0x4c8bbe(0x213)),{'ok':!![],'message':_0x4c8bbe(0x203)};}};