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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/artifact/index.js +1 -1
  10. package/lib/commands/auth/index.js +1 -1
  11. package/lib/commands/auth/prompt.js +1 -1
  12. package/lib/commands/bff/detail.js +1 -1
  13. package/lib/commands/bff/exec.js +1 -1
  14. package/lib/commands/bff/index.js +1 -1
  15. package/lib/commands/cli-skill/index.js +1 -1
  16. package/lib/commands/common/config-policy.js +1 -1
  17. package/lib/commands/common/constraints.js +1 -1
  18. package/lib/commands/common/flags.js +1 -1
  19. package/lib/commands/config/definitions.js +1 -1
  20. package/lib/commands/config/shared.js +1 -1
  21. package/lib/commands/data/index.js +1 -1
  22. package/lib/commands/dataset/detail.js +1 -1
  23. package/lib/commands/dataset/index.js +1 -1
  24. package/lib/commands/dataset/list.js +1 -1
  25. package/lib/commands/dataset/sdk-doc.js +1 -1
  26. package/lib/commands/doctor.js +1 -1
  27. package/lib/commands/init.js +1 -1
  28. package/lib/commands/kb/index.js +1 -1
  29. package/lib/commands/logs/index.js +1 -1
  30. package/lib/commands/personal-bff/index.js +1 -1
  31. package/lib/commands/registry.js +1 -1
  32. package/lib/commands/schema.js +1 -1
  33. package/lib/commands/service/dynamic.js +1 -1
  34. package/lib/commands/service/index.js +1 -1
  35. package/lib/commands/service/registry.js +1 -1
  36. package/lib/commands/skill/commands/create.js +1 -1
  37. package/lib/commands/skill/commands/install.js +1 -1
  38. package/lib/commands/skill/commands/list.js +1 -1
  39. package/lib/commands/skill/commands/push.js +1 -1
  40. package/lib/commands/skill/commands/validate.js +1 -1
  41. package/lib/commands/skill/flags.js +1 -1
  42. package/lib/commands/skill/index.js +1 -1
  43. package/lib/commands/skill/manifest-helpers.js +1 -1
  44. package/lib/commands/skill/scopes.js +1 -1
  45. package/lib/commands/skill/summary.js +1 -1
  46. package/lib/commands/skill/templates.js +1 -1
  47. package/lib/commands/skill/validate.js +1 -1
  48. package/lib/commands/sql/detail.js +1 -1
  49. package/lib/commands/sql/exec.js +1 -1
  50. package/lib/commands/sql/index.js +1 -1
  51. package/lib/commands/update.js +1 -1
  52. package/lib/commands/workspace/index.js +1 -1
  53. package/lib/config/schema.js +1 -1
  54. package/lib/constant/app.js +1 -1
  55. package/lib/constant/auth-mode.js +1 -1
  56. package/lib/constant/cli.js +1 -1
  57. package/lib/constant/defaults.js +1 -1
  58. package/lib/constant/distribution.js +1 -1
  59. package/lib/constant/domain.js +1 -1
  60. package/lib/constant/env.js +1 -1
  61. package/lib/constant/output.js +1 -1
  62. package/lib/constant/product.js +1 -1
  63. package/lib/constant/risk.js +1 -1
  64. package/lib/constant/url.js +1 -1
  65. package/lib/context.js +1 -1
  66. package/lib/core/api-client.js +1 -1
  67. package/lib/core/db-resolver.js +1 -1
  68. package/lib/core/sdk-client.js +1 -1
  69. package/lib/errors.js +1 -1
  70. package/lib/framework/build-all-flags.js +1 -1
  71. package/lib/framework/dryrun.js +1 -1
  72. package/lib/framework/flags.js +1 -1
  73. package/lib/framework/help.js +1 -1
  74. package/lib/framework/index.js +1 -1
  75. package/lib/framework/output.js +1 -1
  76. package/lib/framework/preparse.js +1 -1
  77. package/lib/framework/response.js +1 -1
  78. package/lib/framework/runner-confirmation.js +1 -1
  79. package/lib/framework/runner-error.js +1 -1
  80. package/lib/framework/runner.js +1 -1
  81. package/lib/framework/schema-export.js +1 -1
  82. package/lib/framework/types.js +1 -1
  83. package/lib/generated/build-info.js +1 -1
  84. package/lib/help.js +1 -1
  85. package/lib/skills/npx-skills-add.js +1 -1
  86. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  87. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  88. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  89. package/lib/skills/runtime-skill-sync/links.js +1 -1
  90. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  91. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  92. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  93. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  94. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  95. package/lib/skills/runtime-skill-sync/push.js +1 -1
  96. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  97. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  98. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  99. package/lib/skills/runtime-skill-sync.js +1 -1
  100. package/lib/utils/apply-jq-filter.js +1 -1
  101. package/lib/utils/logger.js +1 -1
  102. package/lib/utils/params.js +1 -1
  103. package/lib/utils/platform.js +1 -1
  104. package/lib/utils/update-notice.js +1 -1
  105. package/lib/utils/version.js +1 -1
  106. package/lib/utils/write-cli-side-channel.js +1 -1
  107. package/package.json +1 -1
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- (function(_0x3ffea7,_0x22e699){const _0x25c126=a0_0x1976,_0x34bbf1=_0x3ffea7();while(!![]){try{const _0x36c019=-parseInt(_0x25c126(0x96))/0x1*(parseInt(_0x25c126(0x84))/0x2)+parseInt(_0x25c126(0x99))/0x3+parseInt(_0x25c126(0x8b))/0x4*(parseInt(_0x25c126(0x95))/0x5)+parseInt(_0x25c126(0x85))/0x6*(parseInt(_0x25c126(0x8f))/0x7)+parseInt(_0x25c126(0xa2))/0x8+parseInt(_0x25c126(0x83))/0x9+-parseInt(_0x25c126(0x82))/0xa;if(_0x36c019===_0x22e699)break;else _0x34bbf1['push'](_0x34bbf1['shift']());}catch(_0x3e9f0a){_0x34bbf1['push'](_0x34bbf1['shift']());}}}(a0_0x4e52,0xb29b3));import{jsx as a0_0x15beca}from'react/jsx-runtime';import a0_0x20963d 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';function a0_0x4e52(){const _0x18a526=['1072ZdzTvk','ERR_STREAM_DESTROYED','assign','log','7dHJAXa','code','cancelled','original','[preparse]\x20','error','26395GTcgpW','337KaLxrw','Unexpected\x20error:','ExitPromptError','2223555lPkMJc','write','./framework/preparse.js','stderr','corrected','input','flags','defaultCommand','exit','11179536yTSuRF','Hint:\x20','hint','message','unknownCommand','Error:\x20','help','\x20->\x20--','42663460cnhfTo','10284327lxPTME','842SqWXvJ','2662152ltPlTh','exitCode','handler','ERR_USE_AFTER_CLOSE','flatMap','\x0aCancelled.\x0a'];a0_0x4e52=function(){return _0x18a526;};return a0_0x4e52();}import{getCliVersionDisplay}from'./utils/version.js';const helpText=generateFullHelp(),cli=a0_0x20963d(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'version':getCliVersionDisplay()});void main()['catch'](handleError);function a0_0x1976(_0xe7ecb3,_0x1160f4){_0xe7ecb3=_0xe7ecb3-0x7d;const _0x4e52b8=a0_0x4e52();let _0x1976f7=_0x4e52b8[_0xe7ecb3];return _0x1976f7;}async function main(){try{await run();}catch(_0x283036){handleError(_0x283036);}}async function run(){const _0x51c5d7=a0_0x1976;let _0x34bc40=cli['input'][0x0],_0x368395=cli[_0x51c5d7(0x9e)][0x1];const _0x133343=cli['flags'];try{const {correctFlags:_0xcf168f}=await import(_0x51c5d7(0x9b)),_0x968ee4=getAllDefinitions()[_0x51c5d7(0x89)](_0x4e15ca=>_0x4e15ca[_0x51c5d7(0x9f)]??[]),{flags:_0x4b185b,corrections:_0x5accb4}=_0xcf168f(_0x133343,_0x968ee4);if(_0x5accb4['length']>0x0){for(const _0x2023e5 of _0x5accb4){process[_0x51c5d7(0x9c)][_0x51c5d7(0x9a)](_0x51c5d7(0x93)+_0x2023e5[_0x51c5d7(0x87)]+':\x20--'+_0x2023e5[_0x51c5d7(0x92)]+_0x51c5d7(0x81)+_0x2023e5[_0x51c5d7(0x9d)]+'\x0a');}Object[_0x51c5d7(0x8d)](_0x133343,_0x4b185b);}}catch{}if(!_0x34bc40){const {waitUntilExit:_0x5c386f}=render(a0_0x15beca(Help,{}));await _0x5c386f();return;}if(!isKnownService(_0x34bc40)){const _0x2e9bcc=resolveDynamicServiceCommand(cli[_0x51c5d7(0x9e)],_0x133343);if(_0x2e9bcc){if(_0x133343[_0x51c5d7(0x80)]){console[_0x51c5d7(0x8e)](generateCommandHelp(_0x2e9bcc['definition']));return;}Object[_0x51c5d7(0x8d)](_0x133343,_0x2e9bcc['flags']);const _0x2f0ca4=buildConfigFromFlags(_0x133343);await initGlobalEnvironment(_0x2f0ca4);const _0x2424bd=createPipelineEnv(_0x2f0ca4,_0x133343);_0x2424bd['args']=_0x2e9bcc['args'],await runCommand(_0x2e9bcc['definition'],_0x2424bd);return;}if(_0x133343[_0x51c5d7(0x80)]){const _0x15d0f6=generateDynamicServiceHelp(_0x34bc40);if(_0x15d0f6){console[_0x51c5d7(0x8e)](_0x15d0f6);return;}}const {waitUntilExit:_0x35522d}=render(a0_0x15beca(Help,{}));await _0x35522d();return;}const _0x1bcbeb=getServiceEntry(_0x34bc40);if(!_0x368395){if(_0x133343[_0x51c5d7(0x80)]){console[_0x51c5d7(0x8e)](generateServiceHelp(_0x34bc40));return;}if(_0x1bcbeb[_0x51c5d7(0xa0)])_0x368395=_0x1bcbeb[_0x51c5d7(0xa0)];else{console[_0x51c5d7(0x8e)](generateServiceHelp(_0x34bc40));return;}}const _0x53c56c=findDefinition(_0x34bc40,_0x368395);!_0x53c56c&&(console[_0x51c5d7(0x8e)](generateServiceHelp(_0x34bc40)),handleError(CliErrors[_0x51c5d7(0x7e)](_0x34bc40+'\x20'+_0x368395)));if(_0x133343[_0x51c5d7(0x80)]){console[_0x51c5d7(0x8e)](generateCommandHelp(_0x53c56c));return;}const _0x212aac=buildConfigFromFlags(_0x133343);await initGlobalEnvironment(_0x212aac);const _0x23fd8e=createPipelineEnv(_0x212aac,_0x133343);_0x23fd8e['args']=cli[_0x51c5d7(0x9e)]['slice'](0x2),await runCommand(_0x53c56c,_0x23fd8e);}function handleError(_0x3aa4ac){const _0x4a5c55=a0_0x1976;if(_0x3aa4ac instanceof CliError){_0x3aa4ac[_0x4a5c55(0x90)]===_0x4a5c55(0x91)&&(process['stderr'][_0x4a5c55(0x9a)](_0x4a5c55(0x8a)),process[_0x4a5c55(0xa1)](0x0));console[_0x4a5c55(0x94)](_0x4a5c55(0x7f)+_0x3aa4ac[_0x4a5c55(0x7d)]);if(_0x3aa4ac[_0x4a5c55(0xa4)])console[_0x4a5c55(0x94)](_0x4a5c55(0xa3)+_0x3aa4ac['hint']);process['exit'](_0x3aa4ac[_0x4a5c55(0x86)]);}isUserCancellation(_0x3aa4ac)&&(process[_0x4a5c55(0x9c)][_0x4a5c55(0x9a)](_0x4a5c55(0x8a)),process[_0x4a5c55(0xa1)](0x0)),console['error'](_0x4a5c55(0x97),_0x3aa4ac),process['exit'](0x1);}function isUserCancellation(_0x4d68d8){const _0x5438ab=a0_0x1976;if(!(_0x4d68d8 instanceof Error))return![];if(_0x4d68d8['name']===_0x5438ab(0x98))return!![];if(_0x4d68d8[_0x5438ab(0x90)]===_0x5438ab(0x88))return!![];if(_0x4d68d8[_0x5438ab(0x90)]===_0x5438ab(0x8c))return!![];return![];}
2
+ function a0_0x1593(){const _0x1a26f8=['flags','code','ERR_STREAM_DESTROYED','\x0aCancelled.\x0a','input','107927CSfOyB','log','stderr','2RvLbPd','error','Unexpected\x20error:','assign','name',':\x20--','flatMap','args','8cXDOwN','4095849mQFPyq','3565884wQjKan','\x20->\x20--','10522631VmQkHG','11966650pExmod','unknownCommand','handler','help','write','Error:\x20','[preparse]\x20','cancelled','ExitPromptError','catch','./framework/preparse.js','30EctFpa','corrected','683352hbTORi','definition','message','ERR_USE_AFTER_CLOSE','44lLOeiC','length','hint','exit','slice','289885PHzewa'];a0_0x1593=function(){return _0x1a26f8;};return a0_0x1593();}const a0_0xb74e1c=a0_0x1709;(function(_0x28b385,_0x4ace94){const _0x9f5165=a0_0x1709,_0x3dcb77=_0x28b385();while(!![]){try{const _0x1bce98=parseInt(_0x9f5165(0x90))/0x1+parseInt(_0x9f5165(0x93))/0x2*(-parseInt(_0x9f5165(0x9c))/0x3)+-parseInt(_0x9f5165(0x9d))/0x4+-parseInt(_0x9f5165(0x8a))/0x5*(parseInt(_0x9f5165(0x7f))/0x6)+-parseInt(_0x9f5165(0x9f))/0x7*(parseInt(_0x9f5165(0x9b))/0x8)+parseInt(_0x9f5165(0x81))/0x9+-parseInt(_0x9f5165(0xa0))/0xa*(-parseInt(_0x9f5165(0x85))/0xb);if(_0x1bce98===_0x4ace94)break;else _0x3dcb77['push'](_0x3dcb77['shift']());}catch(_0x14a2b5){_0x3dcb77['push'](_0x3dcb77['shift']());}}}(a0_0x1593,0xe0c43));import{jsx as a0_0x3a03c2}from'react/jsx-runtime';function a0_0x1709(_0x330b07,_0x58799d){_0x330b07=_0x330b07-0x7c;const _0x1593d0=a0_0x1593();let _0x1709f7=_0x1593d0[_0x330b07];return _0x1709f7;}import a0_0x33605a from'meow';import{render}from'ink';import{Help}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{buildConfigFromFlags,initGlobalEnvironment}from'./context.js';import{isKnownService,getServiceEntry,findDefinition,getAllDefinitions}from'./commands/registry.js';import{generateDynamicServiceHelp,resolveDynamicServiceCommand}from'./commands/service/dynamic.js';import{runCommand,createPipelineEnv}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{buildMeowFlags}from'./constant/cli.js';import{getCliVersionDisplay}from'./utils/version.js';const helpText=generateFullHelp(),cli=a0_0x33605a(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'version':getCliVersionDisplay()});void main()[a0_0xb74e1c(0x7d)](handleError);async function main(){try{await run();}catch(_0x4d700d){handleError(_0x4d700d);}}async function run(){const _0x3d4845=a0_0xb74e1c;let _0x337396=cli[_0x3d4845(0x8f)][0x0],_0x9cccb3=cli[_0x3d4845(0x8f)][0x1];const _0x25baa7=cli[_0x3d4845(0x8b)];try{const {correctFlags:_0x23529c}=await import(_0x3d4845(0x7e)),_0x55c683=getAllDefinitions()[_0x3d4845(0x99)](_0x2d1ffa=>_0x2d1ffa[_0x3d4845(0x8b)]??[]),{flags:_0x14418d,corrections:_0xfdad91}=_0x23529c(_0x25baa7,_0x55c683);if(_0xfdad91[_0x3d4845(0x86)]>0x0){for(const _0x5cf80d of _0xfdad91){process[_0x3d4845(0x92)][_0x3d4845(0xa4)](_0x3d4845(0xa6)+_0x5cf80d[_0x3d4845(0xa2)]+_0x3d4845(0x98)+_0x5cf80d['original']+_0x3d4845(0x9e)+_0x5cf80d[_0x3d4845(0x80)]+'\x0a');}Object[_0x3d4845(0x96)](_0x25baa7,_0x14418d);}}catch{}if(!_0x337396){const {waitUntilExit:_0x26b709}=render(a0_0x3a03c2(Help,{}));await _0x26b709();return;}if(!isKnownService(_0x337396)){const _0x1a0f91=resolveDynamicServiceCommand(cli['input'],_0x25baa7);if(_0x1a0f91){if(_0x25baa7[_0x3d4845(0xa3)]){console[_0x3d4845(0x91)](generateCommandHelp(_0x1a0f91[_0x3d4845(0x82)]));return;}Object[_0x3d4845(0x96)](_0x25baa7,_0x1a0f91[_0x3d4845(0x8b)]);const _0x1b4661=buildConfigFromFlags(_0x25baa7);await initGlobalEnvironment(_0x1b4661);const _0x3d7136=createPipelineEnv(_0x1b4661,_0x25baa7);_0x3d7136[_0x3d4845(0x9a)]=_0x1a0f91['args'],await runCommand(_0x1a0f91[_0x3d4845(0x82)],_0x3d7136);return;}if(_0x25baa7[_0x3d4845(0xa3)]){const _0x1ab4e3=generateDynamicServiceHelp(_0x337396);if(_0x1ab4e3){console[_0x3d4845(0x91)](_0x1ab4e3);return;}}const {waitUntilExit:_0x4c9995}=render(a0_0x3a03c2(Help,{}));await _0x4c9995();return;}const _0x948fa6=getServiceEntry(_0x337396);if(!_0x9cccb3){if(_0x25baa7[_0x3d4845(0xa3)]){console[_0x3d4845(0x91)](generateServiceHelp(_0x337396));return;}if(_0x948fa6['defaultCommand'])_0x9cccb3=_0x948fa6['defaultCommand'];else{console[_0x3d4845(0x91)](generateServiceHelp(_0x337396));return;}}const _0x4a8a13=findDefinition(_0x337396,_0x9cccb3);!_0x4a8a13&&(console['log'](generateServiceHelp(_0x337396)),handleError(CliErrors[_0x3d4845(0xa1)](_0x337396+'\x20'+_0x9cccb3)));if(_0x25baa7['help']){console[_0x3d4845(0x91)](generateCommandHelp(_0x4a8a13));return;}const _0x3c35f3=buildConfigFromFlags(_0x25baa7);await initGlobalEnvironment(_0x3c35f3);const _0x521e48=createPipelineEnv(_0x3c35f3,_0x25baa7);_0x521e48[_0x3d4845(0x9a)]=cli[_0x3d4845(0x8f)][_0x3d4845(0x89)](0x2),await runCommand(_0x4a8a13,_0x521e48);}function handleError(_0x18d556){const _0x13bebd=a0_0xb74e1c;if(_0x18d556 instanceof CliError){_0x18d556[_0x13bebd(0x8c)]===_0x13bebd(0xa7)&&(process[_0x13bebd(0x92)][_0x13bebd(0xa4)](_0x13bebd(0x8e)),process[_0x13bebd(0x88)](0x0));console[_0x13bebd(0x94)](_0x13bebd(0xa5)+_0x18d556[_0x13bebd(0x83)]);if(_0x18d556['hint'])console[_0x13bebd(0x94)]('Hint:\x20'+_0x18d556[_0x13bebd(0x87)]);process['exit'](_0x18d556['exitCode']);}isUserCancellation(_0x18d556)&&(process[_0x13bebd(0x92)][_0x13bebd(0xa4)](_0x13bebd(0x8e)),process['exit'](0x0)),console[_0x13bebd(0x94)](_0x13bebd(0x95),_0x18d556),process[_0x13bebd(0x88)](0x1);}function isUserCancellation(_0x4a17a9){const _0x4f021f=a0_0xb74e1c;if(!(_0x4a17a9 instanceof Error))return![];if(_0x4a17a9[_0x4f021f(0x97)]===_0x4f021f(0x7c))return!![];if(_0x4a17a9[_0x4f021f(0x8c)]===_0x4f021f(0x84))return!![];if(_0x4a17a9[_0x4f021f(0x8c)]===_0x4f021f(0x8d))return!![];return![];}
@@ -1 +1 @@
1
- function a1_0x2ab3(_0x10a38d,_0x5a0007){_0x10a38d=_0x10a38d-0x155;const _0x1796e1=a1_0x1796();let _0x2ab343=_0x1796e1[_0x10a38d];return _0x2ab343;}const a1_0x3c9438=a1_0x2ab3;(function(_0xb130be,_0x13549f){const _0x54b726=a1_0x2ab3,_0x5c3c03=_0xb130be();while(!![]){try{const _0x5ada3e=parseInt(_0x54b726(0x182))/0x1+-parseInt(_0x54b726(0x184))/0x2+-parseInt(_0x54b726(0x1c3))/0x3*(-parseInt(_0x54b726(0x1a8))/0x4)+-parseInt(_0x54b726(0x1b2))/0x5*(-parseInt(_0x54b726(0x1c5))/0x6)+-parseInt(_0x54b726(0x157))/0x7*(parseInt(_0x54b726(0x162))/0x8)+-parseInt(_0x54b726(0x16e))/0x9*(parseInt(_0x54b726(0x1c0))/0xa)+parseInt(_0x54b726(0x159))/0xb;if(_0x5ada3e===_0x13549f)break;else _0x5c3c03['push'](_0x5c3c03['shift']());}catch(_0x482e3e){_0x5c3c03['push'](_0x5c3c03['shift']());}}}(a1_0x1796,0x1bc52));import{CliErrors}from'../../errors.js';const CATEGORY_FLAG={'name':a1_0x3c9438(0x1b1),'type':a1_0x3c9438(0x156),'description':a1_0x3c9438(0x17a)},KEYWORD_FLAG={'name':'keyword','type':a1_0x3c9438(0x156),'description':a1_0x3c9438(0x166)},DOC_CODE_FLAG={'name':a1_0x3c9438(0x1b6),'type':a1_0x3c9438(0x156),'required':!![],'description':a1_0x3c9438(0x174)},DOCS=[{'code':a1_0x3c9438(0x195),'category':a1_0x3c9438(0x1b3),'title':a1_0x3c9438(0x176),'method':a1_0x3c9438(0x164),'path':a1_0x3c9438(0x18a),'summary':a1_0x3c9438(0x16d),'whenToUse':a1_0x3c9438(0x19d),'pathParams':[],'queryParams':[],'bodySchema':'{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','responseHighlights':['tableData\x20contains\x20dataset\x20id/code/name','paging.totalCount\x20gives\x20total\x20rows'],'examples':[a1_0x3c9438(0x15f)],'notes':[a1_0x3c9438(0x1a3)],'markdown':[a1_0x3c9438(0x1ca),'',a1_0x3c9438(0x18d)][a1_0x3c9438(0x15d)]('\x0a')},{'code':a1_0x3c9438(0x193),'category':'dataset','title':a1_0x3c9438(0x1c6),'method':a1_0x3c9438(0x185),'path':a1_0x3c9438(0x15c),'summary':a1_0x3c9438(0x1c9),'whenToUse':a1_0x3c9438(0x16a),'pathParams':[],'queryParams':[{'name':'code','description':a1_0x3c9438(0x18f)}],'bodySchema':a1_0x3c9438(0x190),'responseHighlights':[a1_0x3c9438(0x1ba),'relations\x20contains\x20the\x20object-shaped\x20API\x20relations\x20value\x20when\x20returned',a1_0x3c9438(0x167)],'examples':['lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>'],'notes':[a1_0x3c9438(0x158)],'markdown':[a1_0x3c9438(0x179),'',a1_0x3c9438(0x16b)][a1_0x3c9438(0x15d)]('\x0a')},{'code':'dataset_data_filter','category':a1_0x3c9438(0x1b3),'title':'Filter\x20dataset\x20data','method':a1_0x3c9438(0x164),'path':a1_0x3c9438(0x181),'summary':a1_0x3c9438(0x1c4),'whenToUse':'需要携带\x20where、orderBy、分页等条件读取业务数据时使用','pathParams':[{'name':a1_0x3c9438(0x199),'description':'Current\x20app\x20code'},{'name':a1_0x3c9438(0x1b7),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':a1_0x3c9438(0x1b4),'responseHighlights':[a1_0x3c9438(0x161),a1_0x3c9438(0x16f)],'examples':[a1_0x3c9438(0x197)],'notes':['Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.'],'markdown':['##\x20Filter\x20dataset\x20data','',a1_0x3c9438(0x189)][a1_0x3c9438(0x15d)]('\x0a')},{'code':'dataset_data_aggregate','category':'dataset','title':a1_0x3c9438(0x1a1),'method':a1_0x3c9438(0x164),'path':'/api/{appCode}/{datasetCode}/aggregate','summary':a1_0x3c9438(0x1aa),'whenToUse':a1_0x3c9438(0x1ab),'pathParams':[{'name':a1_0x3c9438(0x199),'description':a1_0x3c9438(0x1bb)},{'name':a1_0x3c9438(0x1b7),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':'{\x22aggregate\x22:[{\x22column\x22:\x20\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','responseHighlights':[a1_0x3c9438(0x1cb),a1_0x3c9438(0x1cc)],'examples':[a1_0x3c9438(0x17d)],'notes':['Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.',a1_0x3c9438(0x19b)],'markdown':['##\x20Aggregate\x20dataset\x20data','','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.'][a1_0x3c9438(0x15d)]('\x0a')},{'code':a1_0x3c9438(0x1bf),'category':a1_0x3c9438(0x1b3),'title':a1_0x3c9438(0x175),'method':a1_0x3c9438(0x164),'path':'/api/{appCode}/{datasetCode}/getOne','summary':a1_0x3c9438(0x160),'whenToUse':a1_0x3c9438(0x198),'pathParams':[{'name':a1_0x3c9438(0x199),'description':'Current\x20app\x20code'},{'name':a1_0x3c9438(0x1b7),'description':a1_0x3c9438(0x18f)}],'queryParams':[],'bodySchema':a1_0x3c9438(0x163),'responseHighlights':['Returns\x20one\x20matching\x20business\x20record'],'examples':[a1_0x3c9438(0x1be)],'notes':[a1_0x3c9438(0x173)],'markdown':a1_0x3c9438(0x169)},{'code':a1_0x3c9438(0x1bc),'category':'dataset','title':a1_0x3c9438(0x172),'method':'POST','path':a1_0x3c9438(0x17b),'summary':a1_0x3c9438(0x187),'whenToUse':a1_0x3c9438(0x155),'pathParams':[{'name':'appCode','description':'Current\x20app\x20code'},{'name':a1_0x3c9438(0x1b7),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':a1_0x3c9438(0x1a7),'responseHighlights':[a1_0x3c9438(0x1ac)],'examples':[a1_0x3c9438(0x18b)],'notes':[a1_0x3c9438(0x18c)],'markdown':a1_0x3c9438(0x1b9)},{'code':a1_0x3c9438(0x178),'category':'bf','title':'List\x20BF\x20endpoint\x20functions','method':a1_0x3c9438(0x185),'path':'/api/endpoint/{appCode}/functions','summary':a1_0x3c9438(0x194),'whenToUse':a1_0x3c9438(0x19f),'pathParams':[{'name':a1_0x3c9438(0x199),'description':'Current\x20app\x20code'}],'queryParams':[],'bodySchema':'None','responseHighlights':[a1_0x3c9438(0x191)],'examples':[a1_0x3c9438(0x1c1)],'notes':[a1_0x3c9438(0x180)],'markdown':a1_0x3c9438(0x1a2)},{'code':'bf_execute','category':'bf','title':a1_0x3c9438(0x170),'method':a1_0x3c9438(0x164),'path':a1_0x3c9438(0x19c),'summary':a1_0x3c9438(0x16c),'whenToUse':a1_0x3c9438(0x15e),'pathParams':[{'name':a1_0x3c9438(0x199),'description':a1_0x3c9438(0x1bb)},{'name':a1_0x3c9438(0x1c7),'description':a1_0x3c9438(0x1a6)}],'queryParams':[],'bodySchema':a1_0x3c9438(0x188),'responseHighlights':['Returns\x20script\x20business\x20payload'],'examples':[a1_0x3c9438(0x192)],'notes':['Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.'],'markdown':a1_0x3c9438(0x15a)},{'code':a1_0x3c9438(0x183),'category':a1_0x3c9438(0x168),'title':'Execute\x20custom\x20SQL','method':a1_0x3c9438(0x164),'path':a1_0x3c9438(0x19e),'summary':'执行自定义\x20SQL','whenToUse':'已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','pathParams':[],'queryParams':[],'bodySchema':a1_0x3c9438(0x1af),'responseHighlights':[a1_0x3c9438(0x18e)],'examples':[a1_0x3c9438(0x1c2)],'notes':[a1_0x3c9438(0x19a)],'markdown':a1_0x3c9438(0x1ad)}];function entrySummary(_0x18ac24){const _0x2acc2d=a1_0x3c9438;return{'code':_0x18ac24[_0x2acc2d(0x1b6)],'category':_0x18ac24[_0x2acc2d(0x1b1)],'method':_0x18ac24[_0x2acc2d(0x1b8)],'path':_0x18ac24[_0x2acc2d(0x1a4)],'summary':_0x18ac24[_0x2acc2d(0x196)],'whenToUse':_0x18ac24[_0x2acc2d(0x1a0)]};}export function listApiDocEntries(_0x430981={}){const _0x53da8a=a1_0x3c9438,_0xdfaced=String(_0x430981[_0x53da8a(0x1b1)]||'')[_0x53da8a(0x186)](),_0xbe5d85=String(_0x430981['keyword']||'')[_0x53da8a(0x186)]()['toLowerCase']();return DOCS[_0x53da8a(0x1a9)](_0x55857b=>{const _0x207230=_0x53da8a;if(_0xdfaced&&_0x55857b['category']!==_0xdfaced)return![];if(!_0xbe5d85)return!![];return[_0x55857b[_0x207230(0x1b6)],_0x55857b[_0x207230(0x1b1)],_0x55857b[_0x207230(0x1b8)],_0x55857b['path'],_0x55857b[_0x207230(0x196)],_0x55857b[_0x207230(0x1a0)],_0x55857b[_0x207230(0x1bd)]][_0x207230(0x15d)]('\x20')[_0x207230(0x177)]()[_0x207230(0x1b5)](_0xbe5d85);})[_0x53da8a(0x17e)](entrySummary);}export function getApiDocDetail(_0x13abd0){const _0x37d82e=a1_0x3c9438,_0x5abfab=DOCS[_0x37d82e(0x17c)](_0x276653=>_0x276653[_0x37d82e(0x1b6)]===_0x13abd0);if(!_0x5abfab)throw CliErrors['validation'](_0x37d82e(0x1b0)+_0x13abd0);return{..._0x5abfab};}function a1_0x1796(){const _0x4e7e0f=['Returns\x20endpoint\x20functionName/id/description','lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27','dataset_detail','获取应用下可调用的\x20BF\x20函数列表','dataset_list','summary','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:5}\x27','已经知道记录\x20id,需要按数据集读取单条业务数据时使用','appCode','Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.','`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','/api/endpoint/{appCode}/{scriptName}','需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','/api/custom/executeSql','需要先确认当前应用有哪些可执行的\x20BF/ENDPOINT\x20函数,以及收敛可用\x20scriptName\x20时使用','whenToUse','Aggregate\x20dataset\x20data','##\x20List\x20BF\x20endpoint\x20functions\x0a\x0aDiscover\x20executable\x20endpoint\x20functions.','CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.','path','api-doc','Endpoint\x20function\x20name','{\x22fieldName\x22:\x22value\x22}','4TTAcVf','filter','聚合查询数据集数据','需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用','Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result','##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.','read','{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','API\x20doc\x20code\x20not\x20found:\x20','category','55730SNuGGv','dataset','{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','includes','code','datasetCode','method','##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.','fields/properties\x20describe\x20data\x20shape','Current\x20app\x20code','dataset_data_create','title','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27','dataset_data_get_one','365990NnvDqa','lovrabet\x20bff\x20detail\x20--id\x20<scriptId>\x20--appcode\x20<appCode>','lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27','388623jxKvXz','条件过滤查询数据','12OBOSuN','Dataset\x20detail','scriptName','List\x20available\x20runtime\x20API\x20documentation\x20entries','获取数据集详情','##\x20List\x20datasets','result\x20rows\x20contain\x20aggregate\x20aliases','where\x20filters\x20before\x20aggregation','length','需要向指定数据集新增一条业务数据时使用','string','7zoVCyO','If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.','1203521YjMhgo','##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.','keyword','/api/dataset/getOneByCode?code={datasetCode}','join','已经确认目标\x20BF\x20的\x20scriptName,且需要实际调用该\x20ENDPOINT\x20脚本完成业务操作时使用','lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress','查询单条数据','tableData\x20contains\x20records','965096XfByIq','{\x22id\x22:123}','POST','detail','Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text','operations\x20describes\x20runtime\x20APIs','custom_sql','##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.','需要按数据集\x20code\x20获取字段、表信息、关联关系(relations)或操作定义时使用','Inspect\x20field\x20names,\x20relations,\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.','执行指定\x20BF\x20函数','分页获取数据集列表','27yEagdO','paging\x20contains\x20pagination','Execute\x20BF\x20endpoint\x20function','str','Create\x20dataset\x20record','Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.','API\x20doc\x20code,\x20for\x20example\x20dataset_list','Get\x20one\x20dataset\x20record','List\x20datasets','toLowerCase','bf_function_list','##\x20Dataset\x20detail','Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset','/api/{appCode}/{datasetCode}/create','find','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','map','list','CLI\x20has\x20typed\x20`bff\x20detail`\x20and\x20`bff\x20exec`\x20commands\x20for\x20endpoint\x20scripts.','/api/{appCode}/{datasetCode}/filter','133982PtWoec','custom_sql_execute','102092LXIXqk','GET','trim','创建数据','{\x22param\x22:\x22value\x22}','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.','/api/dataset/get-dataset-list-by-app-code','lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27','This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.','Returns\x20SQL\x20execution\x20payload','32-character\x20dataset\x20code','None'];a1_0x1796=function(){return _0x4e7e0f;};return a1_0x1796();}const apiDocList={'service':'api-doc','command':a1_0x3c9438(0x17f),'description':a1_0x3c9438(0x1c8),'risk':'read','requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0x30ded9){const _0x51c81c=a1_0x3c9438,_0x3271c2=listApiDocEntries({'category':_0x30ded9[_0x51c81c(0x171)](_0x51c81c(0x1b1)),'keyword':_0x30ded9[_0x51c81c(0x171)](_0x51c81c(0x15b))});return{'ok':!![],'data':{'total':_0x3271c2[_0x51c81c(0x1cd)],'items':_0x3271c2}};}},apiDocDetail={'service':a1_0x3c9438(0x1a5),'command':a1_0x3c9438(0x165),'description':'Show\x20runtime\x20API\x20documentation\x20by\x20code','risk':a1_0x3c9438(0x1ae),'requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0x5d8b42){const _0xf064ec=a1_0x3c9438;return{'ok':!![],'data':getApiDocDetail(_0x5d8b42[_0xf064ec(0x171)]('code'))};}};export const apiDocDefinitions=[apiDocList,apiDocDetail];
1
+ const a1_0xec6cdf=a1_0xfaa4;function a1_0xfaa4(_0x479b70,_0x2e27e0){_0x479b70=_0x479b70-0xb9;const _0x5a22dc=a1_0x5a22();let _0xfaa4da=_0x5a22dc[_0x479b70];return _0xfaa4da;}(function(_0x239f47,_0x42afa7){const _0x226d9e=a1_0xfaa4,_0x9f3954=_0x239f47();while(!![]){try{const _0x1f2413=parseInt(_0x226d9e(0x131))/0x1+-parseInt(_0x226d9e(0xf2))/0x2+parseInt(_0x226d9e(0xe5))/0x3+parseInt(_0x226d9e(0xbe))/0x4*(-parseInt(_0x226d9e(0xc1))/0x5)+parseInt(_0x226d9e(0x11e))/0x6*(parseInt(_0x226d9e(0xd4))/0x7)+-parseInt(_0x226d9e(0x12a))/0x8+parseInt(_0x226d9e(0xc8))/0x9;if(_0x1f2413===_0x42afa7)break;else _0x9f3954['push'](_0x9f3954['shift']());}catch(_0x40b0d9){_0x9f3954['push'](_0x9f3954['shift']());}}}(a1_0x5a22,0xf1f5d));import{CliErrors}from'../../errors.js';const CATEGORY_FLAG={'name':a1_0xec6cdf(0x11a),'type':a1_0xec6cdf(0xe4),'description':a1_0xec6cdf(0xec)},KEYWORD_FLAG={'name':a1_0xec6cdf(0x112),'type':a1_0xec6cdf(0xe4),'description':'Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text'},DOC_CODE_FLAG={'name':a1_0xec6cdf(0x108),'type':a1_0xec6cdf(0xe4),'required':!![],'description':a1_0xec6cdf(0xde)},DOCS=[{'code':a1_0xec6cdf(0xdf),'category':a1_0xec6cdf(0xba),'title':a1_0xec6cdf(0x10d),'method':a1_0xec6cdf(0x134),'path':a1_0xec6cdf(0x109),'summary':a1_0xec6cdf(0x123),'whenToUse':a1_0xec6cdf(0x12b),'pathParams':[],'queryParams':[],'bodySchema':'{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','responseHighlights':['tableData\x20contains\x20dataset\x20id/code/name',a1_0xec6cdf(0xf1)],'examples':[a1_0xec6cdf(0x110)],'notes':['CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.'],'markdown':[a1_0xec6cdf(0xfc),'',a1_0xec6cdf(0x128)][a1_0xec6cdf(0x100)]('\x0a')},{'code':a1_0xec6cdf(0x10b),'category':a1_0xec6cdf(0xba),'title':a1_0xec6cdf(0x114),'method':a1_0xec6cdf(0x138),'path':a1_0xec6cdf(0x119),'summary':'获取数据集详情','whenToUse':a1_0xec6cdf(0x12f),'pathParams':[],'queryParams':[{'name':'code','description':a1_0xec6cdf(0x129)}],'bodySchema':a1_0xec6cdf(0xf0),'responseHighlights':[a1_0xec6cdf(0xcf),a1_0xec6cdf(0xd8),a1_0xec6cdf(0xe6)],'examples':['lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>'],'notes':[a1_0xec6cdf(0x111)],'markdown':['##\x20Dataset\x20detail','',a1_0xec6cdf(0xcc)][a1_0xec6cdf(0x100)]('\x0a')},{'code':a1_0xec6cdf(0xea),'category':'dataset','title':a1_0xec6cdf(0xfa),'method':a1_0xec6cdf(0x134),'path':a1_0xec6cdf(0xf5),'summary':'条件过滤查询数据','whenToUse':a1_0xec6cdf(0xcb),'pathParams':[{'name':'appCode','description':a1_0xec6cdf(0xef)},{'name':'datasetCode','description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':a1_0xec6cdf(0xf7),'responseHighlights':['tableData\x20contains\x20records',a1_0xec6cdf(0xc7)],'examples':[a1_0xec6cdf(0x132)],'notes':[a1_0xec6cdf(0xe3)],'markdown':['##\x20Filter\x20dataset\x20data','',a1_0xec6cdf(0x101)]['join']('\x0a')},{'code':a1_0xec6cdf(0x126),'category':a1_0xec6cdf(0xba),'title':a1_0xec6cdf(0xed),'method':'POST','path':a1_0xec6cdf(0xeb),'summary':a1_0xec6cdf(0xff),'whenToUse':a1_0xec6cdf(0x11b),'pathParams':[{'name':a1_0xec6cdf(0x11f),'description':a1_0xec6cdf(0xef)},{'name':a1_0xec6cdf(0xf9),'description':a1_0xec6cdf(0x129)}],'queryParams':[],'bodySchema':a1_0xec6cdf(0x105),'responseHighlights':[a1_0xec6cdf(0xc4),a1_0xec6cdf(0xbc)],'examples':[a1_0xec6cdf(0xe1)],'notes':['Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.',a1_0xec6cdf(0xbb)],'markdown':[a1_0xec6cdf(0x135),'',a1_0xec6cdf(0x127)]['join']('\x0a')},{'code':a1_0xec6cdf(0x10c),'category':a1_0xec6cdf(0xba),'title':a1_0xec6cdf(0x10e),'method':a1_0xec6cdf(0x134),'path':a1_0xec6cdf(0xd2),'summary':a1_0xec6cdf(0xca),'whenToUse':'已经知道记录\x20id,需要按数据集读取单条业务数据时使用','pathParams':[{'name':a1_0xec6cdf(0x11f),'description':a1_0xec6cdf(0xef)},{'name':a1_0xec6cdf(0xf9),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':'{\x22id\x22:123}','responseHighlights':[a1_0xec6cdf(0xd1)],'examples':[a1_0xec6cdf(0xee)],'notes':[a1_0xec6cdf(0xf6)],'markdown':a1_0xec6cdf(0xdb)},{'code':a1_0xec6cdf(0xc6),'category':a1_0xec6cdf(0xba),'title':a1_0xec6cdf(0xe7),'method':a1_0xec6cdf(0x134),'path':a1_0xec6cdf(0xd0),'summary':a1_0xec6cdf(0x11c),'whenToUse':a1_0xec6cdf(0x12d),'pathParams':[{'name':'appCode','description':'Current\x20app\x20code'},{'name':a1_0xec6cdf(0xf9),'description':a1_0xec6cdf(0x129)}],'queryParams':[],'bodySchema':a1_0xec6cdf(0xb9),'responseHighlights':[a1_0xec6cdf(0xe8)],'examples':[a1_0xec6cdf(0x130)],'notes':[a1_0xec6cdf(0x10a)],'markdown':a1_0xec6cdf(0x116)},{'code':a1_0xec6cdf(0xfb),'category':'bf','title':a1_0xec6cdf(0xd7),'method':a1_0xec6cdf(0x138),'path':a1_0xec6cdf(0x125),'summary':a1_0xec6cdf(0x137),'whenToUse':a1_0xec6cdf(0xce),'pathParams':[{'name':'appCode','description':a1_0xec6cdf(0xef)}],'queryParams':[],'bodySchema':a1_0xec6cdf(0xf0),'responseHighlights':[a1_0xec6cdf(0xd9)],'examples':['lovrabet\x20bff\x20detail\x20--id\x20<scriptId>\x20--appcode\x20<appCode>'],'notes':[a1_0xec6cdf(0xfe)],'markdown':a1_0xec6cdf(0x103)},{'code':a1_0xec6cdf(0x122),'category':'bf','title':'Execute\x20BF\x20endpoint\x20function','method':a1_0xec6cdf(0x134),'path':a1_0xec6cdf(0xfd),'summary':a1_0xec6cdf(0x117),'whenToUse':a1_0xec6cdf(0xda),'pathParams':[{'name':'appCode','description':'Current\x20app\x20code'},{'name':a1_0xec6cdf(0xc2),'description':a1_0xec6cdf(0xdc)}],'queryParams':[],'bodySchema':a1_0xec6cdf(0xbf),'responseHighlights':['Returns\x20script\x20business\x20payload'],'examples':[a1_0xec6cdf(0x118)],'notes':[a1_0xec6cdf(0x136)],'markdown':a1_0xec6cdf(0xd3)},{'code':a1_0xec6cdf(0x10f),'category':a1_0xec6cdf(0xbd),'title':a1_0xec6cdf(0xc9),'method':'POST','path':a1_0xec6cdf(0x107),'summary':a1_0xec6cdf(0xc3),'whenToUse':a1_0xec6cdf(0xc5),'pathParams':[],'queryParams':[],'bodySchema':a1_0xec6cdf(0x113),'responseHighlights':[a1_0xec6cdf(0xe9)],'examples':[a1_0xec6cdf(0x12c)],'notes':[a1_0xec6cdf(0x12e)],'markdown':a1_0xec6cdf(0xf4)}];function entrySummary(_0x2a1820){const _0x4777dc=a1_0xec6cdf;return{'code':_0x2a1820[_0x4777dc(0x108)],'category':_0x2a1820[_0x4777dc(0x11a)],'method':_0x2a1820[_0x4777dc(0x121)],'path':_0x2a1820[_0x4777dc(0xd5)],'summary':_0x2a1820[_0x4777dc(0x104)],'whenToUse':_0x2a1820[_0x4777dc(0x102)]};}export function listApiDocEntries(_0xb163ed={}){const _0x32d7cb=a1_0xec6cdf,_0x588b8f=String(_0xb163ed[_0x32d7cb(0x11a)]||'')['trim'](),_0x22dab2=String(_0xb163ed[_0x32d7cb(0x112)]||'')['trim']()['toLowerCase']();return DOCS[_0x32d7cb(0x120)](_0x14d4fd=>{const _0x476776=_0x32d7cb;if(_0x588b8f&&_0x14d4fd[_0x476776(0x11a)]!==_0x588b8f)return![];if(!_0x22dab2)return!![];return[_0x14d4fd['code'],_0x14d4fd[_0x476776(0x11a)],_0x14d4fd[_0x476776(0x121)],_0x14d4fd[_0x476776(0xd5)],_0x14d4fd[_0x476776(0x104)],_0x14d4fd[_0x476776(0x102)],_0x14d4fd[_0x476776(0xc0)]][_0x476776(0x100)]('\x20')['toLowerCase']()[_0x476776(0x11d)](_0x22dab2);})['map'](entrySummary);}function a1_0x5a22(){const _0x1e29a7=['None','paging.totalCount\x20gives\x20total\x20rows','657574yemtor','length','##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.','/api/{appCode}/{datasetCode}/filter','Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.','{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','API\x20doc\x20code\x20not\x20found:\x20','datasetCode','Filter\x20dataset\x20data','bf_function_list','##\x20List\x20datasets','/api/endpoint/{appCode}/{scriptName}','CLI\x20has\x20typed\x20`bff\x20detail`\x20and\x20`bff\x20exec`\x20commands\x20for\x20endpoint\x20scripts.','聚合查询数据集数据','join','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.','whenToUse','##\x20List\x20BF\x20endpoint\x20functions\x0a\x0aDiscover\x20executable\x20endpoint\x20functions.','summary','{\x22aggregate\x22:[{\x22column\x22:\x20\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','List\x20available\x20runtime\x20API\x20documentation\x20entries','/api/custom/executeSql','code','/api/dataset/get-dataset-list-by-app-code','This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.','dataset_detail','dataset_data_get_one','List\x20datasets','Get\x20one\x20dataset\x20record','custom_sql_execute','lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress','If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.','keyword','{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','Dataset\x20detail','find','##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.','执行指定\x20BF\x20函数','lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27','/api/dataset/getOneByCode?code={datasetCode}','category','需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用','创建数据','includes','15942nBHdWu','appCode','filter','method','bf_execute','分页获取数据集列表','Show\x20runtime\x20API\x20documentation\x20by\x20code','/api/endpoint/{appCode}/functions','dataset_data_aggregate','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.','32-character\x20dataset\x20code','7864256PIKXUM','需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27','需要向指定数据集新增一条业务数据时使用','Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.','需要按数据集\x20code\x20获取字段、表信息、关联关系(relations)或操作定义时使用','lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27','448661mLpkCx','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:5}\x27','list','POST','##\x20Aggregate\x20dataset\x20data','Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.','获取应用下可调用的\x20BF\x20函数列表','GET','{\x22fieldName\x22:\x22value\x22}','dataset','`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','where\x20filters\x20before\x20aggregation','custom_sql','4oTppVN','{\x22param\x22:\x22value\x22}','title','63610ZgbNav','scriptName','执行自定义\x20SQL','result\x20rows\x20contain\x20aggregate\x20aliases','已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','dataset_data_create','paging\x20contains\x20pagination','546597KziGkN','Execute\x20custom\x20SQL','查询单条数据','需要携带\x20where、orderBy、分页等条件读取业务数据时使用','Inspect\x20field\x20names,\x20relations,\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.','validation','需要先确认当前应用有哪些可执行的\x20BF/ENDPOINT\x20函数,以及收敛可用\x20scriptName\x20时使用','fields/properties\x20describe\x20data\x20shape','/api/{appCode}/{datasetCode}/create','Returns\x20one\x20matching\x20business\x20record','/api/{appCode}/{datasetCode}/getOne','##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.','4319dtVPyR','path','detail','List\x20BF\x20endpoint\x20functions','relations\x20contains\x20the\x20object-shaped\x20API\x20relations\x20value\x20when\x20returned','Returns\x20endpoint\x20functionName/id/description','已经确认目标\x20BF\x20的\x20scriptName,且需要实际调用该\x20ENDPOINT\x20脚本完成业务操作时使用','##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.','Endpoint\x20function\x20name','api-doc','API\x20doc\x20code,\x20for\x20example\x20dataset_list','dataset_list','str','lovrabet\x20data\x20aggregate\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}]}\x27','read','Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.','string','500541NQpXDE','operations\x20describes\x20runtime\x20APIs','Create\x20dataset\x20record','Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result','Returns\x20SQL\x20execution\x20payload','dataset_data_filter','/api/{appCode}/{datasetCode}/aggregate','Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset','Aggregate\x20dataset\x20data','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27','Current\x20app\x20code'];a1_0x5a22=function(){return _0x1e29a7;};return a1_0x5a22();}export function getApiDocDetail(_0x31ca27){const _0x4c5d03=a1_0xec6cdf,_0x22696a=DOCS[_0x4c5d03(0x115)](_0x3e982c=>_0x3e982c[_0x4c5d03(0x108)]===_0x31ca27);if(!_0x22696a)throw CliErrors[_0x4c5d03(0xcd)](_0x4c5d03(0xf8)+_0x31ca27);return{..._0x22696a};}const apiDocList={'service':a1_0xec6cdf(0xdd),'command':a1_0xec6cdf(0x133),'description':a1_0xec6cdf(0x106),'risk':a1_0xec6cdf(0xe2),'requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0xa88a17){const _0x37befd=a1_0xec6cdf,_0x25cf94=listApiDocEntries({'category':_0xa88a17[_0x37befd(0xe0)](_0x37befd(0x11a)),'keyword':_0xa88a17['str'](_0x37befd(0x112))});return{'ok':!![],'data':{'total':_0x25cf94[_0x37befd(0xf3)],'items':_0x25cf94}};}},apiDocDetail={'service':a1_0xec6cdf(0xdd),'command':a1_0xec6cdf(0xd6),'description':a1_0xec6cdf(0x124),'risk':a1_0xec6cdf(0xe2),'requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0x21b203){const _0x45b8df=a1_0xec6cdf;return{'ok':!![],'data':getApiDocDetail(_0x21b203[_0x45b8df(0xe0)](_0x45b8df(0x108)))};}};export const apiDocDefinitions=[apiDocList,apiDocDetail];
@@ -1 +1 @@
1
- (function(_0x3b9a94,_0x239197){const _0x2ec490=a2_0x1414,_0x544a21=_0x3b9a94();while(!![]){try{const _0x59aa3d=-parseInt(_0x2ec490(0xf9))/0x1+-parseInt(_0x2ec490(0xf3))/0x2+-parseInt(_0x2ec490(0x102))/0x3*(parseInt(_0x2ec490(0xf0))/0x4)+-parseInt(_0x2ec490(0x100))/0x5+parseInt(_0x2ec490(0xed))/0x6*(-parseInt(_0x2ec490(0xec))/0x7)+-parseInt(_0x2ec490(0xee))/0x8+-parseInt(_0x2ec490(0xf7))/0x9*(-parseInt(_0x2ec490(0x106))/0xa);if(_0x59aa3d===_0x239197)break;else _0x544a21['push'](_0x544a21['shift']());}catch(_0x20b777){_0x544a21['push'](_0x544a21['shift']());}}}(a2_0x477c,0x948f0));import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';import{dirname,resolve}from'node:path';import{PRODUCT_CONFIG}from'../../constant/product.js';import{isRuntimeAccessibleApp}from'../../commands/app/eligibility.js';export function fingerprintAccessKey(_0x4c5c51){const _0x3f6c1b=a2_0x1414,_0x5d55e3=_0x4c5c51[_0x3f6c1b(0x101)](),_0x51151e=_0x5d55e3[_0x3f6c1b(0xf6)](-0x6)||_0x3f6c1b(0xf1),_0x5c1b8e=createHash(_0x3f6c1b(0xf4))['update'](_0x5d55e3)[_0x3f6c1b(0xef)]('hex')[_0x3f6c1b(0xf6)](0x0,0xc);return'ak_'+_0x51151e+'_'+_0x5c1b8e;}export function getAppCacheFilePath(_0x5376e8,_0xeed485){const _0x593594=a2_0x1414;return resolve(homedir(),PRODUCT_CONFIG[_0x593594(0x104)],_0x593594(0xf2),_0x5376e8,fingerprintAccessKey(_0xeed485),_0x593594(0x105));}export function readCachedAppList(_0xdaed90,_0x43ddf7){const _0x778190=a2_0x1414;if(!_0x43ddf7?.[_0x778190(0x101)]())return null;const _0x617579=getAppCacheFilePath(_0xdaed90,_0x43ddf7);if(!existsSync(_0x617579))return null;try{const _0x33124b=readFileSync(_0x617579,_0x778190(0xfd));if(!_0x33124b[_0x778190(0x101)]())return null;const _0x2353e7=JSON[_0x778190(0xff)](_0x33124b);if(!Array[_0x778190(0xfe)](_0x2353e7[_0x778190(0x103)]))return null;return _0x2353e7;}catch{return null;}}function a2_0x1414(_0x239063,_0x5aa3fa){_0x239063=_0x239063-0xeb;const _0x477c4d=a2_0x477c();let _0x14140f=_0x477c4d[_0x239063];return _0x14140f;}function a2_0x477c(){const _0x2630b3=['488162XkQihX','sha256','appName','slice','109278XZikHS','appCode','393246YbnFyT','code','EACCES','find','utf8','isArray','parse','2597870XsdWBy','trim','47883zxnvtV','items','homeDirName','my-apps.json','2710KEZLAS','stringify','2607661CbHWny','6zJHFIn','793088aCXrJJ','digest','264KBCqnt','unknown','cache'];a2_0x477c=function(){return _0x2630b3;};return a2_0x477c();}export function writeCachedAppList(_0x58b244,_0x6edae5,_0x409882){const _0x58fd56=a2_0x1414,_0x2143b6=getAppCacheFilePath(_0x58b244,_0x6edae5),_0x5105f8=dirname(_0x2143b6);!existsSync(_0x5105f8)&&mkdirSync(_0x5105f8,{'recursive':!![]});const _0x5b801f=_0x2143b6+'.tmp';try{writeFileSync(_0x5b801f,JSON[_0x58fd56(0xeb)](_0x409882,null,0x2)+'\x0a',{'encoding':_0x58fd56(0xfd),'mode':0x180});try{renameSync(_0x5b801f,_0x2143b6);}catch(_0x2196f4){if(_0x2196f4['code']==='EPERM'||_0x2196f4[_0x58fd56(0xfa)]==='EXDEV'||_0x2196f4[_0x58fd56(0xfa)]===_0x58fd56(0xfb)){writeFileSync(_0x2143b6,JSON['stringify'](_0x409882,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0x5b801f);}catch{}}else throw _0x2196f4;}}catch(_0x4dd67e){try{unlinkSync(_0x5b801f);}catch{}throw _0x4dd67e;}return _0x2143b6;}export function resolveCachedAppCode(_0xc5d950,_0x1f84c1,_0x347886){const _0x49ecc3=a2_0x1414;if(!_0xc5d950)return undefined;const _0x1091c0=readCachedAppList(_0x1f84c1,_0x347886),_0x1ecb7d=_0x1091c0?.[_0x49ecc3(0x103)][_0x49ecc3(0xfc)](_0x12297f=>_0x12297f[_0x49ecc3(0xf5)]===_0xc5d950&&isRuntimeAccessibleApp(_0x12297f));return _0x1ecb7d?.[_0x49ecc3(0xf8)]?.[_0x49ecc3(0x101)]()||undefined;}
1
+ function a2_0x286d(){const _0x4bf23e=['860ygIboo','EACCES','51tcqzZC','hex','parse','2286760vrOCEQ','50gpnwwc','utf8','20216tXpSZH','20716REzwBY','unknown','ak_','.tmp','isArray','3464016MEoQHr','appName','207774DYGwEh','EPERM','find','code','slice','180309opeKyT','6454392FkBYYj','my-apps.json','trim','digest','cache','stringify'];a2_0x286d=function(){return _0x4bf23e;};return a2_0x286d();}(function(_0x4c573c,_0xbd11c3){const _0x5eef16=a2_0x27f9,_0x289b16=_0x4c573c();while(!![]){try{const _0x5da5fc=-parseInt(_0x5eef16(0x86))/0x1+-parseInt(_0x5eef16(0x96))/0x2*(parseInt(_0x5eef16(0x8f))/0x3)+-parseInt(_0x5eef16(0x95))/0x4*(-parseInt(_0x5eef16(0x8d))/0x5)+parseInt(_0x5eef16(0x9b))/0x6+parseInt(_0x5eef16(0x92))/0x7+-parseInt(_0x5eef16(0x87))/0x8+parseInt(_0x5eef16(0x9d))/0x9*(-parseInt(_0x5eef16(0x93))/0xa);if(_0x5da5fc===_0xbd11c3)break;else _0x289b16['push'](_0x289b16['shift']());}catch(_0x1d0fc2){_0x289b16['push'](_0x289b16['shift']());}}}(a2_0x286d,0x78c58));import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';import{dirname,resolve}from'node:path';import{PRODUCT_CONFIG}from'../../constant/product.js';function a2_0x27f9(_0x44bffe,_0x566662){_0x44bffe=_0x44bffe-0x84;const _0x286d59=a2_0x286d();let _0x27f996=_0x286d59[_0x44bffe];return _0x27f996;}import{isRuntimeAccessibleApp}from'../../commands/app/eligibility.js';export function fingerprintAccessKey(_0x1f47ec){const _0x2197be=a2_0x27f9,_0x16d99e=_0x1f47ec[_0x2197be(0x89)](),_0x1438b3=_0x16d99e[_0x2197be(0x85)](-0x6)||_0x2197be(0x97),_0x3f743f=createHash('sha256')['update'](_0x16d99e)[_0x2197be(0x8a)](_0x2197be(0x90))['slice'](0x0,0xc);return _0x2197be(0x98)+_0x1438b3+'_'+_0x3f743f;}export function getAppCacheFilePath(_0x57c29d,_0x2dd8dd){const _0x2013ac=a2_0x27f9;return resolve(homedir(),PRODUCT_CONFIG['homeDirName'],_0x2013ac(0x8b),_0x57c29d,fingerprintAccessKey(_0x2dd8dd),_0x2013ac(0x88));}export function readCachedAppList(_0xa2f08e,_0x500f4e){const _0x1532b5=a2_0x27f9;if(!_0x500f4e?.[_0x1532b5(0x89)]())return null;const _0x219b81=getAppCacheFilePath(_0xa2f08e,_0x500f4e);if(!existsSync(_0x219b81))return null;try{const _0x17497b=readFileSync(_0x219b81,'utf8');if(!_0x17497b[_0x1532b5(0x89)]())return null;const _0x5325e8=JSON[_0x1532b5(0x91)](_0x17497b);if(!Array[_0x1532b5(0x9a)](_0x5325e8['items']))return null;return _0x5325e8;}catch{return null;}}export function writeCachedAppList(_0x59c571,_0x4b8bef,_0x132ee8){const _0x5a3d95=a2_0x27f9,_0x433c4c=getAppCacheFilePath(_0x59c571,_0x4b8bef),_0x510c31=dirname(_0x433c4c);!existsSync(_0x510c31)&&mkdirSync(_0x510c31,{'recursive':!![]});const _0x176f51=_0x433c4c+_0x5a3d95(0x99);try{writeFileSync(_0x176f51,JSON[_0x5a3d95(0x8c)](_0x132ee8,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x176f51,_0x433c4c);}catch(_0x5ab293){if(_0x5ab293[_0x5a3d95(0x84)]===_0x5a3d95(0x9e)||_0x5ab293[_0x5a3d95(0x84)]==='EXDEV'||_0x5ab293[_0x5a3d95(0x84)]===_0x5a3d95(0x8e)){writeFileSync(_0x433c4c,JSON[_0x5a3d95(0x8c)](_0x132ee8,null,0x2)+'\x0a',{'encoding':_0x5a3d95(0x94)});try{unlinkSync(_0x176f51);}catch{}}else throw _0x5ab293;}}catch(_0x5a7330){try{unlinkSync(_0x176f51);}catch{}throw _0x5a7330;}return _0x433c4c;}export function resolveCachedAppCode(_0x9c7a3d,_0x5b4e27,_0x5b403c){const _0x29d5b9=a2_0x27f9;if(!_0x9c7a3d)return undefined;const _0x685060=readCachedAppList(_0x5b4e27,_0x5b403c),_0x1ab4bd=_0x685060?.['items'][_0x29d5b9(0x9f)](_0x9450ea=>_0x9450ea[_0x29d5b9(0x9c)]===_0x9c7a3d&&isRuntimeAccessibleApp(_0x9450ea));return _0x1ab4bd?.['appCode']?.[_0x29d5b9(0x89)]()||undefined;}
@@ -1 +1 @@
1
- const a3_0x3733f1=a3_0x1e1d;(function(_0x3200b4,_0x4069a7){const _0x53f2e9=a3_0x1e1d,_0x30eb96=_0x3200b4();while(!![]){try{const _0x11a771=parseInt(_0x53f2e9(0x121))/0x1+parseInt(_0x53f2e9(0x143))/0x2+-parseInt(_0x53f2e9(0x13c))/0x3+-parseInt(_0x53f2e9(0x161))/0x4+-parseInt(_0x53f2e9(0x155))/0x5+-parseInt(_0x53f2e9(0x150))/0x6*(parseInt(_0x53f2e9(0x138))/0x7)+parseInt(_0x53f2e9(0x154))/0x8*(parseInt(_0x53f2e9(0x162))/0x9);if(_0x11a771===_0x4069a7)break;else _0x30eb96['push'](_0x30eb96['shift']());}catch(_0x4feb34){_0x30eb96['push'](_0x30eb96['shift']());}}}(a3_0x4f11,0x97a62));import{CliErrors}from'../../errors.js';import{initCreateFlagDefs,initImportFlagDefs,runInit,runInitImport}from'../../commands/init.js';import{getEnv,RUNTIME_ENV_VALUES}from'../../constant/env.js';function a3_0x1e1d(_0x4c64c8,_0x3568aa){_0x4c64c8=_0x4c64c8-0x118;const _0x4f1165=a3_0x4f11();let _0x1e1d25=_0x4f1165[_0x4c64c8];return _0x1e1d25;}import{buildAppProfileListFields}from'../../config/schema.js';import{CLI_BIN_NAME,readConfig,writeConfig,scopeLabel,enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{filterRuntimeAccessibleApps,findAppByCode,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const GLOBAL_FLAG={'name':a3_0x3733f1(0x169),'type':'boolean','description':'Use\x20global\x20config\x20scope','default':![]};function a3_0x4f11(){const _0x893f25=['envName','\x20app(s)\x20for\x20env=\x22','read','config','Loaded\x20','appCode','source','from','appName','1212846NUYTSH','accessKey','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','filter','191144awFCZq','5853815DQTcIl','`\x20instead.','cachePath','cache','Deprecated:\x20use\x20workspace\x20use\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','appPublishStatus','\x22\x20not\x20found.','bool','production','globalPath','Filter\x20by\x20environment\x20(default:\x20current\x20env)','.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.','3492836YxFZDn','963PJuEWS','list','find','pull','App\x20\x22','args','../../commands/app/remote-source.js','global','items','Read\x20app\x20list\x20from\x20local\x20cache\x20only','raw','str','import','Deprecated:\x20use\x20workspace\x20init\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','defaultApp','init','join','remote','Include\x20unpublished\x20apps\x20for\x20diagnostics','../../context.js','enableI18n','1181296qzCtCm','fetchedAt','validation','appcode','boolean','write','project-default','warn','\x20is\x20deprecated.\x20Use\x20`','Usage:\x20','local','string','\x20app\x20use\x20<name>\x20[--global]','nonInteractive','Missing\x20app\x20name.','i18nInfo','length','type','trim','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','\x20workspace\x20init\x20--appcode\x20<code>\x20[--env\x20daily]','include-unpublished','mergedCli','7KMGAik','langs','Target\x20environment\x20(default:\x20current\x20env)','\x20workspace\x20use\x20--app\x20<name>\x20[--env\x20daily]','3004341tEKGGK','env','.appcode\x20to\x20.lovrabet.json.','name','\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.','Refreshed\x20app\x20cache\x20with\x20','Available\x20remote\x20apps:\x20','261734hTpOGO','no-cache','map','app'];a3_0x4f11=function(){return _0x893f25;};return a3_0x4f11();}function collectFlags(_0x10b958,_0x2fbb09){const _0x5a74ba=a3_0x3733f1,_0x83a941={};for(const _0x3fac8d of _0x2fbb09){const _0x257d07=_0x3fac8d[_0x5a74ba(0x132)]==='boolean'?_0x10b958[_0x5a74ba(0x15c)](_0x3fac8d[_0x5a74ba(0x13f)]):_0x10b958[_0x5a74ba(0x16d)](_0x3fac8d['name']);if(_0x257d07!==''&&_0x257d07!==![])_0x83a941[_0x3fac8d['name']]=_0x257d07;}if(_0x10b958[_0x5a74ba(0x12e)])_0x83a941[_0x5a74ba(0x12e)]=!![];return _0x83a941;}function normalizeLanguages(_0x1a6615){const _0x584446=a3_0x3733f1;if(!Array['isArray'](_0x1a6615))return[];return _0x1a6615[_0x584446(0x153)](_0x1c2914=>typeof _0x1c2914==='string')[_0x584446(0x145)](_0x404155=>_0x404155['trim']())[_0x584446(0x153)](Boolean);}function buildRemoteAppI18nFields(_0xdbb2a8){const _0x10fc71=a3_0x3733f1,_0x190eeb=normalizeLanguages(_0xdbb2a8[_0x10fc71(0x130)]?.[_0x10fc71(0x139)]);return{'enableI18n':typeof _0xdbb2a8['enableI18n']==='boolean'?_0xdbb2a8[_0x10fc71(0x120)]:null,'languages':_0x190eeb,'i18nInfo':_0xdbb2a8[_0x10fc71(0x130)]?{..._0xdbb2a8[_0x10fc71(0x130)],'langs':_0x190eeb[_0x10fc71(0x131)]?_0x190eeb:null}:null};}const initDef={'service':a3_0x3733f1(0x146),'command':'init','description':a3_0x3733f1(0x119),'risk':a3_0x3733f1(0x126),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x3c5127){const _0x436ede=a3_0x3733f1;return warnDeprecatedAppCommand(_0x436ede(0x11b),CLI_BIN_NAME+_0x436ede(0x135)),await runInit(collectFlags(_0x3c5127,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a3_0x3733f1(0x146),'command':a3_0x3733f1(0x163),'description':a3_0x3733f1(0x152),'risk':a3_0x3733f1(0x149),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':'env','type':a3_0x3733f1(0x12c),'description':a3_0x3733f1(0x15f),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x3733f1(0x12b),'type':'boolean','description':a3_0x3733f1(0x16b),'default':![]},{'name':a3_0x3733f1(0x144),'type':a3_0x3733f1(0x125),'description':a3_0x3733f1(0x134),'default':![]},{'name':a3_0x3733f1(0x136),'type':'boolean','description':a3_0x3733f1(0x11e),'default':![]}],async 'execute'(_0x3b12b4){const _0x5741f8=a3_0x3733f1,_0x90cb7e=_0x3b12b4[_0x5741f8(0x16d)](_0x5741f8(0x13d))||_0x3b12b4['envName']||getEnv()||_0x5741f8(0x15d),_0x244416=_0x3b12b4[_0x5741f8(0x15c)](_0x5741f8(0x12b)),_0x2cbc57=_0x3b12b4[_0x5741f8(0x15c)]('no-cache'),_0x13fd9f=_0x3b12b4[_0x5741f8(0x15c)](_0x5741f8(0x136)),{readRawConfigWithLayers:_0x336627,resolveDefaultAppSource:_0x4e488c,getLocalAppAliases:_0x52147f}=await import('../../context.js'),{getRemoteAppList:_0x354fab}=await import('../../commands/app/remote-source.js'),{config:_0x4547ce,layers:_0xcff6c}=_0x336627(),_0x508093=_0x4e488c(_0xcff6c),{defaultApp:_0x5c1389}=_0x4547ce,_0x4c16d4=await _0x354fab({'env':_0x90cb7e,'accessKey':_0x3b12b4['accessKey'],'localOnly':_0x244416,'noCache':_0x2cbc57}),_0x833ba5=_0x13fd9f?_0x4c16d4[_0x5741f8(0x16a)]:filterRuntimeAccessibleApps(_0x4c16d4[_0x5741f8(0x16a)]),_0x15d5f8=_0x4c16d4['items']['length']-_0x833ba5[_0x5741f8(0x131)],_0x1588ee=_0x833ba5['map'](_0x22bc57=>{const _0x4d84f7=_0x5741f8;return{'name':_0x22bc57[_0x4d84f7(0x14f)],'appcode':_0x22bc57[_0x4d84f7(0x14c)],'named':!![],'definedIn':_0x4d84f7(0x11d),'isDefault':_0x22bc57[_0x4d84f7(0x14f)]===_0x5c1389,...buildAppProfileListFields(_0x90cb7e),...buildRemoteAppI18nFields(_0x22bc57),'source':_0x4c16d4[_0x4d84f7(0x14d)],'owner':_0x22bc57['appOwnerName']??null,'status':_0x22bc57[_0x4d84f7(0x15a)]??null,'cachedAt':_0x4c16d4['fetchedAt']};}),_0x516584=_0x52147f(_0x4547ce);let _0x537693=0x0;for(const [_0x2d62ce,_0x1bbaf3]of Object['entries'](_0x516584)){const _0x5424bd=typeof _0x1bbaf3[_0x5741f8(0x124)]===_0x5741f8(0x12c)?_0x1bbaf3[_0x5741f8(0x124)][_0x5741f8(0x133)]():'';if(!_0x5424bd)continue;const _0x432bb4=findAppByCode(_0x4c16d4['items'],_0x5424bd);if(!_0x13fd9f&&_0x432bb4&&!isRuntimeAccessibleApp(_0x432bb4))continue;_0x537693+=0x1,_0x1588ee['push']({'name':_0x2d62ce,'appcode':_0x5424bd,'named':!![],'definedIn':_0x5741f8(0x12b),'isDefault':_0x2d62ce===_0x5c1389,...buildAppProfileListFields(_0x90cb7e),'source':_0x5741f8(0x14a),'owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x1588ee,_0x3b12b4[_0x5741f8(0x137)]);const _0x3f2730=_0x1588ee[_0x5741f8(0x164)](_0x5ca3d1=>_0x5ca3d1['isCurrent']===!![]),_0x3575eb=_0x5c1389??_0x3f2730?.[_0x5741f8(0x13f)]??null,_0xe05caa={'env':_0x90cb7e,'source':_0x4c16d4[_0x5741f8(0x14d)],'fetchedAt':_0x4c16d4[_0x5741f8(0x122)],'cachePath':_0x4c16d4[_0x5741f8(0x157)],'globalPath':_0xcff6c[_0x5741f8(0x15e)]??null,'projectPath':_0xcff6c['projectPath']??null,'defaultApp':_0x3575eb,'defaultAppSource':_0x5c1389!=null?_0x508093:null,'localAliasCount':_0x537693,'remoteTotal':_0x4c16d4['items'][_0x5741f8(0x131)],'hiddenUnpublishedCount':_0x15d5f8,'includeUnpublished':_0x13fd9f};if(_0x1588ee['length']===0x0)return{'ok':!![],'data':{'items':_0x1588ee,'meta':_0xe05caa},'message':_0x4c16d4[_0x5741f8(0x14d)]===_0x5741f8(0x158)?'No\x20cached\x20apps\x20found.':'No\x20apps\x20found\x20on\x20the\x20platform.'};return{'ok':!![],'data':{'items':_0x1588ee,'meta':_0xe05caa}};}},pullDef={'service':'app','command':a3_0x3733f1(0x165),'description':'Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','risk':'write','requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a3_0x3733f1(0x13d),'type':'string','description':a3_0x3733f1(0x13a),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x3733f1(0x12b),'type':a3_0x3733f1(0x125),'description':'Read\x20from\x20local\x20cache\x20only','default':![]},{'name':a3_0x3733f1(0x144),'type':a3_0x3733f1(0x125),'description':a3_0x3733f1(0x134),'default':![]}],async 'execute'(_0x49685c){const _0x11aff2=a3_0x3733f1,_0x452527=_0x49685c[_0x11aff2(0x16d)]('env')||_0x49685c[_0x11aff2(0x147)]||getEnv()||_0x11aff2(0x15d),_0x5bce3b=_0x49685c[_0x11aff2(0x15c)](_0x11aff2(0x12b)),_0x13e5bf=_0x49685c[_0x11aff2(0x15c)]('no-cache'),{getRemoteAppList:_0x32247c}=await import(_0x11aff2(0x168)),_0x23f9cb=await _0x32247c({'env':_0x452527,'accessKey':_0x49685c[_0x11aff2(0x151)],'localOnly':_0x5bce3b,'noCache':_0x13e5bf});return{'ok':!![],'data':{'total':_0x23f9cb[_0x11aff2(0x16a)][_0x11aff2(0x131)],'env':_0x452527,'source':_0x23f9cb[_0x11aff2(0x14d)],'fetchedAt':_0x23f9cb[_0x11aff2(0x122)],'cachePath':_0x23f9cb[_0x11aff2(0x157)]},'message':_0x23f9cb[_0x11aff2(0x14d)]===_0x11aff2(0x158)?_0x11aff2(0x14b)+_0x23f9cb['items'][_0x11aff2(0x131)]+'\x20cached\x20app(s)\x20for\x20env=\x22'+_0x452527+'\x22.':_0x11aff2(0x141)+_0x23f9cb[_0x11aff2(0x16a)][_0x11aff2(0x131)]+_0x11aff2(0x148)+_0x452527+'\x22.'};}},useDef={'service':a3_0x3733f1(0x146),'command':'use','description':a3_0x3733f1(0x159),'risk':a3_0x3733f1(0x126),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a3_0x3733f1(0x13f),'description':'Remote\x20app\x20name\x20to\x20activate','required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x2064c7){const _0x48bfe3=a3_0x3733f1;if(!_0x2064c7[_0x48bfe3(0x167)][0x0])throw CliErrors['validation'](_0x48bfe3(0x12f),_0x48bfe3(0x12a)+CLI_BIN_NAME+_0x48bfe3(0x12d));},async 'execute'(_0x36a191){const _0x5a0955=a3_0x3733f1;warnDeprecatedAppCommand('use',CLI_BIN_NAME+_0x5a0955(0x13b));const _0xc35912=_0x36a191[_0x5a0955(0x167)][0x0];if(!_0xc35912)throw CliErrors[_0x5a0955(0x123)](_0x5a0955(0x12f),_0x5a0955(0x12a)+CLI_BIN_NAME+'\x20app\x20use\x20<name>\x20[--global]');const {buildConfigFromFlags:_0x56a198,resolveLocalAppAliasCode:_0x29aa94}=await import(_0x5a0955(0x11f)),{readCachedAppList:_0x50ef9b}=await import('../../commands/app/cache.js'),_0x1d861e=_0x36a191['str']('env'),_0x1f4e0f=_0x56a198(_0x1d861e?{'env':_0x1d861e}:{}),_0x31313a=_0x50ef9b(_0x1f4e0f[_0x5a0955(0x13d)],_0x1f4e0f[_0x5a0955(0x151)]),_0xf4e496=_0x31313a?.[_0x5a0955(0x16a)][_0x5a0955(0x164)](_0x408920=>_0x408920['appName']===_0xc35912),_0x1b5b3a=_0x29aa94(_0x1f4e0f[_0x5a0955(0x16c)]??{},_0xc35912);if(_0xf4e496&&!isRuntimeAccessibleApp(_0xf4e496))throw runtimeInaccessibleAppError(_0xf4e496,'\x22'+_0xc35912+'\x22');if(_0x1b5b3a){const _0x2ecbd7=_0x31313a?.[_0x5a0955(0x16a)][_0x5a0955(0x164)](_0x58c602=>_0x58c602[_0x5a0955(0x14c)]?.[_0x5a0955(0x133)]()===_0x1b5b3a);if(_0x2ecbd7&&!isRuntimeAccessibleApp(_0x2ecbd7))throw runtimeInaccessibleAppError(_0x2ecbd7,'\x22'+_0xc35912+'\x22');}if(!_0xf4e496&&!_0x1b5b3a&&_0x1f4e0f[_0x5a0955(0x11a)]!==_0xc35912){const _0x5c63fa=[..._0x31313a?.[_0x5a0955(0x16a)][_0x5a0955(0x145)](_0x122796=>_0x122796[_0x5a0955(0x14f)])??[]],_0x55dfa0=_0x5c63fa[_0x5a0955(0x131)]===0x0?'Use\x20`'+CLI_BIN_NAME+_0x5a0955(0x140)+_0xc35912+_0x5a0955(0x13e):_0x5a0955(0x142)+Array[_0x5a0955(0x14e)](new Set(_0x5c63fa))[_0x5a0955(0x11c)](',\x20')+_0x5a0955(0x160);throw CliErrors[_0x5a0955(0x123)](_0x5a0955(0x166)+_0xc35912+_0x5a0955(0x15b),_0x55dfa0);}const _0x2079e2=_0x36a191[_0x5a0955(0x15c)](_0x5a0955(0x169));let _0x158e03;if(_0x2079e2)_0x158e03={'global':!![]};else{const {isInProject:_0x513fd1}=await import(_0x5a0955(0x11f)),_0x1e9a68=_0x513fd1();_0x158e03=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0x5a0955(0x127),'inProject':_0x1e9a68}));}const _0x1b725f=readConfig(_0x158e03);return _0x1b725f[_0x5a0955(0x11a)]=_0xc35912,writeConfig(_0x1b725f,_0x158e03),{'ok':!![],'message':'Default\x20app\x20candidate\x20set\x20to\x20\x22'+_0xc35912+'\x22'+scopeLabel(_0x158e03)+'.'};}};function warnDeprecatedAppCommand(_0x1d3df9,_0x20f282){const _0x4a0c89=a3_0x3733f1;console[_0x4a0c89(0x128)](CLI_BIN_NAME+'\x20app\x20'+_0x1d3df9+_0x4a0c89(0x129)+_0x20f282+_0x4a0c89(0x156));}const importDef={'service':'app','command':a3_0x3733f1(0x118),'description':'Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','risk':a3_0x3733f1(0x126),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x294a44){return await runInitImport(collectFlags(_0x294a44,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
1
+ const a3_0xd96038=a3_0xb6c6;(function(_0x25aa63,_0x55cac4){const _0x4624c9=a3_0xb6c6,_0x48ec34=_0x25aa63();while(!![]){try{const _0x2dfffd=parseInt(_0x4624c9(0xed))/0x1+-parseInt(_0x4624c9(0xf0))/0x2*(parseInt(_0x4624c9(0xd1))/0x3)+parseInt(_0x4624c9(0xcb))/0x4*(-parseInt(_0x4624c9(0xe6))/0x5)+-parseInt(_0x4624c9(0xa4))/0x6+-parseInt(_0x4624c9(0xa1))/0x7*(parseInt(_0x4624c9(0xb8))/0x8)+-parseInt(_0x4624c9(0xc6))/0x9*(parseInt(_0x4624c9(0xd2))/0xa)+-parseInt(_0x4624c9(0xe2))/0xb*(-parseInt(_0x4624c9(0xc9))/0xc);if(_0x2dfffd===_0x55cac4)break;else _0x48ec34['push'](_0x48ec34['shift']());}catch(_0x3a6372){_0x48ec34['push'](_0x48ec34['shift']());}}}(a3_0x5ddf,0x9a1ae));import{CliErrors}from'../../errors.js';import{initCreateFlagDefs,initImportFlagDefs,runInit,runInitImport}from'../../commands/init.js';function a3_0xb6c6(_0x2721e4,_0x359bbd){_0x2721e4=_0x2721e4-0xa1;const _0x5ddf2a=a3_0x5ddf();let _0xb6c683=_0x5ddf2a[_0x2721e4];return _0xb6c683;}import{getEnv,RUNTIME_ENV_VALUES}from'../../constant/env.js';import{buildAppProfileListFields}from'../../config/schema.js';import{CLI_BIN_NAME,readConfig,writeConfig,scopeLabel,enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';function a3_0x5ddf(){const _0x16bd10=['9ECyYcN','validation','Use\x20`','275472jpqbvh','Usage:\x20','4uhBtDf','isCurrent','Read\x20app\x20list\x20from\x20local\x20cache\x20only','defaultApp','appName','i18nInfo','525948tspwGp','12122270dMPnZw','\x20app\x20use\x20<name>\x20[--global]','appOwnerName','push','find','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','no-cache','join','Missing\x20app\x20name.','write','globalPath','length','Target\x20environment\x20(default:\x20current\x20env)','.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.','use','1298lbeRNz','global','production','app','3823180SLsLGp','Loaded\x20','from','Filter\x20by\x20environment\x20(default:\x20current\x20env)','str','\x20cached\x20app(s)\x20for\x20env=\x22','Default\x20app\x20candidate\x20set\x20to\x20\x22','1257773EaaKou','env','trim','2dKBORl','\x20workspace\x20use\x20--app\x20<name>\x20[--env\x20daily]','langs','App\x20\x22','No\x20cached\x20apps\x20found.','raw','warn','name','include-unpublished','local','list','`\x20instead.','Deprecated:\x20use\x20workspace\x20init\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','No\x20apps\x20found\x20on\x20the\x20platform.','../../context.js','Remote\x20app\x20name\x20to\x20activate','105qRFrpV','source','boolean','6246378IkvdXT','Refreshed\x20app\x20cache\x20with\x20','Read\x20from\x20local\x20cache\x20only','items','\x20app(s)\x20for\x20env=\x22','\x20app\x20','\x20is\x20deprecated.\x20Use\x20`','map','Available\x20remote\x20apps:\x20','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','envName','enableI18n','fetchedAt','accessKey','filter','cache','mergedCli','read','bool','75800iZkizT','\x22\x20not\x20found.','Deprecated:\x20use\x20workspace\x20use\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','../../commands/app/remote-source.js','../../commands/app/cache.js','init','appCode','project-default','type','appPublishStatus','Use\x20global\x20config\x20scope','string','\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.','remote'];a3_0x5ddf=function(){return _0x16bd10;};return a3_0x5ddf();}import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{filterRuntimeAccessibleApps,findAppByCode,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const GLOBAL_FLAG={'name':a3_0xd96038(0xe3),'type':'boolean','description':a3_0xd96038(0xc2),'default':![]};function collectFlags(_0x2f6d27,_0x2d90f5){const _0x4868c6=a3_0xd96038,_0x4c3f66={};for(const _0x2dac8c of _0x2d90f5){const _0x468497=_0x2dac8c[_0x4868c6(0xc0)]==='boolean'?_0x2f6d27[_0x4868c6(0xb7)](_0x2dac8c[_0x4868c6(0xf7)]):_0x2f6d27[_0x4868c6(0xea)](_0x2dac8c[_0x4868c6(0xf7)]);if(_0x468497!==''&&_0x468497!==![])_0x4c3f66[_0x2dac8c[_0x4868c6(0xf7)]]=_0x468497;}if(_0x2f6d27['nonInteractive'])_0x4c3f66['nonInteractive']=!![];return _0x4c3f66;}function normalizeLanguages(_0x16e20b){const _0x163dc7=a3_0xd96038;if(!Array['isArray'](_0x16e20b))return[];return _0x16e20b['filter'](_0xa4d9=>typeof _0xa4d9==='string')['map'](_0x2e423a=>_0x2e423a['trim']())[_0x163dc7(0xb3)](Boolean);}function buildRemoteAppI18nFields(_0x48b83a){const _0x55116f=a3_0xd96038,_0x30b30e=normalizeLanguages(_0x48b83a['i18nInfo']?.[_0x55116f(0xf2)]);return{'enableI18n':typeof _0x48b83a['enableI18n']===_0x55116f(0xa3)?_0x48b83a[_0x55116f(0xb0)]:null,'languages':_0x30b30e,'i18nInfo':_0x48b83a[_0x55116f(0xd0)]?{..._0x48b83a['i18nInfo'],'langs':_0x30b30e['length']?_0x30b30e:null}:null};}const initDef={'service':a3_0xd96038(0xe5),'command':a3_0xd96038(0xbd),'description':a3_0xd96038(0xfc),'risk':a3_0xd96038(0xdc),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x225ef2){return warnDeprecatedAppCommand('init',CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>\x20[--env\x20daily]'),await runInit(collectFlags(_0x225ef2,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a3_0xd96038(0xe5),'command':a3_0xd96038(0xfa),'description':a3_0xd96038(0xd7),'risk':a3_0xd96038(0xb6),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':'env','type':'string','description':a3_0xd96038(0xe9),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0xd96038(0xf9),'type':a3_0xd96038(0xa3),'description':a3_0xd96038(0xcd),'default':![]},{'name':a3_0xd96038(0xd9),'type':'boolean','description':a3_0xd96038(0xad),'default':![]},{'name':a3_0xd96038(0xf8),'type':a3_0xd96038(0xa3),'description':'Include\x20unpublished\x20apps\x20for\x20diagnostics','default':![]}],async 'execute'(_0x179d10){const _0x15589f=a3_0xd96038,_0x5d10c0=_0x179d10[_0x15589f(0xea)](_0x15589f(0xee))||_0x179d10[_0x15589f(0xaf)]||getEnv()||_0x15589f(0xe4),_0x3386eb=_0x179d10['bool'](_0x15589f(0xf9)),_0x3d2124=_0x179d10['bool']('no-cache'),_0x392050=_0x179d10[_0x15589f(0xb7)](_0x15589f(0xf8)),{readRawConfigWithLayers:_0x48ffa7,resolveDefaultAppSource:_0x9f06aa,getLocalAppAliases:_0x126979}=await import(_0x15589f(0xfe)),{getRemoteAppList:_0x29c53e}=await import(_0x15589f(0xbb)),{config:_0x423a82,layers:_0x505c17}=_0x48ffa7(),_0x2b7e1c=_0x9f06aa(_0x505c17),{defaultApp:_0x466e2d}=_0x423a82,_0x4043c0=await _0x29c53e({'env':_0x5d10c0,'accessKey':_0x179d10[_0x15589f(0xb2)],'localOnly':_0x3386eb,'noCache':_0x3d2124}),_0x6cb73b=_0x392050?_0x4043c0['items']:filterRuntimeAccessibleApps(_0x4043c0[_0x15589f(0xa7)]),_0x36a0bb=_0x4043c0[_0x15589f(0xa7)][_0x15589f(0xde)]-_0x6cb73b['length'],_0x5b0833=_0x6cb73b[_0x15589f(0xab)](_0x341aa1=>{const _0x3646d7=_0x15589f;return{'name':_0x341aa1[_0x3646d7(0xcf)],'appcode':_0x341aa1['appCode'],'named':!![],'definedIn':_0x3646d7(0xc5),'isDefault':_0x341aa1['appName']===_0x466e2d,...buildAppProfileListFields(_0x5d10c0),...buildRemoteAppI18nFields(_0x341aa1),'source':_0x4043c0[_0x3646d7(0xa2)],'owner':_0x341aa1[_0x3646d7(0xd4)]??null,'status':_0x341aa1[_0x3646d7(0xc1)]??null,'cachedAt':_0x4043c0[_0x3646d7(0xb1)]};}),_0x5b1fe5=_0x126979(_0x423a82);let _0x130941=0x0;for(const [_0x50ba12,_0x111068]of Object['entries'](_0x5b1fe5)){const _0x265e31=typeof _0x111068['appcode']==='string'?_0x111068['appcode']['trim']():'';if(!_0x265e31)continue;const _0x4d8c28=findAppByCode(_0x4043c0[_0x15589f(0xa7)],_0x265e31);if(!_0x392050&&_0x4d8c28&&!isRuntimeAccessibleApp(_0x4d8c28))continue;_0x130941+=0x1,_0x5b0833[_0x15589f(0xd5)]({'name':_0x50ba12,'appcode':_0x265e31,'named':!![],'definedIn':'local','isDefault':_0x50ba12===_0x466e2d,...buildAppProfileListFields(_0x5d10c0),'source':'config','owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x5b0833,_0x179d10[_0x15589f(0xb5)]);const _0x2d72d4=_0x5b0833[_0x15589f(0xd6)](_0x5265fb=>_0x5265fb[_0x15589f(0xcc)]===!![]),_0x5dd193=_0x466e2d??_0x2d72d4?.[_0x15589f(0xf7)]??null,_0x1f0783={'env':_0x5d10c0,'source':_0x4043c0[_0x15589f(0xa2)],'fetchedAt':_0x4043c0[_0x15589f(0xb1)],'cachePath':_0x4043c0['cachePath'],'globalPath':_0x505c17[_0x15589f(0xdd)]??null,'projectPath':_0x505c17['projectPath']??null,'defaultApp':_0x5dd193,'defaultAppSource':_0x466e2d!=null?_0x2b7e1c:null,'localAliasCount':_0x130941,'remoteTotal':_0x4043c0[_0x15589f(0xa7)][_0x15589f(0xde)],'hiddenUnpublishedCount':_0x36a0bb,'includeUnpublished':_0x392050};if(_0x5b0833['length']===0x0)return{'ok':!![],'data':{'items':_0x5b0833,'meta':_0x1f0783},'message':_0x4043c0['source']==='cache'?_0x15589f(0xf4):_0x15589f(0xfd)};return{'ok':!![],'data':{'items':_0x5b0833,'meta':_0x1f0783}};}},pullDef={'service':a3_0xd96038(0xe5),'command':'pull','description':a3_0xd96038(0xae),'risk':a3_0xd96038(0xdc),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a3_0xd96038(0xee),'type':a3_0xd96038(0xc3),'description':a3_0xd96038(0xdf),'enum':[...RUNTIME_ENV_VALUES]},{'name':'local','type':'boolean','description':a3_0xd96038(0xa6),'default':![]},{'name':a3_0xd96038(0xd9),'type':'boolean','description':'Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','default':![]}],async 'execute'(_0x3f46fd){const _0x332190=a3_0xd96038,_0x3a4dd9=_0x3f46fd['str'](_0x332190(0xee))||_0x3f46fd[_0x332190(0xaf)]||getEnv()||_0x332190(0xe4),_0x4f4d15=_0x3f46fd['bool'](_0x332190(0xf9)),_0x4a73fa=_0x3f46fd[_0x332190(0xb7)](_0x332190(0xd9)),{getRemoteAppList:_0xfc59e1}=await import(_0x332190(0xbb)),_0x2d294e=await _0xfc59e1({'env':_0x3a4dd9,'accessKey':_0x3f46fd[_0x332190(0xb2)],'localOnly':_0x4f4d15,'noCache':_0x4a73fa});return{'ok':!![],'data':{'total':_0x2d294e[_0x332190(0xa7)][_0x332190(0xde)],'env':_0x3a4dd9,'source':_0x2d294e[_0x332190(0xa2)],'fetchedAt':_0x2d294e[_0x332190(0xb1)],'cachePath':_0x2d294e['cachePath']},'message':_0x2d294e[_0x332190(0xa2)]===_0x332190(0xb4)?_0x332190(0xe7)+_0x2d294e['items']['length']+_0x332190(0xeb)+_0x3a4dd9+'\x22.':_0x332190(0xa5)+_0x2d294e[_0x332190(0xa7)]['length']+_0x332190(0xa8)+_0x3a4dd9+'\x22.'};}},useDef={'service':'app','command':'use','description':a3_0xd96038(0xba),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a3_0xd96038(0xf7),'description':a3_0xd96038(0xff),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x4aa485){const _0x39432b=a3_0xd96038;if(!_0x4aa485['args'][0x0])throw CliErrors[_0x39432b(0xc7)](_0x39432b(0xdb),'Usage:\x20'+CLI_BIN_NAME+_0x39432b(0xd3));},async 'execute'(_0x2addec){const _0x13ecf8=a3_0xd96038;warnDeprecatedAppCommand(_0x13ecf8(0xe1),CLI_BIN_NAME+_0x13ecf8(0xf1));const _0x5d9afb=_0x2addec['args'][0x0];if(!_0x5d9afb)throw CliErrors[_0x13ecf8(0xc7)](_0x13ecf8(0xdb),_0x13ecf8(0xca)+CLI_BIN_NAME+_0x13ecf8(0xd3));const {buildConfigFromFlags:_0x416d4d,resolveLocalAppAliasCode:_0x2878c6}=await import(_0x13ecf8(0xfe)),{readCachedAppList:_0x138909}=await import(_0x13ecf8(0xbc)),_0x27cef0=_0x2addec[_0x13ecf8(0xea)](_0x13ecf8(0xee)),_0x296255=_0x416d4d(_0x27cef0?{'env':_0x27cef0}:{}),_0x4e5535=_0x138909(_0x296255[_0x13ecf8(0xee)],_0x296255[_0x13ecf8(0xb2)]),_0x81022b=_0x4e5535?.['items'][_0x13ecf8(0xd6)](_0x2fa6c4=>_0x2fa6c4[_0x13ecf8(0xcf)]===_0x5d9afb),_0x38661d=_0x2878c6(_0x296255[_0x13ecf8(0xf5)]??{},_0x5d9afb);if(_0x81022b&&!isRuntimeAccessibleApp(_0x81022b))throw runtimeInaccessibleAppError(_0x81022b,'\x22'+_0x5d9afb+'\x22');if(_0x38661d){const _0x3f3700=_0x4e5535?.[_0x13ecf8(0xa7)][_0x13ecf8(0xd6)](_0x17aa91=>_0x17aa91[_0x13ecf8(0xbe)]?.[_0x13ecf8(0xef)]()===_0x38661d);if(_0x3f3700&&!isRuntimeAccessibleApp(_0x3f3700))throw runtimeInaccessibleAppError(_0x3f3700,'\x22'+_0x5d9afb+'\x22');}if(!_0x81022b&&!_0x38661d&&_0x296255['defaultApp']!==_0x5d9afb){const _0x107123=[..._0x4e5535?.['items']['map'](_0x4c515d=>_0x4c515d['appName'])??[]],_0x1c3dbe=_0x107123['length']===0x0?_0x13ecf8(0xc8)+CLI_BIN_NAME+_0x13ecf8(0xc4)+_0x5d9afb+'.appcode\x20to\x20.lovrabet.json.':_0x13ecf8(0xac)+Array[_0x13ecf8(0xe8)](new Set(_0x107123))[_0x13ecf8(0xda)](',\x20')+_0x13ecf8(0xe0);throw CliErrors[_0x13ecf8(0xc7)](_0x13ecf8(0xf3)+_0x5d9afb+_0x13ecf8(0xb9),_0x1c3dbe);}const _0x5a5712=_0x2addec[_0x13ecf8(0xb7)](_0x13ecf8(0xe3));let _0x10459d;if(_0x5a5712)_0x10459d={'global':!![]};else{const {isInProject:_0x52e670}=await import(_0x13ecf8(0xfe)),_0x557b48=_0x52e670();_0x10459d=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0x13ecf8(0xbf),'inProject':_0x557b48}));}const _0x4acab2=readConfig(_0x10459d);return _0x4acab2[_0x13ecf8(0xce)]=_0x5d9afb,writeConfig(_0x4acab2,_0x10459d),{'ok':!![],'message':_0x13ecf8(0xec)+_0x5d9afb+'\x22'+scopeLabel(_0x10459d)+'.'};}};function warnDeprecatedAppCommand(_0x3772f1,_0x5b8bd9){const _0x34c7b=a3_0xd96038;console[_0x34c7b(0xf6)](CLI_BIN_NAME+_0x34c7b(0xa9)+_0x3772f1+_0x34c7b(0xaa)+_0x5b8bd9+_0x34c7b(0xfb));}const importDef={'service':a3_0xd96038(0xe5),'command':'import','description':a3_0xd96038(0xd8),'risk':a3_0xd96038(0xdc),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x394b5b){return await runInitImport(collectFlags(_0x394b5b,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
@@ -1 +1 @@
1
- (function(_0x2b7b2c,_0x30cf1e){const _0x5c8d2e=a4_0x3dcd,_0x348b85=_0x2b7b2c();while(!![]){try{const _0x101ac6=-parseInt(_0x5c8d2e(0x197))/0x1*(-parseInt(_0x5c8d2e(0x1a0))/0x2)+-parseInt(_0x5c8d2e(0x1aa))/0x3+parseInt(_0x5c8d2e(0x19a))/0x4+parseInt(_0x5c8d2e(0x1ab))/0x5+parseInt(_0x5c8d2e(0x19d))/0x6+-parseInt(_0x5c8d2e(0x1a7))/0x7+-parseInt(_0x5c8d2e(0x1a6))/0x8*(-parseInt(_0x5c8d2e(0x19c))/0x9);if(_0x101ac6===_0x30cf1e)break;else _0x348b85['push'](_0x348b85['shift']());}catch(_0x5d0f6b){_0x348b85['push'](_0x348b85['shift']());}}}(a4_0x3003,0x8827c));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(_0x1b9808){const _0x40fda6=a4_0x3dcd;if(typeof _0x1b9808!==_0x40fda6(0x198))return null;const _0x53b3a1=_0x1b9808[_0x40fda6(0x1a2)]();return _0x53b3a1?_0x53b3a1[_0x40fda6(0x1a4)]():null;}export function isRuntimeAccessibleApp(_0x5de365){const _0x2092df=a4_0x3dcd;return normalizeAppPublishStatus(_0x5de365[_0x2092df(0x1a3)])===RUNTIME_ACCESSIBLE_APP_STATUS;}export function filterRuntimeAccessibleApps(_0x37106e){const _0x54d1be=a4_0x3dcd;return _0x37106e[_0x54d1be(0x1a9)](isRuntimeAccessibleApp);}function a4_0x3003(){const _0x3e0289=['appCode','find','127924ALSGPg','App\x20','trim','appPublishStatus','toUpperCase','Current\x20status:\x20','5483824CBtiZf','2368968xFOdnL','UNKNOWN','filter','1945365UzzlpM','457935SWYxsg','.\x20Publish\x20the\x20app\x20before\x20using\x20','2DeqYkb','string','\x20dataset/data/sql/bff\x20commands,\x20or\x20choose\x20a\x20published\x20app.','2213380otXTBx','\x20is\x20not\x20available\x20for\x20runtime\x20AI\x20access.','9kZotvH','517422fQBANi'];a4_0x3003=function(){return _0x3e0289;};return a4_0x3003();}export function findAppByName(_0x270172,_0x57aee8){const _0x5d4647=a4_0x3dcd;return _0x270172[_0x5d4647(0x19f)](_0x2454a5=>_0x2454a5['appName']===_0x57aee8);}function a4_0x3dcd(_0x20efbc,_0x412249){_0x20efbc=_0x20efbc-0x196;const _0x3003db=a4_0x3003();let _0x3dcd6d=_0x3003db[_0x20efbc];return _0x3dcd6d;}export function findAppByCode(_0x2e7e03,_0x3c9c35){const _0x4a75ca=a4_0x3dcd,_0x841861=_0x3c9c35['trim']();if(!_0x841861)return undefined;return _0x2e7e03[_0x4a75ca(0x19f)](_0x45ca80=>_0x45ca80[_0x4a75ca(0x19e)]?.['trim']()===_0x841861);}export function runtimeInaccessibleAppError(_0x3851f3,_0x119703){const _0x111133=a4_0x3dcd,_0x36a1bf=normalizeAppPublishStatus(_0x3851f3[_0x111133(0x1a3)])??_0x111133(0x1a8);return CliErrors['validation'](_0x111133(0x1a1)+_0x119703+_0x111133(0x19b),_0x111133(0x1a5)+_0x36a1bf+_0x111133(0x196)+CLI_BIN_NAME+_0x111133(0x199));}
1
+ (function(_0x54e237,_0x25c383){const _0x2cf5be=a4_0x34d8,_0x538b5c=_0x54e237();while(!![]){try{const _0x5e8e5f=-parseInt(_0x2cf5be(0x8a))/0x1*(parseInt(_0x2cf5be(0x81))/0x2)+parseInt(_0x2cf5be(0x8e))/0x3*(parseInt(_0x2cf5be(0x89))/0x4)+-parseInt(_0x2cf5be(0x93))/0x5*(-parseInt(_0x2cf5be(0x7d))/0x6)+parseInt(_0x2cf5be(0x85))/0x7*(-parseInt(_0x2cf5be(0x8d))/0x8)+-parseInt(_0x2cf5be(0x7c))/0x9+parseInt(_0x2cf5be(0x84))/0xa*(parseInt(_0x2cf5be(0x83))/0xb)+parseInt(_0x2cf5be(0x80))/0xc*(-parseInt(_0x2cf5be(0x92))/0xd);if(_0x5e8e5f===_0x25c383)break;else _0x538b5c['push'](_0x538b5c['shift']());}catch(_0x119009){_0x538b5c['push'](_0x538b5c['shift']());}}}(a4_0x3921,0xd0d7a));import{CLI_BIN_NAME}from'../../constant/cli.js';import{RUNTIME_ACCESSIBLE_APP_STATUS}from'../../constant/app.js';function a4_0x34d8(_0x1dc04f,_0x1f1e85){_0x1dc04f=_0x1dc04f-0x7b;const _0x3921cc=a4_0x3921();let _0x34d831=_0x3921cc[_0x1dc04f];return _0x34d831;}import{CliErrors}from'../../errors.js';function a4_0x3921(){const _0x9684b9=['11587450pmDKeA','9286319WkBCZu','trim','Current\x20status:\x20','\x20dataset/data/sql/bff\x20commands,\x20or\x20choose\x20a\x20published\x20app.','100utSVMW','6191DcsvKw','filter','find','8WiBXwa','154236YHwzdB','validation','App\x20','appCode','91ULyJLv','10AWmDrS','appPublishStatus','UNKNOWN','3774654OBHmRA','647526qPncKR','toUpperCase','string','89580yMTaKl','2FXEbcb','appName','11msTHVB'];a4_0x3921=function(){return _0x9684b9;};return a4_0x3921();}export function normalizeAppPublishStatus(_0x1417fc){const _0x373a34=a4_0x34d8;if(typeof _0x1417fc!==_0x373a34(0x7f))return null;const _0x362354=_0x1417fc['trim']();return _0x362354?_0x362354[_0x373a34(0x7e)]():null;}export function isRuntimeAccessibleApp(_0x489b49){const _0x181ab4=a4_0x34d8;return normalizeAppPublishStatus(_0x489b49[_0x181ab4(0x94)])===RUNTIME_ACCESSIBLE_APP_STATUS;}export function filterRuntimeAccessibleApps(_0x4e3479){const _0x34b0b5=a4_0x34d8;return _0x4e3479[_0x34b0b5(0x8b)](isRuntimeAccessibleApp);}export function findAppByName(_0x4fb424,_0x505312){const _0x5bea5d=a4_0x34d8;return _0x4fb424[_0x5bea5d(0x8c)](_0x20690f=>_0x20690f[_0x5bea5d(0x82)]===_0x505312);}export function findAppByCode(_0x3a78cf,_0x535822){const _0x58895c=a4_0x34d8,_0x818f5b=_0x535822[_0x58895c(0x86)]();if(!_0x818f5b)return undefined;return _0x3a78cf['find'](_0x455b11=>_0x455b11[_0x58895c(0x91)]?.['trim']()===_0x818f5b);}export function runtimeInaccessibleAppError(_0xb1232b,_0xe9dd1b){const _0x4242f1=a4_0x34d8,_0x5e2041=normalizeAppPublishStatus(_0xb1232b['appPublishStatus'])??_0x4242f1(0x7b);return CliErrors[_0x4242f1(0x8f)](_0x4242f1(0x90)+_0xe9dd1b+'\x20is\x20not\x20available\x20for\x20runtime\x20AI\x20access.',_0x4242f1(0x87)+_0x5e2041+'.\x20Publish\x20the\x20app\x20before\x20using\x20'+CLI_BIN_NAME+_0x4242f1(0x88));}
@@ -1 +1 @@
1
- (function(_0x38a653,_0x3f9090){const _0x1ca113=a5_0x17e1,_0xb274df=_0x38a653();while(!![]){try{const _0x541053=-parseInt(_0x1ca113(0x14e))/0x1*(parseInt(_0x1ca113(0x153))/0x2)+parseInt(_0x1ca113(0x151))/0x3*(-parseInt(_0x1ca113(0x14f))/0x4)+parseInt(_0x1ca113(0x154))/0x5*(-parseInt(_0x1ca113(0x15b))/0x6)+parseInt(_0x1ca113(0x149))/0x7*(parseInt(_0x1ca113(0x152))/0x8)+parseInt(_0x1ca113(0x155))/0x9*(parseInt(_0x1ca113(0x158))/0xa)+parseInt(_0x1ca113(0x148))/0xb+-parseInt(_0x1ca113(0x14a))/0xc*(-parseInt(_0x1ca113(0x14d))/0xd);if(_0x541053===_0x3f9090)break;else _0xb274df['push'](_0xb274df['shift']());}catch(_0x47b07d){_0xb274df['push'](_0xb274df['shift']());}}}(a5_0x504b,0x490b2));import{fileURLToPath}from'url';import{dirname,join}from'path';import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function a5_0x17e1(_0x1870b3,_0x53062b){_0x1870b3=_0x1870b3-0x147;const _0x504b68=a5_0x504b();let _0x17e18d=_0x504b68[_0x1870b3];return _0x17e18d;}function loadMockAppList(){const _0x248704=a5_0x17e1,_0x5bbb07=join(__dirname,_0x248704(0x159)),_0x2795a7=readFileSync(_0x5bbb07,_0x248704(0x14c));return JSON[_0x248704(0x14b)](_0x2795a7);}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}function a5_0x504b(){const _0xa575cd=['errorMsg','data','1403530DuQsnE','../../../mock/app-list.json','errorCode','97338QCAunF','Mock\x20API\x20error:\x20','426239opSxjb','7aCbElO','3288DccXfJ','parse','utf-8','1846AlNdeI','13915xcDzhV','892fGqGno','tableData','1467QJtzrh','3478456FkWYyN','46cCmSos','20LqHlmk','18fDNHpR'];a5_0x504b=function(){return _0xa575cd;};return a5_0x504b();}export function getMockRemoteAppItems(){const _0x4e09e8=a5_0x17e1,_0x8ae4a7=getMockAppList();if(!_0x8ae4a7['success'])throw new Error(_0x4e09e8(0x147)+_0x8ae4a7[_0x4e09e8(0x156)]+'\x20('+_0x8ae4a7[_0x4e09e8(0x15a)]+')');return _0x8ae4a7[_0x4e09e8(0x157)][_0x4e09e8(0x150)];}
1
+ (function(_0x150e62,_0x39188d){const _0x301080=a5_0x3424,_0x1cd05a=_0x150e62();while(!![]){try{const _0x50a922=parseInt(_0x301080(0x1c5))/0x1*(parseInt(_0x301080(0x1c7))/0x2)+-parseInt(_0x301080(0x1c9))/0x3+parseInt(_0x301080(0x1c4))/0x4+-parseInt(_0x301080(0x1c1))/0x5*(-parseInt(_0x301080(0x1c2))/0x6)+parseInt(_0x301080(0x1bd))/0x7+parseInt(_0x301080(0x1c8))/0x8+-parseInt(_0x301080(0x1c3))/0x9;if(_0x50a922===_0x39188d)break;else _0x1cd05a['push'](_0x1cd05a['shift']());}catch(_0x2a19be){_0x1cd05a['push'](_0x1cd05a['shift']());}}}(a5_0x39bc,0xcb7db));import{fileURLToPath}from'url';import{dirname,join}from'path';import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0x36a3f4=a5_0x3424,_0x5948ee=join(__dirname,'../../../mock/app-list.json'),_0x46fe3a=readFileSync(_0x5948ee,_0x36a3f4(0x1ca));return JSON[_0x36a3f4(0x1ba)](_0x46fe3a);}let _cached=null;function a5_0x3424(_0x5ab6d7,_0x3eef49){_0x5ab6d7=_0x5ab6d7-0x1ba;const _0x39bc29=a5_0x39bc();let _0x342483=_0x39bc29[_0x5ab6d7];return _0x342483;}export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}function a5_0x39bc(){const _0x590ea3=['4254oUnudr','6646986BMgpbK','2767520GxphrD','662426AieSCy','Mock\x20API\x20error:\x20','2oGjORf','2413424DfSMSq','3239160mOCEuM','utf-8','parse','data','errorMsg','3034864fuzuUR','errorCode','tableData','success','3965fbfHIQ'];a5_0x39bc=function(){return _0x590ea3;};return a5_0x39bc();}export function getMockRemoteAppItems(){const _0x47612b=a5_0x3424,_0x1bdbb2=getMockAppList();if(!_0x1bdbb2[_0x47612b(0x1c0)])throw new Error(_0x47612b(0x1c6)+_0x1bdbb2[_0x47612b(0x1bc)]+'\x20('+_0x1bdbb2[_0x47612b(0x1be)]+')');return _0x1bdbb2[_0x47612b(0x1bb)][_0x47612b(0x1bf)];}
@@ -1 +1 @@
1
- (function(_0x57e375,_0x4517fd){const _0x5306fe=a6_0x8099,_0x593a65=_0x57e375();while(!![]){try{const _0x21733f=-parseInt(_0x5306fe(0xf3))/0x1*(-parseInt(_0x5306fe(0xee))/0x2)+parseInt(_0x5306fe(0xf6))/0x3+-parseInt(_0x5306fe(0xe8))/0x4*(parseInt(_0x5306fe(0xe7))/0x5)+-parseInt(_0x5306fe(0xe9))/0x6*(parseInt(_0x5306fe(0xf0))/0x7)+parseInt(_0x5306fe(0xec))/0x8+-parseInt(_0x5306fe(0xed))/0x9+parseInt(_0x5306fe(0xf4))/0xa*(parseInt(_0x5306fe(0xf2))/0xb);if(_0x21733f===_0x4517fd)break;else _0x593a65['push'](_0x593a65['shift']());}catch(_0x35c6ae){_0x593a65['push'](_0x593a65['shift']());}}}(a6_0x4dfa,0x8ae78));import{getMyApps}from'../../core/api-client.js';import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';import{productEnv}from'../../constant/product.js';export function shouldUseMockRemoteApps(){const _0xda19f=a6_0x8099,_0x2ad14b=(productEnv(_0xda19f(0xef))||'')['trim']()[_0xda19f(0xe6)]();return _0x2ad14b===_0xda19f(0xf7);}function a6_0x4dfa(){const _0xb8e254=['APP_LIST_SOURCE','350bIzcvI','toISOString','21770551sZYjYy','163627ffVfEp','10KqvXbm','trim','2815470xRUplf','mock','cache','toLowerCase','10RtNewa','1410628HhrQFT','129078EFVDcr','items','fetchedAt','3042768VhTHyA','10005192TMKslP','2jQzfdR'];a6_0x4dfa=function(){return _0xb8e254;};return a6_0x4dfa();}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}function a6_0x8099(_0x67ba9,_0x4f8d25){_0x67ba9=_0x67ba9-0xe5;const _0x4dfa20=a6_0x4dfa();let _0x809983=_0x4dfa20[_0x67ba9];return _0x809983;}export async function getRemoteAppList(_0x2f5c6e){const _0x585b17=a6_0x8099,{env:_0x53e50d,accessKey:_0x68e1b0,localOnly:localOnly=![],noCache:noCache=![]}=_0x2f5c6e,_0x325912=readCachedAppList(_0x53e50d,_0x68e1b0),_0x5cb360=_0x68e1b0?.[_0x585b17(0xf5)]()?getAppCacheFilePath(_0x53e50d,_0x68e1b0):null;if(localOnly)return{'items':_0x325912?.[_0x585b17(0xea)]??[],'source':_0x585b17(0xe5),'fetchedAt':_0x325912?.[_0x585b17(0xeb)]??null,'cachePath':_0x5cb360};try{const _0x1358a4=await getRemoteAppItems(),_0x9ef807=shouldUseMockRemoteApps()?_0x585b17(0xf7):'remote',_0x5eb6d9=new Date()[_0x585b17(0xf1)](),_0x3747be=_0x68e1b0?.[_0x585b17(0xf5)]()?writeCachedAppList(_0x53e50d,_0x68e1b0,{'env':_0x53e50d,'fetchedAt':_0x5eb6d9,'source':_0x9ef807,'items':_0x1358a4}):null;return{'items':_0x1358a4,'source':_0x9ef807,'fetchedAt':_0x5eb6d9,'cachePath':_0x3747be};}catch(_0x2c7cc8){if(!noCache&&_0x325912)return{'items':_0x325912[_0x585b17(0xea)],'source':_0x585b17(0xe5),'fetchedAt':_0x325912[_0x585b17(0xeb)],'cachePath':_0x5cb360};throw _0x2c7cc8;}}
1
+ (function(_0x1a400f,_0x49e694){const _0x371601=a6_0xcbe2,_0x3b4c6c=_0x1a400f();while(!![]){try{const _0xd83d46=parseInt(_0x371601(0x98))/0x1*(-parseInt(_0x371601(0x9a))/0x2)+parseInt(_0x371601(0xa7))/0x3*(parseInt(_0x371601(0xa5))/0x4)+-parseInt(_0x371601(0xa2))/0x5*(-parseInt(_0x371601(0x9d))/0x6)+parseInt(_0x371601(0x94))/0x7*(-parseInt(_0x371601(0x9c))/0x8)+-parseInt(_0x371601(0x9e))/0x9*(-parseInt(_0x371601(0x9f))/0xa)+parseInt(_0x371601(0x99))/0xb+parseInt(_0x371601(0xa1))/0xc*(-parseInt(_0x371601(0x9b))/0xd);if(_0xd83d46===_0x49e694)break;else _0x3b4c6c['push'](_0x3b4c6c['shift']());}catch(_0x283366){_0x3b4c6c['push'](_0x3b4c6c['shift']());}}}(a6_0x5435,0x60f6f));function a6_0x5435(){const _0xcc451e=['trim','fetchedAt','60TaGYas','4304377fbDxDm','21128NExYwY','2652KrOsOC','2824qMkYFn','24VMRadJ','2674827oabWtE','20SLKRkz','APP_LIST_SOURCE','31224mEvOMe','860110CsEmcF','items','mock','12LAcOXM','toISOString','485643sOkxFI','11851pielpJ','cache'];a6_0x5435=function(){return _0xcc451e;};return a6_0x5435();}import{getMyApps}from'../../core/api-client.js';function a6_0xcbe2(_0x4d7c41,_0x14da13){_0x4d7c41=_0x4d7c41-0x94;const _0x5435f6=a6_0x5435();let _0xcbe2f=_0x5435f6[_0x4d7c41];return _0xcbe2f;}import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';import{productEnv}from'../../constant/product.js';export function shouldUseMockRemoteApps(){const _0x226360=a6_0xcbe2,_0x1a4ef4=(productEnv(_0x226360(0xa0))||'')['trim']()['toLowerCase']();return _0x1a4ef4==='mock';}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x46ab23){const _0x4d34da=a6_0xcbe2,{env:_0x46e9fa,accessKey:_0x1d942a,localOnly:localOnly=![],noCache:noCache=![]}=_0x46ab23,_0x997f1f=readCachedAppList(_0x46e9fa,_0x1d942a),_0x27aa03=_0x1d942a?.['trim']()?getAppCacheFilePath(_0x46e9fa,_0x1d942a):null;if(localOnly)return{'items':_0x997f1f?.[_0x4d34da(0xa3)]??[],'source':'cache','fetchedAt':_0x997f1f?.[_0x4d34da(0x97)]??null,'cachePath':_0x27aa03};try{const _0x3253ab=await getRemoteAppItems(),_0x19d57c=shouldUseMockRemoteApps()?_0x4d34da(0xa4):'remote',_0x133f47=new Date()[_0x4d34da(0xa6)](),_0x58e20b=_0x1d942a?.[_0x4d34da(0x96)]()?writeCachedAppList(_0x46e9fa,_0x1d942a,{'env':_0x46e9fa,'fetchedAt':_0x133f47,'source':_0x19d57c,'items':_0x3253ab}):null;return{'items':_0x3253ab,'source':_0x19d57c,'fetchedAt':_0x133f47,'cachePath':_0x58e20b};}catch(_0x5b4946){if(!noCache&&_0x997f1f)return{'items':_0x997f1f[_0x4d34da(0xa3)],'source':_0x4d34da(0x95),'fetchedAt':_0x997f1f['fetchedAt'],'cachePath':_0x27aa03};throw _0x5b4946;}}
@@ -1 +1 @@
1
- (function(_0x44f7d8,_0x47b33c){const _0x3deedf=a7_0x10d6,_0x7459b5=_0x44f7d8();while(!![]){try{const _0x2d9a73=parseInt(_0x3deedf(0x143))/0x1+-parseInt(_0x3deedf(0x133))/0x2+parseInt(_0x3deedf(0x148))/0x3*(parseInt(_0x3deedf(0x132))/0x4)+parseInt(_0x3deedf(0x135))/0x5*(parseInt(_0x3deedf(0x145))/0x6)+-parseInt(_0x3deedf(0x137))/0x7*(-parseInt(_0x3deedf(0x13d))/0x8)+-parseInt(_0x3deedf(0x136))/0x9*(-parseInt(_0x3deedf(0x13b))/0xa)+-parseInt(_0x3deedf(0x13e))/0xb*(parseInt(_0x3deedf(0x140))/0xc);if(_0x2d9a73===_0x47b33c)break;else _0x7459b5['push'](_0x7459b5['shift']());}catch(_0x3d3105){_0x7459b5['push'](_0x7459b5['shift']());}}}(a7_0x1f80,0x62bc1));import{CLI_BIN_NAME}from'../../constant/cli.js';function a7_0x1f80(){const _0x1e7e03=['33HBYyFv','appCode','1609464ZJvzld','local','trim','84758ZGYHpw','find','24LLynzk','project','appcode','11751Iyyuyc','384nlsWeY','137472fbPHjn','named','20860hIikOp','30069snNvVP','7Mmrhcp','defaultApp','name','isCurrent','550BmyGzU','currentApp','1714288pFFXcn'];a7_0x1f80=function(){return _0x1e7e03;};return a7_0x1f80();}function a7_0x10d6(_0x580e97,_0x192126){_0x580e97=_0x580e97-0x132;const _0x1f800a=a7_0x1f80();let _0x10d6ff=_0x1f800a[_0x580e97];return _0x10d6ff;}import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x482ed3,_0x48bcb1){const _0x591726=a7_0x10d6;if(!_0x48bcb1)return;const _0x3c4122=!!(_0x48bcb1[_0x591726(0x13c)]??_0x48bcb1['defaultApp']);for(const _0x50f096 of _0x482ed3){_0x50f096[_0x591726(0x13a)]=![];}const _0xed1b3c=_0x48bcb1['appCode']!=null?String(_0x48bcb1[_0x591726(0x13f)])[_0x591726(0x142)]():'';if(_0x3c4122){const _0xe8e0ab=_0x48bcb1[_0x591726(0x13c)]??_0x48bcb1[_0x591726(0x138)];if(_0xe8e0ab){const _0x2d122c=_0x482ed3[_0x591726(0x144)](_0x52c38d=>_0x52c38d[_0x591726(0x134)]===!![]&&_0x52c38d[_0x591726(0x139)]===_0xe8e0ab&&_0x52c38d['definedIn']===_0x591726(0x141)),_0x5a7dda=_0x2d122c??_0x482ed3['find'](_0x53d7eb=>_0x53d7eb[_0x591726(0x134)]===!![]&&_0x53d7eb[_0x591726(0x139)]===_0xe8e0ab);_0x5a7dda&&(_0x5a7dda[_0x591726(0x13a)]=!![]);}return;}if(!_0xed1b3c)return;for(const _0x450e30 of _0x482ed3){String(_0x450e30[_0x591726(0x147)]??'')[_0x591726(0x142)]()===_0xed1b3c&&(_0x450e30[_0x591726(0x13a)]=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x1d625e){const _0x40a44a=a7_0x10d6;return formatScopeLabel(_0x1d625e['global']?'global':_0x40a44a(0x146));}
1
+ (function(_0x54bde5,_0x316fd7){const _0x5c26c1=a7_0x1979,_0x281c6e=_0x54bde5();while(!![]){try{const _0xe95be4=parseInt(_0x5c26c1(0xde))/0x1+parseInt(_0x5c26c1(0xcc))/0x2+parseInt(_0x5c26c1(0xdb))/0x3+parseInt(_0x5c26c1(0xdc))/0x4+parseInt(_0x5c26c1(0xcb))/0x5*(-parseInt(_0x5c26c1(0xd2))/0x6)+-parseInt(_0x5c26c1(0xd4))/0x7*(-parseInt(_0x5c26c1(0xcf))/0x8)+parseInt(_0x5c26c1(0xcd))/0x9*(-parseInt(_0x5c26c1(0xda))/0xa);if(_0xe95be4===_0x316fd7)break;else _0x281c6e['push'](_0x281c6e['shift']());}catch(_0x49741b){_0x281c6e['push'](_0x281c6e['shift']());}}}(a7_0x107c,0x5d8ad));import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0xf56cad,_0x40b664){const _0x12620d=a7_0x1979;if(!_0x40b664)return;const _0xe98a90=!!(_0x40b664[_0x12620d(0xd3)]??_0x40b664[_0x12620d(0xd0)]);for(const _0x526d0b of _0xf56cad){_0x526d0b[_0x12620d(0xd6)]=![];}const _0x5d0dc6=_0x40b664['appCode']!=null?String(_0x40b664[_0x12620d(0xce)])[_0x12620d(0xdd)]():'';if(_0xe98a90){const _0x3a82b0=_0x40b664[_0x12620d(0xd3)]??_0x40b664[_0x12620d(0xd0)];if(_0x3a82b0){const _0x380cb6=_0xf56cad[_0x12620d(0xd5)](_0x12fb37=>_0x12fb37['named']===!![]&&_0x12fb37[_0x12620d(0xe0)]===_0x3a82b0&&_0x12fb37[_0x12620d(0xd7)]===_0x12620d(0xdf)),_0x5405a9=_0x380cb6??_0xf56cad[_0x12620d(0xd5)](_0x1f65e6=>_0x1f65e6[_0x12620d(0xe1)]===!![]&&_0x1f65e6['name']===_0x3a82b0);_0x5405a9&&(_0x5405a9['isCurrent']=!![]);}return;}if(!_0x5d0dc6)return;for(const _0x316a83 of _0xf56cad){String(_0x316a83[_0x12620d(0xd9)]??'')[_0x12620d(0xdd)]()===_0x5d0dc6&&(_0x316a83[_0x12620d(0xd6)]=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';function a7_0x107c(){const _0x5dcb7f=['422907UnFvyx','1964840vaLYMR','trim','364879Hxcvpf','local','name','named','10xjoNzx','1114004HzxBbJ','225603AcJRxi','appCode','173616qwCjMZ','defaultApp','global','975066OemusM','currentApp','91czfbFH','find','isCurrent','definedIn','project','appcode','450CabLgR'];a7_0x107c=function(){return _0x5dcb7f;};return a7_0x107c();}function a7_0x1979(_0x2d8ebc,_0x25e2f5){_0x2d8ebc=_0x2d8ebc-0xcb;const _0x107c8d=a7_0x107c();let _0x1979db=_0x107c8d[_0x2d8ebc];return _0x1979db;}export function scopeLabel(_0x33910e){const _0x93b34b=a7_0x1979;return formatScopeLabel(_0x33910e[_0x93b34b(0xd1)]?'global':_0x93b34b(0xd8));}
@@ -1 +1 @@
1
- const a8_0xa9fa02=a8_0x40c9;(function(_0x10d59b,_0x55af9d){const _0x6d1e5a=a8_0x40c9,_0x6758d5=_0x10d59b();while(!![]){try{const _0x11234d=-parseInt(_0x6d1e5a(0xfb))/0x1*(-parseInt(_0x6d1e5a(0xf7))/0x2)+parseInt(_0x6d1e5a(0xdb))/0x3+parseInt(_0x6d1e5a(0x10e))/0x4+parseInt(_0x6d1e5a(0xd2))/0x5+parseInt(_0x6d1e5a(0x109))/0x6+parseInt(_0x6d1e5a(0xda))/0x7+-parseInt(_0x6d1e5a(0xf5))/0x8;if(_0x11234d===_0x55af9d)break;else _0x6758d5['push'](_0x6758d5['shift']());}catch(_0x4e7a5a){_0x6758d5['push'](_0x6758d5['shift']());}}}(a8_0x35fa,0xd914b));function a8_0x40c9(_0x5e753c,_0x22376f){_0x5e753c=_0x5e753c-0xc7;const _0x35faf6=a8_0x35fa();let _0x40c900=_0x35faf6[_0x5e753c];return _0x40c900;}import{existsSync,readFileSync,statSync}from'node:fs';import{createRuntimeArtifact,getRuntimeArtifact,listRuntimeArtifacts,updateRuntimeArtifact}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const ARTIFACT_TYPE_REACT_MODULE=a8_0xa9fa02(0xfd),ARTIFACT_SOURCE_AGENT=a8_0xa9fa02(0xc8),ALLOWED_REACT_MODULE_IMPORTS=[a8_0xa9fa02(0xed),a8_0xa9fa02(0xea),a8_0xa9fa02(0xdd),'dayjs',a8_0xa9fa02(0xcf),a8_0xa9fa02(0xd3)];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_0xa9fa02(0x100),'type':a8_0xa9fa02(0xd9),'required':!![],'description':a8_0xa9fa02(0xc7)},ARTIFACT_NAME_FLAG={'name':'name','type':a8_0xa9fa02(0xd9),'description':a8_0xa9fa02(0xd4)},METADATA_FLAG={'name':a8_0xa9fa02(0xdf),'type':a8_0xa9fa02(0xd9),'description':a8_0xa9fa02(0x111)};function isPlainObject(_0x46390f){const _0x54dd61=a8_0xa9fa02;return typeof _0x46390f===_0x54dd61(0xd1)&&_0x46390f!==null&&!Array[_0x54dd61(0xf3)](_0x46390f);}function readSourceFile(_0x13fd61){const _0x518bbb=a8_0xa9fa02;if(!_0x13fd61)throw CliErrors[_0x518bbb(0xd7)](_0x518bbb(0x107));if(!existsSync(_0x13fd61))throw CliErrors[_0x518bbb(0xd7)]('File\x20not\x20found:\x20'+_0x13fd61);if(!statSync(_0x13fd61)['isFile']())throw CliErrors[_0x518bbb(0xd7)](_0x518bbb(0xd6)+_0x13fd61);const _0x41336c=readFileSync(_0x13fd61,_0x518bbb(0x110));return validateReactModuleSource(_0x41336c),_0x41336c;}function parseMetadata(_0x5a1352){const _0x3271b8=a8_0xa9fa02;if(!_0x5a1352)return undefined;let _0x52ac78;try{_0x52ac78=JSON[_0x3271b8(0xec)](_0x5a1352);}catch{throw CliErrors[_0x3271b8(0xd7)](_0x3271b8(0x103)+_0x5a1352);}if(!isPlainObject(_0x52ac78))throw CliErrors[_0x3271b8(0xd7)](_0x3271b8(0xc9));const _0x26cae2={..._0x52ac78};return delete _0x26cae2[_0x3271b8(0xe5)],_0x26cae2;}function getPackageName(_0x413cf9){const _0x44f0e=a8_0xa9fa02;if(_0x413cf9['startsWith']('@')){const [_0x4d456a,_0xbe0ecf]=_0x413cf9['split']('/');return _0x4d456a&&_0xbe0ecf?_0x4d456a+'/'+_0xbe0ecf:_0x413cf9;}return _0x413cf9[_0x44f0e(0xd0)]('/')[0x0]||_0x413cf9;}function a8_0x35fa(){const _0x545253=['join','deleted','build','File\x20path\x20is\x20required.','num','6924006JVWmFj','Preview:\x20update\x20react_module\x20Artifact\x20','verbose','update','write','5743060NSvBjZ','/client/artifact/create','utf8','Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped','Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file','AGENT','--metadata\x20must\x20be\x20a\x20JSON\x20object.','read','length','react_module\x20imports\x20are\x20limited\x20to:\x20','exec','favorite','antd','split','object','2300495xxzJdi','@ant-design/icons','Artifact\x20display\x20name','Show\x20one\x20Artifact\x20by\x20id','File\x20is\x20not\x20a\x20regular\x20file:\x20','validation','body','string','5823888vBjKqS','2567469ZiWHLp','Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','lodash','list','metadata','includes','artifactType','map','POST','test','compiledContent','source','filter','/update','name','react-dom','Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','parse','react','bool','createTime','artifact','Preview:\x20create\x20react_module\x20Artifact','str','isArray','content','39115456rJKZIX','description','2WnqJBT','trim','updateTime','appCode','1040923skhyuO','detail','react_module','flag','Artifact\x20ID','file','.\x20Unsupported:\x20','create','Invalid\x20JSON\x20for\x20--metadata:\x20'];a8_0x35fa=function(){return _0x545253;};return a8_0x35fa();}function validateAllowedImports(_0x51dc0b){const _0x2de4d1=a8_0xa9fa02,_0x342ec0=new Set();for(const _0x3dc1c7 of IMPORT_SOURCE_PATTERNS){_0x3dc1c7['lastIndex']=0x0;let _0x5cf1ce;while((_0x5cf1ce=_0x3dc1c7[_0x2de4d1(0xcd)](_0x51dc0b))!==null){const _0x3d3a7a=_0x5cf1ce[0x1]?.[_0x2de4d1(0xf8)]();_0x3d3a7a&&_0x342ec0['add'](_0x3d3a7a);}}const _0x5356e7=[..._0x342ec0]['map'](getPackageName)[_0x2de4d1(0xe7)](_0x2573e0=>!ALLOWED_REACT_MODULE_IMPORTS[_0x2de4d1(0xe0)](_0x2573e0));if(_0x5356e7[_0x2de4d1(0xcb)]>0x0)throw CliErrors[_0x2de4d1(0xd7)](_0x2de4d1(0xcc)+ALLOWED_REACT_MODULE_IMPORTS_TEXT+_0x2de4d1(0x101)+[...new Set(_0x5356e7)][_0x2de4d1(0x104)](',\x20'));}export function validateReactModuleSource(_0x2d7176){const _0x5c0bd0=a8_0xa9fa02;if(!_0x2d7176[_0x5c0bd0(0xf8)]())throw CliErrors[_0x5c0bd0(0xd7)]('Artifact\x20source\x20file\x20is\x20blank.');if(PAGE_LEVEL_PATTERNS['some'](_0x4ca553=>_0x4ca553[_0x5c0bd0(0xe4)](_0x2d7176)))throw CliErrors['validation']('react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.');validateAllowedImports(_0x2d7176);}function buildArtifactInput(_0x3b2aee){const _0x3d62f2=a8_0xa9fa02,_0x86c74f=readSourceFile(_0x3b2aee[_0x3d62f2(0xf2)](_0x3d62f2(0x100))),_0x113b22=_0x3b2aee[_0x3d62f2(0xf2)]('name')[_0x3d62f2(0xf8)](),_0x2a529b=parseMetadata(_0x3b2aee['str'](_0x3d62f2(0xdf)));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x113b22?{'name':_0x113b22}:{},'content':_0x86c74f,..._0x2a529b?{'metadata':_0x2a529b}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0x581899){const _0x497cb1=a8_0xa9fa02;return{'id':_0x581899['id'],'name':_0x581899['name'],'artifactType':_0x581899['artifactType'],'source':_0x581899[_0x497cb1(0xe6)],'favorite':_0x581899[_0x497cb1(0xce)],'deleted':_0x581899[_0x497cb1(0x105)],'createTime':_0x581899[_0x497cb1(0xef)],'updateTime':_0x581899[_0x497cb1(0xf9)]};}function detailArtifact(_0x286ee9){const _0x4ded2d=a8_0xa9fa02;return{'id':_0x286ee9['id'],'appCode':_0x286ee9[_0x4ded2d(0xfa)],'name':_0x286ee9[_0x4ded2d(0xe9)],'artifactType':_0x286ee9[_0x4ded2d(0xe1)],'source':_0x286ee9[_0x4ded2d(0xe6)],'favorite':_0x286ee9['favorite'],'deleted':_0x286ee9[_0x4ded2d(0x105)],'content':_0x286ee9[_0x4ded2d(0xf4)]??'','compiledContent':_0x286ee9['compiledContent'],'metadata':_0x286ee9[_0x4ded2d(0xdf)]??{},'createTime':_0x286ee9['createTime'],'updateTime':_0x286ee9[_0x4ded2d(0xf9)]};}function readFavoriteFlag(_0x38863d){const _0x166c9a=a8_0xa9fa02,_0x1dd61a=_0x38863d[_0x166c9a(0xfe)](_0x166c9a(0xce));return _0x1dd61a===undefined||_0x1dd61a===null||_0x1dd61a===''?undefined:_0x38863d[_0x166c9a(0xee)](_0x166c9a(0xce));}const artifactList={'service':a8_0xa9fa02(0xf0),'command':a8_0xa9fa02(0xde),'description':'List\x20current-app\x20react_module\x20Artifacts','risk':a8_0xa9fa02(0xca),'flags':[{'name':a8_0xa9fa02(0xe6),'type':a8_0xa9fa02(0xd9),'description':'Optional\x20source\x20filter,\x20for\x20example\x20AGENT'},{'name':a8_0xa9fa02(0xce),'type':'boolean','description':'Optional\x20favorite-state\x20filter'},VERBOSE_FLAG],async 'execute'(_0x5e00c5){const _0x47c457=a8_0xa9fa02,_0x4c9b10=await listRuntimeArtifacts(_0x5e00c5['appCode'],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x5e00c5[_0x47c457(0xf2)]('source')?{'source':_0x5e00c5[_0x47c457(0xf2)]('source')}:{},...readFavoriteFlag(_0x5e00c5)!==undefined?{'favorite':readFavoriteFlag(_0x5e00c5)}:{}});return{'ok':!![],'data':{'total':_0x4c9b10[_0x47c457(0xcb)],'items':_0x5e00c5[_0x47c457(0xee)](_0x47c457(0x10b))?_0x4c9b10:_0x4c9b10[_0x47c457(0xe2)](summarizeArtifact)}};}},artifactDetail={'service':a8_0xa9fa02(0xf0),'command':a8_0xa9fa02(0xfc),'description':a8_0xa9fa02(0xd5),'risk':'read','flags':[{...ID_FLAG,'description':a8_0xa9fa02(0xff)}],async 'execute'(_0xb14f74){const _0x270946=a8_0xa9fa02,_0x3ff18f=await getRuntimeArtifact(_0xb14f74[_0x270946(0x108)]('id'),_0xb14f74[_0x270946(0xfa)]);return{'ok':!![],'data':detailArtifact(_0x3ff18f)};}},artifactCreate={'service':'artifact','command':a8_0xa9fa02(0x102),'description':a8_0xa9fa02(0xdc),'risk':'write','flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x466495){const _0x15fe23=a8_0xa9fa02,_0x257dd2=buildArtifactInput(_0x466495),_0x19fc41=await createRuntimeArtifact(_0x466495['appCode'],_0x257dd2);return{'ok':!![],'data':detailArtifact(_0x19fc41),'message':'Created\x20Artifact\x20'+_0x19fc41['id']+(_0x19fc41['name']?'\x20('+_0x19fc41[_0x15fe23(0xe9)]+')':'')};},async 'dryRun'(_0x495203){const _0x20f5ec=a8_0xa9fa02,_0x257086=buildArtifactInput(_0x495203);return dryRun(_0x20f5ec(0xe3),_0x20f5ec(0x10f))[_0x20f5ec(0xd8)]({'appCode':_0x495203['appCode'],..._0x257086})[_0x20f5ec(0xf6)](_0x20f5ec(0xf1))[_0x20f5ec(0x106)]();}},artifactUpdate={'service':a8_0xa9fa02(0xf0),'command':a8_0xa9fa02(0x10c),'description':a8_0xa9fa02(0xeb),'risk':a8_0xa9fa02(0x10d),'flags':[{...ID_FLAG,'description':a8_0xa9fa02(0xff)},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x1d9aa7){const _0x51e3d0=a8_0xa9fa02,_0x252027=_0x1d9aa7[_0x51e3d0(0x108)]('id'),_0x11b72a=buildArtifactInput(_0x1d9aa7),_0x3996d9=await updateRuntimeArtifact(_0x252027,_0x1d9aa7[_0x51e3d0(0xfa)],_0x11b72a);return{'ok':!![],'data':detailArtifact(_0x3996d9),'message':'Updated\x20Artifact\x20'+_0x3996d9['id']+(_0x3996d9[_0x51e3d0(0xe9)]?'\x20('+_0x3996d9[_0x51e3d0(0xe9)]+')':'')};},async 'dryRun'(_0x5b0567){const _0x5371bf=a8_0xa9fa02,_0x3ab854=_0x5b0567[_0x5371bf(0x108)]('id'),_0x45c80e=buildArtifactInput(_0x5b0567);return dryRun(_0x5371bf(0xe3),'/client/artifact/'+_0x3ab854+_0x5371bf(0xe8))[_0x5371bf(0xd8)]({'appCode':_0x5b0567[_0x5371bf(0xfa)],..._0x45c80e})[_0x5371bf(0xf6)](_0x5371bf(0x10a)+_0x3ab854)['build']();}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
1
+ const a8_0x4e174a=a8_0x749b;(function(_0x284e19,_0x1e6de2){const _0x540cce=a8_0x749b,_0x47cde7=_0x284e19();while(!![]){try{const _0x1d648b=-parseInt(_0x540cce(0x19b))/0x1*(-parseInt(_0x540cce(0x1a3))/0x2)+parseInt(_0x540cce(0x18f))/0x3+-parseInt(_0x540cce(0x1b4))/0x4+-parseInt(_0x540cce(0x189))/0x5+parseInt(_0x540cce(0x1b7))/0x6+-parseInt(_0x540cce(0x182))/0x7*(parseInt(_0x540cce(0x1ad))/0x8)+parseInt(_0x540cce(0x17b))/0x9*(parseInt(_0x540cce(0x178))/0xa);if(_0x1d648b===_0x1e6de2)break;else _0x47cde7['push'](_0x47cde7['shift']());}catch(_0x3f8b2c){_0x47cde7['push'](_0x47cde7['shift']());}}}(a8_0x46e9,0xad09c));import{existsSync,readFileSync,statSync}from'node:fs';import{createRuntimeArtifact,getRuntimeArtifact,listRuntimeArtifacts,updateRuntimeArtifact}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const ARTIFACT_TYPE_REACT_MODULE=a8_0x4e174a(0x181),ARTIFACT_SOURCE_AGENT=a8_0x4e174a(0x195),ALLOWED_REACT_MODULE_IMPORTS=[a8_0x4e174a(0x17a),a8_0x4e174a(0x174),a8_0x4e174a(0x1a1),'dayjs',a8_0x4e174a(0x19a),'@ant-design/icons'];export const ALLOWED_REACT_MODULE_IMPORTS_TEXT=ALLOWED_REACT_MODULE_IMPORTS[a8_0x4e174a(0x187)](',\x20');const IMPORT_SOURCE_PATTERNS=[/\bimport\s+(?:type\s+)?(?:[^'";]*?\s+from\s+)?["']([^"']+)["']/g,/\bexport\s+(?:type\s+)?[^'";]*?\s+from\s+["']([^"']+)["']/g,/\bimport\s*\(\s*["']([^"']+)["']\s*\)/g,/\brequire\s*\(\s*["']([^"']+)["']\s*\)/g],PAGE_LEVEL_PATTERNS=[/<!doctype\s+html/i,/<\s*html\b/i,/\bcreateRoot\s*\(/,/\bReactDOM\s*\.\s*render\s*\(/,/\bReactDOM\s*\.\s*createRoot\s*\(/],FILE_FLAG={'name':a8_0x4e174a(0x1ab),'type':a8_0x4e174a(0x194),'required':!![],'description':a8_0x4e174a(0x172)},ARTIFACT_NAME_FLAG={'name':a8_0x4e174a(0x18d),'type':a8_0x4e174a(0x194),'description':a8_0x4e174a(0x177)},METADATA_FLAG={'name':a8_0x4e174a(0x175),'type':a8_0x4e174a(0x194),'description':a8_0x4e174a(0x197)};function isPlainObject(_0x2d022c){const _0x2eaf5b=a8_0x4e174a;return typeof _0x2d022c===_0x2eaf5b(0x176)&&_0x2d022c!==null&&!Array[_0x2eaf5b(0x1b0)](_0x2d022c);}function readSourceFile(_0x56f425){const _0x5b2627=a8_0x4e174a;if(!_0x56f425)throw CliErrors['validation'](_0x5b2627(0x16b));if(!existsSync(_0x56f425))throw CliErrors[_0x5b2627(0x193)](_0x5b2627(0x184)+_0x56f425);if(!statSync(_0x56f425)['isFile']())throw CliErrors['validation'](_0x5b2627(0x1b8)+_0x56f425);const _0x37dcf6=readFileSync(_0x56f425,'utf8');return validateReactModuleSource(_0x37dcf6),_0x37dcf6;}function a8_0x749b(_0xba6444,_0x8d2d80){_0xba6444=_0xba6444-0x16b;const _0x46e906=a8_0x46e9();let _0x749b13=_0x46e906[_0xba6444];return _0x749b13;}function parseMetadata(_0x345c11){const _0x809b84=a8_0x4e174a;if(!_0x345c11)return undefined;let _0x1258f7;try{_0x1258f7=JSON[_0x809b84(0x19d)](_0x345c11);}catch{throw CliErrors['validation']('Invalid\x20JSON\x20for\x20--metadata:\x20'+_0x345c11);}if(!isPlainObject(_0x1258f7))throw CliErrors[_0x809b84(0x193)]('--metadata\x20must\x20be\x20a\x20JSON\x20object.');const _0x1dfd6c={..._0x1258f7};return delete _0x1dfd6c[_0x809b84(0x179)],_0x1dfd6c;}function a8_0x46e9(){const _0x5b7218=['3320820Wlmtbc','List\x20current-app\x20react_module\x20Artifacts','map','1330542ufYzXi','File\x20is\x20not\x20a\x20regular\x20file:\x20','File\x20path\x20is\x20required.','boolean','Optional\x20favorite-state\x20filter','Show\x20one\x20Artifact\x20by\x20id','startsWith','lastIndex','trim','Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file','str','react-dom','metadata','object','Artifact\x20display\x20name','616220STWAjl','compiledContent','react','81VCTGge','bool','createTime','.\x20Unsupported:\x20','verbose','Preview:\x20create\x20react_module\x20Artifact','react_module','1386763iNywLC','includes','File\x20not\x20found:\x20','updateTime','Artifact\x20ID','join','artifactType','860180rUyZfU','Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','POST','name','exec','2087067xebwkY','appCode','react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.','filter','validation','string','AGENT','source','Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped','deleted','Updated\x20Artifact\x20','antd','1XQBRxU','Created\x20Artifact\x20','parse','Artifact\x20source\x20file\x20is\x20blank.','num','some','lodash','split','2459012dukJzt','favorite','react_module\x20imports\x20are\x20limited\x20to:\x20','description','build','Preview:\x20update\x20react_module\x20Artifact\x20','Optional\x20source\x20filter,\x20for\x20example\x20AGENT','create','file','length','40lubbhs','list','read','isArray','artifact','body','write'];a8_0x46e9=function(){return _0x5b7218;};return a8_0x46e9();}function getPackageName(_0x22c0f9){const _0x37e643=a8_0x4e174a;if(_0x22c0f9[_0x37e643(0x16f)]('@')){const [_0x1c31f1,_0x347c03]=_0x22c0f9['split']('/');return _0x1c31f1&&_0x347c03?_0x1c31f1+'/'+_0x347c03:_0x22c0f9;}return _0x22c0f9[_0x37e643(0x1a2)]('/')[0x0]||_0x22c0f9;}function validateAllowedImports(_0x2c76ef){const _0x53ef60=a8_0x4e174a,_0x33a6a0=new Set();for(const _0x3cd9fc of IMPORT_SOURCE_PATTERNS){_0x3cd9fc[_0x53ef60(0x170)]=0x0;let _0x205edf;while((_0x205edf=_0x3cd9fc[_0x53ef60(0x18e)](_0x2c76ef))!==null){const _0x13eb18=_0x205edf[0x1]?.[_0x53ef60(0x171)]();_0x13eb18&&_0x33a6a0['add'](_0x13eb18);}}const _0x30dd02=[..._0x33a6a0][_0x53ef60(0x1b6)](getPackageName)[_0x53ef60(0x192)](_0x568512=>!ALLOWED_REACT_MODULE_IMPORTS[_0x53ef60(0x183)](_0x568512));if(_0x30dd02[_0x53ef60(0x1ac)]>0x0)throw CliErrors[_0x53ef60(0x193)](_0x53ef60(0x1a5)+ALLOWED_REACT_MODULE_IMPORTS_TEXT+_0x53ef60(0x17e)+[...new Set(_0x30dd02)][_0x53ef60(0x187)](',\x20'));}export function validateReactModuleSource(_0x43ee4f){const _0x1365b4=a8_0x4e174a;if(!_0x43ee4f[_0x1365b4(0x171)]())throw CliErrors[_0x1365b4(0x193)](_0x1365b4(0x19e));if(PAGE_LEVEL_PATTERNS[_0x1365b4(0x1a0)](_0x313e63=>_0x313e63['test'](_0x43ee4f)))throw CliErrors[_0x1365b4(0x193)](_0x1365b4(0x191));validateAllowedImports(_0x43ee4f);}function buildArtifactInput(_0x429764){const _0x3accba=a8_0x4e174a,_0x3a20e4=readSourceFile(_0x429764['str']('file')),_0x5c578c=_0x429764[_0x3accba(0x173)]('name')['trim'](),_0x204054=parseMetadata(_0x429764[_0x3accba(0x173)]('metadata'));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x5c578c?{'name':_0x5c578c}:{},'content':_0x3a20e4,..._0x204054?{'metadata':_0x204054}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0x4ee417){const _0x27f2dd=a8_0x4e174a;return{'id':_0x4ee417['id'],'name':_0x4ee417[_0x27f2dd(0x18d)],'artifactType':_0x4ee417[_0x27f2dd(0x188)],'source':_0x4ee417['source'],'favorite':_0x4ee417[_0x27f2dd(0x1a4)],'deleted':_0x4ee417[_0x27f2dd(0x198)],'createTime':_0x4ee417[_0x27f2dd(0x17d)],'updateTime':_0x4ee417[_0x27f2dd(0x185)]};}function detailArtifact(_0x51c666){const _0x2d905f=a8_0x4e174a;return{'id':_0x51c666['id'],'appCode':_0x51c666[_0x2d905f(0x190)],'name':_0x51c666[_0x2d905f(0x18d)],'artifactType':_0x51c666[_0x2d905f(0x188)],'source':_0x51c666[_0x2d905f(0x196)],'favorite':_0x51c666['favorite'],'deleted':_0x51c666[_0x2d905f(0x198)],'content':_0x51c666['content']??'','compiledContent':_0x51c666['compiledContent'],'metadata':_0x51c666[_0x2d905f(0x175)]??{},'createTime':_0x51c666['createTime'],'updateTime':_0x51c666[_0x2d905f(0x185)]};}function readFavoriteFlag(_0x874a75){const _0x52843b=a8_0x4e174a,_0x46f013=_0x874a75['flag'](_0x52843b(0x1a4));return _0x46f013===undefined||_0x46f013===null||_0x46f013===''?undefined:_0x874a75['bool']('favorite');}const artifactList={'service':'artifact','command':a8_0x4e174a(0x1ae),'description':a8_0x4e174a(0x1b5),'risk':a8_0x4e174a(0x1af),'flags':[{'name':a8_0x4e174a(0x196),'type':a8_0x4e174a(0x194),'description':a8_0x4e174a(0x1a9)},{'name':'favorite','type':a8_0x4e174a(0x16c),'description':a8_0x4e174a(0x16d)},VERBOSE_FLAG],async 'execute'(_0x106a5b){const _0x59cc28=a8_0x4e174a,_0x162756=await listRuntimeArtifacts(_0x106a5b[_0x59cc28(0x190)],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x106a5b[_0x59cc28(0x173)](_0x59cc28(0x196))?{'source':_0x106a5b[_0x59cc28(0x173)](_0x59cc28(0x196))}:{},...readFavoriteFlag(_0x106a5b)!==undefined?{'favorite':readFavoriteFlag(_0x106a5b)}:{}});return{'ok':!![],'data':{'total':_0x162756[_0x59cc28(0x1ac)],'items':_0x106a5b[_0x59cc28(0x17c)](_0x59cc28(0x17f))?_0x162756:_0x162756[_0x59cc28(0x1b6)](summarizeArtifact)}};}},artifactDetail={'service':a8_0x4e174a(0x1b1),'command':'detail','description':a8_0x4e174a(0x16e),'risk':a8_0x4e174a(0x1af),'flags':[{...ID_FLAG,'description':'Artifact\x20ID'}],async 'execute'(_0x2d53ee){const _0x12eb39=a8_0x4e174a,_0x9f2761=await getRuntimeArtifact(_0x2d53ee[_0x12eb39(0x19f)]('id'),_0x2d53ee[_0x12eb39(0x190)]);return{'ok':!![],'data':detailArtifact(_0x9f2761)};}},artifactCreate={'service':'artifact','command':a8_0x4e174a(0x1aa),'description':a8_0x4e174a(0x18b),'risk':a8_0x4e174a(0x1b3),'flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x5983e5){const _0xea3131=a8_0x4e174a,_0x401701=buildArtifactInput(_0x5983e5),_0x31d93b=await createRuntimeArtifact(_0x5983e5[_0xea3131(0x190)],_0x401701);return{'ok':!![],'data':detailArtifact(_0x31d93b),'message':_0xea3131(0x19c)+_0x31d93b['id']+(_0x31d93b[_0xea3131(0x18d)]?'\x20('+_0x31d93b[_0xea3131(0x18d)]+')':'')};},async 'dryRun'(_0x1066a7){const _0x5ca730=a8_0x4e174a,_0xcaa9a=buildArtifactInput(_0x1066a7);return dryRun(_0x5ca730(0x18c),'/client/artifact/create')[_0x5ca730(0x1b2)]({'appCode':_0x1066a7['appCode'],..._0xcaa9a})[_0x5ca730(0x1a6)](_0x5ca730(0x180))[_0x5ca730(0x1a7)]();}},artifactUpdate={'service':a8_0x4e174a(0x1b1),'command':'update','description':a8_0x4e174a(0x18a),'risk':a8_0x4e174a(0x1b3),'flags':[{...ID_FLAG,'description':a8_0x4e174a(0x186)},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x4300c6){const _0x395fa8=a8_0x4e174a,_0x246977=_0x4300c6[_0x395fa8(0x19f)]('id'),_0xd53e21=buildArtifactInput(_0x4300c6),_0x86a51f=await updateRuntimeArtifact(_0x246977,_0x4300c6[_0x395fa8(0x190)],_0xd53e21);return{'ok':!![],'data':detailArtifact(_0x86a51f),'message':_0x395fa8(0x199)+_0x86a51f['id']+(_0x86a51f['name']?'\x20('+_0x86a51f[_0x395fa8(0x18d)]+')':'')};},async 'dryRun'(_0x4b785b){const _0x1855a0=a8_0x4e174a,_0x4e5425=_0x4b785b[_0x1855a0(0x19f)]('id'),_0x32d36d=buildArtifactInput(_0x4b785b);return dryRun(_0x1855a0(0x18c),'/client/artifact/'+_0x4e5425+'/update')[_0x1855a0(0x1b2)]({'appCode':_0x4b785b[_0x1855a0(0x190)],..._0x32d36d})['description'](_0x1855a0(0x1a8)+_0x4e5425)[_0x1855a0(0x1a7)]();}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
@@ -1 +1 @@
1
- const a9_0x3abca2=a9_0x6b09;(function(_0x698e42,_0x20e517){const _0x53a42d=a9_0x6b09,_0x523709=_0x698e42();while(!![]){try{const _0x3525a9=parseInt(_0x53a42d(0x1b6))/0x1+-parseInt(_0x53a42d(0x1c4))/0x2+-parseInt(_0x53a42d(0x188))/0x3*(-parseInt(_0x53a42d(0x18d))/0x4)+-parseInt(_0x53a42d(0x1c7))/0x5*(parseInt(_0x53a42d(0x1bc))/0x6)+parseInt(_0x53a42d(0x1ae))/0x7+parseInt(_0x53a42d(0x1c0))/0x8*(-parseInt(_0x53a42d(0x17e))/0x9)+parseInt(_0x53a42d(0x19e))/0xa;if(_0x3525a9===_0x20e517)break;else _0x523709['push'](_0x523709['shift']());}catch(_0x49e01b){_0x523709['push'](_0x523709['shift']());}}}(a9_0x264d,0x4a411));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';function a9_0x264d(){const _0x446fdd=['yes','length','No\x20AccessKey\x20found\x20in\x20','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','44150LuiosX','\x20auth\x20login\x20--access-key\x20<ak_xxx>','\x20Verify:\x20','Auth\x20mode:\x20','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','global-default','Auth\x20config\x20reinitialized\x20in\x20','repeat','boolean','status','Option\x20A:\x20','\x20config','userCenterDisplayName','isTTY','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','Read\x20from\x20global\x20config\x20(default)','4257855OiWfNg','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','string','accessKey','stdout','Show\x20current\x20authentication\x20status','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','175638kBOlfM','join','ACCESS_KEY','\x20\x20export\x20','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','validation','642QcjBBM','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','Option\x20B:\x20apps\x20config\x20(','Invalid\x20accessKey\x20format:\x20\x22','885968hCbnqz','env','Shorthand\x20for\x20--access-key','trim','726190mXCKAY','\x20Current\x20env:\x20','newConfigFileName','13290GIqkYh','logout','info','=ak_xxx','\x20config.\x20Nothing\x20to\x20clear.','ClientAk','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','nonInteractive','AccessKey\x20saved\x20to\x20','production','18QmryFB','Clear\x20accessKey\x20from\x20config','str','Option\x20C:\x20environment\x20variable','bool','AccessKey\x20cleared\x20from\x20','auth','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','Then\x20verify\x20with:\x20','login','16260iMVAyG','read','AccessKey\x20(ak_xxx...)','envName','Write\x20to\x20global\x20config\x20(default)','284gVHLFh','cancelled','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','AccessKey:\x20','global','\x20auth\x20status','project','Missing\x20accessKey.','write','access-key','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','push','\x20env\x20var'];a9_0x264d=function(){return _0x446fdd;};return a9_0x264d();}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 _0x1c515f=a9_0x6b09;writeCliSideChannelLine('AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0x1c515f(0x1aa)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine('Tip:\x20you\x20can\x20also\x20run:'),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x1c515f(0x19f));}function buildAccessKeySetupGuide(){const _0xdb2636=a9_0x6b09;return['AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0xdb2636(0x1aa)]+':',USER_ACCESS_KEY_CREATE_URL,'Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20'+CLI_BIN_NAME+_0xdb2636(0x18f)][_0xdb2636(0x1b7)]('\x0a');}function a9_0x6b09(_0x43d528,_0x48d256){_0x43d528=_0x43d528-0x17a;const _0x264d14=a9_0x264d();let _0x6b09a5=_0x264d14[_0x43d528];return _0x6b09a5;}function canPromptForAccessKey(_0x1bd1e0){const _0x3ec159=a9_0x6b09;return!_0x1bd1e0[_0x3ec159(0x17b)]&&process['stdin'][_0x3ec159(0x1ab)]!==![]&&process[_0x3ec159(0x1b3)][_0x3ec159(0x1ab)]!==![];}function resolveAuthScopeFlags(_0x277860){const _0x2d88b8=a9_0x6b09;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x277860[_0x2d88b8(0x182)](_0x2d88b8(0x191)),'explicitProject':_0x277860[_0x2d88b8(0x182)](_0x2d88b8(0x193)),'policy':_0x2d88b8(0x1a3)}));}async function resolveAuthWriteInput(_0x42b80){const _0x387127=a9_0x6b09;let _0x13dbe4=(_0x42b80[_0x387127(0x180)](_0x387127(0x196))||_0x42b80['str']('ak')||'')[_0x387127(0x1c3)]();const _0x12e46f=(_0x42b80[_0x387127(0x180)](_0x387127(0x1c1))||'')[_0x387127(0x1c3)]();if(!_0x13dbe4&&canPromptForAccessKey(_0x42b80))try{showAccessKeyCreateHint(),_0x13dbe4=await promptAccessKey('');}catch(_0x11f9a5){if(isAbortPrompt(_0x11f9a5))throw CliErrors[_0x387127(0x18e)]();throw _0x11f9a5;}if(!_0x13dbe4)throw CliErrors['validation'](_0x387127(0x194),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN['test'](_0x13dbe4))throw CliErrors[_0x387127(0x1bb)](_0x387127(0x1bf)+_0x13dbe4+'\x22',_0x387127(0x1ba));if(!_0x12e46f)return{'accessKey':_0x13dbe4};const _0x2c9064=normalizeEnv(_0x12e46f);return{'accessKey':_0x13dbe4,'env':isDaily(_0x2c9064)?'daily':isDev(_0x2c9064)?'development':_0x387127(0x17d)};}export const authDefinitions=[{'service':a9_0x3abca2(0x184),'command':a9_0x3abca2(0x187),'description':a9_0x3abca2(0x1bd),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x3abca2(0x196),'type':'string','description':a9_0x3abca2(0x18a)},{'name':'ak','type':a9_0x3abca2(0x1b1),'description':a9_0x3abca2(0x1c2)},{'name':a9_0x3abca2(0x191),'type':a9_0x3abca2(0x1a6),'description':a9_0x3abca2(0x18c),'default':!![]},{'name':a9_0x3abca2(0x193),'type':a9_0x3abca2(0x1a6),'description':'Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x334e82){const _0xcb943a=a9_0x3abca2;if(_0x334e82['bool'](_0xcb943a(0x19a)))throw CliErrors[_0xcb943a(0x1bb)]('`auth\x20login`\x20does\x20not\x20support\x20--yes.','Use\x20`'+CLI_BIN_NAME+'\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`'+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.');const _0x4b62f3=(_0x334e82['str'](_0xcb943a(0x196))||_0x334e82[_0xcb943a(0x180)]('ak')||'')[_0xcb943a(0x1c3)]();if(!_0x4b62f3&&_0x334e82[_0xcb943a(0x17b)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x418f32=await resolveAuthWriteInput(_0x334e82),_0x45ee4c=resolveAuthScopeFlags(_0x334e82),_0x99391d=readScopedConfig(_0x45ee4c);_0x99391d[_0xcb943a(0x1b2)]=_0x418f32[_0xcb943a(0x1b2)];_0x418f32['env']&&(_0x99391d[_0xcb943a(0x1c1)]=_0x418f32['env']);writeScopedConfig(_0x99391d,_0x45ee4c);const _0x4744ed=_0x45ee4c['global']?_0xcb943a(0x191):'project',_0x2500f5=_0x99391d[_0xcb943a(0x1c1)]?_0xcb943a(0x1c5)+_0x99391d[_0xcb943a(0x1c1)]+'.':'';return{'ok':!![],'message':_0xcb943a(0x17c)+_0x4744ed+'\x20config.'+_0x2500f5+'\x20Verify:\x20'+CLI_BIN_NAME+_0xcb943a(0x192)};}},{'service':'auth','command':'init','description':a9_0x3abca2(0x185),'risk':a9_0x3abca2(0x195),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x3abca2(0x196),'type':'string','description':a9_0x3abca2(0x18a)},{'name':'ak','type':'string','description':a9_0x3abca2(0x1c2)},{'name':'env','type':'string','description':a9_0x3abca2(0x1b5)},{'name':a9_0x3abca2(0x191),'type':a9_0x3abca2(0x1a6),'description':a9_0x3abca2(0x18c),'default':!![]},{'name':a9_0x3abca2(0x193),'type':'boolean','description':'Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x528385){const _0x1e69cb=a9_0x3abca2,_0x17051f=await resolveAuthWriteInput(_0x528385),_0x587eeb=resolveAuthScopeFlags(_0x528385),_0x37fd53={'accessKey':_0x17051f[_0x1e69cb(0x1b2)]};_0x17051f[_0x1e69cb(0x1c1)]&&(_0x37fd53[_0x1e69cb(0x1c1)]=_0x17051f[_0x1e69cb(0x1c1)]);writeScopedConfig(_0x37fd53,_0x587eeb);const _0x19e542=_0x587eeb[_0x1e69cb(0x191)]?_0x1e69cb(0x191):_0x1e69cb(0x193),_0x20d0a1=_0x37fd53[_0x1e69cb(0x1c1)]?_0x1e69cb(0x1c5)+_0x37fd53[_0x1e69cb(0x1c1)]+'.':'';return{'ok':!![],'message':_0x1e69cb(0x1a4)+_0x19e542+'\x20scope.'+_0x20d0a1+_0x1e69cb(0x1a0)+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':'auth','command':a9_0x3abca2(0x1c8),'description':a9_0x3abca2(0x17f),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x3abca2(0x191),'type':a9_0x3abca2(0x1a6),'description':'Clear\x20from\x20global\x20config\x20(default)','default':!![]},{'name':'project','type':a9_0x3abca2(0x1a6),'description':a9_0x3abca2(0x197),'default':![]}],async 'execute'(_0xe47ac){const _0x1ef185=a9_0x3abca2,_0x437650=resolveAuthScopeFlags(_0xe47ac),_0x309464=readScopedConfig(_0x437650),_0x57c346=!!_0x309464[_0x1ef185(0x1b2)];delete _0x309464[_0x1ef185(0x1b2)],writeScopedConfig(_0x309464,_0x437650);const _0x2737b0=_0x437650[_0x1ef185(0x191)]?_0x1ef185(0x191):_0x1ef185(0x193);if(_0x57c346)return{'ok':!![],'message':_0x1ef185(0x183)+_0x2737b0+'\x20config.'};return{'ok':!![],'message':_0x1ef185(0x19c)+_0x2737b0+_0x1ef185(0x1cb)};}},{'service':a9_0x3abca2(0x184),'command':a9_0x3abca2(0x1a7),'description':a9_0x3abca2(0x1b4),'risk':a9_0x3abca2(0x189),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x3abca2(0x191),'type':a9_0x3abca2(0x1a6),'description':a9_0x3abca2(0x1ad),'default':!![]},{'name':a9_0x3abca2(0x193),'type':'boolean','description':a9_0x3abca2(0x1b0),'default':![]}],async 'execute'(_0x5ccb7c){const _0x5c909c=a9_0x3abca2,_0x2a1aa2=resolveAuthScopeFlags(_0x5ccb7c),_0x3c2689=readScopedConfig(_0x2a1aa2),_0x1404d9=productEnvName('ACCESS_KEY'),_0x277a74=productEnv(_0x5c909c(0x1b8))||undefined,_0x197d69=_0x3c2689[_0x5c909c(0x1b2)]||undefined,_0x247b67=_0x277a74||_0x197d69,_0x3d1f78=_0x277a74?_0x1404d9+_0x5c909c(0x199):_0x197d69?(_0x2a1aa2[_0x5c909c(0x191)]?_0x5c909c(0x191):_0x5c909c(0x193))+_0x5c909c(0x1a9):null,_0x58d3f7=[_0x5c909c(0x1a1)+AUTH_MODE[_0x5c909c(0x1cc)]];if(_0x247b67){const _0xada447=_0x247b67[_0x5c909c(0x19b)]>0x8?''+_0x247b67['slice'](0x0,0x8)+'*'[_0x5c909c(0x1a5)](_0x247b67['length']-0x8):_0x247b67;_0x58d3f7[_0x5c909c(0x198)](_0x5c909c(0x190)+_0xada447+(_0x3d1f78?'\x20(via\x20'+_0x3d1f78+')':''));}return!_0x247b67&&(_0x58d3f7[_0x5c909c(0x198)](''),_0x58d3f7[_0x5c909c(0x198)](_0x5c909c(0x1ac)),_0x58d3f7['push'](''),_0x58d3f7[_0x5c909c(0x198)](_0x5c909c(0x1a8)+CLI_BIN_NAME+_0x5c909c(0x1a2)),_0x58d3f7[_0x5c909c(0x198)](''),_0x58d3f7[_0x5c909c(0x198)](_0x5c909c(0x1be)+PRODUCT_CONFIG[_0x5c909c(0x1c6)]+')'),_0x58d3f7[_0x5c909c(0x198)](_0x5c909c(0x19d)),_0x58d3f7[_0x5c909c(0x198)](''),_0x58d3f7[_0x5c909c(0x198)](_0x5c909c(0x181)),_0x58d3f7[_0x5c909c(0x198)](_0x5c909c(0x1b9)+_0x1404d9+_0x5c909c(0x1ca)),_0x58d3f7['push'](''),_0x58d3f7[_0x5c909c(0x198)](_0x5c909c(0x186)+CLI_BIN_NAME+_0x5c909c(0x192)),_0x58d3f7[_0x5c909c(0x198)](_0x5c909c(0x1af)+CLI_BIN_NAME+'\x20doctor')),{'ok':!![],'message':_0x58d3f7[_0x5c909c(0x1b7)]('\x0a')};}},{'service':a9_0x3abca2(0x184),'command':a9_0x3abca2(0x1c9),'description':a9_0x3abca2(0x17a),'risk':a9_0x3abca2(0x189),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x10dab8){const _0x4665b5=a9_0x3abca2,_0x2efa76=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x2efa76,'meta':{'env':_0x10dab8[_0x4665b5(0x18b)]??_0x4665b5(0x17d)}}};}}];
1
+ function a9_0xab00(){const _0x4a9583=['\x20(via\x20','global','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','3986991tVNSpa','Then\x20verify\x20with:\x20','\x20scope.','`auth\x20login`\x20does\x20not\x20support\x20--yes.','Auth\x20mode:\x20','Option\x20B:\x20apps\x20config\x20(','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','Read\x20from\x20global\x20config\x20(default)','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','Shorthand\x20for\x20--access-key','logout','nonInteractive','AccessKey\x20(ak_xxx...)','read','8VMmIyD','\x20env\x20var','userCenterDisplayName','Clear\x20accessKey\x20from\x20config','string','slice','Write\x20to\x20global\x20config\x20(default)','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','1107685PoKdgT','Tip:\x20you\x20can\x20also\x20run:','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','write','envName','\x20Verify:\x20','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','\x20Current\x20env:\x20','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','env','Auth\x20config\x20reinitialized\x20in\x20','\x20auth\x20status','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','development','production','stdin','Show\x20current\x20authentication\x20status','isTTY','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','\x20config','join','str','info','daily','25416910XIawfS','validation','No\x20AccessKey\x20found\x20in\x20','9952416caTfFg','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','\x20config.','=ak_xxx','\x20doctor','length','access-key','init','Option\x20C:\x20environment\x20variable','Clear\x20from\x20global\x20config\x20(default)','accessKey','project','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','ACCESS_KEY','newConfigFileName','login','\x20auth\x20login\x20--access-key\x20<ak_xxx>','\x20config.\x20Nothing\x20to\x20clear.','bool','123748HnibHp','global-default','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','status','414554sVaMWT','auth','2278645wTHYnt','2YnctFz','push','trim','Invalid\x20accessKey\x20format:\x20\x22','AccessKey:\x20','yes','boolean','138QWoPBX','Option\x20A:\x20','\x20\x20export\x20','ClientAk','AccessKey\x20saved\x20to\x20'];a9_0xab00=function(){return _0x4a9583;};return a9_0xab00();}const a9_0x4f86b4=a9_0x2b91;(function(_0x9ef112,_0x29b1e9){const _0x337f35=a9_0x2b91,_0x42f22f=_0x9ef112();while(!![]){try{const _0x8b80d4=-parseInt(_0x337f35(0x15a))/0x1*(parseInt(_0x337f35(0x134))/0x2)+parseInt(_0x337f35(0x13b))/0x3*(-parseInt(_0x337f35(0x12d))/0x4)+-parseInt(_0x337f35(0x133))/0x5+parseInt(_0x337f35(0x11a))/0x6+parseInt(_0x337f35(0x131))/0x7*(parseInt(_0x337f35(0x151))/0x8)+-parseInt(_0x337f35(0x143))/0x9+parseInt(_0x337f35(0x117))/0xa;if(_0x8b80d4===_0x29b1e9)break;else _0x42f22f['push'](_0x42f22f['shift']());}catch(_0x49bd2a){_0x42f22f['push'](_0x42f22f['shift']());}}}(a9_0xab00,0xcaab6));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';function a9_0x2b91(_0x25b680,_0x1e469f){_0x25b680=_0x25b680-0x116;const _0xab00b7=a9_0xab00();let _0x2b91ec=_0xab00b7[_0x25b680];return _0x2b91ec;}import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{getLoginUserInfo}from'../../core/api-client.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function showAccessKeyCreateHint(){const _0x280a9e=a9_0x2b91;writeCliSideChannelLine(_0x280a9e(0x12f)+PRODUCT_CONFIG[_0x280a9e(0x153)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x280a9e(0x15b)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x280a9e(0x12a));}function buildAccessKeySetupGuide(){const _0x1f9913=a9_0x2b91;return[_0x1f9913(0x12f)+PRODUCT_CONFIG[_0x1f9913(0x153)]+':',USER_ACCESS_KEY_CREATE_URL,_0x1f9913(0x149)+CLI_BIN_NAME+_0x1f9913(0x15c)][_0x1f9913(0x16f)]('\x0a');}function canPromptForAccessKey(_0x544531){const _0x31ae91=a9_0x2b91;return!_0x544531['nonInteractive']&&process[_0x31ae91(0x16a)][_0x31ae91(0x16c)]!==![]&&process['stdout']['isTTY']!==![];}function resolveAuthScopeFlags(_0x3f743d){const _0x491837=a9_0x2b91;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x3f743d['bool'](_0x491837(0x141)),'explicitProject':_0x3f743d[_0x491837(0x12c)]('project'),'policy':_0x491837(0x12e)}));}async function resolveAuthWriteInput(_0x1ff401){const _0x59b637=a9_0x2b91;let _0x2429c0=(_0x1ff401[_0x59b637(0x170)](_0x59b637(0x120))||_0x1ff401['str']('ak')||'')[_0x59b637(0x136)]();const _0x441f0c=(_0x1ff401[_0x59b637(0x170)](_0x59b637(0x163))||'')['trim']();if(!_0x2429c0&&canPromptForAccessKey(_0x1ff401))try{showAccessKeyCreateHint(),_0x2429c0=await promptAccessKey('');}catch(_0x5d9a95){if(isAbortPrompt(_0x5d9a95))throw CliErrors['cancelled']();throw _0x5d9a95;}if(!_0x2429c0)throw CliErrors[_0x59b637(0x118)]('Missing\x20accessKey.',buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN['test'](_0x2429c0))throw CliErrors[_0x59b637(0x118)](_0x59b637(0x137)+_0x2429c0+'\x22','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars');if(!_0x441f0c)return{'accessKey':_0x2429c0};const _0x38e92e=normalizeEnv(_0x441f0c);return{'accessKey':_0x2429c0,'env':isDaily(_0x38e92e)?_0x59b637(0x116):isDev(_0x38e92e)?_0x59b637(0x168):_0x59b637(0x169)};}export const authDefinitions=[{'service':'auth','command':a9_0x4f86b4(0x129),'description':a9_0x4f86b4(0x166),'risk':a9_0x4f86b4(0x15d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x4f86b4(0x120),'type':a9_0x4f86b4(0x155),'description':a9_0x4f86b4(0x14f)},{'name':'ak','type':a9_0x4f86b4(0x155),'description':'Shorthand\x20for\x20--access-key'},{'name':a9_0x4f86b4(0x141),'type':'boolean','description':a9_0x4f86b4(0x157),'default':!![]},{'name':a9_0x4f86b4(0x125),'type':a9_0x4f86b4(0x13a),'description':a9_0x4f86b4(0x160),'default':![]}],async 'execute'(_0x1cda71){const _0x1495ae=a9_0x4f86b4;if(_0x1cda71[_0x1495ae(0x12c)](_0x1495ae(0x139)))throw CliErrors['validation'](_0x1495ae(0x146),'Use\x20`'+CLI_BIN_NAME+_0x1495ae(0x11b)+CLI_BIN_NAME+_0x1495ae(0x162));const _0x29a2d5=(_0x1cda71['str'](_0x1495ae(0x120))||_0x1cda71[_0x1495ae(0x170)]('ak')||'')['trim']();if(!_0x29a2d5&&_0x1cda71[_0x1495ae(0x14e)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x325cb7=await resolveAuthWriteInput(_0x1cda71),_0x19fb08=resolveAuthScopeFlags(_0x1cda71),_0x54edf6=readScopedConfig(_0x19fb08);_0x54edf6[_0x1495ae(0x124)]=_0x325cb7[_0x1495ae(0x124)];_0x325cb7[_0x1495ae(0x163)]&&(_0x54edf6[_0x1495ae(0x163)]=_0x325cb7[_0x1495ae(0x163)]);writeScopedConfig(_0x54edf6,_0x19fb08);const _0x524b4c=_0x19fb08[_0x1495ae(0x141)]?_0x1495ae(0x141):_0x1495ae(0x125),_0x1d4768=_0x54edf6['env']?_0x1495ae(0x161)+_0x54edf6[_0x1495ae(0x163)]+'.':'';return{'ok':!![],'message':_0x1495ae(0x13f)+_0x524b4c+_0x1495ae(0x11c)+_0x1d4768+'\x20Verify:\x20'+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':a9_0x4f86b4(0x132),'command':a9_0x4f86b4(0x121),'description':'Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','risk':a9_0x4f86b4(0x15d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x4f86b4(0x120),'type':a9_0x4f86b4(0x155),'description':a9_0x4f86b4(0x14f)},{'name':'ak','type':'string','description':a9_0x4f86b4(0x14c)},{'name':a9_0x4f86b4(0x163),'type':a9_0x4f86b4(0x155),'description':a9_0x4f86b4(0x158)},{'name':a9_0x4f86b4(0x141),'type':a9_0x4f86b4(0x13a),'description':a9_0x4f86b4(0x157),'default':!![]},{'name':a9_0x4f86b4(0x125),'type':a9_0x4f86b4(0x13a),'description':a9_0x4f86b4(0x160),'default':![]}],async 'execute'(_0x4f9bb9){const _0x46c129=a9_0x4f86b4,_0x4ddc90=await resolveAuthWriteInput(_0x4f9bb9),_0x23d124=resolveAuthScopeFlags(_0x4f9bb9),_0x1acaeb={'accessKey':_0x4ddc90[_0x46c129(0x124)]};_0x4ddc90[_0x46c129(0x163)]&&(_0x1acaeb[_0x46c129(0x163)]=_0x4ddc90[_0x46c129(0x163)]);writeScopedConfig(_0x1acaeb,_0x23d124);const _0x20acdf=_0x23d124['global']?_0x46c129(0x141):'project',_0x587920=_0x1acaeb['env']?_0x46c129(0x161)+_0x1acaeb[_0x46c129(0x163)]+'.':'';return{'ok':!![],'message':_0x46c129(0x164)+_0x20acdf+_0x46c129(0x145)+_0x587920+_0x46c129(0x15f)+CLI_BIN_NAME+_0x46c129(0x165)};}},{'service':'auth','command':a9_0x4f86b4(0x14d),'description':a9_0x4f86b4(0x154),'risk':a9_0x4f86b4(0x15d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x4f86b4(0x141),'type':'boolean','description':a9_0x4f86b4(0x123),'default':!![]},{'name':'project','type':a9_0x4f86b4(0x13a),'description':a9_0x4f86b4(0x16d),'default':![]}],async 'execute'(_0x1e48f5){const _0xc38145=a9_0x4f86b4,_0x199b60=resolveAuthScopeFlags(_0x1e48f5),_0x4f52ee=readScopedConfig(_0x199b60),_0x1a97ff=!!_0x4f52ee[_0xc38145(0x124)];delete _0x4f52ee[_0xc38145(0x124)],writeScopedConfig(_0x4f52ee,_0x199b60);const _0x1ca2ec=_0x199b60['global']?_0xc38145(0x141):'project';if(_0x1a97ff)return{'ok':!![],'message':'AccessKey\x20cleared\x20from\x20'+_0x1ca2ec+'\x20config.'};return{'ok':!![],'message':_0xc38145(0x119)+_0x1ca2ec+_0xc38145(0x12b)};}},{'service':a9_0x4f86b4(0x132),'command':a9_0x4f86b4(0x130),'description':a9_0x4f86b4(0x16b),'risk':a9_0x4f86b4(0x150),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x4f86b4(0x141),'type':a9_0x4f86b4(0x13a),'description':a9_0x4f86b4(0x14a),'default':!![]},{'name':a9_0x4f86b4(0x125),'type':'boolean','description':a9_0x4f86b4(0x142),'default':![]}],async 'execute'(_0xff0c30){const _0x25976f=a9_0x4f86b4,_0x62e970=resolveAuthScopeFlags(_0xff0c30),_0x23be70=readScopedConfig(_0x62e970),_0x17d153=productEnvName(_0x25976f(0x127)),_0x15d9e2=productEnv(_0x25976f(0x127))||undefined,_0x2ecec4=_0x23be70[_0x25976f(0x124)]||undefined,_0x1f06d7=_0x15d9e2||_0x2ecec4,_0x1a9ba3=_0x15d9e2?_0x17d153+_0x25976f(0x152):_0x2ecec4?(_0x62e970['global']?_0x25976f(0x141):_0x25976f(0x125))+_0x25976f(0x16e):null,_0x5e9415=[_0x25976f(0x147)+AUTH_MODE[_0x25976f(0x13e)]];if(_0x1f06d7){const _0x4903bb=_0x1f06d7[_0x25976f(0x11f)]>0x8?''+_0x1f06d7[_0x25976f(0x156)](0x0,0x8)+'*'['repeat'](_0x1f06d7['length']-0x8):_0x1f06d7;_0x5e9415[_0x25976f(0x135)](_0x25976f(0x138)+_0x4903bb+(_0x1a9ba3?_0x25976f(0x140)+_0x1a9ba3+')':''));}return!_0x1f06d7&&(_0x5e9415[_0x25976f(0x135)](''),_0x5e9415[_0x25976f(0x135)](_0x25976f(0x14b)),_0x5e9415[_0x25976f(0x135)](''),_0x5e9415['push'](_0x25976f(0x13c)+CLI_BIN_NAME+'\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]'),_0x5e9415[_0x25976f(0x135)](''),_0x5e9415[_0x25976f(0x135)](_0x25976f(0x148)+PRODUCT_CONFIG[_0x25976f(0x128)]+')'),_0x5e9415[_0x25976f(0x135)](_0x25976f(0x167)),_0x5e9415[_0x25976f(0x135)](''),_0x5e9415['push'](_0x25976f(0x122)),_0x5e9415[_0x25976f(0x135)](_0x25976f(0x13d)+_0x17d153+_0x25976f(0x11d)),_0x5e9415[_0x25976f(0x135)](''),_0x5e9415['push'](_0x25976f(0x144)+CLI_BIN_NAME+_0x25976f(0x165)),_0x5e9415[_0x25976f(0x135)](_0x25976f(0x126)+CLI_BIN_NAME+_0x25976f(0x11e))),{'ok':!![],'message':_0x5e9415['join']('\x0a')};}},{'service':a9_0x4f86b4(0x132),'command':a9_0x4f86b4(0x171),'description':a9_0x4f86b4(0x159),'risk':a9_0x4f86b4(0x150),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x2d11eb){const _0x364d05=a9_0x4f86b4,_0x344ec8=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x344ec8,'meta':{'env':_0x2d11eb[_0x364d05(0x15e)]??'production'}}};}}];
@@ -1 +1 @@
1
- (function(_0x37e718,_0x448d32){const _0x346372=a10_0x280a,_0x30a982=_0x37e718();while(!![]){try{const _0x4fe498=parseInt(_0x346372(0x148))/0x1+-parseInt(_0x346372(0x14c))/0x2+-parseInt(_0x346372(0x150))/0x3*(parseInt(_0x346372(0x159))/0x4)+-parseInt(_0x346372(0x158))/0x5*(parseInt(_0x346372(0x14f))/0x6)+-parseInt(_0x346372(0x149))/0x7+-parseInt(_0x346372(0x157))/0x8*(parseInt(_0x346372(0x154))/0x9)+parseInt(_0x346372(0x142))/0xa*(parseInt(_0x346372(0x147))/0xb);if(_0x4fe498===_0x448d32)break;else _0x30a982['push'](_0x30a982['shift']());}catch(_0x644d6c){_0x30a982['push'](_0x30a982['shift']());}}}(a10_0x2494,0xd01b8));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x27f1e0=a10_0x280a;super(_0x27f1e0(0x156)),this['name']=_0x27f1e0(0x145);}}function createSafeRl(){const _0x347fd1=a10_0x280a,_0x2e141e=createInterface({'input':process[_0x347fd1(0x143)],'output':process[_0x347fd1(0x153)]});let _0xaacfeb;const _0x115b99=new Promise((_0x4961c9,_0x316901)=>{const _0x151b2=_0x347fd1;_0xaacfeb=()=>{const _0x295b6e=a10_0x280a;_0xaacfeb&&(_0x2e141e[_0x295b6e(0x14e)]('SIGINT',_0xaacfeb),_0xaacfeb=undefined);try{_0x2e141e[_0x295b6e(0x146)]();}catch{}_0x316901(new AbortPrompt());},_0x2e141e[_0x151b2(0x151)](_0x151b2(0x155),_0xaacfeb);}),_0x456bb9=()=>{const _0x4dfe3a=_0x347fd1;_0xaacfeb&&(_0x2e141e['removeListener'](_0x4dfe3a(0x155),_0xaacfeb),_0xaacfeb=undefined);try{_0x2e141e['close']();}catch{}};return{'rl':_0x2e141e,'abortPromise':_0x115b99,'disposeSuccess':_0x456bb9};}function a10_0x280a(_0x8e5262,_0x4b2e12){_0x8e5262=_0x8e5262-0x141;const _0x2494f8=a10_0x2494();let _0x280a26=_0x2494f8[_0x8e5262];return _0x280a26;}export async function promptAccessKey(_0x5d3e6e=''){const _0xf7c243=a10_0x280a,{rl:_0x468d13,abortPromise:_0x2ccb9c,disposeSuccess:_0x2b8380}=createSafeRl(),_0x3999b0=new Promise(_0x2432c7=>{const _0x4a4a4b=a10_0x280a,_0x4e8834=_0x5d3e6e?_0x4a4a4b(0x141)+_0x5d3e6e+_0x4a4a4b(0x144):_0x4a4a4b(0x14d);_0x468d13[_0x4a4a4b(0x152)](_0x4e8834,_0x336506=>{const _0x548b7b=_0x4a4a4b;_0x2b8380(),_0x2432c7(_0x336506[_0x548b7b(0x14b)]()||_0x5d3e6e);});});return Promise[_0xf7c243(0x14a)]([_0x3999b0,_0x2ccb9c]);}export function isAbortPrompt(_0x64c3d6){const _0x311b87=a10_0x280a;return _0x64c3d6 instanceof Error&&_0x64c3d6['name']===_0x311b87(0x145);}function a10_0x2494(){const _0x38e7f3=['removeListener','3700962dRfMMc','319053kQVzwA','once','question','stdout','9FfnnOe','SIGINT','User\x20aborted\x20prompt','558456gwadnL','10Itedcl','52aRdgWT','AccessKey\x20(','16949090uSlevV','stdin','):\x20','AbortPrompt','close','22ruJXCC','476852qIqsVQ','107415yaovTx','race','trim','625786HtaBRV','AccessKey\x20(paste\x20ak_...):\x20'];a10_0x2494=function(){return _0x38e7f3;};return a10_0x2494();}
1
+ (function(_0x5bd47a,_0xa9f5b9){const _0x2eb434=a10_0x550d,_0x302bea=_0x5bd47a();while(!![]){try{const _0x1aa389=parseInt(_0x2eb434(0xae))/0x1+-parseInt(_0x2eb434(0xa0))/0x2+parseInt(_0x2eb434(0x9f))/0x3+-parseInt(_0x2eb434(0x9d))/0x4+parseInt(_0x2eb434(0x9e))/0x5*(-parseInt(_0x2eb434(0xa1))/0x6)+-parseInt(_0x2eb434(0xb0))/0x7+parseInt(_0x2eb434(0xab))/0x8*(parseInt(_0x2eb434(0xaa))/0x9);if(_0x1aa389===_0xa9f5b9)break;else _0x302bea['push'](_0x302bea['shift']());}catch(_0x25512e){_0x302bea['push'](_0x302bea['shift']());}}}(a10_0x479b,0xbb4b8));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x2bdcb5=a10_0x550d;super(_0x2bdcb5(0xa3)),this[_0x2bdcb5(0xa9)]=_0x2bdcb5(0xa4);}}function a10_0x550d(_0xe84c5e,_0x2b7c85){_0xe84c5e=_0xe84c5e-0x9b;const _0x479bcb=a10_0x479b();let _0x550dc9=_0x479bcb[_0xe84c5e];return _0x550dc9;}function createSafeRl(){const _0x3fe451=a10_0x550d,_0x50d1b1=createInterface({'input':process[_0x3fe451(0xad)],'output':process['stdout']});let _0x434c2d;const _0x5296a8=new Promise((_0x193730,_0x4a9138)=>{const _0x2e0137=_0x3fe451;_0x434c2d=()=>{const _0x9ef98b=a10_0x550d;_0x434c2d&&(_0x50d1b1[_0x9ef98b(0x9b)](_0x9ef98b(0xa7),_0x434c2d),_0x434c2d=undefined);try{_0x50d1b1[_0x9ef98b(0xa2)]();}catch{}_0x4a9138(new AbortPrompt());},_0x50d1b1[_0x2e0137(0xa5)](_0x2e0137(0xa7),_0x434c2d);}),_0x160087=()=>{const _0xed6660=_0x3fe451;_0x434c2d&&(_0x50d1b1['removeListener'](_0xed6660(0xa7),_0x434c2d),_0x434c2d=undefined);try{_0x50d1b1['close']();}catch{}};return{'rl':_0x50d1b1,'abortPromise':_0x5296a8,'disposeSuccess':_0x160087};}export async function promptAccessKey(_0x7efd37=''){const {rl:_0x817d5b,abortPromise:_0x5616dd,disposeSuccess:_0x235d28}=createSafeRl(),_0x51d2f5=new Promise(_0x18f4eb=>{const _0x583c53=a10_0x550d,_0x47e16d=_0x7efd37?_0x583c53(0xac)+_0x7efd37+_0x583c53(0xa8):_0x583c53(0x9c);_0x817d5b[_0x583c53(0xa6)](_0x47e16d,_0x26c023=>{const _0xe18d06=_0x583c53;_0x235d28(),_0x18f4eb(_0x26c023[_0xe18d06(0xaf)]()||_0x7efd37);});});return Promise['race']([_0x51d2f5,_0x5616dd]);}export function isAbortPrompt(_0x508e3a){const _0x20eaa0=a10_0x550d;return _0x508e3a instanceof Error&&_0x508e3a[_0x20eaa0(0xa9)]===_0x20eaa0(0xa4);}function a10_0x479b(){const _0x3a6616=['question','SIGINT','):\x20','name','549WrizfE','473072gOezid','AccessKey\x20(','stdin','879970qKQHKr','trim','9880395fEiyQm','removeListener','AccessKey\x20(paste\x20ak_...):\x20','5117448zlTWbS','4024045lxHfmV','222339CwLMiE','596882NxAzcf','6SBcibn','close','User\x20aborted\x20prompt','AbortPrompt','once'];a10_0x479b=function(){return _0x3a6616;};return a10_0x479b();}
@@ -1 +1 @@
1
- const a11_0x12ed95=a11_0x327a;function a11_0x327a(_0x239bcc,_0x585073){_0x239bcc=_0x239bcc-0x1e0;const _0x1a96c6=a11_0x1a96();let _0x327ae2=_0x1a96c6[_0x239bcc];return _0x327ae2;}(function(_0x25b26b,_0x5e292d){const _0x9c60a5=a11_0x327a,_0x361ea9=_0x25b26b();while(!![]){try{const _0x510ed4=-parseInt(_0x9c60a5(0x1e0))/0x1*(-parseInt(_0x9c60a5(0x1e4))/0x2)+-parseInt(_0x9c60a5(0x1e2))/0x3*(parseInt(_0x9c60a5(0x1e6))/0x4)+parseInt(_0x9c60a5(0x1e9))/0x5*(parseInt(_0x9c60a5(0x1e5))/0x6)+parseInt(_0x9c60a5(0x1e1))/0x7*(-parseInt(_0x9c60a5(0x1f6))/0x8)+parseInt(_0x9c60a5(0x1ef))/0x9*(-parseInt(_0x9c60a5(0x1e8))/0xa)+-parseInt(_0x9c60a5(0x1ed))/0xb*(parseInt(_0x9c60a5(0x1ea))/0xc)+parseInt(_0x9c60a5(0x1f1))/0xd*(parseInt(_0x9c60a5(0x1e7))/0xe);if(_0x510ed4===_0x5e292d)break;else _0x361ea9['push'](_0x361ea9['shift']());}catch(_0x55a6bc){_0x361ea9['push'](_0x361ea9['shift']());}}}(a11_0x1a96,0x484a4));import{getBffScriptInfo}from'../../core/api-client.js';function a11_0x1a96(){const _0x59d887=['updatedTime','bool','4042225FiAGnw','Script\x20ID','18JcYgIe','detail','292487NisALc','read','verbose','description','Get\x20BFF\x20script\x20details\x20by\x20ID','446760lRmhYI','bff','(none)','10NJizyc','56iTZHAM','70254ZUhwUI','appCode','30902cmZopj','120fZmcvi','40fXhoTl','854LrqBik','2374870MQGNtX','73135mtNpVu','12yKrnRb'];a11_0x1a96=function(){return _0x59d887;};return a11_0x1a96();}import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a11_0x12ed95(0x1f7),'command':a11_0x12ed95(0x1f0),'description':a11_0x12ed95(0x1f5),'risk':a11_0x12ed95(0x1f2),'flags':[{...ID_FLAG,'description':a11_0x12ed95(0x1ee)},VERBOSE_FLAG],async 'execute'(_0x4ee255){const _0x3a2869=a11_0x12ed95,_0x478b29=await getBffScriptInfo(_0x4ee255['num']('id')),_0xe3be4=_0x4ee255[_0x3a2869(0x1ec)](_0x3a2869(0x1f3));if(_0xe3be4)return{'ok':!![],'data':_0x478b29};return{'ok':!![],'data':{'id':_0x478b29['id'],'appCode':_0x478b29[_0x3a2869(0x1e3)],'functionName':_0x478b29['functionName']??'','scriptType':_0x478b29['scriptType'],'description':_0x478b29[_0x3a2869(0x1f4)]||_0x3a2869(0x1f8),'createdTime':_0x478b29['createdTime']??'','updatedTime':_0x478b29[_0x3a2869(0x1eb)]??''}};}};
1
+ function a11_0x999d(_0x3a1ba4,_0xac360b){_0x3a1ba4=_0x3a1ba4-0x149;const _0x2f8a05=a11_0x2f8a();let _0x999d6c=_0x2f8a05[_0x3a1ba4];return _0x999d6c;}const a11_0x11a9a4=a11_0x999d;(function(_0x409359,_0x456674){const _0x1bc5bc=a11_0x999d,_0xb6534f=_0x409359();while(!![]){try{const _0x7f1a77=-parseInt(_0x1bc5bc(0x150))/0x1+-parseInt(_0x1bc5bc(0x149))/0x2*(-parseInt(_0x1bc5bc(0x14b))/0x3)+parseInt(_0x1bc5bc(0x15f))/0x4*(-parseInt(_0x1bc5bc(0x158))/0x5)+parseInt(_0x1bc5bc(0x155))/0x6*(-parseInt(_0x1bc5bc(0x157))/0x7)+parseInt(_0x1bc5bc(0x152))/0x8+-parseInt(_0x1bc5bc(0x151))/0x9+parseInt(_0x1bc5bc(0x15e))/0xa*(parseInt(_0x1bc5bc(0x14d))/0xb);if(_0x7f1a77===_0x456674)break;else _0xb6534f['push'](_0xb6534f['shift']());}catch(_0x4cada0){_0xb6534f['push'](_0xb6534f['shift']());}}}(a11_0x2f8a,0x9173a));import{getBffScriptInfo}from'../../core/api-client.js';function a11_0x2f8a(){const _0x5a11ad=['functionName','description','Script\x20ID','67430nxWyOw','200504fTpPUu','4XLLyOy','verbose','1635609hJaPzN','updatedTime','3201rlJWgE','appCode','bff','985361eFknQT','10627182hmmvQp','6319512xrlTIG','scriptType','(none)','6GWZZBJ','bool','4406465OuAyVP','45FlTcqH','Get\x20BFF\x20script\x20details\x20by\x20ID','num'];a11_0x2f8a=function(){return _0x5a11ad;};return a11_0x2f8a();}import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a11_0x11a9a4(0x14f),'command':'detail','description':a11_0x11a9a4(0x159),'risk':'read','flags':[{...ID_FLAG,'description':a11_0x11a9a4(0x15d)},VERBOSE_FLAG],async 'execute'(_0x4380b9){const _0x403b29=a11_0x11a9a4,_0x3da04c=await getBffScriptInfo(_0x4380b9[_0x403b29(0x15a)]('id')),_0x55dccb=_0x4380b9[_0x403b29(0x156)](_0x403b29(0x14a));if(_0x55dccb)return{'ok':!![],'data':_0x3da04c};return{'ok':!![],'data':{'id':_0x3da04c['id'],'appCode':_0x3da04c[_0x403b29(0x14e)],'functionName':_0x3da04c[_0x403b29(0x15b)]??'','scriptType':_0x3da04c[_0x403b29(0x153)],'description':_0x3da04c[_0x403b29(0x15c)]||_0x403b29(0x154),'createdTime':_0x3da04c['createdTime']??'','updatedTime':_0x3da04c[_0x403b29(0x14c)]??''}};}};
@@ -1 +1 @@
1
- const a12_0xfdfdd7=a12_0x56a2;(function(_0x503aef,_0x3c71b1){const _0x3e7318=a12_0x56a2,_0x3b7fcd=_0x503aef();while(!![]){try{const _0x3f54e7=parseInt(_0x3e7318(0x12f))/0x1+parseInt(_0x3e7318(0x130))/0x2+parseInt(_0x3e7318(0x125))/0x3*(parseInt(_0x3e7318(0x12a))/0x4)+-parseInt(_0x3e7318(0x124))/0x5+parseInt(_0x3e7318(0x12b))/0x6+parseInt(_0x3e7318(0x123))/0x7*(parseInt(_0x3e7318(0x122))/0x8)+-parseInt(_0x3e7318(0x120))/0x9*(parseInt(_0x3e7318(0x126))/0xa);if(_0x3f54e7===_0x3c71b1)break;else _0x3b7fcd['push'](_0x3b7fcd['shift']());}catch(_0xe59afe){_0x3b7fcd['push'](_0x3b7fcd['shift']());}}}(a12_0x2e3e,0x2f239));import{executeSdkBff}from'../../core/sdk-client.js';function a12_0x2e3e(){const _0x1c46d0=['exec','623744Vxmeeh','874002HhGUcs','params','BFF\x20function\x20name\x20to\x20execute','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','203712xCwwTf','152092JHfrMW','90WkUaXm','str','344776waufOX','7Rkfxxj','1742185NblkSp','3PahlVg','82940RZmmRB','now','read'];a12_0x2e3e=function(){return _0x1c46d0;};return a12_0x2e3e();}import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a12_0x56a2(_0x121788,_0x2518b1){_0x121788=_0x121788-0x120;const _0x2e3e56=a12_0x2e3e();let _0x56a206=_0x2e3e56[_0x121788];return _0x56a206;}export const bffExec={'service':'bff','command':a12_0xfdfdd7(0x129),'description':a12_0xfdfdd7(0x12e),'risk':a12_0xfdfdd7(0x128),'flags':[{...NAME_FLAG,'required':!![],'description':a12_0xfdfdd7(0x12d)},PARAMS_FLAG],async 'execute'(_0x25d51f){const _0x554469=a12_0xfdfdd7,_0x421592=parseJsonParams(_0x25d51f[_0x554469(0x121)](_0x554469(0x12c))),_0x8cfc7a=Date[_0x554469(0x127)](),_0x70da7=await executeSdkBff(_0x25d51f[_0x554469(0x121)]('name'),_0x421592),_0x2dedda=Date['now']()-_0x8cfc7a;return{'ok':!![],'data':{'result':_0x70da7,'elapsed':_0x2dedda},'message':'BFF\x20executed\x20in\x20'+_0x2dedda+'ms'};}};
1
+ const a12_0x3ee4df=a12_0x39f8;(function(_0x142cb4,_0x351cec){const _0x4476ec=a12_0x39f8,_0x2e5aec=_0x142cb4();while(!![]){try{const _0x2ca527=-parseInt(_0x4476ec(0x1e7))/0x1*(-parseInt(_0x4476ec(0x1eb))/0x2)+-parseInt(_0x4476ec(0x1e4))/0x3+parseInt(_0x4476ec(0x1f4))/0x4+parseInt(_0x4476ec(0x1f2))/0x5+-parseInt(_0x4476ec(0x1f1))/0x6*(parseInt(_0x4476ec(0x1ef))/0x7)+parseInt(_0x4476ec(0x1ed))/0x8*(-parseInt(_0x4476ec(0x1e9))/0x9)+-parseInt(_0x4476ec(0x1e8))/0xa*(-parseInt(_0x4476ec(0x1f0))/0xb);if(_0x2ca527===_0x351cec)break;else _0x2e5aec['push'](_0x2e5aec['shift']());}catch(_0x86fa48){_0x2e5aec['push'](_0x2e5aec['shift']());}}}(a12_0x176e,0xa51fc));function a12_0x176e(){const _0x2b7743=['90vTxALj','5057694NnXWxY','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','22718iWKEKc','str','8DFLObf','read','1946nixJmK','2144791TbnSAN','29130krpCzd','6516020WLrZZL','now','1311100cEtvyz','3858723xhzDpq','name','params','43ZfvOtp'];a12_0x176e=function(){return _0x2b7743;};return a12_0x176e();}import{executeSdkBff}from'../../core/sdk-client.js';function a12_0x39f8(_0x55eb22,_0x1a2263){_0x55eb22=_0x55eb22-0x1e4;const _0x176e2a=a12_0x176e();let _0x39f84d=_0x176e2a[_0x55eb22];return _0x39f84d;}import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':'bff','command':'exec','description':a12_0x3ee4df(0x1ea),'risk':a12_0x3ee4df(0x1ee),'flags':[{...NAME_FLAG,'required':!![],'description':'BFF\x20function\x20name\x20to\x20execute'},PARAMS_FLAG],async 'execute'(_0xe537de){const _0x158a38=a12_0x3ee4df,_0x1e8fe2=parseJsonParams(_0xe537de[_0x158a38(0x1ec)](_0x158a38(0x1e6))),_0x366176=Date['now'](),_0x180929=await executeSdkBff(_0xe537de[_0x158a38(0x1ec)](_0x158a38(0x1e5)),_0x1e8fe2),_0x2fa62a=Date[_0x158a38(0x1f3)]()-_0x366176;return{'ok':!![],'data':{'result':_0x180929,'elapsed':_0x2fa62a},'message':'BFF\x20executed\x20in\x20'+_0x2fa62a+'ms'};}};
@@ -1 +1 @@
1
- (function(_0x3200fc,_0x38e0da){const _0x2cd408=a13_0x53b3,_0x17ca93=_0x3200fc();while(!![]){try{const _0x1cdc64=-parseInt(_0x2cd408(0x80))/0x1*(parseInt(_0x2cd408(0x8b))/0x2)+-parseInt(_0x2cd408(0x83))/0x3+-parseInt(_0x2cd408(0x88))/0x4*(-parseInt(_0x2cd408(0x85))/0x5)+parseInt(_0x2cd408(0x84))/0x6+parseInt(_0x2cd408(0x8a))/0x7*(parseInt(_0x2cd408(0x82))/0x8)+-parseInt(_0x2cd408(0x86))/0x9*(-parseInt(_0x2cd408(0x81))/0xa)+parseInt(_0x2cd408(0x89))/0xb*(-parseInt(_0x2cd408(0x87))/0xc);if(_0x1cdc64===_0x38e0da)break;else _0x17ca93['push'](_0x17ca93['shift']());}catch(_0x360f07){_0x17ca93['push'](_0x17ca93['shift']());}}}(a13_0x4a4f,0xeee98));function a13_0x53b3(_0x79ce0b,_0x20933b){_0x79ce0b=_0x79ce0b-0x80;const _0x4a4f04=a13_0x4a4f();let _0x53b3e9=_0x4a4f04[_0x79ce0b];return _0x53b3e9;}import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];function a13_0x4a4f(){const _0x132926=['1511135KyZhAZ','1494qGPnAm','225228pdEblj','20QvEYJO','781CRziVG','9476859vZCvtC','39158tjhlZr','81LDgdkJ','26540ZcgTtW','8OZBucb','297606jpsaSD','4144488OaVvWH'];a13_0x4a4f=function(){return _0x132926;};return a13_0x4a4f();}
1
+ (function(_0x5e607f,_0x1fa6e4){const _0x9b2e76=a13_0xeca9,_0x558cac=_0x5e607f();while(!![]){try{const _0x405d87=parseInt(_0x9b2e76(0x113))/0x1+-parseInt(_0x9b2e76(0x117))/0x2*(parseInt(_0x9b2e76(0x115))/0x3)+parseInt(_0x9b2e76(0x11b))/0x4*(parseInt(_0x9b2e76(0x11a))/0x5)+parseInt(_0x9b2e76(0x119))/0x6*(parseInt(_0x9b2e76(0x11c))/0x7)+-parseInt(_0x9b2e76(0x11d))/0x8+-parseInt(_0x9b2e76(0x112))/0x9*(parseInt(_0x9b2e76(0x114))/0xa)+parseInt(_0x9b2e76(0x116))/0xb*(parseInt(_0x9b2e76(0x118))/0xc);if(_0x405d87===_0x1fa6e4)break;else _0x558cac['push'](_0x558cac['shift']());}catch(_0x4103b9){_0x558cac['push'](_0x558cac['shift']());}}}(a13_0x5e15,0xb6b34));import{bffDetail}from'../../commands/bff/detail.js';function a13_0xeca9(_0x441537,_0x4d0f24){_0x441537=_0x441537-0x112;const _0x5e15f5=a13_0x5e15();let _0xeca983=_0x5e15f5[_0x441537];return _0xeca983;}function a13_0x5e15(){const _0x2dd7c6=['120UqywOJ','1293018HWZXhi','5gkPOrz','3960380rnxEOf','7azaJZL','5501352XDaJnm','2460897pHCRfK','1196142MDoAre','20DaYkTT','535209bHtsEa','520465sloJCl','10gvHTFv'];a13_0x5e15=function(){return _0x2dd7c6;};return a13_0x5e15();}import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
@@ -1 +1 @@
1
- const a14_0x2a58be=a14_0x48d2;(function(_0x555589,_0x181944){const _0x126a4d=a14_0x48d2,_0x115283=_0x555589();while(!![]){try{const _0x2fce89=-parseInt(_0x126a4d(0x172))/0x1*(parseInt(_0x126a4d(0x16a))/0x2)+-parseInt(_0x126a4d(0x17e))/0x3+parseInt(_0x126a4d(0x183))/0x4*(parseInt(_0x126a4d(0x16f))/0x5)+-parseInt(_0x126a4d(0x179))/0x6+-parseInt(_0x126a4d(0x173))/0x7+-parseInt(_0x126a4d(0x17c))/0x8*(-parseInt(_0x126a4d(0x174))/0x9)+parseInt(_0x126a4d(0x17f))/0xa;if(_0x2fce89===_0x181944)break;else _0x115283['push'](_0x115283['shift']());}catch(_0x5d9bd1){_0x115283['push'](_0x115283['shift']());}}}(a14_0x2a41,0x72ec0));function a14_0x48d2(_0x1131ad,_0x22298a){_0x1131ad=_0x1131ad-0x16a;const _0x2a41bd=a14_0x2a41();let _0x48d2f4=_0x2a41bd[_0x1131ad];return _0x48d2f4;}import{CliErrors}from'../../errors.js';function a14_0x2a41(){const _0x43c78f=['45UxbvEv','unknown','cli-skill','\x20-g\x20-y)...','cwd','3538440zqShFg','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','\x20-g\x20-y','309536XNKIUF','../../skills/npx-skills-add.js','1940037XvAshK','21275940PUnKdH','error','write','Skipped\x20npx\x20(','8vvURJq','cli-skill-install','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','312194GHOlVD','log','apiError','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','pipe','2000935gJYdbF','nonInteractive','install','5FGhsQG','4436628EFlmnD'];a14_0x2a41=function(){return _0x43c78f;};return a14_0x2a41();}import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a14_0x2a58be(0x176),'command':a14_0x2a58be(0x171),'description':a14_0x2a58be(0x185),'risk':a14_0x2a58be(0x181),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x4fb8c1){const _0xae42b2=a14_0x2a58be;logger['setLogPath'](process[_0xae42b2(0x178)]()),logger['info'](_0xae42b2(0x184),_0xae42b2(0x16d));const {LOVRABET_SKILL_SOURCE:_0x472f25,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x2fdce9,runNpxSkillsAddGlobal:_0x3ae1f1}=await import(_0xae42b2(0x17d)),_0x856cf7=_0x4fb8c1[_0xae42b2(0x170)]?_0xae42b2(0x16e):'inherit';console[_0xae42b2(0x16b)]('Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20'+_0x472f25+_0xae42b2(0x177));const _0x4d2eb2=_0x3ae1f1(process[_0xae42b2(0x178)](),_0x472f25,{'stdio':_0x856cf7});if(_0x4d2eb2['skipped'])console[_0xae42b2(0x16b)](_0xae42b2(0x182)+_0x2fdce9+'=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.');else{if(_0x4d2eb2['ok'])console[_0xae42b2(0x16b)]('CLI\x20Built-in\x20Skill\x20installed');else throw CliErrors[_0xae42b2(0x16c)]('npx\x20skills\x20add\x20failed:\x20'+(_0x4d2eb2[_0xae42b2(0x180)]||_0xae42b2(0x175)),_0xae42b2(0x17a)+_0x472f25+_0xae42b2(0x17b));}return{'ok':!![]};}}];
1
+ const a14_0x45829f=a14_0x12c0;function a14_0x2a4b(){const _0x5438ef=['cwd','CLI\x20Built-in\x20Skill\x20installed','2197248TLdvKT','136152rxEbsr','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','nonInteractive','1668ixhNNT','\x20-g\x20-y)...','../../skills/npx-skills-add.js','cli-skill','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','8nGlrlv','2350345Clwoux','82xWwpSq','apiError','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','16943uoTIZr','3920456BjvJuR','write','21427461PvHmxN','pipe','log','install','610ROtBLx','unknown','cli-skill-install','setLogPath','error','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','info','Skipped\x20npx\x20(','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','8771Dwmkhc'];a14_0x2a4b=function(){return _0x5438ef;};return a14_0x2a4b();}function a14_0x12c0(_0x3c855c,_0x19276b){_0x3c855c=_0x3c855c-0xf9;const _0x2a4bab=a14_0x2a4b();let _0x12c09b=_0x2a4bab[_0x3c855c];return _0x12c09b;}(function(_0x2a1aa3,_0x2b6a08){const _0x46b02b=a14_0x12c0,_0x4ea9fd=_0x2a1aa3();while(!![]){try{const _0x4cdf50=parseInt(_0x46b02b(0x10a))/0x1*(parseInt(_0x46b02b(0x107))/0x2)+parseInt(_0x46b02b(0xfc))/0x3+parseInt(_0x46b02b(0x105))/0x4*(parseInt(_0x46b02b(0x106))/0x5)+parseInt(_0x46b02b(0x100))/0x6*(-parseInt(_0x46b02b(0xf9))/0x7)+-parseInt(_0x46b02b(0x10b))/0x8+-parseInt(_0x46b02b(0xfd))/0x9*(-parseInt(_0x46b02b(0x111))/0xa)+-parseInt(_0x46b02b(0x10d))/0xb;if(_0x4cdf50===_0x2b6a08)break;else _0x4ea9fd['push'](_0x4ea9fd['shift']());}catch(_0x4701a5){_0x4ea9fd['push'](_0x4ea9fd['shift']());}}}(a14_0x2a4b,0x7af83));import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a14_0x45829f(0x103),'command':a14_0x45829f(0x110),'description':a14_0x45829f(0xfe),'risk':a14_0x45829f(0x10c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x2ba9cc){const _0x5627e4=a14_0x45829f;logger[_0x5627e4(0x114)](process[_0x5627e4(0xfa)]()),logger[_0x5627e4(0x117)](_0x5627e4(0x113),_0x5627e4(0x116));const {LOVRABET_SKILL_SOURCE:_0x2631d0,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x1afc8f,runNpxSkillsAddGlobal:_0x91302c}=await import(_0x5627e4(0x102)),_0xff2958=_0x2ba9cc[_0x5627e4(0xff)]?_0x5627e4(0x10e):'inherit';console[_0x5627e4(0x10f)](_0x5627e4(0x104)+_0x2631d0+_0x5627e4(0x101));const _0x3254f6=_0x91302c(process[_0x5627e4(0xfa)](),_0x2631d0,{'stdio':_0xff2958});if(_0x3254f6['skipped'])console[_0x5627e4(0x10f)](_0x5627e4(0x118)+_0x1afc8f+_0x5627e4(0x109));else{if(_0x3254f6['ok'])console[_0x5627e4(0x10f)](_0x5627e4(0xfb));else throw CliErrors[_0x5627e4(0x108)]('npx\x20skills\x20add\x20failed:\x20'+(_0x3254f6[_0x5627e4(0x115)]||_0x5627e4(0x112)),_0x5627e4(0x119)+_0x2631d0+'\x20-g\x20-y');}return{'ok':!![]};}}];