@lovrabet/lovrabet-cli 2.1.0 → 2.1.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_0x2f7d8c=a0_0xf505;function a0_0x5621(){const _0x3f0c3e=['[preparse]\x20','496tkBvBn','cancelled','help','17666OiBoqU','1306869jltTOB','assign',':\x20--','catch','flags','input','755pCuRAo','message','8XmZhOh','ERR_USE_AFTER_CLOSE','Error:\x20','handler','2ibCDWm','ExitPromptError','./framework/preparse.js','Hint:\x20','defaultCommand','9657LQqbmW','13332UTpHaK','exitCode','write','Unexpected\x20error:','exit','15372aYEYnC','7260820ZRQRVH','unknownCommand','error','998849PGyuCI','corrected','definition','hint','log','10819310bzUzUo','stderr','\x0aCancelled.\x0a','original','args','code'];a0_0x5621=function(){return _0x3f0c3e;};return a0_0x5621();}function a0_0xf505(_0x4cb2b3,_0x2cd18b){_0x4cb2b3=_0x4cb2b3-0xdb;const _0x5621db=a0_0x5621();let _0xf50529=_0x5621db[_0x4cb2b3];return _0xf50529;}(function(_0x35405b,_0x1fa5a0){const _0x5025ef=a0_0xf505,_0x4685b4=_0x35405b();while(!![]){try{const _0x2bde77=-parseInt(_0x5025ef(0xe6))/0x1*(-parseInt(_0x5025ef(0x102))/0x2)+parseInt(_0x5025ef(0xf6))/0x3*(parseInt(_0x5025ef(0xfe))/0x4)+parseInt(_0x5025ef(0xfc))/0x5*(parseInt(_0x5025ef(0xe2))/0x6)+-parseInt(_0x5025ef(0xe3))/0x7+parseInt(_0x5025ef(0xf2))/0x8*(parseInt(_0x5025ef(0xdc))/0x9)+parseInt(_0x5025ef(0xeb))/0xa+-parseInt(_0x5025ef(0xf5))/0xb*(parseInt(_0x5025ef(0xdd))/0xc);if(_0x2bde77===_0x1fa5a0)break;else _0x4685b4['push'](_0x4685b4['shift']());}catch(_0x327982){_0x4685b4['push'](_0x4685b4['shift']());}}}(a0_0x5621,0x8e8d0));import{jsx as a0_0x305673}from'react/jsx-runtime';import a0_0x421915 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_0x421915(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'version':getCliVersionDisplay()});void main()[a0_0x2f7d8c(0xf9)](handleError);async function main(){try{await run();}catch(_0x3ee724){handleError(_0x3ee724);}}async function run(){const _0x3dba53=a0_0x2f7d8c;let _0x43c479=cli[_0x3dba53(0xfb)][0x0],_0x13a221=cli[_0x3dba53(0xfb)][0x1];const _0x437fe5=cli['flags'];try{const {correctFlags:_0x3e2d2c}=await import(_0x3dba53(0x104)),_0x16bed4=getAllDefinitions()['flatMap'](_0x2009b5=>_0x2009b5[_0x3dba53(0xfa)]??[]),{flags:_0x219f3b,corrections:_0x3aa85e}=_0x3e2d2c(_0x437fe5,_0x16bed4);if(_0x3aa85e['length']>0x0){for(const _0x267b6c of _0x3aa85e){process['stderr'][_0x3dba53(0xdf)](_0x3dba53(0xf1)+_0x267b6c[_0x3dba53(0x101)]+_0x3dba53(0xf8)+_0x267b6c[_0x3dba53(0xee)]+'\x20->\x20--'+_0x267b6c[_0x3dba53(0xe7)]+'\x0a');}Object[_0x3dba53(0xf7)](_0x437fe5,_0x219f3b);}}catch{}if(!_0x43c479){const {waitUntilExit:_0x217e5d}=render(a0_0x305673(Help,{}));await _0x217e5d();return;}if(!isKnownService(_0x43c479)){const _0x3abdd6=resolveDynamicServiceCommand(cli[_0x3dba53(0xfb)],_0x437fe5);if(_0x3abdd6){if(_0x437fe5[_0x3dba53(0xf4)]){console[_0x3dba53(0xea)](generateCommandHelp(_0x3abdd6[_0x3dba53(0xe8)]));return;}Object[_0x3dba53(0xf7)](_0x437fe5,_0x3abdd6['flags']);const _0x4741d4=buildConfigFromFlags(_0x437fe5);await initGlobalEnvironment(_0x4741d4);const _0x1268a1=createPipelineEnv(_0x4741d4,_0x437fe5);_0x1268a1[_0x3dba53(0xef)]=_0x3abdd6[_0x3dba53(0xef)],await runCommand(_0x3abdd6['definition'],_0x1268a1);return;}if(_0x437fe5[_0x3dba53(0xf4)]){const _0x4d1249=generateDynamicServiceHelp(_0x43c479);if(_0x4d1249){console[_0x3dba53(0xea)](_0x4d1249);return;}}const {waitUntilExit:_0x2d2662}=render(a0_0x305673(Help,{}));await _0x2d2662();return;}const _0xef0144=getServiceEntry(_0x43c479);if(!_0x13a221){if(_0x437fe5['help']){console['log'](generateServiceHelp(_0x43c479));return;}if(_0xef0144[_0x3dba53(0xdb)])_0x13a221=_0xef0144[_0x3dba53(0xdb)];else{console[_0x3dba53(0xea)](generateServiceHelp(_0x43c479));return;}}const _0xf05b3b=findDefinition(_0x43c479,_0x13a221);!_0xf05b3b&&(console[_0x3dba53(0xea)](generateServiceHelp(_0x43c479)),handleError(CliErrors[_0x3dba53(0xe4)](_0x43c479+'\x20'+_0x13a221)));if(_0x437fe5['help']){console['log'](generateCommandHelp(_0xf05b3b));return;}const _0x3520f6=buildConfigFromFlags(_0x437fe5);await initGlobalEnvironment(_0x3520f6);const _0x363f84=createPipelineEnv(_0x3520f6,_0x437fe5);_0x363f84['args']=cli['input']['slice'](0x2),await runCommand(_0xf05b3b,_0x363f84);}function handleError(_0x2d0572){const _0x402f27=a0_0x2f7d8c;if(_0x2d0572 instanceof CliError){_0x2d0572['code']===_0x402f27(0xf3)&&(process[_0x402f27(0xec)][_0x402f27(0xdf)]('\x0aCancelled.\x0a'),process[_0x402f27(0xe1)](0x0));console[_0x402f27(0xe5)](_0x402f27(0x100)+_0x2d0572[_0x402f27(0xfd)]);if(_0x2d0572[_0x402f27(0xe9)])console[_0x402f27(0xe5)](_0x402f27(0x105)+_0x2d0572['hint']);process[_0x402f27(0xe1)](_0x2d0572[_0x402f27(0xde)]);}isUserCancellation(_0x2d0572)&&(process[_0x402f27(0xec)][_0x402f27(0xdf)](_0x402f27(0xed)),process['exit'](0x0)),console[_0x402f27(0xe5)](_0x402f27(0xe0),_0x2d0572),process[_0x402f27(0xe1)](0x1);}function isUserCancellation(_0x4103a8){const _0x2447cf=a0_0x2f7d8c;if(!(_0x4103a8 instanceof Error))return![];if(_0x4103a8['name']===_0x2447cf(0x103))return!![];if(_0x4103a8[_0x2447cf(0xf0)]===_0x2447cf(0xff))return!![];if(_0x4103a8['code']==='ERR_STREAM_DESTROYED')return!![];return![];}
2
+ const a0_0x7afeb8=a0_0x34f3;(function(_0x165072,_0x4b6b33){const _0x450897=a0_0x34f3,_0x717687=_0x165072();while(!![]){try{const _0x1627df=-parseInt(_0x450897(0x9f))/0x1*(parseInt(_0x450897(0xa8))/0x2)+-parseInt(_0x450897(0x9e))/0x3+parseInt(_0x450897(0xb2))/0x4*(-parseInt(_0x450897(0x97))/0x5)+parseInt(_0x450897(0xa7))/0x6*(parseInt(_0x450897(0x92))/0x7)+parseInt(_0x450897(0x8f))/0x8+-parseInt(_0x450897(0xb5))/0x9*(-parseInt(_0x450897(0xae))/0xa)+-parseInt(_0x450897(0x99))/0xb;if(_0x1627df===_0x4b6b33)break;else _0x717687['push'](_0x717687['shift']());}catch(_0x5259cd){_0x717687['push'](_0x717687['shift']());}}}(a0_0x37fa,0x89963));import{jsx as a0_0x2a1bf6}from'react/jsx-runtime';import a0_0x596fd7 from'meow';import{render}from'ink';import{Help}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{buildConfigFromFlags,initGlobalEnvironment}from'./context.js';import{isKnownService,getServiceEntry,findDefinition,getAllDefinitions}from'./commands/registry.js';import{generateDynamicServiceHelp,resolveDynamicServiceCommand}from'./commands/service/dynamic.js';import{runCommand,createPipelineEnv}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{buildMeowFlags}from'./constant/cli.js';import{getCliVersionDisplay}from'./utils/version.js';function a0_0x37fa(){const _0x3673a2=['exit','flags','70065deCpzB','write','12379620cfAOmd','message','original','\x20->\x20--','ExitPromptError','1134816rDhpnM','1SZRjMs','error','ERR_STREAM_DESTROYED','args','flatMap',':\x20--','name','definition','6587130wbSxLp','1223006PJkDnx','[preparse]\x20','Unexpected\x20error:','catch','stderr','help','10cvHlbf','hint','cancelled','assign','164gOPxhO','\x0aCancelled.\x0a','log','9797562PZLgQD','Hint:\x20','defaultCommand','exitCode','8534480IfDsKM','input','code','7nqcezK','handler','unknownCommand'];a0_0x37fa=function(){return _0x3673a2;};return a0_0x37fa();}const helpText=generateFullHelp(),cli=a0_0x596fd7(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'version':getCliVersionDisplay()});void main()[a0_0x7afeb8(0xab)](handleError);async function main(){try{await run();}catch(_0x5d156a){handleError(_0x5d156a);}}async function run(){const _0x515864=a0_0x7afeb8;let _0x830dd4=cli['input'][0x0],_0x75d0ba=cli[_0x515864(0x90)][0x1];const _0x493cc0=cli['flags'];try{const {correctFlags:_0x3bcf14}=await import('./framework/preparse.js'),_0xb484f4=getAllDefinitions()[_0x515864(0xa3)](_0x255d85=>_0x255d85[_0x515864(0x96)]??[]),{flags:_0x2e4046,corrections:_0x3b5945}=_0x3bcf14(_0x493cc0,_0xb484f4);if(_0x3b5945['length']>0x0){for(const _0x2866da of _0x3b5945){process[_0x515864(0xac)][_0x515864(0x98)](_0x515864(0xa9)+_0x2866da[_0x515864(0x93)]+_0x515864(0xa4)+_0x2866da[_0x515864(0x9b)]+_0x515864(0x9c)+_0x2866da['corrected']+'\x0a');}Object[_0x515864(0xb1)](_0x493cc0,_0x2e4046);}}catch{}if(!_0x830dd4){const {waitUntilExit:_0x33e267}=render(a0_0x2a1bf6(Help,{}));await _0x33e267();return;}if(!isKnownService(_0x830dd4)){const _0x44070a=resolveDynamicServiceCommand(cli[_0x515864(0x90)],_0x493cc0);if(_0x44070a){if(_0x493cc0['help']){console[_0x515864(0xb4)](generateCommandHelp(_0x44070a[_0x515864(0xa6)]));return;}Object['assign'](_0x493cc0,_0x44070a['flags']);const _0x5c8716=buildConfigFromFlags(_0x493cc0);await initGlobalEnvironment(_0x5c8716);const _0x47ec84=createPipelineEnv(_0x5c8716,_0x493cc0);_0x47ec84[_0x515864(0xa2)]=_0x44070a['args'],await runCommand(_0x44070a[_0x515864(0xa6)],_0x47ec84);return;}if(_0x493cc0[_0x515864(0xad)]){const _0x4f4871=generateDynamicServiceHelp(_0x830dd4);if(_0x4f4871){console['log'](_0x4f4871);return;}}const {waitUntilExit:_0x319891}=render(a0_0x2a1bf6(Help,{}));await _0x319891();return;}const _0x26a11f=getServiceEntry(_0x830dd4);if(!_0x75d0ba){if(_0x493cc0['help']){console['log'](generateServiceHelp(_0x830dd4));return;}if(_0x26a11f[_0x515864(0xb7)])_0x75d0ba=_0x26a11f[_0x515864(0xb7)];else{console[_0x515864(0xb4)](generateServiceHelp(_0x830dd4));return;}}const _0x1beb00=findDefinition(_0x830dd4,_0x75d0ba);!_0x1beb00&&(console['log'](generateServiceHelp(_0x830dd4)),handleError(CliErrors[_0x515864(0x94)](_0x830dd4+'\x20'+_0x75d0ba)));if(_0x493cc0['help']){console['log'](generateCommandHelp(_0x1beb00));return;}const _0x10f778=buildConfigFromFlags(_0x493cc0);await initGlobalEnvironment(_0x10f778);const _0x23afd8=createPipelineEnv(_0x10f778,_0x493cc0);_0x23afd8['args']=cli[_0x515864(0x90)]['slice'](0x2),await runCommand(_0x1beb00,_0x23afd8);}function handleError(_0x1dddc6){const _0x1f2241=a0_0x7afeb8;if(_0x1dddc6 instanceof CliError){_0x1dddc6['code']===_0x1f2241(0xb0)&&(process['stderr'][_0x1f2241(0x98)](_0x1f2241(0xb3)),process[_0x1f2241(0x95)](0x0));console[_0x1f2241(0xa0)]('Error:\x20'+_0x1dddc6[_0x1f2241(0x9a)]);if(_0x1dddc6[_0x1f2241(0xaf)])console[_0x1f2241(0xa0)](_0x1f2241(0xb6)+_0x1dddc6[_0x1f2241(0xaf)]);process['exit'](_0x1dddc6[_0x1f2241(0x8e)]);}isUserCancellation(_0x1dddc6)&&(process[_0x1f2241(0xac)][_0x1f2241(0x98)](_0x1f2241(0xb3)),process[_0x1f2241(0x95)](0x0)),console[_0x1f2241(0xa0)](_0x1f2241(0xaa),_0x1dddc6),process[_0x1f2241(0x95)](0x1);}function a0_0x34f3(_0x5f96d1,_0x26b230){_0x5f96d1=_0x5f96d1-0x8e;const _0x37fad2=a0_0x37fa();let _0x34f38a=_0x37fad2[_0x5f96d1];return _0x34f38a;}function isUserCancellation(_0xa1c3dd){const _0x148533=a0_0x7afeb8;if(!(_0xa1c3dd instanceof Error))return![];if(_0xa1c3dd[_0x148533(0xa5)]===_0x148533(0x9d))return!![];if(_0xa1c3dd[_0x148533(0x91)]==='ERR_USE_AFTER_CLOSE')return!![];if(_0xa1c3dd['code']===_0x148533(0xa1))return!![];return![];}
@@ -1 +1 @@
1
- const a1_0x205339=a1_0x4b63;(function(_0x12b6a8,_0x42996d){const _0x1cc1c3=a1_0x4b63,_0x45a2d5=_0x12b6a8();while(!![]){try{const _0x35f8c7=parseInt(_0x1cc1c3(0x1d7))/0x1+parseInt(_0x1cc1c3(0x1ca))/0x2+parseInt(_0x1cc1c3(0x1e7))/0x3+-parseInt(_0x1cc1c3(0x1f4))/0x4*(parseInt(_0x1cc1c3(0x210))/0x5)+-parseInt(_0x1cc1c3(0x1d1))/0x6+parseInt(_0x1cc1c3(0x20f))/0x7+parseInt(_0x1cc1c3(0x1b6))/0x8*(-parseInt(_0x1cc1c3(0x1ed))/0x9);if(_0x35f8c7===_0x42996d)break;else _0x45a2d5['push'](_0x45a2d5['shift']());}catch(_0x448111){_0x45a2d5['push'](_0x45a2d5['shift']());}}}(a1_0x8007,0x844ab));import{CliErrors}from'../../errors.js';const CATEGORY_FLAG={'name':'category','type':a1_0x205339(0x1c3),'description':a1_0x205339(0x204)},KEYWORD_FLAG={'name':a1_0x205339(0x1ce),'type':a1_0x205339(0x1c3),'description':a1_0x205339(0x1ee)},DOC_CODE_FLAG={'name':a1_0x205339(0x1ef),'type':a1_0x205339(0x1c3),'required':!![],'description':'API\x20doc\x20code,\x20for\x20example\x20dataset_list'},DOCS=[{'code':a1_0x205339(0x1d0),'category':a1_0x205339(0x1c9),'title':a1_0x205339(0x1ea),'method':a1_0x205339(0x1c0),'path':'/api/dataset/get-dataset-list-by-app-code','summary':a1_0x205339(0x1d6),'whenToUse':a1_0x205339(0x1c7),'pathParams':[],'queryParams':[],'bodySchema':a1_0x205339(0x1c4),'responseHighlights':[a1_0x205339(0x1c5),a1_0x205339(0x1bb)],'examples':['lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress'],'notes':[a1_0x205339(0x1be)],'markdown':[a1_0x205339(0x1e3),'','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.'][a1_0x205339(0x1fa)]('\x0a')},{'code':a1_0x205339(0x1cb),'category':a1_0x205339(0x1c9),'title':'Dataset\x20detail','method':'GET','path':a1_0x205339(0x1f8),'summary':'获取数据集详情','whenToUse':a1_0x205339(0x211),'pathParams':[],'queryParams':[{'name':'code','description':'32-character\x20dataset\x20code'}],'bodySchema':a1_0x205339(0x1dd),'responseHighlights':[a1_0x205339(0x1ba),a1_0x205339(0x1d8)],'examples':[a1_0x205339(0x208)],'notes':['If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.'],'markdown':['##\x20Dataset\x20detail','',a1_0x205339(0x1d2)][a1_0x205339(0x1fa)]('\x0a')},{'code':a1_0x205339(0x1d4),'category':a1_0x205339(0x1c9),'title':a1_0x205339(0x1f1),'method':'POST','path':a1_0x205339(0x1cd),'summary':a1_0x205339(0x1fb),'whenToUse':a1_0x205339(0x1fc),'pathParams':[{'name':a1_0x205339(0x1e5),'description':a1_0x205339(0x1f0)},{'name':a1_0x205339(0x1df),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':'{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','responseHighlights':[a1_0x205339(0x1e8),a1_0x205339(0x1b2)],'examples':['lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:5}\x27'],'notes':[a1_0x205339(0x1e1)],'markdown':['##\x20Filter\x20dataset\x20data','',a1_0x205339(0x1da)][a1_0x205339(0x1fa)]('\x0a')},{'code':'dataset_data_aggregate','category':a1_0x205339(0x1c9),'title':a1_0x205339(0x1eb),'method':a1_0x205339(0x1c0),'path':a1_0x205339(0x1db),'summary':a1_0x205339(0x1c2),'whenToUse':'需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用','pathParams':[{'name':a1_0x205339(0x1e5),'description':a1_0x205339(0x1f0)},{'name':a1_0x205339(0x1df),'description':a1_0x205339(0x20a)}],'queryParams':[],'bodySchema':'{\x22aggregate\x22:[{\x22column\x22:\x20\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','responseHighlights':[a1_0x205339(0x1de),a1_0x205339(0x1f7)],'examples':[a1_0x205339(0x1f5)],'notes':[a1_0x205339(0x1c8),a1_0x205339(0x1fd)],'markdown':[a1_0x205339(0x206),'',a1_0x205339(0x1b9)][a1_0x205339(0x1fa)]('\x0a')},{'code':'dataset_data_get_one','category':a1_0x205339(0x1c9),'title':'Get\x20one\x20dataset\x20record','method':a1_0x205339(0x1c0),'path':a1_0x205339(0x1e4),'summary':a1_0x205339(0x209),'whenToUse':'已经知道记录\x20id,需要按数据集读取单条业务数据时使用','pathParams':[{'name':a1_0x205339(0x1e5),'description':a1_0x205339(0x1f0)},{'name':a1_0x205339(0x1df),'description':a1_0x205339(0x20a)}],'queryParams':[],'bodySchema':'{\x22id\x22:123}','responseHighlights':[a1_0x205339(0x1e6)],'examples':['lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27'],'notes':[a1_0x205339(0x1c6)],'markdown':a1_0x205339(0x1f2)},{'code':a1_0x205339(0x1bf),'category':a1_0x205339(0x1c9),'title':a1_0x205339(0x1bd),'method':a1_0x205339(0x1c0),'path':'/api/{appCode}/{datasetCode}/create','summary':a1_0x205339(0x20d),'whenToUse':'需要向指定数据集新增一条业务数据时使用','pathParams':[{'name':a1_0x205339(0x1e5),'description':a1_0x205339(0x1f0)},{'name':a1_0x205339(0x1df),'description':a1_0x205339(0x20a)}],'queryParams':[],'bodySchema':a1_0x205339(0x1f6),'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_0x205339(0x203)],'markdown':'##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.'},{'code':a1_0x205339(0x1e9),'category':'bf','title':'List\x20BF\x20endpoint\x20functions','method':a1_0x205339(0x1b5),'path':a1_0x205339(0x200),'summary':'获取应用下可调用的\x20BF\x20函数列表','whenToUse':'需要先确认当前应用有哪些可执行的\x20BF/ENDPOINT\x20函数,以及收敛可用\x20scriptName\x20时使用','pathParams':[{'name':a1_0x205339(0x1e5),'description':a1_0x205339(0x1f0)}],'queryParams':[],'bodySchema':a1_0x205339(0x1dd),'responseHighlights':[a1_0x205339(0x205)],'examples':['lovrabet\x20bff\x20detail\x20--id\x20<scriptId>\x20--appcode\x20<appCode>'],'notes':['CLI\x20has\x20typed\x20`bff\x20detail`\x20and\x20`bff\x20exec`\x20commands\x20for\x20endpoint\x20scripts.'],'markdown':a1_0x205339(0x1af)},{'code':'bf_execute','category':'bf','title':a1_0x205339(0x1fe),'method':a1_0x205339(0x1c0),'path':a1_0x205339(0x201),'summary':'执行指定\x20BF\x20函数','whenToUse':a1_0x205339(0x202),'pathParams':[{'name':'appCode','description':a1_0x205339(0x1f0)},{'name':'scriptName','description':'Endpoint\x20function\x20name'}],'queryParams':[],'bodySchema':a1_0x205339(0x1e0),'responseHighlights':[a1_0x205339(0x1d9)],'examples':[a1_0x205339(0x1b8)],'notes':['Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.'],'markdown':'##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.'},{'code':'custom_sql_execute','category':'custom_sql','title':a1_0x205339(0x1b1),'method':a1_0x205339(0x1c0),'path':'/api/custom/executeSql','summary':a1_0x205339(0x1cc),'whenToUse':a1_0x205339(0x20c),'pathParams':[],'queryParams':[],'bodySchema':a1_0x205339(0x1b0),'responseHighlights':['Returns\x20SQL\x20execution\x20payload'],'examples':['lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27'],'notes':['Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.'],'markdown':a1_0x205339(0x20b)}];function entrySummary(_0x5a12e6){const _0x14561a=a1_0x205339;return{'code':_0x5a12e6['code'],'category':_0x5a12e6[_0x14561a(0x1dc)],'method':_0x5a12e6[_0x14561a(0x212)],'path':_0x5a12e6[_0x14561a(0x207)],'summary':_0x5a12e6['summary'],'whenToUse':_0x5a12e6[_0x14561a(0x1b4)]};}export function listApiDocEntries(_0x75493d={}){const _0x1a93a5=a1_0x205339,_0x401b92=String(_0x75493d[_0x1a93a5(0x1dc)]||'')[_0x1a93a5(0x1f3)](),_0x44f89d=String(_0x75493d[_0x1a93a5(0x1ce)]||'')[_0x1a93a5(0x1f3)]()['toLowerCase']();return DOCS['filter'](_0x6813a6=>{const _0x2c3ba8=_0x1a93a5;if(_0x401b92&&_0x6813a6[_0x2c3ba8(0x1dc)]!==_0x401b92)return![];if(!_0x44f89d)return!![];return[_0x6813a6['code'],_0x6813a6[_0x2c3ba8(0x1dc)],_0x6813a6[_0x2c3ba8(0x212)],_0x6813a6['path'],_0x6813a6['summary'],_0x6813a6[_0x2c3ba8(0x1b4)],_0x6813a6[_0x2c3ba8(0x1c1)]]['join']('\x20')[_0x2c3ba8(0x1d3)]()[_0x2c3ba8(0x20e)](_0x44f89d);})[_0x1a93a5(0x1b3)](entrySummary);}export function getApiDocDetail(_0x3c356e){const _0x28c341=a1_0x205339,_0x2988f4=DOCS['find'](_0x47b7f7=>_0x47b7f7['code']===_0x3c356e);if(!_0x2988f4)throw CliErrors[_0x28c341(0x1b7)](_0x28c341(0x1e2)+_0x3c356e);return{..._0x2988f4};}function a1_0x8007(){const _0x5d490e=['/api/dataset/getOneByCode?code={datasetCode}','list','join','条件过滤查询数据','需要携带\x20where、orderBy、分页等条件读取业务数据时使用','`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','Execute\x20BF\x20endpoint\x20function','Show\x20runtime\x20API\x20documentation\x20by\x20code','/api/endpoint/{appCode}/functions','/api/endpoint/{appCode}/{scriptName}','已经确认目标\x20BF\x20的\x20scriptName,且需要实际调用该\x20ENDPOINT\x20脚本完成业务操作时使用','This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.','Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset','Returns\x20endpoint\x20functionName/id/description','##\x20Aggregate\x20dataset\x20data','path','lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>','查询单条数据','32-character\x20dataset\x20code','##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.','已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','创建数据','includes','5604074ZcmrTo','2607895cRtpNM','需要按数据集\x20code\x20获取字段、表信息或操作定义时使用','method','str','##\x20List\x20BF\x20endpoint\x20functions\x0a\x0aDiscover\x20executable\x20endpoint\x20functions.','{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','Execute\x20custom\x20SQL','paging\x20contains\x20pagination','map','whenToUse','GET','8jjfZUW','validation','lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.','fields/properties\x20describe\x20data\x20shape','paging.totalCount\x20gives\x20total\x20rows','api-doc','Create\x20dataset\x20record','CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.','dataset_data_create','POST','title','聚合查询数据集数据','string','{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','tableData\x20contains\x20dataset\x20id/code/name','Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.','需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.','dataset','1826606TpEKOf','dataset_detail','执行自定义\x20SQL','/api/{appCode}/{datasetCode}/filter','keyword','read','dataset_list','2598210CggHLt','Inspect\x20field\x20names\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.','toLowerCase','dataset_data_filter','length','分页获取数据集列表','64193DpJKYA','operations\x20describes\x20runtime\x20APIs','Returns\x20script\x20business\x20payload','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.','/api/{appCode}/{datasetCode}/aggregate','category','None','result\x20rows\x20contain\x20aggregate\x20aliases','datasetCode','{\x22param\x22:\x22value\x22}','Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.','API\x20doc\x20code\x20not\x20found:\x20','##\x20List\x20datasets','/api/{appCode}/{datasetCode}/getOne','appCode','Returns\x20one\x20matching\x20business\x20record','875268SRbIuc','tableData\x20contains\x20records','bf_function_list','List\x20datasets','Aggregate\x20dataset\x20data','List\x20available\x20runtime\x20API\x20documentation\x20entries','5160177NuVfKG','Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text','code','Current\x20app\x20code','Filter\x20dataset\x20data','##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.','trim','4DcTBeP','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','{\x22fieldName\x22:\x22value\x22}','where\x20filters\x20before\x20aggregation'];a1_0x8007=function(){return _0x5d490e;};return a1_0x8007();}function a1_0x4b63(_0x1e29f2,_0x44be30){_0x1e29f2=_0x1e29f2-0x1af;const _0x80077=a1_0x8007();let _0x4b63ba=_0x80077[_0x1e29f2];return _0x4b63ba;}const apiDocList={'service':'api-doc','command':a1_0x205339(0x1f9),'description':a1_0x205339(0x1ec),'risk':'read','requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0x412878){const _0x5b5878=a1_0x205339,_0x21ea8a=listApiDocEntries({'category':_0x412878[_0x5b5878(0x213)](_0x5b5878(0x1dc)),'keyword':_0x412878[_0x5b5878(0x213)](_0x5b5878(0x1ce))});return{'ok':!![],'data':{'total':_0x21ea8a[_0x5b5878(0x1d5)],'items':_0x21ea8a}};}},apiDocDetail={'service':a1_0x205339(0x1bc),'command':'detail','description':a1_0x205339(0x1ff),'risk':a1_0x205339(0x1cf),'requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0x134e62){const _0x5377a9=a1_0x205339;return{'ok':!![],'data':getApiDocDetail(_0x134e62[_0x5377a9(0x213)](_0x5377a9(0x1ef)))};}};export const apiDocDefinitions=[apiDocList,apiDocDetail];
1
+ function a1_0xa18b(_0x2924b9,_0x4ed27d){_0x2924b9=_0x2924b9-0xb9;const _0x36623e=a1_0x3662();let _0xa18b80=_0x36623e[_0x2924b9];return _0xa18b80;}const a1_0xa7a461=a1_0xa18b;(function(_0xd15889,_0x387165){const _0x5cdb20=a1_0xa18b,_0x5e0483=_0xd15889();while(!![]){try{const _0x2fc539=-parseInt(_0x5cdb20(0xce))/0x1*(parseInt(_0x5cdb20(0x10b))/0x2)+parseInt(_0x5cdb20(0x104))/0x3*(parseInt(_0x5cdb20(0xd3))/0x4)+-parseInt(_0x5cdb20(0xbe))/0x5*(parseInt(_0x5cdb20(0x133))/0x6)+-parseInt(_0x5cdb20(0xb9))/0x7*(parseInt(_0x5cdb20(0xe5))/0x8)+-parseInt(_0x5cdb20(0x10a))/0x9*(parseInt(_0x5cdb20(0xe7))/0xa)+-parseInt(_0x5cdb20(0xd0))/0xb*(parseInt(_0x5cdb20(0xe8))/0xc)+parseInt(_0x5cdb20(0xdb))/0xd;if(_0x2fc539===_0x387165)break;else _0x5e0483['push'](_0x5e0483['shift']());}catch(_0x36acd8){_0x5e0483['push'](_0x5e0483['shift']());}}}(a1_0x3662,0x92204));import{CliErrors}from'../../errors.js';const CATEGORY_FLAG={'name':a1_0xa7a461(0x127),'type':'string','description':'Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset'},KEYWORD_FLAG={'name':a1_0xa7a461(0x130),'type':a1_0xa7a461(0xde),'description':a1_0xa7a461(0x11b)},DOC_CODE_FLAG={'name':a1_0xa7a461(0xd9),'type':a1_0xa7a461(0xde),'required':!![],'description':a1_0xa7a461(0xd4)},DOCS=[{'code':a1_0xa7a461(0xd1),'category':a1_0xa7a461(0x128),'title':a1_0xa7a461(0xf6),'method':a1_0xa7a461(0xfd),'path':a1_0xa7a461(0x111),'summary':a1_0xa7a461(0xd5),'whenToUse':'需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','pathParams':[],'queryParams':[],'bodySchema':'{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','responseHighlights':[a1_0xa7a461(0x125),a1_0xa7a461(0xe3)],'examples':[a1_0xa7a461(0xbb)],'notes':[a1_0xa7a461(0xd7)],'markdown':[a1_0xa7a461(0xee),'',a1_0xa7a461(0xcf)][a1_0xa7a461(0xf5)]('\x0a')},{'code':a1_0xa7a461(0x10e),'category':a1_0xa7a461(0x128),'title':a1_0xa7a461(0xf8),'method':a1_0xa7a461(0xf4),'path':a1_0xa7a461(0x135),'summary':a1_0xa7a461(0xea),'whenToUse':a1_0xa7a461(0xfa),'pathParams':[],'queryParams':[{'name':a1_0xa7a461(0xd9),'description':a1_0xa7a461(0xc3)}],'bodySchema':a1_0xa7a461(0xda),'responseHighlights':[a1_0xa7a461(0xbf),a1_0xa7a461(0x10f)],'examples':[a1_0xa7a461(0xff)],'notes':[a1_0xa7a461(0xcd)],'markdown':[a1_0xa7a461(0x116),'',a1_0xa7a461(0xf1)][a1_0xa7a461(0xf5)]('\x0a')},{'code':a1_0xa7a461(0x101),'category':'dataset','title':'Filter\x20dataset\x20data','method':a1_0xa7a461(0xfd),'path':a1_0xa7a461(0xf3),'summary':a1_0xa7a461(0x10d),'whenToUse':a1_0xa7a461(0x129),'pathParams':[{'name':a1_0xa7a461(0xf0),'description':a1_0xa7a461(0x120)},{'name':a1_0xa7a461(0x11c),'description':a1_0xa7a461(0xc3)}],'queryParams':[],'bodySchema':a1_0xa7a461(0xca),'responseHighlights':[a1_0xa7a461(0x117),'paging\x20contains\x20pagination'],'examples':['lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:5}\x27'],'notes':[a1_0xa7a461(0xdc)],'markdown':[a1_0xa7a461(0x132),'',a1_0xa7a461(0xd8)]['join']('\x0a')},{'code':a1_0xa7a461(0x115),'category':a1_0xa7a461(0x128),'title':a1_0xa7a461(0x12e),'method':a1_0xa7a461(0xfd),'path':'/api/{appCode}/{datasetCode}/aggregate','summary':a1_0xa7a461(0xbd),'whenToUse':a1_0xa7a461(0x118),'pathParams':[{'name':'appCode','description':a1_0xa7a461(0x120)},{'name':a1_0xa7a461(0x11c),'description':a1_0xa7a461(0xc3)}],'queryParams':[],'bodySchema':a1_0xa7a461(0xc4),'responseHighlights':[a1_0xa7a461(0x12c),a1_0xa7a461(0xc8)],'examples':[a1_0xa7a461(0x102)],'notes':[a1_0xa7a461(0x12d),a1_0xa7a461(0xf9)],'markdown':[a1_0xa7a461(0xba),'',a1_0xa7a461(0xcb)][a1_0xa7a461(0xf5)]('\x0a')},{'code':a1_0xa7a461(0xfc),'category':'dataset','title':a1_0xa7a461(0x106),'method':'POST','path':'/api/{appCode}/{datasetCode}/getOne','summary':a1_0xa7a461(0x126),'whenToUse':'已经知道记录\x20id,需要按数据集读取单条业务数据时使用','pathParams':[{'name':'appCode','description':a1_0xa7a461(0x120)},{'name':a1_0xa7a461(0x11c),'description':a1_0xa7a461(0xc3)}],'queryParams':[],'bodySchema':a1_0xa7a461(0x12a),'responseHighlights':[a1_0xa7a461(0x110)],'examples':[a1_0xa7a461(0xbc)],'notes':[a1_0xa7a461(0x11d)],'markdown':a1_0xa7a461(0xed)},{'code':'dataset_data_create','category':a1_0xa7a461(0x128),'title':a1_0xa7a461(0xec),'method':'POST','path':'/api/{appCode}/{datasetCode}/create','summary':'创建数据','whenToUse':a1_0xa7a461(0x112),'pathParams':[{'name':'appCode','description':a1_0xa7a461(0x120)},{'name':a1_0xa7a461(0x11c),'description':a1_0xa7a461(0xc3)}],'queryParams':[],'bodySchema':a1_0xa7a461(0x121),'responseHighlights':[a1_0xa7a461(0x103)],'examples':['lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27'],'notes':[a1_0xa7a461(0x109)],'markdown':a1_0xa7a461(0x114)},{'code':a1_0xa7a461(0xdd),'category':'bf','title':a1_0xa7a461(0x12f),'method':a1_0xa7a461(0xf4),'path':a1_0xa7a461(0x123),'summary':a1_0xa7a461(0xe9),'whenToUse':'需要先确认当前应用有哪些可执行的\x20BF/ENDPOINT\x20函数,以及收敛可用\x20scriptName\x20时使用','pathParams':[{'name':a1_0xa7a461(0xf0),'description':'Current\x20app\x20code'}],'queryParams':[],'bodySchema':'None','responseHighlights':[a1_0xa7a461(0xe6)],'examples':[a1_0xa7a461(0x134)],'notes':[a1_0xa7a461(0xd6)],'markdown':a1_0xa7a461(0xe2)},{'code':a1_0xa7a461(0x11e),'category':'bf','title':a1_0xa7a461(0xdf),'method':a1_0xa7a461(0xfd),'path':a1_0xa7a461(0xfb),'summary':a1_0xa7a461(0x12b),'whenToUse':a1_0xa7a461(0xcc),'pathParams':[{'name':'appCode','description':'Current\x20app\x20code'},{'name':a1_0xa7a461(0xef),'description':'Endpoint\x20function\x20name'}],'queryParams':[],'bodySchema':a1_0xa7a461(0x119),'responseHighlights':[a1_0xa7a461(0x100)],'examples':['lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27'],'notes':['Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.'],'markdown':a1_0xa7a461(0x105)},{'code':'custom_sql_execute','category':a1_0xa7a461(0x11f),'title':a1_0xa7a461(0xc9),'method':a1_0xa7a461(0xfd),'path':a1_0xa7a461(0xc0),'summary':a1_0xa7a461(0xe4),'whenToUse':'已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','pathParams':[],'queryParams':[],'bodySchema':a1_0xa7a461(0xc7),'responseHighlights':['Returns\x20SQL\x20execution\x20payload'],'examples':[a1_0xa7a461(0xc6)],'notes':[a1_0xa7a461(0x10c)],'markdown':a1_0xa7a461(0x131)}];function entrySummary(_0x1c8ee4){const _0xcdfab2=a1_0xa7a461;return{'code':_0x1c8ee4['code'],'category':_0x1c8ee4[_0xcdfab2(0x127)],'method':_0x1c8ee4[_0xcdfab2(0xfe)],'path':_0x1c8ee4[_0xcdfab2(0x122)],'summary':_0x1c8ee4['summary'],'whenToUse':_0x1c8ee4['whenToUse']};}function a1_0x3662(){const _0x4d3031=['/api/dataset/get-dataset-list-by-app-code','需要向指定数据集新增一条业务数据时使用','whenToUse','##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.','dataset_data_aggregate','##\x20Dataset\x20detail','tableData\x20contains\x20records','需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用','{\x22param\x22:\x22value\x22}','find','Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text','datasetCode','Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.','bf_execute','custom_sql','Current\x20app\x20code','{\x22fieldName\x22:\x22value\x22}','path','/api/endpoint/{appCode}/functions','list','tableData\x20contains\x20dataset\x20id/code/name','查询单条数据','category','dataset','需要携带\x20where、orderBy、分页等条件读取业务数据时使用','{\x22id\x22:123}','执行指定\x20BF\x20函数','result\x20rows\x20contain\x20aggregate\x20aliases','Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.','Aggregate\x20dataset\x20data','List\x20BF\x20endpoint\x20functions','keyword','##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.','##\x20Filter\x20dataset\x20data','24KGTrXR','lovrabet\x20bff\x20detail\x20--id\x20<scriptId>\x20--appcode\x20<appCode>','/api/dataset/getOneByCode?code={datasetCode}','99764uaaRnF','##\x20Aggregate\x20dataset\x20data','lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27','聚合查询数据集数据','210905wFMurc','fields/properties\x20describe\x20data\x20shape','/api/custom/executeSql','Show\x20runtime\x20API\x20documentation\x20by\x20code','read','32-character\x20dataset\x20code','{\x22aggregate\x22:[{\x22column\x22:\x20\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','validation','lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27','{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','where\x20filters\x20before\x20aggregation','Execute\x20custom\x20SQL','{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.','已经确认目标\x20BF\x20的\x20scriptName,且需要实际调用该\x20ENDPOINT\x20脚本完成业务操作时使用','If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.','999301oehAEt','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.','11UyWafO','dataset_list','title','4GzrIiQ','API\x20doc\x20code,\x20for\x20example\x20dataset_list','分页获取数据集列表','CLI\x20has\x20typed\x20`bff\x20detail`\x20and\x20`bff\x20exec`\x20commands\x20for\x20endpoint\x20scripts.','CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.','code','None','35639760vKEsDY','Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.','bf_function_list','string','Execute\x20BF\x20endpoint\x20function','detail','str','##\x20List\x20BF\x20endpoint\x20functions\x0a\x0aDiscover\x20executable\x20endpoint\x20functions.','paging.totalCount\x20gives\x20total\x20rows','执行自定义\x20SQL','232nnWfMV','Returns\x20endpoint\x20functionName/id/description','60PTCRrg','4346652rHBcfe','获取应用下可调用的\x20BF\x20函数列表','获取数据集详情','api-doc','Create\x20dataset\x20record','##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.','##\x20List\x20datasets','scriptName','appCode','Inspect\x20field\x20names\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.','map','/api/{appCode}/{datasetCode}/filter','GET','join','List\x20datasets','length','Dataset\x20detail','`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','需要按数据集\x20code\x20获取字段、表信息或操作定义时使用','/api/endpoint/{appCode}/{scriptName}','dataset_data_get_one','POST','method','lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>','Returns\x20script\x20business\x20payload','dataset_data_filter','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','Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result','297252vKFvBZ','##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.','Get\x20one\x20dataset\x20record','toLowerCase','trim','This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.','447777nkCOra','2BhnqQm','Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.','条件过滤查询数据','dataset_detail','operations\x20describes\x20runtime\x20APIs','Returns\x20one\x20matching\x20business\x20record'];a1_0x3662=function(){return _0x4d3031;};return a1_0x3662();}export function listApiDocEntries(_0x1b0a86={}){const _0x5f3059=a1_0xa7a461,_0x25e6fd=String(_0x1b0a86[_0x5f3059(0x127)]||'')[_0x5f3059(0x108)](),_0x4712e8=String(_0x1b0a86[_0x5f3059(0x130)]||'')[_0x5f3059(0x108)]()[_0x5f3059(0x107)]();return DOCS['filter'](_0x56cea9=>{const _0x58665a=_0x5f3059;if(_0x25e6fd&&_0x56cea9[_0x58665a(0x127)]!==_0x25e6fd)return![];if(!_0x4712e8)return!![];return[_0x56cea9[_0x58665a(0xd9)],_0x56cea9[_0x58665a(0x127)],_0x56cea9[_0x58665a(0xfe)],_0x56cea9['path'],_0x56cea9['summary'],_0x56cea9[_0x58665a(0x113)],_0x56cea9[_0x58665a(0xd2)]][_0x58665a(0xf5)]('\x20')[_0x58665a(0x107)]()['includes'](_0x4712e8);})[_0x5f3059(0xf2)](entrySummary);}export function getApiDocDetail(_0x2fbdd7){const _0x24ba45=a1_0xa7a461,_0x4c74a8=DOCS[_0x24ba45(0x11a)](_0x40df72=>_0x40df72['code']===_0x2fbdd7);if(!_0x4c74a8)throw CliErrors[_0x24ba45(0xc5)]('API\x20doc\x20code\x20not\x20found:\x20'+_0x2fbdd7);return{..._0x4c74a8};}const apiDocList={'service':a1_0xa7a461(0xeb),'command':a1_0xa7a461(0x124),'description':'List\x20available\x20runtime\x20API\x20documentation\x20entries','risk':'read','requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0x47a88f){const _0x4cfca6=a1_0xa7a461,_0xa7bb75=listApiDocEntries({'category':_0x47a88f[_0x4cfca6(0xe1)](_0x4cfca6(0x127)),'keyword':_0x47a88f[_0x4cfca6(0xe1)](_0x4cfca6(0x130))});return{'ok':!![],'data':{'total':_0xa7bb75[_0x4cfca6(0xf7)],'items':_0xa7bb75}};}},apiDocDetail={'service':a1_0xa7a461(0xeb),'command':a1_0xa7a461(0xe0),'description':a1_0xa7a461(0xc1),'risk':a1_0xa7a461(0xc2),'requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0x61d0ea){const _0x5f26cf=a1_0xa7a461;return{'ok':!![],'data':getApiDocDetail(_0x61d0ea[_0x5f26cf(0xe1)](_0x5f26cf(0xd9)))};}};export const apiDocDefinitions=[apiDocList,apiDocDetail];
@@ -1 +1 @@
1
- (function(_0x46d1aa,_0x34df28){const _0x24ca0=a2_0x1f91,_0x2a2669=_0x46d1aa();while(!![]){try{const _0x578750=-parseInt(_0x24ca0(0x151))/0x1+-parseInt(_0x24ca0(0x154))/0x2*(-parseInt(_0x24ca0(0x13d))/0x3)+-parseInt(_0x24ca0(0x153))/0x4*(parseInt(_0x24ca0(0x14d))/0x5)+-parseInt(_0x24ca0(0x142))/0x6*(-parseInt(_0x24ca0(0x152))/0x7)+parseInt(_0x24ca0(0x145))/0x8*(-parseInt(_0x24ca0(0x148))/0x9)+parseInt(_0x24ca0(0x144))/0xa*(-parseInt(_0x24ca0(0x140))/0xb)+parseInt(_0x24ca0(0x14f))/0xc*(parseInt(_0x24ca0(0x15a))/0xd);if(_0x578750===_0x34df28)break;else _0x2a2669['push'](_0x2a2669['shift']());}catch(_0x3c1a5f){_0x2a2669['push'](_0x2a2669['shift']());}}}(a2_0x3282,0xe1d37));import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';import{dirname,resolve}from'node:path';import{PRODUCT_CONFIG}from'../../constant/product.js';function a2_0x3282(){const _0x6533e=['trim','my-apps.json','11543769ehrfsk','cache','sha256','homeDirName','isArray','180470tmpcZO','appName','24jcrwdr','EXDEV','1105544flglCi','84qbpwlE','20flwEEu','2mCSJeb','items','stringify','ak_','find','slice','11718681YNzFMS','2591166LMhlPf','EPERM','unknown','11FtOsBr','code','485358WkaWSr','utf8','1436740Zjrsql','8WDfIdh'];a2_0x3282=function(){return _0x6533e;};return a2_0x3282();}import{isRuntimeAccessibleApp}from'../../commands/app/eligibility.js';export function fingerprintAccessKey(_0x3364ee){const _0x21fdbc=a2_0x1f91,_0x10627e=_0x3364ee['trim'](),_0xb018d2=_0x10627e[_0x21fdbc(0x159)](-0x6)||_0x21fdbc(0x13f),_0x53b0b8=createHash(_0x21fdbc(0x14a))['update'](_0x10627e)['digest']('hex')[_0x21fdbc(0x159)](0x0,0xc);return _0x21fdbc(0x157)+_0xb018d2+'_'+_0x53b0b8;}export function getAppCacheFilePath(_0x42d8f9,_0xcc9bad){const _0x4df68f=a2_0x1f91;return resolve(homedir(),PRODUCT_CONFIG[_0x4df68f(0x14b)],_0x4df68f(0x149),_0x42d8f9,fingerprintAccessKey(_0xcc9bad),_0x4df68f(0x147));}function a2_0x1f91(_0x4003b0,_0x59c606){_0x4003b0=_0x4003b0-0x13d;const _0x3282da=a2_0x3282();let _0x1f91b2=_0x3282da[_0x4003b0];return _0x1f91b2;}export function readCachedAppList(_0x3f7d6f,_0x562bec){const _0x47e6fa=a2_0x1f91;if(!_0x562bec?.[_0x47e6fa(0x146)]())return null;const _0xf4570a=getAppCacheFilePath(_0x3f7d6f,_0x562bec);if(!existsSync(_0xf4570a))return null;try{const _0x3600e6=readFileSync(_0xf4570a,_0x47e6fa(0x143));if(!_0x3600e6[_0x47e6fa(0x146)]())return null;const _0x11bf01=JSON['parse'](_0x3600e6);if(!Array[_0x47e6fa(0x14c)](_0x11bf01['items']))return null;return _0x11bf01;}catch{return null;}}export function writeCachedAppList(_0x267e01,_0x569935,_0x55cf67){const _0x21a139=a2_0x1f91,_0x5c107a=getAppCacheFilePath(_0x267e01,_0x569935),_0xf700be=dirname(_0x5c107a);!existsSync(_0xf700be)&&mkdirSync(_0xf700be,{'recursive':!![]});const _0x55bf30=_0x5c107a+'.tmp';try{writeFileSync(_0x55bf30,JSON[_0x21a139(0x156)](_0x55cf67,null,0x2)+'\x0a',{'encoding':_0x21a139(0x143),'mode':0x180});try{renameSync(_0x55bf30,_0x5c107a);}catch(_0x576f39){if(_0x576f39[_0x21a139(0x141)]===_0x21a139(0x13e)||_0x576f39[_0x21a139(0x141)]===_0x21a139(0x150)||_0x576f39['code']==='EACCES'){writeFileSync(_0x5c107a,JSON[_0x21a139(0x156)](_0x55cf67,null,0x2)+'\x0a',{'encoding':_0x21a139(0x143)});try{unlinkSync(_0x55bf30);}catch{}}else throw _0x576f39;}}catch(_0x341cb7){try{unlinkSync(_0x55bf30);}catch{}throw _0x341cb7;}return _0x5c107a;}export function resolveCachedAppCode(_0x2f45ce,_0x3983d8,_0x2f7495){const _0x35f97d=a2_0x1f91;if(!_0x2f45ce)return undefined;const _0x1daba4=readCachedAppList(_0x3983d8,_0x2f7495),_0xb85487=_0x1daba4?.[_0x35f97d(0x155)][_0x35f97d(0x158)](_0x35e99b=>_0x35e99b[_0x35f97d(0x14e)]===_0x2f45ce&&isRuntimeAccessibleApp(_0x35e99b));return _0xb85487?.['appCode']?.[_0x35f97d(0x146)]()||undefined;}
1
+ (function(_0x51f94e,_0x5ec668){const _0x2421bb=a2_0x1e15,_0x1531b9=_0x51f94e();while(!![]){try{const _0x18d6ba=-parseInt(_0x2421bb(0x15e))/0x1*(parseInt(_0x2421bb(0x15b))/0x2)+parseInt(_0x2421bb(0x16d))/0x3+-parseInt(_0x2421bb(0x16a))/0x4*(-parseInt(_0x2421bb(0x178))/0x5)+parseInt(_0x2421bb(0x177))/0x6*(parseInt(_0x2421bb(0x164))/0x7)+parseInt(_0x2421bb(0x169))/0x8+-parseInt(_0x2421bb(0x16b))/0x9+-parseInt(_0x2421bb(0x172))/0xa*(parseInt(_0x2421bb(0x160))/0xb);if(_0x18d6ba===_0x5ec668)break;else _0x1531b9['push'](_0x1531b9['shift']());}catch(_0x2440a8){_0x1531b9['push'](_0x1531b9['shift']());}}}(a2_0x154b,0xee9e0));import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';import{dirname,resolve}from'node:path';function a2_0x154b(){const _0x55f162=['items','isArray','39811CJeVry','appCode','43397453LGAWsK','utf8','code','EACCES','7EHQyqg','unknown','ak_','trim','hex','14829240MwJNfq','7245532jlgULZ','7322184SghbTp','slice','5729634bUpTjn','parse','my-apps.json','EPERM','update','10mbcLli','homeDirName','EXDEV','stringify','appName','9088998vWLdOx','5bJBGWC','68Jiptcl'];a2_0x154b=function(){return _0x55f162;};return a2_0x154b();}import{PRODUCT_CONFIG}from'../../constant/product.js';import{isRuntimeAccessibleApp}from'../../commands/app/eligibility.js';export function fingerprintAccessKey(_0x4bb0a9){const _0x4cb384=a2_0x1e15,_0x23d6c4=_0x4bb0a9[_0x4cb384(0x167)](),_0x283648=_0x23d6c4['slice'](-0x6)||_0x4cb384(0x165),_0x1f66bf=createHash('sha256')[_0x4cb384(0x171)](_0x23d6c4)['digest'](_0x4cb384(0x168))[_0x4cb384(0x16c)](0x0,0xc);return _0x4cb384(0x166)+_0x283648+'_'+_0x1f66bf;}export function getAppCacheFilePath(_0x239c9a,_0x2d389c){const _0x2907cb=a2_0x1e15;return resolve(homedir(),PRODUCT_CONFIG[_0x2907cb(0x173)],'cache',_0x239c9a,fingerprintAccessKey(_0x2d389c),_0x2907cb(0x16f));}export function readCachedAppList(_0x41d540,_0x4cddc6){const _0xbde060=a2_0x1e15;if(!_0x4cddc6?.[_0xbde060(0x167)]())return null;const _0x25039f=getAppCacheFilePath(_0x41d540,_0x4cddc6);if(!existsSync(_0x25039f))return null;try{const _0x29090e=readFileSync(_0x25039f,_0xbde060(0x161));if(!_0x29090e[_0xbde060(0x167)]())return null;const _0x26dc47=JSON[_0xbde060(0x16e)](_0x29090e);if(!Array[_0xbde060(0x15d)](_0x26dc47['items']))return null;return _0x26dc47;}catch{return null;}}export function writeCachedAppList(_0x4b2c6f,_0x7fe8c0,_0x8f4ce){const _0x3ba11a=a2_0x1e15,_0x28dfbf=getAppCacheFilePath(_0x4b2c6f,_0x7fe8c0),_0x5ce915=dirname(_0x28dfbf);!existsSync(_0x5ce915)&&mkdirSync(_0x5ce915,{'recursive':!![]});const _0x1af3bc=_0x28dfbf+'.tmp';try{writeFileSync(_0x1af3bc,JSON[_0x3ba11a(0x175)](_0x8f4ce,null,0x2)+'\x0a',{'encoding':_0x3ba11a(0x161),'mode':0x180});try{renameSync(_0x1af3bc,_0x28dfbf);}catch(_0x1d72ed){if(_0x1d72ed['code']===_0x3ba11a(0x170)||_0x1d72ed[_0x3ba11a(0x162)]===_0x3ba11a(0x174)||_0x1d72ed['code']===_0x3ba11a(0x163)){writeFileSync(_0x28dfbf,JSON[_0x3ba11a(0x175)](_0x8f4ce,null,0x2)+'\x0a',{'encoding':_0x3ba11a(0x161)});try{unlinkSync(_0x1af3bc);}catch{}}else throw _0x1d72ed;}}catch(_0x39c9d2){try{unlinkSync(_0x1af3bc);}catch{}throw _0x39c9d2;}return _0x28dfbf;}function a2_0x1e15(_0x3774db,_0x1ef40a){_0x3774db=_0x3774db-0x15b;const _0x154b08=a2_0x154b();let _0x1e1525=_0x154b08[_0x3774db];return _0x1e1525;}export function resolveCachedAppCode(_0x1cd574,_0x286056,_0x114326){const _0x56bd01=a2_0x1e15;if(!_0x1cd574)return undefined;const _0x5475ad=readCachedAppList(_0x286056,_0x114326),_0x631bfd=_0x5475ad?.[_0x56bd01(0x15c)]['find'](_0x633cb2=>_0x633cb2[_0x56bd01(0x176)]===_0x1cd574&&isRuntimeAccessibleApp(_0x633cb2));return _0x631bfd?.[_0x56bd01(0x15f)]?.['trim']()||undefined;}
@@ -1 +1 @@
1
- function a3_0xa700(){const _0x13f4b8=['1537640VSrFrI','raw','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','defaultApp','str','find','trim','from','Deprecated:\x20use\x20workspace\x20init\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','globalPath','661608SUTZJp','warn','13170xUgxKF','\x20cached\x20app(s)\x20for\x20env=\x22','Missing\x20app\x20name.','enableI18n','pull','langs','Read\x20app\x20list\x20from\x20local\x20cache\x20only','i18nInfo','read','\x20app(s)\x20for\x20env=\x22','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','string','Include\x20unpublished\x20apps\x20for\x20diagnostics','join','fetchedAt','../../commands/app/remote-source.js','remote','.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.','isArray','isCurrent','filter','Remote\x20app\x20name\x20to\x20activate','\x22\x20not\x20found.','\x20app\x20use\x20<name>\x20[--global]','\x20app\x20','app','entries','../../context.js','use','boolean','No\x20cached\x20apps\x20found.','init','36ePznRf','../../commands/app/cache.js','Use\x20`','bool','468RffAFY','map','252998NRjuCv','args','nonInteractive','cache','push','projectPath','Loaded\x20','items','write','import','appcode','source','539280ryJoSe','local','1833937XMroDm','No\x20apps\x20found\x20on\x20the\x20platform.','production','\x20workspace\x20use\x20--app\x20<name>\x20[--env\x20daily]','cachePath','Filter\x20by\x20environment\x20(default:\x20current\x20env)','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','validation','list','Default\x20app\x20candidate\x20set\x20to\x20\x22','App\x20\x22','appPublishStatus','Usage:\x20','`\x20instead.','Refreshed\x20app\x20cache\x20with\x20','length','global','3FoIgvD','accessKey','appName','type','appCode','mergedCli','env','Use\x20global\x20config\x20scope','envName','include-unpublished','no-cache','name','273096ZCeaSn','\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.','.appcode\x20to\x20.lovrabet.json.'];a3_0xa700=function(){return _0x13f4b8;};return a3_0xa700();}const a3_0x38ee5f=a3_0x42f2;(function(_0xdb9ba,_0x3d523e){const _0x2ac6c1=a3_0x42f2,_0x1b8e1a=_0xdb9ba();while(!![]){try{const _0x11d963=parseInt(_0x2ac6c1(0x1b9))/0x1+parseInt(_0x2ac6c1(0x184))/0x2+parseInt(_0x2ac6c1(0x178))/0x3*(-parseInt(_0x2ac6c1(0x191))/0x4)+-parseInt(_0x2ac6c1(0x193))/0x5*(-parseInt(_0x2ac6c1(0x1b7))/0x6)+parseInt(_0x2ac6c1(0x1c7))/0x7+parseInt(_0x2ac6c1(0x1c5))/0x8+parseInt(_0x2ac6c1(0x1b3))/0x9*(-parseInt(_0x2ac6c1(0x187))/0xa);if(_0x11d963===_0x3d523e)break;else _0x1b8e1a['push'](_0x1b8e1a['shift']());}catch(_0x4bad71){_0x1b8e1a['push'](_0x1b8e1a['shift']());}}}(a3_0xa700,0x23245));import{CliErrors}from'../../errors.js';import{initCreateFlagDefs,initImportFlagDefs,runInit,runInitImport}from'../../commands/init.js';import{getEnv,RUNTIME_ENV_VALUES}from'../../constant/env.js';import{buildAppProfileListFields}from'../../config/schema.js';import{CLI_BIN_NAME,readConfig,writeConfig,scopeLabel,enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{filterRuntimeAccessibleApps,findAppByCode,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const GLOBAL_FLAG={'name':a3_0x38ee5f(0x177),'type':'boolean','description':a3_0x38ee5f(0x17f),'default':![]};function collectFlags(_0x57d332,_0x16b0a2){const _0x4d0cf5=a3_0x38ee5f,_0x15f337={};for(const _0x55da5e of _0x16b0a2){const _0x167b8d=_0x55da5e[_0x4d0cf5(0x17b)]===_0x4d0cf5(0x1b0)?_0x57d332[_0x4d0cf5(0x1b6)](_0x55da5e[_0x4d0cf5(0x183)]):_0x57d332['str'](_0x55da5e[_0x4d0cf5(0x183)]);if(_0x167b8d!==''&&_0x167b8d!==![])_0x15f337[_0x55da5e[_0x4d0cf5(0x183)]]=_0x167b8d;}if(_0x57d332[_0x4d0cf5(0x1bb)])_0x15f337['nonInteractive']=!![];return _0x15f337;}function a3_0x42f2(_0x48f71c,_0x3fffa5){_0x48f71c=_0x48f71c-0x16d;const _0xa7000c=a3_0xa700();let _0x42f2cf=_0xa7000c[_0x48f71c];return _0x42f2cf;}function normalizeLanguages(_0x4c2342){const _0x2b3e2c=a3_0x38ee5f;if(!Array[_0x2b3e2c(0x1a5)](_0x4c2342))return[];return _0x4c2342['filter'](_0x42f7c4=>typeof _0x42f7c4==='string')[_0x2b3e2c(0x1b8)](_0x11f485=>_0x11f485['trim']())[_0x2b3e2c(0x1a7)](Boolean);}function buildRemoteAppI18nFields(_0x31d40a){const _0x4a0cec=a3_0x38ee5f,_0x528489=normalizeLanguages(_0x31d40a[_0x4a0cec(0x19a)]?.[_0x4a0cec(0x198)]);return{'enableI18n':typeof _0x31d40a[_0x4a0cec(0x196)]===_0x4a0cec(0x1b0)?_0x31d40a[_0x4a0cec(0x196)]:null,'languages':_0x528489,'i18nInfo':_0x31d40a['i18nInfo']?{..._0x31d40a['i18nInfo'],'langs':_0x528489['length']?_0x528489:null}:null};}const initDef={'service':a3_0x38ee5f(0x1ac),'command':a3_0x38ee5f(0x1b2),'description':a3_0x38ee5f(0x18f),'risk':a3_0x38ee5f(0x1c1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x48f4b7){const _0x2e0c30=a3_0x38ee5f;return warnDeprecatedAppCommand(_0x2e0c30(0x1b2),CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>\x20[--env\x20daily]'),await runInit(collectFlags(_0x48f4b7,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a3_0x38ee5f(0x1ac),'command':a3_0x38ee5f(0x16f),'description':'List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','risk':a3_0x38ee5f(0x19b),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a3_0x38ee5f(0x17e),'type':a3_0x38ee5f(0x19e),'description':a3_0x38ee5f(0x1cc),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x38ee5f(0x1c6),'type':a3_0x38ee5f(0x1b0),'description':a3_0x38ee5f(0x199),'default':![]},{'name':a3_0x38ee5f(0x182),'type':'boolean','description':a3_0x38ee5f(0x189),'default':![]},{'name':a3_0x38ee5f(0x181),'type':a3_0x38ee5f(0x1b0),'description':a3_0x38ee5f(0x19f),'default':![]}],async 'execute'(_0x234605){const _0x6485f4=a3_0x38ee5f,_0x1e37a3=_0x234605[_0x6485f4(0x18b)](_0x6485f4(0x17e))||_0x234605[_0x6485f4(0x180)]||getEnv()||_0x6485f4(0x1c9),_0x3aa2dc=_0x234605[_0x6485f4(0x1b6)](_0x6485f4(0x1c6)),_0x93c870=_0x234605[_0x6485f4(0x1b6)]('no-cache'),_0x4d5872=_0x234605[_0x6485f4(0x1b6)](_0x6485f4(0x181)),{readRawConfigWithLayers:_0x20be1f,resolveDefaultAppSource:_0x424d03,getLocalAppAliases:_0x124358}=await import(_0x6485f4(0x1ae)),{getRemoteAppList:_0x93edee}=await import(_0x6485f4(0x1a2)),{config:_0x17feff,layers:_0x40a220}=_0x20be1f(),_0x321bdc=_0x424d03(_0x40a220),{defaultApp:_0x2920ac}=_0x17feff,_0x5e2f38=await _0x93edee({'env':_0x1e37a3,'accessKey':_0x234605[_0x6485f4(0x179)],'localOnly':_0x3aa2dc,'noCache':_0x93c870}),_0x50c42e=_0x4d5872?_0x5e2f38[_0x6485f4(0x1c0)]:filterRuntimeAccessibleApps(_0x5e2f38[_0x6485f4(0x1c0)]),_0x1c73f4=_0x5e2f38[_0x6485f4(0x1c0)][_0x6485f4(0x176)]-_0x50c42e[_0x6485f4(0x176)],_0x50b805=_0x50c42e[_0x6485f4(0x1b8)](_0x2329e8=>{const _0x1698f2=_0x6485f4;return{'name':_0x2329e8[_0x1698f2(0x17a)],'appcode':_0x2329e8[_0x1698f2(0x17c)],'named':!![],'definedIn':_0x1698f2(0x1a3),'isDefault':_0x2329e8['appName']===_0x2920ac,...buildAppProfileListFields(_0x1e37a3),...buildRemoteAppI18nFields(_0x2329e8),'source':_0x5e2f38['source'],'owner':_0x2329e8['appOwnerName']??null,'status':_0x2329e8[_0x1698f2(0x172)]??null,'cachedAt':_0x5e2f38[_0x1698f2(0x1a1)]};}),_0x3905a4=_0x124358(_0x17feff);let _0x450401=0x0;for(const [_0x58f560,_0x40d600]of Object[_0x6485f4(0x1ad)](_0x3905a4)){const _0x34433=typeof _0x40d600['appcode']===_0x6485f4(0x19e)?_0x40d600[_0x6485f4(0x1c3)][_0x6485f4(0x18d)]():'';if(!_0x34433)continue;const _0x251ea=findAppByCode(_0x5e2f38['items'],_0x34433);if(!_0x4d5872&&_0x251ea&&!isRuntimeAccessibleApp(_0x251ea))continue;_0x450401+=0x1,_0x50b805[_0x6485f4(0x1bd)]({'name':_0x58f560,'appcode':_0x34433,'named':!![],'definedIn':'local','isDefault':_0x58f560===_0x2920ac,...buildAppProfileListFields(_0x1e37a3),'source':'config','owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x50b805,_0x234605[_0x6485f4(0x17d)]);const _0x2f4298=_0x50b805[_0x6485f4(0x18c)](_0xf44153=>_0xf44153[_0x6485f4(0x1a6)]===!![]),_0x2ba383=_0x2920ac??_0x2f4298?.[_0x6485f4(0x183)]??null,_0x3ce6b5={'env':_0x1e37a3,'source':_0x5e2f38['source'],'fetchedAt':_0x5e2f38[_0x6485f4(0x1a1)],'cachePath':_0x5e2f38[_0x6485f4(0x1cb)],'globalPath':_0x40a220[_0x6485f4(0x190)]??null,'projectPath':_0x40a220[_0x6485f4(0x1be)]??null,'defaultApp':_0x2ba383,'defaultAppSource':_0x2920ac!=null?_0x321bdc:null,'localAliasCount':_0x450401,'remoteTotal':_0x5e2f38[_0x6485f4(0x1c0)][_0x6485f4(0x176)],'hiddenUnpublishedCount':_0x1c73f4,'includeUnpublished':_0x4d5872};if(_0x50b805[_0x6485f4(0x176)]===0x0)return{'ok':!![],'data':{'items':_0x50b805,'meta':_0x3ce6b5},'message':_0x5e2f38[_0x6485f4(0x1c4)]===_0x6485f4(0x1bc)?_0x6485f4(0x1b1):_0x6485f4(0x1c8)};return{'ok':!![],'data':{'items':_0x50b805,'meta':_0x3ce6b5}};}},pullDef={'service':a3_0x38ee5f(0x1ac),'command':a3_0x38ee5f(0x197),'description':a3_0x38ee5f(0x19d),'risk':a3_0x38ee5f(0x1c1),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'env','type':'string','description':'Target\x20environment\x20(default:\x20current\x20env)','enum':[...RUNTIME_ENV_VALUES]},{'name':'local','type':'boolean','description':'Read\x20from\x20local\x20cache\x20only','default':![]},{'name':a3_0x38ee5f(0x182),'type':a3_0x38ee5f(0x1b0),'description':a3_0x38ee5f(0x189),'default':![]}],async 'execute'(_0x3b1291){const _0x5966f8=a3_0x38ee5f,_0x312588=_0x3b1291[_0x5966f8(0x18b)]('env')||_0x3b1291['envName']||getEnv()||_0x5966f8(0x1c9),_0x8a14a4=_0x3b1291[_0x5966f8(0x1b6)](_0x5966f8(0x1c6)),_0x56afee=_0x3b1291[_0x5966f8(0x1b6)](_0x5966f8(0x182)),{getRemoteAppList:_0x216489}=await import(_0x5966f8(0x1a2)),_0x47b296=await _0x216489({'env':_0x312588,'accessKey':_0x3b1291[_0x5966f8(0x179)],'localOnly':_0x8a14a4,'noCache':_0x56afee});return{'ok':!![],'data':{'total':_0x47b296[_0x5966f8(0x1c0)][_0x5966f8(0x176)],'env':_0x312588,'source':_0x47b296[_0x5966f8(0x1c4)],'fetchedAt':_0x47b296[_0x5966f8(0x1a1)],'cachePath':_0x47b296['cachePath']},'message':_0x47b296[_0x5966f8(0x1c4)]===_0x5966f8(0x1bc)?_0x5966f8(0x1bf)+_0x47b296['items'][_0x5966f8(0x176)]+_0x5966f8(0x194)+_0x312588+'\x22.':_0x5966f8(0x175)+_0x47b296[_0x5966f8(0x1c0)][_0x5966f8(0x176)]+_0x5966f8(0x19c)+_0x312588+'\x22.'};}},useDef={'service':a3_0x38ee5f(0x1ac),'command':a3_0x38ee5f(0x1af),'description':'Deprecated:\x20use\x20workspace\x20use\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','risk':a3_0x38ee5f(0x1c1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'name','description':a3_0x38ee5f(0x1a8),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x16b10f){const _0x856ca9=a3_0x38ee5f;if(!_0x16b10f[_0x856ca9(0x1ba)][0x0])throw CliErrors['validation'](_0x856ca9(0x195),_0x856ca9(0x173)+CLI_BIN_NAME+_0x856ca9(0x1aa));},async 'execute'(_0x4ee1a0){const _0x4feb0b=a3_0x38ee5f;warnDeprecatedAppCommand(_0x4feb0b(0x1af),CLI_BIN_NAME+_0x4feb0b(0x1ca));const _0x421031=_0x4ee1a0[_0x4feb0b(0x1ba)][0x0];if(!_0x421031)throw CliErrors['validation'](_0x4feb0b(0x195),_0x4feb0b(0x173)+CLI_BIN_NAME+'\x20app\x20use\x20<name>\x20[--global]');const {buildConfigFromFlags:_0x96c605,resolveLocalAppAliasCode:_0x41f2fa}=await import(_0x4feb0b(0x1ae)),{readCachedAppList:_0x1fca66}=await import(_0x4feb0b(0x1b4)),_0x7e120f=_0x4ee1a0[_0x4feb0b(0x18b)](_0x4feb0b(0x17e)),_0x3b509f=_0x96c605(_0x7e120f?{'env':_0x7e120f}:{}),_0x5b77df=_0x1fca66(_0x3b509f['env'],_0x3b509f[_0x4feb0b(0x179)]),_0x4d3e87=_0x5b77df?.['items'][_0x4feb0b(0x18c)](_0x5264d0=>_0x5264d0[_0x4feb0b(0x17a)]===_0x421031),_0x28198c=_0x41f2fa(_0x3b509f[_0x4feb0b(0x188)]??{},_0x421031);if(_0x4d3e87&&!isRuntimeAccessibleApp(_0x4d3e87))throw runtimeInaccessibleAppError(_0x4d3e87,'\x22'+_0x421031+'\x22');if(_0x28198c){const _0x29851f=_0x5b77df?.[_0x4feb0b(0x1c0)][_0x4feb0b(0x18c)](_0x348090=>_0x348090[_0x4feb0b(0x17c)]?.[_0x4feb0b(0x18d)]()===_0x28198c);if(_0x29851f&&!isRuntimeAccessibleApp(_0x29851f))throw runtimeInaccessibleAppError(_0x29851f,'\x22'+_0x421031+'\x22');}if(!_0x4d3e87&&!_0x28198c&&_0x3b509f[_0x4feb0b(0x18a)]!==_0x421031){const _0x371b9f=[..._0x5b77df?.[_0x4feb0b(0x1c0)][_0x4feb0b(0x1b8)](_0x5165f2=>_0x5165f2[_0x4feb0b(0x17a)])??[]],_0xb09b39=_0x371b9f['length']===0x0?_0x4feb0b(0x1b5)+CLI_BIN_NAME+_0x4feb0b(0x185)+_0x421031+_0x4feb0b(0x186):'Available\x20remote\x20apps:\x20'+Array[_0x4feb0b(0x18e)](new Set(_0x371b9f))[_0x4feb0b(0x1a0)](',\x20')+_0x4feb0b(0x1a4);throw CliErrors[_0x4feb0b(0x16e)](_0x4feb0b(0x171)+_0x421031+_0x4feb0b(0x1a9),_0xb09b39);}const _0xb67b21=_0x4ee1a0[_0x4feb0b(0x1b6)](_0x4feb0b(0x177));let _0x5f0d32;if(_0xb67b21)_0x5f0d32={'global':!![]};else{const {isInProject:_0x86bf31}=await import(_0x4feb0b(0x1ae)),_0x40c7f8=_0x86bf31();_0x5f0d32=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':'project-default','inProject':_0x40c7f8}));}const _0x4addd4=readConfig(_0x5f0d32);return _0x4addd4[_0x4feb0b(0x18a)]=_0x421031,writeConfig(_0x4addd4,_0x5f0d32),{'ok':!![],'message':_0x4feb0b(0x170)+_0x421031+'\x22'+scopeLabel(_0x5f0d32)+'.'};}};function warnDeprecatedAppCommand(_0x1eb3fa,_0x59902a){const _0x332800=a3_0x38ee5f;console[_0x332800(0x192)](CLI_BIN_NAME+_0x332800(0x1ab)+_0x1eb3fa+'\x20is\x20deprecated.\x20Use\x20`'+_0x59902a+_0x332800(0x174));}const importDef={'service':a3_0x38ee5f(0x1ac),'command':a3_0x38ee5f(0x1c2),'description':a3_0x38ee5f(0x16d),'risk':a3_0x38ee5f(0x1c1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x23ed2f){return await runInitImport(collectFlags(_0x23ed2f,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
1
+ function a3_0x3b96(_0x334425,_0xe23771){_0x334425=_0x334425-0x111;const _0xdc24e6=a3_0xdc24();let _0x3b9680=_0xdc24e6[_0x334425];return _0x3b9680;}const a3_0x1d53e3=a3_0x3b96;(function(_0x3f7818,_0x12289a){const _0x3b7468=a3_0x3b96,_0x36c323=_0x3f7818();while(!![]){try{const _0x6bdd5b=parseInt(_0x3b7468(0x132))/0x1*(-parseInt(_0x3b7468(0x13d))/0x2)+parseInt(_0x3b7468(0x119))/0x3+parseInt(_0x3b7468(0x13e))/0x4+parseInt(_0x3b7468(0x122))/0x5*(-parseInt(_0x3b7468(0x164))/0x6)+parseInt(_0x3b7468(0x12d))/0x7+-parseInt(_0x3b7468(0x11b))/0x8+parseInt(_0x3b7468(0x126))/0x9;if(_0x6bdd5b===_0x12289a)break;else _0x36c323['push'](_0x36c323['shift']());}catch(_0x78d2d9){_0x36c323['push'](_0x36c323['shift']());}}}(a3_0xdc24,0x1dab8));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_0xdc24(){const _0x18702=['Loaded\x20','1770576kOzDTx','boolean','isCurrent','enableI18n','../../context.js','read','langs','803615tIOGoP','project-default','write','raw','5468724YIcyVt','\x22\x20not\x20found.','source','env','\x20workspace\x20init\x20--appcode\x20<code>\x20[--env\x20daily]','Remote\x20app\x20name\x20to\x20activate','Deprecated:\x20use\x20workspace\x20use\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','110446BgaXSw','Default\x20app\x20candidate\x20set\x20to\x20\x22','pull','cache','local','223woONUY','Use\x20global\x20config\x20scope','\x20cached\x20app(s)\x20for\x20env=\x22','\x20app(s)\x20for\x20env=\x22','name','include-unpublished','map','args','Target\x20environment\x20(default:\x20current\x20env)','str','push','1458rpbHFC','18484DwJwsF','Missing\x20app\x20name.','config','accessKey','\x20app\x20','filter','../../commands/app/remote-source.js','i18nInfo','nonInteractive','use','Use\x20`','Available\x20remote\x20apps:\x20','bool','init','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','length','string','join','remote','\x20is\x20deprecated.\x20Use\x20`','trim','appCode','envName','.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.','global','warn','defaultApp','appPublishStatus','no-cache','No\x20apps\x20found\x20on\x20the\x20platform.','\x20app\x20use\x20<name>\x20[--global]','projectPath','import','validation','Usage:\x20','Filter\x20by\x20environment\x20(default:\x20current\x20env)','appcode','Read\x20from\x20local\x20cache\x20only','6JGOZTd','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','`\x20instead.','items','\x20workspace\x20use\x20--app\x20<name>\x20[--env\x20daily]','globalPath','.appcode\x20to\x20.lovrabet.json.','from','production','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','app','appName','mergedCli','fetchedAt','find','114315FvijdV'];a3_0xdc24=function(){return _0x18702;};return a3_0xdc24();}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_0x1d53e3(0x156),'type':a3_0x1d53e3(0x11c),'description':a3_0x1d53e3(0x133),'default':![]};function collectFlags(_0x2e9f28,_0x548db8){const _0x37aa0d=a3_0x1d53e3,_0x4b3e5b={};for(const _0x371a2c of _0x548db8){const _0x5874d2=_0x371a2c['type']===_0x37aa0d(0x11c)?_0x2e9f28[_0x37aa0d(0x14a)](_0x371a2c[_0x37aa0d(0x136)]):_0x2e9f28[_0x37aa0d(0x13b)](_0x371a2c['name']);if(_0x5874d2!==''&&_0x5874d2!==![])_0x4b3e5b[_0x371a2c[_0x37aa0d(0x136)]]=_0x5874d2;}if(_0x2e9f28[_0x37aa0d(0x146)])_0x4b3e5b[_0x37aa0d(0x146)]=!![];return _0x4b3e5b;}function normalizeLanguages(_0x5eaf0d){const _0x48912b=a3_0x1d53e3;if(!Array['isArray'](_0x5eaf0d))return[];return _0x5eaf0d[_0x48912b(0x143)](_0x3f7906=>typeof _0x3f7906===_0x48912b(0x14e))['map'](_0x54d43d=>_0x54d43d['trim']())[_0x48912b(0x143)](Boolean);}function buildRemoteAppI18nFields(_0x9ed7ad){const _0x37350=a3_0x1d53e3,_0x45decd=normalizeLanguages(_0x9ed7ad[_0x37350(0x145)]?.[_0x37350(0x121)]);return{'enableI18n':typeof _0x9ed7ad[_0x37350(0x11e)]===_0x37350(0x11c)?_0x9ed7ad[_0x37350(0x11e)]:null,'languages':_0x45decd,'i18nInfo':_0x9ed7ad['i18nInfo']?{..._0x9ed7ad['i18nInfo'],'langs':_0x45decd[_0x37350(0x14d)]?_0x45decd:null}:null};}const initDef={'service':a3_0x1d53e3(0x114),'command':a3_0x1d53e3(0x14b),'description':'Deprecated:\x20use\x20workspace\x20init\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','risk':a3_0x1d53e3(0x124),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x383562){const _0x309104=a3_0x1d53e3;return warnDeprecatedAppCommand(_0x309104(0x14b),CLI_BIN_NAME+_0x309104(0x12a)),await runInit(collectFlags(_0x383562,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':'app','command':'list','description':'List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','risk':a3_0x1d53e3(0x120),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':'env','type':a3_0x1d53e3(0x14e),'description':a3_0x1d53e3(0x161),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x1d53e3(0x131),'type':a3_0x1d53e3(0x11c),'description':'Read\x20app\x20list\x20from\x20local\x20cache\x20only','default':![]},{'name':a3_0x1d53e3(0x15a),'type':a3_0x1d53e3(0x11c),'description':a3_0x1d53e3(0x14c),'default':![]},{'name':a3_0x1d53e3(0x137),'type':'boolean','description':'Include\x20unpublished\x20apps\x20for\x20diagnostics','default':![]}],async 'execute'(_0x4da45a){const _0x343ea7=a3_0x1d53e3,_0x16b01f=_0x4da45a[_0x343ea7(0x13b)]('env')||_0x4da45a[_0x343ea7(0x154)]||getEnv()||_0x343ea7(0x112),_0x23f579=_0x4da45a[_0x343ea7(0x14a)](_0x343ea7(0x131)),_0x21741d=_0x4da45a[_0x343ea7(0x14a)]('no-cache'),_0x320a4b=_0x4da45a['bool'](_0x343ea7(0x137)),{readRawConfigWithLayers:_0x747c8c,resolveDefaultAppSource:_0x4bc1f6,getLocalAppAliases:_0x3ec7e3}=await import(_0x343ea7(0x11f)),{getRemoteAppList:_0x32b5ec}=await import(_0x343ea7(0x144)),{config:_0x2b6f10,layers:_0x39b805}=_0x747c8c(),_0x3868ad=_0x4bc1f6(_0x39b805),{defaultApp:_0x646b70}=_0x2b6f10,_0x4367a3=await _0x32b5ec({'env':_0x16b01f,'accessKey':_0x4da45a[_0x343ea7(0x141)],'localOnly':_0x23f579,'noCache':_0x21741d}),_0x3eaffa=_0x320a4b?_0x4367a3['items']:filterRuntimeAccessibleApps(_0x4367a3['items']),_0x46489e=_0x4367a3['items'][_0x343ea7(0x14d)]-_0x3eaffa['length'],_0x3e48d7=_0x3eaffa[_0x343ea7(0x138)](_0x55dc1b=>{const _0x214510=_0x343ea7;return{'name':_0x55dc1b[_0x214510(0x115)],'appcode':_0x55dc1b['appCode'],'named':!![],'definedIn':_0x214510(0x150),'isDefault':_0x55dc1b[_0x214510(0x115)]===_0x646b70,...buildAppProfileListFields(_0x16b01f),...buildRemoteAppI18nFields(_0x55dc1b),'source':_0x4367a3['source'],'owner':_0x55dc1b['appOwnerName']??null,'status':_0x55dc1b[_0x214510(0x159)]??null,'cachedAt':_0x4367a3[_0x214510(0x117)]};}),_0x1a7789=_0x3ec7e3(_0x2b6f10);let _0x49f908=0x0;for(const [_0x16e2c5,_0x450f38]of Object['entries'](_0x1a7789)){const _0x3eb5ad=typeof _0x450f38[_0x343ea7(0x162)]===_0x343ea7(0x14e)?_0x450f38[_0x343ea7(0x162)][_0x343ea7(0x152)]():'';if(!_0x3eb5ad)continue;const _0xdb6350=findAppByCode(_0x4367a3[_0x343ea7(0x167)],_0x3eb5ad);if(!_0x320a4b&&_0xdb6350&&!isRuntimeAccessibleApp(_0xdb6350))continue;_0x49f908+=0x1,_0x3e48d7[_0x343ea7(0x13c)]({'name':_0x16e2c5,'appcode':_0x3eb5ad,'named':!![],'definedIn':'local','isDefault':_0x16e2c5===_0x646b70,...buildAppProfileListFields(_0x16b01f),'source':_0x343ea7(0x140),'owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x3e48d7,_0x4da45a[_0x343ea7(0x116)]);const _0x49764b=_0x3e48d7[_0x343ea7(0x118)](_0x151893=>_0x151893[_0x343ea7(0x11d)]===!![]),_0x4ead59=_0x646b70??_0x49764b?.[_0x343ea7(0x136)]??null,_0x2d83cc={'env':_0x16b01f,'source':_0x4367a3[_0x343ea7(0x128)],'fetchedAt':_0x4367a3[_0x343ea7(0x117)],'cachePath':_0x4367a3['cachePath'],'globalPath':_0x39b805[_0x343ea7(0x169)]??null,'projectPath':_0x39b805[_0x343ea7(0x15d)]??null,'defaultApp':_0x4ead59,'defaultAppSource':_0x646b70!=null?_0x3868ad:null,'localAliasCount':_0x49f908,'remoteTotal':_0x4367a3[_0x343ea7(0x167)][_0x343ea7(0x14d)],'hiddenUnpublishedCount':_0x46489e,'includeUnpublished':_0x320a4b};if(_0x3e48d7['length']===0x0)return{'ok':!![],'data':{'items':_0x3e48d7,'meta':_0x2d83cc},'message':_0x4367a3[_0x343ea7(0x128)]==='cache'?'No\x20cached\x20apps\x20found.':_0x343ea7(0x15b)};return{'ok':!![],'data':{'items':_0x3e48d7,'meta':_0x2d83cc}};}},pullDef={'service':a3_0x1d53e3(0x114),'command':a3_0x1d53e3(0x12f),'description':a3_0x1d53e3(0x113),'risk':'write','requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'env','type':a3_0x1d53e3(0x14e),'description':a3_0x1d53e3(0x13a),'enum':[...RUNTIME_ENV_VALUES]},{'name':'local','type':a3_0x1d53e3(0x11c),'description':a3_0x1d53e3(0x163),'default':![]},{'name':a3_0x1d53e3(0x15a),'type':a3_0x1d53e3(0x11c),'description':a3_0x1d53e3(0x14c),'default':![]}],async 'execute'(_0x4fb0cb){const _0x4dde37=a3_0x1d53e3,_0xdbc6f7=_0x4fb0cb[_0x4dde37(0x13b)]('env')||_0x4fb0cb[_0x4dde37(0x154)]||getEnv()||_0x4dde37(0x112),_0x3c64ae=_0x4fb0cb[_0x4dde37(0x14a)](_0x4dde37(0x131)),_0x330d15=_0x4fb0cb[_0x4dde37(0x14a)](_0x4dde37(0x15a)),{getRemoteAppList:_0x5f0b31}=await import('../../commands/app/remote-source.js'),_0xfb0518=await _0x5f0b31({'env':_0xdbc6f7,'accessKey':_0x4fb0cb[_0x4dde37(0x141)],'localOnly':_0x3c64ae,'noCache':_0x330d15});return{'ok':!![],'data':{'total':_0xfb0518[_0x4dde37(0x167)][_0x4dde37(0x14d)],'env':_0xdbc6f7,'source':_0xfb0518[_0x4dde37(0x128)],'fetchedAt':_0xfb0518[_0x4dde37(0x117)],'cachePath':_0xfb0518['cachePath']},'message':_0xfb0518[_0x4dde37(0x128)]===_0x4dde37(0x130)?_0x4dde37(0x11a)+_0xfb0518['items'][_0x4dde37(0x14d)]+_0x4dde37(0x134)+_0xdbc6f7+'\x22.':'Refreshed\x20app\x20cache\x20with\x20'+_0xfb0518[_0x4dde37(0x167)][_0x4dde37(0x14d)]+_0x4dde37(0x135)+_0xdbc6f7+'\x22.'};}},useDef={'service':a3_0x1d53e3(0x114),'command':a3_0x1d53e3(0x147),'description':a3_0x1d53e3(0x12c),'risk':a3_0x1d53e3(0x124),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a3_0x1d53e3(0x136),'description':a3_0x1d53e3(0x12b),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x24a558){const _0x3788e9=a3_0x1d53e3;if(!_0x24a558[_0x3788e9(0x139)][0x0])throw CliErrors[_0x3788e9(0x15f)](_0x3788e9(0x13f),_0x3788e9(0x160)+CLI_BIN_NAME+_0x3788e9(0x15c));},async 'execute'(_0x551dd7){const _0xd564df=a3_0x1d53e3;warnDeprecatedAppCommand(_0xd564df(0x147),CLI_BIN_NAME+_0xd564df(0x168));const _0x4e7ba9=_0x551dd7[_0xd564df(0x139)][0x0];if(!_0x4e7ba9)throw CliErrors[_0xd564df(0x15f)](_0xd564df(0x13f),_0xd564df(0x160)+CLI_BIN_NAME+_0xd564df(0x15c));const {buildConfigFromFlags:_0x3151e8,resolveLocalAppAliasCode:_0x5f0e7f}=await import(_0xd564df(0x11f)),{readCachedAppList:_0x41d1f9}=await import('../../commands/app/cache.js'),_0x582c67=_0x551dd7[_0xd564df(0x13b)](_0xd564df(0x129)),_0x24a89d=_0x3151e8(_0x582c67?{'env':_0x582c67}:{}),_0xc2894c=_0x41d1f9(_0x24a89d['env'],_0x24a89d['accessKey']),_0x23d5a0=_0xc2894c?.[_0xd564df(0x167)][_0xd564df(0x118)](_0x412a18=>_0x412a18[_0xd564df(0x115)]===_0x4e7ba9),_0x27490d=_0x5f0e7f(_0x24a89d[_0xd564df(0x125)]??{},_0x4e7ba9);if(_0x23d5a0&&!isRuntimeAccessibleApp(_0x23d5a0))throw runtimeInaccessibleAppError(_0x23d5a0,'\x22'+_0x4e7ba9+'\x22');if(_0x27490d){const _0x258014=_0xc2894c?.[_0xd564df(0x167)][_0xd564df(0x118)](_0x4c5faa=>_0x4c5faa[_0xd564df(0x153)]?.[_0xd564df(0x152)]()===_0x27490d);if(_0x258014&&!isRuntimeAccessibleApp(_0x258014))throw runtimeInaccessibleAppError(_0x258014,'\x22'+_0x4e7ba9+'\x22');}if(!_0x23d5a0&&!_0x27490d&&_0x24a89d['defaultApp']!==_0x4e7ba9){const _0x375b73=[..._0xc2894c?.[_0xd564df(0x167)][_0xd564df(0x138)](_0x3838bd=>_0x3838bd[_0xd564df(0x115)])??[]],_0x975389=_0x375b73[_0xd564df(0x14d)]===0x0?_0xd564df(0x148)+CLI_BIN_NAME+'\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.'+_0x4e7ba9+_0xd564df(0x16a):_0xd564df(0x149)+Array[_0xd564df(0x111)](new Set(_0x375b73))[_0xd564df(0x14f)](',\x20')+_0xd564df(0x155);throw CliErrors[_0xd564df(0x15f)]('App\x20\x22'+_0x4e7ba9+_0xd564df(0x127),_0x975389);}const _0xbae17f=_0x551dd7[_0xd564df(0x14a)](_0xd564df(0x156));let _0x5bb547;if(_0xbae17f)_0x5bb547={'global':!![]};else{const {isInProject:_0x2273e5}=await import(_0xd564df(0x11f)),_0x518104=_0x2273e5();_0x5bb547=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0xd564df(0x123),'inProject':_0x518104}));}const _0x59413c=readConfig(_0x5bb547);return _0x59413c[_0xd564df(0x158)]=_0x4e7ba9,writeConfig(_0x59413c,_0x5bb547),{'ok':!![],'message':_0xd564df(0x12e)+_0x4e7ba9+'\x22'+scopeLabel(_0x5bb547)+'.'};}};function warnDeprecatedAppCommand(_0x3b555b,_0x5e44fc){const _0x1891f7=a3_0x1d53e3;console[_0x1891f7(0x157)](CLI_BIN_NAME+_0x1891f7(0x142)+_0x3b555b+_0x1891f7(0x151)+_0x5e44fc+_0x1891f7(0x166));}const importDef={'service':a3_0x1d53e3(0x114),'command':a3_0x1d53e3(0x15e),'description':a3_0x1d53e3(0x165),'risk':a3_0x1d53e3(0x124),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x4e8d08){return await runInitImport(collectFlags(_0x4e8d08,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
@@ -1 +1 @@
1
- (function(_0x1b610d,_0x463869){const _0x1ac70a=a4_0xef06,_0x27e756=_0x1b610d();while(!![]){try{const _0x84bb54=-parseInt(_0x1ac70a(0x70))/0x1+parseInt(_0x1ac70a(0x68))/0x2+parseInt(_0x1ac70a(0x75))/0x3+parseInt(_0x1ac70a(0x71))/0x4+-parseInt(_0x1ac70a(0x76))/0x5*(parseInt(_0x1ac70a(0x66))/0x6)+parseInt(_0x1ac70a(0x69))/0x7+parseInt(_0x1ac70a(0x6e))/0x8*(-parseInt(_0x1ac70a(0x72))/0x9);if(_0x84bb54===_0x463869)break;else _0x27e756['push'](_0x27e756['shift']());}catch(_0x29e4af){_0x27e756['push'](_0x27e756['shift']());}}}(a4_0xf94a,0xd969b));import{CLI_BIN_NAME}from'../../constant/cli.js';import{RUNTIME_ACCESSIBLE_APP_STATUS}from'../../constant/app.js';import{CliErrors}from'../../errors.js';function a4_0xf94a(){const _0x1dc418=['\x20is\x20not\x20available\x20for\x20runtime\x20AI\x20access.','19928eYKqrK','appCode','880999mVvslW','6513416abdjwR','3969kUnCVS','appPublishStatus','toUpperCase','4289916yzKXzD','86155epMUeZ','find','.\x20Publish\x20the\x20app\x20before\x20using\x20','trim','string','366WesvGn','validation','1430934KcBrcz','1031457ZepEjp','\x20dataset/data/sql/bff\x20commands,\x20or\x20choose\x20a\x20published\x20app.','App\x20','UNKNOWN'];a4_0xf94a=function(){return _0x1dc418;};return a4_0xf94a();}export function normalizeAppPublishStatus(_0x284561){const _0x47a123=a4_0xef06;if(typeof _0x284561!==_0x47a123(0x7a))return null;const _0xf5fef3=_0x284561[_0x47a123(0x79)]();return _0xf5fef3?_0xf5fef3[_0x47a123(0x74)]():null;}export function isRuntimeAccessibleApp(_0x281e65){const _0x3cc3b5=a4_0xef06;return normalizeAppPublishStatus(_0x281e65[_0x3cc3b5(0x73)])===RUNTIME_ACCESSIBLE_APP_STATUS;}function a4_0xef06(_0x5abe1e,_0x286f59){_0x5abe1e=_0x5abe1e-0x66;const _0xf94a73=a4_0xf94a();let _0xef0645=_0xf94a73[_0x5abe1e];return _0xef0645;}export function filterRuntimeAccessibleApps(_0x17c08d){return _0x17c08d['filter'](isRuntimeAccessibleApp);}export function findAppByName(_0x29d680,_0x42d3c1){const _0x204342=a4_0xef06;return _0x29d680[_0x204342(0x77)](_0x56c01a=>_0x56c01a['appName']===_0x42d3c1);}export function findAppByCode(_0x593acc,_0x249dd5){const _0x2d55af=a4_0xef06,_0x137833=_0x249dd5['trim']();if(!_0x137833)return undefined;return _0x593acc[_0x2d55af(0x77)](_0x40ee10=>_0x40ee10[_0x2d55af(0x6f)]?.[_0x2d55af(0x79)]()===_0x137833);}export function runtimeInaccessibleAppError(_0x484309,_0x9fe7a8){const _0x21b0d3=a4_0xef06,_0x2047ee=normalizeAppPublishStatus(_0x484309[_0x21b0d3(0x73)])??_0x21b0d3(0x6c);return CliErrors[_0x21b0d3(0x67)](_0x21b0d3(0x6b)+_0x9fe7a8+_0x21b0d3(0x6d),'Current\x20status:\x20'+_0x2047ee+_0x21b0d3(0x78)+CLI_BIN_NAME+_0x21b0d3(0x6a));}
1
+ (function(_0xa21569,_0x754404){const _0x3b91c1=a4_0x3c54,_0x4cafa5=_0xa21569();while(!![]){try{const _0x597c6d=parseInt(_0x3b91c1(0xb1))/0x1+-parseInt(_0x3b91c1(0xbd))/0x2*(-parseInt(_0x3b91c1(0xb2))/0x3)+parseInt(_0x3b91c1(0xc1))/0x4+-parseInt(_0x3b91c1(0xb5))/0x5+parseInt(_0x3b91c1(0xb7))/0x6+-parseInt(_0x3b91c1(0xbf))/0x7*(-parseInt(_0x3b91c1(0xc3))/0x8)+-parseInt(_0x3b91c1(0xc2))/0x9;if(_0x597c6d===_0x754404)break;else _0x4cafa5['push'](_0x4cafa5['shift']());}catch(_0x5b6225){_0x4cafa5['push'](_0x4cafa5['shift']());}}}(a4_0x56f5,0x99b6f));import{CLI_BIN_NAME}from'../../constant/cli.js';import{RUNTIME_ACCESSIBLE_APP_STATUS}from'../../constant/app.js';import{CliErrors}from'../../errors.js';function a4_0x56f5(){const _0x4ee127=['5518xavNij','trim','49553UBPSHV','appName','1258936FlETrT','8382474xnKYCi','664bWMRqi','282079MrJwEU','822UIruXA','appCode','find','2228930fQOemj','string','398706NtAaMK','App\x20','\x20is\x20not\x20available\x20for\x20runtime\x20AI\x20access.','\x20dataset/data/sql/bff\x20commands,\x20or\x20choose\x20a\x20published\x20app.','.\x20Publish\x20the\x20app\x20before\x20using\x20','appPublishStatus'];a4_0x56f5=function(){return _0x4ee127;};return a4_0x56f5();}function a4_0x3c54(_0x187b56,_0x220829){_0x187b56=_0x187b56-0xb1;const _0x56f500=a4_0x56f5();let _0x3c5439=_0x56f500[_0x187b56];return _0x3c5439;}export function normalizeAppPublishStatus(_0x306aab){const _0x3ed025=a4_0x3c54;if(typeof _0x306aab!==_0x3ed025(0xb6))return null;const _0x25a84a=_0x306aab[_0x3ed025(0xbe)]();return _0x25a84a?_0x25a84a['toUpperCase']():null;}export function isRuntimeAccessibleApp(_0x583a1c){const _0xfa5972=a4_0x3c54;return normalizeAppPublishStatus(_0x583a1c[_0xfa5972(0xbc)])===RUNTIME_ACCESSIBLE_APP_STATUS;}export function filterRuntimeAccessibleApps(_0x1ea490){return _0x1ea490['filter'](isRuntimeAccessibleApp);}export function findAppByName(_0x504858,_0x58b43c){const _0x4d76e9=a4_0x3c54;return _0x504858[_0x4d76e9(0xb4)](_0x3a8467=>_0x3a8467[_0x4d76e9(0xc0)]===_0x58b43c);}export function findAppByCode(_0x17cc81,_0x4aa60c){const _0xda6f8e=a4_0x3c54,_0x59ee6e=_0x4aa60c['trim']();if(!_0x59ee6e)return undefined;return _0x17cc81[_0xda6f8e(0xb4)](_0x54d320=>_0x54d320[_0xda6f8e(0xb3)]?.[_0xda6f8e(0xbe)]()===_0x59ee6e);}export function runtimeInaccessibleAppError(_0x1cc3d1,_0x5ce226){const _0x37026f=a4_0x3c54,_0x33ebdc=normalizeAppPublishStatus(_0x1cc3d1[_0x37026f(0xbc)])??'UNKNOWN';return CliErrors['validation'](_0x37026f(0xb8)+_0x5ce226+_0x37026f(0xb9),'Current\x20status:\x20'+_0x33ebdc+_0x37026f(0xbb)+CLI_BIN_NAME+_0x37026f(0xba));}
@@ -1 +1 @@
1
- (function(_0x198246,_0x2714d5){const _0x4a7d09=a5_0x4fd4,_0x311631=_0x198246();while(!![]){try{const _0xc4eb83=-parseInt(_0x4a7d09(0x8a))/0x1*(parseInt(_0x4a7d09(0x8c))/0x2)+parseInt(_0x4a7d09(0x87))/0x3*(-parseInt(_0x4a7d09(0x90))/0x4)+-parseInt(_0x4a7d09(0x89))/0x5*(-parseInt(_0x4a7d09(0x86))/0x6)+parseInt(_0x4a7d09(0x8f))/0x7*(-parseInt(_0x4a7d09(0x92))/0x8)+-parseInt(_0x4a7d09(0x88))/0x9+-parseInt(_0x4a7d09(0x84))/0xa+parseInt(_0x4a7d09(0x82))/0xb;if(_0xc4eb83===_0x2714d5)break;else _0x311631['push'](_0x311631['shift']());}catch(_0x593331){_0x311631['push'](_0x311631['shift']());}}}(a5_0xc446,0x70a82));import{fileURLToPath}from'url';function a5_0xc446(){const _0x59ccdd=['87FyqrwA','2054862bIlgPm','5pdfOet','1nfpunl','tableData','1841612GsaLdg','parse','errorCode','1097831rYTTMZ','86488AOVXCu','../../../mock/app-list.json','24VStihu','data','33951533XpamjB','Mock\x20API\x20error:\x20','4640580YuuveV','utf-8','513948vMEcVX'];a5_0xc446=function(){return _0x59ccdd;};return a5_0xc446();}import{dirname,join}from'path';function a5_0x4fd4(_0x4f683f,_0x4d34df){_0x4f683f=_0x4f683f-0x82;const _0xc4460d=a5_0xc446();let _0x4fd4da=_0xc4460d[_0x4f683f];return _0x4fd4da;}import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0x1dde1d=a5_0x4fd4,_0x5d054b=join(__dirname,_0x1dde1d(0x91)),_0x24f35e=readFileSync(_0x5d054b,_0x1dde1d(0x85));return JSON[_0x1dde1d(0x8d)](_0x24f35e);}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x3fefcd=a5_0x4fd4,_0x592dbf=getMockAppList();if(!_0x592dbf['success'])throw new Error(_0x3fefcd(0x83)+_0x592dbf['errorMsg']+'\x20('+_0x592dbf[_0x3fefcd(0x8e)]+')');return _0x592dbf[_0x3fefcd(0x93)][_0x3fefcd(0x8b)];}
1
+ (function(_0x17bb47,_0x4d2366){const _0x51a30c=a5_0x3cbc,_0x2a10d7=_0x17bb47();while(!![]){try{const _0x178ad3=parseInt(_0x51a30c(0x1fe))/0x1*(parseInt(_0x51a30c(0x1fd))/0x2)+-parseInt(_0x51a30c(0x201))/0x3+parseInt(_0x51a30c(0x202))/0x4*(parseInt(_0x51a30c(0x1f7))/0x5)+-parseInt(_0x51a30c(0x1fc))/0x6+parseInt(_0x51a30c(0x1fb))/0x7+parseInt(_0x51a30c(0x204))/0x8*(-parseInt(_0x51a30c(0x1f9))/0x9)+parseInt(_0x51a30c(0x1f3))/0xa*(parseInt(_0x51a30c(0x1ff))/0xb);if(_0x178ad3===_0x4d2366)break;else _0x2a10d7['push'](_0x2a10d7['shift']());}catch(_0x1fff41){_0x2a10d7['push'](_0x2a10d7['shift']());}}}(a5_0x171c,0x1a5f1));import{fileURLToPath}from'url';import{dirname,join}from'path';import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function a5_0x171c(){const _0xb2373=['16AeCceX','success','520ZNLGuy','errorMsg','utf-8','parse','313685MyksmZ','Mock\x20API\x20error:\x20','165879QMvsJn','data','255535SinobP','1001568zOMVVm','102188rsIzRj','1QxsAaa','25157yROavU','../../../mock/app-list.json','60570rWWPoC','8ZCvxwf','tableData'];a5_0x171c=function(){return _0xb2373;};return a5_0x171c();}function loadMockAppList(){const _0x3061c7=a5_0x3cbc,_0x2f4a16=join(__dirname,_0x3061c7(0x200)),_0x171ce7=readFileSync(_0x2f4a16,_0x3061c7(0x1f5));return JSON[_0x3061c7(0x1f6)](_0x171ce7);}function a5_0x3cbc(_0x14f910,_0x5f00cc){_0x14f910=_0x14f910-0x1f3;const _0x171cc8=a5_0x171c();let _0x3cbc5a=_0x171cc8[_0x14f910];return _0x3cbc5a;}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x53bda9=a5_0x3cbc,_0x2533ae=getMockAppList();if(!_0x2533ae[_0x53bda9(0x205)])throw new Error(_0x53bda9(0x1f8)+_0x2533ae[_0x53bda9(0x1f4)]+'\x20('+_0x2533ae['errorCode']+')');return _0x2533ae[_0x53bda9(0x1fa)][_0x53bda9(0x203)];}
@@ -1 +1 @@
1
- (function(_0x15b197,_0x1efa42){const _0x41b756=a6_0x2f88,_0x1764cb=_0x15b197();while(!![]){try{const _0x5a64b0=parseInt(_0x41b756(0x141))/0x1+parseInt(_0x41b756(0x134))/0x2+-parseInt(_0x41b756(0x143))/0x3*(-parseInt(_0x41b756(0x133))/0x4)+parseInt(_0x41b756(0x132))/0x5*(-parseInt(_0x41b756(0x13f))/0x6)+parseInt(_0x41b756(0x13e))/0x7*(parseInt(_0x41b756(0x142))/0x8)+-parseInt(_0x41b756(0x138))/0x9+-parseInt(_0x41b756(0x140))/0xa*(-parseInt(_0x41b756(0x13c))/0xb);if(_0x5a64b0===_0x1efa42)break;else _0x1764cb['push'](_0x1764cb['shift']());}catch(_0x11895a){_0x1764cb['push'](_0x1764cb['shift']());}}}(a6_0x2d2b,0x3aa85));function a6_0x2f88(_0x1e6d84,_0x25f27a){_0x1e6d84=_0x1e6d84-0x131;const _0x2d2b20=a6_0x2d2b();let _0x2f884a=_0x2d2b20[_0x1e6d84];return _0x2f884a;}import{getMyApps}from'../../core/api-client.js';function a6_0x2d2b(){const _0x4d5078=['40764iZSEkq','1344XsXbLy','324213CbGWdA','cache','387215qBfhAx','4VWWrTt','78310YVwjqk','toISOString','toLowerCase','remote','1603872PFtLcv','trim','mock','items','22WLHdLN','fetchedAt','17367LweNdP','30eXcADB','1004430ApHGkQ'];a6_0x2d2b=function(){return _0x4d5078;};return a6_0x2d2b();}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 _0x8b5561=a6_0x2f88,_0x9a34ae=(productEnv('APP_LIST_SOURCE')||'')[_0x8b5561(0x139)]()[_0x8b5561(0x136)]();return _0x9a34ae===_0x8b5561(0x13a);}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x4cb288){const _0x4325b1=a6_0x2f88,{env:_0x53239b,accessKey:_0x2f18f0,localOnly:localOnly=![],noCache:noCache=![]}=_0x4cb288,_0x94b381=readCachedAppList(_0x53239b,_0x2f18f0),_0x13da70=_0x2f18f0?.[_0x4325b1(0x139)]()?getAppCacheFilePath(_0x53239b,_0x2f18f0):null;if(localOnly)return{'items':_0x94b381?.[_0x4325b1(0x13b)]??[],'source':_0x4325b1(0x131),'fetchedAt':_0x94b381?.[_0x4325b1(0x13d)]??null,'cachePath':_0x13da70};try{const _0x2e4f4c=await getRemoteAppItems(),_0x4aa697=shouldUseMockRemoteApps()?'mock':_0x4325b1(0x137),_0x1467a7=new Date()[_0x4325b1(0x135)](),_0x513240=_0x2f18f0?.[_0x4325b1(0x139)]()?writeCachedAppList(_0x53239b,_0x2f18f0,{'env':_0x53239b,'fetchedAt':_0x1467a7,'source':_0x4aa697,'items':_0x2e4f4c}):null;return{'items':_0x2e4f4c,'source':_0x4aa697,'fetchedAt':_0x1467a7,'cachePath':_0x513240};}catch(_0x3f4b08){if(!noCache&&_0x94b381)return{'items':_0x94b381[_0x4325b1(0x13b)],'source':_0x4325b1(0x131),'fetchedAt':_0x94b381[_0x4325b1(0x13d)],'cachePath':_0x13da70};throw _0x3f4b08;}}
1
+ function a6_0xc1fb(_0xce2af2,_0x2148a5){_0xce2af2=_0xce2af2-0x182;const _0x3bcd36=a6_0x3bcd();let _0xc1fb3d=_0x3bcd36[_0xce2af2];return _0xc1fb3d;}(function(_0x418549,_0x1a744d){const _0x244b92=a6_0xc1fb,_0x545193=_0x418549();while(!![]){try{const _0x108b98=-parseInt(_0x244b92(0x185))/0x1*(-parseInt(_0x244b92(0x18a))/0x2)+parseInt(_0x244b92(0x190))/0x3*(parseInt(_0x244b92(0x18e))/0x4)+-parseInt(_0x244b92(0x191))/0x5+-parseInt(_0x244b92(0x187))/0x6+parseInt(_0x244b92(0x183))/0x7+-parseInt(_0x244b92(0x18f))/0x8*(-parseInt(_0x244b92(0x182))/0x9)+-parseInt(_0x244b92(0x189))/0xa;if(_0x108b98===_0x1a744d)break;else _0x545193['push'](_0x545193['shift']());}catch(_0x20be00){_0x545193['push'](_0x545193['shift']());}}}(a6_0x3bcd,0x5428c));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 _0x525592=a6_0xc1fb,_0x1fd7a4=(productEnv(_0x525592(0x18b))||'')[_0x525592(0x188)]()[_0x525592(0x186)]();return _0x1fd7a4===_0x525592(0x184);}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}function a6_0x3bcd(){const _0x22fb31=['toISOString','items','1338633nwSnYN','3845436CEKvjb','mock','58553cKgOEn','toLowerCase','124866WKAoSy','trim','2393880coFUvl','6UvkFaW','APP_LIST_SOURCE','remote','fetchedAt','1019516rsyHke','8YezliA','3epNrac','2618540PouRua','cache'];a6_0x3bcd=function(){return _0x22fb31;};return a6_0x3bcd();}export async function getRemoteAppList(_0x3ac5f5){const _0xbffadb=a6_0xc1fb,{env:_0x5ec65a,accessKey:_0x1f78c2,localOnly:localOnly=![],noCache:noCache=![]}=_0x3ac5f5,_0x3b032a=readCachedAppList(_0x5ec65a,_0x1f78c2),_0x486ebd=_0x1f78c2?.[_0xbffadb(0x188)]()?getAppCacheFilePath(_0x5ec65a,_0x1f78c2):null;if(localOnly)return{'items':_0x3b032a?.['items']??[],'source':'cache','fetchedAt':_0x3b032a?.[_0xbffadb(0x18d)]??null,'cachePath':_0x486ebd};try{const _0x249203=await getRemoteAppItems(),_0xbdbb77=shouldUseMockRemoteApps()?_0xbffadb(0x184):_0xbffadb(0x18c),_0x1baf76=new Date()[_0xbffadb(0x193)](),_0x3c7a0f=_0x1f78c2?.[_0xbffadb(0x188)]()?writeCachedAppList(_0x5ec65a,_0x1f78c2,{'env':_0x5ec65a,'fetchedAt':_0x1baf76,'source':_0xbdbb77,'items':_0x249203}):null;return{'items':_0x249203,'source':_0xbdbb77,'fetchedAt':_0x1baf76,'cachePath':_0x3c7a0f};}catch(_0x3e2532){if(!noCache&&_0x3b032a)return{'items':_0x3b032a[_0xbffadb(0x194)],'source':_0xbffadb(0x192),'fetchedAt':_0x3b032a['fetchedAt'],'cachePath':_0x486ebd};throw _0x3e2532;}}
@@ -1 +1 @@
1
- (function(_0x1421f7,_0x1da91c){const _0x593a91=a7_0x3e58,_0xaa3cb6=_0x1421f7();while(!![]){try{const _0x6a2923=parseInt(_0x593a91(0x14c))/0x1+-parseInt(_0x593a91(0x154))/0x2+-parseInt(_0x593a91(0x14a))/0x3+parseInt(_0x593a91(0x14b))/0x4+-parseInt(_0x593a91(0x147))/0x5*(-parseInt(_0x593a91(0x148))/0x6)+parseInt(_0x593a91(0x152))/0x7*(-parseInt(_0x593a91(0x155))/0x8)+-parseInt(_0x593a91(0x15c))/0x9*(-parseInt(_0x593a91(0x157))/0xa);if(_0x6a2923===_0x1da91c)break;else _0xaa3cb6['push'](_0xaa3cb6['shift']());}catch(_0x4ce5ae){_0xaa3cb6['push'](_0xaa3cb6['shift']());}}}(a7_0x4ca9,0x592ae));function a7_0x4ca9(){const _0x57e68f=['740908tvhVYm','684814qtouoU','isCurrent','named','definedIn','find','local','411117BhMDYj','trim','1096582wNGFps','64hjnVux','appcode','4938580cfLfhs','currentApp','name','defaultApp','global','18ivDGDV','project','2255MzBYyl','1392ZqqXWD','appCode','1737060OnoxTw'];a7_0x4ca9=function(){return _0x57e68f;};return a7_0x4ca9();}function a7_0x3e58(_0x464264,_0x35873e){_0x464264=_0x464264-0x147;const _0x4ca9bd=a7_0x4ca9();let _0x3e5819=_0x4ca9bd[_0x464264];return _0x3e5819;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x1e4b0e,_0x67b649){const _0x44ac5e=a7_0x3e58;if(!_0x67b649)return;const _0x1c5d77=!!(_0x67b649[_0x44ac5e(0x158)]??_0x67b649[_0x44ac5e(0x15a)]);for(const _0x174398 of _0x1e4b0e){_0x174398['isCurrent']=![];}const _0x3b1db4=_0x67b649[_0x44ac5e(0x149)]!=null?String(_0x67b649[_0x44ac5e(0x149)])['trim']():'';if(_0x1c5d77){const _0x386395=_0x67b649['currentApp']??_0x67b649[_0x44ac5e(0x15a)];if(_0x386395){const _0x227507=_0x1e4b0e[_0x44ac5e(0x150)](_0x34e0a2=>_0x34e0a2['named']===!![]&&_0x34e0a2['name']===_0x386395&&_0x34e0a2[_0x44ac5e(0x14f)]===_0x44ac5e(0x151)),_0xf4fbdb=_0x227507??_0x1e4b0e['find'](_0xfb1afb=>_0xfb1afb[_0x44ac5e(0x14e)]===!![]&&_0xfb1afb[_0x44ac5e(0x159)]===_0x386395);_0xf4fbdb&&(_0xf4fbdb[_0x44ac5e(0x14d)]=!![]);}return;}if(!_0x3b1db4)return;for(const _0x21ec7a of _0x1e4b0e){String(_0x21ec7a[_0x44ac5e(0x156)]??'')[_0x44ac5e(0x153)]()===_0x3b1db4&&(_0x21ec7a[_0x44ac5e(0x14d)]=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x182fa8){const _0x5330a1=a7_0x3e58;return formatScopeLabel(_0x182fa8[_0x5330a1(0x15b)]?_0x5330a1(0x15b):_0x5330a1(0x15d));}
1
+ function a7_0x39a1(_0x227a78,_0x21bb12){_0x227a78=_0x227a78-0x148;const _0x384a96=a7_0x384a();let _0x39a1ff=_0x384a96[_0x227a78];return _0x39a1ff;}(function(_0x1d57d2,_0x300253){const _0x92348d=a7_0x39a1,_0x418d37=_0x1d57d2();while(!![]){try{const _0x2749c8=parseInt(_0x92348d(0x14b))/0x1+parseInt(_0x92348d(0x14a))/0x2*(-parseInt(_0x92348d(0x15d))/0x3)+-parseInt(_0x92348d(0x14d))/0x4*(parseInt(_0x92348d(0x157))/0x5)+parseInt(_0x92348d(0x154))/0x6+parseInt(_0x92348d(0x160))/0x7*(parseInt(_0x92348d(0x15f))/0x8)+-parseInt(_0x92348d(0x14c))/0x9*(parseInt(_0x92348d(0x152))/0xa)+-parseInt(_0x92348d(0x15a))/0xb*(-parseInt(_0x92348d(0x158))/0xc);if(_0x2749c8===_0x300253)break;else _0x418d37['push'](_0x418d37['shift']());}catch(_0x1559f6){_0x418d37['push'](_0x418d37['shift']());}}}(a7_0x384a,0xb2824));import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x12f97b,_0x4b627d){const _0xca53c4=a7_0x39a1;if(!_0x4b627d)return;const _0x59dad5=!!(_0x4b627d[_0xca53c4(0x153)]??_0x4b627d['defaultApp']);for(const _0x2733a7 of _0x12f97b){_0x2733a7[_0xca53c4(0x14f)]=![];}const _0x4ac64f=_0x4b627d[_0xca53c4(0x156)]!=null?String(_0x4b627d['appCode'])['trim']():'';if(_0x59dad5){const _0x401a3e=_0x4b627d['currentApp']??_0x4b627d[_0xca53c4(0x159)];if(_0x401a3e){const _0x269f81=_0x12f97b[_0xca53c4(0x15e)](_0xe433=>_0xe433[_0xca53c4(0x150)]===!![]&&_0xe433[_0xca53c4(0x155)]===_0x401a3e&&_0xe433[_0xca53c4(0x151)]===_0xca53c4(0x15b)),_0xe5b094=_0x269f81??_0x12f97b[_0xca53c4(0x15e)](_0x176181=>_0x176181[_0xca53c4(0x150)]===!![]&&_0x176181[_0xca53c4(0x155)]===_0x401a3e);_0xe5b094&&(_0xe5b094['isCurrent']=!![]);}return;}if(!_0x4ac64f)return;for(const _0x5756bc of _0x12f97b){String(_0x5756bc[_0xca53c4(0x149)]??'')[_0xca53c4(0x14e)]()===_0x4ac64f&&(_0x5756bc[_0xca53c4(0x14f)]=!![]);}}function a7_0x384a(){const _0xf54742=['global','appcode','202EukDOO','1091251TJMLQd','37737OpJMWs','321484nMHEuo','trim','isCurrent','named','definedIn','2350XBAQvw','currentApp','5874030HJaAoM','name','appCode','55GyFgJt','1200PIoGll','defaultApp','2255rULZlU','local','project','20667RVdEjB','find','9645128TTKSJQ','7qapXhi'];a7_0x384a=function(){return _0xf54742;};return a7_0x384a();}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x5da3c2){const _0x3d18fe=a7_0x39a1;return formatScopeLabel(_0x5da3c2[_0x3d18fe(0x148)]?_0x3d18fe(0x148):_0x3d18fe(0x15c));}
@@ -1 +1 @@
1
- function a8_0x4acb(_0xcc9bab,_0x37cae0){_0xcc9bab=_0xcc9bab-0x6a;const _0x8702d9=a8_0x8702();let _0x4acbbe=_0x8702d9[_0xcc9bab];return _0x4acbbe;}const a8_0x42edf8=a8_0x4acb;(function(_0x714de,_0x257004){const _0x5fcbf4=a8_0x4acb,_0x6fade7=_0x714de();while(!![]){try{const _0x4e33b8=parseInt(_0x5fcbf4(0x7a))/0x1*(parseInt(_0x5fcbf4(0x9e))/0x2)+parseInt(_0x5fcbf4(0xa8))/0x3*(parseInt(_0x5fcbf4(0x9b))/0x4)+parseInt(_0x5fcbf4(0x8c))/0x5*(-parseInt(_0x5fcbf4(0xac))/0x6)+-parseInt(_0x5fcbf4(0x95))/0x7+parseInt(_0x5fcbf4(0x8a))/0x8*(-parseInt(_0x5fcbf4(0x89))/0x9)+-parseInt(_0x5fcbf4(0xa3))/0xa+-parseInt(_0x5fcbf4(0xb0))/0xb*(-parseInt(_0x5fcbf4(0x91))/0xc);if(_0x4e33b8===_0x257004)break;else _0x6fade7['push'](_0x6fade7['shift']());}catch(_0x5b4bf3){_0x6fade7['push'](_0x6fade7['shift']());}}}(a8_0x8702,0x189a2));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_0x42edf8(0x87),ARTIFACT_SOURCE_AGENT='AGENT',ALLOWED_REACT_MODULE_IMPORTS=[a8_0x42edf8(0x9a),a8_0x42edf8(0x8d),a8_0x42edf8(0x90),a8_0x42edf8(0x6c),'antd',a8_0x42edf8(0x6a)];export const ALLOWED_REACT_MODULE_IMPORTS_TEXT=ALLOWED_REACT_MODULE_IMPORTS[a8_0x42edf8(0xb3)](',\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_0x42edf8(0x6e),'type':'string','required':!![],'description':a8_0x42edf8(0xa0)},ARTIFACT_NAME_FLAG={'name':a8_0x42edf8(0x98),'type':a8_0x42edf8(0xb9),'description':'Artifact\x20display\x20name'},METADATA_FLAG={'name':a8_0x42edf8(0xad),'type':a8_0x42edf8(0xb9),'description':a8_0x42edf8(0x88)};function isPlainObject(_0x3f1a62){const _0x35b814=a8_0x42edf8;return typeof _0x3f1a62===_0x35b814(0x7f)&&_0x3f1a62!==null&&!Array[_0x35b814(0x8f)](_0x3f1a62);}function readSourceFile(_0x4f6d3b){const _0x456722=a8_0x42edf8;if(!_0x4f6d3b)throw CliErrors[_0x456722(0x80)](_0x456722(0x84));if(!existsSync(_0x4f6d3b))throw CliErrors[_0x456722(0x80)]('File\x20not\x20found:\x20'+_0x4f6d3b);if(!statSync(_0x4f6d3b)[_0x456722(0x6b)]())throw CliErrors[_0x456722(0x80)](_0x456722(0x7c)+_0x4f6d3b);const _0x1772c5=readFileSync(_0x4f6d3b,_0x456722(0xb5));return validateReactModuleSource(_0x1772c5),_0x1772c5;}function parseMetadata(_0x374e17){const _0x1570ad=a8_0x42edf8;if(!_0x374e17)return undefined;let _0x43d3c4;try{_0x43d3c4=JSON['parse'](_0x374e17);}catch{throw CliErrors[_0x1570ad(0x80)]('Invalid\x20JSON\x20for\x20--metadata:\x20'+_0x374e17);}if(!isPlainObject(_0x43d3c4))throw CliErrors[_0x1570ad(0x80)](_0x1570ad(0xaf));const _0x2edc85={..._0x43d3c4};return delete _0x2edc85[_0x1570ad(0xab)],_0x2edc85;}function getPackageName(_0x271d8d){const _0x25bd65=a8_0x42edf8;if(_0x271d8d[_0x25bd65(0x6d)]('@')){const [_0xf3d5c8,_0x13af00]=_0x271d8d[_0x25bd65(0x82)]('/');return _0xf3d5c8&&_0x13af00?_0xf3d5c8+'/'+_0x13af00:_0x271d8d;}return _0x271d8d[_0x25bd65(0x82)]('/')[0x0]||_0x271d8d;}function validateAllowedImports(_0x31908c){const _0x177cdf=a8_0x42edf8,_0x55a110=new Set();for(const _0x5256b6 of IMPORT_SOURCE_PATTERNS){_0x5256b6[_0x177cdf(0x93)]=0x0;let _0x4a7a81;while((_0x4a7a81=_0x5256b6[_0x177cdf(0x7d)](_0x31908c))!==null){const _0x464b56=_0x4a7a81[0x1]?.[_0x177cdf(0xa2)]();_0x464b56&&_0x55a110[_0x177cdf(0x96)](_0x464b56);}}const _0x1ff67c=[..._0x55a110][_0x177cdf(0x72)](getPackageName)[_0x177cdf(0x79)](_0x39d8d7=>!ALLOWED_REACT_MODULE_IMPORTS[_0x177cdf(0x8e)](_0x39d8d7));if(_0x1ff67c['length']>0x0)throw CliErrors[_0x177cdf(0x80)](_0x177cdf(0xa1)+ALLOWED_REACT_MODULE_IMPORTS_TEXT+'.\x20Unsupported:\x20'+[...new Set(_0x1ff67c)]['join'](',\x20'));}export function validateReactModuleSource(_0xb7951c){const _0x5da79f=a8_0x42edf8;if(!_0xb7951c[_0x5da79f(0xa2)]())throw CliErrors['validation']('Artifact\x20source\x20file\x20is\x20blank.');if(PAGE_LEVEL_PATTERNS[_0x5da79f(0xa5)](_0x1a038f=>_0x1a038f[_0x5da79f(0xb8)](_0xb7951c)))throw CliErrors['validation'](_0x5da79f(0x78));validateAllowedImports(_0xb7951c);}function buildArtifactInput(_0x41e336){const _0x33f264=a8_0x42edf8,_0x3dbcb7=readSourceFile(_0x41e336[_0x33f264(0x7b)](_0x33f264(0x6e))),_0x348705=_0x41e336['str'](_0x33f264(0x98))[_0x33f264(0xa2)](),_0x4a12c3=parseMetadata(_0x41e336[_0x33f264(0x7b)](_0x33f264(0xad)));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x348705?{'name':_0x348705}:{},'content':_0x3dbcb7,..._0x4a12c3?{'metadata':_0x4a12c3}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0x4f47df){const _0x3a3463=a8_0x42edf8;return{'id':_0x4f47df['id'],'name':_0x4f47df[_0x3a3463(0x98)],'artifactType':_0x4f47df[_0x3a3463(0x75)],'source':_0x4f47df[_0x3a3463(0xb7)],'favorite':_0x4f47df[_0x3a3463(0xa6)],'deleted':_0x4f47df['deleted'],'createTime':_0x4f47df[_0x3a3463(0x77)],'updateTime':_0x4f47df[_0x3a3463(0x92)]};}function detailArtifact(_0x5879a9){const _0x4d5bd4=a8_0x42edf8;return{'id':_0x5879a9['id'],'appCode':_0x5879a9[_0x4d5bd4(0xa7)],'name':_0x5879a9[_0x4d5bd4(0x98)],'artifactType':_0x5879a9[_0x4d5bd4(0x75)],'source':_0x5879a9['source'],'favorite':_0x5879a9['favorite'],'deleted':_0x5879a9[_0x4d5bd4(0xb4)],'content':_0x5879a9[_0x4d5bd4(0xb2)]??'','compiledContent':_0x5879a9[_0x4d5bd4(0xab)],'metadata':_0x5879a9['metadata']??{},'createTime':_0x5879a9[_0x4d5bd4(0x77)],'updateTime':_0x5879a9[_0x4d5bd4(0x92)]};}function readFavoriteFlag(_0x5e4000){const _0x529b51=a8_0x42edf8,_0x4c96ca=_0x5e4000[_0x529b51(0x85)](_0x529b51(0xa6));return _0x4c96ca===undefined||_0x4c96ca===null||_0x4c96ca===''?undefined:_0x5e4000[_0x529b51(0xb6)]('favorite');}function a8_0x8702(){const _0x18487a=['num','split','build','File\x20path\x20is\x20required.','flag','detail','react_module','Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped','18ySNjEF','408368qxlgGI','Updated\x20Artifact\x20','5UYyPQT','react-dom','includes','isArray','lodash','204QcbJuh','updateTime','lastIndex','boolean','1390214UfIEYF','add','update','name','Created\x20Artifact\x20','react','60yxaeaL','read','Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','17482vBvhne','List\x20current-app\x20react_module\x20Artifacts','Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file','react_module\x20imports\x20are\x20limited\x20to:\x20','trim','1667600aRHYAR','Preview:\x20update\x20react_module\x20Artifact\x20','some','favorite','appCode','2523pTHpqC','/update','artifact','compiledContent','1182024gDJLcg','metadata','/client/artifact/','--metadata\x20must\x20be\x20a\x20JSON\x20object.','475673CcPItL','Artifact\x20ID','content','join','deleted','utf8','bool','source','test','string','Optional\x20favorite-state\x20filter','Preview:\x20create\x20react_module\x20Artifact','@ant-design/icons','isFile','dayjs','startsWith','file','description','/client/artifact/create','verbose','map','Optional\x20source\x20filter,\x20for\x20example\x20AGENT','write','artifactType','POST','createTime','react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.','filter','2FKFPqV','str','File\x20is\x20not\x20a\x20regular\x20file:\x20','exec','Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','object','validation'];a8_0x8702=function(){return _0x18487a;};return a8_0x8702();}const artifactList={'service':a8_0x42edf8(0xaa),'command':'list','description':a8_0x42edf8(0x9f),'risk':'read','flags':[{'name':a8_0x42edf8(0xb7),'type':a8_0x42edf8(0xb9),'description':a8_0x42edf8(0x73)},{'name':a8_0x42edf8(0xa6),'type':a8_0x42edf8(0x94),'description':a8_0x42edf8(0xba)},VERBOSE_FLAG],async 'execute'(_0x36be52){const _0x4d2747=a8_0x42edf8,_0x300c20=await listRuntimeArtifacts(_0x36be52[_0x4d2747(0xa7)],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x36be52[_0x4d2747(0x7b)]('source')?{'source':_0x36be52[_0x4d2747(0x7b)](_0x4d2747(0xb7))}:{},...readFavoriteFlag(_0x36be52)!==undefined?{'favorite':readFavoriteFlag(_0x36be52)}:{}});return{'ok':!![],'data':{'total':_0x300c20['length'],'items':_0x36be52[_0x4d2747(0xb6)](_0x4d2747(0x71))?_0x300c20:_0x300c20[_0x4d2747(0x72)](summarizeArtifact)}};}},artifactDetail={'service':a8_0x42edf8(0xaa),'command':a8_0x42edf8(0x86),'description':'Show\x20one\x20Artifact\x20by\x20id','risk':a8_0x42edf8(0x9c),'flags':[{...ID_FLAG,'description':a8_0x42edf8(0xb1)}],async 'execute'(_0x4be941){const _0x37dd49=a8_0x42edf8,_0x1e194e=await getRuntimeArtifact(_0x4be941['num']('id'),_0x4be941[_0x37dd49(0xa7)]);return{'ok':!![],'data':detailArtifact(_0x1e194e)};}},artifactCreate={'service':'artifact','command':'create','description':a8_0x42edf8(0x7e),'risk':a8_0x42edf8(0x74),'flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x18e065){const _0x42b347=a8_0x42edf8,_0x329a70=buildArtifactInput(_0x18e065),_0x42aa33=await createRuntimeArtifact(_0x18e065[_0x42b347(0xa7)],_0x329a70);return{'ok':!![],'data':detailArtifact(_0x42aa33),'message':_0x42b347(0x99)+_0x42aa33['id']+(_0x42aa33[_0x42b347(0x98)]?'\x20('+_0x42aa33[_0x42b347(0x98)]+')':'')};},async 'dryRun'(_0xb7e4f9){const _0x2cbf8d=a8_0x42edf8,_0x59364f=buildArtifactInput(_0xb7e4f9);return dryRun(_0x2cbf8d(0x76),_0x2cbf8d(0x70))['body']({'appCode':_0xb7e4f9[_0x2cbf8d(0xa7)],..._0x59364f})[_0x2cbf8d(0x6f)](_0x2cbf8d(0xbb))['build']();}},artifactUpdate={'service':a8_0x42edf8(0xaa),'command':a8_0x42edf8(0x97),'description':a8_0x42edf8(0x9d),'risk':a8_0x42edf8(0x74),'flags':[{...ID_FLAG,'description':'Artifact\x20ID'},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x62fe73){const _0x54a81c=a8_0x42edf8,_0x473883=_0x62fe73[_0x54a81c(0x81)]('id'),_0x55f555=buildArtifactInput(_0x62fe73),_0x59a169=await updateRuntimeArtifact(_0x473883,_0x62fe73[_0x54a81c(0xa7)],_0x55f555);return{'ok':!![],'data':detailArtifact(_0x59a169),'message':_0x54a81c(0x8b)+_0x59a169['id']+(_0x59a169[_0x54a81c(0x98)]?'\x20('+_0x59a169[_0x54a81c(0x98)]+')':'')};},async 'dryRun'(_0x598df4){const _0x32522c=a8_0x42edf8,_0x4f4c93=_0x598df4['num']('id'),_0x394a9f=buildArtifactInput(_0x598df4);return dryRun(_0x32522c(0x76),_0x32522c(0xae)+_0x4f4c93+_0x32522c(0xa9))['body']({'appCode':_0x598df4[_0x32522c(0xa7)],..._0x394a9f})['description'](_0x32522c(0xa4)+_0x4f4c93)[_0x32522c(0x83)]();}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
1
+ const a8_0x304d6e=a8_0x2f5e;(function(_0x434df1,_0x187231){const _0x11dec3=a8_0x2f5e,_0x20dabe=_0x434df1();while(!![]){try{const _0x448e7b=-parseInt(_0x11dec3(0xc9))/0x1*(-parseInt(_0x11dec3(0xd9))/0x2)+parseInt(_0x11dec3(0xe2))/0x3+-parseInt(_0x11dec3(0xe8))/0x4*(-parseInt(_0x11dec3(0xf6))/0x5)+parseInt(_0x11dec3(0xdb))/0x6*(parseInt(_0x11dec3(0xdf))/0x7)+parseInt(_0x11dec3(0xdc))/0x8+parseInt(_0x11dec3(0xf3))/0x9*(parseInt(_0x11dec3(0xde))/0xa)+parseInt(_0x11dec3(0xf9))/0xb*(-parseInt(_0x11dec3(0xfd))/0xc);if(_0x448e7b===_0x187231)break;else _0x20dabe['push'](_0x20dabe['shift']());}catch(_0x2646a1){_0x20dabe['push'](_0x20dabe['shift']());}}}(a8_0x4144,0xd0097));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_0x304d6e(0xe5),ARTIFACT_SOURCE_AGENT=a8_0x304d6e(0xfa),ALLOWED_REACT_MODULE_IMPORTS=[a8_0x304d6e(0xeb),a8_0x304d6e(0xfc),a8_0x304d6e(0xe4),a8_0x304d6e(0xd2),a8_0x304d6e(0xbd),a8_0x304d6e(0xfe)];export const ALLOWED_REACT_MODULE_IMPORTS_TEXT=ALLOWED_REACT_MODULE_IMPORTS[a8_0x304d6e(0xed)](',\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_0x304d6e(0xd7),'type':a8_0x304d6e(0xb9),'required':!![],'description':'Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file'},ARTIFACT_NAME_FLAG={'name':a8_0x304d6e(0xf2),'type':a8_0x304d6e(0xb9),'description':'Artifact\x20display\x20name'},METADATA_FLAG={'name':a8_0x304d6e(0xc4),'type':'string','description':'Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped'};function isPlainObject(_0x473546){const _0x49cb18=a8_0x304d6e;return typeof _0x473546===_0x49cb18(0xbb)&&_0x473546!==null&&!Array['isArray'](_0x473546);}function readSourceFile(_0x51196e){const _0xe92dc=a8_0x304d6e;if(!_0x51196e)throw CliErrors[_0xe92dc(0xf0)](_0xe92dc(0x101));if(!existsSync(_0x51196e))throw CliErrors[_0xe92dc(0xf0)](_0xe92dc(0xbf)+_0x51196e);if(!statSync(_0x51196e)[_0xe92dc(0xc8)]())throw CliErrors['validation'](_0xe92dc(0xcb)+_0x51196e);const _0x37e90b=readFileSync(_0x51196e,_0xe92dc(0xf8));return validateReactModuleSource(_0x37e90b),_0x37e90b;}function parseMetadata(_0xfab574){const _0x54e0c1=a8_0x304d6e;if(!_0xfab574)return undefined;let _0x279d2a;try{_0x279d2a=JSON[_0x54e0c1(0xec)](_0xfab574);}catch{throw CliErrors[_0x54e0c1(0xf0)](_0x54e0c1(0xc5)+_0xfab574);}if(!isPlainObject(_0x279d2a))throw CliErrors[_0x54e0c1(0xf0)](_0x54e0c1(0xf7));const _0x4dae7c={..._0x279d2a};return delete _0x4dae7c[_0x54e0c1(0xfb)],_0x4dae7c;}function a8_0x2f5e(_0x5d1162,_0x4a534c){_0x5d1162=_0x5d1162-0xb6;const _0x4144f6=a8_0x4144();let _0x2f5ed3=_0x4144f6[_0x5d1162];return _0x2f5ed3;}function getPackageName(_0x242b9f){const _0x9050f3=a8_0x304d6e;if(_0x242b9f[_0x9050f3(0xc7)]('@')){const [_0x565c16,_0x19391d]=_0x242b9f[_0x9050f3(0xee)]('/');return _0x565c16&&_0x19391d?_0x565c16+'/'+_0x19391d:_0x242b9f;}return _0x242b9f[_0x9050f3(0xee)]('/')[0x0]||_0x242b9f;}function validateAllowedImports(_0x399ec4){const _0x297ee7=a8_0x304d6e,_0x41cabf=new Set();for(const _0x376307 of IMPORT_SOURCE_PATTERNS){_0x376307['lastIndex']=0x0;let _0x3e61ba;while((_0x3e61ba=_0x376307[_0x297ee7(0xea)](_0x399ec4))!==null){const _0x3d3806=_0x3e61ba[0x1]?.['trim']();_0x3d3806&&_0x41cabf[_0x297ee7(0xe1)](_0x3d3806);}}const _0x2f80d4=[..._0x41cabf]['map'](getPackageName)[_0x297ee7(0xb6)](_0xd1ea8=>!ALLOWED_REACT_MODULE_IMPORTS[_0x297ee7(0xef)](_0xd1ea8));if(_0x2f80d4[_0x297ee7(0xce)]>0x0)throw CliErrors[_0x297ee7(0xf0)](_0x297ee7(0xf4)+ALLOWED_REACT_MODULE_IMPORTS_TEXT+_0x297ee7(0xcd)+[...new Set(_0x2f80d4)][_0x297ee7(0xed)](',\x20'));}export function validateReactModuleSource(_0x4034b9){const _0x333336=a8_0x304d6e;if(!_0x4034b9[_0x333336(0x104)]())throw CliErrors[_0x333336(0xf0)]('Artifact\x20source\x20file\x20is\x20blank.');if(PAGE_LEVEL_PATTERNS['some'](_0xd7911e=>_0xd7911e[_0x333336(0xca)](_0x4034b9)))throw CliErrors[_0x333336(0xf0)]('react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.');validateAllowedImports(_0x4034b9);}function buildArtifactInput(_0x2e4777){const _0x43f4ac=a8_0x304d6e,_0x19a251=readSourceFile(_0x2e4777['str'](_0x43f4ac(0xd7))),_0x4b15f4=_0x2e4777['str'](_0x43f4ac(0xf2))[_0x43f4ac(0x104)](),_0x59261c=parseMetadata(_0x2e4777[_0x43f4ac(0xd8)]('metadata'));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x4b15f4?{'name':_0x4b15f4}:{},'content':_0x19a251,..._0x59261c?{'metadata':_0x59261c}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0x2168d3){const _0x467c2b=a8_0x304d6e;return{'id':_0x2168d3['id'],'name':_0x2168d3[_0x467c2b(0xf2)],'artifactType':_0x2168d3[_0x467c2b(0x102)],'source':_0x2168d3['source'],'favorite':_0x2168d3[_0x467c2b(0xf5)],'deleted':_0x2168d3[_0x467c2b(0xbc)],'createTime':_0x2168d3['createTime'],'updateTime':_0x2168d3[_0x467c2b(0x103)]};}function a8_0x4144(){const _0x14e822=['15564mkpefI','@ant-design/icons','map','appCode','File\x20path\x20is\x20required.','artifactType','updateTime','trim','filter','bool','/client/artifact/create','string','read','object','deleted','antd','Show\x20one\x20Artifact\x20by\x20id','File\x20not\x20found:\x20','Artifact\x20ID','POST','/update','Created\x20Artifact\x20','metadata','Invalid\x20JSON\x20for\x20--metadata:\x20','body','startsWith','isFile','919hgKDWA','test','File\x20is\x20not\x20a\x20regular\x20file:\x20','/client/artifact/','.\x20Unsupported:\x20','length','Optional\x20source\x20filter,\x20for\x20example\x20AGENT','content','num','dayjs','create','createTime','Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','write','file','str','2644zrkJnU','List\x20current-app\x20react_module\x20Artifacts','6GzoecO','6997280bEgeqm','Preview:\x20update\x20react_module\x20Artifact\x20','1244510DsTslP','9779651xMagKI','verbose','add','1766454tyZuxZ','description','lodash','react_module','Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','source','8ZIQbvr','list','exec','react','parse','join','split','includes','validation','artifact','name','9qoqrmV','react_module\x20imports\x20are\x20limited\x20to:\x20','favorite','2197755FQeRFA','--metadata\x20must\x20be\x20a\x20JSON\x20object.','utf8','35849PFcfSV','AGENT','compiledContent','react-dom'];a8_0x4144=function(){return _0x14e822;};return a8_0x4144();}function detailArtifact(_0x1bd4e2){const _0x527ecf=a8_0x304d6e;return{'id':_0x1bd4e2['id'],'appCode':_0x1bd4e2['appCode'],'name':_0x1bd4e2[_0x527ecf(0xf2)],'artifactType':_0x1bd4e2[_0x527ecf(0x102)],'source':_0x1bd4e2[_0x527ecf(0xe7)],'favorite':_0x1bd4e2[_0x527ecf(0xf5)],'deleted':_0x1bd4e2['deleted'],'content':_0x1bd4e2[_0x527ecf(0xd0)]??'','compiledContent':_0x1bd4e2[_0x527ecf(0xfb)],'metadata':_0x1bd4e2['metadata']??{},'createTime':_0x1bd4e2[_0x527ecf(0xd4)],'updateTime':_0x1bd4e2[_0x527ecf(0x103)]};}function readFavoriteFlag(_0x4a47c2){const _0x2083bc=a8_0x304d6e,_0x942e6a=_0x4a47c2['flag'](_0x2083bc(0xf5));return _0x942e6a===undefined||_0x942e6a===null||_0x942e6a===''?undefined:_0x4a47c2[_0x2083bc(0xb7)](_0x2083bc(0xf5));}const artifactList={'service':'artifact','command':a8_0x304d6e(0xe9),'description':a8_0x304d6e(0xda),'risk':'read','flags':[{'name':a8_0x304d6e(0xe7),'type':'string','description':a8_0x304d6e(0xcf)},{'name':a8_0x304d6e(0xf5),'type':'boolean','description':'Optional\x20favorite-state\x20filter'},VERBOSE_FLAG],async 'execute'(_0x1ea536){const _0x49971c=a8_0x304d6e,_0x4bd4fe=await listRuntimeArtifacts(_0x1ea536['appCode'],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x1ea536[_0x49971c(0xd8)]('source')?{'source':_0x1ea536[_0x49971c(0xd8)](_0x49971c(0xe7))}:{},...readFavoriteFlag(_0x1ea536)!==undefined?{'favorite':readFavoriteFlag(_0x1ea536)}:{}});return{'ok':!![],'data':{'total':_0x4bd4fe['length'],'items':_0x1ea536[_0x49971c(0xb7)](_0x49971c(0xe0))?_0x4bd4fe:_0x4bd4fe[_0x49971c(0xff)](summarizeArtifact)}};}},artifactDetail={'service':a8_0x304d6e(0xf1),'command':'detail','description':a8_0x304d6e(0xbe),'risk':a8_0x304d6e(0xba),'flags':[{...ID_FLAG,'description':a8_0x304d6e(0xc0)}],async 'execute'(_0x46d507){const _0x56bfbe=a8_0x304d6e,_0x1e2d16=await getRuntimeArtifact(_0x46d507[_0x56bfbe(0xd1)]('id'),_0x46d507[_0x56bfbe(0x100)]);return{'ok':!![],'data':detailArtifact(_0x1e2d16)};}},artifactCreate={'service':a8_0x304d6e(0xf1),'command':a8_0x304d6e(0xd3),'description':a8_0x304d6e(0xe6),'risk':a8_0x304d6e(0xd6),'flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x10d32f){const _0x1a5846=a8_0x304d6e,_0x5294d1=buildArtifactInput(_0x10d32f),_0x5622c8=await createRuntimeArtifact(_0x10d32f[_0x1a5846(0x100)],_0x5294d1);return{'ok':!![],'data':detailArtifact(_0x5622c8),'message':_0x1a5846(0xc3)+_0x5622c8['id']+(_0x5622c8['name']?'\x20('+_0x5622c8['name']+')':'')};},async 'dryRun'(_0x3fb769){const _0x350503=a8_0x304d6e,_0x11948d=buildArtifactInput(_0x3fb769);return dryRun('POST',_0x350503(0xb8))[_0x350503(0xc6)]({'appCode':_0x3fb769[_0x350503(0x100)],..._0x11948d})[_0x350503(0xe3)]('Preview:\x20create\x20react_module\x20Artifact')['build']();}},artifactUpdate={'service':a8_0x304d6e(0xf1),'command':'update','description':a8_0x304d6e(0xd5),'risk':a8_0x304d6e(0xd6),'flags':[{...ID_FLAG,'description':a8_0x304d6e(0xc0)},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x5d4367){const _0x1b1241=a8_0x304d6e,_0x5c96ca=_0x5d4367['num']('id'),_0x163f08=buildArtifactInput(_0x5d4367),_0x1412cf=await updateRuntimeArtifact(_0x5c96ca,_0x5d4367['appCode'],_0x163f08);return{'ok':!![],'data':detailArtifact(_0x1412cf),'message':'Updated\x20Artifact\x20'+_0x1412cf['id']+(_0x1412cf[_0x1b1241(0xf2)]?'\x20('+_0x1412cf[_0x1b1241(0xf2)]+')':'')};},async 'dryRun'(_0x62c6ee){const _0x43da7c=a8_0x304d6e,_0x1570b1=_0x62c6ee[_0x43da7c(0xd1)]('id'),_0x34587a=buildArtifactInput(_0x62c6ee);return dryRun(_0x43da7c(0xc1),_0x43da7c(0xcc)+_0x1570b1+_0x43da7c(0xc2))['body']({'appCode':_0x62c6ee['appCode'],..._0x34587a})[_0x43da7c(0xe3)](_0x43da7c(0xdd)+_0x1570b1)['build']();}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
@@ -1 +1 @@
1
- const a9_0x1976e1=a9_0x279a;(function(_0x3a9e09,_0x1b85b2){const _0x14c040=a9_0x279a,_0x387655=_0x3a9e09();while(!![]){try{const _0x15ce54=-parseInt(_0x14c040(0x14f))/0x1+parseInt(_0x14c040(0x156))/0x2+parseInt(_0x14c040(0x184))/0x3*(parseInt(_0x14c040(0x13c))/0x4)+-parseInt(_0x14c040(0x133))/0x5+parseInt(_0x14c040(0x172))/0x6+parseInt(_0x14c040(0x159))/0x7*(-parseInt(_0x14c040(0x155))/0x8)+-parseInt(_0x14c040(0x15c))/0x9;if(_0x15ce54===_0x1b85b2)break;else _0x387655['push'](_0x387655['shift']());}catch(_0x439e13){_0x387655['push'](_0x387655['shift']());}}}(a9_0x378a,0x38e16));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';import{AUTH_MODE}from'../../constant/auth-mode.js';function a9_0x378a(){const _0x110492=['\x20Current\x20env:\x20','bool','write','Clear\x20accessKey\x20from\x20config','validation','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','yes','isTTY','repeat','login','Shorthand\x20for\x20--access-key','Option\x20B:\x20apps\x20config\x20(','AccessKey:\x20','AccessKey\x20saved\x20to\x20','3PGHUeV','cancelled','\x20scope.','`auth\x20login`\x20does\x20not\x20support\x20--yes.','init','AccessKey\x20cleared\x20from\x20','newConfigFileName','boolean','project','834595NVPpdH','\x20env\x20var','push','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','read','userCenterDisplayName','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','production','envName','1066028BtXtbe','\x20config.\x20Nothing\x20to\x20clear.','No\x20AccessKey\x20found\x20in\x20','Option\x20A:\x20','\x20\x20export\x20','\x20config.','\x20auth\x20status','Then\x20verify\x20with:\x20','nonInteractive','join','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','info','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','accessKey','str','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','\x20auth\x20login\x20--access-key\x20<ak_xxx>','\x20config','ClientAk','286205AstUmx','access-key','string','length','Show\x20current\x20authentication\x20status','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','2144FinZKt','706136gvFmrm','status','ACCESS_KEY','4606FSeiZL','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','Clear\x20from\x20global\x20config\x20(default)','1964223sxTKIz','development','Use\x20`','global','Write\x20to\x20global\x20config\x20(default)','Auth\x20config\x20reinitialized\x20in\x20','env','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','auth','stdin','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','daily','Invalid\x20accessKey\x20format:\x20\x22','AccessKey\x20(ak_xxx...)','=ak_xxx','Auth\x20mode:\x20','trim','\x20doctor','stdout','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','Read\x20from\x20global\x20config\x20(default)','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','2766732vNPcQA','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','\x20(via\x20'];a9_0x378a=function(){return _0x110492;};return a9_0x378a();}import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';function a9_0x279a(_0x94e5a2,_0x3a5cfd){_0x94e5a2=_0x94e5a2-0x133;const _0x378ac4=a9_0x378a();let _0x279ae7=_0x378ac4[_0x94e5a2];return _0x279ae7;}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 _0x3782bf=a9_0x279a;writeCliSideChannelLine(_0x3782bf(0x166)+PRODUCT_CONFIG[_0x3782bf(0x138)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine('Tip:\x20you\x20can\x20also\x20run:'),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x3782bf(0x14c));}function buildAccessKeySetupGuide(){const _0x42e7bd=a9_0x279a;return['AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0x42e7bd(0x138)]+':',USER_ACCESS_KEY_CREATE_URL,_0x42e7bd(0x171)+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]']['join']('\x0a');}function canPromptForAccessKey(_0x33a979){const _0x3cd96b=a9_0x279a;return!_0x33a979[_0x3cd96b(0x144)]&&process[_0x3cd96b(0x165)]['isTTY']!==![]&&process[_0x3cd96b(0x16e)][_0x3cd96b(0x17d)]!==![];}function resolveAuthScopeFlags(_0x59134c){const _0x50d041=a9_0x279a;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x59134c[_0x50d041(0x177)]('global'),'explicitProject':_0x59134c[_0x50d041(0x177)]('project'),'policy':'global-default'}));}async function resolveAuthWriteInput(_0x3e93f1){const _0xb3934c=a9_0x279a;let _0x4d8fb8=(_0x3e93f1[_0xb3934c(0x14a)](_0xb3934c(0x150))||_0x3e93f1[_0xb3934c(0x14a)]('ak')||'')[_0xb3934c(0x16c)]();const _0x1cb072=(_0x3e93f1['str'](_0xb3934c(0x162))||'')['trim']();if(!_0x4d8fb8&&canPromptForAccessKey(_0x3e93f1))try{showAccessKeyCreateHint(),_0x4d8fb8=await promptAccessKey('');}catch(_0xb037b){if(isAbortPrompt(_0xb037b))throw CliErrors[_0xb3934c(0x185)]();throw _0xb037b;}if(!_0x4d8fb8)throw CliErrors['validation']('Missing\x20accessKey.',buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN['test'](_0x4d8fb8))throw CliErrors[_0xb3934c(0x17a)](_0xb3934c(0x168)+_0x4d8fb8+'\x22',_0xb3934c(0x14b));if(!_0x1cb072)return{'accessKey':_0x4d8fb8};const _0x3cdbbc=normalizeEnv(_0x1cb072);return{'accessKey':_0x4d8fb8,'env':isDaily(_0x3cdbbc)?_0xb3934c(0x167):isDev(_0x3cdbbc)?_0xb3934c(0x15d):_0xb3934c(0x13a)};}export const authDefinitions=[{'service':a9_0x1976e1(0x164),'command':a9_0x1976e1(0x17f),'description':'Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','risk':a9_0x1976e1(0x178),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x1976e1(0x150),'type':a9_0x1976e1(0x151),'description':a9_0x1976e1(0x169)},{'name':'ak','type':'string','description':a9_0x1976e1(0x180)},{'name':a9_0x1976e1(0x15f),'type':'boolean','description':a9_0x1976e1(0x160),'default':!![]},{'name':a9_0x1976e1(0x18c),'type':'boolean','description':a9_0x1976e1(0x17b),'default':![]}],async 'execute'(_0x4ff93c){const _0x19681b=a9_0x1976e1;if(_0x4ff93c[_0x19681b(0x177)](_0x19681b(0x17c)))throw CliErrors[_0x19681b(0x17a)](_0x19681b(0x187),_0x19681b(0x15e)+CLI_BIN_NAME+_0x19681b(0x173)+CLI_BIN_NAME+_0x19681b(0x136));const _0x44012c=(_0x4ff93c[_0x19681b(0x14a)](_0x19681b(0x150))||_0x4ff93c[_0x19681b(0x14a)]('ak')||'')[_0x19681b(0x16c)]();if(!_0x44012c&&_0x4ff93c[_0x19681b(0x144)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x4179b1=await resolveAuthWriteInput(_0x4ff93c),_0xc8b298=resolveAuthScopeFlags(_0x4ff93c),_0x4b10ed=readScopedConfig(_0xc8b298);_0x4b10ed['accessKey']=_0x4179b1[_0x19681b(0x149)];_0x4179b1[_0x19681b(0x162)]&&(_0x4b10ed[_0x19681b(0x162)]=_0x4179b1['env']);writeScopedConfig(_0x4b10ed,_0xc8b298);const _0xfd25e7=_0xc8b298[_0x19681b(0x15f)]?_0x19681b(0x15f):_0x19681b(0x18c),_0x1b986a=_0x4b10ed[_0x19681b(0x162)]?_0x19681b(0x176)+_0x4b10ed['env']+'.':'';return{'ok':!![],'message':_0x19681b(0x183)+_0xfd25e7+'\x20config.'+_0x1b986a+'\x20Verify:\x20'+CLI_BIN_NAME+_0x19681b(0x142)};}},{'service':'auth','command':a9_0x1976e1(0x188),'description':a9_0x1976e1(0x16f),'risk':a9_0x1976e1(0x178),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'access-key','type':a9_0x1976e1(0x151),'description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':a9_0x1976e1(0x151),'description':a9_0x1976e1(0x180)},{'name':a9_0x1976e1(0x162),'type':a9_0x1976e1(0x151),'description':a9_0x1976e1(0x139)},{'name':a9_0x1976e1(0x15f),'type':a9_0x1976e1(0x18b),'description':a9_0x1976e1(0x160),'default':!![]},{'name':'project','type':'boolean','description':a9_0x1976e1(0x17b),'default':![]}],async 'execute'(_0x7b2dcf){const _0xa06491=a9_0x1976e1,_0x344fd0=await resolveAuthWriteInput(_0x7b2dcf),_0x3df19d=resolveAuthScopeFlags(_0x7b2dcf),_0x3e9a4d={'accessKey':_0x344fd0[_0xa06491(0x149)]};_0x344fd0['env']&&(_0x3e9a4d['env']=_0x344fd0[_0xa06491(0x162)]);writeScopedConfig(_0x3e9a4d,_0x3df19d);const _0x3de2b6=_0x3df19d[_0xa06491(0x15f)]?_0xa06491(0x15f):'project',_0x1012ed=_0x3e9a4d['env']?'\x20Current\x20env:\x20'+_0x3e9a4d[_0xa06491(0x162)]+'.':'';return{'ok':!![],'message':_0xa06491(0x161)+_0x3de2b6+_0xa06491(0x186)+_0x1012ed+'\x20Verify:\x20'+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':a9_0x1976e1(0x164),'command':'logout','description':a9_0x1976e1(0x179),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x1976e1(0x15f),'type':'boolean','description':a9_0x1976e1(0x15b),'default':!![]},{'name':'project','type':a9_0x1976e1(0x18b),'description':a9_0x1976e1(0x163),'default':![]}],async 'execute'(_0xe4c063){const _0x403ecf=a9_0x1976e1,_0x5a0206=resolveAuthScopeFlags(_0xe4c063),_0x5a8cfd=readScopedConfig(_0x5a0206),_0x2bd2ed=!!_0x5a8cfd[_0x403ecf(0x149)];delete _0x5a8cfd[_0x403ecf(0x149)],writeScopedConfig(_0x5a8cfd,_0x5a0206);const _0x5afbbe=_0x5a0206['global']?_0x403ecf(0x15f):_0x403ecf(0x18c);if(_0x2bd2ed)return{'ok':!![],'message':_0x403ecf(0x189)+_0x5afbbe+_0x403ecf(0x141)};return{'ok':!![],'message':_0x403ecf(0x13e)+_0x5afbbe+_0x403ecf(0x13d)};}},{'service':a9_0x1976e1(0x164),'command':a9_0x1976e1(0x157),'description':a9_0x1976e1(0x153),'risk':a9_0x1976e1(0x137),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x1976e1(0x15f),'type':'boolean','description':a9_0x1976e1(0x170),'default':!![]},{'name':a9_0x1976e1(0x18c),'type':a9_0x1976e1(0x18b),'description':a9_0x1976e1(0x15a),'default':![]}],async 'execute'(_0x4b25f9){const _0x3e6701=a9_0x1976e1,_0x5e69f6=resolveAuthScopeFlags(_0x4b25f9),_0xa3609d=readScopedConfig(_0x5e69f6),_0x3f34aa=productEnvName(_0x3e6701(0x158)),_0xfecc98=productEnv('ACCESS_KEY')||undefined,_0x2b871e=_0xa3609d[_0x3e6701(0x149)]||undefined,_0x497473=_0xfecc98||_0x2b871e,_0x50992a=_0xfecc98?_0x3f34aa+_0x3e6701(0x134):_0x2b871e?(_0x5e69f6[_0x3e6701(0x15f)]?'global':_0x3e6701(0x18c))+_0x3e6701(0x14d):null,_0x311a3f=[_0x3e6701(0x16b)+AUTH_MODE[_0x3e6701(0x14e)]];if(_0x497473){const _0xadaa87=_0x497473[_0x3e6701(0x152)]>0x8?''+_0x497473['slice'](0x0,0x8)+'*'[_0x3e6701(0x17e)](_0x497473[_0x3e6701(0x152)]-0x8):_0x497473;_0x311a3f[_0x3e6701(0x135)](_0x3e6701(0x182)+_0xadaa87+(_0x50992a?_0x3e6701(0x175)+_0x50992a+')':''));}return!_0x497473&&(_0x311a3f[_0x3e6701(0x135)](''),_0x311a3f[_0x3e6701(0x135)]('No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:'),_0x311a3f[_0x3e6701(0x135)](''),_0x311a3f[_0x3e6701(0x135)](_0x3e6701(0x13f)+CLI_BIN_NAME+_0x3e6701(0x146)),_0x311a3f[_0x3e6701(0x135)](''),_0x311a3f[_0x3e6701(0x135)](_0x3e6701(0x181)+PRODUCT_CONFIG[_0x3e6701(0x18a)]+')'),_0x311a3f['push'](_0x3e6701(0x174)),_0x311a3f['push'](''),_0x311a3f['push']('Option\x20C:\x20environment\x20variable'),_0x311a3f[_0x3e6701(0x135)](_0x3e6701(0x140)+_0x3f34aa+_0x3e6701(0x16a)),_0x311a3f['push'](''),_0x311a3f[_0x3e6701(0x135)](_0x3e6701(0x143)+CLI_BIN_NAME+_0x3e6701(0x142)),_0x311a3f[_0x3e6701(0x135)](_0x3e6701(0x154)+CLI_BIN_NAME+_0x3e6701(0x16d))),{'ok':!![],'message':_0x311a3f[_0x3e6701(0x145)]('\x0a')};}},{'service':a9_0x1976e1(0x164),'command':a9_0x1976e1(0x147),'description':a9_0x1976e1(0x148),'risk':a9_0x1976e1(0x137),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x49a80e){const _0x282bfb=a9_0x1976e1,_0x3bbbac=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x3bbbac,'meta':{'env':_0x49a80e[_0x282bfb(0x13b)]??'production'}}};}}];
1
+ const a9_0x19ae94=a9_0x3a91;(function(_0x1156f7,_0x285315){const _0x370d9d=a9_0x3a91,_0x30d562=_0x1156f7();while(!![]){try{const _0x1164ff=-parseInt(_0x370d9d(0x1f6))/0x1+parseInt(_0x370d9d(0x1cb))/0x2+-parseInt(_0x370d9d(0x1d5))/0x3+-parseInt(_0x370d9d(0x1d6))/0x4*(-parseInt(_0x370d9d(0x1f8))/0x5)+-parseInt(_0x370d9d(0x1e5))/0x6*(-parseInt(_0x370d9d(0x1ca))/0x7)+parseInt(_0x370d9d(0x1d3))/0x8*(-parseInt(_0x370d9d(0x1df))/0x9)+-parseInt(_0x370d9d(0x1e1))/0xa;if(_0x1164ff===_0x285315)break;else _0x30d562['push'](_0x30d562['shift']());}catch(_0x39c6f2){_0x30d562['push'](_0x30d562['shift']());}}}(a9_0x54d0,0x3e2ee));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';function a9_0x54d0(){const _0x596913=['yes','access-key','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','global-default','str','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','AccessKey\x20(ak_xxx...)','Shorthand\x20for\x20--access-key','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','Use\x20`','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','development','\x20Verify:\x20','validation','ACCESS_KEY','join','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','No\x20AccessKey\x20found\x20in\x20','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','string','daily','envName','Clear\x20from\x20global\x20config\x20(default)','\x20auth\x20login\x20--access-key\x20<ak_xxx>','\x20scope.','accessKey','1635788Trggna','987768zQgCar','init','auth','length','\x20auth\x20status','Option\x20A:\x20','=ak_xxx','Clear\x20accessKey\x20from\x20config','493768tdpzAl','Read\x20from\x20global\x20config\x20(default)','1274223HlwSLs','28PulkGD','project','logout','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','push','global','production','\x20env\x20var','slice','36ybWFeW','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','482480xYVfBZ','Auth\x20config\x20reinitialized\x20in\x20','info','status','6DYKcCl','boolean','Show\x20current\x20authentication\x20status','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','isTTY','\x20config.\x20Nothing\x20to\x20clear.','\x20Current\x20env:\x20','stdin','bool','test','Then\x20verify\x20with:\x20','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','newConfigFileName','repeat','AccessKey\x20saved\x20to\x20','nonInteractive','\x20config.','92850OJyTfq','env','242755TaYzko','`auth\x20login`\x20does\x20not\x20support\x20--yes.','Invalid\x20accessKey\x20format:\x20\x22','Tip:\x20you\x20can\x20also\x20run:','Missing\x20accessKey.','stdout','trim','AccessKey:\x20','userCenterDisplayName','Option\x20B:\x20apps\x20config\x20(','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20'];a9_0x54d0=function(){return _0x596913;};return a9_0x54d0();}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_0x3a91(_0x161cac,_0x2ff525){_0x161cac=_0x161cac-0x1af;const _0x54d0ef=a9_0x54d0();let _0x3a91ab=_0x54d0ef[_0x161cac];return _0x3a91ab;}function showAccessKeyCreateHint(){const _0xd23785=a9_0x3a91;writeCliSideChannelLine('AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0xd23785(0x200)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0xd23785(0x1fb)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0xd23785(0x1c7));}function buildAccessKeySetupGuide(){const _0x22ac40=a9_0x3a91;return['AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG['userCenterDisplayName']+':',USER_ACCESS_KEY_CREATE_URL,_0x22ac40(0x1af)+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]'][_0x22ac40(0x1bf)]('\x0a');}function canPromptForAccessKey(_0x11e9d8){const _0x494154=a9_0x3a91;return!_0x11e9d8[_0x494154(0x1f4)]&&process[_0x494154(0x1ec)]['isTTY']!==![]&&process[_0x494154(0x1fd)][_0x494154(0x1e9)]!==![];}function resolveAuthScopeFlags(_0x3bc90a){const _0x510e24=a9_0x3a91;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x3bc90a[_0x510e24(0x1ed)]('global'),'explicitProject':_0x3bc90a[_0x510e24(0x1ed)](_0x510e24(0x1d7)),'policy':_0x510e24(0x1b3)}));}async function resolveAuthWriteInput(_0x4d59a4){const _0x3becb3=a9_0x3a91;let _0x5631a7=(_0x4d59a4['str'](_0x3becb3(0x1b1))||_0x4d59a4[_0x3becb3(0x1b4)]('ak')||'')['trim']();const _0x475529=(_0x4d59a4['str'](_0x3becb3(0x1f7))||'')[_0x3becb3(0x1fe)]();if(!_0x5631a7&&canPromptForAccessKey(_0x4d59a4))try{showAccessKeyCreateHint(),_0x5631a7=await promptAccessKey('');}catch(_0x1b5c6e){if(isAbortPrompt(_0x1b5c6e))throw CliErrors['cancelled']();throw _0x1b5c6e;}if(!_0x5631a7)throw CliErrors[_0x3becb3(0x1bd)](_0x3becb3(0x1fc),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x3becb3(0x1ee)](_0x5631a7))throw CliErrors[_0x3becb3(0x1bd)](_0x3becb3(0x1fa)+_0x5631a7+'\x22',_0x3becb3(0x1f0));if(!_0x475529)return{'accessKey':_0x5631a7};const _0x3a5987=normalizeEnv(_0x475529);return{'accessKey':_0x5631a7,'env':isDaily(_0x3a5987)?_0x3becb3(0x1c4):isDev(_0x3a5987)?_0x3becb3(0x1bb):_0x3becb3(0x1dc)};}export const authDefinitions=[{'service':a9_0x19ae94(0x1cd),'command':'login','description':a9_0x19ae94(0x1c2),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x19ae94(0x1b1),'type':a9_0x19ae94(0x1c3),'description':a9_0x19ae94(0x1b6)},{'name':'ak','type':a9_0x19ae94(0x1c3),'description':a9_0x19ae94(0x1b7)},{'name':a9_0x19ae94(0x1db),'type':a9_0x19ae94(0x1e6),'description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':a9_0x19ae94(0x1d7),'type':a9_0x19ae94(0x1e6),'description':a9_0x19ae94(0x1b2),'default':![]}],async 'execute'(_0x3572a3){const _0x48901b=a9_0x19ae94;if(_0x3572a3[_0x48901b(0x1ed)](_0x48901b(0x1b0)))throw CliErrors[_0x48901b(0x1bd)](_0x48901b(0x1f9),_0x48901b(0x1b9)+CLI_BIN_NAME+_0x48901b(0x1b8)+CLI_BIN_NAME+_0x48901b(0x1e0));const _0x3ecaf0=(_0x3572a3[_0x48901b(0x1b4)]('access-key')||_0x3572a3['str']('ak')||'')[_0x48901b(0x1fe)]();if(!_0x3ecaf0&&_0x3572a3[_0x48901b(0x1f4)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x28114a=await resolveAuthWriteInput(_0x3572a3),_0x2604fa=resolveAuthScopeFlags(_0x3572a3),_0x45b385=readScopedConfig(_0x2604fa);_0x45b385[_0x48901b(0x1c9)]=_0x28114a[_0x48901b(0x1c9)];_0x28114a[_0x48901b(0x1f7)]&&(_0x45b385[_0x48901b(0x1f7)]=_0x28114a[_0x48901b(0x1f7)]);writeScopedConfig(_0x45b385,_0x2604fa);const _0x3249bb=_0x2604fa[_0x48901b(0x1db)]?'global':_0x48901b(0x1d7),_0x57227b=_0x45b385[_0x48901b(0x1f7)]?_0x48901b(0x1eb)+_0x45b385[_0x48901b(0x1f7)]+'.':'';return{'ok':!![],'message':_0x48901b(0x1f3)+_0x3249bb+_0x48901b(0x1f5)+_0x57227b+_0x48901b(0x1bc)+CLI_BIN_NAME+_0x48901b(0x1cf)};}},{'service':a9_0x19ae94(0x1cd),'command':a9_0x19ae94(0x1cc),'description':'Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x19ae94(0x1b1),'type':'string','description':a9_0x19ae94(0x1b6)},{'name':'ak','type':a9_0x19ae94(0x1c3),'description':a9_0x19ae94(0x1b7)},{'name':a9_0x19ae94(0x1f7),'type':'string','description':'Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config'},{'name':a9_0x19ae94(0x1db),'type':a9_0x19ae94(0x1e6),'description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':a9_0x19ae94(0x1d7),'type':a9_0x19ae94(0x1e6),'description':a9_0x19ae94(0x1b2),'default':![]}],async 'execute'(_0x15e839){const _0x26a82e=a9_0x19ae94,_0x39d3e4=await resolveAuthWriteInput(_0x15e839),_0x537165=resolveAuthScopeFlags(_0x15e839),_0x296604={'accessKey':_0x39d3e4[_0x26a82e(0x1c9)]};_0x39d3e4[_0x26a82e(0x1f7)]&&(_0x296604[_0x26a82e(0x1f7)]=_0x39d3e4[_0x26a82e(0x1f7)]);writeScopedConfig(_0x296604,_0x537165);const _0xcf273c=_0x537165[_0x26a82e(0x1db)]?'global':'project',_0x1721ea=_0x296604[_0x26a82e(0x1f7)]?'\x20Current\x20env:\x20'+_0x296604['env']+'.':'';return{'ok':!![],'message':_0x26a82e(0x1e2)+_0xcf273c+_0x26a82e(0x1c8)+_0x1721ea+_0x26a82e(0x1bc)+CLI_BIN_NAME+_0x26a82e(0x1cf)};}},{'service':a9_0x19ae94(0x1cd),'command':a9_0x19ae94(0x1d8),'description':a9_0x19ae94(0x1d2),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x19ae94(0x1db),'type':a9_0x19ae94(0x1e6),'description':a9_0x19ae94(0x1c6),'default':!![]},{'name':'project','type':'boolean','description':'Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x213e87){const _0x4cf2e8=a9_0x19ae94,_0x5b78ca=resolveAuthScopeFlags(_0x213e87),_0x590c8b=readScopedConfig(_0x5b78ca),_0x313c33=!!_0x590c8b[_0x4cf2e8(0x1c9)];delete _0x590c8b['accessKey'],writeScopedConfig(_0x590c8b,_0x5b78ca);const _0x54681f=_0x5b78ca[_0x4cf2e8(0x1db)]?'global':'project';if(_0x313c33)return{'ok':!![],'message':'AccessKey\x20cleared\x20from\x20'+_0x54681f+_0x4cf2e8(0x1f5)};return{'ok':!![],'message':_0x4cf2e8(0x1c1)+_0x54681f+_0x4cf2e8(0x1ea)};}},{'service':a9_0x19ae94(0x1cd),'command':a9_0x19ae94(0x1e4),'description':a9_0x19ae94(0x1e7),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x19ae94(0x1db),'type':a9_0x19ae94(0x1e6),'description':a9_0x19ae94(0x1d4),'default':!![]},{'name':a9_0x19ae94(0x1d7),'type':a9_0x19ae94(0x1e6),'description':a9_0x19ae94(0x1ba),'default':![]}],async 'execute'(_0x271e1e){const _0x4d6a9a=a9_0x19ae94,_0x5e6597=resolveAuthScopeFlags(_0x271e1e),_0x5f4084=readScopedConfig(_0x5e6597),_0x5756c1=productEnvName(_0x4d6a9a(0x1be)),_0x579cd3=productEnv(_0x4d6a9a(0x1be))||undefined,_0xe10b46=_0x5f4084[_0x4d6a9a(0x1c9)]||undefined,_0x1f22e5=_0x579cd3||_0xe10b46,_0x48935f=_0x579cd3?_0x5756c1+_0x4d6a9a(0x1dd):_0xe10b46?(_0x5e6597[_0x4d6a9a(0x1db)]?_0x4d6a9a(0x1db):_0x4d6a9a(0x1d7))+'\x20config':null,_0x41d13a=['Auth\x20mode:\x20'+AUTH_MODE['ClientAk']];if(_0x1f22e5){const _0x21065d=_0x1f22e5[_0x4d6a9a(0x1ce)]>0x8?''+_0x1f22e5[_0x4d6a9a(0x1de)](0x0,0x8)+'*'[_0x4d6a9a(0x1f2)](_0x1f22e5[_0x4d6a9a(0x1ce)]-0x8):_0x1f22e5;_0x41d13a[_0x4d6a9a(0x1da)](_0x4d6a9a(0x1ff)+_0x21065d+(_0x48935f?'\x20(via\x20'+_0x48935f+')':''));}return!_0x1f22e5&&(_0x41d13a[_0x4d6a9a(0x1da)](''),_0x41d13a[_0x4d6a9a(0x1da)](_0x4d6a9a(0x1d9)),_0x41d13a['push'](''),_0x41d13a[_0x4d6a9a(0x1da)](_0x4d6a9a(0x1d0)+CLI_BIN_NAME+_0x4d6a9a(0x1e8)),_0x41d13a[_0x4d6a9a(0x1da)](''),_0x41d13a[_0x4d6a9a(0x1da)](_0x4d6a9a(0x201)+PRODUCT_CONFIG[_0x4d6a9a(0x1f1)]+')'),_0x41d13a[_0x4d6a9a(0x1da)](_0x4d6a9a(0x1b5)),_0x41d13a['push'](''),_0x41d13a[_0x4d6a9a(0x1da)]('Option\x20C:\x20environment\x20variable'),_0x41d13a[_0x4d6a9a(0x1da)]('\x20\x20export\x20'+_0x5756c1+_0x4d6a9a(0x1d1)),_0x41d13a[_0x4d6a9a(0x1da)](''),_0x41d13a['push'](_0x4d6a9a(0x1ef)+CLI_BIN_NAME+_0x4d6a9a(0x1cf)),_0x41d13a[_0x4d6a9a(0x1da)](_0x4d6a9a(0x1c0)+CLI_BIN_NAME+'\x20doctor')),{'ok':!![],'message':_0x41d13a[_0x4d6a9a(0x1bf)]('\x0a')};}},{'service':a9_0x19ae94(0x1cd),'command':a9_0x19ae94(0x1e3),'description':'Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','risk':'read','requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x30b824){const _0x7bcd97=a9_0x19ae94,_0x3e8c4f=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x3e8c4f,'meta':{'env':_0x30b824[_0x7bcd97(0x1c5)]??'production'}}};}}];
@@ -1 +1 @@
1
- function a10_0x356d(){const _0x58d503=['SIGINT','10nBhfEn','name','AbortPrompt','4010BupqUS','once','36CRpbiG','race','31240755EvgaIe','1733958YhhHTF','AccessKey\x20(','question','stdin','32YfkiHz','close','trim','4302wGDpwt','1942703zThrtO','removeListener','stdout','2922777aMbMFF','User\x20aborted\x20prompt','875429wJPGIl','2pxvQMv','AccessKey\x20(paste\x20ak_...):\x20','):\x20','452UhAUhb','17805RSjcFF'];a10_0x356d=function(){return _0x58d503;};return a10_0x356d();}(function(_0x12236f,_0x4a3dca){const _0x5f0b66=a10_0x2f30,_0x7382d2=_0x12236f();while(!![]){try{const _0x496c38=-parseInt(_0x5f0b66(0x100))/0x1*(parseInt(_0x5f0b66(0x101))/0x2)+parseInt(_0x5f0b66(0x105))/0x3*(-parseInt(_0x5f0b66(0x104))/0x4)+-parseInt(_0x5f0b66(0x10a))/0x5*(parseInt(_0x5f0b66(0xfa))/0x6)+parseInt(_0x5f0b66(0xfb))/0x7*(parseInt(_0x5f0b66(0xf7))/0x8)+-parseInt(_0x5f0b66(0xf3))/0x9*(-parseInt(_0x5f0b66(0x107))/0xa)+-parseInt(_0x5f0b66(0xfe))/0xb*(parseInt(_0x5f0b66(0xf0))/0xc)+parseInt(_0x5f0b66(0xf2))/0xd;if(_0x496c38===_0x4a3dca)break;else _0x7382d2['push'](_0x7382d2['shift']());}catch(_0x5e0583){_0x7382d2['push'](_0x7382d2['shift']());}}}(a10_0x356d,0xc04da));function a10_0x2f30(_0x1dc51b,_0x45cd2d){_0x1dc51b=_0x1dc51b-0xf0;const _0x356dd5=a10_0x356d();let _0x2f307e=_0x356dd5[_0x1dc51b];return _0x2f307e;}import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x211843=a10_0x2f30;super(_0x211843(0xff)),this[_0x211843(0x108)]=_0x211843(0x109);}}function createSafeRl(){const _0x157e04=a10_0x2f30,_0x9196c=createInterface({'input':process[_0x157e04(0xf6)],'output':process[_0x157e04(0xfd)]});let _0x4218a7;const _0x4788cd=new Promise((_0x15d12e,_0x88ad5b)=>{const _0x4cdf3a=_0x157e04;_0x4218a7=()=>{const _0x4d5c91=a10_0x2f30;_0x4218a7&&(_0x9196c[_0x4d5c91(0xfc)](_0x4d5c91(0x106),_0x4218a7),_0x4218a7=undefined);try{_0x9196c[_0x4d5c91(0xf8)]();}catch{}_0x88ad5b(new AbortPrompt());},_0x9196c[_0x4cdf3a(0x10b)](_0x4cdf3a(0x106),_0x4218a7);}),_0x4fb170=()=>{const _0xab5ea3=_0x157e04;_0x4218a7&&(_0x9196c[_0xab5ea3(0xfc)]('SIGINT',_0x4218a7),_0x4218a7=undefined);try{_0x9196c[_0xab5ea3(0xf8)]();}catch{}};return{'rl':_0x9196c,'abortPromise':_0x4788cd,'disposeSuccess':_0x4fb170};}export async function promptAccessKey(_0x55c1db=''){const _0x235a87=a10_0x2f30,{rl:_0x17b95a,abortPromise:_0x3a1c62,disposeSuccess:_0x583377}=createSafeRl(),_0x244faf=new Promise(_0x9a2bb2=>{const _0x501cc5=a10_0x2f30,_0x1e2f8e=_0x55c1db?_0x501cc5(0xf4)+_0x55c1db+_0x501cc5(0x103):_0x501cc5(0x102);_0x17b95a[_0x501cc5(0xf5)](_0x1e2f8e,_0x11814e=>{const _0x15a8d8=_0x501cc5;_0x583377(),_0x9a2bb2(_0x11814e[_0x15a8d8(0xf9)]()||_0x55c1db);});});return Promise[_0x235a87(0xf1)]([_0x244faf,_0x3a1c62]);}export function isAbortPrompt(_0x2a3c50){const _0x17897e=a10_0x2f30;return _0x2a3c50 instanceof Error&&_0x2a3c50[_0x17897e(0x108)]===_0x17897e(0x109);}
1
+ (function(_0x28ca8f,_0x112a77){const _0x95b5e7=a10_0x15ff,_0x2392a1=_0x28ca8f();while(!![]){try{const _0x4dff7b=-parseInt(_0x95b5e7(0x7a))/0x1+-parseInt(_0x95b5e7(0x81))/0x2+parseInt(_0x95b5e7(0x7b))/0x3+-parseInt(_0x95b5e7(0x84))/0x4*(parseInt(_0x95b5e7(0x85))/0x5)+-parseInt(_0x95b5e7(0x7f))/0x6*(parseInt(_0x95b5e7(0x7c))/0x7)+-parseInt(_0x95b5e7(0x7e))/0x8+parseInt(_0x95b5e7(0x80))/0x9;if(_0x4dff7b===_0x112a77)break;else _0x2392a1['push'](_0x2392a1['shift']());}catch(_0xcbd037){_0x2392a1['push'](_0x2392a1['shift']());}}}(a10_0x3e25,0xccdb6));function a10_0x3e25(){const _0xe84da7=['24xuzaPw','15015411MlyLFh','1515816CyJFSf','AbortPrompt','close','164ZJGdiy','34955dPZkmP','stdout','stdin','question','User\x20aborted\x20prompt','):\x20','SIGINT','once','trim','19300vXWkjU','3574833iwlMBw','872438iqLUCw','name','3668168wxCFDC'];a10_0x3e25=function(){return _0xe84da7;};return a10_0x3e25();}import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0xd15f1d=a10_0x15ff;super(_0xd15f1d(0x75)),this['name']=_0xd15f1d(0x82);}}function a10_0x15ff(_0x25fd96,_0x261263){_0x25fd96=_0x25fd96-0x73;const _0x3e251e=a10_0x3e25();let _0x15ff6a=_0x3e251e[_0x25fd96];return _0x15ff6a;}function createSafeRl(){const _0x41f61e=a10_0x15ff,_0x5cddb2=createInterface({'input':process[_0x41f61e(0x73)],'output':process[_0x41f61e(0x86)]});let _0x4648c8;const _0x30250a=new Promise((_0x52eb2e,_0xac66c7)=>{const _0x45efb7=_0x41f61e;_0x4648c8=()=>{_0x4648c8&&(_0x5cddb2['removeListener']('SIGINT',_0x4648c8),_0x4648c8=undefined);try{_0x5cddb2['close']();}catch{}_0xac66c7(new AbortPrompt());},_0x5cddb2[_0x45efb7(0x78)]('SIGINT',_0x4648c8);}),_0x31a982=()=>{const _0x16ca30=_0x41f61e;_0x4648c8&&(_0x5cddb2['removeListener'](_0x16ca30(0x77),_0x4648c8),_0x4648c8=undefined);try{_0x5cddb2[_0x16ca30(0x83)]();}catch{}};return{'rl':_0x5cddb2,'abortPromise':_0x30250a,'disposeSuccess':_0x31a982};}export async function promptAccessKey(_0x4ac9f1=''){const {rl:_0x546fc9,abortPromise:_0x7e2d,disposeSuccess:_0x28c5a3}=createSafeRl(),_0x5e6e97=new Promise(_0x34f321=>{const _0x25cb66=a10_0x15ff,_0x59712a=_0x4ac9f1?'AccessKey\x20('+_0x4ac9f1+_0x25cb66(0x76):'AccessKey\x20(paste\x20ak_...):\x20';_0x546fc9[_0x25cb66(0x74)](_0x59712a,_0x7a6d11=>{const _0x524dc8=_0x25cb66;_0x28c5a3(),_0x34f321(_0x7a6d11[_0x524dc8(0x79)]()||_0x4ac9f1);});});return Promise['race']([_0x5e6e97,_0x7e2d]);}export function isAbortPrompt(_0x4f4d4e){const _0x547e9e=a10_0x15ff;return _0x4f4d4e instanceof Error&&_0x4f4d4e[_0x547e9e(0x7d)]==='AbortPrompt';}
@@ -1 +1 @@
1
- function a11_0x49e5(_0x5f5696,_0x43c280){_0x5f5696=_0x5f5696-0x75;const _0x5e26ac=a11_0x5e26();let _0x49e5bf=_0x5e26ac[_0x5f5696];return _0x49e5bf;}const a11_0x26ced0=a11_0x49e5;(function(_0x26fe69,_0x55789c){const _0x386839=a11_0x49e5,_0x3ec409=_0x26fe69();while(!![]){try{const _0xcb8281=-parseInt(_0x386839(0x7f))/0x1*(-parseInt(_0x386839(0x83))/0x2)+-parseInt(_0x386839(0x8d))/0x3*(parseInt(_0x386839(0x88))/0x4)+parseInt(_0x386839(0x8a))/0x5*(-parseInt(_0x386839(0x86))/0x6)+parseInt(_0x386839(0x85))/0x7*(-parseInt(_0x386839(0x80))/0x8)+parseInt(_0x386839(0x78))/0x9*(-parseInt(_0x386839(0x7b))/0xa)+-parseInt(_0x386839(0x7d))/0xb+-parseInt(_0x386839(0x7e))/0xc*(-parseInt(_0x386839(0x82))/0xd);if(_0xcb8281===_0x55789c)break;else _0x3ec409['push'](_0x3ec409['shift']());}catch(_0x1fdae2){_0x3ec409['push'](_0x3ec409['shift']());}}}(a11_0x5e26,0x456cd));import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a11_0x26ced0(0x8f),'command':a11_0x26ced0(0x8c),'description':a11_0x26ced0(0x87),'risk':'read','flags':[{...ID_FLAG,'description':a11_0x26ced0(0x81)},VERBOSE_FLAG],async 'execute'(_0x528a1d){const _0x4bae14=a11_0x26ced0,_0x4c9239=await getBffScriptInfo(_0x528a1d[_0x4bae14(0x76)]('id')),_0x1800de=_0x528a1d[_0x4bae14(0x79)](_0x4bae14(0x84));if(_0x1800de)return{'ok':!![],'data':_0x4c9239};return{'ok':!![],'data':{'id':_0x4c9239['id'],'appCode':_0x4c9239[_0x4bae14(0x7c)],'functionName':_0x4c9239[_0x4bae14(0x8e)]??'','scriptType':_0x4c9239[_0x4bae14(0x77)],'description':_0x4c9239[_0x4bae14(0x8b)]||_0x4bae14(0x7a),'createdTime':_0x4c9239[_0x4bae14(0x89)]??'','updatedTime':_0x4c9239[_0x4bae14(0x75)]??''}};}};function a11_0x5e26(){const _0x401244=['24SFyKKY','Get\x20BFF\x20script\x20details\x20by\x20ID','146660ERmQCk','createdTime','53345sEpKXp','description','detail','21estDvk','functionName','bff','updatedTime','num','scriptType','18rfSIve','bool','(none)','2183290FmOifv','appCode','100771HjctpC','132564JBroDh','185221MtOaTt','204664AlzUjV','Script\x20ID','949DbUuWx','6qPARNp','verbose','91FYLPYh'];a11_0x5e26=function(){return _0x401244;};return a11_0x5e26();}
1
+ const a11_0x3e6ea8=a11_0x79c2;(function(_0xde8af5,_0x1967dc){const _0x4a3d28=a11_0x79c2,_0x593622=_0xde8af5();while(!![]){try{const _0x4ccb44=-parseInt(_0x4a3d28(0x1b9))/0x1+-parseInt(_0x4a3d28(0x1c8))/0x2*(parseInt(_0x4a3d28(0x1bd))/0x3)+-parseInt(_0x4a3d28(0x1bf))/0x4*(parseInt(_0x4a3d28(0x1c7))/0x5)+-parseInt(_0x4a3d28(0x1c5))/0x6*(-parseInt(_0x4a3d28(0x1ba))/0x7)+-parseInt(_0x4a3d28(0x1bc))/0x8+-parseInt(_0x4a3d28(0x1c4))/0x9+parseInt(_0x4a3d28(0x1b8))/0xa;if(_0x4ccb44===_0x1967dc)break;else _0x593622['push'](_0x593622['shift']());}catch(_0x555231){_0x593622['push'](_0x593622['shift']());}}}(a11_0x19d5,0x4ea76));function a11_0x19d5(){const _0x33e41c=['1897yHLeAX','description','2911432tLbzvY','323958nMvXdv','verbose','129624odRNbq','updatedTime','Script\x20ID','bool','(none)','2734362pIVhNt','12396qqxuLA','scriptType','10OmhWQL','6jeKxrm','Get\x20BFF\x20script\x20details\x20by\x20ID','read','functionName','detail','appCode','12061820iRAPAL','387385UlkLQl'];a11_0x19d5=function(){return _0x33e41c;};return a11_0x19d5();}import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';function a11_0x79c2(_0x452dc3,_0xd53d21){_0x452dc3=_0x452dc3-0x1b4;const _0x19d5f3=a11_0x19d5();let _0x79c205=_0x19d5f3[_0x452dc3];return _0x79c205;}export const bffDetail={'service':'bff','command':a11_0x3e6ea8(0x1b6),'description':a11_0x3e6ea8(0x1c9),'risk':a11_0x3e6ea8(0x1b4),'flags':[{...ID_FLAG,'description':a11_0x3e6ea8(0x1c1)},VERBOSE_FLAG],async 'execute'(_0x5b925a){const _0x3bee1e=a11_0x3e6ea8,_0x4eaed9=await getBffScriptInfo(_0x5b925a['num']('id')),_0x4a09ba=_0x5b925a[_0x3bee1e(0x1c2)](_0x3bee1e(0x1be));if(_0x4a09ba)return{'ok':!![],'data':_0x4eaed9};return{'ok':!![],'data':{'id':_0x4eaed9['id'],'appCode':_0x4eaed9[_0x3bee1e(0x1b7)],'functionName':_0x4eaed9[_0x3bee1e(0x1b5)]??'','scriptType':_0x4eaed9[_0x3bee1e(0x1c6)],'description':_0x4eaed9[_0x3bee1e(0x1bb)]||_0x3bee1e(0x1c3),'createdTime':_0x4eaed9['createdTime']??'','updatedTime':_0x4eaed9[_0x3bee1e(0x1c0)]??''}};}};
@@ -1 +1 @@
1
- const a12_0x14b4b2=a12_0x37eb;(function(_0x180cb8,_0x1f9c87){const _0x5bb171=a12_0x37eb,_0x328ec3=_0x180cb8();while(!![]){try{const _0x13366a=-parseInt(_0x5bb171(0x88))/0x1*(-parseInt(_0x5bb171(0x87))/0x2)+parseInt(_0x5bb171(0x83))/0x3*(parseInt(_0x5bb171(0x92))/0x4)+-parseInt(_0x5bb171(0x90))/0x5+parseInt(_0x5bb171(0x95))/0x6+-parseInt(_0x5bb171(0x91))/0x7*(-parseInt(_0x5bb171(0x84))/0x8)+parseInt(_0x5bb171(0x8c))/0x9*(parseInt(_0x5bb171(0x96))/0xa)+parseInt(_0x5bb171(0x8a))/0xb*(-parseInt(_0x5bb171(0x82))/0xc);if(_0x13366a===_0x1f9c87)break;else _0x328ec3['push'](_0x328ec3['shift']());}catch(_0x5cdda7){_0x328ec3['push'](_0x328ec3['shift']());}}}(a12_0xd6ae,0x9ed1f));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';function a12_0x37eb(_0x3a8cf6,_0x55fee3){_0x3a8cf6=_0x3a8cf6-0x81;const _0xd6aec2=a12_0xd6ae();let _0x37eb25=_0xd6aec2[_0x3a8cf6];return _0x37eb25;}function a12_0xd6ae(){const _0x592665=['exec','4016bgvDcV','358GYTlef','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','24854797ScDgbC','BFF\x20executed\x20in\x20','909oPVEsB','read','name','str','3556070wNEWes','119UFAyrH','2817108mRNDAE','params','now','781218mNrQzc','125530onZlHw','BFF\x20function\x20name\x20to\x20execute','12ekZsOV','3ZgYZCk','376504gogQgs','bff'];a12_0xd6ae=function(){return _0x592665;};return a12_0xd6ae();}import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a12_0x14b4b2(0x85),'command':a12_0x14b4b2(0x86),'description':a12_0x14b4b2(0x89),'risk':a12_0x14b4b2(0x8d),'flags':[{...NAME_FLAG,'required':!![],'description':a12_0x14b4b2(0x81)},PARAMS_FLAG],async 'execute'(_0x2aa1a5){const _0x510d1e=a12_0x14b4b2,_0x32e360=parseJsonParams(_0x2aa1a5[_0x510d1e(0x8f)](_0x510d1e(0x93))),_0x186869=Date[_0x510d1e(0x94)](),_0x175ed9=await executeSdkBff(_0x2aa1a5[_0x510d1e(0x8f)](_0x510d1e(0x8e)),_0x32e360),_0x27c148=Date[_0x510d1e(0x94)]()-_0x186869;return{'ok':!![],'data':{'result':_0x175ed9,'elapsed':_0x27c148},'message':_0x510d1e(0x8b)+_0x27c148+'ms'};}};
1
+ const a12_0xde238d=a12_0x37b3;(function(_0x4d68f7,_0x2a320d){const _0x2242b4=a12_0x37b3,_0x579496=_0x4d68f7();while(!![]){try{const _0x2e6146=-parseInt(_0x2242b4(0x139))/0x1*(parseInt(_0x2242b4(0x132))/0x2)+-parseInt(_0x2242b4(0x138))/0x3*(parseInt(_0x2242b4(0x137))/0x4)+-parseInt(_0x2242b4(0x143))/0x5*(-parseInt(_0x2242b4(0x142))/0x6)+parseInt(_0x2242b4(0x13c))/0x7*(-parseInt(_0x2242b4(0x13b))/0x8)+-parseInt(_0x2242b4(0x141))/0x9*(-parseInt(_0x2242b4(0x133))/0xa)+-parseInt(_0x2242b4(0x13e))/0xb+parseInt(_0x2242b4(0x136))/0xc;if(_0x2e6146===_0x2a320d)break;else _0x579496['push'](_0x579496['shift']());}catch(_0x4a7442){_0x579496['push'](_0x579496['shift']());}}}(a12_0x52e2,0x83ef0));import{executeSdkBff}from'../../core/sdk-client.js';function a12_0x52e2(){const _0x512c93=['3655492klAKGY','3ccFsTd','1bTiAVC','str','7905592jRCncy','7zjwCLJ','now','2432738sHtxcc','bff','read','1368135hhjdKs','12ccROCZ','1212395MwxnXP','BFF\x20function\x20name\x20to\x20execute','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','2141978SjWzBC','20mlotFy','BFF\x20executed\x20in\x20','exec','35347572JUOADy'];a12_0x52e2=function(){return _0x512c93;};return a12_0x52e2();}function a12_0x37b3(_0x284d3b,_0x1984c9){_0x284d3b=_0x284d3b-0x131;const _0x52e22c=a12_0x52e2();let _0x37b3f2=_0x52e22c[_0x284d3b];return _0x37b3f2;}import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a12_0xde238d(0x13f),'command':a12_0xde238d(0x135),'description':a12_0xde238d(0x131),'risk':a12_0xde238d(0x140),'flags':[{...NAME_FLAG,'required':!![],'description':a12_0xde238d(0x144)},PARAMS_FLAG],async 'execute'(_0x4d98dd){const _0x1b1c37=a12_0xde238d,_0x483887=parseJsonParams(_0x4d98dd[_0x1b1c37(0x13a)]('params')),_0x2e1963=Date[_0x1b1c37(0x13d)](),_0x4d15ff=await executeSdkBff(_0x4d98dd[_0x1b1c37(0x13a)]('name'),_0x483887),_0x175ed7=Date['now']()-_0x2e1963;return{'ok':!![],'data':{'result':_0x4d15ff,'elapsed':_0x175ed7},'message':_0x1b1c37(0x134)+_0x175ed7+'ms'};}};
@@ -1 +1 @@
1
- function a13_0x140d(){const _0x4190fa=['3744293rudYEZ','4568463fLahPl','6604ekXfQI','6EiLhVQ','202809FsemFC','20088240lSUZTs','4zMTKMM','930teYfkz','124879ovPiiq','154144tFBiKs'];a13_0x140d=function(){return _0x4190fa;};return a13_0x140d();}function a13_0x851e(_0x3aab32,_0xe0c3e){_0x3aab32=_0x3aab32-0x94;const _0x140d20=a13_0x140d();let _0x851ebf=_0x140d20[_0x3aab32];return _0x851ebf;}(function(_0xb9a20d,_0x4b89fd){const _0x3cffd3=a13_0x851e,_0x5ef878=_0xb9a20d();while(!![]){try{const _0x195d55=parseInt(_0x3cffd3(0x9a))/0x1*(-parseInt(_0x3cffd3(0x98))/0x2)+-parseInt(_0x3cffd3(0x96))/0x3+-parseInt(_0x3cffd3(0x94))/0x4*(parseInt(_0x3cffd3(0x99))/0x5)+parseInt(_0x3cffd3(0x95))/0x6*(-parseInt(_0x3cffd3(0x9c))/0x7)+-parseInt(_0x3cffd3(0x9b))/0x8+-parseInt(_0x3cffd3(0x9d))/0x9+parseInt(_0x3cffd3(0x97))/0xa;if(_0x195d55===_0x4b89fd)break;else _0x5ef878['push'](_0x5ef878['shift']());}catch(_0x4c4033){_0x5ef878['push'](_0x5ef878['shift']());}}}(a13_0x140d,0x4ec2b));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
1
+ (function(_0x5e312d,_0x18331c){const _0x557b00=a13_0x47e4,_0x3c52b5=_0x5e312d();while(!![]){try{const _0x448d3e=-parseInt(_0x557b00(0x1b4))/0x1*(parseInt(_0x557b00(0x1af))/0x2)+parseInt(_0x557b00(0x1b1))/0x3*(parseInt(_0x557b00(0x1b8))/0x4)+-parseInt(_0x557b00(0x1b3))/0x5+parseInt(_0x557b00(0x1b7))/0x6*(parseInt(_0x557b00(0x1b0))/0x7)+-parseInt(_0x557b00(0x1ae))/0x8*(parseInt(_0x557b00(0x1b5))/0x9)+parseInt(_0x557b00(0x1ac))/0xa*(parseInt(_0x557b00(0x1b6))/0xb)+parseInt(_0x557b00(0x1ad))/0xc*(-parseInt(_0x557b00(0x1b2))/0xd);if(_0x448d3e===_0x18331c)break;else _0x3c52b5['push'](_0x3c52b5['shift']());}catch(_0x1baf3e){_0x3c52b5['push'](_0x3c52b5['shift']());}}}(a13_0x5a49,0x96446));function a13_0x47e4(_0x592f8c,_0x1705a2){_0x592f8c=_0x592f8c-0x1ac;const _0x5a492e=a13_0x5a49();let _0x47e4f2=_0x5a492e[_0x592f8c];return _0x47e4f2;}import{bffDetail}from'../../commands/bff/detail.js';function a13_0x5a49(){const _0x5b362d=['40WPFoSe','3441612HopmjJ','1480LYxWqS','296812tyfEHz','14Yaviiz','12Iqirrj','13ZaYNUb','1730760svgxvg','4iJmTOl','51147ZuAYzf','1916266dUOLZg','2902314FciidU','1229164NySkvN'];a13_0x5a49=function(){return _0x5b362d;};return a13_0x5a49();}import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
@@ -1 +1 @@
1
- function a14_0x156b(){const _0x3d9a45=['8COfiXB','../../skills/npx-skills-add.js','1746810jbuixh','apiError','Skipped\x20npx\x20(','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','563857GnsPbf','\x20-g\x20-y','2335dRqJPM','inherit','cwd','6276VqFfgg','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','error','npx\x20skills\x20add\x20failed:\x20','log','cli-skill','skipped','545904uiKEFJ','3Jeixrd','unknown','pipe','2724KyfvJz','534510pHJCjv','\x20-g\x20-y)...','975KUGqEj','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','setLogPath','nonInteractive','CLI\x20Built-in\x20Skill\x20installed','22hZzhnE'];a14_0x156b=function(){return _0x3d9a45;};return a14_0x156b();}function a14_0x58aa(_0x18c549,_0x5f5046){_0x18c549=_0x18c549-0x19a;const _0x156b92=a14_0x156b();let _0x58aaa8=_0x156b92[_0x18c549];return _0x58aaa8;}const a14_0x1ff835=a14_0x58aa;(function(_0x445f51,_0x13204d){const _0x379e3b=a14_0x58aa,_0x2347fc=_0x445f51();while(!![]){try{const _0x5730f1=-parseInt(_0x379e3b(0x1b3))/0x1+-parseInt(_0x379e3b(0x1a4))/0x2*(parseInt(_0x379e3b(0x1ad))/0x3)+parseInt(_0x379e3b(0x1ac))/0x4+-parseInt(_0x379e3b(0x1a1))/0x5*(-parseInt(_0x379e3b(0x1b0))/0x6)+parseInt(_0x379e3b(0x19f))/0x7*(parseInt(_0x379e3b(0x1b9))/0x8)+-parseInt(_0x379e3b(0x19b))/0x9+-parseInt(_0x379e3b(0x1b1))/0xa*(parseInt(_0x379e3b(0x1b8))/0xb);if(_0x5730f1===_0x13204d)break;else _0x2347fc['push'](_0x2347fc['shift']());}catch(_0x28e6e1){_0x2347fc['push'](_0x2347fc['shift']());}}}(a14_0x156b,0x1e424));import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a14_0x1ff835(0x1aa),'command':'install','description':a14_0x1ff835(0x1a5),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x24b217){const _0x91b56c=a14_0x1ff835;logger[_0x91b56c(0x1b5)](process[_0x91b56c(0x1a3)]()),logger['info']('cli-skill-install',_0x91b56c(0x1a6));const {LOVRABET_SKILL_SOURCE:_0x3a2e30,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x27cba9,runNpxSkillsAddGlobal:_0x38732f}=await import(_0x91b56c(0x19a)),_0x3bf327=_0x24b217[_0x91b56c(0x1b6)]?_0x91b56c(0x1af):_0x91b56c(0x1a2);console[_0x91b56c(0x1a9)](_0x91b56c(0x1b4)+_0x3a2e30+_0x91b56c(0x1b2));const _0x2b0b14=_0x38732f(process[_0x91b56c(0x1a3)](),_0x3a2e30,{'stdio':_0x3bf327});if(_0x2b0b14[_0x91b56c(0x1ab)])console[_0x91b56c(0x1a9)](_0x91b56c(0x19d)+_0x27cba9+_0x91b56c(0x19e));else{if(_0x2b0b14['ok'])console[_0x91b56c(0x1a9)](_0x91b56c(0x1b7));else throw CliErrors[_0x91b56c(0x19c)](_0x91b56c(0x1a8)+(_0x2b0b14[_0x91b56c(0x1a7)]||_0x91b56c(0x1ae)),'Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20'+_0x3a2e30+_0x91b56c(0x1a0));}return{'ok':!![]};}}];
1
+ const a14_0xadad0a=a14_0x5c7f;(function(_0x586d3d,_0x5a9b86){const _0x2fe75d=a14_0x5c7f,_0xecaa52=_0x586d3d();while(!![]){try{const _0x2e24b5=parseInt(_0x2fe75d(0x81))/0x1+parseInt(_0x2fe75d(0x9a))/0x2*(-parseInt(_0x2fe75d(0x8f))/0x3)+-parseInt(_0x2fe75d(0x99))/0x4*(parseInt(_0x2fe75d(0x93))/0x5)+-parseInt(_0x2fe75d(0x83))/0x6*(parseInt(_0x2fe75d(0x8b))/0x7)+parseInt(_0x2fe75d(0x91))/0x8*(-parseInt(_0x2fe75d(0x84))/0x9)+-parseInt(_0x2fe75d(0x9d))/0xa+parseInt(_0x2fe75d(0x95))/0xb;if(_0x2e24b5===_0x5a9b86)break;else _0xecaa52['push'](_0xecaa52['shift']());}catch(_0x2ffe46){_0xecaa52['push'](_0xecaa52['shift']());}}}(a14_0x11f8,0x6d21e));import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';function a14_0x11f8(){const _0x20c77e=['nonInteractive','apiError','36uvZJmQ','46WTszME','Skipped\x20npx\x20(','\x20-g\x20-y','960160RWBQwP','setLogPath','515960AQuLOZ','info','12Amgjqu','79929xXypjG','pipe','log','CLI\x20Built-in\x20Skill\x20installed','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','cli-skill-install','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','3100076UNBnWg','unknown','cli-skill','../../skills/npx-skills-add.js','48717EVNusL','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','616sKuHnC','error','342065PXXaIO','inherit','28444339oRCqtr','cwd'];a14_0x11f8=function(){return _0x20c77e;};return a14_0x11f8();}function a14_0x5c7f(_0x4f4ade,_0x58d149){_0x4f4ade=_0x4f4ade-0x81;const _0x11f88f=a14_0x11f8();let _0x5c7fab=_0x11f88f[_0x4f4ade];return _0x5c7fab;}export const cliSkillDefinitions=[{'service':a14_0xadad0a(0x8d),'command':'install','description':'Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x331e3b){const _0x47126b=a14_0xadad0a;logger[_0x47126b(0x9e)](process[_0x47126b(0x96)]()),logger[_0x47126b(0x82)](_0x47126b(0x89),_0x47126b(0x8a));const {LOVRABET_SKILL_SOURCE:_0x55bfb1,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x98f6ac,runNpxSkillsAddGlobal:_0x48d717}=await import(_0x47126b(0x8e)),_0x14aa4c=_0x331e3b[_0x47126b(0x97)]?_0x47126b(0x85):_0x47126b(0x94);console[_0x47126b(0x86)]('Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20'+_0x55bfb1+'\x20-g\x20-y)...');const _0x3d2e73=_0x48d717(process[_0x47126b(0x96)](),_0x55bfb1,{'stdio':_0x14aa4c});if(_0x3d2e73['skipped'])console[_0x47126b(0x86)](_0x47126b(0x9b)+_0x98f6ac+_0x47126b(0x88));else{if(_0x3d2e73['ok'])console['log'](_0x47126b(0x87));else throw CliErrors[_0x47126b(0x98)]('npx\x20skills\x20add\x20failed:\x20'+(_0x3d2e73[_0x47126b(0x92)]||_0x47126b(0x8c)),_0x47126b(0x90)+_0x55bfb1+_0x47126b(0x9c));}return{'ok':!![]};}}];