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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) 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/mock-loader.js +1 -1
  6. package/lib/commands/app/remote-source.js +1 -1
  7. package/lib/commands/app/shared.js +1 -1
  8. package/lib/commands/artifact/index.js +1 -1
  9. package/lib/commands/auth/index.js +1 -1
  10. package/lib/commands/auth/prompt.js +1 -1
  11. package/lib/commands/bff/detail.js +1 -1
  12. package/lib/commands/bff/exec.js +1 -1
  13. package/lib/commands/bff/index.js +1 -1
  14. package/lib/commands/common/config-policy.js +1 -1
  15. package/lib/commands/common/constraints.js +1 -1
  16. package/lib/commands/common/flags.js +1 -1
  17. package/lib/commands/config/definitions.js +1 -1
  18. package/lib/commands/config/shared.js +1 -1
  19. package/lib/commands/data/index.js +1 -1
  20. package/lib/commands/dataset/detail.js +1 -1
  21. package/lib/commands/dataset/index.js +1 -1
  22. package/lib/commands/dataset/list.js +1 -1
  23. package/lib/commands/dataset/sdk-doc.js +1 -1
  24. package/lib/commands/doctor.js +1 -1
  25. package/lib/commands/init.js +1 -1
  26. package/lib/commands/kb/index.js +1 -1
  27. package/lib/commands/logs/index.js +1 -1
  28. package/lib/commands/personal-bff/index.js +1 -1
  29. package/lib/commands/registry.js +1 -1
  30. package/lib/commands/schema.js +1 -1
  31. package/lib/commands/skill/index.js +1 -1
  32. package/lib/commands/sql/detail.js +1 -1
  33. package/lib/commands/sql/exec.js +1 -1
  34. package/lib/commands/sql/index.js +1 -1
  35. package/lib/commands/update.js +1 -1
  36. package/lib/config/schema.js +1 -1
  37. package/lib/constant/auth-mode.js +1 -1
  38. package/lib/constant/cli.js +1 -1
  39. package/lib/constant/defaults.js +1 -1
  40. package/lib/constant/distribution.js +1 -1
  41. package/lib/constant/domain.js +1 -1
  42. package/lib/constant/env.js +1 -1
  43. package/lib/constant/output.js +1 -1
  44. package/lib/constant/product.js +1 -1
  45. package/lib/constant/risk.js +1 -1
  46. package/lib/constant/url.js +1 -1
  47. package/lib/context.js +1 -1
  48. package/lib/core/api-client.js +1 -1
  49. package/lib/core/db-resolver.js +1 -1
  50. package/lib/core/sdk-client.js +1 -1
  51. package/lib/errors.js +1 -1
  52. package/lib/framework/build-all-flags.js +1 -1
  53. package/lib/framework/dryrun.js +1 -1
  54. package/lib/framework/flags.js +1 -1
  55. package/lib/framework/help.js +1 -1
  56. package/lib/framework/index.js +1 -1
  57. package/lib/framework/output.js +1 -1
  58. package/lib/framework/preparse.js +1 -1
  59. package/lib/framework/response.js +1 -1
  60. package/lib/framework/runner-confirmation.js +1 -1
  61. package/lib/framework/runner-error.js +1 -1
  62. package/lib/framework/runner.js +1 -1
  63. package/lib/framework/schema-export.js +1 -1
  64. package/lib/framework/types.js +1 -1
  65. package/lib/help.js +1 -1
  66. package/lib/skills/npx-skills-add.js +1 -1
  67. package/lib/skills/runtime-skill-sync.js +1 -1
  68. package/lib/utils/apply-jq-filter.js +1 -1
  69. package/lib/utils/logger.js +1 -1
  70. package/lib/utils/params.js +1 -1
  71. package/lib/utils/platform.js +1 -1
  72. package/lib/utils/update-notice.js +1 -1
  73. package/lib/utils/version.js +1 -1
  74. package/lib/utils/write-cli-side-channel.js +1 -1
  75. package/package.json +1 -1
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const a0_0x4d02d1=a0_0x5afc;function a0_0x5afc(_0x316cc5,_0xe7e40f){_0x316cc5=_0x316cc5-0x15c;const _0x53368b=a0_0x5336();let _0x5afc8c=_0x53368b[_0x316cc5];return _0x5afc8c;}(function(_0x3e550a,_0x173599){const _0x45efb0=a0_0x5afc,_0x5c8622=_0x3e550a();while(!![]){try{const _0x5e3557=-parseInt(_0x45efb0(0x15f))/0x1*(parseInt(_0x45efb0(0x174))/0x2)+parseInt(_0x45efb0(0x168))/0x3+parseInt(_0x45efb0(0x161))/0x4*(parseInt(_0x45efb0(0x15c))/0x5)+-parseInt(_0x45efb0(0x16b))/0x6*(-parseInt(_0x45efb0(0x17e))/0x7)+parseInt(_0x45efb0(0x179))/0x8+-parseInt(_0x45efb0(0x171))/0x9+-parseInt(_0x45efb0(0x16e))/0xa;if(_0x5e3557===_0x173599)break;else _0x5c8622['push'](_0x5c8622['shift']());}catch(_0x1b8d0a){_0x5c8622['push'](_0x5c8622['shift']());}}}(a0_0x5336,0x22fa1));import{jsx as a0_0x51b344}from'react/jsx-runtime';import a0_0x2e36a4 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{runCommand,createPipelineEnv}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{buildMeowFlags}from'./constant/cli.js';const helpText=generateFullHelp(),cli=a0_0x2e36a4(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'autoVersion':!![]});void main()[a0_0x4d02d1(0x165)](handleError);async function main(){try{await run();}catch(_0x3c1e81){handleError(_0x3c1e81);}}async function run(){const _0x500a01=a0_0x4d02d1;let _0x48c4e8=cli['input'][0x0],_0x30593b=cli[_0x500a01(0x16f)][0x1];const _0x43abc0=cli[_0x500a01(0x17f)];try{const {correctFlags:_0x239727}=await import(_0x500a01(0x17c)),_0x4002c4=getAllDefinitions()[_0x500a01(0x160)](_0x414e89=>_0x414e89['flags']??[]),{flags:_0x56a331,corrections:_0x17b385}=_0x239727(_0x43abc0,_0x4002c4);if(_0x17b385[_0x500a01(0x172)]>0x0){for(const _0xc27a8d of _0x17b385){process[_0x500a01(0x176)][_0x500a01(0x177)](_0x500a01(0x16c)+_0xc27a8d[_0x500a01(0x169)]+':\x20--'+_0xc27a8d['original']+_0x500a01(0x181)+_0xc27a8d[_0x500a01(0x180)]+'\x0a');}Object[_0x500a01(0x173)](_0x43abc0,_0x56a331);}}catch{}if(!_0x48c4e8||!isKnownService(_0x48c4e8)){const {waitUntilExit:_0x2a0463}=render(a0_0x51b344(Help,{}));await _0x2a0463();return;}const _0x4cef5a=getServiceEntry(_0x48c4e8);if(!_0x30593b){if(_0x43abc0[_0x500a01(0x15e)]){console['log'](generateServiceHelp(_0x48c4e8));return;}if(_0x4cef5a[_0x500a01(0x167)])_0x30593b=_0x4cef5a[_0x500a01(0x167)];else{console['log'](generateServiceHelp(_0x48c4e8));return;}}const _0x5e9858=findDefinition(_0x48c4e8,_0x30593b);!_0x5e9858&&(console['log'](generateServiceHelp(_0x48c4e8)),handleError(CliErrors['unknownCommand'](_0x48c4e8+'\x20'+_0x30593b)));if(_0x43abc0[_0x500a01(0x15e)]){console[_0x500a01(0x15d)](generateCommandHelp(_0x5e9858));return;}const _0x43813c=buildConfigFromFlags(_0x43abc0);await initGlobalEnvironment(_0x43813c);const _0x40a2fc=createPipelineEnv(_0x43813c,_0x43abc0);_0x40a2fc[_0x500a01(0x16d)]=cli[_0x500a01(0x16f)][_0x500a01(0x175)](0x2),await runCommand(_0x5e9858,_0x40a2fc);}function handleError(_0x1c8346){const _0x2c25ed=a0_0x4d02d1;if(_0x1c8346 instanceof CliError){_0x1c8346[_0x2c25ed(0x17a)]===_0x2c25ed(0x162)&&(process[_0x2c25ed(0x176)][_0x2c25ed(0x177)](_0x2c25ed(0x166)),process['exit'](0x0));console[_0x2c25ed(0x178)](_0x2c25ed(0x17b)+_0x1c8346[_0x2c25ed(0x170)]);if(_0x1c8346[_0x2c25ed(0x16a)])console[_0x2c25ed(0x178)]('Hint:\x20'+_0x1c8346['hint']);process['exit'](_0x1c8346[_0x2c25ed(0x163)]);}isUserCancellation(_0x1c8346)&&(process['stderr']['write'](_0x2c25ed(0x166)),process[_0x2c25ed(0x182)](0x0)),console[_0x2c25ed(0x178)]('Unexpected\x20error:',_0x1c8346),process[_0x2c25ed(0x182)](0x1);}function isUserCancellation(_0xaea1fe){const _0x982661=a0_0x4d02d1;if(!(_0xaea1fe instanceof Error))return![];if(_0xaea1fe['name']===_0x982661(0x17d))return!![];if(_0xaea1fe[_0x982661(0x17a)]===_0x982661(0x164))return!![];if(_0xaea1fe[_0x982661(0x17a)]==='ERR_STREAM_DESTROYED')return!![];return![];}function a0_0x5336(){const _0x314732=['error','1779432QFgCVw','code','Error:\x20','./framework/preparse.js','ExitPromptError','597079GyGPKo','flags','corrected','\x20->\x20--','exit','105VSpAiU','log','help','16acCaHY','flatMap','42908JdsIlX','cancelled','exitCode','ERR_USE_AFTER_CLOSE','catch','\x0aCancelled.\x0a','defaultCommand','351384uKgJAF','handler','hint','6UkdSNv','[preparse]\x20','args','1210270aWwSrx','input','message','946413lWHMeT','length','assign','35084PNFyIC','slice','stderr','write'];a0_0x5336=function(){return _0x314732;};return a0_0x5336();}
2
+ const a0_0x51eb4d=a0_0x4d92;(function(_0xb701a7,_0x158df4){const _0x32d8c2=a0_0x4d92,_0x5763e1=_0xb701a7();while(!![]){try{const _0x54eaef=-parseInt(_0x32d8c2(0x1e3))/0x1*(parseInt(_0x32d8c2(0x1e2))/0x2)+-parseInt(_0x32d8c2(0x1dd))/0x3+-parseInt(_0x32d8c2(0x1d1))/0x4*(parseInt(_0x32d8c2(0x1d9))/0x5)+parseInt(_0x32d8c2(0x1d2))/0x6+parseInt(_0x32d8c2(0x1d7))/0x7*(parseInt(_0x32d8c2(0x1ce))/0x8)+parseInt(_0x32d8c2(0x1dc))/0x9*(-parseInt(_0x32d8c2(0x1c0))/0xa)+parseInt(_0x32d8c2(0x1d6))/0xb*(parseInt(_0x32d8c2(0x1d8))/0xc);if(_0x54eaef===_0x158df4)break;else _0x5763e1['push'](_0x5763e1['shift']());}catch(_0x3ea726){_0x5763e1['push'](_0x5763e1['shift']());}}}(a0_0xefd1,0xf0cb5));function a0_0x4d92(_0x5a8f25,_0x1376c4){_0x5a8f25=_0x5a8f25-0x1bf;const _0xefd1e6=a0_0xefd1();let _0x4d9237=_0xefd1e6[_0x5a8f25];return _0x4d9237;}import{jsx as a0_0x57f200}from'react/jsx-runtime';import a0_0x468e31 from'meow';function a0_0xefd1(){const _0x1a4182=['exit','./framework/preparse.js','help','11308oaBxKA','326TUKTRD','name','flags','defaultCommand','20uWUlXg','cancelled','Error:\x20','ERR_USE_AFTER_CLOSE','input','\x0aCancelled.\x0a','args','exitCode','catch','write','code','ExitPromptError','handler','message','722872bGRwFn','\x20->\x20--','stderr','33420ZiFYSE','10530966GESJiM','error','unknownCommand','original','451KfxgoS','63VoqnDJ','1118388zoRVkV','965nOGvPg','length','log','8288829ZpQAfS','316731OnIJjz','hint'];a0_0xefd1=function(){return _0x1a4182;};return a0_0xefd1();}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{runCommand,createPipelineEnv}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{buildMeowFlags}from'./constant/cli.js';const helpText=generateFullHelp(),cli=a0_0x468e31(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'autoVersion':!![]});void main()[a0_0x51eb4d(0x1c8)](handleError);async function main(){try{await run();}catch(_0x350d6e){handleError(_0x350d6e);}}async function run(){const _0x274ba8=a0_0x51eb4d;let _0x5d2e0e=cli[_0x274ba8(0x1c4)][0x0],_0x29fcaa=cli[_0x274ba8(0x1c4)][0x1];const _0x9c7005=cli[_0x274ba8(0x1e5)];try{const {correctFlags:_0x46ec97}=await import(_0x274ba8(0x1e0)),_0x2ae7e7=getAllDefinitions()['flatMap'](_0x4a584f=>_0x4a584f[_0x274ba8(0x1e5)]??[]),{flags:_0x9ce9db,corrections:_0x4b38e7}=_0x46ec97(_0x9c7005,_0x2ae7e7);if(_0x4b38e7[_0x274ba8(0x1da)]>0x0){for(const _0x1533b2 of _0x4b38e7){process[_0x274ba8(0x1d0)][_0x274ba8(0x1c9)]('[preparse]\x20'+_0x1533b2[_0x274ba8(0x1cc)]+':\x20--'+_0x1533b2[_0x274ba8(0x1d5)]+_0x274ba8(0x1cf)+_0x1533b2['corrected']+'\x0a');}Object['assign'](_0x9c7005,_0x9ce9db);}}catch{}if(!_0x5d2e0e||!isKnownService(_0x5d2e0e)){const {waitUntilExit:_0x36efa7}=render(a0_0x57f200(Help,{}));await _0x36efa7();return;}const _0x439422=getServiceEntry(_0x5d2e0e);if(!_0x29fcaa){if(_0x9c7005[_0x274ba8(0x1e1)]){console[_0x274ba8(0x1db)](generateServiceHelp(_0x5d2e0e));return;}if(_0x439422[_0x274ba8(0x1bf)])_0x29fcaa=_0x439422[_0x274ba8(0x1bf)];else{console[_0x274ba8(0x1db)](generateServiceHelp(_0x5d2e0e));return;}}const _0x5012f7=findDefinition(_0x5d2e0e,_0x29fcaa);!_0x5012f7&&(console[_0x274ba8(0x1db)](generateServiceHelp(_0x5d2e0e)),handleError(CliErrors[_0x274ba8(0x1d4)](_0x5d2e0e+'\x20'+_0x29fcaa)));if(_0x9c7005['help']){console['log'](generateCommandHelp(_0x5012f7));return;}const _0x433cfe=buildConfigFromFlags(_0x9c7005);await initGlobalEnvironment(_0x433cfe);const _0x3ff8ef=createPipelineEnv(_0x433cfe,_0x9c7005);_0x3ff8ef[_0x274ba8(0x1c6)]=cli['input']['slice'](0x2),await runCommand(_0x5012f7,_0x3ff8ef);}function handleError(_0x4aaf30){const _0x593b6=a0_0x51eb4d;if(_0x4aaf30 instanceof CliError){_0x4aaf30[_0x593b6(0x1ca)]===_0x593b6(0x1c1)&&(process['stderr'][_0x593b6(0x1c9)](_0x593b6(0x1c5)),process[_0x593b6(0x1df)](0x0));console['error'](_0x593b6(0x1c2)+_0x4aaf30[_0x593b6(0x1cd)]);if(_0x4aaf30[_0x593b6(0x1de)])console[_0x593b6(0x1d3)]('Hint:\x20'+_0x4aaf30[_0x593b6(0x1de)]);process[_0x593b6(0x1df)](_0x4aaf30[_0x593b6(0x1c7)]);}isUserCancellation(_0x4aaf30)&&(process[_0x593b6(0x1d0)][_0x593b6(0x1c9)](_0x593b6(0x1c5)),process['exit'](0x0)),console['error']('Unexpected\x20error:',_0x4aaf30),process['exit'](0x1);}function isUserCancellation(_0x288e9a){const _0x4d2d59=a0_0x51eb4d;if(!(_0x288e9a instanceof Error))return![];if(_0x288e9a[_0x4d2d59(0x1e4)]===_0x4d2d59(0x1cb))return!![];if(_0x288e9a['code']===_0x4d2d59(0x1c3))return!![];if(_0x288e9a[_0x4d2d59(0x1ca)]==='ERR_STREAM_DESTROYED')return!![];return![];}
@@ -1 +1 @@
1
- function a1_0x1c8f(_0x5e391c,_0x258811){_0x5e391c=_0x5e391c-0x12e;const _0xef8f62=a1_0xef8f();let _0x1c8f7e=_0xef8f62[_0x5e391c];return _0x1c8f7e;}const a1_0x3d458c=a1_0x1c8f;(function(_0xd20cf,_0x3dd63f){const _0x3963eb=a1_0x1c8f,_0x4456ed=_0xd20cf();while(!![]){try{const _0x1059ef=parseInt(_0x3963eb(0x190))/0x1*(-parseInt(_0x3963eb(0x178))/0x2)+parseInt(_0x3963eb(0x192))/0x3*(-parseInt(_0x3963eb(0x188))/0x4)+parseInt(_0x3963eb(0x141))/0x5*(parseInt(_0x3963eb(0x146))/0x6)+parseInt(_0x3963eb(0x169))/0x7*(parseInt(_0x3963eb(0x13b))/0x8)+parseInt(_0x3963eb(0x145))/0x9+-parseInt(_0x3963eb(0x160))/0xa+parseInt(_0x3963eb(0x15a))/0xb*(-parseInt(_0x3963eb(0x185))/0xc);if(_0x1059ef===_0x3dd63f)break;else _0x4456ed['push'](_0x4456ed['shift']());}catch(_0x76222b){_0x4456ed['push'](_0x4456ed['shift']());}}}(a1_0xef8f,0x32fe1));import{CliErrors}from'../../errors.js';const CATEGORY_FLAG={'name':a1_0x3d458c(0x18b),'type':a1_0x3d458c(0x189),'description':a1_0x3d458c(0x136)},KEYWORD_FLAG={'name':a1_0x3d458c(0x196),'type':'string','description':'Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text'},DOC_CODE_FLAG={'name':'code','type':a1_0x3d458c(0x189),'required':!![],'description':'API\x20doc\x20code,\x20for\x20example\x20dataset_list'},DOCS=[{'code':a1_0x3d458c(0x133),'category':a1_0x3d458c(0x149),'title':a1_0x3d458c(0x17b),'method':a1_0x3d458c(0x15b),'path':'/api/dataset/get-dataset-list-by-app-code','summary':'分页获取数据集列表','whenToUse':a1_0x3d458c(0x172),'pathParams':[],'queryParams':[],'bodySchema':a1_0x3d458c(0x13d),'responseHighlights':[a1_0x3d458c(0x175),'paging.totalCount\x20gives\x20total\x20rows'],'examples':[a1_0x3d458c(0x164)],'notes':['CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.'],'markdown':[a1_0x3d458c(0x184),'',a1_0x3d458c(0x19b)][a1_0x3d458c(0x19f)]('\x0a')},{'code':a1_0x3d458c(0x135),'category':'dataset','title':'Dataset\x20detail','method':a1_0x3d458c(0x14f),'path':'/api/dataset/getOneByCode?code={datasetCode}','summary':a1_0x3d458c(0x17d),'whenToUse':a1_0x3d458c(0x17a),'pathParams':[],'queryParams':[{'name':a1_0x3d458c(0x19d),'description':a1_0x3d458c(0x174)}],'bodySchema':a1_0x3d458c(0x19a),'responseHighlights':['fields/properties\x20describe\x20data\x20shape',a1_0x3d458c(0x187)],'examples':['lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>'],'notes':[a1_0x3d458c(0x14a)],'markdown':[a1_0x3d458c(0x161),'','Inspect\x20field\x20names\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.'][a1_0x3d458c(0x19f)]('\x0a')},{'code':a1_0x3d458c(0x15f),'category':'dataset','title':a1_0x3d458c(0x16e),'method':a1_0x3d458c(0x15b),'path':'/api/{appCode}/{datasetCode}/filter','summary':a1_0x3d458c(0x19e),'whenToUse':a1_0x3d458c(0x147),'pathParams':[{'name':a1_0x3d458c(0x152),'description':a1_0x3d458c(0x12e)},{'name':a1_0x3d458c(0x170),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':a1_0x3d458c(0x143),'responseHighlights':['tableData\x20contains\x20records','paging\x20contains\x20pagination'],'examples':[a1_0x3d458c(0x13e)],'notes':['Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.'],'markdown':[a1_0x3d458c(0x13a),'',a1_0x3d458c(0x13c)][a1_0x3d458c(0x19f)]('\x0a')},{'code':a1_0x3d458c(0x18d),'category':a1_0x3d458c(0x149),'title':a1_0x3d458c(0x148),'method':a1_0x3d458c(0x15b),'path':a1_0x3d458c(0x191),'summary':a1_0x3d458c(0x171),'whenToUse':a1_0x3d458c(0x154),'pathParams':[{'name':'appCode','description':a1_0x3d458c(0x12e)},{'name':a1_0x3d458c(0x170),'description':a1_0x3d458c(0x174)}],'queryParams':[],'bodySchema':a1_0x3d458c(0x176),'responseHighlights':[a1_0x3d458c(0x195),a1_0x3d458c(0x19c)],'examples':[a1_0x3d458c(0x150)],'notes':[a1_0x3d458c(0x153)],'markdown':[a1_0x3d458c(0x158),'','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.']['join']('\x0a')},{'code':a1_0x3d458c(0x142),'category':'dataset','title':a1_0x3d458c(0x16c),'method':a1_0x3d458c(0x15b),'path':a1_0x3d458c(0x186),'summary':a1_0x3d458c(0x173),'whenToUse':'已经知道记录\x20id,需要按数据集读取单条业务数据时使用','pathParams':[{'name':a1_0x3d458c(0x152),'description':a1_0x3d458c(0x12e)},{'name':a1_0x3d458c(0x170),'description':a1_0x3d458c(0x174)}],'queryParams':[],'bodySchema':a1_0x3d458c(0x134),'responseHighlights':[a1_0x3d458c(0x144)],'examples':[a1_0x3d458c(0x168)],'notes':[a1_0x3d458c(0x130)],'markdown':a1_0x3d458c(0x183)},{'code':a1_0x3d458c(0x18e),'category':a1_0x3d458c(0x149),'title':a1_0x3d458c(0x151),'method':a1_0x3d458c(0x15b),'path':a1_0x3d458c(0x18a),'summary':a1_0x3d458c(0x137),'whenToUse':a1_0x3d458c(0x166),'pathParams':[{'name':a1_0x3d458c(0x152),'description':a1_0x3d458c(0x12e)},{'name':a1_0x3d458c(0x170),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':a1_0x3d458c(0x156),'responseHighlights':[a1_0x3d458c(0x14e)],'examples':['lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27'],'notes':[a1_0x3d458c(0x17c)],'markdown':a1_0x3d458c(0x17e)},{'code':a1_0x3d458c(0x155),'category':'bf','title':a1_0x3d458c(0x163),'method':a1_0x3d458c(0x14f),'path':'/api/endpoint/{appCode}/functions','summary':a1_0x3d458c(0x12f),'whenToUse':'需要先确认当前应用有哪些可执行的\x20BF/ENDPOINT\x20函数,以及收敛可用\x20scriptName\x20时使用','pathParams':[{'name':a1_0x3d458c(0x152),'description':a1_0x3d458c(0x12e)}],'queryParams':[],'bodySchema':'None','responseHighlights':['Returns\x20endpoint\x20functionName/id/description'],'examples':[a1_0x3d458c(0x13f)],'notes':[a1_0x3d458c(0x18c)],'markdown':a1_0x3d458c(0x179)},{'code':a1_0x3d458c(0x165),'category':'bf','title':a1_0x3d458c(0x157),'method':a1_0x3d458c(0x15b),'path':a1_0x3d458c(0x15c),'summary':'执行指定\x20BF\x20函数','whenToUse':a1_0x3d458c(0x139),'pathParams':[{'name':'appCode','description':a1_0x3d458c(0x12e)},{'name':'scriptName','description':'Endpoint\x20function\x20name'}],'queryParams':[],'bodySchema':'{\x22param\x22:\x22value\x22}','responseHighlights':[a1_0x3d458c(0x16d)],'examples':[a1_0x3d458c(0x193)],'notes':[a1_0x3d458c(0x16f)],'markdown':'##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.'},{'code':a1_0x3d458c(0x194),'category':a1_0x3d458c(0x159),'title':a1_0x3d458c(0x14d),'method':'POST','path':'/api/custom/executeSql','summary':a1_0x3d458c(0x15d),'whenToUse':a1_0x3d458c(0x177),'pathParams':[],'queryParams':[],'bodySchema':a1_0x3d458c(0x1a0),'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':'##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.'}];function entrySummary(_0x42cb07){const _0x3ee049=a1_0x3d458c;return{'code':_0x42cb07[_0x3ee049(0x19d)],'category':_0x42cb07[_0x3ee049(0x18b)],'method':_0x42cb07[_0x3ee049(0x138)],'path':_0x42cb07[_0x3ee049(0x14b)],'summary':_0x42cb07['summary'],'whenToUse':_0x42cb07[_0x3ee049(0x14c)]};}export function listApiDocEntries(_0x501a07={}){const _0x4e71f4=a1_0x3d458c,_0x3ebfed=String(_0x501a07[_0x4e71f4(0x18b)]||'')[_0x4e71f4(0x167)](),_0x25a8fe=String(_0x501a07[_0x4e71f4(0x196)]||'')['trim']()['toLowerCase']();return DOCS[_0x4e71f4(0x131)](_0xd21d8e=>{const _0x36858e=_0x4e71f4;if(_0x3ebfed&&_0xd21d8e['category']!==_0x3ebfed)return![];if(!_0x25a8fe)return!![];return[_0xd21d8e[_0x36858e(0x19d)],_0xd21d8e['category'],_0xd21d8e[_0x36858e(0x138)],_0xd21d8e['path'],_0xd21d8e[_0x36858e(0x197)],_0xd21d8e[_0x36858e(0x14c)],_0xd21d8e[_0x36858e(0x18f)]]['join']('\x20')[_0x36858e(0x16b)]()[_0x36858e(0x181)](_0x25a8fe);})[_0x4e71f4(0x17f)](entrySummary);}function a1_0xef8f(){const _0x3bc777=['/api/{appCode}/{datasetCode}/getOne','operations\x20describes\x20runtime\x20APIs','1321188vsGRJG','string','/api/{appCode}/{datasetCode}/create','category','CLI\x20has\x20typed\x20`bff\x20detail`\x20and\x20`bff\x20exec`\x20commands\x20for\x20endpoint\x20scripts.','dataset_data_aggregate','dataset_data_create','title','7VlZGpc','/api/{appCode}/{datasetCode}/aggregate','3bsOCat','lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27','custom_sql_execute','result\x20rows\x20contain\x20aggregate\x20aliases','keyword','summary','read','api-doc','None','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.','where\x20filters\x20before\x20aggregation','code','条件过滤查询数据','join','{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','Current\x20app\x20code','获取应用下可调用的\x20BF\x20函数列表','Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.','filter','find','dataset_list','{\x22id\x22:123}','dataset_detail','Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset','创建数据','method','已经确认目标\x20BF\x20的\x20scriptName,且需要实际调用该\x20ENDPOINT\x20脚本完成业务操作时使用','##\x20Filter\x20dataset\x20data','2055608nPxcKv','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.','{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:5}\x27','lovrabet\x20bff\x20detail\x20--id\x20<scriptId>\x20--appcode\x20<appCode>','detail','730CwPxrl','dataset_data_get_one','{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','Returns\x20one\x20matching\x20business\x20record','3138300bONZNM','9894CuggZh','需要携带\x20where、orderBy、分页等条件读取业务数据时使用','Aggregate\x20dataset\x20data','dataset','If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.','path','whenToUse','Execute\x20custom\x20SQL','Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result','GET','lovrabet\x20data\x20aggregate\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}]}\x27','Create\x20dataset\x20record','appCode','Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.','需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用','bf_function_list','{\x22fieldName\x22:\x22value\x22}','Execute\x20BF\x20endpoint\x20function','##\x20Aggregate\x20dataset\x20data','custom_sql','11ccGFba','POST','/api/endpoint/{appCode}/{scriptName}','执行自定义\x20SQL','List\x20available\x20runtime\x20API\x20documentation\x20entries','dataset_data_filter','2429650DdYrYH','##\x20Dataset\x20detail','str','List\x20BF\x20endpoint\x20functions','lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress','bf_execute','需要向指定数据集新增一条业务数据时使用','trim','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27','7doWHyV','Show\x20runtime\x20API\x20documentation\x20by\x20code','toLowerCase','Get\x20one\x20dataset\x20record','Returns\x20script\x20business\x20payload','Filter\x20dataset\x20data','Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.','datasetCode','聚合查询数据集数据','需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','查询单条数据','32-character\x20dataset\x20code','tableData\x20contains\x20dataset\x20id/code/name','{\x22aggregate\x22:[{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','11642rjEwPG','##\x20List\x20BF\x20endpoint\x20functions\x0a\x0aDiscover\x20executable\x20endpoint\x20functions.','需要按数据集\x20code\x20获取字段、表信息或操作定义时使用','List\x20datasets','This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.','获取数据集详情','##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.','map','API\x20doc\x20code\x20not\x20found:\x20','includes','list','##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.','##\x20List\x20datasets','282372eOLFxN'];a1_0xef8f=function(){return _0x3bc777;};return a1_0xef8f();}export function getApiDocDetail(_0x530292){const _0x2fab21=a1_0x3d458c,_0x5e8c72=DOCS[_0x2fab21(0x132)](_0x2db1ea=>_0x2db1ea[_0x2fab21(0x19d)]===_0x530292);if(!_0x5e8c72)throw CliErrors['validation'](_0x2fab21(0x180)+_0x530292);return{..._0x5e8c72};}const apiDocList={'service':a1_0x3d458c(0x199),'command':a1_0x3d458c(0x182),'description':a1_0x3d458c(0x15e),'risk':a1_0x3d458c(0x198),'requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0x2cbac0){const _0x22dff6=a1_0x3d458c,_0x32576a=listApiDocEntries({'category':_0x2cbac0[_0x22dff6(0x162)](_0x22dff6(0x18b)),'keyword':_0x2cbac0['str'](_0x22dff6(0x196))});return{'ok':!![],'data':{'total':_0x32576a['length'],'items':_0x32576a}};}},apiDocDetail={'service':'api-doc','command':a1_0x3d458c(0x140),'description':a1_0x3d458c(0x16a),'risk':a1_0x3d458c(0x198),'requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0x284427){const _0x4ae708=a1_0x3d458c;return{'ok':!![],'data':getApiDocDetail(_0x284427[_0x4ae708(0x162)](_0x4ae708(0x19d)))};}};export const apiDocDefinitions=[apiDocList,apiDocDetail];
1
+ const a1_0xb5d83b=a1_0x4587;(function(_0x1c2b52,_0x1f8e15){const _0x29e015=a1_0x4587,_0x4643b1=_0x1c2b52();while(!![]){try{const _0x291c14=parseInt(_0x29e015(0x21e))/0x1*(-parseInt(_0x29e015(0x1bc))/0x2)+-parseInt(_0x29e015(0x1eb))/0x3+-parseInt(_0x29e015(0x1ce))/0x4+-parseInt(_0x29e015(0x1cc))/0x5+-parseInt(_0x29e015(0x1db))/0x6*(-parseInt(_0x29e015(0x1c6))/0x7)+-parseInt(_0x29e015(0x1c3))/0x8*(-parseInt(_0x29e015(0x210))/0x9)+-parseInt(_0x29e015(0x1ff))/0xa*(-parseInt(_0x29e015(0x1c5))/0xb);if(_0x291c14===_0x1f8e15)break;else _0x4643b1['push'](_0x4643b1['shift']());}catch(_0x48888a){_0x4643b1['push'](_0x4643b1['shift']());}}}(a1_0x2e49,0xb24b7));function a1_0x4587(_0x30888e,_0x902cee){_0x30888e=_0x30888e-0x1b9;const _0x2e4957=a1_0x2e49();let _0x4587c0=_0x2e4957[_0x30888e];return _0x4587c0;}import{CliErrors}from'../../errors.js';const CATEGORY_FLAG={'name':a1_0xb5d83b(0x22f),'type':a1_0xb5d83b(0x1e8),'description':a1_0xb5d83b(0x21a)},KEYWORD_FLAG={'name':'keyword','type':'string','description':'Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text'},DOC_CODE_FLAG={'name':a1_0xb5d83b(0x22c),'type':a1_0xb5d83b(0x1e8),'required':!![],'description':a1_0xb5d83b(0x1fe)},DOCS=[{'code':'dataset_list','category':'dataset','title':'List\x20datasets','method':a1_0xb5d83b(0x1ee),'path':a1_0xb5d83b(0x1d2),'summary':'分页获取数据集列表','whenToUse':a1_0xb5d83b(0x1e6),'pathParams':[],'queryParams':[],'bodySchema':a1_0xb5d83b(0x1dd),'responseHighlights':['tableData\x20contains\x20dataset\x20id/code/name',a1_0xb5d83b(0x21b)],'examples':[a1_0xb5d83b(0x227)],'notes':[a1_0xb5d83b(0x221)],'markdown':['##\x20List\x20datasets','','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.'][a1_0xb5d83b(0x1d9)]('\x0a')},{'code':a1_0xb5d83b(0x228),'category':a1_0xb5d83b(0x1da),'title':a1_0xb5d83b(0x201),'method':a1_0xb5d83b(0x1dc),'path':'/api/dataset/getOneByCode?code={datasetCode}','summary':a1_0xb5d83b(0x20c),'whenToUse':'需要按数据集\x20code\x20获取字段、表信息或操作定义时使用','pathParams':[],'queryParams':[{'name':'code','description':a1_0xb5d83b(0x211)}],'bodySchema':a1_0xb5d83b(0x1fc),'responseHighlights':['fields/properties\x20describe\x20data\x20shape',a1_0xb5d83b(0x219)],'examples':['lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>'],'notes':['If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.'],'markdown':['##\x20Dataset\x20detail','',a1_0xb5d83b(0x1cb)]['join']('\x0a')},{'code':'dataset_data_filter','category':a1_0xb5d83b(0x1da),'title':a1_0xb5d83b(0x217),'method':'POST','path':a1_0xb5d83b(0x1d6),'summary':a1_0xb5d83b(0x1c2),'whenToUse':a1_0xb5d83b(0x1be),'pathParams':[{'name':a1_0xb5d83b(0x22b),'description':a1_0xb5d83b(0x1e9)},{'name':a1_0xb5d83b(0x205),'description':a1_0xb5d83b(0x211)}],'queryParams':[],'bodySchema':a1_0xb5d83b(0x1d3),'responseHighlights':[a1_0xb5d83b(0x218),a1_0xb5d83b(0x1fd)],'examples':[a1_0xb5d83b(0x1d5)],'notes':[a1_0xb5d83b(0x1bd)],'markdown':[a1_0xb5d83b(0x1bb),'',a1_0xb5d83b(0x1f6)][a1_0xb5d83b(0x1d9)]('\x0a')},{'code':a1_0xb5d83b(0x1ba),'category':a1_0xb5d83b(0x1da),'title':a1_0xb5d83b(0x20d),'method':'POST','path':a1_0xb5d83b(0x216),'summary':a1_0xb5d83b(0x1ef),'whenToUse':a1_0xb5d83b(0x1c7),'pathParams':[{'name':a1_0xb5d83b(0x22b),'description':a1_0xb5d83b(0x1e9)},{'name':a1_0xb5d83b(0x205),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':a1_0xb5d83b(0x20a),'responseHighlights':[a1_0xb5d83b(0x222),'where\x20filters\x20before\x20aggregation'],'examples':['lovrabet\x20data\x20aggregate\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22aggregate\x22:[{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}]}\x27'],'notes':[a1_0xb5d83b(0x22e)],'markdown':[a1_0xb5d83b(0x229),'',a1_0xb5d83b(0x1e4)]['join']('\x0a')},{'code':a1_0xb5d83b(0x1d1),'category':a1_0xb5d83b(0x1da),'title':a1_0xb5d83b(0x1f4),'method':a1_0xb5d83b(0x1ee),'path':a1_0xb5d83b(0x204),'summary':a1_0xb5d83b(0x1fb),'whenToUse':'已经知道记录\x20id,需要按数据集读取单条业务数据时使用','pathParams':[{'name':'appCode','description':a1_0xb5d83b(0x1e9)},{'name':a1_0xb5d83b(0x205),'description':a1_0xb5d83b(0x211)}],'queryParams':[],'bodySchema':a1_0xb5d83b(0x1f3),'responseHighlights':[a1_0xb5d83b(0x1e7)],'examples':[a1_0xb5d83b(0x1ea)],'notes':[a1_0xb5d83b(0x1fa)],'markdown':a1_0xb5d83b(0x22a)},{'code':a1_0xb5d83b(0x1b9),'category':a1_0xb5d83b(0x1da),'title':a1_0xb5d83b(0x1bf),'method':a1_0xb5d83b(0x1ee),'path':a1_0xb5d83b(0x1f9),'summary':a1_0xb5d83b(0x203),'whenToUse':a1_0xb5d83b(0x223),'pathParams':[{'name':a1_0xb5d83b(0x22b),'description':a1_0xb5d83b(0x1e9)},{'name':a1_0xb5d83b(0x205),'description':a1_0xb5d83b(0x211)}],'queryParams':[],'bodySchema':a1_0xb5d83b(0x1c0),'responseHighlights':['Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result'],'examples':[a1_0xb5d83b(0x215)],'notes':[a1_0xb5d83b(0x207)],'markdown':'##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.'},{'code':a1_0xb5d83b(0x1f0),'category':'bf','title':a1_0xb5d83b(0x213),'method':a1_0xb5d83b(0x1dc),'path':'/api/endpoint/{appCode}/functions','summary':'获取应用下可调用的\x20BF\x20函数列表','whenToUse':a1_0xb5d83b(0x20e),'pathParams':[{'name':a1_0xb5d83b(0x22b),'description':a1_0xb5d83b(0x1e9)}],'queryParams':[],'bodySchema':'None','responseHighlights':['Returns\x20endpoint\x20functionName/id/description'],'examples':['lovrabet\x20bff\x20detail\x20--id\x20<scriptId>\x20--appcode\x20<appCode>'],'notes':[a1_0xb5d83b(0x209)],'markdown':a1_0xb5d83b(0x1e1)},{'code':'bf_execute','category':'bf','title':a1_0xb5d83b(0x1c4),'method':'POST','path':a1_0xb5d83b(0x1d4),'summary':a1_0xb5d83b(0x224),'whenToUse':a1_0xb5d83b(0x1c1),'pathParams':[{'name':a1_0xb5d83b(0x22b),'description':'Current\x20app\x20code'},{'name':a1_0xb5d83b(0x225),'description':'Endpoint\x20function\x20name'}],'queryParams':[],'bodySchema':a1_0xb5d83b(0x202),'responseHighlights':[a1_0xb5d83b(0x1e5)],'examples':[a1_0xb5d83b(0x212)],'notes':[a1_0xb5d83b(0x1f2)],'markdown':a1_0xb5d83b(0x206)},{'code':a1_0xb5d83b(0x1ca),'category':a1_0xb5d83b(0x1f5),'title':a1_0xb5d83b(0x214),'method':a1_0xb5d83b(0x1ee),'path':'/api/custom/executeSql','summary':a1_0xb5d83b(0x1e2),'whenToUse':a1_0xb5d83b(0x1df),'pathParams':[],'queryParams':[],'bodySchema':a1_0xb5d83b(0x1d8),'responseHighlights':[a1_0xb5d83b(0x1f8)],'examples':[a1_0xb5d83b(0x220)],'notes':[a1_0xb5d83b(0x1cf)],'markdown':a1_0xb5d83b(0x200)}];function entrySummary(_0x443d2d){const _0x2f4786=a1_0xb5d83b;return{'code':_0x443d2d[_0x2f4786(0x22c)],'category':_0x443d2d[_0x2f4786(0x22f)],'method':_0x443d2d[_0x2f4786(0x21c)],'path':_0x443d2d['path'],'summary':_0x443d2d[_0x2f4786(0x1ec)],'whenToUse':_0x443d2d[_0x2f4786(0x208)]};}export function listApiDocEntries(_0x2291b2={}){const _0x265407=a1_0xb5d83b,_0x3c19b9=String(_0x2291b2[_0x265407(0x22f)]||'')['trim'](),_0x29b874=String(_0x2291b2[_0x265407(0x1c9)]||'')[_0x265407(0x21d)]()['toLowerCase']();return DOCS[_0x265407(0x22d)](_0x419b39=>{const _0x2f5a89=_0x265407;if(_0x3c19b9&&_0x419b39['category']!==_0x3c19b9)return![];if(!_0x29b874)return!![];return[_0x419b39[_0x2f5a89(0x22c)],_0x419b39['category'],_0x419b39[_0x2f5a89(0x21c)],_0x419b39[_0x2f5a89(0x20f)],_0x419b39[_0x2f5a89(0x1ec)],_0x419b39[_0x2f5a89(0x208)],_0x419b39[_0x2f5a89(0x1ed)]]['join']('\x20')[_0x2f5a89(0x1cd)]()[_0x2f5a89(0x226)](_0x29b874);})[_0x265407(0x1de)](entrySummary);}export function getApiDocDetail(_0x109311){const _0x26b272=a1_0xb5d83b,_0x116c57=DOCS[_0x26b272(0x1c8)](_0x489da0=>_0x489da0[_0x26b272(0x22c)]===_0x109311);if(!_0x116c57)throw CliErrors[_0x26b272(0x1e3)](_0x26b272(0x1d7)+_0x109311);return{..._0x116c57};}const apiDocList={'service':a1_0xb5d83b(0x1f7),'command':'list','description':a1_0xb5d83b(0x1f1),'risk':a1_0xb5d83b(0x20b),'requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0x41f823){const _0x22215a=a1_0xb5d83b,_0x1bda94=listApiDocEntries({'category':_0x41f823[_0x22215a(0x1e0)](_0x22215a(0x22f)),'keyword':_0x41f823[_0x22215a(0x1e0)]('keyword')});return{'ok':!![],'data':{'total':_0x1bda94[_0x22215a(0x1d0)],'items':_0x1bda94}};}},apiDocDetail={'service':a1_0xb5d83b(0x1f7),'command':a1_0xb5d83b(0x21f),'description':'Show\x20runtime\x20API\x20documentation\x20by\x20code','risk':a1_0xb5d83b(0x20b),'requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0x38c86f){const _0x8a334f=a1_0xb5d83b;return{'ok':!![],'data':getApiDocDetail(_0x38c86f[_0x8a334f(0x1e0)](_0x8a334f(0x22c)))};}};export const apiDocDefinitions=[apiDocList,apiDocDetail];function a1_0x2e49(){const _0x51e6c3=['30UJbxwA','##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.','Dataset\x20detail','{\x22param\x22:\x22value\x22}','创建数据','/api/{appCode}/{datasetCode}/getOne','datasetCode','##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.','This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.','whenToUse','CLI\x20has\x20typed\x20`bff\x20detail`\x20and\x20`bff\x20exec`\x20commands\x20for\x20endpoint\x20scripts.','{\x22aggregate\x22:[{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','read','获取数据集详情','Aggregate\x20dataset\x20data','需要先确认当前应用有哪些可执行的\x20BF/ENDPOINT\x20函数,以及收敛可用\x20scriptName\x20时使用','path','3402gPLrJi','32-character\x20dataset\x20code','lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27','List\x20BF\x20endpoint\x20functions','Execute\x20custom\x20SQL','lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27','/api/{appCode}/{datasetCode}/aggregate','Filter\x20dataset\x20data','tableData\x20contains\x20records','operations\x20describes\x20runtime\x20APIs','Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset','paging.totalCount\x20gives\x20total\x20rows','method','trim','102037hzDRUi','detail','lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27','CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.','result\x20rows\x20contain\x20aggregate\x20aliases','需要向指定数据集新增一条业务数据时使用','执行指定\x20BF\x20函数','scriptName','includes','lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress','dataset_detail','##\x20Aggregate\x20dataset\x20data','##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.','appCode','code','filter','Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.','category','dataset_data_create','dataset_data_aggregate','##\x20Filter\x20dataset\x20data','20pCJiMv','Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.','需要携带\x20where、orderBy、分页等条件读取业务数据时使用','Create\x20dataset\x20record','{\x22fieldName\x22:\x22value\x22}','已经确认目标\x20BF\x20的\x20scriptName,且需要实际调用该\x20ENDPOINT\x20脚本完成业务操作时使用','条件过滤查询数据','15872HxCkXc','Execute\x20BF\x20endpoint\x20function','8570782sNYISz','1418438YowQiV','需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用','find','keyword','custom_sql_execute','Inspect\x20field\x20names\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.','2088685ovFJrn','toLowerCase','3679588ACiaLI','Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.','length','dataset_data_get_one','/api/dataset/get-dataset-list-by-app-code','{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','/api/endpoint/{appCode}/{scriptName}','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:5}\x27','/api/{appCode}/{datasetCode}/filter','API\x20doc\x20code\x20not\x20found:\x20','{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','join','dataset','42NWcORz','GET','{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','map','已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','str','##\x20List\x20BF\x20endpoint\x20functions\x0a\x0aDiscover\x20executable\x20endpoint\x20functions.','执行自定义\x20SQL','validation','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.','Returns\x20script\x20business\x20payload','需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','Returns\x20one\x20matching\x20business\x20record','string','Current\x20app\x20code','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27','4252731SXyfzW','summary','title','POST','聚合查询数据集数据','bf_function_list','List\x20available\x20runtime\x20API\x20documentation\x20entries','Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.','{\x22id\x22:123}','Get\x20one\x20dataset\x20record','custom_sql','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.','api-doc','Returns\x20SQL\x20execution\x20payload','/api/{appCode}/{datasetCode}/create','Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.','查询单条数据','None','paging\x20contains\x20pagination','API\x20doc\x20code,\x20for\x20example\x20dataset_list'];a1_0x2e49=function(){return _0x51e6c3;};return a1_0x2e49();}
@@ -1 +1 @@
1
- (function(_0x106309,_0x457814){const _0x503725=a2_0x71fd,_0x2a1308=_0x106309();while(!![]){try{const _0xe8f464=parseInt(_0x503725(0x1c2))/0x1*(parseInt(_0x503725(0x1c7))/0x2)+parseInt(_0x503725(0x1bc))/0x3+parseInt(_0x503725(0x1b0))/0x4+parseInt(_0x503725(0x1b1))/0x5+parseInt(_0x503725(0x1c4))/0x6+-parseInt(_0x503725(0x1c8))/0x7*(-parseInt(_0x503725(0x1b5))/0x8)+parseInt(_0x503725(0x1cd))/0x9*(-parseInt(_0x503725(0x1b8))/0xa);if(_0xe8f464===_0x457814)break;else _0x2a1308['push'](_0x2a1308['shift']());}catch(_0x2c5f08){_0x2a1308['push'](_0x2a1308['shift']());}}}(a2_0x1034,0x8dacd));function a2_0x1034(){const _0xc0af4c=['645152kerkCX','1908550WyFWhf','EXDEV','cache','.tmp','5313904FvpxDB','sha256','items','430AkhavX','hex','appName','isArray','146832NFCUgP','trim','EACCES','homeDirName','stringify','unknown','33TYSFAH','slice','5280546FUdmUh','update','utf8','13376JXkwiZ','7sfgtOl','find','code','EPERM','appCode','371862TLmoGQ'];a2_0x1034=function(){return _0xc0af4c;};return a2_0x1034();}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_0x71fd(_0x42d766,_0x22ab87){_0x42d766=_0x42d766-0x1b0;const _0x103427=a2_0x1034();let _0x71fd1f=_0x103427[_0x42d766];return _0x71fd1f;}export function fingerprintAccessKey(_0xd61eda){const _0x3209db=a2_0x71fd,_0x5a7860=_0xd61eda[_0x3209db(0x1bd)](),_0x51e3f2=_0x5a7860[_0x3209db(0x1c3)](-0x6)||_0x3209db(0x1c1),_0x2b5ec3=createHash(_0x3209db(0x1b6))[_0x3209db(0x1c5)](_0x5a7860)['digest'](_0x3209db(0x1b9))[_0x3209db(0x1c3)](0x0,0xc);return'ak_'+_0x51e3f2+'_'+_0x2b5ec3;}export function getAppCacheFilePath(_0x3dd4ac,_0x8107e3){const _0x58169b=a2_0x71fd;return resolve(homedir(),PRODUCT_CONFIG[_0x58169b(0x1bf)],_0x58169b(0x1b3),_0x3dd4ac,fingerprintAccessKey(_0x8107e3),'my-apps.json');}export function readCachedAppList(_0x5856ed,_0x253666){const _0x52db1f=a2_0x71fd;if(!_0x253666?.['trim']())return null;const _0x289b96=getAppCacheFilePath(_0x5856ed,_0x253666);if(!existsSync(_0x289b96))return null;try{const _0x58c057=readFileSync(_0x289b96,'utf8');if(!_0x58c057[_0x52db1f(0x1bd)]())return null;const _0x2ed4ef=JSON['parse'](_0x58c057);if(!Array[_0x52db1f(0x1bb)](_0x2ed4ef[_0x52db1f(0x1b7)]))return null;return _0x2ed4ef;}catch{return null;}}export function writeCachedAppList(_0x35f062,_0x1ba2a2,_0x208754){const _0x9b7b2c=a2_0x71fd,_0x2eefdd=getAppCacheFilePath(_0x35f062,_0x1ba2a2),_0x4a60a8=dirname(_0x2eefdd);!existsSync(_0x4a60a8)&&mkdirSync(_0x4a60a8,{'recursive':!![]});const _0x354d88=_0x2eefdd+_0x9b7b2c(0x1b4);try{writeFileSync(_0x354d88,JSON['stringify'](_0x208754,null,0x2)+'\x0a',{'encoding':_0x9b7b2c(0x1c6),'mode':0x180});try{renameSync(_0x354d88,_0x2eefdd);}catch(_0x107423){if(_0x107423[_0x9b7b2c(0x1ca)]===_0x9b7b2c(0x1cb)||_0x107423['code']===_0x9b7b2c(0x1b2)||_0x107423['code']===_0x9b7b2c(0x1be)){writeFileSync(_0x2eefdd,JSON[_0x9b7b2c(0x1c0)](_0x208754,null,0x2)+'\x0a',{'encoding':_0x9b7b2c(0x1c6)});try{unlinkSync(_0x354d88);}catch{}}else throw _0x107423;}}catch(_0x5916c1){try{unlinkSync(_0x354d88);}catch{}throw _0x5916c1;}return _0x2eefdd;}export function resolveCachedAppCode(_0x11e6e7,_0x1e895f,_0x228491){const _0x17a9a0=a2_0x71fd;if(!_0x11e6e7)return undefined;const _0xb08539=readCachedAppList(_0x1e895f,_0x228491),_0x1e1c2a=_0xb08539?.[_0x17a9a0(0x1b7)][_0x17a9a0(0x1c9)](_0x3b1ea6=>_0x3b1ea6[_0x17a9a0(0x1ba)]===_0x11e6e7);return _0x1e1c2a?.[_0x17a9a0(0x1cc)]?.[_0x17a9a0(0x1bd)]()||undefined;}
1
+ (function(_0x500e52,_0x552aed){const _0x358e63=a2_0x476a,_0xdb5490=_0x500e52();while(!![]){try{const _0x17bad5=-parseInt(_0x358e63(0xfb))/0x1+parseInt(_0x358e63(0x109))/0x2*(parseInt(_0x358e63(0xfe))/0x3)+-parseInt(_0x358e63(0x108))/0x4+parseInt(_0x358e63(0x110))/0x5+-parseInt(_0x358e63(0x103))/0x6+parseInt(_0x358e63(0x111))/0x7*(parseInt(_0x358e63(0x10a))/0x8)+parseInt(_0x358e63(0x107))/0x9;if(_0x17bad5===_0x552aed)break;else _0xdb5490['push'](_0xdb5490['shift']());}catch(_0x45b89a){_0xdb5490['push'](_0xdb5490['shift']());}}}(a2_0x4cd8,0x93170));import{createHash}from'node:crypto';function a2_0x4cd8(){const _0x25030c=['4666505mFjpqx','5271VIEeBU','find','my-apps.json','utf8','.tmp','EPERM','287687qhdPOq','slice','unknown','700251ujVCZL','parse','hex','update','homeDirName','3400272xCDxbX','EACCES','appCode','appName','3572730jKYbIy','2189204dPGxxU','4GnotED','2200CDkBTY','code','digest','stringify','items','trim'];a2_0x4cd8=function(){return _0x25030c;};return a2_0x4cd8();}import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';import{dirname,resolve}from'node:path';function a2_0x476a(_0x51cec1,_0x4383ce){_0x51cec1=_0x51cec1-0xfb;const _0x4cd865=a2_0x4cd8();let _0x476a60=_0x4cd865[_0x51cec1];return _0x476a60;}import{PRODUCT_CONFIG}from'../../constant/product.js';export function fingerprintAccessKey(_0x184985){const _0x90c290=a2_0x476a,_0x1bd325=_0x184985['trim'](),_0x4d2573=_0x1bd325[_0x90c290(0xfc)](-0x6)||_0x90c290(0xfd),_0x342f22=createHash('sha256')[_0x90c290(0x101)](_0x1bd325)[_0x90c290(0x10c)](_0x90c290(0x100))[_0x90c290(0xfc)](0x0,0xc);return'ak_'+_0x4d2573+'_'+_0x342f22;}export function getAppCacheFilePath(_0x1d36d1,_0x39c18b){const _0x291434=a2_0x476a;return resolve(homedir(),PRODUCT_CONFIG[_0x291434(0x102)],'cache',_0x1d36d1,fingerprintAccessKey(_0x39c18b),_0x291434(0x113));}export function readCachedAppList(_0x4650b4,_0x2841d9){const _0xd4345b=a2_0x476a;if(!_0x2841d9?.[_0xd4345b(0x10f)]())return null;const _0x268294=getAppCacheFilePath(_0x4650b4,_0x2841d9);if(!existsSync(_0x268294))return null;try{const _0x21b15e=readFileSync(_0x268294,_0xd4345b(0x114));if(!_0x21b15e[_0xd4345b(0x10f)]())return null;const _0x1b21e7=JSON[_0xd4345b(0xff)](_0x21b15e);if(!Array['isArray'](_0x1b21e7[_0xd4345b(0x10e)]))return null;return _0x1b21e7;}catch{return null;}}export function writeCachedAppList(_0x589107,_0x52d8f8,_0x35b41a){const _0x3cb0e9=a2_0x476a,_0x920779=getAppCacheFilePath(_0x589107,_0x52d8f8),_0x9d7dfc=dirname(_0x920779);!existsSync(_0x9d7dfc)&&mkdirSync(_0x9d7dfc,{'recursive':!![]});const _0x3030bd=_0x920779+_0x3cb0e9(0x115);try{writeFileSync(_0x3030bd,JSON[_0x3cb0e9(0x10d)](_0x35b41a,null,0x2)+'\x0a',{'encoding':_0x3cb0e9(0x114),'mode':0x180});try{renameSync(_0x3030bd,_0x920779);}catch(_0x5a73df){if(_0x5a73df[_0x3cb0e9(0x10b)]===_0x3cb0e9(0x116)||_0x5a73df['code']==='EXDEV'||_0x5a73df['code']===_0x3cb0e9(0x104)){writeFileSync(_0x920779,JSON[_0x3cb0e9(0x10d)](_0x35b41a,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0x3030bd);}catch{}}else throw _0x5a73df;}}catch(_0x35b71e){try{unlinkSync(_0x3030bd);}catch{}throw _0x35b71e;}return _0x920779;}export function resolveCachedAppCode(_0x161afb,_0x187f5e,_0x1e930d){const _0x4bdcb2=a2_0x476a;if(!_0x161afb)return undefined;const _0x3d0caf=readCachedAppList(_0x187f5e,_0x1e930d),_0x426d7b=_0x3d0caf?.[_0x4bdcb2(0x10e)][_0x4bdcb2(0x112)](_0x392084=>_0x392084[_0x4bdcb2(0x106)]===_0x161afb);return _0x426d7b?.[_0x4bdcb2(0x105)]?.['trim']()||undefined;}
@@ -1 +1 @@
1
- function a3_0x243d(){const _0xa0c460=['../../context.js','Target\x20environment\x20(default:\x20current\x20env)','bool','appName','remote','read','304ASaxqI','find','appPublishStatus','7680ppPfYz','cache','source','local','isCurrent','i18nInfo','trim','items','No\x20apps\x20found\x20on\x20the\x20platform.','entries','list','mergedCli','Initialize\x20','from','no-cache','Remote\x20app\x20name\x20to\x20activate','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','Use\x20global\x20config\x20scope','string','No\x20cached\x20apps\x20found.','length','app','1282164uaQtak','247514kzmypm','2578555ImSZXK','production','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','nonInteractive','envName','.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.','\x20app(s)\x20for\x20env=\x22','Available\x20remote\x20apps:\x20','Set\x20the\x20fallback\x20app\x20candidate','pull','Default\x20app\x20candidate\x20set\x20to\x20\x22','5220TFpuBv','fetchedAt','3098528RbKWzs','env','Usage:\x20','Read\x20from\x20local\x20cache\x20only','accessKey','config','51xeFNoU','appCode','Filter\x20by\x20environment\x20(default:\x20current\x20env)','name','filter','join','map','38872hsrfhR','cachePath','Missing\x20app\x20name.','validation','write','App\x20\x22','global','9455htcryN','use','import','type','boolean','str','../../commands/app/remote-source.js','init','Refreshed\x20app\x20cache\x20with\x20','\x20cached\x20app(s)\x20for\x20env=\x22','args','Use\x20`','../../commands/app/cache.js','\x22\x20not\x20found.','langs','project-default','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','globalPath','projectPath','appcode','\x20app\x20use\x20<name>\x20[--global]','defaultApp','raw','\x20config\x20file'];a3_0x243d=function(){return _0xa0c460;};return a3_0x243d();}const a3_0x3379ec=a3_0x522b;(function(_0x2c13c0,_0x413dc2){const _0x3379b9=a3_0x522b,_0x584660=_0x2c13c0();while(!![]){try{const _0x361db0=-parseInt(_0x3379b9(0x1e6))/0x1+-parseInt(_0x3379b9(0x201))/0x2*(-parseInt(_0x3379b9(0x1fa))/0x3)+-parseInt(_0x3379b9(0x1cc))/0x4*(-parseInt(_0x3379b9(0x208))/0x5)+-parseInt(_0x3379b9(0x1e5))/0x6+parseInt(_0x3379b9(0x1e7))/0x7+parseInt(_0x3379b9(0x1f4))/0x8+parseInt(_0x3379b9(0x1f2))/0x9*(-parseInt(_0x3379b9(0x1cf))/0xa);if(_0x361db0===_0x413dc2)break;else _0x584660['push'](_0x584660['shift']());}catch(_0x12e515){_0x584660['push'](_0x584660['shift']());}}}(a3_0x243d,0x4ee59));import{CliErrors}from'../../errors.js';import{PRODUCT_CONFIG}from'../../constant/product.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';function a3_0x522b(_0x195fe0,_0x1327ad){_0x195fe0=_0x195fe0-0x1c9;const _0x243db0=a3_0x243d();let _0x522b43=_0x243db0[_0x195fe0];return _0x522b43;}import{CLI_BIN_NAME,readConfig,writeConfig,scopeLabel,enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';const GLOBAL_FLAG={'name':a3_0x3379ec(0x207),'type':a3_0x3379ec(0x20c),'description':a3_0x3379ec(0x1e0),'default':![]};function collectFlags(_0x1e753d,_0x231d26){const _0x352443=a3_0x3379ec,_0x44a640={};for(const _0x4206bd of _0x231d26){const _0xdac173=_0x4206bd[_0x352443(0x20b)]===_0x352443(0x20c)?_0x1e753d[_0x352443(0x222)](_0x4206bd[_0x352443(0x1fd)]):_0x1e753d[_0x352443(0x20d)](_0x4206bd[_0x352443(0x1fd)]);if(_0xdac173!==''&&_0xdac173!==![])_0x44a640[_0x4206bd[_0x352443(0x1fd)]]=_0xdac173;}if(_0x1e753d[_0x352443(0x1ea)])_0x44a640[_0x352443(0x1ea)]=!![];return _0x44a640;}function normalizeLanguages(_0x36286a){const _0x552473=a3_0x3379ec;if(!Array['isArray'](_0x36286a))return[];return _0x36286a[_0x552473(0x1fe)](_0x263290=>typeof _0x263290===_0x552473(0x1e1))[_0x552473(0x200)](_0x2d5ee9=>_0x2d5ee9[_0x552473(0x1d5)]())[_0x552473(0x1fe)](Boolean);}function buildRemoteAppI18nFields(_0x1c5d6a){const _0x1d54e7=a3_0x3379ec,_0xb84c4f=normalizeLanguages(_0x1c5d6a[_0x1d54e7(0x1d4)]?.[_0x1d54e7(0x216)]);return{'enableI18n':typeof _0x1c5d6a['enableI18n']===_0x1d54e7(0x20c)?_0x1c5d6a['enableI18n']:null,'languages':_0xb84c4f,'i18nInfo':_0x1c5d6a[_0x1d54e7(0x1d4)]?{..._0x1c5d6a['i18nInfo'],'langs':_0xb84c4f['length']?_0xb84c4f:null}:null};}const initDef={'service':a3_0x3379ec(0x1e4),'command':a3_0x3379ec(0x20f),'description':a3_0x3379ec(0x1db)+PRODUCT_CONFIG['newConfigFileName']+a3_0x3379ec(0x21f),'risk':a3_0x3379ec(0x205),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x1af295){return await runInit(collectFlags(_0x1af295,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a3_0x3379ec(0x1e4),'command':a3_0x3379ec(0x1d9),'description':a3_0x3379ec(0x1df),'risk':a3_0x3379ec(0x1cb),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':'env','type':'string','description':a3_0x3379ec(0x1fc),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x3379ec(0x1d2),'type':a3_0x3379ec(0x20c),'description':'Read\x20app\x20list\x20from\x20local\x20cache\x20only','default':![]},{'name':a3_0x3379ec(0x1dd),'type':'boolean','description':a3_0x3379ec(0x218),'default':![]}],async 'execute'(_0x1ba028){const _0x312973=a3_0x3379ec,_0x2a18c2=_0x1ba028[_0x312973(0x20d)](_0x312973(0x1f5))||_0x1ba028['envName']||getEnv()||_0x312973(0x1e8),_0x4ea0e5=_0x1ba028[_0x312973(0x222)](_0x312973(0x1d2)),_0x14f836=_0x1ba028[_0x312973(0x222)](_0x312973(0x1dd)),{readRawConfigWithLayers:_0x36b150,resolveDefaultAppSource:_0x432aea,getLocalAppAliases:_0x27c3a8}=await import('../../context.js'),{getRemoteAppList:_0x5cc004}=await import('../../commands/app/remote-source.js'),{config:_0x243b01,layers:_0x3a00bc}=_0x36b150(),_0x238cd5=_0x432aea(_0x3a00bc),{defaultApp:_0x40217f}=_0x243b01,_0x103c49=await _0x5cc004({'env':_0x2a18c2,'accessKey':_0x1ba028[_0x312973(0x1f8)],'localOnly':_0x4ea0e5,'noCache':_0x14f836}),_0x649234=_0x103c49[_0x312973(0x1d6)][_0x312973(0x200)](_0x2d31b9=>{const _0x2ca0f5=_0x312973;return{'name':_0x2d31b9['appName'],'appcode':_0x2d31b9[_0x2ca0f5(0x1fb)],'named':!![],'definedIn':_0x2ca0f5(0x1ca),'isDefault':_0x2d31b9[_0x2ca0f5(0x1c9)]===_0x40217f,...buildAppProfileListFields(_0x2a18c2),...buildRemoteAppI18nFields(_0x2d31b9),'source':_0x103c49[_0x2ca0f5(0x1d1)],'owner':_0x2d31b9['appOwnerName']??null,'status':_0x2d31b9[_0x2ca0f5(0x1ce)]??null,'cachedAt':_0x103c49[_0x2ca0f5(0x1f3)]};}),_0x4ac3b1=_0x27c3a8(_0x243b01);let _0x19705c=0x0;for(const [_0x1590ca,_0x4fb85d]of Object[_0x312973(0x1d8)](_0x4ac3b1)){const _0x32bb77=typeof _0x4fb85d[_0x312973(0x21b)]===_0x312973(0x1e1)?_0x4fb85d['appcode'][_0x312973(0x1d5)]():'';if(!_0x32bb77)continue;_0x19705c+=0x1,_0x649234['push']({'name':_0x1590ca,'appcode':_0x32bb77,'named':!![],'definedIn':_0x312973(0x1d2),'isDefault':_0x1590ca===_0x40217f,...buildAppProfileListFields(_0x2a18c2),'source':_0x312973(0x1f9),'owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x649234,_0x1ba028[_0x312973(0x1da)]);if(_0x649234[_0x312973(0x1e3)]===0x0)return{'ok':!![],'data':[],'message':_0x103c49[_0x312973(0x1d1)]===_0x312973(0x1d0)?_0x312973(0x1e2):_0x312973(0x1d7)};const _0x139df4=_0x649234[_0x312973(0x1cd)](_0x3d2e3b=>_0x3d2e3b[_0x312973(0x1d3)]===!![]),_0x2ae555=_0x40217f??_0x139df4?.[_0x312973(0x1fd)]??null,_0x48c2cb={'env':_0x2a18c2,'source':_0x103c49[_0x312973(0x1d1)],'fetchedAt':_0x103c49[_0x312973(0x1f3)],'cachePath':_0x103c49[_0x312973(0x202)],'globalPath':_0x3a00bc[_0x312973(0x219)]??null,'projectPath':_0x3a00bc[_0x312973(0x21a)]??null,'defaultApp':_0x2ae555,'defaultAppSource':_0x40217f!=null?_0x238cd5:null,'localAliasCount':_0x19705c};return{'ok':!![],'data':{'items':_0x649234,'meta':_0x48c2cb}};}},pullDef={'service':a3_0x3379ec(0x1e4),'command':a3_0x3379ec(0x1f0),'description':a3_0x3379ec(0x1e9),'risk':'write','requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a3_0x3379ec(0x1f5),'type':'string','description':a3_0x3379ec(0x221),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x3379ec(0x1d2),'type':a3_0x3379ec(0x20c),'description':a3_0x3379ec(0x1f7),'default':![]},{'name':a3_0x3379ec(0x1dd),'type':'boolean','description':'Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','default':![]}],async 'execute'(_0x2b0ffa){const _0xd4d62e=a3_0x3379ec,_0x19512d=_0x2b0ffa[_0xd4d62e(0x20d)](_0xd4d62e(0x1f5))||_0x2b0ffa[_0xd4d62e(0x1eb)]||getEnv()||_0xd4d62e(0x1e8),_0x25698a=_0x2b0ffa['bool'](_0xd4d62e(0x1d2)),_0x439dba=_0x2b0ffa['bool'](_0xd4d62e(0x1dd)),{getRemoteAppList:_0x3063e}=await import(_0xd4d62e(0x20e)),_0x3e5d68=await _0x3063e({'env':_0x19512d,'accessKey':_0x2b0ffa[_0xd4d62e(0x1f8)],'localOnly':_0x25698a,'noCache':_0x439dba});return{'ok':!![],'data':{'total':_0x3e5d68[_0xd4d62e(0x1d6)]['length'],'env':_0x19512d,'source':_0x3e5d68[_0xd4d62e(0x1d1)],'fetchedAt':_0x3e5d68[_0xd4d62e(0x1f3)],'cachePath':_0x3e5d68[_0xd4d62e(0x202)]},'message':_0x3e5d68[_0xd4d62e(0x1d1)]===_0xd4d62e(0x1d0)?'Loaded\x20'+_0x3e5d68['items'][_0xd4d62e(0x1e3)]+_0xd4d62e(0x211)+_0x19512d+'\x22.':_0xd4d62e(0x210)+_0x3e5d68['items'][_0xd4d62e(0x1e3)]+_0xd4d62e(0x1ed)+_0x19512d+'\x22.'};}},useDef={'service':a3_0x3379ec(0x1e4),'command':a3_0x3379ec(0x209),'description':a3_0x3379ec(0x1ef),'risk':a3_0x3379ec(0x205),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a3_0x3379ec(0x1fd),'description':a3_0x3379ec(0x1de),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x1c6fc0){const _0x27e760=a3_0x3379ec;if(!_0x1c6fc0[_0x27e760(0x212)][0x0])throw CliErrors[_0x27e760(0x204)](_0x27e760(0x203),_0x27e760(0x1f6)+CLI_BIN_NAME+_0x27e760(0x21c));},async 'execute'(_0x48c368){const _0x1453d9=a3_0x3379ec,_0x19cba0=_0x48c368['args'][0x0];if(!_0x19cba0)throw CliErrors[_0x1453d9(0x204)]('Missing\x20app\x20name.',_0x1453d9(0x1f6)+CLI_BIN_NAME+_0x1453d9(0x21c));const {buildConfigFromFlags:_0x150fac,resolveLocalAppAliasCode:_0x5026d5}=await import(_0x1453d9(0x220)),{readCachedAppList:_0x43fbd6}=await import(_0x1453d9(0x214)),_0x2eae14=_0x48c368[_0x1453d9(0x20d)](_0x1453d9(0x1f5)),_0x31a3e6=_0x150fac(_0x2eae14?{'env':_0x2eae14}:{}),_0x260ff7=_0x43fbd6(_0x31a3e6[_0x1453d9(0x1f5)],_0x31a3e6[_0x1453d9(0x1f8)]),_0x2322ce=_0x260ff7?.['items']['find'](_0x58ce7a=>_0x58ce7a['appName']===_0x19cba0),_0x5dd5f4=_0x5026d5(_0x31a3e6[_0x1453d9(0x21e)]??{},_0x19cba0);if(!_0x2322ce&&!_0x5dd5f4&&_0x31a3e6[_0x1453d9(0x21d)]!==_0x19cba0){const _0x3de21e=[..._0x260ff7?.[_0x1453d9(0x1d6)][_0x1453d9(0x200)](_0x57924f=>_0x57924f['appName'])??[]],_0x2f9759=_0x3de21e[_0x1453d9(0x1e3)]===0x0?_0x1453d9(0x213)+CLI_BIN_NAME+'\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.'+_0x19cba0+'.appcode\x20to\x20.lovrabet.json.':_0x1453d9(0x1ee)+Array[_0x1453d9(0x1dc)](new Set(_0x3de21e))[_0x1453d9(0x1ff)](',\x20')+_0x1453d9(0x1ec);throw CliErrors['validation'](_0x1453d9(0x206)+_0x19cba0+_0x1453d9(0x215),_0x2f9759);}const _0x34f252=_0x48c368[_0x1453d9(0x222)]('global');let _0x7a3871;if(_0x34f252)_0x7a3871={'global':!![]};else{const {isInProject:_0x290ce6}=await import(_0x1453d9(0x220)),_0x25d0cb=_0x290ce6();_0x7a3871=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0x1453d9(0x217),'inProject':_0x25d0cb}));}const _0x2a2094=readConfig(_0x7a3871);return _0x2a2094[_0x1453d9(0x21d)]=_0x19cba0,writeConfig(_0x2a2094,_0x7a3871),{'ok':!![],'message':_0x1453d9(0x1f1)+_0x19cba0+'\x22'+scopeLabel(_0x7a3871)+'.'};}},importDef={'service':'app','command':a3_0x3379ec(0x20a),'description':'Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','risk':a3_0x3379ec(0x205),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x4c72bb){return await runInitImport(collectFlags(_0x4c72bb,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
1
+ const a3_0x4b1f40=a3_0x3a5b;(function(_0x390a8a,_0x59ea39){const _0x105b6d=a3_0x3a5b,_0x2d8a1b=_0x390a8a();while(!![]){try{const _0x14b7a1=-parseInt(_0x105b6d(0xbe))/0x1+-parseInt(_0x105b6d(0xd9))/0x2+-parseInt(_0x105b6d(0x95))/0x3+-parseInt(_0x105b6d(0xaf))/0x4+parseInt(_0x105b6d(0xa6))/0x5+parseInt(_0x105b6d(0xb1))/0x6*(-parseInt(_0x105b6d(0x98))/0x7)+-parseInt(_0x105b6d(0xd3))/0x8*(-parseInt(_0x105b6d(0xd5))/0x9);if(_0x14b7a1===_0x59ea39)break;else _0x2d8a1b['push'](_0x2d8a1b['shift']());}catch(_0x40e804){_0x2d8a1b['push'](_0x2d8a1b['shift']());}}}(a3_0x20f4,0x99673));import{CliErrors}from'../../errors.js';import{PRODUCT_CONFIG}from'../../constant/product.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';function a3_0x20f4(){const _0x391062=['Missing\x20app\x20name.','init','local','config','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','nonInteractive','../../context.js','1173676LsgyMV','Usage:\x20','60366mSiITx','fetchedAt','pull','Filter\x20by\x20environment\x20(default:\x20current\x20env)','Target\x20environment\x20(default:\x20current\x20env)','write','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','validation','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','../../commands/app/remote-source.js','items','\x20cached\x20app(s)\x20for\x20env=\x22','Loaded\x20','523934WDTkmE','name','read','\x22\x20not\x20found.','Read\x20from\x20local\x20cache\x20only','Remote\x20app\x20name\x20to\x20activate','cache','Use\x20`','projectPath','i18nInfo','.appcode\x20to\x20.lovrabet.json.','source','args','project-default','defaultApp','filter','enableI18n','str','newConfigFileName','map','Available\x20remote\x20apps:\x20','1016OzjSJY','app','265905xxObjb','globalPath','bool','mergedCli','1984594YYApMk','entries','appcode','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','Initialize\x20','\x20app\x20use\x20<name>\x20[--global]','accessKey','env','global','No\x20cached\x20apps\x20found.','from','production','2964918YXQWwE','boolean','.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.','280PkFgSa','Set\x20the\x20fallback\x20app\x20candidate','Default\x20app\x20candidate\x20set\x20to\x20\x22','raw','isArray','envName','\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.','appName','no-cache','Use\x20global\x20config\x20scope','remote','\x20config\x20file','string','Read\x20app\x20list\x20from\x20local\x20cache\x20only','382600LgvKpP','length'];a3_0x20f4=function(){return _0x391062;};return a3_0x20f4();}import{CLI_BIN_NAME,readConfig,writeConfig,scopeLabel,enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';const GLOBAL_FLAG={'name':'global','type':a3_0x4b1f40(0x96),'description':a3_0x4b1f40(0xa1),'default':![]};function collectFlags(_0x38e716,_0x543d4e){const _0x217b58=a3_0x4b1f40,_0x148ef3={};for(const _0x3d355d of _0x543d4e){const _0x374bb6=_0x3d355d['type']===_0x217b58(0x96)?_0x38e716[_0x217b58(0xd7)](_0x3d355d[_0x217b58(0xbf)]):_0x38e716['str'](_0x3d355d[_0x217b58(0xbf)]);if(_0x374bb6!==''&&_0x374bb6!==![])_0x148ef3[_0x3d355d['name']]=_0x374bb6;}if(_0x38e716[_0x217b58(0xad)])_0x148ef3[_0x217b58(0xad)]=!![];return _0x148ef3;}function normalizeLanguages(_0xbcf9ea){const _0x29c76d=a3_0x4b1f40;if(!Array[_0x29c76d(0x9c)](_0xbcf9ea))return[];return _0xbcf9ea[_0x29c76d(0xcd)](_0x41e846=>typeof _0x41e846===_0x29c76d(0xa4))[_0x29c76d(0xd1)](_0x381c54=>_0x381c54['trim']())[_0x29c76d(0xcd)](Boolean);}function buildRemoteAppI18nFields(_0x551adb){const _0x20c145=a3_0x4b1f40,_0x2c1c75=normalizeLanguages(_0x551adb[_0x20c145(0xc7)]?.['langs']);return{'enableI18n':typeof _0x551adb[_0x20c145(0xce)]===_0x20c145(0x96)?_0x551adb[_0x20c145(0xce)]:null,'languages':_0x2c1c75,'i18nInfo':_0x551adb[_0x20c145(0xc7)]?{..._0x551adb['i18nInfo'],'langs':_0x2c1c75['length']?_0x2c1c75:null}:null};}const initDef={'service':'app','command':a3_0x4b1f40(0xa9),'description':a3_0x4b1f40(0x8d)+PRODUCT_CONFIG[a3_0x4b1f40(0xd0)]+a3_0x4b1f40(0xa3),'risk':a3_0x4b1f40(0xb6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x1305a8){return await runInit(collectFlags(_0x1305a8,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a3_0x4b1f40(0xd4),'command':'list','description':a3_0x4b1f40(0xb7),'risk':a3_0x4b1f40(0xc0),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a3_0x4b1f40(0x90),'type':a3_0x4b1f40(0xa4),'description':a3_0x4b1f40(0xb4),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x4b1f40(0xaa),'type':a3_0x4b1f40(0x96),'description':a3_0x4b1f40(0xa5),'default':![]},{'name':a3_0x4b1f40(0xa0),'type':'boolean','description':a3_0x4b1f40(0xac),'default':![]}],async 'execute'(_0x3923ab){const _0x34985f=a3_0x4b1f40,_0x46dd7e=_0x3923ab[_0x34985f(0xcf)]('env')||_0x3923ab[_0x34985f(0x9d)]||getEnv()||_0x34985f(0x94),_0x545775=_0x3923ab['bool'](_0x34985f(0xaa)),_0x16ff7e=_0x3923ab[_0x34985f(0xd7)](_0x34985f(0xa0)),{readRawConfigWithLayers:_0x2f4438,resolveDefaultAppSource:_0x3a9790,getLocalAppAliases:_0x5f2d79}=await import(_0x34985f(0xae)),{getRemoteAppList:_0x43fc40}=await import('../../commands/app/remote-source.js'),{config:_0x406c98,layers:_0x3c86bd}=_0x2f4438(),_0x263288=_0x3a9790(_0x3c86bd),{defaultApp:_0x5000ce}=_0x406c98,_0x4d2502=await _0x43fc40({'env':_0x46dd7e,'accessKey':_0x3923ab[_0x34985f(0x8f)],'localOnly':_0x545775,'noCache':_0x16ff7e}),_0x4f0cd6=_0x4d2502[_0x34985f(0xbb)]['map'](_0x58293f=>{const _0x31f94c=_0x34985f;return{'name':_0x58293f['appName'],'appcode':_0x58293f['appCode'],'named':!![],'definedIn':_0x31f94c(0xa2),'isDefault':_0x58293f[_0x31f94c(0x9f)]===_0x5000ce,...buildAppProfileListFields(_0x46dd7e),...buildRemoteAppI18nFields(_0x58293f),'source':_0x4d2502[_0x31f94c(0xc9)],'owner':_0x58293f['appOwnerName']??null,'status':_0x58293f['appPublishStatus']??null,'cachedAt':_0x4d2502['fetchedAt']};}),_0x592dc6=_0x5f2d79(_0x406c98);let _0x1fa8a4=0x0;for(const [_0x50b1f6,_0x4ceaea]of Object[_0x34985f(0xda)](_0x592dc6)){const _0x1d3204=typeof _0x4ceaea[_0x34985f(0xdb)]==='string'?_0x4ceaea[_0x34985f(0xdb)]['trim']():'';if(!_0x1d3204)continue;_0x1fa8a4+=0x1,_0x4f0cd6['push']({'name':_0x50b1f6,'appcode':_0x1d3204,'named':!![],'definedIn':'local','isDefault':_0x50b1f6===_0x5000ce,...buildAppProfileListFields(_0x46dd7e),'source':_0x34985f(0xab),'owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x4f0cd6,_0x3923ab[_0x34985f(0xd8)]);if(_0x4f0cd6[_0x34985f(0xa7)]===0x0)return{'ok':!![],'data':[],'message':_0x4d2502[_0x34985f(0xc9)]==='cache'?_0x34985f(0x92):'No\x20apps\x20found\x20on\x20the\x20platform.'};const _0x14b1ee=_0x4f0cd6['find'](_0x2c4a82=>_0x2c4a82['isCurrent']===!![]),_0x3e65bf=_0x5000ce??_0x14b1ee?.[_0x34985f(0xbf)]??null,_0x3bce03={'env':_0x46dd7e,'source':_0x4d2502[_0x34985f(0xc9)],'fetchedAt':_0x4d2502[_0x34985f(0xb2)],'cachePath':_0x4d2502['cachePath'],'globalPath':_0x3c86bd[_0x34985f(0xd6)]??null,'projectPath':_0x3c86bd[_0x34985f(0xc6)]??null,'defaultApp':_0x3e65bf,'defaultAppSource':_0x5000ce!=null?_0x263288:null,'localAliasCount':_0x1fa8a4};return{'ok':!![],'data':{'items':_0x4f0cd6,'meta':_0x3bce03}};}},pullDef={'service':a3_0x4b1f40(0xd4),'command':a3_0x4b1f40(0xb3),'description':a3_0x4b1f40(0xb9),'risk':a3_0x4b1f40(0xb6),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a3_0x4b1f40(0x90),'type':a3_0x4b1f40(0xa4),'description':a3_0x4b1f40(0xb5),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x4b1f40(0xaa),'type':a3_0x4b1f40(0x96),'description':a3_0x4b1f40(0xc2),'default':![]},{'name':a3_0x4b1f40(0xa0),'type':'boolean','description':'Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','default':![]}],async 'execute'(_0x10d5be){const _0x2e2800=a3_0x4b1f40,_0x4f5a8e=_0x10d5be[_0x2e2800(0xcf)]('env')||_0x10d5be[_0x2e2800(0x9d)]||getEnv()||_0x2e2800(0x94),_0xeaeb0b=_0x10d5be[_0x2e2800(0xd7)](_0x2e2800(0xaa)),_0x5931f3=_0x10d5be[_0x2e2800(0xd7)](_0x2e2800(0xa0)),{getRemoteAppList:_0x2b98c7}=await import(_0x2e2800(0xba)),_0x380cf0=await _0x2b98c7({'env':_0x4f5a8e,'accessKey':_0x10d5be[_0x2e2800(0x8f)],'localOnly':_0xeaeb0b,'noCache':_0x5931f3});return{'ok':!![],'data':{'total':_0x380cf0[_0x2e2800(0xbb)][_0x2e2800(0xa7)],'env':_0x4f5a8e,'source':_0x380cf0['source'],'fetchedAt':_0x380cf0['fetchedAt'],'cachePath':_0x380cf0['cachePath']},'message':_0x380cf0[_0x2e2800(0xc9)]===_0x2e2800(0xc4)?_0x2e2800(0xbd)+_0x380cf0['items'][_0x2e2800(0xa7)]+_0x2e2800(0xbc)+_0x4f5a8e+'\x22.':'Refreshed\x20app\x20cache\x20with\x20'+_0x380cf0[_0x2e2800(0xbb)][_0x2e2800(0xa7)]+'\x20app(s)\x20for\x20env=\x22'+_0x4f5a8e+'\x22.'};}},useDef={'service':a3_0x4b1f40(0xd4),'command':'use','description':a3_0x4b1f40(0x99),'risk':a3_0x4b1f40(0xb6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a3_0x4b1f40(0xbf),'description':a3_0x4b1f40(0xc3),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x3a353a){const _0x5156da=a3_0x4b1f40;if(!_0x3a353a['args'][0x0])throw CliErrors[_0x5156da(0xb8)](_0x5156da(0xa8),_0x5156da(0xb0)+CLI_BIN_NAME+_0x5156da(0x8e));},async 'execute'(_0x458a32){const _0x250ccd=a3_0x4b1f40,_0x423ea3=_0x458a32[_0x250ccd(0xca)][0x0];if(!_0x423ea3)throw CliErrors[_0x250ccd(0xb8)](_0x250ccd(0xa8),_0x250ccd(0xb0)+CLI_BIN_NAME+_0x250ccd(0x8e));const {buildConfigFromFlags:_0xb13aaa,resolveLocalAppAliasCode:_0x5ed8f1}=await import(_0x250ccd(0xae)),{readCachedAppList:_0x3c89e9}=await import('../../commands/app/cache.js'),_0x5c7df4=_0x458a32['str']('env'),_0x13df25=_0xb13aaa(_0x5c7df4?{'env':_0x5c7df4}:{}),_0x2d4e23=_0x3c89e9(_0x13df25['env'],_0x13df25[_0x250ccd(0x8f)]),_0x2fdecf=_0x2d4e23?.['items']['find'](_0x5c8e95=>_0x5c8e95[_0x250ccd(0x9f)]===_0x423ea3),_0x4fd12a=_0x5ed8f1(_0x13df25[_0x250ccd(0x9b)]??{},_0x423ea3);if(!_0x2fdecf&&!_0x4fd12a&&_0x13df25[_0x250ccd(0xcc)]!==_0x423ea3){const _0x45e8ba=[..._0x2d4e23?.[_0x250ccd(0xbb)][_0x250ccd(0xd1)](_0x2a076a=>_0x2a076a['appName'])??[]],_0x1f8ba1=_0x45e8ba['length']===0x0?_0x250ccd(0xc5)+CLI_BIN_NAME+_0x250ccd(0x9e)+_0x423ea3+_0x250ccd(0xc8):_0x250ccd(0xd2)+Array[_0x250ccd(0x93)](new Set(_0x45e8ba))['join'](',\x20')+_0x250ccd(0x97);throw CliErrors[_0x250ccd(0xb8)]('App\x20\x22'+_0x423ea3+_0x250ccd(0xc1),_0x1f8ba1);}const _0x3a50ec=_0x458a32[_0x250ccd(0xd7)](_0x250ccd(0x91));let _0x46f75f;if(_0x3a50ec)_0x46f75f={'global':!![]};else{const {isInProject:_0x3d1679}=await import(_0x250ccd(0xae)),_0x428f8f=_0x3d1679();_0x46f75f=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0x250ccd(0xcb),'inProject':_0x428f8f}));}const _0x2086bd=readConfig(_0x46f75f);return _0x2086bd[_0x250ccd(0xcc)]=_0x423ea3,writeConfig(_0x2086bd,_0x46f75f),{'ok':!![],'message':_0x250ccd(0x9a)+_0x423ea3+'\x22'+scopeLabel(_0x46f75f)+'.'};}},importDef={'service':a3_0x4b1f40(0xd4),'command':'import','description':a3_0x4b1f40(0x8c),'risk':a3_0x4b1f40(0xb6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x11f23a){return await runInitImport(collectFlags(_0x11f23a,initImportFlagDefs)),{'ok':!![]};}};function a3_0x3a5b(_0x532e8d,_0x4e89a5){_0x532e8d=_0x532e8d-0x8c;const _0x20f45b=a3_0x20f4();let _0x3a5b24=_0x20f45b[_0x532e8d];return _0x3a5b24;}export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
@@ -1 +1 @@
1
- (function(_0x107c1e,_0x289fa1){const _0x44ffa4=a4_0x324e,_0x4b4d14=_0x107c1e();while(!![]){try{const _0x2a96d8=-parseInt(_0x44ffa4(0x1cb))/0x1*(-parseInt(_0x44ffa4(0x1cf))/0x2)+parseInt(_0x44ffa4(0x1ca))/0x3+-parseInt(_0x44ffa4(0x1d0))/0x4*(parseInt(_0x44ffa4(0x1d1))/0x5)+parseInt(_0x44ffa4(0x1c8))/0x6+parseInt(_0x44ffa4(0x1c7))/0x7+-parseInt(_0x44ffa4(0x1cc))/0x8*(-parseInt(_0x44ffa4(0x1c6))/0x9)+parseInt(_0x44ffa4(0x1c9))/0xa*(-parseInt(_0x44ffa4(0x1ce))/0xb);if(_0x2a96d8===_0x289fa1)break;else _0x4b4d14['push'](_0x4b4d14['shift']());}catch(_0x2bd6d2){_0x4b4d14['push'](_0x4b4d14['shift']());}}}(a4_0x3734,0x5384d));import{fileURLToPath}from'url';import{dirname,join}from'path';function a4_0x3734(){const _0x2604dc=['2424344WzWIYO','utf-8','9227735seJGvc','23438gWOlUf','156932NnLvIx','65kTZvwj','tableData','success','Mock\x20API\x20error:\x20','9gHWNbw','1355403vkyXbY','2469552vzRrFW','10mDgbyH','836478WwkJAt','43WZmbdL'];a4_0x3734=function(){return _0x2604dc;};return a4_0x3734();}import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0x11a8df=a4_0x324e,_0x4ffe1e=join(__dirname,'../../../mock/app-list.json'),_0x49cb23=readFileSync(_0x4ffe1e,_0x11a8df(0x1cd));return JSON['parse'](_0x49cb23);}function a4_0x324e(_0x4cae48,_0xfba5fc){_0x4cae48=_0x4cae48-0x1c5;const _0x37343f=a4_0x3734();let _0x324e68=_0x37343f[_0x4cae48];return _0x324e68;}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x504041=a4_0x324e,_0x3d6c21=getMockAppList();if(!_0x3d6c21[_0x504041(0x1d3)])throw new Error(_0x504041(0x1c5)+_0x3d6c21['errorMsg']+'\x20('+_0x3d6c21['errorCode']+')');return _0x3d6c21['data'][_0x504041(0x1d2)];}
1
+ (function(_0x496f92,_0x1ceab7){const _0x1e8b0f=a4_0x386b,_0x3f2863=_0x496f92();while(!![]){try{const _0x2bc493=parseInt(_0x1e8b0f(0xe1))/0x1+-parseInt(_0x1e8b0f(0xe3))/0x2*(-parseInt(_0x1e8b0f(0xed))/0x3)+parseInt(_0x1e8b0f(0xe8))/0x4*(-parseInt(_0x1e8b0f(0xdf))/0x5)+-parseInt(_0x1e8b0f(0xee))/0x6+-parseInt(_0x1e8b0f(0xef))/0x7+-parseInt(_0x1e8b0f(0xec))/0x8*(-parseInt(_0x1e8b0f(0xe7))/0x9)+-parseInt(_0x1e8b0f(0xe4))/0xa*(-parseInt(_0x1e8b0f(0xe5))/0xb);if(_0x2bc493===_0x1ceab7)break;else _0x3f2863['push'](_0x3f2863['shift']());}catch(_0x532cfd){_0x3f2863['push'](_0x3f2863['shift']());}}}(a4_0x20ba,0x873a8));function a4_0x20ba(){const _0x40c430=['parse','136312IBSKyk','6zlcviQ','5192616FxQEqI','3943569mZJggY','2111015uxSFiX','data','579738QEpcGS','Mock\x20API\x20error:\x20','695018zAvwlM','16350SdtoES','4279lYesDq','../../../mock/app-list.json','261hIDVwx','4PFxtKx','utf-8','errorMsg'];a4_0x20ba=function(){return _0x40c430;};return a4_0x20ba();}import{fileURLToPath}from'url';function a4_0x386b(_0x3f9dfe,_0x5a4386){_0x3f9dfe=_0x3f9dfe-0xdf;const _0x20baa9=a4_0x20ba();let _0x386b33=_0x20baa9[_0x3f9dfe];return _0x386b33;}import{dirname,join}from'path';import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0x16e48a=a4_0x386b,_0x1f7ff0=join(__dirname,_0x16e48a(0xe6)),_0x34136f=readFileSync(_0x1f7ff0,_0x16e48a(0xe9));return JSON[_0x16e48a(0xeb)](_0x34136f);}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x3865f6=a4_0x386b,_0x10f921=getMockAppList();if(!_0x10f921['success'])throw new Error(_0x3865f6(0xe2)+_0x10f921[_0x3865f6(0xea)]+'\x20('+_0x10f921['errorCode']+')');return _0x10f921[_0x3865f6(0xe0)]['tableData'];}
@@ -1 +1 @@
1
- function a5_0x5065(){const _0xae14f0=['toISOString','651xNGGFy','remote','fetchedAt','items','334196dkylIM','76320HvUwLt','388911qdRynx','11976Vxnzuf','1271931pCCuwK','APP_LIST_SOURCE','cache','trim','96140oMMOEQ','7659HtpgCK','1910obMqUa','2njZLFI'];a5_0x5065=function(){return _0xae14f0;};return a5_0x5065();}(function(_0x3b63a9,_0x3f5745){const _0xbb92b1=a5_0x2fc8,_0x543e9e=_0x3b63a9();while(!![]){try{const _0x40bd4f=-parseInt(_0xbb92b1(0xa7))/0x1*(-parseInt(_0xbb92b1(0x9f))/0x2)+-parseInt(_0xbb92b1(0xa9))/0x3+-parseInt(_0xbb92b1(0xa5))/0x4+-parseInt(_0xbb92b1(0x9c))/0x5+parseInt(_0xbb92b1(0xa8))/0x6*(parseInt(_0xbb92b1(0xa1))/0x7)+parseInt(_0xbb92b1(0xa6))/0x8+-parseInt(_0xbb92b1(0x9d))/0x9*(-parseInt(_0xbb92b1(0x9e))/0xa);if(_0x40bd4f===_0x3f5745)break;else _0x543e9e['push'](_0x543e9e['shift']());}catch(_0x433364){_0x543e9e['push'](_0x543e9e['shift']());}}}(a5_0x5065,0x35ada));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 _0x509415=a5_0x2fc8,_0x34b62d=(productEnv(_0x509415(0xaa))||'')[_0x509415(0x9b)]()['toLowerCase']();return _0x34b62d==='mock';}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}function a5_0x2fc8(_0x14811e,_0xf63538){_0x14811e=_0x14811e-0x9b;const _0x5065f2=a5_0x5065();let _0x2fc8ea=_0x5065f2[_0x14811e];return _0x2fc8ea;}export async function getRemoteAppList(_0x5d097d){const _0x2609f3=a5_0x2fc8,{env:_0x4b4594,accessKey:_0x2767ec,localOnly:localOnly=![],noCache:noCache=![]}=_0x5d097d,_0x1f6e64=readCachedAppList(_0x4b4594,_0x2767ec),_0x2b6323=_0x2767ec?.[_0x2609f3(0x9b)]()?getAppCacheFilePath(_0x4b4594,_0x2767ec):null;if(localOnly)return{'items':_0x1f6e64?.[_0x2609f3(0xa4)]??[],'source':_0x2609f3(0xab),'fetchedAt':_0x1f6e64?.[_0x2609f3(0xa3)]??null,'cachePath':_0x2b6323};try{const _0x5c1423=await getRemoteAppItems(),_0x3f8ed4=shouldUseMockRemoteApps()?'mock':_0x2609f3(0xa2),_0xe84c8e=new Date()[_0x2609f3(0xa0)](),_0x104835=_0x2767ec?.['trim']()?writeCachedAppList(_0x4b4594,_0x2767ec,{'env':_0x4b4594,'fetchedAt':_0xe84c8e,'source':_0x3f8ed4,'items':_0x5c1423}):null;return{'items':_0x5c1423,'source':_0x3f8ed4,'fetchedAt':_0xe84c8e,'cachePath':_0x104835};}catch(_0x8084bd){if(!noCache&&_0x1f6e64)return{'items':_0x1f6e64[_0x2609f3(0xa4)],'source':'cache','fetchedAt':_0x1f6e64['fetchedAt'],'cachePath':_0x2b6323};throw _0x8084bd;}}
1
+ (function(_0x338176,_0x41ac81){const _0x310664=a5_0x3828,_0x5f53ed=_0x338176();while(!![]){try{const _0x131992=-parseInt(_0x310664(0x1fb))/0x1+parseInt(_0x310664(0x1f3))/0x2+parseInt(_0x310664(0x1f5))/0x3*(-parseInt(_0x310664(0x202))/0x4)+-parseInt(_0x310664(0x1f4))/0x5+parseInt(_0x310664(0x1f9))/0x6+parseInt(_0x310664(0x200))/0x7*(parseInt(_0x310664(0x1f6))/0x8)+parseInt(_0x310664(0x1fc))/0x9;if(_0x131992===_0x41ac81)break;else _0x5f53ed['push'](_0x5f53ed['shift']());}catch(_0x4901e2){_0x5f53ed['push'](_0x5f53ed['shift']());}}}(a5_0x3290,0xe1c26));import{getMyApps}from'../../core/api-client.js';import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';function a5_0x3290(){const _0x144782=['cache','879342ibSWSg','17486424hVgWWp','toISOString','mock','fetchedAt','212478hVHqdc','items','14148rMqAsV','APP_LIST_SOURCE','883006CEmVJa','5399595YLRjFa','471tjQOvB','152skSZbJ','trim','remote','2868690OgMRfw'];a5_0x3290=function(){return _0x144782;};return a5_0x3290();}import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';import{productEnv}from'../../constant/product.js';export function shouldUseMockRemoteApps(){const _0x435ac7=a5_0x3828,_0x40a92b=(productEnv(_0x435ac7(0x203))||'')[_0x435ac7(0x1f7)]()['toLowerCase']();return _0x40a92b==='mock';}function a5_0x3828(_0x3e4396,_0x300a4e){_0x3e4396=_0x3e4396-0x1f3;const _0x32900e=a5_0x3290();let _0x3828b0=_0x32900e[_0x3e4396];return _0x3828b0;}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x34713f){const _0x172a90=a5_0x3828,{env:_0x27909e,accessKey:_0x46fff8,localOnly:localOnly=![],noCache:noCache=![]}=_0x34713f,_0x4395ae=readCachedAppList(_0x27909e,_0x46fff8),_0x4d3937=_0x46fff8?.[_0x172a90(0x1f7)]()?getAppCacheFilePath(_0x27909e,_0x46fff8):null;if(localOnly)return{'items':_0x4395ae?.[_0x172a90(0x201)]??[],'source':_0x172a90(0x1fa),'fetchedAt':_0x4395ae?.[_0x172a90(0x1ff)]??null,'cachePath':_0x4d3937};try{const _0x8756f9=await getRemoteAppItems(),_0x391be9=shouldUseMockRemoteApps()?_0x172a90(0x1fe):_0x172a90(0x1f8),_0x846939=new Date()[_0x172a90(0x1fd)](),_0x4464ac=_0x46fff8?.[_0x172a90(0x1f7)]()?writeCachedAppList(_0x27909e,_0x46fff8,{'env':_0x27909e,'fetchedAt':_0x846939,'source':_0x391be9,'items':_0x8756f9}):null;return{'items':_0x8756f9,'source':_0x391be9,'fetchedAt':_0x846939,'cachePath':_0x4464ac};}catch(_0x592a36){if(!noCache&&_0x4395ae)return{'items':_0x4395ae['items'],'source':'cache','fetchedAt':_0x4395ae[_0x172a90(0x1ff)],'cachePath':_0x4d3937};throw _0x592a36;}}
@@ -1 +1 @@
1
- (function(_0x5aab2b,_0x11cf0c){const _0x4dbb92=a6_0x3855,_0x1744cd=_0x5aab2b();while(!![]){try{const _0x429cd6=parseInt(_0x4dbb92(0x135))/0x1+parseInt(_0x4dbb92(0x126))/0x2+-parseInt(_0x4dbb92(0x128))/0x3*(-parseInt(_0x4dbb92(0x12e))/0x4)+parseInt(_0x4dbb92(0x129))/0x5*(-parseInt(_0x4dbb92(0x12c))/0x6)+-parseInt(_0x4dbb92(0x139))/0x7*(-parseInt(_0x4dbb92(0x130))/0x8)+-parseInt(_0x4dbb92(0x136))/0x9+-parseInt(_0x4dbb92(0x12b))/0xa*(-parseInt(_0x4dbb92(0x13a))/0xb);if(_0x429cd6===_0x11cf0c)break;else _0x1744cd['push'](_0x1744cd['shift']());}catch(_0x4ce6b2){_0x1744cd['push'](_0x1744cd['shift']());}}}(a6_0x47a3,0x1e98f));import{CLI_BIN_NAME}from'../../constant/cli.js';function a6_0x3855(_0x5accea,_0x4c92ae){_0x5accea=_0x5accea-0x124;const _0x47a318=a6_0x47a3();let _0x385576=_0x47a318[_0x5accea];return _0x385576;}import{formatScopeLabel}from'../../commands/common/config-policy.js';function a6_0x47a3(){const _0x3512e1=['local','125900aZVFBm','named','36510cjIqjn','5FIQTQo','trim','152270JzNIul','661278fdVtPx','find','12RVEbUi','isCurrent','8xEetgt','definedIn','currentApp','project','name','150280gCwwRF','2246778AbVvQx','defaultApp','global','49259BhLBPx','165CURdIg','appcode'];a6_0x47a3=function(){return _0x3512e1;};return a6_0x47a3();}export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x493f3f,_0x34fb9a){const _0x119457=a6_0x3855;if(!_0x34fb9a)return;const _0x15eee8=!!(_0x34fb9a[_0x119457(0x132)]??_0x34fb9a['defaultApp']);for(const _0xbbebc2 of _0x493f3f){_0xbbebc2[_0x119457(0x12f)]=![];}const _0xd6fb6b=_0x34fb9a['appCode']!=null?String(_0x34fb9a['appCode'])[_0x119457(0x12a)]():'';if(_0x15eee8){const _0x4349ec=_0x34fb9a[_0x119457(0x132)]??_0x34fb9a[_0x119457(0x137)];if(_0x4349ec){const _0x51c6cf=_0x493f3f[_0x119457(0x12d)](_0x2e761e=>_0x2e761e[_0x119457(0x127)]===!![]&&_0x2e761e[_0x119457(0x134)]===_0x4349ec&&_0x2e761e[_0x119457(0x131)]===_0x119457(0x125)),_0x45cdea=_0x51c6cf??_0x493f3f[_0x119457(0x12d)](_0x31bb4a=>_0x31bb4a[_0x119457(0x127)]===!![]&&_0x31bb4a[_0x119457(0x134)]===_0x4349ec);_0x45cdea&&(_0x45cdea[_0x119457(0x12f)]=!![]);}return;}if(!_0xd6fb6b)return;for(const _0x497014 of _0x493f3f){String(_0x497014[_0x119457(0x124)]??'')[_0x119457(0x12a)]()===_0xd6fb6b&&(_0x497014['isCurrent']=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x3139e6){const _0x11d520=a6_0x3855;return formatScopeLabel(_0x3139e6[_0x11d520(0x138)]?_0x11d520(0x138):_0x11d520(0x133));}
1
+ (function(_0x4d6df1,_0x43e7fb){const _0x3d56ad=a6_0x3d9c,_0xb5e2d7=_0x4d6df1();while(!![]){try{const _0x529947=-parseInt(_0x3d56ad(0xa0))/0x1+-parseInt(_0x3d56ad(0xb1))/0x2*(-parseInt(_0x3d56ad(0xa4))/0x3)+parseInt(_0x3d56ad(0xa2))/0x4*(parseInt(_0x3d56ad(0x9f))/0x5)+-parseInt(_0x3d56ad(0xb5))/0x6*(-parseInt(_0x3d56ad(0xb2))/0x7)+parseInt(_0x3d56ad(0xa8))/0x8*(-parseInt(_0x3d56ad(0xa5))/0x9)+parseInt(_0x3d56ad(0xac))/0xa+-parseInt(_0x3d56ad(0xa1))/0xb;if(_0x529947===_0x43e7fb)break;else _0xb5e2d7['push'](_0xb5e2d7['shift']());}catch(_0x2c40f2){_0xb5e2d7['push'](_0xb5e2d7['shift']());}}}(a6_0x90b7,0x569e4));import{CLI_BIN_NAME}from'../../constant/cli.js';function a6_0x90b7(){const _0x15639f=['currentApp','name','18192RTNBzA','isCurrent','defaultApp','appCode','5126860NrGlLc','global','named','local','appcode','3814SYpPrn','1981zOWNmX','trim','find','5622UxhvLX','7265SdDoBQ','320663HEsPuw','1569711MeYmmb','1844KJIAzr','project','90pICYdj','2718cUSnbf'];a6_0x90b7=function(){return _0x15639f;};return a6_0x90b7();}import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x1daf3b,_0x12ad42){const _0x350f1c=a6_0x3d9c;if(!_0x12ad42)return;const _0x363510=!!(_0x12ad42[_0x350f1c(0xa6)]??_0x12ad42[_0x350f1c(0xaa)]);for(const _0x8833e2 of _0x1daf3b){_0x8833e2[_0x350f1c(0xa9)]=![];}const _0x5cc69f=_0x12ad42[_0x350f1c(0xab)]!=null?String(_0x12ad42[_0x350f1c(0xab)])['trim']():'';if(_0x363510){const _0x477eff=_0x12ad42[_0x350f1c(0xa6)]??_0x12ad42[_0x350f1c(0xaa)];if(_0x477eff){const _0x85a4ec=_0x1daf3b['find'](_0x35578c=>_0x35578c[_0x350f1c(0xae)]===!![]&&_0x35578c[_0x350f1c(0xa7)]===_0x477eff&&_0x35578c['definedIn']===_0x350f1c(0xaf)),_0xdb5c0e=_0x85a4ec??_0x1daf3b[_0x350f1c(0xb4)](_0x7f47fd=>_0x7f47fd['named']===!![]&&_0x7f47fd[_0x350f1c(0xa7)]===_0x477eff);_0xdb5c0e&&(_0xdb5c0e[_0x350f1c(0xa9)]=!![]);}return;}if(!_0x5cc69f)return;for(const _0x577c9a of _0x1daf3b){String(_0x577c9a[_0x350f1c(0xb0)]??'')[_0x350f1c(0xb3)]()===_0x5cc69f&&(_0x577c9a[_0x350f1c(0xa9)]=!![]);}}function a6_0x3d9c(_0x5d2c44,_0x174adb){_0x5d2c44=_0x5d2c44-0x9f;const _0x90b7dd=a6_0x90b7();let _0x3d9ce9=_0x90b7dd[_0x5d2c44];return _0x3d9ce9;}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x17f57c){const _0x2e1d60=a6_0x3d9c;return formatScopeLabel(_0x17f57c[_0x2e1d60(0xad)]?_0x2e1d60(0xad):_0x2e1d60(0xa3));}
@@ -1 +1 @@
1
- const a7_0x5dbf61=a7_0x25a0;function a7_0x25a0(_0x4e73da,_0x39f128){_0x4e73da=_0x4e73da-0x12d;const _0x418c6f=a7_0x418c();let _0x25a018=_0x418c6f[_0x4e73da];return _0x25a018;}(function(_0x3d95c6,_0x56fb1b){const _0x563105=a7_0x25a0,_0x1a5f31=_0x3d95c6();while(!![]){try{const _0x5f1674=-parseInt(_0x563105(0x146))/0x1+-parseInt(_0x563105(0x15a))/0x2+-parseInt(_0x563105(0x13c))/0x3*(parseInt(_0x563105(0x155))/0x4)+-parseInt(_0x563105(0x16c))/0x5*(-parseInt(_0x563105(0x133))/0x6)+-parseInt(_0x563105(0x150))/0x7+parseInt(_0x563105(0x172))/0x8*(parseInt(_0x563105(0x134))/0x9)+parseInt(_0x563105(0x175))/0xa*(-parseInt(_0x563105(0x158))/0xb);if(_0x5f1674===_0x56fb1b)break;else _0x1a5f31['push'](_0x1a5f31['shift']());}catch(_0x5d2975){_0x1a5f31['push'](_0x1a5f31['shift']());}}}(a7_0x418c,0x706bc));import{existsSync,readFileSync,statSync}from'node:fs';function a7_0x418c(){const _0x4fa780=['update','Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file','some','list','790517LvWbCh','appCode','lastIndex','name','List\x20current-app\x20react_module\x20Artifacts','28rxMVHE','body','File\x20is\x20not\x20a\x20regular\x20file:\x20','391259nQGOfR','build','330990qlDZit','test','num','Artifact\x20display\x20name','file','AGENT','parse','split','artifact','Artifact\x20ID','react-dom','length','isArray','trim','favorite','write','string','react_module','170OKRZko','File\x20path\x20is\x20required.','metadata','create','validation','flag','2849448TQpJiw','compiledContent','bool','20worxKu','description','deleted','updateTime','utf8','Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','createTime','lodash','join','Updated\x20Artifact\x20','dayjs','str','react_module\x20imports\x20are\x20limited\x20to:\x20','Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','161562mbxNKv','9TppSxV','source','react','Artifact\x20source\x20file\x20is\x20blank.','Preview:\x20create\x20react_module\x20Artifact','map','read','filter','50658XRscmi','File\x20not\x20found:\x20','Invalid\x20JSON\x20for\x20--metadata:\x20','verbose','artifactType','--metadata\x20must\x20be\x20a\x20JSON\x20object.','Optional\x20favorite-state\x20filter','/client/artifact/','Show\x20one\x20Artifact\x20by\x20id','content','343457bFQach','.\x20Unsupported:\x20','object','antd','POST','isFile'];a7_0x418c=function(){return _0x4fa780;};return a7_0x418c();}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=a7_0x5dbf61(0x16b),ARTIFACT_SOURCE_AGENT=a7_0x5dbf61(0x15f),ALLOWED_REACT_MODULE_IMPORTS=[a7_0x5dbf61(0x136),a7_0x5dbf61(0x164),a7_0x5dbf61(0x17c),a7_0x5dbf61(0x12f),a7_0x5dbf61(0x149),'@ant-design/icons'];export const ALLOWED_REACT_MODULE_IMPORTS_TEXT=ALLOWED_REACT_MODULE_IMPORTS['join'](',\x20');const IMPORT_SOURCE_PATTERNS=[/\bimport\s+(?:type\s+)?(?:[^'";]*?\s+from\s+)?["']([^"']+)["']/g,/\bexport\s+(?:type\s+)?[^'";]*?\s+from\s+["']([^"']+)["']/g,/\bimport\s*\(\s*["']([^"']+)["']\s*\)/g,/\brequire\s*\(\s*["']([^"']+)["']\s*\)/g],PAGE_LEVEL_PATTERNS=[/<!doctype\s+html/i,/<\s*html\b/i,/\bcreateRoot\s*\(/,/\bReactDOM\s*\.\s*render\s*\(/,/\bReactDOM\s*\.\s*createRoot\s*\(/],FILE_FLAG={'name':a7_0x5dbf61(0x15e),'type':a7_0x5dbf61(0x16a),'required':!![],'description':a7_0x5dbf61(0x14d)},ARTIFACT_NAME_FLAG={'name':a7_0x5dbf61(0x153),'type':a7_0x5dbf61(0x16a),'description':a7_0x5dbf61(0x15d)},METADATA_FLAG={'name':a7_0x5dbf61(0x16e),'type':a7_0x5dbf61(0x16a),'description':'Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped'};function isPlainObject(_0x41cff5){const _0x560eea=a7_0x5dbf61;return typeof _0x41cff5===_0x560eea(0x148)&&_0x41cff5!==null&&!Array[_0x560eea(0x166)](_0x41cff5);}function readSourceFile(_0x716a40){const _0x27450a=a7_0x5dbf61;if(!_0x716a40)throw CliErrors[_0x27450a(0x170)](_0x27450a(0x16d));if(!existsSync(_0x716a40))throw CliErrors[_0x27450a(0x170)](_0x27450a(0x13d)+_0x716a40);if(!statSync(_0x716a40)[_0x27450a(0x14b)]())throw CliErrors[_0x27450a(0x170)](_0x27450a(0x157)+_0x716a40);const _0xcafda=readFileSync(_0x716a40,_0x27450a(0x179));return validateReactModuleSource(_0xcafda),_0xcafda;}function parseMetadata(_0xc7026a){const _0x2c4beb=a7_0x5dbf61;if(!_0xc7026a)return undefined;let _0x3863f0;try{_0x3863f0=JSON[_0x2c4beb(0x160)](_0xc7026a);}catch{throw CliErrors[_0x2c4beb(0x170)](_0x2c4beb(0x13e)+_0xc7026a);}if(!isPlainObject(_0x3863f0))throw CliErrors[_0x2c4beb(0x170)](_0x2c4beb(0x141));const _0x4d10ad={..._0x3863f0};return delete _0x4d10ad[_0x2c4beb(0x173)],_0x4d10ad;}function getPackageName(_0x329b87){const _0x220e63=a7_0x5dbf61;if(_0x329b87['startsWith']('@')){const [_0x59d3c8,_0x23f858]=_0x329b87[_0x220e63(0x161)]('/');return _0x59d3c8&&_0x23f858?_0x59d3c8+'/'+_0x23f858:_0x329b87;}return _0x329b87[_0x220e63(0x161)]('/')[0x0]||_0x329b87;}function validateAllowedImports(_0x3da3eb){const _0x46b142=a7_0x5dbf61,_0x556440=new Set();for(const _0x5df1e1 of IMPORT_SOURCE_PATTERNS){_0x5df1e1[_0x46b142(0x152)]=0x0;let _0x4e5715;while((_0x4e5715=_0x5df1e1['exec'](_0x3da3eb))!==null){const _0x42397e=_0x4e5715[0x1]?.[_0x46b142(0x167)]();_0x42397e&&_0x556440['add'](_0x42397e);}}const _0xd8ca25=[..._0x556440]['map'](getPackageName)[_0x46b142(0x13b)](_0x3ecffa=>!ALLOWED_REACT_MODULE_IMPORTS['includes'](_0x3ecffa));if(_0xd8ca25['length']>0x0)throw CliErrors['validation'](_0x46b142(0x131)+ALLOWED_REACT_MODULE_IMPORTS_TEXT+_0x46b142(0x147)+[...new Set(_0xd8ca25)][_0x46b142(0x12d)](',\x20'));}export function validateReactModuleSource(_0x2b7f72){const _0x208493=a7_0x5dbf61;if(!_0x2b7f72[_0x208493(0x167)]())throw CliErrors['validation'](_0x208493(0x137));if(PAGE_LEVEL_PATTERNS[_0x208493(0x14e)](_0x5befe4=>_0x5befe4[_0x208493(0x15b)](_0x2b7f72)))throw CliErrors[_0x208493(0x170)]('react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.');validateAllowedImports(_0x2b7f72);}function buildArtifactInput(_0x39b955){const _0x4b227d=a7_0x5dbf61,_0x3e05d4=readSourceFile(_0x39b955['str'](_0x4b227d(0x15e))),_0x491df9=_0x39b955[_0x4b227d(0x130)](_0x4b227d(0x153))[_0x4b227d(0x167)](),_0x2d6d86=parseMetadata(_0x39b955[_0x4b227d(0x130)](_0x4b227d(0x16e)));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x491df9?{'name':_0x491df9}:{},'content':_0x3e05d4,..._0x2d6d86?{'metadata':_0x2d6d86}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0x5a8f4e){const _0x481527=a7_0x5dbf61;return{'id':_0x5a8f4e['id'],'name':_0x5a8f4e['name'],'artifactType':_0x5a8f4e['artifactType'],'source':_0x5a8f4e[_0x481527(0x135)],'favorite':_0x5a8f4e['favorite'],'deleted':_0x5a8f4e[_0x481527(0x177)],'createTime':_0x5a8f4e['createTime'],'updateTime':_0x5a8f4e[_0x481527(0x178)]};}function detailArtifact(_0x4e042b){const _0x57756c=a7_0x5dbf61;return{'id':_0x4e042b['id'],'appCode':_0x4e042b['appCode'],'name':_0x4e042b[_0x57756c(0x153)],'artifactType':_0x4e042b[_0x57756c(0x140)],'source':_0x4e042b[_0x57756c(0x135)],'favorite':_0x4e042b[_0x57756c(0x168)],'deleted':_0x4e042b[_0x57756c(0x177)],'content':_0x4e042b[_0x57756c(0x145)]??'','compiledContent':_0x4e042b[_0x57756c(0x173)],'metadata':_0x4e042b[_0x57756c(0x16e)]??{},'createTime':_0x4e042b[_0x57756c(0x17b)],'updateTime':_0x4e042b['updateTime']};}function readFavoriteFlag(_0x52590f){const _0x46135a=a7_0x5dbf61,_0x4938a0=_0x52590f[_0x46135a(0x171)]('favorite');return _0x4938a0===undefined||_0x4938a0===null||_0x4938a0===''?undefined:_0x52590f[_0x46135a(0x174)]('favorite');}const artifactList={'service':a7_0x5dbf61(0x162),'command':a7_0x5dbf61(0x14f),'description':a7_0x5dbf61(0x154),'risk':'read','flags':[{'name':'source','type':a7_0x5dbf61(0x16a),'description':'Optional\x20source\x20filter,\x20for\x20example\x20AGENT'},{'name':'favorite','type':'boolean','description':a7_0x5dbf61(0x142)},VERBOSE_FLAG],async 'execute'(_0x38ac05){const _0x5925dc=a7_0x5dbf61,_0x13ceda=await listRuntimeArtifacts(_0x38ac05[_0x5925dc(0x151)],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x38ac05[_0x5925dc(0x130)]('source')?{'source':_0x38ac05[_0x5925dc(0x130)](_0x5925dc(0x135))}:{},...readFavoriteFlag(_0x38ac05)!==undefined?{'favorite':readFavoriteFlag(_0x38ac05)}:{}});return{'ok':!![],'data':{'total':_0x13ceda[_0x5925dc(0x165)],'items':_0x38ac05[_0x5925dc(0x174)](_0x5925dc(0x13f))?_0x13ceda:_0x13ceda[_0x5925dc(0x139)](summarizeArtifact)}};}},artifactDetail={'service':a7_0x5dbf61(0x162),'command':'detail','description':a7_0x5dbf61(0x144),'risk':a7_0x5dbf61(0x13a),'flags':[{...ID_FLAG,'description':a7_0x5dbf61(0x163)}],async 'execute'(_0x3218c4){const _0x717692=a7_0x5dbf61,_0x21d09d=await getRuntimeArtifact(_0x3218c4[_0x717692(0x15c)]('id'),_0x3218c4[_0x717692(0x151)]);return{'ok':!![],'data':detailArtifact(_0x21d09d)};}},artifactCreate={'service':a7_0x5dbf61(0x162),'command':a7_0x5dbf61(0x16f),'description':a7_0x5dbf61(0x17a),'risk':'write','flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x2d2340){const _0x29a9c8=a7_0x5dbf61,_0x3fe72f=buildArtifactInput(_0x2d2340),_0x4bfe88=await createRuntimeArtifact(_0x2d2340[_0x29a9c8(0x151)],_0x3fe72f);return{'ok':!![],'data':detailArtifact(_0x4bfe88),'message':'Created\x20Artifact\x20'+_0x4bfe88['id']+(_0x4bfe88['name']?'\x20('+_0x4bfe88[_0x29a9c8(0x153)]+')':'')};},async 'dryRun'(_0x407593){const _0x453797=a7_0x5dbf61,_0x1ecf7c=buildArtifactInput(_0x407593);return dryRun(_0x453797(0x14a),'/client/artifact/create')['body']({'appCode':_0x407593[_0x453797(0x151)],..._0x1ecf7c})[_0x453797(0x176)](_0x453797(0x138))[_0x453797(0x159)]();}},artifactUpdate={'service':a7_0x5dbf61(0x162),'command':a7_0x5dbf61(0x14c),'description':a7_0x5dbf61(0x132),'risk':a7_0x5dbf61(0x169),'flags':[{...ID_FLAG,'description':'Artifact\x20ID'},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x12d4ce){const _0x3bce83=a7_0x5dbf61,_0x1acd0a=_0x12d4ce[_0x3bce83(0x15c)]('id'),_0x71fbc2=buildArtifactInput(_0x12d4ce),_0x1015b0=await updateRuntimeArtifact(_0x1acd0a,_0x12d4ce[_0x3bce83(0x151)],_0x71fbc2);return{'ok':!![],'data':detailArtifact(_0x1015b0),'message':_0x3bce83(0x12e)+_0x1015b0['id']+(_0x1015b0[_0x3bce83(0x153)]?'\x20('+_0x1015b0[_0x3bce83(0x153)]+')':'')};},async 'dryRun'(_0x1cb013){const _0x24d45a=a7_0x5dbf61,_0x46ebb9=_0x1cb013[_0x24d45a(0x15c)]('id'),_0x160d7f=buildArtifactInput(_0x1cb013);return dryRun(_0x24d45a(0x14a),_0x24d45a(0x143)+_0x46ebb9+'/update')[_0x24d45a(0x156)]({'appCode':_0x1cb013[_0x24d45a(0x151)],..._0x160d7f})[_0x24d45a(0x176)]('Preview:\x20update\x20react_module\x20Artifact\x20'+_0x46ebb9)[_0x24d45a(0x159)]();}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
1
+ const a7_0x1147d8=a7_0x1ff3;(function(_0x1215f7,_0x4dc5f8){const _0x501df6=a7_0x1ff3,_0x46c46=_0x1215f7();while(!![]){try{const _0x1d7611=-parseInt(_0x501df6(0xeb))/0x1*(parseInt(_0x501df6(0x111))/0x2)+parseInt(_0x501df6(0x114))/0x3*(-parseInt(_0x501df6(0xf9))/0x4)+-parseInt(_0x501df6(0x104))/0x5+-parseInt(_0x501df6(0xe9))/0x6*(-parseInt(_0x501df6(0xcf))/0x7)+-parseInt(_0x501df6(0xe7))/0x8+-parseInt(_0x501df6(0x103))/0x9*(parseInt(_0x501df6(0xd8))/0xa)+parseInt(_0x501df6(0xcc))/0xb;if(_0x1d7611===_0x4dc5f8)break;else _0x46c46['push'](_0x46c46['shift']());}catch(_0x5a2bd8){_0x46c46['push'](_0x46c46['shift']());}}}(a7_0x5707,0x2689e));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=a7_0x1147d8(0x118),ARTIFACT_SOURCE_AGENT=a7_0x1147d8(0x116),ALLOWED_REACT_MODULE_IMPORTS=[a7_0x1147d8(0x10b),a7_0x1147d8(0xfe),a7_0x1147d8(0xe8),a7_0x1147d8(0x10a),a7_0x1147d8(0x10e),a7_0x1147d8(0x108)];export const ALLOWED_REACT_MODULE_IMPORTS_TEXT=ALLOWED_REACT_MODULE_IMPORTS[a7_0x1147d8(0x117)](',\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':a7_0x1147d8(0xd0),'type':a7_0x1147d8(0xfc),'required':!![],'description':a7_0x1147d8(0x115)},ARTIFACT_NAME_FLAG={'name':'name','type':'string','description':a7_0x1147d8(0xdf)},METADATA_FLAG={'name':a7_0x1147d8(0xea),'type':a7_0x1147d8(0xfc),'description':a7_0x1147d8(0xd6)};function isPlainObject(_0x3a9d61){return typeof _0x3a9d61==='object'&&_0x3a9d61!==null&&!Array['isArray'](_0x3a9d61);}function readSourceFile(_0x5c07d4){const _0x3d6031=a7_0x1147d8;if(!_0x5c07d4)throw CliErrors[_0x3d6031(0xce)](_0x3d6031(0xe6));if(!existsSync(_0x5c07d4))throw CliErrors['validation'](_0x3d6031(0x112)+_0x5c07d4);if(!statSync(_0x5c07d4)[_0x3d6031(0x110)]())throw CliErrors['validation']('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x5c07d4);const _0xd4046e=readFileSync(_0x5c07d4,_0x3d6031(0x106));return validateReactModuleSource(_0xd4046e),_0xd4046e;}function parseMetadata(_0x3e1491){const _0x4728c8=a7_0x1147d8;if(!_0x3e1491)return undefined;let _0x50ac52;try{_0x50ac52=JSON[_0x4728c8(0xf4)](_0x3e1491);}catch{throw CliErrors['validation'](_0x4728c8(0xf2)+_0x3e1491);}if(!isPlainObject(_0x50ac52))throw CliErrors[_0x4728c8(0xce)](_0x4728c8(0xf1));const _0x3d0a08={..._0x50ac52};return delete _0x3d0a08[_0x4728c8(0xcd)],_0x3d0a08;}function a7_0x5707(){const _0x16f894=['/client/artifact/','react-dom','artifact','/update','length','includes','26109FDWGvo','1562135kXIDTM','Preview:\x20create\x20react_module\x20Artifact','utf8','add','@ant-design/icons','List\x20current-app\x20react_module\x20Artifacts','dayjs','react','num','lastIndex','antd','test','isFile','2uEhrUk','File\x20not\x20found:\x20','description','3lHAKJn','Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file','AGENT','join','react_module','favorite','build','Artifact\x20ID','7849809UKcwrm','compiledContent','validation','991109aicBeZ','file','Show\x20one\x20Artifact\x20by\x20id','map','read','some','name','Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped','deleted','1040mGRYBL','Artifact\x20source\x20file\x20is\x20blank.','Created\x20Artifact\x20','exec','createTime','write','split','Artifact\x20display\x20name','trim','Preview:\x20update\x20react_module\x20Artifact\x20','str','body','Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','verbose','File\x20path\x20is\x20required.','1246032GOHVhl','lodash','12nMMUrO','metadata','1226mrXLhN','artifactType','source','filter','detail','bool','--metadata\x20must\x20be\x20a\x20JSON\x20object.','Invalid\x20JSON\x20for\x20--metadata:\x20','Optional\x20source\x20filter,\x20for\x20example\x20AGENT','parse','boolean','updateTime','.\x20Unsupported:\x20','POST','271312OtSbnr','content','appCode','string'];a7_0x5707=function(){return _0x16f894;};return a7_0x5707();}function getPackageName(_0x16139d){const _0x10d3b1=a7_0x1147d8;if(_0x16139d['startsWith']('@')){const [_0x32f16f,_0x4b6875]=_0x16139d[_0x10d3b1(0xde)]('/');return _0x32f16f&&_0x4b6875?_0x32f16f+'/'+_0x4b6875:_0x16139d;}return _0x16139d[_0x10d3b1(0xde)]('/')[0x0]||_0x16139d;}function validateAllowedImports(_0x4fa34e){const _0x3d10ed=a7_0x1147d8,_0xc4c604=new Set();for(const _0x5efa59 of IMPORT_SOURCE_PATTERNS){_0x5efa59[_0x3d10ed(0x10d)]=0x0;let _0x4adf71;while((_0x4adf71=_0x5efa59[_0x3d10ed(0xdb)](_0x4fa34e))!==null){const _0x42a003=_0x4adf71[0x1]?.[_0x3d10ed(0xe0)]();_0x42a003&&_0xc4c604[_0x3d10ed(0x107)](_0x42a003);}}const _0x31dafc=[..._0xc4c604][_0x3d10ed(0xd2)](getPackageName)[_0x3d10ed(0xee)](_0x4cc3d6=>!ALLOWED_REACT_MODULE_IMPORTS[_0x3d10ed(0x102)](_0x4cc3d6));if(_0x31dafc[_0x3d10ed(0x101)]>0x0)throw CliErrors[_0x3d10ed(0xce)]('react_module\x20imports\x20are\x20limited\x20to:\x20'+ALLOWED_REACT_MODULE_IMPORTS_TEXT+_0x3d10ed(0xf7)+[...new Set(_0x31dafc)][_0x3d10ed(0x117)](',\x20'));}export function validateReactModuleSource(_0x18c96c){const _0x3ca48e=a7_0x1147d8;if(!_0x18c96c[_0x3ca48e(0xe0)]())throw CliErrors[_0x3ca48e(0xce)](_0x3ca48e(0xd9));if(PAGE_LEVEL_PATTERNS[_0x3ca48e(0xd4)](_0x46d55c=>_0x46d55c[_0x3ca48e(0x10f)](_0x18c96c)))throw CliErrors[_0x3ca48e(0xce)]('react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.');validateAllowedImports(_0x18c96c);}function buildArtifactInput(_0x1cb504){const _0x3c76c0=a7_0x1147d8,_0x2e3628=readSourceFile(_0x1cb504[_0x3c76c0(0xe2)](_0x3c76c0(0xd0))),_0x503f0d=_0x1cb504[_0x3c76c0(0xe2)]('name')[_0x3c76c0(0xe0)](),_0x3a4b8c=parseMetadata(_0x1cb504[_0x3c76c0(0xe2)](_0x3c76c0(0xea)));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x503f0d?{'name':_0x503f0d}:{},'content':_0x2e3628,..._0x3a4b8c?{'metadata':_0x3a4b8c}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0x3565b2){const _0x536f5e=a7_0x1147d8;return{'id':_0x3565b2['id'],'name':_0x3565b2[_0x536f5e(0xd5)],'artifactType':_0x3565b2[_0x536f5e(0xec)],'source':_0x3565b2[_0x536f5e(0xed)],'favorite':_0x3565b2[_0x536f5e(0xc9)],'deleted':_0x3565b2[_0x536f5e(0xd7)],'createTime':_0x3565b2[_0x536f5e(0xdc)],'updateTime':_0x3565b2[_0x536f5e(0xf6)]};}function a7_0x1ff3(_0x1baf27,_0x384230){_0x1baf27=_0x1baf27-0xc9;const _0x57071b=a7_0x5707();let _0x1ff3ec=_0x57071b[_0x1baf27];return _0x1ff3ec;}function detailArtifact(_0x26b968){const _0x113cfb=a7_0x1147d8;return{'id':_0x26b968['id'],'appCode':_0x26b968['appCode'],'name':_0x26b968[_0x113cfb(0xd5)],'artifactType':_0x26b968[_0x113cfb(0xec)],'source':_0x26b968[_0x113cfb(0xed)],'favorite':_0x26b968[_0x113cfb(0xc9)],'deleted':_0x26b968[_0x113cfb(0xd7)],'content':_0x26b968[_0x113cfb(0xfa)]??'','compiledContent':_0x26b968[_0x113cfb(0xcd)],'metadata':_0x26b968[_0x113cfb(0xea)]??{},'createTime':_0x26b968[_0x113cfb(0xdc)],'updateTime':_0x26b968[_0x113cfb(0xf6)]};}function readFavoriteFlag(_0x114e0b){const _0x54f950=a7_0x1147d8,_0x3fed6a=_0x114e0b['flag']('favorite');return _0x3fed6a===undefined||_0x3fed6a===null||_0x3fed6a===''?undefined:_0x114e0b['bool'](_0x54f950(0xc9));}const artifactList={'service':a7_0x1147d8(0xff),'command':'list','description':a7_0x1147d8(0x109),'risk':a7_0x1147d8(0xd3),'flags':[{'name':a7_0x1147d8(0xed),'type':a7_0x1147d8(0xfc),'description':a7_0x1147d8(0xf3)},{'name':a7_0x1147d8(0xc9),'type':a7_0x1147d8(0xf5),'description':'Optional\x20favorite-state\x20filter'},VERBOSE_FLAG],async 'execute'(_0x1716bb){const _0x2d2486=a7_0x1147d8,_0x1e7927=await listRuntimeArtifacts(_0x1716bb[_0x2d2486(0xfb)],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x1716bb[_0x2d2486(0xe2)]('source')?{'source':_0x1716bb[_0x2d2486(0xe2)](_0x2d2486(0xed))}:{},...readFavoriteFlag(_0x1716bb)!==undefined?{'favorite':readFavoriteFlag(_0x1716bb)}:{}});return{'ok':!![],'data':{'total':_0x1e7927['length'],'items':_0x1716bb[_0x2d2486(0xf0)](_0x2d2486(0xe5))?_0x1e7927:_0x1e7927[_0x2d2486(0xd2)](summarizeArtifact)}};}},artifactDetail={'service':a7_0x1147d8(0xff),'command':a7_0x1147d8(0xef),'description':a7_0x1147d8(0xd1),'risk':a7_0x1147d8(0xd3),'flags':[{...ID_FLAG,'description':a7_0x1147d8(0xcb)}],async 'execute'(_0x23f7e7){const _0x2cd24f=a7_0x1147d8,_0x291156=await getRuntimeArtifact(_0x23f7e7['num']('id'),_0x23f7e7[_0x2cd24f(0xfb)]);return{'ok':!![],'data':detailArtifact(_0x291156)};}},artifactCreate={'service':a7_0x1147d8(0xff),'command':'create','description':a7_0x1147d8(0xe4),'risk':a7_0x1147d8(0xdd),'flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x422776){const _0x30e8a4=a7_0x1147d8,_0x1cdcea=buildArtifactInput(_0x422776),_0x256e47=await createRuntimeArtifact(_0x422776[_0x30e8a4(0xfb)],_0x1cdcea);return{'ok':!![],'data':detailArtifact(_0x256e47),'message':_0x30e8a4(0xda)+_0x256e47['id']+(_0x256e47['name']?'\x20('+_0x256e47['name']+')':'')};},async 'dryRun'(_0x19cf9b){const _0x26d5de=a7_0x1147d8,_0x330f40=buildArtifactInput(_0x19cf9b);return dryRun(_0x26d5de(0xf8),'/client/artifact/create')[_0x26d5de(0xe3)]({'appCode':_0x19cf9b[_0x26d5de(0xfb)],..._0x330f40})['description'](_0x26d5de(0x105))[_0x26d5de(0xca)]();}},artifactUpdate={'service':a7_0x1147d8(0xff),'command':'update','description':'Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','risk':a7_0x1147d8(0xdd),'flags':[{...ID_FLAG,'description':a7_0x1147d8(0xcb)},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x5c94ed){const _0x4e9d81=a7_0x1147d8,_0x21f7a9=_0x5c94ed[_0x4e9d81(0x10c)]('id'),_0xa48fff=buildArtifactInput(_0x5c94ed),_0x259c46=await updateRuntimeArtifact(_0x21f7a9,_0x5c94ed[_0x4e9d81(0xfb)],_0xa48fff);return{'ok':!![],'data':detailArtifact(_0x259c46),'message':'Updated\x20Artifact\x20'+_0x259c46['id']+(_0x259c46['name']?'\x20('+_0x259c46['name']+')':'')};},async 'dryRun'(_0x585755){const _0x14ae57=a7_0x1147d8,_0x2267af=_0x585755[_0x14ae57(0x10c)]('id'),_0x46c56f=buildArtifactInput(_0x585755);return dryRun(_0x14ae57(0xf8),_0x14ae57(0xfd)+_0x2267af+_0x14ae57(0x100))[_0x14ae57(0xe3)]({'appCode':_0x585755[_0x14ae57(0xfb)],..._0x46c56f})[_0x14ae57(0x113)](_0x14ae57(0xe1)+_0x2267af)[_0x14ae57(0xca)]();}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
@@ -1 +1 @@
1
- const a8_0x209514=a8_0x24ef;(function(_0xd0cf6f,_0xef0452){const _0x43074d=a8_0x24ef,_0x18fed1=_0xd0cf6f();while(!![]){try{const _0x1d0739=parseInt(_0x43074d(0x184))/0x1*(parseInt(_0x43074d(0x176))/0x2)+-parseInt(_0x43074d(0x16f))/0x3*(parseInt(_0x43074d(0x1bd))/0x4)+parseInt(_0x43074d(0x185))/0x5+parseInt(_0x43074d(0x1ae))/0x6+parseInt(_0x43074d(0x189))/0x7*(parseInt(_0x43074d(0x1aa))/0x8)+-parseInt(_0x43074d(0x1b8))/0x9*(parseInt(_0x43074d(0x182))/0xa)+-parseInt(_0x43074d(0x197))/0xb*(-parseInt(_0x43074d(0x180))/0xc);if(_0x1d0739===_0xef0452)break;else _0x18fed1['push'](_0x18fed1['shift']());}catch(_0x3122e6){_0x18fed1['push'](_0x18fed1['shift']());}}}(a8_0x4b54,0xebac5));import{readScopedConfig,writeScopedConfig}from'../../context.js';function a8_0x4b54(){const _0x10dd39=['AccessKey\x20saved\x20to\x20','Auth\x20config\x20reinitialized\x20in\x20','validation','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','stdout','\x20config.','logout','Auth\x20mode:\x20','Missing\x20accessKey.','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','\x20config','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','No\x20AccessKey\x20found\x20in\x20','newConfigFileName','264792theolV','env','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','project','3061452XGPJzs','Shorthand\x20for\x20--access-key','cancelled','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','envName','ACCESS_KEY','Clear\x20from\x20global\x20config\x20(default)','AccessKey\x20cleared\x20from\x20','join','boolean','2565nnOOwv','Write\x20to\x20global\x20config\x20(default)','\x20auth\x20login\x20--access-key\x20<ak_xxx>','str','Read\x20from\x20global\x20config\x20(default)','1216PTMHBw','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','accessKey','\x20(via\x20','status','isTTY','production','Tip:\x20you\x20can\x20also\x20run:','repeat','AccessKey:\x20','read','14559RcpSdu','global','Then\x20verify\x20with:\x20','string','\x20auth\x20status','access-key','Option\x20A:\x20','600560tHHNqL','login','write','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','\x20env\x20var','nonInteractive','userCenterDisplayName','\x20scope.','=ak_xxx','4907316TsxWwo','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','33550pmrndJ','length','1twzRce','7683515mAwcct','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','bool','trim','49uVERHP','\x20Verify:\x20','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','test','AccessKey\x20(ak_xxx...)','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','Use\x20`','yes','info','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','stdin','push','development','\x20\x20export\x20','22qppjmp','init','auth'];a8_0x4b54=function(){return _0x10dd39;};return a8_0x4b54();}import{CLI_BIN_NAME}from'../../constant/cli.js';function a8_0x24ef(_0x3416a6,_0x8cf80c){_0x3416a6=_0x3416a6-0x16c;const _0x4b5408=a8_0x4b54();let _0x24ef1f=_0x4b5408[_0x3416a6];return _0x24ef1f;}import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{getLoginUserInfo}from'../../core/api-client.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function showAccessKeyCreateHint(){const _0x14bd2e=a8_0x24ef;writeCliSideChannelLine(_0x14bd2e(0x19e)+PRODUCT_CONFIG[_0x14bd2e(0x17d)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x14bd2e(0x1c4)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x14bd2e(0x1ba));}function buildAccessKeySetupGuide(){const _0xebb561=a8_0x24ef;return[_0xebb561(0x19e)+PRODUCT_CONFIG[_0xebb561(0x17d)]+':',USER_ACCESS_KEY_CREATE_URL,_0xebb561(0x192)+CLI_BIN_NAME+_0xebb561(0x186)][_0xebb561(0x1b6)]('\x0a');}function canPromptForAccessKey(_0x160b88){const _0x2ebc18=a8_0x24ef;return!_0x160b88[_0x2ebc18(0x17c)]&&process[_0x2ebc18(0x193)][_0x2ebc18(0x1c2)]!==![]&&process[_0x2ebc18(0x19f)][_0x2ebc18(0x1c2)]!==![];}function resolveAuthScopeFlags(_0x2b19b0){const _0x283619=a8_0x24ef;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x2b19b0[_0x283619(0x187)](_0x283619(0x170)),'explicitProject':_0x2b19b0['bool'](_0x283619(0x1ad)),'policy':'global-default'}));}async function resolveAuthWriteInput(_0x4b4cd0){const _0x5a5e4d=a8_0x24ef;let _0x554c27=(_0x4b4cd0['str']('access-key')||_0x4b4cd0[_0x5a5e4d(0x1bb)]('ak')||'')[_0x5a5e4d(0x188)]();const _0x55b22f=(_0x4b4cd0['str']('env')||'')[_0x5a5e4d(0x188)]();if(!_0x554c27&&canPromptForAccessKey(_0x4b4cd0))try{showAccessKeyCreateHint(),_0x554c27=await promptAccessKey('');}catch(_0x3b9e76){if(isAbortPrompt(_0x3b9e76))throw CliErrors[_0x5a5e4d(0x1b0)]();throw _0x3b9e76;}if(!_0x554c27)throw CliErrors[_0x5a5e4d(0x19c)](_0x5a5e4d(0x1a3),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x5a5e4d(0x18c)](_0x554c27))throw CliErrors['validation']('Invalid\x20accessKey\x20format:\x20\x22'+_0x554c27+'\x22',_0x5a5e4d(0x1b1));if(!_0x55b22f)return{'accessKey':_0x554c27};const _0x50638b=normalizeEnv(_0x55b22f);return{'accessKey':_0x554c27,'env':isDaily(_0x50638b)?'daily':isDev(_0x50638b)?_0x5a5e4d(0x195):'production'};}export const authDefinitions=[{'service':'auth','command':a8_0x209514(0x177),'description':a8_0x209514(0x19d),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'access-key','type':'string','description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':a8_0x209514(0x172),'description':a8_0x209514(0x1af)},{'name':a8_0x209514(0x170),'type':a8_0x209514(0x1b7),'description':a8_0x209514(0x1b9),'default':!![]},{'name':a8_0x209514(0x1ad),'type':a8_0x209514(0x1b7),'description':a8_0x209514(0x1a5),'default':![]}],async 'execute'(_0x47a937){const _0x5776f5=a8_0x209514;if(_0x47a937[_0x5776f5(0x187)](_0x5776f5(0x190)))throw CliErrors['validation']('`auth\x20login`\x20does\x20not\x20support\x20--yes.',_0x5776f5(0x18f)+CLI_BIN_NAME+_0x5776f5(0x17a)+CLI_BIN_NAME+_0x5776f5(0x181));const _0x5a1745=(_0x47a937[_0x5776f5(0x1bb)](_0x5776f5(0x174))||_0x47a937['str']('ak')||'')['trim']();if(!_0x5a1745&&_0x47a937[_0x5776f5(0x17c)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x5e0322=await resolveAuthWriteInput(_0x47a937),_0x201ce1=resolveAuthScopeFlags(_0x47a937),_0x36e4a8=readScopedConfig(_0x201ce1);_0x36e4a8['accessKey']=_0x5e0322[_0x5776f5(0x1bf)];_0x5e0322[_0x5776f5(0x1ab)]&&(_0x36e4a8['env']=_0x5e0322[_0x5776f5(0x1ab)]);writeScopedConfig(_0x36e4a8,_0x201ce1);const _0x1f95e2=_0x201ce1[_0x5776f5(0x170)]?_0x5776f5(0x170):_0x5776f5(0x1ad),_0x4b7318=_0x36e4a8[_0x5776f5(0x1ab)]?'\x20Current\x20env:\x20'+_0x36e4a8[_0x5776f5(0x1ab)]+'.':'';return{'ok':!![],'message':_0x5776f5(0x19a)+_0x1f95e2+_0x5776f5(0x1a0)+_0x4b7318+_0x5776f5(0x18a)+CLI_BIN_NAME+_0x5776f5(0x173)};}},{'service':a8_0x209514(0x199),'command':a8_0x209514(0x198),'description':a8_0x209514(0x1be),'risk':a8_0x209514(0x178),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a8_0x209514(0x174),'type':a8_0x209514(0x172),'description':a8_0x209514(0x18d)},{'name':'ak','type':a8_0x209514(0x172),'description':a8_0x209514(0x1af)},{'name':a8_0x209514(0x1ab),'type':'string','description':a8_0x209514(0x1ac)},{'name':a8_0x209514(0x170),'type':a8_0x209514(0x1b7),'description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':'project','type':a8_0x209514(0x1b7),'description':'Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x349c34){const _0x4a5220=a8_0x209514,_0x5e5d00=await resolveAuthWriteInput(_0x349c34),_0x2d5503=resolveAuthScopeFlags(_0x349c34),_0x1d8e29={'accessKey':_0x5e5d00[_0x4a5220(0x1bf)]};_0x5e5d00['env']&&(_0x1d8e29[_0x4a5220(0x1ab)]=_0x5e5d00['env']);writeScopedConfig(_0x1d8e29,_0x2d5503);const _0x2e39b2=_0x2d5503[_0x4a5220(0x170)]?_0x4a5220(0x170):_0x4a5220(0x1ad),_0x4caffd=_0x1d8e29[_0x4a5220(0x1ab)]?'\x20Current\x20env:\x20'+_0x1d8e29['env']+'.':'';return{'ok':!![],'message':_0x4a5220(0x19b)+_0x2e39b2+_0x4a5220(0x17e)+_0x4caffd+'\x20Verify:\x20'+CLI_BIN_NAME+_0x4a5220(0x173)};}},{'service':'auth','command':a8_0x209514(0x1a1),'description':'Clear\x20accessKey\x20from\x20config','risk':a8_0x209514(0x178),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a8_0x209514(0x170),'type':a8_0x209514(0x1b7),'description':a8_0x209514(0x1b4),'default':!![]},{'name':'project','type':a8_0x209514(0x1b7),'description':a8_0x209514(0x1a7),'default':![]}],async 'execute'(_0x11b891){const _0x97217c=a8_0x209514,_0x47ee87=resolveAuthScopeFlags(_0x11b891),_0x461378=readScopedConfig(_0x47ee87),_0x5c9ee4=!!_0x461378[_0x97217c(0x1bf)];delete _0x461378[_0x97217c(0x1bf)],writeScopedConfig(_0x461378,_0x47ee87);const _0x311426=_0x47ee87['global']?'global':_0x97217c(0x1ad);if(_0x5c9ee4)return{'ok':!![],'message':_0x97217c(0x1b5)+_0x311426+'\x20config.'};return{'ok':!![],'message':_0x97217c(0x1a8)+_0x311426+'\x20config.\x20Nothing\x20to\x20clear.'};}},{'service':a8_0x209514(0x199),'command':a8_0x209514(0x1c1),'description':'Show\x20current\x20authentication\x20status','risk':a8_0x209514(0x16e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a8_0x209514(0x170),'type':a8_0x209514(0x1b7),'description':a8_0x209514(0x1bc),'default':!![]},{'name':'project','type':'boolean','description':a8_0x209514(0x1a4),'default':![]}],async 'execute'(_0xe7e6e2){const _0x134043=a8_0x209514,_0x5ef15d=resolveAuthScopeFlags(_0xe7e6e2),_0x197258=readScopedConfig(_0x5ef15d),_0x345b60=productEnvName(_0x134043(0x1b3)),_0x1c0d76=productEnv(_0x134043(0x1b3))||undefined,_0x2865e2=_0x197258[_0x134043(0x1bf)]||undefined,_0x3d7b98=_0x1c0d76||_0x2865e2,_0x49181d=_0x1c0d76?_0x345b60+_0x134043(0x17b):_0x2865e2?(_0x5ef15d['global']?_0x134043(0x170):_0x134043(0x1ad))+_0x134043(0x1a6):null,_0x414152=[_0x134043(0x1a2)+AUTH_MODE['ClientAk']];if(_0x3d7b98){const _0x920970=_0x3d7b98[_0x134043(0x183)]>0x8?''+_0x3d7b98['slice'](0x0,0x8)+'*'[_0x134043(0x16c)](_0x3d7b98[_0x134043(0x183)]-0x8):_0x3d7b98;_0x414152[_0x134043(0x194)](_0x134043(0x16d)+_0x920970+(_0x49181d?_0x134043(0x1c0)+_0x49181d+')':''));}return!_0x3d7b98&&(_0x414152[_0x134043(0x194)](''),_0x414152[_0x134043(0x194)](_0x134043(0x179)),_0x414152[_0x134043(0x194)](''),_0x414152['push'](_0x134043(0x175)+CLI_BIN_NAME+'\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]'),_0x414152[_0x134043(0x194)](''),_0x414152['push']('Option\x20B:\x20apps\x20config\x20('+PRODUCT_CONFIG[_0x134043(0x1a9)]+')'),_0x414152['push'](_0x134043(0x18e)),_0x414152[_0x134043(0x194)](''),_0x414152[_0x134043(0x194)]('Option\x20C:\x20environment\x20variable'),_0x414152[_0x134043(0x194)](_0x134043(0x196)+_0x345b60+_0x134043(0x17f)),_0x414152[_0x134043(0x194)](''),_0x414152[_0x134043(0x194)](_0x134043(0x171)+CLI_BIN_NAME+_0x134043(0x173)),_0x414152[_0x134043(0x194)]('If\x20command\x20execution\x20still\x20fails,\x20run:\x20'+CLI_BIN_NAME+'\x20doctor')),{'ok':!![],'message':_0x414152[_0x134043(0x1b6)]('\x0a')};}},{'service':a8_0x209514(0x199),'command':a8_0x209514(0x191),'description':a8_0x209514(0x18b),'risk':a8_0x209514(0x16e),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x2a2842){const _0x309fcf=a8_0x209514,_0x322268=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x322268,'meta':{'env':_0x2a2842[_0x309fcf(0x1b2)]??_0x309fcf(0x1c3)}}};}}];
1
+ const a8_0x329f89=a8_0x202d;(function(_0x199344,_0x331106){const _0xd8eb33=a8_0x202d,_0x4b39ec=_0x199344();while(!![]){try{const _0x33d788=parseInt(_0xd8eb33(0x213))/0x1+-parseInt(_0xd8eb33(0x1fd))/0x2*(parseInt(_0xd8eb33(0x1c1))/0x3)+-parseInt(_0xd8eb33(0x1dd))/0x4+-parseInt(_0xd8eb33(0x1f4))/0x5*(-parseInt(_0xd8eb33(0x1ee))/0x6)+parseInt(_0xd8eb33(0x1c6))/0x7*(-parseInt(_0xd8eb33(0x1db))/0x8)+-parseInt(_0xd8eb33(0x1ff))/0x9*(parseInt(_0xd8eb33(0x20e))/0xa)+parseInt(_0xd8eb33(0x1e1))/0xb;if(_0x33d788===_0x331106)break;else _0x4b39ec['push'](_0x4b39ec['shift']());}catch(_0x59cb9b){_0x4b39ec['push'](_0x4b39ec['shift']());}}}(a8_0x4898,0x203f8));import{readScopedConfig,writeScopedConfig}from'../../context.js';function a8_0x4898(){const _0x437a3c=['3ZAOGxu','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','AccessKey:\x20','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','\x20auth\x20login\x20--access-key\x20<ak_xxx>','720881MLPfYS','boolean','Shorthand\x20for\x20--access-key','daily','bool','\x20scope.','\x20config.','\x20auth\x20status','No\x20AccessKey\x20found\x20in\x20','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','accessKey','AccessKey\x20cleared\x20from\x20','Auth\x20config\x20reinitialized\x20in\x20','length','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','ClientAk','Then\x20verify\x20with:\x20','auth','nonInteractive','16HjKpnE','AccessKey\x20(ak_xxx...)','124168ydZPCF','Show\x20current\x20authentication\x20status','Read\x20from\x20global\x20config\x20(default)','\x20config','3631441HjIgSl','\x20(via\x20','write','join','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','global','userCenterDisplayName','trim','stdout','global-default','\x20doctor','validation','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','132FzotSe','cancelled','\x20env\x20var','isTTY','yes','ACCESS_KEY','47045QVPvbp','status','\x20Verify:\x20','read','Missing\x20accessKey.','info','string','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','Auth\x20mode:\x20','248174qkgxVG','push','66042pfaJkq','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','env','Clear\x20accessKey\x20from\x20config','production','init','access-key','Option\x20A:\x20','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','=ak_xxx','login','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','stdin','AccessKey\x20saved\x20to\x20','str','90ydpfqM','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','Tip:\x20you\x20can\x20also\x20run:','project','slice','22096Yditma','\x20Current\x20env:\x20','Write\x20to\x20global\x20config\x20(default)','development','Option\x20C:\x20environment\x20variable'];a8_0x4898=function(){return _0x437a3c;};return a8_0x4898();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';function a8_0x202d(_0x1df3ec,_0x120221){_0x1df3ec=_0x1df3ec-0x1bd;const _0x4898f6=a8_0x4898();let _0x202def=_0x4898f6[_0x1df3ec];return _0x202def;}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 _0x4defec=a8_0x202d;writeCliSideChannelLine('AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0x4defec(0x1e7)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x4defec(0x210)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x4defec(0x1c5));}function buildAccessKeySetupGuide(){const _0x29b0b4=a8_0x202d;return[_0x29b0b4(0x1c2)+PRODUCT_CONFIG[_0x29b0b4(0x1e7)]+':',USER_ACCESS_KEY_CREATE_URL,_0x29b0b4(0x20f)+CLI_BIN_NAME+_0x29b0b4(0x20a)][_0x29b0b4(0x1e4)]('\x0a');}function canPromptForAccessKey(_0x352443){const _0x1f9305=a8_0x202d;return!_0x352443['nonInteractive']&&process[_0x1f9305(0x20b)]['isTTY']!==![]&&process[_0x1f9305(0x1e9)][_0x1f9305(0x1f1)]!==![];}function resolveAuthScopeFlags(_0x390d42){const _0x1be5e5=a8_0x202d;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x390d42[_0x1be5e5(0x1ca)](_0x1be5e5(0x1e6)),'explicitProject':_0x390d42[_0x1be5e5(0x1ca)](_0x1be5e5(0x211)),'policy':_0x1be5e5(0x1ea)}));}async function resolveAuthWriteInput(_0x4bd6a9){const _0x540ed4=a8_0x202d;let _0x5d287d=(_0x4bd6a9[_0x540ed4(0x20d)](_0x540ed4(0x205))||_0x4bd6a9[_0x540ed4(0x20d)]('ak')||'')[_0x540ed4(0x1e8)]();const _0x5bcbfb=(_0x4bd6a9[_0x540ed4(0x20d)](_0x540ed4(0x201))||'')[_0x540ed4(0x1e8)]();if(!_0x5d287d&&canPromptForAccessKey(_0x4bd6a9))try{showAccessKeyCreateHint(),_0x5d287d=await promptAccessKey('');}catch(_0x3f94fd){if(isAbortPrompt(_0x3f94fd))throw CliErrors[_0x540ed4(0x1ef)]();throw _0x3f94fd;}if(!_0x5d287d)throw CliErrors[_0x540ed4(0x1ec)](_0x540ed4(0x1f8),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN['test'](_0x5d287d))throw CliErrors[_0x540ed4(0x1ec)]('Invalid\x20accessKey\x20format:\x20\x22'+_0x5d287d+'\x22','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars');if(!_0x5bcbfb)return{'accessKey':_0x5d287d};const _0x42dadc=normalizeEnv(_0x5bcbfb);return{'accessKey':_0x5d287d,'env':isDaily(_0x42dadc)?_0x540ed4(0x1c9):isDev(_0x42dadc)?_0x540ed4(0x1bf):_0x540ed4(0x203)};}export const authDefinitions=[{'service':a8_0x329f89(0x1d9),'command':a8_0x329f89(0x209),'description':a8_0x329f89(0x207),'risk':a8_0x329f89(0x1e3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a8_0x329f89(0x205),'type':'string','description':a8_0x329f89(0x1dc)},{'name':'ak','type':a8_0x329f89(0x1fa),'description':'Shorthand\x20for\x20--access-key'},{'name':a8_0x329f89(0x1e6),'type':a8_0x329f89(0x1c7),'description':a8_0x329f89(0x1be),'default':!![]},{'name':a8_0x329f89(0x211),'type':'boolean','description':'Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x27067b){const _0x18aa18=a8_0x329f89;if(_0x27067b[_0x18aa18(0x1ca)](_0x18aa18(0x1f2)))throw CliErrors['validation']('`auth\x20login`\x20does\x20not\x20support\x20--yes.','Use\x20`'+CLI_BIN_NAME+'\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`'+CLI_BIN_NAME+_0x18aa18(0x1d5));const _0xe57fdd=(_0x27067b['str']('access-key')||_0x27067b[_0x18aa18(0x20d)]('ak')||'')[_0x18aa18(0x1e8)]();if(!_0xe57fdd&&_0x27067b[_0x18aa18(0x1da)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x2612f2=await resolveAuthWriteInput(_0x27067b),_0x236fca=resolveAuthScopeFlags(_0x27067b),_0x38baed=readScopedConfig(_0x236fca);_0x38baed[_0x18aa18(0x1d0)]=_0x2612f2['accessKey'];_0x2612f2[_0x18aa18(0x201)]&&(_0x38baed[_0x18aa18(0x201)]=_0x2612f2[_0x18aa18(0x201)]);writeScopedConfig(_0x38baed,_0x236fca);const _0xa6af97=_0x236fca[_0x18aa18(0x1e6)]?_0x18aa18(0x1e6):_0x18aa18(0x211),_0x282294=_0x38baed['env']?_0x18aa18(0x1bd)+_0x38baed[_0x18aa18(0x201)]+'.':'';return{'ok':!![],'message':_0x18aa18(0x20c)+_0xa6af97+_0x18aa18(0x1cc)+_0x282294+'\x20Verify:\x20'+CLI_BIN_NAME+_0x18aa18(0x1cd)};}},{'service':a8_0x329f89(0x1d9),'command':a8_0x329f89(0x204),'description':'Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','risk':a8_0x329f89(0x1e3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a8_0x329f89(0x205),'type':a8_0x329f89(0x1fa),'description':a8_0x329f89(0x1dc)},{'name':'ak','type':'string','description':a8_0x329f89(0x1c8)},{'name':a8_0x329f89(0x201),'type':a8_0x329f89(0x1fa),'description':a8_0x329f89(0x1d4)},{'name':'global','type':a8_0x329f89(0x1c7),'description':a8_0x329f89(0x1be),'default':!![]},{'name':a8_0x329f89(0x211),'type':a8_0x329f89(0x1c7),'description':a8_0x329f89(0x200),'default':![]}],async 'execute'(_0x2b7a19){const _0x18ce10=a8_0x329f89,_0x273dd1=await resolveAuthWriteInput(_0x2b7a19),_0x2a04f4=resolveAuthScopeFlags(_0x2b7a19),_0x53ed7a={'accessKey':_0x273dd1[_0x18ce10(0x1d0)]};_0x273dd1[_0x18ce10(0x201)]&&(_0x53ed7a[_0x18ce10(0x201)]=_0x273dd1['env']);writeScopedConfig(_0x53ed7a,_0x2a04f4);const _0x150353=_0x2a04f4[_0x18ce10(0x1e6)]?_0x18ce10(0x1e6):'project',_0xf07a8c=_0x53ed7a[_0x18ce10(0x201)]?_0x18ce10(0x1bd)+_0x53ed7a[_0x18ce10(0x201)]+'.':'';return{'ok':!![],'message':_0x18ce10(0x1d2)+_0x150353+_0x18ce10(0x1cb)+_0xf07a8c+_0x18ce10(0x1f6)+CLI_BIN_NAME+_0x18ce10(0x1cd)};}},{'service':a8_0x329f89(0x1d9),'command':'logout','description':a8_0x329f89(0x202),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a8_0x329f89(0x1e6),'type':a8_0x329f89(0x1c7),'description':'Clear\x20from\x20global\x20config\x20(default)','default':!![]},{'name':a8_0x329f89(0x211),'type':a8_0x329f89(0x1c7),'description':'Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x516808){const _0x4fe0b8=a8_0x329f89,_0x392664=resolveAuthScopeFlags(_0x516808),_0x47774b=readScopedConfig(_0x392664),_0x36d803=!!_0x47774b[_0x4fe0b8(0x1d0)];delete _0x47774b[_0x4fe0b8(0x1d0)],writeScopedConfig(_0x47774b,_0x392664);const _0x22ff89=_0x392664[_0x4fe0b8(0x1e6)]?_0x4fe0b8(0x1e6):_0x4fe0b8(0x211);if(_0x36d803)return{'ok':!![],'message':_0x4fe0b8(0x1d1)+_0x22ff89+_0x4fe0b8(0x1cc)};return{'ok':!![],'message':_0x4fe0b8(0x1ce)+_0x22ff89+'\x20config.\x20Nothing\x20to\x20clear.'};}},{'service':a8_0x329f89(0x1d9),'command':a8_0x329f89(0x1f5),'description':a8_0x329f89(0x1de),'risk':a8_0x329f89(0x1f7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'global','type':a8_0x329f89(0x1c7),'description':a8_0x329f89(0x1df),'default':!![]},{'name':a8_0x329f89(0x211),'type':a8_0x329f89(0x1c7),'description':a8_0x329f89(0x1c4),'default':![]}],async 'execute'(_0x23976d){const _0x543229=a8_0x329f89,_0x51e287=resolveAuthScopeFlags(_0x23976d),_0x5c3001=readScopedConfig(_0x51e287),_0x60e594=productEnvName(_0x543229(0x1f3)),_0x51ddc2=productEnv(_0x543229(0x1f3))||undefined,_0x30f7b5=_0x5c3001[_0x543229(0x1d0)]||undefined,_0x5a2a8f=_0x51ddc2||_0x30f7b5,_0x428dcd=_0x51ddc2?_0x60e594+_0x543229(0x1f0):_0x30f7b5?(_0x51e287[_0x543229(0x1e6)]?_0x543229(0x1e6):'project')+_0x543229(0x1e0):null,_0xa721a4=[_0x543229(0x1fc)+AUTH_MODE[_0x543229(0x1d7)]];if(_0x5a2a8f){const _0x55eff0=_0x5a2a8f[_0x543229(0x1d3)]>0x8?''+_0x5a2a8f[_0x543229(0x212)](0x0,0x8)+'*'['repeat'](_0x5a2a8f[_0x543229(0x1d3)]-0x8):_0x5a2a8f;_0xa721a4[_0x543229(0x1fe)](_0x543229(0x1c3)+_0x55eff0+(_0x428dcd?_0x543229(0x1e2)+_0x428dcd+')':''));}return!_0x5a2a8f&&(_0xa721a4[_0x543229(0x1fe)](''),_0xa721a4[_0x543229(0x1fe)](_0x543229(0x1e5)),_0xa721a4[_0x543229(0x1fe)](''),_0xa721a4['push'](_0x543229(0x206)+CLI_BIN_NAME+_0x543229(0x1ed)),_0xa721a4['push'](''),_0xa721a4[_0x543229(0x1fe)]('Option\x20B:\x20apps\x20config\x20('+PRODUCT_CONFIG['newConfigFileName']+')'),_0xa721a4[_0x543229(0x1fe)](_0x543229(0x1cf)),_0xa721a4['push'](''),_0xa721a4[_0x543229(0x1fe)](_0x543229(0x1c0)),_0xa721a4[_0x543229(0x1fe)]('\x20\x20export\x20'+_0x60e594+_0x543229(0x208)),_0xa721a4['push'](''),_0xa721a4[_0x543229(0x1fe)](_0x543229(0x1d8)+CLI_BIN_NAME+_0x543229(0x1cd)),_0xa721a4[_0x543229(0x1fe)](_0x543229(0x1d6)+CLI_BIN_NAME+_0x543229(0x1eb))),{'ok':!![],'message':_0xa721a4['join']('\x0a')};}},{'service':a8_0x329f89(0x1d9),'command':a8_0x329f89(0x1f9),'description':a8_0x329f89(0x1fb),'risk':a8_0x329f89(0x1f7),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x40b08a){const _0x465eaa=a8_0x329f89,_0x46689c=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x46689c,'meta':{'env':_0x40b08a['envName']??_0x465eaa(0x203)}}};}}];
@@ -1 +1 @@
1
- (function(_0x8dd097,_0x3263b5){const _0x39c689=a9_0x45ea,_0x124805=_0x8dd097();while(!![]){try{const _0x397850=-parseInt(_0x39c689(0x145))/0x1*(parseInt(_0x39c689(0x14b))/0x2)+-parseInt(_0x39c689(0x13e))/0x3+-parseInt(_0x39c689(0x14c))/0x4+-parseInt(_0x39c689(0x144))/0x5+-parseInt(_0x39c689(0x146))/0x6*(-parseInt(_0x39c689(0x149))/0x7)+parseInt(_0x39c689(0x148))/0x8+parseInt(_0x39c689(0x142))/0x9*(parseInt(_0x39c689(0x141))/0xa);if(_0x397850===_0x3263b5)break;else _0x124805['push'](_0x124805['shift']());}catch(_0x9e507d){_0x124805['push'](_0x124805['shift']());}}}(a9_0x45c8,0xda88a));function a9_0x45ea(_0x4ef58b,_0x391669){_0x4ef58b=_0x4ef58b-0x13c;const _0x45c8d6=a9_0x45c8();let _0x45ea1b=_0x45c8d6[_0x4ef58b];return _0x45ea1b;}import{createInterface}from'node:readline';function a9_0x45c8(){const _0x34a8f5=['691661SMyczq','642fcJXPy','AccessKey\x20(','5139120TrKehW','113834ZiOnZM','SIGINT','4YgxVjS','6182648jIHZMS','):\x20','AbortPrompt','3856836CYPLFu','stdout','name','1114290QkHtAJ','351szKvIM','removeListener','8092225tWjIbq'];a9_0x45c8=function(){return _0x34a8f5;};return a9_0x45c8();}class AbortPrompt extends Error{constructor(){super('User\x20aborted\x20prompt'),this['name']='AbortPrompt';}}function createSafeRl(){const _0xb39404=a9_0x45ea,_0x476de6=createInterface({'input':process['stdin'],'output':process[_0xb39404(0x13f)]});let _0x531a6c;const _0xe9639d=new Promise((_0x4ac46f,_0xb106dd)=>{const _0x1aa8a0=_0xb39404;_0x531a6c=()=>{const _0x5e21ba=a9_0x45ea;_0x531a6c&&(_0x476de6['removeListener'](_0x5e21ba(0x14a),_0x531a6c),_0x531a6c=undefined);try{_0x476de6['close']();}catch{}_0xb106dd(new AbortPrompt());},_0x476de6['once'](_0x1aa8a0(0x14a),_0x531a6c);}),_0x468604=()=>{const _0x43685b=_0xb39404;_0x531a6c&&(_0x476de6[_0x43685b(0x143)](_0x43685b(0x14a),_0x531a6c),_0x531a6c=undefined);try{_0x476de6['close']();}catch{}};return{'rl':_0x476de6,'abortPromise':_0xe9639d,'disposeSuccess':_0x468604};}export async function promptAccessKey(_0x5b43f7=''){const {rl:_0x210b4b,abortPromise:_0x2e3008,disposeSuccess:_0x19d176}=createSafeRl(),_0x37a7e9=new Promise(_0x23b6b1=>{const _0x39ffbb=a9_0x45ea,_0x378d67=_0x5b43f7?_0x39ffbb(0x147)+_0x5b43f7+_0x39ffbb(0x13c):'AccessKey\x20(paste\x20ak_...):\x20';_0x210b4b['question'](_0x378d67,_0x567e15=>{_0x19d176(),_0x23b6b1(_0x567e15['trim']()||_0x5b43f7);});});return Promise['race']([_0x37a7e9,_0x2e3008]);}export function isAbortPrompt(_0x1f953a){const _0x21c7dc=a9_0x45ea;return _0x1f953a instanceof Error&&_0x1f953a[_0x21c7dc(0x140)]===_0x21c7dc(0x13d);}
1
+ function a9_0x29b0(_0x425da4,_0x55a114){_0x425da4=_0x425da4-0x6c;const _0x21d5ac=a9_0x21d5();let _0x29b08a=_0x21d5ac[_0x425da4];return _0x29b08a;}(function(_0xc8685d,_0x4bc07e){const _0xfe836=a9_0x29b0,_0x38a1b9=_0xc8685d();while(!![]){try{const _0x396e22=parseInt(_0xfe836(0x6d))/0x1+parseInt(_0xfe836(0x70))/0x2*(-parseInt(_0xfe836(0x7d))/0x3)+parseInt(_0xfe836(0x72))/0x4*(-parseInt(_0xfe836(0x76))/0x5)+-parseInt(_0xfe836(0x74))/0x6*(-parseInt(_0xfe836(0x7c))/0x7)+parseInt(_0xfe836(0x78))/0x8+-parseInt(_0xfe836(0x82))/0x9+-parseInt(_0xfe836(0x77))/0xa*(-parseInt(_0xfe836(0x81))/0xb);if(_0x396e22===_0x4bc07e)break;else _0x38a1b9['push'](_0x38a1b9['shift']());}catch(_0x239599){_0x38a1b9['push'](_0x38a1b9['shift']());}}}(a9_0x21d5,0x42354));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x1745cf=a9_0x29b0;super(_0x1745cf(0x79)),this['name']=_0x1745cf(0x6c);}}function a9_0x21d5(){const _0x58a751=['2DoIjRI','name','9252XiEjql','):\x20','6leSrdx','stdout','835YctihY','150GBcMWS','3925784NYoCjn','User\x20aborted\x20prompt','question','AccessKey\x20(paste\x20ak_...):\x20','3371123yQBsje','1545849xbSOPL','once','close','race','255739VeuMZe','2466153lYAWiT','trim','AbortPrompt','125712rSCzXK','stdin','removeListener'];a9_0x21d5=function(){return _0x58a751;};return a9_0x21d5();}function createSafeRl(){const _0x129f10=a9_0x29b0,_0x57ff56=createInterface({'input':process[_0x129f10(0x6e)],'output':process[_0x129f10(0x75)]});let _0x4b4231;const _0x2ebc0a=new Promise((_0xb6c54e,_0x56c5d7)=>{const _0x165d9a=_0x129f10;_0x4b4231=()=>{const _0x223619=a9_0x29b0;_0x4b4231&&(_0x57ff56[_0x223619(0x6f)]('SIGINT',_0x4b4231),_0x4b4231=undefined);try{_0x57ff56[_0x223619(0x7f)]();}catch{}_0x56c5d7(new AbortPrompt());},_0x57ff56[_0x165d9a(0x7e)]('SIGINT',_0x4b4231);}),_0xc38980=()=>{const _0x5e9f5e=_0x129f10;_0x4b4231&&(_0x57ff56['removeListener']('SIGINT',_0x4b4231),_0x4b4231=undefined);try{_0x57ff56[_0x5e9f5e(0x7f)]();}catch{}};return{'rl':_0x57ff56,'abortPromise':_0x2ebc0a,'disposeSuccess':_0xc38980};}export async function promptAccessKey(_0x1605a8=''){const _0x256c14=a9_0x29b0,{rl:_0x20971b,abortPromise:_0x1ed0da,disposeSuccess:_0x2ceeca}=createSafeRl(),_0x3ba61d=new Promise(_0x1939be=>{const _0x4aa7f8=a9_0x29b0,_0x1fbc75=_0x1605a8?'AccessKey\x20('+_0x1605a8+_0x4aa7f8(0x73):_0x4aa7f8(0x7b);_0x20971b[_0x4aa7f8(0x7a)](_0x1fbc75,_0xc5ced2=>{const _0x111f82=_0x4aa7f8;_0x2ceeca(),_0x1939be(_0xc5ced2[_0x111f82(0x83)]()||_0x1605a8);});});return Promise[_0x256c14(0x80)]([_0x3ba61d,_0x1ed0da]);}export function isAbortPrompt(_0x1d562d){const _0x1d6479=a9_0x29b0;return _0x1d562d instanceof Error&&_0x1d562d[_0x1d6479(0x71)]===_0x1d6479(0x6c);}
@@ -1 +1 @@
1
- const a10_0x3a5cb5=a10_0x3fbe;(function(_0x3a5653,_0x4b4549){const _0x4f05ee=a10_0x3fbe,_0x1e2122=_0x3a5653();while(!![]){try{const _0x16032f=-parseInt(_0x4f05ee(0xed))/0x1*(-parseInt(_0x4f05ee(0xff))/0x2)+-parseInt(_0x4f05ee(0xef))/0x3*(parseInt(_0x4f05ee(0xf2))/0x4)+parseInt(_0x4f05ee(0xf0))/0x5*(parseInt(_0x4f05ee(0xfb))/0x6)+-parseInt(_0x4f05ee(0x100))/0x7+-parseInt(_0x4f05ee(0xf9))/0x8+parseInt(_0x4f05ee(0xf7))/0x9+-parseInt(_0x4f05ee(0xea))/0xa*(parseInt(_0x4f05ee(0xfd))/0xb);if(_0x16032f===_0x4b4549)break;else _0x1e2122['push'](_0x1e2122['shift']());}catch(_0x2cafdf){_0x1e2122['push'](_0x1e2122['shift']());}}}(a10_0x1089,0xbd711));import{getBffScriptInfo}from'../../core/api-client.js';function a10_0x1089(){const _0x12fc84=['370zqMaoO','read','Get\x20BFF\x20script\x20details\x20by\x20ID','191bFdVlL','createdTime','489YzejuE','1786635UQHQhM','(none)','26712PDpUct','num','functionName','updatedTime','bff','13569183TYmIYD','description','6272568dEuyMM','Script\x20ID','12BSIroX','detail','58113fsacEk','scriptType','7414mKuHzG','604583nJPsGh','verbose','bool'];a10_0x1089=function(){return _0x12fc84;};return a10_0x1089();}function a10_0x3fbe(_0x54f8c5,_0x45d310){_0x54f8c5=_0x54f8c5-0xe8;const _0x108994=a10_0x1089();let _0x3fbe69=_0x108994[_0x54f8c5];return _0x3fbe69;}import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a10_0x3a5cb5(0xf6),'command':a10_0x3a5cb5(0xfc),'description':a10_0x3a5cb5(0xec),'risk':a10_0x3a5cb5(0xeb),'flags':[{...ID_FLAG,'description':a10_0x3a5cb5(0xfa)},VERBOSE_FLAG],async 'execute'(_0x38867e){const _0x5ef8c2=a10_0x3a5cb5,_0x225f7c=await getBffScriptInfo(_0x38867e[_0x5ef8c2(0xf3)]('id')),_0x1e640b=_0x38867e[_0x5ef8c2(0xe9)](_0x5ef8c2(0xe8));if(_0x1e640b)return{'ok':!![],'data':_0x225f7c};return{'ok':!![],'data':{'id':_0x225f7c['id'],'appCode':_0x225f7c['appCode'],'functionName':_0x225f7c[_0x5ef8c2(0xf4)]??'','scriptType':_0x225f7c[_0x5ef8c2(0xfe)],'description':_0x225f7c[_0x5ef8c2(0xf8)]||_0x5ef8c2(0xf1),'createdTime':_0x225f7c[_0x5ef8c2(0xee)]??'','updatedTime':_0x225f7c[_0x5ef8c2(0xf5)]??''}};}};
1
+ function a10_0x2c48(_0x5690a5,_0x57f384){_0x5690a5=_0x5690a5-0x11e;const _0x921cad=a10_0x921c();let _0x2c4823=_0x921cad[_0x5690a5];return _0x2c4823;}function a10_0x921c(){const _0x466489=['Script\x20ID','24TjTWHJ','100954tTtTRL','6770sYajsA','Get\x20BFF\x20script\x20details\x20by\x20ID','num','(none)','bff','997996eStKoE','96QvaQAR','updatedTime','description','detail','64yxgCPG','17019xKKcxi','192830WUAtpN','82285QGvUOU','verbose','4383dxwrpW','50IdOjbe','71596gXjLdO','bool'];a10_0x921c=function(){return _0x466489;};return a10_0x921c();}const a10_0x4a7b03=a10_0x2c48;(function(_0x3a58fa,_0x16cbbf){const _0xcd19b8=a10_0x2c48,_0x129780=_0x3a58fa();while(!![]){try{const _0x3fd2ca=-parseInt(_0xcd19b8(0x12e))/0x1+-parseInt(_0xcd19b8(0x129))/0x2*(parseInt(_0xcd19b8(0x124))/0x3)+parseInt(_0xcd19b8(0x11e))/0x4+parseInt(_0xcd19b8(0x126))/0x5*(parseInt(_0xcd19b8(0x12d))/0x6)+parseInt(_0xcd19b8(0x12a))/0x7*(-parseInt(_0xcd19b8(0x123))/0x8)+-parseInt(_0xcd19b8(0x128))/0x9*(-parseInt(_0xcd19b8(0x12f))/0xa)+-parseInt(_0xcd19b8(0x125))/0xb*(parseInt(_0xcd19b8(0x11f))/0xc);if(_0x3fd2ca===_0x16cbbf)break;else _0x129780['push'](_0x129780['shift']());}catch(_0x52e116){_0x129780['push'](_0x129780['shift']());}}}(a10_0x921c,0x2bfd7));import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a10_0x4a7b03(0x133),'command':a10_0x4a7b03(0x122),'description':a10_0x4a7b03(0x130),'risk':'read','flags':[{...ID_FLAG,'description':a10_0x4a7b03(0x12c)},VERBOSE_FLAG],async 'execute'(_0x1b5b92){const _0x7d9c86=a10_0x4a7b03,_0x5b59e8=await getBffScriptInfo(_0x1b5b92[_0x7d9c86(0x131)]('id')),_0x432bcd=_0x1b5b92[_0x7d9c86(0x12b)](_0x7d9c86(0x127));if(_0x432bcd)return{'ok':!![],'data':_0x5b59e8};return{'ok':!![],'data':{'id':_0x5b59e8['id'],'appCode':_0x5b59e8['appCode'],'functionName':_0x5b59e8['functionName']??'','scriptType':_0x5b59e8['scriptType'],'description':_0x5b59e8[_0x7d9c86(0x121)]||_0x7d9c86(0x132),'createdTime':_0x5b59e8['createdTime']??'','updatedTime':_0x5b59e8[_0x7d9c86(0x120)]??''}};}};
@@ -1 +1 @@
1
- function a11_0x417b(_0x59de40,_0x46b578){_0x59de40=_0x59de40-0xba;const _0x4bf9a3=a11_0x4bf9();let _0x417b8c=_0x4bf9a3[_0x59de40];return _0x417b8c;}function a11_0x4bf9(){const _0x27739b=['exec','read','BFF\x20function\x20name\x20to\x20execute','BFF\x20executed\x20in\x20','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','734758bVMoci','1780716NqwHJB','54mOUZyt','params','277140ydQbpt','str','79839AjLUnj','156408GgLyrN','now','1133164HIUHvm','88oCmcdH','bff','1252923OpLgUV'];a11_0x4bf9=function(){return _0x27739b;};return a11_0x4bf9();}const a11_0x4ef1e8=a11_0x417b;(function(_0x766edc,_0x1578d2){const _0x4b97bb=a11_0x417b,_0x706e0a=_0x766edc();while(!![]){try{const _0x5411d5=-parseInt(_0x4b97bb(0xc1))/0x1+parseInt(_0x4b97bb(0xba))/0x2+parseInt(_0x4b97bb(0xbb))/0x3+parseInt(_0x4b97bb(0xc3))/0x4+-parseInt(_0x4b97bb(0xbe))/0x5*(parseInt(_0x4b97bb(0xbc))/0x6)+-parseInt(_0x4b97bb(0xc6))/0x7+parseInt(_0x4b97bb(0xc4))/0x8*(-parseInt(_0x4b97bb(0xc0))/0x9);if(_0x5411d5===_0x1578d2)break;else _0x706e0a['push'](_0x706e0a['shift']());}catch(_0x209b58){_0x706e0a['push'](_0x706e0a['shift']());}}}(a11_0x4bf9,0x4c45c));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a11_0x4ef1e8(0xc5),'command':a11_0x4ef1e8(0xc7),'description':a11_0x4ef1e8(0xcb),'risk':a11_0x4ef1e8(0xc8),'flags':[{...NAME_FLAG,'required':!![],'description':a11_0x4ef1e8(0xc9)},PARAMS_FLAG],async 'execute'(_0xacc877){const _0x2cad97=a11_0x4ef1e8,_0x3df4d3=parseJsonParams(_0xacc877[_0x2cad97(0xbf)](_0x2cad97(0xbd))),_0xa415c0=Date['now'](),_0x24e510=await executeSdkBff(_0xacc877['str']('name'),_0x3df4d3),_0x534b3a=Date[_0x2cad97(0xc2)]()-_0xa415c0;return{'ok':!![],'data':{'result':_0x24e510,'elapsed':_0x534b3a},'message':_0x2cad97(0xca)+_0x534b3a+'ms'};}};
1
+ const a11_0x52f233=a11_0x2b41;(function(_0x2f86cd,_0x5139fd){const _0x281797=a11_0x2b41,_0x5ca094=_0x2f86cd();while(!![]){try{const _0x4e66c8=-parseInt(_0x281797(0xb5))/0x1*(parseInt(_0x281797(0xb2))/0x2)+parseInt(_0x281797(0xb4))/0x3+parseInt(_0x281797(0xad))/0x4*(parseInt(_0x281797(0xb3))/0x5)+-parseInt(_0x281797(0xaf))/0x6*(parseInt(_0x281797(0xb1))/0x7)+parseInt(_0x281797(0xb9))/0x8*(-parseInt(_0x281797(0xbc))/0x9)+parseInt(_0x281797(0xb8))/0xa+parseInt(_0x281797(0xb6))/0xb;if(_0x4e66c8===_0x5139fd)break;else _0x5ca094['push'](_0x5ca094['shift']());}catch(_0x5546f6){_0x5ca094['push'](_0x5ca094['shift']());}}}(a11_0x200a,0x50314));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';function a11_0x200a(){const _0x5f0146=['7230971qKvTzh','BFF\x20function\x20name\x20to\x20execute','5350280nGnKzu','3192896micalT','read','str','9TjkusF','bff','params','now','52CbpvPg','exec','180PhCARQ','BFF\x20executed\x20in\x20','105973xaTgHt','1215926skuCZP','16265EyCMps','1665105ObZOKp','1nqhZOG'];a11_0x200a=function(){return _0x5f0146;};return a11_0x200a();}function a11_0x2b41(_0x3a38dd,_0x4a98a3){_0x3a38dd=_0x3a38dd-0xac;const _0x200a73=a11_0x200a();let _0x2b4161=_0x200a73[_0x3a38dd];return _0x2b4161;}import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a11_0x52f233(0xbd),'command':a11_0x52f233(0xae),'description':'Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','risk':a11_0x52f233(0xba),'flags':[{...NAME_FLAG,'required':!![],'description':a11_0x52f233(0xb7)},PARAMS_FLAG],async 'execute'(_0x3d4031){const _0x455775=a11_0x52f233,_0xe1b819=parseJsonParams(_0x3d4031[_0x455775(0xbb)](_0x455775(0xbe))),_0x4373ab=Date[_0x455775(0xac)](),_0x297307=await executeSdkBff(_0x3d4031[_0x455775(0xbb)]('name'),_0xe1b819),_0x22640c=Date[_0x455775(0xac)]()-_0x4373ab;return{'ok':!![],'data':{'result':_0x297307,'elapsed':_0x22640c},'message':_0x455775(0xb0)+_0x22640c+'ms'};}};
@@ -1 +1 @@
1
- function a12_0x5f35(){const _0x1af689=['3847264HiNFQD','1955401nNaHzN','4728688GhHkmz','188930kARArO','69067iBfezR','189505XmkUGj','1071rmqjBo','475071TItiEt','18UJDrIr','84YTnIiL'];a12_0x5f35=function(){return _0x1af689;};return a12_0x5f35();}function a12_0x5119(_0x16dc4f,_0x2be262){_0x16dc4f=_0x16dc4f-0x82;const _0x5f35f0=a12_0x5f35();let _0x511966=_0x5f35f0[_0x16dc4f];return _0x511966;}(function(_0x1eda9f,_0x427951){const _0x39a9f4=a12_0x5119,_0x275a5a=_0x1eda9f();while(!![]){try{const _0x47708f=parseInt(_0x39a9f4(0x88))/0x1*(-parseInt(_0x39a9f4(0x82))/0x2)+parseInt(_0x39a9f4(0x8b))/0x3+-parseInt(_0x39a9f4(0x84))/0x4+parseInt(_0x39a9f4(0x89))/0x5*(parseInt(_0x39a9f4(0x83))/0x6)+-parseInt(_0x39a9f4(0x85))/0x7+-parseInt(_0x39a9f4(0x86))/0x8+-parseInt(_0x39a9f4(0x8a))/0x9*(-parseInt(_0x39a9f4(0x87))/0xa);if(_0x47708f===_0x427951)break;else _0x275a5a['push'](_0x275a5a['shift']());}catch(_0x502066){_0x275a5a['push'](_0x275a5a['shift']());}}}(a12_0x5f35,0x7603e));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
1
+ (function(_0x52f57f,_0x164038){const _0x4d1edb=a12_0x1b89,_0x4d3e00=_0x52f57f();while(!![]){try{const _0x4af16c=-parseInt(_0x4d1edb(0x85))/0x1+parseInt(_0x4d1edb(0x86))/0x2*(parseInt(_0x4d1edb(0x81))/0x3)+-parseInt(_0x4d1edb(0x82))/0x4*(parseInt(_0x4d1edb(0x80))/0x5)+-parseInt(_0x4d1edb(0x84))/0x6*(parseInt(_0x4d1edb(0x7d))/0x7)+-parseInt(_0x4d1edb(0x7e))/0x8+-parseInt(_0x4d1edb(0x7f))/0x9+parseInt(_0x4d1edb(0x83))/0xa;if(_0x4af16c===_0x164038)break;else _0x4d3e00['push'](_0x4d3e00['shift']());}catch(_0x18505d){_0x4d3e00['push'](_0x4d3e00['shift']());}}}(a12_0x54a6,0xc8cc5));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';function a12_0x54a6(){const _0x33f04a=['4999240gzeEzB','4909572xMNvZN','915rDXJLW','2535DevXno','292oeYwkF','44512930fwgMnu','4043970tHEnCc','1559277AoeJUj','1094BgPumc','14YqcxnK'];a12_0x54a6=function(){return _0x33f04a;};return a12_0x54a6();}function a12_0x1b89(_0x8a9d26,_0x363b32){_0x8a9d26=_0x8a9d26-0x7d;const _0x54a6f9=a12_0x54a6();let _0x1b89fd=_0x54a6f9[_0x8a9d26];return _0x1b89fd;}export const bffDefinitions=[bffDetail,bffExec];
@@ -1 +1 @@
1
- (function(_0x24ec6b,_0x5a480e){const _0xbeee79=a13_0x1b62,_0xebf784=_0x24ec6b();while(!![]){try{const _0xad218e=parseInt(_0xbeee79(0xff))/0x1+parseInt(_0xbeee79(0xfe))/0x2+-parseInt(_0xbeee79(0xf3))/0x3+parseInt(_0xbeee79(0xf1))/0x4*(-parseInt(_0xbeee79(0xfd))/0x5)+parseInt(_0xbeee79(0xf2))/0x6+-parseInt(_0xbeee79(0xfb))/0x7+parseInt(_0xbeee79(0x100))/0x8;if(_0xad218e===_0x5a480e)break;else _0xebf784['push'](_0xebf784['shift']());}catch(_0x3a863e){_0xebf784['push'](_0xebf784['shift']());}}}(a13_0x4765,0x80c84));import{CLI_BIN_NAME}from'../../constant/cli.js';function a13_0x1b62(_0x18a423,_0x524604){_0x18a423=_0x18a423-0xf0;const _0x4765df=a13_0x4765();let _0x1b62b7=_0x4765df[_0x18a423];return _0x1b62b7;}import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';function a13_0x4765(){const _0x11d8d4=['Add\x20--global\x20to\x20write\x20to\x20~/','\x20found).','14776kkEsgN','5254134cSocFv','1415880TXtHoP','Use\x20only\x20one\x20config\x20scope\x20flag.','\x20(global)','global','validation',',\x20or\x20run\x20`','inProject','project-default','2361842ijjUOO','project','595nXtHro','93106EXuVnE','446716PpvWRM','3259888JhHAJw','newConfigFileName'];a13_0x4765=function(){return _0x11d8d4;};return a13_0x4765();}export function resolveConfigScope(_0x2ca40e){const _0x449138=a13_0x1b62,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0xf484d1}=_0x2ca40e;if(explicitGlobal&&explicitProject)throw CliErrors[_0x449138(0xf7)]('Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.',_0x449138(0xf4));if(explicitGlobal)return'global';if(explicitProject)return _0x449138(0xfc);switch(_0xf484d1){case'global-default':return _0x449138(0xf6);case _0x449138(0xfa):return _0x2ca40e[_0x449138(0xf9)]??isInProject()?_0x449138(0xfc):'global';case'project-or-global-explicit':if(!(_0x2ca40e[_0x449138(0xf9)]??isInProject()))throw CliErrors[_0x449138(0xf7)]('Not\x20inside\x20a\x20project\x20(no\x20'+PRODUCT_CONFIG['newConfigFileName']+_0x449138(0xf0),_0x449138(0x102)+PRODUCT_CONFIG[_0x449138(0x101)]+_0x449138(0xf8)+CLI_BIN_NAME+'\x20init`\x20first.');return _0x449138(0xfc);}}export function toScopeFlags(_0x18cf04){return{'global':_0x18cf04==='global'};}export function formatScopeLabel(_0x238bd5){const _0x5bd847=a13_0x1b62;return _0x238bd5===_0x5bd847(0xf6)?_0x5bd847(0xf5):'';}
1
+ (function(_0x37c450,_0x3080a0){const _0x2f6468=a13_0x28e2,_0x293068=_0x37c450();while(!![]){try{const _0x38749a=parseInt(_0x2f6468(0x72))/0x1+-parseInt(_0x2f6468(0x81))/0x2+parseInt(_0x2f6468(0x7c))/0x3+parseInt(_0x2f6468(0x7b))/0x4*(-parseInt(_0x2f6468(0x7e))/0x5)+-parseInt(_0x2f6468(0x77))/0x6+parseInt(_0x2f6468(0x73))/0x7+parseInt(_0x2f6468(0x79))/0x8;if(_0x38749a===_0x3080a0)break;else _0x293068['push'](_0x293068['shift']());}catch(_0x15884a){_0x293068['push'](_0x293068['shift']());}}}(a13_0x1cdd,0xcde59));import{CLI_BIN_NAME}from'../../constant/cli.js';function a13_0x28e2(_0x2622c1,_0x1679a1){_0x2622c1=_0x2622c1-0x6e;const _0x1cdd3d=a13_0x1cdd();let _0x28e2ac=_0x1cdd3d[_0x2622c1];return _0x28e2ac;}import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';function a13_0x1cdd(){const _0x1883e4=['\x20found).','3116220kqUGNe','Use\x20only\x20one\x20config\x20scope\x20flag.','10127664tAbaXe','Not\x20inside\x20a\x20project\x20(no\x20','18296lwahqi','1967622oRSxtz','inProject','1130mjfFgu','global','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','1031452OhVpZw','global-default','validation','project','\x20(global)','723690ZiPqap','1866557jmoxqd','newConfigFileName','project-default'];a13_0x1cdd=function(){return _0x1883e4;};return a13_0x1cdd();}import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';export function resolveConfigScope(_0x1b25af){const _0x550c8c=a13_0x28e2,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x5ec77e}=_0x1b25af;if(explicitGlobal&&explicitProject)throw CliErrors['validation'](_0x550c8c(0x80),_0x550c8c(0x78));if(explicitGlobal)return _0x550c8c(0x7f);if(explicitProject)return _0x550c8c(0x70);switch(_0x5ec77e){case _0x550c8c(0x6e):return _0x550c8c(0x7f);case _0x550c8c(0x75):return _0x1b25af[_0x550c8c(0x7d)]??isInProject()?_0x550c8c(0x70):_0x550c8c(0x7f);case'project-or-global-explicit':if(!(_0x1b25af[_0x550c8c(0x7d)]??isInProject()))throw CliErrors[_0x550c8c(0x6f)](_0x550c8c(0x7a)+PRODUCT_CONFIG[_0x550c8c(0x74)]+_0x550c8c(0x76),'Add\x20--global\x20to\x20write\x20to\x20~/'+PRODUCT_CONFIG[_0x550c8c(0x74)]+',\x20or\x20run\x20`'+CLI_BIN_NAME+'\x20init`\x20first.');return _0x550c8c(0x70);}}export function toScopeFlags(_0x1f4dc3){return{'global':_0x1f4dc3==='global'};}export function formatScopeLabel(_0x436549){const _0x396fdb=a13_0x28e2;return _0x436549===_0x396fdb(0x7f)?_0x396fdb(0x71):'';}
@@ -1 +1 @@
1
- function a14_0x54e9(){const _0x58583c=['1AJFTXt','3FMjuqX','906298voqcAP','Invalid\x20--','14klrGCI','str','3344775TNwoQs','flag','join','Exactly\x20one\x20of\x20','4599416rGiwVS','filter','Provide\x20one\x20of:\x20','\x20is\x20required\x20for\x20`','some','validation','2413557SyuXkc','3028708DBsdUj',':\x20expected\x20','42581RKZFnJ','\x20are\x20mutually\x20exclusive\x20for\x20`','420lZndqu','At\x20least\x20one\x20of\x20','test',',\x20got\x20\x22','3336246HONEIt','length'];a14_0x54e9=function(){return _0x58583c;};return a14_0x54e9();}(function(_0x402e2c,_0x19b15e){const _0x5a141e=a14_0x1802,_0x1d49d3=_0x402e2c();while(!![]){try{const _0x4de847=-parseInt(_0x5a141e(0xb3))/0x1*(parseInt(_0x5a141e(0x9a))/0x2)+parseInt(_0x5a141e(0xb4))/0x3*(parseInt(_0x5a141e(0xa9))/0x4)+-parseInt(_0x5a141e(0x9e))/0x5+parseInt(_0x5a141e(0xb1))/0x6*(parseInt(_0x5a141e(0x9c))/0x7)+-parseInt(_0x5a141e(0xa2))/0x8+parseInt(_0x5a141e(0xa8))/0x9+parseInt(_0x5a141e(0xad))/0xa*(parseInt(_0x5a141e(0xab))/0xb);if(_0x4de847===_0x19b15e)break;else _0x1d49d3['push'](_0x1d49d3['shift']());}catch(_0x2d89ab){_0x1d49d3['push'](_0x1d49d3['shift']());}}}(a14_0x54e9,0x93367));function a14_0x1802(_0x286710,_0x49b2bd){_0x286710=_0x286710-0x9a;const _0x54e979=a14_0x54e9();let _0x1802bd=_0x54e979[_0x286710];return _0x1802bd;}import{CliErrors}from'../../errors.js';function isSet(_0xbd1f00,_0x3febb0){const _0x3f6e6c=a14_0x1802,_0x27aa18=_0xbd1f00[_0x3f6e6c(0x9f)](_0x3febb0);return _0x27aa18!==undefined&&_0x27aa18!==''&&_0x27aa18!==![]&&_0x27aa18!==0x0;}function fmtNames(_0x3f0ff7){const _0x57f481=a14_0x1802;return _0x3f0ff7['map'](_0x16e905=>'--'+_0x16e905)[_0x57f481(0xa0)](',\x20');}export function requireOneOf(_0x3f910c,_0x1f3e9c,_0x448b37){const _0x318e93=a14_0x1802,_0x44e594=_0x1f3e9c[_0x318e93(0xa3)](_0x3eca5f=>isSet(_0x3f910c,_0x3eca5f));if(_0x44e594[_0x318e93(0xb2)]!==0x1)throw CliErrors['validation'](_0x44e594['length']===0x0?_0x318e93(0xa1)+fmtNames(_0x1f3e9c)+_0x318e93(0xa5)+_0x448b37+'`.':'Only\x20one\x20of\x20'+fmtNames(_0x1f3e9c)+'\x20is\x20allowed,\x20found:\x20'+fmtNames(_0x44e594)+'.',_0x44e594['length']===0x0?_0x318e93(0xa4)+fmtNames(_0x1f3e9c):'Remove\x20all\x20but\x20one.');}export function requireAnyOf(_0x3d6943,_0x1116e4,_0x1488c6){const _0x5be4d2=a14_0x1802;if(!_0x1116e4[_0x5be4d2(0xa6)](_0x380ffe=>isSet(_0x3d6943,_0x380ffe)))throw CliErrors[_0x5be4d2(0xa7)](_0x5be4d2(0xae)+fmtNames(_0x1116e4)+_0x5be4d2(0xa5)+_0x1488c6+'`.',_0x5be4d2(0xa4)+fmtNames(_0x1116e4));}export function mutuallyExclusive(_0x2ac6ca,_0x4f81be,_0x44ae7c){const _0x198c82=a14_0x1802,_0x50b779=_0x4f81be['filter'](_0x46bd27=>isSet(_0x2ac6ca,_0x46bd27));if(_0x50b779['length']>0x1)throw CliErrors[_0x198c82(0xa7)]('Flags\x20'+fmtNames(_0x50b779)+_0x198c82(0xac)+_0x44ae7c+'`.','Use\x20only\x20one\x20of:\x20'+fmtNames(_0x4f81be));}export function validatePattern(_0xfb97c7,_0x58a004,_0x2f5958,_0xe785d5){const _0x1fae57=a14_0x1802,_0x2baf5f=_0xfb97c7[_0x1fae57(0x9d)](_0x58a004);if(_0x2baf5f&&!_0x2f5958[_0x1fae57(0xaf)](_0x2baf5f))throw CliErrors[_0x1fae57(0xa7)](_0x1fae57(0x9b)+_0x58a004+_0x1fae57(0xaa)+_0xe785d5+_0x1fae57(0xb0)+_0x2baf5f+'\x22.');}
1
+ function a14_0x2a6f(_0x3e432a,_0x3ad917){_0x3e432a=_0x3e432a-0x98;const _0x18e362=a14_0x18e3();let _0x2a6f29=_0x18e362[_0x3e432a];return _0x2a6f29;}function a14_0x18e3(){const _0x6d6674=['some','\x20is\x20required\x20for\x20`',',\x20got\x20\x22','Flags\x20','166407pDtIvM','map','\x20are\x20mutually\x20exclusive\x20for\x20`','8264583LbXkRF','validation','1260168hgFWuM','filter','1033510SjOJQU','Provide\x20one\x20of:\x20','At\x20least\x20one\x20of\x20','60gCOMfX','Remove\x20all\x20but\x20one.','6398920qggebX','flag','7SpDAzb','join','str','1145190SSmImb','387095pJONDf','3fZgmKP','Only\x20one\x20of\x20','Use\x20only\x20one\x20of:\x20','length','Exactly\x20one\x20of\x20'];a14_0x18e3=function(){return _0x6d6674;};return a14_0x18e3();}(function(_0x55ad2d,_0x4bfd3e){const _0x23ffc7=a14_0x2a6f,_0x1f5220=_0x55ad2d();while(!![]){try{const _0x1d4d53=parseInt(_0x23ffc7(0xa0))/0x1+-parseInt(_0x23ffc7(0xa7))/0x2*(parseInt(_0x23ffc7(0xb3))/0x3)+parseInt(_0x23ffc7(0xa5))/0x4+-parseInt(_0x23ffc7(0xb2))/0x5*(-parseInt(_0x23ffc7(0xaa))/0x6)+-parseInt(_0x23ffc7(0xae))/0x7*(-parseInt(_0x23ffc7(0xac))/0x8)+-parseInt(_0x23ffc7(0xa3))/0x9+-parseInt(_0x23ffc7(0xb1))/0xa;if(_0x1d4d53===_0x4bfd3e)break;else _0x1f5220['push'](_0x1f5220['shift']());}catch(_0x2dd6b2){_0x1f5220['push'](_0x1f5220['shift']());}}}(a14_0x18e3,0x7b857));import{CliErrors}from'../../errors.js';function isSet(_0x1782bd,_0x563351){const _0x1b6559=a14_0x2a6f,_0x2f6f98=_0x1782bd[_0x1b6559(0xad)](_0x563351);return _0x2f6f98!==undefined&&_0x2f6f98!==''&&_0x2f6f98!==![]&&_0x2f6f98!==0x0;}function fmtNames(_0xc3ca8f){const _0x16529e=a14_0x2a6f;return _0xc3ca8f[_0x16529e(0xa1)](_0x11e0da=>'--'+_0x11e0da)[_0x16529e(0xaf)](',\x20');}export function requireOneOf(_0x4b6d50,_0x1c1011,_0x127f9a){const _0x8b57b7=a14_0x2a6f,_0x39b517=_0x1c1011[_0x8b57b7(0xa6)](_0xf92300=>isSet(_0x4b6d50,_0xf92300));if(_0x39b517['length']!==0x1)throw CliErrors[_0x8b57b7(0xa4)](_0x39b517[_0x8b57b7(0x9a)]===0x0?_0x8b57b7(0x9b)+fmtNames(_0x1c1011)+'\x20is\x20required\x20for\x20`'+_0x127f9a+'`.':_0x8b57b7(0x98)+fmtNames(_0x1c1011)+'\x20is\x20allowed,\x20found:\x20'+fmtNames(_0x39b517)+'.',_0x39b517['length']===0x0?'Provide\x20one\x20of:\x20'+fmtNames(_0x1c1011):_0x8b57b7(0xab));}export function requireAnyOf(_0x41ec00,_0xbdb93d,_0x1caf69){const _0x388198=a14_0x2a6f;if(!_0xbdb93d[_0x388198(0x9c)](_0x26106c=>isSet(_0x41ec00,_0x26106c)))throw CliErrors[_0x388198(0xa4)](_0x388198(0xa9)+fmtNames(_0xbdb93d)+_0x388198(0x9d)+_0x1caf69+'`.',_0x388198(0xa8)+fmtNames(_0xbdb93d));}export function mutuallyExclusive(_0x3d196b,_0x16f662,_0x4aa826){const _0x269be8=a14_0x2a6f,_0x177775=_0x16f662[_0x269be8(0xa6)](_0x30c73d=>isSet(_0x3d196b,_0x30c73d));if(_0x177775[_0x269be8(0x9a)]>0x1)throw CliErrors['validation'](_0x269be8(0x9f)+fmtNames(_0x177775)+_0x269be8(0xa2)+_0x4aa826+'`.',_0x269be8(0x99)+fmtNames(_0x16f662));}export function validatePattern(_0x2a9668,_0x130418,_0x55834e,_0x38e319){const _0x241186=a14_0x2a6f,_0x174d50=_0x2a9668[_0x241186(0xb0)](_0x130418);if(_0x174d50&&!_0x55834e['test'](_0x174d50))throw CliErrors['validation']('Invalid\x20--'+_0x130418+':\x20expected\x20'+_0x38e319+_0x241186(0x9e)+_0x174d50+'\x22.');}