@lovrabet/lovrabet-cli 2.1.2-beta.1 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/artifact/index.js +1 -1
  10. package/lib/commands/auth/index.js +1 -1
  11. package/lib/commands/auth/prompt.js +1 -1
  12. package/lib/commands/bff/detail.js +1 -1
  13. package/lib/commands/bff/exec.js +1 -1
  14. package/lib/commands/bff/index.js +1 -1
  15. package/lib/commands/cli-skill/index.js +1 -1
  16. package/lib/commands/common/config-policy.js +1 -1
  17. package/lib/commands/common/constraints.js +1 -1
  18. package/lib/commands/common/flags.js +1 -1
  19. package/lib/commands/config/definitions.js +1 -1
  20. package/lib/commands/config/shared.js +1 -1
  21. package/lib/commands/data/index.js +1 -1
  22. package/lib/commands/dataset/detail.js +1 -1
  23. package/lib/commands/dataset/index.js +1 -1
  24. package/lib/commands/dataset/list.js +1 -1
  25. package/lib/commands/dataset/sdk-doc.js +1 -1
  26. package/lib/commands/doctor.js +1 -1
  27. package/lib/commands/init.js +1 -1
  28. package/lib/commands/kb/index.js +1 -1
  29. package/lib/commands/logs/index.js +1 -1
  30. package/lib/commands/personal-bff/index.js +1 -1
  31. package/lib/commands/registry.js +1 -1
  32. package/lib/commands/schema.js +1 -1
  33. package/lib/commands/service/dynamic.js +1 -1
  34. package/lib/commands/service/index.js +1 -1
  35. package/lib/commands/service/registry.js +1 -1
  36. package/lib/commands/skill/index.js +1 -1
  37. package/lib/commands/skill/templates.js +1 -1
  38. package/lib/commands/skill/validate.js +1 -1
  39. package/lib/commands/sql/detail.js +1 -1
  40. package/lib/commands/sql/exec.js +1 -1
  41. package/lib/commands/sql/index.js +1 -1
  42. package/lib/commands/update.js +1 -1
  43. package/lib/commands/workspace/index.js +1 -1
  44. package/lib/config/schema.js +1 -1
  45. package/lib/constant/app.js +1 -1
  46. package/lib/constant/auth-mode.js +1 -1
  47. package/lib/constant/cli.js +1 -1
  48. package/lib/constant/defaults.js +1 -1
  49. package/lib/constant/distribution.js +1 -1
  50. package/lib/constant/domain.js +1 -1
  51. package/lib/constant/env.js +1 -1
  52. package/lib/constant/output.js +1 -1
  53. package/lib/constant/product.js +1 -1
  54. package/lib/constant/risk.js +1 -1
  55. package/lib/constant/url.js +1 -1
  56. package/lib/context.js +1 -1
  57. package/lib/core/api-client.js +1 -1
  58. package/lib/core/db-resolver.js +1 -1
  59. package/lib/core/sdk-client.js +1 -1
  60. package/lib/errors.js +1 -1
  61. package/lib/framework/build-all-flags.js +1 -1
  62. package/lib/framework/dryrun.js +1 -1
  63. package/lib/framework/flags.js +1 -1
  64. package/lib/framework/help.js +1 -1
  65. package/lib/framework/index.js +1 -1
  66. package/lib/framework/output.js +1 -1
  67. package/lib/framework/preparse.js +1 -1
  68. package/lib/framework/response.js +1 -1
  69. package/lib/framework/runner-confirmation.js +1 -1
  70. package/lib/framework/runner-error.js +1 -1
  71. package/lib/framework/runner.js +1 -1
  72. package/lib/framework/schema-export.js +1 -1
  73. package/lib/framework/types.js +1 -1
  74. package/lib/generated/build-info.js +1 -1
  75. package/lib/help.js +1 -1
  76. package/lib/skills/npx-skills-add.js +1 -1
  77. package/lib/skills/runtime-skill-sync.js +1 -1
  78. package/lib/utils/apply-jq-filter.js +1 -1
  79. package/lib/utils/logger.js +1 -1
  80. package/lib/utils/params.js +1 -1
  81. package/lib/utils/platform.js +1 -1
  82. package/lib/utils/update-notice.js +1 -1
  83. package/lib/utils/version.js +1 -1
  84. package/lib/utils/write-cli-side-channel.js +1 -1
  85. package/package.json +1 -1
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const a0_0x110727=a0_0x52bd;(function(_0x49bb1f,_0x1f798a){const _0x1cf979=a0_0x52bd,_0x4ed1d2=_0x49bb1f();while(!![]){try{const _0x4e1368=parseInt(_0x1cf979(0x1a6))/0x1+-parseInt(_0x1cf979(0x1c6))/0x2*(parseInt(_0x1cf979(0x1b7))/0x3)+parseInt(_0x1cf979(0x1c5))/0x4*(parseInt(_0x1cf979(0x1b2))/0x5)+-parseInt(_0x1cf979(0x1c7))/0x6+parseInt(_0x1cf979(0x1ca))/0x7+-parseInt(_0x1cf979(0x1bc))/0x8*(-parseInt(_0x1cf979(0x1b8))/0x9)+-parseInt(_0x1cf979(0x1c9))/0xa*(-parseInt(_0x1cf979(0x1ad))/0xb);if(_0x4e1368===_0x1f798a)break;else _0x4ed1d2['push'](_0x4ed1d2['shift']());}catch(_0x4f3ebb){_0x4ed1d2['push'](_0x4ed1d2['shift']());}}}(a0_0x1efc,0x270a4));import{jsx as a0_0x2428e5}from'react/jsx-runtime';import a0_0x5793a3 from'meow';import{render}from'ink';import{Help}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{buildConfigFromFlags,initGlobalEnvironment}from'./context.js';import{isKnownService,getServiceEntry,findDefinition,getAllDefinitions}from'./commands/registry.js';import{generateDynamicServiceHelp,resolveDynamicServiceCommand}from'./commands/service/dynamic.js';import{runCommand,createPipelineEnv}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';function a0_0x52bd(_0x193a1a,_0x43c446){_0x193a1a=_0x193a1a-0x1a4;const _0x1efc2d=a0_0x1efc();let _0x52bdf5=_0x1efc2d[_0x193a1a];return _0x52bdf5;}import{buildMeowFlags}from'./constant/cli.js';import{getCliVersionDisplay}from'./utils/version.js';const helpText=generateFullHelp(),cli=a0_0x5793a3(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'version':getCliVersionDisplay()});void main()[a0_0x110727(0x1af)](handleError);function a0_0x1efc(){const _0xfd3776=['defaultCommand','388328iTabfK',':\x20--','input','unknownCommand','Hint:\x20','length','name','\x0aCancelled.\x0a','definition','13084iLGCAX','313942yDRfLQ','1714230nOnlyE','code','1310HwnTiQ','586082zbgrJI','Unexpected\x20error:','ExitPromptError','93670DxflbU','exit','flags','stderr','message','flatMap','ERR_USE_AFTER_CLOSE','39589uspfcZ','\x20->\x20--','catch','corrected','assign','95sRrVdf','error','help','log','args','6MFDGly','9NQfudg','write','[preparse]\x20'];a0_0x1efc=function(){return _0xfd3776;};return a0_0x1efc();}async function main(){try{await run();}catch(_0x37006c){handleError(_0x37006c);}}async function run(){const _0x2caa77=a0_0x110727;let _0x2117c8=cli['input'][0x0],_0xae4af0=cli[_0x2caa77(0x1be)][0x1];const _0xe11113=cli['flags'];try{const {correctFlags:_0xad8254}=await import('./framework/preparse.js'),_0x361b66=getAllDefinitions()[_0x2caa77(0x1ab)](_0x41875f=>_0x41875f[_0x2caa77(0x1a8)]??[]),{flags:_0xb8fa30,corrections:_0x451125}=_0xad8254(_0xe11113,_0x361b66);if(_0x451125[_0x2caa77(0x1c1)]>0x0){for(const _0x47916f of _0x451125){process[_0x2caa77(0x1a9)][_0x2caa77(0x1b9)](_0x2caa77(0x1ba)+_0x47916f['handler']+_0x2caa77(0x1bd)+_0x47916f['original']+_0x2caa77(0x1ae)+_0x47916f[_0x2caa77(0x1b0)]+'\x0a');}Object[_0x2caa77(0x1b1)](_0xe11113,_0xb8fa30);}}catch{}if(!_0x2117c8){const {waitUntilExit:_0x5b23bc}=render(a0_0x2428e5(Help,{}));await _0x5b23bc();return;}if(!isKnownService(_0x2117c8)){const _0xaffbd6=resolveDynamicServiceCommand(cli[_0x2caa77(0x1be)],_0xe11113);if(_0xaffbd6){if(_0xe11113[_0x2caa77(0x1b4)]){console[_0x2caa77(0x1b5)](generateCommandHelp(_0xaffbd6[_0x2caa77(0x1c4)]));return;}Object[_0x2caa77(0x1b1)](_0xe11113,_0xaffbd6[_0x2caa77(0x1a8)]);const _0x6c05f0=buildConfigFromFlags(_0xe11113);await initGlobalEnvironment(_0x6c05f0);const _0x20fb23=createPipelineEnv(_0x6c05f0,_0xe11113);_0x20fb23[_0x2caa77(0x1b6)]=_0xaffbd6[_0x2caa77(0x1b6)],await runCommand(_0xaffbd6[_0x2caa77(0x1c4)],_0x20fb23);return;}if(_0xe11113[_0x2caa77(0x1b4)]){const _0x53fe4c=generateDynamicServiceHelp(_0x2117c8);if(_0x53fe4c){console[_0x2caa77(0x1b5)](_0x53fe4c);return;}}const {waitUntilExit:_0x136c41}=render(a0_0x2428e5(Help,{}));await _0x136c41();return;}const _0x156bf7=getServiceEntry(_0x2117c8);if(!_0xae4af0){if(_0xe11113[_0x2caa77(0x1b4)]){console['log'](generateServiceHelp(_0x2117c8));return;}if(_0x156bf7['defaultCommand'])_0xae4af0=_0x156bf7[_0x2caa77(0x1bb)];else{console[_0x2caa77(0x1b5)](generateServiceHelp(_0x2117c8));return;}}const _0x505e9a=findDefinition(_0x2117c8,_0xae4af0);!_0x505e9a&&(console[_0x2caa77(0x1b5)](generateServiceHelp(_0x2117c8)),handleError(CliErrors[_0x2caa77(0x1bf)](_0x2117c8+'\x20'+_0xae4af0)));if(_0xe11113[_0x2caa77(0x1b4)]){console[_0x2caa77(0x1b5)](generateCommandHelp(_0x505e9a));return;}const _0x3ab8dd=buildConfigFromFlags(_0xe11113);await initGlobalEnvironment(_0x3ab8dd);const _0x33ce6d=createPipelineEnv(_0x3ab8dd,_0xe11113);_0x33ce6d[_0x2caa77(0x1b6)]=cli['input']['slice'](0x2),await runCommand(_0x505e9a,_0x33ce6d);}function handleError(_0x5d5fed){const _0x53f579=a0_0x110727;if(_0x5d5fed instanceof CliError){_0x5d5fed[_0x53f579(0x1c8)]==='cancelled'&&(process[_0x53f579(0x1a9)][_0x53f579(0x1b9)]('\x0aCancelled.\x0a'),process[_0x53f579(0x1a7)](0x0));console[_0x53f579(0x1b3)]('Error:\x20'+_0x5d5fed[_0x53f579(0x1aa)]);if(_0x5d5fed['hint'])console[_0x53f579(0x1b3)](_0x53f579(0x1c0)+_0x5d5fed['hint']);process[_0x53f579(0x1a7)](_0x5d5fed['exitCode']);}isUserCancellation(_0x5d5fed)&&(process['stderr'][_0x53f579(0x1b9)](_0x53f579(0x1c3)),process[_0x53f579(0x1a7)](0x0)),console['error'](_0x53f579(0x1a4),_0x5d5fed),process[_0x53f579(0x1a7)](0x1);}function isUserCancellation(_0x35cf66){const _0x1666af=a0_0x110727;if(!(_0x35cf66 instanceof Error))return![];if(_0x35cf66[_0x1666af(0x1c2)]===_0x1666af(0x1a5))return!![];if(_0x35cf66[_0x1666af(0x1c8)]===_0x1666af(0x1ac))return!![];if(_0x35cf66[_0x1666af(0x1c8)]==='ERR_STREAM_DESTROYED')return!![];return![];}
2
+ (function(_0x267235,_0x1c7411){const _0x7fc836=a0_0x2829,_0xc475=_0x267235();while(!![]){try{const _0x29c7db=parseInt(_0x7fc836(0xa9))/0x1+parseInt(_0x7fc836(0xa6))/0x2+-parseInt(_0x7fc836(0xc1))/0x3*(-parseInt(_0x7fc836(0xb0))/0x4)+parseInt(_0x7fc836(0xc2))/0x5*(parseInt(_0x7fc836(0xac))/0x6)+-parseInt(_0x7fc836(0xa7))/0x7*(parseInt(_0x7fc836(0xc0))/0x8)+parseInt(_0x7fc836(0xb9))/0x9*(-parseInt(_0x7fc836(0xa2))/0xa)+-parseInt(_0x7fc836(0xaa))/0xb;if(_0x29c7db===_0x1c7411)break;else _0xc475['push'](_0xc475['shift']());}catch(_0xa67af1){_0xc475['push'](_0xc475['shift']());}}}(a0_0x8e56,0xcf477));import{jsx as a0_0x5c34dd}from'react/jsx-runtime';import a0_0x3ed35c from'meow';import{render}from'ink';import{Help}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{buildConfigFromFlags,initGlobalEnvironment}from'./context.js';import{isKnownService,getServiceEntry,findDefinition,getAllDefinitions}from'./commands/registry.js';import{generateDynamicServiceHelp,resolveDynamicServiceCommand}from'./commands/service/dynamic.js';function a0_0x2829(_0x28dc30,_0x15c4a1){_0x28dc30=_0x28dc30-0x9b;const _0x8e5604=a0_0x8e56();let _0x28293d=_0x8e5604[_0x28dc30];return _0x28293d;}import{runCommand,createPipelineEnv}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{buildMeowFlags}from'./constant/cli.js';import{getCliVersionDisplay}from'./utils/version.js';function a0_0x8e56(){const _0x703969=['defaultCommand','length','9179577yPxNHt','[preparse]\x20','error','ExitPromptError','name','flatMap','handler','407072RVckSF','15945OBPfrn','886955RuGnBf','definition','input','flags','log','ERR_STREAM_DESTROYED','exitCode','args','Hint:\x20','help',':\x20--','original','10HEYZSt','stderr','corrected','code','1060262IkxhxH','7pIjEXw','Unexpected\x20error:','1304694djVMCY','12986776iifNvk','slice','18ctmnJm','cancelled','unknownCommand','message','552mFDGnp','\x0aCancelled.\x0a','exit','hint','write','assign','\x20->\x20--'];a0_0x8e56=function(){return _0x703969;};return a0_0x8e56();}const helpText=generateFullHelp(),cli=a0_0x3ed35c(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'version':getCliVersionDisplay()});void main()['catch'](handleError);async function main(){try{await run();}catch(_0x46304a){handleError(_0x46304a);}}async function run(){const _0x520d97=a0_0x2829;let _0x2148bd=cli['input'][0x0],_0x1cd0a6=cli[_0x520d97(0xc4)][0x1];const _0x4e0999=cli['flags'];try{const {correctFlags:_0x511860}=await import('./framework/preparse.js'),_0x5a6c5b=getAllDefinitions()[_0x520d97(0xbe)](_0x134dfd=>_0x134dfd[_0x520d97(0xc5)]??[]),{flags:_0x79065f,corrections:_0x3aa6aa}=_0x511860(_0x4e0999,_0x5a6c5b);if(_0x3aa6aa[_0x520d97(0xb8)]>0x0){for(const _0x32d8a7 of _0x3aa6aa){process[_0x520d97(0xa3)][_0x520d97(0xb4)](_0x520d97(0xba)+_0x32d8a7[_0x520d97(0xbf)]+_0x520d97(0xa0)+_0x32d8a7[_0x520d97(0xa1)]+_0x520d97(0xb6)+_0x32d8a7[_0x520d97(0xa4)]+'\x0a');}Object[_0x520d97(0xb5)](_0x4e0999,_0x79065f);}}catch{}if(!_0x2148bd){const {waitUntilExit:_0xddd691}=render(a0_0x5c34dd(Help,{}));await _0xddd691();return;}if(!isKnownService(_0x2148bd)){const _0x310fc1=resolveDynamicServiceCommand(cli['input'],_0x4e0999);if(_0x310fc1){if(_0x4e0999[_0x520d97(0x9f)]){console['log'](generateCommandHelp(_0x310fc1[_0x520d97(0xc3)]));return;}Object[_0x520d97(0xb5)](_0x4e0999,_0x310fc1[_0x520d97(0xc5)]);const _0x240ab1=buildConfigFromFlags(_0x4e0999);await initGlobalEnvironment(_0x240ab1);const _0x557d8b=createPipelineEnv(_0x240ab1,_0x4e0999);_0x557d8b[_0x520d97(0x9d)]=_0x310fc1[_0x520d97(0x9d)],await runCommand(_0x310fc1[_0x520d97(0xc3)],_0x557d8b);return;}if(_0x4e0999[_0x520d97(0x9f)]){const _0x1693e5=generateDynamicServiceHelp(_0x2148bd);if(_0x1693e5){console[_0x520d97(0xc6)](_0x1693e5);return;}}const {waitUntilExit:_0x527f51}=render(a0_0x5c34dd(Help,{}));await _0x527f51();return;}const _0x2062df=getServiceEntry(_0x2148bd);if(!_0x1cd0a6){if(_0x4e0999[_0x520d97(0x9f)]){console['log'](generateServiceHelp(_0x2148bd));return;}if(_0x2062df[_0x520d97(0xb7)])_0x1cd0a6=_0x2062df['defaultCommand'];else{console[_0x520d97(0xc6)](generateServiceHelp(_0x2148bd));return;}}const _0x2fb0a5=findDefinition(_0x2148bd,_0x1cd0a6);!_0x2fb0a5&&(console[_0x520d97(0xc6)](generateServiceHelp(_0x2148bd)),handleError(CliErrors[_0x520d97(0xae)](_0x2148bd+'\x20'+_0x1cd0a6)));if(_0x4e0999[_0x520d97(0x9f)]){console[_0x520d97(0xc6)](generateCommandHelp(_0x2fb0a5));return;}const _0x2cad80=buildConfigFromFlags(_0x4e0999);await initGlobalEnvironment(_0x2cad80);const _0x356026=createPipelineEnv(_0x2cad80,_0x4e0999);_0x356026[_0x520d97(0x9d)]=cli[_0x520d97(0xc4)][_0x520d97(0xab)](0x2),await runCommand(_0x2fb0a5,_0x356026);}function handleError(_0x528240){const _0x3cfe65=a0_0x2829;if(_0x528240 instanceof CliError){_0x528240[_0x3cfe65(0xa5)]===_0x3cfe65(0xad)&&(process[_0x3cfe65(0xa3)]['write']('\x0aCancelled.\x0a'),process[_0x3cfe65(0xb2)](0x0));console[_0x3cfe65(0xbb)]('Error:\x20'+_0x528240[_0x3cfe65(0xaf)]);if(_0x528240[_0x3cfe65(0xb3)])console[_0x3cfe65(0xbb)](_0x3cfe65(0x9e)+_0x528240[_0x3cfe65(0xb3)]);process[_0x3cfe65(0xb2)](_0x528240[_0x3cfe65(0x9c)]);}isUserCancellation(_0x528240)&&(process[_0x3cfe65(0xa3)][_0x3cfe65(0xb4)](_0x3cfe65(0xb1)),process[_0x3cfe65(0xb2)](0x0)),console[_0x3cfe65(0xbb)](_0x3cfe65(0xa8),_0x528240),process[_0x3cfe65(0xb2)](0x1);}function isUserCancellation(_0x15adf6){const _0xe42d1=a0_0x2829;if(!(_0x15adf6 instanceof Error))return![];if(_0x15adf6[_0xe42d1(0xbd)]===_0xe42d1(0xbc))return!![];if(_0x15adf6['code']==='ERR_USE_AFTER_CLOSE')return!![];if(_0x15adf6[_0xe42d1(0xa5)]===_0xe42d1(0x9b))return!![];return![];}
@@ -1 +1 @@
1
- function a1_0x2708(_0x54d8dc,_0x8033da){_0x54d8dc=_0x54d8dc-0xfe;const _0x50cc7e=a1_0x50cc();let _0x270878=_0x50cc7e[_0x54d8dc];return _0x270878;}const a1_0x1a6839=a1_0x2708;(function(_0x3c9d85,_0x1f1659){const _0x1eb228=a1_0x2708,_0x4dbf31=_0x3c9d85();while(!![]){try{const _0x3d4fcf=parseInt(_0x1eb228(0x153))/0x1+parseInt(_0x1eb228(0x161))/0x2*(parseInt(_0x1eb228(0x118))/0x3)+-parseInt(_0x1eb228(0x15d))/0x4+-parseInt(_0x1eb228(0x126))/0x5*(-parseInt(_0x1eb228(0x110))/0x6)+parseInt(_0x1eb228(0x141))/0x7*(-parseInt(_0x1eb228(0x136))/0x8)+parseInt(_0x1eb228(0x106))/0x9*(parseInt(_0x1eb228(0x14e))/0xa)+parseInt(_0x1eb228(0x14a))/0xb;if(_0x3d4fcf===_0x1f1659)break;else _0x4dbf31['push'](_0x4dbf31['shift']());}catch(_0x16d88a){_0x4dbf31['push'](_0x4dbf31['shift']());}}}(a1_0x50cc,0xc27be));import{CliErrors}from'../../errors.js';const CATEGORY_FLAG={'name':'category','type':a1_0x1a6839(0x124),'description':a1_0x1a6839(0x151)},KEYWORD_FLAG={'name':a1_0x1a6839(0x149),'type':a1_0x1a6839(0x124),'description':a1_0x1a6839(0x10b)},DOC_CODE_FLAG={'name':a1_0x1a6839(0x156),'type':a1_0x1a6839(0x124),'required':!![],'description':a1_0x1a6839(0x11d)},DOCS=[{'code':a1_0x1a6839(0x109),'category':a1_0x1a6839(0x104),'title':'List\x20datasets','method':a1_0x1a6839(0x11c),'path':'/api/dataset/get-dataset-list-by-app-code','summary':a1_0x1a6839(0x13a),'whenToUse':'需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','pathParams':[],'queryParams':[],'bodySchema':'{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','responseHighlights':[a1_0x1a6839(0x10e),a1_0x1a6839(0x103)],'examples':[a1_0x1a6839(0x117)],'notes':[a1_0x1a6839(0x12a)],'markdown':['##\x20List\x20datasets','','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.']['join']('\x0a')},{'code':a1_0x1a6839(0x14b),'category':a1_0x1a6839(0x104),'title':a1_0x1a6839(0x139),'method':a1_0x1a6839(0x10f),'path':'/api/dataset/getOneByCode?code={datasetCode}','summary':'获取数据集详情','whenToUse':a1_0x1a6839(0x165),'pathParams':[],'queryParams':[{'name':'code','description':'32-character\x20dataset\x20code'}],'bodySchema':a1_0x1a6839(0x102),'responseHighlights':[a1_0x1a6839(0x116),a1_0x1a6839(0x145)],'examples':[a1_0x1a6839(0x142)],'notes':[a1_0x1a6839(0x163)],'markdown':['##\x20Dataset\x20detail','',a1_0x1a6839(0x147)][a1_0x1a6839(0x135)]('\x0a')},{'code':a1_0x1a6839(0x138),'category':'dataset','title':'Filter\x20dataset\x20data','method':a1_0x1a6839(0x11c),'path':a1_0x1a6839(0x166),'summary':a1_0x1a6839(0x113),'whenToUse':'需要携带\x20where、orderBy、分页等条件读取业务数据时使用','pathParams':[{'name':a1_0x1a6839(0x14c),'description':'Current\x20app\x20code'},{'name':'datasetCode','description':a1_0x1a6839(0x143)}],'queryParams':[],'bodySchema':a1_0x1a6839(0x10c),'responseHighlights':[a1_0x1a6839(0x157),a1_0x1a6839(0x119)],'examples':['lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:5}\x27'],'notes':['Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.'],'markdown':[a1_0x1a6839(0x134),'',a1_0x1a6839(0x16e)]['join']('\x0a')},{'code':'dataset_data_aggregate','category':a1_0x1a6839(0x104),'title':a1_0x1a6839(0x16c),'method':a1_0x1a6839(0x11c),'path':'/api/{appCode}/{datasetCode}/aggregate','summary':a1_0x1a6839(0x164),'whenToUse':a1_0x1a6839(0x15b),'pathParams':[{'name':'appCode','description':a1_0x1a6839(0x13c)},{'name':'datasetCode','description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':a1_0x1a6839(0x148),'responseHighlights':[a1_0x1a6839(0x111),a1_0x1a6839(0x101)],'examples':['lovrabet\x20data\x20aggregate\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}]}\x27'],'notes':[a1_0x1a6839(0x13e),a1_0x1a6839(0xfe)],'markdown':[a1_0x1a6839(0x123),'',a1_0x1a6839(0x129)][a1_0x1a6839(0x135)]('\x0a')},{'code':a1_0x1a6839(0x133),'category':'dataset','title':a1_0x1a6839(0x15c),'method':a1_0x1a6839(0x11c),'path':'/api/{appCode}/{datasetCode}/getOne','summary':a1_0x1a6839(0x125),'whenToUse':a1_0x1a6839(0x15a),'pathParams':[{'name':a1_0x1a6839(0x14c),'description':a1_0x1a6839(0x13c)},{'name':a1_0x1a6839(0x14d),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':'{\x22id\x22:123}','responseHighlights':[a1_0x1a6839(0x16d)],'examples':[a1_0x1a6839(0x14f)],'notes':[a1_0x1a6839(0x131)],'markdown':a1_0x1a6839(0x12c)},{'code':a1_0x1a6839(0x155),'category':a1_0x1a6839(0x104),'title':'Create\x20dataset\x20record','method':a1_0x1a6839(0x11c),'path':a1_0x1a6839(0x137),'summary':a1_0x1a6839(0x168),'whenToUse':a1_0x1a6839(0x11b),'pathParams':[{'name':'appCode','description':a1_0x1a6839(0x13c)},{'name':a1_0x1a6839(0x14d),'description':a1_0x1a6839(0x143)}],'queryParams':[],'bodySchema':a1_0x1a6839(0x11a),'responseHighlights':[a1_0x1a6839(0x107)],'examples':[a1_0x1a6839(0x167)],'notes':['This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.'],'markdown':'##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.'},{'code':a1_0x1a6839(0x105),'category':'bf','title':a1_0x1a6839(0x146),'method':a1_0x1a6839(0x10f),'path':a1_0x1a6839(0x13d),'summary':'获取应用下可调用的\x20BF\x20函数列表','whenToUse':'需要先确认当前应用有哪些可执行的\x20BF/ENDPOINT\x20函数,以及收敛可用\x20scriptName\x20时使用','pathParams':[{'name':a1_0x1a6839(0x14c),'description':a1_0x1a6839(0x13c)}],'queryParams':[],'bodySchema':a1_0x1a6839(0x102),'responseHighlights':[a1_0x1a6839(0x12b)],'examples':['lovrabet\x20bff\x20detail\x20--id\x20<scriptId>\x20--appcode\x20<appCode>'],'notes':[a1_0x1a6839(0x15f)],'markdown':'##\x20List\x20BF\x20endpoint\x20functions\x0a\x0aDiscover\x20executable\x20endpoint\x20functions.'},{'code':'bf_execute','category':'bf','title':a1_0x1a6839(0x154),'method':a1_0x1a6839(0x11c),'path':a1_0x1a6839(0x150),'summary':a1_0x1a6839(0x115),'whenToUse':a1_0x1a6839(0x122),'pathParams':[{'name':a1_0x1a6839(0x14c),'description':'Current\x20app\x20code'},{'name':a1_0x1a6839(0x160),'description':'Endpoint\x20function\x20name'}],'queryParams':[],'bodySchema':a1_0x1a6839(0x162),'responseHighlights':['Returns\x20script\x20business\x20payload'],'examples':['lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27'],'notes':[a1_0x1a6839(0x158)],'markdown':'##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.'},{'code':'custom_sql_execute','category':a1_0x1a6839(0x16a),'title':a1_0x1a6839(0x108),'method':a1_0x1a6839(0x11c),'path':a1_0x1a6839(0x100),'summary':'执行自定义\x20SQL','whenToUse':a1_0x1a6839(0x15e),'pathParams':[],'queryParams':[],'bodySchema':a1_0x1a6839(0x16b),'responseHighlights':[a1_0x1a6839(0x11f)],'examples':[a1_0x1a6839(0x12d)],'notes':[a1_0x1a6839(0x169)],'markdown':a1_0x1a6839(0x13f)}];function entrySummary(_0x1b8166){const _0x2fd479=a1_0x1a6839;return{'code':_0x1b8166['code'],'category':_0x1b8166[_0x2fd479(0x144)],'method':_0x1b8166[_0x2fd479(0x128)],'path':_0x1b8166[_0x2fd479(0x11e)],'summary':_0x1b8166['summary'],'whenToUse':_0x1b8166[_0x2fd479(0xff)]};}export function listApiDocEntries(_0x152308={}){const _0x50ce07=a1_0x1a6839,_0x339c0f=String(_0x152308[_0x50ce07(0x144)]||'')[_0x50ce07(0x10d)](),_0x319ab3=String(_0x152308['keyword']||'')[_0x50ce07(0x10d)]()['toLowerCase']();return DOCS['filter'](_0x35a79d=>{const _0x3ec2ed=_0x50ce07;if(_0x339c0f&&_0x35a79d[_0x3ec2ed(0x144)]!==_0x339c0f)return![];if(!_0x319ab3)return!![];return[_0x35a79d[_0x3ec2ed(0x156)],_0x35a79d['category'],_0x35a79d[_0x3ec2ed(0x128)],_0x35a79d[_0x3ec2ed(0x11e)],_0x35a79d[_0x3ec2ed(0x132)],_0x35a79d[_0x3ec2ed(0xff)],_0x35a79d[_0x3ec2ed(0x130)]][_0x3ec2ed(0x135)]('\x20')[_0x3ec2ed(0x152)]()[_0x3ec2ed(0x120)](_0x319ab3);})[_0x50ce07(0x140)](entrySummary);}export function getApiDocDetail(_0x57ba0e){const _0x3a7add=a1_0x1a6839,_0x2c0b6a=DOCS[_0x3a7add(0x12f)](_0x204bb7=>_0x204bb7[_0x3a7add(0x156)]===_0x57ba0e);if(!_0x2c0b6a)throw CliErrors[_0x3a7add(0x159)](_0x3a7add(0x13b)+_0x57ba0e);return{..._0x2c0b6a};}function a1_0x50cc(){const _0x3ac04f=['102YbEJgi','{\x22param\x22:\x22value\x22}','If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.','聚合查询数据集数据','需要按数据集\x20code\x20获取字段、表信息或操作定义时使用','/api/{appCode}/{datasetCode}/filter','lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27','创建数据','Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.','custom_sql','{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','Aggregate\x20dataset\x20data','Returns\x20one\x20matching\x20business\x20record','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.','`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','whenToUse','/api/custom/executeSql','where\x20filters\x20before\x20aggregation','None','paging.totalCount\x20gives\x20total\x20rows','dataset','bf_function_list','3627AQnsTo','Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result','Execute\x20custom\x20SQL','dataset_list','str','Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text','{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','trim','tableData\x20contains\x20dataset\x20id/code/name','GET','8270562tSYXRK','result\x20rows\x20contain\x20aggregate\x20aliases','detail','条件过滤查询数据','Show\x20runtime\x20API\x20documentation\x20by\x20code','执行指定\x20BF\x20函数','fields/properties\x20describe\x20data\x20shape','lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress','2169jDfbXD','paging\x20contains\x20pagination','{\x22fieldName\x22:\x22value\x22}','需要向指定数据集新增一条业务数据时使用','POST','API\x20doc\x20code,\x20for\x20example\x20dataset_list','path','Returns\x20SQL\x20execution\x20payload','includes','List\x20available\x20runtime\x20API\x20documentation\x20entries','已经确认目标\x20BF\x20的\x20scriptName,且需要实际调用该\x20ENDPOINT\x20脚本完成业务操作时使用','##\x20Aggregate\x20dataset\x20data','string','查询单条数据','5qgEUoJ','read','method','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.','CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.','Returns\x20endpoint\x20functionName/id/description','##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.','lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27','length','find','title','Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.','summary','dataset_data_get_one','##\x20Filter\x20dataset\x20data','join','1096poIdDF','/api/{appCode}/{datasetCode}/create','dataset_data_filter','Dataset\x20detail','分页获取数据集列表','API\x20doc\x20code\x20not\x20found:\x20','Current\x20app\x20code','/api/endpoint/{appCode}/functions','Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.','##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.','map','68621kGAHyF','lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>','32-character\x20dataset\x20code','category','operations\x20describes\x20runtime\x20APIs','List\x20BF\x20endpoint\x20functions','Inspect\x20field\x20names\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.','{\x22aggregate\x22:[{\x22column\x22:\x20\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','keyword','14855445WFIwpS','dataset_detail','appCode','datasetCode','14870CNPVru','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27','/api/endpoint/{appCode}/{scriptName}','Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset','toLowerCase','246541lQXxxD','Execute\x20BF\x20endpoint\x20function','dataset_data_create','code','tableData\x20contains\x20records','Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.','validation','已经知道记录\x20id,需要按数据集读取单条业务数据时使用','需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用','Get\x20one\x20dataset\x20record','5887920ijEhiR','已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','CLI\x20has\x20typed\x20`bff\x20detail`\x20and\x20`bff\x20exec`\x20commands\x20for\x20endpoint\x20scripts.','scriptName'];a1_0x50cc=function(){return _0x3ac04f;};return a1_0x50cc();}const apiDocList={'service':'api-doc','command':'list','description':a1_0x1a6839(0x121),'risk':'read','requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0x499f08){const _0x3f93fb=a1_0x1a6839,_0x5f124a=listApiDocEntries({'category':_0x499f08[_0x3f93fb(0x10a)](_0x3f93fb(0x144)),'keyword':_0x499f08[_0x3f93fb(0x10a)]('keyword')});return{'ok':!![],'data':{'total':_0x5f124a[_0x3f93fb(0x12e)],'items':_0x5f124a}};}},apiDocDetail={'service':'api-doc','command':a1_0x1a6839(0x112),'description':a1_0x1a6839(0x114),'risk':a1_0x1a6839(0x127),'requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0x2680db){const _0x409bd1=a1_0x1a6839;return{'ok':!![],'data':getApiDocDetail(_0x2680db[_0x409bd1(0x10a)](_0x409bd1(0x156)))};}};export const apiDocDefinitions=[apiDocList,apiDocDetail];
1
+ const a1_0x1a6a50=a1_0x426e;function a1_0x426e(_0x3b4e61,_0x5d7166){_0x3b4e61=_0x3b4e61-0x7f;const _0x3362a8=a1_0x3362();let _0x426e70=_0x3362a8[_0x3b4e61];return _0x426e70;}(function(_0x1943db,_0x3599f7){const _0x31fdc3=a1_0x426e,_0x2b0e2b=_0x1943db();while(!![]){try{const _0x1c2940=parseInt(_0x31fdc3(0xa8))/0x1*(-parseInt(_0x31fdc3(0x9f))/0x2)+parseInt(_0x31fdc3(0xee))/0x3+-parseInt(_0x31fdc3(0xb7))/0x4*(-parseInt(_0x31fdc3(0xf1))/0x5)+-parseInt(_0x31fdc3(0xe4))/0x6+-parseInt(_0x31fdc3(0xa3))/0x7*(-parseInt(_0x31fdc3(0xd5))/0x8)+parseInt(_0x31fdc3(0xc1))/0x9*(parseInt(_0x31fdc3(0xe6))/0xa)+-parseInt(_0x31fdc3(0xc3))/0xb*(-parseInt(_0x31fdc3(0xc4))/0xc);if(_0x1c2940===_0x3599f7)break;else _0x2b0e2b['push'](_0x2b0e2b['shift']());}catch(_0x12a26a){_0x2b0e2b['push'](_0x2b0e2b['shift']());}}}(a1_0x3362,0xf22c8));import{CliErrors}from'../../errors.js';const CATEGORY_FLAG={'name':a1_0x1a6a50(0xa1),'type':a1_0x1a6a50(0xc0),'description':'Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset'},KEYWORD_FLAG={'name':a1_0x1a6a50(0xdf),'type':'string','description':a1_0x1a6a50(0x88)},DOC_CODE_FLAG={'name':a1_0x1a6a50(0x84),'type':'string','required':!![],'description':a1_0x1a6a50(0xa5)},DOCS=[{'code':a1_0x1a6a50(0xe9),'category':a1_0x1a6a50(0xce),'title':a1_0x1a6a50(0xed),'method':a1_0x1a6a50(0x91),'path':a1_0x1a6a50(0x98),'summary':a1_0x1a6a50(0xac),'whenToUse':a1_0x1a6a50(0xaf),'pathParams':[],'queryParams':[],'bodySchema':a1_0x1a6a50(0x89),'responseHighlights':[a1_0x1a6a50(0xec),'paging.totalCount\x20gives\x20total\x20rows'],'examples':[a1_0x1a6a50(0x9e)],'notes':[a1_0x1a6a50(0xb9)],'markdown':[a1_0x1a6a50(0xf5),'',a1_0x1a6a50(0xa9)]['join']('\x0a')},{'code':'dataset_detail','category':a1_0x1a6a50(0xce),'title':a1_0x1a6a50(0xb1),'method':a1_0x1a6a50(0xba),'path':a1_0x1a6a50(0xc9),'summary':'获取数据集详情','whenToUse':a1_0x1a6a50(0xde),'pathParams':[],'queryParams':[{'name':a1_0x1a6a50(0x84),'description':a1_0x1a6a50(0xa4)}],'bodySchema':a1_0x1a6a50(0xb4),'responseHighlights':[a1_0x1a6a50(0xc6),a1_0x1a6a50(0xca)],'examples':[a1_0x1a6a50(0x85)],'notes':[a1_0x1a6a50(0xcf)],'markdown':[a1_0x1a6a50(0xe0),'',a1_0x1a6a50(0x8a)]['join']('\x0a')},{'code':a1_0x1a6a50(0xad),'category':a1_0x1a6a50(0xce),'title':a1_0x1a6a50(0xaa),'method':'POST','path':a1_0x1a6a50(0x9a),'summary':'条件过滤查询数据','whenToUse':a1_0x1a6a50(0xe1),'pathParams':[{'name':a1_0x1a6a50(0xf3),'description':'Current\x20app\x20code'},{'name':a1_0x1a6a50(0xc5),'description':a1_0x1a6a50(0xa4)}],'queryParams':[],'bodySchema':a1_0x1a6a50(0xb8),'responseHighlights':[a1_0x1a6a50(0xcd),a1_0x1a6a50(0x95)],'examples':['lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:5}\x27'],'notes':['Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.'],'markdown':['##\x20Filter\x20dataset\x20data','','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.'][a1_0x1a6a50(0xb3)]('\x0a')},{'code':a1_0x1a6a50(0x9c),'category':'dataset','title':a1_0x1a6a50(0xf0),'method':a1_0x1a6a50(0x91),'path':'/api/{appCode}/{datasetCode}/aggregate','summary':'聚合查询数据集数据','whenToUse':'需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用','pathParams':[{'name':a1_0x1a6a50(0xf3),'description':a1_0x1a6a50(0xe2)},{'name':a1_0x1a6a50(0xc5),'description':a1_0x1a6a50(0xa4)}],'queryParams':[],'bodySchema':a1_0x1a6a50(0xf8),'responseHighlights':[a1_0x1a6a50(0x9d),a1_0x1a6a50(0xe5)],'examples':[a1_0x1a6a50(0xbb)],'notes':[a1_0x1a6a50(0xb5),a1_0x1a6a50(0xd2)],'markdown':[a1_0x1a6a50(0xa0),'',a1_0x1a6a50(0xdd)][a1_0x1a6a50(0xb3)]('\x0a')},{'code':'dataset_data_get_one','category':a1_0x1a6a50(0xce),'title':a1_0x1a6a50(0xd9),'method':a1_0x1a6a50(0x91),'path':a1_0x1a6a50(0x87),'summary':a1_0x1a6a50(0x86),'whenToUse':'已经知道记录\x20id,需要按数据集读取单条业务数据时使用','pathParams':[{'name':a1_0x1a6a50(0xf3),'description':a1_0x1a6a50(0xe2)},{'name':a1_0x1a6a50(0xc5),'description':a1_0x1a6a50(0xa4)}],'queryParams':[],'bodySchema':a1_0x1a6a50(0xd0),'responseHighlights':[a1_0x1a6a50(0xf7)],'examples':[a1_0x1a6a50(0xe8)],'notes':['Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.'],'markdown':a1_0x1a6a50(0x7f)},{'code':'dataset_data_create','category':a1_0x1a6a50(0xce),'title':a1_0x1a6a50(0x81),'method':a1_0x1a6a50(0x91),'path':a1_0x1a6a50(0xc8),'summary':'创建数据','whenToUse':a1_0x1a6a50(0x8f),'pathParams':[{'name':a1_0x1a6a50(0xf3),'description':a1_0x1a6a50(0xe2)},{'name':a1_0x1a6a50(0xc5),'description':a1_0x1a6a50(0xa4)}],'queryParams':[],'bodySchema':a1_0x1a6a50(0xa7),'responseHighlights':[a1_0x1a6a50(0xd8)],'examples':[a1_0x1a6a50(0xb6)],'notes':[a1_0x1a6a50(0xcb)],'markdown':a1_0x1a6a50(0x92)},{'code':a1_0x1a6a50(0xea),'category':'bf','title':a1_0x1a6a50(0xf6),'method':a1_0x1a6a50(0xba),'path':a1_0x1a6a50(0xf4),'summary':a1_0x1a6a50(0x99),'whenToUse':a1_0x1a6a50(0xd4),'pathParams':[{'name':'appCode','description':'Current\x20app\x20code'}],'queryParams':[],'bodySchema':a1_0x1a6a50(0xb4),'responseHighlights':[a1_0x1a6a50(0x82)],'examples':[a1_0x1a6a50(0xc7)],'notes':[a1_0x1a6a50(0x8b)],'markdown':'##\x20List\x20BF\x20endpoint\x20functions\x0a\x0aDiscover\x20executable\x20endpoint\x20functions.'},{'code':a1_0x1a6a50(0xae),'category':'bf','title':a1_0x1a6a50(0xd6),'method':a1_0x1a6a50(0x91),'path':a1_0x1a6a50(0xd7),'summary':'执行指定\x20BF\x20函数','whenToUse':a1_0x1a6a50(0xa6),'pathParams':[{'name':a1_0x1a6a50(0xf3),'description':a1_0x1a6a50(0xe2)},{'name':'scriptName','description':a1_0x1a6a50(0xd3)}],'queryParams':[],'bodySchema':a1_0x1a6a50(0xeb),'responseHighlights':['Returns\x20script\x20business\x20payload'],'examples':[a1_0x1a6a50(0xbf)],'notes':[a1_0x1a6a50(0xbd)],'markdown':'##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.'},{'code':'custom_sql_execute','category':'custom_sql','title':a1_0x1a6a50(0xb2),'method':'POST','path':a1_0x1a6a50(0x8e),'summary':a1_0x1a6a50(0x96),'whenToUse':a1_0x1a6a50(0xbe),'pathParams':[],'queryParams':[],'bodySchema':a1_0x1a6a50(0x97),'responseHighlights':[a1_0x1a6a50(0x8d)],'examples':[a1_0x1a6a50(0xef)],'notes':['Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.'],'markdown':a1_0x1a6a50(0x8c)}];function entrySummary(_0x99dac0){const _0x4143f4=a1_0x1a6a50;return{'code':_0x99dac0['code'],'category':_0x99dac0[_0x4143f4(0xa1)],'method':_0x99dac0[_0x4143f4(0x9b)],'path':_0x99dac0[_0x4143f4(0xe3)],'summary':_0x99dac0[_0x4143f4(0xda)],'whenToUse':_0x99dac0[_0x4143f4(0xd1)]};}export function listApiDocEntries(_0xf5d9d={}){const _0xd75550=a1_0x1a6a50,_0xabf31b=String(_0xf5d9d[_0xd75550(0xa1)]||'')[_0xd75550(0xc2)](),_0x1f5503=String(_0xf5d9d[_0xd75550(0xdf)]||'')[_0xd75550(0xc2)]()[_0xd75550(0x83)]();return DOCS[_0xd75550(0x93)](_0x208267=>{const _0xc40e7c=_0xd75550;if(_0xabf31b&&_0x208267[_0xc40e7c(0xa1)]!==_0xabf31b)return![];if(!_0x1f5503)return!![];return[_0x208267[_0xc40e7c(0x84)],_0x208267['category'],_0x208267[_0xc40e7c(0x9b)],_0x208267[_0xc40e7c(0xe3)],_0x208267[_0xc40e7c(0xda)],_0x208267[_0xc40e7c(0xd1)],_0x208267['title']][_0xc40e7c(0xb3)]('\x20')[_0xc40e7c(0x83)]()[_0xc40e7c(0x94)](_0x1f5503);})[_0xd75550(0xf2)](entrySummary);}export function getApiDocDetail(_0x99dc6e){const _0xa4cd8c=a1_0x1a6a50,_0x35dd24=DOCS[_0xa4cd8c(0xab)](_0x34f5b3=>_0x34f5b3[_0xa4cd8c(0x84)]===_0x99dc6e);if(!_0x35dd24)throw CliErrors[_0xa4cd8c(0xdc)](_0xa4cd8c(0xb0)+_0x99dc6e);return{..._0x35dd24};}const apiDocList={'service':a1_0x1a6a50(0x90),'command':a1_0x1a6a50(0xcc),'description':a1_0x1a6a50(0x80),'risk':a1_0x1a6a50(0xa2),'requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0x16ece5){const _0x4983f1=a1_0x1a6a50,_0x4849ca=listApiDocEntries({'category':_0x16ece5[_0x4983f1(0xdb)](_0x4983f1(0xa1)),'keyword':_0x16ece5[_0x4983f1(0xdb)]('keyword')});return{'ok':!![],'data':{'total':_0x4849ca['length'],'items':_0x4849ca}};}},apiDocDetail={'service':a1_0x1a6a50(0x90),'command':a1_0x1a6a50(0xbc),'description':a1_0x1a6a50(0xe7),'risk':a1_0x1a6a50(0xa2),'requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0x58dc76){const _0xd361cc=a1_0x1a6a50;return{'ok':!![],'data':getApiDocDetail(_0x58dc76[_0xd361cc(0xdb)](_0xd361cc(0x84)))};}};export const apiDocDefinitions=[apiDocList,apiDocDetail];function a1_0x3362(){const _0x17bcfa=['Inspect\x20field\x20names\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.','CLI\x20has\x20typed\x20`bff\x20detail`\x20and\x20`bff\x20exec`\x20commands\x20for\x20endpoint\x20scripts.','##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.','Returns\x20SQL\x20execution\x20payload','/api/custom/executeSql','需要向指定数据集新增一条业务数据时使用','api-doc','POST','##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.','filter','includes','paging\x20contains\x20pagination','执行自定义\x20SQL','{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','/api/dataset/get-dataset-list-by-app-code','获取应用下可调用的\x20BF\x20函数列表','/api/{appCode}/{datasetCode}/filter','method','dataset_data_aggregate','result\x20rows\x20contain\x20aggregate\x20aliases','lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress','10156rizVls','##\x20Aggregate\x20dataset\x20data','category','read','17570QsMysC','32-character\x20dataset\x20code','API\x20doc\x20code,\x20for\x20example\x20dataset_list','已经确认目标\x20BF\x20的\x20scriptName,且需要实际调用该\x20ENDPOINT\x20脚本完成业务操作时使用','{\x22fieldName\x22:\x22value\x22}','133LRtCLJ','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.','Filter\x20dataset\x20data','find','分页获取数据集列表','dataset_data_filter','bf_execute','需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','API\x20doc\x20code\x20not\x20found:\x20','Dataset\x20detail','Execute\x20custom\x20SQL','join','None','Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.','lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27','132776qBOFfF','{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.','GET','lovrabet\x20data\x20aggregate\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}]}\x27','detail','Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.','已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27','string','9KiONHJ','trim','9878uEDkqi','384hcnzvO','datasetCode','fields/properties\x20describe\x20data\x20shape','lovrabet\x20bff\x20detail\x20--id\x20<scriptId>\x20--appcode\x20<appCode>','/api/{appCode}/{datasetCode}/create','/api/dataset/getOneByCode?code={datasetCode}','operations\x20describes\x20runtime\x20APIs','This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.','list','tableData\x20contains\x20records','dataset','If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.','{\x22id\x22:123}','whenToUse','`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','Endpoint\x20function\x20name','需要先确认当前应用有哪些可执行的\x20BF/ENDPOINT\x20函数,以及收敛可用\x20scriptName\x20时使用','1264Fxdcun','Execute\x20BF\x20endpoint\x20function','/api/endpoint/{appCode}/{scriptName}','Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result','Get\x20one\x20dataset\x20record','summary','str','validation','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.','需要按数据集\x20code\x20获取字段、表信息或操作定义时使用','keyword','##\x20Dataset\x20detail','需要携带\x20where、orderBy、分页等条件读取业务数据时使用','Current\x20app\x20code','path','10635684Pgbafs','where\x20filters\x20before\x20aggregation','9854990flxWfM','Show\x20runtime\x20API\x20documentation\x20by\x20code','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27','dataset_list','bf_function_list','{\x22param\x22:\x22value\x22}','tableData\x20contains\x20dataset\x20id/code/name','List\x20datasets','1406997WvpxlL','lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27','Aggregate\x20dataset\x20data','235uqLwHu','map','appCode','/api/endpoint/{appCode}/functions','##\x20List\x20datasets','List\x20BF\x20endpoint\x20functions','Returns\x20one\x20matching\x20business\x20record','{\x22aggregate\x22:[{\x22column\x22:\x20\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.','List\x20available\x20runtime\x20API\x20documentation\x20entries','Create\x20dataset\x20record','Returns\x20endpoint\x20functionName/id/description','toLowerCase','code','lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>','查询单条数据','/api/{appCode}/{datasetCode}/getOne','Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text','{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}'];a1_0x3362=function(){return _0x17bcfa;};return a1_0x3362();}
@@ -1 +1 @@
1
- (function(_0x3dd5eb,_0x513957){const _0x1a6a21=a2_0xabf5,_0x84e20f=_0x3dd5eb();while(!![]){try{const _0x363d6a=parseInt(_0x1a6a21(0x142))/0x1+parseInt(_0x1a6a21(0x151))/0x2+-parseInt(_0x1a6a21(0x139))/0x3+parseInt(_0x1a6a21(0x148))/0x4*(-parseInt(_0x1a6a21(0x149))/0x5)+-parseInt(_0x1a6a21(0x13f))/0x6+-parseInt(_0x1a6a21(0x143))/0x7+parseInt(_0x1a6a21(0x146))/0x8*(parseInt(_0x1a6a21(0x14a))/0x9);if(_0x363d6a===_0x513957)break;else _0x84e20f['push'](_0x84e20f['shift']());}catch(_0x5d56fe){_0x84e20f['push'](_0x84e20f['shift']());}}}(a2_0x5bca,0x7533e));import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';function a2_0xabf5(_0x336454,_0x385e56){_0x336454=_0x336454-0x137;const _0x5bcade=a2_0x5bca();let _0xabf5d7=_0x5bcade[_0x336454];return _0xabf5d7;}import{dirname,resolve}from'node:path';import{PRODUCT_CONFIG}from'../../constant/product.js';import{isRuntimeAccessibleApp}from'../../commands/app/eligibility.js';export function fingerprintAccessKey(_0x46be49){const _0xfa576d=a2_0xabf5,_0x5c338e=_0x46be49[_0xfa576d(0x14b)](),_0x3f201c=_0x5c338e[_0xfa576d(0x13b)](-0x6)||_0xfa576d(0x145),_0x5d46d9=createHash(_0xfa576d(0x14d))['update'](_0x5c338e)['digest'](_0xfa576d(0x13e))[_0xfa576d(0x13b)](0x0,0xc);return _0xfa576d(0x137)+_0x3f201c+'_'+_0x5d46d9;}function a2_0x5bca(){const _0x120e24=['.tmp','295590RSRxxF','my-apps.json','EXDEV','ak_','EPERM','1891050GxEpSO','EACCES','slice','parse','stringify','hex','1403346XUjLGt','items','appName','565838ddzjIs','584374nOKgSo','homeDirName','unknown','4184VeCsnl','cache','252508HPQxgz','25HNokYS','17721bWwVxv','trim','appCode','sha256','code','utf8'];a2_0x5bca=function(){return _0x120e24;};return a2_0x5bca();}export function getAppCacheFilePath(_0x25ffa8,_0xbab2e6){const _0x245742=a2_0xabf5;return resolve(homedir(),PRODUCT_CONFIG[_0x245742(0x144)],_0x245742(0x147),_0x25ffa8,fingerprintAccessKey(_0xbab2e6),_0x245742(0x152));}export function readCachedAppList(_0x24fcb1,_0xf93cb){const _0x18089c=a2_0xabf5;if(!_0xf93cb?.[_0x18089c(0x14b)]())return null;const _0x56273f=getAppCacheFilePath(_0x24fcb1,_0xf93cb);if(!existsSync(_0x56273f))return null;try{const _0x52ac7c=readFileSync(_0x56273f,_0x18089c(0x14f));if(!_0x52ac7c['trim']())return null;const _0x3d2e32=JSON[_0x18089c(0x13c)](_0x52ac7c);if(!Array['isArray'](_0x3d2e32[_0x18089c(0x140)]))return null;return _0x3d2e32;}catch{return null;}}export function writeCachedAppList(_0x352642,_0x5540b5,_0x121a7f){const _0x556c5f=a2_0xabf5,_0x5e492b=getAppCacheFilePath(_0x352642,_0x5540b5),_0x385773=dirname(_0x5e492b);!existsSync(_0x385773)&&mkdirSync(_0x385773,{'recursive':!![]});const _0x4542e7=_0x5e492b+_0x556c5f(0x150);try{writeFileSync(_0x4542e7,JSON[_0x556c5f(0x13d)](_0x121a7f,null,0x2)+'\x0a',{'encoding':_0x556c5f(0x14f),'mode':0x180});try{renameSync(_0x4542e7,_0x5e492b);}catch(_0x191ec3){if(_0x191ec3[_0x556c5f(0x14e)]===_0x556c5f(0x138)||_0x191ec3[_0x556c5f(0x14e)]===_0x556c5f(0x153)||_0x191ec3[_0x556c5f(0x14e)]===_0x556c5f(0x13a)){writeFileSync(_0x5e492b,JSON[_0x556c5f(0x13d)](_0x121a7f,null,0x2)+'\x0a',{'encoding':_0x556c5f(0x14f)});try{unlinkSync(_0x4542e7);}catch{}}else throw _0x191ec3;}}catch(_0x295fa8){try{unlinkSync(_0x4542e7);}catch{}throw _0x295fa8;}return _0x5e492b;}export function resolveCachedAppCode(_0x591d7a,_0x517771,_0x3e4698){const _0x1c7300=a2_0xabf5;if(!_0x591d7a)return undefined;const _0x2ad763=readCachedAppList(_0x517771,_0x3e4698),_0x3e8047=_0x2ad763?.[_0x1c7300(0x140)]['find'](_0x56e223=>_0x56e223[_0x1c7300(0x141)]===_0x591d7a&&isRuntimeAccessibleApp(_0x56e223));return _0x3e8047?.[_0x1c7300(0x14c)]?.[_0x1c7300(0x14b)]()||undefined;}
1
+ (function(_0xd53fa1,_0x44afc9){const _0x1c25e3=a2_0x5abf,_0x2dab57=_0xd53fa1();while(!![]){try{const _0x56ff80=parseInt(_0x1c25e3(0x1e1))/0x1+-parseInt(_0x1c25e3(0x1dc))/0x2+parseInt(_0x1c25e3(0x1cc))/0x3*(parseInt(_0x1c25e3(0x1e4))/0x4)+parseInt(_0x1c25e3(0x1da))/0x5*(parseInt(_0x1c25e3(0x1cf))/0x6)+parseInt(_0x1c25e3(0x1d1))/0x7+-parseInt(_0x1c25e3(0x1d9))/0x8+-parseInt(_0x1c25e3(0x1d5))/0x9*(parseInt(_0x1c25e3(0x1dd))/0xa);if(_0x56ff80===_0x44afc9)break;else _0x2dab57['push'](_0x2dab57['shift']());}catch(_0x4454b5){_0x2dab57['push'](_0x2dab57['shift']());}}}(a2_0x221c,0x7ed2b));import{createHash}from'node:crypto';function a2_0x221c(){const _0x5955ef=['371339TDPROK','utf8','digest','12QQSqPE','isArray','items','658551HZTVOd','cache','sha256','18aGNCoX','EPERM','1087723VUHVUA','slice','hex','ak_','126BtmXyf','my-apps.json','find','code','586352DGQnGU','1406245amLWdt','trim','122566tQlPCB','982130SiPOwb','homeDirName','.tmp','stringify'];a2_0x221c=function(){return _0x5955ef;};return a2_0x221c();}import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';import{dirname,resolve}from'node:path';import{PRODUCT_CONFIG}from'../../constant/product.js';import{isRuntimeAccessibleApp}from'../../commands/app/eligibility.js';function a2_0x5abf(_0x39ed03,_0x43fb96){_0x39ed03=_0x39ed03-0x1cb;const _0x221c3=a2_0x221c();let _0x5abf37=_0x221c3[_0x39ed03];return _0x5abf37;}export function fingerprintAccessKey(_0x4c6d57){const _0x4e29c9=a2_0x5abf,_0x902822=_0x4c6d57[_0x4e29c9(0x1db)](),_0x4f5fd5=_0x902822['slice'](-0x6)||'unknown',_0x3cd46a=createHash(_0x4e29c9(0x1ce))['update'](_0x902822)[_0x4e29c9(0x1e3)](_0x4e29c9(0x1d3))[_0x4e29c9(0x1d2)](0x0,0xc);return _0x4e29c9(0x1d4)+_0x4f5fd5+'_'+_0x3cd46a;}export function getAppCacheFilePath(_0x591f32,_0x5e3c46){const _0x11c0b3=a2_0x5abf;return resolve(homedir(),PRODUCT_CONFIG[_0x11c0b3(0x1de)],_0x11c0b3(0x1cd),_0x591f32,fingerprintAccessKey(_0x5e3c46),_0x11c0b3(0x1d6));}export function readCachedAppList(_0x135612,_0x26b1bd){const _0x2bc100=a2_0x5abf;if(!_0x26b1bd?.['trim']())return null;const _0x2456f9=getAppCacheFilePath(_0x135612,_0x26b1bd);if(!existsSync(_0x2456f9))return null;try{const _0x30ed3b=readFileSync(_0x2456f9,'utf8');if(!_0x30ed3b[_0x2bc100(0x1db)]())return null;const _0xac8ced=JSON['parse'](_0x30ed3b);if(!Array[_0x2bc100(0x1e5)](_0xac8ced[_0x2bc100(0x1cb)]))return null;return _0xac8ced;}catch{return null;}}export function writeCachedAppList(_0x2994f,_0x419b8b,_0x273af3){const _0x12cd4f=a2_0x5abf,_0x1d69a7=getAppCacheFilePath(_0x2994f,_0x419b8b),_0x44de58=dirname(_0x1d69a7);!existsSync(_0x44de58)&&mkdirSync(_0x44de58,{'recursive':!![]});const _0x30fb17=_0x1d69a7+_0x12cd4f(0x1df);try{writeFileSync(_0x30fb17,JSON[_0x12cd4f(0x1e0)](_0x273af3,null,0x2)+'\x0a',{'encoding':_0x12cd4f(0x1e2),'mode':0x180});try{renameSync(_0x30fb17,_0x1d69a7);}catch(_0x4a16b7){if(_0x4a16b7[_0x12cd4f(0x1d8)]===_0x12cd4f(0x1d0)||_0x4a16b7[_0x12cd4f(0x1d8)]==='EXDEV'||_0x4a16b7[_0x12cd4f(0x1d8)]==='EACCES'){writeFileSync(_0x1d69a7,JSON['stringify'](_0x273af3,null,0x2)+'\x0a',{'encoding':_0x12cd4f(0x1e2)});try{unlinkSync(_0x30fb17);}catch{}}else throw _0x4a16b7;}}catch(_0x128df3){try{unlinkSync(_0x30fb17);}catch{}throw _0x128df3;}return _0x1d69a7;}export function resolveCachedAppCode(_0x379d32,_0x1ebb1c,_0x23d2be){const _0x188f70=a2_0x5abf;if(!_0x379d32)return undefined;const _0x1ddedf=readCachedAppList(_0x1ebb1c,_0x23d2be),_0x137617=_0x1ddedf?.[_0x188f70(0x1cb)][_0x188f70(0x1d7)](_0x5dd162=>_0x5dd162['appName']===_0x379d32&&isRuntimeAccessibleApp(_0x5dd162));return _0x137617?.['appCode']?.[_0x188f70(0x1db)]()||undefined;}
@@ -1 +1 @@
1
- const a3_0x2d7cc3=a3_0x4625;(function(_0x45a636,_0x3da7a9){const _0x36997d=a3_0x4625,_0x5a4f82=_0x45a636();while(!![]){try{const _0x520a14=-parseInt(_0x36997d(0x10f))/0x1+-parseInt(_0x36997d(0xea))/0x2+parseInt(_0x36997d(0x104))/0x3+-parseInt(_0x36997d(0xd1))/0x4*(parseInt(_0x36997d(0xdd))/0x5)+parseInt(_0x36997d(0xd0))/0x6+-parseInt(_0x36997d(0x116))/0x7+parseInt(_0x36997d(0x109))/0x8;if(_0x520a14===_0x3da7a9)break;else _0x5a4f82['push'](_0x5a4f82['shift']());}catch(_0x1fcb2f){_0x5a4f82['push'](_0x5a4f82['shift']());}}}(a3_0x1f44,0xc319d));import{CliErrors}from'../../errors.js';import{initCreateFlagDefs,initImportFlagDefs,runInit,runInitImport}from'../../commands/init.js';function a3_0x4625(_0x3f463a,_0x397b90){_0x3f463a=_0x3f463a-0xc9;const _0x1f4490=a3_0x1f44();let _0x4625b8=_0x1f4490[_0x3f463a];return _0x4625b8;}import{getEnv,RUNTIME_ENV_VALUES}from'../../constant/env.js';import{buildAppProfileListFields}from'../../config/schema.js';import{CLI_BIN_NAME,readConfig,writeConfig,scopeLabel,enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{filterRuntimeAccessibleApps,findAppByCode,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const GLOBAL_FLAG={'name':a3_0x2d7cc3(0x10e),'type':a3_0x2d7cc3(0xf4),'description':a3_0x2d7cc3(0xd5),'default':![]};function collectFlags(_0x444712,_0x4a89f4){const _0x255b1c=a3_0x2d7cc3,_0x3efd51={};for(const _0x475422 of _0x4a89f4){const _0x4d33e9=_0x475422[_0x255b1c(0x100)]===_0x255b1c(0xf4)?_0x444712[_0x255b1c(0xdb)](_0x475422['name']):_0x444712[_0x255b1c(0xdc)](_0x475422[_0x255b1c(0x10d)]);if(_0x4d33e9!==''&&_0x4d33e9!==![])_0x3efd51[_0x475422['name']]=_0x4d33e9;}if(_0x444712[_0x255b1c(0xfc)])_0x3efd51[_0x255b1c(0xfc)]=!![];return _0x3efd51;}function normalizeLanguages(_0x24bf46){const _0x2bfc02=a3_0x2d7cc3;if(!Array[_0x2bfc02(0x11c)](_0x24bf46))return[];return _0x24bf46[_0x2bfc02(0xee)](_0x545d45=>typeof _0x545d45===_0x2bfc02(0x10a))[_0x2bfc02(0x107)](_0x377368=>_0x377368[_0x2bfc02(0x114)]())[_0x2bfc02(0xee)](Boolean);}function buildRemoteAppI18nFields(_0xcb0c9a){const _0x1e98d4=a3_0x2d7cc3,_0xc89dc5=normalizeLanguages(_0xcb0c9a[_0x1e98d4(0x10c)]?.[_0x1e98d4(0xe3)]);return{'enableI18n':typeof _0xcb0c9a[_0x1e98d4(0x103)]===_0x1e98d4(0xf4)?_0xcb0c9a[_0x1e98d4(0x103)]:null,'languages':_0xc89dc5,'i18nInfo':_0xcb0c9a[_0x1e98d4(0x10c)]?{..._0xcb0c9a['i18nInfo'],'langs':_0xc89dc5['length']?_0xc89dc5:null}:null};}const initDef={'service':a3_0x2d7cc3(0xf1),'command':a3_0x2d7cc3(0x111),'description':a3_0x2d7cc3(0x118),'risk':a3_0x2d7cc3(0xe6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x582c41){const _0x4034fc=a3_0x2d7cc3;return warnDeprecatedAppCommand(_0x4034fc(0x111),CLI_BIN_NAME+_0x4034fc(0xe0)),await runInit(collectFlags(_0x582c41,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a3_0x2d7cc3(0xf1),'command':a3_0x2d7cc3(0xf9),'description':a3_0x2d7cc3(0xff),'risk':a3_0x2d7cc3(0xf3),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':'env','type':a3_0x2d7cc3(0x10a),'description':a3_0x2d7cc3(0xd4),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x2d7cc3(0xfa),'type':a3_0x2d7cc3(0xf4),'description':a3_0x2d7cc3(0xe4),'default':![]},{'name':'no-cache','type':a3_0x2d7cc3(0xf4),'description':'Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','default':![]},{'name':a3_0x2d7cc3(0xec),'type':'boolean','description':'Include\x20unpublished\x20apps\x20for\x20diagnostics','default':![]}],async 'execute'(_0x5f4da3){const _0xe0d4f2=a3_0x2d7cc3,_0xa39ebb=_0x5f4da3[_0xe0d4f2(0xdc)](_0xe0d4f2(0xe8))||_0x5f4da3[_0xe0d4f2(0xed)]||getEnv()||_0xe0d4f2(0xcc),_0x1cbe35=_0x5f4da3['bool']('local'),_0x110495=_0x5f4da3[_0xe0d4f2(0xdb)]('no-cache'),_0x4f3b84=_0x5f4da3[_0xe0d4f2(0xdb)]('include-unpublished'),{readRawConfigWithLayers:_0x8f8e9d,resolveDefaultAppSource:_0x278701,getLocalAppAliases:_0x52c5cd}=await import(_0xe0d4f2(0xeb)),{getRemoteAppList:_0x573448}=await import(_0xe0d4f2(0xf8)),{config:_0x27169b,layers:_0x16d863}=_0x8f8e9d(),_0x537f9f=_0x278701(_0x16d863),{defaultApp:_0x402652}=_0x27169b,_0x376621=await _0x573448({'env':_0xa39ebb,'accessKey':_0x5f4da3[_0xe0d4f2(0xe7)],'localOnly':_0x1cbe35,'noCache':_0x110495}),_0x2ede2b=_0x4f3b84?_0x376621['items']:filterRuntimeAccessibleApps(_0x376621[_0xe0d4f2(0xc9)]),_0x50c340=_0x376621[_0xe0d4f2(0xc9)][_0xe0d4f2(0xfb)]-_0x2ede2b[_0xe0d4f2(0xfb)],_0x2b9a8a=_0x2ede2b['map'](_0x937640=>{const _0x40c4e6=_0xe0d4f2;return{'name':_0x937640[_0x40c4e6(0x11d)],'appcode':_0x937640['appCode'],'named':!![],'definedIn':_0x40c4e6(0x117),'isDefault':_0x937640[_0x40c4e6(0x11d)]===_0x402652,...buildAppProfileListFields(_0xa39ebb),...buildRemoteAppI18nFields(_0x937640),'source':_0x376621[_0x40c4e6(0xd9)],'owner':_0x937640[_0x40c4e6(0x115)]??null,'status':_0x937640['appPublishStatus']??null,'cachedAt':_0x376621[_0x40c4e6(0xe9)]};}),_0x5701af=_0x52c5cd(_0x27169b);let _0x2ecd33=0x0;for(const [_0x7eb090,_0x2cf584]of Object[_0xe0d4f2(0xe1)](_0x5701af)){const _0x128976=typeof _0x2cf584[_0xe0d4f2(0xd3)]===_0xe0d4f2(0x10a)?_0x2cf584[_0xe0d4f2(0xd3)][_0xe0d4f2(0x114)]():'';if(!_0x128976)continue;const _0x119b80=findAppByCode(_0x376621[_0xe0d4f2(0xc9)],_0x128976);if(!_0x4f3b84&&_0x119b80&&!isRuntimeAccessibleApp(_0x119b80))continue;_0x2ecd33+=0x1,_0x2b9a8a[_0xe0d4f2(0xe5)]({'name':_0x7eb090,'appcode':_0x128976,'named':!![],'definedIn':_0xe0d4f2(0xfa),'isDefault':_0x7eb090===_0x402652,...buildAppProfileListFields(_0xa39ebb),'source':'config','owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x2b9a8a,_0x5f4da3[_0xe0d4f2(0xcb)]);const _0x5780ea=_0x2b9a8a[_0xe0d4f2(0x108)](_0x8171e=>_0x8171e['isCurrent']===!![]),_0x2096b7=_0x402652??_0x5780ea?.['name']??null,_0x405179={'env':_0xa39ebb,'source':_0x376621[_0xe0d4f2(0xd9)],'fetchedAt':_0x376621[_0xe0d4f2(0xe9)],'cachePath':_0x376621[_0xe0d4f2(0x113)],'globalPath':_0x16d863[_0xe0d4f2(0x110)]??null,'projectPath':_0x16d863[_0xe0d4f2(0xd8)]??null,'defaultApp':_0x2096b7,'defaultAppSource':_0x402652!=null?_0x537f9f:null,'localAliasCount':_0x2ecd33,'remoteTotal':_0x376621[_0xe0d4f2(0xc9)][_0xe0d4f2(0xfb)],'hiddenUnpublishedCount':_0x50c340,'includeUnpublished':_0x4f3b84};if(_0x2b9a8a[_0xe0d4f2(0xfb)]===0x0)return{'ok':!![],'data':{'items':_0x2b9a8a,'meta':_0x405179},'message':_0x376621[_0xe0d4f2(0xd9)]===_0xe0d4f2(0xd2)?_0xe0d4f2(0xda):_0xe0d4f2(0xde)};return{'ok':!![],'data':{'items':_0x2b9a8a,'meta':_0x405179}};}},pullDef={'service':a3_0x2d7cc3(0xf1),'command':'pull','description':a3_0x2d7cc3(0xcf),'risk':a3_0x2d7cc3(0xe6),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a3_0x2d7cc3(0xe8),'type':a3_0x2d7cc3(0x10a),'description':'Target\x20environment\x20(default:\x20current\x20env)','enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x2d7cc3(0xfa),'type':a3_0x2d7cc3(0xf4),'description':'Read\x20from\x20local\x20cache\x20only','default':![]},{'name':'no-cache','type':'boolean','description':'Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','default':![]}],async 'execute'(_0x308d86){const _0x20943b=a3_0x2d7cc3,_0x3f40c3=_0x308d86[_0x20943b(0xdc)](_0x20943b(0xe8))||_0x308d86[_0x20943b(0xed)]||getEnv()||_0x20943b(0xcc),_0x47bb0d=_0x308d86[_0x20943b(0xdb)]('local'),_0x2beecd=_0x308d86[_0x20943b(0xdb)](_0x20943b(0xef)),{getRemoteAppList:_0x2a3693}=await import(_0x20943b(0xf8)),_0x40a562=await _0x2a3693({'env':_0x3f40c3,'accessKey':_0x308d86['accessKey'],'localOnly':_0x47bb0d,'noCache':_0x2beecd});return{'ok':!![],'data':{'total':_0x40a562['items']['length'],'env':_0x3f40c3,'source':_0x40a562['source'],'fetchedAt':_0x40a562[_0x20943b(0xe9)],'cachePath':_0x40a562[_0x20943b(0x113)]},'message':_0x40a562[_0x20943b(0xd9)]===_0x20943b(0xd2)?_0x20943b(0x11b)+_0x40a562['items'][_0x20943b(0xfb)]+_0x20943b(0x119)+_0x3f40c3+'\x22.':_0x20943b(0xd7)+_0x40a562[_0x20943b(0xc9)][_0x20943b(0xfb)]+'\x20app(s)\x20for\x20env=\x22'+_0x3f40c3+'\x22.'};}},useDef={'service':a3_0x2d7cc3(0xf1),'command':a3_0x2d7cc3(0x112),'description':a3_0x2d7cc3(0xce),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a3_0x2d7cc3(0x10d),'description':a3_0x2d7cc3(0xca),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x30b9a4){const _0x361cb5=a3_0x2d7cc3;if(!_0x30b9a4[_0x361cb5(0xf6)][0x0])throw CliErrors[_0x361cb5(0x11e)](_0x361cb5(0xdf),_0x361cb5(0xf5)+CLI_BIN_NAME+_0x361cb5(0xd6));},async 'execute'(_0x352ac2){const _0x3bff63=a3_0x2d7cc3;warnDeprecatedAppCommand(_0x3bff63(0x112),CLI_BIN_NAME+_0x3bff63(0x106));const _0xc417a5=_0x352ac2[_0x3bff63(0xf6)][0x0];if(!_0xc417a5)throw CliErrors[_0x3bff63(0x11e)](_0x3bff63(0xdf),_0x3bff63(0xf5)+CLI_BIN_NAME+_0x3bff63(0xd6));const {buildConfigFromFlags:_0x21fe18,resolveLocalAppAliasCode:_0x38fa2c}=await import('../../context.js'),{readCachedAppList:_0x134938}=await import(_0x3bff63(0xf7)),_0x2c8ae3=_0x352ac2[_0x3bff63(0xdc)]('env'),_0x30542d=_0x21fe18(_0x2c8ae3?{'env':_0x2c8ae3}:{}),_0x33cc66=_0x134938(_0x30542d['env'],_0x30542d['accessKey']),_0x3e5697=_0x33cc66?.[_0x3bff63(0xc9)][_0x3bff63(0x108)](_0x2d503c=>_0x2d503c[_0x3bff63(0x11d)]===_0xc417a5),_0x2057c0=_0x38fa2c(_0x30542d[_0x3bff63(0x102)]??{},_0xc417a5);if(_0x3e5697&&!isRuntimeAccessibleApp(_0x3e5697))throw runtimeInaccessibleAppError(_0x3e5697,'\x22'+_0xc417a5+'\x22');if(_0x2057c0){const _0xd670c3=_0x33cc66?.['items'][_0x3bff63(0x108)](_0xe034e9=>_0xe034e9[_0x3bff63(0x101)]?.[_0x3bff63(0x114)]()===_0x2057c0);if(_0xd670c3&&!isRuntimeAccessibleApp(_0xd670c3))throw runtimeInaccessibleAppError(_0xd670c3,'\x22'+_0xc417a5+'\x22');}if(!_0x3e5697&&!_0x2057c0&&_0x30542d[_0x3bff63(0xe2)]!==_0xc417a5){const _0x45b03d=[..._0x33cc66?.[_0x3bff63(0xc9)][_0x3bff63(0x107)](_0x155c2f=>_0x155c2f[_0x3bff63(0x11d)])??[]],_0x446d97=_0x45b03d[_0x3bff63(0xfb)]===0x0?'Use\x20`'+CLI_BIN_NAME+_0x3bff63(0xcd)+_0xc417a5+'.appcode\x20to\x20.lovrabet.json.':_0x3bff63(0x105)+Array['from'](new Set(_0x45b03d))['join'](',\x20')+_0x3bff63(0x10b);throw CliErrors[_0x3bff63(0x11e)](_0x3bff63(0xf2)+_0xc417a5+_0x3bff63(0xfe),_0x446d97);}const _0x165721=_0x352ac2['bool']('global');let _0x5bbb86;if(_0x165721)_0x5bbb86={'global':!![]};else{const {isInProject:_0xda1f10}=await import('../../context.js'),_0x3bd284=_0xda1f10();_0x5bbb86=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0x3bff63(0x11a),'inProject':_0x3bd284}));}const _0x290d8f=readConfig(_0x5bbb86);return _0x290d8f[_0x3bff63(0xe2)]=_0xc417a5,writeConfig(_0x290d8f,_0x5bbb86),{'ok':!![],'message':'Default\x20app\x20candidate\x20set\x20to\x20\x22'+_0xc417a5+'\x22'+scopeLabel(_0x5bbb86)+'.'};}};function warnDeprecatedAppCommand(_0x3d1144,_0x475559){const _0xc9e5b2=a3_0x2d7cc3;console['warn'](CLI_BIN_NAME+'\x20app\x20'+_0x3d1144+_0xc9e5b2(0xf0)+_0x475559+'`\x20instead.');}const importDef={'service':a3_0x2d7cc3(0xf1),'command':'import','description':a3_0x2d7cc3(0xfd),'risk':a3_0x2d7cc3(0xe6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x4a83c3){return await runInitImport(collectFlags(_0x4a83c3,initImportFlagDefs)),{'ok':!![]};}};function a3_0x1f44(){const _0x3cacc4=['../../context.js','include-unpublished','envName','filter','no-cache','\x20is\x20deprecated.\x20Use\x20`','app','App\x20\x22','read','boolean','Usage:\x20','args','../../commands/app/cache.js','../../commands/app/remote-source.js','list','local','length','nonInteractive','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','\x22\x20not\x20found.','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','type','appCode','raw','enableI18n','2841924vhRMMQ','Available\x20remote\x20apps:\x20','\x20workspace\x20use\x20--app\x20<name>\x20[--env\x20daily]','map','find','15259080IWBIjC','string','.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.','i18nInfo','name','global','941416loNMVx','globalPath','init','use','cachePath','trim','appOwnerName','4722606dxLkIU','remote','Deprecated:\x20use\x20workspace\x20init\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','\x20cached\x20app(s)\x20for\x20env=\x22','project-default','Loaded\x20','isArray','appName','validation','items','Remote\x20app\x20name\x20to\x20activate','mergedCli','production','\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.','Deprecated:\x20use\x20workspace\x20use\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','8883606HQnzMU','4265956mKNrJJ','cache','appcode','Filter\x20by\x20environment\x20(default:\x20current\x20env)','Use\x20global\x20config\x20scope','\x20app\x20use\x20<name>\x20[--global]','Refreshed\x20app\x20cache\x20with\x20','projectPath','source','No\x20cached\x20apps\x20found.','bool','str','5kfoQHt','No\x20apps\x20found\x20on\x20the\x20platform.','Missing\x20app\x20name.','\x20workspace\x20init\x20--appcode\x20<code>\x20[--env\x20daily]','entries','defaultApp','langs','Read\x20app\x20list\x20from\x20local\x20cache\x20only','push','write','accessKey','env','fetchedAt','1707196TikoYb'];a3_0x1f44=function(){return _0x3cacc4;};return a3_0x1f44();}export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
1
+ const a3_0x197a9c=a3_0x2d89;(function(_0x490b87,_0x3a3225){const _0x174d32=a3_0x2d89,_0x242dbd=_0x490b87();while(!![]){try{const _0x5a5fd4=parseInt(_0x174d32(0x16b))/0x1+-parseInt(_0x174d32(0x148))/0x2*(parseInt(_0x174d32(0x158))/0x3)+-parseInt(_0x174d32(0x136))/0x4*(parseInt(_0x174d32(0x12b))/0x5)+-parseInt(_0x174d32(0x138))/0x6+parseInt(_0x174d32(0x152))/0x7*(-parseInt(_0x174d32(0x147))/0x8)+parseInt(_0x174d32(0x133))/0x9*(parseInt(_0x174d32(0x162))/0xa)+parseInt(_0x174d32(0x178))/0xb;if(_0x5a5fd4===_0x3a3225)break;else _0x242dbd['push'](_0x242dbd['shift']());}catch(_0x25c75f){_0x242dbd['push'](_0x242dbd['shift']());}}}(a3_0x5733,0xeb10d));import{CliErrors}from'../../errors.js';function a3_0x2d89(_0x329d35,_0xf22bab){_0x329d35=_0x329d35-0x120;const _0x5733ee=a3_0x5733();let _0x2d89d8=_0x5733ee[_0x329d35];return _0x2d89d8;}import{initCreateFlagDefs,initImportFlagDefs,runInit,runInitImport}from'../../commands/init.js';import{getEnv,RUNTIME_ENV_VALUES}from'../../constant/env.js';import{buildAppProfileListFields}from'../../config/schema.js';import{CLI_BIN_NAME,readConfig,writeConfig,scopeLabel,enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{filterRuntimeAccessibleApps,findAppByCode,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const GLOBAL_FLAG={'name':a3_0x197a9c(0x163),'type':a3_0x197a9c(0x126),'description':a3_0x197a9c(0x15c),'default':![]};function a3_0x5733(){const _0x39c95c=['Target\x20environment\x20(default:\x20current\x20env)','Use\x20global\x20config\x20scope','string','local','Use\x20`','defaultApp','read','10XfSZQW','global','Deprecated:\x20use\x20workspace\x20init\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','validation','../../context.js','items','appName','Loaded\x20','\x20workspace\x20use\x20--app\x20<name>\x20[--env\x20daily]','12184NncHYd','length','str','no-cache','trim','pull','envName','production','App\x20\x22','entries','isCurrent','Default\x20app\x20candidate\x20set\x20to\x20\x22','projectPath','26760833WVRxpO','join','mergedCli','\x20app\x20','appcode','cachePath','\x22\x20not\x20found.','No\x20cached\x20apps\x20found.','\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.','boolean','Deprecated:\x20use\x20workspace\x20use\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','No\x20apps\x20found\x20on\x20the\x20platform.','fetchedAt','50145nXIDKW','Read\x20from\x20local\x20cache\x20only','use','source','`\x20instead.','args','env','../../commands/app/remote-source.js','14973399oovGee','i18nInfo','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','32zAnKhc','app','2853504yXLtBf','enableI18n','\x20app\x20use\x20<name>\x20[--global]','bool','init','appOwnerName','list','from','find','Filter\x20by\x20environment\x20(default:\x20current\x20env)','map','accessKey','\x20cached\x20app(s)\x20for\x20env=\x22','push','raw','6326296BPSrNu','2016958IAIzsP','isArray','\x20workspace\x20init\x20--appcode\x20<code>\x20[--env\x20daily]','Read\x20app\x20list\x20from\x20local\x20cache\x20only','\x20app(s)\x20for\x20env=\x22','filter','Remote\x20app\x20name\x20to\x20activate','include-unpublished','remote','Refreshed\x20app\x20cache\x20with\x20','14EuLlYc','name','appCode','../../commands/app/cache.js','warn','nonInteractive','3CjwddT','Missing\x20app\x20name.','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache'];a3_0x5733=function(){return _0x39c95c;};return a3_0x5733();}function collectFlags(_0x204f27,_0x1d7b83){const _0x31bb1e=a3_0x197a9c,_0x5ee2e0={};for(const _0x55e21c of _0x1d7b83){const _0x4c687f=_0x55e21c['type']===_0x31bb1e(0x126)?_0x204f27[_0x31bb1e(0x13b)](_0x55e21c[_0x31bb1e(0x153)]):_0x204f27[_0x31bb1e(0x16d)](_0x55e21c[_0x31bb1e(0x153)]);if(_0x4c687f!==''&&_0x4c687f!==![])_0x5ee2e0[_0x55e21c[_0x31bb1e(0x153)]]=_0x4c687f;}if(_0x204f27[_0x31bb1e(0x157)])_0x5ee2e0['nonInteractive']=!![];return _0x5ee2e0;}function normalizeLanguages(_0x520856){const _0x2aa14c=a3_0x197a9c;if(!Array[_0x2aa14c(0x149)](_0x520856))return[];return _0x520856[_0x2aa14c(0x14d)](_0x391db3=>typeof _0x391db3===_0x2aa14c(0x15d))['map'](_0x2de3d1=>_0x2de3d1['trim']())[_0x2aa14c(0x14d)](Boolean);}function buildRemoteAppI18nFields(_0x51a391){const _0x32407f=a3_0x197a9c,_0x3be8fb=normalizeLanguages(_0x51a391['i18nInfo']?.['langs']);return{'enableI18n':typeof _0x51a391[_0x32407f(0x139)]===_0x32407f(0x126)?_0x51a391[_0x32407f(0x139)]:null,'languages':_0x3be8fb,'i18nInfo':_0x51a391[_0x32407f(0x134)]?{..._0x51a391['i18nInfo'],'langs':_0x3be8fb[_0x32407f(0x16c)]?_0x3be8fb:null}:null};}const initDef={'service':a3_0x197a9c(0x137),'command':a3_0x197a9c(0x13c),'description':a3_0x197a9c(0x164),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x3341b9){const _0x2301b8=a3_0x197a9c;return warnDeprecatedAppCommand('init',CLI_BIN_NAME+_0x2301b8(0x14a)),await runInit(collectFlags(_0x3341b9,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a3_0x197a9c(0x137),'command':a3_0x197a9c(0x13e),'description':'List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','risk':a3_0x197a9c(0x161),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a3_0x197a9c(0x131),'type':a3_0x197a9c(0x15d),'description':a3_0x197a9c(0x141),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x197a9c(0x15e),'type':a3_0x197a9c(0x126),'description':a3_0x197a9c(0x14b),'default':![]},{'name':a3_0x197a9c(0x16e),'type':a3_0x197a9c(0x126),'description':a3_0x197a9c(0x15a),'default':![]},{'name':a3_0x197a9c(0x14f),'type':a3_0x197a9c(0x126),'description':'Include\x20unpublished\x20apps\x20for\x20diagnostics','default':![]}],async 'execute'(_0x2475bc){const _0x51408c=a3_0x197a9c,_0x5bcdba=_0x2475bc['str'](_0x51408c(0x131))||_0x2475bc[_0x51408c(0x171)]||getEnv()||_0x51408c(0x172),_0x53eb9e=_0x2475bc[_0x51408c(0x13b)](_0x51408c(0x15e)),_0x390e16=_0x2475bc[_0x51408c(0x13b)]('no-cache'),_0x4f9419=_0x2475bc[_0x51408c(0x13b)](_0x51408c(0x14f)),{readRawConfigWithLayers:_0xa2182d,resolveDefaultAppSource:_0x44adbf,getLocalAppAliases:_0x5c0ac2}=await import(_0x51408c(0x166)),{getRemoteAppList:_0x1d90d1}=await import(_0x51408c(0x132)),{config:_0x55b3cf,layers:_0x5a713f}=_0xa2182d(),_0x5c733c=_0x44adbf(_0x5a713f),{defaultApp:_0x1c0ac5}=_0x55b3cf,_0x2b5e8a=await _0x1d90d1({'env':_0x5bcdba,'accessKey':_0x2475bc[_0x51408c(0x143)],'localOnly':_0x53eb9e,'noCache':_0x390e16}),_0x1b3df9=_0x4f9419?_0x2b5e8a[_0x51408c(0x167)]:filterRuntimeAccessibleApps(_0x2b5e8a[_0x51408c(0x167)]),_0xce6ad1=_0x2b5e8a[_0x51408c(0x167)]['length']-_0x1b3df9['length'],_0xea81b4=_0x1b3df9[_0x51408c(0x142)](_0x4cefa4=>{const _0xaffa65=_0x51408c;return{'name':_0x4cefa4[_0xaffa65(0x168)],'appcode':_0x4cefa4['appCode'],'named':!![],'definedIn':_0xaffa65(0x150),'isDefault':_0x4cefa4[_0xaffa65(0x168)]===_0x1c0ac5,...buildAppProfileListFields(_0x5bcdba),...buildRemoteAppI18nFields(_0x4cefa4),'source':_0x2b5e8a[_0xaffa65(0x12e)],'owner':_0x4cefa4[_0xaffa65(0x13d)]??null,'status':_0x4cefa4['appPublishStatus']??null,'cachedAt':_0x2b5e8a[_0xaffa65(0x12a)]};}),_0x2394f7=_0x5c0ac2(_0x55b3cf);let _0x5e0e3f=0x0;for(const [_0x372f07,_0x38b37d]of Object[_0x51408c(0x174)](_0x2394f7)){const _0x2683bf=typeof _0x38b37d[_0x51408c(0x121)]==='string'?_0x38b37d['appcode'][_0x51408c(0x16f)]():'';if(!_0x2683bf)continue;const _0x3d0b36=findAppByCode(_0x2b5e8a[_0x51408c(0x167)],_0x2683bf);if(!_0x4f9419&&_0x3d0b36&&!isRuntimeAccessibleApp(_0x3d0b36))continue;_0x5e0e3f+=0x1,_0xea81b4[_0x51408c(0x145)]({'name':_0x372f07,'appcode':_0x2683bf,'named':!![],'definedIn':'local','isDefault':_0x372f07===_0x1c0ac5,...buildAppProfileListFields(_0x5bcdba),'source':'config','owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0xea81b4,_0x2475bc[_0x51408c(0x17a)]);const _0x582e2c=_0xea81b4[_0x51408c(0x140)](_0x545853=>_0x545853[_0x51408c(0x175)]===!![]),_0x44b197=_0x1c0ac5??_0x582e2c?.['name']??null,_0x3ef7ca={'env':_0x5bcdba,'source':_0x2b5e8a[_0x51408c(0x12e)],'fetchedAt':_0x2b5e8a[_0x51408c(0x12a)],'cachePath':_0x2b5e8a[_0x51408c(0x122)],'globalPath':_0x5a713f['globalPath']??null,'projectPath':_0x5a713f[_0x51408c(0x177)]??null,'defaultApp':_0x44b197,'defaultAppSource':_0x1c0ac5!=null?_0x5c733c:null,'localAliasCount':_0x5e0e3f,'remoteTotal':_0x2b5e8a[_0x51408c(0x167)][_0x51408c(0x16c)],'hiddenUnpublishedCount':_0xce6ad1,'includeUnpublished':_0x4f9419};if(_0xea81b4[_0x51408c(0x16c)]===0x0)return{'ok':!![],'data':{'items':_0xea81b4,'meta':_0x3ef7ca},'message':_0x2b5e8a[_0x51408c(0x12e)]==='cache'?_0x51408c(0x124):_0x51408c(0x129)};return{'ok':!![],'data':{'items':_0xea81b4,'meta':_0x3ef7ca}};}},pullDef={'service':a3_0x197a9c(0x137),'command':a3_0x197a9c(0x170),'description':a3_0x197a9c(0x135),'risk':'write','requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'env','type':a3_0x197a9c(0x15d),'description':a3_0x197a9c(0x15b),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x197a9c(0x15e),'type':a3_0x197a9c(0x126),'description':a3_0x197a9c(0x12c),'default':![]},{'name':a3_0x197a9c(0x16e),'type':a3_0x197a9c(0x126),'description':'Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','default':![]}],async 'execute'(_0x554718){const _0x230413=a3_0x197a9c,_0x43e7f9=_0x554718[_0x230413(0x16d)](_0x230413(0x131))||_0x554718[_0x230413(0x171)]||getEnv()||_0x230413(0x172),_0x18196f=_0x554718[_0x230413(0x13b)](_0x230413(0x15e)),_0x4a9a44=_0x554718[_0x230413(0x13b)](_0x230413(0x16e)),{getRemoteAppList:_0x342e97}=await import(_0x230413(0x132)),_0x5e42cb=await _0x342e97({'env':_0x43e7f9,'accessKey':_0x554718[_0x230413(0x143)],'localOnly':_0x18196f,'noCache':_0x4a9a44});return{'ok':!![],'data':{'total':_0x5e42cb['items'][_0x230413(0x16c)],'env':_0x43e7f9,'source':_0x5e42cb[_0x230413(0x12e)],'fetchedAt':_0x5e42cb['fetchedAt'],'cachePath':_0x5e42cb[_0x230413(0x122)]},'message':_0x5e42cb[_0x230413(0x12e)]==='cache'?_0x230413(0x169)+_0x5e42cb[_0x230413(0x167)][_0x230413(0x16c)]+_0x230413(0x144)+_0x43e7f9+'\x22.':_0x230413(0x151)+_0x5e42cb['items'][_0x230413(0x16c)]+_0x230413(0x14c)+_0x43e7f9+'\x22.'};}},useDef={'service':a3_0x197a9c(0x137),'command':'use','description':a3_0x197a9c(0x127),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a3_0x197a9c(0x153),'description':a3_0x197a9c(0x14e),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x1795cf){const _0x1f85ae=a3_0x197a9c;if(!_0x1795cf[_0x1f85ae(0x130)][0x0])throw CliErrors[_0x1f85ae(0x165)]('Missing\x20app\x20name.','Usage:\x20'+CLI_BIN_NAME+_0x1f85ae(0x13a));},async 'execute'(_0x3eaa3d){const _0x3bccee=a3_0x197a9c;warnDeprecatedAppCommand(_0x3bccee(0x12d),CLI_BIN_NAME+_0x3bccee(0x16a));const _0x58fe8f=_0x3eaa3d[_0x3bccee(0x130)][0x0];if(!_0x58fe8f)throw CliErrors[_0x3bccee(0x165)](_0x3bccee(0x159),'Usage:\x20'+CLI_BIN_NAME+'\x20app\x20use\x20<name>\x20[--global]');const {buildConfigFromFlags:_0x42fcd5,resolveLocalAppAliasCode:_0x39dbeb}=await import(_0x3bccee(0x166)),{readCachedAppList:_0x5e849d}=await import(_0x3bccee(0x155)),_0x3e357e=_0x3eaa3d['str'](_0x3bccee(0x131)),_0x32d67e=_0x42fcd5(_0x3e357e?{'env':_0x3e357e}:{}),_0x3a460d=_0x5e849d(_0x32d67e['env'],_0x32d67e[_0x3bccee(0x143)]),_0x41aade=_0x3a460d?.[_0x3bccee(0x167)][_0x3bccee(0x140)](_0x3aa151=>_0x3aa151['appName']===_0x58fe8f),_0x4200ba=_0x39dbeb(_0x32d67e[_0x3bccee(0x146)]??{},_0x58fe8f);if(_0x41aade&&!isRuntimeAccessibleApp(_0x41aade))throw runtimeInaccessibleAppError(_0x41aade,'\x22'+_0x58fe8f+'\x22');if(_0x4200ba){const _0x485c48=_0x3a460d?.[_0x3bccee(0x167)][_0x3bccee(0x140)](_0x42ee64=>_0x42ee64[_0x3bccee(0x154)]?.[_0x3bccee(0x16f)]()===_0x4200ba);if(_0x485c48&&!isRuntimeAccessibleApp(_0x485c48))throw runtimeInaccessibleAppError(_0x485c48,'\x22'+_0x58fe8f+'\x22');}if(!_0x41aade&&!_0x4200ba&&_0x32d67e[_0x3bccee(0x160)]!==_0x58fe8f){const _0x3c8a7d=[..._0x3a460d?.['items'][_0x3bccee(0x142)](_0x2cf3c2=>_0x2cf3c2[_0x3bccee(0x168)])??[]],_0x4e310b=_0x3c8a7d[_0x3bccee(0x16c)]===0x0?_0x3bccee(0x15f)+CLI_BIN_NAME+_0x3bccee(0x125)+_0x58fe8f+'.appcode\x20to\x20.lovrabet.json.':'Available\x20remote\x20apps:\x20'+Array[_0x3bccee(0x13f)](new Set(_0x3c8a7d))[_0x3bccee(0x179)](',\x20')+'.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.';throw CliErrors['validation'](_0x3bccee(0x173)+_0x58fe8f+_0x3bccee(0x123),_0x4e310b);}const _0x47de31=_0x3eaa3d['bool'](_0x3bccee(0x163));let _0x4f0b84;if(_0x47de31)_0x4f0b84={'global':!![]};else{const {isInProject:_0x432928}=await import(_0x3bccee(0x166)),_0x13be11=_0x432928();_0x4f0b84=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':'project-default','inProject':_0x13be11}));}const _0x5f1c70=readConfig(_0x4f0b84);return _0x5f1c70['defaultApp']=_0x58fe8f,writeConfig(_0x5f1c70,_0x4f0b84),{'ok':!![],'message':_0x3bccee(0x176)+_0x58fe8f+'\x22'+scopeLabel(_0x4f0b84)+'.'};}};function warnDeprecatedAppCommand(_0x37bc48,_0x503065){const _0x593781=a3_0x197a9c;console[_0x593781(0x156)](CLI_BIN_NAME+_0x593781(0x120)+_0x37bc48+'\x20is\x20deprecated.\x20Use\x20`'+_0x503065+_0x593781(0x12f));}const importDef={'service':a3_0x197a9c(0x137),'command':'import','description':a3_0x197a9c(0x128),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x40f987){return await runInitImport(collectFlags(_0x40f987,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
@@ -1 +1 @@
1
- (function(_0x43e12c,_0x1df6c5){const _0x420acf=a4_0x3920,_0x486008=_0x43e12c();while(!![]){try{const _0x34ad90=-parseInt(_0x420acf(0x178))/0x1*(parseInt(_0x420acf(0x173))/0x2)+parseInt(_0x420acf(0x182))/0x3+parseInt(_0x420acf(0x174))/0x4+-parseInt(_0x420acf(0x171))/0x5*(parseInt(_0x420acf(0x17f))/0x6)+parseInt(_0x420acf(0x180))/0x7+parseInt(_0x420acf(0x176))/0x8+-parseInt(_0x420acf(0x17b))/0x9;if(_0x34ad90===_0x1df6c5)break;else _0x486008['push'](_0x486008['shift']());}catch(_0x5c9561){_0x486008['push'](_0x486008['shift']());}}}(a4_0x26e8,0xde941));function a4_0x3920(_0x4c3325,_0x2c28d5){_0x4c3325=_0x4c3325-0x171;const _0x26e87d=a4_0x26e8();let _0x39206a=_0x26e87d[_0x4c3325];return _0x39206a;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{RUNTIME_ACCESSIBLE_APP_STATUS}from'../../constant/app.js';import{CliErrors}from'../../errors.js';export function normalizeAppPublishStatus(_0xfd561c){const _0x57312a=a4_0x3920;if(typeof _0xfd561c!==_0x57312a(0x185))return null;const _0x589aea=_0xfd561c[_0x57312a(0x175)]();return _0x589aea?_0x589aea[_0x57312a(0x179)]():null;}export function isRuntimeAccessibleApp(_0x2e4f15){const _0x3460b6=a4_0x3920;return normalizeAppPublishStatus(_0x2e4f15[_0x3460b6(0x177)])===RUNTIME_ACCESSIBLE_APP_STATUS;}export function filterRuntimeAccessibleApps(_0xdbe6d8){const _0x75ff9c=a4_0x3920;return _0xdbe6d8[_0x75ff9c(0x17d)](isRuntimeAccessibleApp);}export function findAppByName(_0x160eac,_0x7e2348){const _0x2ec74c=a4_0x3920;return _0x160eac[_0x2ec74c(0x17e)](_0x4a32b6=>_0x4a32b6[_0x2ec74c(0x17a)]===_0x7e2348);}export function findAppByCode(_0x460b78,_0x142cf5){const _0x1cc963=a4_0x3920,_0x553d45=_0x142cf5[_0x1cc963(0x175)]();if(!_0x553d45)return undefined;return _0x460b78['find'](_0x4bb416=>_0x4bb416[_0x1cc963(0x172)]?.[_0x1cc963(0x175)]()===_0x553d45);}export function runtimeInaccessibleAppError(_0x2ebc13,_0x15a944){const _0xa58728=a4_0x3920,_0x4d7605=normalizeAppPublishStatus(_0x2ebc13['appPublishStatus'])??'UNKNOWN';return CliErrors[_0xa58728(0x181)](_0xa58728(0x184)+_0x15a944+'\x20is\x20not\x20available\x20for\x20runtime\x20AI\x20access.','Current\x20status:\x20'+_0x4d7605+_0xa58728(0x17c)+CLI_BIN_NAME+_0xa58728(0x183));}function a4_0x26e8(){const _0x14430a=['12968gHzGSg','4567440uqracN','trim','13935800srLgjo','appPublishStatus','229XkQotZ','toUpperCase','appName','17380503xheAmz','.\x20Publish\x20the\x20app\x20before\x20using\x20','filter','find','1374228rWAjUV','3948966MWvkOV','validation','3326247tCwEGw','\x20dataset/data/sql/bff\x20commands,\x20or\x20choose\x20a\x20published\x20app.','App\x20','string','5GVjsLd','appCode'];a4_0x26e8=function(){return _0x14430a;};return a4_0x26e8();}
1
+ (function(_0x27838c,_0x40b3d2){const _0x47601b=a4_0x5911,_0x505d71=_0x27838c();while(!![]){try{const _0x172048=-parseInt(_0x47601b(0x81))/0x1+parseInt(_0x47601b(0x7f))/0x2+parseInt(_0x47601b(0x87))/0x3*(-parseInt(_0x47601b(0x84))/0x4)+-parseInt(_0x47601b(0x8e))/0x5*(parseInt(_0x47601b(0x8c))/0x6)+parseInt(_0x47601b(0x7c))/0x7*(-parseInt(_0x47601b(0x7e))/0x8)+-parseInt(_0x47601b(0x85))/0x9+parseInt(_0x47601b(0x79))/0xa;if(_0x172048===_0x40b3d2)break;else _0x505d71['push'](_0x505d71['shift']());}catch(_0x43ef37){_0x505d71['push'](_0x505d71['shift']());}}}(a4_0x31a9,0x19c82));import{CLI_BIN_NAME}from'../../constant/cli.js';import{RUNTIME_ACCESSIBLE_APP_STATUS}from'../../constant/app.js';function a4_0x5911(_0x16f1d5,_0x430d59){_0x16f1d5=_0x16f1d5-0x79;const _0x31a948=a4_0x31a9();let _0x591139=_0x31a948[_0x16f1d5];return _0x591139;}import{CliErrors}from'../../errors.js';export function normalizeAppPublishStatus(_0x3c8caa){const _0xd1e74e=a4_0x5911;if(typeof _0x3c8caa!==_0xd1e74e(0x90))return null;const _0x559b49=_0x3c8caa[_0xd1e74e(0x8b)]();return _0x559b49?_0x559b49[_0xd1e74e(0x8a)]():null;}export function isRuntimeAccessibleApp(_0x16743f){const _0x320f79=a4_0x5911;return normalizeAppPublishStatus(_0x16743f[_0x320f79(0x88)])===RUNTIME_ACCESSIBLE_APP_STATUS;}export function filterRuntimeAccessibleApps(_0x4ae1ce){const _0x5971c1=a4_0x5911;return _0x4ae1ce[_0x5971c1(0x7b)](isRuntimeAccessibleApp);}export function findAppByName(_0x22ea06,_0x4adf26){const _0x45cb2a=a4_0x5911;return _0x22ea06[_0x45cb2a(0x82)](_0x36a360=>_0x36a360['appName']===_0x4adf26);}function a4_0x31a9(){const _0x3c3402=['.\x20Publish\x20the\x20app\x20before\x20using\x20','toUpperCase','trim','444084QLMffS','Current\x20status:\x20','5UPHrkT','App\x20','string','3838400KVbDZv','\x20is\x20not\x20available\x20for\x20runtime\x20AI\x20access.','filter','28161gxGVEb','validation','136dgpSMJ','387124ZhbOIH','UNKNOWN','81660Tymisu','find','\x20dataset/data/sql/bff\x20commands,\x20or\x20choose\x20a\x20published\x20app.','32344mZajdz','992457sXfAJf','appCode','51BcbCpb','appPublishStatus'];a4_0x31a9=function(){return _0x3c3402;};return a4_0x31a9();}export function findAppByCode(_0x189154,_0x3b0637){const _0x49c5ab=a4_0x5911,_0x1bd554=_0x3b0637[_0x49c5ab(0x8b)]();if(!_0x1bd554)return undefined;return _0x189154[_0x49c5ab(0x82)](_0x40187f=>_0x40187f[_0x49c5ab(0x86)]?.[_0x49c5ab(0x8b)]()===_0x1bd554);}export function runtimeInaccessibleAppError(_0x4a12f6,_0x9cd047){const _0x32d55b=a4_0x5911,_0x5f4912=normalizeAppPublishStatus(_0x4a12f6[_0x32d55b(0x88)])??_0x32d55b(0x80);return CliErrors[_0x32d55b(0x7d)](_0x32d55b(0x8f)+_0x9cd047+_0x32d55b(0x7a),_0x32d55b(0x8d)+_0x5f4912+_0x32d55b(0x89)+CLI_BIN_NAME+_0x32d55b(0x83));}
@@ -1 +1 @@
1
- (function(_0x45bb61,_0x428cea){const _0x2183af=a5_0x2b93,_0x805318=_0x45bb61();while(!![]){try{const _0x2583fc=-parseInt(_0x2183af(0x129))/0x1+-parseInt(_0x2183af(0x124))/0x2+-parseInt(_0x2183af(0x128))/0x3*(-parseInt(_0x2183af(0x127))/0x4)+-parseInt(_0x2183af(0x12a))/0x5*(-parseInt(_0x2183af(0x12c))/0x6)+parseInt(_0x2183af(0x126))/0x7+-parseInt(_0x2183af(0x11f))/0x8+-parseInt(_0x2183af(0x12b))/0x9*(-parseInt(_0x2183af(0x125))/0xa);if(_0x2583fc===_0x428cea)break;else _0x805318['push'](_0x805318['shift']());}catch(_0x4a8e20){_0x805318['push'](_0x805318['shift']());}}}(a5_0x42eb,0xd5899));import{fileURLToPath}from'url';import{dirname,join}from'path';import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function a5_0x2b93(_0x2d6177,_0x39d6fd){_0x2d6177=_0x2d6177-0x11e;const _0x42ebff=a5_0x42eb();let _0x2b93f3=_0x42ebff[_0x2d6177];return _0x2b93f3;}function loadMockAppList(){const _0x52deb9=a5_0x2b93,_0x1cdcf2=join(__dirname,'../../../mock/app-list.json'),_0x32b7fc=readFileSync(_0x1cdcf2,_0x52deb9(0x122));return JSON[_0x52deb9(0x12d)](_0x32b7fc);}let _cached=null;function a5_0x42eb(){const _0x14cfe2=['4412127DCgIuJ','1039337LwwuRC','5JEvwjv','3544983NrIHuw','1759986JCgrAv','parse','data','11304664TQXNuG','success','tableData','utf-8','errorCode','1859038gccpUf','30RTFPRX','9176209sAoALu','4bUFeug'];a5_0x42eb=function(){return _0x14cfe2;};return a5_0x42eb();}export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x5e7f2e=a5_0x2b93,_0x5648be=getMockAppList();if(!_0x5648be[_0x5e7f2e(0x120)])throw new Error('Mock\x20API\x20error:\x20'+_0x5648be['errorMsg']+'\x20('+_0x5648be[_0x5e7f2e(0x123)]+')');return _0x5648be[_0x5e7f2e(0x11e)][_0x5e7f2e(0x121)];}
1
+ (function(_0x1bf86c,_0x4305a8){const _0x4e5456=a5_0x5e20,_0x5b3a04=_0x1bf86c();while(!![]){try{const _0x13011c=parseInt(_0x4e5456(0x9f))/0x1*(-parseInt(_0x4e5456(0xa8))/0x2)+parseInt(_0x4e5456(0x9a))/0x3*(-parseInt(_0x4e5456(0xa0))/0x4)+-parseInt(_0x4e5456(0xa5))/0x5+parseInt(_0x4e5456(0xa6))/0x6+-parseInt(_0x4e5456(0xa2))/0x7*(-parseInt(_0x4e5456(0xa4))/0x8)+parseInt(_0x4e5456(0xa9))/0x9+parseInt(_0x4e5456(0x98))/0xa;if(_0x13011c===_0x4305a8)break;else _0x5b3a04['push'](_0x5b3a04['shift']());}catch(_0x28f768){_0x5b3a04['push'](_0x5b3a04['shift']());}}}(a5_0x48c5,0x4d9c6));import{fileURLToPath}from'url';import{dirname,join}from'path';import{readFileSync}from'fs';function a5_0x5e20(_0x48398f,_0xa1371c){_0x48398f=_0x48398f-0x98;const _0x48c588=a5_0x48c5();let _0x5e2019=_0x48c588[_0x48398f];return _0x5e2019;}function a5_0x48c5(){const _0x564a21=['data','201418BNeQqF','3727584ayzhtp','8874800NpflVD','parse','1006770RXzLXh','Mock\x20API\x20error:\x20','tableData','../../../mock/app-list.json','errorCode','6bnUnkL','4egUVyG','errorMsg','7GLxcnq','success','2817272stjblk','2779705fboUqu','959184trMKQJ'];a5_0x48c5=function(){return _0x564a21;};return a5_0x48c5();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0x44d237=a5_0x5e20,_0x5bb519=join(__dirname,_0x44d237(0x9d)),_0x20c13d=readFileSync(_0x5bb519,'utf-8');return JSON[_0x44d237(0x99)](_0x20c13d);}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x2b359a=a5_0x5e20,_0x4866b0=getMockAppList();if(!_0x4866b0[_0x2b359a(0xa3)])throw new Error(_0x2b359a(0x9b)+_0x4866b0[_0x2b359a(0xa1)]+'\x20('+_0x4866b0[_0x2b359a(0x9e)]+')');return _0x4866b0[_0x2b359a(0xa7)][_0x2b359a(0x9c)];}
@@ -1 +1 @@
1
- (function(_0x299491,_0x23eb10){const _0x3bb34d=a6_0xbe7e,_0x1ea7ce=_0x299491();while(!![]){try{const _0x4fc51a=-parseInt(_0x3bb34d(0x17d))/0x1*(-parseInt(_0x3bb34d(0x185))/0x2)+-parseInt(_0x3bb34d(0x18d))/0x3*(-parseInt(_0x3bb34d(0x183))/0x4)+parseInt(_0x3bb34d(0x17f))/0x5*(parseInt(_0x3bb34d(0x180))/0x6)+parseInt(_0x3bb34d(0x17b))/0x7+parseInt(_0x3bb34d(0x17a))/0x8*(parseInt(_0x3bb34d(0x17c))/0x9)+-parseInt(_0x3bb34d(0x17e))/0xa*(-parseInt(_0x3bb34d(0x18b))/0xb)+-parseInt(_0x3bb34d(0x18a))/0xc;if(_0x4fc51a===_0x23eb10)break;else _0x1ea7ce['push'](_0x1ea7ce['shift']());}catch(_0x3179ca){_0x1ea7ce['push'](_0x1ea7ce['shift']());}}}(a6_0x4432,0x6c5ca));import{getMyApps}from'../../core/api-client.js';import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';import{productEnv}from'../../constant/product.js';export function shouldUseMockRemoteApps(){const _0x1a7edd=a6_0xbe7e,_0x307641=(productEnv(_0x1a7edd(0x184))||'')['trim']()[_0x1a7edd(0x189)]();return _0x307641===_0x1a7edd(0x187);}function a6_0xbe7e(_0x4aa6ad,_0x1f7458){_0x4aa6ad=_0x4aa6ad-0x17a;const _0x443238=a6_0x4432();let _0xbe7e30=_0x443238[_0x4aa6ad];return _0xbe7e30;}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}function a6_0x4432(){const _0x429243=['209EgdBoN','items','3iVtmkn','8YKZDVN','6016752KnaAmh','4070070IFJmPk','13139CRcuYP','400270GKbXCH','5IqNaCL','2140566XXPQuP','fetchedAt','trim','115868qJsQnV','APP_LIST_SOURCE','118ezmtif','remote','mock','cache','toLowerCase','33472296pFTtUL'];a6_0x4432=function(){return _0x429243;};return a6_0x4432();}export async function getRemoteAppList(_0x469ef8){const _0x526643=a6_0xbe7e,{env:_0x1eed49,accessKey:_0x280706,localOnly:localOnly=![],noCache:noCache=![]}=_0x469ef8,_0x263910=readCachedAppList(_0x1eed49,_0x280706),_0x2e45f9=_0x280706?.[_0x526643(0x182)]()?getAppCacheFilePath(_0x1eed49,_0x280706):null;if(localOnly)return{'items':_0x263910?.[_0x526643(0x18c)]??[],'source':_0x526643(0x188),'fetchedAt':_0x263910?.[_0x526643(0x181)]??null,'cachePath':_0x2e45f9};try{const _0x1074ad=await getRemoteAppItems(),_0x5a9a93=shouldUseMockRemoteApps()?_0x526643(0x187):_0x526643(0x186),_0x45ed94=new Date()['toISOString'](),_0x3511f6=_0x280706?.[_0x526643(0x182)]()?writeCachedAppList(_0x1eed49,_0x280706,{'env':_0x1eed49,'fetchedAt':_0x45ed94,'source':_0x5a9a93,'items':_0x1074ad}):null;return{'items':_0x1074ad,'source':_0x5a9a93,'fetchedAt':_0x45ed94,'cachePath':_0x3511f6};}catch(_0x143c74){if(!noCache&&_0x263910)return{'items':_0x263910[_0x526643(0x18c)],'source':_0x526643(0x188),'fetchedAt':_0x263910['fetchedAt'],'cachePath':_0x2e45f9};throw _0x143c74;}}
1
+ (function(_0x4d95c0,_0x5501a8){const _0x3c6fb9=a6_0x5be3,_0x311a7d=_0x4d95c0();while(!![]){try{const _0x13f8ce=-parseInt(_0x3c6fb9(0x1c9))/0x1*(-parseInt(_0x3c6fb9(0x1ce))/0x2)+parseInt(_0x3c6fb9(0x1c0))/0x3*(-parseInt(_0x3c6fb9(0x1ca))/0x4)+-parseInt(_0x3c6fb9(0x1c1))/0x5+parseInt(_0x3c6fb9(0x1c7))/0x6*(parseInt(_0x3c6fb9(0x1c3))/0x7)+parseInt(_0x3c6fb9(0x1cb))/0x8+-parseInt(_0x3c6fb9(0x1d1))/0x9*(-parseInt(_0x3c6fb9(0x1c6))/0xa)+-parseInt(_0x3c6fb9(0x1cd))/0xb;if(_0x13f8ce===_0x5501a8)break;else _0x311a7d['push'](_0x311a7d['shift']());}catch(_0xd85afa){_0x311a7d['push'](_0x311a7d['shift']());}}}(a6_0x314b,0x5806b));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 a6_0x314b(){const _0x28ef68=['trim','9kZImIC','items','18qhtBnj','17765AHkgFJ','remote','560fqfhjK','APP_LIST_SOURCE','cache','5077100JlZcbQ','30486FbfBEZ','toLowerCase','580amnRjm','217348DgWcZQ','2358144jhkUZJ','toISOString','9911528xFucdT','1318fpptRU','fetchedAt'];a6_0x314b=function(){return _0x28ef68;};return a6_0x314b();}function a6_0x5be3(_0x2b229a,_0x1e6335){_0x2b229a=_0x2b229a-0x1bf;const _0x314bc5=a6_0x314b();let _0x5be30a=_0x314bc5[_0x2b229a];return _0x5be30a;}import{productEnv}from'../../constant/product.js';export function shouldUseMockRemoteApps(){const _0x369ce6=a6_0x5be3,_0x2847f6=(productEnv(_0x369ce6(0x1c4))||'')[_0x369ce6(0x1d0)]()[_0x369ce6(0x1c8)]();return _0x2847f6==='mock';}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x378f6c){const _0x403dc0=a6_0x5be3,{env:_0x3bc679,accessKey:_0x3f1ce7,localOnly:localOnly=![],noCache:noCache=![]}=_0x378f6c,_0xee8a5a=readCachedAppList(_0x3bc679,_0x3f1ce7),_0x2626a7=_0x3f1ce7?.[_0x403dc0(0x1d0)]()?getAppCacheFilePath(_0x3bc679,_0x3f1ce7):null;if(localOnly)return{'items':_0xee8a5a?.[_0x403dc0(0x1bf)]??[],'source':'cache','fetchedAt':_0xee8a5a?.[_0x403dc0(0x1cf)]??null,'cachePath':_0x2626a7};try{const _0x34caa8=await getRemoteAppItems(),_0x2fd20d=shouldUseMockRemoteApps()?'mock':_0x403dc0(0x1c2),_0x2ccef4=new Date()[_0x403dc0(0x1cc)](),_0x59f198=_0x3f1ce7?.[_0x403dc0(0x1d0)]()?writeCachedAppList(_0x3bc679,_0x3f1ce7,{'env':_0x3bc679,'fetchedAt':_0x2ccef4,'source':_0x2fd20d,'items':_0x34caa8}):null;return{'items':_0x34caa8,'source':_0x2fd20d,'fetchedAt':_0x2ccef4,'cachePath':_0x59f198};}catch(_0x4f0aa4){if(!noCache&&_0xee8a5a)return{'items':_0xee8a5a[_0x403dc0(0x1bf)],'source':_0x403dc0(0x1c5),'fetchedAt':_0xee8a5a[_0x403dc0(0x1cf)],'cachePath':_0x2626a7};throw _0x4f0aa4;}}
@@ -1 +1 @@
1
- (function(_0x2207b2,_0x3aed83){const _0x2a850d=a7_0x25ec,_0x575555=_0x2207b2();while(!![]){try{const _0x1aed74=parseInt(_0x2a850d(0xd4))/0x1*(parseInt(_0x2a850d(0xcb))/0x2)+parseInt(_0x2a850d(0xcd))/0x3+parseInt(_0x2a850d(0xd2))/0x4*(-parseInt(_0x2a850d(0xd6))/0x5)+-parseInt(_0x2a850d(0xdd))/0x6*(parseInt(_0x2a850d(0xc7))/0x7)+-parseInt(_0x2a850d(0xd0))/0x8*(parseInt(_0x2a850d(0xd9))/0x9)+parseInt(_0x2a850d(0xd1))/0xa*(parseInt(_0x2a850d(0xcc))/0xb)+-parseInt(_0x2a850d(0xc6))/0xc;if(_0x1aed74===_0x3aed83)break;else _0x575555['push'](_0x575555['shift']());}catch(_0x25f829){_0x575555['push'](_0x575555['shift']());}}}(a7_0x4aff,0xdb985));function a7_0x4aff(){const _0x395485=['1aRreyz','isCurrent','110xMdcyL','currentApp','appcode','1593PQBVXc','trim','find','defaultApp','121554bVGGci','5082948jCyrhl','350HNOipF','global','named','definedIn','3477356yVVOdp','11zYvGBB','2694567kTgyZw','appCode','name','64032zFNsXM','13979590RyVzxH','51296ifRvcn','project'];a7_0x4aff=function(){return _0x395485;};return a7_0x4aff();}function a7_0x25ec(_0x1d4bdc,_0x3a5807){_0x1d4bdc=_0x1d4bdc-0xc6;const _0x4aff14=a7_0x4aff();let _0x25ecca=_0x4aff14[_0x1d4bdc];return _0x25ecca;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x3912f0,_0xa3e102){const _0x2ae211=a7_0x25ec;if(!_0xa3e102)return;const _0x192a5a=!!(_0xa3e102[_0x2ae211(0xd7)]??_0xa3e102[_0x2ae211(0xdc)]);for(const _0x2c3e16 of _0x3912f0){_0x2c3e16[_0x2ae211(0xd5)]=![];}const _0x4e68af=_0xa3e102[_0x2ae211(0xce)]!=null?String(_0xa3e102[_0x2ae211(0xce)])[_0x2ae211(0xda)]():'';if(_0x192a5a){const _0x37b08c=_0xa3e102['currentApp']??_0xa3e102[_0x2ae211(0xdc)];if(_0x37b08c){const _0x36ab86=_0x3912f0['find'](_0xee6f03=>_0xee6f03[_0x2ae211(0xc9)]===!![]&&_0xee6f03[_0x2ae211(0xcf)]===_0x37b08c&&_0xee6f03[_0x2ae211(0xca)]==='local'),_0x3c8b52=_0x36ab86??_0x3912f0[_0x2ae211(0xdb)](_0x466d82=>_0x466d82[_0x2ae211(0xc9)]===!![]&&_0x466d82['name']===_0x37b08c);_0x3c8b52&&(_0x3c8b52['isCurrent']=!![]);}return;}if(!_0x4e68af)return;for(const _0x4d5283 of _0x3912f0){String(_0x4d5283[_0x2ae211(0xd8)]??'')[_0x2ae211(0xda)]()===_0x4e68af&&(_0x4d5283[_0x2ae211(0xd5)]=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x50c62c){const _0x3a52c2=a7_0x25ec;return formatScopeLabel(_0x50c62c[_0x3a52c2(0xc8)]?_0x3a52c2(0xc8):_0x3a52c2(0xd3));}
1
+ (function(_0x39b289,_0x4572a3){const _0x254bcc=a7_0x1878,_0x3d5a8f=_0x39b289();while(!![]){try{const _0x42dc6a=-parseInt(_0x254bcc(0x128))/0x1*(parseInt(_0x254bcc(0x134))/0x2)+-parseInt(_0x254bcc(0x130))/0x3+-parseInt(_0x254bcc(0x133))/0x4*(-parseInt(_0x254bcc(0x12a))/0x5)+parseInt(_0x254bcc(0x129))/0x6*(-parseInt(_0x254bcc(0x135))/0x7)+parseInt(_0x254bcc(0x13a))/0x8*(-parseInt(_0x254bcc(0x131))/0x9)+parseInt(_0x254bcc(0x12e))/0xa+parseInt(_0x254bcc(0x132))/0xb*(parseInt(_0x254bcc(0x12f))/0xc);if(_0x42dc6a===_0x4572a3)break;else _0x3d5a8f['push'](_0x3d5a8f['shift']());}catch(_0x2eb8f8){_0x3d5a8f['push'](_0x3d5a8f['shift']());}}}(a7_0x3fc3,0x8d5c0));function a7_0x3fc3(){const _0x2e309a=['defaultApp','definedIn','trim','named','appcode','397303BPBhte','2918688pyayTj','30hkFMzy','project','appCode','currentApp','5644450XFPpTE','666012DNjFJN','265560EyMRWx','15012AtHxkX','352BPGfKI','87692lCkXkT','2THkeRA','7keLzjA','local','name','find','isCurrent','4416vpUxtL','global'];a7_0x3fc3=function(){return _0x2e309a;};return a7_0x3fc3();}function a7_0x1878(_0x18fff0,_0x15965c){_0x18fff0=_0x18fff0-0x128;const _0x3fc316=a7_0x3fc3();let _0x18785e=_0x3fc316[_0x18fff0];return _0x18785e;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x59a5f4,_0x4cda69){const _0x5e2efe=a7_0x1878;if(!_0x4cda69)return;const _0x58f2ff=!!(_0x4cda69[_0x5e2efe(0x12d)]??_0x4cda69[_0x5e2efe(0x13c)]);for(const _0x1eeabe of _0x59a5f4){_0x1eeabe[_0x5e2efe(0x139)]=![];}const _0x401fdd=_0x4cda69['appCode']!=null?String(_0x4cda69[_0x5e2efe(0x12c)])[_0x5e2efe(0x13e)]():'';if(_0x58f2ff){const _0x3f04c7=_0x4cda69['currentApp']??_0x4cda69[_0x5e2efe(0x13c)];if(_0x3f04c7){const _0x244e84=_0x59a5f4[_0x5e2efe(0x138)](_0x299b55=>_0x299b55['named']===!![]&&_0x299b55[_0x5e2efe(0x137)]===_0x3f04c7&&_0x299b55[_0x5e2efe(0x13d)]===_0x5e2efe(0x136)),_0x49ffaf=_0x244e84??_0x59a5f4['find'](_0x30e2a2=>_0x30e2a2[_0x5e2efe(0x13f)]===!![]&&_0x30e2a2[_0x5e2efe(0x137)]===_0x3f04c7);_0x49ffaf&&(_0x49ffaf[_0x5e2efe(0x139)]=!![]);}return;}if(!_0x401fdd)return;for(const _0x3b79cd of _0x59a5f4){String(_0x3b79cd[_0x5e2efe(0x140)]??'')[_0x5e2efe(0x13e)]()===_0x401fdd&&(_0x3b79cd['isCurrent']=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x15b58c){const _0xecf9f=a7_0x1878;return formatScopeLabel(_0x15b58c[_0xecf9f(0x13b)]?_0xecf9f(0x13b):_0xecf9f(0x12b));}
@@ -1 +1 @@
1
- const a8_0x30aebe=a8_0xc106;(function(_0x31e118,_0x5cafbb){const _0x5cc2dd=a8_0xc106,_0x25bfa8=_0x31e118();while(!![]){try{const _0x1d94a1=parseInt(_0x5cc2dd(0x1a2))/0x1*(-parseInt(_0x5cc2dd(0x1c0))/0x2)+parseInt(_0x5cc2dd(0x1a5))/0x3+parseInt(_0x5cc2dd(0x1b5))/0x4*(parseInt(_0x5cc2dd(0x199))/0x5)+parseInt(_0x5cc2dd(0x1c9))/0x6*(parseInt(_0x5cc2dd(0x1a0))/0x7)+-parseInt(_0x5cc2dd(0x195))/0x8+-parseInt(_0x5cc2dd(0x1b3))/0x9+-parseInt(_0x5cc2dd(0x1b4))/0xa;if(_0x1d94a1===_0x5cafbb)break;else _0x25bfa8['push'](_0x25bfa8['shift']());}catch(_0x42cd53){_0x25bfa8['push'](_0x25bfa8['shift']());}}}(a8_0x5c2f,0x20e3d));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';function a8_0xc106(_0x924251,_0x10b562){_0x924251=_0x924251-0x18f;const _0x5c2fdd=a8_0x5c2f();let _0xc106f4=_0x5c2fdd[_0x924251];return _0xc106f4;}import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const ARTIFACT_TYPE_REACT_MODULE=a8_0x30aebe(0x1a9),ARTIFACT_SOURCE_AGENT=a8_0x30aebe(0x1d8),ALLOWED_REACT_MODULE_IMPORTS=[a8_0x30aebe(0x1a8),'react-dom',a8_0x30aebe(0x196),a8_0x30aebe(0x1af),a8_0x30aebe(0x192),a8_0x30aebe(0x1db)];export const ALLOWED_REACT_MODULE_IMPORTS_TEXT=ALLOWED_REACT_MODULE_IMPORTS['join'](',\x20');const IMPORT_SOURCE_PATTERNS=[/\bimport\s+(?:type\s+)?(?:[^'";]*?\s+from\s+)?["']([^"']+)["']/g,/\bexport\s+(?:type\s+)?[^'";]*?\s+from\s+["']([^"']+)["']/g,/\bimport\s*\(\s*["']([^"']+)["']\s*\)/g,/\brequire\s*\(\s*["']([^"']+)["']\s*\)/g],PAGE_LEVEL_PATTERNS=[/<!doctype\s+html/i,/<\s*html\b/i,/\bcreateRoot\s*\(/,/\bReactDOM\s*\.\s*render\s*\(/,/\bReactDOM\s*\.\s*createRoot\s*\(/],FILE_FLAG={'name':a8_0x30aebe(0x1c1),'type':'string','required':!![],'description':a8_0x30aebe(0x1dc)},ARTIFACT_NAME_FLAG={'name':'name','type':a8_0x30aebe(0x1c4),'description':'Artifact\x20display\x20name'},METADATA_FLAG={'name':a8_0x30aebe(0x1d7),'type':a8_0x30aebe(0x1c4),'description':a8_0x30aebe(0x1bd)};function a8_0x5c2f(){const _0x3021fd=['deleted','source','1642376fbCpHF','lodash','includes','Artifact\x20ID','1127305kuwhhs','artifactType','Optional\x20favorite-state\x20filter','--metadata\x20must\x20be\x20a\x20JSON\x20object.','/client/artifact/','favorite','react_module\x20imports\x20are\x20limited\x20to:\x20','23548VAIIGy','create','68usZNiP','compiledContent','write','650844ZMmqkD','str','content','react','react_module','trim','flag','num','react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.','appCode','dayjs','body','test','bool','1070109icZvJG','1445980KRPrpf','4DiuYZn','add','File\x20is\x20not\x20a\x20regular\x20file:\x20','Preview:\x20create\x20react_module\x20Artifact','length','/update','exec','name','Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped','build','File\x20not\x20found:\x20','1396TBHINJ','file','update','validation','string','map','join','Show\x20one\x20Artifact\x20by\x20id','POST','372AcnDxZ','Artifact\x20source\x20file\x20is\x20blank.','verbose','some','object','boolean','updateTime','read','parse','detail','File\x20path\x20is\x20required.','Optional\x20source\x20filter,\x20for\x20example\x20AGENT','.\x20Unsupported:\x20','Created\x20Artifact\x20','metadata','AGENT','Updated\x20Artifact\x20','lastIndex','@ant-design/icons','Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file','description','/client/artifact/create','artifact','antd'];a8_0x5c2f=function(){return _0x3021fd;};return a8_0x5c2f();}function isPlainObject(_0x2f445d){const _0x1843f1=a8_0x30aebe;return typeof _0x2f445d===_0x1843f1(0x1cd)&&_0x2f445d!==null&&!Array['isArray'](_0x2f445d);}function readSourceFile(_0x5b9e68){const _0x135e39=a8_0x30aebe;if(!_0x5b9e68)throw CliErrors[_0x135e39(0x1c3)](_0x135e39(0x1d3));if(!existsSync(_0x5b9e68))throw CliErrors[_0x135e39(0x1c3)](_0x135e39(0x1bf)+_0x5b9e68);if(!statSync(_0x5b9e68)['isFile']())throw CliErrors[_0x135e39(0x1c3)](_0x135e39(0x1b7)+_0x5b9e68);const _0x30cfb3=readFileSync(_0x5b9e68,'utf8');return validateReactModuleSource(_0x30cfb3),_0x30cfb3;}function parseMetadata(_0x5d2ca8){const _0x1b630a=a8_0x30aebe;if(!_0x5d2ca8)return undefined;let _0x2e5b0d;try{_0x2e5b0d=JSON[_0x1b630a(0x1d1)](_0x5d2ca8);}catch{throw CliErrors[_0x1b630a(0x1c3)]('Invalid\x20JSON\x20for\x20--metadata:\x20'+_0x5d2ca8);}if(!isPlainObject(_0x2e5b0d))throw CliErrors[_0x1b630a(0x1c3)](_0x1b630a(0x19c));const _0x36f59f={..._0x2e5b0d};return delete _0x36f59f[_0x1b630a(0x1a3)],_0x36f59f;}function getPackageName(_0x44cc1b){if(_0x44cc1b['startsWith']('@')){const [_0x21b1ce,_0x1641b6]=_0x44cc1b['split']('/');return _0x21b1ce&&_0x1641b6?_0x21b1ce+'/'+_0x1641b6:_0x44cc1b;}return _0x44cc1b['split']('/')[0x0]||_0x44cc1b;}function validateAllowedImports(_0x3f56d5){const _0x24c8a8=a8_0x30aebe,_0x31a801=new Set();for(const _0x28ab5c of IMPORT_SOURCE_PATTERNS){_0x28ab5c[_0x24c8a8(0x1da)]=0x0;let _0x239d75;while((_0x239d75=_0x28ab5c[_0x24c8a8(0x1bb)](_0x3f56d5))!==null){const _0x43e9d0=_0x239d75[0x1]?.[_0x24c8a8(0x1aa)]();_0x43e9d0&&_0x31a801[_0x24c8a8(0x1b6)](_0x43e9d0);}}const _0x368600=[..._0x31a801][_0x24c8a8(0x1c5)](getPackageName)['filter'](_0x20d41e=>!ALLOWED_REACT_MODULE_IMPORTS[_0x24c8a8(0x197)](_0x20d41e));if(_0x368600[_0x24c8a8(0x1b9)]>0x0)throw CliErrors[_0x24c8a8(0x1c3)](_0x24c8a8(0x19f)+ALLOWED_REACT_MODULE_IMPORTS_TEXT+_0x24c8a8(0x1d5)+[...new Set(_0x368600)][_0x24c8a8(0x1c6)](',\x20'));}export function validateReactModuleSource(_0x335e26){const _0x442b16=a8_0x30aebe;if(!_0x335e26['trim']())throw CliErrors[_0x442b16(0x1c3)](_0x442b16(0x1ca));if(PAGE_LEVEL_PATTERNS[_0x442b16(0x1cc)](_0x427b16=>_0x427b16[_0x442b16(0x1b1)](_0x335e26)))throw CliErrors['validation'](_0x442b16(0x1ad));validateAllowedImports(_0x335e26);}function buildArtifactInput(_0x32f242){const _0x3f1883=a8_0x30aebe,_0x2e726b=readSourceFile(_0x32f242['str'](_0x3f1883(0x1c1))),_0x501098=_0x32f242[_0x3f1883(0x1a6)]('name')['trim'](),_0x5bbf8b=parseMetadata(_0x32f242[_0x3f1883(0x1a6)]('metadata'));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x501098?{'name':_0x501098}:{},'content':_0x2e726b,..._0x5bbf8b?{'metadata':_0x5bbf8b}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0x2d6e6a){const _0x4cb5d7=a8_0x30aebe;return{'id':_0x2d6e6a['id'],'name':_0x2d6e6a['name'],'artifactType':_0x2d6e6a[_0x4cb5d7(0x19a)],'source':_0x2d6e6a[_0x4cb5d7(0x194)],'favorite':_0x2d6e6a[_0x4cb5d7(0x19e)],'deleted':_0x2d6e6a[_0x4cb5d7(0x193)],'createTime':_0x2d6e6a['createTime'],'updateTime':_0x2d6e6a['updateTime']};}function detailArtifact(_0x32e5f2){const _0x3aa6b7=a8_0x30aebe;return{'id':_0x32e5f2['id'],'appCode':_0x32e5f2[_0x3aa6b7(0x1ae)],'name':_0x32e5f2[_0x3aa6b7(0x1bc)],'artifactType':_0x32e5f2[_0x3aa6b7(0x19a)],'source':_0x32e5f2[_0x3aa6b7(0x194)],'favorite':_0x32e5f2['favorite'],'deleted':_0x32e5f2[_0x3aa6b7(0x193)],'content':_0x32e5f2[_0x3aa6b7(0x1a7)]??'','compiledContent':_0x32e5f2[_0x3aa6b7(0x1a3)],'metadata':_0x32e5f2['metadata']??{},'createTime':_0x32e5f2['createTime'],'updateTime':_0x32e5f2[_0x3aa6b7(0x1cf)]};}function readFavoriteFlag(_0x5438fc){const _0x3dc0f4=a8_0x30aebe,_0x5c5cb7=_0x5438fc[_0x3dc0f4(0x1ab)]('favorite');return _0x5c5cb7===undefined||_0x5c5cb7===null||_0x5c5cb7===''?undefined:_0x5438fc[_0x3dc0f4(0x1b2)](_0x3dc0f4(0x19e));}const artifactList={'service':a8_0x30aebe(0x191),'command':'list','description':'List\x20current-app\x20react_module\x20Artifacts','risk':a8_0x30aebe(0x1d0),'flags':[{'name':a8_0x30aebe(0x194),'type':a8_0x30aebe(0x1c4),'description':a8_0x30aebe(0x1d4)},{'name':'favorite','type':a8_0x30aebe(0x1ce),'description':a8_0x30aebe(0x19b)},VERBOSE_FLAG],async 'execute'(_0x243936){const _0x31b1b0=a8_0x30aebe,_0x5164b3=await listRuntimeArtifacts(_0x243936[_0x31b1b0(0x1ae)],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x243936[_0x31b1b0(0x1a6)](_0x31b1b0(0x194))?{'source':_0x243936[_0x31b1b0(0x1a6)](_0x31b1b0(0x194))}:{},...readFavoriteFlag(_0x243936)!==undefined?{'favorite':readFavoriteFlag(_0x243936)}:{}});return{'ok':!![],'data':{'total':_0x5164b3[_0x31b1b0(0x1b9)],'items':_0x243936[_0x31b1b0(0x1b2)](_0x31b1b0(0x1cb))?_0x5164b3:_0x5164b3[_0x31b1b0(0x1c5)](summarizeArtifact)}};}},artifactDetail={'service':a8_0x30aebe(0x191),'command':a8_0x30aebe(0x1d2),'description':a8_0x30aebe(0x1c7),'risk':a8_0x30aebe(0x1d0),'flags':[{...ID_FLAG,'description':a8_0x30aebe(0x198)}],async 'execute'(_0x6050c8){const _0x50beb1=a8_0x30aebe,_0x5dfeda=await getRuntimeArtifact(_0x6050c8[_0x50beb1(0x1ac)]('id'),_0x6050c8['appCode']);return{'ok':!![],'data':detailArtifact(_0x5dfeda)};}},artifactCreate={'service':'artifact','command':a8_0x30aebe(0x1a1),'description':'Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','risk':a8_0x30aebe(0x1a4),'flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x512842){const _0x5b2484=a8_0x30aebe,_0x23288a=buildArtifactInput(_0x512842),_0x299e57=await createRuntimeArtifact(_0x512842[_0x5b2484(0x1ae)],_0x23288a);return{'ok':!![],'data':detailArtifact(_0x299e57),'message':_0x5b2484(0x1d6)+_0x299e57['id']+(_0x299e57[_0x5b2484(0x1bc)]?'\x20('+_0x299e57[_0x5b2484(0x1bc)]+')':'')};},async 'dryRun'(_0x77fe5){const _0x1ee9d7=a8_0x30aebe,_0x48ed2=buildArtifactInput(_0x77fe5);return dryRun(_0x1ee9d7(0x1c8),_0x1ee9d7(0x190))['body']({'appCode':_0x77fe5[_0x1ee9d7(0x1ae)],..._0x48ed2})[_0x1ee9d7(0x18f)](_0x1ee9d7(0x1b8))['build']();}},artifactUpdate={'service':'artifact','command':a8_0x30aebe(0x1c2),'description':'Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','risk':a8_0x30aebe(0x1a4),'flags':[{...ID_FLAG,'description':a8_0x30aebe(0x198)},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x3c13e4){const _0x556e2f=a8_0x30aebe,_0x5685dc=_0x3c13e4['num']('id'),_0x25e987=buildArtifactInput(_0x3c13e4),_0x3e6af9=await updateRuntimeArtifact(_0x5685dc,_0x3c13e4['appCode'],_0x25e987);return{'ok':!![],'data':detailArtifact(_0x3e6af9),'message':_0x556e2f(0x1d9)+_0x3e6af9['id']+(_0x3e6af9[_0x556e2f(0x1bc)]?'\x20('+_0x3e6af9[_0x556e2f(0x1bc)]+')':'')};},async 'dryRun'(_0x4ddb54){const _0x13c8d2=a8_0x30aebe,_0x19997b=_0x4ddb54['num']('id'),_0x1f9885=buildArtifactInput(_0x4ddb54);return dryRun(_0x13c8d2(0x1c8),_0x13c8d2(0x19d)+_0x19997b+_0x13c8d2(0x1ba))[_0x13c8d2(0x1b0)]({'appCode':_0x4ddb54[_0x13c8d2(0x1ae)],..._0x1f9885})['description']('Preview:\x20update\x20react_module\x20Artifact\x20'+_0x19997b)[_0x13c8d2(0x1be)]();}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
1
+ const a8_0x10fad2=a8_0x4c18;(function(_0x25d1aa,_0x28b7ad){const _0x5c0742=a8_0x4c18,_0x30bf8f=_0x25d1aa();while(!![]){try{const _0x46b49c=-parseInt(_0x5c0742(0x1ab))/0x1+parseInt(_0x5c0742(0x1d2))/0x2+parseInt(_0x5c0742(0x1c1))/0x3+parseInt(_0x5c0742(0x1c6))/0x4*(-parseInt(_0x5c0742(0x1a9))/0x5)+-parseInt(_0x5c0742(0x19d))/0x6+parseInt(_0x5c0742(0x1ca))/0x7*(-parseInt(_0x5c0742(0x1cf))/0x8)+parseInt(_0x5c0742(0x1dc))/0x9;if(_0x46b49c===_0x28b7ad)break;else _0x30bf8f['push'](_0x30bf8f['shift']());}catch(_0x460cb9){_0x30bf8f['push'](_0x30bf8f['shift']());}}}(a8_0x2eda,0x31da4));function a8_0x2eda(){const _0x2bf7f6=['body','Artifact\x20display\x20name','artifactType','lastIndex','createTime','Optional\x20source\x20filter,\x20for\x20example\x20AGENT','Show\x20one\x20Artifact\x20by\x20id','description','5699277EZqXpm','/update','some','Artifact\x20source\x20file\x20is\x20blank.','boolean','deleted','file','File\x20not\x20found:\x20','compiledContent','split','Optional\x20favorite-state\x20filter','filter','updateTime','228774dGGJPJ','antd','File\x20is\x20not\x20a\x20regular\x20file:\x20','--metadata\x20must\x20be\x20a\x20JSON\x20object.','lodash','artifact','num','Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','appCode','source','react-dom','AGENT','765TwMxnO','react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.','249704RaRWVz','/client/artifact/create','react_module','write','bool','Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file','favorite','trim','exec','build','flag','Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped','.\x20Unsupported:\x20','isArray','verbose','read','join','/client/artifact/','list','map','name','POST','477990VybEqD','includes','Preview:\x20create\x20react_module\x20Artifact','List\x20current-app\x20react_module\x20Artifacts','File\x20path\x20is\x20required.','7408jMHccB','detail','string','metadata','1351BZyFNg','react_module\x20imports\x20are\x20limited\x20to:\x20','Artifact\x20ID','startsWith','length','3440yDPnTx','validation','add','131584kZjoKc','str'];a8_0x2eda=function(){return _0x2bf7f6;};return a8_0x2eda();}import{existsSync,readFileSync,statSync}from'node:fs';import{createRuntimeArtifact,getRuntimeArtifact,listRuntimeArtifacts,updateRuntimeArtifact}from'../../core/api-client.js';function a8_0x4c18(_0x448777,_0x341f1a){_0x448777=_0x448777-0x19d;const _0x2eda32=a8_0x2eda();let _0x4c18f9=_0x2eda32[_0x448777];return _0x4c18f9;}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=a8_0x10fad2(0x1ad),ARTIFACT_SOURCE_AGENT=a8_0x10fad2(0x1a8),ALLOWED_REACT_MODULE_IMPORTS=['react',a8_0x10fad2(0x1a7),a8_0x10fad2(0x1a1),'dayjs',a8_0x10fad2(0x19e),'@ant-design/icons'];export const ALLOWED_REACT_MODULE_IMPORTS_TEXT=ALLOWED_REACT_MODULE_IMPORTS['join'](',\x20');const IMPORT_SOURCE_PATTERNS=[/\bimport\s+(?:type\s+)?(?:[^'";]*?\s+from\s+)?["']([^"']+)["']/g,/\bexport\s+(?:type\s+)?[^'";]*?\s+from\s+["']([^"']+)["']/g,/\bimport\s*\(\s*["']([^"']+)["']\s*\)/g,/\brequire\s*\(\s*["']([^"']+)["']\s*\)/g],PAGE_LEVEL_PATTERNS=[/<!doctype\s+html/i,/<\s*html\b/i,/\bcreateRoot\s*\(/,/\bReactDOM\s*\.\s*render\s*\(/,/\bReactDOM\s*\.\s*createRoot\s*\(/],FILE_FLAG={'name':a8_0x10fad2(0x1e2),'type':a8_0x10fad2(0x1c8),'required':!![],'description':a8_0x10fad2(0x1b0)},ARTIFACT_NAME_FLAG={'name':a8_0x10fad2(0x1bf),'type':a8_0x10fad2(0x1c8),'description':a8_0x10fad2(0x1d5)},METADATA_FLAG={'name':a8_0x10fad2(0x1c9),'type':'string','description':a8_0x10fad2(0x1b6)};function isPlainObject(_0x3e8f6b){const _0x3ad7f7=a8_0x10fad2;return typeof _0x3e8f6b==='object'&&_0x3e8f6b!==null&&!Array[_0x3ad7f7(0x1b8)](_0x3e8f6b);}function readSourceFile(_0x20605d){const _0x238277=a8_0x10fad2;if(!_0x20605d)throw CliErrors['validation'](_0x238277(0x1c5));if(!existsSync(_0x20605d))throw CliErrors['validation'](_0x238277(0x1e3)+_0x20605d);if(!statSync(_0x20605d)['isFile']())throw CliErrors['validation'](_0x238277(0x19f)+_0x20605d);const _0x1dee79=readFileSync(_0x20605d,'utf8');return validateReactModuleSource(_0x1dee79),_0x1dee79;}function parseMetadata(_0x17fed8){const _0xfc1f49=a8_0x10fad2;if(!_0x17fed8)return undefined;let _0x40cc57;try{_0x40cc57=JSON['parse'](_0x17fed8);}catch{throw CliErrors[_0xfc1f49(0x1d0)]('Invalid\x20JSON\x20for\x20--metadata:\x20'+_0x17fed8);}if(!isPlainObject(_0x40cc57))throw CliErrors['validation'](_0xfc1f49(0x1a0));const _0x4f2c11={..._0x40cc57};return delete _0x4f2c11[_0xfc1f49(0x1e4)],_0x4f2c11;}function getPackageName(_0xa72780){const _0x1b574e=a8_0x10fad2;if(_0xa72780[_0x1b574e(0x1cd)]('@')){const [_0x47a543,_0x3c3ec2]=_0xa72780[_0x1b574e(0x1e5)]('/');return _0x47a543&&_0x3c3ec2?_0x47a543+'/'+_0x3c3ec2:_0xa72780;}return _0xa72780[_0x1b574e(0x1e5)]('/')[0x0]||_0xa72780;}function validateAllowedImports(_0x1c0640){const _0x21bc41=a8_0x10fad2,_0x5939d2=new Set();for(const _0x2f3471 of IMPORT_SOURCE_PATTERNS){_0x2f3471[_0x21bc41(0x1d7)]=0x0;let _0xa1acf2;while((_0xa1acf2=_0x2f3471[_0x21bc41(0x1b3)](_0x1c0640))!==null){const _0x183021=_0xa1acf2[0x1]?.[_0x21bc41(0x1b2)]();_0x183021&&_0x5939d2[_0x21bc41(0x1d1)](_0x183021);}}const _0x520533=[..._0x5939d2][_0x21bc41(0x1be)](getPackageName)[_0x21bc41(0x1e7)](_0x3d6a73=>!ALLOWED_REACT_MODULE_IMPORTS[_0x21bc41(0x1c2)](_0x3d6a73));if(_0x520533[_0x21bc41(0x1ce)]>0x0)throw CliErrors[_0x21bc41(0x1d0)](_0x21bc41(0x1cb)+ALLOWED_REACT_MODULE_IMPORTS_TEXT+_0x21bc41(0x1b7)+[...new Set(_0x520533)][_0x21bc41(0x1bb)](',\x20'));}export function validateReactModuleSource(_0x237999){const _0x4379ad=a8_0x10fad2;if(!_0x237999[_0x4379ad(0x1b2)]())throw CliErrors[_0x4379ad(0x1d0)](_0x4379ad(0x1df));if(PAGE_LEVEL_PATTERNS[_0x4379ad(0x1de)](_0x277cba=>_0x277cba['test'](_0x237999)))throw CliErrors[_0x4379ad(0x1d0)](_0x4379ad(0x1aa));validateAllowedImports(_0x237999);}function buildArtifactInput(_0x7c8f1){const _0x533e50=a8_0x10fad2,_0x29697a=readSourceFile(_0x7c8f1['str'](_0x533e50(0x1e2))),_0x25bffb=_0x7c8f1[_0x533e50(0x1d3)]('name')[_0x533e50(0x1b2)](),_0x519b2b=parseMetadata(_0x7c8f1[_0x533e50(0x1d3)](_0x533e50(0x1c9)));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x25bffb?{'name':_0x25bffb}:{},'content':_0x29697a,..._0x519b2b?{'metadata':_0x519b2b}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0x5d3180){const _0x477a73=a8_0x10fad2;return{'id':_0x5d3180['id'],'name':_0x5d3180[_0x477a73(0x1bf)],'artifactType':_0x5d3180[_0x477a73(0x1d6)],'source':_0x5d3180['source'],'favorite':_0x5d3180[_0x477a73(0x1b1)],'deleted':_0x5d3180[_0x477a73(0x1e1)],'createTime':_0x5d3180[_0x477a73(0x1d8)],'updateTime':_0x5d3180['updateTime']};}function detailArtifact(_0x57e9d9){const _0x488ecc=a8_0x10fad2;return{'id':_0x57e9d9['id'],'appCode':_0x57e9d9[_0x488ecc(0x1a5)],'name':_0x57e9d9[_0x488ecc(0x1bf)],'artifactType':_0x57e9d9[_0x488ecc(0x1d6)],'source':_0x57e9d9['source'],'favorite':_0x57e9d9[_0x488ecc(0x1b1)],'deleted':_0x57e9d9[_0x488ecc(0x1e1)],'content':_0x57e9d9['content']??'','compiledContent':_0x57e9d9[_0x488ecc(0x1e4)],'metadata':_0x57e9d9['metadata']??{},'createTime':_0x57e9d9[_0x488ecc(0x1d8)],'updateTime':_0x57e9d9[_0x488ecc(0x1e8)]};}function readFavoriteFlag(_0x4b3d3a){const _0x1bb03f=a8_0x10fad2,_0x3090c7=_0x4b3d3a[_0x1bb03f(0x1b5)]('favorite');return _0x3090c7===undefined||_0x3090c7===null||_0x3090c7===''?undefined:_0x4b3d3a[_0x1bb03f(0x1af)]('favorite');}const artifactList={'service':a8_0x10fad2(0x1a2),'command':a8_0x10fad2(0x1bd),'description':a8_0x10fad2(0x1c4),'risk':a8_0x10fad2(0x1ba),'flags':[{'name':a8_0x10fad2(0x1a6),'type':a8_0x10fad2(0x1c8),'description':a8_0x10fad2(0x1d9)},{'name':a8_0x10fad2(0x1b1),'type':a8_0x10fad2(0x1e0),'description':a8_0x10fad2(0x1e6)},VERBOSE_FLAG],async 'execute'(_0x44c3d3){const _0x4e004f=a8_0x10fad2,_0x3909a1=await listRuntimeArtifacts(_0x44c3d3[_0x4e004f(0x1a5)],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x44c3d3['str'](_0x4e004f(0x1a6))?{'source':_0x44c3d3[_0x4e004f(0x1d3)](_0x4e004f(0x1a6))}:{},...readFavoriteFlag(_0x44c3d3)!==undefined?{'favorite':readFavoriteFlag(_0x44c3d3)}:{}});return{'ok':!![],'data':{'total':_0x3909a1['length'],'items':_0x44c3d3['bool'](_0x4e004f(0x1b9))?_0x3909a1:_0x3909a1[_0x4e004f(0x1be)](summarizeArtifact)}};}},artifactDetail={'service':'artifact','command':a8_0x10fad2(0x1c7),'description':a8_0x10fad2(0x1da),'risk':'read','flags':[{...ID_FLAG,'description':a8_0x10fad2(0x1cc)}],async 'execute'(_0x242051){const _0x57813e=a8_0x10fad2,_0x569f96=await getRuntimeArtifact(_0x242051[_0x57813e(0x1a3)]('id'),_0x242051[_0x57813e(0x1a5)]);return{'ok':!![],'data':detailArtifact(_0x569f96)};}},artifactCreate={'service':a8_0x10fad2(0x1a2),'command':'create','description':'Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','risk':a8_0x10fad2(0x1ae),'flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x4aa4fc){const _0x968101=a8_0x10fad2,_0x1d479a=buildArtifactInput(_0x4aa4fc),_0x2daf9a=await createRuntimeArtifact(_0x4aa4fc[_0x968101(0x1a5)],_0x1d479a);return{'ok':!![],'data':detailArtifact(_0x2daf9a),'message':'Created\x20Artifact\x20'+_0x2daf9a['id']+(_0x2daf9a['name']?'\x20('+_0x2daf9a[_0x968101(0x1bf)]+')':'')};},async 'dryRun'(_0x9f6f4d){const _0x3c0dff=a8_0x10fad2,_0x558406=buildArtifactInput(_0x9f6f4d);return dryRun(_0x3c0dff(0x1c0),_0x3c0dff(0x1ac))['body']({'appCode':_0x9f6f4d[_0x3c0dff(0x1a5)],..._0x558406})[_0x3c0dff(0x1db)](_0x3c0dff(0x1c3))[_0x3c0dff(0x1b4)]();}},artifactUpdate={'service':a8_0x10fad2(0x1a2),'command':'update','description':a8_0x10fad2(0x1a4),'risk':a8_0x10fad2(0x1ae),'flags':[{...ID_FLAG,'description':a8_0x10fad2(0x1cc)},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x6b7b0f){const _0x529f08=a8_0x10fad2,_0x2e9f6b=_0x6b7b0f['num']('id'),_0x15634d=buildArtifactInput(_0x6b7b0f),_0x1b9048=await updateRuntimeArtifact(_0x2e9f6b,_0x6b7b0f[_0x529f08(0x1a5)],_0x15634d);return{'ok':!![],'data':detailArtifact(_0x1b9048),'message':'Updated\x20Artifact\x20'+_0x1b9048['id']+(_0x1b9048[_0x529f08(0x1bf)]?'\x20('+_0x1b9048[_0x529f08(0x1bf)]+')':'')};},async 'dryRun'(_0x5ad951){const _0x1a6d8=a8_0x10fad2,_0x449542=_0x5ad951['num']('id'),_0x4bd781=buildArtifactInput(_0x5ad951);return dryRun('POST',_0x1a6d8(0x1bc)+_0x449542+_0x1a6d8(0x1dd))[_0x1a6d8(0x1d4)]({'appCode':_0x5ad951[_0x1a6d8(0x1a5)],..._0x4bd781})['description']('Preview:\x20update\x20react_module\x20Artifact\x20'+_0x449542)[_0x1a6d8(0x1b4)]();}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
@@ -1 +1 @@
1
- const a9_0x83ec53=a9_0x5ec1;(function(_0x18092b,_0x322a48){const _0x236bb7=a9_0x5ec1,_0xbc6acd=_0x18092b();while(!![]){try{const _0x3a282c=parseInt(_0x236bb7(0x1d4))/0x1*(-parseInt(_0x236bb7(0x183))/0x2)+-parseInt(_0x236bb7(0x199))/0x3+-parseInt(_0x236bb7(0x1a9))/0x4+-parseInt(_0x236bb7(0x1a2))/0x5+-parseInt(_0x236bb7(0x18f))/0x6*(parseInt(_0x236bb7(0x18c))/0x7)+-parseInt(_0x236bb7(0x18d))/0x8*(-parseInt(_0x236bb7(0x197))/0x9)+parseInt(_0x236bb7(0x18b))/0xa*(parseInt(_0x236bb7(0x191))/0xb);if(_0x3a282c===_0x322a48)break;else _0xbc6acd['push'](_0xbc6acd['shift']());}catch(_0x412338){_0xbc6acd['push'](_0xbc6acd['shift']());}}}(a9_0x377f,0x541d2));import{readScopedConfig,writeScopedConfig}from'../../context.js';function a9_0x5ec1(_0x28fc54,_0x1e7d9f){_0x28fc54=_0x28fc54-0x182;const _0x377f4d=a9_0x377f();let _0x5ec1de=_0x377f4d[_0x28fc54];return _0x5ec1de;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';function a9_0x377f(){const _0x447e43=['str','daily','`auth\x20login`\x20does\x20not\x20support\x20--yes.','Use\x20`','\x20config.\x20Nothing\x20to\x20clear.','repeat','auth','ClientAk','19WtuXEP','Write\x20to\x20global\x20config\x20(default)','push','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','accessKey','9600VVCFJI','global','nonInteractive','\x20\x20export\x20','Auth\x20mode:\x20','\x20scope.','project','logout','459770hNdBnC','14MqotWD','8NwSkIw','Show\x20current\x20authentication\x20status','553170NJIflY','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','374vPNRpj','Option\x20B:\x20apps\x20config\x20(','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','Read\x20from\x20global\x20config\x20(default)','test','658404jMTdcs','production','531474GRjhwm','\x20config.','boolean','stdout','\x20Verify:\x20','Missing\x20accessKey.','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','\x20auth\x20login\x20--access-key\x20<ak_xxx>','Clear\x20from\x20global\x20config\x20(default)','2573250FzWWuU','yes','Then\x20verify\x20with:\x20','Clear\x20accessKey\x20from\x20config','AccessKey\x20(ak_xxx...)','Shorthand\x20for\x20--access-key','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','1297784qZeoWe','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','envName','\x20env\x20var','slice','AccessKey\x20saved\x20to\x20','access-key','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','ACCESS_KEY','status','isTTY','read','trim','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','\x20(via\x20','Option\x20C:\x20environment\x20variable','write','string','validation','userCenterDisplayName','length','No\x20AccessKey\x20found\x20in\x20','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','stdin','development','join','\x20auth\x20status','Invalid\x20accessKey\x20format:\x20\x22','Tip:\x20you\x20can\x20also\x20run:','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','bool','AccessKey\x20cleared\x20from\x20','env','\x20Current\x20env:\x20'];a9_0x377f=function(){return _0x447e43;};return a9_0x377f();}import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{getLoginUserInfo}from'../../core/api-client.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function showAccessKeyCreateHint(){const _0x3b2cd5=a9_0x5ec1;writeCliSideChannelLine(_0x3b2cd5(0x1b1)+PRODUCT_CONFIG['userCenterDisplayName']+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x3b2cd5(0x1c6)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x3b2cd5(0x1a0));}function buildAccessKeySetupGuide(){const _0x21a134=a9_0x5ec1;return['AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0x21a134(0x1bd)]+':',USER_ACCESS_KEY_CREATE_URL,_0x21a134(0x1aa)+CLI_BIN_NAME+_0x21a134(0x1c7)]['join']('\x0a');}function canPromptForAccessKey(_0x109155){const _0x4f3a97=a9_0x5ec1;return!_0x109155[_0x4f3a97(0x185)]&&process[_0x4f3a97(0x1c1)]['isTTY']!==![]&&process[_0x4f3a97(0x19c)][_0x4f3a97(0x1b4)]!==![];}function resolveAuthScopeFlags(_0x452750){const _0x363471=a9_0x5ec1;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x452750['bool'](_0x363471(0x184)),'explicitProject':_0x452750['bool'](_0x363471(0x189)),'policy':'global-default'}));}async function resolveAuthWriteInput(_0x2977e8){const _0x5a5d88=a9_0x5ec1;let _0x5b6ab1=(_0x2977e8[_0x5a5d88(0x1cc)](_0x5a5d88(0x1b0))||_0x2977e8[_0x5a5d88(0x1cc)]('ak')||'')[_0x5a5d88(0x1b6)]();const _0x5450fe=(_0x2977e8['str']('env')||'')[_0x5a5d88(0x1b6)]();if(!_0x5b6ab1&&canPromptForAccessKey(_0x2977e8))try{showAccessKeyCreateHint(),_0x5b6ab1=await promptAccessKey('');}catch(_0x352b82){if(isAbortPrompt(_0x352b82))throw CliErrors['cancelled']();throw _0x352b82;}if(!_0x5b6ab1)throw CliErrors[_0x5a5d88(0x1bc)](_0x5a5d88(0x19e),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x5a5d88(0x196)](_0x5b6ab1))throw CliErrors['validation'](_0x5a5d88(0x1c5)+_0x5b6ab1+'\x22',_0x5a5d88(0x1d7));if(!_0x5450fe)return{'accessKey':_0x5b6ab1};const _0xe7f2b9=normalizeEnv(_0x5450fe);return{'accessKey':_0x5b6ab1,'env':isDaily(_0xe7f2b9)?_0x5a5d88(0x1cd):isDev(_0xe7f2b9)?_0x5a5d88(0x1c2):'production'};}export const authDefinitions=[{'service':'auth','command':'login','description':a9_0x83ec53(0x1ab),'risk':a9_0x83ec53(0x1ba),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'access-key','type':a9_0x83ec53(0x1bb),'description':a9_0x83ec53(0x1a6)},{'name':'ak','type':a9_0x83ec53(0x1bb),'description':a9_0x83ec53(0x1a7)},{'name':a9_0x83ec53(0x184),'type':'boolean','description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':'project','type':a9_0x83ec53(0x19b),'description':a9_0x83ec53(0x19f),'default':![]}],async 'execute'(_0x2a725b){const _0xe2b6fd=a9_0x83ec53;if(_0x2a725b[_0xe2b6fd(0x1c8)](_0xe2b6fd(0x1a3)))throw CliErrors['validation'](_0xe2b6fd(0x1ce),_0xe2b6fd(0x1cf)+CLI_BIN_NAME+_0xe2b6fd(0x193)+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.');const _0x5a6b42=(_0x2a725b['str'](_0xe2b6fd(0x1b0))||_0x2a725b[_0xe2b6fd(0x1cc)]('ak')||'')['trim']();if(!_0x5a6b42&&_0x2a725b[_0xe2b6fd(0x185)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x5f2f1c=await resolveAuthWriteInput(_0x2a725b),_0x3fb635=resolveAuthScopeFlags(_0x2a725b),_0x1fc38f=readScopedConfig(_0x3fb635);_0x1fc38f['accessKey']=_0x5f2f1c[_0xe2b6fd(0x182)];_0x5f2f1c['env']&&(_0x1fc38f[_0xe2b6fd(0x1ca)]=_0x5f2f1c['env']);writeScopedConfig(_0x1fc38f,_0x3fb635);const _0x4e677f=_0x3fb635[_0xe2b6fd(0x184)]?_0xe2b6fd(0x184):_0xe2b6fd(0x189),_0x16954b=_0x1fc38f['env']?_0xe2b6fd(0x1cb)+_0x1fc38f[_0xe2b6fd(0x1ca)]+'.':'';return{'ok':!![],'message':_0xe2b6fd(0x1af)+_0x4e677f+_0xe2b6fd(0x19a)+_0x16954b+'\x20Verify:\x20'+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':a9_0x83ec53(0x1d2),'command':'init','description':a9_0x83ec53(0x194),'risk':a9_0x83ec53(0x1ba),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x83ec53(0x1b0),'type':a9_0x83ec53(0x1bb),'description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':a9_0x83ec53(0x1bb),'description':'Shorthand\x20for\x20--access-key'},{'name':'env','type':a9_0x83ec53(0x1bb),'description':a9_0x83ec53(0x1a8)},{'name':a9_0x83ec53(0x184),'type':'boolean','description':a9_0x83ec53(0x1d5),'default':!![]},{'name':a9_0x83ec53(0x189),'type':a9_0x83ec53(0x19b),'description':a9_0x83ec53(0x19f),'default':![]}],async 'execute'(_0x5a2316){const _0x3798a2=a9_0x83ec53,_0x10c2bc=await resolveAuthWriteInput(_0x5a2316),_0xbcb849=resolveAuthScopeFlags(_0x5a2316),_0x15f78f={'accessKey':_0x10c2bc['accessKey']};_0x10c2bc['env']&&(_0x15f78f[_0x3798a2(0x1ca)]=_0x10c2bc[_0x3798a2(0x1ca)]);writeScopedConfig(_0x15f78f,_0xbcb849);const _0x54bac9=_0xbcb849['global']?_0x3798a2(0x184):_0x3798a2(0x189),_0x12eb26=_0x15f78f['env']?_0x3798a2(0x1cb)+_0x15f78f[_0x3798a2(0x1ca)]+'.':'';return{'ok':!![],'message':'Auth\x20config\x20reinitialized\x20in\x20'+_0x54bac9+_0x3798a2(0x188)+_0x12eb26+_0x3798a2(0x19d)+CLI_BIN_NAME+_0x3798a2(0x1c4)};}},{'service':'auth','command':a9_0x83ec53(0x18a),'description':a9_0x83ec53(0x1a5),'risk':a9_0x83ec53(0x1ba),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x83ec53(0x184),'type':a9_0x83ec53(0x19b),'description':a9_0x83ec53(0x1a1),'default':!![]},{'name':a9_0x83ec53(0x189),'type':'boolean','description':a9_0x83ec53(0x1c0),'default':![]}],async 'execute'(_0x42bd3e){const _0x195c3d=a9_0x83ec53,_0x4ccba2=resolveAuthScopeFlags(_0x42bd3e),_0x44249e=readScopedConfig(_0x4ccba2),_0x5b035d=!!_0x44249e[_0x195c3d(0x182)];delete _0x44249e[_0x195c3d(0x182)],writeScopedConfig(_0x44249e,_0x4ccba2);const _0x294c62=_0x4ccba2[_0x195c3d(0x184)]?_0x195c3d(0x184):_0x195c3d(0x189);if(_0x5b035d)return{'ok':!![],'message':_0x195c3d(0x1c9)+_0x294c62+_0x195c3d(0x19a)};return{'ok':!![],'message':_0x195c3d(0x1bf)+_0x294c62+_0x195c3d(0x1d0)};}},{'service':'auth','command':a9_0x83ec53(0x1b3),'description':a9_0x83ec53(0x18e),'risk':a9_0x83ec53(0x1b5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x83ec53(0x184),'type':'boolean','description':a9_0x83ec53(0x195),'default':!![]},{'name':a9_0x83ec53(0x189),'type':a9_0x83ec53(0x19b),'description':'Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x23ad84){const _0x1d8156=a9_0x83ec53,_0x3a9221=resolveAuthScopeFlags(_0x23ad84),_0x53d3cd=readScopedConfig(_0x3a9221),_0x17b22a=productEnvName(_0x1d8156(0x1b2)),_0x6af131=productEnv('ACCESS_KEY')||undefined,_0x22363e=_0x53d3cd[_0x1d8156(0x182)]||undefined,_0x564e7a=_0x6af131||_0x22363e,_0x5e9719=_0x6af131?_0x17b22a+_0x1d8156(0x1ad):_0x22363e?(_0x3a9221['global']?_0x1d8156(0x184):_0x1d8156(0x189))+'\x20config':null,_0x323cdc=[_0x1d8156(0x187)+AUTH_MODE[_0x1d8156(0x1d3)]];if(_0x564e7a){const _0x1a8dcf=_0x564e7a[_0x1d8156(0x1be)]>0x8?''+_0x564e7a[_0x1d8156(0x1ae)](0x0,0x8)+'*'[_0x1d8156(0x1d1)](_0x564e7a[_0x1d8156(0x1be)]-0x8):_0x564e7a;_0x323cdc[_0x1d8156(0x1d6)]('AccessKey:\x20'+_0x1a8dcf+(_0x5e9719?_0x1d8156(0x1b8)+_0x5e9719+')':''));}return!_0x564e7a&&(_0x323cdc[_0x1d8156(0x1d6)](''),_0x323cdc[_0x1d8156(0x1d6)]('No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:'),_0x323cdc['push'](''),_0x323cdc[_0x1d8156(0x1d6)]('Option\x20A:\x20'+CLI_BIN_NAME+'\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]'),_0x323cdc[_0x1d8156(0x1d6)](''),_0x323cdc[_0x1d8156(0x1d6)](_0x1d8156(0x192)+PRODUCT_CONFIG['newConfigFileName']+')'),_0x323cdc['push']('{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}'),_0x323cdc[_0x1d8156(0x1d6)](''),_0x323cdc['push'](_0x1d8156(0x1b9)),_0x323cdc[_0x1d8156(0x1d6)](_0x1d8156(0x186)+_0x17b22a+'=ak_xxx'),_0x323cdc['push'](''),_0x323cdc[_0x1d8156(0x1d6)](_0x1d8156(0x1a4)+CLI_BIN_NAME+_0x1d8156(0x1c4)),_0x323cdc[_0x1d8156(0x1d6)](_0x1d8156(0x190)+CLI_BIN_NAME+'\x20doctor')),{'ok':!![],'message':_0x323cdc[_0x1d8156(0x1c3)]('\x0a')};}},{'service':a9_0x83ec53(0x1d2),'command':'info','description':a9_0x83ec53(0x1b7),'risk':a9_0x83ec53(0x1b5),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x135a70){const _0x20943e=a9_0x83ec53,_0x399e68=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x399e68,'meta':{'env':_0x135a70[_0x20943e(0x1ac)]??_0x20943e(0x198)}}};}}];
1
+ const a9_0x93ac11=a9_0x5bbc;(function(_0x12d324,_0x40abed){const _0x37d24f=a9_0x5bbc,_0x5e45cc=_0x12d324();while(!![]){try{const _0x4f4447=parseInt(_0x37d24f(0xa4))/0x1*(-parseInt(_0x37d24f(0x7e))/0x2)+parseInt(_0x37d24f(0xc4))/0x3+-parseInt(_0x37d24f(0xa2))/0x4*(-parseInt(_0x37d24f(0x74))/0x5)+-parseInt(_0x37d24f(0x98))/0x6+-parseInt(_0x37d24f(0x90))/0x7+-parseInt(_0x37d24f(0xb8))/0x8*(-parseInt(_0x37d24f(0x7d))/0x9)+parseInt(_0x37d24f(0xc7))/0xa;if(_0x4f4447===_0x40abed)break;else _0x5e45cc['push'](_0x5e45cc['shift']());}catch(_0x5af968){_0x5e45cc['push'](_0x5e45cc['shift']());}}}(a9_0x4c96,0xe4459));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';function a9_0x5bbc(_0x5f2d73,_0x1dfd94){_0x5f2d73=_0x5f2d73-0x71;const _0x4c96c3=a9_0x4c96();let _0x5bbce9=_0x4c96c3[_0x5f2d73];return _0x5bbce9;}import{CliErrors}from'../../errors.js';import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{getLoginUserInfo}from'../../core/api-client.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function showAccessKeyCreateHint(){const _0x10406f=a9_0x5bbc;writeCliSideChannelLine(_0x10406f(0xb2)+PRODUCT_CONFIG[_0x10406f(0x8f)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine('Tip:\x20you\x20can\x20also\x20run:'),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x10406f(0xba));}function a9_0x4c96(){const _0x15a448=['bool','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','Shorthand\x20for\x20--access-key','40NlnZYp','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','\x20auth\x20login\x20--access-key\x20<ak_xxx>','global','string','join','write','Write\x20to\x20global\x20config\x20(default)','Option\x20A:\x20','project','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','slice','5166333Ldmdjg','\x20Verify:\x20','access-key','512740EPhdtN','No\x20AccessKey\x20found\x20in\x20','Show\x20current\x20authentication\x20status','Auth\x20config\x20reinitialized\x20in\x20','10WDpBtd','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','newConfigFileName','accessKey','Invalid\x20accessKey\x20format:\x20\x22','\x20(via\x20','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','Then\x20verify\x20with:\x20','\x20config.','1727343PkTbFp','14jQONJD','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','\x20\x20export\x20','cancelled','env','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','Auth\x20mode:\x20','length','\x20env\x20var','init','Clear\x20accessKey\x20from\x20config','\x20auth\x20status','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','AccessKey\x20saved\x20to\x20','envName','validation','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','userCenterDisplayName','12957966QRgbBq','AccessKey\x20cleared\x20from\x20','AccessKey\x20(ak_xxx...)','\x20config','isTTY','\x20doctor','stdout','Option\x20B:\x20apps\x20config\x20(','2588178ibeMzt','Read\x20from\x20global\x20config\x20(default)','info','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','Clear\x20from\x20global\x20config\x20(default)','status','Missing\x20accessKey.','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','str','1605712icuabc','Use\x20`','45482cDGlME','push','ACCESS_KEY','=ak_xxx','logout','auth','trim','\x20scope.','test','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','boolean','production','nonInteractive','global-default','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','stdin'];a9_0x4c96=function(){return _0x15a448;};return a9_0x4c96();}function buildAccessKeySetupGuide(){const _0x5b1cf3=a9_0x5bbc;return[_0x5b1cf3(0xb2)+PRODUCT_CONFIG[_0x5b1cf3(0x8f)]+':',USER_ACCESS_KEY_CREATE_URL,_0x5b1cf3(0xb3)+CLI_BIN_NAME+_0x5b1cf3(0x7f)][_0x5b1cf3(0xbd)]('\x0a');}function canPromptForAccessKey(_0x194930){const _0x4ac954=a9_0x5bbc;return!_0x194930['nonInteractive']&&process[_0x4ac954(0xb4)][_0x4ac954(0x94)]!==![]&&process[_0x4ac954(0x96)][_0x4ac954(0x94)]!==![];}function resolveAuthScopeFlags(_0xce5019){const _0x56ac6a=a9_0x5bbc;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0xce5019[_0x56ac6a(0xb5)](_0x56ac6a(0xbb)),'explicitProject':_0xce5019['bool'](_0x56ac6a(0xc1)),'policy':_0x56ac6a(0xb1)}));}async function resolveAuthWriteInput(_0x749b2d){const _0x9afd3a=a9_0x5bbc;let _0x59662b=(_0x749b2d[_0x9afd3a(0xa1)](_0x9afd3a(0xc6))||_0x749b2d[_0x9afd3a(0xa1)]('ak')||'')[_0x9afd3a(0xaa)]();const _0x1d3a5f=(_0x749b2d['str'](_0x9afd3a(0x82))||'')[_0x9afd3a(0xaa)]();if(!_0x59662b&&canPromptForAccessKey(_0x749b2d))try{showAccessKeyCreateHint(),_0x59662b=await promptAccessKey('');}catch(_0xae81fc){if(isAbortPrompt(_0xae81fc))throw CliErrors[_0x9afd3a(0x81)]();throw _0xae81fc;}if(!_0x59662b)throw CliErrors[_0x9afd3a(0x8d)](_0x9afd3a(0x9f),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x9afd3a(0xac)](_0x59662b))throw CliErrors[_0x9afd3a(0x8d)](_0x9afd3a(0x78)+_0x59662b+'\x22','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars');if(!_0x1d3a5f)return{'accessKey':_0x59662b};const _0x1a91b7=normalizeEnv(_0x1d3a5f);return{'accessKey':_0x59662b,'env':isDaily(_0x1a91b7)?'daily':isDev(_0x1a91b7)?'development':_0x9afd3a(0xaf)};}export const authDefinitions=[{'service':a9_0x93ac11(0xa9),'command':'login','description':a9_0x93ac11(0xad),'risk':a9_0x93ac11(0xbe),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x93ac11(0xc6),'type':a9_0x93ac11(0xbc),'description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':'string','description':'Shorthand\x20for\x20--access-key'},{'name':a9_0x93ac11(0xbb),'type':a9_0x93ac11(0xae),'description':a9_0x93ac11(0xbf),'default':!![]},{'name':a9_0x93ac11(0xc1),'type':a9_0x93ac11(0xae),'description':a9_0x93ac11(0x9c),'default':![]}],async 'execute'(_0x251096){const _0x274824=a9_0x93ac11;if(_0x251096[_0x274824(0xb5)]('yes'))throw CliErrors[_0x274824(0x8d)]('`auth\x20login`\x20does\x20not\x20support\x20--yes.',_0x274824(0xa3)+CLI_BIN_NAME+_0x274824(0x75)+CLI_BIN_NAME+_0x274824(0xb9));const _0x2acf28=(_0x251096[_0x274824(0xa1)](_0x274824(0xc6))||_0x251096[_0x274824(0xa1)]('ak')||'')['trim']();if(!_0x2acf28&&_0x251096[_0x274824(0xb0)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x3d4183=await resolveAuthWriteInput(_0x251096),_0x192c82=resolveAuthScopeFlags(_0x251096),_0x397c29=readScopedConfig(_0x192c82);_0x397c29[_0x274824(0x77)]=_0x3d4183[_0x274824(0x77)];_0x3d4183[_0x274824(0x82)]&&(_0x397c29[_0x274824(0x82)]=_0x3d4183['env']);writeScopedConfig(_0x397c29,_0x192c82);const _0x46a482=_0x192c82['global']?_0x274824(0xbb):_0x274824(0xc1),_0x9cf828=_0x397c29['env']?'\x20Current\x20env:\x20'+_0x397c29[_0x274824(0x82)]+'.':'';return{'ok':!![],'message':_0x274824(0x8b)+_0x46a482+'\x20config.'+_0x9cf828+_0x274824(0xc5)+CLI_BIN_NAME+_0x274824(0x89)};}},{'service':a9_0x93ac11(0xa9),'command':a9_0x93ac11(0x87),'description':a9_0x93ac11(0x9b),'risk':a9_0x93ac11(0xbe),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'access-key','type':'string','description':a9_0x93ac11(0x92)},{'name':'ak','type':a9_0x93ac11(0xbc),'description':a9_0x93ac11(0xb7)},{'name':a9_0x93ac11(0x82),'type':a9_0x93ac11(0xbc),'description':a9_0x93ac11(0x7a)},{'name':a9_0x93ac11(0xbb),'type':'boolean','description':a9_0x93ac11(0xbf),'default':!![]},{'name':a9_0x93ac11(0xc1),'type':a9_0x93ac11(0xae),'description':'Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x1038ec){const _0x36b93a=a9_0x93ac11,_0x49a5c5=await resolveAuthWriteInput(_0x1038ec),_0x24be58=resolveAuthScopeFlags(_0x1038ec),_0xb3e4b={'accessKey':_0x49a5c5[_0x36b93a(0x77)]};_0x49a5c5[_0x36b93a(0x82)]&&(_0xb3e4b['env']=_0x49a5c5[_0x36b93a(0x82)]);writeScopedConfig(_0xb3e4b,_0x24be58);const _0x5979a2=_0x24be58[_0x36b93a(0xbb)]?'global':_0x36b93a(0xc1),_0x4122db=_0xb3e4b[_0x36b93a(0x82)]?'\x20Current\x20env:\x20'+_0xb3e4b[_0x36b93a(0x82)]+'.':'';return{'ok':!![],'message':_0x36b93a(0x73)+_0x5979a2+_0x36b93a(0xab)+_0x4122db+_0x36b93a(0xc5)+CLI_BIN_NAME+_0x36b93a(0x89)};}},{'service':'auth','command':a9_0x93ac11(0xa8),'description':a9_0x93ac11(0x88),'risk':a9_0x93ac11(0xbe),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'global','type':a9_0x93ac11(0xae),'description':a9_0x93ac11(0x9d),'default':!![]},{'name':a9_0x93ac11(0xc1),'type':a9_0x93ac11(0xae),'description':a9_0x93ac11(0xc2),'default':![]}],async 'execute'(_0x31303f){const _0x497f60=a9_0x93ac11,_0x293ced=resolveAuthScopeFlags(_0x31303f),_0x12b033=readScopedConfig(_0x293ced),_0x473728=!!_0x12b033['accessKey'];delete _0x12b033['accessKey'],writeScopedConfig(_0x12b033,_0x293ced);const _0x493ed0=_0x293ced[_0x497f60(0xbb)]?_0x497f60(0xbb):_0x497f60(0xc1);if(_0x473728)return{'ok':!![],'message':_0x497f60(0x91)+_0x493ed0+_0x497f60(0x7c)};return{'ok':!![],'message':_0x497f60(0x71)+_0x493ed0+'\x20config.\x20Nothing\x20to\x20clear.'};}},{'service':'auth','command':a9_0x93ac11(0x9e),'description':a9_0x93ac11(0x72),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'global','type':a9_0x93ac11(0xae),'description':a9_0x93ac11(0x99),'default':!![]},{'name':a9_0x93ac11(0xc1),'type':a9_0x93ac11(0xae),'description':a9_0x93ac11(0x8a),'default':![]}],async 'execute'(_0x13cfe0){const _0x189218=a9_0x93ac11,_0x19489a=resolveAuthScopeFlags(_0x13cfe0),_0x1f1260=readScopedConfig(_0x19489a),_0x3f6904=productEnvName(_0x189218(0xa6)),_0x48953a=productEnv('ACCESS_KEY')||undefined,_0x101b82=_0x1f1260[_0x189218(0x77)]||undefined,_0x4772a9=_0x48953a||_0x101b82,_0x483213=_0x48953a?_0x3f6904+_0x189218(0x86):_0x101b82?(_0x19489a[_0x189218(0xbb)]?_0x189218(0xbb):_0x189218(0xc1))+_0x189218(0x93):null,_0x4c5d72=[_0x189218(0x84)+AUTH_MODE['ClientAk']];if(_0x4772a9){const _0x13d353=_0x4772a9[_0x189218(0x85)]>0x8?''+_0x4772a9[_0x189218(0xc3)](0x0,0x8)+'*'['repeat'](_0x4772a9[_0x189218(0x85)]-0x8):_0x4772a9;_0x4c5d72[_0x189218(0xa5)]('AccessKey:\x20'+_0x13d353+(_0x483213?_0x189218(0x79)+_0x483213+')':''));}return!_0x4772a9&&(_0x4c5d72[_0x189218(0xa5)](''),_0x4c5d72[_0x189218(0xa5)](_0x189218(0x83)),_0x4c5d72['push'](''),_0x4c5d72[_0x189218(0xa5)](_0x189218(0xc0)+CLI_BIN_NAME+'\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]'),_0x4c5d72[_0x189218(0xa5)](''),_0x4c5d72[_0x189218(0xa5)](_0x189218(0x97)+PRODUCT_CONFIG[_0x189218(0x76)]+')'),_0x4c5d72[_0x189218(0xa5)](_0x189218(0xa0)),_0x4c5d72['push'](''),_0x4c5d72['push']('Option\x20C:\x20environment\x20variable'),_0x4c5d72[_0x189218(0xa5)](_0x189218(0x80)+_0x3f6904+_0x189218(0xa7)),_0x4c5d72[_0x189218(0xa5)](''),_0x4c5d72['push'](_0x189218(0x7b)+CLI_BIN_NAME+_0x189218(0x89)),_0x4c5d72[_0x189218(0xa5)](_0x189218(0xb6)+CLI_BIN_NAME+_0x189218(0x95))),{'ok':!![],'message':_0x4c5d72[_0x189218(0xbd)]('\x0a')};}},{'service':'auth','command':a9_0x93ac11(0x9a),'description':a9_0x93ac11(0x8e),'risk':'read','requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x229b2e){const _0xf48a14=a9_0x93ac11,_0x4b7d3e=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x4b7d3e,'meta':{'env':_0x229b2e[_0xf48a14(0x8c)]??'production'}}};}}];
@@ -1 +1 @@
1
- (function(_0x364daf,_0x38d43f){const _0x3cc14e=a10_0x189f,_0x564a08=_0x364daf();while(!![]){try{const _0x38ff7b=parseInt(_0x3cc14e(0xfa))/0x1*(-parseInt(_0x3cc14e(0xeb))/0x2)+parseInt(_0x3cc14e(0xef))/0x3+-parseInt(_0x3cc14e(0xf9))/0x4+parseInt(_0x3cc14e(0xfb))/0x5+-parseInt(_0x3cc14e(0xe6))/0x6+-parseInt(_0x3cc14e(0xf7))/0x7*(parseInt(_0x3cc14e(0xf3))/0x8)+parseInt(_0x3cc14e(0xe7))/0x9;if(_0x38ff7b===_0x38d43f)break;else _0x564a08['push'](_0x564a08['shift']());}catch(_0x5b928d){_0x564a08['push'](_0x564a08['shift']());}}}(a10_0x3cab,0x58e8f));import{createInterface}from'node:readline';function a10_0x189f(_0x12aafd,_0xa88ac){_0x12aafd=_0x12aafd-0xe6;const _0x3cabca=a10_0x3cab();let _0x189f44=_0x3cabca[_0x12aafd];return _0x189f44;}class AbortPrompt extends Error{constructor(){const _0x271fd7=a10_0x189f;super(_0x271fd7(0xe9)),this[_0x271fd7(0xf0)]=_0x271fd7(0xee);}}function createSafeRl(){const _0x5059a9=a10_0x189f,_0x3d463f=createInterface({'input':process[_0x5059a9(0xec)],'output':process['stdout']});let _0x217130;const _0x4be47d=new Promise((_0x1120e3,_0x26a6a0)=>{const _0x14cfd1=_0x5059a9;_0x217130=()=>{const _0x2cb23c=a10_0x189f;_0x217130&&(_0x3d463f['removeListener']('SIGINT',_0x217130),_0x217130=undefined);try{_0x3d463f[_0x2cb23c(0xf2)]();}catch{}_0x26a6a0(new AbortPrompt());},_0x3d463f[_0x14cfd1(0xf6)](_0x14cfd1(0xf5),_0x217130);}),_0x45080e=()=>{const _0x4ccbd9=_0x5059a9;_0x217130&&(_0x3d463f['removeListener']('SIGINT',_0x217130),_0x217130=undefined);try{_0x3d463f[_0x4ccbd9(0xf2)]();}catch{}};return{'rl':_0x3d463f,'abortPromise':_0x4be47d,'disposeSuccess':_0x45080e};}export async function promptAccessKey(_0x2d1588=''){const _0x616154=a10_0x189f,{rl:_0x4cc2a5,abortPromise:_0x5afd8f,disposeSuccess:_0x5cd3a6}=createSafeRl(),_0x2e4e5f=new Promise(_0x498468=>{const _0xa44a07=a10_0x189f,_0x3d767a=_0x2d1588?_0xa44a07(0xf1)+_0x2d1588+_0xa44a07(0xe8):_0xa44a07(0xea);_0x4cc2a5[_0xa44a07(0xed)](_0x3d767a,_0x3d352b=>{const _0x484025=_0xa44a07;_0x5cd3a6(),_0x498468(_0x3d352b[_0x484025(0xf8)]()||_0x2d1588);});});return Promise[_0x616154(0xf4)]([_0x2e4e5f,_0x5afd8f]);}export function isAbortPrompt(_0x1992ca){const _0x5e3037=a10_0x189f;return _0x1992ca instanceof Error&&_0x1992ca['name']===_0x5e3037(0xee);}function a10_0x3cab(){const _0x1a8b52=['AccessKey\x20(paste\x20ak_...):\x20','188CKMoTV','stdin','question','AbortPrompt','898764iArTBB','name','AccessKey\x20(','close','4157256PEoZZW','race','SIGINT','once','7lBppOA','trim','2295940ahzAHf','5528ETvTjx','542200RFZjEf','264420IyOabu','14521419nnWmYy','):\x20','User\x20aborted\x20prompt'];a10_0x3cab=function(){return _0x1a8b52;};return a10_0x3cab();}
1
+ function a10_0x1cf6(_0x5af2a3,_0x4fe22f){_0x5af2a3=_0x5af2a3-0x68;const _0x526902=a10_0x5269();let _0x1cf6bb=_0x526902[_0x5af2a3];return _0x1cf6bb;}(function(_0x20123f,_0x90bf3e){const _0x121c82=a10_0x1cf6,_0x5e368a=_0x20123f();while(!![]){try{const _0x499aa0=-parseInt(_0x121c82(0x6c))/0x1+parseInt(_0x121c82(0x78))/0x2*(parseInt(_0x121c82(0x7e))/0x3)+-parseInt(_0x121c82(0x68))/0x4+parseInt(_0x121c82(0x70))/0x5*(-parseInt(_0x121c82(0x6a))/0x6)+parseInt(_0x121c82(0x74))/0x7*(parseInt(_0x121c82(0x6b))/0x8)+parseInt(_0x121c82(0x6f))/0x9*(-parseInt(_0x121c82(0x7d))/0xa)+parseInt(_0x121c82(0x76))/0xb;if(_0x499aa0===_0x90bf3e)break;else _0x5e368a['push'](_0x5e368a['shift']());}catch(_0x2be3ea){_0x5e368a['push'](_0x5e368a['shift']());}}}(a10_0x5269,0xd7a26));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x4dcc04=a10_0x1cf6;super(_0x4dcc04(0x6e)),this['name']=_0x4dcc04(0x73);}}function a10_0x5269(){const _0x59c1be=['race','):\x20','stdout','AccessKey\x20(paste\x20ak_...):\x20','4470rnzRzO','3xuLVlT','question','967000kWRITc','once','4042974Zlpwsy','1209976goAnBp','5357DqYFQL','removeListener','User\x20aborted\x20prompt','15993kthCiD','5THXpEg','stdin','close','AbortPrompt','14LPszWW','AccessKey\x20(','16211140nOUvJz','SIGINT','1644518hsxNPG'];a10_0x5269=function(){return _0x59c1be;};return a10_0x5269();}function createSafeRl(){const _0x162286=a10_0x1cf6,_0x311eca=createInterface({'input':process[_0x162286(0x71)],'output':process[_0x162286(0x7b)]});let _0x2eaabf;const _0x22bf51=new Promise((_0x33771e,_0x139245)=>{const _0x4b1377=_0x162286;_0x2eaabf=()=>{const _0x573677=a10_0x1cf6;_0x2eaabf&&(_0x311eca[_0x573677(0x6d)]('SIGINT',_0x2eaabf),_0x2eaabf=undefined);try{_0x311eca[_0x573677(0x72)]();}catch{}_0x139245(new AbortPrompt());},_0x311eca[_0x4b1377(0x69)](_0x4b1377(0x77),_0x2eaabf);}),_0xf0a348=()=>{const _0x516ef8=_0x162286;_0x2eaabf&&(_0x311eca[_0x516ef8(0x6d)](_0x516ef8(0x77),_0x2eaabf),_0x2eaabf=undefined);try{_0x311eca[_0x516ef8(0x72)]();}catch{}};return{'rl':_0x311eca,'abortPromise':_0x22bf51,'disposeSuccess':_0xf0a348};}export async function promptAccessKey(_0x34d62d=''){const _0x445c63=a10_0x1cf6,{rl:_0x218810,abortPromise:_0x338a3c,disposeSuccess:_0x35b729}=createSafeRl(),_0x36dcf2=new Promise(_0x27cc46=>{const _0x470826=a10_0x1cf6,_0x2494e5=_0x34d62d?_0x470826(0x75)+_0x34d62d+_0x470826(0x7a):_0x470826(0x7c);_0x218810[_0x470826(0x7f)](_0x2494e5,_0x9ffeef=>{_0x35b729(),_0x27cc46(_0x9ffeef['trim']()||_0x34d62d);});});return Promise[_0x445c63(0x79)]([_0x36dcf2,_0x338a3c]);}export function isAbortPrompt(_0x3ca81f){const _0x2bb2aa=a10_0x1cf6;return _0x3ca81f instanceof Error&&_0x3ca81f['name']===_0x2bb2aa(0x73);}
@@ -1 +1 @@
1
- const a11_0x589efa=a11_0x53c4;(function(_0x58ca5e,_0x3bf0de){const _0x38bd4a=a11_0x53c4,_0x3861fc=_0x58ca5e();while(!![]){try{const _0x5509fa=-parseInt(_0x38bd4a(0x97))/0x1+-parseInt(_0x38bd4a(0xa7))/0x2*(-parseInt(_0x38bd4a(0x92))/0x3)+-parseInt(_0x38bd4a(0x9f))/0x4*(-parseInt(_0x38bd4a(0x96))/0x5)+-parseInt(_0x38bd4a(0x9b))/0x6+parseInt(_0x38bd4a(0x98))/0x7+-parseInt(_0x38bd4a(0x93))/0x8+-parseInt(_0x38bd4a(0xa3))/0x9*(parseInt(_0x38bd4a(0x9e))/0xa);if(_0x5509fa===_0x3bf0de)break;else _0x3861fc['push'](_0x3861fc['shift']());}catch(_0x3768cc){_0x3861fc['push'](_0x3861fc['shift']());}}}(a11_0xbaed,0x7cd16));import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a11_0x589efa(0x9a),'command':a11_0x589efa(0x9c),'description':a11_0x589efa(0x99),'risk':a11_0x589efa(0xa0),'flags':[{...ID_FLAG,'description':'Script\x20ID'},VERBOSE_FLAG],async 'execute'(_0x286e52){const _0x3fffad=a11_0x589efa,_0x45fad4=await getBffScriptInfo(_0x286e52[_0x3fffad(0x9d)]('id')),_0x560c31=_0x286e52['bool']('verbose');if(_0x560c31)return{'ok':!![],'data':_0x45fad4};return{'ok':!![],'data':{'id':_0x45fad4['id'],'appCode':_0x45fad4[_0x3fffad(0xa1)],'functionName':_0x45fad4[_0x3fffad(0xa2)]??'','scriptType':_0x45fad4[_0x3fffad(0x94)],'description':_0x45fad4[_0x3fffad(0xa5)]||_0x3fffad(0xa4),'createdTime':_0x45fad4[_0x3fffad(0xa6)]??'','updatedTime':_0x45fad4[_0x3fffad(0x95)]??''}};}};function a11_0x53c4(_0x49c120,_0x1d403e){_0x49c120=_0x49c120-0x92;const _0xbaedf0=a11_0xbaed();let _0x53c410=_0xbaedf0[_0x49c120];return _0x53c410;}function a11_0xbaed(){const _0x273494=['97386GMNVTy','30AhFEEX','1522104WAvXdI','scriptType','updatedTime','454795DLafwz','162342Ifkrpz','6759046YEYSBh','Get\x20BFF\x20script\x20details\x20by\x20ID','bff','4770024mFqAiB','detail','num','60vIAbKm','36sZMQvB','read','appCode','functionName','918414lVmBKC','(none)','description','createdTime'];a11_0xbaed=function(){return _0x273494;};return a11_0xbaed();}
1
+ const a11_0xb447d5=a11_0x10f6;(function(_0x21eefa,_0x5329c5){const _0x286371=a11_0x10f6,_0x494885=_0x21eefa();while(!![]){try{const _0xec0081=-parseInt(_0x286371(0xc0))/0x1*(-parseInt(_0x286371(0xc5))/0x2)+-parseInt(_0x286371(0xcd))/0x3+parseInt(_0x286371(0xc7))/0x4+-parseInt(_0x286371(0xc3))/0x5+parseInt(_0x286371(0xbf))/0x6*(-parseInt(_0x286371(0xca))/0x7)+-parseInt(_0x286371(0xd4))/0x8*(-parseInt(_0x286371(0xce))/0x9)+-parseInt(_0x286371(0xd3))/0xa*(-parseInt(_0x286371(0xc9))/0xb);if(_0xec0081===_0x5329c5)break;else _0x494885['push'](_0x494885['shift']());}catch(_0x41f8e1){_0x494885['push'](_0x494885['shift']());}}}(a11_0x50f7,0x7ab4b));function a11_0x50f7(){const _0x119e49=['2250450Dmfjny','31446BdVkxj','description','updatedTime','appCode','read','10yDYIye','152SMnGSg','5526RHLSxx','37473REshdL','Script\x20ID','bool','2248530epijdy','bff','24SvWtYe','(none)','1090064wzFKqf','detail','11298804kcgEll','861dgNcgS','Get\x20BFF\x20script\x20details\x20by\x20ID','createdTime'];a11_0x50f7=function(){return _0x119e49;};return a11_0x50f7();}import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';function a11_0x10f6(_0x2363c4,_0x542132){_0x2363c4=_0x2363c4-0xbf;const _0x50f74a=a11_0x50f7();let _0x10f691=_0x50f74a[_0x2363c4];return _0x10f691;}export const bffDetail={'service':a11_0xb447d5(0xc4),'command':a11_0xb447d5(0xc8),'description':a11_0xb447d5(0xcb),'risk':a11_0xb447d5(0xd2),'flags':[{...ID_FLAG,'description':a11_0xb447d5(0xc1)},VERBOSE_FLAG],async 'execute'(_0xce27c7){const _0x43a458=a11_0xb447d5,_0xe9ea66=await getBffScriptInfo(_0xce27c7['num']('id')),_0x4f76b5=_0xce27c7[_0x43a458(0xc2)]('verbose');if(_0x4f76b5)return{'ok':!![],'data':_0xe9ea66};return{'ok':!![],'data':{'id':_0xe9ea66['id'],'appCode':_0xe9ea66[_0x43a458(0xd1)],'functionName':_0xe9ea66['functionName']??'','scriptType':_0xe9ea66['scriptType'],'description':_0xe9ea66[_0x43a458(0xcf)]||_0x43a458(0xc6),'createdTime':_0xe9ea66[_0x43a458(0xcc)]??'','updatedTime':_0xe9ea66[_0x43a458(0xd0)]??''}};}};
@@ -1 +1 @@
1
- const a12_0x272d0f=a12_0xb14a;function a12_0xb14a(_0x5823cd,_0x39766c){_0x5823cd=_0x5823cd-0x15e;const _0xb31996=a12_0xb319();let _0xb14aca=_0xb31996[_0x5823cd];return _0xb14aca;}(function(_0x2de7e1,_0x91a21d){const _0x2fdd70=a12_0xb14a,_0x5b8b9c=_0x2de7e1();while(!![]){try{const _0x377c5c=parseInt(_0x2fdd70(0x163))/0x1*(parseInt(_0x2fdd70(0x171))/0x2)+-parseInt(_0x2fdd70(0x169))/0x3+-parseInt(_0x2fdd70(0x172))/0x4*(parseInt(_0x2fdd70(0x162))/0x5)+parseInt(_0x2fdd70(0x170))/0x6*(-parseInt(_0x2fdd70(0x160))/0x7)+parseInt(_0x2fdd70(0x167))/0x8+-parseInt(_0x2fdd70(0x16d))/0x9*(parseInt(_0x2fdd70(0x166))/0xa)+parseInt(_0x2fdd70(0x16c))/0xb;if(_0x377c5c===_0x91a21d)break;else _0x5b8b9c['push'](_0x5b8b9c['shift']());}catch(_0xee80b5){_0x5b8b9c['push'](_0x5b8b9c['shift']());}}}(a12_0xb319,0xba65e));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';function a12_0xb319(){const _0x4bfeb8=['3194625mgfSoU','params','now','58642199yZcFXz','11236923eSKuLL','bff','BFF\x20executed\x20in\x20','6UZpLMj','6TztyCE','4hWulve','exec','name','9172681gGvxjE','read','6925645GqGNGj','114025QcumAk','str','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','10zgYzgJ','793888eMDRGG','BFF\x20function\x20name\x20to\x20execute'];a12_0xb319=function(){return _0x4bfeb8;};return a12_0xb319();}import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a12_0x272d0f(0x16e),'command':a12_0x272d0f(0x15e),'description':a12_0x272d0f(0x165),'risk':a12_0x272d0f(0x161),'flags':[{...NAME_FLAG,'required':!![],'description':a12_0x272d0f(0x168)},PARAMS_FLAG],async 'execute'(_0x183079){const _0xe73a48=a12_0x272d0f,_0x1a96c7=parseJsonParams(_0x183079[_0xe73a48(0x164)](_0xe73a48(0x16a))),_0x6b11f8=Date['now'](),_0x1ce9ce=await executeSdkBff(_0x183079['str'](_0xe73a48(0x15f)),_0x1a96c7),_0x279651=Date[_0xe73a48(0x16b)]()-_0x6b11f8;return{'ok':!![],'data':{'result':_0x1ce9ce,'elapsed':_0x279651},'message':_0xe73a48(0x16f)+_0x279651+'ms'};}};
1
+ const a12_0x413039=a12_0x496d;function a12_0x496d(_0x545d02,_0x2d57fe){_0x545d02=_0x545d02-0x185;const _0x497819=a12_0x4978();let _0x496df5=_0x497819[_0x545d02];return _0x496df5;}(function(_0x5ca6e4,_0x44ee31){const _0x33e0e1=a12_0x496d,_0xb1005d=_0x5ca6e4();while(!![]){try{const _0x128ceb=parseInt(_0x33e0e1(0x196))/0x1+-parseInt(_0x33e0e1(0x18f))/0x2+-parseInt(_0x33e0e1(0x195))/0x3*(parseInt(_0x33e0e1(0x191))/0x4)+parseInt(_0x33e0e1(0x18e))/0x5*(-parseInt(_0x33e0e1(0x197))/0x6)+-parseInt(_0x33e0e1(0x18c))/0x7+-parseInt(_0x33e0e1(0x190))/0x8*(parseInt(_0x33e0e1(0x18d))/0x9)+parseInt(_0x33e0e1(0x185))/0xa*(parseInt(_0x33e0e1(0x194))/0xb);if(_0x128ceb===_0x44ee31)break;else _0xb1005d['push'](_0xb1005d['shift']());}catch(_0x4477c1){_0xb1005d['push'](_0xb1005d['shift']());}}}(a12_0x4978,0x4044e));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a12_0x413039(0x187),'command':a12_0x413039(0x193),'description':a12_0x413039(0x186),'risk':'read','flags':[{...NAME_FLAG,'required':!![],'description':a12_0x413039(0x18a)},PARAMS_FLAG],async 'execute'(_0x5d67b8){const _0xa83af=a12_0x413039,_0x466252=parseJsonParams(_0x5d67b8[_0xa83af(0x18b)]('params')),_0x3c57c6=Date[_0xa83af(0x189)](),_0x33ee9b=await executeSdkBff(_0x5d67b8[_0xa83af(0x18b)](_0xa83af(0x188)),_0x466252),_0x21bd61=Date['now']()-_0x3c57c6;return{'ok':!![],'data':{'result':_0x33ee9b,'elapsed':_0x21bd61},'message':_0xa83af(0x192)+_0x21bd61+'ms'};}};function a12_0x4978(){const _0x320641=['1056678RijPzE','10KVHqsf','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','bff','name','now','BFF\x20function\x20name\x20to\x20execute','str','1138809yPepEG','9nODqBw','10HIqzfH','877944zpxGQg','3540512RlmLdy','44lmaCdK','BFF\x20executed\x20in\x20','exec','19216681fhSwEu','24333kgCzju','1945ssMmoH'];a12_0x4978=function(){return _0x320641;};return a12_0x4978();}
@@ -1 +1 @@
1
- (function(_0x40ef04,_0x40d9ea){const _0x50bd77=a13_0x366e,_0x1d9a5=_0x40ef04();while(!![]){try{const _0x417031=parseInt(_0x50bd77(0xf5))/0x1*(parseInt(_0x50bd77(0xf2))/0x2)+parseInt(_0x50bd77(0xf6))/0x3*(-parseInt(_0x50bd77(0xef))/0x4)+-parseInt(_0x50bd77(0xf3))/0x5+parseInt(_0x50bd77(0xee))/0x6*(parseInt(_0x50bd77(0xf1))/0x7)+parseInt(_0x50bd77(0xf4))/0x8+-parseInt(_0x50bd77(0xf0))/0x9+-parseInt(_0x50bd77(0xed))/0xa*(parseInt(_0x50bd77(0xf7))/0xb);if(_0x417031===_0x40d9ea)break;else _0x1d9a5['push'](_0x1d9a5['shift']());}catch(_0x468f1f){_0x1d9a5['push'](_0x1d9a5['shift']());}}}(a13_0x1876,0x1f6fb));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];function a13_0x366e(_0x1d6de7,_0x124421){_0x1d6de7=_0x1d6de7-0xed;const _0x18766c=a13_0x1876();let _0x366e14=_0x18766c[_0x1d6de7];return _0x366e14;}function a13_0x1876(){const _0x2a0c0e=['4822DHciRU','1036230wOeiLm','1962968eHmqeY','104hisPOZ','537WUHDvU','6611qVBWxJ','2410qMjanx','30qffPlm','1424PqTbVb','194409ALYNMg','98084wLMHkT'];a13_0x1876=function(){return _0x2a0c0e;};return a13_0x1876();}
1
+ function a13_0x8655(_0x4a148d,_0x2f737a){_0x4a148d=_0x4a148d-0x6e;const _0x4f9202=a13_0x4f92();let _0x86555c=_0x4f9202[_0x4a148d];return _0x86555c;}function a13_0x4f92(){const _0x88014a=['653766zaZxEf','6839693pcHPix','838625AknfuZ','128lppHlK','1709878iSwsKq','43167gZSOGY','11961144ttHxGu','5163765SlchGy'];a13_0x4f92=function(){return _0x88014a;};return a13_0x4f92();}(function(_0x461a38,_0x525cb1){const _0x2ec372=a13_0x8655,_0x46ff68=_0x461a38();while(!![]){try{const _0x7e14fa=parseInt(_0x2ec372(0x75))/0x1+parseInt(_0x2ec372(0x6f))/0x2+-parseInt(_0x2ec372(0x70))/0x3*(-parseInt(_0x2ec372(0x6e))/0x4)+parseInt(_0x2ec372(0x72))/0x5+-parseInt(_0x2ec372(0x73))/0x6+-parseInt(_0x2ec372(0x74))/0x7+-parseInt(_0x2ec372(0x71))/0x8;if(_0x7e14fa===_0x525cb1)break;else _0x46ff68['push'](_0x46ff68['shift']());}catch(_0x564af6){_0x46ff68['push'](_0x46ff68['shift']());}}}(a13_0x4f92,0x93d7a));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
@@ -1 +1 @@
1
- function a14_0x651c(){const _0x2037d9=['Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','5222vAzROg','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','48318qbvXdN','info','npx\x20skills\x20add\x20failed:\x20','1544vlchxK','10kRvLiv','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','skipped','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','640840GPszUE','\x20-g\x20-y','unknown','install','686931kBIIZp','error','2MQuDSY','55yTHYFO','nonInteractive','143AfIUmF','301186xDoooH','inherit','write','1202517jfItwa','apiError','cwd','CLI\x20Built-in\x20Skill\x20installed','setLogPath','109128Lrflyl','../../skills/npx-skills-add.js'];a14_0x651c=function(){return _0x2037d9;};return a14_0x651c();}const a14_0x434b09=a14_0x4235;(function(_0x13e6ea,_0x50404f){const _0x4b4cf1=a14_0x4235,_0xba6517=_0x13e6ea();while(!![]){try{const _0x2ab25a=parseInt(_0x4b4cf1(0x147))/0x1+parseInt(_0x4b4cf1(0x143))/0x2*(parseInt(_0x4b4cf1(0x141))/0x3)+-parseInt(_0x4b4cf1(0x13d))/0x4+-parseInt(_0x4b4cf1(0x144))/0x5*(parseInt(_0x4b4cf1(0x135))/0x6)+parseInt(_0x4b4cf1(0x133))/0x7*(-parseInt(_0x4b4cf1(0x138))/0x8)+-parseInt(_0x4b4cf1(0x14a))/0x9*(-parseInt(_0x4b4cf1(0x139))/0xa)+parseInt(_0x4b4cf1(0x146))/0xb*(-parseInt(_0x4b4cf1(0x14f))/0xc);if(_0x2ab25a===_0x50404f)break;else _0xba6517['push'](_0xba6517['shift']());}catch(_0x316d02){_0xba6517['push'](_0xba6517['shift']());}}}(a14_0x651c,0x254cf));function a14_0x4235(_0x3b2d12,_0x425ebc){_0x3b2d12=_0x3b2d12-0x131;const _0x651cbb=a14_0x651c();let _0x42354c=_0x651cbb[_0x3b2d12];return _0x42354c;}import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':'cli-skill','command':a14_0x434b09(0x140),'description':a14_0x434b09(0x132),'risk':a14_0x434b09(0x149),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x5249b4){const _0x589d11=a14_0x434b09;logger[_0x589d11(0x14e)](process['cwd']()),logger[_0x589d11(0x136)]('cli-skill-install','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.');const {LOVRABET_SKILL_SOURCE:_0x1a22a7,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x253f6e,runNpxSkillsAddGlobal:_0x1f0f7c}=await import(_0x589d11(0x131)),_0x1a792e=_0x5249b4[_0x589d11(0x145)]?'pipe':_0x589d11(0x148);console['log'](_0x589d11(0x13a)+_0x1a22a7+'\x20-g\x20-y)...');const _0x5d81a9=_0x1f0f7c(process[_0x589d11(0x14c)](),_0x1a22a7,{'stdio':_0x1a792e});if(_0x5d81a9[_0x589d11(0x13b)])console['log']('Skipped\x20npx\x20('+_0x253f6e+_0x589d11(0x13c));else{if(_0x5d81a9['ok'])console['log'](_0x589d11(0x14d));else throw CliErrors[_0x589d11(0x14b)](_0x589d11(0x137)+(_0x5d81a9[_0x589d11(0x142)]||_0x589d11(0x13f)),_0x589d11(0x134)+_0x1a22a7+_0x589d11(0x13e));}return{'ok':!![]};}}];
1
+ const a14_0x2e0b8a=a14_0x10a5;function a14_0x10a5(_0x366a5b,_0x3de6fd){_0x366a5b=_0x366a5b-0xd2;const _0x4e1a21=a14_0x4e1a();let _0x10a5d0=_0x4e1a21[_0x366a5b];return _0x10a5d0;}function a14_0x4e1a(){const _0x3a5b29=['cli-skill-install','115932LxKxoe','4yylAqA','setLogPath','inherit','388592OPNTuA','1514949kZjPmU','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','install','32kiyBJi','info','write','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','4893084vPWoQA','59784xjNzaL','11Nuwrfe','109895bZabaT','pipe','log','Skipped\x20npx\x20(','cwd','117aBWdFT','npx\x20skills\x20add\x20failed:\x20','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','skipped','../../skills/npx-skills-add.js','\x20-g\x20-y','7284230troByV','unknown','apiError','cli-skill'];a14_0x4e1a=function(){return _0x3a5b29;};return a14_0x4e1a();}(function(_0x1baac6,_0x11b59d){const _0x538e38=a14_0x10a5,_0x36cf83=_0x1baac6();while(!![]){try{const _0x201f15=parseInt(_0x538e38(0xd5))/0x1*(parseInt(_0x538e38(0xd8))/0x2)+-parseInt(_0x538e38(0xd9))/0x3+parseInt(_0x538e38(0xdc))/0x4*(parseInt(_0x538e38(0xe3))/0x5)+parseInt(_0x538e38(0xd4))/0x6+-parseInt(_0x538e38(0xe0))/0x7+-parseInt(_0x538e38(0xe1))/0x8*(parseInt(_0x538e38(0xe8))/0x9)+-parseInt(_0x538e38(0xef))/0xa*(-parseInt(_0x538e38(0xe2))/0xb);if(_0x201f15===_0x11b59d)break;else _0x36cf83['push'](_0x36cf83['shift']());}catch(_0x56524f){_0x36cf83['push'](_0x36cf83['shift']());}}}(a14_0x4e1a,0x61901));import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a14_0x2e0b8a(0xd2),'command':a14_0x2e0b8a(0xdb),'description':a14_0x2e0b8a(0xdf),'risk':a14_0x2e0b8a(0xde),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0xe7aa37){const _0x5e2932=a14_0x2e0b8a;logger[_0x5e2932(0xd6)](process[_0x5e2932(0xe7)]()),logger[_0x5e2932(0xdd)](_0x5e2932(0xd3),_0x5e2932(0xeb));const {LOVRABET_SKILL_SOURCE:_0x36ccbc,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x2a73d4,runNpxSkillsAddGlobal:_0x535210}=await import(_0x5e2932(0xed)),_0x4e72a8=_0xe7aa37['nonInteractive']?_0x5e2932(0xe4):_0x5e2932(0xd7);console[_0x5e2932(0xe5)](_0x5e2932(0xda)+_0x36ccbc+'\x20-g\x20-y)...');const _0x32b813=_0x535210(process[_0x5e2932(0xe7)](),_0x36ccbc,{'stdio':_0x4e72a8});if(_0x32b813[_0x5e2932(0xec)])console[_0x5e2932(0xe5)](_0x5e2932(0xe6)+_0x2a73d4+'=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.');else{if(_0x32b813['ok'])console[_0x5e2932(0xe5)]('CLI\x20Built-in\x20Skill\x20installed');else throw CliErrors[_0x5e2932(0xf1)](_0x5e2932(0xe9)+(_0x32b813['error']||_0x5e2932(0xf0)),_0x5e2932(0xea)+_0x36ccbc+_0x5e2932(0xee));}return{'ok':!![]};}}];