@lovrabet/lovrabet-cli 2.0.13-beta.7 → 2.0.13

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 (76) 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/generated/build-info.js +1 -0
  66. package/lib/help.js +1 -1
  67. package/lib/skills/npx-skills-add.js +1 -1
  68. package/lib/skills/runtime-skill-sync.js +1 -1
  69. package/lib/utils/apply-jq-filter.js +1 -1
  70. package/lib/utils/logger.js +1 -1
  71. package/lib/utils/params.js +1 -1
  72. package/lib/utils/platform.js +1 -1
  73. package/lib/utils/update-notice.js +1 -1
  74. package/lib/utils/version.js +1 -1
  75. package/lib/utils/write-cli-side-channel.js +1 -1
  76. package/package.json +8 -1
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const a0_0x27d913=a0_0x246d;(function(_0x59b6aa,_0x1aed42){const _0x2e800e=a0_0x246d,_0xb62ef2=_0x59b6aa();while(!![]){try{const _0x4d7fe2=parseInt(_0x2e800e(0x118))/0x1+parseInt(_0x2e800e(0x12a))/0x2*(parseInt(_0x2e800e(0x12c))/0x3)+parseInt(_0x2e800e(0x11d))/0x4+parseInt(_0x2e800e(0x123))/0x5*(-parseInt(_0x2e800e(0x12e))/0x6)+-parseInt(_0x2e800e(0x11e))/0x7*(-parseInt(_0x2e800e(0x133))/0x8)+-parseInt(_0x2e800e(0x139))/0x9+-parseInt(_0x2e800e(0x11f))/0xa*(-parseInt(_0x2e800e(0x127))/0xb);if(_0x4d7fe2===_0x1aed42)break;else _0xb62ef2['push'](_0xb62ef2['shift']());}catch(_0x5136fc){_0xb62ef2['push'](_0xb62ef2['shift']());}}}(a0_0x2f68,0xb940d));import{jsx as a0_0x4c1222}from'react/jsx-runtime';import a0_0x18d46b 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';function a0_0x246d(_0x578734,_0x56cfe4){_0x578734=_0x578734-0x118;const _0x2f6838=a0_0x2f68();let _0x246d7d=_0x2f6838[_0x578734];return _0x246d7d;}function a0_0x2f68(){const _0x5a03ed=['301NpHoQQ','782410CRebQl','length','Error:\x20','code','22245gYTdRM','flags','name','unknownCommand','88FfTWAK','hint','defaultCommand','731684yYvAVB','catch','3HoiRiw','input','204FPPIiy','log',':\x20--','[preparse]\x20','ERR_STREAM_DESTROYED','69152mHaFIr','\x20->\x20--','error','corrected','stderr','assign','6184062MhxQQl','handler','\x0aCancelled.\x0a','slice','args','write','help','165434WSRnvl','exit','cancelled','flatMap','./framework/preparse.js','273140GUqYxB'];a0_0x2f68=function(){return _0x5a03ed;};return a0_0x2f68();}const helpText=generateFullHelp(),cli=a0_0x18d46b(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'autoVersion':!![]});void main()[a0_0x27d913(0x12b)](handleError);async function main(){try{await run();}catch(_0x44b92a){handleError(_0x44b92a);}}async function run(){const _0x437a8c=a0_0x27d913;let _0x34bc02=cli[_0x437a8c(0x12d)][0x0],_0x30d97b=cli['input'][0x1];const _0x3acd25=cli[_0x437a8c(0x124)];try{const {correctFlags:_0x1dbb88}=await import(_0x437a8c(0x11c)),_0x3f34b3=getAllDefinitions()[_0x437a8c(0x11b)](_0x5e4e3f=>_0x5e4e3f[_0x437a8c(0x124)]??[]),{flags:_0x3157ef,corrections:_0x4ef944}=_0x1dbb88(_0x3acd25,_0x3f34b3);if(_0x4ef944[_0x437a8c(0x120)]>0x0){for(const _0x515982 of _0x4ef944){process[_0x437a8c(0x137)][_0x437a8c(0x13e)](_0x437a8c(0x131)+_0x515982[_0x437a8c(0x13a)]+_0x437a8c(0x130)+_0x515982['original']+_0x437a8c(0x134)+_0x515982[_0x437a8c(0x136)]+'\x0a');}Object[_0x437a8c(0x138)](_0x3acd25,_0x3157ef);}}catch{}if(!_0x34bc02||!isKnownService(_0x34bc02)){const {waitUntilExit:_0x426120}=render(a0_0x4c1222(Help,{}));await _0x426120();return;}const _0x3e5d2b=getServiceEntry(_0x34bc02);if(!_0x30d97b){if(_0x3acd25['help']){console[_0x437a8c(0x12f)](generateServiceHelp(_0x34bc02));return;}if(_0x3e5d2b[_0x437a8c(0x129)])_0x30d97b=_0x3e5d2b[_0x437a8c(0x129)];else{console[_0x437a8c(0x12f)](generateServiceHelp(_0x34bc02));return;}}const _0x3caf3c=findDefinition(_0x34bc02,_0x30d97b);!_0x3caf3c&&(console[_0x437a8c(0x12f)](generateServiceHelp(_0x34bc02)),handleError(CliErrors[_0x437a8c(0x126)](_0x34bc02+'\x20'+_0x30d97b)));if(_0x3acd25[_0x437a8c(0x13f)]){console[_0x437a8c(0x12f)](generateCommandHelp(_0x3caf3c));return;}const _0x1ae2b0=buildConfigFromFlags(_0x3acd25);await initGlobalEnvironment(_0x1ae2b0);const _0x56caec=createPipelineEnv(_0x1ae2b0,_0x3acd25);_0x56caec[_0x437a8c(0x13d)]=cli[_0x437a8c(0x12d)][_0x437a8c(0x13c)](0x2),await runCommand(_0x3caf3c,_0x56caec);}function handleError(_0x44ade6){const _0x2d60ed=a0_0x27d913;if(_0x44ade6 instanceof CliError){_0x44ade6[_0x2d60ed(0x122)]===_0x2d60ed(0x11a)&&(process[_0x2d60ed(0x137)][_0x2d60ed(0x13e)](_0x2d60ed(0x13b)),process[_0x2d60ed(0x119)](0x0));console[_0x2d60ed(0x135)](_0x2d60ed(0x121)+_0x44ade6['message']);if(_0x44ade6[_0x2d60ed(0x128)])console[_0x2d60ed(0x135)]('Hint:\x20'+_0x44ade6[_0x2d60ed(0x128)]);process['exit'](_0x44ade6['exitCode']);}isUserCancellation(_0x44ade6)&&(process[_0x2d60ed(0x137)][_0x2d60ed(0x13e)]('\x0aCancelled.\x0a'),process[_0x2d60ed(0x119)](0x0)),console['error']('Unexpected\x20error:',_0x44ade6),process['exit'](0x1);}function isUserCancellation(_0x445324){const _0x257698=a0_0x27d913;if(!(_0x445324 instanceof Error))return![];if(_0x445324[_0x257698(0x125)]==='ExitPromptError')return!![];if(_0x445324[_0x257698(0x122)]==='ERR_USE_AFTER_CLOSE')return!![];if(_0x445324[_0x257698(0x122)]===_0x257698(0x132))return!![];return![];}
2
+ const a0_0xbb4693=a0_0x3538;(function(_0x1545fe,_0x344441){const _0x4071e8=a0_0x3538,_0x11d0f4=_0x1545fe();while(!![]){try{const _0x238a9b=-parseInt(_0x4071e8(0x1b5))/0x1+parseInt(_0x4071e8(0x1aa))/0x2*(parseInt(_0x4071e8(0x1ae))/0x3)+parseInt(_0x4071e8(0x1c0))/0x4*(parseInt(_0x4071e8(0x1ac))/0x5)+-parseInt(_0x4071e8(0x1a9))/0x6*(-parseInt(_0x4071e8(0x1c8))/0x7)+-parseInt(_0x4071e8(0x1b6))/0x8*(parseInt(_0x4071e8(0x1b7))/0x9)+-parseInt(_0x4071e8(0x1b4))/0xa*(parseInt(_0x4071e8(0x1cd))/0xb)+parseInt(_0x4071e8(0x1b1))/0xc;if(_0x238a9b===_0x344441)break;else _0x11d0f4['push'](_0x11d0f4['shift']());}catch(_0x270b39){_0x11d0f4['push'](_0x11d0f4['shift']());}}}(a0_0x31a1,0x9455e));import{jsx as a0_0x7feca5}from'react/jsx-runtime';import a0_0x51d9b4 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';import{getCliVersionDisplay}from'./utils/version.js';const helpText=generateFullHelp(),cli=a0_0x51d9b4(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'version':getCliVersionDisplay()});void main()[a0_0xbb4693(0x1ab)](handleError);async function main(){try{await run();}catch(_0x153af3){handleError(_0x153af3);}}async function run(){const _0x1e175f=a0_0xbb4693;let _0x236260=cli[_0x1e175f(0x1c3)][0x0],_0x37f790=cli[_0x1e175f(0x1c3)][0x1];const _0x19d01b=cli[_0x1e175f(0x1cc)];try{const {correctFlags:_0x318cee}=await import(_0x1e175f(0x1c1)),_0x337601=getAllDefinitions()[_0x1e175f(0x1c5)](_0x1e6a27=>_0x1e6a27[_0x1e175f(0x1cc)]??[]),{flags:_0x4fda54,corrections:_0x500139}=_0x318cee(_0x19d01b,_0x337601);if(_0x500139[_0x1e175f(0x1c4)]>0x0){for(const _0x4e821b of _0x500139){process[_0x1e175f(0x1c9)]['write'](_0x1e175f(0x1af)+_0x4e821b['handler']+_0x1e175f(0x1bc)+_0x4e821b['original']+'\x20->\x20--'+_0x4e821b[_0x1e175f(0x1be)]+'\x0a');}Object[_0x1e175f(0x1c2)](_0x19d01b,_0x4fda54);}}catch{}if(!_0x236260||!isKnownService(_0x236260)){const {waitUntilExit:_0x466446}=render(a0_0x7feca5(Help,{}));await _0x466446();return;}const _0x2be3cc=getServiceEntry(_0x236260);if(!_0x37f790){if(_0x19d01b[_0x1e175f(0x1cb)]){console['log'](generateServiceHelp(_0x236260));return;}if(_0x2be3cc[_0x1e175f(0x1b9)])_0x37f790=_0x2be3cc['defaultCommand'];else{console[_0x1e175f(0x1b3)](generateServiceHelp(_0x236260));return;}}const _0x17fb26=findDefinition(_0x236260,_0x37f790);!_0x17fb26&&(console[_0x1e175f(0x1b3)](generateServiceHelp(_0x236260)),handleError(CliErrors[_0x1e175f(0x1b8)](_0x236260+'\x20'+_0x37f790)));if(_0x19d01b[_0x1e175f(0x1cb)]){console['log'](generateCommandHelp(_0x17fb26));return;}const _0x50fa03=buildConfigFromFlags(_0x19d01b);await initGlobalEnvironment(_0x50fa03);const _0x2865be=createPipelineEnv(_0x50fa03,_0x19d01b);_0x2865be['args']=cli[_0x1e175f(0x1c3)][_0x1e175f(0x1bb)](0x2),await runCommand(_0x17fb26,_0x2865be);}function a0_0x31a1(){const _0x4947aa=['name','corrected','ExitPromptError','4sYmviO','./framework/preparse.js','assign','input','length','flatMap','exit','Error:\x20','1073576imRIJa','stderr','cancelled','help','flags','261250XTgxTp','code','42CPiBxI','4djjoAd','catch','4555995ENIteZ','write','975243EMCowP','[preparse]\x20','message','7222344keyTGs','error','log','410mAesDw','927925bFndvw','8WOuYuv','6547878TInyHJ','unknownCommand','defaultCommand','\x0aCancelled.\x0a','slice',':\x20--'];a0_0x31a1=function(){return _0x4947aa;};return a0_0x31a1();}function handleError(_0x2707df){const _0x3eb6da=a0_0xbb4693;if(_0x2707df instanceof CliError){_0x2707df[_0x3eb6da(0x1ce)]===_0x3eb6da(0x1ca)&&(process[_0x3eb6da(0x1c9)][_0x3eb6da(0x1ad)](_0x3eb6da(0x1ba)),process['exit'](0x0));console['error'](_0x3eb6da(0x1c7)+_0x2707df[_0x3eb6da(0x1b0)]);if(_0x2707df['hint'])console[_0x3eb6da(0x1b2)]('Hint:\x20'+_0x2707df['hint']);process[_0x3eb6da(0x1c6)](_0x2707df['exitCode']);}isUserCancellation(_0x2707df)&&(process[_0x3eb6da(0x1c9)]['write'](_0x3eb6da(0x1ba)),process[_0x3eb6da(0x1c6)](0x0)),console[_0x3eb6da(0x1b2)]('Unexpected\x20error:',_0x2707df),process['exit'](0x1);}function a0_0x3538(_0x43897b,_0x5d5abb){_0x43897b=_0x43897b-0x1a9;const _0x31a1e8=a0_0x31a1();let _0x35388c=_0x31a1e8[_0x43897b];return _0x35388c;}function isUserCancellation(_0x361910){const _0x44a0a3=a0_0xbb4693;if(!(_0x361910 instanceof Error))return![];if(_0x361910[_0x44a0a3(0x1bd)]===_0x44a0a3(0x1bf))return!![];if(_0x361910[_0x44a0a3(0x1ce)]==='ERR_USE_AFTER_CLOSE')return!![];if(_0x361910[_0x44a0a3(0x1ce)]==='ERR_STREAM_DESTROYED')return!![];return![];}
@@ -1 +1 @@
1
- const a1_0x4d685c=a1_0x2a2d;(function(_0x86befa,_0xfe5329){const _0x4e9a40=a1_0x2a2d,_0x5e17e7=_0x86befa();while(!![]){try{const _0x3a8c63=-parseInt(_0x4e9a40(0x180))/0x1+parseInt(_0x4e9a40(0x16e))/0x2+parseInt(_0x4e9a40(0x19e))/0x3*(parseInt(_0x4e9a40(0x15a))/0x4)+parseInt(_0x4e9a40(0x15c))/0x5+parseInt(_0x4e9a40(0x17e))/0x6+-parseInt(_0x4e9a40(0x18d))/0x7*(parseInt(_0x4e9a40(0x150))/0x8)+parseInt(_0x4e9a40(0x13e))/0x9*(-parseInt(_0x4e9a40(0x1a2))/0xa);if(_0x3a8c63===_0xfe5329)break;else _0x5e17e7['push'](_0x5e17e7['shift']());}catch(_0x26f60c){_0x5e17e7['push'](_0x5e17e7['shift']());}}}(a1_0x5f19,0xf09ae));import{CliErrors}from'../../errors.js';const CATEGORY_FLAG={'name':a1_0x4d685c(0x19b),'type':a1_0x4d685c(0x145),'description':a1_0x4d685c(0x190)},KEYWORD_FLAG={'name':a1_0x4d685c(0x141),'type':a1_0x4d685c(0x145),'description':a1_0x4d685c(0x16a)},DOC_CODE_FLAG={'name':a1_0x4d685c(0x187),'type':a1_0x4d685c(0x145),'required':!![],'description':a1_0x4d685c(0x139)},DOCS=[{'code':'dataset_list','category':a1_0x4d685c(0x191),'title':a1_0x4d685c(0x169),'method':a1_0x4d685c(0x185),'path':'/api/dataset/get-dataset-list-by-app-code','summary':'分页获取数据集列表','whenToUse':a1_0x4d685c(0x153),'pathParams':[],'queryParams':[],'bodySchema':a1_0x4d685c(0x19a),'responseHighlights':[a1_0x4d685c(0x155),a1_0x4d685c(0x1a6)],'examples':[a1_0x4d685c(0x19c)],'notes':[a1_0x4d685c(0x1a5)],'markdown':[a1_0x4d685c(0x165),'',a1_0x4d685c(0x15b)][a1_0x4d685c(0x17d)]('\x0a')},{'code':a1_0x4d685c(0x147),'category':a1_0x4d685c(0x191),'title':a1_0x4d685c(0x14c),'method':a1_0x4d685c(0x199),'path':a1_0x4d685c(0x17f),'summary':'获取数据集详情','whenToUse':a1_0x4d685c(0x192),'pathParams':[],'queryParams':[{'name':a1_0x4d685c(0x187),'description':a1_0x4d685c(0x174)}],'bodySchema':a1_0x4d685c(0x15e),'responseHighlights':[a1_0x4d685c(0x179),'operations\x20describes\x20runtime\x20APIs'],'examples':[a1_0x4d685c(0x140)],'notes':['If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.'],'markdown':['##\x20Dataset\x20detail','','Inspect\x20field\x20names\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.'][a1_0x4d685c(0x17d)]('\x0a')},{'code':a1_0x4d685c(0x183),'category':a1_0x4d685c(0x191),'title':a1_0x4d685c(0x17c),'method':'POST','path':'/api/{appCode}/{datasetCode}/filter','summary':'条件过滤查询数据','whenToUse':a1_0x4d685c(0x16f),'pathParams':[{'name':a1_0x4d685c(0x171),'description':a1_0x4d685c(0x16d)},{'name':a1_0x4d685c(0x156),'description':a1_0x4d685c(0x174)}],'queryParams':[],'bodySchema':a1_0x4d685c(0x18a),'responseHighlights':[a1_0x4d685c(0x152),a1_0x4d685c(0x157)],'examples':[a1_0x4d685c(0x1a9)],'notes':['Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.'],'markdown':[a1_0x4d685c(0x18e),'',a1_0x4d685c(0x1a8)][a1_0x4d685c(0x17d)]('\x0a')},{'code':a1_0x4d685c(0x17a),'category':'dataset','title':a1_0x4d685c(0x181),'method':a1_0x4d685c(0x185),'path':a1_0x4d685c(0x151),'summary':'聚合查询数据集数据','whenToUse':a1_0x4d685c(0x18b),'pathParams':[{'name':a1_0x4d685c(0x171),'description':a1_0x4d685c(0x16d)},{'name':a1_0x4d685c(0x156),'description':a1_0x4d685c(0x174)}],'queryParams':[],'bodySchema':a1_0x4d685c(0x15d),'responseHighlights':[a1_0x4d685c(0x176),a1_0x4d685c(0x14b)],'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_0x4d685c(0x16c)],'markdown':[a1_0x4d685c(0x146),'',a1_0x4d685c(0x193)]['join']('\x0a')},{'code':a1_0x4d685c(0x173),'category':'dataset','title':a1_0x4d685c(0x14d),'method':a1_0x4d685c(0x185),'path':a1_0x4d685c(0x175),'summary':a1_0x4d685c(0x18f),'whenToUse':a1_0x4d685c(0x13d),'pathParams':[{'name':a1_0x4d685c(0x171),'description':'Current\x20app\x20code'},{'name':a1_0x4d685c(0x156),'description':a1_0x4d685c(0x174)}],'queryParams':[],'bodySchema':a1_0x4d685c(0x168),'responseHighlights':[a1_0x4d685c(0x178)],'examples':[a1_0x4d685c(0x170)],'notes':[a1_0x4d685c(0x16b)],'markdown':a1_0x4d685c(0x188)},{'code':a1_0x4d685c(0x1a7),'category':a1_0x4d685c(0x191),'title':a1_0x4d685c(0x148),'method':'POST','path':a1_0x4d685c(0x167),'summary':a1_0x4d685c(0x14e),'whenToUse':a1_0x4d685c(0x186),'pathParams':[{'name':a1_0x4d685c(0x171),'description':a1_0x4d685c(0x16d)},{'name':a1_0x4d685c(0x156),'description':a1_0x4d685c(0x174)}],'queryParams':[],'bodySchema':a1_0x4d685c(0x159),'responseHighlights':['Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result'],'examples':[a1_0x4d685c(0x1a4)],'notes':[a1_0x4d685c(0x196)],'markdown':a1_0x4d685c(0x189)},{'code':'bf_function_list','category':'bf','title':'List\x20BF\x20endpoint\x20functions','method':'GET','path':'/api/endpoint/{appCode}/functions','summary':a1_0x4d685c(0x15f),'whenToUse':a1_0x4d685c(0x195),'pathParams':[{'name':a1_0x4d685c(0x171),'description':a1_0x4d685c(0x16d)}],'queryParams':[],'bodySchema':a1_0x4d685c(0x15e),'responseHighlights':[a1_0x4d685c(0x163)],'examples':[a1_0x4d685c(0x142)],'notes':['CLI\x20has\x20typed\x20`bff\x20detail`\x20and\x20`bff\x20exec`\x20commands\x20for\x20endpoint\x20scripts.'],'markdown':'##\x20List\x20BF\x20endpoint\x20functions\x0a\x0aDiscover\x20executable\x20endpoint\x20functions.'},{'code':a1_0x4d685c(0x1a1),'category':'bf','title':a1_0x4d685c(0x13b),'method':'POST','path':a1_0x4d685c(0x1a0),'summary':a1_0x4d685c(0x177),'whenToUse':a1_0x4d685c(0x13a),'pathParams':[{'name':'appCode','description':'Current\x20app\x20code'},{'name':a1_0x4d685c(0x13f),'description':a1_0x4d685c(0x1aa)}],'queryParams':[],'bodySchema':a1_0x4d685c(0x14a),'responseHighlights':['Returns\x20script\x20business\x20payload'],'examples':[a1_0x4d685c(0x194)],'notes':[a1_0x4d685c(0x162)],'markdown':'##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.'},{'code':'custom_sql_execute','category':a1_0x4d685c(0x197),'title':a1_0x4d685c(0x198),'method':a1_0x4d685c(0x185),'path':a1_0x4d685c(0x138),'summary':a1_0x4d685c(0x149),'whenToUse':'已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','pathParams':[],'queryParams':[],'bodySchema':a1_0x4d685c(0x13c),'responseHighlights':[a1_0x4d685c(0x1a3)],'examples':[a1_0x4d685c(0x14f)],'notes':[a1_0x4d685c(0x182)],'markdown':'##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.'}];function a1_0x5f19(){const _0x24c7c7=['lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress','filter','9OGUMTm','method','/api/endpoint/{appCode}/{scriptName}','bf_execute','23821970gyJzEh','Returns\x20SQL\x20execution\x20payload','lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27','CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.','paging.totalCount\x20gives\x20total\x20rows','dataset_data_create','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:5}\x27','Endpoint\x20function\x20name','/api/custom/executeSql','API\x20doc\x20code,\x20for\x20example\x20dataset_list','已经确认目标\x20BF\x20的\x20scriptName,且需要实际调用该\x20ENDPOINT\x20脚本完成业务操作时使用','Execute\x20BF\x20endpoint\x20function','{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','已经知道记录\x20id,需要按数据集读取单条业务数据时使用','9ViwVnt','scriptName','lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>','keyword','lovrabet\x20bff\x20detail\x20--id\x20<scriptId>\x20--appcode\x20<appCode>','summary','str','string','##\x20Aggregate\x20dataset\x20data','dataset_detail','Create\x20dataset\x20record','执行自定义\x20SQL','{\x22param\x22:\x22value\x22}','where\x20filters\x20before\x20aggregation','Dataset\x20detail','Get\x20one\x20dataset\x20record','创建数据','lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27','161608gAcnsI','/api/{appCode}/{datasetCode}/aggregate','tableData\x20contains\x20records','需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','trim','tableData\x20contains\x20dataset\x20id/code/name','datasetCode','paging\x20contains\x20pagination','whenToUse','{\x22fieldName\x22:\x22value\x22}','1385844aecqsa','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.','4344800wpERpi','{\x22aggregate\x22:[{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','None','获取应用下可调用的\x20BF\x20函数列表','toLowerCase','api-doc','Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.','Returns\x20endpoint\x20functionName/id/description','path','##\x20List\x20datasets','map','/api/{appCode}/{datasetCode}/create','{\x22id\x22:123}','List\x20datasets','Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text','Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.','Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.','Current\x20app\x20code','3361186huoUBr','需要携带\x20where、orderBy、分页等条件读取业务数据时使用','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27','appCode','read','dataset_data_get_one','32-character\x20dataset\x20code','/api/{appCode}/{datasetCode}/getOne','result\x20rows\x20contain\x20aggregate\x20aliases','执行指定\x20BF\x20函数','Returns\x20one\x20matching\x20business\x20record','fields/properties\x20describe\x20data\x20shape','dataset_data_aggregate','List\x20available\x20runtime\x20API\x20documentation\x20entries','Filter\x20dataset\x20data','join','11618832PcoXDi','/api/dataset/getOneByCode?code={datasetCode}','218397fHoezN','Aggregate\x20dataset\x20data','Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.','dataset_data_filter','Show\x20runtime\x20API\x20documentation\x20by\x20code','POST','需要向指定数据集新增一条业务数据时使用','code','##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.','##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.','{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用','includes','672MmrzvU','##\x20Filter\x20dataset\x20data','查询单条数据','Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset','dataset','需要按数据集\x20code\x20获取字段、表信息或操作定义时使用','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.','lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27','需要先确认当前应用有哪些可执行的\x20BF/ENDPOINT\x20函数,以及收敛可用\x20scriptName\x20时使用','This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.','custom_sql','Execute\x20custom\x20SQL','GET','{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','category'];a1_0x5f19=function(){return _0x24c7c7;};return a1_0x5f19();}function entrySummary(_0xa70c26){const _0x1bdf98=a1_0x4d685c;return{'code':_0xa70c26[_0x1bdf98(0x187)],'category':_0xa70c26[_0x1bdf98(0x19b)],'method':_0xa70c26[_0x1bdf98(0x19f)],'path':_0xa70c26['path'],'summary':_0xa70c26[_0x1bdf98(0x143)],'whenToUse':_0xa70c26[_0x1bdf98(0x158)]};}function a1_0x2a2d(_0x2bbf51,_0x35a7d6){_0x2bbf51=_0x2bbf51-0x138;const _0x5f1994=a1_0x5f19();let _0x2a2df5=_0x5f1994[_0x2bbf51];return _0x2a2df5;}export function listApiDocEntries(_0x2efda0={}){const _0x35f75f=a1_0x4d685c,_0x44bf51=String(_0x2efda0[_0x35f75f(0x19b)]||'')['trim'](),_0x334bda=String(_0x2efda0[_0x35f75f(0x141)]||'')[_0x35f75f(0x154)]()[_0x35f75f(0x160)]();return DOCS[_0x35f75f(0x19d)](_0x3f5624=>{const _0x56a62f=_0x35f75f;if(_0x44bf51&&_0x3f5624[_0x56a62f(0x19b)]!==_0x44bf51)return![];if(!_0x334bda)return!![];return[_0x3f5624[_0x56a62f(0x187)],_0x3f5624[_0x56a62f(0x19b)],_0x3f5624[_0x56a62f(0x19f)],_0x3f5624[_0x56a62f(0x164)],_0x3f5624[_0x56a62f(0x143)],_0x3f5624[_0x56a62f(0x158)],_0x3f5624['title']][_0x56a62f(0x17d)]('\x20')['toLowerCase']()[_0x56a62f(0x18c)](_0x334bda);})[_0x35f75f(0x166)](entrySummary);}export function getApiDocDetail(_0x14397b){const _0x3d06f7=a1_0x4d685c,_0x4adabd=DOCS['find'](_0x13df1e=>_0x13df1e[_0x3d06f7(0x187)]===_0x14397b);if(!_0x4adabd)throw CliErrors['validation']('API\x20doc\x20code\x20not\x20found:\x20'+_0x14397b);return{..._0x4adabd};}const apiDocList={'service':a1_0x4d685c(0x161),'command':'list','description':a1_0x4d685c(0x17b),'risk':a1_0x4d685c(0x172),'requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0x30a586){const _0x46f52c=a1_0x4d685c,_0x59af27=listApiDocEntries({'category':_0x30a586[_0x46f52c(0x144)](_0x46f52c(0x19b)),'keyword':_0x30a586['str'](_0x46f52c(0x141))});return{'ok':!![],'data':{'total':_0x59af27['length'],'items':_0x59af27}};}},apiDocDetail={'service':a1_0x4d685c(0x161),'command':'detail','description':a1_0x4d685c(0x184),'risk':a1_0x4d685c(0x172),'requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0x3d7a7f){const _0x2a2788=a1_0x4d685c;return{'ok':!![],'data':getApiDocDetail(_0x3d7a7f['str'](_0x2a2788(0x187)))};}};export const apiDocDefinitions=[apiDocList,apiDocDetail];
1
+ const a1_0x1ad983=a1_0x3114;(function(_0x33841f,_0x4476c0){const _0x25b8aa=a1_0x3114,_0x3add6e=_0x33841f();while(!![]){try{const _0x4567e1=-parseInt(_0x25b8aa(0x18d))/0x1+parseInt(_0x25b8aa(0x160))/0x2*(-parseInt(_0x25b8aa(0x165))/0x3)+parseInt(_0x25b8aa(0x151))/0x4+-parseInt(_0x25b8aa(0x15c))/0x5*(-parseInt(_0x25b8aa(0x16a))/0x6)+-parseInt(_0x25b8aa(0x150))/0x7*(parseInt(_0x25b8aa(0x155))/0x8)+parseInt(_0x25b8aa(0x18c))/0x9*(-parseInt(_0x25b8aa(0x184))/0xa)+parseInt(_0x25b8aa(0x190))/0xb;if(_0x4567e1===_0x4476c0)break;else _0x3add6e['push'](_0x3add6e['shift']());}catch(_0x2b249b){_0x3add6e['push'](_0x3add6e['shift']());}}}(a1_0x52d5,0xd5cda));import{CliErrors}from'../../errors.js';const CATEGORY_FLAG={'name':a1_0x1ad983(0x19b),'type':'string','description':a1_0x1ad983(0x14e)},KEYWORD_FLAG={'name':a1_0x1ad983(0x19a),'type':a1_0x1ad983(0x177),'description':a1_0x1ad983(0x180)},DOC_CODE_FLAG={'name':a1_0x1ad983(0x166),'type':a1_0x1ad983(0x177),'required':!![],'description':'API\x20doc\x20code,\x20for\x20example\x20dataset_list'},DOCS=[{'code':a1_0x1ad983(0x194),'category':a1_0x1ad983(0x173),'title':a1_0x1ad983(0x172),'method':'POST','path':a1_0x1ad983(0x1a1),'summary':a1_0x1ad983(0x15d),'whenToUse':a1_0x1ad983(0x1a3),'pathParams':[],'queryParams':[],'bodySchema':a1_0x1ad983(0x1a4),'responseHighlights':[a1_0x1ad983(0x159),a1_0x1ad983(0x19d)],'examples':['lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress'],'notes':[a1_0x1ad983(0x17c)],'markdown':[a1_0x1ad983(0x192),'',a1_0x1ad983(0x193)][a1_0x1ad983(0x191)]('\x0a')},{'code':a1_0x1ad983(0x181),'category':'dataset','title':a1_0x1ad983(0x15b),'method':a1_0x1ad983(0x176),'path':'/api/dataset/getOneByCode?code={datasetCode}','summary':a1_0x1ad983(0x185),'whenToUse':'需要按数据集\x20code\x20获取字段、表信息或操作定义时使用','pathParams':[],'queryParams':[{'name':a1_0x1ad983(0x166),'description':a1_0x1ad983(0x14a)}],'bodySchema':a1_0x1ad983(0x132),'responseHighlights':['fields/properties\x20describe\x20data\x20shape',a1_0x1ad983(0x17a)],'examples':[a1_0x1ad983(0x196)],'notes':[a1_0x1ad983(0x15a)],'markdown':[a1_0x1ad983(0x197),'',a1_0x1ad983(0x14c)][a1_0x1ad983(0x191)]('\x0a')},{'code':a1_0x1ad983(0x16d),'category':a1_0x1ad983(0x173),'title':a1_0x1ad983(0x141),'method':'POST','path':a1_0x1ad983(0x178),'summary':'条件过滤查询数据','whenToUse':a1_0x1ad983(0x189),'pathParams':[{'name':a1_0x1ad983(0x18b),'description':a1_0x1ad983(0x179)},{'name':a1_0x1ad983(0x13e),'description':a1_0x1ad983(0x14a)}],'queryParams':[],'bodySchema':a1_0x1ad983(0x19c),'responseHighlights':[a1_0x1ad983(0x1a2),'paging\x20contains\x20pagination'],'examples':[a1_0x1ad983(0x1a5)],'notes':[a1_0x1ad983(0x153)],'markdown':[a1_0x1ad983(0x13a),'','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.'][a1_0x1ad983(0x191)]('\x0a')},{'code':a1_0x1ad983(0x16b),'category':a1_0x1ad983(0x173),'title':a1_0x1ad983(0x14f),'method':'POST','path':a1_0x1ad983(0x138),'summary':a1_0x1ad983(0x16f),'whenToUse':a1_0x1ad983(0x148),'pathParams':[{'name':a1_0x1ad983(0x18b),'description':'Current\x20app\x20code'},{'name':'datasetCode','description':a1_0x1ad983(0x14a)}],'queryParams':[],'bodySchema':a1_0x1ad983(0x135),'responseHighlights':[a1_0x1ad983(0x15e),a1_0x1ad983(0x188)],'examples':[a1_0x1ad983(0x16e)],'notes':['Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.'],'markdown':[a1_0x1ad983(0x152),'',a1_0x1ad983(0x195)][a1_0x1ad983(0x191)]('\x0a')},{'code':a1_0x1ad983(0x19f),'category':a1_0x1ad983(0x173),'title':'Get\x20one\x20dataset\x20record','method':a1_0x1ad983(0x164),'path':a1_0x1ad983(0x198),'summary':a1_0x1ad983(0x167),'whenToUse':'已经知道记录\x20id,需要按数据集读取单条业务数据时使用','pathParams':[{'name':a1_0x1ad983(0x18b),'description':'Current\x20app\x20code'},{'name':a1_0x1ad983(0x13e),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':a1_0x1ad983(0x1a0),'responseHighlights':[a1_0x1ad983(0x142)],'examples':[a1_0x1ad983(0x13c)],'notes':['Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.'],'markdown':a1_0x1ad983(0x145)},{'code':a1_0x1ad983(0x143),'category':a1_0x1ad983(0x173),'title':'Create\x20dataset\x20record','method':'POST','path':'/api/{appCode}/{datasetCode}/create','summary':'创建数据','whenToUse':'需要向指定数据集新增一条业务数据时使用','pathParams':[{'name':a1_0x1ad983(0x18b),'description':'Current\x20app\x20code'},{'name':a1_0x1ad983(0x13e),'description':a1_0x1ad983(0x14a)}],'queryParams':[],'bodySchema':a1_0x1ad983(0x18a),'responseHighlights':[a1_0x1ad983(0x134)],'examples':[a1_0x1ad983(0x162)],'notes':[a1_0x1ad983(0x144)],'markdown':'##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.'},{'code':'bf_function_list','category':'bf','title':'List\x20BF\x20endpoint\x20functions','method':a1_0x1ad983(0x176),'path':a1_0x1ad983(0x146),'summary':a1_0x1ad983(0x16c),'whenToUse':a1_0x1ad983(0x18f),'pathParams':[{'name':a1_0x1ad983(0x18b),'description':a1_0x1ad983(0x179)}],'queryParams':[],'bodySchema':'None','responseHighlights':[a1_0x1ad983(0x174)],'examples':[a1_0x1ad983(0x13f)],'notes':[a1_0x1ad983(0x18e)],'markdown':'##\x20List\x20BF\x20endpoint\x20functions\x0a\x0aDiscover\x20executable\x20endpoint\x20functions.'},{'code':'bf_execute','category':'bf','title':a1_0x1ad983(0x157),'method':a1_0x1ad983(0x164),'path':a1_0x1ad983(0x136),'summary':a1_0x1ad983(0x161),'whenToUse':a1_0x1ad983(0x158),'pathParams':[{'name':a1_0x1ad983(0x18b),'description':a1_0x1ad983(0x179)},{'name':'scriptName','description':a1_0x1ad983(0x149)}],'queryParams':[],'bodySchema':a1_0x1ad983(0x13b),'responseHighlights':[a1_0x1ad983(0x19e)],'examples':[a1_0x1ad983(0x187)],'notes':['Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.'],'markdown':a1_0x1ad983(0x14b)},{'code':a1_0x1ad983(0x154),'category':a1_0x1ad983(0x156),'title':'Execute\x20custom\x20SQL','method':a1_0x1ad983(0x164),'path':'/api/custom/executeSql','summary':a1_0x1ad983(0x163),'whenToUse':'已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','pathParams':[],'queryParams':[],'bodySchema':a1_0x1ad983(0x175),'responseHighlights':['Returns\x20SQL\x20execution\x20payload'],'examples':[a1_0x1ad983(0x171)],'notes':[a1_0x1ad983(0x133)],'markdown':a1_0x1ad983(0x17b)}];function entrySummary(_0x3c0976){const _0x34af7b=a1_0x1ad983;return{'code':_0x3c0976[_0x34af7b(0x166)],'category':_0x3c0976[_0x34af7b(0x19b)],'method':_0x3c0976['method'],'path':_0x3c0976[_0x34af7b(0x186)],'summary':_0x3c0976[_0x34af7b(0x169)],'whenToUse':_0x3c0976[_0x34af7b(0x170)]};}export function listApiDocEntries(_0x4b22df={}){const _0x8a12cd=a1_0x1ad983,_0x3eb0d4=String(_0x4b22df['category']||'')['trim'](),_0x52b42c=String(_0x4b22df[_0x8a12cd(0x19a)]||'')[_0x8a12cd(0x199)]()['toLowerCase']();return DOCS[_0x8a12cd(0x147)](_0x547526=>{const _0x43203e=_0x8a12cd;if(_0x3eb0d4&&_0x547526[_0x43203e(0x19b)]!==_0x3eb0d4)return![];if(!_0x52b42c)return!![];return[_0x547526[_0x43203e(0x166)],_0x547526['category'],_0x547526['method'],_0x547526[_0x43203e(0x186)],_0x547526[_0x43203e(0x169)],_0x547526[_0x43203e(0x170)],_0x547526[_0x43203e(0x139)]][_0x43203e(0x191)]('\x20')[_0x43203e(0x183)]()['includes'](_0x52b42c);})[_0x8a12cd(0x137)](entrySummary);}function a1_0x3114(_0x3e730a,_0x19000b){_0x3e730a=_0x3e730a-0x132;const _0x52d5f4=a1_0x52d5();let _0x311472=_0x52d5f4[_0x3e730a];return _0x311472;}export function getApiDocDetail(_0x2f8eb9){const _0x14f56c=a1_0x1ad983,_0x1f38f1=DOCS[_0x14f56c(0x168)](_0x1becb2=>_0x1becb2[_0x14f56c(0x166)]===_0x2f8eb9);if(!_0x1f38f1)throw CliErrors[_0x14f56c(0x17f)](_0x14f56c(0x140)+_0x2f8eb9);return{..._0x1f38f1};}function a1_0x52d5(){const _0x916687=['lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>','##\x20Dataset\x20detail','/api/{appCode}/{datasetCode}/getOne','trim','keyword','category','{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','paging.totalCount\x20gives\x20total\x20rows','Returns\x20script\x20business\x20payload','dataset_data_get_one','{\x22id\x22:123}','/api/dataset/get-dataset-list-by-app-code','tableData\x20contains\x20records','需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','{\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','None','Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.','Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result','{\x22aggregate\x22:[{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','/api/endpoint/{appCode}/{scriptName}','map','/api/{appCode}/{datasetCode}/aggregate','title','##\x20Filter\x20dataset\x20data','{\x22param\x22:\x22value\x22}','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27','str','datasetCode','lovrabet\x20bff\x20detail\x20--id\x20<scriptId>\x20--appcode\x20<appCode>','API\x20doc\x20code\x20not\x20found:\x20','Filter\x20dataset\x20data','Returns\x20one\x20matching\x20business\x20record','dataset_data_create','This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.','##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.','/api/endpoint/{appCode}/functions','filter','需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用','Endpoint\x20function\x20name','32-character\x20dataset\x20code','##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.','Inspect\x20field\x20names\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.','api-doc','Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset','Aggregate\x20dataset\x20data','52570RECCCj','2499084zoSnJZ','##\x20Aggregate\x20dataset\x20data','Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.','custom_sql_execute','320sKTHIB','custom_sql','Execute\x20BF\x20endpoint\x20function','已经确认目标\x20BF\x20的\x20scriptName,且需要实际调用该\x20ENDPOINT\x20脚本完成业务操作时使用','tableData\x20contains\x20dataset\x20id/code/name','If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.','Dataset\x20detail','410115qbNzhL','分页获取数据集列表','result\x20rows\x20contain\x20aggregate\x20aliases','read','2MuFpvN','执行指定\x20BF\x20函数','lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27','执行自定义\x20SQL','POST','2134191yHMkEo','code','查询单条数据','find','summary','114hsvdrX','dataset_data_aggregate','获取应用下可调用的\x20BF\x20函数列表','dataset_data_filter','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','聚合查询数据集数据','whenToUse','lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27','List\x20datasets','dataset','Returns\x20endpoint\x20functionName/id/description','{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','GET','string','/api/{appCode}/{datasetCode}/filter','Current\x20app\x20code','operations\x20describes\x20runtime\x20APIs','##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.','CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.','list','List\x20available\x20runtime\x20API\x20documentation\x20entries','validation','Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text','dataset_detail','length','toLowerCase','140otNszN','获取数据集详情','path','lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27','where\x20filters\x20before\x20aggregation','需要携带\x20where、orderBy、分页等条件读取业务数据时使用','{\x22fieldName\x22:\x22value\x22}','appCode','297810Vrongm','1339796LYYHHi','CLI\x20has\x20typed\x20`bff\x20detail`\x20and\x20`bff\x20exec`\x20commands\x20for\x20endpoint\x20scripts.','需要先确认当前应用有哪些可执行的\x20BF/ENDPOINT\x20函数,以及收敛可用\x20scriptName\x20时使用','16581213NOUFPp','join','##\x20List\x20datasets','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.','dataset_list','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.'];a1_0x52d5=function(){return _0x916687;};return a1_0x52d5();}const apiDocList={'service':a1_0x1ad983(0x14d),'command':a1_0x1ad983(0x17d),'description':a1_0x1ad983(0x17e),'risk':'read','requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0x14aaf6){const _0x24850a=a1_0x1ad983,_0x3c10d1=listApiDocEntries({'category':_0x14aaf6[_0x24850a(0x13d)](_0x24850a(0x19b)),'keyword':_0x14aaf6[_0x24850a(0x13d)](_0x24850a(0x19a))});return{'ok':!![],'data':{'total':_0x3c10d1[_0x24850a(0x182)],'items':_0x3c10d1}};}},apiDocDetail={'service':a1_0x1ad983(0x14d),'command':'detail','description':'Show\x20runtime\x20API\x20documentation\x20by\x20code','risk':a1_0x1ad983(0x15f),'requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0x388d31){const _0x1bb559=a1_0x1ad983;return{'ok':!![],'data':getApiDocDetail(_0x388d31[_0x1bb559(0x13d)](_0x1bb559(0x166)))};}};export const apiDocDefinitions=[apiDocList,apiDocDetail];
@@ -1 +1 @@
1
- (function(_0x87d546,_0x273250){const _0x2b18c3=a2_0x55de,_0x740764=_0x87d546();while(!![]){try{const _0x1298ec=parseInt(_0x2b18c3(0x13c))/0x1+parseInt(_0x2b18c3(0x127))/0x2+parseInt(_0x2b18c3(0x12f))/0x3+-parseInt(_0x2b18c3(0x12a))/0x4+-parseInt(_0x2b18c3(0x130))/0x5+parseInt(_0x2b18c3(0x13d))/0x6+-parseInt(_0x2b18c3(0x128))/0x7;if(_0x1298ec===_0x273250)break;else _0x740764['push'](_0x740764['shift']());}catch(_0xfe810b){_0x740764['push'](_0x740764['shift']());}}}(a2_0x4eca,0xd3a1a));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';export function fingerprintAccessKey(_0x43db4c){const _0x1408cc=a2_0x55de,_0x178a28=_0x43db4c['trim'](),_0x589c96=_0x178a28['slice'](-0x6)||_0x1408cc(0x138),_0x47613c=createHash(_0x1408cc(0x129))[_0x1408cc(0x12e)](_0x178a28)[_0x1408cc(0x132)](_0x1408cc(0x12c))[_0x1408cc(0x139)](0x0,0xc);return _0x1408cc(0x135)+_0x589c96+'_'+_0x47613c;}export function getAppCacheFilePath(_0x1143ce,_0x4b88ed){const _0x2a08b8=a2_0x55de;return resolve(homedir(),PRODUCT_CONFIG[_0x2a08b8(0x134)],'cache',_0x1143ce,fingerprintAccessKey(_0x4b88ed),_0x2a08b8(0x133));}export function readCachedAppList(_0x2e929d,_0x13f0db){const _0x4d1656=a2_0x55de;if(!_0x13f0db?.[_0x4d1656(0x12b)]())return null;const _0x53cf74=getAppCacheFilePath(_0x2e929d,_0x13f0db);if(!existsSync(_0x53cf74))return null;try{const _0x1164e5=readFileSync(_0x53cf74,'utf8');if(!_0x1164e5[_0x4d1656(0x12b)]())return null;const _0xc203bf=JSON[_0x4d1656(0x13a)](_0x1164e5);if(!Array['isArray'](_0xc203bf['items']))return null;return _0xc203bf;}catch{return null;}}function a2_0x55de(_0x5a771e,_0x5df08e){_0x5a771e=_0x5a771e-0x127;const _0x4eca7e=a2_0x4eca();let _0x55de3f=_0x4eca7e[_0x5a771e];return _0x55de3f;}export function writeCachedAppList(_0x154ec4,_0x45874a,_0xe118e3){const _0x5950e5=a2_0x55de,_0x241367=getAppCacheFilePath(_0x154ec4,_0x45874a),_0x1bc72d=dirname(_0x241367);!existsSync(_0x1bc72d)&&mkdirSync(_0x1bc72d,{'recursive':!![]});const _0x128cd=_0x241367+'.tmp';try{writeFileSync(_0x128cd,JSON['stringify'](_0xe118e3,null,0x2)+'\x0a',{'encoding':_0x5950e5(0x137),'mode':0x180});try{renameSync(_0x128cd,_0x241367);}catch(_0x262164){if(_0x262164[_0x5950e5(0x13e)]===_0x5950e5(0x136)||_0x262164[_0x5950e5(0x13e)]==='EXDEV'||_0x262164['code']==='EACCES'){writeFileSync(_0x241367,JSON['stringify'](_0xe118e3,null,0x2)+'\x0a',{'encoding':_0x5950e5(0x137)});try{unlinkSync(_0x128cd);}catch{}}else throw _0x262164;}}catch(_0x2704f5){try{unlinkSync(_0x128cd);}catch{}throw _0x2704f5;}return _0x241367;}export function resolveCachedAppCode(_0x2ace5e,_0x629e94,_0x52cc5e){const _0x283c81=a2_0x55de;if(!_0x2ace5e)return undefined;const _0x42ada2=readCachedAppList(_0x629e94,_0x52cc5e),_0x1add10=_0x42ada2?.[_0x283c81(0x12d)][_0x283c81(0x131)](_0x5665d9=>_0x5665d9[_0x283c81(0x13b)]===_0x2ace5e);return _0x1add10?.['appCode']?.['trim']()||undefined;}function a2_0x4eca(){const _0x78ce1f=['items','update','2044347HqtNjM','4170895LDrazW','find','digest','my-apps.json','homeDirName','ak_','EPERM','utf8','unknown','slice','parse','appName','1064705lydkLc','2915862pGdpeP','code','3226134dxsZxc','4828579iHClgr','sha256','5817520GAxrxo','trim','hex'];a2_0x4eca=function(){return _0x78ce1f;};return a2_0x4eca();}
1
+ (function(_0x3aa5b0,_0x2a2eda){const _0x47c20d=a2_0x4b24,_0x3a4402=_0x3aa5b0();while(!![]){try{const _0xdaec46=parseInt(_0x47c20d(0x1cb))/0x1+parseInt(_0x47c20d(0x1b2))/0x2*(-parseInt(_0x47c20d(0x1b4))/0x3)+parseInt(_0x47c20d(0x1c6))/0x4*(parseInt(_0x47c20d(0x1c1))/0x5)+parseInt(_0x47c20d(0x1c9))/0x6*(parseInt(_0x47c20d(0x1c7))/0x7)+parseInt(_0x47c20d(0x1ca))/0x8*(-parseInt(_0x47c20d(0x1bd))/0x9)+-parseInt(_0x47c20d(0x1bb))/0xa*(-parseInt(_0x47c20d(0x1ae))/0xb)+-parseInt(_0x47c20d(0x1c8))/0xc;if(_0xdaec46===_0x2a2eda)break;else _0x3a4402['push'](_0x3a4402['shift']());}catch(_0x154978){_0x3a4402['push'](_0x3a4402['shift']());}}}(a2_0x4ff2,0x18b3a));function a2_0x4b24(_0x38960b,_0x547a11){_0x38960b=_0x38960b-0x1ae;const _0x4ff256=a2_0x4ff2();let _0x4b246f=_0x4ff256[_0x38960b];return _0x4b246f;}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';export function fingerprintAccessKey(_0x5073da){const _0x52418d=a2_0x4b24,_0x51be49=_0x5073da[_0x52418d(0x1b6)](),_0x243fce=_0x51be49[_0x52418d(0x1c5)](-0x6)||_0x52418d(0x1c4),_0x14a49f=createHash('sha256')['update'](_0x51be49)[_0x52418d(0x1be)]('hex')[_0x52418d(0x1c5)](0x0,0xc);return'ak_'+_0x243fce+'_'+_0x14a49f;}function a2_0x4ff2(){const _0x1c54bb=['unknown','slice','639724EiVlIV','67697dQbSwl','3230328ZjTgVS','90kIaNMb','159944zQolKM','54340JgeRIM','99vwgVrS','EPERM','code','items','2YrJALT','EXDEV','555QGzdvS','my-apps.json','trim','EACCES','appName','isArray','cache','123540gGNrco','homeDirName','45bWSrgO','digest','stringify','find','5ANhLEG','utf8','.tmp'];a2_0x4ff2=function(){return _0x1c54bb;};return a2_0x4ff2();}export function getAppCacheFilePath(_0xe79be9,_0x4a73e2){const _0x22e2f5=a2_0x4b24;return resolve(homedir(),PRODUCT_CONFIG[_0x22e2f5(0x1bc)],_0x22e2f5(0x1ba),_0xe79be9,fingerprintAccessKey(_0x4a73e2),_0x22e2f5(0x1b5));}export function readCachedAppList(_0x4e29db,_0x52e3ea){const _0x5d0873=a2_0x4b24;if(!_0x52e3ea?.[_0x5d0873(0x1b6)]())return null;const _0x7968da=getAppCacheFilePath(_0x4e29db,_0x52e3ea);if(!existsSync(_0x7968da))return null;try{const _0x39e7bc=readFileSync(_0x7968da,_0x5d0873(0x1c2));if(!_0x39e7bc['trim']())return null;const _0x2674b9=JSON['parse'](_0x39e7bc);if(!Array[_0x5d0873(0x1b9)](_0x2674b9[_0x5d0873(0x1b1)]))return null;return _0x2674b9;}catch{return null;}}export function writeCachedAppList(_0x56eb31,_0x34395f,_0x2eb5af){const _0x26a8be=a2_0x4b24,_0x2fe4f0=getAppCacheFilePath(_0x56eb31,_0x34395f),_0x4f1d83=dirname(_0x2fe4f0);!existsSync(_0x4f1d83)&&mkdirSync(_0x4f1d83,{'recursive':!![]});const _0x2ecad8=_0x2fe4f0+_0x26a8be(0x1c3);try{writeFileSync(_0x2ecad8,JSON[_0x26a8be(0x1bf)](_0x2eb5af,null,0x2)+'\x0a',{'encoding':_0x26a8be(0x1c2),'mode':0x180});try{renameSync(_0x2ecad8,_0x2fe4f0);}catch(_0x143753){if(_0x143753[_0x26a8be(0x1b0)]===_0x26a8be(0x1af)||_0x143753['code']===_0x26a8be(0x1b3)||_0x143753[_0x26a8be(0x1b0)]===_0x26a8be(0x1b7)){writeFileSync(_0x2fe4f0,JSON[_0x26a8be(0x1bf)](_0x2eb5af,null,0x2)+'\x0a',{'encoding':_0x26a8be(0x1c2)});try{unlinkSync(_0x2ecad8);}catch{}}else throw _0x143753;}}catch(_0x461e38){try{unlinkSync(_0x2ecad8);}catch{}throw _0x461e38;}return _0x2fe4f0;}export function resolveCachedAppCode(_0x46f58e,_0x8dc354,_0x4ef6cb){const _0x8792c9=a2_0x4b24;if(!_0x46f58e)return undefined;const _0x21bda5=readCachedAppList(_0x8dc354,_0x4ef6cb),_0x426ffd=_0x21bda5?.[_0x8792c9(0x1b1)][_0x8792c9(0x1c0)](_0x10a37b=>_0x10a37b[_0x8792c9(0x1b8)]===_0x46f58e);return _0x426ffd?.['appCode']?.[_0x8792c9(0x1b6)]()||undefined;}
@@ -1 +1 @@
1
- const a3_0x5eb44c=a3_0x399d;(function(_0x89a365,_0xf0c9e4){const _0x5c53d0=a3_0x399d,_0x489a35=_0x89a365();while(!![]){try{const _0xf3b84a=-parseInt(_0x5c53d0(0x1de))/0x1*(parseInt(_0x5c53d0(0x1f7))/0x2)+parseInt(_0x5c53d0(0x20d))/0x3+parseInt(_0x5c53d0(0x209))/0x4+-parseInt(_0x5c53d0(0x212))/0x5+-parseInt(_0x5c53d0(0x200))/0x6*(-parseInt(_0x5c53d0(0x1f0))/0x7)+-parseInt(_0x5c53d0(0x219))/0x8*(-parseInt(_0x5c53d0(0x207))/0x9)+-parseInt(_0x5c53d0(0x1d5))/0xa;if(_0xf3b84a===_0xf0c9e4)break;else _0x489a35['push'](_0x489a35['shift']());}catch(_0x381d0e){_0x489a35['push'](_0x489a35['shift']());}}}(a3_0x40f3,0xb7105));import{CliErrors}from'../../errors.js';function a3_0x40f3(){const _0x2ad290=['12874920LpmCyE','Read\x20from\x20local\x20cache\x20only','Remote\x20app\x20name\x20to\x20activate','cachePath','raw','push','appPublishStatus','App\x20\x22','Default\x20app\x20candidate\x20set\x20to\x20\x22','1028055yWHJTE','Use\x20`','no-cache','string','projectPath','join','newConfigFileName','Use\x20global\x20config\x20scope','appName','local','read','source','pull','Usage:\x20','trim','Loaded\x20','\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.','isArray','7kvgaQT','.appcode\x20to\x20.lovrabet.json.','envName','length','name','Missing\x20app\x20name.','validation','2RBZJPE','bool','globalPath','defaultApp','find','appOwnerName','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','import','6924654PCEuLJ','app','entries','../../context.js','\x20app\x20use\x20<name>\x20[--global]','appCode','production','240399QgEUDr','isCurrent','3787456vcuTZm','No\x20cached\x20apps\x20found.','mergedCli','Initialize\x20','3178398LLlkyR','env','\x20cached\x20app(s)\x20for\x20env=\x22','map','enableI18n','1410200RePfmh','Set\x20the\x20fallback\x20app\x20candidate','fetchedAt','items','boolean','global','Read\x20app\x20list\x20from\x20local\x20cache\x20only','56haKLKl','accessKey','cache','i18nInfo','\x20config\x20file','\x20app(s)\x20for\x20env=\x22','from','write','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','list','nonInteractive','Filter\x20by\x20environment\x20(default:\x20current\x20env)','../../commands/app/cache.js','args','appcode','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','filter','str'];a3_0x40f3=function(){return _0x2ad290;};return a3_0x40f3();}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';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_0x5eb44c(0x217),'type':a3_0x5eb44c(0x216),'description':a3_0x5eb44c(0x1e5),'default':![]};function collectFlags(_0x474c80,_0x193a1d){const _0x18cd14=a3_0x5eb44c,_0x237e58={};for(const _0xdfec81 of _0x193a1d){const _0xe45371=_0xdfec81['type']===_0x18cd14(0x216)?_0x474c80['bool'](_0xdfec81['name']):_0x474c80[_0x18cd14(0x1d4)](_0xdfec81[_0x18cd14(0x1f4)]);if(_0xe45371!==''&&_0xe45371!==![])_0x237e58[_0xdfec81[_0x18cd14(0x1f4)]]=_0xe45371;}if(_0x474c80[_0x18cd14(0x1cd)])_0x237e58[_0x18cd14(0x1cd)]=!![];return _0x237e58;}function normalizeLanguages(_0xdbd424){const _0x477e59=a3_0x5eb44c;if(!Array[_0x477e59(0x1ef)](_0xdbd424))return[];return _0xdbd424[_0x477e59(0x1d3)](_0x224a4b=>typeof _0x224a4b===_0x477e59(0x1e1))[_0x477e59(0x210)](_0xb2ed6b=>_0xb2ed6b['trim']())['filter'](Boolean);}function buildRemoteAppI18nFields(_0x41d80a){const _0x3a4b5d=a3_0x5eb44c,_0x399b2f=normalizeLanguages(_0x41d80a[_0x3a4b5d(0x21c)]?.['langs']);return{'enableI18n':typeof _0x41d80a['enableI18n']===_0x3a4b5d(0x216)?_0x41d80a[_0x3a4b5d(0x211)]:null,'languages':_0x399b2f,'i18nInfo':_0x41d80a[_0x3a4b5d(0x21c)]?{..._0x41d80a[_0x3a4b5d(0x21c)],'langs':_0x399b2f[_0x3a4b5d(0x1f3)]?_0x399b2f:null}:null};}const initDef={'service':a3_0x5eb44c(0x201),'command':'init','description':a3_0x5eb44c(0x20c)+PRODUCT_CONFIG[a3_0x5eb44c(0x1e4)]+a3_0x5eb44c(0x21d),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x103f99){return await runInit(collectFlags(_0x103f99,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a3_0x5eb44c(0x201),'command':a3_0x5eb44c(0x1cc),'description':a3_0x5eb44c(0x1fd),'risk':a3_0x5eb44c(0x1e8),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a3_0x5eb44c(0x20e),'type':a3_0x5eb44c(0x1e1),'description':a3_0x5eb44c(0x1ce),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x5eb44c(0x1e7),'type':a3_0x5eb44c(0x216),'description':a3_0x5eb44c(0x218),'default':![]},{'name':a3_0x5eb44c(0x1e0),'type':'boolean','description':a3_0x5eb44c(0x1d2),'default':![]}],async 'execute'(_0x4833fa){const _0x1f5828=a3_0x5eb44c,_0x19621e=_0x4833fa[_0x1f5828(0x1d4)](_0x1f5828(0x20e))||_0x4833fa[_0x1f5828(0x1f2)]||getEnv()||_0x1f5828(0x206),_0x4d4d06=_0x4833fa['bool'](_0x1f5828(0x1e7)),_0x43b841=_0x4833fa['bool'](_0x1f5828(0x1e0)),{readRawConfigWithLayers:_0x233336,resolveDefaultAppSource:_0x3e55f5,getLocalAppAliases:_0xcd2922}=await import(_0x1f5828(0x203)),{getRemoteAppList:_0x377016}=await import('../../commands/app/remote-source.js'),{config:_0x9b7a7a,layers:_0x4f25f8}=_0x233336(),_0x1fc893=_0x3e55f5(_0x4f25f8),{defaultApp:_0x29f468}=_0x9b7a7a,_0x32cb35=await _0x377016({'env':_0x19621e,'accessKey':_0x4833fa[_0x1f5828(0x21a)],'localOnly':_0x4d4d06,'noCache':_0x43b841}),_0x2afd35=_0x32cb35[_0x1f5828(0x215)][_0x1f5828(0x210)](_0x3c443b=>{const _0x6aa697=_0x1f5828;return{'name':_0x3c443b['appName'],'appcode':_0x3c443b[_0x6aa697(0x205)],'named':!![],'definedIn':'remote','isDefault':_0x3c443b[_0x6aa697(0x1e6)]===_0x29f468,...buildAppProfileListFields(_0x19621e),...buildRemoteAppI18nFields(_0x3c443b),'source':_0x32cb35[_0x6aa697(0x1e9)],'owner':_0x3c443b[_0x6aa697(0x1fc)]??null,'status':_0x3c443b[_0x6aa697(0x1db)]??null,'cachedAt':_0x32cb35[_0x6aa697(0x214)]};}),_0x30fc07=_0xcd2922(_0x9b7a7a);let _0x370e42=0x0;for(const [_0x556868,_0xe83ad]of Object[_0x1f5828(0x202)](_0x30fc07)){const _0x5e58ba=typeof _0xe83ad[_0x1f5828(0x1d1)]===_0x1f5828(0x1e1)?_0xe83ad[_0x1f5828(0x1d1)][_0x1f5828(0x1ec)]():'';if(!_0x5e58ba)continue;_0x370e42+=0x1,_0x2afd35[_0x1f5828(0x1da)]({'name':_0x556868,'appcode':_0x5e58ba,'named':!![],'definedIn':_0x1f5828(0x1e7),'isDefault':_0x556868===_0x29f468,...buildAppProfileListFields(_0x19621e),'source':'config','owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x2afd35,_0x4833fa[_0x1f5828(0x20b)]);if(_0x2afd35[_0x1f5828(0x1f3)]===0x0)return{'ok':!![],'data':[],'message':_0x32cb35['source']===_0x1f5828(0x21b)?_0x1f5828(0x20a):'No\x20apps\x20found\x20on\x20the\x20platform.'};const _0x5a3957=_0x2afd35[_0x1f5828(0x1fb)](_0x3e573d=>_0x3e573d[_0x1f5828(0x208)]===!![]),_0x45d4cf=_0x29f468??_0x5a3957?.[_0x1f5828(0x1f4)]??null,_0x1ce05c={'env':_0x19621e,'source':_0x32cb35[_0x1f5828(0x1e9)],'fetchedAt':_0x32cb35['fetchedAt'],'cachePath':_0x32cb35[_0x1f5828(0x1d8)],'globalPath':_0x4f25f8[_0x1f5828(0x1f9)]??null,'projectPath':_0x4f25f8[_0x1f5828(0x1e2)]??null,'defaultApp':_0x45d4cf,'defaultAppSource':_0x29f468!=null?_0x1fc893:null,'localAliasCount':_0x370e42};return{'ok':!![],'data':{'items':_0x2afd35,'meta':_0x1ce05c}};}},pullDef={'service':a3_0x5eb44c(0x201),'command':a3_0x5eb44c(0x1ea),'description':a3_0x5eb44c(0x1fe),'risk':a3_0x5eb44c(0x220),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a3_0x5eb44c(0x20e),'type':a3_0x5eb44c(0x1e1),'description':'Target\x20environment\x20(default:\x20current\x20env)','enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x5eb44c(0x1e7),'type':a3_0x5eb44c(0x216),'description':a3_0x5eb44c(0x1d6),'default':![]},{'name':a3_0x5eb44c(0x1e0),'type':'boolean','description':a3_0x5eb44c(0x1d2),'default':![]}],async 'execute'(_0x3d4944){const _0x3fce39=a3_0x5eb44c,_0x367dea=_0x3d4944[_0x3fce39(0x1d4)](_0x3fce39(0x20e))||_0x3d4944[_0x3fce39(0x1f2)]||getEnv()||'production',_0x34c518=_0x3d4944[_0x3fce39(0x1f8)](_0x3fce39(0x1e7)),_0x257aa0=_0x3d4944[_0x3fce39(0x1f8)]('no-cache'),{getRemoteAppList:_0x445c94}=await import('../../commands/app/remote-source.js'),_0x5bbce2=await _0x445c94({'env':_0x367dea,'accessKey':_0x3d4944[_0x3fce39(0x21a)],'localOnly':_0x34c518,'noCache':_0x257aa0});return{'ok':!![],'data':{'total':_0x5bbce2[_0x3fce39(0x215)][_0x3fce39(0x1f3)],'env':_0x367dea,'source':_0x5bbce2[_0x3fce39(0x1e9)],'fetchedAt':_0x5bbce2[_0x3fce39(0x214)],'cachePath':_0x5bbce2[_0x3fce39(0x1d8)]},'message':_0x5bbce2[_0x3fce39(0x1e9)]==='cache'?_0x3fce39(0x1ed)+_0x5bbce2[_0x3fce39(0x215)][_0x3fce39(0x1f3)]+_0x3fce39(0x20f)+_0x367dea+'\x22.':'Refreshed\x20app\x20cache\x20with\x20'+_0x5bbce2[_0x3fce39(0x215)]['length']+_0x3fce39(0x21e)+_0x367dea+'\x22.'};}},useDef={'service':a3_0x5eb44c(0x201),'command':'use','description':a3_0x5eb44c(0x213),'risk':a3_0x5eb44c(0x220),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'name','description':a3_0x5eb44c(0x1d7),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x44989a){const _0x4a9090=a3_0x5eb44c;if(!_0x44989a[_0x4a9090(0x1d0)][0x0])throw CliErrors['validation']('Missing\x20app\x20name.',_0x4a9090(0x1eb)+CLI_BIN_NAME+_0x4a9090(0x204));},async 'execute'(_0x1b425c){const _0x5b5b13=a3_0x5eb44c,_0x356573=_0x1b425c[_0x5b5b13(0x1d0)][0x0];if(!_0x356573)throw CliErrors[_0x5b5b13(0x1f6)](_0x5b5b13(0x1f5),_0x5b5b13(0x1eb)+CLI_BIN_NAME+_0x5b5b13(0x204));const {buildConfigFromFlags:_0x40f543,resolveLocalAppAliasCode:_0x1bd85}=await import(_0x5b5b13(0x203)),{readCachedAppList:_0x38c25c}=await import(_0x5b5b13(0x1cf)),_0x4a4674=_0x1b425c[_0x5b5b13(0x1d4)](_0x5b5b13(0x20e)),_0x202c60=_0x40f543(_0x4a4674?{'env':_0x4a4674}:{}),_0x267c6e=_0x38c25c(_0x202c60[_0x5b5b13(0x20e)],_0x202c60[_0x5b5b13(0x21a)]),_0x33b014=_0x267c6e?.[_0x5b5b13(0x215)][_0x5b5b13(0x1fb)](_0x5aa4f6=>_0x5aa4f6[_0x5b5b13(0x1e6)]===_0x356573),_0x19ce17=_0x1bd85(_0x202c60[_0x5b5b13(0x1d9)]??{},_0x356573);if(!_0x33b014&&!_0x19ce17&&_0x202c60[_0x5b5b13(0x1fa)]!==_0x356573){const _0x3ac782=[..._0x267c6e?.['items']['map'](_0x59a51a=>_0x59a51a[_0x5b5b13(0x1e6)])??[]],_0x2137d2=_0x3ac782[_0x5b5b13(0x1f3)]===0x0?_0x5b5b13(0x1df)+CLI_BIN_NAME+_0x5b5b13(0x1ee)+_0x356573+_0x5b5b13(0x1f1):'Available\x20remote\x20apps:\x20'+Array[_0x5b5b13(0x21f)](new Set(_0x3ac782))[_0x5b5b13(0x1e3)](',\x20')+'.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.';throw CliErrors[_0x5b5b13(0x1f6)](_0x5b5b13(0x1dc)+_0x356573+'\x22\x20not\x20found.',_0x2137d2);}const _0x2a2189=_0x1b425c[_0x5b5b13(0x1f8)](_0x5b5b13(0x217));let _0x320d04;if(_0x2a2189)_0x320d04={'global':!![]};else{const {isInProject:_0x19ee68}=await import(_0x5b5b13(0x203)),_0x52ba57=_0x19ee68();_0x320d04=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':'project-default','inProject':_0x52ba57}));}const _0x4d000f=readConfig(_0x320d04);return _0x4d000f[_0x5b5b13(0x1fa)]=_0x356573,writeConfig(_0x4d000f,_0x320d04),{'ok':!![],'message':_0x5b5b13(0x1dd)+_0x356573+'\x22'+scopeLabel(_0x320d04)+'.'};}},importDef={'service':a3_0x5eb44c(0x201),'command':a3_0x5eb44c(0x1ff),'description':a3_0x5eb44c(0x221),'risk':a3_0x5eb44c(0x220),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x7df57c){return await runInitImport(collectFlags(_0x7df57c,initImportFlagDefs)),{'ok':!![]};}};function a3_0x399d(_0x302fbe,_0x340b4a){_0x302fbe=_0x302fbe-0x1cc;const _0x40f3c6=a3_0x40f3();let _0x399dfe=_0x40f3c6[_0x302fbe];return _0x399dfe;}export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
1
+ const a3_0x43a778=a3_0x56a2;(function(_0x4bf1fb,_0x913fc9){const _0x3c0f36=a3_0x56a2,_0x4ea20b=_0x4bf1fb();while(!![]){try{const _0x39f834=parseInt(_0x3c0f36(0x119))/0x1*(-parseInt(_0x3c0f36(0xf0))/0x2)+-parseInt(_0x3c0f36(0xfe))/0x3*(-parseInt(_0x3c0f36(0x111))/0x4)+parseInt(_0x3c0f36(0x12d))/0x5*(parseInt(_0x3c0f36(0xeb))/0x6)+-parseInt(_0x3c0f36(0xe0))/0x7+parseInt(_0x3c0f36(0x125))/0x8*(parseInt(_0x3c0f36(0x101))/0x9)+-parseInt(_0x3c0f36(0x10c))/0xa*(-parseInt(_0x3c0f36(0x100))/0xb)+parseInt(_0x3c0f36(0x11f))/0xc*(-parseInt(_0x3c0f36(0xe3))/0xd);if(_0x39f834===_0x913fc9)break;else _0x4ea20b['push'](_0x4ea20b['shift']());}catch(_0x57a35a){_0x4ea20b['push'](_0x4ea20b['shift']());}}}(a3_0x54b4,0xd210c));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';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':'boolean','description':'Use\x20global\x20config\x20scope','default':![]};function collectFlags(_0x51a759,_0x19445){const _0x108acc=a3_0x56a2,_0x788315={};for(const _0x28c710 of _0x19445){const _0x153698=_0x28c710[_0x108acc(0xfc)]===_0x108acc(0xe1)?_0x51a759[_0x108acc(0x115)](_0x28c710['name']):_0x51a759['str'](_0x28c710['name']);if(_0x153698!==''&&_0x153698!==![])_0x788315[_0x28c710[_0x108acc(0xee)]]=_0x153698;}if(_0x51a759[_0x108acc(0x106)])_0x788315[_0x108acc(0x106)]=!![];return _0x788315;}function normalizeLanguages(_0x4f14ee){const _0x3cf851=a3_0x56a2;if(!Array[_0x3cf851(0x107)](_0x4f14ee))return[];return _0x4f14ee[_0x3cf851(0x10a)](_0x3199ed=>typeof _0x3199ed===_0x3cf851(0x12c))[_0x3cf851(0x121)](_0x5188d3=>_0x5188d3['trim']())['filter'](Boolean);}function a3_0x56a2(_0x2998c7,_0x2a4a55){_0x2998c7=_0x2998c7-0xda;const _0x54b410=a3_0x54b4();let _0x56a29a=_0x54b410[_0x2998c7];return _0x56a29a;}function buildRemoteAppI18nFields(_0x4e43ea){const _0xf9381e=a3_0x56a2,_0x14f0d0=normalizeLanguages(_0x4e43ea[_0xf9381e(0x118)]?.[_0xf9381e(0xfb)]);return{'enableI18n':typeof _0x4e43ea[_0xf9381e(0x12b)]===_0xf9381e(0xe1)?_0x4e43ea['enableI18n']:null,'languages':_0x14f0d0,'i18nInfo':_0x4e43ea[_0xf9381e(0x118)]?{..._0x4e43ea[_0xf9381e(0x118)],'langs':_0x14f0d0[_0xf9381e(0x109)]?_0x14f0d0:null}:null};}function a3_0x54b4(){const _0x26b670=['317772lflYJY','defaultApp','validation','str','Loaded\x20','Remote\x20app\x20name\x20to\x20activate','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','cachePath','48VhFkCc','\x22\x20not\x20found.','../../commands/app/remote-source.js','name','read','454VJZWxG','trim','args','appPublishStatus','accessKey','Target\x20environment\x20(default:\x20current\x20env)','Refreshed\x20app\x20cache\x20with\x20','Filter\x20by\x20environment\x20(default:\x20current\x20env)','Default\x20app\x20candidate\x20set\x20to\x20\x22','Missing\x20app\x20name.','from','langs','type','remote','12cTAXaF','isCurrent','95282vLjaZJ','612XrHjoO','newConfigFileName','Usage:\x20','items','find','nonInteractive','isArray','appOwnerName','length','filter','production','570OkOkBy','../../context.js','fetchedAt','appCode','Set\x20the\x20fallback\x20app\x20candidate','1471084HFfwFU','app','Read\x20from\x20local\x20cache\x20only','import','bool','no-cache','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','i18nInfo','3320wwFMBg','env','No\x20cached\x20apps\x20found.','raw','source','../../commands/app/cache.js','528KmigGq','write','map','appName','entries','cache','42608uYBIIH','Use\x20`','local','init','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','globalPath','enableI18n','string','626680XSlemU','pull','.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.','global','list','\x20app\x20use\x20<name>\x20[--global]','push','projectPath','\x20app(s)\x20for\x20env=\x22','Read\x20app\x20list\x20from\x20local\x20cache\x20only','4480490utmTxH','boolean','App\x20\x22'];a3_0x54b4=function(){return _0x26b670;};return a3_0x54b4();}const initDef={'service':a3_0x43a778(0x112),'command':a3_0x43a778(0x128),'description':'Initialize\x20'+PRODUCT_CONFIG[a3_0x43a778(0x102)]+'\x20config\x20file','risk':a3_0x43a778(0x120),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x190af2){return await runInit(collectFlags(_0x190af2,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':'app','command':a3_0x43a778(0xda),'description':a3_0x43a778(0x129),'risk':a3_0x43a778(0xef),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a3_0x43a778(0x11a),'type':a3_0x43a778(0x12c),'description':a3_0x43a778(0xf7),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x43a778(0x127),'type':'boolean','description':a3_0x43a778(0xdf),'default':![]},{'name':a3_0x43a778(0x116),'type':a3_0x43a778(0xe1),'description':'Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','default':![]}],async 'execute'(_0xbe1d0a){const _0x4c6379=a3_0x43a778,_0x2bc63b=_0xbe1d0a['str'](_0x4c6379(0x11a))||_0xbe1d0a['envName']||getEnv()||_0x4c6379(0x10b),_0x56ef92=_0xbe1d0a[_0x4c6379(0x115)](_0x4c6379(0x127)),_0x1536ff=_0xbe1d0a['bool'](_0x4c6379(0x116)),{readRawConfigWithLayers:_0xa4e4d2,resolveDefaultAppSource:_0x763c3,getLocalAppAliases:_0x20e8d9}=await import(_0x4c6379(0x10d)),{getRemoteAppList:_0x4aef56}=await import(_0x4c6379(0xed)),{config:_0x19cd59,layers:_0x5bbb75}=_0xa4e4d2(),_0x5ecf17=_0x763c3(_0x5bbb75),{defaultApp:_0x3ba9e1}=_0x19cd59,_0x427594=await _0x4aef56({'env':_0x2bc63b,'accessKey':_0xbe1d0a[_0x4c6379(0xf4)],'localOnly':_0x56ef92,'noCache':_0x1536ff}),_0x516ea8=_0x427594[_0x4c6379(0x104)]['map'](_0x2fac18=>{const _0x3e3075=_0x4c6379;return{'name':_0x2fac18[_0x3e3075(0x122)],'appcode':_0x2fac18[_0x3e3075(0x10f)],'named':!![],'definedIn':_0x3e3075(0xfd),'isDefault':_0x2fac18['appName']===_0x3ba9e1,...buildAppProfileListFields(_0x2bc63b),...buildRemoteAppI18nFields(_0x2fac18),'source':_0x427594[_0x3e3075(0x11d)],'owner':_0x2fac18[_0x3e3075(0x108)]??null,'status':_0x2fac18[_0x3e3075(0xf3)]??null,'cachedAt':_0x427594[_0x3e3075(0x10e)]};}),_0x21649a=_0x20e8d9(_0x19cd59);let _0x1edd2c=0x0;for(const [_0x4f89c1,_0x46f37b]of Object[_0x4c6379(0x123)](_0x21649a)){const _0x3477e5=typeof _0x46f37b['appcode']===_0x4c6379(0x12c)?_0x46f37b['appcode'][_0x4c6379(0xf1)]():'';if(!_0x3477e5)continue;_0x1edd2c+=0x1,_0x516ea8[_0x4c6379(0xdc)]({'name':_0x4f89c1,'appcode':_0x3477e5,'named':!![],'definedIn':_0x4c6379(0x127),'isDefault':_0x4f89c1===_0x3ba9e1,...buildAppProfileListFields(_0x2bc63b),'source':'config','owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x516ea8,_0xbe1d0a['mergedCli']);if(_0x516ea8['length']===0x0)return{'ok':!![],'data':[],'message':_0x427594['source']===_0x4c6379(0x124)?_0x4c6379(0x11b):'No\x20apps\x20found\x20on\x20the\x20platform.'};const _0x46d13d=_0x516ea8[_0x4c6379(0x105)](_0x465af8=>_0x465af8[_0x4c6379(0xff)]===!![]),_0x14e6f7=_0x3ba9e1??_0x46d13d?.[_0x4c6379(0xee)]??null,_0x5f1a8b={'env':_0x2bc63b,'source':_0x427594['source'],'fetchedAt':_0x427594[_0x4c6379(0x10e)],'cachePath':_0x427594[_0x4c6379(0xea)],'globalPath':_0x5bbb75[_0x4c6379(0x12a)]??null,'projectPath':_0x5bbb75[_0x4c6379(0xdd)]??null,'defaultApp':_0x14e6f7,'defaultAppSource':_0x3ba9e1!=null?_0x5ecf17:null,'localAliasCount':_0x1edd2c};return{'ok':!![],'data':{'items':_0x516ea8,'meta':_0x5f1a8b}};}},pullDef={'service':a3_0x43a778(0x112),'command':a3_0x43a778(0x12e),'description':'Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','risk':a3_0x43a778(0x120),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a3_0x43a778(0x11a),'type':a3_0x43a778(0x12c),'description':a3_0x43a778(0xf5),'enum':[...RUNTIME_ENV_VALUES]},{'name':'local','type':a3_0x43a778(0xe1),'description':a3_0x43a778(0x113),'default':![]},{'name':a3_0x43a778(0x116),'type':a3_0x43a778(0xe1),'description':a3_0x43a778(0x117),'default':![]}],async 'execute'(_0x5684ab){const _0x2189ee=a3_0x43a778,_0x291b4f=_0x5684ab[_0x2189ee(0xe6)](_0x2189ee(0x11a))||_0x5684ab['envName']||getEnv()||_0x2189ee(0x10b),_0x273858=_0x5684ab[_0x2189ee(0x115)](_0x2189ee(0x127)),_0x3b32d8=_0x5684ab[_0x2189ee(0x115)](_0x2189ee(0x116)),{getRemoteAppList:_0x1e7cbc}=await import(_0x2189ee(0xed)),_0x3ad6c4=await _0x1e7cbc({'env':_0x291b4f,'accessKey':_0x5684ab[_0x2189ee(0xf4)],'localOnly':_0x273858,'noCache':_0x3b32d8});return{'ok':!![],'data':{'total':_0x3ad6c4[_0x2189ee(0x104)][_0x2189ee(0x109)],'env':_0x291b4f,'source':_0x3ad6c4['source'],'fetchedAt':_0x3ad6c4['fetchedAt'],'cachePath':_0x3ad6c4[_0x2189ee(0xea)]},'message':_0x3ad6c4['source']===_0x2189ee(0x124)?_0x2189ee(0xe7)+_0x3ad6c4[_0x2189ee(0x104)]['length']+'\x20cached\x20app(s)\x20for\x20env=\x22'+_0x291b4f+'\x22.':_0x2189ee(0xf6)+_0x3ad6c4[_0x2189ee(0x104)][_0x2189ee(0x109)]+_0x2189ee(0xde)+_0x291b4f+'\x22.'};}},useDef={'service':a3_0x43a778(0x112),'command':'use','description':a3_0x43a778(0x110),'risk':a3_0x43a778(0x120),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a3_0x43a778(0xee),'description':a3_0x43a778(0xe8),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x25654b){const _0x1755e0=a3_0x43a778;if(!_0x25654b[_0x1755e0(0xf2)][0x0])throw CliErrors[_0x1755e0(0xe5)](_0x1755e0(0xf9),_0x1755e0(0x103)+CLI_BIN_NAME+_0x1755e0(0xdb));},async 'execute'(_0x5c38f){const _0x5ef7d9=a3_0x43a778,_0x15b01e=_0x5c38f[_0x5ef7d9(0xf2)][0x0];if(!_0x15b01e)throw CliErrors['validation'](_0x5ef7d9(0xf9),_0x5ef7d9(0x103)+CLI_BIN_NAME+_0x5ef7d9(0xdb));const {buildConfigFromFlags:_0x216fee,resolveLocalAppAliasCode:_0x2e6c67}=await import(_0x5ef7d9(0x10d)),{readCachedAppList:_0x4b77f2}=await import(_0x5ef7d9(0x11e)),_0x5d972d=_0x5c38f[_0x5ef7d9(0xe6)](_0x5ef7d9(0x11a)),_0x2e60b0=_0x216fee(_0x5d972d?{'env':_0x5d972d}:{}),_0x2490bc=_0x4b77f2(_0x2e60b0[_0x5ef7d9(0x11a)],_0x2e60b0[_0x5ef7d9(0xf4)]),_0x5b714a=_0x2490bc?.[_0x5ef7d9(0x104)][_0x5ef7d9(0x105)](_0x2898e1=>_0x2898e1[_0x5ef7d9(0x122)]===_0x15b01e),_0x5553bf=_0x2e6c67(_0x2e60b0[_0x5ef7d9(0x11c)]??{},_0x15b01e);if(!_0x5b714a&&!_0x5553bf&&_0x2e60b0[_0x5ef7d9(0xe4)]!==_0x15b01e){const _0x5dd2b8=[..._0x2490bc?.['items'][_0x5ef7d9(0x121)](_0x527db2=>_0x527db2[_0x5ef7d9(0x122)])??[]],_0x43076e=_0x5dd2b8[_0x5ef7d9(0x109)]===0x0?_0x5ef7d9(0x126)+CLI_BIN_NAME+'\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.'+_0x15b01e+'.appcode\x20to\x20.lovrabet.json.':'Available\x20remote\x20apps:\x20'+Array[_0x5ef7d9(0xfa)](new Set(_0x5dd2b8))['join'](',\x20')+_0x5ef7d9(0x12f);throw CliErrors[_0x5ef7d9(0xe5)](_0x5ef7d9(0xe2)+_0x15b01e+_0x5ef7d9(0xec),_0x43076e);}const _0x2775be=_0x5c38f[_0x5ef7d9(0x115)](_0x5ef7d9(0x130));let _0x1bb33e;if(_0x2775be)_0x1bb33e={'global':!![]};else{const {isInProject:_0x18c469}=await import(_0x5ef7d9(0x10d)),_0x4430c4=_0x18c469();_0x1bb33e=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':'project-default','inProject':_0x4430c4}));}const _0x1c29b5=readConfig(_0x1bb33e);return _0x1c29b5[_0x5ef7d9(0xe4)]=_0x15b01e,writeConfig(_0x1c29b5,_0x1bb33e),{'ok':!![],'message':_0x5ef7d9(0xf8)+_0x15b01e+'\x22'+scopeLabel(_0x1bb33e)+'.'};}},importDef={'service':a3_0x43a778(0x112),'command':a3_0x43a778(0x114),'description':a3_0x43a778(0xe9),'risk':a3_0x43a778(0x120),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x3f753c){return await runInitImport(collectFlags(_0x3f753c,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
@@ -1 +1 @@
1
- (function(_0x3288f7,_0x595835){const _0x4a7462=a4_0x3929,_0x187b3f=_0x3288f7();while(!![]){try{const _0x5217a4=parseInt(_0x4a7462(0x108))/0x1*(parseInt(_0x4a7462(0x113))/0x2)+-parseInt(_0x4a7462(0x109))/0x3+-parseInt(_0x4a7462(0x111))/0x4*(-parseInt(_0x4a7462(0x10d))/0x5)+-parseInt(_0x4a7462(0x10c))/0x6*(-parseInt(_0x4a7462(0x105))/0x7)+parseInt(_0x4a7462(0x10f))/0x8+parseInt(_0x4a7462(0x106))/0x9+-parseInt(_0x4a7462(0x10e))/0xa;if(_0x5217a4===_0x595835)break;else _0x187b3f['push'](_0x187b3f['shift']());}catch(_0x59b5ac){_0x187b3f['push'](_0x187b3f['shift']());}}}(a4_0xf8ed,0x5c738));function a4_0xf8ed(){const _0x4f7637=['60tcoRct','1837060kAKbkA','390512QaNmmr','errorMsg','66268TNACvA','errorCode','20666yeNEri','parse','56AGbLHt','5930271FVmLUM','data','1xTMtvF','1067244obgIXY','../../../mock/app-list.json','Mock\x20API\x20error:\x20','948YxJveR'];a4_0xf8ed=function(){return _0x4f7637;};return a4_0xf8ed();}import{fileURLToPath}from'url';import{dirname,join}from'path';import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0x4a2443=a4_0x3929,_0x56d565=join(__dirname,_0x4a2443(0x10a)),_0x5bd20e=readFileSync(_0x56d565,'utf-8');return JSON[_0x4a2443(0x104)](_0x5bd20e);}function a4_0x3929(_0x2677a8,_0x59d2f6){_0x2677a8=_0x2677a8-0x104;const _0xf8ed24=a4_0xf8ed();let _0x392906=_0xf8ed24[_0x2677a8];return _0x392906;}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x2406ba=a4_0x3929,_0x7ee3ba=getMockAppList();if(!_0x7ee3ba['success'])throw new Error(_0x2406ba(0x10b)+_0x7ee3ba[_0x2406ba(0x110)]+'\x20('+_0x7ee3ba[_0x2406ba(0x112)]+')');return _0x7ee3ba[_0x2406ba(0x107)]['tableData'];}
1
+ (function(_0x4b1d68,_0x47ebf3){const _0x135989=a4_0xd959,_0x43d628=_0x4b1d68();while(!![]){try{const _0x41c575=parseInt(_0x135989(0x1b1))/0x1*(parseInt(_0x135989(0x1bd))/0x2)+parseInt(_0x135989(0x1b5))/0x3+parseInt(_0x135989(0x1b7))/0x4+parseInt(_0x135989(0x1b2))/0x5*(parseInt(_0x135989(0x1be))/0x6)+-parseInt(_0x135989(0x1bb))/0x7*(parseInt(_0x135989(0x1bc))/0x8)+-parseInt(_0x135989(0x1b8))/0x9+-parseInt(_0x135989(0x1b9))/0xa;if(_0x41c575===_0x47ebf3)break;else _0x43d628['push'](_0x43d628['shift']());}catch(_0x2f33c5){_0x43d628['push'](_0x43d628['shift']());}}}(a4_0x4aa9,0x6b9e2));import{fileURLToPath}from'url';import{dirname,join}from'path';import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0x1f6ff7=a4_0xd959,_0x209b47=join(__dirname,'../../../mock/app-list.json'),_0x494b80=readFileSync(_0x209b47,'utf-8');return JSON[_0x1f6ff7(0x1b6)](_0x494b80);}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x9185ab=a4_0xd959,_0x555226=getMockAppList();if(!_0x555226['success'])throw new Error(_0x9185ab(0x1b3)+_0x555226['errorMsg']+'\x20('+_0x555226[_0x9185ab(0x1b4)]+')');return _0x555226[_0x9185ab(0x1ba)]['tableData'];}function a4_0xd959(_0x24ffbb,_0x4d33c5){_0x24ffbb=_0x24ffbb-0x1b1;const _0x4aa9f9=a4_0x4aa9();let _0xd959b0=_0x4aa9f9[_0x24ffbb];return _0xd959b0;}function a4_0x4aa9(){const _0x4fae18=['54kgaQzA','11xcwxmE','440270AYCzru','Mock\x20API\x20error:\x20','errorCode','2511912ALXrHA','parse','1772276bYpoAs','2017206pnkaKJ','10916130BwotEL','data','36897KexdLM','504raorAA','2866lgUhwS'];a4_0x4aa9=function(){return _0x4fae18;};return a4_0x4aa9();}
@@ -1 +1 @@
1
- (function(_0x94503a,_0x55786d){const _0x52159d=a5_0x5eb1,_0x418418=_0x94503a();while(!![]){try{const _0x551346=parseInt(_0x52159d(0x83))/0x1*(-parseInt(_0x52159d(0x82))/0x2)+parseInt(_0x52159d(0x8c))/0x3*(-parseInt(_0x52159d(0x92))/0x4)+parseInt(_0x52159d(0x8b))/0x5*(parseInt(_0x52159d(0x84))/0x6)+-parseInt(_0x52159d(0x87))/0x7+-parseInt(_0x52159d(0x86))/0x8+parseInt(_0x52159d(0x91))/0x9*(parseInt(_0x52159d(0x80))/0xa)+parseInt(_0x52159d(0x8e))/0xb*(parseInt(_0x52159d(0x8f))/0xc);if(_0x551346===_0x55786d)break;else _0x418418['push'](_0x418418['shift']());}catch(_0x7c7b2a){_0x418418['push'](_0x418418['shift']());}}}(a5_0x1dff,0x9ba4e));import{getMyApps}from'../../core/api-client.js';import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';function a5_0x1dff(){const _0x2230e4=['fetchedAt','4203216NjUrxG','3360056sHjHBW','cache','toISOString','remote','251455FgHfiz','12NLwCye','items','17765bZLQfV','21588jDwcFs','mock','9IjTfXq','1022228VPgWvf','APP_LIST_SOURCE','trim','504540lzQqvg','toLowerCase','1888932kzPkcq','1uNsPrF','78NGOEKt'];a5_0x1dff=function(){return _0x2230e4;};return a5_0x1dff();}import{productEnv}from'../../constant/product.js';export function shouldUseMockRemoteApps(){const _0x125841=a5_0x5eb1,_0x18c14b=(productEnv(_0x125841(0x93))||'')[_0x125841(0x7f)]()[_0x125841(0x81)]();return _0x18c14b===_0x125841(0x90);}function a5_0x5eb1(_0x5618b6,_0x9a84bc){_0x5618b6=_0x5618b6-0x7f;const _0x1dffed=a5_0x1dff();let _0x5eb1de=_0x1dffed[_0x5618b6];return _0x5eb1de;}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x195623){const _0x34c2b0=a5_0x5eb1,{env:_0x40a417,accessKey:_0xdf98dc,localOnly:localOnly=![],noCache:noCache=![]}=_0x195623,_0xc133bf=readCachedAppList(_0x40a417,_0xdf98dc),_0x145cca=_0xdf98dc?.[_0x34c2b0(0x7f)]()?getAppCacheFilePath(_0x40a417,_0xdf98dc):null;if(localOnly)return{'items':_0xc133bf?.[_0x34c2b0(0x8d)]??[],'source':_0x34c2b0(0x88),'fetchedAt':_0xc133bf?.['fetchedAt']??null,'cachePath':_0x145cca};try{const _0x59c750=await getRemoteAppItems(),_0x4e7d00=shouldUseMockRemoteApps()?_0x34c2b0(0x90):_0x34c2b0(0x8a),_0x30c1a3=new Date()[_0x34c2b0(0x89)](),_0x257a0e=_0xdf98dc?.[_0x34c2b0(0x7f)]()?writeCachedAppList(_0x40a417,_0xdf98dc,{'env':_0x40a417,'fetchedAt':_0x30c1a3,'source':_0x4e7d00,'items':_0x59c750}):null;return{'items':_0x59c750,'source':_0x4e7d00,'fetchedAt':_0x30c1a3,'cachePath':_0x257a0e};}catch(_0x5849a6){if(!noCache&&_0xc133bf)return{'items':_0xc133bf[_0x34c2b0(0x8d)],'source':'cache','fetchedAt':_0xc133bf[_0x34c2b0(0x85)],'cachePath':_0x145cca};throw _0x5849a6;}}
1
+ function a5_0x1751(_0x4ff2f4,_0x3de00d){_0x4ff2f4=_0x4ff2f4-0x137;const _0x493353=a5_0x4933();let _0x17518d=_0x493353[_0x4ff2f4];return _0x17518d;}(function(_0x483870,_0x479fef){const _0x389767=a5_0x1751,_0x2b2685=_0x483870();while(!![]){try{const _0x4f0986=-parseInt(_0x389767(0x144))/0x1+-parseInt(_0x389767(0x139))/0x2*(parseInt(_0x389767(0x13d))/0x3)+parseInt(_0x389767(0x146))/0x4+parseInt(_0x389767(0x142))/0x5*(-parseInt(_0x389767(0x143))/0x6)+parseInt(_0x389767(0x140))/0x7+-parseInt(_0x389767(0x13a))/0x8*(-parseInt(_0x389767(0x147))/0x9)+parseInt(_0x389767(0x13b))/0xa*(-parseInt(_0x389767(0x13e))/0xb);if(_0x4f0986===_0x479fef)break;else _0x2b2685['push'](_0x2b2685['shift']());}catch(_0x2fe275){_0x2b2685['push'](_0x2b2685['shift']());}}}(a5_0x4933,0x1d396));import{getMyApps}from'../../core/api-client.js';import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';function a5_0x4933(){const _0x36dd69=['191285ZzOvBo','12GIkuVX','237332IqBtpP','cache','787776pRLBov','33255qhVLSQ','mock','toISOString','toLowerCase','remote','10iUTKmC','488XvxccK','370IuFPES','trim','74886ahdPSL','8569bmDhPH','APP_LIST_SOURCE','1153894QBsYkh','items'];a5_0x4933=function(){return _0x36dd69;};return a5_0x4933();}import{productEnv}from'../../constant/product.js';export function shouldUseMockRemoteApps(){const _0x20fe9a=a5_0x1751,_0x560112=(productEnv(_0x20fe9a(0x13f))||'')[_0x20fe9a(0x13c)]()[_0x20fe9a(0x137)]();return _0x560112==='mock';}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x4e89b1){const _0x21df50=a5_0x1751,{env:_0xeea136,accessKey:_0x3b921d,localOnly:localOnly=![],noCache:noCache=![]}=_0x4e89b1,_0x3d8757=readCachedAppList(_0xeea136,_0x3b921d),_0x22f34d=_0x3b921d?.[_0x21df50(0x13c)]()?getAppCacheFilePath(_0xeea136,_0x3b921d):null;if(localOnly)return{'items':_0x3d8757?.['items']??[],'source':_0x21df50(0x145),'fetchedAt':_0x3d8757?.['fetchedAt']??null,'cachePath':_0x22f34d};try{const _0x438f96=await getRemoteAppItems(),_0x496a4b=shouldUseMockRemoteApps()?_0x21df50(0x148):_0x21df50(0x138),_0x4903cf=new Date()[_0x21df50(0x149)](),_0x3d34ba=_0x3b921d?.['trim']()?writeCachedAppList(_0xeea136,_0x3b921d,{'env':_0xeea136,'fetchedAt':_0x4903cf,'source':_0x496a4b,'items':_0x438f96}):null;return{'items':_0x438f96,'source':_0x496a4b,'fetchedAt':_0x4903cf,'cachePath':_0x3d34ba};}catch(_0x4be353){if(!noCache&&_0x3d8757)return{'items':_0x3d8757[_0x21df50(0x141)],'source':_0x21df50(0x145),'fetchedAt':_0x3d8757['fetchedAt'],'cachePath':_0x22f34d};throw _0x4be353;}}
@@ -1 +1 @@
1
- (function(_0x39f5ae,_0x2cd2ac){const _0x25aa11=a6_0x2887,_0xc0e71b=_0x39f5ae();while(!![]){try{const _0x57ede6=parseInt(_0x25aa11(0x18e))/0x1*(-parseInt(_0x25aa11(0x182))/0x2)+parseInt(_0x25aa11(0x196))/0x3*(parseInt(_0x25aa11(0x190))/0x4)+parseInt(_0x25aa11(0x180))/0x5+-parseInt(_0x25aa11(0x186))/0x6+parseInt(_0x25aa11(0x188))/0x7*(-parseInt(_0x25aa11(0x18f))/0x8)+-parseInt(_0x25aa11(0x192))/0x9+parseInt(_0x25aa11(0x194))/0xa*(-parseInt(_0x25aa11(0x187))/0xb);if(_0x57ede6===_0x2cd2ac)break;else _0xc0e71b['push'](_0xc0e71b['shift']());}catch(_0x307f37){_0xc0e71b['push'](_0xc0e71b['shift']());}}}(a6_0x11d2,0xd03fe));import{CLI_BIN_NAME}from'../../constant/cli.js';function a6_0x2887(_0x29e779,_0x1d905a){_0x29e779=_0x29e779-0x180;const _0x11d295=a6_0x11d2();let _0x288757=_0x11d295[_0x29e779];return _0x288757;}import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x16c8b6,_0x16ef81){const _0x5c40e0=a6_0x2887;if(!_0x16ef81)return;const _0x25e3c9=!!(_0x16ef81[_0x5c40e0(0x18a)]??_0x16ef81[_0x5c40e0(0x183)]);for(const _0x14e164 of _0x16c8b6){_0x14e164[_0x5c40e0(0x189)]=![];}const _0x4e4638=_0x16ef81[_0x5c40e0(0x193)]!=null?String(_0x16ef81['appCode'])['trim']():'';if(_0x25e3c9){const _0x3dfd70=_0x16ef81[_0x5c40e0(0x18a)]??_0x16ef81['defaultApp'];if(_0x3dfd70){const _0x4cfc5f=_0x16c8b6[_0x5c40e0(0x185)](_0x246dc5=>_0x246dc5[_0x5c40e0(0x184)]===!![]&&_0x246dc5['name']===_0x3dfd70&&_0x246dc5[_0x5c40e0(0x18d)]===_0x5c40e0(0x191)),_0x566875=_0x4cfc5f??_0x16c8b6[_0x5c40e0(0x185)](_0x4b12d4=>_0x4b12d4[_0x5c40e0(0x184)]===!![]&&_0x4b12d4['name']===_0x3dfd70);_0x566875&&(_0x566875['isCurrent']=!![]);}return;}if(!_0x4e4638)return;for(const _0x3534a8 of _0x16c8b6){String(_0x3534a8[_0x5c40e0(0x18b)]??'')[_0x5c40e0(0x18c)]()===_0x4e4638&&(_0x3534a8[_0x5c40e0(0x189)]=!![]);}}function a6_0x11d2(){const _0x57092c=['489474frcppz','appCode','10YSSPRv','global','91893LadKqm','8011230LabSRE','project','353072GFXQiN','defaultApp','named','find','654102ZQmSUB','3495448dfbFmG','49dGpvZA','isCurrent','currentApp','appcode','trim','definedIn','1aCTqMA','699744YBBBWl','68yKeWls','local'];a6_0x11d2=function(){return _0x57092c;};return a6_0x11d2();}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x4d868f){const _0x2dfb5c=a6_0x2887;return formatScopeLabel(_0x4d868f[_0x2dfb5c(0x195)]?_0x2dfb5c(0x195):_0x2dfb5c(0x181));}
1
+ (function(_0x59c175,_0x59e2d9){const _0x2c403b=a6_0x3faa,_0x1b3161=_0x59c175();while(!![]){try{const _0x46d6d7=-parseInt(_0x2c403b(0x114))/0x1*(-parseInt(_0x2c403b(0x113))/0x2)+parseInt(_0x2c403b(0x115))/0x3+-parseInt(_0x2c403b(0x117))/0x4*(-parseInt(_0x2c403b(0x119))/0x5)+parseInt(_0x2c403b(0x11e))/0x6*(parseInt(_0x2c403b(0x116))/0x7)+parseInt(_0x2c403b(0x124))/0x8+parseInt(_0x2c403b(0x112))/0x9+parseInt(_0x2c403b(0x121))/0xa*(-parseInt(_0x2c403b(0x11d))/0xb);if(_0x46d6d7===_0x59e2d9)break;else _0x1b3161['push'](_0x1b3161['shift']());}catch(_0x2c19fb){_0x1b3161['push'](_0x1b3161['shift']());}}}(a6_0x24ad,0xd0ee9));function a6_0x3faa(_0x5e2186,_0x302ab4){_0x5e2186=_0x5e2186-0x10e;const _0x24ad1f=a6_0x24ad();let _0x3faac3=_0x24ad1f[_0x5e2186];return _0x3faac3;}function a6_0x24ad(){const _0x33c578=['local','find','trim','defaultApp','13289346iClfzU','26342xNoJFg','1QsPWaE','3543678vwxayD','7bCazEO','476VXtJFt','project','21555XpCuMp','currentApp','appcode','isCurrent','11KCxdbs','4362iwQHwS','name','named','36200900vuEVxi','global','appCode','10329184OIoZVa'];a6_0x24ad=function(){return _0x33c578;};return a6_0x24ad();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x77c5b5,_0x556777){const _0x13cfeb=a6_0x3faa;if(!_0x556777)return;const _0x5e719e=!!(_0x556777[_0x13cfeb(0x11a)]??_0x556777[_0x13cfeb(0x111)]);for(const _0x4afaeb of _0x77c5b5){_0x4afaeb[_0x13cfeb(0x11c)]=![];}const _0x287764=_0x556777[_0x13cfeb(0x123)]!=null?String(_0x556777[_0x13cfeb(0x123)])[_0x13cfeb(0x110)]():'';if(_0x5e719e){const _0x4eb5d4=_0x556777[_0x13cfeb(0x11a)]??_0x556777[_0x13cfeb(0x111)];if(_0x4eb5d4){const _0x158cdc=_0x77c5b5[_0x13cfeb(0x10f)](_0x4d032b=>_0x4d032b['named']===!![]&&_0x4d032b[_0x13cfeb(0x11f)]===_0x4eb5d4&&_0x4d032b['definedIn']===_0x13cfeb(0x10e)),_0x346610=_0x158cdc??_0x77c5b5[_0x13cfeb(0x10f)](_0x2b8036=>_0x2b8036[_0x13cfeb(0x120)]===!![]&&_0x2b8036['name']===_0x4eb5d4);_0x346610&&(_0x346610['isCurrent']=!![]);}return;}if(!_0x287764)return;for(const _0xb0bb70 of _0x77c5b5){String(_0xb0bb70[_0x13cfeb(0x11b)]??'')['trim']()===_0x287764&&(_0xb0bb70['isCurrent']=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x22304f){const _0x5e7488=a6_0x3faa;return formatScopeLabel(_0x22304f[_0x5e7488(0x122)]?_0x5e7488(0x122):_0x5e7488(0x118));}
@@ -1 +1 @@
1
- const a7_0x17b876=a7_0x8da4;function a7_0x5220(){const _0x5a7466=['compiledContent','join','update','exec','artifactType','file','createTime','Artifact\x20ID','some','File\x20not\x20found:\x20','12AvbgEM','favorite','3GaIHhe','includes','test','utf8','868713UJhJfR','react_module','bool','artifact','startsWith','13915dJxdaN','react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.','Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file','Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped','content','Optional\x20favorite-state\x20filter','name','map','updateTime','list','--metadata\x20must\x20be\x20a\x20JSON\x20object.','@ant-design/icons','validation','metadata','1725400nnQKTN','description','str','/client/artifact/create','write','Optional\x20source\x20filter,\x20for\x20example\x20AGENT','num','2152600KEtwNA','AGENT','Show\x20one\x20Artifact\x20by\x20id','POST','read','string','File\x20is\x20not\x20a\x20regular\x20file:\x20','Artifact\x20source\x20file\x20is\x20blank.','List\x20current-app\x20react_module\x20Artifacts','lodash','isFile','parse','verbose','25254504FMTOYe','create','filter','flag','Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','Created\x20Artifact\x20','9RBISvZ','lastIndex','460924CxHMQd','788WFfIfU','source','split','isArray','Artifact\x20display\x20name','appCode','detail','deleted','body','Preview:\x20create\x20react_module\x20Artifact','trim','/client/artifact/','build','Updated\x20Artifact\x20','Preview:\x20update\x20react_module\x20Artifact\x20','add','.\x20Unsupported:\x20','3878854ljlygc','react_module\x20imports\x20are\x20limited\x20to:\x20','Invalid\x20JSON\x20for\x20--metadata:\x20'];a7_0x5220=function(){return _0x5a7466;};return a7_0x5220();}(function(_0x4c4cf7,_0x1e9167){const _0x2ce294=a7_0x8da4,_0x286472=_0x4c4cf7();while(!![]){try{const _0x4ff48b=-parseInt(_0x2ce294(0xca))/0x1+-parseInt(_0x2ce294(0xa5))/0x2*(parseInt(_0x2ce294(0xc6))/0x3)+-parseInt(_0x2ce294(0xa6))/0x4*(-parseInt(_0x2ce294(0xcf))/0x5)+parseInt(_0x2ce294(0xc4))/0x6*(-parseInt(_0x2ce294(0xb7))/0x7)+parseInt(_0x2ce294(0x90))/0x8+parseInt(_0x2ce294(0xa3))/0x9*(-parseInt(_0x2ce294(0x89))/0xa)+parseInt(_0x2ce294(0x9d))/0xb;if(_0x4ff48b===_0x1e9167)break;else _0x286472['push'](_0x286472['shift']());}catch(_0x368db8){_0x286472['push'](_0x286472['shift']());}}}(a7_0x5220,0xb302f));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_0x17b876(0xcb),ARTIFACT_SOURCE_AGENT=a7_0x17b876(0x91),ALLOWED_REACT_MODULE_IMPORTS=['react','react-dom',a7_0x17b876(0x99),'dayjs','antd',a7_0x17b876(0x86)];export const ALLOWED_REACT_MODULE_IMPORTS_TEXT=ALLOWED_REACT_MODULE_IMPORTS[a7_0x17b876(0xbb)](',\x20');const IMPORT_SOURCE_PATTERNS=[/\bimport\s+(?:type\s+)?(?:[^'";]*?\s+from\s+)?["']([^"']+)["']/g,/\bexport\s+(?:type\s+)?[^'";]*?\s+from\s+["']([^"']+)["']/g,/\bimport\s*\(\s*["']([^"']+)["']\s*\)/g,/\brequire\s*\(\s*["']([^"']+)["']\s*\)/g],PAGE_LEVEL_PATTERNS=[/<!doctype\s+html/i,/<\s*html\b/i,/\bcreateRoot\s*\(/,/\bReactDOM\s*\.\s*render\s*\(/,/\bReactDOM\s*\.\s*createRoot\s*\(/],FILE_FLAG={'name':'file','type':a7_0x17b876(0x95),'required':!![],'description':a7_0x17b876(0x7d)},ARTIFACT_NAME_FLAG={'name':a7_0x17b876(0x81),'type':'string','description':a7_0x17b876(0xaa)},METADATA_FLAG={'name':a7_0x17b876(0x88),'type':a7_0x17b876(0x95),'description':a7_0x17b876(0x7e)};function isPlainObject(_0x2e7c1c){const _0x3e866e=a7_0x17b876;return typeof _0x2e7c1c==='object'&&_0x2e7c1c!==null&&!Array[_0x3e866e(0xa9)](_0x2e7c1c);}function readSourceFile(_0x2af4fd){const _0x1d3e30=a7_0x17b876;if(!_0x2af4fd)throw CliErrors[_0x1d3e30(0x87)]('File\x20path\x20is\x20required.');if(!existsSync(_0x2af4fd))throw CliErrors['validation'](_0x1d3e30(0xc3)+_0x2af4fd);if(!statSync(_0x2af4fd)[_0x1d3e30(0x9a)]())throw CliErrors[_0x1d3e30(0x87)](_0x1d3e30(0x96)+_0x2af4fd);const _0x566afe=readFileSync(_0x2af4fd,_0x1d3e30(0xc9));return validateReactModuleSource(_0x566afe),_0x566afe;}function parseMetadata(_0x1144ae){const _0x81264e=a7_0x17b876;if(!_0x1144ae)return undefined;let _0x1cea2a;try{_0x1cea2a=JSON[_0x81264e(0x9b)](_0x1144ae);}catch{throw CliErrors[_0x81264e(0x87)](_0x81264e(0xb9)+_0x1144ae);}if(!isPlainObject(_0x1cea2a))throw CliErrors['validation'](_0x81264e(0x85));const _0x2ec3b5={..._0x1cea2a};return delete _0x2ec3b5['compiledContent'],_0x2ec3b5;}function getPackageName(_0x427e2f){const _0x4602b2=a7_0x17b876;if(_0x427e2f[_0x4602b2(0xce)]('@')){const [_0x75aed4,_0x43c44c]=_0x427e2f['split']('/');return _0x75aed4&&_0x43c44c?_0x75aed4+'/'+_0x43c44c:_0x427e2f;}return _0x427e2f[_0x4602b2(0xa8)]('/')[0x0]||_0x427e2f;}function validateAllowedImports(_0x4ae936){const _0x2588b4=a7_0x17b876,_0x1db8e5=new Set();for(const _0x7b50e2 of IMPORT_SOURCE_PATTERNS){_0x7b50e2[_0x2588b4(0xa4)]=0x0;let _0x3fc8b3;while((_0x3fc8b3=_0x7b50e2[_0x2588b4(0xbd)](_0x4ae936))!==null){const _0x1a9617=_0x3fc8b3[0x1]?.[_0x2588b4(0xb0)]();_0x1a9617&&_0x1db8e5[_0x2588b4(0xb5)](_0x1a9617);}}const _0x570bae=[..._0x1db8e5][_0x2588b4(0x82)](getPackageName)[_0x2588b4(0x9f)](_0x679993=>!ALLOWED_REACT_MODULE_IMPORTS[_0x2588b4(0xc7)](_0x679993));if(_0x570bae['length']>0x0)throw CliErrors[_0x2588b4(0x87)](_0x2588b4(0xb8)+ALLOWED_REACT_MODULE_IMPORTS_TEXT+_0x2588b4(0xb6)+[...new Set(_0x570bae)]['join'](',\x20'));}export function validateReactModuleSource(_0x56576a){const _0x34b320=a7_0x17b876;if(!_0x56576a[_0x34b320(0xb0)]())throw CliErrors[_0x34b320(0x87)](_0x34b320(0x97));if(PAGE_LEVEL_PATTERNS[_0x34b320(0xc2)](_0x2b7bb2=>_0x2b7bb2[_0x34b320(0xc8)](_0x56576a)))throw CliErrors[_0x34b320(0x87)](_0x34b320(0xd0));validateAllowedImports(_0x56576a);}function buildArtifactInput(_0x4925f3){const _0x1dd5ba=a7_0x17b876,_0x1f77b8=readSourceFile(_0x4925f3[_0x1dd5ba(0x8b)](_0x1dd5ba(0xbf))),_0x214ec3=_0x4925f3[_0x1dd5ba(0x8b)](_0x1dd5ba(0x81))['trim'](),_0x75d7da=parseMetadata(_0x4925f3[_0x1dd5ba(0x8b)](_0x1dd5ba(0x88)));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x214ec3?{'name':_0x214ec3}:{},'content':_0x1f77b8,..._0x75d7da?{'metadata':_0x75d7da}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0x1717e5){const _0x116f7d=a7_0x17b876;return{'id':_0x1717e5['id'],'name':_0x1717e5[_0x116f7d(0x81)],'artifactType':_0x1717e5[_0x116f7d(0xbe)],'source':_0x1717e5['source'],'favorite':_0x1717e5['favorite'],'deleted':_0x1717e5[_0x116f7d(0xad)],'createTime':_0x1717e5[_0x116f7d(0xc0)],'updateTime':_0x1717e5[_0x116f7d(0x83)]};}function detailArtifact(_0x5ee499){const _0x320984=a7_0x17b876;return{'id':_0x5ee499['id'],'appCode':_0x5ee499[_0x320984(0xab)],'name':_0x5ee499[_0x320984(0x81)],'artifactType':_0x5ee499['artifactType'],'source':_0x5ee499[_0x320984(0xa7)],'favorite':_0x5ee499[_0x320984(0xc5)],'deleted':_0x5ee499['deleted'],'content':_0x5ee499[_0x320984(0x7f)]??'','compiledContent':_0x5ee499[_0x320984(0xba)],'metadata':_0x5ee499[_0x320984(0x88)]??{},'createTime':_0x5ee499['createTime'],'updateTime':_0x5ee499[_0x320984(0x83)]};}function readFavoriteFlag(_0x163b95){const _0x5a6992=a7_0x17b876,_0x2a46f2=_0x163b95[_0x5a6992(0xa0)](_0x5a6992(0xc5));return _0x2a46f2===undefined||_0x2a46f2===null||_0x2a46f2===''?undefined:_0x163b95[_0x5a6992(0xcc)]('favorite');}function a7_0x8da4(_0x46182f,_0x1913a4){_0x46182f=_0x46182f-0x7d;const _0x522052=a7_0x5220();let _0x8da416=_0x522052[_0x46182f];return _0x8da416;}const artifactList={'service':a7_0x17b876(0xcd),'command':a7_0x17b876(0x84),'description':a7_0x17b876(0x98),'risk':a7_0x17b876(0x94),'flags':[{'name':a7_0x17b876(0xa7),'type':a7_0x17b876(0x95),'description':a7_0x17b876(0x8e)},{'name':'favorite','type':'boolean','description':a7_0x17b876(0x80)},VERBOSE_FLAG],async 'execute'(_0x4ad915){const _0x2ed87a=a7_0x17b876,_0x596087=await listRuntimeArtifacts(_0x4ad915[_0x2ed87a(0xab)],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x4ad915[_0x2ed87a(0x8b)](_0x2ed87a(0xa7))?{'source':_0x4ad915[_0x2ed87a(0x8b)](_0x2ed87a(0xa7))}:{},...readFavoriteFlag(_0x4ad915)!==undefined?{'favorite':readFavoriteFlag(_0x4ad915)}:{}});return{'ok':!![],'data':{'total':_0x596087['length'],'items':_0x4ad915['bool'](_0x2ed87a(0x9c))?_0x596087:_0x596087[_0x2ed87a(0x82)](summarizeArtifact)}};}},artifactDetail={'service':a7_0x17b876(0xcd),'command':a7_0x17b876(0xac),'description':a7_0x17b876(0x92),'risk':a7_0x17b876(0x94),'flags':[{...ID_FLAG,'description':a7_0x17b876(0xc1)}],async 'execute'(_0x36454f){const _0x43a484=a7_0x17b876,_0x5da06f=await getRuntimeArtifact(_0x36454f['num']('id'),_0x36454f[_0x43a484(0xab)]);return{'ok':!![],'data':detailArtifact(_0x5da06f)};}},artifactCreate={'service':'artifact','command':a7_0x17b876(0x9e),'description':'Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','risk':a7_0x17b876(0x8d),'flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x4cb23a){const _0x3e4d8a=a7_0x17b876,_0x59056b=buildArtifactInput(_0x4cb23a),_0x59066c=await createRuntimeArtifact(_0x4cb23a['appCode'],_0x59056b);return{'ok':!![],'data':detailArtifact(_0x59066c),'message':_0x3e4d8a(0xa2)+_0x59066c['id']+(_0x59066c[_0x3e4d8a(0x81)]?'\x20('+_0x59066c[_0x3e4d8a(0x81)]+')':'')};},async 'dryRun'(_0x2a7b50){const _0x3e41aa=a7_0x17b876,_0x4e20dc=buildArtifactInput(_0x2a7b50);return dryRun(_0x3e41aa(0x93),_0x3e41aa(0x8c))[_0x3e41aa(0xae)]({'appCode':_0x2a7b50[_0x3e41aa(0xab)],..._0x4e20dc})['description'](_0x3e41aa(0xaf))[_0x3e41aa(0xb2)]();}},artifactUpdate={'service':a7_0x17b876(0xcd),'command':a7_0x17b876(0xbc),'description':a7_0x17b876(0xa1),'risk':a7_0x17b876(0x8d),'flags':[{...ID_FLAG,'description':'Artifact\x20ID'},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x47cd68){const _0x557c43=a7_0x17b876,_0x28cffe=_0x47cd68[_0x557c43(0x8f)]('id'),_0x39557f=buildArtifactInput(_0x47cd68),_0x12d16c=await updateRuntimeArtifact(_0x28cffe,_0x47cd68['appCode'],_0x39557f);return{'ok':!![],'data':detailArtifact(_0x12d16c),'message':_0x557c43(0xb3)+_0x12d16c['id']+(_0x12d16c['name']?'\x20('+_0x12d16c[_0x557c43(0x81)]+')':'')};},async 'dryRun'(_0x2be995){const _0x2e0f7a=a7_0x17b876,_0x2f4933=_0x2be995['num']('id'),_0x5a0fad=buildArtifactInput(_0x2be995);return dryRun(_0x2e0f7a(0x93),_0x2e0f7a(0xb1)+_0x2f4933+'/update')[_0x2e0f7a(0xae)]({'appCode':_0x2be995['appCode'],..._0x5a0fad})[_0x2e0f7a(0x8a)](_0x2e0f7a(0xb4)+_0x2f4933)['build']();}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
1
+ const a7_0x5c928=a7_0x5204;function a7_0x5204(_0x53fec2,_0x3a50c3){_0x53fec2=_0x53fec2-0x68;const _0x134b45=a7_0x134b();let _0x52045e=_0x134b45[_0x53fec2];return _0x52045e;}(function(_0x555bb7,_0x33d715){const _0x2210de=a7_0x5204,_0x319b78=_0x555bb7();while(!![]){try{const _0x1c485e=-parseInt(_0x2210de(0xa5))/0x1+-parseInt(_0x2210de(0x73))/0x2*(-parseInt(_0x2210de(0xb1))/0x3)+-parseInt(_0x2210de(0x7a))/0x4+-parseInt(_0x2210de(0x6c))/0x5*(-parseInt(_0x2210de(0x8f))/0x6)+parseInt(_0x2210de(0x89))/0x7+-parseInt(_0x2210de(0xac))/0x8*(-parseInt(_0x2210de(0x98))/0x9)+parseInt(_0x2210de(0x7e))/0xa*(-parseInt(_0x2210de(0x69))/0xb);if(_0x1c485e===_0x33d715)break;else _0x319b78['push'](_0x319b78['shift']());}catch(_0x41ac52){_0x319b78['push'](_0x319b78['shift']());}}}(a7_0x134b,0x248de));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='react_module',ARTIFACT_SOURCE_AGENT='AGENT',ALLOWED_REACT_MODULE_IMPORTS=[a7_0x5c928(0x79),'react-dom','lodash','dayjs',a7_0x5c928(0x8d),'@ant-design/icons'];export const ALLOWED_REACT_MODULE_IMPORTS_TEXT=ALLOWED_REACT_MODULE_IMPORTS[a7_0x5c928(0xa6)](',\x20');const IMPORT_SOURCE_PATTERNS=[/\bimport\s+(?:type\s+)?(?:[^'";]*?\s+from\s+)?["']([^"']+)["']/g,/\bexport\s+(?:type\s+)?[^'";]*?\s+from\s+["']([^"']+)["']/g,/\bimport\s*\(\s*["']([^"']+)["']\s*\)/g,/\brequire\s*\(\s*["']([^"']+)["']\s*\)/g],PAGE_LEVEL_PATTERNS=[/<!doctype\s+html/i,/<\s*html\b/i,/\bcreateRoot\s*\(/,/\bReactDOM\s*\.\s*render\s*\(/,/\bReactDOM\s*\.\s*createRoot\s*\(/],FILE_FLAG={'name':'file','type':a7_0x5c928(0x72),'required':!![],'description':'Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file'},ARTIFACT_NAME_FLAG={'name':a7_0x5c928(0x9d),'type':a7_0x5c928(0x72),'description':'Artifact\x20display\x20name'},METADATA_FLAG={'name':a7_0x5c928(0x9f),'type':a7_0x5c928(0x72),'description':a7_0x5c928(0x92)};function isPlainObject(_0x23fe24){return typeof _0x23fe24==='object'&&_0x23fe24!==null&&!Array['isArray'](_0x23fe24);}function a7_0x134b(){const _0x50ab95=['1348WOMhvB','test','trim','validation','Optional\x20source\x20filter,\x20for\x20example\x20AGENT','exec','react','447888ZwYYQF','Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','split','deleted','60XZvNTi','artifactType','build','write','filter','update','File\x20is\x20not\x20a\x20regular\x20file:\x20','react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.','Artifact\x20ID','map','boolean','13153zikitX','/client/artifact/','parse','includes','antd','File\x20not\x20found:\x20','752778RxgCTa','lastIndex','flag','Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped','createTime','/client/artifact/create','verbose','Updated\x20Artifact\x20','content','76707OzwRub','Created\x20Artifact\x20','List\x20current-app\x20react_module\x20Artifacts','bool','--metadata\x20must\x20be\x20a\x20JSON\x20object.','name','appCode','metadata','source','compiledContent','Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','str','isFile','130847IfFAWf','join','Invalid\x20JSON\x20for\x20--metadata:\x20','file','File\x20path\x20is\x20required.','read','artifact','264BCAvRb','list','favorite','detail','utf8','846WMfbhW','startsWith','updateTime','377894JAduYZ','Preview:\x20update\x20react_module\x20Artifact\x20','add','5RwAUrv','description','POST','num','body','length','string'];a7_0x134b=function(){return _0x50ab95;};return a7_0x134b();}function readSourceFile(_0x3d86e8){const _0x1ca2cf=a7_0x5c928;if(!_0x3d86e8)throw CliErrors['validation'](_0x1ca2cf(0xa9));if(!existsSync(_0x3d86e8))throw CliErrors[_0x1ca2cf(0x76)](_0x1ca2cf(0x8e)+_0x3d86e8);if(!statSync(_0x3d86e8)[_0x1ca2cf(0xa4)]())throw CliErrors['validation'](_0x1ca2cf(0x84)+_0x3d86e8);const _0x23ae53=readFileSync(_0x3d86e8,_0x1ca2cf(0xb0));return validateReactModuleSource(_0x23ae53),_0x23ae53;}function parseMetadata(_0x217df){const _0x48cf66=a7_0x5c928;if(!_0x217df)return undefined;let _0x5d12ff;try{_0x5d12ff=JSON[_0x48cf66(0x8b)](_0x217df);}catch{throw CliErrors[_0x48cf66(0x76)](_0x48cf66(0xa7)+_0x217df);}if(!isPlainObject(_0x5d12ff))throw CliErrors[_0x48cf66(0x76)](_0x48cf66(0x9c));const _0x2deaf5={..._0x5d12ff};return delete _0x2deaf5[_0x48cf66(0xa1)],_0x2deaf5;}function getPackageName(_0x4cf76d){const _0x5dd01f=a7_0x5c928;if(_0x4cf76d[_0x5dd01f(0xb2)]('@')){const [_0x293e04,_0x2b8392]=_0x4cf76d[_0x5dd01f(0x7c)]('/');return _0x293e04&&_0x2b8392?_0x293e04+'/'+_0x2b8392:_0x4cf76d;}return _0x4cf76d[_0x5dd01f(0x7c)]('/')[0x0]||_0x4cf76d;}function validateAllowedImports(_0x406fef){const _0x23f1dd=a7_0x5c928,_0x8cb066=new Set();for(const _0x4a6e08 of IMPORT_SOURCE_PATTERNS){_0x4a6e08[_0x23f1dd(0x90)]=0x0;let _0x43a88c;while((_0x43a88c=_0x4a6e08[_0x23f1dd(0x78)](_0x406fef))!==null){const _0x3a3d77=_0x43a88c[0x1]?.[_0x23f1dd(0x75)]();_0x3a3d77&&_0x8cb066[_0x23f1dd(0x6b)](_0x3a3d77);}}const _0x4e6d4f=[..._0x8cb066]['map'](getPackageName)[_0x23f1dd(0x82)](_0x1167fe=>!ALLOWED_REACT_MODULE_IMPORTS[_0x23f1dd(0x8c)](_0x1167fe));if(_0x4e6d4f[_0x23f1dd(0x71)]>0x0)throw CliErrors[_0x23f1dd(0x76)]('react_module\x20imports\x20are\x20limited\x20to:\x20'+ALLOWED_REACT_MODULE_IMPORTS_TEXT+'.\x20Unsupported:\x20'+[...new Set(_0x4e6d4f)][_0x23f1dd(0xa6)](',\x20'));}export function validateReactModuleSource(_0x330f82){const _0x260c9a=a7_0x5c928;if(!_0x330f82[_0x260c9a(0x75)]())throw CliErrors['validation']('Artifact\x20source\x20file\x20is\x20blank.');if(PAGE_LEVEL_PATTERNS['some'](_0x44638d=>_0x44638d[_0x260c9a(0x74)](_0x330f82)))throw CliErrors[_0x260c9a(0x76)](_0x260c9a(0x85));validateAllowedImports(_0x330f82);}function buildArtifactInput(_0x590f31){const _0x57b492=a7_0x5c928,_0x546348=readSourceFile(_0x590f31['str'](_0x57b492(0xa8))),_0x14cc2f=_0x590f31[_0x57b492(0xa3)](_0x57b492(0x9d))[_0x57b492(0x75)](),_0x4d44be=parseMetadata(_0x590f31['str']('metadata'));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x14cc2f?{'name':_0x14cc2f}:{},'content':_0x546348,..._0x4d44be?{'metadata':_0x4d44be}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0x3d0677){const _0x5be48d=a7_0x5c928;return{'id':_0x3d0677['id'],'name':_0x3d0677[_0x5be48d(0x9d)],'artifactType':_0x3d0677['artifactType'],'source':_0x3d0677['source'],'favorite':_0x3d0677[_0x5be48d(0xae)],'deleted':_0x3d0677[_0x5be48d(0x7d)],'createTime':_0x3d0677['createTime'],'updateTime':_0x3d0677[_0x5be48d(0x68)]};}function detailArtifact(_0x1d099a){const _0x2c8bf6=a7_0x5c928;return{'id':_0x1d099a['id'],'appCode':_0x1d099a['appCode'],'name':_0x1d099a[_0x2c8bf6(0x9d)],'artifactType':_0x1d099a[_0x2c8bf6(0x7f)],'source':_0x1d099a[_0x2c8bf6(0xa0)],'favorite':_0x1d099a[_0x2c8bf6(0xae)],'deleted':_0x1d099a[_0x2c8bf6(0x7d)],'content':_0x1d099a[_0x2c8bf6(0x97)]??'','compiledContent':_0x1d099a[_0x2c8bf6(0xa1)],'metadata':_0x1d099a[_0x2c8bf6(0x9f)]??{},'createTime':_0x1d099a[_0x2c8bf6(0x93)],'updateTime':_0x1d099a[_0x2c8bf6(0x68)]};}function readFavoriteFlag(_0x349521){const _0x3a479a=a7_0x5c928,_0x113cb8=_0x349521[_0x3a479a(0x91)](_0x3a479a(0xae));return _0x113cb8===undefined||_0x113cb8===null||_0x113cb8===''?undefined:_0x349521[_0x3a479a(0x9b)]('favorite');}const artifactList={'service':a7_0x5c928(0xab),'command':a7_0x5c928(0xad),'description':a7_0x5c928(0x9a),'risk':a7_0x5c928(0xaa),'flags':[{'name':'source','type':a7_0x5c928(0x72),'description':a7_0x5c928(0x77)},{'name':'favorite','type':a7_0x5c928(0x88),'description':'Optional\x20favorite-state\x20filter'},VERBOSE_FLAG],async 'execute'(_0x291ada){const _0xc6be15=a7_0x5c928,_0x507d38=await listRuntimeArtifacts(_0x291ada[_0xc6be15(0x9e)],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x291ada[_0xc6be15(0xa3)](_0xc6be15(0xa0))?{'source':_0x291ada['str'](_0xc6be15(0xa0))}:{},...readFavoriteFlag(_0x291ada)!==undefined?{'favorite':readFavoriteFlag(_0x291ada)}:{}});return{'ok':!![],'data':{'total':_0x507d38[_0xc6be15(0x71)],'items':_0x291ada[_0xc6be15(0x9b)](_0xc6be15(0x95))?_0x507d38:_0x507d38[_0xc6be15(0x87)](summarizeArtifact)}};}},artifactDetail={'service':a7_0x5c928(0xab),'command':a7_0x5c928(0xaf),'description':'Show\x20one\x20Artifact\x20by\x20id','risk':a7_0x5c928(0xaa),'flags':[{...ID_FLAG,'description':a7_0x5c928(0x86)}],async 'execute'(_0x4388e3){const _0x52c2eb=a7_0x5c928,_0x34b9cf=await getRuntimeArtifact(_0x4388e3[_0x52c2eb(0x6f)]('id'),_0x4388e3[_0x52c2eb(0x9e)]);return{'ok':!![],'data':detailArtifact(_0x34b9cf)};}},artifactCreate={'service':a7_0x5c928(0xab),'command':'create','description':a7_0x5c928(0x7b),'risk':a7_0x5c928(0x81),'flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x39d6e1){const _0x247fb6=a7_0x5c928,_0x48e1d1=buildArtifactInput(_0x39d6e1),_0x26cecd=await createRuntimeArtifact(_0x39d6e1[_0x247fb6(0x9e)],_0x48e1d1);return{'ok':!![],'data':detailArtifact(_0x26cecd),'message':_0x247fb6(0x99)+_0x26cecd['id']+(_0x26cecd[_0x247fb6(0x9d)]?'\x20('+_0x26cecd[_0x247fb6(0x9d)]+')':'')};},async 'dryRun'(_0x9abf5c){const _0x344719=a7_0x5c928,_0x58cef2=buildArtifactInput(_0x9abf5c);return dryRun(_0x344719(0x6e),_0x344719(0x94))['body']({'appCode':_0x9abf5c[_0x344719(0x9e)],..._0x58cef2})[_0x344719(0x6d)]('Preview:\x20create\x20react_module\x20Artifact')[_0x344719(0x80)]();}},artifactUpdate={'service':a7_0x5c928(0xab),'command':a7_0x5c928(0x83),'description':a7_0x5c928(0xa2),'risk':a7_0x5c928(0x81),'flags':[{...ID_FLAG,'description':a7_0x5c928(0x86)},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x571d3e){const _0x4487b5=a7_0x5c928,_0x16f962=_0x571d3e['num']('id'),_0x12ab49=buildArtifactInput(_0x571d3e),_0x4ccb8d=await updateRuntimeArtifact(_0x16f962,_0x571d3e['appCode'],_0x12ab49);return{'ok':!![],'data':detailArtifact(_0x4ccb8d),'message':_0x4487b5(0x96)+_0x4ccb8d['id']+(_0x4ccb8d[_0x4487b5(0x9d)]?'\x20('+_0x4ccb8d[_0x4487b5(0x9d)]+')':'')};},async 'dryRun'(_0x455dc0){const _0x26447a=a7_0x5c928,_0x509bd9=_0x455dc0[_0x26447a(0x6f)]('id'),_0x30d51c=buildArtifactInput(_0x455dc0);return dryRun(_0x26447a(0x6e),_0x26447a(0x8a)+_0x509bd9+'/update')[_0x26447a(0x70)]({'appCode':_0x455dc0[_0x26447a(0x9e)],..._0x30d51c})[_0x26447a(0x6d)](_0x26447a(0x6a)+_0x509bd9)[_0x26447a(0x80)]();}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
@@ -1 +1 @@
1
- const a8_0x5a53b1=a8_0x26f5;(function(_0x4caca4,_0x5273d9){const _0x213b93=a8_0x26f5,_0x1de670=_0x4caca4();while(!![]){try{const _0x577088=-parseInt(_0x213b93(0xe5))/0x1+parseInt(_0x213b93(0xc8))/0x2*(-parseInt(_0x213b93(0xc3))/0x3)+-parseInt(_0x213b93(0xf0))/0x4*(parseInt(_0x213b93(0xea))/0x5)+parseInt(_0x213b93(0xf1))/0x6*(-parseInt(_0x213b93(0xa3))/0x7)+-parseInt(_0x213b93(0xb2))/0x8*(-parseInt(_0x213b93(0xd5))/0x9)+-parseInt(_0x213b93(0xde))/0xa+parseInt(_0x213b93(0xa5))/0xb;if(_0x577088===_0x5273d9)break;else _0x1de670['push'](_0x1de670['shift']());}catch(_0x338be8){_0x1de670['push'](_0x1de670['shift']());}}}(a8_0x3cc6,0x874e7));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a8_0x3cc6(){const _0x49e048=['`auth\x20login`\x20does\x20not\x20support\x20--yes.','push','=ak_xxx','\x20Current\x20env:\x20','write','Write\x20to\x20global\x20config\x20(default)','daily','Option\x20A:\x20','Tip:\x20you\x20can\x20also\x20run:','read','accessKey','AccessKey\x20saved\x20to\x20','21dAVURn','Then\x20verify\x20with:\x20','Use\x20`','isTTY','Shorthand\x20for\x20--access-key','60442lMQNxq','slice','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','No\x20AccessKey\x20found\x20in\x20','AccessKey\x20cleared\x20from\x20','\x20auth\x20status','AccessKey:\x20','development','stdout','join','trim','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','9CAUTeV','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','\x20Verify:\x20','Option\x20B:\x20apps\x20config\x20(','init','str','auth','4386910mLkgAk','test','\x20env\x20var','global','Invalid\x20accessKey\x20format:\x20\x22','Clear\x20accessKey\x20from\x20config','project','876383CpzdDv','\x20config','cancelled','\x20auth\x20login\x20--access-key\x20<ak_xxx>','Auth\x20config\x20reinitialized\x20in\x20','505265mDVtiv','boolean','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','\x20config.','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','access-key','24HJmRVp','12vBOhVg','\x20\x20export\x20','\x20(via\x20','status','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','Clear\x20from\x20global\x20config\x20(default)','string','production','Show\x20current\x20authentication\x20status','nonInteractive','userCenterDisplayName','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','Read\x20from\x20global\x20config\x20(default)','72457KpqHnC','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','20007383LmJYjw','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','login','validation','bool','length','repeat','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','AccessKey\x20(ak_xxx...)','\x20config.\x20Nothing\x20to\x20clear.','\x20scope.','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','Option\x20C:\x20environment\x20variable','7112024KrEsNg','yes','ACCESS_KEY','info','env'];a8_0x3cc6=function(){return _0x49e048;};return a8_0x3cc6();}import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';function a8_0x26f5(_0x5b2717,_0x17b1cd){_0x5b2717=_0x5b2717-0xa1;const _0x3cc61f=a8_0x3cc6();let _0x26f5aa=_0x3cc61f[_0x5b2717];return _0x26f5aa;}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 _0x32e24f=a8_0x26f5;writeCliSideChannelLine('AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0x32e24f(0xfb)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x32e24f(0xbf)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x32e24f(0xe8));}function buildAccessKeySetupGuide(){const _0x4261da=a8_0x26f5;return[_0x4261da(0xd6)+PRODUCT_CONFIG['userCenterDisplayName']+':',USER_ACCESS_KEY_CREATE_URL,_0x4261da(0xfc)+CLI_BIN_NAME+_0x4261da(0xcb)][_0x4261da(0xd2)]('\x0a');}function canPromptForAccessKey(_0x482a2d){const _0x408e21=a8_0x26f5;return!_0x482a2d[_0x408e21(0xfa)]&&process['stdin'][_0x408e21(0xc6)]!==![]&&process[_0x408e21(0xd1)][_0x408e21(0xc6)]!==![];}function resolveAuthScopeFlags(_0x6a1c60){const _0x4c4716=a8_0x26f5;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x6a1c60[_0x4c4716(0xa9)](_0x4c4716(0xe1)),'explicitProject':_0x6a1c60[_0x4c4716(0xa9)](_0x4c4716(0xe4)),'policy':'global-default'}));}async function resolveAuthWriteInput(_0x500025){const _0x501268=a8_0x26f5;let _0x36eb9f=(_0x500025[_0x501268(0xdc)]('access-key')||_0x500025[_0x501268(0xdc)]('ak')||'')[_0x501268(0xd3)]();const _0x59111c=(_0x500025[_0x501268(0xdc)]('env')||'')[_0x501268(0xd3)]();if(!_0x36eb9f&&canPromptForAccessKey(_0x500025))try{showAccessKeyCreateHint(),_0x36eb9f=await promptAccessKey('');}catch(_0x249d8f){if(isAbortPrompt(_0x249d8f))throw CliErrors[_0x501268(0xe7)]();throw _0x249d8f;}if(!_0x36eb9f)throw CliErrors[_0x501268(0xa8)]('Missing\x20accessKey.',buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x501268(0xdf)](_0x36eb9f))throw CliErrors['validation'](_0x501268(0xe2)+_0x36eb9f+'\x22',_0x501268(0xd7));if(!_0x59111c)return{'accessKey':_0x36eb9f};const _0x2d6672=normalizeEnv(_0x59111c);return{'accessKey':_0x36eb9f,'env':isDaily(_0x2d6672)?_0x501268(0xbd):isDev(_0x2d6672)?_0x501268(0xd0):_0x501268(0xf8)};}export const authDefinitions=[{'service':a8_0x5a53b1(0xdd),'command':a8_0x5a53b1(0xa7),'description':a8_0x5a53b1(0xf5),'risk':a8_0x5a53b1(0xbb),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a8_0x5a53b1(0xef),'type':a8_0x5a53b1(0xf7),'description':a8_0x5a53b1(0xad)},{'name':'ak','type':a8_0x5a53b1(0xf7),'description':a8_0x5a53b1(0xc7)},{'name':a8_0x5a53b1(0xe1),'type':a8_0x5a53b1(0xeb),'description':a8_0x5a53b1(0xbc),'default':!![]},{'name':a8_0x5a53b1(0xe4),'type':a8_0x5a53b1(0xeb),'description':a8_0x5a53b1(0xa1),'default':![]}],async 'execute'(_0x5919c8){const _0x10637e=a8_0x5a53b1;if(_0x5919c8[_0x10637e(0xa9)](_0x10637e(0xb3)))throw CliErrors[_0x10637e(0xa8)](_0x10637e(0xb7),_0x10637e(0xc5)+CLI_BIN_NAME+_0x10637e(0xa6)+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.');const _0x20ddc4=(_0x5919c8[_0x10637e(0xdc)](_0x10637e(0xef))||_0x5919c8[_0x10637e(0xdc)]('ak')||'')[_0x10637e(0xd3)]();if(!_0x20ddc4&&_0x5919c8[_0x10637e(0xfa)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x44eaf3=await resolveAuthWriteInput(_0x5919c8),_0x28b922=resolveAuthScopeFlags(_0x5919c8),_0x497dce=readScopedConfig(_0x28b922);_0x497dce[_0x10637e(0xc1)]=_0x44eaf3[_0x10637e(0xc1)];_0x44eaf3['env']&&(_0x497dce[_0x10637e(0xb6)]=_0x44eaf3[_0x10637e(0xb6)]);writeScopedConfig(_0x497dce,_0x28b922);const _0x3fe0de=_0x28b922[_0x10637e(0xe1)]?_0x10637e(0xe1):_0x10637e(0xe4),_0xbbab7=_0x497dce[_0x10637e(0xb6)]?_0x10637e(0xba)+_0x497dce['env']+'.':'';return{'ok':!![],'message':_0x10637e(0xc2)+_0x3fe0de+_0x10637e(0xed)+_0xbbab7+_0x10637e(0xd9)+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':a8_0x5a53b1(0xdd),'command':a8_0x5a53b1(0xdb),'description':a8_0x5a53b1(0xd8),'risk':a8_0x5a53b1(0xbb),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a8_0x5a53b1(0xef),'type':a8_0x5a53b1(0xf7),'description':a8_0x5a53b1(0xad)},{'name':'ak','type':a8_0x5a53b1(0xf7),'description':a8_0x5a53b1(0xc7)},{'name':'env','type':a8_0x5a53b1(0xf7),'description':a8_0x5a53b1(0xa4)},{'name':a8_0x5a53b1(0xe1),'type':a8_0x5a53b1(0xeb),'description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':a8_0x5a53b1(0xe4),'type':a8_0x5a53b1(0xeb),'description':a8_0x5a53b1(0xa1),'default':![]}],async 'execute'(_0x22e4d1){const _0x1e1cf9=a8_0x5a53b1,_0x2479e5=await resolveAuthWriteInput(_0x22e4d1),_0x3bcc86=resolveAuthScopeFlags(_0x22e4d1),_0x50cea9={'accessKey':_0x2479e5[_0x1e1cf9(0xc1)]};_0x2479e5['env']&&(_0x50cea9['env']=_0x2479e5[_0x1e1cf9(0xb6)]);writeScopedConfig(_0x50cea9,_0x3bcc86);const _0x872691=_0x3bcc86[_0x1e1cf9(0xe1)]?_0x1e1cf9(0xe1):'project',_0x4040d4=_0x50cea9[_0x1e1cf9(0xb6)]?'\x20Current\x20env:\x20'+_0x50cea9[_0x1e1cf9(0xb6)]+'.':'';return{'ok':!![],'message':_0x1e1cf9(0xe9)+_0x872691+_0x1e1cf9(0xaf)+_0x4040d4+'\x20Verify:\x20'+CLI_BIN_NAME+_0x1e1cf9(0xce)};}},{'service':a8_0x5a53b1(0xdd),'command':'logout','description':a8_0x5a53b1(0xe3),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'global','type':a8_0x5a53b1(0xeb),'description':a8_0x5a53b1(0xf6),'default':!![]},{'name':a8_0x5a53b1(0xe4),'type':'boolean','description':'Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x251e62){const _0x5b2b52=a8_0x5a53b1,_0x383695=resolveAuthScopeFlags(_0x251e62),_0x6815a8=readScopedConfig(_0x383695),_0x3d530e=!!_0x6815a8['accessKey'];delete _0x6815a8[_0x5b2b52(0xc1)],writeScopedConfig(_0x6815a8,_0x383695);const _0x599d52=_0x383695[_0x5b2b52(0xe1)]?_0x5b2b52(0xe1):'project';if(_0x3d530e)return{'ok':!![],'message':_0x5b2b52(0xcd)+_0x599d52+_0x5b2b52(0xed)};return{'ok':!![],'message':_0x5b2b52(0xcc)+_0x599d52+_0x5b2b52(0xae)};}},{'service':a8_0x5a53b1(0xdd),'command':a8_0x5a53b1(0xf4),'description':a8_0x5a53b1(0xf9),'risk':a8_0x5a53b1(0xc0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a8_0x5a53b1(0xe1),'type':a8_0x5a53b1(0xeb),'description':a8_0x5a53b1(0xa2),'default':!![]},{'name':a8_0x5a53b1(0xe4),'type':'boolean','description':a8_0x5a53b1(0xac),'default':![]}],async 'execute'(_0x3f0044){const _0x3b624b=a8_0x5a53b1,_0x3f3dd8=resolveAuthScopeFlags(_0x3f0044),_0x518958=readScopedConfig(_0x3f3dd8),_0x1ef045=productEnvName(_0x3b624b(0xb4)),_0x2318b4=productEnv(_0x3b624b(0xb4))||undefined,_0x7a7824=_0x518958['accessKey']||undefined,_0x532dc2=_0x2318b4||_0x7a7824,_0x4b4f5b=_0x2318b4?_0x1ef045+_0x3b624b(0xe0):_0x7a7824?(_0x3f3dd8['global']?_0x3b624b(0xe1):_0x3b624b(0xe4))+_0x3b624b(0xe6):null,_0x34a3f3=['Auth\x20mode:\x20'+AUTH_MODE['ClientAk']];if(_0x532dc2){const _0x1d8335=_0x532dc2[_0x3b624b(0xaa)]>0x8?''+_0x532dc2[_0x3b624b(0xc9)](0x0,0x8)+'*'[_0x3b624b(0xab)](_0x532dc2[_0x3b624b(0xaa)]-0x8):_0x532dc2;_0x34a3f3[_0x3b624b(0xb8)](_0x3b624b(0xcf)+_0x1d8335+(_0x4b4f5b?_0x3b624b(0xf3)+_0x4b4f5b+')':''));}return!_0x532dc2&&(_0x34a3f3[_0x3b624b(0xb8)](''),_0x34a3f3[_0x3b624b(0xb8)](_0x3b624b(0xca)),_0x34a3f3['push'](''),_0x34a3f3[_0x3b624b(0xb8)](_0x3b624b(0xbe)+CLI_BIN_NAME+_0x3b624b(0xec)),_0x34a3f3[_0x3b624b(0xb8)](''),_0x34a3f3[_0x3b624b(0xb8)](_0x3b624b(0xda)+PRODUCT_CONFIG['newConfigFileName']+')'),_0x34a3f3['push'](_0x3b624b(0xb0)),_0x34a3f3[_0x3b624b(0xb8)](''),_0x34a3f3['push'](_0x3b624b(0xb1)),_0x34a3f3[_0x3b624b(0xb8)](_0x3b624b(0xf2)+_0x1ef045+_0x3b624b(0xb9)),_0x34a3f3[_0x3b624b(0xb8)](''),_0x34a3f3[_0x3b624b(0xb8)](_0x3b624b(0xc4)+CLI_BIN_NAME+_0x3b624b(0xce)),_0x34a3f3[_0x3b624b(0xb8)](_0x3b624b(0xd4)+CLI_BIN_NAME+'\x20doctor')),{'ok':!![],'message':_0x34a3f3[_0x3b624b(0xd2)]('\x0a')};}},{'service':'auth','command':a8_0x5a53b1(0xb5),'description':a8_0x5a53b1(0xee),'risk':a8_0x5a53b1(0xc0),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x4e527c){const _0x397a7c=a8_0x5a53b1,_0x60e5d3=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x60e5d3,'meta':{'env':_0x4e527c['envName']??_0x397a7c(0xf8)}}};}}];
1
+ const a8_0x23b731=a8_0x31d4;(function(_0x1b9d6b,_0x59468a){const _0x3ab0f0=a8_0x31d4,_0x2a10df=_0x1b9d6b();while(!![]){try{const _0x5145e3=parseInt(_0x3ab0f0(0x14f))/0x1+parseInt(_0x3ab0f0(0x12b))/0x2+parseInt(_0x3ab0f0(0x139))/0x3*(parseInt(_0x3ab0f0(0x149))/0x4)+-parseInt(_0x3ab0f0(0x141))/0x5+-parseInt(_0x3ab0f0(0x11a))/0x6+parseInt(_0x3ab0f0(0x148))/0x7*(-parseInt(_0x3ab0f0(0x134))/0x8)+parseInt(_0x3ab0f0(0x14a))/0x9;if(_0x5145e3===_0x59468a)break;else _0x2a10df['push'](_0x2a10df['shift']());}catch(_0x23d214){_0x2a10df['push'](_0x2a10df['shift']());}}}(a8_0x34ca,0x8b934));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a8_0x34ca(){const _0x22b36b=['accessKey','slice','validation','Shorthand\x20for\x20--access-key','Then\x20verify\x20with:\x20','read','daily','development','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','login','bool','AccessKey:\x20','nonInteractive','3670314mQZnMS','ClientAk','userCenterDisplayName','\x20(via\x20','auth','production','Auth\x20mode:\x20','`auth\x20login`\x20does\x20not\x20support\x20--yes.','access-key','ACCESS_KEY','string','\x20config','newConfigFileName','\x20Verify:\x20','push','stdin','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','284444wxvAzK','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','Option\x20C:\x20environment\x20variable','Clear\x20accessKey\x20from\x20config','status','envName','\x20Current\x20env:\x20','write','length','5128WQHuip','\x20doctor','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','boolean','global-default','3582tbQXAL','env','Show\x20current\x20authentication\x20status','\x20config.\x20Nothing\x20to\x20clear.','Read\x20from\x20global\x20config\x20(default)','str','AccessKey\x20(ak_xxx...)','info','2124495QHtCuZ','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','\x20auth\x20status','Use\x20`','isTTY','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','join','1897PRIHOK','2872gyMoho','1623303tzFndC','\x20env\x20var','trim','No\x20AccessKey\x20found\x20in\x20','cancelled','602148zmxLDD','Option\x20A:\x20','AccessKey\x20saved\x20to\x20','project','\x20config.','AccessKey\x20cleared\x20from\x20','global','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','\x20scope.','Option\x20B:\x20apps\x20config\x20(','yes','stdout','repeat','Write\x20to\x20global\x20config\x20(default)'];a8_0x34ca=function(){return _0x22b36b;};return a8_0x34ca();}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';function a8_0x31d4(_0x273449,_0x1ab9d9){_0x273449=_0x273449-0xff;const _0x34ca16=a8_0x34ca();let _0x31d45d=_0x34ca16[_0x273449];return _0x31d45d;}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 _0x436dde=a8_0x31d4;writeCliSideChannelLine(_0x436dde(0x146)+PRODUCT_CONFIG[_0x436dde(0x11c)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine('Tip:\x20you\x20can\x20also\x20run:'),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>');}function buildAccessKeySetupGuide(){const _0x2fe4de=a8_0x31d4;return[_0x2fe4de(0x146)+PRODUCT_CONFIG[_0x2fe4de(0x11c)]+':',USER_ACCESS_KEY_CREATE_URL,'Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20'+CLI_BIN_NAME+_0x2fe4de(0x106)]['join']('\x0a');}function canPromptForAccessKey(_0x42a06b){const _0x5ee4e0=a8_0x31d4;return!_0x42a06b[_0x5ee4e0(0x119)]&&process[_0x5ee4e0(0x129)][_0x5ee4e0(0x145)]!==![]&&process[_0x5ee4e0(0x10a)][_0x5ee4e0(0x145)]!==![];}function resolveAuthScopeFlags(_0x482655){const _0x55abd1=a8_0x31d4;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x482655[_0x55abd1(0x117)](_0x55abd1(0x104)),'explicitProject':_0x482655[_0x55abd1(0x117)](_0x55abd1(0x101)),'policy':_0x55abd1(0x138)}));}async function resolveAuthWriteInput(_0x263f8a){const _0x50933d=a8_0x31d4;let _0x6ae311=(_0x263f8a[_0x50933d(0x13e)](_0x50933d(0x122))||_0x263f8a[_0x50933d(0x13e)]('ak')||'')[_0x50933d(0x14c)]();const _0x27548e=(_0x263f8a['str'](_0x50933d(0x13a))||'')[_0x50933d(0x14c)]();if(!_0x6ae311&&canPromptForAccessKey(_0x263f8a))try{showAccessKeyCreateHint(),_0x6ae311=await promptAccessKey('');}catch(_0x3597af){if(isAbortPrompt(_0x3597af))throw CliErrors[_0x50933d(0x14e)]();throw _0x3597af;}if(!_0x6ae311)throw CliErrors[_0x50933d(0x10f)]('Missing\x20accessKey.',buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN['test'](_0x6ae311))throw CliErrors[_0x50933d(0x10f)]('Invalid\x20accessKey\x20format:\x20\x22'+_0x6ae311+'\x22','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars');if(!_0x27548e)return{'accessKey':_0x6ae311};const _0x186e43=normalizeEnv(_0x27548e);return{'accessKey':_0x6ae311,'env':isDaily(_0x186e43)?_0x50933d(0x113):isDev(_0x186e43)?_0x50933d(0x114):_0x50933d(0x11f)};}export const authDefinitions=[{'service':'auth','command':a8_0x23b731(0x116),'description':a8_0x23b731(0x12c),'risk':a8_0x23b731(0x132),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a8_0x23b731(0x122),'type':a8_0x23b731(0x124),'description':a8_0x23b731(0x13f)},{'name':'ak','type':a8_0x23b731(0x124),'description':a8_0x23b731(0x110)},{'name':a8_0x23b731(0x104),'type':a8_0x23b731(0x137),'description':a8_0x23b731(0x10c),'default':!![]},{'name':a8_0x23b731(0x101),'type':a8_0x23b731(0x137),'description':a8_0x23b731(0x142),'default':![]}],async 'execute'(_0x47fdd3){const _0x1c1578=a8_0x23b731;if(_0x47fdd3[_0x1c1578(0x117)](_0x1c1578(0x109)))throw CliErrors[_0x1c1578(0x10f)](_0x1c1578(0x121),_0x1c1578(0x144)+CLI_BIN_NAME+'\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`'+CLI_BIN_NAME+_0x1c1578(0x136));const _0x5b8fc2=(_0x47fdd3[_0x1c1578(0x13e)](_0x1c1578(0x122))||_0x47fdd3[_0x1c1578(0x13e)]('ak')||'')[_0x1c1578(0x14c)]();if(!_0x5b8fc2&&_0x47fdd3[_0x1c1578(0x119)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x11c2b8=await resolveAuthWriteInput(_0x47fdd3),_0x38c2a7=resolveAuthScopeFlags(_0x47fdd3),_0x5b741b=readScopedConfig(_0x38c2a7);_0x5b741b[_0x1c1578(0x10d)]=_0x11c2b8[_0x1c1578(0x10d)];_0x11c2b8[_0x1c1578(0x13a)]&&(_0x5b741b[_0x1c1578(0x13a)]=_0x11c2b8[_0x1c1578(0x13a)]);writeScopedConfig(_0x5b741b,_0x38c2a7);const _0x443c88=_0x38c2a7[_0x1c1578(0x104)]?_0x1c1578(0x104):_0x1c1578(0x101),_0x4d775d=_0x5b741b[_0x1c1578(0x13a)]?_0x1c1578(0x131)+_0x5b741b[_0x1c1578(0x13a)]+'.':'';return{'ok':!![],'message':_0x1c1578(0x100)+_0x443c88+'\x20config.'+_0x4d775d+_0x1c1578(0x127)+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':a8_0x23b731(0x11e),'command':'init','description':'Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a8_0x23b731(0x122),'type':a8_0x23b731(0x124),'description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':a8_0x23b731(0x124),'description':a8_0x23b731(0x110)},{'name':'env','type':a8_0x23b731(0x124),'description':'Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config'},{'name':a8_0x23b731(0x104),'type':a8_0x23b731(0x137),'description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':a8_0x23b731(0x101),'type':a8_0x23b731(0x137),'description':a8_0x23b731(0x142),'default':![]}],async 'execute'(_0x53b57e){const _0xe3bdff=a8_0x23b731,_0x2b99f4=await resolveAuthWriteInput(_0x53b57e),_0x74a932=resolveAuthScopeFlags(_0x53b57e),_0x556bdb={'accessKey':_0x2b99f4['accessKey']};_0x2b99f4[_0xe3bdff(0x13a)]&&(_0x556bdb[_0xe3bdff(0x13a)]=_0x2b99f4[_0xe3bdff(0x13a)]);writeScopedConfig(_0x556bdb,_0x74a932);const _0x5e318c=_0x74a932[_0xe3bdff(0x104)]?_0xe3bdff(0x104):_0xe3bdff(0x101),_0x44557a=_0x556bdb[_0xe3bdff(0x13a)]?_0xe3bdff(0x131)+_0x556bdb[_0xe3bdff(0x13a)]+'.':'';return{'ok':!![],'message':'Auth\x20config\x20reinitialized\x20in\x20'+_0x5e318c+_0xe3bdff(0x107)+_0x44557a+_0xe3bdff(0x127)+CLI_BIN_NAME+_0xe3bdff(0x143)};}},{'service':a8_0x23b731(0x11e),'command':'logout','description':a8_0x23b731(0x12e),'risk':a8_0x23b731(0x132),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a8_0x23b731(0x104),'type':a8_0x23b731(0x137),'description':'Clear\x20from\x20global\x20config\x20(default)','default':!![]},{'name':a8_0x23b731(0x101),'type':a8_0x23b731(0x137),'description':'Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x54298a){const _0x1bfe3c=a8_0x23b731,_0x2852a0=resolveAuthScopeFlags(_0x54298a),_0x5a8bb2=readScopedConfig(_0x2852a0),_0x3877c1=!!_0x5a8bb2[_0x1bfe3c(0x10d)];delete _0x5a8bb2['accessKey'],writeScopedConfig(_0x5a8bb2,_0x2852a0);const _0x28fce5=_0x2852a0[_0x1bfe3c(0x104)]?'global':_0x1bfe3c(0x101);if(_0x3877c1)return{'ok':!![],'message':_0x1bfe3c(0x103)+_0x28fce5+_0x1bfe3c(0x102)};return{'ok':!![],'message':_0x1bfe3c(0x14d)+_0x28fce5+_0x1bfe3c(0x13c)};}},{'service':a8_0x23b731(0x11e),'command':a8_0x23b731(0x12f),'description':a8_0x23b731(0x13b),'risk':a8_0x23b731(0x112),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a8_0x23b731(0x104),'type':a8_0x23b731(0x137),'description':a8_0x23b731(0x13d),'default':!![]},{'name':'project','type':a8_0x23b731(0x137),'description':a8_0x23b731(0x115),'default':![]}],async 'execute'(_0x5a9d6e){const _0x1f866d=a8_0x23b731,_0x426aa5=resolveAuthScopeFlags(_0x5a9d6e),_0x20ee7f=readScopedConfig(_0x426aa5),_0x5bae7e=productEnvName('ACCESS_KEY'),_0x3953e1=productEnv(_0x1f866d(0x123))||undefined,_0x86cb03=_0x20ee7f['accessKey']||undefined,_0x415e54=_0x3953e1||_0x86cb03,_0x15f80b=_0x3953e1?_0x5bae7e+_0x1f866d(0x14b):_0x86cb03?(_0x426aa5[_0x1f866d(0x104)]?_0x1f866d(0x104):_0x1f866d(0x101))+_0x1f866d(0x125):null,_0x2eb150=[_0x1f866d(0x120)+AUTH_MODE[_0x1f866d(0x11b)]];if(_0x415e54){const _0x1fd1f3=_0x415e54[_0x1f866d(0x133)]>0x8?''+_0x415e54[_0x1f866d(0x10e)](0x0,0x8)+'*'[_0x1f866d(0x10b)](_0x415e54[_0x1f866d(0x133)]-0x8):_0x415e54;_0x2eb150['push'](_0x1f866d(0x118)+_0x1fd1f3+(_0x15f80b?_0x1f866d(0x11d)+_0x15f80b+')':''));}return!_0x415e54&&(_0x2eb150[_0x1f866d(0x128)](''),_0x2eb150[_0x1f866d(0x128)]('No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:'),_0x2eb150[_0x1f866d(0x128)](''),_0x2eb150[_0x1f866d(0x128)](_0x1f866d(0xff)+CLI_BIN_NAME+'\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]'),_0x2eb150[_0x1f866d(0x128)](''),_0x2eb150[_0x1f866d(0x128)](_0x1f866d(0x108)+PRODUCT_CONFIG[_0x1f866d(0x126)]+')'),_0x2eb150[_0x1f866d(0x128)]('{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}'),_0x2eb150[_0x1f866d(0x128)](''),_0x2eb150[_0x1f866d(0x128)](_0x1f866d(0x12d)),_0x2eb150['push']('\x20\x20export\x20'+_0x5bae7e+'=ak_xxx'),_0x2eb150['push'](''),_0x2eb150[_0x1f866d(0x128)](_0x1f866d(0x111)+CLI_BIN_NAME+_0x1f866d(0x143)),_0x2eb150[_0x1f866d(0x128)](_0x1f866d(0x12a)+CLI_BIN_NAME+_0x1f866d(0x135))),{'ok':!![],'message':_0x2eb150[_0x1f866d(0x147)]('\x0a')};}},{'service':'auth','command':a8_0x23b731(0x140),'description':a8_0x23b731(0x105),'risk':a8_0x23b731(0x112),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x4a43f8){const _0x7b1df6=a8_0x23b731,_0x4dc7c1=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x4dc7c1,'meta':{'env':_0x4a43f8[_0x7b1df6(0x130)]??_0x7b1df6(0x11f)}}};}}];
@@ -1 +1 @@
1
- (function(_0xef24a4,_0x1d9be4){const _0x42c35f=a9_0x5c5d,_0x2b9ba8=_0xef24a4();while(!![]){try{const _0x3545bf=-parseInt(_0x42c35f(0x93))/0x1*(-parseInt(_0x42c35f(0x90))/0x2)+-parseInt(_0x42c35f(0x8c))/0x3*(parseInt(_0x42c35f(0x95))/0x4)+-parseInt(_0x42c35f(0x97))/0x5+parseInt(_0x42c35f(0x8d))/0x6*(-parseInt(_0x42c35f(0x8f))/0x7)+parseInt(_0x42c35f(0x9c))/0x8*(parseInt(_0x42c35f(0x9b))/0x9)+parseInt(_0x42c35f(0x87))/0xa+parseInt(_0x42c35f(0x92))/0xb*(parseInt(_0x42c35f(0x8a))/0xc);if(_0x3545bf===_0x1d9be4)break;else _0x2b9ba8['push'](_0x2b9ba8['shift']());}catch(_0x5df14a){_0x2b9ba8['push'](_0x2b9ba8['shift']());}}}(a9_0x3fce,0xdf4b3));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x16ce9e=a9_0x5c5d;super(_0x16ce9e(0x96)),this[_0x16ce9e(0x91)]=_0x16ce9e(0x8e);}}function createSafeRl(){const _0x481c5d=a9_0x5c5d,_0xe08f7d=createInterface({'input':process['stdin'],'output':process[_0x481c5d(0x89)]});let _0x1bbe86;const _0x54351b=new Promise((_0x2120ae,_0x1c4921)=>{const _0x570ce0=_0x481c5d;_0x1bbe86=()=>{const _0x8865f8=a9_0x5c5d;_0x1bbe86&&(_0xe08f7d[_0x8865f8(0x8b)](_0x8865f8(0x94),_0x1bbe86),_0x1bbe86=undefined);try{_0xe08f7d['close']();}catch{}_0x1c4921(new AbortPrompt());},_0xe08f7d[_0x570ce0(0x99)](_0x570ce0(0x94),_0x1bbe86);}),_0x274920=()=>{const _0x50e136=_0x481c5d;_0x1bbe86&&(_0xe08f7d['removeListener'](_0x50e136(0x94),_0x1bbe86),_0x1bbe86=undefined);try{_0xe08f7d[_0x50e136(0x98)]();}catch{}};return{'rl':_0xe08f7d,'abortPromise':_0x54351b,'disposeSuccess':_0x274920};}function a9_0x5c5d(_0x517e93,_0x4417ad){_0x517e93=_0x517e93-0x87;const _0x3fce30=a9_0x3fce();let _0x5c5dd8=_0x3fce30[_0x517e93];return _0x5c5dd8;}export async function promptAccessKey(_0x1c5663=''){const {rl:_0x4ad0dd,abortPromise:_0x3f87a2,disposeSuccess:_0x36a2b6}=createSafeRl(),_0x5f36bc=new Promise(_0x141544=>{const _0x47174e=a9_0x5c5d,_0x12aeb7=_0x1c5663?_0x47174e(0x9a)+_0x1c5663+'):\x20':_0x47174e(0x88);_0x4ad0dd['question'](_0x12aeb7,_0x2b7301=>{_0x36a2b6(),_0x141544(_0x2b7301['trim']()||_0x1c5663);});});return Promise['race']([_0x5f36bc,_0x3f87a2]);}function a9_0x3fce(){const _0x382b51=['close','once','AccessKey\x20(','9ogiOeq','9425200sxdRcc','895920IGsipT','AccessKey\x20(paste\x20ak_...):\x20','stdout','228YAcczP','removeListener','876ODLVYu','2479170HaneAI','AbortPrompt','7JLdLRC','10RsjTHZ','name','1310474YaSgNd','184699aohxXd','SIGINT','20884ZqggDj','User\x20aborted\x20prompt','8012225MByUzr'];a9_0x3fce=function(){return _0x382b51;};return a9_0x3fce();}export function isAbortPrompt(_0x38bb4f){const _0x21b489=a9_0x5c5d;return _0x38bb4f instanceof Error&&_0x38bb4f[_0x21b489(0x91)]===_0x21b489(0x8e);}
1
+ (function(_0x9f3947,_0x54ae7f){const _0x746a81=a9_0x181f,_0x17722f=_0x9f3947();while(!![]){try{const _0x3faa4f=-parseInt(_0x746a81(0x1ca))/0x1+-parseInt(_0x746a81(0x1d8))/0x2+parseInt(_0x746a81(0x1d1))/0x3*(parseInt(_0x746a81(0x1d0))/0x4)+parseInt(_0x746a81(0x1cf))/0x5*(-parseInt(_0x746a81(0x1c7))/0x6)+parseInt(_0x746a81(0x1cd))/0x7+parseInt(_0x746a81(0x1cc))/0x8*(-parseInt(_0x746a81(0x1c9))/0x9)+parseInt(_0x746a81(0x1ce))/0xa*(parseInt(_0x746a81(0x1d5))/0xb);if(_0x3faa4f===_0x54ae7f)break;else _0x17722f['push'](_0x17722f['shift']());}catch(_0x57db80){_0x17722f['push'](_0x17722f['shift']());}}}(a9_0x2d94,0xbe977));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x426871=a9_0x181f;super('User\x20aborted\x20prompt'),this[_0x426871(0x1c6)]=_0x426871(0x1d7);}}function a9_0x181f(_0x580c29,_0x15f2ea){_0x580c29=_0x580c29-0x1c4;const _0x2d94f1=a9_0x2d94();let _0x181f4d=_0x2d94f1[_0x580c29];return _0x181f4d;}function createSafeRl(){const _0x172b51=a9_0x181f,_0x37fb54=createInterface({'input':process[_0x172b51(0x1cb)],'output':process[_0x172b51(0x1d4)]});let _0x1fd11e;const _0x14b37d=new Promise((_0x11e3c5,_0x29db68)=>{const _0x6307a2=_0x172b51;_0x1fd11e=()=>{const _0xb1c2fb=a9_0x181f;_0x1fd11e&&(_0x37fb54[_0xb1c2fb(0x1c4)]('SIGINT',_0x1fd11e),_0x1fd11e=undefined);try{_0x37fb54[_0xb1c2fb(0x1da)]();}catch{}_0x29db68(new AbortPrompt());},_0x37fb54[_0x6307a2(0x1d6)]('SIGINT',_0x1fd11e);}),_0x555b15=()=>{const _0x38f0=_0x172b51;_0x1fd11e&&(_0x37fb54[_0x38f0(0x1c4)](_0x38f0(0x1c8),_0x1fd11e),_0x1fd11e=undefined);try{_0x37fb54['close']();}catch{}};return{'rl':_0x37fb54,'abortPromise':_0x14b37d,'disposeSuccess':_0x555b15};}export async function promptAccessKey(_0x308c14=''){const {rl:_0x2523e7,abortPromise:_0x289161,disposeSuccess:_0x2c5fee}=createSafeRl(),_0x5e5e49=new Promise(_0x37cde2=>{const _0x1f2370=a9_0x181f,_0x49ad25=_0x308c14?_0x1f2370(0x1d2)+_0x308c14+_0x1f2370(0x1c5):_0x1f2370(0x1d9);_0x2523e7[_0x1f2370(0x1d3)](_0x49ad25,_0x205cd1=>{_0x2c5fee(),_0x37cde2(_0x205cd1['trim']()||_0x308c14);});});return Promise['race']([_0x5e5e49,_0x289161]);}export function isAbortPrompt(_0x5e9b1f){const _0x597ec2=a9_0x181f;return _0x5e9b1f instanceof Error&&_0x5e9b1f[_0x597ec2(0x1c6)]==='AbortPrompt';}function a9_0x2d94(){const _0x412ede=['1068lJjZCc','AccessKey\x20(','question','stdout','811096RWdnti','once','AbortPrompt','1782114EeOqVt','AccessKey\x20(paste\x20ak_...):\x20','close','removeListener','):\x20','name','24VzicrQ','SIGINT','9SzaoWG','1558841MecTAI','stdin','7848328izsYHZ','912226QAmYxB','710HtzXlN','1848305WkDIQz','3648aJqPxc'];a9_0x2d94=function(){return _0x412ede;};return a9_0x2d94();}
@@ -1 +1 @@
1
- const a10_0x290473=a10_0x140a;(function(_0x4ec78b,_0x78da33){const _0x234fcb=a10_0x140a,_0xc16552=_0x4ec78b();while(!![]){try{const _0x1d67ae=-parseInt(_0x234fcb(0x1af))/0x1+parseInt(_0x234fcb(0x1a5))/0x2*(parseInt(_0x234fcb(0x1a7))/0x3)+parseInt(_0x234fcb(0x1b3))/0x4+parseInt(_0x234fcb(0x1ab))/0x5*(-parseInt(_0x234fcb(0x1a9))/0x6)+parseInt(_0x234fcb(0x1b0))/0x7+parseInt(_0x234fcb(0x1aa))/0x8*(-parseInt(_0x234fcb(0x1b1))/0x9)+parseInt(_0x234fcb(0x1b4))/0xa;if(_0x1d67ae===_0x78da33)break;else _0xc16552['push'](_0xc16552['shift']());}catch(_0xf72da3){_0xc16552['push'](_0xc16552['shift']());}}}(a10_0x4b4e,0xd253d));import{getBffScriptInfo}from'../../core/api-client.js';function a10_0x140a(_0x2086d4,_0x42dcdc){_0x2086d4=_0x2086d4-0x1a4;const _0x4b4e82=a10_0x4b4e();let _0x140a85=_0x4b4e82[_0x2086d4];return _0x140a85;}import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a10_0x290473(0x1a8),'command':a10_0x290473(0x1ae),'description':a10_0x290473(0x1ad),'risk':a10_0x290473(0x1b8),'flags':[{...ID_FLAG,'description':a10_0x290473(0x1ac)},VERBOSE_FLAG],async 'execute'(_0x1db4b9){const _0x1fca4e=a10_0x290473,_0x18e79d=await getBffScriptInfo(_0x1db4b9[_0x1fca4e(0x1b2)]('id')),_0x58988e=_0x1db4b9['bool'](_0x1fca4e(0x1b5));if(_0x58988e)return{'ok':!![],'data':_0x18e79d};return{'ok':!![],'data':{'id':_0x18e79d['id'],'appCode':_0x18e79d[_0x1fca4e(0x1a6)],'functionName':_0x18e79d[_0x1fca4e(0x1b6)]??'','scriptType':_0x18e79d[_0x1fca4e(0x1a4)],'description':_0x18e79d[_0x1fca4e(0x1b7)]||'(none)','createdTime':_0x18e79d['createdTime']??'','updatedTime':_0x18e79d['updatedTime']??''}};}};function a10_0x4b4e(){const _0x3a3e6c=['952564HhxZGZ','11739462ujEnvP','152874AdJLyV','num','2204592lVJnGw','10669840vOyWbb','verbose','functionName','description','read','scriptType','4DpjWSM','appCode','1861998elNFhO','bff','12378sPEHiS','776KxMeuX','2605RYBzov','Script\x20ID','Get\x20BFF\x20script\x20details\x20by\x20ID','detail'];a10_0x4b4e=function(){return _0x3a3e6c;};return a10_0x4b4e();}
1
+ const a10_0x57551c=a10_0x29e2;function a10_0x48fd(){const _0x5ac148=['2ekTaNJ','72RQGUEK','appCode','29208TwPiZm','updatedTime','17128zZCxFs','110aOkbbp','verbose','description','bool','771660CKqsmT','scriptType','3866703jGSByZ','3168708CHrsgC','16170TOLBZp','Get\x20BFF\x20script\x20details\x20by\x20ID','223741ccQhRg','createdTime','num','read','Script\x20ID','bff','1400FypKJN','1047063SxLMfe'];a10_0x48fd=function(){return _0x5ac148;};return a10_0x48fd();}function a10_0x29e2(_0x4cb45a,_0x927e91){_0x4cb45a=_0x4cb45a-0x1eb;const _0x48fd3b=a10_0x48fd();let _0x29e20f=_0x48fd3b[_0x4cb45a];return _0x29e20f;}(function(_0x459d40,_0x3a0263){const _0x19017d=a10_0x29e2,_0x13ecf9=_0x459d40();while(!![]){try{const _0x27eb35=parseInt(_0x19017d(0x1fe))/0x1+-parseInt(_0x19017d(0x1ff))/0x2*(-parseInt(_0x19017d(0x1f3))/0x3)+-parseInt(_0x19017d(0x1ec))/0x4*(-parseInt(_0x19017d(0x1fd))/0x5)+-parseInt(_0x19017d(0x1f4))/0x6+-parseInt(_0x19017d(0x1f7))/0x7*(-parseInt(_0x19017d(0x200))/0x8)+parseInt(_0x19017d(0x1f1))/0x9*(parseInt(_0x19017d(0x1ed))/0xa)+-parseInt(_0x19017d(0x1f5))/0xb*(parseInt(_0x19017d(0x202))/0xc);if(_0x27eb35===_0x3a0263)break;else _0x13ecf9['push'](_0x13ecf9['shift']());}catch(_0x2d5d55){_0x13ecf9['push'](_0x13ecf9['shift']());}}}(a10_0x48fd,0xa10b1));import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a10_0x57551c(0x1fc),'command':'detail','description':a10_0x57551c(0x1f6),'risk':a10_0x57551c(0x1fa),'flags':[{...ID_FLAG,'description':a10_0x57551c(0x1fb)},VERBOSE_FLAG],async 'execute'(_0x4e7913){const _0x14acca=a10_0x57551c,_0x202293=await getBffScriptInfo(_0x4e7913[_0x14acca(0x1f9)]('id')),_0x45f097=_0x4e7913[_0x14acca(0x1f0)](_0x14acca(0x1ee));if(_0x45f097)return{'ok':!![],'data':_0x202293};return{'ok':!![],'data':{'id':_0x202293['id'],'appCode':_0x202293[_0x14acca(0x201)],'functionName':_0x202293['functionName']??'','scriptType':_0x202293[_0x14acca(0x1f2)],'description':_0x202293[_0x14acca(0x1ef)]||'(none)','createdTime':_0x202293[_0x14acca(0x1f8)]??'','updatedTime':_0x202293[_0x14acca(0x1eb)]??''}};}};
@@ -1 +1 @@
1
- const a11_0x3cd86f=a11_0x16f8;(function(_0x2253ab,_0x105b5c){const _0x143095=a11_0x16f8,_0x597678=_0x2253ab();while(!![]){try{const _0x25d2fb=-parseInt(_0x143095(0x121))/0x1+parseInt(_0x143095(0x123))/0x2*(parseInt(_0x143095(0x11d))/0x3)+-parseInt(_0x143095(0x11c))/0x4*(-parseInt(_0x143095(0x129))/0x5)+-parseInt(_0x143095(0x12f))/0x6*(-parseInt(_0x143095(0x122))/0x7)+parseInt(_0x143095(0x124))/0x8+parseInt(_0x143095(0x12a))/0x9+-parseInt(_0x143095(0x12b))/0xa*(parseInt(_0x143095(0x127))/0xb);if(_0x25d2fb===_0x105b5c)break;else _0x597678['push'](_0x597678['shift']());}catch(_0x50f325){_0x597678['push'](_0x597678['shift']());}}}(a11_0x5645,0x25488));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a11_0x16f8(_0x2d4a19,_0x2040a2){_0x2d4a19=_0x2d4a19-0x11c;const _0x56453b=a11_0x5645();let _0x16f876=_0x56453b[_0x2d4a19];return _0x16f876;}export const bffExec={'service':a11_0x3cd86f(0x12d),'command':a11_0x3cd86f(0x12c),'description':a11_0x3cd86f(0x11e),'risk':a11_0x3cd86f(0x128),'flags':[{...NAME_FLAG,'required':!![],'description':a11_0x3cd86f(0x130)},PARAMS_FLAG],async 'execute'(_0x470a38){const _0x4c2b1e=a11_0x3cd86f,_0x2e7ad8=parseJsonParams(_0x470a38['str'](_0x4c2b1e(0x11f))),_0x17a085=Date[_0x4c2b1e(0x12e)](),_0x3c36f8=await executeSdkBff(_0x470a38[_0x4c2b1e(0x125)](_0x4c2b1e(0x120)),_0x2e7ad8),_0x1c3300=Date[_0x4c2b1e(0x12e)]()-_0x17a085;return{'ok':!![],'data':{'result':_0x3c36f8,'elapsed':_0x1c3300},'message':_0x4c2b1e(0x126)+_0x1c3300+'ms'};}};function a11_0x5645(){const _0x142285=['now','1113384hhXQMB','BFF\x20function\x20name\x20to\x20execute','25444AFThDw','6aLiWEd','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','params','name','116624BfpZuC','7ZtrPqI','85546jSnVdD','2070528intOrd','str','BFF\x20executed\x20in\x20','234883NvuIFJ','read','220zIoAcv','132336PCudjj','260LvoOwI','exec','bff'];a11_0x5645=function(){return _0x142285;};return a11_0x5645();}
1
+ function a11_0x237d(){const _0x28dede=['read','3096PvPfSs','exec','params','153qEbQsZ','2104344YzSETZ','874261jePkPX','now','1731398ABYfoE','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','str','460656AdNUVh','4995nDkryv','bff','54168bxGuXL','BFF\x20function\x20name\x20to\x20execute','5162376TCaKea'];a11_0x237d=function(){return _0x28dede;};return a11_0x237d();}const a11_0x179bb5=a11_0x3eb5;(function(_0xfefdc9,_0x5b19d9){const _0x28d1f5=a11_0x3eb5,_0x2989d5=_0xfefdc9();while(!![]){try{const _0x151444=-parseInt(_0x28d1f5(0x168))/0x1+-parseInt(_0x28d1f5(0x16a))/0x2+parseInt(_0x28d1f5(0x167))/0x3+parseInt(_0x28d1f5(0x172))/0x4+-parseInt(_0x28d1f5(0x16e))/0x5*(-parseInt(_0x28d1f5(0x174))/0x6)+parseInt(_0x28d1f5(0x16d))/0x7+-parseInt(_0x28d1f5(0x170))/0x8*(parseInt(_0x28d1f5(0x177))/0x9);if(_0x151444===_0x5b19d9)break;else _0x2989d5['push'](_0x2989d5['shift']());}catch(_0x57cd1c){_0x2989d5['push'](_0x2989d5['shift']());}}}(a11_0x237d,0xaf5bb));function a11_0x3eb5(_0x2d663e,_0x54e2ed){_0x2d663e=_0x2d663e-0x167;const _0x237d33=a11_0x237d();let _0x3eb5a3=_0x237d33[_0x2d663e];return _0x3eb5a3;}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_0x179bb5(0x16f),'command':a11_0x179bb5(0x175),'description':a11_0x179bb5(0x16b),'risk':a11_0x179bb5(0x173),'flags':[{...NAME_FLAG,'required':!![],'description':a11_0x179bb5(0x171)},PARAMS_FLAG],async 'execute'(_0x45918f){const _0x40dd1b=a11_0x179bb5,_0x4f23af=parseJsonParams(_0x45918f[_0x40dd1b(0x16c)](_0x40dd1b(0x176))),_0x3ff89e=Date[_0x40dd1b(0x169)](),_0x5af322=await executeSdkBff(_0x45918f['str']('name'),_0x4f23af),_0x4312d5=Date[_0x40dd1b(0x169)]()-_0x3ff89e;return{'ok':!![],'data':{'result':_0x5af322,'elapsed':_0x4312d5},'message':'BFF\x20executed\x20in\x20'+_0x4312d5+'ms'};}};
@@ -1 +1 @@
1
- (function(_0x3a84e9,_0x4aa4f1){const _0x44aa4f=a12_0x49ff,_0x464221=_0x3a84e9();while(!![]){try{const _0x2d8930=parseInt(_0x44aa4f(0x70))/0x1+parseInt(_0x44aa4f(0x6e))/0x2*(parseInt(_0x44aa4f(0x6b))/0x3)+-parseInt(_0x44aa4f(0x6c))/0x4*(parseInt(_0x44aa4f(0x71))/0x5)+-parseInt(_0x44aa4f(0x72))/0x6+parseInt(_0x44aa4f(0x69))/0x7*(-parseInt(_0x44aa4f(0x73))/0x8)+parseInt(_0x44aa4f(0x6f))/0x9*(-parseInt(_0x44aa4f(0x6d))/0xa)+parseInt(_0x44aa4f(0x6a))/0xb;if(_0x2d8930===_0x4aa4f1)break;else _0x464221['push'](_0x464221['shift']());}catch(_0x496608){_0x464221['push'](_0x464221['shift']());}}}(a12_0xa390,0x842f7));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';function a12_0x49ff(_0x16166d,_0x5a2bab){_0x16166d=_0x16166d-0x69;const _0xa3901=a12_0xa390();let _0x49ff09=_0xa3901[_0x16166d];return _0x49ff09;}export const bffDefinitions=[bffDetail,bffExec];function a12_0xa390(){const _0x297211=['896562Fwybbj','88jXjfPM','616959jtmzGu','16829318XHvrrg','1416ILzsxM','33676JDmAOD','310OnRpoF','3058ROqJok','218529jdSWPw','1037026hOkvuy','520zmoRir'];a12_0xa390=function(){return _0x297211;};return a12_0xa390();}
1
+ (function(_0x37191a,_0x43de6c){const _0x3bf89c=a12_0x3e5c,_0x4db573=_0x37191a();while(!![]){try{const _0xfa4177=parseInt(_0x3bf89c(0x8a))/0x1+-parseInt(_0x3bf89c(0x8b))/0x2+parseInt(_0x3bf89c(0x88))/0x3+-parseInt(_0x3bf89c(0x8f))/0x4*(parseInt(_0x3bf89c(0x8c))/0x5)+-parseInt(_0x3bf89c(0x89))/0x6+-parseInt(_0x3bf89c(0x8e))/0x7+parseInt(_0x3bf89c(0x87))/0x8*(parseInt(_0x3bf89c(0x8d))/0x9);if(_0xfa4177===_0x43de6c)break;else _0x4db573['push'](_0x4db573['shift']());}catch(_0x40f6ee){_0x4db573['push'](_0x4db573['shift']());}}}(a12_0x3728,0x32d50));function a12_0x3728(){const _0x58a190=['67482UiZusE','1633356MxHrST','79637NqyZwa','284502KyKtxx','115TBgFFm','7981704hDLapC','2545921FDCCPn','452BMQpJj','8HvUcTi'];a12_0x3728=function(){return _0x58a190;};return a12_0x3728();}import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';function a12_0x3e5c(_0x3630a6,_0x4d6049){_0x3630a6=_0x3630a6-0x87;const _0x372856=a12_0x3728();let _0x3e5cef=_0x372856[_0x3630a6];return _0x3e5cef;}export const bffDefinitions=[bffDetail,bffExec];
@@ -1 +1 @@
1
- (function(_0x1f914c,_0x99bb79){const _0x554fae=a13_0x5e78,_0x2b9c7b=_0x1f914c();while(!![]){try{const _0x10395c=parseInt(_0x554fae(0xde))/0x1*(parseInt(_0x554fae(0xd2))/0x2)+-parseInt(_0x554fae(0xd7))/0x3*(-parseInt(_0x554fae(0xd0))/0x4)+parseInt(_0x554fae(0xe2))/0x5+parseInt(_0x554fae(0xe1))/0x6+parseInt(_0x554fae(0xd3))/0x7+-parseInt(_0x554fae(0xe4))/0x8*(parseInt(_0x554fae(0xd8))/0x9)+-parseInt(_0x554fae(0xce))/0xa*(parseInt(_0x554fae(0xe5))/0xb);if(_0x10395c===_0x99bb79)break;else _0x2b9c7b['push'](_0x2b9c7b['shift']());}catch(_0x53b0ad){_0x2b9c7b['push'](_0x2b9c7b['shift']());}}}(a13_0x2df9,0xaf2b9));import{CLI_BIN_NAME}from'../../constant/cli.js';function a13_0x2df9(){const _0x59232b=['global','402131HKioAS',',\x20or\x20run\x20`','inProject','1572480HoChgK','1004600UbtbNW','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','5655352ISiCNq','10967RxBPhg','\x20found).','10860EMomXQ','Add\x20--global\x20to\x20write\x20to\x20~/','92816jtnjuq','validation','2OlygiP','4672213wAhcoT','Use\x20only\x20one\x20config\x20scope\x20flag.','\x20(global)','project-or-global-explicit','126WyvSvq','9JVcKFF','newConfigFileName','Not\x20inside\x20a\x20project\x20(no\x20','global-default','project'];a13_0x2df9=function(){return _0x59232b;};return a13_0x2df9();}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';export function resolveConfigScope(_0x4f00c4){const _0x2d2229=a13_0x5e78,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x201ba2}=_0x4f00c4;if(explicitGlobal&&explicitProject)throw CliErrors[_0x2d2229(0xd1)](_0x2d2229(0xe3),_0x2d2229(0xd4));if(explicitGlobal)return _0x2d2229(0xdd);if(explicitProject)return _0x2d2229(0xdc);switch(_0x201ba2){case _0x2d2229(0xdb):return _0x2d2229(0xdd);case'project-default':return _0x4f00c4[_0x2d2229(0xe0)]??isInProject()?_0x2d2229(0xdc):_0x2d2229(0xdd);case _0x2d2229(0xd6):if(!(_0x4f00c4[_0x2d2229(0xe0)]??isInProject()))throw CliErrors['validation'](_0x2d2229(0xda)+PRODUCT_CONFIG[_0x2d2229(0xd9)]+_0x2d2229(0xcd),_0x2d2229(0xcf)+PRODUCT_CONFIG[_0x2d2229(0xd9)]+_0x2d2229(0xdf)+CLI_BIN_NAME+'\x20init`\x20first.');return _0x2d2229(0xdc);}}function a13_0x5e78(_0x6c3532,_0x417388){_0x6c3532=_0x6c3532-0xcd;const _0x2df97c=a13_0x2df9();let _0x5e783b=_0x2df97c[_0x6c3532];return _0x5e783b;}export function toScopeFlags(_0x404a0f){const _0x3ed1b9=a13_0x5e78;return{'global':_0x404a0f===_0x3ed1b9(0xdd)};}export function formatScopeLabel(_0x8e7555){const _0xd67872=a13_0x5e78;return _0x8e7555==='global'?_0xd67872(0xd5):'';}
1
+ function a13_0x2f6d(_0x4187ec,_0x18097b){_0x4187ec=_0x4187ec-0x10d;const _0x4dad6d=a13_0x4dad();let _0x2f6d14=_0x4dad6d[_0x4187ec];return _0x2f6d14;}(function(_0x4dcd30,_0x331f16){const _0x2f9e0f=a13_0x2f6d,_0x874e32=_0x4dcd30();while(!![]){try{const _0x45205d=-parseInt(_0x2f9e0f(0x115))/0x1*(-parseInt(_0x2f9e0f(0x11d))/0x2)+-parseInt(_0x2f9e0f(0x117))/0x3+-parseInt(_0x2f9e0f(0x11b))/0x4+parseInt(_0x2f9e0f(0x110))/0x5*(-parseInt(_0x2f9e0f(0x118))/0x6)+parseInt(_0x2f9e0f(0x11a))/0x7*(-parseInt(_0x2f9e0f(0x121))/0x8)+parseInt(_0x2f9e0f(0x10e))/0x9+parseInt(_0x2f9e0f(0x11e))/0xa*(parseInt(_0x2f9e0f(0x11f))/0xb);if(_0x45205d===_0x331f16)break;else _0x874e32['push'](_0x874e32['shift']());}catch(_0x3496f1){_0x874e32['push'](_0x874e32['shift']());}}}(a13_0x4dad,0x84e6d));import{CLI_BIN_NAME}from'../../constant/cli.js';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';function a13_0x4dad(){const _0x38fb1a=['10vXNBdM','18390493iRxUKO','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','5455304FsllKx','Use\x20only\x20one\x20config\x20scope\x20flag.','Add\x20--global\x20to\x20write\x20to\x20~/','5163039pygtNH','validation','3413005hHlWKu',',\x20or\x20run\x20`','\x20init`\x20first.','global','inProject','3AdeMjS','project','914322FWsZmd','6EugjQu','Not\x20inside\x20a\x20project\x20(no\x20','7EnBBhM','2526264qBTuZJ','project-or-global-explicit','399790JmDSIl'];a13_0x4dad=function(){return _0x38fb1a;};return a13_0x4dad();}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(_0x5328b8){const _0x4b6db2=a13_0x2f6d,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x4f8bb2}=_0x5328b8;if(explicitGlobal&&explicitProject)throw CliErrors[_0x4b6db2(0x10f)](_0x4b6db2(0x120),_0x4b6db2(0x122));if(explicitGlobal)return _0x4b6db2(0x113);if(explicitProject)return'project';switch(_0x4f8bb2){case'global-default':return _0x4b6db2(0x113);case'project-default':return _0x5328b8[_0x4b6db2(0x114)]??isInProject()?_0x4b6db2(0x116):_0x4b6db2(0x113);case _0x4b6db2(0x11c):if(!(_0x5328b8[_0x4b6db2(0x114)]??isInProject()))throw CliErrors[_0x4b6db2(0x10f)](_0x4b6db2(0x119)+PRODUCT_CONFIG['newConfigFileName']+'\x20found).',_0x4b6db2(0x10d)+PRODUCT_CONFIG['newConfigFileName']+_0x4b6db2(0x111)+CLI_BIN_NAME+_0x4b6db2(0x112));return _0x4b6db2(0x116);}}export function toScopeFlags(_0x39bff3){const _0x83cdb7=a13_0x2f6d;return{'global':_0x39bff3===_0x83cdb7(0x113)};}export function formatScopeLabel(_0x35e586){const _0x471d91=a13_0x2f6d;return _0x35e586===_0x471d91(0x113)?'\x20(global)':'';}
@@ -1 +1 @@
1
- (function(_0x5e571c,_0x4871ea){const _0x3df308=a14_0x388d,_0x4dff8a=_0x5e571c();while(!![]){try{const _0x1d63df=parseInt(_0x3df308(0x1c5))/0x1*(-parseInt(_0x3df308(0x1ba))/0x2)+-parseInt(_0x3df308(0x1b7))/0x3*(parseInt(_0x3df308(0x1c1))/0x4)+-parseInt(_0x3df308(0x1c2))/0x5*(-parseInt(_0x3df308(0x1bd))/0x6)+-parseInt(_0x3df308(0x1bb))/0x7+parseInt(_0x3df308(0x1c6))/0x8+parseInt(_0x3df308(0x1b9))/0x9+parseInt(_0x3df308(0x1bf))/0xa;if(_0x1d63df===_0x4871ea)break;else _0x4dff8a['push'](_0x4dff8a['shift']());}catch(_0x3d5f16){_0x4dff8a['push'](_0x4dff8a['shift']());}}}(a14_0x45d1,0x5f20c));function a14_0x45d1(){const _0x2d8229=['Remove\x20all\x20but\x20one.','198PvRnlI','length','88430qtaKhE','\x20is\x20required\x20for\x20`','4nDgdbO','86755oXcZQa','validation','\x20are\x20mutually\x20exclusive\x20for\x20`','1FsoGiS','2611496qsBARL','filter','Invalid\x20--',',\x20got\x20\x22',':\x20expected\x20','Provide\x20one\x20of:\x20','some','map','Flags\x20','Use\x20only\x20one\x20of:\x20','flag','str','Exactly\x20one\x20of\x20','Only\x20one\x20of\x20','146220YXSGjx','test','2839581FlTcek','355132ZDSfkQ','4251954aJPUvD'];a14_0x45d1=function(){return _0x2d8229;};return a14_0x45d1();}import{CliErrors}from'../../errors.js';function isSet(_0x5d562d,_0x240f4d){const _0x3c34d2=a14_0x388d,_0x1af228=_0x5d562d[_0x3c34d2(0x1b3)](_0x240f4d);return _0x1af228!==undefined&&_0x1af228!==''&&_0x1af228!==![]&&_0x1af228!==0x0;}function fmtNames(_0x209d3e){const _0x1688fb=a14_0x388d;return _0x209d3e[_0x1688fb(0x1b0)](_0x1b0b3d=>'--'+_0x1b0b3d)['join'](',\x20');}export function requireOneOf(_0xd82b01,_0xf928c9,_0x45c2ea){const _0x2df750=a14_0x388d,_0x4e4aa8=_0xf928c9[_0x2df750(0x1c7)](_0x140e90=>isSet(_0xd82b01,_0x140e90));if(_0x4e4aa8[_0x2df750(0x1be)]!==0x1)throw CliErrors[_0x2df750(0x1c3)](_0x4e4aa8[_0x2df750(0x1be)]===0x0?_0x2df750(0x1b5)+fmtNames(_0xf928c9)+'\x20is\x20required\x20for\x20`'+_0x45c2ea+'`.':_0x2df750(0x1b6)+fmtNames(_0xf928c9)+'\x20is\x20allowed,\x20found:\x20'+fmtNames(_0x4e4aa8)+'.',_0x4e4aa8[_0x2df750(0x1be)]===0x0?_0x2df750(0x1ae)+fmtNames(_0xf928c9):_0x2df750(0x1bc));}export function requireAnyOf(_0x539131,_0x218fab,_0x43b1da){const _0x4ee305=a14_0x388d;if(!_0x218fab[_0x4ee305(0x1af)](_0x14c294=>isSet(_0x539131,_0x14c294)))throw CliErrors[_0x4ee305(0x1c3)]('At\x20least\x20one\x20of\x20'+fmtNames(_0x218fab)+_0x4ee305(0x1c0)+_0x43b1da+'`.',_0x4ee305(0x1ae)+fmtNames(_0x218fab));}function a14_0x388d(_0x4669cc,_0x12353d){_0x4669cc=_0x4669cc-0x1ad;const _0x45d193=a14_0x45d1();let _0x388d35=_0x45d193[_0x4669cc];return _0x388d35;}export function mutuallyExclusive(_0x15323d,_0x7b0db6,_0x2d2e6a){const _0x31775f=a14_0x388d,_0x591604=_0x7b0db6[_0x31775f(0x1c7)](_0x580239=>isSet(_0x15323d,_0x580239));if(_0x591604[_0x31775f(0x1be)]>0x1)throw CliErrors['validation'](_0x31775f(0x1b1)+fmtNames(_0x591604)+_0x31775f(0x1c4)+_0x2d2e6a+'`.',_0x31775f(0x1b2)+fmtNames(_0x7b0db6));}export function validatePattern(_0x4b3886,_0x2a404c,_0x1c5955,_0x8790bb){const _0x141ec0=a14_0x388d,_0x279266=_0x4b3886[_0x141ec0(0x1b4)](_0x2a404c);if(_0x279266&&!_0x1c5955[_0x141ec0(0x1b8)](_0x279266))throw CliErrors[_0x141ec0(0x1c3)](_0x141ec0(0x1c8)+_0x2a404c+_0x141ec0(0x1ad)+_0x8790bb+_0x141ec0(0x1c9)+_0x279266+'\x22.');}
1
+ (function(_0x44de36,_0xf54db4){const _0x257b53=a14_0x4c0c,_0x2241ed=_0x44de36();while(!![]){try{const _0x797b79=parseInt(_0x257b53(0xdb))/0x1*(-parseInt(_0x257b53(0xe0))/0x2)+parseInt(_0x257b53(0xe9))/0x3+parseInt(_0x257b53(0xf0))/0x4*(parseInt(_0x257b53(0xdf))/0x5)+parseInt(_0x257b53(0xe5))/0x6*(parseInt(_0x257b53(0xee))/0x7)+parseInt(_0x257b53(0xe2))/0x8+parseInt(_0x257b53(0xeb))/0x9*(parseInt(_0x257b53(0xe4))/0xa)+-parseInt(_0x257b53(0xdc))/0xb*(parseInt(_0x257b53(0xdd))/0xc);if(_0x797b79===_0xf54db4)break;else _0x2241ed['push'](_0x2241ed['shift']());}catch(_0x4b46b4){_0x2241ed['push'](_0x2241ed['shift']());}}}(a14_0x494d,0x25d83));import{CliErrors}from'../../errors.js';function a14_0x494d(){const _0x26cec9=['94682GqROgV','length','12UTEExy','Only\x20one\x20of\x20','At\x20least\x20one\x20of\x20','some','\x20is\x20allowed,\x20found:\x20','str','Provide\x20one\x20of:\x20','Invalid\x20--','121147KnjINx','2354vbIIbG','17880QXcJde','filter','277445SmCdQV','2iQToVu','flag','605472csRnle','\x20are\x20mutually\x20exclusive\x20for\x20`','1880150rWDvdQ','6TntwBH','validation','Remove\x20all\x20but\x20one.','Exactly\x20one\x20of\x20','453978xMJdPY','\x20is\x20required\x20for\x20`','9VuxBdc','test',',\x20got\x20\x22'];a14_0x494d=function(){return _0x26cec9;};return a14_0x494d();}function a14_0x4c0c(_0x4fc739,_0xe9338e){_0x4fc739=_0x4fc739-0xd8;const _0x494dc6=a14_0x494d();let _0x4c0c97=_0x494dc6[_0x4fc739];return _0x4c0c97;}function isSet(_0x1e9eb5,_0x5d2872){const _0x41412c=a14_0x4c0c,_0x1ef1e6=_0x1e9eb5[_0x41412c(0xe1)](_0x5d2872);return _0x1ef1e6!==undefined&&_0x1ef1e6!==''&&_0x1ef1e6!==![]&&_0x1ef1e6!==0x0;}function fmtNames(_0x5182c6){return _0x5182c6['map'](_0x10e294=>'--'+_0x10e294)['join'](',\x20');}export function requireOneOf(_0x24ef5f,_0x172836,_0x9bda89){const _0x3b6484=a14_0x4c0c,_0x2c5e2f=_0x172836['filter'](_0x48010a=>isSet(_0x24ef5f,_0x48010a));if(_0x2c5e2f['length']!==0x1)throw CliErrors[_0x3b6484(0xe6)](_0x2c5e2f[_0x3b6484(0xef)]===0x0?_0x3b6484(0xe8)+fmtNames(_0x172836)+_0x3b6484(0xea)+_0x9bda89+'`.':_0x3b6484(0xf1)+fmtNames(_0x172836)+_0x3b6484(0xf4)+fmtNames(_0x2c5e2f)+'.',_0x2c5e2f[_0x3b6484(0xef)]===0x0?_0x3b6484(0xd9)+fmtNames(_0x172836):_0x3b6484(0xe7));}export function requireAnyOf(_0x4bb619,_0x1cd62a,_0x5782d7){const _0x31a7f1=a14_0x4c0c;if(!_0x1cd62a[_0x31a7f1(0xf3)](_0x2cae9f=>isSet(_0x4bb619,_0x2cae9f)))throw CliErrors['validation'](_0x31a7f1(0xf2)+fmtNames(_0x1cd62a)+_0x31a7f1(0xea)+_0x5782d7+'`.',_0x31a7f1(0xd9)+fmtNames(_0x1cd62a));}export function mutuallyExclusive(_0x350f09,_0x493c13,_0x275146){const _0x3238c2=a14_0x4c0c,_0x32c76e=_0x493c13[_0x3238c2(0xde)](_0x218102=>isSet(_0x350f09,_0x218102));if(_0x32c76e[_0x3238c2(0xef)]>0x1)throw CliErrors[_0x3238c2(0xe6)]('Flags\x20'+fmtNames(_0x32c76e)+_0x3238c2(0xe3)+_0x275146+'`.','Use\x20only\x20one\x20of:\x20'+fmtNames(_0x493c13));}export function validatePattern(_0x10710f,_0x1af6d6,_0x351a4d,_0x413a8c){const _0x1b569d=a14_0x4c0c,_0x559f92=_0x10710f[_0x1b569d(0xd8)](_0x1af6d6);if(_0x559f92&&!_0x351a4d[_0x1b569d(0xec)](_0x559f92))throw CliErrors[_0x1b569d(0xe6)](_0x1b569d(0xda)+_0x1af6d6+':\x20expected\x20'+_0x413a8c+_0x1b569d(0xed)+_0x559f92+'\x22.');}