@lovrabet/lovrabet-cli 2.1.14 → 2.1.15

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/index.js +1 -1
  13. package/lib/commands/auth/prompt.js +1 -1
  14. package/lib/commands/bff/detail.js +1 -1
  15. package/lib/commands/bff/exec.js +1 -1
  16. package/lib/commands/bff/index.js +1 -1
  17. package/lib/commands/cli-skill/index.js +1 -1
  18. package/lib/commands/common/config-policy.js +1 -1
  19. package/lib/commands/common/constraints.js +1 -1
  20. package/lib/commands/common/flags.js +1 -1
  21. package/lib/commands/common/local-file.js +1 -1
  22. package/lib/commands/config/definitions.js +1 -1
  23. package/lib/commands/config/shared.js +1 -1
  24. package/lib/commands/data/index.js +1 -1
  25. package/lib/commands/dataset/detail.js +1 -1
  26. package/lib/commands/dataset/index.js +1 -1
  27. package/lib/commands/dataset/list.js +1 -1
  28. package/lib/commands/dataset/sdk-doc.js +1 -1
  29. package/lib/commands/doctor.js +1 -1
  30. package/lib/commands/file/index.js +1 -1
  31. package/lib/commands/init.js +1 -1
  32. package/lib/commands/kb/index.js +1 -1
  33. package/lib/commands/logs/index.js +1 -1
  34. package/lib/commands/ocr/index.js +1 -1
  35. package/lib/commands/personal-bff/index.js +1 -1
  36. package/lib/commands/registry.js +1 -1
  37. package/lib/commands/schema.js +1 -1
  38. package/lib/commands/service/dynamic.js +1 -1
  39. package/lib/commands/service/function-name-adapter.js +1 -1
  40. package/lib/commands/service/index.js +1 -1
  41. package/lib/commands/service/registry.js +1 -1
  42. package/lib/commands/skill/commands/create.js +1 -1
  43. package/lib/commands/skill/commands/install.js +1 -1
  44. package/lib/commands/skill/commands/list.js +1 -1
  45. package/lib/commands/skill/commands/push.js +1 -1
  46. package/lib/commands/skill/commands/validate.js +1 -1
  47. package/lib/commands/skill/flags.js +1 -1
  48. package/lib/commands/skill/index.js +1 -1
  49. package/lib/commands/skill/manifest-helpers.js +1 -1
  50. package/lib/commands/skill/push-execute.js +1 -1
  51. package/lib/commands/skill/push-flow-helpers.js +1 -1
  52. package/lib/commands/skill/push-retarget.js +1 -1
  53. package/lib/commands/skill/scopes.js +1 -1
  54. package/lib/commands/skill/summary.js +1 -1
  55. package/lib/commands/skill/templates.js +1 -1
  56. package/lib/commands/skill/validate.js +1 -1
  57. package/lib/commands/sql/detail.js +1 -1
  58. package/lib/commands/sql/exec.js +1 -1
  59. package/lib/commands/sql/index.js +1 -1
  60. package/lib/commands/update.js +1 -1
  61. package/lib/commands/workspace/index.js +1 -1
  62. package/lib/config/schema.js +1 -1
  63. package/lib/constant/app.js +1 -1
  64. package/lib/constant/auth-mode.js +1 -1
  65. package/lib/constant/cli.js +1 -1
  66. package/lib/constant/defaults.js +1 -1
  67. package/lib/constant/distribution.js +1 -1
  68. package/lib/constant/domain.js +1 -1
  69. package/lib/constant/env.js +1 -1
  70. package/lib/constant/output.js +1 -1
  71. package/lib/constant/product.js +1 -1
  72. package/lib/constant/risk.js +1 -1
  73. package/lib/constant/url.js +1 -1
  74. package/lib/context.js +1 -1
  75. package/lib/core/api-client.js +1 -1
  76. package/lib/core/db-resolver.js +1 -1
  77. package/lib/core/sdk-client.js +1 -1
  78. package/lib/errors.js +1 -1
  79. package/lib/framework/build-all-flags.js +1 -1
  80. package/lib/framework/dryrun.js +1 -1
  81. package/lib/framework/flags.js +1 -1
  82. package/lib/framework/help.js +1 -1
  83. package/lib/framework/index.js +1 -1
  84. package/lib/framework/output.js +1 -1
  85. package/lib/framework/preparse.js +1 -1
  86. package/lib/framework/rate-limit.js +1 -1
  87. package/lib/framework/response.js +1 -1
  88. package/lib/framework/runner-confirmation.js +1 -1
  89. package/lib/framework/runner-error.js +1 -1
  90. package/lib/framework/runner.js +1 -1
  91. package/lib/framework/schema-export.js +1 -1
  92. package/lib/framework/service-order.js +1 -1
  93. package/lib/framework/types.js +1 -1
  94. package/lib/generated/build-info.js +1 -1
  95. package/lib/help.js +1 -1
  96. package/lib/skills/npx-skills-add.js +1 -1
  97. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  98. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  99. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  100. package/lib/skills/runtime-skill-sync/links.js +1 -1
  101. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  102. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  103. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  104. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  105. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  106. package/lib/skills/runtime-skill-sync/push.js +1 -1
  107. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  108. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  109. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  110. package/lib/skills/runtime-skill-sync.js +1 -1
  111. package/lib/utils/apply-jq-filter.js +1 -1
  112. package/lib/utils/logger.js +1 -1
  113. package/lib/utils/lossless-json.js +1 -1
  114. package/lib/utils/params.js +1 -1
  115. package/lib/utils/platform.js +1 -1
  116. package/lib/utils/update-notice.js +1 -1
  117. package/lib/utils/version.js +1 -1
  118. package/lib/utils/write-cli-side-channel.js +1 -1
  119. package/package.json +1 -1
  120. package/lib/commands/app-config/shared.js +0 -1
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const a0_0x413b01=a0_0x1990;(function(_0x51a4db,_0x4dc067){const _0x13f828=a0_0x1990,_0x3ebf2f=_0x51a4db();while(!![]){try{const _0x598797=parseInt(_0x13f828(0x120))/0x1+parseInt(_0x13f828(0x119))/0x2+-parseInt(_0x13f828(0x111))/0x3*(parseInt(_0x13f828(0x121))/0x4)+-parseInt(_0x13f828(0x10b))/0x5+-parseInt(_0x13f828(0x108))/0x6*(-parseInt(_0x13f828(0x129))/0x7)+parseInt(_0x13f828(0x10e))/0x8*(-parseInt(_0x13f828(0x105))/0x9)+-parseInt(_0x13f828(0x104))/0xa*(parseInt(_0x13f828(0x118))/0xb);if(_0x598797===_0x4dc067)break;else _0x3ebf2f['push'](_0x3ebf2f['shift']());}catch(_0x2ea637){_0x3ebf2f['push'](_0x3ebf2f['shift']());}}}(a0_0x52ad,0x34804));import{jsx as a0_0x11b177}from'react/jsx-runtime';import a0_0x4a1abf from'meow';import{render}from'ink';import{Help}from'./help.js';function a0_0x52ad(){const _0xe2a7e6=['7fKAwSm','input','assign','flatMap','code','264790ueIjQg','970533riSLLs','hint','stderr','2227110OmeDiB','message','Hint:\x20','411580EcLSln','flags','log','8sHSLqV','./framework/preparse.js','name','3oIQgrA','help','catch','exit','args','corrected','write','88pcNZpu','497752hlPMCR','\x20->\x20--','cancelled','defaultCommand','[preparse]\x20','definition','ExitPromptError','85005ThNhFH','352148jpXMch','exitCode','error','Unexpected\x20error:','ERR_STREAM_DESTROYED','slice',':\x20--','\x0aCancelled.\x0a'];a0_0x52ad=function(){return _0xe2a7e6;};return a0_0x52ad();}import{CliError,CliErrors}from'./errors.js';import{buildConfigFromFlags,initGlobalEnvironment}from'./context.js';import{isKnownService,getServiceEntry,findDefinition,getAllDefinitions}from'./commands/registry.js';import{generateDynamicServiceHelp,resolveDynamicServiceCommand}from'./commands/service/dynamic.js';import{runCommand,createPipelineEnv}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{buildMeowFlags}from'./constant/cli.js';import{getCliVersionDisplay}from'./utils/version.js';const helpText=generateFullHelp(),cli=a0_0x4a1abf(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'version':getCliVersionDisplay()});void main()[a0_0x413b01(0x113)](handleError);async function main(){try{await run();}catch(_0x3c1cf3){handleError(_0x3c1cf3);}}function a0_0x1990(_0x169d5f,_0x16be5c){_0x169d5f=_0x169d5f-0x102;const _0x52ad39=a0_0x52ad();let _0x19909e=_0x52ad39[_0x169d5f];return _0x19909e;}async function run(){const _0x50760d=a0_0x413b01;let _0x279e60=cli[_0x50760d(0x12a)][0x0],_0x28c9e5=cli[_0x50760d(0x12a)][0x1];const _0x23f5fc=cli['flags'];try{const {correctFlags:_0x5d4496}=await import(_0x50760d(0x10f)),_0x3bed0d=getAllDefinitions()[_0x50760d(0x102)](_0xab7336=>_0xab7336['flags']??[]),{flags:_0x4538f6,corrections:_0x2bebf6}=_0x5d4496(_0x23f5fc,_0x3bed0d);if(_0x2bebf6['length']>0x0){for(const _0x4eff2f of _0x2bebf6){process['stderr'][_0x50760d(0x117)](_0x50760d(0x11d)+_0x4eff2f['handler']+_0x50760d(0x127)+_0x4eff2f['original']+_0x50760d(0x11a)+_0x4eff2f[_0x50760d(0x116)]+'\x0a');}Object['assign'](_0x23f5fc,_0x4538f6);}}catch{}if(!_0x279e60){const {waitUntilExit:_0x351413}=render(a0_0x11b177(Help,{}));await _0x351413();return;}if(!isKnownService(_0x279e60)){const _0x2ce18b=resolveDynamicServiceCommand(cli['input'],_0x23f5fc);if(_0x2ce18b){if(_0x23f5fc[_0x50760d(0x112)]){console[_0x50760d(0x10d)](generateCommandHelp(_0x2ce18b[_0x50760d(0x11e)]));return;}Object[_0x50760d(0x12b)](_0x23f5fc,_0x2ce18b[_0x50760d(0x10c)]);const _0x295ae2=buildConfigFromFlags(_0x23f5fc);await initGlobalEnvironment(_0x295ae2);const _0x5eea6f=createPipelineEnv(_0x295ae2,_0x23f5fc);_0x5eea6f[_0x50760d(0x115)]=_0x2ce18b['args'],await runCommand(_0x2ce18b[_0x50760d(0x11e)],_0x5eea6f);return;}if(_0x23f5fc[_0x50760d(0x112)]){const _0x1a00e9=generateDynamicServiceHelp(_0x279e60);if(_0x1a00e9){console['log'](_0x1a00e9);return;}}const {waitUntilExit:_0x116a57}=render(a0_0x11b177(Help,{}));await _0x116a57();return;}const _0x232788=getServiceEntry(_0x279e60);if(!_0x28c9e5){if(_0x23f5fc[_0x50760d(0x112)]){console[_0x50760d(0x10d)](generateServiceHelp(_0x279e60));return;}if(_0x232788[_0x50760d(0x11c)])_0x28c9e5=_0x232788[_0x50760d(0x11c)];else{console[_0x50760d(0x10d)](generateServiceHelp(_0x279e60));return;}}const _0x5575d6=findDefinition(_0x279e60,_0x28c9e5);!_0x5575d6&&(console['log'](generateServiceHelp(_0x279e60)),handleError(CliErrors['unknownCommand'](_0x279e60+'\x20'+_0x28c9e5)));if(_0x23f5fc[_0x50760d(0x112)]){console[_0x50760d(0x10d)](generateCommandHelp(_0x5575d6));return;}const _0x3f5c2a=buildConfigFromFlags(_0x23f5fc);await initGlobalEnvironment(_0x3f5c2a);const _0x4f63c4=createPipelineEnv(_0x3f5c2a,_0x23f5fc);_0x4f63c4[_0x50760d(0x115)]=cli[_0x50760d(0x12a)][_0x50760d(0x126)](0x2),await runCommand(_0x5575d6,_0x4f63c4);}function handleError(_0x1f7e12){const _0x4c7ea9=a0_0x413b01;if(_0x1f7e12 instanceof CliError){_0x1f7e12[_0x4c7ea9(0x103)]===_0x4c7ea9(0x11b)&&(process[_0x4c7ea9(0x107)][_0x4c7ea9(0x117)](_0x4c7ea9(0x128)),process[_0x4c7ea9(0x114)](0x0));console[_0x4c7ea9(0x123)]('Error:\x20'+_0x1f7e12[_0x4c7ea9(0x109)]);if(_0x1f7e12['hint'])console[_0x4c7ea9(0x123)](_0x4c7ea9(0x10a)+_0x1f7e12[_0x4c7ea9(0x106)]);process[_0x4c7ea9(0x114)](_0x1f7e12[_0x4c7ea9(0x122)]);}isUserCancellation(_0x1f7e12)&&(process['stderr'][_0x4c7ea9(0x117)]('\x0aCancelled.\x0a'),process[_0x4c7ea9(0x114)](0x0)),console[_0x4c7ea9(0x123)](_0x4c7ea9(0x124),_0x1f7e12),process[_0x4c7ea9(0x114)](0x1);}function isUserCancellation(_0x382765){const _0x4cfb75=a0_0x413b01;if(!(_0x382765 instanceof Error))return![];if(_0x382765[_0x4cfb75(0x110)]===_0x4cfb75(0x11f))return!![];if(_0x382765[_0x4cfb75(0x103)]==='ERR_USE_AFTER_CLOSE')return!![];if(_0x382765[_0x4cfb75(0x103)]===_0x4cfb75(0x125))return!![];return![];}
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![];}
@@ -1 +1 @@
1
- const a1_0x56edf7=a1_0x5ecb;(function(_0x2e66d0,_0x2f52ce){const _0x5eaa08=a1_0x5ecb,_0x4a305e=_0x2e66d0();while(!![]){try{const _0x105550=parseInt(_0x5eaa08(0x105))/0x1*(-parseInt(_0x5eaa08(0xcb))/0x2)+-parseInt(_0x5eaa08(0xfd))/0x3+-parseInt(_0x5eaa08(0xe9))/0x4*(parseInt(_0x5eaa08(0xe8))/0x5)+parseInt(_0x5eaa08(0xc6))/0x6+parseInt(_0x5eaa08(0x113))/0x7+parseInt(_0x5eaa08(0xd5))/0x8*(parseInt(_0x5eaa08(0xb0))/0x9)+parseInt(_0x5eaa08(0x11c))/0xa;if(_0x105550===_0x2f52ce)break;else _0x4a305e['push'](_0x4a305e['shift']());}catch(_0x4599d7){_0x4a305e['push'](_0x4a305e['shift']());}}}(a1_0x504b,0xab357));import{CliErrors}from'../../errors.js';function a1_0x5ecb(_0x3af82c,_0x37652b){_0x3af82c=_0x3af82c-0xac;const _0x504bd1=a1_0x504b();let _0x5ecb66=_0x504bd1[_0x3af82c];return _0x5ecb66;}const CATEGORY_FLAG={'name':a1_0x56edf7(0xee),'type':a1_0x56edf7(0xdb),'description':a1_0x56edf7(0xf2)},KEYWORD_FLAG={'name':'keyword','type':a1_0x56edf7(0xdb),'description':a1_0x56edf7(0xf3)},DOC_CODE_FLAG={'name':a1_0x56edf7(0xf1),'type':a1_0x56edf7(0xdb),'required':!![],'description':a1_0x56edf7(0xf4)},DOCS=[{'code':a1_0x56edf7(0x100),'category':a1_0x56edf7(0xe7),'title':a1_0x56edf7(0xfa),'method':a1_0x56edf7(0x107),'path':a1_0x56edf7(0xb7),'summary':a1_0x56edf7(0x101),'whenToUse':a1_0x56edf7(0x104),'pathParams':[],'queryParams':[],'bodySchema':'{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','responseHighlights':['tableData\x20contains\x20dataset\x20id/code/name',a1_0x56edf7(0x119)],'examples':['lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress'],'notes':['CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.'],'markdown':[a1_0x56edf7(0xc7),'',a1_0x56edf7(0xcf)][a1_0x56edf7(0xbe)]('\x0a')},{'code':a1_0x56edf7(0x106),'category':a1_0x56edf7(0xe7),'title':'Dataset\x20detail','method':a1_0x56edf7(0xd8),'path':a1_0x56edf7(0xc0),'summary':a1_0x56edf7(0xed),'whenToUse':a1_0x56edf7(0x10e),'pathParams':[],'queryParams':[{'name':a1_0x56edf7(0xf1),'description':'32-character\x20dataset\x20code'}],'bodySchema':a1_0x56edf7(0xd1),'responseHighlights':[a1_0x56edf7(0xcc),a1_0x56edf7(0x10c),'operations\x20describes\x20runtime\x20APIs'],'examples':[a1_0x56edf7(0xbc)],'notes':[a1_0x56edf7(0xe4)],'markdown':[a1_0x56edf7(0xb8),'','Inspect\x20field\x20names,\x20relations,\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.']['join']('\x0a')},{'code':a1_0x56edf7(0xda),'category':'dataset','title':'Filter\x20dataset\x20data','method':a1_0x56edf7(0x107),'path':a1_0x56edf7(0xb2),'summary':a1_0x56edf7(0xf6),'whenToUse':'需要携带\x20where、orderBy、分页等条件读取业务数据时使用','pathParams':[{'name':'appCode','description':'Current\x20app\x20code'},{'name':'datasetCode','description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':'{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','responseHighlights':['tableData\x20contains\x20records',a1_0x56edf7(0xc9)],'examples':[a1_0x56edf7(0x118)],'notes':[a1_0x56edf7(0xd9)],'markdown':[a1_0x56edf7(0xb6),'',a1_0x56edf7(0xba)][a1_0x56edf7(0xbe)]('\x0a')},{'code':a1_0x56edf7(0xdf),'category':a1_0x56edf7(0xe7),'title':'Aggregate\x20dataset\x20data','method':a1_0x56edf7(0x107),'path':a1_0x56edf7(0xd0),'summary':a1_0x56edf7(0xb5),'whenToUse':'需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用','pathParams':[{'name':a1_0x56edf7(0x110),'description':a1_0x56edf7(0xcd)},{'name':a1_0x56edf7(0xde),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':'{\x22aggregate\x22:[{\x22column\x22:\x20\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','responseHighlights':[a1_0x56edf7(0xfe),a1_0x56edf7(0xdd)],'examples':[a1_0x56edf7(0x103)],'notes':[a1_0x56edf7(0xc2),a1_0x56edf7(0x122)],'markdown':[a1_0x56edf7(0xfb),'',a1_0x56edf7(0xc5)][a1_0x56edf7(0xbe)]('\x0a')},{'code':a1_0x56edf7(0xe1),'category':a1_0x56edf7(0xe7),'title':a1_0x56edf7(0xaf),'method':a1_0x56edf7(0x107),'path':a1_0x56edf7(0x11a),'summary':'查询单条数据','whenToUse':a1_0x56edf7(0xf5),'pathParams':[{'name':'appCode','description':a1_0x56edf7(0xcd)},{'name':a1_0x56edf7(0xde),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':a1_0x56edf7(0x109),'responseHighlights':[a1_0x56edf7(0x112)],'examples':[a1_0x56edf7(0xe6)],'notes':[a1_0x56edf7(0x117)],'markdown':a1_0x56edf7(0xdc)},{'code':'dataset_data_create','category':a1_0x56edf7(0xe7),'title':a1_0x56edf7(0xf9),'method':a1_0x56edf7(0x107),'path':a1_0x56edf7(0xd6),'summary':'创建数据','whenToUse':'需要向指定数据集新增一条业务数据时使用','pathParams':[{'name':a1_0x56edf7(0x110),'description':a1_0x56edf7(0xcd)},{'name':a1_0x56edf7(0xde),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':a1_0x56edf7(0x115),'responseHighlights':[a1_0x56edf7(0x111)],'examples':[a1_0x56edf7(0xbf)],'notes':[a1_0x56edf7(0x11f)],'markdown':'##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.'},{'code':'bf_detail','category':'bf','title':a1_0x56edf7(0xc3),'method':a1_0x56edf7(0xd8),'path':a1_0x56edf7(0x10f),'summary':'按应用和函数名精确获取\x20BF\x20运行契约','whenToUse':a1_0x56edf7(0xf7),'pathParams':[{'name':a1_0x56edf7(0x110),'description':a1_0x56edf7(0xcd)},{'name':a1_0x56edf7(0x121),'description':a1_0x56edf7(0x10a)}],'queryParams':[],'bodySchema':a1_0x56edf7(0xd1),'responseHighlights':[a1_0x56edf7(0xe5)],'examples':[a1_0x56edf7(0xc8)],'notes':[a1_0x56edf7(0x116)],'markdown':'##\x20Get\x20BF\x20endpoint\x20function\x20contract\x0a\x0aInspect\x20one\x20known\x20endpoint\x20function\x20through\x20the\x20AK-authenticated\x20exact\x20detail\x20API.'},{'code':a1_0x56edf7(0xe2),'category':'bf','title':a1_0x56edf7(0x102),'method':'POST','path':'/api/endpoint/{appCode}/{functionName}','summary':a1_0x56edf7(0xea),'whenToUse':a1_0x56edf7(0x11b),'pathParams':[{'name':a1_0x56edf7(0x110),'description':a1_0x56edf7(0xcd)},{'name':a1_0x56edf7(0x121),'description':a1_0x56edf7(0xb4)}],'queryParams':[],'bodySchema':a1_0x56edf7(0x10b),'responseHighlights':[a1_0x56edf7(0x108)],'examples':['lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27'],'notes':['Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.'],'markdown':a1_0x56edf7(0xec)},{'code':a1_0x56edf7(0xb9),'category':a1_0x56edf7(0xce),'title':a1_0x56edf7(0xd3),'method':a1_0x56edf7(0x107),'path':a1_0x56edf7(0xef),'summary':'执行自定义\x20SQL','whenToUse':a1_0x56edf7(0xfc),'pathParams':[],'queryParams':[],'bodySchema':a1_0x56edf7(0xf8),'responseHighlights':[a1_0x56edf7(0xf0)],'examples':[a1_0x56edf7(0xca)],'notes':[a1_0x56edf7(0xd4)],'markdown':a1_0x56edf7(0xeb)}];function entrySummary(_0x327624){const _0x515f76=a1_0x56edf7;return{'code':_0x327624[_0x515f76(0xf1)],'category':_0x327624[_0x515f76(0xee)],'method':_0x327624[_0x515f76(0xae)],'path':_0x327624[_0x515f76(0xc1)],'summary':_0x327624[_0x515f76(0x123)],'whenToUse':_0x327624[_0x515f76(0x120)]};}export function listApiDocEntries(_0x4f1f99={}){const _0x602ced=a1_0x56edf7,_0x3178f3=String(_0x4f1f99[_0x602ced(0xee)]||'')[_0x602ced(0xbd)](),_0x444604=String(_0x4f1f99[_0x602ced(0x10d)]||'')[_0x602ced(0xbd)]()[_0x602ced(0xac)]();return DOCS[_0x602ced(0xad)](_0xd2486c=>{const _0x28077f=_0x602ced;if(_0x3178f3&&_0xd2486c[_0x28077f(0xee)]!==_0x3178f3)return![];if(!_0x444604)return!![];return[_0xd2486c[_0x28077f(0xf1)],_0xd2486c['category'],_0xd2486c['method'],_0xd2486c['path'],_0xd2486c['summary'],_0xd2486c[_0x28077f(0x120)],_0xd2486c[_0x28077f(0xe0)]][_0x28077f(0xbe)]('\x20')[_0x28077f(0xac)]()[_0x28077f(0xff)](_0x444604);})[_0x602ced(0xb1)](entrySummary);}function a1_0x504b(){const _0x595db8=['/api/{appCode}/{datasetCode}/filter','detail','Endpoint\x20function\x20name','聚合查询数据集数据','##\x20Filter\x20dataset\x20data','/api/dataset/get-dataset-list-by-app-code','##\x20Dataset\x20detail','custom_sql_execute','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.','read','lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>','trim','join','lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27','/api/dataset/getOneByCode?code={datasetCode}','path','Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.','Get\x20BF\x20endpoint\x20function\x20contract','api-doc','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.','7259646yYDDhD','##\x20List\x20datasets','lovrabet\x20bff\x20detail\x20--name\x20<functionName>','paging\x20contains\x20pagination','lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27','1733974biYZHW','fields/properties\x20describe\x20data\x20shape','Current\x20app\x20code','custom_sql','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.','/api/{appCode}/{datasetCode}/aggregate','None','validation','Execute\x20custom\x20SQL','Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.','1544024VYYzHB','/api/{appCode}/{datasetCode}/create','Show\x20runtime\x20API\x20documentation\x20by\x20code','GET','Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.','dataset_data_filter','string','##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.','where\x20filters\x20before\x20aggregation','datasetCode','dataset_data_aggregate','title','dataset_data_get_one','bf_execute','List\x20available\x20runtime\x20API\x20documentation\x20entries','If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.','CLI\x20returns\x20appCode/functionName/description/version/gmtModified','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27','dataset','146585IzvVHE','132SrVpxx','执行指定\x20BF\x20函数','##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.','##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.','获取数据集详情','category','/api/custom/executeSql','Returns\x20SQL\x20execution\x20payload','code','Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset','Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text','API\x20doc\x20code,\x20for\x20example\x20dataset_list','已经知道记录\x20id,需要按数据集读取单条业务数据时使用','条件过滤查询数据','已经从用户、平台\x20UI\x20或前序上下文确认函数名,需要查看该\x20ENDPOINT\x20的运行态元信息时使用','{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','Create\x20dataset\x20record','List\x20datasets','##\x20Aggregate\x20dataset\x20data','已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','3789456FCfGVF','result\x20rows\x20contain\x20aggregate\x20aliases','includes','dataset_list','分页获取数据集列表','Execute\x20BF\x20endpoint\x20function','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','需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','1ZlmSpl','dataset_detail','POST','Returns\x20script\x20business\x20payload','{\x22id\x22:123}','Exact\x20endpoint\x20function\x20name','{\x22param\x22:\x22value\x22}','relations\x20contains\x20the\x20object-shaped\x20API\x20relations\x20value\x20when\x20returned','keyword','需要按数据集\x20code\x20获取字段、表信息、关联关系(relations)或操作定义时使用','/client/bff/endpoint/{appCode}/{functionName}','appCode','Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result','Returns\x20one\x20matching\x20business\x20record','544558WXUkuH','length','{\x22fieldName\x22:\x22value\x22}','This\x20is\x20an\x20exact\x20lookup\x20by\x20appCode\x20+\x20functionName.\x20The\x20CLI\x20does\x20not\x20enumerate\x20BFF\x20functions\x20or\x20expose\x20platform-only\x20fields.','Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:5}\x27','paging.totalCount\x20gives\x20total\x20rows','/api/{appCode}/{datasetCode}/getOne','已经确认目标\x20BF\x20的\x20functionName,且需要实际调用该\x20ENDPOINT\x20函数完成业务操作时使用','11601150plEhAo','list','find','This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.','whenToUse','functionName','`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','summary','str','toLowerCase','filter','method','Get\x20one\x20dataset\x20record','63iLCyRg','map'];a1_0x504b=function(){return _0x595db8;};return a1_0x504b();}export function getApiDocDetail(_0x3ac039){const _0x364165=a1_0x56edf7,_0x1f0f01=DOCS[_0x364165(0x11e)](_0x2c8ce9=>_0x2c8ce9[_0x364165(0xf1)]===_0x3ac039);if(!_0x1f0f01)throw CliErrors[_0x364165(0xd2)]('API\x20doc\x20code\x20not\x20found:\x20'+_0x3ac039);return{..._0x1f0f01};}const apiDocList={'service':a1_0x56edf7(0xc4),'command':a1_0x56edf7(0x11d),'description':a1_0x56edf7(0xe3),'risk':a1_0x56edf7(0xbb),'requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0x1a996d){const _0x16f88b=a1_0x56edf7,_0x82e6bd=listApiDocEntries({'category':_0x1a996d[_0x16f88b(0x124)](_0x16f88b(0xee)),'keyword':_0x1a996d[_0x16f88b(0x124)](_0x16f88b(0x10d))});return{'ok':!![],'data':{'total':_0x82e6bd[_0x16f88b(0x114)],'items':_0x82e6bd}};}},apiDocDetail={'service':a1_0x56edf7(0xc4),'command':a1_0x56edf7(0xb3),'description':a1_0x56edf7(0xd7),'risk':a1_0x56edf7(0xbb),'requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0x47e2a6){const _0xffb945=a1_0x56edf7;return{'ok':!![],'data':getApiDocDetail(_0x47e2a6['str'](_0xffb945(0xf1)))};}};export const apiDocDefinitions=[apiDocList,apiDocDetail];
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 +1 @@
1
- (function(_0x100739,_0x44ec87){const _0x4661ee=a2_0x36c7,_0x528c33=_0x100739();while(!![]){try{const _0x24b476=parseInt(_0x4661ee(0x1c8))/0x1+parseInt(_0x4661ee(0x1d1))/0x2+parseInt(_0x4661ee(0x1de))/0x3*(-parseInt(_0x4661ee(0x1d3))/0x4)+parseInt(_0x4661ee(0x1d5))/0x5+parseInt(_0x4661ee(0x1dd))/0x6*(-parseInt(_0x4661ee(0x1c2))/0x7)+-parseInt(_0x4661ee(0x1c1))/0x8*(-parseInt(_0x4661ee(0x1d0))/0x9)+-parseInt(_0x4661ee(0x1c3))/0xa;if(_0x24b476===_0x44ec87)break;else _0x528c33['push'](_0x528c33['shift']());}catch(_0x2936ec){_0x528c33['push'](_0x528c33['shift']());}}}(a2_0x501f,0x2d4f5));import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';import{dirname,resolve}from'node:path';function a2_0x36c7(_0x2845df,_0x2893c1){_0x2845df=_0x2845df-0x1c1;const _0x501f5d=a2_0x501f();let _0x36c723=_0x501f5d[_0x2845df];return _0x36c723;}import{PRODUCT_CONFIG}from'../../constant/product.js';function a2_0x501f(){const _0x559884=['EXDEV','isArray','parse','EPERM','code','sha256','trim','256131qgkVYb','671192MrgKwT','slice','8kptjly','stringify','1466905wZlFlW','find','cache','appName','utf8','unknown','update','hex','32298oIHxuH','127776GEDfnm','ak_','my-apps.json','88vSOsLz','322hxYzaP','7222410YlbWJs','items','homeDirName','EACCES','.tmp','298606RReeWk'];a2_0x501f=function(){return _0x559884;};return a2_0x501f();}import{isRuntimeAccessibleApp}from'../../commands/app/eligibility.js';export function fingerprintAccessKey(_0x125a39){const _0x7ea60b=a2_0x36c7,_0x14902f=_0x125a39[_0x7ea60b(0x1cf)](),_0x584464=_0x14902f[_0x7ea60b(0x1d2)](-0x6)||_0x7ea60b(0x1da),_0x19a3b=createHash(_0x7ea60b(0x1ce))[_0x7ea60b(0x1db)](_0x14902f)['digest'](_0x7ea60b(0x1dc))[_0x7ea60b(0x1d2)](0x0,0xc);return _0x7ea60b(0x1df)+_0x584464+'_'+_0x19a3b;}export function getAppCacheFilePath(_0x557c8e,_0x20ed46){const _0x27fdfd=a2_0x36c7;return resolve(homedir(),PRODUCT_CONFIG[_0x27fdfd(0x1c5)],_0x27fdfd(0x1d7),_0x557c8e,fingerprintAccessKey(_0x20ed46),_0x27fdfd(0x1e0));}export function readCachedAppList(_0xdab03a,_0x293b45){const _0xe520e0=a2_0x36c7;if(!_0x293b45?.[_0xe520e0(0x1cf)]())return null;const _0xeab711=getAppCacheFilePath(_0xdab03a,_0x293b45);if(!existsSync(_0xeab711))return null;try{const _0x29b6b9=readFileSync(_0xeab711,'utf8');if(!_0x29b6b9[_0xe520e0(0x1cf)]())return null;const _0x874b2c=JSON[_0xe520e0(0x1cb)](_0x29b6b9);if(!Array[_0xe520e0(0x1ca)](_0x874b2c[_0xe520e0(0x1c4)]))return null;return _0x874b2c;}catch{return null;}}export function writeCachedAppList(_0x48cb44,_0x3c0c10,_0x320fda){const _0x1d13ea=a2_0x36c7,_0x5ba616=getAppCacheFilePath(_0x48cb44,_0x3c0c10),_0x13326d=dirname(_0x5ba616);!existsSync(_0x13326d)&&mkdirSync(_0x13326d,{'recursive':!![]});const _0x8a5bf2=_0x5ba616+_0x1d13ea(0x1c7);try{writeFileSync(_0x8a5bf2,JSON[_0x1d13ea(0x1d4)](_0x320fda,null,0x2)+'\x0a',{'encoding':_0x1d13ea(0x1d9),'mode':0x180});try{renameSync(_0x8a5bf2,_0x5ba616);}catch(_0x3e2db5){if(_0x3e2db5[_0x1d13ea(0x1cd)]===_0x1d13ea(0x1cc)||_0x3e2db5[_0x1d13ea(0x1cd)]===_0x1d13ea(0x1c9)||_0x3e2db5[_0x1d13ea(0x1cd)]===_0x1d13ea(0x1c6)){writeFileSync(_0x5ba616,JSON[_0x1d13ea(0x1d4)](_0x320fda,null,0x2)+'\x0a',{'encoding':_0x1d13ea(0x1d9)});try{unlinkSync(_0x8a5bf2);}catch{}}else throw _0x3e2db5;}}catch(_0x1a610a){try{unlinkSync(_0x8a5bf2);}catch{}throw _0x1a610a;}return _0x5ba616;}export function resolveCachedAppCode(_0x25d3e6,_0x2142ce,_0x1ba10b){const _0x1d92ff=a2_0x36c7;if(!_0x25d3e6)return undefined;const _0x3c2f55=readCachedAppList(_0x2142ce,_0x1ba10b),_0x4ab681=_0x3c2f55?.[_0x1d92ff(0x1c4)][_0x1d92ff(0x1d6)](_0x56c6c5=>_0x56c6c5[_0x1d92ff(0x1d8)]===_0x25d3e6&&isRuntimeAccessibleApp(_0x56c6c5));return _0x4ab681?.['appCode']?.[_0x1d92ff(0x1cf)]()||undefined;}
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 +1 @@
1
- function a3_0x266e(){const _0x544076=['App\x20\x22','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','8733030hjpdVb','no-cache','Use\x20global\x20config\x20scope','appPublishStatus','../../context.js','length','isArray','Usage:\x20','253158LjrlRa','Missing\x20app\x20name.','include-unpublished','globalPath','Deprecated:\x20use\x20workspace\x20use\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','27kGBSuL','Deprecated:\x20use\x20workspace\x20init\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','args','cachePath','use','../../commands/app/remote-source.js','Available\x20remote\x20apps:\x20','accessKey','cache','items','bool','\x20workspace\x20use\x20--app\x20<name>\x20[--env\x20daily]','string','12937248DnuUfO','langs','validation','appcode','map','boolean','i18nInfo','../../commands/app/cache.js','5TYZZrc','trim','nonInteractive','Remote\x20app\x20name\x20to\x20activate','envName','appCode','\x20app(s)\x20for\x20env=\x22','appName','fetchedAt','list','Read\x20app\x20list\x20from\x20local\x20cache\x20only','str','mergedCli','.appcode\x20to\x20.lovrabet.json.','warn','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','49cRPtzA','Target\x20environment\x20(default:\x20current\x20env)','filter','No\x20apps\x20found\x20on\x20the\x20platform.','init','projectPath','find','Include\x20unpublished\x20apps\x20for\x20diagnostics','source','write','local','raw','app','type','\x20app\x20use\x20<name>\x20[--global]','join','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','214386JmZhUD','global','remote','1191264NHUhaV','from','env','import','read','name','defaultApp','Filter\x20by\x20environment\x20(default:\x20current\x20env)','\x20is\x20deprecated.\x20Use\x20`','Read\x20from\x20local\x20cache\x20only','No\x20cached\x20apps\x20found.','Refreshed\x20app\x20cache\x20with\x20','enableI18n','production','8118680AhfeFx','583646XePZxd','Use\x20`'];a3_0x266e=function(){return _0x544076;};return a3_0x266e();}const a3_0xdf9474=a3_0x5b45;function a3_0x5b45(_0x468292,_0x2899d2){_0x468292=_0x468292-0xe9;const _0x266e21=a3_0x266e();let _0x5b4528=_0x266e21[_0x468292];return _0x5b4528;}(function(_0x5cffc1,_0x4cbb11){const _0x2c9710=a3_0x5b45,_0x19dddb=_0x5cffc1();while(!![]){try{const _0x67df36=-parseInt(_0x2c9710(0x137))/0x1*(parseInt(_0x2c9710(0x111))/0x2)+parseInt(_0x2c9710(0xff))/0x3+-parseInt(_0x2c9710(0x102))/0x4+-parseInt(_0x2c9710(0x115))/0x5+-parseInt(_0x2c9710(0x11d))/0x6*(-parseInt(_0x2c9710(0xee))/0x7)+parseInt(_0x2c9710(0x12f))/0x8+parseInt(_0x2c9710(0x122))/0x9*(parseInt(_0x2c9710(0x110))/0xa);if(_0x67df36===_0x4cbb11)break;else _0x19dddb['push'](_0x19dddb['shift']());}catch(_0x5c9f29){_0x19dddb['push'](_0x19dddb['shift']());}}}(a3_0x266e,0xdfa44));import{CliErrors}from'../../errors.js';import{initCreateFlagDefs,initImportFlagDefs,runInit,runInitImport}from'../../commands/init.js';import{getEnv,RUNTIME_ENV_VALUES}from'../../constant/env.js';import{buildAppProfileListFields}from'../../config/schema.js';import{CLI_BIN_NAME,readConfig,writeConfig,scopeLabel,enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{filterRuntimeAccessibleApps,findAppByCode,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const GLOBAL_FLAG={'name':a3_0xdf9474(0x100),'type':'boolean','description':a3_0xdf9474(0x117),'default':![]};function collectFlags(_0x3467f3,_0x3fe4ee){const _0x36428a=a3_0xdf9474,_0x56df3f={};for(const _0x56f5f1 of _0x3fe4ee){const _0x209e5d=_0x56f5f1[_0x36428a(0xfb)]===_0x36428a(0x134)?_0x3467f3[_0x36428a(0x12c)](_0x56f5f1[_0x36428a(0x107)]):_0x3467f3[_0x36428a(0xe9)](_0x56f5f1[_0x36428a(0x107)]);if(_0x209e5d!==''&&_0x209e5d!==![])_0x56df3f[_0x56f5f1['name']]=_0x209e5d;}if(_0x3467f3['nonInteractive'])_0x56df3f[_0x36428a(0x139)]=!![];return _0x56df3f;}function normalizeLanguages(_0x4ed727){const _0x19c824=a3_0xdf9474;if(!Array[_0x19c824(0x11b)](_0x4ed727))return[];return _0x4ed727[_0x19c824(0xf0)](_0x3f93bf=>typeof _0x3f93bf===_0x19c824(0x12e))[_0x19c824(0x133)](_0x25e3c3=>_0x25e3c3['trim']())[_0x19c824(0xf0)](Boolean);}function buildRemoteAppI18nFields(_0xed62e3){const _0x39cd0c=a3_0xdf9474,_0x264734=normalizeLanguages(_0xed62e3[_0x39cd0c(0x135)]?.[_0x39cd0c(0x130)]);return{'enableI18n':typeof _0xed62e3[_0x39cd0c(0x10e)]===_0x39cd0c(0x134)?_0xed62e3['enableI18n']:null,'languages':_0x264734,'i18nInfo':_0xed62e3[_0x39cd0c(0x135)]?{..._0xed62e3[_0x39cd0c(0x135)],'langs':_0x264734[_0x39cd0c(0x11a)]?_0x264734:null}:null};}const initDef={'service':'app','command':a3_0xdf9474(0xf2),'description':a3_0xdf9474(0x123),'risk':a3_0xdf9474(0xf7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0xe208b4){const _0x1f69ce=a3_0xdf9474;return warnDeprecatedAppCommand(_0x1f69ce(0xf2),CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>\x20[--env\x20daily]'),await runInit(collectFlags(_0xe208b4,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a3_0xdf9474(0xfa),'command':a3_0xdf9474(0x140),'description':'List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','risk':a3_0xdf9474(0x106),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':'env','type':'string','description':a3_0xdf9474(0x109),'enum':[...RUNTIME_ENV_VALUES]},{'name':'local','type':'boolean','description':a3_0xdf9474(0x141),'default':![]},{'name':a3_0xdf9474(0x116),'type':'boolean','description':a3_0xdf9474(0xed),'default':![]},{'name':a3_0xdf9474(0x11f),'type':a3_0xdf9474(0x134),'description':a3_0xdf9474(0xf5),'default':![]}],async 'execute'(_0x1a416b){const _0x5218c6=a3_0xdf9474,_0x5f0a35=_0x1a416b[_0x5218c6(0xe9)]('env')||_0x1a416b[_0x5218c6(0x13b)]||getEnv()||_0x5218c6(0x10f),_0x3f71e4=_0x1a416b['bool'](_0x5218c6(0xf8)),_0x5cb2b9=_0x1a416b['bool']('no-cache'),_0x118819=_0x1a416b[_0x5218c6(0x12c)](_0x5218c6(0x11f)),{readRawConfigWithLayers:_0x59d87e,resolveDefaultAppSource:_0x181efd,getLocalAppAliases:_0xfe7698}=await import(_0x5218c6(0x119)),{getRemoteAppList:_0x1b4e90}=await import(_0x5218c6(0x127)),{config:_0x4f3609,layers:_0x3c0795}=_0x59d87e(),_0x31df43=_0x181efd(_0x3c0795),{defaultApp:_0x54d947}=_0x4f3609,_0x15e53f=await _0x1b4e90({'env':_0x5f0a35,'accessKey':_0x1a416b[_0x5218c6(0x129)],'localOnly':_0x3f71e4,'noCache':_0x5cb2b9}),_0xb0530=_0x118819?_0x15e53f[_0x5218c6(0x12b)]:filterRuntimeAccessibleApps(_0x15e53f[_0x5218c6(0x12b)]),_0x322062=_0x15e53f[_0x5218c6(0x12b)]['length']-_0xb0530[_0x5218c6(0x11a)],_0x34acb9=_0xb0530[_0x5218c6(0x133)](_0x3774f6=>{const _0x5d9eb8=_0x5218c6;return{'name':_0x3774f6['appName'],'appcode':_0x3774f6[_0x5d9eb8(0x13c)],'named':!![],'definedIn':_0x5d9eb8(0x101),'isDefault':_0x3774f6[_0x5d9eb8(0x13e)]===_0x54d947,...buildAppProfileListFields(_0x5f0a35),...buildRemoteAppI18nFields(_0x3774f6),'source':_0x15e53f[_0x5d9eb8(0xf6)],'owner':_0x3774f6['appOwnerName']??null,'status':_0x3774f6[_0x5d9eb8(0x118)]??null,'cachedAt':_0x15e53f[_0x5d9eb8(0x13f)]};}),_0x14540b=_0xfe7698(_0x4f3609);let _0x47d5bd=0x0;for(const [_0xb8bdde,_0xb3f33d]of Object['entries'](_0x14540b)){const _0x4bb306=typeof _0xb3f33d[_0x5218c6(0x132)]===_0x5218c6(0x12e)?_0xb3f33d[_0x5218c6(0x132)][_0x5218c6(0x138)]():'';if(!_0x4bb306)continue;const _0x443012=findAppByCode(_0x15e53f[_0x5218c6(0x12b)],_0x4bb306);if(!_0x118819&&_0x443012&&!isRuntimeAccessibleApp(_0x443012))continue;_0x47d5bd+=0x1,_0x34acb9['push']({'name':_0xb8bdde,'appcode':_0x4bb306,'named':!![],'definedIn':_0x5218c6(0xf8),'isDefault':_0xb8bdde===_0x54d947,...buildAppProfileListFields(_0x5f0a35),'source':'config','owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x34acb9,_0x1a416b[_0x5218c6(0xea)]);const _0x2a5185=_0x34acb9[_0x5218c6(0xf4)](_0xae613d=>_0xae613d['isCurrent']===!![]),_0x4699fc=_0x54d947??_0x2a5185?.[_0x5218c6(0x107)]??null,_0x319825={'env':_0x5f0a35,'source':_0x15e53f[_0x5218c6(0xf6)],'fetchedAt':_0x15e53f[_0x5218c6(0x13f)],'cachePath':_0x15e53f[_0x5218c6(0x125)],'globalPath':_0x3c0795[_0x5218c6(0x120)]??null,'projectPath':_0x3c0795[_0x5218c6(0xf3)]??null,'defaultApp':_0x4699fc,'defaultAppSource':_0x54d947!=null?_0x31df43:null,'localAliasCount':_0x47d5bd,'remoteTotal':_0x15e53f[_0x5218c6(0x12b)][_0x5218c6(0x11a)],'hiddenUnpublishedCount':_0x322062,'includeUnpublished':_0x118819};if(_0x34acb9[_0x5218c6(0x11a)]===0x0)return{'ok':!![],'data':{'items':_0x34acb9,'meta':_0x319825},'message':_0x15e53f['source']===_0x5218c6(0x12a)?_0x5218c6(0x10c):_0x5218c6(0xf1)};return{'ok':!![],'data':{'items':_0x34acb9,'meta':_0x319825}};}},pullDef={'service':'app','command':'pull','description':a3_0xdf9474(0xfe),'risk':a3_0xdf9474(0xf7),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a3_0xdf9474(0x104),'type':a3_0xdf9474(0x12e),'description':a3_0xdf9474(0xef),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0xdf9474(0xf8),'type':'boolean','description':a3_0xdf9474(0x10b),'default':![]},{'name':a3_0xdf9474(0x116),'type':a3_0xdf9474(0x134),'description':a3_0xdf9474(0xed),'default':![]}],async 'execute'(_0x2636d3){const _0x1c40c4=a3_0xdf9474,_0x122ff2=_0x2636d3[_0x1c40c4(0xe9)](_0x1c40c4(0x104))||_0x2636d3[_0x1c40c4(0x13b)]||getEnv()||_0x1c40c4(0x10f),_0x6779e0=_0x2636d3[_0x1c40c4(0x12c)]('local'),_0x4eaedf=_0x2636d3[_0x1c40c4(0x12c)](_0x1c40c4(0x116)),{getRemoteAppList:_0x3dffb0}=await import(_0x1c40c4(0x127)),_0xcb4a20=await _0x3dffb0({'env':_0x122ff2,'accessKey':_0x2636d3['accessKey'],'localOnly':_0x6779e0,'noCache':_0x4eaedf});return{'ok':!![],'data':{'total':_0xcb4a20['items']['length'],'env':_0x122ff2,'source':_0xcb4a20[_0x1c40c4(0xf6)],'fetchedAt':_0xcb4a20[_0x1c40c4(0x13f)],'cachePath':_0xcb4a20[_0x1c40c4(0x125)]},'message':_0xcb4a20['source']===_0x1c40c4(0x12a)?'Loaded\x20'+_0xcb4a20[_0x1c40c4(0x12b)][_0x1c40c4(0x11a)]+'\x20cached\x20app(s)\x20for\x20env=\x22'+_0x122ff2+'\x22.':_0x1c40c4(0x10d)+_0xcb4a20['items'][_0x1c40c4(0x11a)]+_0x1c40c4(0x13d)+_0x122ff2+'\x22.'};}},useDef={'service':'app','command':a3_0xdf9474(0x126),'description':a3_0xdf9474(0x121),'risk':a3_0xdf9474(0xf7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a3_0xdf9474(0x107),'description':a3_0xdf9474(0x13a),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0xa39727){const _0x1e6e55=a3_0xdf9474;if(!_0xa39727[_0x1e6e55(0x124)][0x0])throw CliErrors[_0x1e6e55(0x131)](_0x1e6e55(0x11e),'Usage:\x20'+CLI_BIN_NAME+'\x20app\x20use\x20<name>\x20[--global]');},async 'execute'(_0x2823ec){const _0x56970a=a3_0xdf9474;warnDeprecatedAppCommand('use',CLI_BIN_NAME+_0x56970a(0x12d));const _0xfedad=_0x2823ec[_0x56970a(0x124)][0x0];if(!_0xfedad)throw CliErrors[_0x56970a(0x131)](_0x56970a(0x11e),_0x56970a(0x11c)+CLI_BIN_NAME+_0x56970a(0xfc));const {buildConfigFromFlags:_0x9e6cbb,resolveLocalAppAliasCode:_0x2a1717}=await import('../../context.js'),{readCachedAppList:_0x1970fb}=await import(_0x56970a(0x136)),_0xca9982=_0x2823ec['str'](_0x56970a(0x104)),_0x23caa3=_0x9e6cbb(_0xca9982?{'env':_0xca9982}:{}),_0x405393=_0x1970fb(_0x23caa3[_0x56970a(0x104)],_0x23caa3[_0x56970a(0x129)]),_0x10b552=_0x405393?.['items'][_0x56970a(0xf4)](_0x548020=>_0x548020[_0x56970a(0x13e)]===_0xfedad),_0x1a1be3=_0x2a1717(_0x23caa3[_0x56970a(0xf9)]??{},_0xfedad);if(_0x10b552&&!isRuntimeAccessibleApp(_0x10b552))throw runtimeInaccessibleAppError(_0x10b552,'\x22'+_0xfedad+'\x22');if(_0x1a1be3){const _0x185967=_0x405393?.['items']['find'](_0x2225ce=>_0x2225ce[_0x56970a(0x13c)]?.['trim']()===_0x1a1be3);if(_0x185967&&!isRuntimeAccessibleApp(_0x185967))throw runtimeInaccessibleAppError(_0x185967,'\x22'+_0xfedad+'\x22');}if(!_0x10b552&&!_0x1a1be3&&_0x23caa3[_0x56970a(0x108)]!==_0xfedad){const _0x340410=[..._0x405393?.[_0x56970a(0x12b)][_0x56970a(0x133)](_0x576d2d=>_0x576d2d['appName'])??[]],_0x2922e3=_0x340410[_0x56970a(0x11a)]===0x0?_0x56970a(0x112)+CLI_BIN_NAME+'\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.'+_0xfedad+_0x56970a(0xeb):_0x56970a(0x128)+Array[_0x56970a(0x103)](new Set(_0x340410))[_0x56970a(0xfd)](',\x20')+'.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.';throw CliErrors[_0x56970a(0x131)](_0x56970a(0x113)+_0xfedad+'\x22\x20not\x20found.',_0x2922e3);}const _0x4c3022=_0x2823ec[_0x56970a(0x12c)](_0x56970a(0x100));let _0x32ebf6;if(_0x4c3022)_0x32ebf6={'global':!![]};else{const {isInProject:_0x3451a2}=await import(_0x56970a(0x119)),_0x5df999=_0x3451a2();_0x32ebf6=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':'project-default','inProject':_0x5df999}));}const _0x2e4fa3=readConfig(_0x32ebf6);return _0x2e4fa3[_0x56970a(0x108)]=_0xfedad,writeConfig(_0x2e4fa3,_0x32ebf6),{'ok':!![],'message':'Default\x20app\x20candidate\x20set\x20to\x20\x22'+_0xfedad+'\x22'+scopeLabel(_0x32ebf6)+'.'};}};function warnDeprecatedAppCommand(_0x28dc37,_0x31718d){const _0x4a3ddd=a3_0xdf9474;console[_0x4a3ddd(0xec)](CLI_BIN_NAME+'\x20app\x20'+_0x28dc37+_0x4a3ddd(0x10a)+_0x31718d+'`\x20instead.');}const importDef={'service':a3_0xdf9474(0xfa),'command':a3_0xdf9474(0x105),'description':a3_0xdf9474(0x114),'risk':a3_0xdf9474(0xf7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x57db3a){return await runInitImport(collectFlags(_0x57db3a,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
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 +1 @@
1
- (function(_0x145195,_0x1606c7){const _0x2b114=a4_0x23f7,_0x4e2487=_0x145195();while(!![]){try{const _0x31f816=-parseInt(_0x2b114(0x1b2))/0x1*(parseInt(_0x2b114(0x1a6))/0x2)+-parseInt(_0x2b114(0x1aa))/0x3+-parseInt(_0x2b114(0x1a3))/0x4+parseInt(_0x2b114(0x1b1))/0x5*(parseInt(_0x2b114(0x1a9))/0x6)+-parseInt(_0x2b114(0x1b0))/0x7*(parseInt(_0x2b114(0x1a2))/0x8)+parseInt(_0x2b114(0x1a1))/0x9+-parseInt(_0x2b114(0x1ae))/0xa*(-parseInt(_0x2b114(0x1b3))/0xb);if(_0x31f816===_0x1606c7)break;else _0x4e2487['push'](_0x4e2487['shift']());}catch(_0x309fc8){_0x4e2487['push'](_0x4e2487['shift']());}}}(a4_0x3e7e,0x931e3));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(_0x44431d){const _0x538b1f=a4_0x23f7;if(typeof _0x44431d!==_0x538b1f(0x1af))return null;const _0x4247ed=_0x44431d[_0x538b1f(0x1a5)]();return _0x4247ed?_0x4247ed[_0x538b1f(0x1ad)]():null;}export function isRuntimeAccessibleApp(_0xb21ffa){const _0x2fe9c9=a4_0x23f7;return normalizeAppPublishStatus(_0xb21ffa[_0x2fe9c9(0x19d)])===RUNTIME_ACCESSIBLE_APP_STATUS;}export function filterRuntimeAccessibleApps(_0x3ea65a){const _0xf635d3=a4_0x23f7;return _0x3ea65a[_0xf635d3(0x19f)](isRuntimeAccessibleApp);}export function findAppByName(_0xb4a4ae,_0x361531){const _0x3b871f=a4_0x23f7;return _0xb4a4ae[_0x3b871f(0x1ac)](_0x1bc73a=>_0x1bc73a[_0x3b871f(0x19e)]===_0x361531);}function a4_0x3e7e(){const _0x1fb0e9=['5mGxQnT','139ROiKBS','374SZIzGW','appCode','appPublishStatus','appName','filter','UNKNOWN','1122606wbCVXh','15016nzWbMo','4549060xGaFdE','\x20is\x20not\x20available\x20for\x20runtime\x20AI\x20access.','trim','10522MPOdzB','Current\x20status:\x20','App\x20','2390538bJAyYq','2029788CFbVET','validation','find','toUpperCase','821620jVvzlj','string','630ofMPHh'];a4_0x3e7e=function(){return _0x1fb0e9;};return a4_0x3e7e();}function a4_0x23f7(_0x32db31,_0x1e2d9c){_0x32db31=_0x32db31-0x19d;const _0x3e7e09=a4_0x3e7e();let _0x23f745=_0x3e7e09[_0x32db31];return _0x23f745;}export function findAppByCode(_0x33e1f5,_0x4d0f03){const _0xc9f071=a4_0x23f7,_0x246fe8=_0x4d0f03['trim']();if(!_0x246fe8)return undefined;return _0x33e1f5[_0xc9f071(0x1ac)](_0x32880d=>_0x32880d[_0xc9f071(0x1b4)]?.['trim']()===_0x246fe8);}export function runtimeInaccessibleAppError(_0x535e7f,_0x5cb3ba){const _0x13f564=a4_0x23f7,_0x37da55=normalizeAppPublishStatus(_0x535e7f[_0x13f564(0x19d)])??_0x13f564(0x1a0);return CliErrors[_0x13f564(0x1ab)](_0x13f564(0x1a8)+_0x5cb3ba+_0x13f564(0x1a4),_0x13f564(0x1a7)+_0x37da55+'.\x20Publish\x20the\x20app\x20before\x20using\x20'+CLI_BIN_NAME+'\x20dataset/data/sql/bff\x20commands,\x20or\x20choose\x20a\x20published\x20app.');}
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 +1 @@
1
- (function(_0x1e0675,_0x50ae54){const _0xe43066=a5_0x2941,_0x442686=_0x1e0675();while(!![]){try{const _0x377031=parseInt(_0xe43066(0x1ee))/0x1+-parseInt(_0xe43066(0x1eb))/0x2+parseInt(_0xe43066(0x1ec))/0x3+parseInt(_0xe43066(0x1e9))/0x4*(parseInt(_0xe43066(0x1f0))/0x5)+parseInt(_0xe43066(0x1f1))/0x6+-parseInt(_0xe43066(0x1e7))/0x7+parseInt(_0xe43066(0x1f2))/0x8*(-parseInt(_0xe43066(0x1e5))/0x9);if(_0x377031===_0x50ae54)break;else _0x442686['push'](_0x442686['shift']());}catch(_0x5500f5){_0x442686['push'](_0x442686['shift']());}}}(a5_0x54d9,0xb3f9e));function a5_0x2941(_0x29b2e9,_0x47ac0d){_0x29b2e9=_0x29b2e9-0x1e5;const _0x54d9a9=a5_0x54d9();let _0x2941f8=_0x54d9a9[_0x29b2e9];return _0x2941f8;}function a5_0x54d9(){const _0x5f37e8=['Mock\x20API\x20error:\x20','errorMsg','9pNTJxg','tableData','5676902FZWCOW','utf-8','8jRTNuW','errorCode','1099336IAhRNR','1961595dXVZGf','data','748721MTLovp','../../../mock/app-list.json','1541075shQyJS','5055462RolnGB','6110056kzCKFz'];a5_0x54d9=function(){return _0x5f37e8;};return a5_0x54d9();}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 _0x68a9ab=a5_0x2941,_0x3e7df0=join(__dirname,_0x68a9ab(0x1ef)),_0x13f3f3=readFileSync(_0x3e7df0,_0x68a9ab(0x1e8));return JSON['parse'](_0x13f3f3);}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x58cdeb=a5_0x2941,_0x5d7b07=getMockAppList();if(!_0x5d7b07['success'])throw new Error(_0x58cdeb(0x1f3)+_0x5d7b07[_0x58cdeb(0x1f4)]+'\x20('+_0x5d7b07[_0x58cdeb(0x1ea)]+')');return _0x5d7b07[_0x58cdeb(0x1ed)][_0x58cdeb(0x1e6)];}
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 +1 @@
1
- (function(_0x5c2273,_0x465a7f){const _0x588ae2=a6_0x23af,_0x3b3b2b=_0x5c2273();while(!![]){try{const _0x2ab54e=parseInt(_0x588ae2(0x12e))/0x1+parseInt(_0x588ae2(0x138))/0x2*(parseInt(_0x588ae2(0x139))/0x3)+-parseInt(_0x588ae2(0x133))/0x4+parseInt(_0x588ae2(0x12d))/0x5+parseInt(_0x588ae2(0x12a))/0x6*(-parseInt(_0x588ae2(0x135))/0x7)+-parseInt(_0x588ae2(0x129))/0x8*(parseInt(_0x588ae2(0x132))/0x9)+parseInt(_0x588ae2(0x13b))/0xa*(parseInt(_0x588ae2(0x12b))/0xb);if(_0x2ab54e===_0x465a7f)break;else _0x3b3b2b['push'](_0x3b3b2b['shift']());}catch(_0x16c865){_0x3b3b2b['push'](_0x3b3b2b['shift']());}}}(a6_0x45ff,0x29912));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';function a6_0x23af(_0x579554,_0x2b98fa){_0x579554=_0x579554-0x129;const _0x45ff47=a6_0x45ff();let _0x23afb5=_0x45ff47[_0x579554];return _0x23afb5;}function a6_0x45ff(){const _0x5cd1fa=['1603vheGIW','cache','toLowerCase','2dzzOSw','394413ZRPSEP','mock','94040VFOueY','2012824VSoAFM','8574AFarPw','473BoSEyb','trim','757620UEBixJ','246992FKDmcV','toISOString','fetchedAt','APP_LIST_SOURCE','9azuzwv','741028AKlKCd','items'];a6_0x45ff=function(){return _0x5cd1fa;};return a6_0x45ff();}export function shouldUseMockRemoteApps(){const _0x40a30d=a6_0x23af,_0x15ef7e=(productEnv(_0x40a30d(0x131))||'')[_0x40a30d(0x12c)]()[_0x40a30d(0x137)]();return _0x15ef7e===_0x40a30d(0x13a);}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x59469e){const _0x11a549=a6_0x23af,{env:_0x2222ce,accessKey:_0x37b9f4,localOnly:localOnly=![],noCache:noCache=![]}=_0x59469e,_0xe983bd=readCachedAppList(_0x2222ce,_0x37b9f4),_0x5e2ec3=_0x37b9f4?.[_0x11a549(0x12c)]()?getAppCacheFilePath(_0x2222ce,_0x37b9f4):null;if(localOnly)return{'items':_0xe983bd?.[_0x11a549(0x134)]??[],'source':_0x11a549(0x136),'fetchedAt':_0xe983bd?.[_0x11a549(0x130)]??null,'cachePath':_0x5e2ec3};try{const _0x228c0c=await getRemoteAppItems(),_0x1873b9=shouldUseMockRemoteApps()?_0x11a549(0x13a):'remote',_0x38a3d3=new Date()[_0x11a549(0x12f)](),_0xbf7667=_0x37b9f4?.[_0x11a549(0x12c)]()?writeCachedAppList(_0x2222ce,_0x37b9f4,{'env':_0x2222ce,'fetchedAt':_0x38a3d3,'source':_0x1873b9,'items':_0x228c0c}):null;return{'items':_0x228c0c,'source':_0x1873b9,'fetchedAt':_0x38a3d3,'cachePath':_0xbf7667};}catch(_0x33d70e){if(!noCache&&_0xe983bd)return{'items':_0xe983bd[_0x11a549(0x134)],'source':_0x11a549(0x136),'fetchedAt':_0xe983bd['fetchedAt'],'cachePath':_0x5e2ec3};throw _0x33d70e;}}
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 +1 @@
1
- (function(_0x3bfa15,_0x471d5f){const _0x4c8beb=a7_0x57e3,_0x2985f6=_0x3bfa15();while(!![]){try{const _0x1de786=-parseInt(_0x4c8beb(0x95))/0x1*(-parseInt(_0x4c8beb(0x91))/0x2)+parseInt(_0x4c8beb(0x8f))/0x3*(-parseInt(_0x4c8beb(0x8e))/0x4)+-parseInt(_0x4c8beb(0x86))/0x5*(parseInt(_0x4c8beb(0x8c))/0x6)+-parseInt(_0x4c8beb(0x8a))/0x7*(parseInt(_0x4c8beb(0x8d))/0x8)+-parseInt(_0x4c8beb(0x92))/0x9*(parseInt(_0x4c8beb(0x9a))/0xa)+-parseInt(_0x4c8beb(0x89))/0xb*(parseInt(_0x4c8beb(0x87))/0xc)+parseInt(_0x4c8beb(0x88))/0xd;if(_0x1de786===_0x471d5f)break;else _0x2985f6['push'](_0x2985f6['shift']());}catch(_0x1a5501){_0x2985f6['push'](_0x2985f6['shift']());}}}(a7_0xc098,0x3755f));import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};function a7_0xc098(){const _0x1e5258=['name','local','22210ULlOQs','currentApp','find','defaultApp','definedIn','isCurrent','2255055RBtELP','3978444WjOkRF','14789684pFYHBL','11RFIteY','98ApeiZB','project','6qwilzS','99608HTOBoL','8czhjBN','511611VXADwf','named','28312RaILJM','153QRIkCN','appCode','global','30AbFmBQ','appcode','trim'];a7_0xc098=function(){return _0x1e5258;};return a7_0xc098();}export function enrichAppListItemsWithMergedSelection(_0x3cfd72,_0x53ef28){const _0x5765c0=a7_0x57e3;if(!_0x53ef28)return;const _0x3cd083=!!(_0x53ef28[_0x5765c0(0x81)]??_0x53ef28[_0x5765c0(0x83)]);for(const _0x15e610 of _0x3cfd72){_0x15e610[_0x5765c0(0x85)]=![];}const _0x9d86d8=_0x53ef28['appCode']!=null?String(_0x53ef28[_0x5765c0(0x93)])[_0x5765c0(0x97)]():'';if(_0x3cd083){const _0x6be593=_0x53ef28[_0x5765c0(0x81)]??_0x53ef28[_0x5765c0(0x83)];if(_0x6be593){const _0x4e895a=_0x3cfd72[_0x5765c0(0x82)](_0x21725d=>_0x21725d['named']===!![]&&_0x21725d[_0x5765c0(0x98)]===_0x6be593&&_0x21725d[_0x5765c0(0x84)]===_0x5765c0(0x99)),_0xcb71fc=_0x4e895a??_0x3cfd72[_0x5765c0(0x82)](_0x38a3f2=>_0x38a3f2[_0x5765c0(0x90)]===!![]&&_0x38a3f2[_0x5765c0(0x98)]===_0x6be593);if(_0xcb71fc){const _0x5ebe2c=String(_0xcb71fc[_0x5765c0(0x96)]??'')[_0x5765c0(0x97)]();if(!_0x9d86d8||_0x5ebe2c===_0x9d86d8){_0xcb71fc[_0x5765c0(0x85)]=!![];return;}}}if(_0x9d86d8){const _0x323841=_0x3cfd72[_0x5765c0(0x82)](_0x3f88f=>String(_0x3f88f['appcode']??'')[_0x5765c0(0x97)]()===_0x9d86d8);_0x323841&&(_0x323841[_0x5765c0(0x85)]=!![]);}return;}if(!_0x9d86d8)return;for(const _0x10426a of _0x3cfd72){String(_0x10426a[_0x5765c0(0x96)]??'')[_0x5765c0(0x97)]()===_0x9d86d8&&(_0x10426a[_0x5765c0(0x85)]=!![]);}}function a7_0x57e3(_0x46c76a,_0x43ad94){_0x46c76a=_0x46c76a-0x81;const _0xc098c8=a7_0xc098();let _0x57e3fa=_0xc098c8[_0x46c76a];return _0x57e3fa;}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x2095c7){const _0x7532ca=a7_0x57e3;return formatScopeLabel(_0x2095c7[_0x7532ca(0x94)]?'global':_0x7532ca(0x8b));}
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 +1 @@
1
- const a8_0x5bca0f=a8_0x7c2a;(function(_0x4822f7,_0x2316f2){const _0x5af558=a8_0x7c2a,_0x3c3030=_0x4822f7();while(!![]){try{const _0x4260a0=parseInt(_0x5af558(0x145))/0x1+-parseInt(_0x5af558(0x155))/0x2*(parseInt(_0x5af558(0x157))/0x3)+-parseInt(_0x5af558(0x14c))/0x4+-parseInt(_0x5af558(0x159))/0x5*(-parseInt(_0x5af558(0x14b))/0x6)+-parseInt(_0x5af558(0x14a))/0x7*(-parseInt(_0x5af558(0x150))/0x8)+-parseInt(_0x5af558(0x154))/0x9*(parseInt(_0x5af558(0x147))/0xa)+-parseInt(_0x5af558(0x152))/0xb*(parseInt(_0x5af558(0x158))/0xc);if(_0x4260a0===_0x2316f2)break;else _0x3c3030['push'](_0x3c3030['shift']());}catch(_0x3e81a6){_0x3c3030['push'](_0x3c3030['shift']());}}}(a8_0x287d,0x852db));import{getRuntimeAppConfigByKey}from'../../core/api-client.js';function a8_0x7c2a(_0x1ea43d,_0x4a29d5){_0x1ea43d=_0x1ea43d-0x140;const _0x287df4=a8_0x287d();let _0x7c2a85=_0x287df4[_0x1ea43d];return _0x7c2a85;}import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{projectAppConfigVisibilityCheck}from'../../commands/app-config/shared.js';export const appConfigGet={'service':a8_0x5bca0f(0x151),'command':a8_0x5bca0f(0x148),'description':a8_0x5bca0f(0x14d),'risk':a8_0x5bca0f(0x143),'args':[{'name':a8_0x5bca0f(0x140),'description':a8_0x5bca0f(0x146),'required':!![]}],'flags':[],async 'execute'(_0x1e298f){const _0x2d8d75=a8_0x5bca0f,_0x1a3d6a=_0x1e298f[_0x2d8d75(0x14e)][0x0]?.[_0x2d8d75(0x14f)]();if(!_0x1a3d6a)throw CliErrors['validation'](_0x2d8d75(0x149),_0x2d8d75(0x153)+CLI_BIN_NAME+_0x2d8d75(0x156));try{const _0x2d67c6=await getRuntimeAppConfigByKey(_0x1e298f[_0x2d8d75(0x141)],_0x1a3d6a);return{'ok':!![],'data':projectAppConfigVisibilityCheck(_0x2d67c6,{'appCode':_0x1e298f[_0x2d8d75(0x141)],'key':_0x1a3d6a})};}catch{throw CliErrors['apiError'](_0x2d8d75(0x144)+_0x1a3d6a+_0x2d8d75(0x142)+_0x1e298f['appCode'],'Check\x20that\x20the\x20key\x20exists,\x20the\x20current\x20AccessKey\x20has\x20permission,\x20and\x20the\x20runtime\x20read-only\x20app-config\x20endpoint\x20is\x20available.');}}};function a8_0x287d(){const _0x579e9b=['1441vfNHkF','Usage:\x20','1301211mkCuRg','6umFivk','\x20app-config\x20get\x20<key>','52575dJZrMd','54564PhyvsI','3405BIvuIP','key','appCode',',\x20appCode=','read','Unable\x20to\x20inspect\x20app-config\x20key\x20status:\x20key=','449276GqaJrd','App\x20config\x20key','10UZRTgU','get','Missing\x20app-config\x20key.','2411346Bhiksn','4272PGXGMz','2517088kvVGvB','Check\x20whether\x20one\x20runtime\x20app-config\x20key\x20is\x20configured\x20without\x20printing\x20its\x20value','args','trim','24qaQact','app-config'];a8_0x287d=function(){return _0x579e9b;};return a8_0x287d();}
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 +1 @@
1
- (function(_0x2168b0,_0x4fa94c){const _0x503cfa=a9_0x260e,_0x22dc42=_0x2168b0();while(!![]){try{const _0x27c605=-parseInt(_0x503cfa(0xd3))/0x1*(parseInt(_0x503cfa(0xd4))/0x2)+parseInt(_0x503cfa(0xd1))/0x3+parseInt(_0x503cfa(0xd0))/0x4+-parseInt(_0x503cfa(0xcd))/0x5+parseInt(_0x503cfa(0xd2))/0x6+-parseInt(_0x503cfa(0xcf))/0x7+-parseInt(_0x503cfa(0xce))/0x8;if(_0x27c605===_0x4fa94c)break;else _0x22dc42['push'](_0x22dc42['shift']());}catch(_0x47c063){_0x22dc42['push'](_0x22dc42['shift']());}}}(a9_0x4f5d,0x1aa9c));function a9_0x4f5d(){const _0x2142bc=['21790ZDLTES','200795wHwEup','150936ptOsuE','445123YJKLra','31448JswQDA','523584wQHJVg','1146432MSTsIu','13IAfyEN'];a9_0x4f5d=function(){return _0x2142bc;};return a9_0x4f5d();}function a9_0x260e(_0x3ee6ac,_0x2642da){_0x3ee6ac=_0x3ee6ac-0xcd;const _0x4f5d10=a9_0x4f5d();let _0x260eff=_0x4f5d10[_0x3ee6ac];return _0x260eff;}import{appConfigGet}from'../../commands/app-config/get.js';export const appConfigDefinitions=[appConfigGet];
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 +1 @@
1
- const a11_0x35de1e=a11_0x2a88;(function(_0x8ebb78,_0x50b2ae){const _0x6a6ff2=a11_0x2a88,_0x450cfa=_0x8ebb78();while(!![]){try{const _0x3c1518=parseInt(_0x6a6ff2(0x1b1))/0x1+parseInt(_0x6a6ff2(0x1aa))/0x2+-parseInt(_0x6a6ff2(0x1c0))/0x3+parseInt(_0x6a6ff2(0x1a1))/0x4+-parseInt(_0x6a6ff2(0x1b5))/0x5*(parseInt(_0x6a6ff2(0x198))/0x6)+-parseInt(_0x6a6ff2(0x19b))/0x7+parseInt(_0x6a6ff2(0x18e))/0x8;if(_0x3c1518===_0x50b2ae)break;else _0x450cfa['push'](_0x450cfa['shift']());}catch(_0x57a258){_0x450cfa['push'](_0x450cfa['shift']());}}}(a11_0x26ed,0x3fe76));import{existsSync,readFileSync,statSync}from'node:fs';import{createRuntimeArtifact,getRuntimeArtifact,listRuntimeArtifacts,updateRuntimeArtifact}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const ARTIFACT_TYPE_REACT_MODULE=a11_0x35de1e(0x190),ARTIFACT_SOURCE_AGENT=a11_0x35de1e(0x182),ALLOWED_REACT_MODULE_IMPORTS=['react',a11_0x35de1e(0x1b8),'lodash',a11_0x35de1e(0x1c5),a11_0x35de1e(0x1a0),a11_0x35de1e(0x1bf)];export const ALLOWED_REACT_MODULE_IMPORTS_TEXT=ALLOWED_REACT_MODULE_IMPORTS[a11_0x35de1e(0x1be)](',\x20');const IMPORT_SOURCE_PATTERNS=[/\bimport\s+(?:type\s+)?(?:[^'";]*?\s+from\s+)?["']([^"']+)["']/g,/\bexport\s+(?:type\s+)?[^'";]*?\s+from\s+["']([^"']+)["']/g,/\bimport\s*\(\s*["']([^"']+)["']\s*\)/g,/\brequire\s*\(\s*["']([^"']+)["']\s*\)/g],PAGE_LEVEL_PATTERNS=[/<!doctype\s+html/i,/<\s*html\b/i,/\bcreateRoot\s*\(/,/\bReactDOM\s*\.\s*render\s*\(/,/\bReactDOM\s*\.\s*createRoot\s*\(/],FILE_FLAG={'name':a11_0x35de1e(0x193),'type':a11_0x35de1e(0x19e),'required':!![],'description':a11_0x35de1e(0x1c6)},ARTIFACT_NAME_FLAG={'name':a11_0x35de1e(0x188),'type':'string','description':a11_0x35de1e(0x1ae)},METADATA_FLAG={'name':a11_0x35de1e(0x1a9),'type':'string','description':a11_0x35de1e(0x1bb)};function isPlainObject(_0x57bd5d){const _0x587efa=a11_0x35de1e;return typeof _0x57bd5d===_0x587efa(0x19f)&&_0x57bd5d!==null&&!Array[_0x587efa(0x1a2)](_0x57bd5d);}function readSourceFile(_0x1de9ab){const _0x58f7c7=a11_0x35de1e;if(!_0x1de9ab)throw CliErrors['validation']('File\x20path\x20is\x20required.');if(!existsSync(_0x1de9ab))throw CliErrors['validation'](_0x58f7c7(0x19d)+_0x1de9ab);if(!statSync(_0x1de9ab)[_0x58f7c7(0x1c3)]())throw CliErrors[_0x58f7c7(0x18c)](_0x58f7c7(0x1b9)+_0x1de9ab);const _0x260da0=readFileSync(_0x1de9ab,_0x58f7c7(0x1c7));return validateReactModuleSource(_0x260da0),_0x260da0;}function parseMetadata(_0x41530b){const _0x51075e=a11_0x35de1e;if(!_0x41530b)return undefined;let _0x3166b4;try{_0x3166b4=JSON[_0x51075e(0x18f)](_0x41530b);}catch{throw CliErrors['validation'](_0x51075e(0x1ab)+_0x41530b);}if(!isPlainObject(_0x3166b4))throw CliErrors['validation']('--metadata\x20must\x20be\x20a\x20JSON\x20object.');const _0x45bf7f={..._0x3166b4};return delete _0x45bf7f[_0x51075e(0x187)],_0x45bf7f;}function a11_0x26ed(){const _0x4bde1b=['File\x20is\x20not\x20a\x20regular\x20file:\x20','Optional\x20favorite-state\x20filter','Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped','update','POST','join','@ant-design/icons','629601AvOjqb','exec','lastIndex','isFile','bool','dayjs','Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file','utf8','add','verbose','length','read','detail','AGENT','createTime','boolean','filter','split','compiledContent','name','Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','write','some','validation','body','3064376MyxcBr','parse','react_module','content','includes','file','appCode','/client/artifact/create','artifact','source','110634CPJAfz','favorite','map','1477259rKMxqQ','Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','File\x20not\x20found:\x20','string','object','antd','222476EVtbHN','isArray','artifactType','trim','.\x20Unsupported:\x20','num','Updated\x20Artifact\x20','updateTime','metadata','277688brbUil','Invalid\x20JSON\x20for\x20--metadata:\x20','Artifact\x20ID','/client/artifact/','Artifact\x20display\x20name','List\x20current-app\x20react_module\x20Artifacts','description','197339PljpAi','list','str','test','25dMiEft','deleted','/update','react-dom'];a11_0x26ed=function(){return _0x4bde1b;};return a11_0x26ed();}function getPackageName(_0x536790){const _0x282719=a11_0x35de1e;if(_0x536790['startsWith']('@')){const [_0x28a7c2,_0x105ae8]=_0x536790[_0x282719(0x186)]('/');return _0x28a7c2&&_0x105ae8?_0x28a7c2+'/'+_0x105ae8:_0x536790;}return _0x536790[_0x282719(0x186)]('/')[0x0]||_0x536790;}function validateAllowedImports(_0x2a4ad1){const _0x476f5c=a11_0x35de1e,_0x1ecb1e=new Set();for(const _0x46d87a of IMPORT_SOURCE_PATTERNS){_0x46d87a[_0x476f5c(0x1c2)]=0x0;let _0x365192;while((_0x365192=_0x46d87a[_0x476f5c(0x1c1)](_0x2a4ad1))!==null){const _0x2b1a3c=_0x365192[0x1]?.[_0x476f5c(0x1a4)]();_0x2b1a3c&&_0x1ecb1e[_0x476f5c(0x1c8)](_0x2b1a3c);}}const _0x5ca33d=[..._0x1ecb1e][_0x476f5c(0x19a)](getPackageName)[_0x476f5c(0x185)](_0x3abfd5=>!ALLOWED_REACT_MODULE_IMPORTS[_0x476f5c(0x192)](_0x3abfd5));if(_0x5ca33d['length']>0x0)throw CliErrors[_0x476f5c(0x18c)]('react_module\x20imports\x20are\x20limited\x20to:\x20'+ALLOWED_REACT_MODULE_IMPORTS_TEXT+_0x476f5c(0x1a5)+[...new Set(_0x5ca33d)][_0x476f5c(0x1be)](',\x20'));}export function validateReactModuleSource(_0x5bcb06){const _0x26350c=a11_0x35de1e;if(!_0x5bcb06[_0x26350c(0x1a4)]())throw CliErrors['validation']('Artifact\x20source\x20file\x20is\x20blank.');if(PAGE_LEVEL_PATTERNS[_0x26350c(0x18b)](_0x4740dc=>_0x4740dc[_0x26350c(0x1b4)](_0x5bcb06)))throw CliErrors['validation']('react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.');validateAllowedImports(_0x5bcb06);}function buildArtifactInput(_0x5885a8){const _0x5a68d3=a11_0x35de1e,_0xc8d5a3=readSourceFile(_0x5885a8['str'](_0x5a68d3(0x193))),_0x586248=_0x5885a8[_0x5a68d3(0x1b3)](_0x5a68d3(0x188))[_0x5a68d3(0x1a4)](),_0x3524dd=parseMetadata(_0x5885a8[_0x5a68d3(0x1b3)](_0x5a68d3(0x1a9)));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x586248?{'name':_0x586248}:{},'content':_0xc8d5a3,..._0x3524dd?{'metadata':_0x3524dd}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0x3f8fd0){const _0x2cbb5c=a11_0x35de1e;return{'id':_0x3f8fd0['id'],'name':_0x3f8fd0[_0x2cbb5c(0x188)],'artifactType':_0x3f8fd0[_0x2cbb5c(0x1a3)],'source':_0x3f8fd0['source'],'favorite':_0x3f8fd0[_0x2cbb5c(0x199)],'deleted':_0x3f8fd0[_0x2cbb5c(0x1b6)],'createTime':_0x3f8fd0['createTime'],'updateTime':_0x3f8fd0[_0x2cbb5c(0x1a8)]};}function a11_0x2a88(_0x29860f,_0x4c92ea){_0x29860f=_0x29860f-0x17e;const _0x26ed13=a11_0x26ed();let _0x2a88f7=_0x26ed13[_0x29860f];return _0x2a88f7;}function detailArtifact(_0x32d0ec){const _0x502654=a11_0x35de1e;return{'id':_0x32d0ec['id'],'appCode':_0x32d0ec['appCode'],'name':_0x32d0ec[_0x502654(0x188)],'artifactType':_0x32d0ec['artifactType'],'source':_0x32d0ec['source'],'favorite':_0x32d0ec[_0x502654(0x199)],'deleted':_0x32d0ec['deleted'],'content':_0x32d0ec[_0x502654(0x191)]??'','compiledContent':_0x32d0ec[_0x502654(0x187)],'metadata':_0x32d0ec['metadata']??{},'createTime':_0x32d0ec[_0x502654(0x183)],'updateTime':_0x32d0ec[_0x502654(0x1a8)]};}function readFavoriteFlag(_0x5147e5){const _0x51d6bf=a11_0x35de1e,_0xbe4697=_0x5147e5['flag'](_0x51d6bf(0x199));return _0xbe4697===undefined||_0xbe4697===null||_0xbe4697===''?undefined:_0x5147e5[_0x51d6bf(0x1c4)](_0x51d6bf(0x199));}const artifactList={'service':a11_0x35de1e(0x196),'command':a11_0x35de1e(0x1b2),'description':a11_0x35de1e(0x1af),'risk':a11_0x35de1e(0x180),'flags':[{'name':a11_0x35de1e(0x197),'type':'string','description':'Optional\x20source\x20filter,\x20for\x20example\x20AGENT'},{'name':a11_0x35de1e(0x199),'type':a11_0x35de1e(0x184),'description':a11_0x35de1e(0x1ba)},VERBOSE_FLAG],async 'execute'(_0xa9a82e){const _0x1cecea=a11_0x35de1e,_0x4c1a9d=await listRuntimeArtifacts(_0xa9a82e[_0x1cecea(0x194)],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0xa9a82e[_0x1cecea(0x1b3)](_0x1cecea(0x197))?{'source':_0xa9a82e['str'](_0x1cecea(0x197))}:{},...readFavoriteFlag(_0xa9a82e)!==undefined?{'favorite':readFavoriteFlag(_0xa9a82e)}:{}});return{'ok':!![],'data':{'total':_0x4c1a9d[_0x1cecea(0x17f)],'items':_0xa9a82e[_0x1cecea(0x1c4)](_0x1cecea(0x17e))?_0x4c1a9d:_0x4c1a9d[_0x1cecea(0x19a)](summarizeArtifact)}};}},artifactDetail={'service':a11_0x35de1e(0x196),'command':a11_0x35de1e(0x181),'description':'Show\x20one\x20Artifact\x20by\x20id','risk':a11_0x35de1e(0x180),'flags':[{...ID_FLAG,'description':a11_0x35de1e(0x1ac)}],async 'execute'(_0xaefedb){const _0x38decc=a11_0x35de1e,_0x44e376=await getRuntimeArtifact(_0xaefedb[_0x38decc(0x1a6)]('id'),_0xaefedb[_0x38decc(0x194)]);return{'ok':!![],'data':detailArtifact(_0x44e376)};}},artifactCreate={'service':a11_0x35de1e(0x196),'command':'create','description':a11_0x35de1e(0x189),'risk':a11_0x35de1e(0x18a),'flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x4a662d){const _0x23e3a0=a11_0x35de1e,_0x5b56cc=buildArtifactInput(_0x4a662d),_0x17d936=await createRuntimeArtifact(_0x4a662d[_0x23e3a0(0x194)],_0x5b56cc);return{'ok':!![],'data':detailArtifact(_0x17d936),'message':'Created\x20Artifact\x20'+_0x17d936['id']+(_0x17d936['name']?'\x20('+_0x17d936[_0x23e3a0(0x188)]+')':'')};},async 'dryRun'(_0x17338b){const _0x251fc0=a11_0x35de1e,_0x1aa219=buildArtifactInput(_0x17338b);return dryRun('POST',_0x251fc0(0x195))[_0x251fc0(0x18d)]({'appCode':_0x17338b['appCode'],..._0x1aa219})['description']('Preview:\x20create\x20react_module\x20Artifact')['build']();}},artifactUpdate={'service':a11_0x35de1e(0x196),'command':a11_0x35de1e(0x1bc),'description':a11_0x35de1e(0x19c),'risk':'write','flags':[{...ID_FLAG,'description':a11_0x35de1e(0x1ac)},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x368e4c){const _0x5ebcb1=a11_0x35de1e,_0x513a16=_0x368e4c['num']('id'),_0x483d08=buildArtifactInput(_0x368e4c),_0x2554b1=await updateRuntimeArtifact(_0x513a16,_0x368e4c[_0x5ebcb1(0x194)],_0x483d08);return{'ok':!![],'data':detailArtifact(_0x2554b1),'message':_0x5ebcb1(0x1a7)+_0x2554b1['id']+(_0x2554b1[_0x5ebcb1(0x188)]?'\x20('+_0x2554b1[_0x5ebcb1(0x188)]+')':'')};},async 'dryRun'(_0x4f078c){const _0x94356d=a11_0x35de1e,_0x3e76a0=_0x4f078c[_0x94356d(0x1a6)]('id'),_0x505cd7=buildArtifactInput(_0x4f078c);return dryRun(_0x94356d(0x1bd),_0x94356d(0x1ad)+_0x3e76a0+_0x94356d(0x1b7))[_0x94356d(0x18d)]({'appCode':_0x4f078c[_0x94356d(0x194)],..._0x505cd7})[_0x94356d(0x1b0)]('Preview:\x20update\x20react_module\x20Artifact\x20'+_0x3e76a0)['build']();}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
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 +1 @@
1
- function a12_0x5edc(){const _0x5e70a8=['Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','Option\x20C:\x20environment\x20variable','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','development','\x20config.','\x20auth\x20status','yes','956CaewcM','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','Show\x20current\x20authentication\x20status','3984960ERafHt','259JrLFYb','validation','boolean','env','\x20config.\x20Nothing\x20to\x20clear.','isTTY','Shorthand\x20for\x20--access-key','442974MiOiYs','4285PRzdyJ','1118709jhMoPa','init','authRequired','\x20env\x20var','AccessKey\x20(ak_xxx...)','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','\x20config','daily','342XqbGnK','Read\x20from\x20global\x20config\x20(default)','production','Invalid\x20accessKey\x20format:\x20\x22','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','length','accessKey','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','Clear\x20from\x20global\x20config\x20(default)','status','bool','1479527oXEcmn','push','\x20Verify:\x20','Option\x20A:\x20','767814jQrvWM','write','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','Clear\x20accessKey\x20from\x20config','\x20doctor','info','trim','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','userCenterDisplayName','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','\x20auth\x20login\x20--access-key\x20<ak_xxx>','newConfigFileName','check','str','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','string','repeat','auth','ACCESS_KEY','AccessKey\x20cleared\x20from\x20','\x20(via\x20','nonInteractive','ClientAk','\x20\x20export\x20','Use\x20`','AccessKey:\x20','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','logout','stdin','AccessKey\x20saved\x20to\x20','project','global-default','join','test','8mEubQb','Then\x20verify\x20with:\x20','envName','Tip:\x20you\x20can\x20also\x20run:','global','login','access-key','Auth\x20mode:\x20'];a12_0x5edc=function(){return _0x5e70a8;};return a12_0x5edc();}const a12_0x3c66c3=a12_0x1532;(function(_0x209fe2,_0x2aefe4){const _0x35e279=a12_0x1532,_0x476023=_0x209fe2();while(!![]){try{const _0x379aca=-parseInt(_0x35e279(0x152))/0x1*(parseInt(_0x35e279(0x163))/0x2)+-parseInt(_0x35e279(0x11d))/0x3+parseInt(_0x35e279(0x14e))/0x4*(-parseInt(_0x35e279(0x15a))/0x5)+-parseInt(_0x35e279(0x159))/0x6+parseInt(_0x35e279(0x119))/0x7*(parseInt(_0x35e279(0x13f))/0x8)+parseInt(_0x35e279(0x15b))/0x9+parseInt(_0x35e279(0x151))/0xa;if(_0x379aca===_0x2aefe4)break;else _0x476023['push'](_0x476023['shift']());}catch(_0x2aae89){_0x476023['push'](_0x476023['shift']());}}}(a12_0x5edc,0x25e8f));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';function a12_0x1532(_0x13abd0,_0x4c00da){_0x13abd0=_0x13abd0-0x112;const _0x5edc73=a12_0x5edc();let _0x15320d=_0x5edc73[_0x13abd0];return _0x15320d;}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 _0x548186=a12_0x1532;writeCliSideChannelLine(_0x548186(0x124)+PRODUCT_CONFIG[_0x548186(0x125)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x548186(0x142)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x548186(0x127));}function buildAccessKeySetupGuide(){const _0x28328b=a12_0x1532;return[_0x28328b(0x124)+PRODUCT_CONFIG[_0x28328b(0x125)]+':',USER_ACCESS_KEY_CREATE_URL,_0x28328b(0x137)+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]']['join']('\x0a');}function canPromptForAccessKey(_0x4dfd73){const _0x9f723a=a12_0x1532;return!_0x4dfd73[_0x9f723a(0x132)]&&process[_0x9f723a(0x139)][_0x9f723a(0x157)]!==![]&&process['stdout']['isTTY']!==![];}function resolveAuthScopeFlags(_0x1394a3){const _0x2a8055=a12_0x1532;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x1394a3['bool'](_0x2a8055(0x143)),'explicitProject':_0x1394a3['bool'](_0x2a8055(0x13b)),'policy':_0x2a8055(0x13c)}));}async function resolveAuthWriteInput(_0x156856){const _0x45db71=a12_0x1532;let _0x5e56fe=(_0x156856['str']('access-key')||_0x156856[_0x45db71(0x12a)]('ak')||'')[_0x45db71(0x123)]();const _0x4b90ef=(_0x156856[_0x45db71(0x12a)](_0x45db71(0x155))||'')[_0x45db71(0x123)]();if(!_0x5e56fe&&canPromptForAccessKey(_0x156856))try{showAccessKeyCreateHint(),_0x5e56fe=await promptAccessKey('');}catch(_0x3fad5f){if(isAbortPrompt(_0x3fad5f))throw CliErrors['cancelled']();throw _0x3fad5f;}if(!_0x5e56fe)throw CliErrors[_0x45db71(0x153)]('Missing\x20accessKey.',buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x45db71(0x13e)](_0x5e56fe))throw CliErrors['validation'](_0x45db71(0x166)+_0x5e56fe+'\x22',_0x45db71(0x14f));if(!_0x4b90ef)return{'accessKey':_0x5e56fe};const _0x5bb5e9=normalizeEnv(_0x4b90ef);return{'accessKey':_0x5e56fe,'env':isDaily(_0x5bb5e9)?_0x45db71(0x162):isDev(_0x5bb5e9)?_0x45db71(0x14a):_0x45db71(0x165)};}export const authDefinitions=[{'service':a12_0x3c66c3(0x12e),'command':a12_0x3c66c3(0x144),'description':'Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','risk':a12_0x3c66c3(0x11e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x3c66c3(0x145),'type':'string','description':a12_0x3c66c3(0x15f)},{'name':'ak','type':a12_0x3c66c3(0x12c),'description':a12_0x3c66c3(0x158)},{'name':a12_0x3c66c3(0x143),'type':'boolean','description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':a12_0x3c66c3(0x13b),'type':a12_0x3c66c3(0x154),'description':'Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x9971fb){const _0x3a7e6e=a12_0x3c66c3;if(_0x9971fb[_0x3a7e6e(0x118)](_0x3a7e6e(0x14d)))throw CliErrors[_0x3a7e6e(0x153)]('`auth\x20login`\x20does\x20not\x20support\x20--yes.',_0x3a7e6e(0x135)+CLI_BIN_NAME+'\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`'+CLI_BIN_NAME+_0x3a7e6e(0x126));const _0x2ab9ac=(_0x9971fb[_0x3a7e6e(0x12a)](_0x3a7e6e(0x145))||_0x9971fb[_0x3a7e6e(0x12a)]('ak')||'')[_0x3a7e6e(0x123)]();if(!_0x2ab9ac&&_0x9971fb[_0x3a7e6e(0x132)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x21227f=await resolveAuthWriteInput(_0x9971fb),_0x260f39=resolveAuthScopeFlags(_0x9971fb),_0x129e5d=readScopedConfig(_0x260f39);_0x129e5d[_0x3a7e6e(0x114)]=_0x21227f[_0x3a7e6e(0x114)];_0x21227f[_0x3a7e6e(0x155)]&&(_0x129e5d[_0x3a7e6e(0x155)]=_0x21227f[_0x3a7e6e(0x155)]);writeScopedConfig(_0x129e5d,_0x260f39);const _0x31dea5=_0x260f39['global']?_0x3a7e6e(0x143):_0x3a7e6e(0x13b),_0x3708ed=_0x129e5d[_0x3a7e6e(0x155)]?'\x20Current\x20env:\x20'+_0x129e5d['env']+'.':'';return{'ok':!![],'message':_0x3a7e6e(0x13a)+_0x31dea5+_0x3a7e6e(0x14b)+_0x3708ed+'\x20Verify:\x20'+CLI_BIN_NAME+_0x3a7e6e(0x14c)};}},{'service':'auth','command':a12_0x3c66c3(0x15c),'description':a12_0x3c66c3(0x147),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x3c66c3(0x145),'type':a12_0x3c66c3(0x12c),'description':a12_0x3c66c3(0x15f)},{'name':'ak','type':a12_0x3c66c3(0x12c),'description':'Shorthand\x20for\x20--access-key'},{'name':a12_0x3c66c3(0x155),'type':a12_0x3c66c3(0x12c),'description':a12_0x3c66c3(0x149)},{'name':a12_0x3c66c3(0x143),'type':a12_0x3c66c3(0x154),'description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':a12_0x3c66c3(0x13b),'type':a12_0x3c66c3(0x154),'description':'Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x954cab){const _0x5f0733=a12_0x3c66c3,_0x1cb514=await resolveAuthWriteInput(_0x954cab),_0x72f046=resolveAuthScopeFlags(_0x954cab),_0x3eeeaf={'accessKey':_0x1cb514[_0x5f0733(0x114)]};_0x1cb514[_0x5f0733(0x155)]&&(_0x3eeeaf[_0x5f0733(0x155)]=_0x1cb514[_0x5f0733(0x155)]);writeScopedConfig(_0x3eeeaf,_0x72f046);const _0x24110f=_0x72f046[_0x5f0733(0x143)]?_0x5f0733(0x143):'project',_0xfea334=_0x3eeeaf['env']?'\x20Current\x20env:\x20'+_0x3eeeaf[_0x5f0733(0x155)]+'.':'';return{'ok':!![],'message':'Auth\x20config\x20reinitialized\x20in\x20'+_0x24110f+'\x20scope.'+_0xfea334+_0x5f0733(0x11b)+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':'auth','command':a12_0x3c66c3(0x138),'description':a12_0x3c66c3(0x120),'risk':a12_0x3c66c3(0x11e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x3c66c3(0x143),'type':a12_0x3c66c3(0x154),'description':a12_0x3c66c3(0x116),'default':!![]},{'name':'project','type':a12_0x3c66c3(0x154),'description':a12_0x3c66c3(0x11f),'default':![]}],async 'execute'(_0x4443d0){const _0x19d71c=a12_0x3c66c3,_0x1f928f=resolveAuthScopeFlags(_0x4443d0),_0x32cf97=readScopedConfig(_0x1f928f),_0x54e525=!!_0x32cf97['accessKey'];delete _0x32cf97[_0x19d71c(0x114)],writeScopedConfig(_0x32cf97,_0x1f928f);const _0x3b9879=_0x1f928f[_0x19d71c(0x143)]?'global':_0x19d71c(0x13b);if(_0x54e525)return{'ok':!![],'message':_0x19d71c(0x130)+_0x3b9879+_0x19d71c(0x14b)};return{'ok':!![],'message':'No\x20AccessKey\x20found\x20in\x20'+_0x3b9879+_0x19d71c(0x156)};}},{'service':a12_0x3c66c3(0x12e),'command':a12_0x3c66c3(0x117),'description':a12_0x3c66c3(0x150),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x3c66c3(0x143),'type':'boolean','description':a12_0x3c66c3(0x164),'default':!![]},{'name':a12_0x3c66c3(0x13b),'type':'boolean','description':a12_0x3c66c3(0x115),'default':![]},{'name':a12_0x3c66c3(0x129),'type':a12_0x3c66c3(0x154),'description':'Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','default':![]}],async 'execute'(_0x45bfba){const _0x5b5e8f=a12_0x3c66c3,_0x9892a6=resolveAuthScopeFlags(_0x45bfba),_0x4fcd05=readScopedConfig(_0x9892a6),_0x239387=productEnvName(_0x5b5e8f(0x12f)),_0x4e7dcd=productEnv(_0x5b5e8f(0x12f))||undefined,_0x19ac89=_0x4fcd05[_0x5b5e8f(0x114)]||undefined,_0x316034=_0x4e7dcd||_0x19ac89,_0x3d29a6=_0x4e7dcd?_0x239387+_0x5b5e8f(0x15e):_0x19ac89?(_0x9892a6[_0x5b5e8f(0x143)]?'global':_0x5b5e8f(0x13b))+_0x5b5e8f(0x161):null,_0x2924ec=[_0x5b5e8f(0x146)+AUTH_MODE[_0x5b5e8f(0x133)]];if(_0x316034){const _0x132264=_0x316034[_0x5b5e8f(0x113)]>0x8?''+_0x316034['slice'](0x0,0x8)+'*'[_0x5b5e8f(0x12d)](_0x316034[_0x5b5e8f(0x113)]-0x8):_0x316034;_0x2924ec[_0x5b5e8f(0x11a)](_0x5b5e8f(0x136)+_0x132264+(_0x3d29a6?_0x5b5e8f(0x131)+_0x3d29a6+')':''));}if(!_0x316034){_0x2924ec['push'](''),_0x2924ec[_0x5b5e8f(0x11a)](_0x5b5e8f(0x12b)),_0x2924ec['push'](''),_0x2924ec['push'](_0x5b5e8f(0x11c)+CLI_BIN_NAME+'\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]'),_0x2924ec['push'](''),_0x2924ec['push']('Option\x20B:\x20apps\x20config\x20('+PRODUCT_CONFIG[_0x5b5e8f(0x128)]+')'),_0x2924ec[_0x5b5e8f(0x11a)](_0x5b5e8f(0x160)),_0x2924ec[_0x5b5e8f(0x11a)](''),_0x2924ec[_0x5b5e8f(0x11a)](_0x5b5e8f(0x148)),_0x2924ec[_0x5b5e8f(0x11a)](_0x5b5e8f(0x134)+_0x239387+'=ak_xxx'),_0x2924ec['push'](''),_0x2924ec[_0x5b5e8f(0x11a)](_0x5b5e8f(0x140)+CLI_BIN_NAME+_0x5b5e8f(0x14c)),_0x2924ec[_0x5b5e8f(0x11a)](_0x5b5e8f(0x112)+CLI_BIN_NAME+_0x5b5e8f(0x121));if(_0x45bfba[_0x5b5e8f(0x118)](_0x5b5e8f(0x129)))throw CliErrors[_0x5b5e8f(0x15d)](_0x2924ec[_0x5b5e8f(0x13d)]('\x0a'));}return{'ok':!![],'message':_0x2924ec[_0x5b5e8f(0x13d)]('\x0a')};}},{'service':a12_0x3c66c3(0x12e),'command':a12_0x3c66c3(0x122),'description':a12_0x3c66c3(0x167),'risk':'read','requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x4852aa){const _0xd0c3b=a12_0x3c66c3,_0x3960a3=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x3960a3,'meta':{'env':_0x4852aa[_0xd0c3b(0x141)]??_0xd0c3b(0x165)}}};}}];
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 +1 @@
1
- (function(_0x59a17e,_0x2e20cb){const _0x1af0a1=a13_0x13a4,_0x1a6725=_0x59a17e();while(!![]){try{const _0x4f02a1=parseInt(_0x1af0a1(0x1bf))/0x1*(-parseInt(_0x1af0a1(0x1bc))/0x2)+parseInt(_0x1af0a1(0x1c7))/0x3+parseInt(_0x1af0a1(0x1c4))/0x4+-parseInt(_0x1af0a1(0x1c9))/0x5+-parseInt(_0x1af0a1(0x1cd))/0x6+-parseInt(_0x1af0a1(0x1c5))/0x7+parseInt(_0x1af0a1(0x1c8))/0x8;if(_0x4f02a1===_0x2e20cb)break;else _0x1a6725['push'](_0x1a6725['shift']());}catch(_0x25c38e){_0x1a6725['push'](_0x1a6725['shift']());}}}(a13_0x4304,0xdbd3d));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x391262=a13_0x13a4;super(_0x391262(0x1cb)),this[_0x391262(0x1c6)]=_0x391262(0x1be);}}function a13_0x4304(){const _0x375fd8=['22mdHoke','SIGINT','AbortPrompt','103444vxkdHQ','removeListener','question','trim','AccessKey\x20(paste\x20ak_...):\x20','419164WkJqTO','11536ErvEtZ','name','3411705OLokiV','18729032dytxtG','107510NeWaiC','close','User\x20aborted\x20prompt','AccessKey\x20(','9130248YDZcYa','):\x20','race','stdin'];a13_0x4304=function(){return _0x375fd8;};return a13_0x4304();}function a13_0x13a4(_0x5753b0,_0x4f4e2a){_0x5753b0=_0x5753b0-0x1ba;const _0x430488=a13_0x4304();let _0x13a47b=_0x430488[_0x5753b0];return _0x13a47b;}function createSafeRl(){const _0x454b62=a13_0x13a4,_0x102ef4=createInterface({'input':process[_0x454b62(0x1bb)],'output':process['stdout']});let _0x1c5157;const _0x219bfe=new Promise((_0x56e14c,_0x1c8660)=>{const _0x175612=_0x454b62;_0x1c5157=()=>{const _0x314d28=a13_0x13a4;_0x1c5157&&(_0x102ef4[_0x314d28(0x1c0)]('SIGINT',_0x1c5157),_0x1c5157=undefined);try{_0x102ef4[_0x314d28(0x1ca)]();}catch{}_0x1c8660(new AbortPrompt());},_0x102ef4['once'](_0x175612(0x1bd),_0x1c5157);}),_0x9e46aa=()=>{const _0x3a3b5f=_0x454b62;_0x1c5157&&(_0x102ef4[_0x3a3b5f(0x1c0)](_0x3a3b5f(0x1bd),_0x1c5157),_0x1c5157=undefined);try{_0x102ef4[_0x3a3b5f(0x1ca)]();}catch{}};return{'rl':_0x102ef4,'abortPromise':_0x219bfe,'disposeSuccess':_0x9e46aa};}export async function promptAccessKey(_0x3d1b17=''){const _0x50c4ae=a13_0x13a4,{rl:_0x41f101,abortPromise:_0x9d227b,disposeSuccess:_0xbb18f6}=createSafeRl(),_0x4405be=new Promise(_0x40b3aa=>{const _0x575d25=a13_0x13a4,_0x2c7b1d=_0x3d1b17?_0x575d25(0x1cc)+_0x3d1b17+_0x575d25(0x1ce):_0x575d25(0x1c3);_0x41f101[_0x575d25(0x1c1)](_0x2c7b1d,_0x4acfa6=>{const _0x1e011f=_0x575d25;_0xbb18f6(),_0x40b3aa(_0x4acfa6[_0x1e011f(0x1c2)]()||_0x3d1b17);});});return Promise[_0x50c4ae(0x1ba)]([_0x4405be,_0x9d227b]);}export function isAbortPrompt(_0x77a24b){const _0x612e0e=a13_0x13a4;return _0x77a24b instanceof Error&&_0x77a24b[_0x612e0e(0x1c6)]===_0x612e0e(0x1be);}
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 +1 @@
1
- function a14_0x2b4c(_0x4767a7,_0x4009d2){_0x4767a7=_0x4767a7-0x111;const _0x168f00=a14_0x168f();let _0x2b4c79=_0x168f00[_0x4767a7];return _0x2b4c79;}const a14_0x551b42=a14_0x2b4c;(function(_0x5d75b4,_0x205003){const _0x3bfeff=a14_0x2b4c,_0x4c702c=_0x5d75b4();while(!![]){try{const _0x20ba0a=-parseInt(_0x3bfeff(0x11e))/0x1*(parseInt(_0x3bfeff(0x124))/0x2)+-parseInt(_0x3bfeff(0x11f))/0x3*(-parseInt(_0x3bfeff(0x11b))/0x4)+parseInt(_0x3bfeff(0x120))/0x5+parseInt(_0x3bfeff(0x11a))/0x6+parseInt(_0x3bfeff(0x126))/0x7*(parseInt(_0x3bfeff(0x116))/0x8)+parseInt(_0x3bfeff(0x123))/0x9*(parseInt(_0x3bfeff(0x113))/0xa)+-parseInt(_0x3bfeff(0x118))/0xb*(parseInt(_0x3bfeff(0x111))/0xc);if(_0x20ba0a===_0x205003)break;else _0x4c702c['push'](_0x4c702c['shift']());}catch(_0x1eac1c){_0x4c702c['push'](_0x4c702c['shift']());}}}(a14_0x168f,0xeb617));import{getBffEndpointContract}from'../../core/api-client.js';import{NAME_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a14_0x551b42(0x115),'command':a14_0x551b42(0x119),'description':a14_0x551b42(0x114),'risk':a14_0x551b42(0x122),'flags':[{...NAME_FLAG,'required':!![],'description':'BFF\x20function\x20name'}],async 'execute'(_0x41911c){const _0xb38694=a14_0x551b42,_0x5aea3e=await getBffEndpointContract(_0x41911c[_0xb38694(0x11c)],_0x41911c['str'](_0xb38694(0x127)));return{'ok':!![],'data':{'appCode':_0x5aea3e['appCode'],'functionName':_0x5aea3e[_0xb38694(0x125)],'description':_0x5aea3e[_0xb38694(0x112)]||_0xb38694(0x117),'version':_0x5aea3e[_0xb38694(0x121)],'gmtModified':_0x5aea3e[_0xb38694(0x11d)]}};}};function a14_0x168f(){const _0x519650=['7mUqKbd','name','4436772zNloPB','description','80RncsXY','Get\x20a\x20BFF\x20endpoint\x20contract\x20by\x20function\x20name','bff','371560xsTrgJ','(none)','33uCJGNL','detail','7989378NpSJPI','452468iYecLI','appCode','gmtModified','1aGYGfR','3flsXSU','6380VTBIKc','version','read','2114190SSdYQA','2596738yAzEfI','functionName'];a14_0x168f=function(){return _0x519650;};return a14_0x168f();}
1
+ const a13_0xd8cb33=a13_0x2454;(function(_0x4c1b18,_0x4eb980){const _0x7b42eb=a13_0x2454,_0x167062=_0x4c1b18();while(!![]){try{const _0xf7376d=-parseInt(_0x7b42eb(0xaa))/0x1*(-parseInt(_0x7b42eb(0x9a))/0x2)+-parseInt(_0x7b42eb(0xa6))/0x3+-parseInt(_0x7b42eb(0x9d))/0x4*(parseInt(_0x7b42eb(0xa1))/0x5)+parseInt(_0x7b42eb(0x9b))/0x6*(parseInt(_0x7b42eb(0xa7))/0x7)+-parseInt(_0x7b42eb(0xae))/0x8*(parseInt(_0x7b42eb(0x9e))/0x9)+parseInt(_0x7b42eb(0xac))/0xa*(-parseInt(_0x7b42eb(0x99))/0xb)+-parseInt(_0x7b42eb(0xa5))/0xc*(-parseInt(_0x7b42eb(0x9c))/0xd);if(_0xf7376d===_0x4eb980)break;else _0x167062['push'](_0x167062['shift']());}catch(_0xa48887){_0x167062['push'](_0x167062['shift']());}}}(a13_0x3ad9,0xaae05));import{getBffEndpointContract}from'../../core/api-client.js';function a13_0x2454(_0x2120a2,_0x4926d2){_0x2120a2=_0x2120a2-0x99;const _0x3ad90d=a13_0x3ad9();let _0x2454e5=_0x3ad90d[_0x2120a2];return _0x2454e5;}import{NAME_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a13_0xd8cb33(0xa3),'command':a13_0xd8cb33(0xad),'description':a13_0xd8cb33(0xa4),'risk':'read','flags':[{...NAME_FLAG,'required':!![],'description':a13_0xd8cb33(0xa9)}],async 'execute'(_0x3fcef0){const _0xb27387=a13_0xd8cb33,_0x264228=await getBffEndpointContract(_0x3fcef0[_0xb27387(0xa2)],_0x3fcef0[_0xb27387(0xa0)](_0xb27387(0xab)));return{'ok':!![],'data':{'appCode':_0x264228['appCode'],'functionName':_0x264228[_0xb27387(0x9f)],'description':_0x264228['description']||_0xb27387(0xaf),'version':_0x264228['version'],'gmtModified':_0x264228[_0xb27387(0xa8)]}};}};function a13_0x3ad9(){const _0x580767=['683BFjMuA','name','8172370sYbGIu','detail','2454104UjTaCu','(none)','11liPQSO','3448AZniWP','314538UUNhUJ','13FBknEM','542236AMipmL','27myxtjc','functionName','str','45jDDpFA','appCode','bff','Get\x20a\x20BFF\x20endpoint\x20contract\x20by\x20function\x20name','33834396lOzDdB','2434098sfosHV','63aNLUxK','gmtModified','BFF\x20function\x20name'];a13_0x3ad9=function(){return _0x580767;};return a13_0x3ad9();}
@@ -1 +1 @@
1
- const a15_0x17d0b2=a15_0xa289;(function(_0x446a29,_0x142dae){const _0x39c6cd=a15_0xa289,_0x4aa42b=_0x446a29();while(!![]){try{const _0x2f84ab=-parseInt(_0x39c6cd(0x129))/0x1+parseInt(_0x39c6cd(0x134))/0x2*(-parseInt(_0x39c6cd(0x136))/0x3)+parseInt(_0x39c6cd(0x133))/0x4*(parseInt(_0x39c6cd(0x12c))/0x5)+-parseInt(_0x39c6cd(0x130))/0x6*(-parseInt(_0x39c6cd(0x12f))/0x7)+parseInt(_0x39c6cd(0x135))/0x8*(-parseInt(_0x39c6cd(0x12b))/0x9)+parseInt(_0x39c6cd(0x12e))/0xa+-parseInt(_0x39c6cd(0x132))/0xb;if(_0x2f84ab===_0x142dae)break;else _0x4aa42b['push'](_0x4aa42b['shift']());}catch(_0xc5b6c1){_0x4aa42b['push'](_0x4aa42b['shift']());}}}(a15_0x3ad9,0xd2ccc));function a15_0x3ad9(){const _0x115ada=['read','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','name','str','BFF\x20function\x20name\x20to\x20execute','params','1789rJvBNL','bff','6773031uHrmjn','295GZiBGb','now','11773220IObFCa','35txTKBm','1550418GrMWXb','BFF\x20executed\x20in\x20','9290666VIskoz','66632yTERuK','1979538eAdmow','8beNXqS','3YgORlQ'];a15_0x3ad9=function(){return _0x115ada;};return a15_0x3ad9();}import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';function a15_0xa289(_0x31f06f,_0x428bb5){_0x31f06f=_0x31f06f-0x125;const _0x3ad9e2=a15_0x3ad9();let _0xa28967=_0x3ad9e2[_0x31f06f];return _0xa28967;}import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a15_0x17d0b2(0x12a),'command':'exec','description':a15_0x17d0b2(0x138),'risk':a15_0x17d0b2(0x137),'flags':[{...NAME_FLAG,'required':!![],'description':a15_0x17d0b2(0x127)},PARAMS_FLAG],async 'execute'(_0x304b48){const _0x8df539=a15_0x17d0b2,_0x140c1b=parseJsonParams(_0x304b48[_0x8df539(0x126)](_0x8df539(0x128))),_0x43ce04=Date[_0x8df539(0x12d)](),_0x2a7777=await executeSdkBff(_0x304b48[_0x8df539(0x126)](_0x8df539(0x125)),_0x140c1b),_0x562837=Date['now']()-_0x43ce04;return{'ok':!![],'data':{'result':_0x2a7777,'elapsed':_0x562837},'message':_0x8df539(0x131)+_0x562837+'ms'};}};
1
+ function a14_0x5017(_0x2bbdde,_0x2fa291){_0x2bbdde=_0x2bbdde-0x1b0;const _0x19718a=a14_0x1971();let _0x501748=_0x19718a[_0x2bbdde];return _0x501748;}const a14_0x2b9ab4=a14_0x5017;function a14_0x1971(){const _0x298427=['3970377VmZyRT','exec','72740saSpvF','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','bff','1080004RezShu','2426802ZvqpKX','name','2093iqPsWa','BFF\x20executed\x20in\x20','now','2431psnpqQ','str','749484xggnOR','params','BFF\x20function\x20name\x20to\x20execute','3AaSVfY','45EPSatx','22224OZmjMB','517875xAEqzL'];a14_0x1971=function(){return _0x298427;};return a14_0x1971();}(function(_0x53e679,_0x184324){const _0x4fd55a=a14_0x5017,_0x50c442=_0x53e679();while(!![]){try{const _0x57f776=parseInt(_0x4fd55a(0x1ba))/0x1+parseInt(_0x4fd55a(0x1c1))/0x2+-parseInt(_0x4fd55a(0x1b7))/0x3*(parseInt(_0x4fd55a(0x1c0))/0x4)+-parseInt(_0x4fd55a(0x1b8))/0x5*(parseInt(_0x4fd55a(0x1b4))/0x6)+-parseInt(_0x4fd55a(0x1c3))/0x7*(parseInt(_0x4fd55a(0x1b9))/0x8)+-parseInt(_0x4fd55a(0x1bb))/0x9+-parseInt(_0x4fd55a(0x1bd))/0xa*(-parseInt(_0x4fd55a(0x1b2))/0xb);if(_0x57f776===_0x184324)break;else _0x50c442['push'](_0x50c442['shift']());}catch(_0x20175a){_0x50c442['push'](_0x50c442['shift']());}}}(a14_0x1971,0xa443c));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a14_0x2b9ab4(0x1bf),'command':a14_0x2b9ab4(0x1bc),'description':a14_0x2b9ab4(0x1be),'risk':'read','flags':[{...NAME_FLAG,'required':!![],'description':a14_0x2b9ab4(0x1b6)},PARAMS_FLAG],async 'execute'(_0x3f9219){const _0x2a61e4=a14_0x2b9ab4,_0x1a2b9c=parseJsonParams(_0x3f9219[_0x2a61e4(0x1b3)](_0x2a61e4(0x1b5))),_0x2d9d1d=Date[_0x2a61e4(0x1b1)](),_0x1d168c=await executeSdkBff(_0x3f9219['str'](_0x2a61e4(0x1c2)),_0x1a2b9c),_0x1d55e5=Date['now']()-_0x2d9d1d;return{'ok':!![],'data':{'result':_0x1d168c,'elapsed':_0x1d55e5},'message':_0x2a61e4(0x1b0)+_0x1d55e5+'ms'};}};