@lovrabet/lovrabet-cli 2.1.0-beta.3 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/artifact/index.js +1 -1
  10. package/lib/commands/auth/index.js +1 -1
  11. package/lib/commands/auth/prompt.js +1 -1
  12. package/lib/commands/bff/detail.js +1 -1
  13. package/lib/commands/bff/exec.js +1 -1
  14. package/lib/commands/bff/index.js +1 -1
  15. package/lib/commands/cli-skill/index.js +1 -1
  16. package/lib/commands/common/config-policy.js +1 -1
  17. package/lib/commands/common/constraints.js +1 -1
  18. package/lib/commands/common/flags.js +1 -1
  19. package/lib/commands/config/definitions.js +1 -1
  20. package/lib/commands/config/shared.js +1 -1
  21. package/lib/commands/data/index.js +1 -1
  22. package/lib/commands/dataset/detail.js +1 -1
  23. package/lib/commands/dataset/index.js +1 -1
  24. package/lib/commands/dataset/list.js +1 -1
  25. package/lib/commands/dataset/sdk-doc.js +1 -1
  26. package/lib/commands/doctor.js +1 -1
  27. package/lib/commands/init.js +1 -1
  28. package/lib/commands/kb/index.js +1 -1
  29. package/lib/commands/logs/index.js +1 -1
  30. package/lib/commands/personal-bff/index.js +1 -1
  31. package/lib/commands/registry.js +1 -1
  32. package/lib/commands/schema.js +1 -1
  33. package/lib/commands/service/dynamic.js +1 -1
  34. package/lib/commands/service/index.js +1 -1
  35. package/lib/commands/service/registry.js +1 -1
  36. package/lib/commands/skill/index.js +1 -1
  37. package/lib/commands/skill/templates.js +1 -1
  38. package/lib/commands/skill/validate.js +1 -1
  39. package/lib/commands/sql/detail.js +1 -1
  40. package/lib/commands/sql/exec.js +1 -1
  41. package/lib/commands/sql/index.js +1 -1
  42. package/lib/commands/update.js +1 -1
  43. package/lib/commands/workspace/index.js +1 -1
  44. package/lib/config/schema.js +1 -1
  45. package/lib/constant/app.js +1 -1
  46. package/lib/constant/auth-mode.js +1 -1
  47. package/lib/constant/cli.js +1 -1
  48. package/lib/constant/defaults.js +1 -1
  49. package/lib/constant/distribution.js +1 -1
  50. package/lib/constant/domain.js +1 -1
  51. package/lib/constant/env.js +1 -1
  52. package/lib/constant/output.js +1 -1
  53. package/lib/constant/product.js +1 -1
  54. package/lib/constant/risk.js +1 -1
  55. package/lib/constant/url.js +1 -1
  56. package/lib/context.js +1 -1
  57. package/lib/core/api-client.js +1 -1
  58. package/lib/core/db-resolver.js +1 -1
  59. package/lib/core/sdk-client.js +1 -1
  60. package/lib/errors.js +1 -1
  61. package/lib/framework/build-all-flags.js +1 -1
  62. package/lib/framework/dryrun.js +1 -1
  63. package/lib/framework/flags.js +1 -1
  64. package/lib/framework/help.js +1 -1
  65. package/lib/framework/index.js +1 -1
  66. package/lib/framework/output.js +1 -1
  67. package/lib/framework/preparse.js +1 -1
  68. package/lib/framework/response.js +1 -1
  69. package/lib/framework/runner-confirmation.js +1 -1
  70. package/lib/framework/runner-error.js +1 -1
  71. package/lib/framework/runner.js +1 -1
  72. package/lib/framework/schema-export.js +1 -1
  73. package/lib/framework/types.js +1 -1
  74. package/lib/generated/build-info.js +1 -1
  75. package/lib/help.js +1 -1
  76. package/lib/skills/npx-skills-add.js +1 -1
  77. package/lib/skills/runtime-skill-sync.js +1 -1
  78. package/lib/utils/apply-jq-filter.js +1 -1
  79. package/lib/utils/logger.js +1 -1
  80. package/lib/utils/params.js +1 -1
  81. package/lib/utils/platform.js +1 -1
  82. package/lib/utils/update-notice.js +1 -1
  83. package/lib/utils/version.js +1 -1
  84. package/lib/utils/write-cli-side-channel.js +1 -1
  85. package/package.json +1 -1
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const a0_0x31dc9d=a0_0x594a;(function(_0x56db36,_0xb6316f){const _0x5d3d51=a0_0x594a,_0x1ffd75=_0x56db36();while(!![]){try{const _0x411b7f=-parseInt(_0x5d3d51(0xd0))/0x1*(parseInt(_0x5d3d51(0xc6))/0x2)+parseInt(_0x5d3d51(0xbd))/0x3*(-parseInt(_0x5d3d51(0xc7))/0x4)+parseInt(_0x5d3d51(0xb2))/0x5+parseInt(_0x5d3d51(0xdc))/0x6+-parseInt(_0x5d3d51(0xc5))/0x7*(parseInt(_0x5d3d51(0xce))/0x8)+parseInt(_0x5d3d51(0xd7))/0x9*(-parseInt(_0x5d3d51(0xb8))/0xa)+parseInt(_0x5d3d51(0xcc))/0xb;if(_0x411b7f===_0xb6316f)break;else _0x1ffd75['push'](_0x1ffd75['shift']());}catch(_0x26659f){_0x1ffd75['push'](_0x1ffd75['shift']());}}}(a0_0x3496,0x55e60));import{jsx as a0_0x2b44c2}from'react/jsx-runtime';import a0_0x2e0595 from'meow';import{render}from'ink';import{Help}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{buildConfigFromFlags,initGlobalEnvironment}from'./context.js';function a0_0x3496(){const _0x25022c=['exit','input','log','code','./framework/preparse.js','30760tOrHtR','cancelled','definition','stderr','error','114198mSsxBS','exitCode','ERR_STREAM_DESTROYED','unknownCommand','flags','defaultCommand','handler','\x0aCancelled.\x0a','8939qlfPbN','17086jbpjUm','32TsXsre','slice','message','catch','ExitPromptError','9964680GHTLSG','args','2584JxHlUQ','Error:\x20','1MhiKHh','corrected','\x20->\x20--','write','[preparse]\x20','assign','original','1647xSZcMW','help',':\x20--','hint','Unexpected\x20error:','3685776JrTnuZ','600570slmgxb'];a0_0x3496=function(){return _0x25022c;};return a0_0x3496();}import{isKnownService,getServiceEntry,findDefinition,getAllDefinitions}from'./commands/registry.js';import{generateDynamicServiceHelp,resolveDynamicServiceCommand}from'./commands/service/dynamic.js';import{runCommand,createPipelineEnv}from'./framework/runner.js';function a0_0x594a(_0x222f4d,_0x367bd9){_0x222f4d=_0x222f4d-0xb2;const _0x34963f=a0_0x3496();let _0x594a7c=_0x34963f[_0x222f4d];return _0x594a7c;}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_0x2e0595(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'version':getCliVersionDisplay()});void main()[a0_0x31dc9d(0xca)](handleError);async function main(){try{await run();}catch(_0x9d23b0){handleError(_0x9d23b0);}}async function run(){const _0x588ecc=a0_0x31dc9d;let _0x53005e=cli[_0x588ecc(0xb4)][0x0],_0x24cc2c=cli[_0x588ecc(0xb4)][0x1];const _0x2541c5=cli[_0x588ecc(0xc1)];try{const {correctFlags:_0x16e013}=await import(_0x588ecc(0xb7)),_0x4ec095=getAllDefinitions()['flatMap'](_0x5db88a=>_0x5db88a[_0x588ecc(0xc1)]??[]),{flags:_0xf4f12a,corrections:_0x2e9647}=_0x16e013(_0x2541c5,_0x4ec095);if(_0x2e9647['length']>0x0){for(const _0x4c67ea of _0x2e9647){process[_0x588ecc(0xbb)][_0x588ecc(0xd3)](_0x588ecc(0xd4)+_0x4c67ea[_0x588ecc(0xc3)]+_0x588ecc(0xd9)+_0x4c67ea[_0x588ecc(0xd6)]+_0x588ecc(0xd2)+_0x4c67ea[_0x588ecc(0xd1)]+'\x0a');}Object[_0x588ecc(0xd5)](_0x2541c5,_0xf4f12a);}}catch{}if(!_0x53005e){const {waitUntilExit:_0x16081d}=render(a0_0x2b44c2(Help,{}));await _0x16081d();return;}if(!isKnownService(_0x53005e)){const _0x45aa29=resolveDynamicServiceCommand(cli[_0x588ecc(0xb4)],_0x2541c5);if(_0x45aa29){if(_0x2541c5[_0x588ecc(0xd8)]){console[_0x588ecc(0xb5)](generateCommandHelp(_0x45aa29[_0x588ecc(0xba)]));return;}Object[_0x588ecc(0xd5)](_0x2541c5,_0x45aa29[_0x588ecc(0xc1)]);const _0x2859e7=buildConfigFromFlags(_0x2541c5);await initGlobalEnvironment(_0x2859e7);const _0x2341d6=createPipelineEnv(_0x2859e7,_0x2541c5);_0x2341d6[_0x588ecc(0xcd)]=_0x45aa29[_0x588ecc(0xcd)],await runCommand(_0x45aa29[_0x588ecc(0xba)],_0x2341d6);return;}if(_0x2541c5['help']){const _0x185e3a=generateDynamicServiceHelp(_0x53005e);if(_0x185e3a){console[_0x588ecc(0xb5)](_0x185e3a);return;}}const {waitUntilExit:_0x53464f}=render(a0_0x2b44c2(Help,{}));await _0x53464f();return;}const _0x5bb912=getServiceEntry(_0x53005e);if(!_0x24cc2c){if(_0x2541c5[_0x588ecc(0xd8)]){console[_0x588ecc(0xb5)](generateServiceHelp(_0x53005e));return;}if(_0x5bb912[_0x588ecc(0xc2)])_0x24cc2c=_0x5bb912[_0x588ecc(0xc2)];else{console[_0x588ecc(0xb5)](generateServiceHelp(_0x53005e));return;}}const _0x491366=findDefinition(_0x53005e,_0x24cc2c);!_0x491366&&(console[_0x588ecc(0xb5)](generateServiceHelp(_0x53005e)),handleError(CliErrors[_0x588ecc(0xc0)](_0x53005e+'\x20'+_0x24cc2c)));if(_0x2541c5['help']){console[_0x588ecc(0xb5)](generateCommandHelp(_0x491366));return;}const _0x40f700=buildConfigFromFlags(_0x2541c5);await initGlobalEnvironment(_0x40f700);const _0x5a868c=createPipelineEnv(_0x40f700,_0x2541c5);_0x5a868c['args']=cli[_0x588ecc(0xb4)][_0x588ecc(0xc8)](0x2),await runCommand(_0x491366,_0x5a868c);}function handleError(_0x39664c){const _0x1692e7=a0_0x31dc9d;if(_0x39664c instanceof CliError){_0x39664c[_0x1692e7(0xb6)]===_0x1692e7(0xb9)&&(process[_0x1692e7(0xbb)][_0x1692e7(0xd3)](_0x1692e7(0xc4)),process[_0x1692e7(0xb3)](0x0));console[_0x1692e7(0xbc)](_0x1692e7(0xcf)+_0x39664c[_0x1692e7(0xc9)]);if(_0x39664c[_0x1692e7(0xda)])console[_0x1692e7(0xbc)]('Hint:\x20'+_0x39664c[_0x1692e7(0xda)]);process[_0x1692e7(0xb3)](_0x39664c[_0x1692e7(0xbe)]);}isUserCancellation(_0x39664c)&&(process[_0x1692e7(0xbb)][_0x1692e7(0xd3)]('\x0aCancelled.\x0a'),process[_0x1692e7(0xb3)](0x0)),console[_0x1692e7(0xbc)](_0x1692e7(0xdb),_0x39664c),process['exit'](0x1);}function isUserCancellation(_0x35ba8e){const _0x31ca4e=a0_0x31dc9d;if(!(_0x35ba8e instanceof Error))return![];if(_0x35ba8e['name']===_0x31ca4e(0xcb))return!![];if(_0x35ba8e[_0x31ca4e(0xb6)]==='ERR_USE_AFTER_CLOSE')return!![];if(_0x35ba8e[_0x31ca4e(0xb6)]===_0x31ca4e(0xbf))return!![];return![];}
2
+ const a0_0x2f7d8c=a0_0xf505;function a0_0x5621(){const _0x3f0c3e=['[preparse]\x20','496tkBvBn','cancelled','help','17666OiBoqU','1306869jltTOB','assign',':\x20--','catch','flags','input','755pCuRAo','message','8XmZhOh','ERR_USE_AFTER_CLOSE','Error:\x20','handler','2ibCDWm','ExitPromptError','./framework/preparse.js','Hint:\x20','defaultCommand','9657LQqbmW','13332UTpHaK','exitCode','write','Unexpected\x20error:','exit','15372aYEYnC','7260820ZRQRVH','unknownCommand','error','998849PGyuCI','corrected','definition','hint','log','10819310bzUzUo','stderr','\x0aCancelled.\x0a','original','args','code'];a0_0x5621=function(){return _0x3f0c3e;};return a0_0x5621();}function a0_0xf505(_0x4cb2b3,_0x2cd18b){_0x4cb2b3=_0x4cb2b3-0xdb;const _0x5621db=a0_0x5621();let _0xf50529=_0x5621db[_0x4cb2b3];return _0xf50529;}(function(_0x35405b,_0x1fa5a0){const _0x5025ef=a0_0xf505,_0x4685b4=_0x35405b();while(!![]){try{const _0x2bde77=-parseInt(_0x5025ef(0xe6))/0x1*(-parseInt(_0x5025ef(0x102))/0x2)+parseInt(_0x5025ef(0xf6))/0x3*(parseInt(_0x5025ef(0xfe))/0x4)+parseInt(_0x5025ef(0xfc))/0x5*(parseInt(_0x5025ef(0xe2))/0x6)+-parseInt(_0x5025ef(0xe3))/0x7+parseInt(_0x5025ef(0xf2))/0x8*(parseInt(_0x5025ef(0xdc))/0x9)+parseInt(_0x5025ef(0xeb))/0xa+-parseInt(_0x5025ef(0xf5))/0xb*(parseInt(_0x5025ef(0xdd))/0xc);if(_0x2bde77===_0x1fa5a0)break;else _0x4685b4['push'](_0x4685b4['shift']());}catch(_0x327982){_0x4685b4['push'](_0x4685b4['shift']());}}}(a0_0x5621,0x8e8d0));import{jsx as a0_0x305673}from'react/jsx-runtime';import a0_0x421915 from'meow';import{render}from'ink';import{Help}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{buildConfigFromFlags,initGlobalEnvironment}from'./context.js';import{isKnownService,getServiceEntry,findDefinition,getAllDefinitions}from'./commands/registry.js';import{generateDynamicServiceHelp,resolveDynamicServiceCommand}from'./commands/service/dynamic.js';import{runCommand,createPipelineEnv}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';import{buildMeowFlags}from'./constant/cli.js';import{getCliVersionDisplay}from'./utils/version.js';const helpText=generateFullHelp(),cli=a0_0x421915(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'version':getCliVersionDisplay()});void main()[a0_0x2f7d8c(0xf9)](handleError);async function main(){try{await run();}catch(_0x3ee724){handleError(_0x3ee724);}}async function run(){const _0x3dba53=a0_0x2f7d8c;let _0x43c479=cli[_0x3dba53(0xfb)][0x0],_0x13a221=cli[_0x3dba53(0xfb)][0x1];const _0x437fe5=cli['flags'];try{const {correctFlags:_0x3e2d2c}=await import(_0x3dba53(0x104)),_0x16bed4=getAllDefinitions()['flatMap'](_0x2009b5=>_0x2009b5[_0x3dba53(0xfa)]??[]),{flags:_0x219f3b,corrections:_0x3aa85e}=_0x3e2d2c(_0x437fe5,_0x16bed4);if(_0x3aa85e['length']>0x0){for(const _0x267b6c of _0x3aa85e){process['stderr'][_0x3dba53(0xdf)](_0x3dba53(0xf1)+_0x267b6c[_0x3dba53(0x101)]+_0x3dba53(0xf8)+_0x267b6c[_0x3dba53(0xee)]+'\x20->\x20--'+_0x267b6c[_0x3dba53(0xe7)]+'\x0a');}Object[_0x3dba53(0xf7)](_0x437fe5,_0x219f3b);}}catch{}if(!_0x43c479){const {waitUntilExit:_0x217e5d}=render(a0_0x305673(Help,{}));await _0x217e5d();return;}if(!isKnownService(_0x43c479)){const _0x3abdd6=resolveDynamicServiceCommand(cli[_0x3dba53(0xfb)],_0x437fe5);if(_0x3abdd6){if(_0x437fe5[_0x3dba53(0xf4)]){console[_0x3dba53(0xea)](generateCommandHelp(_0x3abdd6[_0x3dba53(0xe8)]));return;}Object[_0x3dba53(0xf7)](_0x437fe5,_0x3abdd6['flags']);const _0x4741d4=buildConfigFromFlags(_0x437fe5);await initGlobalEnvironment(_0x4741d4);const _0x1268a1=createPipelineEnv(_0x4741d4,_0x437fe5);_0x1268a1[_0x3dba53(0xef)]=_0x3abdd6[_0x3dba53(0xef)],await runCommand(_0x3abdd6['definition'],_0x1268a1);return;}if(_0x437fe5[_0x3dba53(0xf4)]){const _0x4d1249=generateDynamicServiceHelp(_0x43c479);if(_0x4d1249){console[_0x3dba53(0xea)](_0x4d1249);return;}}const {waitUntilExit:_0x2d2662}=render(a0_0x305673(Help,{}));await _0x2d2662();return;}const _0xef0144=getServiceEntry(_0x43c479);if(!_0x13a221){if(_0x437fe5['help']){console['log'](generateServiceHelp(_0x43c479));return;}if(_0xef0144[_0x3dba53(0xdb)])_0x13a221=_0xef0144[_0x3dba53(0xdb)];else{console[_0x3dba53(0xea)](generateServiceHelp(_0x43c479));return;}}const _0xf05b3b=findDefinition(_0x43c479,_0x13a221);!_0xf05b3b&&(console[_0x3dba53(0xea)](generateServiceHelp(_0x43c479)),handleError(CliErrors[_0x3dba53(0xe4)](_0x43c479+'\x20'+_0x13a221)));if(_0x437fe5['help']){console['log'](generateCommandHelp(_0xf05b3b));return;}const _0x3520f6=buildConfigFromFlags(_0x437fe5);await initGlobalEnvironment(_0x3520f6);const _0x363f84=createPipelineEnv(_0x3520f6,_0x437fe5);_0x363f84['args']=cli['input']['slice'](0x2),await runCommand(_0xf05b3b,_0x363f84);}function handleError(_0x2d0572){const _0x402f27=a0_0x2f7d8c;if(_0x2d0572 instanceof CliError){_0x2d0572['code']===_0x402f27(0xf3)&&(process[_0x402f27(0xec)][_0x402f27(0xdf)]('\x0aCancelled.\x0a'),process[_0x402f27(0xe1)](0x0));console[_0x402f27(0xe5)](_0x402f27(0x100)+_0x2d0572[_0x402f27(0xfd)]);if(_0x2d0572[_0x402f27(0xe9)])console[_0x402f27(0xe5)](_0x402f27(0x105)+_0x2d0572['hint']);process[_0x402f27(0xe1)](_0x2d0572[_0x402f27(0xde)]);}isUserCancellation(_0x2d0572)&&(process[_0x402f27(0xec)][_0x402f27(0xdf)](_0x402f27(0xed)),process['exit'](0x0)),console[_0x402f27(0xe5)](_0x402f27(0xe0),_0x2d0572),process[_0x402f27(0xe1)](0x1);}function isUserCancellation(_0x4103a8){const _0x2447cf=a0_0x2f7d8c;if(!(_0x4103a8 instanceof Error))return![];if(_0x4103a8['name']===_0x2447cf(0x103))return!![];if(_0x4103a8[_0x2447cf(0xf0)]===_0x2447cf(0xff))return!![];if(_0x4103a8['code']==='ERR_STREAM_DESTROYED')return!![];return![];}
@@ -1 +1 @@
1
- const a1_0x37296f=a1_0x1494;(function(_0x4c4c41,_0x33329b){const _0x1870c4=a1_0x1494,_0x2518be=_0x4c4c41();while(!![]){try{const _0x35011a=-parseInt(_0x1870c4(0x20d))/0x1+-parseInt(_0x1870c4(0x204))/0x2+-parseInt(_0x1870c4(0x225))/0x3*(-parseInt(_0x1870c4(0x20f))/0x4)+parseInt(_0x1870c4(0x1ea))/0x5+-parseInt(_0x1870c4(0x23c))/0x6*(-parseInt(_0x1870c4(0x212))/0x7)+parseInt(_0x1870c4(0x200))/0x8*(parseInt(_0x1870c4(0x203))/0x9)+-parseInt(_0x1870c4(0x1eb))/0xa;if(_0x35011a===_0x33329b)break;else _0x2518be['push'](_0x2518be['shift']());}catch(_0x36baf3){_0x2518be['push'](_0x2518be['shift']());}}}(a1_0x2197,0xa11ea));import{CliErrors}from'../../errors.js';const CATEGORY_FLAG={'name':a1_0x37296f(0x22d),'type':'string','description':a1_0x37296f(0x1f3)},KEYWORD_FLAG={'name':a1_0x37296f(0x1f2),'type':'string','description':a1_0x37296f(0x22b)},DOC_CODE_FLAG={'name':a1_0x37296f(0x1fe),'type':a1_0x37296f(0x232),'required':!![],'description':a1_0x37296f(0x231)},DOCS=[{'code':a1_0x37296f(0x20e),'category':a1_0x37296f(0x1f4),'title':a1_0x37296f(0x224),'method':a1_0x37296f(0x1d6),'path':a1_0x37296f(0x22f),'summary':'分页获取数据集列表','whenToUse':a1_0x37296f(0x1ce),'pathParams':[],'queryParams':[],'bodySchema':a1_0x37296f(0x1fb),'responseHighlights':[a1_0x37296f(0x235),'paging.totalCount\x20gives\x20total\x20rows'],'examples':[a1_0x37296f(0x1c6)],'notes':[a1_0x37296f(0x21c)],'markdown':[a1_0x37296f(0x221),'',a1_0x37296f(0x1dd)]['join']('\x0a')},{'code':a1_0x37296f(0x213),'category':'dataset','title':'Dataset\x20detail','method':a1_0x37296f(0x214),'path':a1_0x37296f(0x1de),'summary':a1_0x37296f(0x21a),'whenToUse':'需要按数据集\x20code\x20获取字段、表信息或操作定义时使用','pathParams':[],'queryParams':[{'name':a1_0x37296f(0x1fe),'description':a1_0x37296f(0x1dc)}],'bodySchema':a1_0x37296f(0x1cf),'responseHighlights':[a1_0x37296f(0x233),a1_0x37296f(0x1d0)],'examples':[a1_0x37296f(0x209)],'notes':['If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.'],'markdown':[a1_0x37296f(0x1d9),'',a1_0x37296f(0x21b)][a1_0x37296f(0x21e)]('\x0a')},{'code':a1_0x37296f(0x1e7),'category':a1_0x37296f(0x1f4),'title':a1_0x37296f(0x22c),'method':a1_0x37296f(0x1d6),'path':a1_0x37296f(0x239),'summary':'条件过滤查询数据','whenToUse':a1_0x37296f(0x227),'pathParams':[{'name':a1_0x37296f(0x1e2),'description':'Current\x20app\x20code'},{'name':'datasetCode','description':a1_0x37296f(0x1dc)}],'queryParams':[],'bodySchema':a1_0x37296f(0x1cd),'responseHighlights':[a1_0x37296f(0x218),'paging\x20contains\x20pagination'],'examples':[a1_0x37296f(0x1e6)],'notes':[a1_0x37296f(0x217)],'markdown':[a1_0x37296f(0x201),'',a1_0x37296f(0x1d8)][a1_0x37296f(0x21e)]('\x0a')},{'code':'dataset_data_aggregate','category':a1_0x37296f(0x1f4),'title':a1_0x37296f(0x210),'method':a1_0x37296f(0x1d6),'path':'/api/{appCode}/{datasetCode}/aggregate','summary':a1_0x37296f(0x1f7),'whenToUse':a1_0x37296f(0x1f9),'pathParams':[{'name':a1_0x37296f(0x1e2),'description':a1_0x37296f(0x206)},{'name':a1_0x37296f(0x1e0),'description':a1_0x37296f(0x1dc)}],'queryParams':[],'bodySchema':a1_0x37296f(0x1c9),'responseHighlights':[a1_0x37296f(0x1cb),a1_0x37296f(0x211)],'examples':['lovrabet\x20data\x20aggregate\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}]}\x27'],'notes':[a1_0x37296f(0x1d7),'`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.'],'markdown':[a1_0x37296f(0x1ee),'',a1_0x37296f(0x1f0)][a1_0x37296f(0x21e)]('\x0a')},{'code':a1_0x37296f(0x1fc),'category':'dataset','title':'Get\x20one\x20dataset\x20record','method':a1_0x37296f(0x1d6),'path':a1_0x37296f(0x215),'summary':a1_0x37296f(0x1e1),'whenToUse':a1_0x37296f(0x1ff),'pathParams':[{'name':a1_0x37296f(0x1e2),'description':'Current\x20app\x20code'},{'name':'datasetCode','description':a1_0x37296f(0x1dc)}],'queryParams':[],'bodySchema':a1_0x37296f(0x222),'responseHighlights':[a1_0x37296f(0x219)],'examples':[a1_0x37296f(0x220)],'notes':['Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.'],'markdown':a1_0x37296f(0x1d3)},{'code':'dataset_data_create','category':'dataset','title':a1_0x37296f(0x1d2),'method':'POST','path':a1_0x37296f(0x1f5),'summary':a1_0x37296f(0x230),'whenToUse':a1_0x37296f(0x1f8),'pathParams':[{'name':a1_0x37296f(0x1e2),'description':a1_0x37296f(0x206)},{'name':'datasetCode','description':a1_0x37296f(0x1dc)}],'queryParams':[],'bodySchema':a1_0x37296f(0x1f6),'responseHighlights':[a1_0x37296f(0x1e9)],'examples':[a1_0x37296f(0x1e8)],'notes':[a1_0x37296f(0x1ef)],'markdown':a1_0x37296f(0x238)},{'code':a1_0x37296f(0x1e5),'category':'bf','title':a1_0x37296f(0x22a),'method':a1_0x37296f(0x214),'path':'/api/endpoint/{appCode}/functions','summary':a1_0x37296f(0x223),'whenToUse':a1_0x37296f(0x228),'pathParams':[{'name':'appCode','description':'Current\x20app\x20code'}],'queryParams':[],'bodySchema':a1_0x37296f(0x1cf),'responseHighlights':[a1_0x37296f(0x1da)],'examples':[a1_0x37296f(0x21f)],'notes':['CLI\x20has\x20typed\x20`bff\x20detail`\x20and\x20`bff\x20exec`\x20commands\x20for\x20endpoint\x20scripts.'],'markdown':a1_0x37296f(0x216)},{'code':a1_0x37296f(0x205),'category':'bf','title':a1_0x37296f(0x1df),'method':a1_0x37296f(0x1d6),'path':a1_0x37296f(0x237),'summary':'执行指定\x20BF\x20函数','whenToUse':'已经确认目标\x20BF\x20的\x20scriptName,且需要实际调用该\x20ENDPOINT\x20脚本完成业务操作时使用','pathParams':[{'name':a1_0x37296f(0x1e2),'description':'Current\x20app\x20code'},{'name':a1_0x37296f(0x23a),'description':a1_0x37296f(0x1d5)}],'queryParams':[],'bodySchema':'{\x22param\x22:\x22value\x22}','responseHighlights':[a1_0x37296f(0x1c8)],'examples':[a1_0x37296f(0x21d)],'notes':[a1_0x37296f(0x1ec)],'markdown':'##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.'},{'code':a1_0x37296f(0x229),'category':'custom_sql','title':a1_0x37296f(0x20c),'method':a1_0x37296f(0x1d6),'path':a1_0x37296f(0x236),'summary':'执行自定义\x20SQL','whenToUse':a1_0x37296f(0x20a),'pathParams':[],'queryParams':[],'bodySchema':'{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','responseHighlights':[a1_0x37296f(0x1ed)],'examples':[a1_0x37296f(0x23b)],'notes':[a1_0x37296f(0x202)],'markdown':a1_0x37296f(0x1c7)}];function entrySummary(_0x5058e8){const _0x4d31b8=a1_0x37296f;return{'code':_0x5058e8[_0x4d31b8(0x1fe)],'category':_0x5058e8[_0x4d31b8(0x22d)],'method':_0x5058e8[_0x4d31b8(0x1e3)],'path':_0x5058e8[_0x4d31b8(0x23d)],'summary':_0x5058e8[_0x4d31b8(0x1c5)],'whenToUse':_0x5058e8[_0x4d31b8(0x234)]};}export function listApiDocEntries(_0x2760ba={}){const _0x174f89=a1_0x37296f,_0x44a2fb=String(_0x2760ba[_0x174f89(0x22d)]||'')[_0x174f89(0x1ca)](),_0x5981f6=String(_0x2760ba[_0x174f89(0x1f2)]||'')[_0x174f89(0x1ca)]()[_0x174f89(0x226)]();return DOCS[_0x174f89(0x1fa)](_0x1b9525=>{const _0x43456c=_0x174f89;if(_0x44a2fb&&_0x1b9525['category']!==_0x44a2fb)return![];if(!_0x5981f6)return!![];return[_0x1b9525[_0x43456c(0x1fe)],_0x1b9525[_0x43456c(0x22d)],_0x1b9525['method'],_0x1b9525[_0x43456c(0x23d)],_0x1b9525['summary'],_0x1b9525[_0x43456c(0x234)],_0x1b9525[_0x43456c(0x1db)]][_0x43456c(0x21e)]('\x20')[_0x43456c(0x226)]()['includes'](_0x5981f6);})[_0x174f89(0x207)](entrySummary);}export function getApiDocDetail(_0x2086b7){const _0x390caf=a1_0x37296f,_0x4f7c3f=DOCS['find'](_0x302965=>_0x302965[_0x390caf(0x1fe)]===_0x2086b7);if(!_0x4f7c3f)throw CliErrors[_0x390caf(0x1cc)](_0x390caf(0x1e4)+_0x2086b7);return{..._0x4f7c3f};}const apiDocList={'service':a1_0x37296f(0x208),'command':a1_0x37296f(0x1fd),'description':'List\x20available\x20runtime\x20API\x20documentation\x20entries','risk':a1_0x37296f(0x20b),'requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0x1955cb){const _0x5178c9=a1_0x37296f,_0x249fdf=listApiDocEntries({'category':_0x1955cb[_0x5178c9(0x1f1)](_0x5178c9(0x22d)),'keyword':_0x1955cb['str'](_0x5178c9(0x1f2))});return{'ok':!![],'data':{'total':_0x249fdf[_0x5178c9(0x1d4)],'items':_0x249fdf}};}},apiDocDetail={'service':a1_0x37296f(0x208),'command':a1_0x37296f(0x22e),'description':a1_0x37296f(0x1d1),'risk':a1_0x37296f(0x20b),'requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0xe406fd){const _0x4a7b55=a1_0x37296f;return{'ok':!![],'data':getApiDocDetail(_0xe406fd[_0x4a7b55(0x1f1)]('code'))};}};export const apiDocDefinitions=[apiDocList,apiDocDetail];function a1_0x1494(_0xb0666a,_0x5ef1a5){_0xb0666a=_0xb0666a-0x1c5;const _0x2197e5=a1_0x2197();let _0x1494bf=_0x2197e5[_0xb0666a];return _0x1494bf;}function a1_0x2197(){const _0x270c81=['需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用','filter','{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','dataset_data_get_one','list','code','已经知道记录\x20id,需要按数据集读取单条业务数据时使用','3558664gRzARJ','##\x20Filter\x20dataset\x20data','Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.','9lxGOCn','1634470QbtYdK','bf_execute','Current\x20app\x20code','map','api-doc','lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>','已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','read','Execute\x20custom\x20SQL','561590ovigeF','dataset_list','4mpZgDt','Aggregate\x20dataset\x20data','where\x20filters\x20before\x20aggregation','91jOLHkw','dataset_detail','GET','/api/{appCode}/{datasetCode}/getOne','##\x20List\x20BF\x20endpoint\x20functions\x0a\x0aDiscover\x20executable\x20endpoint\x20functions.','Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.','tableData\x20contains\x20records','Returns\x20one\x20matching\x20business\x20record','获取数据集详情','Inspect\x20field\x20names\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.','CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.','lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27','join','lovrabet\x20bff\x20detail\x20--id\x20<scriptId>\x20--appcode\x20<appCode>','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27','##\x20List\x20datasets','{\x22id\x22:123}','获取应用下可调用的\x20BF\x20函数列表','List\x20datasets','453012diKURP','toLowerCase','需要携带\x20where、orderBy、分页等条件读取业务数据时使用','需要先确认当前应用有哪些可执行的\x20BF/ENDPOINT\x20函数,以及收敛可用\x20scriptName\x20时使用','custom_sql_execute','List\x20BF\x20endpoint\x20functions','Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text','Filter\x20dataset\x20data','category','detail','/api/dataset/get-dataset-list-by-app-code','创建数据','API\x20doc\x20code,\x20for\x20example\x20dataset_list','string','fields/properties\x20describe\x20data\x20shape','whenToUse','tableData\x20contains\x20dataset\x20id/code/name','/api/custom/executeSql','/api/endpoint/{appCode}/{scriptName}','##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.','/api/{appCode}/{datasetCode}/filter','scriptName','lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27','589830cFnfGX','path','summary','lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress','##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.','Returns\x20script\x20business\x20payload','{\x22aggregate\x22:[{\x22column\x22:\x20\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','trim','result\x20rows\x20contain\x20aggregate\x20aliases','validation','{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','None','operations\x20describes\x20runtime\x20APIs','Show\x20runtime\x20API\x20documentation\x20by\x20code','Create\x20dataset\x20record','##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.','length','Endpoint\x20function\x20name','POST','Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.','##\x20Dataset\x20detail','Returns\x20endpoint\x20functionName/id/description','title','32-character\x20dataset\x20code','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.','/api/dataset/getOneByCode?code={datasetCode}','Execute\x20BF\x20endpoint\x20function','datasetCode','查询单条数据','appCode','method','API\x20doc\x20code\x20not\x20found:\x20','bf_function_list','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:5}\x27','dataset_data_filter','lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27','Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result','5716440mKDLHi','9783190xWxtug','Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.','Returns\x20SQL\x20execution\x20payload','##\x20Aggregate\x20dataset\x20data','This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.','str','keyword','Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset','dataset','/api/{appCode}/{datasetCode}/create','{\x22fieldName\x22:\x22value\x22}','聚合查询数据集数据','需要向指定数据集新增一条业务数据时使用'];a1_0x2197=function(){return _0x270c81;};return a1_0x2197();}
1
+ const a1_0x205339=a1_0x4b63;(function(_0x12b6a8,_0x42996d){const _0x1cc1c3=a1_0x4b63,_0x45a2d5=_0x12b6a8();while(!![]){try{const _0x35f8c7=parseInt(_0x1cc1c3(0x1d7))/0x1+parseInt(_0x1cc1c3(0x1ca))/0x2+parseInt(_0x1cc1c3(0x1e7))/0x3+-parseInt(_0x1cc1c3(0x1f4))/0x4*(parseInt(_0x1cc1c3(0x210))/0x5)+-parseInt(_0x1cc1c3(0x1d1))/0x6+parseInt(_0x1cc1c3(0x20f))/0x7+parseInt(_0x1cc1c3(0x1b6))/0x8*(-parseInt(_0x1cc1c3(0x1ed))/0x9);if(_0x35f8c7===_0x42996d)break;else _0x45a2d5['push'](_0x45a2d5['shift']());}catch(_0x448111){_0x45a2d5['push'](_0x45a2d5['shift']());}}}(a1_0x8007,0x844ab));import{CliErrors}from'../../errors.js';const CATEGORY_FLAG={'name':'category','type':a1_0x205339(0x1c3),'description':a1_0x205339(0x204)},KEYWORD_FLAG={'name':a1_0x205339(0x1ce),'type':a1_0x205339(0x1c3),'description':a1_0x205339(0x1ee)},DOC_CODE_FLAG={'name':a1_0x205339(0x1ef),'type':a1_0x205339(0x1c3),'required':!![],'description':'API\x20doc\x20code,\x20for\x20example\x20dataset_list'},DOCS=[{'code':a1_0x205339(0x1d0),'category':a1_0x205339(0x1c9),'title':a1_0x205339(0x1ea),'method':a1_0x205339(0x1c0),'path':'/api/dataset/get-dataset-list-by-app-code','summary':a1_0x205339(0x1d6),'whenToUse':a1_0x205339(0x1c7),'pathParams':[],'queryParams':[],'bodySchema':a1_0x205339(0x1c4),'responseHighlights':[a1_0x205339(0x1c5),a1_0x205339(0x1bb)],'examples':['lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress'],'notes':[a1_0x205339(0x1be)],'markdown':[a1_0x205339(0x1e3),'','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.'][a1_0x205339(0x1fa)]('\x0a')},{'code':a1_0x205339(0x1cb),'category':a1_0x205339(0x1c9),'title':'Dataset\x20detail','method':'GET','path':a1_0x205339(0x1f8),'summary':'获取数据集详情','whenToUse':a1_0x205339(0x211),'pathParams':[],'queryParams':[{'name':'code','description':'32-character\x20dataset\x20code'}],'bodySchema':a1_0x205339(0x1dd),'responseHighlights':[a1_0x205339(0x1ba),a1_0x205339(0x1d8)],'examples':[a1_0x205339(0x208)],'notes':['If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.'],'markdown':['##\x20Dataset\x20detail','',a1_0x205339(0x1d2)][a1_0x205339(0x1fa)]('\x0a')},{'code':a1_0x205339(0x1d4),'category':a1_0x205339(0x1c9),'title':a1_0x205339(0x1f1),'method':'POST','path':a1_0x205339(0x1cd),'summary':a1_0x205339(0x1fb),'whenToUse':a1_0x205339(0x1fc),'pathParams':[{'name':a1_0x205339(0x1e5),'description':a1_0x205339(0x1f0)},{'name':a1_0x205339(0x1df),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':'{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','responseHighlights':[a1_0x205339(0x1e8),a1_0x205339(0x1b2)],'examples':['lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:5}\x27'],'notes':[a1_0x205339(0x1e1)],'markdown':['##\x20Filter\x20dataset\x20data','',a1_0x205339(0x1da)][a1_0x205339(0x1fa)]('\x0a')},{'code':'dataset_data_aggregate','category':a1_0x205339(0x1c9),'title':a1_0x205339(0x1eb),'method':a1_0x205339(0x1c0),'path':a1_0x205339(0x1db),'summary':a1_0x205339(0x1c2),'whenToUse':'需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用','pathParams':[{'name':a1_0x205339(0x1e5),'description':a1_0x205339(0x1f0)},{'name':a1_0x205339(0x1df),'description':a1_0x205339(0x20a)}],'queryParams':[],'bodySchema':'{\x22aggregate\x22:[{\x22column\x22:\x20\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','responseHighlights':[a1_0x205339(0x1de),a1_0x205339(0x1f7)],'examples':[a1_0x205339(0x1f5)],'notes':[a1_0x205339(0x1c8),a1_0x205339(0x1fd)],'markdown':[a1_0x205339(0x206),'',a1_0x205339(0x1b9)][a1_0x205339(0x1fa)]('\x0a')},{'code':'dataset_data_get_one','category':a1_0x205339(0x1c9),'title':'Get\x20one\x20dataset\x20record','method':a1_0x205339(0x1c0),'path':a1_0x205339(0x1e4),'summary':a1_0x205339(0x209),'whenToUse':'已经知道记录\x20id,需要按数据集读取单条业务数据时使用','pathParams':[{'name':a1_0x205339(0x1e5),'description':a1_0x205339(0x1f0)},{'name':a1_0x205339(0x1df),'description':a1_0x205339(0x20a)}],'queryParams':[],'bodySchema':'{\x22id\x22:123}','responseHighlights':[a1_0x205339(0x1e6)],'examples':['lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27'],'notes':[a1_0x205339(0x1c6)],'markdown':a1_0x205339(0x1f2)},{'code':a1_0x205339(0x1bf),'category':a1_0x205339(0x1c9),'title':a1_0x205339(0x1bd),'method':a1_0x205339(0x1c0),'path':'/api/{appCode}/{datasetCode}/create','summary':a1_0x205339(0x20d),'whenToUse':'需要向指定数据集新增一条业务数据时使用','pathParams':[{'name':a1_0x205339(0x1e5),'description':a1_0x205339(0x1f0)},{'name':a1_0x205339(0x1df),'description':a1_0x205339(0x20a)}],'queryParams':[],'bodySchema':a1_0x205339(0x1f6),'responseHighlights':['Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result'],'examples':['lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27'],'notes':[a1_0x205339(0x203)],'markdown':'##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.'},{'code':a1_0x205339(0x1e9),'category':'bf','title':'List\x20BF\x20endpoint\x20functions','method':a1_0x205339(0x1b5),'path':a1_0x205339(0x200),'summary':'获取应用下可调用的\x20BF\x20函数列表','whenToUse':'需要先确认当前应用有哪些可执行的\x20BF/ENDPOINT\x20函数,以及收敛可用\x20scriptName\x20时使用','pathParams':[{'name':a1_0x205339(0x1e5),'description':a1_0x205339(0x1f0)}],'queryParams':[],'bodySchema':a1_0x205339(0x1dd),'responseHighlights':[a1_0x205339(0x205)],'examples':['lovrabet\x20bff\x20detail\x20--id\x20<scriptId>\x20--appcode\x20<appCode>'],'notes':['CLI\x20has\x20typed\x20`bff\x20detail`\x20and\x20`bff\x20exec`\x20commands\x20for\x20endpoint\x20scripts.'],'markdown':a1_0x205339(0x1af)},{'code':'bf_execute','category':'bf','title':a1_0x205339(0x1fe),'method':a1_0x205339(0x1c0),'path':a1_0x205339(0x201),'summary':'执行指定\x20BF\x20函数','whenToUse':a1_0x205339(0x202),'pathParams':[{'name':'appCode','description':a1_0x205339(0x1f0)},{'name':'scriptName','description':'Endpoint\x20function\x20name'}],'queryParams':[],'bodySchema':a1_0x205339(0x1e0),'responseHighlights':[a1_0x205339(0x1d9)],'examples':[a1_0x205339(0x1b8)],'notes':['Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.'],'markdown':'##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.'},{'code':'custom_sql_execute','category':'custom_sql','title':a1_0x205339(0x1b1),'method':a1_0x205339(0x1c0),'path':'/api/custom/executeSql','summary':a1_0x205339(0x1cc),'whenToUse':a1_0x205339(0x20c),'pathParams':[],'queryParams':[],'bodySchema':a1_0x205339(0x1b0),'responseHighlights':['Returns\x20SQL\x20execution\x20payload'],'examples':['lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27'],'notes':['Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.'],'markdown':a1_0x205339(0x20b)}];function entrySummary(_0x5a12e6){const _0x14561a=a1_0x205339;return{'code':_0x5a12e6['code'],'category':_0x5a12e6[_0x14561a(0x1dc)],'method':_0x5a12e6[_0x14561a(0x212)],'path':_0x5a12e6[_0x14561a(0x207)],'summary':_0x5a12e6['summary'],'whenToUse':_0x5a12e6[_0x14561a(0x1b4)]};}export function listApiDocEntries(_0x75493d={}){const _0x1a93a5=a1_0x205339,_0x401b92=String(_0x75493d[_0x1a93a5(0x1dc)]||'')[_0x1a93a5(0x1f3)](),_0x44f89d=String(_0x75493d[_0x1a93a5(0x1ce)]||'')[_0x1a93a5(0x1f3)]()['toLowerCase']();return DOCS['filter'](_0x6813a6=>{const _0x2c3ba8=_0x1a93a5;if(_0x401b92&&_0x6813a6[_0x2c3ba8(0x1dc)]!==_0x401b92)return![];if(!_0x44f89d)return!![];return[_0x6813a6['code'],_0x6813a6[_0x2c3ba8(0x1dc)],_0x6813a6[_0x2c3ba8(0x212)],_0x6813a6['path'],_0x6813a6['summary'],_0x6813a6[_0x2c3ba8(0x1b4)],_0x6813a6[_0x2c3ba8(0x1c1)]]['join']('\x20')[_0x2c3ba8(0x1d3)]()[_0x2c3ba8(0x20e)](_0x44f89d);})[_0x1a93a5(0x1b3)](entrySummary);}export function getApiDocDetail(_0x3c356e){const _0x28c341=a1_0x205339,_0x2988f4=DOCS['find'](_0x47b7f7=>_0x47b7f7['code']===_0x3c356e);if(!_0x2988f4)throw CliErrors[_0x28c341(0x1b7)](_0x28c341(0x1e2)+_0x3c356e);return{..._0x2988f4};}function a1_0x8007(){const _0x5d490e=['/api/dataset/getOneByCode?code={datasetCode}','list','join','条件过滤查询数据','需要携带\x20where、orderBy、分页等条件读取业务数据时使用','`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','Execute\x20BF\x20endpoint\x20function','Show\x20runtime\x20API\x20documentation\x20by\x20code','/api/endpoint/{appCode}/functions','/api/endpoint/{appCode}/{scriptName}','已经确认目标\x20BF\x20的\x20scriptName,且需要实际调用该\x20ENDPOINT\x20脚本完成业务操作时使用','This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.','Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset','Returns\x20endpoint\x20functionName/id/description','##\x20Aggregate\x20dataset\x20data','path','lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>','查询单条数据','32-character\x20dataset\x20code','##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.','已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','创建数据','includes','5604074ZcmrTo','2607895cRtpNM','需要按数据集\x20code\x20获取字段、表信息或操作定义时使用','method','str','##\x20List\x20BF\x20endpoint\x20functions\x0a\x0aDiscover\x20executable\x20endpoint\x20functions.','{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','Execute\x20custom\x20SQL','paging\x20contains\x20pagination','map','whenToUse','GET','8jjfZUW','validation','lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.','fields/properties\x20describe\x20data\x20shape','paging.totalCount\x20gives\x20total\x20rows','api-doc','Create\x20dataset\x20record','CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.','dataset_data_create','POST','title','聚合查询数据集数据','string','{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','tableData\x20contains\x20dataset\x20id/code/name','Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.','需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.','dataset','1826606TpEKOf','dataset_detail','执行自定义\x20SQL','/api/{appCode}/{datasetCode}/filter','keyword','read','dataset_list','2598210CggHLt','Inspect\x20field\x20names\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.','toLowerCase','dataset_data_filter','length','分页获取数据集列表','64193DpJKYA','operations\x20describes\x20runtime\x20APIs','Returns\x20script\x20business\x20payload','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.','/api/{appCode}/{datasetCode}/aggregate','category','None','result\x20rows\x20contain\x20aggregate\x20aliases','datasetCode','{\x22param\x22:\x22value\x22}','Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.','API\x20doc\x20code\x20not\x20found:\x20','##\x20List\x20datasets','/api/{appCode}/{datasetCode}/getOne','appCode','Returns\x20one\x20matching\x20business\x20record','875268SRbIuc','tableData\x20contains\x20records','bf_function_list','List\x20datasets','Aggregate\x20dataset\x20data','List\x20available\x20runtime\x20API\x20documentation\x20entries','5160177NuVfKG','Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text','code','Current\x20app\x20code','Filter\x20dataset\x20data','##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.','trim','4DcTBeP','lovrabet\x20data\x20aggregate\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}]}\x27','{\x22fieldName\x22:\x22value\x22}','where\x20filters\x20before\x20aggregation'];a1_0x8007=function(){return _0x5d490e;};return a1_0x8007();}function a1_0x4b63(_0x1e29f2,_0x44be30){_0x1e29f2=_0x1e29f2-0x1af;const _0x80077=a1_0x8007();let _0x4b63ba=_0x80077[_0x1e29f2];return _0x4b63ba;}const apiDocList={'service':'api-doc','command':a1_0x205339(0x1f9),'description':a1_0x205339(0x1ec),'risk':'read','requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0x412878){const _0x5b5878=a1_0x205339,_0x21ea8a=listApiDocEntries({'category':_0x412878[_0x5b5878(0x213)](_0x5b5878(0x1dc)),'keyword':_0x412878[_0x5b5878(0x213)](_0x5b5878(0x1ce))});return{'ok':!![],'data':{'total':_0x21ea8a[_0x5b5878(0x1d5)],'items':_0x21ea8a}};}},apiDocDetail={'service':a1_0x205339(0x1bc),'command':'detail','description':a1_0x205339(0x1ff),'risk':a1_0x205339(0x1cf),'requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0x134e62){const _0x5377a9=a1_0x205339;return{'ok':!![],'data':getApiDocDetail(_0x134e62[_0x5377a9(0x213)](_0x5377a9(0x1ef)))};}};export const apiDocDefinitions=[apiDocList,apiDocDetail];
@@ -1 +1 @@
1
- (function(_0x5a8793,_0x179d9e){const _0x2d1607=a2_0x1640,_0x4316c2=_0x5a8793();while(!![]){try{const _0x3ccdb6=-parseInt(_0x2d1607(0xce))/0x1+parseInt(_0x2d1607(0xdc))/0x2*(parseInt(_0x2d1607(0xd0))/0x3)+-parseInt(_0x2d1607(0xcf))/0x4*(-parseInt(_0x2d1607(0xda))/0x5)+-parseInt(_0x2d1607(0xd6))/0x6+parseInt(_0x2d1607(0xde))/0x7+parseInt(_0x2d1607(0xdf))/0x8+parseInt(_0x2d1607(0xe5))/0x9*(-parseInt(_0x2d1607(0xe1))/0xa);if(_0x3ccdb6===_0x179d9e)break;else _0x4316c2['push'](_0x4316c2['shift']());}catch(_0x186a8d){_0x4316c2['push'](_0x4316c2['shift']());}}}(a2_0x4002,0x954d6));import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';import{dirname,resolve}from'node:path';import{PRODUCT_CONFIG}from'../../constant/product.js';function a2_0x1640(_0xfc7218,_0x16160e){_0xfc7218=_0xfc7218-0xcb;const _0x40025c=a2_0x4002();let _0x16405b=_0x40025c[_0xfc7218];return _0x16405b;}import{isRuntimeAccessibleApp}from'../../commands/app/eligibility.js';export function fingerprintAccessKey(_0x462c12){const _0x1a17f2=a2_0x1640,_0x5b9d32=_0x462c12['trim'](),_0x277d78=_0x5b9d32[_0x1a17f2(0xd8)](-0x6)||'unknown',_0x362fd4=createHash(_0x1a17f2(0xd5))[_0x1a17f2(0xdd)](_0x5b9d32)[_0x1a17f2(0xd1)]('hex')[_0x1a17f2(0xd8)](0x0,0xc);return'ak_'+_0x277d78+'_'+_0x362fd4;}export function getAppCacheFilePath(_0x2c13bf,_0x3d4b9f){const _0x333865=a2_0x1640;return resolve(homedir(),PRODUCT_CONFIG[_0x333865(0xd2)],_0x333865(0xe4),_0x2c13bf,fingerprintAccessKey(_0x3d4b9f),_0x333865(0xe6));}export function readCachedAppList(_0x184398,_0x57ef91){const _0x83604=a2_0x1640;if(!_0x57ef91?.['trim']())return null;const _0x73eb1d=getAppCacheFilePath(_0x184398,_0x57ef91);if(!existsSync(_0x73eb1d))return null;try{const _0x1e295c=readFileSync(_0x73eb1d,'utf8');if(!_0x1e295c[_0x83604(0xdb)]())return null;const _0x274f30=JSON[_0x83604(0xcd)](_0x1e295c);if(!Array[_0x83604(0xe7)](_0x274f30[_0x83604(0xd3)]))return null;return _0x274f30;}catch{return null;}}export function writeCachedAppList(_0x5878bb,_0x12dd3f,_0x3a895d){const _0xb224e5=a2_0x1640,_0x2fc150=getAppCacheFilePath(_0x5878bb,_0x12dd3f),_0xaccaea=dirname(_0x2fc150);!existsSync(_0xaccaea)&&mkdirSync(_0xaccaea,{'recursive':!![]});const _0x3e5d18=_0x2fc150+'.tmp';try{writeFileSync(_0x3e5d18,JSON[_0xb224e5(0xd4)](_0x3a895d,null,0x2)+'\x0a',{'encoding':_0xb224e5(0xe2),'mode':0x180});try{renameSync(_0x3e5d18,_0x2fc150);}catch(_0x1f6a2b){if(_0x1f6a2b['code']===_0xb224e5(0xcc)||_0x1f6a2b[_0xb224e5(0xe3)]===_0xb224e5(0xcb)||_0x1f6a2b[_0xb224e5(0xe3)]===_0xb224e5(0xd9)){writeFileSync(_0x2fc150,JSON['stringify'](_0x3a895d,null,0x2)+'\x0a',{'encoding':_0xb224e5(0xe2)});try{unlinkSync(_0x3e5d18);}catch{}}else throw _0x1f6a2b;}}catch(_0x13dcd7){try{unlinkSync(_0x3e5d18);}catch{}throw _0x13dcd7;}return _0x2fc150;}export function resolveCachedAppCode(_0x78fbea,_0x5151aa,_0x41967c){const _0x3b4669=a2_0x1640;if(!_0x78fbea)return undefined;const _0x2c486c=readCachedAppList(_0x5151aa,_0x41967c),_0x364cbf=_0x2c486c?.[_0x3b4669(0xd3)][_0x3b4669(0xd7)](_0x1f2ef0=>_0x1f2ef0[_0x3b4669(0xe0)]===_0x78fbea&&isRuntimeAccessibleApp(_0x1f2ef0));return _0x364cbf?.['appCode']?.[_0x3b4669(0xdb)]()||undefined;}function a2_0x4002(){const _0x201329=['digest','homeDirName','items','stringify','sha256','722232YuWbcC','find','slice','EACCES','1067350xTjvUR','trim','1866cklWzQ','update','3915471AQfBHl','4882712YyLjmw','appName','3170IkzFzS','utf8','code','cache','23031szbrcg','my-apps.json','isArray','EXDEV','EPERM','parse','387716XTMpna','4cPiUup','1761ltnBmR'];a2_0x4002=function(){return _0x201329;};return a2_0x4002();}
1
+ (function(_0x46d1aa,_0x34df28){const _0x24ca0=a2_0x1f91,_0x2a2669=_0x46d1aa();while(!![]){try{const _0x578750=-parseInt(_0x24ca0(0x151))/0x1+-parseInt(_0x24ca0(0x154))/0x2*(-parseInt(_0x24ca0(0x13d))/0x3)+-parseInt(_0x24ca0(0x153))/0x4*(parseInt(_0x24ca0(0x14d))/0x5)+-parseInt(_0x24ca0(0x142))/0x6*(-parseInt(_0x24ca0(0x152))/0x7)+parseInt(_0x24ca0(0x145))/0x8*(-parseInt(_0x24ca0(0x148))/0x9)+parseInt(_0x24ca0(0x144))/0xa*(-parseInt(_0x24ca0(0x140))/0xb)+parseInt(_0x24ca0(0x14f))/0xc*(parseInt(_0x24ca0(0x15a))/0xd);if(_0x578750===_0x34df28)break;else _0x2a2669['push'](_0x2a2669['shift']());}catch(_0x3c1a5f){_0x2a2669['push'](_0x2a2669['shift']());}}}(a2_0x3282,0xe1d37));import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';import{dirname,resolve}from'node:path';import{PRODUCT_CONFIG}from'../../constant/product.js';function a2_0x3282(){const _0x6533e=['trim','my-apps.json','11543769ehrfsk','cache','sha256','homeDirName','isArray','180470tmpcZO','appName','24jcrwdr','EXDEV','1105544flglCi','84qbpwlE','20flwEEu','2mCSJeb','items','stringify','ak_','find','slice','11718681YNzFMS','2591166LMhlPf','EPERM','unknown','11FtOsBr','code','485358WkaWSr','utf8','1436740Zjrsql','8WDfIdh'];a2_0x3282=function(){return _0x6533e;};return a2_0x3282();}import{isRuntimeAccessibleApp}from'../../commands/app/eligibility.js';export function fingerprintAccessKey(_0x3364ee){const _0x21fdbc=a2_0x1f91,_0x10627e=_0x3364ee['trim'](),_0xb018d2=_0x10627e[_0x21fdbc(0x159)](-0x6)||_0x21fdbc(0x13f),_0x53b0b8=createHash(_0x21fdbc(0x14a))['update'](_0x10627e)['digest']('hex')[_0x21fdbc(0x159)](0x0,0xc);return _0x21fdbc(0x157)+_0xb018d2+'_'+_0x53b0b8;}export function getAppCacheFilePath(_0x42d8f9,_0xcc9bad){const _0x4df68f=a2_0x1f91;return resolve(homedir(),PRODUCT_CONFIG[_0x4df68f(0x14b)],_0x4df68f(0x149),_0x42d8f9,fingerprintAccessKey(_0xcc9bad),_0x4df68f(0x147));}function a2_0x1f91(_0x4003b0,_0x59c606){_0x4003b0=_0x4003b0-0x13d;const _0x3282da=a2_0x3282();let _0x1f91b2=_0x3282da[_0x4003b0];return _0x1f91b2;}export function readCachedAppList(_0x3f7d6f,_0x562bec){const _0x47e6fa=a2_0x1f91;if(!_0x562bec?.[_0x47e6fa(0x146)]())return null;const _0xf4570a=getAppCacheFilePath(_0x3f7d6f,_0x562bec);if(!existsSync(_0xf4570a))return null;try{const _0x3600e6=readFileSync(_0xf4570a,_0x47e6fa(0x143));if(!_0x3600e6[_0x47e6fa(0x146)]())return null;const _0x11bf01=JSON['parse'](_0x3600e6);if(!Array[_0x47e6fa(0x14c)](_0x11bf01['items']))return null;return _0x11bf01;}catch{return null;}}export function writeCachedAppList(_0x267e01,_0x569935,_0x55cf67){const _0x21a139=a2_0x1f91,_0x5c107a=getAppCacheFilePath(_0x267e01,_0x569935),_0xf700be=dirname(_0x5c107a);!existsSync(_0xf700be)&&mkdirSync(_0xf700be,{'recursive':!![]});const _0x55bf30=_0x5c107a+'.tmp';try{writeFileSync(_0x55bf30,JSON[_0x21a139(0x156)](_0x55cf67,null,0x2)+'\x0a',{'encoding':_0x21a139(0x143),'mode':0x180});try{renameSync(_0x55bf30,_0x5c107a);}catch(_0x576f39){if(_0x576f39[_0x21a139(0x141)]===_0x21a139(0x13e)||_0x576f39[_0x21a139(0x141)]===_0x21a139(0x150)||_0x576f39['code']==='EACCES'){writeFileSync(_0x5c107a,JSON[_0x21a139(0x156)](_0x55cf67,null,0x2)+'\x0a',{'encoding':_0x21a139(0x143)});try{unlinkSync(_0x55bf30);}catch{}}else throw _0x576f39;}}catch(_0x341cb7){try{unlinkSync(_0x55bf30);}catch{}throw _0x341cb7;}return _0x5c107a;}export function resolveCachedAppCode(_0x2f45ce,_0x3983d8,_0x2f7495){const _0x35f97d=a2_0x1f91;if(!_0x2f45ce)return undefined;const _0x1daba4=readCachedAppList(_0x3983d8,_0x2f7495),_0xb85487=_0x1daba4?.[_0x35f97d(0x155)][_0x35f97d(0x158)](_0x35e99b=>_0x35e99b[_0x35f97d(0x14e)]===_0x2f45ce&&isRuntimeAccessibleApp(_0x35e99b));return _0xb85487?.['appCode']?.[_0x35f97d(0x146)]()||undefined;}
@@ -1 +1 @@
1
- const a3_0x54577e=a3_0x55ce;(function(_0x14381e,_0x5de3e4){const _0x38ad31=a3_0x55ce,_0x230a84=_0x14381e();while(!![]){try{const _0x4c4607=-parseInt(_0x38ad31(0x18c))/0x1+parseInt(_0x38ad31(0x16d))/0x2+-parseInt(_0x38ad31(0x1a9))/0x3+parseInt(_0x38ad31(0x187))/0x4*(parseInt(_0x38ad31(0x1ab))/0x5)+parseInt(_0x38ad31(0x171))/0x6*(parseInt(_0x38ad31(0x192))/0x7)+parseInt(_0x38ad31(0x1ae))/0x8+parseInt(_0x38ad31(0x1b5))/0x9;if(_0x4c4607===_0x5de3e4)break;else _0x230a84['push'](_0x230a84['shift']());}catch(_0x4190ae){_0x230a84['push'](_0x230a84['shift']());}}}(a3_0x54c4,0xef768));import{CliErrors}from'../../errors.js';import{initCreateFlagDefs,initImportFlagDefs,runInit,runInitImport}from'../../commands/init.js';import{getEnv,RUNTIME_ENV_VALUES}from'../../constant/env.js';import{buildAppProfileListFields}from'../../config/schema.js';import{CLI_BIN_NAME,readConfig,writeConfig,scopeLabel,enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';function a3_0x54c4(){const _0x300dfc=['join','.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.','init','filter','app','args','push','use','import','Refreshed\x20app\x20cache\x20with\x20','source','\x20workspace\x20use\x20--app\x20<name>\x20[--env\x20daily]','4847022MJpxtI','nonInteractive','577585gSSRsP','string','mergedCli','5395912rPsGwq','../../commands/app/remote-source.js','Missing\x20app\x20name.','cachePath','entries','Deprecated:\x20use\x20workspace\x20init\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','Read\x20from\x20local\x20cache\x20only','21712572SgqrRb','\x22\x20not\x20found.','Target\x20environment\x20(default:\x20current\x20env)','raw','i18nInfo','isArray','include-unpublished','name','Use\x20`','defaultApp','local','production','Usage:\x20','items','Deprecated:\x20use\x20workspace\x20use\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','bool','pull','`\x20instead.','1641490XRwTEp','read','appOwnerName','write','36mNLbWZ','map','\x20app(s)\x20for\x20env=\x22','fetchedAt','.appcode\x20to\x20.lovrabet.json.','no-cache','\x20is\x20deprecated.\x20Use\x20`','Read\x20app\x20list\x20from\x20local\x20cache\x20only','appcode','from','Loaded\x20','../../context.js','env','\x20app\x20use\x20<name>\x20[--global]','../../commands/app/cache.js','\x20workspace\x20init\x20--appcode\x20<code>\x20[--env\x20daily]','Include\x20unpublished\x20apps\x20for\x20diagnostics','project-default','No\x20cached\x20apps\x20found.','str','isCurrent','Default\x20app\x20candidate\x20set\x20to\x20\x22','12qCXoyy','length','envName','enableI18n','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','1932777dmsbHd','remote','\x20app\x20','find','validation','global','320831ENBqpg','globalPath','appName','accessKey','trim','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','Use\x20global\x20config\x20scope','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','warn','Available\x20remote\x20apps:\x20','boolean'];a3_0x54c4=function(){return _0x300dfc;};return a3_0x54c4();}import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{filterRuntimeAccessibleApps,findAppByCode,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const GLOBAL_FLAG={'name':'global','type':'boolean','description':a3_0x54577e(0x198),'default':![]};function collectFlags(_0x50ed9a,_0x5c8575){const _0x35855f=a3_0x54577e,_0x37560c={};for(const _0x6d1457 of _0x5c8575){const _0x4a3b83=_0x6d1457['type']===_0x35855f(0x19c)?_0x50ed9a[_0x35855f(0x16a)](_0x6d1457[_0x35855f(0x162)]):_0x50ed9a[_0x35855f(0x184)](_0x6d1457[_0x35855f(0x162)]);if(_0x4a3b83!==''&&_0x4a3b83!==![])_0x37560c[_0x6d1457['name']]=_0x4a3b83;}if(_0x50ed9a[_0x35855f(0x1aa)])_0x37560c[_0x35855f(0x1aa)]=!![];return _0x37560c;}function a3_0x55ce(_0x2e9dd2,_0x4a0cad){_0x2e9dd2=_0x2e9dd2-0x162;const _0x54c468=a3_0x54c4();let _0x55ced1=_0x54c468[_0x2e9dd2];return _0x55ced1;}function normalizeLanguages(_0xfb15b0){const _0x1f58a2=a3_0x54577e;if(!Array[_0x1f58a2(0x1ba)](_0xfb15b0))return[];return _0xfb15b0['filter'](_0x3eecb1=>typeof _0x3eecb1==='string')['map'](_0x17f006=>_0x17f006[_0x1f58a2(0x196)]())[_0x1f58a2(0x1a0)](Boolean);}function buildRemoteAppI18nFields(_0x53d311){const _0x17aa0a=a3_0x54577e,_0x2d30b7=normalizeLanguages(_0x53d311[_0x17aa0a(0x1b9)]?.['langs']);return{'enableI18n':typeof _0x53d311[_0x17aa0a(0x18a)]==='boolean'?_0x53d311['enableI18n']:null,'languages':_0x2d30b7,'i18nInfo':_0x53d311[_0x17aa0a(0x1b9)]?{..._0x53d311[_0x17aa0a(0x1b9)],'langs':_0x2d30b7[_0x17aa0a(0x188)]?_0x2d30b7:null}:null};}const initDef={'service':a3_0x54577e(0x1a1),'command':a3_0x54577e(0x19f),'description':a3_0x54577e(0x1b3),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x2cf0f6){const _0x4e8a27=a3_0x54577e;return warnDeprecatedAppCommand(_0x4e8a27(0x19f),CLI_BIN_NAME+_0x4e8a27(0x180)),await runInit(collectFlags(_0x2cf0f6,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a3_0x54577e(0x1a1),'command':'list','description':a3_0x54577e(0x197),'risk':a3_0x54577e(0x16e),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a3_0x54577e(0x17d),'type':a3_0x54577e(0x1ac),'description':'Filter\x20by\x20environment\x20(default:\x20current\x20env)','enum':[...RUNTIME_ENV_VALUES]},{'name':'local','type':a3_0x54577e(0x19c),'description':a3_0x54577e(0x178),'default':![]},{'name':'no-cache','type':a3_0x54577e(0x19c),'description':'Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','default':![]},{'name':a3_0x54577e(0x1bb),'type':a3_0x54577e(0x19c),'description':a3_0x54577e(0x181),'default':![]}],async 'execute'(_0x11686b){const _0x259b6e=a3_0x54577e,_0x1b0ed3=_0x11686b[_0x259b6e(0x184)](_0x259b6e(0x17d))||_0x11686b[_0x259b6e(0x189)]||getEnv()||_0x259b6e(0x166),_0x2c0974=_0x11686b[_0x259b6e(0x16a)](_0x259b6e(0x165)),_0x4563a5=_0x11686b[_0x259b6e(0x16a)](_0x259b6e(0x176)),_0x9bffeb=_0x11686b[_0x259b6e(0x16a)](_0x259b6e(0x1bb)),{readRawConfigWithLayers:_0x207b6e,resolveDefaultAppSource:_0x57b96f,getLocalAppAliases:_0x2ed1cc}=await import(_0x259b6e(0x17c)),{getRemoteAppList:_0x1c80c8}=await import(_0x259b6e(0x1af)),{config:_0x219847,layers:_0x279360}=_0x207b6e(),_0x52d885=_0x57b96f(_0x279360),{defaultApp:_0x15023b}=_0x219847,_0x37d6be=await _0x1c80c8({'env':_0x1b0ed3,'accessKey':_0x11686b[_0x259b6e(0x195)],'localOnly':_0x2c0974,'noCache':_0x4563a5}),_0x3cc759=_0x9bffeb?_0x37d6be[_0x259b6e(0x168)]:filterRuntimeAccessibleApps(_0x37d6be['items']),_0xdb4f8e=_0x37d6be[_0x259b6e(0x168)]['length']-_0x3cc759[_0x259b6e(0x188)],_0x274577=_0x3cc759[_0x259b6e(0x172)](_0x768ca1=>{const _0x372c54=_0x259b6e;return{'name':_0x768ca1[_0x372c54(0x194)],'appcode':_0x768ca1['appCode'],'named':!![],'definedIn':_0x372c54(0x18d),'isDefault':_0x768ca1[_0x372c54(0x194)]===_0x15023b,...buildAppProfileListFields(_0x1b0ed3),...buildRemoteAppI18nFields(_0x768ca1),'source':_0x37d6be[_0x372c54(0x1a7)],'owner':_0x768ca1[_0x372c54(0x16f)]??null,'status':_0x768ca1['appPublishStatus']??null,'cachedAt':_0x37d6be[_0x372c54(0x174)]};}),_0x436227=_0x2ed1cc(_0x219847);let _0x28f491=0x0;for(const [_0x1a8d5c,_0x37b2d6]of Object[_0x259b6e(0x1b2)](_0x436227)){const _0x37a77f=typeof _0x37b2d6['appcode']==='string'?_0x37b2d6[_0x259b6e(0x179)][_0x259b6e(0x196)]():'';if(!_0x37a77f)continue;const _0x3441a4=findAppByCode(_0x37d6be[_0x259b6e(0x168)],_0x37a77f);if(!_0x9bffeb&&_0x3441a4&&!isRuntimeAccessibleApp(_0x3441a4))continue;_0x28f491+=0x1,_0x274577[_0x259b6e(0x1a3)]({'name':_0x1a8d5c,'appcode':_0x37a77f,'named':!![],'definedIn':_0x259b6e(0x165),'isDefault':_0x1a8d5c===_0x15023b,...buildAppProfileListFields(_0x1b0ed3),'source':'config','owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x274577,_0x11686b[_0x259b6e(0x1ad)]);const _0x2067d5=_0x274577[_0x259b6e(0x18f)](_0x31c502=>_0x31c502[_0x259b6e(0x185)]===!![]),_0x180777=_0x15023b??_0x2067d5?.[_0x259b6e(0x162)]??null,_0x24c490={'env':_0x1b0ed3,'source':_0x37d6be['source'],'fetchedAt':_0x37d6be['fetchedAt'],'cachePath':_0x37d6be['cachePath'],'globalPath':_0x279360[_0x259b6e(0x193)]??null,'projectPath':_0x279360['projectPath']??null,'defaultApp':_0x180777,'defaultAppSource':_0x15023b!=null?_0x52d885:null,'localAliasCount':_0x28f491,'remoteTotal':_0x37d6be[_0x259b6e(0x168)]['length'],'hiddenUnpublishedCount':_0xdb4f8e,'includeUnpublished':_0x9bffeb};if(_0x274577[_0x259b6e(0x188)]===0x0)return{'ok':!![],'data':{'items':_0x274577,'meta':_0x24c490},'message':_0x37d6be[_0x259b6e(0x1a7)]==='cache'?_0x259b6e(0x183):'No\x20apps\x20found\x20on\x20the\x20platform.'};return{'ok':!![],'data':{'items':_0x274577,'meta':_0x24c490}};}},pullDef={'service':'app','command':a3_0x54577e(0x16b),'description':'Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','risk':a3_0x54577e(0x170),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a3_0x54577e(0x17d),'type':a3_0x54577e(0x1ac),'description':a3_0x54577e(0x1b7),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x54577e(0x165),'type':a3_0x54577e(0x19c),'description':a3_0x54577e(0x1b4),'default':![]},{'name':a3_0x54577e(0x176),'type':a3_0x54577e(0x19c),'description':a3_0x54577e(0x18b),'default':![]}],async 'execute'(_0x2c0e12){const _0x4a170a=a3_0x54577e,_0x1abe90=_0x2c0e12[_0x4a170a(0x184)]('env')||_0x2c0e12[_0x4a170a(0x189)]||getEnv()||_0x4a170a(0x166),_0x2bd8d8=_0x2c0e12[_0x4a170a(0x16a)](_0x4a170a(0x165)),_0x51c255=_0x2c0e12[_0x4a170a(0x16a)](_0x4a170a(0x176)),{getRemoteAppList:_0x364769}=await import(_0x4a170a(0x1af)),_0x211607=await _0x364769({'env':_0x1abe90,'accessKey':_0x2c0e12[_0x4a170a(0x195)],'localOnly':_0x2bd8d8,'noCache':_0x51c255});return{'ok':!![],'data':{'total':_0x211607[_0x4a170a(0x168)]['length'],'env':_0x1abe90,'source':_0x211607[_0x4a170a(0x1a7)],'fetchedAt':_0x211607[_0x4a170a(0x174)],'cachePath':_0x211607[_0x4a170a(0x1b1)]},'message':_0x211607[_0x4a170a(0x1a7)]==='cache'?_0x4a170a(0x17b)+_0x211607['items'][_0x4a170a(0x188)]+'\x20cached\x20app(s)\x20for\x20env=\x22'+_0x1abe90+'\x22.':_0x4a170a(0x1a6)+_0x211607[_0x4a170a(0x168)][_0x4a170a(0x188)]+_0x4a170a(0x173)+_0x1abe90+'\x22.'};}},useDef={'service':a3_0x54577e(0x1a1),'command':'use','description':a3_0x54577e(0x169),'risk':a3_0x54577e(0x170),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a3_0x54577e(0x162),'description':'Remote\x20app\x20name\x20to\x20activate','required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x32e485){const _0x50a91f=a3_0x54577e;if(!_0x32e485[_0x50a91f(0x1a2)][0x0])throw CliErrors[_0x50a91f(0x190)]('Missing\x20app\x20name.',_0x50a91f(0x167)+CLI_BIN_NAME+_0x50a91f(0x17e));},async 'execute'(_0x371bf5){const _0x4b4f36=a3_0x54577e;warnDeprecatedAppCommand(_0x4b4f36(0x1a4),CLI_BIN_NAME+_0x4b4f36(0x1a8));const _0x3134ac=_0x371bf5['args'][0x0];if(!_0x3134ac)throw CliErrors[_0x4b4f36(0x190)](_0x4b4f36(0x1b0),_0x4b4f36(0x167)+CLI_BIN_NAME+'\x20app\x20use\x20<name>\x20[--global]');const {buildConfigFromFlags:_0x1ff53e,resolveLocalAppAliasCode:_0x53aada}=await import(_0x4b4f36(0x17c)),{readCachedAppList:_0x28c7f3}=await import(_0x4b4f36(0x17f)),_0x15cb94=_0x371bf5[_0x4b4f36(0x184)](_0x4b4f36(0x17d)),_0x5e49e9=_0x1ff53e(_0x15cb94?{'env':_0x15cb94}:{}),_0x356c00=_0x28c7f3(_0x5e49e9[_0x4b4f36(0x17d)],_0x5e49e9[_0x4b4f36(0x195)]),_0x22d79e=_0x356c00?.[_0x4b4f36(0x168)][_0x4b4f36(0x18f)](_0x5e42eb=>_0x5e42eb[_0x4b4f36(0x194)]===_0x3134ac),_0x439048=_0x53aada(_0x5e49e9[_0x4b4f36(0x1b8)]??{},_0x3134ac);if(_0x22d79e&&!isRuntimeAccessibleApp(_0x22d79e))throw runtimeInaccessibleAppError(_0x22d79e,'\x22'+_0x3134ac+'\x22');if(_0x439048){const _0x11d64d=_0x356c00?.[_0x4b4f36(0x168)][_0x4b4f36(0x18f)](_0x4dd256=>_0x4dd256['appCode']?.['trim']()===_0x439048);if(_0x11d64d&&!isRuntimeAccessibleApp(_0x11d64d))throw runtimeInaccessibleAppError(_0x11d64d,'\x22'+_0x3134ac+'\x22');}if(!_0x22d79e&&!_0x439048&&_0x5e49e9[_0x4b4f36(0x164)]!==_0x3134ac){const _0x1801d7=[..._0x356c00?.['items'][_0x4b4f36(0x172)](_0x3c0b1f=>_0x3c0b1f[_0x4b4f36(0x194)])??[]],_0xd95d31=_0x1801d7[_0x4b4f36(0x188)]===0x0?_0x4b4f36(0x163)+CLI_BIN_NAME+'\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.'+_0x3134ac+_0x4b4f36(0x175):_0x4b4f36(0x19b)+Array[_0x4b4f36(0x17a)](new Set(_0x1801d7))[_0x4b4f36(0x19d)](',\x20')+_0x4b4f36(0x19e);throw CliErrors[_0x4b4f36(0x190)]('App\x20\x22'+_0x3134ac+_0x4b4f36(0x1b6),_0xd95d31);}const _0xd07488=_0x371bf5['bool'](_0x4b4f36(0x191));let _0x1034c6;if(_0xd07488)_0x1034c6={'global':!![]};else{const {isInProject:_0x339327}=await import(_0x4b4f36(0x17c)),_0x5e3a1b=_0x339327();_0x1034c6=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0x4b4f36(0x182),'inProject':_0x5e3a1b}));}const _0xaf7f12=readConfig(_0x1034c6);return _0xaf7f12[_0x4b4f36(0x164)]=_0x3134ac,writeConfig(_0xaf7f12,_0x1034c6),{'ok':!![],'message':_0x4b4f36(0x186)+_0x3134ac+'\x22'+scopeLabel(_0x1034c6)+'.'};}};function warnDeprecatedAppCommand(_0x5e9030,_0x3fc0fc){const _0x4486d0=a3_0x54577e;console[_0x4486d0(0x19a)](CLI_BIN_NAME+_0x4486d0(0x18e)+_0x5e9030+_0x4486d0(0x177)+_0x3fc0fc+_0x4486d0(0x16c));}const importDef={'service':a3_0x54577e(0x1a1),'command':a3_0x54577e(0x1a5),'description':a3_0x54577e(0x199),'risk':a3_0x54577e(0x170),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x51dcd8){return await runInitImport(collectFlags(_0x51dcd8,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
1
+ function a3_0xa700(){const _0x13f4b8=['1537640VSrFrI','raw','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','defaultApp','str','find','trim','from','Deprecated:\x20use\x20workspace\x20init\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','globalPath','661608SUTZJp','warn','13170xUgxKF','\x20cached\x20app(s)\x20for\x20env=\x22','Missing\x20app\x20name.','enableI18n','pull','langs','Read\x20app\x20list\x20from\x20local\x20cache\x20only','i18nInfo','read','\x20app(s)\x20for\x20env=\x22','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','string','Include\x20unpublished\x20apps\x20for\x20diagnostics','join','fetchedAt','../../commands/app/remote-source.js','remote','.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.','isArray','isCurrent','filter','Remote\x20app\x20name\x20to\x20activate','\x22\x20not\x20found.','\x20app\x20use\x20<name>\x20[--global]','\x20app\x20','app','entries','../../context.js','use','boolean','No\x20cached\x20apps\x20found.','init','36ePznRf','../../commands/app/cache.js','Use\x20`','bool','468RffAFY','map','252998NRjuCv','args','nonInteractive','cache','push','projectPath','Loaded\x20','items','write','import','appcode','source','539280ryJoSe','local','1833937XMroDm','No\x20apps\x20found\x20on\x20the\x20platform.','production','\x20workspace\x20use\x20--app\x20<name>\x20[--env\x20daily]','cachePath','Filter\x20by\x20environment\x20(default:\x20current\x20env)','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','validation','list','Default\x20app\x20candidate\x20set\x20to\x20\x22','App\x20\x22','appPublishStatus','Usage:\x20','`\x20instead.','Refreshed\x20app\x20cache\x20with\x20','length','global','3FoIgvD','accessKey','appName','type','appCode','mergedCli','env','Use\x20global\x20config\x20scope','envName','include-unpublished','no-cache','name','273096ZCeaSn','\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.','.appcode\x20to\x20.lovrabet.json.'];a3_0xa700=function(){return _0x13f4b8;};return a3_0xa700();}const a3_0x38ee5f=a3_0x42f2;(function(_0xdb9ba,_0x3d523e){const _0x2ac6c1=a3_0x42f2,_0x1b8e1a=_0xdb9ba();while(!![]){try{const _0x11d963=parseInt(_0x2ac6c1(0x1b9))/0x1+parseInt(_0x2ac6c1(0x184))/0x2+parseInt(_0x2ac6c1(0x178))/0x3*(-parseInt(_0x2ac6c1(0x191))/0x4)+-parseInt(_0x2ac6c1(0x193))/0x5*(-parseInt(_0x2ac6c1(0x1b7))/0x6)+parseInt(_0x2ac6c1(0x1c7))/0x7+parseInt(_0x2ac6c1(0x1c5))/0x8+parseInt(_0x2ac6c1(0x1b3))/0x9*(-parseInt(_0x2ac6c1(0x187))/0xa);if(_0x11d963===_0x3d523e)break;else _0x1b8e1a['push'](_0x1b8e1a['shift']());}catch(_0x4bad71){_0x1b8e1a['push'](_0x1b8e1a['shift']());}}}(a3_0xa700,0x23245));import{CliErrors}from'../../errors.js';import{initCreateFlagDefs,initImportFlagDefs,runInit,runInitImport}from'../../commands/init.js';import{getEnv,RUNTIME_ENV_VALUES}from'../../constant/env.js';import{buildAppProfileListFields}from'../../config/schema.js';import{CLI_BIN_NAME,readConfig,writeConfig,scopeLabel,enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{filterRuntimeAccessibleApps,findAppByCode,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const GLOBAL_FLAG={'name':a3_0x38ee5f(0x177),'type':'boolean','description':a3_0x38ee5f(0x17f),'default':![]};function collectFlags(_0x57d332,_0x16b0a2){const _0x4d0cf5=a3_0x38ee5f,_0x15f337={};for(const _0x55da5e of _0x16b0a2){const _0x167b8d=_0x55da5e[_0x4d0cf5(0x17b)]===_0x4d0cf5(0x1b0)?_0x57d332[_0x4d0cf5(0x1b6)](_0x55da5e[_0x4d0cf5(0x183)]):_0x57d332['str'](_0x55da5e[_0x4d0cf5(0x183)]);if(_0x167b8d!==''&&_0x167b8d!==![])_0x15f337[_0x55da5e[_0x4d0cf5(0x183)]]=_0x167b8d;}if(_0x57d332[_0x4d0cf5(0x1bb)])_0x15f337['nonInteractive']=!![];return _0x15f337;}function a3_0x42f2(_0x48f71c,_0x3fffa5){_0x48f71c=_0x48f71c-0x16d;const _0xa7000c=a3_0xa700();let _0x42f2cf=_0xa7000c[_0x48f71c];return _0x42f2cf;}function normalizeLanguages(_0x4c2342){const _0x2b3e2c=a3_0x38ee5f;if(!Array[_0x2b3e2c(0x1a5)](_0x4c2342))return[];return _0x4c2342['filter'](_0x42f7c4=>typeof _0x42f7c4==='string')[_0x2b3e2c(0x1b8)](_0x11f485=>_0x11f485['trim']())[_0x2b3e2c(0x1a7)](Boolean);}function buildRemoteAppI18nFields(_0x31d40a){const _0x4a0cec=a3_0x38ee5f,_0x528489=normalizeLanguages(_0x31d40a[_0x4a0cec(0x19a)]?.[_0x4a0cec(0x198)]);return{'enableI18n':typeof _0x31d40a[_0x4a0cec(0x196)]===_0x4a0cec(0x1b0)?_0x31d40a[_0x4a0cec(0x196)]:null,'languages':_0x528489,'i18nInfo':_0x31d40a['i18nInfo']?{..._0x31d40a['i18nInfo'],'langs':_0x528489['length']?_0x528489:null}:null};}const initDef={'service':a3_0x38ee5f(0x1ac),'command':a3_0x38ee5f(0x1b2),'description':a3_0x38ee5f(0x18f),'risk':a3_0x38ee5f(0x1c1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x48f4b7){const _0x2e0c30=a3_0x38ee5f;return warnDeprecatedAppCommand(_0x2e0c30(0x1b2),CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>\x20[--env\x20daily]'),await runInit(collectFlags(_0x48f4b7,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a3_0x38ee5f(0x1ac),'command':a3_0x38ee5f(0x16f),'description':'List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','risk':a3_0x38ee5f(0x19b),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a3_0x38ee5f(0x17e),'type':a3_0x38ee5f(0x19e),'description':a3_0x38ee5f(0x1cc),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x38ee5f(0x1c6),'type':a3_0x38ee5f(0x1b0),'description':a3_0x38ee5f(0x199),'default':![]},{'name':a3_0x38ee5f(0x182),'type':'boolean','description':a3_0x38ee5f(0x189),'default':![]},{'name':a3_0x38ee5f(0x181),'type':a3_0x38ee5f(0x1b0),'description':a3_0x38ee5f(0x19f),'default':![]}],async 'execute'(_0x234605){const _0x6485f4=a3_0x38ee5f,_0x1e37a3=_0x234605[_0x6485f4(0x18b)](_0x6485f4(0x17e))||_0x234605[_0x6485f4(0x180)]||getEnv()||_0x6485f4(0x1c9),_0x3aa2dc=_0x234605[_0x6485f4(0x1b6)](_0x6485f4(0x1c6)),_0x93c870=_0x234605[_0x6485f4(0x1b6)]('no-cache'),_0x4d5872=_0x234605[_0x6485f4(0x1b6)](_0x6485f4(0x181)),{readRawConfigWithLayers:_0x20be1f,resolveDefaultAppSource:_0x424d03,getLocalAppAliases:_0x124358}=await import(_0x6485f4(0x1ae)),{getRemoteAppList:_0x93edee}=await import(_0x6485f4(0x1a2)),{config:_0x17feff,layers:_0x40a220}=_0x20be1f(),_0x321bdc=_0x424d03(_0x40a220),{defaultApp:_0x2920ac}=_0x17feff,_0x5e2f38=await _0x93edee({'env':_0x1e37a3,'accessKey':_0x234605[_0x6485f4(0x179)],'localOnly':_0x3aa2dc,'noCache':_0x93c870}),_0x50c42e=_0x4d5872?_0x5e2f38[_0x6485f4(0x1c0)]:filterRuntimeAccessibleApps(_0x5e2f38[_0x6485f4(0x1c0)]),_0x1c73f4=_0x5e2f38[_0x6485f4(0x1c0)][_0x6485f4(0x176)]-_0x50c42e[_0x6485f4(0x176)],_0x50b805=_0x50c42e[_0x6485f4(0x1b8)](_0x2329e8=>{const _0x1698f2=_0x6485f4;return{'name':_0x2329e8[_0x1698f2(0x17a)],'appcode':_0x2329e8[_0x1698f2(0x17c)],'named':!![],'definedIn':_0x1698f2(0x1a3),'isDefault':_0x2329e8['appName']===_0x2920ac,...buildAppProfileListFields(_0x1e37a3),...buildRemoteAppI18nFields(_0x2329e8),'source':_0x5e2f38['source'],'owner':_0x2329e8['appOwnerName']??null,'status':_0x2329e8[_0x1698f2(0x172)]??null,'cachedAt':_0x5e2f38[_0x1698f2(0x1a1)]};}),_0x3905a4=_0x124358(_0x17feff);let _0x450401=0x0;for(const [_0x58f560,_0x40d600]of Object[_0x6485f4(0x1ad)](_0x3905a4)){const _0x34433=typeof _0x40d600['appcode']===_0x6485f4(0x19e)?_0x40d600[_0x6485f4(0x1c3)][_0x6485f4(0x18d)]():'';if(!_0x34433)continue;const _0x251ea=findAppByCode(_0x5e2f38['items'],_0x34433);if(!_0x4d5872&&_0x251ea&&!isRuntimeAccessibleApp(_0x251ea))continue;_0x450401+=0x1,_0x50b805[_0x6485f4(0x1bd)]({'name':_0x58f560,'appcode':_0x34433,'named':!![],'definedIn':'local','isDefault':_0x58f560===_0x2920ac,...buildAppProfileListFields(_0x1e37a3),'source':'config','owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x50b805,_0x234605[_0x6485f4(0x17d)]);const _0x2f4298=_0x50b805[_0x6485f4(0x18c)](_0xf44153=>_0xf44153[_0x6485f4(0x1a6)]===!![]),_0x2ba383=_0x2920ac??_0x2f4298?.[_0x6485f4(0x183)]??null,_0x3ce6b5={'env':_0x1e37a3,'source':_0x5e2f38['source'],'fetchedAt':_0x5e2f38[_0x6485f4(0x1a1)],'cachePath':_0x5e2f38[_0x6485f4(0x1cb)],'globalPath':_0x40a220[_0x6485f4(0x190)]??null,'projectPath':_0x40a220[_0x6485f4(0x1be)]??null,'defaultApp':_0x2ba383,'defaultAppSource':_0x2920ac!=null?_0x321bdc:null,'localAliasCount':_0x450401,'remoteTotal':_0x5e2f38[_0x6485f4(0x1c0)][_0x6485f4(0x176)],'hiddenUnpublishedCount':_0x1c73f4,'includeUnpublished':_0x4d5872};if(_0x50b805[_0x6485f4(0x176)]===0x0)return{'ok':!![],'data':{'items':_0x50b805,'meta':_0x3ce6b5},'message':_0x5e2f38[_0x6485f4(0x1c4)]===_0x6485f4(0x1bc)?_0x6485f4(0x1b1):_0x6485f4(0x1c8)};return{'ok':!![],'data':{'items':_0x50b805,'meta':_0x3ce6b5}};}},pullDef={'service':a3_0x38ee5f(0x1ac),'command':a3_0x38ee5f(0x197),'description':a3_0x38ee5f(0x19d),'risk':a3_0x38ee5f(0x1c1),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'env','type':'string','description':'Target\x20environment\x20(default:\x20current\x20env)','enum':[...RUNTIME_ENV_VALUES]},{'name':'local','type':'boolean','description':'Read\x20from\x20local\x20cache\x20only','default':![]},{'name':a3_0x38ee5f(0x182),'type':a3_0x38ee5f(0x1b0),'description':a3_0x38ee5f(0x189),'default':![]}],async 'execute'(_0x3b1291){const _0x5966f8=a3_0x38ee5f,_0x312588=_0x3b1291[_0x5966f8(0x18b)]('env')||_0x3b1291['envName']||getEnv()||_0x5966f8(0x1c9),_0x8a14a4=_0x3b1291[_0x5966f8(0x1b6)](_0x5966f8(0x1c6)),_0x56afee=_0x3b1291[_0x5966f8(0x1b6)](_0x5966f8(0x182)),{getRemoteAppList:_0x216489}=await import(_0x5966f8(0x1a2)),_0x47b296=await _0x216489({'env':_0x312588,'accessKey':_0x3b1291[_0x5966f8(0x179)],'localOnly':_0x8a14a4,'noCache':_0x56afee});return{'ok':!![],'data':{'total':_0x47b296[_0x5966f8(0x1c0)][_0x5966f8(0x176)],'env':_0x312588,'source':_0x47b296[_0x5966f8(0x1c4)],'fetchedAt':_0x47b296[_0x5966f8(0x1a1)],'cachePath':_0x47b296['cachePath']},'message':_0x47b296[_0x5966f8(0x1c4)]===_0x5966f8(0x1bc)?_0x5966f8(0x1bf)+_0x47b296['items'][_0x5966f8(0x176)]+_0x5966f8(0x194)+_0x312588+'\x22.':_0x5966f8(0x175)+_0x47b296[_0x5966f8(0x1c0)][_0x5966f8(0x176)]+_0x5966f8(0x19c)+_0x312588+'\x22.'};}},useDef={'service':a3_0x38ee5f(0x1ac),'command':a3_0x38ee5f(0x1af),'description':'Deprecated:\x20use\x20workspace\x20use\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','risk':a3_0x38ee5f(0x1c1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'name','description':a3_0x38ee5f(0x1a8),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x16b10f){const _0x856ca9=a3_0x38ee5f;if(!_0x16b10f[_0x856ca9(0x1ba)][0x0])throw CliErrors['validation'](_0x856ca9(0x195),_0x856ca9(0x173)+CLI_BIN_NAME+_0x856ca9(0x1aa));},async 'execute'(_0x4ee1a0){const _0x4feb0b=a3_0x38ee5f;warnDeprecatedAppCommand(_0x4feb0b(0x1af),CLI_BIN_NAME+_0x4feb0b(0x1ca));const _0x421031=_0x4ee1a0[_0x4feb0b(0x1ba)][0x0];if(!_0x421031)throw CliErrors['validation'](_0x4feb0b(0x195),_0x4feb0b(0x173)+CLI_BIN_NAME+'\x20app\x20use\x20<name>\x20[--global]');const {buildConfigFromFlags:_0x96c605,resolveLocalAppAliasCode:_0x41f2fa}=await import(_0x4feb0b(0x1ae)),{readCachedAppList:_0x1fca66}=await import(_0x4feb0b(0x1b4)),_0x7e120f=_0x4ee1a0[_0x4feb0b(0x18b)](_0x4feb0b(0x17e)),_0x3b509f=_0x96c605(_0x7e120f?{'env':_0x7e120f}:{}),_0x5b77df=_0x1fca66(_0x3b509f['env'],_0x3b509f[_0x4feb0b(0x179)]),_0x4d3e87=_0x5b77df?.['items'][_0x4feb0b(0x18c)](_0x5264d0=>_0x5264d0[_0x4feb0b(0x17a)]===_0x421031),_0x28198c=_0x41f2fa(_0x3b509f[_0x4feb0b(0x188)]??{},_0x421031);if(_0x4d3e87&&!isRuntimeAccessibleApp(_0x4d3e87))throw runtimeInaccessibleAppError(_0x4d3e87,'\x22'+_0x421031+'\x22');if(_0x28198c){const _0x29851f=_0x5b77df?.[_0x4feb0b(0x1c0)][_0x4feb0b(0x18c)](_0x348090=>_0x348090[_0x4feb0b(0x17c)]?.[_0x4feb0b(0x18d)]()===_0x28198c);if(_0x29851f&&!isRuntimeAccessibleApp(_0x29851f))throw runtimeInaccessibleAppError(_0x29851f,'\x22'+_0x421031+'\x22');}if(!_0x4d3e87&&!_0x28198c&&_0x3b509f[_0x4feb0b(0x18a)]!==_0x421031){const _0x371b9f=[..._0x5b77df?.[_0x4feb0b(0x1c0)][_0x4feb0b(0x1b8)](_0x5165f2=>_0x5165f2[_0x4feb0b(0x17a)])??[]],_0xb09b39=_0x371b9f['length']===0x0?_0x4feb0b(0x1b5)+CLI_BIN_NAME+_0x4feb0b(0x185)+_0x421031+_0x4feb0b(0x186):'Available\x20remote\x20apps:\x20'+Array[_0x4feb0b(0x18e)](new Set(_0x371b9f))[_0x4feb0b(0x1a0)](',\x20')+_0x4feb0b(0x1a4);throw CliErrors[_0x4feb0b(0x16e)](_0x4feb0b(0x171)+_0x421031+_0x4feb0b(0x1a9),_0xb09b39);}const _0xb67b21=_0x4ee1a0[_0x4feb0b(0x1b6)](_0x4feb0b(0x177));let _0x5f0d32;if(_0xb67b21)_0x5f0d32={'global':!![]};else{const {isInProject:_0x86bf31}=await import(_0x4feb0b(0x1ae)),_0x40c7f8=_0x86bf31();_0x5f0d32=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':'project-default','inProject':_0x40c7f8}));}const _0x4addd4=readConfig(_0x5f0d32);return _0x4addd4[_0x4feb0b(0x18a)]=_0x421031,writeConfig(_0x4addd4,_0x5f0d32),{'ok':!![],'message':_0x4feb0b(0x170)+_0x421031+'\x22'+scopeLabel(_0x5f0d32)+'.'};}};function warnDeprecatedAppCommand(_0x1eb3fa,_0x59902a){const _0x332800=a3_0x38ee5f;console[_0x332800(0x192)](CLI_BIN_NAME+_0x332800(0x1ab)+_0x1eb3fa+'\x20is\x20deprecated.\x20Use\x20`'+_0x59902a+_0x332800(0x174));}const importDef={'service':a3_0x38ee5f(0x1ac),'command':a3_0x38ee5f(0x1c2),'description':a3_0x38ee5f(0x16d),'risk':a3_0x38ee5f(0x1c1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x23ed2f){return await runInitImport(collectFlags(_0x23ed2f,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
@@ -1 +1 @@
1
- (function(_0x32e36f,_0x1aead9){const _0x41d868=a4_0x47c5,_0x1198b7=_0x32e36f();while(!![]){try{const _0x4845b5=parseInt(_0x41d868(0x193))/0x1*(parseInt(_0x41d868(0x17c))/0x2)+parseInt(_0x41d868(0x17f))/0x3*(-parseInt(_0x41d868(0x18c))/0x4)+-parseInt(_0x41d868(0x183))/0x5*(-parseInt(_0x41d868(0x192))/0x6)+parseInt(_0x41d868(0x186))/0x7*(-parseInt(_0x41d868(0x18b))/0x8)+parseInt(_0x41d868(0x18f))/0x9+parseInt(_0x41d868(0x181))/0xa*(-parseInt(_0x41d868(0x18a))/0xb)+parseInt(_0x41d868(0x189))/0xc;if(_0x4845b5===_0x1aead9)break;else _0x1198b7['push'](_0x1198b7['shift']());}catch(_0x424d51){_0x1198b7['push'](_0x1198b7['shift']());}}}(a4_0x41d9,0x39c20));import{CLI_BIN_NAME}from'../../constant/cli.js';function a4_0x47c5(_0x1b761e,_0x4f355e){_0x1b761e=_0x1b761e-0x17b;const _0x41d982=a4_0x41d9();let _0x47c541=_0x41d982[_0x1b761e];return _0x47c541;}import{RUNTIME_ACCESSIBLE_APP_STATUS}from'../../constant/app.js';import{CliErrors}from'../../errors.js';export function normalizeAppPublishStatus(_0x1e0f23){const _0x51a792=a4_0x47c5;if(typeof _0x1e0f23!==_0x51a792(0x184))return null;const _0x5c6ca5=_0x1e0f23[_0x51a792(0x18d)]();return _0x5c6ca5?_0x5c6ca5[_0x51a792(0x18e)]():null;}export function isRuntimeAccessibleApp(_0x48f16b){const _0x5074e0=a4_0x47c5;return normalizeAppPublishStatus(_0x48f16b[_0x5074e0(0x17e)])===RUNTIME_ACCESSIBLE_APP_STATUS;}export function filterRuntimeAccessibleApps(_0x276c15){const _0x31375b=a4_0x47c5;return _0x276c15[_0x31375b(0x190)](isRuntimeAccessibleApp);}export function findAppByName(_0x229d4b,_0x41643a){const _0x29e956=a4_0x47c5;return _0x229d4b['find'](_0x28e92b=>_0x28e92b[_0x29e956(0x191)]===_0x41643a);}export function findAppByCode(_0x6e8f5f,_0x31d29c){const _0x24f13b=a4_0x47c5,_0x5e2c4d=_0x31d29c[_0x24f13b(0x18d)]();if(!_0x5e2c4d)return undefined;return _0x6e8f5f[_0x24f13b(0x180)](_0x45c075=>_0x45c075[_0x24f13b(0x194)]?.['trim']()===_0x5e2c4d);}export function runtimeInaccessibleAppError(_0x33d2b8,_0x1374fc){const _0x531725=a4_0x47c5,_0x342b44=normalizeAppPublishStatus(_0x33d2b8['appPublishStatus'])??_0x531725(0x17d);return CliErrors[_0x531725(0x185)](_0x531725(0x17b)+_0x1374fc+_0x531725(0x188),_0x531725(0x182)+_0x342b44+_0x531725(0x187)+CLI_BIN_NAME+'\x20dataset/data/sql/bff\x20commands,\x20or\x20choose\x20a\x20published\x20app.');}function a4_0x41d9(){const _0xa0158e=['filter','appName','312BmhIgr','21548DLuAMi','appCode','App\x20','2sCQhtO','UNKNOWN','appPublishStatus','811878LYyefK','find','1094660XPiHGl','Current\x20status:\x20','6455WLJBWT','string','validation','77BMwyin','.\x20Publish\x20the\x20app\x20before\x20using\x20','\x20is\x20not\x20available\x20for\x20runtime\x20AI\x20access.','9709188wzVcyZ','33OmLXpR','243472WUzPPH','4ZwWLxJ','trim','toUpperCase','2453355oNXtqW'];a4_0x41d9=function(){return _0xa0158e;};return a4_0x41d9();}
1
+ (function(_0x1b610d,_0x463869){const _0x1ac70a=a4_0xef06,_0x27e756=_0x1b610d();while(!![]){try{const _0x84bb54=-parseInt(_0x1ac70a(0x70))/0x1+parseInt(_0x1ac70a(0x68))/0x2+parseInt(_0x1ac70a(0x75))/0x3+parseInt(_0x1ac70a(0x71))/0x4+-parseInt(_0x1ac70a(0x76))/0x5*(parseInt(_0x1ac70a(0x66))/0x6)+parseInt(_0x1ac70a(0x69))/0x7+parseInt(_0x1ac70a(0x6e))/0x8*(-parseInt(_0x1ac70a(0x72))/0x9);if(_0x84bb54===_0x463869)break;else _0x27e756['push'](_0x27e756['shift']());}catch(_0x29e4af){_0x27e756['push'](_0x27e756['shift']());}}}(a4_0xf94a,0xd969b));import{CLI_BIN_NAME}from'../../constant/cli.js';import{RUNTIME_ACCESSIBLE_APP_STATUS}from'../../constant/app.js';import{CliErrors}from'../../errors.js';function a4_0xf94a(){const _0x1dc418=['\x20is\x20not\x20available\x20for\x20runtime\x20AI\x20access.','19928eYKqrK','appCode','880999mVvslW','6513416abdjwR','3969kUnCVS','appPublishStatus','toUpperCase','4289916yzKXzD','86155epMUeZ','find','.\x20Publish\x20the\x20app\x20before\x20using\x20','trim','string','366WesvGn','validation','1430934KcBrcz','1031457ZepEjp','\x20dataset/data/sql/bff\x20commands,\x20or\x20choose\x20a\x20published\x20app.','App\x20','UNKNOWN'];a4_0xf94a=function(){return _0x1dc418;};return a4_0xf94a();}export function normalizeAppPublishStatus(_0x284561){const _0x47a123=a4_0xef06;if(typeof _0x284561!==_0x47a123(0x7a))return null;const _0xf5fef3=_0x284561[_0x47a123(0x79)]();return _0xf5fef3?_0xf5fef3[_0x47a123(0x74)]():null;}export function isRuntimeAccessibleApp(_0x281e65){const _0x3cc3b5=a4_0xef06;return normalizeAppPublishStatus(_0x281e65[_0x3cc3b5(0x73)])===RUNTIME_ACCESSIBLE_APP_STATUS;}function a4_0xef06(_0x5abe1e,_0x286f59){_0x5abe1e=_0x5abe1e-0x66;const _0xf94a73=a4_0xf94a();let _0xef0645=_0xf94a73[_0x5abe1e];return _0xef0645;}export function filterRuntimeAccessibleApps(_0x17c08d){return _0x17c08d['filter'](isRuntimeAccessibleApp);}export function findAppByName(_0x29d680,_0x42d3c1){const _0x204342=a4_0xef06;return _0x29d680[_0x204342(0x77)](_0x56c01a=>_0x56c01a['appName']===_0x42d3c1);}export function findAppByCode(_0x593acc,_0x249dd5){const _0x2d55af=a4_0xef06,_0x137833=_0x249dd5['trim']();if(!_0x137833)return undefined;return _0x593acc[_0x2d55af(0x77)](_0x40ee10=>_0x40ee10[_0x2d55af(0x6f)]?.[_0x2d55af(0x79)]()===_0x137833);}export function runtimeInaccessibleAppError(_0x484309,_0x9fe7a8){const _0x21b0d3=a4_0xef06,_0x2047ee=normalizeAppPublishStatus(_0x484309[_0x21b0d3(0x73)])??_0x21b0d3(0x6c);return CliErrors[_0x21b0d3(0x67)](_0x21b0d3(0x6b)+_0x9fe7a8+_0x21b0d3(0x6d),'Current\x20status:\x20'+_0x2047ee+_0x21b0d3(0x78)+CLI_BIN_NAME+_0x21b0d3(0x6a));}
@@ -1 +1 @@
1
- (function(_0x48fe66,_0x4fee61){const _0x69e092=a5_0x3bd9,_0x33d6b6=_0x48fe66();while(!![]){try{const _0x227b42=-parseInt(_0x69e092(0x1b8))/0x1*(parseInt(_0x69e092(0x1c0))/0x2)+parseInt(_0x69e092(0x1bf))/0x3+parseInt(_0x69e092(0x1b1))/0x4+-parseInt(_0x69e092(0x1be))/0x5*(parseInt(_0x69e092(0x1b7))/0x6)+parseInt(_0x69e092(0x1af))/0x7+-parseInt(_0x69e092(0x1b2))/0x8*(parseInt(_0x69e092(0x1b5))/0x9)+parseInt(_0x69e092(0x1b0))/0xa*(parseInt(_0x69e092(0x1b6))/0xb);if(_0x227b42===_0x4fee61)break;else _0x33d6b6['push'](_0x33d6b6['shift']());}catch(_0x383a9c){_0x33d6b6['push'](_0x33d6b6['shift']());}}}(a5_0x5efc,0xefe2f));import{fileURLToPath}from'url';function a5_0x3bd9(_0xa39091,_0x12e8d8){_0xa39091=_0xa39091-0x1af;const _0x5efc85=a5_0x5efc();let _0x3bd9c8=_0x5efc85[_0xa39091];return _0x3bd9c8;}import{dirname,join}from'path';import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0x2c2107=a5_0x3bd9,_0x26965d=join(__dirname,_0x2c2107(0x1bd)),_0x2cc4ed=readFileSync(_0x26965d,_0x2c2107(0x1b9));return JSON[_0x2c2107(0x1ba)](_0x2cc4ed);}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x1e45dc=a5_0x3bd9,_0x530e0a=getMockAppList();if(!_0x530e0a[_0x1e45dc(0x1b4)])throw new Error(_0x1e45dc(0x1bb)+_0x530e0a['errorMsg']+'\x20('+_0x530e0a[_0x1e45dc(0x1b3)]+')');return _0x530e0a['data'][_0x1e45dc(0x1bc)];}function a5_0x5efc(){const _0x45a0cc=['success','239886nhDycw','22vrLrKg','6neXtop','514bAIYxc','utf-8','parse','Mock\x20API\x20error:\x20','tableData','../../../mock/app-list.json','866345kTUIYq','314610pMsaBx','3676cbCTiL','8339303pzKLjJ','2844070WbnZkB','4140732SadkZI','240RVxzOk','errorCode'];a5_0x5efc=function(){return _0x45a0cc;};return a5_0x5efc();}
1
+ (function(_0x198246,_0x2714d5){const _0x4a7d09=a5_0x4fd4,_0x311631=_0x198246();while(!![]){try{const _0xc4eb83=-parseInt(_0x4a7d09(0x8a))/0x1*(parseInt(_0x4a7d09(0x8c))/0x2)+parseInt(_0x4a7d09(0x87))/0x3*(-parseInt(_0x4a7d09(0x90))/0x4)+-parseInt(_0x4a7d09(0x89))/0x5*(-parseInt(_0x4a7d09(0x86))/0x6)+parseInt(_0x4a7d09(0x8f))/0x7*(-parseInt(_0x4a7d09(0x92))/0x8)+-parseInt(_0x4a7d09(0x88))/0x9+-parseInt(_0x4a7d09(0x84))/0xa+parseInt(_0x4a7d09(0x82))/0xb;if(_0xc4eb83===_0x2714d5)break;else _0x311631['push'](_0x311631['shift']());}catch(_0x593331){_0x311631['push'](_0x311631['shift']());}}}(a5_0xc446,0x70a82));import{fileURLToPath}from'url';function a5_0xc446(){const _0x59ccdd=['87FyqrwA','2054862bIlgPm','5pdfOet','1nfpunl','tableData','1841612GsaLdg','parse','errorCode','1097831rYTTMZ','86488AOVXCu','../../../mock/app-list.json','24VStihu','data','33951533XpamjB','Mock\x20API\x20error:\x20','4640580YuuveV','utf-8','513948vMEcVX'];a5_0xc446=function(){return _0x59ccdd;};return a5_0xc446();}import{dirname,join}from'path';function a5_0x4fd4(_0x4f683f,_0x4d34df){_0x4f683f=_0x4f683f-0x82;const _0xc4460d=a5_0xc446();let _0x4fd4da=_0xc4460d[_0x4f683f];return _0x4fd4da;}import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0x1dde1d=a5_0x4fd4,_0x5d054b=join(__dirname,_0x1dde1d(0x91)),_0x24f35e=readFileSync(_0x5d054b,_0x1dde1d(0x85));return JSON[_0x1dde1d(0x8d)](_0x24f35e);}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x3fefcd=a5_0x4fd4,_0x592dbf=getMockAppList();if(!_0x592dbf['success'])throw new Error(_0x3fefcd(0x83)+_0x592dbf['errorMsg']+'\x20('+_0x592dbf[_0x3fefcd(0x8e)]+')');return _0x592dbf[_0x3fefcd(0x93)][_0x3fefcd(0x8b)];}
@@ -1 +1 @@
1
- (function(_0x551adb,_0x8575b2){const _0x2e4ed1=a6_0x3ec5,_0x549d99=_0x551adb();while(!![]){try{const _0x44ed9a=-parseInt(_0x2e4ed1(0x112))/0x1*(-parseInt(_0x2e4ed1(0x10e))/0x2)+parseInt(_0x2e4ed1(0x111))/0x3*(-parseInt(_0x2e4ed1(0x117))/0x4)+-parseInt(_0x2e4ed1(0x11a))/0x5+parseInt(_0x2e4ed1(0x10d))/0x6+-parseInt(_0x2e4ed1(0x110))/0x7+parseInt(_0x2e4ed1(0x10f))/0x8+parseInt(_0x2e4ed1(0x113))/0x9*(parseInt(_0x2e4ed1(0x116))/0xa);if(_0x44ed9a===_0x8575b2)break;else _0x549d99['push'](_0x549d99['shift']());}catch(_0x4babc5){_0x549d99['push'](_0x549d99['shift']());}}}(a6_0x3d21,0x41ad9));import{getMyApps}from'../../core/api-client.js';function a6_0x3d21(){const _0x3615b8=['484496rnZlTm','3260012ZDpFfc','38364giTaiy','71gWsxWD','794502HgtNtY','cache','items','90vWiPwc','4YrTLkU','APP_LIST_SOURCE','trim','2379470wFRwRp','fetchedAt','toISOString','1785384AqgOnr','1994aJMZsY'];a6_0x3d21=function(){return _0x3615b8;};return a6_0x3d21();}import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';import{productEnv}from'../../constant/product.js';export function shouldUseMockRemoteApps(){const _0x34a7da=a6_0x3ec5,_0x4e4f86=(productEnv(_0x34a7da(0x118))||'')[_0x34a7da(0x119)]()['toLowerCase']();return _0x4e4f86==='mock';}function a6_0x3ec5(_0x326376,_0x3c06bc){_0x326376=_0x326376-0x10c;const _0x3d21b6=a6_0x3d21();let _0x3ec557=_0x3d21b6[_0x326376];return _0x3ec557;}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x53d72b){const _0x589c42=a6_0x3ec5,{env:_0x418bd0,accessKey:_0x177a44,localOnly:localOnly=![],noCache:noCache=![]}=_0x53d72b,_0x34f5f5=readCachedAppList(_0x418bd0,_0x177a44),_0x52ce02=_0x177a44?.['trim']()?getAppCacheFilePath(_0x418bd0,_0x177a44):null;if(localOnly)return{'items':_0x34f5f5?.[_0x589c42(0x115)]??[],'source':_0x589c42(0x114),'fetchedAt':_0x34f5f5?.[_0x589c42(0x11b)]??null,'cachePath':_0x52ce02};try{const _0x330d45=await getRemoteAppItems(),_0x33b0e7=shouldUseMockRemoteApps()?'mock':'remote',_0x5e7f89=new Date()[_0x589c42(0x10c)](),_0x218475=_0x177a44?.['trim']()?writeCachedAppList(_0x418bd0,_0x177a44,{'env':_0x418bd0,'fetchedAt':_0x5e7f89,'source':_0x33b0e7,'items':_0x330d45}):null;return{'items':_0x330d45,'source':_0x33b0e7,'fetchedAt':_0x5e7f89,'cachePath':_0x218475};}catch(_0x489995){if(!noCache&&_0x34f5f5)return{'items':_0x34f5f5['items'],'source':_0x589c42(0x114),'fetchedAt':_0x34f5f5[_0x589c42(0x11b)],'cachePath':_0x52ce02};throw _0x489995;}}
1
+ (function(_0x15b197,_0x1efa42){const _0x41b756=a6_0x2f88,_0x1764cb=_0x15b197();while(!![]){try{const _0x5a64b0=parseInt(_0x41b756(0x141))/0x1+parseInt(_0x41b756(0x134))/0x2+-parseInt(_0x41b756(0x143))/0x3*(-parseInt(_0x41b756(0x133))/0x4)+parseInt(_0x41b756(0x132))/0x5*(-parseInt(_0x41b756(0x13f))/0x6)+parseInt(_0x41b756(0x13e))/0x7*(parseInt(_0x41b756(0x142))/0x8)+-parseInt(_0x41b756(0x138))/0x9+-parseInt(_0x41b756(0x140))/0xa*(-parseInt(_0x41b756(0x13c))/0xb);if(_0x5a64b0===_0x1efa42)break;else _0x1764cb['push'](_0x1764cb['shift']());}catch(_0x11895a){_0x1764cb['push'](_0x1764cb['shift']());}}}(a6_0x2d2b,0x3aa85));function a6_0x2f88(_0x1e6d84,_0x25f27a){_0x1e6d84=_0x1e6d84-0x131;const _0x2d2b20=a6_0x2d2b();let _0x2f884a=_0x2d2b20[_0x1e6d84];return _0x2f884a;}import{getMyApps}from'../../core/api-client.js';function a6_0x2d2b(){const _0x4d5078=['40764iZSEkq','1344XsXbLy','324213CbGWdA','cache','387215qBfhAx','4VWWrTt','78310YVwjqk','toISOString','toLowerCase','remote','1603872PFtLcv','trim','mock','items','22WLHdLN','fetchedAt','17367LweNdP','30eXcADB','1004430ApHGkQ'];a6_0x2d2b=function(){return _0x4d5078;};return a6_0x2d2b();}import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';import{productEnv}from'../../constant/product.js';export function shouldUseMockRemoteApps(){const _0x8b5561=a6_0x2f88,_0x9a34ae=(productEnv('APP_LIST_SOURCE')||'')[_0x8b5561(0x139)]()[_0x8b5561(0x136)]();return _0x9a34ae===_0x8b5561(0x13a);}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x4cb288){const _0x4325b1=a6_0x2f88,{env:_0x53239b,accessKey:_0x2f18f0,localOnly:localOnly=![],noCache:noCache=![]}=_0x4cb288,_0x94b381=readCachedAppList(_0x53239b,_0x2f18f0),_0x13da70=_0x2f18f0?.[_0x4325b1(0x139)]()?getAppCacheFilePath(_0x53239b,_0x2f18f0):null;if(localOnly)return{'items':_0x94b381?.[_0x4325b1(0x13b)]??[],'source':_0x4325b1(0x131),'fetchedAt':_0x94b381?.[_0x4325b1(0x13d)]??null,'cachePath':_0x13da70};try{const _0x2e4f4c=await getRemoteAppItems(),_0x4aa697=shouldUseMockRemoteApps()?'mock':_0x4325b1(0x137),_0x1467a7=new Date()[_0x4325b1(0x135)](),_0x513240=_0x2f18f0?.[_0x4325b1(0x139)]()?writeCachedAppList(_0x53239b,_0x2f18f0,{'env':_0x53239b,'fetchedAt':_0x1467a7,'source':_0x4aa697,'items':_0x2e4f4c}):null;return{'items':_0x2e4f4c,'source':_0x4aa697,'fetchedAt':_0x1467a7,'cachePath':_0x513240};}catch(_0x3f4b08){if(!noCache&&_0x94b381)return{'items':_0x94b381[_0x4325b1(0x13b)],'source':_0x4325b1(0x131),'fetchedAt':_0x94b381[_0x4325b1(0x13d)],'cachePath':_0x13da70};throw _0x3f4b08;}}
@@ -1 +1 @@
1
- (function(_0x4a100c,_0x39029d){const _0x2a7456=a7_0x5aff,_0x2d5826=_0x4a100c();while(!![]){try{const _0x31c4ed=-parseInt(_0x2a7456(0x113))/0x1*(-parseInt(_0x2a7456(0x101))/0x2)+-parseInt(_0x2a7456(0x10e))/0x3*(-parseInt(_0x2a7456(0x110))/0x4)+-parseInt(_0x2a7456(0x10b))/0x5*(parseInt(_0x2a7456(0x111))/0x6)+parseInt(_0x2a7456(0x114))/0x7+-parseInt(_0x2a7456(0x10c))/0x8*(parseInt(_0x2a7456(0xff))/0x9)+parseInt(_0x2a7456(0x100))/0xa+-parseInt(_0x2a7456(0x103))/0xb*(parseInt(_0x2a7456(0x104))/0xc);if(_0x31c4ed===_0x39029d)break;else _0x2d5826['push'](_0x2d5826['shift']());}catch(_0x195cb8){_0x2d5826['push'](_0x2d5826['shift']());}}}(a7_0x4e5c,0x1f4a6));import{CLI_BIN_NAME}from'../../constant/cli.js';function a7_0x4e5c(){const _0x1674d4=['399450KXaOOK','32SbwNTC','project','3714667ofGSXJ','12UJjKxE','appcode','definedIn','named','name','find','isCurrent','5FiHSQu','536SByWrd','currentApp','64431LkEVTd','defaultApp','4yyXFAD','150558mEnVBW','appCode','14620uAGxIz','1666175WCsZFc','trim','5697sqqxmV'];a7_0x4e5c=function(){return _0x1674d4;};return a7_0x4e5c();}import{formatScopeLabel}from'../../commands/common/config-policy.js';function a7_0x5aff(_0x1ce051,_0x1d2ef9){_0x1ce051=_0x1ce051-0xff;const _0x4e5c27=a7_0x4e5c();let _0x5affcf=_0x4e5c27[_0x1ce051];return _0x5affcf;}export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x148972,_0x2a5446){const _0x2dc5bf=a7_0x5aff;if(!_0x2a5446)return;const _0x569f0b=!!(_0x2a5446[_0x2dc5bf(0x10d)]??_0x2a5446['defaultApp']);for(const _0x301930 of _0x148972){_0x301930[_0x2dc5bf(0x10a)]=![];}const _0x10624d=_0x2a5446[_0x2dc5bf(0x112)]!=null?String(_0x2a5446[_0x2dc5bf(0x112)])[_0x2dc5bf(0x115)]():'';if(_0x569f0b){const _0x13a795=_0x2a5446[_0x2dc5bf(0x10d)]??_0x2a5446[_0x2dc5bf(0x10f)];if(_0x13a795){const _0x30b2eb=_0x148972['find'](_0xa940f6=>_0xa940f6[_0x2dc5bf(0x107)]===!![]&&_0xa940f6['name']===_0x13a795&&_0xa940f6[_0x2dc5bf(0x106)]==='local'),_0x5ac5de=_0x30b2eb??_0x148972[_0x2dc5bf(0x109)](_0xb87ea1=>_0xb87ea1['named']===!![]&&_0xb87ea1[_0x2dc5bf(0x108)]===_0x13a795);_0x5ac5de&&(_0x5ac5de[_0x2dc5bf(0x10a)]=!![]);}return;}if(!_0x10624d)return;for(const _0x3d9414 of _0x148972){String(_0x3d9414[_0x2dc5bf(0x105)]??'')['trim']()===_0x10624d&&(_0x3d9414[_0x2dc5bf(0x10a)]=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x398791){const _0x361fe4=a7_0x5aff;return formatScopeLabel(_0x398791['global']?'global':_0x361fe4(0x102));}
1
+ (function(_0x1421f7,_0x1da91c){const _0x593a91=a7_0x3e58,_0xaa3cb6=_0x1421f7();while(!![]){try{const _0x6a2923=parseInt(_0x593a91(0x14c))/0x1+-parseInt(_0x593a91(0x154))/0x2+-parseInt(_0x593a91(0x14a))/0x3+parseInt(_0x593a91(0x14b))/0x4+-parseInt(_0x593a91(0x147))/0x5*(-parseInt(_0x593a91(0x148))/0x6)+parseInt(_0x593a91(0x152))/0x7*(-parseInt(_0x593a91(0x155))/0x8)+-parseInt(_0x593a91(0x15c))/0x9*(-parseInt(_0x593a91(0x157))/0xa);if(_0x6a2923===_0x1da91c)break;else _0xaa3cb6['push'](_0xaa3cb6['shift']());}catch(_0x4ce5ae){_0xaa3cb6['push'](_0xaa3cb6['shift']());}}}(a7_0x4ca9,0x592ae));function a7_0x4ca9(){const _0x57e68f=['740908tvhVYm','684814qtouoU','isCurrent','named','definedIn','find','local','411117BhMDYj','trim','1096582wNGFps','64hjnVux','appcode','4938580cfLfhs','currentApp','name','defaultApp','global','18ivDGDV','project','2255MzBYyl','1392ZqqXWD','appCode','1737060OnoxTw'];a7_0x4ca9=function(){return _0x57e68f;};return a7_0x4ca9();}function a7_0x3e58(_0x464264,_0x35873e){_0x464264=_0x464264-0x147;const _0x4ca9bd=a7_0x4ca9();let _0x3e5819=_0x4ca9bd[_0x464264];return _0x3e5819;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x1e4b0e,_0x67b649){const _0x44ac5e=a7_0x3e58;if(!_0x67b649)return;const _0x1c5d77=!!(_0x67b649[_0x44ac5e(0x158)]??_0x67b649[_0x44ac5e(0x15a)]);for(const _0x174398 of _0x1e4b0e){_0x174398['isCurrent']=![];}const _0x3b1db4=_0x67b649[_0x44ac5e(0x149)]!=null?String(_0x67b649[_0x44ac5e(0x149)])['trim']():'';if(_0x1c5d77){const _0x386395=_0x67b649['currentApp']??_0x67b649[_0x44ac5e(0x15a)];if(_0x386395){const _0x227507=_0x1e4b0e[_0x44ac5e(0x150)](_0x34e0a2=>_0x34e0a2['named']===!![]&&_0x34e0a2['name']===_0x386395&&_0x34e0a2[_0x44ac5e(0x14f)]===_0x44ac5e(0x151)),_0xf4fbdb=_0x227507??_0x1e4b0e['find'](_0xfb1afb=>_0xfb1afb[_0x44ac5e(0x14e)]===!![]&&_0xfb1afb[_0x44ac5e(0x159)]===_0x386395);_0xf4fbdb&&(_0xf4fbdb[_0x44ac5e(0x14d)]=!![]);}return;}if(!_0x3b1db4)return;for(const _0x21ec7a of _0x1e4b0e){String(_0x21ec7a[_0x44ac5e(0x156)]??'')[_0x44ac5e(0x153)]()===_0x3b1db4&&(_0x21ec7a[_0x44ac5e(0x14d)]=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x182fa8){const _0x5330a1=a7_0x3e58;return formatScopeLabel(_0x182fa8[_0x5330a1(0x15b)]?_0x5330a1(0x15b):_0x5330a1(0x15d));}
@@ -1 +1 @@
1
- const a8_0x343c13=a8_0x1c0a;(function(_0x30a037,_0x8bf550){const _0x5079a7=a8_0x1c0a,_0x2502c5=_0x30a037();while(!![]){try{const _0x2c3c66=-parseInt(_0x5079a7(0xc5))/0x1*(parseInt(_0x5079a7(0xb2))/0x2)+parseInt(_0x5079a7(0xb1))/0x3+-parseInt(_0x5079a7(0xaa))/0x4+parseInt(_0x5079a7(0xce))/0x5+parseInt(_0x5079a7(0xb7))/0x6*(-parseInt(_0x5079a7(0xaf))/0x7)+parseInt(_0x5079a7(0xb9))/0x8+parseInt(_0x5079a7(0xe0))/0x9;if(_0x2c3c66===_0x8bf550)break;else _0x2502c5['push'](_0x2502c5['shift']());}catch(_0x3e75a6){_0x2502c5['push'](_0x2502c5['shift']());}}}(a8_0x2b79,0xd06bb));function a8_0x1c0a(_0x46eadd,_0x1ee405){_0x46eadd=_0x46eadd-0x95;const _0x2b79c1=a8_0x2b79();let _0x1c0acb=_0x2b79c1[_0x46eadd];return _0x1c0acb;}import{existsSync,readFileSync,statSync}from'node:fs';import{createRuntimeArtifact,getRuntimeArtifact,listRuntimeArtifacts,updateRuntimeArtifact}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const ARTIFACT_TYPE_REACT_MODULE=a8_0x343c13(0xde),ARTIFACT_SOURCE_AGENT=a8_0x343c13(0xc8),ALLOWED_REACT_MODULE_IMPORTS=[a8_0x343c13(0xc4),a8_0x343c13(0x95),'lodash',a8_0x343c13(0x96),a8_0x343c13(0xa3),'@ant-design/icons'];export const ALLOWED_REACT_MODULE_IMPORTS_TEXT=ALLOWED_REACT_MODULE_IMPORTS[a8_0x343c13(0xd4)](',\x20');const IMPORT_SOURCE_PATTERNS=[/\bimport\s+(?:type\s+)?(?:[^'";]*?\s+from\s+)?["']([^"']+)["']/g,/\bexport\s+(?:type\s+)?[^'";]*?\s+from\s+["']([^"']+)["']/g,/\bimport\s*\(\s*["']([^"']+)["']\s*\)/g,/\brequire\s*\(\s*["']([^"']+)["']\s*\)/g],PAGE_LEVEL_PATTERNS=[/<!doctype\s+html/i,/<\s*html\b/i,/\bcreateRoot\s*\(/,/\bReactDOM\s*\.\s*render\s*\(/,/\bReactDOM\s*\.\s*createRoot\s*\(/],FILE_FLAG={'name':a8_0x343c13(0xc7),'type':a8_0x343c13(0x9a),'required':!![],'description':a8_0x343c13(0xdb)},ARTIFACT_NAME_FLAG={'name':a8_0x343c13(0xc3),'type':'string','description':'Artifact\x20display\x20name'},METADATA_FLAG={'name':a8_0x343c13(0xb5),'type':'string','description':a8_0x343c13(0xa6)};function isPlainObject(_0x58a384){const _0x4bf33c=a8_0x343c13;return typeof _0x58a384===_0x4bf33c(0xa1)&&_0x58a384!==null&&!Array[_0x4bf33c(0xd1)](_0x58a384);}function readSourceFile(_0x42738c){const _0x43cf88=a8_0x343c13;if(!_0x42738c)throw CliErrors[_0x43cf88(0xa8)]('File\x20path\x20is\x20required.');if(!existsSync(_0x42738c))throw CliErrors[_0x43cf88(0xa8)](_0x43cf88(0xdd)+_0x42738c);if(!statSync(_0x42738c)[_0x43cf88(0x9b)]())throw CliErrors[_0x43cf88(0xa8)](_0x43cf88(0xc9)+_0x42738c);const _0x384f8a=readFileSync(_0x42738c,'utf8');return validateReactModuleSource(_0x384f8a),_0x384f8a;}function parseMetadata(_0x1fa2d7){const _0x45a9f8=a8_0x343c13;if(!_0x1fa2d7)return undefined;let _0x350300;try{_0x350300=JSON[_0x45a9f8(0xd8)](_0x1fa2d7);}catch{throw CliErrors['validation'](_0x45a9f8(0xc1)+_0x1fa2d7);}if(!isPlainObject(_0x350300))throw CliErrors['validation'](_0x45a9f8(0xd5));const _0x19e17d={..._0x350300};return delete _0x19e17d[_0x45a9f8(0xcc)],_0x19e17d;}function getPackageName(_0x589a8c){const _0x1d4f15=a8_0x343c13;if(_0x589a8c[_0x1d4f15(0xc6)]('@')){const [_0x3dedde,_0x597c94]=_0x589a8c['split']('/');return _0x3dedde&&_0x597c94?_0x3dedde+'/'+_0x597c94:_0x589a8c;}return _0x589a8c[_0x1d4f15(0xd6)]('/')[0x0]||_0x589a8c;}function validateAllowedImports(_0x511ba6){const _0x4f198b=a8_0x343c13,_0x3c3829=new Set();for(const _0x18904d of IMPORT_SOURCE_PATTERNS){_0x18904d[_0x4f198b(0xbc)]=0x0;let _0x2c061d;while((_0x2c061d=_0x18904d[_0x4f198b(0xba)](_0x511ba6))!==null){const _0x32b47c=_0x2c061d[0x1]?.[_0x4f198b(0xac)]();_0x32b47c&&_0x3c3829[_0x4f198b(0xab)](_0x32b47c);}}const _0x35a303=[..._0x3c3829]['map'](getPackageName)[_0x4f198b(0xbd)](_0x26669c=>!ALLOWED_REACT_MODULE_IMPORTS['includes'](_0x26669c));if(_0x35a303[_0x4f198b(0xd7)]>0x0)throw CliErrors['validation'](_0x4f198b(0xa0)+ALLOWED_REACT_MODULE_IMPORTS_TEXT+'.\x20Unsupported:\x20'+[...new Set(_0x35a303)]['join'](',\x20'));}export function validateReactModuleSource(_0x4cab6b){const _0xb3b91c=a8_0x343c13;if(!_0x4cab6b['trim']())throw CliErrors[_0xb3b91c(0xa8)](_0xb3b91c(0xa7));if(PAGE_LEVEL_PATTERNS['some'](_0x492ab0=>_0x492ab0[_0xb3b91c(0xcf)](_0x4cab6b)))throw CliErrors['validation'](_0xb3b91c(0xb3));validateAllowedImports(_0x4cab6b);}function buildArtifactInput(_0xecb70d){const _0x39b9c5=a8_0x343c13,_0x452144=readSourceFile(_0xecb70d[_0x39b9c5(0xe3)](_0x39b9c5(0xc7))),_0x53f197=_0xecb70d[_0x39b9c5(0xe3)](_0x39b9c5(0xc3))[_0x39b9c5(0xac)](),_0x2999cb=parseMetadata(_0xecb70d[_0x39b9c5(0xe3)](_0x39b9c5(0xb5)));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x53f197?{'name':_0x53f197}:{},'content':_0x452144,..._0x2999cb?{'metadata':_0x2999cb}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0xb51520){const _0x178092=a8_0x343c13;return{'id':_0xb51520['id'],'name':_0xb51520[_0x178092(0xc3)],'artifactType':_0xb51520[_0x178092(0xca)],'source':_0xb51520[_0x178092(0xb8)],'favorite':_0xb51520[_0x178092(0xcd)],'deleted':_0xb51520[_0x178092(0xd3)],'createTime':_0xb51520['createTime'],'updateTime':_0xb51520[_0x178092(0xc2)]};}function detailArtifact(_0x2fce4d){const _0x5920ca=a8_0x343c13;return{'id':_0x2fce4d['id'],'appCode':_0x2fce4d[_0x5920ca(0xb6)],'name':_0x2fce4d[_0x5920ca(0xc3)],'artifactType':_0x2fce4d[_0x5920ca(0xca)],'source':_0x2fce4d[_0x5920ca(0xb8)],'favorite':_0x2fce4d[_0x5920ca(0xcd)],'deleted':_0x2fce4d[_0x5920ca(0xd3)],'content':_0x2fce4d[_0x5920ca(0xdf)]??'','compiledContent':_0x2fce4d[_0x5920ca(0xcc)],'metadata':_0x2fce4d['metadata']??{},'createTime':_0x2fce4d[_0x5920ca(0xb4)],'updateTime':_0x2fce4d['updateTime']};}function readFavoriteFlag(_0x452b5a){const _0x602934=a8_0x343c13,_0x3ede77=_0x452b5a[_0x602934(0x99)]('favorite');return _0x3ede77===undefined||_0x3ede77===null||_0x3ede77===''?undefined:_0x452b5a[_0x602934(0x9c)](_0x602934(0xcd));}const artifactList={'service':a8_0x343c13(0xc0),'command':a8_0x343c13(0xd0),'description':a8_0x343c13(0x97),'risk':'read','flags':[{'name':a8_0x343c13(0xb8),'type':'string','description':a8_0x343c13(0xd2)},{'name':a8_0x343c13(0xcd),'type':a8_0x343c13(0x98),'description':a8_0x343c13(0xa5)},VERBOSE_FLAG],async 'execute'(_0x293914){const _0x49bb7=a8_0x343c13,_0x5f47c0=await listRuntimeArtifacts(_0x293914[_0x49bb7(0xb6)],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x293914['str'](_0x49bb7(0xb8))?{'source':_0x293914['str'](_0x49bb7(0xb8))}:{},...readFavoriteFlag(_0x293914)!==undefined?{'favorite':readFavoriteFlag(_0x293914)}:{}});return{'ok':!![],'data':{'total':_0x5f47c0[_0x49bb7(0xd7)],'items':_0x293914[_0x49bb7(0x9c)](_0x49bb7(0x9e))?_0x5f47c0:_0x5f47c0[_0x49bb7(0xae)](summarizeArtifact)}};}},artifactDetail={'service':'artifact','command':a8_0x343c13(0x9d),'description':a8_0x343c13(0xe2),'risk':a8_0x343c13(0xd9),'flags':[{...ID_FLAG,'description':a8_0x343c13(0xcb)}],async 'execute'(_0x35beca){const _0x4c7f10=a8_0x343c13,_0x1e5967=await getRuntimeArtifact(_0x35beca['num']('id'),_0x35beca[_0x4c7f10(0xb6)]);return{'ok':!![],'data':detailArtifact(_0x1e5967)};}},artifactCreate={'service':a8_0x343c13(0xc0),'command':a8_0x343c13(0xbb),'description':'Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','risk':a8_0x343c13(0xbe),'flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x73310b){const _0x4e3cb7=a8_0x343c13,_0x235ba7=buildArtifactInput(_0x73310b),_0x5ccee5=await createRuntimeArtifact(_0x73310b[_0x4e3cb7(0xb6)],_0x235ba7);return{'ok':!![],'data':detailArtifact(_0x5ccee5),'message':_0x4e3cb7(0xe4)+_0x5ccee5['id']+(_0x5ccee5[_0x4e3cb7(0xc3)]?'\x20('+_0x5ccee5[_0x4e3cb7(0xc3)]+')':'')};},async 'dryRun'(_0x3bdb4f){const _0x4bd965=a8_0x343c13,_0x5efe9d=buildArtifactInput(_0x3bdb4f);return dryRun(_0x4bd965(0xe1),_0x4bd965(0xbf))['body']({'appCode':_0x3bdb4f[_0x4bd965(0xb6)],..._0x5efe9d})[_0x4bd965(0xb0)](_0x4bd965(0xad))[_0x4bd965(0xa9)]();}},artifactUpdate={'service':a8_0x343c13(0xc0),'command':a8_0x343c13(0xdc),'description':a8_0x343c13(0xa2),'risk':'write','flags':[{...ID_FLAG,'description':a8_0x343c13(0xcb)},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x4aec43){const _0x33fb7f=a8_0x343c13,_0x562f7d=_0x4aec43[_0x33fb7f(0x9f)]('id'),_0x401dc7=buildArtifactInput(_0x4aec43),_0xe5deb7=await updateRuntimeArtifact(_0x562f7d,_0x4aec43[_0x33fb7f(0xb6)],_0x401dc7);return{'ok':!![],'data':detailArtifact(_0xe5deb7),'message':'Updated\x20Artifact\x20'+_0xe5deb7['id']+(_0xe5deb7[_0x33fb7f(0xc3)]?'\x20('+_0xe5deb7[_0x33fb7f(0xc3)]+')':'')};},async 'dryRun'(_0x31f464){const _0x34ed4f=a8_0x343c13,_0x41f079=_0x31f464[_0x34ed4f(0x9f)]('id'),_0x43dd9b=buildArtifactInput(_0x31f464);return dryRun('POST',_0x34ed4f(0xda)+_0x41f079+'/update')['body']({'appCode':_0x31f464[_0x34ed4f(0xb6)],..._0x43dd9b})[_0x34ed4f(0xb0)](_0x34ed4f(0xa4)+_0x41f079)['build']();}};function a8_0x2b79(){const _0x43e63a=['name','react','391PbWENd','startsWith','file','AGENT','File\x20is\x20not\x20a\x20regular\x20file:\x20','artifactType','Artifact\x20ID','compiledContent','favorite','2195580RPiMFn','test','list','isArray','Optional\x20source\x20filter,\x20for\x20example\x20AGENT','deleted','join','--metadata\x20must\x20be\x20a\x20JSON\x20object.','split','length','parse','read','/client/artifact/','Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file','update','File\x20not\x20found:\x20','react_module','content','13007709NCUgPO','POST','Show\x20one\x20Artifact\x20by\x20id','str','Created\x20Artifact\x20','react-dom','dayjs','List\x20current-app\x20react_module\x20Artifacts','boolean','flag','string','isFile','bool','detail','verbose','num','react_module\x20imports\x20are\x20limited\x20to:\x20','object','Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','antd','Preview:\x20update\x20react_module\x20Artifact\x20','Optional\x20favorite-state\x20filter','Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped','Artifact\x20source\x20file\x20is\x20blank.','validation','build','3579384DocEMI','add','trim','Preview:\x20create\x20react_module\x20Artifact','map','4268663QexZWn','description','63294OJNfao','42PONFgX','react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.','createTime','metadata','appCode','12oNLjOH','source','8566808ambLRe','exec','create','lastIndex','filter','write','/client/artifact/create','artifact','Invalid\x20JSON\x20for\x20--metadata:\x20','updateTime'];a8_0x2b79=function(){return _0x43e63a;};return a8_0x2b79();}export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
1
+ function a8_0x4acb(_0xcc9bab,_0x37cae0){_0xcc9bab=_0xcc9bab-0x6a;const _0x8702d9=a8_0x8702();let _0x4acbbe=_0x8702d9[_0xcc9bab];return _0x4acbbe;}const a8_0x42edf8=a8_0x4acb;(function(_0x714de,_0x257004){const _0x5fcbf4=a8_0x4acb,_0x6fade7=_0x714de();while(!![]){try{const _0x4e33b8=parseInt(_0x5fcbf4(0x7a))/0x1*(parseInt(_0x5fcbf4(0x9e))/0x2)+parseInt(_0x5fcbf4(0xa8))/0x3*(parseInt(_0x5fcbf4(0x9b))/0x4)+parseInt(_0x5fcbf4(0x8c))/0x5*(-parseInt(_0x5fcbf4(0xac))/0x6)+-parseInt(_0x5fcbf4(0x95))/0x7+parseInt(_0x5fcbf4(0x8a))/0x8*(-parseInt(_0x5fcbf4(0x89))/0x9)+-parseInt(_0x5fcbf4(0xa3))/0xa+-parseInt(_0x5fcbf4(0xb0))/0xb*(-parseInt(_0x5fcbf4(0x91))/0xc);if(_0x4e33b8===_0x257004)break;else _0x6fade7['push'](_0x6fade7['shift']());}catch(_0x5b4bf3){_0x6fade7['push'](_0x6fade7['shift']());}}}(a8_0x8702,0x189a2));import{existsSync,readFileSync,statSync}from'node:fs';import{createRuntimeArtifact,getRuntimeArtifact,listRuntimeArtifacts,updateRuntimeArtifact}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const ARTIFACT_TYPE_REACT_MODULE=a8_0x42edf8(0x87),ARTIFACT_SOURCE_AGENT='AGENT',ALLOWED_REACT_MODULE_IMPORTS=[a8_0x42edf8(0x9a),a8_0x42edf8(0x8d),a8_0x42edf8(0x90),a8_0x42edf8(0x6c),'antd',a8_0x42edf8(0x6a)];export const ALLOWED_REACT_MODULE_IMPORTS_TEXT=ALLOWED_REACT_MODULE_IMPORTS[a8_0x42edf8(0xb3)](',\x20');const IMPORT_SOURCE_PATTERNS=[/\bimport\s+(?:type\s+)?(?:[^'";]*?\s+from\s+)?["']([^"']+)["']/g,/\bexport\s+(?:type\s+)?[^'";]*?\s+from\s+["']([^"']+)["']/g,/\bimport\s*\(\s*["']([^"']+)["']\s*\)/g,/\brequire\s*\(\s*["']([^"']+)["']\s*\)/g],PAGE_LEVEL_PATTERNS=[/<!doctype\s+html/i,/<\s*html\b/i,/\bcreateRoot\s*\(/,/\bReactDOM\s*\.\s*render\s*\(/,/\bReactDOM\s*\.\s*createRoot\s*\(/],FILE_FLAG={'name':a8_0x42edf8(0x6e),'type':'string','required':!![],'description':a8_0x42edf8(0xa0)},ARTIFACT_NAME_FLAG={'name':a8_0x42edf8(0x98),'type':a8_0x42edf8(0xb9),'description':'Artifact\x20display\x20name'},METADATA_FLAG={'name':a8_0x42edf8(0xad),'type':a8_0x42edf8(0xb9),'description':a8_0x42edf8(0x88)};function isPlainObject(_0x3f1a62){const _0x35b814=a8_0x42edf8;return typeof _0x3f1a62===_0x35b814(0x7f)&&_0x3f1a62!==null&&!Array[_0x35b814(0x8f)](_0x3f1a62);}function readSourceFile(_0x4f6d3b){const _0x456722=a8_0x42edf8;if(!_0x4f6d3b)throw CliErrors[_0x456722(0x80)](_0x456722(0x84));if(!existsSync(_0x4f6d3b))throw CliErrors[_0x456722(0x80)]('File\x20not\x20found:\x20'+_0x4f6d3b);if(!statSync(_0x4f6d3b)[_0x456722(0x6b)]())throw CliErrors[_0x456722(0x80)](_0x456722(0x7c)+_0x4f6d3b);const _0x1772c5=readFileSync(_0x4f6d3b,_0x456722(0xb5));return validateReactModuleSource(_0x1772c5),_0x1772c5;}function parseMetadata(_0x374e17){const _0x1570ad=a8_0x42edf8;if(!_0x374e17)return undefined;let _0x43d3c4;try{_0x43d3c4=JSON['parse'](_0x374e17);}catch{throw CliErrors[_0x1570ad(0x80)]('Invalid\x20JSON\x20for\x20--metadata:\x20'+_0x374e17);}if(!isPlainObject(_0x43d3c4))throw CliErrors[_0x1570ad(0x80)](_0x1570ad(0xaf));const _0x2edc85={..._0x43d3c4};return delete _0x2edc85[_0x1570ad(0xab)],_0x2edc85;}function getPackageName(_0x271d8d){const _0x25bd65=a8_0x42edf8;if(_0x271d8d[_0x25bd65(0x6d)]('@')){const [_0xf3d5c8,_0x13af00]=_0x271d8d[_0x25bd65(0x82)]('/');return _0xf3d5c8&&_0x13af00?_0xf3d5c8+'/'+_0x13af00:_0x271d8d;}return _0x271d8d[_0x25bd65(0x82)]('/')[0x0]||_0x271d8d;}function validateAllowedImports(_0x31908c){const _0x177cdf=a8_0x42edf8,_0x55a110=new Set();for(const _0x5256b6 of IMPORT_SOURCE_PATTERNS){_0x5256b6[_0x177cdf(0x93)]=0x0;let _0x4a7a81;while((_0x4a7a81=_0x5256b6[_0x177cdf(0x7d)](_0x31908c))!==null){const _0x464b56=_0x4a7a81[0x1]?.[_0x177cdf(0xa2)]();_0x464b56&&_0x55a110[_0x177cdf(0x96)](_0x464b56);}}const _0x1ff67c=[..._0x55a110][_0x177cdf(0x72)](getPackageName)[_0x177cdf(0x79)](_0x39d8d7=>!ALLOWED_REACT_MODULE_IMPORTS[_0x177cdf(0x8e)](_0x39d8d7));if(_0x1ff67c['length']>0x0)throw CliErrors[_0x177cdf(0x80)](_0x177cdf(0xa1)+ALLOWED_REACT_MODULE_IMPORTS_TEXT+'.\x20Unsupported:\x20'+[...new Set(_0x1ff67c)]['join'](',\x20'));}export function validateReactModuleSource(_0xb7951c){const _0x5da79f=a8_0x42edf8;if(!_0xb7951c[_0x5da79f(0xa2)]())throw CliErrors['validation']('Artifact\x20source\x20file\x20is\x20blank.');if(PAGE_LEVEL_PATTERNS[_0x5da79f(0xa5)](_0x1a038f=>_0x1a038f[_0x5da79f(0xb8)](_0xb7951c)))throw CliErrors['validation'](_0x5da79f(0x78));validateAllowedImports(_0xb7951c);}function buildArtifactInput(_0x41e336){const _0x33f264=a8_0x42edf8,_0x3dbcb7=readSourceFile(_0x41e336[_0x33f264(0x7b)](_0x33f264(0x6e))),_0x348705=_0x41e336['str'](_0x33f264(0x98))[_0x33f264(0xa2)](),_0x4a12c3=parseMetadata(_0x41e336[_0x33f264(0x7b)](_0x33f264(0xad)));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x348705?{'name':_0x348705}:{},'content':_0x3dbcb7,..._0x4a12c3?{'metadata':_0x4a12c3}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0x4f47df){const _0x3a3463=a8_0x42edf8;return{'id':_0x4f47df['id'],'name':_0x4f47df[_0x3a3463(0x98)],'artifactType':_0x4f47df[_0x3a3463(0x75)],'source':_0x4f47df[_0x3a3463(0xb7)],'favorite':_0x4f47df[_0x3a3463(0xa6)],'deleted':_0x4f47df['deleted'],'createTime':_0x4f47df[_0x3a3463(0x77)],'updateTime':_0x4f47df[_0x3a3463(0x92)]};}function detailArtifact(_0x5879a9){const _0x4d5bd4=a8_0x42edf8;return{'id':_0x5879a9['id'],'appCode':_0x5879a9[_0x4d5bd4(0xa7)],'name':_0x5879a9[_0x4d5bd4(0x98)],'artifactType':_0x5879a9[_0x4d5bd4(0x75)],'source':_0x5879a9['source'],'favorite':_0x5879a9['favorite'],'deleted':_0x5879a9[_0x4d5bd4(0xb4)],'content':_0x5879a9[_0x4d5bd4(0xb2)]??'','compiledContent':_0x5879a9[_0x4d5bd4(0xab)],'metadata':_0x5879a9['metadata']??{},'createTime':_0x5879a9[_0x4d5bd4(0x77)],'updateTime':_0x5879a9[_0x4d5bd4(0x92)]};}function readFavoriteFlag(_0x5e4000){const _0x529b51=a8_0x42edf8,_0x4c96ca=_0x5e4000[_0x529b51(0x85)](_0x529b51(0xa6));return _0x4c96ca===undefined||_0x4c96ca===null||_0x4c96ca===''?undefined:_0x5e4000[_0x529b51(0xb6)]('favorite');}function a8_0x8702(){const _0x18487a=['num','split','build','File\x20path\x20is\x20required.','flag','detail','react_module','Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped','18ySNjEF','408368qxlgGI','Updated\x20Artifact\x20','5UYyPQT','react-dom','includes','isArray','lodash','204QcbJuh','updateTime','lastIndex','boolean','1390214UfIEYF','add','update','name','Created\x20Artifact\x20','react','60yxaeaL','read','Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','17482vBvhne','List\x20current-app\x20react_module\x20Artifacts','Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file','react_module\x20imports\x20are\x20limited\x20to:\x20','trim','1667600aRHYAR','Preview:\x20update\x20react_module\x20Artifact\x20','some','favorite','appCode','2523pTHpqC','/update','artifact','compiledContent','1182024gDJLcg','metadata','/client/artifact/','--metadata\x20must\x20be\x20a\x20JSON\x20object.','475673CcPItL','Artifact\x20ID','content','join','deleted','utf8','bool','source','test','string','Optional\x20favorite-state\x20filter','Preview:\x20create\x20react_module\x20Artifact','@ant-design/icons','isFile','dayjs','startsWith','file','description','/client/artifact/create','verbose','map','Optional\x20source\x20filter,\x20for\x20example\x20AGENT','write','artifactType','POST','createTime','react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.','filter','2FKFPqV','str','File\x20is\x20not\x20a\x20regular\x20file:\x20','exec','Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','object','validation'];a8_0x8702=function(){return _0x18487a;};return a8_0x8702();}const artifactList={'service':a8_0x42edf8(0xaa),'command':'list','description':a8_0x42edf8(0x9f),'risk':'read','flags':[{'name':a8_0x42edf8(0xb7),'type':a8_0x42edf8(0xb9),'description':a8_0x42edf8(0x73)},{'name':a8_0x42edf8(0xa6),'type':a8_0x42edf8(0x94),'description':a8_0x42edf8(0xba)},VERBOSE_FLAG],async 'execute'(_0x36be52){const _0x4d2747=a8_0x42edf8,_0x300c20=await listRuntimeArtifacts(_0x36be52[_0x4d2747(0xa7)],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x36be52[_0x4d2747(0x7b)]('source')?{'source':_0x36be52[_0x4d2747(0x7b)](_0x4d2747(0xb7))}:{},...readFavoriteFlag(_0x36be52)!==undefined?{'favorite':readFavoriteFlag(_0x36be52)}:{}});return{'ok':!![],'data':{'total':_0x300c20['length'],'items':_0x36be52[_0x4d2747(0xb6)](_0x4d2747(0x71))?_0x300c20:_0x300c20[_0x4d2747(0x72)](summarizeArtifact)}};}},artifactDetail={'service':a8_0x42edf8(0xaa),'command':a8_0x42edf8(0x86),'description':'Show\x20one\x20Artifact\x20by\x20id','risk':a8_0x42edf8(0x9c),'flags':[{...ID_FLAG,'description':a8_0x42edf8(0xb1)}],async 'execute'(_0x4be941){const _0x37dd49=a8_0x42edf8,_0x1e194e=await getRuntimeArtifact(_0x4be941['num']('id'),_0x4be941[_0x37dd49(0xa7)]);return{'ok':!![],'data':detailArtifact(_0x1e194e)};}},artifactCreate={'service':'artifact','command':'create','description':a8_0x42edf8(0x7e),'risk':a8_0x42edf8(0x74),'flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x18e065){const _0x42b347=a8_0x42edf8,_0x329a70=buildArtifactInput(_0x18e065),_0x42aa33=await createRuntimeArtifact(_0x18e065[_0x42b347(0xa7)],_0x329a70);return{'ok':!![],'data':detailArtifact(_0x42aa33),'message':_0x42b347(0x99)+_0x42aa33['id']+(_0x42aa33[_0x42b347(0x98)]?'\x20('+_0x42aa33[_0x42b347(0x98)]+')':'')};},async 'dryRun'(_0xb7e4f9){const _0x2cbf8d=a8_0x42edf8,_0x59364f=buildArtifactInput(_0xb7e4f9);return dryRun(_0x2cbf8d(0x76),_0x2cbf8d(0x70))['body']({'appCode':_0xb7e4f9[_0x2cbf8d(0xa7)],..._0x59364f})[_0x2cbf8d(0x6f)](_0x2cbf8d(0xbb))['build']();}},artifactUpdate={'service':a8_0x42edf8(0xaa),'command':a8_0x42edf8(0x97),'description':a8_0x42edf8(0x9d),'risk':a8_0x42edf8(0x74),'flags':[{...ID_FLAG,'description':'Artifact\x20ID'},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x62fe73){const _0x54a81c=a8_0x42edf8,_0x473883=_0x62fe73[_0x54a81c(0x81)]('id'),_0x55f555=buildArtifactInput(_0x62fe73),_0x59a169=await updateRuntimeArtifact(_0x473883,_0x62fe73[_0x54a81c(0xa7)],_0x55f555);return{'ok':!![],'data':detailArtifact(_0x59a169),'message':_0x54a81c(0x8b)+_0x59a169['id']+(_0x59a169[_0x54a81c(0x98)]?'\x20('+_0x59a169[_0x54a81c(0x98)]+')':'')};},async 'dryRun'(_0x598df4){const _0x32522c=a8_0x42edf8,_0x4f4c93=_0x598df4['num']('id'),_0x394a9f=buildArtifactInput(_0x598df4);return dryRun(_0x32522c(0x76),_0x32522c(0xae)+_0x4f4c93+_0x32522c(0xa9))['body']({'appCode':_0x598df4[_0x32522c(0xa7)],..._0x394a9f})['description'](_0x32522c(0xa4)+_0x4f4c93)[_0x32522c(0x83)]();}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
@@ -1 +1 @@
1
- const a9_0x4d62a2=a9_0x27df;(function(_0x42958f,_0x2495f0){const _0x4e1936=a9_0x27df,_0x2cccf1=_0x42958f();while(!![]){try{const _0x5471c5=-parseInt(_0x4e1936(0x112))/0x1+parseInt(_0x4e1936(0x106))/0x2+parseInt(_0x4e1936(0x126))/0x3+parseInt(_0x4e1936(0x156))/0x4*(parseInt(_0x4e1936(0x146))/0x5)+parseInt(_0x4e1936(0x12c))/0x6+-parseInt(_0x4e1936(0x11b))/0x7+-parseInt(_0x4e1936(0x107))/0x8;if(_0x5471c5===_0x2495f0)break;else _0x2cccf1['push'](_0x2cccf1['shift']());}catch(_0x2fd6c7){_0x2cccf1['push'](_0x2cccf1['shift']());}}}(a9_0x85f7,0xb7dfb));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a9_0x27df(_0x2e2051,_0x1f8c47){_0x2e2051=_0x2e2051-0x103;const _0x85f7e7=a9_0x85f7();let _0x27df95=_0x85f7e7[_0x2e2051];return _0x27df95;}import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{getLoginUserInfo}from'../../core/api-client.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function showAccessKeyCreateHint(){const _0x4c59f3=a9_0x27df;writeCliSideChannelLine(_0x4c59f3(0x12a)+PRODUCT_CONFIG[_0x4c59f3(0x147)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x4c59f3(0x150)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x4c59f3(0x127));}function a9_0x85f7(){const _0x455ed7=['\x20doctor','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','production','658805JKnnsg','yes','Then\x20verify\x20with:\x20','AccessKey:\x20','push','AccessKey\x20saved\x20to\x20','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','project','trim','10342283PhhpjY','Clear\x20accessKey\x20from\x20config','Clear\x20from\x20global\x20config\x20(default)','ACCESS_KEY','newConfigFileName','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','isTTY','global-default','validation','repeat','daily','3767976KOlFfW','\x20auth\x20login\x20--access-key\x20<ak_xxx>','No\x20AccessKey\x20found\x20in\x20','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','\x20config.','2403498jHtOlh','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','bool','\x20config.\x20Nothing\x20to\x20clear.','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','Shorthand\x20for\x20--access-key','init','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','Auth\x20mode:\x20','\x20scope.','write','stdout','env','boolean','\x20config','string','AccessKey\x20cleared\x20from\x20','cancelled','Write\x20to\x20global\x20config\x20(default)','Show\x20current\x20authentication\x20status','\x20Current\x20env:\x20','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','slice','Missing\x20accessKey.','status','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','40EgmPKp','userCenterDisplayName','read','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','login','Option\x20B:\x20apps\x20config\x20(','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','Option\x20C:\x20environment\x20variable','auth','info','Tip:\x20you\x20can\x20also\x20run:','access-key','\x20(via\x20','nonInteractive','ClientAk','development','555248Jiyabc','global','Use\x20`','\x20auth\x20status','accessKey','str','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','1499596TlYORo','5019584OKHFfP','logout','length','\x20Verify:\x20','join','AccessKey\x20(ak_xxx...)','\x20\x20export\x20','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config'];a9_0x85f7=function(){return _0x455ed7;};return a9_0x85f7();}function buildAccessKeySetupGuide(){const _0x35ed9=a9_0x27df;return[_0x35ed9(0x12a)+PRODUCT_CONFIG[_0x35ed9(0x147)]+':',USER_ACCESS_KEY_CREATE_URL,_0x35ed9(0x118)+CLI_BIN_NAME+_0x35ed9(0x130)]['join']('\x0a');}function canPromptForAccessKey(_0x1b40ff){const _0x3a01c3=a9_0x27df;return!_0x1b40ff['nonInteractive']&&process['stdin'][_0x3a01c3(0x121)]!==![]&&process[_0x3a01c3(0x137)][_0x3a01c3(0x121)]!==![];}function resolveAuthScopeFlags(_0x525fde){const _0x3739e7=a9_0x27df;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x525fde[_0x3739e7(0x12e)](_0x3739e7(0x157)),'explicitProject':_0x525fde[_0x3739e7(0x12e)](_0x3739e7(0x119)),'policy':_0x3739e7(0x122)}));}async function resolveAuthWriteInput(_0xf6194b){const _0x57ac3e=a9_0x27df;let _0x4b01af=(_0xf6194b[_0x57ac3e(0x104)](_0x57ac3e(0x151))||_0xf6194b[_0x57ac3e(0x104)]('ak')||'')[_0x57ac3e(0x11a)]();const _0x320b90=(_0xf6194b[_0x57ac3e(0x104)](_0x57ac3e(0x138))||'')['trim']();if(!_0x4b01af&&canPromptForAccessKey(_0xf6194b))try{showAccessKeyCreateHint(),_0x4b01af=await promptAccessKey('');}catch(_0x5bbecb){if(isAbortPrompt(_0x5bbecb))throw CliErrors[_0x57ac3e(0x13d)]();throw _0x5bbecb;}if(!_0x4b01af)throw CliErrors[_0x57ac3e(0x123)](_0x57ac3e(0x143),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN['test'](_0x4b01af))throw CliErrors[_0x57ac3e(0x123)]('Invalid\x20accessKey\x20format:\x20\x22'+_0x4b01af+'\x22',_0x57ac3e(0x145));if(!_0x320b90)return{'accessKey':_0x4b01af};const _0x23cc9e=normalizeEnv(_0x320b90);return{'accessKey':_0x4b01af,'env':isDaily(_0x23cc9e)?_0x57ac3e(0x125):isDev(_0x23cc9e)?_0x57ac3e(0x155):_0x57ac3e(0x111)};}export const authDefinitions=[{'service':a9_0x4d62a2(0x14e),'command':a9_0x4d62a2(0x14a),'description':'Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','risk':a9_0x4d62a2(0x136),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x4d62a2(0x151),'type':a9_0x4d62a2(0x13b),'description':a9_0x4d62a2(0x10c)},{'name':'ak','type':a9_0x4d62a2(0x13b),'description':'Shorthand\x20for\x20--access-key'},{'name':a9_0x4d62a2(0x157),'type':a9_0x4d62a2(0x139),'description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':'project','type':a9_0x4d62a2(0x139),'description':a9_0x4d62a2(0x105),'default':![]}],async 'execute'(_0x356fc8){const _0x5d75b9=a9_0x4d62a2;if(_0x356fc8[_0x5d75b9(0x12e)](_0x5d75b9(0x113)))throw CliErrors[_0x5d75b9(0x123)]('`auth\x20login`\x20does\x20not\x20support\x20--yes.',_0x5d75b9(0x158)+CLI_BIN_NAME+_0x5d75b9(0x110)+CLI_BIN_NAME+_0x5d75b9(0x14c));const _0x7b0aa6=(_0x356fc8[_0x5d75b9(0x104)]('access-key')||_0x356fc8[_0x5d75b9(0x104)]('ak')||'')[_0x5d75b9(0x11a)]();if(!_0x7b0aa6&&_0x356fc8[_0x5d75b9(0x153)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x58fcaf=await resolveAuthWriteInput(_0x356fc8),_0x3d0bb5=resolveAuthScopeFlags(_0x356fc8),_0x310ca8=readScopedConfig(_0x3d0bb5);_0x310ca8[_0x5d75b9(0x103)]=_0x58fcaf[_0x5d75b9(0x103)];_0x58fcaf[_0x5d75b9(0x138)]&&(_0x310ca8[_0x5d75b9(0x138)]=_0x58fcaf[_0x5d75b9(0x138)]);writeScopedConfig(_0x310ca8,_0x3d0bb5);const _0x315ba7=_0x3d0bb5[_0x5d75b9(0x157)]?'global':_0x5d75b9(0x119),_0xad2f6e=_0x310ca8[_0x5d75b9(0x138)]?'\x20Current\x20env:\x20'+_0x310ca8[_0x5d75b9(0x138)]+'.':'';return{'ok':!![],'message':_0x5d75b9(0x117)+_0x315ba7+_0x5d75b9(0x12b)+_0xad2f6e+_0x5d75b9(0x10a)+CLI_BIN_NAME+_0x5d75b9(0x159)};}},{'service':a9_0x4d62a2(0x14e),'command':a9_0x4d62a2(0x132),'description':'Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','risk':a9_0x4d62a2(0x136),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'access-key','type':a9_0x4d62a2(0x13b),'description':a9_0x4d62a2(0x10c)},{'name':'ak','type':a9_0x4d62a2(0x13b),'description':a9_0x4d62a2(0x131)},{'name':a9_0x4d62a2(0x138),'type':a9_0x4d62a2(0x13b),'description':a9_0x4d62a2(0x10e)},{'name':'global','type':'boolean','description':a9_0x4d62a2(0x13e),'default':!![]},{'name':a9_0x4d62a2(0x119),'type':a9_0x4d62a2(0x139),'description':a9_0x4d62a2(0x105),'default':![]}],async 'execute'(_0x10c899){const _0x130365=a9_0x4d62a2,_0x511e8c=await resolveAuthWriteInput(_0x10c899),_0x5d2fca=resolveAuthScopeFlags(_0x10c899),_0x58c7b9={'accessKey':_0x511e8c['accessKey']};_0x511e8c[_0x130365(0x138)]&&(_0x58c7b9[_0x130365(0x138)]=_0x511e8c[_0x130365(0x138)]);writeScopedConfig(_0x58c7b9,_0x5d2fca);const _0x5e1c35=_0x5d2fca[_0x130365(0x157)]?_0x130365(0x157):_0x130365(0x119),_0x86739d=_0x58c7b9[_0x130365(0x138)]?_0x130365(0x140)+_0x58c7b9[_0x130365(0x138)]+'.':'';return{'ok':!![],'message':'Auth\x20config\x20reinitialized\x20in\x20'+_0x5e1c35+_0x130365(0x135)+_0x86739d+'\x20Verify:\x20'+CLI_BIN_NAME+_0x130365(0x159)};}},{'service':a9_0x4d62a2(0x14e),'command':a9_0x4d62a2(0x108),'description':a9_0x4d62a2(0x11c),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x4d62a2(0x157),'type':'boolean','description':a9_0x4d62a2(0x11d),'default':!![]},{'name':'project','type':a9_0x4d62a2(0x139),'description':'Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x1dd38d){const _0x51b62c=a9_0x4d62a2,_0x548796=resolveAuthScopeFlags(_0x1dd38d),_0x23c9a3=readScopedConfig(_0x548796),_0x150364=!!_0x23c9a3[_0x51b62c(0x103)];delete _0x23c9a3[_0x51b62c(0x103)],writeScopedConfig(_0x23c9a3,_0x548796);const _0x1fcc04=_0x548796[_0x51b62c(0x157)]?_0x51b62c(0x157):_0x51b62c(0x119);if(_0x150364)return{'ok':!![],'message':_0x51b62c(0x13c)+_0x1fcc04+'\x20config.'};return{'ok':!![],'message':_0x51b62c(0x128)+_0x1fcc04+_0x51b62c(0x12f)};}},{'service':a9_0x4d62a2(0x14e),'command':a9_0x4d62a2(0x144),'description':a9_0x4d62a2(0x13f),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x4d62a2(0x157),'type':a9_0x4d62a2(0x139),'description':'Read\x20from\x20global\x20config\x20(default)','default':!![]},{'name':a9_0x4d62a2(0x119),'type':a9_0x4d62a2(0x139),'description':a9_0x4d62a2(0x12d),'default':![]}],async 'execute'(_0x308f88){const _0x5e7473=a9_0x4d62a2,_0x3ba1b1=resolveAuthScopeFlags(_0x308f88),_0x5c6f85=readScopedConfig(_0x3ba1b1),_0x261cf3=productEnvName(_0x5e7473(0x11e)),_0x40e34c=productEnv(_0x5e7473(0x11e))||undefined,_0x4b9e25=_0x5c6f85[_0x5e7473(0x103)]||undefined,_0x39e9e5=_0x40e34c||_0x4b9e25,_0x5f088d=_0x40e34c?_0x261cf3+'\x20env\x20var':_0x4b9e25?(_0x3ba1b1[_0x5e7473(0x157)]?_0x5e7473(0x157):_0x5e7473(0x119))+_0x5e7473(0x13a):null,_0x401d63=[_0x5e7473(0x134)+AUTH_MODE[_0x5e7473(0x154)]];if(_0x39e9e5){const _0x62d17c=_0x39e9e5[_0x5e7473(0x109)]>0x8?''+_0x39e9e5[_0x5e7473(0x142)](0x0,0x8)+'*'[_0x5e7473(0x124)](_0x39e9e5[_0x5e7473(0x109)]-0x8):_0x39e9e5;_0x401d63[_0x5e7473(0x116)](_0x5e7473(0x115)+_0x62d17c+(_0x5f088d?_0x5e7473(0x152)+_0x5f088d+')':''));}return!_0x39e9e5&&(_0x401d63[_0x5e7473(0x116)](''),_0x401d63[_0x5e7473(0x116)](_0x5e7473(0x129)),_0x401d63['push'](''),_0x401d63[_0x5e7473(0x116)]('Option\x20A:\x20'+CLI_BIN_NAME+_0x5e7473(0x149)),_0x401d63[_0x5e7473(0x116)](''),_0x401d63['push'](_0x5e7473(0x14b)+PRODUCT_CONFIG[_0x5e7473(0x11f)]+')'),_0x401d63[_0x5e7473(0x116)](_0x5e7473(0x133)),_0x401d63['push'](''),_0x401d63[_0x5e7473(0x116)](_0x5e7473(0x14d)),_0x401d63[_0x5e7473(0x116)](_0x5e7473(0x10d)+_0x261cf3+'=ak_xxx'),_0x401d63['push'](''),_0x401d63[_0x5e7473(0x116)](_0x5e7473(0x114)+CLI_BIN_NAME+_0x5e7473(0x159)),_0x401d63[_0x5e7473(0x116)](_0x5e7473(0x141)+CLI_BIN_NAME+_0x5e7473(0x10f))),{'ok':!![],'message':_0x401d63[_0x5e7473(0x10b)]('\x0a')};}},{'service':'auth','command':a9_0x4d62a2(0x14f),'description':a9_0x4d62a2(0x120),'risk':a9_0x4d62a2(0x148),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0xc3d289){const _0x286cd6=a9_0x4d62a2,_0x5a1e1f=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x5a1e1f,'meta':{'env':_0xc3d289['envName']??_0x286cd6(0x111)}}};}}];
1
+ const a9_0x1976e1=a9_0x279a;(function(_0x3a9e09,_0x1b85b2){const _0x14c040=a9_0x279a,_0x387655=_0x3a9e09();while(!![]){try{const _0x15ce54=-parseInt(_0x14c040(0x14f))/0x1+parseInt(_0x14c040(0x156))/0x2+parseInt(_0x14c040(0x184))/0x3*(parseInt(_0x14c040(0x13c))/0x4)+-parseInt(_0x14c040(0x133))/0x5+parseInt(_0x14c040(0x172))/0x6+parseInt(_0x14c040(0x159))/0x7*(-parseInt(_0x14c040(0x155))/0x8)+-parseInt(_0x14c040(0x15c))/0x9;if(_0x15ce54===_0x1b85b2)break;else _0x387655['push'](_0x387655['shift']());}catch(_0x439e13){_0x387655['push'](_0x387655['shift']());}}}(a9_0x378a,0x38e16));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';import{AUTH_MODE}from'../../constant/auth-mode.js';function a9_0x378a(){const _0x110492=['\x20Current\x20env:\x20','bool','write','Clear\x20accessKey\x20from\x20config','validation','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','yes','isTTY','repeat','login','Shorthand\x20for\x20--access-key','Option\x20B:\x20apps\x20config\x20(','AccessKey:\x20','AccessKey\x20saved\x20to\x20','3PGHUeV','cancelled','\x20scope.','`auth\x20login`\x20does\x20not\x20support\x20--yes.','init','AccessKey\x20cleared\x20from\x20','newConfigFileName','boolean','project','834595NVPpdH','\x20env\x20var','push','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','read','userCenterDisplayName','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','production','envName','1066028BtXtbe','\x20config.\x20Nothing\x20to\x20clear.','No\x20AccessKey\x20found\x20in\x20','Option\x20A:\x20','\x20\x20export\x20','\x20config.','\x20auth\x20status','Then\x20verify\x20with:\x20','nonInteractive','join','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','info','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','accessKey','str','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','\x20auth\x20login\x20--access-key\x20<ak_xxx>','\x20config','ClientAk','286205AstUmx','access-key','string','length','Show\x20current\x20authentication\x20status','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','2144FinZKt','706136gvFmrm','status','ACCESS_KEY','4606FSeiZL','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','Clear\x20from\x20global\x20config\x20(default)','1964223sxTKIz','development','Use\x20`','global','Write\x20to\x20global\x20config\x20(default)','Auth\x20config\x20reinitialized\x20in\x20','env','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','auth','stdin','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','daily','Invalid\x20accessKey\x20format:\x20\x22','AccessKey\x20(ak_xxx...)','=ak_xxx','Auth\x20mode:\x20','trim','\x20doctor','stdout','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','Read\x20from\x20global\x20config\x20(default)','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','2766732vNPcQA','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','\x20(via\x20'];a9_0x378a=function(){return _0x110492;};return a9_0x378a();}import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';function a9_0x279a(_0x94e5a2,_0x3a5cfd){_0x94e5a2=_0x94e5a2-0x133;const _0x378ac4=a9_0x378a();let _0x279ae7=_0x378ac4[_0x94e5a2];return _0x279ae7;}import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{getLoginUserInfo}from'../../core/api-client.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function showAccessKeyCreateHint(){const _0x3782bf=a9_0x279a;writeCliSideChannelLine(_0x3782bf(0x166)+PRODUCT_CONFIG[_0x3782bf(0x138)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine('Tip:\x20you\x20can\x20also\x20run:'),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x3782bf(0x14c));}function buildAccessKeySetupGuide(){const _0x42e7bd=a9_0x279a;return['AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0x42e7bd(0x138)]+':',USER_ACCESS_KEY_CREATE_URL,_0x42e7bd(0x171)+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]']['join']('\x0a');}function canPromptForAccessKey(_0x33a979){const _0x3cd96b=a9_0x279a;return!_0x33a979[_0x3cd96b(0x144)]&&process[_0x3cd96b(0x165)]['isTTY']!==![]&&process[_0x3cd96b(0x16e)][_0x3cd96b(0x17d)]!==![];}function resolveAuthScopeFlags(_0x59134c){const _0x50d041=a9_0x279a;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x59134c[_0x50d041(0x177)]('global'),'explicitProject':_0x59134c[_0x50d041(0x177)]('project'),'policy':'global-default'}));}async function resolveAuthWriteInput(_0x3e93f1){const _0xb3934c=a9_0x279a;let _0x4d8fb8=(_0x3e93f1[_0xb3934c(0x14a)](_0xb3934c(0x150))||_0x3e93f1[_0xb3934c(0x14a)]('ak')||'')[_0xb3934c(0x16c)]();const _0x1cb072=(_0x3e93f1['str'](_0xb3934c(0x162))||'')['trim']();if(!_0x4d8fb8&&canPromptForAccessKey(_0x3e93f1))try{showAccessKeyCreateHint(),_0x4d8fb8=await promptAccessKey('');}catch(_0xb037b){if(isAbortPrompt(_0xb037b))throw CliErrors[_0xb3934c(0x185)]();throw _0xb037b;}if(!_0x4d8fb8)throw CliErrors['validation']('Missing\x20accessKey.',buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN['test'](_0x4d8fb8))throw CliErrors[_0xb3934c(0x17a)](_0xb3934c(0x168)+_0x4d8fb8+'\x22',_0xb3934c(0x14b));if(!_0x1cb072)return{'accessKey':_0x4d8fb8};const _0x3cdbbc=normalizeEnv(_0x1cb072);return{'accessKey':_0x4d8fb8,'env':isDaily(_0x3cdbbc)?_0xb3934c(0x167):isDev(_0x3cdbbc)?_0xb3934c(0x15d):_0xb3934c(0x13a)};}export const authDefinitions=[{'service':a9_0x1976e1(0x164),'command':a9_0x1976e1(0x17f),'description':'Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','risk':a9_0x1976e1(0x178),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x1976e1(0x150),'type':a9_0x1976e1(0x151),'description':a9_0x1976e1(0x169)},{'name':'ak','type':'string','description':a9_0x1976e1(0x180)},{'name':a9_0x1976e1(0x15f),'type':'boolean','description':a9_0x1976e1(0x160),'default':!![]},{'name':a9_0x1976e1(0x18c),'type':'boolean','description':a9_0x1976e1(0x17b),'default':![]}],async 'execute'(_0x4ff93c){const _0x19681b=a9_0x1976e1;if(_0x4ff93c[_0x19681b(0x177)](_0x19681b(0x17c)))throw CliErrors[_0x19681b(0x17a)](_0x19681b(0x187),_0x19681b(0x15e)+CLI_BIN_NAME+_0x19681b(0x173)+CLI_BIN_NAME+_0x19681b(0x136));const _0x44012c=(_0x4ff93c[_0x19681b(0x14a)](_0x19681b(0x150))||_0x4ff93c[_0x19681b(0x14a)]('ak')||'')[_0x19681b(0x16c)]();if(!_0x44012c&&_0x4ff93c[_0x19681b(0x144)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x4179b1=await resolveAuthWriteInput(_0x4ff93c),_0xc8b298=resolveAuthScopeFlags(_0x4ff93c),_0x4b10ed=readScopedConfig(_0xc8b298);_0x4b10ed['accessKey']=_0x4179b1[_0x19681b(0x149)];_0x4179b1[_0x19681b(0x162)]&&(_0x4b10ed[_0x19681b(0x162)]=_0x4179b1['env']);writeScopedConfig(_0x4b10ed,_0xc8b298);const _0xfd25e7=_0xc8b298[_0x19681b(0x15f)]?_0x19681b(0x15f):_0x19681b(0x18c),_0x1b986a=_0x4b10ed[_0x19681b(0x162)]?_0x19681b(0x176)+_0x4b10ed['env']+'.':'';return{'ok':!![],'message':_0x19681b(0x183)+_0xfd25e7+'\x20config.'+_0x1b986a+'\x20Verify:\x20'+CLI_BIN_NAME+_0x19681b(0x142)};}},{'service':'auth','command':a9_0x1976e1(0x188),'description':a9_0x1976e1(0x16f),'risk':a9_0x1976e1(0x178),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'access-key','type':a9_0x1976e1(0x151),'description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':a9_0x1976e1(0x151),'description':a9_0x1976e1(0x180)},{'name':a9_0x1976e1(0x162),'type':a9_0x1976e1(0x151),'description':a9_0x1976e1(0x139)},{'name':a9_0x1976e1(0x15f),'type':a9_0x1976e1(0x18b),'description':a9_0x1976e1(0x160),'default':!![]},{'name':'project','type':'boolean','description':a9_0x1976e1(0x17b),'default':![]}],async 'execute'(_0x7b2dcf){const _0xa06491=a9_0x1976e1,_0x344fd0=await resolveAuthWriteInput(_0x7b2dcf),_0x3df19d=resolveAuthScopeFlags(_0x7b2dcf),_0x3e9a4d={'accessKey':_0x344fd0[_0xa06491(0x149)]};_0x344fd0['env']&&(_0x3e9a4d['env']=_0x344fd0[_0xa06491(0x162)]);writeScopedConfig(_0x3e9a4d,_0x3df19d);const _0x3de2b6=_0x3df19d[_0xa06491(0x15f)]?_0xa06491(0x15f):'project',_0x1012ed=_0x3e9a4d['env']?'\x20Current\x20env:\x20'+_0x3e9a4d[_0xa06491(0x162)]+'.':'';return{'ok':!![],'message':_0xa06491(0x161)+_0x3de2b6+_0xa06491(0x186)+_0x1012ed+'\x20Verify:\x20'+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':a9_0x1976e1(0x164),'command':'logout','description':a9_0x1976e1(0x179),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x1976e1(0x15f),'type':'boolean','description':a9_0x1976e1(0x15b),'default':!![]},{'name':'project','type':a9_0x1976e1(0x18b),'description':a9_0x1976e1(0x163),'default':![]}],async 'execute'(_0xe4c063){const _0x403ecf=a9_0x1976e1,_0x5a0206=resolveAuthScopeFlags(_0xe4c063),_0x5a8cfd=readScopedConfig(_0x5a0206),_0x2bd2ed=!!_0x5a8cfd[_0x403ecf(0x149)];delete _0x5a8cfd[_0x403ecf(0x149)],writeScopedConfig(_0x5a8cfd,_0x5a0206);const _0x5afbbe=_0x5a0206['global']?_0x403ecf(0x15f):_0x403ecf(0x18c);if(_0x2bd2ed)return{'ok':!![],'message':_0x403ecf(0x189)+_0x5afbbe+_0x403ecf(0x141)};return{'ok':!![],'message':_0x403ecf(0x13e)+_0x5afbbe+_0x403ecf(0x13d)};}},{'service':a9_0x1976e1(0x164),'command':a9_0x1976e1(0x157),'description':a9_0x1976e1(0x153),'risk':a9_0x1976e1(0x137),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a9_0x1976e1(0x15f),'type':'boolean','description':a9_0x1976e1(0x170),'default':!![]},{'name':a9_0x1976e1(0x18c),'type':a9_0x1976e1(0x18b),'description':a9_0x1976e1(0x15a),'default':![]}],async 'execute'(_0x4b25f9){const _0x3e6701=a9_0x1976e1,_0x5e69f6=resolveAuthScopeFlags(_0x4b25f9),_0xa3609d=readScopedConfig(_0x5e69f6),_0x3f34aa=productEnvName(_0x3e6701(0x158)),_0xfecc98=productEnv('ACCESS_KEY')||undefined,_0x2b871e=_0xa3609d[_0x3e6701(0x149)]||undefined,_0x497473=_0xfecc98||_0x2b871e,_0x50992a=_0xfecc98?_0x3f34aa+_0x3e6701(0x134):_0x2b871e?(_0x5e69f6[_0x3e6701(0x15f)]?'global':_0x3e6701(0x18c))+_0x3e6701(0x14d):null,_0x311a3f=[_0x3e6701(0x16b)+AUTH_MODE[_0x3e6701(0x14e)]];if(_0x497473){const _0xadaa87=_0x497473[_0x3e6701(0x152)]>0x8?''+_0x497473['slice'](0x0,0x8)+'*'[_0x3e6701(0x17e)](_0x497473[_0x3e6701(0x152)]-0x8):_0x497473;_0x311a3f[_0x3e6701(0x135)](_0x3e6701(0x182)+_0xadaa87+(_0x50992a?_0x3e6701(0x175)+_0x50992a+')':''));}return!_0x497473&&(_0x311a3f[_0x3e6701(0x135)](''),_0x311a3f[_0x3e6701(0x135)]('No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:'),_0x311a3f[_0x3e6701(0x135)](''),_0x311a3f[_0x3e6701(0x135)](_0x3e6701(0x13f)+CLI_BIN_NAME+_0x3e6701(0x146)),_0x311a3f[_0x3e6701(0x135)](''),_0x311a3f[_0x3e6701(0x135)](_0x3e6701(0x181)+PRODUCT_CONFIG[_0x3e6701(0x18a)]+')'),_0x311a3f['push'](_0x3e6701(0x174)),_0x311a3f['push'](''),_0x311a3f['push']('Option\x20C:\x20environment\x20variable'),_0x311a3f[_0x3e6701(0x135)](_0x3e6701(0x140)+_0x3f34aa+_0x3e6701(0x16a)),_0x311a3f['push'](''),_0x311a3f[_0x3e6701(0x135)](_0x3e6701(0x143)+CLI_BIN_NAME+_0x3e6701(0x142)),_0x311a3f[_0x3e6701(0x135)](_0x3e6701(0x154)+CLI_BIN_NAME+_0x3e6701(0x16d))),{'ok':!![],'message':_0x311a3f[_0x3e6701(0x145)]('\x0a')};}},{'service':a9_0x1976e1(0x164),'command':a9_0x1976e1(0x147),'description':a9_0x1976e1(0x148),'risk':a9_0x1976e1(0x137),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x49a80e){const _0x282bfb=a9_0x1976e1,_0x3bbbac=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x3bbbac,'meta':{'env':_0x49a80e[_0x282bfb(0x13b)]??'production'}}};}}];
@@ -1 +1 @@
1
- (function(_0x2c4766,_0x19bdcf){const _0x154798=a10_0x70af,_0x2eb4d5=_0x2c4766();while(!![]){try{const _0x57b104=parseInt(_0x154798(0xd1))/0x1+-parseInt(_0x154798(0xd8))/0x2*(-parseInt(_0x154798(0xc6))/0x3)+-parseInt(_0x154798(0xd9))/0x4+-parseInt(_0x154798(0xca))/0x5*(-parseInt(_0x154798(0xcf))/0x6)+parseInt(_0x154798(0xc8))/0x7+-parseInt(_0x154798(0xd6))/0x8+-parseInt(_0x154798(0xce))/0x9*(parseInt(_0x154798(0xc9))/0xa);if(_0x57b104===_0x19bdcf)break;else _0x2eb4d5['push'](_0x2eb4d5['shift']());}catch(_0x5da9ca){_0x2eb4d5['push'](_0x2eb4d5['shift']());}}}(a10_0x18ff,0x50615));function a10_0x70af(_0x510ec5,_0x12785f){_0x510ec5=_0x510ec5-0xc5;const _0x18ff78=a10_0x18ff();let _0x70afbd=_0x18ff78[_0x510ec5];return _0x70afbd;}import{createInterface}from'node:readline';function a10_0x18ff(){const _0x11bfb8=['6505bfQGVz','removeListener','User\x20aborted\x20prompt','trim','39222PKAThA','210VDVXDj','race','332473IKAfhU','AccessKey\x20(paste\x20ak_...):\x20','stdin','stdout','AbortPrompt','3632928PAwmMZ','question','138ZhOiPn','688000hYmEbq','close','AccessKey\x20(','name','26391mWPldo','SIGINT','1531306rBsEMu','570PCOUOP'];a10_0x18ff=function(){return _0x11bfb8;};return a10_0x18ff();}class AbortPrompt extends Error{constructor(){const _0x33f118=a10_0x70af;super(_0x33f118(0xcc)),this[_0x33f118(0xc5)]=_0x33f118(0xd5);}}function createSafeRl(){const _0x53e777=a10_0x70af,_0x539319=createInterface({'input':process[_0x53e777(0xd3)],'output':process[_0x53e777(0xd4)]});let _0x68e69b;const _0x79e2a6=new Promise((_0x21b6e1,_0x1b71bc)=>{const _0x7a76b6=_0x53e777;_0x68e69b=()=>{const _0x33010d=a10_0x70af;_0x68e69b&&(_0x539319[_0x33010d(0xcb)](_0x33010d(0xc7),_0x68e69b),_0x68e69b=undefined);try{_0x539319[_0x33010d(0xda)]();}catch{}_0x1b71bc(new AbortPrompt());},_0x539319['once'](_0x7a76b6(0xc7),_0x68e69b);}),_0x4f42f5=()=>{const _0x5ba51c=_0x53e777;_0x68e69b&&(_0x539319[_0x5ba51c(0xcb)](_0x5ba51c(0xc7),_0x68e69b),_0x68e69b=undefined);try{_0x539319['close']();}catch{}};return{'rl':_0x539319,'abortPromise':_0x79e2a6,'disposeSuccess':_0x4f42f5};}export async function promptAccessKey(_0x432ed2=''){const _0x55e14c=a10_0x70af,{rl:_0x2f3dd8,abortPromise:_0x43e8b6,disposeSuccess:_0x27a879}=createSafeRl(),_0x3f0d3b=new Promise(_0x1b11b4=>{const _0xd18645=a10_0x70af,_0x174a31=_0x432ed2?_0xd18645(0xdb)+_0x432ed2+'):\x20':_0xd18645(0xd2);_0x2f3dd8[_0xd18645(0xd7)](_0x174a31,_0x11826d=>{const _0x5b6ef9=_0xd18645;_0x27a879(),_0x1b11b4(_0x11826d[_0x5b6ef9(0xcd)]()||_0x432ed2);});});return Promise[_0x55e14c(0xd0)]([_0x3f0d3b,_0x43e8b6]);}export function isAbortPrompt(_0x313cda){const _0x11f813=a10_0x70af;return _0x313cda instanceof Error&&_0x313cda[_0x11f813(0xc5)]===_0x11f813(0xd5);}
1
+ function a10_0x356d(){const _0x58d503=['SIGINT','10nBhfEn','name','AbortPrompt','4010BupqUS','once','36CRpbiG','race','31240755EvgaIe','1733958YhhHTF','AccessKey\x20(','question','stdin','32YfkiHz','close','trim','4302wGDpwt','1942703zThrtO','removeListener','stdout','2922777aMbMFF','User\x20aborted\x20prompt','875429wJPGIl','2pxvQMv','AccessKey\x20(paste\x20ak_...):\x20','):\x20','452UhAUhb','17805RSjcFF'];a10_0x356d=function(){return _0x58d503;};return a10_0x356d();}(function(_0x12236f,_0x4a3dca){const _0x5f0b66=a10_0x2f30,_0x7382d2=_0x12236f();while(!![]){try{const _0x496c38=-parseInt(_0x5f0b66(0x100))/0x1*(parseInt(_0x5f0b66(0x101))/0x2)+parseInt(_0x5f0b66(0x105))/0x3*(-parseInt(_0x5f0b66(0x104))/0x4)+-parseInt(_0x5f0b66(0x10a))/0x5*(parseInt(_0x5f0b66(0xfa))/0x6)+parseInt(_0x5f0b66(0xfb))/0x7*(parseInt(_0x5f0b66(0xf7))/0x8)+-parseInt(_0x5f0b66(0xf3))/0x9*(-parseInt(_0x5f0b66(0x107))/0xa)+-parseInt(_0x5f0b66(0xfe))/0xb*(parseInt(_0x5f0b66(0xf0))/0xc)+parseInt(_0x5f0b66(0xf2))/0xd;if(_0x496c38===_0x4a3dca)break;else _0x7382d2['push'](_0x7382d2['shift']());}catch(_0x5e0583){_0x7382d2['push'](_0x7382d2['shift']());}}}(a10_0x356d,0xc04da));function a10_0x2f30(_0x1dc51b,_0x45cd2d){_0x1dc51b=_0x1dc51b-0xf0;const _0x356dd5=a10_0x356d();let _0x2f307e=_0x356dd5[_0x1dc51b];return _0x2f307e;}import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x211843=a10_0x2f30;super(_0x211843(0xff)),this[_0x211843(0x108)]=_0x211843(0x109);}}function createSafeRl(){const _0x157e04=a10_0x2f30,_0x9196c=createInterface({'input':process[_0x157e04(0xf6)],'output':process[_0x157e04(0xfd)]});let _0x4218a7;const _0x4788cd=new Promise((_0x15d12e,_0x88ad5b)=>{const _0x4cdf3a=_0x157e04;_0x4218a7=()=>{const _0x4d5c91=a10_0x2f30;_0x4218a7&&(_0x9196c[_0x4d5c91(0xfc)](_0x4d5c91(0x106),_0x4218a7),_0x4218a7=undefined);try{_0x9196c[_0x4d5c91(0xf8)]();}catch{}_0x88ad5b(new AbortPrompt());},_0x9196c[_0x4cdf3a(0x10b)](_0x4cdf3a(0x106),_0x4218a7);}),_0x4fb170=()=>{const _0xab5ea3=_0x157e04;_0x4218a7&&(_0x9196c[_0xab5ea3(0xfc)]('SIGINT',_0x4218a7),_0x4218a7=undefined);try{_0x9196c[_0xab5ea3(0xf8)]();}catch{}};return{'rl':_0x9196c,'abortPromise':_0x4788cd,'disposeSuccess':_0x4fb170};}export async function promptAccessKey(_0x55c1db=''){const _0x235a87=a10_0x2f30,{rl:_0x17b95a,abortPromise:_0x3a1c62,disposeSuccess:_0x583377}=createSafeRl(),_0x244faf=new Promise(_0x9a2bb2=>{const _0x501cc5=a10_0x2f30,_0x1e2f8e=_0x55c1db?_0x501cc5(0xf4)+_0x55c1db+_0x501cc5(0x103):_0x501cc5(0x102);_0x17b95a[_0x501cc5(0xf5)](_0x1e2f8e,_0x11814e=>{const _0x15a8d8=_0x501cc5;_0x583377(),_0x9a2bb2(_0x11814e[_0x15a8d8(0xf9)]()||_0x55c1db);});});return Promise[_0x235a87(0xf1)]([_0x244faf,_0x3a1c62]);}export function isAbortPrompt(_0x2a3c50){const _0x17897e=a10_0x2f30;return _0x2a3c50 instanceof Error&&_0x2a3c50[_0x17897e(0x108)]===_0x17897e(0x109);}
@@ -1 +1 @@
1
- const a11_0x26f35b=a11_0x1803;function a11_0x1803(_0x42dea5,_0x4b7e45){_0x42dea5=_0x42dea5-0x124;const _0x5047b8=a11_0x5047();let _0x180385=_0x5047b8[_0x42dea5];return _0x180385;}function a11_0x5047(){const _0x277c1d=['9691120foaRUG','7iXORBA','9mdOvUv','699138sLxIQx','145SnkPPc','21650OwXtCZ','functionName','verbose','read','11yrhKPM','15003096JBpKbn','updatedTime','1157396iQERmu','2316FscnYz','appCode','num','6018136RoYMEF','detail','scriptType','Script\x20ID','createdTime','(none)','8476aKaJev','bool'];a11_0x5047=function(){return _0x277c1d;};return a11_0x5047();}(function(_0x30c341,_0x2988bd){const _0x1d7f71=a11_0x1803,_0x588723=_0x30c341();while(!![]){try{const _0x1f39c9=parseInt(_0x1d7f71(0x126))/0x1*(parseInt(_0x1d7f71(0x138))/0x2)+-parseInt(_0x1d7f71(0x124))/0x3*(parseInt(_0x1d7f71(0x12e))/0x4)+-parseInt(_0x1d7f71(0x127))/0x5*(parseInt(_0x1d7f71(0x12f))/0x6)+-parseInt(_0x1d7f71(0x13b))/0x7*(-parseInt(_0x1d7f71(0x132))/0x8)+-parseInt(_0x1d7f71(0x125))/0x9+-parseInt(_0x1d7f71(0x13a))/0xa*(-parseInt(_0x1d7f71(0x12b))/0xb)+parseInt(_0x1d7f71(0x12c))/0xc;if(_0x1f39c9===_0x2988bd)break;else _0x588723['push'](_0x588723['shift']());}catch(_0xfc713c){_0x588723['push'](_0x588723['shift']());}}}(a11_0x5047,0xec94e));import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':'bff','command':a11_0x26f35b(0x133),'description':'Get\x20BFF\x20script\x20details\x20by\x20ID','risk':a11_0x26f35b(0x12a),'flags':[{...ID_FLAG,'description':a11_0x26f35b(0x135)},VERBOSE_FLAG],async 'execute'(_0x519e23){const _0x388a82=a11_0x26f35b,_0x24004c=await getBffScriptInfo(_0x519e23[_0x388a82(0x131)]('id')),_0x51ac74=_0x519e23[_0x388a82(0x139)](_0x388a82(0x129));if(_0x51ac74)return{'ok':!![],'data':_0x24004c};return{'ok':!![],'data':{'id':_0x24004c['id'],'appCode':_0x24004c[_0x388a82(0x130)],'functionName':_0x24004c[_0x388a82(0x128)]??'','scriptType':_0x24004c[_0x388a82(0x134)],'description':_0x24004c['description']||_0x388a82(0x137),'createdTime':_0x24004c[_0x388a82(0x136)]??'','updatedTime':_0x24004c[_0x388a82(0x12d)]??''}};}};
1
+ function a11_0x49e5(_0x5f5696,_0x43c280){_0x5f5696=_0x5f5696-0x75;const _0x5e26ac=a11_0x5e26();let _0x49e5bf=_0x5e26ac[_0x5f5696];return _0x49e5bf;}const a11_0x26ced0=a11_0x49e5;(function(_0x26fe69,_0x55789c){const _0x386839=a11_0x49e5,_0x3ec409=_0x26fe69();while(!![]){try{const _0xcb8281=-parseInt(_0x386839(0x7f))/0x1*(-parseInt(_0x386839(0x83))/0x2)+-parseInt(_0x386839(0x8d))/0x3*(parseInt(_0x386839(0x88))/0x4)+parseInt(_0x386839(0x8a))/0x5*(-parseInt(_0x386839(0x86))/0x6)+parseInt(_0x386839(0x85))/0x7*(-parseInt(_0x386839(0x80))/0x8)+parseInt(_0x386839(0x78))/0x9*(-parseInt(_0x386839(0x7b))/0xa)+-parseInt(_0x386839(0x7d))/0xb+-parseInt(_0x386839(0x7e))/0xc*(-parseInt(_0x386839(0x82))/0xd);if(_0xcb8281===_0x55789c)break;else _0x3ec409['push'](_0x3ec409['shift']());}catch(_0x1fdae2){_0x3ec409['push'](_0x3ec409['shift']());}}}(a11_0x5e26,0x456cd));import{getBffScriptInfo}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a11_0x26ced0(0x8f),'command':a11_0x26ced0(0x8c),'description':a11_0x26ced0(0x87),'risk':'read','flags':[{...ID_FLAG,'description':a11_0x26ced0(0x81)},VERBOSE_FLAG],async 'execute'(_0x528a1d){const _0x4bae14=a11_0x26ced0,_0x4c9239=await getBffScriptInfo(_0x528a1d[_0x4bae14(0x76)]('id')),_0x1800de=_0x528a1d[_0x4bae14(0x79)](_0x4bae14(0x84));if(_0x1800de)return{'ok':!![],'data':_0x4c9239};return{'ok':!![],'data':{'id':_0x4c9239['id'],'appCode':_0x4c9239[_0x4bae14(0x7c)],'functionName':_0x4c9239[_0x4bae14(0x8e)]??'','scriptType':_0x4c9239[_0x4bae14(0x77)],'description':_0x4c9239[_0x4bae14(0x8b)]||_0x4bae14(0x7a),'createdTime':_0x4c9239[_0x4bae14(0x89)]??'','updatedTime':_0x4c9239[_0x4bae14(0x75)]??''}};}};function a11_0x5e26(){const _0x401244=['24SFyKKY','Get\x20BFF\x20script\x20details\x20by\x20ID','146660ERmQCk','createdTime','53345sEpKXp','description','detail','21estDvk','functionName','bff','updatedTime','num','scriptType','18rfSIve','bool','(none)','2183290FmOifv','appCode','100771HjctpC','132564JBroDh','185221MtOaTt','204664AlzUjV','Script\x20ID','949DbUuWx','6qPARNp','verbose','91FYLPYh'];a11_0x5e26=function(){return _0x401244;};return a11_0x5e26();}
@@ -1 +1 @@
1
- const a12_0x203353=a12_0xd29b;(function(_0x32a5d7,_0xe3e94f){const _0x1d29d4=a12_0xd29b,_0x4b3a3b=_0x32a5d7();while(!![]){try{const _0x2eb60b=-parseInt(_0x1d29d4(0xc7))/0x1*(parseInt(_0x1d29d4(0xbc))/0x2)+parseInt(_0x1d29d4(0xb5))/0x3+-parseInt(_0x1d29d4(0xc8))/0x4*(-parseInt(_0x1d29d4(0xc5))/0x5)+parseInt(_0x1d29d4(0xb8))/0x6*(-parseInt(_0x1d29d4(0xb7))/0x7)+parseInt(_0x1d29d4(0xc4))/0x8+parseInt(_0x1d29d4(0xbd))/0x9*(-parseInt(_0x1d29d4(0xb6))/0xa)+-parseInt(_0x1d29d4(0xbb))/0xb*(-parseInt(_0x1d29d4(0xc3))/0xc);if(_0x2eb60b===_0xe3e94f)break;else _0x4b3a3b['push'](_0x4b3a3b['shift']());}catch(_0x1e46e3){_0x4b3a3b['push'](_0x4b3a3b['shift']());}}}(a12_0x38f3,0x8ff5f));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';function a12_0x38f3(){const _0x185632=['bff','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','now','BFF\x20function\x20name\x20to\x20execute','params','132XZYolO','2095848VwdHcz','2100620VAbeRJ','exec','1PFPHJg','4otxLpA','BFF\x20executed\x20in\x20','2068845keeIiq','310GTBJgm','39452xilDbU','132utpSmC','str','read','565147wbCfAl','1008706tRfDAG','208701xpoCIq'];a12_0x38f3=function(){return _0x185632;};return a12_0x38f3();}import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';function a12_0xd29b(_0x599780,_0x4b1501){_0x599780=_0x599780-0xb4;const _0x38f37d=a12_0x38f3();let _0xd29bf1=_0x38f37d[_0x599780];return _0xd29bf1;}export const bffExec={'service':a12_0x203353(0xbe),'command':a12_0x203353(0xc6),'description':a12_0x203353(0xbf),'risk':a12_0x203353(0xba),'flags':[{...NAME_FLAG,'required':!![],'description':a12_0x203353(0xc1)},PARAMS_FLAG],async 'execute'(_0x3233f7){const _0x2d69b7=a12_0x203353,_0x18e037=parseJsonParams(_0x3233f7[_0x2d69b7(0xb9)](_0x2d69b7(0xc2))),_0x49725f=Date[_0x2d69b7(0xc0)](),_0x1768f9=await executeSdkBff(_0x3233f7['str']('name'),_0x18e037),_0x4f6de4=Date[_0x2d69b7(0xc0)]()-_0x49725f;return{'ok':!![],'data':{'result':_0x1768f9,'elapsed':_0x4f6de4},'message':_0x2d69b7(0xb4)+_0x4f6de4+'ms'};}};
1
+ const a12_0x14b4b2=a12_0x37eb;(function(_0x180cb8,_0x1f9c87){const _0x5bb171=a12_0x37eb,_0x328ec3=_0x180cb8();while(!![]){try{const _0x13366a=-parseInt(_0x5bb171(0x88))/0x1*(-parseInt(_0x5bb171(0x87))/0x2)+parseInt(_0x5bb171(0x83))/0x3*(parseInt(_0x5bb171(0x92))/0x4)+-parseInt(_0x5bb171(0x90))/0x5+parseInt(_0x5bb171(0x95))/0x6+-parseInt(_0x5bb171(0x91))/0x7*(-parseInt(_0x5bb171(0x84))/0x8)+parseInt(_0x5bb171(0x8c))/0x9*(parseInt(_0x5bb171(0x96))/0xa)+parseInt(_0x5bb171(0x8a))/0xb*(-parseInt(_0x5bb171(0x82))/0xc);if(_0x13366a===_0x1f9c87)break;else _0x328ec3['push'](_0x328ec3['shift']());}catch(_0x5cdda7){_0x328ec3['push'](_0x328ec3['shift']());}}}(a12_0xd6ae,0x9ed1f));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';function a12_0x37eb(_0x3a8cf6,_0x55fee3){_0x3a8cf6=_0x3a8cf6-0x81;const _0xd6aec2=a12_0xd6ae();let _0x37eb25=_0xd6aec2[_0x3a8cf6];return _0x37eb25;}function a12_0xd6ae(){const _0x592665=['exec','4016bgvDcV','358GYTlef','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','24854797ScDgbC','BFF\x20executed\x20in\x20','909oPVEsB','read','name','str','3556070wNEWes','119UFAyrH','2817108mRNDAE','params','now','781218mNrQzc','125530onZlHw','BFF\x20function\x20name\x20to\x20execute','12ekZsOV','3ZgYZCk','376504gogQgs','bff'];a12_0xd6ae=function(){return _0x592665;};return a12_0xd6ae();}import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a12_0x14b4b2(0x85),'command':a12_0x14b4b2(0x86),'description':a12_0x14b4b2(0x89),'risk':a12_0x14b4b2(0x8d),'flags':[{...NAME_FLAG,'required':!![],'description':a12_0x14b4b2(0x81)},PARAMS_FLAG],async 'execute'(_0x2aa1a5){const _0x510d1e=a12_0x14b4b2,_0x32e360=parseJsonParams(_0x2aa1a5[_0x510d1e(0x8f)](_0x510d1e(0x93))),_0x186869=Date[_0x510d1e(0x94)](),_0x175ed9=await executeSdkBff(_0x2aa1a5[_0x510d1e(0x8f)](_0x510d1e(0x8e)),_0x32e360),_0x27c148=Date[_0x510d1e(0x94)]()-_0x186869;return{'ok':!![],'data':{'result':_0x175ed9,'elapsed':_0x27c148},'message':_0x510d1e(0x8b)+_0x27c148+'ms'};}};
@@ -1 +1 @@
1
- (function(_0x5c8768,_0x53bdcd){const _0x407b1e=a13_0x5551,_0x11283a=_0x5c8768();while(!![]){try{const _0x53ad4d=parseInt(_0x407b1e(0x17a))/0x1+-parseInt(_0x407b1e(0x17e))/0x2*(parseInt(_0x407b1e(0x180))/0x3)+-parseInt(_0x407b1e(0x17b))/0x4*(-parseInt(_0x407b1e(0x178))/0x5)+-parseInt(_0x407b1e(0x176))/0x6*(-parseInt(_0x407b1e(0x179))/0x7)+-parseInt(_0x407b1e(0x17d))/0x8+parseInt(_0x407b1e(0x17f))/0x9*(-parseInt(_0x407b1e(0x177))/0xa)+-parseInt(_0x407b1e(0x181))/0xb*(-parseInt(_0x407b1e(0x17c))/0xc);if(_0x53ad4d===_0x53bdcd)break;else _0x11283a['push'](_0x11283a['shift']());}catch(_0x1074c1){_0x11283a['push'](_0x11283a['shift']());}}}(a13_0xf960,0x2437b));function a13_0x5551(_0x4ba7e0,_0x60c05b){_0x4ba7e0=_0x4ba7e0-0x176;const _0xf96029=a13_0xf960();let _0x5551a0=_0xf96029[_0x4ba7e0];return _0x5551a0;}import{bffDetail}from'../../commands/bff/detail.js';function a13_0xf960(){const _0x27bb08=['7MLoIku','92983VaIFDE','356508fHhzQL','1124316AQkzqj','1877448ShBjqv','33958kFBCPP','18qPtWGk','12weRiOq','11KqhPny','530598jtEJks','457730OQyGEV','15EYDUDY'];a13_0xf960=function(){return _0x27bb08;};return a13_0xf960();}import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
1
+ function a13_0x140d(){const _0x4190fa=['3744293rudYEZ','4568463fLahPl','6604ekXfQI','6EiLhVQ','202809FsemFC','20088240lSUZTs','4zMTKMM','930teYfkz','124879ovPiiq','154144tFBiKs'];a13_0x140d=function(){return _0x4190fa;};return a13_0x140d();}function a13_0x851e(_0x3aab32,_0xe0c3e){_0x3aab32=_0x3aab32-0x94;const _0x140d20=a13_0x140d();let _0x851ebf=_0x140d20[_0x3aab32];return _0x851ebf;}(function(_0xb9a20d,_0x4b89fd){const _0x3cffd3=a13_0x851e,_0x5ef878=_0xb9a20d();while(!![]){try{const _0x195d55=parseInt(_0x3cffd3(0x9a))/0x1*(-parseInt(_0x3cffd3(0x98))/0x2)+-parseInt(_0x3cffd3(0x96))/0x3+-parseInt(_0x3cffd3(0x94))/0x4*(parseInt(_0x3cffd3(0x99))/0x5)+parseInt(_0x3cffd3(0x95))/0x6*(-parseInt(_0x3cffd3(0x9c))/0x7)+-parseInt(_0x3cffd3(0x9b))/0x8+-parseInt(_0x3cffd3(0x9d))/0x9+parseInt(_0x3cffd3(0x97))/0xa;if(_0x195d55===_0x4b89fd)break;else _0x5ef878['push'](_0x5ef878['shift']());}catch(_0x4c4033){_0x5ef878['push'](_0x5ef878['shift']());}}}(a13_0x140d,0x4ec2b));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
@@ -1 +1 @@
1
- function a14_0x4038(){const _0x1822f8=['2725144TUACxI','\x20-g\x20-y','1003654tcmAvN','1763988EcDIZB','cwd','setLogPath','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','log','npx\x20skills\x20add\x20failed:\x20','9207JZtTic','inherit','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','106204eTaiRO','info','124765RUCAaL','\x20-g\x20-y)...','pipe','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','132VBDvaA','install','4004550eAtDzP','39UKkAxR','CLI\x20Built-in\x20Skill\x20installed','error','7wxlrjO','skipped','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','nonInteractive','16870dVxaen','unknown'];a14_0x4038=function(){return _0x1822f8;};return a14_0x4038();}const a14_0x5741c9=a14_0x4685;(function(_0x2e97ab,_0x549b82){const _0x36fc5c=a14_0x4685,_0x459d6f=_0x2e97ab();while(!![]){try{const _0x4c5ce4=-parseInt(_0x36fc5c(0x16f))/0x1+parseInt(_0x36fc5c(0x17a))/0x2*(parseInt(_0x36fc5c(0x183))/0x3)+parseInt(_0x36fc5c(0x180))/0x4*(-parseInt(_0x36fc5c(0x17c))/0x5)+-parseInt(_0x36fc5c(0x170))/0x6*(-parseInt(_0x36fc5c(0x186))/0x7)+-parseInt(_0x36fc5c(0x16d))/0x8+parseInt(_0x36fc5c(0x182))/0x9+-parseInt(_0x36fc5c(0x16b))/0xa*(-parseInt(_0x36fc5c(0x177))/0xb);if(_0x4c5ce4===_0x549b82)break;else _0x459d6f['push'](_0x459d6f['shift']());}catch(_0x13036b){_0x459d6f['push'](_0x459d6f['shift']());}}}(a14_0x4038,0xa470b));function a14_0x4685(_0x8165c7,_0x4c734b){_0x8165c7=_0x8165c7-0x169;const _0x403844=a14_0x4038();let _0x4685ce=_0x403844[_0x8165c7];return _0x4685ce;}import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':'cli-skill','command':a14_0x5741c9(0x181),'description':a14_0x5741c9(0x179),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x509c60){const _0xe1d452=a14_0x5741c9;logger[_0xe1d452(0x172)](process[_0xe1d452(0x171)]()),logger[_0xe1d452(0x17b)]('cli-skill-install',_0xe1d452(0x174));const {LOVRABET_SKILL_SOURCE:_0x18fd02,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x218772,runNpxSkillsAddGlobal:_0x1f7356}=await import('../../skills/npx-skills-add.js'),_0x5a6e3a=_0x509c60[_0xe1d452(0x16a)]?_0xe1d452(0x17e):_0xe1d452(0x178);console[_0xe1d452(0x175)](_0xe1d452(0x169)+_0x18fd02+_0xe1d452(0x17d));const _0x1f2f70=_0x1f7356(process[_0xe1d452(0x171)](),_0x18fd02,{'stdio':_0x5a6e3a});if(_0x1f2f70[_0xe1d452(0x187)])console[_0xe1d452(0x175)]('Skipped\x20npx\x20('+_0x218772+_0xe1d452(0x17f));else{if(_0x1f2f70['ok'])console[_0xe1d452(0x175)](_0xe1d452(0x184));else throw CliErrors['apiError'](_0xe1d452(0x176)+(_0x1f2f70[_0xe1d452(0x185)]||_0xe1d452(0x16c)),_0xe1d452(0x173)+_0x18fd02+_0xe1d452(0x16e));}return{'ok':!![]};}}];
1
+ function a14_0x156b(){const _0x3d9a45=['8COfiXB','../../skills/npx-skills-add.js','1746810jbuixh','apiError','Skipped\x20npx\x20(','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','563857GnsPbf','\x20-g\x20-y','2335dRqJPM','inherit','cwd','6276VqFfgg','Install\x20the\x20CLI\x20Built-in\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','error','npx\x20skills\x20add\x20failed:\x20','log','cli-skill','skipped','545904uiKEFJ','3Jeixrd','unknown','pipe','2724KyfvJz','534510pHJCjv','\x20-g\x20-y)...','975KUGqEj','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','setLogPath','nonInteractive','CLI\x20Built-in\x20Skill\x20installed','22hZzhnE'];a14_0x156b=function(){return _0x3d9a45;};return a14_0x156b();}function a14_0x58aa(_0x18c549,_0x5f5046){_0x18c549=_0x18c549-0x19a;const _0x156b92=a14_0x156b();let _0x58aaa8=_0x156b92[_0x18c549];return _0x58aaa8;}const a14_0x1ff835=a14_0x58aa;(function(_0x445f51,_0x13204d){const _0x379e3b=a14_0x58aa,_0x2347fc=_0x445f51();while(!![]){try{const _0x5730f1=-parseInt(_0x379e3b(0x1b3))/0x1+-parseInt(_0x379e3b(0x1a4))/0x2*(parseInt(_0x379e3b(0x1ad))/0x3)+parseInt(_0x379e3b(0x1ac))/0x4+-parseInt(_0x379e3b(0x1a1))/0x5*(-parseInt(_0x379e3b(0x1b0))/0x6)+parseInt(_0x379e3b(0x19f))/0x7*(parseInt(_0x379e3b(0x1b9))/0x8)+-parseInt(_0x379e3b(0x19b))/0x9+-parseInt(_0x379e3b(0x1b1))/0xa*(parseInt(_0x379e3b(0x1b8))/0xb);if(_0x5730f1===_0x13204d)break;else _0x2347fc['push'](_0x2347fc['shift']());}catch(_0x28e6e1){_0x2347fc['push'](_0x2347fc['shift']());}}}(a14_0x156b,0x1e424));import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a14_0x1ff835(0x1aa),'command':'install','description':a14_0x1ff835(0x1a5),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x24b217){const _0x91b56c=a14_0x1ff835;logger[_0x91b56c(0x1b5)](process[_0x91b56c(0x1a3)]()),logger['info']('cli-skill-install',_0x91b56c(0x1a6));const {LOVRABET_SKILL_SOURCE:_0x3a2e30,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x27cba9,runNpxSkillsAddGlobal:_0x38732f}=await import(_0x91b56c(0x19a)),_0x3bf327=_0x24b217[_0x91b56c(0x1b6)]?_0x91b56c(0x1af):_0x91b56c(0x1a2);console[_0x91b56c(0x1a9)](_0x91b56c(0x1b4)+_0x3a2e30+_0x91b56c(0x1b2));const _0x2b0b14=_0x38732f(process[_0x91b56c(0x1a3)](),_0x3a2e30,{'stdio':_0x3bf327});if(_0x2b0b14[_0x91b56c(0x1ab)])console[_0x91b56c(0x1a9)](_0x91b56c(0x19d)+_0x27cba9+_0x91b56c(0x19e));else{if(_0x2b0b14['ok'])console[_0x91b56c(0x1a9)](_0x91b56c(0x1b7));else throw CliErrors[_0x91b56c(0x19c)](_0x91b56c(0x1a8)+(_0x2b0b14[_0x91b56c(0x1a7)]||_0x91b56c(0x1ae)),'Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20'+_0x3a2e30+_0x91b56c(0x1a0));}return{'ok':!![]};}}];