@lovrabet/lovrabet-cli 2.1.18-beta.3 → 2.1.19-beta.1

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 (134) hide show
  1. package/README.md +7 -0
  2. package/lib/cli.js +1 -1
  3. package/lib/commands/api-doc/index.js +1 -1
  4. package/lib/commands/app/cache.js +1 -1
  5. package/lib/commands/app/definitions.js +1 -1
  6. package/lib/commands/app/eligibility.js +1 -1
  7. package/lib/commands/app/mock-loader.js +1 -1
  8. package/lib/commands/app/remote-source.js +1 -1
  9. package/lib/commands/app/shared.js +1 -1
  10. package/lib/commands/app-config/get.js +1 -1
  11. package/lib/commands/app-config/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/shared.js +1 -1
  26. package/lib/commands/data/index.js +1 -1
  27. package/lib/commands/dataset/detail.js +1 -1
  28. package/lib/commands/dataset/index.js +1 -1
  29. package/lib/commands/dataset/list.js +1 -1
  30. package/lib/commands/dataset/sdk-doc.js +1 -1
  31. package/lib/commands/doctor.js +1 -1
  32. package/lib/commands/file/index.js +1 -1
  33. package/lib/commands/init.js +1 -1
  34. package/lib/commands/kb/index.js +1 -1
  35. package/lib/commands/logs/index.js +1 -1
  36. package/lib/commands/ocr/index.js +1 -1
  37. package/lib/commands/personal-bff/index.js +1 -1
  38. package/lib/commands/registry.js +1 -1
  39. package/lib/commands/schedule/index.js +1 -1
  40. package/lib/commands/schema.js +1 -1
  41. package/lib/commands/service/dynamic.js +1 -1
  42. package/lib/commands/service/function-name-adapter.js +1 -1
  43. package/lib/commands/service/index.js +1 -1
  44. package/lib/commands/service/registry.js +1 -1
  45. package/lib/commands/skill/commands/create.js +1 -1
  46. package/lib/commands/skill/commands/install.js +1 -1
  47. package/lib/commands/skill/commands/list.js +1 -1
  48. package/lib/commands/skill/commands/push.js +1 -1
  49. package/lib/commands/skill/commands/validate.js +1 -1
  50. package/lib/commands/skill/flags.d.ts +1 -0
  51. package/lib/commands/skill/flags.js +1 -1
  52. package/lib/commands/skill/index.js +1 -1
  53. package/lib/commands/skill/manifest-helpers.js +1 -1
  54. package/lib/commands/skill/push-execute.js +1 -1
  55. package/lib/commands/skill/push-flow-helpers.js +1 -1
  56. package/lib/commands/skill/push-retarget.js +1 -1
  57. package/lib/commands/skill/scopes.js +1 -1
  58. package/lib/commands/skill/summary.js +1 -1
  59. package/lib/commands/skill/templates.js +1 -1
  60. package/lib/commands/skill/validate.js +1 -1
  61. package/lib/commands/sql/detail.js +1 -1
  62. package/lib/commands/sql/exec.js +1 -1
  63. package/lib/commands/sql/index.js +1 -1
  64. package/lib/commands/update.js +1 -1
  65. package/lib/commands/workspace/index.js +1 -1
  66. package/lib/config/schema.js +1 -1
  67. package/lib/constant/app.js +1 -1
  68. package/lib/constant/auth-mode.js +1 -1
  69. package/lib/constant/cli.js +1 -1
  70. package/lib/constant/defaults.js +1 -1
  71. package/lib/constant/distribution.js +1 -1
  72. package/lib/constant/domain.js +1 -1
  73. package/lib/constant/env.js +1 -1
  74. package/lib/constant/output.js +1 -1
  75. package/lib/constant/product.js +1 -1
  76. package/lib/constant/risk.js +1 -1
  77. package/lib/constant/url.js +1 -1
  78. package/lib/context.js +1 -1
  79. package/lib/core/api-client.js +1 -1
  80. package/lib/core/db-resolver.js +1 -1
  81. package/lib/core/sdk-client.js +1 -1
  82. package/lib/errors.js +1 -1
  83. package/lib/framework/build-all-flags.js +1 -1
  84. package/lib/framework/dryrun.js +1 -1
  85. package/lib/framework/flags.js +1 -1
  86. package/lib/framework/help.js +1 -1
  87. package/lib/framework/index.js +1 -1
  88. package/lib/framework/output.js +1 -1
  89. package/lib/framework/preparse.js +1 -1
  90. package/lib/framework/rate-limit.js +1 -1
  91. package/lib/framework/response.js +1 -1
  92. package/lib/framework/runner-confirmation.js +1 -1
  93. package/lib/framework/runner-error.js +1 -1
  94. package/lib/framework/runner.js +1 -1
  95. package/lib/framework/schema-export.js +1 -1
  96. package/lib/framework/service-order.js +1 -1
  97. package/lib/framework/types.js +1 -1
  98. package/lib/generated/build-info.d.ts +4 -4
  99. package/lib/generated/build-info.js +1 -1
  100. package/lib/help.js +1 -1
  101. package/lib/runtime/event.js +1 -1
  102. package/lib/runtime/index.js +1 -1
  103. package/lib/runtime/queue.js +1 -1
  104. package/lib/runtime/resolve.js +1 -1
  105. package/lib/skills/npx-skills-add.js +1 -1
  106. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  107. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  108. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  109. package/lib/skills/runtime-skill-sync/install-target.d.ts +9 -0
  110. package/lib/skills/runtime-skill-sync/install-target.js +1 -0
  111. package/lib/skills/runtime-skill-sync/links.d.ts +5 -4
  112. package/lib/skills/runtime-skill-sync/links.js +1 -1
  113. package/lib/skills/runtime-skill-sync/list-local.d.ts +2 -2
  114. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  115. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  116. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  117. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  118. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  119. package/lib/skills/runtime-skill-sync/push.js +1 -1
  120. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  121. package/lib/skills/runtime-skill-sync/types.d.ts +17 -0
  122. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  123. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  124. package/lib/skills/runtime-skill-sync.d.ts +2 -1
  125. package/lib/skills/runtime-skill-sync.js +1 -1
  126. package/lib/utils/apply-jq-filter.js +1 -1
  127. package/lib/utils/logger.js +1 -1
  128. package/lib/utils/lossless-json.js +1 -1
  129. package/lib/utils/params.js +1 -1
  130. package/lib/utils/platform.js +1 -1
  131. package/lib/utils/update-notice.js +1 -1
  132. package/lib/utils/version.js +1 -1
  133. package/lib/utils/write-cli-side-channel.js +1 -1
  134. package/package.json +1 -1
package/README.md CHANGED
@@ -93,6 +93,13 @@ lovrabet skill install --scope personal
93
93
  lovrabet skill install --scope company
94
94
  ```
95
95
 
96
+ Business Skills continue to install into user-level Agent Skill directories by
97
+ default, with app-prefixed link names such as `<appCode>--<skillCode>`. Use
98
+ `lovrabet skill install --project` to link them into the current
99
+ project's `.agents/skills/<skillCode>` directory. Project and user-level
100
+ installations can coexist; an explicit project installation does not remove
101
+ existing user-level links or the cache they still reference.
102
+
96
103
  ## Common Commands
97
104
 
98
105
  | Area | Commands |
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const a0_0x20c8b0=a0_0x5afc;(function(_0x5cd298,_0x22d43e){const _0x383962=a0_0x5afc,_0x45c479=_0x5cd298();while(!![]){try{const _0x38b070=parseInt(_0x383962(0xba))/0x1+-parseInt(_0x383962(0xcd))/0x2+parseInt(_0x383962(0xce))/0x3*(parseInt(_0x383962(0xad))/0x4)+parseInt(_0x383962(0xaf))/0x5*(parseInt(_0x383962(0xbc))/0x6)+-parseInt(_0x383962(0xc3))/0x7*(parseInt(_0x383962(0xbf))/0x8)+-parseInt(_0x383962(0xb6))/0x9*(-parseInt(_0x383962(0xb1))/0xa)+-parseInt(_0x383962(0xc9))/0xb;if(_0x38b070===_0x22d43e)break;else _0x45c479['push'](_0x45c479['shift']());}catch(_0x37d225){_0x45c479['push'](_0x45c479['shift']());}}}(a0_0x18fa,0x95b5b));import{jsx as a0_0x1191c0}from'react/jsx-runtime';import a0_0x2ed77f from'meow';function a0_0x5afc(_0xe42aa6,_0x990c7d){_0xe42aa6=_0xe42aa6-0xad;const _0x18fad7=a0_0x18fa();let _0x5afc6a=_0x18fad7[_0xe42aa6];return _0x5afc6a;}function a0_0x18fa(){const _0x282c37=['defaultCommand','original','8SOOyHX','exit','65qlkDqc','flatMap','270noBTQc','Hint:\x20','unknownCommand','\x0aCancelled.\x0a','args','207261bIompT','exitCode','write','ERR_STREAM_DESTROYED','446365fNCblU','\x20->\x20--','334380UFkMpo','[preparse]\x20','assign','40bhPHuO','name','error','input','254338vWBMiq','catch','slice','handler','help','flags','10313402VNrZYl','cancelled','stderr','code','1131274Qzjaxe','758193HelZBN','length','message','log','Unexpected\x20error:'];a0_0x18fa=function(){return _0x282c37;};return a0_0x18fa();}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}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_0x2ed77f(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'version':getCliVersionDisplay()});void main()[a0_0x20c8b0(0xc4)](handleError);async function main(){try{await run();}catch(_0x4bb21c){handleError(_0x4bb21c);}}async function run(){const _0x92fb35=a0_0x20c8b0;let _0x422e53=cli[_0x92fb35(0xc2)][0x0],_0x21d929=cli[_0x92fb35(0xc2)][0x1];const _0x5ca4c8=cli[_0x92fb35(0xc8)];try{const {correctFlags:_0x2c69c8}=await import('./framework/preparse.js'),_0x50d29d=getAllDefinitions()[_0x92fb35(0xb0)](_0x26d2c1=>_0x26d2c1[_0x92fb35(0xc8)]??[]),{flags:_0x83eba1,corrections:_0x380ee9}=_0x2c69c8(_0x5ca4c8,_0x50d29d);if(_0x380ee9[_0x92fb35(0xcf)]>0x0){for(const _0x2dc3d9 of _0x380ee9){process[_0x92fb35(0xcb)][_0x92fb35(0xb8)](_0x92fb35(0xbd)+_0x2dc3d9[_0x92fb35(0xc6)]+':\x20--'+_0x2dc3d9[_0x92fb35(0xd4)]+_0x92fb35(0xbb)+_0x2dc3d9['corrected']+'\x0a');}Object[_0x92fb35(0xbe)](_0x5ca4c8,_0x83eba1);}}catch{}if(!_0x422e53){const {waitUntilExit:_0x44491e}=render(a0_0x1191c0(Help,{}));await _0x44491e();return;}if(!isKnownService(_0x422e53)){const _0x539aa5=resolveDynamicServiceCommand(cli[_0x92fb35(0xc2)],_0x5ca4c8);if(_0x539aa5){if(_0x5ca4c8['help']){console[_0x92fb35(0xd1)](generateCommandHelp(_0x539aa5['definition']));return;}Object[_0x92fb35(0xbe)](_0x5ca4c8,_0x539aa5[_0x92fb35(0xc8)]);const _0x14b4d8=buildConfigFromFlags(_0x5ca4c8);await initGlobalEnvironment(_0x14b4d8);const _0x2b8c09=createPipelineEnv(_0x14b4d8,_0x5ca4c8);_0x2b8c09[_0x92fb35(0xb5)]=_0x539aa5[_0x92fb35(0xb5)],await runCommand(_0x539aa5['definition'],_0x2b8c09);return;}if(_0x5ca4c8[_0x92fb35(0xc7)]){const _0x558e5f=generateDynamicServiceHelp(_0x422e53);if(_0x558e5f){console['log'](_0x558e5f);return;}}const {waitUntilExit:_0x56d342}=render(a0_0x1191c0(Help,{}));await _0x56d342();return;}const _0x438153=getServiceEntry(_0x422e53);if(!_0x21d929){if(_0x5ca4c8[_0x92fb35(0xc7)]){console['log'](generateServiceHelp(_0x422e53));return;}if(_0x438153[_0x92fb35(0xd3)])_0x21d929=_0x438153['defaultCommand'];else{console[_0x92fb35(0xd1)](generateServiceHelp(_0x422e53));return;}}const _0x49fc0c=findDefinition(_0x422e53,_0x21d929);!_0x49fc0c&&(console[_0x92fb35(0xd1)](generateServiceHelp(_0x422e53)),handleError(CliErrors[_0x92fb35(0xb3)](_0x422e53+'\x20'+_0x21d929)));if(_0x5ca4c8[_0x92fb35(0xc7)]){console[_0x92fb35(0xd1)](generateCommandHelp(_0x49fc0c));return;}const _0x354fcc=buildConfigFromFlags(_0x5ca4c8);await initGlobalEnvironment(_0x354fcc);const _0x2d7013=createPipelineEnv(_0x354fcc,_0x5ca4c8);_0x2d7013[_0x92fb35(0xb5)]=cli[_0x92fb35(0xc2)][_0x92fb35(0xc5)](0x2),await runCommand(_0x49fc0c,_0x2d7013);}function handleError(_0x595c06){const _0x3a54d8=a0_0x20c8b0;if(_0x595c06 instanceof CliError){_0x595c06[_0x3a54d8(0xcc)]===_0x3a54d8(0xca)&&(process['stderr'][_0x3a54d8(0xb8)]('\x0aCancelled.\x0a'),process[_0x3a54d8(0xae)](0x0));console[_0x3a54d8(0xc1)]('Error:\x20'+_0x595c06[_0x3a54d8(0xd0)]);if(_0x595c06['hint'])console['error'](_0x3a54d8(0xb2)+_0x595c06['hint']);process[_0x3a54d8(0xae)](_0x595c06[_0x3a54d8(0xb7)]);}isUserCancellation(_0x595c06)&&(process[_0x3a54d8(0xcb)]['write'](_0x3a54d8(0xb4)),process[_0x3a54d8(0xae)](0x0)),console['error'](_0x3a54d8(0xd2),_0x595c06),process[_0x3a54d8(0xae)](0x1);}function isUserCancellation(_0x59b073){const _0x5aa1fa=a0_0x20c8b0;if(!(_0x59b073 instanceof Error))return![];if(_0x59b073[_0x5aa1fa(0xc0)]==='ExitPromptError')return!![];if(_0x59b073[_0x5aa1fa(0xcc)]==='ERR_USE_AFTER_CLOSE')return!![];if(_0x59b073['code']===_0x5aa1fa(0xb9))return!![];return![];}
2
+ const a0_0x1745fd=a0_0x9053;(function(_0x1d1a6e,_0x5f309a){const _0x15a22f=a0_0x9053,_0x4a5e20=_0x1d1a6e();while(!![]){try{const _0x448641=-parseInt(_0x15a22f(0x1fc))/0x1+parseInt(_0x15a22f(0x1e0))/0x2+-parseInt(_0x15a22f(0x1e9))/0x3+-parseInt(_0x15a22f(0x1f0))/0x4*(-parseInt(_0x15a22f(0x1db))/0x5)+parseInt(_0x15a22f(0x1d9))/0x6*(parseInt(_0x15a22f(0x1e2))/0x7)+parseInt(_0x15a22f(0x1df))/0x8+-parseInt(_0x15a22f(0x200))/0x9;if(_0x448641===_0x5f309a)break;else _0x4a5e20['push'](_0x4a5e20['shift']());}catch(_0x5287bf){_0x4a5e20['push'](_0x4a5e20['shift']());}}}(a0_0x29ba,0xa1a30));import{jsx as a0_0x26b258}from'react/jsx-runtime';import a0_0x2458b1 from'meow';import{render}from'ink';import{Help}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{buildConfigFromFlags,initGlobalEnvironment}from'./context.js';function a0_0x29ba(){const _0x1fe4f0=['input','2372850wgBRfz','assign','1938iesqpw','exit','4737955SCjPuH','flags','slice','hint','4022168LxQqng','1302086AEaSNq','\x20->\x20--','15967SfSwVZ','cancelled','name','Error:\x20','\x0aCancelled.\x0a','stderr','Hint:\x20','3597213zJhNGW','defaultCommand','[preparse]\x20','code',':\x20--','help','./framework/preparse.js','4uCOxot','corrected','ExitPromptError','unknownCommand','args','write','log','catch','original','definition','flatMap','ERR_USE_AFTER_CLOSE','713383ASMzBX','error','ERR_STREAM_DESTROYED'];a0_0x29ba=function(){return _0x1fe4f0;};return a0_0x29ba();}import{isKnownService,getServiceEntry,findDefinition,getAllDefinitions}from'./commands/registry.js';import{generateDynamicServiceHelp,resolveDynamicServiceCommand}from'./commands/service/dynamic.js';function a0_0x9053(_0x14d184,_0x33b80d){_0x14d184=_0x14d184-0x1d8;const _0x29ba96=a0_0x29ba();let _0x9053eb=_0x29ba96[_0x14d184];return _0x9053eb;}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_0x2458b1(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'version':getCliVersionDisplay()});void main()[a0_0x1745fd(0x1f7)](handleError);async function main(){try{await run();}catch(_0x2afa1a){handleError(_0x2afa1a);}}async function run(){const _0x22836c=a0_0x1745fd;let _0x4c57d2=cli[_0x22836c(0x1ff)][0x0],_0x1fcd7b=cli[_0x22836c(0x1ff)][0x1];const _0x56b438=cli[_0x22836c(0x1dc)];try{const {correctFlags:_0x1c184e}=await import(_0x22836c(0x1ef)),_0x1e3d23=getAllDefinitions()[_0x22836c(0x1fa)](_0x54eabc=>_0x54eabc[_0x22836c(0x1dc)]??[]),{flags:_0xef0f3d,corrections:_0x58d51a}=_0x1c184e(_0x56b438,_0x1e3d23);if(_0x58d51a['length']>0x0){for(const _0x4df08d of _0x58d51a){process[_0x22836c(0x1e7)][_0x22836c(0x1f5)](_0x22836c(0x1eb)+_0x4df08d['handler']+_0x22836c(0x1ed)+_0x4df08d[_0x22836c(0x1f8)]+_0x22836c(0x1e1)+_0x4df08d[_0x22836c(0x1f1)]+'\x0a');}Object['assign'](_0x56b438,_0xef0f3d);}}catch{}if(!_0x4c57d2){const {waitUntilExit:_0xde7173}=render(a0_0x26b258(Help,{}));await _0xde7173();return;}if(!isKnownService(_0x4c57d2)){const _0x26b095=resolveDynamicServiceCommand(cli[_0x22836c(0x1ff)],_0x56b438);if(_0x26b095){if(_0x56b438[_0x22836c(0x1ee)]){console[_0x22836c(0x1f6)](generateCommandHelp(_0x26b095[_0x22836c(0x1f9)]));return;}Object[_0x22836c(0x1d8)](_0x56b438,_0x26b095[_0x22836c(0x1dc)]);const _0x5d5e0e=buildConfigFromFlags(_0x56b438);await initGlobalEnvironment(_0x5d5e0e);const _0x44e253=createPipelineEnv(_0x5d5e0e,_0x56b438);_0x44e253[_0x22836c(0x1f4)]=_0x26b095['args'],await runCommand(_0x26b095[_0x22836c(0x1f9)],_0x44e253);return;}if(_0x56b438[_0x22836c(0x1ee)]){const _0x679e8f=generateDynamicServiceHelp(_0x4c57d2);if(_0x679e8f){console[_0x22836c(0x1f6)](_0x679e8f);return;}}const {waitUntilExit:_0x4b7bb5}=render(a0_0x26b258(Help,{}));await _0x4b7bb5();return;}const _0x5ef26e=getServiceEntry(_0x4c57d2);if(!_0x1fcd7b){if(_0x56b438[_0x22836c(0x1ee)]){console[_0x22836c(0x1f6)](generateServiceHelp(_0x4c57d2));return;}if(_0x5ef26e[_0x22836c(0x1ea)])_0x1fcd7b=_0x5ef26e[_0x22836c(0x1ea)];else{console[_0x22836c(0x1f6)](generateServiceHelp(_0x4c57d2));return;}}const _0x576467=findDefinition(_0x4c57d2,_0x1fcd7b);!_0x576467&&(console[_0x22836c(0x1f6)](generateServiceHelp(_0x4c57d2)),handleError(CliErrors[_0x22836c(0x1f3)](_0x4c57d2+'\x20'+_0x1fcd7b)));if(_0x56b438['help']){console[_0x22836c(0x1f6)](generateCommandHelp(_0x576467));return;}const _0x222366=buildConfigFromFlags(_0x56b438);await initGlobalEnvironment(_0x222366);const _0x3a8cbb=createPipelineEnv(_0x222366,_0x56b438);_0x3a8cbb[_0x22836c(0x1f4)]=cli[_0x22836c(0x1ff)][_0x22836c(0x1dd)](0x2),await runCommand(_0x576467,_0x3a8cbb);}function handleError(_0x43e304){const _0x189903=a0_0x1745fd;if(_0x43e304 instanceof CliError){_0x43e304[_0x189903(0x1ec)]===_0x189903(0x1e3)&&(process[_0x189903(0x1e7)][_0x189903(0x1f5)](_0x189903(0x1e6)),process['exit'](0x0));console[_0x189903(0x1fd)](_0x189903(0x1e5)+_0x43e304['message']);if(_0x43e304[_0x189903(0x1de)])console[_0x189903(0x1fd)](_0x189903(0x1e8)+_0x43e304[_0x189903(0x1de)]);process[_0x189903(0x1da)](_0x43e304['exitCode']);}isUserCancellation(_0x43e304)&&(process[_0x189903(0x1e7)][_0x189903(0x1f5)]('\x0aCancelled.\x0a'),process[_0x189903(0x1da)](0x0)),console[_0x189903(0x1fd)]('Unexpected\x20error:',_0x43e304),process[_0x189903(0x1da)](0x1);}function isUserCancellation(_0x29f343){const _0x3c6528=a0_0x1745fd;if(!(_0x29f343 instanceof Error))return![];if(_0x29f343[_0x3c6528(0x1e4)]===_0x3c6528(0x1f2))return!![];if(_0x29f343[_0x3c6528(0x1ec)]===_0x3c6528(0x1fb))return!![];if(_0x29f343[_0x3c6528(0x1ec)]===_0x3c6528(0x1fe))return!![];return![];}
@@ -1 +1 @@
1
- const a1_0x5b34c9=a1_0x4381;(function(_0x55a55e,_0x4e1336){const _0x839557=a1_0x4381,_0x33eed6=_0x55a55e();while(!![]){try{const _0x2739d3=parseInt(_0x839557(0x156))/0x1*(-parseInt(_0x839557(0x140))/0x2)+-parseInt(_0x839557(0x15b))/0x3+-parseInt(_0x839557(0x187))/0x4*(-parseInt(_0x839557(0x166))/0x5)+parseInt(_0x839557(0x128))/0x6+-parseInt(_0x839557(0x18e))/0x7*(-parseInt(_0x839557(0x12f))/0x8)+-parseInt(_0x839557(0x18f))/0x9*(parseInt(_0x839557(0x18b))/0xa)+parseInt(_0x839557(0x184))/0xb;if(_0x2739d3===_0x4e1336)break;else _0x33eed6['push'](_0x33eed6['shift']());}catch(_0x9868e0){_0x33eed6['push'](_0x33eed6['shift']());}}}(a1_0x42ce,0xb65e9));function a1_0x42ce(){const _0x302f8c=['This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.','dataset_list','tableData\x20contains\x20records','title','/api/custom/executeSql','tableData\x20contains\x20dataset\x20id/code/name','1913604kIEhnx','summary','Create\x20dataset\x20record','{\x22id\x22:123}','API\x20doc\x20code,\x20for\x20example\x20dataset_list','dataset','Returns\x20one\x20matching\x20business\x20record','956680YvxWxr','/api/{appCode}/{datasetCode}/aggregate','path','length','POST','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.','lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27','dataset_data_aggregate','32-character\x20dataset\x20code','/api/{appCode}/{datasetCode}/create','filter','Exact\x20endpoint\x20function\x20name','This\x20is\x20an\x20exact\x20lookup\x20by\x20appCode\x20+\x20functionName.\x20The\x20CLI\x20does\x20not\x20enumerate\x20BFF\x20functions\x20or\x20expose\x20platform-only\x20fields.','appCode','Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.','Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result','method','14OppSvO','validation','##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.','##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.','已经知道记录\x20id,需要按数据集读取单条业务数据时使用','/api/dataset/get-dataset-list-by-app-code','##\x20Aggregate\x20dataset\x20data','toLowerCase','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:5}\x27','map','trim','Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.','查询单条数据','Endpoint\x20function\x20name','聚合查询数据集数据','##\x20Get\x20BF\x20endpoint\x20function\x20contract\x0a\x0aInspect\x20one\x20known\x20endpoint\x20function\x20through\x20the\x20AK-authenticated\x20exact\x20detail\x20API.','/api/dataset/getOneByCode?code={datasetCode}','whenToUse','dataset_data_get_one','string','Dataset\x20detail','Current\x20app\x20code','146323yhNtsF','需要携带\x20where、orderBy、分页等条件读取业务数据时使用','已经从用户、平台\x20UI\x20或前序上下文确认函数名,需要查看该\x20ENDPOINT\x20的运行态元信息时使用','datasetCode','join','1185636svNVXO','条件过滤查询数据','需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','{\x22fieldName\x22:\x22value\x22}','获取数据集详情','/api/{appCode}/{datasetCode}/getOne','bf_execute','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.','##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.','includes','/api/{appCode}/{datasetCode}/filter','25lwXpHa','Execute\x20BF\x20endpoint\x20function','Get\x20one\x20dataset\x20record','##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.','需要按数据集\x20code\x20获取字段、表信息、关联关系(relations)或操作定义时使用','CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.','分页获取数据集列表','None','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.','执行指定\x20BF\x20函数','CLI\x20returns\x20appCode/functionName/description/version/gmtModified','bf_detail','Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset','keyword','api-doc','dataset_detail','GET','lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27','category','list','If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.','API\x20doc\x20code\x20not\x20found:\x20','str','{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','Filter\x20dataset\x20data','read','dataset_data_create','lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27','result\x20rows\x20contain\x20aggregate\x20aliases','`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','6834025XKIbUR','lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress','code','925124pVXcTr','##\x20List\x20datasets','Returns\x20script\x20business\x20payload','##\x20Filter\x20dataset\x20data','5280810hISwXW','where\x20filters\x20before\x20aggregation','已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','35hQUKmL','9apFRrp','Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.','Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text','Show\x20runtime\x20API\x20documentation\x20by\x20code','需要向指定数据集新增一条业务数据时使用','dataset_data_filter','执行自定义\x20SQL','Inspect\x20field\x20names,\x20relations,\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.','find'];a1_0x42ce=function(){return _0x302f8c;};return a1_0x42ce();}function a1_0x4381(_0x489ada,_0x112e1e){_0x489ada=_0x489ada-0x11a;const _0x42cede=a1_0x42ce();let _0x438160=_0x42cede[_0x489ada];return _0x438160;}import{CliErrors}from'../../errors.js';const CATEGORY_FLAG={'name':a1_0x5b34c9(0x178),'type':'string','description':a1_0x5b34c9(0x172)},KEYWORD_FLAG={'name':'keyword','type':a1_0x5b34c9(0x153),'description':a1_0x5b34c9(0x11b)},DOC_CODE_FLAG={'name':a1_0x5b34c9(0x186),'type':'string','required':!![],'description':a1_0x5b34c9(0x12c)},DOCS=[{'code':a1_0x5b34c9(0x123),'category':a1_0x5b34c9(0x12d),'title':'List\x20datasets','method':a1_0x5b34c9(0x133),'path':a1_0x5b34c9(0x145),'summary':a1_0x5b34c9(0x16c),'whenToUse':a1_0x5b34c9(0x15d),'pathParams':[],'queryParams':[],'bodySchema':'{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','responseHighlights':[a1_0x5b34c9(0x127),'paging.totalCount\x20gives\x20total\x20rows'],'examples':[a1_0x5b34c9(0x185)],'notes':[a1_0x5b34c9(0x16b)],'markdown':[a1_0x5b34c9(0x188),'',a1_0x5b34c9(0x16e)]['join']('\x0a')},{'code':a1_0x5b34c9(0x175),'category':a1_0x5b34c9(0x12d),'title':a1_0x5b34c9(0x154),'method':a1_0x5b34c9(0x176),'path':a1_0x5b34c9(0x150),'summary':a1_0x5b34c9(0x15f),'whenToUse':a1_0x5b34c9(0x16a),'pathParams':[],'queryParams':[{'name':'code','description':a1_0x5b34c9(0x137)}],'bodySchema':a1_0x5b34c9(0x16d),'responseHighlights':['fields/properties\x20describe\x20data\x20shape','relations\x20contains\x20the\x20object-shaped\x20API\x20relations\x20value\x20when\x20returned','operations\x20describes\x20runtime\x20APIs'],'examples':['lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>'],'notes':[a1_0x5b34c9(0x17a)],'markdown':['##\x20Dataset\x20detail','',a1_0x5b34c9(0x120)][a1_0x5b34c9(0x15a)]('\x0a')},{'code':a1_0x5b34c9(0x11e),'category':a1_0x5b34c9(0x12d),'title':a1_0x5b34c9(0x17e),'method':a1_0x5b34c9(0x133),'path':a1_0x5b34c9(0x165),'summary':a1_0x5b34c9(0x15c),'whenToUse':a1_0x5b34c9(0x157),'pathParams':[{'name':a1_0x5b34c9(0x13c),'description':a1_0x5b34c9(0x155)},{'name':a1_0x5b34c9(0x159),'description':a1_0x5b34c9(0x137)}],'queryParams':[],'bodySchema':'{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','responseHighlights':[a1_0x5b34c9(0x124),'paging\x20contains\x20pagination'],'examples':[a1_0x5b34c9(0x148)],'notes':[a1_0x5b34c9(0x14b)],'markdown':[a1_0x5b34c9(0x18a),'',a1_0x5b34c9(0x134)][a1_0x5b34c9(0x15a)]('\x0a')},{'code':a1_0x5b34c9(0x136),'category':a1_0x5b34c9(0x12d),'title':'Aggregate\x20dataset\x20data','method':a1_0x5b34c9(0x133),'path':a1_0x5b34c9(0x130),'summary':a1_0x5b34c9(0x14e),'whenToUse':'需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用','pathParams':[{'name':a1_0x5b34c9(0x13c),'description':'Current\x20app\x20code'},{'name':a1_0x5b34c9(0x159),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':'{\x22aggregate\x22:[{\x22column\x22:\x20\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','responseHighlights':[a1_0x5b34c9(0x182),a1_0x5b34c9(0x18c)],'examples':['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'],'notes':[a1_0x5b34c9(0x11a),a1_0x5b34c9(0x183)],'markdown':[a1_0x5b34c9(0x146),'',a1_0x5b34c9(0x162)][a1_0x5b34c9(0x15a)]('\x0a')},{'code':a1_0x5b34c9(0x152),'category':a1_0x5b34c9(0x12d),'title':a1_0x5b34c9(0x168),'method':a1_0x5b34c9(0x133),'path':a1_0x5b34c9(0x160),'summary':a1_0x5b34c9(0x14c),'whenToUse':a1_0x5b34c9(0x144),'pathParams':[{'name':'appCode','description':a1_0x5b34c9(0x155)},{'name':a1_0x5b34c9(0x159),'description':a1_0x5b34c9(0x137)}],'queryParams':[],'bodySchema':a1_0x5b34c9(0x12b),'responseHighlights':[a1_0x5b34c9(0x12e)],'examples':['lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27'],'notes':['Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.'],'markdown':a1_0x5b34c9(0x169)},{'code':a1_0x5b34c9(0x180),'category':a1_0x5b34c9(0x12d),'title':a1_0x5b34c9(0x12a),'method':'POST','path':a1_0x5b34c9(0x138),'summary':'创建数据','whenToUse':a1_0x5b34c9(0x11d),'pathParams':[{'name':a1_0x5b34c9(0x13c),'description':a1_0x5b34c9(0x155)},{'name':'datasetCode','description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':a1_0x5b34c9(0x15e),'responseHighlights':[a1_0x5b34c9(0x13e)],'examples':[a1_0x5b34c9(0x177)],'notes':[a1_0x5b34c9(0x122)],'markdown':a1_0x5b34c9(0x163)},{'code':a1_0x5b34c9(0x171),'category':'bf','title':'Get\x20BF\x20endpoint\x20function\x20contract','method':'GET','path':'/client/bff/endpoint/{appCode}/{functionName}','summary':'按应用和函数名精确获取\x20BF\x20运行契约','whenToUse':a1_0x5b34c9(0x158),'pathParams':[{'name':a1_0x5b34c9(0x13c),'description':'Current\x20app\x20code'},{'name':'functionName','description':a1_0x5b34c9(0x13a)}],'queryParams':[],'bodySchema':a1_0x5b34c9(0x16d),'responseHighlights':[a1_0x5b34c9(0x170)],'examples':['lovrabet\x20bff\x20detail\x20--name\x20<functionName>'],'notes':[a1_0x5b34c9(0x13b)],'markdown':a1_0x5b34c9(0x14f)},{'code':a1_0x5b34c9(0x161),'category':'bf','title':a1_0x5b34c9(0x167),'method':a1_0x5b34c9(0x133),'path':'/api/endpoint/{appCode}/{functionName}','summary':a1_0x5b34c9(0x16f),'whenToUse':'已经确认目标\x20BF\x20的\x20functionName,且需要实际调用该\x20ENDPOINT\x20函数完成业务操作时使用','pathParams':[{'name':'appCode','description':'Current\x20app\x20code'},{'name':'functionName','description':a1_0x5b34c9(0x14d)}],'queryParams':[],'bodySchema':'{\x22param\x22:\x22value\x22}','responseHighlights':[a1_0x5b34c9(0x189)],'examples':[a1_0x5b34c9(0x135)],'notes':['Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.'],'markdown':a1_0x5b34c9(0x143)},{'code':'custom_sql_execute','category':'custom_sql','title':'Execute\x20custom\x20SQL','method':a1_0x5b34c9(0x133),'path':a1_0x5b34c9(0x126),'summary':a1_0x5b34c9(0x11f),'whenToUse':a1_0x5b34c9(0x18d),'pathParams':[],'queryParams':[],'bodySchema':a1_0x5b34c9(0x17d),'responseHighlights':['Returns\x20SQL\x20execution\x20payload'],'examples':[a1_0x5b34c9(0x181)],'notes':[a1_0x5b34c9(0x13d)],'markdown':a1_0x5b34c9(0x142)}];function entrySummary(_0x2b9192){const _0x2a50e1=a1_0x5b34c9;return{'code':_0x2b9192[_0x2a50e1(0x186)],'category':_0x2b9192['category'],'method':_0x2b9192[_0x2a50e1(0x13f)],'path':_0x2b9192[_0x2a50e1(0x131)],'summary':_0x2b9192[_0x2a50e1(0x129)],'whenToUse':_0x2b9192[_0x2a50e1(0x151)]};}export function listApiDocEntries(_0xf0c6a8={}){const _0x31c866=a1_0x5b34c9,_0x16adf4=String(_0xf0c6a8[_0x31c866(0x178)]||'')[_0x31c866(0x14a)](),_0x4719f2=String(_0xf0c6a8[_0x31c866(0x173)]||'')[_0x31c866(0x14a)]()[_0x31c866(0x147)]();return DOCS[_0x31c866(0x139)](_0x30a435=>{const _0x4be55e=_0x31c866;if(_0x16adf4&&_0x30a435[_0x4be55e(0x178)]!==_0x16adf4)return![];if(!_0x4719f2)return!![];return[_0x30a435[_0x4be55e(0x186)],_0x30a435[_0x4be55e(0x178)],_0x30a435[_0x4be55e(0x13f)],_0x30a435[_0x4be55e(0x131)],_0x30a435[_0x4be55e(0x129)],_0x30a435[_0x4be55e(0x151)],_0x30a435[_0x4be55e(0x125)]][_0x4be55e(0x15a)]('\x20')[_0x4be55e(0x147)]()[_0x4be55e(0x164)](_0x4719f2);})[_0x31c866(0x149)](entrySummary);}export function getApiDocDetail(_0xa6dc19){const _0x370011=a1_0x5b34c9,_0x4ca81f=DOCS[_0x370011(0x121)](_0x566c9b=>_0x566c9b[_0x370011(0x186)]===_0xa6dc19);if(!_0x4ca81f)throw CliErrors[_0x370011(0x141)](_0x370011(0x17b)+_0xa6dc19);return{..._0x4ca81f};}const apiDocList={'service':a1_0x5b34c9(0x174),'command':a1_0x5b34c9(0x179),'description':'List\x20available\x20runtime\x20API\x20documentation\x20entries','risk':a1_0x5b34c9(0x17f),'requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0x25ebbe){const _0x31f3c1=a1_0x5b34c9,_0x43ff3d=listApiDocEntries({'category':_0x25ebbe[_0x31f3c1(0x17c)](_0x31f3c1(0x178)),'keyword':_0x25ebbe[_0x31f3c1(0x17c)](_0x31f3c1(0x173))});return{'ok':!![],'data':{'total':_0x43ff3d[_0x31f3c1(0x132)],'items':_0x43ff3d}};}},apiDocDetail={'service':a1_0x5b34c9(0x174),'command':'detail','description':a1_0x5b34c9(0x11c),'risk':a1_0x5b34c9(0x17f),'requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0x26d39c){const _0x138651=a1_0x5b34c9;return{'ok':!![],'data':getApiDocDetail(_0x26d39c[_0x138651(0x17c)](_0x138651(0x186)))};}};export const apiDocDefinitions=[apiDocList,apiDocDetail];
1
+ const a1_0x1e218d=a1_0x43f0;(function(_0x11de64,_0x515543){const _0x77edc9=a1_0x43f0,_0x5d2367=_0x11de64();while(!![]){try{const _0x52d35e=parseInt(_0x77edc9(0xab))/0x1*(-parseInt(_0x77edc9(0x6a))/0x2)+-parseInt(_0x77edc9(0xc2))/0x3*(parseInt(_0x77edc9(0xc1))/0x4)+-parseInt(_0x77edc9(0x91))/0x5+-parseInt(_0x77edc9(0x82))/0x6*(parseInt(_0x77edc9(0x69))/0x7)+-parseInt(_0x77edc9(0xc8))/0x8*(parseInt(_0x77edc9(0xc7))/0x9)+-parseInt(_0x77edc9(0xd6))/0xa+parseInt(_0x77edc9(0x9f))/0xb;if(_0x52d35e===_0x515543)break;else _0x5d2367['push'](_0x5d2367['shift']());}catch(_0x570795){_0x5d2367['push'](_0x5d2367['shift']());}}}(a1_0x41f4,0x84cd8));import{CliErrors}from'../../errors.js';function a1_0x43f0(_0x12a7bd,_0x1683d3){_0x12a7bd=_0x12a7bd-0x67;const _0x41f408=a1_0x41f4();let _0x43f077=_0x41f408[_0x12a7bd];return _0x43f077;}const CATEGORY_FLAG={'name':'category','type':'string','description':'Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset'},KEYWORD_FLAG={'name':a1_0x1e218d(0x76),'type':'string','description':a1_0x1e218d(0xac)},DOC_CODE_FLAG={'name':a1_0x1e218d(0x90),'type':a1_0x1e218d(0x68),'required':!![],'description':a1_0x1e218d(0xaf)},DOCS=[{'code':a1_0x1e218d(0x78),'category':'dataset','title':a1_0x1e218d(0x79),'method':a1_0x1e218d(0x9c),'path':a1_0x1e218d(0x7e),'summary':'分页获取数据集列表','whenToUse':'需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','pathParams':[],'queryParams':[],'bodySchema':a1_0x1e218d(0xb1),'responseHighlights':['tableData\x20contains\x20dataset\x20id/code/name','paging.totalCount\x20gives\x20total\x20rows'],'examples':[a1_0x1e218d(0x8f)],'notes':['CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.'],'markdown':['##\x20List\x20datasets','','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.']['join']('\x0a')},{'code':a1_0x1e218d(0xd3),'category':'dataset','title':a1_0x1e218d(0x92),'method':'GET','path':a1_0x1e218d(0x88),'summary':a1_0x1e218d(0x97),'whenToUse':a1_0x1e218d(0x93),'pathParams':[],'queryParams':[{'name':a1_0x1e218d(0x90),'description':a1_0x1e218d(0xa7)}],'bodySchema':a1_0x1e218d(0x8c),'responseHighlights':['fields/properties\x20describe\x20data\x20shape',a1_0x1e218d(0x6c),a1_0x1e218d(0xcb)],'examples':[a1_0x1e218d(0x9a)],'notes':[a1_0x1e218d(0x7b)],'markdown':['##\x20Dataset\x20detail','','Inspect\x20field\x20names,\x20relations,\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.']['join']('\x0a')},{'code':a1_0x1e218d(0x75),'category':a1_0x1e218d(0xb0),'title':a1_0x1e218d(0xd1),'method':a1_0x1e218d(0x9c),'path':'/api/{appCode}/{datasetCode}/filter','summary':a1_0x1e218d(0xdd),'whenToUse':'需要携带\x20where、orderBy、分页等条件读取业务数据时使用','pathParams':[{'name':a1_0x1e218d(0x8a),'description':a1_0x1e218d(0x70)},{'name':a1_0x1e218d(0x67),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':a1_0x1e218d(0xbe),'responseHighlights':['tableData\x20contains\x20records',a1_0x1e218d(0x85)],'examples':[a1_0x1e218d(0xba)],'notes':[a1_0x1e218d(0xbb)],'markdown':[a1_0x1e218d(0x87),'',a1_0x1e218d(0x80)][a1_0x1e218d(0xa6)]('\x0a')},{'code':a1_0x1e218d(0x6d),'category':a1_0x1e218d(0xb0),'title':'Aggregate\x20dataset\x20data','method':a1_0x1e218d(0x9c),'path':a1_0x1e218d(0xd7),'summary':a1_0x1e218d(0x8d),'whenToUse':a1_0x1e218d(0xc6),'pathParams':[{'name':a1_0x1e218d(0x8a),'description':'Current\x20app\x20code'},{'name':'datasetCode','description':a1_0x1e218d(0xa7)}],'queryParams':[],'bodySchema':'{\x22aggregate\x22:[{\x22column\x22:\x20\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','responseHighlights':[a1_0x1e218d(0x77),'where\x20filters\x20before\x20aggregation'],'examples':[a1_0x1e218d(0xa1)],'notes':[a1_0x1e218d(0xd5),'`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.'],'markdown':['##\x20Aggregate\x20dataset\x20data','',a1_0x1e218d(0xcd)][a1_0x1e218d(0xa6)]('\x0a')},{'code':a1_0x1e218d(0xa4),'category':a1_0x1e218d(0xb0),'title':a1_0x1e218d(0x71),'method':a1_0x1e218d(0x9c),'path':a1_0x1e218d(0xc3),'summary':a1_0x1e218d(0x9d),'whenToUse':a1_0x1e218d(0x6b),'pathParams':[{'name':a1_0x1e218d(0x8a),'description':a1_0x1e218d(0x70)},{'name':a1_0x1e218d(0x67),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':a1_0x1e218d(0xa3),'responseHighlights':['Returns\x20one\x20matching\x20business\x20record'],'examples':[a1_0x1e218d(0x9b)],'notes':[a1_0x1e218d(0xcc)],'markdown':'##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.'},{'code':a1_0x1e218d(0x81),'category':a1_0x1e218d(0xb0),'title':a1_0x1e218d(0x6e),'method':a1_0x1e218d(0x9c),'path':'/api/{appCode}/{datasetCode}/create','summary':a1_0x1e218d(0xc5),'whenToUse':a1_0x1e218d(0xdc),'pathParams':[{'name':a1_0x1e218d(0x8a),'description':a1_0x1e218d(0x70)},{'name':a1_0x1e218d(0x67),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':a1_0x1e218d(0x8e),'responseHighlights':['Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result'],'examples':['lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27'],'notes':[a1_0x1e218d(0xb7)],'markdown':a1_0x1e218d(0xcf)},{'code':a1_0x1e218d(0xb6),'category':'bf','title':a1_0x1e218d(0xb4),'method':a1_0x1e218d(0xb2),'path':a1_0x1e218d(0x72),'summary':a1_0x1e218d(0xb8),'whenToUse':'已经从用户、平台\x20UI\x20或前序上下文确认函数名,需要查看该\x20ENDPOINT\x20的运行态元信息时使用','pathParams':[{'name':a1_0x1e218d(0x8a),'description':a1_0x1e218d(0x70)},{'name':a1_0x1e218d(0x8b),'description':a1_0x1e218d(0x6f)}],'queryParams':[],'bodySchema':a1_0x1e218d(0x8c),'responseHighlights':[a1_0x1e218d(0xa5)],'examples':[a1_0x1e218d(0xa8)],'notes':[a1_0x1e218d(0xdb)],'markdown':a1_0x1e218d(0xc4)},{'code':'bf_execute','category':'bf','title':a1_0x1e218d(0x73),'method':a1_0x1e218d(0x9c),'path':'/api/endpoint/{appCode}/{functionName}','summary':a1_0x1e218d(0xce),'whenToUse':a1_0x1e218d(0xb9),'pathParams':[{'name':a1_0x1e218d(0x8a),'description':a1_0x1e218d(0x70)},{'name':a1_0x1e218d(0x8b),'description':a1_0x1e218d(0xbf)}],'queryParams':[],'bodySchema':a1_0x1e218d(0xb5),'responseHighlights':[a1_0x1e218d(0x86)],'examples':[a1_0x1e218d(0xda)],'notes':[a1_0x1e218d(0xd0)],'markdown':a1_0x1e218d(0x7d)},{'code':a1_0x1e218d(0x7f),'category':a1_0x1e218d(0xaa),'title':a1_0x1e218d(0xbc),'method':'POST','path':a1_0x1e218d(0xc0),'summary':a1_0x1e218d(0xa9),'whenToUse':'已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','pathParams':[],'queryParams':[],'bodySchema':a1_0x1e218d(0x9e),'responseHighlights':['Returns\x20SQL\x20execution\x20payload'],'examples':[a1_0x1e218d(0xca)],'notes':[a1_0x1e218d(0xd8)],'markdown':a1_0x1e218d(0xa0)}];function entrySummary(_0x8ee1d0){const _0x1568fe=a1_0x1e218d;return{'code':_0x8ee1d0[_0x1568fe(0x90)],'category':_0x8ee1d0['category'],'method':_0x8ee1d0[_0x1568fe(0x83)],'path':_0x8ee1d0[_0x1568fe(0x7c)],'summary':_0x8ee1d0['summary'],'whenToUse':_0x8ee1d0[_0x1568fe(0x74)]};}export function listApiDocEntries(_0x133483={}){const _0x4f9257=a1_0x1e218d,_0x2549af=String(_0x133483[_0x4f9257(0xa2)]||'')[_0x4f9257(0xad)](),_0x2bbed8=String(_0x133483[_0x4f9257(0x76)]||'')[_0x4f9257(0xad)]()[_0x4f9257(0x99)]();return DOCS[_0x4f9257(0x98)](_0x4589f0=>{const _0x1967fd=_0x4f9257;if(_0x2549af&&_0x4589f0[_0x1967fd(0xa2)]!==_0x2549af)return![];if(!_0x2bbed8)return!![];return[_0x4589f0[_0x1967fd(0x90)],_0x4589f0['category'],_0x4589f0[_0x1967fd(0x83)],_0x4589f0[_0x1967fd(0x7c)],_0x4589f0[_0x1967fd(0xbd)],_0x4589f0[_0x1967fd(0x74)],_0x4589f0['title']]['join']('\x20')[_0x1967fd(0x99)]()[_0x1967fd(0x7a)](_0x2bbed8);})[_0x4f9257(0xae)](entrySummary);}export function getApiDocDetail(_0xd0a15a){const _0x4c42de=a1_0x1e218d,_0x3f7558=DOCS[_0x4c42de(0x96)](_0x4c9f80=>_0x4c9f80['code']===_0xd0a15a);if(!_0x3f7558)throw CliErrors[_0x4c42de(0x94)](_0x4c42de(0x95)+_0xd0a15a);return{..._0x3f7558};}const apiDocList={'service':a1_0x1e218d(0xd4),'command':a1_0x1e218d(0xd9),'description':a1_0x1e218d(0x89),'risk':a1_0x1e218d(0x84),'requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0x24ea56){const _0x3d4f6d=a1_0x1e218d,_0x428d2d=listApiDocEntries({'category':_0x24ea56[_0x3d4f6d(0xb3)](_0x3d4f6d(0xa2)),'keyword':_0x24ea56[_0x3d4f6d(0xb3)](_0x3d4f6d(0x76))});return{'ok':!![],'data':{'total':_0x428d2d[_0x3d4f6d(0xd2)],'items':_0x428d2d}};}},apiDocDetail={'service':a1_0x1e218d(0xd4),'command':a1_0x1e218d(0xc9),'description':'Show\x20runtime\x20API\x20documentation\x20by\x20code','risk':a1_0x1e218d(0x84),'requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0x5d3d67){const _0x391855=a1_0x1e218d;return{'ok':!![],'data':getApiDocDetail(_0x5d3d67[_0x391855(0xb3)](_0x391855(0x90)))};}};function a1_0x41f4(){const _0x7b678c=['Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.','8747070lQzSOw','/api/{appCode}/{datasetCode}/aggregate','Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.','list','lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27','This\x20is\x20an\x20exact\x20lookup\x20by\x20appCode\x20+\x20functionName.\x20The\x20CLI\x20does\x20not\x20enumerate\x20BFF\x20functions\x20or\x20expose\x20platform-only\x20fields.','需要向指定数据集新增一条业务数据时使用','条件过滤查询数据','datasetCode','string','2591974nftEzd','7342iBhhpj','已经知道记录\x20id,需要按数据集读取单条业务数据时使用','relations\x20contains\x20the\x20object-shaped\x20API\x20relations\x20value\x20when\x20returned','dataset_data_aggregate','Create\x20dataset\x20record','Exact\x20endpoint\x20function\x20name','Current\x20app\x20code','Get\x20one\x20dataset\x20record','/client/bff/endpoint/{appCode}/{functionName}','Execute\x20BF\x20endpoint\x20function','whenToUse','dataset_data_filter','keyword','result\x20rows\x20contain\x20aggregate\x20aliases','dataset_list','List\x20datasets','includes','If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.','path','##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.','/api/dataset/get-dataset-list-by-app-code','custom_sql_execute','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.','dataset_data_create','12chYkoI','method','read','paging\x20contains\x20pagination','Returns\x20script\x20business\x20payload','##\x20Filter\x20dataset\x20data','/api/dataset/getOneByCode?code={datasetCode}','List\x20available\x20runtime\x20API\x20documentation\x20entries','appCode','functionName','None','聚合查询数据集数据','{\x22fieldName\x22:\x22value\x22}','lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress','code','1434675boxxpA','Dataset\x20detail','需要按数据集\x20code\x20获取字段、表信息、关联关系(relations)或操作定义时使用','validation','API\x20doc\x20code\x20not\x20found:\x20','find','获取数据集详情','filter','toLowerCase','lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27','POST','查询单条数据','{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','48450666QsUUdM','##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.','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','category','{\x22id\x22:123}','dataset_data_get_one','CLI\x20returns\x20appCode/functionName/description/version/gmtModified','join','32-character\x20dataset\x20code','lovrabet\x20bff\x20detail\x20--name\x20<functionName>','执行自定义\x20SQL','custom_sql','246MDKonp','Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text','trim','map','API\x20doc\x20code,\x20for\x20example\x20dataset_list','dataset','{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','GET','str','Get\x20BF\x20endpoint\x20function\x20contract','{\x22param\x22:\x22value\x22}','bf_detail','This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.','按应用和函数名精确获取\x20BF\x20运行契约','已经确认目标\x20BF\x20的\x20functionName,且需要实际调用该\x20ENDPOINT\x20函数完成业务操作时使用','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:5}\x27','Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.','Execute\x20custom\x20SQL','summary','{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','Endpoint\x20function\x20name','/api/custom/executeSql','4364TaQHdU','1668QjYmnf','/api/{appCode}/{datasetCode}/getOne','##\x20Get\x20BF\x20endpoint\x20function\x20contract\x0a\x0aInspect\x20one\x20known\x20endpoint\x20function\x20through\x20the\x20AK-authenticated\x20exact\x20detail\x20API.','创建数据','需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用','183591HUZRJq','176fkxWBO','detail','lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27','operations\x20describes\x20runtime\x20APIs','Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.','执行指定\x20BF\x20函数','##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.','Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.','Filter\x20dataset\x20data','length','dataset_detail','api-doc'];a1_0x41f4=function(){return _0x7b678c;};return a1_0x41f4();}export const apiDocDefinitions=[apiDocList,apiDocDetail];
@@ -1 +1 @@
1
- (function(_0x20facc,_0x24d6bd){const _0x1be057=a2_0x1d5a,_0x388564=_0x20facc();while(!![]){try{const _0x5a0d9b=parseInt(_0x1be057(0x16e))/0x1*(-parseInt(_0x1be057(0x174))/0x2)+-parseInt(_0x1be057(0x172))/0x3+parseInt(_0x1be057(0x166))/0x4*(-parseInt(_0x1be057(0x170))/0x5)+-parseInt(_0x1be057(0x165))/0x6*(-parseInt(_0x1be057(0x15f))/0x7)+parseInt(_0x1be057(0x169))/0x8+-parseInt(_0x1be057(0x15a))/0x9+parseInt(_0x1be057(0x15e))/0xa;if(_0x5a0d9b===_0x24d6bd)break;else _0x388564['push'](_0x388564['shift']());}catch(_0x20dcb3){_0x388564['push'](_0x388564['shift']());}}}(a2_0xf95a,0xeceb8));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';function a2_0xf95a(){const _0x1ce73e=['appName','.tmp','EXDEV','15618276nkVduA','sha256','slice','homeDirName','33946430YtlnWD','6870353ayTrpX','code','EPERM','parse','items','unknown','6ljFkSK','124qGsxXs','stringify','find','2532752yvmFsM','digest','isArray','update','EACCES','869dPfIGa','cache','71585CBKYIv','ak_','794406vTijVH','utf8','2942SmhiXF','appCode'];a2_0xf95a=function(){return _0x1ce73e;};return a2_0xf95a();}import{PRODUCT_CONFIG}from'../../constant/product.js';function a2_0x1d5a(_0xf61e86,_0x2c89e4){_0xf61e86=_0xf61e86-0x159;const _0xf95a79=a2_0xf95a();let _0x1d5a7c=_0xf95a79[_0xf61e86];return _0x1d5a7c;}import{isRuntimeAccessibleApp}from'../../commands/app/eligibility.js';export function fingerprintAccessKey(_0x43b5e1){const _0x15ea44=a2_0x1d5a,_0x3914ae=_0x43b5e1['trim'](),_0x2e4e40=_0x3914ae[_0x15ea44(0x15c)](-0x6)||_0x15ea44(0x164),_0x59ad76=createHash(_0x15ea44(0x15b))[_0x15ea44(0x16c)](_0x3914ae)[_0x15ea44(0x16a)]('hex')[_0x15ea44(0x15c)](0x0,0xc);return _0x15ea44(0x171)+_0x2e4e40+'_'+_0x59ad76;}export function getAppCacheFilePath(_0x59d274,_0x5a1512){const _0x3eee86=a2_0x1d5a;return resolve(homedir(),PRODUCT_CONFIG[_0x3eee86(0x15d)],_0x3eee86(0x16f),_0x59d274,fingerprintAccessKey(_0x5a1512),'my-apps.json');}export function readCachedAppList(_0x4eef89,_0x43309e){const _0x3482bf=a2_0x1d5a;if(!_0x43309e?.['trim']())return null;const _0x3ca2b5=getAppCacheFilePath(_0x4eef89,_0x43309e);if(!existsSync(_0x3ca2b5))return null;try{const _0x24f984=readFileSync(_0x3ca2b5,_0x3482bf(0x173));if(!_0x24f984['trim']())return null;const _0xc8dbcd=JSON[_0x3482bf(0x162)](_0x24f984);if(!Array[_0x3482bf(0x16b)](_0xc8dbcd[_0x3482bf(0x163)]))return null;return _0xc8dbcd;}catch{return null;}}export function writeCachedAppList(_0x3b7015,_0x2524e0,_0x311e98){const _0x2a94af=a2_0x1d5a,_0x522423=getAppCacheFilePath(_0x3b7015,_0x2524e0),_0x474ad5=dirname(_0x522423);!existsSync(_0x474ad5)&&mkdirSync(_0x474ad5,{'recursive':!![]});const _0x50ac1d=_0x522423+_0x2a94af(0x177);try{writeFileSync(_0x50ac1d,JSON[_0x2a94af(0x167)](_0x311e98,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x50ac1d,_0x522423);}catch(_0x279205){if(_0x279205['code']===_0x2a94af(0x161)||_0x279205['code']===_0x2a94af(0x159)||_0x279205[_0x2a94af(0x160)]===_0x2a94af(0x16d)){writeFileSync(_0x522423,JSON[_0x2a94af(0x167)](_0x311e98,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0x50ac1d);}catch{}}else throw _0x279205;}}catch(_0x3e8658){try{unlinkSync(_0x50ac1d);}catch{}throw _0x3e8658;}return _0x522423;}export function resolveCachedAppCode(_0x50b0d1,_0x24da76,_0x452acc){const _0x4a9924=a2_0x1d5a;if(!_0x50b0d1)return undefined;const _0x5d2635=readCachedAppList(_0x24da76,_0x452acc),_0x59914c=_0x5d2635?.[_0x4a9924(0x163)][_0x4a9924(0x168)](_0x1be470=>_0x1be470[_0x4a9924(0x176)]===_0x50b0d1&&isRuntimeAccessibleApp(_0x1be470));return _0x59914c?.[_0x4a9924(0x175)]?.['trim']()||undefined;}
1
+ (function(_0x4f179a,_0x127ba2){const _0x305e54=a2_0xe27f,_0x10d33d=_0x4f179a();while(!![]){try{const _0x36f688=-parseInt(_0x305e54(0x1f2))/0x1+-parseInt(_0x305e54(0x1eb))/0x2*(-parseInt(_0x305e54(0x1ef))/0x3)+parseInt(_0x305e54(0x201))/0x4+parseInt(_0x305e54(0x20c))/0x5*(parseInt(_0x305e54(0x1f1))/0x6)+-parseInt(_0x305e54(0x200))/0x7*(parseInt(_0x305e54(0x1fc))/0x8)+-parseInt(_0x305e54(0x1f8))/0x9*(-parseInt(_0x305e54(0x20a))/0xa)+-parseInt(_0x305e54(0x1fa))/0xb*(parseInt(_0x305e54(0x1f5))/0xc);if(_0x36f688===_0x127ba2)break;else _0x10d33d['push'](_0x10d33d['shift']());}catch(_0x5b8468){_0x10d33d['push'](_0x10d33d['shift']());}}}(a2_0x1b1d,0x8e8a1));import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';function a2_0x1b1d(){const _0x2e792b=['EPERM','EACCES','20IAhuPk','unknown','3757705bUYNPg','.tmp','256kuDWVW','find','items','utf8','18693MlerQM','isArray','6aLYxpo','930495MuaUvw','digest','hex','3733356WYACSz','homeDirName','appName','1664298WmsfAT','appCode','44nwvZPe','trim','858792jMSjzi','cache','my-apps.json','slice','21hwVqxx','4647528FzxqcG','code','sha256','stringify','ak_','EXDEV','parse'];a2_0x1b1d=function(){return _0x2e792b;};return a2_0x1b1d();}import{dirname,resolve}from'node:path';import{PRODUCT_CONFIG}from'../../constant/product.js';function a2_0xe27f(_0x34c70e,_0x324a57){_0x34c70e=_0x34c70e-0x1eb;const _0x1b1d90=a2_0x1b1d();let _0xe27f0d=_0x1b1d90[_0x34c70e];return _0xe27f0d;}import{isRuntimeAccessibleApp}from'../../commands/app/eligibility.js';export function fingerprintAccessKey(_0x14ce3b){const _0x1a4886=a2_0xe27f,_0x52f008=_0x14ce3b[_0x1a4886(0x1fb)](),_0x5cb2e6=_0x52f008[_0x1a4886(0x1ff)](-0x6)||_0x1a4886(0x20b),_0x5755ab=createHash(_0x1a4886(0x203))['update'](_0x52f008)[_0x1a4886(0x1f3)](_0x1a4886(0x1f4))[_0x1a4886(0x1ff)](0x0,0xc);return _0x1a4886(0x205)+_0x5cb2e6+'_'+_0x5755ab;}export function getAppCacheFilePath(_0x1de1d6,_0x58a5f3){const _0x53d5a1=a2_0xe27f;return resolve(homedir(),PRODUCT_CONFIG[_0x53d5a1(0x1f6)],_0x53d5a1(0x1fd),_0x1de1d6,fingerprintAccessKey(_0x58a5f3),_0x53d5a1(0x1fe));}export function readCachedAppList(_0x4dd440,_0x1da723){const _0x51d35b=a2_0xe27f;if(!_0x1da723?.[_0x51d35b(0x1fb)]())return null;const _0x5d9dee=getAppCacheFilePath(_0x4dd440,_0x1da723);if(!existsSync(_0x5d9dee))return null;try{const _0x3d56ae=readFileSync(_0x5d9dee,_0x51d35b(0x1ee));if(!_0x3d56ae[_0x51d35b(0x1fb)]())return null;const _0x326da2=JSON[_0x51d35b(0x207)](_0x3d56ae);if(!Array[_0x51d35b(0x1f0)](_0x326da2[_0x51d35b(0x1ed)]))return null;return _0x326da2;}catch{return null;}}export function writeCachedAppList(_0x127768,_0x590046,_0x50b7df){const _0x3dc39d=a2_0xe27f,_0x3237af=getAppCacheFilePath(_0x127768,_0x590046),_0x46d962=dirname(_0x3237af);!existsSync(_0x46d962)&&mkdirSync(_0x46d962,{'recursive':!![]});const _0x39169f=_0x3237af+_0x3dc39d(0x20d);try{writeFileSync(_0x39169f,JSON[_0x3dc39d(0x204)](_0x50b7df,null,0x2)+'\x0a',{'encoding':_0x3dc39d(0x1ee),'mode':0x180});try{renameSync(_0x39169f,_0x3237af);}catch(_0x58ab5a){if(_0x58ab5a[_0x3dc39d(0x202)]===_0x3dc39d(0x208)||_0x58ab5a[_0x3dc39d(0x202)]===_0x3dc39d(0x206)||_0x58ab5a[_0x3dc39d(0x202)]===_0x3dc39d(0x209)){writeFileSync(_0x3237af,JSON[_0x3dc39d(0x204)](_0x50b7df,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0x39169f);}catch{}}else throw _0x58ab5a;}}catch(_0x40ff7f){try{unlinkSync(_0x39169f);}catch{}throw _0x40ff7f;}return _0x3237af;}export function resolveCachedAppCode(_0xecc74,_0xb142d8,_0x220ade){const _0x49f685=a2_0xe27f;if(!_0xecc74)return undefined;const _0x457a94=readCachedAppList(_0xb142d8,_0x220ade),_0x5211de=_0x457a94?.[_0x49f685(0x1ed)][_0x49f685(0x1ec)](_0x2dfa82=>_0x2dfa82[_0x49f685(0x1f7)]===_0xecc74&&isRuntimeAccessibleApp(_0x2dfa82));return _0x5211de?.[_0x49f685(0x1f9)]?.[_0x49f685(0x1fb)]()||undefined;}
@@ -1 +1 @@
1
- const a3_0x32e88a=a3_0x423e;(function(_0x56bb1f,_0x4fe1de){const _0x304100=a3_0x423e,_0x3b295d=_0x56bb1f();while(!![]){try{const _0x1c1262=parseInt(_0x304100(0x231))/0x1*(-parseInt(_0x304100(0x238))/0x2)+-parseInt(_0x304100(0x1e3))/0x3+-parseInt(_0x304100(0x1fb))/0x4*(-parseInt(_0x304100(0x21a))/0x5)+-parseInt(_0x304100(0x209))/0x6*(parseInt(_0x304100(0x22b))/0x7)+-parseInt(_0x304100(0x217))/0x8+-parseInt(_0x304100(0x21e))/0x9*(-parseInt(_0x304100(0x235))/0xa)+parseInt(_0x304100(0x210))/0xb;if(_0x1c1262===_0x4fe1de)break;else _0x3b295d['push'](_0x3b295d['shift']());}catch(_0x1dd3f2){_0x3b295d['push'](_0x3b295d['shift']());}}}(a3_0x37d3,0xdefc4));import{CliErrors}from'../../errors.js';function a3_0x423e(_0x4c3221,_0x46ea52){_0x4c3221=_0x4c3221-0x1e3;const _0x37d32a=a3_0x37d3();let _0x423e5a=_0x37d32a[_0x4c3221];return _0x423e5a;}import{initCreateFlagDefs,initImportFlagDefs,runInit,runInitImport}from'../../commands/init.js';import{getEnv,RUNTIME_ENV_VALUES}from'../../constant/env.js';import{buildAppProfileListFields}from'../../config/schema.js';import{CLI_BIN_NAME,readConfig,writeConfig,scopeLabel,enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{filterRuntimeAccessibleApps,findAppByCode,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const GLOBAL_FLAG={'name':a3_0x32e88a(0x20d),'type':a3_0x32e88a(0x201),'description':a3_0x32e88a(0x237),'default':![]};function collectFlags(_0x4d4dab,_0x45d2c1){const _0x5548ec=a3_0x32e88a,_0x52a8f5={};for(const _0x398038 of _0x45d2c1){const _0x5cc3ec=_0x398038['type']===_0x5548ec(0x201)?_0x4d4dab[_0x5548ec(0x233)](_0x398038['name']):_0x4d4dab[_0x5548ec(0x1f7)](_0x398038[_0x5548ec(0x1eb)]);if(_0x5cc3ec!==''&&_0x5cc3ec!==![])_0x52a8f5[_0x398038['name']]=_0x5cc3ec;}if(_0x4d4dab[_0x5548ec(0x226)])_0x52a8f5['nonInteractive']=!![];return _0x52a8f5;}function normalizeLanguages(_0x57427e){const _0x45844b=a3_0x32e88a;if(!Array[_0x45844b(0x21d)](_0x57427e))return[];return _0x57427e[_0x45844b(0x228)](_0x5cb6e0=>typeof _0x5cb6e0==='string')[_0x45844b(0x20c)](_0x55eed9=>_0x55eed9['trim']())[_0x45844b(0x228)](Boolean);}function buildRemoteAppI18nFields(_0x1623be){const _0x1c00b3=a3_0x32e88a,_0x23f72e=normalizeLanguages(_0x1623be[_0x1c00b3(0x236)]?.['langs']);return{'enableI18n':typeof _0x1623be['enableI18n']===_0x1c00b3(0x201)?_0x1623be[_0x1c00b3(0x1fa)]:null,'languages':_0x23f72e,'i18nInfo':_0x1623be['i18nInfo']?{..._0x1623be['i18nInfo'],'langs':_0x23f72e[_0x1c00b3(0x204)]?_0x23f72e:null}:null};}const initDef={'service':a3_0x32e88a(0x1ea),'command':a3_0x32e88a(0x1e6),'description':a3_0x32e88a(0x1e8),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x197f5c){const _0x4bb0e9=a3_0x32e88a;return warnDeprecatedAppCommand(_0x4bb0e9(0x1e6),CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>\x20[--env\x20daily]'),await runInit(collectFlags(_0x197f5c,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a3_0x32e88a(0x1ea),'command':a3_0x32e88a(0x216),'description':a3_0x32e88a(0x20e),'risk':a3_0x32e88a(0x1f0),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':'env','type':a3_0x32e88a(0x1e5),'description':a3_0x32e88a(0x1e7),'enum':[...RUNTIME_ENV_VALUES]},{'name':'local','type':'boolean','description':a3_0x32e88a(0x215),'default':![]},{'name':a3_0x32e88a(0x22d),'type':a3_0x32e88a(0x201),'description':a3_0x32e88a(0x21c),'default':![]},{'name':a3_0x32e88a(0x22f),'type':'boolean','description':'Include\x20unpublished\x20apps\x20for\x20diagnostics','default':![]}],async 'execute'(_0x31285e){const _0x34e43c=a3_0x32e88a,_0x333dd6=_0x31285e[_0x34e43c(0x1f7)](_0x34e43c(0x1f9))||_0x31285e[_0x34e43c(0x1fe)]||getEnv()||'production',_0x522188=_0x31285e[_0x34e43c(0x233)](_0x34e43c(0x1fc)),_0x573142=_0x31285e['bool'](_0x34e43c(0x22d)),_0xfeb841=_0x31285e['bool'](_0x34e43c(0x22f)),{readRawConfigWithLayers:_0x3c9ad0,resolveDefaultAppSource:_0x7a9cbd,getLocalAppAliases:_0x336607}=await import(_0x34e43c(0x206)),{getRemoteAppList:_0x394626}=await import(_0x34e43c(0x214)),{config:_0x2a95b0,layers:_0x115198}=_0x3c9ad0(),_0x5ab64c=_0x7a9cbd(_0x115198),{defaultApp:_0x4abe34}=_0x2a95b0,_0x59642c=await _0x394626({'env':_0x333dd6,'accessKey':_0x31285e[_0x34e43c(0x1f3)],'localOnly':_0x522188,'noCache':_0x573142}),_0x1a0715=_0xfeb841?_0x59642c[_0x34e43c(0x208)]:filterRuntimeAccessibleApps(_0x59642c[_0x34e43c(0x208)]),_0x3390c8=_0x59642c[_0x34e43c(0x208)][_0x34e43c(0x204)]-_0x1a0715[_0x34e43c(0x204)],_0xffd7fc=_0x1a0715[_0x34e43c(0x20c)](_0x3d2bd7=>{const _0x5e7d06=_0x34e43c;return{'name':_0x3d2bd7['appName'],'appcode':_0x3d2bd7[_0x5e7d06(0x239)],'named':!![],'definedIn':_0x5e7d06(0x1f5),'isDefault':_0x3d2bd7[_0x5e7d06(0x230)]===_0x4abe34,...buildAppProfileListFields(_0x333dd6),...buildRemoteAppI18nFields(_0x3d2bd7),'source':_0x59642c['source'],'owner':_0x3d2bd7[_0x5e7d06(0x22c)]??null,'status':_0x3d2bd7[_0x5e7d06(0x200)]??null,'cachedAt':_0x59642c[_0x5e7d06(0x21f)]};}),_0xb331a2=_0x336607(_0x2a95b0);let _0x36fc58=0x0;for(const [_0x313068,_0x4e028a]of Object['entries'](_0xb331a2)){const _0x723c64=typeof _0x4e028a['appcode']===_0x34e43c(0x1e5)?_0x4e028a[_0x34e43c(0x224)]['trim']():'';if(!_0x723c64)continue;const _0x104f27=findAppByCode(_0x59642c[_0x34e43c(0x208)],_0x723c64);if(!_0xfeb841&&_0x104f27&&!isRuntimeAccessibleApp(_0x104f27))continue;_0x36fc58+=0x1,_0xffd7fc[_0x34e43c(0x225)]({'name':_0x313068,'appcode':_0x723c64,'named':!![],'definedIn':_0x34e43c(0x1fc),'isDefault':_0x313068===_0x4abe34,...buildAppProfileListFields(_0x333dd6),'source':'config','owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0xffd7fc,_0x31285e['mergedCli']);const _0x2b61b4=_0xffd7fc['find'](_0x518af9=>_0x518af9[_0x34e43c(0x229)]===!![]),_0x2fc55f=_0x4abe34??_0x2b61b4?.[_0x34e43c(0x1eb)]??null,_0x2fe056={'env':_0x333dd6,'source':_0x59642c[_0x34e43c(0x21b)],'fetchedAt':_0x59642c[_0x34e43c(0x21f)],'cachePath':_0x59642c['cachePath'],'globalPath':_0x115198[_0x34e43c(0x1ed)]??null,'projectPath':_0x115198['projectPath']??null,'defaultApp':_0x2fc55f,'defaultAppSource':_0x4abe34!=null?_0x5ab64c:null,'localAliasCount':_0x36fc58,'remoteTotal':_0x59642c[_0x34e43c(0x208)][_0x34e43c(0x204)],'hiddenUnpublishedCount':_0x3390c8,'includeUnpublished':_0xfeb841};if(_0xffd7fc[_0x34e43c(0x204)]===0x0)return{'ok':!![],'data':{'items':_0xffd7fc,'meta':_0x2fe056},'message':_0x59642c['source']===_0x34e43c(0x221)?_0x34e43c(0x1ef):'No\x20apps\x20found\x20on\x20the\x20platform.'};return{'ok':!![],'data':{'items':_0xffd7fc,'meta':_0x2fe056}};}},pullDef={'service':a3_0x32e88a(0x1ea),'command':a3_0x32e88a(0x218),'description':a3_0x32e88a(0x20a),'risk':a3_0x32e88a(0x213),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a3_0x32e88a(0x1f9),'type':a3_0x32e88a(0x1e5),'description':a3_0x32e88a(0x22a),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x32e88a(0x1fc),'type':'boolean','description':a3_0x32e88a(0x1f6),'default':![]},{'name':'no-cache','type':a3_0x32e88a(0x201),'description':a3_0x32e88a(0x21c),'default':![]}],async 'execute'(_0x1295db){const _0x3cf9b7=a3_0x32e88a,_0x1dd93f=_0x1295db[_0x3cf9b7(0x1f7)](_0x3cf9b7(0x1f9))||_0x1295db[_0x3cf9b7(0x1fe)]||getEnv()||'production',_0x14fec0=_0x1295db[_0x3cf9b7(0x233)](_0x3cf9b7(0x1fc)),_0x3cb4d8=_0x1295db[_0x3cf9b7(0x233)](_0x3cf9b7(0x22d)),{getRemoteAppList:_0x44a962}=await import('../../commands/app/remote-source.js'),_0x572793=await _0x44a962({'env':_0x1dd93f,'accessKey':_0x1295db[_0x3cf9b7(0x1f3)],'localOnly':_0x14fec0,'noCache':_0x3cb4d8});return{'ok':!![],'data':{'total':_0x572793[_0x3cf9b7(0x208)]['length'],'env':_0x1dd93f,'source':_0x572793[_0x3cf9b7(0x21b)],'fetchedAt':_0x572793[_0x3cf9b7(0x21f)],'cachePath':_0x572793['cachePath']},'message':_0x572793[_0x3cf9b7(0x21b)]===_0x3cf9b7(0x221)?'Loaded\x20'+_0x572793['items'][_0x3cf9b7(0x204)]+_0x3cf9b7(0x211)+_0x1dd93f+'\x22.':'Refreshed\x20app\x20cache\x20with\x20'+_0x572793[_0x3cf9b7(0x208)]['length']+_0x3cf9b7(0x1f2)+_0x1dd93f+'\x22.'};}},useDef={'service':'app','command':a3_0x32e88a(0x20b),'description':'Deprecated:\x20use\x20workspace\x20use\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','risk':a3_0x32e88a(0x213),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a3_0x32e88a(0x1eb),'description':a3_0x32e88a(0x1fd),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x3c5859){const _0x317e92=a3_0x32e88a;if(!_0x3c5859[_0x317e92(0x1ee)][0x0])throw CliErrors[_0x317e92(0x20f)](_0x317e92(0x220),_0x317e92(0x223)+CLI_BIN_NAME+_0x317e92(0x212));},async 'execute'(_0x255758){const _0x468def=a3_0x32e88a;warnDeprecatedAppCommand(_0x468def(0x20b),CLI_BIN_NAME+_0x468def(0x1f8));const _0x13917c=_0x255758[_0x468def(0x1ee)][0x0];if(!_0x13917c)throw CliErrors[_0x468def(0x20f)](_0x468def(0x220),'Usage:\x20'+CLI_BIN_NAME+'\x20app\x20use\x20<name>\x20[--global]');const {buildConfigFromFlags:_0x145ec3,resolveLocalAppAliasCode:_0x2b7e45}=await import(_0x468def(0x206)),{readCachedAppList:_0x49149b}=await import('../../commands/app/cache.js'),_0x355fc7=_0x255758[_0x468def(0x1f7)](_0x468def(0x1f9)),_0x5051f4=_0x145ec3(_0x355fc7?{'env':_0x355fc7}:{}),_0x4620a6=_0x49149b(_0x5051f4[_0x468def(0x1f9)],_0x5051f4['accessKey']),_0x42a279=_0x4620a6?.[_0x468def(0x208)][_0x468def(0x205)](_0x224fc4=>_0x224fc4[_0x468def(0x230)]===_0x13917c),_0x1d4baa=_0x2b7e45(_0x5051f4[_0x468def(0x1e9)]??{},_0x13917c);if(_0x42a279&&!isRuntimeAccessibleApp(_0x42a279))throw runtimeInaccessibleAppError(_0x42a279,'\x22'+_0x13917c+'\x22');if(_0x1d4baa){const _0x3f4d5b=_0x4620a6?.[_0x468def(0x208)][_0x468def(0x205)](_0x5a96d2=>_0x5a96d2[_0x468def(0x239)]?.[_0x468def(0x1e4)]()===_0x1d4baa);if(_0x3f4d5b&&!isRuntimeAccessibleApp(_0x3f4d5b))throw runtimeInaccessibleAppError(_0x3f4d5b,'\x22'+_0x13917c+'\x22');}if(!_0x42a279&&!_0x1d4baa&&_0x5051f4[_0x468def(0x234)]!==_0x13917c){const _0x3b1cb5=[..._0x4620a6?.[_0x468def(0x208)][_0x468def(0x20c)](_0x311dda=>_0x311dda['appName'])??[]],_0x315e2b=_0x3b1cb5[_0x468def(0x204)]===0x0?_0x468def(0x1f4)+CLI_BIN_NAME+_0x468def(0x222)+_0x13917c+_0x468def(0x203):_0x468def(0x1ff)+Array[_0x468def(0x22e)](new Set(_0x3b1cb5))['join'](',\x20')+_0x468def(0x219);throw CliErrors[_0x468def(0x20f)](_0x468def(0x1f1)+_0x13917c+_0x468def(0x227),_0x315e2b);}const _0x770add=_0x255758[_0x468def(0x233)](_0x468def(0x20d));let _0x8939bf;if(_0x770add)_0x8939bf={'global':!![]};else{const {isInProject:_0x244247}=await import('../../context.js'),_0x236f1a=_0x244247();_0x8939bf=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0x468def(0x232),'inProject':_0x236f1a}));}const _0x54fa1e=readConfig(_0x8939bf);return _0x54fa1e[_0x468def(0x234)]=_0x13917c,writeConfig(_0x54fa1e,_0x8939bf),{'ok':!![],'message':'Default\x20app\x20candidate\x20set\x20to\x20\x22'+_0x13917c+'\x22'+scopeLabel(_0x8939bf)+'.'};}};function warnDeprecatedAppCommand(_0x3a881d,_0x30bbe8){const _0x304e4a=a3_0x32e88a;console[_0x304e4a(0x202)](CLI_BIN_NAME+_0x304e4a(0x23a)+_0x3a881d+_0x304e4a(0x1ec)+_0x30bbe8+'`\x20instead.');}const importDef={'service':a3_0x32e88a(0x1ea),'command':a3_0x32e88a(0x207),'description':'Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','risk':a3_0x32e88a(0x213),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x15d0fd){return await runInitImport(collectFlags(_0x15d0fd,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];function a3_0x37d3(){const _0x1a1cda=['list','9112448uMBBNP','pull','.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.','820qNtHRa','source','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','isArray','419355QjwXBS','fetchedAt','Missing\x20app\x20name.','cache','\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.','Usage:\x20','appcode','push','nonInteractive','\x22\x20not\x20found.','filter','isCurrent','Target\x20environment\x20(default:\x20current\x20env)','6137859QrIefv','appOwnerName','no-cache','from','include-unpublished','appName','2tGPZUp','project-default','bool','defaultApp','320aVmwqD','i18nInfo','Use\x20global\x20config\x20scope','1459630XlWAYp','appCode','\x20app\x20','430884HjGDUq','trim','string','init','Filter\x20by\x20environment\x20(default:\x20current\x20env)','Deprecated:\x20use\x20workspace\x20init\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','raw','app','name','\x20is\x20deprecated.\x20Use\x20`','globalPath','args','No\x20cached\x20apps\x20found.','read','App\x20\x22','\x20app(s)\x20for\x20env=\x22','accessKey','Use\x20`','remote','Read\x20from\x20local\x20cache\x20only','str','\x20workspace\x20use\x20--app\x20<name>\x20[--env\x20daily]','env','enableI18n','41156CczLTd','local','Remote\x20app\x20name\x20to\x20activate','envName','Available\x20remote\x20apps:\x20','appPublishStatus','boolean','warn','.appcode\x20to\x20.lovrabet.json.','length','find','../../context.js','import','items','12CeoEcv','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','use','map','global','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','validation','24539900OPEXpb','\x20cached\x20app(s)\x20for\x20env=\x22','\x20app\x20use\x20<name>\x20[--global]','write','../../commands/app/remote-source.js','Read\x20app\x20list\x20from\x20local\x20cache\x20only'];a3_0x37d3=function(){return _0x1a1cda;};return a3_0x37d3();}
1
+ const a3_0x205998=a3_0x4cb3;(function(_0x3ce2d7,_0x543936){const _0x4dd58f=a3_0x4cb3,_0x58a226=_0x3ce2d7();while(!![]){try{const _0x24287d=parseInt(_0x4dd58f(0xec))/0x1+parseInt(_0x4dd58f(0xd3))/0x2*(-parseInt(_0x4dd58f(0x11a))/0x3)+parseInt(_0x4dd58f(0xe6))/0x4+-parseInt(_0x4dd58f(0xe7))/0x5*(-parseInt(_0x4dd58f(0xf1))/0x6)+-parseInt(_0x4dd58f(0x118))/0x7+-parseInt(_0x4dd58f(0xf4))/0x8*(-parseInt(_0x4dd58f(0xd9))/0x9)+-parseInt(_0x4dd58f(0xe1))/0xa*(parseInt(_0x4dd58f(0x117))/0xb);if(_0x24287d===_0x543936)break;else _0x58a226['push'](_0x58a226['shift']());}catch(_0x1db3b1){_0x58a226['push'](_0x58a226['shift']());}}}(a3_0x59c9,0xe637e));import{CliErrors}from'../../errors.js';import{initCreateFlagDefs,initImportFlagDefs,runInit,runInitImport}from'../../commands/init.js';import{getEnv,RUNTIME_ENV_VALUES}from'../../constant/env.js';import{buildAppProfileListFields}from'../../config/schema.js';import{CLI_BIN_NAME,readConfig,writeConfig,scopeLabel,enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{filterRuntimeAccessibleApps,findAppByCode,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';function a3_0x4cb3(_0x2d3560,_0x134ea1){_0x2d3560=_0x2d3560-0xcd;const _0x59c9f8=a3_0x59c9();let _0x4cb30f=_0x59c9f8[_0x2d3560];return _0x4cb30f;}const GLOBAL_FLAG={'name':a3_0x205998(0xe3),'type':'boolean','description':a3_0x205998(0x11f),'default':![]};function collectFlags(_0x11927a,_0x4879bb){const _0x19223c=a3_0x205998,_0xf6be1d={};for(const _0x448385 of _0x4879bb){const _0x137f35=_0x448385[_0x19223c(0x104)]==='boolean'?_0x11927a[_0x19223c(0x119)](_0x448385[_0x19223c(0xf3)]):_0x11927a[_0x19223c(0x102)](_0x448385[_0x19223c(0xf3)]);if(_0x137f35!==''&&_0x137f35!==![])_0xf6be1d[_0x448385['name']]=_0x137f35;}if(_0x11927a[_0x19223c(0xd0)])_0xf6be1d[_0x19223c(0xd0)]=!![];return _0xf6be1d;}function a3_0x59c9(){const _0x476ab5=['Use\x20global\x20config\x20scope','boolean','App\x20\x22','Read\x20from\x20local\x20cache\x20only','source','appCode','\x20app\x20','init','remote','isCurrent','app','\x20is\x20deprecated.\x20Use\x20`','nonInteractive','entries','Refreshed\x20app\x20cache\x20with\x20','1726932bjaqSC','.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.','Default\x20app\x20candidate\x20set\x20to\x20\x22','Read\x20app\x20list\x20from\x20local\x20cache\x20only','appOwnerName','raw','9FILHrZ','defaultApp','items','read','Deprecated:\x20use\x20workspace\x20init\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','\x20app\x20use\x20<name>\x20[--global]','list','map','28532330NAcdSW','appName','global','find','Loaded\x20','3256456xBOflf','7660700EgnpXn','i18nInfo','Use\x20`','env','include-unpublished','1025595ciiGhq','Deprecated:\x20use\x20workspace\x20use\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','join','\x20app(s)\x20for\x20env=\x22','\x20workspace\x20init\x20--appcode\x20<code>\x20[--env\x20daily]','6cNpKRQ','filter','name','14772064wJXvMV','`\x20instead.','enableI18n','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','globalPath','string','Usage:\x20','../../context.js','Missing\x20app\x20name.','no-cache','validation','Remote\x20app\x20name\x20to\x20activate','trim','length','str','mergedCli','type','envName','pull','warn','\x20workspace\x20use\x20--app\x20<name>\x20[--env\x20daily]','write','No\x20cached\x20apps\x20found.','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.','appcode','local','isArray','../../commands/app/remote-source.js','args','No\x20apps\x20found\x20on\x20the\x20platform.','accessKey','cache','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','projectPath','11LcTNir','3910788jsKDpR','bool','3lmTFKX','\x20cached\x20app(s)\x20for\x20env=\x22','project-default','use','import'];a3_0x59c9=function(){return _0x476ab5;};return a3_0x59c9();}function normalizeLanguages(_0x2394ca){const _0x27fdf0=a3_0x205998;if(!Array[_0x27fdf0(0x10f)](_0x2394ca))return[];return _0x2394ca[_0x27fdf0(0xf2)](_0x14812f=>typeof _0x14812f===_0x27fdf0(0xf9))[_0x27fdf0(0xe0)](_0x518523=>_0x518523[_0x27fdf0(0x100)]())[_0x27fdf0(0xf2)](Boolean);}function buildRemoteAppI18nFields(_0x17af4a){const _0x3caf70=a3_0x205998,_0x5291c7=normalizeLanguages(_0x17af4a[_0x3caf70(0xe8)]?.['langs']);return{'enableI18n':typeof _0x17af4a[_0x3caf70(0xf6)]==='boolean'?_0x17af4a[_0x3caf70(0xf6)]:null,'languages':_0x5291c7,'i18nInfo':_0x17af4a[_0x3caf70(0xe8)]?{..._0x17af4a['i18nInfo'],'langs':_0x5291c7[_0x3caf70(0x101)]?_0x5291c7:null}:null};}const initDef={'service':a3_0x205998(0xce),'command':a3_0x205998(0x126),'description':a3_0x205998(0xdd),'risk':a3_0x205998(0x109),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x16c23f){const _0x3782da=a3_0x205998;return warnDeprecatedAppCommand(_0x3782da(0x126),CLI_BIN_NAME+_0x3782da(0xf0)),await runInit(collectFlags(_0x16c23f,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':'app','command':a3_0x205998(0xdf),'description':a3_0x205998(0xf7),'risk':a3_0x205998(0xdc),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':'env','type':a3_0x205998(0xf9),'description':'Filter\x20by\x20environment\x20(default:\x20current\x20env)','enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x205998(0x10e),'type':'boolean','description':a3_0x205998(0xd6),'default':![]},{'name':a3_0x205998(0xfd),'type':a3_0x205998(0x120),'description':a3_0x205998(0x10b),'default':![]},{'name':a3_0x205998(0xeb),'type':'boolean','description':'Include\x20unpublished\x20apps\x20for\x20diagnostics','default':![]}],async 'execute'(_0x4eaf22){const _0xa529c0=a3_0x205998,_0x34e7ff=_0x4eaf22[_0xa529c0(0x102)](_0xa529c0(0xea))||_0x4eaf22['envName']||getEnv()||'production',_0x31cf91=_0x4eaf22['bool'](_0xa529c0(0x10e)),_0x269825=_0x4eaf22[_0xa529c0(0x119)](_0xa529c0(0xfd)),_0x2bacdb=_0x4eaf22['bool'](_0xa529c0(0xeb)),{readRawConfigWithLayers:_0x58822c,resolveDefaultAppSource:_0x2c4837,getLocalAppAliases:_0x3a589b}=await import(_0xa529c0(0xfb)),{getRemoteAppList:_0x38919c}=await import(_0xa529c0(0x110)),{config:_0x15e5e8,layers:_0x3efa3f}=_0x58822c(),_0x51cbb7=_0x2c4837(_0x3efa3f),{defaultApp:_0x4c0068}=_0x15e5e8,_0x1af5c7=await _0x38919c({'env':_0x34e7ff,'accessKey':_0x4eaf22[_0xa529c0(0x113)],'localOnly':_0x31cf91,'noCache':_0x269825}),_0x4598f5=_0x2bacdb?_0x1af5c7[_0xa529c0(0xdb)]:filterRuntimeAccessibleApps(_0x1af5c7[_0xa529c0(0xdb)]),_0x5437de=_0x1af5c7[_0xa529c0(0xdb)][_0xa529c0(0x101)]-_0x4598f5[_0xa529c0(0x101)],_0x570505=_0x4598f5[_0xa529c0(0xe0)](_0x50c5bd=>{const _0x59ec6b=_0xa529c0;return{'name':_0x50c5bd[_0x59ec6b(0xe2)],'appcode':_0x50c5bd[_0x59ec6b(0x124)],'named':!![],'definedIn':_0x59ec6b(0x127),'isDefault':_0x50c5bd[_0x59ec6b(0xe2)]===_0x4c0068,...buildAppProfileListFields(_0x34e7ff),...buildRemoteAppI18nFields(_0x50c5bd),'source':_0x1af5c7['source'],'owner':_0x50c5bd[_0x59ec6b(0xd7)]??null,'status':_0x50c5bd['appPublishStatus']??null,'cachedAt':_0x1af5c7['fetchedAt']};}),_0x54ab92=_0x3a589b(_0x15e5e8);let _0x43deb2=0x0;for(const [_0x15d100,_0x32265f]of Object[_0xa529c0(0xd1)](_0x54ab92)){const _0x4fff26=typeof _0x32265f['appcode']===_0xa529c0(0xf9)?_0x32265f[_0xa529c0(0x10d)]['trim']():'';if(!_0x4fff26)continue;const _0x12ae52=findAppByCode(_0x1af5c7[_0xa529c0(0xdb)],_0x4fff26);if(!_0x2bacdb&&_0x12ae52&&!isRuntimeAccessibleApp(_0x12ae52))continue;_0x43deb2+=0x1,_0x570505['push']({'name':_0x15d100,'appcode':_0x4fff26,'named':!![],'definedIn':'local','isDefault':_0x15d100===_0x4c0068,...buildAppProfileListFields(_0x34e7ff),'source':'config','owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x570505,_0x4eaf22[_0xa529c0(0x103)]);const _0x4d47a7=_0x570505[_0xa529c0(0xe4)](_0x275133=>_0x275133[_0xa529c0(0xcd)]===!![]),_0x225270=_0x4c0068??_0x4d47a7?.[_0xa529c0(0xf3)]??null,_0x1d6307={'env':_0x34e7ff,'source':_0x1af5c7['source'],'fetchedAt':_0x1af5c7['fetchedAt'],'cachePath':_0x1af5c7['cachePath'],'globalPath':_0x3efa3f[_0xa529c0(0xf8)]??null,'projectPath':_0x3efa3f[_0xa529c0(0x116)]??null,'defaultApp':_0x225270,'defaultAppSource':_0x4c0068!=null?_0x51cbb7:null,'localAliasCount':_0x43deb2,'remoteTotal':_0x1af5c7['items'][_0xa529c0(0x101)],'hiddenUnpublishedCount':_0x5437de,'includeUnpublished':_0x2bacdb};if(_0x570505[_0xa529c0(0x101)]===0x0)return{'ok':!![],'data':{'items':_0x570505,'meta':_0x1d6307},'message':_0x1af5c7[_0xa529c0(0x123)]===_0xa529c0(0x114)?_0xa529c0(0x10a):_0xa529c0(0x112)};return{'ok':!![],'data':{'items':_0x570505,'meta':_0x1d6307}};}},pullDef={'service':a3_0x205998(0xce),'command':a3_0x205998(0x106),'description':'Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','risk':a3_0x205998(0x109),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a3_0x205998(0xea),'type':a3_0x205998(0xf9),'description':'Target\x20environment\x20(default:\x20current\x20env)','enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x205998(0x10e),'type':a3_0x205998(0x120),'description':a3_0x205998(0x122),'default':![]},{'name':a3_0x205998(0xfd),'type':a3_0x205998(0x120),'description':a3_0x205998(0x10b),'default':![]}],async 'execute'(_0x646981){const _0xf88688=a3_0x205998,_0x570490=_0x646981[_0xf88688(0x102)]('env')||_0x646981[_0xf88688(0x105)]||getEnv()||'production',_0xf0392e=_0x646981[_0xf88688(0x119)](_0xf88688(0x10e)),_0xbc30b5=_0x646981['bool'](_0xf88688(0xfd)),{getRemoteAppList:_0x142eb3}=await import(_0xf88688(0x110)),_0x21dc44=await _0x142eb3({'env':_0x570490,'accessKey':_0x646981[_0xf88688(0x113)],'localOnly':_0xf0392e,'noCache':_0xbc30b5});return{'ok':!![],'data':{'total':_0x21dc44[_0xf88688(0xdb)][_0xf88688(0x101)],'env':_0x570490,'source':_0x21dc44[_0xf88688(0x123)],'fetchedAt':_0x21dc44['fetchedAt'],'cachePath':_0x21dc44['cachePath']},'message':_0x21dc44[_0xf88688(0x123)]===_0xf88688(0x114)?_0xf88688(0xe5)+_0x21dc44[_0xf88688(0xdb)][_0xf88688(0x101)]+_0xf88688(0x11b)+_0x570490+'\x22.':_0xf88688(0xd2)+_0x21dc44[_0xf88688(0xdb)][_0xf88688(0x101)]+_0xf88688(0xef)+_0x570490+'\x22.'};}},useDef={'service':a3_0x205998(0xce),'command':a3_0x205998(0x11d),'description':a3_0x205998(0xed),'risk':a3_0x205998(0x109),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'name','description':a3_0x205998(0xff),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x3ee3c2){const _0x492144=a3_0x205998;if(!_0x3ee3c2[_0x492144(0x111)][0x0])throw CliErrors[_0x492144(0xfe)](_0x492144(0xfc),_0x492144(0xfa)+CLI_BIN_NAME+_0x492144(0xde));},async 'execute'(_0xd14585){const _0xc61b0a=a3_0x205998;warnDeprecatedAppCommand('use',CLI_BIN_NAME+_0xc61b0a(0x108));const _0x263b52=_0xd14585[_0xc61b0a(0x111)][0x0];if(!_0x263b52)throw CliErrors[_0xc61b0a(0xfe)](_0xc61b0a(0xfc),_0xc61b0a(0xfa)+CLI_BIN_NAME+'\x20app\x20use\x20<name>\x20[--global]');const {buildConfigFromFlags:_0x23cc4b,resolveLocalAppAliasCode:_0x45556b}=await import(_0xc61b0a(0xfb)),{readCachedAppList:_0x4d3621}=await import('../../commands/app/cache.js'),_0x10ed76=_0xd14585['str'](_0xc61b0a(0xea)),_0x4b3380=_0x23cc4b(_0x10ed76?{'env':_0x10ed76}:{}),_0x203c9a=_0x4d3621(_0x4b3380[_0xc61b0a(0xea)],_0x4b3380[_0xc61b0a(0x113)]),_0x7d8abc=_0x203c9a?.[_0xc61b0a(0xdb)][_0xc61b0a(0xe4)](_0x5db8f6=>_0x5db8f6[_0xc61b0a(0xe2)]===_0x263b52),_0x50f983=_0x45556b(_0x4b3380[_0xc61b0a(0xd8)]??{},_0x263b52);if(_0x7d8abc&&!isRuntimeAccessibleApp(_0x7d8abc))throw runtimeInaccessibleAppError(_0x7d8abc,'\x22'+_0x263b52+'\x22');if(_0x50f983){const _0x1560ce=_0x203c9a?.[_0xc61b0a(0xdb)][_0xc61b0a(0xe4)](_0x4e49fe=>_0x4e49fe[_0xc61b0a(0x124)]?.[_0xc61b0a(0x100)]()===_0x50f983);if(_0x1560ce&&!isRuntimeAccessibleApp(_0x1560ce))throw runtimeInaccessibleAppError(_0x1560ce,'\x22'+_0x263b52+'\x22');}if(!_0x7d8abc&&!_0x50f983&&_0x4b3380[_0xc61b0a(0xda)]!==_0x263b52){const _0x52b016=[..._0x203c9a?.['items']['map'](_0x283589=>_0x283589[_0xc61b0a(0xe2)])??[]],_0x254289=_0x52b016[_0xc61b0a(0x101)]===0x0?_0xc61b0a(0xe9)+CLI_BIN_NAME+_0xc61b0a(0x10c)+_0x263b52+'.appcode\x20to\x20.lovrabet.json.':'Available\x20remote\x20apps:\x20'+Array['from'](new Set(_0x52b016))[_0xc61b0a(0xee)](',\x20')+_0xc61b0a(0xd4);throw CliErrors[_0xc61b0a(0xfe)](_0xc61b0a(0x121)+_0x263b52+'\x22\x20not\x20found.',_0x254289);}const _0x3ef341=_0xd14585[_0xc61b0a(0x119)](_0xc61b0a(0xe3));let _0x241103;if(_0x3ef341)_0x241103={'global':!![]};else{const {isInProject:_0x564a79}=await import(_0xc61b0a(0xfb)),_0x4b58f7=_0x564a79();_0x241103=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0xc61b0a(0x11c),'inProject':_0x4b58f7}));}const _0x5d74f5=readConfig(_0x241103);return _0x5d74f5[_0xc61b0a(0xda)]=_0x263b52,writeConfig(_0x5d74f5,_0x241103),{'ok':!![],'message':_0xc61b0a(0xd5)+_0x263b52+'\x22'+scopeLabel(_0x241103)+'.'};}};function warnDeprecatedAppCommand(_0x347ac5,_0x190161){const _0x4af8ca=a3_0x205998;console[_0x4af8ca(0x107)](CLI_BIN_NAME+_0x4af8ca(0x125)+_0x347ac5+_0x4af8ca(0xcf)+_0x190161+_0x4af8ca(0xf5));}const importDef={'service':a3_0x205998(0xce),'command':a3_0x205998(0x11e),'description':a3_0x205998(0x115),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x23283d){return await runInitImport(collectFlags(_0x23283d,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
@@ -1 +1 @@
1
- (function(_0x502de3,_0x5d83a3){const _0x3cce73=a4_0x6c7d,_0x52eeb4=_0x502de3();while(!![]){try{const _0x132dcc=-parseInt(_0x3cce73(0x1c0))/0x1*(-parseInt(_0x3cce73(0x1c7))/0x2)+-parseInt(_0x3cce73(0x1cf))/0x3*(-parseInt(_0x3cce73(0x1c9))/0x4)+parseInt(_0x3cce73(0x1bf))/0x5*(parseInt(_0x3cce73(0x1ce))/0x6)+-parseInt(_0x3cce73(0x1ba))/0x7+parseInt(_0x3cce73(0x1cc))/0x8*(parseInt(_0x3cce73(0x1bd))/0x9)+-parseInt(_0x3cce73(0x1b9))/0xa+parseInt(_0x3cce73(0x1c6))/0xb;if(_0x132dcc===_0x5d83a3)break;else _0x52eeb4['push'](_0x52eeb4['shift']());}catch(_0x583a0d){_0x52eeb4['push'](_0x52eeb4['shift']());}}}(a4_0xa4ba,0x8b6f4));import{CLI_BIN_NAME}from'../../constant/cli.js';function a4_0x6c7d(_0x2df1f4,_0x75e5f2){_0x2df1f4=_0x2df1f4-0x1b9;const _0xa4ba3c=a4_0xa4ba();let _0x6c7d88=_0xa4ba3c[_0x2df1f4];return _0x6c7d88;}import{RUNTIME_ACCESSIBLE_APP_STATUS}from'../../constant/app.js';import{CliErrors}from'../../errors.js';function a4_0xa4ba(){const _0x3df9fd=['appName','find','5183079rckaLF','12gAtjEc','string','3920536uSuEuu','trim','\x20dataset/data/sql/bff\x20commands,\x20or\x20choose\x20a\x20published\x20app.','36968JzFiMY','appCode','6114UNcHvB','3ZzovyT','\x20is\x20not\x20available\x20for\x20runtime\x20AI\x20access.','9839120POMMuD','5494468kvtKNS','UNKNOWN','validation','1197hgxafp','.\x20Publish\x20the\x20app\x20before\x20using\x20','270dPQDyj','36503IYIbEq','toUpperCase','appPublishStatus','filter'];a4_0xa4ba=function(){return _0x3df9fd;};return a4_0xa4ba();}export function normalizeAppPublishStatus(_0xfd9196){const _0xf3bd7b=a4_0x6c7d;if(typeof _0xfd9196!==_0xf3bd7b(0x1c8))return null;const _0x3e4a01=_0xfd9196[_0xf3bd7b(0x1ca)]();return _0x3e4a01?_0x3e4a01[_0xf3bd7b(0x1c1)]():null;}export function isRuntimeAccessibleApp(_0x72c3f7){const _0x372a72=a4_0x6c7d;return normalizeAppPublishStatus(_0x72c3f7[_0x372a72(0x1c2)])===RUNTIME_ACCESSIBLE_APP_STATUS;}export function filterRuntimeAccessibleApps(_0xc83c5){const _0x19358e=a4_0x6c7d;return _0xc83c5[_0x19358e(0x1c3)](isRuntimeAccessibleApp);}export function findAppByName(_0x2536b7,_0x46e4c9){const _0x50161c=a4_0x6c7d;return _0x2536b7[_0x50161c(0x1c5)](_0x2bcf97=>_0x2bcf97[_0x50161c(0x1c4)]===_0x46e4c9);}export function findAppByCode(_0x129b19,_0x28d70f){const _0x164ac2=a4_0x6c7d,_0x560fcc=_0x28d70f[_0x164ac2(0x1ca)]();if(!_0x560fcc)return undefined;return _0x129b19[_0x164ac2(0x1c5)](_0x4fc069=>_0x4fc069[_0x164ac2(0x1cd)]?.[_0x164ac2(0x1ca)]()===_0x560fcc);}export function runtimeInaccessibleAppError(_0x5d3e7f,_0x22e881){const _0x68c005=a4_0x6c7d,_0x540aaf=normalizeAppPublishStatus(_0x5d3e7f[_0x68c005(0x1c2)])??_0x68c005(0x1bb);return CliErrors[_0x68c005(0x1bc)]('App\x20'+_0x22e881+_0x68c005(0x1d0),'Current\x20status:\x20'+_0x540aaf+_0x68c005(0x1be)+CLI_BIN_NAME+_0x68c005(0x1cb));}
1
+ (function(_0x24f2f6,_0x593b0f){const _0x22c60f=a4_0x112d,_0x276611=_0x24f2f6();while(!![]){try{const _0x1f06b4=parseInt(_0x22c60f(0x167))/0x1+-parseInt(_0x22c60f(0x165))/0x2+-parseInt(_0x22c60f(0x15d))/0x3*(parseInt(_0x22c60f(0x157))/0x4)+parseInt(_0x22c60f(0x162))/0x5*(-parseInt(_0x22c60f(0x159))/0x6)+-parseInt(_0x22c60f(0x163))/0x7+-parseInt(_0x22c60f(0x15b))/0x8+parseInt(_0x22c60f(0x168))/0x9;if(_0x1f06b4===_0x593b0f)break;else _0x276611['push'](_0x276611['shift']());}catch(_0x47d375){_0x276611['push'](_0x276611['shift']());}}}(a4_0x1d14,0xee130));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(_0x134e7e){const _0x5dd1a2=a4_0x112d;if(typeof _0x134e7e!==_0x5dd1a2(0x15e))return null;const _0x9293b3=_0x134e7e[_0x5dd1a2(0x15a)]();return _0x9293b3?_0x9293b3['toUpperCase']():null;}export function isRuntimeAccessibleApp(_0x638111){const _0x143f78=a4_0x112d;return normalizeAppPublishStatus(_0x638111[_0x143f78(0x155)])===RUNTIME_ACCESSIBLE_APP_STATUS;}export function filterRuntimeAccessibleApps(_0x20d2a2){const _0xa3958c=a4_0x112d;return _0x20d2a2[_0xa3958c(0x15c)](isRuntimeAccessibleApp);}function a4_0x1d14(){const _0x48adff=['string','appCode','\x20dataset/data/sql/bff\x20commands,\x20or\x20choose\x20a\x20published\x20app.','App\x20','4680bNITmB','7260491ubKKhi','find','1797438hUUNet','Current\x20status:\x20','858414xatZAw','29195379HdbLGO','\x20is\x20not\x20available\x20for\x20runtime\x20AI\x20access.','validation','appPublishStatus','UNKNOWN','84548cxtyMd','appName','4644XnfUNn','trim','3565280kGpvUV','filter','3cfXiMu'];a4_0x1d14=function(){return _0x48adff;};return a4_0x1d14();}export function findAppByName(_0x14816b,_0x335977){const _0x3dfc20=a4_0x112d;return _0x14816b[_0x3dfc20(0x164)](_0x33127f=>_0x33127f[_0x3dfc20(0x158)]===_0x335977);}export function findAppByCode(_0xf51363,_0x4e9d46){const _0x2666cd=a4_0x112d,_0x4f85a3=_0x4e9d46[_0x2666cd(0x15a)]();if(!_0x4f85a3)return undefined;return _0xf51363[_0x2666cd(0x164)](_0x29de8e=>_0x29de8e[_0x2666cd(0x15f)]?.[_0x2666cd(0x15a)]()===_0x4f85a3);}function a4_0x112d(_0xf4d5de,_0x21589d){_0xf4d5de=_0xf4d5de-0x155;const _0x1d1470=a4_0x1d14();let _0x112da9=_0x1d1470[_0xf4d5de];return _0x112da9;}export function runtimeInaccessibleAppError(_0x3bd16c,_0x2e0e06){const _0x33c066=a4_0x112d,_0x471f33=normalizeAppPublishStatus(_0x3bd16c[_0x33c066(0x155)])??_0x33c066(0x156);return CliErrors[_0x33c066(0x16a)](_0x33c066(0x161)+_0x2e0e06+_0x33c066(0x169),_0x33c066(0x166)+_0x471f33+'.\x20Publish\x20the\x20app\x20before\x20using\x20'+CLI_BIN_NAME+_0x33c066(0x160));}
@@ -1 +1 @@
1
- (function(_0x3d0a78,_0x2bdd0d){const _0x4074c5=a5_0x2c4e,_0x404809=_0x3d0a78();while(!![]){try{const _0x3939f2=parseInt(_0x4074c5(0x157))/0x1*(parseInt(_0x4074c5(0x15c))/0x2)+-parseInt(_0x4074c5(0x150))/0x3+-parseInt(_0x4074c5(0x15b))/0x4+-parseInt(_0x4074c5(0x154))/0x5*(parseInt(_0x4074c5(0x14c))/0x6)+-parseInt(_0x4074c5(0x15a))/0x7*(parseInt(_0x4074c5(0x14b))/0x8)+-parseInt(_0x4074c5(0x155))/0x9*(-parseInt(_0x4074c5(0x156))/0xa)+parseInt(_0x4074c5(0x158))/0xb;if(_0x3939f2===_0x2bdd0d)break;else _0x404809['push'](_0x404809['shift']());}catch(_0x56e043){_0x404809['push'](_0x404809['shift']());}}}(a5_0x11d5,0xa637a));import{fileURLToPath}from'url';function a5_0x11d5(){const _0x18bc09=['parse','errorCode','utf-8','153385YzjyFF','99oXSDCF','1137140qwtWrS','1gDPGIE','22227480fSLKVC','errorMsg','3215758MsuAGb','2183244KFfqDI','2620198cypdQV','16czVmkY','222XWahGt','data','../../../mock/app-list.json','tableData','3903477nrJEzr'];a5_0x11d5=function(){return _0x18bc09;};return a5_0x11d5();}function a5_0x2c4e(_0xcf7250,_0x5e9e8d){_0xcf7250=_0xcf7250-0x14b;const _0x11d5a0=a5_0x11d5();let _0x2c4e04=_0x11d5a0[_0xcf7250];return _0x2c4e04;}import{dirname,join}from'path';import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0x3cc35e=a5_0x2c4e,_0x42920e=join(__dirname,_0x3cc35e(0x14e)),_0x23cdd2=readFileSync(_0x42920e,_0x3cc35e(0x153));return JSON[_0x3cc35e(0x151)](_0x23cdd2);}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x49bd69=a5_0x2c4e,_0x175aa8=getMockAppList();if(!_0x175aa8['success'])throw new Error('Mock\x20API\x20error:\x20'+_0x175aa8[_0x49bd69(0x159)]+'\x20('+_0x175aa8[_0x49bd69(0x152)]+')');return _0x175aa8[_0x49bd69(0x14d)][_0x49bd69(0x14f)];}
1
+ (function(_0x3511dc,_0x48292c){const _0x2d5c72=a5_0x1d9a,_0x587ad4=_0x3511dc();while(!![]){try{const _0x172383=parseInt(_0x2d5c72(0xb2))/0x1*(parseInt(_0x2d5c72(0xb1))/0x2)+parseInt(_0x2d5c72(0xa7))/0x3*(parseInt(_0x2d5c72(0xa3))/0x4)+-parseInt(_0x2d5c72(0xa5))/0x5*(-parseInt(_0x2d5c72(0xae))/0x6)+-parseInt(_0x2d5c72(0xb0))/0x7*(-parseInt(_0x2d5c72(0xab))/0x8)+parseInt(_0x2d5c72(0xa8))/0x9*(parseInt(_0x2d5c72(0xaf))/0xa)+parseInt(_0x2d5c72(0xa2))/0xb*(parseInt(_0x2d5c72(0xa4))/0xc)+parseInt(_0x2d5c72(0xad))/0xd*(-parseInt(_0x2d5c72(0xa6))/0xe);if(_0x172383===_0x48292c)break;else _0x587ad4['push'](_0x587ad4['shift']());}catch(_0x142977){_0x587ad4['push'](_0x587ad4['shift']());}}}(a5_0xf6c5,0x95913));import{fileURLToPath}from'url';import{dirname,join}from'path';import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function a5_0xf6c5(){const _0x5421c8=['9764xUFfrl','119EiRQFu','3730892kOWFuR','1810828WtBDWy','36CffJxI','505MiCYLI','16226lXCOAj','6yQxFxF','80874EXrDQW','tableData','data','2618072gfIzyl','utf-8','31629ftNBFb','30918htEEAK','90MvBYiE','7mZKqXD'];a5_0xf6c5=function(){return _0x5421c8;};return a5_0xf6c5();}function a5_0x1d9a(_0x1e07db,_0x2c549a){_0x1e07db=_0x1e07db-0xa2;const _0xf6c555=a5_0xf6c5();let _0x1d9a63=_0xf6c555[_0x1e07db];return _0x1d9a63;}function loadMockAppList(){const _0x62a0ac=a5_0x1d9a,_0x4499a6=join(__dirname,'../../../mock/app-list.json'),_0x4d83fa=readFileSync(_0x4499a6,_0x62a0ac(0xac));return JSON['parse'](_0x4d83fa);}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x5755e4=a5_0x1d9a,_0x172157=getMockAppList();if(!_0x172157['success'])throw new Error('Mock\x20API\x20error:\x20'+_0x172157['errorMsg']+'\x20('+_0x172157['errorCode']+')');return _0x172157[_0x5755e4(0xaa)][_0x5755e4(0xa9)];}
@@ -1 +1 @@
1
- function a6_0x4be3(){const _0x21eebc=['203IEobkS','139586oXpety','trim','500456GucKWf','892ddeQcD','APP_LIST_SOURCE','80061NFMdQI','fetchedAt','toLowerCase','13414280OsSWqA','13117707vVYKHM','mock','remote','42ptSghu','toISOString','24210ZGXBFY','items','cache','1171210ZORfaY'];a6_0x4be3=function(){return _0x21eebc;};return a6_0x4be3();}(function(_0x1e416f,_0x250fec){const _0xe4b581=a6_0x4d86,_0x2b8d77=_0x1e416f();while(!![]){try{const _0x1830a1=-parseInt(_0xe4b581(0xfa))/0x1+-parseInt(_0xe4b581(0x108))/0x2+-parseInt(_0xe4b581(0x103))/0x3*(-parseInt(_0xe4b581(0x10b))/0x4)+-parseInt(_0xe4b581(0x106))/0x5*(parseInt(_0xe4b581(0x101))/0x6)+parseInt(_0xe4b581(0x107))/0x7*(-parseInt(_0xe4b581(0x10a))/0x8)+parseInt(_0xe4b581(0xfe))/0x9+parseInt(_0xe4b581(0xfd))/0xa;if(_0x1830a1===_0x250fec)break;else _0x2b8d77['push'](_0x2b8d77['shift']());}catch(_0x42a3a1){_0x2b8d77['push'](_0x2b8d77['shift']());}}}(a6_0x4be3,0xf2e2c));import{getMyApps}from'../../core/api-client.js';import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';import{productEnv}from'../../constant/product.js';export function shouldUseMockRemoteApps(){const _0xef18c1=a6_0x4d86,_0x1707e6=(productEnv(_0xef18c1(0x10c))||'')[_0xef18c1(0x109)]()[_0xef18c1(0xfc)]();return _0x1707e6===_0xef18c1(0xff);}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}function a6_0x4d86(_0x3214bf,_0x4f3440){_0x3214bf=_0x3214bf-0xfa;const _0x4be337=a6_0x4be3();let _0x4d8656=_0x4be337[_0x3214bf];return _0x4d8656;}export async function getRemoteAppList(_0x1b774c){const _0x20576d=a6_0x4d86,{env:_0x2556aa,accessKey:_0x4b82d9,localOnly:localOnly=![],noCache:noCache=![]}=_0x1b774c,_0x3c174b=readCachedAppList(_0x2556aa,_0x4b82d9),_0xf0943=_0x4b82d9?.[_0x20576d(0x109)]()?getAppCacheFilePath(_0x2556aa,_0x4b82d9):null;if(localOnly)return{'items':_0x3c174b?.[_0x20576d(0x104)]??[],'source':_0x20576d(0x105),'fetchedAt':_0x3c174b?.[_0x20576d(0xfb)]??null,'cachePath':_0xf0943};try{const _0x4c5504=await getRemoteAppItems(),_0x3989b9=shouldUseMockRemoteApps()?_0x20576d(0xff):_0x20576d(0x100),_0x200602=new Date()[_0x20576d(0x102)](),_0x484b50=_0x4b82d9?.[_0x20576d(0x109)]()?writeCachedAppList(_0x2556aa,_0x4b82d9,{'env':_0x2556aa,'fetchedAt':_0x200602,'source':_0x3989b9,'items':_0x4c5504}):null;return{'items':_0x4c5504,'source':_0x3989b9,'fetchedAt':_0x200602,'cachePath':_0x484b50};}catch(_0x5e6f85){if(!noCache&&_0x3c174b)return{'items':_0x3c174b[_0x20576d(0x104)],'source':_0x20576d(0x105),'fetchedAt':_0x3c174b[_0x20576d(0xfb)],'cachePath':_0xf0943};throw _0x5e6f85;}}
1
+ (function(_0x3ba5e1,_0xc0d13d){const _0x234da8=a6_0x3c38,_0x46cab3=_0x3ba5e1();while(!![]){try{const _0x42a9f8=parseInt(_0x234da8(0xdc))/0x1*(parseInt(_0x234da8(0xd7))/0x2)+-parseInt(_0x234da8(0xdf))/0x3+parseInt(_0x234da8(0xe5))/0x4+parseInt(_0x234da8(0xdd))/0x5*(-parseInt(_0x234da8(0xe1))/0x6)+-parseInt(_0x234da8(0xd6))/0x7+parseInt(_0x234da8(0xe6))/0x8+parseInt(_0x234da8(0xe4))/0x9*(-parseInt(_0x234da8(0xe2))/0xa);if(_0x42a9f8===_0xc0d13d)break;else _0x46cab3['push'](_0x46cab3['shift']());}catch(_0x47a737){_0x46cab3['push'](_0x46cab3['shift']());}}}(a6_0x2c37,0x943f2));import{getMyApps}from'../../core/api-client.js';function a6_0x2c37(){const _0x18e6b5=['1027158gcUqKC','items','3164076RLTxht','10UWLYNa','cache','4953006PZNEWr','3357516lNBiIn','9702216vHePpC','2469187lsflvu','2ZwVwLd','fetchedAt','toISOString','APP_LIST_SOURCE','trim','327869xabBEe','5XeDHyZ','toLowerCase'];a6_0x2c37=function(){return _0x18e6b5;};return a6_0x2c37();}import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';import{productEnv}from'../../constant/product.js';function a6_0x3c38(_0x4ffbe2,_0xb94864){_0x4ffbe2=_0x4ffbe2-0xd6;const _0x2c3790=a6_0x2c37();let _0x3c38c7=_0x2c3790[_0x4ffbe2];return _0x3c38c7;}export function shouldUseMockRemoteApps(){const _0xa6992d=a6_0x3c38,_0xecf93f=(productEnv(_0xa6992d(0xda))||'')[_0xa6992d(0xdb)]()[_0xa6992d(0xde)]();return _0xecf93f==='mock';}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x1cd33a){const _0x427e49=a6_0x3c38,{env:_0x51a086,accessKey:_0x25104b,localOnly:localOnly=![],noCache:noCache=![]}=_0x1cd33a,_0xb6304b=readCachedAppList(_0x51a086,_0x25104b),_0x1be60d=_0x25104b?.[_0x427e49(0xdb)]()?getAppCacheFilePath(_0x51a086,_0x25104b):null;if(localOnly)return{'items':_0xb6304b?.['items']??[],'source':_0x427e49(0xe3),'fetchedAt':_0xb6304b?.['fetchedAt']??null,'cachePath':_0x1be60d};try{const _0x9bb0b3=await getRemoteAppItems(),_0x2dde2c=shouldUseMockRemoteApps()?'mock':'remote',_0x20f0c6=new Date()[_0x427e49(0xd9)](),_0x18c8e6=_0x25104b?.[_0x427e49(0xdb)]()?writeCachedAppList(_0x51a086,_0x25104b,{'env':_0x51a086,'fetchedAt':_0x20f0c6,'source':_0x2dde2c,'items':_0x9bb0b3}):null;return{'items':_0x9bb0b3,'source':_0x2dde2c,'fetchedAt':_0x20f0c6,'cachePath':_0x18c8e6};}catch(_0x123fe3){if(!noCache&&_0xb6304b)return{'items':_0xb6304b[_0x427e49(0xe0)],'source':_0x427e49(0xe3),'fetchedAt':_0xb6304b[_0x427e49(0xd8)],'cachePath':_0x1be60d};throw _0x123fe3;}}
@@ -1 +1 @@
1
- (function(_0x3bbb70,_0x4e2edd){const _0x177102=a7_0x3231,_0x3790e3=_0x3bbb70();while(!![]){try{const _0x205354=parseInt(_0x177102(0xaa))/0x1*(parseInt(_0x177102(0xa5))/0x2)+-parseInt(_0x177102(0xaf))/0x3+-parseInt(_0x177102(0xb7))/0x4+parseInt(_0x177102(0xae))/0x5*(-parseInt(_0x177102(0xb1))/0x6)+parseInt(_0x177102(0xb9))/0x7*(parseInt(_0x177102(0xad))/0x8)+-parseInt(_0x177102(0xb8))/0x9+parseInt(_0x177102(0xb4))/0xa*(parseInt(_0x177102(0xb3))/0xb);if(_0x205354===_0x4e2edd)break;else _0x3790e3['push'](_0x3790e3['shift']());}catch(_0xda281d){_0x3790e3['push'](_0x3790e3['shift']());}}}(a7_0x3384,0x7576e));import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x27e77a,_0x377454){const _0x5b114b=a7_0x3231;if(!_0x377454)return;const _0x2eba05=!!(_0x377454[_0x5b114b(0xb2)]??_0x377454['defaultApp']);for(const _0x310a4b of _0x27e77a){_0x310a4b[_0x5b114b(0xa3)]=![];}const _0x21bdc3=_0x377454[_0x5b114b(0xa4)]!=null?String(_0x377454[_0x5b114b(0xa4)])[_0x5b114b(0xb5)]():'';if(_0x2eba05){const _0x1d2ff4=_0x377454[_0x5b114b(0xb2)]??_0x377454[_0x5b114b(0xab)];if(_0x1d2ff4){const _0x13f2dc=_0x27e77a[_0x5b114b(0xa6)](_0x44bf67=>_0x44bf67[_0x5b114b(0xa7)]===!![]&&_0x44bf67[_0x5b114b(0xb6)]===_0x1d2ff4&&_0x44bf67[_0x5b114b(0xba)]===_0x5b114b(0xac)),_0x17fe0d=_0x13f2dc??_0x27e77a[_0x5b114b(0xa6)](_0x4525d8=>_0x4525d8[_0x5b114b(0xa7)]===!![]&&_0x4525d8[_0x5b114b(0xb6)]===_0x1d2ff4);if(_0x17fe0d){const _0x5c1435=String(_0x17fe0d['appcode']??'')[_0x5b114b(0xb5)]();if(!_0x21bdc3||_0x5c1435===_0x21bdc3){_0x17fe0d[_0x5b114b(0xa3)]=!![];return;}}}if(_0x21bdc3){const _0x25f15a=_0x27e77a[_0x5b114b(0xa6)](_0xf667da=>String(_0xf667da[_0x5b114b(0xa9)]??'')[_0x5b114b(0xb5)]()===_0x21bdc3);_0x25f15a&&(_0x25f15a[_0x5b114b(0xa3)]=!![]);}return;}if(!_0x21bdc3)return;for(const _0xdcef8d of _0x27e77a){String(_0xdcef8d[_0x5b114b(0xa9)]??'')[_0x5b114b(0xb5)]()===_0x21bdc3&&(_0xdcef8d[_0x5b114b(0xa3)]=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';function a7_0x3384(){const _0x583558=['global','178428mqWhIF','currentApp','10769pspZfe','19620lkIjlO','trim','name','3552396QMXnfx','7958079qErbRq','1400231TpgZrR','definedIn','isCurrent','appCode','1200894XslWBU','find','named','project','appcode','1XApcZS','defaultApp','local','16mPNrUh','80nVmjmU','576117IusgRh'];a7_0x3384=function(){return _0x583558;};return a7_0x3384();}function a7_0x3231(_0x32cc01,_0x4a08f6){_0x32cc01=_0x32cc01-0xa3;const _0x338440=a7_0x3384();let _0x3231fe=_0x338440[_0x32cc01];return _0x3231fe;}export function scopeLabel(_0x560c10){const _0x3fd9d7=a7_0x3231;return formatScopeLabel(_0x560c10['global']?_0x3fd9d7(0xb0):_0x3fd9d7(0xa8));}
1
+ (function(_0x2904e9,_0x4897e2){const _0x57602b=a7_0x1a41,_0x41c0c2=_0x2904e9();while(!![]){try{const _0x21535e=parseInt(_0x57602b(0x1bc))/0x1+-parseInt(_0x57602b(0x1c7))/0x2*(-parseInt(_0x57602b(0x1cf))/0x3)+-parseInt(_0x57602b(0x1b9))/0x4+-parseInt(_0x57602b(0x1ba))/0x5*(parseInt(_0x57602b(0x1c9))/0x6)+parseInt(_0x57602b(0x1c0))/0x7*(-parseInt(_0x57602b(0x1c6))/0x8)+parseInt(_0x57602b(0x1bb))/0x9*(parseInt(_0x57602b(0x1c1))/0xa)+-parseInt(_0x57602b(0x1ce))/0xb*(-parseInt(_0x57602b(0x1c3))/0xc);if(_0x21535e===_0x4897e2)break;else _0x41c0c2['push'](_0x41c0c2['shift']());}catch(_0x540f28){_0x41c0c2['push'](_0x41c0c2['shift']());}}}(a7_0x27fe,0x7ee4b));function a7_0x1a41(_0x592412,_0x2ad0dd){_0x592412=_0x592412-0x1b8;const _0x27fee7=a7_0x27fe();let _0x1a4149=_0x27fee7[_0x592412];return _0x1a4149;}function a7_0x27fe(){const _0x470f36=['find','12rgAJqR','trim','local','10648eKYRol','68ACnnGe','named','12kPyJgP','appCode','defaultApp','appcode','currentApp','4598561KmiUwH','83085uMmKkd','name','1201492YehKaU','1754600pGmdhr','7220385LQojXJ','60128vucAjP','global','project','isCurrent','3682PfwBsJ','10kChvce'];a7_0x27fe=function(){return _0x470f36;};return a7_0x27fe();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x3d4a3d,_0x286651){const _0x592874=a7_0x1a41;if(!_0x286651)return;const _0xf333e2=!!(_0x286651[_0x592874(0x1cd)]??_0x286651['defaultApp']);for(const _0x14db67 of _0x3d4a3d){_0x14db67[_0x592874(0x1bf)]=![];}const _0x49cf28=_0x286651['appCode']!=null?String(_0x286651[_0x592874(0x1ca)])['trim']():'';if(_0xf333e2){const _0x35aaad=_0x286651['currentApp']??_0x286651[_0x592874(0x1cb)];if(_0x35aaad){const _0xa7d75f=_0x3d4a3d[_0x592874(0x1c2)](_0x19f6fb=>_0x19f6fb[_0x592874(0x1c8)]===!![]&&_0x19f6fb[_0x592874(0x1b8)]===_0x35aaad&&_0x19f6fb['definedIn']===_0x592874(0x1c5)),_0x47ca95=_0xa7d75f??_0x3d4a3d[_0x592874(0x1c2)](_0x1af8c4=>_0x1af8c4[_0x592874(0x1c8)]===!![]&&_0x1af8c4[_0x592874(0x1b8)]===_0x35aaad);if(_0x47ca95){const _0x3b9c59=String(_0x47ca95[_0x592874(0x1cc)]??'')[_0x592874(0x1c4)]();if(!_0x49cf28||_0x3b9c59===_0x49cf28){_0x47ca95[_0x592874(0x1bf)]=!![];return;}}}if(_0x49cf28){const _0x1900de=_0x3d4a3d[_0x592874(0x1c2)](_0x5a070c=>String(_0x5a070c[_0x592874(0x1cc)]??'')[_0x592874(0x1c4)]()===_0x49cf28);_0x1900de&&(_0x1900de[_0x592874(0x1bf)]=!![]);}return;}if(!_0x49cf28)return;for(const _0x448292 of _0x3d4a3d){String(_0x448292['appcode']??'')[_0x592874(0x1c4)]()===_0x49cf28&&(_0x448292['isCurrent']=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x546f59){const _0x37d89d=a7_0x1a41;return formatScopeLabel(_0x546f59[_0x37d89d(0x1bd)]?_0x37d89d(0x1bd):_0x37d89d(0x1be));}
@@ -1 +1 @@
1
- function a8_0x5d4f(){const _0x32927a=['key','10eoGphf','40789JxbAPZ','6982HLZSZc','args','Unable\x20to\x20get\x20app-config\x20value:\x20key=','validation','443021NvDRnd','2326012BoJhIH','1239smAypU','apiError','read','6174235gCpIxH',',\x20appCode=','Get\x20one\x20runtime\x20app-config\x20value\x20by\x20key','1026OKpNFP','app-config','27432GTfRzS','appCode','5186929GAvvPM','804KnfCAG','App\x20config\x20key'];a8_0x5d4f=function(){return _0x32927a;};return a8_0x5d4f();}function a8_0x4dbc(_0x575f38,_0x284fa6){_0x575f38=_0x575f38-0x1f0;const _0x5d4fe2=a8_0x5d4f();let _0x4dbce0=_0x5d4fe2[_0x575f38];return _0x4dbce0;}const a8_0x2c3863=a8_0x4dbc;(function(_0x1aa6d3,_0x9303d5){const _0x5c468e=a8_0x4dbc,_0x5b6a76=_0x1aa6d3();while(!![]){try{const _0x1e8c0f=-parseInt(_0x5c468e(0x1f5))/0x1+parseInt(_0x5c468e(0x1f1))/0x2*(parseInt(_0x5c468e(0x1f7))/0x3)+-parseInt(_0x5c468e(0x1f6))/0x4+-parseInt(_0x5c468e(0x1fa))/0x5+-parseInt(_0x5c468e(0x202))/0x6*(-parseInt(_0x5c468e(0x1f0))/0x7)+parseInt(_0x5c468e(0x1ff))/0x8*(parseInt(_0x5c468e(0x1fd))/0x9)+parseInt(_0x5c468e(0x205))/0xa*(parseInt(_0x5c468e(0x201))/0xb);if(_0x1e8c0f===_0x9303d5)break;else _0x5b6a76['push'](_0x5b6a76['shift']());}catch(_0x2c420d){_0x5b6a76['push'](_0x5b6a76['shift']());}}}(a8_0x5d4f,0xc994b));import{getRuntimeAppConfigByKey}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const appConfigGet={'service':a8_0x2c3863(0x1fe),'command':'get','description':a8_0x2c3863(0x1fc),'risk':a8_0x2c3863(0x1f9),'args':[{'name':a8_0x2c3863(0x204),'description':a8_0x2c3863(0x203),'required':!![]}],'flags':[],async 'execute'(_0x5d86dc){const _0x592389=a8_0x2c3863,_0x522f66=_0x5d86dc[_0x592389(0x1f2)][0x0]?.['trim']();if(!_0x522f66)throw CliErrors[_0x592389(0x1f4)]('Missing\x20app-config\x20key.','Usage:\x20'+CLI_BIN_NAME+'\x20app-config\x20get\x20<key>');try{const _0x91f07c=await getRuntimeAppConfigByKey(_0x5d86dc['appCode'],_0x522f66);return{'ok':!![],'data':_0x91f07c};}catch{throw CliErrors[_0x592389(0x1f8)](_0x592389(0x1f3)+_0x522f66+_0x592389(0x1fb)+_0x5d86dc[_0x592389(0x200)],'Check\x20that\x20the\x20key\x20exists,\x20the\x20current\x20AccessKey\x20has\x20permission,\x20and\x20the\x20runtime\x20app-config\x20endpoint\x20is\x20available.');}}};
1
+ const a8_0x2f4ebb=a8_0x1f5f;function a8_0x4005(){const _0x611882=['22wbfGEv','trim','1253LeAdWp','11037056ByWybR','\x20app-config\x20get\x20<key>','App\x20config\x20key','1235297ZrDnLw','app-config','25082628CMHPOr','312549EflIpA','37160QwqAhZ',',\x20appCode=','key','7542LMyXbl','Get\x20one\x20runtime\x20app-config\x20value\x20by\x20key','Check\x20that\x20the\x20key\x20exists,\x20the\x20current\x20AccessKey\x20has\x20permission,\x20and\x20the\x20runtime\x20app-config\x20endpoint\x20is\x20available.','36300VwKmEL','9970Ynbomk','get','read','Unable\x20to\x20get\x20app-config\x20value:\x20key=','Usage:\x20','args','appCode','425cGOrnb','Missing\x20app-config\x20key.','apiError','6VhNsJG'];a8_0x4005=function(){return _0x611882;};return a8_0x4005();}(function(_0xc99851,_0x321c81){const _0x3d83fa=a8_0x1f5f,_0x188437=_0xc99851();while(!![]){try{const _0x3f1536=parseInt(_0x3d83fa(0x1d7))/0x1+parseInt(_0x3d83fa(0x1d0))/0x2*(-parseInt(_0x3d83fa(0x1da))/0x3)+-parseInt(_0x3d83fa(0x1db))/0x4*(-parseInt(_0x3d83fa(0x1e9))/0x5)+parseInt(_0x3d83fa(0x1e1))/0x6*(parseInt(_0x3d83fa(0x1d3))/0x7)+parseInt(_0x3d83fa(0x1d4))/0x8+-parseInt(_0x3d83fa(0x1de))/0x9*(-parseInt(_0x3d83fa(0x1e2))/0xa)+parseInt(_0x3d83fa(0x1d1))/0xb*(-parseInt(_0x3d83fa(0x1d9))/0xc);if(_0x3f1536===_0x321c81)break;else _0x188437['push'](_0x188437['shift']());}catch(_0x10d264){_0x188437['push'](_0x188437['shift']());}}}(a8_0x4005,0xcaa4c));import{getRuntimeAppConfigByKey}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a8_0x1f5f(_0x44c9e7,_0x1da4c5){_0x44c9e7=_0x44c9e7-0x1ce;const _0x400534=a8_0x4005();let _0x1f5f44=_0x400534[_0x44c9e7];return _0x1f5f44;}import{CLI_BIN_NAME}from'../../constant/cli.js';export const appConfigGet={'service':a8_0x2f4ebb(0x1d8),'command':a8_0x2f4ebb(0x1e3),'description':a8_0x2f4ebb(0x1df),'risk':a8_0x2f4ebb(0x1e4),'args':[{'name':a8_0x2f4ebb(0x1dd),'description':a8_0x2f4ebb(0x1d6),'required':!![]}],'flags':[],async 'execute'(_0x13c55b){const _0x5a48e9=a8_0x2f4ebb,_0x542690=_0x13c55b[_0x5a48e9(0x1e7)][0x0]?.[_0x5a48e9(0x1d2)]();if(!_0x542690)throw CliErrors['validation'](_0x5a48e9(0x1ce),_0x5a48e9(0x1e6)+CLI_BIN_NAME+_0x5a48e9(0x1d5));try{const _0x45d742=await getRuntimeAppConfigByKey(_0x13c55b[_0x5a48e9(0x1e8)],_0x542690);return{'ok':!![],'data':_0x45d742};}catch{throw CliErrors[_0x5a48e9(0x1cf)](_0x5a48e9(0x1e5)+_0x542690+_0x5a48e9(0x1dc)+_0x13c55b[_0x5a48e9(0x1e8)],_0x5a48e9(0x1e0));}}};
@@ -1 +1 @@
1
- (function(_0x226fd6,_0x18ac0f){const _0x222981=a9_0x2242,_0x3223c2=_0x226fd6();while(!![]){try{const _0x29c921=-parseInt(_0x222981(0x152))/0x1*(-parseInt(_0x222981(0x154))/0x2)+parseInt(_0x222981(0x14c))/0x3*(-parseInt(_0x222981(0x14b))/0x4)+-parseInt(_0x222981(0x150))/0x5+-parseInt(_0x222981(0x14f))/0x6*(parseInt(_0x222981(0x14e))/0x7)+-parseInt(_0x222981(0x151))/0x8+parseInt(_0x222981(0x153))/0x9*(-parseInt(_0x222981(0x14d))/0xa)+parseInt(_0x222981(0x14a))/0xb;if(_0x29c921===_0x18ac0f)break;else _0x3223c2['push'](_0x3223c2['shift']());}catch(_0x185ff3){_0x3223c2['push'](_0x3223c2['shift']());}}}(a9_0x9eb2,0x53a6c));import{appConfigGet}from'../../commands/app-config/get.js';function a9_0x2242(_0x2e091c,_0x152337){_0x2e091c=_0x2e091c-0x14a;const _0x9eb27b=a9_0x9eb2();let _0x2242c0=_0x9eb27b[_0x2e091c];return _0x2242c0;}function a9_0x9eb2(){const _0x2fd2b8=['17469815cbfffv','88WPYfPy','40965YeNkOH','10taonGB','637wkafpa','4938iIuSvj','2472215VjPBqP','3562752LpbYIc','8152zjNmjf','1648359yBVPec','62daCBEr'];a9_0x9eb2=function(){return _0x2fd2b8;};return a9_0x9eb2();}export const appConfigDefinitions=[appConfigGet];
1
+ function a9_0x450e(){const _0x1aa5a7=['163430NFurzs','2162237LRciga','923028QRkILQ','320LJLkBq','21560209XKHWnS','813689wZnlTg','8hDZdOy','9tTUyVq','207iSsjLe','40434NwDzlA','960156GnQbHj'];a9_0x450e=function(){return _0x1aa5a7;};return a9_0x450e();}(function(_0x46f875,_0x4a5eea){const _0x29fe14=a9_0x1a53,_0x438b41=_0x46f875();while(!![]){try{const _0x185eaa=-parseInt(_0x29fe14(0x98))/0x1+parseInt(_0x29fe14(0x9d))/0x2+parseInt(_0x29fe14(0x9a))/0x3*(-parseInt(_0x29fe14(0x95))/0x4)+parseInt(_0x29fe14(0x96))/0x5*(-parseInt(_0x29fe14(0x9c))/0x6)+parseInt(_0x29fe14(0x94))/0x7*(parseInt(_0x29fe14(0x99))/0x8)+-parseInt(_0x29fe14(0x9b))/0x9*(parseInt(_0x29fe14(0x9e))/0xa)+parseInt(_0x29fe14(0x97))/0xb;if(_0x185eaa===_0x4a5eea)break;else _0x438b41['push'](_0x438b41['shift']());}catch(_0x4f8a56){_0x438b41['push'](_0x438b41['shift']());}}}(a9_0x450e,0x6a683));import{appConfigGet}from'../../commands/app-config/get.js';function a9_0x1a53(_0x4120c5,_0x5006c6){_0x4120c5=_0x4120c5-0x94;const _0x450e60=a9_0x450e();let _0x1a539d=_0x450e60[_0x4120c5];return _0x1a539d;}export const appConfigDefinitions=[appConfigGet];
@@ -1 +1 @@
1
- const a10_0x513db9=a10_0x1681;(function(_0x37fa8d,_0x5e8997){const _0x1f1d05=a10_0x1681,_0x54c1c8=_0x37fa8d();while(!![]){try{const _0x4afc78=parseInt(_0x1f1d05(0x145))/0x1*(parseInt(_0x1f1d05(0x149))/0x2)+-parseInt(_0x1f1d05(0x13f))/0x3+parseInt(_0x1f1d05(0x15e))/0x4+parseInt(_0x1f1d05(0x15a))/0x5*(parseInt(_0x1f1d05(0x144))/0x6)+-parseInt(_0x1f1d05(0x152))/0x7+-parseInt(_0x1f1d05(0x16c))/0x8+parseInt(_0x1f1d05(0x168))/0x9;if(_0x4afc78===_0x5e8997)break;else _0x54c1c8['push'](_0x54c1c8['shift']());}catch(_0x50e83a){_0x54c1c8['push'](_0x54c1c8['shift']());}}}(a10_0x2798,0x64c9e));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='react_module',ARTIFACT_SOURCE_AGENT=a10_0x513db9(0x17f),ALLOWED_REACT_MODULE_IMPORTS=[a10_0x513db9(0x14a),a10_0x513db9(0x153),'lodash',a10_0x513db9(0x182),'antd',a10_0x513db9(0x174)];function a10_0x1681(_0x1414d3,_0x1a08d4){_0x1414d3=_0x1414d3-0x130;const _0x279858=a10_0x2798();let _0x16816f=_0x279858[_0x1414d3];return _0x16816f;}export const ALLOWED_REACT_MODULE_IMPORTS_TEXT=ALLOWED_REACT_MODULE_IMPORTS[a10_0x513db9(0x151)](',\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':a10_0x513db9(0x16d),'type':'string','required':!![],'description':'Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file'},ARTIFACT_NAME_FLAG={'name':'name','type':a10_0x513db9(0x135),'description':a10_0x513db9(0x130)},METADATA_FLAG={'name':'metadata','type':a10_0x513db9(0x135),'description':a10_0x513db9(0x134)};function isPlainObject(_0xa395ae){const _0x2f44b7=a10_0x513db9;return typeof _0xa395ae===_0x2f44b7(0x167)&&_0xa395ae!==null&&!Array[_0x2f44b7(0x17e)](_0xa395ae);}function readSourceFile(_0x4bf008){const _0x4d084d=a10_0x513db9;if(!_0x4bf008)throw CliErrors[_0x4d084d(0x150)]('File\x20path\x20is\x20required.');if(!existsSync(_0x4bf008))throw CliErrors['validation'](_0x4d084d(0x165)+_0x4bf008);if(!statSync(_0x4bf008)[_0x4d084d(0x179)]())throw CliErrors['validation'](_0x4d084d(0x156)+_0x4bf008);const _0x585898=readFileSync(_0x4bf008,_0x4d084d(0x16a));return validateReactModuleSource(_0x585898),_0x585898;}function parseMetadata(_0x476b03){const _0x38c03b=a10_0x513db9;if(!_0x476b03)return undefined;let _0x2d3a00;try{_0x2d3a00=JSON[_0x38c03b(0x164)](_0x476b03);}catch{throw CliErrors[_0x38c03b(0x150)](_0x38c03b(0x16f)+_0x476b03);}if(!isPlainObject(_0x2d3a00))throw CliErrors['validation'](_0x38c03b(0x15d));const _0x1ed83f={..._0x2d3a00};return delete _0x1ed83f[_0x38c03b(0x14c)],_0x1ed83f;}function a10_0x2798(){const _0x381df9=['favorite','Artifact\x20ID','validation','join','3527601Kuvpir','react-dom','test','/client/artifact/create','File\x20is\x20not\x20a\x20regular\x20file:\x20','map','Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','trim','169825MkxPbE','List\x20current-app\x20react_module\x20Artifacts','name','--metadata\x20must\x20be\x20a\x20JSON\x20object.','426212STSPPG','startsWith','update','data','content','number','parse','File\x20not\x20found:\x20','artifact','object','6934734DrHSqT','bool','utf8','react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.','1459704DGtZuU','file','Created\x20Artifact\x20','Invalid\x20JSON\x20for\x20--metadata:\x20','Optional\x20favorite-state\x20filter','some','list','includes','@ant-design/icons','verbose','artifactType','split','Optional\x20source\x20filter,\x20for\x20example\x20AGENT','isFile','/update','read','appCode','description','isArray','AGENT','write','deleted','dayjs','num','add','Artifact\x20display\x20name','str','.\x20Unsupported:\x20','create','Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped','string','boolean','createTime','source','body','react_module\x20imports\x20are\x20limited\x20to:\x20','filter','build','detail','Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','1015770WllMXr','flag','Updated\x20Artifact\x20','Preview:\x20create\x20react_module\x20Artifact','lastIndex','78tYYxyY','39734oMLTtC','metadata','POST','Artifact\x20source\x20file\x20is\x20blank.','6uUcMUG','react','updateTime','compiledContent','length'];a10_0x2798=function(){return _0x381df9;};return a10_0x2798();}function getPackageName(_0x14500d){const _0x105a36=a10_0x513db9;if(_0x14500d[_0x105a36(0x15f)]('@')){const [_0x1aadf0,_0x2741a8]=_0x14500d[_0x105a36(0x177)]('/');return _0x1aadf0&&_0x2741a8?_0x1aadf0+'/'+_0x2741a8:_0x14500d;}return _0x14500d['split']('/')[0x0]||_0x14500d;}function validateAllowedImports(_0x57ccb1){const _0x47de46=a10_0x513db9,_0x421250=new Set();for(const _0x1d044a of IMPORT_SOURCE_PATTERNS){_0x1d044a[_0x47de46(0x143)]=0x0;let _0x2cdff4;while((_0x2cdff4=_0x1d044a['exec'](_0x57ccb1))!==null){const _0x29f908=_0x2cdff4[0x1]?.[_0x47de46(0x159)]();_0x29f908&&_0x421250[_0x47de46(0x184)](_0x29f908);}}const _0x423c59=[..._0x421250]['map'](getPackageName)[_0x47de46(0x13b)](_0x12a4ea=>!ALLOWED_REACT_MODULE_IMPORTS[_0x47de46(0x173)](_0x12a4ea));if(_0x423c59[_0x47de46(0x14d)]>0x0)throw CliErrors[_0x47de46(0x150)](_0x47de46(0x13a)+ALLOWED_REACT_MODULE_IMPORTS_TEXT+_0x47de46(0x132)+[...new Set(_0x423c59)][_0x47de46(0x151)](',\x20'));}export function validateReactModuleSource(_0x528f79){const _0x35a59b=a10_0x513db9;if(!_0x528f79['trim']())throw CliErrors['validation'](_0x35a59b(0x148));if(PAGE_LEVEL_PATTERNS[_0x35a59b(0x171)](_0x17f092=>_0x17f092[_0x35a59b(0x154)](_0x528f79)))throw CliErrors[_0x35a59b(0x150)](_0x35a59b(0x16b));validateAllowedImports(_0x528f79);}function buildArtifactInput(_0x595010){const _0x3f682f=a10_0x513db9,_0x7511c7=readSourceFile(_0x595010[_0x3f682f(0x131)]('file')),_0x54c782=_0x595010[_0x3f682f(0x131)](_0x3f682f(0x15c))[_0x3f682f(0x159)](),_0x3abb5f=parseMetadata(_0x595010[_0x3f682f(0x131)](_0x3f682f(0x146)));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x54c782?{'name':_0x54c782}:{},'content':_0x7511c7,..._0x3abb5f?{'metadata':_0x3abb5f}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0x3a9942){const _0x394581=a10_0x513db9;return{'id':_0x3a9942['id'],'name':_0x3a9942[_0x394581(0x15c)],'artifactType':_0x3a9942[_0x394581(0x176)],'source':_0x3a9942['source'],'favorite':_0x3a9942[_0x394581(0x14e)],'deleted':_0x3a9942[_0x394581(0x181)],'createTime':_0x3a9942[_0x394581(0x137)],'updateTime':_0x3a9942[_0x394581(0x14b)]};}function detailArtifact(_0x4408ed){const _0x5d7d9a=a10_0x513db9;return{'id':_0x4408ed['id'],'appCode':_0x4408ed['appCode'],'name':_0x4408ed[_0x5d7d9a(0x15c)],'artifactType':_0x4408ed['artifactType'],'source':_0x4408ed['source'],'favorite':_0x4408ed[_0x5d7d9a(0x14e)],'deleted':_0x4408ed[_0x5d7d9a(0x181)],'content':_0x4408ed[_0x5d7d9a(0x162)]??'','compiledContent':_0x4408ed['compiledContent'],'metadata':_0x4408ed[_0x5d7d9a(0x146)]??{},'createTime':_0x4408ed['createTime'],'updateTime':_0x4408ed[_0x5d7d9a(0x14b)]};}function readFavoriteFlag(_0x356e18){const _0x4f1a1d=a10_0x513db9,_0x5babc1=_0x356e18[_0x4f1a1d(0x140)](_0x4f1a1d(0x14e));return _0x5babc1===undefined||_0x5babc1===null||_0x5babc1===''?undefined:_0x356e18[_0x4f1a1d(0x169)](_0x4f1a1d(0x14e));}const artifactList={'service':a10_0x513db9(0x166),'command':a10_0x513db9(0x172),'description':a10_0x513db9(0x15b),'risk':a10_0x513db9(0x17b),'flags':[{'name':a10_0x513db9(0x138),'type':'string','description':a10_0x513db9(0x178)},{'name':'favorite','type':a10_0x513db9(0x136),'description':a10_0x513db9(0x170)},VERBOSE_FLAG],async 'execute'(_0x4c2ecf){const _0x3e2233=a10_0x513db9,_0x32716e=await listRuntimeArtifacts(_0x4c2ecf[_0x3e2233(0x17c)],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x4c2ecf[_0x3e2233(0x131)](_0x3e2233(0x138))?{'source':_0x4c2ecf[_0x3e2233(0x131)](_0x3e2233(0x138))}:{},...readFavoriteFlag(_0x4c2ecf)!==undefined?{'favorite':readFavoriteFlag(_0x4c2ecf)}:{}});return{'ok':!![],'data':{'total':_0x32716e[_0x3e2233(0x14d)],'items':_0x4c2ecf[_0x3e2233(0x169)](_0x3e2233(0x175))?_0x32716e:_0x32716e[_0x3e2233(0x157)](summarizeArtifact)}};}},artifactDetail={'service':a10_0x513db9(0x166),'command':a10_0x513db9(0x13d),'description':'Show\x20one\x20Artifact\x20by\x20id','risk':a10_0x513db9(0x17b),'flags':[{...ID_FLAG,'description':a10_0x513db9(0x14f)}],async 'execute'(_0x33cb72){const _0xd313f6=a10_0x513db9,_0xf0df6c=await getRuntimeArtifact(_0x33cb72['num']('id'),_0x33cb72[_0xd313f6(0x17c)]);return{'ok':!![],'data':detailArtifact(_0xf0df6c)};}},artifactCreate={'service':'artifact','command':a10_0x513db9(0x133),'description':a10_0x513db9(0x13e),'risk':a10_0x513db9(0x180),'flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x5e4bdd){const _0x1298dd=a10_0x513db9,_0x518827=buildArtifactInput(_0x5e4bdd),_0x34cf13=await createRuntimeArtifact(_0x5e4bdd['appCode'],_0x518827);return{'ok':!![],'data':detailArtifact(_0x34cf13),'message':_0x1298dd(0x16e)+_0x34cf13['id']+(_0x34cf13[_0x1298dd(0x15c)]?'\x20('+_0x34cf13[_0x1298dd(0x15c)]+')':'')};},async 'dryRun'(_0x3eeecf){const _0x130485=a10_0x513db9,_0x505648=buildArtifactInput(_0x3eeecf);return dryRun('POST',_0x130485(0x155))[_0x130485(0x139)]({'appCode':_0x3eeecf['appCode'],..._0x505648})[_0x130485(0x17d)](_0x130485(0x142))[_0x130485(0x13c)]();},'writeEventSubject'(_0x37789b){const _0x456096=a10_0x513db9,_0x112c24=_0x37789b[_0x456096(0x161)]?.['id'];if(typeof _0x112c24!==_0x456096(0x135)&&typeof _0x112c24!=='number')return undefined;return{'kind':_0x456096(0x166),'id':String(_0x112c24),'action':_0x456096(0x133)};}},artifactUpdate={'service':a10_0x513db9(0x166),'command':a10_0x513db9(0x160),'description':a10_0x513db9(0x158),'risk':a10_0x513db9(0x180),'flags':[{...ID_FLAG,'description':a10_0x513db9(0x14f)},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x41fb6d){const _0x429243=a10_0x513db9,_0xdd3fd1=_0x41fb6d[_0x429243(0x183)]('id'),_0x384295=buildArtifactInput(_0x41fb6d),_0xc1b676=await updateRuntimeArtifact(_0xdd3fd1,_0x41fb6d[_0x429243(0x17c)],_0x384295);return{'ok':!![],'data':detailArtifact(_0xc1b676),'message':_0x429243(0x141)+_0xc1b676['id']+(_0xc1b676[_0x429243(0x15c)]?'\x20('+_0xc1b676[_0x429243(0x15c)]+')':'')};},async 'dryRun'(_0x29a9ff){const _0x12e76b=a10_0x513db9,_0x1ac7b1=_0x29a9ff[_0x12e76b(0x183)]('id'),_0x314b75=buildArtifactInput(_0x29a9ff);return dryRun(_0x12e76b(0x147),'/client/artifact/'+_0x1ac7b1+_0x12e76b(0x17a))[_0x12e76b(0x139)]({'appCode':_0x29a9ff[_0x12e76b(0x17c)],..._0x314b75})['description']('Preview:\x20update\x20react_module\x20Artifact\x20'+_0x1ac7b1)[_0x12e76b(0x13c)]();},'writeEventSubject'(_0x5ec99e){const _0x21d766=a10_0x513db9,_0x399b8f=_0x5ec99e[_0x21d766(0x161)]?.['id'];if(typeof _0x399b8f!==_0x21d766(0x135)&&typeof _0x399b8f!==_0x21d766(0x163))return undefined;return{'kind':'artifact','id':String(_0x399b8f),'action':_0x21d766(0x160)};}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
1
+ const a10_0x56e9fb=a10_0x54e6;(function(_0x23a1ce,_0x829878){const _0x42451e=a10_0x54e6,_0x59e4d4=_0x23a1ce();while(!![]){try{const _0x378354=-parseInt(_0x42451e(0x1c8))/0x1+-parseInt(_0x42451e(0x1c3))/0x2+parseInt(_0x42451e(0x1a9))/0x3*(-parseInt(_0x42451e(0x1b7))/0x4)+parseInt(_0x42451e(0x1c7))/0x5*(-parseInt(_0x42451e(0x1d8))/0x6)+-parseInt(_0x42451e(0x1e0))/0x7*(parseInt(_0x42451e(0x1a4))/0x8)+parseInt(_0x42451e(0x1b1))/0x9*(parseInt(_0x42451e(0x1d2))/0xa)+parseInt(_0x42451e(0x1ea))/0xb;if(_0x378354===_0x829878)break;else _0x59e4d4['push'](_0x59e4d4['shift']());}catch(_0x2a7cb8){_0x59e4d4['push'](_0x59e4d4['shift']());}}}(a10_0x4a59,0xa498b));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=a10_0x56e9fb(0x1bb),ARTIFACT_SOURCE_AGENT=a10_0x56e9fb(0x1e8),ALLOWED_REACT_MODULE_IMPORTS=['react',a10_0x56e9fb(0x1aa),a10_0x56e9fb(0x1c5),a10_0x56e9fb(0x1c6),a10_0x56e9fb(0x1d6),'@ant-design/icons'];function a10_0x54e6(_0x230ae8,_0x479be0){_0x230ae8=_0x230ae8-0x19f;const _0x4a5910=a10_0x4a59();let _0x54e647=_0x4a5910[_0x230ae8];return _0x54e647;}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':a10_0x56e9fb(0x1bc),'type':a10_0x56e9fb(0x1de),'required':!![],'description':a10_0x56e9fb(0x1cb)},ARTIFACT_NAME_FLAG={'name':a10_0x56e9fb(0x1be),'type':a10_0x56e9fb(0x1de),'description':a10_0x56e9fb(0x1b0)},METADATA_FLAG={'name':a10_0x56e9fb(0x1ec),'type':a10_0x56e9fb(0x1de),'description':a10_0x56e9fb(0x1e6)};function isPlainObject(_0x145f4a){const _0x2b3f92=a10_0x56e9fb;return typeof _0x145f4a==='object'&&_0x145f4a!==null&&!Array[_0x2b3f92(0x1cc)](_0x145f4a);}function readSourceFile(_0x59ec12){const _0x250a1a=a10_0x56e9fb;if(!_0x59ec12)throw CliErrors[_0x250a1a(0x1b2)](_0x250a1a(0x1a7));if(!existsSync(_0x59ec12))throw CliErrors['validation'](_0x250a1a(0x1c0)+_0x59ec12);if(!statSync(_0x59ec12)['isFile']())throw CliErrors[_0x250a1a(0x1b2)](_0x250a1a(0x1d7)+_0x59ec12);const _0x5a08bf=readFileSync(_0x59ec12,_0x250a1a(0x1ae));return validateReactModuleSource(_0x5a08bf),_0x5a08bf;}function a10_0x4a59(){const _0x5c957e=['3342JhmwkG','str','Show\x20one\x20Artifact\x20by\x20id','/update','exec','detail','string','compiledContent','1489782XQLPiI','data','num','deleted','artifactType','list','Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped','bool','AGENT','lastIndex','29949865YgGHib','split','metadata','List\x20current-app\x20react_module\x20Artifacts','includes','POST','--metadata\x20must\x20be\x20a\x20JSON\x20object.','favorite','Artifact\x20source\x20file\x20is\x20blank.','flag','artifact','react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.','description','boolean','32OflRIw','trim','/client/artifact/','File\x20path\x20is\x20required.','Updated\x20Artifact\x20','3741924mwHlFy','react-dom','write','number','updateTime','utf8','join','Artifact\x20display\x20name','7065uHnoph','validation','Optional\x20favorite-state\x20filter','body','Created\x20Artifact\x20','create','4CgRVZI','filter','add','Optional\x20source\x20filter,\x20for\x20example\x20AGENT','react_module','file','build','name','appCode','File\x20not\x20found:\x20','createTime','read','606416ilkOjT','Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','lodash','dayjs','4955mEAYwg','431576FBSHlh','Artifact\x20ID','parse','Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file','isArray','source','length','update','react_module\x20imports\x20are\x20limited\x20to:\x20','map','17030mOeOBs','Preview:\x20update\x20react_module\x20Artifact\x20','/client/artifact/create','test','antd','File\x20is\x20not\x20a\x20regular\x20file:\x20'];a10_0x4a59=function(){return _0x5c957e;};return a10_0x4a59();}function parseMetadata(_0x54ae23){const _0x17e098=a10_0x56e9fb;if(!_0x54ae23)return undefined;let _0xb63b0f;try{_0xb63b0f=JSON[_0x17e098(0x1ca)](_0x54ae23);}catch{throw CliErrors[_0x17e098(0x1b2)]('Invalid\x20JSON\x20for\x20--metadata:\x20'+_0x54ae23);}if(!isPlainObject(_0xb63b0f))throw CliErrors[_0x17e098(0x1b2)](_0x17e098(0x1f0));const _0x5f5bef={..._0xb63b0f};return delete _0x5f5bef[_0x17e098(0x1df)],_0x5f5bef;}function getPackageName(_0x2bfb4b){const _0x239368=a10_0x56e9fb;if(_0x2bfb4b['startsWith']('@')){const [_0x2f6ddd,_0x338095]=_0x2bfb4b[_0x239368(0x1eb)]('/');return _0x2f6ddd&&_0x338095?_0x2f6ddd+'/'+_0x338095:_0x2bfb4b;}return _0x2bfb4b['split']('/')[0x0]||_0x2bfb4b;}function validateAllowedImports(_0x45e075){const _0x995810=a10_0x56e9fb,_0x5cbb53=new Set();for(const _0x1e903e of IMPORT_SOURCE_PATTERNS){_0x1e903e[_0x995810(0x1e9)]=0x0;let _0x104f41;while((_0x104f41=_0x1e903e[_0x995810(0x1dc)](_0x45e075))!==null){const _0x54c4ca=_0x104f41[0x1]?.[_0x995810(0x1a5)]();_0x54c4ca&&_0x5cbb53[_0x995810(0x1b9)](_0x54c4ca);}}const _0x4e97f7=[..._0x5cbb53][_0x995810(0x1d1)](getPackageName)[_0x995810(0x1b8)](_0x4fdebd=>!ALLOWED_REACT_MODULE_IMPORTS[_0x995810(0x1ee)](_0x4fdebd));if(_0x4e97f7[_0x995810(0x1ce)]>0x0)throw CliErrors[_0x995810(0x1b2)](_0x995810(0x1d0)+ALLOWED_REACT_MODULE_IMPORTS_TEXT+'.\x20Unsupported:\x20'+[...new Set(_0x4e97f7)][_0x995810(0x1af)](',\x20'));}export function validateReactModuleSource(_0x2def19){const _0x31d2cf=a10_0x56e9fb;if(!_0x2def19[_0x31d2cf(0x1a5)]())throw CliErrors['validation'](_0x31d2cf(0x1f2));if(PAGE_LEVEL_PATTERNS['some'](_0xaa1058=>_0xaa1058[_0x31d2cf(0x1d5)](_0x2def19)))throw CliErrors[_0x31d2cf(0x1b2)](_0x31d2cf(0x1a1));validateAllowedImports(_0x2def19);}function buildArtifactInput(_0x2f5608){const _0x30acc7=a10_0x56e9fb,_0x2058a7=readSourceFile(_0x2f5608['str'](_0x30acc7(0x1bc))),_0x3f29cf=_0x2f5608[_0x30acc7(0x1d9)](_0x30acc7(0x1be))[_0x30acc7(0x1a5)](),_0x1d5a6b=parseMetadata(_0x2f5608[_0x30acc7(0x1d9)](_0x30acc7(0x1ec)));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x3f29cf?{'name':_0x3f29cf}:{},'content':_0x2058a7,..._0x1d5a6b?{'metadata':_0x1d5a6b}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0x53ae62){const _0x4745cb=a10_0x56e9fb;return{'id':_0x53ae62['id'],'name':_0x53ae62[_0x4745cb(0x1be)],'artifactType':_0x53ae62[_0x4745cb(0x1e4)],'source':_0x53ae62[_0x4745cb(0x1cd)],'favorite':_0x53ae62[_0x4745cb(0x1f1)],'deleted':_0x53ae62[_0x4745cb(0x1e3)],'createTime':_0x53ae62['createTime'],'updateTime':_0x53ae62[_0x4745cb(0x1ad)]};}function detailArtifact(_0x2ddc42){const _0x15c2ad=a10_0x56e9fb;return{'id':_0x2ddc42['id'],'appCode':_0x2ddc42[_0x15c2ad(0x1bf)],'name':_0x2ddc42[_0x15c2ad(0x1be)],'artifactType':_0x2ddc42[_0x15c2ad(0x1e4)],'source':_0x2ddc42[_0x15c2ad(0x1cd)],'favorite':_0x2ddc42[_0x15c2ad(0x1f1)],'deleted':_0x2ddc42[_0x15c2ad(0x1e3)],'content':_0x2ddc42['content']??'','compiledContent':_0x2ddc42[_0x15c2ad(0x1df)],'metadata':_0x2ddc42[_0x15c2ad(0x1ec)]??{},'createTime':_0x2ddc42[_0x15c2ad(0x1c1)],'updateTime':_0x2ddc42['updateTime']};}function readFavoriteFlag(_0x29bb01){const _0x518191=a10_0x56e9fb,_0x3b88c0=_0x29bb01[_0x518191(0x19f)](_0x518191(0x1f1));return _0x3b88c0===undefined||_0x3b88c0===null||_0x3b88c0===''?undefined:_0x29bb01[_0x518191(0x1e7)](_0x518191(0x1f1));}const artifactList={'service':'artifact','command':a10_0x56e9fb(0x1e5),'description':a10_0x56e9fb(0x1ed),'risk':a10_0x56e9fb(0x1c2),'flags':[{'name':a10_0x56e9fb(0x1cd),'type':a10_0x56e9fb(0x1de),'description':a10_0x56e9fb(0x1ba)},{'name':a10_0x56e9fb(0x1f1),'type':a10_0x56e9fb(0x1a3),'description':a10_0x56e9fb(0x1b3)},VERBOSE_FLAG],async 'execute'(_0x3e4ff8){const _0x2b6c8f=a10_0x56e9fb,_0x5cc7b2=await listRuntimeArtifacts(_0x3e4ff8[_0x2b6c8f(0x1bf)],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x3e4ff8[_0x2b6c8f(0x1d9)](_0x2b6c8f(0x1cd))?{'source':_0x3e4ff8[_0x2b6c8f(0x1d9)]('source')}:{},...readFavoriteFlag(_0x3e4ff8)!==undefined?{'favorite':readFavoriteFlag(_0x3e4ff8)}:{}});return{'ok':!![],'data':{'total':_0x5cc7b2[_0x2b6c8f(0x1ce)],'items':_0x3e4ff8[_0x2b6c8f(0x1e7)]('verbose')?_0x5cc7b2:_0x5cc7b2[_0x2b6c8f(0x1d1)](summarizeArtifact)}};}},artifactDetail={'service':'artifact','command':a10_0x56e9fb(0x1dd),'description':a10_0x56e9fb(0x1da),'risk':a10_0x56e9fb(0x1c2),'flags':[{...ID_FLAG,'description':a10_0x56e9fb(0x1c9)}],async 'execute'(_0x20f7c6){const _0x4a243d=a10_0x56e9fb,_0x52e313=await getRuntimeArtifact(_0x20f7c6[_0x4a243d(0x1e2)]('id'),_0x20f7c6[_0x4a243d(0x1bf)]);return{'ok':!![],'data':detailArtifact(_0x52e313)};}},artifactCreate={'service':a10_0x56e9fb(0x1a0),'command':a10_0x56e9fb(0x1b6),'description':a10_0x56e9fb(0x1c4),'risk':a10_0x56e9fb(0x1ab),'flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x253fe6){const _0x4444f4=a10_0x56e9fb,_0x511741=buildArtifactInput(_0x253fe6),_0x13b68b=await createRuntimeArtifact(_0x253fe6[_0x4444f4(0x1bf)],_0x511741);return{'ok':!![],'data':detailArtifact(_0x13b68b),'message':_0x4444f4(0x1b5)+_0x13b68b['id']+(_0x13b68b[_0x4444f4(0x1be)]?'\x20('+_0x13b68b['name']+')':'')};},async 'dryRun'(_0x33bdbb){const _0x19d1fc=a10_0x56e9fb,_0xade8a1=buildArtifactInput(_0x33bdbb);return dryRun('POST',_0x19d1fc(0x1d4))[_0x19d1fc(0x1b4)]({'appCode':_0x33bdbb[_0x19d1fc(0x1bf)],..._0xade8a1})[_0x19d1fc(0x1a2)]('Preview:\x20create\x20react_module\x20Artifact')['build']();},'writeEventSubject'(_0x3e90cc){const _0x46c7be=a10_0x56e9fb,_0x207194=_0x3e90cc[_0x46c7be(0x1e1)]?.['id'];if(typeof _0x207194!=='string'&&typeof _0x207194!==_0x46c7be(0x1ac))return undefined;return{'kind':_0x46c7be(0x1a0),'id':String(_0x207194),'action':_0x46c7be(0x1b6)};}},artifactUpdate={'service':a10_0x56e9fb(0x1a0),'command':a10_0x56e9fb(0x1cf),'description':'Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','risk':a10_0x56e9fb(0x1ab),'flags':[{...ID_FLAG,'description':'Artifact\x20ID'},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x4fe6a8){const _0x3f1bbc=a10_0x56e9fb,_0xadb9e1=_0x4fe6a8[_0x3f1bbc(0x1e2)]('id'),_0xed9d3f=buildArtifactInput(_0x4fe6a8),_0x2ae05c=await updateRuntimeArtifact(_0xadb9e1,_0x4fe6a8[_0x3f1bbc(0x1bf)],_0xed9d3f);return{'ok':!![],'data':detailArtifact(_0x2ae05c),'message':_0x3f1bbc(0x1a8)+_0x2ae05c['id']+(_0x2ae05c[_0x3f1bbc(0x1be)]?'\x20('+_0x2ae05c[_0x3f1bbc(0x1be)]+')':'')};},async 'dryRun'(_0x2e75e4){const _0x5952be=a10_0x56e9fb,_0x15edeb=_0x2e75e4[_0x5952be(0x1e2)]('id'),_0x5687df=buildArtifactInput(_0x2e75e4);return dryRun(_0x5952be(0x1ef),_0x5952be(0x1a6)+_0x15edeb+_0x5952be(0x1db))[_0x5952be(0x1b4)]({'appCode':_0x2e75e4[_0x5952be(0x1bf)],..._0x5687df})['description'](_0x5952be(0x1d3)+_0x15edeb)[_0x5952be(0x1bd)]();},'writeEventSubject'(_0x5d04a){const _0x205f4d=a10_0x56e9fb,_0x3589a9=_0x5d04a['data']?.['id'];if(typeof _0x3589a9!==_0x205f4d(0x1de)&&typeof _0x3589a9!==_0x205f4d(0x1ac))return undefined;return{'kind':_0x205f4d(0x1a0),'id':String(_0x3589a9),'action':'update'};}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
@@ -1 +1 @@
1
- const a11_0x5d43c8=a11_0x21a3;(function(_0x4fa719,_0x38985d){const _0x2b7413=a11_0x21a3,_0x35db0a=_0x4fa719();while(!![]){try{const _0x1cf2f0=-parseInt(_0x2b7413(0x200))/0x1*(parseInt(_0x2b7413(0x1fb))/0x2)+parseInt(_0x2b7413(0x1f0))/0x3*(-parseInt(_0x2b7413(0x1e9))/0x4)+-parseInt(_0x2b7413(0x1d0))/0x5*(-parseInt(_0x2b7413(0x1fa))/0x6)+-parseInt(_0x2b7413(0x20c))/0x7+parseInt(_0x2b7413(0x1ca))/0x8*(-parseInt(_0x2b7413(0x1f5))/0x9)+parseInt(_0x2b7413(0x20b))/0xa*(-parseInt(_0x2b7413(0x201))/0xb)+parseInt(_0x2b7413(0x1fd))/0xc;if(_0x1cf2f0===_0x38985d)break;else _0x35db0a['push'](_0x35db0a['shift']());}catch(_0x59ebdc){_0x35db0a['push'](_0x35db0a['shift']());}}}(a11_0x5521,0x1f3c8));import{existsSync,mkdirSync,readFileSync,unlinkSync,writeFileSync}from'node:fs';import{dirname}from'node:path';function a11_0x5521(){const _0x3743d1=['string','stderr','status','abort','aborted','log','global-default','Invalid\x20device\x20auth\x20response','project','After\x20authorizing,\x20re-run:\x20','removeListener','utf8','App\x20name\x20shown\x20on\x20authorization\x20page\x20(default:\x20lovrabet)','Write\x20to\x20global\x20config\x20(default)','toISOString','bool','3160EAefLP','global','validation','\x20config.','data','Already\x20authorized.\x20Use\x20`lovrabet\x20auth\x20status`\x20to\x20verify.','Open\x20this\x20URL\x20in\x20your\x20browser\x20to\x20authorize:','111SKYxpy','apiError','Device\x20authorization\x20cancelled.','str','/api/device-auth/token','37017FjcvBQ','parse','/device-auth?code=','networkError','now','1428846dlpavx','429878vsRtSc','),\x20retrying...','6462516LYUFth','url-only','Device\x20authorization\x20URL\x20printed.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20re-run.','1pDcLpO','11bjtCDF','scope','test','SIGINT','nonInteractive','device','stringify','code','boolean','Device\x20authorization\x20timed\x20out\x20after\x2010\x20minutes.\x20Run\x20`lovrabet\x20auth\x20device`\x20to\x20get\x20a\x20new\x20code.','1606190idqtJO','1621291CRxqeq','The\x20device\x20code\x20is\x20valid\x20for\x2010\x20minutes.','success','signal','source','lovrabet-cli','padStart','\x20remaining','&source=','write','/.device-auth','\x0dWaiting\x20for\x20authorization...\x20','24TNvKHt','json','expired','Authorize\x20via\x20device\x20code\x20flow\x20(open\x20browser,\x20no\x20copy-paste)','Device\x20auth\x20API\x20unreachable\x20after\x20multiple\x20retries.','Write\x20to\x20project\x20config','5CEMlnE','Device\x20auth\x20API\x20error\x20(','cancelled','AbortError','application/json','access_key','Verify:\x20','createdAt','once'];a11_0x5521=function(){return _0x3743d1;};return a11_0x5521();}function a11_0x21a3(_0x205862,_0x57c08f){_0x205862=_0x205862-0x1c7;const _0x5521ca=a11_0x5521();let _0x21a3be=_0x5521ca[_0x205862];return _0x21a3be;}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(_0x11b686){const _0xfc515b=a11_0x21a3;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x11b686[_0xfc515b(0x1e8)](_0xfc515b(0x1ea)),'explicitProject':_0x11b686[_0xfc515b(0x1e8)](_0xfc515b(0x1e1)),'policy':_0xfc515b(0x1df)}));}const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/,DEVICE_CODE_TTL_MS=0x927c0,POLL_INTERVAL_MS=0xbb8,MAX_POLLS=0xc8,MAX_CONSECUTIVE_NETWORK_ERRORS=0x5;export function generateDeviceCode(){return crypto['randomUUID']();}export function buildDeviceAuthUrl(_0x104d6f,_0x15b929,_0x35dc81=a11_0x5d43c8(0x211)){const _0x333acc=a11_0x5d43c8;return _0x104d6f+_0x333acc(0x1f7)+encodeURIComponent(_0x15b929)+_0x333acc(0x214)+encodeURIComponent(_0x35dc81);}export function getDeviceCodePath(){const _0x3763eb=a11_0x5d43c8;return homedir()+'/'+PRODUCT_CONFIG['homeDirName']+_0x3763eb(0x1c8);}export function readStoredDeviceCode(){const _0x2ea240=a11_0x5d43c8,_0x2db3dc=getDeviceCodePath();if(!existsSync(_0x2db3dc))return null;try{const _0x15c376=readFileSync(_0x2db3dc,{'encoding':'utf8'}),_0x3b20d7=JSON[_0x2ea240(0x1f6)](_0x15c376);if(_0x3b20d7&&typeof _0x3b20d7[_0x2ea240(0x208)]==='string'&&typeof _0x3b20d7[_0x2ea240(0x1d7)]===_0x2ea240(0x1d9)&&(_0x3b20d7['scope']===_0x2ea240(0x1ea)||_0x3b20d7[_0x2ea240(0x202)]===_0x2ea240(0x1e1)))return _0x3b20d7;}catch{}return null;}export function writeStoredDeviceCode(_0x561050,_0x1eecf4){const _0x148ed3=a11_0x5d43c8,_0x166547=getDeviceCodePath(),_0x347fd5=dirname(_0x166547);!existsSync(_0x347fd5)&&mkdirSync(_0x347fd5,{'recursive':!![]});const _0xc102c5={'code':_0x561050,'createdAt':new Date()[_0x148ed3(0x1e7)](),'scope':_0x1eecf4};writeFileSync(_0x166547,JSON[_0x148ed3(0x207)](_0xc102c5),{'encoding':_0x148ed3(0x1e4),'mode':0x180});}export function deleteStoredDeviceCode(){const _0x4d4697=getDeviceCodePath();try{unlinkSync(_0x4d4697);}catch{}}export function isStoredDeviceCodeExpired(_0x54345e){const _0x1bb635=a11_0x5d43c8;return Date[_0x1bb635(0x1f9)]()-new Date(_0x54345e[_0x1bb635(0x1d7)])['getTime']()>DEVICE_CODE_TTL_MS;}export async function fetchDeviceToken(_0x43ad30,_0x42be9a){const _0xf3aaad=a11_0x5d43c8,_0x4f8c1e=_0x43ad30+_0xf3aaad(0x1f4),_0x920493=new AbortController(),_0x4df4c6=setTimeout(()=>_0x920493['abort'](),0x2710),_0x541c9d=await fetch(_0x4f8c1e,{'method':'POST','headers':{'Content-Type':_0xf3aaad(0x1d4)},'body':JSON['stringify']({'code':_0x42be9a}),'signal':_0x920493['signal']});clearTimeout(_0x4df4c6);if(!_0x541c9d['ok'])throw CliErrors[_0xf3aaad(0x1f8)]('Device\x20auth\x20API\x20returned\x20HTTP\x20'+_0x541c9d['status']);const _0x3f7937=await _0x541c9d[_0xf3aaad(0x1cb)](),_0xbfeef2=_0x3f7937[_0xf3aaad(0x1ed)]&&typeof _0x3f7937[_0xf3aaad(0x1ed)]==='object'?_0x3f7937[_0xf3aaad(0x1ed)]:_0x3f7937;if(!_0xbfeef2||typeof _0xbfeef2['status']!=='string')throw CliErrors[_0xf3aaad(0x1f1)](_0xf3aaad(0x1e0));return{'status':_0xbfeef2[_0xf3aaad(0x1db)],'access_key':typeof _0xbfeef2[_0xf3aaad(0x1d5)]===_0xf3aaad(0x1d9)?_0xbfeef2[_0xf3aaad(0x1d5)]:undefined};}export async function pollDeviceToken(_0x16e775,_0x42a4e4,_0x37cc04){const _0x1f8165=a11_0x5d43c8;let _0x3c09b1=0x0;for(let _0x1265e7=0x0;_0x1265e7<MAX_POLLS;_0x1265e7++){if(_0x37cc04[_0x1f8165(0x1dd)])throw CliErrors[_0x1f8165(0x1d2)](_0x1f8165(0x1f2));let _0x403178;try{_0x403178=await fetchDeviceToken(_0x16e775,_0x42a4e4);}catch(_0x2edd9f){if(_0x2edd9f instanceof Error&&_0x2edd9f['name']===_0x1f8165(0x1d3))throw CliErrors[_0x1f8165(0x1d2)](_0x1f8165(0x1f2));_0x3c09b1++;if(_0x3c09b1>=MAX_CONSECUTIVE_NETWORK_ERRORS)throw CliErrors[_0x1f8165(0x1f8)](_0x1f8165(0x1ce));writeCliSideChannelLine(_0x1f8165(0x1d1)+_0x3c09b1+'/'+MAX_CONSECUTIVE_NETWORK_ERRORS+_0x1f8165(0x1fc)),await sleep(POLL_INTERVAL_MS);continue;}_0x3c09b1=0x0;if(_0x403178[_0x1f8165(0x1db)]===_0x1f8165(0x20e)){if(!_0x403178[_0x1f8165(0x1d5)])throw CliErrors[_0x1f8165(0x1f1)]('Invalid\x20access_key\x20returned\x20by\x20server.');return _0x403178[_0x1f8165(0x1d5)];}if(_0x403178[_0x1f8165(0x1db)]===_0x1f8165(0x1cc)){deleteStoredDeviceCode();throw CliErrors[_0x1f8165(0x1eb)]('Device\x20code\x20expired.\x20Run\x20`lovrabet\x20auth\x20device`\x20to\x20get\x20a\x20new\x20code.');}const _0x3a6563=(_0x1265e7+0x1)*POLL_INTERVAL_MS,_0x3a7500=DEVICE_CODE_TTL_MS-_0x3a6563,_0x302694=Math['floor'](_0x3a7500/0xea60),_0x58c0e1=Math['floor'](_0x3a7500%0xea60/0x3e8);process['stderr'][_0x1f8165(0x1c7)](_0x1f8165(0x1c9)+_0x302694+':'+String(_0x58c0e1)[_0x1f8165(0x212)](0x2,'0')+_0x1f8165(0x213)),await sleep(POLL_INTERVAL_MS);}deleteStoredDeviceCode();throw CliErrors[_0x1f8165(0x1eb)](_0x1f8165(0x20a));}function sleep(_0x2f32d9){return new Promise(_0x5a114b=>setTimeout(_0x5a114b,_0x2f32d9));}export const authDeviceDefinition={'service':'auth','command':a11_0x5d43c8(0x206),'description':a11_0x5d43c8(0x1cd),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a11_0x5d43c8(0x1ea),'type':a11_0x5d43c8(0x209),'description':a11_0x5d43c8(0x1e6),'default':!![]},{'name':'project','type':a11_0x5d43c8(0x209),'description':a11_0x5d43c8(0x1cf),'default':![]},{'name':a11_0x5d43c8(0x210),'type':a11_0x5d43c8(0x1d9),'description':a11_0x5d43c8(0x1e5),'default':a11_0x5d43c8(0x211)},{'name':a11_0x5d43c8(0x1fe),'type':a11_0x5d43c8(0x209),'description':'Print\x20URL\x20to\x20stdout\x20and\x20exit\x20(for\x20WorkBuddy\x20integration)','default':![]}],async 'execute'(_0x411f1f){const _0x89a888=a11_0x5d43c8,_0x562175=resolveAuthScopeFlags(_0x411f1f),_0x98dfa5=_0x562175['global']?_0x89a888(0x1ea):_0x89a888(0x1e1),_0x463499=readScopedConfig(_0x562175);if(_0x463499['accessKey'])return{'ok':!![],'message':_0x89a888(0x1ee)};const _0x25bac8=(_0x411f1f[_0x89a888(0x1f3)](_0x89a888(0x210))||_0x89a888(0x211))['trim'](),_0x55f291=getUserDomain(),_0x1f7426=readStoredDeviceCode(),_0x40734f=_0x1f7426&&!isStoredDeviceCodeExpired(_0x1f7426)?_0x1f7426[_0x89a888(0x208)]:((()=>{const _0x166b01=generateDeviceCode();return writeStoredDeviceCode(_0x166b01,_0x98dfa5),_0x166b01;})()),_0x3b9bc3=buildDeviceAuthUrl(_0x55f291,_0x40734f,_0x25bac8);if(_0x411f1f[_0x89a888(0x1e8)]('url-only'))return console[_0x89a888(0x1de)](_0x3b9bc3),{'ok':!![]};writeCliSideChannelLine(_0x89a888(0x1ef)),writeCliSideChannelLine(''),writeCliSideChannelLine(_0x3b9bc3),writeCliSideChannelLine(''),writeCliSideChannelLine(_0x89a888(0x20d));if(_0x411f1f[_0x89a888(0x205)])return writeCliSideChannelLine(_0x89a888(0x1e2)+CLI_BIN_NAME+'\x20auth\x20device'),{'ok':!![],'message':_0x89a888(0x1ff)};writeCliSideChannelLine('Waiting\x20for\x20authorization\x20(timeout:\x2010\x20minutes,\x20Ctrl+C\x20to\x20cancel)...');const _0x426342=new AbortController(),_0x227671=()=>{const _0x5ae9cd=_0x89a888;_0x426342[_0x5ae9cd(0x1dc)](),process[_0x5ae9cd(0x1e3)]('SIGINT',_0x227671);};process[_0x89a888(0x1d8)](_0x89a888(0x204),_0x227671);let _0x3c1bff;try{_0x3c1bff=await pollDeviceToken(_0x55f291,_0x40734f,_0x426342[_0x89a888(0x20f)]);}finally{process[_0x89a888(0x1e3)](_0x89a888(0x204),_0x227671);}if(!ACCESS_KEY_PATTERN[_0x89a888(0x203)](_0x3c1bff))throw CliErrors[_0x89a888(0x1f1)]('Invalid\x20access_key\x20returned\x20by\x20server.');const _0x5c8319=readScopedConfig(_0x562175);return _0x5c8319['accessKey']=_0x3c1bff,writeScopedConfig(_0x5c8319,_0x562175),deleteStoredDeviceCode(),process[_0x89a888(0x1da)][_0x89a888(0x1c7)]('\x0a'),writeCliSideChannelLine('AccessKey\x20saved\x20to\x20'+_0x98dfa5+_0x89a888(0x1ec)),writeCliSideChannelLine(_0x89a888(0x1d6)+CLI_BIN_NAME+'\x20auth\x20status'),{'ok':!![],'message':'Device\x20authorization\x20successful.'};}};
1
+ const a11_0x5ac5d4=a11_0x5f56;(function(_0x16d2c5,_0x360fbc){const _0x11f8be=a11_0x5f56,_0xca756c=_0x16d2c5();while(!![]){try{const _0x27535a=parseInt(_0x11f8be(0x156))/0x1+parseInt(_0x11f8be(0x11f))/0x2+parseInt(_0x11f8be(0x134))/0x3*(-parseInt(_0x11f8be(0x135))/0x4)+-parseInt(_0x11f8be(0x129))/0x5*(parseInt(_0x11f8be(0x153))/0x6)+parseInt(_0x11f8be(0x145))/0x7*(parseInt(_0x11f8be(0x13b))/0x8)+parseInt(_0x11f8be(0x146))/0x9*(-parseInt(_0x11f8be(0x125))/0xa)+-parseInt(_0x11f8be(0x13e))/0xb*(-parseInt(_0x11f8be(0x126))/0xc);if(_0x27535a===_0x360fbc)break;else _0xca756c['push'](_0xca756c['shift']());}catch(_0x529a54){_0xca756c['push'](_0xca756c['shift']());}}}(a11_0x5c43,0x77eda));import{existsSync,mkdirSync,readFileSync,unlinkSync,writeFileSync}from'node:fs';import{dirname}from'node:path';import{homedir}from'node:os';import{readScopedConfig,writeScopedConfig}from'../../context.js';function a11_0x5f56(_0x53786c,_0x507bb7){_0x53786c=_0x53786c-0x117;const _0x5c4366=a11_0x5c43();let _0x5f562a=_0x5c4366[_0x53786c];return _0x5f562a;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.js';import{getUserDomain}from'../../constant/domain.js';function a11_0x5c43(){const _0x5c292e=['After\x20authorizing,\x20re-run:\x20','abort','Open\x20this\x20URL\x20in\x20your\x20browser\x20to\x20authorize:','Device\x20auth\x20API\x20returned\x20HTTP\x20','Already\x20authorized.\x20Use\x20`lovrabet\x20auth\x20status`\x20to\x20verify.','boolean','\x20config.','bool','Device\x20code\x20expired.\x20Run\x20`lovrabet\x20auth\x20device`\x20to\x20get\x20a\x20new\x20code.','550287pPjzdw','16vIiiBG','string','stringify','/.device-auth','lovrabet-cli','now','4066120XqrmjY','test','global','110dFGVoq','success','utf8','signal','Waiting\x20for\x20authorization\x20(timeout:\x2010\x20minutes,\x20Ctrl+C\x20to\x20cancel)...','createdAt','Invalid\x20access_key\x20returned\x20by\x20server.','7dCvurX','53415rkinCw','\x0dWaiting\x20for\x20authorization...\x20','removeListener','/api/device-auth/token','device','Write\x20to\x20project\x20config','padStart','Authorize\x20via\x20device\x20code\x20flow\x20(open\x20browser,\x20no\x20copy-paste)','write','POST','log','App\x20name\x20shown\x20on\x20authorization\x20page\x20(default:\x20lovrabet)','Device\x20authorization\x20successful.','2800806xxQXxf','networkError','project','442249CSSErW','expired','),\x20retrying...','object','validation','global-default','randomUUID','status','stderr','apiError','once','url-only','json','homeDirName','AccessKey\x20saved\x20to\x20','accessKey','AbortError','\x20auth\x20device','data','source','str','SIGINT','1711410kGegrg','Device\x20auth\x20API\x20error\x20(','/device-auth?code=','nonInteractive','floor','access_key','390qVywBT','700548MXWUId','aborted','scope','10PyMqHz','code'];a11_0x5c43=function(){return _0x5c292e;};return a11_0x5c43();}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(_0x505ec8){const _0x212331=a11_0x5f56;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x505ec8[_0x212331(0x132)](_0x212331(0x13d)),'explicitProject':_0x505ec8[_0x212331(0x132)](_0x212331(0x155)),'policy':_0x212331(0x15b)}));}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 _0x4aef51=a11_0x5f56;return crypto[_0x4aef51(0x15c)]();}export function buildDeviceAuthUrl(_0x437d95,_0x898b0f,_0x17f0bc=a11_0x5ac5d4(0x139)){const _0x430d27=a11_0x5ac5d4;return _0x437d95+_0x430d27(0x121)+encodeURIComponent(_0x898b0f)+'&source='+encodeURIComponent(_0x17f0bc);}export function getDeviceCodePath(){const _0xbdcf8b=a11_0x5ac5d4;return homedir()+'/'+PRODUCT_CONFIG[_0xbdcf8b(0x163)]+_0xbdcf8b(0x138);}export function readStoredDeviceCode(){const _0x37ed4d=a11_0x5ac5d4,_0x57cee0=getDeviceCodePath();if(!existsSync(_0x57cee0))return null;try{const _0xc4daa1=readFileSync(_0x57cee0,{'encoding':_0x37ed4d(0x140)}),_0x29f648=JSON['parse'](_0xc4daa1);if(_0x29f648&&typeof _0x29f648[_0x37ed4d(0x12a)]===_0x37ed4d(0x136)&&typeof _0x29f648[_0x37ed4d(0x143)]==='string'&&(_0x29f648[_0x37ed4d(0x128)]===_0x37ed4d(0x13d)||_0x29f648[_0x37ed4d(0x128)]===_0x37ed4d(0x155)))return _0x29f648;}catch{}return null;}export function writeStoredDeviceCode(_0x140c1e,_0x5a1a48){const _0x3cb5fc=a11_0x5ac5d4,_0x28d3b3=getDeviceCodePath(),_0x4db522=dirname(_0x28d3b3);!existsSync(_0x4db522)&&mkdirSync(_0x4db522,{'recursive':!![]});const _0x191097={'code':_0x140c1e,'createdAt':new Date()['toISOString'](),'scope':_0x5a1a48};writeFileSync(_0x28d3b3,JSON[_0x3cb5fc(0x137)](_0x191097),{'encoding':_0x3cb5fc(0x140),'mode':0x180});}export function deleteStoredDeviceCode(){const _0x3f3b4d=getDeviceCodePath();try{unlinkSync(_0x3f3b4d);}catch{}}export function isStoredDeviceCodeExpired(_0x151dfc){const _0x5053b1=a11_0x5ac5d4;return Date[_0x5053b1(0x13a)]()-new Date(_0x151dfc[_0x5053b1(0x143)])['getTime']()>DEVICE_CODE_TTL_MS;}export async function fetchDeviceToken(_0x437cbd,_0x48a954){const _0x3f485=a11_0x5ac5d4,_0x107bbc=_0x437cbd+_0x3f485(0x149),_0x3dcb21=new AbortController(),_0xe07ebf=setTimeout(()=>_0x3dcb21[_0x3f485(0x12c)](),0x2710),_0x898111=await fetch(_0x107bbc,{'method':_0x3f485(0x14f),'headers':{'Content-Type':'application/json'},'body':JSON['stringify']({'code':_0x48a954}),'signal':_0x3dcb21[_0x3f485(0x141)]});clearTimeout(_0xe07ebf);if(!_0x898111['ok'])throw CliErrors[_0x3f485(0x154)](_0x3f485(0x12e)+_0x898111['status']);const _0xad9dea=await _0x898111[_0x3f485(0x162)](),_0x526cba=_0xad9dea[_0x3f485(0x11b)]&&typeof _0xad9dea[_0x3f485(0x11b)]===_0x3f485(0x159)?_0xad9dea['data']:_0xad9dea;if(!_0x526cba||typeof _0x526cba[_0x3f485(0x15d)]!==_0x3f485(0x136))throw CliErrors[_0x3f485(0x15f)]('Invalid\x20device\x20auth\x20response');return{'status':_0x526cba[_0x3f485(0x15d)],'access_key':typeof _0x526cba[_0x3f485(0x124)]===_0x3f485(0x136)?_0x526cba['access_key']:undefined};}export async function pollDeviceToken(_0xc8a722,_0x3a9170,_0x1a32fe){const _0x304d36=a11_0x5ac5d4;let _0x5637ff=0x0;for(let _0x6a2b00=0x0;_0x6a2b00<MAX_POLLS;_0x6a2b00++){if(_0x1a32fe[_0x304d36(0x127)])throw CliErrors['cancelled']('Device\x20authorization\x20cancelled.');let _0x174263;try{_0x174263=await fetchDeviceToken(_0xc8a722,_0x3a9170);}catch(_0x39206e){if(_0x39206e instanceof Error&&_0x39206e['name']===_0x304d36(0x119))throw CliErrors['cancelled']('Device\x20authorization\x20cancelled.');_0x5637ff++;if(_0x5637ff>=MAX_CONSECUTIVE_NETWORK_ERRORS)throw CliErrors[_0x304d36(0x154)]('Device\x20auth\x20API\x20unreachable\x20after\x20multiple\x20retries.');writeCliSideChannelLine(_0x304d36(0x120)+_0x5637ff+'/'+MAX_CONSECUTIVE_NETWORK_ERRORS+_0x304d36(0x158)),await sleep(POLL_INTERVAL_MS);continue;}_0x5637ff=0x0;if(_0x174263[_0x304d36(0x15d)]===_0x304d36(0x13f)){if(!_0x174263[_0x304d36(0x124)])throw CliErrors[_0x304d36(0x15f)](_0x304d36(0x144));return _0x174263[_0x304d36(0x124)];}if(_0x174263['status']===_0x304d36(0x157)){deleteStoredDeviceCode();throw CliErrors[_0x304d36(0x15a)](_0x304d36(0x133));}const _0x1cc41f=(_0x6a2b00+0x1)*POLL_INTERVAL_MS,_0x5e5c21=DEVICE_CODE_TTL_MS-_0x1cc41f,_0x1d7163=Math[_0x304d36(0x123)](_0x5e5c21/0xea60),_0x5bd014=Math[_0x304d36(0x123)](_0x5e5c21%0xea60/0x3e8);process['stderr'][_0x304d36(0x14e)](_0x304d36(0x147)+_0x1d7163+':'+String(_0x5bd014)[_0x304d36(0x14c)](0x2,'0')+'\x20remaining'),await sleep(POLL_INTERVAL_MS);}deleteStoredDeviceCode();throw CliErrors[_0x304d36(0x15a)]('Device\x20authorization\x20timed\x20out\x20after\x2010\x20minutes.\x20Run\x20`lovrabet\x20auth\x20device`\x20to\x20get\x20a\x20new\x20code.');}function sleep(_0x34eb9a){return new Promise(_0x1b0594=>setTimeout(_0x1b0594,_0x34eb9a));}export const authDeviceDefinition={'service':'auth','command':a11_0x5ac5d4(0x14a),'description':a11_0x5ac5d4(0x14d),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a11_0x5ac5d4(0x13d),'type':a11_0x5ac5d4(0x130),'description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':a11_0x5ac5d4(0x155),'type':a11_0x5ac5d4(0x130),'description':a11_0x5ac5d4(0x14b),'default':![]},{'name':a11_0x5ac5d4(0x11c),'type':'string','description':a11_0x5ac5d4(0x151),'default':'lovrabet-cli'},{'name':a11_0x5ac5d4(0x161),'type':a11_0x5ac5d4(0x130),'description':'Print\x20URL\x20to\x20stdout\x20and\x20exit\x20(for\x20WorkBuddy\x20integration)','default':![]}],async 'execute'(_0x3b781b){const _0x3b0a1d=a11_0x5ac5d4,_0x22ebdf=resolveAuthScopeFlags(_0x3b781b),_0x5d6e36=_0x22ebdf['global']?_0x3b0a1d(0x13d):_0x3b0a1d(0x155),_0x458651=readScopedConfig(_0x22ebdf);if(_0x458651[_0x3b0a1d(0x118)])return{'ok':!![],'message':_0x3b0a1d(0x12f)};const _0x16f74b=(_0x3b781b[_0x3b0a1d(0x11d)](_0x3b0a1d(0x11c))||_0x3b0a1d(0x139))['trim'](),_0x42b670=getUserDomain(),_0x1510fb=readStoredDeviceCode(),_0x528f8e=_0x1510fb&&!isStoredDeviceCodeExpired(_0x1510fb)?_0x1510fb[_0x3b0a1d(0x12a)]:((()=>{const _0x6f649b=generateDeviceCode();return writeStoredDeviceCode(_0x6f649b,_0x5d6e36),_0x6f649b;})()),_0x25c39b=buildDeviceAuthUrl(_0x42b670,_0x528f8e,_0x16f74b);if(_0x3b781b[_0x3b0a1d(0x132)](_0x3b0a1d(0x161)))return console[_0x3b0a1d(0x150)](_0x25c39b),{'ok':!![]};writeCliSideChannelLine(_0x3b0a1d(0x12d)),writeCliSideChannelLine(''),writeCliSideChannelLine(_0x25c39b),writeCliSideChannelLine(''),writeCliSideChannelLine('The\x20device\x20code\x20is\x20valid\x20for\x2010\x20minutes.');if(_0x3b781b[_0x3b0a1d(0x122)])return writeCliSideChannelLine(_0x3b0a1d(0x12b)+CLI_BIN_NAME+_0x3b0a1d(0x11a)),{'ok':!![],'message':'Device\x20authorization\x20URL\x20printed.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20re-run.'};writeCliSideChannelLine(_0x3b0a1d(0x142));const _0x1aaeeb=new AbortController(),_0xdb1dea=()=>{const _0x4db300=_0x3b0a1d;_0x1aaeeb[_0x4db300(0x12c)](),process['removeListener'](_0x4db300(0x11e),_0xdb1dea);};process[_0x3b0a1d(0x160)]('SIGINT',_0xdb1dea);let _0x1b6b7b;try{_0x1b6b7b=await pollDeviceToken(_0x42b670,_0x528f8e,_0x1aaeeb['signal']);}finally{process[_0x3b0a1d(0x148)](_0x3b0a1d(0x11e),_0xdb1dea);}if(!ACCESS_KEY_PATTERN[_0x3b0a1d(0x13c)](_0x1b6b7b))throw CliErrors[_0x3b0a1d(0x15f)](_0x3b0a1d(0x144));const _0x5eb4a8=readScopedConfig(_0x22ebdf);return _0x5eb4a8['accessKey']=_0x1b6b7b,writeScopedConfig(_0x5eb4a8,_0x22ebdf),deleteStoredDeviceCode(),process[_0x3b0a1d(0x15e)]['write']('\x0a'),writeCliSideChannelLine(_0x3b0a1d(0x117)+_0x5d6e36+_0x3b0a1d(0x131)),writeCliSideChannelLine('Verify:\x20'+CLI_BIN_NAME+'\x20auth\x20status'),{'ok':!![],'message':_0x3b0a1d(0x152)};}};