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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/artifact/index.js +1 -1
  10. package/lib/commands/auth/index.js +1 -1
  11. package/lib/commands/auth/prompt.js +1 -1
  12. package/lib/commands/bff/detail.js +1 -1
  13. package/lib/commands/bff/exec.js +1 -1
  14. package/lib/commands/bff/index.js +1 -1
  15. package/lib/commands/cli-skill/index.js +1 -1
  16. package/lib/commands/common/config-policy.js +1 -1
  17. package/lib/commands/common/constraints.js +1 -1
  18. package/lib/commands/common/flags.js +1 -1
  19. package/lib/commands/config/definitions.js +1 -1
  20. package/lib/commands/config/shared.js +1 -1
  21. package/lib/commands/data/index.js +1 -1
  22. package/lib/commands/dataset/detail.js +1 -1
  23. package/lib/commands/dataset/index.js +1 -1
  24. package/lib/commands/dataset/list.js +1 -1
  25. package/lib/commands/dataset/sdk-doc.js +1 -1
  26. package/lib/commands/doctor.js +1 -1
  27. package/lib/commands/init.js +1 -1
  28. package/lib/commands/kb/index.js +1 -1
  29. package/lib/commands/logs/index.js +1 -1
  30. package/lib/commands/personal-bff/index.js +1 -1
  31. package/lib/commands/registry.js +1 -1
  32. package/lib/commands/schema.js +1 -1
  33. package/lib/commands/service/dynamic.js +1 -1
  34. package/lib/commands/service/index.js +1 -1
  35. package/lib/commands/service/registry.js +1 -1
  36. package/lib/commands/skill/commands/create.js +1 -1
  37. package/lib/commands/skill/commands/install.js +1 -1
  38. package/lib/commands/skill/commands/list.js +1 -1
  39. package/lib/commands/skill/commands/push.js +1 -1
  40. package/lib/commands/skill/commands/validate.js +1 -1
  41. package/lib/commands/skill/flags.js +1 -1
  42. package/lib/commands/skill/index.js +1 -1
  43. package/lib/commands/skill/manifest-helpers.js +1 -1
  44. package/lib/commands/skill/scopes.js +1 -1
  45. package/lib/commands/skill/summary.js +1 -1
  46. package/lib/commands/skill/templates.js +1 -1
  47. package/lib/commands/skill/validate.js +1 -1
  48. package/lib/commands/sql/detail.js +1 -1
  49. package/lib/commands/sql/exec.js +1 -1
  50. package/lib/commands/sql/index.js +1 -1
  51. package/lib/commands/update.js +1 -1
  52. package/lib/commands/workspace/index.js +1 -1
  53. package/lib/config/schema.js +1 -1
  54. package/lib/constant/app.js +1 -1
  55. package/lib/constant/auth-mode.js +1 -1
  56. package/lib/constant/cli.js +1 -1
  57. package/lib/constant/defaults.js +1 -1
  58. package/lib/constant/distribution.js +1 -1
  59. package/lib/constant/domain.js +1 -1
  60. package/lib/constant/env.js +1 -1
  61. package/lib/constant/output.js +1 -1
  62. package/lib/constant/product.js +1 -1
  63. package/lib/constant/risk.js +1 -1
  64. package/lib/constant/url.js +1 -1
  65. package/lib/context.js +1 -1
  66. package/lib/core/api-client.js +1 -1
  67. package/lib/core/db-resolver.js +1 -1
  68. package/lib/core/sdk-client.js +1 -1
  69. package/lib/errors.js +1 -1
  70. package/lib/framework/build-all-flags.js +1 -1
  71. package/lib/framework/dryrun.js +1 -1
  72. package/lib/framework/flags.js +1 -1
  73. package/lib/framework/help.js +1 -1
  74. package/lib/framework/index.js +1 -1
  75. package/lib/framework/output.js +1 -1
  76. package/lib/framework/preparse.js +1 -1
  77. package/lib/framework/response.js +1 -1
  78. package/lib/framework/runner-confirmation.js +1 -1
  79. package/lib/framework/runner-error.js +1 -1
  80. package/lib/framework/runner.js +1 -1
  81. package/lib/framework/schema-export.js +1 -1
  82. package/lib/framework/types.js +1 -1
  83. package/lib/generated/build-info.js +1 -1
  84. package/lib/help.js +1 -1
  85. package/lib/skills/npx-skills-add.js +1 -1
  86. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  87. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  88. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  89. package/lib/skills/runtime-skill-sync/links.js +1 -1
  90. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  91. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  92. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  93. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  94. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  95. package/lib/skills/runtime-skill-sync/push.js +1 -1
  96. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  97. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  98. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  99. package/lib/skills/runtime-skill-sync.js +1 -1
  100. package/lib/utils/apply-jq-filter.js +1 -1
  101. package/lib/utils/logger.js +1 -1
  102. package/lib/utils/params.js +1 -1
  103. package/lib/utils/platform.js +1 -1
  104. package/lib/utils/update-notice.js +1 -1
  105. package/lib/utils/version.js +1 -1
  106. package/lib/utils/write-cli-side-channel.js +1 -1
  107. package/package.json +1 -1
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- function a0_0x1593(){const _0x1a26f8=['flags','code','ERR_STREAM_DESTROYED','\x0aCancelled.\x0a','input','107927CSfOyB','log','stderr','2RvLbPd','error','Unexpected\x20error:','assign','name',':\x20--','flatMap','args','8cXDOwN','4095849mQFPyq','3565884wQjKan','\x20->\x20--','10522631VmQkHG','11966650pExmod','unknownCommand','handler','help','write','Error:\x20','[preparse]\x20','cancelled','ExitPromptError','catch','./framework/preparse.js','30EctFpa','corrected','683352hbTORi','definition','message','ERR_USE_AFTER_CLOSE','44lLOeiC','length','hint','exit','slice','289885PHzewa'];a0_0x1593=function(){return _0x1a26f8;};return a0_0x1593();}const a0_0xb74e1c=a0_0x1709;(function(_0x28b385,_0x4ace94){const _0x9f5165=a0_0x1709,_0x3dcb77=_0x28b385();while(!![]){try{const _0x1bce98=parseInt(_0x9f5165(0x90))/0x1+parseInt(_0x9f5165(0x93))/0x2*(-parseInt(_0x9f5165(0x9c))/0x3)+-parseInt(_0x9f5165(0x9d))/0x4+-parseInt(_0x9f5165(0x8a))/0x5*(parseInt(_0x9f5165(0x7f))/0x6)+-parseInt(_0x9f5165(0x9f))/0x7*(parseInt(_0x9f5165(0x9b))/0x8)+parseInt(_0x9f5165(0x81))/0x9+-parseInt(_0x9f5165(0xa0))/0xa*(-parseInt(_0x9f5165(0x85))/0xb);if(_0x1bce98===_0x4ace94)break;else _0x3dcb77['push'](_0x3dcb77['shift']());}catch(_0x14a2b5){_0x3dcb77['push'](_0x3dcb77['shift']());}}}(a0_0x1593,0xe0c43));import{jsx as a0_0x3a03c2}from'react/jsx-runtime';function a0_0x1709(_0x330b07,_0x58799d){_0x330b07=_0x330b07-0x7c;const _0x1593d0=a0_0x1593();let _0x1709f7=_0x1593d0[_0x330b07];return _0x1709f7;}import a0_0x33605a from'meow';import{render}from'ink';import{Help}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{buildConfigFromFlags,initGlobalEnvironment}from'./context.js';import{isKnownService,getServiceEntry,findDefinition,getAllDefinitions}from'./commands/registry.js';import{generateDynamicServiceHelp,resolveDynamicServiceCommand}from'./commands/service/dynamic.js';import{runCommand,createPipelineEnv}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{buildMeowFlags}from'./constant/cli.js';import{getCliVersionDisplay}from'./utils/version.js';const helpText=generateFullHelp(),cli=a0_0x33605a(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'version':getCliVersionDisplay()});void main()[a0_0xb74e1c(0x7d)](handleError);async function main(){try{await run();}catch(_0x4d700d){handleError(_0x4d700d);}}async function run(){const _0x3d4845=a0_0xb74e1c;let _0x337396=cli[_0x3d4845(0x8f)][0x0],_0x9cccb3=cli[_0x3d4845(0x8f)][0x1];const _0x25baa7=cli[_0x3d4845(0x8b)];try{const {correctFlags:_0x23529c}=await import(_0x3d4845(0x7e)),_0x55c683=getAllDefinitions()[_0x3d4845(0x99)](_0x2d1ffa=>_0x2d1ffa[_0x3d4845(0x8b)]??[]),{flags:_0x14418d,corrections:_0xfdad91}=_0x23529c(_0x25baa7,_0x55c683);if(_0xfdad91[_0x3d4845(0x86)]>0x0){for(const _0x5cf80d of _0xfdad91){process[_0x3d4845(0x92)][_0x3d4845(0xa4)](_0x3d4845(0xa6)+_0x5cf80d[_0x3d4845(0xa2)]+_0x3d4845(0x98)+_0x5cf80d['original']+_0x3d4845(0x9e)+_0x5cf80d[_0x3d4845(0x80)]+'\x0a');}Object[_0x3d4845(0x96)](_0x25baa7,_0x14418d);}}catch{}if(!_0x337396){const {waitUntilExit:_0x26b709}=render(a0_0x3a03c2(Help,{}));await _0x26b709();return;}if(!isKnownService(_0x337396)){const _0x1a0f91=resolveDynamicServiceCommand(cli['input'],_0x25baa7);if(_0x1a0f91){if(_0x25baa7[_0x3d4845(0xa3)]){console[_0x3d4845(0x91)](generateCommandHelp(_0x1a0f91[_0x3d4845(0x82)]));return;}Object[_0x3d4845(0x96)](_0x25baa7,_0x1a0f91[_0x3d4845(0x8b)]);const _0x1b4661=buildConfigFromFlags(_0x25baa7);await initGlobalEnvironment(_0x1b4661);const _0x3d7136=createPipelineEnv(_0x1b4661,_0x25baa7);_0x3d7136[_0x3d4845(0x9a)]=_0x1a0f91['args'],await runCommand(_0x1a0f91[_0x3d4845(0x82)],_0x3d7136);return;}if(_0x25baa7[_0x3d4845(0xa3)]){const _0x1ab4e3=generateDynamicServiceHelp(_0x337396);if(_0x1ab4e3){console[_0x3d4845(0x91)](_0x1ab4e3);return;}}const {waitUntilExit:_0x4c9995}=render(a0_0x3a03c2(Help,{}));await _0x4c9995();return;}const _0x948fa6=getServiceEntry(_0x337396);if(!_0x9cccb3){if(_0x25baa7[_0x3d4845(0xa3)]){console[_0x3d4845(0x91)](generateServiceHelp(_0x337396));return;}if(_0x948fa6['defaultCommand'])_0x9cccb3=_0x948fa6['defaultCommand'];else{console[_0x3d4845(0x91)](generateServiceHelp(_0x337396));return;}}const _0x4a8a13=findDefinition(_0x337396,_0x9cccb3);!_0x4a8a13&&(console['log'](generateServiceHelp(_0x337396)),handleError(CliErrors[_0x3d4845(0xa1)](_0x337396+'\x20'+_0x9cccb3)));if(_0x25baa7['help']){console[_0x3d4845(0x91)](generateCommandHelp(_0x4a8a13));return;}const _0x3c35f3=buildConfigFromFlags(_0x25baa7);await initGlobalEnvironment(_0x3c35f3);const _0x521e48=createPipelineEnv(_0x3c35f3,_0x25baa7);_0x521e48[_0x3d4845(0x9a)]=cli[_0x3d4845(0x8f)][_0x3d4845(0x89)](0x2),await runCommand(_0x4a8a13,_0x521e48);}function handleError(_0x18d556){const _0x13bebd=a0_0xb74e1c;if(_0x18d556 instanceof CliError){_0x18d556[_0x13bebd(0x8c)]===_0x13bebd(0xa7)&&(process[_0x13bebd(0x92)][_0x13bebd(0xa4)](_0x13bebd(0x8e)),process[_0x13bebd(0x88)](0x0));console[_0x13bebd(0x94)](_0x13bebd(0xa5)+_0x18d556[_0x13bebd(0x83)]);if(_0x18d556['hint'])console[_0x13bebd(0x94)]('Hint:\x20'+_0x18d556[_0x13bebd(0x87)]);process['exit'](_0x18d556['exitCode']);}isUserCancellation(_0x18d556)&&(process[_0x13bebd(0x92)][_0x13bebd(0xa4)](_0x13bebd(0x8e)),process['exit'](0x0)),console[_0x13bebd(0x94)](_0x13bebd(0x95),_0x18d556),process[_0x13bebd(0x88)](0x1);}function isUserCancellation(_0x4a17a9){const _0x4f021f=a0_0xb74e1c;if(!(_0x4a17a9 instanceof Error))return![];if(_0x4a17a9[_0x4f021f(0x97)]===_0x4f021f(0x7c))return!![];if(_0x4a17a9[_0x4f021f(0x8c)]===_0x4f021f(0x84))return!![];if(_0x4a17a9[_0x4f021f(0x8c)]===_0x4f021f(0x8d))return!![];return![];}
2
+ const a0_0x4b582b=a0_0x145a;(function(_0x4e64a1,_0x539783){const _0x254589=a0_0x145a,_0x117cae=_0x4e64a1();while(!![]){try{const _0x5983cc=-parseInt(_0x254589(0x201))/0x1*(-parseInt(_0x254589(0x1fc))/0x2)+-parseInt(_0x254589(0x219))/0x3*(parseInt(_0x254589(0x1fe))/0x4)+parseInt(_0x254589(0x1ff))/0x5+parseInt(_0x254589(0x210))/0x6+-parseInt(_0x254589(0x203))/0x7*(parseInt(_0x254589(0x200))/0x8)+-parseInt(_0x254589(0x1f9))/0x9*(-parseInt(_0x254589(0x1f7))/0xa)+parseInt(_0x254589(0x20b))/0xb*(-parseInt(_0x254589(0x1f8))/0xc);if(_0x5983cc===_0x539783)break;else _0x117cae['push'](_0x117cae['shift']());}catch(_0x1dad14){_0x117cae['push'](_0x117cae['shift']());}}}(a0_0x1560,0x7e6c8));function a0_0x145a(_0x58312c,_0x947182){_0x58312c=_0x58312c-0x1ef;const _0x1560e4=a0_0x1560();let _0x145aee=_0x1560e4[_0x58312c];return _0x145aee;}function a0_0x1560(){const _0x5ee3de=['hint',':\x20--','Unexpected\x20error:','slice','message','7330vlVKhv','3219492yTUeEm','11691qgSIHO','input','\x0aCancelled.\x0a','1833668dDxdRS','catch','816564hKehTq','420370GLbrEj','7688uLAkSf','1DwvZOY','Error:\x20','889SRGfgS','assign','handler','flatMap','flags','write','definition','exit','44DljsHd','defaultCommand','Hint:\x20','log','cancelled','1009500TsGNPf','corrected','stderr','error','ExitPromptError','args','ERR_STREAM_DESTROYED','./framework/preparse.js','help','6IJxonh','length','exitCode','code','original'];a0_0x1560=function(){return _0x5ee3de;};return a0_0x1560();}import{jsx as a0_0xf806b4}from'react/jsx-runtime';import a0_0x44055a 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_0x44055a(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'version':getCliVersionDisplay()});void main()[a0_0x4b582b(0x1fd)](handleError);async function main(){try{await run();}catch(_0x5abc88){handleError(_0x5abc88);}}async function run(){const _0x4ae799=a0_0x4b582b;let _0x531487=cli[_0x4ae799(0x1fa)][0x0],_0xb6830f=cli[_0x4ae799(0x1fa)][0x1];const _0x591492=cli[_0x4ae799(0x207)];try{const {correctFlags:_0x47c63a}=await import(_0x4ae799(0x217)),_0x381781=getAllDefinitions()[_0x4ae799(0x206)](_0x335fb9=>_0x335fb9[_0x4ae799(0x207)]??[]),{flags:_0x3ff3f3,corrections:_0x4ca7e9}=_0x47c63a(_0x591492,_0x381781);if(_0x4ca7e9[_0x4ae799(0x21a)]>0x0){for(const _0xe35f7e of _0x4ca7e9){process['stderr'][_0x4ae799(0x208)]('[preparse]\x20'+_0xe35f7e[_0x4ae799(0x205)]+_0x4ae799(0x1f3)+_0xe35f7e[_0x4ae799(0x1f1)]+'\x20->\x20--'+_0xe35f7e[_0x4ae799(0x211)]+'\x0a');}Object[_0x4ae799(0x204)](_0x591492,_0x3ff3f3);}}catch{}if(!_0x531487){const {waitUntilExit:_0x49b34a}=render(a0_0xf806b4(Help,{}));await _0x49b34a();return;}if(!isKnownService(_0x531487)){const _0x693df2=resolveDynamicServiceCommand(cli[_0x4ae799(0x1fa)],_0x591492);if(_0x693df2){if(_0x591492['help']){console[_0x4ae799(0x20e)](generateCommandHelp(_0x693df2[_0x4ae799(0x209)]));return;}Object[_0x4ae799(0x204)](_0x591492,_0x693df2['flags']);const _0x465423=buildConfigFromFlags(_0x591492);await initGlobalEnvironment(_0x465423);const _0x1ea175=createPipelineEnv(_0x465423,_0x591492);_0x1ea175[_0x4ae799(0x215)]=_0x693df2[_0x4ae799(0x215)],await runCommand(_0x693df2[_0x4ae799(0x209)],_0x1ea175);return;}if(_0x591492[_0x4ae799(0x218)]){const _0x14ead3=generateDynamicServiceHelp(_0x531487);if(_0x14ead3){console[_0x4ae799(0x20e)](_0x14ead3);return;}}const {waitUntilExit:_0x27cc64}=render(a0_0xf806b4(Help,{}));await _0x27cc64();return;}const _0x2576d0=getServiceEntry(_0x531487);if(!_0xb6830f){if(_0x591492[_0x4ae799(0x218)]){console[_0x4ae799(0x20e)](generateServiceHelp(_0x531487));return;}if(_0x2576d0[_0x4ae799(0x20c)])_0xb6830f=_0x2576d0[_0x4ae799(0x20c)];else{console[_0x4ae799(0x20e)](generateServiceHelp(_0x531487));return;}}const _0xe72e31=findDefinition(_0x531487,_0xb6830f);!_0xe72e31&&(console[_0x4ae799(0x20e)](generateServiceHelp(_0x531487)),handleError(CliErrors['unknownCommand'](_0x531487+'\x20'+_0xb6830f)));if(_0x591492[_0x4ae799(0x218)]){console[_0x4ae799(0x20e)](generateCommandHelp(_0xe72e31));return;}const _0x568880=buildConfigFromFlags(_0x591492);await initGlobalEnvironment(_0x568880);const _0x2a90c1=createPipelineEnv(_0x568880,_0x591492);_0x2a90c1['args']=cli['input'][_0x4ae799(0x1f5)](0x2),await runCommand(_0xe72e31,_0x2a90c1);}function handleError(_0x5286ee){const _0x2c27e5=a0_0x4b582b;if(_0x5286ee instanceof CliError){_0x5286ee[_0x2c27e5(0x1f0)]===_0x2c27e5(0x20f)&&(process[_0x2c27e5(0x212)][_0x2c27e5(0x208)](_0x2c27e5(0x1fb)),process['exit'](0x0));console[_0x2c27e5(0x213)](_0x2c27e5(0x202)+_0x5286ee[_0x2c27e5(0x1f6)]);if(_0x5286ee['hint'])console[_0x2c27e5(0x213)](_0x2c27e5(0x20d)+_0x5286ee[_0x2c27e5(0x1f2)]);process[_0x2c27e5(0x20a)](_0x5286ee[_0x2c27e5(0x1ef)]);}isUserCancellation(_0x5286ee)&&(process[_0x2c27e5(0x212)][_0x2c27e5(0x208)]('\x0aCancelled.\x0a'),process[_0x2c27e5(0x20a)](0x0)),console[_0x2c27e5(0x213)](_0x2c27e5(0x1f4),_0x5286ee),process[_0x2c27e5(0x20a)](0x1);}function isUserCancellation(_0x51238b){const _0x1d1d7e=a0_0x4b582b;if(!(_0x51238b instanceof Error))return![];if(_0x51238b['name']===_0x1d1d7e(0x214))return!![];if(_0x51238b[_0x1d1d7e(0x1f0)]==='ERR_USE_AFTER_CLOSE')return!![];if(_0x51238b[_0x1d1d7e(0x1f0)]===_0x1d1d7e(0x216))return!![];return![];}
@@ -1 +1 @@
1
- const a1_0xec6cdf=a1_0xfaa4;function a1_0xfaa4(_0x479b70,_0x2e27e0){_0x479b70=_0x479b70-0xb9;const _0x5a22dc=a1_0x5a22();let _0xfaa4da=_0x5a22dc[_0x479b70];return _0xfaa4da;}(function(_0x239f47,_0x42afa7){const _0x226d9e=a1_0xfaa4,_0x9f3954=_0x239f47();while(!![]){try{const _0x1f2413=parseInt(_0x226d9e(0x131))/0x1+-parseInt(_0x226d9e(0xf2))/0x2+parseInt(_0x226d9e(0xe5))/0x3+parseInt(_0x226d9e(0xbe))/0x4*(-parseInt(_0x226d9e(0xc1))/0x5)+parseInt(_0x226d9e(0x11e))/0x6*(parseInt(_0x226d9e(0xd4))/0x7)+-parseInt(_0x226d9e(0x12a))/0x8+parseInt(_0x226d9e(0xc8))/0x9;if(_0x1f2413===_0x42afa7)break;else _0x9f3954['push'](_0x9f3954['shift']());}catch(_0x40b0d9){_0x9f3954['push'](_0x9f3954['shift']());}}}(a1_0x5a22,0xf1f5d));import{CliErrors}from'../../errors.js';const CATEGORY_FLAG={'name':a1_0xec6cdf(0x11a),'type':a1_0xec6cdf(0xe4),'description':a1_0xec6cdf(0xec)},KEYWORD_FLAG={'name':a1_0xec6cdf(0x112),'type':a1_0xec6cdf(0xe4),'description':'Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text'},DOC_CODE_FLAG={'name':a1_0xec6cdf(0x108),'type':a1_0xec6cdf(0xe4),'required':!![],'description':a1_0xec6cdf(0xde)},DOCS=[{'code':a1_0xec6cdf(0xdf),'category':a1_0xec6cdf(0xba),'title':a1_0xec6cdf(0x10d),'method':a1_0xec6cdf(0x134),'path':a1_0xec6cdf(0x109),'summary':a1_0xec6cdf(0x123),'whenToUse':a1_0xec6cdf(0x12b),'pathParams':[],'queryParams':[],'bodySchema':'{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','responseHighlights':['tableData\x20contains\x20dataset\x20id/code/name',a1_0xec6cdf(0xf1)],'examples':[a1_0xec6cdf(0x110)],'notes':['CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.'],'markdown':[a1_0xec6cdf(0xfc),'',a1_0xec6cdf(0x128)][a1_0xec6cdf(0x100)]('\x0a')},{'code':a1_0xec6cdf(0x10b),'category':a1_0xec6cdf(0xba),'title':a1_0xec6cdf(0x114),'method':a1_0xec6cdf(0x138),'path':a1_0xec6cdf(0x119),'summary':'获取数据集详情','whenToUse':a1_0xec6cdf(0x12f),'pathParams':[],'queryParams':[{'name':'code','description':a1_0xec6cdf(0x129)}],'bodySchema':a1_0xec6cdf(0xf0),'responseHighlights':[a1_0xec6cdf(0xcf),a1_0xec6cdf(0xd8),a1_0xec6cdf(0xe6)],'examples':['lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>'],'notes':[a1_0xec6cdf(0x111)],'markdown':['##\x20Dataset\x20detail','',a1_0xec6cdf(0xcc)][a1_0xec6cdf(0x100)]('\x0a')},{'code':a1_0xec6cdf(0xea),'category':'dataset','title':a1_0xec6cdf(0xfa),'method':a1_0xec6cdf(0x134),'path':a1_0xec6cdf(0xf5),'summary':'条件过滤查询数据','whenToUse':a1_0xec6cdf(0xcb),'pathParams':[{'name':'appCode','description':a1_0xec6cdf(0xef)},{'name':'datasetCode','description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':a1_0xec6cdf(0xf7),'responseHighlights':['tableData\x20contains\x20records',a1_0xec6cdf(0xc7)],'examples':[a1_0xec6cdf(0x132)],'notes':[a1_0xec6cdf(0xe3)],'markdown':['##\x20Filter\x20dataset\x20data','',a1_0xec6cdf(0x101)]['join']('\x0a')},{'code':a1_0xec6cdf(0x126),'category':a1_0xec6cdf(0xba),'title':a1_0xec6cdf(0xed),'method':'POST','path':a1_0xec6cdf(0xeb),'summary':a1_0xec6cdf(0xff),'whenToUse':a1_0xec6cdf(0x11b),'pathParams':[{'name':a1_0xec6cdf(0x11f),'description':a1_0xec6cdf(0xef)},{'name':a1_0xec6cdf(0xf9),'description':a1_0xec6cdf(0x129)}],'queryParams':[],'bodySchema':a1_0xec6cdf(0x105),'responseHighlights':[a1_0xec6cdf(0xc4),a1_0xec6cdf(0xbc)],'examples':[a1_0xec6cdf(0xe1)],'notes':['Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.',a1_0xec6cdf(0xbb)],'markdown':[a1_0xec6cdf(0x135),'',a1_0xec6cdf(0x127)]['join']('\x0a')},{'code':a1_0xec6cdf(0x10c),'category':a1_0xec6cdf(0xba),'title':a1_0xec6cdf(0x10e),'method':a1_0xec6cdf(0x134),'path':a1_0xec6cdf(0xd2),'summary':a1_0xec6cdf(0xca),'whenToUse':'已经知道记录\x20id,需要按数据集读取单条业务数据时使用','pathParams':[{'name':a1_0xec6cdf(0x11f),'description':a1_0xec6cdf(0xef)},{'name':a1_0xec6cdf(0xf9),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':'{\x22id\x22:123}','responseHighlights':[a1_0xec6cdf(0xd1)],'examples':[a1_0xec6cdf(0xee)],'notes':[a1_0xec6cdf(0xf6)],'markdown':a1_0xec6cdf(0xdb)},{'code':a1_0xec6cdf(0xc6),'category':a1_0xec6cdf(0xba),'title':a1_0xec6cdf(0xe7),'method':a1_0xec6cdf(0x134),'path':a1_0xec6cdf(0xd0),'summary':a1_0xec6cdf(0x11c),'whenToUse':a1_0xec6cdf(0x12d),'pathParams':[{'name':'appCode','description':'Current\x20app\x20code'},{'name':a1_0xec6cdf(0xf9),'description':a1_0xec6cdf(0x129)}],'queryParams':[],'bodySchema':a1_0xec6cdf(0xb9),'responseHighlights':[a1_0xec6cdf(0xe8)],'examples':[a1_0xec6cdf(0x130)],'notes':[a1_0xec6cdf(0x10a)],'markdown':a1_0xec6cdf(0x116)},{'code':a1_0xec6cdf(0xfb),'category':'bf','title':a1_0xec6cdf(0xd7),'method':a1_0xec6cdf(0x138),'path':a1_0xec6cdf(0x125),'summary':a1_0xec6cdf(0x137),'whenToUse':a1_0xec6cdf(0xce),'pathParams':[{'name':'appCode','description':a1_0xec6cdf(0xef)}],'queryParams':[],'bodySchema':a1_0xec6cdf(0xf0),'responseHighlights':[a1_0xec6cdf(0xd9)],'examples':['lovrabet\x20bff\x20detail\x20--id\x20<scriptId>\x20--appcode\x20<appCode>'],'notes':[a1_0xec6cdf(0xfe)],'markdown':a1_0xec6cdf(0x103)},{'code':a1_0xec6cdf(0x122),'category':'bf','title':'Execute\x20BF\x20endpoint\x20function','method':a1_0xec6cdf(0x134),'path':a1_0xec6cdf(0xfd),'summary':a1_0xec6cdf(0x117),'whenToUse':a1_0xec6cdf(0xda),'pathParams':[{'name':'appCode','description':'Current\x20app\x20code'},{'name':a1_0xec6cdf(0xc2),'description':a1_0xec6cdf(0xdc)}],'queryParams':[],'bodySchema':a1_0xec6cdf(0xbf),'responseHighlights':['Returns\x20script\x20business\x20payload'],'examples':[a1_0xec6cdf(0x118)],'notes':[a1_0xec6cdf(0x136)],'markdown':a1_0xec6cdf(0xd3)},{'code':a1_0xec6cdf(0x10f),'category':a1_0xec6cdf(0xbd),'title':a1_0xec6cdf(0xc9),'method':'POST','path':a1_0xec6cdf(0x107),'summary':a1_0xec6cdf(0xc3),'whenToUse':a1_0xec6cdf(0xc5),'pathParams':[],'queryParams':[],'bodySchema':a1_0xec6cdf(0x113),'responseHighlights':[a1_0xec6cdf(0xe9)],'examples':[a1_0xec6cdf(0x12c)],'notes':[a1_0xec6cdf(0x12e)],'markdown':a1_0xec6cdf(0xf4)}];function entrySummary(_0x2a1820){const _0x4777dc=a1_0xec6cdf;return{'code':_0x2a1820[_0x4777dc(0x108)],'category':_0x2a1820[_0x4777dc(0x11a)],'method':_0x2a1820[_0x4777dc(0x121)],'path':_0x2a1820[_0x4777dc(0xd5)],'summary':_0x2a1820[_0x4777dc(0x104)],'whenToUse':_0x2a1820[_0x4777dc(0x102)]};}export function listApiDocEntries(_0xb163ed={}){const _0x32d7cb=a1_0xec6cdf,_0x588b8f=String(_0xb163ed[_0x32d7cb(0x11a)]||'')['trim'](),_0x22dab2=String(_0xb163ed[_0x32d7cb(0x112)]||'')['trim']()['toLowerCase']();return DOCS[_0x32d7cb(0x120)](_0x14d4fd=>{const _0x476776=_0x32d7cb;if(_0x588b8f&&_0x14d4fd[_0x476776(0x11a)]!==_0x588b8f)return![];if(!_0x22dab2)return!![];return[_0x14d4fd['code'],_0x14d4fd[_0x476776(0x11a)],_0x14d4fd[_0x476776(0x121)],_0x14d4fd[_0x476776(0xd5)],_0x14d4fd[_0x476776(0x104)],_0x14d4fd[_0x476776(0x102)],_0x14d4fd[_0x476776(0xc0)]][_0x476776(0x100)]('\x20')['toLowerCase']()[_0x476776(0x11d)](_0x22dab2);})['map'](entrySummary);}function a1_0x5a22(){const _0x1e29a7=['None','paging.totalCount\x20gives\x20total\x20rows','657574yemtor','length','##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.','/api/{appCode}/{datasetCode}/filter','Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.','{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','API\x20doc\x20code\x20not\x20found:\x20','datasetCode','Filter\x20dataset\x20data','bf_function_list','##\x20List\x20datasets','/api/endpoint/{appCode}/{scriptName}','CLI\x20has\x20typed\x20`bff\x20detail`\x20and\x20`bff\x20exec`\x20commands\x20for\x20endpoint\x20scripts.','聚合查询数据集数据','join','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.','whenToUse','##\x20List\x20BF\x20endpoint\x20functions\x0a\x0aDiscover\x20executable\x20endpoint\x20functions.','summary','{\x22aggregate\x22:[{\x22column\x22:\x20\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','List\x20available\x20runtime\x20API\x20documentation\x20entries','/api/custom/executeSql','code','/api/dataset/get-dataset-list-by-app-code','This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.','dataset_detail','dataset_data_get_one','List\x20datasets','Get\x20one\x20dataset\x20record','custom_sql_execute','lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress','If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.','keyword','{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','Dataset\x20detail','find','##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.','执行指定\x20BF\x20函数','lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27','/api/dataset/getOneByCode?code={datasetCode}','category','需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用','创建数据','includes','15942nBHdWu','appCode','filter','method','bf_execute','分页获取数据集列表','Show\x20runtime\x20API\x20documentation\x20by\x20code','/api/endpoint/{appCode}/functions','dataset_data_aggregate','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.','32-character\x20dataset\x20code','7864256PIKXUM','需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27','需要向指定数据集新增一条业务数据时使用','Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.','需要按数据集\x20code\x20获取字段、表信息、关联关系(relations)或操作定义时使用','lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27','448661mLpkCx','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:5}\x27','list','POST','##\x20Aggregate\x20dataset\x20data','Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.','获取应用下可调用的\x20BF\x20函数列表','GET','{\x22fieldName\x22:\x22value\x22}','dataset','`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','where\x20filters\x20before\x20aggregation','custom_sql','4oTppVN','{\x22param\x22:\x22value\x22}','title','63610ZgbNav','scriptName','执行自定义\x20SQL','result\x20rows\x20contain\x20aggregate\x20aliases','已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','dataset_data_create','paging\x20contains\x20pagination','546597KziGkN','Execute\x20custom\x20SQL','查询单条数据','需要携带\x20where、orderBy、分页等条件读取业务数据时使用','Inspect\x20field\x20names,\x20relations,\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.','validation','需要先确认当前应用有哪些可执行的\x20BF/ENDPOINT\x20函数,以及收敛可用\x20scriptName\x20时使用','fields/properties\x20describe\x20data\x20shape','/api/{appCode}/{datasetCode}/create','Returns\x20one\x20matching\x20business\x20record','/api/{appCode}/{datasetCode}/getOne','##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.','4319dtVPyR','path','detail','List\x20BF\x20endpoint\x20functions','relations\x20contains\x20the\x20object-shaped\x20API\x20relations\x20value\x20when\x20returned','Returns\x20endpoint\x20functionName/id/description','已经确认目标\x20BF\x20的\x20scriptName,且需要实际调用该\x20ENDPOINT\x20脚本完成业务操作时使用','##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.','Endpoint\x20function\x20name','api-doc','API\x20doc\x20code,\x20for\x20example\x20dataset_list','dataset_list','str','lovrabet\x20data\x20aggregate\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}]}\x27','read','Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.','string','500541NQpXDE','operations\x20describes\x20runtime\x20APIs','Create\x20dataset\x20record','Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result','Returns\x20SQL\x20execution\x20payload','dataset_data_filter','/api/{appCode}/{datasetCode}/aggregate','Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset','Aggregate\x20dataset\x20data','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27','Current\x20app\x20code'];a1_0x5a22=function(){return _0x1e29a7;};return a1_0x5a22();}export function getApiDocDetail(_0x31ca27){const _0x4c5d03=a1_0xec6cdf,_0x22696a=DOCS[_0x4c5d03(0x115)](_0x3e982c=>_0x3e982c[_0x4c5d03(0x108)]===_0x31ca27);if(!_0x22696a)throw CliErrors[_0x4c5d03(0xcd)](_0x4c5d03(0xf8)+_0x31ca27);return{..._0x22696a};}const apiDocList={'service':a1_0xec6cdf(0xdd),'command':a1_0xec6cdf(0x133),'description':a1_0xec6cdf(0x106),'risk':a1_0xec6cdf(0xe2),'requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0xa88a17){const _0x37befd=a1_0xec6cdf,_0x25cf94=listApiDocEntries({'category':_0xa88a17[_0x37befd(0xe0)](_0x37befd(0x11a)),'keyword':_0xa88a17['str'](_0x37befd(0x112))});return{'ok':!![],'data':{'total':_0x25cf94[_0x37befd(0xf3)],'items':_0x25cf94}};}},apiDocDetail={'service':a1_0xec6cdf(0xdd),'command':a1_0xec6cdf(0xd6),'description':a1_0xec6cdf(0x124),'risk':a1_0xec6cdf(0xe2),'requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0x21b203){const _0x45b8df=a1_0xec6cdf;return{'ok':!![],'data':getApiDocDetail(_0x21b203[_0x45b8df(0xe0)](_0x45b8df(0x108)))};}};export const apiDocDefinitions=[apiDocList,apiDocDetail];
1
+ const a1_0x5919eb=a1_0x3c10;(function(_0x3c0e42,_0x3b73d9){const _0x4b20e9=a1_0x3c10,_0x37458e=_0x3c0e42();while(!![]){try{const _0x2356ba=parseInt(_0x4b20e9(0x8e))/0x1*(parseInt(_0x4b20e9(0xdf))/0x2)+parseInt(_0x4b20e9(0x73))/0x3+-parseInt(_0x4b20e9(0xde))/0x4+parseInt(_0x4b20e9(0xc2))/0x5*(-parseInt(_0x4b20e9(0xd1))/0x6)+parseInt(_0x4b20e9(0x75))/0x7+parseInt(_0x4b20e9(0xc1))/0x8*(-parseInt(_0x4b20e9(0xa8))/0x9)+parseInt(_0x4b20e9(0x84))/0xa;if(_0x2356ba===_0x3b73d9)break;else _0x37458e['push'](_0x37458e['shift']());}catch(_0x5cef16){_0x37458e['push'](_0x37458e['shift']());}}}(a1_0x3039,0xe99d8));import{CliErrors}from'../../errors.js';const CATEGORY_FLAG={'name':a1_0x5919eb(0x74),'type':a1_0x5919eb(0xba),'description':'Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset'},KEYWORD_FLAG={'name':a1_0x5919eb(0xe1),'type':'string','description':a1_0x5919eb(0xcd)},DOC_CODE_FLAG={'name':a1_0x5919eb(0x91),'type':a1_0x5919eb(0xba),'required':!![],'description':a1_0x5919eb(0x7b)},DOCS=[{'code':a1_0x5919eb(0xbd),'category':a1_0x5919eb(0x9a),'title':a1_0x5919eb(0x8f),'method':a1_0x5919eb(0xac),'path':a1_0x5919eb(0xa9),'summary':a1_0x5919eb(0xa4),'whenToUse':a1_0x5919eb(0xb1),'pathParams':[],'queryParams':[],'bodySchema':a1_0x5919eb(0xd6),'responseHighlights':[a1_0x5919eb(0x93),'paging.totalCount\x20gives\x20total\x20rows'],'examples':[a1_0x5919eb(0xd8)],'notes':[a1_0x5919eb(0xcb)],'markdown':['##\x20List\x20datasets','',a1_0x5919eb(0xd2)][a1_0x5919eb(0xe2)]('\x0a')},{'code':a1_0x5919eb(0xcc),'category':a1_0x5919eb(0x9a),'title':a1_0x5919eb(0xb3),'method':a1_0x5919eb(0xd9),'path':a1_0x5919eb(0x8d),'summary':'获取数据集详情','whenToUse':a1_0x5919eb(0xdd),'pathParams':[],'queryParams':[{'name':'code','description':a1_0x5919eb(0x8c)}],'bodySchema':a1_0x5919eb(0x99),'responseHighlights':[a1_0x5919eb(0xdb),a1_0x5919eb(0xd5),'operations\x20describes\x20runtime\x20APIs'],'examples':[a1_0x5919eb(0xbb)],'notes':[a1_0x5919eb(0x92)],'markdown':[a1_0x5919eb(0xab),'',a1_0x5919eb(0x7a)][a1_0x5919eb(0xe2)]('\x0a')},{'code':a1_0x5919eb(0x7f),'category':a1_0x5919eb(0x9a),'title':a1_0x5919eb(0xc3),'method':a1_0x5919eb(0xac),'path':a1_0x5919eb(0x95),'summary':'条件过滤查询数据','whenToUse':a1_0x5919eb(0x96),'pathParams':[{'name':a1_0x5919eb(0x8a),'description':a1_0x5919eb(0xc4)},{'name':a1_0x5919eb(0x82),'description':a1_0x5919eb(0x8c)}],'queryParams':[],'bodySchema':'{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','responseHighlights':[a1_0x5919eb(0x9e),a1_0x5919eb(0xc6)],'examples':[a1_0x5919eb(0x9b)],'notes':[a1_0x5919eb(0xb8)],'markdown':[a1_0x5919eb(0xb0),'','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.']['join']('\x0a')},{'code':'dataset_data_aggregate','category':'dataset','title':a1_0x5919eb(0x80),'method':a1_0x5919eb(0xac),'path':'/api/{appCode}/{datasetCode}/aggregate','summary':a1_0x5919eb(0xaf),'whenToUse':a1_0x5919eb(0xc5),'pathParams':[{'name':'appCode','description':a1_0x5919eb(0xc4)},{'name':a1_0x5919eb(0x82),'description':a1_0x5919eb(0x8c)}],'queryParams':[],'bodySchema':'{\x22aggregate\x22:[{\x22column\x22:\x20\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','responseHighlights':[a1_0x5919eb(0xb2),'where\x20filters\x20before\x20aggregation'],'examples':[a1_0x5919eb(0xa2)],'notes':[a1_0x5919eb(0x89),a1_0x5919eb(0xd4)],'markdown':[a1_0x5919eb(0xdc),'','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.'][a1_0x5919eb(0xe2)]('\x0a')},{'code':a1_0x5919eb(0x7d),'category':a1_0x5919eb(0x9a),'title':'Get\x20one\x20dataset\x20record','method':a1_0x5919eb(0xac),'path':a1_0x5919eb(0xa3),'summary':a1_0x5919eb(0xc9),'whenToUse':a1_0x5919eb(0xc7),'pathParams':[{'name':a1_0x5919eb(0x8a),'description':'Current\x20app\x20code'},{'name':a1_0x5919eb(0x82),'description':a1_0x5919eb(0x8c)}],'queryParams':[],'bodySchema':a1_0x5919eb(0xc8),'responseHighlights':[a1_0x5919eb(0xbc)],'examples':['lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27'],'notes':['Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.'],'markdown':a1_0x5919eb(0x71)},{'code':a1_0x5919eb(0xe0),'category':a1_0x5919eb(0x9a),'title':a1_0x5919eb(0xcf),'method':a1_0x5919eb(0xac),'path':a1_0x5919eb(0xbe),'summary':a1_0x5919eb(0x7e),'whenToUse':'需要向指定数据集新增一条业务数据时使用','pathParams':[{'name':a1_0x5919eb(0x8a),'description':a1_0x5919eb(0xc4)},{'name':a1_0x5919eb(0x82),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':a1_0x5919eb(0x77),'responseHighlights':[a1_0x5919eb(0xae)],'examples':[a1_0x5919eb(0x97)],'notes':['This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.'],'markdown':'##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.'},{'code':a1_0x5919eb(0xa0),'category':'bf','title':'List\x20BF\x20endpoint\x20functions','method':'GET','path':a1_0x5919eb(0x90),'summary':a1_0x5919eb(0x9f),'whenToUse':'需要先确认当前应用有哪些可执行的\x20BF/ENDPOINT\x20函数,以及收敛可用\x20scriptName\x20时使用','pathParams':[{'name':a1_0x5919eb(0x8a),'description':a1_0x5919eb(0xc4)}],'queryParams':[],'bodySchema':a1_0x5919eb(0x99),'responseHighlights':[a1_0x5919eb(0xce)],'examples':['lovrabet\x20bff\x20detail\x20--id\x20<scriptId>\x20--appcode\x20<appCode>'],'notes':[a1_0x5919eb(0xa7)],'markdown':a1_0x5919eb(0xaa)},{'code':a1_0x5919eb(0x94),'category':'bf','title':'Execute\x20BF\x20endpoint\x20function','method':'POST','path':'/api/endpoint/{appCode}/{scriptName}','summary':a1_0x5919eb(0xd0),'whenToUse':a1_0x5919eb(0xb5),'pathParams':[{'name':a1_0x5919eb(0x8a),'description':a1_0x5919eb(0xc4)},{'name':a1_0x5919eb(0x72),'description':a1_0x5919eb(0x86)}],'queryParams':[],'bodySchema':'{\x22param\x22:\x22value\x22}','responseHighlights':[a1_0x5919eb(0xda)],'examples':[a1_0x5919eb(0xb6)],'notes':[a1_0x5919eb(0xa6)],'markdown':a1_0x5919eb(0xb4)},{'code':a1_0x5919eb(0x81),'category':'custom_sql','title':a1_0x5919eb(0x9c),'method':a1_0x5919eb(0xac),'path':a1_0x5919eb(0x85),'summary':a1_0x5919eb(0xb9),'whenToUse':a1_0x5919eb(0x6f),'pathParams':[],'queryParams':[],'bodySchema':a1_0x5919eb(0x98),'responseHighlights':['Returns\x20SQL\x20execution\x20payload'],'examples':[a1_0x5919eb(0x7c)],'notes':['Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.'],'markdown':a1_0x5919eb(0xd7)}];function entrySummary(_0x383841){const _0x2763b8=a1_0x5919eb;return{'code':_0x383841[_0x2763b8(0x91)],'category':_0x383841['category'],'method':_0x383841['method'],'path':_0x383841[_0x2763b8(0x78)],'summary':_0x383841[_0x2763b8(0x87)],'whenToUse':_0x383841[_0x2763b8(0xc0)]};}function a1_0x3039(){const _0x3ed9f5=['dataset_data_filter','Aggregate\x20dataset\x20data','custom_sql_execute','datasetCode','API\x20doc\x20code\x20not\x20found:\x20','5020700OmifzL','/api/custom/executeSql','Endpoint\x20function\x20name','summary','Show\x20runtime\x20API\x20documentation\x20by\x20code','Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.','appCode','find','32-character\x20dataset\x20code','/api/dataset/getOneByCode?code={datasetCode}','1042799moRGev','List\x20datasets','/api/endpoint/{appCode}/functions','code','If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.','tableData\x20contains\x20dataset\x20id/code/name','bf_execute','/api/{appCode}/{datasetCode}/filter','需要携带\x20where、orderBy、分页等条件读取业务数据时使用','lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27','{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','None','dataset','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:5}\x27','Execute\x20custom\x20SQL','list','tableData\x20contains\x20records','获取应用下可调用的\x20BF\x20函数列表','bf_function_list','read','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','/api/{appCode}/{datasetCode}/getOne','分页获取数据集列表','List\x20available\x20runtime\x20API\x20documentation\x20entries','Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.','CLI\x20has\x20typed\x20`bff\x20detail`\x20and\x20`bff\x20exec`\x20commands\x20for\x20endpoint\x20scripts.','27ERfoan','/api/dataset/get-dataset-list-by-app-code','##\x20List\x20BF\x20endpoint\x20functions\x0a\x0aDiscover\x20executable\x20endpoint\x20functions.','##\x20Dataset\x20detail','POST','trim','Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result','聚合查询数据集数据','##\x20Filter\x20dataset\x20data','需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','result\x20rows\x20contain\x20aggregate\x20aliases','Dataset\x20detail','##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.','已经确认目标\x20BF\x20的\x20scriptName,且需要实际调用该\x20ENDPOINT\x20脚本完成业务操作时使用','lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27','detail','Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.','执行自定义\x20SQL','string','lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>','Returns\x20one\x20matching\x20business\x20record','dataset_list','/api/{appCode}/{datasetCode}/create','str','whenToUse','2636264MIuuKi','4595FIJRuM','Filter\x20dataset\x20data','Current\x20app\x20code','需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用','paging\x20contains\x20pagination','已经知道记录\x20id,需要按数据集读取单条业务数据时使用','{\x22id\x22:123}','查询单条数据','filter','CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.','dataset_detail','Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text','Returns\x20endpoint\x20functionName/id/description','Create\x20dataset\x20record','执行指定\x20BF\x20函数','4548mOVkmt','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.','api-doc','`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','relations\x20contains\x20the\x20object-shaped\x20API\x20relations\x20value\x20when\x20returned','{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.','lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress','GET','Returns\x20script\x20business\x20payload','fields/properties\x20describe\x20data\x20shape','##\x20Aggregate\x20dataset\x20data','需要按数据集\x20code\x20获取字段、表信息、关联关系(relations)或操作定义时使用','3211896PSZJDJ','2sKUsRE','dataset_data_create','keyword','join','已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','toLowerCase','##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.','scriptName','354828NkdGFV','category','12473426oDoxBp','title','{\x22fieldName\x22:\x22value\x22}','path','includes','Inspect\x20field\x20names,\x20relations,\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.','API\x20doc\x20code,\x20for\x20example\x20dataset_list','lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27','dataset_data_get_one','创建数据'];a1_0x3039=function(){return _0x3ed9f5;};return a1_0x3039();}export function listApiDocEntries(_0x1d8c22={}){const _0x4e4a95=a1_0x5919eb,_0x375c5e=String(_0x1d8c22[_0x4e4a95(0x74)]||'')[_0x4e4a95(0xad)](),_0x11d44e=String(_0x1d8c22['keyword']||'')[_0x4e4a95(0xad)]()[_0x4e4a95(0x70)]();return DOCS[_0x4e4a95(0xca)](_0x7652a4=>{const _0x3f9f68=_0x4e4a95;if(_0x375c5e&&_0x7652a4[_0x3f9f68(0x74)]!==_0x375c5e)return![];if(!_0x11d44e)return!![];return[_0x7652a4[_0x3f9f68(0x91)],_0x7652a4['category'],_0x7652a4['method'],_0x7652a4[_0x3f9f68(0x78)],_0x7652a4[_0x3f9f68(0x87)],_0x7652a4[_0x3f9f68(0xc0)],_0x7652a4[_0x3f9f68(0x76)]]['join']('\x20')[_0x3f9f68(0x70)]()[_0x3f9f68(0x79)](_0x11d44e);})['map'](entrySummary);}export function getApiDocDetail(_0x8ff89a){const _0x197e68=a1_0x5919eb,_0x25b804=DOCS[_0x197e68(0x8b)](_0x262b99=>_0x262b99[_0x197e68(0x91)]===_0x8ff89a);if(!_0x25b804)throw CliErrors['validation'](_0x197e68(0x83)+_0x8ff89a);return{..._0x25b804};}function a1_0x3c10(_0x18e2ae,_0x502ce3){_0x18e2ae=_0x18e2ae-0x6f;const _0x3039f9=a1_0x3039();let _0x3c10b7=_0x3039f9[_0x18e2ae];return _0x3c10b7;}const apiDocList={'service':a1_0x5919eb(0xd3),'command':a1_0x5919eb(0x9d),'description':a1_0x5919eb(0xa5),'risk':a1_0x5919eb(0xa1),'requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0x1e0cd0){const _0x5406a2=a1_0x5919eb,_0x20f6d1=listApiDocEntries({'category':_0x1e0cd0['str'](_0x5406a2(0x74)),'keyword':_0x1e0cd0[_0x5406a2(0xbf)]('keyword')});return{'ok':!![],'data':{'total':_0x20f6d1['length'],'items':_0x20f6d1}};}},apiDocDetail={'service':a1_0x5919eb(0xd3),'command':a1_0x5919eb(0xb7),'description':a1_0x5919eb(0x88),'risk':'read','requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0x2fcc4f){const _0x2904fb=a1_0x5919eb;return{'ok':!![],'data':getApiDocDetail(_0x2fcc4f[_0x2904fb(0xbf)](_0x2904fb(0x91)))};}};export const apiDocDefinitions=[apiDocList,apiDocDetail];
@@ -1 +1 @@
1
- function a2_0x286d(){const _0x4bf23e=['860ygIboo','EACCES','51tcqzZC','hex','parse','2286760vrOCEQ','50gpnwwc','utf8','20216tXpSZH','20716REzwBY','unknown','ak_','.tmp','isArray','3464016MEoQHr','appName','207774DYGwEh','EPERM','find','code','slice','180309opeKyT','6454392FkBYYj','my-apps.json','trim','digest','cache','stringify'];a2_0x286d=function(){return _0x4bf23e;};return a2_0x286d();}(function(_0x4c573c,_0xbd11c3){const _0x5eef16=a2_0x27f9,_0x289b16=_0x4c573c();while(!![]){try{const _0x5da5fc=-parseInt(_0x5eef16(0x86))/0x1+-parseInt(_0x5eef16(0x96))/0x2*(parseInt(_0x5eef16(0x8f))/0x3)+-parseInt(_0x5eef16(0x95))/0x4*(-parseInt(_0x5eef16(0x8d))/0x5)+parseInt(_0x5eef16(0x9b))/0x6+parseInt(_0x5eef16(0x92))/0x7+-parseInt(_0x5eef16(0x87))/0x8+parseInt(_0x5eef16(0x9d))/0x9*(-parseInt(_0x5eef16(0x93))/0xa);if(_0x5da5fc===_0xbd11c3)break;else _0x289b16['push'](_0x289b16['shift']());}catch(_0x1d0fc2){_0x289b16['push'](_0x289b16['shift']());}}}(a2_0x286d,0x78c58));import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';import{dirname,resolve}from'node:path';import{PRODUCT_CONFIG}from'../../constant/product.js';function a2_0x27f9(_0x44bffe,_0x566662){_0x44bffe=_0x44bffe-0x84;const _0x286d59=a2_0x286d();let _0x27f996=_0x286d59[_0x44bffe];return _0x27f996;}import{isRuntimeAccessibleApp}from'../../commands/app/eligibility.js';export function fingerprintAccessKey(_0x1f47ec){const _0x2197be=a2_0x27f9,_0x16d99e=_0x1f47ec[_0x2197be(0x89)](),_0x1438b3=_0x16d99e[_0x2197be(0x85)](-0x6)||_0x2197be(0x97),_0x3f743f=createHash('sha256')['update'](_0x16d99e)[_0x2197be(0x8a)](_0x2197be(0x90))['slice'](0x0,0xc);return _0x2197be(0x98)+_0x1438b3+'_'+_0x3f743f;}export function getAppCacheFilePath(_0x57c29d,_0x2dd8dd){const _0x2013ac=a2_0x27f9;return resolve(homedir(),PRODUCT_CONFIG['homeDirName'],_0x2013ac(0x8b),_0x57c29d,fingerprintAccessKey(_0x2dd8dd),_0x2013ac(0x88));}export function readCachedAppList(_0xa2f08e,_0x500f4e){const _0x1532b5=a2_0x27f9;if(!_0x500f4e?.[_0x1532b5(0x89)]())return null;const _0x219b81=getAppCacheFilePath(_0xa2f08e,_0x500f4e);if(!existsSync(_0x219b81))return null;try{const _0x17497b=readFileSync(_0x219b81,'utf8');if(!_0x17497b[_0x1532b5(0x89)]())return null;const _0x5325e8=JSON[_0x1532b5(0x91)](_0x17497b);if(!Array[_0x1532b5(0x9a)](_0x5325e8['items']))return null;return _0x5325e8;}catch{return null;}}export function writeCachedAppList(_0x59c571,_0x4b8bef,_0x132ee8){const _0x5a3d95=a2_0x27f9,_0x433c4c=getAppCacheFilePath(_0x59c571,_0x4b8bef),_0x510c31=dirname(_0x433c4c);!existsSync(_0x510c31)&&mkdirSync(_0x510c31,{'recursive':!![]});const _0x176f51=_0x433c4c+_0x5a3d95(0x99);try{writeFileSync(_0x176f51,JSON[_0x5a3d95(0x8c)](_0x132ee8,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x176f51,_0x433c4c);}catch(_0x5ab293){if(_0x5ab293[_0x5a3d95(0x84)]===_0x5a3d95(0x9e)||_0x5ab293[_0x5a3d95(0x84)]==='EXDEV'||_0x5ab293[_0x5a3d95(0x84)]===_0x5a3d95(0x8e)){writeFileSync(_0x433c4c,JSON[_0x5a3d95(0x8c)](_0x132ee8,null,0x2)+'\x0a',{'encoding':_0x5a3d95(0x94)});try{unlinkSync(_0x176f51);}catch{}}else throw _0x5ab293;}}catch(_0x5a7330){try{unlinkSync(_0x176f51);}catch{}throw _0x5a7330;}return _0x433c4c;}export function resolveCachedAppCode(_0x9c7a3d,_0x5b4e27,_0x5b403c){const _0x29d5b9=a2_0x27f9;if(!_0x9c7a3d)return undefined;const _0x685060=readCachedAppList(_0x5b4e27,_0x5b403c),_0x1ab4bd=_0x685060?.['items'][_0x29d5b9(0x9f)](_0x9450ea=>_0x9450ea[_0x29d5b9(0x9c)]===_0x9c7a3d&&isRuntimeAccessibleApp(_0x9450ea));return _0x1ab4bd?.['appCode']?.[_0x29d5b9(0x89)]()||undefined;}
1
+ (function(_0x17b5e7,_0x3d5022){const _0x51f600=a2_0xe406,_0x5e04d9=_0x17b5e7();while(!![]){try{const _0x629997=parseInt(_0x51f600(0xd5))/0x1+-parseInt(_0x51f600(0xe1))/0x2+parseInt(_0x51f600(0xdd))/0x3+-parseInt(_0x51f600(0xea))/0x4+-parseInt(_0x51f600(0xf2))/0x5+-parseInt(_0x51f600(0xda))/0x6*(parseInt(_0x51f600(0xf0))/0x7)+-parseInt(_0x51f600(0xe9))/0x8*(-parseInt(_0x51f600(0xd7))/0x9);if(_0x629997===_0x3d5022)break;else _0x5e04d9['push'](_0x5e04d9['shift']());}catch(_0x31f714){_0x5e04d9['push'](_0x5e04d9['shift']());}}}(a2_0x3bfa,0x80179));function a2_0xe406(_0x3cb5ae,_0x1642b2){_0x3cb5ae=_0x3cb5ae-0xd4;const _0x3bfaa9=a2_0x3bfa();let _0xe4065a=_0x3bfaa9[_0x3cb5ae];return _0xe4065a;}import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a2_0x3bfa(){const _0xc405a8=['3757645IgARrl','appName','125953AQMCxf','utf8','288JoLMYe','hex','homeDirName','698682HwuiVr','items','EACCES','3075681GkSUcw','parse','unknown','.tmp','939924qnEonZ','ak_','cache','my-apps.json','EXDEV','sha256','update','find','403408NgwSYu','3143048FvQSiE','trim','stringify','isArray','slice','code','14vUgghj','digest'];a2_0x3bfa=function(){return _0xc405a8;};return a2_0x3bfa();}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(_0x4ff789){const _0x67e86d=a2_0xe406,_0x2dd86f=_0x4ff789[_0x67e86d(0xeb)](),_0x5f5399=_0x2dd86f[_0x67e86d(0xee)](-0x6)||_0x67e86d(0xdf),_0x4bf18e=createHash(_0x67e86d(0xe6))[_0x67e86d(0xe7)](_0x2dd86f)[_0x67e86d(0xf1)](_0x67e86d(0xd8))['slice'](0x0,0xc);return _0x67e86d(0xe2)+_0x5f5399+'_'+_0x4bf18e;}export function getAppCacheFilePath(_0x3d5217,_0x59695d){const _0x46b5e2=a2_0xe406;return resolve(homedir(),PRODUCT_CONFIG[_0x46b5e2(0xd9)],_0x46b5e2(0xe3),_0x3d5217,fingerprintAccessKey(_0x59695d),_0x46b5e2(0xe4));}export function readCachedAppList(_0x360404,_0x7fa6cd){const _0x58c061=a2_0xe406;if(!_0x7fa6cd?.['trim']())return null;const _0x2197c9=getAppCacheFilePath(_0x360404,_0x7fa6cd);if(!existsSync(_0x2197c9))return null;try{const _0x345f16=readFileSync(_0x2197c9,_0x58c061(0xd6));if(!_0x345f16[_0x58c061(0xeb)]())return null;const _0x3a290c=JSON[_0x58c061(0xde)](_0x345f16);if(!Array[_0x58c061(0xed)](_0x3a290c['items']))return null;return _0x3a290c;}catch{return null;}}export function writeCachedAppList(_0x3c0006,_0x2e9d42,_0x3b2ba4){const _0x5e639a=a2_0xe406,_0x2524a5=getAppCacheFilePath(_0x3c0006,_0x2e9d42),_0x2b2fe7=dirname(_0x2524a5);!existsSync(_0x2b2fe7)&&mkdirSync(_0x2b2fe7,{'recursive':!![]});const _0x37d7d3=_0x2524a5+_0x5e639a(0xe0);try{writeFileSync(_0x37d7d3,JSON['stringify'](_0x3b2ba4,null,0x2)+'\x0a',{'encoding':_0x5e639a(0xd6),'mode':0x180});try{renameSync(_0x37d7d3,_0x2524a5);}catch(_0x2380c6){if(_0x2380c6[_0x5e639a(0xef)]==='EPERM'||_0x2380c6[_0x5e639a(0xef)]===_0x5e639a(0xe5)||_0x2380c6['code']===_0x5e639a(0xdc)){writeFileSync(_0x2524a5,JSON[_0x5e639a(0xec)](_0x3b2ba4,null,0x2)+'\x0a',{'encoding':_0x5e639a(0xd6)});try{unlinkSync(_0x37d7d3);}catch{}}else throw _0x2380c6;}}catch(_0x4946d8){try{unlinkSync(_0x37d7d3);}catch{}throw _0x4946d8;}return _0x2524a5;}export function resolveCachedAppCode(_0x4add65,_0x284511,_0x291db8){const _0xf83416=a2_0xe406;if(!_0x4add65)return undefined;const _0x45be12=readCachedAppList(_0x284511,_0x291db8),_0x51639f=_0x45be12?.[_0xf83416(0xdb)][_0xf83416(0xe8)](_0x547638=>_0x547638[_0xf83416(0xd4)]===_0x4add65&&isRuntimeAccessibleApp(_0x547638));return _0x51639f?.['appCode']?.['trim']()||undefined;}
@@ -1 +1 @@
1
- const a3_0xd96038=a3_0xb6c6;(function(_0x25aa63,_0x55cac4){const _0x4624c9=a3_0xb6c6,_0x48ec34=_0x25aa63();while(!![]){try{const _0x2dfffd=parseInt(_0x4624c9(0xed))/0x1+-parseInt(_0x4624c9(0xf0))/0x2*(parseInt(_0x4624c9(0xd1))/0x3)+parseInt(_0x4624c9(0xcb))/0x4*(-parseInt(_0x4624c9(0xe6))/0x5)+-parseInt(_0x4624c9(0xa4))/0x6+-parseInt(_0x4624c9(0xa1))/0x7*(parseInt(_0x4624c9(0xb8))/0x8)+-parseInt(_0x4624c9(0xc6))/0x9*(parseInt(_0x4624c9(0xd2))/0xa)+-parseInt(_0x4624c9(0xe2))/0xb*(-parseInt(_0x4624c9(0xc9))/0xc);if(_0x2dfffd===_0x55cac4)break;else _0x48ec34['push'](_0x48ec34['shift']());}catch(_0x3a6372){_0x48ec34['push'](_0x48ec34['shift']());}}}(a3_0x5ddf,0x9a1ae));import{CliErrors}from'../../errors.js';import{initCreateFlagDefs,initImportFlagDefs,runInit,runInitImport}from'../../commands/init.js';function a3_0xb6c6(_0x2721e4,_0x359bbd){_0x2721e4=_0x2721e4-0xa1;const _0x5ddf2a=a3_0x5ddf();let _0xb6c683=_0x5ddf2a[_0x2721e4];return _0xb6c683;}import{getEnv,RUNTIME_ENV_VALUES}from'../../constant/env.js';import{buildAppProfileListFields}from'../../config/schema.js';import{CLI_BIN_NAME,readConfig,writeConfig,scopeLabel,enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';function a3_0x5ddf(){const _0x16bd10=['9ECyYcN','validation','Use\x20`','275472jpqbvh','Usage:\x20','4uhBtDf','isCurrent','Read\x20app\x20list\x20from\x20local\x20cache\x20only','defaultApp','appName','i18nInfo','525948tspwGp','12122270dMPnZw','\x20app\x20use\x20<name>\x20[--global]','appOwnerName','push','find','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','no-cache','join','Missing\x20app\x20name.','write','globalPath','length','Target\x20environment\x20(default:\x20current\x20env)','.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.','use','1298lbeRNz','global','production','app','3823180SLsLGp','Loaded\x20','from','Filter\x20by\x20environment\x20(default:\x20current\x20env)','str','\x20cached\x20app(s)\x20for\x20env=\x22','Default\x20app\x20candidate\x20set\x20to\x20\x22','1257773EaaKou','env','trim','2dKBORl','\x20workspace\x20use\x20--app\x20<name>\x20[--env\x20daily]','langs','App\x20\x22','No\x20cached\x20apps\x20found.','raw','warn','name','include-unpublished','local','list','`\x20instead.','Deprecated:\x20use\x20workspace\x20init\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','No\x20apps\x20found\x20on\x20the\x20platform.','../../context.js','Remote\x20app\x20name\x20to\x20activate','105qRFrpV','source','boolean','6246378IkvdXT','Refreshed\x20app\x20cache\x20with\x20','Read\x20from\x20local\x20cache\x20only','items','\x20app(s)\x20for\x20env=\x22','\x20app\x20','\x20is\x20deprecated.\x20Use\x20`','map','Available\x20remote\x20apps:\x20','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','envName','enableI18n','fetchedAt','accessKey','filter','cache','mergedCli','read','bool','75800iZkizT','\x22\x20not\x20found.','Deprecated:\x20use\x20workspace\x20use\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','../../commands/app/remote-source.js','../../commands/app/cache.js','init','appCode','project-default','type','appPublishStatus','Use\x20global\x20config\x20scope','string','\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.','remote'];a3_0x5ddf=function(){return _0x16bd10;};return a3_0x5ddf();}import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{filterRuntimeAccessibleApps,findAppByCode,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const GLOBAL_FLAG={'name':a3_0xd96038(0xe3),'type':'boolean','description':a3_0xd96038(0xc2),'default':![]};function collectFlags(_0x2f6d27,_0x2d90f5){const _0x4868c6=a3_0xd96038,_0x4c3f66={};for(const _0x2dac8c of _0x2d90f5){const _0x468497=_0x2dac8c[_0x4868c6(0xc0)]==='boolean'?_0x2f6d27[_0x4868c6(0xb7)](_0x2dac8c[_0x4868c6(0xf7)]):_0x2f6d27[_0x4868c6(0xea)](_0x2dac8c[_0x4868c6(0xf7)]);if(_0x468497!==''&&_0x468497!==![])_0x4c3f66[_0x2dac8c[_0x4868c6(0xf7)]]=_0x468497;}if(_0x2f6d27['nonInteractive'])_0x4c3f66['nonInteractive']=!![];return _0x4c3f66;}function normalizeLanguages(_0x16e20b){const _0x163dc7=a3_0xd96038;if(!Array['isArray'](_0x16e20b))return[];return _0x16e20b['filter'](_0xa4d9=>typeof _0xa4d9==='string')['map'](_0x2e423a=>_0x2e423a['trim']())[_0x163dc7(0xb3)](Boolean);}function buildRemoteAppI18nFields(_0x48b83a){const _0x55116f=a3_0xd96038,_0x30b30e=normalizeLanguages(_0x48b83a['i18nInfo']?.[_0x55116f(0xf2)]);return{'enableI18n':typeof _0x48b83a['enableI18n']===_0x55116f(0xa3)?_0x48b83a[_0x55116f(0xb0)]:null,'languages':_0x30b30e,'i18nInfo':_0x48b83a[_0x55116f(0xd0)]?{..._0x48b83a['i18nInfo'],'langs':_0x30b30e['length']?_0x30b30e:null}:null};}const initDef={'service':a3_0xd96038(0xe5),'command':a3_0xd96038(0xbd),'description':a3_0xd96038(0xfc),'risk':a3_0xd96038(0xdc),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x225ef2){return warnDeprecatedAppCommand('init',CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>\x20[--env\x20daily]'),await runInit(collectFlags(_0x225ef2,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a3_0xd96038(0xe5),'command':a3_0xd96038(0xfa),'description':a3_0xd96038(0xd7),'risk':a3_0xd96038(0xb6),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':'env','type':'string','description':a3_0xd96038(0xe9),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0xd96038(0xf9),'type':a3_0xd96038(0xa3),'description':a3_0xd96038(0xcd),'default':![]},{'name':a3_0xd96038(0xd9),'type':'boolean','description':a3_0xd96038(0xad),'default':![]},{'name':a3_0xd96038(0xf8),'type':a3_0xd96038(0xa3),'description':'Include\x20unpublished\x20apps\x20for\x20diagnostics','default':![]}],async 'execute'(_0x179d10){const _0x15589f=a3_0xd96038,_0x5d10c0=_0x179d10[_0x15589f(0xea)](_0x15589f(0xee))||_0x179d10[_0x15589f(0xaf)]||getEnv()||_0x15589f(0xe4),_0x3386eb=_0x179d10['bool'](_0x15589f(0xf9)),_0x3d2124=_0x179d10['bool']('no-cache'),_0x392050=_0x179d10[_0x15589f(0xb7)](_0x15589f(0xf8)),{readRawConfigWithLayers:_0x48ffa7,resolveDefaultAppSource:_0x9f06aa,getLocalAppAliases:_0x126979}=await import(_0x15589f(0xfe)),{getRemoteAppList:_0x29c53e}=await import(_0x15589f(0xbb)),{config:_0x423a82,layers:_0x505c17}=_0x48ffa7(),_0x2b7e1c=_0x9f06aa(_0x505c17),{defaultApp:_0x466e2d}=_0x423a82,_0x4043c0=await _0x29c53e({'env':_0x5d10c0,'accessKey':_0x179d10[_0x15589f(0xb2)],'localOnly':_0x3386eb,'noCache':_0x3d2124}),_0x6cb73b=_0x392050?_0x4043c0['items']:filterRuntimeAccessibleApps(_0x4043c0[_0x15589f(0xa7)]),_0x36a0bb=_0x4043c0[_0x15589f(0xa7)][_0x15589f(0xde)]-_0x6cb73b['length'],_0x5b0833=_0x6cb73b[_0x15589f(0xab)](_0x341aa1=>{const _0x3646d7=_0x15589f;return{'name':_0x341aa1[_0x3646d7(0xcf)],'appcode':_0x341aa1['appCode'],'named':!![],'definedIn':_0x3646d7(0xc5),'isDefault':_0x341aa1['appName']===_0x466e2d,...buildAppProfileListFields(_0x5d10c0),...buildRemoteAppI18nFields(_0x341aa1),'source':_0x4043c0[_0x3646d7(0xa2)],'owner':_0x341aa1[_0x3646d7(0xd4)]??null,'status':_0x341aa1[_0x3646d7(0xc1)]??null,'cachedAt':_0x4043c0[_0x3646d7(0xb1)]};}),_0x5b1fe5=_0x126979(_0x423a82);let _0x130941=0x0;for(const [_0x50ba12,_0x111068]of Object['entries'](_0x5b1fe5)){const _0x265e31=typeof _0x111068['appcode']==='string'?_0x111068['appcode']['trim']():'';if(!_0x265e31)continue;const _0x4d8c28=findAppByCode(_0x4043c0[_0x15589f(0xa7)],_0x265e31);if(!_0x392050&&_0x4d8c28&&!isRuntimeAccessibleApp(_0x4d8c28))continue;_0x130941+=0x1,_0x5b0833[_0x15589f(0xd5)]({'name':_0x50ba12,'appcode':_0x265e31,'named':!![],'definedIn':'local','isDefault':_0x50ba12===_0x466e2d,...buildAppProfileListFields(_0x5d10c0),'source':'config','owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x5b0833,_0x179d10[_0x15589f(0xb5)]);const _0x2d72d4=_0x5b0833[_0x15589f(0xd6)](_0x5265fb=>_0x5265fb[_0x15589f(0xcc)]===!![]),_0x5dd193=_0x466e2d??_0x2d72d4?.[_0x15589f(0xf7)]??null,_0x1f0783={'env':_0x5d10c0,'source':_0x4043c0[_0x15589f(0xa2)],'fetchedAt':_0x4043c0[_0x15589f(0xb1)],'cachePath':_0x4043c0['cachePath'],'globalPath':_0x505c17[_0x15589f(0xdd)]??null,'projectPath':_0x505c17['projectPath']??null,'defaultApp':_0x5dd193,'defaultAppSource':_0x466e2d!=null?_0x2b7e1c:null,'localAliasCount':_0x130941,'remoteTotal':_0x4043c0[_0x15589f(0xa7)][_0x15589f(0xde)],'hiddenUnpublishedCount':_0x36a0bb,'includeUnpublished':_0x392050};if(_0x5b0833['length']===0x0)return{'ok':!![],'data':{'items':_0x5b0833,'meta':_0x1f0783},'message':_0x4043c0['source']==='cache'?_0x15589f(0xf4):_0x15589f(0xfd)};return{'ok':!![],'data':{'items':_0x5b0833,'meta':_0x1f0783}};}},pullDef={'service':a3_0xd96038(0xe5),'command':'pull','description':a3_0xd96038(0xae),'risk':a3_0xd96038(0xdc),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a3_0xd96038(0xee),'type':a3_0xd96038(0xc3),'description':a3_0xd96038(0xdf),'enum':[...RUNTIME_ENV_VALUES]},{'name':'local','type':'boolean','description':a3_0xd96038(0xa6),'default':![]},{'name':a3_0xd96038(0xd9),'type':'boolean','description':'Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','default':![]}],async 'execute'(_0x3f46fd){const _0x332190=a3_0xd96038,_0x3a4dd9=_0x3f46fd['str'](_0x332190(0xee))||_0x3f46fd[_0x332190(0xaf)]||getEnv()||_0x332190(0xe4),_0x4f4d15=_0x3f46fd['bool'](_0x332190(0xf9)),_0x4a73fa=_0x3f46fd[_0x332190(0xb7)](_0x332190(0xd9)),{getRemoteAppList:_0xfc59e1}=await import(_0x332190(0xbb)),_0x2d294e=await _0xfc59e1({'env':_0x3a4dd9,'accessKey':_0x3f46fd[_0x332190(0xb2)],'localOnly':_0x4f4d15,'noCache':_0x4a73fa});return{'ok':!![],'data':{'total':_0x2d294e[_0x332190(0xa7)][_0x332190(0xde)],'env':_0x3a4dd9,'source':_0x2d294e[_0x332190(0xa2)],'fetchedAt':_0x2d294e[_0x332190(0xb1)],'cachePath':_0x2d294e['cachePath']},'message':_0x2d294e[_0x332190(0xa2)]===_0x332190(0xb4)?_0x332190(0xe7)+_0x2d294e['items']['length']+_0x332190(0xeb)+_0x3a4dd9+'\x22.':_0x332190(0xa5)+_0x2d294e[_0x332190(0xa7)]['length']+_0x332190(0xa8)+_0x3a4dd9+'\x22.'};}},useDef={'service':'app','command':'use','description':a3_0xd96038(0xba),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a3_0xd96038(0xf7),'description':a3_0xd96038(0xff),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x4aa485){const _0x39432b=a3_0xd96038;if(!_0x4aa485['args'][0x0])throw CliErrors[_0x39432b(0xc7)](_0x39432b(0xdb),'Usage:\x20'+CLI_BIN_NAME+_0x39432b(0xd3));},async 'execute'(_0x2addec){const _0x13ecf8=a3_0xd96038;warnDeprecatedAppCommand(_0x13ecf8(0xe1),CLI_BIN_NAME+_0x13ecf8(0xf1));const _0x5d9afb=_0x2addec['args'][0x0];if(!_0x5d9afb)throw CliErrors[_0x13ecf8(0xc7)](_0x13ecf8(0xdb),_0x13ecf8(0xca)+CLI_BIN_NAME+_0x13ecf8(0xd3));const {buildConfigFromFlags:_0x416d4d,resolveLocalAppAliasCode:_0x2878c6}=await import(_0x13ecf8(0xfe)),{readCachedAppList:_0x138909}=await import(_0x13ecf8(0xbc)),_0x27cef0=_0x2addec[_0x13ecf8(0xea)](_0x13ecf8(0xee)),_0x296255=_0x416d4d(_0x27cef0?{'env':_0x27cef0}:{}),_0x4e5535=_0x138909(_0x296255[_0x13ecf8(0xee)],_0x296255[_0x13ecf8(0xb2)]),_0x81022b=_0x4e5535?.['items'][_0x13ecf8(0xd6)](_0x2fa6c4=>_0x2fa6c4[_0x13ecf8(0xcf)]===_0x5d9afb),_0x38661d=_0x2878c6(_0x296255[_0x13ecf8(0xf5)]??{},_0x5d9afb);if(_0x81022b&&!isRuntimeAccessibleApp(_0x81022b))throw runtimeInaccessibleAppError(_0x81022b,'\x22'+_0x5d9afb+'\x22');if(_0x38661d){const _0x3f3700=_0x4e5535?.[_0x13ecf8(0xa7)][_0x13ecf8(0xd6)](_0x17aa91=>_0x17aa91[_0x13ecf8(0xbe)]?.[_0x13ecf8(0xef)]()===_0x38661d);if(_0x3f3700&&!isRuntimeAccessibleApp(_0x3f3700))throw runtimeInaccessibleAppError(_0x3f3700,'\x22'+_0x5d9afb+'\x22');}if(!_0x81022b&&!_0x38661d&&_0x296255['defaultApp']!==_0x5d9afb){const _0x107123=[..._0x4e5535?.['items']['map'](_0x4c515d=>_0x4c515d['appName'])??[]],_0x1c3dbe=_0x107123['length']===0x0?_0x13ecf8(0xc8)+CLI_BIN_NAME+_0x13ecf8(0xc4)+_0x5d9afb+'.appcode\x20to\x20.lovrabet.json.':_0x13ecf8(0xac)+Array[_0x13ecf8(0xe8)](new Set(_0x107123))[_0x13ecf8(0xda)](',\x20')+_0x13ecf8(0xe0);throw CliErrors[_0x13ecf8(0xc7)](_0x13ecf8(0xf3)+_0x5d9afb+_0x13ecf8(0xb9),_0x1c3dbe);}const _0x5a5712=_0x2addec[_0x13ecf8(0xb7)](_0x13ecf8(0xe3));let _0x10459d;if(_0x5a5712)_0x10459d={'global':!![]};else{const {isInProject:_0x52e670}=await import(_0x13ecf8(0xfe)),_0x557b48=_0x52e670();_0x10459d=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0x13ecf8(0xbf),'inProject':_0x557b48}));}const _0x4acab2=readConfig(_0x10459d);return _0x4acab2[_0x13ecf8(0xce)]=_0x5d9afb,writeConfig(_0x4acab2,_0x10459d),{'ok':!![],'message':_0x13ecf8(0xec)+_0x5d9afb+'\x22'+scopeLabel(_0x10459d)+'.'};}};function warnDeprecatedAppCommand(_0x3772f1,_0x5b8bd9){const _0x34c7b=a3_0xd96038;console[_0x34c7b(0xf6)](CLI_BIN_NAME+_0x34c7b(0xa9)+_0x3772f1+_0x34c7b(0xaa)+_0x5b8bd9+_0x34c7b(0xfb));}const importDef={'service':a3_0xd96038(0xe5),'command':'import','description':a3_0xd96038(0xd8),'risk':a3_0xd96038(0xdc),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x394b5b){return await runInitImport(collectFlags(_0x394b5b,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
1
+ const a3_0x4eb708=a3_0x2e6d;(function(_0x5fdd14,_0x2b030a){const _0xbb291d=a3_0x2e6d,_0x3f778f=_0x5fdd14();while(!![]){try{const _0x2fcb8b=-parseInt(_0xbb291d(0xc0))/0x1+parseInt(_0xbb291d(0x9c))/0x2*(parseInt(_0xbb291d(0xa3))/0x3)+parseInt(_0xbb291d(0xd2))/0x4*(parseInt(_0xbb291d(0xa6))/0x5)+-parseInt(_0xbb291d(0xab))/0x6+-parseInt(_0xbb291d(0xc3))/0x7*(-parseInt(_0xbb291d(0x97))/0x8)+-parseInt(_0xbb291d(0xce))/0x9+-parseInt(_0xbb291d(0x8f))/0xa*(parseInt(_0xbb291d(0xb6))/0xb);if(_0x2fcb8b===_0x2b030a)break;else _0x3f778f['push'](_0x3f778f['shift']());}catch(_0x3b25f2){_0x3f778f['push'](_0x3f778f['shift']());}}}(a3_0x5141,0x300f6));import{CliErrors}from'../../errors.js';import{initCreateFlagDefs,initImportFlagDefs,runInit,runInitImport}from'../../commands/init.js';import{getEnv,RUNTIME_ENV_VALUES}from'../../constant/env.js';import{buildAppProfileListFields}from'../../config/schema.js';import{CLI_BIN_NAME,readConfig,writeConfig,scopeLabel,enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{filterRuntimeAccessibleApps,findAppByCode,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const GLOBAL_FLAG={'name':a3_0x4eb708(0xdb),'type':'boolean','description':a3_0x4eb708(0xb9),'default':![]};function collectFlags(_0x450618,_0x42c9a3){const _0x138139=a3_0x4eb708,_0x4143e0={};for(const _0x5f0f20 of _0x42c9a3){const _0x54fdad=_0x5f0f20[_0x138139(0x88)]===_0x138139(0xd9)?_0x450618[_0x138139(0xbd)](_0x5f0f20[_0x138139(0xbf)]):_0x450618[_0x138139(0xad)](_0x5f0f20[_0x138139(0xbf)]);if(_0x54fdad!==''&&_0x54fdad!==![])_0x4143e0[_0x5f0f20['name']]=_0x54fdad;}if(_0x450618[_0x138139(0x8b)])_0x4143e0[_0x138139(0x8b)]=!![];return _0x4143e0;}function normalizeLanguages(_0x3892a4){const _0x3b9cf5=a3_0x4eb708;if(!Array[_0x3b9cf5(0xc7)](_0x3892a4))return[];return _0x3892a4[_0x3b9cf5(0xa2)](_0x40890b=>typeof _0x40890b===_0x3b9cf5(0x90))[_0x3b9cf5(0xd7)](_0x387bfd=>_0x387bfd[_0x3b9cf5(0x91)]())[_0x3b9cf5(0xa2)](Boolean);}function a3_0x5141(){const _0xc0c01f=['18rwNWdv','envName','Remote\x20app\x20name\x20to\x20activate','25210kEPqru','source','pull','Usage:\x20','cachePath','168504ZyfuRx','validation','str','remote','no-cache','\x20workspace\x20use\x20--app\x20<name>\x20[--env\x20daily]','production','.appcode\x20to\x20.lovrabet.json.','Loaded\x20','Missing\x20app\x20name.','push','77fvlgQI','../../commands/app/cache.js','No\x20cached\x20apps\x20found.','Use\x20global\x20config\x20scope','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.','Available\x20remote\x20apps:\x20','bool','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','name','73954FyTREk','read','defaultApp','203lzOaNt','appCode','find','\x20app(s)\x20for\x20env=\x22','isArray','Use\x20`','\x20app\x20use\x20<name>\x20[--global]','.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.','raw','appName','Refreshed\x20app\x20cache\x20with\x20','939312gJCCVP','project-default','cache','enableI18n','212gviReo','\x20is\x20deprecated.\x20Use\x20`','i18nInfo','Read\x20from\x20local\x20cache\x20only','../../commands/app/remote-source.js','map','accessKey','boolean','env','global','Target\x20environment\x20(default:\x20current\x20env)','langs','warn','local','Read\x20app\x20list\x20from\x20local\x20cache\x20only','join','args','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','fetchedAt','\x22\x20not\x20found.','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','type','init','include-unpublished','nonInteractive','\x20workspace\x20init\x20--appcode\x20<code>\x20[--env\x20daily]','length','isCurrent','222770nixzTt','string','trim','Default\x20app\x20candidate\x20set\x20to\x20\x22','import','use','\x20cached\x20app(s)\x20for\x20env=\x22','items','59608djmsUR','../../context.js','Filter\x20by\x20environment\x20(default:\x20current\x20env)','mergedCli','entries','25298SlGDlq','No\x20apps\x20found\x20on\x20the\x20platform.','Include\x20unpublished\x20apps\x20for\x20diagnostics','appPublishStatus','write','app','filter'];a3_0x5141=function(){return _0xc0c01f;};return a3_0x5141();}function buildRemoteAppI18nFields(_0x58561d){const _0x3ef25c=a3_0x4eb708,_0x537af5=normalizeLanguages(_0x58561d[_0x3ef25c(0xd4)]?.[_0x3ef25c(0xdd)]);return{'enableI18n':typeof _0x58561d['enableI18n']===_0x3ef25c(0xd9)?_0x58561d[_0x3ef25c(0xd1)]:null,'languages':_0x537af5,'i18nInfo':_0x58561d[_0x3ef25c(0xd4)]?{..._0x58561d[_0x3ef25c(0xd4)],'langs':_0x537af5[_0x3ef25c(0x8d)]?_0x537af5:null}:null};}const initDef={'service':a3_0x4eb708(0xa1),'command':a3_0x4eb708(0x89),'description':'Deprecated:\x20use\x20workspace\x20init\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','risk':a3_0x4eb708(0xa0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x5b6fb8){const _0x5903f1=a3_0x4eb708;return warnDeprecatedAppCommand(_0x5903f1(0x89),CLI_BIN_NAME+_0x5903f1(0x8c)),await runInit(collectFlags(_0x5b6fb8,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a3_0x4eb708(0xa1),'command':'list','description':a3_0x4eb708(0xe3),'risk':a3_0x4eb708(0xc1),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a3_0x4eb708(0xda),'type':a3_0x4eb708(0x90),'description':a3_0x4eb708(0x99),'enum':[...RUNTIME_ENV_VALUES]},{'name':'local','type':'boolean','description':a3_0x4eb708(0xe0),'default':![]},{'name':'no-cache','type':a3_0x4eb708(0xd9),'description':a3_0x4eb708(0xbe),'default':![]},{'name':a3_0x4eb708(0x8a),'type':a3_0x4eb708(0xd9),'description':a3_0x4eb708(0x9e),'default':![]}],async 'execute'(_0x256e6d){const _0x4194af=a3_0x4eb708,_0x3049a1=_0x256e6d[_0x4194af(0xad)](_0x4194af(0xda))||_0x256e6d[_0x4194af(0xa4)]||getEnv()||_0x4194af(0xb1),_0x196e22=_0x256e6d[_0x4194af(0xbd)](_0x4194af(0xdf)),_0x1aebc9=_0x256e6d[_0x4194af(0xbd)](_0x4194af(0xaf)),_0x22df6a=_0x256e6d[_0x4194af(0xbd)]('include-unpublished'),{readRawConfigWithLayers:_0x201b9b,resolveDefaultAppSource:_0x4c9130,getLocalAppAliases:_0x4727eb}=await import(_0x4194af(0x98)),{getRemoteAppList:_0x2fc3d6}=await import('../../commands/app/remote-source.js'),{config:_0x434e27,layers:_0x912dc}=_0x201b9b(),_0x27d054=_0x4c9130(_0x912dc),{defaultApp:_0x3e9c01}=_0x434e27,_0x57c61c=await _0x2fc3d6({'env':_0x3049a1,'accessKey':_0x256e6d['accessKey'],'localOnly':_0x196e22,'noCache':_0x1aebc9}),_0x39e98e=_0x22df6a?_0x57c61c[_0x4194af(0x96)]:filterRuntimeAccessibleApps(_0x57c61c[_0x4194af(0x96)]),_0x23798e=_0x57c61c[_0x4194af(0x96)]['length']-_0x39e98e['length'],_0x290f8b=_0x39e98e[_0x4194af(0xd7)](_0x5b13e6=>{const _0x22403e=_0x4194af;return{'name':_0x5b13e6[_0x22403e(0xcc)],'appcode':_0x5b13e6[_0x22403e(0xc4)],'named':!![],'definedIn':_0x22403e(0xae),'isDefault':_0x5b13e6[_0x22403e(0xcc)]===_0x3e9c01,...buildAppProfileListFields(_0x3049a1),...buildRemoteAppI18nFields(_0x5b13e6),'source':_0x57c61c[_0x22403e(0xa7)],'owner':_0x5b13e6['appOwnerName']??null,'status':_0x5b13e6[_0x22403e(0x9f)]??null,'cachedAt':_0x57c61c[_0x22403e(0xe4)]};}),_0x55df7f=_0x4727eb(_0x434e27);let _0x5d0f35=0x0;for(const [_0x37e06a,_0x23a42f]of Object[_0x4194af(0x9b)](_0x55df7f)){const _0x473ebb=typeof _0x23a42f['appcode']===_0x4194af(0x90)?_0x23a42f['appcode'][_0x4194af(0x91)]():'';if(!_0x473ebb)continue;const _0xf23a64=findAppByCode(_0x57c61c[_0x4194af(0x96)],_0x473ebb);if(!_0x22df6a&&_0xf23a64&&!isRuntimeAccessibleApp(_0xf23a64))continue;_0x5d0f35+=0x1,_0x290f8b[_0x4194af(0xb5)]({'name':_0x37e06a,'appcode':_0x473ebb,'named':!![],'definedIn':_0x4194af(0xdf),'isDefault':_0x37e06a===_0x3e9c01,...buildAppProfileListFields(_0x3049a1),'source':'config','owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x290f8b,_0x256e6d[_0x4194af(0x9a)]);const _0x2ae4c6=_0x290f8b[_0x4194af(0xc5)](_0x4276ff=>_0x4276ff[_0x4194af(0x8e)]===!![]),_0x41917d=_0x3e9c01??_0x2ae4c6?.[_0x4194af(0xbf)]??null,_0x49d9b4={'env':_0x3049a1,'source':_0x57c61c[_0x4194af(0xa7)],'fetchedAt':_0x57c61c[_0x4194af(0xe4)],'cachePath':_0x57c61c[_0x4194af(0xaa)],'globalPath':_0x912dc['globalPath']??null,'projectPath':_0x912dc['projectPath']??null,'defaultApp':_0x41917d,'defaultAppSource':_0x3e9c01!=null?_0x27d054:null,'localAliasCount':_0x5d0f35,'remoteTotal':_0x57c61c['items'][_0x4194af(0x8d)],'hiddenUnpublishedCount':_0x23798e,'includeUnpublished':_0x22df6a};if(_0x290f8b['length']===0x0)return{'ok':!![],'data':{'items':_0x290f8b,'meta':_0x49d9b4},'message':_0x57c61c['source']===_0x4194af(0xd0)?_0x4194af(0xb8):_0x4194af(0x9d)};return{'ok':!![],'data':{'items':_0x290f8b,'meta':_0x49d9b4}};}},pullDef={'service':'app','command':a3_0x4eb708(0xa8),'description':a3_0x4eb708(0xba),'risk':a3_0x4eb708(0xa0),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a3_0x4eb708(0xda),'type':a3_0x4eb708(0x90),'description':a3_0x4eb708(0xdc),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x4eb708(0xdf),'type':'boolean','description':a3_0x4eb708(0xd5),'default':![]},{'name':a3_0x4eb708(0xaf),'type':'boolean','description':a3_0x4eb708(0xbe),'default':![]}],async 'execute'(_0x34413b){const _0x5a5f0b=a3_0x4eb708,_0x2905d6=_0x34413b[_0x5a5f0b(0xad)](_0x5a5f0b(0xda))||_0x34413b[_0x5a5f0b(0xa4)]||getEnv()||_0x5a5f0b(0xb1),_0x1dd50f=_0x34413b['bool'](_0x5a5f0b(0xdf)),_0x8f7450=_0x34413b['bool'](_0x5a5f0b(0xaf)),{getRemoteAppList:_0x123183}=await import(_0x5a5f0b(0xd6)),_0x289f1d=await _0x123183({'env':_0x2905d6,'accessKey':_0x34413b[_0x5a5f0b(0xd8)],'localOnly':_0x1dd50f,'noCache':_0x8f7450});return{'ok':!![],'data':{'total':_0x289f1d[_0x5a5f0b(0x96)][_0x5a5f0b(0x8d)],'env':_0x2905d6,'source':_0x289f1d[_0x5a5f0b(0xa7)],'fetchedAt':_0x289f1d[_0x5a5f0b(0xe4)],'cachePath':_0x289f1d[_0x5a5f0b(0xaa)]},'message':_0x289f1d[_0x5a5f0b(0xa7)]===_0x5a5f0b(0xd0)?_0x5a5f0b(0xb3)+_0x289f1d[_0x5a5f0b(0x96)][_0x5a5f0b(0x8d)]+_0x5a5f0b(0x95)+_0x2905d6+'\x22.':_0x5a5f0b(0xcd)+_0x289f1d['items'][_0x5a5f0b(0x8d)]+_0x5a5f0b(0xc6)+_0x2905d6+'\x22.'};}},useDef={'service':a3_0x4eb708(0xa1),'command':a3_0x4eb708(0x94),'description':'Deprecated:\x20use\x20workspace\x20use\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','risk':a3_0x4eb708(0xa0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a3_0x4eb708(0xbf),'description':a3_0x4eb708(0xa5),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x266fa9){const _0x516f43=a3_0x4eb708;if(!_0x266fa9[_0x516f43(0xe2)][0x0])throw CliErrors[_0x516f43(0xac)](_0x516f43(0xb4),_0x516f43(0xa9)+CLI_BIN_NAME+_0x516f43(0xc9));},async 'execute'(_0x4197b5){const _0x54d686=a3_0x4eb708;warnDeprecatedAppCommand(_0x54d686(0x94),CLI_BIN_NAME+_0x54d686(0xb0));const _0x50ef36=_0x4197b5[_0x54d686(0xe2)][0x0];if(!_0x50ef36)throw CliErrors[_0x54d686(0xac)](_0x54d686(0xb4),_0x54d686(0xa9)+CLI_BIN_NAME+'\x20app\x20use\x20<name>\x20[--global]');const {buildConfigFromFlags:_0x3c7837,resolveLocalAppAliasCode:_0x3b1380}=await import(_0x54d686(0x98)),{readCachedAppList:_0x48b540}=await import(_0x54d686(0xb7)),_0x10fed=_0x4197b5[_0x54d686(0xad)]('env'),_0x7b35d4=_0x3c7837(_0x10fed?{'env':_0x10fed}:{}),_0x4750a9=_0x48b540(_0x7b35d4[_0x54d686(0xda)],_0x7b35d4[_0x54d686(0xd8)]),_0x1f3091=_0x4750a9?.[_0x54d686(0x96)][_0x54d686(0xc5)](_0x42c8b0=>_0x42c8b0[_0x54d686(0xcc)]===_0x50ef36),_0xf7252d=_0x3b1380(_0x7b35d4[_0x54d686(0xcb)]??{},_0x50ef36);if(_0x1f3091&&!isRuntimeAccessibleApp(_0x1f3091))throw runtimeInaccessibleAppError(_0x1f3091,'\x22'+_0x50ef36+'\x22');if(_0xf7252d){const _0x1e7b31=_0x4750a9?.[_0x54d686(0x96)][_0x54d686(0xc5)](_0x3a03ed=>_0x3a03ed[_0x54d686(0xc4)]?.[_0x54d686(0x91)]()===_0xf7252d);if(_0x1e7b31&&!isRuntimeAccessibleApp(_0x1e7b31))throw runtimeInaccessibleAppError(_0x1e7b31,'\x22'+_0x50ef36+'\x22');}if(!_0x1f3091&&!_0xf7252d&&_0x7b35d4[_0x54d686(0xc2)]!==_0x50ef36){const _0x4918f2=[..._0x4750a9?.[_0x54d686(0x96)][_0x54d686(0xd7)](_0x1c5e59=>_0x1c5e59[_0x54d686(0xcc)])??[]],_0x17f734=_0x4918f2[_0x54d686(0x8d)]===0x0?_0x54d686(0xc8)+CLI_BIN_NAME+_0x54d686(0xbb)+_0x50ef36+_0x54d686(0xb2):_0x54d686(0xbc)+Array['from'](new Set(_0x4918f2))[_0x54d686(0xe1)](',\x20')+_0x54d686(0xca);throw CliErrors[_0x54d686(0xac)]('App\x20\x22'+_0x50ef36+_0x54d686(0x86),_0x17f734);}const _0x4c902b=_0x4197b5['bool']('global');let _0x2faa89;if(_0x4c902b)_0x2faa89={'global':!![]};else{const {isInProject:_0x57e9fb}=await import(_0x54d686(0x98)),_0x55baff=_0x57e9fb();_0x2faa89=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0x54d686(0xcf),'inProject':_0x55baff}));}const _0x281038=readConfig(_0x2faa89);return _0x281038['defaultApp']=_0x50ef36,writeConfig(_0x281038,_0x2faa89),{'ok':!![],'message':_0x54d686(0x92)+_0x50ef36+'\x22'+scopeLabel(_0x2faa89)+'.'};}};function warnDeprecatedAppCommand(_0x413fae,_0x3e2baa){const _0x1725ab=a3_0x4eb708;console[_0x1725ab(0xde)](CLI_BIN_NAME+'\x20app\x20'+_0x413fae+_0x1725ab(0xd3)+_0x3e2baa+'`\x20instead.');}const importDef={'service':a3_0x4eb708(0xa1),'command':a3_0x4eb708(0x93),'description':a3_0x4eb708(0x87),'risk':a3_0x4eb708(0xa0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x400c50){return await runInitImport(collectFlags(_0x400c50,initImportFlagDefs)),{'ok':!![]};}};function a3_0x2e6d(_0x355d2f,_0x49dc1c){_0x355d2f=_0x355d2f-0x86;const _0x514109=a3_0x5141();let _0x2e6d00=_0x514109[_0x355d2f];return _0x2e6d00;}export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
@@ -1 +1 @@
1
- (function(_0x54e237,_0x25c383){const _0x2cf5be=a4_0x34d8,_0x538b5c=_0x54e237();while(!![]){try{const _0x5e8e5f=-parseInt(_0x2cf5be(0x8a))/0x1*(parseInt(_0x2cf5be(0x81))/0x2)+parseInt(_0x2cf5be(0x8e))/0x3*(parseInt(_0x2cf5be(0x89))/0x4)+-parseInt(_0x2cf5be(0x93))/0x5*(-parseInt(_0x2cf5be(0x7d))/0x6)+parseInt(_0x2cf5be(0x85))/0x7*(-parseInt(_0x2cf5be(0x8d))/0x8)+-parseInt(_0x2cf5be(0x7c))/0x9+parseInt(_0x2cf5be(0x84))/0xa*(parseInt(_0x2cf5be(0x83))/0xb)+parseInt(_0x2cf5be(0x80))/0xc*(-parseInt(_0x2cf5be(0x92))/0xd);if(_0x5e8e5f===_0x25c383)break;else _0x538b5c['push'](_0x538b5c['shift']());}catch(_0x119009){_0x538b5c['push'](_0x538b5c['shift']());}}}(a4_0x3921,0xd0d7a));import{CLI_BIN_NAME}from'../../constant/cli.js';import{RUNTIME_ACCESSIBLE_APP_STATUS}from'../../constant/app.js';function a4_0x34d8(_0x1dc04f,_0x1f1e85){_0x1dc04f=_0x1dc04f-0x7b;const _0x3921cc=a4_0x3921();let _0x34d831=_0x3921cc[_0x1dc04f];return _0x34d831;}import{CliErrors}from'../../errors.js';function a4_0x3921(){const _0x9684b9=['11587450pmDKeA','9286319WkBCZu','trim','Current\x20status:\x20','\x20dataset/data/sql/bff\x20commands,\x20or\x20choose\x20a\x20published\x20app.','100utSVMW','6191DcsvKw','filter','find','8WiBXwa','154236YHwzdB','validation','App\x20','appCode','91ULyJLv','10AWmDrS','appPublishStatus','UNKNOWN','3774654OBHmRA','647526qPncKR','toUpperCase','string','89580yMTaKl','2FXEbcb','appName','11msTHVB'];a4_0x3921=function(){return _0x9684b9;};return a4_0x3921();}export function normalizeAppPublishStatus(_0x1417fc){const _0x373a34=a4_0x34d8;if(typeof _0x1417fc!==_0x373a34(0x7f))return null;const _0x362354=_0x1417fc['trim']();return _0x362354?_0x362354[_0x373a34(0x7e)]():null;}export function isRuntimeAccessibleApp(_0x489b49){const _0x181ab4=a4_0x34d8;return normalizeAppPublishStatus(_0x489b49[_0x181ab4(0x94)])===RUNTIME_ACCESSIBLE_APP_STATUS;}export function filterRuntimeAccessibleApps(_0x4e3479){const _0x34b0b5=a4_0x34d8;return _0x4e3479[_0x34b0b5(0x8b)](isRuntimeAccessibleApp);}export function findAppByName(_0x4fb424,_0x505312){const _0x5bea5d=a4_0x34d8;return _0x4fb424[_0x5bea5d(0x8c)](_0x20690f=>_0x20690f[_0x5bea5d(0x82)]===_0x505312);}export function findAppByCode(_0x3a78cf,_0x535822){const _0x58895c=a4_0x34d8,_0x818f5b=_0x535822[_0x58895c(0x86)]();if(!_0x818f5b)return undefined;return _0x3a78cf['find'](_0x455b11=>_0x455b11[_0x58895c(0x91)]?.['trim']()===_0x818f5b);}export function runtimeInaccessibleAppError(_0xb1232b,_0xe9dd1b){const _0x4242f1=a4_0x34d8,_0x5e2041=normalizeAppPublishStatus(_0xb1232b['appPublishStatus'])??_0x4242f1(0x7b);return CliErrors[_0x4242f1(0x8f)](_0x4242f1(0x90)+_0xe9dd1b+'\x20is\x20not\x20available\x20for\x20runtime\x20AI\x20access.',_0x4242f1(0x87)+_0x5e2041+'.\x20Publish\x20the\x20app\x20before\x20using\x20'+CLI_BIN_NAME+_0x4242f1(0x88));}
1
+ (function(_0x21c5e7,_0x151b39){const _0xba24ce=a4_0x1ea0,_0x473ca9=_0x21c5e7();while(!![]){try{const _0xeb961c=-parseInt(_0xba24ce(0xca))/0x1*(parseInt(_0xba24ce(0xba))/0x2)+-parseInt(_0xba24ce(0xc1))/0x3*(parseInt(_0xba24ce(0xb2))/0x4)+-parseInt(_0xba24ce(0xc2))/0x5+-parseInt(_0xba24ce(0xc3))/0x6*(-parseInt(_0xba24ce(0xbb))/0x7)+-parseInt(_0xba24ce(0xbd))/0x8+parseInt(_0xba24ce(0xc0))/0x9*(-parseInt(_0xba24ce(0xc8))/0xa)+-parseInt(_0xba24ce(0xc9))/0xb*(-parseInt(_0xba24ce(0xbf))/0xc);if(_0xeb961c===_0x151b39)break;else _0x473ca9['push'](_0x473ca9['shift']());}catch(_0x3f21e7){_0x473ca9['push'](_0x473ca9['shift']());}}}(a4_0x567f,0x78754));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(_0x2bd5b6){const _0x435546=a4_0x1ea0;if(typeof _0x2bd5b6!==_0x435546(0xbe))return null;const _0x5253f4=_0x2bd5b6['trim']();return _0x5253f4?_0x5253f4[_0x435546(0xb8)]():null;}export function isRuntimeAccessibleApp(_0x330371){const _0x167d96=a4_0x1ea0;return normalizeAppPublishStatus(_0x330371[_0x167d96(0xc7)])===RUNTIME_ACCESSIBLE_APP_STATUS;}export function filterRuntimeAccessibleApps(_0x782bc2){const _0x5a8b8e=a4_0x1ea0;return _0x782bc2[_0x5a8b8e(0xc4)](isRuntimeAccessibleApp);}export function findAppByName(_0x2efb81,_0x233fb3){const _0x4e9182=a4_0x1ea0;return _0x2efb81['find'](_0x3adad5=>_0x3adad5[_0x4e9182(0xb4)]===_0x233fb3);}function a4_0x1ea0(_0x5909be,_0xb77f4a){_0x5909be=_0x5909be-0xb1;const _0x567f96=a4_0x567f();let _0x1ea07d=_0x567f96[_0x5909be];return _0x1ea07d;}export function findAppByCode(_0x5e3223,_0x3f8390){const _0x304d49=a4_0x1ea0,_0x1ee734=_0x3f8390[_0x304d49(0xb5)]();if(!_0x1ee734)return undefined;return _0x5e3223[_0x304d49(0xb7)](_0x5ba368=>_0x5ba368[_0x304d49(0xb9)]?.[_0x304d49(0xb5)]()===_0x1ee734);}export function runtimeInaccessibleAppError(_0xdb60d4,_0x24ce0e){const _0x392814=a4_0x1ea0,_0x20f0cc=normalizeAppPublishStatus(_0xdb60d4[_0x392814(0xc7)])??_0x392814(0xb3);return CliErrors[_0x392814(0xc6)](_0x392814(0xbc)+_0x24ce0e+_0x392814(0xc5),_0x392814(0xb6)+_0x20f0cc+_0x392814(0xcb)+CLI_BIN_NAME+_0x392814(0xb1));}function a4_0x567f(){const _0x36978f=['appPublishStatus','1767180ntHxzu','4077656lfFfcz','2HrgAUY','.\x20Publish\x20the\x20app\x20before\x20using\x20','\x20dataset/data/sql/bff\x20commands,\x20or\x20choose\x20a\x20published\x20app.','232vzTGyw','UNKNOWN','appName','trim','Current\x20status:\x20','find','toUpperCase','appCode','844346PBccDs','52269bJXTvG','App\x20','4486984fcZETn','string','120RVwgZH','45FdcFhQ','29811crYoNj','3944810wELAqI','354mNzfDU','filter','\x20is\x20not\x20available\x20for\x20runtime\x20AI\x20access.','validation'];a4_0x567f=function(){return _0x36978f;};return a4_0x567f();}
@@ -1 +1 @@
1
- (function(_0x150e62,_0x39188d){const _0x301080=a5_0x3424,_0x1cd05a=_0x150e62();while(!![]){try{const _0x50a922=parseInt(_0x301080(0x1c5))/0x1*(parseInt(_0x301080(0x1c7))/0x2)+-parseInt(_0x301080(0x1c9))/0x3+parseInt(_0x301080(0x1c4))/0x4+-parseInt(_0x301080(0x1c1))/0x5*(-parseInt(_0x301080(0x1c2))/0x6)+parseInt(_0x301080(0x1bd))/0x7+parseInt(_0x301080(0x1c8))/0x8+-parseInt(_0x301080(0x1c3))/0x9;if(_0x50a922===_0x39188d)break;else _0x1cd05a['push'](_0x1cd05a['shift']());}catch(_0x2a19be){_0x1cd05a['push'](_0x1cd05a['shift']());}}}(a5_0x39bc,0xcb7db));import{fileURLToPath}from'url';import{dirname,join}from'path';import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0x36a3f4=a5_0x3424,_0x5948ee=join(__dirname,'../../../mock/app-list.json'),_0x46fe3a=readFileSync(_0x5948ee,_0x36a3f4(0x1ca));return JSON[_0x36a3f4(0x1ba)](_0x46fe3a);}let _cached=null;function a5_0x3424(_0x5ab6d7,_0x3eef49){_0x5ab6d7=_0x5ab6d7-0x1ba;const _0x39bc29=a5_0x39bc();let _0x342483=_0x39bc29[_0x5ab6d7];return _0x342483;}export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}function a5_0x39bc(){const _0x590ea3=['4254oUnudr','6646986BMgpbK','2767520GxphrD','662426AieSCy','Mock\x20API\x20error:\x20','2oGjORf','2413424DfSMSq','3239160mOCEuM','utf-8','parse','data','errorMsg','3034864fuzuUR','errorCode','tableData','success','3965fbfHIQ'];a5_0x39bc=function(){return _0x590ea3;};return a5_0x39bc();}export function getMockRemoteAppItems(){const _0x47612b=a5_0x3424,_0x1bdbb2=getMockAppList();if(!_0x1bdbb2[_0x47612b(0x1c0)])throw new Error(_0x47612b(0x1c6)+_0x1bdbb2[_0x47612b(0x1bc)]+'\x20('+_0x1bdbb2[_0x47612b(0x1be)]+')');return _0x1bdbb2[_0x47612b(0x1bb)][_0x47612b(0x1bf)];}
1
+ (function(_0x1fce34,_0x1eefe4){const _0x4cf07b=a5_0x56c1,_0x4f2a43=_0x1fce34();while(!![]){try{const _0x28168b=-parseInt(_0x4cf07b(0x12f))/0x1*(-parseInt(_0x4cf07b(0x133))/0x2)+parseInt(_0x4cf07b(0x130))/0x3*(parseInt(_0x4cf07b(0x132))/0x4)+-parseInt(_0x4cf07b(0x12d))/0x5*(-parseInt(_0x4cf07b(0x125))/0x6)+parseInt(_0x4cf07b(0x129))/0x7*(parseInt(_0x4cf07b(0x127))/0x8)+parseInt(_0x4cf07b(0x12b))/0x9*(parseInt(_0x4cf07b(0x12e))/0xa)+parseInt(_0x4cf07b(0x128))/0xb+-parseInt(_0x4cf07b(0x12c))/0xc*(parseInt(_0x4cf07b(0x131))/0xd);if(_0x28168b===_0x1eefe4)break;else _0x4f2a43['push'](_0x4f2a43['shift']());}catch(_0x373470){_0x4f2a43['push'](_0x4f2a43['shift']());}}}(a5_0x3869,0x29a3e));import{fileURLToPath}from'url';import{dirname,join}from'path';function a5_0x3869(){const _0x4b9bba=['396Zkdjas','20LkApgf','100HuWJvY','43954UiSKxS','6jnsrtX','311870EFkMmr','160124PtPyBm','10kNywdQ','success','errorMsg','errorCode','26454QbyHlX','Mock\x20API\x20error:\x20','2270824kMwgUm','621247IMEbLQ','7xqUtnQ','../../../mock/app-list.json','273987EOFiml'];a5_0x3869=function(){return _0x4b9bba;};return a5_0x3869();}import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function a5_0x56c1(_0x18ecab,_0x45b5aa){_0x18ecab=_0x18ecab-0x125;const _0x3869d0=a5_0x3869();let _0x56c178=_0x3869d0[_0x18ecab];return _0x56c178;}function loadMockAppList(){const _0x2924ad=a5_0x56c1,_0x1edc88=join(__dirname,_0x2924ad(0x12a)),_0x1e1e68=readFileSync(_0x1edc88,'utf-8');return JSON['parse'](_0x1e1e68);}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x2f0dd4=a5_0x56c1,_0x3b571b=getMockAppList();if(!_0x3b571b[_0x2f0dd4(0x134)])throw new Error(_0x2f0dd4(0x126)+_0x3b571b[_0x2f0dd4(0x135)]+'\x20('+_0x3b571b[_0x2f0dd4(0x136)]+')');return _0x3b571b['data']['tableData'];}
@@ -1 +1 @@
1
- (function(_0x1a400f,_0x49e694){const _0x371601=a6_0xcbe2,_0x3b4c6c=_0x1a400f();while(!![]){try{const _0xd83d46=parseInt(_0x371601(0x98))/0x1*(-parseInt(_0x371601(0x9a))/0x2)+parseInt(_0x371601(0xa7))/0x3*(parseInt(_0x371601(0xa5))/0x4)+-parseInt(_0x371601(0xa2))/0x5*(-parseInt(_0x371601(0x9d))/0x6)+parseInt(_0x371601(0x94))/0x7*(-parseInt(_0x371601(0x9c))/0x8)+-parseInt(_0x371601(0x9e))/0x9*(-parseInt(_0x371601(0x9f))/0xa)+parseInt(_0x371601(0x99))/0xb+parseInt(_0x371601(0xa1))/0xc*(-parseInt(_0x371601(0x9b))/0xd);if(_0xd83d46===_0x49e694)break;else _0x3b4c6c['push'](_0x3b4c6c['shift']());}catch(_0x283366){_0x3b4c6c['push'](_0x3b4c6c['shift']());}}}(a6_0x5435,0x60f6f));function a6_0x5435(){const _0xcc451e=['trim','fetchedAt','60TaGYas','4304377fbDxDm','21128NExYwY','2652KrOsOC','2824qMkYFn','24VMRadJ','2674827oabWtE','20SLKRkz','APP_LIST_SOURCE','31224mEvOMe','860110CsEmcF','items','mock','12LAcOXM','toISOString','485643sOkxFI','11851pielpJ','cache'];a6_0x5435=function(){return _0xcc451e;};return a6_0x5435();}import{getMyApps}from'../../core/api-client.js';function a6_0xcbe2(_0x4d7c41,_0x14da13){_0x4d7c41=_0x4d7c41-0x94;const _0x5435f6=a6_0x5435();let _0xcbe2f=_0x5435f6[_0x4d7c41];return _0xcbe2f;}import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';import{productEnv}from'../../constant/product.js';export function shouldUseMockRemoteApps(){const _0x226360=a6_0xcbe2,_0x1a4ef4=(productEnv(_0x226360(0xa0))||'')['trim']()['toLowerCase']();return _0x1a4ef4==='mock';}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x46ab23){const _0x4d34da=a6_0xcbe2,{env:_0x46e9fa,accessKey:_0x1d942a,localOnly:localOnly=![],noCache:noCache=![]}=_0x46ab23,_0x997f1f=readCachedAppList(_0x46e9fa,_0x1d942a),_0x27aa03=_0x1d942a?.['trim']()?getAppCacheFilePath(_0x46e9fa,_0x1d942a):null;if(localOnly)return{'items':_0x997f1f?.[_0x4d34da(0xa3)]??[],'source':'cache','fetchedAt':_0x997f1f?.[_0x4d34da(0x97)]??null,'cachePath':_0x27aa03};try{const _0x3253ab=await getRemoteAppItems(),_0x19d57c=shouldUseMockRemoteApps()?_0x4d34da(0xa4):'remote',_0x133f47=new Date()[_0x4d34da(0xa6)](),_0x58e20b=_0x1d942a?.[_0x4d34da(0x96)]()?writeCachedAppList(_0x46e9fa,_0x1d942a,{'env':_0x46e9fa,'fetchedAt':_0x133f47,'source':_0x19d57c,'items':_0x3253ab}):null;return{'items':_0x3253ab,'source':_0x19d57c,'fetchedAt':_0x133f47,'cachePath':_0x58e20b};}catch(_0x5b4946){if(!noCache&&_0x997f1f)return{'items':_0x997f1f[_0x4d34da(0xa3)],'source':_0x4d34da(0x95),'fetchedAt':_0x997f1f['fetchedAt'],'cachePath':_0x27aa03};throw _0x5b4946;}}
1
+ (function(_0x3416b6,_0x5f0995){const _0x3516f5=a6_0x2f9a,_0x148312=_0x3416b6();while(!![]){try{const _0x15b57c=-parseInt(_0x3516f5(0x11f))/0x1*(-parseInt(_0x3516f5(0x113))/0x2)+-parseInt(_0x3516f5(0x11b))/0x3+-parseInt(_0x3516f5(0x110))/0x4+-parseInt(_0x3516f5(0x10e))/0x5*(-parseInt(_0x3516f5(0x11a))/0x6)+parseInt(_0x3516f5(0x114))/0x7*(parseInt(_0x3516f5(0x10f))/0x8)+-parseInt(_0x3516f5(0x111))/0x9+parseInt(_0x3516f5(0x118))/0xa*(-parseInt(_0x3516f5(0x112))/0xb);if(_0x15b57c===_0x5f0995)break;else _0x148312['push'](_0x148312['shift']());}catch(_0x38fd43){_0x148312['push'](_0x148312['shift']());}}}(a6_0x4d32,0xdf3be));function a6_0x2f9a(_0x2cfd68,_0x474f4f){_0x2cfd68=_0x2cfd68-0x10e;const _0x4d326d=a6_0x4d32();let _0x2f9ae0=_0x4d326d[_0x2cfd68];return _0x2f9ae0;}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 _0x2fe732=a6_0x2f9a,_0x5bbba5=(productEnv(_0x2fe732(0x11c))||'')[_0x2fe732(0x119)]()[_0x2fe732(0x115)]();return _0x5bbba5===_0x2fe732(0x117);}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x34a838){const _0x837b2f=a6_0x2f9a,{env:_0x47f160,accessKey:_0x2346a2,localOnly:localOnly=![],noCache:noCache=![]}=_0x34a838,_0x4cd7e2=readCachedAppList(_0x47f160,_0x2346a2),_0x770a69=_0x2346a2?.[_0x837b2f(0x119)]()?getAppCacheFilePath(_0x47f160,_0x2346a2):null;if(localOnly)return{'items':_0x4cd7e2?.[_0x837b2f(0x116)]??[],'source':_0x837b2f(0x11e),'fetchedAt':_0x4cd7e2?.[_0x837b2f(0x11d)]??null,'cachePath':_0x770a69};try{const _0x428ca1=await getRemoteAppItems(),_0x487be3=shouldUseMockRemoteApps()?_0x837b2f(0x117):'remote',_0x10fca9=new Date()[_0x837b2f(0x120)](),_0x55a461=_0x2346a2?.['trim']()?writeCachedAppList(_0x47f160,_0x2346a2,{'env':_0x47f160,'fetchedAt':_0x10fca9,'source':_0x487be3,'items':_0x428ca1}):null;return{'items':_0x428ca1,'source':_0x487be3,'fetchedAt':_0x10fca9,'cachePath':_0x55a461};}catch(_0x23d35d){if(!noCache&&_0x4cd7e2)return{'items':_0x4cd7e2['items'],'source':'cache','fetchedAt':_0x4cd7e2[_0x837b2f(0x11d)],'cachePath':_0x770a69};throw _0x23d35d;}}function a6_0x4d32(){const _0x5273d6=['fetchedAt','cache','21388BClwRy','toISOString','8278415kbFCbi','8ZWKAOy','1348968doeIAE','6578118NHqEyQ','8943nHGrfY','88pUcGyO','2943339Gxfauw','toLowerCase','items','mock','50iAQyIY','trim','6SqKevf','3091971jSXeXj','APP_LIST_SOURCE'];a6_0x4d32=function(){return _0x5273d6;};return a6_0x4d32();}
@@ -1 +1 @@
1
- (function(_0x54bde5,_0x316fd7){const _0x5c26c1=a7_0x1979,_0x281c6e=_0x54bde5();while(!![]){try{const _0xe95be4=parseInt(_0x5c26c1(0xde))/0x1+parseInt(_0x5c26c1(0xcc))/0x2+parseInt(_0x5c26c1(0xdb))/0x3+parseInt(_0x5c26c1(0xdc))/0x4+parseInt(_0x5c26c1(0xcb))/0x5*(-parseInt(_0x5c26c1(0xd2))/0x6)+-parseInt(_0x5c26c1(0xd4))/0x7*(-parseInt(_0x5c26c1(0xcf))/0x8)+parseInt(_0x5c26c1(0xcd))/0x9*(-parseInt(_0x5c26c1(0xda))/0xa);if(_0xe95be4===_0x316fd7)break;else _0x281c6e['push'](_0x281c6e['shift']());}catch(_0x49741b){_0x281c6e['push'](_0x281c6e['shift']());}}}(a7_0x107c,0x5d8ad));import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0xf56cad,_0x40b664){const _0x12620d=a7_0x1979;if(!_0x40b664)return;const _0xe98a90=!!(_0x40b664[_0x12620d(0xd3)]??_0x40b664[_0x12620d(0xd0)]);for(const _0x526d0b of _0xf56cad){_0x526d0b[_0x12620d(0xd6)]=![];}const _0x5d0dc6=_0x40b664['appCode']!=null?String(_0x40b664[_0x12620d(0xce)])[_0x12620d(0xdd)]():'';if(_0xe98a90){const _0x3a82b0=_0x40b664[_0x12620d(0xd3)]??_0x40b664[_0x12620d(0xd0)];if(_0x3a82b0){const _0x380cb6=_0xf56cad[_0x12620d(0xd5)](_0x12fb37=>_0x12fb37['named']===!![]&&_0x12fb37[_0x12620d(0xe0)]===_0x3a82b0&&_0x12fb37[_0x12620d(0xd7)]===_0x12620d(0xdf)),_0x5405a9=_0x380cb6??_0xf56cad[_0x12620d(0xd5)](_0x1f65e6=>_0x1f65e6[_0x12620d(0xe1)]===!![]&&_0x1f65e6['name']===_0x3a82b0);_0x5405a9&&(_0x5405a9['isCurrent']=!![]);}return;}if(!_0x5d0dc6)return;for(const _0x316a83 of _0xf56cad){String(_0x316a83[_0x12620d(0xd9)]??'')[_0x12620d(0xdd)]()===_0x5d0dc6&&(_0x316a83[_0x12620d(0xd6)]=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';function a7_0x107c(){const _0x5dcb7f=['422907UnFvyx','1964840vaLYMR','trim','364879Hxcvpf','local','name','named','10xjoNzx','1114004HzxBbJ','225603AcJRxi','appCode','173616qwCjMZ','defaultApp','global','975066OemusM','currentApp','91czfbFH','find','isCurrent','definedIn','project','appcode','450CabLgR'];a7_0x107c=function(){return _0x5dcb7f;};return a7_0x107c();}function a7_0x1979(_0x2d8ebc,_0x25e2f5){_0x2d8ebc=_0x2d8ebc-0xcb;const _0x107c8d=a7_0x107c();let _0x1979db=_0x107c8d[_0x2d8ebc];return _0x1979db;}export function scopeLabel(_0x33910e){const _0x93b34b=a7_0x1979;return formatScopeLabel(_0x33910e[_0x93b34b(0xd1)]?'global':_0x93b34b(0xd8));}
1
+ function a7_0x45cc(_0x650beb,_0x124a13){_0x650beb=_0x650beb-0x1a7;const _0x3e015d=a7_0x3e01();let _0x45ccb8=_0x3e015d[_0x650beb];return _0x45ccb8;}(function(_0x3a729a,_0x3c39d9){const _0x51cc1b=a7_0x45cc,_0x5a696a=_0x3a729a();while(!![]){try{const _0x2d5740=parseInt(_0x51cc1b(0x1ab))/0x1*(parseInt(_0x51cc1b(0x1a7))/0x2)+parseInt(_0x51cc1b(0x1b2))/0x3+-parseInt(_0x51cc1b(0x1a9))/0x4+parseInt(_0x51cc1b(0x1b0))/0x5*(parseInt(_0x51cc1b(0x1ba))/0x6)+parseInt(_0x51cc1b(0x1b8))/0x7+parseInt(_0x51cc1b(0x1bc))/0x8*(parseInt(_0x51cc1b(0x1b7))/0x9)+-parseInt(_0x51cc1b(0x1b5))/0xa*(parseInt(_0x51cc1b(0x1b6))/0xb);if(_0x2d5740===_0x3c39d9)break;else _0x5a696a['push'](_0x5a696a['shift']());}catch(_0x39d575){_0x5a696a['push'](_0x5a696a['shift']());}}}(a7_0x3e01,0x3e945));import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x2c469f,_0x213d5d){const _0x16c4fd=a7_0x45cc;if(!_0x213d5d)return;const _0xfec07f=!!(_0x213d5d[_0x16c4fd(0x1ad)]??_0x213d5d['defaultApp']);for(const _0x44c4df of _0x2c469f){_0x44c4df[_0x16c4fd(0x1a8)]=![];}const _0x18493c=_0x213d5d[_0x16c4fd(0x1b9)]!=null?String(_0x213d5d[_0x16c4fd(0x1b9)])[_0x16c4fd(0x1b1)]():'';if(_0xfec07f){const _0x36c91a=_0x213d5d[_0x16c4fd(0x1ad)]??_0x213d5d['defaultApp'];if(_0x36c91a){const _0x4f91eb=_0x2c469f[_0x16c4fd(0x1bb)](_0x4361c4=>_0x4361c4['named']===!![]&&_0x4361c4[_0x16c4fd(0x1b4)]===_0x36c91a&&_0x4361c4[_0x16c4fd(0x1ae)]==='local'),_0x10d67f=_0x4f91eb??_0x2c469f[_0x16c4fd(0x1bb)](_0x28b333=>_0x28b333[_0x16c4fd(0x1ac)]===!![]&&_0x28b333[_0x16c4fd(0x1b4)]===_0x36c91a);_0x10d67f&&(_0x10d67f['isCurrent']=!![]);}return;}if(!_0x18493c)return;for(const _0x2ba6fb of _0x2c469f){String(_0x2ba6fb[_0x16c4fd(0x1af)]??'')[_0x16c4fd(0x1b1)]()===_0x18493c&&(_0x2ba6fb[_0x16c4fd(0x1a8)]=!![]);}}function a7_0x3e01(){const _0x456216=['9kxUwXM','1461075cLfthc','appCode','6zRmqdW','find','3008912ABshlv','2BNvYHM','isCurrent','1971712AxKsKO','project','244045oMcUBy','named','currentApp','definedIn','appcode','1232305DnkAnf','trim','668349eaHgqh','global','name','1097750xzJMHq','55HwJYnG'];a7_0x3e01=function(){return _0x456216;};return a7_0x3e01();}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x2b7a03){const _0x33f410=a7_0x45cc;return formatScopeLabel(_0x2b7a03[_0x33f410(0x1b3)]?_0x33f410(0x1b3):_0x33f410(0x1aa));}
@@ -1 +1 @@
1
- const a8_0x4e174a=a8_0x749b;(function(_0x284e19,_0x1e6de2){const _0x540cce=a8_0x749b,_0x47cde7=_0x284e19();while(!![]){try{const _0x1d648b=-parseInt(_0x540cce(0x19b))/0x1*(-parseInt(_0x540cce(0x1a3))/0x2)+parseInt(_0x540cce(0x18f))/0x3+-parseInt(_0x540cce(0x1b4))/0x4+-parseInt(_0x540cce(0x189))/0x5+parseInt(_0x540cce(0x1b7))/0x6+-parseInt(_0x540cce(0x182))/0x7*(parseInt(_0x540cce(0x1ad))/0x8)+parseInt(_0x540cce(0x17b))/0x9*(parseInt(_0x540cce(0x178))/0xa);if(_0x1d648b===_0x1e6de2)break;else _0x47cde7['push'](_0x47cde7['shift']());}catch(_0x3f8b2c){_0x47cde7['push'](_0x47cde7['shift']());}}}(a8_0x46e9,0xad09c));import{existsSync,readFileSync,statSync}from'node:fs';import{createRuntimeArtifact,getRuntimeArtifact,listRuntimeArtifacts,updateRuntimeArtifact}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const ARTIFACT_TYPE_REACT_MODULE=a8_0x4e174a(0x181),ARTIFACT_SOURCE_AGENT=a8_0x4e174a(0x195),ALLOWED_REACT_MODULE_IMPORTS=[a8_0x4e174a(0x17a),a8_0x4e174a(0x174),a8_0x4e174a(0x1a1),'dayjs',a8_0x4e174a(0x19a),'@ant-design/icons'];export const ALLOWED_REACT_MODULE_IMPORTS_TEXT=ALLOWED_REACT_MODULE_IMPORTS[a8_0x4e174a(0x187)](',\x20');const IMPORT_SOURCE_PATTERNS=[/\bimport\s+(?:type\s+)?(?:[^'";]*?\s+from\s+)?["']([^"']+)["']/g,/\bexport\s+(?:type\s+)?[^'";]*?\s+from\s+["']([^"']+)["']/g,/\bimport\s*\(\s*["']([^"']+)["']\s*\)/g,/\brequire\s*\(\s*["']([^"']+)["']\s*\)/g],PAGE_LEVEL_PATTERNS=[/<!doctype\s+html/i,/<\s*html\b/i,/\bcreateRoot\s*\(/,/\bReactDOM\s*\.\s*render\s*\(/,/\bReactDOM\s*\.\s*createRoot\s*\(/],FILE_FLAG={'name':a8_0x4e174a(0x1ab),'type':a8_0x4e174a(0x194),'required':!![],'description':a8_0x4e174a(0x172)},ARTIFACT_NAME_FLAG={'name':a8_0x4e174a(0x18d),'type':a8_0x4e174a(0x194),'description':a8_0x4e174a(0x177)},METADATA_FLAG={'name':a8_0x4e174a(0x175),'type':a8_0x4e174a(0x194),'description':a8_0x4e174a(0x197)};function isPlainObject(_0x2d022c){const _0x2eaf5b=a8_0x4e174a;return typeof _0x2d022c===_0x2eaf5b(0x176)&&_0x2d022c!==null&&!Array[_0x2eaf5b(0x1b0)](_0x2d022c);}function readSourceFile(_0x56f425){const _0x5b2627=a8_0x4e174a;if(!_0x56f425)throw CliErrors['validation'](_0x5b2627(0x16b));if(!existsSync(_0x56f425))throw CliErrors[_0x5b2627(0x193)](_0x5b2627(0x184)+_0x56f425);if(!statSync(_0x56f425)['isFile']())throw CliErrors['validation'](_0x5b2627(0x1b8)+_0x56f425);const _0x37dcf6=readFileSync(_0x56f425,'utf8');return validateReactModuleSource(_0x37dcf6),_0x37dcf6;}function a8_0x749b(_0xba6444,_0x8d2d80){_0xba6444=_0xba6444-0x16b;const _0x46e906=a8_0x46e9();let _0x749b13=_0x46e906[_0xba6444];return _0x749b13;}function parseMetadata(_0x345c11){const _0x809b84=a8_0x4e174a;if(!_0x345c11)return undefined;let _0x1258f7;try{_0x1258f7=JSON[_0x809b84(0x19d)](_0x345c11);}catch{throw CliErrors['validation']('Invalid\x20JSON\x20for\x20--metadata:\x20'+_0x345c11);}if(!isPlainObject(_0x1258f7))throw CliErrors[_0x809b84(0x193)]('--metadata\x20must\x20be\x20a\x20JSON\x20object.');const _0x1dfd6c={..._0x1258f7};return delete _0x1dfd6c[_0x809b84(0x179)],_0x1dfd6c;}function a8_0x46e9(){const _0x5b7218=['3320820Wlmtbc','List\x20current-app\x20react_module\x20Artifacts','map','1330542ufYzXi','File\x20is\x20not\x20a\x20regular\x20file:\x20','File\x20path\x20is\x20required.','boolean','Optional\x20favorite-state\x20filter','Show\x20one\x20Artifact\x20by\x20id','startsWith','lastIndex','trim','Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file','str','react-dom','metadata','object','Artifact\x20display\x20name','616220STWAjl','compiledContent','react','81VCTGge','bool','createTime','.\x20Unsupported:\x20','verbose','Preview:\x20create\x20react_module\x20Artifact','react_module','1386763iNywLC','includes','File\x20not\x20found:\x20','updateTime','Artifact\x20ID','join','artifactType','860180rUyZfU','Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','POST','name','exec','2087067xebwkY','appCode','react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.','filter','validation','string','AGENT','source','Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped','deleted','Updated\x20Artifact\x20','antd','1XQBRxU','Created\x20Artifact\x20','parse','Artifact\x20source\x20file\x20is\x20blank.','num','some','lodash','split','2459012dukJzt','favorite','react_module\x20imports\x20are\x20limited\x20to:\x20','description','build','Preview:\x20update\x20react_module\x20Artifact\x20','Optional\x20source\x20filter,\x20for\x20example\x20AGENT','create','file','length','40lubbhs','list','read','isArray','artifact','body','write'];a8_0x46e9=function(){return _0x5b7218;};return a8_0x46e9();}function getPackageName(_0x22c0f9){const _0x37e643=a8_0x4e174a;if(_0x22c0f9[_0x37e643(0x16f)]('@')){const [_0x1c31f1,_0x347c03]=_0x22c0f9['split']('/');return _0x1c31f1&&_0x347c03?_0x1c31f1+'/'+_0x347c03:_0x22c0f9;}return _0x22c0f9[_0x37e643(0x1a2)]('/')[0x0]||_0x22c0f9;}function validateAllowedImports(_0x2c76ef){const _0x53ef60=a8_0x4e174a,_0x33a6a0=new Set();for(const _0x3cd9fc of IMPORT_SOURCE_PATTERNS){_0x3cd9fc[_0x53ef60(0x170)]=0x0;let _0x205edf;while((_0x205edf=_0x3cd9fc[_0x53ef60(0x18e)](_0x2c76ef))!==null){const _0x13eb18=_0x205edf[0x1]?.[_0x53ef60(0x171)]();_0x13eb18&&_0x33a6a0['add'](_0x13eb18);}}const _0x30dd02=[..._0x33a6a0][_0x53ef60(0x1b6)](getPackageName)[_0x53ef60(0x192)](_0x568512=>!ALLOWED_REACT_MODULE_IMPORTS[_0x53ef60(0x183)](_0x568512));if(_0x30dd02[_0x53ef60(0x1ac)]>0x0)throw CliErrors[_0x53ef60(0x193)](_0x53ef60(0x1a5)+ALLOWED_REACT_MODULE_IMPORTS_TEXT+_0x53ef60(0x17e)+[...new Set(_0x30dd02)][_0x53ef60(0x187)](',\x20'));}export function validateReactModuleSource(_0x43ee4f){const _0x1365b4=a8_0x4e174a;if(!_0x43ee4f[_0x1365b4(0x171)]())throw CliErrors[_0x1365b4(0x193)](_0x1365b4(0x19e));if(PAGE_LEVEL_PATTERNS[_0x1365b4(0x1a0)](_0x313e63=>_0x313e63['test'](_0x43ee4f)))throw CliErrors[_0x1365b4(0x193)](_0x1365b4(0x191));validateAllowedImports(_0x43ee4f);}function buildArtifactInput(_0x429764){const _0x3accba=a8_0x4e174a,_0x3a20e4=readSourceFile(_0x429764['str']('file')),_0x5c578c=_0x429764[_0x3accba(0x173)]('name')['trim'](),_0x204054=parseMetadata(_0x429764[_0x3accba(0x173)]('metadata'));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x5c578c?{'name':_0x5c578c}:{},'content':_0x3a20e4,..._0x204054?{'metadata':_0x204054}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0x4ee417){const _0x27f2dd=a8_0x4e174a;return{'id':_0x4ee417['id'],'name':_0x4ee417[_0x27f2dd(0x18d)],'artifactType':_0x4ee417[_0x27f2dd(0x188)],'source':_0x4ee417['source'],'favorite':_0x4ee417[_0x27f2dd(0x1a4)],'deleted':_0x4ee417[_0x27f2dd(0x198)],'createTime':_0x4ee417[_0x27f2dd(0x17d)],'updateTime':_0x4ee417[_0x27f2dd(0x185)]};}function detailArtifact(_0x51c666){const _0x2d905f=a8_0x4e174a;return{'id':_0x51c666['id'],'appCode':_0x51c666[_0x2d905f(0x190)],'name':_0x51c666[_0x2d905f(0x18d)],'artifactType':_0x51c666[_0x2d905f(0x188)],'source':_0x51c666[_0x2d905f(0x196)],'favorite':_0x51c666['favorite'],'deleted':_0x51c666[_0x2d905f(0x198)],'content':_0x51c666['content']??'','compiledContent':_0x51c666['compiledContent'],'metadata':_0x51c666[_0x2d905f(0x175)]??{},'createTime':_0x51c666['createTime'],'updateTime':_0x51c666[_0x2d905f(0x185)]};}function readFavoriteFlag(_0x874a75){const _0x52843b=a8_0x4e174a,_0x46f013=_0x874a75['flag'](_0x52843b(0x1a4));return _0x46f013===undefined||_0x46f013===null||_0x46f013===''?undefined:_0x874a75['bool']('favorite');}const artifactList={'service':'artifact','command':a8_0x4e174a(0x1ae),'description':a8_0x4e174a(0x1b5),'risk':a8_0x4e174a(0x1af),'flags':[{'name':a8_0x4e174a(0x196),'type':a8_0x4e174a(0x194),'description':a8_0x4e174a(0x1a9)},{'name':'favorite','type':a8_0x4e174a(0x16c),'description':a8_0x4e174a(0x16d)},VERBOSE_FLAG],async 'execute'(_0x106a5b){const _0x59cc28=a8_0x4e174a,_0x162756=await listRuntimeArtifacts(_0x106a5b[_0x59cc28(0x190)],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x106a5b[_0x59cc28(0x173)](_0x59cc28(0x196))?{'source':_0x106a5b[_0x59cc28(0x173)](_0x59cc28(0x196))}:{},...readFavoriteFlag(_0x106a5b)!==undefined?{'favorite':readFavoriteFlag(_0x106a5b)}:{}});return{'ok':!![],'data':{'total':_0x162756[_0x59cc28(0x1ac)],'items':_0x106a5b[_0x59cc28(0x17c)](_0x59cc28(0x17f))?_0x162756:_0x162756[_0x59cc28(0x1b6)](summarizeArtifact)}};}},artifactDetail={'service':a8_0x4e174a(0x1b1),'command':'detail','description':a8_0x4e174a(0x16e),'risk':a8_0x4e174a(0x1af),'flags':[{...ID_FLAG,'description':'Artifact\x20ID'}],async 'execute'(_0x2d53ee){const _0x12eb39=a8_0x4e174a,_0x9f2761=await getRuntimeArtifact(_0x2d53ee[_0x12eb39(0x19f)]('id'),_0x2d53ee[_0x12eb39(0x190)]);return{'ok':!![],'data':detailArtifact(_0x9f2761)};}},artifactCreate={'service':'artifact','command':a8_0x4e174a(0x1aa),'description':a8_0x4e174a(0x18b),'risk':a8_0x4e174a(0x1b3),'flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x5983e5){const _0xea3131=a8_0x4e174a,_0x401701=buildArtifactInput(_0x5983e5),_0x31d93b=await createRuntimeArtifact(_0x5983e5[_0xea3131(0x190)],_0x401701);return{'ok':!![],'data':detailArtifact(_0x31d93b),'message':_0xea3131(0x19c)+_0x31d93b['id']+(_0x31d93b[_0xea3131(0x18d)]?'\x20('+_0x31d93b[_0xea3131(0x18d)]+')':'')};},async 'dryRun'(_0x1066a7){const _0x5ca730=a8_0x4e174a,_0xcaa9a=buildArtifactInput(_0x1066a7);return dryRun(_0x5ca730(0x18c),'/client/artifact/create')[_0x5ca730(0x1b2)]({'appCode':_0x1066a7['appCode'],..._0xcaa9a})[_0x5ca730(0x1a6)](_0x5ca730(0x180))[_0x5ca730(0x1a7)]();}},artifactUpdate={'service':a8_0x4e174a(0x1b1),'command':'update','description':a8_0x4e174a(0x18a),'risk':a8_0x4e174a(0x1b3),'flags':[{...ID_FLAG,'description':a8_0x4e174a(0x186)},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x4300c6){const _0x395fa8=a8_0x4e174a,_0x246977=_0x4300c6[_0x395fa8(0x19f)]('id'),_0xd53e21=buildArtifactInput(_0x4300c6),_0x86a51f=await updateRuntimeArtifact(_0x246977,_0x4300c6[_0x395fa8(0x190)],_0xd53e21);return{'ok':!![],'data':detailArtifact(_0x86a51f),'message':_0x395fa8(0x199)+_0x86a51f['id']+(_0x86a51f['name']?'\x20('+_0x86a51f[_0x395fa8(0x18d)]+')':'')};},async 'dryRun'(_0x4b785b){const _0x1855a0=a8_0x4e174a,_0x4e5425=_0x4b785b[_0x1855a0(0x19f)]('id'),_0x32d36d=buildArtifactInput(_0x4b785b);return dryRun(_0x1855a0(0x18c),'/client/artifact/'+_0x4e5425+'/update')[_0x1855a0(0x1b2)]({'appCode':_0x4b785b[_0x1855a0(0x190)],..._0x32d36d})['description'](_0x1855a0(0x1a8)+_0x4e5425)[_0x1855a0(0x1a7)]();}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
1
+ const a8_0x5dd0a5=a8_0x4bb4;(function(_0xcb33c2,_0x5b4da3){const _0x571aec=a8_0x4bb4,_0x3a8b89=_0xcb33c2();while(!![]){try{const _0x3c0294=-parseInt(_0x571aec(0x1a6))/0x1*(-parseInt(_0x571aec(0x183))/0x2)+parseInt(_0x571aec(0x16e))/0x3+parseInt(_0x571aec(0x18a))/0x4+parseInt(_0x571aec(0x19f))/0x5*(parseInt(_0x571aec(0x189))/0x6)+parseInt(_0x571aec(0x168))/0x7+-parseInt(_0x571aec(0x171))/0x8*(parseInt(_0x571aec(0x187))/0x9)+parseInt(_0x571aec(0x166))/0xa*(-parseInt(_0x571aec(0x170))/0xb);if(_0x3c0294===_0x5b4da3)break;else _0x3a8b89['push'](_0x3a8b89['shift']());}catch(_0x32ee36){_0x3a8b89['push'](_0x3a8b89['shift']());}}}(a8_0x5cbb,0x69d75));function a8_0x4bb4(_0x49d3a4,_0x48e8f4){_0x49d3a4=_0x49d3a4-0x166;const _0x5cbbfb=a8_0x5cbb();let _0x4bb47d=_0x5cbbfb[_0x49d3a4];return _0x4bb47d;}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_0x5dd0a5(0x17e),ARTIFACT_SOURCE_AGENT='AGENT',ALLOWED_REACT_MODULE_IMPORTS=['react',a8_0x5dd0a5(0x186),'lodash','dayjs',a8_0x5dd0a5(0x1aa),'@ant-design/icons'];export const ALLOWED_REACT_MODULE_IMPORTS_TEXT=ALLOWED_REACT_MODULE_IMPORTS[a8_0x5dd0a5(0x193)](',\x20');const IMPORT_SOURCE_PATTERNS=[/\bimport\s+(?:type\s+)?(?:[^'";]*?\s+from\s+)?["']([^"']+)["']/g,/\bexport\s+(?:type\s+)?[^'";]*?\s+from\s+["']([^"']+)["']/g,/\bimport\s*\(\s*["']([^"']+)["']\s*\)/g,/\brequire\s*\(\s*["']([^"']+)["']\s*\)/g],PAGE_LEVEL_PATTERNS=[/<!doctype\s+html/i,/<\s*html\b/i,/\bcreateRoot\s*\(/,/\bReactDOM\s*\.\s*render\s*\(/,/\bReactDOM\s*\.\s*createRoot\s*\(/],FILE_FLAG={'name':'file','type':'string','required':!![],'description':a8_0x5dd0a5(0x1af)},ARTIFACT_NAME_FLAG={'name':a8_0x5dd0a5(0x1a3),'type':a8_0x5dd0a5(0x1ab),'description':a8_0x5dd0a5(0x192)},METADATA_FLAG={'name':a8_0x5dd0a5(0x1a2),'type':a8_0x5dd0a5(0x1ab),'description':a8_0x5dd0a5(0x18b)};function isPlainObject(_0x38cfbf){const _0x131819=a8_0x5dd0a5;return typeof _0x38cfbf==='object'&&_0x38cfbf!==null&&!Array[_0x131819(0x19d)](_0x38cfbf);}function readSourceFile(_0x94a664){const _0x116336=a8_0x5dd0a5;if(!_0x94a664)throw CliErrors['validation'](_0x116336(0x1b2));if(!existsSync(_0x94a664))throw CliErrors[_0x116336(0x178)](_0x116336(0x174)+_0x94a664);if(!statSync(_0x94a664)[_0x116336(0x16b)]())throw CliErrors['validation']('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x94a664);const _0x416dfe=readFileSync(_0x94a664,_0x116336(0x17a));return validateReactModuleSource(_0x416dfe),_0x416dfe;}function parseMetadata(_0x33b8bb){const _0x11f090=a8_0x5dd0a5;if(!_0x33b8bb)return undefined;let _0x25cc56;try{_0x25cc56=JSON['parse'](_0x33b8bb);}catch{throw CliErrors[_0x11f090(0x178)]('Invalid\x20JSON\x20for\x20--metadata:\x20'+_0x33b8bb);}if(!isPlainObject(_0x25cc56))throw CliErrors[_0x11f090(0x178)](_0x11f090(0x1a8));const _0x4755eb={..._0x25cc56};return delete _0x4755eb['compiledContent'],_0x4755eb;}function getPackageName(_0xcabffa){const _0x1dc1a2=a8_0x5dd0a5;if(_0xcabffa[_0x1dc1a2(0x172)]('@')){const [_0x454f06,_0x4c6542]=_0xcabffa[_0x1dc1a2(0x17c)]('/');return _0x454f06&&_0x4c6542?_0x454f06+'/'+_0x4c6542:_0xcabffa;}return _0xcabffa[_0x1dc1a2(0x17c)]('/')[0x0]||_0xcabffa;}function validateAllowedImports(_0x58268d){const _0x12aed5=a8_0x5dd0a5,_0x5ba601=new Set();for(const _0x1ddb6e of IMPORT_SOURCE_PATTERNS){_0x1ddb6e[_0x12aed5(0x16c)]=0x0;let _0x15bc88;while((_0x15bc88=_0x1ddb6e[_0x12aed5(0x194)](_0x58268d))!==null){const _0x17b81b=_0x15bc88[0x1]?.[_0x12aed5(0x182)]();_0x17b81b&&_0x5ba601['add'](_0x17b81b);}}const _0x373a62=[..._0x5ba601][_0x12aed5(0x1ad)](getPackageName)[_0x12aed5(0x196)](_0x5a5706=>!ALLOWED_REACT_MODULE_IMPORTS[_0x12aed5(0x19c)](_0x5a5706));if(_0x373a62['length']>0x0)throw CliErrors[_0x12aed5(0x178)](_0x12aed5(0x191)+ALLOWED_REACT_MODULE_IMPORTS_TEXT+_0x12aed5(0x16a)+[...new Set(_0x373a62)][_0x12aed5(0x193)](',\x20'));}export function validateReactModuleSource(_0x4bc1a9){const _0xf610b5=a8_0x5dd0a5;if(!_0x4bc1a9[_0xf610b5(0x182)]())throw CliErrors[_0xf610b5(0x178)](_0xf610b5(0x17b));if(PAGE_LEVEL_PATTERNS['some'](_0x59dc0f=>_0x59dc0f['test'](_0x4bc1a9)))throw CliErrors[_0xf610b5(0x178)](_0xf610b5(0x19e));validateAllowedImports(_0x4bc1a9);}function buildArtifactInput(_0x75f074){const _0x25f98b=a8_0x5dd0a5,_0x126e55=readSourceFile(_0x75f074[_0x25f98b(0x197)](_0x25f98b(0x16f))),_0x4cf68a=_0x75f074[_0x25f98b(0x197)](_0x25f98b(0x1a3))[_0x25f98b(0x182)](),_0x5e3980=parseMetadata(_0x75f074[_0x25f98b(0x197)]('metadata'));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x4cf68a?{'name':_0x4cf68a}:{},'content':_0x126e55,..._0x5e3980?{'metadata':_0x5e3980}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0x5308a0){const _0x11f28b=a8_0x5dd0a5;return{'id':_0x5308a0['id'],'name':_0x5308a0['name'],'artifactType':_0x5308a0[_0x11f28b(0x18f)],'source':_0x5308a0['source'],'favorite':_0x5308a0[_0x11f28b(0x169)],'deleted':_0x5308a0[_0x11f28b(0x167)],'createTime':_0x5308a0['createTime'],'updateTime':_0x5308a0[_0x11f28b(0x18e)]};}function a8_0x5cbb(){const _0x2526d2=['List\x20current-app\x20react_module\x20Artifacts','num','includes','isArray','react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.','3368875JaVxrX','content','/client/artifact/','metadata','name','create','Preview:\x20update\x20react_module\x20Artifact\x20','816279Tdwett','update','--metadata\x20must\x20be\x20a\x20JSON\x20object.','build','antd','string','write','map','Created\x20Artifact\x20','Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file','/update','list','File\x20path\x20is\x20required.','3143730nXdoUH','deleted','5459097uwtOky','favorite','.\x20Unsupported:\x20','isFile','lastIndex','Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','112071RsDADq','file','77skqTko','24oXwJsC','startsWith','length','File\x20not\x20found:\x20','Artifact\x20ID','Updated\x20Artifact\x20','bool','validation','/client/artifact/create','utf8','Artifact\x20source\x20file\x20is\x20blank.','split','Preview:\x20create\x20react_module\x20Artifact','react_module','artifact','body','source','trim','2uzpFEa','POST','appCode','react-dom','549414Epljov','description','6ynGBHW','2039968JuhUZS','Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped','read','createTime','updateTime','artifactType','Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','react_module\x20imports\x20are\x20limited\x20to:\x20','Artifact\x20display\x20name','join','exec','Optional\x20source\x20filter,\x20for\x20example\x20AGENT','filter','str','detail','flag'];a8_0x5cbb=function(){return _0x2526d2;};return a8_0x5cbb();}function detailArtifact(_0x406929){const _0x21073e=a8_0x5dd0a5;return{'id':_0x406929['id'],'appCode':_0x406929['appCode'],'name':_0x406929[_0x21073e(0x1a3)],'artifactType':_0x406929[_0x21073e(0x18f)],'source':_0x406929[_0x21073e(0x181)],'favorite':_0x406929['favorite'],'deleted':_0x406929[_0x21073e(0x167)],'content':_0x406929[_0x21073e(0x1a0)]??'','compiledContent':_0x406929['compiledContent'],'metadata':_0x406929['metadata']??{},'createTime':_0x406929[_0x21073e(0x18d)],'updateTime':_0x406929[_0x21073e(0x18e)]};}function readFavoriteFlag(_0x5df58e){const _0x23885b=a8_0x5dd0a5,_0x4dd42=_0x5df58e[_0x23885b(0x199)]('favorite');return _0x4dd42===undefined||_0x4dd42===null||_0x4dd42===''?undefined:_0x5df58e['bool'](_0x23885b(0x169));}const artifactList={'service':a8_0x5dd0a5(0x17f),'command':a8_0x5dd0a5(0x1b1),'description':a8_0x5dd0a5(0x19a),'risk':a8_0x5dd0a5(0x18c),'flags':[{'name':a8_0x5dd0a5(0x181),'type':a8_0x5dd0a5(0x1ab),'description':a8_0x5dd0a5(0x195)},{'name':a8_0x5dd0a5(0x169),'type':'boolean','description':'Optional\x20favorite-state\x20filter'},VERBOSE_FLAG],async 'execute'(_0x2eef89){const _0xa484a8=a8_0x5dd0a5,_0x55d919=await listRuntimeArtifacts(_0x2eef89[_0xa484a8(0x185)],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x2eef89[_0xa484a8(0x197)](_0xa484a8(0x181))?{'source':_0x2eef89[_0xa484a8(0x197)](_0xa484a8(0x181))}:{},...readFavoriteFlag(_0x2eef89)!==undefined?{'favorite':readFavoriteFlag(_0x2eef89)}:{}});return{'ok':!![],'data':{'total':_0x55d919[_0xa484a8(0x173)],'items':_0x2eef89[_0xa484a8(0x177)]('verbose')?_0x55d919:_0x55d919[_0xa484a8(0x1ad)](summarizeArtifact)}};}},artifactDetail={'service':a8_0x5dd0a5(0x17f),'command':a8_0x5dd0a5(0x198),'description':'Show\x20one\x20Artifact\x20by\x20id','risk':a8_0x5dd0a5(0x18c),'flags':[{...ID_FLAG,'description':a8_0x5dd0a5(0x175)}],async 'execute'(_0x24db99){const _0x6428c4=a8_0x5dd0a5,_0x42f324=await getRuntimeArtifact(_0x24db99['num']('id'),_0x24db99[_0x6428c4(0x185)]);return{'ok':!![],'data':detailArtifact(_0x42f324)};}},artifactCreate={'service':a8_0x5dd0a5(0x17f),'command':a8_0x5dd0a5(0x1a4),'description':a8_0x5dd0a5(0x190),'risk':a8_0x5dd0a5(0x1ac),'flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x8f5786){const _0x58e2b5=a8_0x5dd0a5,_0x25936f=buildArtifactInput(_0x8f5786),_0x29919c=await createRuntimeArtifact(_0x8f5786[_0x58e2b5(0x185)],_0x25936f);return{'ok':!![],'data':detailArtifact(_0x29919c),'message':_0x58e2b5(0x1ae)+_0x29919c['id']+(_0x29919c['name']?'\x20('+_0x29919c[_0x58e2b5(0x1a3)]+')':'')};},async 'dryRun'(_0x545f71){const _0x18cbdf=a8_0x5dd0a5,_0x43aad5=buildArtifactInput(_0x545f71);return dryRun('POST',_0x18cbdf(0x179))[_0x18cbdf(0x180)]({'appCode':_0x545f71[_0x18cbdf(0x185)],..._0x43aad5})[_0x18cbdf(0x188)](_0x18cbdf(0x17d))[_0x18cbdf(0x1a9)]();}},artifactUpdate={'service':a8_0x5dd0a5(0x17f),'command':a8_0x5dd0a5(0x1a7),'description':a8_0x5dd0a5(0x16d),'risk':a8_0x5dd0a5(0x1ac),'flags':[{...ID_FLAG,'description':a8_0x5dd0a5(0x175)},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x2ec89a){const _0x4faa88=a8_0x5dd0a5,_0x19a16e=_0x2ec89a[_0x4faa88(0x19b)]('id'),_0x218861=buildArtifactInput(_0x2ec89a),_0x5cefc2=await updateRuntimeArtifact(_0x19a16e,_0x2ec89a[_0x4faa88(0x185)],_0x218861);return{'ok':!![],'data':detailArtifact(_0x5cefc2),'message':_0x4faa88(0x176)+_0x5cefc2['id']+(_0x5cefc2[_0x4faa88(0x1a3)]?'\x20('+_0x5cefc2['name']+')':'')};},async 'dryRun'(_0x2b15d0){const _0x3eab39=a8_0x5dd0a5,_0x4f9ad9=_0x2b15d0[_0x3eab39(0x19b)]('id'),_0x47cafd=buildArtifactInput(_0x2b15d0);return dryRun(_0x3eab39(0x184),_0x3eab39(0x1a1)+_0x4f9ad9+_0x3eab39(0x1b0))['body']({'appCode':_0x2b15d0[_0x3eab39(0x185)],..._0x47cafd})[_0x3eab39(0x188)](_0x3eab39(0x1a5)+_0x4f9ad9)[_0x3eab39(0x1a9)]();}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
@@ -1 +1 @@
1
- function a9_0xab00(){const _0x4a9583=['\x20(via\x20','global','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','3986991tVNSpa','Then\x20verify\x20with:\x20','\x20scope.','`auth\x20login`\x20does\x20not\x20support\x20--yes.','Auth\x20mode:\x20','Option\x20B:\x20apps\x20config\x20(','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','Read\x20from\x20global\x20config\x20(default)','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','Shorthand\x20for\x20--access-key','logout','nonInteractive','AccessKey\x20(ak_xxx...)','read','8VMmIyD','\x20env\x20var','userCenterDisplayName','Clear\x20accessKey\x20from\x20config','string','slice','Write\x20to\x20global\x20config\x20(default)','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','1107685PoKdgT','Tip:\x20you\x20can\x20also\x20run:','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','write','envName','\x20Verify:\x20','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','\x20Current\x20env:\x20','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','env','Auth\x20config\x20reinitialized\x20in\x20','\x20auth\x20status','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','development','production','stdin','Show\x20current\x20authentication\x20status','isTTY','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','\x20config','join','str','info','daily','25416910XIawfS','validation','No\x20AccessKey\x20found\x20in\x20','9952416caTfFg','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','\x20config.','=ak_xxx','\x20doctor','length','access-key','init','Option\x20C:\x20environment\x20variable','Clear\x20from\x20global\x20config\x20(default)','accessKey','project','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','ACCESS_KEY','newConfigFileName','login','\x20auth\x20login\x20--access-key\x20<ak_xxx>','\x20config.\x20Nothing\x20to\x20clear.','bool','123748HnibHp','global-default','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','status','414554sVaMWT','auth','2278645wTHYnt','2YnctFz','push','trim','Invalid\x20accessKey\x20format:\x20\x22','AccessKey:\x20','yes','boolean','138QWoPBX','Option\x20A:\x20','\x20\x20export\x20','ClientAk','AccessKey\x20saved\x20to\x20'];a9_0xab00=function(){return _0x4a9583;};return a9_0xab00();}const a9_0x4f86b4=a9_0x2b91;(function(_0x9ef112,_0x29b1e9){const _0x337f35=a9_0x2b91,_0x42f22f=_0x9ef112();while(!![]){try{const _0x8b80d4=-parseInt(_0x337f35(0x15a))/0x1*(parseInt(_0x337f35(0x134))/0x2)+parseInt(_0x337f35(0x13b))/0x3*(-parseInt(_0x337f35(0x12d))/0x4)+-parseInt(_0x337f35(0x133))/0x5+parseInt(_0x337f35(0x11a))/0x6+parseInt(_0x337f35(0x131))/0x7*(parseInt(_0x337f35(0x151))/0x8)+-parseInt(_0x337f35(0x143))/0x9+parseInt(_0x337f35(0x117))/0xa;if(_0x8b80d4===_0x29b1e9)break;else _0x42f22f['push'](_0x42f22f['shift']());}catch(_0x49bd2a){_0x42f22f['push'](_0x42f22f['shift']());}}}(a9_0xab00,0xcaab6));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';function a9_0x2b91(_0x25b680,_0x1e469f){_0x25b680=_0x25b680-0x116;const _0xab00b7=a9_0xab00();let _0x2b91ec=_0xab00b7[_0x25b680];return _0x2b91ec;}import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{getLoginUserInfo}from'../../core/api-client.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function showAccessKeyCreateHint(){const _0x280a9e=a9_0x2b91;writeCliSideChannelLine(_0x280a9e(0x12f)+PRODUCT_CONFIG[_0x280a9e(0x153)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x280a9e(0x15b)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x280a9e(0x12a));}function buildAccessKeySetupGuide(){const _0x1f9913=a9_0x2b91;return[_0x1f9913(0x12f)+PRODUCT_CONFIG[_0x1f9913(0x153)]+':',USER_ACCESS_KEY_CREATE_URL,_0x1f9913(0x149)+CLI_BIN_NAME+_0x1f9913(0x15c)][_0x1f9913(0x16f)]('\x0a');}function canPromptForAccessKey(_0x544531){const _0x31ae91=a9_0x2b91;return!_0x544531['nonInteractive']&&process[_0x31ae91(0x16a)][_0x31ae91(0x16c)]!==![]&&process['stdout']['isTTY']!==![];}function resolveAuthScopeFlags(_0x3f743d){const _0x491837=a9_0x2b91;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x3f743d['bool'](_0x491837(0x141)),'explicitProject':_0x3f743d[_0x491837(0x12c)]('project'),'policy':_0x491837(0x12e)}));}async function resolveAuthWriteInput(_0x1ff401){const _0x59b637=a9_0x2b91;let _0x2429c0=(_0x1ff401[_0x59b637(0x170)](_0x59b637(0x120))||_0x1ff401['str']('ak')||'')[_0x59b637(0x136)]();const _0x441f0c=(_0x1ff401[_0x59b637(0x170)](_0x59b637(0x163))||'')['trim']();if(!_0x2429c0&&canPromptForAccessKey(_0x1ff401))try{showAccessKeyCreateHint(),_0x2429c0=await promptAccessKey('');}catch(_0x5d9a95){if(isAbortPrompt(_0x5d9a95))throw CliErrors['cancelled']();throw _0x5d9a95;}if(!_0x2429c0)throw CliErrors[_0x59b637(0x118)]('Missing\x20accessKey.',buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN['test'](_0x2429c0))throw CliErrors[_0x59b637(0x118)](_0x59b637(0x137)+_0x2429c0+'\x22','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars');if(!_0x441f0c)return{'accessKey':_0x2429c0};const _0x38e92e=normalizeEnv(_0x441f0c);return{'accessKey':_0x2429c0,'env':isDaily(_0x38e92e)?_0x59b637(0x116):isDev(_0x38e92e)?_0x59b637(0x168):_0x59b637(0x169)};}export const authDefinitions=[{'service':'auth','command':a9_0x4f86b4(0x129),'description':a9_0x4f86b4(0x166),'risk':a9_0x4f86b4(0x15d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x4f86b4(0x120),'type':a9_0x4f86b4(0x155),'description':a9_0x4f86b4(0x14f)},{'name':'ak','type':a9_0x4f86b4(0x155),'description':'Shorthand\x20for\x20--access-key'},{'name':a9_0x4f86b4(0x141),'type':'boolean','description':a9_0x4f86b4(0x157),'default':!![]},{'name':a9_0x4f86b4(0x125),'type':a9_0x4f86b4(0x13a),'description':a9_0x4f86b4(0x160),'default':![]}],async 'execute'(_0x1cda71){const _0x1495ae=a9_0x4f86b4;if(_0x1cda71[_0x1495ae(0x12c)](_0x1495ae(0x139)))throw CliErrors['validation'](_0x1495ae(0x146),'Use\x20`'+CLI_BIN_NAME+_0x1495ae(0x11b)+CLI_BIN_NAME+_0x1495ae(0x162));const _0x29a2d5=(_0x1cda71['str'](_0x1495ae(0x120))||_0x1cda71[_0x1495ae(0x170)]('ak')||'')['trim']();if(!_0x29a2d5&&_0x1cda71[_0x1495ae(0x14e)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x325cb7=await resolveAuthWriteInput(_0x1cda71),_0x19fb08=resolveAuthScopeFlags(_0x1cda71),_0x54edf6=readScopedConfig(_0x19fb08);_0x54edf6[_0x1495ae(0x124)]=_0x325cb7[_0x1495ae(0x124)];_0x325cb7[_0x1495ae(0x163)]&&(_0x54edf6[_0x1495ae(0x163)]=_0x325cb7[_0x1495ae(0x163)]);writeScopedConfig(_0x54edf6,_0x19fb08);const _0x524b4c=_0x19fb08[_0x1495ae(0x141)]?_0x1495ae(0x141):_0x1495ae(0x125),_0x1d4768=_0x54edf6['env']?_0x1495ae(0x161)+_0x54edf6[_0x1495ae(0x163)]+'.':'';return{'ok':!![],'message':_0x1495ae(0x13f)+_0x524b4c+_0x1495ae(0x11c)+_0x1d4768+'\x20Verify:\x20'+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':a9_0x4f86b4(0x132),'command':a9_0x4f86b4(0x121),'description':'Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','risk':a9_0x4f86b4(0x15d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x4f86b4(0x120),'type':a9_0x4f86b4(0x155),'description':a9_0x4f86b4(0x14f)},{'name':'ak','type':'string','description':a9_0x4f86b4(0x14c)},{'name':a9_0x4f86b4(0x163),'type':a9_0x4f86b4(0x155),'description':a9_0x4f86b4(0x158)},{'name':a9_0x4f86b4(0x141),'type':a9_0x4f86b4(0x13a),'description':a9_0x4f86b4(0x157),'default':!![]},{'name':a9_0x4f86b4(0x125),'type':a9_0x4f86b4(0x13a),'description':a9_0x4f86b4(0x160),'default':![]}],async 'execute'(_0x4f9bb9){const _0x46c129=a9_0x4f86b4,_0x4ddc90=await resolveAuthWriteInput(_0x4f9bb9),_0x23d124=resolveAuthScopeFlags(_0x4f9bb9),_0x1acaeb={'accessKey':_0x4ddc90[_0x46c129(0x124)]};_0x4ddc90[_0x46c129(0x163)]&&(_0x1acaeb[_0x46c129(0x163)]=_0x4ddc90[_0x46c129(0x163)]);writeScopedConfig(_0x1acaeb,_0x23d124);const _0x20acdf=_0x23d124['global']?_0x46c129(0x141):'project',_0x587920=_0x1acaeb['env']?_0x46c129(0x161)+_0x1acaeb[_0x46c129(0x163)]+'.':'';return{'ok':!![],'message':_0x46c129(0x164)+_0x20acdf+_0x46c129(0x145)+_0x587920+_0x46c129(0x15f)+CLI_BIN_NAME+_0x46c129(0x165)};}},{'service':'auth','command':a9_0x4f86b4(0x14d),'description':a9_0x4f86b4(0x154),'risk':a9_0x4f86b4(0x15d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x4f86b4(0x141),'type':'boolean','description':a9_0x4f86b4(0x123),'default':!![]},{'name':'project','type':a9_0x4f86b4(0x13a),'description':a9_0x4f86b4(0x16d),'default':![]}],async 'execute'(_0x1e48f5){const _0xc38145=a9_0x4f86b4,_0x199b60=resolveAuthScopeFlags(_0x1e48f5),_0x4f52ee=readScopedConfig(_0x199b60),_0x1a97ff=!!_0x4f52ee[_0xc38145(0x124)];delete _0x4f52ee[_0xc38145(0x124)],writeScopedConfig(_0x4f52ee,_0x199b60);const _0x1ca2ec=_0x199b60['global']?_0xc38145(0x141):'project';if(_0x1a97ff)return{'ok':!![],'message':'AccessKey\x20cleared\x20from\x20'+_0x1ca2ec+'\x20config.'};return{'ok':!![],'message':_0xc38145(0x119)+_0x1ca2ec+_0xc38145(0x12b)};}},{'service':a9_0x4f86b4(0x132),'command':a9_0x4f86b4(0x130),'description':a9_0x4f86b4(0x16b),'risk':a9_0x4f86b4(0x150),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x4f86b4(0x141),'type':a9_0x4f86b4(0x13a),'description':a9_0x4f86b4(0x14a),'default':!![]},{'name':a9_0x4f86b4(0x125),'type':'boolean','description':a9_0x4f86b4(0x142),'default':![]}],async 'execute'(_0xff0c30){const _0x25976f=a9_0x4f86b4,_0x62e970=resolveAuthScopeFlags(_0xff0c30),_0x23be70=readScopedConfig(_0x62e970),_0x17d153=productEnvName(_0x25976f(0x127)),_0x15d9e2=productEnv(_0x25976f(0x127))||undefined,_0x2ecec4=_0x23be70[_0x25976f(0x124)]||undefined,_0x1f06d7=_0x15d9e2||_0x2ecec4,_0x1a9ba3=_0x15d9e2?_0x17d153+_0x25976f(0x152):_0x2ecec4?(_0x62e970['global']?_0x25976f(0x141):_0x25976f(0x125))+_0x25976f(0x16e):null,_0x5e9415=[_0x25976f(0x147)+AUTH_MODE[_0x25976f(0x13e)]];if(_0x1f06d7){const _0x4903bb=_0x1f06d7[_0x25976f(0x11f)]>0x8?''+_0x1f06d7[_0x25976f(0x156)](0x0,0x8)+'*'['repeat'](_0x1f06d7['length']-0x8):_0x1f06d7;_0x5e9415[_0x25976f(0x135)](_0x25976f(0x138)+_0x4903bb+(_0x1a9ba3?_0x25976f(0x140)+_0x1a9ba3+')':''));}return!_0x1f06d7&&(_0x5e9415[_0x25976f(0x135)](''),_0x5e9415[_0x25976f(0x135)](_0x25976f(0x14b)),_0x5e9415[_0x25976f(0x135)](''),_0x5e9415['push'](_0x25976f(0x13c)+CLI_BIN_NAME+'\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]'),_0x5e9415[_0x25976f(0x135)](''),_0x5e9415[_0x25976f(0x135)](_0x25976f(0x148)+PRODUCT_CONFIG[_0x25976f(0x128)]+')'),_0x5e9415[_0x25976f(0x135)](_0x25976f(0x167)),_0x5e9415[_0x25976f(0x135)](''),_0x5e9415['push'](_0x25976f(0x122)),_0x5e9415[_0x25976f(0x135)](_0x25976f(0x13d)+_0x17d153+_0x25976f(0x11d)),_0x5e9415[_0x25976f(0x135)](''),_0x5e9415['push'](_0x25976f(0x144)+CLI_BIN_NAME+_0x25976f(0x165)),_0x5e9415[_0x25976f(0x135)](_0x25976f(0x126)+CLI_BIN_NAME+_0x25976f(0x11e))),{'ok':!![],'message':_0x5e9415['join']('\x0a')};}},{'service':a9_0x4f86b4(0x132),'command':a9_0x4f86b4(0x171),'description':a9_0x4f86b4(0x159),'risk':a9_0x4f86b4(0x150),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x2d11eb){const _0x364d05=a9_0x4f86b4,_0x344ec8=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x344ec8,'meta':{'env':_0x2d11eb[_0x364d05(0x15e)]??'production'}}};}}];
1
+ const a9_0x411ff4=a9_0x4395;(function(_0x4958f4,_0x580bd2){const _0x4993cc=a9_0x4395,_0x535339=_0x4958f4();while(!![]){try{const _0x476ea2=parseInt(_0x4993cc(0x198))/0x1*(parseInt(_0x4993cc(0x1ae))/0x2)+-parseInt(_0x4993cc(0x1a6))/0x3*(parseInt(_0x4993cc(0x1ab))/0x4)+parseInt(_0x4993cc(0x1ce))/0x5*(parseInt(_0x4993cc(0x1d5))/0x6)+-parseInt(_0x4993cc(0x1bd))/0x7+-parseInt(_0x4993cc(0x1dc))/0x8+-parseInt(_0x4993cc(0x1d0))/0x9+parseInt(_0x4993cc(0x1c7))/0xa;if(_0x476ea2===_0x580bd2)break;else _0x535339['push'](_0x535339['shift']());}catch(_0x513b61){_0x535339['push'](_0x535339['shift']());}}}(a9_0x5c9f,0xa51dd));function a9_0x4395(_0x17a351,_0x24d909){_0x17a351=_0x17a351-0x189;const _0x5c9f57=a9_0x5c9f();let _0x439596=_0x5c9f57[_0x17a351];return _0x439596;}import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{getLoginUserInfo}from'../../core/api-client.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function showAccessKeyCreateHint(){const _0x2adb6f=a9_0x4395;writeCliSideChannelLine(_0x2adb6f(0x190)+PRODUCT_CONFIG[_0x2adb6f(0x1c3)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x2adb6f(0x1d4)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x2adb6f(0x1cc));}function buildAccessKeySetupGuide(){const _0x64dea1=a9_0x4395;return['AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0x64dea1(0x1c3)]+':',USER_ACCESS_KEY_CREATE_URL,_0x64dea1(0x18f)+CLI_BIN_NAME+_0x64dea1(0x1ba)][_0x64dea1(0x1a1)]('\x0a');}function canPromptForAccessKey(_0x3a305c){const _0x49127c=a9_0x4395;return!_0x3a305c[_0x49127c(0x194)]&&process[_0x49127c(0x1a0)][_0x49127c(0x18b)]!==![]&&process[_0x49127c(0x195)][_0x49127c(0x18b)]!==![];}function resolveAuthScopeFlags(_0x15f5c5){const _0x1946c1=a9_0x4395;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x15f5c5['bool'](_0x1946c1(0x1b2)),'explicitProject':_0x15f5c5['bool'](_0x1946c1(0x1a4)),'policy':_0x1946c1(0x1db)}));}async function resolveAuthWriteInput(_0x50356a){const _0x54ac1b=a9_0x4395;let _0x3b94eb=(_0x50356a[_0x54ac1b(0x1c1)](_0x54ac1b(0x1b4))||_0x50356a['str']('ak')||'')[_0x54ac1b(0x1a5)]();const _0x4c6e14=(_0x50356a[_0x54ac1b(0x1c1)]('env')||'')[_0x54ac1b(0x1a5)]();if(!_0x3b94eb&&canPromptForAccessKey(_0x50356a))try{showAccessKeyCreateHint(),_0x3b94eb=await promptAccessKey('');}catch(_0xa147c4){if(isAbortPrompt(_0xa147c4))throw CliErrors[_0x54ac1b(0x1a7)]();throw _0xa147c4;}if(!_0x3b94eb)throw CliErrors['validation'](_0x54ac1b(0x1e2),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x54ac1b(0x1b1)](_0x3b94eb))throw CliErrors[_0x54ac1b(0x1d9)]('Invalid\x20accessKey\x20format:\x20\x22'+_0x3b94eb+'\x22',_0x54ac1b(0x18d));if(!_0x4c6e14)return{'accessKey':_0x3b94eb};const _0x109bbb=normalizeEnv(_0x4c6e14);return{'accessKey':_0x3b94eb,'env':isDaily(_0x109bbb)?_0x54ac1b(0x1de):isDev(_0x109bbb)?_0x54ac1b(0x1c2):_0x54ac1b(0x1a2)};}export const authDefinitions=[{'service':a9_0x411ff4(0x1b8),'command':'login','description':'Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','risk':a9_0x411ff4(0x1bb),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'access-key','type':a9_0x411ff4(0x1b3),'description':a9_0x411ff4(0x1e0)},{'name':'ak','type':a9_0x411ff4(0x1b3),'description':'Shorthand\x20for\x20--access-key'},{'name':a9_0x411ff4(0x1b2),'type':a9_0x411ff4(0x1c5),'description':a9_0x411ff4(0x1bc),'default':!![]},{'name':a9_0x411ff4(0x1a4),'type':'boolean','description':a9_0x411ff4(0x18a),'default':![]}],async 'execute'(_0x4ff7fc){const _0x133851=a9_0x411ff4;if(_0x4ff7fc[_0x133851(0x1da)](_0x133851(0x19f)))throw CliErrors['validation'](_0x133851(0x1bf),'Use\x20`'+CLI_BIN_NAME+'\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`'+CLI_BIN_NAME+_0x133851(0x18e));const _0x1e589c=(_0x4ff7fc[_0x133851(0x1c1)](_0x133851(0x1b4))||_0x4ff7fc[_0x133851(0x1c1)]('ak')||'')[_0x133851(0x1a5)]();if(!_0x1e589c&&_0x4ff7fc['nonInteractive'])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x3363e6=await resolveAuthWriteInput(_0x4ff7fc),_0x2f0893=resolveAuthScopeFlags(_0x4ff7fc),_0x3d9215=readScopedConfig(_0x2f0893);_0x3d9215['accessKey']=_0x3363e6['accessKey'];_0x3363e6['env']&&(_0x3d9215[_0x133851(0x1b0)]=_0x3363e6['env']);writeScopedConfig(_0x3d9215,_0x2f0893);const _0x543368=_0x2f0893['global']?_0x133851(0x1b2):_0x133851(0x1a4),_0x2b79d1=_0x3d9215['env']?_0x133851(0x1a9)+_0x3d9215[_0x133851(0x1b0)]+'.':'';return{'ok':!![],'message':'AccessKey\x20saved\x20to\x20'+_0x543368+_0x133851(0x1a3)+_0x2b79d1+_0x133851(0x18c)+CLI_BIN_NAME+_0x133851(0x1cf)};}},{'service':a9_0x411ff4(0x1b8),'command':a9_0x411ff4(0x1dd),'description':a9_0x411ff4(0x1ac),'risk':a9_0x411ff4(0x1bb),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'access-key','type':'string','description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':a9_0x411ff4(0x1b3),'description':a9_0x411ff4(0x1b5)},{'name':a9_0x411ff4(0x1b0),'type':a9_0x411ff4(0x1b3),'description':a9_0x411ff4(0x189)},{'name':a9_0x411ff4(0x1b2),'type':a9_0x411ff4(0x1c5),'description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':'project','type':'boolean','description':a9_0x411ff4(0x18a),'default':![]}],async 'execute'(_0x38e316){const _0x17851b=a9_0x411ff4,_0x34173b=await resolveAuthWriteInput(_0x38e316),_0x40edc8=resolveAuthScopeFlags(_0x38e316),_0x59918f={'accessKey':_0x34173b[_0x17851b(0x1cb)]};_0x34173b['env']&&(_0x59918f['env']=_0x34173b['env']);writeScopedConfig(_0x59918f,_0x40edc8);const _0xa53105=_0x40edc8[_0x17851b(0x1b2)]?_0x17851b(0x1b2):_0x17851b(0x1a4),_0x12135f=_0x59918f[_0x17851b(0x1b0)]?_0x17851b(0x1a9)+_0x59918f[_0x17851b(0x1b0)]+'.':'';return{'ok':!![],'message':_0x17851b(0x193)+_0xa53105+_0x17851b(0x1c8)+_0x12135f+_0x17851b(0x18c)+CLI_BIN_NAME+_0x17851b(0x1cf)};}},{'service':'auth','command':a9_0x411ff4(0x1b9),'description':a9_0x411ff4(0x199),'risk':a9_0x411ff4(0x1bb),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x411ff4(0x1b2),'type':a9_0x411ff4(0x1c5),'description':a9_0x411ff4(0x1cd),'default':!![]},{'name':a9_0x411ff4(0x1a4),'type':a9_0x411ff4(0x1c5),'description':a9_0x411ff4(0x1c9),'default':![]}],async 'execute'(_0x5d62e0){const _0x395ce6=a9_0x411ff4,_0x4bd19f=resolveAuthScopeFlags(_0x5d62e0),_0x4ec4c3=readScopedConfig(_0x4bd19f),_0x3d5d35=!!_0x4ec4c3[_0x395ce6(0x1cb)];delete _0x4ec4c3[_0x395ce6(0x1cb)],writeScopedConfig(_0x4ec4c3,_0x4bd19f);const _0x5492b7=_0x4bd19f[_0x395ce6(0x1b2)]?_0x395ce6(0x1b2):_0x395ce6(0x1a4);if(_0x3d5d35)return{'ok':!![],'message':_0x395ce6(0x1d2)+_0x5492b7+_0x395ce6(0x1a3)};return{'ok':!![],'message':_0x395ce6(0x1d6)+_0x5492b7+_0x395ce6(0x192)};}},{'service':a9_0x411ff4(0x1b8),'command':a9_0x411ff4(0x1b6),'description':'Show\x20current\x20authentication\x20status','risk':a9_0x411ff4(0x1c6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x411ff4(0x1b2),'type':a9_0x411ff4(0x1c5),'description':a9_0x411ff4(0x1df),'default':!![]},{'name':a9_0x411ff4(0x1a4),'type':a9_0x411ff4(0x1c5),'description':a9_0x411ff4(0x1aa),'default':![]}],async 'execute'(_0x39e7a4){const _0x5f5b5e=a9_0x411ff4,_0x5ee8fa=resolveAuthScopeFlags(_0x39e7a4),_0x99a341=readScopedConfig(_0x5ee8fa),_0x5ddcd7=productEnvName(_0x5f5b5e(0x19b)),_0x32262a=productEnv('ACCESS_KEY')||undefined,_0x1c5337=_0x99a341[_0x5f5b5e(0x1cb)]||undefined,_0x5ae92f=_0x32262a||_0x1c5337,_0x15dcd7=_0x32262a?_0x5ddcd7+_0x5f5b5e(0x19d):_0x1c5337?(_0x5ee8fa[_0x5f5b5e(0x1b2)]?_0x5f5b5e(0x1b2):_0x5f5b5e(0x1a4))+'\x20config':null,_0x1bce71=[_0x5f5b5e(0x1d1)+AUTH_MODE[_0x5f5b5e(0x19a)]];if(_0x5ae92f){const _0x3d6ca8=_0x5ae92f['length']>0x8?''+_0x5ae92f[_0x5f5b5e(0x1c4)](0x0,0x8)+'*'[_0x5f5b5e(0x196)](_0x5ae92f[_0x5f5b5e(0x1af)]-0x8):_0x5ae92f;_0x1bce71[_0x5f5b5e(0x191)](_0x5f5b5e(0x1be)+_0x3d6ca8+(_0x15dcd7?_0x5f5b5e(0x1d8)+_0x15dcd7+')':''));}return!_0x5ae92f&&(_0x1bce71[_0x5f5b5e(0x191)](''),_0x1bce71[_0x5f5b5e(0x191)](_0x5f5b5e(0x19c)),_0x1bce71[_0x5f5b5e(0x191)](''),_0x1bce71[_0x5f5b5e(0x191)](_0x5f5b5e(0x1ca)+CLI_BIN_NAME+_0x5f5b5e(0x1c0)),_0x1bce71[_0x5f5b5e(0x191)](''),_0x1bce71[_0x5f5b5e(0x191)](_0x5f5b5e(0x1ad)+PRODUCT_CONFIG[_0x5f5b5e(0x1a8)]+')'),_0x1bce71[_0x5f5b5e(0x191)](_0x5f5b5e(0x197)),_0x1bce71[_0x5f5b5e(0x191)](''),_0x1bce71[_0x5f5b5e(0x191)](_0x5f5b5e(0x1e1)),_0x1bce71['push'](_0x5f5b5e(0x1e3)+_0x5ddcd7+_0x5f5b5e(0x19e)),_0x1bce71[_0x5f5b5e(0x191)](''),_0x1bce71[_0x5f5b5e(0x191)](_0x5f5b5e(0x1d7)+CLI_BIN_NAME+'\x20auth\x20status'),_0x1bce71['push'](_0x5f5b5e(0x1d3)+CLI_BIN_NAME+'\x20doctor')),{'ok':!![],'message':_0x1bce71[_0x5f5b5e(0x1a1)]('\x0a')};}},{'service':a9_0x411ff4(0x1b8),'command':a9_0x411ff4(0x1b7),'description':'Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','risk':'read','requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x415cde){const _0x41a4b9=a9_0x411ff4,_0x293ef2=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x293ef2,'meta':{'env':_0x415cde['envName']??_0x41a4b9(0x1a2)}}};}}];function a9_0x5c9f(){const _0x4f28ed=['bool','global-default','5662856REDPDw','init','daily','Read\x20from\x20global\x20config\x20(default)','AccessKey\x20(ak_xxx...)','Option\x20C:\x20environment\x20variable','Missing\x20accessKey.','\x20\x20export\x20','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','isTTY','\x20Verify:\x20','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','push','\x20config.\x20Nothing\x20to\x20clear.','Auth\x20config\x20reinitialized\x20in\x20','nonInteractive','stdout','repeat','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','80345lmEBzc','Clear\x20accessKey\x20from\x20config','ClientAk','ACCESS_KEY','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','\x20env\x20var','=ak_xxx','yes','stdin','join','production','\x20config.','project','trim','3BPBVrv','cancelled','newConfigFileName','\x20Current\x20env:\x20','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','2184988vvHyDW','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','Option\x20B:\x20apps\x20config\x20(','22yaEfKz','length','env','test','global','string','access-key','Shorthand\x20for\x20--access-key','status','info','auth','logout','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','write','Write\x20to\x20global\x20config\x20(default)','4277742mavgLu','AccessKey:\x20','`auth\x20login`\x20does\x20not\x20support\x20--yes.','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','str','development','userCenterDisplayName','slice','boolean','read','16766110nGRFWX','\x20scope.','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','Option\x20A:\x20','accessKey','\x20auth\x20login\x20--access-key\x20<ak_xxx>','Clear\x20from\x20global\x20config\x20(default)','20qQIVIj','\x20auth\x20status','4849695GNmJNt','Auth\x20mode:\x20','AccessKey\x20cleared\x20from\x20','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','Tip:\x20you\x20can\x20also\x20run:','779964BnhMza','No\x20AccessKey\x20found\x20in\x20','Then\x20verify\x20with:\x20','\x20(via\x20','validation'];a9_0x5c9f=function(){return _0x4f28ed;};return a9_0x5c9f();}
@@ -1 +1 @@
1
- (function(_0x5bd47a,_0xa9f5b9){const _0x2eb434=a10_0x550d,_0x302bea=_0x5bd47a();while(!![]){try{const _0x1aa389=parseInt(_0x2eb434(0xae))/0x1+-parseInt(_0x2eb434(0xa0))/0x2+parseInt(_0x2eb434(0x9f))/0x3+-parseInt(_0x2eb434(0x9d))/0x4+parseInt(_0x2eb434(0x9e))/0x5*(-parseInt(_0x2eb434(0xa1))/0x6)+-parseInt(_0x2eb434(0xb0))/0x7+parseInt(_0x2eb434(0xab))/0x8*(parseInt(_0x2eb434(0xaa))/0x9);if(_0x1aa389===_0xa9f5b9)break;else _0x302bea['push'](_0x302bea['shift']());}catch(_0x25512e){_0x302bea['push'](_0x302bea['shift']());}}}(a10_0x479b,0xbb4b8));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x2bdcb5=a10_0x550d;super(_0x2bdcb5(0xa3)),this[_0x2bdcb5(0xa9)]=_0x2bdcb5(0xa4);}}function a10_0x550d(_0xe84c5e,_0x2b7c85){_0xe84c5e=_0xe84c5e-0x9b;const _0x479bcb=a10_0x479b();let _0x550dc9=_0x479bcb[_0xe84c5e];return _0x550dc9;}function createSafeRl(){const _0x3fe451=a10_0x550d,_0x50d1b1=createInterface({'input':process[_0x3fe451(0xad)],'output':process['stdout']});let _0x434c2d;const _0x5296a8=new Promise((_0x193730,_0x4a9138)=>{const _0x2e0137=_0x3fe451;_0x434c2d=()=>{const _0x9ef98b=a10_0x550d;_0x434c2d&&(_0x50d1b1[_0x9ef98b(0x9b)](_0x9ef98b(0xa7),_0x434c2d),_0x434c2d=undefined);try{_0x50d1b1[_0x9ef98b(0xa2)]();}catch{}_0x4a9138(new AbortPrompt());},_0x50d1b1[_0x2e0137(0xa5)](_0x2e0137(0xa7),_0x434c2d);}),_0x160087=()=>{const _0xed6660=_0x3fe451;_0x434c2d&&(_0x50d1b1['removeListener'](_0xed6660(0xa7),_0x434c2d),_0x434c2d=undefined);try{_0x50d1b1['close']();}catch{}};return{'rl':_0x50d1b1,'abortPromise':_0x5296a8,'disposeSuccess':_0x160087};}export async function promptAccessKey(_0x7efd37=''){const {rl:_0x817d5b,abortPromise:_0x5616dd,disposeSuccess:_0x235d28}=createSafeRl(),_0x51d2f5=new Promise(_0x18f4eb=>{const _0x583c53=a10_0x550d,_0x47e16d=_0x7efd37?_0x583c53(0xac)+_0x7efd37+_0x583c53(0xa8):_0x583c53(0x9c);_0x817d5b[_0x583c53(0xa6)](_0x47e16d,_0x26c023=>{const _0xe18d06=_0x583c53;_0x235d28(),_0x18f4eb(_0x26c023[_0xe18d06(0xaf)]()||_0x7efd37);});});return Promise['race']([_0x51d2f5,_0x5616dd]);}export function isAbortPrompt(_0x508e3a){const _0x20eaa0=a10_0x550d;return _0x508e3a instanceof Error&&_0x508e3a[_0x20eaa0(0xa9)]===_0x20eaa0(0xa4);}function a10_0x479b(){const _0x3a6616=['question','SIGINT','):\x20','name','549WrizfE','473072gOezid','AccessKey\x20(','stdin','879970qKQHKr','trim','9880395fEiyQm','removeListener','AccessKey\x20(paste\x20ak_...):\x20','5117448zlTWbS','4024045lxHfmV','222339CwLMiE','596882NxAzcf','6SBcibn','close','User\x20aborted\x20prompt','AbortPrompt','once'];a10_0x479b=function(){return _0x3a6616;};return a10_0x479b();}
1
+ (function(_0x247632,_0x4a6382){const _0xf09395=a10_0x169f,_0x4a62d9=_0x247632();while(!![]){try{const _0x21f553=-parseInt(_0xf09395(0x1de))/0x1*(parseInt(_0xf09395(0x1e1))/0x2)+-parseInt(_0xf09395(0x1e7))/0x3+-parseInt(_0xf09395(0x1da))/0x4*(-parseInt(_0xf09395(0x1df))/0x5)+parseInt(_0xf09395(0x1e6))/0x6+parseInt(_0xf09395(0x1eb))/0x7+-parseInt(_0xf09395(0x1e0))/0x8+parseInt(_0xf09395(0x1d6))/0x9*(parseInt(_0xf09395(0x1e9))/0xa);if(_0x21f553===_0x4a6382)break;else _0x4a62d9['push'](_0x4a62d9['shift']());}catch(_0x5f598d){_0x4a62d9['push'](_0x4a62d9['shift']());}}}(a10_0x1eb7,0x4072c));import{createInterface}from'node:readline';function a10_0x169f(_0x549625,_0x2e271f){_0x549625=_0x549625-0x1d5;const _0x1eb75b=a10_0x1eb7();let _0x169f65=_0x1eb75b[_0x549625];return _0x169f65;}function a10_0x1eb7(){const _0xa1c848=['2606304pDolJh','1438125CCywYz','race','10xQdBwR','stdin','200746sbWVML','User\x20aborted\x20prompt','):\x20','2831346eFyxBT','AccessKey\x20(','SIGINT','AccessKey\x20(paste\x20ak_...):\x20','69160TQHOsl','trim','removeListener','question','73994DftBZs','65hKEalo','1480616jcINDi','2DqezYw','stdout','close','AbortPrompt','once'];a10_0x1eb7=function(){return _0xa1c848;};return a10_0x1eb7();}class AbortPrompt extends Error{constructor(){const _0x15e7a7=a10_0x169f;super(_0x15e7a7(0x1ec)),this['name']=_0x15e7a7(0x1e4);}}function createSafeRl(){const _0x438358=a10_0x169f,_0x59a307=createInterface({'input':process[_0x438358(0x1ea)],'output':process[_0x438358(0x1e2)]});let _0x2f16ba;const _0x3b06a9=new Promise((_0xf92fc2,_0x1a31c8)=>{const _0x1c5755=_0x438358;_0x2f16ba=()=>{const _0x5a8acc=a10_0x169f;_0x2f16ba&&(_0x59a307[_0x5a8acc(0x1dc)](_0x5a8acc(0x1d8),_0x2f16ba),_0x2f16ba=undefined);try{_0x59a307[_0x5a8acc(0x1e3)]();}catch{}_0x1a31c8(new AbortPrompt());},_0x59a307[_0x1c5755(0x1e5)](_0x1c5755(0x1d8),_0x2f16ba);}),_0x4951af=()=>{const _0x4631bf=_0x438358;_0x2f16ba&&(_0x59a307[_0x4631bf(0x1dc)](_0x4631bf(0x1d8),_0x2f16ba),_0x2f16ba=undefined);try{_0x59a307[_0x4631bf(0x1e3)]();}catch{}};return{'rl':_0x59a307,'abortPromise':_0x3b06a9,'disposeSuccess':_0x4951af};}export async function promptAccessKey(_0x5f08c8=''){const _0x4b8adb=a10_0x169f,{rl:_0xd12354,abortPromise:_0x53d234,disposeSuccess:_0x181a05}=createSafeRl(),_0x4875f7=new Promise(_0x2aca68=>{const _0x520249=a10_0x169f,_0x496536=_0x5f08c8?_0x520249(0x1d7)+_0x5f08c8+_0x520249(0x1d5):_0x520249(0x1d9);_0xd12354[_0x520249(0x1dd)](_0x496536,_0x50284c=>{const _0x12754c=_0x520249;_0x181a05(),_0x2aca68(_0x50284c[_0x12754c(0x1db)]()||_0x5f08c8);});});return Promise[_0x4b8adb(0x1e8)]([_0x4875f7,_0x53d234]);}export function isAbortPrompt(_0x8fb385){const _0x4ad548=a10_0x169f;return _0x8fb385 instanceof Error&&_0x8fb385['name']===_0x4ad548(0x1e4);}
@@ -1 +1 @@
1
- function a11_0x999d(_0x3a1ba4,_0xac360b){_0x3a1ba4=_0x3a1ba4-0x149;const _0x2f8a05=a11_0x2f8a();let _0x999d6c=_0x2f8a05[_0x3a1ba4];return _0x999d6c;}const a11_0x11a9a4=a11_0x999d;(function(_0x409359,_0x456674){const _0x1bc5bc=a11_0x999d,_0xb6534f=_0x409359();while(!![]){try{const _0x7f1a77=-parseInt(_0x1bc5bc(0x150))/0x1+-parseInt(_0x1bc5bc(0x149))/0x2*(-parseInt(_0x1bc5bc(0x14b))/0x3)+parseInt(_0x1bc5bc(0x15f))/0x4*(-parseInt(_0x1bc5bc(0x158))/0x5)+parseInt(_0x1bc5bc(0x155))/0x6*(-parseInt(_0x1bc5bc(0x157))/0x7)+parseInt(_0x1bc5bc(0x152))/0x8+-parseInt(_0x1bc5bc(0x151))/0x9+parseInt(_0x1bc5bc(0x15e))/0xa*(parseInt(_0x1bc5bc(0x14d))/0xb);if(_0x7f1a77===_0x456674)break;else _0xb6534f['push'](_0xb6534f['shift']());}catch(_0x4cada0){_0xb6534f['push'](_0xb6534f['shift']());}}}(a11_0x2f8a,0x9173a));import{getBffScriptInfo}from'../../core/api-client.js';function a11_0x2f8a(){const _0x5a11ad=['functionName','description','Script\x20ID','67430nxWyOw','200504fTpPUu','4XLLyOy','verbose','1635609hJaPzN','updatedTime','3201rlJWgE','appCode','bff','985361eFknQT','10627182hmmvQp','6319512xrlTIG','scriptType','(none)','6GWZZBJ','bool','4406465OuAyVP','45FlTcqH','Get\x20BFF\x20script\x20details\x20by\x20ID','num'];a11_0x2f8a=function(){return _0x5a11ad;};return a11_0x2f8a();}import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a11_0x11a9a4(0x14f),'command':'detail','description':a11_0x11a9a4(0x159),'risk':'read','flags':[{...ID_FLAG,'description':a11_0x11a9a4(0x15d)},VERBOSE_FLAG],async 'execute'(_0x4380b9){const _0x403b29=a11_0x11a9a4,_0x3da04c=await getBffScriptInfo(_0x4380b9[_0x403b29(0x15a)]('id')),_0x55dccb=_0x4380b9[_0x403b29(0x156)](_0x403b29(0x14a));if(_0x55dccb)return{'ok':!![],'data':_0x3da04c};return{'ok':!![],'data':{'id':_0x3da04c['id'],'appCode':_0x3da04c[_0x403b29(0x14e)],'functionName':_0x3da04c[_0x403b29(0x15b)]??'','scriptType':_0x3da04c[_0x403b29(0x153)],'description':_0x3da04c[_0x403b29(0x15c)]||_0x403b29(0x154),'createdTime':_0x3da04c['createdTime']??'','updatedTime':_0x3da04c[_0x403b29(0x14c)]??''}};}};
1
+ const a11_0x462726=a11_0x580d;function a11_0x580d(_0x12ae2a,_0x43b714){_0x12ae2a=_0x12ae2a-0x6d;const _0xcea5b=a11_0xcea5();let _0x580da6=_0xcea5b[_0x12ae2a];return _0x580da6;}(function(_0xff6d62,_0x4f03ef){const _0x2c19c2=a11_0x580d,_0x141abe=_0xff6d62();while(!![]){try{const _0x361341=parseInt(_0x2c19c2(0x73))/0x1*(parseInt(_0x2c19c2(0x83))/0x2)+-parseInt(_0x2c19c2(0x6f))/0x3+parseInt(_0x2c19c2(0x85))/0x4*(parseInt(_0x2c19c2(0x72))/0x5)+parseInt(_0x2c19c2(0x79))/0x6*(-parseInt(_0x2c19c2(0x7e))/0x7)+parseInt(_0x2c19c2(0x78))/0x8+parseInt(_0x2c19c2(0x6d))/0x9*(parseInt(_0x2c19c2(0x82))/0xa)+-parseInt(_0x2c19c2(0x76))/0xb*(-parseInt(_0x2c19c2(0x75))/0xc);if(_0x361341===_0x4f03ef)break;else _0x141abe['push'](_0x141abe['shift']());}catch(_0xe4d2ec){_0x141abe['push'](_0x141abe['shift']());}}}(a11_0xcea5,0x64be3));import{getBffScriptInfo}from'../../core/api-client.js';function a11_0xcea5(){const _0x203dac=['63EfMnNh','detail','bff','read','10vCWGfk','40188SaSNHn','scriptType','4NaewNI','4901373vZMwno','Script\x20ID','2028489funFIw','verbose','createdTime','3117495lZabnc','3vGRHKp','bool','15684zuoXUT','847kprDwN','num','182728njZgpm','175368mbIhrI','appCode','description','Get\x20BFF\x20script\x20details\x20by\x20ID','functionName'];a11_0xcea5=function(){return _0x203dac;};return a11_0xcea5();}import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a11_0x462726(0x80),'command':a11_0x462726(0x7f),'description':a11_0x462726(0x7c),'risk':a11_0x462726(0x81),'flags':[{...ID_FLAG,'description':a11_0x462726(0x6e)},VERBOSE_FLAG],async 'execute'(_0x10f81b){const _0x3613bf=a11_0x462726,_0x590165=await getBffScriptInfo(_0x10f81b[_0x3613bf(0x77)]('id')),_0x3aaf64=_0x10f81b[_0x3613bf(0x74)](_0x3613bf(0x70));if(_0x3aaf64)return{'ok':!![],'data':_0x590165};return{'ok':!![],'data':{'id':_0x590165['id'],'appCode':_0x590165[_0x3613bf(0x7a)],'functionName':_0x590165[_0x3613bf(0x7d)]??'','scriptType':_0x590165[_0x3613bf(0x84)],'description':_0x590165[_0x3613bf(0x7b)]||'(none)','createdTime':_0x590165[_0x3613bf(0x71)]??'','updatedTime':_0x590165['updatedTime']??''}};}};
@@ -1 +1 @@
1
- const a12_0x3ee4df=a12_0x39f8;(function(_0x142cb4,_0x351cec){const _0x4476ec=a12_0x39f8,_0x2e5aec=_0x142cb4();while(!![]){try{const _0x2ca527=-parseInt(_0x4476ec(0x1e7))/0x1*(-parseInt(_0x4476ec(0x1eb))/0x2)+-parseInt(_0x4476ec(0x1e4))/0x3+parseInt(_0x4476ec(0x1f4))/0x4+parseInt(_0x4476ec(0x1f2))/0x5+-parseInt(_0x4476ec(0x1f1))/0x6*(parseInt(_0x4476ec(0x1ef))/0x7)+parseInt(_0x4476ec(0x1ed))/0x8*(-parseInt(_0x4476ec(0x1e9))/0x9)+-parseInt(_0x4476ec(0x1e8))/0xa*(-parseInt(_0x4476ec(0x1f0))/0xb);if(_0x2ca527===_0x351cec)break;else _0x2e5aec['push'](_0x2e5aec['shift']());}catch(_0x86fa48){_0x2e5aec['push'](_0x2e5aec['shift']());}}}(a12_0x176e,0xa51fc));function a12_0x176e(){const _0x2b7743=['90vTxALj','5057694NnXWxY','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','22718iWKEKc','str','8DFLObf','read','1946nixJmK','2144791TbnSAN','29130krpCzd','6516020WLrZZL','now','1311100cEtvyz','3858723xhzDpq','name','params','43ZfvOtp'];a12_0x176e=function(){return _0x2b7743;};return a12_0x176e();}import{executeSdkBff}from'../../core/sdk-client.js';function a12_0x39f8(_0x55eb22,_0x1a2263){_0x55eb22=_0x55eb22-0x1e4;const _0x176e2a=a12_0x176e();let _0x39f84d=_0x176e2a[_0x55eb22];return _0x39f84d;}import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':'bff','command':'exec','description':a12_0x3ee4df(0x1ea),'risk':a12_0x3ee4df(0x1ee),'flags':[{...NAME_FLAG,'required':!![],'description':'BFF\x20function\x20name\x20to\x20execute'},PARAMS_FLAG],async 'execute'(_0xe537de){const _0x158a38=a12_0x3ee4df,_0x1e8fe2=parseJsonParams(_0xe537de[_0x158a38(0x1ec)](_0x158a38(0x1e6))),_0x366176=Date['now'](),_0x180929=await executeSdkBff(_0xe537de[_0x158a38(0x1ec)](_0x158a38(0x1e5)),_0x1e8fe2),_0x2fa62a=Date[_0x158a38(0x1f3)]()-_0x366176;return{'ok':!![],'data':{'result':_0x180929,'elapsed':_0x2fa62a},'message':'BFF\x20executed\x20in\x20'+_0x2fa62a+'ms'};}};
1
+ const a12_0x2e7b3f=a12_0x421a;(function(_0x4374cb,_0xe79c51){const _0x20fada=a12_0x421a,_0xeeebe=_0x4374cb();while(!![]){try{const _0x43606b=parseInt(_0x20fada(0x109))/0x1*(parseInt(_0x20fada(0x114))/0x2)+-parseInt(_0x20fada(0x10e))/0x3+parseInt(_0x20fada(0x10d))/0x4+parseInt(_0x20fada(0x10b))/0x5*(parseInt(_0x20fada(0x110))/0x6)+-parseInt(_0x20fada(0x107))/0x7*(-parseInt(_0x20fada(0x108))/0x8)+-parseInt(_0x20fada(0x111))/0x9+-parseInt(_0x20fada(0x10a))/0xa;if(_0x43606b===_0xe79c51)break;else _0xeeebe['push'](_0xeeebe['shift']());}catch(_0x4c3b4d){_0xeeebe['push'](_0xeeebe['shift']());}}}(a12_0x37aa,0xf3b2c));function a12_0x37aa(){const _0x216668=['bff','2764643TTzltj','8bIDZSC','113449uznVSw','24007270phHrMg','2915290ErNtYi','BFF\x20function\x20name\x20to\x20execute','3496992NrrZgl','1123053BaODHF','params','18xDPvWg','6479478JHcjmR','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','BFF\x20executed\x20in\x20','26WCRZQS','str','exec','now'];a12_0x37aa=function(){return _0x216668;};return a12_0x37aa();}import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a12_0x421a(_0x2acf51,_0x48d948){_0x2acf51=_0x2acf51-0x106;const _0x37aa66=a12_0x37aa();let _0x421a68=_0x37aa66[_0x2acf51];return _0x421a68;}export const bffExec={'service':a12_0x2e7b3f(0x106),'command':a12_0x2e7b3f(0x116),'description':a12_0x2e7b3f(0x112),'risk':'read','flags':[{...NAME_FLAG,'required':!![],'description':a12_0x2e7b3f(0x10c)},PARAMS_FLAG],async 'execute'(_0xc7d879){const _0x5d43d8=a12_0x2e7b3f,_0x4def4c=parseJsonParams(_0xc7d879[_0x5d43d8(0x115)](_0x5d43d8(0x10f))),_0xdf4c6=Date[_0x5d43d8(0x117)](),_0x3cb0ff=await executeSdkBff(_0xc7d879[_0x5d43d8(0x115)]('name'),_0x4def4c),_0x4992d7=Date[_0x5d43d8(0x117)]()-_0xdf4c6;return{'ok':!![],'data':{'result':_0x3cb0ff,'elapsed':_0x4992d7},'message':_0x5d43d8(0x113)+_0x4992d7+'ms'};}};
@@ -1 +1 @@
1
- (function(_0x5e607f,_0x1fa6e4){const _0x9b2e76=a13_0xeca9,_0x558cac=_0x5e607f();while(!![]){try{const _0x405d87=parseInt(_0x9b2e76(0x113))/0x1+-parseInt(_0x9b2e76(0x117))/0x2*(parseInt(_0x9b2e76(0x115))/0x3)+parseInt(_0x9b2e76(0x11b))/0x4*(parseInt(_0x9b2e76(0x11a))/0x5)+parseInt(_0x9b2e76(0x119))/0x6*(parseInt(_0x9b2e76(0x11c))/0x7)+-parseInt(_0x9b2e76(0x11d))/0x8+-parseInt(_0x9b2e76(0x112))/0x9*(parseInt(_0x9b2e76(0x114))/0xa)+parseInt(_0x9b2e76(0x116))/0xb*(parseInt(_0x9b2e76(0x118))/0xc);if(_0x405d87===_0x1fa6e4)break;else _0x558cac['push'](_0x558cac['shift']());}catch(_0x4103b9){_0x558cac['push'](_0x558cac['shift']());}}}(a13_0x5e15,0xb6b34));import{bffDetail}from'../../commands/bff/detail.js';function a13_0xeca9(_0x441537,_0x4d0f24){_0x441537=_0x441537-0x112;const _0x5e15f5=a13_0x5e15();let _0xeca983=_0x5e15f5[_0x441537];return _0xeca983;}function a13_0x5e15(){const _0x2dd7c6=['120UqywOJ','1293018HWZXhi','5gkPOrz','3960380rnxEOf','7azaJZL','5501352XDaJnm','2460897pHCRfK','1196142MDoAre','20DaYkTT','535209bHtsEa','520465sloJCl','10gvHTFv'];a13_0x5e15=function(){return _0x2dd7c6;};return a13_0x5e15();}import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
1
+ function a13_0x34db(){const _0x2a7b2c=['708jHSMoq','16QSkMQU','15JgeHoq','270567WeCMqc','261124DjnJYK','1850359ouBqLw','210uYljKH','24rnwVcw','1615779TiwyoM','1259263kZygqo','18SUmCFF','471731BXIbOp','195926NHdota'];a13_0x34db=function(){return _0x2a7b2c;};return a13_0x34db();}(function(_0x4206c7,_0x43e61c){const _0x308b30=a13_0x501e,_0x45edbb=_0x4206c7();while(!![]){try{const _0x3860f1=parseInt(_0x308b30(0xf9))/0x1+parseInt(_0x308b30(0xfc))/0x2*(parseInt(_0x308b30(0xf7))/0x3)+parseInt(_0x308b30(0xf4))/0x4*(parseInt(_0x308b30(0xf2))/0x5)+-parseInt(_0x308b30(0xfa))/0x6*(-parseInt(_0x308b30(0xf5))/0x7)+-parseInt(_0x308b30(0xf1))/0x8*(-parseInt(_0x308b30(0xf8))/0x9)+-parseInt(_0x308b30(0xf6))/0xa*(parseInt(_0x308b30(0xf3))/0xb)+parseInt(_0x308b30(0xf0))/0xc*(-parseInt(_0x308b30(0xfb))/0xd);if(_0x3860f1===_0x43e61c)break;else _0x45edbb['push'](_0x45edbb['shift']());}catch(_0x30202d){_0x45edbb['push'](_0x45edbb['shift']());}}}(a13_0x34db,0xb30e5));function a13_0x501e(_0x265714,_0x33ce0c){_0x265714=_0x265714-0xf0;const _0x34db61=a13_0x34db();let _0x501e75=_0x34db61[_0x265714];return _0x501e75;}import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];