@lovrabet/lovrabet-cli 2.1.1-beta.1 → 2.1.2-beta.1

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 (85) 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/index.js +1 -1
  37. package/lib/commands/skill/templates.js +1 -1
  38. package/lib/commands/skill/validate.js +1 -1
  39. package/lib/commands/sql/detail.js +1 -1
  40. package/lib/commands/sql/exec.js +1 -1
  41. package/lib/commands/sql/index.js +1 -1
  42. package/lib/commands/update.js +1 -1
  43. package/lib/commands/workspace/index.js +1 -1
  44. package/lib/config/schema.js +1 -1
  45. package/lib/constant/app.js +1 -1
  46. package/lib/constant/auth-mode.js +1 -1
  47. package/lib/constant/cli.js +1 -1
  48. package/lib/constant/defaults.js +1 -1
  49. package/lib/constant/distribution.js +1 -1
  50. package/lib/constant/domain.js +1 -1
  51. package/lib/constant/env.js +1 -1
  52. package/lib/constant/output.js +1 -1
  53. package/lib/constant/product.js +1 -1
  54. package/lib/constant/risk.js +1 -1
  55. package/lib/constant/url.js +1 -1
  56. package/lib/context.js +1 -1
  57. package/lib/core/api-client.js +1 -1
  58. package/lib/core/db-resolver.js +1 -1
  59. package/lib/core/sdk-client.js +1 -1
  60. package/lib/errors.js +1 -1
  61. package/lib/framework/build-all-flags.js +1 -1
  62. package/lib/framework/dryrun.js +1 -1
  63. package/lib/framework/flags.js +1 -1
  64. package/lib/framework/help.js +1 -1
  65. package/lib/framework/index.js +1 -1
  66. package/lib/framework/output.js +1 -1
  67. package/lib/framework/preparse.js +1 -1
  68. package/lib/framework/response.js +1 -1
  69. package/lib/framework/runner-confirmation.js +1 -1
  70. package/lib/framework/runner-error.js +1 -1
  71. package/lib/framework/runner.js +1 -1
  72. package/lib/framework/schema-export.js +1 -1
  73. package/lib/framework/types.js +1 -1
  74. package/lib/generated/build-info.js +1 -1
  75. package/lib/help.js +1 -1
  76. package/lib/skills/npx-skills-add.js +1 -1
  77. package/lib/skills/runtime-skill-sync.js +1 -1
  78. package/lib/utils/apply-jq-filter.js +1 -1
  79. package/lib/utils/logger.js +1 -1
  80. package/lib/utils/params.js +1 -1
  81. package/lib/utils/platform.js +1 -1
  82. package/lib/utils/update-notice.js +1 -1
  83. package/lib/utils/version.js +1 -1
  84. package/lib/utils/write-cli-side-channel.js +1 -1
  85. package/package.json +1 -1
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const a0_0x15308d=a0_0x1cdb;(function(_0x56a307,_0x121148){const _0x13f78e=a0_0x1cdb,_0x303387=_0x56a307();while(!![]){try{const _0x35a922=-parseInt(_0x13f78e(0x1c9))/0x1+parseInt(_0x13f78e(0x1c6))/0x2*(-parseInt(_0x13f78e(0x1d0))/0x3)+-parseInt(_0x13f78e(0x1d5))/0x4+parseInt(_0x13f78e(0x1ad))/0x5+parseInt(_0x13f78e(0x1ca))/0x6*(-parseInt(_0x13f78e(0x1bd))/0x7)+parseInt(_0x13f78e(0x1b0))/0x8*(parseInt(_0x13f78e(0x1c2))/0x9)+parseInt(_0x13f78e(0x1c0))/0xa*(parseInt(_0x13f78e(0x1b4))/0xb);if(_0x35a922===_0x121148)break;else _0x303387['push'](_0x303387['shift']());}catch(_0x553b62){_0x303387['push'](_0x303387['shift']());}}}(a0_0x2937,0xd81fb));import{jsx as a0_0x2d869d}from'react/jsx-runtime';import a0_0x56881e 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_0x56881e(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'version':getCliVersionDisplay()});void main()[a0_0x15308d(0x1d1)](handleError);function a0_0x1cdb(_0x43855a,_0x1d6fbe){_0x43855a=_0x43855a-0x1aa;const _0x293710=a0_0x2937();let _0x1cdbad=_0x293710[_0x43855a];return _0x1cdbad;}async function main(){try{await run();}catch(_0x408961){handleError(_0x408961);}}async function run(){const _0x5a2d3f=a0_0x15308d;let _0xe652d8=cli['input'][0x0],_0x43470a=cli[_0x5a2d3f(0x1b7)][0x1];const _0x340338=cli[_0x5a2d3f(0x1b1)];try{const {correctFlags:_0xef6e89}=await import(_0x5a2d3f(0x1c7)),_0x10493e=getAllDefinitions()['flatMap'](_0x4072ab=>_0x4072ab['flags']??[]),{flags:_0x5c3b11,corrections:_0x1da30f}=_0xef6e89(_0x340338,_0x10493e);if(_0x1da30f[_0x5a2d3f(0x1cc)]>0x0){for(const _0x2498db of _0x1da30f){process['stderr']['write'](_0x5a2d3f(0x1b5)+_0x2498db[_0x5a2d3f(0x1ce)]+_0x5a2d3f(0x1ac)+_0x2498db[_0x5a2d3f(0x1bf)]+_0x5a2d3f(0x1ab)+_0x2498db['corrected']+'\x0a');}Object[_0x5a2d3f(0x1cb)](_0x340338,_0x5c3b11);}}catch{}if(!_0xe652d8){const {waitUntilExit:_0x1a8872}=render(a0_0x2d869d(Help,{}));await _0x1a8872();return;}if(!isKnownService(_0xe652d8)){const _0x4409c1=resolveDynamicServiceCommand(cli[_0x5a2d3f(0x1b7)],_0x340338);if(_0x4409c1){if(_0x340338[_0x5a2d3f(0x1c4)]){console[_0x5a2d3f(0x1ae)](generateCommandHelp(_0x4409c1[_0x5a2d3f(0x1d2)]));return;}Object[_0x5a2d3f(0x1cb)](_0x340338,_0x4409c1['flags']);const _0x36f569=buildConfigFromFlags(_0x340338);await initGlobalEnvironment(_0x36f569);const _0x2ae25c=createPipelineEnv(_0x36f569,_0x340338);_0x2ae25c['args']=_0x4409c1[_0x5a2d3f(0x1b2)],await runCommand(_0x4409c1[_0x5a2d3f(0x1d2)],_0x2ae25c);return;}if(_0x340338[_0x5a2d3f(0x1c4)]){const _0x1204fb=generateDynamicServiceHelp(_0xe652d8);if(_0x1204fb){console['log'](_0x1204fb);return;}}const {waitUntilExit:_0x22da16}=render(a0_0x2d869d(Help,{}));await _0x22da16();return;}const _0x16d078=getServiceEntry(_0xe652d8);if(!_0x43470a){if(_0x340338['help']){console[_0x5a2d3f(0x1ae)](generateServiceHelp(_0xe652d8));return;}if(_0x16d078['defaultCommand'])_0x43470a=_0x16d078[_0x5a2d3f(0x1cf)];else{console[_0x5a2d3f(0x1ae)](generateServiceHelp(_0xe652d8));return;}}const _0x2ee33a=findDefinition(_0xe652d8,_0x43470a);!_0x2ee33a&&(console[_0x5a2d3f(0x1ae)](generateServiceHelp(_0xe652d8)),handleError(CliErrors['unknownCommand'](_0xe652d8+'\x20'+_0x43470a)));if(_0x340338['help']){console['log'](generateCommandHelp(_0x2ee33a));return;}const _0x5b9ace=buildConfigFromFlags(_0x340338);await initGlobalEnvironment(_0x5b9ace);const _0x46bb66=createPipelineEnv(_0x5b9ace,_0x340338);_0x46bb66[_0x5a2d3f(0x1b2)]=cli[_0x5a2d3f(0x1b7)][_0x5a2d3f(0x1c8)](0x2),await runCommand(_0x2ee33a,_0x46bb66);}function a0_0x2937(){const _0x9892a0=['622153lBCScY','1403862hQOrBz','assign','length','hint','handler','defaultCommand','69tfoOZi','catch','definition','Hint:\x20','write','1762436WrqqTr','error','\x20->\x20--',':\x20--','6117720hqWyun','log','\x0aCancelled.\x0a','8VKqhye','flags','args','ERR_STREAM_DESTROYED','8418498REIHXf','[preparse]\x20','ERR_USE_AFTER_CLOSE','input','ExitPromptError','cancelled','message','code','exit','7whacDW','stderr','original','20RJDlmV','name','600471ZdQybX','exitCode','help','Error:\x20','55558EyriBi','./framework/preparse.js','slice'];a0_0x2937=function(){return _0x9892a0;};return a0_0x2937();}function handleError(_0x4bf7ff){const _0x575b1b=a0_0x15308d;if(_0x4bf7ff instanceof CliError){_0x4bf7ff[_0x575b1b(0x1bb)]===_0x575b1b(0x1b9)&&(process[_0x575b1b(0x1be)][_0x575b1b(0x1d4)](_0x575b1b(0x1af)),process[_0x575b1b(0x1bc)](0x0));console['error'](_0x575b1b(0x1c5)+_0x4bf7ff[_0x575b1b(0x1ba)]);if(_0x4bf7ff['hint'])console[_0x575b1b(0x1aa)](_0x575b1b(0x1d3)+_0x4bf7ff[_0x575b1b(0x1cd)]);process[_0x575b1b(0x1bc)](_0x4bf7ff[_0x575b1b(0x1c3)]);}isUserCancellation(_0x4bf7ff)&&(process[_0x575b1b(0x1be)][_0x575b1b(0x1d4)](_0x575b1b(0x1af)),process[_0x575b1b(0x1bc)](0x0)),console[_0x575b1b(0x1aa)]('Unexpected\x20error:',_0x4bf7ff),process[_0x575b1b(0x1bc)](0x1);}function isUserCancellation(_0xd4cb03){const _0x51a987=a0_0x15308d;if(!(_0xd4cb03 instanceof Error))return![];if(_0xd4cb03[_0x51a987(0x1c1)]===_0x51a987(0x1b8))return!![];if(_0xd4cb03['code']===_0x51a987(0x1b6))return!![];if(_0xd4cb03['code']===_0x51a987(0x1b3))return!![];return![];}
2
+ const a0_0x110727=a0_0x52bd;(function(_0x49bb1f,_0x1f798a){const _0x1cf979=a0_0x52bd,_0x4ed1d2=_0x49bb1f();while(!![]){try{const _0x4e1368=parseInt(_0x1cf979(0x1a6))/0x1+-parseInt(_0x1cf979(0x1c6))/0x2*(parseInt(_0x1cf979(0x1b7))/0x3)+parseInt(_0x1cf979(0x1c5))/0x4*(parseInt(_0x1cf979(0x1b2))/0x5)+-parseInt(_0x1cf979(0x1c7))/0x6+parseInt(_0x1cf979(0x1ca))/0x7+-parseInt(_0x1cf979(0x1bc))/0x8*(-parseInt(_0x1cf979(0x1b8))/0x9)+-parseInt(_0x1cf979(0x1c9))/0xa*(-parseInt(_0x1cf979(0x1ad))/0xb);if(_0x4e1368===_0x1f798a)break;else _0x4ed1d2['push'](_0x4ed1d2['shift']());}catch(_0x4f3ebb){_0x4ed1d2['push'](_0x4ed1d2['shift']());}}}(a0_0x1efc,0x270a4));import{jsx as a0_0x2428e5}from'react/jsx-runtime';import a0_0x5793a3 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';function a0_0x52bd(_0x193a1a,_0x43c446){_0x193a1a=_0x193a1a-0x1a4;const _0x1efc2d=a0_0x1efc();let _0x52bdf5=_0x1efc2d[_0x193a1a];return _0x52bdf5;}import{buildMeowFlags}from'./constant/cli.js';import{getCliVersionDisplay}from'./utils/version.js';const helpText=generateFullHelp(),cli=a0_0x5793a3(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'version':getCliVersionDisplay()});void main()[a0_0x110727(0x1af)](handleError);function a0_0x1efc(){const _0xfd3776=['defaultCommand','388328iTabfK',':\x20--','input','unknownCommand','Hint:\x20','length','name','\x0aCancelled.\x0a','definition','13084iLGCAX','313942yDRfLQ','1714230nOnlyE','code','1310HwnTiQ','586082zbgrJI','Unexpected\x20error:','ExitPromptError','93670DxflbU','exit','flags','stderr','message','flatMap','ERR_USE_AFTER_CLOSE','39589uspfcZ','\x20->\x20--','catch','corrected','assign','95sRrVdf','error','help','log','args','6MFDGly','9NQfudg','write','[preparse]\x20'];a0_0x1efc=function(){return _0xfd3776;};return a0_0x1efc();}async function main(){try{await run();}catch(_0x37006c){handleError(_0x37006c);}}async function run(){const _0x2caa77=a0_0x110727;let _0x2117c8=cli['input'][0x0],_0xae4af0=cli[_0x2caa77(0x1be)][0x1];const _0xe11113=cli['flags'];try{const {correctFlags:_0xad8254}=await import('./framework/preparse.js'),_0x361b66=getAllDefinitions()[_0x2caa77(0x1ab)](_0x41875f=>_0x41875f[_0x2caa77(0x1a8)]??[]),{flags:_0xb8fa30,corrections:_0x451125}=_0xad8254(_0xe11113,_0x361b66);if(_0x451125[_0x2caa77(0x1c1)]>0x0){for(const _0x47916f of _0x451125){process[_0x2caa77(0x1a9)][_0x2caa77(0x1b9)](_0x2caa77(0x1ba)+_0x47916f['handler']+_0x2caa77(0x1bd)+_0x47916f['original']+_0x2caa77(0x1ae)+_0x47916f[_0x2caa77(0x1b0)]+'\x0a');}Object[_0x2caa77(0x1b1)](_0xe11113,_0xb8fa30);}}catch{}if(!_0x2117c8){const {waitUntilExit:_0x5b23bc}=render(a0_0x2428e5(Help,{}));await _0x5b23bc();return;}if(!isKnownService(_0x2117c8)){const _0xaffbd6=resolveDynamicServiceCommand(cli[_0x2caa77(0x1be)],_0xe11113);if(_0xaffbd6){if(_0xe11113[_0x2caa77(0x1b4)]){console[_0x2caa77(0x1b5)](generateCommandHelp(_0xaffbd6[_0x2caa77(0x1c4)]));return;}Object[_0x2caa77(0x1b1)](_0xe11113,_0xaffbd6[_0x2caa77(0x1a8)]);const _0x6c05f0=buildConfigFromFlags(_0xe11113);await initGlobalEnvironment(_0x6c05f0);const _0x20fb23=createPipelineEnv(_0x6c05f0,_0xe11113);_0x20fb23[_0x2caa77(0x1b6)]=_0xaffbd6[_0x2caa77(0x1b6)],await runCommand(_0xaffbd6[_0x2caa77(0x1c4)],_0x20fb23);return;}if(_0xe11113[_0x2caa77(0x1b4)]){const _0x53fe4c=generateDynamicServiceHelp(_0x2117c8);if(_0x53fe4c){console[_0x2caa77(0x1b5)](_0x53fe4c);return;}}const {waitUntilExit:_0x136c41}=render(a0_0x2428e5(Help,{}));await _0x136c41();return;}const _0x156bf7=getServiceEntry(_0x2117c8);if(!_0xae4af0){if(_0xe11113[_0x2caa77(0x1b4)]){console['log'](generateServiceHelp(_0x2117c8));return;}if(_0x156bf7['defaultCommand'])_0xae4af0=_0x156bf7[_0x2caa77(0x1bb)];else{console[_0x2caa77(0x1b5)](generateServiceHelp(_0x2117c8));return;}}const _0x505e9a=findDefinition(_0x2117c8,_0xae4af0);!_0x505e9a&&(console[_0x2caa77(0x1b5)](generateServiceHelp(_0x2117c8)),handleError(CliErrors[_0x2caa77(0x1bf)](_0x2117c8+'\x20'+_0xae4af0)));if(_0xe11113[_0x2caa77(0x1b4)]){console[_0x2caa77(0x1b5)](generateCommandHelp(_0x505e9a));return;}const _0x3ab8dd=buildConfigFromFlags(_0xe11113);await initGlobalEnvironment(_0x3ab8dd);const _0x33ce6d=createPipelineEnv(_0x3ab8dd,_0xe11113);_0x33ce6d[_0x2caa77(0x1b6)]=cli['input']['slice'](0x2),await runCommand(_0x505e9a,_0x33ce6d);}function handleError(_0x5d5fed){const _0x53f579=a0_0x110727;if(_0x5d5fed instanceof CliError){_0x5d5fed[_0x53f579(0x1c8)]==='cancelled'&&(process[_0x53f579(0x1a9)][_0x53f579(0x1b9)]('\x0aCancelled.\x0a'),process[_0x53f579(0x1a7)](0x0));console[_0x53f579(0x1b3)]('Error:\x20'+_0x5d5fed[_0x53f579(0x1aa)]);if(_0x5d5fed['hint'])console[_0x53f579(0x1b3)](_0x53f579(0x1c0)+_0x5d5fed['hint']);process[_0x53f579(0x1a7)](_0x5d5fed['exitCode']);}isUserCancellation(_0x5d5fed)&&(process['stderr'][_0x53f579(0x1b9)](_0x53f579(0x1c3)),process[_0x53f579(0x1a7)](0x0)),console['error'](_0x53f579(0x1a4),_0x5d5fed),process[_0x53f579(0x1a7)](0x1);}function isUserCancellation(_0x35cf66){const _0x1666af=a0_0x110727;if(!(_0x35cf66 instanceof Error))return![];if(_0x35cf66[_0x1666af(0x1c2)]===_0x1666af(0x1a5))return!![];if(_0x35cf66[_0x1666af(0x1c8)]===_0x1666af(0x1ac))return!![];if(_0x35cf66[_0x1666af(0x1c8)]==='ERR_STREAM_DESTROYED')return!![];return![];}
@@ -1 +1 @@
1
- const a1_0x33b6c4=a1_0x238b;(function(_0x1b9c2b,_0x1d57d6){const _0x2e4bb1=a1_0x238b,_0x55641b=_0x1b9c2b();while(!![]){try{const _0x379418=parseInt(_0x2e4bb1(0x93))/0x1+parseInt(_0x2e4bb1(0xde))/0x2+parseInt(_0x2e4bb1(0x83))/0x3*(parseInt(_0x2e4bb1(0x8b))/0x4)+parseInt(_0x2e4bb1(0xa9))/0x5*(-parseInt(_0x2e4bb1(0xec))/0x6)+parseInt(_0x2e4bb1(0x9e))/0x7+parseInt(_0x2e4bb1(0xe3))/0x8*(parseInt(_0x2e4bb1(0x9c))/0x9)+-parseInt(_0x2e4bb1(0x95))/0xa;if(_0x379418===_0x1d57d6)break;else _0x55641b['push'](_0x55641b['shift']());}catch(_0x3af254){_0x55641b['push'](_0x55641b['shift']());}}}(a1_0x4ae3,0xc0465));import{CliErrors}from'../../errors.js';const CATEGORY_FLAG={'name':a1_0x33b6c4(0xea),'type':a1_0x33b6c4(0xd7),'description':a1_0x33b6c4(0xa6)},KEYWORD_FLAG={'name':a1_0x33b6c4(0x94),'type':a1_0x33b6c4(0xd7),'description':'Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text'},DOC_CODE_FLAG={'name':a1_0x33b6c4(0x7d),'type':a1_0x33b6c4(0xd7),'required':!![],'description':a1_0x33b6c4(0xeb)},DOCS=[{'code':'dataset_list','category':a1_0x33b6c4(0x81),'title':a1_0x33b6c4(0xd0),'method':a1_0x33b6c4(0xed),'path':'/api/dataset/get-dataset-list-by-app-code','summary':a1_0x33b6c4(0xe6),'whenToUse':a1_0x33b6c4(0x92),'pathParams':[],'queryParams':[],'bodySchema':a1_0x33b6c4(0xf1),'responseHighlights':[a1_0x33b6c4(0xab),a1_0x33b6c4(0xb1)],'examples':[a1_0x33b6c4(0xf6)],'notes':[a1_0x33b6c4(0xa5)],'markdown':[a1_0x33b6c4(0xad),'',a1_0x33b6c4(0xf2)]['join']('\x0a')},{'code':a1_0x33b6c4(0xb8),'category':a1_0x33b6c4(0x81),'title':a1_0x33b6c4(0xcf),'method':a1_0x33b6c4(0xd3),'path':a1_0x33b6c4(0x7e),'summary':'获取数据集详情','whenToUse':a1_0x33b6c4(0x90),'pathParams':[],'queryParams':[{'name':a1_0x33b6c4(0x7d),'description':a1_0x33b6c4(0x87)}],'bodySchema':a1_0x33b6c4(0xcb),'responseHighlights':['fields/properties\x20describe\x20data\x20shape',a1_0x33b6c4(0xe8)],'examples':[a1_0x33b6c4(0x82)],'notes':[a1_0x33b6c4(0x8f)],'markdown':[a1_0x33b6c4(0xb5),'',a1_0x33b6c4(0xf4)][a1_0x33b6c4(0xc0)]('\x0a')},{'code':a1_0x33b6c4(0xd1),'category':a1_0x33b6c4(0x81),'title':a1_0x33b6c4(0xbc),'method':'POST','path':'/api/{appCode}/{datasetCode}/filter','summary':'条件过滤查询数据','whenToUse':a1_0x33b6c4(0x96),'pathParams':[{'name':a1_0x33b6c4(0xb4),'description':a1_0x33b6c4(0xdc)},{'name':a1_0x33b6c4(0xcc),'description':a1_0x33b6c4(0x87)}],'queryParams':[],'bodySchema':a1_0x33b6c4(0xef),'responseHighlights':[a1_0x33b6c4(0x9f),a1_0x33b6c4(0x98)],'examples':['lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:5}\x27'],'notes':[a1_0x33b6c4(0xb0)],'markdown':['##\x20Filter\x20dataset\x20data','',a1_0x33b6c4(0xb6)][a1_0x33b6c4(0xc0)]('\x0a')},{'code':a1_0x33b6c4(0x7f),'category':'dataset','title':a1_0x33b6c4(0xa3),'method':a1_0x33b6c4(0xed),'path':a1_0x33b6c4(0xe1),'summary':a1_0x33b6c4(0xaa),'whenToUse':a1_0x33b6c4(0xd4),'pathParams':[{'name':'appCode','description':a1_0x33b6c4(0xdc)},{'name':a1_0x33b6c4(0xcc),'description':a1_0x33b6c4(0x87)}],'queryParams':[],'bodySchema':a1_0x33b6c4(0xee),'responseHighlights':[a1_0x33b6c4(0xe4),a1_0x33b6c4(0xf5)],'examples':[a1_0x33b6c4(0xc5)],'notes':['Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.',a1_0x33b6c4(0xae)],'markdown':[a1_0x33b6c4(0x8a),'','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.'][a1_0x33b6c4(0xc0)]('\x0a')},{'code':a1_0x33b6c4(0xb9),'category':'dataset','title':a1_0x33b6c4(0x9b),'method':a1_0x33b6c4(0xed),'path':'/api/{appCode}/{datasetCode}/getOne','summary':a1_0x33b6c4(0xdf),'whenToUse':a1_0x33b6c4(0x97),'pathParams':[{'name':'appCode','description':a1_0x33b6c4(0xdc)},{'name':a1_0x33b6c4(0xcc),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':a1_0x33b6c4(0xf0),'responseHighlights':[a1_0x33b6c4(0xd2)],'examples':[a1_0x33b6c4(0xf3)],'notes':[a1_0x33b6c4(0xc8)],'markdown':a1_0x33b6c4(0xa7)},{'code':a1_0x33b6c4(0xb3),'category':a1_0x33b6c4(0x81),'title':a1_0x33b6c4(0xe5),'method':a1_0x33b6c4(0xed),'path':a1_0x33b6c4(0xc2),'summary':a1_0x33b6c4(0xa0),'whenToUse':a1_0x33b6c4(0x84),'pathParams':[{'name':a1_0x33b6c4(0xb4),'description':a1_0x33b6c4(0xdc)},{'name':'datasetCode','description':a1_0x33b6c4(0x87)}],'queryParams':[],'bodySchema':a1_0x33b6c4(0xca),'responseHighlights':['Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result'],'examples':['lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27'],'notes':[a1_0x33b6c4(0xc7)],'markdown':'##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.'},{'code':'bf_function_list','category':'bf','title':a1_0x33b6c4(0x86),'method':a1_0x33b6c4(0xd3),'path':'/api/endpoint/{appCode}/functions','summary':a1_0x33b6c4(0xdd),'whenToUse':a1_0x33b6c4(0x9a),'pathParams':[{'name':a1_0x33b6c4(0xb4),'description':a1_0x33b6c4(0xdc)}],'queryParams':[],'bodySchema':a1_0x33b6c4(0xcb),'responseHighlights':[a1_0x33b6c4(0xbb)],'examples':[a1_0x33b6c4(0x88)],'notes':[a1_0x33b6c4(0xe9)],'markdown':a1_0x33b6c4(0xc6)},{'code':a1_0x33b6c4(0xba),'category':'bf','title':a1_0x33b6c4(0xdb),'method':'POST','path':a1_0x33b6c4(0xe2),'summary':a1_0x33b6c4(0xd5),'whenToUse':a1_0x33b6c4(0xa8),'pathParams':[{'name':a1_0x33b6c4(0xb4),'description':a1_0x33b6c4(0xdc)},{'name':a1_0x33b6c4(0xac),'description':a1_0x33b6c4(0x8c)}],'queryParams':[],'bodySchema':a1_0x33b6c4(0x85),'responseHighlights':['Returns\x20script\x20business\x20payload'],'examples':[a1_0x33b6c4(0xbe)],'notes':[a1_0x33b6c4(0xb2)],'markdown':a1_0x33b6c4(0xd6)},{'code':a1_0x33b6c4(0xd8),'category':a1_0x33b6c4(0xc4),'title':a1_0x33b6c4(0xbf),'method':a1_0x33b6c4(0xed),'path':a1_0x33b6c4(0xa1),'summary':a1_0x33b6c4(0xcd),'whenToUse':a1_0x33b6c4(0x9d),'pathParams':[],'queryParams':[],'bodySchema':a1_0x33b6c4(0x89),'responseHighlights':[a1_0x33b6c4(0xc9)],'examples':[a1_0x33b6c4(0xe0)],'notes':['Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.'],'markdown':a1_0x33b6c4(0x91)}];function a1_0x4ae3(){const _0x5d333b=['Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27','Inspect\x20field\x20names\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.','where\x20filters\x20before\x20aggregation','lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress','code','/api/dataset/getOneByCode?code={datasetCode}','dataset_data_aggregate','Show\x20runtime\x20API\x20documentation\x20by\x20code','dataset','lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>','11910qAGPko','需要向指定数据集新增一条业务数据时使用','{\x22param\x22:\x22value\x22}','List\x20BF\x20endpoint\x20functions','32-character\x20dataset\x20code','lovrabet\x20bff\x20detail\x20--id\x20<scriptId>\x20--appcode\x20<appCode>','{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','##\x20Aggregate\x20dataset\x20data','344MBnTuo','Endpoint\x20function\x20name','path','api-doc','If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.','需要按数据集\x20code\x20获取字段、表信息或操作定义时使用','##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.','需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','520457BYPbEv','keyword','29041130LfSgrv','需要携带\x20where、orderBy、分页等条件读取业务数据时使用','已经知道记录\x20id,需要按数据集读取单条业务数据时使用','paging\x20contains\x20pagination','filter','需要先确认当前应用有哪些可执行的\x20BF/ENDPOINT\x20函数,以及收敛可用\x20scriptName\x20时使用','Get\x20one\x20dataset\x20record','46458MYNxrP','已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','8393721GWJeDy','tableData\x20contains\x20records','创建数据','/api/custom/executeSql','whenToUse','Aggregate\x20dataset\x20data','validation','CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.','Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset','##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.','已经确认目标\x20BF\x20的\x20scriptName,且需要实际调用该\x20ENDPOINT\x20脚本完成业务操作时使用','1432370wxGGYz','聚合查询数据集数据','tableData\x20contains\x20dataset\x20id/code/name','scriptName','##\x20List\x20datasets','`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','read','Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.','paging.totalCount\x20gives\x20total\x20rows','Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.','dataset_data_create','appCode','##\x20Dataset\x20detail','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.','method','dataset_detail','dataset_data_get_one','bf_execute','Returns\x20endpoint\x20functionName/id/description','Filter\x20dataset\x20data','title','lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27','Execute\x20custom\x20SQL','join','str','/api/{appCode}/{datasetCode}/create','map','custom_sql','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','##\x20List\x20BF\x20endpoint\x20functions\x0a\x0aDiscover\x20executable\x20endpoint\x20functions.','This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.','Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.','Returns\x20SQL\x20execution\x20payload','{\x22fieldName\x22:\x22value\x22}','None','datasetCode','执行自定义\x20SQL','summary','Dataset\x20detail','List\x20datasets','dataset_data_filter','Returns\x20one\x20matching\x20business\x20record','GET','需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用','执行指定\x20BF\x20函数','##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.','string','custom_sql_execute','toLowerCase','API\x20doc\x20code\x20not\x20found:\x20','Execute\x20BF\x20endpoint\x20function','Current\x20app\x20code','获取应用下可调用的\x20BF\x20函数列表','964256oyfrLm','查询单条数据','lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27','/api/{appCode}/{datasetCode}/aggregate','/api/endpoint/{appCode}/{scriptName}','2224YfEUPE','result\x20rows\x20contain\x20aggregate\x20aliases','Create\x20dataset\x20record','分页获取数据集列表','length','operations\x20describes\x20runtime\x20APIs','CLI\x20has\x20typed\x20`bff\x20detail`\x20and\x20`bff\x20exec`\x20commands\x20for\x20endpoint\x20scripts.','category','API\x20doc\x20code,\x20for\x20example\x20dataset_list','6feLvfM','POST','{\x22aggregate\x22:[{\x22column\x22:\x20\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','{\x22id\x22:123}','{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}'];a1_0x4ae3=function(){return _0x5d333b;};return a1_0x4ae3();}function a1_0x238b(_0x2430fe,_0x1da385){_0x2430fe=_0x2430fe-0x7d;const _0x4ae306=a1_0x4ae3();let _0x238b65=_0x4ae306[_0x2430fe];return _0x238b65;}function entrySummary(_0x115271){const _0x27ea9e=a1_0x33b6c4;return{'code':_0x115271[_0x27ea9e(0x7d)],'category':_0x115271['category'],'method':_0x115271[_0x27ea9e(0xb7)],'path':_0x115271['path'],'summary':_0x115271['summary'],'whenToUse':_0x115271['whenToUse']};}export function listApiDocEntries(_0x3fc82d={}){const _0x1c0e17=a1_0x33b6c4,_0x1e8615=String(_0x3fc82d[_0x1c0e17(0xea)]||'')['trim'](),_0x1ff3b8=String(_0x3fc82d[_0x1c0e17(0x94)]||'')['trim']()[_0x1c0e17(0xd9)]();return DOCS[_0x1c0e17(0x99)](_0xd6d5c7=>{const _0x1e15b5=_0x1c0e17;if(_0x1e8615&&_0xd6d5c7[_0x1e15b5(0xea)]!==_0x1e8615)return![];if(!_0x1ff3b8)return!![];return[_0xd6d5c7[_0x1e15b5(0x7d)],_0xd6d5c7['category'],_0xd6d5c7[_0x1e15b5(0xb7)],_0xd6d5c7[_0x1e15b5(0x8d)],_0xd6d5c7[_0x1e15b5(0xce)],_0xd6d5c7[_0x1e15b5(0xa2)],_0xd6d5c7[_0x1e15b5(0xbd)]][_0x1e15b5(0xc0)]('\x20')[_0x1e15b5(0xd9)]()['includes'](_0x1ff3b8);})[_0x1c0e17(0xc3)](entrySummary);}export function getApiDocDetail(_0x2b51dc){const _0x2eeec4=a1_0x33b6c4,_0x7aff75=DOCS['find'](_0x545bbb=>_0x545bbb[_0x2eeec4(0x7d)]===_0x2b51dc);if(!_0x7aff75)throw CliErrors[_0x2eeec4(0xa4)](_0x2eeec4(0xda)+_0x2b51dc);return{..._0x7aff75};}const apiDocList={'service':'api-doc','command':'list','description':'List\x20available\x20runtime\x20API\x20documentation\x20entries','risk':'read','requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0x540acf){const _0x4ee6cb=a1_0x33b6c4,_0x130c4b=listApiDocEntries({'category':_0x540acf[_0x4ee6cb(0xc1)](_0x4ee6cb(0xea)),'keyword':_0x540acf[_0x4ee6cb(0xc1)](_0x4ee6cb(0x94))});return{'ok':!![],'data':{'total':_0x130c4b[_0x4ee6cb(0xe7)],'items':_0x130c4b}};}},apiDocDetail={'service':a1_0x33b6c4(0x8e),'command':'detail','description':a1_0x33b6c4(0x80),'risk':a1_0x33b6c4(0xaf),'requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0x10ab62){const _0x5ec23d=a1_0x33b6c4;return{'ok':!![],'data':getApiDocDetail(_0x10ab62['str'](_0x5ec23d(0x7d)))};}};export const apiDocDefinitions=[apiDocList,apiDocDetail];
1
+ function a1_0x2708(_0x54d8dc,_0x8033da){_0x54d8dc=_0x54d8dc-0xfe;const _0x50cc7e=a1_0x50cc();let _0x270878=_0x50cc7e[_0x54d8dc];return _0x270878;}const a1_0x1a6839=a1_0x2708;(function(_0x3c9d85,_0x1f1659){const _0x1eb228=a1_0x2708,_0x4dbf31=_0x3c9d85();while(!![]){try{const _0x3d4fcf=parseInt(_0x1eb228(0x153))/0x1+parseInt(_0x1eb228(0x161))/0x2*(parseInt(_0x1eb228(0x118))/0x3)+-parseInt(_0x1eb228(0x15d))/0x4+-parseInt(_0x1eb228(0x126))/0x5*(-parseInt(_0x1eb228(0x110))/0x6)+parseInt(_0x1eb228(0x141))/0x7*(-parseInt(_0x1eb228(0x136))/0x8)+parseInt(_0x1eb228(0x106))/0x9*(parseInt(_0x1eb228(0x14e))/0xa)+parseInt(_0x1eb228(0x14a))/0xb;if(_0x3d4fcf===_0x1f1659)break;else _0x4dbf31['push'](_0x4dbf31['shift']());}catch(_0x16d88a){_0x4dbf31['push'](_0x4dbf31['shift']());}}}(a1_0x50cc,0xc27be));import{CliErrors}from'../../errors.js';const CATEGORY_FLAG={'name':'category','type':a1_0x1a6839(0x124),'description':a1_0x1a6839(0x151)},KEYWORD_FLAG={'name':a1_0x1a6839(0x149),'type':a1_0x1a6839(0x124),'description':a1_0x1a6839(0x10b)},DOC_CODE_FLAG={'name':a1_0x1a6839(0x156),'type':a1_0x1a6839(0x124),'required':!![],'description':a1_0x1a6839(0x11d)},DOCS=[{'code':a1_0x1a6839(0x109),'category':a1_0x1a6839(0x104),'title':'List\x20datasets','method':a1_0x1a6839(0x11c),'path':'/api/dataset/get-dataset-list-by-app-code','summary':a1_0x1a6839(0x13a),'whenToUse':'需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','pathParams':[],'queryParams':[],'bodySchema':'{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','responseHighlights':[a1_0x1a6839(0x10e),a1_0x1a6839(0x103)],'examples':[a1_0x1a6839(0x117)],'notes':[a1_0x1a6839(0x12a)],'markdown':['##\x20List\x20datasets','','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.']['join']('\x0a')},{'code':a1_0x1a6839(0x14b),'category':a1_0x1a6839(0x104),'title':a1_0x1a6839(0x139),'method':a1_0x1a6839(0x10f),'path':'/api/dataset/getOneByCode?code={datasetCode}','summary':'获取数据集详情','whenToUse':a1_0x1a6839(0x165),'pathParams':[],'queryParams':[{'name':'code','description':'32-character\x20dataset\x20code'}],'bodySchema':a1_0x1a6839(0x102),'responseHighlights':[a1_0x1a6839(0x116),a1_0x1a6839(0x145)],'examples':[a1_0x1a6839(0x142)],'notes':[a1_0x1a6839(0x163)],'markdown':['##\x20Dataset\x20detail','',a1_0x1a6839(0x147)][a1_0x1a6839(0x135)]('\x0a')},{'code':a1_0x1a6839(0x138),'category':'dataset','title':'Filter\x20dataset\x20data','method':a1_0x1a6839(0x11c),'path':a1_0x1a6839(0x166),'summary':a1_0x1a6839(0x113),'whenToUse':'需要携带\x20where、orderBy、分页等条件读取业务数据时使用','pathParams':[{'name':a1_0x1a6839(0x14c),'description':'Current\x20app\x20code'},{'name':'datasetCode','description':a1_0x1a6839(0x143)}],'queryParams':[],'bodySchema':a1_0x1a6839(0x10c),'responseHighlights':[a1_0x1a6839(0x157),a1_0x1a6839(0x119)],'examples':['lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:5}\x27'],'notes':['Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.'],'markdown':[a1_0x1a6839(0x134),'',a1_0x1a6839(0x16e)]['join']('\x0a')},{'code':'dataset_data_aggregate','category':a1_0x1a6839(0x104),'title':a1_0x1a6839(0x16c),'method':a1_0x1a6839(0x11c),'path':'/api/{appCode}/{datasetCode}/aggregate','summary':a1_0x1a6839(0x164),'whenToUse':a1_0x1a6839(0x15b),'pathParams':[{'name':'appCode','description':a1_0x1a6839(0x13c)},{'name':'datasetCode','description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':a1_0x1a6839(0x148),'responseHighlights':[a1_0x1a6839(0x111),a1_0x1a6839(0x101)],'examples':['lovrabet\x20data\x20aggregate\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}]}\x27'],'notes':[a1_0x1a6839(0x13e),a1_0x1a6839(0xfe)],'markdown':[a1_0x1a6839(0x123),'',a1_0x1a6839(0x129)][a1_0x1a6839(0x135)]('\x0a')},{'code':a1_0x1a6839(0x133),'category':'dataset','title':a1_0x1a6839(0x15c),'method':a1_0x1a6839(0x11c),'path':'/api/{appCode}/{datasetCode}/getOne','summary':a1_0x1a6839(0x125),'whenToUse':a1_0x1a6839(0x15a),'pathParams':[{'name':a1_0x1a6839(0x14c),'description':a1_0x1a6839(0x13c)},{'name':a1_0x1a6839(0x14d),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':'{\x22id\x22:123}','responseHighlights':[a1_0x1a6839(0x16d)],'examples':[a1_0x1a6839(0x14f)],'notes':[a1_0x1a6839(0x131)],'markdown':a1_0x1a6839(0x12c)},{'code':a1_0x1a6839(0x155),'category':a1_0x1a6839(0x104),'title':'Create\x20dataset\x20record','method':a1_0x1a6839(0x11c),'path':a1_0x1a6839(0x137),'summary':a1_0x1a6839(0x168),'whenToUse':a1_0x1a6839(0x11b),'pathParams':[{'name':'appCode','description':a1_0x1a6839(0x13c)},{'name':a1_0x1a6839(0x14d),'description':a1_0x1a6839(0x143)}],'queryParams':[],'bodySchema':a1_0x1a6839(0x11a),'responseHighlights':[a1_0x1a6839(0x107)],'examples':[a1_0x1a6839(0x167)],'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_0x1a6839(0x105),'category':'bf','title':a1_0x1a6839(0x146),'method':a1_0x1a6839(0x10f),'path':a1_0x1a6839(0x13d),'summary':'获取应用下可调用的\x20BF\x20函数列表','whenToUse':'需要先确认当前应用有哪些可执行的\x20BF/ENDPOINT\x20函数,以及收敛可用\x20scriptName\x20时使用','pathParams':[{'name':a1_0x1a6839(0x14c),'description':a1_0x1a6839(0x13c)}],'queryParams':[],'bodySchema':a1_0x1a6839(0x102),'responseHighlights':[a1_0x1a6839(0x12b)],'examples':['lovrabet\x20bff\x20detail\x20--id\x20<scriptId>\x20--appcode\x20<appCode>'],'notes':[a1_0x1a6839(0x15f)],'markdown':'##\x20List\x20BF\x20endpoint\x20functions\x0a\x0aDiscover\x20executable\x20endpoint\x20functions.'},{'code':'bf_execute','category':'bf','title':a1_0x1a6839(0x154),'method':a1_0x1a6839(0x11c),'path':a1_0x1a6839(0x150),'summary':a1_0x1a6839(0x115),'whenToUse':a1_0x1a6839(0x122),'pathParams':[{'name':a1_0x1a6839(0x14c),'description':'Current\x20app\x20code'},{'name':a1_0x1a6839(0x160),'description':'Endpoint\x20function\x20name'}],'queryParams':[],'bodySchema':a1_0x1a6839(0x162),'responseHighlights':['Returns\x20script\x20business\x20payload'],'examples':['lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27'],'notes':[a1_0x1a6839(0x158)],'markdown':'##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.'},{'code':'custom_sql_execute','category':a1_0x1a6839(0x16a),'title':a1_0x1a6839(0x108),'method':a1_0x1a6839(0x11c),'path':a1_0x1a6839(0x100),'summary':'执行自定义\x20SQL','whenToUse':a1_0x1a6839(0x15e),'pathParams':[],'queryParams':[],'bodySchema':a1_0x1a6839(0x16b),'responseHighlights':[a1_0x1a6839(0x11f)],'examples':[a1_0x1a6839(0x12d)],'notes':[a1_0x1a6839(0x169)],'markdown':a1_0x1a6839(0x13f)}];function entrySummary(_0x1b8166){const _0x2fd479=a1_0x1a6839;return{'code':_0x1b8166['code'],'category':_0x1b8166[_0x2fd479(0x144)],'method':_0x1b8166[_0x2fd479(0x128)],'path':_0x1b8166[_0x2fd479(0x11e)],'summary':_0x1b8166['summary'],'whenToUse':_0x1b8166[_0x2fd479(0xff)]};}export function listApiDocEntries(_0x152308={}){const _0x50ce07=a1_0x1a6839,_0x339c0f=String(_0x152308[_0x50ce07(0x144)]||'')[_0x50ce07(0x10d)](),_0x319ab3=String(_0x152308['keyword']||'')[_0x50ce07(0x10d)]()['toLowerCase']();return DOCS['filter'](_0x35a79d=>{const _0x3ec2ed=_0x50ce07;if(_0x339c0f&&_0x35a79d[_0x3ec2ed(0x144)]!==_0x339c0f)return![];if(!_0x319ab3)return!![];return[_0x35a79d[_0x3ec2ed(0x156)],_0x35a79d['category'],_0x35a79d[_0x3ec2ed(0x128)],_0x35a79d[_0x3ec2ed(0x11e)],_0x35a79d[_0x3ec2ed(0x132)],_0x35a79d[_0x3ec2ed(0xff)],_0x35a79d[_0x3ec2ed(0x130)]][_0x3ec2ed(0x135)]('\x20')[_0x3ec2ed(0x152)]()[_0x3ec2ed(0x120)](_0x319ab3);})[_0x50ce07(0x140)](entrySummary);}export function getApiDocDetail(_0x57ba0e){const _0x3a7add=a1_0x1a6839,_0x2c0b6a=DOCS[_0x3a7add(0x12f)](_0x204bb7=>_0x204bb7[_0x3a7add(0x156)]===_0x57ba0e);if(!_0x2c0b6a)throw CliErrors[_0x3a7add(0x159)](_0x3a7add(0x13b)+_0x57ba0e);return{..._0x2c0b6a};}function a1_0x50cc(){const _0x3ac04f=['102YbEJgi','{\x22param\x22:\x22value\x22}','If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.','聚合查询数据集数据','需要按数据集\x20code\x20获取字段、表信息或操作定义时使用','/api/{appCode}/{datasetCode}/filter','lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27','创建数据','Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.','custom_sql','{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','Aggregate\x20dataset\x20data','Returns\x20one\x20matching\x20business\x20record','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.','`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','whenToUse','/api/custom/executeSql','where\x20filters\x20before\x20aggregation','None','paging.totalCount\x20gives\x20total\x20rows','dataset','bf_function_list','3627AQnsTo','Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result','Execute\x20custom\x20SQL','dataset_list','str','Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text','{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','trim','tableData\x20contains\x20dataset\x20id/code/name','GET','8270562tSYXRK','result\x20rows\x20contain\x20aggregate\x20aliases','detail','条件过滤查询数据','Show\x20runtime\x20API\x20documentation\x20by\x20code','执行指定\x20BF\x20函数','fields/properties\x20describe\x20data\x20shape','lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress','2169jDfbXD','paging\x20contains\x20pagination','{\x22fieldName\x22:\x22value\x22}','需要向指定数据集新增一条业务数据时使用','POST','API\x20doc\x20code,\x20for\x20example\x20dataset_list','path','Returns\x20SQL\x20execution\x20payload','includes','List\x20available\x20runtime\x20API\x20documentation\x20entries','已经确认目标\x20BF\x20的\x20scriptName,且需要实际调用该\x20ENDPOINT\x20脚本完成业务操作时使用','##\x20Aggregate\x20dataset\x20data','string','查询单条数据','5qgEUoJ','read','method','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.','CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.','Returns\x20endpoint\x20functionName/id/description','##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.','lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27','length','find','title','Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.','summary','dataset_data_get_one','##\x20Filter\x20dataset\x20data','join','1096poIdDF','/api/{appCode}/{datasetCode}/create','dataset_data_filter','Dataset\x20detail','分页获取数据集列表','API\x20doc\x20code\x20not\x20found:\x20','Current\x20app\x20code','/api/endpoint/{appCode}/functions','Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.','##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.','map','68621kGAHyF','lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>','32-character\x20dataset\x20code','category','operations\x20describes\x20runtime\x20APIs','List\x20BF\x20endpoint\x20functions','Inspect\x20field\x20names\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.','{\x22aggregate\x22:[{\x22column\x22:\x20\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','keyword','14855445WFIwpS','dataset_detail','appCode','datasetCode','14870CNPVru','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27','/api/endpoint/{appCode}/{scriptName}','Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset','toLowerCase','246541lQXxxD','Execute\x20BF\x20endpoint\x20function','dataset_data_create','code','tableData\x20contains\x20records','Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.','validation','已经知道记录\x20id,需要按数据集读取单条业务数据时使用','需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用','Get\x20one\x20dataset\x20record','5887920ijEhiR','已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','CLI\x20has\x20typed\x20`bff\x20detail`\x20and\x20`bff\x20exec`\x20commands\x20for\x20endpoint\x20scripts.','scriptName'];a1_0x50cc=function(){return _0x3ac04f;};return a1_0x50cc();}const apiDocList={'service':'api-doc','command':'list','description':a1_0x1a6839(0x121),'risk':'read','requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0x499f08){const _0x3f93fb=a1_0x1a6839,_0x5f124a=listApiDocEntries({'category':_0x499f08[_0x3f93fb(0x10a)](_0x3f93fb(0x144)),'keyword':_0x499f08[_0x3f93fb(0x10a)]('keyword')});return{'ok':!![],'data':{'total':_0x5f124a[_0x3f93fb(0x12e)],'items':_0x5f124a}};}},apiDocDetail={'service':'api-doc','command':a1_0x1a6839(0x112),'description':a1_0x1a6839(0x114),'risk':a1_0x1a6839(0x127),'requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0x2680db){const _0x409bd1=a1_0x1a6839;return{'ok':!![],'data':getApiDocDetail(_0x2680db[_0x409bd1(0x10a)](_0x409bd1(0x156)))};}};export const apiDocDefinitions=[apiDocList,apiDocDetail];
@@ -1 +1 @@
1
- (function(_0x3367b9,_0x2e6da4){const _0x2e6573=a2_0x4e8e,_0x3e8ad1=_0x3367b9();while(!![]){try{const _0x54b785=-parseInt(_0x2e6573(0x128))/0x1*(-parseInt(_0x2e6573(0x13a))/0x2)+parseInt(_0x2e6573(0x121))/0x3+parseInt(_0x2e6573(0x12b))/0x4+-parseInt(_0x2e6573(0x132))/0x5+-parseInt(_0x2e6573(0x133))/0x6*(-parseInt(_0x2e6573(0x123))/0x7)+parseInt(_0x2e6573(0x12f))/0x8*(-parseInt(_0x2e6573(0x125))/0x9)+-parseInt(_0x2e6573(0x130))/0xa;if(_0x54b785===_0x2e6da4)break;else _0x3e8ad1['push'](_0x3e8ad1['shift']());}catch(_0x1d2cd2){_0x3e8ad1['push'](_0x3e8ad1['shift']());}}}(a2_0x2a6a,0x2c14d));import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';function a2_0x4e8e(_0xf9255c,_0x41729f){_0xf9255c=_0xf9255c-0x11e;const _0x2a6af2=a2_0x2a6a();let _0x4e8ee1=_0x2a6af2[_0xf9255c];return _0x4e8ee1;}import{dirname,resolve}from'node:path';import{PRODUCT_CONFIG}from'../../constant/product.js';import{isRuntimeAccessibleApp}from'../../commands/app/eligibility.js';export function fingerprintAccessKey(_0x5f397d){const _0x173cdc=a2_0x4e8e,_0x31d1dc=_0x5f397d[_0x173cdc(0x12c)](),_0x4c0460=_0x31d1dc[_0x173cdc(0x12a)](-0x6)||_0x173cdc(0x126),_0x57d826=createHash(_0x173cdc(0x12e))[_0x173cdc(0x134)](_0x31d1dc)['digest'](_0x173cdc(0x120))[_0x173cdc(0x12a)](0x0,0xc);return _0x173cdc(0x137)+_0x4c0460+'_'+_0x57d826;}export function getAppCacheFilePath(_0x1fdc04,_0x167881){const _0xeb2ca3=a2_0x4e8e;return resolve(homedir(),PRODUCT_CONFIG[_0xeb2ca3(0x11f)],_0xeb2ca3(0x136),_0x1fdc04,fingerprintAccessKey(_0x167881),_0xeb2ca3(0x129));}export function readCachedAppList(_0x505868,_0x30e030){const _0x699727=a2_0x4e8e;if(!_0x30e030?.['trim']())return null;const _0x23538b=getAppCacheFilePath(_0x505868,_0x30e030);if(!existsSync(_0x23538b))return null;try{const _0x511797=readFileSync(_0x23538b,'utf8');if(!_0x511797['trim']())return null;const _0x3e4aad=JSON['parse'](_0x511797);if(!Array[_0x699727(0x11e)](_0x3e4aad[_0x699727(0x139)]))return null;return _0x3e4aad;}catch{return null;}}export function writeCachedAppList(_0x56d604,_0x2eae7e,_0x416513){const _0x259cd0=a2_0x4e8e,_0x4affe8=getAppCacheFilePath(_0x56d604,_0x2eae7e),_0x5b4384=dirname(_0x4affe8);!existsSync(_0x5b4384)&&mkdirSync(_0x5b4384,{'recursive':!![]});const _0x1948cc=_0x4affe8+_0x259cd0(0x12d);try{writeFileSync(_0x1948cc,JSON[_0x259cd0(0x131)](_0x416513,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x1948cc,_0x4affe8);}catch(_0x24ab14){if(_0x24ab14[_0x259cd0(0x124)]===_0x259cd0(0x13b)||_0x24ab14[_0x259cd0(0x124)]===_0x259cd0(0x135)||_0x24ab14[_0x259cd0(0x124)]===_0x259cd0(0x138)){writeFileSync(_0x4affe8,JSON[_0x259cd0(0x131)](_0x416513,null,0x2)+'\x0a',{'encoding':_0x259cd0(0x122)});try{unlinkSync(_0x1948cc);}catch{}}else throw _0x24ab14;}}catch(_0x36318e){try{unlinkSync(_0x1948cc);}catch{}throw _0x36318e;}return _0x4affe8;}function a2_0x2a6a(){const _0x53b81f=['99kLIqLK','unknown','appCode','3347nPcsMq','my-apps.json','slice','1160324CyqPrw','trim','.tmp','sha256','85704rHhtln','3767700SndjdP','stringify','1239280yELGNg','99786WeEyNR','update','EXDEV','cache','ak_','EACCES','items','206VCdWZJ','EPERM','isArray','homeDirName','hex','465468KENIWU','utf8','56QcCvSV','code'];a2_0x2a6a=function(){return _0x53b81f;};return a2_0x2a6a();}export function resolveCachedAppCode(_0x10c592,_0x108ed6,_0x857bd0){const _0x34d3ef=a2_0x4e8e;if(!_0x10c592)return undefined;const _0x4a9a34=readCachedAppList(_0x108ed6,_0x857bd0),_0x3ee5c7=_0x4a9a34?.['items']['find'](_0xf9495f=>_0xf9495f['appName']===_0x10c592&&isRuntimeAccessibleApp(_0xf9495f));return _0x3ee5c7?.[_0x34d3ef(0x127)]?.[_0x34d3ef(0x12c)]()||undefined;}
1
+ (function(_0x3dd5eb,_0x513957){const _0x1a6a21=a2_0xabf5,_0x84e20f=_0x3dd5eb();while(!![]){try{const _0x363d6a=parseInt(_0x1a6a21(0x142))/0x1+parseInt(_0x1a6a21(0x151))/0x2+-parseInt(_0x1a6a21(0x139))/0x3+parseInt(_0x1a6a21(0x148))/0x4*(-parseInt(_0x1a6a21(0x149))/0x5)+-parseInt(_0x1a6a21(0x13f))/0x6+-parseInt(_0x1a6a21(0x143))/0x7+parseInt(_0x1a6a21(0x146))/0x8*(parseInt(_0x1a6a21(0x14a))/0x9);if(_0x363d6a===_0x513957)break;else _0x84e20f['push'](_0x84e20f['shift']());}catch(_0x5d56fe){_0x84e20f['push'](_0x84e20f['shift']());}}}(a2_0x5bca,0x7533e));import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';function a2_0xabf5(_0x336454,_0x385e56){_0x336454=_0x336454-0x137;const _0x5bcade=a2_0x5bca();let _0xabf5d7=_0x5bcade[_0x336454];return _0xabf5d7;}import{dirname,resolve}from'node:path';import{PRODUCT_CONFIG}from'../../constant/product.js';import{isRuntimeAccessibleApp}from'../../commands/app/eligibility.js';export function fingerprintAccessKey(_0x46be49){const _0xfa576d=a2_0xabf5,_0x5c338e=_0x46be49[_0xfa576d(0x14b)](),_0x3f201c=_0x5c338e[_0xfa576d(0x13b)](-0x6)||_0xfa576d(0x145),_0x5d46d9=createHash(_0xfa576d(0x14d))['update'](_0x5c338e)['digest'](_0xfa576d(0x13e))[_0xfa576d(0x13b)](0x0,0xc);return _0xfa576d(0x137)+_0x3f201c+'_'+_0x5d46d9;}function a2_0x5bca(){const _0x120e24=['.tmp','295590RSRxxF','my-apps.json','EXDEV','ak_','EPERM','1891050GxEpSO','EACCES','slice','parse','stringify','hex','1403346XUjLGt','items','appName','565838ddzjIs','584374nOKgSo','homeDirName','unknown','4184VeCsnl','cache','252508HPQxgz','25HNokYS','17721bWwVxv','trim','appCode','sha256','code','utf8'];a2_0x5bca=function(){return _0x120e24;};return a2_0x5bca();}export function getAppCacheFilePath(_0x25ffa8,_0xbab2e6){const _0x245742=a2_0xabf5;return resolve(homedir(),PRODUCT_CONFIG[_0x245742(0x144)],_0x245742(0x147),_0x25ffa8,fingerprintAccessKey(_0xbab2e6),_0x245742(0x152));}export function readCachedAppList(_0x24fcb1,_0xf93cb){const _0x18089c=a2_0xabf5;if(!_0xf93cb?.[_0x18089c(0x14b)]())return null;const _0x56273f=getAppCacheFilePath(_0x24fcb1,_0xf93cb);if(!existsSync(_0x56273f))return null;try{const _0x52ac7c=readFileSync(_0x56273f,_0x18089c(0x14f));if(!_0x52ac7c['trim']())return null;const _0x3d2e32=JSON[_0x18089c(0x13c)](_0x52ac7c);if(!Array['isArray'](_0x3d2e32[_0x18089c(0x140)]))return null;return _0x3d2e32;}catch{return null;}}export function writeCachedAppList(_0x352642,_0x5540b5,_0x121a7f){const _0x556c5f=a2_0xabf5,_0x5e492b=getAppCacheFilePath(_0x352642,_0x5540b5),_0x385773=dirname(_0x5e492b);!existsSync(_0x385773)&&mkdirSync(_0x385773,{'recursive':!![]});const _0x4542e7=_0x5e492b+_0x556c5f(0x150);try{writeFileSync(_0x4542e7,JSON[_0x556c5f(0x13d)](_0x121a7f,null,0x2)+'\x0a',{'encoding':_0x556c5f(0x14f),'mode':0x180});try{renameSync(_0x4542e7,_0x5e492b);}catch(_0x191ec3){if(_0x191ec3[_0x556c5f(0x14e)]===_0x556c5f(0x138)||_0x191ec3[_0x556c5f(0x14e)]===_0x556c5f(0x153)||_0x191ec3[_0x556c5f(0x14e)]===_0x556c5f(0x13a)){writeFileSync(_0x5e492b,JSON[_0x556c5f(0x13d)](_0x121a7f,null,0x2)+'\x0a',{'encoding':_0x556c5f(0x14f)});try{unlinkSync(_0x4542e7);}catch{}}else throw _0x191ec3;}}catch(_0x295fa8){try{unlinkSync(_0x4542e7);}catch{}throw _0x295fa8;}return _0x5e492b;}export function resolveCachedAppCode(_0x591d7a,_0x517771,_0x3e4698){const _0x1c7300=a2_0xabf5;if(!_0x591d7a)return undefined;const _0x2ad763=readCachedAppList(_0x517771,_0x3e4698),_0x3e8047=_0x2ad763?.[_0x1c7300(0x140)]['find'](_0x56e223=>_0x56e223[_0x1c7300(0x141)]===_0x591d7a&&isRuntimeAccessibleApp(_0x56e223));return _0x3e8047?.[_0x1c7300(0x14c)]?.[_0x1c7300(0x14b)]()||undefined;}
@@ -1 +1 @@
1
- const a3_0x35a1dc=a3_0x56c5;(function(_0x5ce721,_0x4b9b30){const _0x33096e=a3_0x56c5,_0x33fb04=_0x5ce721();while(!![]){try{const _0x52008a=-parseInt(_0x33096e(0x137))/0x1+-parseInt(_0x33096e(0x17c))/0x2+parseInt(_0x33096e(0x17d))/0x3*(parseInt(_0x33096e(0x172))/0x4)+parseInt(_0x33096e(0x181))/0x5+parseInt(_0x33096e(0x168))/0x6+parseInt(_0x33096e(0x18d))/0x7+-parseInt(_0x33096e(0x14e))/0x8*(-parseInt(_0x33096e(0x18b))/0x9);if(_0x52008a===_0x4b9b30)break;else _0x33fb04['push'](_0x33fb04['shift']());}catch(_0x20d46f){_0x33fb04['push'](_0x33fb04['shift']());}}}(a3_0x5ab1,0x8e2f3));import{CliErrors}from'../../errors.js';import{initCreateFlagDefs,initImportFlagDefs,runInit,runInitImport}from'../../commands/init.js';import{getEnv,RUNTIME_ENV_VALUES}from'../../constant/env.js';function a3_0x5ab1(){const _0x589249=['Read\x20app\x20list\x20from\x20local\x20cache\x20only','1751912jszAAH','from','args','boolean','accessKey','envName','env','Remote\x20app\x20name\x20to\x20activate','no-cache','cache','raw','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','../../context.js','appPublishStatus','Available\x20remote\x20apps:\x20','\x20app\x20','warn','Missing\x20app\x20name.','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','defaultApp','enableI18n','\x20app\x20use\x20<name>\x20[--global]','.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.','production','i18nInfo','Use\x20`','1606962XMTAnA','fetchedAt','filter','local','cachePath','items','globalPath','\x20workspace\x20use\x20--app\x20<name>\x20[--env\x20daily]','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','remote','12cfwPNO','Filter\x20by\x20environment\x20(default:\x20current\x20env)','init','global','source','No\x20apps\x20found\x20on\x20the\x20platform.','langs','.appcode\x20to\x20.lovrabet.json.','write','entries','1042142GNemmQ','357531SeDMkD','appOwnerName','isArray','include-unpublished','5352425WQbDtZ','Include\x20unpublished\x20apps\x20for\x20diagnostics','No\x20cached\x20apps\x20found.','Refreshed\x20app\x20cache\x20with\x20','list','\x20is\x20deprecated.\x20Use\x20`','\x20workspace\x20init\x20--appcode\x20<code>\x20[--env\x20daily]','mergedCli','projectPath','project-default','9deOOfL','isCurrent','1032703BjesVy','appName','../../commands/app/remote-source.js','trim','958903MdLNjd','validation','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','name','bool','join','config','appcode','Use\x20global\x20config\x20scope','type','app','map','Deprecated:\x20use\x20workspace\x20use\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','import','use','find','Usage:\x20','str','length','Default\x20app\x20candidate\x20set\x20to\x20\x22','App\x20\x22','string'];a3_0x5ab1=function(){return _0x589249;};return a3_0x5ab1();}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_0x35a1dc(0x175),'type':'boolean','description':a3_0x35a1dc(0x13f),'default':![]};function collectFlags(_0x2fb3a0,_0x39eaf6){const _0x32674f=a3_0x35a1dc,_0x3ec0f7={};for(const _0x296e60 of _0x39eaf6){const _0x8a9a57=_0x296e60[_0x32674f(0x140)]===_0x32674f(0x151)?_0x2fb3a0[_0x32674f(0x13b)](_0x296e60[_0x32674f(0x13a)]):_0x2fb3a0['str'](_0x296e60['name']);if(_0x8a9a57!==''&&_0x8a9a57!==![])_0x3ec0f7[_0x296e60[_0x32674f(0x13a)]]=_0x8a9a57;}if(_0x2fb3a0['nonInteractive'])_0x3ec0f7['nonInteractive']=!![];return _0x3ec0f7;}function a3_0x56c5(_0x102ad1,_0x40a280){_0x102ad1=_0x102ad1-0x137;const _0x5ab156=a3_0x5ab1();let _0x56c596=_0x5ab156[_0x102ad1];return _0x56c596;}function normalizeLanguages(_0x287110){const _0x27513b=a3_0x35a1dc;if(!Array[_0x27513b(0x17f)](_0x287110))return[];return _0x287110[_0x27513b(0x16a)](_0x6f1423=>typeof _0x6f1423==='string')['map'](_0x451547=>_0x451547['trim']())[_0x27513b(0x16a)](Boolean);}function buildRemoteAppI18nFields(_0x3fc816){const _0x1d7bf3=a3_0x35a1dc,_0xa8ad23=normalizeLanguages(_0x3fc816[_0x1d7bf3(0x166)]?.[_0x1d7bf3(0x178)]);return{'enableI18n':typeof _0x3fc816[_0x1d7bf3(0x162)]===_0x1d7bf3(0x151)?_0x3fc816[_0x1d7bf3(0x162)]:null,'languages':_0xa8ad23,'i18nInfo':_0x3fc816[_0x1d7bf3(0x166)]?{..._0x3fc816[_0x1d7bf3(0x166)],'langs':_0xa8ad23[_0x1d7bf3(0x149)]?_0xa8ad23:null}:null};}const initDef={'service':'app','command':a3_0x35a1dc(0x174),'description':'Deprecated:\x20use\x20workspace\x20init\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','risk':a3_0x35a1dc(0x17a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x2c74c5){const _0x13d5e4=a3_0x35a1dc;return warnDeprecatedAppCommand(_0x13d5e4(0x174),CLI_BIN_NAME+_0x13d5e4(0x187)),await runInit(collectFlags(_0x2c74c5,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':'app','command':a3_0x35a1dc(0x185),'description':a3_0x35a1dc(0x160),'risk':'read','requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a3_0x35a1dc(0x154),'type':a3_0x35a1dc(0x14c),'description':a3_0x35a1dc(0x173),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x35a1dc(0x16b),'type':a3_0x35a1dc(0x151),'description':a3_0x35a1dc(0x14d),'default':![]},{'name':'no-cache','type':a3_0x35a1dc(0x151),'description':a3_0x35a1dc(0x159),'default':![]},{'name':a3_0x35a1dc(0x180),'type':a3_0x35a1dc(0x151),'description':a3_0x35a1dc(0x182),'default':![]}],async 'execute'(_0x5c0e97){const _0x43805e=a3_0x35a1dc,_0x449f22=_0x5c0e97['str']('env')||_0x5c0e97[_0x43805e(0x153)]||getEnv()||_0x43805e(0x165),_0x261f35=_0x5c0e97[_0x43805e(0x13b)]('local'),_0x46fd4b=_0x5c0e97[_0x43805e(0x13b)](_0x43805e(0x156)),_0x2fc541=_0x5c0e97[_0x43805e(0x13b)](_0x43805e(0x180)),{readRawConfigWithLayers:_0x28fda6,resolveDefaultAppSource:_0x1963df,getLocalAppAliases:_0x441ac5}=await import('../../context.js'),{getRemoteAppList:_0x2d1878}=await import(_0x43805e(0x18f)),{config:_0x3da62c,layers:_0x4418b5}=_0x28fda6(),_0x51c975=_0x1963df(_0x4418b5),{defaultApp:_0x55823b}=_0x3da62c,_0x37ef21=await _0x2d1878({'env':_0x449f22,'accessKey':_0x5c0e97['accessKey'],'localOnly':_0x261f35,'noCache':_0x46fd4b}),_0xfaca49=_0x2fc541?_0x37ef21[_0x43805e(0x16d)]:filterRuntimeAccessibleApps(_0x37ef21[_0x43805e(0x16d)]),_0x5ee5a5=_0x37ef21[_0x43805e(0x16d)][_0x43805e(0x149)]-_0xfaca49[_0x43805e(0x149)],_0x565c6b=_0xfaca49[_0x43805e(0x142)](_0x260a97=>{const _0x1c7433=_0x43805e;return{'name':_0x260a97['appName'],'appcode':_0x260a97['appCode'],'named':!![],'definedIn':_0x1c7433(0x171),'isDefault':_0x260a97[_0x1c7433(0x18e)]===_0x55823b,...buildAppProfileListFields(_0x449f22),...buildRemoteAppI18nFields(_0x260a97),'source':_0x37ef21[_0x1c7433(0x176)],'owner':_0x260a97[_0x1c7433(0x17e)]??null,'status':_0x260a97[_0x1c7433(0x15b)]??null,'cachedAt':_0x37ef21[_0x1c7433(0x169)]};}),_0x91e362=_0x441ac5(_0x3da62c);let _0x4121d3=0x0;for(const [_0x37accf,_0x57ed3e]of Object[_0x43805e(0x17b)](_0x91e362)){const _0x1e5595=typeof _0x57ed3e[_0x43805e(0x13e)]===_0x43805e(0x14c)?_0x57ed3e[_0x43805e(0x13e)][_0x43805e(0x190)]():'';if(!_0x1e5595)continue;const _0x3170d3=findAppByCode(_0x37ef21['items'],_0x1e5595);if(!_0x2fc541&&_0x3170d3&&!isRuntimeAccessibleApp(_0x3170d3))continue;_0x4121d3+=0x1,_0x565c6b['push']({'name':_0x37accf,'appcode':_0x1e5595,'named':!![],'definedIn':_0x43805e(0x16b),'isDefault':_0x37accf===_0x55823b,...buildAppProfileListFields(_0x449f22),'source':_0x43805e(0x13d),'owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x565c6b,_0x5c0e97[_0x43805e(0x188)]);const _0x117f5f=_0x565c6b[_0x43805e(0x146)](_0x21e6d7=>_0x21e6d7[_0x43805e(0x18c)]===!![]),_0x1edc3b=_0x55823b??_0x117f5f?.['name']??null,_0x584ab9={'env':_0x449f22,'source':_0x37ef21[_0x43805e(0x176)],'fetchedAt':_0x37ef21[_0x43805e(0x169)],'cachePath':_0x37ef21[_0x43805e(0x16c)],'globalPath':_0x4418b5[_0x43805e(0x16e)]??null,'projectPath':_0x4418b5[_0x43805e(0x189)]??null,'defaultApp':_0x1edc3b,'defaultAppSource':_0x55823b!=null?_0x51c975:null,'localAliasCount':_0x4121d3,'remoteTotal':_0x37ef21['items'][_0x43805e(0x149)],'hiddenUnpublishedCount':_0x5ee5a5,'includeUnpublished':_0x2fc541};if(_0x565c6b['length']===0x0)return{'ok':!![],'data':{'items':_0x565c6b,'meta':_0x584ab9},'message':_0x37ef21['source']===_0x43805e(0x157)?_0x43805e(0x183):_0x43805e(0x177)};return{'ok':!![],'data':{'items':_0x565c6b,'meta':_0x584ab9}};}},pullDef={'service':a3_0x35a1dc(0x141),'command':'pull','description':a3_0x35a1dc(0x170),'risk':a3_0x35a1dc(0x17a),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'env','type':a3_0x35a1dc(0x14c),'description':'Target\x20environment\x20(default:\x20current\x20env)','enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x35a1dc(0x16b),'type':a3_0x35a1dc(0x151),'description':'Read\x20from\x20local\x20cache\x20only','default':![]},{'name':a3_0x35a1dc(0x156),'type':a3_0x35a1dc(0x151),'description':a3_0x35a1dc(0x159),'default':![]}],async 'execute'(_0x4be7e8){const _0x1afdf3=a3_0x35a1dc,_0x53c4f3=_0x4be7e8[_0x1afdf3(0x148)](_0x1afdf3(0x154))||_0x4be7e8['envName']||getEnv()||'production',_0x3f5086=_0x4be7e8[_0x1afdf3(0x13b)](_0x1afdf3(0x16b)),_0x551d48=_0x4be7e8[_0x1afdf3(0x13b)](_0x1afdf3(0x156)),{getRemoteAppList:_0x1bfcd0}=await import(_0x1afdf3(0x18f)),_0x544514=await _0x1bfcd0({'env':_0x53c4f3,'accessKey':_0x4be7e8['accessKey'],'localOnly':_0x3f5086,'noCache':_0x551d48});return{'ok':!![],'data':{'total':_0x544514[_0x1afdf3(0x16d)]['length'],'env':_0x53c4f3,'source':_0x544514[_0x1afdf3(0x176)],'fetchedAt':_0x544514[_0x1afdf3(0x169)],'cachePath':_0x544514['cachePath']},'message':_0x544514[_0x1afdf3(0x176)]===_0x1afdf3(0x157)?'Loaded\x20'+_0x544514[_0x1afdf3(0x16d)]['length']+'\x20cached\x20app(s)\x20for\x20env=\x22'+_0x53c4f3+'\x22.':_0x1afdf3(0x184)+_0x544514[_0x1afdf3(0x16d)][_0x1afdf3(0x149)]+'\x20app(s)\x20for\x20env=\x22'+_0x53c4f3+'\x22.'};}},useDef={'service':a3_0x35a1dc(0x141),'command':a3_0x35a1dc(0x145),'description':a3_0x35a1dc(0x143),'risk':a3_0x35a1dc(0x17a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a3_0x35a1dc(0x13a),'description':a3_0x35a1dc(0x155),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x514ef7){const _0x5b9719=a3_0x35a1dc;if(!_0x514ef7[_0x5b9719(0x150)][0x0])throw CliErrors[_0x5b9719(0x138)](_0x5b9719(0x15f),_0x5b9719(0x147)+CLI_BIN_NAME+'\x20app\x20use\x20<name>\x20[--global]');},async 'execute'(_0x5b7121){const _0x5e9256=a3_0x35a1dc;warnDeprecatedAppCommand('use',CLI_BIN_NAME+_0x5e9256(0x16f));const _0x2c54a1=_0x5b7121[_0x5e9256(0x150)][0x0];if(!_0x2c54a1)throw CliErrors['validation'](_0x5e9256(0x15f),_0x5e9256(0x147)+CLI_BIN_NAME+_0x5e9256(0x163));const {buildConfigFromFlags:_0x13607c,resolveLocalAppAliasCode:_0x40b97e}=await import(_0x5e9256(0x15a)),{readCachedAppList:_0x11c6a2}=await import('../../commands/app/cache.js'),_0x32cd99=_0x5b7121['str'](_0x5e9256(0x154)),_0x22daaf=_0x13607c(_0x32cd99?{'env':_0x32cd99}:{}),_0x1d4837=_0x11c6a2(_0x22daaf[_0x5e9256(0x154)],_0x22daaf[_0x5e9256(0x152)]),_0x2b6c63=_0x1d4837?.[_0x5e9256(0x16d)][_0x5e9256(0x146)](_0x3d485e=>_0x3d485e[_0x5e9256(0x18e)]===_0x2c54a1),_0x169a3a=_0x40b97e(_0x22daaf[_0x5e9256(0x158)]??{},_0x2c54a1);if(_0x2b6c63&&!isRuntimeAccessibleApp(_0x2b6c63))throw runtimeInaccessibleAppError(_0x2b6c63,'\x22'+_0x2c54a1+'\x22');if(_0x169a3a){const _0x40c099=_0x1d4837?.[_0x5e9256(0x16d)][_0x5e9256(0x146)](_0x9951d8=>_0x9951d8['appCode']?.[_0x5e9256(0x190)]()===_0x169a3a);if(_0x40c099&&!isRuntimeAccessibleApp(_0x40c099))throw runtimeInaccessibleAppError(_0x40c099,'\x22'+_0x2c54a1+'\x22');}if(!_0x2b6c63&&!_0x169a3a&&_0x22daaf[_0x5e9256(0x161)]!==_0x2c54a1){const _0xf8321a=[..._0x1d4837?.[_0x5e9256(0x16d)][_0x5e9256(0x142)](_0x686bff=>_0x686bff[_0x5e9256(0x18e)])??[]],_0x82a9fc=_0xf8321a[_0x5e9256(0x149)]===0x0?_0x5e9256(0x167)+CLI_BIN_NAME+'\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.'+_0x2c54a1+_0x5e9256(0x179):_0x5e9256(0x15c)+Array[_0x5e9256(0x14f)](new Set(_0xf8321a))[_0x5e9256(0x13c)](',\x20')+_0x5e9256(0x164);throw CliErrors[_0x5e9256(0x138)](_0x5e9256(0x14b)+_0x2c54a1+'\x22\x20not\x20found.',_0x82a9fc);}const _0x46377d=_0x5b7121[_0x5e9256(0x13b)](_0x5e9256(0x175));let _0x4d9231;if(_0x46377d)_0x4d9231={'global':!![]};else{const {isInProject:_0x14cb43}=await import(_0x5e9256(0x15a)),_0x3aeeee=_0x14cb43();_0x4d9231=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0x5e9256(0x18a),'inProject':_0x3aeeee}));}const _0x5a0714=readConfig(_0x4d9231);return _0x5a0714[_0x5e9256(0x161)]=_0x2c54a1,writeConfig(_0x5a0714,_0x4d9231),{'ok':!![],'message':_0x5e9256(0x14a)+_0x2c54a1+'\x22'+scopeLabel(_0x4d9231)+'.'};}};function warnDeprecatedAppCommand(_0xeec197,_0x52ad5d){const _0x3e5e64=a3_0x35a1dc;console[_0x3e5e64(0x15e)](CLI_BIN_NAME+_0x3e5e64(0x15d)+_0xeec197+_0x3e5e64(0x186)+_0x52ad5d+'`\x20instead.');}const importDef={'service':'app','command':a3_0x35a1dc(0x144),'description':a3_0x35a1dc(0x139),'risk':a3_0x35a1dc(0x17a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x4d9383){return await runInitImport(collectFlags(_0x4d9383,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
1
+ const a3_0x2d7cc3=a3_0x4625;(function(_0x45a636,_0x3da7a9){const _0x36997d=a3_0x4625,_0x5a4f82=_0x45a636();while(!![]){try{const _0x520a14=-parseInt(_0x36997d(0x10f))/0x1+-parseInt(_0x36997d(0xea))/0x2+parseInt(_0x36997d(0x104))/0x3+-parseInt(_0x36997d(0xd1))/0x4*(parseInt(_0x36997d(0xdd))/0x5)+parseInt(_0x36997d(0xd0))/0x6+-parseInt(_0x36997d(0x116))/0x7+parseInt(_0x36997d(0x109))/0x8;if(_0x520a14===_0x3da7a9)break;else _0x5a4f82['push'](_0x5a4f82['shift']());}catch(_0x1fcb2f){_0x5a4f82['push'](_0x5a4f82['shift']());}}}(a3_0x1f44,0xc319d));import{CliErrors}from'../../errors.js';import{initCreateFlagDefs,initImportFlagDefs,runInit,runInitImport}from'../../commands/init.js';function a3_0x4625(_0x3f463a,_0x397b90){_0x3f463a=_0x3f463a-0xc9;const _0x1f4490=a3_0x1f44();let _0x4625b8=_0x1f4490[_0x3f463a];return _0x4625b8;}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_0x2d7cc3(0x10e),'type':a3_0x2d7cc3(0xf4),'description':a3_0x2d7cc3(0xd5),'default':![]};function collectFlags(_0x444712,_0x4a89f4){const _0x255b1c=a3_0x2d7cc3,_0x3efd51={};for(const _0x475422 of _0x4a89f4){const _0x4d33e9=_0x475422[_0x255b1c(0x100)]===_0x255b1c(0xf4)?_0x444712[_0x255b1c(0xdb)](_0x475422['name']):_0x444712[_0x255b1c(0xdc)](_0x475422[_0x255b1c(0x10d)]);if(_0x4d33e9!==''&&_0x4d33e9!==![])_0x3efd51[_0x475422['name']]=_0x4d33e9;}if(_0x444712[_0x255b1c(0xfc)])_0x3efd51[_0x255b1c(0xfc)]=!![];return _0x3efd51;}function normalizeLanguages(_0x24bf46){const _0x2bfc02=a3_0x2d7cc3;if(!Array[_0x2bfc02(0x11c)](_0x24bf46))return[];return _0x24bf46[_0x2bfc02(0xee)](_0x545d45=>typeof _0x545d45===_0x2bfc02(0x10a))[_0x2bfc02(0x107)](_0x377368=>_0x377368[_0x2bfc02(0x114)]())[_0x2bfc02(0xee)](Boolean);}function buildRemoteAppI18nFields(_0xcb0c9a){const _0x1e98d4=a3_0x2d7cc3,_0xc89dc5=normalizeLanguages(_0xcb0c9a[_0x1e98d4(0x10c)]?.[_0x1e98d4(0xe3)]);return{'enableI18n':typeof _0xcb0c9a[_0x1e98d4(0x103)]===_0x1e98d4(0xf4)?_0xcb0c9a[_0x1e98d4(0x103)]:null,'languages':_0xc89dc5,'i18nInfo':_0xcb0c9a[_0x1e98d4(0x10c)]?{..._0xcb0c9a['i18nInfo'],'langs':_0xc89dc5['length']?_0xc89dc5:null}:null};}const initDef={'service':a3_0x2d7cc3(0xf1),'command':a3_0x2d7cc3(0x111),'description':a3_0x2d7cc3(0x118),'risk':a3_0x2d7cc3(0xe6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x582c41){const _0x4034fc=a3_0x2d7cc3;return warnDeprecatedAppCommand(_0x4034fc(0x111),CLI_BIN_NAME+_0x4034fc(0xe0)),await runInit(collectFlags(_0x582c41,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a3_0x2d7cc3(0xf1),'command':a3_0x2d7cc3(0xf9),'description':a3_0x2d7cc3(0xff),'risk':a3_0x2d7cc3(0xf3),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':'env','type':a3_0x2d7cc3(0x10a),'description':a3_0x2d7cc3(0xd4),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x2d7cc3(0xfa),'type':a3_0x2d7cc3(0xf4),'description':a3_0x2d7cc3(0xe4),'default':![]},{'name':'no-cache','type':a3_0x2d7cc3(0xf4),'description':'Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','default':![]},{'name':a3_0x2d7cc3(0xec),'type':'boolean','description':'Include\x20unpublished\x20apps\x20for\x20diagnostics','default':![]}],async 'execute'(_0x5f4da3){const _0xe0d4f2=a3_0x2d7cc3,_0xa39ebb=_0x5f4da3[_0xe0d4f2(0xdc)](_0xe0d4f2(0xe8))||_0x5f4da3[_0xe0d4f2(0xed)]||getEnv()||_0xe0d4f2(0xcc),_0x1cbe35=_0x5f4da3['bool']('local'),_0x110495=_0x5f4da3[_0xe0d4f2(0xdb)]('no-cache'),_0x4f3b84=_0x5f4da3[_0xe0d4f2(0xdb)]('include-unpublished'),{readRawConfigWithLayers:_0x8f8e9d,resolveDefaultAppSource:_0x278701,getLocalAppAliases:_0x52c5cd}=await import(_0xe0d4f2(0xeb)),{getRemoteAppList:_0x573448}=await import(_0xe0d4f2(0xf8)),{config:_0x27169b,layers:_0x16d863}=_0x8f8e9d(),_0x537f9f=_0x278701(_0x16d863),{defaultApp:_0x402652}=_0x27169b,_0x376621=await _0x573448({'env':_0xa39ebb,'accessKey':_0x5f4da3[_0xe0d4f2(0xe7)],'localOnly':_0x1cbe35,'noCache':_0x110495}),_0x2ede2b=_0x4f3b84?_0x376621['items']:filterRuntimeAccessibleApps(_0x376621[_0xe0d4f2(0xc9)]),_0x50c340=_0x376621[_0xe0d4f2(0xc9)][_0xe0d4f2(0xfb)]-_0x2ede2b[_0xe0d4f2(0xfb)],_0x2b9a8a=_0x2ede2b['map'](_0x937640=>{const _0x40c4e6=_0xe0d4f2;return{'name':_0x937640[_0x40c4e6(0x11d)],'appcode':_0x937640['appCode'],'named':!![],'definedIn':_0x40c4e6(0x117),'isDefault':_0x937640[_0x40c4e6(0x11d)]===_0x402652,...buildAppProfileListFields(_0xa39ebb),...buildRemoteAppI18nFields(_0x937640),'source':_0x376621[_0x40c4e6(0xd9)],'owner':_0x937640[_0x40c4e6(0x115)]??null,'status':_0x937640['appPublishStatus']??null,'cachedAt':_0x376621[_0x40c4e6(0xe9)]};}),_0x5701af=_0x52c5cd(_0x27169b);let _0x2ecd33=0x0;for(const [_0x7eb090,_0x2cf584]of Object[_0xe0d4f2(0xe1)](_0x5701af)){const _0x128976=typeof _0x2cf584[_0xe0d4f2(0xd3)]===_0xe0d4f2(0x10a)?_0x2cf584[_0xe0d4f2(0xd3)][_0xe0d4f2(0x114)]():'';if(!_0x128976)continue;const _0x119b80=findAppByCode(_0x376621[_0xe0d4f2(0xc9)],_0x128976);if(!_0x4f3b84&&_0x119b80&&!isRuntimeAccessibleApp(_0x119b80))continue;_0x2ecd33+=0x1,_0x2b9a8a[_0xe0d4f2(0xe5)]({'name':_0x7eb090,'appcode':_0x128976,'named':!![],'definedIn':_0xe0d4f2(0xfa),'isDefault':_0x7eb090===_0x402652,...buildAppProfileListFields(_0xa39ebb),'source':'config','owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x2b9a8a,_0x5f4da3[_0xe0d4f2(0xcb)]);const _0x5780ea=_0x2b9a8a[_0xe0d4f2(0x108)](_0x8171e=>_0x8171e['isCurrent']===!![]),_0x2096b7=_0x402652??_0x5780ea?.['name']??null,_0x405179={'env':_0xa39ebb,'source':_0x376621[_0xe0d4f2(0xd9)],'fetchedAt':_0x376621[_0xe0d4f2(0xe9)],'cachePath':_0x376621[_0xe0d4f2(0x113)],'globalPath':_0x16d863[_0xe0d4f2(0x110)]??null,'projectPath':_0x16d863[_0xe0d4f2(0xd8)]??null,'defaultApp':_0x2096b7,'defaultAppSource':_0x402652!=null?_0x537f9f:null,'localAliasCount':_0x2ecd33,'remoteTotal':_0x376621[_0xe0d4f2(0xc9)][_0xe0d4f2(0xfb)],'hiddenUnpublishedCount':_0x50c340,'includeUnpublished':_0x4f3b84};if(_0x2b9a8a[_0xe0d4f2(0xfb)]===0x0)return{'ok':!![],'data':{'items':_0x2b9a8a,'meta':_0x405179},'message':_0x376621[_0xe0d4f2(0xd9)]===_0xe0d4f2(0xd2)?_0xe0d4f2(0xda):_0xe0d4f2(0xde)};return{'ok':!![],'data':{'items':_0x2b9a8a,'meta':_0x405179}};}},pullDef={'service':a3_0x2d7cc3(0xf1),'command':'pull','description':a3_0x2d7cc3(0xcf),'risk':a3_0x2d7cc3(0xe6),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a3_0x2d7cc3(0xe8),'type':a3_0x2d7cc3(0x10a),'description':'Target\x20environment\x20(default:\x20current\x20env)','enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x2d7cc3(0xfa),'type':a3_0x2d7cc3(0xf4),'description':'Read\x20from\x20local\x20cache\x20only','default':![]},{'name':'no-cache','type':'boolean','description':'Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','default':![]}],async 'execute'(_0x308d86){const _0x20943b=a3_0x2d7cc3,_0x3f40c3=_0x308d86[_0x20943b(0xdc)](_0x20943b(0xe8))||_0x308d86[_0x20943b(0xed)]||getEnv()||_0x20943b(0xcc),_0x47bb0d=_0x308d86[_0x20943b(0xdb)]('local'),_0x2beecd=_0x308d86[_0x20943b(0xdb)](_0x20943b(0xef)),{getRemoteAppList:_0x2a3693}=await import(_0x20943b(0xf8)),_0x40a562=await _0x2a3693({'env':_0x3f40c3,'accessKey':_0x308d86['accessKey'],'localOnly':_0x47bb0d,'noCache':_0x2beecd});return{'ok':!![],'data':{'total':_0x40a562['items']['length'],'env':_0x3f40c3,'source':_0x40a562['source'],'fetchedAt':_0x40a562[_0x20943b(0xe9)],'cachePath':_0x40a562[_0x20943b(0x113)]},'message':_0x40a562[_0x20943b(0xd9)]===_0x20943b(0xd2)?_0x20943b(0x11b)+_0x40a562['items'][_0x20943b(0xfb)]+_0x20943b(0x119)+_0x3f40c3+'\x22.':_0x20943b(0xd7)+_0x40a562[_0x20943b(0xc9)][_0x20943b(0xfb)]+'\x20app(s)\x20for\x20env=\x22'+_0x3f40c3+'\x22.'};}},useDef={'service':a3_0x2d7cc3(0xf1),'command':a3_0x2d7cc3(0x112),'description':a3_0x2d7cc3(0xce),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a3_0x2d7cc3(0x10d),'description':a3_0x2d7cc3(0xca),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x30b9a4){const _0x361cb5=a3_0x2d7cc3;if(!_0x30b9a4[_0x361cb5(0xf6)][0x0])throw CliErrors[_0x361cb5(0x11e)](_0x361cb5(0xdf),_0x361cb5(0xf5)+CLI_BIN_NAME+_0x361cb5(0xd6));},async 'execute'(_0x352ac2){const _0x3bff63=a3_0x2d7cc3;warnDeprecatedAppCommand(_0x3bff63(0x112),CLI_BIN_NAME+_0x3bff63(0x106));const _0xc417a5=_0x352ac2[_0x3bff63(0xf6)][0x0];if(!_0xc417a5)throw CliErrors[_0x3bff63(0x11e)](_0x3bff63(0xdf),_0x3bff63(0xf5)+CLI_BIN_NAME+_0x3bff63(0xd6));const {buildConfigFromFlags:_0x21fe18,resolveLocalAppAliasCode:_0x38fa2c}=await import('../../context.js'),{readCachedAppList:_0x134938}=await import(_0x3bff63(0xf7)),_0x2c8ae3=_0x352ac2[_0x3bff63(0xdc)]('env'),_0x30542d=_0x21fe18(_0x2c8ae3?{'env':_0x2c8ae3}:{}),_0x33cc66=_0x134938(_0x30542d['env'],_0x30542d['accessKey']),_0x3e5697=_0x33cc66?.[_0x3bff63(0xc9)][_0x3bff63(0x108)](_0x2d503c=>_0x2d503c[_0x3bff63(0x11d)]===_0xc417a5),_0x2057c0=_0x38fa2c(_0x30542d[_0x3bff63(0x102)]??{},_0xc417a5);if(_0x3e5697&&!isRuntimeAccessibleApp(_0x3e5697))throw runtimeInaccessibleAppError(_0x3e5697,'\x22'+_0xc417a5+'\x22');if(_0x2057c0){const _0xd670c3=_0x33cc66?.['items'][_0x3bff63(0x108)](_0xe034e9=>_0xe034e9[_0x3bff63(0x101)]?.[_0x3bff63(0x114)]()===_0x2057c0);if(_0xd670c3&&!isRuntimeAccessibleApp(_0xd670c3))throw runtimeInaccessibleAppError(_0xd670c3,'\x22'+_0xc417a5+'\x22');}if(!_0x3e5697&&!_0x2057c0&&_0x30542d[_0x3bff63(0xe2)]!==_0xc417a5){const _0x45b03d=[..._0x33cc66?.[_0x3bff63(0xc9)][_0x3bff63(0x107)](_0x155c2f=>_0x155c2f[_0x3bff63(0x11d)])??[]],_0x446d97=_0x45b03d[_0x3bff63(0xfb)]===0x0?'Use\x20`'+CLI_BIN_NAME+_0x3bff63(0xcd)+_0xc417a5+'.appcode\x20to\x20.lovrabet.json.':_0x3bff63(0x105)+Array['from'](new Set(_0x45b03d))['join'](',\x20')+_0x3bff63(0x10b);throw CliErrors[_0x3bff63(0x11e)](_0x3bff63(0xf2)+_0xc417a5+_0x3bff63(0xfe),_0x446d97);}const _0x165721=_0x352ac2['bool']('global');let _0x5bbb86;if(_0x165721)_0x5bbb86={'global':!![]};else{const {isInProject:_0xda1f10}=await import('../../context.js'),_0x3bd284=_0xda1f10();_0x5bbb86=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0x3bff63(0x11a),'inProject':_0x3bd284}));}const _0x290d8f=readConfig(_0x5bbb86);return _0x290d8f[_0x3bff63(0xe2)]=_0xc417a5,writeConfig(_0x290d8f,_0x5bbb86),{'ok':!![],'message':'Default\x20app\x20candidate\x20set\x20to\x20\x22'+_0xc417a5+'\x22'+scopeLabel(_0x5bbb86)+'.'};}};function warnDeprecatedAppCommand(_0x3d1144,_0x475559){const _0xc9e5b2=a3_0x2d7cc3;console['warn'](CLI_BIN_NAME+'\x20app\x20'+_0x3d1144+_0xc9e5b2(0xf0)+_0x475559+'`\x20instead.');}const importDef={'service':a3_0x2d7cc3(0xf1),'command':'import','description':a3_0x2d7cc3(0xfd),'risk':a3_0x2d7cc3(0xe6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x4a83c3){return await runInitImport(collectFlags(_0x4a83c3,initImportFlagDefs)),{'ok':!![]};}};function a3_0x1f44(){const _0x3cacc4=['../../context.js','include-unpublished','envName','filter','no-cache','\x20is\x20deprecated.\x20Use\x20`','app','App\x20\x22','read','boolean','Usage:\x20','args','../../commands/app/cache.js','../../commands/app/remote-source.js','list','local','length','nonInteractive','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','\x22\x20not\x20found.','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','type','appCode','raw','enableI18n','2841924vhRMMQ','Available\x20remote\x20apps:\x20','\x20workspace\x20use\x20--app\x20<name>\x20[--env\x20daily]','map','find','15259080IWBIjC','string','.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.','i18nInfo','name','global','941416loNMVx','globalPath','init','use','cachePath','trim','appOwnerName','4722606dxLkIU','remote','Deprecated:\x20use\x20workspace\x20init\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','\x20cached\x20app(s)\x20for\x20env=\x22','project-default','Loaded\x20','isArray','appName','validation','items','Remote\x20app\x20name\x20to\x20activate','mergedCli','production','\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.','Deprecated:\x20use\x20workspace\x20use\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','8883606HQnzMU','4265956mKNrJJ','cache','appcode','Filter\x20by\x20environment\x20(default:\x20current\x20env)','Use\x20global\x20config\x20scope','\x20app\x20use\x20<name>\x20[--global]','Refreshed\x20app\x20cache\x20with\x20','projectPath','source','No\x20cached\x20apps\x20found.','bool','str','5kfoQHt','No\x20apps\x20found\x20on\x20the\x20platform.','Missing\x20app\x20name.','\x20workspace\x20init\x20--appcode\x20<code>\x20[--env\x20daily]','entries','defaultApp','langs','Read\x20app\x20list\x20from\x20local\x20cache\x20only','push','write','accessKey','env','fetchedAt','1707196TikoYb'];a3_0x1f44=function(){return _0x3cacc4;};return a3_0x1f44();}export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
@@ -1 +1 @@
1
- (function(_0x5d55cd,_0x4d6675){const _0x5e0229=a4_0x4f44,_0x10f630=_0x5d55cd();while(!![]){try{const _0x32cc64=-parseInt(_0x5e0229(0x143))/0x1*(parseInt(_0x5e0229(0x14d))/0x2)+-parseInt(_0x5e0229(0x157))/0x3+-parseInt(_0x5e0229(0x153))/0x4*(-parseInt(_0x5e0229(0x15a))/0x5)+-parseInt(_0x5e0229(0x159))/0x6+parseInt(_0x5e0229(0x14a))/0x7*(parseInt(_0x5e0229(0x14f))/0x8)+-parseInt(_0x5e0229(0x155))/0x9*(-parseInt(_0x5e0229(0x151))/0xa)+-parseInt(_0x5e0229(0x146))/0xb;if(_0x32cc64===_0x4d6675)break;else _0x10f630['push'](_0x10f630['shift']());}catch(_0x4652cb){_0x10f630['push'](_0x10f630['shift']());}}}(a4_0x19aa,0xd8e1d));import{CLI_BIN_NAME}from'../../constant/cli.js';function a4_0x19aa(){const _0x72a7ec=['trim','8RyIfWn','validation','1600390MIyHsx','filter','2252yqjjJZ','\x20is\x20not\x20available\x20for\x20runtime\x20AI\x20access.','72MpcpSG','string','259530jfWJHH','Current\x20status:\x20','6355476bGCuhE','4805qfgKvV','1505jurcRv','toUpperCase','appName','1827595YomKSp','.\x20Publish\x20the\x20app\x20before\x20using\x20','appPublishStatus','\x20dataset/data/sql/bff\x20commands,\x20or\x20choose\x20a\x20published\x20app.','7951370OeVULZ','find','appCode','1006HaDSkM'];a4_0x19aa=function(){return _0x72a7ec;};return a4_0x19aa();}import{RUNTIME_ACCESSIBLE_APP_STATUS}from'../../constant/app.js';import{CliErrors}from'../../errors.js';export function normalizeAppPublishStatus(_0x29fd2a){const _0x14645d=a4_0x4f44;if(typeof _0x29fd2a!==_0x14645d(0x156))return null;const _0x1c56c3=_0x29fd2a['trim']();return _0x1c56c3?_0x1c56c3[_0x14645d(0x144)]():null;}export function isRuntimeAccessibleApp(_0x1ab0e7){const _0xd2e157=a4_0x4f44;return normalizeAppPublishStatus(_0x1ab0e7[_0xd2e157(0x148)])===RUNTIME_ACCESSIBLE_APP_STATUS;}function a4_0x4f44(_0x827223,_0x3da16b){_0x827223=_0x827223-0x143;const _0x19aaff=a4_0x19aa();let _0x4f44fb=_0x19aaff[_0x827223];return _0x4f44fb;}export function filterRuntimeAccessibleApps(_0x2a2d67){const _0x24bbd5=a4_0x4f44;return _0x2a2d67[_0x24bbd5(0x152)](isRuntimeAccessibleApp);}export function findAppByName(_0x132740,_0x394fab){const _0x365d1a=a4_0x4f44;return _0x132740[_0x365d1a(0x14b)](_0x51f312=>_0x51f312[_0x365d1a(0x145)]===_0x394fab);}export function findAppByCode(_0x14d65d,_0x5c0fa8){const _0x338982=a4_0x4f44,_0x2630b8=_0x5c0fa8[_0x338982(0x14e)]();if(!_0x2630b8)return undefined;return _0x14d65d['find'](_0x2691e9=>_0x2691e9[_0x338982(0x14c)]?.[_0x338982(0x14e)]()===_0x2630b8);}export function runtimeInaccessibleAppError(_0x1aaa0a,_0x528d50){const _0x3e445e=a4_0x4f44,_0x29e7fb=normalizeAppPublishStatus(_0x1aaa0a[_0x3e445e(0x148)])??'UNKNOWN';return CliErrors[_0x3e445e(0x150)]('App\x20'+_0x528d50+_0x3e445e(0x154),_0x3e445e(0x158)+_0x29e7fb+_0x3e445e(0x147)+CLI_BIN_NAME+_0x3e445e(0x149));}
1
+ (function(_0x43e12c,_0x1df6c5){const _0x420acf=a4_0x3920,_0x486008=_0x43e12c();while(!![]){try{const _0x34ad90=-parseInt(_0x420acf(0x178))/0x1*(parseInt(_0x420acf(0x173))/0x2)+parseInt(_0x420acf(0x182))/0x3+parseInt(_0x420acf(0x174))/0x4+-parseInt(_0x420acf(0x171))/0x5*(parseInt(_0x420acf(0x17f))/0x6)+parseInt(_0x420acf(0x180))/0x7+parseInt(_0x420acf(0x176))/0x8+-parseInt(_0x420acf(0x17b))/0x9;if(_0x34ad90===_0x1df6c5)break;else _0x486008['push'](_0x486008['shift']());}catch(_0x5c9561){_0x486008['push'](_0x486008['shift']());}}}(a4_0x26e8,0xde941));function a4_0x3920(_0x4c3325,_0x2c28d5){_0x4c3325=_0x4c3325-0x171;const _0x26e87d=a4_0x26e8();let _0x39206a=_0x26e87d[_0x4c3325];return _0x39206a;}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(_0xfd561c){const _0x57312a=a4_0x3920;if(typeof _0xfd561c!==_0x57312a(0x185))return null;const _0x589aea=_0xfd561c[_0x57312a(0x175)]();return _0x589aea?_0x589aea[_0x57312a(0x179)]():null;}export function isRuntimeAccessibleApp(_0x2e4f15){const _0x3460b6=a4_0x3920;return normalizeAppPublishStatus(_0x2e4f15[_0x3460b6(0x177)])===RUNTIME_ACCESSIBLE_APP_STATUS;}export function filterRuntimeAccessibleApps(_0xdbe6d8){const _0x75ff9c=a4_0x3920;return _0xdbe6d8[_0x75ff9c(0x17d)](isRuntimeAccessibleApp);}export function findAppByName(_0x160eac,_0x7e2348){const _0x2ec74c=a4_0x3920;return _0x160eac[_0x2ec74c(0x17e)](_0x4a32b6=>_0x4a32b6[_0x2ec74c(0x17a)]===_0x7e2348);}export function findAppByCode(_0x460b78,_0x142cf5){const _0x1cc963=a4_0x3920,_0x553d45=_0x142cf5[_0x1cc963(0x175)]();if(!_0x553d45)return undefined;return _0x460b78['find'](_0x4bb416=>_0x4bb416[_0x1cc963(0x172)]?.[_0x1cc963(0x175)]()===_0x553d45);}export function runtimeInaccessibleAppError(_0x2ebc13,_0x15a944){const _0xa58728=a4_0x3920,_0x4d7605=normalizeAppPublishStatus(_0x2ebc13['appPublishStatus'])??'UNKNOWN';return CliErrors[_0xa58728(0x181)](_0xa58728(0x184)+_0x15a944+'\x20is\x20not\x20available\x20for\x20runtime\x20AI\x20access.','Current\x20status:\x20'+_0x4d7605+_0xa58728(0x17c)+CLI_BIN_NAME+_0xa58728(0x183));}function a4_0x26e8(){const _0x14430a=['12968gHzGSg','4567440uqracN','trim','13935800srLgjo','appPublishStatus','229XkQotZ','toUpperCase','appName','17380503xheAmz','.\x20Publish\x20the\x20app\x20before\x20using\x20','filter','find','1374228rWAjUV','3948966MWvkOV','validation','3326247tCwEGw','\x20dataset/data/sql/bff\x20commands,\x20or\x20choose\x20a\x20published\x20app.','App\x20','string','5GVjsLd','appCode'];a4_0x26e8=function(){return _0x14430a;};return a4_0x26e8();}
@@ -1 +1 @@
1
- (function(_0x2ee69c,_0x4b89c8){const _0x3c335d=a5_0x333a,_0x197e90=_0x2ee69c();while(!![]){try{const _0x311397=parseInt(_0x3c335d(0x1e5))/0x1*(parseInt(_0x3c335d(0x1e0))/0x2)+parseInt(_0x3c335d(0x1de))/0x3*(-parseInt(_0x3c335d(0x1e7))/0x4)+parseInt(_0x3c335d(0x1e6))/0x5*(-parseInt(_0x3c335d(0x1db))/0x6)+-parseInt(_0x3c335d(0x1e8))/0x7+-parseInt(_0x3c335d(0x1d8))/0x8*(-parseInt(_0x3c335d(0x1da))/0x9)+-parseInt(_0x3c335d(0x1df))/0xa+parseInt(_0x3c335d(0x1d7))/0xb;if(_0x311397===_0x4b89c8)break;else _0x197e90['push'](_0x197e90['shift']());}catch(_0x3d3383){_0x197e90['push'](_0x197e90['shift']());}}}(a5_0x4e54,0x5daf6));import{fileURLToPath}from'url';import{dirname,join}from'path';function a5_0x333a(_0x3c2242,_0x70a899){_0x3c2242=_0x3c2242-0x1d7;const _0x4e5424=a5_0x4e54();let _0x333a3d=_0x4e5424[_0x3c2242];return _0x333a3d;}import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0x3ffc11=a5_0x333a,_0x315bed=join(__dirname,_0x3ffc11(0x1dd)),_0x4244d5=readFileSync(_0x315bed,_0x3ffc11(0x1e4));return JSON[_0x3ffc11(0x1d9)](_0x4244d5);}function a5_0x4e54(){const _0x35f5d1=['4493496XaJxxM','19888286pGkpqH','1208BfxSQx','parse','22329SZQyed','18QVjOZQ','tableData','../../../mock/app-list.json','9ZEfdTj','5822530cScWoE','16qxQlqL','errorCode','data','success','utf-8','6170cQszmz','337975kcVuyC','561756bmcSfH'];a5_0x4e54=function(){return _0x35f5d1;};return a5_0x4e54();}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x42660a=a5_0x333a,_0x47ec4c=getMockAppList();if(!_0x47ec4c[_0x42660a(0x1e3)])throw new Error('Mock\x20API\x20error:\x20'+_0x47ec4c['errorMsg']+'\x20('+_0x47ec4c[_0x42660a(0x1e1)]+')');return _0x47ec4c[_0x42660a(0x1e2)][_0x42660a(0x1dc)];}
1
+ (function(_0x45bb61,_0x428cea){const _0x2183af=a5_0x2b93,_0x805318=_0x45bb61();while(!![]){try{const _0x2583fc=-parseInt(_0x2183af(0x129))/0x1+-parseInt(_0x2183af(0x124))/0x2+-parseInt(_0x2183af(0x128))/0x3*(-parseInt(_0x2183af(0x127))/0x4)+-parseInt(_0x2183af(0x12a))/0x5*(-parseInt(_0x2183af(0x12c))/0x6)+parseInt(_0x2183af(0x126))/0x7+-parseInt(_0x2183af(0x11f))/0x8+-parseInt(_0x2183af(0x12b))/0x9*(-parseInt(_0x2183af(0x125))/0xa);if(_0x2583fc===_0x428cea)break;else _0x805318['push'](_0x805318['shift']());}catch(_0x4a8e20){_0x805318['push'](_0x805318['shift']());}}}(a5_0x42eb,0xd5899));import{fileURLToPath}from'url';import{dirname,join}from'path';import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function a5_0x2b93(_0x2d6177,_0x39d6fd){_0x2d6177=_0x2d6177-0x11e;const _0x42ebff=a5_0x42eb();let _0x2b93f3=_0x42ebff[_0x2d6177];return _0x2b93f3;}function loadMockAppList(){const _0x52deb9=a5_0x2b93,_0x1cdcf2=join(__dirname,'../../../mock/app-list.json'),_0x32b7fc=readFileSync(_0x1cdcf2,_0x52deb9(0x122));return JSON[_0x52deb9(0x12d)](_0x32b7fc);}let _cached=null;function a5_0x42eb(){const _0x14cfe2=['4412127DCgIuJ','1039337LwwuRC','5JEvwjv','3544983NrIHuw','1759986JCgrAv','parse','data','11304664TQXNuG','success','tableData','utf-8','errorCode','1859038gccpUf','30RTFPRX','9176209sAoALu','4bUFeug'];a5_0x42eb=function(){return _0x14cfe2;};return a5_0x42eb();}export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x5e7f2e=a5_0x2b93,_0x5648be=getMockAppList();if(!_0x5648be[_0x5e7f2e(0x120)])throw new Error('Mock\x20API\x20error:\x20'+_0x5648be['errorMsg']+'\x20('+_0x5648be[_0x5e7f2e(0x123)]+')');return _0x5648be[_0x5e7f2e(0x11e)][_0x5e7f2e(0x121)];}
@@ -1 +1 @@
1
- (function(_0x3cfa08,_0x25121f){const _0x4c7eb0=a6_0x2db2,_0x45de3f=_0x3cfa08();while(!![]){try{const _0x500007=-parseInt(_0x4c7eb0(0x174))/0x1*(-parseInt(_0x4c7eb0(0x16c))/0x2)+parseInt(_0x4c7eb0(0x16f))/0x3*(parseInt(_0x4c7eb0(0x176))/0x4)+parseInt(_0x4c7eb0(0x178))/0x5*(parseInt(_0x4c7eb0(0x179))/0x6)+-parseInt(_0x4c7eb0(0x175))/0x7+parseInt(_0x4c7eb0(0x173))/0x8+parseInt(_0x4c7eb0(0x17a))/0x9+-parseInt(_0x4c7eb0(0x177))/0xa;if(_0x500007===_0x25121f)break;else _0x45de3f['push'](_0x45de3f['shift']());}catch(_0x385c4e){_0x45de3f['push'](_0x45de3f['shift']());}}}(a6_0x12dc,0xc961f));import{getMyApps}from'../../core/api-client.js';import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';import{productEnv}from'../../constant/product.js';function a6_0x2db2(_0x52eb91,_0xfc3dbe){_0x52eb91=_0x52eb91-0x16b;const _0x12dc90=a6_0x12dc();let _0x2db2bc=_0x12dc90[_0x52eb91];return _0x2db2bc;}export function shouldUseMockRemoteApps(){const _0x41b742=a6_0x2db2,_0x397640=(productEnv('APP_LIST_SOURCE')||'')[_0x41b742(0x171)]()['toLowerCase']();return _0x397640==='mock';}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x32cc32){const _0x278509=a6_0x2db2,{env:_0x1972d2,accessKey:_0xdf9f92,localOnly:localOnly=![],noCache:noCache=![]}=_0x32cc32,_0x36060e=readCachedAppList(_0x1972d2,_0xdf9f92),_0x5a6dc6=_0xdf9f92?.[_0x278509(0x171)]()?getAppCacheFilePath(_0x1972d2,_0xdf9f92):null;if(localOnly)return{'items':_0x36060e?.[_0x278509(0x16e)]??[],'source':_0x278509(0x16d),'fetchedAt':_0x36060e?.[_0x278509(0x170)]??null,'cachePath':_0x5a6dc6};try{const _0x5894ab=await getRemoteAppItems(),_0x4c5014=shouldUseMockRemoteApps()?_0x278509(0x16b):'remote',_0x429639=new Date()[_0x278509(0x172)](),_0x4e6fd6=_0xdf9f92?.['trim']()?writeCachedAppList(_0x1972d2,_0xdf9f92,{'env':_0x1972d2,'fetchedAt':_0x429639,'source':_0x4c5014,'items':_0x5894ab}):null;return{'items':_0x5894ab,'source':_0x4c5014,'fetchedAt':_0x429639,'cachePath':_0x4e6fd6};}catch(_0x1c56db){if(!noCache&&_0x36060e)return{'items':_0x36060e[_0x278509(0x16e)],'source':_0x278509(0x16d),'fetchedAt':_0x36060e['fetchedAt'],'cachePath':_0x5a6dc6};throw _0x1c56db;}}function a6_0x12dc(){const _0x28a7be=['mock','975878hqRkOo','cache','items','2877207NwwDVP','fetchedAt','trim','toISOString','10375848bLhKEG','3BBrVtc','4657296oaBubS','4jXbSlu','51699160ZyOeCN','3881165hIOHkY','12MRlMah','12489966GzOKHq'];a6_0x12dc=function(){return _0x28a7be;};return a6_0x12dc();}
1
+ (function(_0x299491,_0x23eb10){const _0x3bb34d=a6_0xbe7e,_0x1ea7ce=_0x299491();while(!![]){try{const _0x4fc51a=-parseInt(_0x3bb34d(0x17d))/0x1*(-parseInt(_0x3bb34d(0x185))/0x2)+-parseInt(_0x3bb34d(0x18d))/0x3*(-parseInt(_0x3bb34d(0x183))/0x4)+parseInt(_0x3bb34d(0x17f))/0x5*(parseInt(_0x3bb34d(0x180))/0x6)+parseInt(_0x3bb34d(0x17b))/0x7+parseInt(_0x3bb34d(0x17a))/0x8*(parseInt(_0x3bb34d(0x17c))/0x9)+-parseInt(_0x3bb34d(0x17e))/0xa*(-parseInt(_0x3bb34d(0x18b))/0xb)+-parseInt(_0x3bb34d(0x18a))/0xc;if(_0x4fc51a===_0x23eb10)break;else _0x1ea7ce['push'](_0x1ea7ce['shift']());}catch(_0x3179ca){_0x1ea7ce['push'](_0x1ea7ce['shift']());}}}(a6_0x4432,0x6c5ca));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 _0x1a7edd=a6_0xbe7e,_0x307641=(productEnv(_0x1a7edd(0x184))||'')['trim']()[_0x1a7edd(0x189)]();return _0x307641===_0x1a7edd(0x187);}function a6_0xbe7e(_0x4aa6ad,_0x1f7458){_0x4aa6ad=_0x4aa6ad-0x17a;const _0x443238=a6_0x4432();let _0xbe7e30=_0x443238[_0x4aa6ad];return _0xbe7e30;}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}function a6_0x4432(){const _0x429243=['209EgdBoN','items','3iVtmkn','8YKZDVN','6016752KnaAmh','4070070IFJmPk','13139CRcuYP','400270GKbXCH','5IqNaCL','2140566XXPQuP','fetchedAt','trim','115868qJsQnV','APP_LIST_SOURCE','118ezmtif','remote','mock','cache','toLowerCase','33472296pFTtUL'];a6_0x4432=function(){return _0x429243;};return a6_0x4432();}export async function getRemoteAppList(_0x469ef8){const _0x526643=a6_0xbe7e,{env:_0x1eed49,accessKey:_0x280706,localOnly:localOnly=![],noCache:noCache=![]}=_0x469ef8,_0x263910=readCachedAppList(_0x1eed49,_0x280706),_0x2e45f9=_0x280706?.[_0x526643(0x182)]()?getAppCacheFilePath(_0x1eed49,_0x280706):null;if(localOnly)return{'items':_0x263910?.[_0x526643(0x18c)]??[],'source':_0x526643(0x188),'fetchedAt':_0x263910?.[_0x526643(0x181)]??null,'cachePath':_0x2e45f9};try{const _0x1074ad=await getRemoteAppItems(),_0x5a9a93=shouldUseMockRemoteApps()?_0x526643(0x187):_0x526643(0x186),_0x45ed94=new Date()['toISOString'](),_0x3511f6=_0x280706?.[_0x526643(0x182)]()?writeCachedAppList(_0x1eed49,_0x280706,{'env':_0x1eed49,'fetchedAt':_0x45ed94,'source':_0x5a9a93,'items':_0x1074ad}):null;return{'items':_0x1074ad,'source':_0x5a9a93,'fetchedAt':_0x45ed94,'cachePath':_0x3511f6};}catch(_0x143c74){if(!noCache&&_0x263910)return{'items':_0x263910[_0x526643(0x18c)],'source':_0x526643(0x188),'fetchedAt':_0x263910['fetchedAt'],'cachePath':_0x2e45f9};throw _0x143c74;}}
@@ -1 +1 @@
1
- (function(_0x2bb205,_0x5a409d){const _0x1299f7=a7_0x5eff,_0x16ef39=_0x2bb205();while(!![]){try{const _0x5400cb=parseInt(_0x1299f7(0xdf))/0x1*(parseInt(_0x1299f7(0xe7))/0x2)+parseInt(_0x1299f7(0xe3))/0x3+parseInt(_0x1299f7(0xe5))/0x4+-parseInt(_0x1299f7(0xe8))/0x5*(-parseInt(_0x1299f7(0xeb))/0x6)+-parseInt(_0x1299f7(0xd8))/0x7+-parseInt(_0x1299f7(0xe1))/0x8*(parseInt(_0x1299f7(0xea))/0x9)+-parseInt(_0x1299f7(0xe9))/0xa*(parseInt(_0x1299f7(0xdb))/0xb);if(_0x5400cb===_0x5a409d)break;else _0x16ef39['push'](_0x16ef39['shift']());}catch(_0x2cfc04){_0x16ef39['push'](_0x16ef39['shift']());}}}(a7_0x1219,0xbdafb));import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';function a7_0x5eff(_0x2b986d,_0x12f372){_0x2b986d=_0x2b986d-0xd8;const _0x1219ef=a7_0x1219();let _0x5eff7c=_0x1219ef[_0x2b986d];return _0x5eff7c;}export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x391272,_0x3f46a2){const _0x1f434d=a7_0x5eff;if(!_0x3f46a2)return;const _0x58a90a=!!(_0x3f46a2['currentApp']??_0x3f46a2[_0x1f434d(0xe6)]);for(const _0x2255ac of _0x391272){_0x2255ac['isCurrent']=![];}const _0x56546d=_0x3f46a2['appCode']!=null?String(_0x3f46a2[_0x1f434d(0xdd)])[_0x1f434d(0xe2)]():'';if(_0x58a90a){const _0x4d415f=_0x3f46a2[_0x1f434d(0xed)]??_0x3f46a2[_0x1f434d(0xe6)];if(_0x4d415f){const _0x12e916=_0x391272[_0x1f434d(0xdc)](_0x4094cb=>_0x4094cb['named']===!![]&&_0x4094cb['name']===_0x4d415f&&_0x4094cb[_0x1f434d(0xec)]===_0x1f434d(0xe0)),_0x1bbc02=_0x12e916??_0x391272[_0x1f434d(0xdc)](_0x1f95fe=>_0x1f95fe[_0x1f434d(0xe4)]===!![]&&_0x1f95fe[_0x1f434d(0xd9)]===_0x4d415f);_0x1bbc02&&(_0x1bbc02['isCurrent']=!![]);}return;}if(!_0x56546d)return;for(const _0x2e7f8a of _0x391272){String(_0x2e7f8a['appcode']??'')['trim']()===_0x56546d&&(_0x2e7f8a[_0x1f434d(0xde)]=!![]);}}function a7_0x1219(){const _0x3c7db6=['5715283ssQSjp','name','project','2145913KPHjES','find','appCode','isCurrent','616079EBvkxG','local','2332536rZyBNQ','trim','3119232kSQQoQ','named','1289300NCMIGf','defaultApp','4aGtZUG','2095xkuHUn','50kqNFAX','27ZzaYAs','12162ZSAewZ','definedIn','currentApp'];a7_0x1219=function(){return _0x3c7db6;};return a7_0x1219();}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x254cf6){const _0x53c80f=a7_0x5eff;return formatScopeLabel(_0x254cf6['global']?'global':_0x53c80f(0xda));}
1
+ (function(_0x2207b2,_0x3aed83){const _0x2a850d=a7_0x25ec,_0x575555=_0x2207b2();while(!![]){try{const _0x1aed74=parseInt(_0x2a850d(0xd4))/0x1*(parseInt(_0x2a850d(0xcb))/0x2)+parseInt(_0x2a850d(0xcd))/0x3+parseInt(_0x2a850d(0xd2))/0x4*(-parseInt(_0x2a850d(0xd6))/0x5)+-parseInt(_0x2a850d(0xdd))/0x6*(parseInt(_0x2a850d(0xc7))/0x7)+-parseInt(_0x2a850d(0xd0))/0x8*(parseInt(_0x2a850d(0xd9))/0x9)+parseInt(_0x2a850d(0xd1))/0xa*(parseInt(_0x2a850d(0xcc))/0xb)+-parseInt(_0x2a850d(0xc6))/0xc;if(_0x1aed74===_0x3aed83)break;else _0x575555['push'](_0x575555['shift']());}catch(_0x25f829){_0x575555['push'](_0x575555['shift']());}}}(a7_0x4aff,0xdb985));function a7_0x4aff(){const _0x395485=['1aRreyz','isCurrent','110xMdcyL','currentApp','appcode','1593PQBVXc','trim','find','defaultApp','121554bVGGci','5082948jCyrhl','350HNOipF','global','named','definedIn','3477356yVVOdp','11zYvGBB','2694567kTgyZw','appCode','name','64032zFNsXM','13979590RyVzxH','51296ifRvcn','project'];a7_0x4aff=function(){return _0x395485;};return a7_0x4aff();}function a7_0x25ec(_0x1d4bdc,_0x3a5807){_0x1d4bdc=_0x1d4bdc-0xc6;const _0x4aff14=a7_0x4aff();let _0x25ecca=_0x4aff14[_0x1d4bdc];return _0x25ecca;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x3912f0,_0xa3e102){const _0x2ae211=a7_0x25ec;if(!_0xa3e102)return;const _0x192a5a=!!(_0xa3e102[_0x2ae211(0xd7)]??_0xa3e102[_0x2ae211(0xdc)]);for(const _0x2c3e16 of _0x3912f0){_0x2c3e16[_0x2ae211(0xd5)]=![];}const _0x4e68af=_0xa3e102[_0x2ae211(0xce)]!=null?String(_0xa3e102[_0x2ae211(0xce)])[_0x2ae211(0xda)]():'';if(_0x192a5a){const _0x37b08c=_0xa3e102['currentApp']??_0xa3e102[_0x2ae211(0xdc)];if(_0x37b08c){const _0x36ab86=_0x3912f0['find'](_0xee6f03=>_0xee6f03[_0x2ae211(0xc9)]===!![]&&_0xee6f03[_0x2ae211(0xcf)]===_0x37b08c&&_0xee6f03[_0x2ae211(0xca)]==='local'),_0x3c8b52=_0x36ab86??_0x3912f0[_0x2ae211(0xdb)](_0x466d82=>_0x466d82[_0x2ae211(0xc9)]===!![]&&_0x466d82['name']===_0x37b08c);_0x3c8b52&&(_0x3c8b52['isCurrent']=!![]);}return;}if(!_0x4e68af)return;for(const _0x4d5283 of _0x3912f0){String(_0x4d5283[_0x2ae211(0xd8)]??'')[_0x2ae211(0xda)]()===_0x4e68af&&(_0x4d5283[_0x2ae211(0xd5)]=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x50c62c){const _0x3a52c2=a7_0x25ec;return formatScopeLabel(_0x50c62c[_0x3a52c2(0xc8)]?_0x3a52c2(0xc8):_0x3a52c2(0xd3));}
@@ -1 +1 @@
1
- const a8_0x39bccb=a8_0x2559;(function(_0x1f38f8,_0x419a03){const _0x1517a6=a8_0x2559,_0x5dddc8=_0x1f38f8();while(!![]){try{const _0x1d1d92=-parseInt(_0x1517a6(0xc4))/0x1*(parseInt(_0x1517a6(0x10b))/0x2)+parseInt(_0x1517a6(0x10a))/0x3*(parseInt(_0x1517a6(0x107))/0x4)+-parseInt(_0x1517a6(0xc9))/0x5*(parseInt(_0x1517a6(0xd5))/0x6)+-parseInt(_0x1517a6(0xe4))/0x7+parseInt(_0x1517a6(0xc0))/0x8+-parseInt(_0x1517a6(0xbc))/0x9+-parseInt(_0x1517a6(0x100))/0xa*(-parseInt(_0x1517a6(0xed))/0xb);if(_0x1d1d92===_0x419a03)break;else _0x5dddc8['push'](_0x5dddc8['shift']());}catch(_0x2dd3a6){_0x5dddc8['push'](_0x5dddc8['shift']());}}}(a8_0x20bd,0x3a7a0));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_0x39bccb(0xd8),ARTIFACT_SOURCE_AGENT='AGENT',ALLOWED_REACT_MODULE_IMPORTS=[a8_0x39bccb(0xf1),a8_0x39bccb(0xbd),a8_0x39bccb(0xbf),a8_0x39bccb(0x101),a8_0x39bccb(0xc6),a8_0x39bccb(0xe7)];export const ALLOWED_REACT_MODULE_IMPORTS_TEXT=ALLOWED_REACT_MODULE_IMPORTS[a8_0x39bccb(0xe3)](',\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':a8_0x39bccb(0xd7),'required':!![],'description':a8_0x39bccb(0xc5)},ARTIFACT_NAME_FLAG={'name':'name','type':a8_0x39bccb(0xd7),'description':a8_0x39bccb(0x103)},METADATA_FLAG={'name':'metadata','type':'string','description':a8_0x39bccb(0xdd)};function isPlainObject(_0x283ec9){const _0x4fbe13=a8_0x39bccb;return typeof _0x283ec9===_0x4fbe13(0x105)&&_0x283ec9!==null&&!Array[_0x4fbe13(0xea)](_0x283ec9);}function readSourceFile(_0x2d5268){const _0x2b001a=a8_0x39bccb;if(!_0x2d5268)throw CliErrors['validation']('File\x20path\x20is\x20required.');if(!existsSync(_0x2d5268))throw CliErrors['validation'](_0x2b001a(0xc7)+_0x2d5268);if(!statSync(_0x2d5268)[_0x2b001a(0xfc)]())throw CliErrors[_0x2b001a(0xd9)](_0x2b001a(0xd1)+_0x2d5268);const _0x5b217f=readFileSync(_0x2d5268,_0x2b001a(0xf8));return validateReactModuleSource(_0x5b217f),_0x5b217f;}function parseMetadata(_0x5666b4){const _0x258708=a8_0x39bccb;if(!_0x5666b4)return undefined;let _0x5678fc;try{_0x5678fc=JSON[_0x258708(0xd3)](_0x5666b4);}catch{throw CliErrors[_0x258708(0xd9)]('Invalid\x20JSON\x20for\x20--metadata:\x20'+_0x5666b4);}if(!isPlainObject(_0x5678fc))throw CliErrors[_0x258708(0xd9)]('--metadata\x20must\x20be\x20a\x20JSON\x20object.');const _0x22527f={..._0x5678fc};return delete _0x22527f[_0x258708(0x109)],_0x22527f;}function getPackageName(_0x2332e1){const _0x5ed445=a8_0x39bccb;if(_0x2332e1[_0x5ed445(0xbb)]('@')){const [_0x56500a,_0x10142f]=_0x2332e1[_0x5ed445(0xc8)]('/');return _0x56500a&&_0x10142f?_0x56500a+'/'+_0x10142f:_0x2332e1;}return _0x2332e1[_0x5ed445(0xc8)]('/')[0x0]||_0x2332e1;}function validateAllowedImports(_0x5318f0){const _0x36fdf8=a8_0x39bccb,_0x5cdbcd=new Set();for(const _0x1e73cf of IMPORT_SOURCE_PATTERNS){_0x1e73cf[_0x36fdf8(0xe2)]=0x0;let _0x3f5718;while((_0x3f5718=_0x1e73cf[_0x36fdf8(0xfe)](_0x5318f0))!==null){const _0x42dc44=_0x3f5718[0x1]?.[_0x36fdf8(0xc1)]();_0x42dc44&&_0x5cdbcd[_0x36fdf8(0x104)](_0x42dc44);}}const _0x386bfb=[..._0x5cdbcd][_0x36fdf8(0xbe)](getPackageName)[_0x36fdf8(0xef)](_0x4253f7=>!ALLOWED_REACT_MODULE_IMPORTS[_0x36fdf8(0xf2)](_0x4253f7));if(_0x386bfb[_0x36fdf8(0xe8)]>0x0)throw CliErrors[_0x36fdf8(0xd9)](_0x36fdf8(0xec)+ALLOWED_REACT_MODULE_IMPORTS_TEXT+_0x36fdf8(0xe0)+[...new Set(_0x386bfb)][_0x36fdf8(0xe3)](',\x20'));}function a8_0x2559(_0x5a1498,_0x433f2e){_0x5a1498=_0x5a1498-0xbb;const _0x20bd0c=a8_0x20bd();let _0x255943=_0x20bd0c[_0x5a1498];return _0x255943;}function a8_0x20bd(){const _0xf91e3c=['exec','flag','5128130VCigds','dayjs','POST','Artifact\x20display\x20name','add','object','updateTime','464oShwFF','Optional\x20favorite-state\x20filter','compiledContent','9021tVfROj','6spsFtM','Preview:\x20create\x20react_module\x20Artifact','startsWith','3177639swgHKR','react-dom','map','lodash','2986024aZcKOM','trim','some','artifact','17606SMmAwT','Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file','antd','File\x20not\x20found:\x20','split','20ysuyLB','Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','deleted','Updated\x20Artifact\x20','list','body','/client/artifact/create','favorite','File\x20is\x20not\x20a\x20regular\x20file:\x20','artifactType','parse','Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','404346fJbUtc','content','string','react_module','validation','/update','List\x20current-app\x20react_module\x20Artifacts','Artifact\x20source\x20file\x20is\x20blank.','Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped','Created\x20Artifact\x20','write','.\x20Unsupported:\x20','create','lastIndex','join','2239335lVLViX','boolean','Artifact\x20ID','@ant-design/icons','length','build','isArray','metadata','react_module\x20imports\x20are\x20limited\x20to:\x20','11MdJksZ','source','filter','appCode','react','includes','/client/artifact/','bool','name','Show\x20one\x20Artifact\x20by\x20id','verbose','utf8','num','file','createTime','isFile','str'];a8_0x20bd=function(){return _0xf91e3c;};return a8_0x20bd();}export function validateReactModuleSource(_0x120ea3){const _0x117f72=a8_0x39bccb;if(!_0x120ea3[_0x117f72(0xc1)]())throw CliErrors[_0x117f72(0xd9)](_0x117f72(0xdc));if(PAGE_LEVEL_PATTERNS[_0x117f72(0xc2)](_0x179c1d=>_0x179c1d['test'](_0x120ea3)))throw CliErrors[_0x117f72(0xd9)]('react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.');validateAllowedImports(_0x120ea3);}function buildArtifactInput(_0x1edf75){const _0x11d954=a8_0x39bccb,_0x1317c4=readSourceFile(_0x1edf75[_0x11d954(0xfd)](_0x11d954(0xfa))),_0x398d67=_0x1edf75[_0x11d954(0xfd)]('name')['trim'](),_0x1354b6=parseMetadata(_0x1edf75[_0x11d954(0xfd)](_0x11d954(0xeb)));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x398d67?{'name':_0x398d67}:{},'content':_0x1317c4,..._0x1354b6?{'metadata':_0x1354b6}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0xc49344){const _0xb8b3e3=a8_0x39bccb;return{'id':_0xc49344['id'],'name':_0xc49344[_0xb8b3e3(0xf5)],'artifactType':_0xc49344[_0xb8b3e3(0xd2)],'source':_0xc49344[_0xb8b3e3(0xee)],'favorite':_0xc49344[_0xb8b3e3(0xd0)],'deleted':_0xc49344['deleted'],'createTime':_0xc49344[_0xb8b3e3(0xfb)],'updateTime':_0xc49344[_0xb8b3e3(0x106)]};}function detailArtifact(_0x298988){const _0x36bd7e=a8_0x39bccb;return{'id':_0x298988['id'],'appCode':_0x298988[_0x36bd7e(0xf0)],'name':_0x298988[_0x36bd7e(0xf5)],'artifactType':_0x298988[_0x36bd7e(0xd2)],'source':_0x298988[_0x36bd7e(0xee)],'favorite':_0x298988[_0x36bd7e(0xd0)],'deleted':_0x298988[_0x36bd7e(0xcb)],'content':_0x298988[_0x36bd7e(0xd6)]??'','compiledContent':_0x298988[_0x36bd7e(0x109)],'metadata':_0x298988[_0x36bd7e(0xeb)]??{},'createTime':_0x298988[_0x36bd7e(0xfb)],'updateTime':_0x298988[_0x36bd7e(0x106)]};}function readFavoriteFlag(_0x151546){const _0x5a4399=a8_0x39bccb,_0x1f6d18=_0x151546[_0x5a4399(0xff)](_0x5a4399(0xd0));return _0x1f6d18===undefined||_0x1f6d18===null||_0x1f6d18===''?undefined:_0x151546[_0x5a4399(0xf4)]('favorite');}const artifactList={'service':a8_0x39bccb(0xc3),'command':a8_0x39bccb(0xcd),'description':a8_0x39bccb(0xdb),'risk':'read','flags':[{'name':a8_0x39bccb(0xee),'type':a8_0x39bccb(0xd7),'description':'Optional\x20source\x20filter,\x20for\x20example\x20AGENT'},{'name':a8_0x39bccb(0xd0),'type':a8_0x39bccb(0xe5),'description':a8_0x39bccb(0x108)},VERBOSE_FLAG],async 'execute'(_0x1b24f5){const _0x5c66e8=a8_0x39bccb,_0x2db9b2=await listRuntimeArtifacts(_0x1b24f5[_0x5c66e8(0xf0)],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x1b24f5[_0x5c66e8(0xfd)]('source')?{'source':_0x1b24f5[_0x5c66e8(0xfd)]('source')}:{},...readFavoriteFlag(_0x1b24f5)!==undefined?{'favorite':readFavoriteFlag(_0x1b24f5)}:{}});return{'ok':!![],'data':{'total':_0x2db9b2[_0x5c66e8(0xe8)],'items':_0x1b24f5[_0x5c66e8(0xf4)](_0x5c66e8(0xf7))?_0x2db9b2:_0x2db9b2[_0x5c66e8(0xbe)](summarizeArtifact)}};}},artifactDetail={'service':a8_0x39bccb(0xc3),'command':'detail','description':a8_0x39bccb(0xf6),'risk':'read','flags':[{...ID_FLAG,'description':a8_0x39bccb(0xe6)}],async 'execute'(_0x1b0b3f){const _0x3e9292=a8_0x39bccb,_0x4f9dbe=await getRuntimeArtifact(_0x1b0b3f[_0x3e9292(0xf9)]('id'),_0x1b0b3f[_0x3e9292(0xf0)]);return{'ok':!![],'data':detailArtifact(_0x4f9dbe)};}},artifactCreate={'service':a8_0x39bccb(0xc3),'command':a8_0x39bccb(0xe1),'description':a8_0x39bccb(0xca),'risk':a8_0x39bccb(0xdf),'flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x385f98){const _0x4fda68=a8_0x39bccb,_0x465ef8=buildArtifactInput(_0x385f98),_0x12bd6a=await createRuntimeArtifact(_0x385f98['appCode'],_0x465ef8);return{'ok':!![],'data':detailArtifact(_0x12bd6a),'message':_0x4fda68(0xde)+_0x12bd6a['id']+(_0x12bd6a['name']?'\x20('+_0x12bd6a[_0x4fda68(0xf5)]+')':'')};},async 'dryRun'(_0x57eec9){const _0x4f8b06=a8_0x39bccb,_0xb01ced=buildArtifactInput(_0x57eec9);return dryRun('POST',_0x4f8b06(0xcf))[_0x4f8b06(0xce)]({'appCode':_0x57eec9[_0x4f8b06(0xf0)],..._0xb01ced})['description'](_0x4f8b06(0x10c))[_0x4f8b06(0xe9)]();}},artifactUpdate={'service':a8_0x39bccb(0xc3),'command':'update','description':a8_0x39bccb(0xd4),'risk':a8_0x39bccb(0xdf),'flags':[{...ID_FLAG,'description':a8_0x39bccb(0xe6)},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x140712){const _0xb21654=a8_0x39bccb,_0x14d0e2=_0x140712['num']('id'),_0x1adda3=buildArtifactInput(_0x140712),_0x547793=await updateRuntimeArtifact(_0x14d0e2,_0x140712[_0xb21654(0xf0)],_0x1adda3);return{'ok':!![],'data':detailArtifact(_0x547793),'message':_0xb21654(0xcc)+_0x547793['id']+(_0x547793[_0xb21654(0xf5)]?'\x20('+_0x547793[_0xb21654(0xf5)]+')':'')};},async 'dryRun'(_0x396156){const _0xb5507c=a8_0x39bccb,_0x3dc200=_0x396156[_0xb5507c(0xf9)]('id'),_0x5ece7d=buildArtifactInput(_0x396156);return dryRun(_0xb5507c(0x102),_0xb5507c(0xf3)+_0x3dc200+_0xb5507c(0xda))[_0xb5507c(0xce)]({'appCode':_0x396156[_0xb5507c(0xf0)],..._0x5ece7d})['description']('Preview:\x20update\x20react_module\x20Artifact\x20'+_0x3dc200)['build']();}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
1
+ const a8_0x30aebe=a8_0xc106;(function(_0x31e118,_0x5cafbb){const _0x5cc2dd=a8_0xc106,_0x25bfa8=_0x31e118();while(!![]){try{const _0x1d94a1=parseInt(_0x5cc2dd(0x1a2))/0x1*(-parseInt(_0x5cc2dd(0x1c0))/0x2)+parseInt(_0x5cc2dd(0x1a5))/0x3+parseInt(_0x5cc2dd(0x1b5))/0x4*(parseInt(_0x5cc2dd(0x199))/0x5)+parseInt(_0x5cc2dd(0x1c9))/0x6*(parseInt(_0x5cc2dd(0x1a0))/0x7)+-parseInt(_0x5cc2dd(0x195))/0x8+-parseInt(_0x5cc2dd(0x1b3))/0x9+-parseInt(_0x5cc2dd(0x1b4))/0xa;if(_0x1d94a1===_0x5cafbb)break;else _0x25bfa8['push'](_0x25bfa8['shift']());}catch(_0x42cd53){_0x25bfa8['push'](_0x25bfa8['shift']());}}}(a8_0x5c2f,0x20e3d));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';function a8_0xc106(_0x924251,_0x10b562){_0x924251=_0x924251-0x18f;const _0x5c2fdd=a8_0x5c2f();let _0xc106f4=_0x5c2fdd[_0x924251];return _0xc106f4;}import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const ARTIFACT_TYPE_REACT_MODULE=a8_0x30aebe(0x1a9),ARTIFACT_SOURCE_AGENT=a8_0x30aebe(0x1d8),ALLOWED_REACT_MODULE_IMPORTS=[a8_0x30aebe(0x1a8),'react-dom',a8_0x30aebe(0x196),a8_0x30aebe(0x1af),a8_0x30aebe(0x192),a8_0x30aebe(0x1db)];export const ALLOWED_REACT_MODULE_IMPORTS_TEXT=ALLOWED_REACT_MODULE_IMPORTS['join'](',\x20');const IMPORT_SOURCE_PATTERNS=[/\bimport\s+(?:type\s+)?(?:[^'";]*?\s+from\s+)?["']([^"']+)["']/g,/\bexport\s+(?:type\s+)?[^'";]*?\s+from\s+["']([^"']+)["']/g,/\bimport\s*\(\s*["']([^"']+)["']\s*\)/g,/\brequire\s*\(\s*["']([^"']+)["']\s*\)/g],PAGE_LEVEL_PATTERNS=[/<!doctype\s+html/i,/<\s*html\b/i,/\bcreateRoot\s*\(/,/\bReactDOM\s*\.\s*render\s*\(/,/\bReactDOM\s*\.\s*createRoot\s*\(/],FILE_FLAG={'name':a8_0x30aebe(0x1c1),'type':'string','required':!![],'description':a8_0x30aebe(0x1dc)},ARTIFACT_NAME_FLAG={'name':'name','type':a8_0x30aebe(0x1c4),'description':'Artifact\x20display\x20name'},METADATA_FLAG={'name':a8_0x30aebe(0x1d7),'type':a8_0x30aebe(0x1c4),'description':a8_0x30aebe(0x1bd)};function a8_0x5c2f(){const _0x3021fd=['deleted','source','1642376fbCpHF','lodash','includes','Artifact\x20ID','1127305kuwhhs','artifactType','Optional\x20favorite-state\x20filter','--metadata\x20must\x20be\x20a\x20JSON\x20object.','/client/artifact/','favorite','react_module\x20imports\x20are\x20limited\x20to:\x20','23548VAIIGy','create','68usZNiP','compiledContent','write','650844ZMmqkD','str','content','react','react_module','trim','flag','num','react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.','appCode','dayjs','body','test','bool','1070109icZvJG','1445980KRPrpf','4DiuYZn','add','File\x20is\x20not\x20a\x20regular\x20file:\x20','Preview:\x20create\x20react_module\x20Artifact','length','/update','exec','name','Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped','build','File\x20not\x20found:\x20','1396TBHINJ','file','update','validation','string','map','join','Show\x20one\x20Artifact\x20by\x20id','POST','372AcnDxZ','Artifact\x20source\x20file\x20is\x20blank.','verbose','some','object','boolean','updateTime','read','parse','detail','File\x20path\x20is\x20required.','Optional\x20source\x20filter,\x20for\x20example\x20AGENT','.\x20Unsupported:\x20','Created\x20Artifact\x20','metadata','AGENT','Updated\x20Artifact\x20','lastIndex','@ant-design/icons','Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file','description','/client/artifact/create','artifact','antd'];a8_0x5c2f=function(){return _0x3021fd;};return a8_0x5c2f();}function isPlainObject(_0x2f445d){const _0x1843f1=a8_0x30aebe;return typeof _0x2f445d===_0x1843f1(0x1cd)&&_0x2f445d!==null&&!Array['isArray'](_0x2f445d);}function readSourceFile(_0x5b9e68){const _0x135e39=a8_0x30aebe;if(!_0x5b9e68)throw CliErrors[_0x135e39(0x1c3)](_0x135e39(0x1d3));if(!existsSync(_0x5b9e68))throw CliErrors[_0x135e39(0x1c3)](_0x135e39(0x1bf)+_0x5b9e68);if(!statSync(_0x5b9e68)['isFile']())throw CliErrors[_0x135e39(0x1c3)](_0x135e39(0x1b7)+_0x5b9e68);const _0x30cfb3=readFileSync(_0x5b9e68,'utf8');return validateReactModuleSource(_0x30cfb3),_0x30cfb3;}function parseMetadata(_0x5d2ca8){const _0x1b630a=a8_0x30aebe;if(!_0x5d2ca8)return undefined;let _0x2e5b0d;try{_0x2e5b0d=JSON[_0x1b630a(0x1d1)](_0x5d2ca8);}catch{throw CliErrors[_0x1b630a(0x1c3)]('Invalid\x20JSON\x20for\x20--metadata:\x20'+_0x5d2ca8);}if(!isPlainObject(_0x2e5b0d))throw CliErrors[_0x1b630a(0x1c3)](_0x1b630a(0x19c));const _0x36f59f={..._0x2e5b0d};return delete _0x36f59f[_0x1b630a(0x1a3)],_0x36f59f;}function getPackageName(_0x44cc1b){if(_0x44cc1b['startsWith']('@')){const [_0x21b1ce,_0x1641b6]=_0x44cc1b['split']('/');return _0x21b1ce&&_0x1641b6?_0x21b1ce+'/'+_0x1641b6:_0x44cc1b;}return _0x44cc1b['split']('/')[0x0]||_0x44cc1b;}function validateAllowedImports(_0x3f56d5){const _0x24c8a8=a8_0x30aebe,_0x31a801=new Set();for(const _0x28ab5c of IMPORT_SOURCE_PATTERNS){_0x28ab5c[_0x24c8a8(0x1da)]=0x0;let _0x239d75;while((_0x239d75=_0x28ab5c[_0x24c8a8(0x1bb)](_0x3f56d5))!==null){const _0x43e9d0=_0x239d75[0x1]?.[_0x24c8a8(0x1aa)]();_0x43e9d0&&_0x31a801[_0x24c8a8(0x1b6)](_0x43e9d0);}}const _0x368600=[..._0x31a801][_0x24c8a8(0x1c5)](getPackageName)['filter'](_0x20d41e=>!ALLOWED_REACT_MODULE_IMPORTS[_0x24c8a8(0x197)](_0x20d41e));if(_0x368600[_0x24c8a8(0x1b9)]>0x0)throw CliErrors[_0x24c8a8(0x1c3)](_0x24c8a8(0x19f)+ALLOWED_REACT_MODULE_IMPORTS_TEXT+_0x24c8a8(0x1d5)+[...new Set(_0x368600)][_0x24c8a8(0x1c6)](',\x20'));}export function validateReactModuleSource(_0x335e26){const _0x442b16=a8_0x30aebe;if(!_0x335e26['trim']())throw CliErrors[_0x442b16(0x1c3)](_0x442b16(0x1ca));if(PAGE_LEVEL_PATTERNS[_0x442b16(0x1cc)](_0x427b16=>_0x427b16[_0x442b16(0x1b1)](_0x335e26)))throw CliErrors['validation'](_0x442b16(0x1ad));validateAllowedImports(_0x335e26);}function buildArtifactInput(_0x32f242){const _0x3f1883=a8_0x30aebe,_0x2e726b=readSourceFile(_0x32f242['str'](_0x3f1883(0x1c1))),_0x501098=_0x32f242[_0x3f1883(0x1a6)]('name')['trim'](),_0x5bbf8b=parseMetadata(_0x32f242[_0x3f1883(0x1a6)]('metadata'));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x501098?{'name':_0x501098}:{},'content':_0x2e726b,..._0x5bbf8b?{'metadata':_0x5bbf8b}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0x2d6e6a){const _0x4cb5d7=a8_0x30aebe;return{'id':_0x2d6e6a['id'],'name':_0x2d6e6a['name'],'artifactType':_0x2d6e6a[_0x4cb5d7(0x19a)],'source':_0x2d6e6a[_0x4cb5d7(0x194)],'favorite':_0x2d6e6a[_0x4cb5d7(0x19e)],'deleted':_0x2d6e6a[_0x4cb5d7(0x193)],'createTime':_0x2d6e6a['createTime'],'updateTime':_0x2d6e6a['updateTime']};}function detailArtifact(_0x32e5f2){const _0x3aa6b7=a8_0x30aebe;return{'id':_0x32e5f2['id'],'appCode':_0x32e5f2[_0x3aa6b7(0x1ae)],'name':_0x32e5f2[_0x3aa6b7(0x1bc)],'artifactType':_0x32e5f2[_0x3aa6b7(0x19a)],'source':_0x32e5f2[_0x3aa6b7(0x194)],'favorite':_0x32e5f2['favorite'],'deleted':_0x32e5f2[_0x3aa6b7(0x193)],'content':_0x32e5f2[_0x3aa6b7(0x1a7)]??'','compiledContent':_0x32e5f2[_0x3aa6b7(0x1a3)],'metadata':_0x32e5f2['metadata']??{},'createTime':_0x32e5f2['createTime'],'updateTime':_0x32e5f2[_0x3aa6b7(0x1cf)]};}function readFavoriteFlag(_0x5438fc){const _0x3dc0f4=a8_0x30aebe,_0x5c5cb7=_0x5438fc[_0x3dc0f4(0x1ab)]('favorite');return _0x5c5cb7===undefined||_0x5c5cb7===null||_0x5c5cb7===''?undefined:_0x5438fc[_0x3dc0f4(0x1b2)](_0x3dc0f4(0x19e));}const artifactList={'service':a8_0x30aebe(0x191),'command':'list','description':'List\x20current-app\x20react_module\x20Artifacts','risk':a8_0x30aebe(0x1d0),'flags':[{'name':a8_0x30aebe(0x194),'type':a8_0x30aebe(0x1c4),'description':a8_0x30aebe(0x1d4)},{'name':'favorite','type':a8_0x30aebe(0x1ce),'description':a8_0x30aebe(0x19b)},VERBOSE_FLAG],async 'execute'(_0x243936){const _0x31b1b0=a8_0x30aebe,_0x5164b3=await listRuntimeArtifacts(_0x243936[_0x31b1b0(0x1ae)],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x243936[_0x31b1b0(0x1a6)](_0x31b1b0(0x194))?{'source':_0x243936[_0x31b1b0(0x1a6)](_0x31b1b0(0x194))}:{},...readFavoriteFlag(_0x243936)!==undefined?{'favorite':readFavoriteFlag(_0x243936)}:{}});return{'ok':!![],'data':{'total':_0x5164b3[_0x31b1b0(0x1b9)],'items':_0x243936[_0x31b1b0(0x1b2)](_0x31b1b0(0x1cb))?_0x5164b3:_0x5164b3[_0x31b1b0(0x1c5)](summarizeArtifact)}};}},artifactDetail={'service':a8_0x30aebe(0x191),'command':a8_0x30aebe(0x1d2),'description':a8_0x30aebe(0x1c7),'risk':a8_0x30aebe(0x1d0),'flags':[{...ID_FLAG,'description':a8_0x30aebe(0x198)}],async 'execute'(_0x6050c8){const _0x50beb1=a8_0x30aebe,_0x5dfeda=await getRuntimeArtifact(_0x6050c8[_0x50beb1(0x1ac)]('id'),_0x6050c8['appCode']);return{'ok':!![],'data':detailArtifact(_0x5dfeda)};}},artifactCreate={'service':'artifact','command':a8_0x30aebe(0x1a1),'description':'Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','risk':a8_0x30aebe(0x1a4),'flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x512842){const _0x5b2484=a8_0x30aebe,_0x23288a=buildArtifactInput(_0x512842),_0x299e57=await createRuntimeArtifact(_0x512842[_0x5b2484(0x1ae)],_0x23288a);return{'ok':!![],'data':detailArtifact(_0x299e57),'message':_0x5b2484(0x1d6)+_0x299e57['id']+(_0x299e57[_0x5b2484(0x1bc)]?'\x20('+_0x299e57[_0x5b2484(0x1bc)]+')':'')};},async 'dryRun'(_0x77fe5){const _0x1ee9d7=a8_0x30aebe,_0x48ed2=buildArtifactInput(_0x77fe5);return dryRun(_0x1ee9d7(0x1c8),_0x1ee9d7(0x190))['body']({'appCode':_0x77fe5[_0x1ee9d7(0x1ae)],..._0x48ed2})[_0x1ee9d7(0x18f)](_0x1ee9d7(0x1b8))['build']();}},artifactUpdate={'service':'artifact','command':a8_0x30aebe(0x1c2),'description':'Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','risk':a8_0x30aebe(0x1a4),'flags':[{...ID_FLAG,'description':a8_0x30aebe(0x198)},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x3c13e4){const _0x556e2f=a8_0x30aebe,_0x5685dc=_0x3c13e4['num']('id'),_0x25e987=buildArtifactInput(_0x3c13e4),_0x3e6af9=await updateRuntimeArtifact(_0x5685dc,_0x3c13e4['appCode'],_0x25e987);return{'ok':!![],'data':detailArtifact(_0x3e6af9),'message':_0x556e2f(0x1d9)+_0x3e6af9['id']+(_0x3e6af9[_0x556e2f(0x1bc)]?'\x20('+_0x3e6af9[_0x556e2f(0x1bc)]+')':'')};},async 'dryRun'(_0x4ddb54){const _0x13c8d2=a8_0x30aebe,_0x19997b=_0x4ddb54['num']('id'),_0x1f9885=buildArtifactInput(_0x4ddb54);return dryRun(_0x13c8d2(0x1c8),_0x13c8d2(0x19d)+_0x19997b+_0x13c8d2(0x1ba))[_0x13c8d2(0x1b0)]({'appCode':_0x4ddb54[_0x13c8d2(0x1ae)],..._0x1f9885})['description']('Preview:\x20update\x20react_module\x20Artifact\x20'+_0x19997b)[_0x13c8d2(0x1be)]();}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
@@ -1 +1 @@
1
- const a9_0x4e15c2=a9_0x4e88;(function(_0x36c148,_0xdec057){const _0x33bcdd=a9_0x4e88,_0x3fb5c2=_0x36c148();while(!![]){try{const _0x5b405f=-parseInt(_0x33bcdd(0x135))/0x1*(-parseInt(_0x33bcdd(0xe6))/0x2)+-parseInt(_0x33bcdd(0x11d))/0x3*(parseInt(_0x33bcdd(0xf8))/0x4)+parseInt(_0x33bcdd(0x108))/0x5*(parseInt(_0x33bcdd(0x10b))/0x6)+parseInt(_0x33bcdd(0xec))/0x7+parseInt(_0x33bcdd(0xea))/0x8+parseInt(_0x33bcdd(0x10a))/0x9+-parseInt(_0x33bcdd(0x100))/0xa*(parseInt(_0x33bcdd(0x103))/0xb);if(_0x5b405f===_0xdec057)break;else _0x3fb5c2['push'](_0x3fb5c2['shift']());}catch(_0x44c568){_0x3fb5c2['push'](_0x3fb5c2['shift']());}}}(a9_0x1920,0xde5fa));import{readScopedConfig,writeScopedConfig}from'../../context.js';function a9_0x4e88(_0x5e13b8,_0x303346){_0x5e13b8=_0x5e13b8-0xe6;const _0x192004=a9_0x1920();let _0x4e8806=_0x192004[_0x5e13b8];return _0x4e8806;}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 a9_0x1920(){const _0x11cdae=['cancelled','ClientAk','Auth\x20config\x20reinitialized\x20in\x20','25niUDho','\x20(via\x20','4864383TEsnxj','1518792mqfqxr','AccessKey\x20(ak_xxx...)','repeat','project','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','Missing\x20accessKey.','envName','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','production','Then\x20verify\x20with:\x20','Clear\x20accessKey\x20from\x20config','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','AccessKey\x20cleared\x20from\x20','\x20auth\x20status','\x20config.\x20Nothing\x20to\x20clear.','logout','Option\x20B:\x20apps\x20config\x20(','\x20\x20export\x20','22947OPgzgw','\x20Verify:\x20','=ak_xxx','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','Option\x20A:\x20','\x20config','\x20config.','Use\x20`','trim','ACCESS_KEY','\x20auth\x20login\x20--access-key\x20<ak_xxx>','yes','userCenterDisplayName','No\x20AccessKey\x20found\x20in\x20','global','AccessKey\x20saved\x20to\x20','test','isTTY','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','validation','stdout','\x20env\x20var','push','1JBDPrH','bool','str','init','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','Shorthand\x20for\x20--access-key','Clear\x20from\x20global\x20config\x20(default)','status','1964374TonSaW','read','accessKey','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','379912RzRCaP','join','1968491fRCqMG','Show\x20current\x20authentication\x20status','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','stdin','\x20Current\x20env:\x20','access-key','Auth\x20mode:\x20','daily','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','Read\x20from\x20global\x20config\x20(default)','Write\x20to\x20global\x20config\x20(default)','auth','548UCLprw','global-default','env','string','nonInteractive','login','write','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','11582810XLGuhD','length','boolean','11zGsMIr','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config'];a9_0x1920=function(){return _0x11cdae;};return a9_0x1920();}function showAccessKeyCreateHint(){const _0x582e4e=a9_0x4e88;writeCliSideChannelLine(_0x582e4e(0x10f)+PRODUCT_CONFIG[_0x582e4e(0x12a)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine('Tip:\x20you\x20can\x20also\x20run:'),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x582e4e(0x128));}function buildAccessKeySetupGuide(){const _0x3212eb=a9_0x4e88;return['AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0x3212eb(0x12a)]+':',USER_ACCESS_KEY_CREATE_URL,_0x3212eb(0x121)+CLI_BIN_NAME+_0x3212eb(0xff)]['join']('\x0a');}function canPromptForAccessKey(_0x41a99d){const _0x579cd1=a9_0x4e88;return!_0x41a99d[_0x579cd1(0xfc)]&&process[_0x579cd1(0xef)][_0x579cd1(0x12f)]!==![]&&process[_0x579cd1(0x132)]['isTTY']!==![];}function resolveAuthScopeFlags(_0x5442ce){const _0x22eca2=a9_0x4e88;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x5442ce[_0x22eca2(0x136)](_0x22eca2(0x12c)),'explicitProject':_0x5442ce[_0x22eca2(0x136)]('project'),'policy':_0x22eca2(0xf9)}));}async function resolveAuthWriteInput(_0x3a1188){const _0x4b69c9=a9_0x4e88;let _0x184835=(_0x3a1188['str'](_0x4b69c9(0xf1))||_0x3a1188['str']('ak')||'')[_0x4b69c9(0x126)]();const _0x16b5af=(_0x3a1188[_0x4b69c9(0x137)](_0x4b69c9(0xfa))||'')[_0x4b69c9(0x126)]();if(!_0x184835&&canPromptForAccessKey(_0x3a1188))try{showAccessKeyCreateHint(),_0x184835=await promptAccessKey('');}catch(_0x381f7c){if(isAbortPrompt(_0x381f7c))throw CliErrors[_0x4b69c9(0x105)]();throw _0x381f7c;}if(!_0x184835)throw CliErrors[_0x4b69c9(0x131)](_0x4b69c9(0x110),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x4b69c9(0x12e)](_0x184835))throw CliErrors['validation']('Invalid\x20accessKey\x20format:\x20\x22'+_0x184835+'\x22',_0x4b69c9(0x112));if(!_0x16b5af)return{'accessKey':_0x184835};const _0x48b960=normalizeEnv(_0x16b5af);return{'accessKey':_0x184835,'env':isDaily(_0x48b960)?_0x4b69c9(0xf3):isDev(_0x48b960)?'development':_0x4b69c9(0x113)};}export const authDefinitions=[{'service':a9_0x4e15c2(0xf7),'command':a9_0x4e15c2(0xfd),'description':a9_0x4e15c2(0x116),'risk':a9_0x4e15c2(0xfe),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'access-key','type':a9_0x4e15c2(0xfb),'description':a9_0x4e15c2(0x10c)},{'name':'ak','type':a9_0x4e15c2(0xfb),'description':a9_0x4e15c2(0x13a)},{'name':a9_0x4e15c2(0x12c),'type':a9_0x4e15c2(0x102),'description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':a9_0x4e15c2(0x10e),'type':a9_0x4e15c2(0x102),'description':a9_0x4e15c2(0x120),'default':![]}],async 'execute'(_0x1bac4b){const _0x5362c8=a9_0x4e15c2;if(_0x1bac4b[_0x5362c8(0x136)](_0x5362c8(0x129)))throw CliErrors['validation']('`auth\x20login`\x20does\x20not\x20support\x20--yes.',_0x5362c8(0x125)+CLI_BIN_NAME+_0x5362c8(0xe9)+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.');const _0x8ce983=(_0x1bac4b['str'](_0x5362c8(0xf1))||_0x1bac4b[_0x5362c8(0x137)]('ak')||'')[_0x5362c8(0x126)]();if(!_0x8ce983&&_0x1bac4b['nonInteractive'])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x4b8b29=await resolveAuthWriteInput(_0x1bac4b),_0x164c72=resolveAuthScopeFlags(_0x1bac4b),_0x4251f7=readScopedConfig(_0x164c72);_0x4251f7['accessKey']=_0x4b8b29[_0x5362c8(0xe8)];_0x4b8b29[_0x5362c8(0xfa)]&&(_0x4251f7[_0x5362c8(0xfa)]=_0x4b8b29[_0x5362c8(0xfa)]);writeScopedConfig(_0x4251f7,_0x164c72);const _0x5d43c8=_0x164c72['global']?_0x5362c8(0x12c):_0x5362c8(0x10e),_0x216510=_0x4251f7['env']?_0x5362c8(0xf0)+_0x4251f7[_0x5362c8(0xfa)]+'.':'';return{'ok':!![],'message':_0x5362c8(0x12d)+_0x5d43c8+_0x5362c8(0x124)+_0x216510+_0x5362c8(0x11e)+CLI_BIN_NAME+_0x5362c8(0x118)};}},{'service':a9_0x4e15c2(0xf7),'command':a9_0x4e15c2(0x138),'description':a9_0x4e15c2(0x130),'risk':a9_0x4e15c2(0xfe),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x4e15c2(0xf1),'type':'string','description':a9_0x4e15c2(0x10c)},{'name':'ak','type':a9_0x4e15c2(0xfb),'description':a9_0x4e15c2(0x13a)},{'name':a9_0x4e15c2(0xfa),'type':'string','description':a9_0x4e15c2(0x104)},{'name':a9_0x4e15c2(0x12c),'type':a9_0x4e15c2(0x102),'description':a9_0x4e15c2(0xf6),'default':!![]},{'name':a9_0x4e15c2(0x10e),'type':'boolean','description':'Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x4dd9a5){const _0x24239b=a9_0x4e15c2,_0x2e661f=await resolveAuthWriteInput(_0x4dd9a5),_0x10865b=resolveAuthScopeFlags(_0x4dd9a5),_0x173a0e={'accessKey':_0x2e661f[_0x24239b(0xe8)]};_0x2e661f[_0x24239b(0xfa)]&&(_0x173a0e[_0x24239b(0xfa)]=_0x2e661f[_0x24239b(0xfa)]);writeScopedConfig(_0x173a0e,_0x10865b);const _0x581c09=_0x10865b['global']?_0x24239b(0x12c):_0x24239b(0x10e),_0x3a6907=_0x173a0e[_0x24239b(0xfa)]?_0x24239b(0xf0)+_0x173a0e[_0x24239b(0xfa)]+'.':'';return{'ok':!![],'message':_0x24239b(0x107)+_0x581c09+'\x20scope.'+_0x3a6907+'\x20Verify:\x20'+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':a9_0x4e15c2(0xf7),'command':a9_0x4e15c2(0x11a),'description':a9_0x4e15c2(0x115),'risk':a9_0x4e15c2(0xfe),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x4e15c2(0x12c),'type':a9_0x4e15c2(0x102),'description':a9_0x4e15c2(0x13b),'default':!![]},{'name':a9_0x4e15c2(0x10e),'type':a9_0x4e15c2(0x102),'description':'Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x52a7cb){const _0x445ac2=a9_0x4e15c2,_0x4c2a4a=resolveAuthScopeFlags(_0x52a7cb),_0x451b62=readScopedConfig(_0x4c2a4a),_0x6d9b24=!!_0x451b62['accessKey'];delete _0x451b62['accessKey'],writeScopedConfig(_0x451b62,_0x4c2a4a);const _0x1337a9=_0x4c2a4a[_0x445ac2(0x12c)]?_0x445ac2(0x12c):'project';if(_0x6d9b24)return{'ok':!![],'message':_0x445ac2(0x117)+_0x1337a9+_0x445ac2(0x124)};return{'ok':!![],'message':_0x445ac2(0x12b)+_0x1337a9+_0x445ac2(0x119)};}},{'service':a9_0x4e15c2(0xf7),'command':a9_0x4e15c2(0x13c),'description':a9_0x4e15c2(0xed),'risk':a9_0x4e15c2(0xe7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x4e15c2(0x12c),'type':a9_0x4e15c2(0x102),'description':a9_0x4e15c2(0xf5),'default':!![]},{'name':a9_0x4e15c2(0x10e),'type':a9_0x4e15c2(0x102),'description':'Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x5f3cd4){const _0x54aaad=a9_0x4e15c2,_0x343910=resolveAuthScopeFlags(_0x5f3cd4),_0x125aac=readScopedConfig(_0x343910),_0x3ba977=productEnvName(_0x54aaad(0x127)),_0x2f9062=productEnv(_0x54aaad(0x127))||undefined,_0x36374e=_0x125aac[_0x54aaad(0xe8)]||undefined,_0xaf89ed=_0x2f9062||_0x36374e,_0x542cfc=_0x2f9062?_0x3ba977+_0x54aaad(0x133):_0x36374e?(_0x343910[_0x54aaad(0x12c)]?_0x54aaad(0x12c):_0x54aaad(0x10e))+_0x54aaad(0x123):null,_0x55f214=[_0x54aaad(0xf2)+AUTH_MODE[_0x54aaad(0x106)]];if(_0xaf89ed){const _0x863d88=_0xaf89ed['length']>0x8?''+_0xaf89ed['slice'](0x0,0x8)+'*'[_0x54aaad(0x10d)](_0xaf89ed[_0x54aaad(0x101)]-0x8):_0xaf89ed;_0x55f214[_0x54aaad(0x134)]('AccessKey:\x20'+_0x863d88+(_0x542cfc?_0x54aaad(0x109)+_0x542cfc+')':''));}return!_0xaf89ed&&(_0x55f214[_0x54aaad(0x134)](''),_0x55f214[_0x54aaad(0x134)](_0x54aaad(0xf4)),_0x55f214[_0x54aaad(0x134)](''),_0x55f214[_0x54aaad(0x134)](_0x54aaad(0x122)+CLI_BIN_NAME+_0x54aaad(0xee)),_0x55f214['push'](''),_0x55f214[_0x54aaad(0x134)](_0x54aaad(0x11b)+PRODUCT_CONFIG['newConfigFileName']+')'),_0x55f214[_0x54aaad(0x134)](_0x54aaad(0x139)),_0x55f214[_0x54aaad(0x134)](''),_0x55f214[_0x54aaad(0x134)]('Option\x20C:\x20environment\x20variable'),_0x55f214['push'](_0x54aaad(0x11c)+_0x3ba977+_0x54aaad(0x11f)),_0x55f214[_0x54aaad(0x134)](''),_0x55f214[_0x54aaad(0x134)](_0x54aaad(0x114)+CLI_BIN_NAME+_0x54aaad(0x118)),_0x55f214['push']('If\x20command\x20execution\x20still\x20fails,\x20run:\x20'+CLI_BIN_NAME+'\x20doctor')),{'ok':!![],'message':_0x55f214[_0x54aaad(0xeb)]('\x0a')};}},{'service':'auth','command':'info','description':'Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','risk':a9_0x4e15c2(0xe7),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x1330e6){const _0xca4c8f=a9_0x4e15c2,_0x4ad564=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x4ad564,'meta':{'env':_0x1330e6[_0xca4c8f(0x111)]??_0xca4c8f(0x113)}}};}}];
1
+ const a9_0x83ec53=a9_0x5ec1;(function(_0x18092b,_0x322a48){const _0x236bb7=a9_0x5ec1,_0xbc6acd=_0x18092b();while(!![]){try{const _0x3a282c=parseInt(_0x236bb7(0x1d4))/0x1*(-parseInt(_0x236bb7(0x183))/0x2)+-parseInt(_0x236bb7(0x199))/0x3+-parseInt(_0x236bb7(0x1a9))/0x4+-parseInt(_0x236bb7(0x1a2))/0x5+-parseInt(_0x236bb7(0x18f))/0x6*(parseInt(_0x236bb7(0x18c))/0x7)+-parseInt(_0x236bb7(0x18d))/0x8*(-parseInt(_0x236bb7(0x197))/0x9)+parseInt(_0x236bb7(0x18b))/0xa*(parseInt(_0x236bb7(0x191))/0xb);if(_0x3a282c===_0x322a48)break;else _0xbc6acd['push'](_0xbc6acd['shift']());}catch(_0x412338){_0xbc6acd['push'](_0xbc6acd['shift']());}}}(a9_0x377f,0x541d2));import{readScopedConfig,writeScopedConfig}from'../../context.js';function a9_0x5ec1(_0x28fc54,_0x1e7d9f){_0x28fc54=_0x28fc54-0x182;const _0x377f4d=a9_0x377f();let _0x5ec1de=_0x377f4d[_0x28fc54];return _0x5ec1de;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';function a9_0x377f(){const _0x447e43=['str','daily','`auth\x20login`\x20does\x20not\x20support\x20--yes.','Use\x20`','\x20config.\x20Nothing\x20to\x20clear.','repeat','auth','ClientAk','19WtuXEP','Write\x20to\x20global\x20config\x20(default)','push','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','accessKey','9600VVCFJI','global','nonInteractive','\x20\x20export\x20','Auth\x20mode:\x20','\x20scope.','project','logout','459770hNdBnC','14MqotWD','8NwSkIw','Show\x20current\x20authentication\x20status','553170NJIflY','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','374vPNRpj','Option\x20B:\x20apps\x20config\x20(','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','Read\x20from\x20global\x20config\x20(default)','test','658404jMTdcs','production','531474GRjhwm','\x20config.','boolean','stdout','\x20Verify:\x20','Missing\x20accessKey.','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','\x20auth\x20login\x20--access-key\x20<ak_xxx>','Clear\x20from\x20global\x20config\x20(default)','2573250FzWWuU','yes','Then\x20verify\x20with:\x20','Clear\x20accessKey\x20from\x20config','AccessKey\x20(ak_xxx...)','Shorthand\x20for\x20--access-key','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','1297784qZeoWe','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','envName','\x20env\x20var','slice','AccessKey\x20saved\x20to\x20','access-key','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','ACCESS_KEY','status','isTTY','read','trim','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','\x20(via\x20','Option\x20C:\x20environment\x20variable','write','string','validation','userCenterDisplayName','length','No\x20AccessKey\x20found\x20in\x20','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','stdin','development','join','\x20auth\x20status','Invalid\x20accessKey\x20format:\x20\x22','Tip:\x20you\x20can\x20also\x20run:','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','bool','AccessKey\x20cleared\x20from\x20','env','\x20Current\x20env:\x20'];a9_0x377f=function(){return _0x447e43;};return a9_0x377f();}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 _0x3b2cd5=a9_0x5ec1;writeCliSideChannelLine(_0x3b2cd5(0x1b1)+PRODUCT_CONFIG['userCenterDisplayName']+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x3b2cd5(0x1c6)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x3b2cd5(0x1a0));}function buildAccessKeySetupGuide(){const _0x21a134=a9_0x5ec1;return['AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0x21a134(0x1bd)]+':',USER_ACCESS_KEY_CREATE_URL,_0x21a134(0x1aa)+CLI_BIN_NAME+_0x21a134(0x1c7)]['join']('\x0a');}function canPromptForAccessKey(_0x109155){const _0x4f3a97=a9_0x5ec1;return!_0x109155[_0x4f3a97(0x185)]&&process[_0x4f3a97(0x1c1)]['isTTY']!==![]&&process[_0x4f3a97(0x19c)][_0x4f3a97(0x1b4)]!==![];}function resolveAuthScopeFlags(_0x452750){const _0x363471=a9_0x5ec1;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x452750['bool'](_0x363471(0x184)),'explicitProject':_0x452750['bool'](_0x363471(0x189)),'policy':'global-default'}));}async function resolveAuthWriteInput(_0x2977e8){const _0x5a5d88=a9_0x5ec1;let _0x5b6ab1=(_0x2977e8[_0x5a5d88(0x1cc)](_0x5a5d88(0x1b0))||_0x2977e8[_0x5a5d88(0x1cc)]('ak')||'')[_0x5a5d88(0x1b6)]();const _0x5450fe=(_0x2977e8['str']('env')||'')[_0x5a5d88(0x1b6)]();if(!_0x5b6ab1&&canPromptForAccessKey(_0x2977e8))try{showAccessKeyCreateHint(),_0x5b6ab1=await promptAccessKey('');}catch(_0x352b82){if(isAbortPrompt(_0x352b82))throw CliErrors['cancelled']();throw _0x352b82;}if(!_0x5b6ab1)throw CliErrors[_0x5a5d88(0x1bc)](_0x5a5d88(0x19e),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x5a5d88(0x196)](_0x5b6ab1))throw CliErrors['validation'](_0x5a5d88(0x1c5)+_0x5b6ab1+'\x22',_0x5a5d88(0x1d7));if(!_0x5450fe)return{'accessKey':_0x5b6ab1};const _0xe7f2b9=normalizeEnv(_0x5450fe);return{'accessKey':_0x5b6ab1,'env':isDaily(_0xe7f2b9)?_0x5a5d88(0x1cd):isDev(_0xe7f2b9)?_0x5a5d88(0x1c2):'production'};}export const authDefinitions=[{'service':'auth','command':'login','description':a9_0x83ec53(0x1ab),'risk':a9_0x83ec53(0x1ba),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'access-key','type':a9_0x83ec53(0x1bb),'description':a9_0x83ec53(0x1a6)},{'name':'ak','type':a9_0x83ec53(0x1bb),'description':a9_0x83ec53(0x1a7)},{'name':a9_0x83ec53(0x184),'type':'boolean','description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':'project','type':a9_0x83ec53(0x19b),'description':a9_0x83ec53(0x19f),'default':![]}],async 'execute'(_0x2a725b){const _0xe2b6fd=a9_0x83ec53;if(_0x2a725b[_0xe2b6fd(0x1c8)](_0xe2b6fd(0x1a3)))throw CliErrors['validation'](_0xe2b6fd(0x1ce),_0xe2b6fd(0x1cf)+CLI_BIN_NAME+_0xe2b6fd(0x193)+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.');const _0x5a6b42=(_0x2a725b['str'](_0xe2b6fd(0x1b0))||_0x2a725b[_0xe2b6fd(0x1cc)]('ak')||'')['trim']();if(!_0x5a6b42&&_0x2a725b[_0xe2b6fd(0x185)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x5f2f1c=await resolveAuthWriteInput(_0x2a725b),_0x3fb635=resolveAuthScopeFlags(_0x2a725b),_0x1fc38f=readScopedConfig(_0x3fb635);_0x1fc38f['accessKey']=_0x5f2f1c[_0xe2b6fd(0x182)];_0x5f2f1c['env']&&(_0x1fc38f[_0xe2b6fd(0x1ca)]=_0x5f2f1c['env']);writeScopedConfig(_0x1fc38f,_0x3fb635);const _0x4e677f=_0x3fb635[_0xe2b6fd(0x184)]?_0xe2b6fd(0x184):_0xe2b6fd(0x189),_0x16954b=_0x1fc38f['env']?_0xe2b6fd(0x1cb)+_0x1fc38f[_0xe2b6fd(0x1ca)]+'.':'';return{'ok':!![],'message':_0xe2b6fd(0x1af)+_0x4e677f+_0xe2b6fd(0x19a)+_0x16954b+'\x20Verify:\x20'+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':a9_0x83ec53(0x1d2),'command':'init','description':a9_0x83ec53(0x194),'risk':a9_0x83ec53(0x1ba),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x83ec53(0x1b0),'type':a9_0x83ec53(0x1bb),'description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':a9_0x83ec53(0x1bb),'description':'Shorthand\x20for\x20--access-key'},{'name':'env','type':a9_0x83ec53(0x1bb),'description':a9_0x83ec53(0x1a8)},{'name':a9_0x83ec53(0x184),'type':'boolean','description':a9_0x83ec53(0x1d5),'default':!![]},{'name':a9_0x83ec53(0x189),'type':a9_0x83ec53(0x19b),'description':a9_0x83ec53(0x19f),'default':![]}],async 'execute'(_0x5a2316){const _0x3798a2=a9_0x83ec53,_0x10c2bc=await resolveAuthWriteInput(_0x5a2316),_0xbcb849=resolveAuthScopeFlags(_0x5a2316),_0x15f78f={'accessKey':_0x10c2bc['accessKey']};_0x10c2bc['env']&&(_0x15f78f[_0x3798a2(0x1ca)]=_0x10c2bc[_0x3798a2(0x1ca)]);writeScopedConfig(_0x15f78f,_0xbcb849);const _0x54bac9=_0xbcb849['global']?_0x3798a2(0x184):_0x3798a2(0x189),_0x12eb26=_0x15f78f['env']?_0x3798a2(0x1cb)+_0x15f78f[_0x3798a2(0x1ca)]+'.':'';return{'ok':!![],'message':'Auth\x20config\x20reinitialized\x20in\x20'+_0x54bac9+_0x3798a2(0x188)+_0x12eb26+_0x3798a2(0x19d)+CLI_BIN_NAME+_0x3798a2(0x1c4)};}},{'service':'auth','command':a9_0x83ec53(0x18a),'description':a9_0x83ec53(0x1a5),'risk':a9_0x83ec53(0x1ba),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x83ec53(0x184),'type':a9_0x83ec53(0x19b),'description':a9_0x83ec53(0x1a1),'default':!![]},{'name':a9_0x83ec53(0x189),'type':'boolean','description':a9_0x83ec53(0x1c0),'default':![]}],async 'execute'(_0x42bd3e){const _0x195c3d=a9_0x83ec53,_0x4ccba2=resolveAuthScopeFlags(_0x42bd3e),_0x44249e=readScopedConfig(_0x4ccba2),_0x5b035d=!!_0x44249e[_0x195c3d(0x182)];delete _0x44249e[_0x195c3d(0x182)],writeScopedConfig(_0x44249e,_0x4ccba2);const _0x294c62=_0x4ccba2[_0x195c3d(0x184)]?_0x195c3d(0x184):_0x195c3d(0x189);if(_0x5b035d)return{'ok':!![],'message':_0x195c3d(0x1c9)+_0x294c62+_0x195c3d(0x19a)};return{'ok':!![],'message':_0x195c3d(0x1bf)+_0x294c62+_0x195c3d(0x1d0)};}},{'service':'auth','command':a9_0x83ec53(0x1b3),'description':a9_0x83ec53(0x18e),'risk':a9_0x83ec53(0x1b5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x83ec53(0x184),'type':'boolean','description':a9_0x83ec53(0x195),'default':!![]},{'name':a9_0x83ec53(0x189),'type':a9_0x83ec53(0x19b),'description':'Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x23ad84){const _0x1d8156=a9_0x83ec53,_0x3a9221=resolveAuthScopeFlags(_0x23ad84),_0x53d3cd=readScopedConfig(_0x3a9221),_0x17b22a=productEnvName(_0x1d8156(0x1b2)),_0x6af131=productEnv('ACCESS_KEY')||undefined,_0x22363e=_0x53d3cd[_0x1d8156(0x182)]||undefined,_0x564e7a=_0x6af131||_0x22363e,_0x5e9719=_0x6af131?_0x17b22a+_0x1d8156(0x1ad):_0x22363e?(_0x3a9221['global']?_0x1d8156(0x184):_0x1d8156(0x189))+'\x20config':null,_0x323cdc=[_0x1d8156(0x187)+AUTH_MODE[_0x1d8156(0x1d3)]];if(_0x564e7a){const _0x1a8dcf=_0x564e7a[_0x1d8156(0x1be)]>0x8?''+_0x564e7a[_0x1d8156(0x1ae)](0x0,0x8)+'*'[_0x1d8156(0x1d1)](_0x564e7a[_0x1d8156(0x1be)]-0x8):_0x564e7a;_0x323cdc[_0x1d8156(0x1d6)]('AccessKey:\x20'+_0x1a8dcf+(_0x5e9719?_0x1d8156(0x1b8)+_0x5e9719+')':''));}return!_0x564e7a&&(_0x323cdc[_0x1d8156(0x1d6)](''),_0x323cdc[_0x1d8156(0x1d6)]('No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:'),_0x323cdc['push'](''),_0x323cdc[_0x1d8156(0x1d6)]('Option\x20A:\x20'+CLI_BIN_NAME+'\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]'),_0x323cdc[_0x1d8156(0x1d6)](''),_0x323cdc[_0x1d8156(0x1d6)](_0x1d8156(0x192)+PRODUCT_CONFIG['newConfigFileName']+')'),_0x323cdc['push']('{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}'),_0x323cdc[_0x1d8156(0x1d6)](''),_0x323cdc['push'](_0x1d8156(0x1b9)),_0x323cdc[_0x1d8156(0x1d6)](_0x1d8156(0x186)+_0x17b22a+'=ak_xxx'),_0x323cdc['push'](''),_0x323cdc[_0x1d8156(0x1d6)](_0x1d8156(0x1a4)+CLI_BIN_NAME+_0x1d8156(0x1c4)),_0x323cdc[_0x1d8156(0x1d6)](_0x1d8156(0x190)+CLI_BIN_NAME+'\x20doctor')),{'ok':!![],'message':_0x323cdc[_0x1d8156(0x1c3)]('\x0a')};}},{'service':a9_0x83ec53(0x1d2),'command':'info','description':a9_0x83ec53(0x1b7),'risk':a9_0x83ec53(0x1b5),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x135a70){const _0x20943e=a9_0x83ec53,_0x399e68=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x399e68,'meta':{'env':_0x135a70[_0x20943e(0x1ac)]??_0x20943e(0x198)}}};}}];
@@ -1 +1 @@
1
- (function(_0x143856,_0x413cba){const _0x34ff68=a10_0xe7da,_0x2f7022=_0x143856();while(!![]){try{const _0x3ba6b4=-parseInt(_0x34ff68(0x149))/0x1+parseInt(_0x34ff68(0x142))/0x2*(-parseInt(_0x34ff68(0x14c))/0x3)+-parseInt(_0x34ff68(0x14a))/0x4+parseInt(_0x34ff68(0x13f))/0x5*(parseInt(_0x34ff68(0x153))/0x6)+-parseInt(_0x34ff68(0x154))/0x7+parseInt(_0x34ff68(0x148))/0x8+parseInt(_0x34ff68(0x152))/0x9*(-parseInt(_0x34ff68(0x14f))/0xa);if(_0x3ba6b4===_0x413cba)break;else _0x2f7022['push'](_0x2f7022['shift']());}catch(_0x235822){_0x2f7022['push'](_0x2f7022['shift']());}}}(a10_0x5a65,0xa265d));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x422bed=a10_0xe7da;super(_0x422bed(0x150)),this[_0x422bed(0x14b)]=_0x422bed(0x146);}}function a10_0xe7da(_0x454437,_0x43ead5){_0x454437=_0x454437-0x13d;const _0x5a65f1=a10_0x5a65();let _0xe7da=_0x5a65f1[_0x454437];return _0xe7da;}function createSafeRl(){const _0x4942c2=a10_0xe7da,_0xe8a6f0=createInterface({'input':process[_0x4942c2(0x140)],'output':process[_0x4942c2(0x13e)]});let _0x2e4b21;const _0xb1ebd=new Promise((_0x26b449,_0x5152ef)=>{const _0x29cf2c=_0x4942c2;_0x2e4b21=()=>{const _0x4b0ade=a10_0xe7da;_0x2e4b21&&(_0xe8a6f0[_0x4b0ade(0x14d)](_0x4b0ade(0x151),_0x2e4b21),_0x2e4b21=undefined);try{_0xe8a6f0[_0x4b0ade(0x143)]();}catch{}_0x5152ef(new AbortPrompt());},_0xe8a6f0[_0x29cf2c(0x141)](_0x29cf2c(0x151),_0x2e4b21);}),_0x21bb57=()=>{const _0x27cac7=_0x4942c2;_0x2e4b21&&(_0xe8a6f0['removeListener'](_0x27cac7(0x151),_0x2e4b21),_0x2e4b21=undefined);try{_0xe8a6f0['close']();}catch{}};return{'rl':_0xe8a6f0,'abortPromise':_0xb1ebd,'disposeSuccess':_0x21bb57};}export async function promptAccessKey(_0xace87c=''){const _0x59286b=a10_0xe7da,{rl:_0x4628e7,abortPromise:_0x24ac90,disposeSuccess:_0x4f3133}=createSafeRl(),_0x42c9f=new Promise(_0x4ca387=>{const _0x4d2d60=a10_0xe7da,_0x3dbfb0=_0xace87c?_0x4d2d60(0x144)+_0xace87c+'):\x20':_0x4d2d60(0x147);_0x4628e7[_0x4d2d60(0x145)](_0x3dbfb0,_0x3418ba=>{const _0x48bd71=_0x4d2d60;_0x4f3133(),_0x4ca387(_0x3418ba[_0x48bd71(0x14e)]()||_0xace87c);});});return Promise[_0x59286b(0x13d)]([_0x42c9f,_0x24ac90]);}export function isAbortPrompt(_0x316081){const _0x1af2d8=a10_0xe7da;return _0x316081 instanceof Error&&_0x316081[_0x1af2d8(0x14b)]===_0x1af2d8(0x146);}function a10_0x5a65(){const _0xb7799c=['AccessKey\x20(','question','AbortPrompt','AccessKey\x20(paste\x20ak_...):\x20','10221344lsmGfw','608266fdhZKt','564460yRrOeg','name','990789DThtSh','removeListener','trim','160vWrlSc','User\x20aborted\x20prompt','SIGINT','240804qgyXXk','6bAjoPe','2160963riDMgT','race','stdout','6019810xqWyrV','stdin','once','2zFAOry','close'];a10_0x5a65=function(){return _0xb7799c;};return a10_0x5a65();}
1
+ (function(_0x364daf,_0x38d43f){const _0x3cc14e=a10_0x189f,_0x564a08=_0x364daf();while(!![]){try{const _0x38ff7b=parseInt(_0x3cc14e(0xfa))/0x1*(-parseInt(_0x3cc14e(0xeb))/0x2)+parseInt(_0x3cc14e(0xef))/0x3+-parseInt(_0x3cc14e(0xf9))/0x4+parseInt(_0x3cc14e(0xfb))/0x5+-parseInt(_0x3cc14e(0xe6))/0x6+-parseInt(_0x3cc14e(0xf7))/0x7*(parseInt(_0x3cc14e(0xf3))/0x8)+parseInt(_0x3cc14e(0xe7))/0x9;if(_0x38ff7b===_0x38d43f)break;else _0x564a08['push'](_0x564a08['shift']());}catch(_0x5b928d){_0x564a08['push'](_0x564a08['shift']());}}}(a10_0x3cab,0x58e8f));import{createInterface}from'node:readline';function a10_0x189f(_0x12aafd,_0xa88ac){_0x12aafd=_0x12aafd-0xe6;const _0x3cabca=a10_0x3cab();let _0x189f44=_0x3cabca[_0x12aafd];return _0x189f44;}class AbortPrompt extends Error{constructor(){const _0x271fd7=a10_0x189f;super(_0x271fd7(0xe9)),this[_0x271fd7(0xf0)]=_0x271fd7(0xee);}}function createSafeRl(){const _0x5059a9=a10_0x189f,_0x3d463f=createInterface({'input':process[_0x5059a9(0xec)],'output':process['stdout']});let _0x217130;const _0x4be47d=new Promise((_0x1120e3,_0x26a6a0)=>{const _0x14cfd1=_0x5059a9;_0x217130=()=>{const _0x2cb23c=a10_0x189f;_0x217130&&(_0x3d463f['removeListener']('SIGINT',_0x217130),_0x217130=undefined);try{_0x3d463f[_0x2cb23c(0xf2)]();}catch{}_0x26a6a0(new AbortPrompt());},_0x3d463f[_0x14cfd1(0xf6)](_0x14cfd1(0xf5),_0x217130);}),_0x45080e=()=>{const _0x4ccbd9=_0x5059a9;_0x217130&&(_0x3d463f['removeListener']('SIGINT',_0x217130),_0x217130=undefined);try{_0x3d463f[_0x4ccbd9(0xf2)]();}catch{}};return{'rl':_0x3d463f,'abortPromise':_0x4be47d,'disposeSuccess':_0x45080e};}export async function promptAccessKey(_0x2d1588=''){const _0x616154=a10_0x189f,{rl:_0x4cc2a5,abortPromise:_0x5afd8f,disposeSuccess:_0x5cd3a6}=createSafeRl(),_0x2e4e5f=new Promise(_0x498468=>{const _0xa44a07=a10_0x189f,_0x3d767a=_0x2d1588?_0xa44a07(0xf1)+_0x2d1588+_0xa44a07(0xe8):_0xa44a07(0xea);_0x4cc2a5[_0xa44a07(0xed)](_0x3d767a,_0x3d352b=>{const _0x484025=_0xa44a07;_0x5cd3a6(),_0x498468(_0x3d352b[_0x484025(0xf8)]()||_0x2d1588);});});return Promise[_0x616154(0xf4)]([_0x2e4e5f,_0x5afd8f]);}export function isAbortPrompt(_0x1992ca){const _0x5e3037=a10_0x189f;return _0x1992ca instanceof Error&&_0x1992ca['name']===_0x5e3037(0xee);}function a10_0x3cab(){const _0x1a8b52=['AccessKey\x20(paste\x20ak_...):\x20','188CKMoTV','stdin','question','AbortPrompt','898764iArTBB','name','AccessKey\x20(','close','4157256PEoZZW','race','SIGINT','once','7lBppOA','trim','2295940ahzAHf','5528ETvTjx','542200RFZjEf','264420IyOabu','14521419nnWmYy','):\x20','User\x20aborted\x20prompt'];a10_0x3cab=function(){return _0x1a8b52;};return a10_0x3cab();}
@@ -1 +1 @@
1
- const a11_0x1c66e6=a11_0x4ac9;(function(_0x44f224,_0x518333){const _0x53437d=a11_0x4ac9,_0x412193=_0x44f224();while(!![]){try{const _0x28fea6=-parseInt(_0x53437d(0xbe))/0x1+-parseInt(_0x53437d(0xc6))/0x2+parseInt(_0x53437d(0xc4))/0x3*(-parseInt(_0x53437d(0xc7))/0x4)+parseInt(_0x53437d(0xcb))/0x5+parseInt(_0x53437d(0xc0))/0x6+-parseInt(_0x53437d(0xc2))/0x7+-parseInt(_0x53437d(0xca))/0x8*(-parseInt(_0x53437d(0xcc))/0x9);if(_0x28fea6===_0x518333)break;else _0x412193['push'](_0x412193['shift']());}catch(_0x37dea0){_0x412193['push'](_0x412193['shift']());}}}(a11_0x4151,0xaed39));function a11_0x4151(){const _0xed67fb=['num','verbose','182608zujZzF','3484130jLjeiz','342waJaNu','read','detail','Get\x20BFF\x20script\x20details\x20by\x20ID','functionName','(none)','323374xeacYo','appCode','6174036lEphgX','bff','3660825QyvVdN','updatedTime','753exYKgS','bool','87198tDwYfN','15732dprtzg'];a11_0x4151=function(){return _0xed67fb;};return a11_0x4151();}function a11_0x4ac9(_0x22d8eb,_0x3f4e56){_0x22d8eb=_0x22d8eb-0xbb;const _0x415155=a11_0x4151();let _0x4ac954=_0x415155[_0x22d8eb];return _0x4ac954;}import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a11_0x1c66e6(0xc1),'command':a11_0x1c66e6(0xce),'description':a11_0x1c66e6(0xbb),'risk':a11_0x1c66e6(0xcd),'flags':[{...ID_FLAG,'description':'Script\x20ID'},VERBOSE_FLAG],async 'execute'(_0x5be52c){const _0x27a47b=a11_0x1c66e6,_0x3170f2=await getBffScriptInfo(_0x5be52c[_0x27a47b(0xc8)]('id')),_0xec6cd4=_0x5be52c[_0x27a47b(0xc5)](_0x27a47b(0xc9));if(_0xec6cd4)return{'ok':!![],'data':_0x3170f2};return{'ok':!![],'data':{'id':_0x3170f2['id'],'appCode':_0x3170f2[_0x27a47b(0xbf)],'functionName':_0x3170f2[_0x27a47b(0xbc)]??'','scriptType':_0x3170f2['scriptType'],'description':_0x3170f2['description']||_0x27a47b(0xbd),'createdTime':_0x3170f2['createdTime']??'','updatedTime':_0x3170f2[_0x27a47b(0xc3)]??''}};}};
1
+ const a11_0x589efa=a11_0x53c4;(function(_0x58ca5e,_0x3bf0de){const _0x38bd4a=a11_0x53c4,_0x3861fc=_0x58ca5e();while(!![]){try{const _0x5509fa=-parseInt(_0x38bd4a(0x97))/0x1+-parseInt(_0x38bd4a(0xa7))/0x2*(-parseInt(_0x38bd4a(0x92))/0x3)+-parseInt(_0x38bd4a(0x9f))/0x4*(-parseInt(_0x38bd4a(0x96))/0x5)+-parseInt(_0x38bd4a(0x9b))/0x6+parseInt(_0x38bd4a(0x98))/0x7+-parseInt(_0x38bd4a(0x93))/0x8+-parseInt(_0x38bd4a(0xa3))/0x9*(parseInt(_0x38bd4a(0x9e))/0xa);if(_0x5509fa===_0x3bf0de)break;else _0x3861fc['push'](_0x3861fc['shift']());}catch(_0x3768cc){_0x3861fc['push'](_0x3861fc['shift']());}}}(a11_0xbaed,0x7cd16));import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a11_0x589efa(0x9a),'command':a11_0x589efa(0x9c),'description':a11_0x589efa(0x99),'risk':a11_0x589efa(0xa0),'flags':[{...ID_FLAG,'description':'Script\x20ID'},VERBOSE_FLAG],async 'execute'(_0x286e52){const _0x3fffad=a11_0x589efa,_0x45fad4=await getBffScriptInfo(_0x286e52[_0x3fffad(0x9d)]('id')),_0x560c31=_0x286e52['bool']('verbose');if(_0x560c31)return{'ok':!![],'data':_0x45fad4};return{'ok':!![],'data':{'id':_0x45fad4['id'],'appCode':_0x45fad4[_0x3fffad(0xa1)],'functionName':_0x45fad4[_0x3fffad(0xa2)]??'','scriptType':_0x45fad4[_0x3fffad(0x94)],'description':_0x45fad4[_0x3fffad(0xa5)]||_0x3fffad(0xa4),'createdTime':_0x45fad4[_0x3fffad(0xa6)]??'','updatedTime':_0x45fad4[_0x3fffad(0x95)]??''}};}};function a11_0x53c4(_0x49c120,_0x1d403e){_0x49c120=_0x49c120-0x92;const _0xbaedf0=a11_0xbaed();let _0x53c410=_0xbaedf0[_0x49c120];return _0x53c410;}function a11_0xbaed(){const _0x273494=['97386GMNVTy','30AhFEEX','1522104WAvXdI','scriptType','updatedTime','454795DLafwz','162342Ifkrpz','6759046YEYSBh','Get\x20BFF\x20script\x20details\x20by\x20ID','bff','4770024mFqAiB','detail','num','60vIAbKm','36sZMQvB','read','appCode','functionName','918414lVmBKC','(none)','description','createdTime'];a11_0xbaed=function(){return _0x273494;};return a11_0xbaed();}
@@ -1 +1 @@
1
- const a12_0x55fa69=a12_0x5478;(function(_0x20a649,_0x18ad78){const _0x5f1dbd=a12_0x5478,_0x3465d1=_0x20a649();while(!![]){try{const _0x27309f=parseInt(_0x5f1dbd(0x10b))/0x1+-parseInt(_0x5f1dbd(0x114))/0x2*(-parseInt(_0x5f1dbd(0x10a))/0x3)+parseInt(_0x5f1dbd(0x116))/0x4+-parseInt(_0x5f1dbd(0x10e))/0x5*(parseInt(_0x5f1dbd(0x117))/0x6)+-parseInt(_0x5f1dbd(0x107))/0x7+parseInt(_0x5f1dbd(0x115))/0x8*(parseInt(_0x5f1dbd(0x111))/0x9)+-parseInt(_0x5f1dbd(0x109))/0xa;if(_0x27309f===_0x18ad78)break;else _0x3465d1['push'](_0x3465d1['shift']());}catch(_0x3e5d6d){_0x3465d1['push'](_0x3465d1['shift']());}}}(a12_0x3bfd,0x84135));function a12_0x5478(_0x1631df,_0x3880db){_0x1631df=_0x1631df-0x105;const _0x3bfdab=a12_0x3bfd();let _0x5478b4=_0x3bfdab[_0x1631df];return _0x5478b4;}import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':'bff','command':a12_0x55fa69(0x113),'description':a12_0x55fa69(0x10d),'risk':a12_0x55fa69(0x10f),'flags':[{...NAME_FLAG,'required':!![],'description':a12_0x55fa69(0x10c)},PARAMS_FLAG],async 'execute'(_0x5b6c4e){const _0x111adb=a12_0x55fa69,_0x4c398b=parseJsonParams(_0x5b6c4e[_0x111adb(0x106)](_0x111adb(0x110))),_0x36f1ed=Date[_0x111adb(0x105)](),_0x5eebaf=await executeSdkBff(_0x5b6c4e[_0x111adb(0x106)](_0x111adb(0x112)),_0x4c398b),_0xaf616e=Date['now']()-_0x36f1ed;return{'ok':!![],'data':{'result':_0x5eebaf,'elapsed':_0xaf616e},'message':_0x111adb(0x108)+_0xaf616e+'ms'};}};function a12_0x3bfd(){const _0x4bf16e=['36408VMaJxg','2415424BZrMmb','886326nOPOxU','now','str','4337347vXbaqd','BFF\x20executed\x20in\x20','9284880FCEIuH','1716jRdZlo','622818WsufTp','BFF\x20function\x20name\x20to\x20execute','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','5Qnfnro','read','params','1035YKxFGq','name','exec','1702VImNDi'];a12_0x3bfd=function(){return _0x4bf16e;};return a12_0x3bfd();}
1
+ const a12_0x272d0f=a12_0xb14a;function a12_0xb14a(_0x5823cd,_0x39766c){_0x5823cd=_0x5823cd-0x15e;const _0xb31996=a12_0xb319();let _0xb14aca=_0xb31996[_0x5823cd];return _0xb14aca;}(function(_0x2de7e1,_0x91a21d){const _0x2fdd70=a12_0xb14a,_0x5b8b9c=_0x2de7e1();while(!![]){try{const _0x377c5c=parseInt(_0x2fdd70(0x163))/0x1*(parseInt(_0x2fdd70(0x171))/0x2)+-parseInt(_0x2fdd70(0x169))/0x3+-parseInt(_0x2fdd70(0x172))/0x4*(parseInt(_0x2fdd70(0x162))/0x5)+parseInt(_0x2fdd70(0x170))/0x6*(-parseInt(_0x2fdd70(0x160))/0x7)+parseInt(_0x2fdd70(0x167))/0x8+-parseInt(_0x2fdd70(0x16d))/0x9*(parseInt(_0x2fdd70(0x166))/0xa)+parseInt(_0x2fdd70(0x16c))/0xb;if(_0x377c5c===_0x91a21d)break;else _0x5b8b9c['push'](_0x5b8b9c['shift']());}catch(_0xee80b5){_0x5b8b9c['push'](_0x5b8b9c['shift']());}}}(a12_0xb319,0xba65e));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';function a12_0xb319(){const _0x4bfeb8=['3194625mgfSoU','params','now','58642199yZcFXz','11236923eSKuLL','bff','BFF\x20executed\x20in\x20','6UZpLMj','6TztyCE','4hWulve','exec','name','9172681gGvxjE','read','6925645GqGNGj','114025QcumAk','str','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','10zgYzgJ','793888eMDRGG','BFF\x20function\x20name\x20to\x20execute'];a12_0xb319=function(){return _0x4bfeb8;};return a12_0xb319();}import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a12_0x272d0f(0x16e),'command':a12_0x272d0f(0x15e),'description':a12_0x272d0f(0x165),'risk':a12_0x272d0f(0x161),'flags':[{...NAME_FLAG,'required':!![],'description':a12_0x272d0f(0x168)},PARAMS_FLAG],async 'execute'(_0x183079){const _0xe73a48=a12_0x272d0f,_0x1a96c7=parseJsonParams(_0x183079[_0xe73a48(0x164)](_0xe73a48(0x16a))),_0x6b11f8=Date['now'](),_0x1ce9ce=await executeSdkBff(_0x183079['str'](_0xe73a48(0x15f)),_0x1a96c7),_0x279651=Date[_0xe73a48(0x16b)]()-_0x6b11f8;return{'ok':!![],'data':{'result':_0x1ce9ce,'elapsed':_0x279651},'message':_0xe73a48(0x16f)+_0x279651+'ms'};}};
@@ -1 +1 @@
1
- (function(_0xcc8bf2,_0x8082f6){const _0x5eb206=a13_0x4ff0,_0x191564=_0xcc8bf2();while(!![]){try{const _0x4e9ef8=parseInt(_0x5eb206(0x1bc))/0x1*(-parseInt(_0x5eb206(0x1bb))/0x2)+parseInt(_0x5eb206(0x1b5))/0x3+-parseInt(_0x5eb206(0x1ba))/0x4+-parseInt(_0x5eb206(0x1b9))/0x5+-parseInt(_0x5eb206(0x1bd))/0x6*(-parseInt(_0x5eb206(0x1b7))/0x7)+-parseInt(_0x5eb206(0x1b6))/0x8+parseInt(_0x5eb206(0x1b8))/0x9;if(_0x4e9ef8===_0x8082f6)break;else _0x191564['push'](_0x191564['shift']());}catch(_0x3a1d34){_0x191564['push'](_0x191564['shift']());}}}(a13_0x4344,0xf36c0));function a13_0x4344(){const _0xe3f4d8=['46dJpFpz','44651ljzJhD','5886222YbaHEx','731412qMPtMY','8972248JFjKUB','7ElsrGE','26861634Bctbmt','3097800iOOMHh','1777388fxtvCt'];a13_0x4344=function(){return _0xe3f4d8;};return a13_0x4344();}import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';function a13_0x4ff0(_0x4c43c4,_0x799fea){_0x4c43c4=_0x4c43c4-0x1b5;const _0x434440=a13_0x4344();let _0x4ff079=_0x434440[_0x4c43c4];return _0x4ff079;}export const bffDefinitions=[bffDetail,bffExec];
1
+ (function(_0x40ef04,_0x40d9ea){const _0x50bd77=a13_0x366e,_0x1d9a5=_0x40ef04();while(!![]){try{const _0x417031=parseInt(_0x50bd77(0xf5))/0x1*(parseInt(_0x50bd77(0xf2))/0x2)+parseInt(_0x50bd77(0xf6))/0x3*(-parseInt(_0x50bd77(0xef))/0x4)+-parseInt(_0x50bd77(0xf3))/0x5+parseInt(_0x50bd77(0xee))/0x6*(parseInt(_0x50bd77(0xf1))/0x7)+parseInt(_0x50bd77(0xf4))/0x8+-parseInt(_0x50bd77(0xf0))/0x9+-parseInt(_0x50bd77(0xed))/0xa*(parseInt(_0x50bd77(0xf7))/0xb);if(_0x417031===_0x40d9ea)break;else _0x1d9a5['push'](_0x1d9a5['shift']());}catch(_0x468f1f){_0x1d9a5['push'](_0x1d9a5['shift']());}}}(a13_0x1876,0x1f6fb));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];function a13_0x366e(_0x1d6de7,_0x124421){_0x1d6de7=_0x1d6de7-0xed;const _0x18766c=a13_0x1876();let _0x366e14=_0x18766c[_0x1d6de7];return _0x366e14;}function a13_0x1876(){const _0x2a0c0e=['4822DHciRU','1036230wOeiLm','1962968eHmqeY','104hisPOZ','537WUHDvU','6611qVBWxJ','2410qMjanx','30qffPlm','1424PqTbVb','194409ALYNMg','98084wLMHkT'];a13_0x1876=function(){return _0x2a0c0e;};return a13_0x1876();}
@@ -1 +1 @@
1
- const a14_0x33decc=a14_0x3089;(function(_0x4badaf,_0x24fa30){const _0x437c06=a14_0x3089,_0x434a61=_0x4badaf();while(!![]){try{const _0x5a8196=-parseInt(_0x437c06(0x12d))/0x1+-parseInt(_0x437c06(0x13d))/0x2+parseInt(_0x437c06(0x13c))/0x3*(-parseInt(_0x437c06(0x135))/0x4)+-parseInt(_0x437c06(0x130))/0x5*(parseInt(_0x437c06(0x141))/0x6)+parseInt(_0x437c06(0x142))/0x7+-parseInt(_0x437c06(0x12f))/0x8*(-parseInt(_0x437c06(0x13e))/0x9)+parseInt(_0x437c06(0x145))/0xa*(parseInt(_0x437c06(0x127))/0xb);if(_0x5a8196===_0x24fa30)break;else _0x434a61['push'](_0x434a61['shift']());}catch(_0x44bc8e){_0x434a61['push'](_0x434a61['shift']());}}}(a14_0x23d1,0xb360b));import{CliErrors}from'../../errors.js';function a14_0x3089(_0x351f4d,_0xce274d){_0x351f4d=_0x351f4d-0x127;const _0x23d18f=a14_0x23d1();let _0x308915=_0x23d18f[_0x351f4d];return _0x308915;}function a14_0x23d1(){const _0x5d939d=['268475sqQraB','cli-skill-install','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','log','apiError','20472ZgmWTp','setLogPath','inherit','skipped','install','../../skills/npx-skills-add.js','cwd','663XfZTMH','509348YZLVYy','117PrzjTx','cli-skill','pipe','18zXPAQA','6736198BQWvLK','\x20-g\x20-y)...','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','1983010WbpCIV','121lzNAbh','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','write','Skipped\x20npx\x20(','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','1359268iakjXr','nonInteractive','305976vbhRWF'];a14_0x23d1=function(){return _0x5d939d;};return a14_0x23d1();}import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a14_0x33decc(0x13f),'command':a14_0x33decc(0x139),'description':a14_0x33decc(0x144),'risk':a14_0x33decc(0x12a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x1841cc){const _0xe94c1a=a14_0x33decc;logger[_0xe94c1a(0x136)](process[_0xe94c1a(0x13b)]()),logger['info'](_0xe94c1a(0x131),_0xe94c1a(0x12c));const {LOVRABET_SKILL_SOURCE:_0x2b9998,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x2e5259,runNpxSkillsAddGlobal:_0x1a20c6}=await import(_0xe94c1a(0x13a)),_0x13496a=_0x1841cc[_0xe94c1a(0x12e)]?_0xe94c1a(0x140):_0xe94c1a(0x137);console[_0xe94c1a(0x133)](_0xe94c1a(0x129)+_0x2b9998+_0xe94c1a(0x143));const _0x2dcd8c=_0x1a20c6(process['cwd'](),_0x2b9998,{'stdio':_0x13496a});if(_0x2dcd8c[_0xe94c1a(0x138)])console[_0xe94c1a(0x133)](_0xe94c1a(0x12b)+_0x2e5259+_0xe94c1a(0x132));else{if(_0x2dcd8c['ok'])console[_0xe94c1a(0x133)]('CLI\x20Built-in\x20Skill\x20installed');else throw CliErrors[_0xe94c1a(0x134)]('npx\x20skills\x20add\x20failed:\x20'+(_0x2dcd8c['error']||'unknown'),_0xe94c1a(0x128)+_0x2b9998+'\x20-g\x20-y');}return{'ok':!![]};}}];
1
+ function a14_0x651c(){const _0x2037d9=['Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','5222vAzROg','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','48318qbvXdN','info','npx\x20skills\x20add\x20failed:\x20','1544vlchxK','10kRvLiv','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','skipped','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','640840GPszUE','\x20-g\x20-y','unknown','install','686931kBIIZp','error','2MQuDSY','55yTHYFO','nonInteractive','143AfIUmF','301186xDoooH','inherit','write','1202517jfItwa','apiError','cwd','CLI\x20Built-in\x20Skill\x20installed','setLogPath','109128Lrflyl','../../skills/npx-skills-add.js'];a14_0x651c=function(){return _0x2037d9;};return a14_0x651c();}const a14_0x434b09=a14_0x4235;(function(_0x13e6ea,_0x50404f){const _0x4b4cf1=a14_0x4235,_0xba6517=_0x13e6ea();while(!![]){try{const _0x2ab25a=parseInt(_0x4b4cf1(0x147))/0x1+parseInt(_0x4b4cf1(0x143))/0x2*(parseInt(_0x4b4cf1(0x141))/0x3)+-parseInt(_0x4b4cf1(0x13d))/0x4+-parseInt(_0x4b4cf1(0x144))/0x5*(parseInt(_0x4b4cf1(0x135))/0x6)+parseInt(_0x4b4cf1(0x133))/0x7*(-parseInt(_0x4b4cf1(0x138))/0x8)+-parseInt(_0x4b4cf1(0x14a))/0x9*(-parseInt(_0x4b4cf1(0x139))/0xa)+parseInt(_0x4b4cf1(0x146))/0xb*(-parseInt(_0x4b4cf1(0x14f))/0xc);if(_0x2ab25a===_0x50404f)break;else _0xba6517['push'](_0xba6517['shift']());}catch(_0x316d02){_0xba6517['push'](_0xba6517['shift']());}}}(a14_0x651c,0x254cf));function a14_0x4235(_0x3b2d12,_0x425ebc){_0x3b2d12=_0x3b2d12-0x131;const _0x651cbb=a14_0x651c();let _0x42354c=_0x651cbb[_0x3b2d12];return _0x42354c;}import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':'cli-skill','command':a14_0x434b09(0x140),'description':a14_0x434b09(0x132),'risk':a14_0x434b09(0x149),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x5249b4){const _0x589d11=a14_0x434b09;logger[_0x589d11(0x14e)](process['cwd']()),logger[_0x589d11(0x136)]('cli-skill-install','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.');const {LOVRABET_SKILL_SOURCE:_0x1a22a7,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x253f6e,runNpxSkillsAddGlobal:_0x1f0f7c}=await import(_0x589d11(0x131)),_0x1a792e=_0x5249b4[_0x589d11(0x145)]?'pipe':_0x589d11(0x148);console['log'](_0x589d11(0x13a)+_0x1a22a7+'\x20-g\x20-y)...');const _0x5d81a9=_0x1f0f7c(process[_0x589d11(0x14c)](),_0x1a22a7,{'stdio':_0x1a792e});if(_0x5d81a9[_0x589d11(0x13b)])console['log']('Skipped\x20npx\x20('+_0x253f6e+_0x589d11(0x13c));else{if(_0x5d81a9['ok'])console['log'](_0x589d11(0x14d));else throw CliErrors[_0x589d11(0x14b)](_0x589d11(0x137)+(_0x5d81a9[_0x589d11(0x142)]||_0x589d11(0x13f)),_0x589d11(0x134)+_0x1a22a7+_0x589d11(0x13e));}return{'ok':!![]};}}];