@lovrabet/lovrabet-cli 2.1.6-beta.2 → 2.1.6-beta.3

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 (107) 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/commands/create.js +1 -1
  37. package/lib/commands/skill/commands/install.js +1 -1
  38. package/lib/commands/skill/commands/list.js +1 -1
  39. package/lib/commands/skill/commands/push.js +1 -1
  40. package/lib/commands/skill/commands/validate.js +1 -1
  41. package/lib/commands/skill/flags.js +1 -1
  42. package/lib/commands/skill/index.js +1 -1
  43. package/lib/commands/skill/manifest-helpers.js +1 -1
  44. package/lib/commands/skill/scopes.js +1 -1
  45. package/lib/commands/skill/summary.js +1 -1
  46. package/lib/commands/skill/templates.js +1 -1
  47. package/lib/commands/skill/validate.js +1 -1
  48. package/lib/commands/sql/detail.js +1 -1
  49. package/lib/commands/sql/exec.js +1 -1
  50. package/lib/commands/sql/index.js +1 -1
  51. package/lib/commands/update.js +1 -1
  52. package/lib/commands/workspace/index.js +1 -1
  53. package/lib/config/schema.js +1 -1
  54. package/lib/constant/app.js +1 -1
  55. package/lib/constant/auth-mode.js +1 -1
  56. package/lib/constant/cli.js +1 -1
  57. package/lib/constant/defaults.js +1 -1
  58. package/lib/constant/distribution.js +1 -1
  59. package/lib/constant/domain.js +1 -1
  60. package/lib/constant/env.js +1 -1
  61. package/lib/constant/output.js +1 -1
  62. package/lib/constant/product.js +1 -1
  63. package/lib/constant/risk.js +1 -1
  64. package/lib/constant/url.js +1 -1
  65. package/lib/context.js +1 -1
  66. package/lib/core/api-client.js +1 -1
  67. package/lib/core/db-resolver.js +1 -1
  68. package/lib/core/sdk-client.js +1 -1
  69. package/lib/errors.js +1 -1
  70. package/lib/framework/build-all-flags.js +1 -1
  71. package/lib/framework/dryrun.js +1 -1
  72. package/lib/framework/flags.js +1 -1
  73. package/lib/framework/help.js +1 -1
  74. package/lib/framework/index.js +1 -1
  75. package/lib/framework/output.js +1 -1
  76. package/lib/framework/preparse.js +1 -1
  77. package/lib/framework/response.js +1 -1
  78. package/lib/framework/runner-confirmation.js +1 -1
  79. package/lib/framework/runner-error.js +1 -1
  80. package/lib/framework/runner.js +1 -1
  81. package/lib/framework/schema-export.js +1 -1
  82. package/lib/framework/types.js +1 -1
  83. package/lib/generated/build-info.js +1 -1
  84. package/lib/help.js +1 -1
  85. package/lib/skills/npx-skills-add.js +1 -1
  86. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  87. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  88. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  89. package/lib/skills/runtime-skill-sync/links.js +1 -1
  90. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  91. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  92. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  93. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  94. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  95. package/lib/skills/runtime-skill-sync/push.js +1 -1
  96. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  97. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  98. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  99. package/lib/skills/runtime-skill-sync.js +1 -1
  100. package/lib/utils/apply-jq-filter.js +1 -1
  101. package/lib/utils/logger.js +1 -1
  102. package/lib/utils/params.js +1 -1
  103. package/lib/utils/platform.js +1 -1
  104. package/lib/utils/update-notice.js +1 -1
  105. package/lib/utils/version.js +1 -1
  106. package/lib/utils/write-cli-side-channel.js +1 -1
  107. package/package.json +1 -1
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const a0_0x5ae806=a0_0x3183;(function(_0x430831,_0x435674){const _0x57afaa=a0_0x3183,_0x20cd0d=_0x430831();while(!![]){try{const _0x2e0727=-parseInt(_0x57afaa(0xd1))/0x1*(-parseInt(_0x57afaa(0xc8))/0x2)+parseInt(_0x57afaa(0xe6))/0x3+parseInt(_0x57afaa(0xd0))/0x4*(-parseInt(_0x57afaa(0xd4))/0x5)+parseInt(_0x57afaa(0xf0))/0x6+parseInt(_0x57afaa(0xcc))/0x7*(-parseInt(_0x57afaa(0xeb))/0x8)+parseInt(_0x57afaa(0xda))/0x9*(parseInt(_0x57afaa(0xcd))/0xa)+-parseInt(_0x57afaa(0xce))/0xb*(parseInt(_0x57afaa(0xd6))/0xc);if(_0x2e0727===_0x435674)break;else _0x20cd0d['push'](_0x20cd0d['shift']());}catch(_0x433b74){_0x20cd0d['push'](_0x20cd0d['shift']());}}}(a0_0x51a6,0xcd3ad));function a0_0x51a6(){const _0x3e1735=['hint','\x20->\x20--','2225382hagbMb','args',':\x20--','length','Error:\x20','2143454LXzNem','input','Unexpected\x20error:','\x0aCancelled.\x0a','259JOukNw','8770outmmT','4543HDDnDl','stderr','140oChzMH','1UPrmFQ','flatMap','ERR_USE_AFTER_CLOSE','29885WfIGmL','definition','43920KOyYOq','message','handler','help','13779ocNpKY','name','Hint:\x20','unknownCommand','error','assign','log','catch','exit','flags','original','[preparse]\x20','245892dwXUXZ','exitCode','write','ExitPromptError','code','66136pNFmuL','ERR_STREAM_DESTROYED','defaultCommand'];a0_0x51a6=function(){return _0x3e1735;};return a0_0x51a6();}import{jsx as a0_0x54173c}from'react/jsx-runtime';import a0_0x144414 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_0x3183(_0x27781d,_0x3dca2b){_0x27781d=_0x27781d-0xc5;const _0x51a661=a0_0x51a6();let _0x318345=_0x51a661[_0x27781d];return _0x318345;}import{runCommand,createPipelineEnv}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{buildMeowFlags}from'./constant/cli.js';import{getCliVersionDisplay}from'./utils/version.js';const helpText=generateFullHelp(),cli=a0_0x144414(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'version':getCliVersionDisplay()});void main()[a0_0x5ae806(0xe1)](handleError);async function main(){try{await run();}catch(_0x461b04){handleError(_0x461b04);}}async function run(){const _0x206828=a0_0x5ae806;let _0x34e0ed=cli[_0x206828(0xc9)][0x0],_0x259c82=cli[_0x206828(0xc9)][0x1];const _0x5c82fe=cli[_0x206828(0xe3)];try{const {correctFlags:_0x55b058}=await import('./framework/preparse.js'),_0x288d74=getAllDefinitions()[_0x206828(0xd2)](_0x5c7570=>_0x5c7570[_0x206828(0xe3)]??[]),{flags:_0x203e17,corrections:_0x442735}=_0x55b058(_0x5c82fe,_0x288d74);if(_0x442735[_0x206828(0xc6)]>0x0){for(const _0x5946cd of _0x442735){process[_0x206828(0xcf)][_0x206828(0xe8)](_0x206828(0xe5)+_0x5946cd[_0x206828(0xd8)]+_0x206828(0xc5)+_0x5946cd[_0x206828(0xe4)]+_0x206828(0xef)+_0x5946cd['corrected']+'\x0a');}Object[_0x206828(0xdf)](_0x5c82fe,_0x203e17);}}catch{}if(!_0x34e0ed){const {waitUntilExit:_0x52209d}=render(a0_0x54173c(Help,{}));await _0x52209d();return;}if(!isKnownService(_0x34e0ed)){const _0x3e69c3=resolveDynamicServiceCommand(cli[_0x206828(0xc9)],_0x5c82fe);if(_0x3e69c3){if(_0x5c82fe['help']){console[_0x206828(0xe0)](generateCommandHelp(_0x3e69c3[_0x206828(0xd5)]));return;}Object['assign'](_0x5c82fe,_0x3e69c3[_0x206828(0xe3)]);const _0x121ff3=buildConfigFromFlags(_0x5c82fe);await initGlobalEnvironment(_0x121ff3);const _0x1d3da3=createPipelineEnv(_0x121ff3,_0x5c82fe);_0x1d3da3['args']=_0x3e69c3['args'],await runCommand(_0x3e69c3[_0x206828(0xd5)],_0x1d3da3);return;}if(_0x5c82fe[_0x206828(0xd9)]){const _0x556986=generateDynamicServiceHelp(_0x34e0ed);if(_0x556986){console[_0x206828(0xe0)](_0x556986);return;}}const {waitUntilExit:_0x4e53f3}=render(a0_0x54173c(Help,{}));await _0x4e53f3();return;}const _0x5c1d34=getServiceEntry(_0x34e0ed);if(!_0x259c82){if(_0x5c82fe[_0x206828(0xd9)]){console[_0x206828(0xe0)](generateServiceHelp(_0x34e0ed));return;}if(_0x5c1d34[_0x206828(0xed)])_0x259c82=_0x5c1d34['defaultCommand'];else{console[_0x206828(0xe0)](generateServiceHelp(_0x34e0ed));return;}}const _0x49d819=findDefinition(_0x34e0ed,_0x259c82);!_0x49d819&&(console[_0x206828(0xe0)](generateServiceHelp(_0x34e0ed)),handleError(CliErrors[_0x206828(0xdd)](_0x34e0ed+'\x20'+_0x259c82)));if(_0x5c82fe[_0x206828(0xd9)]){console[_0x206828(0xe0)](generateCommandHelp(_0x49d819));return;}const _0x51fd8e=buildConfigFromFlags(_0x5c82fe);await initGlobalEnvironment(_0x51fd8e);const _0x50c24c=createPipelineEnv(_0x51fd8e,_0x5c82fe);_0x50c24c[_0x206828(0xf1)]=cli[_0x206828(0xc9)]['slice'](0x2),await runCommand(_0x49d819,_0x50c24c);}function handleError(_0x1a5d3f){const _0xb8e3b3=a0_0x5ae806;if(_0x1a5d3f instanceof CliError){_0x1a5d3f[_0xb8e3b3(0xea)]==='cancelled'&&(process['stderr'][_0xb8e3b3(0xe8)](_0xb8e3b3(0xcb)),process[_0xb8e3b3(0xe2)](0x0));console[_0xb8e3b3(0xde)](_0xb8e3b3(0xc7)+_0x1a5d3f[_0xb8e3b3(0xd7)]);if(_0x1a5d3f[_0xb8e3b3(0xee)])console[_0xb8e3b3(0xde)](_0xb8e3b3(0xdc)+_0x1a5d3f['hint']);process[_0xb8e3b3(0xe2)](_0x1a5d3f[_0xb8e3b3(0xe7)]);}isUserCancellation(_0x1a5d3f)&&(process['stderr'][_0xb8e3b3(0xe8)](_0xb8e3b3(0xcb)),process['exit'](0x0)),console[_0xb8e3b3(0xde)](_0xb8e3b3(0xca),_0x1a5d3f),process[_0xb8e3b3(0xe2)](0x1);}function isUserCancellation(_0x262674){const _0x54d90a=a0_0x5ae806;if(!(_0x262674 instanceof Error))return![];if(_0x262674[_0x54d90a(0xdb)]===_0x54d90a(0xe9))return!![];if(_0x262674['code']===_0x54d90a(0xd3))return!![];if(_0x262674[_0x54d90a(0xea)]===_0x54d90a(0xec))return!![];return![];}
2
+ (function(_0x28bfa4,_0xfdc24f){const _0x1aa540=a0_0x3634,_0x5d8d4a=_0x28bfa4();while(!![]){try{const _0x21a8f6=parseInt(_0x1aa540(0x100))/0x1+-parseInt(_0x1aa540(0x11b))/0x2*(parseInt(_0x1aa540(0x11a))/0x3)+parseInt(_0x1aa540(0x111))/0x4*(-parseInt(_0x1aa540(0x10a))/0x5)+parseInt(_0x1aa540(0x117))/0x6+parseInt(_0x1aa540(0x115))/0x7*(-parseInt(_0x1aa540(0xf9))/0x8)+-parseInt(_0x1aa540(0x10e))/0x9*(parseInt(_0x1aa540(0x11f))/0xa)+parseInt(_0x1aa540(0x10c))/0xb;if(_0x21a8f6===_0xfdc24f)break;else _0x5d8d4a['push'](_0x5d8d4a['shift']());}catch(_0x17dcdb){_0x5d8d4a['push'](_0x5d8d4a['shift']());}}}(a0_0x2094,0xe4deb));import{jsx as a0_0x3fca12}from'react/jsx-runtime';function a0_0x3634(_0x1e51c2,_0x390e04){_0x1e51c2=_0x1e51c2-0xf7;const _0x209490=a0_0x2094();let _0x363489=_0x209490[_0x1e51c2];return _0x363489;}import a0_0x4affb0 from'meow';import{render}from'ink';import{Help}from'./help.js';import{CliError,CliErrors}from'./errors.js';function a0_0x2094(){const _0x4ca0ce=['corrected','unknownCommand','original','\x0aCancelled.\x0a','definition','657235sTpKwD','exit','40896119tXLvLH','defaultCommand','52902ekkZOz','ERR_USE_AFTER_CLOSE','flatMap','44WCRCpJ','log','./framework/preparse.js','cancelled','42QuAqgR','assign','280644DjpzVn','stderr','help','84GyamKD','64012RkLGyO',':\x20--','Unexpected\x20error:','flags','1940MweJkw','code','args','ExitPromptError','message','224336Hthlwb','slice','write','error','name','hint','length','823517bBxnJx','[preparse]\x20','handler','input','Error:\x20'];a0_0x2094=function(){return _0x4ca0ce;};return a0_0x2094();}import{buildConfigFromFlags,initGlobalEnvironment}from'./context.js';import{isKnownService,getServiceEntry,findDefinition,getAllDefinitions}from'./commands/registry.js';import{generateDynamicServiceHelp,resolveDynamicServiceCommand}from'./commands/service/dynamic.js';import{runCommand,createPipelineEnv}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{buildMeowFlags}from'./constant/cli.js';import{getCliVersionDisplay}from'./utils/version.js';const helpText=generateFullHelp(),cli=a0_0x4affb0(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'version':getCliVersionDisplay()});void main()['catch'](handleError);async function main(){try{await run();}catch(_0x2ed937){handleError(_0x2ed937);}}async function run(){const _0x12bb01=a0_0x3634;let _0x57ef59=cli[_0x12bb01(0x103)][0x0],_0x3307b4=cli[_0x12bb01(0x103)][0x1];const _0x2c3917=cli[_0x12bb01(0x11e)];try{const {correctFlags:_0x289d18}=await import(_0x12bb01(0x113)),_0x8b5263=getAllDefinitions()[_0x12bb01(0x110)](_0x52e88b=>_0x52e88b[_0x12bb01(0x11e)]??[]),{flags:_0x505d8e,corrections:_0x435cfb}=_0x289d18(_0x2c3917,_0x8b5263);if(_0x435cfb[_0x12bb01(0xff)]>0x0){for(const _0x437151 of _0x435cfb){process[_0x12bb01(0x118)][_0x12bb01(0xfb)](_0x12bb01(0x101)+_0x437151[_0x12bb01(0x102)]+_0x12bb01(0x11c)+_0x437151[_0x12bb01(0x107)]+'\x20->\x20--'+_0x437151[_0x12bb01(0x105)]+'\x0a');}Object['assign'](_0x2c3917,_0x505d8e);}}catch{}if(!_0x57ef59){const {waitUntilExit:_0xb12644}=render(a0_0x3fca12(Help,{}));await _0xb12644();return;}if(!isKnownService(_0x57ef59)){const _0x25be76=resolveDynamicServiceCommand(cli[_0x12bb01(0x103)],_0x2c3917);if(_0x25be76){if(_0x2c3917[_0x12bb01(0x119)]){console[_0x12bb01(0x112)](generateCommandHelp(_0x25be76[_0x12bb01(0x109)]));return;}Object[_0x12bb01(0x116)](_0x2c3917,_0x25be76[_0x12bb01(0x11e)]);const _0x325b41=buildConfigFromFlags(_0x2c3917);await initGlobalEnvironment(_0x325b41);const _0x5c3fab=createPipelineEnv(_0x325b41,_0x2c3917);_0x5c3fab[_0x12bb01(0x121)]=_0x25be76['args'],await runCommand(_0x25be76[_0x12bb01(0x109)],_0x5c3fab);return;}if(_0x2c3917[_0x12bb01(0x119)]){const _0x44948a=generateDynamicServiceHelp(_0x57ef59);if(_0x44948a){console[_0x12bb01(0x112)](_0x44948a);return;}}const {waitUntilExit:_0x319fed}=render(a0_0x3fca12(Help,{}));await _0x319fed();return;}const _0x209e64=getServiceEntry(_0x57ef59);if(!_0x3307b4){if(_0x2c3917[_0x12bb01(0x119)]){console['log'](generateServiceHelp(_0x57ef59));return;}if(_0x209e64['defaultCommand'])_0x3307b4=_0x209e64[_0x12bb01(0x10d)];else{console[_0x12bb01(0x112)](generateServiceHelp(_0x57ef59));return;}}const _0x194588=findDefinition(_0x57ef59,_0x3307b4);!_0x194588&&(console[_0x12bb01(0x112)](generateServiceHelp(_0x57ef59)),handleError(CliErrors[_0x12bb01(0x106)](_0x57ef59+'\x20'+_0x3307b4)));if(_0x2c3917['help']){console['log'](generateCommandHelp(_0x194588));return;}const _0x5bdd15=buildConfigFromFlags(_0x2c3917);await initGlobalEnvironment(_0x5bdd15);const _0x433dea=createPipelineEnv(_0x5bdd15,_0x2c3917);_0x433dea[_0x12bb01(0x121)]=cli['input'][_0x12bb01(0xfa)](0x2),await runCommand(_0x194588,_0x433dea);}function handleError(_0x309b6d){const _0x4a2bfe=a0_0x3634;if(_0x309b6d instanceof CliError){_0x309b6d[_0x4a2bfe(0x120)]===_0x4a2bfe(0x114)&&(process[_0x4a2bfe(0x118)]['write']('\x0aCancelled.\x0a'),process[_0x4a2bfe(0x10b)](0x0));console[_0x4a2bfe(0xfc)](_0x4a2bfe(0x104)+_0x309b6d[_0x4a2bfe(0xf8)]);if(_0x309b6d[_0x4a2bfe(0xfe)])console[_0x4a2bfe(0xfc)]('Hint:\x20'+_0x309b6d[_0x4a2bfe(0xfe)]);process[_0x4a2bfe(0x10b)](_0x309b6d['exitCode']);}isUserCancellation(_0x309b6d)&&(process[_0x4a2bfe(0x118)][_0x4a2bfe(0xfb)](_0x4a2bfe(0x108)),process[_0x4a2bfe(0x10b)](0x0)),console[_0x4a2bfe(0xfc)](_0x4a2bfe(0x11d),_0x309b6d),process[_0x4a2bfe(0x10b)](0x1);}function isUserCancellation(_0x450356){const _0x301043=a0_0x3634;if(!(_0x450356 instanceof Error))return![];if(_0x450356[_0x301043(0xfd)]===_0x301043(0xf7))return!![];if(_0x450356[_0x301043(0x120)]===_0x301043(0x10f))return!![];if(_0x450356['code']==='ERR_STREAM_DESTROYED')return!![];return![];}
@@ -1 +1 @@
1
- const a1_0x1ec696=a1_0x2b91;(function(_0x4e956c,_0x2a55da){const _0x1ffa31=a1_0x2b91,_0x148576=_0x4e956c();while(!![]){try{const _0x118a5b=parseInt(_0x1ffa31(0x222))/0x1+-parseInt(_0x1ffa31(0x236))/0x2+parseInt(_0x1ffa31(0x1f1))/0x3*(parseInt(_0x1ffa31(0x1cd))/0x4)+parseInt(_0x1ffa31(0x234))/0x5+-parseInt(_0x1ffa31(0x1e6))/0x6+parseInt(_0x1ffa31(0x21a))/0x7*(-parseInt(_0x1ffa31(0x239))/0x8)+-parseInt(_0x1ffa31(0x1fe))/0x9*(-parseInt(_0x1ffa31(0x235))/0xa);if(_0x118a5b===_0x2a55da)break;else _0x148576['push'](_0x148576['shift']());}catch(_0x421d79){_0x148576['push'](_0x148576['shift']());}}}(a1_0x2b31,0x90296));import{CliErrors}from'../../errors.js';function a1_0x2b91(_0x4c85e5,_0x2fb392){_0x4c85e5=_0x4c85e5-0x1cd;const _0x2b31bb=a1_0x2b31();let _0x2b915f=_0x2b31bb[_0x4c85e5];return _0x2b915f;}const CATEGORY_FLAG={'name':a1_0x1ec696(0x1d8),'type':a1_0x1ec696(0x1f8),'description':'Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset'},KEYWORD_FLAG={'name':a1_0x1ec696(0x1d1),'type':a1_0x1ec696(0x1f8),'description':a1_0x1ec696(0x219)},DOC_CODE_FLAG={'name':'code','type':a1_0x1ec696(0x1f8),'required':!![],'description':a1_0x1ec696(0x224)},DOCS=[{'code':a1_0x1ec696(0x1e7),'category':a1_0x1ec696(0x22f),'title':a1_0x1ec696(0x229),'method':'POST','path':a1_0x1ec696(0x203),'summary':a1_0x1ec696(0x1f9),'whenToUse':'需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','pathParams':[],'queryParams':[],'bodySchema':a1_0x1ec696(0x1ef),'responseHighlights':[a1_0x1ec696(0x201),'paging.totalCount\x20gives\x20total\x20rows'],'examples':[a1_0x1ec696(0x210)],'notes':[a1_0x1ec696(0x218)],'markdown':['##\x20List\x20datasets','','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.']['join']('\x0a')},{'code':a1_0x1ec696(0x21d),'category':'dataset','title':a1_0x1ec696(0x1e4),'method':a1_0x1ec696(0x231),'path':a1_0x1ec696(0x1d6),'summary':a1_0x1ec696(0x1e8),'whenToUse':a1_0x1ec696(0x1e3),'pathParams':[],'queryParams':[{'name':a1_0x1ec696(0x209),'description':a1_0x1ec696(0x204)}],'bodySchema':a1_0x1ec696(0x233),'responseHighlights':[a1_0x1ec696(0x206),a1_0x1ec696(0x1dc),'operations\x20describes\x20runtime\x20APIs'],'examples':['lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>'],'notes':[a1_0x1ec696(0x223)],'markdown':[a1_0x1ec696(0x1fa),'','Inspect\x20field\x20names,\x20relations,\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.']['join']('\x0a')},{'code':a1_0x1ec696(0x1ed),'category':'dataset','title':a1_0x1ec696(0x1d9),'method':a1_0x1ec696(0x1dd),'path':a1_0x1ec696(0x1ce),'summary':a1_0x1ec696(0x212),'whenToUse':a1_0x1ec696(0x1f0),'pathParams':[{'name':'appCode','description':a1_0x1ec696(0x1df)},{'name':'datasetCode','description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':a1_0x1ec696(0x220),'responseHighlights':['tableData\x20contains\x20records',a1_0x1ec696(0x226)],'examples':[a1_0x1ec696(0x1eb)],'notes':[a1_0x1ec696(0x237)],'markdown':[a1_0x1ec696(0x208),'','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.']['join']('\x0a')},{'code':a1_0x1ec696(0x20b),'category':a1_0x1ec696(0x22f),'title':a1_0x1ec696(0x1d0),'method':a1_0x1ec696(0x1dd),'path':'/api/{appCode}/{datasetCode}/aggregate','summary':a1_0x1ec696(0x1e0),'whenToUse':a1_0x1ec696(0x23a),'pathParams':[{'name':a1_0x1ec696(0x1d5),'description':a1_0x1ec696(0x1df)},{'name':'datasetCode','description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':a1_0x1ec696(0x1e9),'responseHighlights':['result\x20rows\x20contain\x20aggregate\x20aliases',a1_0x1ec696(0x1cf)],'examples':[a1_0x1ec696(0x238)],'notes':['Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.','`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.'],'markdown':[a1_0x1ec696(0x1f3),'','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.']['join']('\x0a')},{'code':a1_0x1ec696(0x207),'category':a1_0x1ec696(0x22f),'title':a1_0x1ec696(0x20a),'method':a1_0x1ec696(0x1dd),'path':a1_0x1ec696(0x21b),'summary':a1_0x1ec696(0x202),'whenToUse':'已经知道记录\x20id,需要按数据集读取单条业务数据时使用','pathParams':[{'name':a1_0x1ec696(0x1d5),'description':a1_0x1ec696(0x1df)},{'name':a1_0x1ec696(0x1fd),'description':a1_0x1ec696(0x204)}],'queryParams':[],'bodySchema':a1_0x1ec696(0x1ff),'responseHighlights':[a1_0x1ec696(0x232)],'examples':[a1_0x1ec696(0x1f6)],'notes':[a1_0x1ec696(0x1e1)],'markdown':a1_0x1ec696(0x228)},{'code':a1_0x1ec696(0x214),'category':a1_0x1ec696(0x22f),'title':a1_0x1ec696(0x1ea),'method':a1_0x1ec696(0x1dd),'path':a1_0x1ec696(0x21c),'summary':'创建数据','whenToUse':a1_0x1ec696(0x22e),'pathParams':[{'name':a1_0x1ec696(0x1d5),'description':a1_0x1ec696(0x1df)},{'name':'datasetCode','description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':a1_0x1ec696(0x213),'responseHighlights':[a1_0x1ec696(0x1db)],'examples':['lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27'],'notes':[a1_0x1ec696(0x200)],'markdown':'##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.'},{'code':'bf_function_list','category':'bf','title':'List\x20BF\x20endpoint\x20functions','method':a1_0x1ec696(0x231),'path':a1_0x1ec696(0x1d2),'summary':'获取应用下可调用的\x20BF\x20函数列表','whenToUse':a1_0x1ec696(0x221),'pathParams':[{'name':a1_0x1ec696(0x1d5),'description':'Current\x20app\x20code'}],'queryParams':[],'bodySchema':'None','responseHighlights':['Returns\x20endpoint\x20functionName/id/description'],'examples':[a1_0x1ec696(0x22c)],'notes':[a1_0x1ec696(0x225)],'markdown':a1_0x1ec696(0x227)},{'code':a1_0x1ec696(0x22b),'category':'bf','title':'Execute\x20BF\x20endpoint\x20function','method':a1_0x1ec696(0x1dd),'path':'/api/endpoint/{appCode}/{scriptName}','summary':'执行指定\x20BF\x20函数','whenToUse':'已经确认目标\x20BF\x20的\x20scriptName,且需要实际调用该\x20ENDPOINT\x20脚本完成业务操作时使用','pathParams':[{'name':a1_0x1ec696(0x1d5),'description':a1_0x1ec696(0x1df)},{'name':'scriptName','description':a1_0x1ec696(0x1fc)}],'queryParams':[],'bodySchema':a1_0x1ec696(0x1f4),'responseHighlights':[a1_0x1ec696(0x23b)],'examples':[a1_0x1ec696(0x216)],'notes':[a1_0x1ec696(0x20c)],'markdown':a1_0x1ec696(0x217)},{'code':a1_0x1ec696(0x1f2),'category':a1_0x1ec696(0x21e),'title':a1_0x1ec696(0x1d4),'method':a1_0x1ec696(0x1dd),'path':a1_0x1ec696(0x211),'summary':a1_0x1ec696(0x21f),'whenToUse':'已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','pathParams':[],'queryParams':[],'bodySchema':'{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','responseHighlights':[a1_0x1ec696(0x1e5)],'examples':[a1_0x1ec696(0x22a)],'notes':[a1_0x1ec696(0x1da)],'markdown':a1_0x1ec696(0x20e)}];function entrySummary(_0x33700a){const _0x383417=a1_0x1ec696;return{'code':_0x33700a['code'],'category':_0x33700a[_0x383417(0x1d8)],'method':_0x33700a['method'],'path':_0x33700a[_0x383417(0x215)],'summary':_0x33700a[_0x383417(0x1fb)],'whenToUse':_0x33700a[_0x383417(0x1de)]};}export function listApiDocEntries(_0x1aaf0d={}){const _0x480a6b=a1_0x1ec696,_0x2834bf=String(_0x1aaf0d[_0x480a6b(0x1d8)]||'')[_0x480a6b(0x1d3)](),_0x4a7e5b=String(_0x1aaf0d[_0x480a6b(0x1d1)]||'')['trim']()[_0x480a6b(0x20d)]();return DOCS[_0x480a6b(0x22d)](_0x22fd7b=>{const _0x1974c8=_0x480a6b;if(_0x2834bf&&_0x22fd7b['category']!==_0x2834bf)return![];if(!_0x4a7e5b)return!![];return[_0x22fd7b[_0x1974c8(0x209)],_0x22fd7b[_0x1974c8(0x1d8)],_0x22fd7b['method'],_0x22fd7b[_0x1974c8(0x215)],_0x22fd7b[_0x1974c8(0x1fb)],_0x22fd7b['whenToUse'],_0x22fd7b['title']][_0x1974c8(0x1e2)]('\x20')[_0x1974c8(0x20d)]()['includes'](_0x4a7e5b);})['map'](entrySummary);}export function getApiDocDetail(_0x468ecc){const _0xfc2920=a1_0x1ec696,_0x56403b=DOCS['find'](_0x56c6be=>_0x56c6be[_0xfc2920(0x209)]===_0x468ecc);if(!_0x56403b)throw CliErrors[_0xfc2920(0x1d7)]('API\x20doc\x20code\x20not\x20found:\x20'+_0x468ecc);return{..._0x56403b};}const apiDocList={'service':a1_0x1ec696(0x1ec),'command':a1_0x1ec696(0x1ee),'description':a1_0x1ec696(0x1f7),'risk':a1_0x1ec696(0x1f5),'requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0x2d02a9){const _0x1a48f8=a1_0x1ec696,_0x168718=listApiDocEntries({'category':_0x2d02a9[_0x1a48f8(0x230)](_0x1a48f8(0x1d8)),'keyword':_0x2d02a9['str'](_0x1a48f8(0x1d1))});return{'ok':!![],'data':{'total':_0x168718['length'],'items':_0x168718}};}},apiDocDetail={'service':a1_0x1ec696(0x1ec),'command':a1_0x1ec696(0x20f),'description':a1_0x1ec696(0x205),'risk':a1_0x1ec696(0x1f5),'requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0x23c222){const _0x4361bf=a1_0x1ec696;return{'ok':!![],'data':getApiDocDetail(_0x23c222[_0x4361bf(0x230)](_0x4361bf(0x209)))};}};function a1_0x2b31(){const _0x4eb559=['32-character\x20dataset\x20code','Show\x20runtime\x20API\x20documentation\x20by\x20code','fields/properties\x20describe\x20data\x20shape','dataset_data_get_one','##\x20Filter\x20dataset\x20data','code','Get\x20one\x20dataset\x20record','dataset_data_aggregate','Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.','toLowerCase','##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.','detail','lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress','/api/custom/executeSql','条件过滤查询数据','{\x22fieldName\x22:\x22value\x22}','dataset_data_create','path','lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27','##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.','CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.','Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text','7tfFJLw','/api/{appCode}/{datasetCode}/getOne','/api/{appCode}/{datasetCode}/create','dataset_detail','custom_sql','执行自定义\x20SQL','{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','需要先确认当前应用有哪些可执行的\x20BF/ENDPOINT\x20函数,以及收敛可用\x20scriptName\x20时使用','922282VBjcjA','If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.','API\x20doc\x20code,\x20for\x20example\x20dataset_list','CLI\x20has\x20typed\x20`bff\x20detail`\x20and\x20`bff\x20exec`\x20commands\x20for\x20endpoint\x20scripts.','paging\x20contains\x20pagination','##\x20List\x20BF\x20endpoint\x20functions\x0a\x0aDiscover\x20executable\x20endpoint\x20functions.','##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.','List\x20datasets','lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27','bf_execute','lovrabet\x20bff\x20detail\x20--id\x20<scriptId>\x20--appcode\x20<appCode>','filter','需要向指定数据集新增一条业务数据时使用','dataset','str','GET','Returns\x20one\x20matching\x20business\x20record','None','2747925uRoQIh','996680UasFMM','817476bcDECt','Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.','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','8831008PrRXiL','需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用','Returns\x20script\x20business\x20payload','668XRavqv','/api/{appCode}/{datasetCode}/filter','where\x20filters\x20before\x20aggregation','Aggregate\x20dataset\x20data','keyword','/api/endpoint/{appCode}/functions','trim','Execute\x20custom\x20SQL','appCode','/api/dataset/getOneByCode?code={datasetCode}','validation','category','Filter\x20dataset\x20data','Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.','Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result','relations\x20contains\x20the\x20object-shaped\x20API\x20relations\x20value\x20when\x20returned','POST','whenToUse','Current\x20app\x20code','聚合查询数据集数据','Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.','join','需要按数据集\x20code\x20获取字段、表信息、关联关系(relations)或操作定义时使用','Dataset\x20detail','Returns\x20SQL\x20execution\x20payload','1678212IpXauH','dataset_list','获取数据集详情','{\x22aggregate\x22:[{\x22column\x22:\x20\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','Create\x20dataset\x20record','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:5}\x27','api-doc','dataset_data_filter','list','{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','需要携带\x20where、orderBy、分页等条件读取业务数据时使用','3831PbTxAD','custom_sql_execute','##\x20Aggregate\x20dataset\x20data','{\x22param\x22:\x22value\x22}','read','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27','List\x20available\x20runtime\x20API\x20documentation\x20entries','string','分页获取数据集列表','##\x20Dataset\x20detail','summary','Endpoint\x20function\x20name','datasetCode','63uRENJS','{\x22id\x22:123}','This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.','tableData\x20contains\x20dataset\x20id/code/name','查询单条数据','/api/dataset/get-dataset-list-by-app-code'];a1_0x2b31=function(){return _0x4eb559;};return a1_0x2b31();}export const apiDocDefinitions=[apiDocList,apiDocDetail];
1
+ const a1_0x598b1c=a1_0x5ea5;function a1_0x5ea5(_0x1c1ab9,_0x3da796){_0x1c1ab9=_0x1c1ab9-0x88;const _0x197b53=a1_0x197b();let _0x5ea5f0=_0x197b53[_0x1c1ab9];return _0x5ea5f0;}(function(_0x4ed977,_0xb66dbe){const _0x46d565=a1_0x5ea5,_0x18e021=_0x4ed977();while(!![]){try{const _0x57cc13=-parseInt(_0x46d565(0x8d))/0x1+-parseInt(_0x46d565(0xd2))/0x2+-parseInt(_0x46d565(0xa9))/0x3*(parseInt(_0x46d565(0xdf))/0x4)+-parseInt(_0x46d565(0x88))/0x5*(parseInt(_0x46d565(0xee))/0x6)+-parseInt(_0x46d565(0x90))/0x7*(-parseInt(_0x46d565(0xfd))/0x8)+-parseInt(_0x46d565(0xd1))/0x9*(-parseInt(_0x46d565(0xb0))/0xa)+parseInt(_0x46d565(0xc7))/0xb;if(_0x57cc13===_0xb66dbe)break;else _0x18e021['push'](_0x18e021['shift']());}catch(_0x5b6e0f){_0x18e021['push'](_0x18e021['shift']());}}}(a1_0x197b,0xbf40a));import{CliErrors}from'../../errors.js';const CATEGORY_FLAG={'name':a1_0x598b1c(0xcd),'type':a1_0x598b1c(0xf4),'description':a1_0x598b1c(0xb6)},KEYWORD_FLAG={'name':a1_0x598b1c(0xb3),'type':a1_0x598b1c(0xf4),'description':a1_0x598b1c(0x8a)},DOC_CODE_FLAG={'name':'code','type':a1_0x598b1c(0xf4),'required':!![],'description':a1_0x598b1c(0xed)},DOCS=[{'code':a1_0x598b1c(0x9e),'category':'dataset','title':'List\x20datasets','method':a1_0x598b1c(0xe7),'path':'/api/dataset/get-dataset-list-by-app-code','summary':a1_0x598b1c(0xe5),'whenToUse':a1_0x598b1c(0xc8),'pathParams':[],'queryParams':[],'bodySchema':a1_0x598b1c(0x9f),'responseHighlights':[a1_0x598b1c(0xe3),a1_0x598b1c(0xde)],'examples':['lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress'],'notes':[a1_0x598b1c(0xbf)],'markdown':[a1_0x598b1c(0xe9),'',a1_0x598b1c(0x98)][a1_0x598b1c(0xab)]('\x0a')},{'code':a1_0x598b1c(0xe1),'category':a1_0x598b1c(0xff),'title':'Dataset\x20detail','method':a1_0x598b1c(0xbc),'path':a1_0x598b1c(0xd3),'summary':a1_0x598b1c(0xc6),'whenToUse':a1_0x598b1c(0xb8),'pathParams':[],'queryParams':[{'name':a1_0x598b1c(0xb9),'description':a1_0x598b1c(0xcc)}],'bodySchema':a1_0x598b1c(0xc1),'responseHighlights':['fields/properties\x20describe\x20data\x20shape','relations\x20contains\x20the\x20object-shaped\x20API\x20relations\x20value\x20when\x20returned',a1_0x598b1c(0xbd)],'examples':['lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>'],'notes':[a1_0x598b1c(0x96)],'markdown':[a1_0x598b1c(0xc9),'',a1_0x598b1c(0xf5)][a1_0x598b1c(0xab)]('\x0a')},{'code':a1_0x598b1c(0x100),'category':'dataset','title':a1_0x598b1c(0xda),'method':a1_0x598b1c(0xe7),'path':a1_0x598b1c(0xea),'summary':a1_0x598b1c(0xe4),'whenToUse':a1_0x598b1c(0x94),'pathParams':[{'name':a1_0x598b1c(0xaf),'description':a1_0x598b1c(0x9c)},{'name':a1_0x598b1c(0xc5),'description':a1_0x598b1c(0xcc)}],'queryParams':[],'bodySchema':a1_0x598b1c(0xdc),'responseHighlights':['tableData\x20contains\x20records',a1_0x598b1c(0xb2)],'examples':[a1_0x598b1c(0xe6)],'notes':[a1_0x598b1c(0xa8)],'markdown':[a1_0x598b1c(0xf8),'',a1_0x598b1c(0x8c)]['join']('\x0a')},{'code':a1_0x598b1c(0xf3),'category':'dataset','title':'Aggregate\x20dataset\x20data','method':a1_0x598b1c(0xe7),'path':'/api/{appCode}/{datasetCode}/aggregate','summary':a1_0x598b1c(0xf6),'whenToUse':'需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用','pathParams':[{'name':a1_0x598b1c(0xaf),'description':'Current\x20app\x20code'},{'name':'datasetCode','description':a1_0x598b1c(0xcc)}],'queryParams':[],'bodySchema':'{\x22aggregate\x22:[{\x22column\x22:\x20\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','responseHighlights':['result\x20rows\x20contain\x20aggregate\x20aliases',a1_0x598b1c(0xd9)],'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_0x598b1c(0xb4),a1_0x598b1c(0xcb)],'markdown':['##\x20Aggregate\x20dataset\x20data','','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.'][a1_0x598b1c(0xab)]('\x0a')},{'code':a1_0x598b1c(0xc4),'category':a1_0x598b1c(0xff),'title':a1_0x598b1c(0x8e),'method':a1_0x598b1c(0xe7),'path':a1_0x598b1c(0x93),'summary':'查询单条数据','whenToUse':a1_0x598b1c(0xf1),'pathParams':[{'name':a1_0x598b1c(0xaf),'description':a1_0x598b1c(0x9c)},{'name':a1_0x598b1c(0xc5),'description':a1_0x598b1c(0xcc)}],'queryParams':[],'bodySchema':a1_0x598b1c(0xb5),'responseHighlights':[a1_0x598b1c(0xf2)],'examples':[a1_0x598b1c(0xa1)],'notes':[a1_0x598b1c(0xd6)],'markdown':a1_0x598b1c(0xec)},{'code':a1_0x598b1c(0x89),'category':'dataset','title':'Create\x20dataset\x20record','method':a1_0x598b1c(0xe7),'path':a1_0x598b1c(0x95),'summary':'创建数据','whenToUse':a1_0x598b1c(0xd7),'pathParams':[{'name':a1_0x598b1c(0xaf),'description':a1_0x598b1c(0x9c)},{'name':a1_0x598b1c(0xc5),'description':a1_0x598b1c(0xcc)}],'queryParams':[],'bodySchema':a1_0x598b1c(0x9d),'responseHighlights':[a1_0x598b1c(0xe2)],'examples':['lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27'],'notes':[a1_0x598b1c(0xc3)],'markdown':a1_0x598b1c(0xbb)},{'code':a1_0x598b1c(0xa4),'category':'bf','title':a1_0x598b1c(0x9a),'method':a1_0x598b1c(0xbc),'path':'/api/endpoint/{appCode}/functions','summary':a1_0x598b1c(0x92),'whenToUse':a1_0x598b1c(0xa5),'pathParams':[{'name':'appCode','description':a1_0x598b1c(0x9c)}],'queryParams':[],'bodySchema':'None','responseHighlights':[a1_0x598b1c(0xc2)],'examples':['lovrabet\x20bff\x20detail\x20--id\x20<scriptId>\x20--appcode\x20<appCode>'],'notes':[a1_0x598b1c(0xf9)],'markdown':a1_0x598b1c(0x9b)},{'code':a1_0x598b1c(0xef),'category':'bf','title':a1_0x598b1c(0x8f),'method':'POST','path':a1_0x598b1c(0xae),'summary':a1_0x598b1c(0xa0),'whenToUse':a1_0x598b1c(0xd0),'pathParams':[{'name':a1_0x598b1c(0xaf),'description':'Current\x20app\x20code'},{'name':a1_0x598b1c(0xa6),'description':a1_0x598b1c(0xdd)}],'queryParams':[],'bodySchema':a1_0x598b1c(0xeb),'responseHighlights':[a1_0x598b1c(0xfb)],'examples':[a1_0x598b1c(0xca)],'notes':['Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.'],'markdown':a1_0x598b1c(0xa3)},{'code':'custom_sql_execute','category':'custom_sql','title':a1_0x598b1c(0xbe),'method':a1_0x598b1c(0xe7),'path':a1_0x598b1c(0xa7),'summary':a1_0x598b1c(0xce),'whenToUse':'已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','pathParams':[],'queryParams':[],'bodySchema':a1_0x598b1c(0xfe),'responseHighlights':[a1_0x598b1c(0x99)],'examples':[a1_0x598b1c(0xe0)],'notes':[a1_0x598b1c(0xba)],'markdown':a1_0x598b1c(0xf0)}];function entrySummary(_0x4bcdb7){const _0x2230f2=a1_0x598b1c;return{'code':_0x4bcdb7[_0x2230f2(0xb9)],'category':_0x4bcdb7[_0x2230f2(0xcd)],'method':_0x4bcdb7[_0x2230f2(0xad)],'path':_0x4bcdb7['path'],'summary':_0x4bcdb7[_0x2230f2(0xb7)],'whenToUse':_0x4bcdb7[_0x2230f2(0xfa)]};}export function listApiDocEntries(_0x423edf={}){const _0x500fe1=a1_0x598b1c,_0xec086b=String(_0x423edf[_0x500fe1(0xcd)]||'')[_0x500fe1(0xc0)](),_0x3efb94=String(_0x423edf[_0x500fe1(0xb3)]||'')[_0x500fe1(0xc0)]()[_0x500fe1(0xf7)]();return DOCS[_0x500fe1(0xdb)](_0x96e36c=>{const _0x29924f=_0x500fe1;if(_0xec086b&&_0x96e36c['category']!==_0xec086b)return![];if(!_0x3efb94)return!![];return[_0x96e36c[_0x29924f(0xb9)],_0x96e36c['category'],_0x96e36c['method'],_0x96e36c[_0x29924f(0x8b)],_0x96e36c['summary'],_0x96e36c['whenToUse'],_0x96e36c['title']]['join']('\x20')[_0x29924f(0xf7)]()[_0x29924f(0xac)](_0x3efb94);})[_0x500fe1(0xa2)](entrySummary);}export function getApiDocDetail(_0x1781d1){const _0x8280b8=a1_0x598b1c,_0x3dfe6c=DOCS[_0x8280b8(0xaa)](_0x57f218=>_0x57f218[_0x8280b8(0xb9)]===_0x1781d1);if(!_0x3dfe6c)throw CliErrors[_0x8280b8(0xcf)]('API\x20doc\x20code\x20not\x20found:\x20'+_0x1781d1);return{..._0x3dfe6c};}const apiDocList={'service':a1_0x598b1c(0xe8),'command':a1_0x598b1c(0x91),'description':a1_0x598b1c(0xfc),'risk':a1_0x598b1c(0x97),'requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0x44d56a){const _0x53f474=a1_0x598b1c,_0x24128c=listApiDocEntries({'category':_0x44d56a[_0x53f474(0xd5)](_0x53f474(0xcd)),'keyword':_0x44d56a[_0x53f474(0xd5)](_0x53f474(0xb3))});return{'ok':!![],'data':{'total':_0x24128c[_0x53f474(0xb1)],'items':_0x24128c}};}},apiDocDetail={'service':a1_0x598b1c(0xe8),'command':a1_0x598b1c(0xd4),'description':a1_0x598b1c(0xd8),'risk':'read','requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0x26a854){const _0x3cdbab=a1_0x598b1c;return{'ok':!![],'data':getApiDocDetail(_0x26a854[_0x3cdbab(0xd5)](_0x3cdbab(0xb9)))};}};export const apiDocDefinitions=[apiDocList,apiDocDetail];function a1_0x197b(){const _0x1bd222=['dataset_data_aggregate','string','Inspect\x20field\x20names,\x20relations,\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.','聚合查询数据集数据','toLowerCase','##\x20Filter\x20dataset\x20data','CLI\x20has\x20typed\x20`bff\x20detail`\x20and\x20`bff\x20exec`\x20commands\x20for\x20endpoint\x20scripts.','whenToUse','Returns\x20script\x20business\x20payload','List\x20available\x20runtime\x20API\x20documentation\x20entries','558344yyLmGZ','{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','dataset','dataset_data_filter','45ilHrIw','dataset_data_create','Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text','path','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.','620829TKlEBz','Get\x20one\x20dataset\x20record','Execute\x20BF\x20endpoint\x20function','91miaYZS','list','获取应用下可调用的\x20BF\x20函数列表','/api/{appCode}/{datasetCode}/getOne','需要携带\x20where、orderBy、分页等条件读取业务数据时使用','/api/{appCode}/{datasetCode}/create','If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.','read','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.','Returns\x20SQL\x20execution\x20payload','List\x20BF\x20endpoint\x20functions','##\x20List\x20BF\x20endpoint\x20functions\x0a\x0aDiscover\x20executable\x20endpoint\x20functions.','Current\x20app\x20code','{\x22fieldName\x22:\x22value\x22}','dataset_list','{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','执行指定\x20BF\x20函数','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27','map','##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.','bf_function_list','需要先确认当前应用有哪些可执行的\x20BF/ENDPOINT\x20函数,以及收敛可用\x20scriptName\x20时使用','scriptName','/api/custom/executeSql','Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.','3Gdvwzz','find','join','includes','method','/api/endpoint/{appCode}/{scriptName}','appCode','20UMnyfw','length','paging\x20contains\x20pagination','keyword','Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.','{\x22id\x22:123}','Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset','summary','需要按数据集\x20code\x20获取字段、表信息、关联关系(relations)或操作定义时使用','code','Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.','##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.','GET','operations\x20describes\x20runtime\x20APIs','Execute\x20custom\x20SQL','CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.','trim','None','Returns\x20endpoint\x20functionName/id/description','This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.','dataset_data_get_one','datasetCode','获取数据集详情','17743748kgiVTL','需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','##\x20Dataset\x20detail','lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27','`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','32-character\x20dataset\x20code','category','执行自定义\x20SQL','validation','已经确认目标\x20BF\x20的\x20scriptName,且需要实际调用该\x20ENDPOINT\x20脚本完成业务操作时使用','6775074GOAJyp','3038268WFVCDZ','/api/dataset/getOneByCode?code={datasetCode}','detail','str','Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.','需要向指定数据集新增一条业务数据时使用','Show\x20runtime\x20API\x20documentation\x20by\x20code','where\x20filters\x20before\x20aggregation','Filter\x20dataset\x20data','filter','{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','Endpoint\x20function\x20name','paging.totalCount\x20gives\x20total\x20rows','4011980qxQGnq','lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27','dataset_detail','Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result','tableData\x20contains\x20dataset\x20id/code/name','条件过滤查询数据','分页获取数据集列表','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:5}\x27','POST','api-doc','##\x20List\x20datasets','/api/{appCode}/{datasetCode}/filter','{\x22param\x22:\x22value\x22}','##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.','API\x20doc\x20code,\x20for\x20example\x20dataset_list','66414yoDVnJ','bf_execute','##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.','已经知道记录\x20id,需要按数据集读取单条业务数据时使用','Returns\x20one\x20matching\x20business\x20record'];a1_0x197b=function(){return _0x1bd222;};return a1_0x197b();}
@@ -1 +1 @@
1
- function a2_0x5e74(){const _0x698ea0=['EACCES','unknown','309283LwsLHZ','23220zZfqcu','ak_','.tmp','8vxcwpT','trim','digest','items','265818DQiqHK','45SHLUhT','cache','35589CsKeIu','stringify','20XxiwMB','update','24ygMGdy','my-apps.json','931541GbnERV','sha256','utf8','isArray','620883paDImN','homeDirName','18IXZYCX','appName','appCode','code','parse','7spEBbT','170423uhmqoP','slice'];a2_0x5e74=function(){return _0x698ea0;};return a2_0x5e74();}(function(_0x1a9f3e,_0x1e9d90){const _0x13faa6=a2_0x2f3a,_0x338648=_0x1a9f3e();while(!![]){try{const _0x59db1d=parseInt(_0x13faa6(0xdb))/0x1+-parseInt(_0x13faa6(0xd1))/0x2*(parseInt(_0x13faa6(0xe6))/0x3)+-parseInt(_0x13faa6(0xdc))/0x4*(-parseInt(_0x13faa6(0xe4))/0x5)+-parseInt(_0x13faa6(0xe3))/0x6*(parseInt(_0x13faa6(0xd6))/0x7)+-parseInt(_0x13faa6(0xdf))/0x8*(-parseInt(_0x13faa6(0xcf))/0x9)+-parseInt(_0x13faa6(0xe8))/0xa*(-parseInt(_0x13faa6(0xd7))/0xb)+-parseInt(_0x13faa6(0xea))/0xc*(parseInt(_0x13faa6(0xcb))/0xd);if(_0x59db1d===_0x1e9d90)break;else _0x338648['push'](_0x338648['shift']());}catch(_0x1b65a5){_0x338648['push'](_0x338648['shift']());}}}(a2_0x5e74,0x28ccd));import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a2_0x2f3a(_0x3b5c0f,_0x4c8fd6){_0x3b5c0f=_0x3b5c0f-0xcb;const _0x5e7490=a2_0x5e74();let _0x2f3ae6=_0x5e7490[_0x3b5c0f];return _0x2f3ae6;}import{homedir}from'node:os';import{dirname,resolve}from'node:path';import{PRODUCT_CONFIG}from'../../constant/product.js';import{isRuntimeAccessibleApp}from'../../commands/app/eligibility.js';export function fingerprintAccessKey(_0x5c5cbe){const _0x550a13=a2_0x2f3a,_0x11ba29=_0x5c5cbe[_0x550a13(0xe0)](),_0x2573be=_0x11ba29[_0x550a13(0xd8)](-0x6)||_0x550a13(0xda),_0x3c3fa5=createHash(_0x550a13(0xcc))[_0x550a13(0xe9)](_0x11ba29)[_0x550a13(0xe1)]('hex')['slice'](0x0,0xc);return _0x550a13(0xdd)+_0x2573be+'_'+_0x3c3fa5;}export function getAppCacheFilePath(_0x37bd30,_0x2ea135){const _0x52bdbd=a2_0x2f3a;return resolve(homedir(),PRODUCT_CONFIG[_0x52bdbd(0xd0)],_0x52bdbd(0xe5),_0x37bd30,fingerprintAccessKey(_0x2ea135),_0x52bdbd(0xeb));}export function readCachedAppList(_0x5da317,_0x25c5e2){const _0xc67fa7=a2_0x2f3a;if(!_0x25c5e2?.[_0xc67fa7(0xe0)]())return null;const _0x1426f3=getAppCacheFilePath(_0x5da317,_0x25c5e2);if(!existsSync(_0x1426f3))return null;try{const _0x37767d=readFileSync(_0x1426f3,_0xc67fa7(0xcd));if(!_0x37767d[_0xc67fa7(0xe0)]())return null;const _0x3e2e15=JSON[_0xc67fa7(0xd5)](_0x37767d);if(!Array[_0xc67fa7(0xce)](_0x3e2e15[_0xc67fa7(0xe2)]))return null;return _0x3e2e15;}catch{return null;}}export function writeCachedAppList(_0x5f0586,_0x16123d,_0x237108){const _0x1aa5e0=a2_0x2f3a,_0x488b0f=getAppCacheFilePath(_0x5f0586,_0x16123d),_0x49d2d0=dirname(_0x488b0f);!existsSync(_0x49d2d0)&&mkdirSync(_0x49d2d0,{'recursive':!![]});const _0x533702=_0x488b0f+_0x1aa5e0(0xde);try{writeFileSync(_0x533702,JSON['stringify'](_0x237108,null,0x2)+'\x0a',{'encoding':_0x1aa5e0(0xcd),'mode':0x180});try{renameSync(_0x533702,_0x488b0f);}catch(_0x2d316f){if(_0x2d316f[_0x1aa5e0(0xd4)]==='EPERM'||_0x2d316f[_0x1aa5e0(0xd4)]==='EXDEV'||_0x2d316f[_0x1aa5e0(0xd4)]===_0x1aa5e0(0xd9)){writeFileSync(_0x488b0f,JSON[_0x1aa5e0(0xe7)](_0x237108,null,0x2)+'\x0a',{'encoding':_0x1aa5e0(0xcd)});try{unlinkSync(_0x533702);}catch{}}else throw _0x2d316f;}}catch(_0x4e9789){try{unlinkSync(_0x533702);}catch{}throw _0x4e9789;}return _0x488b0f;}export function resolveCachedAppCode(_0x5f2337,_0x3ee37e,_0x5d6a49){const _0x2971cc=a2_0x2f3a;if(!_0x5f2337)return undefined;const _0x8b9684=readCachedAppList(_0x3ee37e,_0x5d6a49),_0x2270af=_0x8b9684?.[_0x2971cc(0xe2)]['find'](_0x4a1ecc=>_0x4a1ecc[_0x2971cc(0xd2)]===_0x5f2337&&isRuntimeAccessibleApp(_0x4a1ecc));return _0x2270af?.[_0x2971cc(0xd3)]?.[_0x2971cc(0xe0)]()||undefined;}
1
+ (function(_0x13872d,_0x310463){const _0x4b737d=a2_0x60c0,_0x1b1e52=_0x13872d();while(!![]){try{const _0x3fca0b=-parseInt(_0x4b737d(0x1ac))/0x1+parseInt(_0x4b737d(0x1a3))/0x2+parseInt(_0x4b737d(0x1b1))/0x3+-parseInt(_0x4b737d(0x1a5))/0x4+parseInt(_0x4b737d(0x1b2))/0x5*(parseInt(_0x4b737d(0x1a4))/0x6)+parseInt(_0x4b737d(0x19c))/0x7+-parseInt(_0x4b737d(0x1a2))/0x8*(parseInt(_0x4b737d(0x1b4))/0x9);if(_0x3fca0b===_0x310463)break;else _0x1b1e52['push'](_0x1b1e52['shift']());}catch(_0x3c3083){_0x1b1e52['push'](_0x1b1e52['shift']());}}}(a2_0x17fb,0x37ba9));import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';import{dirname,resolve}from'node:path';import{PRODUCT_CONFIG}from'../../constant/product.js';import{isRuntimeAccessibleApp}from'../../commands/app/eligibility.js';export function fingerprintAccessKey(_0x5e87e8){const _0x457008=a2_0x60c0,_0xcf2227=_0x5e87e8[_0x457008(0x1ae)](),_0x29b2ac=_0xcf2227[_0x457008(0x1a7)](-0x6)||_0x457008(0x19b),_0x4e58f5=createHash(_0x457008(0x19f))[_0x457008(0x1ad)](_0xcf2227)['digest'](_0x457008(0x1a8))['slice'](0x0,0xc);return _0x457008(0x19e)+_0x29b2ac+'_'+_0x4e58f5;}export function getAppCacheFilePath(_0x261f67,_0x53b036){const _0x219eff=a2_0x60c0;return resolve(homedir(),PRODUCT_CONFIG['homeDirName'],_0x219eff(0x1a6),_0x261f67,fingerprintAccessKey(_0x53b036),_0x219eff(0x1a0));}function a2_0x60c0(_0x2f337,_0x594ddc){_0x2f337=_0x2f337-0x19b;const _0x17fb0d=a2_0x17fb();let _0x60c0af=_0x17fb0d[_0x2f337];return _0x60c0af;}function a2_0x17fb(){const _0x16581a=['utf8','680312eszgMu','418016btCGym','20166OAdlYm','714812ApnzpB','cache','slice','hex','parse','EXDEV','stringify','172193kBLpbD','update','trim','code','items','1279236xyvUOK','275XvdJfi','find','63WJgtvh','unknown','2479113lQxlyW','appCode','ak_','sha256','my-apps.json'];a2_0x17fb=function(){return _0x16581a;};return a2_0x17fb();}export function readCachedAppList(_0x441bdf,_0x49e67b){const _0x835522=a2_0x60c0;if(!_0x49e67b?.['trim']())return null;const _0x1820cc=getAppCacheFilePath(_0x441bdf,_0x49e67b);if(!existsSync(_0x1820cc))return null;try{const _0x44b10b=readFileSync(_0x1820cc,_0x835522(0x1a1));if(!_0x44b10b[_0x835522(0x1ae)]())return null;const _0x334f4f=JSON[_0x835522(0x1a9)](_0x44b10b);if(!Array['isArray'](_0x334f4f[_0x835522(0x1b0)]))return null;return _0x334f4f;}catch{return null;}}export function writeCachedAppList(_0x4f51b0,_0x1d6599,_0x16e2c8){const _0x83da7e=a2_0x60c0,_0x235466=getAppCacheFilePath(_0x4f51b0,_0x1d6599),_0x2cf6a5=dirname(_0x235466);!existsSync(_0x2cf6a5)&&mkdirSync(_0x2cf6a5,{'recursive':!![]});const _0xa942f1=_0x235466+'.tmp';try{writeFileSync(_0xa942f1,JSON[_0x83da7e(0x1ab)](_0x16e2c8,null,0x2)+'\x0a',{'encoding':_0x83da7e(0x1a1),'mode':0x180});try{renameSync(_0xa942f1,_0x235466);}catch(_0x291c7f){if(_0x291c7f[_0x83da7e(0x1af)]==='EPERM'||_0x291c7f[_0x83da7e(0x1af)]===_0x83da7e(0x1aa)||_0x291c7f[_0x83da7e(0x1af)]==='EACCES'){writeFileSync(_0x235466,JSON['stringify'](_0x16e2c8,null,0x2)+'\x0a',{'encoding':_0x83da7e(0x1a1)});try{unlinkSync(_0xa942f1);}catch{}}else throw _0x291c7f;}}catch(_0xf21772){try{unlinkSync(_0xa942f1);}catch{}throw _0xf21772;}return _0x235466;}export function resolveCachedAppCode(_0x32d27e,_0x42231b,_0x525125){const _0x53a1ff=a2_0x60c0;if(!_0x32d27e)return undefined;const _0x5cb390=readCachedAppList(_0x42231b,_0x525125),_0x303084=_0x5cb390?.[_0x53a1ff(0x1b0)][_0x53a1ff(0x1b3)](_0x3e252b=>_0x3e252b['appName']===_0x32d27e&&isRuntimeAccessibleApp(_0x3e252b));return _0x303084?.[_0x53a1ff(0x19d)]?.['trim']()||undefined;}
@@ -1 +1 @@
1
- const a3_0x7fb95=a3_0x5c27;(function(_0x249cf5,_0x4f7b1e){const _0x3bc865=a3_0x5c27,_0x2046db=_0x249cf5();while(!![]){try{const _0x42b867=-parseInt(_0x3bc865(0x162))/0x1+-parseInt(_0x3bc865(0x165))/0x2+parseInt(_0x3bc865(0x136))/0x3*(-parseInt(_0x3bc865(0x129))/0x4)+parseInt(_0x3bc865(0x14f))/0x5+-parseInt(_0x3bc865(0x151))/0x6+parseInt(_0x3bc865(0x12e))/0x7*(parseInt(_0x3bc865(0x15a))/0x8)+-parseInt(_0x3bc865(0x134))/0x9*(-parseInt(_0x3bc865(0x15b))/0xa);if(_0x42b867===_0x4f7b1e)break;else _0x2046db['push'](_0x2046db['shift']());}catch(_0x54327b){_0x2046db['push'](_0x2046db['shift']());}}}(a3_0x4974,0xc1f20));import{CliErrors}from'../../errors.js';function a3_0x4974(){const _0x16ff9f=['Include\x20unpublished\x20apps\x20for\x20diagnostics','join','Refreshed\x20app\x20cache\x20with\x20','globalPath','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','Default\x20app\x20candidate\x20set\x20to\x20\x22','remote','cache','Target\x20environment\x20(default:\x20current\x20env)','env','\x20cached\x20app(s)\x20for\x20env=\x22','envName','local','appName','../../context.js','appOwnerName','Remote\x20app\x20name\x20to\x20activate','push','cachePath','items','appCode','Missing\x20app\x20name.','from','Read\x20from\x20local\x20cache\x20only','trim','str','isCurrent','import','16540wBwumY','args','../../commands/app/cache.js','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','find','301vFBbDm','include-unpublished','length','langs','app','global','23147082vBUIxz','init','162kZFInh','source','appPublishStatus','appcode','Deprecated:\x20use\x20workspace\x20use\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','i18nInfo','accessKey','entries','read','pull','name','boolean','isArray','.appcode\x20to\x20.lovrabet.json.','\x20workspace\x20use\x20--app\x20<name>\x20[--env\x20daily]','nonInteractive','../../commands/app/remote-source.js','`\x20instead.','filter','bool','\x20app\x20','\x22\x20not\x20found.','fetchedAt','projectPath','.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.','4497510nGEsQk','Usage:\x20','5530722aJzbzG','mergedCli','\x20is\x20deprecated.\x20Use\x20`','map','App\x20\x22','enableI18n','validation','production','raw','49624gueJuP','10YwFMKc','\x20workspace\x20init\x20--appcode\x20<code>\x20[--env\x20daily]','defaultApp','write','No\x20apps\x20found\x20on\x20the\x20platform.','use','\x20app\x20use\x20<name>\x20[--global]','1535511OONJFG','Read\x20app\x20list\x20from\x20local\x20cache\x20only','no-cache','526282fsNLRY','Loaded\x20','Filter\x20by\x20environment\x20(default:\x20current\x20env)','Use\x20global\x20config\x20scope','warn','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','string'];a3_0x4974=function(){return _0x16ff9f;};return a3_0x4974();}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';function a3_0x5c27(_0x23ecb0,_0x4a7567){_0x23ecb0=_0x23ecb0-0x116;const _0x4974a0=a3_0x4974();let _0x5c2735=_0x4974a0[_0x23ecb0];return _0x5c2735;}import{filterRuntimeAccessibleApps,findAppByCode,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const GLOBAL_FLAG={'name':'global','type':a3_0x7fb95(0x141),'description':a3_0x7fb95(0x168),'default':![]};function collectFlags(_0x16f99b,_0x40dd2b){const _0x1b6b27=a3_0x7fb95,_0x9a162c={};for(const _0x1c2e9a of _0x40dd2b){const _0x46de56=_0x1c2e9a['type']===_0x1b6b27(0x141)?_0x16f99b[_0x1b6b27(0x149)](_0x1c2e9a[_0x1b6b27(0x140)]):_0x16f99b['str'](_0x1c2e9a[_0x1b6b27(0x140)]);if(_0x46de56!==''&&_0x46de56!==![])_0x9a162c[_0x1c2e9a[_0x1b6b27(0x140)]]=_0x46de56;}if(_0x16f99b[_0x1b6b27(0x145)])_0x9a162c[_0x1b6b27(0x145)]=!![];return _0x9a162c;}function normalizeLanguages(_0x84b924){const _0x3bfc5b=a3_0x7fb95;if(!Array[_0x3bfc5b(0x142)](_0x84b924))return[];return _0x84b924[_0x3bfc5b(0x148)](_0x6ba296=>typeof _0x6ba296===_0x3bfc5b(0x16b))[_0x3bfc5b(0x154)](_0x567045=>_0x567045['trim']())[_0x3bfc5b(0x148)](Boolean);}function buildRemoteAppI18nFields(_0x546ab9){const _0x4b44de=a3_0x7fb95,_0x2d61df=normalizeLanguages(_0x546ab9[_0x4b44de(0x13b)]?.[_0x4b44de(0x131)]);return{'enableI18n':typeof _0x546ab9['enableI18n']==='boolean'?_0x546ab9[_0x4b44de(0x156)]:null,'languages':_0x2d61df,'i18nInfo':_0x546ab9[_0x4b44de(0x13b)]?{..._0x546ab9[_0x4b44de(0x13b)],'langs':_0x2d61df[_0x4b44de(0x130)]?_0x2d61df:null}:null};}const initDef={'service':a3_0x7fb95(0x132),'command':'init','description':'Deprecated:\x20use\x20workspace\x20init\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x49e762){const _0x679c25=a3_0x7fb95;return warnDeprecatedAppCommand(_0x679c25(0x135),CLI_BIN_NAME+_0x679c25(0x15c)),await runInit(collectFlags(_0x49e762,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a3_0x7fb95(0x132),'command':'list','description':'List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','risk':a3_0x7fb95(0x13e),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a3_0x7fb95(0x116),'type':a3_0x7fb95(0x16b),'description':a3_0x7fb95(0x167),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x7fb95(0x119),'type':'boolean','description':a3_0x7fb95(0x163),'default':![]},{'name':a3_0x7fb95(0x164),'type':a3_0x7fb95(0x141),'description':a3_0x7fb95(0x170),'default':![]},{'name':'include-unpublished','type':'boolean','description':a3_0x7fb95(0x16c),'default':![]}],async 'execute'(_0x2ff71f){const _0xbb9b90=a3_0x7fb95,_0xe7f915=_0x2ff71f['str']('env')||_0x2ff71f[_0xbb9b90(0x118)]||getEnv()||_0xbb9b90(0x158),_0x2a6a77=_0x2ff71f['bool'](_0xbb9b90(0x119)),_0x376160=_0x2ff71f[_0xbb9b90(0x149)](_0xbb9b90(0x164)),_0x292b2c=_0x2ff71f[_0xbb9b90(0x149)](_0xbb9b90(0x12f)),{readRawConfigWithLayers:_0x59e7fe,resolveDefaultAppSource:_0x3047f5,getLocalAppAliases:_0x7a5358}=await import(_0xbb9b90(0x11b)),{getRemoteAppList:_0x41f143}=await import(_0xbb9b90(0x146)),{config:_0x5c8e20,layers:_0x75a772}=_0x59e7fe(),_0x2f36d2=_0x3047f5(_0x75a772),{defaultApp:_0x420031}=_0x5c8e20,_0x5ddda7=await _0x41f143({'env':_0xe7f915,'accessKey':_0x2ff71f[_0xbb9b90(0x13c)],'localOnly':_0x2a6a77,'noCache':_0x376160}),_0x5da0a5=_0x292b2c?_0x5ddda7[_0xbb9b90(0x120)]:filterRuntimeAccessibleApps(_0x5ddda7[_0xbb9b90(0x120)]),_0xd5bd87=_0x5ddda7[_0xbb9b90(0x120)]['length']-_0x5da0a5[_0xbb9b90(0x130)],_0x3a7f78=_0x5da0a5['map'](_0x4c8725=>{const _0x51e119=_0xbb9b90;return{'name':_0x4c8725[_0x51e119(0x11a)],'appcode':_0x4c8725[_0x51e119(0x121)],'named':!![],'definedIn':_0x51e119(0x172),'isDefault':_0x4c8725[_0x51e119(0x11a)]===_0x420031,...buildAppProfileListFields(_0xe7f915),...buildRemoteAppI18nFields(_0x4c8725),'source':_0x5ddda7[_0x51e119(0x137)],'owner':_0x4c8725[_0x51e119(0x11c)]??null,'status':_0x4c8725[_0x51e119(0x138)]??null,'cachedAt':_0x5ddda7[_0x51e119(0x14c)]};}),_0x3cccdb=_0x7a5358(_0x5c8e20);let _0x41bfa6=0x0;for(const [_0x46c90f,_0xfaa690]of Object[_0xbb9b90(0x13d)](_0x3cccdb)){const _0x250019=typeof _0xfaa690[_0xbb9b90(0x139)]===_0xbb9b90(0x16b)?_0xfaa690[_0xbb9b90(0x139)][_0xbb9b90(0x125)]():'';if(!_0x250019)continue;const _0xcbf1d4=findAppByCode(_0x5ddda7[_0xbb9b90(0x120)],_0x250019);if(!_0x292b2c&&_0xcbf1d4&&!isRuntimeAccessibleApp(_0xcbf1d4))continue;_0x41bfa6+=0x1,_0x3a7f78[_0xbb9b90(0x11e)]({'name':_0x46c90f,'appcode':_0x250019,'named':!![],'definedIn':_0xbb9b90(0x119),'isDefault':_0x46c90f===_0x420031,...buildAppProfileListFields(_0xe7f915),'source':'config','owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x3a7f78,_0x2ff71f[_0xbb9b90(0x152)]);const _0x48cc28=_0x3a7f78[_0xbb9b90(0x12d)](_0x4b8ca0=>_0x4b8ca0[_0xbb9b90(0x127)]===!![]),_0x2b62b7=_0x420031??_0x48cc28?.[_0xbb9b90(0x140)]??null,_0x2b57a2={'env':_0xe7f915,'source':_0x5ddda7[_0xbb9b90(0x137)],'fetchedAt':_0x5ddda7[_0xbb9b90(0x14c)],'cachePath':_0x5ddda7[_0xbb9b90(0x11f)],'globalPath':_0x75a772[_0xbb9b90(0x16f)]??null,'projectPath':_0x75a772[_0xbb9b90(0x14d)]??null,'defaultApp':_0x2b62b7,'defaultAppSource':_0x420031!=null?_0x2f36d2:null,'localAliasCount':_0x41bfa6,'remoteTotal':_0x5ddda7[_0xbb9b90(0x120)][_0xbb9b90(0x130)],'hiddenUnpublishedCount':_0xd5bd87,'includeUnpublished':_0x292b2c};if(_0x3a7f78[_0xbb9b90(0x130)]===0x0)return{'ok':!![],'data':{'items':_0x3a7f78,'meta':_0x2b57a2},'message':_0x5ddda7[_0xbb9b90(0x137)]===_0xbb9b90(0x173)?'No\x20cached\x20apps\x20found.':_0xbb9b90(0x15f)};return{'ok':!![],'data':{'items':_0x3a7f78,'meta':_0x2b57a2}};}},pullDef={'service':a3_0x7fb95(0x132),'command':a3_0x7fb95(0x13f),'description':a3_0x7fb95(0x12c),'risk':'write','requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a3_0x7fb95(0x116),'type':'string','description':a3_0x7fb95(0x174),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x7fb95(0x119),'type':a3_0x7fb95(0x141),'description':a3_0x7fb95(0x124),'default':![]},{'name':a3_0x7fb95(0x164),'type':a3_0x7fb95(0x141),'description':a3_0x7fb95(0x170),'default':![]}],async 'execute'(_0xd3157d){const _0x28d0ba=a3_0x7fb95,_0x3ff6f0=_0xd3157d['str'](_0x28d0ba(0x116))||_0xd3157d[_0x28d0ba(0x118)]||getEnv()||_0x28d0ba(0x158),_0x50bedb=_0xd3157d[_0x28d0ba(0x149)]('local'),_0x1da2d3=_0xd3157d['bool'](_0x28d0ba(0x164)),{getRemoteAppList:_0x48d18f}=await import(_0x28d0ba(0x146)),_0x4c8a09=await _0x48d18f({'env':_0x3ff6f0,'accessKey':_0xd3157d[_0x28d0ba(0x13c)],'localOnly':_0x50bedb,'noCache':_0x1da2d3});return{'ok':!![],'data':{'total':_0x4c8a09[_0x28d0ba(0x120)]['length'],'env':_0x3ff6f0,'source':_0x4c8a09['source'],'fetchedAt':_0x4c8a09[_0x28d0ba(0x14c)],'cachePath':_0x4c8a09[_0x28d0ba(0x11f)]},'message':_0x4c8a09[_0x28d0ba(0x137)]===_0x28d0ba(0x173)?_0x28d0ba(0x166)+_0x4c8a09['items']['length']+_0x28d0ba(0x117)+_0x3ff6f0+'\x22.':_0x28d0ba(0x16e)+_0x4c8a09['items']['length']+'\x20app(s)\x20for\x20env=\x22'+_0x3ff6f0+'\x22.'};}},useDef={'service':a3_0x7fb95(0x132),'command':a3_0x7fb95(0x160),'description':a3_0x7fb95(0x13a),'risk':a3_0x7fb95(0x15e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'name','description':a3_0x7fb95(0x11d),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x34f354){const _0x3a2c49=a3_0x7fb95;if(!_0x34f354[_0x3a2c49(0x12a)][0x0])throw CliErrors['validation'](_0x3a2c49(0x122),'Usage:\x20'+CLI_BIN_NAME+'\x20app\x20use\x20<name>\x20[--global]');},async 'execute'(_0x41988a){const _0x573d7c=a3_0x7fb95;warnDeprecatedAppCommand(_0x573d7c(0x160),CLI_BIN_NAME+_0x573d7c(0x144));const _0x3ba6da=_0x41988a[_0x573d7c(0x12a)][0x0];if(!_0x3ba6da)throw CliErrors[_0x573d7c(0x157)](_0x573d7c(0x122),_0x573d7c(0x150)+CLI_BIN_NAME+_0x573d7c(0x161));const {buildConfigFromFlags:_0x436188,resolveLocalAppAliasCode:_0x183430}=await import(_0x573d7c(0x11b)),{readCachedAppList:_0x40aa84}=await import(_0x573d7c(0x12b)),_0x63615=_0x41988a[_0x573d7c(0x126)](_0x573d7c(0x116)),_0x4dc88b=_0x436188(_0x63615?{'env':_0x63615}:{}),_0x8b5f1a=_0x40aa84(_0x4dc88b[_0x573d7c(0x116)],_0x4dc88b['accessKey']),_0x5e5780=_0x8b5f1a?.['items'][_0x573d7c(0x12d)](_0x456802=>_0x456802[_0x573d7c(0x11a)]===_0x3ba6da),_0x346872=_0x183430(_0x4dc88b[_0x573d7c(0x159)]??{},_0x3ba6da);if(_0x5e5780&&!isRuntimeAccessibleApp(_0x5e5780))throw runtimeInaccessibleAppError(_0x5e5780,'\x22'+_0x3ba6da+'\x22');if(_0x346872){const _0x30bf47=_0x8b5f1a?.[_0x573d7c(0x120)][_0x573d7c(0x12d)](_0x2c06c1=>_0x2c06c1[_0x573d7c(0x121)]?.['trim']()===_0x346872);if(_0x30bf47&&!isRuntimeAccessibleApp(_0x30bf47))throw runtimeInaccessibleAppError(_0x30bf47,'\x22'+_0x3ba6da+'\x22');}if(!_0x5e5780&&!_0x346872&&_0x4dc88b[_0x573d7c(0x15d)]!==_0x3ba6da){const _0x5d29d9=[..._0x8b5f1a?.[_0x573d7c(0x120)][_0x573d7c(0x154)](_0x44d35c=>_0x44d35c['appName'])??[]],_0x2ecd58=_0x5d29d9[_0x573d7c(0x130)]===0x0?'Use\x20`'+CLI_BIN_NAME+'\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.'+_0x3ba6da+_0x573d7c(0x143):'Available\x20remote\x20apps:\x20'+Array[_0x573d7c(0x123)](new Set(_0x5d29d9))[_0x573d7c(0x16d)](',\x20')+_0x573d7c(0x14e);throw CliErrors[_0x573d7c(0x157)](_0x573d7c(0x155)+_0x3ba6da+_0x573d7c(0x14b),_0x2ecd58);}const _0x335461=_0x41988a[_0x573d7c(0x149)](_0x573d7c(0x133));let _0x3b3210;if(_0x335461)_0x3b3210={'global':!![]};else{const {isInProject:_0x1f4953}=await import(_0x573d7c(0x11b)),_0x5660c6=_0x1f4953();_0x3b3210=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':'project-default','inProject':_0x5660c6}));}const _0x2feb14=readConfig(_0x3b3210);return _0x2feb14[_0x573d7c(0x15d)]=_0x3ba6da,writeConfig(_0x2feb14,_0x3b3210),{'ok':!![],'message':_0x573d7c(0x171)+_0x3ba6da+'\x22'+scopeLabel(_0x3b3210)+'.'};}};function warnDeprecatedAppCommand(_0x5a3aa3,_0x355873){const _0x12b6db=a3_0x7fb95;console[_0x12b6db(0x169)](CLI_BIN_NAME+_0x12b6db(0x14a)+_0x5a3aa3+_0x12b6db(0x153)+_0x355873+_0x12b6db(0x147));}const importDef={'service':'app','command':a3_0x7fb95(0x128),'description':a3_0x7fb95(0x16a),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x28d5b2){return await runInitImport(collectFlags(_0x28d5b2,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
1
+ const a3_0x162cd6=a3_0x45fc;(function(_0x36ff3c,_0x48ba13){const _0x1d664a=a3_0x45fc,_0x30f742=_0x36ff3c();while(!![]){try{const _0xb9af08=-parseInt(_0x1d664a(0x1d1))/0x1+-parseInt(_0x1d664a(0x219))/0x2*(parseInt(_0x1d664a(0x1e0))/0x3)+parseInt(_0x1d664a(0x1d0))/0x4+parseInt(_0x1d664a(0x1de))/0x5+-parseInt(_0x1d664a(0x1cd))/0x6*(parseInt(_0x1d664a(0x1f0))/0x7)+-parseInt(_0x1d664a(0x1db))/0x8+parseInt(_0x1d664a(0x203))/0x9;if(_0xb9af08===_0x48ba13)break;else _0x30f742['push'](_0x30f742['shift']());}catch(_0x5891ef){_0x30f742['push'](_0x30f742['shift']());}}}(a3_0x3291,0xaf836));import{CliErrors}from'../../errors.js';import{initCreateFlagDefs,initImportFlagDefs,runInit,runInitImport}from'../../commands/init.js';function a3_0x45fc(_0x2f2f7a,_0x2f73f3){_0x2f2f7a=_0x2f2f7a-0x1c8;const _0x3291a6=a3_0x3291();let _0x45fcf7=_0x3291a6[_0x2f2f7a];return _0x45fcf7;}import{getEnv,RUNTIME_ENV_VALUES}from'../../constant/env.js';import{buildAppProfileListFields}from'../../config/schema.js';function a3_0x3291(){const _0x4503d9=['\x20workspace\x20init\x20--appcode\x20<code>\x20[--env\x20daily]','name','4859040BDPDoE','Include\x20unpublished\x20apps\x20for\x20diagnostics','15fkaOHu','projectPath','type','`\x20instead.','warn','\x20is\x20deprecated.\x20Use\x20`','join','items','appcode','init','../../commands/app/remote-source.js','str','write','length','Usage:\x20','trim','7TDrqAJ','push','Available\x20remote\x20apps:\x20','langs','map','.appcode\x20to\x20.lovrabet.json.','\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.','filter','list','production','../../context.js','raw','.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.','isCurrent','app','enableI18n','appCode','pull','mergedCli','14763258mZawQl','env','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','Use\x20global\x20config\x20scope','bool','Deprecated:\x20use\x20workspace\x20init\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','no-cache','use','include-unpublished','Filter\x20by\x20environment\x20(default:\x20current\x20env)','source','\x20app\x20','Use\x20`','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','boolean','Default\x20app\x20candidate\x20set\x20to\x20\x22','local','from','string','i18nInfo','Missing\x20app\x20name.','global','513244DpPYhB','appPublishStatus','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','nonInteractive','\x20workspace\x20use\x20--app\x20<name>\x20[--env\x20daily]','validation','envName','config','\x20app(s)\x20for\x20env=\x22','Refreshed\x20app\x20cache\x20with\x20','861078ZiPqKQ','find','accessKey','4047648fbwCez','655692lgPgRC','cachePath','defaultApp','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','Deprecated:\x20use\x20workspace\x20use\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','appName','cache','App\x20\x22','import','fetchedAt','6582920dguntZ'];a3_0x3291=function(){return _0x4503d9;};return a3_0x3291();}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_0x162cd6(0x218),'type':a3_0x162cd6(0x211),'description':a3_0x162cd6(0x206),'default':![]};function collectFlags(_0x2d6c5e,_0x5cc343){const _0x2109c7=a3_0x162cd6,_0x76240d={};for(const _0x4ab521 of _0x5cc343){const _0xf2a1e7=_0x4ab521[_0x2109c7(0x1e2)]===_0x2109c7(0x211)?_0x2d6c5e[_0x2109c7(0x207)](_0x4ab521[_0x2109c7(0x1dd)]):_0x2d6c5e[_0x2109c7(0x1eb)](_0x4ab521[_0x2109c7(0x1dd)]);if(_0xf2a1e7!==''&&_0xf2a1e7!==![])_0x76240d[_0x4ab521[_0x2109c7(0x1dd)]]=_0xf2a1e7;}if(_0x2d6c5e['nonInteractive'])_0x76240d[_0x2109c7(0x21c)]=!![];return _0x76240d;}function normalizeLanguages(_0x2e5087){const _0x77fc53=a3_0x162cd6;if(!Array['isArray'](_0x2e5087))return[];return _0x2e5087[_0x77fc53(0x1f7)](_0xfa2853=>typeof _0xfa2853==='string')['map'](_0x40aad0=>_0x40aad0[_0x77fc53(0x1ef)]())[_0x77fc53(0x1f7)](Boolean);}function buildRemoteAppI18nFields(_0x4b0fe1){const _0x25914b=a3_0x162cd6,_0x341d82=normalizeLanguages(_0x4b0fe1['i18nInfo']?.[_0x25914b(0x1f3)]);return{'enableI18n':typeof _0x4b0fe1['enableI18n']==='boolean'?_0x4b0fe1[_0x25914b(0x1ff)]:null,'languages':_0x341d82,'i18nInfo':_0x4b0fe1[_0x25914b(0x216)]?{..._0x4b0fe1[_0x25914b(0x216)],'langs':_0x341d82[_0x25914b(0x1ed)]?_0x341d82:null}:null};}const initDef={'service':'app','command':a3_0x162cd6(0x1e9),'description':a3_0x162cd6(0x208),'risk':a3_0x162cd6(0x1ec),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x2d2210){const _0x139fbb=a3_0x162cd6;return warnDeprecatedAppCommand(_0x139fbb(0x1e9),CLI_BIN_NAME+_0x139fbb(0x1dc)),await runInit(collectFlags(_0x2d2210,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a3_0x162cd6(0x1fe),'command':a3_0x162cd6(0x1f8),'description':a3_0x162cd6(0x205),'risk':'read','requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a3_0x162cd6(0x204),'type':a3_0x162cd6(0x215),'description':a3_0x162cd6(0x20c),'enum':[...RUNTIME_ENV_VALUES]},{'name':'local','type':a3_0x162cd6(0x211),'description':'Read\x20app\x20list\x20from\x20local\x20cache\x20only','default':![]},{'name':a3_0x162cd6(0x209),'type':a3_0x162cd6(0x211),'description':a3_0x162cd6(0x21b),'default':![]},{'name':a3_0x162cd6(0x20b),'type':a3_0x162cd6(0x211),'description':a3_0x162cd6(0x1df),'default':![]}],async 'execute'(_0x196a1b){const _0x4878df=a3_0x162cd6,_0x39b1b4=_0x196a1b[_0x4878df(0x1eb)](_0x4878df(0x204))||_0x196a1b[_0x4878df(0x1c9)]||getEnv()||'production',_0x57bc95=_0x196a1b[_0x4878df(0x207)]('local'),_0x106775=_0x196a1b[_0x4878df(0x207)](_0x4878df(0x209)),_0x2f9c07=_0x196a1b['bool']('include-unpublished'),{readRawConfigWithLayers:_0x402963,resolveDefaultAppSource:_0x2cb88b,getLocalAppAliases:_0x2eb34e}=await import(_0x4878df(0x1fa)),{getRemoteAppList:_0x5e79be}=await import('../../commands/app/remote-source.js'),{config:_0x213760,layers:_0x4eb814}=_0x402963(),_0x27b1a0=_0x2cb88b(_0x4eb814),{defaultApp:_0x51626a}=_0x213760,_0x709a21=await _0x5e79be({'env':_0x39b1b4,'accessKey':_0x196a1b[_0x4878df(0x1cf)],'localOnly':_0x57bc95,'noCache':_0x106775}),_0x3c6634=_0x2f9c07?_0x709a21[_0x4878df(0x1e7)]:filterRuntimeAccessibleApps(_0x709a21['items']),_0x2b8c04=_0x709a21['items']['length']-_0x3c6634[_0x4878df(0x1ed)],_0x2388ba=_0x3c6634[_0x4878df(0x1f4)](_0x349225=>{const _0x5b4b1c=_0x4878df;return{'name':_0x349225[_0x5b4b1c(0x1d6)],'appcode':_0x349225[_0x5b4b1c(0x200)],'named':!![],'definedIn':'remote','isDefault':_0x349225['appName']===_0x51626a,...buildAppProfileListFields(_0x39b1b4),...buildRemoteAppI18nFields(_0x349225),'source':_0x709a21[_0x5b4b1c(0x20d)],'owner':_0x349225['appOwnerName']??null,'status':_0x349225[_0x5b4b1c(0x21a)]??null,'cachedAt':_0x709a21['fetchedAt']};}),_0x22a492=_0x2eb34e(_0x213760);let _0x2b80d5=0x0;for(const [_0x34ee5a,_0x17d0fe]of Object['entries'](_0x22a492)){const _0x51daaf=typeof _0x17d0fe['appcode']===_0x4878df(0x215)?_0x17d0fe[_0x4878df(0x1e8)][_0x4878df(0x1ef)]():'';if(!_0x51daaf)continue;const _0x45131e=findAppByCode(_0x709a21['items'],_0x51daaf);if(!_0x2f9c07&&_0x45131e&&!isRuntimeAccessibleApp(_0x45131e))continue;_0x2b80d5+=0x1,_0x2388ba[_0x4878df(0x1f1)]({'name':_0x34ee5a,'appcode':_0x51daaf,'named':!![],'definedIn':_0x4878df(0x213),'isDefault':_0x34ee5a===_0x51626a,...buildAppProfileListFields(_0x39b1b4),'source':_0x4878df(0x1ca),'owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x2388ba,_0x196a1b[_0x4878df(0x202)]);const _0x29bb31=_0x2388ba[_0x4878df(0x1ce)](_0x382bce=>_0x382bce[_0x4878df(0x1fd)]===!![]),_0x1ed12c=_0x51626a??_0x29bb31?.['name']??null,_0x280e0e={'env':_0x39b1b4,'source':_0x709a21[_0x4878df(0x20d)],'fetchedAt':_0x709a21['fetchedAt'],'cachePath':_0x709a21[_0x4878df(0x1d2)],'globalPath':_0x4eb814['globalPath']??null,'projectPath':_0x4eb814[_0x4878df(0x1e1)]??null,'defaultApp':_0x1ed12c,'defaultAppSource':_0x51626a!=null?_0x27b1a0:null,'localAliasCount':_0x2b80d5,'remoteTotal':_0x709a21[_0x4878df(0x1e7)][_0x4878df(0x1ed)],'hiddenUnpublishedCount':_0x2b8c04,'includeUnpublished':_0x2f9c07};if(_0x2388ba[_0x4878df(0x1ed)]===0x0)return{'ok':!![],'data':{'items':_0x2388ba,'meta':_0x280e0e},'message':_0x709a21[_0x4878df(0x20d)]===_0x4878df(0x1d7)?'No\x20cached\x20apps\x20found.':'No\x20apps\x20found\x20on\x20the\x20platform.'};return{'ok':!![],'data':{'items':_0x2388ba,'meta':_0x280e0e}};}},pullDef={'service':a3_0x162cd6(0x1fe),'command':a3_0x162cd6(0x201),'description':a3_0x162cd6(0x1d4),'risk':a3_0x162cd6(0x1ec),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'env','type':a3_0x162cd6(0x215),'description':'Target\x20environment\x20(default:\x20current\x20env)','enum':[...RUNTIME_ENV_VALUES]},{'name':'local','type':a3_0x162cd6(0x211),'description':'Read\x20from\x20local\x20cache\x20only','default':![]},{'name':a3_0x162cd6(0x209),'type':'boolean','description':'Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','default':![]}],async 'execute'(_0x14c1d2){const _0x3f24ed=a3_0x162cd6,_0x5a7f6f=_0x14c1d2['str']('env')||_0x14c1d2[_0x3f24ed(0x1c9)]||getEnv()||_0x3f24ed(0x1f9),_0x4efcd4=_0x14c1d2[_0x3f24ed(0x207)](_0x3f24ed(0x213)),_0x27f828=_0x14c1d2['bool'](_0x3f24ed(0x209)),{getRemoteAppList:_0x46c9d8}=await import(_0x3f24ed(0x1ea)),_0xc34f30=await _0x46c9d8({'env':_0x5a7f6f,'accessKey':_0x14c1d2[_0x3f24ed(0x1cf)],'localOnly':_0x4efcd4,'noCache':_0x27f828});return{'ok':!![],'data':{'total':_0xc34f30[_0x3f24ed(0x1e7)][_0x3f24ed(0x1ed)],'env':_0x5a7f6f,'source':_0xc34f30[_0x3f24ed(0x20d)],'fetchedAt':_0xc34f30[_0x3f24ed(0x1da)],'cachePath':_0xc34f30['cachePath']},'message':_0xc34f30[_0x3f24ed(0x20d)]==='cache'?'Loaded\x20'+_0xc34f30['items']['length']+'\x20cached\x20app(s)\x20for\x20env=\x22'+_0x5a7f6f+'\x22.':_0x3f24ed(0x1cc)+_0xc34f30[_0x3f24ed(0x1e7)][_0x3f24ed(0x1ed)]+_0x3f24ed(0x1cb)+_0x5a7f6f+'\x22.'};}},useDef={'service':a3_0x162cd6(0x1fe),'command':a3_0x162cd6(0x20a),'description':a3_0x162cd6(0x1d5),'risk':a3_0x162cd6(0x1ec),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'name','description':'Remote\x20app\x20name\x20to\x20activate','required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x14422c){const _0x45fe76=a3_0x162cd6;if(!_0x14422c['args'][0x0])throw CliErrors['validation'](_0x45fe76(0x217),_0x45fe76(0x1ee)+CLI_BIN_NAME+'\x20app\x20use\x20<name>\x20[--global]');},async 'execute'(_0x468162){const _0x164905=a3_0x162cd6;warnDeprecatedAppCommand(_0x164905(0x20a),CLI_BIN_NAME+_0x164905(0x21d));const _0x1242e7=_0x468162['args'][0x0];if(!_0x1242e7)throw CliErrors[_0x164905(0x1c8)]('Missing\x20app\x20name.','Usage:\x20'+CLI_BIN_NAME+'\x20app\x20use\x20<name>\x20[--global]');const {buildConfigFromFlags:_0x1b1bfa,resolveLocalAppAliasCode:_0x5393fe}=await import(_0x164905(0x1fa)),{readCachedAppList:_0x5823f3}=await import('../../commands/app/cache.js'),_0x3c23bb=_0x468162[_0x164905(0x1eb)](_0x164905(0x204)),_0x4e53bd=_0x1b1bfa(_0x3c23bb?{'env':_0x3c23bb}:{}),_0x5b6f53=_0x5823f3(_0x4e53bd[_0x164905(0x204)],_0x4e53bd['accessKey']),_0x43461d=_0x5b6f53?.['items']['find'](_0x32145c=>_0x32145c[_0x164905(0x1d6)]===_0x1242e7),_0x708deb=_0x5393fe(_0x4e53bd[_0x164905(0x1fb)]??{},_0x1242e7);if(_0x43461d&&!isRuntimeAccessibleApp(_0x43461d))throw runtimeInaccessibleAppError(_0x43461d,'\x22'+_0x1242e7+'\x22');if(_0x708deb){const _0x53e4e1=_0x5b6f53?.[_0x164905(0x1e7)]['find'](_0x3cb489=>_0x3cb489['appCode']?.[_0x164905(0x1ef)]()===_0x708deb);if(_0x53e4e1&&!isRuntimeAccessibleApp(_0x53e4e1))throw runtimeInaccessibleAppError(_0x53e4e1,'\x22'+_0x1242e7+'\x22');}if(!_0x43461d&&!_0x708deb&&_0x4e53bd[_0x164905(0x1d3)]!==_0x1242e7){const _0x8192b1=[..._0x5b6f53?.[_0x164905(0x1e7)]['map'](_0x2c6656=>_0x2c6656[_0x164905(0x1d6)])??[]],_0x391dc9=_0x8192b1[_0x164905(0x1ed)]===0x0?_0x164905(0x20f)+CLI_BIN_NAME+_0x164905(0x1f6)+_0x1242e7+_0x164905(0x1f5):_0x164905(0x1f2)+Array[_0x164905(0x214)](new Set(_0x8192b1))[_0x164905(0x1e6)](',\x20')+_0x164905(0x1fc);throw CliErrors['validation'](_0x164905(0x1d8)+_0x1242e7+'\x22\x20not\x20found.',_0x391dc9);}const _0x28727a=_0x468162['bool']('global');let _0x4adbfb;if(_0x28727a)_0x4adbfb={'global':!![]};else{const {isInProject:_0x5c82c6}=await import(_0x164905(0x1fa)),_0x3acd82=_0x5c82c6();_0x4adbfb=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':'project-default','inProject':_0x3acd82}));}const _0x5194a9=readConfig(_0x4adbfb);return _0x5194a9[_0x164905(0x1d3)]=_0x1242e7,writeConfig(_0x5194a9,_0x4adbfb),{'ok':!![],'message':_0x164905(0x212)+_0x1242e7+'\x22'+scopeLabel(_0x4adbfb)+'.'};}};function warnDeprecatedAppCommand(_0x507944,_0xd3963a){const _0x404f02=a3_0x162cd6;console[_0x404f02(0x1e4)](CLI_BIN_NAME+_0x404f02(0x20e)+_0x507944+_0x404f02(0x1e5)+_0xd3963a+_0x404f02(0x1e3));}const importDef={'service':'app','command':a3_0x162cd6(0x1d9),'description':a3_0x162cd6(0x210),'risk':a3_0x162cd6(0x1ec),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x43e7f7){return await runInitImport(collectFlags(_0x43e7f7,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
@@ -1 +1 @@
1
- (function(_0x23173e,_0x1ac62a){const _0x37c015=a4_0x2ad9,_0x4f6680=_0x23173e();while(!![]){try{const _0x1d3f6f=-parseInt(_0x37c015(0xd5))/0x1*(-parseInt(_0x37c015(0xd0))/0x2)+-parseInt(_0x37c015(0xd4))/0x3*(-parseInt(_0x37c015(0xdd))/0x4)+-parseInt(_0x37c015(0xde))/0x5*(-parseInt(_0x37c015(0xdb))/0x6)+-parseInt(_0x37c015(0xe2))/0x7*(-parseInt(_0x37c015(0xd1))/0x8)+-parseInt(_0x37c015(0xea))/0x9*(parseInt(_0x37c015(0xe1))/0xa)+parseInt(_0x37c015(0xdc))/0xb*(parseInt(_0x37c015(0xe6))/0xc)+-parseInt(_0x37c015(0xd3))/0xd;if(_0x1d3f6f===_0x1ac62a)break;else _0x4f6680['push'](_0x4f6680['shift']());}catch(_0x9fca91){_0x4f6680['push'](_0x4f6680['shift']());}}}(a4_0x24ac,0xc9c07));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(_0x54131a){const _0x262688=a4_0x2ad9;if(typeof _0x54131a!==_0x262688(0xda))return null;const _0x388210=_0x54131a[_0x262688(0xe5)]();return _0x388210?_0x388210[_0x262688(0xd9)]():null;}function a4_0x2ad9(_0x5f3a3e,_0x582028){_0x5f3a3e=_0x5f3a3e-0xd0;const _0x24ac1c=a4_0x24ac();let _0x2ad95e=_0x24ac1c[_0x5f3a3e];return _0x2ad95e;}export function isRuntimeAccessibleApp(_0x33cb18){const _0x782094=a4_0x2ad9;return normalizeAppPublishStatus(_0x33cb18[_0x782094(0xd8)])===RUNTIME_ACCESSIBLE_APP_STATUS;}export function filterRuntimeAccessibleApps(_0x1803d3){const _0x13b97a=a4_0x2ad9;return _0x1803d3[_0x13b97a(0xe4)](isRuntimeAccessibleApp);}export function findAppByName(_0x125d9a,_0x4f5461){const _0x14a950=a4_0x2ad9;return _0x125d9a[_0x14a950(0xe7)](_0x36ef7e=>_0x36ef7e[_0x14a950(0xe0)]===_0x4f5461);}export function findAppByCode(_0x21d1df,_0x450729){const _0x2b06ca=a4_0x2ad9,_0x229b8e=_0x450729[_0x2b06ca(0xe5)]();if(!_0x229b8e)return undefined;return _0x21d1df['find'](_0x399f37=>_0x399f37[_0x2b06ca(0xd6)]?.[_0x2b06ca(0xe5)]()===_0x229b8e);}function a4_0x24ac(){const _0x547ae5=['UNKNOWN','App\x20','3076191uindIo','6nBLAJt','5122424hfpsHa','\x20dataset/data/sql/bff\x20commands,\x20or\x20choose\x20a\x20published\x20app.','30783545TSjJdm','24agePED','186163PsKWrc','appCode','validation','appPublishStatus','toUpperCase','string','1130682oymTFN','154ENLOTQ','264508ZfWwmb','25iknojZ','.\x20Publish\x20the\x20app\x20before\x20using\x20','appName','10SYedzZ','7GEqYwh','Current\x20status:\x20','filter','trim','742368qCPLPJ','find'];a4_0x24ac=function(){return _0x547ae5;};return a4_0x24ac();}export function runtimeInaccessibleAppError(_0x286a51,_0x5a7d82){const _0x441bb9=a4_0x2ad9,_0x28c464=normalizeAppPublishStatus(_0x286a51[_0x441bb9(0xd8)])??_0x441bb9(0xe8);return CliErrors[_0x441bb9(0xd7)](_0x441bb9(0xe9)+_0x5a7d82+'\x20is\x20not\x20available\x20for\x20runtime\x20AI\x20access.',_0x441bb9(0xe3)+_0x28c464+_0x441bb9(0xdf)+CLI_BIN_NAME+_0x441bb9(0xd2));}
1
+ (function(_0x434c48,_0xa894e0){const _0x19cda9=a4_0x139c,_0x4ff40a=_0x434c48();while(!![]){try{const _0x250d63=-parseInt(_0x19cda9(0x1e7))/0x1+parseInt(_0x19cda9(0x1e5))/0x2*(-parseInt(_0x19cda9(0x1ee))/0x3)+parseInt(_0x19cda9(0x1f0))/0x4*(-parseInt(_0x19cda9(0x1e8))/0x5)+parseInt(_0x19cda9(0x1f3))/0x6+-parseInt(_0x19cda9(0x1e3))/0x7*(-parseInt(_0x19cda9(0x1ed))/0x8)+-parseInt(_0x19cda9(0x1e2))/0x9+parseInt(_0x19cda9(0x1e1))/0xa*(-parseInt(_0x19cda9(0x1e4))/0xb);if(_0x250d63===_0xa894e0)break;else _0x4ff40a['push'](_0x4ff40a['shift']());}catch(_0x18e263){_0x4ff40a['push'](_0x4ff40a['shift']());}}}(a4_0x1e70,0xa3451));function a4_0x1e70(){const _0x578bd2=['filter','3911312kFRsfc','93MkLNwt','UNKNOWN','29404HopfcK','\x20dataset/data/sql/bff\x20commands,\x20or\x20choose\x20a\x20published\x20app.','Current\x20status:\x20','7699068QwRIov','appCode','\x20is\x20not\x20available\x20for\x20runtime\x20AI\x20access.','appPublishStatus','1807430yBMNJq','4124628JiCNcn','14JrJELU','22lIuKIH','6794qKcxci','find','233459RkGqcr','295AGfFnp','trim','App\x20','validation'];a4_0x1e70=function(){return _0x578bd2;};return a4_0x1e70();}function a4_0x139c(_0x20af07,_0x22a7e1){_0x20af07=_0x20af07-0x1e0;const _0x1e70a9=a4_0x1e70();let _0x139c85=_0x1e70a9[_0x20af07];return _0x139c85;}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(_0x22a18a){const _0x32659f=a4_0x139c;if(typeof _0x22a18a!=='string')return null;const _0x13c4f6=_0x22a18a[_0x32659f(0x1e9)]();return _0x13c4f6?_0x13c4f6['toUpperCase']():null;}export function isRuntimeAccessibleApp(_0x19c195){return normalizeAppPublishStatus(_0x19c195['appPublishStatus'])===RUNTIME_ACCESSIBLE_APP_STATUS;}export function filterRuntimeAccessibleApps(_0x2be986){const _0x3b25da=a4_0x139c;return _0x2be986[_0x3b25da(0x1ec)](isRuntimeAccessibleApp);}export function findAppByName(_0x100b09,_0x250a0b){const _0x187415=a4_0x139c;return _0x100b09[_0x187415(0x1e6)](_0x51d96f=>_0x51d96f['appName']===_0x250a0b);}export function findAppByCode(_0x55e929,_0x9f75dd){const _0x45d060=a4_0x139c,_0xd1a94a=_0x9f75dd[_0x45d060(0x1e9)]();if(!_0xd1a94a)return undefined;return _0x55e929[_0x45d060(0x1e6)](_0x3a5041=>_0x3a5041[_0x45d060(0x1f4)]?.[_0x45d060(0x1e9)]()===_0xd1a94a);}export function runtimeInaccessibleAppError(_0x22a1c6,_0x2d8727){const _0xcdca26=a4_0x139c,_0xc1cb1c=normalizeAppPublishStatus(_0x22a1c6[_0xcdca26(0x1e0)])??_0xcdca26(0x1ef);return CliErrors[_0xcdca26(0x1eb)](_0xcdca26(0x1ea)+_0x2d8727+_0xcdca26(0x1f5),_0xcdca26(0x1f2)+_0xc1cb1c+'.\x20Publish\x20the\x20app\x20before\x20using\x20'+CLI_BIN_NAME+_0xcdca26(0x1f1));}
@@ -1 +1 @@
1
- (function(_0x27513f,_0x5f53e8){const _0x52cf78=a5_0x1acc,_0x3bf7ac=_0x27513f();while(!![]){try{const _0x2f6d88=-parseInt(_0x52cf78(0x7d))/0x1+parseInt(_0x52cf78(0x84))/0x2*(-parseInt(_0x52cf78(0x87))/0x3)+-parseInt(_0x52cf78(0x85))/0x4+-parseInt(_0x52cf78(0x89))/0x5+-parseInt(_0x52cf78(0x86))/0x6+parseInt(_0x52cf78(0x88))/0x7+-parseInt(_0x52cf78(0x82))/0x8*(-parseInt(_0x52cf78(0x79))/0x9);if(_0x2f6d88===_0x5f53e8)break;else _0x3bf7ac['push'](_0x3bf7ac['shift']());}catch(_0x1a5ad8){_0x3bf7ac['push'](_0x3bf7ac['shift']());}}}(a5_0x3f78,0xd8122));function a5_0x1acc(_0x11832f,_0x17f90e){_0x11832f=_0x11832f-0x78;const _0x3f78f1=a5_0x3f78();let _0x1accba=_0x3f78f1[_0x11832f];return _0x1accba;}import{fileURLToPath}from'url';import{dirname,join}from'path';import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0x54c494=a5_0x1acc,_0x554dfc=join(__dirname,_0x54c494(0x81)),_0x416354=readFileSync(_0x554dfc,_0x54c494(0x7a));return JSON[_0x54c494(0x7e)](_0x416354);}function a5_0x3f78(){const _0x117315=['1826937SpvAHv','utf-8','success','errorMsg','947973osEUoP','parse','errorCode','data','../../../mock/app-list.json','232jdrKQE','Mock\x20API\x20error:\x20','22vNuEot','4725644xaJEgj','4055238jpSJwY','324966OmbEzI','3172841jkBeTh','7291175epEmJG','tableData'];a5_0x3f78=function(){return _0x117315;};return a5_0x3f78();}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x20c1fb=a5_0x1acc,_0x5e2261=getMockAppList();if(!_0x5e2261[_0x20c1fb(0x7b)])throw new Error(_0x20c1fb(0x83)+_0x5e2261[_0x20c1fb(0x7c)]+'\x20('+_0x5e2261[_0x20c1fb(0x7f)]+')');return _0x5e2261[_0x20c1fb(0x80)][_0x20c1fb(0x78)];}
1
+ (function(_0x14f83c,_0x345a81){const _0x2719f0=a5_0x24ae,_0x1eecfd=_0x14f83c();while(!![]){try{const _0x209ad4=parseInt(_0x2719f0(0x138))/0x1+parseInt(_0x2719f0(0x13f))/0x2*(parseInt(_0x2719f0(0x137))/0x3)+-parseInt(_0x2719f0(0x13c))/0x4*(parseInt(_0x2719f0(0x142))/0x5)+parseInt(_0x2719f0(0x136))/0x6*(-parseInt(_0x2719f0(0x141))/0x7)+parseInt(_0x2719f0(0x140))/0x8*(parseInt(_0x2719f0(0x13a))/0x9)+parseInt(_0x2719f0(0x143))/0xa+-parseInt(_0x2719f0(0x131))/0xb*(-parseInt(_0x2719f0(0x13d))/0xc);if(_0x209ad4===_0x345a81)break;else _0x1eecfd['push'](_0x1eecfd['shift']());}catch(_0x4d4572){_0x1eecfd['push'](_0x1eecfd['shift']());}}}(a5_0x5044,0x3b09c));import{fileURLToPath}from'url';import{dirname,join}from'path';import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0x8dfe82=a5_0x24ae,_0x3b5657=join(__dirname,_0x8dfe82(0x13e)),_0x2da6e4=readFileSync(_0x3b5657,_0x8dfe82(0x132));return JSON[_0x8dfe82(0x130)](_0x2da6e4);}function a5_0x5044(){const _0x2ee67e=['parse','453365PYvQIa','utf-8','errorMsg','success','data','2305482jAFdsr','243fWxdbJ','173019uNQVgn','errorCode','620820oDRIsm','Mock\x20API\x20error:\x20','9268ENhtxX','60RVtuca','../../../mock/app-list.json','11024ucKWfF','8HBtLlO','7yOrFOJ','985FpFSHH','1879700bkFhAr'];a5_0x5044=function(){return _0x2ee67e;};return a5_0x5044();}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}function a5_0x24ae(_0x12220c,_0x1061d9){_0x12220c=_0x12220c-0x130;const _0x504477=a5_0x5044();let _0x24aeea=_0x504477[_0x12220c];return _0x24aeea;}export function getMockRemoteAppItems(){const _0x477e25=a5_0x24ae,_0x390b70=getMockAppList();if(!_0x390b70[_0x477e25(0x134)])throw new Error(_0x477e25(0x13b)+_0x390b70[_0x477e25(0x133)]+'\x20('+_0x390b70[_0x477e25(0x139)]+')');return _0x390b70[_0x477e25(0x135)]['tableData'];}
@@ -1 +1 @@
1
- (function(_0x321831,_0x17b885){const _0x259a12=a6_0x13a8,_0x1a9341=_0x321831();while(!![]){try{const _0x48a65b=-parseInt(_0x259a12(0x142))/0x1*(-parseInt(_0x259a12(0x13f))/0x2)+-parseInt(_0x259a12(0x146))/0x3*(-parseInt(_0x259a12(0x14d))/0x4)+parseInt(_0x259a12(0x141))/0x5+-parseInt(_0x259a12(0x145))/0x6+parseInt(_0x259a12(0x140))/0x7+-parseInt(_0x259a12(0x148))/0x8+-parseInt(_0x259a12(0x13d))/0x9;if(_0x48a65b===_0x17b885)break;else _0x1a9341['push'](_0x1a9341['shift']());}catch(_0x37af2a){_0x1a9341['push'](_0x1a9341['shift']());}}}(a6_0x465b,0xba600));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 _0x1e8b26=a6_0x13a8,_0x398a3c=(productEnv(_0x1e8b26(0x144))||'')[_0x1e8b26(0x14b)]()['toLowerCase']();return _0x398a3c===_0x1e8b26(0x149);}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}function a6_0x13a8(_0x33c568,_0x464547){_0x33c568=_0x33c568-0x13d;const _0x465b06=a6_0x465b();let _0x13a800=_0x465b06[_0x33c568];return _0x13a800;}export async function getRemoteAppList(_0x3f54c3){const _0x38570e=a6_0x13a8,{env:_0x3e8b7e,accessKey:_0x27c11b,localOnly:localOnly=![],noCache:noCache=![]}=_0x3f54c3,_0x14fbfe=readCachedAppList(_0x3e8b7e,_0x27c11b),_0x418d97=_0x27c11b?.['trim']()?getAppCacheFilePath(_0x3e8b7e,_0x27c11b):null;if(localOnly)return{'items':_0x14fbfe?.[_0x38570e(0x143)]??[],'source':'cache','fetchedAt':_0x14fbfe?.[_0x38570e(0x13e)]??null,'cachePath':_0x418d97};try{const _0x1cafce=await getRemoteAppItems(),_0x5e38b2=shouldUseMockRemoteApps()?_0x38570e(0x149):_0x38570e(0x14a),_0x4ff0db=new Date()[_0x38570e(0x147)](),_0x5a1573=_0x27c11b?.[_0x38570e(0x14b)]()?writeCachedAppList(_0x3e8b7e,_0x27c11b,{'env':_0x3e8b7e,'fetchedAt':_0x4ff0db,'source':_0x5e38b2,'items':_0x1cafce}):null;return{'items':_0x1cafce,'source':_0x5e38b2,'fetchedAt':_0x4ff0db,'cachePath':_0x5a1573};}catch(_0x4ebd8d){if(!noCache&&_0x14fbfe)return{'items':_0x14fbfe['items'],'source':_0x38570e(0x14c),'fetchedAt':_0x14fbfe[_0x38570e(0x13e)],'cachePath':_0x418d97};throw _0x4ebd8d;}}function a6_0x465b(){const _0x3ab477=['fetchedAt','35618zLADdc','10579450EgwhRT','3119150Ahdjna','27hCpNgC','items','APP_LIST_SOURCE','5486598PBsmza','274269BadvqL','toISOString','2379688yLfUae','mock','remote','trim','cache','8doGBrd','7412247kLGzqn'];a6_0x465b=function(){return _0x3ab477;};return a6_0x465b();}
1
+ (function(_0x45678f,_0x5b2890){const _0x4ea5ad=a6_0x3436,_0x122c2a=_0x45678f();while(!![]){try{const _0x58b7e3=parseInt(_0x4ea5ad(0x101))/0x1+-parseInt(_0x4ea5ad(0x10b))/0x2*(-parseInt(_0x4ea5ad(0x108))/0x3)+parseInt(_0x4ea5ad(0x103))/0x4*(parseInt(_0x4ea5ad(0x100))/0x5)+-parseInt(_0x4ea5ad(0x109))/0x6+-parseInt(_0x4ea5ad(0x104))/0x7*(parseInt(_0x4ea5ad(0x10d))/0x8)+parseInt(_0x4ea5ad(0x105))/0x9*(-parseInt(_0x4ea5ad(0x10e))/0xa)+parseInt(_0x4ea5ad(0x102))/0xb;if(_0x58b7e3===_0x5b2890)break;else _0x122c2a['push'](_0x122c2a['shift']());}catch(_0x7b7b26){_0x122c2a['push'](_0x122c2a['shift']());}}}(a6_0x4a9b,0x4f7e9));import{getMyApps}from'../../core/api-client.js';import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';function a6_0x3436(_0x50df1b,_0x54457f){_0x50df1b=_0x50df1b-0xfd;const _0x4a9b73=a6_0x4a9b();let _0x3436fa=_0x4a9b73[_0x50df1b];return _0x3436fa;}import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';import{productEnv}from'../../constant/product.js';export function shouldUseMockRemoteApps(){const _0x13d02d=a6_0x3436,_0x319602=(productEnv('APP_LIST_SOURCE')||'')[_0x13d02d(0x106)]()['toLowerCase']();return _0x319602===_0x13d02d(0xfd);}function a6_0x4a9b(){const _0x523b3a=['toISOString','fetchedAt','10SBsjrY','156200VWDxmk','2855908zkQsFW','386108UeckUZ','11347FRLRpO','1980ZYoHJX','trim','items','38016OajHzL','1572024VTmhqi','cache','94NPcWrX','remote','2344UXmuIZ','6450NLvrgh','mock'];a6_0x4a9b=function(){return _0x523b3a;};return a6_0x4a9b();}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0xba19c4){const _0x53c992=a6_0x3436,{env:_0x4a15d8,accessKey:_0x499748,localOnly:localOnly=![],noCache:noCache=![]}=_0xba19c4,_0x47ead7=readCachedAppList(_0x4a15d8,_0x499748),_0x70b1e3=_0x499748?.[_0x53c992(0x106)]()?getAppCacheFilePath(_0x4a15d8,_0x499748):null;if(localOnly)return{'items':_0x47ead7?.[_0x53c992(0x107)]??[],'source':_0x53c992(0x10a),'fetchedAt':_0x47ead7?.[_0x53c992(0xff)]??null,'cachePath':_0x70b1e3};try{const _0x13eb8d=await getRemoteAppItems(),_0x51ba72=shouldUseMockRemoteApps()?_0x53c992(0xfd):_0x53c992(0x10c),_0xec9b7c=new Date()[_0x53c992(0xfe)](),_0x41ca9d=_0x499748?.[_0x53c992(0x106)]()?writeCachedAppList(_0x4a15d8,_0x499748,{'env':_0x4a15d8,'fetchedAt':_0xec9b7c,'source':_0x51ba72,'items':_0x13eb8d}):null;return{'items':_0x13eb8d,'source':_0x51ba72,'fetchedAt':_0xec9b7c,'cachePath':_0x41ca9d};}catch(_0x5f3993){if(!noCache&&_0x47ead7)return{'items':_0x47ead7[_0x53c992(0x107)],'source':'cache','fetchedAt':_0x47ead7[_0x53c992(0xff)],'cachePath':_0x70b1e3};throw _0x5f3993;}}
@@ -1 +1 @@
1
- (function(_0x1fcaec,_0x214369){const _0x2451a8=a7_0x5176,_0x57773c=_0x1fcaec();while(!![]){try{const _0x1b8928=parseInt(_0x2451a8(0x8a))/0x1*(-parseInt(_0x2451a8(0x86))/0x2)+-parseInt(_0x2451a8(0x7c))/0x3+-parseInt(_0x2451a8(0x81))/0x4*(-parseInt(_0x2451a8(0x7b))/0x5)+parseInt(_0x2451a8(0x88))/0x6*(parseInt(_0x2451a8(0x7d))/0x7)+-parseInt(_0x2451a8(0x82))/0x8+parseInt(_0x2451a8(0x87))/0x9+parseInt(_0x2451a8(0x8c))/0xa*(-parseInt(_0x2451a8(0x84))/0xb);if(_0x1b8928===_0x214369)break;else _0x57773c['push'](_0x57773c['shift']());}catch(_0x36155b){_0x57773c['push'](_0x57773c['shift']());}}}(a7_0x46d6,0xcd8b1));function a7_0x5176(_0x4172ef,_0xf22f2f){_0x4172ef=_0x4172ef-0x7a;const _0x46d6f1=a7_0x46d6();let _0x5176c6=_0x46d6f1[_0x4172ef];return _0x5176c6;}function a7_0x46d6(){const _0x15e452=['currentApp','global','4VXAiWY','1683040cLWozg','named','51293CFwVhW','definedIn','2LqbqrJ','2429433vaPGvr','5272368pwUkSs','find','1163298vGLNrS','isCurrent','220ekVKeK','appcode','defaultApp','local','name','8393370wtPwdP','1527510TuRqKk','7JTgKoa','trim'];a7_0x46d6=function(){return _0x15e452;};return a7_0x46d6();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x4676a5,_0x35c9e1){const _0x477870=a7_0x5176;if(!_0x35c9e1)return;const _0x77cfa4=!!(_0x35c9e1[_0x477870(0x7f)]??_0x35c9e1[_0x477870(0x8e)]);for(const _0x364a78 of _0x4676a5){_0x364a78[_0x477870(0x8b)]=![];}const _0x4fedc8=_0x35c9e1['appCode']!=null?String(_0x35c9e1['appCode'])['trim']():'';if(_0x77cfa4){const _0x5ddd5c=_0x35c9e1['currentApp']??_0x35c9e1[_0x477870(0x8e)];if(_0x5ddd5c){const _0x2cc9a5=_0x4676a5[_0x477870(0x89)](_0x3154d2=>_0x3154d2[_0x477870(0x83)]===!![]&&_0x3154d2[_0x477870(0x7a)]===_0x5ddd5c&&_0x3154d2[_0x477870(0x85)]===_0x477870(0x8f)),_0x5597c8=_0x2cc9a5??_0x4676a5[_0x477870(0x89)](_0x450f3c=>_0x450f3c[_0x477870(0x83)]===!![]&&_0x450f3c[_0x477870(0x7a)]===_0x5ddd5c);_0x5597c8&&(_0x5597c8['isCurrent']=!![]);}return;}if(!_0x4fedc8)return;for(const _0x25e148 of _0x4676a5){String(_0x25e148[_0x477870(0x8d)]??'')[_0x477870(0x7e)]()===_0x4fedc8&&(_0x25e148[_0x477870(0x8b)]=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x1395d4){const _0x536822=a7_0x5176;return formatScopeLabel(_0x1395d4[_0x536822(0x80)]?_0x536822(0x80):'project');}
1
+ (function(_0x361af2,_0x109c43){const _0x48bf1d=a7_0x1dde,_0x40909c=_0x361af2();while(!![]){try{const _0x322e37=parseInt(_0x48bf1d(0xdb))/0x1*(parseInt(_0x48bf1d(0xe0))/0x2)+-parseInt(_0x48bf1d(0xd1))/0x3+parseInt(_0x48bf1d(0xdf))/0x4+parseInt(_0x48bf1d(0xd2))/0x5+-parseInt(_0x48bf1d(0xdc))/0x6*(parseInt(_0x48bf1d(0xdd))/0x7)+-parseInt(_0x48bf1d(0xda))/0x8+-parseInt(_0x48bf1d(0xe1))/0x9;if(_0x322e37===_0x109c43)break;else _0x40909c['push'](_0x40909c['shift']());}catch(_0x101e3e){_0x40909c['push'](_0x40909c['shift']());}}}(a7_0x356a,0xa8c85));import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};function a7_0x1dde(_0x33666b,_0x5b4b98){_0x33666b=_0x33666b-0xcf;const _0x356a11=a7_0x356a();let _0x1dde0c=_0x356a11[_0x33666b];return _0x1dde0c;}export function enrichAppListItemsWithMergedSelection(_0x3e0b3e,_0x2d7707){const _0x153cd3=a7_0x1dde;if(!_0x2d7707)return;const _0x4d2f1a=!!(_0x2d7707[_0x153cd3(0xe2)]??_0x2d7707[_0x153cd3(0xd9)]);for(const _0x43893e of _0x3e0b3e){_0x43893e[_0x153cd3(0xd6)]=![];}const _0x43c759=_0x2d7707[_0x153cd3(0xd4)]!=null?String(_0x2d7707[_0x153cd3(0xd4)])[_0x153cd3(0xd5)]():'';if(_0x4d2f1a){const _0x206f08=_0x2d7707[_0x153cd3(0xe2)]??_0x2d7707[_0x153cd3(0xd9)];if(_0x206f08){const _0x548a4e=_0x3e0b3e[_0x153cd3(0xcf)](_0x58e46b=>_0x58e46b[_0x153cd3(0xd8)]===!![]&&_0x58e46b[_0x153cd3(0xd0)]===_0x206f08&&_0x58e46b[_0x153cd3(0xd7)]===_0x153cd3(0xde)),_0x2d697b=_0x548a4e??_0x3e0b3e[_0x153cd3(0xcf)](_0x42587c=>_0x42587c[_0x153cd3(0xd8)]===!![]&&_0x42587c['name']===_0x206f08);_0x2d697b&&(_0x2d697b['isCurrent']=!![]);}return;}if(!_0x43c759)return;for(const _0x21b76f of _0x3e0b3e){String(_0x21b76f['appcode']??'')['trim']()===_0x43c759&&(_0x21b76f['isCurrent']=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';function a7_0x356a(){const _0x49df8c=['definedIn','named','defaultApp','3880984AcSHHw','1951ABzKdA','6MmbAOw','2267559jZdjue','local','4511496tfeVQd','334nJbVep','203526fliqjr','currentApp','find','name','1286808wZmswX','2491260EpoeGt','project','appCode','trim','isCurrent'];a7_0x356a=function(){return _0x49df8c;};return a7_0x356a();}export function scopeLabel(_0x4b4223){const _0x49a01e=a7_0x1dde;return formatScopeLabel(_0x4b4223['global']?'global':_0x49a01e(0xd3));}
@@ -1 +1 @@
1
- const a8_0x51295c=a8_0x5096;function a8_0x1cb6(){const _0x24c965=['read','Optional\x20source\x20filter,\x20for\x20example\x20AGENT','join','6079248jJglRn','Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','dayjs','list','content','File\x20is\x20not\x20a\x20regular\x20file:\x20','object','/client/artifact/','List\x20current-app\x20react_module\x20Artifacts','deleted','metadata','compiledContent','--metadata\x20must\x20be\x20a\x20JSON\x20object.','Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file','appCode','11726960aZBJCq','react_module\x20imports\x20are\x20limited\x20to:\x20','some','bool','Preview:\x20create\x20react_module\x20Artifact','artifactType','verbose','1719kkkmRf','8kQrPPl','528918rnVAbX','map','createTime','/update','artifact','startsWith','utf8','isFile','isArray','Created\x20Artifact\x20','Optional\x20favorite-state\x20filter','Artifact\x20source\x20file\x20is\x20blank.','trim','body','exec','string','updateTime','Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','Updated\x20Artifact\x20','parse','File\x20path\x20is\x20required.','update','validation','flag','name','file','POST','source','favorite','lodash','581161VJLddr','react','/client/artifact/create','2372rHSMmt','Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped','write','react-dom','Artifact\x20display\x20name','split','lastIndex','description','Artifact\x20ID','length','10blLuIF','1308000HYLdHy','num','antd','3433052DXqwXP','detail','build','str'];a8_0x1cb6=function(){return _0x24c965;};return a8_0x1cb6();}(function(_0xed7d8,_0x40deee){const _0x5bb193=a8_0x5096,_0x2899a5=_0xed7d8();while(!![]){try{const _0x4ba57c=parseInt(_0x5bb193(0x13c))/0x1+parseInt(_0x5bb193(0x13f))/0x2*(-parseInt(_0x5bb193(0x11c))/0x3)+-parseInt(_0x5bb193(0x14a))/0x4+-parseInt(_0x5bb193(0x149))/0x5*(parseInt(_0x5bb193(0x11e))/0x6)+parseInt(_0x5bb193(0x14d))/0x7*(parseInt(_0x5bb193(0x11d))/0x8)+-parseInt(_0x5bb193(0x154))/0x9+parseInt(_0x5bb193(0x163))/0xa;if(_0x4ba57c===_0x40deee)break;else _0x2899a5['push'](_0x2899a5['shift']());}catch(_0x22efce){_0x2899a5['push'](_0x2899a5['shift']());}}}(a8_0x1cb6,0x5e391));import{existsSync,readFileSync,statSync}from'node:fs';import{createRuntimeArtifact,getRuntimeArtifact,listRuntimeArtifacts,updateRuntimeArtifact}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const ARTIFACT_TYPE_REACT_MODULE='react_module',ARTIFACT_SOURCE_AGENT='AGENT',ALLOWED_REACT_MODULE_IMPORTS=[a8_0x51295c(0x13d),a8_0x51295c(0x142),a8_0x51295c(0x13b),a8_0x51295c(0x156),a8_0x51295c(0x14c),'@ant-design/icons'];export const ALLOWED_REACT_MODULE_IMPORTS_TEXT=ALLOWED_REACT_MODULE_IMPORTS[a8_0x51295c(0x153)](',\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_0x51295c(0x137),'type':a8_0x51295c(0x12d),'required':!![],'description':a8_0x51295c(0x161)},ARTIFACT_NAME_FLAG={'name':a8_0x51295c(0x136),'type':a8_0x51295c(0x12d),'description':a8_0x51295c(0x143)},METADATA_FLAG={'name':a8_0x51295c(0x15e),'type':a8_0x51295c(0x12d),'description':a8_0x51295c(0x140)};function isPlainObject(_0x9e1bdc){const _0x44bccb=a8_0x51295c;return typeof _0x9e1bdc===_0x44bccb(0x15a)&&_0x9e1bdc!==null&&!Array[_0x44bccb(0x126)](_0x9e1bdc);}function readSourceFile(_0x43fd1b){const _0x27a54c=a8_0x51295c;if(!_0x43fd1b)throw CliErrors['validation'](_0x27a54c(0x132));if(!existsSync(_0x43fd1b))throw CliErrors[_0x27a54c(0x134)]('File\x20not\x20found:\x20'+_0x43fd1b);if(!statSync(_0x43fd1b)[_0x27a54c(0x125)]())throw CliErrors[_0x27a54c(0x134)](_0x27a54c(0x159)+_0x43fd1b);const _0x5d2e8e=readFileSync(_0x43fd1b,_0x27a54c(0x124));return validateReactModuleSource(_0x5d2e8e),_0x5d2e8e;}function parseMetadata(_0x575a5a){const _0x4283e7=a8_0x51295c;if(!_0x575a5a)return undefined;let _0x2149cf;try{_0x2149cf=JSON[_0x4283e7(0x131)](_0x575a5a);}catch{throw CliErrors['validation']('Invalid\x20JSON\x20for\x20--metadata:\x20'+_0x575a5a);}if(!isPlainObject(_0x2149cf))throw CliErrors[_0x4283e7(0x134)](_0x4283e7(0x160));const _0x507db0={..._0x2149cf};return delete _0x507db0[_0x4283e7(0x15f)],_0x507db0;}function getPackageName(_0x5b042c){const _0x346620=a8_0x51295c;if(_0x5b042c[_0x346620(0x123)]('@')){const [_0x3b153f,_0xaadc3]=_0x5b042c[_0x346620(0x144)]('/');return _0x3b153f&&_0xaadc3?_0x3b153f+'/'+_0xaadc3:_0x5b042c;}return _0x5b042c['split']('/')[0x0]||_0x5b042c;}function validateAllowedImports(_0x352510){const _0x4fa370=a8_0x51295c,_0x15b4b4=new Set();for(const _0x2e4c42 of IMPORT_SOURCE_PATTERNS){_0x2e4c42[_0x4fa370(0x145)]=0x0;let _0x2c7700;while((_0x2c7700=_0x2e4c42[_0x4fa370(0x12c)](_0x352510))!==null){const _0x591c93=_0x2c7700[0x1]?.[_0x4fa370(0x12a)]();_0x591c93&&_0x15b4b4['add'](_0x591c93);}}const _0x5f2c34=[..._0x15b4b4][_0x4fa370(0x11f)](getPackageName)['filter'](_0x4593d3=>!ALLOWED_REACT_MODULE_IMPORTS['includes'](_0x4593d3));if(_0x5f2c34[_0x4fa370(0x148)]>0x0)throw CliErrors['validation'](_0x4fa370(0x164)+ALLOWED_REACT_MODULE_IMPORTS_TEXT+'.\x20Unsupported:\x20'+[...new Set(_0x5f2c34)]['join'](',\x20'));}export function validateReactModuleSource(_0xcde4c5){const _0x5e736f=a8_0x51295c;if(!_0xcde4c5[_0x5e736f(0x12a)]())throw CliErrors[_0x5e736f(0x134)](_0x5e736f(0x129));if(PAGE_LEVEL_PATTERNS[_0x5e736f(0x165)](_0x1f9e8a=>_0x1f9e8a['test'](_0xcde4c5)))throw CliErrors[_0x5e736f(0x134)]('react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.');validateAllowedImports(_0xcde4c5);}function buildArtifactInput(_0x327236){const _0x115fb6=a8_0x51295c,_0x9d552c=readSourceFile(_0x327236[_0x115fb6(0x150)](_0x115fb6(0x137))),_0x5207a7=_0x327236[_0x115fb6(0x150)]('name')[_0x115fb6(0x12a)](),_0x550443=parseMetadata(_0x327236[_0x115fb6(0x150)]('metadata'));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x5207a7?{'name':_0x5207a7}:{},'content':_0x9d552c,..._0x550443?{'metadata':_0x550443}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0x2b643a){const _0x16840e=a8_0x51295c;return{'id':_0x2b643a['id'],'name':_0x2b643a['name'],'artifactType':_0x2b643a[_0x16840e(0x11a)],'source':_0x2b643a['source'],'favorite':_0x2b643a[_0x16840e(0x13a)],'deleted':_0x2b643a['deleted'],'createTime':_0x2b643a[_0x16840e(0x120)],'updateTime':_0x2b643a[_0x16840e(0x12e)]};}function detailArtifact(_0x33be49){const _0x30f6ff=a8_0x51295c;return{'id':_0x33be49['id'],'appCode':_0x33be49[_0x30f6ff(0x162)],'name':_0x33be49[_0x30f6ff(0x136)],'artifactType':_0x33be49[_0x30f6ff(0x11a)],'source':_0x33be49['source'],'favorite':_0x33be49['favorite'],'deleted':_0x33be49[_0x30f6ff(0x15d)],'content':_0x33be49[_0x30f6ff(0x158)]??'','compiledContent':_0x33be49[_0x30f6ff(0x15f)],'metadata':_0x33be49[_0x30f6ff(0x15e)]??{},'createTime':_0x33be49[_0x30f6ff(0x120)],'updateTime':_0x33be49['updateTime']};}function readFavoriteFlag(_0x3db310){const _0x1031cc=a8_0x51295c,_0x47c6ad=_0x3db310[_0x1031cc(0x135)](_0x1031cc(0x13a));return _0x47c6ad===undefined||_0x47c6ad===null||_0x47c6ad===''?undefined:_0x3db310[_0x1031cc(0x166)]('favorite');}function a8_0x5096(_0x43c670,_0x2afe7d){_0x43c670=_0x43c670-0x119;const _0x1cb625=a8_0x1cb6();let _0x50965e=_0x1cb625[_0x43c670];return _0x50965e;}const artifactList={'service':a8_0x51295c(0x122),'command':a8_0x51295c(0x157),'description':a8_0x51295c(0x15c),'risk':a8_0x51295c(0x151),'flags':[{'name':a8_0x51295c(0x139),'type':'string','description':a8_0x51295c(0x152)},{'name':a8_0x51295c(0x13a),'type':'boolean','description':a8_0x51295c(0x128)},VERBOSE_FLAG],async 'execute'(_0x1d5e83){const _0x504947=a8_0x51295c,_0x51897d=await listRuntimeArtifacts(_0x1d5e83[_0x504947(0x162)],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x1d5e83[_0x504947(0x150)](_0x504947(0x139))?{'source':_0x1d5e83['str'](_0x504947(0x139))}:{},...readFavoriteFlag(_0x1d5e83)!==undefined?{'favorite':readFavoriteFlag(_0x1d5e83)}:{}});return{'ok':!![],'data':{'total':_0x51897d[_0x504947(0x148)],'items':_0x1d5e83[_0x504947(0x166)](_0x504947(0x11b))?_0x51897d:_0x51897d[_0x504947(0x11f)](summarizeArtifact)}};}},artifactDetail={'service':a8_0x51295c(0x122),'command':a8_0x51295c(0x14e),'description':'Show\x20one\x20Artifact\x20by\x20id','risk':a8_0x51295c(0x151),'flags':[{...ID_FLAG,'description':a8_0x51295c(0x147)}],async 'execute'(_0x3c5cb7){const _0x13b1f0=a8_0x51295c,_0x179771=await getRuntimeArtifact(_0x3c5cb7['num']('id'),_0x3c5cb7[_0x13b1f0(0x162)]);return{'ok':!![],'data':detailArtifact(_0x179771)};}},artifactCreate={'service':a8_0x51295c(0x122),'command':'create','description':a8_0x51295c(0x12f),'risk':a8_0x51295c(0x141),'flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x108662){const _0x5b43e1=a8_0x51295c,_0x513516=buildArtifactInput(_0x108662),_0x3693f9=await createRuntimeArtifact(_0x108662[_0x5b43e1(0x162)],_0x513516);return{'ok':!![],'data':detailArtifact(_0x3693f9),'message':_0x5b43e1(0x127)+_0x3693f9['id']+(_0x3693f9[_0x5b43e1(0x136)]?'\x20('+_0x3693f9[_0x5b43e1(0x136)]+')':'')};},async 'dryRun'(_0x5b9a82){const _0x58cdaf=a8_0x51295c,_0x323afb=buildArtifactInput(_0x5b9a82);return dryRun(_0x58cdaf(0x138),_0x58cdaf(0x13e))[_0x58cdaf(0x12b)]({'appCode':_0x5b9a82[_0x58cdaf(0x162)],..._0x323afb})[_0x58cdaf(0x146)](_0x58cdaf(0x119))[_0x58cdaf(0x14f)]();}},artifactUpdate={'service':a8_0x51295c(0x122),'command':a8_0x51295c(0x133),'description':a8_0x51295c(0x155),'risk':a8_0x51295c(0x141),'flags':[{...ID_FLAG,'description':a8_0x51295c(0x147)},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x265f88){const _0x449174=a8_0x51295c,_0x28901a=_0x265f88[_0x449174(0x14b)]('id'),_0x1a4e91=buildArtifactInput(_0x265f88),_0x6f7380=await updateRuntimeArtifact(_0x28901a,_0x265f88[_0x449174(0x162)],_0x1a4e91);return{'ok':!![],'data':detailArtifact(_0x6f7380),'message':_0x449174(0x130)+_0x6f7380['id']+(_0x6f7380[_0x449174(0x136)]?'\x20('+_0x6f7380[_0x449174(0x136)]+')':'')};},async 'dryRun'(_0x401fbe){const _0x4563f9=a8_0x51295c,_0x551e7=_0x401fbe[_0x4563f9(0x14b)]('id'),_0x4313d2=buildArtifactInput(_0x401fbe);return dryRun(_0x4563f9(0x138),_0x4563f9(0x15b)+_0x551e7+_0x4563f9(0x121))['body']({'appCode':_0x401fbe[_0x4563f9(0x162)],..._0x4313d2})['description']('Preview:\x20update\x20react_module\x20Artifact\x20'+_0x551e7)[_0x4563f9(0x14f)]();}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
1
+ const a8_0x329ebd=a8_0x5c0d;(function(_0x164fee,_0xb637cd){const _0x1680e2=a8_0x5c0d,_0x36dea5=_0x164fee();while(!![]){try{const _0x20b450=parseInt(_0x1680e2(0x1ca))/0x1+-parseInt(_0x1680e2(0x1c1))/0x2+parseInt(_0x1680e2(0x1dc))/0x3+parseInt(_0x1680e2(0x1b7))/0x4+parseInt(_0x1680e2(0x1ef))/0x5*(parseInt(_0x1680e2(0x1cd))/0x6)+-parseInt(_0x1680e2(0x1f0))/0x7+-parseInt(_0x1680e2(0x1da))/0x8*(-parseInt(_0x1680e2(0x1fa))/0x9);if(_0x20b450===_0xb637cd)break;else _0x36dea5['push'](_0x36dea5['shift']());}catch(_0x5c59b3){_0x36dea5['push'](_0x36dea5['shift']());}}}(a8_0x52bf,0xcdc9e));import{existsSync,readFileSync,statSync}from'node:fs';import{createRuntimeArtifact,getRuntimeArtifact,listRuntimeArtifacts,updateRuntimeArtifact}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';function a8_0x52bf(){const _0x1faaad=['isFile','Artifact\x20display\x20name','Updated\x20Artifact\x20','trim','description','/client/artifact/','react_module','flag','Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','Optional\x20favorite-state\x20filter','3744500egpNPn','split','List\x20current-app\x20react_module\x20Artifacts','file','Preview:\x20create\x20react_module\x20Artifact','metadata','test','lodash','react','startsWith','2756860GvHOdQ','read','detail','artifactType','update','Preview:\x20update\x20react_module\x20Artifact\x20','.\x20Unsupported:\x20','write','react_module\x20imports\x20are\x20limited\x20to:\x20','305635wSgkah','appCode','bool','2102904DlfzQg','Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file','includes','join','validation','list','parse','AGENT','Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped','react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.','num','string','updateTime','8HBdjWy','/client/artifact/create','79167WAhFAj','favorite','build','deleted','utf8','Created\x20Artifact\x20','Invalid\x20JSON\x20for\x20--metadata:\x20','boolean','map','react-dom','Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','str','artifact','createTime','POST','content','exec','name','@ant-design/icons','10scWIIQ','9761451cdwAdu','File\x20not\x20found:\x20','compiledContent','dayjs','source','body','verbose','length','--metadata\x20must\x20be\x20a\x20JSON\x20object.','Artifact\x20ID','14820444LwQGmj'];a8_0x52bf=function(){return _0x1faaad;};return a8_0x52bf();}function a8_0x5c0d(_0x407423,_0x35fd41){_0x407423=_0x407423-0x1ae;const _0x52bfe2=a8_0x52bf();let _0x5c0d30=_0x52bfe2[_0x407423];return _0x5c0d30;}import{dryRun}from'../../framework/dryrun.js';const ARTIFACT_TYPE_REACT_MODULE=a8_0x329ebd(0x1b3),ARTIFACT_SOURCE_AGENT=a8_0x329ebd(0x1d4),ALLOWED_REACT_MODULE_IMPORTS=[a8_0x329ebd(0x1bf),a8_0x329ebd(0x1e5),a8_0x329ebd(0x1be),a8_0x329ebd(0x1f3),'antd',a8_0x329ebd(0x1ee)];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':'file','type':a8_0x329ebd(0x1d8),'required':!![],'description':a8_0x329ebd(0x1ce)},ARTIFACT_NAME_FLAG={'name':a8_0x329ebd(0x1ed),'type':'string','description':a8_0x329ebd(0x1ae)},METADATA_FLAG={'name':a8_0x329ebd(0x1bc),'type':a8_0x329ebd(0x1d8),'description':a8_0x329ebd(0x1d5)};function isPlainObject(_0x1738c4){return typeof _0x1738c4==='object'&&_0x1738c4!==null&&!Array['isArray'](_0x1738c4);}function readSourceFile(_0x382045){const _0x5883f7=a8_0x329ebd;if(!_0x382045)throw CliErrors['validation']('File\x20path\x20is\x20required.');if(!existsSync(_0x382045))throw CliErrors[_0x5883f7(0x1d1)](_0x5883f7(0x1f1)+_0x382045);if(!statSync(_0x382045)[_0x5883f7(0x1fb)]())throw CliErrors['validation']('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x382045);const _0x3993e0=readFileSync(_0x382045,_0x5883f7(0x1e0));return validateReactModuleSource(_0x3993e0),_0x3993e0;}function parseMetadata(_0x14019f){const _0x5af15d=a8_0x329ebd;if(!_0x14019f)return undefined;let _0x2a6921;try{_0x2a6921=JSON[_0x5af15d(0x1d3)](_0x14019f);}catch{throw CliErrors[_0x5af15d(0x1d1)](_0x5af15d(0x1e2)+_0x14019f);}if(!isPlainObject(_0x2a6921))throw CliErrors[_0x5af15d(0x1d1)](_0x5af15d(0x1f8));const _0x5d690f={..._0x2a6921};return delete _0x5d690f[_0x5af15d(0x1f2)],_0x5d690f;}function getPackageName(_0x1bb407){const _0x3a596b=a8_0x329ebd;if(_0x1bb407[_0x3a596b(0x1c0)]('@')){const [_0x169413,_0x3ebcf1]=_0x1bb407[_0x3a596b(0x1b8)]('/');return _0x169413&&_0x3ebcf1?_0x169413+'/'+_0x3ebcf1:_0x1bb407;}return _0x1bb407[_0x3a596b(0x1b8)]('/')[0x0]||_0x1bb407;}function validateAllowedImports(_0x554ecd){const _0x2034f8=a8_0x329ebd,_0x561d62=new Set();for(const _0x26d6cb of IMPORT_SOURCE_PATTERNS){_0x26d6cb['lastIndex']=0x0;let _0xeac4b4;while((_0xeac4b4=_0x26d6cb[_0x2034f8(0x1ec)](_0x554ecd))!==null){const _0x28c214=_0xeac4b4[0x1]?.[_0x2034f8(0x1b0)]();_0x28c214&&_0x561d62['add'](_0x28c214);}}const _0x388e7c=[..._0x561d62][_0x2034f8(0x1e4)](getPackageName)['filter'](_0x52d6ff=>!ALLOWED_REACT_MODULE_IMPORTS[_0x2034f8(0x1cf)](_0x52d6ff));if(_0x388e7c[_0x2034f8(0x1f7)]>0x0)throw CliErrors[_0x2034f8(0x1d1)](_0x2034f8(0x1c9)+ALLOWED_REACT_MODULE_IMPORTS_TEXT+_0x2034f8(0x1c7)+[...new Set(_0x388e7c)][_0x2034f8(0x1d0)](',\x20'));}export function validateReactModuleSource(_0x273f3e){const _0x10e1a6=a8_0x329ebd;if(!_0x273f3e[_0x10e1a6(0x1b0)]())throw CliErrors[_0x10e1a6(0x1d1)]('Artifact\x20source\x20file\x20is\x20blank.');if(PAGE_LEVEL_PATTERNS['some'](_0xe3e30c=>_0xe3e30c[_0x10e1a6(0x1bd)](_0x273f3e)))throw CliErrors[_0x10e1a6(0x1d1)](_0x10e1a6(0x1d6));validateAllowedImports(_0x273f3e);}function buildArtifactInput(_0x19e7f7){const _0x30bd64=a8_0x329ebd,_0x185f5c=readSourceFile(_0x19e7f7[_0x30bd64(0x1e7)](_0x30bd64(0x1ba))),_0x417dcb=_0x19e7f7['str']('name')['trim'](),_0x366086=parseMetadata(_0x19e7f7[_0x30bd64(0x1e7)](_0x30bd64(0x1bc)));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x417dcb?{'name':_0x417dcb}:{},'content':_0x185f5c,..._0x366086?{'metadata':_0x366086}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0x341330){const _0x5e51ae=a8_0x329ebd;return{'id':_0x341330['id'],'name':_0x341330['name'],'artifactType':_0x341330[_0x5e51ae(0x1c4)],'source':_0x341330['source'],'favorite':_0x341330[_0x5e51ae(0x1dd)],'deleted':_0x341330[_0x5e51ae(0x1df)],'createTime':_0x341330[_0x5e51ae(0x1e9)],'updateTime':_0x341330[_0x5e51ae(0x1d9)]};}function detailArtifact(_0xd0b2be){const _0x1be49e=a8_0x329ebd;return{'id':_0xd0b2be['id'],'appCode':_0xd0b2be[_0x1be49e(0x1cb)],'name':_0xd0b2be[_0x1be49e(0x1ed)],'artifactType':_0xd0b2be[_0x1be49e(0x1c4)],'source':_0xd0b2be['source'],'favorite':_0xd0b2be[_0x1be49e(0x1dd)],'deleted':_0xd0b2be[_0x1be49e(0x1df)],'content':_0xd0b2be[_0x1be49e(0x1eb)]??'','compiledContent':_0xd0b2be[_0x1be49e(0x1f2)],'metadata':_0xd0b2be[_0x1be49e(0x1bc)]??{},'createTime':_0xd0b2be[_0x1be49e(0x1e9)],'updateTime':_0xd0b2be[_0x1be49e(0x1d9)]};}function readFavoriteFlag(_0x63e46f){const _0x5291ca=a8_0x329ebd,_0x3c6397=_0x63e46f[_0x5291ca(0x1b4)](_0x5291ca(0x1dd));return _0x3c6397===undefined||_0x3c6397===null||_0x3c6397===''?undefined:_0x63e46f[_0x5291ca(0x1cc)](_0x5291ca(0x1dd));}const artifactList={'service':a8_0x329ebd(0x1e8),'command':a8_0x329ebd(0x1d2),'description':a8_0x329ebd(0x1b9),'risk':a8_0x329ebd(0x1c2),'flags':[{'name':a8_0x329ebd(0x1f4),'type':a8_0x329ebd(0x1d8),'description':'Optional\x20source\x20filter,\x20for\x20example\x20AGENT'},{'name':a8_0x329ebd(0x1dd),'type':a8_0x329ebd(0x1e3),'description':a8_0x329ebd(0x1b6)},VERBOSE_FLAG],async 'execute'(_0x1f33b7){const _0x1ba949=a8_0x329ebd,_0x37a6dc=await listRuntimeArtifacts(_0x1f33b7['appCode'],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x1f33b7[_0x1ba949(0x1e7)](_0x1ba949(0x1f4))?{'source':_0x1f33b7['str'](_0x1ba949(0x1f4))}:{},...readFavoriteFlag(_0x1f33b7)!==undefined?{'favorite':readFavoriteFlag(_0x1f33b7)}:{}});return{'ok':!![],'data':{'total':_0x37a6dc[_0x1ba949(0x1f7)],'items':_0x1f33b7[_0x1ba949(0x1cc)](_0x1ba949(0x1f6))?_0x37a6dc:_0x37a6dc['map'](summarizeArtifact)}};}},artifactDetail={'service':a8_0x329ebd(0x1e8),'command':a8_0x329ebd(0x1c3),'description':'Show\x20one\x20Artifact\x20by\x20id','risk':a8_0x329ebd(0x1c2),'flags':[{...ID_FLAG,'description':a8_0x329ebd(0x1f9)}],async 'execute'(_0x5133ef){const _0x15b227=a8_0x329ebd,_0x365c4d=await getRuntimeArtifact(_0x5133ef['num']('id'),_0x5133ef[_0x15b227(0x1cb)]);return{'ok':!![],'data':detailArtifact(_0x365c4d)};}},artifactCreate={'service':a8_0x329ebd(0x1e8),'command':'create','description':a8_0x329ebd(0x1e6),'risk':a8_0x329ebd(0x1c8),'flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x1e3389){const _0x5041c0=a8_0x329ebd,_0x3ae18a=buildArtifactInput(_0x1e3389),_0x36a038=await createRuntimeArtifact(_0x1e3389[_0x5041c0(0x1cb)],_0x3ae18a);return{'ok':!![],'data':detailArtifact(_0x36a038),'message':_0x5041c0(0x1e1)+_0x36a038['id']+(_0x36a038[_0x5041c0(0x1ed)]?'\x20('+_0x36a038['name']+')':'')};},async 'dryRun'(_0x46e6fe){const _0x4d5744=a8_0x329ebd,_0x708ca7=buildArtifactInput(_0x46e6fe);return dryRun(_0x4d5744(0x1ea),_0x4d5744(0x1db))[_0x4d5744(0x1f5)]({'appCode':_0x46e6fe[_0x4d5744(0x1cb)],..._0x708ca7})[_0x4d5744(0x1b1)](_0x4d5744(0x1bb))[_0x4d5744(0x1de)]();}},artifactUpdate={'service':a8_0x329ebd(0x1e8),'command':a8_0x329ebd(0x1c5),'description':a8_0x329ebd(0x1b5),'risk':'write','flags':[{...ID_FLAG,'description':a8_0x329ebd(0x1f9)},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x215f39){const _0x40645b=a8_0x329ebd,_0x17a28b=_0x215f39['num']('id'),_0x59e137=buildArtifactInput(_0x215f39),_0x437d31=await updateRuntimeArtifact(_0x17a28b,_0x215f39[_0x40645b(0x1cb)],_0x59e137);return{'ok':!![],'data':detailArtifact(_0x437d31),'message':_0x40645b(0x1af)+_0x437d31['id']+(_0x437d31['name']?'\x20('+_0x437d31['name']+')':'')};},async 'dryRun'(_0x5d9398){const _0x38f123=a8_0x329ebd,_0x540f5d=_0x5d9398[_0x38f123(0x1d7)]('id'),_0x44117d=buildArtifactInput(_0x5d9398);return dryRun('POST',_0x38f123(0x1b2)+_0x540f5d+'/update')['body']({'appCode':_0x5d9398[_0x38f123(0x1cb)],..._0x44117d})[_0x38f123(0x1b1)](_0x38f123(0x1c6)+_0x540f5d)['build']();}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
@@ -1 +1 @@
1
- const a9_0x4ae2b1=a9_0x1c95;(function(_0x185bd4,_0x5bc23f){const _0xd965a=a9_0x1c95,_0xee4516=_0x185bd4();while(!![]){try{const _0x4614ef=-parseInt(_0xd965a(0xd6))/0x1*(parseInt(_0xd965a(0xd8))/0x2)+parseInt(_0xd965a(0x125))/0x3+parseInt(_0xd965a(0xfc))/0x4*(-parseInt(_0xd965a(0xe6))/0x5)+-parseInt(_0xd965a(0xed))/0x6*(-parseInt(_0xd965a(0x100))/0x7)+parseInt(_0xd965a(0xe2))/0x8*(parseInt(_0xd965a(0xe5))/0x9)+-parseInt(_0xd965a(0xe4))/0xa*(-parseInt(_0xd965a(0xeb))/0xb)+-parseInt(_0xd965a(0x11b))/0xc;if(_0x4614ef===_0x5bc23f)break;else _0xee4516['push'](_0xee4516['shift']());}catch(_0x4bb479){_0xee4516['push'](_0xee4516['shift']());}}}(a9_0xae96,0x3b713));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{getLoginUserInfo}from'../../core/api-client.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function a9_0x1c95(_0x4e2672,_0x8ddb5b){_0x4e2672=_0x4e2672-0xd4;const _0xae9606=a9_0xae96();let _0x1c9574=_0xae9606[_0x4e2672];return _0x1c9574;}function showAccessKeyCreateHint(){const _0x18a4a5=a9_0x1c95;writeCliSideChannelLine(_0x18a4a5(0xf5)+PRODUCT_CONFIG[_0x18a4a5(0x126)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x18a4a5(0xdc)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x18a4a5(0x10b));}function buildAccessKeySetupGuide(){const _0x3b8652=a9_0x1c95;return[_0x3b8652(0xf5)+PRODUCT_CONFIG[_0x3b8652(0x126)]+':',USER_ACCESS_KEY_CREATE_URL,_0x3b8652(0xe9)+CLI_BIN_NAME+_0x3b8652(0xda)]['join']('\x0a');}function canPromptForAccessKey(_0x3b91ff){const _0x49d486=a9_0x1c95;return!_0x3b91ff[_0x49d486(0x12d)]&&process[_0x49d486(0x11c)][_0x49d486(0xd4)]!==![]&&process['stdout'][_0x49d486(0xd4)]!==![];}function resolveAuthScopeFlags(_0x1cee32){const _0x54376a=a9_0x1c95;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x1cee32['bool']('global'),'explicitProject':_0x1cee32[_0x54376a(0x117)](_0x54376a(0x116)),'policy':_0x54376a(0xf0)}));}async function resolveAuthWriteInput(_0x23a5ac){const _0xf01fb9=a9_0x1c95;let _0x251f89=(_0x23a5ac['str'](_0xf01fb9(0xdb))||_0x23a5ac[_0xf01fb9(0xfa)]('ak')||'')['trim']();const _0x316503=(_0x23a5ac['str']('env')||'')[_0xf01fb9(0xd7)]();if(!_0x251f89&&canPromptForAccessKey(_0x23a5ac))try{showAccessKeyCreateHint(),_0x251f89=await promptAccessKey('');}catch(_0x267893){if(isAbortPrompt(_0x267893))throw CliErrors['cancelled']();throw _0x267893;}if(!_0x251f89)throw CliErrors[_0xf01fb9(0xee)](_0xf01fb9(0x11e),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0xf01fb9(0x11f)](_0x251f89))throw CliErrors[_0xf01fb9(0xee)](_0xf01fb9(0x12a)+_0x251f89+'\x22',_0xf01fb9(0xf4));if(!_0x316503)return{'accessKey':_0x251f89};const _0x40ee50=normalizeEnv(_0x316503);return{'accessKey':_0x251f89,'env':isDaily(_0x40ee50)?_0xf01fb9(0xfb):isDev(_0x40ee50)?'development':'production'};}export const authDefinitions=[{'service':a9_0x4ae2b1(0x110),'command':a9_0x4ae2b1(0x10d),'description':a9_0x4ae2b1(0x113),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x4ae2b1(0xdb),'type':a9_0x4ae2b1(0x121),'description':a9_0x4ae2b1(0xf8)},{'name':'ak','type':a9_0x4ae2b1(0x121),'description':a9_0x4ae2b1(0x115)},{'name':'global','type':a9_0x4ae2b1(0x10e),'description':a9_0x4ae2b1(0xe1),'default':!![]},{'name':a9_0x4ae2b1(0x116),'type':a9_0x4ae2b1(0x10e),'description':a9_0x4ae2b1(0x12c),'default':![]}],async 'execute'(_0x44e84d){const _0x51f771=a9_0x4ae2b1;if(_0x44e84d[_0x51f771(0x117)]('yes'))throw CliErrors['validation'](_0x51f771(0x109),_0x51f771(0xff)+CLI_BIN_NAME+_0x51f771(0xf9)+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.');const _0x16ee74=(_0x44e84d[_0x51f771(0xfa)](_0x51f771(0xdb))||_0x44e84d[_0x51f771(0xfa)]('ak')||'')['trim']();if(!_0x16ee74&&_0x44e84d[_0x51f771(0x12d)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x414eda=await resolveAuthWriteInput(_0x44e84d),_0x551894=resolveAuthScopeFlags(_0x44e84d),_0x5b3b41=readScopedConfig(_0x551894);_0x5b3b41[_0x51f771(0x122)]=_0x414eda['accessKey'];_0x414eda[_0x51f771(0xe7)]&&(_0x5b3b41[_0x51f771(0xe7)]=_0x414eda[_0x51f771(0xe7)]);writeScopedConfig(_0x5b3b41,_0x551894);const _0x349d51=_0x551894[_0x51f771(0x118)]?'global':'project',_0x2faf69=_0x5b3b41[_0x51f771(0xe7)]?_0x51f771(0x123)+_0x5b3b41[_0x51f771(0xe7)]+'.':'';return{'ok':!![],'message':_0x51f771(0xef)+_0x349d51+_0x51f771(0x101)+_0x2faf69+_0x51f771(0x105)+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':a9_0x4ae2b1(0x110),'command':a9_0x4ae2b1(0xe0),'description':a9_0x4ae2b1(0x112),'risk':a9_0x4ae2b1(0xe8),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x4ae2b1(0xdb),'type':a9_0x4ae2b1(0x121),'description':a9_0x4ae2b1(0xf8)},{'name':'ak','type':a9_0x4ae2b1(0x121),'description':a9_0x4ae2b1(0x115)},{'name':'env','type':a9_0x4ae2b1(0x121),'description':a9_0x4ae2b1(0x119)},{'name':a9_0x4ae2b1(0x118),'type':a9_0x4ae2b1(0x10e),'description':a9_0x4ae2b1(0xe1),'default':!![]},{'name':a9_0x4ae2b1(0x116),'type':a9_0x4ae2b1(0x10e),'description':a9_0x4ae2b1(0x12c),'default':![]}],async 'execute'(_0x5d7666){const _0x2aa2ab=a9_0x4ae2b1,_0x114f7f=await resolveAuthWriteInput(_0x5d7666),_0x57eebc=resolveAuthScopeFlags(_0x5d7666),_0x5cdb46={'accessKey':_0x114f7f[_0x2aa2ab(0x122)]};_0x114f7f[_0x2aa2ab(0xe7)]&&(_0x5cdb46['env']=_0x114f7f[_0x2aa2ab(0xe7)]);writeScopedConfig(_0x5cdb46,_0x57eebc);const _0x1e704c=_0x57eebc[_0x2aa2ab(0x118)]?_0x2aa2ab(0x118):_0x2aa2ab(0x116),_0x1c76d1=_0x5cdb46['env']?_0x2aa2ab(0x123)+_0x5cdb46[_0x2aa2ab(0xe7)]+'.':'';return{'ok':!![],'message':_0x2aa2ab(0x120)+_0x1e704c+_0x2aa2ab(0xdd)+_0x1c76d1+_0x2aa2ab(0x105)+CLI_BIN_NAME+_0x2aa2ab(0x106)};}},{'service':a9_0x4ae2b1(0x110),'command':a9_0x4ae2b1(0x127),'description':'Clear\x20accessKey\x20from\x20config','risk':a9_0x4ae2b1(0xe8),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x4ae2b1(0x118),'type':a9_0x4ae2b1(0x10e),'description':'Clear\x20from\x20global\x20config\x20(default)','default':!![]},{'name':a9_0x4ae2b1(0x116),'type':a9_0x4ae2b1(0x10e),'description':a9_0x4ae2b1(0xd9),'default':![]}],async 'execute'(_0x497d5e){const _0x5dc7df=a9_0x4ae2b1,_0x141586=resolveAuthScopeFlags(_0x497d5e),_0x149420=readScopedConfig(_0x141586),_0x262b8f=!!_0x149420[_0x5dc7df(0x122)];delete _0x149420[_0x5dc7df(0x122)],writeScopedConfig(_0x149420,_0x141586);const _0x482e2e=_0x141586[_0x5dc7df(0x118)]?_0x5dc7df(0x118):_0x5dc7df(0x116);if(_0x262b8f)return{'ok':!![],'message':_0x5dc7df(0x102)+_0x482e2e+_0x5dc7df(0x101)};return{'ok':!![],'message':_0x5dc7df(0x11a)+_0x482e2e+_0x5dc7df(0xec)};}},{'service':a9_0x4ae2b1(0x110),'command':a9_0x4ae2b1(0x107),'description':a9_0x4ae2b1(0x128),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x4ae2b1(0x118),'type':'boolean','description':a9_0x4ae2b1(0xf1),'default':!![]},{'name':'project','type':'boolean','description':'Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x14fb46){const _0x297450=a9_0x4ae2b1,_0x1cad7c=resolveAuthScopeFlags(_0x14fb46),_0x5bcfef=readScopedConfig(_0x1cad7c),_0x233a64=productEnvName('ACCESS_KEY'),_0x5aaeca=productEnv(_0x297450(0xdf))||undefined,_0x115e51=_0x5bcfef[_0x297450(0x122)]||undefined,_0xf8fbe7=_0x5aaeca||_0x115e51,_0x2522a4=_0x5aaeca?_0x233a64+'\x20env\x20var':_0x115e51?(_0x1cad7c['global']?_0x297450(0x118):_0x297450(0x116))+_0x297450(0xea):null,_0x583aa4=[_0x297450(0xfd)+AUTH_MODE[_0x297450(0x124)]];if(_0xf8fbe7){const _0xaf9a83=_0xf8fbe7[_0x297450(0xf6)]>0x8?''+_0xf8fbe7[_0x297450(0x10a)](0x0,0x8)+'*'[_0x297450(0xf7)](_0xf8fbe7[_0x297450(0xf6)]-0x8):_0xf8fbe7;_0x583aa4['push'](_0x297450(0x114)+_0xaf9a83+(_0x2522a4?_0x297450(0x11d)+_0x2522a4+')':''));}return!_0xf8fbe7&&(_0x583aa4[_0x297450(0xd5)](''),_0x583aa4[_0x297450(0xd5)]('No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:'),_0x583aa4[_0x297450(0xd5)](''),_0x583aa4[_0x297450(0xd5)](_0x297450(0x129)+CLI_BIN_NAME+_0x297450(0x10c)),_0x583aa4[_0x297450(0xd5)](''),_0x583aa4[_0x297450(0xd5)](_0x297450(0x103)+PRODUCT_CONFIG[_0x297450(0x111)]+')'),_0x583aa4['push'](_0x297450(0xde)),_0x583aa4[_0x297450(0xd5)](''),_0x583aa4[_0x297450(0xd5)](_0x297450(0xfe)),_0x583aa4[_0x297450(0xd5)](_0x297450(0x108)+_0x233a64+_0x297450(0xf3)),_0x583aa4[_0x297450(0xd5)](''),_0x583aa4[_0x297450(0xd5)](_0x297450(0xf2)+CLI_BIN_NAME+'\x20auth\x20status'),_0x583aa4[_0x297450(0xd5)](_0x297450(0x10f)+CLI_BIN_NAME+'\x20doctor')),{'ok':!![],'message':_0x583aa4[_0x297450(0x12b)]('\x0a')};}},{'service':a9_0x4ae2b1(0x110),'command':'info','description':'Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','risk':'read','requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x2ed5ab){const _0x428013=a9_0x4ae2b1,_0x1e0e12=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x1e0e12,'meta':{'env':_0x2ed5ab[_0x428013(0xe3)]??_0x428013(0x104)}}};}}];function a9_0xae96(){const _0x202417=['auth','newConfigFileName','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','AccessKey:\x20','Shorthand\x20for\x20--access-key','project','bool','global','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','No\x20AccessKey\x20found\x20in\x20','5705460pDanSl','stdin','\x20(via\x20','Missing\x20accessKey.','test','Auth\x20config\x20reinitialized\x20in\x20','string','accessKey','\x20Current\x20env:\x20','ClientAk','1358436VfzxHz','userCenterDisplayName','logout','Show\x20current\x20authentication\x20status','Option\x20A:\x20','Invalid\x20accessKey\x20format:\x20\x22','join','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','nonInteractive','isTTY','push','201573szDfTS','trim','4uJisJg','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','access-key','Tip:\x20you\x20can\x20also\x20run:','\x20scope.','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','ACCESS_KEY','init','Write\x20to\x20global\x20config\x20(default)','34792nkwVun','envName','3822240dxxefa','990pEOago','30tTYsvc','env','write','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','\x20config','11XOZIdh','\x20config.\x20Nothing\x20to\x20clear.','1350156SJqFoT','validation','AccessKey\x20saved\x20to\x20','global-default','Read\x20from\x20global\x20config\x20(default)','Then\x20verify\x20with:\x20','=ak_xxx','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','length','repeat','AccessKey\x20(ak_xxx...)','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','str','daily','277584KhfcVM','Auth\x20mode:\x20','Option\x20C:\x20environment\x20variable','Use\x20`','7MQwJEK','\x20config.','AccessKey\x20cleared\x20from\x20','Option\x20B:\x20apps\x20config\x20(','production','\x20Verify:\x20','\x20auth\x20status','status','\x20\x20export\x20','`auth\x20login`\x20does\x20not\x20support\x20--yes.','slice','\x20auth\x20login\x20--access-key\x20<ak_xxx>','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','login','boolean','If\x20command\x20execution\x20still\x20fails,\x20run:\x20'];a9_0xae96=function(){return _0x202417;};return a9_0xae96();}
1
+ const a9_0x4602e2=a9_0x503f;(function(_0x17bc53,_0x352e8a){const _0x29eb07=a9_0x503f,_0x10f921=_0x17bc53();while(!![]){try{const _0x582020=-parseInt(_0x29eb07(0x1b3))/0x1*(-parseInt(_0x29eb07(0x180))/0x2)+parseInt(_0x29eb07(0x1ba))/0x3*(-parseInt(_0x29eb07(0x1c7))/0x4)+parseInt(_0x29eb07(0x1d9))/0x5*(-parseInt(_0x29eb07(0x1c8))/0x6)+-parseInt(_0x29eb07(0x1c3))/0x7*(-parseInt(_0x29eb07(0x1ae))/0x8)+parseInt(_0x29eb07(0x1c0))/0x9*(-parseInt(_0x29eb07(0x184))/0xa)+-parseInt(_0x29eb07(0x18b))/0xb+parseInt(_0x29eb07(0x18c))/0xc;if(_0x582020===_0x352e8a)break;else _0x10f921['push'](_0x10f921['shift']());}catch(_0x2a7c83){_0x10f921['push'](_0x10f921['shift']());}}}(a9_0x2480,0xce2d6));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a9_0x2480(){const _0x4df85b=['auth','isTTY','\x20(via\x20','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','read','init','write','access-key','AccessKey\x20cleared\x20from\x20','env','Use\x20`','cancelled','5936bluwTf','AccessKey\x20saved\x20to\x20','newConfigFileName','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','logout','1136412GwjayA','validation','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','push','global-default','\x20auth\x20status','boolean','9CEPdVt','Option\x20A:\x20','daily','yes','Auth\x20mode:\x20','\x20config','14577039xMbIOO','project','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','12964BaTfib','Show\x20current\x20authentication\x20status','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','info','546484HsPIWx','30BdmiiQ','AccessKey:\x20','Shorthand\x20for\x20--access-key','trim','bool','\x20scope.','envName','Invalid\x20accessKey\x20format:\x20\x22','stdout','Option\x20C:\x20environment\x20variable','string','Tip:\x20you\x20can\x20also\x20run:','ACCESS_KEY','slice','stdin','production','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','1688365GuhXTV','2hAIPZU','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','\x20Current\x20env:\x20','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','10SumtJL','\x20doctor','ClientAk','\x20\x20export\x20','Clear\x20from\x20global\x20config\x20(default)','development','accessKey','13704130mULJXS','39571620gIQLpA','`auth\x20login`\x20does\x20not\x20support\x20--yes.','Option\x20B:\x20apps\x20config\x20(','\x20config.','Read\x20from\x20global\x20config\x20(default)','join','\x20env\x20var','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','str','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','global','length','Write\x20to\x20global\x20config\x20(default)','test','Then\x20verify\x20with:\x20','\x20auth\x20login\x20--access-key\x20<ak_xxx>','userCenterDisplayName'];a9_0x2480=function(){return _0x4df85b;};return a9_0x2480();}import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';function a9_0x503f(_0x8ebd36,_0x13402c){_0x8ebd36=_0x8ebd36-0x180;const _0x248042=a9_0x2480();let _0x503f29=_0x248042[_0x8ebd36];return _0x503f29;}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 _0x2a8b04=a9_0x503f;writeCliSideChannelLine(_0x2a8b04(0x193)+PRODUCT_CONFIG['userCenterDisplayName']+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x2a8b04(0x1d3)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x2a8b04(0x1a0));}function buildAccessKeySetupGuide(){const _0x428921=a9_0x503f;return[_0x428921(0x193)+PRODUCT_CONFIG[_0x428921(0x1a1)]+':',USER_ACCESS_KEY_CREATE_URL,_0x428921(0x1b5)+CLI_BIN_NAME+_0x428921(0x1d8)][_0x428921(0x191)]('\x0a');}function canPromptForAccessKey(_0x2a9af9){const _0x267d8a=a9_0x503f;return!_0x2a9af9['nonInteractive']&&process[_0x267d8a(0x1d6)]['isTTY']!==![]&&process[_0x267d8a(0x1d0)][_0x267d8a(0x1a3)]!==![];}function resolveAuthScopeFlags(_0x5c14f1){const _0x39da62=a9_0x503f;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x5c14f1[_0x39da62(0x1cc)](_0x39da62(0x19b)),'explicitProject':_0x5c14f1[_0x39da62(0x1cc)](_0x39da62(0x1c1)),'policy':_0x39da62(0x1b7)}));}async function resolveAuthWriteInput(_0x40610d){const _0x105cf3=a9_0x503f;let _0x5dd246=(_0x40610d['str'](_0x105cf3(0x1a9))||_0x40610d[_0x105cf3(0x199)]('ak')||'')[_0x105cf3(0x1cb)]();const _0x550d53=(_0x40610d[_0x105cf3(0x199)]('env')||'')[_0x105cf3(0x1cb)]();if(!_0x5dd246&&canPromptForAccessKey(_0x40610d))try{showAccessKeyCreateHint(),_0x5dd246=await promptAccessKey('');}catch(_0x348fa3){if(isAbortPrompt(_0x348fa3))throw CliErrors[_0x105cf3(0x1ad)]();throw _0x348fa3;}if(!_0x5dd246)throw CliErrors[_0x105cf3(0x1b4)]('Missing\x20accessKey.',buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x105cf3(0x19e)](_0x5dd246))throw CliErrors['validation'](_0x105cf3(0x1cf)+_0x5dd246+'\x22',_0x105cf3(0x1c2));if(!_0x550d53)return{'accessKey':_0x5dd246};const _0x11b617=normalizeEnv(_0x550d53);return{'accessKey':_0x5dd246,'env':isDaily(_0x11b617)?_0x105cf3(0x1bc):isDev(_0x11b617)?_0x105cf3(0x189):_0x105cf3(0x1d7)};}export const authDefinitions=[{'service':a9_0x4602e2(0x1a2),'command':'login','description':a9_0x4602e2(0x194),'risk':a9_0x4602e2(0x1a8),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x4602e2(0x1a9),'type':'string','description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':a9_0x4602e2(0x1d2),'description':a9_0x4602e2(0x1ca)},{'name':'global','type':a9_0x4602e2(0x1b9),'description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':'project','type':'boolean','description':a9_0x4602e2(0x19a),'default':![]}],async 'execute'(_0x9e93c9){const _0x4de112=a9_0x4602e2;if(_0x9e93c9['bool'](_0x4de112(0x1bd)))throw CliErrors[_0x4de112(0x1b4)](_0x4de112(0x18d),_0x4de112(0x1ac)+CLI_BIN_NAME+_0x4de112(0x1c5)+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.');const _0x22b59b=(_0x9e93c9[_0x4de112(0x199)](_0x4de112(0x1a9))||_0x9e93c9[_0x4de112(0x199)]('ak')||'')[_0x4de112(0x1cb)]();if(!_0x22b59b&&_0x9e93c9['nonInteractive'])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x517ae9=await resolveAuthWriteInput(_0x9e93c9),_0x3465a0=resolveAuthScopeFlags(_0x9e93c9),_0x156a0c=readScopedConfig(_0x3465a0);_0x156a0c[_0x4de112(0x18a)]=_0x517ae9['accessKey'];_0x517ae9[_0x4de112(0x1ab)]&&(_0x156a0c[_0x4de112(0x1ab)]=_0x517ae9[_0x4de112(0x1ab)]);writeScopedConfig(_0x156a0c,_0x3465a0);const _0x47eda3=_0x3465a0[_0x4de112(0x19b)]?_0x4de112(0x19b):_0x4de112(0x1c1),_0x599ad5=_0x156a0c[_0x4de112(0x1ab)]?_0x4de112(0x182)+_0x156a0c[_0x4de112(0x1ab)]+'.':'';return{'ok':!![],'message':_0x4de112(0x1af)+_0x47eda3+_0x4de112(0x18f)+_0x599ad5+'\x20Verify:\x20'+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':a9_0x4602e2(0x1a2),'command':a9_0x4602e2(0x1a7),'description':a9_0x4602e2(0x195),'risk':a9_0x4602e2(0x1a8),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'access-key','type':a9_0x4602e2(0x1d2),'description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':a9_0x4602e2(0x1d2),'description':a9_0x4602e2(0x1ca)},{'name':a9_0x4602e2(0x1ab),'type':a9_0x4602e2(0x1d2),'description':a9_0x4602e2(0x197)},{'name':a9_0x4602e2(0x19b),'type':a9_0x4602e2(0x1b9),'description':a9_0x4602e2(0x19d),'default':!![]},{'name':a9_0x4602e2(0x1c1),'type':a9_0x4602e2(0x1b9),'description':a9_0x4602e2(0x19a),'default':![]}],async 'execute'(_0x3031e1){const _0x2cdc73=a9_0x4602e2,_0x4daf3c=await resolveAuthWriteInput(_0x3031e1),_0x166f13=resolveAuthScopeFlags(_0x3031e1),_0x1a7f39={'accessKey':_0x4daf3c['accessKey']};_0x4daf3c[_0x2cdc73(0x1ab)]&&(_0x1a7f39[_0x2cdc73(0x1ab)]=_0x4daf3c['env']);writeScopedConfig(_0x1a7f39,_0x166f13);const _0x56153c=_0x166f13[_0x2cdc73(0x19b)]?_0x2cdc73(0x19b):_0x2cdc73(0x1c1),_0x541985=_0x1a7f39[_0x2cdc73(0x1ab)]?'\x20Current\x20env:\x20'+_0x1a7f39[_0x2cdc73(0x1ab)]+'.':'';return{'ok':!![],'message':'Auth\x20config\x20reinitialized\x20in\x20'+_0x56153c+_0x2cdc73(0x1cd)+_0x541985+'\x20Verify:\x20'+CLI_BIN_NAME+_0x2cdc73(0x1b8)};}},{'service':a9_0x4602e2(0x1a2),'command':a9_0x4602e2(0x1b2),'description':'Clear\x20accessKey\x20from\x20config','risk':a9_0x4602e2(0x1a8),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'global','type':'boolean','description':a9_0x4602e2(0x188),'default':!![]},{'name':a9_0x4602e2(0x1c1),'type':a9_0x4602e2(0x1b9),'description':a9_0x4602e2(0x183),'default':![]}],async 'execute'(_0x5760d6){const _0x19921c=a9_0x4602e2,_0x534c53=resolveAuthScopeFlags(_0x5760d6),_0x1ddba5=readScopedConfig(_0x534c53),_0x3796e6=!!_0x1ddba5['accessKey'];delete _0x1ddba5[_0x19921c(0x18a)],writeScopedConfig(_0x1ddba5,_0x534c53);const _0x377963=_0x534c53[_0x19921c(0x19b)]?_0x19921c(0x19b):'project';if(_0x3796e6)return{'ok':!![],'message':_0x19921c(0x1aa)+_0x377963+'\x20config.'};return{'ok':!![],'message':'No\x20AccessKey\x20found\x20in\x20'+_0x377963+'\x20config.\x20Nothing\x20to\x20clear.'};}},{'service':a9_0x4602e2(0x1a2),'command':'status','description':a9_0x4602e2(0x1c4),'risk':a9_0x4602e2(0x1a6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x4602e2(0x19b),'type':'boolean','description':a9_0x4602e2(0x190),'default':!![]},{'name':'project','type':a9_0x4602e2(0x1b9),'description':'Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x4f50d1){const _0x27fccc=a9_0x4602e2,_0x1a91e6=resolveAuthScopeFlags(_0x4f50d1),_0x27dc47=readScopedConfig(_0x1a91e6),_0x1af837=productEnvName(_0x27fccc(0x1d4)),_0x379c15=productEnv(_0x27fccc(0x1d4))||undefined,_0x1a006e=_0x27dc47[_0x27fccc(0x18a)]||undefined,_0x48ee54=_0x379c15||_0x1a006e,_0x4956cc=_0x379c15?_0x1af837+_0x27fccc(0x192):_0x1a006e?(_0x1a91e6[_0x27fccc(0x19b)]?_0x27fccc(0x19b):'project')+_0x27fccc(0x1bf):null,_0x222c26=[_0x27fccc(0x1be)+AUTH_MODE[_0x27fccc(0x186)]];if(_0x48ee54){const _0x3380e7=_0x48ee54[_0x27fccc(0x19c)]>0x8?''+_0x48ee54[_0x27fccc(0x1d5)](0x0,0x8)+'*'['repeat'](_0x48ee54[_0x27fccc(0x19c)]-0x8):_0x48ee54;_0x222c26[_0x27fccc(0x1b6)](_0x27fccc(0x1c9)+_0x3380e7+(_0x4956cc?_0x27fccc(0x1a4)+_0x4956cc+')':''));}return!_0x48ee54&&(_0x222c26[_0x27fccc(0x1b6)](''),_0x222c26[_0x27fccc(0x1b6)](_0x27fccc(0x196)),_0x222c26[_0x27fccc(0x1b6)](''),_0x222c26['push'](_0x27fccc(0x1bb)+CLI_BIN_NAME+_0x27fccc(0x181)),_0x222c26[_0x27fccc(0x1b6)](''),_0x222c26[_0x27fccc(0x1b6)](_0x27fccc(0x18e)+PRODUCT_CONFIG[_0x27fccc(0x1b0)]+')'),_0x222c26[_0x27fccc(0x1b6)](_0x27fccc(0x1a5)),_0x222c26[_0x27fccc(0x1b6)](''),_0x222c26[_0x27fccc(0x1b6)](_0x27fccc(0x1d1)),_0x222c26[_0x27fccc(0x1b6)](_0x27fccc(0x187)+_0x1af837+'=ak_xxx'),_0x222c26[_0x27fccc(0x1b6)](''),_0x222c26[_0x27fccc(0x1b6)](_0x27fccc(0x19f)+CLI_BIN_NAME+_0x27fccc(0x1b8)),_0x222c26[_0x27fccc(0x1b6)](_0x27fccc(0x198)+CLI_BIN_NAME+_0x27fccc(0x185))),{'ok':!![],'message':_0x222c26[_0x27fccc(0x191)]('\x0a')};}},{'service':a9_0x4602e2(0x1a2),'command':a9_0x4602e2(0x1c6),'description':a9_0x4602e2(0x1b1),'risk':a9_0x4602e2(0x1a6),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x36843d){const _0x264b06=a9_0x4602e2,_0x1c3e54=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x1c3e54,'meta':{'env':_0x36843d[_0x264b06(0x1ce)]??_0x264b06(0x1d7)}}};}}];
@@ -1 +1 @@
1
- (function(_0x5162a7,_0xb3d25f){const _0x19a105=a10_0x1079,_0x5f4c74=_0x5162a7();while(!![]){try{const _0xbaabff=parseInt(_0x19a105(0xd4))/0x1+-parseInt(_0x19a105(0xce))/0x2*(parseInt(_0x19a105(0xc7))/0x3)+-parseInt(_0x19a105(0xbe))/0x4*(parseInt(_0x19a105(0xc9))/0x5)+parseInt(_0x19a105(0xbd))/0x6+parseInt(_0x19a105(0xc0))/0x7*(parseInt(_0x19a105(0xc2))/0x8)+-parseInt(_0x19a105(0xbf))/0x9+-parseInt(_0x19a105(0xd0))/0xa*(parseInt(_0x19a105(0xcb))/0xb);if(_0xbaabff===_0xb3d25f)break;else _0x5f4c74['push'](_0x5f4c74['shift']());}catch(_0x5a7efd){_0x5f4c74['push'](_0x5f4c74['shift']());}}}(a10_0xf500,0x8a188));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x172630=a10_0x1079;super(_0x172630(0xcc)),this['name']=_0x172630(0xc8);}}function createSafeRl(){const _0x1cf7fa=a10_0x1079,_0x49ac97=createInterface({'input':process[_0x1cf7fa(0xc1)],'output':process['stdout']});let _0x34432c;const _0x164e60=new Promise((_0x58667b,_0x147fd8)=>{const _0x1f3dd8=_0x1cf7fa;_0x34432c=()=>{const _0x2e202f=a10_0x1079;_0x34432c&&(_0x49ac97[_0x2e202f(0xca)](_0x2e202f(0xd2),_0x34432c),_0x34432c=undefined);try{_0x49ac97['close']();}catch{}_0x147fd8(new AbortPrompt());},_0x49ac97[_0x1f3dd8(0xc4)](_0x1f3dd8(0xd2),_0x34432c);}),_0x278b5f=()=>{const _0x4f0e19=_0x1cf7fa;_0x34432c&&(_0x49ac97[_0x4f0e19(0xca)](_0x4f0e19(0xd2),_0x34432c),_0x34432c=undefined);try{_0x49ac97[_0x4f0e19(0xc5)]();}catch{}};return{'rl':_0x49ac97,'abortPromise':_0x164e60,'disposeSuccess':_0x278b5f};}function a10_0x1079(_0x437474,_0x206273){_0x437474=_0x437474-0xbd;const _0xf50060=a10_0xf500();let _0x10794b=_0xf50060[_0x437474];return _0x10794b;}function a10_0xf500(){const _0x13a3b3=['238024sQCiGR','AccessKey\x20(paste\x20ak_...):\x20','once','close','name','123OmRoaY','AbortPrompt','4200535Thufvv','removeListener','344377gttEyX','User\x20aborted\x20prompt','trim','25512NSmcqQ','):\x20','10tSThtz','race','SIGINT','AccessKey\x20(','576159CcJiaS','6225762rfteof','4tIiGyk','1435833DlGmNX','119YhPpTK','stdin'];a10_0xf500=function(){return _0x13a3b3;};return a10_0xf500();}export async function promptAccessKey(_0x153ebc=''){const _0x5bd6c8=a10_0x1079,{rl:_0x241477,abortPromise:_0x8a765b,disposeSuccess:_0x5caa70}=createSafeRl(),_0x115f45=new Promise(_0xbe6606=>{const _0xcf7b81=a10_0x1079,_0x253145=_0x153ebc?_0xcf7b81(0xd3)+_0x153ebc+_0xcf7b81(0xcf):_0xcf7b81(0xc3);_0x241477['question'](_0x253145,_0x47fec7=>{const _0x522713=_0xcf7b81;_0x5caa70(),_0xbe6606(_0x47fec7[_0x522713(0xcd)]()||_0x153ebc);});});return Promise[_0x5bd6c8(0xd1)]([_0x115f45,_0x8a765b]);}export function isAbortPrompt(_0x2bb5ce){const _0x2b9844=a10_0x1079;return _0x2bb5ce instanceof Error&&_0x2bb5ce[_0x2b9844(0xc6)]===_0x2b9844(0xc8);}
1
+ (function(_0x5a2d91,_0x3e36a5){const _0x2afc95=a10_0x4617,_0x216f02=_0x5a2d91();while(!![]){try{const _0x303c78=-parseInt(_0x2afc95(0xc6))/0x1+-parseInt(_0x2afc95(0xc8))/0x2+-parseInt(_0x2afc95(0xbf))/0x3+parseInt(_0x2afc95(0xcd))/0x4+parseInt(_0x2afc95(0xcf))/0x5*(parseInt(_0x2afc95(0xc5))/0x6)+parseInt(_0x2afc95(0xd3))/0x7*(-parseInt(_0x2afc95(0xc7))/0x8)+parseInt(_0x2afc95(0xc0))/0x9;if(_0x303c78===_0x3e36a5)break;else _0x216f02['push'](_0x216f02['shift']());}catch(_0x27071d){_0x216f02['push'](_0x216f02['shift']());}}}(a10_0xd376,0xcf9cf));function a10_0x4617(_0x182227,_0x11bc8a){_0x182227=_0x182227-0xbf;const _0xd376f8=a10_0xd376();let _0x461798=_0xd376f8[_0x182227];return _0x461798;}import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x3c1cfd=a10_0x4617;super(_0x3c1cfd(0xc2)),this[_0x3c1cfd(0xc4)]=_0x3c1cfd(0xc3);}}function createSafeRl(){const _0x1c88a9=a10_0x4617,_0x24dc9f=createInterface({'input':process[_0x1c88a9(0xc1)],'output':process[_0x1c88a9(0xce)]});let _0x31de8e;const _0x27fe5a=new Promise((_0x192eea,_0x325720)=>{const _0x13b524=_0x1c88a9;_0x31de8e=()=>{const _0x324ca4=a10_0x4617;_0x31de8e&&(_0x24dc9f['removeListener'](_0x324ca4(0xca),_0x31de8e),_0x31de8e=undefined);try{_0x24dc9f[_0x324ca4(0xc9)]();}catch{}_0x325720(new AbortPrompt());},_0x24dc9f['once'](_0x13b524(0xca),_0x31de8e);}),_0x1ae1c0=()=>{const _0x123784=_0x1c88a9;_0x31de8e&&(_0x24dc9f['removeListener'](_0x123784(0xca),_0x31de8e),_0x31de8e=undefined);try{_0x24dc9f[_0x123784(0xc9)]();}catch{}};return{'rl':_0x24dc9f,'abortPromise':_0x27fe5a,'disposeSuccess':_0x1ae1c0};}export async function promptAccessKey(_0x3a4fc9=''){const _0x48457b=a10_0x4617,{rl:_0x4f924e,abortPromise:_0xf1a428,disposeSuccess:_0x1254c}=createSafeRl(),_0x147b57=new Promise(_0x5260ae=>{const _0x32b903=a10_0x4617,_0x3b4b81=_0x3a4fc9?_0x32b903(0xcc)+_0x3a4fc9+'):\x20':_0x32b903(0xd1);_0x4f924e[_0x32b903(0xd0)](_0x3b4b81,_0x5b1c48=>{const _0x157761=_0x32b903;_0x1254c(),_0x5260ae(_0x5b1c48[_0x157761(0xcb)]()||_0x3a4fc9);});});return Promise[_0x48457b(0xd2)]([_0x147b57,_0xf1a428]);}function a10_0xd376(){const _0x4dfebd=['close','SIGINT','trim','AccessKey\x20(','2782480GfeHgf','stdout','5IBhOmG','question','AccessKey\x20(paste\x20ak_...):\x20','race','6895427LdOiAX','1265205DtHYEx','21457206OUEpdC','stdin','User\x20aborted\x20prompt','AbortPrompt','name','2975658NiqZBy','1176194WBUTvP','8VhhnVy','284648KmMERC'];a10_0xd376=function(){return _0x4dfebd;};return a10_0xd376();}export function isAbortPrompt(_0x403775){const _0x1b11e3=a10_0x4617;return _0x403775 instanceof Error&&_0x403775[_0x1b11e3(0xc4)]===_0x1b11e3(0xc3);}
@@ -1 +1 @@
1
- const a11_0x4868e4=a11_0x1cd9;(function(_0xb01a67,_0x46705d){const _0x3445e8=a11_0x1cd9,_0x494132=_0xb01a67();while(!![]){try{const _0x3cb169=parseInt(_0x3445e8(0x71))/0x1*(parseInt(_0x3445e8(0x7d))/0x2)+parseInt(_0x3445e8(0x7c))/0x3*(-parseInt(_0x3445e8(0x70))/0x4)+-parseInt(_0x3445e8(0x7f))/0x5*(-parseInt(_0x3445e8(0x75))/0x6)+-parseInt(_0x3445e8(0x78))/0x7+parseInt(_0x3445e8(0x7a))/0x8+parseInt(_0x3445e8(0x6d))/0x9*(-parseInt(_0x3445e8(0x82))/0xa)+parseInt(_0x3445e8(0x7e))/0xb*(parseInt(_0x3445e8(0x83))/0xc);if(_0x3cb169===_0x46705d)break;else _0x494132['push'](_0x494132['shift']());}catch(_0x21b232){_0x494132['push'](_0x494132['shift']());}}}(a11_0x111b,0x9a593));function a11_0x111b(){const _0x33c226=['Get\x20BFF\x20script\x20details\x20by\x20ID','3qakbYA','2PaXDeE','96525PKMELc','805mORvuZ','(none)','num','290uxCHGe','3396PeTmNE','functionName','description','348255syfUPg','appCode','bff','3981284QTohIs','98011pxssvs','bool','Script\x20ID','verbose','9468BrRNBK','scriptType','read','5006505QEfDpQ','detail','5036064kZzwLQ'];a11_0x111b=function(){return _0x33c226;};return a11_0x111b();}import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';function a11_0x1cd9(_0xbc325e,_0x41d002){_0xbc325e=_0xbc325e-0x6b;const _0x111b9f=a11_0x111b();let _0x1cd99d=_0x111b9f[_0xbc325e];return _0x1cd99d;}export const bffDetail={'service':a11_0x4868e4(0x6f),'command':a11_0x4868e4(0x79),'description':a11_0x4868e4(0x7b),'risk':a11_0x4868e4(0x77),'flags':[{...ID_FLAG,'description':a11_0x4868e4(0x73)},VERBOSE_FLAG],async 'execute'(_0x304ec4){const _0x193384=a11_0x4868e4,_0x2ede4a=await getBffScriptInfo(_0x304ec4[_0x193384(0x81)]('id')),_0x204ebd=_0x304ec4[_0x193384(0x72)](_0x193384(0x74));if(_0x204ebd)return{'ok':!![],'data':_0x2ede4a};return{'ok':!![],'data':{'id':_0x2ede4a['id'],'appCode':_0x2ede4a[_0x193384(0x6e)],'functionName':_0x2ede4a[_0x193384(0x6b)]??'','scriptType':_0x2ede4a[_0x193384(0x76)],'description':_0x2ede4a[_0x193384(0x6c)]||_0x193384(0x80),'createdTime':_0x2ede4a['createdTime']??'','updatedTime':_0x2ede4a['updatedTime']??''}};}};
1
+ function a11_0x5ada(_0x12dbc0,_0x2deba5){_0x12dbc0=_0x12dbc0-0x1a4;const _0x513b43=a11_0x513b();let _0x5ada21=_0x513b43[_0x12dbc0];return _0x5ada21;}function a11_0x513b(){const _0x3047d6=['updatedTime','verbose','16149wJCWDJ','2709760uTaPqE','bool','description','762345zcFkAP','functionName','appCode','12276ArBHCU','25623oEJXCy','894170OQpadZ','3520EiMHjN','(none)','bff','createdTime','96oPaZoP','77374XfjhRe','4djCCNw','2gnYkTy','Get\x20BFF\x20script\x20details\x20by\x20ID'];a11_0x513b=function(){return _0x3047d6;};return a11_0x513b();}const a11_0xd9964c=a11_0x5ada;(function(_0x2e4666,_0x334be5){const _0x3244c0=a11_0x5ada,_0x4ec306=_0x2e4666();while(!![]){try{const _0x57ffeb=-parseInt(_0x3244c0(0x1b6))/0x1*(parseInt(_0x3244c0(0x1b8))/0x2)+-parseInt(_0x3244c0(0x1ab))/0x3+parseInt(_0x3244c0(0x1b7))/0x4*(-parseInt(_0x3244c0(0x1b0))/0x5)+parseInt(_0x3244c0(0x1b5))/0x6*(-parseInt(_0x3244c0(0x1a7))/0x7)+parseInt(_0x3244c0(0x1a8))/0x8+parseInt(_0x3244c0(0x1af))/0x9+-parseInt(_0x3244c0(0x1b1))/0xa*(-parseInt(_0x3244c0(0x1ae))/0xb);if(_0x57ffeb===_0x334be5)break;else _0x4ec306['push'](_0x4ec306['shift']());}catch(_0x1dcb6d){_0x4ec306['push'](_0x4ec306['shift']());}}}(a11_0x513b,0x2db1c));import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a11_0xd9964c(0x1b3),'command':'detail','description':a11_0xd9964c(0x1a4),'risk':'read','flags':[{...ID_FLAG,'description':'Script\x20ID'},VERBOSE_FLAG],async 'execute'(_0x2b99cd){const _0x2bb571=a11_0xd9964c,_0x37e82a=await getBffScriptInfo(_0x2b99cd['num']('id')),_0x4331c3=_0x2b99cd[_0x2bb571(0x1a9)](_0x2bb571(0x1a6));if(_0x4331c3)return{'ok':!![],'data':_0x37e82a};return{'ok':!![],'data':{'id':_0x37e82a['id'],'appCode':_0x37e82a[_0x2bb571(0x1ad)],'functionName':_0x37e82a[_0x2bb571(0x1ac)]??'','scriptType':_0x37e82a['scriptType'],'description':_0x37e82a[_0x2bb571(0x1aa)]||_0x2bb571(0x1b2),'createdTime':_0x37e82a[_0x2bb571(0x1b4)]??'','updatedTime':_0x37e82a[_0x2bb571(0x1a5)]??''}};}};
@@ -1 +1 @@
1
- const a12_0x5e3937=a12_0xa625;function a12_0x6d66(){const _0x1a62bf=['25FtwImM','2211741JoqqhZ','356422fZJIgn','exec','18708KwnpuP','6673736UumNzn','994964bGGQfR','str','name','81kznGSY','7216212IdAwCh','90140ltdkeL','now','318MwocZf'];a12_0x6d66=function(){return _0x1a62bf;};return a12_0x6d66();}(function(_0x67ea90,_0x4031a8){const _0x2bbc26=a12_0xa625,_0x3c9696=_0x67ea90();while(!![]){try{const _0x3881d1=parseInt(_0x2bbc26(0x152))/0x1+-parseInt(_0x2bbc26(0x14f))/0x2*(parseInt(_0x2bbc26(0x154))/0x3)+-parseInt(_0x2bbc26(0x148))/0x4*(-parseInt(_0x2bbc26(0x150))/0x5)+-parseInt(_0x2bbc26(0x14c))/0x6+parseInt(_0x2bbc26(0x151))/0x7+parseInt(_0x2bbc26(0x155))/0x8+parseInt(_0x2bbc26(0x14b))/0x9*(parseInt(_0x2bbc26(0x14d))/0xa);if(_0x3881d1===_0x4031a8)break;else _0x3c9696['push'](_0x3c9696['shift']());}catch(_0x39b19d){_0x3c9696['push'](_0x3c9696['shift']());}}}(a12_0x6d66,0x9b917));function a12_0xa625(_0x432662,_0x16509f){_0x432662=_0x432662-0x148;const _0x6d6620=a12_0x6d66();let _0xa625cc=_0x6d6620[_0x432662];return _0xa625cc;}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':'bff','command':a12_0x5e3937(0x153),'description':'Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','risk':'read','flags':[{...NAME_FLAG,'required':!![],'description':'BFF\x20function\x20name\x20to\x20execute'},PARAMS_FLAG],async 'execute'(_0x454e19){const _0x54e556=a12_0x5e3937,_0x196999=parseJsonParams(_0x454e19[_0x54e556(0x149)]('params')),_0x37cf2a=Date['now'](),_0x116d7a=await executeSdkBff(_0x454e19['str'](_0x54e556(0x14a)),_0x196999),_0xe8de3a=Date[_0x54e556(0x14e)]()-_0x37cf2a;return{'ok':!![],'data':{'result':_0x116d7a,'elapsed':_0xe8de3a},'message':'BFF\x20executed\x20in\x20'+_0xe8de3a+'ms'};}};
1
+ const a12_0x1c2e94=a12_0x3061;(function(_0x3eaf1d,_0x3493dd){const _0x57a575=a12_0x3061,_0x2ca46c=_0x3eaf1d();while(!![]){try{const _0x3bc6c6=-parseInt(_0x57a575(0x140))/0x1*(-parseInt(_0x57a575(0x13a))/0x2)+-parseInt(_0x57a575(0x149))/0x3+parseInt(_0x57a575(0x144))/0x4+parseInt(_0x57a575(0x13c))/0x5*(-parseInt(_0x57a575(0x13d))/0x6)+-parseInt(_0x57a575(0x143))/0x7+-parseInt(_0x57a575(0x13e))/0x8*(-parseInt(_0x57a575(0x141))/0x9)+-parseInt(_0x57a575(0x13b))/0xa*(-parseInt(_0x57a575(0x146))/0xb);if(_0x3bc6c6===_0x3493dd)break;else _0x2ca46c['push'](_0x2ca46c['shift']());}catch(_0x3fd260){_0x2ca46c['push'](_0x2ca46c['shift']());}}}(a12_0x4a3b,0x26610));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a12_0x3061(_0x5b25b2,_0x4aa283){_0x5b25b2=_0x5b25b2-0x13a;const _0x4a3b25=a12_0x4a3b();let _0x306160=_0x4a3b25[_0x5b25b2];return _0x306160;}function a12_0x4a3b(){const _0x14f62f=['10qxMrpn','180165nIiIbp','24VsnyCX','139352XwxbCh','params','28854DFqFne','45Mcwusn','read','1964305ndKgmF','818684yscPMN','now','4937581IzfxNh','BFF\x20executed\x20in\x20','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','649194ZoFUYo','str','4sdnUvU'];a12_0x4a3b=function(){return _0x14f62f;};return a12_0x4a3b();}export const bffExec={'service':'bff','command':'exec','description':a12_0x1c2e94(0x148),'risk':a12_0x1c2e94(0x142),'flags':[{...NAME_FLAG,'required':!![],'description':'BFF\x20function\x20name\x20to\x20execute'},PARAMS_FLAG],async 'execute'(_0x3e307c){const _0x11b576=a12_0x1c2e94,_0x238e49=parseJsonParams(_0x3e307c[_0x11b576(0x14a)](_0x11b576(0x13f))),_0x3ee6f3=Date[_0x11b576(0x145)](),_0x1a5cb1=await executeSdkBff(_0x3e307c['str']('name'),_0x238e49),_0x5f3159=Date[_0x11b576(0x145)]()-_0x3ee6f3;return{'ok':!![],'data':{'result':_0x1a5cb1,'elapsed':_0x5f3159},'message':_0x11b576(0x147)+_0x5f3159+'ms'};}};
@@ -1 +1 @@
1
- function a13_0x38cc(_0x55dd00,_0x1d8e15){_0x55dd00=_0x55dd00-0x65;const _0x53b6ee=a13_0x53b6();let _0x38ccc8=_0x53b6ee[_0x55dd00];return _0x38ccc8;}(function(_0x3c3807,_0x285a8f){const _0x3c647a=a13_0x38cc,_0x13e44c=_0x3c3807();while(!![]){try{const _0x349dd1=parseInt(_0x3c647a(0x66))/0x1+parseInt(_0x3c647a(0x6c))/0x2+parseInt(_0x3c647a(0x69))/0x3*(parseInt(_0x3c647a(0x6b))/0x4)+parseInt(_0x3c647a(0x6a))/0x5+-parseInt(_0x3c647a(0x65))/0x6+-parseInt(_0x3c647a(0x6d))/0x7+parseInt(_0x3c647a(0x67))/0x8*(-parseInt(_0x3c647a(0x68))/0x9);if(_0x349dd1===_0x285a8f)break;else _0x13e44c['push'](_0x13e44c['shift']());}catch(_0x3ccf09){_0x13e44c['push'](_0x13e44c['shift']());}}}(a13_0x53b6,0x7509a));import{bffDetail}from'../../commands/bff/detail.js';function a13_0x53b6(){const _0x26ecb0=['776HshAzy','1557dJYWzk','3HHgGzo','3172240BdWyqU','819276ZCiWZb','946072cEdqqY','5980184dSbCYo','3566070jmqUiW','632521tzaJdj'];a13_0x53b6=function(){return _0x26ecb0;};return a13_0x53b6();}import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
1
+ (function(_0x284eab,_0x498948){const _0x554b84=a13_0x2a95,_0x52fda5=_0x284eab();while(!![]){try{const _0x3efe63=parseInt(_0x554b84(0x147))/0x1*(-parseInt(_0x554b84(0x145))/0x2)+-parseInt(_0x554b84(0x148))/0x3*(parseInt(_0x554b84(0x149))/0x4)+parseInt(_0x554b84(0x143))/0x5+-parseInt(_0x554b84(0x14a))/0x6+-parseInt(_0x554b84(0x14c))/0x7+-parseInt(_0x554b84(0x144))/0x8*(-parseInt(_0x554b84(0x14b))/0x9)+parseInt(_0x554b84(0x142))/0xa*(parseInt(_0x554b84(0x146))/0xb);if(_0x3efe63===_0x498948)break;else _0x52fda5['push'](_0x52fda5['shift']());}catch(_0x442223){_0x52fda5['push'](_0x52fda5['shift']());}}}(a13_0x2ada,0xe87cf));import{bffDetail}from'../../commands/bff/detail.js';function a13_0x2ada(){const _0x536409=['45gCmPKg','1536871hCUwyu','30641710lgOwXq','849985YAVbQR','1246904LQAjkO','10YPertv','11kUvZzs','194518YcNoOP','87YGElZk','54844rqbNpQ','8828700QycHox'];a13_0x2ada=function(){return _0x536409;};return a13_0x2ada();}import{bffExec}from'../../commands/bff/exec.js';function a13_0x2a95(_0x4fbcd4,_0x3034e8){_0x4fbcd4=_0x4fbcd4-0x142;const _0x2ada71=a13_0x2ada();let _0x2a956d=_0x2ada71[_0x4fbcd4];return _0x2a956d;}export const bffDefinitions=[bffDetail,bffExec];
@@ -1 +1 @@
1
- const a14_0x31e9c6=a14_0x4da0;(function(_0x753c23,_0x3c4199){const _0x17b2e4=a14_0x4da0,_0xfbdac7=_0x753c23();while(!![]){try{const _0x3b17f6=parseInt(_0x17b2e4(0x139))/0x1*(-parseInt(_0x17b2e4(0x142))/0x2)+parseInt(_0x17b2e4(0x126))/0x3*(parseInt(_0x17b2e4(0x127))/0x4)+-parseInt(_0x17b2e4(0x141))/0x5+-parseInt(_0x17b2e4(0x134))/0x6+parseInt(_0x17b2e4(0x13d))/0x7+-parseInt(_0x17b2e4(0x12e))/0x8*(-parseInt(_0x17b2e4(0x136))/0x9)+parseInt(_0x17b2e4(0x138))/0xa*(parseInt(_0x17b2e4(0x13a))/0xb);if(_0x3b17f6===_0x3c4199)break;else _0xfbdac7['push'](_0xfbdac7['shift']());}catch(_0x4a8d90){_0xfbdac7['push'](_0xfbdac7['shift']());}}}(a14_0x46f7,0xab390));import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';function a14_0x46f7(){const _0x40a423=['install','skipped','log','../../skills/npx-skills-add.js','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','nonInteractive','248GrhuLz','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','\x20-g\x20-y','\x20-g\x20-y)...','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','CLI\x20Built-in\x20Skill\x20installed','2253996sCFwHJ','cwd','350937bmsiVT','error','100rdBEEI','66517UfqqIy','261470uByBOq','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','pipe','1273566nYamKg','info','inherit','apiError','3803615KcZBfJ','14Pyycml','1041tiVHpj','7780GiIJIG'];a14_0x46f7=function(){return _0x40a423;};return a14_0x46f7();}function a14_0x4da0(_0x1d8a8b,_0x269286){_0x1d8a8b=_0x1d8a8b-0x126;const _0x46f7d0=a14_0x46f7();let _0x4da068=_0x46f7d0[_0x1d8a8b];return _0x4da068;}export const cliSkillDefinitions=[{'service':'cli-skill','command':a14_0x31e9c6(0x128),'description':a14_0x31e9c6(0x13b),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x3f86e2){const _0xc952a5=a14_0x31e9c6;logger['setLogPath'](process[_0xc952a5(0x135)]()),logger[_0xc952a5(0x13e)]('cli-skill-install',_0xc952a5(0x132));const {LOVRABET_SKILL_SOURCE:_0x510bb3,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x95f15c,runNpxSkillsAddGlobal:_0x22723e}=await import(_0xc952a5(0x12b)),_0x3542e6=_0x3f86e2[_0xc952a5(0x12d)]?_0xc952a5(0x13c):_0xc952a5(0x13f);console[_0xc952a5(0x12a)](_0xc952a5(0x12c)+_0x510bb3+_0xc952a5(0x131));const _0x4ffb2e=_0x22723e(process['cwd'](),_0x510bb3,{'stdio':_0x3542e6});if(_0x4ffb2e[_0xc952a5(0x129)])console[_0xc952a5(0x12a)]('Skipped\x20npx\x20('+_0x95f15c+'=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.');else{if(_0x4ffb2e['ok'])console[_0xc952a5(0x12a)](_0xc952a5(0x133));else throw CliErrors[_0xc952a5(0x140)]('npx\x20skills\x20add\x20failed:\x20'+(_0x4ffb2e[_0xc952a5(0x137)]||'unknown'),_0xc952a5(0x12f)+_0x510bb3+_0xc952a5(0x130));}return{'ok':!![]};}}];
1
+ const a14_0x2beceb=a14_0x2369;(function(_0x5ca911,_0x2cfe6b){const _0xa2c1bd=a14_0x2369,_0x4489fc=_0x5ca911();while(!![]){try{const _0x131ee5=parseInt(_0xa2c1bd(0x1c2))/0x1*(-parseInt(_0xa2c1bd(0x1c5))/0x2)+-parseInt(_0xa2c1bd(0x1b6))/0x3*(-parseInt(_0xa2c1bd(0x1b7))/0x4)+-parseInt(_0xa2c1bd(0x1ba))/0x5+parseInt(_0xa2c1bd(0x1b1))/0x6*(-parseInt(_0xa2c1bd(0x1b0))/0x7)+-parseInt(_0xa2c1bd(0x1c7))/0x8*(parseInt(_0xa2c1bd(0x1c6))/0x9)+parseInt(_0xa2c1bd(0x1cc))/0xa*(-parseInt(_0xa2c1bd(0x1bc))/0xb)+parseInt(_0xa2c1bd(0x1c8))/0xc;if(_0x131ee5===_0x2cfe6b)break;else _0x4489fc['push'](_0x4489fc['shift']());}catch(_0x21e8af){_0x4489fc['push'](_0x4489fc['shift']());}}}(a14_0x2884,0xdd7e2));import{CliErrors}from'../../errors.js';function a14_0x2369(_0x4bde22,_0x2d4ecf){_0x4bde22=_0x4bde22-0x1ae;const _0x2884ae=a14_0x2884();let _0x236905=_0x2884ae[_0x4bde22];return _0x236905;}function a14_0x2884(){const _0x1c176a=['log','write','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','203234ZKVrqD','apiError','npx\x20skills\x20add\x20failed:\x20','4FECmvh','12615219peAPce','8BeKNOk','59836188tWOiWZ','cli-skill-install','CLI\x20Built-in\x20Skill\x20installed','install','13030HZWSYQ','cwd','error','Skipped\x20npx\x20(','7231jezoDs','8004OoYpVh','\x20-g\x20-y','unknown','pipe','cli-skill','5619yFjxbS','2384PHEpLH','setLogPath','inherit','8886540JMHKou','\x20-g\x20-y)...','1958PpvWJV','../../skills/npx-skills-add.js'];a14_0x2884=function(){return _0x1c176a;};return a14_0x2884();}import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a14_0x2beceb(0x1b5),'command':a14_0x2beceb(0x1cb),'description':a14_0x2beceb(0x1c0),'risk':a14_0x2beceb(0x1bf),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0xdb8ba5){const _0x349ca6=a14_0x2beceb;logger[_0x349ca6(0x1b8)](process[_0x349ca6(0x1cd)]()),logger['info'](_0x349ca6(0x1c9),_0x349ca6(0x1c1));const {LOVRABET_SKILL_SOURCE:_0x2ab301,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x574cf8,runNpxSkillsAddGlobal:_0x5d54dd}=await import(_0x349ca6(0x1bd)),_0x1fd4a1=_0xdb8ba5['nonInteractive']?_0x349ca6(0x1b4):_0x349ca6(0x1b9);console[_0x349ca6(0x1be)]('Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20'+_0x2ab301+_0x349ca6(0x1bb));const _0x17e954=_0x5d54dd(process[_0x349ca6(0x1cd)](),_0x2ab301,{'stdio':_0x1fd4a1});if(_0x17e954['skipped'])console['log'](_0x349ca6(0x1af)+_0x574cf8+'=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.');else{if(_0x17e954['ok'])console[_0x349ca6(0x1be)](_0x349ca6(0x1ca));else throw CliErrors[_0x349ca6(0x1c3)](_0x349ca6(0x1c4)+(_0x17e954[_0x349ca6(0x1ae)]||_0x349ca6(0x1b3)),'Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20'+_0x2ab301+_0x349ca6(0x1b2));}return{'ok':!![]};}}];