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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +3 -3
  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
- const a0_0x3826d9=a0_0x520e;(function(_0x217187,_0x5d5e9b){const _0x9fcbef=a0_0x520e,_0xd3d964=_0x217187();while(!![]){try{const _0x2b039c=-parseInt(_0x9fcbef(0xe2))/0x1+parseInt(_0x9fcbef(0xf8))/0x2*(-parseInt(_0x9fcbef(0x101))/0x3)+-parseInt(_0x9fcbef(0xe7))/0x4+-parseInt(_0x9fcbef(0xd4))/0x5+-parseInt(_0x9fcbef(0xdb))/0x6*(parseInt(_0x9fcbef(0xd9))/0x7)+-parseInt(_0x9fcbef(0xd6))/0x8*(-parseInt(_0x9fcbef(0xde))/0x9)+-parseInt(_0x9fcbef(0x100))/0xa*(-parseInt(_0x9fcbef(0xfe))/0xb);if(_0x2b039c===_0x5d5e9b)break;else _0xd3d964['push'](_0xd3d964['shift']());}catch(_0x232264){_0xd3d964['push'](_0xd3d964['shift']());}}}(a0_0x7a42,0xe42ea));import{jsx as a0_0x3ca991}from'react/jsx-runtime';import a0_0x2641f9 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_0x2641f9(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'version':getCliVersionDisplay()});void main()[a0_0x3826d9(0xdd)](handleError);async function main(){try{await run();}catch(_0x5cfae9){handleError(_0x5cfae9);}}async function run(){const _0x181f21=a0_0x3826d9;let _0x58451c=cli[_0x181f21(0xfb)][0x0],_0x449d45=cli[_0x181f21(0xfb)][0x1];const _0x2cea0e=cli[_0x181f21(0xee)];try{const {correctFlags:_0x12efb5}=await import(_0x181f21(0xe6)),_0x52a659=getAllDefinitions()[_0x181f21(0xeb)](_0x57b91=>_0x57b91['flags']??[]),{flags:_0x782cb8,corrections:_0x5b05e6}=_0x12efb5(_0x2cea0e,_0x52a659);if(_0x5b05e6[_0x181f21(0xfa)]>0x0){for(const _0x489f2e of _0x5b05e6){process[_0x181f21(0xda)]['write'](_0x181f21(0xf9)+_0x489f2e[_0x181f21(0xfc)]+_0x181f21(0xd5)+_0x489f2e['original']+_0x181f21(0xe8)+_0x489f2e[_0x181f21(0xf4)]+'\x0a');}Object['assign'](_0x2cea0e,_0x782cb8);}}catch{}if(!_0x58451c){const {waitUntilExit:_0x321482}=render(a0_0x3ca991(Help,{}));await _0x321482();return;}const _0x4863e1=resolveRemovedCommand(_0x58451c,_0x449d45);if(_0x4863e1)throw CliErrors[_0x181f21(0xf2)](_0x4863e1['message'],_0x4863e1[_0x181f21(0xdc)]);if(!isKnownService(_0x58451c)){const _0x25e6a3=resolveDynamicServiceCommand(cli[_0x181f21(0xfb)],_0x2cea0e);if(_0x25e6a3){if(_0x2cea0e[_0x181f21(0xf5)]){console['log'](generateCommandHelp(_0x25e6a3[_0x181f21(0xe5)]));return;}Object[_0x181f21(0xea)](_0x2cea0e,_0x25e6a3[_0x181f21(0xee)]);const _0x9364bf=buildConfigFromFlags(_0x2cea0e);await initGlobalEnvironment(_0x9364bf);const _0x19a6a9=createPipelineEnv(_0x9364bf,_0x2cea0e);_0x19a6a9[_0x181f21(0xf6)]=_0x25e6a3[_0x181f21(0xf6)],await runCommand(_0x25e6a3['definition'],_0x19a6a9);return;}if(_0x2cea0e[_0x181f21(0xf5)]){const _0x2055f2=generateDynamicServiceHelp(_0x58451c);if(_0x2055f2){console[_0x181f21(0xfd)](_0x2055f2);return;}}const {waitUntilExit:_0x1e465a}=render(a0_0x3ca991(Help,{}));await _0x1e465a();return;}const _0x409e4d=getServiceEntry(_0x58451c);if(!_0x449d45){if(_0x2cea0e[_0x181f21(0xf5)]){console['log'](generateServiceHelp(_0x58451c));return;}if(_0x409e4d[_0x181f21(0xe1)])_0x449d45=_0x409e4d[_0x181f21(0xe1)];else{console['log'](generateServiceHelp(_0x58451c));return;}}const _0x3eabe3=findDefinition(_0x58451c,_0x449d45);!_0x3eabe3&&(console[_0x181f21(0xfd)](generateServiceHelp(_0x58451c)),handleError(CliErrors[_0x181f21(0xe3)](_0x58451c+'\x20'+_0x449d45)));if(_0x2cea0e[_0x181f21(0xf5)]){console['log'](generateCommandHelp(_0x3eabe3));return;}const _0x5566ef=buildConfigFromFlags(_0x2cea0e);_0x58451c!==_0x181f21(0xec)&&_0x58451c!==_0x181f21(0xf1)&&await initGlobalEnvironment(_0x5566ef);const _0x57356f=createPipelineEnv(_0x5566ef,_0x2cea0e);_0x57356f[_0x181f21(0xf6)]=cli[_0x181f21(0xfb)][_0x181f21(0xe4)](0x2),await runCommand(_0x3eabe3,_0x57356f);}function handleError(_0x1067cb){const _0x2eb588=a0_0x3826d9;if(_0x1067cb instanceof CliError){_0x1067cb['code']===_0x2eb588(0xed)&&(process[_0x2eb588(0xda)]['write'](_0x2eb588(0xd8)),process[_0x2eb588(0xd7)](0x0));console[_0x2eb588(0xf7)](_0x2eb588(0xe0)+_0x1067cb['message']);if(_0x1067cb[_0x2eb588(0xdc)])console['error'](_0x2eb588(0xf3)+_0x1067cb[_0x2eb588(0xdc)]);process[_0x2eb588(0xd7)](_0x1067cb[_0x2eb588(0xe9)]);}isUserCancellation(_0x1067cb)&&(process[_0x2eb588(0xda)][_0x2eb588(0xdf)](_0x2eb588(0xd8)),process[_0x2eb588(0xd7)](0x0)),console['error'](_0x2eb588(0xef),_0x1067cb),process['exit'](0x1);}function isUserCancellation(_0xcb7530){const _0x5aab18=a0_0x3826d9;if(!(_0xcb7530 instanceof Error))return![];if(_0xcb7530[_0x5aab18(0xd3)]==='ExitPromptError')return!![];if(_0xcb7530[_0x5aab18(0xff)]==='ERR_USE_AFTER_CLOSE')return!![];if(_0xcb7530[_0x5aab18(0xff)]===_0x5aab18(0xf0))return!![];return![];}function a0_0x520e(_0x599be4,_0x268192){_0x599be4=_0x599be4-0xd3;const _0x7a4205=a0_0x7a42();let _0x520e77=_0x7a4205[_0x599be4];return _0x520e77;}function a0_0x7a42(){const _0x1c19c3=['stderr','6xrYkkB','hint','catch','7384644qqiTDC','write','Error:\x20','defaultCommand','589261RNnTRt','unknownCommand','slice','definition','./framework/preparse.js','750944ZKaEXq','\x20->\x20--','exitCode','assign','flatMap','config','cancelled','flags','Unexpected\x20error:','ERR_STREAM_DESTROYED','doctor','validation','Hint:\x20','corrected','help','args','error','99158PBAqAv','[preparse]\x20','length','input','handler','log','5351390diAekv','code','70Dmzyqg','30vXmxFb','name','7656725yckGvN',':\x20--','8KVzihE','exit','\x0aCancelled.\x0a','3410260wODlCM'];a0_0x7a42=function(){return _0x1c19c3;};return a0_0x7a42();}
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![];}
@@ -1 +1 @@
1
- const a1_0x4334b3=a1_0x50ec;(function(_0x2c4eff,_0x4e647a){const _0x140659=a1_0x50ec,_0x5d7da5=_0x2c4eff();while(!![]){try{const _0xbe506c=parseInt(_0x140659(0x1c9))/0x1+-parseInt(_0x140659(0x17c))/0x2*(parseInt(_0x140659(0x194))/0x3)+-parseInt(_0x140659(0x15a))/0x4+parseInt(_0x140659(0x185))/0x5+-parseInt(_0x140659(0x197))/0x6+-parseInt(_0x140659(0x1a0))/0x7+-parseInt(_0x140659(0x1be))/0x8*(-parseInt(_0x140659(0x14c))/0x9);if(_0xbe506c===_0x4e647a)break;else _0x5d7da5['push'](_0x5d7da5['shift']());}catch(_0x1bf595){_0x5d7da5['push'](_0x5d7da5['shift']());}}}(a1_0x371b,0xdd02c));import{CliErrors}from'../../errors.js';const CATEGORY_FLAG={'name':a1_0x4334b3(0x156),'type':a1_0x4334b3(0x1c4),'description':'Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset'},KEYWORD_FLAG={'name':a1_0x4334b3(0x1a5),'type':a1_0x4334b3(0x1c4),'description':a1_0x4334b3(0x14e)},DOC_CODE_FLAG={'name':a1_0x4334b3(0x166),'type':a1_0x4334b3(0x1c4),'required':!![],'description':a1_0x4334b3(0x15b)},DOCS=[{'code':a1_0x4334b3(0x1ac),'category':a1_0x4334b3(0x14d),'title':a1_0x4334b3(0x1d0),'method':a1_0x4334b3(0x161),'path':a1_0x4334b3(0x170),'summary':a1_0x4334b3(0x14f),'whenToUse':a1_0x4334b3(0x16f),'pathParams':[],'queryParams':[],'bodySchema':a1_0x4334b3(0x1bb),'responseHighlights':[a1_0x4334b3(0x168),a1_0x4334b3(0x18a)],'examples':[a1_0x4334b3(0x17a)],'notes':[a1_0x4334b3(0x18b)],'markdown':[a1_0x4334b3(0x15e),'',a1_0x4334b3(0x1a3)]['join']('\x0a')},{'code':a1_0x4334b3(0x150),'category':a1_0x4334b3(0x14d),'title':a1_0x4334b3(0x1c2),'method':a1_0x4334b3(0x1b0),'path':a1_0x4334b3(0x160),'summary':a1_0x4334b3(0x1a2),'whenToUse':'Use\x20when\x20you\x20need\x20fields,\x20table\x20info,\x20relations,\x20or\x20operation\x20definitions\x20for\x20a\x20dataset\x20code','pathParams':[],'queryParams':[{'name':a1_0x4334b3(0x166),'description':a1_0x4334b3(0x196)}],'bodySchema':'None','responseHighlights':[a1_0x4334b3(0x16d),a1_0x4334b3(0x17b),'operations\x20describes\x20runtime\x20APIs'],'examples':['lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>'],'notes':[a1_0x4334b3(0x153)],'markdown':['##\x20Dataset\x20detail','',a1_0x4334b3(0x159)][a1_0x4334b3(0x184)]('\x0a')},{'code':a1_0x4334b3(0x165),'category':'dataset','title':a1_0x4334b3(0x1cc),'method':a1_0x4334b3(0x161),'path':a1_0x4334b3(0x187),'summary':a1_0x4334b3(0x14b),'whenToUse':a1_0x4334b3(0x177),'pathParams':[{'name':'appCode','description':a1_0x4334b3(0x1a9)},{'name':a1_0x4334b3(0x193),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':'{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','responseHighlights':[a1_0x4334b3(0x154),a1_0x4334b3(0x17e)],'examples':[a1_0x4334b3(0x195),a1_0x4334b3(0x16b)],'notes':['where,\x20select,\x20orderBy,\x20currentPage,\x20and\x20pageSize\x20belong\x20inside\x20one\x20--params\x20JSON\x20object;\x20they\x20are\x20not\x20standalone\x20CLI\x20flags.',a1_0x4334b3(0x189),a1_0x4334b3(0x1b5),a1_0x4334b3(0x1c6)],'markdown':['##\x20Filter\x20dataset\x20data','',a1_0x4334b3(0x19d)][a1_0x4334b3(0x184)]('\x0a')},{'code':a1_0x4334b3(0x157),'category':a1_0x4334b3(0x14d),'title':'Aggregate\x20dataset\x20data','method':a1_0x4334b3(0x161),'path':'/api/{appCode}/{datasetCode}/aggregate','summary':'Aggregate\x20dataset\x20records','whenToUse':a1_0x4334b3(0x1b7),'pathParams':[{'name':a1_0x4334b3(0x155),'description':a1_0x4334b3(0x1a9)},{'name':a1_0x4334b3(0x193),'description':a1_0x4334b3(0x196)}],'queryParams':[],'bodySchema':a1_0x4334b3(0x178),'responseHighlights':[a1_0x4334b3(0x19a),a1_0x4334b3(0x1aa)],'examples':[a1_0x4334b3(0x158)],'notes':[a1_0x4334b3(0x176),a1_0x4334b3(0x1cb)],'markdown':['##\x20Aggregate\x20dataset\x20data','',a1_0x4334b3(0x167)]['join']('\x0a')},{'code':a1_0x4334b3(0x172),'category':'dataset','title':a1_0x4334b3(0x1b3),'method':a1_0x4334b3(0x161),'path':'/api/{appCode}/{datasetCode}/getOne','summary':a1_0x4334b3(0x1b3),'whenToUse':a1_0x4334b3(0x191),'pathParams':[{'name':a1_0x4334b3(0x155),'description':a1_0x4334b3(0x1a9)},{'name':a1_0x4334b3(0x193),'description':a1_0x4334b3(0x196)}],'queryParams':[],'bodySchema':a1_0x4334b3(0x152),'responseHighlights':[a1_0x4334b3(0x19c)],'examples':[a1_0x4334b3(0x18d)],'notes':[a1_0x4334b3(0x164)],'markdown':a1_0x4334b3(0x1ab)},{'code':'dataset_data_create','category':a1_0x4334b3(0x14d),'title':a1_0x4334b3(0x1c5),'method':a1_0x4334b3(0x161),'path':a1_0x4334b3(0x186),'summary':a1_0x4334b3(0x1c1),'whenToUse':a1_0x4334b3(0x1b6),'pathParams':[{'name':a1_0x4334b3(0x155),'description':'Current\x20app\x20code'},{'name':a1_0x4334b3(0x193),'description':a1_0x4334b3(0x196)}],'queryParams':[],'bodySchema':a1_0x4334b3(0x1bf),'responseHighlights':['Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result'],'examples':[a1_0x4334b3(0x183)],'notes':[a1_0x4334b3(0x199)],'markdown':a1_0x4334b3(0x1bc)},{'code':a1_0x4334b3(0x171),'category':'bf','title':'Get\x20BF\x20endpoint\x20function\x20contract','method':'GET','path':a1_0x4334b3(0x175),'summary':a1_0x4334b3(0x1c0),'whenToUse':a1_0x4334b3(0x169),'pathParams':[{'name':a1_0x4334b3(0x155),'description':a1_0x4334b3(0x1a9)},{'name':a1_0x4334b3(0x1c8),'description':a1_0x4334b3(0x1b2)}],'queryParams':[],'bodySchema':a1_0x4334b3(0x1ca),'responseHighlights':[a1_0x4334b3(0x18c)],'examples':[a1_0x4334b3(0x1cd)],'notes':['This\x20is\x20an\x20exact\x20lookup\x20by\x20appCode\x20+\x20functionName.\x20The\x20CLI\x20does\x20not\x20enumerate\x20Backend\x20Function\x20definitions\x20or\x20expose\x20platform-only\x20fields.'],'markdown':a1_0x4334b3(0x151)},{'code':a1_0x4334b3(0x17f),'category':'bf','title':'Execute\x20BF\x20endpoint\x20function','method':a1_0x4334b3(0x161),'path':a1_0x4334b3(0x16c),'summary':a1_0x4334b3(0x19e),'whenToUse':'Use\x20when\x20the\x20target\x20BF\x20functionName\x20is\x20confirmed\x20and\x20you\x20need\x20to\x20call\x20that\x20ENDPOINT','pathParams':[{'name':a1_0x4334b3(0x155),'description':'Current\x20app\x20code'},{'name':a1_0x4334b3(0x1c8),'description':a1_0x4334b3(0x15d)}],'queryParams':[],'bodySchema':a1_0x4334b3(0x1a1),'responseHighlights':[a1_0x4334b3(0x173)],'examples':[a1_0x4334b3(0x163)],'notes':['Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.'],'markdown':a1_0x4334b3(0x1b8)},{'code':a1_0x4334b3(0x1c7),'category':'bf','title':a1_0x4334b3(0x174),'method':a1_0x4334b3(0x161),'path':a1_0x4334b3(0x190),'summary':a1_0x4334b3(0x1ae),'whenToUse':a1_0x4334b3(0x18f),'pathParams':[{'name':'id','description':'Personal\x20Backend\x20Function\x20script\x20ID,\x20for\x20example\x20123'}],'queryParams':[{'name':a1_0x4334b3(0x155),'description':a1_0x4334b3(0x1a9)}],'bodySchema':a1_0x4334b3(0x1a1),'responseHighlights':[a1_0x4334b3(0x173)],'examples':[a1_0x4334b3(0x1ad)],'notes':[a1_0x4334b3(0x19f),a1_0x4334b3(0x182)],'markdown':[a1_0x4334b3(0x17d),'',a1_0x4334b3(0x181)]['join']('\x0a')},{'code':a1_0x4334b3(0x16a),'category':a1_0x4334b3(0x1b9),'title':a1_0x4334b3(0x15f),'method':a1_0x4334b3(0x161),'path':a1_0x4334b3(0x1b4),'summary':a1_0x4334b3(0x15f),'whenToUse':a1_0x4334b3(0x1a4),'pathParams':[],'queryParams':[],'bodySchema':a1_0x4334b3(0x192),'responseHighlights':[a1_0x4334b3(0x1d1)],'examples':[a1_0x4334b3(0x1a7)],'notes':[a1_0x4334b3(0x1cf)],'markdown':a1_0x4334b3(0x179)}];function entrySummary(_0x2919e1){const _0x3ef4f0=a1_0x4334b3;return{'code':_0x2919e1['code'],'category':_0x2919e1[_0x3ef4f0(0x156)],'method':_0x2919e1['method'],'path':_0x2919e1[_0x3ef4f0(0x1af)],'summary':_0x2919e1[_0x3ef4f0(0x1ce)],'whenToUse':_0x2919e1[_0x3ef4f0(0x180)]};}export function listApiDocEntries(_0x3e6945={}){const _0x3b8d9a=a1_0x4334b3,_0x5ecb1e=String(_0x3e6945['category']||'')[_0x3b8d9a(0x188)](),_0x54f169=String(_0x3e6945[_0x3b8d9a(0x1a5)]||'')[_0x3b8d9a(0x188)]()[_0x3b8d9a(0x1b1)]();return DOCS[_0x3b8d9a(0x1a8)](_0x9d5022=>{const _0x3e085f=_0x3b8d9a;if(_0x5ecb1e&&_0x9d5022['category']!==_0x5ecb1e)return![];if(!_0x54f169)return!![];return[_0x9d5022[_0x3e085f(0x166)],_0x9d5022['category'],_0x9d5022[_0x3e085f(0x1ba)],_0x9d5022[_0x3e085f(0x1af)],_0x9d5022[_0x3e085f(0x1ce)],_0x9d5022[_0x3e085f(0x180)],_0x9d5022[_0x3e085f(0x18e)]][_0x3e085f(0x184)]('\x20')[_0x3e085f(0x1b1)]()[_0x3e085f(0x198)](_0x54f169);})[_0x3b8d9a(0x1c3)](entrySummary);}function a1_0x371b(){const _0x1e4feb=['GET','toLowerCase','Exact\x20endpoint\x20function\x20name','Get\x20one\x20dataset\x20record','/api/custom/executeSql','Verify\x20tableData\x20and\x20paging\x20before\x20treating\x20the\x20response\x20as\x20a\x20business\x20fact.','Use\x20when\x20you\x20need\x20to\x20insert\x20one\x20business\x20record\x20into\x20a\x20dataset','Use\x20when\x20you\x20need\x20groupBy\x20plus\x20count,\x20sum,\x20avg,\x20max,\x20or\x20min\x20aggregates','##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.','custom_sql','method','{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.','List\x20available\x20runtime\x20API\x20documentation\x20entries','844104RPROMy','{\x22fieldName\x22:\x22value\x22}','Get\x20a\x20BF\x20endpoint\x20contract\x20by\x20app\x20and\x20function\x20name','Create\x20a\x20dataset\x20record','Dataset\x20detail','map','string','Create\x20dataset\x20record','Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.','personal_bf_execute','functionName','367111bYIBiu','None','`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','Filter\x20dataset\x20data','lovrabet\x20bff\x20detail\x20--name\x20<functionName>','summary','Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.','List\x20datasets','Returns\x20SQL\x20execution\x20payload','API\x20doc\x20code\x20not\x20found:\x20','Filter\x20dataset\x20records','369HdfvBK','dataset','Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text','List\x20datasets\x20with\x20pagination','dataset_detail','##\x20Get\x20BF\x20endpoint\x20function\x20contract\x0a\x0aInspect\x20one\x20known\x20endpoint\x20function\x20through\x20the\x20AK-authenticated\x20exact\x20detail\x20API.','{\x22id\x22:123}','If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.','tableData\x20contains\x20records','appCode','category','dataset_data_aggregate','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','Inspect\x20field\x20names,\x20relations,\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.','4634904bJkFeF','API\x20doc\x20code,\x20for\x20example\x20dataset_list','length','Endpoint\x20function\x20name','##\x20List\x20datasets','Execute\x20custom\x20SQL','/api/dataset/getOneByCode?code={datasetCode}','POST','str','lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27','Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.','dataset_data_filter','code','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.','tableData\x20contains\x20dataset\x20id/code/name','Use\x20when\x20the\x20function\x20name\x20is\x20already\x20confirmed\x20and\x20you\x20need\x20that\x20ENDPOINT\x27s\x20runtime\x20metadata','custom_sql_execute','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','/api/endpoint/{appCode}/{functionName}','fields/properties\x20describe\x20data\x20shape','read','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','bf_detail','dataset_data_get_one','Returns\x20script\x20business\x20payload','Execute\x20Personal\x20Backend\x20Function','/client/bff/endpoint/{appCode}/{functionName}','Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.','Use\x20when\x20you\x20need\x20to\x20read\x20business\x20data\x20with\x20where,\x20orderBy,\x20pagination,\x20or\x20similar\x20filters','{\x22aggregate\x22:[{\x22column\x22:\x20\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.','lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress','relations\x20contains\x20the\x20object-shaped\x20API\x20relations\x20value\x20when\x20returned','1686FQXtkR','##\x20Execute\x20Personal\x20Backend\x20Function','paging\x20contains\x20pagination','bf_execute','whenToUse','Execute\x20a\x20known\x20Personal\x20Backend\x20Function\x20script\x20through\x20its\x20runtime\x20execute\x20endpoint.','Function\x20execution\x20may\x20have\x20business\x20side\x20effects;\x20inspect\x20detail\x20before\x20execution.','lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27','join','6444740clWvuq','/api/{appCode}/{datasetCode}/create','/api/{appCode}/{datasetCode}/filter','trim','For\x20the\x20next\x20page,\x20keep\x20where/select/orderBy/pageSize\x20unchanged\x20and\x20increment\x20only\x20currentPage,\x20which\x20starts\x20at\x201.','paging.totalCount\x20gives\x20total\x20rows','CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.','CLI\x20returns\x20appCode/functionName/description/version/gmtModified','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27','title','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','/api/runtime-bff/personal/{id}/execute','Use\x20when\x20you\x20already\x20know\x20the\x20record\x20id\x20and\x20need\x20one\x20business\x20row\x20from\x20a\x20dataset','{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','datasetCode','5142DLAPXg','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','32-character\x20dataset\x20code','5867388culnlW','includes','This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.','result\x20rows\x20contain\x20aggregate\x20aliases','api-doc','Returns\x20one\x20matching\x20business\x20record','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.','Execute\x20a\x20BF\x20endpoint\x20function','Personal\x20BFF\x20scripts\x20are\x20user-owned\x20and\x20scoped\x20per\x20app.','10467142HMgcxQ','{\x22param\x22:\x22value\x22}','Get\x20dataset\x20detail','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.','Use\x20when\x20the\x20target\x20sqlCode\x20exists\x20and\x20you\x20need\x20to\x20execute\x20that\x20custom\x20SQL','keyword','validation','lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27','filter','Current\x20app\x20code','where\x20filters\x20before\x20aggregation','##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.','dataset_list','lovrabet\x20personal-bff\x20exec\x20--id\x20<id>\x20--params\x20\x27{}\x27','Execute\x20a\x20Personal\x20Backend\x20Function\x20by\x20script\x20ID','path'];a1_0x371b=function(){return _0x1e4feb;};return a1_0x371b();}export function getApiDocDetail(_0x18aaeb){const _0xc9d629=a1_0x4334b3,_0x39b23f=DOCS['find'](_0x40894c=>_0x40894c[_0xc9d629(0x166)]===_0x18aaeb);if(!_0x39b23f)throw CliErrors[_0xc9d629(0x1a6)](_0xc9d629(0x14a)+_0x18aaeb);return{..._0x39b23f};}function a1_0x50ec(_0x4e32f7,_0x37e6ff){_0x4e32f7=_0x4e32f7-0x14a;const _0x371b08=a1_0x371b();let _0x50ec64=_0x371b08[_0x4e32f7];return _0x50ec64;}const apiDocList={'service':a1_0x4334b3(0x19b),'command':'list','description':a1_0x4334b3(0x1bd),'risk':a1_0x4334b3(0x16e),'requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0x2e90ec){const _0x2eab78=a1_0x4334b3,_0x1e4780=listApiDocEntries({'category':_0x2e90ec[_0x2eab78(0x162)](_0x2eab78(0x156)),'keyword':_0x2e90ec[_0x2eab78(0x162)](_0x2eab78(0x1a5))});return{'ok':!![],'data':{'total':_0x1e4780[_0x2eab78(0x15c)],'items':_0x1e4780}};}},apiDocDetail={'service':a1_0x4334b3(0x19b),'command':'detail','description':'Show\x20runtime\x20API\x20documentation\x20by\x20code','risk':'read','requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0x2d4f55){return{'ok':!![],'data':getApiDocDetail(_0x2d4f55['str']('code'))};}};export const apiDocDefinitions=[apiDocList,apiDocDetail];
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 +1 @@
1
- function a2_0x1ce3(){const _0x234ef1=['EPERM','692936lKGvPr','items','16568NaSrFC','appCode','30uRmTbN','ak_','parse','27AISBQb','slice','utf8','update','15576741SkskcX','digest','homeDirName','code','appName','EACCES','trim','sha256','find','41374540IJTeDO','8005935zZBecY','117607kwrvqv','36mmxAkl','hex','stringify','my-apps.json','1188mIBzKr','.tmp','EXDEV'];a2_0x1ce3=function(){return _0x234ef1;};return a2_0x1ce3();}(function(_0x2c2fed,_0x3c1133){const _0x9748e0=a2_0x21be,_0x9f5373=_0x2c2fed();while(!![]){try{const _0x2bdf43=parseInt(_0x9748e0(0x1d2))/0x1*(parseInt(_0x9748e0(0x1bd))/0x2)+-parseInt(_0x9748e0(0x1c2))/0x3*(parseInt(_0x9748e0(0x1d6))/0x4)+-parseInt(_0x9748e0(0x1d0))/0x5+-parseInt(_0x9748e0(0x1bf))/0x6*(parseInt(_0x9748e0(0x1d1))/0x7)+-parseInt(_0x9748e0(0x1bb))/0x8+-parseInt(_0x9748e0(0x1c6))/0x9+parseInt(_0x9748e0(0x1cf))/0xa;if(_0x2bdf43===_0x3c1133)break;else _0x9f5373['push'](_0x9f5373['shift']());}catch(_0x5dd965){_0x9f5373['push'](_0x9f5373['shift']());}}}(a2_0x1ce3,0xe328f));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_0x21be(_0x1809b8,_0x1f0855){_0x1809b8=_0x1809b8-0x1b8;const _0x1ce3f5=a2_0x1ce3();let _0x21bedd=_0x1ce3f5[_0x1809b8];return _0x21bedd;}export function fingerprintAccessKey(_0x2c827b){const _0x1496d0=a2_0x21be,_0x427651=_0x2c827b[_0x1496d0(0x1cc)](),_0x411850=_0x427651[_0x1496d0(0x1c3)](-0x6)||'unknown',_0x4f232f=createHash(_0x1496d0(0x1cd))[_0x1496d0(0x1c5)](_0x427651)[_0x1496d0(0x1c7)](_0x1496d0(0x1d3))[_0x1496d0(0x1c3)](0x0,0xc);return _0x1496d0(0x1c0)+_0x411850+'_'+_0x4f232f;}export function getAppCacheFilePath(_0xced877,_0x362d13){const _0x54c144=a2_0x21be;return resolve(homedir(),PRODUCT_CONFIG[_0x54c144(0x1c8)],'cache',_0xced877,fingerprintAccessKey(_0x362d13),_0x54c144(0x1d5));}export function readCachedAppList(_0x20ef49,_0x4320d6){const _0x16fc93=a2_0x21be;if(!_0x4320d6?.[_0x16fc93(0x1cc)]())return null;const _0x20608=getAppCacheFilePath(_0x20ef49,_0x4320d6);if(!existsSync(_0x20608))return null;try{const _0xe4b8a9=readFileSync(_0x20608,_0x16fc93(0x1c4));if(!_0xe4b8a9[_0x16fc93(0x1cc)]())return null;const _0x15764f=JSON[_0x16fc93(0x1c1)](_0xe4b8a9);if(!Array['isArray'](_0x15764f['items']))return null;return _0x15764f;}catch{return null;}}export function writeCachedAppList(_0x21b899,_0x152b2d,_0xe25f64){const _0x27372b=a2_0x21be,_0x2ceed3=getAppCacheFilePath(_0x21b899,_0x152b2d),_0x38769a=dirname(_0x2ceed3);!existsSync(_0x38769a)&&mkdirSync(_0x38769a,{'recursive':!![]});const _0x10e1ae=_0x2ceed3+_0x27372b(0x1b8);try{writeFileSync(_0x10e1ae,JSON[_0x27372b(0x1d4)](_0xe25f64,null,0x2)+'\x0a',{'encoding':_0x27372b(0x1c4),'mode':0x180});try{renameSync(_0x10e1ae,_0x2ceed3);}catch(_0x520af1){if(_0x520af1[_0x27372b(0x1c9)]===_0x27372b(0x1ba)||_0x520af1[_0x27372b(0x1c9)]===_0x27372b(0x1b9)||_0x520af1[_0x27372b(0x1c9)]===_0x27372b(0x1cb)){writeFileSync(_0x2ceed3,JSON[_0x27372b(0x1d4)](_0xe25f64,null,0x2)+'\x0a',{'encoding':_0x27372b(0x1c4)});try{unlinkSync(_0x10e1ae);}catch{}}else throw _0x520af1;}}catch(_0x2124a7){try{unlinkSync(_0x10e1ae);}catch{}throw _0x2124a7;}return _0x2ceed3;}export function resolveCachedAppCode(_0x24ac17,_0xa525b5,_0x3cc78a){const _0x2e3c5f=a2_0x21be;if(!_0x24ac17)return undefined;const _0x460730=readCachedAppList(_0xa525b5,_0x3cc78a),_0x590a85=_0x460730?.[_0x2e3c5f(0x1bc)][_0x2e3c5f(0x1ce)](_0x5bf991=>_0x5bf991[_0x2e3c5f(0x1ca)]===_0x24ac17&&isRuntimeAccessibleApp(_0x5bf991));return _0x590a85?.[_0x2e3c5f(0x1be)]?.[_0x2e3c5f(0x1cc)]()||undefined;}
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 +1 @@
1
- const a3_0x24bcb5=a3_0x57e5;(function(_0x49b5ec,_0x39587b){const _0x461286=a3_0x57e5,_0x35f4fa=_0x49b5ec();while(!![]){try{const _0x2435ad=parseInt(_0x461286(0x10e))/0x1*(-parseInt(_0x461286(0xfd))/0x2)+-parseInt(_0x461286(0x11b))/0x3*(parseInt(_0x461286(0xf8))/0x4)+-parseInt(_0x461286(0x127))/0x5+-parseInt(_0x461286(0x104))/0x6+-parseInt(_0x461286(0x123))/0x7+parseInt(_0x461286(0x10f))/0x8*(-parseInt(_0x461286(0x12e))/0x9)+parseInt(_0x461286(0x131))/0xa*(parseInt(_0x461286(0xf4))/0xb);if(_0x2435ad===_0x39587b)break;else _0x35f4fa['push'](_0x35f4fa['shift']());}catch(_0x3e855d){_0x35f4fa['push'](_0x35f4fa['shift']());}}}(a3_0x4c85,0x1dadc));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 a3_0x57e5(_0x2c44ba,_0x240d88){_0x2c44ba=_0x2c44ba-0xee;const _0x4c85b2=a3_0x4c85();let _0x57e594=_0x4c85b2[_0x2c44ba];return _0x57e594;}function collectFlags(_0x3f944e,_0x1038b7){const _0x3f5ab5=a3_0x57e5,_0x2f9370={};for(const _0x305f41 of _0x1038b7){const _0x27b7e1=_0x305f41[_0x3f5ab5(0xfa)]==='boolean'?_0x3f944e['bool'](_0x305f41['name']):_0x3f944e[_0x3f5ab5(0xfb)](_0x305f41[_0x3f5ab5(0xf0)]);if(_0x27b7e1!==''&&_0x27b7e1!==![])_0x2f9370[_0x305f41[_0x3f5ab5(0xf0)]]=_0x27b7e1;}if(_0x3f944e['nonInteractive'])_0x2f9370['nonInteractive']=!![];return _0x2f9370;}function normalizeLanguages(_0x5c92da){const _0x335768=a3_0x57e5;if(!Array[_0x335768(0x120)](_0x5c92da))return[];return _0x5c92da[_0x335768(0x117)](_0x36f6d4=>typeof _0x36f6d4===_0x335768(0x12b))[_0x335768(0xf3)](_0xbb04d=>_0xbb04d[_0x335768(0x105)]())[_0x335768(0x117)](Boolean);}function buildRemoteAppI18nFields(_0x31e871){const _0x16c70f=a3_0x57e5,_0x22d006=normalizeLanguages(_0x31e871[_0x16c70f(0x11e)]?.[_0x16c70f(0xee)]);return{'enableI18n':typeof _0x31e871['enableI18n']===_0x16c70f(0xff)?_0x31e871[_0x16c70f(0x126)]:null,'languages':_0x22d006,'i18nInfo':_0x31e871[_0x16c70f(0x11e)]?{..._0x31e871['i18nInfo'],'langs':_0x22d006[_0x16c70f(0xf2)]?_0x22d006:null}:null};}const listDef={'service':'app','command':a3_0x24bcb5(0xf7),'description':a3_0x24bcb5(0x115),'risk':a3_0x24bcb5(0x128),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a3_0x24bcb5(0x11c),'type':'string','description':a3_0x24bcb5(0x101),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x24bcb5(0xf1),'type':a3_0x24bcb5(0xff),'description':a3_0x24bcb5(0x113),'default':![]},{'name':a3_0x24bcb5(0x111),'type':a3_0x24bcb5(0xff),'description':a3_0x24bcb5(0x102),'default':![]},{'name':a3_0x24bcb5(0x108),'type':a3_0x24bcb5(0xff),'description':a3_0x24bcb5(0xfc),'default':![]}],async 'execute'(_0x53efde){const _0x196b50=a3_0x24bcb5,_0x124c5d=_0x53efde[_0x196b50(0xfb)](_0x196b50(0x11c))||_0x53efde[_0x196b50(0x100)]||getEnv()||_0x196b50(0x107),_0x102dbe=_0x53efde[_0x196b50(0x10d)](_0x196b50(0xf1)),_0x52e8ae=_0x53efde['bool'](_0x196b50(0x111)),_0x292c0c=_0x53efde[_0x196b50(0x10d)](_0x196b50(0x108)),{readRawConfigWithLayers:_0x5e83d2,resolveDefaultAppSource:_0x19aa59,getLocalAppAliases:_0x1c21c8}=await import('../../context.js'),{getRemoteAppList:_0xfee975}=await import('../../commands/app/remote-source.js'),{config:_0x5010c3,layers:_0x5b691f}=_0x5e83d2(),_0x21a57a=_0x19aa59(_0x5b691f),{defaultApp:_0x3dad83}=_0x5010c3,_0x5d5247=await _0xfee975({'env':_0x124c5d,'accessKey':_0x53efde['accessKey'],'localOnly':_0x102dbe,'noCache':_0x52e8ae}),_0x1a0834=_0x292c0c?_0x5d5247[_0x196b50(0xf5)]:filterRuntimeAccessibleApps(_0x5d5247['items']),_0x57d1fc=_0x5d5247[_0x196b50(0xf5)]['length']-_0x1a0834[_0x196b50(0xf2)],_0x33693b=_0x1a0834['map'](_0x170177=>{const _0x533c84=_0x196b50;return{'name':_0x170177[_0x533c84(0x12c)],'appcode':_0x170177[_0x533c84(0x129)],'named':!![],'definedIn':'remote','isDefault':_0x170177[_0x533c84(0x12c)]===_0x3dad83,...buildAppProfileListFields(_0x124c5d),...buildRemoteAppI18nFields(_0x170177),'source':_0x5d5247[_0x533c84(0x112)],'owner':_0x170177['appOwnerName']??null,'status':_0x170177[_0x533c84(0x119)]??null,'cachedAt':_0x5d5247[_0x533c84(0x10a)]};}),_0x3cd3a1=_0x1c21c8(_0x5010c3);let _0x3ca8db=0x0;for(const [_0x9c49f2,_0x44f293]of Object[_0x196b50(0x114)](_0x3cd3a1)){const _0x29dcf7=typeof _0x44f293['appcode']===_0x196b50(0x12b)?_0x44f293[_0x196b50(0x12f)][_0x196b50(0x105)]():'';if(!_0x29dcf7)continue;const _0x5816a5=findAppByCode(_0x5d5247[_0x196b50(0xf5)],_0x29dcf7);if(!_0x292c0c&&_0x5816a5&&!isRuntimeAccessibleApp(_0x5816a5))continue;_0x3ca8db+=0x1,_0x33693b[_0x196b50(0x109)]({'name':_0x9c49f2,'appcode':_0x29dcf7,'named':!![],'definedIn':_0x196b50(0xf1),'isDefault':_0x9c49f2===_0x3dad83,...buildAppProfileListFields(_0x124c5d),'source':_0x196b50(0xf6),'owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x33693b,_0x53efde['mergedCli']);const _0xaa2f6d=_0x33693b['find'](_0x4157a8=>_0x4157a8['isCurrent']===!![]),_0x46d53c=_0x3dad83??_0xaa2f6d?.[_0x196b50(0xf0)]??null,_0x3c930f={'env':_0x124c5d,'source':_0x5d5247[_0x196b50(0x112)],'fetchedAt':_0x5d5247[_0x196b50(0x10a)],'cachePath':_0x5d5247[_0x196b50(0x121)],'globalPath':_0x5b691f['globalPath']??null,'projectPath':_0x5b691f[_0x196b50(0x130)]??null,'defaultApp':_0x46d53c,'defaultAppSource':_0x3dad83!=null?_0x21a57a:null,'localAliasCount':_0x3ca8db,'remoteTotal':_0x5d5247[_0x196b50(0xf5)][_0x196b50(0xf2)],'hiddenUnpublishedCount':_0x57d1fc,'includeUnpublished':_0x292c0c};if(_0x33693b['length']===0x0)return{'ok':!![],'data':{'items':_0x33693b,'meta':_0x3c930f},'message':_0x5d5247['source']==='cache'?_0x196b50(0x103):_0x196b50(0x125)};return{'ok':!![],'data':{'items':_0x33693b,'meta':_0x3c930f}};}},pullDef={'service':a3_0x24bcb5(0x11a),'command':a3_0x24bcb5(0x12d),'description':a3_0x24bcb5(0xf9),'risk':a3_0x24bcb5(0xfe),'confirmationDescription':a3_0x24bcb5(0x106),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a3_0x24bcb5(0x11c),'type':'string','description':a3_0x24bcb5(0x11d),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x24bcb5(0xf1),'type':'boolean','description':a3_0x24bcb5(0x10c),'default':![]},{'name':'no-cache','type':a3_0x24bcb5(0xff),'description':a3_0x24bcb5(0x102),'default':![]}],async 'execute'(_0x22c7a8){const _0x3725d4=a3_0x24bcb5,_0x1e20a9=_0x22c7a8[_0x3725d4(0xfb)](_0x3725d4(0x11c))||_0x22c7a8[_0x3725d4(0x100)]||getEnv()||_0x3725d4(0x107),_0x40b466=_0x22c7a8[_0x3725d4(0x10d)](_0x3725d4(0xf1)),_0x25e51e=_0x22c7a8[_0x3725d4(0x10d)](_0x3725d4(0x111)),{getRemoteAppList:_0x4d452e}=await import(_0x3725d4(0x124)),_0x204dc9=await _0x4d452e({'env':_0x1e20a9,'accessKey':_0x22c7a8[_0x3725d4(0x110)],'localOnly':_0x40b466,'noCache':_0x25e51e});return{'ok':!![],'data':{'total':_0x204dc9[_0x3725d4(0xf5)][_0x3725d4(0xf2)],'env':_0x1e20a9,'source':_0x204dc9[_0x3725d4(0x112)],'fetchedAt':_0x204dc9[_0x3725d4(0x10a)],'cachePath':_0x204dc9[_0x3725d4(0x121)]},'message':_0x204dc9[_0x3725d4(0x112)]===_0x3725d4(0xef)?_0x3725d4(0x11f)+_0x204dc9[_0x3725d4(0xf5)][_0x3725d4(0xf2)]+_0x3725d4(0x116)+_0x1e20a9+'\x22.':'Refreshed\x20app\x20cache\x20with\x20'+_0x204dc9['items'][_0x3725d4(0xf2)]+_0x3725d4(0x122)+_0x1e20a9+'\x22.'};}},importDef={'service':'app','command':a3_0x24bcb5(0x12a),'description':a3_0x24bcb5(0x118),'risk':a3_0x24bcb5(0xfe),'confirmationDescription':a3_0x24bcb5(0x10b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':appImportFlagDefs,async 'execute'(_0x314f75){return await runAppImport(collectFlags(_0x314f75,appImportFlagDefs)),{'ok':!![]};}};function a3_0x4c85(){const _0x654a96=['10KGpSdI','112088KoKNUN','accessKey','no-cache','source','Read\x20app\x20list\x20from\x20local\x20cache\x20only','entries','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','\x20cached\x20app(s)\x20for\x20env=\x22','filter','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','appPublishStatus','app','251283XrETiH','env','Target\x20environment\x20(default:\x20current\x20env)','i18nInfo','Loaded\x20','isArray','cachePath','\x20app(s)\x20for\x20env=\x22','907725PudDWi','../../commands/app/remote-source.js','No\x20apps\x20found\x20on\x20the\x20platform.','enableI18n','48950oeHFOl','read','appCode','import','string','appName','pull','90RdjxIa','appcode','projectPath','10jSMvMZ','langs','cache','name','local','length','map','8080897nDfDIE','items','config','list','8iVxVrW','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','type','str','Include\x20unpublished\x20apps\x20for\x20diagnostics','1796YRYBDl','write','boolean','envName','Filter\x20by\x20environment\x20(default:\x20current\x20env)','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','No\x20cached\x20apps\x20found.','941916zggfCz','trim','Reads\x20the\x20apps\x20available\x20to\x20the\x20current\x20account\x20and\x20overwrites\x20the\x20local\x20app\x20cache\x20for\x20that\x20environment.\x20Platform\x20apps\x20are\x20not\x20modified.','production','include-unpublished','push','fetchedAt','Reads\x20the\x20given\x20.rabetbase.json\x20and\x20imports\x20a\x20usable\x20default\x20app\x20into\x20local\x20.lovrabet.json.\x20Matching\x20keys\x20may\x20be\x20updated.','Read\x20from\x20local\x20cache\x20only','bool'];a3_0x4c85=function(){return _0x654a96;};return a3_0x4c85();}export const appDefinitions=[listDef,pullDef,importDef];
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 +1 @@
1
- function a4_0x1455(){const _0x92736e=['203682mUJSjP','UNKNOWN','4OcHYua','App\x20','543603UKNkDO','463037WzKEyd','filter','760zzmhSZ','appName','toUpperCase','\x20is\x20not\x20available\x20for\x20runtime\x20AI\x20access.','appCode','find','9UXYjPb','string','Current\x20status:\x20','validation','3105452tiuBkT','appPublishStatus','66077EpoTbj','2508344seUCUr','1415IHKEWA','trim','6678gAZCRH'];a4_0x1455=function(){return _0x92736e;};return a4_0x1455();}function a4_0x5898(_0x239d23,_0x2340a7){_0x239d23=_0x239d23-0x14f;const _0x1455fa=a4_0x1455();let _0x589813=_0x1455fa[_0x239d23];return _0x589813;}(function(_0x2a1e27,_0x5a2e10){const _0x54a22a=a4_0x5898,_0x19978d=_0x2a1e27();while(!![]){try{const _0x1077fd=-parseInt(_0x54a22a(0x165))/0x1+-parseInt(_0x54a22a(0x160))/0x2+-parseInt(_0x54a22a(0x164))/0x3*(-parseInt(_0x54a22a(0x162))/0x4)+parseInt(_0x54a22a(0x15d))/0x5*(parseInt(_0x54a22a(0x15f))/0x6)+parseInt(_0x54a22a(0x159))/0x7+-parseInt(_0x54a22a(0x15c))/0x8*(-parseInt(_0x54a22a(0x155))/0x9)+parseInt(_0x54a22a(0x14f))/0xa*(-parseInt(_0x54a22a(0x15b))/0xb);if(_0x1077fd===_0x5a2e10)break;else _0x19978d['push'](_0x19978d['shift']());}catch(_0x41f6dd){_0x19978d['push'](_0x19978d['shift']());}}}(a4_0x1455,0x38a0d));import{CLI_BIN_NAME}from'../../constant/cli.js';import{RUNTIME_ACCESSIBLE_APP_STATUS}from'../../constant/app.js';import{CliErrors}from'../../errors.js';export function normalizeAppPublishStatus(_0x6dcff){const _0x268d5f=a4_0x5898;if(typeof _0x6dcff!==_0x268d5f(0x156))return null;const _0x397a53=_0x6dcff[_0x268d5f(0x15e)]();return _0x397a53?_0x397a53[_0x268d5f(0x151)]():null;}export function isRuntimeAccessibleApp(_0x2a23ff){return normalizeAppPublishStatus(_0x2a23ff['appPublishStatus'])===RUNTIME_ACCESSIBLE_APP_STATUS;}export function filterRuntimeAccessibleApps(_0x45e598){const _0x10a51f=a4_0x5898;return _0x45e598[_0x10a51f(0x166)](isRuntimeAccessibleApp);}export function findAppByName(_0x18bf3e,_0x2b4c8b){const _0x21de56=a4_0x5898;return _0x18bf3e['find'](_0x1adf51=>_0x1adf51[_0x21de56(0x150)]===_0x2b4c8b);}export function findAppByCode(_0x34a440,_0x2a1930){const _0x2bcfe6=a4_0x5898,_0x2c3cbc=_0x2a1930[_0x2bcfe6(0x15e)]();if(!_0x2c3cbc)return undefined;return _0x34a440[_0x2bcfe6(0x154)](_0x2c4e2a=>_0x2c4e2a[_0x2bcfe6(0x153)]?.[_0x2bcfe6(0x15e)]()===_0x2c3cbc);}export function runtimeInaccessibleAppError(_0xe3a668,_0x40e4c0){const _0x1f7d02=a4_0x5898,_0x467acb=normalizeAppPublishStatus(_0xe3a668[_0x1f7d02(0x15a)])??_0x1f7d02(0x161);return CliErrors[_0x1f7d02(0x158)](_0x1f7d02(0x163)+_0x40e4c0+_0x1f7d02(0x152),_0x1f7d02(0x157)+_0x467acb+'.\x20Publish\x20the\x20app\x20before\x20using\x20'+CLI_BIN_NAME+'\x20dataset/data/sql/bff\x20commands,\x20or\x20choose\x20a\x20published\x20app.');}
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 +1 @@
1
- (function(_0x2a6078,_0xf55c6b){const _0xe782d2=a5_0x9be5,_0x52b2c7=_0x2a6078();while(!![]){try{const _0x3bba6f=parseInt(_0xe782d2(0x106))/0x1+parseInt(_0xe782d2(0x110))/0x2*(-parseInt(_0xe782d2(0x10f))/0x3)+parseInt(_0xe782d2(0x10b))/0x4*(parseInt(_0xe782d2(0x10a))/0x5)+-parseInt(_0xe782d2(0xff))/0x6+-parseInt(_0xe782d2(0x109))/0x7*(-parseInt(_0xe782d2(0x107))/0x8)+parseInt(_0xe782d2(0x10d))/0x9*(-parseInt(_0xe782d2(0x108))/0xa)+-parseInt(_0xe782d2(0x104))/0xb*(parseInt(_0xe782d2(0x102))/0xc);if(_0x3bba6f===_0xf55c6b)break;else _0x52b2c7['push'](_0x52b2c7['shift']());}catch(_0x4a320f){_0x52b2c7['push'](_0x52b2c7['shift']());}}}(a5_0x557e,0xa0fa9));import{fileURLToPath}from'url';import{dirname,join}from'path';function a5_0x557e(){const _0x1f335e=['68345wyvCad','232ZSWdFg','errorMsg','1319931mgkjkS','../../../mock/app-list.json','3CDASUM','831118peQZOJ','2743122FrrVCm','data','parse','144eCuoah','Mock\x20API\x20error:\x20','54538vlkxtW','tableData','569580Kuvhdp','4360QHuVDv','40ghThJk','10479QoTodk'];a5_0x557e=function(){return _0x1f335e;};return a5_0x557e();}import{readFileSync}from'fs';function a5_0x9be5(_0x41e281,_0x460b85){_0x41e281=_0x41e281-0xff;const _0x557ef0=a5_0x557e();let _0x9be5a1=_0x557ef0[_0x41e281];return _0x9be5a1;}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0x3cacec=a5_0x9be5,_0x3e3fff=join(__dirname,_0x3cacec(0x10e)),_0x35086f=readFileSync(_0x3e3fff,'utf-8');return JSON[_0x3cacec(0x101)](_0x35086f);}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x1d8a20=a5_0x9be5,_0x1d52b6=getMockAppList();if(!_0x1d52b6['success'])throw new Error(_0x1d8a20(0x103)+_0x1d52b6[_0x1d8a20(0x10c)]+'\x20('+_0x1d52b6['errorCode']+')');return _0x1d52b6[_0x1d8a20(0x100)][_0x1d8a20(0x105)];}
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 +1 @@
1
- (function(_0x1f2cd5,_0x13adbd){const _0x3e36f4=a6_0x2893,_0x4ea93b=_0x1f2cd5();while(!![]){try{const _0x59d3fe=-parseInt(_0x3e36f4(0x156))/0x1+-parseInt(_0x3e36f4(0x15b))/0x2*(parseInt(_0x3e36f4(0x152))/0x3)+parseInt(_0x3e36f4(0x159))/0x4+parseInt(_0x3e36f4(0x150))/0x5+-parseInt(_0x3e36f4(0x157))/0x6+parseInt(_0x3e36f4(0x158))/0x7*(parseInt(_0x3e36f4(0x14d))/0x8)+-parseInt(_0x3e36f4(0x14f))/0x9*(-parseInt(_0x3e36f4(0x14e))/0xa);if(_0x59d3fe===_0x13adbd)break;else _0x4ea93b['push'](_0x4ea93b['shift']());}catch(_0x244ec3){_0x4ea93b['push'](_0x4ea93b['shift']());}}}(a6_0x1732,0x490d6));import{getMyApps}from'../../core/api-client.js';import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';function a6_0x2893(_0x253c14,_0x232e3b){_0x253c14=_0x253c14-0x149;const _0x173225=a6_0x1732();let _0x28938c=_0x173225[_0x253c14];return _0x28938c;}import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';function a6_0x1732(){const _0xc8914f=['8842wiwubi','items','trim','remote','mock','301072xUhDCM','10jYRjZa','1920492pvvMVf','1939085YqoDzX','toISOString','105ydAsgH','APP_LIST_SOURCE','fetchedAt','toLowerCase','522245rejsIP','2787876mYBbCs','49yKmDbv','2304820lqctrJ','cache'];a6_0x1732=function(){return _0xc8914f;};return a6_0x1732();}import{productEnv}from'../../constant/product.js';export function shouldUseMockRemoteApps(){const _0x2b6473=a6_0x2893,_0xaa1e8c=(productEnv(_0x2b6473(0x153))||'')['trim']()[_0x2b6473(0x155)]();return _0xaa1e8c===_0x2b6473(0x14c);}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x8861d2){const _0x4a074a=a6_0x2893,{env:_0x435de2,accessKey:_0x2fa555,localOnly:localOnly=![],noCache:noCache=![]}=_0x8861d2,_0x2a817c=readCachedAppList(_0x435de2,_0x2fa555),_0x265134=_0x2fa555?.[_0x4a074a(0x14a)]()?getAppCacheFilePath(_0x435de2,_0x2fa555):null;if(localOnly)return{'items':_0x2a817c?.[_0x4a074a(0x149)]??[],'source':_0x4a074a(0x15a),'fetchedAt':_0x2a817c?.[_0x4a074a(0x154)]??null,'cachePath':_0x265134};try{const _0x1b476c=await getRemoteAppItems(),_0x58def8=shouldUseMockRemoteApps()?_0x4a074a(0x14c):_0x4a074a(0x14b),_0x46d89b=new Date()[_0x4a074a(0x151)](),_0x37b166=_0x2fa555?.[_0x4a074a(0x14a)]()?writeCachedAppList(_0x435de2,_0x2fa555,{'env':_0x435de2,'fetchedAt':_0x46d89b,'source':_0x58def8,'items':_0x1b476c}):null;return{'items':_0x1b476c,'source':_0x58def8,'fetchedAt':_0x46d89b,'cachePath':_0x37b166};}catch(_0x1668f7){if(!noCache&&_0x2a817c)return{'items':_0x2a817c[_0x4a074a(0x149)],'source':_0x4a074a(0x15a),'fetchedAt':_0x2a817c[_0x4a074a(0x154)],'cachePath':_0x265134};throw _0x1668f7;}}
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 +1 @@
1
- function a7_0x3189(_0x196a8e,_0x37139b){_0x196a8e=_0x196a8e-0xcf;const _0x54bc42=a7_0x54bc();let _0x31895e=_0x54bc42[_0x196a8e];return _0x31895e;}(function(_0x5a1c37,_0x1f6ce7){const _0x4b1b28=a7_0x3189,_0x380100=_0x5a1c37();while(!![]){try{const _0x485342=parseInt(_0x4b1b28(0xd2))/0x1+parseInt(_0x4b1b28(0xd1))/0x2*(-parseInt(_0x4b1b28(0xe0))/0x3)+parseInt(_0x4b1b28(0xd7))/0x4+parseInt(_0x4b1b28(0xde))/0x5+-parseInt(_0x4b1b28(0xdf))/0x6+parseInt(_0x4b1b28(0xd6))/0x7+parseInt(_0x4b1b28(0xd9))/0x8*(parseInt(_0x4b1b28(0xdd))/0x9);if(_0x485342===_0x1f6ce7)break;else _0x380100['push'](_0x380100['shift']());}catch(_0x521ed5){_0x380100['push'](_0x380100['shift']());}}}(a7_0x54bc,0x8c861));export function enrichAppListItemsWithMergedSelection(_0x646643,_0x1210e0){const _0x5467c3=a7_0x3189;if(!_0x1210e0)return;const _0x31259b=!!(_0x1210e0['currentApp']??_0x1210e0['defaultApp']);for(const _0xe6ba02 of _0x646643){_0xe6ba02['isCurrent']=![];}const _0x141abb=_0x1210e0[_0x5467c3(0xd4)]!=null?String(_0x1210e0[_0x5467c3(0xd4)])[_0x5467c3(0xd0)]():'';if(_0x31259b){const _0x3b6ac5=_0x1210e0['currentApp']??_0x1210e0[_0x5467c3(0xda)];if(_0x3b6ac5){const _0x3d19a7=_0x646643[_0x5467c3(0xdc)](_0x11de31=>_0x11de31[_0x5467c3(0xd5)]===!![]&&_0x11de31[_0x5467c3(0xd3)]===_0x3b6ac5&&_0x11de31[_0x5467c3(0xdb)]===_0x5467c3(0xe1)),_0x22e6c4=_0x3d19a7??_0x646643['find'](_0x51d95d=>_0x51d95d[_0x5467c3(0xd5)]===!![]&&_0x51d95d[_0x5467c3(0xd3)]===_0x3b6ac5);if(_0x22e6c4){const _0x23a22e=String(_0x22e6c4[_0x5467c3(0xcf)]??'')[_0x5467c3(0xd0)]();if(!_0x141abb||_0x23a22e===_0x141abb){_0x22e6c4[_0x5467c3(0xd8)]=!![];return;}}}if(_0x141abb){const _0x3b4e5a=_0x646643[_0x5467c3(0xdc)](_0xf0dcc8=>String(_0xf0dcc8[_0x5467c3(0xcf)]??'')['trim']()===_0x141abb);_0x3b4e5a&&(_0x3b4e5a[_0x5467c3(0xd8)]=!![]);}return;}if(!_0x141abb)return;for(const _0x386d1c of _0x646643){String(_0x386d1c[_0x5467c3(0xcf)]??'')['trim']()===_0x141abb&&(_0x386d1c['isCurrent']=!![]);}}function a7_0x54bc(){const _0x4eac24=['isCurrent','72NYnZnO','defaultApp','definedIn','find','395019zWTlck','590190CbRBUw','5766906Rzxsut','6DIcuwO','local','appcode','trim','53458bhCBXC','466571bEitqG','name','appCode','named','818174lfImBY','1974736OZUFrr'];a7_0x54bc=function(){return _0x4eac24;};return a7_0x54bc();}
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 +1 @@
1
- const a8_0x5e5bb0=a8_0x1c45;(function(_0x106539,_0x522843){const _0x54d801=a8_0x1c45,_0x3b9081=_0x106539();while(!![]){try{const _0x469464=-parseInt(_0x54d801(0x13a))/0x1*(-parseInt(_0x54d801(0x149))/0x2)+-parseInt(_0x54d801(0x145))/0x3*(parseInt(_0x54d801(0x14e))/0x4)+-parseInt(_0x54d801(0x14f))/0x5*(parseInt(_0x54d801(0x148))/0x6)+-parseInt(_0x54d801(0x144))/0x7*(parseInt(_0x54d801(0x13f))/0x8)+parseInt(_0x54d801(0x14a))/0x9*(parseInt(_0x54d801(0x138))/0xa)+-parseInt(_0x54d801(0x13c))/0xb+parseInt(_0x54d801(0x143))/0xc;if(_0x469464===_0x522843)break;else _0x3b9081['push'](_0x3b9081['shift']());}catch(_0x43a287){_0x3b9081['push'](_0x3b9081['shift']());}}}(a8_0x3d96,0xd00a9));import{getRuntimeAppConfigByKey}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a8_0x3d96(){const _0x58d447=['51oiGsOJ','app-config','4611288hFGTVu','apiError','Get\x20one\x20runtime\x20app-config\x20value\x20by\x20key','104aZJzZZ','Usage:\x20','key','get','18493164WwUSRP','442421ratbvo','4023DMnTQQ','read','trim','477702DWbnNb','50532mRVeWd','10863qNBprc','Missing\x20app-config\x20key.','Unable\x20to\x20get\x20app-config\x20value:\x20key=','appCode','4492tsPpCX','45vCDqGG','args','App\x20config\x20key','12310bEdeAy',',\x20appCode='];a8_0x3d96=function(){return _0x58d447;};return a8_0x3d96();}function a8_0x1c45(_0x1b8a88,_0x47a255){_0x1b8a88=_0x1b8a88-0x137;const _0x3d9609=a8_0x3d96();let _0x1c4569=_0x3d9609[_0x1b8a88];return _0x1c4569;}export const appConfigGet={'service':a8_0x5e5bb0(0x13b),'command':a8_0x5e5bb0(0x142),'description':a8_0x5e5bb0(0x13e),'risk':a8_0x5e5bb0(0x146),'args':[{'name':a8_0x5e5bb0(0x141),'description':a8_0x5e5bb0(0x137),'required':!![]}],'flags':[],async 'execute'(_0x4f5947){const _0x4635b2=a8_0x5e5bb0,_0xdb04e2=_0x4f5947[_0x4635b2(0x150)][0x0]?.[_0x4635b2(0x147)]();if(!_0xdb04e2)throw CliErrors['validation'](_0x4635b2(0x14b),_0x4635b2(0x140)+CLI_BIN_NAME+'\x20app-config\x20get\x20<key>');try{const _0x3a3339=await getRuntimeAppConfigByKey(_0x4f5947[_0x4635b2(0x14d)],_0xdb04e2);return{'ok':!![],'data':_0x3a3339};}catch{throw CliErrors[_0x4635b2(0x13d)](_0x4635b2(0x14c)+_0xdb04e2+_0x4635b2(0x139)+_0x4f5947[_0x4635b2(0x14d)],'Check\x20that\x20the\x20key\x20exists,\x20the\x20current\x20AccessKey\x20has\x20permission,\x20and\x20the\x20runtime\x20app-config\x20endpoint\x20is\x20available.');}}};
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 +1 @@
1
- (function(_0x4a41d2,_0x57d33d){const _0x1c74d0=a9_0x4ca2,_0x3b71be=_0x4a41d2();while(!![]){try{const _0x3d7de4=parseInt(_0x1c74d0(0x11d))/0x1*(-parseInt(_0x1c74d0(0x121))/0x2)+-parseInt(_0x1c74d0(0x11e))/0x3*(parseInt(_0x1c74d0(0x122))/0x4)+-parseInt(_0x1c74d0(0x123))/0x5*(-parseInt(_0x1c74d0(0x11a))/0x6)+parseInt(_0x1c74d0(0x125))/0x7*(parseInt(_0x1c74d0(0x124))/0x8)+-parseInt(_0x1c74d0(0x120))/0x9*(parseInt(_0x1c74d0(0x11f))/0xa)+-parseInt(_0x1c74d0(0x11b))/0xb+-parseInt(_0x1c74d0(0x11c))/0xc;if(_0x3d7de4===_0x57d33d)break;else _0x3b71be['push'](_0x3b71be['shift']());}catch(_0x24510f){_0x3b71be['push'](_0x3b71be['shift']());}}}(a9_0xee35,0x2474d));import{appConfigGet}from'../../commands/app-config/get.js';function a9_0x4ca2(_0x5cb063,_0x3e6918){_0x5cb063=_0x5cb063-0x11a;const _0xee35c7=a9_0xee35();let _0x4ca28d=_0xee35c7[_0x5cb063];return _0x4ca28d;}export const appConfigDefinitions=[appConfigGet];function a9_0xee35(){const _0x1d0a0f=['19180adjwhx','153TkYQhj','383606tZUExa','292AShtjL','334315OkuHxA','8yForAp','2008223GpuCiM','24YXSXaZ','381997SfwtyN','558324DZehMX','1KUYPrI','4083oJTgLt'];a9_0xee35=function(){return _0x1d0a0f;};return a9_0xee35();}
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 +1 @@
1
- const a10_0x3e5c9=a10_0x748b;(function(_0x6bfbf7,_0x281e13){const _0x1a171d=a10_0x748b,_0xabb38d=_0x6bfbf7();while(!![]){try{const _0x2d17c7=parseInt(_0x1a171d(0x174))/0x1+-parseInt(_0x1a171d(0x162))/0x2*(-parseInt(_0x1a171d(0x16a))/0x3)+parseInt(_0x1a171d(0x170))/0x4+-parseInt(_0x1a171d(0x157))/0x5+parseInt(_0x1a171d(0x177))/0x6*(-parseInt(_0x1a171d(0x18b))/0x7)+-parseInt(_0x1a171d(0x18a))/0x8+-parseInt(_0x1a171d(0x17b))/0x9;if(_0x2d17c7===_0x281e13)break;else _0xabb38d['push'](_0xabb38d['shift']());}catch(_0x5e3122){_0xabb38d['push'](_0xabb38d['shift']());}}}(a10_0x332a,0xf1730));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_0x2f320f}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_0x3e5c9(0x15e),'description':'Application\x20code\x20(falls\x20back\x20to\x20the\x20active\x20workspace\x20app)'},PAGE_FLAG={'name':a10_0x3e5c9(0x180),'type':a10_0x3e5c9(0x16d),'default':0x1,'description':a10_0x3e5c9(0x173)},PAGE_SIZE_FLAG={'name':a10_0x3e5c9(0x168),'type':a10_0x3e5c9(0x16d),'default':0x14,'description':a10_0x3e5c9(0x171)},TASK_ID_FLAG={'name':a10_0x3e5c9(0x158),'type':a10_0x3e5c9(0x15e),'required':!![],'description':a10_0x3e5c9(0x17d)},COMMENT_FLAG={'name':a10_0x3e5c9(0x166),'type':a10_0x3e5c9(0x15e),'description':a10_0x3e5c9(0x161)},VARIABLES_FLAG={'name':'variables','type':a10_0x3e5c9(0x15e),'description':a10_0x3e5c9(0x178)},TARGET_USER_ID_FLAG={'name':a10_0x3e5c9(0x185),'type':'string','required':!![],'description':a10_0x3e5c9(0x15c)};function requireApprovalAppCode(_0x546711){const _0x1af4ec=a10_0x3e5c9,_0x4afeb6=(_0x546711[_0x1af4ec(0x154)](_0x1af4ec(0x165))||_0x546711[_0x1af4ec(0x152)]?.[_0x1af4ec(0x17e)]||_0x546711['appCode']||'')[_0x1af4ec(0x188)]();if(!_0x4afeb6)throw CliErrors['configMissing'](_0x1af4ec(0x17c));return _0x4afeb6;}function requireTaskId(_0x4461c1){const _0x534c5d=a10_0x3e5c9,_0x53dda8=_0x4461c1['str'](_0x534c5d(0x158))['trim']();if(!_0x53dda8)throw CliErrors[_0x534c5d(0x172)](_0x534c5d(0x175));return _0x53dda8;}function validatePage(_0x4d5551){const _0x487e04=a10_0x3e5c9,_0x5069b5=_0x4d5551[_0x487e04(0x164)](_0x487e04(0x180),0x1),_0x355b14=_0x4d5551['num']('page-size',0x14);if(!Number[_0x487e04(0x16e)](_0x5069b5)||_0x5069b5<0x1)throw CliErrors['validation'](_0x487e04(0x176));if(!Number[_0x487e04(0x16e)](_0x355b14)||_0x355b14<0x1)throw CliErrors['validation'](_0x487e04(0x167));}function readVariables(_0x330865){const _0x16f7bf=a10_0x3e5c9,_0x2881db=_0x330865[_0x16f7bf(0x154)](_0x16f7bf(0x17a))[_0x16f7bf(0x188)]();if(!_0x2881db)return undefined;let _0x454f39=_0x2881db;if(_0x2881db[_0x16f7bf(0x155)]('@')){const _0x5a31b6=_0x2881db['slice'](0x1)[_0x16f7bf(0x188)]();if(!_0x5a31b6)throw CliErrors['validation']('--variables\x20@file\x20path\x20must\x20not\x20be\x20blank.');try{_0x454f39=readFileSync(resolve(_0x5a31b6),_0x16f7bf(0x179));}catch{throw CliErrors['validation'](_0x16f7bf(0x151));}}let _0x1e180f;try{_0x1e180f=parseLosslessJson(_0x454f39);}catch{throw CliErrors[_0x16f7bf(0x172)](_0x16f7bf(0x159));}if(!_0x1e180f||typeof _0x1e180f!==_0x16f7bf(0x156)||Array[_0x16f7bf(0x17f)](_0x1e180f))throw CliErrors[_0x16f7bf(0x172)](_0x16f7bf(0x16c));return _0x1e180f;}function approvalBody(_0x5a7f55,_0x4c560c){const _0x176aae=a10_0x3e5c9,_0x5f9771={'appCode':requireApprovalAppCode(_0x5a7f55),'taskId':requireTaskId(_0x5a7f55),'approved':_0x4c560c},_0x244e83=_0x5a7f55['str'](_0x176aae(0x166)),_0x2969c6=readVariables(_0x5a7f55);if(_0x244e83)_0x5f9771['comment']=_0x244e83;if(_0x2969c6!==undefined)_0x5f9771[_0x176aae(0x17a)]=_0x2969c6;return _0x5f9771;}function transferBody(_0x3d1bc9){const _0x5725d8=a10_0x3e5c9,_0x149f3e=requireTaskId(_0x3d1bc9),_0x76ed50=_0x3d1bc9[_0x5725d8(0x154)](_0x5725d8(0x185))[_0x5725d8(0x188)]();if(!_0x76ed50)throw CliErrors[_0x5725d8(0x172)](_0x5725d8(0x150));const _0x1fcc29={'appCode':requireApprovalAppCode(_0x3d1bc9),'taskId':_0x149f3e,'targetUserId':_0x76ed50},_0x410c94=_0x3d1bc9[_0x5725d8(0x154)](_0x5725d8(0x166));if(_0x410c94)_0x1fcc29['comment']=_0x410c94;return _0x1fcc29;}function a10_0x748b(_0x338648,_0x35aca8){_0x338648=_0x338648-0x14d;const _0x332aeb=a10_0x332a();let _0x748b5f=_0x332aeb[_0x338648];return _0x748b5f;}function sanitized(_0x500faa){return redactSensitiveValue(_0x500faa);}const approvalTodo={'service':a10_0x3e5c9(0x14e),'command':a10_0x3e5c9(0x16f),'description':'List\x20the\x20current\x20user\x27s\x20approval\x20todo\x20tasks','risk':'read','requiresAppCode':![],'flags':[APP_CODE_FLAG,PAGE_FLAG,PAGE_SIZE_FLAG],async 'validate'(_0x5b8475){requireApprovalAppCode(_0x5b8475),validatePage(_0x5b8475);},async 'execute'(_0x10386f){const _0x17fbfe=a10_0x3e5c9,_0x4f67ad=requireApprovalAppCode(_0x10386f),_0x5621c7=await listApprovalTodo(_0x4f67ad,_0x10386f[_0x17fbfe(0x164)](_0x17fbfe(0x180),0x1),_0x10386f['num']('page-size',0x14));return{'ok':!![],'data':sanitized(_0x5621c7)};}},approvalTaskDetail={'service':'approval','command':'task-detail','description':a10_0x3e5c9(0x18c),'risk':'read','requiresAppCode':![],'flags':[APP_CODE_FLAG,TASK_ID_FLAG],async 'validate'(_0x3fcbdb){requireApprovalAppCode(_0x3fcbdb),requireTaskId(_0x3fcbdb);},async 'execute'(_0x1738c4){const _0x57ef3c=requireTaskId(_0x1738c4),_0x118df8=await getApprovalTaskDetail(_0x57ef3c,requireApprovalAppCode(_0x1738c4));return{'ok':!![],'data':sanitized(_0x118df8)};}},approvalApprove={'service':a10_0x3e5c9(0x14e),'command':a10_0x3e5c9(0x160),'description':a10_0x3e5c9(0x187),'risk':'high-risk-write','confirmationDescription':'Approves\x20the\x20pending\x20Runtime\x20task\x20and\x20advances\x20its\x20workflow.\x20This\x20action\x20may\x20trigger\x20downstream\x20nodes\x20and\x20business\x20side\x20effects.','requiresAppCode':![],'flags':[APP_CODE_FLAG,TASK_ID_FLAG,COMMENT_FLAG,VARIABLES_FLAG],async 'validate'(_0x5337e1){approvalBody(_0x5337e1,!![]);},async 'execute'(_0x137064){const _0xb87df8=a10_0x3e5c9,_0x326d09=approvalBody(_0x137064,!![]),_0x4377de=await approveApprovalTask(_0x326d09);return{'ok':!![],'data':sanitized(_0x4377de),'message':'Approved\x20approval\x20task\x20'+_0x326d09[_0xb87df8(0x14d)]};},async 'dryRun'(_0x30ba86){const _0x141138=a10_0x3e5c9,_0x4e934b=approvalBody(_0x30ba86,!![]);return a10_0x2f320f(_0x141138(0x153),_0x141138(0x183))[_0x141138(0x163)](sanitized(_0x4e934b))[_0x141138(0x181)](_0x141138(0x15d))['build']();}},approvalReject={'service':a10_0x3e5c9(0x14e),'command':'reject','description':a10_0x3e5c9(0x15b),'risk':a10_0x3e5c9(0x189),'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'(_0x320d8b){approvalBody(_0x320d8b,![]);},async 'execute'(_0x43e8d7){const _0x44ffc7=a10_0x3e5c9,_0x41d9d8=approvalBody(_0x43e8d7,![]),_0x4c1471=await approveApprovalTask(_0x41d9d8);return{'ok':!![],'data':sanitized(_0x4c1471),'message':_0x44ffc7(0x169)+_0x41d9d8[_0x44ffc7(0x14d)]};},async 'dryRun'(_0x2b1754){const _0x2a7dd2=a10_0x3e5c9,_0x4ba9ff=approvalBody(_0x2b1754,![]);return a10_0x2f320f(_0x2a7dd2(0x153),_0x2a7dd2(0x183))[_0x2a7dd2(0x163)](sanitized(_0x4ba9ff))[_0x2a7dd2(0x181)]('Preview:\x20reject\x20an\x20approval\x20task')[_0x2a7dd2(0x15f)]();}},approvalTransfer={'service':a10_0x3e5c9(0x14e),'command':a10_0x3e5c9(0x186),'description':a10_0x3e5c9(0x184),'risk':a10_0x3e5c9(0x189),'confirmationDescription':a10_0x3e5c9(0x14f),'requiresAppCode':![],'flags':[APP_CODE_FLAG,TASK_ID_FLAG,TARGET_USER_ID_FLAG,COMMENT_FLAG],async 'validate'(_0x26d2ae){transferBody(_0x26d2ae);},async 'execute'(_0x34e4ac){const _0x5a6315=a10_0x3e5c9,_0x29d5b0=transferBody(_0x34e4ac),_0x511c18=await transferApprovalTask(_0x29d5b0);return{'ok':!![],'data':sanitized(_0x511c18),'message':_0x5a6315(0x16b)+_0x29d5b0[_0x5a6315(0x14d)]};},async 'dryRun'(_0x410bab){const _0xae18f=a10_0x3e5c9,_0x30bf9a=transferBody(_0x410bab);return a10_0x2f320f(_0xae18f(0x153),_0xae18f(0x15a))[_0xae18f(0x163)](sanitized(_0x30bf9a))['description'](_0xae18f(0x182))[_0xae18f(0x15f)]();}};export const approvalDefinitions=[approvalTodo,approvalTaskDetail,approvalApprove,approvalReject,approvalTransfer];export{approvalApprove,approvalReject,approvalTaskDetail,approvalTodo,approvalTransfer};function a10_0x332a(){const _0x3b243c=['One-based\x20todo\x20page\x20number','165658otNYht','--task-id\x20must\x20not\x20be\x20blank.','--page\x20must\x20be\x20a\x20positive\x20integer.','1418826aLypMA','Workflow\x20variables\x20as\x20JSON\x20or\x20@path/to/variables.json','utf8','variables','529875DtnCMi','Set\x20--app-code,\x20--appcode,\x20or\x20an\x20active\x20app\x20in\x20the\x20workspace\x20configuration.','Runtime\x20approval\x20task\x20ID','appCode','isArray','page','description','Preview:\x20transfer\x20an\x20approval\x20task','/client/flow/approve','Transfer\x20a\x20pending\x20Runtime\x20task\x20to\x20an\x20allowed\x20user','target-user-id','transfer','Approve\x20a\x20pending\x20Runtime\x20task','trim','high-risk-write','7417328poDlzS','14JyxRVB','Show\x20an\x20approval\x20task\x20and\x20its\x20current\x20handling\x20permissions','taskId','approval','Transfers\x20the\x20pending\x20Runtime\x20task\x20to\x20the\x20selected\x20eligible\x20user.\x20The\x20current\x20handler\x20may\x20lose\x20permission\x20to\x20process\x20the\x20task.','--target-user-id\x20must\x20not\x20be\x20blank.','Unable\x20to\x20read\x20--variables\x20file.','mergedCli','POST','str','startsWith','object','246565vCDOhq','task-id','--variables\x20must\x20contain\x20valid\x20JSON.','/client/flow/task/transfer','Reject\x20a\x20pending\x20Runtime\x20task','Target\x20user\x20ID\x20selected\x20from\x20Runtime\x20transfer\x20candidates','Preview:\x20approve\x20an\x20approval\x20task','string','build','approve','Approval\x20or\x20transfer\x20comment','14778Xrssrx','body','num','app-code','comment','--page-size\x20must\x20be\x20a\x20positive\x20integer.','page-size','Rejected\x20approval\x20task\x20','588qxbyWj','Transferred\x20approval\x20task\x20','--variables\x20must\x20be\x20a\x20JSON\x20object.','number','isSafeInteger','todo','3533480wPreMd','Number\x20of\x20todo\x20records\x20per\x20page','validation'];a10_0x332a=function(){return _0x3b243c;};return a10_0x332a();}
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 +1 @@
1
- const a11_0x3e9365=a11_0x2486;(function(_0x39aa36,_0x2f6ffc){const _0x565222=a11_0x2486,_0x4d15ef=_0x39aa36();while(!![]){try{const _0x1c8e09=parseInt(_0x565222(0x1ca))/0x1+-parseInt(_0x565222(0x1b8))/0x2*(parseInt(_0x565222(0x206))/0x3)+parseInt(_0x565222(0x1c4))/0x4+-parseInt(_0x565222(0x1f9))/0x5+parseInt(_0x565222(0x1cb))/0x6*(parseInt(_0x565222(0x1d3))/0x7)+parseInt(_0x565222(0x1cc))/0x8+-parseInt(_0x565222(0x1f4))/0x9;if(_0x1c8e09===_0x2f6ffc)break;else _0x4d15ef['push'](_0x4d15ef['shift']());}catch(_0x2be798){_0x4d15ef['push'](_0x4d15ef['shift']());}}}(a11_0xbd3d,0xe5ca7));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_0x3e9365(0x1db),ARTIFACT_SOURCE_AGENT=a11_0x3e9365(0x1dc),ALLOWED_REACT_MODULE_IMPORTS=[a11_0x3e9365(0x1eb),'react-dom','lodash','dayjs',a11_0x3e9365(0x1c7),a11_0x3e9365(0x1d6)];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_0x3e9365(0x1ec),'type':'string','required':!![],'description':a11_0x3e9365(0x1fe)},ARTIFACT_NAME_FLAG={'name':a11_0x3e9365(0x1c6),'type':a11_0x3e9365(0x1e4),'description':a11_0x3e9365(0x1ce)},METADATA_FLAG={'name':a11_0x3e9365(0x1ee),'type':'string','description':a11_0x3e9365(0x1c8)};function isPlainObject(_0x111c69){const _0x12aa85=a11_0x3e9365;return typeof _0x111c69===_0x12aa85(0x1d0)&&_0x111c69!==null&&!Array[_0x12aa85(0x1ea)](_0x111c69);}function readSourceFile(_0x54fb57){const _0x20243f=a11_0x3e9365;if(!_0x54fb57)throw CliErrors[_0x20243f(0x1f3)](_0x20243f(0x1c9));if(!existsSync(_0x54fb57))throw CliErrors[_0x20243f(0x1f3)]('File\x20not\x20found:\x20'+_0x54fb57);if(!statSync(_0x54fb57)['isFile']())throw CliErrors['validation'](_0x20243f(0x200)+_0x54fb57);const _0x5bf4e7=readFileSync(_0x54fb57,_0x20243f(0x1d8));return validateReactModuleSource(_0x5bf4e7),_0x5bf4e7;}function parseMetadata(_0x274258){const _0x5ac289=a11_0x3e9365;if(!_0x274258)return undefined;let _0x22d1fc;try{_0x22d1fc=JSON['parse'](_0x274258);}catch{throw CliErrors[_0x5ac289(0x1f3)](_0x5ac289(0x1f7)+_0x274258);}if(!isPlainObject(_0x22d1fc))throw CliErrors[_0x5ac289(0x1f3)](_0x5ac289(0x1d2));const _0xb740c3={..._0x22d1fc};return delete _0xb740c3[_0x5ac289(0x1ba)],_0xb740c3;}function getPackageName(_0x5242eb){const _0x4ac1e7=a11_0x3e9365;if(_0x5242eb[_0x4ac1e7(0x1e6)]('@')){const [_0x49ab8b,_0x5c141d]=_0x5242eb[_0x4ac1e7(0x1e5)]('/');return _0x49ab8b&&_0x5c141d?_0x49ab8b+'/'+_0x5c141d:_0x5242eb;}return _0x5242eb[_0x4ac1e7(0x1e5)]('/')[0x0]||_0x5242eb;}function validateAllowedImports(_0x365274){const _0x5967c3=a11_0x3e9365,_0x6d00a3=new Set();for(const _0x46eade of IMPORT_SOURCE_PATTERNS){_0x46eade[_0x5967c3(0x203)]=0x0;let _0x4e260d;while((_0x4e260d=_0x46eade['exec'](_0x365274))!==null){const _0x2a4712=_0x4e260d[0x1]?.[_0x5967c3(0x1f8)]();_0x2a4712&&_0x6d00a3[_0x5967c3(0x1de)](_0x2a4712);}}const _0x5cf86c=[..._0x6d00a3]['map'](getPackageName)['filter'](_0x3bb9ec=>!ALLOWED_REACT_MODULE_IMPORTS[_0x5967c3(0x1df)](_0x3bb9ec));if(_0x5cf86c['length']>0x0)throw CliErrors[_0x5967c3(0x1f3)](_0x5967c3(0x1c2)+ALLOWED_REACT_MODULE_IMPORTS_TEXT+'.\x20Unsupported:\x20'+[...new Set(_0x5cf86c)][_0x5967c3(0x1ff)](',\x20'));}export function validateReactModuleSource(_0x1c486a){const _0x3e1edf=a11_0x3e9365;if(!_0x1c486a[_0x3e1edf(0x1f8)]())throw CliErrors['validation'](_0x3e1edf(0x1bd));if(PAGE_LEVEL_PATTERNS[_0x3e1edf(0x1f0)](_0x223d92=>_0x223d92['test'](_0x1c486a)))throw CliErrors[_0x3e1edf(0x1f3)](_0x3e1edf(0x1c3));validateAllowedImports(_0x1c486a);}function buildArtifactInput(_0x6ecff1){const _0xa7256d=a11_0x3e9365,_0x23cfac=readSourceFile(_0x6ecff1[_0xa7256d(0x1d1)](_0xa7256d(0x1ec))),_0x8ab985=_0x6ecff1[_0xa7256d(0x1d1)](_0xa7256d(0x1c6))[_0xa7256d(0x1f8)](),_0x4ba85a=parseMetadata(_0x6ecff1[_0xa7256d(0x1d1)](_0xa7256d(0x1ee)));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x8ab985?{'name':_0x8ab985}:{},'content':_0x23cfac,..._0x4ba85a?{'metadata':_0x4ba85a}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0x34d419){const _0x2c7c21=a11_0x3e9365;return{'id':_0x34d419['id'],'name':_0x34d419[_0x2c7c21(0x1c6)],'artifactType':_0x34d419[_0x2c7c21(0x1e8)],'source':_0x34d419[_0x2c7c21(0x1cd)],'favorite':_0x34d419[_0x2c7c21(0x1c0)],'deleted':_0x34d419[_0x2c7c21(0x1ef)],'createTime':_0x34d419['createTime'],'updateTime':_0x34d419[_0x2c7c21(0x1bb)]};}function a11_0xbd3d(){const _0x550552=['@ant-design/icons','/client/artifact/','utf8','Show\x20one\x20Artifact\x20by\x20id','Created\x20Artifact\x20','react_module','AGENT','boolean','add','includes','Preview:\x20update\x20react_module\x20Artifact\x20','length','read','appCode','string','split','startsWith','update','artifactType','Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','isArray','react','file','/client/artifact/create','metadata','deleted','some','verbose','Updated\x20Artifact\x20','validation','17727390BUfesh','createTime','Optional\x20source\x20filter,\x20for\x20example\x20AGENT','Invalid\x20JSON\x20for\x20--metadata:\x20','trim','9129960RDJdsx','Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','POST','body','content','Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file','join','File\x20is\x20not\x20a\x20regular\x20file:\x20','artifact','build','lastIndex','Artifact\x20ID','map','448035ywvRIH','2IjzdTy','bool','compiledContent','updateTime','description','Artifact\x20source\x20file\x20is\x20blank.','detail','List\x20current-app\x20react_module\x20Artifacts','favorite','/update','react_module\x20imports\x20are\x20limited\x20to:\x20','react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.','5011900FGTnqa','num','name','antd','Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped','File\x20path\x20is\x20required.','924213qxKpru','1248tRGukq','12592208KlOkiR','source','Artifact\x20display\x20name','flag','object','str','--metadata\x20must\x20be\x20a\x20JSON\x20object.','38199iuSeOH','create','Optional\x20favorite-state\x20filter'];a11_0xbd3d=function(){return _0x550552;};return a11_0xbd3d();}function detailArtifact(_0x57188e){const _0x2869ae=a11_0x3e9365;return{'id':_0x57188e['id'],'appCode':_0x57188e[_0x2869ae(0x1e3)],'name':_0x57188e[_0x2869ae(0x1c6)],'artifactType':_0x57188e[_0x2869ae(0x1e8)],'source':_0x57188e[_0x2869ae(0x1cd)],'favorite':_0x57188e[_0x2869ae(0x1c0)],'deleted':_0x57188e[_0x2869ae(0x1ef)],'content':_0x57188e[_0x2869ae(0x1fd)]??'','compiledContent':_0x57188e[_0x2869ae(0x1ba)],'metadata':_0x57188e['metadata']??{},'createTime':_0x57188e[_0x2869ae(0x1f5)],'updateTime':_0x57188e[_0x2869ae(0x1bb)]};}function readFavoriteFlag(_0x406ab7){const _0x3e3064=a11_0x3e9365,_0x312b48=_0x406ab7[_0x3e3064(0x1cf)]('favorite');return _0x312b48===undefined||_0x312b48===null||_0x312b48===''?undefined:_0x406ab7[_0x3e3064(0x1b9)](_0x3e3064(0x1c0));}function a11_0x2486(_0x26d668,_0x1b9288){_0x26d668=_0x26d668-0x1b8;const _0xbd3de5=a11_0xbd3d();let _0x248609=_0xbd3de5[_0x26d668];return _0x248609;}const artifactList={'service':a11_0x3e9365(0x201),'command':'list','description':a11_0x3e9365(0x1bf),'risk':a11_0x3e9365(0x1e2),'flags':[{'name':'source','type':'string','description':a11_0x3e9365(0x1f6)},{'name':a11_0x3e9365(0x1c0),'type':a11_0x3e9365(0x1dd),'description':a11_0x3e9365(0x1d5)},VERBOSE_FLAG],async 'execute'(_0x11b97f){const _0x4619a7=a11_0x3e9365,_0x44d7fe=await listRuntimeArtifacts(_0x11b97f[_0x4619a7(0x1e3)],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x11b97f[_0x4619a7(0x1d1)](_0x4619a7(0x1cd))?{'source':_0x11b97f[_0x4619a7(0x1d1)](_0x4619a7(0x1cd))}:{},...readFavoriteFlag(_0x11b97f)!==undefined?{'favorite':readFavoriteFlag(_0x11b97f)}:{}});return{'ok':!![],'data':{'total':_0x44d7fe[_0x4619a7(0x1e1)],'items':_0x11b97f[_0x4619a7(0x1b9)](_0x4619a7(0x1f1))?_0x44d7fe:_0x44d7fe[_0x4619a7(0x205)](summarizeArtifact)}};}},artifactDetail={'service':'artifact','command':a11_0x3e9365(0x1be),'description':a11_0x3e9365(0x1d9),'risk':a11_0x3e9365(0x1e2),'flags':[{...ID_FLAG,'description':'Artifact\x20ID'}],async 'execute'(_0xe1601e){const _0x51365d=a11_0x3e9365,_0x4b24df=await getRuntimeArtifact(_0xe1601e['num']('id'),_0xe1601e[_0x51365d(0x1e3)]);return{'ok':!![],'data':detailArtifact(_0x4b24df)};}},artifactCreate={'service':a11_0x3e9365(0x201),'command':a11_0x3e9365(0x1d4),'description':a11_0x3e9365(0x1fa),'risk':a11_0x3e9365(0x1e2),'flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x36b29b){const _0x4abbda=a11_0x3e9365,_0x309a74=buildArtifactInput(_0x36b29b),_0x56ec3a=await createRuntimeArtifact(_0x36b29b[_0x4abbda(0x1e3)],_0x309a74);return{'ok':!![],'data':detailArtifact(_0x56ec3a),'message':_0x4abbda(0x1da)+_0x56ec3a['id']+(_0x56ec3a[_0x4abbda(0x1c6)]?'\x20('+_0x56ec3a[_0x4abbda(0x1c6)]+')':'')};},async 'dryRun'(_0x1f3750){const _0x29b033=a11_0x3e9365,_0x443ee4=buildArtifactInput(_0x1f3750);return dryRun(_0x29b033(0x1fb),_0x29b033(0x1ed))[_0x29b033(0x1fc)]({'appCode':_0x1f3750[_0x29b033(0x1e3)],..._0x443ee4})['description']('Preview:\x20create\x20react_module\x20Artifact')[_0x29b033(0x202)]();}},artifactUpdate={'service':'artifact','command':a11_0x3e9365(0x1e7),'description':a11_0x3e9365(0x1e9),'risk':a11_0x3e9365(0x1e2),'flags':[{...ID_FLAG,'description':a11_0x3e9365(0x204)},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x1ee0ce){const _0xec0279=a11_0x3e9365,_0x4d0bdc=_0x1ee0ce['num']('id'),_0x499b18=buildArtifactInput(_0x1ee0ce),_0x604cb4=await updateRuntimeArtifact(_0x4d0bdc,_0x1ee0ce[_0xec0279(0x1e3)],_0x499b18);return{'ok':!![],'data':detailArtifact(_0x604cb4),'message':_0xec0279(0x1f2)+_0x604cb4['id']+(_0x604cb4[_0xec0279(0x1c6)]?'\x20('+_0x604cb4[_0xec0279(0x1c6)]+')':'')};},async 'dryRun'(_0x1e9744){const _0x2f75c9=a11_0x3e9365,_0x30f378=_0x1e9744[_0x2f75c9(0x1c5)]('id'),_0x576747=buildArtifactInput(_0x1e9744);return dryRun(_0x2f75c9(0x1fb),_0x2f75c9(0x1d7)+_0x30f378+_0x2f75c9(0x1c1))['body']({'appCode':_0x1e9744[_0x2f75c9(0x1e3)],..._0x576747})[_0x2f75c9(0x1bc)](_0x2f75c9(0x1e0)+_0x30f378)['build']();}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
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 +1 @@
1
- const a12_0x10d632=a12_0x1395;(function(_0x264b41,_0x46b0c){const _0x22b32=a12_0x1395,_0x3de029=_0x264b41();while(!![]){try{const _0x126d6b=parseInt(_0x22b32(0x145))/0x1*(parseInt(_0x22b32(0x154))/0x2)+-parseInt(_0x22b32(0x175))/0x3*(-parseInt(_0x22b32(0x176))/0x4)+parseInt(_0x22b32(0x185))/0x5*(parseInt(_0x22b32(0x159))/0x6)+-parseInt(_0x22b32(0x13c))/0x7+-parseInt(_0x22b32(0x183))/0x8+-parseInt(_0x22b32(0x144))/0x9*(-parseInt(_0x22b32(0x163))/0xa)+parseInt(_0x22b32(0x17a))/0xb;if(_0x126d6b===_0x46b0c)break;else _0x3de029['push'](_0x3de029['shift']());}catch(_0x2b02dd){_0x3de029['push'](_0x3de029['shift']());}}}(a12_0x3885,0xd2e64));import{existsSync,mkdirSync,readFileSync,unlinkSync,writeFileSync}from'node:fs';function a12_0x1395(_0x3ef68c,_0x53656d){_0x3ef68c=_0x3ef68c-0x13a;const _0x38859e=a12_0x3885();let _0x1395b2=_0x38859e[_0x3ef68c];return _0x1395b2;}import{dirname}from'node:path';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';function a12_0x3885(){const _0x407737=['validation','AbortError','10346217VhrZfs','url-only','homeDirName','Waiting\x20for\x20authorization\x20(timeout:\x2010\x20minutes,\x20Ctrl+C\x20to\x20cancel)...','/.device-auth','Verify:\x20','str','Device\x20auth\x20API\x20unreachable\x20after\x20multiple\x20retries.','45LijZmx','2026qqiHLT','networkError','stderr','bool','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.','name','log','randomUUID','Device\x20authorization\x20successful.','scope','removeListener','Device\x20authorization\x20cancelled.','test','project','\x20config.','354BWyoMf','The\x20device\x20code\x20is\x20valid\x20for\x2010\x20minutes.','now','abort','padStart','126APwEqu','/device-auth?code=','App\x20name\x20shown\x20on\x20authorization\x20page\x20(default:\x20lovrabet)','utf8','Device\x20authorization\x20timed\x20out\x20after\x2010\x20minutes.\x20Run\x20`lovrabet\x20auth\x20device`\x20to\x20get\x20a\x20new\x20code.','Write\x20to\x20project\x20config','stringify','access_key','cancelled','Device\x20auth\x20API\x20returned\x20HTTP\x20','1454710OPbjGO','\x20remaining','SIGINT','device','string','auth','boolean','write','status','trim','source','),\x20retrying...','global-default','nonInteractive','AccessKey\x20saved\x20to\x20','accessKey','data','Already\x20authorized.\x20Use\x20`lovrabet\x20auth\x20status`\x20to\x20verify.','42oYmZFQ','113268vCNXzv','createdAt','Open\x20this\x20URL\x20in\x20your\x20browser\x20to\x20authorize:','Write\x20to\x20global\x20config\x20(default)','4507965dGmIbL','global','object','Device\x20auth\x20API\x20error\x20(','Device\x20code\x20expired.\x20Run\x20`lovrabet\x20auth\x20device`\x20to\x20get\x20a\x20new\x20code.','code','Print\x20URL\x20to\x20stdout\x20and\x20exit\x20(for\x20WorkBuddy\x20integration)','application/json','floor','1117768GEOVkJ','expired','140330SQdQQa','once','POST','signal','json','Authorize\x20with\x20the\x20device-code\x20flow\x20(complete\x20in\x20the\x20browser;\x20no\x20copy-paste\x20required)','parse','Invalid\x20access_key\x20returned\x20by\x20server.','aborted','Device\x20authorization\x20URL\x20printed.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20re-run.'];a12_0x3885=function(){return _0x407737;};return a12_0x3885();}import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';function resolveAuthScopeFlags(_0x52514a){const _0x11d053=a12_0x1395;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x52514a[_0x11d053(0x148)]('global'),'explicitProject':_0x52514a['bool']('project'),'policy':_0x11d053(0x16f)}));}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 _0x39989b=a12_0x1395;return crypto[_0x39989b(0x14c)]();}export function buildDeviceAuthUrl(_0x5c658d,_0x5eb3d1,_0x1605dd='lovrabet-cli'){const _0x2c4a0e=a12_0x1395;return _0x5c658d+_0x2c4a0e(0x15a)+encodeURIComponent(_0x5eb3d1)+'&source='+encodeURIComponent(_0x1605dd);}export function getDeviceCodePath(){const _0x4a2425=a12_0x1395;return homedir()+'/'+PRODUCT_CONFIG[_0x4a2425(0x13e)]+_0x4a2425(0x140);}export function readStoredDeviceCode(){const _0x58bf20=a12_0x1395,_0x3774de=getDeviceCodePath();if(!existsSync(_0x3774de))return null;try{const _0x5e2574=readFileSync(_0x3774de,{'encoding':_0x58bf20(0x15c)}),_0x104834=JSON[_0x58bf20(0x18b)](_0x5e2574);if(_0x104834&&typeof _0x104834['code']===_0x58bf20(0x167)&&typeof _0x104834[_0x58bf20(0x177)]==='string'&&(_0x104834[_0x58bf20(0x14e)]===_0x58bf20(0x17b)||_0x104834[_0x58bf20(0x14e)]===_0x58bf20(0x152)))return _0x104834;}catch{}return null;}export function writeStoredDeviceCode(_0x4f5de5,_0x5eead6){const _0x482813=a12_0x1395,_0x31af7a=getDeviceCodePath(),_0x28bd69=dirname(_0x31af7a);!existsSync(_0x28bd69)&&mkdirSync(_0x28bd69,{'recursive':!![]});const _0x3cd332={'code':_0x4f5de5,'createdAt':new Date()['toISOString'](),'scope':_0x5eead6};writeFileSync(_0x31af7a,JSON[_0x482813(0x15f)](_0x3cd332),{'encoding':_0x482813(0x15c),'mode':0x180});}export function deleteStoredDeviceCode(){const _0x599b22=getDeviceCodePath();try{unlinkSync(_0x599b22);}catch{}}export function isStoredDeviceCodeExpired(_0x2300c3){const _0x164361=a12_0x1395;return Date[_0x164361(0x156)]()-new Date(_0x2300c3[_0x164361(0x177)])['getTime']()>DEVICE_CODE_TTL_MS;}export async function fetchDeviceToken(_0x5f6537,_0x1035eb){const _0xa18ac=a12_0x1395,_0x245c6d=_0x5f6537+'/api/device-auth/token',_0x423bd2=new AbortController(),_0x101f81=setTimeout(()=>_0x423bd2[_0xa18ac(0x157)](),0x2710),_0x3ac7fb=await fetch(_0x245c6d,{'method':_0xa18ac(0x187),'headers':{'Content-Type':_0xa18ac(0x181)},'body':JSON[_0xa18ac(0x15f)]({'code':_0x1035eb}),'signal':_0x423bd2[_0xa18ac(0x188)]});clearTimeout(_0x101f81);if(!_0x3ac7fb['ok'])throw CliErrors['networkError'](_0xa18ac(0x162)+_0x3ac7fb[_0xa18ac(0x16b)]);const _0x353cdc=await _0x3ac7fb[_0xa18ac(0x189)](),_0x596f7d=_0x353cdc['data']&&typeof _0x353cdc[_0xa18ac(0x173)]===_0xa18ac(0x17c)?_0x353cdc['data']:_0x353cdc;if(!_0x596f7d||typeof _0x596f7d['status']!==_0xa18ac(0x167))throw CliErrors['apiError']('Invalid\x20device\x20auth\x20response');return{'status':_0x596f7d[_0xa18ac(0x16b)],'access_key':typeof _0x596f7d['access_key']===_0xa18ac(0x167)?_0x596f7d['access_key']:undefined};}export async function pollDeviceToken(_0x26cc26,_0x12f303,_0x44a4f8){const _0x5d06cd=a12_0x1395;let _0x3a9198=0x0;for(let _0x1ee2ce=0x0;_0x1ee2ce<MAX_POLLS;_0x1ee2ce++){if(_0x44a4f8[_0x5d06cd(0x18d)])throw CliErrors[_0x5d06cd(0x161)](_0x5d06cd(0x150));let _0x7118ed;try{_0x7118ed=await fetchDeviceToken(_0x26cc26,_0x12f303);}catch(_0x55942a){if(_0x55942a instanceof Error&&_0x55942a[_0x5d06cd(0x14a)]===_0x5d06cd(0x13b))throw CliErrors[_0x5d06cd(0x161)](_0x5d06cd(0x150));_0x3a9198++;if(_0x3a9198>=MAX_CONSECUTIVE_NETWORK_ERRORS)throw CliErrors[_0x5d06cd(0x146)](_0x5d06cd(0x143));writeCliSideChannelLine(_0x5d06cd(0x17d)+_0x3a9198+'/'+MAX_CONSECUTIVE_NETWORK_ERRORS+_0x5d06cd(0x16e)),await sleep(POLL_INTERVAL_MS);continue;}_0x3a9198=0x0;if(_0x7118ed[_0x5d06cd(0x16b)]==='success'){if(!_0x7118ed[_0x5d06cd(0x160)])throw CliErrors['apiError']('Invalid\x20access_key\x20returned\x20by\x20server.');return _0x7118ed['access_key'];}if(_0x7118ed[_0x5d06cd(0x16b)]===_0x5d06cd(0x184)){deleteStoredDeviceCode();throw CliErrors[_0x5d06cd(0x13a)](_0x5d06cd(0x17e));}const _0x59ef37=(_0x1ee2ce+0x1)*POLL_INTERVAL_MS,_0x5c4fb8=DEVICE_CODE_TTL_MS-_0x59ef37,_0x1a1715=Math[_0x5d06cd(0x182)](_0x5c4fb8/0xea60),_0x28138e=Math[_0x5d06cd(0x182)](_0x5c4fb8%0xea60/0x3e8);process[_0x5d06cd(0x147)]['write']('\x0dWaiting\x20for\x20authorization...\x20'+_0x1a1715+':'+String(_0x28138e)[_0x5d06cd(0x158)](0x2,'0')+_0x5d06cd(0x164)),await sleep(POLL_INTERVAL_MS);}deleteStoredDeviceCode();throw CliErrors[_0x5d06cd(0x13a)](_0x5d06cd(0x15d));}function sleep(_0x18a220){return new Promise(_0x529937=>setTimeout(_0x529937,_0x18a220));}export const authDeviceDefinition={'service':a12_0x10d632(0x168),'command':a12_0x10d632(0x166),'description':a12_0x10d632(0x18a),'risk':'write','confirmationDescription':a12_0x10d632(0x149),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x10d632(0x17b),'type':'boolean','description':a12_0x10d632(0x179),'default':!![]},{'name':'project','type':a12_0x10d632(0x169),'description':a12_0x10d632(0x15e),'default':![]},{'name':a12_0x10d632(0x16d),'type':'string','description':a12_0x10d632(0x15b),'default':'lovrabet-cli'},{'name':a12_0x10d632(0x13d),'type':a12_0x10d632(0x169),'description':a12_0x10d632(0x180),'default':![]}],async 'execute'(_0x47a7c1){const _0x513600=a12_0x10d632,_0x517762=resolveAuthScopeFlags(_0x47a7c1),_0x5e6b4b=_0x517762[_0x513600(0x17b)]?'global':_0x513600(0x152),_0x11c37f=readScopedConfig(_0x517762);if(_0x11c37f[_0x513600(0x172)])return{'ok':!![],'message':_0x513600(0x174)};const _0x409e99=(_0x47a7c1[_0x513600(0x142)](_0x513600(0x16d))||'lovrabet-cli')[_0x513600(0x16c)](),_0x2fa6dc=getUserDomain(),_0x44faaf=readStoredDeviceCode(),_0x374558=_0x44faaf&&!isStoredDeviceCodeExpired(_0x44faaf)?_0x44faaf[_0x513600(0x17f)]:((()=>{const _0x36a6e7=generateDeviceCode();return writeStoredDeviceCode(_0x36a6e7,_0x5e6b4b),_0x36a6e7;})()),_0x6ec30f=buildDeviceAuthUrl(_0x2fa6dc,_0x374558,_0x409e99);if(_0x47a7c1[_0x513600(0x148)]('url-only'))return console[_0x513600(0x14b)](_0x6ec30f),{'ok':!![]};writeCliSideChannelLine(_0x513600(0x178)),writeCliSideChannelLine(''),writeCliSideChannelLine(_0x6ec30f),writeCliSideChannelLine(''),writeCliSideChannelLine(_0x513600(0x155));if(_0x47a7c1[_0x513600(0x170)])return writeCliSideChannelLine('After\x20authorizing,\x20re-run:\x20'+CLI_BIN_NAME+'\x20auth\x20device'),{'ok':!![],'message':_0x513600(0x18e)};writeCliSideChannelLine(_0x513600(0x13f));const _0x18baa9=new AbortController(),_0x1c941d=()=>{const _0x5c8282=_0x513600;_0x18baa9[_0x5c8282(0x157)](),process[_0x5c8282(0x14f)](_0x5c8282(0x165),_0x1c941d);};process[_0x513600(0x186)](_0x513600(0x165),_0x1c941d);let _0x153f91;try{_0x153f91=await pollDeviceToken(_0x2fa6dc,_0x374558,_0x18baa9[_0x513600(0x188)]);}finally{process['removeListener'](_0x513600(0x165),_0x1c941d);}if(!ACCESS_KEY_PATTERN[_0x513600(0x151)](_0x153f91))throw CliErrors['apiError'](_0x513600(0x18c));const _0x2bbf73=readScopedConfig(_0x517762);return _0x2bbf73['accessKey']=_0x153f91,writeScopedConfig(_0x2bbf73,_0x517762),deleteStoredDeviceCode(),process[_0x513600(0x147)][_0x513600(0x16a)]('\x0a'),writeCliSideChannelLine(_0x513600(0x171)+_0x5e6b4b+_0x513600(0x153)),writeCliSideChannelLine(_0x513600(0x141)+CLI_BIN_NAME+'\x20auth\x20status'),{'ok':!![],'message':_0x513600(0x14d)};}};
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)};}};