@lovrabet/lovrabet-cli 2.0.13-beta.8 → 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 -1
  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 +1 -1
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const a0_0x39910e=a0_0x3f54;function a0_0x105e(){const _0x5c4e84=['exitCode','4710pBBzaf','1728360ngygrM','Unexpected\x20error:','flags','corrected','\x0aCancelled.\x0a','args','597VvkOMF','1348382THwVXK','ERR_STREAM_DESTROYED','exit','write','hint','3714HlfKKL','2776936qVeOVC','Hint:\x20','error','original','403553ibtzmW','1065vpoaea','8161821IgplYY','handler','help','length','ERR_USE_AFTER_CLOSE','log','defaultCommand','input','code','stderr','catch','./framework/preparse.js','[preparse]\x20'];a0_0x105e=function(){return _0x5c4e84;};return a0_0x105e();}(function(_0x1b9fa0,_0x4b9aee){const _0x2d178b=a0_0x3f54,_0x582bf0=_0x1b9fa0();while(!![]){try{const _0x599f58=parseInt(_0x2d178b(0xed))/0x1+-parseInt(_0x2d178b(0xe8))/0x2*(-parseInt(_0x2d178b(0xe2))/0x3)+parseInt(_0x2d178b(0xfe))/0x4+parseInt(_0x2d178b(0xee))/0x5*(-parseInt(_0x2d178b(0xfd))/0x6)+-parseInt(_0x2d178b(0xe3))/0x7+parseInt(_0x2d178b(0xe9))/0x8+-parseInt(_0x2d178b(0xef))/0x9;if(_0x599f58===_0x4b9aee)break;else _0x582bf0['push'](_0x582bf0['shift']());}catch(_0x5e624e){_0x582bf0['push'](_0x582bf0['shift']());}}}(a0_0x105e,0x45ba3));import{jsx as a0_0x5d7201}from'react/jsx-runtime';import a0_0x58fd87 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_0x58fd87(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'version':getCliVersionDisplay()});void main()[a0_0x39910e(0xf9)](handleError);async function main(){try{await run();}catch(_0x5a9b11){handleError(_0x5a9b11);}}async function run(){const _0x259bd1=a0_0x39910e;let _0x343fad=cli[_0x259bd1(0xf6)][0x0],_0x5eeaa9=cli['input'][0x1];const _0x31c905=cli[_0x259bd1(0x100)];try{const {correctFlags:_0x3bcad6}=await import(_0x259bd1(0xfa)),_0x9a4c6c=getAllDefinitions()['flatMap'](_0x41b7dd=>_0x41b7dd[_0x259bd1(0x100)]??[]),{flags:_0x1c15fb,corrections:_0x312cce}=_0x3bcad6(_0x31c905,_0x9a4c6c);if(_0x312cce[_0x259bd1(0xf2)]>0x0){for(const _0x250813 of _0x312cce){process[_0x259bd1(0xf8)]['write'](_0x259bd1(0xfb)+_0x250813[_0x259bd1(0xf0)]+':\x20--'+_0x250813[_0x259bd1(0xec)]+'\x20->\x20--'+_0x250813[_0x259bd1(0x101)]+'\x0a');}Object['assign'](_0x31c905,_0x1c15fb);}}catch{}if(!_0x343fad||!isKnownService(_0x343fad)){const {waitUntilExit:_0x290c85}=render(a0_0x5d7201(Help,{}));await _0x290c85();return;}const _0xb585da=getServiceEntry(_0x343fad);if(!_0x5eeaa9){if(_0x31c905[_0x259bd1(0xf1)]){console[_0x259bd1(0xf4)](generateServiceHelp(_0x343fad));return;}if(_0xb585da[_0x259bd1(0xf5)])_0x5eeaa9=_0xb585da[_0x259bd1(0xf5)];else{console['log'](generateServiceHelp(_0x343fad));return;}}const _0x2f709b=findDefinition(_0x343fad,_0x5eeaa9);!_0x2f709b&&(console[_0x259bd1(0xf4)](generateServiceHelp(_0x343fad)),handleError(CliErrors['unknownCommand'](_0x343fad+'\x20'+_0x5eeaa9)));if(_0x31c905[_0x259bd1(0xf1)]){console[_0x259bd1(0xf4)](generateCommandHelp(_0x2f709b));return;}const _0x33ae06=buildConfigFromFlags(_0x31c905);await initGlobalEnvironment(_0x33ae06);const _0x2a16d2=createPipelineEnv(_0x33ae06,_0x31c905);_0x2a16d2[_0x259bd1(0x103)]=cli[_0x259bd1(0xf6)]['slice'](0x2),await runCommand(_0x2f709b,_0x2a16d2);}function handleError(_0x43aa56){const _0x4d972a=a0_0x39910e;if(_0x43aa56 instanceof CliError){_0x43aa56[_0x4d972a(0xf7)]==='cancelled'&&(process['stderr'][_0x4d972a(0xe6)](_0x4d972a(0x102)),process[_0x4d972a(0xe5)](0x0));console['error']('Error:\x20'+_0x43aa56['message']);if(_0x43aa56[_0x4d972a(0xe7)])console[_0x4d972a(0xeb)](_0x4d972a(0xea)+_0x43aa56[_0x4d972a(0xe7)]);process[_0x4d972a(0xe5)](_0x43aa56[_0x4d972a(0xfc)]);}isUserCancellation(_0x43aa56)&&(process[_0x4d972a(0xf8)]['write'](_0x4d972a(0x102)),process['exit'](0x0)),console['error'](_0x4d972a(0xff),_0x43aa56),process['exit'](0x1);}function a0_0x3f54(_0x2ced37,_0x6997a7){_0x2ced37=_0x2ced37-0xe2;const _0x105e56=a0_0x105e();let _0x3f5484=_0x105e56[_0x2ced37];return _0x3f5484;}function isUserCancellation(_0xcb921c){const _0xf6966c=a0_0x39910e;if(!(_0xcb921c instanceof Error))return![];if(_0xcb921c['name']==='ExitPromptError')return!![];if(_0xcb921c[_0xf6966c(0xf7)]===_0xf6966c(0xf3))return!![];if(_0xcb921c[_0xf6966c(0xf7)]===_0xf6966c(0xe4))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_0x2d536a=a1_0x21eb;function a1_0x2402(){const _0x1b5b63=['6admzrZ','lovrabet\x20bff\x20detail\x20--id\x20<scriptId>\x20--appcode\x20<appCode>','3461577uFVtvL','32-character\x20dataset\x20code','GET','Execute\x20BF\x20endpoint\x20function','Returns\x20endpoint\x20functionName/id/description','keyword','list','分页获取数据集列表','Filter\x20dataset\x20data','获取数据集详情','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.','2333305IjgGKV','dataset_data_aggregate','Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset','datasetCode','API\x20doc\x20code,\x20for\x20example\x20dataset_list','Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:5}\x27','/api/endpoint/{appCode}/functions','##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.','Inspect\x20field\x20names\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.','lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27','detail','获取应用下可调用的\x20BF\x20函数列表','需要携带\x20where、orderBy、分页等条件读取业务数据时使用','##\x20Filter\x20dataset\x20data','title','需要先确认当前应用有哪些可执行的\x20BF/ENDPOINT\x20函数,以及收敛可用\x20scriptName\x20时使用','/api/custom/executeSql','custom_sql_execute','where\x20filters\x20before\x20aggregation','Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text','88PDmUlm','{\x22fieldName\x22:\x22value\x22}','POST','List\x20BF\x20endpoint\x20functions','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.','lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>','API\x20doc\x20code\x20not\x20found:\x20','/api/{appCode}/{datasetCode}/create','Create\x20dataset\x20record','dataset_list','Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.','validation','Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.','5040jzPeXZ','code','lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress','条件过滤查询数据','dataset_detail','None','CLI\x20has\x20typed\x20`bff\x20detail`\x20and\x20`bff\x20exec`\x20commands\x20for\x20endpoint\x20scripts.','length','find','Execute\x20custom\x20SQL','Endpoint\x20function\x20name','{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','List\x20available\x20runtime\x20API\x20documentation\x20entries','需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.','read','Get\x20one\x20dataset\x20record','6226vHapcy','string','##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.','summary','8zxfCCK','6362772HQTHAs','Returns\x20one\x20matching\x20business\x20record','需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用','path','List\x20datasets','/api/{appCode}/{datasetCode}/getOne','查询单条数据','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27','api-doc','2672ivVmED','includes','Show\x20runtime\x20API\x20documentation\x20by\x20code','appCode','/api/endpoint/{appCode}/{scriptName}','12291804UIJXwO','##\x20List\x20BF\x20endpoint\x20functions\x0a\x0aDiscover\x20executable\x20endpoint\x20functions.','tableData\x20contains\x20dataset\x20id/code/name','/api/{appCode}/{datasetCode}/filter','926iaZQRF','##\x20Aggregate\x20dataset\x20data','dataset_data_filter','Current\x20app\x20code','/api/dataset/get-dataset-list-by-app-code','scriptName','Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.','toLowerCase','执行自定义\x20SQL','19119cojQos','已经确认目标\x20BF\x20的\x20scriptName,且需要实际调用该\x20ENDPOINT\x20脚本完成业务操作时使用','paging.totalCount\x20gives\x20total\x20rows','whenToUse','需要按数据集\x20code\x20获取字段、表信息或操作定义时使用','创建数据','join','{\x22id\x22:123}','Dataset\x20detail','{\x22aggregate\x22:[{\x22field\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','已经知道记录\x20id,需要按数据集读取单条业务数据时使用','dataset_data_get_one','This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.','str','category','##\x20Dataset\x20detail','已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','dataset','{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','trim','result\x20rows\x20contain\x20aggregate\x20aliases','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','{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}'];a1_0x2402=function(){return _0x1b5b63;};return a1_0x2402();}(function(_0x24f23f,_0x30e92b){const _0x57540c=a1_0x21eb,_0x53c102=_0x24f23f();while(!![]){try{const _0x142fa7=-parseInt(_0x57540c(0x1b7))/0x1*(parseInt(_0x57540c(0x149))/0x2)+-parseInt(_0x57540c(0x152))/0x3*(parseInt(_0x57540c(0x18b))/0x4)+-parseInt(_0x57540c(0x176))/0x5*(parseInt(_0x57540c(0x169))/0x6)+parseInt(_0x57540c(0x16b))/0x7*(parseInt(_0x57540c(0x1ad))/0x8)+parseInt(_0x57540c(0x1bc))/0x9+-parseInt(_0x57540c(0x198))/0xa*(-parseInt(_0x57540c(0x1a9))/0xb)+parseInt(_0x57540c(0x1ae))/0xc;if(_0x142fa7===_0x30e92b)break;else _0x53c102['push'](_0x53c102['shift']());}catch(_0xe3d915){_0x53c102['push'](_0x53c102['shift']());}}}(a1_0x2402,0xcb10f));function a1_0x21eb(_0x9fbf50,_0x1b9ebb){_0x9fbf50=_0x9fbf50-0x148;const _0x2402bd=a1_0x2402();let _0x21ebc6=_0x2402bd[_0x9fbf50];return _0x21ebc6;}import{CliErrors}from'../../errors.js';const CATEGORY_FLAG={'name':'category','type':a1_0x2d536a(0x1aa),'description':a1_0x2d536a(0x178)},KEYWORD_FLAG={'name':'keyword','type':a1_0x2d536a(0x1aa),'description':a1_0x2d536a(0x18a)},DOC_CODE_FLAG={'name':a1_0x2d536a(0x199),'type':a1_0x2d536a(0x1aa),'required':!![],'description':a1_0x2d536a(0x17a)},DOCS=[{'code':a1_0x2d536a(0x194),'category':'dataset','title':a1_0x2d536a(0x1b2),'method':'POST','path':a1_0x2d536a(0x14d),'summary':a1_0x2d536a(0x172),'whenToUse':a1_0x2d536a(0x1a5),'pathParams':[],'queryParams':[],'bodySchema':a1_0x2d536a(0x1a3),'responseHighlights':[a1_0x2d536a(0x1be),a1_0x2d536a(0x154)],'examples':[a1_0x2d536a(0x19a)],'notes':['CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.'],'markdown':['##\x20List\x20datasets','',a1_0x2d536a(0x18f)][a1_0x2d536a(0x158)]('\x0a')},{'code':a1_0x2d536a(0x19c),'category':a1_0x2d536a(0x163),'title':a1_0x2d536a(0x15a),'method':a1_0x2d536a(0x16d),'path':'/api/dataset/getOneByCode?code={datasetCode}','summary':a1_0x2d536a(0x174),'whenToUse':a1_0x2d536a(0x156),'pathParams':[],'queryParams':[{'name':a1_0x2d536a(0x199),'description':a1_0x2d536a(0x16c)}],'bodySchema':a1_0x2d536a(0x19d),'responseHighlights':['fields/properties\x20describe\x20data\x20shape','operations\x20describes\x20runtime\x20APIs'],'examples':[a1_0x2d536a(0x190)],'notes':['If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.'],'markdown':[a1_0x2d536a(0x161),'',a1_0x2d536a(0x17f)][a1_0x2d536a(0x158)]('\x0a')},{'code':a1_0x2d536a(0x14b),'category':a1_0x2d536a(0x163),'title':a1_0x2d536a(0x173),'method':a1_0x2d536a(0x18d),'path':a1_0x2d536a(0x148),'summary':a1_0x2d536a(0x19b),'whenToUse':a1_0x2d536a(0x183),'pathParams':[{'name':a1_0x2d536a(0x1ba),'description':'Current\x20app\x20code'},{'name':a1_0x2d536a(0x179),'description':a1_0x2d536a(0x16c)}],'queryParams':[],'bodySchema':a1_0x2d536a(0x164),'responseHighlights':['tableData\x20contains\x20records','paging\x20contains\x20pagination'],'examples':[a1_0x2d536a(0x17c)],'notes':[a1_0x2d536a(0x195)],'markdown':[a1_0x2d536a(0x184),'','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.'][a1_0x2d536a(0x158)]('\x0a')},{'code':a1_0x2d536a(0x177),'category':a1_0x2d536a(0x163),'title':'Aggregate\x20dataset\x20data','method':a1_0x2d536a(0x18d),'path':'/api/{appCode}/{datasetCode}/aggregate','summary':'聚合查询数据集数据','whenToUse':a1_0x2d536a(0x1b0),'pathParams':[{'name':'appCode','description':a1_0x2d536a(0x14c)},{'name':a1_0x2d536a(0x179),'description':a1_0x2d536a(0x16c)}],'queryParams':[],'bodySchema':a1_0x2d536a(0x15b),'responseHighlights':[a1_0x2d536a(0x166),a1_0x2d536a(0x189)],'examples':[a1_0x2d536a(0x167)],'notes':[a1_0x2d536a(0x14f)],'markdown':[a1_0x2d536a(0x14a),'',a1_0x2d536a(0x175)][a1_0x2d536a(0x158)]('\x0a')},{'code':a1_0x2d536a(0x15d),'category':a1_0x2d536a(0x163),'title':a1_0x2d536a(0x1a8),'method':a1_0x2d536a(0x18d),'path':a1_0x2d536a(0x1b3),'summary':a1_0x2d536a(0x1b4),'whenToUse':a1_0x2d536a(0x15c),'pathParams':[{'name':a1_0x2d536a(0x1ba),'description':a1_0x2d536a(0x14c)},{'name':a1_0x2d536a(0x179),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':a1_0x2d536a(0x159),'responseHighlights':[a1_0x2d536a(0x1af)],'examples':[a1_0x2d536a(0x1b5)],'notes':[a1_0x2d536a(0x197)],'markdown':a1_0x2d536a(0x17e)},{'code':'dataset_data_create','category':a1_0x2d536a(0x163),'title':a1_0x2d536a(0x193),'method':'POST','path':a1_0x2d536a(0x192),'summary':a1_0x2d536a(0x157),'whenToUse':'需要向指定数据集新增一条业务数据时使用','pathParams':[{'name':a1_0x2d536a(0x1ba),'description':a1_0x2d536a(0x14c)},{'name':'datasetCode','description':a1_0x2d536a(0x16c)}],'queryParams':[],'bodySchema':a1_0x2d536a(0x18c),'responseHighlights':[a1_0x2d536a(0x17b)],'examples':['lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27'],'notes':[a1_0x2d536a(0x15e)],'markdown':a1_0x2d536a(0x1a6)},{'code':'bf_function_list','category':'bf','title':a1_0x2d536a(0x18e),'method':a1_0x2d536a(0x16d),'path':a1_0x2d536a(0x17d),'summary':a1_0x2d536a(0x182),'whenToUse':a1_0x2d536a(0x186),'pathParams':[{'name':a1_0x2d536a(0x1ba),'description':a1_0x2d536a(0x14c)}],'queryParams':[],'bodySchema':'None','responseHighlights':[a1_0x2d536a(0x16f)],'examples':[a1_0x2d536a(0x16a)],'notes':[a1_0x2d536a(0x19e)],'markdown':a1_0x2d536a(0x1bd)},{'code':'bf_execute','category':'bf','title':a1_0x2d536a(0x16e),'method':'POST','path':a1_0x2d536a(0x1bb),'summary':'执行指定\x20BF\x20函数','whenToUse':a1_0x2d536a(0x153),'pathParams':[{'name':a1_0x2d536a(0x1ba),'description':'Current\x20app\x20code'},{'name':a1_0x2d536a(0x14e),'description':a1_0x2d536a(0x1a2)}],'queryParams':[],'bodySchema':'{\x22param\x22:\x22value\x22}','responseHighlights':['Returns\x20script\x20business\x20payload'],'examples':['lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27'],'notes':['Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.'],'markdown':a1_0x2d536a(0x1ab)},{'code':a1_0x2d536a(0x188),'category':'custom_sql','title':a1_0x2d536a(0x1a1),'method':a1_0x2d536a(0x18d),'path':a1_0x2d536a(0x187),'summary':a1_0x2d536a(0x151),'whenToUse':a1_0x2d536a(0x162),'pathParams':[],'queryParams':[],'bodySchema':a1_0x2d536a(0x168),'responseHighlights':['Returns\x20SQL\x20execution\x20payload'],'examples':[a1_0x2d536a(0x180)],'notes':['Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.'],'markdown':'##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.'}];function entrySummary(_0x220fb5){const _0x4aa028=a1_0x2d536a;return{'code':_0x220fb5[_0x4aa028(0x199)],'category':_0x220fb5[_0x4aa028(0x160)],'method':_0x220fb5['method'],'path':_0x220fb5[_0x4aa028(0x1b1)],'summary':_0x220fb5[_0x4aa028(0x1ac)],'whenToUse':_0x220fb5[_0x4aa028(0x155)]};}export function listApiDocEntries(_0x1381f0={}){const _0x1b3a8d=a1_0x2d536a,_0x50bd85=String(_0x1381f0[_0x1b3a8d(0x160)]||'')['trim'](),_0x610cc8=String(_0x1381f0[_0x1b3a8d(0x170)]||'')[_0x1b3a8d(0x165)]()[_0x1b3a8d(0x150)]();return DOCS['filter'](_0x453826=>{const _0x39391b=_0x1b3a8d;if(_0x50bd85&&_0x453826[_0x39391b(0x160)]!==_0x50bd85)return![];if(!_0x610cc8)return!![];return[_0x453826[_0x39391b(0x199)],_0x453826[_0x39391b(0x160)],_0x453826['method'],_0x453826[_0x39391b(0x1b1)],_0x453826[_0x39391b(0x1ac)],_0x453826[_0x39391b(0x155)],_0x453826[_0x39391b(0x185)]][_0x39391b(0x158)]('\x20')[_0x39391b(0x150)]()[_0x39391b(0x1b8)](_0x610cc8);})['map'](entrySummary);}export function getApiDocDetail(_0xd44e6c){const _0x21974f=a1_0x2d536a,_0x1e3d1a=DOCS[_0x21974f(0x1a0)](_0x57ab98=>_0x57ab98[_0x21974f(0x199)]===_0xd44e6c);if(!_0x1e3d1a)throw CliErrors[_0x21974f(0x196)](_0x21974f(0x191)+_0xd44e6c);return{..._0x1e3d1a};}const apiDocList={'service':a1_0x2d536a(0x1b6),'command':a1_0x2d536a(0x171),'description':a1_0x2d536a(0x1a4),'risk':a1_0x2d536a(0x1a7),'requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0x6ad7c9){const _0x5dc7b8=a1_0x2d536a,_0x5c1c87=listApiDocEntries({'category':_0x6ad7c9[_0x5dc7b8(0x15f)](_0x5dc7b8(0x160)),'keyword':_0x6ad7c9[_0x5dc7b8(0x15f)]('keyword')});return{'ok':!![],'data':{'total':_0x5c1c87[_0x5dc7b8(0x19f)],'items':_0x5c1c87}};}},apiDocDetail={'service':'api-doc','command':a1_0x2d536a(0x181),'description':a1_0x2d536a(0x1b9),'risk':a1_0x2d536a(0x1a7),'requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0x46e806){const _0x564c7c=a1_0x2d536a;return{'ok':!![],'data':getApiDocDetail(_0x46e806[_0x564c7c(0x15f)](_0x564c7c(0x199)))};}};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(_0x188e55,_0x1c21e4){const _0x45f0a5=a2_0x1659,_0x583b80=_0x188e55();while(!![]){try{const _0x9c05af=-parseInt(_0x45f0a5(0x8e))/0x1*(parseInt(_0x45f0a5(0x91))/0x2)+-parseInt(_0x45f0a5(0x89))/0x3+-parseInt(_0x45f0a5(0x9c))/0x4*(parseInt(_0x45f0a5(0x94))/0x5)+-parseInt(_0x45f0a5(0x95))/0x6*(parseInt(_0x45f0a5(0x96))/0x7)+-parseInt(_0x45f0a5(0x92))/0x8*(parseInt(_0x45f0a5(0x8d))/0x9)+parseInt(_0x45f0a5(0x90))/0xa*(-parseInt(_0x45f0a5(0x8a))/0xb)+parseInt(_0x45f0a5(0x9a))/0xc;if(_0x9c05af===_0x1c21e4)break;else _0x583b80['push'](_0x583b80['shift']());}catch(_0x2a9335){_0x583b80['push'](_0x583b80['shift']());}}}(a2_0x235c,0x931b1));import{createHash}from'node:crypto';function a2_0x1659(_0x8e1c5b,_0x1b27fc){_0x8e1c5b=_0x8e1c5b-0x7d;const _0x235cd1=a2_0x235c();let _0x16594e=_0x235cd1[_0x8e1c5b];return _0x16594e;}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(_0x3509b0){const _0xc8a7c9=a2_0x1659,_0xf1583a=_0x3509b0[_0xc8a7c9(0x8b)](),_0x35009e=_0xf1583a['slice'](-0x6)||_0xc8a7c9(0x81),_0x7864c4=createHash(_0xc8a7c9(0x84))[_0xc8a7c9(0x8c)](_0xf1583a)[_0xc8a7c9(0x88)](_0xc8a7c9(0x8f))[_0xc8a7c9(0x97)](0x0,0xc);return _0xc8a7c9(0x99)+_0x35009e+'_'+_0x7864c4;}export function getAppCacheFilePath(_0x55a7db,_0xbd7248){const _0xbcf268=a2_0x1659;return resolve(homedir(),PRODUCT_CONFIG[_0xbcf268(0x98)],_0xbcf268(0x9f),_0x55a7db,fingerprintAccessKey(_0xbd7248),_0xbcf268(0x93));}export function readCachedAppList(_0x3afe56,_0x337c88){const _0x4bac5e=a2_0x1659;if(!_0x337c88?.['trim']())return null;const _0x345966=getAppCacheFilePath(_0x3afe56,_0x337c88);if(!existsSync(_0x345966))return null;try{const _0x2d8f11=readFileSync(_0x345966,_0x4bac5e(0x9b));if(!_0x2d8f11['trim']())return null;const _0x391f21=JSON[_0x4bac5e(0x87)](_0x2d8f11);if(!Array['isArray'](_0x391f21[_0x4bac5e(0x7f)]))return null;return _0x391f21;}catch{return null;}}export function writeCachedAppList(_0x358700,_0x5b9fb7,_0x7209b){const _0x3d01a3=a2_0x1659,_0x28f051=getAppCacheFilePath(_0x358700,_0x5b9fb7),_0x2f7ace=dirname(_0x28f051);!existsSync(_0x2f7ace)&&mkdirSync(_0x2f7ace,{'recursive':!![]});const _0x4e8b33=_0x28f051+_0x3d01a3(0x80);try{writeFileSync(_0x4e8b33,JSON[_0x3d01a3(0x86)](_0x7209b,null,0x2)+'\x0a',{'encoding':_0x3d01a3(0x9b),'mode':0x180});try{renameSync(_0x4e8b33,_0x28f051);}catch(_0x688b26){if(_0x688b26[_0x3d01a3(0x9d)]===_0x3d01a3(0x83)||_0x688b26['code']===_0x3d01a3(0x85)||_0x688b26[_0x3d01a3(0x9d)]===_0x3d01a3(0x9e)){writeFileSync(_0x28f051,JSON[_0x3d01a3(0x86)](_0x7209b,null,0x2)+'\x0a',{'encoding':_0x3d01a3(0x9b)});try{unlinkSync(_0x4e8b33);}catch{}}else throw _0x688b26;}}catch(_0xafd553){try{unlinkSync(_0x4e8b33);}catch{}throw _0xafd553;}return _0x28f051;}function a2_0x235c(){const _0x5630f5=['update','3987ztfHua','691mAArtK','hex','218100ZXkmtg','1788jHoOhl','5400EXIhNh','my-apps.json','8705aDDjpQ','1063068QVbWUK','7upXACe','slice','homeDirName','ak_','44848680nbTGBi','utf8','832wHmEFZ','code','EACCES','cache','find','appCode','items','.tmp','unknown','appName','EPERM','sha256','EXDEV','stringify','parse','digest','3465960NftoWy','264KhcyOp','trim'];a2_0x235c=function(){return _0x5630f5;};return a2_0x235c();}export function resolveCachedAppCode(_0x365a14,_0x38862f,_0x4150ea){const _0x4504e6=a2_0x1659;if(!_0x365a14)return undefined;const _0x1ce6e2=readCachedAppList(_0x38862f,_0x4150ea),_0x23a419=_0x1ce6e2?.[_0x4504e6(0x7f)][_0x4504e6(0x7d)](_0x23e431=>_0x23e431[_0x4504e6(0x82)]===_0x365a14);return _0x23a419?.[_0x4504e6(0x7e)]?.[_0x4504e6(0x8b)]()||undefined;}
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_0x39f850=a3_0x227a;(function(_0x247654,_0x5e7c21){const _0x202258=a3_0x227a,_0xe01ae8=_0x247654();while(!![]){try{const _0x388014=parseInt(_0x202258(0x93))/0x1*(-parseInt(_0x202258(0xba))/0x2)+-parseInt(_0x202258(0xa8))/0x3+parseInt(_0x202258(0xc3))/0x4+-parseInt(_0x202258(0xcb))/0x5+-parseInt(_0x202258(0x9d))/0x6+parseInt(_0x202258(0x98))/0x7*(parseInt(_0x202258(0xdd))/0x8)+parseInt(_0x202258(0xdb))/0x9*(parseInt(_0x202258(0x92))/0xa);if(_0x388014===_0x5e7c21)break;else _0xe01ae8['push'](_0xe01ae8['shift']());}catch(_0x540ed9){_0xe01ae8['push'](_0xe01ae8['shift']());}}}(a3_0x18d9,0xf0031));import{CliErrors}from'../../errors.js';import{PRODUCT_CONFIG}from'../../constant/product.js';function a3_0x227a(_0x4a6e3e,_0x1bfa9f){_0x4a6e3e=_0x4a6e3e-0x8e;const _0x18d9f7=a3_0x18d9();let _0x227a00=_0x18d9f7[_0x4a6e3e];return _0x227a00;}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';function a3_0x18d9(){const _0xab82e6=['items','\x20config\x20file','app','Filter\x20by\x20environment\x20(default:\x20current\x20env)','1304382XIjqTd','validation','envName','map','defaultApp','local','Read\x20app\x20list\x20from\x20local\x20cache\x20only','str','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','\x22\x20not\x20found.','newConfigFileName','name','filter','write','project-default','fetchedAt','init','boolean','9062rCBKke','langs','appOwnerName','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','../../commands/app/remote-source.js','../../commands/app/cache.js','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','trim','env','1067100lrRHAd','Usage:\x20','Use\x20`','isCurrent','Default\x20app\x20candidate\x20set\x20to\x20\x22','globalPath','args','appName','4728240GpPjOb','length','Initialize\x20','No\x20apps\x20found\x20on\x20the\x20platform.','find','mergedCli','global','appPublishStatus','\x20app(s)\x20for\x20env=\x22','join','cachePath','i18nInfo','Target\x20environment\x20(default:\x20current\x20env)','Refreshed\x20app\x20cache\x20with\x20','use','Loaded\x20','10134837aekyRh','enableI18n','5199272qjqMfR','push','isArray','Use\x20global\x20config\x20scope','bool','nonInteractive','../../context.js','list','\x20app\x20use\x20<name>\x20[--global]','Missing\x20app\x20name.','.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.','20ahcTDP','51uHVcGD','config','raw','no-cache','Remote\x20app\x20name\x20to\x20activate','21epFCVM','entries','No\x20cached\x20apps\x20found.','accessKey','production','11244456oCzasw','string','source','appcode','cache','appCode','Available\x20remote\x20apps:\x20'];a3_0x18d9=function(){return _0xab82e6;};return a3_0x18d9();}const GLOBAL_FLAG={'name':a3_0x39f850(0xd1),'type':a3_0x39f850(0xb9),'description':a3_0x39f850(0xe0),'default':![]};function collectFlags(_0x2ce0a2,_0x16adeb){const _0xda805=a3_0x39f850,_0x5a69d4={};for(const _0x353eb0 of _0x16adeb){const _0x4f7424=_0x353eb0['type']==='boolean'?_0x2ce0a2['bool'](_0x353eb0[_0xda805(0xb3)]):_0x2ce0a2[_0xda805(0xaf)](_0x353eb0[_0xda805(0xb3)]);if(_0x4f7424!==''&&_0x4f7424!==![])_0x5a69d4[_0x353eb0[_0xda805(0xb3)]]=_0x4f7424;}if(_0x2ce0a2[_0xda805(0xe2)])_0x5a69d4[_0xda805(0xe2)]=!![];return _0x5a69d4;}function normalizeLanguages(_0x126211){const _0x470b3d=a3_0x39f850;if(!Array[_0x470b3d(0xdf)](_0x126211))return[];return _0x126211[_0x470b3d(0xb4)](_0x5425c2=>typeof _0x5425c2===_0x470b3d(0x9e))[_0x470b3d(0xab)](_0x3fbff2=>_0x3fbff2[_0x470b3d(0xc1)]())['filter'](Boolean);}function buildRemoteAppI18nFields(_0x38e443){const _0x55450c=a3_0x39f850,_0x1c9f11=normalizeLanguages(_0x38e443[_0x55450c(0xd6)]?.[_0x55450c(0xbb)]);return{'enableI18n':typeof _0x38e443[_0x55450c(0xdc)]===_0x55450c(0xb9)?_0x38e443[_0x55450c(0xdc)]:null,'languages':_0x1c9f11,'i18nInfo':_0x38e443[_0x55450c(0xd6)]?{..._0x38e443[_0x55450c(0xd6)],'langs':_0x1c9f11['length']?_0x1c9f11:null}:null};}const initDef={'service':'app','command':a3_0x39f850(0xb8),'description':a3_0x39f850(0xcd)+PRODUCT_CONFIG[a3_0x39f850(0xb2)]+a3_0x39f850(0xa5),'risk':a3_0x39f850(0xb5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x82c47e){return await runInit(collectFlags(_0x82c47e,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':'app','command':a3_0x39f850(0x8e),'description':a3_0x39f850(0xc0),'risk':'read','requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a3_0x39f850(0xc2),'type':a3_0x39f850(0x9e),'description':a3_0x39f850(0xa7),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x39f850(0xad),'type':a3_0x39f850(0xb9),'description':a3_0x39f850(0xae),'default':![]},{'name':a3_0x39f850(0x96),'type':a3_0x39f850(0xb9),'description':a3_0x39f850(0xbd),'default':![]}],async 'execute'(_0x573242){const _0x4513d1=a3_0x39f850,_0x4dc357=_0x573242[_0x4513d1(0xaf)]('env')||_0x573242['envName']||getEnv()||_0x4513d1(0x9c),_0x1c8381=_0x573242[_0x4513d1(0xe1)](_0x4513d1(0xad)),_0x13276e=_0x573242[_0x4513d1(0xe1)]('no-cache'),{readRawConfigWithLayers:_0x4267d7,resolveDefaultAppSource:_0x3c7764,getLocalAppAliases:_0x1db16f}=await import(_0x4513d1(0xe3)),{getRemoteAppList:_0x3e8450}=await import(_0x4513d1(0xbe)),{config:_0x15a7c7,layers:_0x5434ef}=_0x4267d7(),_0x24591d=_0x3c7764(_0x5434ef),{defaultApp:_0x3e50ef}=_0x15a7c7,_0x330654=await _0x3e8450({'env':_0x4dc357,'accessKey':_0x573242[_0x4513d1(0x9b)],'localOnly':_0x1c8381,'noCache':_0x13276e}),_0x5f04bb=_0x330654[_0x4513d1(0xa4)][_0x4513d1(0xab)](_0x52ec24=>{const _0x5a9f59=_0x4513d1;return{'name':_0x52ec24['appName'],'appcode':_0x52ec24[_0x5a9f59(0xa2)],'named':!![],'definedIn':'remote','isDefault':_0x52ec24['appName']===_0x3e50ef,...buildAppProfileListFields(_0x4dc357),...buildRemoteAppI18nFields(_0x52ec24),'source':_0x330654[_0x5a9f59(0x9f)],'owner':_0x52ec24[_0x5a9f59(0xbc)]??null,'status':_0x52ec24[_0x5a9f59(0xd2)]??null,'cachedAt':_0x330654[_0x5a9f59(0xb7)]};}),_0x2e66c1=_0x1db16f(_0x15a7c7);let _0x266973=0x0;for(const [_0x30a0ff,_0x31373b]of Object[_0x4513d1(0x99)](_0x2e66c1)){const _0x24381f=typeof _0x31373b['appcode']==='string'?_0x31373b[_0x4513d1(0xa0)]['trim']():'';if(!_0x24381f)continue;_0x266973+=0x1,_0x5f04bb[_0x4513d1(0xde)]({'name':_0x30a0ff,'appcode':_0x24381f,'named':!![],'definedIn':'local','isDefault':_0x30a0ff===_0x3e50ef,...buildAppProfileListFields(_0x4dc357),'source':_0x4513d1(0x94),'owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x5f04bb,_0x573242[_0x4513d1(0xd0)]);if(_0x5f04bb[_0x4513d1(0xcc)]===0x0)return{'ok':!![],'data':[],'message':_0x330654[_0x4513d1(0x9f)]===_0x4513d1(0xa1)?_0x4513d1(0x9a):_0x4513d1(0xce)};const _0x100240=_0x5f04bb[_0x4513d1(0xcf)](_0x4b080e=>_0x4b080e[_0x4513d1(0xc6)]===!![]),_0x13db40=_0x3e50ef??_0x100240?.[_0x4513d1(0xb3)]??null,_0x5da9ad={'env':_0x4dc357,'source':_0x330654['source'],'fetchedAt':_0x330654[_0x4513d1(0xb7)],'cachePath':_0x330654['cachePath'],'globalPath':_0x5434ef[_0x4513d1(0xc8)]??null,'projectPath':_0x5434ef['projectPath']??null,'defaultApp':_0x13db40,'defaultAppSource':_0x3e50ef!=null?_0x24591d:null,'localAliasCount':_0x266973};return{'ok':!![],'data':{'items':_0x5f04bb,'meta':_0x5da9ad}};}},pullDef={'service':'app','command':'pull','description':a3_0x39f850(0xb0),'risk':a3_0x39f850(0xb5),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a3_0x39f850(0xc2),'type':a3_0x39f850(0x9e),'description':a3_0x39f850(0xd7),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x39f850(0xad),'type':a3_0x39f850(0xb9),'description':'Read\x20from\x20local\x20cache\x20only','default':![]},{'name':a3_0x39f850(0x96),'type':a3_0x39f850(0xb9),'description':a3_0x39f850(0xbd),'default':![]}],async 'execute'(_0x527226){const _0x85f125=a3_0x39f850,_0x54a8d6=_0x527226[_0x85f125(0xaf)](_0x85f125(0xc2))||_0x527226[_0x85f125(0xaa)]||getEnv()||_0x85f125(0x9c),_0x45497d=_0x527226['bool'](_0x85f125(0xad)),_0x33b44c=_0x527226['bool'](_0x85f125(0x96)),{getRemoteAppList:_0x435b0f}=await import(_0x85f125(0xbe)),_0x461ab1=await _0x435b0f({'env':_0x54a8d6,'accessKey':_0x527226[_0x85f125(0x9b)],'localOnly':_0x45497d,'noCache':_0x33b44c});return{'ok':!![],'data':{'total':_0x461ab1[_0x85f125(0xa4)][_0x85f125(0xcc)],'env':_0x54a8d6,'source':_0x461ab1[_0x85f125(0x9f)],'fetchedAt':_0x461ab1['fetchedAt'],'cachePath':_0x461ab1[_0x85f125(0xd5)]},'message':_0x461ab1[_0x85f125(0x9f)]===_0x85f125(0xa1)?_0x85f125(0xda)+_0x461ab1['items']['length']+'\x20cached\x20app(s)\x20for\x20env=\x22'+_0x54a8d6+'\x22.':_0x85f125(0xd8)+_0x461ab1[_0x85f125(0xa4)][_0x85f125(0xcc)]+_0x85f125(0xd3)+_0x54a8d6+'\x22.'};}},useDef={'service':'app','command':a3_0x39f850(0xd9),'description':'Set\x20the\x20fallback\x20app\x20candidate','risk':a3_0x39f850(0xb5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a3_0x39f850(0xb3),'description':a3_0x39f850(0x97),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x30912a){const _0x37b424=a3_0x39f850;if(!_0x30912a[_0x37b424(0xc9)][0x0])throw CliErrors[_0x37b424(0xa9)]('Missing\x20app\x20name.',_0x37b424(0xc4)+CLI_BIN_NAME+_0x37b424(0x8f));},async 'execute'(_0x7b6884){const _0x347fa2=a3_0x39f850,_0x39fe20=_0x7b6884[_0x347fa2(0xc9)][0x0];if(!_0x39fe20)throw CliErrors[_0x347fa2(0xa9)](_0x347fa2(0x90),_0x347fa2(0xc4)+CLI_BIN_NAME+_0x347fa2(0x8f));const {buildConfigFromFlags:_0x2cab6f,resolveLocalAppAliasCode:_0x31d186}=await import('../../context.js'),{readCachedAppList:_0x510589}=await import(_0x347fa2(0xbf)),_0x3302ba=_0x7b6884[_0x347fa2(0xaf)](_0x347fa2(0xc2)),_0x3a8853=_0x2cab6f(_0x3302ba?{'env':_0x3302ba}:{}),_0x10cc69=_0x510589(_0x3a8853[_0x347fa2(0xc2)],_0x3a8853[_0x347fa2(0x9b)]),_0x1d03d2=_0x10cc69?.['items'][_0x347fa2(0xcf)](_0x89ff8a=>_0x89ff8a['appName']===_0x39fe20),_0x19c412=_0x31d186(_0x3a8853[_0x347fa2(0x95)]??{},_0x39fe20);if(!_0x1d03d2&&!_0x19c412&&_0x3a8853['defaultApp']!==_0x39fe20){const _0x585bc0=[..._0x10cc69?.[_0x347fa2(0xa4)]['map'](_0x5e7dab=>_0x5e7dab[_0x347fa2(0xca)])??[]],_0x3b3445=_0x585bc0[_0x347fa2(0xcc)]===0x0?_0x347fa2(0xc5)+CLI_BIN_NAME+'\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.'+_0x39fe20+'.appcode\x20to\x20.lovrabet.json.':_0x347fa2(0xa3)+Array['from'](new Set(_0x585bc0))[_0x347fa2(0xd4)](',\x20')+_0x347fa2(0x91);throw CliErrors['validation']('App\x20\x22'+_0x39fe20+_0x347fa2(0xb1),_0x3b3445);}const _0xb2ca35=_0x7b6884[_0x347fa2(0xe1)]('global');let _0x4199c7;if(_0xb2ca35)_0x4199c7={'global':!![]};else{const {isInProject:_0x44b6f7}=await import(_0x347fa2(0xe3)),_0x5ba2ad=_0x44b6f7();_0x4199c7=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0x347fa2(0xb6),'inProject':_0x5ba2ad}));}const _0x4ce52f=readConfig(_0x4199c7);return _0x4ce52f[_0x347fa2(0xac)]=_0x39fe20,writeConfig(_0x4ce52f,_0x4199c7),{'ok':!![],'message':_0x347fa2(0xc7)+_0x39fe20+'\x22'+scopeLabel(_0x4199c7)+'.'};}},importDef={'service':a3_0x39f850(0xa6),'command':'import','description':'Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','risk':a3_0x39f850(0xb5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x5a87f8){return await runInitImport(collectFlags(_0x5a87f8,initImportFlagDefs)),{'ok':!![]};}};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(_0x33db3c,_0x436de8){const _0xe9ebe1=a4_0xea90,_0x5688a4=_0x33db3c();while(!![]){try{const _0x94f27=parseInt(_0xe9ebe1(0x1db))/0x1*(-parseInt(_0xe9ebe1(0x1cd))/0x2)+-parseInt(_0xe9ebe1(0x1cc))/0x3*(-parseInt(_0xe9ebe1(0x1cf))/0x4)+-parseInt(_0xe9ebe1(0x1d5))/0x5*(parseInt(_0xe9ebe1(0x1d1))/0x6)+-parseInt(_0xe9ebe1(0x1d6))/0x7*(parseInt(_0xe9ebe1(0x1cb))/0x8)+parseInt(_0xe9ebe1(0x1ce))/0x9+-parseInt(_0xe9ebe1(0x1d3))/0xa*(-parseInt(_0xe9ebe1(0x1d0))/0xb)+-parseInt(_0xe9ebe1(0x1d4))/0xc;if(_0x94f27===_0x436de8)break;else _0x5688a4['push'](_0x5688a4['shift']());}catch(_0x5a09d9){_0x5688a4['push'](_0x5688a4['shift']());}}}(a4_0xe644,0x6363f));import{fileURLToPath}from'url';function a4_0xea90(_0x2c839e,_0x2a9b37){_0x2c839e=_0x2c839e-0x1cb;const _0xe644d8=a4_0xe644();let _0xea9038=_0xe644d8[_0x2c839e];return _0xea9038;}import{dirname,join}from'path';import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0x2b188e=a4_0xea90,_0x58aaed=join(__dirname,_0x2b188e(0x1de)),_0x13f03=readFileSync(_0x58aaed,_0x2b188e(0x1da));return JSON[_0x2b188e(0x1d8)](_0x13f03);}function a4_0xe644(){const _0x4a2c69=['Mock\x20API\x20error:\x20','utf-8','65540glyVyV','data','errorMsg','../../../mock/app-list.json','8jTjIMt','7401GOJhbS','4upiIkR','6358095FeWolR','1028UrgOFl','35365FSKGeB','6TZBlUo','errorCode','1370CpJFXC','4144704FqaSCQ','1876870XkaJSG','3653860yehXJj','tableData','parse'];a4_0xe644=function(){return _0x4a2c69;};return a4_0xe644();}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x2d5531=a4_0xea90,_0x3bf0c0=getMockAppList();if(!_0x3bf0c0['success'])throw new Error(_0x2d5531(0x1d9)+_0x3bf0c0[_0x2d5531(0x1dd)]+'\x20('+_0x3bf0c0[_0x2d5531(0x1d2)]+')');return _0x3bf0c0[_0x2d5531(0x1dc)][_0x2d5531(0x1d7)];}
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(_0x4d5783,_0x3ba9a7){const _0x5b6eb1=a5_0x639b,_0xa1a347=_0x4d5783();while(!![]){try{const _0x256377=parseInt(_0x5b6eb1(0x77))/0x1+parseInt(_0x5b6eb1(0x6c))/0x2+parseInt(_0x5b6eb1(0x73))/0x3*(parseInt(_0x5b6eb1(0x6b))/0x4)+parseInt(_0x5b6eb1(0x74))/0x5*(-parseInt(_0x5b6eb1(0x70))/0x6)+-parseInt(_0x5b6eb1(0x75))/0x7+-parseInt(_0x5b6eb1(0x76))/0x8+parseInt(_0x5b6eb1(0x72))/0x9*(parseInt(_0x5b6eb1(0x78))/0xa);if(_0x256377===_0x3ba9a7)break;else _0xa1a347['push'](_0xa1a347['shift']());}catch(_0x49b42f){_0xa1a347['push'](_0xa1a347['shift']());}}}(a5_0x3686,0x28add));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_0x3686(){const _0x549136=['items','toLowerCase','trim','316fFMXEt','481218RPxOsc','fetchedAt','toISOString','remote','2574GYFTUG','mock','459uGHYUA','5619UCNDDn','2425wMExFu','886942ZQCXPN','1274376jpVQJW','40318pEWOAf','45450hEdICE','APP_LIST_SOURCE','cache'];a5_0x3686=function(){return _0x549136;};return a5_0x3686();}import{productEnv}from'../../constant/product.js';function a5_0x639b(_0x1b14d0,_0xf1047){_0x1b14d0=_0x1b14d0-0x6a;const _0x368667=a5_0x3686();let _0x639b7b=_0x368667[_0x1b14d0];return _0x639b7b;}export function shouldUseMockRemoteApps(){const _0x4aa3c8=a5_0x639b,_0x49a417=(productEnv(_0x4aa3c8(0x79))||'')['trim']()[_0x4aa3c8(0x7c)]();return _0x49a417===_0x4aa3c8(0x71);}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x49065b){const _0x308c5f=a5_0x639b,{env:_0x507299,accessKey:_0x254fad,localOnly:localOnly=![],noCache:noCache=![]}=_0x49065b,_0x53bd93=readCachedAppList(_0x507299,_0x254fad),_0x11e22a=_0x254fad?.[_0x308c5f(0x6a)]()?getAppCacheFilePath(_0x507299,_0x254fad):null;if(localOnly)return{'items':_0x53bd93?.[_0x308c5f(0x7b)]??[],'source':'cache','fetchedAt':_0x53bd93?.[_0x308c5f(0x6d)]??null,'cachePath':_0x11e22a};try{const _0x1167af=await getRemoteAppItems(),_0x1246d5=shouldUseMockRemoteApps()?_0x308c5f(0x71):_0x308c5f(0x6f),_0x2dc4cc=new Date()[_0x308c5f(0x6e)](),_0x3ce05e=_0x254fad?.['trim']()?writeCachedAppList(_0x507299,_0x254fad,{'env':_0x507299,'fetchedAt':_0x2dc4cc,'source':_0x1246d5,'items':_0x1167af}):null;return{'items':_0x1167af,'source':_0x1246d5,'fetchedAt':_0x2dc4cc,'cachePath':_0x3ce05e};}catch(_0x47b703){if(!noCache&&_0x53bd93)return{'items':_0x53bd93['items'],'source':_0x308c5f(0x7a),'fetchedAt':_0x53bd93[_0x308c5f(0x6d)],'cachePath':_0x11e22a};throw _0x47b703;}}
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(_0x490fcb,_0x5771e2){const _0x28ad92=a6_0x26cd,_0x3758a9=_0x490fcb();while(!![]){try{const _0x353e73=-parseInt(_0x28ad92(0x177))/0x1+-parseInt(_0x28ad92(0x17e))/0x2+parseInt(_0x28ad92(0x16f))/0x3+parseInt(_0x28ad92(0x172))/0x4+-parseInt(_0x28ad92(0x17a))/0x5+-parseInt(_0x28ad92(0x17d))/0x6+parseInt(_0x28ad92(0x179))/0x7;if(_0x353e73===_0x5771e2)break;else _0x3758a9['push'](_0x3758a9['shift']());}catch(_0x446a02){_0x3758a9['push'](_0x3758a9['shift']());}}}(a6_0x1ce8,0x2b82d));import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';function a6_0x1ce8(){const _0x4ce6f8=['1150842KjqQTg','783275MFyIBN','defaultApp','appcode','773208JIVevK','2832zPKlHg','appCode','find','658020lYAZpG','isCurrent','trim','798360YHXuhy','named','name','currentApp','global','118176LVZaNJ','local'];a6_0x1ce8=function(){return _0x4ce6f8;};return a6_0x1ce8();}function a6_0x26cd(_0x1ee01b,_0x4e8152){_0x1ee01b=_0x1ee01b-0x16f;const _0x1ce86d=a6_0x1ce8();let _0x26cdde=_0x1ce86d[_0x1ee01b];return _0x26cdde;}export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x475bf5,_0xff57f1){const _0x1e7ad1=a6_0x26cd;if(!_0xff57f1)return;const _0x374354=!!(_0xff57f1[_0x1e7ad1(0x175)]??_0xff57f1['defaultApp']);for(const _0xacd97f of _0x475bf5){_0xacd97f[_0x1e7ad1(0x170)]=![];}const _0x34a8e7=_0xff57f1[_0x1e7ad1(0x17f)]!=null?String(_0xff57f1['appCode'])[_0x1e7ad1(0x171)]():'';if(_0x374354){const _0xdf53c0=_0xff57f1[_0x1e7ad1(0x175)]??_0xff57f1[_0x1e7ad1(0x17b)];if(_0xdf53c0){const _0x112d41=_0x475bf5[_0x1e7ad1(0x180)](_0x5a0bd8=>_0x5a0bd8[_0x1e7ad1(0x173)]===!![]&&_0x5a0bd8[_0x1e7ad1(0x174)]===_0xdf53c0&&_0x5a0bd8['definedIn']===_0x1e7ad1(0x178)),_0x3e558d=_0x112d41??_0x475bf5[_0x1e7ad1(0x180)](_0x586f81=>_0x586f81[_0x1e7ad1(0x173)]===!![]&&_0x586f81['name']===_0xdf53c0);_0x3e558d&&(_0x3e558d['isCurrent']=!![]);}return;}if(!_0x34a8e7)return;for(const _0x29eb5d of _0x475bf5){String(_0x29eb5d[_0x1e7ad1(0x17c)]??'')['trim']()===_0x34a8e7&&(_0x29eb5d[_0x1e7ad1(0x170)]=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x21a14a){const _0x26706d=a6_0x26cd;return formatScopeLabel(_0x21a14a['global']?_0x26706d(0x176):'project');}
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
- function a7_0x2f48(_0xcd302d,_0x417f9d){_0xcd302d=_0xcd302d-0x14e;const _0x1d2023=a7_0x1d20();let _0x2f48b6=_0x1d2023[_0xcd302d];return _0x2f48b6;}const a7_0x2bb6c9=a7_0x2f48;(function(_0x4510cd,_0x447ba3){const _0x17f2d0=a7_0x2f48,_0x2fa23a=_0x4510cd();while(!![]){try{const _0x5d4e88=parseInt(_0x17f2d0(0x18b))/0x1*(-parseInt(_0x17f2d0(0x18d))/0x2)+-parseInt(_0x17f2d0(0x157))/0x3*(parseInt(_0x17f2d0(0x17f))/0x4)+parseInt(_0x17f2d0(0x194))/0x5*(parseInt(_0x17f2d0(0x180))/0x6)+parseInt(_0x17f2d0(0x15f))/0x7*(parseInt(_0x17f2d0(0x163))/0x8)+parseInt(_0x17f2d0(0x16d))/0x9*(-parseInt(_0x17f2d0(0x172))/0xa)+parseInt(_0x17f2d0(0x170))/0xb+-parseInt(_0x17f2d0(0x183))/0xc*(-parseInt(_0x17f2d0(0x15b))/0xd);if(_0x5d4e88===_0x447ba3)break;else _0x2fa23a['push'](_0x2fa23a['shift']());}catch(_0x41a46f){_0x2fa23a['push'](_0x2fa23a['shift']());}}}(a7_0x1d20,0x50fa6));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_0x2bb6c9(0x166),ARTIFACT_SOURCE_AGENT=a7_0x2bb6c9(0x158),ALLOWED_REACT_MODULE_IMPORTS=[a7_0x2bb6c9(0x150),a7_0x2bb6c9(0x191),'lodash',a7_0x2bb6c9(0x15d),a7_0x2bb6c9(0x18f),a7_0x2bb6c9(0x198)];export const ALLOWED_REACT_MODULE_IMPORTS_TEXT=ALLOWED_REACT_MODULE_IMPORTS[a7_0x2bb6c9(0x19b)](',\x20');const IMPORT_SOURCE_PATTERNS=[/\bimport\s+(?:type\s+)?(?:[^'";]*?\s+from\s+)?["']([^"']+)["']/g,/\bexport\s+(?:type\s+)?[^'";]*?\s+from\s+["']([^"']+)["']/g,/\bimport\s*\(\s*["']([^"']+)["']\s*\)/g,/\brequire\s*\(\s*["']([^"']+)["']\s*\)/g],PAGE_LEVEL_PATTERNS=[/<!doctype\s+html/i,/<\s*html\b/i,/\bcreateRoot\s*\(/,/\bReactDOM\s*\.\s*render\s*\(/,/\bReactDOM\s*\.\s*createRoot\s*\(/],FILE_FLAG={'name':'file','type':'string','required':!![],'description':a7_0x2bb6c9(0x167)},ARTIFACT_NAME_FLAG={'name':'name','type':'string','description':a7_0x2bb6c9(0x19f)},METADATA_FLAG={'name':a7_0x2bb6c9(0x17c),'type':a7_0x2bb6c9(0x159),'description':'Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped'};function isPlainObject(_0x40e547){const _0x14f89e=a7_0x2bb6c9;return typeof _0x40e547===_0x14f89e(0x197)&&_0x40e547!==null&&!Array[_0x14f89e(0x19a)](_0x40e547);}function readSourceFile(_0x1f6810){const _0x353510=a7_0x2bb6c9;if(!_0x1f6810)throw CliErrors['validation'](_0x353510(0x160));if(!existsSync(_0x1f6810))throw CliErrors['validation'](_0x353510(0x154)+_0x1f6810);if(!statSync(_0x1f6810)[_0x353510(0x174)]())throw CliErrors['validation'](_0x353510(0x177)+_0x1f6810);const _0x3d13cc=readFileSync(_0x1f6810,_0x353510(0x171));return validateReactModuleSource(_0x3d13cc),_0x3d13cc;}function parseMetadata(_0x4eba06){const _0xebaa9b=a7_0x2bb6c9;if(!_0x4eba06)return undefined;let _0x1a9ad1;try{_0x1a9ad1=JSON[_0xebaa9b(0x190)](_0x4eba06);}catch{throw CliErrors['validation']('Invalid\x20JSON\x20for\x20--metadata:\x20'+_0x4eba06);}if(!isPlainObject(_0x1a9ad1))throw CliErrors['validation'](_0xebaa9b(0x189));const _0x135770={..._0x1a9ad1};return delete _0x135770[_0xebaa9b(0x16c)],_0x135770;}function getPackageName(_0x4812cc){const _0x59da65=a7_0x2bb6c9;if(_0x4812cc[_0x59da65(0x16b)]('@')){const [_0x89e65,_0x41451e]=_0x4812cc[_0x59da65(0x185)]('/');return _0x89e65&&_0x41451e?_0x89e65+'/'+_0x41451e:_0x4812cc;}return _0x4812cc[_0x59da65(0x185)]('/')[0x0]||_0x4812cc;}function a7_0x1d20(){const _0xe12192=['add','isFile','str','lastIndex','File\x20is\x20not\x20a\x20regular\x20file:\x20','description','write','favorite','list','metadata','artifact','Optional\x20source\x20filter,\x20for\x20example\x20AGENT','754496eZnQSx','12PSgHMJ','map','body','1382904qSvcAG','filter','split','source','name','POST','--metadata\x20must\x20be\x20a\x20JSON\x20object.','/client/artifact/create','49799LtXVWi','bool','14yrijzo','createTime','antd','parse','react-dom','detail','validation','63185VCIbnk','Updated\x20Artifact\x20','content','object','@ant-design/icons','react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.','isArray','join','List\x20current-app\x20react_module\x20Artifacts','Artifact\x20source\x20file\x20is\x20blank.','Artifact\x20ID','Artifact\x20display\x20name','appCode','.\x20Unsupported:\x20','/client/artifact/','react','Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','num','Preview:\x20create\x20react_module\x20Artifact','File\x20not\x20found:\x20','create','test','6jTjmpO','AGENT','string','Created\x20Artifact\x20','39qbkOgv','exec','dayjs','verbose','7qnDquT','File\x20path\x20is\x20required.','length','deleted','1157224OkTzfl','trim','updateTime','react_module','Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file','some','Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','build','startsWith','compiledContent','853506fYKDcy','Preview:\x20update\x20react_module\x20Artifact\x20','artifactType','7003788HjcpXw','utf8','10WxURiF'];a7_0x1d20=function(){return _0xe12192;};return a7_0x1d20();}function validateAllowedImports(_0x5c3316){const _0x54abd4=a7_0x2bb6c9,_0x400962=new Set();for(const _0x68b287 of IMPORT_SOURCE_PATTERNS){_0x68b287[_0x54abd4(0x176)]=0x0;let _0x953996;while((_0x953996=_0x68b287[_0x54abd4(0x15c)](_0x5c3316))!==null){const _0xb5b05d=_0x953996[0x1]?.['trim']();_0xb5b05d&&_0x400962[_0x54abd4(0x173)](_0xb5b05d);}}const _0x225398=[..._0x400962]['map'](getPackageName)[_0x54abd4(0x184)](_0x450ce5=>!ALLOWED_REACT_MODULE_IMPORTS['includes'](_0x450ce5));if(_0x225398[_0x54abd4(0x161)]>0x0)throw CliErrors[_0x54abd4(0x193)]('react_module\x20imports\x20are\x20limited\x20to:\x20'+ALLOWED_REACT_MODULE_IMPORTS_TEXT+_0x54abd4(0x14e)+[...new Set(_0x225398)][_0x54abd4(0x19b)](',\x20'));}export function validateReactModuleSource(_0x4d640d){const _0x3cd5fd=a7_0x2bb6c9;if(!_0x4d640d[_0x3cd5fd(0x164)]())throw CliErrors[_0x3cd5fd(0x193)](_0x3cd5fd(0x19d));if(PAGE_LEVEL_PATTERNS[_0x3cd5fd(0x168)](_0x35379e=>_0x35379e[_0x3cd5fd(0x156)](_0x4d640d)))throw CliErrors['validation'](_0x3cd5fd(0x199));validateAllowedImports(_0x4d640d);}function buildArtifactInput(_0x1cd6bd){const _0x88588a=a7_0x2bb6c9,_0x3d5209=readSourceFile(_0x1cd6bd['str']('file')),_0x405be8=_0x1cd6bd[_0x88588a(0x175)](_0x88588a(0x187))[_0x88588a(0x164)](),_0xcd942a=parseMetadata(_0x1cd6bd['str'](_0x88588a(0x17c)));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x405be8?{'name':_0x405be8}:{},'content':_0x3d5209,..._0xcd942a?{'metadata':_0xcd942a}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0x2bd09e){const _0x923bc0=a7_0x2bb6c9;return{'id':_0x2bd09e['id'],'name':_0x2bd09e[_0x923bc0(0x187)],'artifactType':_0x2bd09e[_0x923bc0(0x16f)],'source':_0x2bd09e[_0x923bc0(0x186)],'favorite':_0x2bd09e[_0x923bc0(0x17a)],'deleted':_0x2bd09e[_0x923bc0(0x162)],'createTime':_0x2bd09e['createTime'],'updateTime':_0x2bd09e[_0x923bc0(0x165)]};}function detailArtifact(_0x501839){const _0x2bd340=a7_0x2bb6c9;return{'id':_0x501839['id'],'appCode':_0x501839[_0x2bd340(0x1a0)],'name':_0x501839[_0x2bd340(0x187)],'artifactType':_0x501839[_0x2bd340(0x16f)],'source':_0x501839[_0x2bd340(0x186)],'favorite':_0x501839['favorite'],'deleted':_0x501839[_0x2bd340(0x162)],'content':_0x501839[_0x2bd340(0x196)]??'','compiledContent':_0x501839[_0x2bd340(0x16c)],'metadata':_0x501839[_0x2bd340(0x17c)]??{},'createTime':_0x501839[_0x2bd340(0x18e)],'updateTime':_0x501839[_0x2bd340(0x165)]};}function readFavoriteFlag(_0x3b1706){const _0x40512a=a7_0x2bb6c9,_0x37537d=_0x3b1706['flag'](_0x40512a(0x17a));return _0x37537d===undefined||_0x37537d===null||_0x37537d===''?undefined:_0x3b1706[_0x40512a(0x18c)](_0x40512a(0x17a));}const artifactList={'service':'artifact','command':a7_0x2bb6c9(0x17b),'description':a7_0x2bb6c9(0x19c),'risk':'read','flags':[{'name':a7_0x2bb6c9(0x186),'type':'string','description':a7_0x2bb6c9(0x17e)},{'name':a7_0x2bb6c9(0x17a),'type':'boolean','description':'Optional\x20favorite-state\x20filter'},VERBOSE_FLAG],async 'execute'(_0x55722d){const _0x27963e=a7_0x2bb6c9,_0x57b4c7=await listRuntimeArtifacts(_0x55722d['appCode'],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x55722d['str']('source')?{'source':_0x55722d[_0x27963e(0x175)](_0x27963e(0x186))}:{},...readFavoriteFlag(_0x55722d)!==undefined?{'favorite':readFavoriteFlag(_0x55722d)}:{}});return{'ok':!![],'data':{'total':_0x57b4c7[_0x27963e(0x161)],'items':_0x55722d['bool'](_0x27963e(0x15e))?_0x57b4c7:_0x57b4c7[_0x27963e(0x181)](summarizeArtifact)}};}},artifactDetail={'service':a7_0x2bb6c9(0x17d),'command':a7_0x2bb6c9(0x192),'description':'Show\x20one\x20Artifact\x20by\x20id','risk':'read','flags':[{...ID_FLAG,'description':a7_0x2bb6c9(0x19e)}],async 'execute'(_0x216027){const _0x20d63b=a7_0x2bb6c9,_0x1dfe14=await getRuntimeArtifact(_0x216027[_0x20d63b(0x152)]('id'),_0x216027[_0x20d63b(0x1a0)]);return{'ok':!![],'data':detailArtifact(_0x1dfe14)};}},artifactCreate={'service':a7_0x2bb6c9(0x17d),'command':a7_0x2bb6c9(0x155),'description':a7_0x2bb6c9(0x151),'risk':a7_0x2bb6c9(0x179),'flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x426724){const _0xeaa663=a7_0x2bb6c9,_0x94a891=buildArtifactInput(_0x426724),_0x5ac26f=await createRuntimeArtifact(_0x426724[_0xeaa663(0x1a0)],_0x94a891);return{'ok':!![],'data':detailArtifact(_0x5ac26f),'message':_0xeaa663(0x15a)+_0x5ac26f['id']+(_0x5ac26f[_0xeaa663(0x187)]?'\x20('+_0x5ac26f[_0xeaa663(0x187)]+')':'')};},async 'dryRun'(_0x3ac0b2){const _0x1d7bd7=a7_0x2bb6c9,_0x3c3007=buildArtifactInput(_0x3ac0b2);return dryRun(_0x1d7bd7(0x188),_0x1d7bd7(0x18a))[_0x1d7bd7(0x182)]({'appCode':_0x3ac0b2[_0x1d7bd7(0x1a0)],..._0x3c3007})[_0x1d7bd7(0x178)](_0x1d7bd7(0x153))['build']();}},artifactUpdate={'service':a7_0x2bb6c9(0x17d),'command':'update','description':a7_0x2bb6c9(0x169),'risk':a7_0x2bb6c9(0x179),'flags':[{...ID_FLAG,'description':'Artifact\x20ID'},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x543b90){const _0x1c5d27=a7_0x2bb6c9,_0x7691d3=_0x543b90[_0x1c5d27(0x152)]('id'),_0x1fd8f2=buildArtifactInput(_0x543b90),_0x225f6c=await updateRuntimeArtifact(_0x7691d3,_0x543b90[_0x1c5d27(0x1a0)],_0x1fd8f2);return{'ok':!![],'data':detailArtifact(_0x225f6c),'message':_0x1c5d27(0x195)+_0x225f6c['id']+(_0x225f6c[_0x1c5d27(0x187)]?'\x20('+_0x225f6c['name']+')':'')};},async 'dryRun'(_0x9d5128){const _0x2aa939=a7_0x2bb6c9,_0x33049b=_0x9d5128[_0x2aa939(0x152)]('id'),_0x12487f=buildArtifactInput(_0x9d5128);return dryRun('POST',_0x2aa939(0x14f)+_0x33049b+'/update')['body']({'appCode':_0x9d5128[_0x2aa939(0x1a0)],..._0x12487f})[_0x2aa939(0x178)](_0x2aa939(0x16e)+_0x33049b)[_0x2aa939(0x16a)]();}};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_0x456981=a8_0x11c4;(function(_0x54793c,_0x2210da){const _0x7a3290=a8_0x11c4,_0x33cc74=_0x54793c();while(!![]){try{const _0x8618e4=-parseInt(_0x7a3290(0x118))/0x1+-parseInt(_0x7a3290(0x152))/0x2*(-parseInt(_0x7a3290(0x145))/0x3)+-parseInt(_0x7a3290(0x130))/0x4*(parseInt(_0x7a3290(0x114))/0x5)+parseInt(_0x7a3290(0x127))/0x6+parseInt(_0x7a3290(0x124))/0x7+parseInt(_0x7a3290(0x11c))/0x8+-parseInt(_0x7a3290(0x101))/0x9;if(_0x8618e4===_0x2210da)break;else _0x33cc74['push'](_0x33cc74['shift']());}catch(_0x4351e1){_0x33cc74['push'](_0x33cc74['shift']());}}}(a8_0x265a,0x69245));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';function a8_0x265a(){const _0x112258=['Write\x20to\x20global\x20config\x20(default)','Clear\x20accessKey\x20from\x20config','AccessKey\x20cleared\x20from\x20','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','accessKey','12475qqwuqp','\x20auth\x20login\x20--access-key\x20<ak_xxx>','bool','status','531357pknMaP','push','validation','write','3257224trOdUG','\x20\x20export\x20','\x20config.\x20Nothing\x20to\x20clear.','logout','No\x20AccessKey\x20found\x20in\x20','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','str','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','1289778SigkiQ','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','cancelled','3057162QLhbBC','\x20doctor','stdout','development','global','boolean','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','Option\x20A:\x20','\x20scope.','148YJysdF','info','Clear\x20from\x20global\x20config\x20(default)','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','newConfigFileName','envName','access-key','=ak_xxx','AccessKey\x20(ak_xxx...)','project','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','env','read','length','slice','\x20config.','daily','\x20Verify:\x20','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','\x20auth\x20status','auth','6wDHntp','Missing\x20accessKey.','Invalid\x20accessKey\x20format:\x20\x22','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','isTTY','Auth\x20mode:\x20','string','init','Show\x20current\x20authentication\x20status','join','Tip:\x20you\x20can\x20also\x20run:','repeat','`auth\x20login`\x20does\x20not\x20support\x20--yes.','210124qskrBO','userCenterDisplayName','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','2310525QirTyQ','Option\x20C:\x20environment\x20variable','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','Read\x20from\x20global\x20config\x20(default)','stdin','yes','AccessKey:\x20','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','\x20Current\x20env:\x20','trim','nonInteractive','\x20config','Shorthand\x20for\x20--access-key','production'];a8_0x265a=function(){return _0x112258;};return a8_0x265a();}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 _0x54d55b=a8_0x11c4;writeCliSideChannelLine(_0x54d55b(0x148)+PRODUCT_CONFIG[_0x54d55b(0x153)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x54d55b(0x14f)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x54d55b(0x115));}function a8_0x11c4(_0x1a6b63,_0x1ffa1b){_0x1a6b63=_0x1a6b63-0x101;const _0x265acf=a8_0x265a();let _0x11c40f=_0x265acf[_0x1a6b63];return _0x11c40f;}function buildAccessKeySetupGuide(){const _0x2d9a73=a8_0x11c4;return[_0x2d9a73(0x148)+PRODUCT_CONFIG['userCenterDisplayName']+':',USER_ACCESS_KEY_CREATE_URL,_0x2d9a73(0x123)+CLI_BIN_NAME+_0x2d9a73(0x108)][_0x2d9a73(0x14e)]('\x0a');}function canPromptForAccessKey(_0x58cd10){const _0x2e50a2=a8_0x11c4;return!_0x58cd10[_0x2e50a2(0x10b)]&&process[_0x2e50a2(0x105)][_0x2e50a2(0x149)]!==![]&&process[_0x2e50a2(0x129)][_0x2e50a2(0x149)]!==![];}function resolveAuthScopeFlags(_0x5e19e0){const _0x4f46f9=a8_0x11c4;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x5e19e0[_0x4f46f9(0x116)](_0x4f46f9(0x12b)),'explicitProject':_0x5e19e0[_0x4f46f9(0x116)](_0x4f46f9(0x139)),'policy':'global-default'}));}async function resolveAuthWriteInput(_0x5da3c5){const _0xa9c97e=a8_0x11c4;let _0x287998=(_0x5da3c5[_0xa9c97e(0x122)](_0xa9c97e(0x136))||_0x5da3c5['str']('ak')||'')[_0xa9c97e(0x10a)]();const _0x244636=(_0x5da3c5[_0xa9c97e(0x122)](_0xa9c97e(0x13b))||'')['trim']();if(!_0x287998&&canPromptForAccessKey(_0x5da3c5))try{showAccessKeyCreateHint(),_0x287998=await promptAccessKey('');}catch(_0x50d2f7){if(isAbortPrompt(_0x50d2f7))throw CliErrors[_0xa9c97e(0x126)]();throw _0x50d2f7;}if(!_0x287998)throw CliErrors[_0xa9c97e(0x11a)](_0xa9c97e(0x146),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN['test'](_0x287998))throw CliErrors[_0xa9c97e(0x11a)](_0xa9c97e(0x147)+_0x287998+'\x22',_0xa9c97e(0x12d));if(!_0x244636)return{'accessKey':_0x287998};const _0x2428ba=normalizeEnv(_0x244636);return{'accessKey':_0x287998,'env':isDaily(_0x2428ba)?_0xa9c97e(0x140):isDev(_0x2428ba)?_0xa9c97e(0x12a):'production'};}export const authDefinitions=[{'service':'auth','command':'login','description':'Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','risk':a8_0x456981(0x11b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a8_0x456981(0x136),'type':a8_0x456981(0x14b),'description':a8_0x456981(0x138)},{'name':'ak','type':a8_0x456981(0x14b),'description':'Shorthand\x20for\x20--access-key'},{'name':a8_0x456981(0x12b),'type':a8_0x456981(0x12c),'description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':a8_0x456981(0x139),'type':a8_0x456981(0x12c),'description':a8_0x456981(0x133),'default':![]}],async 'execute'(_0x5735b5){const _0x45a7a7=a8_0x456981;if(_0x5735b5[_0x45a7a7(0x116)](_0x45a7a7(0x106)))throw CliErrors[_0x45a7a7(0x11a)](_0x45a7a7(0x151),'Use\x20`'+CLI_BIN_NAME+_0x45a7a7(0x112)+CLI_BIN_NAME+_0x45a7a7(0x142));const _0x29b753=(_0x5735b5[_0x45a7a7(0x122)](_0x45a7a7(0x136))||_0x5735b5['str']('ak')||'')[_0x45a7a7(0x10a)]();if(!_0x29b753&&_0x5735b5['nonInteractive'])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x3992ca=await resolveAuthWriteInput(_0x5735b5),_0xa9aac4=resolveAuthScopeFlags(_0x5735b5),_0x568ec0=readScopedConfig(_0xa9aac4);_0x568ec0[_0x45a7a7(0x113)]=_0x3992ca['accessKey'];_0x3992ca[_0x45a7a7(0x13b)]&&(_0x568ec0[_0x45a7a7(0x13b)]=_0x3992ca['env']);writeScopedConfig(_0x568ec0,_0xa9aac4);const _0x30974b=_0xa9aac4['global']?'global':'project',_0x2a0501=_0x568ec0['env']?_0x45a7a7(0x109)+_0x568ec0[_0x45a7a7(0x13b)]+'.':'';return{'ok':!![],'message':'AccessKey\x20saved\x20to\x20'+_0x30974b+_0x45a7a7(0x13f)+_0x2a0501+'\x20Verify:\x20'+CLI_BIN_NAME+_0x45a7a7(0x143)};}},{'service':a8_0x456981(0x144),'command':a8_0x456981(0x14c),'description':'Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a8_0x456981(0x136),'type':a8_0x456981(0x14b),'description':a8_0x456981(0x138)},{'name':'ak','type':a8_0x456981(0x14b),'description':a8_0x456981(0x10d)},{'name':a8_0x456981(0x13b),'type':'string','description':a8_0x456981(0x125)},{'name':'global','type':'boolean','description':a8_0x456981(0x10f),'default':!![]},{'name':a8_0x456981(0x139),'type':'boolean','description':a8_0x456981(0x133),'default':![]}],async 'execute'(_0x1c3b26){const _0x2bd86a=a8_0x456981,_0x2804a6=await resolveAuthWriteInput(_0x1c3b26),_0x3f42b9=resolveAuthScopeFlags(_0x1c3b26),_0x2d3abb={'accessKey':_0x2804a6[_0x2bd86a(0x113)]};_0x2804a6[_0x2bd86a(0x13b)]&&(_0x2d3abb[_0x2bd86a(0x13b)]=_0x2804a6[_0x2bd86a(0x13b)]);writeScopedConfig(_0x2d3abb,_0x3f42b9);const _0x456f7b=_0x3f42b9[_0x2bd86a(0x12b)]?'global':'project',_0x40cd=_0x2d3abb[_0x2bd86a(0x13b)]?_0x2bd86a(0x109)+_0x2d3abb[_0x2bd86a(0x13b)]+'.':'';return{'ok':!![],'message':'Auth\x20config\x20reinitialized\x20in\x20'+_0x456f7b+_0x2bd86a(0x12f)+_0x40cd+_0x2bd86a(0x141)+CLI_BIN_NAME+_0x2bd86a(0x143)};}},{'service':a8_0x456981(0x144),'command':a8_0x456981(0x11f),'description':a8_0x456981(0x110),'risk':a8_0x456981(0x11b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a8_0x456981(0x12b),'type':a8_0x456981(0x12c),'description':a8_0x456981(0x132),'default':!![]},{'name':'project','type':a8_0x456981(0x12c),'description':a8_0x456981(0x121),'default':![]}],async 'execute'(_0x37d3b4){const _0x50bc79=a8_0x456981,_0x24482c=resolveAuthScopeFlags(_0x37d3b4),_0x8abdb5=readScopedConfig(_0x24482c),_0x444169=!!_0x8abdb5[_0x50bc79(0x113)];delete _0x8abdb5['accessKey'],writeScopedConfig(_0x8abdb5,_0x24482c);const _0x2f4f2f=_0x24482c[_0x50bc79(0x12b)]?_0x50bc79(0x12b):_0x50bc79(0x139);if(_0x444169)return{'ok':!![],'message':_0x50bc79(0x111)+_0x2f4f2f+'\x20config.'};return{'ok':!![],'message':_0x50bc79(0x120)+_0x2f4f2f+_0x50bc79(0x11e)};}},{'service':'auth','command':a8_0x456981(0x117),'description':a8_0x456981(0x14d),'risk':a8_0x456981(0x13c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a8_0x456981(0x12b),'type':a8_0x456981(0x12c),'description':a8_0x456981(0x104),'default':!![]},{'name':a8_0x456981(0x139),'type':'boolean','description':a8_0x456981(0x13a),'default':![]}],async 'execute'(_0x56943d){const _0x313f00=a8_0x456981,_0x406893=resolveAuthScopeFlags(_0x56943d),_0x10a01d=readScopedConfig(_0x406893),_0x303cc9=productEnvName('ACCESS_KEY'),_0x240007=productEnv('ACCESS_KEY')||undefined,_0x4b0e4e=_0x10a01d[_0x313f00(0x113)]||undefined,_0x8ca805=_0x240007||_0x4b0e4e,_0x20305b=_0x240007?_0x303cc9+'\x20env\x20var':_0x4b0e4e?(_0x406893['global']?'global':_0x313f00(0x139))+_0x313f00(0x10c):null,_0x5befed=[_0x313f00(0x14a)+AUTH_MODE['ClientAk']];if(_0x8ca805){const _0x1deb63=_0x8ca805[_0x313f00(0x13d)]>0x8?''+_0x8ca805[_0x313f00(0x13e)](0x0,0x8)+'*'[_0x313f00(0x150)](_0x8ca805[_0x313f00(0x13d)]-0x8):_0x8ca805;_0x5befed[_0x313f00(0x119)](_0x313f00(0x107)+_0x1deb63+(_0x20305b?'\x20(via\x20'+_0x20305b+')':''));}return!_0x8ca805&&(_0x5befed['push'](''),_0x5befed[_0x313f00(0x119)](_0x313f00(0x154)),_0x5befed[_0x313f00(0x119)](''),_0x5befed[_0x313f00(0x119)](_0x313f00(0x12e)+CLI_BIN_NAME+'\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]'),_0x5befed[_0x313f00(0x119)](''),_0x5befed['push']('Option\x20B:\x20apps\x20config\x20('+PRODUCT_CONFIG[_0x313f00(0x134)]+')'),_0x5befed['push'](_0x313f00(0x103)),_0x5befed[_0x313f00(0x119)](''),_0x5befed[_0x313f00(0x119)](_0x313f00(0x102)),_0x5befed[_0x313f00(0x119)](_0x313f00(0x11d)+_0x303cc9+_0x313f00(0x137)),_0x5befed[_0x313f00(0x119)](''),_0x5befed[_0x313f00(0x119)]('Then\x20verify\x20with:\x20'+CLI_BIN_NAME+_0x313f00(0x143)),_0x5befed[_0x313f00(0x119)]('If\x20command\x20execution\x20still\x20fails,\x20run:\x20'+CLI_BIN_NAME+_0x313f00(0x128))),{'ok':!![],'message':_0x5befed[_0x313f00(0x14e)]('\x0a')};}},{'service':a8_0x456981(0x144),'command':a8_0x456981(0x131),'description':'Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','risk':a8_0x456981(0x13c),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x3a377d){const _0x5f977e=a8_0x456981,_0xa9e2bc=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0xa9e2bc,'meta':{'env':_0x3a377d[_0x5f977e(0x135)]??_0x5f977e(0x10e)}}};}}];
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(_0x1224eb,_0x3ffef2){const _0x445872=a9_0x121f,_0x4d2f9f=_0x1224eb();while(!![]){try{const _0x5d5423=-parseInt(_0x445872(0xdf))/0x1+-parseInt(_0x445872(0xd2))/0x2*(parseInt(_0x445872(0xe2))/0x3)+parseInt(_0x445872(0xe0))/0x4*(parseInt(_0x445872(0xdb))/0x5)+parseInt(_0x445872(0xd5))/0x6*(parseInt(_0x445872(0xe4))/0x7)+parseInt(_0x445872(0xe3))/0x8*(-parseInt(_0x445872(0xd4))/0x9)+parseInt(_0x445872(0xe6))/0xa+parseInt(_0x445872(0xe5))/0xb;if(_0x5d5423===_0x3ffef2)break;else _0x4d2f9f['push'](_0x4d2f9f['shift']());}catch(_0x1abfb9){_0x4d2f9f['push'](_0x4d2f9f['shift']());}}}(a9_0x2449,0xd9804));function a9_0x121f(_0x5e9725,_0x6b5633){_0x5e9725=_0x5e9725-0xd1;const _0x2449f3=a9_0x2449();let _0x121f04=_0x2449f3[_0x5e9725];return _0x121f04;}import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x71fbde=a9_0x121f;super('User\x20aborted\x20prompt'),this[_0x71fbde(0xd3)]=_0x71fbde(0xd9);}}function a9_0x2449(){const _0x5acc7d=['27Maoefd','996CjpEyW','AccessKey\x20(paste\x20ak_...):\x20','stdout','AccessKey\x20(','AbortPrompt','close','5rGKAeY','):\x20','removeListener','SIGINT','1468699JSmeCB','6459888WuNWlS','race','9504kdfGyF','3795560morZmW','9394KDfyFs','9998417frZEqX','16983390vFiqMB','question','stdin','418JSZqIw','name'];a9_0x2449=function(){return _0x5acc7d;};return a9_0x2449();}function createSafeRl(){const _0x3e075e=a9_0x121f,_0x147320=createInterface({'input':process[_0x3e075e(0xd1)],'output':process[_0x3e075e(0xd7)]});let _0x3ce5f1;const _0x1c3177=new Promise((_0x29a658,_0x156e0d)=>{const _0x416a43=_0x3e075e;_0x3ce5f1=()=>{const _0x2609c6=a9_0x121f;_0x3ce5f1&&(_0x147320[_0x2609c6(0xdd)](_0x2609c6(0xde),_0x3ce5f1),_0x3ce5f1=undefined);try{_0x147320['close']();}catch{}_0x156e0d(new AbortPrompt());},_0x147320['once'](_0x416a43(0xde),_0x3ce5f1);}),_0x148350=()=>{const _0xb27e36=_0x3e075e;_0x3ce5f1&&(_0x147320[_0xb27e36(0xdd)]('SIGINT',_0x3ce5f1),_0x3ce5f1=undefined);try{_0x147320[_0xb27e36(0xda)]();}catch{}};return{'rl':_0x147320,'abortPromise':_0x1c3177,'disposeSuccess':_0x148350};}export async function promptAccessKey(_0x512ca1=''){const _0x40c229=a9_0x121f,{rl:_0x533270,abortPromise:_0x292693,disposeSuccess:_0x42d3ed}=createSafeRl(),_0x5cefbf=new Promise(_0x4de76d=>{const _0x52e597=a9_0x121f,_0x432413=_0x512ca1?_0x52e597(0xd8)+_0x512ca1+_0x52e597(0xdc):_0x52e597(0xd6);_0x533270[_0x52e597(0xe7)](_0x432413,_0x3599d5=>{_0x42d3ed(),_0x4de76d(_0x3599d5['trim']()||_0x512ca1);});});return Promise[_0x40c229(0xe1)]([_0x5cefbf,_0x292693]);}export function isAbortPrompt(_0x17503a){const _0x44bd26=a9_0x121f;return _0x17503a instanceof Error&&_0x17503a[_0x44bd26(0xd3)]===_0x44bd26(0xd9);}
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
- function a10_0x1c91(_0x560a02,_0x2f4ec9){_0x560a02=_0x560a02-0xbe;const _0x11ce59=a10_0x11ce();let _0x1c9171=_0x11ce59[_0x560a02];return _0x1c9171;}function a10_0x11ce(){const _0x358fc7=['functionName','79504IAkxON','4xNihOP','11eiThqx','updatedTime','num','863463ZJaLFF','(none)','1553088uLMcsc','Get\x20BFF\x20script\x20details\x20by\x20ID','107164CtOvlc','detail','1084599kmBKmD','1906230gdWQoW','verbose','1417374xhxUsL','5FHtXKQ','bff','7GKQWYh','description','appCode','createdTime','read'];a10_0x11ce=function(){return _0x358fc7;};return a10_0x11ce();}const a10_0x1a857d=a10_0x1c91;(function(_0x1768a7,_0x380a9d){const _0x4713e6=a10_0x1c91,_0x52ce7c=_0x1768a7();while(!![]){try{const _0x6dd2af=-parseInt(_0x4713e6(0xc4))/0x1+parseInt(_0x4713e6(0xd2))/0x2+parseInt(_0x4713e6(0xc0))/0x3*(-parseInt(_0x4713e6(0xd3))/0x4)+-parseInt(_0x4713e6(0xca))/0x5*(-parseInt(_0x4713e6(0xc9))/0x6)+parseInt(_0x4713e6(0xcc))/0x7*(parseInt(_0x4713e6(0xc2))/0x8)+-parseInt(_0x4713e6(0xc6))/0x9+parseInt(_0x4713e6(0xc7))/0xa*(parseInt(_0x4713e6(0xd4))/0xb);if(_0x6dd2af===_0x380a9d)break;else _0x52ce7c['push'](_0x52ce7c['shift']());}catch(_0x48a131){_0x52ce7c['push'](_0x52ce7c['shift']());}}}(a10_0x11ce,0x2375c));import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a10_0x1a857d(0xcb),'command':a10_0x1a857d(0xc5),'description':a10_0x1a857d(0xc3),'risk':a10_0x1a857d(0xd0),'flags':[{...ID_FLAG,'description':'Script\x20ID'},VERBOSE_FLAG],async 'execute'(_0xa89478){const _0x1d7b71=a10_0x1a857d,_0x5d34f5=await getBffScriptInfo(_0xa89478[_0x1d7b71(0xbf)]('id')),_0x4df7ff=_0xa89478['bool'](_0x1d7b71(0xc8));if(_0x4df7ff)return{'ok':!![],'data':_0x5d34f5};return{'ok':!![],'data':{'id':_0x5d34f5['id'],'appCode':_0x5d34f5[_0x1d7b71(0xce)],'functionName':_0x5d34f5[_0x1d7b71(0xd1)]??'','scriptType':_0x5d34f5['scriptType'],'description':_0x5d34f5[_0x1d7b71(0xcd)]||_0x1d7b71(0xc1),'createdTime':_0x5d34f5[_0x1d7b71(0xcf)]??'','updatedTime':_0x5d34f5[_0x1d7b71(0xbe)]??''}};}};
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_0x1ccbb9=a11_0x55c8;(function(_0x583b3d,_0x59be83){const _0x5ece58=a11_0x55c8,_0x17dc4a=_0x583b3d();while(!![]){try{const _0x5ded80=parseInt(_0x5ece58(0x116))/0x1+-parseInt(_0x5ece58(0x112))/0x2*(-parseInt(_0x5ece58(0x111))/0x3)+-parseInt(_0x5ece58(0x108))/0x4+parseInt(_0x5ece58(0x10f))/0x5+-parseInt(_0x5ece58(0x109))/0x6+-parseInt(_0x5ece58(0x10e))/0x7*(parseInt(_0x5ece58(0x115))/0x8)+parseInt(_0x5ece58(0x114))/0x9;if(_0x5ded80===_0x59be83)break;else _0x17dc4a['push'](_0x17dc4a['shift']());}catch(_0x2eb66c){_0x17dc4a['push'](_0x17dc4a['shift']());}}}(a11_0x2eda,0x79369));import{executeSdkBff}from'../../core/sdk-client.js';function a11_0x2eda(){const _0x139b9d=['55281hQJDXt','34nEDGzF','str','13019985cjzYdu','135448OejVlb','707235tZbUqN','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','now','bff','3612216yxuJqz','5700540kYUWdU','BFF\x20executed\x20in\x20','exec','name','BFF\x20function\x20name\x20to\x20execute','56CQzHdG','89610wlWGDR','read'];a11_0x2eda=function(){return _0x139b9d;};return a11_0x2eda();}function a11_0x55c8(_0x5b7ae4,_0x4bb634){_0x5b7ae4=_0x5b7ae4-0x107;const _0x2edad1=a11_0x2eda();let _0x55c8fd=_0x2edad1[_0x5b7ae4];return _0x55c8fd;}import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a11_0x1ccbb9(0x107),'command':a11_0x1ccbb9(0x10b),'description':a11_0x1ccbb9(0x117),'risk':a11_0x1ccbb9(0x110),'flags':[{...NAME_FLAG,'required':!![],'description':a11_0x1ccbb9(0x10d)},PARAMS_FLAG],async 'execute'(_0x33e048){const _0x5928e4=a11_0x1ccbb9,_0x555123=parseJsonParams(_0x33e048[_0x5928e4(0x113)]('params')),_0x4e3864=Date[_0x5928e4(0x118)](),_0x13872d=await executeSdkBff(_0x33e048[_0x5928e4(0x113)](_0x5928e4(0x10c)),_0x555123),_0x377ee9=Date['now']()-_0x4e3864;return{'ok':!![],'data':{'result':_0x13872d,'elapsed':_0x377ee9},'message':_0x5928e4(0x10a)+_0x377ee9+'ms'};}};
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(_0x48f205,_0x19e256){const _0x546496=a12_0x2cea,_0x9b6dd3=_0x48f205();while(!![]){try{const _0x1f62de=-parseInt(_0x546496(0x188))/0x1*(-parseInt(_0x546496(0x18a))/0x2)+-parseInt(_0x546496(0x18d))/0x3*(-parseInt(_0x546496(0x191))/0x4)+-parseInt(_0x546496(0x190))/0x5*(parseInt(_0x546496(0x192))/0x6)+-parseInt(_0x546496(0x18e))/0x7*(parseInt(_0x546496(0x187))/0x8)+-parseInt(_0x546496(0x18b))/0x9+-parseInt(_0x546496(0x189))/0xa+parseInt(_0x546496(0x18c))/0xb*(parseInt(_0x546496(0x18f))/0xc);if(_0x1f62de===_0x19e256)break;else _0x9b6dd3['push'](_0x9b6dd3['shift']());}catch(_0x17f339){_0x9b6dd3['push'](_0x9b6dd3['shift']());}}}(a12_0x532a,0xf3752));import{bffDetail}from'../../commands/bff/detail.js';function a12_0x532a(){const _0x369a7b=['138QVxnJY','18823230GByExU','8248VPygGf','14610366QLuKLx','132wbxdZG','4232613HkncZW','1267iBZkpZ','5668716GMFmkV','5kfqiYm','4wtiBJp','10722198FNBroQ','60056vOVcfJ'];a12_0x532a=function(){return _0x369a7b;};return a12_0x532a();}function a12_0x2cea(_0x3e8667,_0x1ef349){_0x3e8667=_0x3e8667-0x187;const _0x532a75=a12_0x532a();let _0x2cea05=_0x532a75[_0x3e8667];return _0x2cea05;}import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
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(_0x1e6049,_0x1fc7a7){const _0x257fa1=a13_0x5dd0,_0x4b1a97=_0x1e6049();while(!![]){try{const _0x388b10=-parseInt(_0x257fa1(0x1ea))/0x1+-parseInt(_0x257fa1(0x1f1))/0x2*(parseInt(_0x257fa1(0x1eb))/0x3)+-parseInt(_0x257fa1(0x1e7))/0x4*(-parseInt(_0x257fa1(0x1f3))/0x5)+-parseInt(_0x257fa1(0x1ee))/0x6*(-parseInt(_0x257fa1(0x1e6))/0x7)+-parseInt(_0x257fa1(0x1e9))/0x8*(-parseInt(_0x257fa1(0x1e4))/0x9)+-parseInt(_0x257fa1(0x1e3))/0xa+parseInt(_0x257fa1(0x1f4))/0xb;if(_0x388b10===_0x1fc7a7)break;else _0x4b1a97['push'](_0x4b1a97['shift']());}catch(_0x37003c){_0x4b1a97['push'](_0x4b1a97['shift']());}}}(a13_0x5fda,0xc31d1));function a13_0x5fda(){const _0x540968=['global-default','project-or-global-explicit',',\x20or\x20run\x20`','newConfigFileName','7858140FaaEfQ','9630CwjRKL','\x20init`\x20first.','161owGYpx','31516wsEyGC','\x20found).','11840qpdLAG','879134uDqwoy','85917ENYeXZ','project-default','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','125718tLfLVH','inProject','project','26Vkipzf','global','455uQkNHr','593252nABtGZ','\x20(global)','validation'];a13_0x5fda=function(){return _0x540968;};return a13_0x5fda();}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';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(_0x3cd0bc){const _0x4dc77f=a13_0x5dd0,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x7b7446}=_0x3cd0bc;if(explicitGlobal&&explicitProject)throw CliErrors[_0x4dc77f(0x1f6)](_0x4dc77f(0x1ed),'Use\x20only\x20one\x20config\x20scope\x20flag.');if(explicitGlobal)return _0x4dc77f(0x1f2);if(explicitProject)return _0x4dc77f(0x1f0);switch(_0x7b7446){case _0x4dc77f(0x1f7):return _0x4dc77f(0x1f2);case _0x4dc77f(0x1ec):return _0x3cd0bc[_0x4dc77f(0x1ef)]??isInProject()?_0x4dc77f(0x1f0):_0x4dc77f(0x1f2);case _0x4dc77f(0x1e0):if(!(_0x3cd0bc['inProject']??isInProject()))throw CliErrors[_0x4dc77f(0x1f6)]('Not\x20inside\x20a\x20project\x20(no\x20'+PRODUCT_CONFIG[_0x4dc77f(0x1e2)]+_0x4dc77f(0x1e8),'Add\x20--global\x20to\x20write\x20to\x20~/'+PRODUCT_CONFIG[_0x4dc77f(0x1e2)]+_0x4dc77f(0x1e1)+CLI_BIN_NAME+_0x4dc77f(0x1e5));return _0x4dc77f(0x1f0);}}export function toScopeFlags(_0x376141){const _0x371cf9=a13_0x5dd0;return{'global':_0x376141===_0x371cf9(0x1f2)};}function a13_0x5dd0(_0x45de2a,_0x5f3c61){_0x45de2a=_0x45de2a-0x1e0;const _0x5fda97=a13_0x5fda();let _0x5dd0a7=_0x5fda97[_0x45de2a];return _0x5dd0a7;}export function formatScopeLabel(_0x24544f){const _0x353157=a13_0x5dd0;return _0x24544f===_0x353157(0x1f2)?_0x353157(0x1f5):'';}
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(_0x57e358,_0x342a52){const _0x1567fc=a14_0x1079,_0x10d2bd=_0x57e358();while(!![]){try{const _0x465852=parseInt(_0x1567fc(0x131))/0x1+-parseInt(_0x1567fc(0x117))/0x2*(parseInt(_0x1567fc(0x11e))/0x3)+parseInt(_0x1567fc(0x12d))/0x4+parseInt(_0x1567fc(0x12a))/0x5+-parseInt(_0x1567fc(0x11f))/0x6*(-parseInt(_0x1567fc(0x11d))/0x7)+-parseInt(_0x1567fc(0x11a))/0x8*(parseInt(_0x1567fc(0x12e))/0x9)+parseInt(_0x1567fc(0x120))/0xa;if(_0x465852===_0x342a52)break;else _0x10d2bd['push'](_0x10d2bd['shift']());}catch(_0x1b6154){_0x10d2bd['push'](_0x10d2bd['shift']());}}}(a14_0x2d81,0x5e6f5));import{CliErrors}from'../../errors.js';function isSet(_0x422b2e,_0x2410a8){const _0x4edce6=a14_0x1079,_0x250497=_0x422b2e[_0x4edce6(0x11c)](_0x2410a8);return _0x250497!==undefined&&_0x250497!==''&&_0x250497!==![]&&_0x250497!==0x0;}function fmtNames(_0x59a8b9){const _0x41d276=a14_0x1079;return _0x59a8b9[_0x41d276(0x122)](_0x2fa5a1=>'--'+_0x2fa5a1)[_0x41d276(0x124)](',\x20');}function a14_0x2d81(){const _0x471923=['3424680uNellV','length','map','filter','join','Exactly\x20one\x20of\x20','Flags\x20','str',',\x20got\x20\x22','some','2222805jWvxDy','\x20is\x20required\x20for\x20`','Remove\x20all\x20but\x20one.','1321144IzQHmQ','1386hMiSzA','Only\x20one\x20of\x20','At\x20least\x20one\x20of\x20','490023DVzbXc','Provide\x20one\x20of:\x20','1541770voonVh','\x20are\x20mutually\x20exclusive\x20for\x20`','validation','23624kuEalh','\x20is\x20allowed,\x20found:\x20','flag','35798cIkjoy','3XDhDvy','6obouYM'];a14_0x2d81=function(){return _0x471923;};return a14_0x2d81();}export function requireOneOf(_0x4052ba,_0x4e7b55,_0x3e4ea1){const _0x446fc3=a14_0x1079,_0x50adc8=_0x4e7b55[_0x446fc3(0x123)](_0x319dc1=>isSet(_0x4052ba,_0x319dc1));if(_0x50adc8[_0x446fc3(0x121)]!==0x1)throw CliErrors[_0x446fc3(0x119)](_0x50adc8[_0x446fc3(0x121)]===0x0?_0x446fc3(0x125)+fmtNames(_0x4e7b55)+_0x446fc3(0x12b)+_0x3e4ea1+'`.':_0x446fc3(0x12f)+fmtNames(_0x4e7b55)+_0x446fc3(0x11b)+fmtNames(_0x50adc8)+'.',_0x50adc8['length']===0x0?_0x446fc3(0x132)+fmtNames(_0x4e7b55):_0x446fc3(0x12c));}function a14_0x1079(_0x192e29,_0x478d33){_0x192e29=_0x192e29-0x117;const _0x2d81fc=a14_0x2d81();let _0x107987=_0x2d81fc[_0x192e29];return _0x107987;}export function requireAnyOf(_0x19205c,_0x5b7804,_0x22b18b){const _0x329d27=a14_0x1079;if(!_0x5b7804[_0x329d27(0x129)](_0xab3572=>isSet(_0x19205c,_0xab3572)))throw CliErrors[_0x329d27(0x119)](_0x329d27(0x130)+fmtNames(_0x5b7804)+_0x329d27(0x12b)+_0x22b18b+'`.',_0x329d27(0x132)+fmtNames(_0x5b7804));}export function mutuallyExclusive(_0x5c0c6f,_0x286179,_0x1b5ec9){const _0x29ec63=a14_0x1079,_0x247795=_0x286179[_0x29ec63(0x123)](_0x56dd32=>isSet(_0x5c0c6f,_0x56dd32));if(_0x247795[_0x29ec63(0x121)]>0x1)throw CliErrors[_0x29ec63(0x119)](_0x29ec63(0x126)+fmtNames(_0x247795)+_0x29ec63(0x118)+_0x1b5ec9+'`.','Use\x20only\x20one\x20of:\x20'+fmtNames(_0x286179));}export function validatePattern(_0x3ee833,_0x1947e1,_0x593aad,_0x39bd3a){const _0x1aba87=a14_0x1079,_0x4ab673=_0x3ee833[_0x1aba87(0x127)](_0x1947e1);if(_0x4ab673&&!_0x593aad['test'](_0x4ab673))throw CliErrors[_0x1aba87(0x119)]('Invalid\x20--'+_0x1947e1+':\x20expected\x20'+_0x39bd3a+_0x1aba87(0x128)+_0x4ab673+'\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.');}