@lovrabet/lovrabet-cli 2.1.15 → 2.1.16-beta.2

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 (120) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/artifact/index.js +1 -1
  12. package/lib/commands/auth/device.js +1 -0
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/shared.js +1 -1
  25. package/lib/commands/data/index.js +1 -1
  26. package/lib/commands/dataset/detail.js +1 -1
  27. package/lib/commands/dataset/index.js +1 -1
  28. package/lib/commands/dataset/list.js +1 -1
  29. package/lib/commands/dataset/sdk-doc.js +1 -1
  30. package/lib/commands/doctor.js +1 -1
  31. package/lib/commands/file/index.js +1 -1
  32. package/lib/commands/init.js +1 -1
  33. package/lib/commands/kb/index.js +1 -1
  34. package/lib/commands/logs/index.js +1 -1
  35. package/lib/commands/ocr/index.js +1 -1
  36. package/lib/commands/personal-bff/index.js +1 -1
  37. package/lib/commands/registry.js +1 -1
  38. package/lib/commands/schema.js +1 -1
  39. package/lib/commands/service/dynamic.js +1 -1
  40. package/lib/commands/service/function-name-adapter.js +1 -1
  41. package/lib/commands/service/index.js +1 -1
  42. package/lib/commands/service/registry.js +1 -1
  43. package/lib/commands/skill/commands/create.js +1 -1
  44. package/lib/commands/skill/commands/install.js +1 -1
  45. package/lib/commands/skill/commands/list.js +1 -1
  46. package/lib/commands/skill/commands/push.js +1 -1
  47. package/lib/commands/skill/commands/validate.js +1 -1
  48. package/lib/commands/skill/flags.js +1 -1
  49. package/lib/commands/skill/index.js +1 -1
  50. package/lib/commands/skill/manifest-helpers.js +1 -1
  51. package/lib/commands/skill/push-execute.js +1 -1
  52. package/lib/commands/skill/push-flow-helpers.js +1 -1
  53. package/lib/commands/skill/push-retarget.js +1 -1
  54. package/lib/commands/skill/scopes.js +1 -1
  55. package/lib/commands/skill/summary.js +1 -1
  56. package/lib/commands/skill/templates.js +1 -1
  57. package/lib/commands/skill/validate.js +1 -1
  58. package/lib/commands/sql/detail.js +1 -1
  59. package/lib/commands/sql/exec.js +1 -1
  60. package/lib/commands/sql/index.js +1 -1
  61. package/lib/commands/update.js +1 -1
  62. package/lib/commands/workspace/index.js +1 -1
  63. package/lib/config/schema.js +1 -1
  64. package/lib/constant/app.js +1 -1
  65. package/lib/constant/auth-mode.js +1 -1
  66. package/lib/constant/cli.js +1 -1
  67. package/lib/constant/defaults.js +1 -1
  68. package/lib/constant/distribution.js +1 -1
  69. package/lib/constant/domain.js +1 -1
  70. package/lib/constant/env.js +1 -1
  71. package/lib/constant/output.js +1 -1
  72. package/lib/constant/product.js +1 -1
  73. package/lib/constant/risk.js +1 -1
  74. package/lib/constant/url.js +1 -1
  75. package/lib/context.js +1 -1
  76. package/lib/core/api-client.js +1 -1
  77. package/lib/core/db-resolver.js +1 -1
  78. package/lib/core/sdk-client.js +1 -1
  79. package/lib/errors.js +1 -1
  80. package/lib/framework/build-all-flags.js +1 -1
  81. package/lib/framework/dryrun.js +1 -1
  82. package/lib/framework/flags.js +1 -1
  83. package/lib/framework/help.js +1 -1
  84. package/lib/framework/index.js +1 -1
  85. package/lib/framework/output.js +1 -1
  86. package/lib/framework/preparse.js +1 -1
  87. package/lib/framework/rate-limit.js +1 -1
  88. package/lib/framework/response.js +1 -1
  89. package/lib/framework/runner-confirmation.js +1 -1
  90. package/lib/framework/runner-error.js +1 -1
  91. package/lib/framework/runner.js +1 -1
  92. package/lib/framework/schema-export.js +1 -1
  93. package/lib/framework/service-order.js +1 -1
  94. package/lib/framework/types.js +1 -1
  95. package/lib/generated/build-info.js +1 -1
  96. package/lib/help.js +1 -1
  97. package/lib/skills/npx-skills-add.js +1 -1
  98. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  99. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  100. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  101. package/lib/skills/runtime-skill-sync/links.js +1 -1
  102. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  103. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  104. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  105. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  106. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  107. package/lib/skills/runtime-skill-sync/push.js +1 -1
  108. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  109. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  110. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  111. package/lib/skills/runtime-skill-sync.js +1 -1
  112. package/lib/utils/apply-jq-filter.js +1 -1
  113. package/lib/utils/logger.js +1 -1
  114. package/lib/utils/lossless-json.js +1 -1
  115. package/lib/utils/params.js +1 -1
  116. package/lib/utils/platform.js +1 -1
  117. package/lib/utils/update-notice.js +1 -1
  118. package/lib/utils/version.js +1 -1
  119. package/lib/utils/write-cli-side-channel.js +1 -1
  120. package/package.json +1 -1
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const a0_0x26143f=a0_0x34b7;(function(_0x511394,_0x44b761){const _0xdfc7e5=a0_0x34b7,_0x1d5ed3=_0x511394();while(!![]){try{const _0x24894e=-parseInt(_0xdfc7e5(0x10d))/0x1+parseInt(_0xdfc7e5(0x102))/0x2+parseInt(_0xdfc7e5(0xf8))/0x3+parseInt(_0xdfc7e5(0xff))/0x4*(-parseInt(_0xdfc7e5(0x115))/0x5)+-parseInt(_0xdfc7e5(0x112))/0x6*(-parseInt(_0xdfc7e5(0x10e))/0x7)+parseInt(_0xdfc7e5(0x10b))/0x8+-parseInt(_0xdfc7e5(0x108))/0x9;if(_0x24894e===_0x44b761)break;else _0x1d5ed3['push'](_0x1d5ed3['shift']());}catch(_0x1b267c){_0x1d5ed3['push'](_0x1d5ed3['shift']());}}}(a0_0x7fcd,0x57035));import{jsx as a0_0x443f60}from'react/jsx-runtime';import a0_0x3e3755 from'meow';import{render}from'ink';import{Help}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{buildConfigFromFlags,initGlobalEnvironment}from'./context.js';import{isKnownService,getServiceEntry,findDefinition,getAllDefinitions}from'./commands/registry.js';import{generateDynamicServiceHelp,resolveDynamicServiceCommand}from'./commands/service/dynamic.js';import{runCommand,createPipelineEnv}from'./framework/runner.js';function a0_0x34b7(_0x2fc566,_0x3603e5){_0x2fc566=_0x2fc566-0xee;const _0x7fcdeb=a0_0x7fcd();let _0x34b79d=_0x7fcdeb[_0x2fc566];return _0x34b79d;}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_0x3e3755(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'version':getCliVersionDisplay()});void main()[a0_0x26143f(0xf1)](handleError);async function main(){try{await run();}catch(_0x1d2af4){handleError(_0x1d2af4);}}function a0_0x7fcd(){const _0x4fa07e=['exitCode','definition','catch','unknownCommand','defaultCommand','[preparse]\x20','ERR_USE_AFTER_CLOSE','hint','input','1356504CjUfNm','write','error','ERR_STREAM_DESTROYED','handler','slice','code','57020LeiQlq','assign','help','16348MscHpx','./framework/preparse.js','flatMap','cancelled',':\x20--','exit','6484590XCSKHS','args','Error:\x20','2191584MTKrHu','Hint:\x20','72518gMrPrk','1000909DJtiuu','log','stderr','Unexpected\x20error:','24phXROr','flags','length','55eFJubU','\x0aCancelled.\x0a'];a0_0x7fcd=function(){return _0x4fa07e;};return a0_0x7fcd();}async function run(){const _0x104c75=a0_0x26143f;let _0x7df040=cli[_0x104c75(0xf7)][0x0],_0x261b4f=cli['input'][0x1];const _0xbe1b22=cli[_0x104c75(0x113)];try{const {correctFlags:_0x737cee}=await import(_0x104c75(0x103)),_0x4032f0=getAllDefinitions()[_0x104c75(0x104)](_0x158fa3=>_0x158fa3[_0x104c75(0x113)]??[]),{flags:_0x41cf04,corrections:_0x1365a9}=_0x737cee(_0xbe1b22,_0x4032f0);if(_0x1365a9[_0x104c75(0x114)]>0x0){for(const _0x5dc56e of _0x1365a9){process['stderr']['write'](_0x104c75(0xf4)+_0x5dc56e[_0x104c75(0xfc)]+_0x104c75(0x106)+_0x5dc56e['original']+'\x20->\x20--'+_0x5dc56e['corrected']+'\x0a');}Object[_0x104c75(0x100)](_0xbe1b22,_0x41cf04);}}catch{}if(!_0x7df040){const {waitUntilExit:_0x10a144}=render(a0_0x443f60(Help,{}));await _0x10a144();return;}if(!isKnownService(_0x7df040)){const _0x5d6294=resolveDynamicServiceCommand(cli[_0x104c75(0xf7)],_0xbe1b22);if(_0x5d6294){if(_0xbe1b22[_0x104c75(0x101)]){console[_0x104c75(0x10f)](generateCommandHelp(_0x5d6294[_0x104c75(0xf0)]));return;}Object[_0x104c75(0x100)](_0xbe1b22,_0x5d6294[_0x104c75(0x113)]);const _0x430b25=buildConfigFromFlags(_0xbe1b22);await initGlobalEnvironment(_0x430b25);const _0x7c710b=createPipelineEnv(_0x430b25,_0xbe1b22);_0x7c710b[_0x104c75(0x109)]=_0x5d6294[_0x104c75(0x109)],await runCommand(_0x5d6294['definition'],_0x7c710b);return;}if(_0xbe1b22[_0x104c75(0x101)]){const _0x585d6d=generateDynamicServiceHelp(_0x7df040);if(_0x585d6d){console[_0x104c75(0x10f)](_0x585d6d);return;}}const {waitUntilExit:_0x5d24c2}=render(a0_0x443f60(Help,{}));await _0x5d24c2();return;}const _0x5e4a92=getServiceEntry(_0x7df040);if(!_0x261b4f){if(_0xbe1b22[_0x104c75(0x101)]){console[_0x104c75(0x10f)](generateServiceHelp(_0x7df040));return;}if(_0x5e4a92[_0x104c75(0xf3)])_0x261b4f=_0x5e4a92['defaultCommand'];else{console[_0x104c75(0x10f)](generateServiceHelp(_0x7df040));return;}}const _0x3e2cf0=findDefinition(_0x7df040,_0x261b4f);!_0x3e2cf0&&(console['log'](generateServiceHelp(_0x7df040)),handleError(CliErrors[_0x104c75(0xf2)](_0x7df040+'\x20'+_0x261b4f)));if(_0xbe1b22[_0x104c75(0x101)]){console[_0x104c75(0x10f)](generateCommandHelp(_0x3e2cf0));return;}const _0x3a9d7b=buildConfigFromFlags(_0xbe1b22);await initGlobalEnvironment(_0x3a9d7b);const _0x483c93=createPipelineEnv(_0x3a9d7b,_0xbe1b22);_0x483c93[_0x104c75(0x109)]=cli[_0x104c75(0xf7)][_0x104c75(0xfd)](0x2),await runCommand(_0x3e2cf0,_0x483c93);}function handleError(_0x13982e){const _0xf5f67d=a0_0x26143f;if(_0x13982e instanceof CliError){_0x13982e['code']===_0xf5f67d(0x105)&&(process[_0xf5f67d(0x110)]['write'](_0xf5f67d(0xee)),process['exit'](0x0));console[_0xf5f67d(0xfa)](_0xf5f67d(0x10a)+_0x13982e['message']);if(_0x13982e[_0xf5f67d(0xf6)])console[_0xf5f67d(0xfa)](_0xf5f67d(0x10c)+_0x13982e[_0xf5f67d(0xf6)]);process[_0xf5f67d(0x107)](_0x13982e[_0xf5f67d(0xef)]);}isUserCancellation(_0x13982e)&&(process[_0xf5f67d(0x110)][_0xf5f67d(0xf9)]('\x0aCancelled.\x0a'),process[_0xf5f67d(0x107)](0x0)),console[_0xf5f67d(0xfa)](_0xf5f67d(0x111),_0x13982e),process[_0xf5f67d(0x107)](0x1);}function isUserCancellation(_0x17cd53){const _0x17988d=a0_0x26143f;if(!(_0x17cd53 instanceof Error))return![];if(_0x17cd53['name']==='ExitPromptError')return!![];if(_0x17cd53[_0x17988d(0xfe)]===_0x17988d(0xf5))return!![];if(_0x17cd53['code']===_0x17988d(0xfb))return!![];return![];}
2
+ const a0_0x3f3184=a0_0x750f;(function(_0x3ae05d,_0x38caa4){const _0x29c389=a0_0x750f,_0x19bef5=_0x3ae05d();while(!![]){try{const _0x43d961=-parseInt(_0x29c389(0xd9))/0x1+-parseInt(_0x29c389(0xb5))/0x2+-parseInt(_0x29c389(0xcf))/0x3+parseInt(_0x29c389(0xd6))/0x4*(-parseInt(_0x29c389(0xc6))/0x5)+parseInt(_0x29c389(0xc4))/0x6+parseInt(_0x29c389(0xbc))/0x7*(parseInt(_0x29c389(0xb4))/0x8)+parseInt(_0x29c389(0xb9))/0x9;if(_0x43d961===_0x38caa4)break;else _0x19bef5['push'](_0x19bef5['shift']());}catch(_0x291368){_0x19bef5['push'](_0x19bef5['shift']());}}}(a0_0x4176,0xc9b23));import{jsx as a0_0x323a00}from'react/jsx-runtime';import a0_0x1ae469 from'meow';import{render}from'ink';import{Help}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{buildConfigFromFlags,initGlobalEnvironment}from'./context.js';import{isKnownService,getServiceEntry,findDefinition,getAllDefinitions}from'./commands/registry.js';import{generateDynamicServiceHelp,resolveDynamicServiceCommand}from'./commands/service/dynamic.js';import{runCommand,createPipelineEnv}from'./framework/runner.js';function a0_0x4176(){const _0x437daf=['ExitPromptError','error','help','flatMap','assign',':\x20--','exit','corrected','4647327GJsDMI','Unexpected\x20error:','args','definition','write','unknownCommand','ERR_USE_AFTER_CLOSE','40EyndOm','cancelled','catch','554322eyWCrm','length','344AeIrOn','2676600AYwUsP','hint','Hint:\x20','\x0aCancelled.\x0a','15768072fVBgpl','original','./framework/preparse.js','230916JspUiE','defaultCommand','log','flags','name','input','code','handler','9030576TajUHN','stderr','203855LHSQKP'];a0_0x4176=function(){return _0x437daf;};return a0_0x4176();}import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{buildMeowFlags}from'./constant/cli.js';function a0_0x750f(_0x3f13df,_0x39068d){_0x3f13df=_0x3f13df-0xb4;const _0x4176d5=a0_0x4176();let _0x750fa1=_0x4176d5[_0x3f13df];return _0x750fa1;}import{getCliVersionDisplay}from'./utils/version.js';const helpText=generateFullHelp(),cli=a0_0x1ae469(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'version':getCliVersionDisplay()});void main()[a0_0x3f3184(0xd8)](handleError);async function main(){try{await run();}catch(_0x4df911){handleError(_0x4df911);}}async function run(){const _0x64199b=a0_0x3f3184;let _0x2462dc=cli['input'][0x0],_0x21bc2d=cli['input'][0x1];const _0x23a48d=cli[_0x64199b(0xbf)];try{const {correctFlags:_0x2c771c}=await import(_0x64199b(0xbb)),_0x4707ae=getAllDefinitions()[_0x64199b(0xca)](_0x591f0d=>_0x591f0d[_0x64199b(0xbf)]??[]),{flags:_0x3d9daf,corrections:_0x275b3d}=_0x2c771c(_0x23a48d,_0x4707ae);if(_0x275b3d[_0x64199b(0xda)]>0x0){for(const _0x19cec9 of _0x275b3d){process[_0x64199b(0xc5)]['write']('[preparse]\x20'+_0x19cec9[_0x64199b(0xc3)]+_0x64199b(0xcc)+_0x19cec9[_0x64199b(0xba)]+'\x20->\x20--'+_0x19cec9[_0x64199b(0xce)]+'\x0a');}Object[_0x64199b(0xcb)](_0x23a48d,_0x3d9daf);}}catch{}if(!_0x2462dc){const {waitUntilExit:_0x31cf2d}=render(a0_0x323a00(Help,{}));await _0x31cf2d();return;}if(!isKnownService(_0x2462dc)){const _0x645f2c=resolveDynamicServiceCommand(cli[_0x64199b(0xc1)],_0x23a48d);if(_0x645f2c){if(_0x23a48d[_0x64199b(0xc9)]){console[_0x64199b(0xbe)](generateCommandHelp(_0x645f2c[_0x64199b(0xd2)]));return;}Object[_0x64199b(0xcb)](_0x23a48d,_0x645f2c[_0x64199b(0xbf)]);const _0x2a90d1=buildConfigFromFlags(_0x23a48d);await initGlobalEnvironment(_0x2a90d1);const _0x4acdfe=createPipelineEnv(_0x2a90d1,_0x23a48d);_0x4acdfe['args']=_0x645f2c[_0x64199b(0xd1)],await runCommand(_0x645f2c[_0x64199b(0xd2)],_0x4acdfe);return;}if(_0x23a48d[_0x64199b(0xc9)]){const _0x4e9449=generateDynamicServiceHelp(_0x2462dc);if(_0x4e9449){console[_0x64199b(0xbe)](_0x4e9449);return;}}const {waitUntilExit:_0x33546d}=render(a0_0x323a00(Help,{}));await _0x33546d();return;}const _0x7f36bf=getServiceEntry(_0x2462dc);if(!_0x21bc2d){if(_0x23a48d[_0x64199b(0xc9)]){console[_0x64199b(0xbe)](generateServiceHelp(_0x2462dc));return;}if(_0x7f36bf[_0x64199b(0xbd)])_0x21bc2d=_0x7f36bf['defaultCommand'];else{console[_0x64199b(0xbe)](generateServiceHelp(_0x2462dc));return;}}const _0x29f9f3=findDefinition(_0x2462dc,_0x21bc2d);!_0x29f9f3&&(console[_0x64199b(0xbe)](generateServiceHelp(_0x2462dc)),handleError(CliErrors[_0x64199b(0xd4)](_0x2462dc+'\x20'+_0x21bc2d)));if(_0x23a48d[_0x64199b(0xc9)]){console[_0x64199b(0xbe)](generateCommandHelp(_0x29f9f3));return;}const _0x26dd94=buildConfigFromFlags(_0x23a48d);await initGlobalEnvironment(_0x26dd94);const _0x5865ba=createPipelineEnv(_0x26dd94,_0x23a48d);_0x5865ba['args']=cli[_0x64199b(0xc1)]['slice'](0x2),await runCommand(_0x29f9f3,_0x5865ba);}function handleError(_0x5f3873){const _0xd530c9=a0_0x3f3184;if(_0x5f3873 instanceof CliError){_0x5f3873[_0xd530c9(0xc2)]===_0xd530c9(0xd7)&&(process['stderr'][_0xd530c9(0xd3)](_0xd530c9(0xb8)),process[_0xd530c9(0xcd)](0x0));console[_0xd530c9(0xc8)]('Error:\x20'+_0x5f3873['message']);if(_0x5f3873[_0xd530c9(0xb6)])console[_0xd530c9(0xc8)](_0xd530c9(0xb7)+_0x5f3873[_0xd530c9(0xb6)]);process[_0xd530c9(0xcd)](_0x5f3873['exitCode']);}isUserCancellation(_0x5f3873)&&(process['stderr']['write']('\x0aCancelled.\x0a'),process[_0xd530c9(0xcd)](0x0)),console[_0xd530c9(0xc8)](_0xd530c9(0xd0),_0x5f3873),process['exit'](0x1);}function isUserCancellation(_0x5416a4){const _0x5af00b=a0_0x3f3184;if(!(_0x5416a4 instanceof Error))return![];if(_0x5416a4[_0x5af00b(0xc0)]===_0x5af00b(0xc7))return!![];if(_0x5416a4['code']===_0x5af00b(0xd5))return!![];if(_0x5416a4[_0x5af00b(0xc2)]==='ERR_STREAM_DESTROYED')return!![];return![];}
@@ -1 +1 @@
1
- const a1_0x55b83d=a1_0x56cc;(function(_0x503736,_0x395fd1){const _0x4757b6=a1_0x56cc,_0x261d0f=_0x503736();while(!![]){try{const _0x2b0fd4=parseInt(_0x4757b6(0x232))/0x1*(-parseInt(_0x4757b6(0x23a))/0x2)+-parseInt(_0x4757b6(0x22f))/0x3+parseInt(_0x4757b6(0x203))/0x4+-parseInt(_0x4757b6(0x202))/0x5+parseInt(_0x4757b6(0x22c))/0x6+parseInt(_0x4757b6(0x238))/0x7+parseInt(_0x4757b6(0x1f7))/0x8*(parseInt(_0x4757b6(0x1f4))/0x9);if(_0x2b0fd4===_0x395fd1)break;else _0x261d0f['push'](_0x261d0f['shift']());}catch(_0xdf2073){_0x261d0f['push'](_0x261d0f['shift']());}}}(a1_0x1f8f,0xa164a));import{CliErrors}from'../../errors.js';const CATEGORY_FLAG={'name':a1_0x55b83d(0x215),'type':a1_0x55b83d(0x219),'description':a1_0x55b83d(0x264)},KEYWORD_FLAG={'name':a1_0x55b83d(0x1f1),'type':a1_0x55b83d(0x219),'description':a1_0x55b83d(0x218)},DOC_CODE_FLAG={'name':'code','type':a1_0x55b83d(0x219),'required':!![],'description':a1_0x55b83d(0x248)},DOCS=[{'code':a1_0x55b83d(0x214),'category':a1_0x55b83d(0x233),'title':a1_0x55b83d(0x237),'method':a1_0x55b83d(0x23e),'path':a1_0x55b83d(0x1f2),'summary':a1_0x55b83d(0x21d),'whenToUse':a1_0x55b83d(0x221),'pathParams':[],'queryParams':[],'bodySchema':a1_0x55b83d(0x23f),'responseHighlights':[a1_0x55b83d(0x23d),a1_0x55b83d(0x207)],'examples':[a1_0x55b83d(0x1f8)],'notes':['CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.'],'markdown':['##\x20List\x20datasets','',a1_0x55b83d(0x23b)][a1_0x55b83d(0x240)]('\x0a')},{'code':'dataset_detail','category':'dataset','title':a1_0x55b83d(0x1f6),'method':a1_0x55b83d(0x244),'path':a1_0x55b83d(0x247),'summary':a1_0x55b83d(0x25c),'whenToUse':a1_0x55b83d(0x228),'pathParams':[],'queryParams':[{'name':a1_0x55b83d(0x24b),'description':a1_0x55b83d(0x231)}],'bodySchema':a1_0x55b83d(0x224),'responseHighlights':['fields/properties\x20describe\x20data\x20shape','relations\x20contains\x20the\x20object-shaped\x20API\x20relations\x20value\x20when\x20returned',a1_0x55b83d(0x251)],'examples':[a1_0x55b83d(0x22b)],'notes':[a1_0x55b83d(0x21f)],'markdown':[a1_0x55b83d(0x223),'',a1_0x55b83d(0x220)][a1_0x55b83d(0x240)]('\x0a')},{'code':a1_0x55b83d(0x211),'category':'dataset','title':a1_0x55b83d(0x23c),'method':a1_0x55b83d(0x23e),'path':a1_0x55b83d(0x1fd),'summary':a1_0x55b83d(0x24a),'whenToUse':a1_0x55b83d(0x208),'pathParams':[{'name':'appCode','description':a1_0x55b83d(0x250)},{'name':a1_0x55b83d(0x1fa),'description':a1_0x55b83d(0x231)}],'queryParams':[],'bodySchema':'{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','responseHighlights':[a1_0x55b83d(0x24f),a1_0x55b83d(0x245)],'examples':['lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:5}\x27'],'notes':['Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.'],'markdown':[a1_0x55b83d(0x262),'',a1_0x55b83d(0x200)]['join']('\x0a')},{'code':'dataset_data_aggregate','category':'dataset','title':a1_0x55b83d(0x1ef),'method':a1_0x55b83d(0x23e),'path':a1_0x55b83d(0x24c),'summary':a1_0x55b83d(0x235),'whenToUse':'需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用','pathParams':[{'name':'appCode','description':a1_0x55b83d(0x250)},{'name':a1_0x55b83d(0x1fa),'description':a1_0x55b83d(0x231)}],'queryParams':[],'bodySchema':a1_0x55b83d(0x241),'responseHighlights':[a1_0x55b83d(0x258),a1_0x55b83d(0x25e)],'examples':[a1_0x55b83d(0x20a)],'notes':[a1_0x55b83d(0x204),a1_0x55b83d(0x263)],'markdown':[a1_0x55b83d(0x24e),'',a1_0x55b83d(0x1fb)][a1_0x55b83d(0x240)]('\x0a')},{'code':a1_0x55b83d(0x236),'category':a1_0x55b83d(0x233),'title':'Get\x20one\x20dataset\x20record','method':a1_0x55b83d(0x23e),'path':a1_0x55b83d(0x1f0),'summary':'查询单条数据','whenToUse':a1_0x55b83d(0x21c),'pathParams':[{'name':a1_0x55b83d(0x25b),'description':a1_0x55b83d(0x250)},{'name':a1_0x55b83d(0x1fa),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':a1_0x55b83d(0x25d),'responseHighlights':[a1_0x55b83d(0x20f)],'examples':['lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27'],'notes':[a1_0x55b83d(0x20e)],'markdown':a1_0x55b83d(0x22d)},{'code':'dataset_data_create','category':a1_0x55b83d(0x233),'title':a1_0x55b83d(0x20d),'method':a1_0x55b83d(0x23e),'path':a1_0x55b83d(0x257),'summary':a1_0x55b83d(0x225),'whenToUse':'需要向指定数据集新增一条业务数据时使用','pathParams':[{'name':a1_0x55b83d(0x25b),'description':a1_0x55b83d(0x250)},{'name':a1_0x55b83d(0x1fa),'description':a1_0x55b83d(0x231)}],'queryParams':[],'bodySchema':a1_0x55b83d(0x201),'responseHighlights':[a1_0x55b83d(0x21a)],'examples':['lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27'],'notes':[a1_0x55b83d(0x246)],'markdown':a1_0x55b83d(0x1ed)},{'code':a1_0x55b83d(0x242),'category':'bf','title':a1_0x55b83d(0x260),'method':'GET','path':a1_0x55b83d(0x216),'summary':'按应用和函数名精确获取\x20BF\x20运行契约','whenToUse':a1_0x55b83d(0x212),'pathParams':[{'name':'appCode','description':a1_0x55b83d(0x250)},{'name':a1_0x55b83d(0x20b),'description':a1_0x55b83d(0x210)}],'queryParams':[],'bodySchema':a1_0x55b83d(0x224),'responseHighlights':['CLI\x20returns\x20appCode/functionName/description/version/gmtModified'],'examples':[a1_0x55b83d(0x1ee)],'notes':[a1_0x55b83d(0x205)],'markdown':a1_0x55b83d(0x234)},{'code':'bf_execute','category':'bf','title':'Execute\x20BF\x20endpoint\x20function','method':'POST','path':a1_0x55b83d(0x229),'summary':a1_0x55b83d(0x213),'whenToUse':a1_0x55b83d(0x217),'pathParams':[{'name':'appCode','description':'Current\x20app\x20code'},{'name':a1_0x55b83d(0x20b),'description':a1_0x55b83d(0x255)}],'queryParams':[],'bodySchema':a1_0x55b83d(0x227),'responseHighlights':[a1_0x55b83d(0x24d)],'examples':[a1_0x55b83d(0x226)],'notes':['Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.'],'markdown':a1_0x55b83d(0x1fe)},{'code':a1_0x55b83d(0x206),'category':a1_0x55b83d(0x22a),'title':a1_0x55b83d(0x222),'method':'POST','path':a1_0x55b83d(0x1f3),'summary':a1_0x55b83d(0x261),'whenToUse':a1_0x55b83d(0x253),'pathParams':[],'queryParams':[],'bodySchema':'{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','responseHighlights':['Returns\x20SQL\x20execution\x20payload'],'examples':[a1_0x55b83d(0x249)],'notes':[a1_0x55b83d(0x256)],'markdown':a1_0x55b83d(0x254)}];function entrySummary(_0x4398a0){const _0x149960=a1_0x55b83d;return{'code':_0x4398a0[_0x149960(0x24b)],'category':_0x4398a0[_0x149960(0x215)],'method':_0x4398a0[_0x149960(0x1ff)],'path':_0x4398a0[_0x149960(0x21e)],'summary':_0x4398a0['summary'],'whenToUse':_0x4398a0[_0x149960(0x259)]};}export function listApiDocEntries(_0x260120={}){const _0x20ee54=a1_0x55b83d,_0x264f01=String(_0x260120[_0x20ee54(0x215)]||'')[_0x20ee54(0x243)](),_0x422f62=String(_0x260120[_0x20ee54(0x1f1)]||'')[_0x20ee54(0x243)]()[_0x20ee54(0x1f5)]();return DOCS['filter'](_0x3a718b=>{const _0x2e80f5=_0x20ee54;if(_0x264f01&&_0x3a718b[_0x2e80f5(0x215)]!==_0x264f01)return![];if(!_0x422f62)return!![];return[_0x3a718b[_0x2e80f5(0x24b)],_0x3a718b[_0x2e80f5(0x215)],_0x3a718b['method'],_0x3a718b['path'],_0x3a718b[_0x2e80f5(0x1f9)],_0x3a718b['whenToUse'],_0x3a718b[_0x2e80f5(0x230)]][_0x2e80f5(0x240)]('\x20')['toLowerCase']()['includes'](_0x422f62);})['map'](entrySummary);}function a1_0x56cc(_0xc5235,_0x539d56){_0xc5235=_0xc5235-0x1ed;const _0x1f8ff7=a1_0x1f8f();let _0x56ccc5=_0x1f8ff7[_0xc5235];return _0x56ccc5;}export function getApiDocDetail(_0x53ef2d){const _0x17181b=a1_0x55b83d,_0x120677=DOCS[_0x17181b(0x239)](_0x58e83b=>_0x58e83b[_0x17181b(0x24b)]===_0x53ef2d);if(!_0x120677)throw CliErrors[_0x17181b(0x209)](_0x17181b(0x20c)+_0x53ef2d);return{..._0x120677};}const apiDocList={'service':a1_0x55b83d(0x25a),'command':a1_0x55b83d(0x22e),'description':'List\x20available\x20runtime\x20API\x20documentation\x20entries','risk':a1_0x55b83d(0x25f),'requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0xb328d2){const _0x1b7c9d=a1_0x55b83d,_0x3a9d3d=listApiDocEntries({'category':_0xb328d2['str'](_0x1b7c9d(0x215)),'keyword':_0xb328d2[_0x1b7c9d(0x1fc)](_0x1b7c9d(0x1f1))});return{'ok':!![],'data':{'total':_0x3a9d3d[_0x1b7c9d(0x265)],'items':_0x3a9d3d}};}},apiDocDetail={'service':a1_0x55b83d(0x25a),'command':a1_0x55b83d(0x252),'description':a1_0x55b83d(0x21b),'risk':'read','requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0x2b8d00){return{'ok':!![],'data':getApiDocDetail(_0x2b8d00['str']('code'))};}};export const apiDocDefinitions=[apiDocList,apiDocDetail];function a1_0x1f8f(){const _0x385d25=['paging.totalCount\x20gives\x20total\x20rows','需要携带\x20where、orderBy、分页等条件读取业务数据时使用','validation','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','functionName','API\x20doc\x20code\x20not\x20found:\x20','Create\x20dataset\x20record','Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.','Returns\x20one\x20matching\x20business\x20record','Exact\x20endpoint\x20function\x20name','dataset_data_filter','已经从用户、平台\x20UI\x20或前序上下文确认函数名,需要查看该\x20ENDPOINT\x20的运行态元信息时使用','执行指定\x20BF\x20函数','dataset_list','category','/client/bff/endpoint/{appCode}/{functionName}','已经确认目标\x20BF\x20的\x20functionName,且需要实际调用该\x20ENDPOINT\x20函数完成业务操作时使用','Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text','string','Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result','Show\x20runtime\x20API\x20documentation\x20by\x20code','已经知道记录\x20id,需要按数据集读取单条业务数据时使用','分页获取数据集列表','path','If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.','Inspect\x20field\x20names,\x20relations,\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.','需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','Execute\x20custom\x20SQL','##\x20Dataset\x20detail','None','创建数据','lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27','{\x22param\x22:\x22value\x22}','需要按数据集\x20code\x20获取字段、表信息、关联关系(relations)或操作定义时使用','/api/endpoint/{appCode}/{functionName}','custom_sql','lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>','2774010pQjdhb','##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.','list','3096498xTiTQt','title','32-character\x20dataset\x20code','1DnXBcq','dataset','##\x20Get\x20BF\x20endpoint\x20function\x20contract\x0a\x0aInspect\x20one\x20known\x20endpoint\x20function\x20through\x20the\x20AK-authenticated\x20exact\x20detail\x20API.','聚合查询数据集数据','dataset_data_get_one','List\x20datasets','442974SytvGP','find','616784hJVHiG','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.','Filter\x20dataset\x20data','tableData\x20contains\x20dataset\x20id/code/name','POST','{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','join','{\x22aggregate\x22:[{\x22column\x22:\x20\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','bf_detail','trim','GET','paging\x20contains\x20pagination','This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.','/api/dataset/getOneByCode?code={datasetCode}','API\x20doc\x20code,\x20for\x20example\x20dataset_list','lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27','条件过滤查询数据','code','/api/{appCode}/{datasetCode}/aggregate','Returns\x20script\x20business\x20payload','##\x20Aggregate\x20dataset\x20data','tableData\x20contains\x20records','Current\x20app\x20code','operations\x20describes\x20runtime\x20APIs','detail','已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.','Endpoint\x20function\x20name','Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.','/api/{appCode}/{datasetCode}/create','result\x20rows\x20contain\x20aggregate\x20aliases','whenToUse','api-doc','appCode','获取数据集详情','{\x22id\x22:123}','where\x20filters\x20before\x20aggregation','read','Get\x20BF\x20endpoint\x20function\x20contract','执行自定义\x20SQL','##\x20Filter\x20dataset\x20data','`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset','length','##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.','lovrabet\x20bff\x20detail\x20--name\x20<functionName>','Aggregate\x20dataset\x20data','/api/{appCode}/{datasetCode}/getOne','keyword','/api/dataset/get-dataset-list-by-app-code','/api/custom/executeSql','65601BbSyiw','toLowerCase','Dataset\x20detail','2392CJzLiI','lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress','summary','datasetCode','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.','str','/api/{appCode}/{datasetCode}/filter','##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.','method','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.','{\x22fieldName\x22:\x22value\x22}','5791235qPDjQm','1819372GgXrgx','Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.','This\x20is\x20an\x20exact\x20lookup\x20by\x20appCode\x20+\x20functionName.\x20The\x20CLI\x20does\x20not\x20enumerate\x20BFF\x20functions\x20or\x20expose\x20platform-only\x20fields.','custom_sql_execute'];a1_0x1f8f=function(){return _0x385d25;};return a1_0x1f8f();}
1
+ const a1_0x3354bd=a1_0x8542;(function(_0x35675d,_0x1d7bb2){const _0x33a270=a1_0x8542,_0x2b58bc=_0x35675d();while(!![]){try{const _0x15e734=parseInt(_0x33a270(0xef))/0x1+parseInt(_0x33a270(0xd1))/0x2*(-parseInt(_0x33a270(0x13b))/0x3)+-parseInt(_0x33a270(0x12b))/0x4*(parseInt(_0x33a270(0x129))/0x5)+-parseInt(_0x33a270(0xe3))/0x6*(-parseInt(_0x33a270(0x10a))/0x7)+-parseInt(_0x33a270(0x114))/0x8+parseInt(_0x33a270(0xf8))/0x9+parseInt(_0x33a270(0x132))/0xa;if(_0x15e734===_0x1d7bb2)break;else _0x2b58bc['push'](_0x2b58bc['shift']());}catch(_0x3fd0f5){_0x2b58bc['push'](_0x2b58bc['shift']());}}}(a1_0x3ebf,0xb17dd));import{CliErrors}from'../../errors.js';function a1_0x3ebf(){const _0x4d674f=['operations\x20describes\x20runtime\x20APIs','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','需要按数据集\x20code\x20获取字段、表信息、关联关系(relations)或操作定义时使用','Returns\x20SQL\x20execution\x20payload','##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.','code','Current\x20app\x20code','str','List\x20datasets','51632fdPmAb','keyword','summary','GET','result\x20rows\x20contain\x20aggregate\x20aliases','Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result','path','where\x20filters\x20before\x20aggregation','需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用','API\x20doc\x20code\x20not\x20found:\x20','3205296ifZRAV','{\x22id\x22:123}','{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.','method','Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.','条件过滤查询数据','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.','length','whenToUse','dataset_data_create','dataset_detail','map','Aggregate\x20dataset\x20data','/api/{appCode}/{datasetCode}/filter','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.','执行自定义\x20SQL','分页获取数据集列表','dataset_list','bf_detail','api-doc','5MamdQc','category','1927304sYkVvQ','Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset','/api/dataset/getOneByCode?code={datasetCode}','/api/{appCode}/{datasetCode}/aggregate','CLI\x20returns\x20appCode/functionName/description/version/gmtModified','lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27','title','2846950tDyCGz','string','dataset_data_aggregate','/api/endpoint/{appCode}/{functionName}','/api/dataset/get-dataset-list-by-app-code','read','dataset_data_get_one','tableData\x20contains\x20records','##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.','586065envVIP','Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.','This\x20is\x20an\x20exact\x20lookup\x20by\x20appCode\x20+\x20functionName.\x20The\x20CLI\x20does\x20not\x20enumerate\x20BFF\x20functions\x20or\x20expose\x20platform-only\x20fields.','{\x22fieldName\x22:\x22value\x22}','List\x20available\x20runtime\x20API\x20documentation\x20entries','需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text','{\x22aggregate\x22:[{\x22column\x22:\x20\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27','##\x20Aggregate\x20dataset\x20data','Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.','lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>','##\x20List\x20datasets','toLowerCase','/api/{appCode}/{datasetCode}/getOne','2LKwlCJ','API\x20doc\x20code,\x20for\x20example\x20dataset_list','Get\x20one\x20dataset\x20record','##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.','##\x20Filter\x20dataset\x20data','trim','Get\x20BF\x20endpoint\x20function\x20contract','创建数据','join','/client/bff/endpoint/{appCode}/{functionName}','lovrabet\x20bff\x20detail\x20--name\x20<functionName>','This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:5}\x27','Show\x20runtime\x20API\x20documentation\x20by\x20code','validation','Execute\x20BF\x20endpoint\x20function','需要向指定数据集新增一条业务数据时使用','datasetCode','894SUCXEk','Execute\x20custom\x20SQL','32-character\x20dataset\x20code','CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.','{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','{\x22param\x22:\x22value\x22}','Dataset\x20detail','##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.','None','includes','已经从用户、平台\x20UI\x20或前序上下文确认函数名,需要查看该\x20ENDPOINT\x20的运行态元信息时使用','POST','412820PGIJQB','detail','Endpoint\x20function\x20name','dataset','appCode','list','lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27','按应用和函数名精确获取\x20BF\x20运行契约','dataset_data_filter','74781VvMYxH','paging.totalCount\x20gives\x20total\x20rows','paging\x20contains\x20pagination','lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress','functionName','已经知道记录\x20id,需要按数据集读取单条业务数据时使用','##\x20Get\x20BF\x20endpoint\x20function\x20contract\x0a\x0aInspect\x20one\x20known\x20endpoint\x20function\x20through\x20the\x20AK-authenticated\x20exact\x20detail\x20API.','Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.','Returns\x20one\x20matching\x20business\x20record'];a1_0x3ebf=function(){return _0x4d674f;};return a1_0x3ebf();}const CATEGORY_FLAG={'name':a1_0x3354bd(0x12a),'type':a1_0x3354bd(0x133),'description':a1_0x3354bd(0x12c)},KEYWORD_FLAG={'name':a1_0x3354bd(0x10b),'type':a1_0x3354bd(0x133),'description':a1_0x3354bd(0x141)},DOC_CODE_FLAG={'name':'code','type':a1_0x3354bd(0x133),'required':!![],'description':a1_0x3354bd(0xd2)},DOCS=[{'code':a1_0x3354bd(0x126),'category':a1_0x3354bd(0xf2),'title':a1_0x3354bd(0x109),'method':a1_0x3354bd(0xee),'path':a1_0x3354bd(0x136),'summary':a1_0x3354bd(0x125),'whenToUse':a1_0x3354bd(0x140),'pathParams':[],'queryParams':[],'bodySchema':a1_0x3354bd(0xe7),'responseHighlights':['tableData\x20contains\x20dataset\x20id/code/name',a1_0x3354bd(0xf9)],'examples':[a1_0x3354bd(0xfb)],'notes':[a1_0x3354bd(0xe6)],'markdown':[a1_0x3354bd(0x148),'','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.'][a1_0x3354bd(0xd9)]('\x0a')},{'code':a1_0x3354bd(0x11f),'category':a1_0x3354bd(0xf2),'title':a1_0x3354bd(0xe9),'method':a1_0x3354bd(0x10d),'path':a1_0x3354bd(0x12d),'summary':'获取数据集详情','whenToUse':a1_0x3354bd(0x103),'pathParams':[],'queryParams':[{'name':a1_0x3354bd(0x106),'description':a1_0x3354bd(0xe5)}],'bodySchema':a1_0x3354bd(0xeb),'responseHighlights':['fields/properties\x20describe\x20data\x20shape','relations\x20contains\x20the\x20object-shaped\x20API\x20relations\x20value\x20when\x20returned',a1_0x3354bd(0x101)],'examples':[a1_0x3354bd(0x147)],'notes':[a1_0x3354bd(0x117)],'markdown':['##\x20Dataset\x20detail','','Inspect\x20field\x20names,\x20relations,\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.'][a1_0x3354bd(0xd9)]('\x0a')},{'code':a1_0x3354bd(0xf7),'category':a1_0x3354bd(0xf2),'title':'Filter\x20dataset\x20data','method':'POST','path':a1_0x3354bd(0x122),'summary':a1_0x3354bd(0x11a),'whenToUse':'需要携带\x20where、orderBy、分页等条件读取业务数据时使用','pathParams':[{'name':a1_0x3354bd(0xf3),'description':a1_0x3354bd(0x107)},{'name':a1_0x3354bd(0xe2),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':a1_0x3354bd(0x116),'responseHighlights':[a1_0x3354bd(0x139),a1_0x3354bd(0xfa)],'examples':[a1_0x3354bd(0xdd)],'notes':[a1_0x3354bd(0x146)],'markdown':[a1_0x3354bd(0xd5),'',a1_0x3354bd(0x11b)][a1_0x3354bd(0xd9)]('\x0a')},{'code':a1_0x3354bd(0x134),'category':'dataset','title':a1_0x3354bd(0x121),'method':'POST','path':a1_0x3354bd(0x12e),'summary':'聚合查询数据集数据','whenToUse':a1_0x3354bd(0x112),'pathParams':[{'name':a1_0x3354bd(0xf3),'description':a1_0x3354bd(0x107)},{'name':a1_0x3354bd(0xe2),'description':a1_0x3354bd(0xe5)}],'queryParams':[],'bodySchema':a1_0x3354bd(0x142),'responseHighlights':[a1_0x3354bd(0x10e),a1_0x3354bd(0x111)],'examples':[a1_0x3354bd(0x102)],'notes':[a1_0x3354bd(0xff),'`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.'],'markdown':[a1_0x3354bd(0x145),'',a1_0x3354bd(0x123)][a1_0x3354bd(0xd9)]('\x0a')},{'code':a1_0x3354bd(0x138),'category':'dataset','title':a1_0x3354bd(0xd3),'method':a1_0x3354bd(0xee),'path':a1_0x3354bd(0xd0),'summary':'查询单条数据','whenToUse':a1_0x3354bd(0xfd),'pathParams':[{'name':a1_0x3354bd(0xf3),'description':'Current\x20app\x20code'},{'name':'datasetCode','description':a1_0x3354bd(0xe5)}],'queryParams':[],'bodySchema':a1_0x3354bd(0x115),'responseHighlights':[a1_0x3354bd(0x100)],'examples':[a1_0x3354bd(0x144)],'notes':['Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.'],'markdown':a1_0x3354bd(0x105)},{'code':a1_0x3354bd(0x11e),'category':a1_0x3354bd(0xf2),'title':'Create\x20dataset\x20record','method':a1_0x3354bd(0xee),'path':'/api/{appCode}/{datasetCode}/create','summary':a1_0x3354bd(0xd8),'whenToUse':a1_0x3354bd(0xe1),'pathParams':[{'name':a1_0x3354bd(0xf3),'description':a1_0x3354bd(0x107)},{'name':a1_0x3354bd(0xe2),'description':a1_0x3354bd(0xe5)}],'queryParams':[],'bodySchema':a1_0x3354bd(0x13e),'responseHighlights':[a1_0x3354bd(0x10f)],'examples':[a1_0x3354bd(0xf5)],'notes':[a1_0x3354bd(0xdc)],'markdown':a1_0x3354bd(0x13a)},{'code':a1_0x3354bd(0x127),'category':'bf','title':a1_0x3354bd(0xd7),'method':a1_0x3354bd(0x10d),'path':a1_0x3354bd(0xda),'summary':a1_0x3354bd(0xf6),'whenToUse':a1_0x3354bd(0xed),'pathParams':[{'name':a1_0x3354bd(0xf3),'description':'Current\x20app\x20code'},{'name':'functionName','description':'Exact\x20endpoint\x20function\x20name'}],'queryParams':[],'bodySchema':a1_0x3354bd(0xeb),'responseHighlights':[a1_0x3354bd(0x12f)],'examples':[a1_0x3354bd(0xdb)],'notes':[a1_0x3354bd(0x13d)],'markdown':a1_0x3354bd(0xfe)},{'code':'bf_execute','category':'bf','title':a1_0x3354bd(0xe0),'method':'POST','path':a1_0x3354bd(0x135),'summary':'执行指定\x20BF\x20函数','whenToUse':'已经确认目标\x20BF\x20的\x20functionName,且需要实际调用该\x20ENDPOINT\x20函数完成业务操作时使用','pathParams':[{'name':a1_0x3354bd(0xf3),'description':'Current\x20app\x20code'},{'name':a1_0x3354bd(0xfc),'description':a1_0x3354bd(0xf1)}],'queryParams':[],'bodySchema':a1_0x3354bd(0xe8),'responseHighlights':['Returns\x20script\x20business\x20payload'],'examples':[a1_0x3354bd(0x130)],'notes':[a1_0x3354bd(0x119)],'markdown':a1_0x3354bd(0xea)},{'code':'custom_sql_execute','category':'custom_sql','title':a1_0x3354bd(0xe4),'method':a1_0x3354bd(0xee),'path':'/api/custom/executeSql','summary':a1_0x3354bd(0x124),'whenToUse':a1_0x3354bd(0x143),'pathParams':[],'queryParams':[],'bodySchema':'{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','responseHighlights':[a1_0x3354bd(0x104)],'examples':['lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27'],'notes':[a1_0x3354bd(0x13c)],'markdown':a1_0x3354bd(0xd4)}];function entrySummary(_0x2abebe){const _0x4ad21a=a1_0x3354bd;return{'code':_0x2abebe[_0x4ad21a(0x106)],'category':_0x2abebe['category'],'method':_0x2abebe[_0x4ad21a(0x118)],'path':_0x2abebe[_0x4ad21a(0x110)],'summary':_0x2abebe[_0x4ad21a(0x10c)],'whenToUse':_0x2abebe[_0x4ad21a(0x11d)]};}export function listApiDocEntries(_0x241991={}){const _0xc23245=a1_0x3354bd,_0x12350e=String(_0x241991['category']||'')[_0xc23245(0xd6)](),_0x5f1d28=String(_0x241991[_0xc23245(0x10b)]||'')[_0xc23245(0xd6)]()[_0xc23245(0xcf)]();return DOCS['filter'](_0x3e1a51=>{const _0x46dc9a=_0xc23245;if(_0x12350e&&_0x3e1a51[_0x46dc9a(0x12a)]!==_0x12350e)return![];if(!_0x5f1d28)return!![];return[_0x3e1a51[_0x46dc9a(0x106)],_0x3e1a51[_0x46dc9a(0x12a)],_0x3e1a51[_0x46dc9a(0x118)],_0x3e1a51['path'],_0x3e1a51['summary'],_0x3e1a51['whenToUse'],_0x3e1a51[_0x46dc9a(0x131)]][_0x46dc9a(0xd9)]('\x20')[_0x46dc9a(0xcf)]()[_0x46dc9a(0xec)](_0x5f1d28);})[_0xc23245(0x120)](entrySummary);}export function getApiDocDetail(_0xcb7f6f){const _0x13deb7=a1_0x3354bd,_0x37a228=DOCS['find'](_0x37298a=>_0x37298a[_0x13deb7(0x106)]===_0xcb7f6f);if(!_0x37a228)throw CliErrors[_0x13deb7(0xdf)](_0x13deb7(0x113)+_0xcb7f6f);return{..._0x37a228};}function a1_0x8542(_0x4eaaba,_0x3e9160){_0x4eaaba=_0x4eaaba-0xcf;const _0x3ebf45=a1_0x3ebf();let _0x8542eb=_0x3ebf45[_0x4eaaba];return _0x8542eb;}const apiDocList={'service':a1_0x3354bd(0x128),'command':a1_0x3354bd(0xf4),'description':a1_0x3354bd(0x13f),'risk':'read','requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0x5eac43){const _0x5b8dc2=a1_0x3354bd,_0x375ecd=listApiDocEntries({'category':_0x5eac43[_0x5b8dc2(0x108)](_0x5b8dc2(0x12a)),'keyword':_0x5eac43['str']('keyword')});return{'ok':!![],'data':{'total':_0x375ecd[_0x5b8dc2(0x11c)],'items':_0x375ecd}};}},apiDocDetail={'service':a1_0x3354bd(0x128),'command':a1_0x3354bd(0xf0),'description':a1_0x3354bd(0xde),'risk':a1_0x3354bd(0x137),'requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0x10d809){const _0x4c01e1=a1_0x3354bd;return{'ok':!![],'data':getApiDocDetail(_0x10d809[_0x4c01e1(0x108)](_0x4c01e1(0x106)))};}};export const apiDocDefinitions=[apiDocList,apiDocDetail];
@@ -1 +1 @@
1
- (function(_0x27a35e,_0x27b0e8){const _0x1dce8f=a2_0x478b,_0x2efc19=_0x27a35e();while(!![]){try{const _0xb6c4f0=parseInt(_0x1dce8f(0x166))/0x1+-parseInt(_0x1dce8f(0x16b))/0x2*(-parseInt(_0x1dce8f(0x173))/0x3)+parseInt(_0x1dce8f(0x168))/0x4*(parseInt(_0x1dce8f(0x16c))/0x5)+-parseInt(_0x1dce8f(0x177))/0x6+-parseInt(_0x1dce8f(0x162))/0x7*(-parseInt(_0x1dce8f(0x163))/0x8)+-parseInt(_0x1dce8f(0x167))/0x9+parseInt(_0x1dce8f(0x171))/0xa*(-parseInt(_0x1dce8f(0x170))/0xb);if(_0xb6c4f0===_0x27b0e8)break;else _0x2efc19['push'](_0x2efc19['shift']());}catch(_0xe1cf64){_0x2efc19['push'](_0x2efc19['shift']());}}}(a2_0xde33,0xde235));import{createHash}from'node:crypto';function a2_0xde33(){const _0x1143aa=['48095sXSNnF','appName','slice','update','1122yXIGaX','3370uLZEcF','find','5541ncQuim','.tmp','cache','trim','10596156kNIjoA','unknown','code','EPERM','my-apps.json','parse','digest','8029742AHvWMV','8GQuRFF','utf8','EXDEV','533068JFZxlK','2776779PPHmpT','284pEmzWh','stringify','items','710TVPEhi'];a2_0xde33=function(){return _0x1143aa;};return a2_0xde33();}import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';import{dirname,resolve}from'node:path';import{PRODUCT_CONFIG}from'../../constant/product.js';import{isRuntimeAccessibleApp}from'../../commands/app/eligibility.js';export function fingerprintAccessKey(_0x4b09b7){const _0x372013=a2_0x478b,_0x2aff4e=_0x4b09b7[_0x372013(0x176)](),_0x1a8f70=_0x2aff4e[_0x372013(0x16e)](-0x6)||_0x372013(0x178),_0x2e2f30=createHash('sha256')[_0x372013(0x16f)](_0x2aff4e)[_0x372013(0x161)]('hex')[_0x372013(0x16e)](0x0,0xc);return'ak_'+_0x1a8f70+'_'+_0x2e2f30;}export function getAppCacheFilePath(_0x3de90a,_0x48b1ed){const _0x215ef8=a2_0x478b;return resolve(homedir(),PRODUCT_CONFIG['homeDirName'],_0x215ef8(0x175),_0x3de90a,fingerprintAccessKey(_0x48b1ed),_0x215ef8(0x17b));}export function readCachedAppList(_0x107380,_0x21fb1b){const _0x3749d2=a2_0x478b;if(!_0x21fb1b?.[_0x3749d2(0x176)]())return null;const _0x2d8967=getAppCacheFilePath(_0x107380,_0x21fb1b);if(!existsSync(_0x2d8967))return null;try{const _0xe6e8c4=readFileSync(_0x2d8967,_0x3749d2(0x164));if(!_0xe6e8c4['trim']())return null;const _0x25f346=JSON[_0x3749d2(0x17c)](_0xe6e8c4);if(!Array['isArray'](_0x25f346['items']))return null;return _0x25f346;}catch{return null;}}export function writeCachedAppList(_0x19a59e,_0x1fa4f0,_0x2ae389){const _0x26ff34=a2_0x478b,_0x2ab651=getAppCacheFilePath(_0x19a59e,_0x1fa4f0),_0x507f15=dirname(_0x2ab651);!existsSync(_0x507f15)&&mkdirSync(_0x507f15,{'recursive':!![]});const _0x145fdd=_0x2ab651+_0x26ff34(0x174);try{writeFileSync(_0x145fdd,JSON[_0x26ff34(0x169)](_0x2ae389,null,0x2)+'\x0a',{'encoding':_0x26ff34(0x164),'mode':0x180});try{renameSync(_0x145fdd,_0x2ab651);}catch(_0x5574e5){if(_0x5574e5['code']===_0x26ff34(0x17a)||_0x5574e5[_0x26ff34(0x179)]===_0x26ff34(0x165)||_0x5574e5['code']==='EACCES'){writeFileSync(_0x2ab651,JSON[_0x26ff34(0x169)](_0x2ae389,null,0x2)+'\x0a',{'encoding':_0x26ff34(0x164)});try{unlinkSync(_0x145fdd);}catch{}}else throw _0x5574e5;}}catch(_0x276be7){try{unlinkSync(_0x145fdd);}catch{}throw _0x276be7;}return _0x2ab651;}function a2_0x478b(_0x1aa657,_0x4d33d5){_0x1aa657=_0x1aa657-0x161;const _0xde33da=a2_0xde33();let _0x478b2e=_0xde33da[_0x1aa657];return _0x478b2e;}export function resolveCachedAppCode(_0x4ed608,_0x28e2a3,_0x147b76){const _0x505f12=a2_0x478b;if(!_0x4ed608)return undefined;const _0x1ffb5b=readCachedAppList(_0x28e2a3,_0x147b76),_0x48978b=_0x1ffb5b?.[_0x505f12(0x16a)][_0x505f12(0x172)](_0x13b93d=>_0x13b93d[_0x505f12(0x16d)]===_0x4ed608&&isRuntimeAccessibleApp(_0x13b93d));return _0x48978b?.['appCode']?.['trim']()||undefined;}
1
+ function a2_0xd9ec(_0x41faa7,_0x3eb8ab){_0x41faa7=_0x41faa7-0x19a;const _0x466625=a2_0x4666();let _0xd9ec3b=_0x466625[_0x41faa7];return _0xd9ec3b;}(function(_0x4acf8c,_0x183409){const _0x4788eb=a2_0xd9ec,_0x5ce445=_0x4acf8c();while(!![]){try{const _0x501f4a=-parseInt(_0x4788eb(0x1ab))/0x1*(parseInt(_0x4788eb(0x19e))/0x2)+-parseInt(_0x4788eb(0x1a5))/0x3*(parseInt(_0x4788eb(0x1ba))/0x4)+parseInt(_0x4788eb(0x1a4))/0x5*(-parseInt(_0x4788eb(0x19a))/0x6)+parseInt(_0x4788eb(0x1bd))/0x7*(parseInt(_0x4788eb(0x1bc))/0x8)+-parseInt(_0x4788eb(0x1aa))/0x9*(parseInt(_0x4788eb(0x1a7))/0xa)+parseInt(_0x4788eb(0x19f))/0xb*(-parseInt(_0x4788eb(0x19b))/0xc)+parseInt(_0x4788eb(0x1a2))/0xd;if(_0x501f4a===_0x183409)break;else _0x5ce445['push'](_0x5ce445['shift']());}catch(_0x5804ed){_0x5ce445['push'](_0x5ce445['shift']());}}}(a2_0x4666,0x4ff99));import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';import{dirname,resolve}from'node:path';import{PRODUCT_CONFIG}from'../../constant/product.js';import{isRuntimeAccessibleApp}from'../../commands/app/eligibility.js';export function fingerprintAccessKey(_0x7a8c69){const _0x5bd4b7=a2_0xd9ec,_0x4e2d72=_0x7a8c69[_0x5bd4b7(0x1a6)](),_0x796e48=_0x4e2d72[_0x5bd4b7(0x1a0)](-0x6)||_0x5bd4b7(0x1b2),_0x593262=createHash(_0x5bd4b7(0x1af))[_0x5bd4b7(0x1b4)](_0x4e2d72)[_0x5bd4b7(0x19d)](_0x5bd4b7(0x1ae))[_0x5bd4b7(0x1a0)](0x0,0xc);return'ak_'+_0x796e48+'_'+_0x593262;}export function getAppCacheFilePath(_0x162871,_0x1f2c5c){const _0xaecbd9=a2_0xd9ec;return resolve(homedir(),PRODUCT_CONFIG[_0xaecbd9(0x1b0)],_0xaecbd9(0x1b9),_0x162871,fingerprintAccessKey(_0x1f2c5c),_0xaecbd9(0x1b7));}export function readCachedAppList(_0x158fa9,_0xda71d1){const _0x187356=a2_0xd9ec;if(!_0xda71d1?.['trim']())return null;const _0x39bba6=getAppCacheFilePath(_0x158fa9,_0xda71d1);if(!existsSync(_0x39bba6))return null;try{const _0x4171a9=readFileSync(_0x39bba6,_0x187356(0x1a1));if(!_0x4171a9[_0x187356(0x1a6)]())return null;const _0x41e227=JSON[_0x187356(0x1b6)](_0x4171a9);if(!Array[_0x187356(0x1bb)](_0x41e227[_0x187356(0x1b3)]))return null;return _0x41e227;}catch{return null;}}export function writeCachedAppList(_0x13469e,_0x49a11a,_0x51be1f){const _0x3f3367=a2_0xd9ec,_0x3b5868=getAppCacheFilePath(_0x13469e,_0x49a11a),_0x422b6f=dirname(_0x3b5868);!existsSync(_0x422b6f)&&mkdirSync(_0x422b6f,{'recursive':!![]});const _0x317be4=_0x3b5868+_0x3f3367(0x1b1);try{writeFileSync(_0x317be4,JSON['stringify'](_0x51be1f,null,0x2)+'\x0a',{'encoding':_0x3f3367(0x1a1),'mode':0x180});try{renameSync(_0x317be4,_0x3b5868);}catch(_0x392bfa){if(_0x392bfa[_0x3f3367(0x1b5)]===_0x3f3367(0x1b8)||_0x392bfa[_0x3f3367(0x1b5)]===_0x3f3367(0x1a3)||_0x392bfa['code']===_0x3f3367(0x19c)){writeFileSync(_0x3b5868,JSON[_0x3f3367(0x1ac)](_0x51be1f,null,0x2)+'\x0a',{'encoding':_0x3f3367(0x1a1)});try{unlinkSync(_0x317be4);}catch{}}else throw _0x392bfa;}}catch(_0x37ef3){try{unlinkSync(_0x317be4);}catch{}throw _0x37ef3;}return _0x3b5868;}export function resolveCachedAppCode(_0x19ad33,_0x3752c7,_0x48d80c){const _0x23c82b=a2_0xd9ec;if(!_0x19ad33)return undefined;const _0x44662a=readCachedAppList(_0x3752c7,_0x48d80c),_0x10f3a=_0x44662a?.[_0x23c82b(0x1b3)][_0x23c82b(0x1ad)](_0x19cbe9=>_0x19cbe9[_0x23c82b(0x1a9)]===_0x19ad33&&isRuntimeAccessibleApp(_0x19cbe9));return _0x10f3a?.[_0x23c82b(0x1a8)]?.[_0x23c82b(0x1a6)]()||undefined;}function a2_0x4666(){const _0x47efbf=['.tmp','unknown','items','update','code','parse','my-apps.json','EPERM','cache','61816vWtlse','isArray','54424VVgjHh','21VPjRAA','119754HUDzxT','1741416akyKkL','EACCES','digest','964QRgTdJ','22ToMuYR','slice','utf8','17052217vLGTsK','EXDEV','5bEveiU','9orhnVj','trim','2287970wIBbbn','appCode','appName','18FuyTQa','395WVpKFY','stringify','find','hex','sha256','homeDirName'];a2_0x4666=function(){return _0x47efbf;};return a2_0x4666();}
@@ -1 +1 @@
1
- const a3_0x16b609=a3_0x54cb;(function(_0x1f5396,_0x1bfb7e){const _0x50036a=a3_0x54cb,_0x2164f6=_0x1f5396();while(!![]){try{const _0x497c39=-parseInt(_0x50036a(0x140))/0x1+-parseInt(_0x50036a(0x141))/0x2+-parseInt(_0x50036a(0x186))/0x3+parseInt(_0x50036a(0x133))/0x4*(parseInt(_0x50036a(0x17d))/0x5)+-parseInt(_0x50036a(0x17b))/0x6+parseInt(_0x50036a(0x14c))/0x7+parseInt(_0x50036a(0x181))/0x8;if(_0x497c39===_0x1bfb7e)break;else _0x2164f6['push'](_0x2164f6['shift']());}catch(_0x3999f9){_0x2164f6['push'](_0x2164f6['shift']());}}}(a3_0x3fb5,0x210b7));import{CliErrors}from'../../errors.js';import{initCreateFlagDefs,initImportFlagDefs,runInit,runInitImport}from'../../commands/init.js';function a3_0x3fb5(){const _0x2addfc=['835lgRZVS','appcode','project-default','filter','3233376uyZXeQ','find','warn','fetchedAt','args','394209ClIpVi','No\x20apps\x20found\x20on\x20the\x20platform.','\x22\x20not\x20found.','No\x20cached\x20apps\x20found.','Usage:\x20','cache','str','from','nonInteractive','1420dRUUwK','Read\x20from\x20local\x20cache\x20only','langs','envName','remote','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','../../commands/app/cache.js','\x20app\x20use\x20<name>\x20[--global]','Deprecated:\x20use\x20workspace\x20use\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','\x20app(s)\x20for\x20env=\x22','Loaded\x20','list','mergedCli','265935rMWXnZ','363450EXvwBq','source','map','entries','appName','Missing\x20app\x20name.','app','Use\x20`','production','accessKey','\x20app\x20','1829982FMegIz','\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.','enableI18n','App\x20\x22','read','Remote\x20app\x20name\x20to\x20activate','env','init','write','.appcode\x20to\x20.lovrabet.json.','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','\x20workspace\x20use\x20--app\x20<name>\x20[--env\x20daily]','\x20cached\x20app(s)\x20for\x20env=\x22','boolean','defaultApp','appCode','bool','Use\x20global\x20config\x20scope','projectPath','items','use','Include\x20unpublished\x20apps\x20for\x20diagnostics','../../commands/app/remote-source.js','Read\x20app\x20list\x20from\x20local\x20cache\x20only','Filter\x20by\x20environment\x20(default:\x20current\x20env)','../../context.js','join','Refreshed\x20app\x20cache\x20with\x20','Target\x20environment\x20(default:\x20current\x20env)','config','Deprecated:\x20use\x20workspace\x20init\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','local','length','raw','global','no-cache','name','string','trim','Available\x20remote\x20apps:\x20','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','pull','import','cachePath','validation','push','62814EBYTad','.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.'];a3_0x3fb5=function(){return _0x2addfc;};return a3_0x3fb5();}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_0x16b609(0x16e),'type':a3_0x16b609(0x159),'description':a3_0x16b609(0x15d),'default':![]};function collectFlags(_0x229009,_0x3749b6){const _0x520301=a3_0x16b609,_0x11eeda={};for(const _0x51ddd2 of _0x3749b6){const _0xb7611b=_0x51ddd2['type']===_0x520301(0x159)?_0x229009['bool'](_0x51ddd2[_0x520301(0x170)]):_0x229009['str'](_0x51ddd2[_0x520301(0x170)]);if(_0xb7611b!==''&&_0xb7611b!==![])_0x11eeda[_0x51ddd2[_0x520301(0x170)]]=_0xb7611b;}if(_0x229009[_0x520301(0x132)])_0x11eeda[_0x520301(0x132)]=!![];return _0x11eeda;}function normalizeLanguages(_0x33f6f7){const _0x3be6fe=a3_0x16b609;if(!Array['isArray'](_0x33f6f7))return[];return _0x33f6f7[_0x3be6fe(0x180)](_0x39ffb8=>typeof _0x39ffb8===_0x3be6fe(0x171))[_0x3be6fe(0x143)](_0x484068=>_0x484068[_0x3be6fe(0x172)]())[_0x3be6fe(0x180)](Boolean);}function buildRemoteAppI18nFields(_0xe5e603){const _0x175158=a3_0x16b609,_0x2ab11b=normalizeLanguages(_0xe5e603['i18nInfo']?.[_0x175158(0x135)]);return{'enableI18n':typeof _0xe5e603[_0x175158(0x14e)]===_0x175158(0x159)?_0xe5e603[_0x175158(0x14e)]:null,'languages':_0x2ab11b,'i18nInfo':_0xe5e603['i18nInfo']?{..._0xe5e603['i18nInfo'],'langs':_0x2ab11b[_0x175158(0x16c)]?_0x2ab11b:null}:null};}const initDef={'service':a3_0x16b609(0x147),'command':a3_0x16b609(0x153),'description':a3_0x16b609(0x16a),'risk':a3_0x16b609(0x154),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x1f1556){const _0x8fb7b1=a3_0x16b609;return warnDeprecatedAppCommand(_0x8fb7b1(0x153),CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>\x20[--env\x20daily]'),await runInit(collectFlags(_0x1f1556,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a3_0x16b609(0x147),'command':a3_0x16b609(0x13e),'description':a3_0x16b609(0x156),'risk':a3_0x16b609(0x150),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a3_0x16b609(0x152),'type':a3_0x16b609(0x171),'description':a3_0x16b609(0x164),'enum':[...RUNTIME_ENV_VALUES]},{'name':'local','type':a3_0x16b609(0x159),'description':a3_0x16b609(0x163),'default':![]},{'name':a3_0x16b609(0x16f),'type':a3_0x16b609(0x159),'description':a3_0x16b609(0x138),'default':![]},{'name':'include-unpublished','type':a3_0x16b609(0x159),'description':a3_0x16b609(0x161),'default':![]}],async 'execute'(_0x171c44){const _0x59771b=a3_0x16b609,_0x449eee=_0x171c44[_0x59771b(0x130)](_0x59771b(0x152))||_0x171c44[_0x59771b(0x136)]||getEnv()||_0x59771b(0x149),_0x26df18=_0x171c44[_0x59771b(0x15c)](_0x59771b(0x16b)),_0x1ac9c6=_0x171c44['bool'](_0x59771b(0x16f)),_0x2b3a7c=_0x171c44[_0x59771b(0x15c)]('include-unpublished'),{readRawConfigWithLayers:_0x20c9ed,resolveDefaultAppSource:_0x29c370,getLocalAppAliases:_0x34e8f5}=await import(_0x59771b(0x165)),{getRemoteAppList:_0x3bea75}=await import(_0x59771b(0x162)),{config:_0x50ce47,layers:_0x35de76}=_0x20c9ed(),_0xfe1d00=_0x29c370(_0x35de76),{defaultApp:_0x361480}=_0x50ce47,_0x1156d9=await _0x3bea75({'env':_0x449eee,'accessKey':_0x171c44[_0x59771b(0x14a)],'localOnly':_0x26df18,'noCache':_0x1ac9c6}),_0x350293=_0x2b3a7c?_0x1156d9[_0x59771b(0x15f)]:filterRuntimeAccessibleApps(_0x1156d9['items']),_0x388485=_0x1156d9[_0x59771b(0x15f)][_0x59771b(0x16c)]-_0x350293[_0x59771b(0x16c)],_0x4fbb19=_0x350293[_0x59771b(0x143)](_0x51d7b1=>{const _0x431b07=_0x59771b;return{'name':_0x51d7b1[_0x431b07(0x145)],'appcode':_0x51d7b1[_0x431b07(0x15b)],'named':!![],'definedIn':_0x431b07(0x137),'isDefault':_0x51d7b1[_0x431b07(0x145)]===_0x361480,...buildAppProfileListFields(_0x449eee),...buildRemoteAppI18nFields(_0x51d7b1),'source':_0x1156d9[_0x431b07(0x142)],'owner':_0x51d7b1['appOwnerName']??null,'status':_0x51d7b1['appPublishStatus']??null,'cachedAt':_0x1156d9[_0x431b07(0x184)]};}),_0x5a36f3=_0x34e8f5(_0x50ce47);let _0x17dbb8=0x0;for(const [_0x42765e,_0x2838c9]of Object[_0x59771b(0x144)](_0x5a36f3)){const _0x326fe3=typeof _0x2838c9[_0x59771b(0x17e)]===_0x59771b(0x171)?_0x2838c9[_0x59771b(0x17e)]['trim']():'';if(!_0x326fe3)continue;const _0x1f9ebf=findAppByCode(_0x1156d9[_0x59771b(0x15f)],_0x326fe3);if(!_0x2b3a7c&&_0x1f9ebf&&!isRuntimeAccessibleApp(_0x1f9ebf))continue;_0x17dbb8+=0x1,_0x4fbb19[_0x59771b(0x17a)]({'name':_0x42765e,'appcode':_0x326fe3,'named':!![],'definedIn':_0x59771b(0x16b),'isDefault':_0x42765e===_0x361480,...buildAppProfileListFields(_0x449eee),'source':_0x59771b(0x169),'owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x4fbb19,_0x171c44[_0x59771b(0x13f)]);const _0x17c691=_0x4fbb19['find'](_0x5c43b9=>_0x5c43b9['isCurrent']===!![]),_0x46b635=_0x361480??_0x17c691?.['name']??null,_0x4bd229={'env':_0x449eee,'source':_0x1156d9['source'],'fetchedAt':_0x1156d9['fetchedAt'],'cachePath':_0x1156d9[_0x59771b(0x178)],'globalPath':_0x35de76['globalPath']??null,'projectPath':_0x35de76[_0x59771b(0x15e)]??null,'defaultApp':_0x46b635,'defaultAppSource':_0x361480!=null?_0xfe1d00:null,'localAliasCount':_0x17dbb8,'remoteTotal':_0x1156d9['items'][_0x59771b(0x16c)],'hiddenUnpublishedCount':_0x388485,'includeUnpublished':_0x2b3a7c};if(_0x4fbb19['length']===0x0)return{'ok':!![],'data':{'items':_0x4fbb19,'meta':_0x4bd229},'message':_0x1156d9[_0x59771b(0x142)]===_0x59771b(0x18b)?_0x59771b(0x189):_0x59771b(0x187)};return{'ok':!![],'data':{'items':_0x4fbb19,'meta':_0x4bd229}};}},pullDef={'service':a3_0x16b609(0x147),'command':a3_0x16b609(0x176),'description':a3_0x16b609(0x174),'risk':'write','requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a3_0x16b609(0x152),'type':a3_0x16b609(0x171),'description':a3_0x16b609(0x168),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x16b609(0x16b),'type':a3_0x16b609(0x159),'description':a3_0x16b609(0x134),'default':![]},{'name':a3_0x16b609(0x16f),'type':'boolean','description':a3_0x16b609(0x138),'default':![]}],async 'execute'(_0x423524){const _0x1e19d9=a3_0x16b609,_0x4b88e2=_0x423524[_0x1e19d9(0x130)]('env')||_0x423524[_0x1e19d9(0x136)]||getEnv()||'production',_0x45761a=_0x423524[_0x1e19d9(0x15c)](_0x1e19d9(0x16b)),_0x3767a5=_0x423524[_0x1e19d9(0x15c)](_0x1e19d9(0x16f)),{getRemoteAppList:_0x3aa716}=await import(_0x1e19d9(0x162)),_0x5884ce=await _0x3aa716({'env':_0x4b88e2,'accessKey':_0x423524[_0x1e19d9(0x14a)],'localOnly':_0x45761a,'noCache':_0x3767a5});return{'ok':!![],'data':{'total':_0x5884ce[_0x1e19d9(0x15f)]['length'],'env':_0x4b88e2,'source':_0x5884ce[_0x1e19d9(0x142)],'fetchedAt':_0x5884ce[_0x1e19d9(0x184)],'cachePath':_0x5884ce[_0x1e19d9(0x178)]},'message':_0x5884ce[_0x1e19d9(0x142)]===_0x1e19d9(0x18b)?_0x1e19d9(0x13d)+_0x5884ce['items'][_0x1e19d9(0x16c)]+_0x1e19d9(0x158)+_0x4b88e2+'\x22.':_0x1e19d9(0x167)+_0x5884ce['items']['length']+_0x1e19d9(0x13c)+_0x4b88e2+'\x22.'};}},useDef={'service':a3_0x16b609(0x147),'command':a3_0x16b609(0x160),'description':a3_0x16b609(0x13b),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'name','description':a3_0x16b609(0x151),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x531a87){const _0x52f476=a3_0x16b609;if(!_0x531a87[_0x52f476(0x185)][0x0])throw CliErrors['validation'](_0x52f476(0x146),'Usage:\x20'+CLI_BIN_NAME+'\x20app\x20use\x20<name>\x20[--global]');},async 'execute'(_0x4d6f38){const _0x41025f=a3_0x16b609;warnDeprecatedAppCommand(_0x41025f(0x160),CLI_BIN_NAME+_0x41025f(0x157));const _0x43db82=_0x4d6f38[_0x41025f(0x185)][0x0];if(!_0x43db82)throw CliErrors[_0x41025f(0x179)](_0x41025f(0x146),_0x41025f(0x18a)+CLI_BIN_NAME+_0x41025f(0x13a));const {buildConfigFromFlags:_0x82bb1c,resolveLocalAppAliasCode:_0x193ee2}=await import(_0x41025f(0x165)),{readCachedAppList:_0x3312c2}=await import(_0x41025f(0x139)),_0x74b779=_0x4d6f38['str'](_0x41025f(0x152)),_0x28413c=_0x82bb1c(_0x74b779?{'env':_0x74b779}:{}),_0x173d9d=_0x3312c2(_0x28413c['env'],_0x28413c[_0x41025f(0x14a)]),_0x327bad=_0x173d9d?.['items'][_0x41025f(0x182)](_0x26fe7e=>_0x26fe7e['appName']===_0x43db82),_0x13f0b8=_0x193ee2(_0x28413c[_0x41025f(0x16d)]??{},_0x43db82);if(_0x327bad&&!isRuntimeAccessibleApp(_0x327bad))throw runtimeInaccessibleAppError(_0x327bad,'\x22'+_0x43db82+'\x22');if(_0x13f0b8){const _0x32f88f=_0x173d9d?.[_0x41025f(0x15f)][_0x41025f(0x182)](_0x1d5068=>_0x1d5068[_0x41025f(0x15b)]?.['trim']()===_0x13f0b8);if(_0x32f88f&&!isRuntimeAccessibleApp(_0x32f88f))throw runtimeInaccessibleAppError(_0x32f88f,'\x22'+_0x43db82+'\x22');}if(!_0x327bad&&!_0x13f0b8&&_0x28413c[_0x41025f(0x15a)]!==_0x43db82){const _0x436657=[..._0x173d9d?.['items'][_0x41025f(0x143)](_0x386392=>_0x386392[_0x41025f(0x145)])??[]],_0x5d83a2=_0x436657[_0x41025f(0x16c)]===0x0?_0x41025f(0x148)+CLI_BIN_NAME+_0x41025f(0x14d)+_0x43db82+_0x41025f(0x155):_0x41025f(0x173)+Array[_0x41025f(0x131)](new Set(_0x436657))[_0x41025f(0x166)](',\x20')+_0x41025f(0x17c);throw CliErrors['validation'](_0x41025f(0x14f)+_0x43db82+_0x41025f(0x188),_0x5d83a2);}const _0x4c8dd5=_0x4d6f38['bool']('global');let _0x4bb590;if(_0x4c8dd5)_0x4bb590={'global':!![]};else{const {isInProject:_0x3d799b}=await import(_0x41025f(0x165)),_0x189f02=_0x3d799b();_0x4bb590=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0x41025f(0x17f),'inProject':_0x189f02}));}const _0x17f228=readConfig(_0x4bb590);return _0x17f228['defaultApp']=_0x43db82,writeConfig(_0x17f228,_0x4bb590),{'ok':!![],'message':'Default\x20app\x20candidate\x20set\x20to\x20\x22'+_0x43db82+'\x22'+scopeLabel(_0x4bb590)+'.'};}};function warnDeprecatedAppCommand(_0x290c3d,_0x5ede19){const _0x4426af=a3_0x16b609;console[_0x4426af(0x183)](CLI_BIN_NAME+_0x4426af(0x14b)+_0x290c3d+'\x20is\x20deprecated.\x20Use\x20`'+_0x5ede19+'`\x20instead.');}function a3_0x54cb(_0x1fac5a,_0x16d99e){_0x1fac5a=_0x1fac5a-0x130;const _0x3fb5b7=a3_0x3fb5();let _0x54cb97=_0x3fb5b7[_0x1fac5a];return _0x54cb97;}const importDef={'service':a3_0x16b609(0x147),'command':a3_0x16b609(0x177),'description':a3_0x16b609(0x175),'risk':a3_0x16b609(0x154),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x563398){return await runInitImport(collectFlags(_0x563398,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
1
+ const a3_0x2f985f=a3_0x3566;(function(_0x5c96de,_0x680c13){const _0x2104e7=a3_0x3566,_0x4eeeff=_0x5c96de();while(!![]){try{const _0x17618f=-parseInt(_0x2104e7(0x1bc))/0x1*(-parseInt(_0x2104e7(0x1c9))/0x2)+-parseInt(_0x2104e7(0x1ff))/0x3*(-parseInt(_0x2104e7(0x1cb))/0x4)+parseInt(_0x2104e7(0x1b6))/0x5+-parseInt(_0x2104e7(0x1dc))/0x6*(-parseInt(_0x2104e7(0x1ad))/0x7)+-parseInt(_0x2104e7(0x1c6))/0x8*(-parseInt(_0x2104e7(0x1fe))/0x9)+parseInt(_0x2104e7(0x1e9))/0xa+-parseInt(_0x2104e7(0x1bd))/0xb;if(_0x17618f===_0x680c13)break;else _0x4eeeff['push'](_0x4eeeff['shift']());}catch(_0x282fd6){_0x4eeeff['push'](_0x4eeeff['shift']());}}}(a3_0x1240,0xe291b));import{CliErrors}from'../../errors.js';function a3_0x3566(_0xc6adc1,_0x36420c){_0xc6adc1=_0xc6adc1-0x1a7;const _0x124008=a3_0x1240();let _0x3566e8=_0x124008[_0xc6adc1];return _0x3566e8;}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_0x2f985f(0x1ea),'type':a3_0x2f985f(0x1f3),'description':a3_0x2f985f(0x1eb),'default':![]};function collectFlags(_0x50f4d2,_0x12c212){const _0x338916=a3_0x2f985f,_0x102af1={};for(const _0x213b04 of _0x12c212){const _0x31912c=_0x213b04[_0x338916(0x1f4)]===_0x338916(0x1f3)?_0x50f4d2[_0x338916(0x1c0)](_0x213b04[_0x338916(0x1ed)]):_0x50f4d2[_0x338916(0x1df)](_0x213b04[_0x338916(0x1ed)]);if(_0x31912c!==''&&_0x31912c!==![])_0x102af1[_0x213b04[_0x338916(0x1ed)]]=_0x31912c;}if(_0x50f4d2[_0x338916(0x1e3)])_0x102af1[_0x338916(0x1e3)]=!![];return _0x102af1;}function normalizeLanguages(_0x505ede){const _0x2c7c94=a3_0x2f985f;if(!Array[_0x2c7c94(0x1b5)](_0x505ede))return[];return _0x505ede['filter'](_0x5a7ed7=>typeof _0x5a7ed7==='string')[_0x2c7c94(0x1f0)](_0x142c17=>_0x142c17[_0x2c7c94(0x1b3)]())[_0x2c7c94(0x1fd)](Boolean);}function a3_0x1240(){const _0x343ce1=['enableI18n','\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.','../../commands/app/remote-source.js','Filter\x20by\x20environment\x20(default:\x20current\x20env)','cachePath','App\x20\x22','validation','Available\x20remote\x20apps:\x20','langs','Target\x20environment\x20(default:\x20current\x20env)','74634sJLrVK','\x20workspace\x20use\x20--app\x20<name>\x20[--env\x20daily]','production','Loaded\x20','defaultApp','appPublishStatus','trim','env','isArray','8275220jplUsz','Remote\x20app\x20name\x20to\x20activate','.appcode\x20to\x20.lovrabet.json.','list','fetchedAt','write','20593sLOHde','70842783dLhyZW','source','\x22\x20not\x20found.','bool','appcode','warn','find','Default\x20app\x20candidate\x20set\x20to\x20\x22','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','23984OemoFe','string','cache','138jQuWvr','entries','2488396iknWxL','../../context.js','pull','Deprecated:\x20use\x20workspace\x20init\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','include-unpublished','Include\x20unpublished\x20apps\x20for\x20diagnostics','project-default','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','globalPath','i18nInfo','config','\x20app(s)\x20for\x20env=\x22','app','push','../../commands/app/cache.js','local','Refreshed\x20app\x20cache\x20with\x20','744piiXDA','isCurrent','envName','str','appOwnerName','accessKey','init','nonInteractive','Missing\x20app\x20name.','Usage:\x20','Deprecated:\x20use\x20workspace\x20use\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','No\x20cached\x20apps\x20found.','raw','5313440zJwZKb','global','Use\x20global\x20config\x20scope','args','name','use','Use\x20`','map','.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.','\x20is\x20deprecated.\x20Use\x20`','boolean','type','\x20cached\x20app(s)\x20for\x20env=\x22','no-cache','length','\x20workspace\x20init\x20--appcode\x20<code>\x20[--env\x20daily]','appName','\x20app\x20use\x20<name>\x20[--global]','items','read','filter','5454rKTxLy','3xGzeaK','appCode','mergedCli','import'];a3_0x1240=function(){return _0x343ce1;};return a3_0x1240();}function buildRemoteAppI18nFields(_0x16ab03){const _0x5723cf=a3_0x2f985f,_0x591a14=normalizeLanguages(_0x16ab03[_0x5723cf(0x1d4)]?.[_0x5723cf(0x1ab)]);return{'enableI18n':typeof _0x16ab03[_0x5723cf(0x203)]===_0x5723cf(0x1f3)?_0x16ab03[_0x5723cf(0x203)]:null,'languages':_0x591a14,'i18nInfo':_0x16ab03[_0x5723cf(0x1d4)]?{..._0x16ab03[_0x5723cf(0x1d4)],'langs':_0x591a14[_0x5723cf(0x1f7)]?_0x591a14:null}:null};}const initDef={'service':a3_0x2f985f(0x1d7),'command':'init','description':a3_0x2f985f(0x1ce),'risk':a3_0x2f985f(0x1bb),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x4e727a){const _0x20d091=a3_0x2f985f;return warnDeprecatedAppCommand(_0x20d091(0x1e2),CLI_BIN_NAME+_0x20d091(0x1f8)),await runInit(collectFlags(_0x4e727a,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a3_0x2f985f(0x1d7),'command':a3_0x2f985f(0x1b9),'description':'List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','risk':a3_0x2f985f(0x1fc),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':'env','type':a3_0x2f985f(0x1c7),'description':a3_0x2f985f(0x206),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x2f985f(0x1da),'type':a3_0x2f985f(0x1f3),'description':'Read\x20app\x20list\x20from\x20local\x20cache\x20only','default':![]},{'name':a3_0x2f985f(0x1f6),'type':a3_0x2f985f(0x1f3),'description':a3_0x2f985f(0x1d2),'default':![]},{'name':a3_0x2f985f(0x1cf),'type':a3_0x2f985f(0x1f3),'description':a3_0x2f985f(0x1d0),'default':![]}],async 'execute'(_0x2ad9be){const _0x226847=a3_0x2f985f,_0x5d930d=_0x2ad9be['str'](_0x226847(0x1b4))||_0x2ad9be['envName']||getEnv()||_0x226847(0x1af),_0x3534d3=_0x2ad9be[_0x226847(0x1c0)]('local'),_0x1a82c1=_0x2ad9be[_0x226847(0x1c0)]('no-cache'),_0x5be188=_0x2ad9be[_0x226847(0x1c0)]('include-unpublished'),{readRawConfigWithLayers:_0x59f262,resolveDefaultAppSource:_0x378592,getLocalAppAliases:_0x5bcd15}=await import('../../context.js'),{getRemoteAppList:_0x663241}=await import(_0x226847(0x205)),{config:_0x23c102,layers:_0x5333e3}=_0x59f262(),_0x25e8d4=_0x378592(_0x5333e3),{defaultApp:_0x3f12a9}=_0x23c102,_0x572950=await _0x663241({'env':_0x5d930d,'accessKey':_0x2ad9be[_0x226847(0x1e1)],'localOnly':_0x3534d3,'noCache':_0x1a82c1}),_0xf51ff7=_0x5be188?_0x572950[_0x226847(0x1fb)]:filterRuntimeAccessibleApps(_0x572950[_0x226847(0x1fb)]),_0x4677e7=_0x572950['items'][_0x226847(0x1f7)]-_0xf51ff7[_0x226847(0x1f7)],_0x17928a=_0xf51ff7[_0x226847(0x1f0)](_0x4b4de9=>{const _0x14cd69=_0x226847;return{'name':_0x4b4de9[_0x14cd69(0x1f9)],'appcode':_0x4b4de9[_0x14cd69(0x200)],'named':!![],'definedIn':'remote','isDefault':_0x4b4de9[_0x14cd69(0x1f9)]===_0x3f12a9,...buildAppProfileListFields(_0x5d930d),...buildRemoteAppI18nFields(_0x4b4de9),'source':_0x572950[_0x14cd69(0x1be)],'owner':_0x4b4de9[_0x14cd69(0x1e0)]??null,'status':_0x4b4de9[_0x14cd69(0x1b2)]??null,'cachedAt':_0x572950[_0x14cd69(0x1ba)]};}),_0x4ac3b4=_0x5bcd15(_0x23c102);let _0x1b7f13=0x0;for(const [_0x5a68cf,_0x4eac4d]of Object[_0x226847(0x1ca)](_0x4ac3b4)){const _0x5a3c4c=typeof _0x4eac4d['appcode']===_0x226847(0x1c7)?_0x4eac4d[_0x226847(0x1c1)][_0x226847(0x1b3)]():'';if(!_0x5a3c4c)continue;const _0x2ee936=findAppByCode(_0x572950[_0x226847(0x1fb)],_0x5a3c4c);if(!_0x5be188&&_0x2ee936&&!isRuntimeAccessibleApp(_0x2ee936))continue;_0x1b7f13+=0x1,_0x17928a[_0x226847(0x1d8)]({'name':_0x5a68cf,'appcode':_0x5a3c4c,'named':!![],'definedIn':'local','isDefault':_0x5a68cf===_0x3f12a9,...buildAppProfileListFields(_0x5d930d),'source':_0x226847(0x1d5),'owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x17928a,_0x2ad9be[_0x226847(0x201)]);const _0x2b6391=_0x17928a[_0x226847(0x1c3)](_0x5b2671=>_0x5b2671[_0x226847(0x1dd)]===!![]),_0x24c1fa=_0x3f12a9??_0x2b6391?.[_0x226847(0x1ed)]??null,_0x3b7dd3={'env':_0x5d930d,'source':_0x572950['source'],'fetchedAt':_0x572950[_0x226847(0x1ba)],'cachePath':_0x572950[_0x226847(0x1a7)],'globalPath':_0x5333e3[_0x226847(0x1d3)]??null,'projectPath':_0x5333e3['projectPath']??null,'defaultApp':_0x24c1fa,'defaultAppSource':_0x3f12a9!=null?_0x25e8d4:null,'localAliasCount':_0x1b7f13,'remoteTotal':_0x572950[_0x226847(0x1fb)][_0x226847(0x1f7)],'hiddenUnpublishedCount':_0x4677e7,'includeUnpublished':_0x5be188};if(_0x17928a[_0x226847(0x1f7)]===0x0)return{'ok':!![],'data':{'items':_0x17928a,'meta':_0x3b7dd3},'message':_0x572950[_0x226847(0x1be)]===_0x226847(0x1c8)?_0x226847(0x1e7):'No\x20apps\x20found\x20on\x20the\x20platform.'};return{'ok':!![],'data':{'items':_0x17928a,'meta':_0x3b7dd3}};}},pullDef={'service':'app','command':a3_0x2f985f(0x1cd),'description':a3_0x2f985f(0x1c5),'risk':a3_0x2f985f(0x1bb),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'env','type':a3_0x2f985f(0x1c7),'description':a3_0x2f985f(0x1ac),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x2f985f(0x1da),'type':'boolean','description':'Read\x20from\x20local\x20cache\x20only','default':![]},{'name':a3_0x2f985f(0x1f6),'type':a3_0x2f985f(0x1f3),'description':a3_0x2f985f(0x1d2),'default':![]}],async 'execute'(_0x594d56){const _0x1ca027=a3_0x2f985f,_0x643de0=_0x594d56['str'](_0x1ca027(0x1b4))||_0x594d56[_0x1ca027(0x1de)]||getEnv()||_0x1ca027(0x1af),_0x4376f6=_0x594d56[_0x1ca027(0x1c0)](_0x1ca027(0x1da)),_0x5a9909=_0x594d56[_0x1ca027(0x1c0)](_0x1ca027(0x1f6)),{getRemoteAppList:_0x28e23d}=await import(_0x1ca027(0x205)),_0x480327=await _0x28e23d({'env':_0x643de0,'accessKey':_0x594d56['accessKey'],'localOnly':_0x4376f6,'noCache':_0x5a9909});return{'ok':!![],'data':{'total':_0x480327[_0x1ca027(0x1fb)][_0x1ca027(0x1f7)],'env':_0x643de0,'source':_0x480327[_0x1ca027(0x1be)],'fetchedAt':_0x480327[_0x1ca027(0x1ba)],'cachePath':_0x480327['cachePath']},'message':_0x480327[_0x1ca027(0x1be)]===_0x1ca027(0x1c8)?_0x1ca027(0x1b0)+_0x480327[_0x1ca027(0x1fb)][_0x1ca027(0x1f7)]+_0x1ca027(0x1f5)+_0x643de0+'\x22.':_0x1ca027(0x1db)+_0x480327[_0x1ca027(0x1fb)][_0x1ca027(0x1f7)]+_0x1ca027(0x1d6)+_0x643de0+'\x22.'};}},useDef={'service':'app','command':a3_0x2f985f(0x1ee),'description':a3_0x2f985f(0x1e6),'risk':a3_0x2f985f(0x1bb),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a3_0x2f985f(0x1ed),'description':a3_0x2f985f(0x1b7),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x8585ea){const _0x37d533=a3_0x2f985f;if(!_0x8585ea['args'][0x0])throw CliErrors[_0x37d533(0x1a9)](_0x37d533(0x1e4),_0x37d533(0x1e5)+CLI_BIN_NAME+_0x37d533(0x1fa));},async 'execute'(_0x52a8e7){const _0x598939=a3_0x2f985f;warnDeprecatedAppCommand(_0x598939(0x1ee),CLI_BIN_NAME+_0x598939(0x1ae));const _0x2d56e5=_0x52a8e7[_0x598939(0x1ec)][0x0];if(!_0x2d56e5)throw CliErrors[_0x598939(0x1a9)]('Missing\x20app\x20name.',_0x598939(0x1e5)+CLI_BIN_NAME+_0x598939(0x1fa));const {buildConfigFromFlags:_0x4ebca5,resolveLocalAppAliasCode:_0x41d1ee}=await import(_0x598939(0x1cc)),{readCachedAppList:_0xa414c5}=await import(_0x598939(0x1d9)),_0x5de721=_0x52a8e7['str'](_0x598939(0x1b4)),_0x135b69=_0x4ebca5(_0x5de721?{'env':_0x5de721}:{}),_0x20a56d=_0xa414c5(_0x135b69[_0x598939(0x1b4)],_0x135b69[_0x598939(0x1e1)]),_0xaf6973=_0x20a56d?.[_0x598939(0x1fb)][_0x598939(0x1c3)](_0x4ce71d=>_0x4ce71d[_0x598939(0x1f9)]===_0x2d56e5),_0x5c6733=_0x41d1ee(_0x135b69[_0x598939(0x1e8)]??{},_0x2d56e5);if(_0xaf6973&&!isRuntimeAccessibleApp(_0xaf6973))throw runtimeInaccessibleAppError(_0xaf6973,'\x22'+_0x2d56e5+'\x22');if(_0x5c6733){const _0x2bf1de=_0x20a56d?.['items'][_0x598939(0x1c3)](_0x1773af=>_0x1773af[_0x598939(0x200)]?.['trim']()===_0x5c6733);if(_0x2bf1de&&!isRuntimeAccessibleApp(_0x2bf1de))throw runtimeInaccessibleAppError(_0x2bf1de,'\x22'+_0x2d56e5+'\x22');}if(!_0xaf6973&&!_0x5c6733&&_0x135b69['defaultApp']!==_0x2d56e5){const _0x3004ba=[..._0x20a56d?.[_0x598939(0x1fb)][_0x598939(0x1f0)](_0x10c4b6=>_0x10c4b6['appName'])??[]],_0x541bcc=_0x3004ba[_0x598939(0x1f7)]===0x0?_0x598939(0x1ef)+CLI_BIN_NAME+_0x598939(0x204)+_0x2d56e5+_0x598939(0x1b8):_0x598939(0x1aa)+Array['from'](new Set(_0x3004ba))['join'](',\x20')+_0x598939(0x1f1);throw CliErrors['validation'](_0x598939(0x1a8)+_0x2d56e5+_0x598939(0x1bf),_0x541bcc);}const _0x1a2513=_0x52a8e7[_0x598939(0x1c0)](_0x598939(0x1ea));let _0x4946fa;if(_0x1a2513)_0x4946fa={'global':!![]};else{const {isInProject:_0x79dd4e}=await import('../../context.js'),_0x10f3cc=_0x79dd4e();_0x4946fa=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0x598939(0x1d1),'inProject':_0x10f3cc}));}const _0xa1a365=readConfig(_0x4946fa);return _0xa1a365[_0x598939(0x1b1)]=_0x2d56e5,writeConfig(_0xa1a365,_0x4946fa),{'ok':!![],'message':_0x598939(0x1c4)+_0x2d56e5+'\x22'+scopeLabel(_0x4946fa)+'.'};}};function warnDeprecatedAppCommand(_0x70e1c9,_0x219334){const _0x310013=a3_0x2f985f;console[_0x310013(0x1c2)](CLI_BIN_NAME+'\x20app\x20'+_0x70e1c9+_0x310013(0x1f2)+_0x219334+'`\x20instead.');}const importDef={'service':a3_0x2f985f(0x1d7),'command':a3_0x2f985f(0x202),'description':'Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','risk':a3_0x2f985f(0x1bb),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x3e3717){return await runInitImport(collectFlags(_0x3e3717,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
@@ -1 +1 @@
1
- (function(_0x5ec92f,_0x3e685a){const _0x290b66=a4_0x572d,_0xeaafdc=_0x5ec92f();while(!![]){try{const _0x2fa893=parseInt(_0x290b66(0x198))/0x1*(-parseInt(_0x290b66(0x189))/0x2)+-parseInt(_0x290b66(0x18c))/0x3+-parseInt(_0x290b66(0x18e))/0x4*(-parseInt(_0x290b66(0x18b))/0x5)+-parseInt(_0x290b66(0x197))/0x6*(-parseInt(_0x290b66(0x192))/0x7)+-parseInt(_0x290b66(0x19b))/0x8*(-parseInt(_0x290b66(0x186))/0x9)+-parseInt(_0x290b66(0x191))/0xa+parseInt(_0x290b66(0x19a))/0xb*(parseInt(_0x290b66(0x18d))/0xc);if(_0x2fa893===_0x3e685a)break;else _0xeaafdc['push'](_0xeaafdc['shift']());}catch(_0x416a10){_0xeaafdc['push'](_0xeaafdc['shift']());}}}(a4_0x247e,0x26ed7));function a4_0x247e(){const _0x36be45=['1GuWXAY','App\x20','26191GugqLr','8PpKrlz','UNKNOWN','\x20dataset/data/sql/bff\x20commands,\x20or\x20choose\x20a\x20published\x20app.','appName','2163978lTLAZw','filter','Current\x20status:\x20','328044fdVVAr','find','26090FUAETR','935802JpeGFM','768hskkZF','244JQnPRP','appPublishStatus','trim','2340900ycMxOH','1108583ZvXVLv','\x20is\x20not\x20available\x20for\x20runtime\x20AI\x20access.','validation','.\x20Publish\x20the\x20app\x20before\x20using\x20','string','6EwGkRA'];a4_0x247e=function(){return _0x36be45;};return a4_0x247e();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{RUNTIME_ACCESSIBLE_APP_STATUS}from'../../constant/app.js';import{CliErrors}from'../../errors.js';function a4_0x572d(_0x5ef491,_0x1e11e1){_0x5ef491=_0x5ef491-0x183;const _0x247ece=a4_0x247e();let _0x572d4e=_0x247ece[_0x5ef491];return _0x572d4e;}export function normalizeAppPublishStatus(_0x582849){const _0x4bf7ff=a4_0x572d;if(typeof _0x582849!==_0x4bf7ff(0x196))return null;const _0x1847a3=_0x582849[_0x4bf7ff(0x190)]();return _0x1847a3?_0x1847a3['toUpperCase']():null;}export function isRuntimeAccessibleApp(_0x5b0871){return normalizeAppPublishStatus(_0x5b0871['appPublishStatus'])===RUNTIME_ACCESSIBLE_APP_STATUS;}export function filterRuntimeAccessibleApps(_0x31708c){const _0x4b9383=a4_0x572d;return _0x31708c[_0x4b9383(0x187)](isRuntimeAccessibleApp);}export function findAppByName(_0x350bd8,_0x44961e){const _0xf9efea=a4_0x572d;return _0x350bd8[_0xf9efea(0x18a)](_0x448ab6=>_0x448ab6[_0xf9efea(0x185)]===_0x44961e);}export function findAppByCode(_0xded9fb,_0x3bb845){const _0x42e675=a4_0x572d,_0x574d2c=_0x3bb845[_0x42e675(0x190)]();if(!_0x574d2c)return undefined;return _0xded9fb['find'](_0x9a2b93=>_0x9a2b93['appCode']?.[_0x42e675(0x190)]()===_0x574d2c);}export function runtimeInaccessibleAppError(_0x28bb67,_0x51008a){const _0x5e69b3=a4_0x572d,_0x4b57a8=normalizeAppPublishStatus(_0x28bb67[_0x5e69b3(0x18f)])??_0x5e69b3(0x183);return CliErrors[_0x5e69b3(0x194)](_0x5e69b3(0x199)+_0x51008a+_0x5e69b3(0x193),_0x5e69b3(0x188)+_0x4b57a8+_0x5e69b3(0x195)+CLI_BIN_NAME+_0x5e69b3(0x184));}
1
+ (function(_0x329f42,_0x406a53){const _0x3bbd17=a4_0x4670,_0x3c348f=_0x329f42();while(!![]){try{const _0x440579=parseInt(_0x3bbd17(0x149))/0x1+parseInt(_0x3bbd17(0x148))/0x2+parseInt(_0x3bbd17(0x14a))/0x3+parseInt(_0x3bbd17(0x146))/0x4+parseInt(_0x3bbd17(0x150))/0x5+-parseInt(_0x3bbd17(0x14f))/0x6*(-parseInt(_0x3bbd17(0x147))/0x7)+-parseInt(_0x3bbd17(0x14c))/0x8;if(_0x440579===_0x406a53)break;else _0x3c348f['push'](_0x3c348f['shift']());}catch(_0x23b0db){_0x3c348f['push'](_0x3c348f['shift']());}}}(a4_0x2868,0x6282d));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(_0x1e1866){const _0x2f4fc7=a4_0x4670;if(typeof _0x1e1866!==_0x2f4fc7(0x143))return null;const _0xdf4ee4=_0x1e1866[_0x2f4fc7(0x14d)]();return _0xdf4ee4?_0xdf4ee4[_0x2f4fc7(0x145)]():null;}export function isRuntimeAccessibleApp(_0x5ebe48){const _0x2180a6=a4_0x4670;return normalizeAppPublishStatus(_0x5ebe48[_0x2180a6(0x14b)])===RUNTIME_ACCESSIBLE_APP_STATUS;}export function filterRuntimeAccessibleApps(_0x33e2b7){return _0x33e2b7['filter'](isRuntimeAccessibleApp);}function a4_0x2868(){const _0x53d004=['UNKNOWN','find','string','appCode','toUpperCase','1751648TGWzeG','224SyYRQj','279088LdarlE','291323qMuNvz','788652VynXHb','appPublishStatus','16101112BxfgaB','trim','App\x20','141330aDKzXn','2653585sEqUFM','Current\x20status:\x20','appName','\x20is\x20not\x20available\x20for\x20runtime\x20AI\x20access.','validation'];a4_0x2868=function(){return _0x53d004;};return a4_0x2868();}export function findAppByName(_0x45945e,_0x2cd24a){const _0x175723=a4_0x4670;return _0x45945e['find'](_0x3716ee=>_0x3716ee[_0x175723(0x152)]===_0x2cd24a);}export function findAppByCode(_0xa9621f,_0x185f54){const _0x3be8b2=a4_0x4670,_0x96af74=_0x185f54['trim']();if(!_0x96af74)return undefined;return _0xa9621f[_0x3be8b2(0x142)](_0x488a7f=>_0x488a7f[_0x3be8b2(0x144)]?.[_0x3be8b2(0x14d)]()===_0x96af74);}function a4_0x4670(_0x3afca8,_0x237946){_0x3afca8=_0x3afca8-0x141;const _0x286829=a4_0x2868();let _0x467053=_0x286829[_0x3afca8];return _0x467053;}export function runtimeInaccessibleAppError(_0x56107e,_0x178af1){const _0x194eeb=a4_0x4670,_0x1828e8=normalizeAppPublishStatus(_0x56107e['appPublishStatus'])??_0x194eeb(0x141);return CliErrors[_0x194eeb(0x154)](_0x194eeb(0x14e)+_0x178af1+_0x194eeb(0x153),_0x194eeb(0x151)+_0x1828e8+'.\x20Publish\x20the\x20app\x20before\x20using\x20'+CLI_BIN_NAME+'\x20dataset/data/sql/bff\x20commands,\x20or\x20choose\x20a\x20published\x20app.');}
@@ -1 +1 @@
1
- function a5_0xba7a(){const _0x3a0cb6=['30ZZNZfn','8JQTXeY','errorMsg','2819763xDcUrm','424494NngBeC','data','20XXoksE','451dQvhhC','6NyAtLN','errorCode','413412QxhvPe','tableData','1763196zwmjAJ','success','2205604DyXXuy','8655185nRCoyg','464021AfWIZf'];a5_0xba7a=function(){return _0x3a0cb6;};return a5_0xba7a();}(function(_0x2e152d,_0x2fc6db){const _0x1b6e21=a5_0x36c2,_0x564c2b=_0x2e152d();while(!![]){try{const _0x25322e=parseInt(_0x1b6e21(0x9f))/0x1+parseInt(_0x1b6e21(0xae))/0x2+parseInt(_0x1b6e21(0xa8))/0x3*(-parseInt(_0x1b6e21(0xac))/0x4)+parseInt(_0x1b6e21(0xa0))/0x5*(parseInt(_0x1b6e21(0xa4))/0x6)+parseInt(_0x1b6e21(0x9e))/0x7*(-parseInt(_0x1b6e21(0xa1))/0x8)+parseInt(_0x1b6e21(0xa3))/0x9*(-parseInt(_0x1b6e21(0xa6))/0xa)+parseInt(_0x1b6e21(0xa7))/0xb*(parseInt(_0x1b6e21(0xaa))/0xc);if(_0x25322e===_0x2fc6db)break;else _0x564c2b['push'](_0x564c2b['shift']());}catch(_0x4dc60f){_0x564c2b['push'](_0x564c2b['shift']());}}}(a5_0xba7a,0xa0ec5));import{fileURLToPath}from'url';import{dirname,join}from'path';import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function a5_0x36c2(_0x161c07,_0x2fc54a){_0x161c07=_0x161c07-0x9e;const _0xba7ac8=a5_0xba7a();let _0x36c21e=_0xba7ac8[_0x161c07];return _0x36c21e;}function loadMockAppList(){const _0x4f4cd6=join(__dirname,'../../../mock/app-list.json'),_0xac2cde=readFileSync(_0x4f4cd6,'utf-8');return JSON['parse'](_0xac2cde);}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x589a42=a5_0x36c2,_0x11e219=getMockAppList();if(!_0x11e219[_0x589a42(0xad)])throw new Error('Mock\x20API\x20error:\x20'+_0x11e219[_0x589a42(0xa2)]+'\x20('+_0x11e219[_0x589a42(0xa9)]+')');return _0x11e219[_0x589a42(0xa5)][_0x589a42(0xab)];}
1
+ function a5_0x56b8(_0x2e2b63,_0x33345d){_0x2e2b63=_0x2e2b63-0x1a2;const _0x32d976=a5_0x32d9();let _0x56b8da=_0x32d976[_0x2e2b63];return _0x56b8da;}(function(_0x93a2ef,_0x2c2c3e){const _0x387728=a5_0x56b8,_0x35e3c4=_0x93a2ef();while(!![]){try{const _0x35b6ed=-parseInt(_0x387728(0x1b0))/0x1+-parseInt(_0x387728(0x1a3))/0x2+parseInt(_0x387728(0x1ab))/0x3+parseInt(_0x387728(0x1aa))/0x4+-parseInt(_0x387728(0x1a9))/0x5+parseInt(_0x387728(0x1af))/0x6*(-parseInt(_0x387728(0x1a5))/0x7)+parseInt(_0x387728(0x1a4))/0x8;if(_0x35b6ed===_0x2c2c3e)break;else _0x35e3c4['push'](_0x35e3c4['shift']());}catch(_0x34bc01){_0x35e3c4['push'](_0x35e3c4['shift']());}}}(a5_0x32d9,0xdf0f5));function a5_0x32d9(){const _0x509e7f=['7623300ZILJMz','7266012ZFhxxZ','2857539JkbpiI','utf-8','errorCode','parse','905694bqknoL','831774EoMNrm','Mock\x20API\x20error:\x20','errorMsg','2956102lDXmeT','17040568vbMszF','7XieeRs','../../../mock/app-list.json','tableData','data'];a5_0x32d9=function(){return _0x509e7f;};return a5_0x32d9();}import{fileURLToPath}from'url';import{dirname,join}from'path';import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0xfb15a1=a5_0x56b8,_0x517442=join(__dirname,_0xfb15a1(0x1a6)),_0x4a67f9=readFileSync(_0x517442,_0xfb15a1(0x1ac));return JSON[_0xfb15a1(0x1ae)](_0x4a67f9);}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x1046da=a5_0x56b8,_0x3ff04e=getMockAppList();if(!_0x3ff04e['success'])throw new Error(_0x1046da(0x1b1)+_0x3ff04e[_0x1046da(0x1a2)]+'\x20('+_0x3ff04e[_0x1046da(0x1ad)]+')');return _0x3ff04e[_0x1046da(0x1a8)][_0x1046da(0x1a7)];}
@@ -1 +1 @@
1
- (function(_0x4cba0f,_0x2ddd4b){const _0x76d428=a6_0xea03,_0x2720e0=_0x4cba0f();while(!![]){try{const _0x49b24e=parseInt(_0x76d428(0x1d5))/0x1+parseInt(_0x76d428(0x1d4))/0x2+-parseInt(_0x76d428(0x1d6))/0x3*(parseInt(_0x76d428(0x1ce))/0x4)+-parseInt(_0x76d428(0x1db))/0x5+-parseInt(_0x76d428(0x1dd))/0x6+parseInt(_0x76d428(0x1d2))/0x7+-parseInt(_0x76d428(0x1da))/0x8;if(_0x49b24e===_0x2ddd4b)break;else _0x2720e0['push'](_0x2720e0['shift']());}catch(_0x52b4f2){_0x2720e0['push'](_0x2720e0['shift']());}}}(a6_0x474a,0x2cf5b));function a6_0xea03(_0x15462c,_0x5be5c7){_0x15462c=_0x15462c-0x1ce;const _0x474ad6=a6_0x474a();let _0xea0366=_0x474ad6[_0x15462c];return _0xea0366;}function a6_0x474a(){const _0x1c6838=['63197jfLSvC','15idXafF','toLowerCase','cache','mock','601296rnjfqK','478205GnjdaC','toISOString','441672pXvduU','remote','204044UtTPKB','trim','fetchedAt','items','2377102WeHTWe','APP_LIST_SOURCE','561684zNktUO'];a6_0x474a=function(){return _0x1c6838;};return a6_0x474a();}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 _0x161b3e=a6_0xea03,_0x3ccb10=(productEnv(_0x161b3e(0x1d3))||'')[_0x161b3e(0x1cf)]()[_0x161b3e(0x1d7)]();return _0x3ccb10===_0x161b3e(0x1d9);}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x2f23b6){const _0x2c9bcb=a6_0xea03,{env:_0x265360,accessKey:_0x296792,localOnly:localOnly=![],noCache:noCache=![]}=_0x2f23b6,_0x1f0fb7=readCachedAppList(_0x265360,_0x296792),_0x5624a1=_0x296792?.[_0x2c9bcb(0x1cf)]()?getAppCacheFilePath(_0x265360,_0x296792):null;if(localOnly)return{'items':_0x1f0fb7?.[_0x2c9bcb(0x1d1)]??[],'source':_0x2c9bcb(0x1d8),'fetchedAt':_0x1f0fb7?.['fetchedAt']??null,'cachePath':_0x5624a1};try{const _0x39c807=await getRemoteAppItems(),_0x452ee1=shouldUseMockRemoteApps()?_0x2c9bcb(0x1d9):_0x2c9bcb(0x1de),_0x56d4ca=new Date()[_0x2c9bcb(0x1dc)](),_0x9dec63=_0x296792?.[_0x2c9bcb(0x1cf)]()?writeCachedAppList(_0x265360,_0x296792,{'env':_0x265360,'fetchedAt':_0x56d4ca,'source':_0x452ee1,'items':_0x39c807}):null;return{'items':_0x39c807,'source':_0x452ee1,'fetchedAt':_0x56d4ca,'cachePath':_0x9dec63};}catch(_0x56db35){if(!noCache&&_0x1f0fb7)return{'items':_0x1f0fb7[_0x2c9bcb(0x1d1)],'source':_0x2c9bcb(0x1d8),'fetchedAt':_0x1f0fb7[_0x2c9bcb(0x1d0)],'cachePath':_0x5624a1};throw _0x56db35;}}
1
+ (function(_0x4d687e,_0x1ecd04){const _0xe55d8=a6_0x21eb,_0x25733c=_0x4d687e();while(!![]){try{const _0x5601de=parseInt(_0xe55d8(0xa1))/0x1+parseInt(_0xe55d8(0xaa))/0x2+parseInt(_0xe55d8(0xa6))/0x3+parseInt(_0xe55d8(0xa0))/0x4*(parseInt(_0xe55d8(0xab))/0x5)+-parseInt(_0xe55d8(0xa2))/0x6+-parseInt(_0xe55d8(0xa8))/0x7+parseInt(_0xe55d8(0xa4))/0x8*(-parseInt(_0xe55d8(0xad))/0x9);if(_0x5601de===_0x1ecd04)break;else _0x25733c['push'](_0x25733c['shift']());}catch(_0x3d7221){_0x25733c['push'](_0x25733c['shift']());}}}(a6_0x13db,0xce4a5));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 _0x1f299f=a6_0x21eb,_0x23bb66=(productEnv('APP_LIST_SOURCE')||'')['trim']()[_0x1f299f(0xac)]();return _0x23bb66===_0x1f299f(0xa7);}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}function a6_0x13db(){const _0x529e0b=['toLowerCase','387fwrdYG','trim','16tGITeg','422175NKnbyf','7216716TatAfs','toISOString','13432OUhjKo','items','2547057vyIURI','mock','6949656QAaHNj','fetchedAt','2868412jsSGZj','509195ElqDqG'];a6_0x13db=function(){return _0x529e0b;};return a6_0x13db();}function a6_0x21eb(_0x2a835d,_0x536ee6){_0x2a835d=_0x2a835d-0x9f;const _0x13dbda=a6_0x13db();let _0x21ebfc=_0x13dbda[_0x2a835d];return _0x21ebfc;}export async function getRemoteAppList(_0x26dfb0){const _0x4139a7=a6_0x21eb,{env:_0x156283,accessKey:_0x108996,localOnly:localOnly=![],noCache:noCache=![]}=_0x26dfb0,_0x7b76f3=readCachedAppList(_0x156283,_0x108996),_0x35e3bd=_0x108996?.['trim']()?getAppCacheFilePath(_0x156283,_0x108996):null;if(localOnly)return{'items':_0x7b76f3?.[_0x4139a7(0xa5)]??[],'source':'cache','fetchedAt':_0x7b76f3?.['fetchedAt']??null,'cachePath':_0x35e3bd};try{const _0x40599e=await getRemoteAppItems(),_0x1b1acc=shouldUseMockRemoteApps()?'mock':'remote',_0x2a5dfa=new Date()[_0x4139a7(0xa3)](),_0xbbcba8=_0x108996?.[_0x4139a7(0x9f)]()?writeCachedAppList(_0x156283,_0x108996,{'env':_0x156283,'fetchedAt':_0x2a5dfa,'source':_0x1b1acc,'items':_0x40599e}):null;return{'items':_0x40599e,'source':_0x1b1acc,'fetchedAt':_0x2a5dfa,'cachePath':_0xbbcba8};}catch(_0x561a91){if(!noCache&&_0x7b76f3)return{'items':_0x7b76f3[_0x4139a7(0xa5)],'source':'cache','fetchedAt':_0x7b76f3[_0x4139a7(0xa9)],'cachePath':_0x35e3bd};throw _0x561a91;}}
@@ -1 +1 @@
1
- (function(_0x22bd08,_0x5a0811){const _0xeebb51=a7_0x1bd1,_0x4a6b4f=_0x22bd08();while(!![]){try{const _0x1c6bef=-parseInt(_0xeebb51(0x1ca))/0x1*(parseInt(_0xeebb51(0x1bf))/0x2)+-parseInt(_0xeebb51(0x1bc))/0x3+-parseInt(_0xeebb51(0x1c1))/0x4+-parseInt(_0xeebb51(0x1b7))/0x5+parseInt(_0xeebb51(0x1bd))/0x6*(parseInt(_0xeebb51(0x1c5))/0x7)+-parseInt(_0xeebb51(0x1c8))/0x8*(parseInt(_0xeebb51(0x1be))/0x9)+-parseInt(_0xeebb51(0x1cb))/0xa*(-parseInt(_0xeebb51(0x1c6))/0xb);if(_0x1c6bef===_0x5a0811)break;else _0x4a6b4f['push'](_0x4a6b4f['shift']());}catch(_0x37277a){_0x4a6b4f['push'](_0x4a6b4f['shift']());}}}(a7_0x477c,0x8e8c8));function a7_0x477c(){const _0x1f981c=['33FLhvZN','appcode','44872hyOCwI','global','65991lSAVLC','12509810OLtoVs','trim','902630fgduxE','currentApp','find','appCode','defaultApp','2944620EaATTB','6gDGMZB','1251dYRfpo','30LvqVFy','name','2992688ghWeuS','project','named','isCurrent','3574837FfioIT'];a7_0x477c=function(){return _0x1f981c;};return a7_0x477c();}import{CLI_BIN_NAME}from'../../constant/cli.js';function a7_0x1bd1(_0x3e43b0,_0x58c153){_0x3e43b0=_0x3e43b0-0x1b6;const _0x477c48=a7_0x477c();let _0x1bd1a3=_0x477c48[_0x3e43b0];return _0x1bd1a3;}import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x2fd602,_0x4f0bfd){const _0x4c4c61=a7_0x1bd1;if(!_0x4f0bfd)return;const _0xf80e99=!!(_0x4f0bfd[_0x4c4c61(0x1b8)]??_0x4f0bfd[_0x4c4c61(0x1bb)]);for(const _0x2fdd93 of _0x2fd602){_0x2fdd93[_0x4c4c61(0x1c4)]=![];}const _0x5c2646=_0x4f0bfd[_0x4c4c61(0x1ba)]!=null?String(_0x4f0bfd['appCode'])[_0x4c4c61(0x1b6)]():'';if(_0xf80e99){const _0x3d6f05=_0x4f0bfd[_0x4c4c61(0x1b8)]??_0x4f0bfd[_0x4c4c61(0x1bb)];if(_0x3d6f05){const _0x2c937f=_0x2fd602[_0x4c4c61(0x1b9)](_0x5e3eb5=>_0x5e3eb5[_0x4c4c61(0x1c3)]===!![]&&_0x5e3eb5[_0x4c4c61(0x1c0)]===_0x3d6f05&&_0x5e3eb5['definedIn']==='local'),_0x39faf7=_0x2c937f??_0x2fd602[_0x4c4c61(0x1b9)](_0x48098c=>_0x48098c[_0x4c4c61(0x1c3)]===!![]&&_0x48098c[_0x4c4c61(0x1c0)]===_0x3d6f05);if(_0x39faf7){const _0x3ba0cf=String(_0x39faf7[_0x4c4c61(0x1c7)]??'')[_0x4c4c61(0x1b6)]();if(!_0x5c2646||_0x3ba0cf===_0x5c2646){_0x39faf7[_0x4c4c61(0x1c4)]=!![];return;}}}if(_0x5c2646){const _0x4e5c96=_0x2fd602['find'](_0x345a89=>String(_0x345a89[_0x4c4c61(0x1c7)]??'')[_0x4c4c61(0x1b6)]()===_0x5c2646);_0x4e5c96&&(_0x4e5c96[_0x4c4c61(0x1c4)]=!![]);}return;}if(!_0x5c2646)return;for(const _0x20b529 of _0x2fd602){String(_0x20b529[_0x4c4c61(0x1c7)]??'')['trim']()===_0x5c2646&&(_0x20b529[_0x4c4c61(0x1c4)]=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x3f0a1c){const _0xc605ea=a7_0x1bd1;return formatScopeLabel(_0x3f0a1c[_0xc605ea(0x1c9)]?_0xc605ea(0x1c9):_0xc605ea(0x1c2));}
1
+ (function(_0x45f8ca,_0x3a31e7){const _0x54f651=a7_0x387a,_0x82d12a=_0x45f8ca();while(!![]){try{const _0x2cbd33=-parseInt(_0x54f651(0xf9))/0x1+parseInt(_0x54f651(0x103))/0x2*(parseInt(_0x54f651(0x100))/0x3)+parseInt(_0x54f651(0x105))/0x4+parseInt(_0x54f651(0xf7))/0x5+parseInt(_0x54f651(0x102))/0x6+parseInt(_0x54f651(0xf3))/0x7*(parseInt(_0x54f651(0xfc))/0x8)+-parseInt(_0x54f651(0xf8))/0x9*(-parseInt(_0x54f651(0x101))/0xa);if(_0x2cbd33===_0x3a31e7)break;else _0x82d12a['push'](_0x82d12a['shift']());}catch(_0x25220d){_0x82d12a['push'](_0x82d12a['shift']());}}}(a7_0x3b5a,0x66514));import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';function a7_0x387a(_0x398c01,_0x49f39f){_0x398c01=_0x398c01-0xf3;const _0x3b5ada=a7_0x3b5a();let _0x387ae1=_0x3b5ada[_0x398c01];return _0x387ae1;}function a7_0x3b5a(){const _0xa4a1e4=['923713KdphJs','defaultApp','trim','name','1938595HfqQBH','5931dbjHSu','730436qWUibT','named','project','8RnbKVQ','find','global','currentApp','6nEEvUq','770AacIlb','623058EoPcLo','327394IhLdBr','local','591480avTRMX','appcode','isCurrent'];a7_0x3b5a=function(){return _0xa4a1e4;};return a7_0x3b5a();}export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0xad34ff,_0x1a34ec){const _0x5cadb4=a7_0x387a;if(!_0x1a34ec)return;const _0x49105c=!!(_0x1a34ec['currentApp']??_0x1a34ec[_0x5cadb4(0xf4)]);for(const _0x44e83d of _0xad34ff){_0x44e83d['isCurrent']=![];}const _0x4d400c=_0x1a34ec['appCode']!=null?String(_0x1a34ec['appCode'])[_0x5cadb4(0xf5)]():'';if(_0x49105c){const _0x185ebf=_0x1a34ec[_0x5cadb4(0xff)]??_0x1a34ec['defaultApp'];if(_0x185ebf){const _0x12b61c=_0xad34ff['find'](_0x33bc8c=>_0x33bc8c[_0x5cadb4(0xfa)]===!![]&&_0x33bc8c[_0x5cadb4(0xf6)]===_0x185ebf&&_0x33bc8c['definedIn']===_0x5cadb4(0x104)),_0x35e57d=_0x12b61c??_0xad34ff['find'](_0x2a8e46=>_0x2a8e46['named']===!![]&&_0x2a8e46[_0x5cadb4(0xf6)]===_0x185ebf);if(_0x35e57d){const _0x27a122=String(_0x35e57d[_0x5cadb4(0x106)]??'')[_0x5cadb4(0xf5)]();if(!_0x4d400c||_0x27a122===_0x4d400c){_0x35e57d[_0x5cadb4(0x107)]=!![];return;}}}if(_0x4d400c){const _0x2dd2e0=_0xad34ff[_0x5cadb4(0xfd)](_0x3f176e=>String(_0x3f176e[_0x5cadb4(0x106)]??'')[_0x5cadb4(0xf5)]()===_0x4d400c);_0x2dd2e0&&(_0x2dd2e0[_0x5cadb4(0x107)]=!![]);}return;}if(!_0x4d400c)return;for(const _0x182ed3 of _0xad34ff){String(_0x182ed3[_0x5cadb4(0x106)]??'')[_0x5cadb4(0xf5)]()===_0x4d400c&&(_0x182ed3['isCurrent']=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x41459d){const _0x19ad41=a7_0x387a;return formatScopeLabel(_0x41459d[_0x19ad41(0xfe)]?'global':_0x19ad41(0xfb));}
@@ -1 +1 @@
1
- const a8_0x27006b=a8_0x59d4;(function(_0x299f37,_0x2c784f){const _0x3d268d=a8_0x59d4,_0x1864c0=_0x299f37();while(!![]){try{const _0x58878b=parseInt(_0x3d268d(0x1a1))/0x1*(-parseInt(_0x3d268d(0x193))/0x2)+-parseInt(_0x3d268d(0x1a7))/0x3+parseInt(_0x3d268d(0x192))/0x4*(parseInt(_0x3d268d(0x1a2))/0x5)+-parseInt(_0x3d268d(0x1a5))/0x6*(-parseInt(_0x3d268d(0x1a9))/0x7)+parseInt(_0x3d268d(0x199))/0x8*(parseInt(_0x3d268d(0x1a4))/0x9)+parseInt(_0x3d268d(0x191))/0xa+parseInt(_0x3d268d(0x1a8))/0xb*(-parseInt(_0x3d268d(0x19d))/0xc);if(_0x58878b===_0x2c784f)break;else _0x1864c0['push'](_0x1864c0['shift']());}catch(_0x5a9edc){_0x1864c0['push'](_0x1864c0['shift']());}}}(a8_0x3776,0x88e8f));function a8_0x3776(){const _0x1cda70=[',\x20appCode=','key','24tEsFml','appCode','\x20app-config\x20get\x20<key>','Usage:\x20','984vSMJuX','args','Get\x20one\x20runtime\x20app-config\x20value\x20by\x20key','Missing\x20app-config\x20key.','1ncHkmT','165sIuRUa','Check\x20that\x20the\x20key\x20exists,\x20the\x20current\x20AccessKey\x20has\x20permission,\x20and\x20the\x20runtime\x20app-config\x20endpoint\x20is\x20available.','1130751YzNAmO','24eGtObX','app-config','2267286xgAhoW','124487FDLFxZ','1608866TmBiep','validation','8852900vNSITU','12156DsubWl','74614GwsLMO','Unable\x20to\x20get\x20app-config\x20value:\x20key=','apiError','read'];a8_0x3776=function(){return _0x1cda70;};return a8_0x3776();}import{getRuntimeAppConfigByKey}from'../../core/api-client.js';function a8_0x59d4(_0x2a47d7,_0x4b7506){_0x2a47d7=_0x2a47d7-0x190;const _0x377611=a8_0x3776();let _0x59d45b=_0x377611[_0x2a47d7];return _0x59d45b;}import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const appConfigGet={'service':a8_0x27006b(0x1a6),'command':'get','description':a8_0x27006b(0x19f),'risk':a8_0x27006b(0x196),'args':[{'name':a8_0x27006b(0x198),'description':'App\x20config\x20key','required':!![]}],'flags':[],async 'execute'(_0x15059d){const _0x48d77f=a8_0x27006b,_0x5caa21=_0x15059d[_0x48d77f(0x19e)][0x0]?.['trim']();if(!_0x5caa21)throw CliErrors[_0x48d77f(0x190)](_0x48d77f(0x1a0),_0x48d77f(0x19c)+CLI_BIN_NAME+_0x48d77f(0x19b));try{const _0x13c6c2=await getRuntimeAppConfigByKey(_0x15059d[_0x48d77f(0x19a)],_0x5caa21);return{'ok':!![],'data':_0x13c6c2};}catch{throw CliErrors[_0x48d77f(0x195)](_0x48d77f(0x194)+_0x5caa21+_0x48d77f(0x197)+_0x15059d[_0x48d77f(0x19a)],_0x48d77f(0x1a3));}}};
1
+ const a8_0x294f2b=a8_0x55c8;(function(_0x317e6d,_0x2ec3da){const _0x314371=a8_0x55c8,_0xab691c=_0x317e6d();while(!![]){try{const _0x454a8d=-parseInt(_0x314371(0x1a2))/0x1+parseInt(_0x314371(0x194))/0x2*(-parseInt(_0x314371(0x198))/0x3)+-parseInt(_0x314371(0x1a7))/0x4+parseInt(_0x314371(0x1a8))/0x5+parseInt(_0x314371(0x1a6))/0x6*(parseInt(_0x314371(0x1a0))/0x7)+parseInt(_0x314371(0x199))/0x8+-parseInt(_0x314371(0x1a5))/0x9*(-parseInt(_0x314371(0x19e))/0xa);if(_0x454a8d===_0x2ec3da)break;else _0xab691c['push'](_0xab691c['shift']());}catch(_0x3d4ee1){_0xab691c['push'](_0xab691c['shift']());}}}(a8_0x5e5a,0x4f9ad));import{getRuntimeAppConfigByKey}from'../../core/api-client.js';function a8_0x5e5a(){const _0x51bf5b=['Get\x20one\x20runtime\x20app-config\x20value\x20by\x20key','App\x20config\x20key','appCode','56gasDkf','Unable\x20to\x20get\x20app-config\x20value:\x20key=','apiError','trim','19938CdZyGX','1026712yfllrG','Missing\x20app-config\x20key.','validation','\x20app-config\x20get\x20<key>','Check\x20that\x20the\x20key\x20exists,\x20the\x20current\x20AccessKey\x20has\x20permission,\x20and\x20the\x20runtime\x20app-config\x20endpoint\x20is\x20available.','6693470XLYAWY','key','1167537mIblOQ',',\x20appCode=','643983UPCeFx','app-config','args','9cxZHnw','18plMvxu','1727828DIDJes','1450150pYopUT','read'];a8_0x5e5a=function(){return _0x51bf5b;};return a8_0x5e5a();}import{CliErrors}from'../../errors.js';function a8_0x55c8(_0x4c1bf3,_0x3b64d6){_0x4c1bf3=_0x4c1bf3-0x194;const _0x5e5afa=a8_0x5e5a();let _0x55c8eb=_0x5e5afa[_0x4c1bf3];return _0x55c8eb;}import{CLI_BIN_NAME}from'../../constant/cli.js';export const appConfigGet={'service':a8_0x294f2b(0x1a3),'command':'get','description':a8_0x294f2b(0x1aa),'risk':a8_0x294f2b(0x1a9),'args':[{'name':a8_0x294f2b(0x19f),'description':a8_0x294f2b(0x1ab),'required':!![]}],'flags':[],async 'execute'(_0x23ddfc){const _0x560332=a8_0x294f2b,_0x304143=_0x23ddfc[_0x560332(0x1a4)][0x0]?.[_0x560332(0x197)]();if(!_0x304143)throw CliErrors[_0x560332(0x19b)](_0x560332(0x19a),'Usage:\x20'+CLI_BIN_NAME+_0x560332(0x19c));try{const _0x5cd999=await getRuntimeAppConfigByKey(_0x23ddfc[_0x560332(0x1ac)],_0x304143);return{'ok':!![],'data':_0x5cd999};}catch{throw CliErrors[_0x560332(0x196)](_0x560332(0x195)+_0x304143+_0x560332(0x1a1)+_0x23ddfc[_0x560332(0x1ac)],_0x560332(0x19d));}}};
@@ -1 +1 @@
1
- function a9_0x5728(_0x2aaa2d,_0x2f07ee){_0x2aaa2d=_0x2aaa2d-0x9f;const _0x39b5c9=a9_0x39b5();let _0x57280c=_0x39b5c9[_0x2aaa2d];return _0x57280c;}function a9_0x39b5(){const _0x256af4=['122697GdYVNH','22306724tTPghx','1297720TPSZjO','932881xCEGNT','468IBYWpy','64080HZlBnQ','7zPMDlt','1345490RUnTcO','52URAmEi','6coJtCM','3347420gwrOOP'];a9_0x39b5=function(){return _0x256af4;};return a9_0x39b5();}(function(_0x32dadb,_0x16030b){const _0x329fb8=a9_0x5728,_0xf2b822=_0x32dadb();while(!![]){try{const _0x329881=-parseInt(_0x329fb8(0xa9))/0x1+-parseInt(_0x329fb8(0xa3))/0x2*(-parseInt(_0x329fb8(0xa6))/0x3)+-parseInt(_0x329fb8(0xa5))/0x4+-parseInt(_0x329fb8(0xa2))/0x5*(parseInt(_0x329fb8(0xa4))/0x6)+parseInt(_0x329fb8(0xa1))/0x7*(-parseInt(_0x329fb8(0xa8))/0x8)+-parseInt(_0x329fb8(0x9f))/0x9*(parseInt(_0x329fb8(0xa0))/0xa)+parseInt(_0x329fb8(0xa7))/0xb;if(_0x329881===_0x16030b)break;else _0xf2b822['push'](_0xf2b822['shift']());}catch(_0x960847){_0xf2b822['push'](_0xf2b822['shift']());}}}(a9_0x39b5,0x87fc1));import{appConfigGet}from'../../commands/app-config/get.js';export const appConfigDefinitions=[appConfigGet];
1
+ (function(_0x1041b,_0x482a27){const _0x58a1b4=a9_0x4a18,_0x3ae48b=_0x1041b();while(!![]){try{const _0xcc2301=-parseInt(_0x58a1b4(0x199))/0x1+-parseInt(_0x58a1b4(0x197))/0x2+parseInt(_0x58a1b4(0x19c))/0x3*(parseInt(_0x58a1b4(0x19b))/0x4)+parseInt(_0x58a1b4(0x19e))/0x5*(-parseInt(_0x58a1b4(0x1a0))/0x6)+parseInt(_0x58a1b4(0x198))/0x7*(parseInt(_0x58a1b4(0x1a1))/0x8)+-parseInt(_0x58a1b4(0x19f))/0x9*(parseInt(_0x58a1b4(0x19a))/0xa)+parseInt(_0x58a1b4(0x19d))/0xb;if(_0xcc2301===_0x482a27)break;else _0x3ae48b['push'](_0x3ae48b['shift']());}catch(_0x51e91c){_0x3ae48b['push'](_0x3ae48b['shift']());}}}(a9_0x1ea4,0xe926e));function a9_0x4a18(_0x272162,_0x3646f7){_0x272162=_0x272162-0x197;const _0x1ea4b4=a9_0x1ea4();let _0x4a1869=_0x1ea4b4[_0x272162];return _0x4a1869;}function a9_0x1ea4(){const _0x544d7e=['2118027nSDjnQ','10236699pfTTlN','15XkLBuo','36wxQQzO','1396632hImPlb','8bWTabZ','1794534xlxlyE','9895522zuRWhu','1029476JyRpyR','440560dmPINU','8ogeNkQ'];a9_0x1ea4=function(){return _0x544d7e;};return a9_0x1ea4();}import{appConfigGet}from'../../commands/app-config/get.js';export const appConfigDefinitions=[appConfigGet];
@@ -1 +1 @@
1
- const a10_0x55c130=a10_0x6e07;(function(_0x1e95cb,_0x374dae){const _0x334c28=a10_0x6e07,_0x47461e=_0x1e95cb();while(!![]){try{const _0x28e9fe=parseInt(_0x334c28(0x185))/0x1*(parseInt(_0x334c28(0x1b3))/0x2)+-parseInt(_0x334c28(0x1be))/0x3+-parseInt(_0x334c28(0x197))/0x4+-parseInt(_0x334c28(0x1bf))/0x5+-parseInt(_0x334c28(0x17e))/0x6*(-parseInt(_0x334c28(0x17d))/0x7)+parseInt(_0x334c28(0x183))/0x8*(-parseInt(_0x334c28(0x181))/0x9)+parseInt(_0x334c28(0x182))/0xa*(parseInt(_0x334c28(0x180))/0xb);if(_0x28e9fe===_0x374dae)break;else _0x47461e['push'](_0x47461e['shift']());}catch(_0x5958af){_0x47461e['push'](_0x47461e['shift']());}}}(a10_0x4113,0x56d33));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_0x55c130(0x175),ARTIFACT_SOURCE_AGENT='AGENT',ALLOWED_REACT_MODULE_IMPORTS=[a10_0x55c130(0x189),a10_0x55c130(0x190),a10_0x55c130(0x17c),a10_0x55c130(0x1b2),'antd',a10_0x55c130(0x18b)];export const ALLOWED_REACT_MODULE_IMPORTS_TEXT=ALLOWED_REACT_MODULE_IMPORTS[a10_0x55c130(0x188)](',\x20');function a10_0x4113(){const _0x222ef1=['write','react_module\x20imports\x20are\x20limited\x20to:\x20','Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped','object','length','build','trim','includes','detail','lastIndex','Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','Artifact\x20source\x20file\x20is\x20blank.','split','/client/artifact/create','num','test','name','File\x20not\x20found:\x20','read','Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file','favorite','dayjs','20gcehlx','source','startsWith','string','description','appCode','createTime','Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','map','updateTime','str','2039436jMFrJo','2949530qUobET','Updated\x20Artifact\x20','artifact','POST','react_module','--metadata\x20must\x20be\x20a\x20JSON\x20object.','update','create','isArray','Preview:\x20update\x20react_module\x20Artifact\x20','Created\x20Artifact\x20','lodash','20321myUiei','42GUdPwz','bool','11GqIQQk','10827WvvWeD','23182490XevvDF','2104DiRewS','artifactType','29713JyswNl','content','some','join','react','body','@ant-design/icons','File\x20is\x20not\x20a\x20regular\x20file:\x20','metadata','file','exec','react-dom','utf8','compiledContent','/client/artifact/','Invalid\x20JSON\x20for\x20--metadata:\x20','filter','deleted','2775832DEhlPY','verbose','Artifact\x20display\x20name','validation','.\x20Unsupported:\x20','Artifact\x20ID'];a10_0x4113=function(){return _0x222ef1;};return a10_0x4113();}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_0x55c130(0x18e),'type':a10_0x55c130(0x1b6),'required':!![],'description':a10_0x55c130(0x1b0)},ARTIFACT_NAME_FLAG={'name':a10_0x55c130(0x1ad),'type':a10_0x55c130(0x1b6),'description':a10_0x55c130(0x199)},METADATA_FLAG={'name':a10_0x55c130(0x18d),'type':a10_0x55c130(0x1b6),'description':a10_0x55c130(0x19f)};function isPlainObject(_0x3f454b){const _0x1d9dde=a10_0x55c130;return typeof _0x3f454b===_0x1d9dde(0x1a0)&&_0x3f454b!==null&&!Array[_0x1d9dde(0x179)](_0x3f454b);}function readSourceFile(_0x29003a){const _0x4e824a=a10_0x55c130;if(!_0x29003a)throw CliErrors['validation']('File\x20path\x20is\x20required.');if(!existsSync(_0x29003a))throw CliErrors['validation'](_0x4e824a(0x1ae)+_0x29003a);if(!statSync(_0x29003a)['isFile']())throw CliErrors['validation'](_0x4e824a(0x18c)+_0x29003a);const _0x485bad=readFileSync(_0x29003a,_0x4e824a(0x191));return validateReactModuleSource(_0x485bad),_0x485bad;}function parseMetadata(_0x1111c6){const _0x465607=a10_0x55c130;if(!_0x1111c6)return undefined;let _0x269464;try{_0x269464=JSON['parse'](_0x1111c6);}catch{throw CliErrors[_0x465607(0x19a)](_0x465607(0x194)+_0x1111c6);}if(!isPlainObject(_0x269464))throw CliErrors[_0x465607(0x19a)](_0x465607(0x176));const _0x5d446={..._0x269464};return delete _0x5d446[_0x465607(0x192)],_0x5d446;}function getPackageName(_0x11cb1b){const _0x28dbd8=a10_0x55c130;if(_0x11cb1b[_0x28dbd8(0x1b5)]('@')){const [_0x5513e3,_0x449f26]=_0x11cb1b[_0x28dbd8(0x1a9)]('/');return _0x5513e3&&_0x449f26?_0x5513e3+'/'+_0x449f26:_0x11cb1b;}return _0x11cb1b[_0x28dbd8(0x1a9)]('/')[0x0]||_0x11cb1b;}function validateAllowedImports(_0x181442){const _0x11368b=a10_0x55c130,_0x47a282=new Set();for(const _0x25a5cd of IMPORT_SOURCE_PATTERNS){_0x25a5cd[_0x11368b(0x1a6)]=0x0;let _0x3331db;while((_0x3331db=_0x25a5cd[_0x11368b(0x18f)](_0x181442))!==null){const _0x4f1908=_0x3331db[0x1]?.[_0x11368b(0x1a3)]();_0x4f1908&&_0x47a282['add'](_0x4f1908);}}const _0x24e539=[..._0x47a282][_0x11368b(0x1bb)](getPackageName)[_0x11368b(0x195)](_0x4fb46d=>!ALLOWED_REACT_MODULE_IMPORTS[_0x11368b(0x1a4)](_0x4fb46d));if(_0x24e539[_0x11368b(0x1a1)]>0x0)throw CliErrors[_0x11368b(0x19a)](_0x11368b(0x19e)+ALLOWED_REACT_MODULE_IMPORTS_TEXT+_0x11368b(0x19b)+[...new Set(_0x24e539)][_0x11368b(0x188)](',\x20'));}export function validateReactModuleSource(_0x2bfaab){const _0x1a7f26=a10_0x55c130;if(!_0x2bfaab[_0x1a7f26(0x1a3)]())throw CliErrors[_0x1a7f26(0x19a)](_0x1a7f26(0x1a8));if(PAGE_LEVEL_PATTERNS[_0x1a7f26(0x187)](_0x35fa8c=>_0x35fa8c[_0x1a7f26(0x1ac)](_0x2bfaab)))throw CliErrors[_0x1a7f26(0x19a)]('react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.');validateAllowedImports(_0x2bfaab);}function buildArtifactInput(_0xca132b){const _0x1e8348=a10_0x55c130,_0x2a8642=readSourceFile(_0xca132b[_0x1e8348(0x1bd)](_0x1e8348(0x18e))),_0x1be895=_0xca132b[_0x1e8348(0x1bd)](_0x1e8348(0x1ad))[_0x1e8348(0x1a3)](),_0x3c9e95=parseMetadata(_0xca132b[_0x1e8348(0x1bd)](_0x1e8348(0x18d)));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x1be895?{'name':_0x1be895}:{},'content':_0x2a8642,..._0x3c9e95?{'metadata':_0x3c9e95}:{},'source':ARTIFACT_SOURCE_AGENT};}function a10_0x6e07(_0x47e45e,_0xbb963e){_0x47e45e=_0x47e45e-0x173;const _0x4113f8=a10_0x4113();let _0x6e077c=_0x4113f8[_0x47e45e];return _0x6e077c;}function summarizeArtifact(_0x1a2590){const _0xa858fe=a10_0x55c130;return{'id':_0x1a2590['id'],'name':_0x1a2590['name'],'artifactType':_0x1a2590[_0xa858fe(0x184)],'source':_0x1a2590['source'],'favorite':_0x1a2590[_0xa858fe(0x1b1)],'deleted':_0x1a2590['deleted'],'createTime':_0x1a2590[_0xa858fe(0x1b9)],'updateTime':_0x1a2590['updateTime']};}function detailArtifact(_0x530b85){const _0x210035=a10_0x55c130;return{'id':_0x530b85['id'],'appCode':_0x530b85[_0x210035(0x1b8)],'name':_0x530b85[_0x210035(0x1ad)],'artifactType':_0x530b85[_0x210035(0x184)],'source':_0x530b85[_0x210035(0x1b4)],'favorite':_0x530b85[_0x210035(0x1b1)],'deleted':_0x530b85[_0x210035(0x196)],'content':_0x530b85[_0x210035(0x186)]??'','compiledContent':_0x530b85[_0x210035(0x192)],'metadata':_0x530b85[_0x210035(0x18d)]??{},'createTime':_0x530b85[_0x210035(0x1b9)],'updateTime':_0x530b85[_0x210035(0x1bc)]};}function readFavoriteFlag(_0x494bf3){const _0x5ab54a=a10_0x55c130,_0x556916=_0x494bf3['flag']('favorite');return _0x556916===undefined||_0x556916===null||_0x556916===''?undefined:_0x494bf3[_0x5ab54a(0x17f)](_0x5ab54a(0x1b1));}const artifactList={'service':a10_0x55c130(0x173),'command':'list','description':'List\x20current-app\x20react_module\x20Artifacts','risk':a10_0x55c130(0x1af),'flags':[{'name':a10_0x55c130(0x1b4),'type':'string','description':'Optional\x20source\x20filter,\x20for\x20example\x20AGENT'},{'name':a10_0x55c130(0x1b1),'type':'boolean','description':'Optional\x20favorite-state\x20filter'},VERBOSE_FLAG],async 'execute'(_0x2ef98b){const _0x2e7664=a10_0x55c130,_0x5a15cd=await listRuntimeArtifacts(_0x2ef98b[_0x2e7664(0x1b8)],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x2ef98b[_0x2e7664(0x1bd)]('source')?{'source':_0x2ef98b['str'](_0x2e7664(0x1b4))}:{},...readFavoriteFlag(_0x2ef98b)!==undefined?{'favorite':readFavoriteFlag(_0x2ef98b)}:{}});return{'ok':!![],'data':{'total':_0x5a15cd[_0x2e7664(0x1a1)],'items':_0x2ef98b[_0x2e7664(0x17f)](_0x2e7664(0x198))?_0x5a15cd:_0x5a15cd[_0x2e7664(0x1bb)](summarizeArtifact)}};}},artifactDetail={'service':a10_0x55c130(0x173),'command':a10_0x55c130(0x1a5),'description':'Show\x20one\x20Artifact\x20by\x20id','risk':a10_0x55c130(0x1af),'flags':[{...ID_FLAG,'description':'Artifact\x20ID'}],async 'execute'(_0x4c4792){const _0x4c6e6c=a10_0x55c130,_0x4ba774=await getRuntimeArtifact(_0x4c4792['num']('id'),_0x4c4792[_0x4c6e6c(0x1b8)]);return{'ok':!![],'data':detailArtifact(_0x4ba774)};}},artifactCreate={'service':'artifact','command':a10_0x55c130(0x178),'description':a10_0x55c130(0x1a7),'risk':a10_0x55c130(0x19d),'flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x2f8154){const _0x37318e=a10_0x55c130,_0x1bc622=buildArtifactInput(_0x2f8154),_0x115e3a=await createRuntimeArtifact(_0x2f8154[_0x37318e(0x1b8)],_0x1bc622);return{'ok':!![],'data':detailArtifact(_0x115e3a),'message':_0x37318e(0x17b)+_0x115e3a['id']+(_0x115e3a[_0x37318e(0x1ad)]?'\x20('+_0x115e3a[_0x37318e(0x1ad)]+')':'')};},async 'dryRun'(_0x584594){const _0x26ee70=a10_0x55c130,_0xa845b9=buildArtifactInput(_0x584594);return dryRun(_0x26ee70(0x174),_0x26ee70(0x1aa))[_0x26ee70(0x18a)]({'appCode':_0x584594[_0x26ee70(0x1b8)],..._0xa845b9})[_0x26ee70(0x1b7)]('Preview:\x20create\x20react_module\x20Artifact')['build']();}},artifactUpdate={'service':a10_0x55c130(0x173),'command':a10_0x55c130(0x177),'description':a10_0x55c130(0x1ba),'risk':a10_0x55c130(0x19d),'flags':[{...ID_FLAG,'description':a10_0x55c130(0x19c)},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x42ddb8){const _0x21641a=a10_0x55c130,_0x58ab96=_0x42ddb8[_0x21641a(0x1ab)]('id'),_0x323000=buildArtifactInput(_0x42ddb8),_0xb88a05=await updateRuntimeArtifact(_0x58ab96,_0x42ddb8[_0x21641a(0x1b8)],_0x323000);return{'ok':!![],'data':detailArtifact(_0xb88a05),'message':_0x21641a(0x1c0)+_0xb88a05['id']+(_0xb88a05[_0x21641a(0x1ad)]?'\x20('+_0xb88a05[_0x21641a(0x1ad)]+')':'')};},async 'dryRun'(_0x3755d6){const _0x151cfd=a10_0x55c130,_0x579393=_0x3755d6[_0x151cfd(0x1ab)]('id'),_0xd66323=buildArtifactInput(_0x3755d6);return dryRun(_0x151cfd(0x174),_0x151cfd(0x193)+_0x579393+'/update')[_0x151cfd(0x18a)]({'appCode':_0x3755d6[_0x151cfd(0x1b8)],..._0xd66323})[_0x151cfd(0x1b7)](_0x151cfd(0x17a)+_0x579393)[_0x151cfd(0x1a2)]();}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
1
+ const a10_0x11b4e5=a10_0x5442;(function(_0x440833,_0x4bd53d){const _0x2c4080=a10_0x5442,_0x2b1d8b=_0x440833();while(!![]){try{const _0x52f303=parseInt(_0x2c4080(0x181))/0x1*(-parseInt(_0x2c4080(0x198))/0x2)+-parseInt(_0x2c4080(0x187))/0x3+-parseInt(_0x2c4080(0x1b6))/0x4+-parseInt(_0x2c4080(0x196))/0x5+parseInt(_0x2c4080(0x1b4))/0x6+parseInt(_0x2c4080(0x18c))/0x7*(parseInt(_0x2c4080(0x1b8))/0x8)+-parseInt(_0x2c4080(0x199))/0x9*(-parseInt(_0x2c4080(0x1a0))/0xa);if(_0x52f303===_0x4bd53d)break;else _0x2b1d8b['push'](_0x2b1d8b['shift']());}catch(_0x1ee649){_0x2b1d8b['push'](_0x2b1d8b['shift']());}}}(a10_0x3cf7,0xdbfe6));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_0x11b4e5(0x189),ARTIFACT_SOURCE_AGENT=a10_0x11b4e5(0x17e),ALLOWED_REACT_MODULE_IMPORTS=[a10_0x11b4e5(0x17f),'react-dom','lodash','dayjs',a10_0x11b4e5(0x18a),a10_0x11b4e5(0x1b9)];export const ALLOWED_REACT_MODULE_IMPORTS_TEXT=ALLOWED_REACT_MODULE_IMPORTS[a10_0x11b4e5(0x1aa)](',\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_0x11b4e5(0x1af),'type':a10_0x11b4e5(0x186),'required':!![],'description':'Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file'},ARTIFACT_NAME_FLAG={'name':a10_0x11b4e5(0x19e),'type':a10_0x11b4e5(0x186),'description':a10_0x11b4e5(0x1b5)},METADATA_FLAG={'name':'metadata','type':'string','description':a10_0x11b4e5(0x194)};function isPlainObject(_0x49d125){const _0x1a6d48=a10_0x11b4e5;return typeof _0x49d125===_0x1a6d48(0x19c)&&_0x49d125!==null&&!Array[_0x1a6d48(0x1c0)](_0x49d125);}function a10_0x3cf7(){const _0x455156=['--metadata\x20must\x20be\x20a\x20JSON\x20object.','1030VgABkN','7683381miUrNh','Updated\x20Artifact\x20','write','object','Artifact\x20ID','name','deleted','60DhmTfD','POST','filter','isFile','source','/client/artifact/','trim','artifact','metadata','detail','join','parse','Optional\x20source\x20filter,\x20for\x20example\x20AGENT','lastIndex','Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','file','appCode','Preview:\x20create\x20react_module\x20Artifact','list','body','907416RxLiiN','Artifact\x20display\x20name','5771872XNEYhv','bool','96HklIvg','@ant-design/icons','Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','Created\x20Artifact\x20','updateTime','Artifact\x20source\x20file\x20is\x20blank.','List\x20current-app\x20react_module\x20Artifacts','/update','isArray','File\x20is\x20not\x20a\x20regular\x20file:\x20','Invalid\x20JSON\x20for\x20--metadata:\x20','react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.','split','str','exec','boolean','some','AGENT','react','createTime','3323TljNoV','Optional\x20favorite-state\x20filter','/client/artifact/create','num','map','string','2271837ZTeaAe','startsWith','react_module','antd','validation','42455PHIsur','length','flag','favorite','build','add','includes','compiledContent','Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped','read','2667920MkusYZ'];a10_0x3cf7=function(){return _0x455156;};return a10_0x3cf7();}function readSourceFile(_0x2c3f33){const _0x40f883=a10_0x11b4e5;if(!_0x2c3f33)throw CliErrors[_0x40f883(0x18b)]('File\x20path\x20is\x20required.');if(!existsSync(_0x2c3f33))throw CliErrors['validation']('File\x20not\x20found:\x20'+_0x2c3f33);if(!statSync(_0x2c3f33)[_0x40f883(0x1a3)]())throw CliErrors[_0x40f883(0x18b)](_0x40f883(0x1c1)+_0x2c3f33);const _0x17ea0d=readFileSync(_0x2c3f33,'utf8');return validateReactModuleSource(_0x17ea0d),_0x17ea0d;}function parseMetadata(_0x42ad1d){const _0x9863da=a10_0x11b4e5;if(!_0x42ad1d)return undefined;let _0x36b841;try{_0x36b841=JSON[_0x9863da(0x1ab)](_0x42ad1d);}catch{throw CliErrors[_0x9863da(0x18b)](_0x9863da(0x1c2)+_0x42ad1d);}if(!isPlainObject(_0x36b841))throw CliErrors[_0x9863da(0x18b)](_0x9863da(0x197));const _0x5463aa={..._0x36b841};return delete _0x5463aa[_0x9863da(0x193)],_0x5463aa;}function getPackageName(_0x49fcb0){const _0x4cf20a=a10_0x11b4e5;if(_0x49fcb0[_0x4cf20a(0x188)]('@')){const [_0x3dc7ea,_0x216391]=_0x49fcb0['split']('/');return _0x3dc7ea&&_0x216391?_0x3dc7ea+'/'+_0x216391:_0x49fcb0;}return _0x49fcb0[_0x4cf20a(0x1c4)]('/')[0x0]||_0x49fcb0;}function validateAllowedImports(_0x5e94d4){const _0x3b3859=a10_0x11b4e5,_0x49209c=new Set();for(const _0x18bfb2 of IMPORT_SOURCE_PATTERNS){_0x18bfb2[_0x3b3859(0x1ad)]=0x0;let _0x293d89;while((_0x293d89=_0x18bfb2[_0x3b3859(0x17b)](_0x5e94d4))!==null){const _0x5a9500=_0x293d89[0x1]?.['trim']();_0x5a9500&&_0x49209c[_0x3b3859(0x191)](_0x5a9500);}}const _0x54ecc6=[..._0x49209c][_0x3b3859(0x185)](getPackageName)[_0x3b3859(0x1a2)](_0x31e3ce=>!ALLOWED_REACT_MODULE_IMPORTS[_0x3b3859(0x192)](_0x31e3ce));if(_0x54ecc6[_0x3b3859(0x18d)]>0x0)throw CliErrors[_0x3b3859(0x18b)]('react_module\x20imports\x20are\x20limited\x20to:\x20'+ALLOWED_REACT_MODULE_IMPORTS_TEXT+'.\x20Unsupported:\x20'+[...new Set(_0x54ecc6)][_0x3b3859(0x1aa)](',\x20'));}export function validateReactModuleSource(_0x1d8e59){const _0x1b333f=a10_0x11b4e5;if(!_0x1d8e59[_0x1b333f(0x1a6)]())throw CliErrors['validation'](_0x1b333f(0x1bd));if(PAGE_LEVEL_PATTERNS[_0x1b333f(0x17d)](_0xe997e7=>_0xe997e7['test'](_0x1d8e59)))throw CliErrors['validation'](_0x1b333f(0x1c3));validateAllowedImports(_0x1d8e59);}function buildArtifactInput(_0x2dc6ec){const _0x156027=a10_0x11b4e5,_0x5b2a46=readSourceFile(_0x2dc6ec[_0x156027(0x1c5)]('file')),_0x1267a3=_0x2dc6ec[_0x156027(0x1c5)](_0x156027(0x19e))[_0x156027(0x1a6)](),_0x1e737b=parseMetadata(_0x2dc6ec[_0x156027(0x1c5)](_0x156027(0x1a8)));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x1267a3?{'name':_0x1267a3}:{},'content':_0x5b2a46,..._0x1e737b?{'metadata':_0x1e737b}:{},'source':ARTIFACT_SOURCE_AGENT};}function a10_0x5442(_0x283903,_0x10d25f){_0x283903=_0x283903-0x17b;const _0x3cf751=a10_0x3cf7();let _0x544294=_0x3cf751[_0x283903];return _0x544294;}function summarizeArtifact(_0x43d018){const _0x20dad0=a10_0x11b4e5;return{'id':_0x43d018['id'],'name':_0x43d018[_0x20dad0(0x19e)],'artifactType':_0x43d018['artifactType'],'source':_0x43d018[_0x20dad0(0x1a4)],'favorite':_0x43d018[_0x20dad0(0x18f)],'deleted':_0x43d018[_0x20dad0(0x19f)],'createTime':_0x43d018[_0x20dad0(0x180)],'updateTime':_0x43d018[_0x20dad0(0x1bc)]};}function detailArtifact(_0x457e97){const _0x53401f=a10_0x11b4e5;return{'id':_0x457e97['id'],'appCode':_0x457e97[_0x53401f(0x1b0)],'name':_0x457e97['name'],'artifactType':_0x457e97['artifactType'],'source':_0x457e97[_0x53401f(0x1a4)],'favorite':_0x457e97[_0x53401f(0x18f)],'deleted':_0x457e97['deleted'],'content':_0x457e97['content']??'','compiledContent':_0x457e97[_0x53401f(0x193)],'metadata':_0x457e97['metadata']??{},'createTime':_0x457e97[_0x53401f(0x180)],'updateTime':_0x457e97[_0x53401f(0x1bc)]};}function readFavoriteFlag(_0x2ab919){const _0x43a3b0=a10_0x11b4e5,_0x1f7cff=_0x2ab919[_0x43a3b0(0x18e)](_0x43a3b0(0x18f));return _0x1f7cff===undefined||_0x1f7cff===null||_0x1f7cff===''?undefined:_0x2ab919['bool'](_0x43a3b0(0x18f));}const artifactList={'service':a10_0x11b4e5(0x1a7),'command':a10_0x11b4e5(0x1b2),'description':a10_0x11b4e5(0x1be),'risk':a10_0x11b4e5(0x195),'flags':[{'name':a10_0x11b4e5(0x1a4),'type':a10_0x11b4e5(0x186),'description':a10_0x11b4e5(0x1ac)},{'name':a10_0x11b4e5(0x18f),'type':a10_0x11b4e5(0x17c),'description':a10_0x11b4e5(0x182)},VERBOSE_FLAG],async 'execute'(_0x3a6403){const _0x5e4931=a10_0x11b4e5,_0x1c9011=await listRuntimeArtifacts(_0x3a6403[_0x5e4931(0x1b0)],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x3a6403['str'](_0x5e4931(0x1a4))?{'source':_0x3a6403['str'](_0x5e4931(0x1a4))}:{},...readFavoriteFlag(_0x3a6403)!==undefined?{'favorite':readFavoriteFlag(_0x3a6403)}:{}});return{'ok':!![],'data':{'total':_0x1c9011['length'],'items':_0x3a6403[_0x5e4931(0x1b7)]('verbose')?_0x1c9011:_0x1c9011[_0x5e4931(0x185)](summarizeArtifact)}};}},artifactDetail={'service':a10_0x11b4e5(0x1a7),'command':a10_0x11b4e5(0x1a9),'description':'Show\x20one\x20Artifact\x20by\x20id','risk':a10_0x11b4e5(0x195),'flags':[{...ID_FLAG,'description':a10_0x11b4e5(0x19d)}],async 'execute'(_0x1dd6e8){const _0x1eaf39=a10_0x11b4e5,_0x3a77bc=await getRuntimeArtifact(_0x1dd6e8[_0x1eaf39(0x184)]('id'),_0x1dd6e8['appCode']);return{'ok':!![],'data':detailArtifact(_0x3a77bc)};}},artifactCreate={'service':a10_0x11b4e5(0x1a7),'command':'create','description':a10_0x11b4e5(0x1ba),'risk':a10_0x11b4e5(0x19b),'flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0xce169e){const _0x4fb870=a10_0x11b4e5,_0x4579a9=buildArtifactInput(_0xce169e),_0xbe2aab=await createRuntimeArtifact(_0xce169e[_0x4fb870(0x1b0)],_0x4579a9);return{'ok':!![],'data':detailArtifact(_0xbe2aab),'message':_0x4fb870(0x1bb)+_0xbe2aab['id']+(_0xbe2aab[_0x4fb870(0x19e)]?'\x20('+_0xbe2aab[_0x4fb870(0x19e)]+')':'')};},async 'dryRun'(_0x41084a){const _0x5243b7=a10_0x11b4e5,_0x194996=buildArtifactInput(_0x41084a);return dryRun('POST',_0x5243b7(0x183))[_0x5243b7(0x1b3)]({'appCode':_0x41084a['appCode'],..._0x194996})['description'](_0x5243b7(0x1b1))[_0x5243b7(0x190)]();}},artifactUpdate={'service':a10_0x11b4e5(0x1a7),'command':'update','description':a10_0x11b4e5(0x1ae),'risk':a10_0x11b4e5(0x19b),'flags':[{...ID_FLAG,'description':a10_0x11b4e5(0x19d)},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x2ecf9f){const _0x346bea=a10_0x11b4e5,_0x22acef=_0x2ecf9f[_0x346bea(0x184)]('id'),_0xc1730b=buildArtifactInput(_0x2ecf9f),_0xf1ad58=await updateRuntimeArtifact(_0x22acef,_0x2ecf9f[_0x346bea(0x1b0)],_0xc1730b);return{'ok':!![],'data':detailArtifact(_0xf1ad58),'message':_0x346bea(0x19a)+_0xf1ad58['id']+(_0xf1ad58[_0x346bea(0x19e)]?'\x20('+_0xf1ad58['name']+')':'')};},async 'dryRun'(_0x5c180c){const _0x4a4aaf=a10_0x11b4e5,_0x583269=_0x5c180c[_0x4a4aaf(0x184)]('id'),_0x177181=buildArtifactInput(_0x5c180c);return dryRun(_0x4a4aaf(0x1a1),_0x4a4aaf(0x1a5)+_0x583269+_0x4a4aaf(0x1bf))[_0x4a4aaf(0x1b3)]({'appCode':_0x5c180c[_0x4a4aaf(0x1b0)],..._0x177181})['description']('Preview:\x20update\x20react_module\x20Artifact\x20'+_0x583269)['build']();}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
@@ -0,0 +1 @@
1
+ const a11_0xcce74=a11_0x6baf;(function(_0x471bab,_0x2c88ac){const _0x1f0259=a11_0x6baf,_0x483b52=_0x471bab();while(!![]){try{const _0x5efd51=parseInt(_0x1f0259(0x1a0))/0x1*(parseInt(_0x1f0259(0x152))/0x2)+parseInt(_0x1f0259(0x15c))/0x3+-parseInt(_0x1f0259(0x183))/0x4*(parseInt(_0x1f0259(0x14f))/0x5)+-parseInt(_0x1f0259(0x17b))/0x6*(-parseInt(_0x1f0259(0x163))/0x7)+parseInt(_0x1f0259(0x189))/0x8+-parseInt(_0x1f0259(0x198))/0x9*(-parseInt(_0x1f0259(0x197))/0xa)+parseInt(_0x1f0259(0x170))/0xb*(-parseInt(_0x1f0259(0x17f))/0xc);if(_0x5efd51===_0x2c88ac)break;else _0x483b52['push'](_0x483b52['shift']());}catch(_0x14908e){_0x483b52['push'](_0x483b52['shift']());}}}(a11_0xd134,0x3b96e));import{existsSync,mkdirSync,readFileSync,unlinkSync,writeFileSync}from'node:fs';import{dirname}from'node:path';import{homedir}from'node:os';function a11_0xd134(){const _0x357160=['trim','abort','Open\x20this\x20URL\x20in\x20your\x20browser\x20to\x20authorize:','723728xsXfMQ','/.device-auth','project','aborted','now','Device\x20auth\x20API\x20error\x20(','3805560IwNLdY','cancelled','success','code','auth','After\x20authorizing,\x20re-run:\x20','signal','scope','source','removeListener','padStart','&source=','AbortError','status','1930OnFspB','3465yFDesK','Invalid\x20device\x20auth\x20response','global-default','application/json','accessKey','\x20config.','object','global','15489XhnZcz','5RJbodH','Invalid\x20access_key\x20returned\x20by\x20server.','/device-auth?code=','56FsMdES','POST','nonInteractive','/api/device-auth/token','Device\x20authorization\x20cancelled.','write','utf8','access_key','once','toISOString','358506AIMPmS','lovrabet-cli','getTime','log','\x20auth\x20status','Device\x20auth\x20API\x20unreachable\x20after\x20multiple\x20retries.','randomUUID','175PZaKbS','apiError','string','url-only','Device\x20code\x20expired.\x20Run\x20`lovrabet\x20auth\x20device`\x20to\x20get\x20a\x20new\x20code.','Device\x20auth\x20API\x20returned\x20HTTP\x20','),\x20retrying...','parse','Waiting\x20for\x20authorization\x20(timeout:\x2010\x20minutes,\x20Ctrl+C\x20to\x20cancel)...','\x20auth\x20device','str','data','Device\x20authorization\x20timed\x20out\x20after\x2010\x20minutes.\x20Run\x20`lovrabet\x20auth\x20device`\x20to\x20get\x20a\x20new\x20code.','1969gecguX','createdAt','Write\x20to\x20project\x20config','json','Write\x20to\x20global\x20config\x20(default)','Authorize\x20via\x20device\x20code\x20flow\x20(open\x20browser,\x20no\x20copy-paste)','stringify','boolean','bool','test','SIGINT','5682TAeaZS','validation','stderr','\x20remaining','47052ocwnpc'];a11_0xd134=function(){return _0x357160;};return a11_0xd134();}import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a11_0x6baf(_0x317517,_0x429af4){_0x317517=_0x317517-0x14f;const _0xd13421=a11_0xd134();let _0x6baf92=_0xd13421[_0x317517];return _0x6baf92;}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(_0x2214c9){const _0x5d8167=a11_0x6baf;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x2214c9[_0x5d8167(0x178)](_0x5d8167(0x19f)),'explicitProject':_0x2214c9['bool'](_0x5d8167(0x185)),'policy':_0x5d8167(0x19a)}));}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 _0x584124=a11_0x6baf;return crypto[_0x584124(0x162)]();}export function buildDeviceAuthUrl(_0x42e24e,_0x235490,_0x4e6288='lovrabet-cli'){const _0x2267d2=a11_0x6baf;return _0x42e24e+_0x2267d2(0x151)+encodeURIComponent(_0x235490)+_0x2267d2(0x194)+encodeURIComponent(_0x4e6288);}export function getDeviceCodePath(){const _0x1ea04c=a11_0x6baf;return homedir()+'/'+PRODUCT_CONFIG['homeDirName']+_0x1ea04c(0x184);}export function readStoredDeviceCode(){const _0x42568d=a11_0x6baf,_0x1c88b9=getDeviceCodePath();if(!existsSync(_0x1c88b9))return null;try{const _0x3a17f8=readFileSync(_0x1c88b9,{'encoding':_0x42568d(0x158)}),_0x28f2e6=JSON[_0x42568d(0x16a)](_0x3a17f8);if(_0x28f2e6&&typeof _0x28f2e6[_0x42568d(0x18c)]==='string'&&typeof _0x28f2e6[_0x42568d(0x171)]===_0x42568d(0x165)&&(_0x28f2e6[_0x42568d(0x190)]==='global'||_0x28f2e6[_0x42568d(0x190)]===_0x42568d(0x185)))return _0x28f2e6;}catch{}return null;}export function writeStoredDeviceCode(_0x16cd48,_0x3558a0){const _0x5e3df=a11_0x6baf,_0x5ad434=getDeviceCodePath(),_0x4fc133=dirname(_0x5ad434);!existsSync(_0x4fc133)&&mkdirSync(_0x4fc133,{'recursive':!![]});const _0x27025a={'code':_0x16cd48,'createdAt':new Date()[_0x5e3df(0x15b)](),'scope':_0x3558a0};writeFileSync(_0x5ad434,JSON[_0x5e3df(0x176)](_0x27025a),{'encoding':_0x5e3df(0x158),'mode':0x180});}export function deleteStoredDeviceCode(){const _0x4d0ba=getDeviceCodePath();try{unlinkSync(_0x4d0ba);}catch{}}export function isStoredDeviceCodeExpired(_0x2a1755){const _0x2806c9=a11_0x6baf;return Date[_0x2806c9(0x187)]()-new Date(_0x2a1755['createdAt'])[_0x2806c9(0x15e)]()>DEVICE_CODE_TTL_MS;}export async function fetchDeviceToken(_0x562e83,_0xa7d611){const _0x48fa12=a11_0x6baf,_0x52d747=_0x562e83+_0x48fa12(0x155),_0x19cc3d=new AbortController(),_0x4b3b24=setTimeout(()=>_0x19cc3d['abort'](),0x2710),_0x573915=await fetch(_0x52d747,{'method':_0x48fa12(0x153),'headers':{'Content-Type':_0x48fa12(0x19b)},'body':JSON[_0x48fa12(0x176)]({'code':_0xa7d611}),'signal':_0x19cc3d[_0x48fa12(0x18f)]});clearTimeout(_0x4b3b24);if(!_0x573915['ok'])throw CliErrors['networkError'](_0x48fa12(0x168)+_0x573915[_0x48fa12(0x196)]);const _0x3555be=await _0x573915[_0x48fa12(0x173)](),_0x3b8cb4=_0x3555be[_0x48fa12(0x16e)]&&typeof _0x3555be['data']===_0x48fa12(0x19e)?_0x3555be['data']:_0x3555be;if(!_0x3b8cb4||typeof _0x3b8cb4[_0x48fa12(0x196)]!==_0x48fa12(0x165))throw CliErrors[_0x48fa12(0x164)](_0x48fa12(0x199));return{'status':_0x3b8cb4[_0x48fa12(0x196)],'access_key':typeof _0x3b8cb4[_0x48fa12(0x159)]===_0x48fa12(0x165)?_0x3b8cb4[_0x48fa12(0x159)]:undefined};}export async function pollDeviceToken(_0x474cb1,_0x1ce04d,_0x5b1627){const _0x33f90c=a11_0x6baf;let _0x3729f1=0x0;for(let _0x1ebf3e=0x0;_0x1ebf3e<MAX_POLLS;_0x1ebf3e++){if(_0x5b1627[_0x33f90c(0x186)])throw CliErrors['cancelled'](_0x33f90c(0x156));let _0x3de325;try{_0x3de325=await fetchDeviceToken(_0x474cb1,_0x1ce04d);}catch(_0x2ec48a){if(_0x2ec48a instanceof Error&&_0x2ec48a['name']===_0x33f90c(0x195))throw CliErrors[_0x33f90c(0x18a)]('Device\x20authorization\x20cancelled.');_0x3729f1++;if(_0x3729f1>=MAX_CONSECUTIVE_NETWORK_ERRORS)throw CliErrors['networkError'](_0x33f90c(0x161));writeCliSideChannelLine(_0x33f90c(0x188)+_0x3729f1+'/'+MAX_CONSECUTIVE_NETWORK_ERRORS+_0x33f90c(0x169)),await sleep(POLL_INTERVAL_MS);continue;}_0x3729f1=0x0;if(_0x3de325[_0x33f90c(0x196)]===_0x33f90c(0x18b)){if(!_0x3de325[_0x33f90c(0x159)])throw CliErrors[_0x33f90c(0x164)](_0x33f90c(0x150));return _0x3de325[_0x33f90c(0x159)];}if(_0x3de325[_0x33f90c(0x196)]==='expired'){deleteStoredDeviceCode();throw CliErrors[_0x33f90c(0x17c)](_0x33f90c(0x167));}const _0x33a38c=(_0x1ebf3e+0x1)*POLL_INTERVAL_MS,_0x584bec=DEVICE_CODE_TTL_MS-_0x33a38c,_0x40e53f=Math['floor'](_0x584bec/0xea60),_0x3de30e=Math['floor'](_0x584bec%0xea60/0x3e8);process[_0x33f90c(0x17d)][_0x33f90c(0x157)]('\x0dWaiting\x20for\x20authorization...\x20'+_0x40e53f+':'+String(_0x3de30e)[_0x33f90c(0x193)](0x2,'0')+_0x33f90c(0x17e)),await sleep(POLL_INTERVAL_MS);}deleteStoredDeviceCode();throw CliErrors[_0x33f90c(0x17c)](_0x33f90c(0x16f));}function sleep(_0xc5246f){return new Promise(_0x237067=>setTimeout(_0x237067,_0xc5246f));}export const authDeviceDefinition={'service':a11_0xcce74(0x18d),'command':'device','description':a11_0xcce74(0x175),'risk':a11_0xcce74(0x157),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'global','type':a11_0xcce74(0x177),'description':a11_0xcce74(0x174),'default':!![]},{'name':a11_0xcce74(0x185),'type':'boolean','description':a11_0xcce74(0x172),'default':![]},{'name':a11_0xcce74(0x191),'type':a11_0xcce74(0x165),'description':'App\x20name\x20shown\x20on\x20authorization\x20page\x20(default:\x20lovrabet)','default':a11_0xcce74(0x15d)},{'name':a11_0xcce74(0x166),'type':a11_0xcce74(0x177),'description':'Print\x20URL\x20to\x20stdout\x20and\x20exit\x20(for\x20WorkBuddy\x20integration)','default':![]}],async 'execute'(_0x4bbd5d){const _0x4246ac=a11_0xcce74,_0x2591ec=resolveAuthScopeFlags(_0x4bbd5d),_0x2ab457=_0x2591ec[_0x4246ac(0x19f)]?'global':_0x4246ac(0x185),_0x203297=readScopedConfig(_0x2591ec);if(_0x203297[_0x4246ac(0x19c)])return{'ok':!![],'message':'Already\x20authorized.\x20Use\x20`lovrabet\x20auth\x20status`\x20to\x20verify.'};const _0x225285=(_0x4bbd5d[_0x4246ac(0x16d)]('source')||_0x4246ac(0x15d))[_0x4246ac(0x180)](),_0x28d0e4=getUserDomain(),_0x3ea7df=readStoredDeviceCode(),_0x1f853c=_0x3ea7df&&!isStoredDeviceCodeExpired(_0x3ea7df)?_0x3ea7df[_0x4246ac(0x18c)]:((()=>{const _0xf994d=generateDeviceCode();return writeStoredDeviceCode(_0xf994d,_0x2ab457),_0xf994d;})()),_0x4f812a=buildDeviceAuthUrl(_0x28d0e4,_0x1f853c,_0x225285);if(_0x4bbd5d['bool'](_0x4246ac(0x166)))return console[_0x4246ac(0x15f)](_0x4f812a),{'ok':!![]};writeCliSideChannelLine(_0x4246ac(0x182)),writeCliSideChannelLine(''),writeCliSideChannelLine(_0x4f812a),writeCliSideChannelLine(''),writeCliSideChannelLine('The\x20device\x20code\x20is\x20valid\x20for\x2010\x20minutes.');if(_0x4bbd5d[_0x4246ac(0x154)])return writeCliSideChannelLine(_0x4246ac(0x18e)+CLI_BIN_NAME+_0x4246ac(0x16c)),{'ok':!![],'message':'Device\x20authorization\x20URL\x20printed.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20re-run.'};writeCliSideChannelLine(_0x4246ac(0x16b));const _0x366f71=new AbortController(),_0x2b9c5f=()=>{const _0x2602d2=_0x4246ac;_0x366f71[_0x2602d2(0x181)](),process[_0x2602d2(0x192)]('SIGINT',_0x2b9c5f);};process[_0x4246ac(0x15a)]('SIGINT',_0x2b9c5f);let _0x2967af;try{_0x2967af=await pollDeviceToken(_0x28d0e4,_0x1f853c,_0x366f71['signal']);}finally{process[_0x4246ac(0x192)](_0x4246ac(0x17a),_0x2b9c5f);}if(!ACCESS_KEY_PATTERN[_0x4246ac(0x179)](_0x2967af))throw CliErrors[_0x4246ac(0x164)]('Invalid\x20access_key\x20returned\x20by\x20server.');const _0x378114=readScopedConfig(_0x2591ec);return _0x378114['accessKey']=_0x2967af,writeScopedConfig(_0x378114,_0x2591ec),deleteStoredDeviceCode(),process['stderr'][_0x4246ac(0x157)]('\x0a'),writeCliSideChannelLine('AccessKey\x20saved\x20to\x20'+_0x2ab457+_0x4246ac(0x19d)),writeCliSideChannelLine('Verify:\x20'+CLI_BIN_NAME+_0x4246ac(0x160)),{'ok':!![],'message':'Device\x20authorization\x20successful.'};}};
@@ -1 +1 @@
1
- const a11_0x390771=a11_0x44ee;(function(_0x39b31d,_0x5f1531){const _0x3a2ecc=a11_0x44ee,_0x1605a3=_0x39b31d();while(!![]){try{const _0x30cbd0=parseInt(_0x3a2ecc(0xab))/0x1+-parseInt(_0x3a2ecc(0xa6))/0x2*(parseInt(_0x3a2ecc(0xb9))/0x3)+-parseInt(_0x3a2ecc(0xbd))/0x4+parseInt(_0x3a2ecc(0xb1))/0x5+-parseInt(_0x3a2ecc(0xc7))/0x6*(-parseInt(_0x3a2ecc(0x74))/0x7)+-parseInt(_0x3a2ecc(0x8f))/0x8+parseInt(_0x3a2ecc(0x9c))/0x9;if(_0x30cbd0===_0x5f1531)break;else _0x1605a3['push'](_0x1605a3['shift']());}catch(_0x48e92d){_0x1605a3['push'](_0x1605a3['shift']());}}}(a11_0x19e2,0x78751));function a11_0x19e2(){const _0x24da0b=['AccessKey:\x20','trim','ACCESS_KEY','6455288ePhwEz','join','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','\x20Verify:\x20','Clear\x20from\x20global\x20config\x20(default)','Auth\x20config\x20reinitialized\x20in\x20','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','push','newConfigFileName','\x20config.','auth','5879421sPnGnq','\x20config','project','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','check','bool','\x20Current\x20env:\x20','Option\x20C:\x20environment\x20variable','Invalid\x20accessKey\x20format:\x20\x22','init','201114TmQVVv','=ak_xxx','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','status','\x20auth\x20status','644499hpQTOr','repeat','\x20\x20export\x20','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','\x20auth\x20login\x20--access-key\x20<ak_xxx>','Then\x20verify\x20with:\x20','3473660ilUgkx','\x20scope.','cancelled','global-default','envName','userCenterDisplayName','string','accessKey','18cdGmeA','Option\x20A:\x20','global','AccessKey\x20cleared\x20from\x20','1895804iMBhSo','development','login','\x20config.\x20Nothing\x20to\x20clear.','nonInteractive','boolean','daily','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','Option\x20B:\x20apps\x20config\x20(','length','21198qcgpyH','info','read','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','763fCQtSG','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','isTTY','Shorthand\x20for\x20--access-key','AccessKey\x20saved\x20to\x20','validation','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','Use\x20`','test','access-key','Write\x20to\x20global\x20config\x20(default)','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','stdin','str','\x20doctor','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','\x20(via\x20','AccessKey\x20(ak_xxx...)','Auth\x20mode:\x20','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','write','env','Show\x20current\x20authentication\x20status'];a11_0x19e2=function(){return _0x24da0b;};return a11_0x19e2();}import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{getLoginUserInfo}from'../../core/api-client.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function showAccessKeyCreateHint(){const _0x48a28f=a11_0x44ee;writeCliSideChannelLine(_0x48a28f(0x93)+PRODUCT_CONFIG[_0x48a28f(0xb6)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine('Tip:\x20you\x20can\x20also\x20run:'),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x48a28f(0xaf));}function buildAccessKeySetupGuide(){const _0x4eccc3=a11_0x44ee;return[_0x4eccc3(0x93)+PRODUCT_CONFIG[_0x4eccc3(0xb6)]+':',USER_ACCESS_KEY_CREATE_URL,_0x4eccc3(0x92)+CLI_BIN_NAME+_0x4eccc3(0x7f)][_0x4eccc3(0x90)]('\x0a');}function canPromptForAccessKey(_0x5d81fd){const _0x464313=a11_0x44ee;return!_0x5d81fd['nonInteractive']&&process[_0x464313(0x80)]['isTTY']!==![]&&process['stdout'][_0x464313(0x76)]!==![];}function a11_0x44ee(_0xf50f67,_0x3b50dd){_0xf50f67=_0xf50f67-0x71;const _0x19e2fd=a11_0x19e2();let _0x44ee90=_0x19e2fd[_0xf50f67];return _0x44ee90;}function resolveAuthScopeFlags(_0x32acf3){const _0x65bde4=a11_0x44ee;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x32acf3[_0x65bde4(0xa1)](_0x65bde4(0xbb)),'explicitProject':_0x32acf3[_0x65bde4(0xa1)](_0x65bde4(0x9e)),'policy':_0x65bde4(0xb4)}));}async function resolveAuthWriteInput(_0x53d41b){const _0x3ff794=a11_0x44ee;let _0x8f4f04=(_0x53d41b[_0x3ff794(0x81)]('access-key')||_0x53d41b[_0x3ff794(0x81)]('ak')||'')[_0x3ff794(0x8d)]();const _0x51d399=(_0x53d41b[_0x3ff794(0x81)](_0x3ff794(0x8a))||'')[_0x3ff794(0x8d)]();if(!_0x8f4f04&&canPromptForAccessKey(_0x53d41b))try{showAccessKeyCreateHint(),_0x8f4f04=await promptAccessKey('');}catch(_0x300325){if(isAbortPrompt(_0x300325))throw CliErrors[_0x3ff794(0xb3)]();throw _0x300325;}if(!_0x8f4f04)throw CliErrors[_0x3ff794(0x79)]('Missing\x20accessKey.',buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x3ff794(0x7c)](_0x8f4f04))throw CliErrors[_0x3ff794(0x79)](_0x3ff794(0xa4)+_0x8f4f04+'\x22','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars');if(!_0x51d399)return{'accessKey':_0x8f4f04};const _0x456a91=normalizeEnv(_0x51d399);return{'accessKey':_0x8f4f04,'env':isDaily(_0x456a91)?_0x3ff794(0xc3):isDev(_0x456a91)?_0x3ff794(0xbe):'production'};}export const authDefinitions=[{'service':a11_0x390771(0x9b),'command':a11_0x390771(0xbf),'description':a11_0x390771(0x88),'risk':a11_0x390771(0x89),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a11_0x390771(0x7d),'type':a11_0x390771(0xb7),'description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':a11_0x390771(0xb7),'description':a11_0x390771(0x77)},{'name':a11_0x390771(0xbb),'type':a11_0x390771(0xc2),'description':a11_0x390771(0x7e),'default':!![]},{'name':a11_0x390771(0x9e),'type':'boolean','description':'Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x4d9c45){const _0x484672=a11_0x390771;if(_0x4d9c45['bool']('yes'))throw CliErrors[_0x484672(0x79)]('`auth\x20login`\x20does\x20not\x20support\x20--yes.',_0x484672(0x7b)+CLI_BIN_NAME+_0x484672(0x9f)+CLI_BIN_NAME+_0x484672(0x83));const _0x35ae72=(_0x4d9c45['str'](_0x484672(0x7d))||_0x4d9c45['str']('ak')||'')['trim']();if(!_0x35ae72&&_0x4d9c45[_0x484672(0xc1)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x411714=await resolveAuthWriteInput(_0x4d9c45),_0x544f00=resolveAuthScopeFlags(_0x4d9c45),_0x4b5851=readScopedConfig(_0x544f00);_0x4b5851[_0x484672(0xb8)]=_0x411714[_0x484672(0xb8)];_0x411714[_0x484672(0x8a)]&&(_0x4b5851[_0x484672(0x8a)]=_0x411714[_0x484672(0x8a)]);writeScopedConfig(_0x4b5851,_0x544f00);const _0x2efa95=_0x544f00[_0x484672(0xbb)]?_0x484672(0xbb):'project',_0x4d83b1=_0x4b5851[_0x484672(0x8a)]?_0x484672(0xa2)+_0x4b5851[_0x484672(0x8a)]+'.':'';return{'ok':!![],'message':_0x484672(0x78)+_0x2efa95+'\x20config.'+_0x4d83b1+_0x484672(0x94)+CLI_BIN_NAME+_0x484672(0xaa)};}},{'service':'auth','command':a11_0x390771(0xa5),'description':a11_0x390771(0x87),'risk':a11_0x390771(0x89),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a11_0x390771(0x7d),'type':'string','description':a11_0x390771(0x85)},{'name':'ak','type':'string','description':a11_0x390771(0x77)},{'name':a11_0x390771(0x8a),'type':'string','description':'Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config'},{'name':a11_0x390771(0xbb),'type':a11_0x390771(0xc2),'description':a11_0x390771(0x7e),'default':!![]},{'name':a11_0x390771(0x9e),'type':a11_0x390771(0xc2),'description':a11_0x390771(0xae),'default':![]}],async 'execute'(_0x1876f5){const _0x398c22=a11_0x390771,_0x137f91=await resolveAuthWriteInput(_0x1876f5),_0x47b6df=resolveAuthScopeFlags(_0x1876f5),_0x5a0398={'accessKey':_0x137f91[_0x398c22(0xb8)]};_0x137f91['env']&&(_0x5a0398[_0x398c22(0x8a)]=_0x137f91[_0x398c22(0x8a)]);writeScopedConfig(_0x5a0398,_0x47b6df);const _0x6cdace=_0x47b6df[_0x398c22(0xbb)]?_0x398c22(0xbb):_0x398c22(0x9e),_0x3ae517=_0x5a0398['env']?'\x20Current\x20env:\x20'+_0x5a0398[_0x398c22(0x8a)]+'.':'';return{'ok':!![],'message':_0x398c22(0x96)+_0x6cdace+_0x398c22(0xb2)+_0x3ae517+_0x398c22(0x94)+CLI_BIN_NAME+_0x398c22(0xaa)};}},{'service':a11_0x390771(0x9b),'command':'logout','description':'Clear\x20accessKey\x20from\x20config','risk':a11_0x390771(0x89),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a11_0x390771(0xbb),'type':'boolean','description':a11_0x390771(0x95),'default':!![]},{'name':a11_0x390771(0x9e),'type':a11_0x390771(0xc2),'description':a11_0x390771(0x97),'default':![]}],async 'execute'(_0x5b712e){const _0x5ec7c8=a11_0x390771,_0x99687d=resolveAuthScopeFlags(_0x5b712e),_0x5e6df2=readScopedConfig(_0x99687d),_0xf51405=!!_0x5e6df2[_0x5ec7c8(0xb8)];delete _0x5e6df2[_0x5ec7c8(0xb8)],writeScopedConfig(_0x5e6df2,_0x99687d);const _0x33f961=_0x99687d[_0x5ec7c8(0xbb)]?_0x5ec7c8(0xbb):'project';if(_0xf51405)return{'ok':!![],'message':_0x5ec7c8(0xbc)+_0x33f961+_0x5ec7c8(0x9a)};return{'ok':!![],'message':'No\x20AccessKey\x20found\x20in\x20'+_0x33f961+_0x5ec7c8(0xc0)};}},{'service':'auth','command':a11_0x390771(0xa9),'description':a11_0x390771(0x8b),'risk':a11_0x390771(0x72),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a11_0x390771(0xbb),'type':a11_0x390771(0xc2),'description':'Read\x20from\x20global\x20config\x20(default)','default':!![]},{'name':a11_0x390771(0x9e),'type':a11_0x390771(0xc2),'description':a11_0x390771(0x7a),'default':![]},{'name':a11_0x390771(0xa0),'type':a11_0x390771(0xc2),'description':'Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','default':![]}],async 'execute'(_0x4f5a21){const _0x8d5627=a11_0x390771,_0x432d6c=resolveAuthScopeFlags(_0x4f5a21),_0x2c3d75=readScopedConfig(_0x432d6c),_0x5cf77c=productEnvName(_0x8d5627(0x8e)),_0x4ed443=productEnv(_0x8d5627(0x8e))||undefined,_0x1d7a67=_0x2c3d75[_0x8d5627(0xb8)]||undefined,_0x36e9da=_0x4ed443||_0x1d7a67,_0x34049a=_0x4ed443?_0x5cf77c+'\x20env\x20var':_0x1d7a67?(_0x432d6c[_0x8d5627(0xbb)]?_0x8d5627(0xbb):_0x8d5627(0x9e))+_0x8d5627(0x9d):null,_0x53fbf3=[_0x8d5627(0x86)+AUTH_MODE['ClientAk']];if(_0x36e9da){const _0x53191e=_0x36e9da[_0x8d5627(0xc6)]>0x8?''+_0x36e9da['slice'](0x0,0x8)+'*'[_0x8d5627(0xac)](_0x36e9da['length']-0x8):_0x36e9da;_0x53fbf3['push'](_0x8d5627(0x8c)+_0x53191e+(_0x34049a?_0x8d5627(0x84)+_0x34049a+')':''));}if(!_0x36e9da){_0x53fbf3[_0x8d5627(0x98)](''),_0x53fbf3[_0x8d5627(0x98)](_0x8d5627(0x91)),_0x53fbf3[_0x8d5627(0x98)](''),_0x53fbf3[_0x8d5627(0x98)](_0x8d5627(0xba)+CLI_BIN_NAME+_0x8d5627(0x75)),_0x53fbf3[_0x8d5627(0x98)](''),_0x53fbf3['push'](_0x8d5627(0xc5)+PRODUCT_CONFIG[_0x8d5627(0x99)]+')'),_0x53fbf3[_0x8d5627(0x98)](_0x8d5627(0x73)),_0x53fbf3[_0x8d5627(0x98)](''),_0x53fbf3[_0x8d5627(0x98)](_0x8d5627(0xa3)),_0x53fbf3[_0x8d5627(0x98)](_0x8d5627(0xad)+_0x5cf77c+_0x8d5627(0xa7)),_0x53fbf3[_0x8d5627(0x98)](''),_0x53fbf3['push'](_0x8d5627(0xb0)+CLI_BIN_NAME+'\x20auth\x20status'),_0x53fbf3[_0x8d5627(0x98)](_0x8d5627(0xa8)+CLI_BIN_NAME+_0x8d5627(0x82));if(_0x4f5a21[_0x8d5627(0xa1)](_0x8d5627(0xa0)))throw CliErrors['authRequired'](_0x53fbf3[_0x8d5627(0x90)]('\x0a'));}return{'ok':!![],'message':_0x53fbf3[_0x8d5627(0x90)]('\x0a')};}},{'service':a11_0x390771(0x9b),'command':a11_0x390771(0x71),'description':a11_0x390771(0xc4),'risk':'read','requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x3a76b9){const _0x857e74=a11_0x390771,_0x445aa6=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x445aa6,'meta':{'env':_0x3a76b9[_0x857e74(0xb5)]??'production'}}};}}];
1
+ const a12_0xd5c11f=a12_0x562b;(function(_0x21b3d0,_0xcb7353){const _0x3f0d45=a12_0x562b,_0x454cef=_0x21b3d0();while(!![]){try{const _0x19e792=parseInt(_0x3f0d45(0xc6))/0x1+-parseInt(_0x3f0d45(0xd4))/0x2*(parseInt(_0x3f0d45(0xd0))/0x3)+parseInt(_0x3f0d45(0xc1))/0x4*(-parseInt(_0x3f0d45(0x90))/0x5)+parseInt(_0x3f0d45(0x91))/0x6*(parseInt(_0x3f0d45(0xcf))/0x7)+parseInt(_0x3f0d45(0x88))/0x8+parseInt(_0x3f0d45(0xbc))/0x9+parseInt(_0x3f0d45(0xbf))/0xa*(-parseInt(_0x3f0d45(0x8d))/0xb);if(_0x19e792===_0xcb7353)break;else _0x454cef['push'](_0x454cef['shift']());}catch(_0x3e4c08){_0x454cef['push'](_0x454cef['shift']());}}}(a12_0x4444,0x9d1c2));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';function a12_0x562b(_0x3818f9,_0x234fe6){_0x3818f9=_0x3818f9-0x88;const _0x4444a9=a12_0x4444();let _0x562bd0=_0x4444a9[_0x3818f9];return _0x562bd0;}import{getLoginUserInfo}from'../../core/api-client.js';import{getUserDomain}from'../../constant/domain.js';import{authDeviceDefinition,readStoredDeviceCode,deleteStoredDeviceCode,fetchDeviceToken,isStoredDeviceCodeExpired}from'../../commands/auth/device.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function showAccessKeyCreateHint(){const _0x67daec=a12_0x562b;writeCliSideChannelLine(_0x67daec(0x95)+PRODUCT_CONFIG[_0x67daec(0xad)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine('Tip:\x20you\x20can\x20also\x20run:'),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>');}function buildAccessKeySetupGuide(){const _0x444781=a12_0x562b;return[_0x444781(0x95)+PRODUCT_CONFIG[_0x444781(0xad)]+':',USER_ACCESS_KEY_CREATE_URL,_0x444781(0xce)+CLI_BIN_NAME+_0x444781(0xbe)][_0x444781(0xd2)]('\x0a');}function canPromptForAccessKey(_0x2b6fc9){const _0x52ab87=a12_0x562b;return!_0x2b6fc9[_0x52ab87(0xbb)]&&process[_0x52ab87(0xc0)]['isTTY']!==![]&&process[_0x52ab87(0xd8)][_0x52ab87(0x89)]!==![];}function resolveAuthScopeFlags(_0x1722f0){const _0x39a331=a12_0x562b;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x1722f0['bool'](_0x39a331(0xd5)),'explicitProject':_0x1722f0[_0x39a331(0xc8)](_0x39a331(0xb9)),'policy':_0x39a331(0x96)}));}async function resolveAuthWriteInput(_0x49130d){const _0x3bd328=a12_0x562b;let _0x3a3fb5=(_0x49130d[_0x3bd328(0xe2)](_0x3bd328(0xe0))||_0x49130d[_0x3bd328(0xe2)]('ak')||'')[_0x3bd328(0xcc)]();const _0x30f097=(_0x49130d['str'](_0x3bd328(0x97))||'')[_0x3bd328(0xcc)]();if(!_0x3a3fb5&&canPromptForAccessKey(_0x49130d))try{showAccessKeyCreateHint(),_0x3a3fb5=await promptAccessKey('');}catch(_0x555926){if(isAbortPrompt(_0x555926))throw CliErrors[_0x3bd328(0x8f)]();throw _0x555926;}if(!_0x3a3fb5)throw CliErrors['validation']('Missing\x20accessKey.',buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x3bd328(0xcd)](_0x3a3fb5))throw CliErrors[_0x3bd328(0xdd)](_0x3bd328(0xd1)+_0x3a3fb5+'\x22',_0x3bd328(0xdf));if(!_0x30f097)return{'accessKey':_0x3a3fb5};const _0x475145=normalizeEnv(_0x30f097);return{'accessKey':_0x3a3fb5,'env':isDaily(_0x475145)?_0x3bd328(0x9f):isDev(_0x475145)?_0x3bd328(0x8e):_0x3bd328(0x92)};}export const authDefinitions=[{'service':a12_0xd5c11f(0xd9),'command':'login','description':a12_0xd5c11f(0xb1),'risk':a12_0xd5c11f(0xac),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0xd5c11f(0xe0),'type':'string','description':a12_0xd5c11f(0xbd)},{'name':'ak','type':a12_0xd5c11f(0x8c),'description':a12_0xd5c11f(0xda)},{'name':a12_0xd5c11f(0xd5),'type':'boolean','description':a12_0xd5c11f(0x9c),'default':!![]},{'name':a12_0xd5c11f(0xb9),'type':'boolean','description':a12_0xd5c11f(0x9d),'default':![]}],async 'execute'(_0x3e4efd){const _0x4b5d22=a12_0xd5c11f;if(_0x3e4efd[_0x4b5d22(0xc8)]('yes'))throw CliErrors[_0x4b5d22(0xdd)]('`auth\x20login`\x20does\x20not\x20support\x20--yes.','Use\x20`'+CLI_BIN_NAME+_0x4b5d22(0xc4)+CLI_BIN_NAME+_0x4b5d22(0x93));const _0x25a038=(_0x3e4efd[_0x4b5d22(0xe2)](_0x4b5d22(0xe0))||_0x3e4efd['str']('ak')||'')['trim']();if(!_0x25a038&&_0x3e4efd['nonInteractive'])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x5de9f8=await resolveAuthWriteInput(_0x3e4efd),_0x55f365=resolveAuthScopeFlags(_0x3e4efd),_0x4e7c8f=readScopedConfig(_0x55f365);_0x4e7c8f[_0x4b5d22(0x98)]=_0x5de9f8[_0x4b5d22(0x98)];_0x5de9f8['env']&&(_0x4e7c8f['env']=_0x5de9f8[_0x4b5d22(0x97)]);writeScopedConfig(_0x4e7c8f,_0x55f365);const _0x1267e7=_0x55f365['global']?'global':'project',_0x49c01a=_0x4e7c8f[_0x4b5d22(0x97)]?'\x20Current\x20env:\x20'+_0x4e7c8f[_0x4b5d22(0x97)]+'.':'';return{'ok':!![],'message':'AccessKey\x20saved\x20to\x20'+_0x1267e7+_0x4b5d22(0xa7)+_0x49c01a+_0x4b5d22(0xb5)+CLI_BIN_NAME+_0x4b5d22(0xe1)};}},{'service':a12_0xd5c11f(0xd9),'command':'init','description':a12_0xd5c11f(0xdb),'risk':a12_0xd5c11f(0xac),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0xd5c11f(0xe0),'type':a12_0xd5c11f(0x8c),'description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':a12_0xd5c11f(0x8c),'description':a12_0xd5c11f(0xda)},{'name':a12_0xd5c11f(0x97),'type':'string','description':a12_0xd5c11f(0xb2)},{'name':a12_0xd5c11f(0xd5),'type':'boolean','description':a12_0xd5c11f(0x9c),'default':!![]},{'name':a12_0xd5c11f(0xb9),'type':a12_0xd5c11f(0xb4),'description':a12_0xd5c11f(0x9d),'default':![]}],async 'execute'(_0x164709){const _0x1aee3f=a12_0xd5c11f,_0x522389=await resolveAuthWriteInput(_0x164709),_0x49f0f4=resolveAuthScopeFlags(_0x164709),_0x38112c={'accessKey':_0x522389[_0x1aee3f(0x98)]};_0x522389[_0x1aee3f(0x97)]&&(_0x38112c['env']=_0x522389[_0x1aee3f(0x97)]);writeScopedConfig(_0x38112c,_0x49f0f4);const _0x36eb16=_0x49f0f4[_0x1aee3f(0xd5)]?_0x1aee3f(0xd5):_0x1aee3f(0xb9),_0x45fef6=_0x38112c['env']?_0x1aee3f(0xab)+_0x38112c['env']+'.':'';return{'ok':!![],'message':_0x1aee3f(0xc7)+_0x36eb16+_0x1aee3f(0xc9)+_0x45fef6+_0x1aee3f(0xb5)+CLI_BIN_NAME+_0x1aee3f(0xe1)};}},{'service':a12_0xd5c11f(0xd9),'command':'logout','description':a12_0xd5c11f(0xa9),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0xd5c11f(0xd5),'type':a12_0xd5c11f(0xb4),'description':a12_0xd5c11f(0xa1),'default':!![]},{'name':a12_0xd5c11f(0xb9),'type':a12_0xd5c11f(0xb4),'description':'Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x5cdf63){const _0x24afd7=a12_0xd5c11f,_0x19b9f7=resolveAuthScopeFlags(_0x5cdf63),_0x3f47b7=readScopedConfig(_0x19b9f7),_0x3008cb=!!_0x3f47b7[_0x24afd7(0x98)];delete _0x3f47b7[_0x24afd7(0x98)],writeScopedConfig(_0x3f47b7,_0x19b9f7);const _0x43b0f6=_0x19b9f7['global']?_0x24afd7(0xd5):_0x24afd7(0xb9);if(_0x3008cb)return{'ok':!![],'message':_0x24afd7(0xd3)+_0x43b0f6+_0x24afd7(0xa7)};return{'ok':!![],'message':'No\x20AccessKey\x20found\x20in\x20'+_0x43b0f6+_0x24afd7(0xb7)};}},{'service':a12_0xd5c11f(0xd9),'command':a12_0xd5c11f(0xa5),'description':'Show\x20current\x20authentication\x20status','risk':a12_0xd5c11f(0xc3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0xd5c11f(0xd5),'type':a12_0xd5c11f(0xb4),'description':a12_0xd5c11f(0xc2),'default':!![]},{'name':a12_0xd5c11f(0xb9),'type':'boolean','description':a12_0xd5c11f(0x9a),'default':![]},{'name':a12_0xd5c11f(0xae),'type':a12_0xd5c11f(0xb4),'description':a12_0xd5c11f(0x9e),'default':![]}],async 'execute'(_0x5f22eb){const _0x78dd4c=a12_0xd5c11f,_0x555826=resolveAuthScopeFlags(_0x5f22eb),_0x34f8e2=readScopedConfig(_0x555826),_0x2baad3=productEnvName('ACCESS_KEY'),_0x4385c8=productEnv(_0x78dd4c(0x8b))||undefined,_0xdbb5db=_0x34f8e2[_0x78dd4c(0x98)]||undefined,_0x37a987=_0x4385c8||_0xdbb5db,_0x3fa45b=_0x4385c8?_0x2baad3+'\x20env\x20var':_0xdbb5db?(_0x555826['global']?'global':_0x78dd4c(0xb9))+_0x78dd4c(0xa0):null,_0x2dd451=[_0x78dd4c(0xa3)+AUTH_MODE[_0x78dd4c(0xd7)]];if(_0x37a987){const _0x19b5ea=_0x37a987[_0x78dd4c(0xa2)]>0x8?''+_0x37a987[_0x78dd4c(0xb8)](0x0,0x8)+'*'[_0x78dd4c(0xaa)](_0x37a987[_0x78dd4c(0xa2)]-0x8):_0x37a987;_0x2dd451[_0x78dd4c(0xdc)](_0x78dd4c(0xa4)+_0x19b5ea+(_0x3fa45b?_0x78dd4c(0x99)+_0x3fa45b+')':''));}if(!_0x37a987){_0x2dd451[_0x78dd4c(0xdc)](''),_0x2dd451['push']('No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:'),_0x2dd451[_0x78dd4c(0xdc)](''),_0x2dd451[_0x78dd4c(0xdc)](_0x78dd4c(0xba)+CLI_BIN_NAME+'\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]'),_0x2dd451[_0x78dd4c(0xdc)](''),_0x2dd451[_0x78dd4c(0xdc)](_0x78dd4c(0xa8)+PRODUCT_CONFIG[_0x78dd4c(0x94)]+')'),_0x2dd451[_0x78dd4c(0xdc)](_0x78dd4c(0x8a)),_0x2dd451[_0x78dd4c(0xdc)](''),_0x2dd451['push'](_0x78dd4c(0xb0)),_0x2dd451['push']('\x20\x20export\x20'+_0x2baad3+_0x78dd4c(0xaf)),_0x2dd451[_0x78dd4c(0xdc)](''),_0x2dd451[_0x78dd4c(0xdc)](_0x78dd4c(0xb3)+CLI_BIN_NAME+_0x78dd4c(0xe1)),_0x2dd451[_0x78dd4c(0xdc)](_0x78dd4c(0xc5)+CLI_BIN_NAME+'\x20doctor');if(_0x5f22eb[_0x78dd4c(0xc8)](_0x78dd4c(0xae))){const _0x3bb6c9=readStoredDeviceCode();if(_0x3bb6c9&&!isStoredDeviceCodeExpired(_0x3bb6c9)){const _0xe4db8d=getUserDomain(),_0xc6a7fe=await fetchDeviceToken(_0xe4db8d,_0x3bb6c9[_0x78dd4c(0xb6)]);if(_0xc6a7fe[_0x78dd4c(0xa5)]===_0x78dd4c(0xca)&&_0xc6a7fe[_0x78dd4c(0xd6)]){const _0x511b7a={'global':_0x3bb6c9['scope']===_0x78dd4c(0xd5)},_0x17926e=readScopedConfig(_0x511b7a);return _0x17926e['accessKey']=_0xc6a7fe[_0x78dd4c(0xd6)],writeScopedConfig(_0x17926e,_0x511b7a),deleteStoredDeviceCode(),{'ok':!![],'message':_0x78dd4c(0x9b)};}_0xc6a7fe[_0x78dd4c(0xa5)]===_0x78dd4c(0xa6)&&deleteStoredDeviceCode();throw CliErrors[_0x78dd4c(0xcb)]('Device\x20authorization\x20pending.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20try\x20again.');}throw CliErrors['authRequired'](_0x2dd451[_0x78dd4c(0xd2)]('\x0a'));}}return{'ok':!![],'message':_0x2dd451[_0x78dd4c(0xd2)]('\x0a')};}},{'service':a12_0xd5c11f(0xd9),'command':a12_0xd5c11f(0xe4),'description':a12_0xd5c11f(0xe3),'risk':'read','requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x14aa7d){const _0x2d6363=a12_0xd5c11f,_0x20208b=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x20208b,'meta':{'env':_0x14aa7d[_0x2d6363(0xde)]??_0x2d6363(0x92)}}};}},authDeviceDefinition];function a12_0x4444(){const _0x22ce3c=['check','=ak_xxx','Option\x20C:\x20environment\x20variable','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','Then\x20verify\x20with:\x20','boolean','\x20Verify:\x20','code','\x20config.\x20Nothing\x20to\x20clear.','slice','project','Option\x20A:\x20','nonInteractive','11548224dPvbWs','AccessKey\x20(ak_xxx...)','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','111970rauZBy','stdin','4fYaHuN','Read\x20from\x20global\x20config\x20(default)','read','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','574573FLxTzh','Auth\x20config\x20reinitialized\x20in\x20','bool','\x20scope.','success','authRequired','trim','test','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','614446DvYeZI','57036cCIxoZ','Invalid\x20accessKey\x20format:\x20\x22','join','AccessKey\x20cleared\x20from\x20','26iBFXsv','global','access_key','ClientAk','stdout','auth','Shorthand\x20for\x20--access-key','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','push','validation','envName','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','access-key','\x20auth\x20status','str','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','info','9079192ofjEYU','isTTY','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','ACCESS_KEY','string','1584maMMjP','development','cancelled','2886700hvxniT','6mNVCIF','production','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','newConfigFileName','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','global-default','env','accessKey','\x20(via\x20','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','Device\x20authorization\x20successful.','Write\x20to\x20global\x20config\x20(default)','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','daily','\x20config','Clear\x20from\x20global\x20config\x20(default)','length','Auth\x20mode:\x20','AccessKey:\x20','status','expired','\x20config.','Option\x20B:\x20apps\x20config\x20(','Clear\x20accessKey\x20from\x20config','repeat','\x20Current\x20env:\x20','write','userCenterDisplayName'];a12_0x4444=function(){return _0x22ce3c;};return a12_0x4444();}
@@ -1 +1 @@
1
- (function(_0x3936d6,_0x39e621){const _0x2d0978=a12_0x5b75,_0x7060c9=_0x3936d6();while(!![]){try{const _0x24cf0d=parseInt(_0x2d0978(0x10f))/0x1+-parseInt(_0x2d0978(0x120))/0x2+-parseInt(_0x2d0978(0x11d))/0x3+parseInt(_0x2d0978(0x117))/0x4*(-parseInt(_0x2d0978(0x11b))/0x5)+parseInt(_0x2d0978(0x121))/0x6*(-parseInt(_0x2d0978(0x113))/0x7)+-parseInt(_0x2d0978(0x125))/0x8+parseInt(_0x2d0978(0x11e))/0x9*(parseInt(_0x2d0978(0x123))/0xa);if(_0x24cf0d===_0x39e621)break;else _0x7060c9['push'](_0x7060c9['shift']());}catch(_0xb8c4db){_0x7060c9['push'](_0x7060c9['shift']());}}}(a12_0x56a4,0x9bedb));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x3c6540=a12_0x5b75;super(_0x3c6540(0x11a)),this[_0x3c6540(0x114)]='AbortPrompt';}}function createSafeRl(){const _0x1315cb=a12_0x5b75,_0x357635=createInterface({'input':process[_0x1315cb(0x11c)],'output':process[_0x1315cb(0x122)]});let _0x3d5a2f;const _0x2e2ae1=new Promise((_0x2fe4e3,_0x833205)=>{_0x3d5a2f=()=>{const _0x26a0de=a12_0x5b75;_0x3d5a2f&&(_0x357635[_0x26a0de(0x115)](_0x26a0de(0x124),_0x3d5a2f),_0x3d5a2f=undefined);try{_0x357635['close']();}catch{}_0x833205(new AbortPrompt());},_0x357635['once']('SIGINT',_0x3d5a2f);}),_0x31c720=()=>{const _0x3e6f04=_0x1315cb;_0x3d5a2f&&(_0x357635[_0x3e6f04(0x115)]('SIGINT',_0x3d5a2f),_0x3d5a2f=undefined);try{_0x357635[_0x3e6f04(0x111)]();}catch{}};return{'rl':_0x357635,'abortPromise':_0x2e2ae1,'disposeSuccess':_0x31c720};}export async function promptAccessKey(_0x1590b5=''){const _0x2872e6=a12_0x5b75,{rl:_0x128fce,abortPromise:_0x3f0b6b,disposeSuccess:_0xa157f}=createSafeRl(),_0x21a753=new Promise(_0x340bdd=>{const _0x1f35a3=a12_0x5b75,_0x45e66b=_0x1590b5?_0x1f35a3(0x118)+_0x1590b5+_0x1f35a3(0x11f):_0x1f35a3(0x110);_0x128fce[_0x1f35a3(0x116)](_0x45e66b,_0x3c334c=>{_0xa157f(),_0x340bdd(_0x3c334c['trim']()||_0x1590b5);});});return Promise[_0x2872e6(0x119)]([_0x21a753,_0x3f0b6b]);}function a12_0x5b75(_0x3f8170,_0xb6f435){_0x3f8170=_0x3f8170-0x10f;const _0x56a4b3=a12_0x56a4();let _0x5b7542=_0x56a4b3[_0x3f8170];return _0x5b7542;}function a12_0x56a4(){const _0x3994d7=['157230BklJAF','24290514Hwjxwf','):\x20','1123140XxvehD','534fRSmEn','stdout','10nuadUv','SIGINT','9677360liCVQV','912398fWDQco','AccessKey\x20(paste\x20ak_...):\x20','close','AbortPrompt','85589ySfIHU','name','removeListener','question','8BzpyVz','AccessKey\x20(','race','User\x20aborted\x20prompt','152020wxWBZa','stdin'];a12_0x56a4=function(){return _0x3994d7;};return a12_0x56a4();}export function isAbortPrompt(_0x25eba4){const _0x316a8c=a12_0x5b75;return _0x25eba4 instanceof Error&&_0x25eba4[_0x316a8c(0x114)]===_0x316a8c(0x112);}
1
+ (function(_0xdc958e,_0xbdadf){const _0x3cfd09=a13_0x157b,_0x4ee202=_0xdc958e();while(!![]){try{const _0x344115=parseInt(_0x3cfd09(0xdd))/0x1*(parseInt(_0x3cfd09(0xe9))/0x2)+parseInt(_0x3cfd09(0xe7))/0x3*(parseInt(_0x3cfd09(0xda))/0x4)+parseInt(_0x3cfd09(0xde))/0x5+-parseInt(_0x3cfd09(0xe5))/0x6*(parseInt(_0x3cfd09(0xd5))/0x7)+parseInt(_0x3cfd09(0xe2))/0x8+parseInt(_0x3cfd09(0xe8))/0x9*(-parseInt(_0x3cfd09(0xe4))/0xa)+-parseInt(_0x3cfd09(0xdb))/0xb;if(_0x344115===_0xbdadf)break;else _0x4ee202['push'](_0x4ee202['shift']());}catch(_0x1d8198){_0x4ee202['push'](_0x4ee202['shift']());}}}(a13_0x5562,0xca5fe));import{createInterface}from'node:readline';function a13_0x157b(_0x12ff4d,_0x265e83){_0x12ff4d=_0x12ff4d-0xd3;const _0x556258=a13_0x5562();let _0x157bf0=_0x556258[_0x12ff4d];return _0x157bf0;}class AbortPrompt extends Error{constructor(){const _0x364502=a13_0x157b;super('User\x20aborted\x20prompt'),this[_0x364502(0xeb)]=_0x364502(0xd8);}}function createSafeRl(){const _0x3c25d9=a13_0x157b,_0x35adf9=createInterface({'input':process[_0x3c25d9(0xe0)],'output':process[_0x3c25d9(0xdf)]});let _0x61a6f5;const _0xb77ff4=new Promise((_0x3beb5a,_0x2ed36b)=>{const _0x3def01=_0x3c25d9;_0x61a6f5=()=>{const _0x2b5729=a13_0x157b;_0x61a6f5&&(_0x35adf9[_0x2b5729(0xd6)](_0x2b5729(0xd4),_0x61a6f5),_0x61a6f5=undefined);try{_0x35adf9[_0x2b5729(0xe1)]();}catch{}_0x2ed36b(new AbortPrompt());},_0x35adf9[_0x3def01(0xd3)](_0x3def01(0xd4),_0x61a6f5);}),_0x1ca562=()=>{const _0x409e5f=_0x3c25d9;_0x61a6f5&&(_0x35adf9['removeListener'](_0x409e5f(0xd4),_0x61a6f5),_0x61a6f5=undefined);try{_0x35adf9[_0x409e5f(0xe1)]();}catch{}};return{'rl':_0x35adf9,'abortPromise':_0xb77ff4,'disposeSuccess':_0x1ca562};}export async function promptAccessKey(_0x384ad6=''){const _0x35daa5=a13_0x157b,{rl:_0xda580f,abortPromise:_0x5b2902,disposeSuccess:_0x585e7c}=createSafeRl(),_0xb67a5b=new Promise(_0x1dc5a2=>{const _0xdea047=a13_0x157b,_0x37641b=_0x384ad6?_0xdea047(0xea)+_0x384ad6+_0xdea047(0xdc):_0xdea047(0xe6);_0xda580f[_0xdea047(0xd7)](_0x37641b,_0x4ca045=>{const _0x4036db=_0xdea047;_0x585e7c(),_0x1dc5a2(_0x4ca045[_0x4036db(0xe3)]()||_0x384ad6);});});return Promise[_0x35daa5(0xd9)]([_0xb67a5b,_0x5b2902]);}export function isAbortPrompt(_0x477917){const _0x443e5b=a13_0x157b;return _0x477917 instanceof Error&&_0x477917[_0x443e5b(0xeb)]===_0x443e5b(0xd8);}function a13_0x5562(){const _0x578f79=['AccessKey\x20(','name','once','SIGINT','74473ikUdoD','removeListener','question','AbortPrompt','race','321520urAtrJ','22040425EfpBrW','):\x20','2sDVwyB','7073445jVpYqQ','stdout','stdin','close','9099392ZIGIMG','trim','3320vkliHm','588uhQFMr','AccessKey\x20(paste\x20ak_...):\x20','21qfuAHV','24129IGXpUC','1650542HUFMsb'];a13_0x5562=function(){return _0x578f79;};return a13_0x5562();}