@lovrabet/lovrabet-cli 2.1.7-beta.1 → 2.1.7-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) 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/push-retarget.js +1 -0
  45. package/lib/commands/skill/scopes.js +1 -1
  46. package/lib/commands/skill/summary.js +1 -1
  47. package/lib/commands/skill/templates.js +1 -1
  48. package/lib/commands/skill/validate.js +1 -1
  49. package/lib/commands/sql/detail.js +1 -1
  50. package/lib/commands/sql/exec.js +1 -1
  51. package/lib/commands/sql/index.js +1 -1
  52. package/lib/commands/update.js +1 -1
  53. package/lib/commands/workspace/index.js +1 -1
  54. package/lib/config/schema.js +1 -1
  55. package/lib/constant/app.js +1 -1
  56. package/lib/constant/auth-mode.js +1 -1
  57. package/lib/constant/cli.js +1 -1
  58. package/lib/constant/defaults.js +1 -1
  59. package/lib/constant/distribution.js +1 -1
  60. package/lib/constant/domain.js +1 -1
  61. package/lib/constant/env.js +1 -1
  62. package/lib/constant/output.js +1 -1
  63. package/lib/constant/product.js +1 -1
  64. package/lib/constant/risk.js +1 -1
  65. package/lib/constant/url.js +1 -1
  66. package/lib/context.js +1 -1
  67. package/lib/core/api-client.js +1 -1
  68. package/lib/core/db-resolver.js +1 -1
  69. package/lib/core/sdk-client.js +1 -1
  70. package/lib/errors.js +1 -1
  71. package/lib/framework/build-all-flags.js +1 -1
  72. package/lib/framework/dryrun.js +1 -1
  73. package/lib/framework/flags.js +1 -1
  74. package/lib/framework/help.js +1 -1
  75. package/lib/framework/index.js +1 -1
  76. package/lib/framework/output.js +1 -1
  77. package/lib/framework/preparse.js +1 -1
  78. package/lib/framework/response.js +1 -1
  79. package/lib/framework/runner-confirmation.js +1 -1
  80. package/lib/framework/runner-error.js +1 -1
  81. package/lib/framework/runner.js +1 -1
  82. package/lib/framework/schema-export.js +1 -1
  83. package/lib/framework/types.js +1 -1
  84. package/lib/generated/build-info.js +1 -1
  85. package/lib/help.js +1 -1
  86. package/lib/skills/npx-skills-add.js +1 -1
  87. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  88. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  89. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  90. package/lib/skills/runtime-skill-sync/links.js +1 -1
  91. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  92. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  93. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  94. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  95. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  96. package/lib/skills/runtime-skill-sync/push.js +1 -1
  97. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  98. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  99. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  100. package/lib/skills/runtime-skill-sync.js +1 -1
  101. package/lib/utils/apply-jq-filter.js +1 -1
  102. package/lib/utils/logger.js +1 -1
  103. package/lib/utils/params.js +1 -1
  104. package/lib/utils/platform.js +1 -1
  105. package/lib/utils/update-notice.js +1 -1
  106. package/lib/utils/version.js +1 -1
  107. package/lib/utils/write-cli-side-channel.js +1 -1
  108. package/package.json +3 -2
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- function a0_0x4bd0(_0x23aa18,_0x5e43b5){_0x23aa18=_0x23aa18-0x17b;const _0x181d1b=a0_0x181d();let _0x4bd007=_0x181d1b[_0x23aa18];return _0x4bd007;}const a0_0xb17e22=a0_0x4bd0;(function(_0x3a7b18,_0x5319e9){const _0x290036=a0_0x4bd0,_0x59c2ea=_0x3a7b18();while(!![]){try{const _0x160b72=parseInt(_0x290036(0x181))/0x1*(parseInt(_0x290036(0x189))/0x2)+-parseInt(_0x290036(0x18c))/0x3+-parseInt(_0x290036(0x19b))/0x4+-parseInt(_0x290036(0x190))/0x5+parseInt(_0x290036(0x193))/0x6+parseInt(_0x290036(0x18e))/0x7+parseInt(_0x290036(0x191))/0x8;if(_0x160b72===_0x5319e9)break;else _0x59c2ea['push'](_0x59c2ea['shift']());}catch(_0x40fbfd){_0x59c2ea['push'](_0x59c2ea['shift']());}}}(a0_0x181d,0xeae90));import{jsx as a0_0x24c6ad}from'react/jsx-runtime';import a0_0x248e59 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';function a0_0x181d(){const _0x41741a=['6391810XwcMYU','5326984ZkfzLG','help','7918368vJAoCS','log','definition','exit','hint','write','error','\x20->\x20--','1365488syvtJW','./framework/preparse.js','ERR_STREAM_DESTROYED','Error:\x20','Unexpected\x20error:','code','catch','stderr','assign','\x0aCancelled.\x0a','args','Hint:\x20','flatMap','1RzgMuf','flags','corrected','input','unknownCommand','ERR_USE_AFTER_CLOSE','exitCode','length','1396444RgvljL',':\x20--','original','1532613bHTgBn','defaultCommand','2862818UvjeeY','slice'];a0_0x181d=function(){return _0x41741a;};return a0_0x181d();}const helpText=generateFullHelp(),cli=a0_0x248e59(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'version':getCliVersionDisplay()});void main()[a0_0xb17e22(0x1a1)](handleError);async function main(){try{await run();}catch(_0x36fffc){handleError(_0x36fffc);}}async function run(){const _0x2ab5c9=a0_0xb17e22;let _0x34eb24=cli[_0x2ab5c9(0x184)][0x0],_0x2b83a9=cli[_0x2ab5c9(0x184)][0x1];const _0x4501e7=cli['flags'];try{const {correctFlags:_0x1e7fbc}=await import(_0x2ab5c9(0x19c)),_0x193a1c=getAllDefinitions()[_0x2ab5c9(0x180)](_0x11e9b6=>_0x11e9b6[_0x2ab5c9(0x182)]??[]),{flags:_0x144c30,corrections:_0x421cbc}=_0x1e7fbc(_0x4501e7,_0x193a1c);if(_0x421cbc[_0x2ab5c9(0x188)]>0x0){for(const _0x41ecac of _0x421cbc){process[_0x2ab5c9(0x17b)]['write']('[preparse]\x20'+_0x41ecac['handler']+_0x2ab5c9(0x18a)+_0x41ecac[_0x2ab5c9(0x18b)]+_0x2ab5c9(0x19a)+_0x41ecac[_0x2ab5c9(0x183)]+'\x0a');}Object[_0x2ab5c9(0x17c)](_0x4501e7,_0x144c30);}}catch{}if(!_0x34eb24){const {waitUntilExit:_0x2e97a3}=render(a0_0x24c6ad(Help,{}));await _0x2e97a3();return;}if(!isKnownService(_0x34eb24)){const _0x3a113d=resolveDynamicServiceCommand(cli[_0x2ab5c9(0x184)],_0x4501e7);if(_0x3a113d){if(_0x4501e7[_0x2ab5c9(0x192)]){console[_0x2ab5c9(0x194)](generateCommandHelp(_0x3a113d['definition']));return;}Object[_0x2ab5c9(0x17c)](_0x4501e7,_0x3a113d[_0x2ab5c9(0x182)]);const _0x55acf3=buildConfigFromFlags(_0x4501e7);await initGlobalEnvironment(_0x55acf3);const _0x5127e3=createPipelineEnv(_0x55acf3,_0x4501e7);_0x5127e3['args']=_0x3a113d[_0x2ab5c9(0x17e)],await runCommand(_0x3a113d[_0x2ab5c9(0x195)],_0x5127e3);return;}if(_0x4501e7[_0x2ab5c9(0x192)]){const _0x4eed42=generateDynamicServiceHelp(_0x34eb24);if(_0x4eed42){console[_0x2ab5c9(0x194)](_0x4eed42);return;}}const {waitUntilExit:_0x1a19be}=render(a0_0x24c6ad(Help,{}));await _0x1a19be();return;}const _0x504e15=getServiceEntry(_0x34eb24);if(!_0x2b83a9){if(_0x4501e7[_0x2ab5c9(0x192)]){console['log'](generateServiceHelp(_0x34eb24));return;}if(_0x504e15[_0x2ab5c9(0x18d)])_0x2b83a9=_0x504e15[_0x2ab5c9(0x18d)];else{console['log'](generateServiceHelp(_0x34eb24));return;}}const _0x336e2a=findDefinition(_0x34eb24,_0x2b83a9);!_0x336e2a&&(console[_0x2ab5c9(0x194)](generateServiceHelp(_0x34eb24)),handleError(CliErrors[_0x2ab5c9(0x185)](_0x34eb24+'\x20'+_0x2b83a9)));if(_0x4501e7[_0x2ab5c9(0x192)]){console[_0x2ab5c9(0x194)](generateCommandHelp(_0x336e2a));return;}const _0x252ec5=buildConfigFromFlags(_0x4501e7);await initGlobalEnvironment(_0x252ec5);const _0x2b651d=createPipelineEnv(_0x252ec5,_0x4501e7);_0x2b651d['args']=cli[_0x2ab5c9(0x184)][_0x2ab5c9(0x18f)](0x2),await runCommand(_0x336e2a,_0x2b651d);}function handleError(_0x46abf9){const _0x98b849=a0_0xb17e22;if(_0x46abf9 instanceof CliError){_0x46abf9[_0x98b849(0x1a0)]==='cancelled'&&(process[_0x98b849(0x17b)][_0x98b849(0x198)](_0x98b849(0x17d)),process['exit'](0x0));console[_0x98b849(0x199)](_0x98b849(0x19e)+_0x46abf9['message']);if(_0x46abf9[_0x98b849(0x197)])console['error'](_0x98b849(0x17f)+_0x46abf9['hint']);process['exit'](_0x46abf9[_0x98b849(0x187)]);}isUserCancellation(_0x46abf9)&&(process[_0x98b849(0x17b)][_0x98b849(0x198)](_0x98b849(0x17d)),process[_0x98b849(0x196)](0x0)),console['error'](_0x98b849(0x19f),_0x46abf9),process['exit'](0x1);}function isUserCancellation(_0x105b36){const _0x286ebe=a0_0xb17e22;if(!(_0x105b36 instanceof Error))return![];if(_0x105b36['name']==='ExitPromptError')return!![];if(_0x105b36[_0x286ebe(0x1a0)]===_0x286ebe(0x186))return!![];if(_0x105b36[_0x286ebe(0x1a0)]===_0x286ebe(0x19d))return!![];return![];}
2
+ const a0_0xd33b64=a0_0x3a9e;(function(_0x37f9ab,_0x35ff04){const _0x2a8236=a0_0x3a9e,_0x411012=_0x37f9ab();while(!![]){try{const _0x3a20f9=parseInt(_0x2a8236(0x115))/0x1*(-parseInt(_0x2a8236(0x113))/0x2)+-parseInt(_0x2a8236(0x126))/0x3+-parseInt(_0x2a8236(0x120))/0x4+parseInt(_0x2a8236(0x12a))/0x5+-parseInt(_0x2a8236(0x11c))/0x6*(-parseInt(_0x2a8236(0x107))/0x7)+-parseInt(_0x2a8236(0x116))/0x8+parseInt(_0x2a8236(0x11b))/0x9;if(_0x3a20f9===_0x35ff04)break;else _0x411012['push'](_0x411012['shift']());}catch(_0x1a05e4){_0x411012['push'](_0x411012['shift']());}}}(a0_0x1e2f,0xaa892));import{jsx as a0_0x608b63}from'react/jsx-runtime';function a0_0x3a9e(_0x4b31e3,_0x566604){_0x4b31e3=_0x4b31e3-0x105;const _0x1e2f4d=a0_0x1e2f();let _0x3a9e9c=_0x1e2f4d[_0x4b31e3];return _0x3a9e9c;}import a0_0x46aee1 from'meow';import{render}from'ink';import{Help}from'./help.js';function a0_0x1e2f(){const _0x529ada=['log','definition','name','ExitPromptError','message','1616198TXSTNR','args','1dkPKvv','4815592KBHmtO','input','error','\x0aCancelled.\x0a','Unexpected\x20error:','11125359Pafibw','2624004GuPNju','code','./framework/preparse.js','cancelled','2645916uUosKJ','handler','unknownCommand','stderr','write','catch','400338aSHfQu','original','ERR_STREAM_DESTROYED','help','1776670FgakeP',':\x20--','flags','exit','21spxmLC','defaultCommand','length','flatMap','exitCode','ERR_USE_AFTER_CLOSE','assign'];a0_0x1e2f=function(){return _0x529ada;};return a0_0x1e2f();}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_0x46aee1(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'version':getCliVersionDisplay()});void main()[a0_0xd33b64(0x125)](handleError);async function main(){try{await run();}catch(_0x1de9e8){handleError(_0x1de9e8);}}async function run(){const _0x2fb919=a0_0xd33b64;let _0x41afbd=cli[_0x2fb919(0x117)][0x0],_0x397d0d=cli[_0x2fb919(0x117)][0x1];const _0x5be6bb=cli[_0x2fb919(0x105)];try{const {correctFlags:_0x50fc7b}=await import(_0x2fb919(0x11e)),_0x538ff6=getAllDefinitions()[_0x2fb919(0x10a)](_0x1ef109=>_0x1ef109['flags']??[]),{flags:_0x5ea82a,corrections:_0x36a34b}=_0x50fc7b(_0x5be6bb,_0x538ff6);if(_0x36a34b[_0x2fb919(0x109)]>0x0){for(const _0x3043b7 of _0x36a34b){process[_0x2fb919(0x123)][_0x2fb919(0x124)]('[preparse]\x20'+_0x3043b7[_0x2fb919(0x121)]+_0x2fb919(0x12b)+_0x3043b7[_0x2fb919(0x127)]+'\x20->\x20--'+_0x3043b7['corrected']+'\x0a');}Object[_0x2fb919(0x10d)](_0x5be6bb,_0x5ea82a);}}catch{}if(!_0x41afbd){const {waitUntilExit:_0xdb735f}=render(a0_0x608b63(Help,{}));await _0xdb735f();return;}if(!isKnownService(_0x41afbd)){const _0x2b33b5=resolveDynamicServiceCommand(cli[_0x2fb919(0x117)],_0x5be6bb);if(_0x2b33b5){if(_0x5be6bb[_0x2fb919(0x129)]){console['log'](generateCommandHelp(_0x2b33b5[_0x2fb919(0x10f)]));return;}Object[_0x2fb919(0x10d)](_0x5be6bb,_0x2b33b5[_0x2fb919(0x105)]);const _0x4a34e7=buildConfigFromFlags(_0x5be6bb);await initGlobalEnvironment(_0x4a34e7);const _0x571a94=createPipelineEnv(_0x4a34e7,_0x5be6bb);_0x571a94[_0x2fb919(0x114)]=_0x2b33b5[_0x2fb919(0x114)],await runCommand(_0x2b33b5[_0x2fb919(0x10f)],_0x571a94);return;}if(_0x5be6bb[_0x2fb919(0x129)]){const _0x151efa=generateDynamicServiceHelp(_0x41afbd);if(_0x151efa){console[_0x2fb919(0x10e)](_0x151efa);return;}}const {waitUntilExit:_0x5ac982}=render(a0_0x608b63(Help,{}));await _0x5ac982();return;}const _0x48e922=getServiceEntry(_0x41afbd);if(!_0x397d0d){if(_0x5be6bb[_0x2fb919(0x129)]){console[_0x2fb919(0x10e)](generateServiceHelp(_0x41afbd));return;}if(_0x48e922[_0x2fb919(0x108)])_0x397d0d=_0x48e922[_0x2fb919(0x108)];else{console[_0x2fb919(0x10e)](generateServiceHelp(_0x41afbd));return;}}const _0x1a59f1=findDefinition(_0x41afbd,_0x397d0d);!_0x1a59f1&&(console[_0x2fb919(0x10e)](generateServiceHelp(_0x41afbd)),handleError(CliErrors[_0x2fb919(0x122)](_0x41afbd+'\x20'+_0x397d0d)));if(_0x5be6bb[_0x2fb919(0x129)]){console[_0x2fb919(0x10e)](generateCommandHelp(_0x1a59f1));return;}const _0x418b5a=buildConfigFromFlags(_0x5be6bb);await initGlobalEnvironment(_0x418b5a);const _0x16d5c6=createPipelineEnv(_0x418b5a,_0x5be6bb);_0x16d5c6[_0x2fb919(0x114)]=cli['input']['slice'](0x2),await runCommand(_0x1a59f1,_0x16d5c6);}function handleError(_0x4a7e1d){const _0x352b2a=a0_0xd33b64;if(_0x4a7e1d instanceof CliError){_0x4a7e1d[_0x352b2a(0x11d)]===_0x352b2a(0x11f)&&(process[_0x352b2a(0x123)][_0x352b2a(0x124)](_0x352b2a(0x119)),process['exit'](0x0));console['error']('Error:\x20'+_0x4a7e1d[_0x352b2a(0x112)]);if(_0x4a7e1d['hint'])console['error']('Hint:\x20'+_0x4a7e1d['hint']);process[_0x352b2a(0x106)](_0x4a7e1d[_0x352b2a(0x10b)]);}isUserCancellation(_0x4a7e1d)&&(process[_0x352b2a(0x123)][_0x352b2a(0x124)](_0x352b2a(0x119)),process[_0x352b2a(0x106)](0x0)),console[_0x352b2a(0x118)](_0x352b2a(0x11a),_0x4a7e1d),process[_0x352b2a(0x106)](0x1);}function isUserCancellation(_0x2408a2){const _0x4d96d6=a0_0xd33b64;if(!(_0x2408a2 instanceof Error))return![];if(_0x2408a2[_0x4d96d6(0x110)]===_0x4d96d6(0x111))return!![];if(_0x2408a2[_0x4d96d6(0x11d)]===_0x4d96d6(0x10c))return!![];if(_0x2408a2[_0x4d96d6(0x11d)]===_0x4d96d6(0x128))return!![];return![];}
@@ -1 +1 @@
1
- function a1_0x950c(_0x5d05c4,_0x37c228){_0x5d05c4=_0x5d05c4-0x1d0;const _0x48333a=a1_0x4833();let _0x950c2a=_0x48333a[_0x5d05c4];return _0x950c2a;}const a1_0x3b0c39=a1_0x950c;(function(_0xfa816a,_0x4fa389){const _0x3ea9da=a1_0x950c,_0x5a76a8=_0xfa816a();while(!![]){try{const _0x39a42b=-parseInt(_0x3ea9da(0x21d))/0x1*(parseInt(_0x3ea9da(0x1fc))/0x2)+parseInt(_0x3ea9da(0x240))/0x3+parseInt(_0x3ea9da(0x237))/0x4*(parseInt(_0x3ea9da(0x242))/0x5)+parseInt(_0x3ea9da(0x245))/0x6*(-parseInt(_0x3ea9da(0x235))/0x7)+-parseInt(_0x3ea9da(0x226))/0x8*(parseInt(_0x3ea9da(0x227))/0x9)+-parseInt(_0x3ea9da(0x208))/0xa*(parseInt(_0x3ea9da(0x1da))/0xb)+-parseInt(_0x3ea9da(0x201))/0xc*(-parseInt(_0x3ea9da(0x218))/0xd);if(_0x39a42b===_0x4fa389)break;else _0x5a76a8['push'](_0x5a76a8['shift']());}catch(_0x2c0efb){_0x5a76a8['push'](_0x5a76a8['shift']());}}}(a1_0x4833,0x76870));import{CliErrors}from'../../errors.js';const CATEGORY_FLAG={'name':a1_0x3b0c39(0x239),'type':a1_0x3b0c39(0x1e5),'description':a1_0x3b0c39(0x23a)},KEYWORD_FLAG={'name':a1_0x3b0c39(0x1d5),'type':a1_0x3b0c39(0x1e5),'description':a1_0x3b0c39(0x1fa)},DOC_CODE_FLAG={'name':'code','type':a1_0x3b0c39(0x1e5),'required':!![],'description':a1_0x3b0c39(0x236)},DOCS=[{'code':a1_0x3b0c39(0x1d3),'category':'dataset','title':a1_0x3b0c39(0x247),'method':a1_0x3b0c39(0x200),'path':a1_0x3b0c39(0x20c),'summary':a1_0x3b0c39(0x1ea),'whenToUse':'需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','pathParams':[],'queryParams':[],'bodySchema':a1_0x3b0c39(0x1d0),'responseHighlights':[a1_0x3b0c39(0x210),a1_0x3b0c39(0x23b)],'examples':[a1_0x3b0c39(0x1ed)],'notes':['CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.'],'markdown':[a1_0x3b0c39(0x1f1),'',a1_0x3b0c39(0x1e1)][a1_0x3b0c39(0x22e)]('\x0a')},{'code':a1_0x3b0c39(0x224),'category':a1_0x3b0c39(0x1f5),'title':a1_0x3b0c39(0x1df),'method':a1_0x3b0c39(0x221),'path':'/api/dataset/getOneByCode?code={datasetCode}','summary':a1_0x3b0c39(0x241),'whenToUse':a1_0x3b0c39(0x212),'pathParams':[],'queryParams':[{'name':a1_0x3b0c39(0x222),'description':'32-character\x20dataset\x20code'}],'bodySchema':'None','responseHighlights':[a1_0x3b0c39(0x211),a1_0x3b0c39(0x1e9),'operations\x20describes\x20runtime\x20APIs'],'examples':[a1_0x3b0c39(0x238)],'notes':[a1_0x3b0c39(0x1f8)],'markdown':['##\x20Dataset\x20detail','','Inspect\x20field\x20names,\x20relations,\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.'][a1_0x3b0c39(0x22e)]('\x0a')},{'code':'dataset_data_filter','category':a1_0x3b0c39(0x1f5),'title':'Filter\x20dataset\x20data','method':a1_0x3b0c39(0x200),'path':a1_0x3b0c39(0x1f3),'summary':'条件过滤查询数据','whenToUse':a1_0x3b0c39(0x204),'pathParams':[{'name':a1_0x3b0c39(0x1e3),'description':a1_0x3b0c39(0x1d7)},{'name':a1_0x3b0c39(0x20d),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':a1_0x3b0c39(0x1e0),'responseHighlights':[a1_0x3b0c39(0x1fd),a1_0x3b0c39(0x1de)],'examples':[a1_0x3b0c39(0x1d6)],'notes':['Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.'],'markdown':[a1_0x3b0c39(0x22b),'','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.'][a1_0x3b0c39(0x22e)]('\x0a')},{'code':a1_0x3b0c39(0x232),'category':a1_0x3b0c39(0x1f5),'title':a1_0x3b0c39(0x202),'method':a1_0x3b0c39(0x200),'path':'/api/{appCode}/{datasetCode}/aggregate','summary':'聚合查询数据集数据','whenToUse':a1_0x3b0c39(0x1e4),'pathParams':[{'name':a1_0x3b0c39(0x1e3),'description':a1_0x3b0c39(0x1d7)},{'name':a1_0x3b0c39(0x20d),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':a1_0x3b0c39(0x213),'responseHighlights':[a1_0x3b0c39(0x1d1),'where\x20filters\x20before\x20aggregation'],'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':['Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.',a1_0x3b0c39(0x207)],'markdown':['##\x20Aggregate\x20dataset\x20data','',a1_0x3b0c39(0x205)][a1_0x3b0c39(0x22e)]('\x0a')},{'code':'dataset_data_get_one','category':a1_0x3b0c39(0x1f5),'title':a1_0x3b0c39(0x225),'method':'POST','path':'/api/{appCode}/{datasetCode}/getOne','summary':a1_0x3b0c39(0x219),'whenToUse':a1_0x3b0c39(0x1ff),'pathParams':[{'name':a1_0x3b0c39(0x1e3),'description':'Current\x20app\x20code'},{'name':'datasetCode','description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':'{\x22id\x22:123}','responseHighlights':[a1_0x3b0c39(0x223)],'examples':[a1_0x3b0c39(0x209)],'notes':[a1_0x3b0c39(0x233)],'markdown':'##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.'},{'code':a1_0x3b0c39(0x1d9),'category':a1_0x3b0c39(0x1f5),'title':a1_0x3b0c39(0x1f2),'method':'POST','path':a1_0x3b0c39(0x21c),'summary':'创建数据','whenToUse':a1_0x3b0c39(0x230),'pathParams':[{'name':a1_0x3b0c39(0x1e3),'description':'Current\x20app\x20code'},{'name':a1_0x3b0c39(0x20d),'description':a1_0x3b0c39(0x1d2)}],'queryParams':[],'bodySchema':a1_0x3b0c39(0x1f7),'responseHighlights':[a1_0x3b0c39(0x1db)],'examples':['lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27'],'notes':[a1_0x3b0c39(0x20e)],'markdown':a1_0x3b0c39(0x243)},{'code':a1_0x3b0c39(0x20b),'category':'bf','title':'List\x20BF\x20endpoint\x20functions','method':a1_0x3b0c39(0x221),'path':a1_0x3b0c39(0x244),'summary':a1_0x3b0c39(0x1e7),'whenToUse':a1_0x3b0c39(0x1fe),'pathParams':[{'name':a1_0x3b0c39(0x1e3),'description':a1_0x3b0c39(0x1d7)}],'queryParams':[],'bodySchema':a1_0x3b0c39(0x22f),'responseHighlights':[a1_0x3b0c39(0x206)],'examples':[a1_0x3b0c39(0x21a)],'notes':['CLI\x20has\x20typed\x20`bff\x20detail`\x20and\x20`bff\x20exec`\x20commands\x20for\x20endpoint\x20scripts.'],'markdown':a1_0x3b0c39(0x229)},{'code':'bf_execute','category':'bf','title':a1_0x3b0c39(0x20a),'method':'POST','path':a1_0x3b0c39(0x1dd),'summary':a1_0x3b0c39(0x22a),'whenToUse':'已经确认目标\x20BF\x20的\x20scriptName,且需要实际调用该\x20ENDPOINT\x20脚本完成业务操作时使用','pathParams':[{'name':a1_0x3b0c39(0x1e3),'description':a1_0x3b0c39(0x1d7)},{'name':'scriptName','description':a1_0x3b0c39(0x21b)}],'queryParams':[],'bodySchema':a1_0x3b0c39(0x246),'responseHighlights':[a1_0x3b0c39(0x214)],'examples':[a1_0x3b0c39(0x23f)],'notes':[a1_0x3b0c39(0x1f9)],'markdown':a1_0x3b0c39(0x23d)},{'code':a1_0x3b0c39(0x21f),'category':a1_0x3b0c39(0x1eb),'title':'Execute\x20custom\x20SQL','method':a1_0x3b0c39(0x200),'path':a1_0x3b0c39(0x217),'summary':a1_0x3b0c39(0x21e),'whenToUse':'已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','pathParams':[],'queryParams':[],'bodySchema':a1_0x3b0c39(0x1ee),'responseHighlights':[a1_0x3b0c39(0x1ec)],'examples':[a1_0x3b0c39(0x1f0)],'notes':[a1_0x3b0c39(0x216)],'markdown':a1_0x3b0c39(0x1e8)}];function entrySummary(_0xd21883){const _0x46bd01=a1_0x3b0c39;return{'code':_0xd21883['code'],'category':_0xd21883['category'],'method':_0xd21883[_0x46bd01(0x228)],'path':_0xd21883['path'],'summary':_0xd21883['summary'],'whenToUse':_0xd21883[_0x46bd01(0x1e2)]};}export function listApiDocEntries(_0x3e0385={}){const _0x4a8eeb=a1_0x3b0c39,_0x583fdd=String(_0x3e0385[_0x4a8eeb(0x239)]||'')[_0x4a8eeb(0x1fb)](),_0x21df80=String(_0x3e0385[_0x4a8eeb(0x1d5)]||'')['trim']()[_0x4a8eeb(0x1ef)]();return DOCS[_0x4a8eeb(0x23e)](_0x5b97e5=>{const _0x5ca859=_0x4a8eeb;if(_0x583fdd&&_0x5b97e5[_0x5ca859(0x239)]!==_0x583fdd)return![];if(!_0x21df80)return!![];return[_0x5b97e5[_0x5ca859(0x222)],_0x5b97e5[_0x5ca859(0x239)],_0x5b97e5[_0x5ca859(0x228)],_0x5b97e5[_0x5ca859(0x23c)],_0x5b97e5[_0x5ca859(0x220)],_0x5b97e5[_0x5ca859(0x1e2)],_0x5b97e5[_0x5ca859(0x1f6)]][_0x5ca859(0x22e)]('\x20')[_0x5ca859(0x1ef)]()[_0x5ca859(0x1d4)](_0x21df80);})[_0x4a8eeb(0x1d8)](entrySummary);}function a1_0x4833(){const _0x2a0076=['276WwogjL','lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>','category','Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset','paging.totalCount\x20gives\x20total\x20rows','path','##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.','filter','lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27','889953gEWxhu','获取数据集详情','13465auTYAh','##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.','/api/endpoint/{appCode}/functions','366678UcxBbI','{\x22param\x22:\x22value\x22}','List\x20datasets','{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','result\x20rows\x20contain\x20aggregate\x20aliases','32-character\x20dataset\x20code','dataset_list','includes','keyword','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:5}\x27','Current\x20app\x20code','map','dataset_data_create','94182LgxtrI','Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result','API\x20doc\x20code\x20not\x20found:\x20','/api/endpoint/{appCode}/{scriptName}','paging\x20contains\x20pagination','Dataset\x20detail','{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.','whenToUse','appCode','需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用','string','str','获取应用下可调用的\x20BF\x20函数列表','##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.','relations\x20contains\x20the\x20object-shaped\x20API\x20relations\x20value\x20when\x20returned','分页获取数据集列表','custom_sql','Returns\x20SQL\x20execution\x20payload','lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress','{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','toLowerCase','lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27','##\x20List\x20datasets','Create\x20dataset\x20record','/api/{appCode}/{datasetCode}/filter','length','dataset','title','{\x22fieldName\x22:\x22value\x22}','If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.','Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.','Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text','trim','1124iMfqdC','tableData\x20contains\x20records','需要先确认当前应用有哪些可执行的\x20BF/ENDPOINT\x20函数,以及收敛可用\x20scriptName\x20时使用','已经知道记录\x20id,需要按数据集读取单条业务数据时使用','POST','46596drNSUy','Aggregate\x20dataset\x20data','find','需要携带\x20where、orderBy、分页等条件读取业务数据时使用','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.','Returns\x20endpoint\x20functionName/id/description','`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','250ovUoGS','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27','Execute\x20BF\x20endpoint\x20function','bf_function_list','/api/dataset/get-dataset-list-by-app-code','datasetCode','This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.','read','tableData\x20contains\x20dataset\x20id/code/name','fields/properties\x20describe\x20data\x20shape','需要按数据集\x20code\x20获取字段、表信息、关联关系(relations)或操作定义时使用','{\x22aggregate\x22:[{\x22column\x22:\x20\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','Returns\x20script\x20business\x20payload','List\x20available\x20runtime\x20API\x20documentation\x20entries','Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.','/api/custom/executeSql','5317YOFSJG','查询单条数据','lovrabet\x20bff\x20detail\x20--id\x20<scriptId>\x20--appcode\x20<appCode>','Endpoint\x20function\x20name','/api/{appCode}/{datasetCode}/create','1428WPzSkD','执行自定义\x20SQL','custom_sql_execute','summary','GET','code','Returns\x20one\x20matching\x20business\x20record','dataset_detail','Get\x20one\x20dataset\x20record','32HWfamt','41679xksvlV','method','##\x20List\x20BF\x20endpoint\x20functions\x0a\x0aDiscover\x20executable\x20endpoint\x20functions.','执行指定\x20BF\x20函数','##\x20Filter\x20dataset\x20data','validation','detail','join','None','需要向指定数据集新增一条业务数据时使用','api-doc','dataset_data_aggregate','Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.','Show\x20runtime\x20API\x20documentation\x20by\x20code','63JwWuax','API\x20doc\x20code,\x20for\x20example\x20dataset_list'];a1_0x4833=function(){return _0x2a0076;};return a1_0x4833();}export function getApiDocDetail(_0x5bbb54){const _0x69aa4b=a1_0x3b0c39,_0x5cf0bb=DOCS[_0x69aa4b(0x203)](_0x5120d0=>_0x5120d0[_0x69aa4b(0x222)]===_0x5bbb54);if(!_0x5cf0bb)throw CliErrors[_0x69aa4b(0x22c)](_0x69aa4b(0x1dc)+_0x5bbb54);return{..._0x5cf0bb};}const apiDocList={'service':a1_0x3b0c39(0x231),'command':'list','description':a1_0x3b0c39(0x215),'risk':'read','requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0x3ed44d){const _0x515eec=a1_0x3b0c39,_0x2f5dc6=listApiDocEntries({'category':_0x3ed44d['str'](_0x515eec(0x239)),'keyword':_0x3ed44d[_0x515eec(0x1e6)](_0x515eec(0x1d5))});return{'ok':!![],'data':{'total':_0x2f5dc6[_0x515eec(0x1f4)],'items':_0x2f5dc6}};}},apiDocDetail={'service':a1_0x3b0c39(0x231),'command':a1_0x3b0c39(0x22d),'description':a1_0x3b0c39(0x234),'risk':a1_0x3b0c39(0x20f),'requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0x23fcd9){const _0x12c045=a1_0x3b0c39;return{'ok':!![],'data':getApiDocDetail(_0x23fcd9[_0x12c045(0x1e6)]('code'))};}};export const apiDocDefinitions=[apiDocList,apiDocDetail];
1
+ function a1_0x156c(){const _0x1b8a8d=['4141816rqVhJu','执行自定义\x20SQL','relations\x20contains\x20the\x20object-shaped\x20API\x20relations\x20value\x20when\x20returned','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.','Create\x20dataset\x20record','API\x20doc\x20code,\x20for\x20example\x20dataset_list','Aggregate\x20dataset\x20data','scriptName','tableData\x20contains\x20dataset\x20id/code/name','filter','创建数据','##\x20Dataset\x20detail','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.','whenToUse','list','Execute\x20BF\x20endpoint\x20function','{\x22fieldName\x22:\x22value\x22}','CLI\x20has\x20typed\x20`bff\x20detail`\x20and\x20`bff\x20exec`\x20commands\x20for\x20endpoint\x20scripts.','bf_function_list','Returns\x20one\x20matching\x20business\x20record','聚合查询数据集数据','category','`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','Dataset\x20detail','lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27','##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.','lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>','##\x20List\x20datasets','str','length','Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text','{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','keyword','API\x20doc\x20code\x20not\x20found:\x20','Current\x20app\x20code','/api/dataset/get-dataset-list-by-app-code','##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.','lovrabet\x20bff\x20detail\x20--id\x20<scriptId>\x20--appcode\x20<appCode>','code','toLowerCase','POST','已经确认目标\x20BF\x20的\x20scriptName,且需要实际调用该\x20ENDPOINT\x20脚本完成业务操作时使用','/api/endpoint/{appCode}/functions','read','GET','##\x20List\x20BF\x20endpoint\x20functions\x0a\x0aDiscover\x20executable\x20endpoint\x20functions.','514PHNOzi','Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.','3262602jzToia','{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','map','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.','method','dataset_data_create','api-doc','需要按数据集\x20code\x20获取字段、表信息、关联关系(relations)或操作定义时使用','validation','已经知道记录\x20id,需要按数据集读取单条业务数据时使用','{\x22id\x22:123}','lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:5}\x27','Returns\x20SQL\x20execution\x20payload','Returns\x20script\x20business\x20payload','CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.','Filter\x20dataset\x20data','If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.','where\x20filters\x20before\x20aggregation','Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.','Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.','##\x20Aggregate\x20dataset\x20data','分页获取数据集列表','32-character\x20dataset\x20code','dataset_data_get_one','This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.','summary','title','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','获取应用下可调用的\x20BF\x20函数列表','Get\x20one\x20dataset\x20record','需要携带\x20where、orderBy、分页等条件读取业务数据时使用','/api/{appCode}/{datasetCode}/filter','/api/{appCode}/{datasetCode}/aggregate','/api/{appCode}/{datasetCode}/create','dataset','dataset_data_aggregate','{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','461xzheBg','dataset_data_filter','List\x20datasets','143460nJWVGR','string','需要向指定数据集新增一条业务数据时使用','includes','需要先确认当前应用有哪些可执行的\x20BF/ENDPOINT\x20函数,以及收敛可用\x20scriptName\x20时使用','2142513YHWspn','join','Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.','已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','/api/{appCode}/{datasetCode}/getOne','Show\x20runtime\x20API\x20documentation\x20by\x20code','Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result','Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.','tableData\x20contains\x20records','dataset_detail','find','List\x20BF\x20endpoint\x20functions','/api/endpoint/{appCode}/{scriptName}','lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress','appCode','1225700qKpFzY','Endpoint\x20function\x20name','##\x20Filter\x20dataset\x20data','dataset_list','Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset','/api/dataset/getOneByCode?code={datasetCode}','datasetCode','条件过滤查询数据','None','执行指定\x20BF\x20函数','4596312YedJeK'];a1_0x156c=function(){return _0x1b8a8d;};return a1_0x156c();}function a1_0xa7db(_0x49faf6,_0x102d69){_0x49faf6=_0x49faf6-0x105;const _0x156c4a=a1_0x156c();let _0xa7dbf7=_0x156c4a[_0x49faf6];return _0xa7dbf7;}const a1_0x243a00=a1_0xa7db;(function(_0x180c12,_0x4b6f82){const _0x46ef08=a1_0xa7db,_0xd319e0=_0x180c12();while(!![]){try{const _0x40a24e=parseInt(_0x46ef08(0x10b))/0x1*(parseInt(_0x46ef08(0x15b))/0x2)+-parseInt(_0x46ef08(0x113))/0x3+parseInt(_0x46ef08(0x122))/0x4+-parseInt(_0x46ef08(0x10e))/0x5+parseInt(_0x46ef08(0x12c))/0x6+parseInt(_0x46ef08(0x15d))/0x7+-parseInt(_0x46ef08(0x12d))/0x8;if(_0x40a24e===_0x4b6f82)break;else _0xd319e0['push'](_0xd319e0['shift']());}catch(_0x5b55ac){_0xd319e0['push'](_0xd319e0['shift']());}}}(a1_0x156c,0x60ca2));import{CliErrors}from'../../errors.js';const CATEGORY_FLAG={'name':a1_0x243a00(0x142),'type':'string','description':a1_0x243a00(0x126)},KEYWORD_FLAG={'name':a1_0x243a00(0x14d),'type':'string','description':a1_0x243a00(0x14b)},DOC_CODE_FLAG={'name':a1_0x243a00(0x153),'type':a1_0x243a00(0x10f),'required':!![],'description':a1_0x243a00(0x132)},DOCS=[{'code':a1_0x243a00(0x125),'category':a1_0x243a00(0x108),'title':a1_0x243a00(0x10d),'method':'POST','path':a1_0x243a00(0x150),'summary':a1_0x243a00(0x173),'whenToUse':'需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','pathParams':[],'queryParams':[],'bodySchema':a1_0x243a00(0x14c),'responseHighlights':[a1_0x243a00(0x135),'paging.totalCount\x20gives\x20total\x20rows'],'examples':[a1_0x243a00(0x120)],'notes':[a1_0x243a00(0x16c)],'markdown':[a1_0x243a00(0x148),'',a1_0x243a00(0x130)]['join']('\x0a')},{'code':a1_0x243a00(0x11c),'category':'dataset','title':a1_0x243a00(0x144),'method':a1_0x243a00(0x159),'path':a1_0x243a00(0x127),'summary':'获取数据集详情','whenToUse':a1_0x243a00(0x164),'pathParams':[],'queryParams':[{'name':a1_0x243a00(0x153),'description':a1_0x243a00(0x174)}],'bodySchema':a1_0x243a00(0x12a),'responseHighlights':['fields/properties\x20describe\x20data\x20shape',a1_0x243a00(0x12f),'operations\x20describes\x20runtime\x20APIs'],'examples':[a1_0x243a00(0x147)],'notes':[a1_0x243a00(0x16e)],'markdown':[a1_0x243a00(0x138),'','Inspect\x20field\x20names,\x20relations,\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.'][a1_0x243a00(0x114)]('\x0a')},{'code':a1_0x243a00(0x10c),'category':a1_0x243a00(0x108),'title':a1_0x243a00(0x16d),'method':a1_0x243a00(0x155),'path':a1_0x243a00(0x105),'summary':a1_0x243a00(0x129),'whenToUse':a1_0x243a00(0x17c),'pathParams':[{'name':'appCode','description':a1_0x243a00(0x14f)},{'name':a1_0x243a00(0x128),'description':a1_0x243a00(0x174)}],'queryParams':[],'bodySchema':a1_0x243a00(0x15e),'responseHighlights':[a1_0x243a00(0x11b),'paging\x20contains\x20pagination'],'examples':[a1_0x243a00(0x169)],'notes':[a1_0x243a00(0x170)],'markdown':[a1_0x243a00(0x124),'',a1_0x243a00(0x139)][a1_0x243a00(0x114)]('\x0a')},{'code':a1_0x243a00(0x109),'category':a1_0x243a00(0x108),'title':a1_0x243a00(0x133),'method':a1_0x243a00(0x155),'path':a1_0x243a00(0x106),'summary':a1_0x243a00(0x141),'whenToUse':'需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用','pathParams':[{'name':a1_0x243a00(0x121),'description':a1_0x243a00(0x14f)},{'name':a1_0x243a00(0x128),'description':a1_0x243a00(0x174)}],'queryParams':[],'bodySchema':'{\x22aggregate\x22:[{\x22column\x22:\x20\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','responseHighlights':['result\x20rows\x20contain\x20aggregate\x20aliases',a1_0x243a00(0x16f)],'examples':[a1_0x243a00(0x179)],'notes':[a1_0x243a00(0x11a),a1_0x243a00(0x143)],'markdown':[a1_0x243a00(0x172),'',a1_0x243a00(0x160)][a1_0x243a00(0x114)]('\x0a')},{'code':a1_0x243a00(0x175),'category':'dataset','title':a1_0x243a00(0x17b),'method':a1_0x243a00(0x155),'path':a1_0x243a00(0x117),'summary':'查询单条数据','whenToUse':a1_0x243a00(0x166),'pathParams':[{'name':'appCode','description':'Current\x20app\x20code'},{'name':a1_0x243a00(0x128),'description':a1_0x243a00(0x174)}],'queryParams':[],'bodySchema':a1_0x243a00(0x167),'responseHighlights':[a1_0x243a00(0x140)],'examples':['lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27'],'notes':[a1_0x243a00(0x15c)],'markdown':'##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.'},{'code':a1_0x243a00(0x162),'category':'dataset','title':a1_0x243a00(0x131),'method':a1_0x243a00(0x155),'path':a1_0x243a00(0x107),'summary':a1_0x243a00(0x137),'whenToUse':a1_0x243a00(0x110),'pathParams':[{'name':a1_0x243a00(0x121),'description':a1_0x243a00(0x14f)},{'name':a1_0x243a00(0x128),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':a1_0x243a00(0x13d),'responseHighlights':[a1_0x243a00(0x119)],'examples':['lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27'],'notes':[a1_0x243a00(0x176)],'markdown':'##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.'},{'code':a1_0x243a00(0x13f),'category':'bf','title':a1_0x243a00(0x11e),'method':'GET','path':a1_0x243a00(0x157),'summary':a1_0x243a00(0x17a),'whenToUse':a1_0x243a00(0x112),'pathParams':[{'name':'appCode','description':'Current\x20app\x20code'}],'queryParams':[],'bodySchema':'None','responseHighlights':['Returns\x20endpoint\x20functionName/id/description'],'examples':[a1_0x243a00(0x152)],'notes':[a1_0x243a00(0x13e)],'markdown':a1_0x243a00(0x15a)},{'code':'bf_execute','category':'bf','title':a1_0x243a00(0x13c),'method':a1_0x243a00(0x155),'path':a1_0x243a00(0x11f),'summary':a1_0x243a00(0x12b),'whenToUse':a1_0x243a00(0x156),'pathParams':[{'name':a1_0x243a00(0x121),'description':a1_0x243a00(0x14f)},{'name':a1_0x243a00(0x134),'description':a1_0x243a00(0x123)}],'queryParams':[],'bodySchema':'{\x22param\x22:\x22value\x22}','responseHighlights':[a1_0x243a00(0x16b)],'examples':[a1_0x243a00(0x168)],'notes':[a1_0x243a00(0x171)],'markdown':a1_0x243a00(0x146)},{'code':'custom_sql_execute','category':'custom_sql','title':'Execute\x20custom\x20SQL','method':'POST','path':'/api/custom/executeSql','summary':a1_0x243a00(0x12e),'whenToUse':a1_0x243a00(0x116),'pathParams':[],'queryParams':[],'bodySchema':a1_0x243a00(0x10a),'responseHighlights':[a1_0x243a00(0x16a)],'examples':[a1_0x243a00(0x145)],'notes':[a1_0x243a00(0x115)],'markdown':a1_0x243a00(0x151)}];function entrySummary(_0x5b83ee){const _0x3e8de2=a1_0x243a00;return{'code':_0x5b83ee[_0x3e8de2(0x153)],'category':_0x5b83ee[_0x3e8de2(0x142)],'method':_0x5b83ee[_0x3e8de2(0x161)],'path':_0x5b83ee['path'],'summary':_0x5b83ee['summary'],'whenToUse':_0x5b83ee['whenToUse']};}export function listApiDocEntries(_0x4672a5={}){const _0x4ad5a0=a1_0x243a00,_0x2d6be1=String(_0x4672a5[_0x4ad5a0(0x142)]||'')['trim'](),_0x1658ff=String(_0x4672a5[_0x4ad5a0(0x14d)]||'')['trim']()[_0x4ad5a0(0x154)]();return DOCS[_0x4ad5a0(0x136)](_0x1273bc=>{const _0x510f94=_0x4ad5a0;if(_0x2d6be1&&_0x1273bc[_0x510f94(0x142)]!==_0x2d6be1)return![];if(!_0x1658ff)return!![];return[_0x1273bc[_0x510f94(0x153)],_0x1273bc['category'],_0x1273bc[_0x510f94(0x161)],_0x1273bc['path'],_0x1273bc[_0x510f94(0x177)],_0x1273bc[_0x510f94(0x13a)],_0x1273bc[_0x510f94(0x178)]][_0x510f94(0x114)]('\x20')[_0x510f94(0x154)]()[_0x510f94(0x111)](_0x1658ff);})[_0x4ad5a0(0x15f)](entrySummary);}export function getApiDocDetail(_0x183579){const _0x3ea4af=a1_0x243a00,_0x57e3b4=DOCS[_0x3ea4af(0x11d)](_0x11e32a=>_0x11e32a[_0x3ea4af(0x153)]===_0x183579);if(!_0x57e3b4)throw CliErrors[_0x3ea4af(0x165)](_0x3ea4af(0x14e)+_0x183579);return{..._0x57e3b4};}const apiDocList={'service':a1_0x243a00(0x163),'command':a1_0x243a00(0x13b),'description':'List\x20available\x20runtime\x20API\x20documentation\x20entries','risk':'read','requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0x58e33a){const _0x42bad7=a1_0x243a00,_0x5e7b10=listApiDocEntries({'category':_0x58e33a[_0x42bad7(0x149)]('category'),'keyword':_0x58e33a[_0x42bad7(0x149)](_0x42bad7(0x14d))});return{'ok':!![],'data':{'total':_0x5e7b10[_0x42bad7(0x14a)],'items':_0x5e7b10}};}},apiDocDetail={'service':a1_0x243a00(0x163),'command':'detail','description':a1_0x243a00(0x118),'risk':a1_0x243a00(0x158),'requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0x5af658){const _0x6ff17c=a1_0x243a00;return{'ok':!![],'data':getApiDocDetail(_0x5af658[_0x6ff17c(0x149)](_0x6ff17c(0x153)))};}};export const apiDocDefinitions=[apiDocList,apiDocDetail];
@@ -1 +1 @@
1
- function a2_0x4382(){const _0x27ba14=['1152618GJgZJQ','3795608wYZWIk','homeDirName','digest','436233Bshgzk','my-apps.json','22760PGqBFg','unknown','utf8','trim','9YOMmFg','42JMXtjJ','24365RgVAAF','8063XyEdIK','EPERM','EACCES','ak_','find','isArray','stringify','slice','code','EXDEV','appName','hex','cache','items','456532tHkksU','36fpHWmK','13543iDvINp'];a2_0x4382=function(){return _0x27ba14;};return a2_0x4382();}(function(_0x47d311,_0x562f93){const _0x572ca2=a2_0x446a,_0x591b65=_0x47d311();while(!![]){try{const _0x2dec1f=-parseInt(_0x572ca2(0x1a9))/0x1*(parseInt(_0x572ca2(0x1a8))/0x2)+-parseInt(_0x572ca2(0x1aa))/0x3+parseInt(_0x572ca2(0x1a7))/0x4+-parseInt(_0x572ca2(0x198))/0x5+parseInt(_0x572ca2(0x197))/0x6*(-parseInt(_0x572ca2(0x1ae))/0x7)+parseInt(_0x572ca2(0x1ab))/0x8*(-parseInt(_0x572ca2(0x196))/0x9)+parseInt(_0x572ca2(0x1b0))/0xa*(parseInt(_0x572ca2(0x199))/0xb);if(_0x2dec1f===_0x562f93)break;else _0x591b65['push'](_0x591b65['shift']());}catch(_0x5beab2){_0x591b65['push'](_0x591b65['shift']());}}}(a2_0x4382,0x3a538));import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a2_0x446a(_0x35d7af,_0x311a7d){_0x35d7af=_0x35d7af-0x193;const _0x4382d8=a2_0x4382();let _0x446af5=_0x4382d8[_0x35d7af];return _0x446af5;}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(_0x165df5){const _0x228878=a2_0x446a,_0x49407b=_0x165df5[_0x228878(0x195)](),_0x59a7e1=_0x49407b[_0x228878(0x1a0)](-0x6)||_0x228878(0x193),_0x1c984a=createHash('sha256')['update'](_0x49407b)[_0x228878(0x1ad)](_0x228878(0x1a4))['slice'](0x0,0xc);return _0x228878(0x19c)+_0x59a7e1+'_'+_0x1c984a;}export function getAppCacheFilePath(_0x1af581,_0x2244ae){const _0x4825e9=a2_0x446a;return resolve(homedir(),PRODUCT_CONFIG[_0x4825e9(0x1ac)],_0x4825e9(0x1a5),_0x1af581,fingerprintAccessKey(_0x2244ae),_0x4825e9(0x1af));}export function readCachedAppList(_0x312bcf,_0x24f017){const _0x46abaa=a2_0x446a;if(!_0x24f017?.[_0x46abaa(0x195)]())return null;const _0x2219e9=getAppCacheFilePath(_0x312bcf,_0x24f017);if(!existsSync(_0x2219e9))return null;try{const _0x317eac=readFileSync(_0x2219e9,_0x46abaa(0x194));if(!_0x317eac['trim']())return null;const _0x149a24=JSON['parse'](_0x317eac);if(!Array[_0x46abaa(0x19e)](_0x149a24['items']))return null;return _0x149a24;}catch{return null;}}export function writeCachedAppList(_0x5aabb5,_0xf1c157,_0x17914e){const _0x4e450f=a2_0x446a,_0x465e70=getAppCacheFilePath(_0x5aabb5,_0xf1c157),_0x373b2f=dirname(_0x465e70);!existsSync(_0x373b2f)&&mkdirSync(_0x373b2f,{'recursive':!![]});const _0x548eb7=_0x465e70+'.tmp';try{writeFileSync(_0x548eb7,JSON['stringify'](_0x17914e,null,0x2)+'\x0a',{'encoding':_0x4e450f(0x194),'mode':0x180});try{renameSync(_0x548eb7,_0x465e70);}catch(_0x4ef8e2){if(_0x4ef8e2[_0x4e450f(0x1a1)]===_0x4e450f(0x19a)||_0x4ef8e2['code']===_0x4e450f(0x1a2)||_0x4ef8e2[_0x4e450f(0x1a1)]===_0x4e450f(0x19b)){writeFileSync(_0x465e70,JSON[_0x4e450f(0x19f)](_0x17914e,null,0x2)+'\x0a',{'encoding':_0x4e450f(0x194)});try{unlinkSync(_0x548eb7);}catch{}}else throw _0x4ef8e2;}}catch(_0x275e39){try{unlinkSync(_0x548eb7);}catch{}throw _0x275e39;}return _0x465e70;}export function resolveCachedAppCode(_0x3ddf41,_0x22c5cd,_0x38fff2){const _0x3311a7=a2_0x446a;if(!_0x3ddf41)return undefined;const _0x43e4ff=readCachedAppList(_0x22c5cd,_0x38fff2),_0x47ff6e=_0x43e4ff?.[_0x3311a7(0x1a6)][_0x3311a7(0x19d)](_0x4b4f97=>_0x4b4f97[_0x3311a7(0x1a3)]===_0x3ddf41&&isRuntimeAccessibleApp(_0x4b4f97));return _0x47ff6e?.['appCode']?.[_0x3311a7(0x195)]()||undefined;}
1
+ (function(_0x568419,_0x4b8864){const _0x2937f4=a2_0x3366,_0x46639f=_0x568419();while(!![]){try{const _0x1f9765=-parseInt(_0x2937f4(0x1d3))/0x1*(-parseInt(_0x2937f4(0x1cf))/0x2)+-parseInt(_0x2937f4(0x1de))/0x3*(-parseInt(_0x2937f4(0x1da))/0x4)+parseInt(_0x2937f4(0x1db))/0x5+-parseInt(_0x2937f4(0x1ec))/0x6*(parseInt(_0x2937f4(0x1d7))/0x7)+parseInt(_0x2937f4(0x1d6))/0x8*(-parseInt(_0x2937f4(0x1d9))/0x9)+parseInt(_0x2937f4(0x1ea))/0xa*(parseInt(_0x2937f4(0x1e6))/0xb)+-parseInt(_0x2937f4(0x1e7))/0xc;if(_0x1f9765===_0x4b8864)break;else _0x46639f['push'](_0x46639f['shift']());}catch(_0x1fa572){_0x46639f['push'](_0x46639f['shift']());}}}(a2_0x4aa9,0xa1c1f));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_0x3366(_0x15b1e9,_0x1cb01b){_0x15b1e9=_0x15b1e9-0x1cf;const _0x4aa934=a2_0x4aa9();let _0x3366d0=_0x4aa934[_0x15b1e9];return _0x3366d0;}import{isRuntimeAccessibleApp}from'../../commands/app/eligibility.js';export function fingerprintAccessKey(_0xd60292){const _0x168cff=a2_0x3366,_0x48ef90=_0xd60292['trim'](),_0x31874c=_0x48ef90[_0x168cff(0x1e8)](-0x6)||_0x168cff(0x1e5),_0x5ac0f0=createHash(_0x168cff(0x1df))[_0x168cff(0x1d0)](_0x48ef90)[_0x168cff(0x1dc)]('hex')[_0x168cff(0x1e8)](0x0,0xc);return _0x168cff(0x1ed)+_0x31874c+'_'+_0x5ac0f0;}export function getAppCacheFilePath(_0xdc1a06,_0x5232a6){const _0x3e8662=a2_0x3366;return resolve(homedir(),PRODUCT_CONFIG[_0x3e8662(0x1d1)],_0x3e8662(0x1e2),_0xdc1a06,fingerprintAccessKey(_0x5232a6),_0x3e8662(0x1e9));}export function readCachedAppList(_0x18d81d,_0x2aee17){const _0x1e86c6=a2_0x3366;if(!_0x2aee17?.[_0x1e86c6(0x1d8)]())return null;const _0x2a137d=getAppCacheFilePath(_0x18d81d,_0x2aee17);if(!existsSync(_0x2a137d))return null;try{const _0x4bb399=readFileSync(_0x2a137d,_0x1e86c6(0x1eb));if(!_0x4bb399[_0x1e86c6(0x1d8)]())return null;const _0x363d0e=JSON[_0x1e86c6(0x1e0)](_0x4bb399);if(!Array[_0x1e86c6(0x1d2)](_0x363d0e[_0x1e86c6(0x1d4)]))return null;return _0x363d0e;}catch{return null;}}function a2_0x4aa9(){const _0x1f8bbe=['homeDirName','isArray','3uZcVFE','items','code','83352FSdnFr','224JtrCfA','trim','189pEuZHO','496336hsEXJh','4736585kMXqGB','digest','appName','24xcjpTs','sha256','parse','stringify','cache','EACCES','.tmp','unknown','1216457NhBRdd','7258152UrJNdj','slice','my-apps.json','20CnkLxk','utf8','134868YtHetF','ak_','EPERM','29558uSQLvQ','update'];a2_0x4aa9=function(){return _0x1f8bbe;};return a2_0x4aa9();}export function writeCachedAppList(_0x4211e6,_0x5930ea,_0x24f61f){const _0x329ed6=a2_0x3366,_0x3a5624=getAppCacheFilePath(_0x4211e6,_0x5930ea),_0x3a8855=dirname(_0x3a5624);!existsSync(_0x3a8855)&&mkdirSync(_0x3a8855,{'recursive':!![]});const _0x41b02c=_0x3a5624+_0x329ed6(0x1e4);try{writeFileSync(_0x41b02c,JSON['stringify'](_0x24f61f,null,0x2)+'\x0a',{'encoding':_0x329ed6(0x1eb),'mode':0x180});try{renameSync(_0x41b02c,_0x3a5624);}catch(_0x1af354){if(_0x1af354['code']===_0x329ed6(0x1ee)||_0x1af354[_0x329ed6(0x1d5)]==='EXDEV'||_0x1af354['code']===_0x329ed6(0x1e3)){writeFileSync(_0x3a5624,JSON[_0x329ed6(0x1e1)](_0x24f61f,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0x41b02c);}catch{}}else throw _0x1af354;}}catch(_0x1b78de){try{unlinkSync(_0x41b02c);}catch{}throw _0x1b78de;}return _0x3a5624;}export function resolveCachedAppCode(_0x498e5c,_0x14c161,_0x42dd63){const _0x4d23d4=a2_0x3366;if(!_0x498e5c)return undefined;const _0x371b1b=readCachedAppList(_0x14c161,_0x42dd63),_0x5e9125=_0x371b1b?.[_0x4d23d4(0x1d4)]['find'](_0x195b07=>_0x195b07[_0x4d23d4(0x1dd)]===_0x498e5c&&isRuntimeAccessibleApp(_0x195b07));return _0x5e9125?.['appCode']?.[_0x4d23d4(0x1d8)]()||undefined;}
@@ -1 +1 @@
1
- const a3_0x195e0e=a3_0x5a04;(function(_0x48a8b5,_0x3965ce){const _0x42c009=a3_0x5a04,_0x53d09c=_0x48a8b5();while(!![]){try{const _0x574f60=parseInt(_0x42c009(0x23c))/0x1+-parseInt(_0x42c009(0x1f1))/0x2*(-parseInt(_0x42c009(0x23d))/0x3)+parseInt(_0x42c009(0x1f7))/0x4+-parseInt(_0x42c009(0x228))/0x5+-parseInt(_0x42c009(0x1ff))/0x6+-parseInt(_0x42c009(0x229))/0x7*(-parseInt(_0x42c009(0x248))/0x8)+parseInt(_0x42c009(0x236))/0x9*(-parseInt(_0x42c009(0x22c))/0xa);if(_0x574f60===_0x3965ce)break;else _0x53d09c['push'](_0x53d09c['shift']());}catch(_0x956a92){_0x53d09c['push'](_0x53d09c['shift']());}}}(a3_0x2345,0x87ae6));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';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{filterRuntimeAccessibleApps,findAppByCode,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';function a3_0x5a04(_0x3a3e51,_0x80c5e1){_0x3a3e51=_0x3a3e51-0x1f0;const _0x234515=a3_0x2345();let _0x5a04ae=_0x234515[_0x3a3e51];return _0x5a04ae;}const GLOBAL_FLAG={'name':a3_0x195e0e(0x234),'type':'boolean','description':a3_0x195e0e(0x23f),'default':![]};function collectFlags(_0x488d6f,_0x51a5f7){const _0x26568c=a3_0x195e0e,_0x3e643d={};for(const _0x3e286b of _0x51a5f7){const _0x58cdff=_0x3e286b[_0x26568c(0x21c)]===_0x26568c(0x1fd)?_0x488d6f[_0x26568c(0x21a)](_0x3e286b[_0x26568c(0x235)]):_0x488d6f[_0x26568c(0x23e)](_0x3e286b[_0x26568c(0x235)]);if(_0x58cdff!==''&&_0x58cdff!==![])_0x3e643d[_0x3e286b[_0x26568c(0x235)]]=_0x58cdff;}if(_0x488d6f['nonInteractive'])_0x3e643d['nonInteractive']=!![];return _0x3e643d;}function normalizeLanguages(_0x329864){const _0x3198ec=a3_0x195e0e;if(!Array[_0x3198ec(0x233)](_0x329864))return[];return _0x329864['filter'](_0x32594d=>typeof _0x32594d===_0x3198ec(0x213))['map'](_0x1cd113=>_0x1cd113[_0x3198ec(0x241)]())[_0x3198ec(0x247)](Boolean);}function buildRemoteAppI18nFields(_0x48ca87){const _0x176c5c=a3_0x195e0e,_0x5ac1dc=normalizeLanguages(_0x48ca87[_0x176c5c(0x24a)]?.[_0x176c5c(0x22d)]);return{'enableI18n':typeof _0x48ca87[_0x176c5c(0x24b)]==='boolean'?_0x48ca87[_0x176c5c(0x24b)]:null,'languages':_0x5ac1dc,'i18nInfo':_0x48ca87['i18nInfo']?{..._0x48ca87['i18nInfo'],'langs':_0x5ac1dc[_0x176c5c(0x20f)]?_0x5ac1dc:null}:null};}function a3_0x2345(){const _0x3c44b3=['2200JiRubd','mergedCli','i18nInfo','enableI18n','from','App\x20\x22','No\x20apps\x20found\x20on\x20the\x20platform.','2GkPHIH','cachePath','accessKey','Deprecated:\x20use\x20workspace\x20init\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','raw','Refreshed\x20app\x20cache\x20with\x20','1872268yZHksp','.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.','pull','project-default','\x20app\x20','join','boolean','list','6483048JHLJzW','init','../../commands/app/remote-source.js','appOwnerName','No\x20cached\x20apps\x20found.','use','isCurrent','Default\x20app\x20candidate\x20set\x20to\x20\x22','appName','remote','defaultApp','\x20workspace\x20init\x20--appcode\x20<code>\x20[--env\x20daily]','Remote\x20app\x20name\x20to\x20activate','validation','fetchedAt','env','length','globalPath','find','read','string','\x20is\x20deprecated.\x20Use\x20`','\x20app\x20use\x20<name>\x20[--global]','.appcode\x20to\x20.lovrabet.json.','projectPath','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','push','bool','Missing\x20app\x20name.','type','Usage:\x20','write','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','appcode','envName','source','args','Target\x20environment\x20(default:\x20current\x20env)','config','Filter\x20by\x20environment\x20(default:\x20current\x20env)','map','770125HLWNBK','27377TgCHYT','`\x20instead.','cache','9630dIphcg','langs','app','warn','local','../../context.js','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','isArray','global','name','17154oMjAds','Read\x20app\x20list\x20from\x20local\x20cache\x20only','items','../../commands/app/cache.js','Available\x20remote\x20apps:\x20','Read\x20from\x20local\x20cache\x20only','1023390IPBORS','3176337RpRWqv','str','Use\x20global\x20config\x20scope','appCode','trim','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','Loaded\x20','\x20workspace\x20use\x20--app\x20<name>\x20[--env\x20daily]','no-cache','production','filter'];a3_0x2345=function(){return _0x3c44b3;};return a3_0x2345();}const initDef={'service':a3_0x195e0e(0x22e),'command':'init','description':a3_0x195e0e(0x1f4),'risk':a3_0x195e0e(0x21e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x283e89){const _0x38b539=a3_0x195e0e;return warnDeprecatedAppCommand(_0x38b539(0x200),CLI_BIN_NAME+_0x38b539(0x20a)),await runInit(collectFlags(_0x283e89,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a3_0x195e0e(0x22e),'command':a3_0x195e0e(0x1fe),'description':a3_0x195e0e(0x232),'risk':a3_0x195e0e(0x212),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':'env','type':a3_0x195e0e(0x213),'description':a3_0x195e0e(0x226),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x195e0e(0x230),'type':a3_0x195e0e(0x1fd),'description':a3_0x195e0e(0x237),'default':![]},{'name':a3_0x195e0e(0x245),'type':a3_0x195e0e(0x1fd),'description':'Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','default':![]},{'name':'include-unpublished','type':a3_0x195e0e(0x1fd),'description':'Include\x20unpublished\x20apps\x20for\x20diagnostics','default':![]}],async 'execute'(_0x26f434){const _0x3d9326=a3_0x195e0e,_0x37afc1=_0x26f434[_0x3d9326(0x23e)](_0x3d9326(0x20e))||_0x26f434[_0x3d9326(0x221)]||getEnv()||'production',_0x313e9a=_0x26f434[_0x3d9326(0x21a)](_0x3d9326(0x230)),_0x3f3b5e=_0x26f434[_0x3d9326(0x21a)](_0x3d9326(0x245)),_0x28e13c=_0x26f434[_0x3d9326(0x21a)]('include-unpublished'),{readRawConfigWithLayers:_0x2bbdcb,resolveDefaultAppSource:_0x35df40,getLocalAppAliases:_0x4d9c9c}=await import(_0x3d9326(0x231)),{getRemoteAppList:_0x431259}=await import(_0x3d9326(0x201)),{config:_0x17fbf3,layers:_0x11bda1}=_0x2bbdcb(),_0x57c18c=_0x35df40(_0x11bda1),{defaultApp:_0x5795a0}=_0x17fbf3,_0x2f9d5c=await _0x431259({'env':_0x37afc1,'accessKey':_0x26f434[_0x3d9326(0x1f3)],'localOnly':_0x313e9a,'noCache':_0x3f3b5e}),_0x48754b=_0x28e13c?_0x2f9d5c[_0x3d9326(0x238)]:filterRuntimeAccessibleApps(_0x2f9d5c[_0x3d9326(0x238)]),_0x5cd3bd=_0x2f9d5c[_0x3d9326(0x238)][_0x3d9326(0x20f)]-_0x48754b[_0x3d9326(0x20f)],_0x2f8356=_0x48754b[_0x3d9326(0x227)](_0x1c2bd8=>{const _0x2e76f0=_0x3d9326;return{'name':_0x1c2bd8[_0x2e76f0(0x207)],'appcode':_0x1c2bd8[_0x2e76f0(0x240)],'named':!![],'definedIn':_0x2e76f0(0x208),'isDefault':_0x1c2bd8[_0x2e76f0(0x207)]===_0x5795a0,...buildAppProfileListFields(_0x37afc1),...buildRemoteAppI18nFields(_0x1c2bd8),'source':_0x2f9d5c[_0x2e76f0(0x222)],'owner':_0x1c2bd8[_0x2e76f0(0x202)]??null,'status':_0x1c2bd8['appPublishStatus']??null,'cachedAt':_0x2f9d5c[_0x2e76f0(0x20d)]};}),_0x1ee141=_0x4d9c9c(_0x17fbf3);let _0x47c424=0x0;for(const [_0x2359ab,_0x9c4346]of Object['entries'](_0x1ee141)){const _0x596c0a=typeof _0x9c4346['appcode']===_0x3d9326(0x213)?_0x9c4346[_0x3d9326(0x220)][_0x3d9326(0x241)]():'';if(!_0x596c0a)continue;const _0x362e98=findAppByCode(_0x2f9d5c[_0x3d9326(0x238)],_0x596c0a);if(!_0x28e13c&&_0x362e98&&!isRuntimeAccessibleApp(_0x362e98))continue;_0x47c424+=0x1,_0x2f8356[_0x3d9326(0x219)]({'name':_0x2359ab,'appcode':_0x596c0a,'named':!![],'definedIn':_0x3d9326(0x230),'isDefault':_0x2359ab===_0x5795a0,...buildAppProfileListFields(_0x37afc1),'source':_0x3d9326(0x225),'owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x2f8356,_0x26f434[_0x3d9326(0x249)]);const _0x4436bf=_0x2f8356[_0x3d9326(0x211)](_0x4c074b=>_0x4c074b[_0x3d9326(0x205)]===!![]),_0x3714d1=_0x5795a0??_0x4436bf?.[_0x3d9326(0x235)]??null,_0x1d92de={'env':_0x37afc1,'source':_0x2f9d5c[_0x3d9326(0x222)],'fetchedAt':_0x2f9d5c['fetchedAt'],'cachePath':_0x2f9d5c[_0x3d9326(0x1f2)],'globalPath':_0x11bda1[_0x3d9326(0x210)]??null,'projectPath':_0x11bda1[_0x3d9326(0x217)]??null,'defaultApp':_0x3714d1,'defaultAppSource':_0x5795a0!=null?_0x57c18c:null,'localAliasCount':_0x47c424,'remoteTotal':_0x2f9d5c[_0x3d9326(0x238)]['length'],'hiddenUnpublishedCount':_0x5cd3bd,'includeUnpublished':_0x28e13c};if(_0x2f8356[_0x3d9326(0x20f)]===0x0)return{'ok':!![],'data':{'items':_0x2f8356,'meta':_0x1d92de},'message':_0x2f9d5c[_0x3d9326(0x222)]===_0x3d9326(0x22b)?_0x3d9326(0x203):_0x3d9326(0x1f0)};return{'ok':!![],'data':{'items':_0x2f8356,'meta':_0x1d92de}};}},pullDef={'service':a3_0x195e0e(0x22e),'command':a3_0x195e0e(0x1f9),'description':a3_0x195e0e(0x21f),'risk':a3_0x195e0e(0x21e),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a3_0x195e0e(0x20e),'type':a3_0x195e0e(0x213),'description':a3_0x195e0e(0x224),'enum':[...RUNTIME_ENV_VALUES]},{'name':'local','type':a3_0x195e0e(0x1fd),'description':a3_0x195e0e(0x23b),'default':![]},{'name':a3_0x195e0e(0x245),'type':a3_0x195e0e(0x1fd),'description':a3_0x195e0e(0x218),'default':![]}],async 'execute'(_0x2b6e80){const _0x15e176=a3_0x195e0e,_0x2a9204=_0x2b6e80[_0x15e176(0x23e)]('env')||_0x2b6e80[_0x15e176(0x221)]||getEnv()||_0x15e176(0x246),_0x27a3d9=_0x2b6e80['bool']('local'),_0x499306=_0x2b6e80[_0x15e176(0x21a)](_0x15e176(0x245)),{getRemoteAppList:_0x21872b}=await import('../../commands/app/remote-source.js'),_0x24c638=await _0x21872b({'env':_0x2a9204,'accessKey':_0x2b6e80[_0x15e176(0x1f3)],'localOnly':_0x27a3d9,'noCache':_0x499306});return{'ok':!![],'data':{'total':_0x24c638['items'][_0x15e176(0x20f)],'env':_0x2a9204,'source':_0x24c638['source'],'fetchedAt':_0x24c638['fetchedAt'],'cachePath':_0x24c638[_0x15e176(0x1f2)]},'message':_0x24c638[_0x15e176(0x222)]===_0x15e176(0x22b)?_0x15e176(0x243)+_0x24c638[_0x15e176(0x238)][_0x15e176(0x20f)]+'\x20cached\x20app(s)\x20for\x20env=\x22'+_0x2a9204+'\x22.':_0x15e176(0x1f6)+_0x24c638['items'][_0x15e176(0x20f)]+'\x20app(s)\x20for\x20env=\x22'+_0x2a9204+'\x22.'};}},useDef={'service':a3_0x195e0e(0x22e),'command':a3_0x195e0e(0x204),'description':'Deprecated:\x20use\x20workspace\x20use\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','risk':a3_0x195e0e(0x21e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'name','description':a3_0x195e0e(0x20b),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x2518a9){const _0x2ec9bf=a3_0x195e0e;if(!_0x2518a9['args'][0x0])throw CliErrors[_0x2ec9bf(0x20c)](_0x2ec9bf(0x21b),_0x2ec9bf(0x21d)+CLI_BIN_NAME+_0x2ec9bf(0x215));},async 'execute'(_0x4435ce){const _0x525467=a3_0x195e0e;warnDeprecatedAppCommand(_0x525467(0x204),CLI_BIN_NAME+_0x525467(0x244));const _0x5ddada=_0x4435ce[_0x525467(0x223)][0x0];if(!_0x5ddada)throw CliErrors[_0x525467(0x20c)]('Missing\x20app\x20name.',_0x525467(0x21d)+CLI_BIN_NAME+_0x525467(0x215));const {buildConfigFromFlags:_0xec9e58,resolveLocalAppAliasCode:_0x35dcd1}=await import(_0x525467(0x231)),{readCachedAppList:_0x44594c}=await import(_0x525467(0x239)),_0xce0270=_0x4435ce[_0x525467(0x23e)](_0x525467(0x20e)),_0x50b97f=_0xec9e58(_0xce0270?{'env':_0xce0270}:{}),_0x53c16f=_0x44594c(_0x50b97f[_0x525467(0x20e)],_0x50b97f[_0x525467(0x1f3)]),_0x4a9f04=_0x53c16f?.[_0x525467(0x238)][_0x525467(0x211)](_0x5ed216=>_0x5ed216[_0x525467(0x207)]===_0x5ddada),_0x34704a=_0x35dcd1(_0x50b97f[_0x525467(0x1f5)]??{},_0x5ddada);if(_0x4a9f04&&!isRuntimeAccessibleApp(_0x4a9f04))throw runtimeInaccessibleAppError(_0x4a9f04,'\x22'+_0x5ddada+'\x22');if(_0x34704a){const _0x5a5adb=_0x53c16f?.[_0x525467(0x238)]['find'](_0x1ab9e3=>_0x1ab9e3[_0x525467(0x240)]?.['trim']()===_0x34704a);if(_0x5a5adb&&!isRuntimeAccessibleApp(_0x5a5adb))throw runtimeInaccessibleAppError(_0x5a5adb,'\x22'+_0x5ddada+'\x22');}if(!_0x4a9f04&&!_0x34704a&&_0x50b97f[_0x525467(0x209)]!==_0x5ddada){const _0x384375=[..._0x53c16f?.[_0x525467(0x238)][_0x525467(0x227)](_0x223ebc=>_0x223ebc['appName'])??[]],_0x180b25=_0x384375[_0x525467(0x20f)]===0x0?'Use\x20`'+CLI_BIN_NAME+'\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.'+_0x5ddada+_0x525467(0x216):_0x525467(0x23a)+Array[_0x525467(0x24c)](new Set(_0x384375))[_0x525467(0x1fc)](',\x20')+_0x525467(0x1f8);throw CliErrors[_0x525467(0x20c)](_0x525467(0x24d)+_0x5ddada+'\x22\x20not\x20found.',_0x180b25);}const _0x5c978f=_0x4435ce['bool']('global');let _0x39c894;if(_0x5c978f)_0x39c894={'global':!![]};else{const {isInProject:_0x39bcf5}=await import(_0x525467(0x231)),_0x18f2c5=_0x39bcf5();_0x39c894=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0x525467(0x1fa),'inProject':_0x18f2c5}));}const _0x18e71f=readConfig(_0x39c894);return _0x18e71f[_0x525467(0x209)]=_0x5ddada,writeConfig(_0x18e71f,_0x39c894),{'ok':!![],'message':_0x525467(0x206)+_0x5ddada+'\x22'+scopeLabel(_0x39c894)+'.'};}};function warnDeprecatedAppCommand(_0x310aea,_0x5b20d8){const _0x4153c3=a3_0x195e0e;console[_0x4153c3(0x22f)](CLI_BIN_NAME+_0x4153c3(0x1fb)+_0x310aea+_0x4153c3(0x214)+_0x5b20d8+_0x4153c3(0x22a));}const importDef={'service':a3_0x195e0e(0x22e),'command':'import','description':a3_0x195e0e(0x242),'risk':a3_0x195e0e(0x21e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x2398de){return await runInitImport(collectFlags(_0x2398de,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
1
+ const a3_0x25581a=a3_0x576c;(function(_0x48a631,_0x3af7d0){const _0x2fb93b=a3_0x576c,_0x427d31=_0x48a631();while(!![]){try{const _0x4cc7e3=-parseInt(_0x2fb93b(0x19c))/0x1*(parseInt(_0x2fb93b(0x15f))/0x2)+-parseInt(_0x2fb93b(0x1b1))/0x3*(parseInt(_0x2fb93b(0x192))/0x4)+parseInt(_0x2fb93b(0x16f))/0x5*(parseInt(_0x2fb93b(0x19d))/0x6)+parseInt(_0x2fb93b(0x1a2))/0x7+parseInt(_0x2fb93b(0x189))/0x8+parseInt(_0x2fb93b(0x17f))/0x9*(parseInt(_0x2fb93b(0x181))/0xa)+parseInt(_0x2fb93b(0x184))/0xb*(-parseInt(_0x2fb93b(0x16a))/0xc);if(_0x4cc7e3===_0x3af7d0)break;else _0x427d31['push'](_0x427d31['shift']());}catch(_0x199c96){_0x427d31['push'](_0x427d31['shift']());}}}(a3_0x3a7e,0xb9cd3));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';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{filterRuntimeAccessibleApps,findAppByCode,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';function a3_0x576c(_0x6977af,_0x286712){_0x6977af=_0x6977af-0x15d;const _0x3a7e56=a3_0x3a7e();let _0x576c5b=_0x3a7e56[_0x6977af];return _0x576c5b;}const GLOBAL_FLAG={'name':a3_0x25581a(0x180),'type':'boolean','description':a3_0x25581a(0x183),'default':![]};function collectFlags(_0x2e1939,_0x5992cc){const _0x2ad22b=a3_0x25581a,_0x40d5b3={};for(const _0x5ec6d8 of _0x5992cc){const _0x2c36d1=_0x5ec6d8[_0x2ad22b(0x16b)]===_0x2ad22b(0x1ac)?_0x2e1939[_0x2ad22b(0x168)](_0x5ec6d8[_0x2ad22b(0x198)]):_0x2e1939[_0x2ad22b(0x1b4)](_0x5ec6d8['name']);if(_0x2c36d1!==''&&_0x2c36d1!==![])_0x40d5b3[_0x5ec6d8[_0x2ad22b(0x198)]]=_0x2c36d1;}if(_0x2e1939['nonInteractive'])_0x40d5b3[_0x2ad22b(0x1bd)]=!![];return _0x40d5b3;}function normalizeLanguages(_0x327566){const _0xa563b7=a3_0x25581a;if(!Array[_0xa563b7(0x19b)](_0x327566))return[];return _0x327566[_0xa563b7(0x1b2)](_0x4b30f6=>typeof _0x4b30f6===_0xa563b7(0x171))[_0xa563b7(0x162)](_0x3df01d=>_0x3df01d[_0xa563b7(0x1a8)]())[_0xa563b7(0x1b2)](Boolean);}function buildRemoteAppI18nFields(_0x55cb20){const _0x11a5bb=a3_0x25581a,_0x4c82f0=normalizeLanguages(_0x55cb20[_0x11a5bb(0x1ba)]?.[_0x11a5bb(0x18c)]);return{'enableI18n':typeof _0x55cb20['enableI18n']==='boolean'?_0x55cb20[_0x11a5bb(0x1b8)]:null,'languages':_0x4c82f0,'i18nInfo':_0x55cb20[_0x11a5bb(0x1ba)]?{..._0x55cb20[_0x11a5bb(0x1ba)],'langs':_0x4c82f0['length']?_0x4c82f0:null}:null};}const initDef={'service':a3_0x25581a(0x19f),'command':a3_0x25581a(0x18f),'description':a3_0x25581a(0x1a7),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x453d3b){const _0x491ebc=a3_0x25581a;return warnDeprecatedAppCommand(_0x491ebc(0x18f),CLI_BIN_NAME+_0x491ebc(0x1be)),await runInit(collectFlags(_0x453d3b,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a3_0x25581a(0x19f),'command':a3_0x25581a(0x186),'description':a3_0x25581a(0x18e),'risk':a3_0x25581a(0x1ab),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a3_0x25581a(0x177),'type':a3_0x25581a(0x171),'description':a3_0x25581a(0x182),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x25581a(0x1a1),'type':'boolean','description':a3_0x25581a(0x188),'default':![]},{'name':a3_0x25581a(0x17d),'type':a3_0x25581a(0x1ac),'description':a3_0x25581a(0x17c),'default':![]},{'name':'include-unpublished','type':a3_0x25581a(0x1ac),'description':'Include\x20unpublished\x20apps\x20for\x20diagnostics','default':![]}],async 'execute'(_0x19f672){const _0x191b23=a3_0x25581a,_0x40b66c=_0x19f672[_0x191b23(0x1b4)]('env')||_0x19f672[_0x191b23(0x172)]||getEnv()||_0x191b23(0x1b7),_0x44e016=_0x19f672[_0x191b23(0x168)](_0x191b23(0x1a1)),_0x2f292d=_0x19f672[_0x191b23(0x168)](_0x191b23(0x17d)),_0x255504=_0x19f672['bool'](_0x191b23(0x15d)),{readRawConfigWithLayers:_0x5eea7a,resolveDefaultAppSource:_0x561c73,getLocalAppAliases:_0xbb8e1b}=await import('../../context.js'),{getRemoteAppList:_0x4664e6}=await import(_0x191b23(0x194)),{config:_0x2e0e62,layers:_0x516b7f}=_0x5eea7a(),_0x16072e=_0x561c73(_0x516b7f),{defaultApp:_0x56537c}=_0x2e0e62,_0x3a5e94=await _0x4664e6({'env':_0x40b66c,'accessKey':_0x19f672['accessKey'],'localOnly':_0x44e016,'noCache':_0x2f292d}),_0x52283a=_0x255504?_0x3a5e94[_0x191b23(0x1a0)]:filterRuntimeAccessibleApps(_0x3a5e94[_0x191b23(0x1a0)]),_0x1b9647=_0x3a5e94['items'][_0x191b23(0x1a3)]-_0x52283a[_0x191b23(0x1a3)],_0x45aa36=_0x52283a[_0x191b23(0x162)](_0x3c2b76=>{const _0x4233c5=_0x191b23;return{'name':_0x3c2b76['appName'],'appcode':_0x3c2b76[_0x4233c5(0x165)],'named':!![],'definedIn':'remote','isDefault':_0x3c2b76['appName']===_0x56537c,...buildAppProfileListFields(_0x40b66c),...buildRemoteAppI18nFields(_0x3c2b76),'source':_0x3a5e94[_0x4233c5(0x191)],'owner':_0x3c2b76[_0x4233c5(0x1b9)]??null,'status':_0x3c2b76[_0x4233c5(0x1ad)]??null,'cachedAt':_0x3a5e94[_0x4233c5(0x178)]};}),_0x28356b=_0xbb8e1b(_0x2e0e62);let _0x1e78c8=0x0;for(const [_0x373159,_0x227e01]of Object[_0x191b23(0x18a)](_0x28356b)){const _0x577ef0=typeof _0x227e01['appcode']===_0x191b23(0x171)?_0x227e01[_0x191b23(0x15e)][_0x191b23(0x1a8)]():'';if(!_0x577ef0)continue;const _0x4f5abc=findAppByCode(_0x3a5e94[_0x191b23(0x1a0)],_0x577ef0);if(!_0x255504&&_0x4f5abc&&!isRuntimeAccessibleApp(_0x4f5abc))continue;_0x1e78c8+=0x1,_0x45aa36[_0x191b23(0x19e)]({'name':_0x373159,'appcode':_0x577ef0,'named':!![],'definedIn':_0x191b23(0x1a1),'isDefault':_0x373159===_0x56537c,...buildAppProfileListFields(_0x40b66c),'source':_0x191b23(0x167),'owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x45aa36,_0x19f672[_0x191b23(0x197)]);const _0x1dc4a9=_0x45aa36['find'](_0x15bd45=>_0x15bd45[_0x191b23(0x18b)]===!![]),_0x286262=_0x56537c??_0x1dc4a9?.[_0x191b23(0x198)]??null,_0x2fb8c4={'env':_0x40b66c,'source':_0x3a5e94['source'],'fetchedAt':_0x3a5e94[_0x191b23(0x178)],'cachePath':_0x3a5e94[_0x191b23(0x1a6)],'globalPath':_0x516b7f[_0x191b23(0x17e)]??null,'projectPath':_0x516b7f[_0x191b23(0x187)]??null,'defaultApp':_0x286262,'defaultAppSource':_0x56537c!=null?_0x16072e:null,'localAliasCount':_0x1e78c8,'remoteTotal':_0x3a5e94[_0x191b23(0x1a0)][_0x191b23(0x1a3)],'hiddenUnpublishedCount':_0x1b9647,'includeUnpublished':_0x255504};if(_0x45aa36[_0x191b23(0x1a3)]===0x0)return{'ok':!![],'data':{'items':_0x45aa36,'meta':_0x2fb8c4},'message':_0x3a5e94['source']===_0x191b23(0x176)?_0x191b23(0x166):_0x191b23(0x163)};return{'ok':!![],'data':{'items':_0x45aa36,'meta':_0x2fb8c4}};}},pullDef={'service':a3_0x25581a(0x19f),'command':a3_0x25581a(0x1b0),'description':'Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','risk':a3_0x25581a(0x170),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a3_0x25581a(0x177),'type':a3_0x25581a(0x171),'description':a3_0x25581a(0x164),'enum':[...RUNTIME_ENV_VALUES]},{'name':'local','type':a3_0x25581a(0x1ac),'description':a3_0x25581a(0x1af),'default':![]},{'name':a3_0x25581a(0x17d),'type':a3_0x25581a(0x1ac),'description':a3_0x25581a(0x17c),'default':![]}],async 'execute'(_0x8fb3c5){const _0x125ac9=a3_0x25581a,_0x397169=_0x8fb3c5[_0x125ac9(0x1b4)](_0x125ac9(0x177))||_0x8fb3c5[_0x125ac9(0x172)]||getEnv()||_0x125ac9(0x1b7),_0x143cba=_0x8fb3c5[_0x125ac9(0x168)](_0x125ac9(0x1a1)),_0x50b8e9=_0x8fb3c5[_0x125ac9(0x168)](_0x125ac9(0x17d)),{getRemoteAppList:_0x486fcf}=await import(_0x125ac9(0x194)),_0x31fdfe=await _0x486fcf({'env':_0x397169,'accessKey':_0x8fb3c5[_0x125ac9(0x16d)],'localOnly':_0x143cba,'noCache':_0x50b8e9});return{'ok':!![],'data':{'total':_0x31fdfe[_0x125ac9(0x1a0)][_0x125ac9(0x1a3)],'env':_0x397169,'source':_0x31fdfe[_0x125ac9(0x191)],'fetchedAt':_0x31fdfe[_0x125ac9(0x178)],'cachePath':_0x31fdfe[_0x125ac9(0x1a6)]},'message':_0x31fdfe[_0x125ac9(0x191)]==='cache'?_0x125ac9(0x190)+_0x31fdfe[_0x125ac9(0x1a0)][_0x125ac9(0x1a3)]+_0x125ac9(0x161)+_0x397169+'\x22.':_0x125ac9(0x1ae)+_0x31fdfe[_0x125ac9(0x1a0)][_0x125ac9(0x1a3)]+_0x125ac9(0x185)+_0x397169+'\x22.'};}},useDef={'service':a3_0x25581a(0x19f),'command':a3_0x25581a(0x179),'description':'Deprecated:\x20use\x20workspace\x20use\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a3_0x25581a(0x198),'description':a3_0x25581a(0x1bf),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x2ce0d9){const _0x4fb770=a3_0x25581a;if(!_0x2ce0d9['args'][0x0])throw CliErrors[_0x4fb770(0x1b5)]('Missing\x20app\x20name.',_0x4fb770(0x169)+CLI_BIN_NAME+_0x4fb770(0x174));},async 'execute'(_0x3b1105){const _0x3f89a8=a3_0x25581a;warnDeprecatedAppCommand(_0x3f89a8(0x179),CLI_BIN_NAME+_0x3f89a8(0x17b));const _0x22ae98=_0x3b1105['args'][0x0];if(!_0x22ae98)throw CliErrors[_0x3f89a8(0x1b5)](_0x3f89a8(0x1bc),'Usage:\x20'+CLI_BIN_NAME+'\x20app\x20use\x20<name>\x20[--global]');const {buildConfigFromFlags:_0x2d8a4a,resolveLocalAppAliasCode:_0x44c579}=await import(_0x3f89a8(0x18d)),{readCachedAppList:_0x534af0}=await import(_0x3f89a8(0x160)),_0x1ba71b=_0x3b1105[_0x3f89a8(0x1b4)](_0x3f89a8(0x177)),_0x2877da=_0x2d8a4a(_0x1ba71b?{'env':_0x1ba71b}:{}),_0x4ebfb4=_0x534af0(_0x2877da['env'],_0x2877da['accessKey']),_0x17557a=_0x4ebfb4?.[_0x3f89a8(0x1a0)]['find'](_0x1920f8=>_0x1920f8[_0x3f89a8(0x1a5)]===_0x22ae98),_0x16b61c=_0x44c579(_0x2877da[_0x3f89a8(0x1a9)]??{},_0x22ae98);if(_0x17557a&&!isRuntimeAccessibleApp(_0x17557a))throw runtimeInaccessibleAppError(_0x17557a,'\x22'+_0x22ae98+'\x22');if(_0x16b61c){const _0x30f618=_0x4ebfb4?.[_0x3f89a8(0x1a0)][_0x3f89a8(0x175)](_0x4f857c=>_0x4f857c[_0x3f89a8(0x165)]?.['trim']()===_0x16b61c);if(_0x30f618&&!isRuntimeAccessibleApp(_0x30f618))throw runtimeInaccessibleAppError(_0x30f618,'\x22'+_0x22ae98+'\x22');}if(!_0x17557a&&!_0x16b61c&&_0x2877da[_0x3f89a8(0x1b6)]!==_0x22ae98){const _0x47446b=[..._0x4ebfb4?.[_0x3f89a8(0x1a0)][_0x3f89a8(0x162)](_0x309958=>_0x309958[_0x3f89a8(0x1a5)])??[]],_0x3afcf6=_0x47446b['length']===0x0?_0x3f89a8(0x17a)+CLI_BIN_NAME+'\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.'+_0x22ae98+_0x3f89a8(0x195):'Available\x20remote\x20apps:\x20'+Array[_0x3f89a8(0x1b3)](new Set(_0x47446b))[_0x3f89a8(0x19a)](',\x20')+_0x3f89a8(0x1a4);throw CliErrors[_0x3f89a8(0x1b5)](_0x3f89a8(0x173)+_0x22ae98+'\x22\x20not\x20found.',_0x3afcf6);}const _0xed3c1f=_0x3b1105['bool'](_0x3f89a8(0x180));let _0x2f71f1;if(_0xed3c1f)_0x2f71f1={'global':!![]};else{const {isInProject:_0x5ab38a}=await import('../../context.js'),_0x3f895c=_0x5ab38a();_0x2f71f1=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0x3f89a8(0x16c),'inProject':_0x3f895c}));}const _0x21090b=readConfig(_0x2f71f1);return _0x21090b[_0x3f89a8(0x1b6)]=_0x22ae98,writeConfig(_0x21090b,_0x2f71f1),{'ok':!![],'message':'Default\x20app\x20candidate\x20set\x20to\x20\x22'+_0x22ae98+'\x22'+scopeLabel(_0x2f71f1)+'.'};}};function warnDeprecatedAppCommand(_0x484f79,_0x2aa67b){const _0x33e567=a3_0x25581a;console[_0x33e567(0x193)](CLI_BIN_NAME+_0x33e567(0x199)+_0x484f79+_0x33e567(0x1aa)+_0x2aa67b+_0x33e567(0x196));}const importDef={'service':a3_0x25581a(0x19f),'command':a3_0x25581a(0x16e),'description':a3_0x25581a(0x1bb),'risk':a3_0x25581a(0x170),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x41aaf9){return await runInitImport(collectFlags(_0x41aaf9,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];function a3_0x3a7e(){const _0x4a077b=['items','local','2388071FazdFt','length','.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.','appName','cachePath','Deprecated:\x20use\x20workspace\x20init\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','trim','raw','\x20is\x20deprecated.\x20Use\x20`','read','boolean','appPublishStatus','Refreshed\x20app\x20cache\x20with\x20','Read\x20from\x20local\x20cache\x20only','pull','99aDhiMu','filter','from','str','validation','defaultApp','production','enableI18n','appOwnerName','i18nInfo','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','Missing\x20app\x20name.','nonInteractive','\x20workspace\x20init\x20--appcode\x20<code>\x20[--env\x20daily]','Remote\x20app\x20name\x20to\x20activate','include-unpublished','appcode','14BExfXn','../../commands/app/cache.js','\x20cached\x20app(s)\x20for\x20env=\x22','map','No\x20apps\x20found\x20on\x20the\x20platform.','Target\x20environment\x20(default:\x20current\x20env)','appCode','No\x20cached\x20apps\x20found.','config','bool','Usage:\x20','516ffBkMn','type','project-default','accessKey','import','45dcSeUN','write','string','envName','App\x20\x22','\x20app\x20use\x20<name>\x20[--global]','find','cache','env','fetchedAt','use','Use\x20`','\x20workspace\x20use\x20--app\x20<name>\x20[--env\x20daily]','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','no-cache','globalPath','33813MSOBMs','global','1730GvNmKx','Filter\x20by\x20environment\x20(default:\x20current\x20env)','Use\x20global\x20config\x20scope','271557udEmta','\x20app(s)\x20for\x20env=\x22','list','projectPath','Read\x20app\x20list\x20from\x20local\x20cache\x20only','11120560JCgYxn','entries','isCurrent','langs','../../context.js','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','init','Loaded\x20','source','40364mddNvY','warn','../../commands/app/remote-source.js','.appcode\x20to\x20.lovrabet.json.','`\x20instead.','mergedCli','name','\x20app\x20','join','isArray','153849RMHBDB','567564nncGWd','push','app'];a3_0x3a7e=function(){return _0x4a077b;};return a3_0x3a7e();}
@@ -1 +1 @@
1
- (function(_0x2294a2,_0x7a0059){const _0x39b5b2=a4_0x3cc4,_0x3cac10=_0x2294a2();while(!![]){try{const _0x278b50=parseInt(_0x39b5b2(0x123))/0x1*(parseInt(_0x39b5b2(0x10f))/0x2)+parseInt(_0x39b5b2(0x11a))/0x3+parseInt(_0x39b5b2(0x124))/0x4*(-parseInt(_0x39b5b2(0x11f))/0x5)+-parseInt(_0x39b5b2(0x114))/0x6+parseInt(_0x39b5b2(0x121))/0x7*(-parseInt(_0x39b5b2(0x112))/0x8)+-parseInt(_0x39b5b2(0x110))/0x9*(-parseInt(_0x39b5b2(0x11c))/0xa)+-parseInt(_0x39b5b2(0x113))/0xb;if(_0x278b50===_0x7a0059)break;else _0x3cac10['push'](_0x3cac10['shift']());}catch(_0x5b683a){_0x3cac10['push'](_0x3cac10['shift']());}}}(a4_0x4781,0x1888b));function a4_0x4781(){const _0xcd9620=['618DhwJQa','426483ekTVfl','\x20dataset/data/sql/bff\x20commands,\x20or\x20choose\x20a\x20published\x20app.','246976PKUpAj','2871bTjVao','967314SoVMWJ','find','string','UNKNOWN','filter','Current\x20status:\x20','418638KBDIhB','appCode','40gHkIIv','trim','App\x20','258740eMaKdb','toUpperCase','14uEuwnk','appPublishStatus','485eSSkYL','12BscYuX'];a4_0x4781=function(){return _0xcd9620;};return a4_0x4781();}function a4_0x3cc4(_0x9e65cb,_0x552f58){_0x9e65cb=_0x9e65cb-0x10f;const _0x4781a3=a4_0x4781();let _0x3cc404=_0x4781a3[_0x9e65cb];return _0x3cc404;}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(_0x1efa44){const _0x4ea5e3=a4_0x3cc4;if(typeof _0x1efa44!==_0x4ea5e3(0x116))return null;const _0x496b3e=_0x1efa44[_0x4ea5e3(0x11d)]();return _0x496b3e?_0x496b3e[_0x4ea5e3(0x120)]():null;}export function isRuntimeAccessibleApp(_0x4ca2a4){return normalizeAppPublishStatus(_0x4ca2a4['appPublishStatus'])===RUNTIME_ACCESSIBLE_APP_STATUS;}export function filterRuntimeAccessibleApps(_0x42b812){const _0x3ca9ff=a4_0x3cc4;return _0x42b812[_0x3ca9ff(0x118)](isRuntimeAccessibleApp);}export function findAppByName(_0x5cb560,_0x532808){const _0x5f208d=a4_0x3cc4;return _0x5cb560[_0x5f208d(0x115)](_0x25e07d=>_0x25e07d['appName']===_0x532808);}export function findAppByCode(_0x4772ec,_0x478df3){const _0x2540e8=a4_0x3cc4,_0x211708=_0x478df3['trim']();if(!_0x211708)return undefined;return _0x4772ec[_0x2540e8(0x115)](_0x506145=>_0x506145[_0x2540e8(0x11b)]?.[_0x2540e8(0x11d)]()===_0x211708);}export function runtimeInaccessibleAppError(_0x208140,_0x356ddb){const _0x581080=a4_0x3cc4,_0x639283=normalizeAppPublishStatus(_0x208140[_0x581080(0x122)])??_0x581080(0x117);return CliErrors['validation'](_0x581080(0x11e)+_0x356ddb+'\x20is\x20not\x20available\x20for\x20runtime\x20AI\x20access.',_0x581080(0x119)+_0x639283+'.\x20Publish\x20the\x20app\x20before\x20using\x20'+CLI_BIN_NAME+_0x581080(0x111));}
1
+ (function(_0x12fc65,_0x20ae5e){const _0x5a8578=a4_0x30e5,_0x1d8ce0=_0x12fc65();while(!![]){try{const _0x142cbe=parseInt(_0x5a8578(0x146))/0x1+parseInt(_0x5a8578(0x14c))/0x2*(-parseInt(_0x5a8578(0x15a))/0x3)+parseInt(_0x5a8578(0x14b))/0x4*(parseInt(_0x5a8578(0x147))/0x5)+parseInt(_0x5a8578(0x157))/0x6*(-parseInt(_0x5a8578(0x14d))/0x7)+parseInt(_0x5a8578(0x149))/0x8+-parseInt(_0x5a8578(0x154))/0x9+-parseInt(_0x5a8578(0x158))/0xa*(-parseInt(_0x5a8578(0x152))/0xb);if(_0x142cbe===_0x20ae5e)break;else _0x1d8ce0['push'](_0x1d8ce0['shift']());}catch(_0x3128fa){_0x1d8ce0['push'](_0x1d8ce0['shift']());}}}(a4_0xd410,0x1d11a));function a4_0x30e5(_0xdb229a,_0x4aeead){_0xdb229a=_0xdb229a-0x146;const _0xd41073=a4_0xd410();let _0x30e556=_0xd41073[_0xdb229a];return _0x30e556;}function a4_0xd410(){const _0xf1bca3=['appName','1644352CZiTLH','filter','4XPVPHh','8lVzWCY','55972jGsyrF','.\x20Publish\x20the\x20app\x20before\x20using\x20','trim','\x20dataset/data/sql/bff\x20commands,\x20or\x20choose\x20a\x20published\x20app.','appCode','2383689HSuEEY','toUpperCase','1664721RTfEbK','UNKNOWN','appPublishStatus','150wOZUjI','10ebMxpL','find','47700lZeVGp','116633YtmCiz','143295pnxvTp'];a4_0xd410=function(){return _0xf1bca3;};return a4_0xd410();}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(_0x3f835d){const _0x30b69c=a4_0x30e5;if(typeof _0x3f835d!=='string')return null;const _0x96204=_0x3f835d[_0x30b69c(0x14f)]();return _0x96204?_0x96204[_0x30b69c(0x153)]():null;}export function isRuntimeAccessibleApp(_0x119753){const _0xc48cb2=a4_0x30e5;return normalizeAppPublishStatus(_0x119753[_0xc48cb2(0x156)])===RUNTIME_ACCESSIBLE_APP_STATUS;}export function filterRuntimeAccessibleApps(_0x1214bd){const _0x21e61f=a4_0x30e5;return _0x1214bd[_0x21e61f(0x14a)](isRuntimeAccessibleApp);}export function findAppByName(_0x2f4853,_0x1c4f10){const _0x45e8e7=a4_0x30e5;return _0x2f4853[_0x45e8e7(0x159)](_0x4640da=>_0x4640da[_0x45e8e7(0x148)]===_0x1c4f10);}export function findAppByCode(_0x580b95,_0x14d70d){const _0x27e49f=a4_0x30e5,_0xc1c29a=_0x14d70d[_0x27e49f(0x14f)]();if(!_0xc1c29a)return undefined;return _0x580b95[_0x27e49f(0x159)](_0x1cdf5e=>_0x1cdf5e[_0x27e49f(0x151)]?.[_0x27e49f(0x14f)]()===_0xc1c29a);}export function runtimeInaccessibleAppError(_0x2f6650,_0x4667b7){const _0x28a2c1=a4_0x30e5,_0x1e8757=normalizeAppPublishStatus(_0x2f6650[_0x28a2c1(0x156)])??_0x28a2c1(0x155);return CliErrors['validation']('App\x20'+_0x4667b7+'\x20is\x20not\x20available\x20for\x20runtime\x20AI\x20access.','Current\x20status:\x20'+_0x1e8757+_0x28a2c1(0x14e)+CLI_BIN_NAME+_0x28a2c1(0x150));}
@@ -1 +1 @@
1
- function a5_0x26f8(){const _0x4e9bbb=['parse','1957032RFUmpz','50dQpYQV','../../../mock/app-list.json','errorCode','864481YqLair','4hxMZTB','4794588tfyXIx','621120nRzcrd','7eZUxYw','Mock\x20API\x20error:\x20','13931024rmCnGJ','3861036CIuMZc','4381625GpLfEs','errorMsg'];a5_0x26f8=function(){return _0x4e9bbb;};return a5_0x26f8();}(function(_0x131c5a,_0x6706e8){const _0x4076b0=a5_0x54ca,_0x2e74bc=_0x131c5a();while(!![]){try{const _0x3ef994=-parseInt(_0x4076b0(0x6f))/0x1+parseInt(_0x4076b0(0x72))/0x2+-parseInt(_0x4076b0(0x76))/0x3+parseInt(_0x4076b0(0x70))/0x4*(-parseInt(_0x4076b0(0x77))/0x5)+parseInt(_0x4076b0(0x71))/0x6+parseInt(_0x4076b0(0x73))/0x7*(parseInt(_0x4076b0(0x75))/0x8)+-parseInt(_0x4076b0(0x6b))/0x9*(-parseInt(_0x4076b0(0x6c))/0xa);if(_0x3ef994===_0x6706e8)break;else _0x2e74bc['push'](_0x2e74bc['shift']());}catch(_0x27fc38){_0x2e74bc['push'](_0x2e74bc['shift']());}}}(a5_0x26f8,0xde47a));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 _0x27720a=a5_0x54ca,_0x2dcf94=join(__dirname,_0x27720a(0x6d)),_0x1720cd=readFileSync(_0x2dcf94,'utf-8');return JSON[_0x27720a(0x6a)](_0x1720cd);}let _cached=null;function a5_0x54ca(_0x2b05e1,_0x175581){_0x2b05e1=_0x2b05e1-0x6a;const _0x26f8ba=a5_0x26f8();let _0x54ca9a=_0x26f8ba[_0x2b05e1];return _0x54ca9a;}export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x4c843e=a5_0x54ca,_0x385231=getMockAppList();if(!_0x385231['success'])throw new Error(_0x4c843e(0x74)+_0x385231[_0x4c843e(0x78)]+'\x20('+_0x385231[_0x4c843e(0x6e)]+')');return _0x385231['data']['tableData'];}
1
+ (function(_0x451e5a,_0x1ea428){const _0x2d329b=a5_0x2bc3,_0x4ef721=_0x451e5a();while(!![]){try{const _0x338628=-parseInt(_0x2d329b(0x71))/0x1+parseInt(_0x2d329b(0x79))/0x2*(-parseInt(_0x2d329b(0x7b))/0x3)+-parseInt(_0x2d329b(0x77))/0x4+-parseInt(_0x2d329b(0x75))/0x5*(parseInt(_0x2d329b(0x7a))/0x6)+parseInt(_0x2d329b(0x72))/0x7*(parseInt(_0x2d329b(0x7f))/0x8)+-parseInt(_0x2d329b(0x7d))/0x9*(-parseInt(_0x2d329b(0x7e))/0xa)+parseInt(_0x2d329b(0x73))/0xb;if(_0x338628===_0x1ea428)break;else _0x4ef721['push'](_0x4ef721['shift']());}catch(_0x1c2bfe){_0x4ef721['push'](_0x4ef721['shift']());}}}(a5_0x3cf4,0xd8740));import{fileURLToPath}from'url';import{dirname,join}from'path';function a5_0x3cf4(){const _0x4a5fa4=['791312IwTHeG','tableData','1155372cMEhos','19374jYpaTO','9LqQosk','errorMsg','9AphWck','12498530XNPHyg','1697960ulKOUG','751720tlNQta','28vmFVKA','23100220YxEbEe','errorCode','975OXSNuT','parse'];a5_0x3cf4=function(){return _0x4a5fa4;};return a5_0x3cf4();}import{readFileSync}from'fs';function a5_0x2bc3(_0x117ad7,_0x3f51f9){_0x117ad7=_0x117ad7-0x71;const _0x3cf4d2=a5_0x3cf4();let _0x2bc317=_0x3cf4d2[_0x117ad7];return _0x2bc317;}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0x5936d3=a5_0x2bc3,_0x32c0fe=join(__dirname,'../../../mock/app-list.json'),_0x50f5a6=readFileSync(_0x32c0fe,'utf-8');return JSON[_0x5936d3(0x76)](_0x50f5a6);}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x538987=a5_0x2bc3,_0x1c47ec=getMockAppList();if(!_0x1c47ec['success'])throw new Error('Mock\x20API\x20error:\x20'+_0x1c47ec[_0x538987(0x7c)]+'\x20('+_0x1c47ec[_0x538987(0x74)]+')');return _0x1c47ec['data'][_0x538987(0x78)];}
@@ -1 +1 @@
1
- function a6_0x3bc0(_0x5c9a6a,_0x5a6603){_0x5c9a6a=_0x5c9a6a-0x1da;const _0x4890ee=a6_0x4890();let _0x3bc0e6=_0x4890ee[_0x5c9a6a];return _0x3bc0e6;}(function(_0x2ca06f,_0x1481c9){const _0xd6d8c4=a6_0x3bc0,_0x902292=_0x2ca06f();while(!![]){try{const _0x28464e=parseInt(_0xd6d8c4(0x1de))/0x1+parseInt(_0xd6d8c4(0x1e1))/0x2+parseInt(_0xd6d8c4(0x1e9))/0x3*(parseInt(_0xd6d8c4(0x1e4))/0x4)+parseInt(_0xd6d8c4(0x1e8))/0x5+parseInt(_0xd6d8c4(0x1eb))/0x6*(-parseInt(_0xd6d8c4(0x1e3))/0x7)+-parseInt(_0xd6d8c4(0x1dd))/0x8+parseInt(_0xd6d8c4(0x1e7))/0x9*(-parseInt(_0xd6d8c4(0x1df))/0xa);if(_0x28464e===_0x1481c9)break;else _0x902292['push'](_0x902292['shift']());}catch(_0x1e6781){_0x902292['push'](_0x902292['shift']());}}}(a6_0x4890,0x1b2b8));import{getMyApps}from'../../core/api-client.js';import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';import{productEnv}from'../../constant/product.js';function a6_0x4890(){const _0x2fe41a=['APP_LIST_SOURCE','mock','trim','628272oaHxTB','40838ATiaWS','30CufOJC','fetchedAt','440666YECPkb','items','112uZQgPv','53816YQuyEF','remote','toLowerCase','99018LlGdEV','481035QlwvtY','9NToomt','toISOString','65592SFZGzi'];a6_0x4890=function(){return _0x2fe41a;};return a6_0x4890();}export function shouldUseMockRemoteApps(){const _0x421613=a6_0x3bc0,_0x395d15=(productEnv(_0x421613(0x1da))||'')[_0x421613(0x1dc)]()[_0x421613(0x1e6)]();return _0x395d15===_0x421613(0x1db);}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0xf145f5){const _0x516ea7=a6_0x3bc0,{env:_0x4a63c6,accessKey:_0x2509ac,localOnly:localOnly=![],noCache:noCache=![]}=_0xf145f5,_0x5744e1=readCachedAppList(_0x4a63c6,_0x2509ac),_0x34dd71=_0x2509ac?.['trim']()?getAppCacheFilePath(_0x4a63c6,_0x2509ac):null;if(localOnly)return{'items':_0x5744e1?.[_0x516ea7(0x1e2)]??[],'source':'cache','fetchedAt':_0x5744e1?.[_0x516ea7(0x1e0)]??null,'cachePath':_0x34dd71};try{const _0x4e7e3c=await getRemoteAppItems(),_0x1c4eb4=shouldUseMockRemoteApps()?'mock':_0x516ea7(0x1e5),_0x457fbd=new Date()[_0x516ea7(0x1ea)](),_0x552eee=_0x2509ac?.[_0x516ea7(0x1dc)]()?writeCachedAppList(_0x4a63c6,_0x2509ac,{'env':_0x4a63c6,'fetchedAt':_0x457fbd,'source':_0x1c4eb4,'items':_0x4e7e3c}):null;return{'items':_0x4e7e3c,'source':_0x1c4eb4,'fetchedAt':_0x457fbd,'cachePath':_0x552eee};}catch(_0x2def54){if(!noCache&&_0x5744e1)return{'items':_0x5744e1[_0x516ea7(0x1e2)],'source':'cache','fetchedAt':_0x5744e1[_0x516ea7(0x1e0)],'cachePath':_0x34dd71};throw _0x2def54;}}
1
+ (function(_0x4dfcfb,_0x4c1b76){const _0x37793f=a6_0x1b58,_0x2b745c=_0x4dfcfb();while(!![]){try{const _0x3c2cc8=-parseInt(_0x37793f(0xd4))/0x1*(-parseInt(_0x37793f(0xd6))/0x2)+-parseInt(_0x37793f(0xd1))/0x3+-parseInt(_0x37793f(0xce))/0x4*(-parseInt(_0x37793f(0xcc))/0x5)+-parseInt(_0x37793f(0xd2))/0x6*(parseInt(_0x37793f(0xc4))/0x7)+-parseInt(_0x37793f(0xcb))/0x8+parseInt(_0x37793f(0xc9))/0x9*(-parseInt(_0x37793f(0xc5))/0xa)+parseInt(_0x37793f(0xc6))/0xb*(parseInt(_0x37793f(0xd7))/0xc);if(_0x3c2cc8===_0x4c1b76)break;else _0x2b745c['push'](_0x2b745c['shift']());}catch(_0x421022){_0x2b745c['push'](_0x2b745c['shift']());}}}(a6_0x4d28,0xd4dcd));import{getMyApps}from'../../core/api-client.js';function a6_0x4d28(){const _0x5419e5=['toLowerCase','82eCUOkC','mock','10366TJrsCF','12gwBNbE','8617IgDxYz','1882830JgVhHO','28192835LDajVT','fetchedAt','APP_LIST_SOURCE','9KrIVzn','trim','10272392KLCdFL','140710ZrcVve','toISOString','8bVgRyd','remote','items','1254477TMkzxV','1374NPIrlN'];a6_0x4d28=function(){return _0x5419e5;};return a6_0x4d28();}import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';function a6_0x1b58(_0x4ace79,_0x2cbc81){_0x4ace79=_0x4ace79-0xc4;const _0x4d2835=a6_0x4d28();let _0x1b581d=_0x4d2835[_0x4ace79];return _0x1b581d;}import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';import{productEnv}from'../../constant/product.js';export function shouldUseMockRemoteApps(){const _0x470cb4=a6_0x1b58,_0x5ec89a=(productEnv(_0x470cb4(0xc8))||'')['trim']()[_0x470cb4(0xd3)]();return _0x5ec89a===_0x470cb4(0xd5);}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x1df485){const _0x3fe00c=a6_0x1b58,{env:_0x45eff9,accessKey:_0x12e492,localOnly:localOnly=![],noCache:noCache=![]}=_0x1df485,_0x4e57e1=readCachedAppList(_0x45eff9,_0x12e492),_0x226ba3=_0x12e492?.[_0x3fe00c(0xca)]()?getAppCacheFilePath(_0x45eff9,_0x12e492):null;if(localOnly)return{'items':_0x4e57e1?.[_0x3fe00c(0xd0)]??[],'source':'cache','fetchedAt':_0x4e57e1?.[_0x3fe00c(0xc7)]??null,'cachePath':_0x226ba3};try{const _0x570611=await getRemoteAppItems(),_0x6b15c4=shouldUseMockRemoteApps()?_0x3fe00c(0xd5):_0x3fe00c(0xcf),_0x2fdb21=new Date()[_0x3fe00c(0xcd)](),_0x44f785=_0x12e492?.[_0x3fe00c(0xca)]()?writeCachedAppList(_0x45eff9,_0x12e492,{'env':_0x45eff9,'fetchedAt':_0x2fdb21,'source':_0x6b15c4,'items':_0x570611}):null;return{'items':_0x570611,'source':_0x6b15c4,'fetchedAt':_0x2fdb21,'cachePath':_0x44f785};}catch(_0x4ea9e3){if(!noCache&&_0x4e57e1)return{'items':_0x4e57e1[_0x3fe00c(0xd0)],'source':'cache','fetchedAt':_0x4e57e1[_0x3fe00c(0xc7)],'cachePath':_0x226ba3};throw _0x4ea9e3;}}
@@ -1 +1 @@
1
- (function(_0x2bef61,_0x1e70d1){const _0x6c22fc=a7_0x430f,_0x1505c3=_0x2bef61();while(!![]){try{const _0x2d3d99=parseInt(_0x6c22fc(0x1db))/0x1+parseInt(_0x6c22fc(0x1d8))/0x2+parseInt(_0x6c22fc(0x1da))/0x3+parseInt(_0x6c22fc(0x1e5))/0x4+parseInt(_0x6c22fc(0x1e0))/0x5+parseInt(_0x6c22fc(0x1e8))/0x6+-parseInt(_0x6c22fc(0x1e2))/0x7;if(_0x2d3d99===_0x1e70d1)break;else _0x1505c3['push'](_0x1505c3['shift']());}catch(_0x170ad2){_0x1505c3['push'](_0x1505c3['shift']());}}}(a7_0xfd82,0x9c9b2));import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x243675,_0xca5659){const _0x2c7724=a7_0x430f;if(!_0xca5659)return;const _0x880210=!!(_0xca5659[_0x2c7724(0x1d7)]??_0xca5659[_0x2c7724(0x1dd)]);for(const _0x34aab7 of _0x243675){_0x34aab7[_0x2c7724(0x1d9)]=![];}const _0x4778f5=_0xca5659[_0x2c7724(0x1e7)]!=null?String(_0xca5659[_0x2c7724(0x1e7)])[_0x2c7724(0x1df)]():'';if(_0x880210){const _0x5d9d4b=_0xca5659['currentApp']??_0xca5659[_0x2c7724(0x1dd)];if(_0x5d9d4b){const _0x4df663=_0x243675['find'](_0x2bb76b=>_0x2bb76b[_0x2c7724(0x1de)]===!![]&&_0x2bb76b[_0x2c7724(0x1e9)]===_0x5d9d4b&&_0x2bb76b[_0x2c7724(0x1dc)]==='local'),_0x5a4025=_0x4df663??_0x243675[_0x2c7724(0x1e4)](_0x2c42af=>_0x2c42af[_0x2c7724(0x1de)]===!![]&&_0x2c42af[_0x2c7724(0x1e9)]===_0x5d9d4b);_0x5a4025&&(_0x5a4025[_0x2c7724(0x1d9)]=!![]);}return;}if(!_0x4778f5)return;for(const _0x24dc3f of _0x243675){String(_0x24dc3f[_0x2c7724(0x1e3)]??'')[_0x2c7724(0x1df)]()===_0x4778f5&&(_0x24dc3f['isCurrent']=!![]);}}function a7_0x430f(_0x241d69,_0x1c9b10){_0x241d69=_0x241d69-0x1d7;const _0xfd8288=a7_0xfd82();let _0x430ff1=_0xfd8288[_0x241d69];return _0x430ff1;}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x184c6c){const _0x3c4609=a7_0x430f;return formatScopeLabel(_0x184c6c[_0x3c4609(0x1e6)]?_0x3c4609(0x1e6):_0x3c4609(0x1e1));}function a7_0xfd82(){const _0x32281a=['definedIn','defaultApp','named','trim','4114315dBNVFa','project','17627918CAmqXU','appcode','find','1210508hqYhGQ','global','appCode','1739406srTnyf','name','currentApp','754332gPiqls','isCurrent','272169gHvcUA','1276452KreNwN'];a7_0xfd82=function(){return _0x32281a;};return a7_0xfd82();}
1
+ (function(_0x20fd14,_0x581ec9){const _0x2b0421=a7_0xef31,_0x4c47ab=_0x20fd14();while(!![]){try{const _0x420600=-parseInt(_0x2b0421(0x81))/0x1*(parseInt(_0x2b0421(0x79))/0x2)+parseInt(_0x2b0421(0x82))/0x3+-parseInt(_0x2b0421(0x6d))/0x4*(parseInt(_0x2b0421(0x7f))/0x5)+parseInt(_0x2b0421(0x72))/0x6+parseInt(_0x2b0421(0x80))/0x7*(parseInt(_0x2b0421(0x7a))/0x8)+parseInt(_0x2b0421(0x73))/0x9+-parseInt(_0x2b0421(0x6e))/0xa*(-parseInt(_0x2b0421(0x76))/0xb);if(_0x420600===_0x581ec9)break;else _0x4c47ab['push'](_0x4c47ab['shift']());}catch(_0x2dba4e){_0x4c47ab['push'](_0x4c47ab['shift']());}}}(a7_0x1c2a,0x28ea5));import{CLI_BIN_NAME}from'../../constant/cli.js';function a7_0x1c2a(){const _0xa9b36c=['36376LFlgen','defaultApp','isCurrent','find','definedIn','6770alucmp','126FdCptV','20519XXYSEQ','332121UwffUE','64bssZzH','400740HIRbAT','appCode','name','named','516792hVAUjq','865827QcuHyy','global','trim','11JWndOI','appcode','currentApp','22hYslxx'];a7_0x1c2a=function(){return _0xa9b36c;};return a7_0x1c2a();}import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x4a4f33,_0x49a856){const _0x32e810=a7_0xef31;if(!_0x49a856)return;const _0x21ebfe=!!(_0x49a856['currentApp']??_0x49a856[_0x32e810(0x7b)]);for(const _0x436d0d of _0x4a4f33){_0x436d0d[_0x32e810(0x7c)]=![];}const _0x582546=_0x49a856[_0x32e810(0x6f)]!=null?String(_0x49a856[_0x32e810(0x6f)])['trim']():'';if(_0x21ebfe){const _0x1fb681=_0x49a856[_0x32e810(0x78)]??_0x49a856[_0x32e810(0x7b)];if(_0x1fb681){const _0x4a6a62=_0x4a4f33[_0x32e810(0x7d)](_0x303ddf=>_0x303ddf[_0x32e810(0x71)]===!![]&&_0x303ddf[_0x32e810(0x70)]===_0x1fb681&&_0x303ddf[_0x32e810(0x7e)]==='local'),_0x2b73db=_0x4a6a62??_0x4a4f33[_0x32e810(0x7d)](_0x4a775f=>_0x4a775f['named']===!![]&&_0x4a775f['name']===_0x1fb681);if(_0x2b73db){const _0x3740e9=String(_0x2b73db['appcode']??'')[_0x32e810(0x75)]();if(!_0x582546||_0x3740e9===_0x582546){_0x2b73db[_0x32e810(0x7c)]=!![];return;}}}if(_0x582546){const _0x4bbd9c=_0x4a4f33[_0x32e810(0x7d)](_0x685c80=>String(_0x685c80['appcode']??'')[_0x32e810(0x75)]()===_0x582546);_0x4bbd9c&&(_0x4bbd9c[_0x32e810(0x7c)]=!![]);}return;}if(!_0x582546)return;for(const _0x41ffbd of _0x4a4f33){String(_0x41ffbd[_0x32e810(0x77)]??'')[_0x32e810(0x75)]()===_0x582546&&(_0x41ffbd[_0x32e810(0x7c)]=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';function a7_0xef31(_0x546d26,_0x5b7dd8){_0x546d26=_0x546d26-0x6d;const _0x1c2a1a=a7_0x1c2a();let _0xef3157=_0x1c2a1a[_0x546d26];return _0xef3157;}export function scopeLabel(_0x84bce3){const _0x45ec78=a7_0xef31;return formatScopeLabel(_0x84bce3[_0x45ec78(0x74)]?'global':'project');}
@@ -1 +1 @@
1
- const a8_0x23a54e=a8_0x4388;(function(_0x1f5d43,_0x42bf74){const _0x33a252=a8_0x4388,_0x2d35fb=_0x1f5d43();while(!![]){try{const _0x3643e5=-parseInt(_0x33a252(0x9d))/0x1+-parseInt(_0x33a252(0x8a))/0x2+parseInt(_0x33a252(0xb0))/0x3+-parseInt(_0x33a252(0x89))/0x4*(parseInt(_0x33a252(0xb4))/0x5)+parseInt(_0x33a252(0x7a))/0x6+-parseInt(_0x33a252(0x88))/0x7+parseInt(_0x33a252(0x78))/0x8*(parseInt(_0x33a252(0x91))/0x9);if(_0x3643e5===_0x42bf74)break;else _0x2d35fb['push'](_0x2d35fb['shift']());}catch(_0x4d2b37){_0x2d35fb['push'](_0x2d35fb['shift']());}}}(a8_0x2b54,0xbf35d));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';function a8_0x4388(_0x1d9e97,_0x27bf86){_0x1d9e97=_0x1d9e97-0x71;const _0x2b54c1=a8_0x2b54();let _0x4388ca=_0x2b54c1[_0x1d9e97];return _0x4388ca;}const ARTIFACT_TYPE_REACT_MODULE='react_module',ARTIFACT_SOURCE_AGENT=a8_0x23a54e(0x85),ALLOWED_REACT_MODULE_IMPORTS=[a8_0x23a54e(0xb1),a8_0x23a54e(0x98),a8_0x23a54e(0xad),a8_0x23a54e(0x90),'antd',a8_0x23a54e(0xab)];export const ALLOWED_REACT_MODULE_IMPORTS_TEXT=ALLOWED_REACT_MODULE_IMPORTS['join'](',\x20');const IMPORT_SOURCE_PATTERNS=[/\bimport\s+(?:type\s+)?(?:[^'";]*?\s+from\s+)?["']([^"']+)["']/g,/\bexport\s+(?:type\s+)?[^'";]*?\s+from\s+["']([^"']+)["']/g,/\bimport\s*\(\s*["']([^"']+)["']\s*\)/g,/\brequire\s*\(\s*["']([^"']+)["']\s*\)/g],PAGE_LEVEL_PATTERNS=[/<!doctype\s+html/i,/<\s*html\b/i,/\bcreateRoot\s*\(/,/\bReactDOM\s*\.\s*render\s*\(/,/\bReactDOM\s*\.\s*createRoot\s*\(/],FILE_FLAG={'name':a8_0x23a54e(0x75),'type':a8_0x23a54e(0x7e),'required':!![],'description':'Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file'},ARTIFACT_NAME_FLAG={'name':a8_0x23a54e(0x8b),'type':a8_0x23a54e(0x7e),'description':'Artifact\x20display\x20name'},METADATA_FLAG={'name':a8_0x23a54e(0x84),'type':a8_0x23a54e(0x7e),'description':a8_0x23a54e(0x7d)};function isPlainObject(_0x2b8c3d){const _0x2e07e6=a8_0x23a54e;return typeof _0x2b8c3d===_0x2e07e6(0xa9)&&_0x2b8c3d!==null&&!Array[_0x2e07e6(0x9c)](_0x2b8c3d);}function readSourceFile(_0x5d4936){const _0x14bd45=a8_0x23a54e;if(!_0x5d4936)throw CliErrors[_0x14bd45(0xb3)](_0x14bd45(0x93));if(!existsSync(_0x5d4936))throw CliErrors[_0x14bd45(0xb3)]('File\x20not\x20found:\x20'+_0x5d4936);if(!statSync(_0x5d4936)['isFile']())throw CliErrors['validation']('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x5d4936);const _0x45b388=readFileSync(_0x5d4936,'utf8');return validateReactModuleSource(_0x45b388),_0x45b388;}function parseMetadata(_0x5797c8){const _0x585442=a8_0x23a54e;if(!_0x5797c8)return undefined;let _0xfd1456;try{_0xfd1456=JSON[_0x585442(0xa5)](_0x5797c8);}catch{throw CliErrors[_0x585442(0xb3)](_0x585442(0xaa)+_0x5797c8);}if(!isPlainObject(_0xfd1456))throw CliErrors[_0x585442(0xb3)](_0x585442(0x8d));const _0x2e0be9={..._0xfd1456};return delete _0x2e0be9[_0x585442(0xac)],_0x2e0be9;}function getPackageName(_0x2f2db4){const _0x227ad4=a8_0x23a54e;if(_0x2f2db4[_0x227ad4(0x7f)]('@')){const [_0x2ec683,_0x5a292b]=_0x2f2db4[_0x227ad4(0x83)]('/');return _0x2ec683&&_0x5a292b?_0x2ec683+'/'+_0x5a292b:_0x2f2db4;}return _0x2f2db4[_0x227ad4(0x83)]('/')[0x0]||_0x2f2db4;}function validateAllowedImports(_0x460b5f){const _0x424c79=a8_0x23a54e,_0x206524=new Set();for(const _0x4902b1 of IMPORT_SOURCE_PATTERNS){_0x4902b1[_0x424c79(0x76)]=0x0;let _0x5ccffc;while((_0x5ccffc=_0x4902b1[_0x424c79(0xb6)](_0x460b5f))!==null){const _0x4706ac=_0x5ccffc[0x1]?.[_0x424c79(0x71)]();_0x4706ac&&_0x206524[_0x424c79(0xa1)](_0x4706ac);}}const _0x336326=[..._0x206524][_0x424c79(0x99)](getPackageName)[_0x424c79(0x81)](_0x1c8201=>!ALLOWED_REACT_MODULE_IMPORTS[_0x424c79(0xa7)](_0x1c8201));if(_0x336326[_0x424c79(0x7c)]>0x0)throw CliErrors['validation'](_0x424c79(0x73)+ALLOWED_REACT_MODULE_IMPORTS_TEXT+'.\x20Unsupported:\x20'+[...new Set(_0x336326)]['join'](',\x20'));}export function validateReactModuleSource(_0x2bf975){const _0x5e3a6c=a8_0x23a54e;if(!_0x2bf975[_0x5e3a6c(0x71)]())throw CliErrors[_0x5e3a6c(0xb3)](_0x5e3a6c(0xae));if(PAGE_LEVEL_PATTERNS[_0x5e3a6c(0xa4)](_0x3e8dc9=>_0x3e8dc9[_0x5e3a6c(0xbb)](_0x2bf975)))throw CliErrors[_0x5e3a6c(0xb3)](_0x5e3a6c(0xaf));validateAllowedImports(_0x2bf975);}function buildArtifactInput(_0x5519d0){const _0x57317e=a8_0x23a54e,_0x1c4bf8=readSourceFile(_0x5519d0[_0x57317e(0xa3)](_0x57317e(0x75))),_0x6ff9b9=_0x5519d0[_0x57317e(0xa3)](_0x57317e(0x8b))[_0x57317e(0x71)](),_0x4fef80=parseMetadata(_0x5519d0[_0x57317e(0xa3)](_0x57317e(0x84)));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x6ff9b9?{'name':_0x6ff9b9}:{},'content':_0x1c4bf8,..._0x4fef80?{'metadata':_0x4fef80}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0x582a2f){const _0x47cbdf=a8_0x23a54e;return{'id':_0x582a2f['id'],'name':_0x582a2f['name'],'artifactType':_0x582a2f[_0x47cbdf(0x8f)],'source':_0x582a2f[_0x47cbdf(0x94)],'favorite':_0x582a2f[_0x47cbdf(0x87)],'deleted':_0x582a2f[_0x47cbdf(0xa6)],'createTime':_0x582a2f[_0x47cbdf(0x82)],'updateTime':_0x582a2f[_0x47cbdf(0x86)]};}function detailArtifact(_0x41df79){const _0xab1edf=a8_0x23a54e;return{'id':_0x41df79['id'],'appCode':_0x41df79['appCode'],'name':_0x41df79['name'],'artifactType':_0x41df79[_0xab1edf(0x8f)],'source':_0x41df79[_0xab1edf(0x94)],'favorite':_0x41df79['favorite'],'deleted':_0x41df79[_0xab1edf(0xa6)],'content':_0x41df79[_0xab1edf(0xba)]??'','compiledContent':_0x41df79[_0xab1edf(0xac)],'metadata':_0x41df79[_0xab1edf(0x84)]??{},'createTime':_0x41df79['createTime'],'updateTime':_0x41df79[_0xab1edf(0x86)]};}function readFavoriteFlag(_0x30da94){const _0x18d5f2=a8_0x23a54e,_0x4a6640=_0x30da94[_0x18d5f2(0x7b)](_0x18d5f2(0x87));return _0x4a6640===undefined||_0x4a6640===null||_0x4a6640===''?undefined:_0x30da94[_0x18d5f2(0x97)](_0x18d5f2(0x87));}const artifactList={'service':a8_0x23a54e(0x9f),'command':'list','description':a8_0x23a54e(0x9e),'risk':a8_0x23a54e(0x9a),'flags':[{'name':a8_0x23a54e(0x94),'type':a8_0x23a54e(0x7e),'description':a8_0x23a54e(0xb5)},{'name':a8_0x23a54e(0x87),'type':a8_0x23a54e(0x9b),'description':a8_0x23a54e(0x95)},VERBOSE_FLAG],async 'execute'(_0x47e71c){const _0x2e07c4=a8_0x23a54e,_0x375fe8=await listRuntimeArtifacts(_0x47e71c['appCode'],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x47e71c['str']('source')?{'source':_0x47e71c['str'](_0x2e07c4(0x94))}:{},...readFavoriteFlag(_0x47e71c)!==undefined?{'favorite':readFavoriteFlag(_0x47e71c)}:{}});return{'ok':!![],'data':{'total':_0x375fe8[_0x2e07c4(0x7c)],'items':_0x47e71c['bool'](_0x2e07c4(0x79))?_0x375fe8:_0x375fe8[_0x2e07c4(0x99)](summarizeArtifact)}};}},artifactDetail={'service':a8_0x23a54e(0x9f),'command':'detail','description':'Show\x20one\x20Artifact\x20by\x20id','risk':a8_0x23a54e(0x9a),'flags':[{...ID_FLAG,'description':a8_0x23a54e(0x77)}],async 'execute'(_0x2d7793){const _0x2c5e42=a8_0x23a54e,_0x483ba9=await getRuntimeArtifact(_0x2d7793[_0x2c5e42(0xa8)]('id'),_0x2d7793[_0x2c5e42(0x8c)]);return{'ok':!![],'data':detailArtifact(_0x483ba9)};}},artifactCreate={'service':'artifact','command':a8_0x23a54e(0xb9),'description':'Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','risk':a8_0x23a54e(0x8e),'flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x63df81){const _0x2f61ad=a8_0x23a54e,_0xc6d1a5=buildArtifactInput(_0x63df81),_0x44e1be=await createRuntimeArtifact(_0x63df81[_0x2f61ad(0x8c)],_0xc6d1a5);return{'ok':!![],'data':detailArtifact(_0x44e1be),'message':_0x2f61ad(0xb2)+_0x44e1be['id']+(_0x44e1be['name']?'\x20('+_0x44e1be[_0x2f61ad(0x8b)]+')':'')};},async 'dryRun'(_0x3c39b4){const _0x36f3f0=a8_0x23a54e,_0x323b24=buildArtifactInput(_0x3c39b4);return dryRun(_0x36f3f0(0xb7),_0x36f3f0(0xa2))['body']({'appCode':_0x3c39b4[_0x36f3f0(0x8c)],..._0x323b24})['description']('Preview:\x20create\x20react_module\x20Artifact')[_0x36f3f0(0x96)]();}},artifactUpdate={'service':a8_0x23a54e(0x9f),'command':a8_0x23a54e(0x80),'description':'Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','risk':'write','flags':[{...ID_FLAG,'description':a8_0x23a54e(0x77)},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x56ecb6){const _0x38b4a0=a8_0x23a54e,_0x44c36b=_0x56ecb6[_0x38b4a0(0xa8)]('id'),_0x2c404e=buildArtifactInput(_0x56ecb6),_0x5a4eff=await updateRuntimeArtifact(_0x44c36b,_0x56ecb6[_0x38b4a0(0x8c)],_0x2c404e);return{'ok':!![],'data':detailArtifact(_0x5a4eff),'message':_0x38b4a0(0x72)+_0x5a4eff['id']+(_0x5a4eff[_0x38b4a0(0x8b)]?'\x20('+_0x5a4eff[_0x38b4a0(0x8b)]+')':'')};},async 'dryRun'(_0xd20ce){const _0x256342=a8_0x23a54e,_0x34c60b=_0xd20ce['num']('id'),_0x25ad9a=buildArtifactInput(_0xd20ce);return dryRun('POST',_0x256342(0xa0)+_0x34c60b+_0x256342(0xb8))['body']({'appCode':_0xd20ce[_0x256342(0x8c)],..._0x25ad9a})[_0x256342(0x74)](_0x256342(0x92)+_0x34c60b)[_0x256342(0x96)]();}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];function a8_0x2b54(){const _0x18a44c=['@ant-design/icons','compiledContent','lodash','Artifact\x20source\x20file\x20is\x20blank.','react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.','208788EIpoxe','react','Created\x20Artifact\x20','validation','85VoCXPU','Optional\x20source\x20filter,\x20for\x20example\x20AGENT','exec','POST','/update','create','content','test','trim','Updated\x20Artifact\x20','react_module\x20imports\x20are\x20limited\x20to:\x20','description','file','lastIndex','Artifact\x20ID','264ByhvRZ','verbose','2357892PNfszK','flag','length','Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped','string','startsWith','update','filter','createTime','split','metadata','AGENT','updateTime','favorite','10314675vVVJPA','319524pbyrjI','964792hobCkZ','name','appCode','--metadata\x20must\x20be\x20a\x20JSON\x20object.','write','artifactType','dayjs','1404171Lufgmx','Preview:\x20update\x20react_module\x20Artifact\x20','File\x20path\x20is\x20required.','source','Optional\x20favorite-state\x20filter','build','bool','react-dom','map','read','boolean','isArray','1514110RJobRk','List\x20current-app\x20react_module\x20Artifacts','artifact','/client/artifact/','add','/client/artifact/create','str','some','parse','deleted','includes','num','object','Invalid\x20JSON\x20for\x20--metadata:\x20'];a8_0x2b54=function(){return _0x18a44c;};return a8_0x2b54();}
1
+ const a8_0x23242b=a8_0x478f;(function(_0x1b9873,_0x667127){const _0x38c005=a8_0x478f,_0x5a87ea=_0x1b9873();while(!![]){try{const _0x5089d2=parseInt(_0x38c005(0x226))/0x1+parseInt(_0x38c005(0x1e9))/0x2*(-parseInt(_0x38c005(0x22a))/0x3)+parseInt(_0x38c005(0x219))/0x4+-parseInt(_0x38c005(0x1f4))/0x5*(parseInt(_0x38c005(0x1eb))/0x6)+-parseInt(_0x38c005(0x1e0))/0x7+parseInt(_0x38c005(0x21c))/0x8*(parseInt(_0x38c005(0x1e7))/0x9)+parseInt(_0x38c005(0x1f5))/0xa;if(_0x5089d2===_0x667127)break;else _0x5a87ea['push'](_0x5a87ea['shift']());}catch(_0x362e19){_0x5a87ea['push'](_0x5a87ea['shift']());}}}(a8_0x3220,0x9c6e8));import{existsSync,readFileSync,statSync}from'node:fs';import{createRuntimeArtifact,getRuntimeArtifact,listRuntimeArtifacts,updateRuntimeArtifact}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const ARTIFACT_TYPE_REACT_MODULE='react_module',ARTIFACT_SOURCE_AGENT=a8_0x23242b(0x22d),ALLOWED_REACT_MODULE_IMPORTS=[a8_0x23242b(0x225),a8_0x23242b(0x20a),a8_0x23242b(0x20b),a8_0x23242b(0x1e5),a8_0x23242b(0x1fb),'@ant-design/icons'];export const ALLOWED_REACT_MODULE_IMPORTS_TEXT=ALLOWED_REACT_MODULE_IMPORTS[a8_0x23242b(0x1f7)](',\x20');const IMPORT_SOURCE_PATTERNS=[/\bimport\s+(?:type\s+)?(?:[^'";]*?\s+from\s+)?["']([^"']+)["']/g,/\bexport\s+(?:type\s+)?[^'";]*?\s+from\s+["']([^"']+)["']/g,/\bimport\s*\(\s*["']([^"']+)["']\s*\)/g,/\brequire\s*\(\s*["']([^"']+)["']\s*\)/g],PAGE_LEVEL_PATTERNS=[/<!doctype\s+html/i,/<\s*html\b/i,/\bcreateRoot\s*\(/,/\bReactDOM\s*\.\s*render\s*\(/,/\bReactDOM\s*\.\s*createRoot\s*\(/],FILE_FLAG={'name':'file','type':'string','required':!![],'description':'Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file'},ARTIFACT_NAME_FLAG={'name':a8_0x23242b(0x20e),'type':a8_0x23242b(0x22b),'description':a8_0x23242b(0x1e6)},METADATA_FLAG={'name':a8_0x23242b(0x210),'type':a8_0x23242b(0x22b),'description':a8_0x23242b(0x1ee)};function isPlainObject(_0x3cf549){const _0x44a527=a8_0x23242b;return typeof _0x3cf549==='object'&&_0x3cf549!==null&&!Array[_0x44a527(0x1f6)](_0x3cf549);}function readSourceFile(_0xd6a997){const _0x3105e9=a8_0x23242b;if(!_0xd6a997)throw CliErrors[_0x3105e9(0x227)](_0x3105e9(0x229));if(!existsSync(_0xd6a997))throw CliErrors[_0x3105e9(0x227)](_0x3105e9(0x200)+_0xd6a997);if(!statSync(_0xd6a997)['isFile']())throw CliErrors[_0x3105e9(0x227)](_0x3105e9(0x215)+_0xd6a997);const _0x5aca0f=readFileSync(_0xd6a997,_0x3105e9(0x1df));return validateReactModuleSource(_0x5aca0f),_0x5aca0f;}function parseMetadata(_0x156356){const _0x20393c=a8_0x23242b;if(!_0x156356)return undefined;let _0x2bd4c2;try{_0x2bd4c2=JSON[_0x20393c(0x1ed)](_0x156356);}catch{throw CliErrors['validation'](_0x20393c(0x1f9)+_0x156356);}if(!isPlainObject(_0x2bd4c2))throw CliErrors[_0x20393c(0x227)](_0x20393c(0x1e3));const _0x50bba7={..._0x2bd4c2};return delete _0x50bba7[_0x20393c(0x218)],_0x50bba7;}function getPackageName(_0x475bb6){const _0x483e0a=a8_0x23242b;if(_0x475bb6['startsWith']('@')){const [_0x8bee35,_0x120a62]=_0x475bb6[_0x483e0a(0x1f3)]('/');return _0x8bee35&&_0x120a62?_0x8bee35+'/'+_0x120a62:_0x475bb6;}return _0x475bb6[_0x483e0a(0x1f3)]('/')[0x0]||_0x475bb6;}function validateAllowedImports(_0x408775){const _0x1107b5=a8_0x23242b,_0x37eebd=new Set();for(const _0x53af60 of IMPORT_SOURCE_PATTERNS){_0x53af60[_0x1107b5(0x209)]=0x0;let _0x41f3d3;while((_0x41f3d3=_0x53af60[_0x1107b5(0x216)](_0x408775))!==null){const _0x1a1b9b=_0x41f3d3[0x1]?.['trim']();_0x1a1b9b&&_0x37eebd[_0x1107b5(0x1f0)](_0x1a1b9b);}}const _0x3d27b5=[..._0x37eebd][_0x1107b5(0x1ec)](getPackageName)[_0x1107b5(0x1f1)](_0x51e7a3=>!ALLOWED_REACT_MODULE_IMPORTS['includes'](_0x51e7a3));if(_0x3d27b5[_0x1107b5(0x1fc)]>0x0)throw CliErrors['validation'](_0x1107b5(0x208)+ALLOWED_REACT_MODULE_IMPORTS_TEXT+'.\x20Unsupported:\x20'+[...new Set(_0x3d27b5)]['join'](',\x20'));}export function validateReactModuleSource(_0x596d73){const _0x1fd476=a8_0x23242b;if(!_0x596d73[_0x1fd476(0x222)]())throw CliErrors['validation'](_0x1fd476(0x213));if(PAGE_LEVEL_PATTERNS[_0x1fd476(0x220)](_0x3cf64f=>_0x3cf64f[_0x1fd476(0x21f)](_0x596d73)))throw CliErrors[_0x1fd476(0x227)]('react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.');validateAllowedImports(_0x596d73);}function buildArtifactInput(_0x56f8b8){const _0x2fee24=a8_0x23242b,_0x416bdc=readSourceFile(_0x56f8b8[_0x2fee24(0x20c)]('file')),_0x11c25d=_0x56f8b8['str'](_0x2fee24(0x20e))[_0x2fee24(0x222)](),_0x8602ac=parseMetadata(_0x56f8b8[_0x2fee24(0x20c)](_0x2fee24(0x210)));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x11c25d?{'name':_0x11c25d}:{},'content':_0x416bdc,..._0x8602ac?{'metadata':_0x8602ac}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0xaa34a9){const _0x361e55=a8_0x23242b;return{'id':_0xaa34a9['id'],'name':_0xaa34a9[_0x361e55(0x20e)],'artifactType':_0xaa34a9[_0x361e55(0x1e8)],'source':_0xaa34a9[_0x361e55(0x1f2)],'favorite':_0xaa34a9[_0x361e55(0x20f)],'deleted':_0xaa34a9[_0x361e55(0x21d)],'createTime':_0xaa34a9[_0x361e55(0x22c)],'updateTime':_0xaa34a9[_0x361e55(0x205)]};}function detailArtifact(_0x478314){const _0x1c6fc=a8_0x23242b;return{'id':_0x478314['id'],'appCode':_0x478314['appCode'],'name':_0x478314[_0x1c6fc(0x20e)],'artifactType':_0x478314[_0x1c6fc(0x1e8)],'source':_0x478314[_0x1c6fc(0x1f2)],'favorite':_0x478314[_0x1c6fc(0x20f)],'deleted':_0x478314['deleted'],'content':_0x478314[_0x1c6fc(0x21b)]??'','compiledContent':_0x478314[_0x1c6fc(0x218)],'metadata':_0x478314[_0x1c6fc(0x210)]??{},'createTime':_0x478314[_0x1c6fc(0x22c)],'updateTime':_0x478314[_0x1c6fc(0x205)]};}function readFavoriteFlag(_0x15720f){const _0x33af60=a8_0x23242b,_0x5f5344=_0x15720f[_0x33af60(0x1fd)](_0x33af60(0x20f));return _0x5f5344===undefined||_0x5f5344===null||_0x5f5344===''?undefined:_0x15720f['bool'](_0x33af60(0x20f));}function a8_0x478f(_0x4d1d16,_0x3317d9){_0x4d1d16=_0x4d1d16-0x1df;const _0x322013=a8_0x3220();let _0x478f8b=_0x322013[_0x4d1d16];return _0x478f8b;}function a8_0x3220(){const _0x365dd3=['651682pLytYb','validation','num','File\x20path\x20is\x20required.','15sWDuyX','string','createTime','AGENT','utf8','8840538woqlIj','Preview:\x20create\x20react_module\x20Artifact','/client/artifact/','--metadata\x20must\x20be\x20a\x20JSON\x20object.','description','dayjs','Artifact\x20display\x20name','568872chykCc','artifactType','45442PazesB','List\x20current-app\x20react_module\x20Artifacts','42lznnVE','map','parse','Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped','detail','add','filter','source','split','128645VFlpTY','13241360iQVEov','isArray','join','Optional\x20source\x20filter,\x20for\x20example\x20AGENT','Invalid\x20JSON\x20for\x20--metadata:\x20','appCode','antd','length','flag','/update','boolean','File\x20not\x20found:\x20','bool','list','Preview:\x20update\x20react_module\x20Artifact\x20','artifact','updateTime','Created\x20Artifact\x20','Updated\x20Artifact\x20','react_module\x20imports\x20are\x20limited\x20to:\x20','lastIndex','react-dom','lodash','str','Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','name','favorite','metadata','/client/artifact/create','create','Artifact\x20source\x20file\x20is\x20blank.','build','File\x20is\x20not\x20a\x20regular\x20file:\x20','exec','Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','compiledContent','380608gqIwPT','write','content','16sHApLm','deleted','Show\x20one\x20Artifact\x20by\x20id','test','some','Artifact\x20ID','trim','read','POST','react'];a8_0x3220=function(){return _0x365dd3;};return a8_0x3220();}const artifactList={'service':'artifact','command':a8_0x23242b(0x202),'description':a8_0x23242b(0x1ea),'risk':a8_0x23242b(0x223),'flags':[{'name':a8_0x23242b(0x1f2),'type':'string','description':a8_0x23242b(0x1f8)},{'name':a8_0x23242b(0x20f),'type':a8_0x23242b(0x1ff),'description':'Optional\x20favorite-state\x20filter'},VERBOSE_FLAG],async 'execute'(_0x211113){const _0x2d3114=a8_0x23242b,_0x632377=await listRuntimeArtifacts(_0x211113[_0x2d3114(0x1fa)],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x211113['str']('source')?{'source':_0x211113[_0x2d3114(0x20c)](_0x2d3114(0x1f2))}:{},...readFavoriteFlag(_0x211113)!==undefined?{'favorite':readFavoriteFlag(_0x211113)}:{}});return{'ok':!![],'data':{'total':_0x632377[_0x2d3114(0x1fc)],'items':_0x211113[_0x2d3114(0x201)]('verbose')?_0x632377:_0x632377['map'](summarizeArtifact)}};}},artifactDetail={'service':a8_0x23242b(0x204),'command':a8_0x23242b(0x1ef),'description':a8_0x23242b(0x21e),'risk':a8_0x23242b(0x223),'flags':[{...ID_FLAG,'description':a8_0x23242b(0x221)}],async 'execute'(_0x47c6f5){const _0x11451c=a8_0x23242b,_0x34e396=await getRuntimeArtifact(_0x47c6f5[_0x11451c(0x228)]('id'),_0x47c6f5[_0x11451c(0x1fa)]);return{'ok':!![],'data':detailArtifact(_0x34e396)};}},artifactCreate={'service':a8_0x23242b(0x204),'command':a8_0x23242b(0x212),'description':a8_0x23242b(0x217),'risk':a8_0x23242b(0x21a),'flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x425a58){const _0x4ce470=a8_0x23242b,_0x7ce051=buildArtifactInput(_0x425a58),_0xf7403a=await createRuntimeArtifact(_0x425a58[_0x4ce470(0x1fa)],_0x7ce051);return{'ok':!![],'data':detailArtifact(_0xf7403a),'message':_0x4ce470(0x206)+_0xf7403a['id']+(_0xf7403a['name']?'\x20('+_0xf7403a['name']+')':'')};},async 'dryRun'(_0x24d26a){const _0x7b82a9=a8_0x23242b,_0x4bae56=buildArtifactInput(_0x24d26a);return dryRun(_0x7b82a9(0x224),_0x7b82a9(0x211))['body']({'appCode':_0x24d26a['appCode'],..._0x4bae56})['description'](_0x7b82a9(0x1e1))[_0x7b82a9(0x214)]();}},artifactUpdate={'service':'artifact','command':'update','description':a8_0x23242b(0x20d),'risk':'write','flags':[{...ID_FLAG,'description':a8_0x23242b(0x221)},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x233841){const _0x2d4d04=a8_0x23242b,_0x8a961b=_0x233841[_0x2d4d04(0x228)]('id'),_0x435f8f=buildArtifactInput(_0x233841),_0x4b105f=await updateRuntimeArtifact(_0x8a961b,_0x233841[_0x2d4d04(0x1fa)],_0x435f8f);return{'ok':!![],'data':detailArtifact(_0x4b105f),'message':_0x2d4d04(0x207)+_0x4b105f['id']+(_0x4b105f[_0x2d4d04(0x20e)]?'\x20('+_0x4b105f[_0x2d4d04(0x20e)]+')':'')};},async 'dryRun'(_0x36583c){const _0xda792e=a8_0x23242b,_0x3be564=_0x36583c['num']('id'),_0x4b657e=buildArtifactInput(_0x36583c);return dryRun('POST',_0xda792e(0x1e2)+_0x3be564+_0xda792e(0x1fe))['body']({'appCode':_0x36583c[_0xda792e(0x1fa)],..._0x4b657e})[_0xda792e(0x1e4)](_0xda792e(0x203)+_0x3be564)[_0xda792e(0x214)]();}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
@@ -1 +1 @@
1
- const a9_0x5f3191=a9_0x22db;(function(_0xcb1482,_0x1a1aff){const _0x4f8b47=a9_0x22db,_0x5a91f7=_0xcb1482();while(!![]){try{const _0x491336=parseInt(_0x4f8b47(0x156))/0x1*(parseInt(_0x4f8b47(0x181))/0x2)+parseInt(_0x4f8b47(0x12e))/0x3+parseInt(_0x4f8b47(0x12b))/0x4+parseInt(_0x4f8b47(0x175))/0x5+-parseInt(_0x4f8b47(0x17f))/0x6+-parseInt(_0x4f8b47(0x150))/0x7*(parseInt(_0x4f8b47(0x173))/0x8)+parseInt(_0x4f8b47(0x151))/0x9*(parseInt(_0x4f8b47(0x174))/0xa);if(_0x491336===_0x1a1aff)break;else _0x5a91f7['push'](_0x5a91f7['shift']());}catch(_0x5d7bc0){_0x5a91f7['push'](_0x5a91f7['shift']());}}}(a9_0x20ba,0x5b413));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_0x22db(_0x466931,_0x40d3e7){_0x466931=_0x466931-0x128;const _0x20ba30=a9_0x20ba();let _0x22db73=_0x20ba30[_0x466931];return _0x22db73;}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';function a9_0x20ba(){const _0x52db2c=['Read\x20from\x20global\x20config\x20(default)','global','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','3677076TuoSnS','Option\x20C:\x20environment\x20variable','442bVZVCw','bool','yes','AccessKey\x20saved\x20to\x20','885976kBgdny','AccessKey\x20cleared\x20from\x20','project','216660FpLbCU','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','auth','AccessKey\x20(ak_xxx...)','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','trim','stdin','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','Clear\x20from\x20global\x20config\x20(default)','\x20\x20export\x20','Tip:\x20you\x20can\x20also\x20run:','isTTY','validation','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','\x20config','Shorthand\x20for\x20--access-key','Option\x20A:\x20','write','\x20(via\x20','init','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','global-default','development','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','AccessKey:\x20','daily','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','status','No\x20AccessKey\x20found\x20in\x20','env','logout','login','122423aaWlFS','9sWtAOo','\x20Current\x20env:\x20','cancelled','accessKey','info','317ElYZpx','access-key','`auth\x20login`\x20does\x20not\x20support\x20--yes.','production','str','Use\x20`','Show\x20current\x20authentication\x20status','join','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','test','userCenterDisplayName','\x20auth\x20login\x20--access-key\x20<ak_xxx>','nonInteractive','ACCESS_KEY','Write\x20to\x20global\x20config\x20(default)','string','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','push','Missing\x20accessKey.','\x20auth\x20status','read','\x20scope.','\x20doctor','ClientAk','\x20config.','Clear\x20accessKey\x20from\x20config','Invalid\x20accessKey\x20format:\x20\x22','\x20Verify:\x20','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','48dFOZHt','475570PGXxpX','3401155siaKGf','repeat','boolean','Auth\x20config\x20reinitialized\x20in\x20','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','=ak_xxx'];a9_0x20ba=function(){return _0x52db2c;};return a9_0x20ba();}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 _0x4b9f9f=a9_0x22db;writeCliSideChannelLine(_0x4b9f9f(0x172)+PRODUCT_CONFIG['userCenterDisplayName']+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x4b9f9f(0x138)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x4b9f9f(0x161));}function buildAccessKeySetupGuide(){const _0x176581=a9_0x22db;return[_0x176581(0x172)+PRODUCT_CONFIG[_0x176581(0x160)]+':',USER_ACCESS_KEY_CREATE_URL,_0x176581(0x149)+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]']['join']('\x0a');}function canPromptForAccessKey(_0xf53191){const _0x3bec85=a9_0x22db;return!_0xf53191[_0x3bec85(0x162)]&&process[_0x3bec85(0x134)][_0x3bec85(0x139)]!==![]&&process['stdout'][_0x3bec85(0x139)]!==![];}function resolveAuthScopeFlags(_0xeb40e){const _0x4ee9a5=a9_0x22db;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0xeb40e[_0x4ee9a5(0x128)]('global'),'explicitProject':_0xeb40e[_0x4ee9a5(0x128)]('project'),'policy':_0x4ee9a5(0x144)}));}async function resolveAuthWriteInput(_0x34029b){const _0x56df76=a9_0x22db;let _0x136a70=(_0x34029b[_0x56df76(0x15a)](_0x56df76(0x157))||_0x34029b[_0x56df76(0x15a)]('ak')||'')[_0x56df76(0x133)]();const _0x33e1ea=(_0x34029b['str'](_0x56df76(0x14d))||'')[_0x56df76(0x133)]();if(!_0x136a70&&canPromptForAccessKey(_0x34029b))try{showAccessKeyCreateHint(),_0x136a70=await promptAccessKey('');}catch(_0x218975){if(isAbortPrompt(_0x218975))throw CliErrors[_0x56df76(0x153)]();throw _0x218975;}if(!_0x136a70)throw CliErrors[_0x56df76(0x13a)](_0x56df76(0x168),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x56df76(0x15f)](_0x136a70))throw CliErrors['validation'](_0x56df76(0x170)+_0x136a70+'\x22',_0x56df76(0x13c));if(!_0x33e1ea)return{'accessKey':_0x136a70};const _0x22bee1=normalizeEnv(_0x33e1ea);return{'accessKey':_0x136a70,'env':isDaily(_0x22bee1)?_0x56df76(0x148):isDev(_0x22bee1)?_0x56df76(0x145):_0x56df76(0x159)};}export const authDefinitions=[{'service':'auth','command':a9_0x5f3191(0x14f),'description':a9_0x5f3191(0x146),'risk':a9_0x5f3191(0x140),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x5f3191(0x157),'type':a9_0x5f3191(0x165),'description':a9_0x5f3191(0x131)},{'name':'ak','type':a9_0x5f3191(0x165),'description':a9_0x5f3191(0x13e)},{'name':'global','type':a9_0x5f3191(0x177),'description':a9_0x5f3191(0x164),'default':!![]},{'name':a9_0x5f3191(0x12d),'type':a9_0x5f3191(0x177),'description':a9_0x5f3191(0x166),'default':![]}],async 'execute'(_0x3b8aef){const _0x2f3489=a9_0x5f3191;if(_0x3b8aef[_0x2f3489(0x128)](_0x2f3489(0x129)))throw CliErrors[_0x2f3489(0x13a)](_0x2f3489(0x158),_0x2f3489(0x15b)+CLI_BIN_NAME+_0x2f3489(0x17a)+CLI_BIN_NAME+_0x2f3489(0x13b));const _0x140190=(_0x3b8aef['str'](_0x2f3489(0x157))||_0x3b8aef['str']('ak')||'')[_0x2f3489(0x133)]();if(!_0x140190&&_0x3b8aef[_0x2f3489(0x162)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x15eb4e=await resolveAuthWriteInput(_0x3b8aef),_0x23e8d1=resolveAuthScopeFlags(_0x3b8aef),_0x37fc82=readScopedConfig(_0x23e8d1);_0x37fc82[_0x2f3489(0x154)]=_0x15eb4e['accessKey'];_0x15eb4e[_0x2f3489(0x14d)]&&(_0x37fc82[_0x2f3489(0x14d)]=_0x15eb4e[_0x2f3489(0x14d)]);writeScopedConfig(_0x37fc82,_0x23e8d1);const _0x26e6f8=_0x23e8d1[_0x2f3489(0x17d)]?_0x2f3489(0x17d):_0x2f3489(0x12d),_0x37f287=_0x37fc82[_0x2f3489(0x14d)]?_0x2f3489(0x152)+_0x37fc82[_0x2f3489(0x14d)]+'.':'';return{'ok':!![],'message':_0x2f3489(0x12a)+_0x26e6f8+_0x2f3489(0x16e)+_0x37f287+_0x2f3489(0x171)+CLI_BIN_NAME+_0x2f3489(0x169)};}},{'service':a9_0x5f3191(0x130),'command':a9_0x5f3191(0x142),'description':a9_0x5f3191(0x143),'risk':a9_0x5f3191(0x140),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x5f3191(0x157),'type':'string','description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':a9_0x5f3191(0x165),'description':a9_0x5f3191(0x13e)},{'name':a9_0x5f3191(0x14d),'type':a9_0x5f3191(0x165),'description':a9_0x5f3191(0x12f)},{'name':'global','type':a9_0x5f3191(0x177),'description':a9_0x5f3191(0x164),'default':!![]},{'name':a9_0x5f3191(0x12d),'type':'boolean','description':'Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x5da405){const _0x4a07af=a9_0x5f3191,_0x274c76=await resolveAuthWriteInput(_0x5da405),_0x2d1138=resolveAuthScopeFlags(_0x5da405),_0x59c197={'accessKey':_0x274c76['accessKey']};_0x274c76['env']&&(_0x59c197[_0x4a07af(0x14d)]=_0x274c76[_0x4a07af(0x14d)]);writeScopedConfig(_0x59c197,_0x2d1138);const _0x578306=_0x2d1138[_0x4a07af(0x17d)]?'global':_0x4a07af(0x12d),_0xbade26=_0x59c197[_0x4a07af(0x14d)]?_0x4a07af(0x152)+_0x59c197[_0x4a07af(0x14d)]+'.':'';return{'ok':!![],'message':_0x4a07af(0x178)+_0x578306+_0x4a07af(0x16b)+_0xbade26+'\x20Verify:\x20'+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':a9_0x5f3191(0x130),'command':a9_0x5f3191(0x14e),'description':a9_0x5f3191(0x16f),'risk':a9_0x5f3191(0x140),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'global','type':'boolean','description':a9_0x5f3191(0x136),'default':!![]},{'name':'project','type':a9_0x5f3191(0x177),'description':a9_0x5f3191(0x14a),'default':![]}],async 'execute'(_0x2c169f){const _0x17c739=a9_0x5f3191,_0x1fba64=resolveAuthScopeFlags(_0x2c169f),_0x5168fd=readScopedConfig(_0x1fba64),_0x33141d=!!_0x5168fd[_0x17c739(0x154)];delete _0x5168fd['accessKey'],writeScopedConfig(_0x5168fd,_0x1fba64);const _0xa4b499=_0x1fba64['global']?_0x17c739(0x17d):_0x17c739(0x12d);if(_0x33141d)return{'ok':!![],'message':_0x17c739(0x12c)+_0xa4b499+_0x17c739(0x16e)};return{'ok':!![],'message':_0x17c739(0x14c)+_0xa4b499+'\x20config.\x20Nothing\x20to\x20clear.'};}},{'service':a9_0x5f3191(0x130),'command':a9_0x5f3191(0x14b),'description':a9_0x5f3191(0x15c),'risk':a9_0x5f3191(0x16a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'global','type':a9_0x5f3191(0x177),'description':a9_0x5f3191(0x17c),'default':!![]},{'name':'project','type':a9_0x5f3191(0x177),'description':a9_0x5f3191(0x15e),'default':![]}],async 'execute'(_0x45e5e4){const _0x63f4b9=a9_0x5f3191,_0x381ed9=resolveAuthScopeFlags(_0x45e5e4),_0x21e3d8=readScopedConfig(_0x381ed9),_0x3da31d=productEnvName(_0x63f4b9(0x163)),_0x1bf1c5=productEnv('ACCESS_KEY')||undefined,_0x27b188=_0x21e3d8[_0x63f4b9(0x154)]||undefined,_0x1b0877=_0x1bf1c5||_0x27b188,_0x4396c8=_0x1bf1c5?_0x3da31d+'\x20env\x20var':_0x27b188?(_0x381ed9[_0x63f4b9(0x17d)]?_0x63f4b9(0x17d):_0x63f4b9(0x12d))+_0x63f4b9(0x13d):null,_0x3285cf=['Auth\x20mode:\x20'+AUTH_MODE[_0x63f4b9(0x16d)]];if(_0x1b0877){const _0x46ac25=_0x1b0877['length']>0x8?''+_0x1b0877['slice'](0x0,0x8)+'*'[_0x63f4b9(0x176)](_0x1b0877['length']-0x8):_0x1b0877;_0x3285cf['push'](_0x63f4b9(0x147)+_0x46ac25+(_0x4396c8?_0x63f4b9(0x141)+_0x4396c8+')':''));}return!_0x1b0877&&(_0x3285cf[_0x63f4b9(0x167)](''),_0x3285cf[_0x63f4b9(0x167)](_0x63f4b9(0x17e)),_0x3285cf[_0x63f4b9(0x167)](''),_0x3285cf[_0x63f4b9(0x167)](_0x63f4b9(0x13f)+CLI_BIN_NAME+_0x63f4b9(0x132)),_0x3285cf[_0x63f4b9(0x167)](''),_0x3285cf['push']('Option\x20B:\x20apps\x20config\x20('+PRODUCT_CONFIG['newConfigFileName']+')'),_0x3285cf[_0x63f4b9(0x167)](_0x63f4b9(0x179)),_0x3285cf[_0x63f4b9(0x167)](''),_0x3285cf['push'](_0x63f4b9(0x180)),_0x3285cf['push'](_0x63f4b9(0x137)+_0x3da31d+_0x63f4b9(0x17b)),_0x3285cf['push'](''),_0x3285cf[_0x63f4b9(0x167)]('Then\x20verify\x20with:\x20'+CLI_BIN_NAME+_0x63f4b9(0x169)),_0x3285cf['push'](_0x63f4b9(0x135)+CLI_BIN_NAME+_0x63f4b9(0x16c))),{'ok':!![],'message':_0x3285cf[_0x63f4b9(0x15d)]('\x0a')};}},{'service':'auth','command':a9_0x5f3191(0x155),'description':'Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','risk':a9_0x5f3191(0x16a),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x325499){const _0x2478ea=a9_0x5f3191,_0x7b29a0=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x7b29a0,'meta':{'env':_0x325499['envName']??_0x2478ea(0x159)}}};}}];
1
+ const a9_0x86fcab=a9_0x1525;(function(_0x471a4d,_0x23a99a){const _0x2c2d6f=a9_0x1525,_0x1c956a=_0x471a4d();while(!![]){try{const _0x559b0f=-parseInt(_0x2c2d6f(0x15f))/0x1+parseInt(_0x2c2d6f(0x16c))/0x2+parseInt(_0x2c2d6f(0x16f))/0x3+parseInt(_0x2c2d6f(0x195))/0x4*(parseInt(_0x2c2d6f(0x176))/0x5)+-parseInt(_0x2c2d6f(0x19c))/0x6*(-parseInt(_0x2c2d6f(0x183))/0x7)+parseInt(_0x2c2d6f(0x188))/0x8*(parseInt(_0x2c2d6f(0x15d))/0x9)+parseInt(_0x2c2d6f(0x18b))/0xa*(-parseInt(_0x2c2d6f(0x19d))/0xb);if(_0x559b0f===_0x23a99a)break;else _0x1c956a['push'](_0x1c956a['shift']());}catch(_0x75ef01){_0x1c956a['push'](_0x1c956a['shift']());}}}(a9_0x2046,0x45aa2));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_0x1525(_0x1d0608,_0x568be5){_0x1d0608=_0x1d0608-0x150;const _0x2046fd=a9_0x2046();let _0x1525c9=_0x2046fd[_0x1d0608];return _0x1525c9;}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 _0x6f7b1b=a9_0x1525;writeCliSideChannelLine(_0x6f7b1b(0x15c)+PRODUCT_CONFIG[_0x6f7b1b(0x161)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x6f7b1b(0x154)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x6f7b1b(0x164));}function buildAccessKeySetupGuide(){const _0x2606d8=a9_0x1525;return['AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0x2606d8(0x161)]+':',USER_ACCESS_KEY_CREATE_URL,_0x2606d8(0x18e)+CLI_BIN_NAME+_0x2606d8(0x168)][_0x2606d8(0x19b)]('\x0a');}function canPromptForAccessKey(_0x400dc2){const _0x43f215=a9_0x1525;return!_0x400dc2[_0x43f215(0x174)]&&process[_0x43f215(0x158)][_0x43f215(0x194)]!==![]&&process['stdout'][_0x43f215(0x194)]!==![];}function resolveAuthScopeFlags(_0x3a1f5b){const _0x369440=a9_0x1525;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x3a1f5b[_0x369440(0x17d)]('global'),'explicitProject':_0x3a1f5b[_0x369440(0x17d)]('project'),'policy':_0x369440(0x15a)}));}async function resolveAuthWriteInput(_0x37f0fa){const _0x400966=a9_0x1525;let _0x64a3fb=(_0x37f0fa[_0x400966(0x184)](_0x400966(0x189))||_0x37f0fa[_0x400966(0x184)]('ak')||'')[_0x400966(0x18c)]();const _0x4fe9a6=(_0x37f0fa[_0x400966(0x184)](_0x400966(0x179))||'')[_0x400966(0x18c)]();if(!_0x64a3fb&&canPromptForAccessKey(_0x37f0fa))try{showAccessKeyCreateHint(),_0x64a3fb=await promptAccessKey('');}catch(_0x33d7d8){if(isAbortPrompt(_0x33d7d8))throw CliErrors[_0x400966(0x181)]();throw _0x33d7d8;}if(!_0x64a3fb)throw CliErrors['validation']('Missing\x20accessKey.',buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x400966(0x197)](_0x64a3fb))throw CliErrors[_0x400966(0x1a0)](_0x400966(0x175)+_0x64a3fb+'\x22',_0x400966(0x172));if(!_0x4fe9a6)return{'accessKey':_0x64a3fb};const _0x31d7aa=normalizeEnv(_0x4fe9a6);return{'accessKey':_0x64a3fb,'env':isDaily(_0x31d7aa)?'daily':isDev(_0x31d7aa)?'development':'production'};}export const authDefinitions=[{'service':a9_0x86fcab(0x162),'command':'login','description':a9_0x86fcab(0x186),'risk':a9_0x86fcab(0x17e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x86fcab(0x189),'type':a9_0x86fcab(0x159),'description':a9_0x86fcab(0x167)},{'name':'ak','type':a9_0x86fcab(0x159),'description':a9_0x86fcab(0x165)},{'name':a9_0x86fcab(0x199),'type':'boolean','description':a9_0x86fcab(0x160),'default':!![]},{'name':a9_0x86fcab(0x19f),'type':a9_0x86fcab(0x15b),'description':a9_0x86fcab(0x16d),'default':![]}],async 'execute'(_0x521f4b){const _0x5e454f=a9_0x86fcab;if(_0x521f4b[_0x5e454f(0x17d)](_0x5e454f(0x171)))throw CliErrors[_0x5e454f(0x1a0)](_0x5e454f(0x170),_0x5e454f(0x185)+CLI_BIN_NAME+_0x5e454f(0x191)+CLI_BIN_NAME+_0x5e454f(0x1a1));const _0x433fe7=(_0x521f4b['str'](_0x5e454f(0x189))||_0x521f4b[_0x5e454f(0x184)]('ak')||'')['trim']();if(!_0x433fe7&&_0x521f4b[_0x5e454f(0x174)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x4a9eef=await resolveAuthWriteInput(_0x521f4b),_0x25945e=resolveAuthScopeFlags(_0x521f4b),_0x596b79=readScopedConfig(_0x25945e);_0x596b79[_0x5e454f(0x192)]=_0x4a9eef[_0x5e454f(0x192)];_0x4a9eef[_0x5e454f(0x179)]&&(_0x596b79[_0x5e454f(0x179)]=_0x4a9eef['env']);writeScopedConfig(_0x596b79,_0x25945e);const _0x12b790=_0x25945e[_0x5e454f(0x199)]?'global':_0x5e454f(0x19f),_0x533113=_0x596b79[_0x5e454f(0x179)]?_0x5e454f(0x198)+_0x596b79[_0x5e454f(0x179)]+'.':'';return{'ok':!![],'message':'AccessKey\x20saved\x20to\x20'+_0x12b790+_0x5e454f(0x16a)+_0x533113+'\x20Verify:\x20'+CLI_BIN_NAME+_0x5e454f(0x1a2)};}},{'service':'auth','command':a9_0x86fcab(0x19a),'description':'Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','risk':a9_0x86fcab(0x17e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'access-key','type':a9_0x86fcab(0x159),'description':a9_0x86fcab(0x167)},{'name':'ak','type':a9_0x86fcab(0x159),'description':a9_0x86fcab(0x165)},{'name':a9_0x86fcab(0x179),'type':a9_0x86fcab(0x159),'description':a9_0x86fcab(0x187)},{'name':a9_0x86fcab(0x199),'type':a9_0x86fcab(0x15b),'description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':'project','type':'boolean','description':a9_0x86fcab(0x16d),'default':![]}],async 'execute'(_0x499357){const _0x71fc2d=a9_0x86fcab,_0x31ec26=await resolveAuthWriteInput(_0x499357),_0x26d860=resolveAuthScopeFlags(_0x499357),_0x2a9ae1={'accessKey':_0x31ec26['accessKey']};_0x31ec26[_0x71fc2d(0x179)]&&(_0x2a9ae1[_0x71fc2d(0x179)]=_0x31ec26[_0x71fc2d(0x179)]);writeScopedConfig(_0x2a9ae1,_0x26d860);const _0x14646e=_0x26d860[_0x71fc2d(0x199)]?_0x71fc2d(0x199):'project',_0x470c23=_0x2a9ae1['env']?_0x71fc2d(0x198)+_0x2a9ae1[_0x71fc2d(0x179)]+'.':'';return{'ok':!![],'message':_0x71fc2d(0x17a)+_0x14646e+'\x20scope.'+_0x470c23+'\x20Verify:\x20'+CLI_BIN_NAME+_0x71fc2d(0x1a2)};}},{'service':a9_0x86fcab(0x162),'command':a9_0x86fcab(0x1a3),'description':a9_0x86fcab(0x19e),'risk':a9_0x86fcab(0x17e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x86fcab(0x199),'type':'boolean','description':a9_0x86fcab(0x17f),'default':!![]},{'name':a9_0x86fcab(0x19f),'type':'boolean','description':a9_0x86fcab(0x153),'default':![]}],async 'execute'(_0x57fe5b){const _0x56f003=a9_0x86fcab,_0x8e1b64=resolveAuthScopeFlags(_0x57fe5b),_0x2761c5=readScopedConfig(_0x8e1b64),_0x18e614=!!_0x2761c5['accessKey'];delete _0x2761c5[_0x56f003(0x192)],writeScopedConfig(_0x2761c5,_0x8e1b64);const _0x174875=_0x8e1b64[_0x56f003(0x199)]?_0x56f003(0x199):_0x56f003(0x19f);if(_0x18e614)return{'ok':!![],'message':_0x56f003(0x196)+_0x174875+_0x56f003(0x16a)};return{'ok':!![],'message':_0x56f003(0x180)+_0x174875+'\x20config.\x20Nothing\x20to\x20clear.'};}},{'service':a9_0x86fcab(0x162),'command':a9_0x86fcab(0x166),'description':'Show\x20current\x20authentication\x20status','risk':a9_0x86fcab(0x177),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x86fcab(0x199),'type':a9_0x86fcab(0x15b),'description':a9_0x86fcab(0x178),'default':!![]},{'name':a9_0x86fcab(0x19f),'type':a9_0x86fcab(0x15b),'description':'Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x1c5896){const _0x1c23d8=a9_0x86fcab,_0x891a36=resolveAuthScopeFlags(_0x1c5896),_0x31497d=readScopedConfig(_0x891a36),_0x34d9cf=productEnvName(_0x1c23d8(0x15e)),_0x44d31f=productEnv('ACCESS_KEY')||undefined,_0x2ce83=_0x31497d['accessKey']||undefined,_0x5d5cba=_0x44d31f||_0x2ce83,_0x2c3f22=_0x44d31f?_0x34d9cf+'\x20env\x20var':_0x2ce83?(_0x891a36['global']?_0x1c23d8(0x199):_0x1c23d8(0x19f))+_0x1c23d8(0x156):null,_0x239502=[_0x1c23d8(0x18f)+AUTH_MODE['ClientAk']];if(_0x5d5cba){const _0x49cbbf=_0x5d5cba[_0x1c23d8(0x182)]>0x8?''+_0x5d5cba[_0x1c23d8(0x173)](0x0,0x8)+'*'[_0x1c23d8(0x18a)](_0x5d5cba[_0x1c23d8(0x182)]-0x8):_0x5d5cba;_0x239502[_0x1c23d8(0x163)]('AccessKey:\x20'+_0x49cbbf+(_0x2c3f22?_0x1c23d8(0x193)+_0x2c3f22+')':''));}return!_0x5d5cba&&(_0x239502[_0x1c23d8(0x163)](''),_0x239502[_0x1c23d8(0x163)](_0x1c23d8(0x17c)),_0x239502[_0x1c23d8(0x163)](''),_0x239502['push'](_0x1c23d8(0x155)+CLI_BIN_NAME+_0x1c23d8(0x190)),_0x239502['push'](''),_0x239502['push'](_0x1c23d8(0x16b)+PRODUCT_CONFIG[_0x1c23d8(0x17b)]+')'),_0x239502[_0x1c23d8(0x163)](_0x1c23d8(0x152)),_0x239502[_0x1c23d8(0x163)](''),_0x239502['push'](_0x1c23d8(0x150)),_0x239502['push']('\x20\x20export\x20'+_0x34d9cf+'=ak_xxx'),_0x239502['push'](''),_0x239502[_0x1c23d8(0x163)]('Then\x20verify\x20with:\x20'+CLI_BIN_NAME+'\x20auth\x20status'),_0x239502[_0x1c23d8(0x163)]('If\x20command\x20execution\x20still\x20fails,\x20run:\x20'+CLI_BIN_NAME+_0x1c23d8(0x169))),{'ok':!![],'message':_0x239502[_0x1c23d8(0x19b)]('\x0a')};}},{'service':'auth','command':a9_0x86fcab(0x151),'description':a9_0x86fcab(0x18d),'risk':a9_0x86fcab(0x177),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x5dfe98){const _0x689ad2=a9_0x86fcab,_0x40a361=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x40a361,'meta':{'env':_0x5dfe98[_0x689ad2(0x16e)]??_0x689ad2(0x157)}}};}}];function a9_0x2046(){const _0x20d3ee=['17244zecKVS','5141587FqwzFN','Clear\x20accessKey\x20from\x20config','project','validation','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','\x20auth\x20status','logout','Option\x20C:\x20environment\x20variable','info','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','Tip:\x20you\x20can\x20also\x20run:','Option\x20A:\x20','\x20config','production','stdin','string','global-default','boolean','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','9AewUUO','ACCESS_KEY','355087EfuTqU','Write\x20to\x20global\x20config\x20(default)','userCenterDisplayName','auth','push','\x20auth\x20login\x20--access-key\x20<ak_xxx>','Shorthand\x20for\x20--access-key','status','AccessKey\x20(ak_xxx...)','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','\x20doctor','\x20config.','Option\x20B:\x20apps\x20config\x20(','7312ByGDht','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','envName','29463dxhKTs','`auth\x20login`\x20does\x20not\x20support\x20--yes.','yes','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','slice','nonInteractive','Invalid\x20accessKey\x20format:\x20\x22','35RqCUlI','read','Read\x20from\x20global\x20config\x20(default)','env','Auth\x20config\x20reinitialized\x20in\x20','newConfigFileName','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','bool','write','Clear\x20from\x20global\x20config\x20(default)','No\x20AccessKey\x20found\x20in\x20','cancelled','length','1211xbFnSE','str','Use\x20`','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','4434192NVvreH','access-key','repeat','20PumVbS','trim','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','Auth\x20mode:\x20','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','accessKey','\x20(via\x20','isTTY','291608LfIQGa','AccessKey\x20cleared\x20from\x20','test','\x20Current\x20env:\x20','global','init','join'];a9_0x2046=function(){return _0x20d3ee;};return a9_0x2046();}
@@ -1 +1 @@
1
- (function(_0x84cabb,_0xabcfad){const _0x3d775b=a10_0x7361,_0x265677=_0x84cabb();while(!![]){try{const _0x32b947=-parseInt(_0x3d775b(0x92))/0x1*(-parseInt(_0x3d775b(0x95))/0x2)+parseInt(_0x3d775b(0x90))/0x3+parseInt(_0x3d775b(0x9a))/0x4*(parseInt(_0x3d775b(0xa0))/0x5)+parseInt(_0x3d775b(0x8e))/0x6+-parseInt(_0x3d775b(0x99))/0x7+-parseInt(_0x3d775b(0x9d))/0x8+-parseInt(_0x3d775b(0x8f))/0x9;if(_0x32b947===_0xabcfad)break;else _0x265677['push'](_0x265677['shift']());}catch(_0x224d7f){_0x265677['push'](_0x265677['shift']());}}}(a10_0x2d9d,0x73859));import{createInterface}from'node:readline';function a10_0x2d9d(){const _0x4ba79c=['182cEbVay','question','name','3514VAzSzI','once','removeListener','AbortPrompt','5199943zJgJBn','67632dHUlQG','):\x20','User\x20aborted\x20prompt','3557648VFVzTM','SIGINT','stdin','110BdPtcc','trim','race','AccessKey\x20(paste\x20ak_...):\x20','AccessKey\x20(','stdout','4622658GGJCTI','1524780tLTIaE','1103877jOnSCG','close'];a10_0x2d9d=function(){return _0x4ba79c;};return a10_0x2d9d();}class AbortPrompt extends Error{constructor(){const _0x672190=a10_0x7361;super(_0x672190(0x9c)),this[_0x672190(0x94)]=_0x672190(0x98);}}function createSafeRl(){const _0x1bdbe8=a10_0x7361,_0x21272d=createInterface({'input':process[_0x1bdbe8(0x9f)],'output':process[_0x1bdbe8(0x8d)]});let _0x3e379d;const _0x36650f=new Promise((_0x5458c7,_0x366742)=>{const _0x57fdf8=_0x1bdbe8;_0x3e379d=()=>{const _0x2ef6cc=a10_0x7361;_0x3e379d&&(_0x21272d[_0x2ef6cc(0x97)](_0x2ef6cc(0x9e),_0x3e379d),_0x3e379d=undefined);try{_0x21272d[_0x2ef6cc(0x91)]();}catch{}_0x366742(new AbortPrompt());},_0x21272d[_0x57fdf8(0x96)]('SIGINT',_0x3e379d);}),_0x2ed1aa=()=>{const _0x30c456=_0x1bdbe8;_0x3e379d&&(_0x21272d[_0x30c456(0x97)](_0x30c456(0x9e),_0x3e379d),_0x3e379d=undefined);try{_0x21272d['close']();}catch{}};return{'rl':_0x21272d,'abortPromise':_0x36650f,'disposeSuccess':_0x2ed1aa};}function a10_0x7361(_0x126974,_0x1b8c80){_0x126974=_0x126974-0x8d;const _0x2d9d9b=a10_0x2d9d();let _0x7361d9=_0x2d9d9b[_0x126974];return _0x7361d9;}export async function promptAccessKey(_0x59f4ee=''){const _0x38642d=a10_0x7361,{rl:_0x2404bf,abortPromise:_0x58d63f,disposeSuccess:_0x36e77b}=createSafeRl(),_0x31baf4=new Promise(_0x1cbad1=>{const _0x1094a2=a10_0x7361,_0x16ad87=_0x59f4ee?_0x1094a2(0xa4)+_0x59f4ee+_0x1094a2(0x9b):_0x1094a2(0xa3);_0x2404bf[_0x1094a2(0x93)](_0x16ad87,_0x339d64=>{const _0x305bf6=_0x1094a2;_0x36e77b(),_0x1cbad1(_0x339d64[_0x305bf6(0xa1)]()||_0x59f4ee);});});return Promise[_0x38642d(0xa2)]([_0x31baf4,_0x58d63f]);}export function isAbortPrompt(_0x26f07d){const _0x3dcd30=a10_0x7361;return _0x26f07d instanceof Error&&_0x26f07d[_0x3dcd30(0x94)]===_0x3dcd30(0x98);}
1
+ function a10_0x5d48(_0x31c904,_0x1d6dee){_0x31c904=_0x31c904-0x106;const _0x183f9d=a10_0x183f();let _0x5d48a1=_0x183f9d[_0x31c904];return _0x5d48a1;}function a10_0x183f(){const _0x10d840=['AccessKey\x20(','12781JkRidN','name','94roczwj','race','AbortPrompt','2908UovRUd','196170VLzAzV','6832JQuejq','once','stdin','question','468biwqfG','SIGINT','AccessKey\x20(paste\x20ak_...):\x20','21JHTfjr','):\x20','1623815rGySKH','10GmKBQP','3KnfiuG','close','User\x20aborted\x20prompt','18AekhfC','removeListener','8161439KHKXtB','289692ftYPmn','trim'];a10_0x183f=function(){return _0x10d840;};return a10_0x183f();}(function(_0x22025d,_0x429aa7){const _0x216e63=a10_0x5d48,_0x43bebf=_0x22025d();while(!![]){try{const _0x508fff=-parseInt(_0x216e63(0x118))/0x1*(parseInt(_0x216e63(0x11a))/0x2)+-parseInt(_0x216e63(0x10f))/0x3*(-parseInt(_0x216e63(0x11d))/0x4)+-parseInt(_0x216e63(0x10d))/0x5*(-parseInt(_0x216e63(0x112))/0x6)+parseInt(_0x216e63(0x10b))/0x7*(-parseInt(_0x216e63(0x11f))/0x8)+parseInt(_0x216e63(0x115))/0x9*(parseInt(_0x216e63(0x10e))/0xa)+parseInt(_0x216e63(0x114))/0xb+parseInt(_0x216e63(0x108))/0xc*(-parseInt(_0x216e63(0x11e))/0xd);if(_0x508fff===_0x429aa7)break;else _0x43bebf['push'](_0x43bebf['shift']());}catch(_0x3903be){_0x43bebf['push'](_0x43bebf['shift']());}}}(a10_0x183f,0x8813e));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x556251=a10_0x5d48;super(_0x556251(0x111)),this[_0x556251(0x119)]=_0x556251(0x11c);}}function createSafeRl(){const _0x336c5a=a10_0x5d48,_0x1c53a0=createInterface({'input':process[_0x336c5a(0x106)],'output':process['stdout']});let _0x22431e;const _0x2e4b71=new Promise((_0x25b95f,_0x25e1d2)=>{const _0x3776d3=_0x336c5a;_0x22431e=()=>{const _0x3e2276=a10_0x5d48;_0x22431e&&(_0x1c53a0['removeListener'](_0x3e2276(0x109),_0x22431e),_0x22431e=undefined);try{_0x1c53a0[_0x3e2276(0x110)]();}catch{}_0x25e1d2(new AbortPrompt());},_0x1c53a0[_0x3776d3(0x120)](_0x3776d3(0x109),_0x22431e);}),_0x57aebe=()=>{const _0x2bf19c=_0x336c5a;_0x22431e&&(_0x1c53a0[_0x2bf19c(0x113)](_0x2bf19c(0x109),_0x22431e),_0x22431e=undefined);try{_0x1c53a0[_0x2bf19c(0x110)]();}catch{}};return{'rl':_0x1c53a0,'abortPromise':_0x2e4b71,'disposeSuccess':_0x57aebe};}export async function promptAccessKey(_0x51b707=''){const _0x2c7ae3=a10_0x5d48,{rl:_0x5aa0bb,abortPromise:_0x50b7d8,disposeSuccess:_0x5e9c05}=createSafeRl(),_0x5254da=new Promise(_0x175dae=>{const _0x27086f=a10_0x5d48,_0x134dd1=_0x51b707?_0x27086f(0x117)+_0x51b707+_0x27086f(0x10c):_0x27086f(0x10a);_0x5aa0bb[_0x27086f(0x107)](_0x134dd1,_0x2fa4e3=>{const _0x113629=_0x27086f;_0x5e9c05(),_0x175dae(_0x2fa4e3[_0x113629(0x116)]()||_0x51b707);});});return Promise[_0x2c7ae3(0x11b)]([_0x5254da,_0x50b7d8]);}export function isAbortPrompt(_0x3aab65){const _0x468732=a10_0x5d48;return _0x3aab65 instanceof Error&&_0x3aab65[_0x468732(0x119)]==='AbortPrompt';}
@@ -1 +1 @@
1
- function a11_0x3162(_0x527458,_0x5b079f){_0x527458=_0x527458-0xc5;const _0x189a57=a11_0x189a();let _0x316202=_0x189a57[_0x527458];return _0x316202;}function a11_0x189a(){const _0x4b8802=['13zbbeQn','20JArUTj','updatedTime','3821512uLLpmI','scriptType','14YTrdZR','89303zVWqGm','252093HTAcRT','read','description','detail','num','4unOVWF','12IEszoF','bool','3082545gpWFJb','1309gJIhJQ','18730MrEleU','verbose','1029444HvbZrP','functionName','25482312MPYFko','(none)'];a11_0x189a=function(){return _0x4b8802;};return a11_0x189a();}const a11_0x2d553a=a11_0x3162;(function(_0x4203ac,_0x3fc972){const _0x9b6b6b=a11_0x3162,_0x225ffe=_0x4203ac();while(!![]){try{const _0x417b69=-parseInt(_0x9b6b6b(0xd3))/0x1*(-parseInt(_0x9b6b6b(0xd9))/0x2)+parseInt(_0x9b6b6b(0xd4))/0x3*(-parseInt(_0x9b6b6b(0xda))/0x4)+-parseInt(_0x9b6b6b(0xce))/0x5*(parseInt(_0x9b6b6b(0xc9))/0x6)+-parseInt(_0x9b6b6b(0xd2))/0x7*(parseInt(_0x9b6b6b(0xd0))/0x8)+parseInt(_0x9b6b6b(0xc5))/0x9+-parseInt(_0x9b6b6b(0xc7))/0xa*(parseInt(_0x9b6b6b(0xc6))/0xb)+parseInt(_0x9b6b6b(0xcb))/0xc*(parseInt(_0x9b6b6b(0xcd))/0xd);if(_0x417b69===_0x3fc972)break;else _0x225ffe['push'](_0x225ffe['shift']());}catch(_0x58fe6f){_0x225ffe['push'](_0x225ffe['shift']());}}}(a11_0x189a,0x80e6f));import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':'bff','command':a11_0x2d553a(0xd7),'description':'Get\x20BFF\x20script\x20details\x20by\x20ID','risk':a11_0x2d553a(0xd5),'flags':[{...ID_FLAG,'description':'Script\x20ID'},VERBOSE_FLAG],async 'execute'(_0x20927e){const _0x200181=a11_0x2d553a,_0x4c7375=await getBffScriptInfo(_0x20927e[_0x200181(0xd8)]('id')),_0x2852c9=_0x20927e[_0x200181(0xdb)](_0x200181(0xc8));if(_0x2852c9)return{'ok':!![],'data':_0x4c7375};return{'ok':!![],'data':{'id':_0x4c7375['id'],'appCode':_0x4c7375['appCode'],'functionName':_0x4c7375[_0x200181(0xca)]??'','scriptType':_0x4c7375[_0x200181(0xd1)],'description':_0x4c7375[_0x200181(0xd6)]||_0x200181(0xcc),'createdTime':_0x4c7375['createdTime']??'','updatedTime':_0x4c7375[_0x200181(0xcf)]??''}};}};
1
+ const a11_0x18eb86=a11_0x51fc;function a11_0x47e4(){const _0x5ee5da=['3926kIiLge','(none)','functionName','num','5336736uOMvpK','142212EpFuGy','Script\x20ID','423ghZPNG','createdTime','verbose','303tGywCG','1300TDQdDX','2784WRvbPW','Get\x20BFF\x20script\x20details\x20by\x20ID','updatedTime','description','1943984dPZQGS','bool','read','1022709asPEWY','324170SfZcRn','detail','bff'];a11_0x47e4=function(){return _0x5ee5da;};return a11_0x47e4();}function a11_0x51fc(_0xd539c9,_0x1b368a){_0xd539c9=_0xd539c9-0x1df;const _0x47e477=a11_0x47e4();let _0x51fce4=_0x47e477[_0xd539c9];return _0x51fce4;}(function(_0x3b1081,_0x2ab952){const _0x47e041=a11_0x51fc,_0x58d7c5=_0x3b1081();while(!![]){try{const _0x3fa447=parseInt(_0x47e041(0x1f4))/0x1+-parseInt(_0x47e041(0x1e1))/0x2*(-parseInt(_0x47e041(0x1eb))/0x3)+parseInt(_0x47e041(0x1ed))/0x4*(parseInt(_0x47e041(0x1ec))/0x5)+parseInt(_0x47e041(0x1e5))/0x6+parseInt(_0x47e041(0x1e6))/0x7+-parseInt(_0x47e041(0x1f1))/0x8+-parseInt(_0x47e041(0x1e8))/0x9*(parseInt(_0x47e041(0x1f5))/0xa);if(_0x3fa447===_0x2ab952)break;else _0x58d7c5['push'](_0x58d7c5['shift']());}catch(_0x52b5f6){_0x58d7c5['push'](_0x58d7c5['shift']());}}}(a11_0x47e4,0x85153));import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a11_0x18eb86(0x1e0),'command':a11_0x18eb86(0x1df),'description':a11_0x18eb86(0x1ee),'risk':a11_0x18eb86(0x1f3),'flags':[{...ID_FLAG,'description':a11_0x18eb86(0x1e7)},VERBOSE_FLAG],async 'execute'(_0x264607){const _0x166721=a11_0x18eb86,_0x2ce750=await getBffScriptInfo(_0x264607[_0x166721(0x1e4)]('id')),_0x4a3048=_0x264607[_0x166721(0x1f2)](_0x166721(0x1ea));if(_0x4a3048)return{'ok':!![],'data':_0x2ce750};return{'ok':!![],'data':{'id':_0x2ce750['id'],'appCode':_0x2ce750['appCode'],'functionName':_0x2ce750[_0x166721(0x1e3)]??'','scriptType':_0x2ce750['scriptType'],'description':_0x2ce750[_0x166721(0x1f0)]||_0x166721(0x1e2),'createdTime':_0x2ce750[_0x166721(0x1e9)]??'','updatedTime':_0x2ce750[_0x166721(0x1ef)]??''}};}};
@@ -1 +1 @@
1
- const a12_0x28b859=a12_0xb813;(function(_0x3f3043,_0x3ad822){const _0x779716=a12_0xb813,_0x5de56a=_0x3f3043();while(!![]){try{const _0x5301e8=-parseInt(_0x779716(0x13b))/0x1+parseInt(_0x779716(0x138))/0x2*(-parseInt(_0x779716(0x12e))/0x3)+parseInt(_0x779716(0x134))/0x4*(parseInt(_0x779716(0x139))/0x5)+parseInt(_0x779716(0x136))/0x6*(-parseInt(_0x779716(0x130))/0x7)+-parseInt(_0x779716(0x12a))/0x8+parseInt(_0x779716(0x137))/0x9*(parseInt(_0x779716(0x12f))/0xa)+parseInt(_0x779716(0x12d))/0xb;if(_0x5301e8===_0x3ad822)break;else _0x5de56a['push'](_0x5de56a['shift']());}catch(_0x2a033e){_0x5de56a['push'](_0x5de56a['shift']());}}}(a12_0x2f83,0x2b6e7));function a12_0x2f83(){const _0x1644ad=['read','133554SPXZHW','2540200eqwtMe','bff','exec','7499624LXBYUT','9jOjyRs','10hLGzXJ','251685Gtlint','str','BFF\x20executed\x20in\x20','now','7732wKjQfH','BFF\x20function\x20name\x20to\x20execute','48BzLnju','2013363skJtto','111142BhlIjR','460UCsXnp'];a12_0x2f83=function(){return _0x1644ad;};return a12_0x2f83();}import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a12_0xb813(_0x2c7af5,_0x238cce){_0x2c7af5=_0x2c7af5-0x12a;const _0x2f8381=a12_0x2f83();let _0xb81335=_0x2f8381[_0x2c7af5];return _0xb81335;}export const bffExec={'service':a12_0x28b859(0x12b),'command':a12_0x28b859(0x12c),'description':'Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','risk':a12_0x28b859(0x13a),'flags':[{...NAME_FLAG,'required':!![],'description':a12_0x28b859(0x135)},PARAMS_FLAG],async 'execute'(_0x454f83){const _0x5e5da2=a12_0x28b859,_0x24f856=parseJsonParams(_0x454f83[_0x5e5da2(0x131)]('params')),_0x46c812=Date[_0x5e5da2(0x133)](),_0x3cb910=await executeSdkBff(_0x454f83[_0x5e5da2(0x131)]('name'),_0x24f856),_0x2eb219=Date[_0x5e5da2(0x133)]()-_0x46c812;return{'ok':!![],'data':{'result':_0x3cb910,'elapsed':_0x2eb219},'message':_0x5e5da2(0x132)+_0x2eb219+'ms'};}};
1
+ const a12_0x35385a=a12_0x592e;(function(_0x472e3a,_0x9a4ef0){const _0x185958=a12_0x592e,_0x40f680=_0x472e3a();while(!![]){try{const _0x98e915=-parseInt(_0x185958(0x15f))/0x1+-parseInt(_0x185958(0x15e))/0x2*(-parseInt(_0x185958(0x162))/0x3)+-parseInt(_0x185958(0x156))/0x4+-parseInt(_0x185958(0x161))/0x5+-parseInt(_0x185958(0x15d))/0x6*(-parseInt(_0x185958(0x155))/0x7)+parseInt(_0x185958(0x157))/0x8+parseInt(_0x185958(0x158))/0x9;if(_0x98e915===_0x9a4ef0)break;else _0x40f680['push'](_0x40f680['shift']());}catch(_0x5f5a20){_0x40f680['push'](_0x40f680['shift']());}}}(a12_0x23e1,0x1eda1));function a12_0x23e1(){const _0x53110b=['1127664JCdSRl','622368mVkvSl','now','params','name','bff','6kbpKdg','6152nRVIBi','118183VbVlpm','str','532525zWArbf','207hEgSeN','BFF\x20function\x20name\x20to\x20execute','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','exec','BFF\x20executed\x20in\x20','679266QURXvm','673340SBEZfG'];a12_0x23e1=function(){return _0x53110b;};return a12_0x23e1();}import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a12_0x592e(_0x23c46d,_0x4eac8b){_0x23c46d=_0x23c46d-0x151;const _0x23e119=a12_0x23e1();let _0x592e1b=_0x23e119[_0x23c46d];return _0x592e1b;}export const bffExec={'service':a12_0x35385a(0x15c),'command':a12_0x35385a(0x153),'description':a12_0x35385a(0x152),'risk':'read','flags':[{...NAME_FLAG,'required':!![],'description':a12_0x35385a(0x151)},PARAMS_FLAG],async 'execute'(_0x4e5841){const _0x540e98=a12_0x35385a,_0x325e7d=parseJsonParams(_0x4e5841[_0x540e98(0x160)](_0x540e98(0x15a))),_0x3b1f6a=Date[_0x540e98(0x159)](),_0x32330d=await executeSdkBff(_0x4e5841[_0x540e98(0x160)](_0x540e98(0x15b)),_0x325e7d),_0x505491=Date[_0x540e98(0x159)]()-_0x3b1f6a;return{'ok':!![],'data':{'result':_0x32330d,'elapsed':_0x505491},'message':_0x540e98(0x154)+_0x505491+'ms'};}};
@@ -1 +1 @@
1
- (function(_0x4b5507,_0x2b07db){const _0xa48792=a13_0x1a3e,_0x4551be=_0x4b5507();while(!![]){try{const _0x278a57=parseInt(_0xa48792(0x1d9))/0x1*(-parseInt(_0xa48792(0x1dc))/0x2)+parseInt(_0xa48792(0x1da))/0x3+parseInt(_0xa48792(0x1e0))/0x4*(parseInt(_0xa48792(0x1de))/0x5)+parseInt(_0xa48792(0x1dd))/0x6+-parseInt(_0xa48792(0x1df))/0x7+-parseInt(_0xa48792(0x1d8))/0x8+-parseInt(_0xa48792(0x1db))/0x9;if(_0x278a57===_0x2b07db)break;else _0x4551be['push'](_0x4551be['shift']());}catch(_0x417b27){_0x4551be['push'](_0x4551be['shift']());}}}(a13_0x39c5,0xd48af));function a13_0x1a3e(_0x31e6ec,_0x1634b1){_0x31e6ec=_0x31e6ec-0x1d8;const _0x39c56f=a13_0x39c5();let _0x1a3eac=_0x39c56f[_0x31e6ec];return _0x1a3eac;}import{bffDetail}from'../../commands/bff/detail.js';function a13_0x39c5(){const _0x4914ac=['1326546Hutcss','3164605WZwvlN','4684589oQeVZr','8MKpjEH','9420432aeBpII','108AfJYmU','3976653ERlCrJ','333216pjFFOn','1076CcuyEv'];a13_0x39c5=function(){return _0x4914ac;};return a13_0x39c5();}import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
1
+ (function(_0x4038b5,_0x2c1137){const _0x1e2eb6=a13_0x20cc,_0x1f618f=_0x4038b5();while(!![]){try{const _0x377b5e=parseInt(_0x1e2eb6(0x1c3))/0x1*(parseInt(_0x1e2eb6(0x1c1))/0x2)+-parseInt(_0x1e2eb6(0x1c4))/0x3+parseInt(_0x1e2eb6(0x1bf))/0x4+parseInt(_0x1e2eb6(0x1c7))/0x5+-parseInt(_0x1e2eb6(0x1c2))/0x6+-parseInt(_0x1e2eb6(0x1c0))/0x7*(-parseInt(_0x1e2eb6(0x1c5))/0x8)+parseInt(_0x1e2eb6(0x1c6))/0x9;if(_0x377b5e===_0x2c1137)break;else _0x1f618f['push'](_0x1f618f['shift']());}catch(_0x3912d8){_0x1f618f['push'](_0x1f618f['shift']());}}}(a13_0x11d4,0x9a9ae));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';function a13_0x11d4(){const _0x2efb11=['31544OYvxuw','1102239gYrryC','742610dchCDT','2529176DDktSa','1603zHzIMt','14066fONjmD','4252284spqjTH','7WqgizM','1540467evAOgy'];a13_0x11d4=function(){return _0x2efb11;};return a13_0x11d4();}function a13_0x20cc(_0x149db3,_0x1ef825){_0x149db3=_0x149db3-0x1bf;const _0x11d402=a13_0x11d4();let _0x20cc34=_0x11d402[_0x149db3];return _0x20cc34;}export const bffDefinitions=[bffDetail,bffExec];
@@ -1 +1 @@
1
- const a14_0x14af91=a14_0x12bd;function a14_0x12bd(_0x53e7de,_0x5c9a89){_0x53e7de=_0x53e7de-0x1b1;const _0x2fbd79=a14_0x2fbd();let _0x12bdfb=_0x2fbd79[_0x53e7de];return _0x12bdfb;}function a14_0x2fbd(){const _0x29c619=['cli-skill-install','306206KjEAXj','Skipped\x20npx\x20(','error','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','info','\x20-g\x20-y','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','cwd','write','skipped','641905LzCjzC','unknown','950520UxogIY','62616FBckiL','7zsKumD','51436NrjpfG','npx\x20skills\x20add\x20failed:\x20','setLogPath','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','CLI\x20Built-in\x20Skill\x20installed','1087512KVksOY','12kouVrl','install','\x20-g\x20-y)...','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','741618RiwGBc','../../skills/npx-skills-add.js','135rATXWN','inherit','log','2xhZssF','cli-skill','369bHUehh'];a14_0x2fbd=function(){return _0x29c619;};return a14_0x2fbd();}(function(_0xf8334,_0x806847){const _0x20d7ff=a14_0x12bd,_0x142c50=_0xf8334();while(!![]){try{const _0x1d0639=parseInt(_0x20d7ff(0x1c2))/0x1*(parseInt(_0x20d7ff(0x1be))/0x2)+-parseInt(_0x20d7ff(0x1b4))/0x3+parseInt(_0x20d7ff(0x1d1))/0x4*(-parseInt(_0x20d7ff(0x1bb))/0x5)+-parseInt(_0x20d7ff(0x1b9))/0x6*(-parseInt(_0x20d7ff(0x1d0))/0x7)+-parseInt(_0x20d7ff(0x1cf))/0x8*(-parseInt(_0x20d7ff(0x1c0))/0x9)+parseInt(_0x20d7ff(0x1ce))/0xa+-parseInt(_0x20d7ff(0x1cc))/0xb*(-parseInt(_0x20d7ff(0x1b5))/0xc);if(_0x1d0639===_0x806847)break;else _0x142c50['push'](_0x142c50['shift']());}catch(_0x245f9e){_0x142c50['push'](_0x142c50['shift']());}}}(a14_0x2fbd,0x2f77a));import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a14_0x14af91(0x1bf),'command':a14_0x14af91(0x1b6),'description':'Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','risk':a14_0x14af91(0x1ca),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x181f5b){const _0x3a8757=a14_0x14af91;logger[_0x3a8757(0x1b1)](process[_0x3a8757(0x1c9)]()),logger[_0x3a8757(0x1c6)](_0x3a8757(0x1c1),_0x3a8757(0x1c8));const {LOVRABET_SKILL_SOURCE:_0x2a419e,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x12071a,runNpxSkillsAddGlobal:_0x23b1cb}=await import(_0x3a8757(0x1ba)),_0x4fa481=_0x181f5b['nonInteractive']?'pipe':_0x3a8757(0x1bc);console[_0x3a8757(0x1bd)](_0x3a8757(0x1c5)+_0x2a419e+_0x3a8757(0x1b7));const _0x8e95a2=_0x23b1cb(process['cwd'](),_0x2a419e,{'stdio':_0x4fa481});if(_0x8e95a2[_0x3a8757(0x1cb)])console[_0x3a8757(0x1bd)](_0x3a8757(0x1c3)+_0x12071a+_0x3a8757(0x1b8));else{if(_0x8e95a2['ok'])console['log'](_0x3a8757(0x1b3));else throw CliErrors['apiError'](_0x3a8757(0x1d2)+(_0x8e95a2[_0x3a8757(0x1c4)]||_0x3a8757(0x1cd)),_0x3a8757(0x1b2)+_0x2a419e+_0x3a8757(0x1c7));}return{'ok':!![]};}}];
1
+ const a14_0x30d361=a14_0x4df6;function a14_0x4df6(_0x32c299,_0x136911){_0x32c299=_0x32c299-0x197;const _0x3c339a=a14_0x3c33();let _0x4df6b3=_0x3c339a[_0x32c299];return _0x4df6b3;}(function(_0x206882,_0x192c49){const _0x46ac45=a14_0x4df6,_0x3c385f=_0x206882();while(!![]){try{const _0x35f1ab=parseInt(_0x46ac45(0x19c))/0x1+-parseInt(_0x46ac45(0x1a2))/0x2+parseInt(_0x46ac45(0x198))/0x3+parseInt(_0x46ac45(0x1ae))/0x4*(parseInt(_0x46ac45(0x1a9))/0x5)+parseInt(_0x46ac45(0x1aa))/0x6*(parseInt(_0x46ac45(0x19d))/0x7)+parseInt(_0x46ac45(0x19e))/0x8*(-parseInt(_0x46ac45(0x197))/0x9)+-parseInt(_0x46ac45(0x19f))/0xa;if(_0x35f1ab===_0x192c49)break;else _0x3c385f['push'](_0x3c385f['shift']());}catch(_0x40e828){_0x3c385f['push'](_0x3c385f['shift']());}}}(a14_0x3c33,0x281f7));import{CliErrors}from'../../errors.js';function a14_0x3c33(){const _0x36b5bf=['5873760lfAwqF','unknown','cli-skill-install','349396MdTtck','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','nonInteractive','cwd','inherit','CLI\x20Built-in\x20Skill\x20installed','npx\x20skills\x20add\x20failed:\x20','25pcLrap','1101306ObmqaJ','cli-skill','log','write','225068CVSWPV','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','skipped','Skipped\x20npx\x20(','\x20-g\x20-y','184644VPGqbr','796110uzySAU','install','\x20-g\x20-y)...','info','237193FIjYrC','7HXZujR','16jkPpAt'];a14_0x3c33=function(){return _0x36b5bf;};return a14_0x3c33();}import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a14_0x30d361(0x1ab),'command':a14_0x30d361(0x199),'description':'Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','risk':a14_0x30d361(0x1ad),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x296d10){const _0x21af1b=a14_0x30d361;logger['setLogPath'](process['cwd']()),logger[_0x21af1b(0x19b)](_0x21af1b(0x1a1),_0x21af1b(0x1af));const {LOVRABET_SKILL_SOURCE:_0x1eb46b,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x1eb3e3,runNpxSkillsAddGlobal:_0x41b1df}=await import('../../skills/npx-skills-add.js'),_0x284d6f=_0x296d10[_0x21af1b(0x1a4)]?'pipe':_0x21af1b(0x1a6);console[_0x21af1b(0x1ac)](_0x21af1b(0x1b0)+_0x1eb46b+_0x21af1b(0x19a));const _0x55f7fb=_0x41b1df(process[_0x21af1b(0x1a5)](),_0x1eb46b,{'stdio':_0x284d6f});if(_0x55f7fb[_0x21af1b(0x1b1)])console[_0x21af1b(0x1ac)](_0x21af1b(0x1b2)+_0x1eb3e3+_0x21af1b(0x1a3));else{if(_0x55f7fb['ok'])console[_0x21af1b(0x1ac)](_0x21af1b(0x1a7));else throw CliErrors['apiError'](_0x21af1b(0x1a8)+(_0x55f7fb['error']||_0x21af1b(0x1a0)),'Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20'+_0x1eb46b+_0x21af1b(0x1b3));}return{'ok':!![]};}}];