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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +3 -2
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const a0_0x5f2946=a0_0x5117;(function(_0x2ce7d0,_0x31bdbb){const _0x36fc2b=a0_0x5117,_0x4b315e=_0x2ce7d0();while(!![]){try{const _0x29e96f=parseInt(_0x36fc2b(0x116))/0x1+parseInt(_0x36fc2b(0x12e))/0x2+-parseInt(_0x36fc2b(0x12b))/0x3+parseInt(_0x36fc2b(0x11e))/0x4*(parseInt(_0x36fc2b(0x12a))/0x5)+-parseInt(_0x36fc2b(0x117))/0x6*(parseInt(_0x36fc2b(0x11d))/0x7)+-parseInt(_0x36fc2b(0x112))/0x8+-parseInt(_0x36fc2b(0x10f))/0x9;if(_0x29e96f===_0x31bdbb)break;else _0x4b315e['push'](_0x4b315e['shift']());}catch(_0x4661bc){_0x4b315e['push'](_0x4b315e['shift']());}}}(a0_0x1707,0xb883a));import{jsx as a0_0x23ce4c}from'react/jsx-runtime';import a0_0x28f23b from'meow';import{render}from'ink';import{Help}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{buildConfigFromFlags,initGlobalEnvironment}from'./context.js';import{isKnownService,getServiceEntry,findDefinition,getAllDefinitions}from'./commands/registry.js';import{generateDynamicServiceHelp,resolveDynamicServiceCommand}from'./commands/service/dynamic.js';import{runCommand,createPipelineEnv}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{buildMeowFlags}from'./constant/cli.js';import{getCliVersionDisplay}from'./utils/version.js';const helpText=generateFullHelp(),cli=a0_0x28f23b(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'version':getCliVersionDisplay()});function a0_0x1707(){const _0x3d2d5d=['exitCode','length','ExitPromptError','handler','287OIuvei','120MYlThr','ERR_STREAM_DESTROYED','catch','error','log','unknownCommand','input','slice','message','stderr','Unexpected\x20error:','name','243985FnJlnX','2383176zYEOGO','flags','write','2424480KrkvnM','[preparse]\x20','exit','args','\x0aCancelled.\x0a','assign','6469182RxhZvG','defaultCommand','hint','3511248BLjnsH','code','flatMap','corrected','1326127XHOPHr','189426AGxmIh','help'];a0_0x1707=function(){return _0x3d2d5d;};return a0_0x1707();}void main()[a0_0x5f2946(0x120)](handleError);function a0_0x5117(_0x5e4615,_0x2459bd){_0x5e4615=_0x5e4615-0x10d;const _0x1707b5=a0_0x1707();let _0x511725=_0x1707b5[_0x5e4615];return _0x511725;}async function main(){try{await run();}catch(_0x9a9bb1){handleError(_0x9a9bb1);}}async function run(){const _0x36495c=a0_0x5f2946;let _0x362d39=cli[_0x36495c(0x124)][0x0],_0x74ac14=cli[_0x36495c(0x124)][0x1];const _0x17c577=cli[_0x36495c(0x12c)];try{const {correctFlags:_0x51297c}=await import('./framework/preparse.js'),_0x584ac9=getAllDefinitions()[_0x36495c(0x114)](_0x30487c=>_0x30487c[_0x36495c(0x12c)]??[]),{flags:_0x35d42f,corrections:_0x326da}=_0x51297c(_0x17c577,_0x584ac9);if(_0x326da[_0x36495c(0x11a)]>0x0){for(const _0x169637 of _0x326da){process[_0x36495c(0x127)]['write'](_0x36495c(0x12f)+_0x169637[_0x36495c(0x11c)]+':\x20--'+_0x169637['original']+'\x20->\x20--'+_0x169637[_0x36495c(0x115)]+'\x0a');}Object[_0x36495c(0x10e)](_0x17c577,_0x35d42f);}}catch{}if(!_0x362d39){const {waitUntilExit:_0x3f25a3}=render(a0_0x23ce4c(Help,{}));await _0x3f25a3();return;}if(!isKnownService(_0x362d39)){const _0x3fd6e6=resolveDynamicServiceCommand(cli[_0x36495c(0x124)],_0x17c577);if(_0x3fd6e6){if(_0x17c577['help']){console[_0x36495c(0x122)](generateCommandHelp(_0x3fd6e6['definition']));return;}Object[_0x36495c(0x10e)](_0x17c577,_0x3fd6e6[_0x36495c(0x12c)]);const _0x3c35c9=buildConfigFromFlags(_0x17c577);await initGlobalEnvironment(_0x3c35c9);const _0xcbf0a3=createPipelineEnv(_0x3c35c9,_0x17c577);_0xcbf0a3[_0x36495c(0x131)]=_0x3fd6e6[_0x36495c(0x131)],await runCommand(_0x3fd6e6['definition'],_0xcbf0a3);return;}if(_0x17c577[_0x36495c(0x118)]){const _0x5c6b26=generateDynamicServiceHelp(_0x362d39);if(_0x5c6b26){console[_0x36495c(0x122)](_0x5c6b26);return;}}const {waitUntilExit:_0x5281b1}=render(a0_0x23ce4c(Help,{}));await _0x5281b1();return;}const _0x358e3a=getServiceEntry(_0x362d39);if(!_0x74ac14){if(_0x17c577[_0x36495c(0x118)]){console['log'](generateServiceHelp(_0x362d39));return;}if(_0x358e3a['defaultCommand'])_0x74ac14=_0x358e3a[_0x36495c(0x110)];else{console[_0x36495c(0x122)](generateServiceHelp(_0x362d39));return;}}const _0x1aa8d1=findDefinition(_0x362d39,_0x74ac14);!_0x1aa8d1&&(console[_0x36495c(0x122)](generateServiceHelp(_0x362d39)),handleError(CliErrors[_0x36495c(0x123)](_0x362d39+'\x20'+_0x74ac14)));if(_0x17c577[_0x36495c(0x118)]){console[_0x36495c(0x122)](generateCommandHelp(_0x1aa8d1));return;}const _0x4d30c6=buildConfigFromFlags(_0x17c577);await initGlobalEnvironment(_0x4d30c6);const _0x4c8e0f=createPipelineEnv(_0x4d30c6,_0x17c577);_0x4c8e0f['args']=cli[_0x36495c(0x124)][_0x36495c(0x125)](0x2),await runCommand(_0x1aa8d1,_0x4c8e0f);}function handleError(_0x3206a9){const _0x1b53bd=a0_0x5f2946;if(_0x3206a9 instanceof CliError){_0x3206a9[_0x1b53bd(0x113)]==='cancelled'&&(process[_0x1b53bd(0x127)][_0x1b53bd(0x12d)](_0x1b53bd(0x10d)),process[_0x1b53bd(0x130)](0x0));console[_0x1b53bd(0x121)]('Error:\x20'+_0x3206a9[_0x1b53bd(0x126)]);if(_0x3206a9[_0x1b53bd(0x111)])console[_0x1b53bd(0x121)]('Hint:\x20'+_0x3206a9[_0x1b53bd(0x111)]);process[_0x1b53bd(0x130)](_0x3206a9[_0x1b53bd(0x119)]);}isUserCancellation(_0x3206a9)&&(process[_0x1b53bd(0x127)][_0x1b53bd(0x12d)](_0x1b53bd(0x10d)),process[_0x1b53bd(0x130)](0x0)),console['error'](_0x1b53bd(0x128),_0x3206a9),process[_0x1b53bd(0x130)](0x1);}function isUserCancellation(_0x4962ae){const _0x4a0197=a0_0x5f2946;if(!(_0x4962ae instanceof Error))return![];if(_0x4962ae[_0x4a0197(0x129)]===_0x4a0197(0x11b))return!![];if(_0x4962ae[_0x4a0197(0x113)]==='ERR_USE_AFTER_CLOSE')return!![];if(_0x4962ae[_0x4a0197(0x113)]===_0x4a0197(0x11f))return!![];return![];}
2
+ const a0_0x47b925=a0_0x1d83;(function(_0x1dfdfa,_0x24cf12){const _0x57d378=a0_0x1d83,_0x4c22ff=_0x1dfdfa();while(!![]){try{const _0x4490ac=-parseInt(_0x57d378(0x11c))/0x1+-parseInt(_0x57d378(0x115))/0x2+-parseInt(_0x57d378(0x123))/0x3*(-parseInt(_0x57d378(0x107))/0x4)+parseInt(_0x57d378(0x111))/0x5+-parseInt(_0x57d378(0x110))/0x6+-parseInt(_0x57d378(0x11d))/0x7+parseInt(_0x57d378(0x11f))/0x8;if(_0x4490ac===_0x24cf12)break;else _0x4c22ff['push'](_0x4c22ff['shift']());}catch(_0xa98f61){_0x4c22ff['push'](_0x4c22ff['shift']());}}}(a0_0x22dd,0x50ae0));import{jsx as a0_0x5af446}from'react/jsx-runtime';import a0_0x262065 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_0x1d83(_0x24cb27,_0x3dda56){_0x24cb27=_0x24cb27-0x105;const _0x22dd07=a0_0x22dd();let _0x1d83e9=_0x22dd07[_0x24cb27];return _0x1d83e9;}import{runCommand,createPipelineEnv}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';function a0_0x22dd(){const _0x23a135=['code','339009xxvEoS','1831557HSGBhe','ExitPromptError','10117688GOZXty','flags','stderr','help','90891PFVxNu','[preparse]\x20','./framework/preparse.js','unknownCommand','error','write','message','Unexpected\x20error:',':\x20--','length','definition','Hint:\x20','\x0aCancelled.\x0a','64WeiJqC','\x20->\x20--','log','exit','Error:\x20','hint','flatMap','cancelled','args','3277824PPhhZj','21715DMyPyd','handler','catch','original','552756dbFSaJ','corrected','slice','input','assign','exitCode'];a0_0x22dd=function(){return _0x23a135;};return a0_0x22dd();}import{buildMeowFlags}from'./constant/cli.js';import{getCliVersionDisplay}from'./utils/version.js';const helpText=generateFullHelp(),cli=a0_0x262065(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'version':getCliVersionDisplay()});void main()[a0_0x47b925(0x113)](handleError);async function main(){try{await run();}catch(_0x46f7eb){handleError(_0x46f7eb);}}async function run(){const _0x73d06d=a0_0x47b925;let _0x428fc3=cli[_0x73d06d(0x118)][0x0],_0x56304f=cli[_0x73d06d(0x118)][0x1];const _0x2149a9=cli[_0x73d06d(0x120)];try{const {correctFlags:_0x18ebf5}=await import(_0x73d06d(0x125)),_0x2d09db=getAllDefinitions()[_0x73d06d(0x10d)](_0x8e7e54=>_0x8e7e54[_0x73d06d(0x120)]??[]),{flags:_0x13c053,corrections:_0x33bec4}=_0x18ebf5(_0x2149a9,_0x2d09db);if(_0x33bec4[_0x73d06d(0x12c)]>0x0){for(const _0x1a1d5f of _0x33bec4){process[_0x73d06d(0x121)][_0x73d06d(0x128)](_0x73d06d(0x124)+_0x1a1d5f[_0x73d06d(0x112)]+_0x73d06d(0x12b)+_0x1a1d5f[_0x73d06d(0x114)]+_0x73d06d(0x108)+_0x1a1d5f[_0x73d06d(0x116)]+'\x0a');}Object[_0x73d06d(0x119)](_0x2149a9,_0x13c053);}}catch{}if(!_0x428fc3){const {waitUntilExit:_0x1d9932}=render(a0_0x5af446(Help,{}));await _0x1d9932();return;}if(!isKnownService(_0x428fc3)){const _0x509558=resolveDynamicServiceCommand(cli[_0x73d06d(0x118)],_0x2149a9);if(_0x509558){if(_0x2149a9[_0x73d06d(0x122)]){console[_0x73d06d(0x109)](generateCommandHelp(_0x509558[_0x73d06d(0x12d)]));return;}Object['assign'](_0x2149a9,_0x509558[_0x73d06d(0x120)]);const _0x3754b6=buildConfigFromFlags(_0x2149a9);await initGlobalEnvironment(_0x3754b6);const _0x1fcab9=createPipelineEnv(_0x3754b6,_0x2149a9);_0x1fcab9['args']=_0x509558[_0x73d06d(0x10f)],await runCommand(_0x509558['definition'],_0x1fcab9);return;}if(_0x2149a9[_0x73d06d(0x122)]){const _0x35dfa9=generateDynamicServiceHelp(_0x428fc3);if(_0x35dfa9){console[_0x73d06d(0x109)](_0x35dfa9);return;}}const {waitUntilExit:_0x538aad}=render(a0_0x5af446(Help,{}));await _0x538aad();return;}const _0x3bc1a4=getServiceEntry(_0x428fc3);if(!_0x56304f){if(_0x2149a9['help']){console[_0x73d06d(0x109)](generateServiceHelp(_0x428fc3));return;}if(_0x3bc1a4['defaultCommand'])_0x56304f=_0x3bc1a4['defaultCommand'];else{console['log'](generateServiceHelp(_0x428fc3));return;}}const _0x33af8f=findDefinition(_0x428fc3,_0x56304f);!_0x33af8f&&(console[_0x73d06d(0x109)](generateServiceHelp(_0x428fc3)),handleError(CliErrors[_0x73d06d(0x126)](_0x428fc3+'\x20'+_0x56304f)));if(_0x2149a9['help']){console[_0x73d06d(0x109)](generateCommandHelp(_0x33af8f));return;}const _0x166883=buildConfigFromFlags(_0x2149a9);await initGlobalEnvironment(_0x166883);const _0xb8589f=createPipelineEnv(_0x166883,_0x2149a9);_0xb8589f['args']=cli[_0x73d06d(0x118)][_0x73d06d(0x117)](0x2),await runCommand(_0x33af8f,_0xb8589f);}function handleError(_0x730c33){const _0x24d3bb=a0_0x47b925;if(_0x730c33 instanceof CliError){_0x730c33[_0x24d3bb(0x11b)]===_0x24d3bb(0x10e)&&(process[_0x24d3bb(0x121)][_0x24d3bb(0x128)](_0x24d3bb(0x106)),process[_0x24d3bb(0x10a)](0x0));console[_0x24d3bb(0x127)](_0x24d3bb(0x10b)+_0x730c33[_0x24d3bb(0x129)]);if(_0x730c33[_0x24d3bb(0x10c)])console[_0x24d3bb(0x127)](_0x24d3bb(0x105)+_0x730c33[_0x24d3bb(0x10c)]);process['exit'](_0x730c33[_0x24d3bb(0x11a)]);}isUserCancellation(_0x730c33)&&(process[_0x24d3bb(0x121)][_0x24d3bb(0x128)]('\x0aCancelled.\x0a'),process['exit'](0x0)),console[_0x24d3bb(0x127)](_0x24d3bb(0x12a),_0x730c33),process[_0x24d3bb(0x10a)](0x1);}function isUserCancellation(_0x1624d2){const _0x4a5cf9=a0_0x47b925;if(!(_0x1624d2 instanceof Error))return![];if(_0x1624d2['name']===_0x4a5cf9(0x11e))return!![];if(_0x1624d2[_0x4a5cf9(0x11b)]==='ERR_USE_AFTER_CLOSE')return!![];if(_0x1624d2[_0x4a5cf9(0x11b)]==='ERR_STREAM_DESTROYED')return!![];return![];}
@@ -1 +1 @@
1
- const a1_0x4cf12=a1_0x5c8c;(function(_0x1c6f7d,_0x5af6d5){const _0x352001=a1_0x5c8c,_0x3d2e2c=_0x1c6f7d();while(!![]){try{const _0x508a11=-parseInt(_0x352001(0x156))/0x1+-parseInt(_0x352001(0x15d))/0x2*(parseInt(_0x352001(0x172))/0x3)+-parseInt(_0x352001(0x16d))/0x4*(parseInt(_0x352001(0x157))/0x5)+-parseInt(_0x352001(0x128))/0x6+-parseInt(_0x352001(0x11c))/0x7*(-parseInt(_0x352001(0x138))/0x8)+parseInt(_0x352001(0x122))/0x9+parseInt(_0x352001(0x10c))/0xa;if(_0x508a11===_0x5af6d5)break;else _0x3d2e2c['push'](_0x3d2e2c['shift']());}catch(_0x38c807){_0x3d2e2c['push'](_0x3d2e2c['shift']());}}}(a1_0x11ea,0xf04c8));import{CliErrors}from'../../errors.js';const CATEGORY_FLAG={'name':a1_0x4cf12(0x14e),'type':a1_0x4cf12(0x173),'description':a1_0x4cf12(0x115)},KEYWORD_FLAG={'name':'keyword','type':'string','description':a1_0x4cf12(0x12a)},DOC_CODE_FLAG={'name':a1_0x4cf12(0x11d),'type':a1_0x4cf12(0x173),'required':!![],'description':a1_0x4cf12(0x137)},DOCS=[{'code':a1_0x4cf12(0x111),'category':'dataset','title':a1_0x4cf12(0x146),'method':a1_0x4cf12(0x161),'path':'/api/dataset/get-dataset-list-by-app-code','summary':a1_0x4cf12(0x16b),'whenToUse':a1_0x4cf12(0x10a),'pathParams':[],'queryParams':[],'bodySchema':'{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','responseHighlights':[a1_0x4cf12(0x13e),a1_0x4cf12(0x174)],'examples':[a1_0x4cf12(0x14d)],'notes':[a1_0x4cf12(0x167)],'markdown':[a1_0x4cf12(0x163),'','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.'][a1_0x4cf12(0x178)]('\x0a')},{'code':a1_0x4cf12(0x12d),'category':a1_0x4cf12(0x127),'title':a1_0x4cf12(0x13c),'method':a1_0x4cf12(0x14c),'path':'/api/dataset/getOneByCode?code={datasetCode}','summary':a1_0x4cf12(0x11b),'whenToUse':a1_0x4cf12(0x179),'pathParams':[],'queryParams':[{'name':'code','description':a1_0x4cf12(0x16a)}],'bodySchema':a1_0x4cf12(0x15b),'responseHighlights':[a1_0x4cf12(0x108),a1_0x4cf12(0x15a),a1_0x4cf12(0x139)],'examples':[a1_0x4cf12(0x114)],'notes':[a1_0x4cf12(0x113)],'markdown':['##\x20Dataset\x20detail','',a1_0x4cf12(0x145)][a1_0x4cf12(0x178)]('\x0a')},{'code':a1_0x4cf12(0x119),'category':a1_0x4cf12(0x127),'title':a1_0x4cf12(0x143),'method':'POST','path':'/api/{appCode}/{datasetCode}/filter','summary':'条件过滤查询数据','whenToUse':a1_0x4cf12(0x10b),'pathParams':[{'name':a1_0x4cf12(0x12b),'description':a1_0x4cf12(0x155)},{'name':a1_0x4cf12(0x151),'description':a1_0x4cf12(0x16a)}],'queryParams':[],'bodySchema':a1_0x4cf12(0x158),'responseHighlights':[a1_0x4cf12(0x109),a1_0x4cf12(0x12e)],'examples':[a1_0x4cf12(0x159)],'notes':[a1_0x4cf12(0x135)],'markdown':['##\x20Filter\x20dataset\x20data','',a1_0x4cf12(0x123)][a1_0x4cf12(0x178)]('\x0a')},{'code':a1_0x4cf12(0x13d),'category':a1_0x4cf12(0x127),'title':a1_0x4cf12(0x13a),'method':a1_0x4cf12(0x161),'path':a1_0x4cf12(0x116),'summary':a1_0x4cf12(0x165),'whenToUse':a1_0x4cf12(0x176),'pathParams':[{'name':a1_0x4cf12(0x12b),'description':a1_0x4cf12(0x155)},{'name':a1_0x4cf12(0x151),'description':a1_0x4cf12(0x16a)}],'queryParams':[],'bodySchema':a1_0x4cf12(0x164),'responseHighlights':[a1_0x4cf12(0x107),a1_0x4cf12(0x17c)],'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_0x4cf12(0x10e),a1_0x4cf12(0x110)],'markdown':[a1_0x4cf12(0x140),'',a1_0x4cf12(0x15c)]['join']('\x0a')},{'code':'dataset_data_get_one','category':a1_0x4cf12(0x127),'title':a1_0x4cf12(0x121),'method':a1_0x4cf12(0x161),'path':a1_0x4cf12(0x17d),'summary':'查询单条数据','whenToUse':a1_0x4cf12(0x12f),'pathParams':[{'name':a1_0x4cf12(0x12b),'description':a1_0x4cf12(0x155)},{'name':a1_0x4cf12(0x151),'description':a1_0x4cf12(0x16a)}],'queryParams':[],'bodySchema':a1_0x4cf12(0x16f),'responseHighlights':['Returns\x20one\x20matching\x20business\x20record'],'examples':[a1_0x4cf12(0x141)],'notes':[a1_0x4cf12(0x14f)],'markdown':a1_0x4cf12(0x166)},{'code':a1_0x4cf12(0x153),'category':a1_0x4cf12(0x127),'title':a1_0x4cf12(0x133),'method':a1_0x4cf12(0x161),'path':a1_0x4cf12(0x162),'summary':'创建数据','whenToUse':a1_0x4cf12(0x124),'pathParams':[{'name':a1_0x4cf12(0x12b),'description':'Current\x20app\x20code'},{'name':a1_0x4cf12(0x151),'description':a1_0x4cf12(0x16a)}],'queryParams':[],'bodySchema':a1_0x4cf12(0x118),'responseHighlights':['Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result'],'examples':[a1_0x4cf12(0x126)],'notes':[a1_0x4cf12(0x144)],'markdown':'##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.'},{'code':a1_0x4cf12(0x125),'category':'bf','title':a1_0x4cf12(0x13f),'method':'GET','path':a1_0x4cf12(0x15e),'summary':a1_0x4cf12(0x152),'whenToUse':a1_0x4cf12(0x150),'pathParams':[{'name':a1_0x4cf12(0x12b),'description':a1_0x4cf12(0x155)}],'queryParams':[],'bodySchema':'None','responseHighlights':['Returns\x20endpoint\x20functionName/id/description'],'examples':[a1_0x4cf12(0x132)],'notes':['CLI\x20has\x20typed\x20`bff\x20detail`\x20and\x20`bff\x20exec`\x20commands\x20for\x20endpoint\x20scripts.'],'markdown':a1_0x4cf12(0x177)},{'code':a1_0x4cf12(0x160),'category':'bf','title':'Execute\x20BF\x20endpoint\x20function','method':a1_0x4cf12(0x161),'path':a1_0x4cf12(0x17a),'summary':a1_0x4cf12(0x17e),'whenToUse':'已经确认目标\x20BF\x20的\x20scriptName,且需要实际调用该\x20ENDPOINT\x20脚本完成业务操作时使用','pathParams':[{'name':'appCode','description':a1_0x4cf12(0x155)},{'name':a1_0x4cf12(0x171),'description':a1_0x4cf12(0x149)}],'queryParams':[],'bodySchema':'{\x22param\x22:\x22value\x22}','responseHighlights':[a1_0x4cf12(0x12c)],'examples':[a1_0x4cf12(0x169)],'notes':['Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.'],'markdown':a1_0x4cf12(0x17b)},{'code':'custom_sql_execute','category':a1_0x4cf12(0x120),'title':a1_0x4cf12(0x170),'method':a1_0x4cf12(0x161),'path':a1_0x4cf12(0x136),'summary':'执行自定义\x20SQL','whenToUse':'已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','pathParams':[],'queryParams':[],'bodySchema':a1_0x4cf12(0x10f),'responseHighlights':[a1_0x4cf12(0x175)],'examples':['lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27'],'notes':[a1_0x4cf12(0x134)],'markdown':a1_0x4cf12(0x112)}];function a1_0x5c8c(_0x4669a5,_0x40f609){_0x4669a5=_0x4669a5-0x107;const _0x11eaed=a1_0x11ea();let _0x5c8cdb=_0x11eaed[_0x4669a5];return _0x5c8cdb;}function a1_0x11ea(){const _0x3d3dc5=['Current\x20app\x20code','1445793PfGpzr','43175UAlmYD','{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:5}\x27','relations\x20contains\x20the\x20object-shaped\x20API\x20relations\x20value\x20when\x20returned','None','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.','230714YSrpqT','/api/endpoint/{appCode}/functions','path','bf_execute','POST','/api/{appCode}/{datasetCode}/create','##\x20List\x20datasets','{\x22aggregate\x22:[{\x22column\x22:\x20\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','聚合查询数据集数据','##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.','CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.','trim','lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27','32-character\x20dataset\x20code','分页获取数据集列表','whenToUse','36jdsGIr','map','{\x22id\x22:123}','Execute\x20custom\x20SQL','scriptName','3tNQOpg','string','paging.totalCount\x20gives\x20total\x20rows','Returns\x20SQL\x20execution\x20payload','需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用','##\x20List\x20BF\x20endpoint\x20functions\x0a\x0aDiscover\x20executable\x20endpoint\x20functions.','join','需要按数据集\x20code\x20获取字段、表信息、关联关系(relations)或操作定义时使用','/api/endpoint/{appCode}/{scriptName}','##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.','where\x20filters\x20before\x20aggregation','/api/{appCode}/{datasetCode}/getOne','执行指定\x20BF\x20函数','result\x20rows\x20contain\x20aggregate\x20aliases','fields/properties\x20describe\x20data\x20shape','tableData\x20contains\x20records','需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','需要携带\x20where、orderBy、分页等条件读取业务数据时使用','8667630OpfqSi','list','Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.','{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','dataset_list','##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.','If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.','lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>','Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset','/api/{appCode}/{datasetCode}/aggregate','Show\x20runtime\x20API\x20documentation\x20by\x20code','{\x22fieldName\x22:\x22value\x22}','dataset_data_filter','find','获取数据集详情','1668408mBolcx','code','API\x20doc\x20code\x20not\x20found:\x20','length','custom_sql','Get\x20one\x20dataset\x20record','6884262bawvTC','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.','需要向指定数据集新增一条业务数据时使用','bf_function_list','lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27','dataset','2631696ifOSxi','read','Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text','appCode','Returns\x20script\x20business\x20payload','dataset_detail','paging\x20contains\x20pagination','已经知道记录\x20id,需要按数据集读取单条业务数据时使用','title','str','lovrabet\x20bff\x20detail\x20--id\x20<scriptId>\x20--appcode\x20<appCode>','Create\x20dataset\x20record','Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.','Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.','/api/custom/executeSql','API\x20doc\x20code,\x20for\x20example\x20dataset_list','48czFocT','operations\x20describes\x20runtime\x20APIs','Aggregate\x20dataset\x20data','summary','Dataset\x20detail','dataset_data_aggregate','tableData\x20contains\x20dataset\x20id/code/name','List\x20BF\x20endpoint\x20functions','##\x20Aggregate\x20dataset\x20data','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27','api-doc','Filter\x20dataset\x20data','This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.','Inspect\x20field\x20names,\x20relations,\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.','List\x20datasets','method','toLowerCase','Endpoint\x20function\x20name','detail','keyword','GET','lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress','category','Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.','需要先确认当前应用有哪些可执行的\x20BF/ENDPOINT\x20函数,以及收敛可用\x20scriptName\x20时使用','datasetCode','获取应用下可调用的\x20BF\x20函数列表','dataset_data_create','filter'];a1_0x11ea=function(){return _0x3d3dc5;};return a1_0x11ea();}function entrySummary(_0x5c6710){const _0x4c72b4=a1_0x4cf12;return{'code':_0x5c6710[_0x4c72b4(0x11d)],'category':_0x5c6710[_0x4c72b4(0x14e)],'method':_0x5c6710[_0x4c72b4(0x147)],'path':_0x5c6710[_0x4c72b4(0x15f)],'summary':_0x5c6710['summary'],'whenToUse':_0x5c6710[_0x4c72b4(0x16c)]};}export function listApiDocEntries(_0x1187de={}){const _0x27f272=a1_0x4cf12,_0x23da16=String(_0x1187de[_0x27f272(0x14e)]||'')['trim'](),_0x40947a=String(_0x1187de[_0x27f272(0x14b)]||'')[_0x27f272(0x168)]()[_0x27f272(0x148)]();return DOCS[_0x27f272(0x154)](_0x2efa43=>{const _0x55b064=_0x27f272;if(_0x23da16&&_0x2efa43[_0x55b064(0x14e)]!==_0x23da16)return![];if(!_0x40947a)return!![];return[_0x2efa43[_0x55b064(0x11d)],_0x2efa43[_0x55b064(0x14e)],_0x2efa43[_0x55b064(0x147)],_0x2efa43['path'],_0x2efa43[_0x55b064(0x13b)],_0x2efa43[_0x55b064(0x16c)],_0x2efa43[_0x55b064(0x130)]][_0x55b064(0x178)]('\x20')[_0x55b064(0x148)]()['includes'](_0x40947a);})[_0x27f272(0x16e)](entrySummary);}export function getApiDocDetail(_0x38b8e7){const _0x3d7e79=a1_0x4cf12,_0x22f5bb=DOCS[_0x3d7e79(0x11a)](_0x2c32c8=>_0x2c32c8[_0x3d7e79(0x11d)]===_0x38b8e7);if(!_0x22f5bb)throw CliErrors['validation'](_0x3d7e79(0x11e)+_0x38b8e7);return{..._0x22f5bb};}const apiDocList={'service':a1_0x4cf12(0x142),'command':a1_0x4cf12(0x10d),'description':'List\x20available\x20runtime\x20API\x20documentation\x20entries','risk':a1_0x4cf12(0x129),'requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0x2a1eaa){const _0x12c03f=a1_0x4cf12,_0x5a8db1=listApiDocEntries({'category':_0x2a1eaa[_0x12c03f(0x131)]('category'),'keyword':_0x2a1eaa[_0x12c03f(0x131)](_0x12c03f(0x14b))});return{'ok':!![],'data':{'total':_0x5a8db1[_0x12c03f(0x11f)],'items':_0x5a8db1}};}},apiDocDetail={'service':a1_0x4cf12(0x142),'command':a1_0x4cf12(0x14a),'description':a1_0x4cf12(0x117),'risk':a1_0x4cf12(0x129),'requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0x447399){const _0x13288a=a1_0x4cf12;return{'ok':!![],'data':getApiDocDetail(_0x447399[_0x13288a(0x131)](_0x13288a(0x11d)))};}};export const apiDocDefinitions=[apiDocList,apiDocDetail];
1
+ const a1_0x1b937f=a1_0x1a62;(function(_0x537252,_0x435b0e){const _0x2c6064=a1_0x1a62,_0x1973d7=_0x537252();while(!![]){try{const _0x37f275=-parseInt(_0x2c6064(0x1c7))/0x1*(-parseInt(_0x2c6064(0x1df))/0x2)+-parseInt(_0x2c6064(0x1da))/0x3+-parseInt(_0x2c6064(0x1bb))/0x4+-parseInt(_0x2c6064(0x18a))/0x5*(parseInt(_0x2c6064(0x1ae))/0x6)+parseInt(_0x2c6064(0x193))/0x7*(-parseInt(_0x2c6064(0x1b6))/0x8)+-parseInt(_0x2c6064(0x1b7))/0x9+parseInt(_0x2c6064(0x17f))/0xa;if(_0x37f275===_0x435b0e)break;else _0x1973d7['push'](_0x1973d7['shift']());}catch(_0x2ae475){_0x1973d7['push'](_0x1973d7['shift']());}}}(a1_0x5b11,0xa624d));import{CliErrors}from'../../errors.js';const CATEGORY_FLAG={'name':a1_0x1b937f(0x1f5),'type':a1_0x1b937f(0x1d6),'description':a1_0x1b937f(0x1c3)},KEYWORD_FLAG={'name':a1_0x1b937f(0x195),'type':a1_0x1b937f(0x1d6),'description':a1_0x1b937f(0x1d1)},DOC_CODE_FLAG={'name':a1_0x1b937f(0x183),'type':a1_0x1b937f(0x1d6),'required':!![],'description':a1_0x1b937f(0x1ec)},DOCS=[{'code':a1_0x1b937f(0x19d),'category':a1_0x1b937f(0x1ad),'title':a1_0x1b937f(0x191),'method':a1_0x1b937f(0x1d4),'path':a1_0x1b937f(0x1a4),'summary':a1_0x1b937f(0x1dd),'whenToUse':a1_0x1b937f(0x1d8),'pathParams':[],'queryParams':[],'bodySchema':a1_0x1b937f(0x1a6),'responseHighlights':[a1_0x1b937f(0x1bc),a1_0x1b937f(0x1a5)],'examples':[a1_0x1b937f(0x18e)],'notes':[a1_0x1b937f(0x185)],'markdown':[a1_0x1b937f(0x1aa),'',a1_0x1b937f(0x1a3)][a1_0x1b937f(0x181)]('\x0a')},{'code':a1_0x1b937f(0x1d5),'category':a1_0x1b937f(0x1ad),'title':a1_0x1b937f(0x1f2),'method':a1_0x1b937f(0x197),'path':a1_0x1b937f(0x18f),'summary':a1_0x1b937f(0x1b1),'whenToUse':'需要按数据集\x20code\x20获取字段、表信息、关联关系(relations)或操作定义时使用','pathParams':[],'queryParams':[{'name':a1_0x1b937f(0x183),'description':a1_0x1b937f(0x1b3)}],'bodySchema':a1_0x1b937f(0x1e7),'responseHighlights':[a1_0x1b937f(0x184),a1_0x1b937f(0x18b),a1_0x1b937f(0x19c)],'examples':[a1_0x1b937f(0x1b8)],'notes':[a1_0x1b937f(0x1c5)],'markdown':[a1_0x1b937f(0x1d3),'','Inspect\x20field\x20names,\x20relations,\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.'][a1_0x1b937f(0x181)]('\x0a')},{'code':'dataset_data_filter','category':'dataset','title':a1_0x1b937f(0x1fa),'method':a1_0x1b937f(0x1d4),'path':a1_0x1b937f(0x1d0),'summary':a1_0x1b937f(0x187),'whenToUse':a1_0x1b937f(0x1cf),'pathParams':[{'name':a1_0x1b937f(0x194),'description':a1_0x1b937f(0x1ee)},{'name':a1_0x1b937f(0x1e8),'description':a1_0x1b937f(0x1b3)}],'queryParams':[],'bodySchema':a1_0x1b937f(0x1e6),'responseHighlights':[a1_0x1b937f(0x18c),a1_0x1b937f(0x17e)],'examples':[a1_0x1b937f(0x1e9)],'notes':[a1_0x1b937f(0x1eb)],'markdown':[a1_0x1b937f(0x1e3),'','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.'][a1_0x1b937f(0x181)]('\x0a')},{'code':a1_0x1b937f(0x1c6),'category':a1_0x1b937f(0x1ad),'title':a1_0x1b937f(0x1bd),'method':a1_0x1b937f(0x1d4),'path':'/api/{appCode}/{datasetCode}/aggregate','summary':a1_0x1b937f(0x1be),'whenToUse':a1_0x1b937f(0x1ef),'pathParams':[{'name':a1_0x1b937f(0x194),'description':a1_0x1b937f(0x1ee)},{'name':a1_0x1b937f(0x1e8),'description':a1_0x1b937f(0x1b3)}],'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_0x1b937f(0x1d2)],'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_0x1b937f(0x1c8),a1_0x1b937f(0x1ea)],'markdown':[a1_0x1b937f(0x186),'',a1_0x1b937f(0x1e0)][a1_0x1b937f(0x181)]('\x0a')},{'code':a1_0x1b937f(0x199),'category':a1_0x1b937f(0x1ad),'title':'Get\x20one\x20dataset\x20record','method':a1_0x1b937f(0x1d4),'path':'/api/{appCode}/{datasetCode}/getOne','summary':a1_0x1b937f(0x1a2),'whenToUse':a1_0x1b937f(0x1e5),'pathParams':[{'name':a1_0x1b937f(0x194),'description':a1_0x1b937f(0x1ee)},{'name':'datasetCode','description':a1_0x1b937f(0x1b3)}],'queryParams':[],'bodySchema':a1_0x1b937f(0x19b),'responseHighlights':[a1_0x1b937f(0x1f8)],'examples':[a1_0x1b937f(0x182)],'notes':[a1_0x1b937f(0x1db)],'markdown':a1_0x1b937f(0x1c0)},{'code':a1_0x1b937f(0x1f3),'category':a1_0x1b937f(0x1ad),'title':a1_0x1b937f(0x190),'method':a1_0x1b937f(0x1d4),'path':a1_0x1b937f(0x1f0),'summary':a1_0x1b937f(0x1cd),'whenToUse':a1_0x1b937f(0x1a8),'pathParams':[{'name':a1_0x1b937f(0x194),'description':a1_0x1b937f(0x1ee)},{'name':a1_0x1b937f(0x1e8),'description':a1_0x1b937f(0x1b3)}],'queryParams':[],'bodySchema':a1_0x1b937f(0x1f9),'responseHighlights':[a1_0x1b937f(0x1b4)],'examples':[a1_0x1b937f(0x1d7)],'notes':[a1_0x1b937f(0x198)],'markdown':a1_0x1b937f(0x19f)},{'code':a1_0x1b937f(0x1de),'category':'bf','title':a1_0x1b937f(0x1e2),'method':a1_0x1b937f(0x197),'path':a1_0x1b937f(0x180),'summary':'获取应用下可调用的\x20BF\x20函数列表','whenToUse':a1_0x1b937f(0x1cc),'pathParams':[{'name':a1_0x1b937f(0x194),'description':a1_0x1b937f(0x1ee)}],'queryParams':[],'bodySchema':a1_0x1b937f(0x1e7),'responseHighlights':[a1_0x1b937f(0x1ac)],'examples':['lovrabet\x20bff\x20detail\x20--id\x20<scriptId>\x20--appcode\x20<appCode>'],'notes':[a1_0x1b937f(0x188)],'markdown':'##\x20List\x20BF\x20endpoint\x20functions\x0a\x0aDiscover\x20executable\x20endpoint\x20functions.'},{'code':a1_0x1b937f(0x1dc),'category':'bf','title':'Execute\x20BF\x20endpoint\x20function','method':a1_0x1b937f(0x1d4),'path':'/api/endpoint/{appCode}/{scriptName}','summary':a1_0x1b937f(0x1f4),'whenToUse':'已经确认目标\x20BF\x20的\x20scriptName,且需要实际调用该\x20ENDPOINT\x20脚本完成业务操作时使用','pathParams':[{'name':a1_0x1b937f(0x194),'description':a1_0x1b937f(0x1ee)},{'name':a1_0x1b937f(0x192),'description':a1_0x1b937f(0x196)}],'queryParams':[],'bodySchema':a1_0x1b937f(0x1ab),'responseHighlights':['Returns\x20script\x20business\x20payload'],'examples':[a1_0x1b937f(0x189)],'notes':[a1_0x1b937f(0x1b0)],'markdown':a1_0x1b937f(0x1b2)},{'code':'custom_sql_execute','category':a1_0x1b937f(0x1e4),'title':a1_0x1b937f(0x1c1),'method':a1_0x1b937f(0x1d4),'path':a1_0x1b937f(0x18d),'summary':a1_0x1b937f(0x1a7),'whenToUse':a1_0x1b937f(0x1e1),'pathParams':[],'queryParams':[],'bodySchema':a1_0x1b937f(0x1b5),'responseHighlights':[a1_0x1b937f(0x1ce)],'examples':[a1_0x1b937f(0x1a9)],'notes':['Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.'],'markdown':a1_0x1b937f(0x1cb)}];function entrySummary(_0x4ef67d){const _0x17f0c1=a1_0x1b937f;return{'code':_0x4ef67d['code'],'category':_0x4ef67d[_0x17f0c1(0x1f5)],'method':_0x4ef67d[_0x17f0c1(0x1a0)],'path':_0x4ef67d[_0x17f0c1(0x1a1)],'summary':_0x4ef67d[_0x17f0c1(0x1ca)],'whenToUse':_0x4ef67d[_0x17f0c1(0x1af)]};}function a1_0x1a62(_0x4ee20a,_0x477e46){_0x4ee20a=_0x4ee20a-0x17e;const _0x5b11b9=a1_0x5b11();let _0x1a6236=_0x5b11b9[_0x4ee20a];return _0x1a6236;}export function listApiDocEntries(_0x463049={}){const _0x45b5d7=a1_0x1b937f,_0x109bbb=String(_0x463049[_0x45b5d7(0x1f5)]||'')[_0x45b5d7(0x1ed)](),_0x4b9f4c=String(_0x463049['keyword']||'')['trim']()[_0x45b5d7(0x1d9)]();return DOCS[_0x45b5d7(0x1f1)](_0x58a2dc=>{const _0x4c7ea8=_0x45b5d7;if(_0x109bbb&&_0x58a2dc[_0x4c7ea8(0x1f5)]!==_0x109bbb)return![];if(!_0x4b9f4c)return!![];return[_0x58a2dc['code'],_0x58a2dc[_0x4c7ea8(0x1f5)],_0x58a2dc[_0x4c7ea8(0x1a0)],_0x58a2dc[_0x4c7ea8(0x1a1)],_0x58a2dc[_0x4c7ea8(0x1ca)],_0x58a2dc['whenToUse'],_0x58a2dc[_0x4c7ea8(0x1f6)]]['join']('\x20')[_0x4c7ea8(0x1d9)]()['includes'](_0x4b9f4c);})['map'](entrySummary);}export function getApiDocDetail(_0x18cc82){const _0x63ea01=a1_0x1b937f,_0x373032=DOCS[_0x63ea01(0x1bf)](_0x38d7f4=>_0x38d7f4[_0x63ea01(0x183)]===_0x18cc82);if(!_0x373032)throw CliErrors[_0x63ea01(0x1ba)](_0x63ea01(0x1c2)+_0x18cc82);return{..._0x373032};}const apiDocList={'service':a1_0x1b937f(0x1b9),'command':'list','description':'List\x20available\x20runtime\x20API\x20documentation\x20entries','risk':a1_0x1b937f(0x19a),'requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0x1fed35){const _0x41ec1f=a1_0x1b937f,_0x1c097d=listApiDocEntries({'category':_0x1fed35['str'](_0x41ec1f(0x1f5)),'keyword':_0x1fed35[_0x41ec1f(0x19e)]('keyword')});return{'ok':!![],'data':{'total':_0x1c097d[_0x41ec1f(0x1c9)],'items':_0x1c097d}};}},apiDocDetail={'service':a1_0x1b937f(0x1b9),'command':a1_0x1b937f(0x1f7),'description':a1_0x1b937f(0x1c4),'risk':'read','requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0x49336c){const _0x173f6a=a1_0x1b937f;return{'ok':!![],'data':getApiDocDetail(_0x49336c[_0x173f6a(0x19e)](_0x173f6a(0x183)))};}};function a1_0x5b11(){const _0x537121=['聚合查询数据集数据','find','##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.','Execute\x20custom\x20SQL','API\x20doc\x20code\x20not\x20found:\x20','Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset','Show\x20runtime\x20API\x20documentation\x20by\x20code','If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.','dataset_data_aggregate','2187huCPst','Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.','length','summary','##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.','需要先确认当前应用有哪些可执行的\x20BF/ENDPOINT\x20函数,以及收敛可用\x20scriptName\x20时使用','创建数据','Returns\x20SQL\x20execution\x20payload','需要携带\x20where、orderBy、分页等条件读取业务数据时使用','/api/{appCode}/{datasetCode}/filter','Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text','where\x20filters\x20before\x20aggregation','##\x20Dataset\x20detail','POST','dataset_detail','string','lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27','需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','toLowerCase','2919489DIdcns','Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.','bf_execute','分页获取数据集列表','bf_function_list','498nTotiZ','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.','已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','List\x20BF\x20endpoint\x20functions','##\x20Filter\x20dataset\x20data','custom_sql','已经知道记录\x20id,需要按数据集读取单条业务数据时使用','{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','None','datasetCode','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:5}\x27','`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.','API\x20doc\x20code,\x20for\x20example\x20dataset_list','trim','Current\x20app\x20code','需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用','/api/{appCode}/{datasetCode}/create','filter','Dataset\x20detail','dataset_data_create','执行指定\x20BF\x20函数','category','title','detail','Returns\x20one\x20matching\x20business\x20record','{\x22fieldName\x22:\x22value\x22}','Filter\x20dataset\x20data','paging\x20contains\x20pagination','33189590zAOqoN','/api/endpoint/{appCode}/functions','join','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27','code','fields/properties\x20describe\x20data\x20shape','CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.','##\x20Aggregate\x20dataset\x20data','条件过滤查询数据','CLI\x20has\x20typed\x20`bff\x20detail`\x20and\x20`bff\x20exec`\x20commands\x20for\x20endpoint\x20scripts.','lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27','3916135qzhNMX','relations\x20contains\x20the\x20object-shaped\x20API\x20relations\x20value\x20when\x20returned','tableData\x20contains\x20records','/api/custom/executeSql','lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress','/api/dataset/getOneByCode?code={datasetCode}','Create\x20dataset\x20record','List\x20datasets','scriptName','158319ixVSpw','appCode','keyword','Endpoint\x20function\x20name','GET','This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.','dataset_data_get_one','read','{\x22id\x22:123}','operations\x20describes\x20runtime\x20APIs','dataset_list','str','##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.','method','path','查询单条数据','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.','/api/dataset/get-dataset-list-by-app-code','paging.totalCount\x20gives\x20total\x20rows','{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','执行自定义\x20SQL','需要向指定数据集新增一条业务数据时使用','lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27','##\x20List\x20datasets','{\x22param\x22:\x22value\x22}','Returns\x20endpoint\x20functionName/id/description','dataset','6VpvyaN','whenToUse','Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.','获取数据集详情','##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.','32-character\x20dataset\x20code','Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result','{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','168GVWqXq','3663756bJZPDH','lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>','api-doc','validation','2178264gEiQbD','tableData\x20contains\x20dataset\x20id/code/name','Aggregate\x20dataset\x20data'];a1_0x5b11=function(){return _0x537121;};return a1_0x5b11();}export const apiDocDefinitions=[apiDocList,apiDocDetail];
@@ -1 +1 @@
1
- (function(_0x10712a,_0x4fcbf2){const _0x3143f0=a2_0x5192,_0x521514=_0x10712a();while(!![]){try{const _0x4f17dc=parseInt(_0x3143f0(0x1bc))/0x1*(parseInt(_0x3143f0(0x1b8))/0x2)+-parseInt(_0x3143f0(0x1bf))/0x3+-parseInt(_0x3143f0(0x1c3))/0x4*(parseInt(_0x3143f0(0x1c4))/0x5)+parseInt(_0x3143f0(0x1b1))/0x6+parseInt(_0x3143f0(0x1c5))/0x7+-parseInt(_0x3143f0(0x1b4))/0x8*(parseInt(_0x3143f0(0x1b3))/0x9)+parseInt(_0x3143f0(0x1ac))/0xa*(parseInt(_0x3143f0(0x1c7))/0xb);if(_0x4f17dc===_0x4fcbf2)break;else _0x521514['push'](_0x521514['shift']());}catch(_0x74062b){_0x521514['push'](_0x521514['shift']());}}}(a2_0x4d03,0x9312e));import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a2_0x5192(_0x14c088,_0x98e42b){_0x14c088=_0x14c088-0x1ac;const _0x4d038c=a2_0x4d03();let _0x51929b=_0x4d038c[_0x14c088];return _0x51929b;}function a2_0x4d03(){const _0x571878=['4tNJqPP','6020380gTkBIY','2398956uaMuZD','my-apps.json','22YSXNzN','EACCES','4795060ZwBJUb','utf8','code','EPERM','ak_','6993876mmzMQy','unknown','13437omOwjW','4016JJOPAJ','appName','appCode','stringify','2350tvJGpv','slice','EXDEV','parse','453MPRAeX','trim','find','1330995vtJiSb','sha256','.tmp','items'];a2_0x4d03=function(){return _0x571878;};return a2_0x4d03();}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(_0x45e476){const _0x4de24b=a2_0x5192,_0xe5d45b=_0x45e476[_0x4de24b(0x1bd)](),_0x6c4977=_0xe5d45b[_0x4de24b(0x1b9)](-0x6)||_0x4de24b(0x1b2),_0x348317=createHash(_0x4de24b(0x1c0))['update'](_0xe5d45b)['digest']('hex')[_0x4de24b(0x1b9)](0x0,0xc);return _0x4de24b(0x1b0)+_0x6c4977+'_'+_0x348317;}export function getAppCacheFilePath(_0x237211,_0x58890c){const _0x66812e=a2_0x5192;return resolve(homedir(),PRODUCT_CONFIG['homeDirName'],'cache',_0x237211,fingerprintAccessKey(_0x58890c),_0x66812e(0x1c6));}export function readCachedAppList(_0xdae1db,_0x54fbf6){const _0x4a761f=a2_0x5192;if(!_0x54fbf6?.[_0x4a761f(0x1bd)]())return null;const _0x1dac3f=getAppCacheFilePath(_0xdae1db,_0x54fbf6);if(!existsSync(_0x1dac3f))return null;try{const _0x2944d7=readFileSync(_0x1dac3f,_0x4a761f(0x1ad));if(!_0x2944d7['trim']())return null;const _0x3c5d75=JSON[_0x4a761f(0x1bb)](_0x2944d7);if(!Array['isArray'](_0x3c5d75['items']))return null;return _0x3c5d75;}catch{return null;}}export function writeCachedAppList(_0x5b5bfd,_0x416e3e,_0xe1a116){const _0x28c21e=a2_0x5192,_0x5a0b3c=getAppCacheFilePath(_0x5b5bfd,_0x416e3e),_0x43a7f4=dirname(_0x5a0b3c);!existsSync(_0x43a7f4)&&mkdirSync(_0x43a7f4,{'recursive':!![]});const _0x1d4c30=_0x5a0b3c+_0x28c21e(0x1c1);try{writeFileSync(_0x1d4c30,JSON[_0x28c21e(0x1b7)](_0xe1a116,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x1d4c30,_0x5a0b3c);}catch(_0x3bdafc){if(_0x3bdafc[_0x28c21e(0x1ae)]===_0x28c21e(0x1af)||_0x3bdafc['code']===_0x28c21e(0x1ba)||_0x3bdafc['code']===_0x28c21e(0x1c8)){writeFileSync(_0x5a0b3c,JSON['stringify'](_0xe1a116,null,0x2)+'\x0a',{'encoding':_0x28c21e(0x1ad)});try{unlinkSync(_0x1d4c30);}catch{}}else throw _0x3bdafc;}}catch(_0x38bf92){try{unlinkSync(_0x1d4c30);}catch{}throw _0x38bf92;}return _0x5a0b3c;}export function resolveCachedAppCode(_0x266ed7,_0x2f3b88,_0xb65a46){const _0x378809=a2_0x5192;if(!_0x266ed7)return undefined;const _0x25a9a7=readCachedAppList(_0x2f3b88,_0xb65a46),_0x1de086=_0x25a9a7?.[_0x378809(0x1c2)][_0x378809(0x1be)](_0x22862b=>_0x22862b[_0x378809(0x1b5)]===_0x266ed7&&isRuntimeAccessibleApp(_0x22862b));return _0x1de086?.[_0x378809(0x1b6)]?.[_0x378809(0x1bd)]()||undefined;}
1
+ (function(_0x59bdd6,_0x46449d){const _0x2a9d4d=a2_0x1369,_0x25f6b6=_0x59bdd6();while(!![]){try{const _0x224617=parseInt(_0x2a9d4d(0xfb))/0x1*(parseInt(_0x2a9d4d(0xfa))/0x2)+parseInt(_0x2a9d4d(0x105))/0x3+parseInt(_0x2a9d4d(0xfe))/0x4+-parseInt(_0x2a9d4d(0x10e))/0x5+-parseInt(_0x2a9d4d(0x10d))/0x6*(-parseInt(_0x2a9d4d(0x10a))/0x7)+-parseInt(_0x2a9d4d(0x102))/0x8*(-parseInt(_0x2a9d4d(0x104))/0x9)+parseInt(_0x2a9d4d(0xf5))/0xa*(-parseInt(_0x2a9d4d(0xff))/0xb);if(_0x224617===_0x46449d)break;else _0x25f6b6['push'](_0x25f6b6['shift']());}catch(_0x7a7d99){_0x25f6b6['push'](_0x25f6b6['shift']());}}}(a2_0x4500,0xbcdb3));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';function a2_0x4500(){const _0x806d48=['3477880zwliEd','.tmp','items','digest','sha256','17131390jpbVMA','my-apps.json','trim','hex','isArray','203256TZUWbM','13uWmyxY','ak_','update','4577992UramJW','22UeNWOQ','EACCES','stringify','8uehvjE','cache','9744795QKzUfY','1429758vEZqyf','parse','slice','utf8','appCode','301UHTZAZ','homeDirName','find','121452nbjiaL'];a2_0x4500=function(){return _0x806d48;};return a2_0x4500();}function a2_0x1369(_0x25d8ac,_0x392310){_0x25d8ac=_0x25d8ac-0xf4;const _0x450012=a2_0x4500();let _0x13698b=_0x450012[_0x25d8ac];return _0x13698b;}import{isRuntimeAccessibleApp}from'../../commands/app/eligibility.js';export function fingerprintAccessKey(_0x2001cc){const _0x532f18=a2_0x1369,_0x502e81=_0x2001cc[_0x532f18(0xf7)](),_0x188014=_0x502e81[_0x532f18(0x107)](-0x6)||'unknown',_0x3e6b6f=createHash(_0x532f18(0xf4))[_0x532f18(0xfd)](_0x502e81)[_0x532f18(0x111)](_0x532f18(0xf8))[_0x532f18(0x107)](0x0,0xc);return _0x532f18(0xfc)+_0x188014+'_'+_0x3e6b6f;}export function getAppCacheFilePath(_0x528eed,_0x3393d3){const _0x1a527e=a2_0x1369;return resolve(homedir(),PRODUCT_CONFIG[_0x1a527e(0x10b)],_0x1a527e(0x103),_0x528eed,fingerprintAccessKey(_0x3393d3),_0x1a527e(0xf6));}export function readCachedAppList(_0x47119b,_0x317da7){const _0x5ad400=a2_0x1369;if(!_0x317da7?.['trim']())return null;const _0x29e597=getAppCacheFilePath(_0x47119b,_0x317da7);if(!existsSync(_0x29e597))return null;try{const _0x10e2ee=readFileSync(_0x29e597,_0x5ad400(0x108));if(!_0x10e2ee['trim']())return null;const _0x5e8218=JSON[_0x5ad400(0x106)](_0x10e2ee);if(!Array[_0x5ad400(0xf9)](_0x5e8218[_0x5ad400(0x110)]))return null;return _0x5e8218;}catch{return null;}}export function writeCachedAppList(_0x2967cc,_0x141034,_0x303064){const _0x2f400f=a2_0x1369,_0x2411fa=getAppCacheFilePath(_0x2967cc,_0x141034),_0x43d242=dirname(_0x2411fa);!existsSync(_0x43d242)&&mkdirSync(_0x43d242,{'recursive':!![]});const _0x244e3d=_0x2411fa+_0x2f400f(0x10f);try{writeFileSync(_0x244e3d,JSON[_0x2f400f(0x101)](_0x303064,null,0x2)+'\x0a',{'encoding':_0x2f400f(0x108),'mode':0x180});try{renameSync(_0x244e3d,_0x2411fa);}catch(_0x12a810){if(_0x12a810['code']==='EPERM'||_0x12a810['code']==='EXDEV'||_0x12a810['code']===_0x2f400f(0x100)){writeFileSync(_0x2411fa,JSON['stringify'](_0x303064,null,0x2)+'\x0a',{'encoding':_0x2f400f(0x108)});try{unlinkSync(_0x244e3d);}catch{}}else throw _0x12a810;}}catch(_0x25766c){try{unlinkSync(_0x244e3d);}catch{}throw _0x25766c;}return _0x2411fa;}export function resolveCachedAppCode(_0x2ba11d,_0x4cfb96,_0x3e1c67){const _0x25c4e=a2_0x1369;if(!_0x2ba11d)return undefined;const _0x1d1267=readCachedAppList(_0x4cfb96,_0x3e1c67),_0x4ce1b7=_0x1d1267?.['items'][_0x25c4e(0x10c)](_0x3e4ca4=>_0x3e4ca4['appName']===_0x2ba11d&&isRuntimeAccessibleApp(_0x3e4ca4));return _0x4ce1b7?.[_0x25c4e(0x109)]?.[_0x25c4e(0xf7)]()||undefined;}
@@ -1 +1 @@
1
- const a3_0x25d084=a3_0xa62d;(function(_0x5cd6a1,_0x4c39dd){const _0x3d133a=a3_0xa62d,_0x57466c=_0x5cd6a1();while(!![]){try{const _0x35b3cc=parseInt(_0x3d133a(0x211))/0x1*(parseInt(_0x3d133a(0x1ff))/0x2)+-parseInt(_0x3d133a(0x201))/0x3*(parseInt(_0x3d133a(0x205))/0x4)+parseInt(_0x3d133a(0x229))/0x5+-parseInt(_0x3d133a(0x207))/0x6+-parseInt(_0x3d133a(0x21f))/0x7*(-parseInt(_0x3d133a(0x22b))/0x8)+-parseInt(_0x3d133a(0x230))/0x9+parseInt(_0x3d133a(0x21e))/0xa;if(_0x35b3cc===_0x4c39dd)break;else _0x57466c['push'](_0x57466c['shift']());}catch(_0x505520){_0x57466c['push'](_0x57466c['shift']());}}}(a3_0x3bd0,0x8b72c));import{CliErrors}from'../../errors.js';import{initCreateFlagDefs,initImportFlagDefs,runInit,runInitImport}from'../../commands/init.js';import{getEnv,RUNTIME_ENV_VALUES}from'../../constant/env.js';import{buildAppProfileListFields}from'../../config/schema.js';import{CLI_BIN_NAME,readConfig,writeConfig,scopeLabel,enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';function a3_0x3bd0(){const _0x21c328=['find','No\x20cached\x20apps\x20found.','trim','app','projectPath','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','124udSGki','env','92121YeFVPM','mergedCli','Read\x20app\x20list\x20from\x20local\x20cache\x20only','App\x20\x22','140reQWrQ','string','2158620TjBYFD','\x20app\x20use\x20<name>\x20[--global]','.appcode\x20to\x20.lovrabet.json.','length','production','\x20is\x20deprecated.\x20Use\x20`','filter','`\x20instead.','read','no-cache','14291IbhuoD','project-default','nonInteractive','\x20cached\x20app(s)\x20for\x20env=\x22','Use\x20global\x20config\x20scope','No\x20apps\x20found\x20on\x20the\x20platform.','str','Available\x20remote\x20apps:\x20','global','warn','type','isArray','Use\x20`','14283490eljeiD','7Znxlpw','appcode','appCode','args','cachePath','Include\x20unpublished\x20apps\x20for\x20diagnostics','source','.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.','name','from','1774830DvFeJA','Deprecated:\x20use\x20workspace\x20use\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','2818696trJSeY','Usage:\x20','../../context.js','pull','\x22\x20not\x20found.','9143991lXKJLX','init','use','join','remote','bool','enableI18n','appPublishStatus','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','fetchedAt','items','envName','appName','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','Missing\x20app\x20name.','\x20workspace\x20use\x20--app\x20<name>\x20[--env\x20daily]','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','Deprecated:\x20use\x20workspace\x20init\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','include-unpublished','write','push','boolean','Default\x20app\x20candidate\x20set\x20to\x20\x22','accessKey','validation','map','../../commands/app/remote-source.js','import','\x20app\x20','defaultApp','i18nInfo','appOwnerName','langs','local','cache'];a3_0x3bd0=function(){return _0x21c328;};return a3_0x3bd0();}import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{filterRuntimeAccessibleApps,findAppByCode,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const GLOBAL_FLAG={'name':a3_0x25d084(0x219),'type':'boolean','description':a3_0x25d084(0x215),'default':![]};function collectFlags(_0x5c8aab,_0x1c3f38){const _0x67d181=a3_0x25d084,_0x29bfa2={};for(const _0x1df758 of _0x1c3f38){const _0xdec583=_0x1df758[_0x67d181(0x21b)]===_0x67d181(0x1eb)?_0x5c8aab[_0x67d181(0x235)](_0x1df758[_0x67d181(0x227)]):_0x5c8aab[_0x67d181(0x217)](_0x1df758[_0x67d181(0x227)]);if(_0xdec583!==''&&_0xdec583!==![])_0x29bfa2[_0x1df758[_0x67d181(0x227)]]=_0xdec583;}if(_0x5c8aab[_0x67d181(0x213)])_0x29bfa2[_0x67d181(0x213)]=!![];return _0x29bfa2;}function normalizeLanguages(_0x19ad6d){const _0x57f9dd=a3_0x25d084;if(!Array[_0x57f9dd(0x21c)](_0x19ad6d))return[];return _0x19ad6d[_0x57f9dd(0x20d)](_0x1da23c=>typeof _0x1da23c===_0x57f9dd(0x206))[_0x57f9dd(0x1ef)](_0x3d1ae6=>_0x3d1ae6[_0x57f9dd(0x1fb)]())[_0x57f9dd(0x20d)](Boolean);}function buildRemoteAppI18nFields(_0x5d01ea){const _0x1716ca=a3_0x25d084,_0x2a9b0d=normalizeLanguages(_0x5d01ea[_0x1716ca(0x1f4)]?.[_0x1716ca(0x1f6)]);return{'enableI18n':typeof _0x5d01ea[_0x1716ca(0x236)]===_0x1716ca(0x1eb)?_0x5d01ea[_0x1716ca(0x236)]:null,'languages':_0x2a9b0d,'i18nInfo':_0x5d01ea['i18nInfo']?{..._0x5d01ea[_0x1716ca(0x1f4)],'langs':_0x2a9b0d['length']?_0x2a9b0d:null}:null};}const initDef={'service':a3_0x25d084(0x1fc),'command':a3_0x25d084(0x231),'description':a3_0x25d084(0x1e7),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x3c4051){return warnDeprecatedAppCommand('init',CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>\x20[--env\x20daily]'),await runInit(collectFlags(_0x3c4051,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a3_0x25d084(0x1fc),'command':'list','description':a3_0x25d084(0x238),'risk':a3_0x25d084(0x20f),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a3_0x25d084(0x200),'type':a3_0x25d084(0x206),'description':'Filter\x20by\x20environment\x20(default:\x20current\x20env)','enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x25d084(0x1f7),'type':a3_0x25d084(0x1eb),'description':a3_0x25d084(0x203),'default':![]},{'name':a3_0x25d084(0x210),'type':a3_0x25d084(0x1eb),'description':a3_0x25d084(0x1fe),'default':![]},{'name':a3_0x25d084(0x1e8),'type':a3_0x25d084(0x1eb),'description':a3_0x25d084(0x224),'default':![]}],async 'execute'(_0x3e448e){const _0x58487e=a3_0x25d084,_0x2e4179=_0x3e448e[_0x58487e(0x217)]('env')||_0x3e448e[_0x58487e(0x1e1)]||getEnv()||_0x58487e(0x20b),_0x476d18=_0x3e448e[_0x58487e(0x235)](_0x58487e(0x1f7)),_0x2e5af1=_0x3e448e[_0x58487e(0x235)](_0x58487e(0x210)),_0x1b654f=_0x3e448e[_0x58487e(0x235)](_0x58487e(0x1e8)),{readRawConfigWithLayers:_0xa86d09,resolveDefaultAppSource:_0x3a2404,getLocalAppAliases:_0x1f2510}=await import(_0x58487e(0x22d)),{getRemoteAppList:_0x3ed838}=await import(_0x58487e(0x1f0)),{config:_0x32fe3c,layers:_0xd210bd}=_0xa86d09(),_0x331869=_0x3a2404(_0xd210bd),{defaultApp:_0x5d8122}=_0x32fe3c,_0x38bfbb=await _0x3ed838({'env':_0x2e4179,'accessKey':_0x3e448e[_0x58487e(0x1ed)],'localOnly':_0x476d18,'noCache':_0x2e5af1}),_0x5228e2=_0x1b654f?_0x38bfbb[_0x58487e(0x1e0)]:filterRuntimeAccessibleApps(_0x38bfbb[_0x58487e(0x1e0)]),_0x1701f6=_0x38bfbb[_0x58487e(0x1e0)][_0x58487e(0x20a)]-_0x5228e2['length'],_0x2ef63a=_0x5228e2[_0x58487e(0x1ef)](_0x49a8f2=>{const _0x47920d=_0x58487e;return{'name':_0x49a8f2[_0x47920d(0x1e2)],'appcode':_0x49a8f2[_0x47920d(0x221)],'named':!![],'definedIn':_0x47920d(0x234),'isDefault':_0x49a8f2[_0x47920d(0x1e2)]===_0x5d8122,...buildAppProfileListFields(_0x2e4179),...buildRemoteAppI18nFields(_0x49a8f2),'source':_0x38bfbb[_0x47920d(0x225)],'owner':_0x49a8f2[_0x47920d(0x1f5)]??null,'status':_0x49a8f2[_0x47920d(0x237)]??null,'cachedAt':_0x38bfbb[_0x47920d(0x1df)]};}),_0x188400=_0x1f2510(_0x32fe3c);let _0x3cece5=0x0;for(const [_0x38db37,_0x176db6]of Object['entries'](_0x188400)){const _0x295942=typeof _0x176db6[_0x58487e(0x220)]==='string'?_0x176db6['appcode'][_0x58487e(0x1fb)]():'';if(!_0x295942)continue;const _0x24cc5c=findAppByCode(_0x38bfbb[_0x58487e(0x1e0)],_0x295942);if(!_0x1b654f&&_0x24cc5c&&!isRuntimeAccessibleApp(_0x24cc5c))continue;_0x3cece5+=0x1,_0x2ef63a[_0x58487e(0x1ea)]({'name':_0x38db37,'appcode':_0x295942,'named':!![],'definedIn':_0x58487e(0x1f7),'isDefault':_0x38db37===_0x5d8122,...buildAppProfileListFields(_0x2e4179),'source':'config','owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x2ef63a,_0x3e448e[_0x58487e(0x202)]);const _0xe6d5a7=_0x2ef63a[_0x58487e(0x1f9)](_0x175b97=>_0x175b97['isCurrent']===!![]),_0x50b3bd=_0x5d8122??_0xe6d5a7?.[_0x58487e(0x227)]??null,_0x52372e={'env':_0x2e4179,'source':_0x38bfbb[_0x58487e(0x225)],'fetchedAt':_0x38bfbb[_0x58487e(0x1df)],'cachePath':_0x38bfbb['cachePath'],'globalPath':_0xd210bd['globalPath']??null,'projectPath':_0xd210bd[_0x58487e(0x1fd)]??null,'defaultApp':_0x50b3bd,'defaultAppSource':_0x5d8122!=null?_0x331869:null,'localAliasCount':_0x3cece5,'remoteTotal':_0x38bfbb[_0x58487e(0x1e0)][_0x58487e(0x20a)],'hiddenUnpublishedCount':_0x1701f6,'includeUnpublished':_0x1b654f};if(_0x2ef63a[_0x58487e(0x20a)]===0x0)return{'ok':!![],'data':{'items':_0x2ef63a,'meta':_0x52372e},'message':_0x38bfbb[_0x58487e(0x225)]===_0x58487e(0x1f8)?_0x58487e(0x1fa):_0x58487e(0x216)};return{'ok':!![],'data':{'items':_0x2ef63a,'meta':_0x52372e}};}},pullDef={'service':'app','command':a3_0x25d084(0x22e),'description':a3_0x25d084(0x1e3),'risk':a3_0x25d084(0x1e9),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a3_0x25d084(0x200),'type':a3_0x25d084(0x206),'description':'Target\x20environment\x20(default:\x20current\x20env)','enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x25d084(0x1f7),'type':a3_0x25d084(0x1eb),'description':'Read\x20from\x20local\x20cache\x20only','default':![]},{'name':'no-cache','type':a3_0x25d084(0x1eb),'description':'Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','default':![]}],async 'execute'(_0x4dcdc2){const _0x37ccf7=a3_0x25d084,_0x567312=_0x4dcdc2[_0x37ccf7(0x217)](_0x37ccf7(0x200))||_0x4dcdc2['envName']||getEnv()||_0x37ccf7(0x20b),_0x13448e=_0x4dcdc2['bool'](_0x37ccf7(0x1f7)),_0x44cdd7=_0x4dcdc2[_0x37ccf7(0x235)](_0x37ccf7(0x210)),{getRemoteAppList:_0x4e66dc}=await import(_0x37ccf7(0x1f0)),_0x52fe19=await _0x4e66dc({'env':_0x567312,'accessKey':_0x4dcdc2[_0x37ccf7(0x1ed)],'localOnly':_0x13448e,'noCache':_0x44cdd7});return{'ok':!![],'data':{'total':_0x52fe19[_0x37ccf7(0x1e0)][_0x37ccf7(0x20a)],'env':_0x567312,'source':_0x52fe19[_0x37ccf7(0x225)],'fetchedAt':_0x52fe19[_0x37ccf7(0x1df)],'cachePath':_0x52fe19[_0x37ccf7(0x223)]},'message':_0x52fe19[_0x37ccf7(0x225)]===_0x37ccf7(0x1f8)?'Loaded\x20'+_0x52fe19[_0x37ccf7(0x1e0)][_0x37ccf7(0x20a)]+_0x37ccf7(0x214)+_0x567312+'\x22.':'Refreshed\x20app\x20cache\x20with\x20'+_0x52fe19[_0x37ccf7(0x1e0)][_0x37ccf7(0x20a)]+'\x20app(s)\x20for\x20env=\x22'+_0x567312+'\x22.'};}},useDef={'service':a3_0x25d084(0x1fc),'command':a3_0x25d084(0x232),'description':a3_0x25d084(0x22a),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a3_0x25d084(0x227),'description':'Remote\x20app\x20name\x20to\x20activate','required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x31f824){const _0x5bb04a=a3_0x25d084;if(!_0x31f824['args'][0x0])throw CliErrors[_0x5bb04a(0x1ee)](_0x5bb04a(0x1e4),_0x5bb04a(0x22c)+CLI_BIN_NAME+_0x5bb04a(0x208));},async 'execute'(_0x12c1d5){const _0x168a49=a3_0x25d084;warnDeprecatedAppCommand(_0x168a49(0x232),CLI_BIN_NAME+_0x168a49(0x1e5));const _0xaae05b=_0x12c1d5[_0x168a49(0x222)][0x0];if(!_0xaae05b)throw CliErrors['validation']('Missing\x20app\x20name.',_0x168a49(0x22c)+CLI_BIN_NAME+'\x20app\x20use\x20<name>\x20[--global]');const {buildConfigFromFlags:_0x32243e,resolveLocalAppAliasCode:_0x5274cf}=await import(_0x168a49(0x22d)),{readCachedAppList:_0x582ba1}=await import('../../commands/app/cache.js'),_0x1e2e85=_0x12c1d5['str'](_0x168a49(0x200)),_0x23b6a7=_0x32243e(_0x1e2e85?{'env':_0x1e2e85}:{}),_0x550c76=_0x582ba1(_0x23b6a7['env'],_0x23b6a7['accessKey']),_0x402382=_0x550c76?.['items'][_0x168a49(0x1f9)](_0x16d6b3=>_0x16d6b3[_0x168a49(0x1e2)]===_0xaae05b),_0x52b93c=_0x5274cf(_0x23b6a7['raw']??{},_0xaae05b);if(_0x402382&&!isRuntimeAccessibleApp(_0x402382))throw runtimeInaccessibleAppError(_0x402382,'\x22'+_0xaae05b+'\x22');if(_0x52b93c){const _0x52f482=_0x550c76?.[_0x168a49(0x1e0)][_0x168a49(0x1f9)](_0x365dd9=>_0x365dd9[_0x168a49(0x221)]?.[_0x168a49(0x1fb)]()===_0x52b93c);if(_0x52f482&&!isRuntimeAccessibleApp(_0x52f482))throw runtimeInaccessibleAppError(_0x52f482,'\x22'+_0xaae05b+'\x22');}if(!_0x402382&&!_0x52b93c&&_0x23b6a7[_0x168a49(0x1f3)]!==_0xaae05b){const _0x5327c3=[..._0x550c76?.[_0x168a49(0x1e0)][_0x168a49(0x1ef)](_0x35ab83=>_0x35ab83[_0x168a49(0x1e2)])??[]],_0x2b9aee=_0x5327c3[_0x168a49(0x20a)]===0x0?_0x168a49(0x21d)+CLI_BIN_NAME+'\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.'+_0xaae05b+_0x168a49(0x209):_0x168a49(0x218)+Array[_0x168a49(0x228)](new Set(_0x5327c3))[_0x168a49(0x233)](',\x20')+_0x168a49(0x226);throw CliErrors[_0x168a49(0x1ee)](_0x168a49(0x204)+_0xaae05b+_0x168a49(0x22f),_0x2b9aee);}const _0x53171f=_0x12c1d5['bool']('global');let _0x5f1abe;if(_0x53171f)_0x5f1abe={'global':!![]};else{const {isInProject:_0x13b51f}=await import(_0x168a49(0x22d)),_0x17133b=_0x13b51f();_0x5f1abe=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0x168a49(0x212),'inProject':_0x17133b}));}const _0xe71ab0=readConfig(_0x5f1abe);return _0xe71ab0['defaultApp']=_0xaae05b,writeConfig(_0xe71ab0,_0x5f1abe),{'ok':!![],'message':_0x168a49(0x1ec)+_0xaae05b+'\x22'+scopeLabel(_0x5f1abe)+'.'};}};function a3_0xa62d(_0x6ffb50,_0x45db10){_0x6ffb50=_0x6ffb50-0x1df;const _0x3bd0b2=a3_0x3bd0();let _0xa62d48=_0x3bd0b2[_0x6ffb50];return _0xa62d48;}function warnDeprecatedAppCommand(_0x3e5e05,_0x65619d){const _0x13ccb8=a3_0x25d084;console[_0x13ccb8(0x21a)](CLI_BIN_NAME+_0x13ccb8(0x1f2)+_0x3e5e05+_0x13ccb8(0x20c)+_0x65619d+_0x13ccb8(0x20e));}const importDef={'service':a3_0x25d084(0x1fc),'command':a3_0x25d084(0x1f1),'description':a3_0x25d084(0x1e6),'risk':a3_0x25d084(0x1e9),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x41efc9){return await runInitImport(collectFlags(_0x41efc9,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
1
+ const a3_0x2ac050=a3_0x70f2;(function(_0x1f6bb3,_0x203fb6){const _0xb12718=a3_0x70f2,_0x4d19eb=_0x1f6bb3();while(!![]){try{const _0x2d1098=parseInt(_0xb12718(0xb7))/0x1+parseInt(_0xb12718(0xfd))/0x2+parseInt(_0xb12718(0xf4))/0x3*(-parseInt(_0xb12718(0xb2))/0x4)+parseInt(_0xb12718(0xf1))/0x5+-parseInt(_0xb12718(0xbf))/0x6+-parseInt(_0xb12718(0xc9))/0x7+parseInt(_0xb12718(0xed))/0x8;if(_0x2d1098===_0x203fb6)break;else _0x4d19eb['push'](_0x4d19eb['shift']());}catch(_0x533dd5){_0x4d19eb['push'](_0x4d19eb['shift']());}}}(a3_0xb6e9,0x2e7ff));import{CliErrors}from'../../errors.js';import{initCreateFlagDefs,initImportFlagDefs,runInit,runInitImport}from'../../commands/init.js';function a3_0xb6e9(){const _0x2696be=['nonInteractive','globalPath','3eNwidV','cache','Missing\x20app\x20name.','\x20app\x20','local','Target\x20environment\x20(default:\x20current\x20env)','source','appPublishStatus','Remote\x20app\x20name\x20to\x20activate','87666WJsnyY','boolean','Default\x20app\x20candidate\x20set\x20to\x20\x22','Refreshed\x20app\x20cache\x20with\x20','write','production','\x20workspace\x20init\x20--appcode\x20<code>\x20[--env\x20daily]','init','filter','list','.appcode\x20to\x20.lovrabet.json.','\x20workspace\x20use\x20--app\x20<name>\x20[--env\x20daily]','envName','raw','116796cpOiSO','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','map','remote','config','17211VfFMLA','../../commands/app/remote-source.js','include-unpublished','read','items','defaultApp','validation','args','1632042HfWGEv','Use\x20`','enableI18n','app','bool','no-cache','Use\x20global\x20config\x20scope','appOwnerName','import','No\x20apps\x20found\x20on\x20the\x20platform.','2446661KnXMoc','\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.','use','Filter\x20by\x20environment\x20(default:\x20current\x20env)','type','appcode','accessKey','trim','global','\x20app(s)\x20for\x20env=\x22','\x20is\x20deprecated.\x20Use\x20`','\x20app\x20use\x20<name>\x20[--global]','Read\x20app\x20list\x20from\x20local\x20cache\x20only','string','isArray','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','App\x20\x22','find','langs','i18nInfo','Deprecated:\x20use\x20workspace\x20init\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','appCode','No\x20cached\x20apps\x20found.','isCurrent','Usage:\x20','fetchedAt','length','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','cachePath','str','projectPath','../../commands/app/cache.js','../../context.js','\x22\x20not\x20found.','env','join','3815128wBVMFc','appName','pull','name','1516285ncbEKg'];a3_0xb6e9=function(){return _0x2696be;};return a3_0xb6e9();}import{getEnv,RUNTIME_ENV_VALUES}from'../../constant/env.js';import{buildAppProfileListFields}from'../../config/schema.js';import{CLI_BIN_NAME,readConfig,writeConfig,scopeLabel,enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{filterRuntimeAccessibleApps,findAppByCode,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const GLOBAL_FLAG={'name':'global','type':a3_0x2ac050(0xfe),'description':a3_0x2ac050(0xc5),'default':![]};function a3_0x70f2(_0x54ca4f,_0x251185){_0x54ca4f=_0x54ca4f-0xaa;const _0xb6e97c=a3_0xb6e9();let _0x70f233=_0xb6e97c[_0x54ca4f];return _0x70f233;}function collectFlags(_0x137bc8,_0x728e82){const _0x3c40f7=a3_0x2ac050,_0x5bc50f={};for(const _0xc02eab of _0x728e82){const _0x23dd1d=_0xc02eab[_0x3c40f7(0xcd)]===_0x3c40f7(0xfe)?_0x137bc8[_0x3c40f7(0xc3)](_0xc02eab[_0x3c40f7(0xf0)]):_0x137bc8[_0x3c40f7(0xe6)](_0xc02eab[_0x3c40f7(0xf0)]);if(_0x23dd1d!==''&&_0x23dd1d!==![])_0x5bc50f[_0xc02eab[_0x3c40f7(0xf0)]]=_0x23dd1d;}if(_0x137bc8[_0x3c40f7(0xf2)])_0x5bc50f[_0x3c40f7(0xf2)]=!![];return _0x5bc50f;}function normalizeLanguages(_0x1a715d){const _0x261a6d=a3_0x2ac050;if(!Array[_0x261a6d(0xd7)](_0x1a715d))return[];return _0x1a715d[_0x261a6d(0xac)](_0x2ec3e7=>typeof _0x2ec3e7==='string')[_0x261a6d(0xb4)](_0x544dfb=>_0x544dfb['trim']())[_0x261a6d(0xac)](Boolean);}function buildRemoteAppI18nFields(_0x2a2b3e){const _0x21f43d=a3_0x2ac050,_0x129c90=normalizeLanguages(_0x2a2b3e[_0x21f43d(0xdc)]?.[_0x21f43d(0xdb)]);return{'enableI18n':typeof _0x2a2b3e[_0x21f43d(0xc1)]==='boolean'?_0x2a2b3e[_0x21f43d(0xc1)]:null,'languages':_0x129c90,'i18nInfo':_0x2a2b3e[_0x21f43d(0xdc)]?{..._0x2a2b3e[_0x21f43d(0xdc)],'langs':_0x129c90[_0x21f43d(0xe3)]?_0x129c90:null}:null};}const initDef={'service':a3_0x2ac050(0xc2),'command':a3_0x2ac050(0xab),'description':a3_0x2ac050(0xdd),'risk':a3_0x2ac050(0x101),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x25d30f){const _0x15d6b9=a3_0x2ac050;return warnDeprecatedAppCommand('init',CLI_BIN_NAME+_0x15d6b9(0xaa)),await runInit(collectFlags(_0x25d30f,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a3_0x2ac050(0xc2),'command':a3_0x2ac050(0xad),'description':'List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','risk':a3_0x2ac050(0xba),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a3_0x2ac050(0xeb),'type':a3_0x2ac050(0xd6),'description':a3_0x2ac050(0xcc),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x2ac050(0xf8),'type':a3_0x2ac050(0xfe),'description':a3_0x2ac050(0xd5),'default':![]},{'name':a3_0x2ac050(0xc4),'type':'boolean','description':a3_0x2ac050(0xb3),'default':![]},{'name':a3_0x2ac050(0xb9),'type':a3_0x2ac050(0xfe),'description':'Include\x20unpublished\x20apps\x20for\x20diagnostics','default':![]}],async 'execute'(_0x30fc7e){const _0x2d911a=a3_0x2ac050,_0x16cf5b=_0x30fc7e['str'](_0x2d911a(0xeb))||_0x30fc7e[_0x2d911a(0xb0)]||getEnv()||_0x2d911a(0x102),_0x5a401b=_0x30fc7e[_0x2d911a(0xc3)]('local'),_0x520b7c=_0x30fc7e[_0x2d911a(0xc3)](_0x2d911a(0xc4)),_0x3b51ce=_0x30fc7e[_0x2d911a(0xc3)](_0x2d911a(0xb9)),{readRawConfigWithLayers:_0x30e1ae,resolveDefaultAppSource:_0x2baa0e,getLocalAppAliases:_0x202be6}=await import(_0x2d911a(0xe9)),{getRemoteAppList:_0x9b494f}=await import(_0x2d911a(0xb8)),{config:_0x286ba0,layers:_0x3b8128}=_0x30e1ae(),_0x520c71=_0x2baa0e(_0x3b8128),{defaultApp:_0x8b563b}=_0x286ba0,_0xe63d23=await _0x9b494f({'env':_0x16cf5b,'accessKey':_0x30fc7e['accessKey'],'localOnly':_0x5a401b,'noCache':_0x520b7c}),_0x52c56e=_0x3b51ce?_0xe63d23[_0x2d911a(0xbb)]:filterRuntimeAccessibleApps(_0xe63d23[_0x2d911a(0xbb)]),_0x299b6d=_0xe63d23[_0x2d911a(0xbb)]['length']-_0x52c56e['length'],_0x20c8cd=_0x52c56e['map'](_0x130b8b=>{const _0x59aa22=_0x2d911a;return{'name':_0x130b8b[_0x59aa22(0xee)],'appcode':_0x130b8b[_0x59aa22(0xde)],'named':!![],'definedIn':_0x59aa22(0xb5),'isDefault':_0x130b8b[_0x59aa22(0xee)]===_0x8b563b,...buildAppProfileListFields(_0x16cf5b),...buildRemoteAppI18nFields(_0x130b8b),'source':_0xe63d23[_0x59aa22(0xfa)],'owner':_0x130b8b[_0x59aa22(0xc6)]??null,'status':_0x130b8b[_0x59aa22(0xfb)]??null,'cachedAt':_0xe63d23['fetchedAt']};}),_0x466a47=_0x202be6(_0x286ba0);let _0x2ac5ff=0x0;for(const [_0x35ce4e,_0x252cd0]of Object['entries'](_0x466a47)){const _0x42f887=typeof _0x252cd0[_0x2d911a(0xce)]===_0x2d911a(0xd6)?_0x252cd0[_0x2d911a(0xce)][_0x2d911a(0xd0)]():'';if(!_0x42f887)continue;const _0x55838e=findAppByCode(_0xe63d23['items'],_0x42f887);if(!_0x3b51ce&&_0x55838e&&!isRuntimeAccessibleApp(_0x55838e))continue;_0x2ac5ff+=0x1,_0x20c8cd['push']({'name':_0x35ce4e,'appcode':_0x42f887,'named':!![],'definedIn':_0x2d911a(0xf8),'isDefault':_0x35ce4e===_0x8b563b,...buildAppProfileListFields(_0x16cf5b),'source':_0x2d911a(0xb6),'owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x20c8cd,_0x30fc7e['mergedCli']);const _0x433d3d=_0x20c8cd[_0x2d911a(0xda)](_0x3c9914=>_0x3c9914[_0x2d911a(0xe0)]===!![]),_0x3572c1=_0x8b563b??_0x433d3d?.[_0x2d911a(0xf0)]??null,_0x52e071={'env':_0x16cf5b,'source':_0xe63d23[_0x2d911a(0xfa)],'fetchedAt':_0xe63d23[_0x2d911a(0xe2)],'cachePath':_0xe63d23[_0x2d911a(0xe5)],'globalPath':_0x3b8128[_0x2d911a(0xf3)]??null,'projectPath':_0x3b8128[_0x2d911a(0xe7)]??null,'defaultApp':_0x3572c1,'defaultAppSource':_0x8b563b!=null?_0x520c71:null,'localAliasCount':_0x2ac5ff,'remoteTotal':_0xe63d23['items'][_0x2d911a(0xe3)],'hiddenUnpublishedCount':_0x299b6d,'includeUnpublished':_0x3b51ce};if(_0x20c8cd[_0x2d911a(0xe3)]===0x0)return{'ok':!![],'data':{'items':_0x20c8cd,'meta':_0x52e071},'message':_0xe63d23[_0x2d911a(0xfa)]===_0x2d911a(0xf5)?_0x2d911a(0xdf):_0x2d911a(0xc8)};return{'ok':!![],'data':{'items':_0x20c8cd,'meta':_0x52e071}};}},pullDef={'service':a3_0x2ac050(0xc2),'command':a3_0x2ac050(0xef),'description':a3_0x2ac050(0xd8),'risk':a3_0x2ac050(0x101),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a3_0x2ac050(0xeb),'type':'string','description':a3_0x2ac050(0xf9),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x2ac050(0xf8),'type':a3_0x2ac050(0xfe),'description':'Read\x20from\x20local\x20cache\x20only','default':![]},{'name':a3_0x2ac050(0xc4),'type':a3_0x2ac050(0xfe),'description':a3_0x2ac050(0xb3),'default':![]}],async 'execute'(_0x3fb5c7){const _0x10e956=a3_0x2ac050,_0x2cf6ba=_0x3fb5c7[_0x10e956(0xe6)](_0x10e956(0xeb))||_0x3fb5c7['envName']||getEnv()||'production',_0x2a992d=_0x3fb5c7[_0x10e956(0xc3)](_0x10e956(0xf8)),_0x12fa7c=_0x3fb5c7[_0x10e956(0xc3)](_0x10e956(0xc4)),{getRemoteAppList:_0x53a3d3}=await import(_0x10e956(0xb8)),_0x62c3c6=await _0x53a3d3({'env':_0x2cf6ba,'accessKey':_0x3fb5c7[_0x10e956(0xcf)],'localOnly':_0x2a992d,'noCache':_0x12fa7c});return{'ok':!![],'data':{'total':_0x62c3c6['items']['length'],'env':_0x2cf6ba,'source':_0x62c3c6['source'],'fetchedAt':_0x62c3c6[_0x10e956(0xe2)],'cachePath':_0x62c3c6[_0x10e956(0xe5)]},'message':_0x62c3c6[_0x10e956(0xfa)]===_0x10e956(0xf5)?'Loaded\x20'+_0x62c3c6[_0x10e956(0xbb)]['length']+'\x20cached\x20app(s)\x20for\x20env=\x22'+_0x2cf6ba+'\x22.':_0x10e956(0x100)+_0x62c3c6[_0x10e956(0xbb)][_0x10e956(0xe3)]+_0x10e956(0xd2)+_0x2cf6ba+'\x22.'};}},useDef={'service':'app','command':'use','description':'Deprecated:\x20use\x20workspace\x20use\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','risk':a3_0x2ac050(0x101),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a3_0x2ac050(0xf0),'description':a3_0x2ac050(0xfc),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x37757b){const _0x24747c=a3_0x2ac050;if(!_0x37757b[_0x24747c(0xbe)][0x0])throw CliErrors[_0x24747c(0xbd)](_0x24747c(0xf6),_0x24747c(0xe1)+CLI_BIN_NAME+_0x24747c(0xd4));},async 'execute'(_0x3276ae){const _0x5e4f46=a3_0x2ac050;warnDeprecatedAppCommand(_0x5e4f46(0xcb),CLI_BIN_NAME+_0x5e4f46(0xaf));const _0x3ce073=_0x3276ae['args'][0x0];if(!_0x3ce073)throw CliErrors[_0x5e4f46(0xbd)](_0x5e4f46(0xf6),_0x5e4f46(0xe1)+CLI_BIN_NAME+_0x5e4f46(0xd4));const {buildConfigFromFlags:_0x18dd55,resolveLocalAppAliasCode:_0x475b03}=await import(_0x5e4f46(0xe9)),{readCachedAppList:_0x21273f}=await import(_0x5e4f46(0xe8)),_0x3d8ac7=_0x3276ae[_0x5e4f46(0xe6)](_0x5e4f46(0xeb)),_0x349806=_0x18dd55(_0x3d8ac7?{'env':_0x3d8ac7}:{}),_0x25b65d=_0x21273f(_0x349806[_0x5e4f46(0xeb)],_0x349806[_0x5e4f46(0xcf)]),_0x98bb4e=_0x25b65d?.[_0x5e4f46(0xbb)][_0x5e4f46(0xda)](_0x543f41=>_0x543f41['appName']===_0x3ce073),_0x5852bf=_0x475b03(_0x349806[_0x5e4f46(0xb1)]??{},_0x3ce073);if(_0x98bb4e&&!isRuntimeAccessibleApp(_0x98bb4e))throw runtimeInaccessibleAppError(_0x98bb4e,'\x22'+_0x3ce073+'\x22');if(_0x5852bf){const _0x3f78d2=_0x25b65d?.['items']['find'](_0x243595=>_0x243595[_0x5e4f46(0xde)]?.['trim']()===_0x5852bf);if(_0x3f78d2&&!isRuntimeAccessibleApp(_0x3f78d2))throw runtimeInaccessibleAppError(_0x3f78d2,'\x22'+_0x3ce073+'\x22');}if(!_0x98bb4e&&!_0x5852bf&&_0x349806['defaultApp']!==_0x3ce073){const _0x1b67b6=[..._0x25b65d?.[_0x5e4f46(0xbb)][_0x5e4f46(0xb4)](_0x3208b0=>_0x3208b0[_0x5e4f46(0xee)])??[]],_0x41ece0=_0x1b67b6[_0x5e4f46(0xe3)]===0x0?_0x5e4f46(0xc0)+CLI_BIN_NAME+_0x5e4f46(0xca)+_0x3ce073+_0x5e4f46(0xae):'Available\x20remote\x20apps:\x20'+Array['from'](new Set(_0x1b67b6))[_0x5e4f46(0xec)](',\x20')+'.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.';throw CliErrors[_0x5e4f46(0xbd)](_0x5e4f46(0xd9)+_0x3ce073+_0x5e4f46(0xea),_0x41ece0);}const _0x21a6bc=_0x3276ae[_0x5e4f46(0xc3)](_0x5e4f46(0xd1));let _0x3f9cb1;if(_0x21a6bc)_0x3f9cb1={'global':!![]};else{const {isInProject:_0x589955}=await import(_0x5e4f46(0xe9)),_0xc17288=_0x589955();_0x3f9cb1=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':'project-default','inProject':_0xc17288}));}const _0x365171=readConfig(_0x3f9cb1);return _0x365171[_0x5e4f46(0xbc)]=_0x3ce073,writeConfig(_0x365171,_0x3f9cb1),{'ok':!![],'message':_0x5e4f46(0xff)+_0x3ce073+'\x22'+scopeLabel(_0x3f9cb1)+'.'};}};function warnDeprecatedAppCommand(_0x92b7bf,_0x158c53){const _0xc4ed8f=a3_0x2ac050;console['warn'](CLI_BIN_NAME+_0xc4ed8f(0xf7)+_0x92b7bf+_0xc4ed8f(0xd3)+_0x158c53+'`\x20instead.');}const importDef={'service':a3_0x2ac050(0xc2),'command':a3_0x2ac050(0xc7),'description':a3_0x2ac050(0xe4),'risk':a3_0x2ac050(0x101),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0xef1c51){return await runInitImport(collectFlags(_0xef1c51,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
@@ -1 +1 @@
1
- (function(_0x465f3d,_0x5ac951){const _0x86e2e7=a4_0x32cd,_0x453b70=_0x465f3d();while(!![]){try{const _0x1efc5e=-parseInt(_0x86e2e7(0x187))/0x1+parseInt(_0x86e2e7(0x17b))/0x2*(-parseInt(_0x86e2e7(0x17c))/0x3)+parseInt(_0x86e2e7(0x18a))/0x4*(-parseInt(_0x86e2e7(0x188))/0x5)+parseInt(_0x86e2e7(0x18b))/0x6+-parseInt(_0x86e2e7(0x177))/0x7+parseInt(_0x86e2e7(0x180))/0x8*(-parseInt(_0x86e2e7(0x18c))/0x9)+parseInt(_0x86e2e7(0x179))/0xa;if(_0x1efc5e===_0x5ac951)break;else _0x453b70['push'](_0x453b70['shift']());}catch(_0x3eb4f3){_0x453b70['push'](_0x453b70['shift']());}}}(a4_0x5e05,0xbf077));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(_0x2dc3e6){const _0x5f24be=a4_0x32cd;if(typeof _0x2dc3e6!=='string')return null;const _0x7fbbde=_0x2dc3e6[_0x5f24be(0x186)]();return _0x7fbbde?_0x7fbbde[_0x5f24be(0x178)]():null;}export function isRuntimeAccessibleApp(_0xba6f5f){const _0x4b688d=a4_0x32cd;return normalizeAppPublishStatus(_0xba6f5f[_0x4b688d(0x181)])===RUNTIME_ACCESSIBLE_APP_STATUS;}export function filterRuntimeAccessibleApps(_0x21feb7){const _0x1147dd=a4_0x32cd;return _0x21feb7[_0x1147dd(0x189)](isRuntimeAccessibleApp);}export function findAppByName(_0x23133d,_0x12bfcb){const _0x5102fd=a4_0x32cd;return _0x23133d['find'](_0x23fecd=>_0x23fecd[_0x5102fd(0x184)]===_0x12bfcb);}function a4_0x32cd(_0x1b8ef5,_0x9c757b){_0x1b8ef5=_0x1b8ef5-0x177;const _0x5e0539=a4_0x5e05();let _0x32cd81=_0x5e0539[_0x1b8ef5];return _0x32cd81;}export function findAppByCode(_0x4d9738,_0x549fdb){const _0x481060=a4_0x32cd,_0x7983b3=_0x549fdb[_0x481060(0x186)]();if(!_0x7983b3)return undefined;return _0x4d9738[_0x481060(0x182)](_0x8dcaf5=>_0x8dcaf5[_0x481060(0x17f)]?.[_0x481060(0x186)]()===_0x7983b3);}export function runtimeInaccessibleAppError(_0x501025,_0x4446f5){const _0x3c0da8=a4_0x32cd,_0x4945ba=normalizeAppPublishStatus(_0x501025[_0x3c0da8(0x181)])??'UNKNOWN';return CliErrors[_0x3c0da8(0x17d)]('App\x20'+_0x4446f5+_0x3c0da8(0x183),_0x3c0da8(0x185)+_0x4945ba+_0x3c0da8(0x17e)+CLI_BIN_NAME+_0x3c0da8(0x17a));}function a4_0x5e05(){const _0x28c886=['1075xsFwzq','filter','27556MHRLTa','1223484LAJPGO','36585lASvkv','7368641WYLrVB','toUpperCase','58825460poNcif','\x20dataset/data/sql/bff\x20commands,\x20or\x20choose\x20a\x20published\x20app.','446gFLFLy','11733BXKUkB','validation','.\x20Publish\x20the\x20app\x20before\x20using\x20','appCode','1456fOJkwo','appPublishStatus','find','\x20is\x20not\x20available\x20for\x20runtime\x20AI\x20access.','appName','Current\x20status:\x20','trim','1158224WNBPPP'];a4_0x5e05=function(){return _0x28c886;};return a4_0x5e05();}
1
+ (function(_0x536dd6,_0x2109e7){const _0x4f1630=a4_0x545f,_0x10b895=_0x536dd6();while(!![]){try{const _0x37dfe3=-parseInt(_0x4f1630(0xac))/0x1+-parseInt(_0x4f1630(0xb0))/0x2*(parseInt(_0x4f1630(0xaa))/0x3)+parseInt(_0x4f1630(0xaf))/0x4*(parseInt(_0x4f1630(0xb5))/0x5)+parseInt(_0x4f1630(0xb2))/0x6*(-parseInt(_0x4f1630(0xa4))/0x7)+-parseInt(_0x4f1630(0xa7))/0x8*(-parseInt(_0x4f1630(0xa5))/0x9)+parseInt(_0x4f1630(0xb6))/0xa*(-parseInt(_0x4f1630(0xa6))/0xb)+parseInt(_0x4f1630(0xb1))/0xc*(parseInt(_0x4f1630(0xae))/0xd);if(_0x37dfe3===_0x2109e7)break;else _0x10b895['push'](_0x10b895['shift']());}catch(_0x159580){_0x10b895['push'](_0x10b895['shift']());}}}(a4_0x2ef6,0x7a8da));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(_0x47ddfe){const _0x4b1fe8=a4_0x545f;if(typeof _0x47ddfe!=='string')return null;const _0x2712d2=_0x47ddfe[_0x4b1fe8(0xb4)]();return _0x2712d2?_0x2712d2['toUpperCase']():null;}function a4_0x2ef6(){const _0x39467b=['appCode','appPublishStatus','804209FPTaBm','8487729pgPSWC','1738uMnGWj','8yrkEUf','appName','\x20is\x20not\x20available\x20for\x20runtime\x20AI\x20access.','2796297ONeQna','\x20dataset/data/sql/bff\x20commands,\x20or\x20choose\x20a\x20published\x20app.','160264dZHHJO','filter','21900567twpfwu','2696UvrEAc','2rzfkmb','12GUZkTr','18aapzlI','find','trim','2180MmNLkY','62190xAlKtb','App\x20','UNKNOWN'];a4_0x2ef6=function(){return _0x39467b;};return a4_0x2ef6();}export function isRuntimeAccessibleApp(_0x541544){const _0x3784ae=a4_0x545f;return normalizeAppPublishStatus(_0x541544[_0x3784ae(0xa3)])===RUNTIME_ACCESSIBLE_APP_STATUS;}export function filterRuntimeAccessibleApps(_0x4ac378){const _0x9709a1=a4_0x545f;return _0x4ac378[_0x9709a1(0xad)](isRuntimeAccessibleApp);}export function findAppByName(_0x35e1e7,_0x4c63f1){const _0x2164fe=a4_0x545f;return _0x35e1e7[_0x2164fe(0xb3)](_0x211d4a=>_0x211d4a[_0x2164fe(0xa8)]===_0x4c63f1);}export function findAppByCode(_0x46f5a2,_0x478e36){const _0x232465=a4_0x545f,_0x17c931=_0x478e36[_0x232465(0xb4)]();if(!_0x17c931)return undefined;return _0x46f5a2[_0x232465(0xb3)](_0x357be7=>_0x357be7[_0x232465(0xa2)]?.[_0x232465(0xb4)]()===_0x17c931);}function a4_0x545f(_0x2161a9,_0x518023){_0x2161a9=_0x2161a9-0xa2;const _0x2ef61c=a4_0x2ef6();let _0x545f59=_0x2ef61c[_0x2161a9];return _0x545f59;}export function runtimeInaccessibleAppError(_0x30789c,_0x554a87){const _0x45dfb7=a4_0x545f,_0x429f3e=normalizeAppPublishStatus(_0x30789c['appPublishStatus'])??_0x45dfb7(0xb8);return CliErrors['validation'](_0x45dfb7(0xb7)+_0x554a87+_0x45dfb7(0xa9),'Current\x20status:\x20'+_0x429f3e+'.\x20Publish\x20the\x20app\x20before\x20using\x20'+CLI_BIN_NAME+_0x45dfb7(0xab));}
@@ -1 +1 @@
1
- function a5_0x1e91(){const _0x105753=['109767DLsvab','3621101Bdloyx','../../../mock/app-list.json','9423aZfsOl','760MrKwMP','4370610mqbRWH','parse','success','errorMsg','236PczUbP','30505PemJaE','10lzzkFf','utf-8','Mock\x20API\x20error:\x20','errorCode','3232908ZcibQG','852ibqzzW','10155852nTFeqr'];a5_0x1e91=function(){return _0x105753;};return a5_0x1e91();}function a5_0x29f6(_0x314686,_0x53fa6){_0x314686=_0x314686-0x120;const _0x1e9107=a5_0x1e91();let _0x29f6ec=_0x1e9107[_0x314686];return _0x29f6ec;}(function(_0x8e2a46,_0x10af1b){const _0x5e3153=a5_0x29f6,_0x2686d7=_0x8e2a46();while(!![]){try{const _0x4c2d1c=-parseInt(_0x5e3153(0x12d))/0x1*(parseInt(_0x5e3153(0x121))/0x2)+parseInt(_0x5e3153(0x12f))/0x3+parseInt(_0x5e3153(0x128))/0x4*(-parseInt(_0x5e3153(0x122))/0x5)+-parseInt(_0x5e3153(0x127))/0x6+-parseInt(_0x5e3153(0x12a))/0x7*(-parseInt(_0x5e3153(0x12e))/0x8)+parseInt(_0x5e3153(0x129))/0x9*(parseInt(_0x5e3153(0x123))/0xa)+-parseInt(_0x5e3153(0x12b))/0xb;if(_0x4c2d1c===_0x10af1b)break;else _0x2686d7['push'](_0x2686d7['shift']());}catch(_0xf086ea){_0x2686d7['push'](_0x2686d7['shift']());}}}(a5_0x1e91,0xc23a5));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 _0x536d8d=a5_0x29f6,_0x471483=join(__dirname,_0x536d8d(0x12c)),_0x16078e=readFileSync(_0x471483,_0x536d8d(0x124));return JSON[_0x536d8d(0x130)](_0x16078e);}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x26378b=a5_0x29f6,_0x18899d=getMockAppList();if(!_0x18899d[_0x26378b(0x131)])throw new Error(_0x26378b(0x125)+_0x18899d[_0x26378b(0x120)]+'\x20('+_0x18899d[_0x26378b(0x126)]+')');return _0x18899d['data']['tableData'];}
1
+ (function(_0x3d574f,_0x574b1c){const _0x170c43=a5_0xaa2c,_0x229f98=_0x3d574f();while(!![]){try{const _0x1611f6=parseInt(_0x170c43(0x202))/0x1+parseInt(_0x170c43(0x1fd))/0x2+parseInt(_0x170c43(0x201))/0x3*(-parseInt(_0x170c43(0x1f7))/0x4)+parseInt(_0x170c43(0x1f9))/0x5*(parseInt(_0x170c43(0x203))/0x6)+parseInt(_0x170c43(0x1fc))/0x7+parseInt(_0x170c43(0x1f5))/0x8+-parseInt(_0x170c43(0x1fb))/0x9;if(_0x1611f6===_0x574b1c)break;else _0x229f98['push'](_0x229f98['shift']());}catch(_0x199f65){_0x229f98['push'](_0x229f98['shift']());}}}(a5_0x8b43,0xcb257));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 _0x27e4e7=a5_0xaa2c,_0x516677=join(__dirname,'../../../mock/app-list.json'),_0x1dab1e=readFileSync(_0x516677,_0x27e4e7(0x1fa));return JSON[_0x27e4e7(0x1ff)](_0x1dab1e);}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}function a5_0xaa2c(_0x314268,_0x2ffbcc){_0x314268=_0x314268-0x1f3;const _0x8b436c=a5_0x8b43();let _0xaa2cf8=_0x8b436c[_0x314268];return _0xaa2cf8;}function a5_0x8b43(){const _0x1191a7=['success','3319494Griqir','83962ZMMtcW','6PgqWeG','errorCode','tableData','8303296nJMhwO','errorMsg','4TRkfHW','data','1998085jJDNuk','utf-8','8363205KTuixE','1419033HpvYex','2287240RnKJqC','Mock\x20API\x20error:\x20','parse'];a5_0x8b43=function(){return _0x1191a7;};return a5_0x8b43();}export function getMockRemoteAppItems(){const _0x3a4fe9=a5_0xaa2c,_0x5b173a=getMockAppList();if(!_0x5b173a[_0x3a4fe9(0x200)])throw new Error(_0x3a4fe9(0x1fe)+_0x5b173a[_0x3a4fe9(0x1f6)]+'\x20('+_0x5b173a[_0x3a4fe9(0x1f3)]+')');return _0x5b173a[_0x3a4fe9(0x1f8)][_0x3a4fe9(0x1f4)];}
@@ -1 +1 @@
1
- (function(_0x11b286,_0x5ee94a){const _0x1cc159=a6_0x2d6e,_0x328600=_0x11b286();while(!![]){try{const _0x5a01fb=-parseInt(_0x1cc159(0xde))/0x1*(parseInt(_0x1cc159(0xe0))/0x2)+parseInt(_0x1cc159(0xdc))/0x3*(parseInt(_0x1cc159(0xe8))/0x4)+-parseInt(_0x1cc159(0xe6))/0x5+-parseInt(_0x1cc159(0xdb))/0x6+parseInt(_0x1cc159(0xd8))/0x7*(parseInt(_0x1cc159(0xe7))/0x8)+-parseInt(_0x1cc159(0xe2))/0x9+parseInt(_0x1cc159(0xd9))/0xa*(parseInt(_0x1cc159(0xdf))/0xb);if(_0x5a01fb===_0x5ee94a)break;else _0x328600['push'](_0x328600['shift']());}catch(_0x37b0ad){_0x328600['push'](_0x328600['shift']());}}}(a6_0x3915,0x80ac4));import{getMyApps}from'../../core/api-client.js';function a6_0x3915(){const _0x52c958=['27EiJqMd','toISOString','1854zCEKAA','187FCBAZN','786HMmfuk','mock','4095882IUyOnI','APP_LIST_SOURCE','toLowerCase','remote','3706660klvWev','3704bdRMNt','258844JKcNkY','fetchedAt','trim','cache','8554URpXNW','1097390thQxEN','items','3369912IxnOlV'];a6_0x3915=function(){return _0x52c958;};return a6_0x3915();}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 _0x1a962e=a6_0x2d6e,_0x41eab2=(productEnv(_0x1a962e(0xe3))||'')[_0x1a962e(0xea)]()[_0x1a962e(0xe4)]();return _0x41eab2==='mock';}function a6_0x2d6e(_0x452bcb,_0x1e07d6){_0x452bcb=_0x452bcb-0xd7;const _0x39155f=a6_0x3915();let _0x2d6ed8=_0x39155f[_0x452bcb];return _0x2d6ed8;}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x685681){const _0x4549a7=a6_0x2d6e,{env:_0xea2425,accessKey:_0xba18dc,localOnly:localOnly=![],noCache:noCache=![]}=_0x685681,_0x400ace=readCachedAppList(_0xea2425,_0xba18dc),_0x36e3f4=_0xba18dc?.[_0x4549a7(0xea)]()?getAppCacheFilePath(_0xea2425,_0xba18dc):null;if(localOnly)return{'items':_0x400ace?.[_0x4549a7(0xda)]??[],'source':_0x4549a7(0xd7),'fetchedAt':_0x400ace?.[_0x4549a7(0xe9)]??null,'cachePath':_0x36e3f4};try{const _0x59fa53=await getRemoteAppItems(),_0x50720c=shouldUseMockRemoteApps()?_0x4549a7(0xe1):_0x4549a7(0xe5),_0x279359=new Date()[_0x4549a7(0xdd)](),_0x4d7255=_0xba18dc?.[_0x4549a7(0xea)]()?writeCachedAppList(_0xea2425,_0xba18dc,{'env':_0xea2425,'fetchedAt':_0x279359,'source':_0x50720c,'items':_0x59fa53}):null;return{'items':_0x59fa53,'source':_0x50720c,'fetchedAt':_0x279359,'cachePath':_0x4d7255};}catch(_0x38023f){if(!noCache&&_0x400ace)return{'items':_0x400ace[_0x4549a7(0xda)],'source':_0x4549a7(0xd7),'fetchedAt':_0x400ace[_0x4549a7(0xe9)],'cachePath':_0x36e3f4};throw _0x38023f;}}
1
+ (function(_0x240bd4,_0x1e30dd){const _0x22c2ed=a6_0x35aa,_0x2f54e7=_0x240bd4();while(!![]){try{const _0x470e07=-parseInt(_0x22c2ed(0x1ee))/0x1*(parseInt(_0x22c2ed(0x1f7))/0x2)+-parseInt(_0x22c2ed(0x1f5))/0x3+parseInt(_0x22c2ed(0x1fc))/0x4*(-parseInt(_0x22c2ed(0x1f2))/0x5)+-parseInt(_0x22c2ed(0x1ef))/0x6+parseInt(_0x22c2ed(0x1fb))/0x7+parseInt(_0x22c2ed(0x1f9))/0x8*(-parseInt(_0x22c2ed(0x1f1))/0x9)+parseInt(_0x22c2ed(0x1f3))/0xa;if(_0x470e07===_0x1e30dd)break;else _0x2f54e7['push'](_0x2f54e7['shift']());}catch(_0x104849){_0x2f54e7['push'](_0x2f54e7['shift']());}}}(a6_0x2706,0xa6ded));import{getMyApps}from'../../core/api-client.js';import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';function a6_0x35aa(_0x15aed7,_0x20133e){_0x15aed7=_0x15aed7-0x1ee;const _0x270646=a6_0x2706();let _0x35aa19=_0x270646[_0x15aed7];return _0x35aa19;}import{productEnv}from'../../constant/product.js';function a6_0x2706(){const _0x7a02dc=['2024wPderl','toISOString','226292NPEBvH','6689502bOtIJM','fetchedAt','675lRQXHT','890pddIke','24162500CMxBZj','trim','832341CTBETI','cache','2xxoClp','toLowerCase','94008cPImYl','items','6001100cGkMBO'];a6_0x2706=function(){return _0x7a02dc;};return a6_0x2706();}export function shouldUseMockRemoteApps(){const _0x93d4e1=a6_0x35aa,_0x5eedd9=(productEnv('APP_LIST_SOURCE')||'')[_0x93d4e1(0x1f4)]()[_0x93d4e1(0x1f8)]();return _0x5eedd9==='mock';}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x4e4e25){const _0x42469d=a6_0x35aa,{env:_0xd7b770,accessKey:_0x333725,localOnly:localOnly=![],noCache:noCache=![]}=_0x4e4e25,_0x46a707=readCachedAppList(_0xd7b770,_0x333725),_0x3db22b=_0x333725?.[_0x42469d(0x1f4)]()?getAppCacheFilePath(_0xd7b770,_0x333725):null;if(localOnly)return{'items':_0x46a707?.[_0x42469d(0x1fa)]??[],'source':'cache','fetchedAt':_0x46a707?.[_0x42469d(0x1f0)]??null,'cachePath':_0x3db22b};try{const _0x493e27=await getRemoteAppItems(),_0x5909ff=shouldUseMockRemoteApps()?'mock':'remote',_0x1e9b74=new Date()[_0x42469d(0x1fd)](),_0x4a5d48=_0x333725?.['trim']()?writeCachedAppList(_0xd7b770,_0x333725,{'env':_0xd7b770,'fetchedAt':_0x1e9b74,'source':_0x5909ff,'items':_0x493e27}):null;return{'items':_0x493e27,'source':_0x5909ff,'fetchedAt':_0x1e9b74,'cachePath':_0x4a5d48};}catch(_0x335dbe){if(!noCache&&_0x46a707)return{'items':_0x46a707[_0x42469d(0x1fa)],'source':_0x42469d(0x1f6),'fetchedAt':_0x46a707['fetchedAt'],'cachePath':_0x3db22b};throw _0x335dbe;}}
@@ -1 +1 @@
1
- (function(_0x491c15,_0x37d9a5){const _0x2336b4=a7_0x3a1a,_0x521ba8=_0x491c15();while(!![]){try{const _0x335503=parseInt(_0x2336b4(0xa3))/0x1*(-parseInt(_0x2336b4(0x96))/0x2)+parseInt(_0x2336b4(0x97))/0x3*(-parseInt(_0x2336b4(0xa2))/0x4)+parseInt(_0x2336b4(0xa7))/0x5*(-parseInt(_0x2336b4(0x95))/0x6)+-parseInt(_0x2336b4(0x9b))/0x7*(-parseInt(_0x2336b4(0xa4))/0x8)+parseInt(_0x2336b4(0x93))/0x9*(parseInt(_0x2336b4(0x9d))/0xa)+-parseInt(_0x2336b4(0x9a))/0xb*(-parseInt(_0x2336b4(0x9f))/0xc)+parseInt(_0x2336b4(0xa8))/0xd*(-parseInt(_0x2336b4(0x98))/0xe);if(_0x335503===_0x37d9a5)break;else _0x521ba8['push'](_0x521ba8['shift']());}catch(_0x1e8d64){_0x521ba8['push'](_0x521ba8['shift']());}}}(a7_0x5d6e,0xa6653));import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};function a7_0x3a1a(_0x51fe1c,_0x10714e){_0x51fe1c=_0x51fe1c-0x92;const _0x5d6e99=a7_0x5d6e();let _0x3a1a68=_0x5d6e99[_0x51fe1c];return _0x3a1a68;}export function enrichAppListItemsWithMergedSelection(_0x48dcc1,_0x5c3df6){const _0xa43444=a7_0x3a1a;if(!_0x5c3df6)return;const _0x38981b=!!(_0x5c3df6[_0xa43444(0xa9)]??_0x5c3df6['defaultApp']);for(const _0x270499 of _0x48dcc1){_0x270499[_0xa43444(0x9c)]=![];}const _0x4884b7=_0x5c3df6[_0xa43444(0xa1)]!=null?String(_0x5c3df6[_0xa43444(0xa1)])[_0xa43444(0x99)]():'';if(_0x38981b){const _0x34c398=_0x5c3df6[_0xa43444(0xa9)]??_0x5c3df6[_0xa43444(0xaa)];if(_0x34c398){const _0x548dbe=_0x48dcc1['find'](_0x4f9b1f=>_0x4f9b1f[_0xa43444(0xa5)]===!![]&&_0x4f9b1f['name']===_0x34c398&&_0x4f9b1f[_0xa43444(0x9e)]===_0xa43444(0xa0)),_0x5a5950=_0x548dbe??_0x48dcc1['find'](_0x47d4c9=>_0x47d4c9[_0xa43444(0xa5)]===!![]&&_0x47d4c9[_0xa43444(0x92)]===_0x34c398);_0x5a5950&&(_0x5a5950[_0xa43444(0x9c)]=!![]);}return;}if(!_0x4884b7)return;for(const _0x370fc7 of _0x48dcc1){String(_0x370fc7[_0xa43444(0x94)]??'')[_0xa43444(0x99)]()===_0x4884b7&&(_0x370fc7[_0xa43444(0x9c)]=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';function a7_0x5d6e(){const _0x5534a3=['4MqFCgm','955VwnMae','257592DPHEoD','named','project','5nLDrxY','20436zJnxUz','currentApp','defaultApp','name','18llyazr','appcode','3167076ppJIgL','1988SdAYmD','1933707qbWkOr','504KsCzxF','trim','60467zkpsFx','203pgBLZx','isCurrent','3501150RXdRLa','definedIn','2676AUvocI','local','appCode'];a7_0x5d6e=function(){return _0x5534a3;};return a7_0x5d6e();}export function scopeLabel(_0x3ada3e){const _0x18de42=a7_0x3a1a;return formatScopeLabel(_0x3ada3e['global']?'global':_0x18de42(0xa6));}
1
+ (function(_0x3a4cc2,_0x47df7e){const _0x274af1=a7_0x3955,_0x28e027=_0x3a4cc2();while(!![]){try{const _0x4a00ba=-parseInt(_0x274af1(0x108))/0x1*(-parseInt(_0x274af1(0x10f))/0x2)+parseInt(_0x274af1(0x111))/0x3+-parseInt(_0x274af1(0x104))/0x4+-parseInt(_0x274af1(0x10b))/0x5+-parseInt(_0x274af1(0x112))/0x6+-parseInt(_0x274af1(0x114))/0x7*(-parseInt(_0x274af1(0x107))/0x8)+parseInt(_0x274af1(0x10c))/0x9;if(_0x4a00ba===_0x47df7e)break;else _0x28e027['push'](_0x28e027['shift']());}catch(_0x2a527d){_0x28e027['push'](_0x28e027['shift']());}}}(a7_0x42ba,0x44c03));import{CLI_BIN_NAME}from'../../constant/cli.js';function a7_0x42ba(){const _0x2e451e=['657054jiFQZC','isCurrent','28qvswZu','local','project','global','833920Uebzli','find','definedIn','151576oeELrT','480413TiufcI','named','appCode','726505ZHBMae','507240TGUpnz','name','currentApp','2TsnJFZ','trim','396996Uuxaph'];a7_0x42ba=function(){return _0x2e451e;};return a7_0x42ba();}import{formatScopeLabel}from'../../commands/common/config-policy.js';function a7_0x3955(_0x17fa77,_0x55e02a){_0x17fa77=_0x17fa77-0x101;const _0x42baaf=a7_0x42ba();let _0x395588=_0x42baaf[_0x17fa77];return _0x395588;}export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x3180bb,_0x5a2325){const _0x47042d=a7_0x3955;if(!_0x5a2325)return;const _0x1dfbc5=!!(_0x5a2325['currentApp']??_0x5a2325['defaultApp']);for(const _0xafb57f of _0x3180bb){_0xafb57f['isCurrent']=![];}const _0x277b8d=_0x5a2325[_0x47042d(0x10a)]!=null?String(_0x5a2325[_0x47042d(0x10a)])[_0x47042d(0x110)]():'';if(_0x1dfbc5){const _0x2f3b0e=_0x5a2325[_0x47042d(0x10e)]??_0x5a2325['defaultApp'];if(_0x2f3b0e){const _0x1d52af=_0x3180bb[_0x47042d(0x105)](_0x65d58c=>_0x65d58c[_0x47042d(0x109)]===!![]&&_0x65d58c['name']===_0x2f3b0e&&_0x65d58c[_0x47042d(0x106)]===_0x47042d(0x101)),_0x295cb1=_0x1d52af??_0x3180bb['find'](_0x200431=>_0x200431[_0x47042d(0x109)]===!![]&&_0x200431[_0x47042d(0x10d)]===_0x2f3b0e);_0x295cb1&&(_0x295cb1[_0x47042d(0x113)]=!![]);}return;}if(!_0x277b8d)return;for(const _0x3032eb of _0x3180bb){String(_0x3032eb['appcode']??'')[_0x47042d(0x110)]()===_0x277b8d&&(_0x3032eb[_0x47042d(0x113)]=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x5391bf){const _0x4fb7ab=a7_0x3955;return formatScopeLabel(_0x5391bf['global']?_0x4fb7ab(0x103):_0x4fb7ab(0x102));}
@@ -1 +1 @@
1
- const a8_0x2efbcf=a8_0x5db4;(function(_0x3e6e5c,_0xb410bd){const _0x3e879e=a8_0x5db4,_0x453f24=_0x3e6e5c();while(!![]){try{const _0x5c5ec6=parseInt(_0x3e879e(0x119))/0x1*(parseInt(_0x3e879e(0x11c))/0x2)+parseInt(_0x3e879e(0xe3))/0x3+parseInt(_0x3e879e(0x110))/0x4+-parseInt(_0x3e879e(0x10e))/0x5+-parseInt(_0x3e879e(0xe5))/0x6+-parseInt(_0x3e879e(0x105))/0x7+parseInt(_0x3e879e(0x116))/0x8;if(_0x5c5ec6===_0xb410bd)break;else _0x453f24['push'](_0x453f24['shift']());}catch(_0x58ece1){_0x453f24['push'](_0x453f24['shift']());}}}(a8_0x35af,0xd8a7b));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=a8_0x2efbcf(0x112),ARTIFACT_SOURCE_AGENT=a8_0x2efbcf(0xf3),ALLOWED_REACT_MODULE_IMPORTS=[a8_0x2efbcf(0x113),a8_0x2efbcf(0x123),a8_0x2efbcf(0xea),a8_0x2efbcf(0xfd),a8_0x2efbcf(0x11f),a8_0x2efbcf(0x120)];export const ALLOWED_REACT_MODULE_IMPORTS_TEXT=ALLOWED_REACT_MODULE_IMPORTS[a8_0x2efbcf(0x128)](',\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_0x2efbcf(0xee),'type':a8_0x2efbcf(0xf9),'required':!![],'description':a8_0x2efbcf(0x10d)},ARTIFACT_NAME_FLAG={'name':a8_0x2efbcf(0xec),'type':a8_0x2efbcf(0xf9),'description':'Artifact\x20display\x20name'},METADATA_FLAG={'name':a8_0x2efbcf(0x103),'type':'string','description':a8_0x2efbcf(0xe8)};function isPlainObject(_0x583d15){const _0x44bb2a=a8_0x2efbcf;return typeof _0x583d15===_0x44bb2a(0xf8)&&_0x583d15!==null&&!Array[_0x44bb2a(0x118)](_0x583d15);}function readSourceFile(_0x35fde1){const _0x6be555=a8_0x2efbcf;if(!_0x35fde1)throw CliErrors[_0x6be555(0x125)](_0x6be555(0x104));if(!existsSync(_0x35fde1))throw CliErrors[_0x6be555(0x125)](_0x6be555(0x11e)+_0x35fde1);if(!statSync(_0x35fde1)[_0x6be555(0x106)]())throw CliErrors[_0x6be555(0x125)](_0x6be555(0x12b)+_0x35fde1);const _0x370fa0=readFileSync(_0x35fde1,_0x6be555(0x111));return validateReactModuleSource(_0x370fa0),_0x370fa0;}function parseMetadata(_0x4c37e6){const _0x4c7ac1=a8_0x2efbcf;if(!_0x4c37e6)return undefined;let _0x2422d5;try{_0x2422d5=JSON[_0x4c7ac1(0x100)](_0x4c37e6);}catch{throw CliErrors[_0x4c7ac1(0x125)]('Invalid\x20JSON\x20for\x20--metadata:\x20'+_0x4c37e6);}if(!isPlainObject(_0x2422d5))throw CliErrors[_0x4c7ac1(0x125)]('--metadata\x20must\x20be\x20a\x20JSON\x20object.');const _0x559d44={..._0x2422d5};return delete _0x559d44[_0x4c7ac1(0x132)],_0x559d44;}function a8_0x5db4(_0x8e04b4,_0x3171b2){_0x8e04b4=_0x8e04b4-0xe2;const _0x35af5c=a8_0x35af();let _0x5db46d=_0x35af5c[_0x8e04b4];return _0x5db46d;}function getPackageName(_0x4c9396){const _0x2e49f8=a8_0x2efbcf;if(_0x4c9396[_0x2e49f8(0xff)]('@')){const [_0x458528,_0x3c8b63]=_0x4c9396[_0x2e49f8(0xfe)]('/');return _0x458528&&_0x3c8b63?_0x458528+'/'+_0x3c8b63:_0x4c9396;}return _0x4c9396[_0x2e49f8(0xfe)]('/')[0x0]||_0x4c9396;}function validateAllowedImports(_0x582278){const _0xc77ed2=a8_0x2efbcf,_0x782f65=new Set();for(const _0x5b45cf of IMPORT_SOURCE_PATTERNS){_0x5b45cf[_0xc77ed2(0x12e)]=0x0;let _0x1f7b62;while((_0x1f7b62=_0x5b45cf[_0xc77ed2(0xf2)](_0x582278))!==null){const _0x17474c=_0x1f7b62[0x1]?.['trim']();_0x17474c&&_0x782f65[_0xc77ed2(0xe2)](_0x17474c);}}const _0x5ec56c=[..._0x782f65][_0xc77ed2(0x12a)](getPackageName)[_0xc77ed2(0xf5)](_0x3a6053=>!ALLOWED_REACT_MODULE_IMPORTS[_0xc77ed2(0xf0)](_0x3a6053));if(_0x5ec56c[_0xc77ed2(0x10b)]>0x0)throw CliErrors[_0xc77ed2(0x125)](_0xc77ed2(0xf1)+ALLOWED_REACT_MODULE_IMPORTS_TEXT+_0xc77ed2(0x131)+[...new Set(_0x5ec56c)][_0xc77ed2(0x128)](',\x20'));}export function validateReactModuleSource(_0xd78052){const _0x1687f5=a8_0x2efbcf;if(!_0xd78052[_0x1687f5(0x11a)]())throw CliErrors[_0x1687f5(0x125)]('Artifact\x20source\x20file\x20is\x20blank.');if(PAGE_LEVEL_PATTERNS['some'](_0x3fa871=>_0x3fa871['test'](_0xd78052)))throw CliErrors[_0x1687f5(0x125)](_0x1687f5(0x122));validateAllowedImports(_0xd78052);}function buildArtifactInput(_0x27e9e2){const _0x111589=a8_0x2efbcf,_0x2f98a8=readSourceFile(_0x27e9e2[_0x111589(0xe9)]('file')),_0x248cd2=_0x27e9e2['str']('name')[_0x111589(0x11a)](),_0x16538f=parseMetadata(_0x27e9e2[_0x111589(0xe9)](_0x111589(0x103)));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x248cd2?{'name':_0x248cd2}:{},'content':_0x2f98a8,..._0x16538f?{'metadata':_0x16538f}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0x18f050){const _0x4133d2=a8_0x2efbcf;return{'id':_0x18f050['id'],'name':_0x18f050['name'],'artifactType':_0x18f050['artifactType'],'source':_0x18f050['source'],'favorite':_0x18f050['favorite'],'deleted':_0x18f050['deleted'],'createTime':_0x18f050[_0x4133d2(0x108)],'updateTime':_0x18f050[_0x4133d2(0x114)]};}function a8_0x35af(){const _0x5f6c70=['boolean','verbose','metadata','File\x20path\x20is\x20required.','10326764zlGITQ','isFile','artifactType','createTime','/update','update','length','Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file','2819990PDVzZA','deleted','6825112afiQse','utf8','react_module','react','updateTime','list','6092280goayQS','write','isArray','1IdWqEV','trim','create','1332532KNzLgY','Show\x20one\x20Artifact\x20by\x20id','File\x20not\x20found:\x20','antd','@ant-design/icons','Optional\x20source\x20filter,\x20for\x20example\x20AGENT','react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.','react-dom','Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','validation','POST','Preview:\x20create\x20react_module\x20Artifact','join','Created\x20Artifact\x20','map','File\x20is\x20not\x20a\x20regular\x20file:\x20','bool','favorite','lastIndex','Preview:\x20update\x20react_module\x20Artifact\x20','Updated\x20Artifact\x20','.\x20Unsupported:\x20','compiledContent','add','3907101ExtkNf','flag','9058662MMEiqc','detail','appCode','Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped','str','lodash','source','name','num','file','List\x20current-app\x20react_module\x20Artifacts','includes','react_module\x20imports\x20are\x20limited\x20to:\x20','exec','AGENT','build','filter','/client/artifact/create','content','object','string','Optional\x20favorite-state\x20filter','artifact','Artifact\x20ID','dayjs','split','startsWith','parse'];a8_0x35af=function(){return _0x5f6c70;};return a8_0x35af();}function detailArtifact(_0x3ecd82){const _0x395968=a8_0x2efbcf;return{'id':_0x3ecd82['id'],'appCode':_0x3ecd82['appCode'],'name':_0x3ecd82[_0x395968(0xec)],'artifactType':_0x3ecd82[_0x395968(0x107)],'source':_0x3ecd82['source'],'favorite':_0x3ecd82[_0x395968(0x12d)],'deleted':_0x3ecd82[_0x395968(0x10f)],'content':_0x3ecd82[_0x395968(0xf7)]??'','compiledContent':_0x3ecd82[_0x395968(0x132)],'metadata':_0x3ecd82['metadata']??{},'createTime':_0x3ecd82[_0x395968(0x108)],'updateTime':_0x3ecd82[_0x395968(0x114)]};}function readFavoriteFlag(_0x1eca5c){const _0x30a677=a8_0x2efbcf,_0x50d8af=_0x1eca5c[_0x30a677(0xe4)]('favorite');return _0x50d8af===undefined||_0x50d8af===null||_0x50d8af===''?undefined:_0x1eca5c[_0x30a677(0x12c)](_0x30a677(0x12d));}const artifactList={'service':a8_0x2efbcf(0xfb),'command':a8_0x2efbcf(0x115),'description':a8_0x2efbcf(0xef),'risk':'read','flags':[{'name':a8_0x2efbcf(0xeb),'type':a8_0x2efbcf(0xf9),'description':a8_0x2efbcf(0x121)},{'name':a8_0x2efbcf(0x12d),'type':a8_0x2efbcf(0x101),'description':a8_0x2efbcf(0xfa)},VERBOSE_FLAG],async 'execute'(_0x1bc643){const _0x431991=a8_0x2efbcf,_0xb47ac8=await listRuntimeArtifacts(_0x1bc643[_0x431991(0xe7)],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x1bc643['str'](_0x431991(0xeb))?{'source':_0x1bc643[_0x431991(0xe9)](_0x431991(0xeb))}:{},...readFavoriteFlag(_0x1bc643)!==undefined?{'favorite':readFavoriteFlag(_0x1bc643)}:{}});return{'ok':!![],'data':{'total':_0xb47ac8[_0x431991(0x10b)],'items':_0x1bc643['bool'](_0x431991(0x102))?_0xb47ac8:_0xb47ac8[_0x431991(0x12a)](summarizeArtifact)}};}},artifactDetail={'service':'artifact','command':a8_0x2efbcf(0xe6),'description':a8_0x2efbcf(0x11d),'risk':'read','flags':[{...ID_FLAG,'description':a8_0x2efbcf(0xfc)}],async 'execute'(_0x2714ca){const _0x26be36=a8_0x2efbcf,_0x494d41=await getRuntimeArtifact(_0x2714ca[_0x26be36(0xed)]('id'),_0x2714ca[_0x26be36(0xe7)]);return{'ok':!![],'data':detailArtifact(_0x494d41)};}},artifactCreate={'service':a8_0x2efbcf(0xfb),'command':a8_0x2efbcf(0x11b),'description':a8_0x2efbcf(0x10c),'risk':a8_0x2efbcf(0x117),'flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x5a308d){const _0xbdf99c=a8_0x2efbcf,_0x48599d=buildArtifactInput(_0x5a308d),_0x34e18f=await createRuntimeArtifact(_0x5a308d['appCode'],_0x48599d);return{'ok':!![],'data':detailArtifact(_0x34e18f),'message':_0xbdf99c(0x129)+_0x34e18f['id']+(_0x34e18f[_0xbdf99c(0xec)]?'\x20('+_0x34e18f[_0xbdf99c(0xec)]+')':'')};},async 'dryRun'(_0x7ecff2){const _0x7b8eed=a8_0x2efbcf,_0x4fb9e7=buildArtifactInput(_0x7ecff2);return dryRun('POST',_0x7b8eed(0xf6))['body']({'appCode':_0x7ecff2[_0x7b8eed(0xe7)],..._0x4fb9e7})['description'](_0x7b8eed(0x127))['build']();}},artifactUpdate={'service':a8_0x2efbcf(0xfb),'command':a8_0x2efbcf(0x10a),'description':a8_0x2efbcf(0x124),'risk':'write','flags':[{...ID_FLAG,'description':a8_0x2efbcf(0xfc)},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x4fd6ff){const _0x418a0=a8_0x2efbcf,_0x5e34ac=_0x4fd6ff[_0x418a0(0xed)]('id'),_0x399aec=buildArtifactInput(_0x4fd6ff),_0x5e4dbc=await updateRuntimeArtifact(_0x5e34ac,_0x4fd6ff['appCode'],_0x399aec);return{'ok':!![],'data':detailArtifact(_0x5e4dbc),'message':_0x418a0(0x130)+_0x5e4dbc['id']+(_0x5e4dbc[_0x418a0(0xec)]?'\x20('+_0x5e4dbc['name']+')':'')};},async 'dryRun'(_0x58fbf8){const _0x281e83=a8_0x2efbcf,_0x273718=_0x58fbf8[_0x281e83(0xed)]('id'),_0x47d5a7=buildArtifactInput(_0x58fbf8);return dryRun(_0x281e83(0x126),'/client/artifact/'+_0x273718+_0x281e83(0x109))['body']({'appCode':_0x58fbf8[_0x281e83(0xe7)],..._0x47d5a7})['description'](_0x281e83(0x12f)+_0x273718)[_0x281e83(0xf4)]();}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
1
+ const a8_0x199233=a8_0x6cc5;(function(_0x1ad9f9,_0x109a0b){const _0x2fe975=a8_0x6cc5,_0x51cd51=_0x1ad9f9();while(!![]){try{const _0x4cae83=-parseInt(_0x2fe975(0x107))/0x1+parseInt(_0x2fe975(0x101))/0x2+-parseInt(_0x2fe975(0x10c))/0x3+-parseInt(_0x2fe975(0x11a))/0x4+-parseInt(_0x2fe975(0x111))/0x5*(-parseInt(_0x2fe975(0xe2))/0x6)+parseInt(_0x2fe975(0xe7))/0x7+-parseInt(_0x2fe975(0xec))/0x8;if(_0x4cae83===_0x109a0b)break;else _0x51cd51['push'](_0x51cd51['shift']());}catch(_0x4416b6){_0x51cd51['push'](_0x51cd51['shift']());}}}(a8_0xb7de,0x9d46f));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=a8_0x199233(0x103),ARTIFACT_SOURCE_AGENT=a8_0x199233(0x10a),ALLOWED_REACT_MODULE_IMPORTS=[a8_0x199233(0x109),'react-dom','lodash','dayjs','antd',a8_0x199233(0x10e)];export const ALLOWED_REACT_MODULE_IMPORTS_TEXT=ALLOWED_REACT_MODULE_IMPORTS['join'](',\x20');const IMPORT_SOURCE_PATTERNS=[/\bimport\s+(?:type\s+)?(?:[^'";]*?\s+from\s+)?["']([^"']+)["']/g,/\bexport\s+(?:type\s+)?[^'";]*?\s+from\s+["']([^"']+)["']/g,/\bimport\s*\(\s*["']([^"']+)["']\s*\)/g,/\brequire\s*\(\s*["']([^"']+)["']\s*\)/g],PAGE_LEVEL_PATTERNS=[/<!doctype\s+html/i,/<\s*html\b/i,/\bcreateRoot\s*\(/,/\bReactDOM\s*\.\s*render\s*\(/,/\bReactDOM\s*\.\s*createRoot\s*\(/],FILE_FLAG={'name':a8_0x199233(0x114),'type':a8_0x199233(0x112),'required':!![],'description':'Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file'},ARTIFACT_NAME_FLAG={'name':a8_0x199233(0x121),'type':a8_0x199233(0x112),'description':a8_0x199233(0xf6)},METADATA_FLAG={'name':a8_0x199233(0x11e),'type':a8_0x199233(0x112),'description':'Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped'};function isPlainObject(_0x3e9556){const _0x401821=a8_0x199233;return typeof _0x3e9556===_0x401821(0x100)&&_0x3e9556!==null&&!Array[_0x401821(0xfa)](_0x3e9556);}function readSourceFile(_0x1feedf){const _0x4d1277=a8_0x199233;if(!_0x1feedf)throw CliErrors[_0x4d1277(0xe6)]('File\x20path\x20is\x20required.');if(!existsSync(_0x1feedf))throw CliErrors[_0x4d1277(0xe6)]('File\x20not\x20found:\x20'+_0x1feedf);if(!statSync(_0x1feedf)['isFile']())throw CliErrors[_0x4d1277(0xe6)](_0x4d1277(0xed)+_0x1feedf);const _0xcff81b=readFileSync(_0x1feedf,'utf8');return validateReactModuleSource(_0xcff81b),_0xcff81b;}function parseMetadata(_0x10d314){const _0x4a0ea2=a8_0x199233;if(!_0x10d314)return undefined;let _0x581326;try{_0x581326=JSON[_0x4a0ea2(0xee)](_0x10d314);}catch{throw CliErrors[_0x4a0ea2(0xe6)]('Invalid\x20JSON\x20for\x20--metadata:\x20'+_0x10d314);}if(!isPlainObject(_0x581326))throw CliErrors[_0x4a0ea2(0xe6)](_0x4a0ea2(0xfc));const _0x3714a3={..._0x581326};return delete _0x3714a3[_0x4a0ea2(0xef)],_0x3714a3;}function a8_0x6cc5(_0x36f143,_0x3c27c4){_0x36f143=_0x36f143-0xe2;const _0xb7de64=a8_0xb7de();let _0x6cc55b=_0xb7de64[_0x36f143];return _0x6cc55b;}function getPackageName(_0x58fb37){const _0x5c60ff=a8_0x199233;if(_0x58fb37[_0x5c60ff(0xf4)]('@')){const [_0x585cf6,_0x212300]=_0x58fb37[_0x5c60ff(0xff)]('/');return _0x585cf6&&_0x212300?_0x585cf6+'/'+_0x212300:_0x58fb37;}return _0x58fb37['split']('/')[0x0]||_0x58fb37;}function validateAllowedImports(_0x2036a0){const _0x305674=a8_0x199233,_0x1fbc4a=new Set();for(const _0x1d6ae0 of IMPORT_SOURCE_PATTERNS){_0x1d6ae0[_0x305674(0x11f)]=0x0;let _0x46fc2e;while((_0x46fc2e=_0x1d6ae0[_0x305674(0x104)](_0x2036a0))!==null){const _0x45a48d=_0x46fc2e[0x1]?.[_0x305674(0x120)]();_0x45a48d&&_0x1fbc4a['add'](_0x45a48d);}}const _0x507947=[..._0x1fbc4a][_0x305674(0xf8)](getPackageName)['filter'](_0x4801f1=>!ALLOWED_REACT_MODULE_IMPORTS[_0x305674(0x122)](_0x4801f1));if(_0x507947[_0x305674(0x118)]>0x0)throw CliErrors[_0x305674(0xe6)](_0x305674(0x10b)+ALLOWED_REACT_MODULE_IMPORTS_TEXT+'.\x20Unsupported:\x20'+[...new Set(_0x507947)][_0x305674(0x11d)](',\x20'));}export function validateReactModuleSource(_0x4e09b5){const _0x5c3bb0=a8_0x199233;if(!_0x4e09b5[_0x5c3bb0(0x120)]())throw CliErrors[_0x5c3bb0(0xe6)](_0x5c3bb0(0xf9));if(PAGE_LEVEL_PATTERNS[_0x5c3bb0(0x105)](_0x5169cb=>_0x5169cb[_0x5c3bb0(0x127)](_0x4e09b5)))throw CliErrors[_0x5c3bb0(0xe6)]('react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.');validateAllowedImports(_0x4e09b5);}function buildArtifactInput(_0x60e115){const _0x212db6=a8_0x199233,_0x297f10=readSourceFile(_0x60e115[_0x212db6(0xfe)](_0x212db6(0x114))),_0x28eea6=_0x60e115[_0x212db6(0xfe)](_0x212db6(0x121))['trim'](),_0x42f207=parseMetadata(_0x60e115[_0x212db6(0xfe)](_0x212db6(0x11e)));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x28eea6?{'name':_0x28eea6}:{},'content':_0x297f10,..._0x42f207?{'metadata':_0x42f207}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0x19b615){const _0x129dba=a8_0x199233;return{'id':_0x19b615['id'],'name':_0x19b615[_0x129dba(0x121)],'artifactType':_0x19b615[_0x129dba(0xf2)],'source':_0x19b615[_0x129dba(0x123)],'favorite':_0x19b615[_0x129dba(0xe4)],'deleted':_0x19b615[_0x129dba(0xf1)],'createTime':_0x19b615[_0x129dba(0x117)],'updateTime':_0x19b615[_0x129dba(0x11c)]};}function detailArtifact(_0x16b6b1){const _0x5ec50b=a8_0x199233;return{'id':_0x16b6b1['id'],'appCode':_0x16b6b1[_0x5ec50b(0x10f)],'name':_0x16b6b1[_0x5ec50b(0x121)],'artifactType':_0x16b6b1[_0x5ec50b(0xf2)],'source':_0x16b6b1[_0x5ec50b(0x123)],'favorite':_0x16b6b1['favorite'],'deleted':_0x16b6b1['deleted'],'content':_0x16b6b1[_0x5ec50b(0xfb)]??'','compiledContent':_0x16b6b1[_0x5ec50b(0xef)],'metadata':_0x16b6b1['metadata']??{},'createTime':_0x16b6b1['createTime'],'updateTime':_0x16b6b1[_0x5ec50b(0x11c)]};}function readFavoriteFlag(_0x1cc019){const _0x505bf7=a8_0x199233,_0x3ce0d3=_0x1cc019[_0x505bf7(0x128)]('favorite');return _0x3ce0d3===undefined||_0x3ce0d3===null||_0x3ce0d3===''?undefined:_0x1cc019[_0x505bf7(0x106)](_0x505bf7(0xe4));}function a8_0xb7de(){const _0x1d2e7c=['24sAgzOQ','detail','favorite','update','validation','5826765MOjJnc','Optional\x20source\x20filter,\x20for\x20example\x20AGENT','/client/artifact/','read','num','9529296VgbGLt','File\x20is\x20not\x20a\x20regular\x20file:\x20','parse','compiledContent','Show\x20one\x20Artifact\x20by\x20id','deleted','artifactType','Artifact\x20ID','startsWith','/client/artifact/create','Artifact\x20display\x20name','write','map','Artifact\x20source\x20file\x20is\x20blank.','isArray','content','--metadata\x20must\x20be\x20a\x20JSON\x20object.','description','str','split','object','1990644evpVlx','Preview:\x20create\x20react_module\x20Artifact','react_module','exec','some','bool','42856xbYNju','create','react','AGENT','react_module\x20imports\x20are\x20limited\x20to:\x20','1065723PWWsnP','artifact','@ant-design/icons','appCode','list','1030355aKhezV','string','build','file','boolean','verbose','createTime','length','Optional\x20favorite-state\x20filter','1674140bGKHZK','Created\x20Artifact\x20','updateTime','join','metadata','lastIndex','trim','name','includes','source','body','Preview:\x20update\x20react_module\x20Artifact\x20','Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','test','flag'];a8_0xb7de=function(){return _0x1d2e7c;};return a8_0xb7de();}const artifactList={'service':a8_0x199233(0x10d),'command':a8_0x199233(0x110),'description':'List\x20current-app\x20react_module\x20Artifacts','risk':a8_0x199233(0xea),'flags':[{'name':'source','type':a8_0x199233(0x112),'description':a8_0x199233(0xe8)},{'name':a8_0x199233(0xe4),'type':a8_0x199233(0x115),'description':a8_0x199233(0x119)},VERBOSE_FLAG],async 'execute'(_0x3332e3){const _0x2022ab=a8_0x199233,_0x10c4ea=await listRuntimeArtifacts(_0x3332e3[_0x2022ab(0x10f)],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x3332e3[_0x2022ab(0xfe)](_0x2022ab(0x123))?{'source':_0x3332e3[_0x2022ab(0xfe)](_0x2022ab(0x123))}:{},...readFavoriteFlag(_0x3332e3)!==undefined?{'favorite':readFavoriteFlag(_0x3332e3)}:{}});return{'ok':!![],'data':{'total':_0x10c4ea[_0x2022ab(0x118)],'items':_0x3332e3[_0x2022ab(0x106)](_0x2022ab(0x116))?_0x10c4ea:_0x10c4ea[_0x2022ab(0xf8)](summarizeArtifact)}};}},artifactDetail={'service':a8_0x199233(0x10d),'command':a8_0x199233(0xe3),'description':a8_0x199233(0xf0),'risk':'read','flags':[{...ID_FLAG,'description':a8_0x199233(0xf3)}],async 'execute'(_0x35ca80){const _0x54970a=a8_0x199233,_0x102acf=await getRuntimeArtifact(_0x35ca80[_0x54970a(0xeb)]('id'),_0x35ca80[_0x54970a(0x10f)]);return{'ok':!![],'data':detailArtifact(_0x102acf)};}},artifactCreate={'service':a8_0x199233(0x10d),'command':a8_0x199233(0x108),'description':a8_0x199233(0x126),'risk':a8_0x199233(0xf7),'flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x242c24){const _0x79ae45=a8_0x199233,_0x1c1d3d=buildArtifactInput(_0x242c24),_0x783e0b=await createRuntimeArtifact(_0x242c24[_0x79ae45(0x10f)],_0x1c1d3d);return{'ok':!![],'data':detailArtifact(_0x783e0b),'message':_0x79ae45(0x11b)+_0x783e0b['id']+(_0x783e0b[_0x79ae45(0x121)]?'\x20('+_0x783e0b[_0x79ae45(0x121)]+')':'')};},async 'dryRun'(_0x10f049){const _0x59c9bc=a8_0x199233,_0x5be208=buildArtifactInput(_0x10f049);return dryRun('POST',_0x59c9bc(0xf5))[_0x59c9bc(0x124)]({'appCode':_0x10f049[_0x59c9bc(0x10f)],..._0x5be208})[_0x59c9bc(0xfd)](_0x59c9bc(0x102))[_0x59c9bc(0x113)]();}},artifactUpdate={'service':'artifact','command':a8_0x199233(0xe5),'description':'Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','risk':'write','flags':[{...ID_FLAG,'description':a8_0x199233(0xf3)},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x20c2be){const _0x40212f=a8_0x199233,_0x36731d=_0x20c2be[_0x40212f(0xeb)]('id'),_0x3f01e6=buildArtifactInput(_0x20c2be),_0x122b3a=await updateRuntimeArtifact(_0x36731d,_0x20c2be['appCode'],_0x3f01e6);return{'ok':!![],'data':detailArtifact(_0x122b3a),'message':'Updated\x20Artifact\x20'+_0x122b3a['id']+(_0x122b3a[_0x40212f(0x121)]?'\x20('+_0x122b3a[_0x40212f(0x121)]+')':'')};},async 'dryRun'(_0x1a15b6){const _0x36e86f=a8_0x199233,_0x356e19=_0x1a15b6[_0x36e86f(0xeb)]('id'),_0x1b9024=buildArtifactInput(_0x1a15b6);return dryRun('POST',_0x36e86f(0xe9)+_0x356e19+'/update')[_0x36e86f(0x124)]({'appCode':_0x1a15b6[_0x36e86f(0x10f)],..._0x1b9024})['description'](_0x36e86f(0x125)+_0x356e19)['build']();}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
@@ -1 +1 @@
1
- const a9_0x51ab23=a9_0x54ac;(function(_0x249387,_0x188edb){const _0x4b52d6=a9_0x54ac,_0x2fe29c=_0x249387();while(!![]){try{const _0x414691=parseInt(_0x4b52d6(0x16a))/0x1+parseInt(_0x4b52d6(0x17c))/0x2*(parseInt(_0x4b52d6(0x140))/0x3)+-parseInt(_0x4b52d6(0x136))/0x4*(-parseInt(_0x4b52d6(0x174))/0x5)+parseInt(_0x4b52d6(0x148))/0x6+-parseInt(_0x4b52d6(0x184))/0x7+-parseInt(_0x4b52d6(0x166))/0x8+parseInt(_0x4b52d6(0x171))/0x9*(parseInt(_0x4b52d6(0x150))/0xa);if(_0x414691===_0x188edb)break;else _0x2fe29c['push'](_0x2fe29c['shift']());}catch(_0x1a6be4){_0x2fe29c['push'](_0x2fe29c['shift']());}}}(a9_0x1676,0x1b330));function a9_0x54ac(_0x357c74,_0x2cc554){_0x357c74=_0x357c74-0x131;const _0x167629=a9_0x1676();let _0x54ac7d=_0x167629[_0x357c74];return _0x54ac7d;}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';function a9_0x1676(){const _0x20333e=['read','\x20config.','userCenterDisplayName','push','AccessKey:\x20','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','newConfigFileName','55840uBPncn','\x20\x20export\x20','cancelled','init','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','`auth\x20login`\x20does\x20not\x20support\x20--yes.','nonInteractive','trim','Clear\x20accessKey\x20from\x20config','ACCESS_KEY','Option\x20C:\x20environment\x20variable','ClientAk','Show\x20current\x20authentication\x20status','Then\x20verify\x20with:\x20','write','\x20config','\x20config.\x20Nothing\x20to\x20clear.','length','yes','isTTY','AccessKey\x20cleared\x20from\x20','Write\x20to\x20global\x20config\x20(default)','959824eefFDI','join','Option\x20B:\x20apps\x20config\x20(','=ak_xxx','200294Klmdaj','info','str','repeat','string','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','login','54PAdTCA','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','\x20Current\x20env:\x20','10TiEqTO','slice','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','\x20(via\x20','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','Read\x20from\x20global\x20config\x20(default)','production','validation','4ecXYHu','Tip:\x20you\x20can\x20also\x20run:','env','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','Clear\x20from\x20global\x20config\x20(default)','\x20Verify:\x20','Auth\x20mode:\x20','\x20auth\x20login\x20--access-key\x20<ak_xxx>','1485057gvSfab','stdin','\x20auth\x20status','project','daily','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','\x20doctor','boolean','access-key','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','46396NclNsY','test','logout','global-default','global','\x20env\x20var','auth','bool','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','accessKey','155658ZIuSJv','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','Invalid\x20accessKey\x20format:\x20\x22','No\x20AccessKey\x20found\x20in\x20','Missing\x20accessKey.','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','Shorthand\x20for\x20--access-key','stdout','496614DwsvVd'];a9_0x1676=function(){return _0x20333e;};return a9_0x1676();}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 _0x1ba146=a9_0x54ac;writeCliSideChannelLine(_0x1ba146(0x178)+PRODUCT_CONFIG[_0x1ba146(0x14b)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x1ba146(0x17d)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x1ba146(0x183));}function buildAccessKeySetupGuide(){const _0x4700e5=a9_0x54ac;return[_0x4700e5(0x178)+PRODUCT_CONFIG[_0x4700e5(0x14b)]+':',USER_ACCESS_KEY_CREATE_URL,'Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20'+CLI_BIN_NAME+_0x4700e5(0x154)][_0x4700e5(0x167)]('\x0a');}function canPromptForAccessKey(_0x43b4b1){const _0x2bd4d5=a9_0x54ac;return!_0x43b4b1[_0x2bd4d5(0x156)]&&process[_0x2bd4d5(0x185)][_0x2bd4d5(0x163)]!==![]&&process[_0x2bd4d5(0x147)][_0x2bd4d5(0x163)]!==![];}function resolveAuthScopeFlags(_0x246c3d){const _0x45a60f=a9_0x54ac;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x246c3d[_0x45a60f(0x13d)](_0x45a60f(0x13a)),'explicitProject':_0x246c3d[_0x45a60f(0x13d)](_0x45a60f(0x187)),'policy':_0x45a60f(0x139)}));}async function resolveAuthWriteInput(_0x3acbca){const _0x4346e7=a9_0x54ac;let _0x4b47f3=(_0x3acbca[_0x4346e7(0x16c)]('access-key')||_0x3acbca[_0x4346e7(0x16c)]('ak')||'')['trim']();const _0x1e8e6e=(_0x3acbca[_0x4346e7(0x16c)](_0x4346e7(0x17e))||'')['trim']();if(!_0x4b47f3&&canPromptForAccessKey(_0x3acbca))try{showAccessKeyCreateHint(),_0x4b47f3=await promptAccessKey('');}catch(_0x250fc1){if(isAbortPrompt(_0x250fc1))throw CliErrors[_0x4346e7(0x152)]();throw _0x250fc1;}if(!_0x4b47f3)throw CliErrors[_0x4346e7(0x17b)](_0x4346e7(0x144),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x4346e7(0x137)](_0x4b47f3))throw CliErrors[_0x4346e7(0x17b)](_0x4346e7(0x142)+_0x4b47f3+'\x22',_0x4346e7(0x176));if(!_0x1e8e6e)return{'accessKey':_0x4b47f3};const _0xaa1450=normalizeEnv(_0x1e8e6e);return{'accessKey':_0x4b47f3,'env':isDaily(_0xaa1450)?_0x4346e7(0x188):isDev(_0xaa1450)?'development':_0x4346e7(0x17a)};}export const authDefinitions=[{'service':'auth','command':a9_0x51ab23(0x170),'description':a9_0x51ab23(0x131),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x51ab23(0x134),'type':a9_0x51ab23(0x16e),'description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':a9_0x51ab23(0x16e),'description':'Shorthand\x20for\x20--access-key'},{'name':a9_0x51ab23(0x13a),'type':a9_0x51ab23(0x133),'description':a9_0x51ab23(0x165),'default':!![]},{'name':'project','type':a9_0x51ab23(0x133),'description':'Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x1a252c){const _0xe3195e=a9_0x51ab23;if(_0x1a252c['bool'](_0xe3195e(0x162)))throw CliErrors[_0xe3195e(0x17b)](_0xe3195e(0x155),'Use\x20`'+CLI_BIN_NAME+'\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`'+CLI_BIN_NAME+_0xe3195e(0x145));const _0x4987ad=(_0x1a252c['str']('access-key')||_0x1a252c['str']('ak')||'')[_0xe3195e(0x157)]();if(!_0x4987ad&&_0x1a252c[_0xe3195e(0x156)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x3591fa=await resolveAuthWriteInput(_0x1a252c),_0x220127=resolveAuthScopeFlags(_0x1a252c),_0x188e60=readScopedConfig(_0x220127);_0x188e60['accessKey']=_0x3591fa['accessKey'];_0x3591fa[_0xe3195e(0x17e)]&&(_0x188e60[_0xe3195e(0x17e)]=_0x3591fa[_0xe3195e(0x17e)]);writeScopedConfig(_0x188e60,_0x220127);const _0x1e4a86=_0x220127[_0xe3195e(0x13a)]?_0xe3195e(0x13a):_0xe3195e(0x187),_0x2bf52c=_0x188e60[_0xe3195e(0x17e)]?_0xe3195e(0x173)+_0x188e60[_0xe3195e(0x17e)]+'.':'';return{'ok':!![],'message':'AccessKey\x20saved\x20to\x20'+_0x1e4a86+_0xe3195e(0x14a)+_0x2bf52c+_0xe3195e(0x181)+CLI_BIN_NAME+_0xe3195e(0x186)};}},{'service':a9_0x51ab23(0x13c),'command':a9_0x51ab23(0x153),'description':a9_0x51ab23(0x135),'risk':a9_0x51ab23(0x15e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x51ab23(0x134),'type':'string','description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':a9_0x51ab23(0x16e),'description':a9_0x51ab23(0x146)},{'name':a9_0x51ab23(0x17e),'type':a9_0x51ab23(0x16e),'description':a9_0x51ab23(0x141)},{'name':a9_0x51ab23(0x13a),'type':a9_0x51ab23(0x133),'description':a9_0x51ab23(0x165),'default':!![]},{'name':'project','type':a9_0x51ab23(0x133),'description':a9_0x51ab23(0x14e),'default':![]}],async 'execute'(_0x2ce6d8){const _0x421f29=a9_0x51ab23,_0xb98a1=await resolveAuthWriteInput(_0x2ce6d8),_0x41876f=resolveAuthScopeFlags(_0x2ce6d8),_0x1917c9={'accessKey':_0xb98a1[_0x421f29(0x13f)]};_0xb98a1[_0x421f29(0x17e)]&&(_0x1917c9[_0x421f29(0x17e)]=_0xb98a1['env']);writeScopedConfig(_0x1917c9,_0x41876f);const _0x2e9f5c=_0x41876f[_0x421f29(0x13a)]?_0x421f29(0x13a):_0x421f29(0x187),_0x2b0fae=_0x1917c9['env']?_0x421f29(0x173)+_0x1917c9[_0x421f29(0x17e)]+'.':'';return{'ok':!![],'message':'Auth\x20config\x20reinitialized\x20in\x20'+_0x2e9f5c+'\x20scope.'+_0x2b0fae+_0x421f29(0x181)+CLI_BIN_NAME+_0x421f29(0x186)};}},{'service':'auth','command':a9_0x51ab23(0x138),'description':a9_0x51ab23(0x158),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'global','type':a9_0x51ab23(0x133),'description':a9_0x51ab23(0x180),'default':!![]},{'name':a9_0x51ab23(0x187),'type':a9_0x51ab23(0x133),'description':'Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x2c906c){const _0x440c36=a9_0x51ab23,_0x284eef=resolveAuthScopeFlags(_0x2c906c),_0x3e341b=readScopedConfig(_0x284eef),_0xcf3066=!!_0x3e341b[_0x440c36(0x13f)];delete _0x3e341b[_0x440c36(0x13f)],writeScopedConfig(_0x3e341b,_0x284eef);const _0x419cac=_0x284eef[_0x440c36(0x13a)]?_0x440c36(0x13a):_0x440c36(0x187);if(_0xcf3066)return{'ok':!![],'message':_0x440c36(0x164)+_0x419cac+'\x20config.'};return{'ok':!![],'message':_0x440c36(0x143)+_0x419cac+_0x440c36(0x160)};}},{'service':a9_0x51ab23(0x13c),'command':'status','description':a9_0x51ab23(0x15c),'risk':a9_0x51ab23(0x149),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x51ab23(0x13a),'type':a9_0x51ab23(0x133),'description':a9_0x51ab23(0x179),'default':!![]},{'name':a9_0x51ab23(0x187),'type':'boolean','description':a9_0x51ab23(0x13e),'default':![]}],async 'execute'(_0x36b480){const _0x464ae1=a9_0x51ab23,_0x186ea9=resolveAuthScopeFlags(_0x36b480),_0x2b6e26=readScopedConfig(_0x186ea9),_0x3fc530=productEnvName('ACCESS_KEY'),_0x4938aa=productEnv(_0x464ae1(0x159))||undefined,_0x13ffbf=_0x2b6e26['accessKey']||undefined,_0x5f49fb=_0x4938aa||_0x13ffbf,_0x2443b9=_0x4938aa?_0x3fc530+_0x464ae1(0x13b):_0x13ffbf?(_0x186ea9['global']?_0x464ae1(0x13a):_0x464ae1(0x187))+_0x464ae1(0x15f):null,_0x521f0c=[_0x464ae1(0x182)+AUTH_MODE[_0x464ae1(0x15b)]];if(_0x5f49fb){const _0x41f269=_0x5f49fb[_0x464ae1(0x161)]>0x8?''+_0x5f49fb[_0x464ae1(0x175)](0x0,0x8)+'*'[_0x464ae1(0x16d)](_0x5f49fb[_0x464ae1(0x161)]-0x8):_0x5f49fb;_0x521f0c[_0x464ae1(0x14c)](_0x464ae1(0x14d)+_0x41f269+(_0x2443b9?_0x464ae1(0x177)+_0x2443b9+')':''));}return!_0x5f49fb&&(_0x521f0c[_0x464ae1(0x14c)](''),_0x521f0c[_0x464ae1(0x14c)]('No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:'),_0x521f0c[_0x464ae1(0x14c)](''),_0x521f0c['push']('Option\x20A:\x20'+CLI_BIN_NAME+_0x464ae1(0x172)),_0x521f0c[_0x464ae1(0x14c)](''),_0x521f0c[_0x464ae1(0x14c)](_0x464ae1(0x168)+PRODUCT_CONFIG[_0x464ae1(0x14f)]+')'),_0x521f0c['push'](_0x464ae1(0x17f)),_0x521f0c['push'](''),_0x521f0c['push'](_0x464ae1(0x15a)),_0x521f0c[_0x464ae1(0x14c)](_0x464ae1(0x151)+_0x3fc530+_0x464ae1(0x169)),_0x521f0c[_0x464ae1(0x14c)](''),_0x521f0c[_0x464ae1(0x14c)](_0x464ae1(0x15d)+CLI_BIN_NAME+'\x20auth\x20status'),_0x521f0c[_0x464ae1(0x14c)](_0x464ae1(0x16f)+CLI_BIN_NAME+_0x464ae1(0x132))),{'ok':!![],'message':_0x521f0c['join']('\x0a')};}},{'service':a9_0x51ab23(0x13c),'command':a9_0x51ab23(0x16b),'description':'Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','risk':a9_0x51ab23(0x149),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x276892){const _0x2263be=a9_0x51ab23,_0x87d623=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x87d623,'meta':{'env':_0x276892['envName']??_0x2263be(0x17a)}}};}}];
1
+ const a9_0x33f95b=a9_0x3cdf;(function(_0x528728,_0x16ce38){const _0x3c2464=a9_0x3cdf,_0x325b2c=_0x528728();while(!![]){try{const _0x3dabef=parseInt(_0x3c2464(0x165))/0x1+-parseInt(_0x3c2464(0x158))/0x2*(parseInt(_0x3c2464(0x180))/0x3)+parseInt(_0x3c2464(0x14f))/0x4+parseInt(_0x3c2464(0x159))/0x5+-parseInt(_0x3c2464(0x190))/0x6*(parseInt(_0x3c2464(0x18c))/0x7)+parseInt(_0x3c2464(0x144))/0x8+-parseInt(_0x3c2464(0x16b))/0x9*(parseInt(_0x3c2464(0x148))/0xa);if(_0x3dabef===_0x16ce38)break;else _0x325b2c['push'](_0x325b2c['shift']());}catch(_0x4e183a){_0x325b2c['push'](_0x325b2c['shift']());}}}(a9_0xddae,0xddf29));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';function a9_0x3cdf(_0x213b03,_0x444872){_0x213b03=_0x213b03-0x140;const _0xddaed2=a9_0xddae();let _0x3cdf8e=_0xddaed2[_0x213b03];return _0x3cdf8e;}import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';function a9_0xddae(){const _0x271fc9=['read','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','join','Clear\x20accessKey\x20from\x20config','login','env','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','length','push','1056622CKUnTG','global-default','auth','\x20Verify:\x20','36zjxcNz','trim','stdin','stdout','\x20auth\x20status','Then\x20verify\x20with:\x20','AccessKey\x20(ak_xxx...)','Invalid\x20accessKey\x20format:\x20\x22','accessKey','slice','5361968XBaDyb','global','Tip:\x20you\x20can\x20also\x20run:','Option\x20A:\x20','10vuCHeC','Auth\x20config\x20reinitialized\x20in\x20','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','bool','access-key','\x20doctor','\x20Current\x20env:\x20','5758824KIMPzS','str','Read\x20from\x20global\x20config\x20(default)','\x20config.\x20Nothing\x20to\x20clear.','Show\x20current\x20authentication\x20status','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','ClientAk','project','`auth\x20login`\x20does\x20not\x20support\x20--yes.','25994cFcJSJ','8013365sPAISB','info','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','\x20config','\x20scope.','validation','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','Auth\x20mode:\x20','newConfigFileName','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','envName','nonInteractive','283980BdIowy','\x20auth\x20login\x20--access-key\x20<ak_xxx>','Use\x20`','write','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','init','11799297ZJAybU','boolean','string','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','ACCESS_KEY','No\x20AccessKey\x20found\x20in\x20','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','isTTY','Option\x20C:\x20environment\x20variable','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','\x20(via\x20','userCenterDisplayName','production','status','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','AccessKey\x20cleared\x20from\x20','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','logout','Shorthand\x20for\x20--access-key','Write\x20to\x20global\x20config\x20(default)','\x20config.','201MLASuZ','AccessKey\x20saved\x20to\x20','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}'];a9_0xddae=function(){return _0x271fc9;};return a9_0xddae();}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 _0x329ecd=a9_0x3cdf;writeCliSideChannelLine(_0x329ecd(0x17b)+PRODUCT_CONFIG[_0x329ecd(0x176)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x329ecd(0x146)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x329ecd(0x166));}function buildAccessKeySetupGuide(){const _0x1c066d=a9_0x3cdf;return[_0x1c066d(0x17b)+PRODUCT_CONFIG[_0x1c066d(0x176)]+':',USER_ACCESS_KEY_CREATE_URL,_0x1c066d(0x16e)+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]'][_0x1c066d(0x185)]('\x0a');}function canPromptForAccessKey(_0x417dea){const _0xa5b24c=a9_0x3cdf;return!_0x417dea[_0xa5b24c(0x164)]&&process[_0xa5b24c(0x192)]['isTTY']!==![]&&process[_0xa5b24c(0x193)][_0xa5b24c(0x172)]!==![];}function resolveAuthScopeFlags(_0x4942ec){const _0x4d226f=a9_0x3cdf;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x4942ec[_0x4d226f(0x14b)](_0x4d226f(0x145)),'explicitProject':_0x4942ec['bool'](_0x4d226f(0x156)),'policy':_0x4d226f(0x18d)}));}async function resolveAuthWriteInput(_0x854801){const _0x39dfd9=a9_0x3cdf;let _0x1efaf6=(_0x854801[_0x39dfd9(0x150)](_0x39dfd9(0x14c))||_0x854801[_0x39dfd9(0x150)]('ak')||'')[_0x39dfd9(0x191)]();const _0x501908=(_0x854801[_0x39dfd9(0x150)](_0x39dfd9(0x188))||'')[_0x39dfd9(0x191)]();if(!_0x1efaf6&&canPromptForAccessKey(_0x854801))try{showAccessKeyCreateHint(),_0x1efaf6=await promptAccessKey('');}catch(_0x33ddf1){if(isAbortPrompt(_0x33ddf1))throw CliErrors['cancelled']();throw _0x33ddf1;}if(!_0x1efaf6)throw CliErrors['validation']('Missing\x20accessKey.',buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN['test'](_0x1efaf6))throw CliErrors[_0x39dfd9(0x15e)](_0x39dfd9(0x141)+_0x1efaf6+'\x22','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars');if(!_0x501908)return{'accessKey':_0x1efaf6};const _0x400920=normalizeEnv(_0x501908);return{'accessKey':_0x1efaf6,'env':isDaily(_0x400920)?'daily':isDev(_0x400920)?'development':_0x39dfd9(0x177)};}export const authDefinitions=[{'service':a9_0x33f95b(0x18e),'command':a9_0x33f95b(0x187),'description':a9_0x33f95b(0x169),'risk':a9_0x33f95b(0x168),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'access-key','type':'string','description':a9_0x33f95b(0x140)},{'name':'ak','type':a9_0x33f95b(0x16d),'description':'Shorthand\x20for\x20--access-key'},{'name':a9_0x33f95b(0x145),'type':a9_0x33f95b(0x16c),'description':a9_0x33f95b(0x17e),'default':!![]},{'name':a9_0x33f95b(0x156),'type':a9_0x33f95b(0x16c),'description':a9_0x33f95b(0x154),'default':![]}],async 'execute'(_0x48f8c6){const _0x547f8e=a9_0x33f95b;if(_0x48f8c6[_0x547f8e(0x14b)]('yes'))throw CliErrors[_0x547f8e(0x15e)](_0x547f8e(0x157),_0x547f8e(0x167)+CLI_BIN_NAME+_0x547f8e(0x14a)+CLI_BIN_NAME+_0x547f8e(0x171));const _0x1c6230=(_0x48f8c6[_0x547f8e(0x150)]('access-key')||_0x48f8c6['str']('ak')||'')[_0x547f8e(0x191)]();if(!_0x1c6230&&_0x48f8c6[_0x547f8e(0x164)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x273ca7=await resolveAuthWriteInput(_0x48f8c6),_0x3e193d=resolveAuthScopeFlags(_0x48f8c6),_0x51fd57=readScopedConfig(_0x3e193d);_0x51fd57[_0x547f8e(0x142)]=_0x273ca7[_0x547f8e(0x142)];_0x273ca7[_0x547f8e(0x188)]&&(_0x51fd57[_0x547f8e(0x188)]=_0x273ca7[_0x547f8e(0x188)]);writeScopedConfig(_0x51fd57,_0x3e193d);const _0x208755=_0x3e193d[_0x547f8e(0x145)]?_0x547f8e(0x145):_0x547f8e(0x156),_0x29c06b=_0x51fd57[_0x547f8e(0x188)]?'\x20Current\x20env:\x20'+_0x51fd57[_0x547f8e(0x188)]+'.':'';return{'ok':!![],'message':_0x547f8e(0x181)+_0x208755+'\x20config.'+_0x29c06b+_0x547f8e(0x18f)+CLI_BIN_NAME+_0x547f8e(0x194)};}},{'service':a9_0x33f95b(0x18e),'command':a9_0x33f95b(0x16a),'description':a9_0x33f95b(0x162),'risk':a9_0x33f95b(0x168),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x33f95b(0x14c),'type':'string','description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':a9_0x33f95b(0x16d),'description':a9_0x33f95b(0x17d)},{'name':a9_0x33f95b(0x188),'type':a9_0x33f95b(0x16d),'description':a9_0x33f95b(0x15f)},{'name':a9_0x33f95b(0x145),'type':a9_0x33f95b(0x16c),'description':a9_0x33f95b(0x17e),'default':!![]},{'name':'project','type':a9_0x33f95b(0x16c),'description':'Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x186c80){const _0x20177d=a9_0x33f95b,_0x40f449=await resolveAuthWriteInput(_0x186c80),_0x5ad9f9=resolveAuthScopeFlags(_0x186c80),_0x36eefd={'accessKey':_0x40f449[_0x20177d(0x142)]};_0x40f449[_0x20177d(0x188)]&&(_0x36eefd[_0x20177d(0x188)]=_0x40f449[_0x20177d(0x188)]);writeScopedConfig(_0x36eefd,_0x5ad9f9);const _0x1e437a=_0x5ad9f9[_0x20177d(0x145)]?_0x20177d(0x145):_0x20177d(0x156),_0x124a0f=_0x36eefd[_0x20177d(0x188)]?_0x20177d(0x14e)+_0x36eefd[_0x20177d(0x188)]+'.':'';return{'ok':!![],'message':_0x20177d(0x149)+_0x1e437a+_0x20177d(0x15d)+_0x124a0f+_0x20177d(0x18f)+CLI_BIN_NAME+_0x20177d(0x194)};}},{'service':'auth','command':a9_0x33f95b(0x17c),'description':a9_0x33f95b(0x186),'risk':a9_0x33f95b(0x168),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x33f95b(0x145),'type':a9_0x33f95b(0x16c),'description':'Clear\x20from\x20global\x20config\x20(default)','default':!![]},{'name':a9_0x33f95b(0x156),'type':a9_0x33f95b(0x16c),'description':a9_0x33f95b(0x179),'default':![]}],async 'execute'(_0x8b26f9){const _0x26d58a=a9_0x33f95b,_0x428f45=resolveAuthScopeFlags(_0x8b26f9),_0x57e3b0=readScopedConfig(_0x428f45),_0x6edd30=!!_0x57e3b0[_0x26d58a(0x142)];delete _0x57e3b0[_0x26d58a(0x142)],writeScopedConfig(_0x57e3b0,_0x428f45);const _0x63b147=_0x428f45[_0x26d58a(0x145)]?_0x26d58a(0x145):_0x26d58a(0x156);if(_0x6edd30)return{'ok':!![],'message':_0x26d58a(0x17a)+_0x63b147+_0x26d58a(0x17f)};return{'ok':!![],'message':_0x26d58a(0x170)+_0x63b147+_0x26d58a(0x152)};}},{'service':a9_0x33f95b(0x18e),'command':a9_0x33f95b(0x178),'description':a9_0x33f95b(0x153),'risk':a9_0x33f95b(0x183),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x33f95b(0x145),'type':a9_0x33f95b(0x16c),'description':a9_0x33f95b(0x151),'default':!![]},{'name':'project','type':'boolean','description':'Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x48bf99){const _0x47895a=a9_0x33f95b,_0x3e9e3f=resolveAuthScopeFlags(_0x48bf99),_0x4b4045=readScopedConfig(_0x3e9e3f),_0x21ab22=productEnvName(_0x47895a(0x16f)),_0x4c2229=productEnv(_0x47895a(0x16f))||undefined,_0x1efaab=_0x4b4045[_0x47895a(0x142)]||undefined,_0x5542aa=_0x4c2229||_0x1efaab,_0x333f3e=_0x4c2229?_0x21ab22+'\x20env\x20var':_0x1efaab?(_0x3e9e3f['global']?_0x47895a(0x145):_0x47895a(0x156))+_0x47895a(0x15c):null,_0x471992=[_0x47895a(0x160)+AUTH_MODE[_0x47895a(0x155)]];if(_0x5542aa){const _0x112324=_0x5542aa[_0x47895a(0x18a)]>0x8?''+_0x5542aa[_0x47895a(0x143)](0x0,0x8)+'*'['repeat'](_0x5542aa[_0x47895a(0x18a)]-0x8):_0x5542aa;_0x471992[_0x47895a(0x18b)]('AccessKey:\x20'+_0x112324+(_0x333f3e?_0x47895a(0x175)+_0x333f3e+')':''));}return!_0x5542aa&&(_0x471992[_0x47895a(0x18b)](''),_0x471992[_0x47895a(0x18b)](_0x47895a(0x15b)),_0x471992[_0x47895a(0x18b)](''),_0x471992[_0x47895a(0x18b)](_0x47895a(0x147)+CLI_BIN_NAME+_0x47895a(0x184)),_0x471992[_0x47895a(0x18b)](''),_0x471992[_0x47895a(0x18b)]('Option\x20B:\x20apps\x20config\x20('+PRODUCT_CONFIG[_0x47895a(0x161)]+')'),_0x471992[_0x47895a(0x18b)](_0x47895a(0x182)),_0x471992[_0x47895a(0x18b)](''),_0x471992['push'](_0x47895a(0x173)),_0x471992[_0x47895a(0x18b)]('\x20\x20export\x20'+_0x21ab22+'=ak_xxx'),_0x471992[_0x47895a(0x18b)](''),_0x471992['push'](_0x47895a(0x195)+CLI_BIN_NAME+'\x20auth\x20status'),_0x471992[_0x47895a(0x18b)](_0x47895a(0x174)+CLI_BIN_NAME+_0x47895a(0x14d))),{'ok':!![],'message':_0x471992['join']('\x0a')};}},{'service':a9_0x33f95b(0x18e),'command':a9_0x33f95b(0x15a),'description':a9_0x33f95b(0x189),'risk':a9_0x33f95b(0x183),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0xe183a6){const _0x18cd87=a9_0x33f95b,_0x3b1367=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x3b1367,'meta':{'env':_0xe183a6[_0x18cd87(0x163)]??_0x18cd87(0x177)}}};}}];
@@ -1 +1 @@
1
- (function(_0x10779f,_0x8ccb9a){const _0x1360df=a10_0x3616,_0x27b865=_0x10779f();while(!![]){try{const _0x4d36dd=-parseInt(_0x1360df(0x1f5))/0x1*(-parseInt(_0x1360df(0x1f7))/0x2)+parseInt(_0x1360df(0x1f9))/0x3+-parseInt(_0x1360df(0x1f2))/0x4+parseInt(_0x1360df(0x1fe))/0x5+-parseInt(_0x1360df(0x206))/0x6+-parseInt(_0x1360df(0x200))/0x7+-parseInt(_0x1360df(0x1fc))/0x8*(-parseInt(_0x1360df(0x1fb))/0x9);if(_0x4d36dd===_0x8ccb9a)break;else _0x27b865['push'](_0x27b865['shift']());}catch(_0x1515b4){_0x27b865['push'](_0x27b865['shift']());}}}(a10_0x5b53,0xa5130));function a10_0x3616(_0x5bbbf5,_0x4e62bd){_0x5bbbf5=_0x5bbbf5-0x1f2;const _0x5b53c2=a10_0x5b53();let _0x3616bb=_0x5b53c2[_0x5bbbf5];return _0x3616bb;}import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x57c936=a10_0x3616;super('User\x20aborted\x20prompt'),this['name']=_0x57c936(0x1f3);}}function createSafeRl(){const _0x2403bf=a10_0x3616,_0x2ee50d=createInterface({'input':process[_0x2403bf(0x1fd)],'output':process[_0x2403bf(0x1ff)]});let _0x160764;const _0x63c2c4=new Promise((_0xb93647,_0x546317)=>{const _0x4593b4=_0x2403bf;_0x160764=()=>{const _0x499bfb=a10_0x3616;_0x160764&&(_0x2ee50d[_0x499bfb(0x201)](_0x499bfb(0x1f6),_0x160764),_0x160764=undefined);try{_0x2ee50d[_0x499bfb(0x205)]();}catch{}_0x546317(new AbortPrompt());},_0x2ee50d[_0x4593b4(0x1fa)](_0x4593b4(0x1f6),_0x160764);}),_0x28b7ef=()=>{const _0x351234=_0x2403bf;_0x160764&&(_0x2ee50d[_0x351234(0x201)](_0x351234(0x1f6),_0x160764),_0x160764=undefined);try{_0x2ee50d['close']();}catch{}};return{'rl':_0x2ee50d,'abortPromise':_0x63c2c4,'disposeSuccess':_0x28b7ef};}export async function promptAccessKey(_0x255f5c=''){const _0x1cb19c=a10_0x3616,{rl:_0x40c751,abortPromise:_0x4be481,disposeSuccess:_0x182892}=createSafeRl(),_0xfbd5b6=new Promise(_0x17c0fa=>{const _0x1db6f7=a10_0x3616,_0x514b3b=_0x255f5c?_0x1db6f7(0x1f8)+_0x255f5c+_0x1db6f7(0x204):'AccessKey\x20(paste\x20ak_...):\x20';_0x40c751[_0x1db6f7(0x1f4)](_0x514b3b,_0x25ba2f=>{const _0x4ab7d7=_0x1db6f7;_0x182892(),_0x17c0fa(_0x25ba2f[_0x4ab7d7(0x207)]()||_0x255f5c);});});return Promise[_0x1cb19c(0x202)]([_0xfbd5b6,_0x4be481]);}function a10_0x5b53(){const _0x3e4874=['trim','5283196FzeCpD','AbortPrompt','question','582538dRDRHJ','SIGINT','2HUeOGQ','AccessKey\x20(','3492867swVYyV','once','636192OefSUk','168nraBkj','stdin','2381175tWWDQT','stdout','7957831rmWGUf','removeListener','race','name','):\x20','close','3442404BjivxH'];a10_0x5b53=function(){return _0x3e4874;};return a10_0x5b53();}export function isAbortPrompt(_0x223b97){const _0x4cc339=a10_0x3616;return _0x223b97 instanceof Error&&_0x223b97[_0x4cc339(0x203)]==='AbortPrompt';}
1
+ function a10_0x343e(){const _0x1f2a12=['4927690PbKCLI','1261464CfHNJW','once','2FZOfAR','300vNruBu','751820AarQiR','AbortPrompt','36VuybWX','435971hHwKRv','AccessKey\x20(','User\x20aborted\x20prompt','1161909xiFzDr','48255LMpPPg','stdout','trim','stdin','SIGINT','name','33HhiQwa','13766196okMfZT','72VjYHZA'];a10_0x343e=function(){return _0x1f2a12;};return a10_0x343e();}(function(_0x54aeb7,_0x258449){const _0x3d3a0e=a10_0x50f8,_0x57a89e=_0x54aeb7();while(!![]){try{const _0x2c9226=-parseInt(_0x3d3a0e(0x13d))/0x1*(-parseInt(_0x3d3a0e(0x138))/0x2)+-parseInt(_0x3d3a0e(0x12c))/0x3*(-parseInt(_0x3d3a0e(0x139))/0x4)+parseInt(_0x3d3a0e(0x13a))/0x5*(parseInt(_0x3d3a0e(0x13c))/0x6)+-parseInt(_0x3d3a0e(0x140))/0x7+parseInt(_0x3d3a0e(0x136))/0x8*(parseInt(_0x3d3a0e(0x134))/0x9)+parseInt(_0x3d3a0e(0x135))/0xa+parseInt(_0x3d3a0e(0x132))/0xb*(-parseInt(_0x3d3a0e(0x133))/0xc);if(_0x2c9226===_0x258449)break;else _0x57a89e['push'](_0x57a89e['shift']());}catch(_0x2ded75){_0x57a89e['push'](_0x57a89e['shift']());}}}(a10_0x343e,0xa8c1b));function a10_0x50f8(_0x1c463c,_0xb0c4cb){_0x1c463c=_0x1c463c-0x12c;const _0x343eea=a10_0x343e();let _0x50f8ad=_0x343eea[_0x1c463c];return _0x50f8ad;}import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x45f6c7=a10_0x50f8;super(_0x45f6c7(0x13f)),this[_0x45f6c7(0x131)]=_0x45f6c7(0x13b);}}function createSafeRl(){const _0x39c415=a10_0x50f8,_0x4d323a=createInterface({'input':process[_0x39c415(0x12f)],'output':process[_0x39c415(0x12d)]});let _0x191215;const _0x359768=new Promise((_0xcebd84,_0x270007)=>{const _0x48eba8=_0x39c415;_0x191215=()=>{_0x191215&&(_0x4d323a['removeListener']('SIGINT',_0x191215),_0x191215=undefined);try{_0x4d323a['close']();}catch{}_0x270007(new AbortPrompt());},_0x4d323a[_0x48eba8(0x137)]('SIGINT',_0x191215);}),_0x1a23f3=()=>{const _0xac4bac=_0x39c415;_0x191215&&(_0x4d323a['removeListener'](_0xac4bac(0x130),_0x191215),_0x191215=undefined);try{_0x4d323a['close']();}catch{}};return{'rl':_0x4d323a,'abortPromise':_0x359768,'disposeSuccess':_0x1a23f3};}export async function promptAccessKey(_0x1c5c5e=''){const {rl:_0x529301,abortPromise:_0x2443b9,disposeSuccess:_0x244b57}=createSafeRl(),_0x5beb82=new Promise(_0x4ebda5=>{const _0x42f34f=a10_0x50f8,_0x3de0d1=_0x1c5c5e?_0x42f34f(0x13e)+_0x1c5c5e+'):\x20':'AccessKey\x20(paste\x20ak_...):\x20';_0x529301['question'](_0x3de0d1,_0x2432c2=>{const _0x4d2685=_0x42f34f;_0x244b57(),_0x4ebda5(_0x2432c2[_0x4d2685(0x12e)]()||_0x1c5c5e);});});return Promise['race']([_0x5beb82,_0x2443b9]);}export function isAbortPrompt(_0x327625){const _0x3d6380=a10_0x50f8;return _0x327625 instanceof Error&&_0x327625[_0x3d6380(0x131)]===_0x3d6380(0x13b);}
@@ -1 +1 @@
1
- const a11_0x2e1309=a11_0x5a36;(function(_0x5b5722,_0x34811d){const _0x2396b3=a11_0x5a36,_0x2a60b1=_0x5b5722();while(!![]){try{const _0x42c766=-parseInt(_0x2396b3(0x1b6))/0x1+parseInt(_0x2396b3(0x1b3))/0x2+parseInt(_0x2396b3(0x1b7))/0x3*(-parseInt(_0x2396b3(0x1ac))/0x4)+-parseInt(_0x2396b3(0x1b2))/0x5+parseInt(_0x2396b3(0x1ad))/0x6*(parseInt(_0x2396b3(0x1a7))/0x7)+-parseInt(_0x2396b3(0x1b8))/0x8*(parseInt(_0x2396b3(0x1af))/0x9)+parseInt(_0x2396b3(0x1ab))/0xa;if(_0x42c766===_0x34811d)break;else _0x2a60b1['push'](_0x2a60b1['shift']());}catch(_0x33190c){_0x2a60b1['push'](_0x2a60b1['shift']());}}}(a11_0x3441,0xd09e8));function a11_0x3441(){const _0x4a6faf=['description','308ZYJoQj','createdTime','appCode','verbose','16245570DnbmXw','20PBFlOE','56190OoHacF','read','1309293idFZhn','functionName','Script\x20ID','297035vAkKXH','1945060lhkQrc','bff','scriptType','1510452shPuru','176298YnukhQ','16qJCCVX','bool'];a11_0x3441=function(){return _0x4a6faf;};return a11_0x3441();}import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';function a11_0x5a36(_0x5873b3,_0x2f1f29){_0x5873b3=_0x5873b3-0x1a5;const _0x344188=a11_0x3441();let _0x5a36d7=_0x344188[_0x5873b3];return _0x5a36d7;}export const bffDetail={'service':a11_0x2e1309(0x1b4),'command':'detail','description':'Get\x20BFF\x20script\x20details\x20by\x20ID','risk':a11_0x2e1309(0x1ae),'flags':[{...ID_FLAG,'description':a11_0x2e1309(0x1b1)},VERBOSE_FLAG],async 'execute'(_0x427f05){const _0xbe0121=a11_0x2e1309,_0x38120d=await getBffScriptInfo(_0x427f05['num']('id')),_0x3aad01=_0x427f05[_0xbe0121(0x1a5)](_0xbe0121(0x1aa));if(_0x3aad01)return{'ok':!![],'data':_0x38120d};return{'ok':!![],'data':{'id':_0x38120d['id'],'appCode':_0x38120d[_0xbe0121(0x1a9)],'functionName':_0x38120d[_0xbe0121(0x1b0)]??'','scriptType':_0x38120d[_0xbe0121(0x1b5)],'description':_0x38120d[_0xbe0121(0x1a6)]||'(none)','createdTime':_0x38120d[_0xbe0121(0x1a8)]??'','updatedTime':_0x38120d['updatedTime']??''}};}};
1
+ const a11_0xb267a8=a11_0x1d41;(function(_0x3d0c47,_0x1a2697){const _0x249630=a11_0x1d41,_0x840009=_0x3d0c47();while(!![]){try{const _0x1e672b=parseInt(_0x249630(0x1e5))/0x1*(parseInt(_0x249630(0x1da))/0x2)+-parseInt(_0x249630(0x1df))/0x3*(parseInt(_0x249630(0x1d9))/0x4)+parseInt(_0x249630(0x1f1))/0x5+parseInt(_0x249630(0x1ea))/0x6*(parseInt(_0x249630(0x1ef))/0x7)+parseInt(_0x249630(0x1e1))/0x8+-parseInt(_0x249630(0x1e2))/0x9*(parseInt(_0x249630(0x1eb))/0xa)+-parseInt(_0x249630(0x1ed))/0xb;if(_0x1e672b===_0x1a2697)break;else _0x840009['push'](_0x840009['shift']());}catch(_0x3f9e6a){_0x840009['push'](_0x840009['shift']());}}}(a11_0x3322,0xc9691));function a11_0x1d41(_0x1d0e96,_0x45d799){_0x1d0e96=_0x1d0e96-0x1d9;const _0x332297=a11_0x3322();let _0x1d4188=_0x332297[_0x1d0e96];return _0x1d4188;}import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a11_0xb267a8(0x1f2),'command':a11_0xb267a8(0x1e0),'description':a11_0xb267a8(0x1ee),'risk':a11_0xb267a8(0x1e3),'flags':[{...ID_FLAG,'description':a11_0xb267a8(0x1e6)},VERBOSE_FLAG],async 'execute'(_0x9dc171){const _0xe24f18=a11_0xb267a8,_0x3ae6b2=await getBffScriptInfo(_0x9dc171[_0xe24f18(0x1f0)]('id')),_0x4bbcd0=_0x9dc171[_0xe24f18(0x1dc)](_0xe24f18(0x1db));if(_0x4bbcd0)return{'ok':!![],'data':_0x3ae6b2};return{'ok':!![],'data':{'id':_0x3ae6b2['id'],'appCode':_0x3ae6b2[_0xe24f18(0x1e7)],'functionName':_0x3ae6b2[_0xe24f18(0x1e8)]??'','scriptType':_0x3ae6b2[_0xe24f18(0x1e4)],'description':_0x3ae6b2[_0xe24f18(0x1ec)]||_0xe24f18(0x1e9),'createdTime':_0x3ae6b2[_0xe24f18(0x1dd)]??'','updatedTime':_0x3ae6b2[_0xe24f18(0x1de)]??''}};}};function a11_0x3322(){const _0x24a066=['126cClujk','read','scriptType','976247eRdksm','Script\x20ID','appCode','functionName','(none)','6uWwBXv','788150hcpNGZ','description','9728466WfXVRo','Get\x20BFF\x20script\x20details\x20by\x20ID','6684566vrQOOG','num','6136730VpSQOQ','bff','1596htyvPA','2rFODye','verbose','bool','createdTime','updatedTime','10722SjDAFq','detail','8642304LqBxNQ'];a11_0x3322=function(){return _0x24a066;};return a11_0x3322();}
@@ -1 +1 @@
1
- function a12_0xd8ae(_0x702aaa,_0x1cff13){_0x702aaa=_0x702aaa-0x10a;const _0x103a5a=a12_0x103a();let _0xd8ae38=_0x103a5a[_0x702aaa];return _0xd8ae38;}const a12_0x9443af=a12_0xd8ae;(function(_0x97573c,_0x2947cb){const _0x15d1ec=a12_0xd8ae,_0x965b58=_0x97573c();while(!![]){try{const _0x356c9b=parseInt(_0x15d1ec(0x10b))/0x1*(parseInt(_0x15d1ec(0x10e))/0x2)+-parseInt(_0x15d1ec(0x111))/0x3*(parseInt(_0x15d1ec(0x119))/0x4)+parseInt(_0x15d1ec(0x11a))/0x5+parseInt(_0x15d1ec(0x11b))/0x6*(parseInt(_0x15d1ec(0x113))/0x7)+parseInt(_0x15d1ec(0x10c))/0x8+parseInt(_0x15d1ec(0x116))/0x9+-parseInt(_0x15d1ec(0x10d))/0xa;if(_0x356c9b===_0x2947cb)break;else _0x965b58['push'](_0x965b58['shift']());}catch(_0xb0c817){_0x965b58['push'](_0x965b58['shift']());}}}(a12_0x103a,0x60aeb));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_0x9443af(0x112),'description':a12_0x9443af(0x10a),'risk':a12_0x9443af(0x118),'flags':[{...NAME_FLAG,'required':!![],'description':a12_0x9443af(0x117)},PARAMS_FLAG],async 'execute'(_0x1507c6){const _0x4748c1=a12_0x9443af,_0x1e5a7e=parseJsonParams(_0x1507c6[_0x4748c1(0x114)](_0x4748c1(0x110))),_0x356a82=Date[_0x4748c1(0x10f)](),_0x4bd0e3=await executeSdkBff(_0x1507c6[_0x4748c1(0x114)](_0x4748c1(0x115)),_0x1e5a7e),_0xdfc416=Date['now']()-_0x356a82;return{'ok':!![],'data':{'result':_0x4bd0e3,'elapsed':_0xdfc416},'message':'BFF\x20executed\x20in\x20'+_0xdfc416+'ms'};}};function a12_0x103a(){const _0x4bb7f3=['1022wKDwpc','now','params','3UyIUVo','exec','7mzpjWa','str','name','2711187VLvpxo','BFF\x20function\x20name\x20to\x20execute','read','624620qazgSt','3659870lyZkBe','542604CEzVDk','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','303IAyBgV','1046024RZRRGc','8570710lEqbCJ'];a12_0x103a=function(){return _0x4bb7f3;};return a12_0x103a();}
1
+ const a12_0xd742ab=a12_0x4216;function a12_0x4216(_0x6cacf5,_0x2b0187){_0x6cacf5=_0x6cacf5-0x1ab;const _0x14ac34=a12_0x14ac();let _0x4216b4=_0x14ac34[_0x6cacf5];return _0x4216b4;}(function(_0x5507df,_0x5c4200){const _0x5bdd84=a12_0x4216,_0x5b2927=_0x5507df();while(!![]){try{const _0x4cc834=-parseInt(_0x5bdd84(0x1b4))/0x1*(parseInt(_0x5bdd84(0x1b7))/0x2)+-parseInt(_0x5bdd84(0x1ba))/0x3+-parseInt(_0x5bdd84(0x1af))/0x4+parseInt(_0x5bdd84(0x1b2))/0x5+-parseInt(_0x5bdd84(0x1ac))/0x6+-parseInt(_0x5bdd84(0x1bb))/0x7+-parseInt(_0x5bdd84(0x1b0))/0x8*(-parseInt(_0x5bdd84(0x1ae))/0x9);if(_0x4cc834===_0x5c4200)break;else _0x5b2927['push'](_0x5b2927['shift']());}catch(_0x1a633c){_0x5b2927['push'](_0x5b2927['shift']());}}}(a12_0x14ac,0x2d707));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';function a12_0x14ac(){const _0x5b8e1f=['exec','read','647160RECYHo','435897nKnuGe','bff','313530XwlwHX','str','90aLFzpA','676224AHaSjK','507544vTvrjZ','now','857160yaYeno','name','6339lwJsEI','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','BFF\x20executed\x20in\x20','38nhmaUW'];a12_0x14ac=function(){return _0x5b8e1f;};return a12_0x14ac();}import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a12_0xd742ab(0x1ab),'command':a12_0xd742ab(0x1b8),'description':a12_0xd742ab(0x1b5),'risk':a12_0xd742ab(0x1b9),'flags':[{...NAME_FLAG,'required':!![],'description':'BFF\x20function\x20name\x20to\x20execute'},PARAMS_FLAG],async 'execute'(_0x5c9438){const _0x29daf9=a12_0xd742ab,_0x4fe277=parseJsonParams(_0x5c9438[_0x29daf9(0x1ad)]('params')),_0x315d16=Date[_0x29daf9(0x1b1)](),_0x389b52=await executeSdkBff(_0x5c9438[_0x29daf9(0x1ad)](_0x29daf9(0x1b3)),_0x4fe277),_0x5fc196=Date[_0x29daf9(0x1b1)]()-_0x315d16;return{'ok':!![],'data':{'result':_0x389b52,'elapsed':_0x5fc196},'message':_0x29daf9(0x1b6)+_0x5fc196+'ms'};}};
@@ -1 +1 @@
1
- (function(_0x3d3f6e,_0x3b0b3b){const _0x20a41d=a13_0x1d47,_0x5eeffa=_0x3d3f6e();while(!![]){try{const _0x152b98=parseInt(_0x20a41d(0xe5))/0x1*(-parseInt(_0x20a41d(0xea))/0x2)+-parseInt(_0x20a41d(0xe6))/0x3*(-parseInt(_0x20a41d(0xed))/0x4)+-parseInt(_0x20a41d(0xeb))/0x5+-parseInt(_0x20a41d(0xe8))/0x6+parseInt(_0x20a41d(0xf0))/0x7*(parseInt(_0x20a41d(0xee))/0x8)+-parseInt(_0x20a41d(0xe7))/0x9*(-parseInt(_0x20a41d(0xec))/0xa)+parseInt(_0x20a41d(0xef))/0xb*(parseInt(_0x20a41d(0xe9))/0xc);if(_0x152b98===_0x3b0b3b)break;else _0x5eeffa['push'](_0x5eeffa['shift']());}catch(_0x45c9ca){_0x5eeffa['push'](_0x5eeffa['shift']());}}}(a13_0x11f3,0x3e1f9));function a13_0x1d47(_0x56017d,_0x3f1436){_0x56017d=_0x56017d-0xe5;const _0x11f362=a13_0x11f3();let _0x1d4798=_0x11f362[_0x56017d];return _0x1d4798;}function a13_0x11f3(){const _0x4d81bd=['872eZiLsd','459206DkoJre','28742vICkGJ','4919wiecvn','149631mFlESJ','72FajFut','2031300LdvdNX','12ForthZ','10eYQNIP','1424525bqUeAJ','329470pBVICT','12LfWyQc'];a13_0x11f3=function(){return _0x4d81bd;};return a13_0x11f3();}import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
1
+ function a13_0x313d(_0x37a5de,_0x4d1f30){_0x37a5de=_0x37a5de-0x1da;const _0x29d6bd=a13_0x29d6();let _0x313dfd=_0x29d6bd[_0x37a5de];return _0x313dfd;}(function(_0x332774,_0xa523d8){const _0x44579e=a13_0x313d,_0x33a8de=_0x332774();while(!![]){try{const _0x2e2a9f=-parseInt(_0x44579e(0x1db))/0x1*(parseInt(_0x44579e(0x1de))/0x2)+parseInt(_0x44579e(0x1e0))/0x3*(parseInt(_0x44579e(0x1df))/0x4)+-parseInt(_0x44579e(0x1dd))/0x5+-parseInt(_0x44579e(0x1e2))/0x6*(-parseInt(_0x44579e(0x1dc))/0x7)+parseInt(_0x44579e(0x1e1))/0x8*(-parseInt(_0x44579e(0x1da))/0x9)+-parseInt(_0x44579e(0x1e4))/0xa*(parseInt(_0x44579e(0x1e3))/0xb)+parseInt(_0x44579e(0x1e5))/0xc;if(_0x2e2a9f===_0xa523d8)break;else _0x33a8de['push'](_0x33a8de['shift']());}catch(_0x161080){_0x33a8de['push'](_0x33a8de['shift']());}}}(a13_0x29d6,0x6909a));function a13_0x29d6(){const _0x4124ef=['378KfANfQ','3351085NYVNEx','14UlJJTI','140164REpduq','15YvuYWM','1848DVFuhW','85110kWEwbE','11FusCVe','6701610lHPcdc','15959844IlPUEC','11979hZrksY','27587gvnXVh'];a13_0x29d6=function(){return _0x4124ef;};return a13_0x29d6();}import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
@@ -1 +1 @@
1
- const a14_0x1a4c27=a14_0x2222;(function(_0x2cb871,_0x1fcfe5){const _0x2ed315=a14_0x2222,_0x12fa3a=_0x2cb871();while(!![]){try{const _0x4c1e6e=-parseInt(_0x2ed315(0x176))/0x1+parseInt(_0x2ed315(0x163))/0x2+-parseInt(_0x2ed315(0x165))/0x3+parseInt(_0x2ed315(0x15e))/0x4*(-parseInt(_0x2ed315(0x172))/0x5)+parseInt(_0x2ed315(0x178))/0x6+parseInt(_0x2ed315(0x171))/0x7+parseInt(_0x2ed315(0x161))/0x8;if(_0x4c1e6e===_0x1fcfe5)break;else _0x12fa3a['push'](_0x12fa3a['shift']());}catch(_0xb560a6){_0x12fa3a['push'](_0x12fa3a['shift']());}}}(a14_0x21e8,0x54d13));function a14_0x2222(_0x5e4d7e,_0x16dad2){_0x5e4d7e=_0x5e4d7e-0x15c;const _0x21e809=a14_0x21e8();let _0x222211=_0x21e809[_0x5e4d7e];return _0x222211;}import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a14_0x1a4c27(0x16b),'command':a14_0x1a4c27(0x16d),'description':'Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x129e2f){const _0x3e4931=a14_0x1a4c27;logger['setLogPath'](process[_0x3e4931(0x166)]()),logger[_0x3e4931(0x162)](_0x3e4931(0x15d),_0x3e4931(0x16a));const {LOVRABET_SKILL_SOURCE:_0x220392,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x468b63,runNpxSkillsAddGlobal:_0x33dac4}=await import(_0x3e4931(0x164)),_0x150234=_0x129e2f[_0x3e4931(0x16c)]?'pipe':_0x3e4931(0x173);console[_0x3e4931(0x16e)](_0x3e4931(0x167)+_0x220392+'\x20-g\x20-y)...');const _0x153313=_0x33dac4(process[_0x3e4931(0x166)](),_0x220392,{'stdio':_0x150234});if(_0x153313[_0x3e4931(0x16f)])console[_0x3e4931(0x16e)](_0x3e4931(0x168)+_0x468b63+_0x3e4931(0x170));else{if(_0x153313['ok'])console[_0x3e4931(0x16e)](_0x3e4931(0x15f));else throw CliErrors[_0x3e4931(0x174)](_0x3e4931(0x15c)+(_0x153313[_0x3e4931(0x175)]||_0x3e4931(0x177)),_0x3e4931(0x160)+_0x220392+_0x3e4931(0x169));}return{'ok':!![]};}}];function a14_0x21e8(){const _0x17916b=['unknown','3149874dLEkcW','npx\x20skills\x20add\x20failed:\x20','cli-skill-install','376eSbdSh','CLI\x20Built-in\x20Skill\x20installed','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','8137008qeDNjx','info','757532plednw','../../skills/npx-skills-add.js','2028372LGVLyg','cwd','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','Skipped\x20npx\x20(','\x20-g\x20-y','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','cli-skill','nonInteractive','install','log','skipped','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','2503088ozFeMN','32205oCLWzZ','inherit','apiError','error','649466ljZvfK'];a14_0x21e8=function(){return _0x17916b;};return a14_0x21e8();}
1
+ function a14_0x4119(){const _0x468a9a=['Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','../../skills/npx-skills-add.js','4614177zMnupP','error','1971672gWykAQ','\x20-g\x20-y','189InNBfk','setLogPath','36lPWIXL','info','log','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','write','\x20-g\x20-y)...','npx\x20skills\x20add\x20failed:\x20','11652wWueOr','2910728pxXubz','apiError','cli-skill','inherit','skipped','nonInteractive','CLI\x20Built-in\x20Skill\x20installed','4394320BIcyrB','pipe','cli-skill-install','Skipped\x20npx\x20(','10342640qmoGaW','install','unknown','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','2217840TwhgEY'];a14_0x4119=function(){return _0x468a9a;};return a14_0x4119();}const a14_0x342824=a14_0x36d6;function a14_0x36d6(_0x38f6ed,_0x30696b){_0x38f6ed=_0x38f6ed-0x1a8;const _0x4119d4=a14_0x4119();let _0x36d64c=_0x4119d4[_0x38f6ed];return _0x36d64c;}(function(_0x4ba0e5,_0x4cc449){const _0x190971=a14_0x36d6,_0x5d12be=_0x4ba0e5();while(!![]){try{const _0x5c4647=-parseInt(_0x190971(0x1b9))/0x1*(-parseInt(_0x190971(0x1c2))/0x2)+parseInt(_0x190971(0x1b5))/0x3+parseInt(_0x190971(0x1b2))/0x4+parseInt(_0x190971(0x1a9))/0x5+-parseInt(_0x190971(0x1b7))/0x6+-parseInt(_0x190971(0x1ad))/0x7+-parseInt(_0x190971(0x1c3))/0x8*(parseInt(_0x190971(0x1bb))/0x9);if(_0x5c4647===_0x4cc449)break;else _0x5d12be['push'](_0x5d12be['shift']());}catch(_0x3c2247){_0x5d12be['push'](_0x5d12be['shift']());}}}(a14_0x4119,0xc5ff9));import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a14_0x342824(0x1c5),'command':a14_0x342824(0x1ae),'description':'Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','risk':a14_0x342824(0x1bf),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x14d92c){const _0x43c889=a14_0x342824;logger[_0x43c889(0x1ba)](process['cwd']()),logger[_0x43c889(0x1bc)](_0x43c889(0x1ab),_0x43c889(0x1b0));const {LOVRABET_SKILL_SOURCE:_0x3b2c70,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x3ad989,runNpxSkillsAddGlobal:_0x1ad9ed}=await import(_0x43c889(0x1b4)),_0x303de8=_0x14d92c[_0x43c889(0x1c8)]?_0x43c889(0x1aa):_0x43c889(0x1c6);console[_0x43c889(0x1bd)](_0x43c889(0x1be)+_0x3b2c70+_0x43c889(0x1c0));const _0x5911e3=_0x1ad9ed(process['cwd'](),_0x3b2c70,{'stdio':_0x303de8});if(_0x5911e3[_0x43c889(0x1c7)])console[_0x43c889(0x1bd)](_0x43c889(0x1ac)+_0x3ad989+_0x43c889(0x1b1));else{if(_0x5911e3['ok'])console[_0x43c889(0x1bd)](_0x43c889(0x1a8));else throw CliErrors[_0x43c889(0x1c4)](_0x43c889(0x1c1)+(_0x5911e3[_0x43c889(0x1b6)]||_0x43c889(0x1af)),_0x43c889(0x1b3)+_0x3b2c70+_0x43c889(0x1b8));}return{'ok':!![]};}}];