@lovrabet/lovrabet-cli 2.1.6-beta.5 → 2.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/artifact/index.js +1 -1
  10. package/lib/commands/auth/index.js +1 -1
  11. package/lib/commands/auth/prompt.js +1 -1
  12. package/lib/commands/bff/detail.js +1 -1
  13. package/lib/commands/bff/exec.js +1 -1
  14. package/lib/commands/bff/index.js +1 -1
  15. package/lib/commands/cli-skill/index.js +1 -1
  16. package/lib/commands/common/config-policy.js +1 -1
  17. package/lib/commands/common/constraints.js +1 -1
  18. package/lib/commands/common/flags.js +1 -1
  19. package/lib/commands/config/definitions.js +1 -1
  20. package/lib/commands/config/shared.js +1 -1
  21. package/lib/commands/data/index.js +1 -1
  22. package/lib/commands/dataset/detail.js +1 -1
  23. package/lib/commands/dataset/index.js +1 -1
  24. package/lib/commands/dataset/list.js +1 -1
  25. package/lib/commands/dataset/sdk-doc.js +1 -1
  26. package/lib/commands/doctor.js +1 -1
  27. package/lib/commands/init.js +1 -1
  28. package/lib/commands/kb/index.js +1 -1
  29. package/lib/commands/logs/index.js +1 -1
  30. package/lib/commands/personal-bff/index.js +1 -1
  31. package/lib/commands/registry.js +1 -1
  32. package/lib/commands/schema.js +1 -1
  33. package/lib/commands/service/dynamic.js +1 -1
  34. package/lib/commands/service/index.js +1 -1
  35. package/lib/commands/service/registry.js +1 -1
  36. package/lib/commands/skill/commands/create.js +1 -1
  37. package/lib/commands/skill/commands/install.js +1 -1
  38. package/lib/commands/skill/commands/list.js +1 -1
  39. package/lib/commands/skill/commands/push.js +1 -1
  40. package/lib/commands/skill/commands/validate.js +1 -1
  41. package/lib/commands/skill/flags.js +1 -1
  42. package/lib/commands/skill/index.js +1 -1
  43. package/lib/commands/skill/manifest-helpers.js +1 -1
  44. package/lib/commands/skill/scopes.js +1 -1
  45. package/lib/commands/skill/summary.js +1 -1
  46. package/lib/commands/skill/templates.js +1 -1
  47. package/lib/commands/skill/validate.js +1 -1
  48. package/lib/commands/sql/detail.js +1 -1
  49. package/lib/commands/sql/exec.js +1 -1
  50. package/lib/commands/sql/index.js +1 -1
  51. package/lib/commands/update.js +1 -1
  52. package/lib/commands/workspace/index.js +1 -1
  53. package/lib/config/schema.js +1 -1
  54. package/lib/constant/app.js +1 -1
  55. package/lib/constant/auth-mode.js +1 -1
  56. package/lib/constant/cli.js +1 -1
  57. package/lib/constant/defaults.js +1 -1
  58. package/lib/constant/distribution.js +1 -1
  59. package/lib/constant/domain.js +1 -1
  60. package/lib/constant/env.js +1 -1
  61. package/lib/constant/output.js +1 -1
  62. package/lib/constant/product.js +1 -1
  63. package/lib/constant/risk.js +1 -1
  64. package/lib/constant/url.js +1 -1
  65. package/lib/context.js +1 -1
  66. package/lib/core/api-client.js +1 -1
  67. package/lib/core/db-resolver.js +1 -1
  68. package/lib/core/sdk-client.js +1 -1
  69. package/lib/errors.js +1 -1
  70. package/lib/framework/build-all-flags.js +1 -1
  71. package/lib/framework/dryrun.js +1 -1
  72. package/lib/framework/flags.js +1 -1
  73. package/lib/framework/help.js +1 -1
  74. package/lib/framework/index.js +1 -1
  75. package/lib/framework/output.js +1 -1
  76. package/lib/framework/preparse.js +1 -1
  77. package/lib/framework/response.js +1 -1
  78. package/lib/framework/runner-confirmation.js +1 -1
  79. package/lib/framework/runner-error.js +1 -1
  80. package/lib/framework/runner.js +1 -1
  81. package/lib/framework/schema-export.js +1 -1
  82. package/lib/framework/types.js +1 -1
  83. package/lib/generated/build-info.js +1 -1
  84. package/lib/help.js +1 -1
  85. package/lib/skills/npx-skills-add.js +1 -1
  86. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  87. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  88. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  89. package/lib/skills/runtime-skill-sync/links.js +1 -1
  90. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  91. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  92. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  93. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  94. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  95. package/lib/skills/runtime-skill-sync/push.js +1 -1
  96. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  97. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  98. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  99. package/lib/skills/runtime-skill-sync.js +1 -1
  100. package/lib/utils/apply-jq-filter.js +1 -1
  101. package/lib/utils/logger.js +1 -1
  102. package/lib/utils/params.js +1 -1
  103. package/lib/utils/platform.js +1 -1
  104. package/lib/utils/update-notice.js +1 -1
  105. package/lib/utils/version.js +1 -1
  106. package/lib/utils/write-cli-side-channel.js +1 -1
  107. package/package.json +1 -1
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- function a0_0x1593(){const _0x1a26f8=['flags','code','ERR_STREAM_DESTROYED','\x0aCancelled.\x0a','input','107927CSfOyB','log','stderr','2RvLbPd','error','Unexpected\x20error:','assign','name',':\x20--','flatMap','args','8cXDOwN','4095849mQFPyq','3565884wQjKan','\x20->\x20--','10522631VmQkHG','11966650pExmod','unknownCommand','handler','help','write','Error:\x20','[preparse]\x20','cancelled','ExitPromptError','catch','./framework/preparse.js','30EctFpa','corrected','683352hbTORi','definition','message','ERR_USE_AFTER_CLOSE','44lLOeiC','length','hint','exit','slice','289885PHzewa'];a0_0x1593=function(){return _0x1a26f8;};return a0_0x1593();}const a0_0xb74e1c=a0_0x1709;(function(_0x28b385,_0x4ace94){const _0x9f5165=a0_0x1709,_0x3dcb77=_0x28b385();while(!![]){try{const _0x1bce98=parseInt(_0x9f5165(0x90))/0x1+parseInt(_0x9f5165(0x93))/0x2*(-parseInt(_0x9f5165(0x9c))/0x3)+-parseInt(_0x9f5165(0x9d))/0x4+-parseInt(_0x9f5165(0x8a))/0x5*(parseInt(_0x9f5165(0x7f))/0x6)+-parseInt(_0x9f5165(0x9f))/0x7*(parseInt(_0x9f5165(0x9b))/0x8)+parseInt(_0x9f5165(0x81))/0x9+-parseInt(_0x9f5165(0xa0))/0xa*(-parseInt(_0x9f5165(0x85))/0xb);if(_0x1bce98===_0x4ace94)break;else _0x3dcb77['push'](_0x3dcb77['shift']());}catch(_0x14a2b5){_0x3dcb77['push'](_0x3dcb77['shift']());}}}(a0_0x1593,0xe0c43));import{jsx as a0_0x3a03c2}from'react/jsx-runtime';function a0_0x1709(_0x330b07,_0x58799d){_0x330b07=_0x330b07-0x7c;const _0x1593d0=a0_0x1593();let _0x1709f7=_0x1593d0[_0x330b07];return _0x1709f7;}import a0_0x33605a 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_0x33605a(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'version':getCliVersionDisplay()});void main()[a0_0xb74e1c(0x7d)](handleError);async function main(){try{await run();}catch(_0x4d700d){handleError(_0x4d700d);}}async function run(){const _0x3d4845=a0_0xb74e1c;let _0x337396=cli[_0x3d4845(0x8f)][0x0],_0x9cccb3=cli[_0x3d4845(0x8f)][0x1];const _0x25baa7=cli[_0x3d4845(0x8b)];try{const {correctFlags:_0x23529c}=await import(_0x3d4845(0x7e)),_0x55c683=getAllDefinitions()[_0x3d4845(0x99)](_0x2d1ffa=>_0x2d1ffa[_0x3d4845(0x8b)]??[]),{flags:_0x14418d,corrections:_0xfdad91}=_0x23529c(_0x25baa7,_0x55c683);if(_0xfdad91[_0x3d4845(0x86)]>0x0){for(const _0x5cf80d of _0xfdad91){process[_0x3d4845(0x92)][_0x3d4845(0xa4)](_0x3d4845(0xa6)+_0x5cf80d[_0x3d4845(0xa2)]+_0x3d4845(0x98)+_0x5cf80d['original']+_0x3d4845(0x9e)+_0x5cf80d[_0x3d4845(0x80)]+'\x0a');}Object[_0x3d4845(0x96)](_0x25baa7,_0x14418d);}}catch{}if(!_0x337396){const {waitUntilExit:_0x26b709}=render(a0_0x3a03c2(Help,{}));await _0x26b709();return;}if(!isKnownService(_0x337396)){const _0x1a0f91=resolveDynamicServiceCommand(cli['input'],_0x25baa7);if(_0x1a0f91){if(_0x25baa7[_0x3d4845(0xa3)]){console[_0x3d4845(0x91)](generateCommandHelp(_0x1a0f91[_0x3d4845(0x82)]));return;}Object[_0x3d4845(0x96)](_0x25baa7,_0x1a0f91[_0x3d4845(0x8b)]);const _0x1b4661=buildConfigFromFlags(_0x25baa7);await initGlobalEnvironment(_0x1b4661);const _0x3d7136=createPipelineEnv(_0x1b4661,_0x25baa7);_0x3d7136[_0x3d4845(0x9a)]=_0x1a0f91['args'],await runCommand(_0x1a0f91[_0x3d4845(0x82)],_0x3d7136);return;}if(_0x25baa7[_0x3d4845(0xa3)]){const _0x1ab4e3=generateDynamicServiceHelp(_0x337396);if(_0x1ab4e3){console[_0x3d4845(0x91)](_0x1ab4e3);return;}}const {waitUntilExit:_0x4c9995}=render(a0_0x3a03c2(Help,{}));await _0x4c9995();return;}const _0x948fa6=getServiceEntry(_0x337396);if(!_0x9cccb3){if(_0x25baa7[_0x3d4845(0xa3)]){console[_0x3d4845(0x91)](generateServiceHelp(_0x337396));return;}if(_0x948fa6['defaultCommand'])_0x9cccb3=_0x948fa6['defaultCommand'];else{console[_0x3d4845(0x91)](generateServiceHelp(_0x337396));return;}}const _0x4a8a13=findDefinition(_0x337396,_0x9cccb3);!_0x4a8a13&&(console['log'](generateServiceHelp(_0x337396)),handleError(CliErrors[_0x3d4845(0xa1)](_0x337396+'\x20'+_0x9cccb3)));if(_0x25baa7['help']){console[_0x3d4845(0x91)](generateCommandHelp(_0x4a8a13));return;}const _0x3c35f3=buildConfigFromFlags(_0x25baa7);await initGlobalEnvironment(_0x3c35f3);const _0x521e48=createPipelineEnv(_0x3c35f3,_0x25baa7);_0x521e48[_0x3d4845(0x9a)]=cli[_0x3d4845(0x8f)][_0x3d4845(0x89)](0x2),await runCommand(_0x4a8a13,_0x521e48);}function handleError(_0x18d556){const _0x13bebd=a0_0xb74e1c;if(_0x18d556 instanceof CliError){_0x18d556[_0x13bebd(0x8c)]===_0x13bebd(0xa7)&&(process[_0x13bebd(0x92)][_0x13bebd(0xa4)](_0x13bebd(0x8e)),process[_0x13bebd(0x88)](0x0));console[_0x13bebd(0x94)](_0x13bebd(0xa5)+_0x18d556[_0x13bebd(0x83)]);if(_0x18d556['hint'])console[_0x13bebd(0x94)]('Hint:\x20'+_0x18d556[_0x13bebd(0x87)]);process['exit'](_0x18d556['exitCode']);}isUserCancellation(_0x18d556)&&(process[_0x13bebd(0x92)][_0x13bebd(0xa4)](_0x13bebd(0x8e)),process['exit'](0x0)),console[_0x13bebd(0x94)](_0x13bebd(0x95),_0x18d556),process[_0x13bebd(0x88)](0x1);}function isUserCancellation(_0x4a17a9){const _0x4f021f=a0_0xb74e1c;if(!(_0x4a17a9 instanceof Error))return![];if(_0x4a17a9[_0x4f021f(0x97)]===_0x4f021f(0x7c))return!![];if(_0x4a17a9[_0x4f021f(0x8c)]===_0x4f021f(0x84))return!![];if(_0x4a17a9[_0x4f021f(0x8c)]===_0x4f021f(0x8d))return!![];return![];}
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![];}
@@ -1 +1 @@
1
- const a1_0xec6cdf=a1_0xfaa4;function a1_0xfaa4(_0x479b70,_0x2e27e0){_0x479b70=_0x479b70-0xb9;const _0x5a22dc=a1_0x5a22();let _0xfaa4da=_0x5a22dc[_0x479b70];return _0xfaa4da;}(function(_0x239f47,_0x42afa7){const _0x226d9e=a1_0xfaa4,_0x9f3954=_0x239f47();while(!![]){try{const _0x1f2413=parseInt(_0x226d9e(0x131))/0x1+-parseInt(_0x226d9e(0xf2))/0x2+parseInt(_0x226d9e(0xe5))/0x3+parseInt(_0x226d9e(0xbe))/0x4*(-parseInt(_0x226d9e(0xc1))/0x5)+parseInt(_0x226d9e(0x11e))/0x6*(parseInt(_0x226d9e(0xd4))/0x7)+-parseInt(_0x226d9e(0x12a))/0x8+parseInt(_0x226d9e(0xc8))/0x9;if(_0x1f2413===_0x42afa7)break;else _0x9f3954['push'](_0x9f3954['shift']());}catch(_0x40b0d9){_0x9f3954['push'](_0x9f3954['shift']());}}}(a1_0x5a22,0xf1f5d));import{CliErrors}from'../../errors.js';const CATEGORY_FLAG={'name':a1_0xec6cdf(0x11a),'type':a1_0xec6cdf(0xe4),'description':a1_0xec6cdf(0xec)},KEYWORD_FLAG={'name':a1_0xec6cdf(0x112),'type':a1_0xec6cdf(0xe4),'description':'Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text'},DOC_CODE_FLAG={'name':a1_0xec6cdf(0x108),'type':a1_0xec6cdf(0xe4),'required':!![],'description':a1_0xec6cdf(0xde)},DOCS=[{'code':a1_0xec6cdf(0xdf),'category':a1_0xec6cdf(0xba),'title':a1_0xec6cdf(0x10d),'method':a1_0xec6cdf(0x134),'path':a1_0xec6cdf(0x109),'summary':a1_0xec6cdf(0x123),'whenToUse':a1_0xec6cdf(0x12b),'pathParams':[],'queryParams':[],'bodySchema':'{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','responseHighlights':['tableData\x20contains\x20dataset\x20id/code/name',a1_0xec6cdf(0xf1)],'examples':[a1_0xec6cdf(0x110)],'notes':['CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.'],'markdown':[a1_0xec6cdf(0xfc),'',a1_0xec6cdf(0x128)][a1_0xec6cdf(0x100)]('\x0a')},{'code':a1_0xec6cdf(0x10b),'category':a1_0xec6cdf(0xba),'title':a1_0xec6cdf(0x114),'method':a1_0xec6cdf(0x138),'path':a1_0xec6cdf(0x119),'summary':'获取数据集详情','whenToUse':a1_0xec6cdf(0x12f),'pathParams':[],'queryParams':[{'name':'code','description':a1_0xec6cdf(0x129)}],'bodySchema':a1_0xec6cdf(0xf0),'responseHighlights':[a1_0xec6cdf(0xcf),a1_0xec6cdf(0xd8),a1_0xec6cdf(0xe6)],'examples':['lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>'],'notes':[a1_0xec6cdf(0x111)],'markdown':['##\x20Dataset\x20detail','',a1_0xec6cdf(0xcc)][a1_0xec6cdf(0x100)]('\x0a')},{'code':a1_0xec6cdf(0xea),'category':'dataset','title':a1_0xec6cdf(0xfa),'method':a1_0xec6cdf(0x134),'path':a1_0xec6cdf(0xf5),'summary':'条件过滤查询数据','whenToUse':a1_0xec6cdf(0xcb),'pathParams':[{'name':'appCode','description':a1_0xec6cdf(0xef)},{'name':'datasetCode','description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':a1_0xec6cdf(0xf7),'responseHighlights':['tableData\x20contains\x20records',a1_0xec6cdf(0xc7)],'examples':[a1_0xec6cdf(0x132)],'notes':[a1_0xec6cdf(0xe3)],'markdown':['##\x20Filter\x20dataset\x20data','',a1_0xec6cdf(0x101)]['join']('\x0a')},{'code':a1_0xec6cdf(0x126),'category':a1_0xec6cdf(0xba),'title':a1_0xec6cdf(0xed),'method':'POST','path':a1_0xec6cdf(0xeb),'summary':a1_0xec6cdf(0xff),'whenToUse':a1_0xec6cdf(0x11b),'pathParams':[{'name':a1_0xec6cdf(0x11f),'description':a1_0xec6cdf(0xef)},{'name':a1_0xec6cdf(0xf9),'description':a1_0xec6cdf(0x129)}],'queryParams':[],'bodySchema':a1_0xec6cdf(0x105),'responseHighlights':[a1_0xec6cdf(0xc4),a1_0xec6cdf(0xbc)],'examples':[a1_0xec6cdf(0xe1)],'notes':['Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.',a1_0xec6cdf(0xbb)],'markdown':[a1_0xec6cdf(0x135),'',a1_0xec6cdf(0x127)]['join']('\x0a')},{'code':a1_0xec6cdf(0x10c),'category':a1_0xec6cdf(0xba),'title':a1_0xec6cdf(0x10e),'method':a1_0xec6cdf(0x134),'path':a1_0xec6cdf(0xd2),'summary':a1_0xec6cdf(0xca),'whenToUse':'已经知道记录\x20id,需要按数据集读取单条业务数据时使用','pathParams':[{'name':a1_0xec6cdf(0x11f),'description':a1_0xec6cdf(0xef)},{'name':a1_0xec6cdf(0xf9),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':'{\x22id\x22:123}','responseHighlights':[a1_0xec6cdf(0xd1)],'examples':[a1_0xec6cdf(0xee)],'notes':[a1_0xec6cdf(0xf6)],'markdown':a1_0xec6cdf(0xdb)},{'code':a1_0xec6cdf(0xc6),'category':a1_0xec6cdf(0xba),'title':a1_0xec6cdf(0xe7),'method':a1_0xec6cdf(0x134),'path':a1_0xec6cdf(0xd0),'summary':a1_0xec6cdf(0x11c),'whenToUse':a1_0xec6cdf(0x12d),'pathParams':[{'name':'appCode','description':'Current\x20app\x20code'},{'name':a1_0xec6cdf(0xf9),'description':a1_0xec6cdf(0x129)}],'queryParams':[],'bodySchema':a1_0xec6cdf(0xb9),'responseHighlights':[a1_0xec6cdf(0xe8)],'examples':[a1_0xec6cdf(0x130)],'notes':[a1_0xec6cdf(0x10a)],'markdown':a1_0xec6cdf(0x116)},{'code':a1_0xec6cdf(0xfb),'category':'bf','title':a1_0xec6cdf(0xd7),'method':a1_0xec6cdf(0x138),'path':a1_0xec6cdf(0x125),'summary':a1_0xec6cdf(0x137),'whenToUse':a1_0xec6cdf(0xce),'pathParams':[{'name':'appCode','description':a1_0xec6cdf(0xef)}],'queryParams':[],'bodySchema':a1_0xec6cdf(0xf0),'responseHighlights':[a1_0xec6cdf(0xd9)],'examples':['lovrabet\x20bff\x20detail\x20--id\x20<scriptId>\x20--appcode\x20<appCode>'],'notes':[a1_0xec6cdf(0xfe)],'markdown':a1_0xec6cdf(0x103)},{'code':a1_0xec6cdf(0x122),'category':'bf','title':'Execute\x20BF\x20endpoint\x20function','method':a1_0xec6cdf(0x134),'path':a1_0xec6cdf(0xfd),'summary':a1_0xec6cdf(0x117),'whenToUse':a1_0xec6cdf(0xda),'pathParams':[{'name':'appCode','description':'Current\x20app\x20code'},{'name':a1_0xec6cdf(0xc2),'description':a1_0xec6cdf(0xdc)}],'queryParams':[],'bodySchema':a1_0xec6cdf(0xbf),'responseHighlights':['Returns\x20script\x20business\x20payload'],'examples':[a1_0xec6cdf(0x118)],'notes':[a1_0xec6cdf(0x136)],'markdown':a1_0xec6cdf(0xd3)},{'code':a1_0xec6cdf(0x10f),'category':a1_0xec6cdf(0xbd),'title':a1_0xec6cdf(0xc9),'method':'POST','path':a1_0xec6cdf(0x107),'summary':a1_0xec6cdf(0xc3),'whenToUse':a1_0xec6cdf(0xc5),'pathParams':[],'queryParams':[],'bodySchema':a1_0xec6cdf(0x113),'responseHighlights':[a1_0xec6cdf(0xe9)],'examples':[a1_0xec6cdf(0x12c)],'notes':[a1_0xec6cdf(0x12e)],'markdown':a1_0xec6cdf(0xf4)}];function entrySummary(_0x2a1820){const _0x4777dc=a1_0xec6cdf;return{'code':_0x2a1820[_0x4777dc(0x108)],'category':_0x2a1820[_0x4777dc(0x11a)],'method':_0x2a1820[_0x4777dc(0x121)],'path':_0x2a1820[_0x4777dc(0xd5)],'summary':_0x2a1820[_0x4777dc(0x104)],'whenToUse':_0x2a1820[_0x4777dc(0x102)]};}export function listApiDocEntries(_0xb163ed={}){const _0x32d7cb=a1_0xec6cdf,_0x588b8f=String(_0xb163ed[_0x32d7cb(0x11a)]||'')['trim'](),_0x22dab2=String(_0xb163ed[_0x32d7cb(0x112)]||'')['trim']()['toLowerCase']();return DOCS[_0x32d7cb(0x120)](_0x14d4fd=>{const _0x476776=_0x32d7cb;if(_0x588b8f&&_0x14d4fd[_0x476776(0x11a)]!==_0x588b8f)return![];if(!_0x22dab2)return!![];return[_0x14d4fd['code'],_0x14d4fd[_0x476776(0x11a)],_0x14d4fd[_0x476776(0x121)],_0x14d4fd[_0x476776(0xd5)],_0x14d4fd[_0x476776(0x104)],_0x14d4fd[_0x476776(0x102)],_0x14d4fd[_0x476776(0xc0)]][_0x476776(0x100)]('\x20')['toLowerCase']()[_0x476776(0x11d)](_0x22dab2);})['map'](entrySummary);}function a1_0x5a22(){const _0x1e29a7=['None','paging.totalCount\x20gives\x20total\x20rows','657574yemtor','length','##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.','/api/{appCode}/{datasetCode}/filter','Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.','{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','API\x20doc\x20code\x20not\x20found:\x20','datasetCode','Filter\x20dataset\x20data','bf_function_list','##\x20List\x20datasets','/api/endpoint/{appCode}/{scriptName}','CLI\x20has\x20typed\x20`bff\x20detail`\x20and\x20`bff\x20exec`\x20commands\x20for\x20endpoint\x20scripts.','聚合查询数据集数据','join','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.','whenToUse','##\x20List\x20BF\x20endpoint\x20functions\x0a\x0aDiscover\x20executable\x20endpoint\x20functions.','summary','{\x22aggregate\x22:[{\x22column\x22:\x20\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','List\x20available\x20runtime\x20API\x20documentation\x20entries','/api/custom/executeSql','code','/api/dataset/get-dataset-list-by-app-code','This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.','dataset_detail','dataset_data_get_one','List\x20datasets','Get\x20one\x20dataset\x20record','custom_sql_execute','lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress','If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.','keyword','{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','Dataset\x20detail','find','##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.','执行指定\x20BF\x20函数','lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27','/api/dataset/getOneByCode?code={datasetCode}','category','需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用','创建数据','includes','15942nBHdWu','appCode','filter','method','bf_execute','分页获取数据集列表','Show\x20runtime\x20API\x20documentation\x20by\x20code','/api/endpoint/{appCode}/functions','dataset_data_aggregate','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.','32-character\x20dataset\x20code','7864256PIKXUM','需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27','需要向指定数据集新增一条业务数据时使用','Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.','需要按数据集\x20code\x20获取字段、表信息、关联关系(relations)或操作定义时使用','lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27','448661mLpkCx','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:5}\x27','list','POST','##\x20Aggregate\x20dataset\x20data','Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.','获取应用下可调用的\x20BF\x20函数列表','GET','{\x22fieldName\x22:\x22value\x22}','dataset','`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','where\x20filters\x20before\x20aggregation','custom_sql','4oTppVN','{\x22param\x22:\x22value\x22}','title','63610ZgbNav','scriptName','执行自定义\x20SQL','result\x20rows\x20contain\x20aggregate\x20aliases','已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','dataset_data_create','paging\x20contains\x20pagination','546597KziGkN','Execute\x20custom\x20SQL','查询单条数据','需要携带\x20where、orderBy、分页等条件读取业务数据时使用','Inspect\x20field\x20names,\x20relations,\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.','validation','需要先确认当前应用有哪些可执行的\x20BF/ENDPOINT\x20函数,以及收敛可用\x20scriptName\x20时使用','fields/properties\x20describe\x20data\x20shape','/api/{appCode}/{datasetCode}/create','Returns\x20one\x20matching\x20business\x20record','/api/{appCode}/{datasetCode}/getOne','##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.','4319dtVPyR','path','detail','List\x20BF\x20endpoint\x20functions','relations\x20contains\x20the\x20object-shaped\x20API\x20relations\x20value\x20when\x20returned','Returns\x20endpoint\x20functionName/id/description','已经确认目标\x20BF\x20的\x20scriptName,且需要实际调用该\x20ENDPOINT\x20脚本完成业务操作时使用','##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.','Endpoint\x20function\x20name','api-doc','API\x20doc\x20code,\x20for\x20example\x20dataset_list','dataset_list','str','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','read','Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.','string','500541NQpXDE','operations\x20describes\x20runtime\x20APIs','Create\x20dataset\x20record','Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result','Returns\x20SQL\x20execution\x20payload','dataset_data_filter','/api/{appCode}/{datasetCode}/aggregate','Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset','Aggregate\x20dataset\x20data','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27','Current\x20app\x20code'];a1_0x5a22=function(){return _0x1e29a7;};return a1_0x5a22();}export function getApiDocDetail(_0x31ca27){const _0x4c5d03=a1_0xec6cdf,_0x22696a=DOCS[_0x4c5d03(0x115)](_0x3e982c=>_0x3e982c[_0x4c5d03(0x108)]===_0x31ca27);if(!_0x22696a)throw CliErrors[_0x4c5d03(0xcd)](_0x4c5d03(0xf8)+_0x31ca27);return{..._0x22696a};}const apiDocList={'service':a1_0xec6cdf(0xdd),'command':a1_0xec6cdf(0x133),'description':a1_0xec6cdf(0x106),'risk':a1_0xec6cdf(0xe2),'requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0xa88a17){const _0x37befd=a1_0xec6cdf,_0x25cf94=listApiDocEntries({'category':_0xa88a17[_0x37befd(0xe0)](_0x37befd(0x11a)),'keyword':_0xa88a17['str'](_0x37befd(0x112))});return{'ok':!![],'data':{'total':_0x25cf94[_0x37befd(0xf3)],'items':_0x25cf94}};}},apiDocDetail={'service':a1_0xec6cdf(0xdd),'command':a1_0xec6cdf(0xd6),'description':a1_0xec6cdf(0x124),'risk':a1_0xec6cdf(0xe2),'requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0x21b203){const _0x45b8df=a1_0xec6cdf;return{'ok':!![],'data':getApiDocDetail(_0x21b203[_0x45b8df(0xe0)](_0x45b8df(0x108)))};}};export const apiDocDefinitions=[apiDocList,apiDocDetail];
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 +1 @@
1
- function a2_0x286d(){const _0x4bf23e=['860ygIboo','EACCES','51tcqzZC','hex','parse','2286760vrOCEQ','50gpnwwc','utf8','20216tXpSZH','20716REzwBY','unknown','ak_','.tmp','isArray','3464016MEoQHr','appName','207774DYGwEh','EPERM','find','code','slice','180309opeKyT','6454392FkBYYj','my-apps.json','trim','digest','cache','stringify'];a2_0x286d=function(){return _0x4bf23e;};return a2_0x286d();}(function(_0x4c573c,_0xbd11c3){const _0x5eef16=a2_0x27f9,_0x289b16=_0x4c573c();while(!![]){try{const _0x5da5fc=-parseInt(_0x5eef16(0x86))/0x1+-parseInt(_0x5eef16(0x96))/0x2*(parseInt(_0x5eef16(0x8f))/0x3)+-parseInt(_0x5eef16(0x95))/0x4*(-parseInt(_0x5eef16(0x8d))/0x5)+parseInt(_0x5eef16(0x9b))/0x6+parseInt(_0x5eef16(0x92))/0x7+-parseInt(_0x5eef16(0x87))/0x8+parseInt(_0x5eef16(0x9d))/0x9*(-parseInt(_0x5eef16(0x93))/0xa);if(_0x5da5fc===_0xbd11c3)break;else _0x289b16['push'](_0x289b16['shift']());}catch(_0x1d0fc2){_0x289b16['push'](_0x289b16['shift']());}}}(a2_0x286d,0x78c58));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_0x27f9(_0x44bffe,_0x566662){_0x44bffe=_0x44bffe-0x84;const _0x286d59=a2_0x286d();let _0x27f996=_0x286d59[_0x44bffe];return _0x27f996;}import{isRuntimeAccessibleApp}from'../../commands/app/eligibility.js';export function fingerprintAccessKey(_0x1f47ec){const _0x2197be=a2_0x27f9,_0x16d99e=_0x1f47ec[_0x2197be(0x89)](),_0x1438b3=_0x16d99e[_0x2197be(0x85)](-0x6)||_0x2197be(0x97),_0x3f743f=createHash('sha256')['update'](_0x16d99e)[_0x2197be(0x8a)](_0x2197be(0x90))['slice'](0x0,0xc);return _0x2197be(0x98)+_0x1438b3+'_'+_0x3f743f;}export function getAppCacheFilePath(_0x57c29d,_0x2dd8dd){const _0x2013ac=a2_0x27f9;return resolve(homedir(),PRODUCT_CONFIG['homeDirName'],_0x2013ac(0x8b),_0x57c29d,fingerprintAccessKey(_0x2dd8dd),_0x2013ac(0x88));}export function readCachedAppList(_0xa2f08e,_0x500f4e){const _0x1532b5=a2_0x27f9;if(!_0x500f4e?.[_0x1532b5(0x89)]())return null;const _0x219b81=getAppCacheFilePath(_0xa2f08e,_0x500f4e);if(!existsSync(_0x219b81))return null;try{const _0x17497b=readFileSync(_0x219b81,'utf8');if(!_0x17497b[_0x1532b5(0x89)]())return null;const _0x5325e8=JSON[_0x1532b5(0x91)](_0x17497b);if(!Array[_0x1532b5(0x9a)](_0x5325e8['items']))return null;return _0x5325e8;}catch{return null;}}export function writeCachedAppList(_0x59c571,_0x4b8bef,_0x132ee8){const _0x5a3d95=a2_0x27f9,_0x433c4c=getAppCacheFilePath(_0x59c571,_0x4b8bef),_0x510c31=dirname(_0x433c4c);!existsSync(_0x510c31)&&mkdirSync(_0x510c31,{'recursive':!![]});const _0x176f51=_0x433c4c+_0x5a3d95(0x99);try{writeFileSync(_0x176f51,JSON[_0x5a3d95(0x8c)](_0x132ee8,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x176f51,_0x433c4c);}catch(_0x5ab293){if(_0x5ab293[_0x5a3d95(0x84)]===_0x5a3d95(0x9e)||_0x5ab293[_0x5a3d95(0x84)]==='EXDEV'||_0x5ab293[_0x5a3d95(0x84)]===_0x5a3d95(0x8e)){writeFileSync(_0x433c4c,JSON[_0x5a3d95(0x8c)](_0x132ee8,null,0x2)+'\x0a',{'encoding':_0x5a3d95(0x94)});try{unlinkSync(_0x176f51);}catch{}}else throw _0x5ab293;}}catch(_0x5a7330){try{unlinkSync(_0x176f51);}catch{}throw _0x5a7330;}return _0x433c4c;}export function resolveCachedAppCode(_0x9c7a3d,_0x5b4e27,_0x5b403c){const _0x29d5b9=a2_0x27f9;if(!_0x9c7a3d)return undefined;const _0x685060=readCachedAppList(_0x5b4e27,_0x5b403c),_0x1ab4bd=_0x685060?.['items'][_0x29d5b9(0x9f)](_0x9450ea=>_0x9450ea[_0x29d5b9(0x9c)]===_0x9c7a3d&&isRuntimeAccessibleApp(_0x9450ea));return _0x1ab4bd?.['appCode']?.[_0x29d5b9(0x89)]()||undefined;}
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 +1 @@
1
- const a3_0xd96038=a3_0xb6c6;(function(_0x25aa63,_0x55cac4){const _0x4624c9=a3_0xb6c6,_0x48ec34=_0x25aa63();while(!![]){try{const _0x2dfffd=parseInt(_0x4624c9(0xed))/0x1+-parseInt(_0x4624c9(0xf0))/0x2*(parseInt(_0x4624c9(0xd1))/0x3)+parseInt(_0x4624c9(0xcb))/0x4*(-parseInt(_0x4624c9(0xe6))/0x5)+-parseInt(_0x4624c9(0xa4))/0x6+-parseInt(_0x4624c9(0xa1))/0x7*(parseInt(_0x4624c9(0xb8))/0x8)+-parseInt(_0x4624c9(0xc6))/0x9*(parseInt(_0x4624c9(0xd2))/0xa)+-parseInt(_0x4624c9(0xe2))/0xb*(-parseInt(_0x4624c9(0xc9))/0xc);if(_0x2dfffd===_0x55cac4)break;else _0x48ec34['push'](_0x48ec34['shift']());}catch(_0x3a6372){_0x48ec34['push'](_0x48ec34['shift']());}}}(a3_0x5ddf,0x9a1ae));import{CliErrors}from'../../errors.js';import{initCreateFlagDefs,initImportFlagDefs,runInit,runInitImport}from'../../commands/init.js';function a3_0xb6c6(_0x2721e4,_0x359bbd){_0x2721e4=_0x2721e4-0xa1;const _0x5ddf2a=a3_0x5ddf();let _0xb6c683=_0x5ddf2a[_0x2721e4];return _0xb6c683;}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_0x5ddf(){const _0x16bd10=['9ECyYcN','validation','Use\x20`','275472jpqbvh','Usage:\x20','4uhBtDf','isCurrent','Read\x20app\x20list\x20from\x20local\x20cache\x20only','defaultApp','appName','i18nInfo','525948tspwGp','12122270dMPnZw','\x20app\x20use\x20<name>\x20[--global]','appOwnerName','push','find','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','no-cache','join','Missing\x20app\x20name.','write','globalPath','length','Target\x20environment\x20(default:\x20current\x20env)','.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.','use','1298lbeRNz','global','production','app','3823180SLsLGp','Loaded\x20','from','Filter\x20by\x20environment\x20(default:\x20current\x20env)','str','\x20cached\x20app(s)\x20for\x20env=\x22','Default\x20app\x20candidate\x20set\x20to\x20\x22','1257773EaaKou','env','trim','2dKBORl','\x20workspace\x20use\x20--app\x20<name>\x20[--env\x20daily]','langs','App\x20\x22','No\x20cached\x20apps\x20found.','raw','warn','name','include-unpublished','local','list','`\x20instead.','Deprecated:\x20use\x20workspace\x20init\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','No\x20apps\x20found\x20on\x20the\x20platform.','../../context.js','Remote\x20app\x20name\x20to\x20activate','105qRFrpV','source','boolean','6246378IkvdXT','Refreshed\x20app\x20cache\x20with\x20','Read\x20from\x20local\x20cache\x20only','items','\x20app(s)\x20for\x20env=\x22','\x20app\x20','\x20is\x20deprecated.\x20Use\x20`','map','Available\x20remote\x20apps:\x20','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','envName','enableI18n','fetchedAt','accessKey','filter','cache','mergedCli','read','bool','75800iZkizT','\x22\x20not\x20found.','Deprecated:\x20use\x20workspace\x20use\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','../../commands/app/remote-source.js','../../commands/app/cache.js','init','appCode','project-default','type','appPublishStatus','Use\x20global\x20config\x20scope','string','\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.','remote'];a3_0x5ddf=function(){return _0x16bd10;};return a3_0x5ddf();}import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{filterRuntimeAccessibleApps,findAppByCode,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const GLOBAL_FLAG={'name':a3_0xd96038(0xe3),'type':'boolean','description':a3_0xd96038(0xc2),'default':![]};function collectFlags(_0x2f6d27,_0x2d90f5){const _0x4868c6=a3_0xd96038,_0x4c3f66={};for(const _0x2dac8c of _0x2d90f5){const _0x468497=_0x2dac8c[_0x4868c6(0xc0)]==='boolean'?_0x2f6d27[_0x4868c6(0xb7)](_0x2dac8c[_0x4868c6(0xf7)]):_0x2f6d27[_0x4868c6(0xea)](_0x2dac8c[_0x4868c6(0xf7)]);if(_0x468497!==''&&_0x468497!==![])_0x4c3f66[_0x2dac8c[_0x4868c6(0xf7)]]=_0x468497;}if(_0x2f6d27['nonInteractive'])_0x4c3f66['nonInteractive']=!![];return _0x4c3f66;}function normalizeLanguages(_0x16e20b){const _0x163dc7=a3_0xd96038;if(!Array['isArray'](_0x16e20b))return[];return _0x16e20b['filter'](_0xa4d9=>typeof _0xa4d9==='string')['map'](_0x2e423a=>_0x2e423a['trim']())[_0x163dc7(0xb3)](Boolean);}function buildRemoteAppI18nFields(_0x48b83a){const _0x55116f=a3_0xd96038,_0x30b30e=normalizeLanguages(_0x48b83a['i18nInfo']?.[_0x55116f(0xf2)]);return{'enableI18n':typeof _0x48b83a['enableI18n']===_0x55116f(0xa3)?_0x48b83a[_0x55116f(0xb0)]:null,'languages':_0x30b30e,'i18nInfo':_0x48b83a[_0x55116f(0xd0)]?{..._0x48b83a['i18nInfo'],'langs':_0x30b30e['length']?_0x30b30e:null}:null};}const initDef={'service':a3_0xd96038(0xe5),'command':a3_0xd96038(0xbd),'description':a3_0xd96038(0xfc),'risk':a3_0xd96038(0xdc),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x225ef2){return warnDeprecatedAppCommand('init',CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>\x20[--env\x20daily]'),await runInit(collectFlags(_0x225ef2,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a3_0xd96038(0xe5),'command':a3_0xd96038(0xfa),'description':a3_0xd96038(0xd7),'risk':a3_0xd96038(0xb6),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':'env','type':'string','description':a3_0xd96038(0xe9),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0xd96038(0xf9),'type':a3_0xd96038(0xa3),'description':a3_0xd96038(0xcd),'default':![]},{'name':a3_0xd96038(0xd9),'type':'boolean','description':a3_0xd96038(0xad),'default':![]},{'name':a3_0xd96038(0xf8),'type':a3_0xd96038(0xa3),'description':'Include\x20unpublished\x20apps\x20for\x20diagnostics','default':![]}],async 'execute'(_0x179d10){const _0x15589f=a3_0xd96038,_0x5d10c0=_0x179d10[_0x15589f(0xea)](_0x15589f(0xee))||_0x179d10[_0x15589f(0xaf)]||getEnv()||_0x15589f(0xe4),_0x3386eb=_0x179d10['bool'](_0x15589f(0xf9)),_0x3d2124=_0x179d10['bool']('no-cache'),_0x392050=_0x179d10[_0x15589f(0xb7)](_0x15589f(0xf8)),{readRawConfigWithLayers:_0x48ffa7,resolveDefaultAppSource:_0x9f06aa,getLocalAppAliases:_0x126979}=await import(_0x15589f(0xfe)),{getRemoteAppList:_0x29c53e}=await import(_0x15589f(0xbb)),{config:_0x423a82,layers:_0x505c17}=_0x48ffa7(),_0x2b7e1c=_0x9f06aa(_0x505c17),{defaultApp:_0x466e2d}=_0x423a82,_0x4043c0=await _0x29c53e({'env':_0x5d10c0,'accessKey':_0x179d10[_0x15589f(0xb2)],'localOnly':_0x3386eb,'noCache':_0x3d2124}),_0x6cb73b=_0x392050?_0x4043c0['items']:filterRuntimeAccessibleApps(_0x4043c0[_0x15589f(0xa7)]),_0x36a0bb=_0x4043c0[_0x15589f(0xa7)][_0x15589f(0xde)]-_0x6cb73b['length'],_0x5b0833=_0x6cb73b[_0x15589f(0xab)](_0x341aa1=>{const _0x3646d7=_0x15589f;return{'name':_0x341aa1[_0x3646d7(0xcf)],'appcode':_0x341aa1['appCode'],'named':!![],'definedIn':_0x3646d7(0xc5),'isDefault':_0x341aa1['appName']===_0x466e2d,...buildAppProfileListFields(_0x5d10c0),...buildRemoteAppI18nFields(_0x341aa1),'source':_0x4043c0[_0x3646d7(0xa2)],'owner':_0x341aa1[_0x3646d7(0xd4)]??null,'status':_0x341aa1[_0x3646d7(0xc1)]??null,'cachedAt':_0x4043c0[_0x3646d7(0xb1)]};}),_0x5b1fe5=_0x126979(_0x423a82);let _0x130941=0x0;for(const [_0x50ba12,_0x111068]of Object['entries'](_0x5b1fe5)){const _0x265e31=typeof _0x111068['appcode']==='string'?_0x111068['appcode']['trim']():'';if(!_0x265e31)continue;const _0x4d8c28=findAppByCode(_0x4043c0[_0x15589f(0xa7)],_0x265e31);if(!_0x392050&&_0x4d8c28&&!isRuntimeAccessibleApp(_0x4d8c28))continue;_0x130941+=0x1,_0x5b0833[_0x15589f(0xd5)]({'name':_0x50ba12,'appcode':_0x265e31,'named':!![],'definedIn':'local','isDefault':_0x50ba12===_0x466e2d,...buildAppProfileListFields(_0x5d10c0),'source':'config','owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x5b0833,_0x179d10[_0x15589f(0xb5)]);const _0x2d72d4=_0x5b0833[_0x15589f(0xd6)](_0x5265fb=>_0x5265fb[_0x15589f(0xcc)]===!![]),_0x5dd193=_0x466e2d??_0x2d72d4?.[_0x15589f(0xf7)]??null,_0x1f0783={'env':_0x5d10c0,'source':_0x4043c0[_0x15589f(0xa2)],'fetchedAt':_0x4043c0[_0x15589f(0xb1)],'cachePath':_0x4043c0['cachePath'],'globalPath':_0x505c17[_0x15589f(0xdd)]??null,'projectPath':_0x505c17['projectPath']??null,'defaultApp':_0x5dd193,'defaultAppSource':_0x466e2d!=null?_0x2b7e1c:null,'localAliasCount':_0x130941,'remoteTotal':_0x4043c0[_0x15589f(0xa7)][_0x15589f(0xde)],'hiddenUnpublishedCount':_0x36a0bb,'includeUnpublished':_0x392050};if(_0x5b0833['length']===0x0)return{'ok':!![],'data':{'items':_0x5b0833,'meta':_0x1f0783},'message':_0x4043c0['source']==='cache'?_0x15589f(0xf4):_0x15589f(0xfd)};return{'ok':!![],'data':{'items':_0x5b0833,'meta':_0x1f0783}};}},pullDef={'service':a3_0xd96038(0xe5),'command':'pull','description':a3_0xd96038(0xae),'risk':a3_0xd96038(0xdc),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a3_0xd96038(0xee),'type':a3_0xd96038(0xc3),'description':a3_0xd96038(0xdf),'enum':[...RUNTIME_ENV_VALUES]},{'name':'local','type':'boolean','description':a3_0xd96038(0xa6),'default':![]},{'name':a3_0xd96038(0xd9),'type':'boolean','description':'Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','default':![]}],async 'execute'(_0x3f46fd){const _0x332190=a3_0xd96038,_0x3a4dd9=_0x3f46fd['str'](_0x332190(0xee))||_0x3f46fd[_0x332190(0xaf)]||getEnv()||_0x332190(0xe4),_0x4f4d15=_0x3f46fd['bool'](_0x332190(0xf9)),_0x4a73fa=_0x3f46fd[_0x332190(0xb7)](_0x332190(0xd9)),{getRemoteAppList:_0xfc59e1}=await import(_0x332190(0xbb)),_0x2d294e=await _0xfc59e1({'env':_0x3a4dd9,'accessKey':_0x3f46fd[_0x332190(0xb2)],'localOnly':_0x4f4d15,'noCache':_0x4a73fa});return{'ok':!![],'data':{'total':_0x2d294e[_0x332190(0xa7)][_0x332190(0xde)],'env':_0x3a4dd9,'source':_0x2d294e[_0x332190(0xa2)],'fetchedAt':_0x2d294e[_0x332190(0xb1)],'cachePath':_0x2d294e['cachePath']},'message':_0x2d294e[_0x332190(0xa2)]===_0x332190(0xb4)?_0x332190(0xe7)+_0x2d294e['items']['length']+_0x332190(0xeb)+_0x3a4dd9+'\x22.':_0x332190(0xa5)+_0x2d294e[_0x332190(0xa7)]['length']+_0x332190(0xa8)+_0x3a4dd9+'\x22.'};}},useDef={'service':'app','command':'use','description':a3_0xd96038(0xba),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a3_0xd96038(0xf7),'description':a3_0xd96038(0xff),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x4aa485){const _0x39432b=a3_0xd96038;if(!_0x4aa485['args'][0x0])throw CliErrors[_0x39432b(0xc7)](_0x39432b(0xdb),'Usage:\x20'+CLI_BIN_NAME+_0x39432b(0xd3));},async 'execute'(_0x2addec){const _0x13ecf8=a3_0xd96038;warnDeprecatedAppCommand(_0x13ecf8(0xe1),CLI_BIN_NAME+_0x13ecf8(0xf1));const _0x5d9afb=_0x2addec['args'][0x0];if(!_0x5d9afb)throw CliErrors[_0x13ecf8(0xc7)](_0x13ecf8(0xdb),_0x13ecf8(0xca)+CLI_BIN_NAME+_0x13ecf8(0xd3));const {buildConfigFromFlags:_0x416d4d,resolveLocalAppAliasCode:_0x2878c6}=await import(_0x13ecf8(0xfe)),{readCachedAppList:_0x138909}=await import(_0x13ecf8(0xbc)),_0x27cef0=_0x2addec[_0x13ecf8(0xea)](_0x13ecf8(0xee)),_0x296255=_0x416d4d(_0x27cef0?{'env':_0x27cef0}:{}),_0x4e5535=_0x138909(_0x296255[_0x13ecf8(0xee)],_0x296255[_0x13ecf8(0xb2)]),_0x81022b=_0x4e5535?.['items'][_0x13ecf8(0xd6)](_0x2fa6c4=>_0x2fa6c4[_0x13ecf8(0xcf)]===_0x5d9afb),_0x38661d=_0x2878c6(_0x296255[_0x13ecf8(0xf5)]??{},_0x5d9afb);if(_0x81022b&&!isRuntimeAccessibleApp(_0x81022b))throw runtimeInaccessibleAppError(_0x81022b,'\x22'+_0x5d9afb+'\x22');if(_0x38661d){const _0x3f3700=_0x4e5535?.[_0x13ecf8(0xa7)][_0x13ecf8(0xd6)](_0x17aa91=>_0x17aa91[_0x13ecf8(0xbe)]?.[_0x13ecf8(0xef)]()===_0x38661d);if(_0x3f3700&&!isRuntimeAccessibleApp(_0x3f3700))throw runtimeInaccessibleAppError(_0x3f3700,'\x22'+_0x5d9afb+'\x22');}if(!_0x81022b&&!_0x38661d&&_0x296255['defaultApp']!==_0x5d9afb){const _0x107123=[..._0x4e5535?.['items']['map'](_0x4c515d=>_0x4c515d['appName'])??[]],_0x1c3dbe=_0x107123['length']===0x0?_0x13ecf8(0xc8)+CLI_BIN_NAME+_0x13ecf8(0xc4)+_0x5d9afb+'.appcode\x20to\x20.lovrabet.json.':_0x13ecf8(0xac)+Array[_0x13ecf8(0xe8)](new Set(_0x107123))[_0x13ecf8(0xda)](',\x20')+_0x13ecf8(0xe0);throw CliErrors[_0x13ecf8(0xc7)](_0x13ecf8(0xf3)+_0x5d9afb+_0x13ecf8(0xb9),_0x1c3dbe);}const _0x5a5712=_0x2addec[_0x13ecf8(0xb7)](_0x13ecf8(0xe3));let _0x10459d;if(_0x5a5712)_0x10459d={'global':!![]};else{const {isInProject:_0x52e670}=await import(_0x13ecf8(0xfe)),_0x557b48=_0x52e670();_0x10459d=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0x13ecf8(0xbf),'inProject':_0x557b48}));}const _0x4acab2=readConfig(_0x10459d);return _0x4acab2[_0x13ecf8(0xce)]=_0x5d9afb,writeConfig(_0x4acab2,_0x10459d),{'ok':!![],'message':_0x13ecf8(0xec)+_0x5d9afb+'\x22'+scopeLabel(_0x10459d)+'.'};}};function warnDeprecatedAppCommand(_0x3772f1,_0x5b8bd9){const _0x34c7b=a3_0xd96038;console[_0x34c7b(0xf6)](CLI_BIN_NAME+_0x34c7b(0xa9)+_0x3772f1+_0x34c7b(0xaa)+_0x5b8bd9+_0x34c7b(0xfb));}const importDef={'service':a3_0xd96038(0xe5),'command':'import','description':a3_0xd96038(0xd8),'risk':a3_0xd96038(0xdc),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x394b5b){return await runInitImport(collectFlags(_0x394b5b,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
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 +1 @@
1
- (function(_0x54e237,_0x25c383){const _0x2cf5be=a4_0x34d8,_0x538b5c=_0x54e237();while(!![]){try{const _0x5e8e5f=-parseInt(_0x2cf5be(0x8a))/0x1*(parseInt(_0x2cf5be(0x81))/0x2)+parseInt(_0x2cf5be(0x8e))/0x3*(parseInt(_0x2cf5be(0x89))/0x4)+-parseInt(_0x2cf5be(0x93))/0x5*(-parseInt(_0x2cf5be(0x7d))/0x6)+parseInt(_0x2cf5be(0x85))/0x7*(-parseInt(_0x2cf5be(0x8d))/0x8)+-parseInt(_0x2cf5be(0x7c))/0x9+parseInt(_0x2cf5be(0x84))/0xa*(parseInt(_0x2cf5be(0x83))/0xb)+parseInt(_0x2cf5be(0x80))/0xc*(-parseInt(_0x2cf5be(0x92))/0xd);if(_0x5e8e5f===_0x25c383)break;else _0x538b5c['push'](_0x538b5c['shift']());}catch(_0x119009){_0x538b5c['push'](_0x538b5c['shift']());}}}(a4_0x3921,0xd0d7a));import{CLI_BIN_NAME}from'../../constant/cli.js';import{RUNTIME_ACCESSIBLE_APP_STATUS}from'../../constant/app.js';function a4_0x34d8(_0x1dc04f,_0x1f1e85){_0x1dc04f=_0x1dc04f-0x7b;const _0x3921cc=a4_0x3921();let _0x34d831=_0x3921cc[_0x1dc04f];return _0x34d831;}import{CliErrors}from'../../errors.js';function a4_0x3921(){const _0x9684b9=['11587450pmDKeA','9286319WkBCZu','trim','Current\x20status:\x20','\x20dataset/data/sql/bff\x20commands,\x20or\x20choose\x20a\x20published\x20app.','100utSVMW','6191DcsvKw','filter','find','8WiBXwa','154236YHwzdB','validation','App\x20','appCode','91ULyJLv','10AWmDrS','appPublishStatus','UNKNOWN','3774654OBHmRA','647526qPncKR','toUpperCase','string','89580yMTaKl','2FXEbcb','appName','11msTHVB'];a4_0x3921=function(){return _0x9684b9;};return a4_0x3921();}export function normalizeAppPublishStatus(_0x1417fc){const _0x373a34=a4_0x34d8;if(typeof _0x1417fc!==_0x373a34(0x7f))return null;const _0x362354=_0x1417fc['trim']();return _0x362354?_0x362354[_0x373a34(0x7e)]():null;}export function isRuntimeAccessibleApp(_0x489b49){const _0x181ab4=a4_0x34d8;return normalizeAppPublishStatus(_0x489b49[_0x181ab4(0x94)])===RUNTIME_ACCESSIBLE_APP_STATUS;}export function filterRuntimeAccessibleApps(_0x4e3479){const _0x34b0b5=a4_0x34d8;return _0x4e3479[_0x34b0b5(0x8b)](isRuntimeAccessibleApp);}export function findAppByName(_0x4fb424,_0x505312){const _0x5bea5d=a4_0x34d8;return _0x4fb424[_0x5bea5d(0x8c)](_0x20690f=>_0x20690f[_0x5bea5d(0x82)]===_0x505312);}export function findAppByCode(_0x3a78cf,_0x535822){const _0x58895c=a4_0x34d8,_0x818f5b=_0x535822[_0x58895c(0x86)]();if(!_0x818f5b)return undefined;return _0x3a78cf['find'](_0x455b11=>_0x455b11[_0x58895c(0x91)]?.['trim']()===_0x818f5b);}export function runtimeInaccessibleAppError(_0xb1232b,_0xe9dd1b){const _0x4242f1=a4_0x34d8,_0x5e2041=normalizeAppPublishStatus(_0xb1232b['appPublishStatus'])??_0x4242f1(0x7b);return CliErrors[_0x4242f1(0x8f)](_0x4242f1(0x90)+_0xe9dd1b+'\x20is\x20not\x20available\x20for\x20runtime\x20AI\x20access.',_0x4242f1(0x87)+_0x5e2041+'.\x20Publish\x20the\x20app\x20before\x20using\x20'+CLI_BIN_NAME+_0x4242f1(0x88));}
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 +1 @@
1
- (function(_0x150e62,_0x39188d){const _0x301080=a5_0x3424,_0x1cd05a=_0x150e62();while(!![]){try{const _0x50a922=parseInt(_0x301080(0x1c5))/0x1*(parseInt(_0x301080(0x1c7))/0x2)+-parseInt(_0x301080(0x1c9))/0x3+parseInt(_0x301080(0x1c4))/0x4+-parseInt(_0x301080(0x1c1))/0x5*(-parseInt(_0x301080(0x1c2))/0x6)+parseInt(_0x301080(0x1bd))/0x7+parseInt(_0x301080(0x1c8))/0x8+-parseInt(_0x301080(0x1c3))/0x9;if(_0x50a922===_0x39188d)break;else _0x1cd05a['push'](_0x1cd05a['shift']());}catch(_0x2a19be){_0x1cd05a['push'](_0x1cd05a['shift']());}}}(a5_0x39bc,0xcb7db));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 _0x36a3f4=a5_0x3424,_0x5948ee=join(__dirname,'../../../mock/app-list.json'),_0x46fe3a=readFileSync(_0x5948ee,_0x36a3f4(0x1ca));return JSON[_0x36a3f4(0x1ba)](_0x46fe3a);}let _cached=null;function a5_0x3424(_0x5ab6d7,_0x3eef49){_0x5ab6d7=_0x5ab6d7-0x1ba;const _0x39bc29=a5_0x39bc();let _0x342483=_0x39bc29[_0x5ab6d7];return _0x342483;}export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}function a5_0x39bc(){const _0x590ea3=['4254oUnudr','6646986BMgpbK','2767520GxphrD','662426AieSCy','Mock\x20API\x20error:\x20','2oGjORf','2413424DfSMSq','3239160mOCEuM','utf-8','parse','data','errorMsg','3034864fuzuUR','errorCode','tableData','success','3965fbfHIQ'];a5_0x39bc=function(){return _0x590ea3;};return a5_0x39bc();}export function getMockRemoteAppItems(){const _0x47612b=a5_0x3424,_0x1bdbb2=getMockAppList();if(!_0x1bdbb2[_0x47612b(0x1c0)])throw new Error(_0x47612b(0x1c6)+_0x1bdbb2[_0x47612b(0x1bc)]+'\x20('+_0x1bdbb2[_0x47612b(0x1be)]+')');return _0x1bdbb2[_0x47612b(0x1bb)][_0x47612b(0x1bf)];}
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 +1 @@
1
- (function(_0x1a400f,_0x49e694){const _0x371601=a6_0xcbe2,_0x3b4c6c=_0x1a400f();while(!![]){try{const _0xd83d46=parseInt(_0x371601(0x98))/0x1*(-parseInt(_0x371601(0x9a))/0x2)+parseInt(_0x371601(0xa7))/0x3*(parseInt(_0x371601(0xa5))/0x4)+-parseInt(_0x371601(0xa2))/0x5*(-parseInt(_0x371601(0x9d))/0x6)+parseInt(_0x371601(0x94))/0x7*(-parseInt(_0x371601(0x9c))/0x8)+-parseInt(_0x371601(0x9e))/0x9*(-parseInt(_0x371601(0x9f))/0xa)+parseInt(_0x371601(0x99))/0xb+parseInt(_0x371601(0xa1))/0xc*(-parseInt(_0x371601(0x9b))/0xd);if(_0xd83d46===_0x49e694)break;else _0x3b4c6c['push'](_0x3b4c6c['shift']());}catch(_0x283366){_0x3b4c6c['push'](_0x3b4c6c['shift']());}}}(a6_0x5435,0x60f6f));function a6_0x5435(){const _0xcc451e=['trim','fetchedAt','60TaGYas','4304377fbDxDm','21128NExYwY','2652KrOsOC','2824qMkYFn','24VMRadJ','2674827oabWtE','20SLKRkz','APP_LIST_SOURCE','31224mEvOMe','860110CsEmcF','items','mock','12LAcOXM','toISOString','485643sOkxFI','11851pielpJ','cache'];a6_0x5435=function(){return _0xcc451e;};return a6_0x5435();}import{getMyApps}from'../../core/api-client.js';function a6_0xcbe2(_0x4d7c41,_0x14da13){_0x4d7c41=_0x4d7c41-0x94;const _0x5435f6=a6_0x5435();let _0xcbe2f=_0x5435f6[_0x4d7c41];return _0xcbe2f;}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 _0x226360=a6_0xcbe2,_0x1a4ef4=(productEnv(_0x226360(0xa0))||'')['trim']()['toLowerCase']();return _0x1a4ef4==='mock';}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x46ab23){const _0x4d34da=a6_0xcbe2,{env:_0x46e9fa,accessKey:_0x1d942a,localOnly:localOnly=![],noCache:noCache=![]}=_0x46ab23,_0x997f1f=readCachedAppList(_0x46e9fa,_0x1d942a),_0x27aa03=_0x1d942a?.['trim']()?getAppCacheFilePath(_0x46e9fa,_0x1d942a):null;if(localOnly)return{'items':_0x997f1f?.[_0x4d34da(0xa3)]??[],'source':'cache','fetchedAt':_0x997f1f?.[_0x4d34da(0x97)]??null,'cachePath':_0x27aa03};try{const _0x3253ab=await getRemoteAppItems(),_0x19d57c=shouldUseMockRemoteApps()?_0x4d34da(0xa4):'remote',_0x133f47=new Date()[_0x4d34da(0xa6)](),_0x58e20b=_0x1d942a?.[_0x4d34da(0x96)]()?writeCachedAppList(_0x46e9fa,_0x1d942a,{'env':_0x46e9fa,'fetchedAt':_0x133f47,'source':_0x19d57c,'items':_0x3253ab}):null;return{'items':_0x3253ab,'source':_0x19d57c,'fetchedAt':_0x133f47,'cachePath':_0x58e20b};}catch(_0x5b4946){if(!noCache&&_0x997f1f)return{'items':_0x997f1f[_0x4d34da(0xa3)],'source':_0x4d34da(0x95),'fetchedAt':_0x997f1f['fetchedAt'],'cachePath':_0x27aa03};throw _0x5b4946;}}
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 +1 @@
1
- (function(_0x54bde5,_0x316fd7){const _0x5c26c1=a7_0x1979,_0x281c6e=_0x54bde5();while(!![]){try{const _0xe95be4=parseInt(_0x5c26c1(0xde))/0x1+parseInt(_0x5c26c1(0xcc))/0x2+parseInt(_0x5c26c1(0xdb))/0x3+parseInt(_0x5c26c1(0xdc))/0x4+parseInt(_0x5c26c1(0xcb))/0x5*(-parseInt(_0x5c26c1(0xd2))/0x6)+-parseInt(_0x5c26c1(0xd4))/0x7*(-parseInt(_0x5c26c1(0xcf))/0x8)+parseInt(_0x5c26c1(0xcd))/0x9*(-parseInt(_0x5c26c1(0xda))/0xa);if(_0xe95be4===_0x316fd7)break;else _0x281c6e['push'](_0x281c6e['shift']());}catch(_0x49741b){_0x281c6e['push'](_0x281c6e['shift']());}}}(a7_0x107c,0x5d8ad));import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0xf56cad,_0x40b664){const _0x12620d=a7_0x1979;if(!_0x40b664)return;const _0xe98a90=!!(_0x40b664[_0x12620d(0xd3)]??_0x40b664[_0x12620d(0xd0)]);for(const _0x526d0b of _0xf56cad){_0x526d0b[_0x12620d(0xd6)]=![];}const _0x5d0dc6=_0x40b664['appCode']!=null?String(_0x40b664[_0x12620d(0xce)])[_0x12620d(0xdd)]():'';if(_0xe98a90){const _0x3a82b0=_0x40b664[_0x12620d(0xd3)]??_0x40b664[_0x12620d(0xd0)];if(_0x3a82b0){const _0x380cb6=_0xf56cad[_0x12620d(0xd5)](_0x12fb37=>_0x12fb37['named']===!![]&&_0x12fb37[_0x12620d(0xe0)]===_0x3a82b0&&_0x12fb37[_0x12620d(0xd7)]===_0x12620d(0xdf)),_0x5405a9=_0x380cb6??_0xf56cad[_0x12620d(0xd5)](_0x1f65e6=>_0x1f65e6[_0x12620d(0xe1)]===!![]&&_0x1f65e6['name']===_0x3a82b0);_0x5405a9&&(_0x5405a9['isCurrent']=!![]);}return;}if(!_0x5d0dc6)return;for(const _0x316a83 of _0xf56cad){String(_0x316a83[_0x12620d(0xd9)]??'')[_0x12620d(0xdd)]()===_0x5d0dc6&&(_0x316a83[_0x12620d(0xd6)]=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';function a7_0x107c(){const _0x5dcb7f=['422907UnFvyx','1964840vaLYMR','trim','364879Hxcvpf','local','name','named','10xjoNzx','1114004HzxBbJ','225603AcJRxi','appCode','173616qwCjMZ','defaultApp','global','975066OemusM','currentApp','91czfbFH','find','isCurrent','definedIn','project','appcode','450CabLgR'];a7_0x107c=function(){return _0x5dcb7f;};return a7_0x107c();}function a7_0x1979(_0x2d8ebc,_0x25e2f5){_0x2d8ebc=_0x2d8ebc-0xcb;const _0x107c8d=a7_0x107c();let _0x1979db=_0x107c8d[_0x2d8ebc];return _0x1979db;}export function scopeLabel(_0x33910e){const _0x93b34b=a7_0x1979;return formatScopeLabel(_0x33910e[_0x93b34b(0xd1)]?'global':_0x93b34b(0xd8));}
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 +1 @@
1
- const a8_0x4e174a=a8_0x749b;(function(_0x284e19,_0x1e6de2){const _0x540cce=a8_0x749b,_0x47cde7=_0x284e19();while(!![]){try{const _0x1d648b=-parseInt(_0x540cce(0x19b))/0x1*(-parseInt(_0x540cce(0x1a3))/0x2)+parseInt(_0x540cce(0x18f))/0x3+-parseInt(_0x540cce(0x1b4))/0x4+-parseInt(_0x540cce(0x189))/0x5+parseInt(_0x540cce(0x1b7))/0x6+-parseInt(_0x540cce(0x182))/0x7*(parseInt(_0x540cce(0x1ad))/0x8)+parseInt(_0x540cce(0x17b))/0x9*(parseInt(_0x540cce(0x178))/0xa);if(_0x1d648b===_0x1e6de2)break;else _0x47cde7['push'](_0x47cde7['shift']());}catch(_0x3f8b2c){_0x47cde7['push'](_0x47cde7['shift']());}}}(a8_0x46e9,0xad09c));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_0x4e174a(0x181),ARTIFACT_SOURCE_AGENT=a8_0x4e174a(0x195),ALLOWED_REACT_MODULE_IMPORTS=[a8_0x4e174a(0x17a),a8_0x4e174a(0x174),a8_0x4e174a(0x1a1),'dayjs',a8_0x4e174a(0x19a),'@ant-design/icons'];export const ALLOWED_REACT_MODULE_IMPORTS_TEXT=ALLOWED_REACT_MODULE_IMPORTS[a8_0x4e174a(0x187)](',\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_0x4e174a(0x1ab),'type':a8_0x4e174a(0x194),'required':!![],'description':a8_0x4e174a(0x172)},ARTIFACT_NAME_FLAG={'name':a8_0x4e174a(0x18d),'type':a8_0x4e174a(0x194),'description':a8_0x4e174a(0x177)},METADATA_FLAG={'name':a8_0x4e174a(0x175),'type':a8_0x4e174a(0x194),'description':a8_0x4e174a(0x197)};function isPlainObject(_0x2d022c){const _0x2eaf5b=a8_0x4e174a;return typeof _0x2d022c===_0x2eaf5b(0x176)&&_0x2d022c!==null&&!Array[_0x2eaf5b(0x1b0)](_0x2d022c);}function readSourceFile(_0x56f425){const _0x5b2627=a8_0x4e174a;if(!_0x56f425)throw CliErrors['validation'](_0x5b2627(0x16b));if(!existsSync(_0x56f425))throw CliErrors[_0x5b2627(0x193)](_0x5b2627(0x184)+_0x56f425);if(!statSync(_0x56f425)['isFile']())throw CliErrors['validation'](_0x5b2627(0x1b8)+_0x56f425);const _0x37dcf6=readFileSync(_0x56f425,'utf8');return validateReactModuleSource(_0x37dcf6),_0x37dcf6;}function a8_0x749b(_0xba6444,_0x8d2d80){_0xba6444=_0xba6444-0x16b;const _0x46e906=a8_0x46e9();let _0x749b13=_0x46e906[_0xba6444];return _0x749b13;}function parseMetadata(_0x345c11){const _0x809b84=a8_0x4e174a;if(!_0x345c11)return undefined;let _0x1258f7;try{_0x1258f7=JSON[_0x809b84(0x19d)](_0x345c11);}catch{throw CliErrors['validation']('Invalid\x20JSON\x20for\x20--metadata:\x20'+_0x345c11);}if(!isPlainObject(_0x1258f7))throw CliErrors[_0x809b84(0x193)]('--metadata\x20must\x20be\x20a\x20JSON\x20object.');const _0x1dfd6c={..._0x1258f7};return delete _0x1dfd6c[_0x809b84(0x179)],_0x1dfd6c;}function a8_0x46e9(){const _0x5b7218=['3320820Wlmtbc','List\x20current-app\x20react_module\x20Artifacts','map','1330542ufYzXi','File\x20is\x20not\x20a\x20regular\x20file:\x20','File\x20path\x20is\x20required.','boolean','Optional\x20favorite-state\x20filter','Show\x20one\x20Artifact\x20by\x20id','startsWith','lastIndex','trim','Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file','str','react-dom','metadata','object','Artifact\x20display\x20name','616220STWAjl','compiledContent','react','81VCTGge','bool','createTime','.\x20Unsupported:\x20','verbose','Preview:\x20create\x20react_module\x20Artifact','react_module','1386763iNywLC','includes','File\x20not\x20found:\x20','updateTime','Artifact\x20ID','join','artifactType','860180rUyZfU','Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','POST','name','exec','2087067xebwkY','appCode','react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.','filter','validation','string','AGENT','source','Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped','deleted','Updated\x20Artifact\x20','antd','1XQBRxU','Created\x20Artifact\x20','parse','Artifact\x20source\x20file\x20is\x20blank.','num','some','lodash','split','2459012dukJzt','favorite','react_module\x20imports\x20are\x20limited\x20to:\x20','description','build','Preview:\x20update\x20react_module\x20Artifact\x20','Optional\x20source\x20filter,\x20for\x20example\x20AGENT','create','file','length','40lubbhs','list','read','isArray','artifact','body','write'];a8_0x46e9=function(){return _0x5b7218;};return a8_0x46e9();}function getPackageName(_0x22c0f9){const _0x37e643=a8_0x4e174a;if(_0x22c0f9[_0x37e643(0x16f)]('@')){const [_0x1c31f1,_0x347c03]=_0x22c0f9['split']('/');return _0x1c31f1&&_0x347c03?_0x1c31f1+'/'+_0x347c03:_0x22c0f9;}return _0x22c0f9[_0x37e643(0x1a2)]('/')[0x0]||_0x22c0f9;}function validateAllowedImports(_0x2c76ef){const _0x53ef60=a8_0x4e174a,_0x33a6a0=new Set();for(const _0x3cd9fc of IMPORT_SOURCE_PATTERNS){_0x3cd9fc[_0x53ef60(0x170)]=0x0;let _0x205edf;while((_0x205edf=_0x3cd9fc[_0x53ef60(0x18e)](_0x2c76ef))!==null){const _0x13eb18=_0x205edf[0x1]?.[_0x53ef60(0x171)]();_0x13eb18&&_0x33a6a0['add'](_0x13eb18);}}const _0x30dd02=[..._0x33a6a0][_0x53ef60(0x1b6)](getPackageName)[_0x53ef60(0x192)](_0x568512=>!ALLOWED_REACT_MODULE_IMPORTS[_0x53ef60(0x183)](_0x568512));if(_0x30dd02[_0x53ef60(0x1ac)]>0x0)throw CliErrors[_0x53ef60(0x193)](_0x53ef60(0x1a5)+ALLOWED_REACT_MODULE_IMPORTS_TEXT+_0x53ef60(0x17e)+[...new Set(_0x30dd02)][_0x53ef60(0x187)](',\x20'));}export function validateReactModuleSource(_0x43ee4f){const _0x1365b4=a8_0x4e174a;if(!_0x43ee4f[_0x1365b4(0x171)]())throw CliErrors[_0x1365b4(0x193)](_0x1365b4(0x19e));if(PAGE_LEVEL_PATTERNS[_0x1365b4(0x1a0)](_0x313e63=>_0x313e63['test'](_0x43ee4f)))throw CliErrors[_0x1365b4(0x193)](_0x1365b4(0x191));validateAllowedImports(_0x43ee4f);}function buildArtifactInput(_0x429764){const _0x3accba=a8_0x4e174a,_0x3a20e4=readSourceFile(_0x429764['str']('file')),_0x5c578c=_0x429764[_0x3accba(0x173)]('name')['trim'](),_0x204054=parseMetadata(_0x429764[_0x3accba(0x173)]('metadata'));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x5c578c?{'name':_0x5c578c}:{},'content':_0x3a20e4,..._0x204054?{'metadata':_0x204054}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0x4ee417){const _0x27f2dd=a8_0x4e174a;return{'id':_0x4ee417['id'],'name':_0x4ee417[_0x27f2dd(0x18d)],'artifactType':_0x4ee417[_0x27f2dd(0x188)],'source':_0x4ee417['source'],'favorite':_0x4ee417[_0x27f2dd(0x1a4)],'deleted':_0x4ee417[_0x27f2dd(0x198)],'createTime':_0x4ee417[_0x27f2dd(0x17d)],'updateTime':_0x4ee417[_0x27f2dd(0x185)]};}function detailArtifact(_0x51c666){const _0x2d905f=a8_0x4e174a;return{'id':_0x51c666['id'],'appCode':_0x51c666[_0x2d905f(0x190)],'name':_0x51c666[_0x2d905f(0x18d)],'artifactType':_0x51c666[_0x2d905f(0x188)],'source':_0x51c666[_0x2d905f(0x196)],'favorite':_0x51c666['favorite'],'deleted':_0x51c666[_0x2d905f(0x198)],'content':_0x51c666['content']??'','compiledContent':_0x51c666['compiledContent'],'metadata':_0x51c666[_0x2d905f(0x175)]??{},'createTime':_0x51c666['createTime'],'updateTime':_0x51c666[_0x2d905f(0x185)]};}function readFavoriteFlag(_0x874a75){const _0x52843b=a8_0x4e174a,_0x46f013=_0x874a75['flag'](_0x52843b(0x1a4));return _0x46f013===undefined||_0x46f013===null||_0x46f013===''?undefined:_0x874a75['bool']('favorite');}const artifactList={'service':'artifact','command':a8_0x4e174a(0x1ae),'description':a8_0x4e174a(0x1b5),'risk':a8_0x4e174a(0x1af),'flags':[{'name':a8_0x4e174a(0x196),'type':a8_0x4e174a(0x194),'description':a8_0x4e174a(0x1a9)},{'name':'favorite','type':a8_0x4e174a(0x16c),'description':a8_0x4e174a(0x16d)},VERBOSE_FLAG],async 'execute'(_0x106a5b){const _0x59cc28=a8_0x4e174a,_0x162756=await listRuntimeArtifacts(_0x106a5b[_0x59cc28(0x190)],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x106a5b[_0x59cc28(0x173)](_0x59cc28(0x196))?{'source':_0x106a5b[_0x59cc28(0x173)](_0x59cc28(0x196))}:{},...readFavoriteFlag(_0x106a5b)!==undefined?{'favorite':readFavoriteFlag(_0x106a5b)}:{}});return{'ok':!![],'data':{'total':_0x162756[_0x59cc28(0x1ac)],'items':_0x106a5b[_0x59cc28(0x17c)](_0x59cc28(0x17f))?_0x162756:_0x162756[_0x59cc28(0x1b6)](summarizeArtifact)}};}},artifactDetail={'service':a8_0x4e174a(0x1b1),'command':'detail','description':a8_0x4e174a(0x16e),'risk':a8_0x4e174a(0x1af),'flags':[{...ID_FLAG,'description':'Artifact\x20ID'}],async 'execute'(_0x2d53ee){const _0x12eb39=a8_0x4e174a,_0x9f2761=await getRuntimeArtifact(_0x2d53ee[_0x12eb39(0x19f)]('id'),_0x2d53ee[_0x12eb39(0x190)]);return{'ok':!![],'data':detailArtifact(_0x9f2761)};}},artifactCreate={'service':'artifact','command':a8_0x4e174a(0x1aa),'description':a8_0x4e174a(0x18b),'risk':a8_0x4e174a(0x1b3),'flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x5983e5){const _0xea3131=a8_0x4e174a,_0x401701=buildArtifactInput(_0x5983e5),_0x31d93b=await createRuntimeArtifact(_0x5983e5[_0xea3131(0x190)],_0x401701);return{'ok':!![],'data':detailArtifact(_0x31d93b),'message':_0xea3131(0x19c)+_0x31d93b['id']+(_0x31d93b[_0xea3131(0x18d)]?'\x20('+_0x31d93b[_0xea3131(0x18d)]+')':'')};},async 'dryRun'(_0x1066a7){const _0x5ca730=a8_0x4e174a,_0xcaa9a=buildArtifactInput(_0x1066a7);return dryRun(_0x5ca730(0x18c),'/client/artifact/create')[_0x5ca730(0x1b2)]({'appCode':_0x1066a7['appCode'],..._0xcaa9a})[_0x5ca730(0x1a6)](_0x5ca730(0x180))[_0x5ca730(0x1a7)]();}},artifactUpdate={'service':a8_0x4e174a(0x1b1),'command':'update','description':a8_0x4e174a(0x18a),'risk':a8_0x4e174a(0x1b3),'flags':[{...ID_FLAG,'description':a8_0x4e174a(0x186)},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x4300c6){const _0x395fa8=a8_0x4e174a,_0x246977=_0x4300c6[_0x395fa8(0x19f)]('id'),_0xd53e21=buildArtifactInput(_0x4300c6),_0x86a51f=await updateRuntimeArtifact(_0x246977,_0x4300c6[_0x395fa8(0x190)],_0xd53e21);return{'ok':!![],'data':detailArtifact(_0x86a51f),'message':_0x395fa8(0x199)+_0x86a51f['id']+(_0x86a51f['name']?'\x20('+_0x86a51f[_0x395fa8(0x18d)]+')':'')};},async 'dryRun'(_0x4b785b){const _0x1855a0=a8_0x4e174a,_0x4e5425=_0x4b785b[_0x1855a0(0x19f)]('id'),_0x32d36d=buildArtifactInput(_0x4b785b);return dryRun(_0x1855a0(0x18c),'/client/artifact/'+_0x4e5425+'/update')[_0x1855a0(0x1b2)]({'appCode':_0x4b785b[_0x1855a0(0x190)],..._0x32d36d})['description'](_0x1855a0(0x1a8)+_0x4e5425)[_0x1855a0(0x1a7)]();}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
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 +1 @@
1
- function a9_0xab00(){const _0x4a9583=['\x20(via\x20','global','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','3986991tVNSpa','Then\x20verify\x20with:\x20','\x20scope.','`auth\x20login`\x20does\x20not\x20support\x20--yes.','Auth\x20mode:\x20','Option\x20B:\x20apps\x20config\x20(','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','Read\x20from\x20global\x20config\x20(default)','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','Shorthand\x20for\x20--access-key','logout','nonInteractive','AccessKey\x20(ak_xxx...)','read','8VMmIyD','\x20env\x20var','userCenterDisplayName','Clear\x20accessKey\x20from\x20config','string','slice','Write\x20to\x20global\x20config\x20(default)','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','1107685PoKdgT','Tip:\x20you\x20can\x20also\x20run:','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','write','envName','\x20Verify:\x20','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','\x20Current\x20env:\x20','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','env','Auth\x20config\x20reinitialized\x20in\x20','\x20auth\x20status','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','development','production','stdin','Show\x20current\x20authentication\x20status','isTTY','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','\x20config','join','str','info','daily','25416910XIawfS','validation','No\x20AccessKey\x20found\x20in\x20','9952416caTfFg','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','\x20config.','=ak_xxx','\x20doctor','length','access-key','init','Option\x20C:\x20environment\x20variable','Clear\x20from\x20global\x20config\x20(default)','accessKey','project','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','ACCESS_KEY','newConfigFileName','login','\x20auth\x20login\x20--access-key\x20<ak_xxx>','\x20config.\x20Nothing\x20to\x20clear.','bool','123748HnibHp','global-default','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','status','414554sVaMWT','auth','2278645wTHYnt','2YnctFz','push','trim','Invalid\x20accessKey\x20format:\x20\x22','AccessKey:\x20','yes','boolean','138QWoPBX','Option\x20A:\x20','\x20\x20export\x20','ClientAk','AccessKey\x20saved\x20to\x20'];a9_0xab00=function(){return _0x4a9583;};return a9_0xab00();}const a9_0x4f86b4=a9_0x2b91;(function(_0x9ef112,_0x29b1e9){const _0x337f35=a9_0x2b91,_0x42f22f=_0x9ef112();while(!![]){try{const _0x8b80d4=-parseInt(_0x337f35(0x15a))/0x1*(parseInt(_0x337f35(0x134))/0x2)+parseInt(_0x337f35(0x13b))/0x3*(-parseInt(_0x337f35(0x12d))/0x4)+-parseInt(_0x337f35(0x133))/0x5+parseInt(_0x337f35(0x11a))/0x6+parseInt(_0x337f35(0x131))/0x7*(parseInt(_0x337f35(0x151))/0x8)+-parseInt(_0x337f35(0x143))/0x9+parseInt(_0x337f35(0x117))/0xa;if(_0x8b80d4===_0x29b1e9)break;else _0x42f22f['push'](_0x42f22f['shift']());}catch(_0x49bd2a){_0x42f22f['push'](_0x42f22f['shift']());}}}(a9_0xab00,0xcaab6));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_0x2b91(_0x25b680,_0x1e469f){_0x25b680=_0x25b680-0x116;const _0xab00b7=a9_0xab00();let _0x2b91ec=_0xab00b7[_0x25b680];return _0x2b91ec;}import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{getLoginUserInfo}from'../../core/api-client.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function showAccessKeyCreateHint(){const _0x280a9e=a9_0x2b91;writeCliSideChannelLine(_0x280a9e(0x12f)+PRODUCT_CONFIG[_0x280a9e(0x153)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x280a9e(0x15b)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x280a9e(0x12a));}function buildAccessKeySetupGuide(){const _0x1f9913=a9_0x2b91;return[_0x1f9913(0x12f)+PRODUCT_CONFIG[_0x1f9913(0x153)]+':',USER_ACCESS_KEY_CREATE_URL,_0x1f9913(0x149)+CLI_BIN_NAME+_0x1f9913(0x15c)][_0x1f9913(0x16f)]('\x0a');}function canPromptForAccessKey(_0x544531){const _0x31ae91=a9_0x2b91;return!_0x544531['nonInteractive']&&process[_0x31ae91(0x16a)][_0x31ae91(0x16c)]!==![]&&process['stdout']['isTTY']!==![];}function resolveAuthScopeFlags(_0x3f743d){const _0x491837=a9_0x2b91;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x3f743d['bool'](_0x491837(0x141)),'explicitProject':_0x3f743d[_0x491837(0x12c)]('project'),'policy':_0x491837(0x12e)}));}async function resolveAuthWriteInput(_0x1ff401){const _0x59b637=a9_0x2b91;let _0x2429c0=(_0x1ff401[_0x59b637(0x170)](_0x59b637(0x120))||_0x1ff401['str']('ak')||'')[_0x59b637(0x136)]();const _0x441f0c=(_0x1ff401[_0x59b637(0x170)](_0x59b637(0x163))||'')['trim']();if(!_0x2429c0&&canPromptForAccessKey(_0x1ff401))try{showAccessKeyCreateHint(),_0x2429c0=await promptAccessKey('');}catch(_0x5d9a95){if(isAbortPrompt(_0x5d9a95))throw CliErrors['cancelled']();throw _0x5d9a95;}if(!_0x2429c0)throw CliErrors[_0x59b637(0x118)]('Missing\x20accessKey.',buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN['test'](_0x2429c0))throw CliErrors[_0x59b637(0x118)](_0x59b637(0x137)+_0x2429c0+'\x22','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars');if(!_0x441f0c)return{'accessKey':_0x2429c0};const _0x38e92e=normalizeEnv(_0x441f0c);return{'accessKey':_0x2429c0,'env':isDaily(_0x38e92e)?_0x59b637(0x116):isDev(_0x38e92e)?_0x59b637(0x168):_0x59b637(0x169)};}export const authDefinitions=[{'service':'auth','command':a9_0x4f86b4(0x129),'description':a9_0x4f86b4(0x166),'risk':a9_0x4f86b4(0x15d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x4f86b4(0x120),'type':a9_0x4f86b4(0x155),'description':a9_0x4f86b4(0x14f)},{'name':'ak','type':a9_0x4f86b4(0x155),'description':'Shorthand\x20for\x20--access-key'},{'name':a9_0x4f86b4(0x141),'type':'boolean','description':a9_0x4f86b4(0x157),'default':!![]},{'name':a9_0x4f86b4(0x125),'type':a9_0x4f86b4(0x13a),'description':a9_0x4f86b4(0x160),'default':![]}],async 'execute'(_0x1cda71){const _0x1495ae=a9_0x4f86b4;if(_0x1cda71[_0x1495ae(0x12c)](_0x1495ae(0x139)))throw CliErrors['validation'](_0x1495ae(0x146),'Use\x20`'+CLI_BIN_NAME+_0x1495ae(0x11b)+CLI_BIN_NAME+_0x1495ae(0x162));const _0x29a2d5=(_0x1cda71['str'](_0x1495ae(0x120))||_0x1cda71[_0x1495ae(0x170)]('ak')||'')['trim']();if(!_0x29a2d5&&_0x1cda71[_0x1495ae(0x14e)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x325cb7=await resolveAuthWriteInput(_0x1cda71),_0x19fb08=resolveAuthScopeFlags(_0x1cda71),_0x54edf6=readScopedConfig(_0x19fb08);_0x54edf6[_0x1495ae(0x124)]=_0x325cb7[_0x1495ae(0x124)];_0x325cb7[_0x1495ae(0x163)]&&(_0x54edf6[_0x1495ae(0x163)]=_0x325cb7[_0x1495ae(0x163)]);writeScopedConfig(_0x54edf6,_0x19fb08);const _0x524b4c=_0x19fb08[_0x1495ae(0x141)]?_0x1495ae(0x141):_0x1495ae(0x125),_0x1d4768=_0x54edf6['env']?_0x1495ae(0x161)+_0x54edf6[_0x1495ae(0x163)]+'.':'';return{'ok':!![],'message':_0x1495ae(0x13f)+_0x524b4c+_0x1495ae(0x11c)+_0x1d4768+'\x20Verify:\x20'+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':a9_0x4f86b4(0x132),'command':a9_0x4f86b4(0x121),'description':'Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','risk':a9_0x4f86b4(0x15d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x4f86b4(0x120),'type':a9_0x4f86b4(0x155),'description':a9_0x4f86b4(0x14f)},{'name':'ak','type':'string','description':a9_0x4f86b4(0x14c)},{'name':a9_0x4f86b4(0x163),'type':a9_0x4f86b4(0x155),'description':a9_0x4f86b4(0x158)},{'name':a9_0x4f86b4(0x141),'type':a9_0x4f86b4(0x13a),'description':a9_0x4f86b4(0x157),'default':!![]},{'name':a9_0x4f86b4(0x125),'type':a9_0x4f86b4(0x13a),'description':a9_0x4f86b4(0x160),'default':![]}],async 'execute'(_0x4f9bb9){const _0x46c129=a9_0x4f86b4,_0x4ddc90=await resolveAuthWriteInput(_0x4f9bb9),_0x23d124=resolveAuthScopeFlags(_0x4f9bb9),_0x1acaeb={'accessKey':_0x4ddc90[_0x46c129(0x124)]};_0x4ddc90[_0x46c129(0x163)]&&(_0x1acaeb[_0x46c129(0x163)]=_0x4ddc90[_0x46c129(0x163)]);writeScopedConfig(_0x1acaeb,_0x23d124);const _0x20acdf=_0x23d124['global']?_0x46c129(0x141):'project',_0x587920=_0x1acaeb['env']?_0x46c129(0x161)+_0x1acaeb[_0x46c129(0x163)]+'.':'';return{'ok':!![],'message':_0x46c129(0x164)+_0x20acdf+_0x46c129(0x145)+_0x587920+_0x46c129(0x15f)+CLI_BIN_NAME+_0x46c129(0x165)};}},{'service':'auth','command':a9_0x4f86b4(0x14d),'description':a9_0x4f86b4(0x154),'risk':a9_0x4f86b4(0x15d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x4f86b4(0x141),'type':'boolean','description':a9_0x4f86b4(0x123),'default':!![]},{'name':'project','type':a9_0x4f86b4(0x13a),'description':a9_0x4f86b4(0x16d),'default':![]}],async 'execute'(_0x1e48f5){const _0xc38145=a9_0x4f86b4,_0x199b60=resolveAuthScopeFlags(_0x1e48f5),_0x4f52ee=readScopedConfig(_0x199b60),_0x1a97ff=!!_0x4f52ee[_0xc38145(0x124)];delete _0x4f52ee[_0xc38145(0x124)],writeScopedConfig(_0x4f52ee,_0x199b60);const _0x1ca2ec=_0x199b60['global']?_0xc38145(0x141):'project';if(_0x1a97ff)return{'ok':!![],'message':'AccessKey\x20cleared\x20from\x20'+_0x1ca2ec+'\x20config.'};return{'ok':!![],'message':_0xc38145(0x119)+_0x1ca2ec+_0xc38145(0x12b)};}},{'service':a9_0x4f86b4(0x132),'command':a9_0x4f86b4(0x130),'description':a9_0x4f86b4(0x16b),'risk':a9_0x4f86b4(0x150),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x4f86b4(0x141),'type':a9_0x4f86b4(0x13a),'description':a9_0x4f86b4(0x14a),'default':!![]},{'name':a9_0x4f86b4(0x125),'type':'boolean','description':a9_0x4f86b4(0x142),'default':![]}],async 'execute'(_0xff0c30){const _0x25976f=a9_0x4f86b4,_0x62e970=resolveAuthScopeFlags(_0xff0c30),_0x23be70=readScopedConfig(_0x62e970),_0x17d153=productEnvName(_0x25976f(0x127)),_0x15d9e2=productEnv(_0x25976f(0x127))||undefined,_0x2ecec4=_0x23be70[_0x25976f(0x124)]||undefined,_0x1f06d7=_0x15d9e2||_0x2ecec4,_0x1a9ba3=_0x15d9e2?_0x17d153+_0x25976f(0x152):_0x2ecec4?(_0x62e970['global']?_0x25976f(0x141):_0x25976f(0x125))+_0x25976f(0x16e):null,_0x5e9415=[_0x25976f(0x147)+AUTH_MODE[_0x25976f(0x13e)]];if(_0x1f06d7){const _0x4903bb=_0x1f06d7[_0x25976f(0x11f)]>0x8?''+_0x1f06d7[_0x25976f(0x156)](0x0,0x8)+'*'['repeat'](_0x1f06d7['length']-0x8):_0x1f06d7;_0x5e9415[_0x25976f(0x135)](_0x25976f(0x138)+_0x4903bb+(_0x1a9ba3?_0x25976f(0x140)+_0x1a9ba3+')':''));}return!_0x1f06d7&&(_0x5e9415[_0x25976f(0x135)](''),_0x5e9415[_0x25976f(0x135)](_0x25976f(0x14b)),_0x5e9415[_0x25976f(0x135)](''),_0x5e9415['push'](_0x25976f(0x13c)+CLI_BIN_NAME+'\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]'),_0x5e9415[_0x25976f(0x135)](''),_0x5e9415[_0x25976f(0x135)](_0x25976f(0x148)+PRODUCT_CONFIG[_0x25976f(0x128)]+')'),_0x5e9415[_0x25976f(0x135)](_0x25976f(0x167)),_0x5e9415[_0x25976f(0x135)](''),_0x5e9415['push'](_0x25976f(0x122)),_0x5e9415[_0x25976f(0x135)](_0x25976f(0x13d)+_0x17d153+_0x25976f(0x11d)),_0x5e9415[_0x25976f(0x135)](''),_0x5e9415['push'](_0x25976f(0x144)+CLI_BIN_NAME+_0x25976f(0x165)),_0x5e9415[_0x25976f(0x135)](_0x25976f(0x126)+CLI_BIN_NAME+_0x25976f(0x11e))),{'ok':!![],'message':_0x5e9415['join']('\x0a')};}},{'service':a9_0x4f86b4(0x132),'command':a9_0x4f86b4(0x171),'description':a9_0x4f86b4(0x159),'risk':a9_0x4f86b4(0x150),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x2d11eb){const _0x364d05=a9_0x4f86b4,_0x344ec8=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x344ec8,'meta':{'env':_0x2d11eb[_0x364d05(0x15e)]??'production'}}};}}];
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 +1 @@
1
- (function(_0x5bd47a,_0xa9f5b9){const _0x2eb434=a10_0x550d,_0x302bea=_0x5bd47a();while(!![]){try{const _0x1aa389=parseInt(_0x2eb434(0xae))/0x1+-parseInt(_0x2eb434(0xa0))/0x2+parseInt(_0x2eb434(0x9f))/0x3+-parseInt(_0x2eb434(0x9d))/0x4+parseInt(_0x2eb434(0x9e))/0x5*(-parseInt(_0x2eb434(0xa1))/0x6)+-parseInt(_0x2eb434(0xb0))/0x7+parseInt(_0x2eb434(0xab))/0x8*(parseInt(_0x2eb434(0xaa))/0x9);if(_0x1aa389===_0xa9f5b9)break;else _0x302bea['push'](_0x302bea['shift']());}catch(_0x25512e){_0x302bea['push'](_0x302bea['shift']());}}}(a10_0x479b,0xbb4b8));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x2bdcb5=a10_0x550d;super(_0x2bdcb5(0xa3)),this[_0x2bdcb5(0xa9)]=_0x2bdcb5(0xa4);}}function a10_0x550d(_0xe84c5e,_0x2b7c85){_0xe84c5e=_0xe84c5e-0x9b;const _0x479bcb=a10_0x479b();let _0x550dc9=_0x479bcb[_0xe84c5e];return _0x550dc9;}function createSafeRl(){const _0x3fe451=a10_0x550d,_0x50d1b1=createInterface({'input':process[_0x3fe451(0xad)],'output':process['stdout']});let _0x434c2d;const _0x5296a8=new Promise((_0x193730,_0x4a9138)=>{const _0x2e0137=_0x3fe451;_0x434c2d=()=>{const _0x9ef98b=a10_0x550d;_0x434c2d&&(_0x50d1b1[_0x9ef98b(0x9b)](_0x9ef98b(0xa7),_0x434c2d),_0x434c2d=undefined);try{_0x50d1b1[_0x9ef98b(0xa2)]();}catch{}_0x4a9138(new AbortPrompt());},_0x50d1b1[_0x2e0137(0xa5)](_0x2e0137(0xa7),_0x434c2d);}),_0x160087=()=>{const _0xed6660=_0x3fe451;_0x434c2d&&(_0x50d1b1['removeListener'](_0xed6660(0xa7),_0x434c2d),_0x434c2d=undefined);try{_0x50d1b1['close']();}catch{}};return{'rl':_0x50d1b1,'abortPromise':_0x5296a8,'disposeSuccess':_0x160087};}export async function promptAccessKey(_0x7efd37=''){const {rl:_0x817d5b,abortPromise:_0x5616dd,disposeSuccess:_0x235d28}=createSafeRl(),_0x51d2f5=new Promise(_0x18f4eb=>{const _0x583c53=a10_0x550d,_0x47e16d=_0x7efd37?_0x583c53(0xac)+_0x7efd37+_0x583c53(0xa8):_0x583c53(0x9c);_0x817d5b[_0x583c53(0xa6)](_0x47e16d,_0x26c023=>{const _0xe18d06=_0x583c53;_0x235d28(),_0x18f4eb(_0x26c023[_0xe18d06(0xaf)]()||_0x7efd37);});});return Promise['race']([_0x51d2f5,_0x5616dd]);}export function isAbortPrompt(_0x508e3a){const _0x20eaa0=a10_0x550d;return _0x508e3a instanceof Error&&_0x508e3a[_0x20eaa0(0xa9)]===_0x20eaa0(0xa4);}function a10_0x479b(){const _0x3a6616=['question','SIGINT','):\x20','name','549WrizfE','473072gOezid','AccessKey\x20(','stdin','879970qKQHKr','trim','9880395fEiyQm','removeListener','AccessKey\x20(paste\x20ak_...):\x20','5117448zlTWbS','4024045lxHfmV','222339CwLMiE','596882NxAzcf','6SBcibn','close','User\x20aborted\x20prompt','AbortPrompt','once'];a10_0x479b=function(){return _0x3a6616;};return a10_0x479b();}
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 +1 @@
1
- function a11_0x999d(_0x3a1ba4,_0xac360b){_0x3a1ba4=_0x3a1ba4-0x149;const _0x2f8a05=a11_0x2f8a();let _0x999d6c=_0x2f8a05[_0x3a1ba4];return _0x999d6c;}const a11_0x11a9a4=a11_0x999d;(function(_0x409359,_0x456674){const _0x1bc5bc=a11_0x999d,_0xb6534f=_0x409359();while(!![]){try{const _0x7f1a77=-parseInt(_0x1bc5bc(0x150))/0x1+-parseInt(_0x1bc5bc(0x149))/0x2*(-parseInt(_0x1bc5bc(0x14b))/0x3)+parseInt(_0x1bc5bc(0x15f))/0x4*(-parseInt(_0x1bc5bc(0x158))/0x5)+parseInt(_0x1bc5bc(0x155))/0x6*(-parseInt(_0x1bc5bc(0x157))/0x7)+parseInt(_0x1bc5bc(0x152))/0x8+-parseInt(_0x1bc5bc(0x151))/0x9+parseInt(_0x1bc5bc(0x15e))/0xa*(parseInt(_0x1bc5bc(0x14d))/0xb);if(_0x7f1a77===_0x456674)break;else _0xb6534f['push'](_0xb6534f['shift']());}catch(_0x4cada0){_0xb6534f['push'](_0xb6534f['shift']());}}}(a11_0x2f8a,0x9173a));import{getBffScriptInfo}from'../../core/api-client.js';function a11_0x2f8a(){const _0x5a11ad=['functionName','description','Script\x20ID','67430nxWyOw','200504fTpPUu','4XLLyOy','verbose','1635609hJaPzN','updatedTime','3201rlJWgE','appCode','bff','985361eFknQT','10627182hmmvQp','6319512xrlTIG','scriptType','(none)','6GWZZBJ','bool','4406465OuAyVP','45FlTcqH','Get\x20BFF\x20script\x20details\x20by\x20ID','num'];a11_0x2f8a=function(){return _0x5a11ad;};return a11_0x2f8a();}import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a11_0x11a9a4(0x14f),'command':'detail','description':a11_0x11a9a4(0x159),'risk':'read','flags':[{...ID_FLAG,'description':a11_0x11a9a4(0x15d)},VERBOSE_FLAG],async 'execute'(_0x4380b9){const _0x403b29=a11_0x11a9a4,_0x3da04c=await getBffScriptInfo(_0x4380b9[_0x403b29(0x15a)]('id')),_0x55dccb=_0x4380b9[_0x403b29(0x156)](_0x403b29(0x14a));if(_0x55dccb)return{'ok':!![],'data':_0x3da04c};return{'ok':!![],'data':{'id':_0x3da04c['id'],'appCode':_0x3da04c[_0x403b29(0x14e)],'functionName':_0x3da04c[_0x403b29(0x15b)]??'','scriptType':_0x3da04c[_0x403b29(0x153)],'description':_0x3da04c[_0x403b29(0x15c)]||_0x403b29(0x154),'createdTime':_0x3da04c['createdTime']??'','updatedTime':_0x3da04c[_0x403b29(0x14c)]??''}};}};
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 +1 @@
1
- const a12_0x3ee4df=a12_0x39f8;(function(_0x142cb4,_0x351cec){const _0x4476ec=a12_0x39f8,_0x2e5aec=_0x142cb4();while(!![]){try{const _0x2ca527=-parseInt(_0x4476ec(0x1e7))/0x1*(-parseInt(_0x4476ec(0x1eb))/0x2)+-parseInt(_0x4476ec(0x1e4))/0x3+parseInt(_0x4476ec(0x1f4))/0x4+parseInt(_0x4476ec(0x1f2))/0x5+-parseInt(_0x4476ec(0x1f1))/0x6*(parseInt(_0x4476ec(0x1ef))/0x7)+parseInt(_0x4476ec(0x1ed))/0x8*(-parseInt(_0x4476ec(0x1e9))/0x9)+-parseInt(_0x4476ec(0x1e8))/0xa*(-parseInt(_0x4476ec(0x1f0))/0xb);if(_0x2ca527===_0x351cec)break;else _0x2e5aec['push'](_0x2e5aec['shift']());}catch(_0x86fa48){_0x2e5aec['push'](_0x2e5aec['shift']());}}}(a12_0x176e,0xa51fc));function a12_0x176e(){const _0x2b7743=['90vTxALj','5057694NnXWxY','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','22718iWKEKc','str','8DFLObf','read','1946nixJmK','2144791TbnSAN','29130krpCzd','6516020WLrZZL','now','1311100cEtvyz','3858723xhzDpq','name','params','43ZfvOtp'];a12_0x176e=function(){return _0x2b7743;};return a12_0x176e();}import{executeSdkBff}from'../../core/sdk-client.js';function a12_0x39f8(_0x55eb22,_0x1a2263){_0x55eb22=_0x55eb22-0x1e4;const _0x176e2a=a12_0x176e();let _0x39f84d=_0x176e2a[_0x55eb22];return _0x39f84d;}import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':'bff','command':'exec','description':a12_0x3ee4df(0x1ea),'risk':a12_0x3ee4df(0x1ee),'flags':[{...NAME_FLAG,'required':!![],'description':'BFF\x20function\x20name\x20to\x20execute'},PARAMS_FLAG],async 'execute'(_0xe537de){const _0x158a38=a12_0x3ee4df,_0x1e8fe2=parseJsonParams(_0xe537de[_0x158a38(0x1ec)](_0x158a38(0x1e6))),_0x366176=Date['now'](),_0x180929=await executeSdkBff(_0xe537de[_0x158a38(0x1ec)](_0x158a38(0x1e5)),_0x1e8fe2),_0x2fa62a=Date[_0x158a38(0x1f3)]()-_0x366176;return{'ok':!![],'data':{'result':_0x180929,'elapsed':_0x2fa62a},'message':'BFF\x20executed\x20in\x20'+_0x2fa62a+'ms'};}};
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 +1 @@
1
- (function(_0x5e607f,_0x1fa6e4){const _0x9b2e76=a13_0xeca9,_0x558cac=_0x5e607f();while(!![]){try{const _0x405d87=parseInt(_0x9b2e76(0x113))/0x1+-parseInt(_0x9b2e76(0x117))/0x2*(parseInt(_0x9b2e76(0x115))/0x3)+parseInt(_0x9b2e76(0x11b))/0x4*(parseInt(_0x9b2e76(0x11a))/0x5)+parseInt(_0x9b2e76(0x119))/0x6*(parseInt(_0x9b2e76(0x11c))/0x7)+-parseInt(_0x9b2e76(0x11d))/0x8+-parseInt(_0x9b2e76(0x112))/0x9*(parseInt(_0x9b2e76(0x114))/0xa)+parseInt(_0x9b2e76(0x116))/0xb*(parseInt(_0x9b2e76(0x118))/0xc);if(_0x405d87===_0x1fa6e4)break;else _0x558cac['push'](_0x558cac['shift']());}catch(_0x4103b9){_0x558cac['push'](_0x558cac['shift']());}}}(a13_0x5e15,0xb6b34));import{bffDetail}from'../../commands/bff/detail.js';function a13_0xeca9(_0x441537,_0x4d0f24){_0x441537=_0x441537-0x112;const _0x5e15f5=a13_0x5e15();let _0xeca983=_0x5e15f5[_0x441537];return _0xeca983;}function a13_0x5e15(){const _0x2dd7c6=['120UqywOJ','1293018HWZXhi','5gkPOrz','3960380rnxEOf','7azaJZL','5501352XDaJnm','2460897pHCRfK','1196142MDoAre','20DaYkTT','535209bHtsEa','520465sloJCl','10gvHTFv'];a13_0x5e15=function(){return _0x2dd7c6;};return a13_0x5e15();}import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
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 +1 @@
1
- const a14_0x45829f=a14_0x12c0;function a14_0x2a4b(){const _0x5438ef=['cwd','CLI\x20Built-in\x20Skill\x20installed','2197248TLdvKT','136152rxEbsr','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','nonInteractive','1668ixhNNT','\x20-g\x20-y)...','../../skills/npx-skills-add.js','cli-skill','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','8nGlrlv','2350345Clwoux','82xWwpSq','apiError','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','16943uoTIZr','3920456BjvJuR','write','21427461PvHmxN','pipe','log','install','610ROtBLx','unknown','cli-skill-install','setLogPath','error','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','info','Skipped\x20npx\x20(','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','8771Dwmkhc'];a14_0x2a4b=function(){return _0x5438ef;};return a14_0x2a4b();}function a14_0x12c0(_0x3c855c,_0x19276b){_0x3c855c=_0x3c855c-0xf9;const _0x2a4bab=a14_0x2a4b();let _0x12c09b=_0x2a4bab[_0x3c855c];return _0x12c09b;}(function(_0x2a1aa3,_0x2b6a08){const _0x46b02b=a14_0x12c0,_0x4ea9fd=_0x2a1aa3();while(!![]){try{const _0x4cdf50=parseInt(_0x46b02b(0x10a))/0x1*(parseInt(_0x46b02b(0x107))/0x2)+parseInt(_0x46b02b(0xfc))/0x3+parseInt(_0x46b02b(0x105))/0x4*(parseInt(_0x46b02b(0x106))/0x5)+parseInt(_0x46b02b(0x100))/0x6*(-parseInt(_0x46b02b(0xf9))/0x7)+-parseInt(_0x46b02b(0x10b))/0x8+-parseInt(_0x46b02b(0xfd))/0x9*(-parseInt(_0x46b02b(0x111))/0xa)+-parseInt(_0x46b02b(0x10d))/0xb;if(_0x4cdf50===_0x2b6a08)break;else _0x4ea9fd['push'](_0x4ea9fd['shift']());}catch(_0x4701a5){_0x4ea9fd['push'](_0x4ea9fd['shift']());}}}(a14_0x2a4b,0x7af83));import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a14_0x45829f(0x103),'command':a14_0x45829f(0x110),'description':a14_0x45829f(0xfe),'risk':a14_0x45829f(0x10c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x2ba9cc){const _0x5627e4=a14_0x45829f;logger[_0x5627e4(0x114)](process[_0x5627e4(0xfa)]()),logger[_0x5627e4(0x117)](_0x5627e4(0x113),_0x5627e4(0x116));const {LOVRABET_SKILL_SOURCE:_0x2631d0,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x1afc8f,runNpxSkillsAddGlobal:_0x91302c}=await import(_0x5627e4(0x102)),_0xff2958=_0x2ba9cc[_0x5627e4(0xff)]?_0x5627e4(0x10e):'inherit';console[_0x5627e4(0x10f)](_0x5627e4(0x104)+_0x2631d0+_0x5627e4(0x101));const _0x3254f6=_0x91302c(process[_0x5627e4(0xfa)](),_0x2631d0,{'stdio':_0xff2958});if(_0x3254f6['skipped'])console[_0x5627e4(0x10f)](_0x5627e4(0x118)+_0x1afc8f+_0x5627e4(0x109));else{if(_0x3254f6['ok'])console[_0x5627e4(0x10f)](_0x5627e4(0xfb));else throw CliErrors[_0x5627e4(0x108)]('npx\x20skills\x20add\x20failed:\x20'+(_0x3254f6[_0x5627e4(0x115)]||_0x5627e4(0x112)),_0x5627e4(0x119)+_0x2631d0+'\x20-g\x20-y');}return{'ok':!![]};}}];
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();}