@lovrabet/lovrabet-cli 2.0.13-beta.4 → 2.0.13-beta.6

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 (75) 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/mock-loader.js +1 -1
  6. package/lib/commands/app/remote-source.js +1 -1
  7. package/lib/commands/app/shared.js +1 -1
  8. package/lib/commands/artifact/index.js +1 -1
  9. package/lib/commands/auth/index.js +1 -1
  10. package/lib/commands/auth/prompt.js +1 -1
  11. package/lib/commands/bff/detail.js +1 -1
  12. package/lib/commands/bff/exec.js +1 -1
  13. package/lib/commands/bff/index.js +1 -1
  14. package/lib/commands/common/config-policy.js +1 -1
  15. package/lib/commands/common/constraints.js +1 -1
  16. package/lib/commands/common/flags.js +1 -1
  17. package/lib/commands/config/definitions.js +1 -1
  18. package/lib/commands/config/shared.js +1 -1
  19. package/lib/commands/data/index.js +1 -1
  20. package/lib/commands/dataset/detail.js +1 -1
  21. package/lib/commands/dataset/index.js +1 -1
  22. package/lib/commands/dataset/list.js +1 -1
  23. package/lib/commands/dataset/sdk-doc.js +1 -1
  24. package/lib/commands/doctor.js +1 -1
  25. package/lib/commands/init.js +1 -1
  26. package/lib/commands/kb/index.js +1 -1
  27. package/lib/commands/logs/index.js +1 -1
  28. package/lib/commands/personal-bff/index.js +1 -1
  29. package/lib/commands/registry.js +1 -1
  30. package/lib/commands/schema.js +1 -1
  31. package/lib/commands/skill/index.js +1 -1
  32. package/lib/commands/sql/detail.js +1 -1
  33. package/lib/commands/sql/exec.js +1 -1
  34. package/lib/commands/sql/index.js +1 -1
  35. package/lib/commands/update.js +1 -1
  36. package/lib/config/schema.js +1 -1
  37. package/lib/constant/auth-mode.js +1 -1
  38. package/lib/constant/cli.js +1 -1
  39. package/lib/constant/defaults.js +1 -1
  40. package/lib/constant/distribution.js +1 -1
  41. package/lib/constant/domain.js +1 -1
  42. package/lib/constant/env.js +1 -1
  43. package/lib/constant/output.js +1 -1
  44. package/lib/constant/product.js +1 -1
  45. package/lib/constant/risk.js +1 -1
  46. package/lib/constant/url.js +1 -1
  47. package/lib/context.js +1 -1
  48. package/lib/core/api-client.js +1 -1
  49. package/lib/core/db-resolver.js +1 -1
  50. package/lib/core/sdk-client.js +1 -1
  51. package/lib/errors.js +1 -1
  52. package/lib/framework/build-all-flags.js +1 -1
  53. package/lib/framework/dryrun.js +1 -1
  54. package/lib/framework/flags.js +1 -1
  55. package/lib/framework/help.js +1 -1
  56. package/lib/framework/index.js +1 -1
  57. package/lib/framework/output.js +1 -1
  58. package/lib/framework/preparse.js +1 -1
  59. package/lib/framework/response.js +1 -1
  60. package/lib/framework/runner-confirmation.js +1 -1
  61. package/lib/framework/runner-error.js +1 -1
  62. package/lib/framework/runner.js +1 -1
  63. package/lib/framework/schema-export.js +1 -1
  64. package/lib/framework/types.js +1 -1
  65. package/lib/help.js +1 -1
  66. package/lib/skills/npx-skills-add.js +1 -1
  67. package/lib/skills/runtime-skill-sync.js +1 -1
  68. package/lib/utils/apply-jq-filter.js +1 -1
  69. package/lib/utils/logger.js +1 -1
  70. package/lib/utils/params.js +1 -1
  71. package/lib/utils/platform.js +1 -1
  72. package/lib/utils/update-notice.js +1 -0
  73. package/lib/utils/version.js +1 -1
  74. package/lib/utils/write-cli-side-channel.js +1 -1
  75. package/package.json +1 -1
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const a0_0x5e56d2=a0_0x2c85;(function(_0x15111f,_0x3b0e7d){const _0x56697e=a0_0x2c85,_0x4b9915=_0x15111f();while(!![]){try{const _0x129f6d=-parseInt(_0x56697e(0x141))/0x1*(-parseInt(_0x56697e(0x126))/0x2)+-parseInt(_0x56697e(0x142))/0x3*(parseInt(_0x56697e(0x12e))/0x4)+parseInt(_0x56697e(0x149))/0x5+-parseInt(_0x56697e(0x14a))/0x6*(-parseInt(_0x56697e(0x13b))/0x7)+-parseInt(_0x56697e(0x128))/0x8*(-parseInt(_0x56697e(0x125))/0x9)+parseInt(_0x56697e(0x133))/0xa*(parseInt(_0x56697e(0x14d))/0xb)+-parseInt(_0x56697e(0x135))/0xc;if(_0x129f6d===_0x3b0e7d)break;else _0x4b9915['push'](_0x4b9915['shift']());}catch(_0x37f2fe){_0x4b9915['push'](_0x4b9915['shift']());}}}(a0_0x3b8b,0x368bc));import{jsx as a0_0x39be57}from'react/jsx-runtime';import a0_0x3e2ade from'meow';import{render}from'ink';import{Help}from'./help.js';function a0_0x2c85(_0x141e17,_0x44677a){_0x141e17=_0x141e17-0x122;const _0x3b8b65=a0_0x3b8b();let _0x2c8572=_0x3b8b65[_0x141e17];return _0x2c8572;}import{CliError,CliErrors}from'./errors.js';import{buildConfigFromFlags,initGlobalEnvironment}from'./context.js';import{isKnownService,getServiceEntry,findDefinition,getAllDefinitions}from'./commands/registry.js';import{runCommand,createPipelineEnv}from'./framework/runner.js';function a0_0x3b8b(){const _0x55b774=['168760yICuPh','handler','7704816WIGsoi','length','assign','write','Unexpected\x20error:','\x20->\x20--','3941FUPTaQ','\x0aCancelled.\x0a','cancelled','exitCode','help','hint','115646DWKVis','56205typCdB','slice','[preparse]\x20','code','Error:\x20','log','original','192740HqaLAv','2556aJPUfY','Hint:\x20','exit','132MyMxTk','error','catch','message','defaultCommand','name','153yBeWqJ','6ZMcqki','input','44168SvMqqq','flatMap','ExitPromptError','stderr','ERR_USE_AFTER_CLOSE','args','12qopCIt','flags','corrected',':\x20--','./framework/preparse.js'];a0_0x3b8b=function(){return _0x55b774;};return a0_0x3b8b();}import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{buildMeowFlags}from'./constant/cli.js';const helpText=generateFullHelp(),cli=a0_0x3e2ade(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'autoVersion':!![]});void main()[a0_0x5e56d2(0x14f)](handleError);async function main(){try{await run();}catch(_0x2c9d6b){handleError(_0x2c9d6b);}}async function run(){const _0xb84d31=a0_0x5e56d2;let _0xd28eb=cli['input'][0x0],_0x295666=cli[_0xb84d31(0x127)][0x1];const _0x28f218=cli[_0xb84d31(0x12f)];try{const {correctFlags:_0x3f5dac}=await import(_0xb84d31(0x132)),_0x35e489=getAllDefinitions()[_0xb84d31(0x129)](_0x298dfe=>_0x298dfe[_0xb84d31(0x12f)]??[]),{flags:_0x3a42b7,corrections:_0x24c685}=_0x3f5dac(_0x28f218,_0x35e489);if(_0x24c685[_0xb84d31(0x136)]>0x0){for(const _0x5d0bd8 of _0x24c685){process[_0xb84d31(0x12b)][_0xb84d31(0x138)](_0xb84d31(0x144)+_0x5d0bd8[_0xb84d31(0x134)]+_0xb84d31(0x131)+_0x5d0bd8[_0xb84d31(0x148)]+_0xb84d31(0x13a)+_0x5d0bd8[_0xb84d31(0x130)]+'\x0a');}Object[_0xb84d31(0x137)](_0x28f218,_0x3a42b7);}}catch{}if(!_0xd28eb||!isKnownService(_0xd28eb)){const {waitUntilExit:_0x9796a5}=render(a0_0x39be57(Help,{}));await _0x9796a5();return;}const _0x2b92c6=getServiceEntry(_0xd28eb);if(!_0x295666){if(_0x28f218[_0xb84d31(0x13f)]){console[_0xb84d31(0x147)](generateServiceHelp(_0xd28eb));return;}if(_0x2b92c6[_0xb84d31(0x123)])_0x295666=_0x2b92c6[_0xb84d31(0x123)];else{console[_0xb84d31(0x147)](generateServiceHelp(_0xd28eb));return;}}const _0x5c352a=findDefinition(_0xd28eb,_0x295666);!_0x5c352a&&(console[_0xb84d31(0x147)](generateServiceHelp(_0xd28eb)),handleError(CliErrors['unknownCommand'](_0xd28eb+'\x20'+_0x295666)));if(_0x28f218[_0xb84d31(0x13f)]){console['log'](generateCommandHelp(_0x5c352a));return;}const _0x294118=buildConfigFromFlags(_0x28f218);await initGlobalEnvironment(_0x294118);const _0x239098=createPipelineEnv(_0x294118,_0x28f218);_0x239098[_0xb84d31(0x12d)]=cli[_0xb84d31(0x127)][_0xb84d31(0x143)](0x2),await runCommand(_0x5c352a,_0x239098);}function handleError(_0x489eb5){const _0x317021=a0_0x5e56d2;if(_0x489eb5 instanceof CliError){_0x489eb5[_0x317021(0x145)]===_0x317021(0x13d)&&(process[_0x317021(0x12b)]['write'](_0x317021(0x13c)),process[_0x317021(0x14c)](0x0));console[_0x317021(0x14e)](_0x317021(0x146)+_0x489eb5[_0x317021(0x122)]);if(_0x489eb5[_0x317021(0x140)])console['error'](_0x317021(0x14b)+_0x489eb5[_0x317021(0x140)]);process[_0x317021(0x14c)](_0x489eb5[_0x317021(0x13e)]);}isUserCancellation(_0x489eb5)&&(process[_0x317021(0x12b)]['write'](_0x317021(0x13c)),process[_0x317021(0x14c)](0x0)),console[_0x317021(0x14e)](_0x317021(0x139),_0x489eb5),process['exit'](0x1);}function isUserCancellation(_0x4e556c){const _0x2ab795=a0_0x5e56d2;if(!(_0x4e556c instanceof Error))return![];if(_0x4e556c[_0x2ab795(0x124)]===_0x2ab795(0x12a))return!![];if(_0x4e556c[_0x2ab795(0x145)]===_0x2ab795(0x12c))return!![];if(_0x4e556c[_0x2ab795(0x145)]==='ERR_STREAM_DESTROYED')return!![];return![];}
2
+ const a0_0x51eb4d=a0_0x4d92;(function(_0xb701a7,_0x158df4){const _0x32d8c2=a0_0x4d92,_0x5763e1=_0xb701a7();while(!![]){try{const _0x54eaef=-parseInt(_0x32d8c2(0x1e3))/0x1*(parseInt(_0x32d8c2(0x1e2))/0x2)+-parseInt(_0x32d8c2(0x1dd))/0x3+-parseInt(_0x32d8c2(0x1d1))/0x4*(parseInt(_0x32d8c2(0x1d9))/0x5)+parseInt(_0x32d8c2(0x1d2))/0x6+parseInt(_0x32d8c2(0x1d7))/0x7*(parseInt(_0x32d8c2(0x1ce))/0x8)+parseInt(_0x32d8c2(0x1dc))/0x9*(-parseInt(_0x32d8c2(0x1c0))/0xa)+parseInt(_0x32d8c2(0x1d6))/0xb*(parseInt(_0x32d8c2(0x1d8))/0xc);if(_0x54eaef===_0x158df4)break;else _0x5763e1['push'](_0x5763e1['shift']());}catch(_0x3ea726){_0x5763e1['push'](_0x5763e1['shift']());}}}(a0_0xefd1,0xf0cb5));function a0_0x4d92(_0x5a8f25,_0x1376c4){_0x5a8f25=_0x5a8f25-0x1bf;const _0xefd1e6=a0_0xefd1();let _0x4d9237=_0xefd1e6[_0x5a8f25];return _0x4d9237;}import{jsx as a0_0x57f200}from'react/jsx-runtime';import a0_0x468e31 from'meow';function a0_0xefd1(){const _0x1a4182=['exit','./framework/preparse.js','help','11308oaBxKA','326TUKTRD','name','flags','defaultCommand','20uWUlXg','cancelled','Error:\x20','ERR_USE_AFTER_CLOSE','input','\x0aCancelled.\x0a','args','exitCode','catch','write','code','ExitPromptError','handler','message','722872bGRwFn','\x20->\x20--','stderr','33420ZiFYSE','10530966GESJiM','error','unknownCommand','original','451KfxgoS','63VoqnDJ','1118388zoRVkV','965nOGvPg','length','log','8288829ZpQAfS','316731OnIJjz','hint'];a0_0xefd1=function(){return _0x1a4182;};return a0_0xefd1();}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{runCommand,createPipelineEnv}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{buildMeowFlags}from'./constant/cli.js';const helpText=generateFullHelp(),cli=a0_0x468e31(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'autoVersion':!![]});void main()[a0_0x51eb4d(0x1c8)](handleError);async function main(){try{await run();}catch(_0x350d6e){handleError(_0x350d6e);}}async function run(){const _0x274ba8=a0_0x51eb4d;let _0x5d2e0e=cli[_0x274ba8(0x1c4)][0x0],_0x29fcaa=cli[_0x274ba8(0x1c4)][0x1];const _0x9c7005=cli[_0x274ba8(0x1e5)];try{const {correctFlags:_0x46ec97}=await import(_0x274ba8(0x1e0)),_0x2ae7e7=getAllDefinitions()['flatMap'](_0x4a584f=>_0x4a584f[_0x274ba8(0x1e5)]??[]),{flags:_0x9ce9db,corrections:_0x4b38e7}=_0x46ec97(_0x9c7005,_0x2ae7e7);if(_0x4b38e7[_0x274ba8(0x1da)]>0x0){for(const _0x1533b2 of _0x4b38e7){process[_0x274ba8(0x1d0)][_0x274ba8(0x1c9)]('[preparse]\x20'+_0x1533b2[_0x274ba8(0x1cc)]+':\x20--'+_0x1533b2[_0x274ba8(0x1d5)]+_0x274ba8(0x1cf)+_0x1533b2['corrected']+'\x0a');}Object['assign'](_0x9c7005,_0x9ce9db);}}catch{}if(!_0x5d2e0e||!isKnownService(_0x5d2e0e)){const {waitUntilExit:_0x36efa7}=render(a0_0x57f200(Help,{}));await _0x36efa7();return;}const _0x439422=getServiceEntry(_0x5d2e0e);if(!_0x29fcaa){if(_0x9c7005[_0x274ba8(0x1e1)]){console[_0x274ba8(0x1db)](generateServiceHelp(_0x5d2e0e));return;}if(_0x439422[_0x274ba8(0x1bf)])_0x29fcaa=_0x439422[_0x274ba8(0x1bf)];else{console[_0x274ba8(0x1db)](generateServiceHelp(_0x5d2e0e));return;}}const _0x5012f7=findDefinition(_0x5d2e0e,_0x29fcaa);!_0x5012f7&&(console[_0x274ba8(0x1db)](generateServiceHelp(_0x5d2e0e)),handleError(CliErrors[_0x274ba8(0x1d4)](_0x5d2e0e+'\x20'+_0x29fcaa)));if(_0x9c7005['help']){console['log'](generateCommandHelp(_0x5012f7));return;}const _0x433cfe=buildConfigFromFlags(_0x9c7005);await initGlobalEnvironment(_0x433cfe);const _0x3ff8ef=createPipelineEnv(_0x433cfe,_0x9c7005);_0x3ff8ef[_0x274ba8(0x1c6)]=cli['input']['slice'](0x2),await runCommand(_0x5012f7,_0x3ff8ef);}function handleError(_0x4aaf30){const _0x593b6=a0_0x51eb4d;if(_0x4aaf30 instanceof CliError){_0x4aaf30[_0x593b6(0x1ca)]===_0x593b6(0x1c1)&&(process['stderr'][_0x593b6(0x1c9)](_0x593b6(0x1c5)),process[_0x593b6(0x1df)](0x0));console['error'](_0x593b6(0x1c2)+_0x4aaf30[_0x593b6(0x1cd)]);if(_0x4aaf30[_0x593b6(0x1de)])console[_0x593b6(0x1d3)]('Hint:\x20'+_0x4aaf30[_0x593b6(0x1de)]);process[_0x593b6(0x1df)](_0x4aaf30[_0x593b6(0x1c7)]);}isUserCancellation(_0x4aaf30)&&(process[_0x593b6(0x1d0)][_0x593b6(0x1c9)](_0x593b6(0x1c5)),process['exit'](0x0)),console['error']('Unexpected\x20error:',_0x4aaf30),process['exit'](0x1);}function isUserCancellation(_0x288e9a){const _0x4d2d59=a0_0x51eb4d;if(!(_0x288e9a instanceof Error))return![];if(_0x288e9a[_0x4d2d59(0x1e4)]===_0x4d2d59(0x1cb))return!![];if(_0x288e9a['code']===_0x4d2d59(0x1c3))return!![];if(_0x288e9a[_0x4d2d59(0x1ca)]==='ERR_STREAM_DESTROYED')return!![];return![];}
@@ -1 +1 @@
1
- const a1_0x18bd4f=a1_0xe03f;function a1_0xe03f(_0xd6e762,_0x36e06f){_0xd6e762=_0xd6e762-0xf7;const _0x699565=a1_0x6995();let _0xe03fb2=_0x699565[_0xd6e762];return _0xe03fb2;}(function(_0x53a2a8,_0x1c746d){const _0x3b3c78=a1_0xe03f,_0x14c61b=_0x53a2a8();while(!![]){try{const _0xe3d208=-parseInt(_0x3b3c78(0x14a))/0x1*(parseInt(_0x3b3c78(0x115))/0x2)+-parseInt(_0x3b3c78(0x14b))/0x3+-parseInt(_0x3b3c78(0x13b))/0x4+-parseInt(_0x3b3c78(0x101))/0x5+-parseInt(_0x3b3c78(0x121))/0x6*(-parseInt(_0x3b3c78(0x116))/0x7)+parseInt(_0x3b3c78(0x13c))/0x8+parseInt(_0x3b3c78(0x120))/0x9;if(_0xe3d208===_0x1c746d)break;else _0x14c61b['push'](_0x14c61b['shift']());}catch(_0xd20c8b){_0x14c61b['push'](_0x14c61b['shift']());}}}(a1_0x6995,0x75b4d));import{CliErrors}from'../../errors.js';const CATEGORY_FLAG={'name':a1_0x18bd4f(0x13d),'type':a1_0x18bd4f(0x164),'description':'Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset'},KEYWORD_FLAG={'name':'keyword','type':a1_0x18bd4f(0x164),'description':a1_0x18bd4f(0x130)},DOC_CODE_FLAG={'name':'code','type':a1_0x18bd4f(0x164),'required':!![],'description':a1_0x18bd4f(0x12c)},DOCS=[{'code':a1_0x18bd4f(0x128),'category':a1_0x18bd4f(0x108),'title':'List\x20datasets','method':a1_0x18bd4f(0x145),'path':a1_0x18bd4f(0x155),'summary':a1_0x18bd4f(0x124),'whenToUse':a1_0x18bd4f(0x153),'pathParams':[],'queryParams':[],'bodySchema':a1_0x18bd4f(0x10f),'responseHighlights':[a1_0x18bd4f(0x127),a1_0x18bd4f(0x10e)],'examples':[a1_0x18bd4f(0x133)],'notes':[a1_0x18bd4f(0x12d)],'markdown':[a1_0x18bd4f(0x11b),'','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.'][a1_0x18bd4f(0x123)]('\x0a')},{'code':a1_0x18bd4f(0xfb),'category':'dataset','title':a1_0x18bd4f(0x162),'method':a1_0x18bd4f(0x144),'path':a1_0x18bd4f(0x141),'summary':'获取数据集详情','whenToUse':a1_0x18bd4f(0x12a),'pathParams':[],'queryParams':[{'name':a1_0x18bd4f(0x104),'description':'32-character\x20dataset\x20code'}],'bodySchema':a1_0x18bd4f(0x112),'responseHighlights':[a1_0x18bd4f(0x12f),'operations\x20describes\x20runtime\x20APIs'],'examples':['lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>'],'notes':['If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.'],'markdown':[a1_0x18bd4f(0x111),'',a1_0x18bd4f(0x15a)]['join']('\x0a')},{'code':a1_0x18bd4f(0x125),'category':a1_0x18bd4f(0x108),'title':a1_0x18bd4f(0xf8),'method':a1_0x18bd4f(0x145),'path':'/api/{appCode}/{datasetCode}/filter','summary':a1_0x18bd4f(0xfd),'whenToUse':a1_0x18bd4f(0x140),'pathParams':[{'name':a1_0x18bd4f(0x109),'description':'Current\x20app\x20code'},{'name':a1_0x18bd4f(0x158),'description':a1_0x18bd4f(0x134)}],'queryParams':[],'bodySchema':a1_0x18bd4f(0x10c),'responseHighlights':[a1_0x18bd4f(0x102),a1_0x18bd4f(0x135)],'examples':[a1_0x18bd4f(0x154)],'notes':[a1_0x18bd4f(0x142)],'markdown':[a1_0x18bd4f(0x122),'',a1_0x18bd4f(0x11c)]['join']('\x0a')},{'code':a1_0x18bd4f(0x143),'category':'dataset','title':a1_0x18bd4f(0x12e),'method':a1_0x18bd4f(0x145),'path':a1_0x18bd4f(0x147),'summary':'聚合查询数据集数据','whenToUse':'需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用','pathParams':[{'name':a1_0x18bd4f(0x109),'description':a1_0x18bd4f(0x15b)},{'name':a1_0x18bd4f(0x158),'description':a1_0x18bd4f(0x134)}],'queryParams':[],'bodySchema':a1_0x18bd4f(0x157),'responseHighlights':[a1_0x18bd4f(0x11e),a1_0x18bd4f(0x159)],'examples':[a1_0x18bd4f(0xff)],'notes':['Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.'],'markdown':['##\x20Aggregate\x20dataset\x20data','','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.'][a1_0x18bd4f(0x123)]('\x0a')},{'code':'dataset_data_get_one','category':a1_0x18bd4f(0x108),'title':a1_0x18bd4f(0x161),'method':a1_0x18bd4f(0x145),'path':'/api/{appCode}/{datasetCode}/getOne','summary':a1_0x18bd4f(0x150),'whenToUse':a1_0x18bd4f(0x151),'pathParams':[{'name':a1_0x18bd4f(0x109),'description':a1_0x18bd4f(0x15b)},{'name':a1_0x18bd4f(0x158),'description':a1_0x18bd4f(0x134)}],'queryParams':[],'bodySchema':a1_0x18bd4f(0xf7),'responseHighlights':[a1_0x18bd4f(0xfe)],'examples':['lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27'],'notes':['Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.'],'markdown':'##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.'},{'code':a1_0x18bd4f(0x100),'category':a1_0x18bd4f(0x108),'title':a1_0x18bd4f(0x129),'method':a1_0x18bd4f(0x145),'path':'/api/{appCode}/{datasetCode}/create','summary':a1_0x18bd4f(0x15e),'whenToUse':a1_0x18bd4f(0x139),'pathParams':[{'name':a1_0x18bd4f(0x109),'description':'Current\x20app\x20code'},{'name':a1_0x18bd4f(0x158),'description':a1_0x18bd4f(0x134)}],'queryParams':[],'bodySchema':a1_0x18bd4f(0x11a),'responseHighlights':[a1_0x18bd4f(0x15c)],'examples':[a1_0x18bd4f(0x13f)],'notes':[a1_0x18bd4f(0x14e)],'markdown':a1_0x18bd4f(0xfc)},{'code':'bf_function_list','category':'bf','title':a1_0x18bd4f(0x156),'method':'GET','path':'/api/endpoint/{appCode}/functions','summary':a1_0x18bd4f(0x146),'whenToUse':a1_0x18bd4f(0x12b),'pathParams':[{'name':a1_0x18bd4f(0x109),'description':a1_0x18bd4f(0x15b)}],'queryParams':[],'bodySchema':a1_0x18bd4f(0x112),'responseHighlights':[a1_0x18bd4f(0x15f)],'examples':['lovrabet\x20bff\x20detail\x20--id\x20<scriptId>\x20--appcode\x20<appCode>'],'notes':[a1_0x18bd4f(0x117)],'markdown':a1_0x18bd4f(0x107)},{'code':'bf_execute','category':'bf','title':a1_0x18bd4f(0xf9),'method':a1_0x18bd4f(0x145),'path':'/api/endpoint/{appCode}/{scriptName}','summary':a1_0x18bd4f(0x13a),'whenToUse':a1_0x18bd4f(0x113),'pathParams':[{'name':a1_0x18bd4f(0x109),'description':a1_0x18bd4f(0x15b)},{'name':'scriptName','description':a1_0x18bd4f(0x149)}],'queryParams':[],'bodySchema':a1_0x18bd4f(0x14c),'responseHighlights':['Returns\x20script\x20business\x20payload'],'examples':[a1_0x18bd4f(0x106)],'notes':[a1_0x18bd4f(0x137)],'markdown':a1_0x18bd4f(0x14d)},{'code':'custom_sql_execute','category':a1_0x18bd4f(0x148),'title':a1_0x18bd4f(0x126),'method':'POST','path':a1_0x18bd4f(0x114),'summary':a1_0x18bd4f(0x152),'whenToUse':'已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','pathParams':[],'queryParams':[],'bodySchema':'{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','responseHighlights':[a1_0x18bd4f(0x138)],'examples':[a1_0x18bd4f(0x13e)],'notes':[a1_0x18bd4f(0x103)],'markdown':'##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.'}];function a1_0x6995(){const _0x52807f=['已经确认目标\x20BF\x20的\x20scriptName,且需要实际调用该\x20ENDPOINT\x20脚本完成业务操作时使用','/api/custom/executeSql','2978YSEBTJ','474131nhQbpN','CLI\x20has\x20typed\x20`bff\x20detail`\x20and\x20`bff\x20exec`\x20commands\x20for\x20endpoint\x20scripts.','list','map','{\x22fieldName\x22:\x22value\x22}','##\x20List\x20datasets','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.','read','result\x20rows\x20contain\x20aggregate\x20aliases','API\x20doc\x20code\x20not\x20found:\x20','2388996TGCSDM','84XJQwXs','##\x20Filter\x20dataset\x20data','join','分页获取数据集列表','dataset_data_filter','Execute\x20custom\x20SQL','tableData\x20contains\x20dataset\x20id/code/name','dataset_list','Create\x20dataset\x20record','需要按数据集\x20code\x20获取字段、表信息或操作定义时使用','需要先确认当前应用有哪些可执行的\x20BF/ENDPOINT\x20函数,以及收敛可用\x20scriptName\x20时使用','API\x20doc\x20code,\x20for\x20example\x20dataset_list','CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.','Aggregate\x20dataset\x20data','fields/properties\x20describe\x20data\x20shape','Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text','method','path','lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress','32-character\x20dataset\x20code','paging\x20contains\x20pagination','Show\x20runtime\x20API\x20documentation\x20by\x20code','Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.','Returns\x20SQL\x20execution\x20payload','需要向指定数据集新增一条业务数据时使用','执行指定\x20BF\x20函数','1168056pYtmwN','230592qPzYDp','category','lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27','lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27','需要携带\x20where、orderBy、分页等条件读取业务数据时使用','/api/dataset/getOneByCode?code={datasetCode}','Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.','dataset_data_aggregate','GET','POST','获取应用下可调用的\x20BF\x20函数列表','/api/{appCode}/{datasetCode}/aggregate','custom_sql','Endpoint\x20function\x20name','6ZCjMqD','937014ATWydt','{\x22param\x22:\x22value\x22}','##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.','This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.','keyword','查询单条数据','已经知道记录\x20id,需要按数据集读取单条业务数据时使用','执行自定义\x20SQL','需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:5}\x27','/api/dataset/get-dataset-list-by-app-code','List\x20BF\x20endpoint\x20functions','{\x22aggregate\x22:[{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','datasetCode','where\x20filters\x20before\x20aggregation','Inspect\x20field\x20names\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.','Current\x20app\x20code','Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result','toLowerCase','创建数据','Returns\x20endpoint\x20functionName/id/description','summary','Get\x20one\x20dataset\x20record','Dataset\x20detail','title','string','find','{\x22id\x22:123}','Filter\x20dataset\x20data','Execute\x20BF\x20endpoint\x20function','str','dataset_detail','##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.','条件过滤查询数据','Returns\x20one\x20matching\x20business\x20record','lovrabet\x20data\x20aggregate\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}]}\x27','dataset_data_create','735595FjStpe','tableData\x20contains\x20records','Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.','code','filter','lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27','##\x20List\x20BF\x20endpoint\x20functions\x0a\x0aDiscover\x20executable\x20endpoint\x20functions.','dataset','appCode','whenToUse','api-doc','{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','trim','paging.totalCount\x20gives\x20total\x20rows','{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','detail','##\x20Dataset\x20detail','None'];a1_0x6995=function(){return _0x52807f;};return a1_0x6995();}function entrySummary(_0x3f4020){const _0x55cb56=a1_0x18bd4f;return{'code':_0x3f4020[_0x55cb56(0x104)],'category':_0x3f4020[_0x55cb56(0x13d)],'method':_0x3f4020[_0x55cb56(0x131)],'path':_0x3f4020[_0x55cb56(0x132)],'summary':_0x3f4020['summary'],'whenToUse':_0x3f4020['whenToUse']};}export function listApiDocEntries(_0x5beeb2={}){const _0x4f160c=a1_0x18bd4f,_0x2a61b6=String(_0x5beeb2['category']||'')[_0x4f160c(0x10d)](),_0x2ea0c8=String(_0x5beeb2[_0x4f160c(0x14f)]||'')['trim']()['toLowerCase']();return DOCS[_0x4f160c(0x105)](_0x168943=>{const _0xe6ccef=_0x4f160c;if(_0x2a61b6&&_0x168943['category']!==_0x2a61b6)return![];if(!_0x2ea0c8)return!![];return[_0x168943[_0xe6ccef(0x104)],_0x168943[_0xe6ccef(0x13d)],_0x168943['method'],_0x168943[_0xe6ccef(0x132)],_0x168943[_0xe6ccef(0x160)],_0x168943[_0xe6ccef(0x10a)],_0x168943[_0xe6ccef(0x163)]]['join']('\x20')[_0xe6ccef(0x15d)]()['includes'](_0x2ea0c8);})[_0x4f160c(0x119)](entrySummary);}export function getApiDocDetail(_0x459233){const _0x3d8b9a=a1_0x18bd4f,_0xbabdd6=DOCS[_0x3d8b9a(0x165)](_0x370399=>_0x370399['code']===_0x459233);if(!_0xbabdd6)throw CliErrors['validation'](_0x3d8b9a(0x11f)+_0x459233);return{..._0xbabdd6};}const apiDocList={'service':a1_0x18bd4f(0x10b),'command':a1_0x18bd4f(0x118),'description':'List\x20available\x20runtime\x20API\x20documentation\x20entries','risk':a1_0x18bd4f(0x11d),'requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0x155150){const _0x17ac27=a1_0x18bd4f,_0xc2eae=listApiDocEntries({'category':_0x155150[_0x17ac27(0xfa)](_0x17ac27(0x13d)),'keyword':_0x155150[_0x17ac27(0xfa)](_0x17ac27(0x14f))});return{'ok':!![],'data':{'total':_0xc2eae['length'],'items':_0xc2eae}};}},apiDocDetail={'service':a1_0x18bd4f(0x10b),'command':a1_0x18bd4f(0x110),'description':a1_0x18bd4f(0x136),'risk':a1_0x18bd4f(0x11d),'requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0x49ab03){const _0x4754f0=a1_0x18bd4f;return{'ok':!![],'data':getApiDocDetail(_0x49ab03['str'](_0x4754f0(0x104)))};}};export const apiDocDefinitions=[apiDocList,apiDocDetail];
1
+ const a1_0xb5d83b=a1_0x4587;(function(_0x1c2b52,_0x1f8e15){const _0x29e015=a1_0x4587,_0x4643b1=_0x1c2b52();while(!![]){try{const _0x291c14=parseInt(_0x29e015(0x21e))/0x1*(-parseInt(_0x29e015(0x1bc))/0x2)+-parseInt(_0x29e015(0x1eb))/0x3+-parseInt(_0x29e015(0x1ce))/0x4+-parseInt(_0x29e015(0x1cc))/0x5+-parseInt(_0x29e015(0x1db))/0x6*(-parseInt(_0x29e015(0x1c6))/0x7)+-parseInt(_0x29e015(0x1c3))/0x8*(-parseInt(_0x29e015(0x210))/0x9)+-parseInt(_0x29e015(0x1ff))/0xa*(-parseInt(_0x29e015(0x1c5))/0xb);if(_0x291c14===_0x1f8e15)break;else _0x4643b1['push'](_0x4643b1['shift']());}catch(_0x48888a){_0x4643b1['push'](_0x4643b1['shift']());}}}(a1_0x2e49,0xb24b7));function a1_0x4587(_0x30888e,_0x902cee){_0x30888e=_0x30888e-0x1b9;const _0x2e4957=a1_0x2e49();let _0x4587c0=_0x2e4957[_0x30888e];return _0x4587c0;}import{CliErrors}from'../../errors.js';const CATEGORY_FLAG={'name':a1_0xb5d83b(0x22f),'type':a1_0xb5d83b(0x1e8),'description':a1_0xb5d83b(0x21a)},KEYWORD_FLAG={'name':'keyword','type':'string','description':'Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text'},DOC_CODE_FLAG={'name':a1_0xb5d83b(0x22c),'type':a1_0xb5d83b(0x1e8),'required':!![],'description':a1_0xb5d83b(0x1fe)},DOCS=[{'code':'dataset_list','category':'dataset','title':'List\x20datasets','method':a1_0xb5d83b(0x1ee),'path':a1_0xb5d83b(0x1d2),'summary':'分页获取数据集列表','whenToUse':a1_0xb5d83b(0x1e6),'pathParams':[],'queryParams':[],'bodySchema':a1_0xb5d83b(0x1dd),'responseHighlights':['tableData\x20contains\x20dataset\x20id/code/name',a1_0xb5d83b(0x21b)],'examples':[a1_0xb5d83b(0x227)],'notes':[a1_0xb5d83b(0x221)],'markdown':['##\x20List\x20datasets','','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.'][a1_0xb5d83b(0x1d9)]('\x0a')},{'code':a1_0xb5d83b(0x228),'category':a1_0xb5d83b(0x1da),'title':a1_0xb5d83b(0x201),'method':a1_0xb5d83b(0x1dc),'path':'/api/dataset/getOneByCode?code={datasetCode}','summary':a1_0xb5d83b(0x20c),'whenToUse':'需要按数据集\x20code\x20获取字段、表信息或操作定义时使用','pathParams':[],'queryParams':[{'name':'code','description':a1_0xb5d83b(0x211)}],'bodySchema':a1_0xb5d83b(0x1fc),'responseHighlights':['fields/properties\x20describe\x20data\x20shape',a1_0xb5d83b(0x219)],'examples':['lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>'],'notes':['If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.'],'markdown':['##\x20Dataset\x20detail','',a1_0xb5d83b(0x1cb)]['join']('\x0a')},{'code':'dataset_data_filter','category':a1_0xb5d83b(0x1da),'title':a1_0xb5d83b(0x217),'method':'POST','path':a1_0xb5d83b(0x1d6),'summary':a1_0xb5d83b(0x1c2),'whenToUse':a1_0xb5d83b(0x1be),'pathParams':[{'name':a1_0xb5d83b(0x22b),'description':a1_0xb5d83b(0x1e9)},{'name':a1_0xb5d83b(0x205),'description':a1_0xb5d83b(0x211)}],'queryParams':[],'bodySchema':a1_0xb5d83b(0x1d3),'responseHighlights':[a1_0xb5d83b(0x218),a1_0xb5d83b(0x1fd)],'examples':[a1_0xb5d83b(0x1d5)],'notes':[a1_0xb5d83b(0x1bd)],'markdown':[a1_0xb5d83b(0x1bb),'',a1_0xb5d83b(0x1f6)][a1_0xb5d83b(0x1d9)]('\x0a')},{'code':a1_0xb5d83b(0x1ba),'category':a1_0xb5d83b(0x1da),'title':a1_0xb5d83b(0x20d),'method':'POST','path':a1_0xb5d83b(0x216),'summary':a1_0xb5d83b(0x1ef),'whenToUse':a1_0xb5d83b(0x1c7),'pathParams':[{'name':a1_0xb5d83b(0x22b),'description':a1_0xb5d83b(0x1e9)},{'name':a1_0xb5d83b(0x205),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':a1_0xb5d83b(0x20a),'responseHighlights':[a1_0xb5d83b(0x222),'where\x20filters\x20before\x20aggregation'],'examples':['lovrabet\x20data\x20aggregate\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}]}\x27'],'notes':[a1_0xb5d83b(0x22e)],'markdown':[a1_0xb5d83b(0x229),'',a1_0xb5d83b(0x1e4)]['join']('\x0a')},{'code':a1_0xb5d83b(0x1d1),'category':a1_0xb5d83b(0x1da),'title':a1_0xb5d83b(0x1f4),'method':a1_0xb5d83b(0x1ee),'path':a1_0xb5d83b(0x204),'summary':a1_0xb5d83b(0x1fb),'whenToUse':'已经知道记录\x20id,需要按数据集读取单条业务数据时使用','pathParams':[{'name':'appCode','description':a1_0xb5d83b(0x1e9)},{'name':a1_0xb5d83b(0x205),'description':a1_0xb5d83b(0x211)}],'queryParams':[],'bodySchema':a1_0xb5d83b(0x1f3),'responseHighlights':[a1_0xb5d83b(0x1e7)],'examples':[a1_0xb5d83b(0x1ea)],'notes':[a1_0xb5d83b(0x1fa)],'markdown':a1_0xb5d83b(0x22a)},{'code':a1_0xb5d83b(0x1b9),'category':a1_0xb5d83b(0x1da),'title':a1_0xb5d83b(0x1bf),'method':a1_0xb5d83b(0x1ee),'path':a1_0xb5d83b(0x1f9),'summary':a1_0xb5d83b(0x203),'whenToUse':a1_0xb5d83b(0x223),'pathParams':[{'name':a1_0xb5d83b(0x22b),'description':a1_0xb5d83b(0x1e9)},{'name':a1_0xb5d83b(0x205),'description':a1_0xb5d83b(0x211)}],'queryParams':[],'bodySchema':a1_0xb5d83b(0x1c0),'responseHighlights':['Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result'],'examples':[a1_0xb5d83b(0x215)],'notes':[a1_0xb5d83b(0x207)],'markdown':'##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.'},{'code':a1_0xb5d83b(0x1f0),'category':'bf','title':a1_0xb5d83b(0x213),'method':a1_0xb5d83b(0x1dc),'path':'/api/endpoint/{appCode}/functions','summary':'获取应用下可调用的\x20BF\x20函数列表','whenToUse':a1_0xb5d83b(0x20e),'pathParams':[{'name':a1_0xb5d83b(0x22b),'description':a1_0xb5d83b(0x1e9)}],'queryParams':[],'bodySchema':'None','responseHighlights':['Returns\x20endpoint\x20functionName/id/description'],'examples':['lovrabet\x20bff\x20detail\x20--id\x20<scriptId>\x20--appcode\x20<appCode>'],'notes':[a1_0xb5d83b(0x209)],'markdown':a1_0xb5d83b(0x1e1)},{'code':'bf_execute','category':'bf','title':a1_0xb5d83b(0x1c4),'method':'POST','path':a1_0xb5d83b(0x1d4),'summary':a1_0xb5d83b(0x224),'whenToUse':a1_0xb5d83b(0x1c1),'pathParams':[{'name':a1_0xb5d83b(0x22b),'description':'Current\x20app\x20code'},{'name':a1_0xb5d83b(0x225),'description':'Endpoint\x20function\x20name'}],'queryParams':[],'bodySchema':a1_0xb5d83b(0x202),'responseHighlights':[a1_0xb5d83b(0x1e5)],'examples':[a1_0xb5d83b(0x212)],'notes':[a1_0xb5d83b(0x1f2)],'markdown':a1_0xb5d83b(0x206)},{'code':a1_0xb5d83b(0x1ca),'category':a1_0xb5d83b(0x1f5),'title':a1_0xb5d83b(0x214),'method':a1_0xb5d83b(0x1ee),'path':'/api/custom/executeSql','summary':a1_0xb5d83b(0x1e2),'whenToUse':a1_0xb5d83b(0x1df),'pathParams':[],'queryParams':[],'bodySchema':a1_0xb5d83b(0x1d8),'responseHighlights':[a1_0xb5d83b(0x1f8)],'examples':[a1_0xb5d83b(0x220)],'notes':[a1_0xb5d83b(0x1cf)],'markdown':a1_0xb5d83b(0x200)}];function entrySummary(_0x443d2d){const _0x2f4786=a1_0xb5d83b;return{'code':_0x443d2d[_0x2f4786(0x22c)],'category':_0x443d2d[_0x2f4786(0x22f)],'method':_0x443d2d[_0x2f4786(0x21c)],'path':_0x443d2d['path'],'summary':_0x443d2d[_0x2f4786(0x1ec)],'whenToUse':_0x443d2d[_0x2f4786(0x208)]};}export function listApiDocEntries(_0x2291b2={}){const _0x265407=a1_0xb5d83b,_0x3c19b9=String(_0x2291b2[_0x265407(0x22f)]||'')['trim'](),_0x29b874=String(_0x2291b2[_0x265407(0x1c9)]||'')[_0x265407(0x21d)]()['toLowerCase']();return DOCS[_0x265407(0x22d)](_0x419b39=>{const _0x2f5a89=_0x265407;if(_0x3c19b9&&_0x419b39['category']!==_0x3c19b9)return![];if(!_0x29b874)return!![];return[_0x419b39[_0x2f5a89(0x22c)],_0x419b39['category'],_0x419b39[_0x2f5a89(0x21c)],_0x419b39[_0x2f5a89(0x20f)],_0x419b39[_0x2f5a89(0x1ec)],_0x419b39[_0x2f5a89(0x208)],_0x419b39[_0x2f5a89(0x1ed)]]['join']('\x20')[_0x2f5a89(0x1cd)]()[_0x2f5a89(0x226)](_0x29b874);})[_0x265407(0x1de)](entrySummary);}export function getApiDocDetail(_0x109311){const _0x26b272=a1_0xb5d83b,_0x116c57=DOCS[_0x26b272(0x1c8)](_0x489da0=>_0x489da0[_0x26b272(0x22c)]===_0x109311);if(!_0x116c57)throw CliErrors[_0x26b272(0x1e3)](_0x26b272(0x1d7)+_0x109311);return{..._0x116c57};}const apiDocList={'service':a1_0xb5d83b(0x1f7),'command':'list','description':a1_0xb5d83b(0x1f1),'risk':a1_0xb5d83b(0x20b),'requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0x41f823){const _0x22215a=a1_0xb5d83b,_0x1bda94=listApiDocEntries({'category':_0x41f823[_0x22215a(0x1e0)](_0x22215a(0x22f)),'keyword':_0x41f823[_0x22215a(0x1e0)]('keyword')});return{'ok':!![],'data':{'total':_0x1bda94[_0x22215a(0x1d0)],'items':_0x1bda94}};}},apiDocDetail={'service':a1_0xb5d83b(0x1f7),'command':a1_0xb5d83b(0x21f),'description':'Show\x20runtime\x20API\x20documentation\x20by\x20code','risk':a1_0xb5d83b(0x20b),'requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0x38c86f){const _0x8a334f=a1_0xb5d83b;return{'ok':!![],'data':getApiDocDetail(_0x38c86f[_0x8a334f(0x1e0)](_0x8a334f(0x22c)))};}};export const apiDocDefinitions=[apiDocList,apiDocDetail];function a1_0x2e49(){const _0x51e6c3=['30UJbxwA','##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.','Dataset\x20detail','{\x22param\x22:\x22value\x22}','创建数据','/api/{appCode}/{datasetCode}/getOne','datasetCode','##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.','This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.','whenToUse','CLI\x20has\x20typed\x20`bff\x20detail`\x20and\x20`bff\x20exec`\x20commands\x20for\x20endpoint\x20scripts.','{\x22aggregate\x22:[{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','read','获取数据集详情','Aggregate\x20dataset\x20data','需要先确认当前应用有哪些可执行的\x20BF/ENDPOINT\x20函数,以及收敛可用\x20scriptName\x20时使用','path','3402gPLrJi','32-character\x20dataset\x20code','lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27','List\x20BF\x20endpoint\x20functions','Execute\x20custom\x20SQL','lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27','/api/{appCode}/{datasetCode}/aggregate','Filter\x20dataset\x20data','tableData\x20contains\x20records','operations\x20describes\x20runtime\x20APIs','Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset','paging.totalCount\x20gives\x20total\x20rows','method','trim','102037hzDRUi','detail','lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27','CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.','result\x20rows\x20contain\x20aggregate\x20aliases','需要向指定数据集新增一条业务数据时使用','执行指定\x20BF\x20函数','scriptName','includes','lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress','dataset_detail','##\x20Aggregate\x20dataset\x20data','##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.','appCode','code','filter','Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.','category','dataset_data_create','dataset_data_aggregate','##\x20Filter\x20dataset\x20data','20pCJiMv','Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.','需要携带\x20where、orderBy、分页等条件读取业务数据时使用','Create\x20dataset\x20record','{\x22fieldName\x22:\x22value\x22}','已经确认目标\x20BF\x20的\x20scriptName,且需要实际调用该\x20ENDPOINT\x20脚本完成业务操作时使用','条件过滤查询数据','15872HxCkXc','Execute\x20BF\x20endpoint\x20function','8570782sNYISz','1418438YowQiV','需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用','find','keyword','custom_sql_execute','Inspect\x20field\x20names\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.','2088685ovFJrn','toLowerCase','3679588ACiaLI','Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.','length','dataset_data_get_one','/api/dataset/get-dataset-list-by-app-code','{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','/api/endpoint/{appCode}/{scriptName}','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:5}\x27','/api/{appCode}/{datasetCode}/filter','API\x20doc\x20code\x20not\x20found:\x20','{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','join','dataset','42NWcORz','GET','{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','map','已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','str','##\x20List\x20BF\x20endpoint\x20functions\x0a\x0aDiscover\x20executable\x20endpoint\x20functions.','执行自定义\x20SQL','validation','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.','Returns\x20script\x20business\x20payload','需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','Returns\x20one\x20matching\x20business\x20record','string','Current\x20app\x20code','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27','4252731SXyfzW','summary','title','POST','聚合查询数据集数据','bf_function_list','List\x20available\x20runtime\x20API\x20documentation\x20entries','Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.','{\x22id\x22:123}','Get\x20one\x20dataset\x20record','custom_sql','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.','api-doc','Returns\x20SQL\x20execution\x20payload','/api/{appCode}/{datasetCode}/create','Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.','查询单条数据','None','paging\x20contains\x20pagination','API\x20doc\x20code,\x20for\x20example\x20dataset_list'];a1_0x2e49=function(){return _0x51e6c3;};return a1_0x2e49();}
@@ -1 +1 @@
1
- (function(_0x2cc691,_0x5c37da){const _0x2138b8=a2_0x4a15,_0x283f2b=_0x2cc691();while(!![]){try{const _0x4ec949=-parseInt(_0x2138b8(0x97))/0x1+-parseInt(_0x2138b8(0xad))/0x2*(parseInt(_0x2138b8(0x9f))/0x3)+-parseInt(_0x2138b8(0xa2))/0x4*(parseInt(_0x2138b8(0xae))/0x5)+parseInt(_0x2138b8(0xa6))/0x6+parseInt(_0x2138b8(0x98))/0x7*(-parseInt(_0x2138b8(0xa5))/0x8)+parseInt(_0x2138b8(0xa9))/0x9+parseInt(_0x2138b8(0x9e))/0xa*(parseInt(_0x2138b8(0xa3))/0xb);if(_0x4ec949===_0x5c37da)break;else _0x283f2b['push'](_0x283f2b['shift']());}catch(_0x480fc8){_0x283f2b['push'](_0x283f2b['shift']());}}}(a2_0x2fb6,0x56cf6));import{createHash}from'node:crypto';function a2_0x4a15(_0x118307,_0x747788){_0x118307=_0x118307-0x94;const _0x2fb664=a2_0x2fb6();let _0x4a15d4=_0x2fb664[_0x118307];return _0x4a15d4;}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';export function fingerprintAccessKey(_0x74b57f){const _0x5ae189=a2_0x4a15,_0xdc91a5=_0x74b57f[_0x5ae189(0xaa)](),_0x534c97=_0xdc91a5[_0x5ae189(0x9c)](-0x6)||_0x5ae189(0x94),_0x4312d7=createHash(_0x5ae189(0xa8))[_0x5ae189(0x9d)](_0xdc91a5)[_0x5ae189(0xac)](_0x5ae189(0xa0))[_0x5ae189(0x9c)](0x0,0xc);return _0x5ae189(0x99)+_0x534c97+'_'+_0x4312d7;}export function getAppCacheFilePath(_0x17b1c6,_0x564349){const _0x5a6163=a2_0x4a15;return resolve(homedir(),PRODUCT_CONFIG['homeDirName'],'cache',_0x17b1c6,fingerprintAccessKey(_0x564349),_0x5a6163(0x96));}export function readCachedAppList(_0x35704b,_0x5eb9b6){const _0x3ce2a2=a2_0x4a15;if(!_0x5eb9b6?.[_0x3ce2a2(0xaa)]())return null;const _0x3bf04e=getAppCacheFilePath(_0x35704b,_0x5eb9b6);if(!existsSync(_0x3bf04e))return null;try{const _0x1cfa4b=readFileSync(_0x3bf04e,_0x3ce2a2(0x95));if(!_0x1cfa4b[_0x3ce2a2(0xaa)]())return null;const _0x4790fa=JSON['parse'](_0x1cfa4b);if(!Array['isArray'](_0x4790fa[_0x3ce2a2(0xa1)]))return null;return _0x4790fa;}catch{return null;}}export function writeCachedAppList(_0xc90c9d,_0x5db8ae,_0x39161d){const _0x516615=a2_0x4a15,_0x46f001=getAppCacheFilePath(_0xc90c9d,_0x5db8ae),_0x1a0caf=dirname(_0x46f001);!existsSync(_0x1a0caf)&&mkdirSync(_0x1a0caf,{'recursive':!![]});const _0x377070=_0x46f001+_0x516615(0x9a);try{writeFileSync(_0x377070,JSON[_0x516615(0x9b)](_0x39161d,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x377070,_0x46f001);}catch(_0x117da2){if(_0x117da2['code']===_0x516615(0xaf)||_0x117da2['code']==='EXDEV'||_0x117da2[_0x516615(0xa4)]==='EACCES'){writeFileSync(_0x46f001,JSON[_0x516615(0x9b)](_0x39161d,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0x377070);}catch{}}else throw _0x117da2;}}catch(_0x4c1485){try{unlinkSync(_0x377070);}catch{}throw _0x4c1485;}return _0x46f001;}function a2_0x2fb6(){const _0x5aa413=['code','16OlgtqC','760338LxobTa','find','sha256','2610666WyGfBS','trim','appCode','digest','235590efhQmY','15CUoXGV','EPERM','unknown','utf8','my-apps.json','241945cJsOCv','1350727LQFvco','ak_','.tmp','stringify','slice','update','17076610YMOajm','15bcFvPm','hex','items','736056MhrQDx','11LzPfKv'];a2_0x2fb6=function(){return _0x5aa413;};return a2_0x2fb6();}export function resolveCachedAppCode(_0x256aa7,_0x2a48c0,_0x58a06f){const _0x2728fc=a2_0x4a15;if(!_0x256aa7)return undefined;const _0x249745=readCachedAppList(_0x2a48c0,_0x58a06f),_0xe426b1=_0x249745?.[_0x2728fc(0xa1)][_0x2728fc(0xa7)](_0x354463=>_0x354463['appName']===_0x256aa7);return _0xe426b1?.[_0x2728fc(0xab)]?.[_0x2728fc(0xaa)]()||undefined;}
1
+ (function(_0x500e52,_0x552aed){const _0x358e63=a2_0x476a,_0xdb5490=_0x500e52();while(!![]){try{const _0x17bad5=-parseInt(_0x358e63(0xfb))/0x1+parseInt(_0x358e63(0x109))/0x2*(parseInt(_0x358e63(0xfe))/0x3)+-parseInt(_0x358e63(0x108))/0x4+parseInt(_0x358e63(0x110))/0x5+-parseInt(_0x358e63(0x103))/0x6+parseInt(_0x358e63(0x111))/0x7*(parseInt(_0x358e63(0x10a))/0x8)+parseInt(_0x358e63(0x107))/0x9;if(_0x17bad5===_0x552aed)break;else _0xdb5490['push'](_0xdb5490['shift']());}catch(_0x45b89a){_0xdb5490['push'](_0xdb5490['shift']());}}}(a2_0x4cd8,0x93170));import{createHash}from'node:crypto';function a2_0x4cd8(){const _0x25030c=['4666505mFjpqx','5271VIEeBU','find','my-apps.json','utf8','.tmp','EPERM','287687qhdPOq','slice','unknown','700251ujVCZL','parse','hex','update','homeDirName','3400272xCDxbX','EACCES','appCode','appName','3572730jKYbIy','2189204dPGxxU','4GnotED','2200CDkBTY','code','digest','stringify','items','trim'];a2_0x4cd8=function(){return _0x25030c;};return a2_0x4cd8();}import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';import{dirname,resolve}from'node:path';function a2_0x476a(_0x51cec1,_0x4383ce){_0x51cec1=_0x51cec1-0xfb;const _0x4cd865=a2_0x4cd8();let _0x476a60=_0x4cd865[_0x51cec1];return _0x476a60;}import{PRODUCT_CONFIG}from'../../constant/product.js';export function fingerprintAccessKey(_0x184985){const _0x90c290=a2_0x476a,_0x1bd325=_0x184985['trim'](),_0x4d2573=_0x1bd325[_0x90c290(0xfc)](-0x6)||_0x90c290(0xfd),_0x342f22=createHash('sha256')[_0x90c290(0x101)](_0x1bd325)[_0x90c290(0x10c)](_0x90c290(0x100))[_0x90c290(0xfc)](0x0,0xc);return'ak_'+_0x4d2573+'_'+_0x342f22;}export function getAppCacheFilePath(_0x1d36d1,_0x39c18b){const _0x291434=a2_0x476a;return resolve(homedir(),PRODUCT_CONFIG[_0x291434(0x102)],'cache',_0x1d36d1,fingerprintAccessKey(_0x39c18b),_0x291434(0x113));}export function readCachedAppList(_0x4650b4,_0x2841d9){const _0xd4345b=a2_0x476a;if(!_0x2841d9?.[_0xd4345b(0x10f)]())return null;const _0x268294=getAppCacheFilePath(_0x4650b4,_0x2841d9);if(!existsSync(_0x268294))return null;try{const _0x21b15e=readFileSync(_0x268294,_0xd4345b(0x114));if(!_0x21b15e[_0xd4345b(0x10f)]())return null;const _0x1b21e7=JSON[_0xd4345b(0xff)](_0x21b15e);if(!Array['isArray'](_0x1b21e7[_0xd4345b(0x10e)]))return null;return _0x1b21e7;}catch{return null;}}export function writeCachedAppList(_0x589107,_0x52d8f8,_0x35b41a){const _0x3cb0e9=a2_0x476a,_0x920779=getAppCacheFilePath(_0x589107,_0x52d8f8),_0x9d7dfc=dirname(_0x920779);!existsSync(_0x9d7dfc)&&mkdirSync(_0x9d7dfc,{'recursive':!![]});const _0x3030bd=_0x920779+_0x3cb0e9(0x115);try{writeFileSync(_0x3030bd,JSON[_0x3cb0e9(0x10d)](_0x35b41a,null,0x2)+'\x0a',{'encoding':_0x3cb0e9(0x114),'mode':0x180});try{renameSync(_0x3030bd,_0x920779);}catch(_0x5a73df){if(_0x5a73df[_0x3cb0e9(0x10b)]===_0x3cb0e9(0x116)||_0x5a73df['code']==='EXDEV'||_0x5a73df['code']===_0x3cb0e9(0x104)){writeFileSync(_0x920779,JSON[_0x3cb0e9(0x10d)](_0x35b41a,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0x3030bd);}catch{}}else throw _0x5a73df;}}catch(_0x35b71e){try{unlinkSync(_0x3030bd);}catch{}throw _0x35b71e;}return _0x920779;}export function resolveCachedAppCode(_0x161afb,_0x187f5e,_0x1e930d){const _0x4bdcb2=a2_0x476a;if(!_0x161afb)return undefined;const _0x3d0caf=readCachedAppList(_0x187f5e,_0x1e930d),_0x426d7b=_0x3d0caf?.[_0x4bdcb2(0x10e)][_0x4bdcb2(0x112)](_0x392084=>_0x392084[_0x4bdcb2(0x106)]===_0x161afb);return _0x426d7b?.[_0x4bdcb2(0x105)]?.['trim']()||undefined;}
@@ -1 +1 @@
1
- const a3_0x155699=a3_0x2414;(function(_0x57fb70,_0x418e98){const _0x32d465=a3_0x2414,_0x12153c=_0x57fb70();while(!![]){try{const _0x319559=parseInt(_0x32d465(0xe2))/0x1+parseInt(_0x32d465(0xf4))/0x2*(-parseInt(_0x32d465(0xb3))/0x3)+parseInt(_0x32d465(0xf3))/0x4*(parseInt(_0x32d465(0xac))/0x5)+-parseInt(_0x32d465(0xc2))/0x6+-parseInt(_0x32d465(0xd1))/0x7+parseInt(_0x32d465(0xbd))/0x8*(parseInt(_0x32d465(0xd6))/0x9)+parseInt(_0x32d465(0xd0))/0xa;if(_0x319559===_0x418e98)break;else _0x12153c['push'](_0x12153c['shift']());}catch(_0x1e935e){_0x12153c['push'](_0x12153c['shift']());}}}(a3_0x3fb7,0xf0dae));import{CliErrors}from'../../errors.js';import{PRODUCT_CONFIG}from'../../constant/product.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';function a3_0x3fb7(){const _0x2a4a68=['1022886yBwVdP','accessKey','filter','Set\x20the\x20fallback\x20app\x20candidate','Missing\x20app\x20name.','app','Remote\x20app\x20name\x20to\x20activate','init','nonInteractive','../../commands/app/remote-source.js','\x20config\x20file','items','1003090wXduWj','appName','envName','\x22\x20not\x20found.','args','Default\x20app\x20candidate\x20set\x20to\x20\x22','string','../../commands/app/cache.js','entries','Filter\x20by\x20environment\x20(default:\x20current\x20env)','Use\x20global\x20config\x20scope','\x20cached\x20app(s)\x20for\x20env=\x22','from','globalPath','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','global','.appcode\x20to\x20.lovrabet.json.','192876rwZapU','12942kDsIlN','find','length','../../context.js','i18nInfo','Available\x20remote\x20apps:\x20','str','App\x20\x22','langs','validation','pull','175fFjErg','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','import','cache','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','defaultApp','fetchedAt','597kuZRbr','mergedCli','Refreshed\x20app\x20cache\x20with\x20','Usage:\x20','\x20app(s)\x20for\x20env=\x22','write','\x20app\x20use\x20<name>\x20[--global]','Use\x20`','join','trim','136ZMbkUt','remote','env','appCode','appcode','7595976SmlePS','source','bool','Read\x20from\x20local\x20cache\x20only','projectPath','cachePath','config','enableI18n','map','local','appPublishStatus','read','name','no-cache','5515380xDuNaG','11439008kpcfNH','isArray','No\x20cached\x20apps\x20found.','boolean','type'];a3_0x3fb7=function(){return _0x2a4a68;};return a3_0x3fb7();}import{CLI_BIN_NAME,readConfig,writeConfig,scopeLabel,enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';function a3_0x2414(_0x559332,_0x4e30bf){_0x559332=_0x559332-0xab;const _0x3fb7a2=a3_0x3fb7();let _0x2414b1=_0x3fb7a2[_0x559332];return _0x2414b1;}const GLOBAL_FLAG={'name':a3_0x155699(0xf1),'type':a3_0x155699(0xd4),'description':a3_0x155699(0xec),'default':![]};function collectFlags(_0x225ee1,_0x459a29){const _0x453adb=a3_0x155699,_0x267ac5={};for(const _0xf60c0b of _0x459a29){const _0x1435c0=_0xf60c0b[_0x453adb(0xd5)]===_0x453adb(0xd4)?_0x225ee1[_0x453adb(0xc4)](_0xf60c0b[_0x453adb(0xce)]):_0x225ee1[_0x453adb(0xfa)](_0xf60c0b['name']);if(_0x1435c0!==''&&_0x1435c0!==![])_0x267ac5[_0xf60c0b[_0x453adb(0xce)]]=_0x1435c0;}if(_0x225ee1['nonInteractive'])_0x267ac5[_0x453adb(0xde)]=!![];return _0x267ac5;}function normalizeLanguages(_0x267344){const _0x1f857f=a3_0x155699;if(!Array[_0x1f857f(0xd2)](_0x267344))return[];return _0x267344[_0x1f857f(0xd8)](_0x58f5da=>typeof _0x58f5da==='string')['map'](_0x583571=>_0x583571[_0x1f857f(0xbc)]())[_0x1f857f(0xd8)](Boolean);}function buildRemoteAppI18nFields(_0x14145c){const _0x1c1f45=a3_0x155699,_0x5e3f32=normalizeLanguages(_0x14145c[_0x1c1f45(0xf8)]?.[_0x1c1f45(0xfc)]);return{'enableI18n':typeof _0x14145c['enableI18n']===_0x1c1f45(0xd4)?_0x14145c[_0x1c1f45(0xc9)]:null,'languages':_0x5e3f32,'i18nInfo':_0x14145c['i18nInfo']?{..._0x14145c[_0x1c1f45(0xf8)],'langs':_0x5e3f32[_0x1c1f45(0xf6)]?_0x5e3f32:null}:null};}const initDef={'service':a3_0x155699(0xdb),'command':a3_0x155699(0xdd),'description':'Initialize\x20'+PRODUCT_CONFIG['newConfigFileName']+a3_0x155699(0xe0),'risk':a3_0x155699(0xb8),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x3456e3){return await runInit(collectFlags(_0x3456e3,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a3_0x155699(0xdb),'command':'list','description':a3_0x155699(0xad),'risk':a3_0x155699(0xcd),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a3_0x155699(0xbf),'type':a3_0x155699(0xe8),'description':a3_0x155699(0xeb),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x155699(0xcb),'type':a3_0x155699(0xd4),'description':'Read\x20app\x20list\x20from\x20local\x20cache\x20only','default':![]},{'name':a3_0x155699(0xcf),'type':a3_0x155699(0xd4),'description':'Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','default':![]}],async 'execute'(_0xad0316){const _0xe7ff76=a3_0x155699,_0x20014f=_0xad0316['str'](_0xe7ff76(0xbf))||_0xad0316['envName']||getEnv()||'production',_0x349870=_0xad0316[_0xe7ff76(0xc4)](_0xe7ff76(0xcb)),_0x2d37ac=_0xad0316[_0xe7ff76(0xc4)]('no-cache'),{readRawConfigWithLayers:_0x29915b,resolveDefaultAppSource:_0x3624a6,getLocalAppAliases:_0x1cac04}=await import('../../context.js'),{getRemoteAppList:_0x51b7aa}=await import(_0xe7ff76(0xdf)),{config:_0x303e7e,layers:_0x4b079f}=_0x29915b(),_0x39093c=_0x3624a6(_0x4b079f),{defaultApp:_0x420b71}=_0x303e7e,_0x2c83cd=await _0x51b7aa({'env':_0x20014f,'accessKey':_0xad0316[_0xe7ff76(0xd7)],'localOnly':_0x349870,'noCache':_0x2d37ac}),_0x21e8f9=_0x2c83cd['items'][_0xe7ff76(0xca)](_0x39a032=>{const _0x592d52=_0xe7ff76;return{'name':_0x39a032[_0x592d52(0xe3)],'appcode':_0x39a032[_0x592d52(0xc0)],'named':!![],'definedIn':_0x592d52(0xbe),'isDefault':_0x39a032[_0x592d52(0xe3)]===_0x420b71,...buildAppProfileListFields(_0x20014f),...buildRemoteAppI18nFields(_0x39a032),'source':_0x2c83cd['source'],'owner':_0x39a032['appOwnerName']??null,'status':_0x39a032[_0x592d52(0xcc)]??null,'cachedAt':_0x2c83cd['fetchedAt']};}),_0x5d68e6=_0x1cac04(_0x303e7e);let _0x51adb5=0x0;for(const [_0x346e71,_0x378998]of Object[_0xe7ff76(0xea)](_0x5d68e6)){const _0x6ca210=typeof _0x378998['appcode']===_0xe7ff76(0xe8)?_0x378998[_0xe7ff76(0xc1)][_0xe7ff76(0xbc)]():'';if(!_0x6ca210)continue;_0x51adb5+=0x1,_0x21e8f9['push']({'name':_0x346e71,'appcode':_0x6ca210,'named':!![],'definedIn':_0xe7ff76(0xcb),'isDefault':_0x346e71===_0x420b71,...buildAppProfileListFields(_0x20014f),'source':_0xe7ff76(0xc8),'owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x21e8f9,_0xad0316[_0xe7ff76(0xb4)]);if(_0x21e8f9[_0xe7ff76(0xf6)]===0x0)return{'ok':!![],'data':[],'message':_0x2c83cd[_0xe7ff76(0xc3)]===_0xe7ff76(0xaf)?_0xe7ff76(0xd3):'No\x20apps\x20found\x20on\x20the\x20platform.'};const _0x68ef80=_0x21e8f9[_0xe7ff76(0xf5)](_0x20c490=>_0x20c490['isCurrent']===!![]),_0x325aad=_0x420b71??_0x68ef80?.[_0xe7ff76(0xce)]??null,_0x3a1500={'env':_0x20014f,'source':_0x2c83cd[_0xe7ff76(0xc3)],'fetchedAt':_0x2c83cd[_0xe7ff76(0xb2)],'cachePath':_0x2c83cd['cachePath'],'globalPath':_0x4b079f[_0xe7ff76(0xef)]??null,'projectPath':_0x4b079f[_0xe7ff76(0xc6)]??null,'defaultApp':_0x325aad,'defaultAppSource':_0x420b71!=null?_0x39093c:null,'localAliasCount':_0x51adb5};return{'ok':!![],'data':{'items':_0x21e8f9,'meta':_0x3a1500}};}},pullDef={'service':'app','command':a3_0x155699(0xab),'description':'Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','risk':a3_0x155699(0xb8),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a3_0x155699(0xbf),'type':a3_0x155699(0xe8),'description':'Target\x20environment\x20(default:\x20current\x20env)','enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x155699(0xcb),'type':a3_0x155699(0xd4),'description':a3_0x155699(0xc5),'default':![]},{'name':a3_0x155699(0xcf),'type':'boolean','description':a3_0x155699(0xb0),'default':![]}],async 'execute'(_0x18083f){const _0x4d4729=a3_0x155699,_0x2db484=_0x18083f[_0x4d4729(0xfa)](_0x4d4729(0xbf))||_0x18083f[_0x4d4729(0xe4)]||getEnv()||'production',_0x3d1170=_0x18083f[_0x4d4729(0xc4)](_0x4d4729(0xcb)),_0x22fbe3=_0x18083f[_0x4d4729(0xc4)](_0x4d4729(0xcf)),{getRemoteAppList:_0x3b4e2a}=await import(_0x4d4729(0xdf)),_0x2f7d81=await _0x3b4e2a({'env':_0x2db484,'accessKey':_0x18083f[_0x4d4729(0xd7)],'localOnly':_0x3d1170,'noCache':_0x22fbe3});return{'ok':!![],'data':{'total':_0x2f7d81[_0x4d4729(0xe1)][_0x4d4729(0xf6)],'env':_0x2db484,'source':_0x2f7d81[_0x4d4729(0xc3)],'fetchedAt':_0x2f7d81['fetchedAt'],'cachePath':_0x2f7d81[_0x4d4729(0xc7)]},'message':_0x2f7d81['source']===_0x4d4729(0xaf)?'Loaded\x20'+_0x2f7d81['items'][_0x4d4729(0xf6)]+_0x4d4729(0xed)+_0x2db484+'\x22.':_0x4d4729(0xb5)+_0x2f7d81[_0x4d4729(0xe1)][_0x4d4729(0xf6)]+_0x4d4729(0xb7)+_0x2db484+'\x22.'};}},useDef={'service':a3_0x155699(0xdb),'command':'use','description':a3_0x155699(0xd9),'risk':a3_0x155699(0xb8),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a3_0x155699(0xce),'description':a3_0x155699(0xdc),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x56af4f){const _0xb0acc8=a3_0x155699;if(!_0x56af4f[_0xb0acc8(0xe6)][0x0])throw CliErrors[_0xb0acc8(0xfd)](_0xb0acc8(0xda),_0xb0acc8(0xb6)+CLI_BIN_NAME+_0xb0acc8(0xb9));},async 'execute'(_0x55c5ba){const _0x517ee6=a3_0x155699,_0x24b4c3=_0x55c5ba['args'][0x0];if(!_0x24b4c3)throw CliErrors[_0x517ee6(0xfd)](_0x517ee6(0xda),_0x517ee6(0xb6)+CLI_BIN_NAME+_0x517ee6(0xb9));const {buildConfigFromFlags:_0x2b4c2c,resolveLocalAppAliasCode:_0x240c42}=await import(_0x517ee6(0xf7)),{readCachedAppList:_0x53ca09}=await import(_0x517ee6(0xe9)),_0x1b8ef5=_0x55c5ba['str'](_0x517ee6(0xbf)),_0x3f3774=_0x2b4c2c(_0x1b8ef5?{'env':_0x1b8ef5}:{}),_0x106faa=_0x53ca09(_0x3f3774[_0x517ee6(0xbf)],_0x3f3774['accessKey']),_0x1cd834=_0x106faa?.[_0x517ee6(0xe1)]['find'](_0x59e27a=>_0x59e27a[_0x517ee6(0xe3)]===_0x24b4c3),_0x40f9ea=_0x240c42(_0x3f3774['raw']??{},_0x24b4c3);if(!_0x1cd834&&!_0x40f9ea&&_0x3f3774[_0x517ee6(0xb1)]!==_0x24b4c3){const _0x802015=[..._0x106faa?.[_0x517ee6(0xe1)][_0x517ee6(0xca)](_0x583b1a=>_0x583b1a['appName'])??[]],_0x4145e3=_0x802015[_0x517ee6(0xf6)]===0x0?_0x517ee6(0xba)+CLI_BIN_NAME+'\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.'+_0x24b4c3+_0x517ee6(0xf2):_0x517ee6(0xf9)+Array[_0x517ee6(0xee)](new Set(_0x802015))[_0x517ee6(0xbb)](',\x20')+'.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.';throw CliErrors[_0x517ee6(0xfd)](_0x517ee6(0xfb)+_0x24b4c3+_0x517ee6(0xe5),_0x4145e3);}const _0x46570c=_0x55c5ba['bool'](_0x517ee6(0xf1));let _0x4dcb2d;if(_0x46570c)_0x4dcb2d={'global':!![]};else{const {isInProject:_0x8a72ef}=await import(_0x517ee6(0xf7)),_0x2418df=_0x8a72ef();_0x4dcb2d=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':'project-default','inProject':_0x2418df}));}const _0x479d89=readConfig(_0x4dcb2d);return _0x479d89[_0x517ee6(0xb1)]=_0x24b4c3,writeConfig(_0x479d89,_0x4dcb2d),{'ok':!![],'message':_0x517ee6(0xe7)+_0x24b4c3+'\x22'+scopeLabel(_0x4dcb2d)+'.'};}},importDef={'service':a3_0x155699(0xdb),'command':a3_0x155699(0xae),'description':a3_0x155699(0xf0),'risk':a3_0x155699(0xb8),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x584796){return await runInitImport(collectFlags(_0x584796,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
1
+ const a3_0x4b1f40=a3_0x3a5b;(function(_0x390a8a,_0x59ea39){const _0x105b6d=a3_0x3a5b,_0x2d8a1b=_0x390a8a();while(!![]){try{const _0x14b7a1=-parseInt(_0x105b6d(0xbe))/0x1+-parseInt(_0x105b6d(0xd9))/0x2+-parseInt(_0x105b6d(0x95))/0x3+-parseInt(_0x105b6d(0xaf))/0x4+parseInt(_0x105b6d(0xa6))/0x5+parseInt(_0x105b6d(0xb1))/0x6*(-parseInt(_0x105b6d(0x98))/0x7)+-parseInt(_0x105b6d(0xd3))/0x8*(-parseInt(_0x105b6d(0xd5))/0x9);if(_0x14b7a1===_0x59ea39)break;else _0x2d8a1b['push'](_0x2d8a1b['shift']());}catch(_0x40e804){_0x2d8a1b['push'](_0x2d8a1b['shift']());}}}(a3_0x20f4,0x99673));import{CliErrors}from'../../errors.js';import{PRODUCT_CONFIG}from'../../constant/product.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';function a3_0x20f4(){const _0x391062=['Missing\x20app\x20name.','init','local','config','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','nonInteractive','../../context.js','1173676LsgyMV','Usage:\x20','60366mSiITx','fetchedAt','pull','Filter\x20by\x20environment\x20(default:\x20current\x20env)','Target\x20environment\x20(default:\x20current\x20env)','write','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','validation','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','../../commands/app/remote-source.js','items','\x20cached\x20app(s)\x20for\x20env=\x22','Loaded\x20','523934WDTkmE','name','read','\x22\x20not\x20found.','Read\x20from\x20local\x20cache\x20only','Remote\x20app\x20name\x20to\x20activate','cache','Use\x20`','projectPath','i18nInfo','.appcode\x20to\x20.lovrabet.json.','source','args','project-default','defaultApp','filter','enableI18n','str','newConfigFileName','map','Available\x20remote\x20apps:\x20','1016OzjSJY','app','265905xxObjb','globalPath','bool','mergedCli','1984594YYApMk','entries','appcode','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','Initialize\x20','\x20app\x20use\x20<name>\x20[--global]','accessKey','env','global','No\x20cached\x20apps\x20found.','from','production','2964918YXQWwE','boolean','.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.','280PkFgSa','Set\x20the\x20fallback\x20app\x20candidate','Default\x20app\x20candidate\x20set\x20to\x20\x22','raw','isArray','envName','\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.','appName','no-cache','Use\x20global\x20config\x20scope','remote','\x20config\x20file','string','Read\x20app\x20list\x20from\x20local\x20cache\x20only','382600LgvKpP','length'];a3_0x20f4=function(){return _0x391062;};return a3_0x20f4();}import{CLI_BIN_NAME,readConfig,writeConfig,scopeLabel,enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';const GLOBAL_FLAG={'name':'global','type':a3_0x4b1f40(0x96),'description':a3_0x4b1f40(0xa1),'default':![]};function collectFlags(_0x38e716,_0x543d4e){const _0x217b58=a3_0x4b1f40,_0x148ef3={};for(const _0x3d355d of _0x543d4e){const _0x374bb6=_0x3d355d['type']===_0x217b58(0x96)?_0x38e716[_0x217b58(0xd7)](_0x3d355d[_0x217b58(0xbf)]):_0x38e716['str'](_0x3d355d[_0x217b58(0xbf)]);if(_0x374bb6!==''&&_0x374bb6!==![])_0x148ef3[_0x3d355d['name']]=_0x374bb6;}if(_0x38e716[_0x217b58(0xad)])_0x148ef3[_0x217b58(0xad)]=!![];return _0x148ef3;}function normalizeLanguages(_0xbcf9ea){const _0x29c76d=a3_0x4b1f40;if(!Array[_0x29c76d(0x9c)](_0xbcf9ea))return[];return _0xbcf9ea[_0x29c76d(0xcd)](_0x41e846=>typeof _0x41e846===_0x29c76d(0xa4))[_0x29c76d(0xd1)](_0x381c54=>_0x381c54['trim']())[_0x29c76d(0xcd)](Boolean);}function buildRemoteAppI18nFields(_0x551adb){const _0x20c145=a3_0x4b1f40,_0x2c1c75=normalizeLanguages(_0x551adb[_0x20c145(0xc7)]?.['langs']);return{'enableI18n':typeof _0x551adb[_0x20c145(0xce)]===_0x20c145(0x96)?_0x551adb[_0x20c145(0xce)]:null,'languages':_0x2c1c75,'i18nInfo':_0x551adb[_0x20c145(0xc7)]?{..._0x551adb['i18nInfo'],'langs':_0x2c1c75['length']?_0x2c1c75:null}:null};}const initDef={'service':'app','command':a3_0x4b1f40(0xa9),'description':a3_0x4b1f40(0x8d)+PRODUCT_CONFIG[a3_0x4b1f40(0xd0)]+a3_0x4b1f40(0xa3),'risk':a3_0x4b1f40(0xb6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x1305a8){return await runInit(collectFlags(_0x1305a8,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a3_0x4b1f40(0xd4),'command':'list','description':a3_0x4b1f40(0xb7),'risk':a3_0x4b1f40(0xc0),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a3_0x4b1f40(0x90),'type':a3_0x4b1f40(0xa4),'description':a3_0x4b1f40(0xb4),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x4b1f40(0xaa),'type':a3_0x4b1f40(0x96),'description':a3_0x4b1f40(0xa5),'default':![]},{'name':a3_0x4b1f40(0xa0),'type':'boolean','description':a3_0x4b1f40(0xac),'default':![]}],async 'execute'(_0x3923ab){const _0x34985f=a3_0x4b1f40,_0x46dd7e=_0x3923ab[_0x34985f(0xcf)]('env')||_0x3923ab[_0x34985f(0x9d)]||getEnv()||_0x34985f(0x94),_0x545775=_0x3923ab['bool'](_0x34985f(0xaa)),_0x16ff7e=_0x3923ab[_0x34985f(0xd7)](_0x34985f(0xa0)),{readRawConfigWithLayers:_0x2f4438,resolveDefaultAppSource:_0x3a9790,getLocalAppAliases:_0x5f2d79}=await import(_0x34985f(0xae)),{getRemoteAppList:_0x43fc40}=await import('../../commands/app/remote-source.js'),{config:_0x406c98,layers:_0x3c86bd}=_0x2f4438(),_0x263288=_0x3a9790(_0x3c86bd),{defaultApp:_0x5000ce}=_0x406c98,_0x4d2502=await _0x43fc40({'env':_0x46dd7e,'accessKey':_0x3923ab[_0x34985f(0x8f)],'localOnly':_0x545775,'noCache':_0x16ff7e}),_0x4f0cd6=_0x4d2502[_0x34985f(0xbb)]['map'](_0x58293f=>{const _0x31f94c=_0x34985f;return{'name':_0x58293f['appName'],'appcode':_0x58293f['appCode'],'named':!![],'definedIn':_0x31f94c(0xa2),'isDefault':_0x58293f[_0x31f94c(0x9f)]===_0x5000ce,...buildAppProfileListFields(_0x46dd7e),...buildRemoteAppI18nFields(_0x58293f),'source':_0x4d2502[_0x31f94c(0xc9)],'owner':_0x58293f['appOwnerName']??null,'status':_0x58293f['appPublishStatus']??null,'cachedAt':_0x4d2502['fetchedAt']};}),_0x592dc6=_0x5f2d79(_0x406c98);let _0x1fa8a4=0x0;for(const [_0x50b1f6,_0x4ceaea]of Object[_0x34985f(0xda)](_0x592dc6)){const _0x1d3204=typeof _0x4ceaea[_0x34985f(0xdb)]==='string'?_0x4ceaea[_0x34985f(0xdb)]['trim']():'';if(!_0x1d3204)continue;_0x1fa8a4+=0x1,_0x4f0cd6['push']({'name':_0x50b1f6,'appcode':_0x1d3204,'named':!![],'definedIn':'local','isDefault':_0x50b1f6===_0x5000ce,...buildAppProfileListFields(_0x46dd7e),'source':_0x34985f(0xab),'owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x4f0cd6,_0x3923ab[_0x34985f(0xd8)]);if(_0x4f0cd6[_0x34985f(0xa7)]===0x0)return{'ok':!![],'data':[],'message':_0x4d2502[_0x34985f(0xc9)]==='cache'?_0x34985f(0x92):'No\x20apps\x20found\x20on\x20the\x20platform.'};const _0x14b1ee=_0x4f0cd6['find'](_0x2c4a82=>_0x2c4a82['isCurrent']===!![]),_0x3e65bf=_0x5000ce??_0x14b1ee?.[_0x34985f(0xbf)]??null,_0x3bce03={'env':_0x46dd7e,'source':_0x4d2502[_0x34985f(0xc9)],'fetchedAt':_0x4d2502[_0x34985f(0xb2)],'cachePath':_0x4d2502['cachePath'],'globalPath':_0x3c86bd[_0x34985f(0xd6)]??null,'projectPath':_0x3c86bd[_0x34985f(0xc6)]??null,'defaultApp':_0x3e65bf,'defaultAppSource':_0x5000ce!=null?_0x263288:null,'localAliasCount':_0x1fa8a4};return{'ok':!![],'data':{'items':_0x4f0cd6,'meta':_0x3bce03}};}},pullDef={'service':a3_0x4b1f40(0xd4),'command':a3_0x4b1f40(0xb3),'description':a3_0x4b1f40(0xb9),'risk':a3_0x4b1f40(0xb6),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a3_0x4b1f40(0x90),'type':a3_0x4b1f40(0xa4),'description':a3_0x4b1f40(0xb5),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x4b1f40(0xaa),'type':a3_0x4b1f40(0x96),'description':a3_0x4b1f40(0xc2),'default':![]},{'name':a3_0x4b1f40(0xa0),'type':'boolean','description':'Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','default':![]}],async 'execute'(_0x10d5be){const _0x2e2800=a3_0x4b1f40,_0x4f5a8e=_0x10d5be[_0x2e2800(0xcf)]('env')||_0x10d5be[_0x2e2800(0x9d)]||getEnv()||_0x2e2800(0x94),_0xeaeb0b=_0x10d5be[_0x2e2800(0xd7)](_0x2e2800(0xaa)),_0x5931f3=_0x10d5be[_0x2e2800(0xd7)](_0x2e2800(0xa0)),{getRemoteAppList:_0x2b98c7}=await import(_0x2e2800(0xba)),_0x380cf0=await _0x2b98c7({'env':_0x4f5a8e,'accessKey':_0x10d5be[_0x2e2800(0x8f)],'localOnly':_0xeaeb0b,'noCache':_0x5931f3});return{'ok':!![],'data':{'total':_0x380cf0[_0x2e2800(0xbb)][_0x2e2800(0xa7)],'env':_0x4f5a8e,'source':_0x380cf0['source'],'fetchedAt':_0x380cf0['fetchedAt'],'cachePath':_0x380cf0['cachePath']},'message':_0x380cf0[_0x2e2800(0xc9)]===_0x2e2800(0xc4)?_0x2e2800(0xbd)+_0x380cf0['items'][_0x2e2800(0xa7)]+_0x2e2800(0xbc)+_0x4f5a8e+'\x22.':'Refreshed\x20app\x20cache\x20with\x20'+_0x380cf0[_0x2e2800(0xbb)][_0x2e2800(0xa7)]+'\x20app(s)\x20for\x20env=\x22'+_0x4f5a8e+'\x22.'};}},useDef={'service':a3_0x4b1f40(0xd4),'command':'use','description':a3_0x4b1f40(0x99),'risk':a3_0x4b1f40(0xb6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a3_0x4b1f40(0xbf),'description':a3_0x4b1f40(0xc3),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x3a353a){const _0x5156da=a3_0x4b1f40;if(!_0x3a353a['args'][0x0])throw CliErrors[_0x5156da(0xb8)](_0x5156da(0xa8),_0x5156da(0xb0)+CLI_BIN_NAME+_0x5156da(0x8e));},async 'execute'(_0x458a32){const _0x250ccd=a3_0x4b1f40,_0x423ea3=_0x458a32[_0x250ccd(0xca)][0x0];if(!_0x423ea3)throw CliErrors[_0x250ccd(0xb8)](_0x250ccd(0xa8),_0x250ccd(0xb0)+CLI_BIN_NAME+_0x250ccd(0x8e));const {buildConfigFromFlags:_0xb13aaa,resolveLocalAppAliasCode:_0x5ed8f1}=await import(_0x250ccd(0xae)),{readCachedAppList:_0x3c89e9}=await import('../../commands/app/cache.js'),_0x5c7df4=_0x458a32['str']('env'),_0x13df25=_0xb13aaa(_0x5c7df4?{'env':_0x5c7df4}:{}),_0x2d4e23=_0x3c89e9(_0x13df25['env'],_0x13df25[_0x250ccd(0x8f)]),_0x2fdecf=_0x2d4e23?.['items']['find'](_0x5c8e95=>_0x5c8e95[_0x250ccd(0x9f)]===_0x423ea3),_0x4fd12a=_0x5ed8f1(_0x13df25[_0x250ccd(0x9b)]??{},_0x423ea3);if(!_0x2fdecf&&!_0x4fd12a&&_0x13df25[_0x250ccd(0xcc)]!==_0x423ea3){const _0x45e8ba=[..._0x2d4e23?.[_0x250ccd(0xbb)][_0x250ccd(0xd1)](_0x2a076a=>_0x2a076a['appName'])??[]],_0x1f8ba1=_0x45e8ba['length']===0x0?_0x250ccd(0xc5)+CLI_BIN_NAME+_0x250ccd(0x9e)+_0x423ea3+_0x250ccd(0xc8):_0x250ccd(0xd2)+Array[_0x250ccd(0x93)](new Set(_0x45e8ba))['join'](',\x20')+_0x250ccd(0x97);throw CliErrors[_0x250ccd(0xb8)]('App\x20\x22'+_0x423ea3+_0x250ccd(0xc1),_0x1f8ba1);}const _0x3a50ec=_0x458a32[_0x250ccd(0xd7)](_0x250ccd(0x91));let _0x46f75f;if(_0x3a50ec)_0x46f75f={'global':!![]};else{const {isInProject:_0x3d1679}=await import(_0x250ccd(0xae)),_0x428f8f=_0x3d1679();_0x46f75f=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0x250ccd(0xcb),'inProject':_0x428f8f}));}const _0x2086bd=readConfig(_0x46f75f);return _0x2086bd[_0x250ccd(0xcc)]=_0x423ea3,writeConfig(_0x2086bd,_0x46f75f),{'ok':!![],'message':_0x250ccd(0x9a)+_0x423ea3+'\x22'+scopeLabel(_0x46f75f)+'.'};}},importDef={'service':a3_0x4b1f40(0xd4),'command':'import','description':a3_0x4b1f40(0x8c),'risk':a3_0x4b1f40(0xb6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x11f23a){return await runInitImport(collectFlags(_0x11f23a,initImportFlagDefs)),{'ok':!![]};}};function a3_0x3a5b(_0x532e8d,_0x4e89a5){_0x532e8d=_0x532e8d-0x8c;const _0x20f45b=a3_0x20f4();let _0x3a5b24=_0x20f45b[_0x532e8d];return _0x3a5b24;}export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
@@ -1 +1 @@
1
- (function(_0x1ec056,_0x328f4d){const _0xaa40aa=a4_0x14a0,_0x69e239=_0x1ec056();while(!![]){try{const _0x92f787=parseInt(_0xaa40aa(0x1fd))/0x1+parseInt(_0xaa40aa(0x1f7))/0x2+parseInt(_0xaa40aa(0x1f8))/0x3+-parseInt(_0xaa40aa(0x1f3))/0x4*(-parseInt(_0xaa40aa(0x1f9))/0x5)+parseInt(_0xaa40aa(0x1fe))/0x6*(parseInt(_0xaa40aa(0x201))/0x7)+-parseInt(_0xaa40aa(0x1f5))/0x8*(parseInt(_0xaa40aa(0x1f6))/0x9)+-parseInt(_0xaa40aa(0x202))/0xa*(parseInt(_0xaa40aa(0x1fb))/0xb);if(_0x92f787===_0x328f4d)break;else _0x69e239['push'](_0x69e239['shift']());}catch(_0x346751){_0x69e239['push'](_0x69e239['shift']());}}}(a4_0x3bda,0xaa085));import{fileURLToPath}from'url';import{dirname,join}from'path';function a4_0x14a0(_0x3a5b4c,_0x3c9ebe){_0x3a5b4c=_0x3a5b4c-0x1f3;const _0x3bda33=a4_0x3bda();let _0x14a040=_0x3bda33[_0x3a5b4c];return _0x14a040;}import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0x25523f=a4_0x14a0,_0x3ca6b1=join(__dirname,_0x25523f(0x1f4)),_0x1c235f=readFileSync(_0x3ca6b1,'utf-8');return JSON[_0x25523f(0x1fc)](_0x1c235f);}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}function a4_0x3bda(){const _0x3a45f5=['2123622AxTMeq','errorCode','tableData','21FiYIga','863340jRUqji','100NDOyRm','../../../mock/app-list.json','104pJXLjB','763938xdrwEf','2096962sOccat','251271mbFehN','94865hUsKXH','success','242MnPwso','parse','1030893qctjvX'];a4_0x3bda=function(){return _0x3a45f5;};return a4_0x3bda();}export function getMockRemoteAppItems(){const _0x2ceb65=a4_0x14a0,_0xff3748=getMockAppList();if(!_0xff3748[_0x2ceb65(0x1fa)])throw new Error('Mock\x20API\x20error:\x20'+_0xff3748['errorMsg']+'\x20('+_0xff3748[_0x2ceb65(0x1ff)]+')');return _0xff3748['data'][_0x2ceb65(0x200)];}
1
+ (function(_0x496f92,_0x1ceab7){const _0x1e8b0f=a4_0x386b,_0x3f2863=_0x496f92();while(!![]){try{const _0x2bc493=parseInt(_0x1e8b0f(0xe1))/0x1+-parseInt(_0x1e8b0f(0xe3))/0x2*(-parseInt(_0x1e8b0f(0xed))/0x3)+parseInt(_0x1e8b0f(0xe8))/0x4*(-parseInt(_0x1e8b0f(0xdf))/0x5)+-parseInt(_0x1e8b0f(0xee))/0x6+-parseInt(_0x1e8b0f(0xef))/0x7+-parseInt(_0x1e8b0f(0xec))/0x8*(-parseInt(_0x1e8b0f(0xe7))/0x9)+-parseInt(_0x1e8b0f(0xe4))/0xa*(-parseInt(_0x1e8b0f(0xe5))/0xb);if(_0x2bc493===_0x1ceab7)break;else _0x3f2863['push'](_0x3f2863['shift']());}catch(_0x532cfd){_0x3f2863['push'](_0x3f2863['shift']());}}}(a4_0x20ba,0x873a8));function a4_0x20ba(){const _0x40c430=['parse','136312IBSKyk','6zlcviQ','5192616FxQEqI','3943569mZJggY','2111015uxSFiX','data','579738QEpcGS','Mock\x20API\x20error:\x20','695018zAvwlM','16350SdtoES','4279lYesDq','../../../mock/app-list.json','261hIDVwx','4PFxtKx','utf-8','errorMsg'];a4_0x20ba=function(){return _0x40c430;};return a4_0x20ba();}import{fileURLToPath}from'url';function a4_0x386b(_0x3f9dfe,_0x5a4386){_0x3f9dfe=_0x3f9dfe-0xdf;const _0x20baa9=a4_0x20ba();let _0x386b33=_0x20baa9[_0x3f9dfe];return _0x386b33;}import{dirname,join}from'path';import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0x16e48a=a4_0x386b,_0x1f7ff0=join(__dirname,_0x16e48a(0xe6)),_0x34136f=readFileSync(_0x1f7ff0,_0x16e48a(0xe9));return JSON[_0x16e48a(0xeb)](_0x34136f);}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x3865f6=a4_0x386b,_0x10f921=getMockAppList();if(!_0x10f921['success'])throw new Error(_0x3865f6(0xe2)+_0x10f921[_0x3865f6(0xea)]+'\x20('+_0x10f921['errorCode']+')');return _0x10f921[_0x3865f6(0xe0)]['tableData'];}
@@ -1 +1 @@
1
- (function(_0x8ede96,_0x32c913){const _0x258c87=a5_0x6bb0,_0x98411b=_0x8ede96();while(!![]){try{const _0x44c8c1=parseInt(_0x258c87(0x108))/0x1+parseInt(_0x258c87(0x10f))/0x2+-parseInt(_0x258c87(0x107))/0x3+-parseInt(_0x258c87(0x109))/0x4+parseInt(_0x258c87(0x111))/0x5+-parseInt(_0x258c87(0x10e))/0x6*(parseInt(_0x258c87(0x115))/0x7)+parseInt(_0x258c87(0x114))/0x8*(-parseInt(_0x258c87(0x110))/0x9);if(_0x44c8c1===_0x32c913)break;else _0x98411b['push'](_0x98411b['shift']());}catch(_0x1e3b8f){_0x98411b['push'](_0x98411b['shift']());}}}(a5_0x2745,0x85c3e));function a5_0x2745(){const _0x5c63a2=['2599115qsaRBd','cache','items','8exOHXK','203Uvqxcw','603138VeJaAf','673457kQYKyY','2630004bZfYof','fetchedAt','trim','toLowerCase','mock','87288YHHvWZ','1713730FugmET','1996236MlnOhU'];a5_0x2745=function(){return _0x5c63a2;};return a5_0x2745();}import{getMyApps}from'../../core/api-client.js';import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';function a5_0x6bb0(_0x375157,_0x4d41fd){_0x375157=_0x375157-0x107;const _0x27457a=a5_0x2745();let _0x6bb035=_0x27457a[_0x375157];return _0x6bb035;}import{productEnv}from'../../constant/product.js';export function shouldUseMockRemoteApps(){const _0x22dc18=a5_0x6bb0,_0x14760b=(productEnv('APP_LIST_SOURCE')||'')[_0x22dc18(0x10b)]()[_0x22dc18(0x10c)]();return _0x14760b==='mock';}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x30f891){const _0x2761ed=a5_0x6bb0,{env:_0x264b03,accessKey:_0x4c63d0,localOnly:localOnly=![],noCache:noCache=![]}=_0x30f891,_0x3a3f69=readCachedAppList(_0x264b03,_0x4c63d0),_0x151e5f=_0x4c63d0?.[_0x2761ed(0x10b)]()?getAppCacheFilePath(_0x264b03,_0x4c63d0):null;if(localOnly)return{'items':_0x3a3f69?.[_0x2761ed(0x113)]??[],'source':'cache','fetchedAt':_0x3a3f69?.[_0x2761ed(0x10a)]??null,'cachePath':_0x151e5f};try{const _0xf120ea=await getRemoteAppItems(),_0x2ea4ee=shouldUseMockRemoteApps()?_0x2761ed(0x10d):'remote',_0x434ec8=new Date()['toISOString'](),_0x153bc1=_0x4c63d0?.['trim']()?writeCachedAppList(_0x264b03,_0x4c63d0,{'env':_0x264b03,'fetchedAt':_0x434ec8,'source':_0x2ea4ee,'items':_0xf120ea}):null;return{'items':_0xf120ea,'source':_0x2ea4ee,'fetchedAt':_0x434ec8,'cachePath':_0x153bc1};}catch(_0x576b20){if(!noCache&&_0x3a3f69)return{'items':_0x3a3f69[_0x2761ed(0x113)],'source':_0x2761ed(0x112),'fetchedAt':_0x3a3f69[_0x2761ed(0x10a)],'cachePath':_0x151e5f};throw _0x576b20;}}
1
+ (function(_0x338176,_0x41ac81){const _0x310664=a5_0x3828,_0x5f53ed=_0x338176();while(!![]){try{const _0x131992=-parseInt(_0x310664(0x1fb))/0x1+parseInt(_0x310664(0x1f3))/0x2+parseInt(_0x310664(0x1f5))/0x3*(-parseInt(_0x310664(0x202))/0x4)+-parseInt(_0x310664(0x1f4))/0x5+parseInt(_0x310664(0x1f9))/0x6+parseInt(_0x310664(0x200))/0x7*(parseInt(_0x310664(0x1f6))/0x8)+parseInt(_0x310664(0x1fc))/0x9;if(_0x131992===_0x41ac81)break;else _0x5f53ed['push'](_0x5f53ed['shift']());}catch(_0x4901e2){_0x5f53ed['push'](_0x5f53ed['shift']());}}}(a5_0x3290,0xe1c26));import{getMyApps}from'../../core/api-client.js';import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';function a5_0x3290(){const _0x144782=['cache','879342ibSWSg','17486424hVgWWp','toISOString','mock','fetchedAt','212478hVHqdc','items','14148rMqAsV','APP_LIST_SOURCE','883006CEmVJa','5399595YLRjFa','471tjQOvB','152skSZbJ','trim','remote','2868690OgMRfw'];a5_0x3290=function(){return _0x144782;};return a5_0x3290();}import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';import{productEnv}from'../../constant/product.js';export function shouldUseMockRemoteApps(){const _0x435ac7=a5_0x3828,_0x40a92b=(productEnv(_0x435ac7(0x203))||'')[_0x435ac7(0x1f7)]()['toLowerCase']();return _0x40a92b==='mock';}function a5_0x3828(_0x3e4396,_0x300a4e){_0x3e4396=_0x3e4396-0x1f3;const _0x32900e=a5_0x3290();let _0x3828b0=_0x32900e[_0x3e4396];return _0x3828b0;}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x34713f){const _0x172a90=a5_0x3828,{env:_0x27909e,accessKey:_0x46fff8,localOnly:localOnly=![],noCache:noCache=![]}=_0x34713f,_0x4395ae=readCachedAppList(_0x27909e,_0x46fff8),_0x4d3937=_0x46fff8?.[_0x172a90(0x1f7)]()?getAppCacheFilePath(_0x27909e,_0x46fff8):null;if(localOnly)return{'items':_0x4395ae?.[_0x172a90(0x201)]??[],'source':_0x172a90(0x1fa),'fetchedAt':_0x4395ae?.[_0x172a90(0x1ff)]??null,'cachePath':_0x4d3937};try{const _0x8756f9=await getRemoteAppItems(),_0x391be9=shouldUseMockRemoteApps()?_0x172a90(0x1fe):_0x172a90(0x1f8),_0x846939=new Date()[_0x172a90(0x1fd)](),_0x4464ac=_0x46fff8?.[_0x172a90(0x1f7)]()?writeCachedAppList(_0x27909e,_0x46fff8,{'env':_0x27909e,'fetchedAt':_0x846939,'source':_0x391be9,'items':_0x8756f9}):null;return{'items':_0x8756f9,'source':_0x391be9,'fetchedAt':_0x846939,'cachePath':_0x4464ac};}catch(_0x592a36){if(!noCache&&_0x4395ae)return{'items':_0x4395ae['items'],'source':'cache','fetchedAt':_0x4395ae[_0x172a90(0x1ff)],'cachePath':_0x4d3937};throw _0x592a36;}}
@@ -1 +1 @@
1
- (function(_0x25c3a8,_0x383867){const _0x5b3114=a6_0x2ccd,_0x54a3d2=_0x25c3a8();while(!![]){try{const _0x3be661=-parseInt(_0x5b3114(0xb1))/0x1*(parseInt(_0x5b3114(0xaf))/0x2)+-parseInt(_0x5b3114(0xab))/0x3+parseInt(_0x5b3114(0xb6))/0x4+parseInt(_0x5b3114(0xad))/0x5+parseInt(_0x5b3114(0xac))/0x6*(-parseInt(_0x5b3114(0xb3))/0x7)+-parseInt(_0x5b3114(0xba))/0x8*(-parseInt(_0x5b3114(0xa7))/0x9)+parseInt(_0x5b3114(0xb2))/0xa*(parseInt(_0x5b3114(0xb9))/0xb);if(_0x3be661===_0x383867)break;else _0x54a3d2['push'](_0x54a3d2['shift']());}catch(_0x5db14d){_0x54a3d2['push'](_0x54a3d2['shift']());}}}(a6_0x4431,0x49c95));import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';function a6_0x2ccd(_0x19b59d,_0x3e4be6){_0x19b59d=_0x19b59d-0xa4;const _0x443140=a6_0x4431();let _0x2ccd42=_0x443140[_0x19b59d];return _0x2ccd42;}function a6_0x4431(){const _0x3da7d0=['appCode','project','2751156ZHXELZ','defaultApp','name','trim','1324860fvyqrO','2924472VGsMWb','2476695mteODu','local','461346gqwSns','isCurrent','1RsGFxU','235370tvBOJe','7FPclFn','named','find','1608016NytNtD','appcode','global','121IoMYXL','8CGFSak','definedIn'];a6_0x4431=function(){return _0x3da7d0;};return a6_0x4431();}export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x45c9ab,_0x187c71){const _0x573ea9=a6_0x2ccd;if(!_0x187c71)return;const _0x4dd5c8=!!(_0x187c71['currentApp']??_0x187c71['defaultApp']);for(const _0x5628b0 of _0x45c9ab){_0x5628b0['isCurrent']=![];}const _0x46d73b=_0x187c71[_0x573ea9(0xa5)]!=null?String(_0x187c71[_0x573ea9(0xa5)])[_0x573ea9(0xaa)]():'';if(_0x4dd5c8){const _0x41a2e2=_0x187c71['currentApp']??_0x187c71[_0x573ea9(0xa8)];if(_0x41a2e2){const _0x469783=_0x45c9ab[_0x573ea9(0xb5)](_0x12c507=>_0x12c507['named']===!![]&&_0x12c507['name']===_0x41a2e2&&_0x12c507[_0x573ea9(0xa4)]===_0x573ea9(0xae)),_0x4da7cd=_0x469783??_0x45c9ab['find'](_0x35fa9e=>_0x35fa9e[_0x573ea9(0xb4)]===!![]&&_0x35fa9e[_0x573ea9(0xa9)]===_0x41a2e2);_0x4da7cd&&(_0x4da7cd[_0x573ea9(0xb0)]=!![]);}return;}if(!_0x46d73b)return;for(const _0x231908 of _0x45c9ab){String(_0x231908[_0x573ea9(0xb7)]??'')[_0x573ea9(0xaa)]()===_0x46d73b&&(_0x231908[_0x573ea9(0xb0)]=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x5c5eed){const _0x306105=a6_0x2ccd;return formatScopeLabel(_0x5c5eed['global']?_0x306105(0xb8):_0x306105(0xa6));}
1
+ (function(_0x4d6df1,_0x43e7fb){const _0x3d56ad=a6_0x3d9c,_0xb5e2d7=_0x4d6df1();while(!![]){try{const _0x529947=-parseInt(_0x3d56ad(0xa0))/0x1+-parseInt(_0x3d56ad(0xb1))/0x2*(-parseInt(_0x3d56ad(0xa4))/0x3)+parseInt(_0x3d56ad(0xa2))/0x4*(parseInt(_0x3d56ad(0x9f))/0x5)+-parseInt(_0x3d56ad(0xb5))/0x6*(-parseInt(_0x3d56ad(0xb2))/0x7)+parseInt(_0x3d56ad(0xa8))/0x8*(-parseInt(_0x3d56ad(0xa5))/0x9)+parseInt(_0x3d56ad(0xac))/0xa+-parseInt(_0x3d56ad(0xa1))/0xb;if(_0x529947===_0x43e7fb)break;else _0xb5e2d7['push'](_0xb5e2d7['shift']());}catch(_0x2c40f2){_0xb5e2d7['push'](_0xb5e2d7['shift']());}}}(a6_0x90b7,0x569e4));import{CLI_BIN_NAME}from'../../constant/cli.js';function a6_0x90b7(){const _0x15639f=['currentApp','name','18192RTNBzA','isCurrent','defaultApp','appCode','5126860NrGlLc','global','named','local','appcode','3814SYpPrn','1981zOWNmX','trim','find','5622UxhvLX','7265SdDoBQ','320663HEsPuw','1569711MeYmmb','1844KJIAzr','project','90pICYdj','2718cUSnbf'];a6_0x90b7=function(){return _0x15639f;};return a6_0x90b7();}import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x1daf3b,_0x12ad42){const _0x350f1c=a6_0x3d9c;if(!_0x12ad42)return;const _0x363510=!!(_0x12ad42[_0x350f1c(0xa6)]??_0x12ad42[_0x350f1c(0xaa)]);for(const _0x8833e2 of _0x1daf3b){_0x8833e2[_0x350f1c(0xa9)]=![];}const _0x5cc69f=_0x12ad42[_0x350f1c(0xab)]!=null?String(_0x12ad42[_0x350f1c(0xab)])['trim']():'';if(_0x363510){const _0x477eff=_0x12ad42[_0x350f1c(0xa6)]??_0x12ad42[_0x350f1c(0xaa)];if(_0x477eff){const _0x85a4ec=_0x1daf3b['find'](_0x35578c=>_0x35578c[_0x350f1c(0xae)]===!![]&&_0x35578c[_0x350f1c(0xa7)]===_0x477eff&&_0x35578c['definedIn']===_0x350f1c(0xaf)),_0xdb5c0e=_0x85a4ec??_0x1daf3b[_0x350f1c(0xb4)](_0x7f47fd=>_0x7f47fd['named']===!![]&&_0x7f47fd[_0x350f1c(0xa7)]===_0x477eff);_0xdb5c0e&&(_0xdb5c0e[_0x350f1c(0xa9)]=!![]);}return;}if(!_0x5cc69f)return;for(const _0x577c9a of _0x1daf3b){String(_0x577c9a[_0x350f1c(0xb0)]??'')[_0x350f1c(0xb3)]()===_0x5cc69f&&(_0x577c9a[_0x350f1c(0xa9)]=!![]);}}function a6_0x3d9c(_0x5d2c44,_0x174adb){_0x5d2c44=_0x5d2c44-0x9f;const _0x90b7dd=a6_0x90b7();let _0x3d9ce9=_0x90b7dd[_0x5d2c44];return _0x3d9ce9;}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x17f57c){const _0x2e1d60=a6_0x3d9c;return formatScopeLabel(_0x17f57c[_0x2e1d60(0xad)]?_0x2e1d60(0xad):_0x2e1d60(0xa3));}
@@ -1 +1 @@
1
- const a7_0x45eb81=a7_0x55be;(function(_0x31ec7b,_0xf58877){const _0xd73597=a7_0x55be,_0x2ae105=_0x31ec7b();while(!![]){try{const _0x7bdfbb=-parseInt(_0xd73597(0x7a))/0x1*(-parseInt(_0xd73597(0x87))/0x2)+-parseInt(_0xd73597(0x9c))/0x3+parseInt(_0xd73597(0x6f))/0x4*(parseInt(_0xd73597(0x86))/0x5)+parseInt(_0xd73597(0x78))/0x6*(-parseInt(_0xd73597(0x76))/0x7)+-parseInt(_0xd73597(0xb0))/0x8*(-parseInt(_0xd73597(0x83))/0x9)+parseInt(_0xd73597(0x97))/0xa*(-parseInt(_0xd73597(0x93))/0xb)+-parseInt(_0xd73597(0xae))/0xc*(-parseInt(_0xd73597(0x8b))/0xd);if(_0x7bdfbb===_0xf58877)break;else _0x2ae105['push'](_0x2ae105['shift']());}catch(_0x5e3dc2){_0x2ae105['push'](_0x2ae105['shift']());}}}(a7_0x5de9,0xcae85));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=a7_0x45eb81(0x95),ARTIFACT_SOURCE_AGENT=a7_0x45eb81(0xa2),ALLOWED_REACT_MODULE_IMPORTS=[a7_0x45eb81(0x7f),'react-dom',a7_0x45eb81(0xb2),a7_0x45eb81(0xa8),'antd',a7_0x45eb81(0x89)];export const ALLOWED_REACT_MODULE_IMPORTS_TEXT=ALLOWED_REACT_MODULE_IMPORTS[a7_0x45eb81(0x82)](',\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':'file','type':a7_0x45eb81(0x81),'required':!![],'description':a7_0x45eb81(0xb5)},ARTIFACT_NAME_FLAG={'name':'name','type':'string','description':a7_0x45eb81(0x71)},METADATA_FLAG={'name':a7_0x45eb81(0xa9),'type':a7_0x45eb81(0x81),'description':'Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped'};function isPlainObject(_0x459ffb){const _0x286e03=a7_0x45eb81;return typeof _0x459ffb===_0x286e03(0xa4)&&_0x459ffb!==null&&!Array[_0x286e03(0x8f)](_0x459ffb);}function readSourceFile(_0x1e45bc){const _0x397ac6=a7_0x45eb81;if(!_0x1e45bc)throw CliErrors[_0x397ac6(0x96)](_0x397ac6(0xab));if(!existsSync(_0x1e45bc))throw CliErrors[_0x397ac6(0x96)](_0x397ac6(0x8e)+_0x1e45bc);if(!statSync(_0x1e45bc)[_0x397ac6(0xba)]())throw CliErrors[_0x397ac6(0x96)](_0x397ac6(0xa3)+_0x1e45bc);const _0x1491b7=readFileSync(_0x1e45bc,'utf8');return validateReactModuleSource(_0x1491b7),_0x1491b7;}function parseMetadata(_0x1039f2){const _0x1c08d4=a7_0x45eb81;if(!_0x1039f2)return undefined;let _0x3ede4f;try{_0x3ede4f=JSON[_0x1c08d4(0x9b)](_0x1039f2);}catch{throw CliErrors[_0x1c08d4(0x96)](_0x1c08d4(0xad)+_0x1039f2);}if(!isPlainObject(_0x3ede4f))throw CliErrors[_0x1c08d4(0x96)](_0x1c08d4(0xaa));const _0x3ec15f={..._0x3ede4f};return delete _0x3ec15f[_0x1c08d4(0xb6)],_0x3ec15f;}function getPackageName(_0x218e86){const _0x571510=a7_0x45eb81;if(_0x218e86[_0x571510(0x6e)]('@')){const [_0x234316,_0x5ec064]=_0x218e86[_0x571510(0xb9)]('/');return _0x234316&&_0x5ec064?_0x234316+'/'+_0x5ec064:_0x218e86;}return _0x218e86[_0x571510(0xb9)]('/')[0x0]||_0x218e86;}function a7_0x55be(_0xc0157a,_0x53f0a2){_0xc0157a=_0xc0157a-0x69;const _0x5de9cd=a7_0x5de9();let _0x55be3e=_0x5de9cd[_0xc0157a];return _0x55be3e;}function validateAllowedImports(_0x176aee){const _0x750dce=a7_0x45eb81,_0x325b23=new Set();for(const _0x3ef958 of IMPORT_SOURCE_PATTERNS){_0x3ef958[_0x750dce(0xa1)]=0x0;let _0x43ca51;while((_0x43ca51=_0x3ef958[_0x750dce(0x69)](_0x176aee))!==null){const _0x5419d8=_0x43ca51[0x1]?.['trim']();_0x5419d8&&_0x325b23[_0x750dce(0x7c)](_0x5419d8);}}const _0x1ba474=[..._0x325b23][_0x750dce(0x8a)](getPackageName)[_0x750dce(0x84)](_0x303f3d=>!ALLOWED_REACT_MODULE_IMPORTS[_0x750dce(0xa7)](_0x303f3d));if(_0x1ba474[_0x750dce(0x75)]>0x0)throw CliErrors[_0x750dce(0x96)]('react_module\x20imports\x20are\x20limited\x20to:\x20'+ALLOWED_REACT_MODULE_IMPORTS_TEXT+_0x750dce(0x9f)+[...new Set(_0x1ba474)]['join'](',\x20'));}export function validateReactModuleSource(_0x4dba14){const _0x1cd043=a7_0x45eb81;if(!_0x4dba14[_0x1cd043(0x72)]())throw CliErrors['validation']('Artifact\x20source\x20file\x20is\x20blank.');if(PAGE_LEVEL_PATTERNS[_0x1cd043(0x7d)](_0x51ef41=>_0x51ef41['test'](_0x4dba14)))throw CliErrors[_0x1cd043(0x96)](_0x1cd043(0xb3));validateAllowedImports(_0x4dba14);}function buildArtifactInput(_0x31cb68){const _0x1e429b=a7_0x45eb81,_0xc7ead7=readSourceFile(_0x31cb68['str']('file')),_0x23a05b=_0x31cb68[_0x1e429b(0x90)](_0x1e429b(0x92))[_0x1e429b(0x72)](),_0xf22a30=parseMetadata(_0x31cb68['str'](_0x1e429b(0xa9)));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x23a05b?{'name':_0x23a05b}:{},'content':_0xc7ead7,..._0xf22a30?{'metadata':_0xf22a30}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0xbd28f7){const _0x7e6173=a7_0x45eb81;return{'id':_0xbd28f7['id'],'name':_0xbd28f7[_0x7e6173(0x92)],'artifactType':_0xbd28f7[_0x7e6173(0x85)],'source':_0xbd28f7[_0x7e6173(0x70)],'favorite':_0xbd28f7[_0x7e6173(0x9e)],'deleted':_0xbd28f7[_0x7e6173(0x9d)],'createTime':_0xbd28f7[_0x7e6173(0xa6)],'updateTime':_0xbd28f7[_0x7e6173(0x6a)]};}function detailArtifact(_0x148a96){const _0x438aeb=a7_0x45eb81;return{'id':_0x148a96['id'],'appCode':_0x148a96[_0x438aeb(0xb1)],'name':_0x148a96[_0x438aeb(0x92)],'artifactType':_0x148a96['artifactType'],'source':_0x148a96['source'],'favorite':_0x148a96[_0x438aeb(0x9e)],'deleted':_0x148a96[_0x438aeb(0x9d)],'content':_0x148a96[_0x438aeb(0x79)]??'','compiledContent':_0x148a96[_0x438aeb(0xb6)],'metadata':_0x148a96[_0x438aeb(0xa9)]??{},'createTime':_0x148a96[_0x438aeb(0xa6)],'updateTime':_0x148a96['updateTime']};}function readFavoriteFlag(_0x1b9734){const _0x164ae6=a7_0x45eb81,_0x1160db=_0x1b9734[_0x164ae6(0x6b)]('favorite');return _0x1160db===undefined||_0x1160db===null||_0x1160db===''?undefined:_0x1b9734['bool'](_0x164ae6(0x9e));}const artifactList={'service':a7_0x45eb81(0x99),'command':'list','description':'List\x20current-app\x20react_module\x20Artifacts','risk':a7_0x45eb81(0x7b),'flags':[{'name':a7_0x45eb81(0x70),'type':a7_0x45eb81(0x81),'description':a7_0x45eb81(0x94)},{'name':a7_0x45eb81(0x9e),'type':'boolean','description':'Optional\x20favorite-state\x20filter'},VERBOSE_FLAG],async 'execute'(_0x36b2b7){const _0x1f802a=a7_0x45eb81,_0x2398d5=await listRuntimeArtifacts(_0x36b2b7['appCode'],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x36b2b7[_0x1f802a(0x90)](_0x1f802a(0x70))?{'source':_0x36b2b7[_0x1f802a(0x90)](_0x1f802a(0x70))}:{},...readFavoriteFlag(_0x36b2b7)!==undefined?{'favorite':readFavoriteFlag(_0x36b2b7)}:{}});return{'ok':!![],'data':{'total':_0x2398d5['length'],'items':_0x36b2b7[_0x1f802a(0xaf)](_0x1f802a(0x6c))?_0x2398d5:_0x2398d5[_0x1f802a(0x8a)](summarizeArtifact)}};}},artifactDetail={'service':'artifact','command':a7_0x45eb81(0x98),'description':a7_0x45eb81(0x9a),'risk':'read','flags':[{...ID_FLAG,'description':a7_0x45eb81(0x91)}],async 'execute'(_0xaa0cdc){const _0x11e539=a7_0x45eb81,_0x20c7ec=await getRuntimeArtifact(_0xaa0cdc[_0x11e539(0xa0)]('id'),_0xaa0cdc[_0x11e539(0xb1)]);return{'ok':!![],'data':detailArtifact(_0x20c7ec)};}},artifactCreate={'service':a7_0x45eb81(0x99),'command':a7_0x45eb81(0x74),'description':a7_0x45eb81(0x8c),'risk':'write','flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x3abf66){const _0xaaa4f0=a7_0x45eb81,_0x547840=buildArtifactInput(_0x3abf66),_0x315333=await createRuntimeArtifact(_0x3abf66['appCode'],_0x547840);return{'ok':!![],'data':detailArtifact(_0x315333),'message':_0xaaa4f0(0xac)+_0x315333['id']+(_0x315333['name']?'\x20('+_0x315333['name']+')':'')};},async 'dryRun'(_0x3c4e93){const _0x3487f1=a7_0x45eb81,_0x368139=buildArtifactInput(_0x3c4e93);return dryRun('POST',_0x3487f1(0xb7))[_0x3487f1(0x8d)]({'appCode':_0x3c4e93[_0x3487f1(0xb1)],..._0x368139})['description'](_0x3487f1(0x80))[_0x3487f1(0x7e)]();}},artifactUpdate={'service':a7_0x45eb81(0x99),'command':a7_0x45eb81(0x73),'description':a7_0x45eb81(0xb8),'risk':'write','flags':[{...ID_FLAG,'description':a7_0x45eb81(0x91)},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x5cf328){const _0x1bab66=a7_0x45eb81,_0x4d73ea=_0x5cf328['num']('id'),_0x40a0ba=buildArtifactInput(_0x5cf328),_0x52d3bb=await updateRuntimeArtifact(_0x4d73ea,_0x5cf328['appCode'],_0x40a0ba);return{'ok':!![],'data':detailArtifact(_0x52d3bb),'message':_0x1bab66(0x77)+_0x52d3bb['id']+(_0x52d3bb[_0x1bab66(0x92)]?'\x20('+_0x52d3bb[_0x1bab66(0x92)]+')':'')};},async 'dryRun'(_0x46f326){const _0x3defc1=a7_0x45eb81,_0x431120=_0x46f326['num']('id'),_0x5bb9f5=buildArtifactInput(_0x46f326);return dryRun(_0x3defc1(0xa5),_0x3defc1(0xb4)+_0x431120+_0x3defc1(0x6d))[_0x3defc1(0x8d)]({'appCode':_0x46f326[_0x3defc1(0xb1)],..._0x5bb9f5})[_0x3defc1(0x88)]('Preview:\x20update\x20react_module\x20Artifact\x20'+_0x431120)[_0x3defc1(0x7e)]();}};function a7_0x5de9(){const _0x448009=['map','9789dhrbYp','Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','body','File\x20not\x20found:\x20','isArray','str','Artifact\x20ID','name','33GNHScg','Optional\x20source\x20filter,\x20for\x20example\x20AGENT','react_module','validation','4854410Zpsswc','detail','artifact','Show\x20one\x20Artifact\x20by\x20id','parse','4968141cHnYkL','deleted','favorite','.\x20Unsupported:\x20','num','lastIndex','AGENT','File\x20is\x20not\x20a\x20regular\x20file:\x20','object','POST','createTime','includes','dayjs','metadata','--metadata\x20must\x20be\x20a\x20JSON\x20object.','File\x20path\x20is\x20required.','Created\x20Artifact\x20','Invalid\x20JSON\x20for\x20--metadata:\x20','61260gYjXlK','bool','312JztbLR','appCode','lodash','react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.','/client/artifact/','Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file','compiledContent','/client/artifact/create','Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','split','isFile','exec','updateTime','flag','verbose','/update','startsWith','4025020InKkCa','source','Artifact\x20display\x20name','trim','update','create','length','14651Phvxrf','Updated\x20Artifact\x20','4722euAzhw','content','13iKWCgc','read','add','some','build','react','Preview:\x20create\x20react_module\x20Artifact','string','join','76311zEWyjb','filter','artifactType','5lSfBCq','63026ycZXZv','description','@ant-design/icons'];a7_0x5de9=function(){return _0x448009;};return a7_0x5de9();}export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
1
+ const a7_0x1147d8=a7_0x1ff3;(function(_0x1215f7,_0x4dc5f8){const _0x501df6=a7_0x1ff3,_0x46c46=_0x1215f7();while(!![]){try{const _0x1d7611=-parseInt(_0x501df6(0xeb))/0x1*(parseInt(_0x501df6(0x111))/0x2)+parseInt(_0x501df6(0x114))/0x3*(-parseInt(_0x501df6(0xf9))/0x4)+-parseInt(_0x501df6(0x104))/0x5+-parseInt(_0x501df6(0xe9))/0x6*(-parseInt(_0x501df6(0xcf))/0x7)+-parseInt(_0x501df6(0xe7))/0x8+-parseInt(_0x501df6(0x103))/0x9*(parseInt(_0x501df6(0xd8))/0xa)+parseInt(_0x501df6(0xcc))/0xb;if(_0x1d7611===_0x4dc5f8)break;else _0x46c46['push'](_0x46c46['shift']());}catch(_0x5a2bd8){_0x46c46['push'](_0x46c46['shift']());}}}(a7_0x5707,0x2689e));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=a7_0x1147d8(0x118),ARTIFACT_SOURCE_AGENT=a7_0x1147d8(0x116),ALLOWED_REACT_MODULE_IMPORTS=[a7_0x1147d8(0x10b),a7_0x1147d8(0xfe),a7_0x1147d8(0xe8),a7_0x1147d8(0x10a),a7_0x1147d8(0x10e),a7_0x1147d8(0x108)];export const ALLOWED_REACT_MODULE_IMPORTS_TEXT=ALLOWED_REACT_MODULE_IMPORTS[a7_0x1147d8(0x117)](',\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':a7_0x1147d8(0xd0),'type':a7_0x1147d8(0xfc),'required':!![],'description':a7_0x1147d8(0x115)},ARTIFACT_NAME_FLAG={'name':'name','type':'string','description':a7_0x1147d8(0xdf)},METADATA_FLAG={'name':a7_0x1147d8(0xea),'type':a7_0x1147d8(0xfc),'description':a7_0x1147d8(0xd6)};function isPlainObject(_0x3a9d61){return typeof _0x3a9d61==='object'&&_0x3a9d61!==null&&!Array['isArray'](_0x3a9d61);}function readSourceFile(_0x5c07d4){const _0x3d6031=a7_0x1147d8;if(!_0x5c07d4)throw CliErrors[_0x3d6031(0xce)](_0x3d6031(0xe6));if(!existsSync(_0x5c07d4))throw CliErrors['validation'](_0x3d6031(0x112)+_0x5c07d4);if(!statSync(_0x5c07d4)[_0x3d6031(0x110)]())throw CliErrors['validation']('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x5c07d4);const _0xd4046e=readFileSync(_0x5c07d4,_0x3d6031(0x106));return validateReactModuleSource(_0xd4046e),_0xd4046e;}function parseMetadata(_0x3e1491){const _0x4728c8=a7_0x1147d8;if(!_0x3e1491)return undefined;let _0x50ac52;try{_0x50ac52=JSON[_0x4728c8(0xf4)](_0x3e1491);}catch{throw CliErrors['validation'](_0x4728c8(0xf2)+_0x3e1491);}if(!isPlainObject(_0x50ac52))throw CliErrors[_0x4728c8(0xce)](_0x4728c8(0xf1));const _0x3d0a08={..._0x50ac52};return delete _0x3d0a08[_0x4728c8(0xcd)],_0x3d0a08;}function a7_0x5707(){const _0x16f894=['/client/artifact/','react-dom','artifact','/update','length','includes','26109FDWGvo','1562135kXIDTM','Preview:\x20create\x20react_module\x20Artifact','utf8','add','@ant-design/icons','List\x20current-app\x20react_module\x20Artifacts','dayjs','react','num','lastIndex','antd','test','isFile','2uEhrUk','File\x20not\x20found:\x20','description','3lHAKJn','Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file','AGENT','join','react_module','favorite','build','Artifact\x20ID','7849809UKcwrm','compiledContent','validation','991109aicBeZ','file','Show\x20one\x20Artifact\x20by\x20id','map','read','some','name','Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped','deleted','1040mGRYBL','Artifact\x20source\x20file\x20is\x20blank.','Created\x20Artifact\x20','exec','createTime','write','split','Artifact\x20display\x20name','trim','Preview:\x20update\x20react_module\x20Artifact\x20','str','body','Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','verbose','File\x20path\x20is\x20required.','1246032GOHVhl','lodash','12nMMUrO','metadata','1226mrXLhN','artifactType','source','filter','detail','bool','--metadata\x20must\x20be\x20a\x20JSON\x20object.','Invalid\x20JSON\x20for\x20--metadata:\x20','Optional\x20source\x20filter,\x20for\x20example\x20AGENT','parse','boolean','updateTime','.\x20Unsupported:\x20','POST','271312OtSbnr','content','appCode','string'];a7_0x5707=function(){return _0x16f894;};return a7_0x5707();}function getPackageName(_0x16139d){const _0x10d3b1=a7_0x1147d8;if(_0x16139d['startsWith']('@')){const [_0x32f16f,_0x4b6875]=_0x16139d[_0x10d3b1(0xde)]('/');return _0x32f16f&&_0x4b6875?_0x32f16f+'/'+_0x4b6875:_0x16139d;}return _0x16139d[_0x10d3b1(0xde)]('/')[0x0]||_0x16139d;}function validateAllowedImports(_0x4fa34e){const _0x3d10ed=a7_0x1147d8,_0xc4c604=new Set();for(const _0x5efa59 of IMPORT_SOURCE_PATTERNS){_0x5efa59[_0x3d10ed(0x10d)]=0x0;let _0x4adf71;while((_0x4adf71=_0x5efa59[_0x3d10ed(0xdb)](_0x4fa34e))!==null){const _0x42a003=_0x4adf71[0x1]?.[_0x3d10ed(0xe0)]();_0x42a003&&_0xc4c604[_0x3d10ed(0x107)](_0x42a003);}}const _0x31dafc=[..._0xc4c604][_0x3d10ed(0xd2)](getPackageName)[_0x3d10ed(0xee)](_0x4cc3d6=>!ALLOWED_REACT_MODULE_IMPORTS[_0x3d10ed(0x102)](_0x4cc3d6));if(_0x31dafc[_0x3d10ed(0x101)]>0x0)throw CliErrors[_0x3d10ed(0xce)]('react_module\x20imports\x20are\x20limited\x20to:\x20'+ALLOWED_REACT_MODULE_IMPORTS_TEXT+_0x3d10ed(0xf7)+[...new Set(_0x31dafc)][_0x3d10ed(0x117)](',\x20'));}export function validateReactModuleSource(_0x18c96c){const _0x3ca48e=a7_0x1147d8;if(!_0x18c96c[_0x3ca48e(0xe0)]())throw CliErrors[_0x3ca48e(0xce)](_0x3ca48e(0xd9));if(PAGE_LEVEL_PATTERNS[_0x3ca48e(0xd4)](_0x46d55c=>_0x46d55c[_0x3ca48e(0x10f)](_0x18c96c)))throw CliErrors[_0x3ca48e(0xce)]('react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.');validateAllowedImports(_0x18c96c);}function buildArtifactInput(_0x1cb504){const _0x3c76c0=a7_0x1147d8,_0x2e3628=readSourceFile(_0x1cb504[_0x3c76c0(0xe2)](_0x3c76c0(0xd0))),_0x503f0d=_0x1cb504[_0x3c76c0(0xe2)]('name')[_0x3c76c0(0xe0)](),_0x3a4b8c=parseMetadata(_0x1cb504[_0x3c76c0(0xe2)](_0x3c76c0(0xea)));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x503f0d?{'name':_0x503f0d}:{},'content':_0x2e3628,..._0x3a4b8c?{'metadata':_0x3a4b8c}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0x3565b2){const _0x536f5e=a7_0x1147d8;return{'id':_0x3565b2['id'],'name':_0x3565b2[_0x536f5e(0xd5)],'artifactType':_0x3565b2[_0x536f5e(0xec)],'source':_0x3565b2[_0x536f5e(0xed)],'favorite':_0x3565b2[_0x536f5e(0xc9)],'deleted':_0x3565b2[_0x536f5e(0xd7)],'createTime':_0x3565b2[_0x536f5e(0xdc)],'updateTime':_0x3565b2[_0x536f5e(0xf6)]};}function a7_0x1ff3(_0x1baf27,_0x384230){_0x1baf27=_0x1baf27-0xc9;const _0x57071b=a7_0x5707();let _0x1ff3ec=_0x57071b[_0x1baf27];return _0x1ff3ec;}function detailArtifact(_0x26b968){const _0x113cfb=a7_0x1147d8;return{'id':_0x26b968['id'],'appCode':_0x26b968['appCode'],'name':_0x26b968[_0x113cfb(0xd5)],'artifactType':_0x26b968[_0x113cfb(0xec)],'source':_0x26b968[_0x113cfb(0xed)],'favorite':_0x26b968[_0x113cfb(0xc9)],'deleted':_0x26b968[_0x113cfb(0xd7)],'content':_0x26b968[_0x113cfb(0xfa)]??'','compiledContent':_0x26b968[_0x113cfb(0xcd)],'metadata':_0x26b968[_0x113cfb(0xea)]??{},'createTime':_0x26b968[_0x113cfb(0xdc)],'updateTime':_0x26b968[_0x113cfb(0xf6)]};}function readFavoriteFlag(_0x114e0b){const _0x54f950=a7_0x1147d8,_0x3fed6a=_0x114e0b['flag']('favorite');return _0x3fed6a===undefined||_0x3fed6a===null||_0x3fed6a===''?undefined:_0x114e0b['bool'](_0x54f950(0xc9));}const artifactList={'service':a7_0x1147d8(0xff),'command':'list','description':a7_0x1147d8(0x109),'risk':a7_0x1147d8(0xd3),'flags':[{'name':a7_0x1147d8(0xed),'type':a7_0x1147d8(0xfc),'description':a7_0x1147d8(0xf3)},{'name':a7_0x1147d8(0xc9),'type':a7_0x1147d8(0xf5),'description':'Optional\x20favorite-state\x20filter'},VERBOSE_FLAG],async 'execute'(_0x1716bb){const _0x2d2486=a7_0x1147d8,_0x1e7927=await listRuntimeArtifacts(_0x1716bb[_0x2d2486(0xfb)],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x1716bb[_0x2d2486(0xe2)]('source')?{'source':_0x1716bb[_0x2d2486(0xe2)](_0x2d2486(0xed))}:{},...readFavoriteFlag(_0x1716bb)!==undefined?{'favorite':readFavoriteFlag(_0x1716bb)}:{}});return{'ok':!![],'data':{'total':_0x1e7927['length'],'items':_0x1716bb[_0x2d2486(0xf0)](_0x2d2486(0xe5))?_0x1e7927:_0x1e7927[_0x2d2486(0xd2)](summarizeArtifact)}};}},artifactDetail={'service':a7_0x1147d8(0xff),'command':a7_0x1147d8(0xef),'description':a7_0x1147d8(0xd1),'risk':a7_0x1147d8(0xd3),'flags':[{...ID_FLAG,'description':a7_0x1147d8(0xcb)}],async 'execute'(_0x23f7e7){const _0x2cd24f=a7_0x1147d8,_0x291156=await getRuntimeArtifact(_0x23f7e7['num']('id'),_0x23f7e7[_0x2cd24f(0xfb)]);return{'ok':!![],'data':detailArtifact(_0x291156)};}},artifactCreate={'service':a7_0x1147d8(0xff),'command':'create','description':a7_0x1147d8(0xe4),'risk':a7_0x1147d8(0xdd),'flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x422776){const _0x30e8a4=a7_0x1147d8,_0x1cdcea=buildArtifactInput(_0x422776),_0x256e47=await createRuntimeArtifact(_0x422776[_0x30e8a4(0xfb)],_0x1cdcea);return{'ok':!![],'data':detailArtifact(_0x256e47),'message':_0x30e8a4(0xda)+_0x256e47['id']+(_0x256e47['name']?'\x20('+_0x256e47['name']+')':'')};},async 'dryRun'(_0x19cf9b){const _0x26d5de=a7_0x1147d8,_0x330f40=buildArtifactInput(_0x19cf9b);return dryRun(_0x26d5de(0xf8),'/client/artifact/create')[_0x26d5de(0xe3)]({'appCode':_0x19cf9b[_0x26d5de(0xfb)],..._0x330f40})['description'](_0x26d5de(0x105))[_0x26d5de(0xca)]();}},artifactUpdate={'service':a7_0x1147d8(0xff),'command':'update','description':'Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','risk':a7_0x1147d8(0xdd),'flags':[{...ID_FLAG,'description':a7_0x1147d8(0xcb)},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x5c94ed){const _0x4e9d81=a7_0x1147d8,_0x21f7a9=_0x5c94ed[_0x4e9d81(0x10c)]('id'),_0xa48fff=buildArtifactInput(_0x5c94ed),_0x259c46=await updateRuntimeArtifact(_0x21f7a9,_0x5c94ed[_0x4e9d81(0xfb)],_0xa48fff);return{'ok':!![],'data':detailArtifact(_0x259c46),'message':'Updated\x20Artifact\x20'+_0x259c46['id']+(_0x259c46['name']?'\x20('+_0x259c46['name']+')':'')};},async 'dryRun'(_0x585755){const _0x14ae57=a7_0x1147d8,_0x2267af=_0x585755[_0x14ae57(0x10c)]('id'),_0x46c56f=buildArtifactInput(_0x585755);return dryRun(_0x14ae57(0xf8),_0x14ae57(0xfd)+_0x2267af+_0x14ae57(0x100))[_0x14ae57(0xe3)]({'appCode':_0x585755[_0x14ae57(0xfb)],..._0x46c56f})[_0x14ae57(0x113)](_0x14ae57(0xe1)+_0x2267af)[_0x14ae57(0xca)]();}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
@@ -1 +1 @@
1
- const a8_0x43a492=a8_0x144c;(function(_0xedcbe9,_0x1c9218){const _0x4723ec=a8_0x144c,_0x3d3645=_0xedcbe9();while(!![]){try{const _0xf90cc0=parseInt(_0x4723ec(0x11b))/0x1*(parseInt(_0x4723ec(0x10c))/0x2)+parseInt(_0x4723ec(0x107))/0x3+parseInt(_0x4723ec(0x104))/0x4*(-parseInt(_0x4723ec(0xdf))/0x5)+-parseInt(_0x4723ec(0xee))/0x6+-parseInt(_0x4723ec(0x117))/0x7+-parseInt(_0x4723ec(0x11e))/0x8+parseInt(_0x4723ec(0xec))/0x9;if(_0xf90cc0===_0x1c9218)break;else _0x3d3645['push'](_0x3d3645['shift']());}catch(_0x7f1bdf){_0x3d3645['push'](_0x3d3645['shift']());}}}(a8_0x2111,0x2ce83));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';function a8_0x144c(_0x446917,_0x53fbe2){_0x446917=_0x446917-0xde;const _0x2111a7=a8_0x2111();let _0x144c2e=_0x2111a7[_0x446917];return _0x144c2e;}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';function a8_0x2111(){const _0x2c5c05=['production','Option\x20A:\x20','global-default','validation','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','cancelled','nonInteractive','\x20Verify:\x20','Invalid\x20accessKey\x20format:\x20\x22','Use\x20`','`auth\x20login`\x20does\x20not\x20support\x20--yes.','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','string','join','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','\x20env\x20var','development','logout','access-key','Option\x20B:\x20apps\x20config\x20(','8470UCiqMS','No\x20AccessKey\x20found\x20in\x20','boolean','\x20auth\x20status','Write\x20to\x20global\x20config\x20(default)','isTTY','push','\x20config.','env','AccessKey\x20(ak_xxx...)','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','init','Clear\x20from\x20global\x20config\x20(default)','33507JSKNys','test','878856yUhxFh','global','ACCESS_KEY','AccessKey\x20cleared\x20from\x20','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','daily','auth','AccessKey\x20saved\x20to\x20','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','status','accessKey','stdin','login','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','Auth\x20config\x20reinitialized\x20in\x20','Auth\x20mode:\x20','info','\x20(via\x20','Clear\x20accessKey\x20from\x20config','\x20Current\x20env:\x20','\x20doctor','project','68AbgUzA','Missing\x20accessKey.','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','709662jvTnbS','slice','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','newConfigFileName','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','185486koaPtX','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','length','=ak_xxx','envName','\x20auth\x20login\x20--access-key\x20<ak_xxx>','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','userCenterDisplayName','Shorthand\x20for\x20--access-key','\x20\x20export\x20','840063vNyDvC','Then\x20verify\x20with:\x20','bool','write','3vgMIur','str','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','314272wxXxxW','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20'];a8_0x2111=function(){return _0x2c5c05;};return a8_0x2111();}const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function showAccessKeyCreateHint(){const _0x47df34=a8_0x144c;writeCliSideChannelLine(_0x47df34(0x12e)+PRODUCT_CONFIG['userCenterDisplayName']+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine('Tip:\x20you\x20can\x20also\x20run:'),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x47df34(0x112));}function buildAccessKeySetupGuide(){const _0x1e5ab3=a8_0x144c;return[_0x1e5ab3(0x12e)+PRODUCT_CONFIG[_0x1e5ab3(0x114)]+':',USER_ACCESS_KEY_CREATE_URL,_0x1e5ab3(0x11f)+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]'][_0x1e5ab3(0x12d)]('\x0a');}function canPromptForAccessKey(_0x91b455){const _0x58ef0d=a8_0x144c;return!_0x91b455[_0x58ef0d(0x126)]&&process[_0x58ef0d(0xf9)][_0x58ef0d(0xe4)]!==![]&&process['stdout'][_0x58ef0d(0xe4)]!==![];}function resolveAuthScopeFlags(_0x211adc){const _0x2f6a41=a8_0x144c;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x211adc[_0x2f6a41(0x119)]('global'),'explicitProject':_0x211adc[_0x2f6a41(0x119)]('project'),'policy':_0x2f6a41(0x122)}));}async function resolveAuthWriteInput(_0x36e83b){const _0x3f6357=a8_0x144c;let _0x1c0200=(_0x36e83b['str']('access-key')||_0x36e83b['str']('ak')||'')['trim']();const _0x3b7e96=(_0x36e83b[_0x3f6357(0x11c)](_0x3f6357(0xe7))||'')['trim']();if(!_0x1c0200&&canPromptForAccessKey(_0x36e83b))try{showAccessKeyCreateHint(),_0x1c0200=await promptAccessKey('');}catch(_0x53c3c0){if(isAbortPrompt(_0x53c3c0))throw CliErrors[_0x3f6357(0x125)]();throw _0x53c3c0;}if(!_0x1c0200)throw CliErrors[_0x3f6357(0x123)](_0x3f6357(0x105),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x3f6357(0xed)](_0x1c0200))throw CliErrors[_0x3f6357(0x123)](_0x3f6357(0x128)+_0x1c0200+'\x22',_0x3f6357(0xfb));if(!_0x3b7e96)return{'accessKey':_0x1c0200};const _0x4854fb=normalizeEnv(_0x3b7e96);return{'accessKey':_0x1c0200,'env':isDaily(_0x4854fb)?_0x3f6357(0xf3):isDev(_0x4854fb)?_0x3f6357(0x130):_0x3f6357(0x120)};}export const authDefinitions=[{'service':a8_0x43a492(0xf4),'command':a8_0x43a492(0xfa),'description':a8_0x43a492(0x11d),'risk':a8_0x43a492(0x11a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a8_0x43a492(0x132),'type':a8_0x43a492(0x12c),'description':a8_0x43a492(0xe8)},{'name':'ak','type':a8_0x43a492(0x12c),'description':a8_0x43a492(0x115)},{'name':a8_0x43a492(0xef),'type':a8_0x43a492(0xe1),'description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':a8_0x43a492(0x103),'type':'boolean','description':a8_0x43a492(0x106),'default':![]}],async 'execute'(_0x2c6c50){const _0x121f7c=a8_0x43a492;if(_0x2c6c50[_0x121f7c(0x119)]('yes'))throw CliErrors[_0x121f7c(0x123)](_0x121f7c(0x12a),_0x121f7c(0x129)+CLI_BIN_NAME+_0x121f7c(0x12b)+CLI_BIN_NAME+_0x121f7c(0xf2));const _0x44d958=(_0x2c6c50['str'](_0x121f7c(0x132))||_0x2c6c50[_0x121f7c(0x11c)]('ak')||'')['trim']();if(!_0x44d958&&_0x2c6c50[_0x121f7c(0x126)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x26216e=await resolveAuthWriteInput(_0x2c6c50),_0x9b6e14=resolveAuthScopeFlags(_0x2c6c50),_0x5436b7=readScopedConfig(_0x9b6e14);_0x5436b7[_0x121f7c(0xf8)]=_0x26216e[_0x121f7c(0xf8)];_0x26216e[_0x121f7c(0xe7)]&&(_0x5436b7[_0x121f7c(0xe7)]=_0x26216e[_0x121f7c(0xe7)]);writeScopedConfig(_0x5436b7,_0x9b6e14);const _0x2bfe8f=_0x9b6e14[_0x121f7c(0xef)]?'global':_0x121f7c(0x103),_0x39bca7=_0x5436b7[_0x121f7c(0xe7)]?_0x121f7c(0x101)+_0x5436b7['env']+'.':'';return{'ok':!![],'message':_0x121f7c(0xf5)+_0x2bfe8f+_0x121f7c(0xe6)+_0x39bca7+_0x121f7c(0x127)+CLI_BIN_NAME+_0x121f7c(0xe2)};}},{'service':'auth','command':a8_0x43a492(0xea),'description':a8_0x43a492(0x109),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a8_0x43a492(0x132),'type':a8_0x43a492(0x12c),'description':a8_0x43a492(0xe8)},{'name':'ak','type':a8_0x43a492(0x12c),'description':a8_0x43a492(0x115)},{'name':'env','type':a8_0x43a492(0x12c),'description':a8_0x43a492(0x124)},{'name':a8_0x43a492(0xef),'type':'boolean','description':a8_0x43a492(0xe3),'default':!![]},{'name':a8_0x43a492(0x103),'type':'boolean','description':a8_0x43a492(0x106),'default':![]}],async 'execute'(_0x229443){const _0x2dc675=a8_0x43a492,_0x44f221=await resolveAuthWriteInput(_0x229443),_0x35bf01=resolveAuthScopeFlags(_0x229443),_0x522bbf={'accessKey':_0x44f221[_0x2dc675(0xf8)]};_0x44f221[_0x2dc675(0xe7)]&&(_0x522bbf[_0x2dc675(0xe7)]=_0x44f221[_0x2dc675(0xe7)]);writeScopedConfig(_0x522bbf,_0x35bf01);const _0x4f349b=_0x35bf01['global']?_0x2dc675(0xef):_0x2dc675(0x103),_0x483e65=_0x522bbf[_0x2dc675(0xe7)]?_0x2dc675(0x101)+_0x522bbf[_0x2dc675(0xe7)]+'.':'';return{'ok':!![],'message':_0x2dc675(0xfc)+_0x4f349b+'\x20scope.'+_0x483e65+_0x2dc675(0x127)+CLI_BIN_NAME+_0x2dc675(0xe2)};}},{'service':a8_0x43a492(0xf4),'command':a8_0x43a492(0x131),'description':a8_0x43a492(0x100),'risk':a8_0x43a492(0x11a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'global','type':'boolean','description':a8_0x43a492(0xeb),'default':!![]},{'name':a8_0x43a492(0x103),'type':a8_0x43a492(0xe1),'description':a8_0x43a492(0x10e),'default':![]}],async 'execute'(_0x3ae271){const _0x391102=a8_0x43a492,_0xdff2e=resolveAuthScopeFlags(_0x3ae271),_0x4331e2=readScopedConfig(_0xdff2e),_0x60ab40=!!_0x4331e2[_0x391102(0xf8)];delete _0x4331e2[_0x391102(0xf8)],writeScopedConfig(_0x4331e2,_0xdff2e);const _0x558441=_0xdff2e[_0x391102(0xef)]?'global':'project';if(_0x60ab40)return{'ok':!![],'message':_0x391102(0xf1)+_0x558441+_0x391102(0xe6)};return{'ok':!![],'message':_0x391102(0xe0)+_0x558441+'\x20config.\x20Nothing\x20to\x20clear.'};}},{'service':a8_0x43a492(0xf4),'command':a8_0x43a492(0xf7),'description':'Show\x20current\x20authentication\x20status','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'global','type':'boolean','description':'Read\x20from\x20global\x20config\x20(default)','default':!![]},{'name':'project','type':a8_0x43a492(0xe1),'description':a8_0x43a492(0x10b),'default':![]}],async 'execute'(_0x57acdc){const _0x55daf0=a8_0x43a492,_0x341cdb=resolveAuthScopeFlags(_0x57acdc),_0x3a134b=readScopedConfig(_0x341cdb),_0x41dcc4=productEnvName(_0x55daf0(0xf0)),_0x505181=productEnv(_0x55daf0(0xf0))||undefined,_0x52e4d4=_0x3a134b[_0x55daf0(0xf8)]||undefined,_0x49a314=_0x505181||_0x52e4d4,_0xf6fc21=_0x505181?_0x41dcc4+_0x55daf0(0x12f):_0x52e4d4?(_0x341cdb['global']?_0x55daf0(0xef):_0x55daf0(0x103))+'\x20config':null,_0x358135=[_0x55daf0(0xfd)+AUTH_MODE['ClientAk']];if(_0x49a314){const _0x530de7=_0x49a314['length']>0x8?''+_0x49a314[_0x55daf0(0x108)](0x0,0x8)+'*'['repeat'](_0x49a314[_0x55daf0(0x10f)]-0x8):_0x49a314;_0x358135[_0x55daf0(0xe5)]('AccessKey:\x20'+_0x530de7+(_0xf6fc21?_0x55daf0(0xff)+_0xf6fc21+')':''));}return!_0x49a314&&(_0x358135['push'](''),_0x358135[_0x55daf0(0xe5)](_0x55daf0(0xe9)),_0x358135[_0x55daf0(0xe5)](''),_0x358135['push'](_0x55daf0(0x121)+CLI_BIN_NAME+_0x55daf0(0x113)),_0x358135[_0x55daf0(0xe5)](''),_0x358135[_0x55daf0(0xe5)](_0x55daf0(0xde)+PRODUCT_CONFIG[_0x55daf0(0x10a)]+')'),_0x358135['push'](_0x55daf0(0xf6)),_0x358135[_0x55daf0(0xe5)](''),_0x358135[_0x55daf0(0xe5)]('Option\x20C:\x20environment\x20variable'),_0x358135[_0x55daf0(0xe5)](_0x55daf0(0x116)+_0x41dcc4+_0x55daf0(0x110)),_0x358135['push'](''),_0x358135[_0x55daf0(0xe5)](_0x55daf0(0x118)+CLI_BIN_NAME+_0x55daf0(0xe2)),_0x358135[_0x55daf0(0xe5)](_0x55daf0(0x10d)+CLI_BIN_NAME+_0x55daf0(0x102))),{'ok':!![],'message':_0x358135[_0x55daf0(0x12d)]('\x0a')};}},{'service':a8_0x43a492(0xf4),'command':a8_0x43a492(0xfe),'description':'Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','risk':'read','requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x2d74c1){const _0x2af655=a8_0x43a492,_0x92fe2f=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x92fe2f,'meta':{'env':_0x2d74c1[_0x2af655(0x111)]??_0x2af655(0x120)}}};}}];
1
+ const a8_0x329f89=a8_0x202d;(function(_0x199344,_0x331106){const _0xd8eb33=a8_0x202d,_0x4b39ec=_0x199344();while(!![]){try{const _0x33d788=parseInt(_0xd8eb33(0x213))/0x1+-parseInt(_0xd8eb33(0x1fd))/0x2*(parseInt(_0xd8eb33(0x1c1))/0x3)+-parseInt(_0xd8eb33(0x1dd))/0x4+-parseInt(_0xd8eb33(0x1f4))/0x5*(-parseInt(_0xd8eb33(0x1ee))/0x6)+parseInt(_0xd8eb33(0x1c6))/0x7*(-parseInt(_0xd8eb33(0x1db))/0x8)+-parseInt(_0xd8eb33(0x1ff))/0x9*(parseInt(_0xd8eb33(0x20e))/0xa)+parseInt(_0xd8eb33(0x1e1))/0xb;if(_0x33d788===_0x331106)break;else _0x4b39ec['push'](_0x4b39ec['shift']());}catch(_0x59cb9b){_0x4b39ec['push'](_0x4b39ec['shift']());}}}(a8_0x4898,0x203f8));import{readScopedConfig,writeScopedConfig}from'../../context.js';function a8_0x4898(){const _0x437a3c=['3ZAOGxu','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','AccessKey:\x20','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','\x20auth\x20login\x20--access-key\x20<ak_xxx>','720881MLPfYS','boolean','Shorthand\x20for\x20--access-key','daily','bool','\x20scope.','\x20config.','\x20auth\x20status','No\x20AccessKey\x20found\x20in\x20','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','accessKey','AccessKey\x20cleared\x20from\x20','Auth\x20config\x20reinitialized\x20in\x20','length','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','ClientAk','Then\x20verify\x20with:\x20','auth','nonInteractive','16HjKpnE','AccessKey\x20(ak_xxx...)','124168ydZPCF','Show\x20current\x20authentication\x20status','Read\x20from\x20global\x20config\x20(default)','\x20config','3631441HjIgSl','\x20(via\x20','write','join','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','global','userCenterDisplayName','trim','stdout','global-default','\x20doctor','validation','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','132FzotSe','cancelled','\x20env\x20var','isTTY','yes','ACCESS_KEY','47045QVPvbp','status','\x20Verify:\x20','read','Missing\x20accessKey.','info','string','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','Auth\x20mode:\x20','248174qkgxVG','push','66042pfaJkq','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','env','Clear\x20accessKey\x20from\x20config','production','init','access-key','Option\x20A:\x20','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','=ak_xxx','login','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','stdin','AccessKey\x20saved\x20to\x20','str','90ydpfqM','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','Tip:\x20you\x20can\x20also\x20run:','project','slice','22096Yditma','\x20Current\x20env:\x20','Write\x20to\x20global\x20config\x20(default)','development','Option\x20C:\x20environment\x20variable'];a8_0x4898=function(){return _0x437a3c;};return a8_0x4898();}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 a8_0x202d(_0x1df3ec,_0x120221){_0x1df3ec=_0x1df3ec-0x1bd;const _0x4898f6=a8_0x4898();let _0x202def=_0x4898f6[_0x1df3ec];return _0x202def;}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 _0x4defec=a8_0x202d;writeCliSideChannelLine('AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0x4defec(0x1e7)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x4defec(0x210)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x4defec(0x1c5));}function buildAccessKeySetupGuide(){const _0x29b0b4=a8_0x202d;return[_0x29b0b4(0x1c2)+PRODUCT_CONFIG[_0x29b0b4(0x1e7)]+':',USER_ACCESS_KEY_CREATE_URL,_0x29b0b4(0x20f)+CLI_BIN_NAME+_0x29b0b4(0x20a)][_0x29b0b4(0x1e4)]('\x0a');}function canPromptForAccessKey(_0x352443){const _0x1f9305=a8_0x202d;return!_0x352443['nonInteractive']&&process[_0x1f9305(0x20b)]['isTTY']!==![]&&process[_0x1f9305(0x1e9)][_0x1f9305(0x1f1)]!==![];}function resolveAuthScopeFlags(_0x390d42){const _0x1be5e5=a8_0x202d;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x390d42[_0x1be5e5(0x1ca)](_0x1be5e5(0x1e6)),'explicitProject':_0x390d42[_0x1be5e5(0x1ca)](_0x1be5e5(0x211)),'policy':_0x1be5e5(0x1ea)}));}async function resolveAuthWriteInput(_0x4bd6a9){const _0x540ed4=a8_0x202d;let _0x5d287d=(_0x4bd6a9[_0x540ed4(0x20d)](_0x540ed4(0x205))||_0x4bd6a9[_0x540ed4(0x20d)]('ak')||'')[_0x540ed4(0x1e8)]();const _0x5bcbfb=(_0x4bd6a9[_0x540ed4(0x20d)](_0x540ed4(0x201))||'')[_0x540ed4(0x1e8)]();if(!_0x5d287d&&canPromptForAccessKey(_0x4bd6a9))try{showAccessKeyCreateHint(),_0x5d287d=await promptAccessKey('');}catch(_0x3f94fd){if(isAbortPrompt(_0x3f94fd))throw CliErrors[_0x540ed4(0x1ef)]();throw _0x3f94fd;}if(!_0x5d287d)throw CliErrors[_0x540ed4(0x1ec)](_0x540ed4(0x1f8),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN['test'](_0x5d287d))throw CliErrors[_0x540ed4(0x1ec)]('Invalid\x20accessKey\x20format:\x20\x22'+_0x5d287d+'\x22','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars');if(!_0x5bcbfb)return{'accessKey':_0x5d287d};const _0x42dadc=normalizeEnv(_0x5bcbfb);return{'accessKey':_0x5d287d,'env':isDaily(_0x42dadc)?_0x540ed4(0x1c9):isDev(_0x42dadc)?_0x540ed4(0x1bf):_0x540ed4(0x203)};}export const authDefinitions=[{'service':a8_0x329f89(0x1d9),'command':a8_0x329f89(0x209),'description':a8_0x329f89(0x207),'risk':a8_0x329f89(0x1e3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a8_0x329f89(0x205),'type':'string','description':a8_0x329f89(0x1dc)},{'name':'ak','type':a8_0x329f89(0x1fa),'description':'Shorthand\x20for\x20--access-key'},{'name':a8_0x329f89(0x1e6),'type':a8_0x329f89(0x1c7),'description':a8_0x329f89(0x1be),'default':!![]},{'name':a8_0x329f89(0x211),'type':'boolean','description':'Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x27067b){const _0x18aa18=a8_0x329f89;if(_0x27067b[_0x18aa18(0x1ca)](_0x18aa18(0x1f2)))throw CliErrors['validation']('`auth\x20login`\x20does\x20not\x20support\x20--yes.','Use\x20`'+CLI_BIN_NAME+'\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`'+CLI_BIN_NAME+_0x18aa18(0x1d5));const _0xe57fdd=(_0x27067b['str']('access-key')||_0x27067b[_0x18aa18(0x20d)]('ak')||'')[_0x18aa18(0x1e8)]();if(!_0xe57fdd&&_0x27067b[_0x18aa18(0x1da)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x2612f2=await resolveAuthWriteInput(_0x27067b),_0x236fca=resolveAuthScopeFlags(_0x27067b),_0x38baed=readScopedConfig(_0x236fca);_0x38baed[_0x18aa18(0x1d0)]=_0x2612f2['accessKey'];_0x2612f2[_0x18aa18(0x201)]&&(_0x38baed[_0x18aa18(0x201)]=_0x2612f2[_0x18aa18(0x201)]);writeScopedConfig(_0x38baed,_0x236fca);const _0xa6af97=_0x236fca[_0x18aa18(0x1e6)]?_0x18aa18(0x1e6):_0x18aa18(0x211),_0x282294=_0x38baed['env']?_0x18aa18(0x1bd)+_0x38baed[_0x18aa18(0x201)]+'.':'';return{'ok':!![],'message':_0x18aa18(0x20c)+_0xa6af97+_0x18aa18(0x1cc)+_0x282294+'\x20Verify:\x20'+CLI_BIN_NAME+_0x18aa18(0x1cd)};}},{'service':a8_0x329f89(0x1d9),'command':a8_0x329f89(0x204),'description':'Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','risk':a8_0x329f89(0x1e3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a8_0x329f89(0x205),'type':a8_0x329f89(0x1fa),'description':a8_0x329f89(0x1dc)},{'name':'ak','type':'string','description':a8_0x329f89(0x1c8)},{'name':a8_0x329f89(0x201),'type':a8_0x329f89(0x1fa),'description':a8_0x329f89(0x1d4)},{'name':'global','type':a8_0x329f89(0x1c7),'description':a8_0x329f89(0x1be),'default':!![]},{'name':a8_0x329f89(0x211),'type':a8_0x329f89(0x1c7),'description':a8_0x329f89(0x200),'default':![]}],async 'execute'(_0x2b7a19){const _0x18ce10=a8_0x329f89,_0x273dd1=await resolveAuthWriteInput(_0x2b7a19),_0x2a04f4=resolveAuthScopeFlags(_0x2b7a19),_0x53ed7a={'accessKey':_0x273dd1[_0x18ce10(0x1d0)]};_0x273dd1[_0x18ce10(0x201)]&&(_0x53ed7a[_0x18ce10(0x201)]=_0x273dd1['env']);writeScopedConfig(_0x53ed7a,_0x2a04f4);const _0x150353=_0x2a04f4[_0x18ce10(0x1e6)]?_0x18ce10(0x1e6):'project',_0xf07a8c=_0x53ed7a[_0x18ce10(0x201)]?_0x18ce10(0x1bd)+_0x53ed7a[_0x18ce10(0x201)]+'.':'';return{'ok':!![],'message':_0x18ce10(0x1d2)+_0x150353+_0x18ce10(0x1cb)+_0xf07a8c+_0x18ce10(0x1f6)+CLI_BIN_NAME+_0x18ce10(0x1cd)};}},{'service':a8_0x329f89(0x1d9),'command':'logout','description':a8_0x329f89(0x202),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a8_0x329f89(0x1e6),'type':a8_0x329f89(0x1c7),'description':'Clear\x20from\x20global\x20config\x20(default)','default':!![]},{'name':a8_0x329f89(0x211),'type':a8_0x329f89(0x1c7),'description':'Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x516808){const _0x4fe0b8=a8_0x329f89,_0x392664=resolveAuthScopeFlags(_0x516808),_0x47774b=readScopedConfig(_0x392664),_0x36d803=!!_0x47774b[_0x4fe0b8(0x1d0)];delete _0x47774b[_0x4fe0b8(0x1d0)],writeScopedConfig(_0x47774b,_0x392664);const _0x22ff89=_0x392664[_0x4fe0b8(0x1e6)]?_0x4fe0b8(0x1e6):_0x4fe0b8(0x211);if(_0x36d803)return{'ok':!![],'message':_0x4fe0b8(0x1d1)+_0x22ff89+_0x4fe0b8(0x1cc)};return{'ok':!![],'message':_0x4fe0b8(0x1ce)+_0x22ff89+'\x20config.\x20Nothing\x20to\x20clear.'};}},{'service':a8_0x329f89(0x1d9),'command':a8_0x329f89(0x1f5),'description':a8_0x329f89(0x1de),'risk':a8_0x329f89(0x1f7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'global','type':a8_0x329f89(0x1c7),'description':a8_0x329f89(0x1df),'default':!![]},{'name':a8_0x329f89(0x211),'type':a8_0x329f89(0x1c7),'description':a8_0x329f89(0x1c4),'default':![]}],async 'execute'(_0x23976d){const _0x543229=a8_0x329f89,_0x51e287=resolveAuthScopeFlags(_0x23976d),_0x5c3001=readScopedConfig(_0x51e287),_0x60e594=productEnvName(_0x543229(0x1f3)),_0x51ddc2=productEnv(_0x543229(0x1f3))||undefined,_0x30f7b5=_0x5c3001[_0x543229(0x1d0)]||undefined,_0x5a2a8f=_0x51ddc2||_0x30f7b5,_0x428dcd=_0x51ddc2?_0x60e594+_0x543229(0x1f0):_0x30f7b5?(_0x51e287[_0x543229(0x1e6)]?_0x543229(0x1e6):'project')+_0x543229(0x1e0):null,_0xa721a4=[_0x543229(0x1fc)+AUTH_MODE[_0x543229(0x1d7)]];if(_0x5a2a8f){const _0x55eff0=_0x5a2a8f[_0x543229(0x1d3)]>0x8?''+_0x5a2a8f[_0x543229(0x212)](0x0,0x8)+'*'['repeat'](_0x5a2a8f[_0x543229(0x1d3)]-0x8):_0x5a2a8f;_0xa721a4[_0x543229(0x1fe)](_0x543229(0x1c3)+_0x55eff0+(_0x428dcd?_0x543229(0x1e2)+_0x428dcd+')':''));}return!_0x5a2a8f&&(_0xa721a4[_0x543229(0x1fe)](''),_0xa721a4[_0x543229(0x1fe)](_0x543229(0x1e5)),_0xa721a4[_0x543229(0x1fe)](''),_0xa721a4['push'](_0x543229(0x206)+CLI_BIN_NAME+_0x543229(0x1ed)),_0xa721a4['push'](''),_0xa721a4[_0x543229(0x1fe)]('Option\x20B:\x20apps\x20config\x20('+PRODUCT_CONFIG['newConfigFileName']+')'),_0xa721a4[_0x543229(0x1fe)](_0x543229(0x1cf)),_0xa721a4['push'](''),_0xa721a4[_0x543229(0x1fe)](_0x543229(0x1c0)),_0xa721a4[_0x543229(0x1fe)]('\x20\x20export\x20'+_0x60e594+_0x543229(0x208)),_0xa721a4['push'](''),_0xa721a4[_0x543229(0x1fe)](_0x543229(0x1d8)+CLI_BIN_NAME+_0x543229(0x1cd)),_0xa721a4[_0x543229(0x1fe)](_0x543229(0x1d6)+CLI_BIN_NAME+_0x543229(0x1eb))),{'ok':!![],'message':_0xa721a4['join']('\x0a')};}},{'service':a8_0x329f89(0x1d9),'command':a8_0x329f89(0x1f9),'description':a8_0x329f89(0x1fb),'risk':a8_0x329f89(0x1f7),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x40b08a){const _0x465eaa=a8_0x329f89,_0x46689c=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x46689c,'meta':{'env':_0x40b08a['envName']??_0x465eaa(0x203)}}};}}];
@@ -1 +1 @@
1
- (function(_0x3acba1,_0x4fc04f){const _0x41d1f2=a9_0x5c46,_0x389cd1=_0x3acba1();while(!![]){try{const _0x14a000=parseInt(_0x41d1f2(0xfd))/0x1+parseInt(_0x41d1f2(0x106))/0x2+-parseInt(_0x41d1f2(0x113))/0x3*(parseInt(_0x41d1f2(0x104))/0x4)+-parseInt(_0x41d1f2(0x114))/0x5+parseInt(_0x41d1f2(0x100))/0x6*(parseInt(_0x41d1f2(0x101))/0x7)+parseInt(_0x41d1f2(0x112))/0x8*(-parseInt(_0x41d1f2(0x107))/0x9)+parseInt(_0x41d1f2(0xfe))/0xa*(parseInt(_0x41d1f2(0x10a))/0xb);if(_0x14a000===_0x4fc04f)break;else _0x389cd1['push'](_0x389cd1['shift']());}catch(_0x28dd1c){_0x389cd1['push'](_0x389cd1['shift']());}}}(a9_0x4156,0xb52ef));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x3e8386=a9_0x5c46;super(_0x3e8386(0xff)),this[_0x3e8386(0x10d)]='AbortPrompt';}}function a9_0x5c46(_0x3bb205,_0x11de76){_0x3bb205=_0x3bb205-0xfd;const _0x41563d=a9_0x4156();let _0x5c46be=_0x41563d[_0x3bb205];return _0x5c46be;}function a9_0x4156(){const _0x474963=['433208ibcxoj','12zMvKXX','6025235mpOvDs','AccessKey\x20(paste\x20ak_...):\x20','615241xdUUTa','10wXHDeX','User\x20aborted\x20prompt','396810KrCISV','7VFTaDW','once','AbortPrompt','928640TmENVI','SIGINT','2482676rWEVhG','27wKGpFO','stdout','race','12271083gxVfSv','question','AccessKey\x20(','name','):\x20','close','stdin','removeListener'];a9_0x4156=function(){return _0x474963;};return a9_0x4156();}function createSafeRl(){const _0x39a364=a9_0x5c46,_0xc40ee7=createInterface({'input':process[_0x39a364(0x110)],'output':process[_0x39a364(0x108)]});let _0x197c4a;const _0x5ee792=new Promise((_0x531afc,_0x949960)=>{const _0x4d229c=_0x39a364;_0x197c4a=()=>{const _0x1d1e18=a9_0x5c46;_0x197c4a&&(_0xc40ee7[_0x1d1e18(0x111)](_0x1d1e18(0x105),_0x197c4a),_0x197c4a=undefined);try{_0xc40ee7['close']();}catch{}_0x949960(new AbortPrompt());},_0xc40ee7[_0x4d229c(0x102)](_0x4d229c(0x105),_0x197c4a);}),_0x48c284=()=>{const _0x305498=_0x39a364;_0x197c4a&&(_0xc40ee7[_0x305498(0x111)](_0x305498(0x105),_0x197c4a),_0x197c4a=undefined);try{_0xc40ee7[_0x305498(0x10f)]();}catch{}};return{'rl':_0xc40ee7,'abortPromise':_0x5ee792,'disposeSuccess':_0x48c284};}export async function promptAccessKey(_0x54fd49=''){const _0x1b7c8a=a9_0x5c46,{rl:_0x2239d9,abortPromise:_0x30e458,disposeSuccess:_0x40e145}=createSafeRl(),_0x5e9020=new Promise(_0x86885b=>{const _0x4ae2b3=a9_0x5c46,_0x2a817e=_0x54fd49?_0x4ae2b3(0x10c)+_0x54fd49+_0x4ae2b3(0x10e):_0x4ae2b3(0x115);_0x2239d9[_0x4ae2b3(0x10b)](_0x2a817e,_0x558f03=>{_0x40e145(),_0x86885b(_0x558f03['trim']()||_0x54fd49);});});return Promise[_0x1b7c8a(0x109)]([_0x5e9020,_0x30e458]);}export function isAbortPrompt(_0x3a1304){const _0x1ee9ba=a9_0x5c46;return _0x3a1304 instanceof Error&&_0x3a1304[_0x1ee9ba(0x10d)]===_0x1ee9ba(0x103);}
1
+ function a9_0x29b0(_0x425da4,_0x55a114){_0x425da4=_0x425da4-0x6c;const _0x21d5ac=a9_0x21d5();let _0x29b08a=_0x21d5ac[_0x425da4];return _0x29b08a;}(function(_0xc8685d,_0x4bc07e){const _0xfe836=a9_0x29b0,_0x38a1b9=_0xc8685d();while(!![]){try{const _0x396e22=parseInt(_0xfe836(0x6d))/0x1+parseInt(_0xfe836(0x70))/0x2*(-parseInt(_0xfe836(0x7d))/0x3)+parseInt(_0xfe836(0x72))/0x4*(-parseInt(_0xfe836(0x76))/0x5)+-parseInt(_0xfe836(0x74))/0x6*(-parseInt(_0xfe836(0x7c))/0x7)+parseInt(_0xfe836(0x78))/0x8+-parseInt(_0xfe836(0x82))/0x9+-parseInt(_0xfe836(0x77))/0xa*(-parseInt(_0xfe836(0x81))/0xb);if(_0x396e22===_0x4bc07e)break;else _0x38a1b9['push'](_0x38a1b9['shift']());}catch(_0x239599){_0x38a1b9['push'](_0x38a1b9['shift']());}}}(a9_0x21d5,0x42354));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x1745cf=a9_0x29b0;super(_0x1745cf(0x79)),this['name']=_0x1745cf(0x6c);}}function a9_0x21d5(){const _0x58a751=['2DoIjRI','name','9252XiEjql','):\x20','6leSrdx','stdout','835YctihY','150GBcMWS','3925784NYoCjn','User\x20aborted\x20prompt','question','AccessKey\x20(paste\x20ak_...):\x20','3371123yQBsje','1545849xbSOPL','once','close','race','255739VeuMZe','2466153lYAWiT','trim','AbortPrompt','125712rSCzXK','stdin','removeListener'];a9_0x21d5=function(){return _0x58a751;};return a9_0x21d5();}function createSafeRl(){const _0x129f10=a9_0x29b0,_0x57ff56=createInterface({'input':process[_0x129f10(0x6e)],'output':process[_0x129f10(0x75)]});let _0x4b4231;const _0x2ebc0a=new Promise((_0xb6c54e,_0x56c5d7)=>{const _0x165d9a=_0x129f10;_0x4b4231=()=>{const _0x223619=a9_0x29b0;_0x4b4231&&(_0x57ff56[_0x223619(0x6f)]('SIGINT',_0x4b4231),_0x4b4231=undefined);try{_0x57ff56[_0x223619(0x7f)]();}catch{}_0x56c5d7(new AbortPrompt());},_0x57ff56[_0x165d9a(0x7e)]('SIGINT',_0x4b4231);}),_0xc38980=()=>{const _0x5e9f5e=_0x129f10;_0x4b4231&&(_0x57ff56['removeListener']('SIGINT',_0x4b4231),_0x4b4231=undefined);try{_0x57ff56[_0x5e9f5e(0x7f)]();}catch{}};return{'rl':_0x57ff56,'abortPromise':_0x2ebc0a,'disposeSuccess':_0xc38980};}export async function promptAccessKey(_0x1605a8=''){const _0x256c14=a9_0x29b0,{rl:_0x20971b,abortPromise:_0x1ed0da,disposeSuccess:_0x2ceeca}=createSafeRl(),_0x3ba61d=new Promise(_0x1939be=>{const _0x4aa7f8=a9_0x29b0,_0x1fbc75=_0x1605a8?'AccessKey\x20('+_0x1605a8+_0x4aa7f8(0x73):_0x4aa7f8(0x7b);_0x20971b[_0x4aa7f8(0x7a)](_0x1fbc75,_0xc5ced2=>{const _0x111f82=_0x4aa7f8;_0x2ceeca(),_0x1939be(_0xc5ced2[_0x111f82(0x83)]()||_0x1605a8);});});return Promise[_0x256c14(0x80)]([_0x3ba61d,_0x1ed0da]);}export function isAbortPrompt(_0x1d562d){const _0x1d6479=a9_0x29b0;return _0x1d562d instanceof Error&&_0x1d562d[_0x1d6479(0x71)]===_0x1d6479(0x6c);}
@@ -1 +1 @@
1
- const a10_0x53a44e=a10_0xabc5;(function(_0xa37971,_0x26c26a){const _0x4b0706=a10_0xabc5,_0x4b2131=_0xa37971();while(!![]){try{const _0xe2e94c=-parseInt(_0x4b0706(0x1bc))/0x1*(-parseInt(_0x4b0706(0x1c1))/0x2)+parseInt(_0x4b0706(0x1be))/0x3*(-parseInt(_0x4b0706(0x1c5))/0x4)+parseInt(_0x4b0706(0x1c6))/0x5+parseInt(_0x4b0706(0x1b7))/0x6*(-parseInt(_0x4b0706(0x1b2))/0x7)+parseInt(_0x4b0706(0x1bf))/0x8+-parseInt(_0x4b0706(0x1b8))/0x9*(parseInt(_0x4b0706(0x1b4))/0xa)+parseInt(_0x4b0706(0x1b3))/0xb;if(_0xe2e94c===_0x26c26a)break;else _0x4b2131['push'](_0x4b2131['shift']());}catch(_0x586c0f){_0x4b2131['push'](_0x4b2131['shift']());}}}(a10_0x58e4,0x3cba9));import{getBffScriptInfo}from'../../core/api-client.js';function a10_0x58e4(){const _0xa0fe0c=['description','createdTime','12OpBAYJ','1712645lAmAaH','num','14oAmgUZ','2072334BYGMGu','855000ofJkwl','appCode','verbose','1272246wwBqHf','9SAIMwS','read','bool','functionName','53039fpIvrp','Script\x20ID','163806KBRkjb','1856744PdQKOS','(none)','6Otuonp','Get\x20BFF\x20script\x20details\x20by\x20ID'];a10_0x58e4=function(){return _0xa0fe0c;};return a10_0x58e4();}import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';function a10_0xabc5(_0x54c8c5,_0x4a96a2){_0x54c8c5=_0x54c8c5-0x1b2;const _0x58e415=a10_0x58e4();let _0xabc556=_0x58e415[_0x54c8c5];return _0xabc556;}export const bffDetail={'service':'bff','command':'detail','description':a10_0x53a44e(0x1c2),'risk':a10_0x53a44e(0x1b9),'flags':[{...ID_FLAG,'description':a10_0x53a44e(0x1bd)},VERBOSE_FLAG],async 'execute'(_0x3272ee){const _0x343ff3=a10_0x53a44e,_0x216cdf=await getBffScriptInfo(_0x3272ee[_0x343ff3(0x1c7)]('id')),_0x55df9e=_0x3272ee[_0x343ff3(0x1ba)](_0x343ff3(0x1b6));if(_0x55df9e)return{'ok':!![],'data':_0x216cdf};return{'ok':!![],'data':{'id':_0x216cdf['id'],'appCode':_0x216cdf[_0x343ff3(0x1b5)],'functionName':_0x216cdf[_0x343ff3(0x1bb)]??'','scriptType':_0x216cdf['scriptType'],'description':_0x216cdf[_0x343ff3(0x1c3)]||_0x343ff3(0x1c0),'createdTime':_0x216cdf[_0x343ff3(0x1c4)]??'','updatedTime':_0x216cdf['updatedTime']??''}};}};
1
+ function a10_0x2c48(_0x5690a5,_0x57f384){_0x5690a5=_0x5690a5-0x11e;const _0x921cad=a10_0x921c();let _0x2c4823=_0x921cad[_0x5690a5];return _0x2c4823;}function a10_0x921c(){const _0x466489=['Script\x20ID','24TjTWHJ','100954tTtTRL','6770sYajsA','Get\x20BFF\x20script\x20details\x20by\x20ID','num','(none)','bff','997996eStKoE','96QvaQAR','updatedTime','description','detail','64yxgCPG','17019xKKcxi','192830WUAtpN','82285QGvUOU','verbose','4383dxwrpW','50IdOjbe','71596gXjLdO','bool'];a10_0x921c=function(){return _0x466489;};return a10_0x921c();}const a10_0x4a7b03=a10_0x2c48;(function(_0x3a58fa,_0x16cbbf){const _0xcd19b8=a10_0x2c48,_0x129780=_0x3a58fa();while(!![]){try{const _0x3fd2ca=-parseInt(_0xcd19b8(0x12e))/0x1+-parseInt(_0xcd19b8(0x129))/0x2*(parseInt(_0xcd19b8(0x124))/0x3)+parseInt(_0xcd19b8(0x11e))/0x4+parseInt(_0xcd19b8(0x126))/0x5*(parseInt(_0xcd19b8(0x12d))/0x6)+parseInt(_0xcd19b8(0x12a))/0x7*(-parseInt(_0xcd19b8(0x123))/0x8)+-parseInt(_0xcd19b8(0x128))/0x9*(-parseInt(_0xcd19b8(0x12f))/0xa)+-parseInt(_0xcd19b8(0x125))/0xb*(parseInt(_0xcd19b8(0x11f))/0xc);if(_0x3fd2ca===_0x16cbbf)break;else _0x129780['push'](_0x129780['shift']());}catch(_0x52e116){_0x129780['push'](_0x129780['shift']());}}}(a10_0x921c,0x2bfd7));import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a10_0x4a7b03(0x133),'command':a10_0x4a7b03(0x122),'description':a10_0x4a7b03(0x130),'risk':'read','flags':[{...ID_FLAG,'description':a10_0x4a7b03(0x12c)},VERBOSE_FLAG],async 'execute'(_0x1b5b92){const _0x7d9c86=a10_0x4a7b03,_0x5b59e8=await getBffScriptInfo(_0x1b5b92[_0x7d9c86(0x131)]('id')),_0x432bcd=_0x1b5b92[_0x7d9c86(0x12b)](_0x7d9c86(0x127));if(_0x432bcd)return{'ok':!![],'data':_0x5b59e8};return{'ok':!![],'data':{'id':_0x5b59e8['id'],'appCode':_0x5b59e8['appCode'],'functionName':_0x5b59e8['functionName']??'','scriptType':_0x5b59e8['scriptType'],'description':_0x5b59e8[_0x7d9c86(0x121)]||_0x7d9c86(0x132),'createdTime':_0x5b59e8['createdTime']??'','updatedTime':_0x5b59e8[_0x7d9c86(0x120)]??''}};}};
@@ -1 +1 @@
1
- const a11_0x9ad9ad=a11_0x4971;(function(_0x409466,_0x195a67){const _0x42d114=a11_0x4971,_0x3abafb=_0x409466();while(!![]){try{const _0x48ca39=-parseInt(_0x42d114(0x195))/0x1+-parseInt(_0x42d114(0x196))/0x2+parseInt(_0x42d114(0x19d))/0x3*(parseInt(_0x42d114(0x19e))/0x4)+parseInt(_0x42d114(0x197))/0x5+parseInt(_0x42d114(0x199))/0x6*(-parseInt(_0x42d114(0x1a1))/0x7)+parseInt(_0x42d114(0x19c))/0x8*(-parseInt(_0x42d114(0x19f))/0x9)+parseInt(_0x42d114(0x19a))/0xa;if(_0x48ca39===_0x195a67)break;else _0x3abafb['push'](_0x3abafb['shift']());}catch(_0x1495d7){_0x3abafb['push'](_0x3abafb['shift']());}}}(a11_0xfd75,0xb6f4f));import{executeSdkBff}from'../../core/sdk-client.js';function a11_0x4971(_0x2eaabd,_0x164431){_0x2eaabd=_0x2eaabd-0x193;const _0xfd75a5=a11_0xfd75();let _0x49715b=_0xfd75a5[_0x2eaabd];return _0x49715b;}import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':'bff','command':'exec','description':a11_0x9ad9ad(0x19b),'risk':'read','flags':[{...NAME_FLAG,'required':!![],'description':'BFF\x20function\x20name\x20to\x20execute'},PARAMS_FLAG],async 'execute'(_0x4cf013){const _0x3e9c5b=a11_0x9ad9ad,_0x417c97=parseJsonParams(_0x4cf013[_0x3e9c5b(0x193)]('params')),_0x4ce022=Date[_0x3e9c5b(0x194)](),_0x51db75=await executeSdkBff(_0x4cf013[_0x3e9c5b(0x193)](_0x3e9c5b(0x1a0)),_0x417c97),_0x144051=Date['now']()-_0x4ce022;return{'ok':!![],'data':{'result':_0x51db75,'elapsed':_0x144051},'message':_0x3e9c5b(0x198)+_0x144051+'ms'};}};function a11_0xfd75(){const _0x51dae6=['3184132WJVHha','1094283ZhjmpJ','name','14756IGawHM','str','now','641701OyMKJF','1405284Ufvdcq','4084665SDBMZZ','BFF\x20executed\x20in\x20','2928NoSYGr','18742330hhOjxH','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','24hpcwXe','3aFxCEr'];a11_0xfd75=function(){return _0x51dae6;};return a11_0xfd75();}
1
+ const a11_0x52f233=a11_0x2b41;(function(_0x2f86cd,_0x5139fd){const _0x281797=a11_0x2b41,_0x5ca094=_0x2f86cd();while(!![]){try{const _0x4e66c8=-parseInt(_0x281797(0xb5))/0x1*(parseInt(_0x281797(0xb2))/0x2)+parseInt(_0x281797(0xb4))/0x3+parseInt(_0x281797(0xad))/0x4*(parseInt(_0x281797(0xb3))/0x5)+-parseInt(_0x281797(0xaf))/0x6*(parseInt(_0x281797(0xb1))/0x7)+parseInt(_0x281797(0xb9))/0x8*(-parseInt(_0x281797(0xbc))/0x9)+parseInt(_0x281797(0xb8))/0xa+parseInt(_0x281797(0xb6))/0xb;if(_0x4e66c8===_0x5139fd)break;else _0x5ca094['push'](_0x5ca094['shift']());}catch(_0x5546f6){_0x5ca094['push'](_0x5ca094['shift']());}}}(a11_0x200a,0x50314));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';function a11_0x200a(){const _0x5f0146=['7230971qKvTzh','BFF\x20function\x20name\x20to\x20execute','5350280nGnKzu','3192896micalT','read','str','9TjkusF','bff','params','now','52CbpvPg','exec','180PhCARQ','BFF\x20executed\x20in\x20','105973xaTgHt','1215926skuCZP','16265EyCMps','1665105ObZOKp','1nqhZOG'];a11_0x200a=function(){return _0x5f0146;};return a11_0x200a();}function a11_0x2b41(_0x3a38dd,_0x4a98a3){_0x3a38dd=_0x3a38dd-0xac;const _0x200a73=a11_0x200a();let _0x2b4161=_0x200a73[_0x3a38dd];return _0x2b4161;}import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a11_0x52f233(0xbd),'command':a11_0x52f233(0xae),'description':'Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','risk':a11_0x52f233(0xba),'flags':[{...NAME_FLAG,'required':!![],'description':a11_0x52f233(0xb7)},PARAMS_FLAG],async 'execute'(_0x3d4031){const _0x455775=a11_0x52f233,_0xe1b819=parseJsonParams(_0x3d4031[_0x455775(0xbb)](_0x455775(0xbe))),_0x4373ab=Date[_0x455775(0xac)](),_0x297307=await executeSdkBff(_0x3d4031[_0x455775(0xbb)]('name'),_0xe1b819),_0x22640c=Date[_0x455775(0xac)]()-_0x4373ab;return{'ok':!![],'data':{'result':_0x297307,'elapsed':_0x22640c},'message':_0x455775(0xb0)+_0x22640c+'ms'};}};
@@ -1 +1 @@
1
- (function(_0x5e1122,_0x10d8d6){const _0x28548e=a12_0x4431,_0x4d2187=_0x5e1122();while(!![]){try{const _0x1da860=-parseInt(_0x28548e(0x18e))/0x1*(-parseInt(_0x28548e(0x18f))/0x2)+-parseInt(_0x28548e(0x194))/0x3*(-parseInt(_0x28548e(0x18c))/0x4)+-parseInt(_0x28548e(0x190))/0x5*(-parseInt(_0x28548e(0x192))/0x6)+parseInt(_0x28548e(0x193))/0x7+-parseInt(_0x28548e(0x195))/0x8*(parseInt(_0x28548e(0x18b))/0x9)+parseInt(_0x28548e(0x191))/0xa+-parseInt(_0x28548e(0x18d))/0xb;if(_0x1da860===_0x10d8d6)break;else _0x4d2187['push'](_0x4d2187['shift']());}catch(_0x331a8d){_0x4d2187['push'](_0x4d2187['shift']());}}}(a12_0x4051,0x8a957));function a12_0x4431(_0x342ce9,_0x414cec){_0x342ce9=_0x342ce9-0x18b;const _0x40512f=a12_0x4051();let _0x44310d=_0x40512f[_0x342ce9];return _0x44310d;}import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];function a12_0x4051(){const _0x560a3f=['9736ZeVjIL','4356FjNLLb','12WpevPR','18409160xQqnCI','412zsMbdv','2446buLHoZ','1953345GhMvLB','7990790jRswye','12qwcqlp','4821467IEqdqU','57153AcTMJm'];a12_0x4051=function(){return _0x560a3f;};return a12_0x4051();}
1
+ (function(_0x52f57f,_0x164038){const _0x4d1edb=a12_0x1b89,_0x4d3e00=_0x52f57f();while(!![]){try{const _0x4af16c=-parseInt(_0x4d1edb(0x85))/0x1+parseInt(_0x4d1edb(0x86))/0x2*(parseInt(_0x4d1edb(0x81))/0x3)+-parseInt(_0x4d1edb(0x82))/0x4*(parseInt(_0x4d1edb(0x80))/0x5)+-parseInt(_0x4d1edb(0x84))/0x6*(parseInt(_0x4d1edb(0x7d))/0x7)+-parseInt(_0x4d1edb(0x7e))/0x8+-parseInt(_0x4d1edb(0x7f))/0x9+parseInt(_0x4d1edb(0x83))/0xa;if(_0x4af16c===_0x164038)break;else _0x4d3e00['push'](_0x4d3e00['shift']());}catch(_0x18505d){_0x4d3e00['push'](_0x4d3e00['shift']());}}}(a12_0x54a6,0xc8cc5));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';function a12_0x54a6(){const _0x33f04a=['4999240gzeEzB','4909572xMNvZN','915rDXJLW','2535DevXno','292oeYwkF','44512930fwgMnu','4043970tHEnCc','1559277AoeJUj','1094BgPumc','14YqcxnK'];a12_0x54a6=function(){return _0x33f04a;};return a12_0x54a6();}function a12_0x1b89(_0x8a9d26,_0x363b32){_0x8a9d26=_0x8a9d26-0x7d;const _0x54a6f9=a12_0x54a6();let _0x1b89fd=_0x54a6f9[_0x8a9d26];return _0x1b89fd;}export const bffDefinitions=[bffDetail,bffExec];
@@ -1 +1 @@
1
- (function(_0x23e6d2,_0x479355){const _0x33fe7a=a13_0x1202,_0x5984ca=_0x23e6d2();while(!![]){try{const _0x4e86f3=-parseInt(_0x33fe7a(0x1bf))/0x1*(-parseInt(_0x33fe7a(0x1c2))/0x2)+-parseInt(_0x33fe7a(0x1c4))/0x3+parseInt(_0x33fe7a(0x1bc))/0x4+-parseInt(_0x33fe7a(0x1ce))/0x5*(-parseInt(_0x33fe7a(0x1ba))/0x6)+parseInt(_0x33fe7a(0x1c3))/0x7*(-parseInt(_0x33fe7a(0x1be))/0x8)+parseInt(_0x33fe7a(0x1ca))/0x9*(-parseInt(_0x33fe7a(0x1c0))/0xa)+-parseInt(_0x33fe7a(0x1d2))/0xb*(-parseInt(_0x33fe7a(0x1bd))/0xc);if(_0x4e86f3===_0x479355)break;else _0x5984ca['push'](_0x5984ca['shift']());}catch(_0x2e1edf){_0x5984ca['push'](_0x5984ca['shift']());}}}(a13_0x5e2b,0x3e9d0));import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';function a13_0x1202(_0x48c4be,_0x56cc20){_0x48c4be=_0x48c4be-0x1b9;const _0x5e2b16=a13_0x5e2b();let _0x120299=_0x5e2b16[_0x48c4be];return _0x120299;}function a13_0x5e2b(){const _0xd7e745=['10rJEBKJ','project','2kRdzsg','2132837ccwGYF','605688sQlDOj','\x20init`\x20first.','project-or-global-explicit','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','project-default',',\x20or\x20run\x20`','2783943bMwolN','global-default','newConfigFileName','inProject','1405acDvhV','\x20found).','validation','Not\x20inside\x20a\x20project\x20(no\x20','8008946xQqedC','\x20(global)','2034cEnbPV','global','122528kZsqYp','12nNDuad','8oNnzLi','218401QXnOEv'];a13_0x5e2b=function(){return _0xd7e745;};return a13_0x5e2b();}export function resolveConfigScope(_0x4420af){const _0x16a8b3=a13_0x1202,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x358e8a}=_0x4420af;if(explicitGlobal&&explicitProject)throw CliErrors[_0x16a8b3(0x1d0)](_0x16a8b3(0x1c7),'Use\x20only\x20one\x20config\x20scope\x20flag.');if(explicitGlobal)return _0x16a8b3(0x1bb);if(explicitProject)return _0x16a8b3(0x1c1);switch(_0x358e8a){case _0x16a8b3(0x1cb):return _0x16a8b3(0x1bb);case _0x16a8b3(0x1c8):return _0x4420af['inProject']??isInProject()?_0x16a8b3(0x1c1):'global';case _0x16a8b3(0x1c6):if(!(_0x4420af[_0x16a8b3(0x1cd)]??isInProject()))throw CliErrors[_0x16a8b3(0x1d0)](_0x16a8b3(0x1d1)+PRODUCT_CONFIG[_0x16a8b3(0x1cc)]+_0x16a8b3(0x1cf),'Add\x20--global\x20to\x20write\x20to\x20~/'+PRODUCT_CONFIG['newConfigFileName']+_0x16a8b3(0x1c9)+CLI_BIN_NAME+_0x16a8b3(0x1c5));return _0x16a8b3(0x1c1);}}export function toScopeFlags(_0x22138e){const _0x19fd22=a13_0x1202;return{'global':_0x22138e===_0x19fd22(0x1bb)};}export function formatScopeLabel(_0xadff3f){const _0xcc2466=a13_0x1202;return _0xadff3f==='global'?_0xcc2466(0x1b9):'';}
1
+ (function(_0x37c450,_0x3080a0){const _0x2f6468=a13_0x28e2,_0x293068=_0x37c450();while(!![]){try{const _0x38749a=parseInt(_0x2f6468(0x72))/0x1+-parseInt(_0x2f6468(0x81))/0x2+parseInt(_0x2f6468(0x7c))/0x3+parseInt(_0x2f6468(0x7b))/0x4*(-parseInt(_0x2f6468(0x7e))/0x5)+-parseInt(_0x2f6468(0x77))/0x6+parseInt(_0x2f6468(0x73))/0x7+parseInt(_0x2f6468(0x79))/0x8;if(_0x38749a===_0x3080a0)break;else _0x293068['push'](_0x293068['shift']());}catch(_0x15884a){_0x293068['push'](_0x293068['shift']());}}}(a13_0x1cdd,0xcde59));import{CLI_BIN_NAME}from'../../constant/cli.js';function a13_0x28e2(_0x2622c1,_0x1679a1){_0x2622c1=_0x2622c1-0x6e;const _0x1cdd3d=a13_0x1cdd();let _0x28e2ac=_0x1cdd3d[_0x2622c1];return _0x28e2ac;}import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';function a13_0x1cdd(){const _0x1883e4=['\x20found).','3116220kqUGNe','Use\x20only\x20one\x20config\x20scope\x20flag.','10127664tAbaXe','Not\x20inside\x20a\x20project\x20(no\x20','18296lwahqi','1967622oRSxtz','inProject','1130mjfFgu','global','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','1031452OhVpZw','global-default','validation','project','\x20(global)','723690ZiPqap','1866557jmoxqd','newConfigFileName','project-default'];a13_0x1cdd=function(){return _0x1883e4;};return a13_0x1cdd();}import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';export function resolveConfigScope(_0x1b25af){const _0x550c8c=a13_0x28e2,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x5ec77e}=_0x1b25af;if(explicitGlobal&&explicitProject)throw CliErrors['validation'](_0x550c8c(0x80),_0x550c8c(0x78));if(explicitGlobal)return _0x550c8c(0x7f);if(explicitProject)return _0x550c8c(0x70);switch(_0x5ec77e){case _0x550c8c(0x6e):return _0x550c8c(0x7f);case _0x550c8c(0x75):return _0x1b25af[_0x550c8c(0x7d)]??isInProject()?_0x550c8c(0x70):_0x550c8c(0x7f);case'project-or-global-explicit':if(!(_0x1b25af[_0x550c8c(0x7d)]??isInProject()))throw CliErrors[_0x550c8c(0x6f)](_0x550c8c(0x7a)+PRODUCT_CONFIG[_0x550c8c(0x74)]+_0x550c8c(0x76),'Add\x20--global\x20to\x20write\x20to\x20~/'+PRODUCT_CONFIG[_0x550c8c(0x74)]+',\x20or\x20run\x20`'+CLI_BIN_NAME+'\x20init`\x20first.');return _0x550c8c(0x70);}}export function toScopeFlags(_0x1f4dc3){return{'global':_0x1f4dc3==='global'};}export function formatScopeLabel(_0x436549){const _0x396fdb=a13_0x28e2;return _0x436549===_0x396fdb(0x7f)?_0x396fdb(0x71):'';}
@@ -1 +1 @@
1
- (function(_0x522775,_0x258b97){const _0x4443cf=a14_0x22a7,_0x16ae85=_0x522775();while(!![]){try{const _0x2ccc78=-parseInt(_0x4443cf(0x8a))/0x1*(parseInt(_0x4443cf(0x7d))/0x2)+parseInt(_0x4443cf(0x74))/0x3+parseInt(_0x4443cf(0x88))/0x4*(-parseInt(_0x4443cf(0x89))/0x5)+-parseInt(_0x4443cf(0x6f))/0x6*(-parseInt(_0x4443cf(0x81))/0x7)+parseInt(_0x4443cf(0x84))/0x8*(-parseInt(_0x4443cf(0x71))/0x9)+parseInt(_0x4443cf(0x76))/0xa*(-parseInt(_0x4443cf(0x7a))/0xb)+-parseInt(_0x4443cf(0x8c))/0xc*(-parseInt(_0x4443cf(0x87))/0xd);if(_0x2ccc78===_0x258b97)break;else _0x16ae85['push'](_0x16ae85['shift']());}catch(_0x171ab4){_0x16ae85['push'](_0x16ae85['shift']());}}}(a14_0x4e37,0x399fe));function a14_0x4e37(){const _0xe1a86b=['length','26ksvJre','48ocaZBb','22585oXiEzu','1ZMMUtl','\x20are\x20mutually\x20exclusive\x20for\x20`','5134956dKAsyp','24JQnNZh','At\x20least\x20one\x20of\x20','6741aDwZQS','\x20is\x20allowed,\x20found:\x20',':\x20expected\x20','879762RTnAne','validation','888590YyPcpk','Only\x20one\x20of\x20','map','some','44MrAaux','Provide\x20one\x20of:\x20','flag','828026fkOeUS','Flags\x20','test','Use\x20only\x20one\x20of:\x20','395381UiQyEW','Invalid\x20--','filter','3368QVeIbf','Exactly\x20one\x20of\x20'];a14_0x4e37=function(){return _0xe1a86b;};return a14_0x4e37();}import{CliErrors}from'../../errors.js';function isSet(_0x5c8735,_0x448f1d){const _0xf532ca=a14_0x22a7,_0x3656e4=_0x5c8735[_0xf532ca(0x7c)](_0x448f1d);return _0x3656e4!==undefined&&_0x3656e4!==''&&_0x3656e4!==![]&&_0x3656e4!==0x0;}function fmtNames(_0x38abc){const _0x4fec12=a14_0x22a7;return _0x38abc[_0x4fec12(0x78)](_0x2dc3cf=>'--'+_0x2dc3cf)['join'](',\x20');}export function requireOneOf(_0x29d042,_0x2f490c,_0x4623e7){const _0x36da33=a14_0x22a7,_0x5c2d21=_0x2f490c[_0x36da33(0x83)](_0x5dca03=>isSet(_0x29d042,_0x5dca03));if(_0x5c2d21['length']!==0x1)throw CliErrors['validation'](_0x5c2d21[_0x36da33(0x86)]===0x0?_0x36da33(0x85)+fmtNames(_0x2f490c)+'\x20is\x20required\x20for\x20`'+_0x4623e7+'`.':_0x36da33(0x77)+fmtNames(_0x2f490c)+_0x36da33(0x72)+fmtNames(_0x5c2d21)+'.',_0x5c2d21['length']===0x0?_0x36da33(0x7b)+fmtNames(_0x2f490c):'Remove\x20all\x20but\x20one.');}export function requireAnyOf(_0x599446,_0x31ba3d,_0x3c7581){const _0xae554e=a14_0x22a7;if(!_0x31ba3d[_0xae554e(0x79)](_0x516d15=>isSet(_0x599446,_0x516d15)))throw CliErrors[_0xae554e(0x75)](_0xae554e(0x70)+fmtNames(_0x31ba3d)+'\x20is\x20required\x20for\x20`'+_0x3c7581+'`.',_0xae554e(0x7b)+fmtNames(_0x31ba3d));}function a14_0x22a7(_0x1f08ff,_0x10bc51){_0x1f08ff=_0x1f08ff-0x6f;const _0x4e373f=a14_0x4e37();let _0x22a7c2=_0x4e373f[_0x1f08ff];return _0x22a7c2;}export function mutuallyExclusive(_0x10c1ee,_0x574587,_0x34c85d){const _0x78dfed=a14_0x22a7,_0x3dd872=_0x574587[_0x78dfed(0x83)](_0x458b48=>isSet(_0x10c1ee,_0x458b48));if(_0x3dd872[_0x78dfed(0x86)]>0x1)throw CliErrors[_0x78dfed(0x75)](_0x78dfed(0x7e)+fmtNames(_0x3dd872)+_0x78dfed(0x8b)+_0x34c85d+'`.',_0x78dfed(0x80)+fmtNames(_0x574587));}export function validatePattern(_0x26070e,_0x43e6ee,_0x28379f,_0x5ce4c6){const _0x4d2f63=a14_0x22a7,_0x3fd3a1=_0x26070e['str'](_0x43e6ee);if(_0x3fd3a1&&!_0x28379f[_0x4d2f63(0x7f)](_0x3fd3a1))throw CliErrors[_0x4d2f63(0x75)](_0x4d2f63(0x82)+_0x43e6ee+_0x4d2f63(0x73)+_0x5ce4c6+',\x20got\x20\x22'+_0x3fd3a1+'\x22.');}
1
+ function a14_0x2a6f(_0x3e432a,_0x3ad917){_0x3e432a=_0x3e432a-0x98;const _0x18e362=a14_0x18e3();let _0x2a6f29=_0x18e362[_0x3e432a];return _0x2a6f29;}function a14_0x18e3(){const _0x6d6674=['some','\x20is\x20required\x20for\x20`',',\x20got\x20\x22','Flags\x20','166407pDtIvM','map','\x20are\x20mutually\x20exclusive\x20for\x20`','8264583LbXkRF','validation','1260168hgFWuM','filter','1033510SjOJQU','Provide\x20one\x20of:\x20','At\x20least\x20one\x20of\x20','60gCOMfX','Remove\x20all\x20but\x20one.','6398920qggebX','flag','7SpDAzb','join','str','1145190SSmImb','387095pJONDf','3fZgmKP','Only\x20one\x20of\x20','Use\x20only\x20one\x20of:\x20','length','Exactly\x20one\x20of\x20'];a14_0x18e3=function(){return _0x6d6674;};return a14_0x18e3();}(function(_0x55ad2d,_0x4bfd3e){const _0x23ffc7=a14_0x2a6f,_0x1f5220=_0x55ad2d();while(!![]){try{const _0x1d4d53=parseInt(_0x23ffc7(0xa0))/0x1+-parseInt(_0x23ffc7(0xa7))/0x2*(parseInt(_0x23ffc7(0xb3))/0x3)+parseInt(_0x23ffc7(0xa5))/0x4+-parseInt(_0x23ffc7(0xb2))/0x5*(-parseInt(_0x23ffc7(0xaa))/0x6)+-parseInt(_0x23ffc7(0xae))/0x7*(-parseInt(_0x23ffc7(0xac))/0x8)+-parseInt(_0x23ffc7(0xa3))/0x9+-parseInt(_0x23ffc7(0xb1))/0xa;if(_0x1d4d53===_0x4bfd3e)break;else _0x1f5220['push'](_0x1f5220['shift']());}catch(_0x2dd6b2){_0x1f5220['push'](_0x1f5220['shift']());}}}(a14_0x18e3,0x7b857));import{CliErrors}from'../../errors.js';function isSet(_0x1782bd,_0x563351){const _0x1b6559=a14_0x2a6f,_0x2f6f98=_0x1782bd[_0x1b6559(0xad)](_0x563351);return _0x2f6f98!==undefined&&_0x2f6f98!==''&&_0x2f6f98!==![]&&_0x2f6f98!==0x0;}function fmtNames(_0xc3ca8f){const _0x16529e=a14_0x2a6f;return _0xc3ca8f[_0x16529e(0xa1)](_0x11e0da=>'--'+_0x11e0da)[_0x16529e(0xaf)](',\x20');}export function requireOneOf(_0x4b6d50,_0x1c1011,_0x127f9a){const _0x8b57b7=a14_0x2a6f,_0x39b517=_0x1c1011[_0x8b57b7(0xa6)](_0xf92300=>isSet(_0x4b6d50,_0xf92300));if(_0x39b517['length']!==0x1)throw CliErrors[_0x8b57b7(0xa4)](_0x39b517[_0x8b57b7(0x9a)]===0x0?_0x8b57b7(0x9b)+fmtNames(_0x1c1011)+'\x20is\x20required\x20for\x20`'+_0x127f9a+'`.':_0x8b57b7(0x98)+fmtNames(_0x1c1011)+'\x20is\x20allowed,\x20found:\x20'+fmtNames(_0x39b517)+'.',_0x39b517['length']===0x0?'Provide\x20one\x20of:\x20'+fmtNames(_0x1c1011):_0x8b57b7(0xab));}export function requireAnyOf(_0x41ec00,_0xbdb93d,_0x1caf69){const _0x388198=a14_0x2a6f;if(!_0xbdb93d[_0x388198(0x9c)](_0x26106c=>isSet(_0x41ec00,_0x26106c)))throw CliErrors[_0x388198(0xa4)](_0x388198(0xa9)+fmtNames(_0xbdb93d)+_0x388198(0x9d)+_0x1caf69+'`.',_0x388198(0xa8)+fmtNames(_0xbdb93d));}export function mutuallyExclusive(_0x3d196b,_0x16f662,_0x4aa826){const _0x269be8=a14_0x2a6f,_0x177775=_0x16f662[_0x269be8(0xa6)](_0x30c73d=>isSet(_0x3d196b,_0x30c73d));if(_0x177775[_0x269be8(0x9a)]>0x1)throw CliErrors['validation'](_0x269be8(0x9f)+fmtNames(_0x177775)+_0x269be8(0xa2)+_0x4aa826+'`.',_0x269be8(0x99)+fmtNames(_0x16f662));}export function validatePattern(_0x2a9668,_0x130418,_0x55834e,_0x38e319){const _0x241186=a14_0x2a6f,_0x174d50=_0x2a9668[_0x241186(0xb0)](_0x130418);if(_0x174d50&&!_0x55834e['test'](_0x174d50))throw CliErrors['validation']('Invalid\x20--'+_0x130418+':\x20expected\x20'+_0x38e319+_0x241186(0x9e)+_0x174d50+'\x22.');}