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

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 (117) 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/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/app-config/shared.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/shared.js +1 -1
  25. package/lib/commands/data/index.js +1 -1
  26. package/lib/commands/dataset/detail.js +1 -1
  27. package/lib/commands/dataset/index.js +1 -1
  28. package/lib/commands/dataset/list.js +1 -1
  29. package/lib/commands/dataset/sdk-doc.js +1 -1
  30. package/lib/commands/doctor.js +1 -1
  31. package/lib/commands/file/index.js +1 -1
  32. package/lib/commands/init.js +1 -1
  33. package/lib/commands/kb/index.js +1 -1
  34. package/lib/commands/logs/index.js +1 -1
  35. package/lib/commands/ocr/index.js +1 -1
  36. package/lib/commands/personal-bff/index.js +1 -1
  37. package/lib/commands/registry.js +1 -1
  38. package/lib/commands/schema.js +1 -1
  39. package/lib/commands/service/dynamic.js +1 -1
  40. package/lib/commands/service/index.js +1 -1
  41. package/lib/commands/service/registry.js +1 -1
  42. package/lib/commands/skill/commands/create.js +1 -1
  43. package/lib/commands/skill/commands/install.js +1 -1
  44. package/lib/commands/skill/commands/list.js +1 -1
  45. package/lib/commands/skill/commands/push.js +1 -1
  46. package/lib/commands/skill/commands/validate.js +1 -1
  47. package/lib/commands/skill/flags.js +1 -1
  48. package/lib/commands/skill/index.js +1 -1
  49. package/lib/commands/skill/manifest-helpers.js +1 -1
  50. package/lib/commands/skill/push-execute.js +1 -1
  51. package/lib/commands/skill/push-flow-helpers.js +1 -1
  52. package/lib/commands/skill/push-retarget.js +1 -1
  53. package/lib/commands/skill/scopes.js +1 -1
  54. package/lib/commands/skill/summary.js +1 -1
  55. package/lib/commands/skill/templates.js +1 -1
  56. package/lib/commands/skill/validate.js +1 -1
  57. package/lib/commands/sql/detail.js +1 -1
  58. package/lib/commands/sql/exec.js +1 -1
  59. package/lib/commands/sql/index.js +1 -1
  60. package/lib/commands/update.js +1 -1
  61. package/lib/commands/workspace/index.js +1 -1
  62. package/lib/config/schema.js +1 -1
  63. package/lib/constant/app.js +1 -1
  64. package/lib/constant/auth-mode.js +1 -1
  65. package/lib/constant/cli.js +1 -1
  66. package/lib/constant/defaults.js +1 -1
  67. package/lib/constant/distribution.js +1 -1
  68. package/lib/constant/domain.js +1 -1
  69. package/lib/constant/env.js +1 -1
  70. package/lib/constant/output.js +1 -1
  71. package/lib/constant/product.js +1 -1
  72. package/lib/constant/risk.js +1 -1
  73. package/lib/constant/url.js +1 -1
  74. package/lib/context.js +1 -1
  75. package/lib/core/api-client.js +1 -1
  76. package/lib/core/db-resolver.js +1 -1
  77. package/lib/core/sdk-client.js +1 -1
  78. package/lib/errors.js +1 -1
  79. package/lib/framework/build-all-flags.js +1 -1
  80. package/lib/framework/dryrun.js +1 -1
  81. package/lib/framework/flags.js +1 -1
  82. package/lib/framework/help.js +1 -1
  83. package/lib/framework/index.js +1 -1
  84. package/lib/framework/output.js +1 -1
  85. package/lib/framework/preparse.js +1 -1
  86. package/lib/framework/response.js +1 -1
  87. package/lib/framework/runner-confirmation.js +1 -1
  88. package/lib/framework/runner-error.js +1 -1
  89. package/lib/framework/runner.js +1 -1
  90. package/lib/framework/schema-export.js +1 -1
  91. package/lib/framework/service-order.js +1 -1
  92. package/lib/framework/types.js +1 -1
  93. package/lib/generated/build-info.js +1 -1
  94. package/lib/help.js +1 -1
  95. package/lib/skills/npx-skills-add.js +1 -1
  96. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  97. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  98. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  99. package/lib/skills/runtime-skill-sync/links.js +1 -1
  100. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  101. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  102. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  103. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  104. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  105. package/lib/skills/runtime-skill-sync/push.js +1 -1
  106. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  107. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  108. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  109. package/lib/skills/runtime-skill-sync.js +1 -1
  110. package/lib/utils/apply-jq-filter.js +1 -1
  111. package/lib/utils/logger.js +1 -1
  112. package/lib/utils/params.js +1 -1
  113. package/lib/utils/platform.js +1 -1
  114. package/lib/utils/update-notice.js +1 -1
  115. package/lib/utils/version.js +1 -1
  116. package/lib/utils/write-cli-side-channel.js +1 -1
  117. package/package.json +1 -1
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const a0_0x49fef4=a0_0x2a84;(function(_0x29aa0d,_0xc83115){const _0x4e032f=a0_0x2a84,_0x516006=_0x29aa0d();while(!![]){try{const _0x487262=parseInt(_0x4e032f(0x97))/0x1+-parseInt(_0x4e032f(0x88))/0x2+parseInt(_0x4e032f(0x8e))/0x3+parseInt(_0x4e032f(0x93))/0x4+parseInt(_0x4e032f(0x7c))/0x5+parseInt(_0x4e032f(0x9e))/0x6+-parseInt(_0x4e032f(0x8b))/0x7;if(_0x487262===_0xc83115)break;else _0x516006['push'](_0x516006['shift']());}catch(_0x2a5943){_0x516006['push'](_0x516006['shift']());}}}(a0_0x28b5,0x86a9e));function a0_0x2a84(_0x3eef4c,_0x3dd23c){_0x3eef4c=_0x3eef4c-0x7c;const _0x28b59f=a0_0x28b5();let _0x2a84cb=_0x28b59f[_0x3eef4c];return _0x2a84cb;}import{jsx as a0_0x15bf29}from'react/jsx-runtime';import a0_0x3d9436 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';function a0_0x28b5(){const _0x3a0119=['2144211lNtaJn','write','ERR_STREAM_DESTROYED','unknownCommand','ERR_USE_AFTER_CLOSE','1886224vwGuDV','definition','exitCode','code','884952ZCPQZU','stderr','flags','input','Unexpected\x20error:','ExitPromptError','args','348540CpmQDz','slice','log','\x20->\x20--','hint','catch','3507735VBilyz','Hint:\x20','error','handler','cancelled','corrected','exit','assign','./framework/preparse.js','help','[preparse]\x20','flatMap','202182BbbIuS','length','message','15247463skMEmk','\x0aCancelled.\x0a','defaultCommand'];a0_0x28b5=function(){return _0x3a0119;};return a0_0x28b5();}import{buildMeowFlags}from'./constant/cli.js';import{getCliVersionDisplay}from'./utils/version.js';const helpText=generateFullHelp(),cli=a0_0x3d9436(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'version':getCliVersionDisplay()});void main()[a0_0x49fef4(0xa3)](handleError);async function main(){try{await run();}catch(_0x5f1a6e){handleError(_0x5f1a6e);}}async function run(){const _0x4af414=a0_0x49fef4;let _0x4300d4=cli[_0x4af414(0x9a)][0x0],_0x17a535=cli[_0x4af414(0x9a)][0x1];const _0x279cc0=cli[_0x4af414(0x99)];try{const {correctFlags:_0x37c30e}=await import(_0x4af414(0x84)),_0x1e4a56=getAllDefinitions()[_0x4af414(0x87)](_0x33f2c8=>_0x33f2c8[_0x4af414(0x99)]??[]),{flags:_0x134f2a,corrections:_0xf3b958}=_0x37c30e(_0x279cc0,_0x1e4a56);if(_0xf3b958[_0x4af414(0x89)]>0x0){for(const _0x4d355c of _0xf3b958){process[_0x4af414(0x98)]['write'](_0x4af414(0x86)+_0x4d355c[_0x4af414(0x7f)]+':\x20--'+_0x4d355c['original']+_0x4af414(0xa1)+_0x4d355c[_0x4af414(0x81)]+'\x0a');}Object['assign'](_0x279cc0,_0x134f2a);}}catch{}if(!_0x4300d4){const {waitUntilExit:_0x5414d4}=render(a0_0x15bf29(Help,{}));await _0x5414d4();return;}if(!isKnownService(_0x4300d4)){const _0x508d01=resolveDynamicServiceCommand(cli[_0x4af414(0x9a)],_0x279cc0);if(_0x508d01){if(_0x279cc0['help']){console[_0x4af414(0xa0)](generateCommandHelp(_0x508d01[_0x4af414(0x94)]));return;}Object[_0x4af414(0x83)](_0x279cc0,_0x508d01[_0x4af414(0x99)]);const _0x1c58ef=buildConfigFromFlags(_0x279cc0);await initGlobalEnvironment(_0x1c58ef);const _0x39a95e=createPipelineEnv(_0x1c58ef,_0x279cc0);_0x39a95e['args']=_0x508d01['args'],await runCommand(_0x508d01[_0x4af414(0x94)],_0x39a95e);return;}if(_0x279cc0[_0x4af414(0x85)]){const _0x4c4007=generateDynamicServiceHelp(_0x4300d4);if(_0x4c4007){console[_0x4af414(0xa0)](_0x4c4007);return;}}const {waitUntilExit:_0xb69b84}=render(a0_0x15bf29(Help,{}));await _0xb69b84();return;}const _0x432465=getServiceEntry(_0x4300d4);if(!_0x17a535){if(_0x279cc0['help']){console[_0x4af414(0xa0)](generateServiceHelp(_0x4300d4));return;}if(_0x432465[_0x4af414(0x8d)])_0x17a535=_0x432465['defaultCommand'];else{console['log'](generateServiceHelp(_0x4300d4));return;}}const _0xe13126=findDefinition(_0x4300d4,_0x17a535);!_0xe13126&&(console[_0x4af414(0xa0)](generateServiceHelp(_0x4300d4)),handleError(CliErrors[_0x4af414(0x91)](_0x4300d4+'\x20'+_0x17a535)));if(_0x279cc0[_0x4af414(0x85)]){console[_0x4af414(0xa0)](generateCommandHelp(_0xe13126));return;}const _0x5a3225=buildConfigFromFlags(_0x279cc0);await initGlobalEnvironment(_0x5a3225);const _0x2ede5c=createPipelineEnv(_0x5a3225,_0x279cc0);_0x2ede5c[_0x4af414(0x9d)]=cli[_0x4af414(0x9a)][_0x4af414(0x9f)](0x2),await runCommand(_0xe13126,_0x2ede5c);}function handleError(_0x1d8448){const _0x2c386e=a0_0x49fef4;if(_0x1d8448 instanceof CliError){_0x1d8448[_0x2c386e(0x96)]===_0x2c386e(0x80)&&(process[_0x2c386e(0x98)][_0x2c386e(0x8f)](_0x2c386e(0x8c)),process['exit'](0x0));console[_0x2c386e(0x7e)]('Error:\x20'+_0x1d8448[_0x2c386e(0x8a)]);if(_0x1d8448[_0x2c386e(0xa2)])console[_0x2c386e(0x7e)](_0x2c386e(0x7d)+_0x1d8448[_0x2c386e(0xa2)]);process['exit'](_0x1d8448[_0x2c386e(0x95)]);}isUserCancellation(_0x1d8448)&&(process[_0x2c386e(0x98)]['write'](_0x2c386e(0x8c)),process[_0x2c386e(0x82)](0x0)),console[_0x2c386e(0x7e)](_0x2c386e(0x9b),_0x1d8448),process[_0x2c386e(0x82)](0x1);}function isUserCancellation(_0x87853e){const _0x3bcf6c=a0_0x49fef4;if(!(_0x87853e instanceof Error))return![];if(_0x87853e['name']===_0x3bcf6c(0x9c))return!![];if(_0x87853e[_0x3bcf6c(0x96)]===_0x3bcf6c(0x92))return!![];if(_0x87853e[_0x3bcf6c(0x96)]===_0x3bcf6c(0x90))return!![];return![];}
2
+ const a0_0x1c49bb=a0_0xc2c6;(function(_0x2bdfbe,_0x4dc348){const _0x456665=a0_0xc2c6,_0x9a2036=_0x2bdfbe();while(!![]){try{const _0x445ff5=-parseInt(_0x456665(0x1ad))/0x1*(parseInt(_0x456665(0x19e))/0x2)+-parseInt(_0x456665(0x1af))/0x3+parseInt(_0x456665(0x1a3))/0x4*(-parseInt(_0x456665(0x19d))/0x5)+parseInt(_0x456665(0x1b4))/0x6+parseInt(_0x456665(0x1b1))/0x7*(parseInt(_0x456665(0x1a9))/0x8)+parseInt(_0x456665(0x1a0))/0x9+parseInt(_0x456665(0x18f))/0xa*(parseInt(_0x456665(0x1b2))/0xb);if(_0x445ff5===_0x4dc348)break;else _0x9a2036['push'](_0x9a2036['shift']());}catch(_0x4a90fb){_0x9a2036['push'](_0x9a2036['shift']());}}}(a0_0x390d,0xa32dd));import{jsx as a0_0x153c5b}from'react/jsx-runtime';import a0_0x1c2fb8 from'meow';import{render}from'ink';import{Help}from'./help.js';function a0_0x390d(){const _0x35d9a7=['exitCode','error','input','catch','code','original','flags','2775dEJZtX','16oLtJKS','defaultCommand','11017926dftkXk','args','handler','5828puZTgL','\x20->\x20--','slice','[preparse]\x20','ERR_STREAM_DESTROYED','length','128wzxlfA','cancelled','name','\x0aCancelled.\x0a','142873BEpQKp','stderr','907089oJIiCE','log','110544flPcYx','11GpxSnC','write','4904244HtyUxo','ERR_USE_AFTER_CLOSE','flatMap','Unexpected\x20error:','hint','ExitPromptError','6281030FrCahi','Hint:\x20','definition','help','exit','Error:\x20','assign'];a0_0x390d=function(){return _0x35d9a7;};return a0_0x390d();}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_0x1c2fb8(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'version':getCliVersionDisplay()});void main()[a0_0x1c49bb(0x199)](handleError);function a0_0xc2c6(_0x14bfdb,_0x20f84a){_0x14bfdb=_0x14bfdb-0x18c;const _0x390d38=a0_0x390d();let _0xc2c6b1=_0x390d38[_0x14bfdb];return _0xc2c6b1;}async function main(){try{await run();}catch(_0x2d0b1f){handleError(_0x2d0b1f);}}async function run(){const _0x4c32d0=a0_0x1c49bb;let _0x3271bc=cli[_0x4c32d0(0x198)][0x0],_0x2d4716=cli[_0x4c32d0(0x198)][0x1];const _0x8fb1f=cli[_0x4c32d0(0x19c)];try{const {correctFlags:_0x35d097}=await import('./framework/preparse.js'),_0x3bb01a=getAllDefinitions()[_0x4c32d0(0x1b6)](_0x20c716=>_0x20c716[_0x4c32d0(0x19c)]??[]),{flags:_0x15f8ae,corrections:_0x13138f}=_0x35d097(_0x8fb1f,_0x3bb01a);if(_0x13138f[_0x4c32d0(0x1a8)]>0x0){for(const _0x3bfa8d of _0x13138f){process[_0x4c32d0(0x1ae)][_0x4c32d0(0x1b3)](_0x4c32d0(0x1a6)+_0x3bfa8d[_0x4c32d0(0x1a2)]+':\x20--'+_0x3bfa8d[_0x4c32d0(0x19b)]+_0x4c32d0(0x1a4)+_0x3bfa8d['corrected']+'\x0a');}Object[_0x4c32d0(0x195)](_0x8fb1f,_0x15f8ae);}}catch{}if(!_0x3271bc){const {waitUntilExit:_0x3f66e5}=render(a0_0x153c5b(Help,{}));await _0x3f66e5();return;}if(!isKnownService(_0x3271bc)){const _0x1a60ef=resolveDynamicServiceCommand(cli['input'],_0x8fb1f);if(_0x1a60ef){if(_0x8fb1f['help']){console[_0x4c32d0(0x1b0)](generateCommandHelp(_0x1a60ef[_0x4c32d0(0x191)]));return;}Object['assign'](_0x8fb1f,_0x1a60ef[_0x4c32d0(0x19c)]);const _0x90ea79=buildConfigFromFlags(_0x8fb1f);await initGlobalEnvironment(_0x90ea79);const _0x233574=createPipelineEnv(_0x90ea79,_0x8fb1f);_0x233574[_0x4c32d0(0x1a1)]=_0x1a60ef['args'],await runCommand(_0x1a60ef['definition'],_0x233574);return;}if(_0x8fb1f['help']){const _0x191a85=generateDynamicServiceHelp(_0x3271bc);if(_0x191a85){console[_0x4c32d0(0x1b0)](_0x191a85);return;}}const {waitUntilExit:_0x4da420}=render(a0_0x153c5b(Help,{}));await _0x4da420();return;}const _0x4bd596=getServiceEntry(_0x3271bc);if(!_0x2d4716){if(_0x8fb1f[_0x4c32d0(0x192)]){console[_0x4c32d0(0x1b0)](generateServiceHelp(_0x3271bc));return;}if(_0x4bd596[_0x4c32d0(0x19f)])_0x2d4716=_0x4bd596[_0x4c32d0(0x19f)];else{console[_0x4c32d0(0x1b0)](generateServiceHelp(_0x3271bc));return;}}const _0x91602d=findDefinition(_0x3271bc,_0x2d4716);!_0x91602d&&(console[_0x4c32d0(0x1b0)](generateServiceHelp(_0x3271bc)),handleError(CliErrors['unknownCommand'](_0x3271bc+'\x20'+_0x2d4716)));if(_0x8fb1f[_0x4c32d0(0x192)]){console[_0x4c32d0(0x1b0)](generateCommandHelp(_0x91602d));return;}const _0xb3039d=buildConfigFromFlags(_0x8fb1f);await initGlobalEnvironment(_0xb3039d);const _0x5a326f=createPipelineEnv(_0xb3039d,_0x8fb1f);_0x5a326f[_0x4c32d0(0x1a1)]=cli[_0x4c32d0(0x198)][_0x4c32d0(0x1a5)](0x2),await runCommand(_0x91602d,_0x5a326f);}function handleError(_0x557bb9){const _0x18d6b7=a0_0x1c49bb;if(_0x557bb9 instanceof CliError){_0x557bb9[_0x18d6b7(0x19a)]===_0x18d6b7(0x1aa)&&(process[_0x18d6b7(0x1ae)][_0x18d6b7(0x1b3)](_0x18d6b7(0x1ac)),process[_0x18d6b7(0x193)](0x0));console[_0x18d6b7(0x197)](_0x18d6b7(0x194)+_0x557bb9['message']);if(_0x557bb9[_0x18d6b7(0x18d)])console[_0x18d6b7(0x197)](_0x18d6b7(0x190)+_0x557bb9['hint']);process[_0x18d6b7(0x193)](_0x557bb9[_0x18d6b7(0x196)]);}isUserCancellation(_0x557bb9)&&(process['stderr'][_0x18d6b7(0x1b3)](_0x18d6b7(0x1ac)),process['exit'](0x0)),console[_0x18d6b7(0x197)](_0x18d6b7(0x18c),_0x557bb9),process['exit'](0x1);}function isUserCancellation(_0x1ed039){const _0x9f6445=a0_0x1c49bb;if(!(_0x1ed039 instanceof Error))return![];if(_0x1ed039[_0x9f6445(0x1ab)]===_0x9f6445(0x18e))return!![];if(_0x1ed039[_0x9f6445(0x19a)]===_0x9f6445(0x1b5))return!![];if(_0x1ed039['code']===_0x9f6445(0x1a7))return!![];return![];}
@@ -1 +1 @@
1
- const a1_0x34576b=a1_0x2b0c;(function(_0x4b7d10,_0x16031a){const _0x3f5cd9=a1_0x2b0c,_0x3f75f9=_0x4b7d10();while(!![]){try{const _0x2f0def=parseInt(_0x3f5cd9(0xe3))/0x1+-parseInt(_0x3f5cd9(0xad))/0x2*(-parseInt(_0x3f5cd9(0xa4))/0x3)+-parseInt(_0x3f5cd9(0x108))/0x4+-parseInt(_0x3f5cd9(0xbe))/0x5+-parseInt(_0x3f5cd9(0xef))/0x6+parseInt(_0x3f5cd9(0xe9))/0x7*(-parseInt(_0x3f5cd9(0x113))/0x8)+-parseInt(_0x3f5cd9(0xa0))/0x9*(-parseInt(_0x3f5cd9(0x102))/0xa);if(_0x2f0def===_0x16031a)break;else _0x3f75f9['push'](_0x3f75f9['shift']());}catch(_0x259066){_0x3f75f9['push'](_0x3f75f9['shift']());}}}(a1_0x183a,0xd7c34));function a1_0x183a(){const _0x4a9165=['List\x20BF\x20endpoint\x20functions','765bvsZia','/api/{appCode}/{datasetCode}/create','dataset','scriptName','4807866Cbatrl','32-character\x20dataset\x20code','custom_sql','Create\x20dataset\x20record','tableData\x20contains\x20records','CLI\x20has\x20typed\x20`bff\x20detail`\x20and\x20`bff\x20exec`\x20commands\x20for\x20endpoint\x20scripts.','已经确认目标\x20BF\x20的\x20scriptName,且需要实际调用该\x20ENDPOINT\x20脚本完成业务操作时使用','需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','Inspect\x20field\x20names,\x20relations,\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.','2fSAtFt','whenToUse','dataset_data_create','需要向指定数据集新增一条业务数据时使用','dataset_data_filter','map','/api/dataset/get-dataset-list-by-app-code','Dataset\x20detail','dataset_detail','custom_sql_execute','toLowerCase','CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.','{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.','POST','lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27','Current\x20app\x20code','4185445KUfJHR','join','api-doc','This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.','Filter\x20dataset\x20data','Get\x20one\x20dataset\x20record','执行自定义\x20SQL','detail','Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset','需要携带\x20where、orderBy、分页等条件读取业务数据时使用','find','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:5}\x27','Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.','##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.','length','获取数据集详情','bf_execute','tableData\x20contains\x20dataset\x20id/code/name','category','需要按数据集\x20code\x20获取字段、表信息、关联关系(relations)或操作定义时使用','List\x20datasets','filter','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.','##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.','Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text','Show\x20runtime\x20API\x20documentation\x20by\x20code','Aggregate\x20dataset\x20data','/api/endpoint/{appCode}/functions','##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.','fields/properties\x20describe\x20data\x20shape','None','{\x22param\x22:\x22value\x22}','Execute\x20custom\x20SQL','method','##\x20Dataset\x20detail','summary','查询单条数据','363790NyBgZU','Endpoint\x20function\x20name','where\x20filters\x20before\x20aggregation','paging.totalCount\x20gives\x20total\x20rows','Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.','read','1148LUOAmu','str','lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress','{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','appCode','Returns\x20one\x20matching\x20business\x20record','686280IupsmJ','operations\x20describes\x20runtime\x20APIs','##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.','Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result','list','string','result\x20rows\x20contain\x20aggregate\x20aliases','code','Returns\x20script\x20business\x20payload','datasetCode','/api/{appCode}/{datasetCode}/aggregate','lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27','`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.','已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.','bf_function_list','keyword','Returns\x20SQL\x20execution\x20payload','249000JbczNU','需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用','trim','{\x22fieldName\x22:\x22value\x22}','##\x20List\x20BF\x20endpoint\x20functions\x0a\x0aDiscover\x20executable\x20endpoint\x20functions.','/api/{appCode}/{datasetCode}/getOne','3144444qbFmZf','获取应用下可调用的\x20BF\x20函数列表','需要先确认当前应用有哪些可执行的\x20BF/ENDPOINT\x20函数,以及收敛可用\x20scriptName\x20时使用','GET','paging\x20contains\x20pagination','{\x22aggregate\x22:[{\x22column\x22:\x20\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','relations\x20contains\x20the\x20object-shaped\x20API\x20relations\x20value\x20when\x20returned','dataset_data_aggregate','List\x20available\x20runtime\x20API\x20documentation\x20entries','{\x22id\x22:123}','聚合查询数据集数据','71296sYUSoq','lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27','lovrabet\x20bff\x20detail\x20--id\x20<scriptId>\x20--appcode\x20<appCode>'];a1_0x183a=function(){return _0x4a9165;};return a1_0x183a();}import{CliErrors}from'../../errors.js';const CATEGORY_FLAG={'name':a1_0x34576b(0xd0),'type':a1_0x34576b(0xf4),'description':a1_0x34576b(0xc6)},KEYWORD_FLAG={'name':'keyword','type':a1_0x34576b(0xf4),'description':a1_0x34576b(0xd6)},DOC_CODE_FLAG={'name':a1_0x34576b(0xf6),'type':a1_0x34576b(0xf4),'required':!![],'description':'API\x20doc\x20code,\x20for\x20example\x20dataset_list'},DOCS=[{'code':'dataset_list','category':'dataset','title':a1_0x34576b(0xd2),'method':a1_0x34576b(0xbb),'path':a1_0x34576b(0xb3),'summary':'分页获取数据集列表','whenToUse':a1_0x34576b(0xab),'pathParams':[],'queryParams':[],'bodySchema':a1_0x34576b(0xec),'responseHighlights':[a1_0x34576b(0xcf),a1_0x34576b(0xe6)],'examples':[a1_0x34576b(0xeb)],'notes':[a1_0x34576b(0xb8)],'markdown':['##\x20List\x20datasets','','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.'][a1_0x34576b(0xbf)]('\x0a')},{'code':a1_0x34576b(0xb5),'category':a1_0x34576b(0xa2),'title':a1_0x34576b(0xb4),'method':a1_0x34576b(0x10b),'path':'/api/dataset/getOneByCode?code={datasetCode}','summary':a1_0x34576b(0xcd),'whenToUse':a1_0x34576b(0xd1),'pathParams':[],'queryParams':[{'name':'code','description':'32-character\x20dataset\x20code'}],'bodySchema':a1_0x34576b(0xdc),'responseHighlights':[a1_0x34576b(0xdb),a1_0x34576b(0x10e),a1_0x34576b(0xf0)],'examples':['lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>'],'notes':[a1_0x34576b(0xba)],'markdown':[a1_0x34576b(0xe0),'',a1_0x34576b(0xac)][a1_0x34576b(0xbf)]('\x0a')},{'code':a1_0x34576b(0xb1),'category':a1_0x34576b(0xa2),'title':a1_0x34576b(0xc2),'method':a1_0x34576b(0xbb),'path':'/api/{appCode}/{datasetCode}/filter','summary':'条件过滤查询数据','whenToUse':a1_0x34576b(0xc7),'pathParams':[{'name':a1_0x34576b(0xed),'description':a1_0x34576b(0xbd)},{'name':a1_0x34576b(0xf8),'description':a1_0x34576b(0xa5)}],'queryParams':[],'bodySchema':a1_0x34576b(0xb9),'responseHighlights':[a1_0x34576b(0xa8),a1_0x34576b(0x10c)],'examples':[a1_0x34576b(0xc9)],'notes':[a1_0x34576b(0xfc)],'markdown':['##\x20Filter\x20dataset\x20data','','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.'][a1_0x34576b(0xbf)]('\x0a')},{'code':a1_0x34576b(0x10f),'category':'dataset','title':a1_0x34576b(0xd8),'method':a1_0x34576b(0xbb),'path':a1_0x34576b(0xf9),'summary':a1_0x34576b(0x112),'whenToUse':a1_0x34576b(0x103),'pathParams':[{'name':a1_0x34576b(0xed),'description':a1_0x34576b(0xbd)},{'name':a1_0x34576b(0xf8),'description':a1_0x34576b(0xa5)}],'queryParams':[],'bodySchema':a1_0x34576b(0x10d),'responseHighlights':[a1_0x34576b(0xf5),a1_0x34576b(0xe5)],'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':['Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.',a1_0x34576b(0xfb)],'markdown':['##\x20Aggregate\x20dataset\x20data','',a1_0x34576b(0xd4)][a1_0x34576b(0xbf)]('\x0a')},{'code':'dataset_data_get_one','category':a1_0x34576b(0xa2),'title':a1_0x34576b(0xc3),'method':a1_0x34576b(0xbb),'path':a1_0x34576b(0x107),'summary':a1_0x34576b(0xe2),'whenToUse':'已经知道记录\x20id,需要按数据集读取单条业务数据时使用','pathParams':[{'name':a1_0x34576b(0xed),'description':a1_0x34576b(0xbd)},{'name':'datasetCode','description':a1_0x34576b(0xa5)}],'queryParams':[],'bodySchema':a1_0x34576b(0x111),'responseHighlights':[a1_0x34576b(0xee)],'examples':['lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27'],'notes':[a1_0x34576b(0xca)],'markdown':a1_0x34576b(0xcb)},{'code':a1_0x34576b(0xaf),'category':a1_0x34576b(0xa2),'title':a1_0x34576b(0xa7),'method':'POST','path':a1_0x34576b(0xa1),'summary':'创建数据','whenToUse':a1_0x34576b(0xb0),'pathParams':[{'name':a1_0x34576b(0xed),'description':a1_0x34576b(0xbd)},{'name':a1_0x34576b(0xf8),'description':a1_0x34576b(0xa5)}],'queryParams':[],'bodySchema':a1_0x34576b(0x105),'responseHighlights':[a1_0x34576b(0xf2)],'examples':[a1_0x34576b(0xfa)],'notes':[a1_0x34576b(0xc1)],'markdown':a1_0x34576b(0xda)},{'code':a1_0x34576b(0xff),'category':'bf','title':a1_0x34576b(0x116),'method':a1_0x34576b(0x10b),'path':a1_0x34576b(0xd9),'summary':a1_0x34576b(0x109),'whenToUse':a1_0x34576b(0x10a),'pathParams':[{'name':a1_0x34576b(0xed),'description':a1_0x34576b(0xbd)}],'queryParams':[],'bodySchema':a1_0x34576b(0xdc),'responseHighlights':['Returns\x20endpoint\x20functionName/id/description'],'examples':[a1_0x34576b(0x115)],'notes':[a1_0x34576b(0xa9)],'markdown':a1_0x34576b(0x106)},{'code':a1_0x34576b(0xce),'category':'bf','title':'Execute\x20BF\x20endpoint\x20function','method':a1_0x34576b(0xbb),'path':'/api/endpoint/{appCode}/{scriptName}','summary':'执行指定\x20BF\x20函数','whenToUse':a1_0x34576b(0xaa),'pathParams':[{'name':a1_0x34576b(0xed),'description':a1_0x34576b(0xbd)},{'name':a1_0x34576b(0xa3),'description':a1_0x34576b(0xe4)}],'queryParams':[],'bodySchema':a1_0x34576b(0xdd),'responseHighlights':[a1_0x34576b(0xf7)],'examples':[a1_0x34576b(0x114)],'notes':[a1_0x34576b(0xe7)],'markdown':a1_0x34576b(0xd5)},{'code':a1_0x34576b(0xb6),'category':a1_0x34576b(0xa6),'title':a1_0x34576b(0xde),'method':a1_0x34576b(0xbb),'path':'/api/custom/executeSql','summary':a1_0x34576b(0xc4),'whenToUse':a1_0x34576b(0xfd),'pathParams':[],'queryParams':[],'bodySchema':'{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','responseHighlights':[a1_0x34576b(0x101)],'examples':[a1_0x34576b(0xbc)],'notes':[a1_0x34576b(0xfe)],'markdown':a1_0x34576b(0xf1)}];function entrySummary(_0x1bb937){const _0x5ce083=a1_0x34576b;return{'code':_0x1bb937['code'],'category':_0x1bb937[_0x5ce083(0xd0)],'method':_0x1bb937[_0x5ce083(0xdf)],'path':_0x1bb937['path'],'summary':_0x1bb937[_0x5ce083(0xe1)],'whenToUse':_0x1bb937[_0x5ce083(0xae)]};}export function listApiDocEntries(_0x4560b7={}){const _0x5404f2=a1_0x34576b,_0x3b9d4a=String(_0x4560b7[_0x5404f2(0xd0)]||'')[_0x5404f2(0x104)](),_0x37a013=String(_0x4560b7['keyword']||'')[_0x5404f2(0x104)]()['toLowerCase']();return DOCS[_0x5404f2(0xd3)](_0x315408=>{const _0x32ae3b=_0x5404f2;if(_0x3b9d4a&&_0x315408[_0x32ae3b(0xd0)]!==_0x3b9d4a)return![];if(!_0x37a013)return!![];return[_0x315408[_0x32ae3b(0xf6)],_0x315408['category'],_0x315408[_0x32ae3b(0xdf)],_0x315408['path'],_0x315408[_0x32ae3b(0xe1)],_0x315408[_0x32ae3b(0xae)],_0x315408['title']][_0x32ae3b(0xbf)]('\x20')[_0x32ae3b(0xb7)]()['includes'](_0x37a013);})[_0x5404f2(0xb2)](entrySummary);}export function getApiDocDetail(_0xcabdf2){const _0x27021a=a1_0x34576b,_0x3e6497=DOCS[_0x27021a(0xc8)](_0x4e59e6=>_0x4e59e6[_0x27021a(0xf6)]===_0xcabdf2);if(!_0x3e6497)throw CliErrors['validation']('API\x20doc\x20code\x20not\x20found:\x20'+_0xcabdf2);return{..._0x3e6497};}const apiDocList={'service':a1_0x34576b(0xc0),'command':a1_0x34576b(0xf3),'description':a1_0x34576b(0x110),'risk':a1_0x34576b(0xe8),'requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0xa68bad){const _0x1ce875=a1_0x34576b,_0x2d1b0a=listApiDocEntries({'category':_0xa68bad[_0x1ce875(0xea)](_0x1ce875(0xd0)),'keyword':_0xa68bad[_0x1ce875(0xea)](_0x1ce875(0x100))});return{'ok':!![],'data':{'total':_0x2d1b0a[_0x1ce875(0xcc)],'items':_0x2d1b0a}};}},apiDocDetail={'service':'api-doc','command':a1_0x34576b(0xc5),'description':a1_0x34576b(0xd7),'risk':'read','requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0x21c123){const _0x3fc4f4=a1_0x34576b;return{'ok':!![],'data':getApiDocDetail(_0x21c123[_0x3fc4f4(0xea)]('code'))};}};function a1_0x2b0c(_0x1849d6,_0x5b2802){_0x1849d6=_0x1849d6-0xa0;const _0x183ad4=a1_0x183a();let _0x2b0cc3=_0x183ad4[_0x1849d6];return _0x2b0cc3;}export const apiDocDefinitions=[apiDocList,apiDocDetail];
1
+ const a1_0x3aa066=a1_0x17bf;(function(_0x503afe,_0x2ae11d){const _0x132dfb=a1_0x17bf,_0x2edbbf=_0x503afe();while(!![]){try{const _0x4e3248=-parseInt(_0x132dfb(0x149))/0x1+-parseInt(_0x132dfb(0x162))/0x2+-parseInt(_0x132dfb(0x177))/0x3*(-parseInt(_0x132dfb(0x11c))/0x4)+parseInt(_0x132dfb(0x12b))/0x5+parseInt(_0x132dfb(0x12e))/0x6*(-parseInt(_0x132dfb(0x14a))/0x7)+parseInt(_0x132dfb(0x15c))/0x8+parseInt(_0x132dfb(0x16a))/0x9*(parseInt(_0x132dfb(0x144))/0xa);if(_0x4e3248===_0x2ae11d)break;else _0x2edbbf['push'](_0x2edbbf['shift']());}catch(_0x1aa9d6){_0x2edbbf['push'](_0x2edbbf['shift']());}}}(a1_0x413c,0x9d8a2));import{CliErrors}from'../../errors.js';const CATEGORY_FLAG={'name':a1_0x3aa066(0x160),'type':a1_0x3aa066(0x132),'description':a1_0x3aa066(0x147)},KEYWORD_FLAG={'name':a1_0x3aa066(0x172),'type':a1_0x3aa066(0x132),'description':a1_0x3aa066(0x15b)},DOC_CODE_FLAG={'name':a1_0x3aa066(0x13a),'type':'string','required':!![],'description':a1_0x3aa066(0x120)},DOCS=[{'code':a1_0x3aa066(0x175),'category':a1_0x3aa066(0x178),'title':a1_0x3aa066(0x152),'method':a1_0x3aa066(0x135),'path':'/api/dataset/get-dataset-list-by-app-code','summary':a1_0x3aa066(0x161),'whenToUse':a1_0x3aa066(0x11f),'pathParams':[],'queryParams':[],'bodySchema':a1_0x3aa066(0x128),'responseHighlights':[a1_0x3aa066(0x123),a1_0x3aa066(0x11a)],'examples':[a1_0x3aa066(0x134)],'notes':[a1_0x3aa066(0x122)],'markdown':['##\x20List\x20datasets','',a1_0x3aa066(0x10f)][a1_0x3aa066(0x117)]('\x0a')},{'code':a1_0x3aa066(0x10d),'category':a1_0x3aa066(0x178),'title':'Dataset\x20detail','method':'GET','path':'/api/dataset/getOneByCode?code={datasetCode}','summary':a1_0x3aa066(0x141),'whenToUse':a1_0x3aa066(0x12d),'pathParams':[],'queryParams':[{'name':a1_0x3aa066(0x13a),'description':a1_0x3aa066(0x171)}],'bodySchema':a1_0x3aa066(0x131),'responseHighlights':[a1_0x3aa066(0x129),'relations\x20contains\x20the\x20object-shaped\x20API\x20relations\x20value\x20when\x20returned',a1_0x3aa066(0x119)],'examples':[a1_0x3aa066(0x170)],'notes':[a1_0x3aa066(0x12c)],'markdown':[a1_0x3aa066(0x142),'',a1_0x3aa066(0x150)]['join']('\x0a')},{'code':a1_0x3aa066(0x163),'category':a1_0x3aa066(0x178),'title':a1_0x3aa066(0x118),'method':a1_0x3aa066(0x135),'path':a1_0x3aa066(0x156),'summary':a1_0x3aa066(0x14b),'whenToUse':a1_0x3aa066(0x140),'pathParams':[{'name':a1_0x3aa066(0x143),'description':a1_0x3aa066(0x136)},{'name':a1_0x3aa066(0x167),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':a1_0x3aa066(0x166),'responseHighlights':['tableData\x20contains\x20records',a1_0x3aa066(0x169)],'examples':[a1_0x3aa066(0x176)],'notes':[a1_0x3aa066(0x145)],'markdown':[a1_0x3aa066(0x124),'','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.'][a1_0x3aa066(0x117)]('\x0a')},{'code':a1_0x3aa066(0x14c),'category':a1_0x3aa066(0x178),'title':'Aggregate\x20dataset\x20data','method':a1_0x3aa066(0x135),'path':a1_0x3aa066(0x164),'summary':'聚合查询数据集数据','whenToUse':'需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用','pathParams':[{'name':a1_0x3aa066(0x143),'description':'Current\x20app\x20code'},{'name':a1_0x3aa066(0x167),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':a1_0x3aa066(0x16e),'responseHighlights':['result\x20rows\x20contain\x20aggregate\x20aliases','where\x20filters\x20before\x20aggregation'],'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_0x3aa066(0x115),a1_0x3aa066(0x155)],'markdown':['##\x20Aggregate\x20dataset\x20data','','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.']['join']('\x0a')},{'code':a1_0x3aa066(0x148),'category':a1_0x3aa066(0x178),'title':'Get\x20one\x20dataset\x20record','method':a1_0x3aa066(0x135),'path':a1_0x3aa066(0x14d),'summary':a1_0x3aa066(0x10b),'whenToUse':'已经知道记录\x20id,需要按数据集读取单条业务数据时使用','pathParams':[{'name':a1_0x3aa066(0x143),'description':'Current\x20app\x20code'},{'name':a1_0x3aa066(0x167),'description':a1_0x3aa066(0x171)}],'queryParams':[],'bodySchema':a1_0x3aa066(0x153),'responseHighlights':['Returns\x20one\x20matching\x20business\x20record'],'examples':[a1_0x3aa066(0x137)],'notes':[a1_0x3aa066(0x146)],'markdown':'##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.'},{'code':a1_0x3aa066(0x10e),'category':a1_0x3aa066(0x178),'title':a1_0x3aa066(0x14e),'method':a1_0x3aa066(0x135),'path':'/api/{appCode}/{datasetCode}/create','summary':a1_0x3aa066(0x151),'whenToUse':'需要向指定数据集新增一条业务数据时使用','pathParams':[{'name':a1_0x3aa066(0x143),'description':a1_0x3aa066(0x136)},{'name':a1_0x3aa066(0x167),'description':a1_0x3aa066(0x171)}],'queryParams':[],'bodySchema':a1_0x3aa066(0x113),'responseHighlights':[a1_0x3aa066(0x174)],'examples':[a1_0x3aa066(0x173)],'notes':[a1_0x3aa066(0x127)],'markdown':'##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.'},{'code':'bf_function_list','category':'bf','title':a1_0x3aa066(0x13b),'method':a1_0x3aa066(0x12a),'path':a1_0x3aa066(0x13c),'summary':'获取应用下可调用的\x20BF\x20函数列表','whenToUse':'需要先确认当前应用有哪些可执行的\x20BF/ENDPOINT\x20函数,以及收敛可用\x20scriptName\x20时使用','pathParams':[{'name':a1_0x3aa066(0x143),'description':a1_0x3aa066(0x136)}],'queryParams':[],'bodySchema':a1_0x3aa066(0x131),'responseHighlights':['Returns\x20endpoint\x20functionName/id/description'],'examples':[a1_0x3aa066(0x14f)],'notes':[a1_0x3aa066(0x12f)],'markdown':a1_0x3aa066(0x16d)},{'code':a1_0x3aa066(0x138),'category':'bf','title':a1_0x3aa066(0x159),'method':a1_0x3aa066(0x135),'path':a1_0x3aa066(0x15a),'summary':'执行指定\x20BF\x20函数','whenToUse':a1_0x3aa066(0x130),'pathParams':[{'name':a1_0x3aa066(0x143),'description':a1_0x3aa066(0x136)},{'name':a1_0x3aa066(0x114),'description':'Endpoint\x20function\x20name'}],'queryParams':[],'bodySchema':a1_0x3aa066(0x133),'responseHighlights':[a1_0x3aa066(0x157)],'examples':[a1_0x3aa066(0x15d)],'notes':[a1_0x3aa066(0x16f)],'markdown':'##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.'},{'code':a1_0x3aa066(0x165),'category':a1_0x3aa066(0x126),'title':a1_0x3aa066(0x10a),'method':a1_0x3aa066(0x135),'path':a1_0x3aa066(0x15e),'summary':a1_0x3aa066(0x158),'whenToUse':'已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','pathParams':[],'queryParams':[],'bodySchema':'{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','responseHighlights':[a1_0x3aa066(0x112)],'examples':['lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27'],'notes':['Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.'],'markdown':a1_0x3aa066(0x139)}];function a1_0x413c(){const _0x497184=['length','需要携带\x20where、orderBy、分页等条件读取业务数据时使用','获取数据集详情','##\x20Dataset\x20detail','appCode','4710WRVnoG','Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.','Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.','Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset','dataset_data_get_one','46739lgUPzJ','107639XbSHcx','条件过滤查询数据','dataset_data_aggregate','/api/{appCode}/{datasetCode}/getOne','Create\x20dataset\x20record','lovrabet\x20bff\x20detail\x20--id\x20<scriptId>\x20--appcode\x20<appCode>','Inspect\x20field\x20names,\x20relations,\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.','创建数据','List\x20datasets','{\x22id\x22:123}','list','`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','/api/{appCode}/{datasetCode}/filter','Returns\x20script\x20business\x20payload','执行自定义\x20SQL','Execute\x20BF\x20endpoint\x20function','/api/endpoint/{appCode}/{scriptName}','Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text','5203640NylLEO','lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27','/api/custom/executeSql','filter','category','分页获取数据集列表','2023452XBZMFD','dataset_data_filter','/api/{appCode}/{datasetCode}/aggregate','custom_sql_execute','{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','datasetCode','summary','paging\x20contains\x20pagination','18693iyZEcB','find','str','##\x20List\x20BF\x20endpoint\x20functions\x0a\x0aDiscover\x20executable\x20endpoint\x20functions.','{\x22aggregate\x22:[{\x22column\x22:\x20\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.','lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>','32-character\x20dataset\x20code','keyword','lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27','Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result','dataset_list','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:5}\x27','6uwQKnU','dataset','Execute\x20custom\x20SQL','查询单条数据','toLowerCase','dataset_detail','dataset_data_create','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.','map','trim','Returns\x20SQL\x20execution\x20payload','{\x22fieldName\x22:\x22value\x22}','scriptName','Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.','read','join','Filter\x20dataset\x20data','operations\x20describes\x20runtime\x20APIs','paging.totalCount\x20gives\x20total\x20rows','includes','17392JSfUWd','api-doc','Show\x20runtime\x20API\x20documentation\x20by\x20code','需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','API\x20doc\x20code,\x20for\x20example\x20dataset_list','whenToUse','CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.','tableData\x20contains\x20dataset\x20id/code/name','##\x20Filter\x20dataset\x20data','validation','custom_sql','This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.','{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','fields/properties\x20describe\x20data\x20shape','GET','2484425ZoDPYN','If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.','需要按数据集\x20code\x20获取字段、表信息、关联关系(relations)或操作定义时使用','168FmALgT','CLI\x20has\x20typed\x20`bff\x20detail`\x20and\x20`bff\x20exec`\x20commands\x20for\x20endpoint\x20scripts.','已经确认目标\x20BF\x20的\x20scriptName,且需要实际调用该\x20ENDPOINT\x20脚本完成业务操作时使用','None','string','{\x22param\x22:\x22value\x22}','lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress','POST','Current\x20app\x20code','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27','bf_execute','##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.','code','List\x20BF\x20endpoint\x20functions','/api/endpoint/{appCode}/functions','method','path'];a1_0x413c=function(){return _0x497184;};return a1_0x413c();}function entrySummary(_0x39388c){const _0x307eda=a1_0x3aa066;return{'code':_0x39388c[_0x307eda(0x13a)],'category':_0x39388c[_0x307eda(0x160)],'method':_0x39388c[_0x307eda(0x13d)],'path':_0x39388c[_0x307eda(0x13e)],'summary':_0x39388c[_0x307eda(0x168)],'whenToUse':_0x39388c[_0x307eda(0x121)]};}export function listApiDocEntries(_0x164e33={}){const _0x423e81=a1_0x3aa066,_0xbd39f8=String(_0x164e33[_0x423e81(0x160)]||'')[_0x423e81(0x111)](),_0x3a4403=String(_0x164e33['keyword']||'')[_0x423e81(0x111)]()[_0x423e81(0x10c)]();return DOCS[_0x423e81(0x15f)](_0x19fd07=>{const _0x4e55fb=_0x423e81;if(_0xbd39f8&&_0x19fd07['category']!==_0xbd39f8)return![];if(!_0x3a4403)return!![];return[_0x19fd07[_0x4e55fb(0x13a)],_0x19fd07[_0x4e55fb(0x160)],_0x19fd07['method'],_0x19fd07[_0x4e55fb(0x13e)],_0x19fd07[_0x4e55fb(0x168)],_0x19fd07[_0x4e55fb(0x121)],_0x19fd07['title']]['join']('\x20')[_0x4e55fb(0x10c)]()[_0x4e55fb(0x11b)](_0x3a4403);})[_0x423e81(0x110)](entrySummary);}function a1_0x17bf(_0x129488,_0x21e368){_0x129488=_0x129488-0x10a;const _0x413c09=a1_0x413c();let _0x17bf1f=_0x413c09[_0x129488];return _0x17bf1f;}export function getApiDocDetail(_0x18b4de){const _0x29974d=a1_0x3aa066,_0x4b9355=DOCS[_0x29974d(0x16b)](_0x2ae79c=>_0x2ae79c[_0x29974d(0x13a)]===_0x18b4de);if(!_0x4b9355)throw CliErrors[_0x29974d(0x125)]('API\x20doc\x20code\x20not\x20found:\x20'+_0x18b4de);return{..._0x4b9355};}const apiDocList={'service':a1_0x3aa066(0x11d),'command':a1_0x3aa066(0x154),'description':'List\x20available\x20runtime\x20API\x20documentation\x20entries','risk':'read','requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0x2832b1){const _0x1a5617=a1_0x3aa066,_0x3e59aa=listApiDocEntries({'category':_0x2832b1[_0x1a5617(0x16c)](_0x1a5617(0x160)),'keyword':_0x2832b1['str'](_0x1a5617(0x172))});return{'ok':!![],'data':{'total':_0x3e59aa[_0x1a5617(0x13f)],'items':_0x3e59aa}};}},apiDocDetail={'service':a1_0x3aa066(0x11d),'command':'detail','description':a1_0x3aa066(0x11e),'risk':a1_0x3aa066(0x116),'requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0xce994d){const _0x148d14=a1_0x3aa066;return{'ok':!![],'data':getApiDocDetail(_0xce994d[_0x148d14(0x16c)](_0x148d14(0x13a)))};}};export const apiDocDefinitions=[apiDocList,apiDocDetail];
@@ -1 +1 @@
1
- (function(_0x4a70fd,_0x195fff){const _0x435f7d=a2_0x1658,_0x548dfc=_0x4a70fd();while(!![]){try{const _0x38e527=parseInt(_0x435f7d(0x1f8))/0x1*(parseInt(_0x435f7d(0x1ea))/0x2)+-parseInt(_0x435f7d(0x205))/0x3*(parseInt(_0x435f7d(0x1e9))/0x4)+-parseInt(_0x435f7d(0x1f5))/0x5*(-parseInt(_0x435f7d(0x1f1))/0x6)+parseInt(_0x435f7d(0x1fa))/0x7+parseInt(_0x435f7d(0x1eb))/0x8*(parseInt(_0x435f7d(0x204))/0x9)+-parseInt(_0x435f7d(0x1e6))/0xa+parseInt(_0x435f7d(0x1f0))/0xb*(-parseInt(_0x435f7d(0x1fd))/0xc);if(_0x38e527===_0x195fff)break;else _0x548dfc['push'](_0x548dfc['shift']());}catch(_0x23d774){_0x548dfc['push'](_0x548dfc['shift']());}}}(a2_0x5324,0x56c09));import{createHash}from'node:crypto';function a2_0x1658(_0x2c29bc,_0x87c063){_0x2c29bc=_0x2c29bc-0x1e6;const _0x53249c=a2_0x5324();let _0x1658a2=_0x53249c[_0x2c29bc];return _0x1658a2;}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';import{isRuntimeAccessibleApp}from'../../commands/app/eligibility.js';export function fingerprintAccessKey(_0xc0b136){const _0x37ddbb=a2_0x1658,_0x369022=_0xc0b136[_0x37ddbb(0x201)](),_0x221e93=_0x369022[_0x37ddbb(0x203)](-0x6)||_0x37ddbb(0x1fc),_0x223f15=createHash('sha256')['update'](_0x369022)[_0x37ddbb(0x1ef)](_0x37ddbb(0x1f7))['slice'](0x0,0xc);return _0x37ddbb(0x1f6)+_0x221e93+'_'+_0x223f15;}export function getAppCacheFilePath(_0x411799,_0x1ff483){const _0x530655=a2_0x1658;return resolve(homedir(),PRODUCT_CONFIG[_0x530655(0x202)],_0x530655(0x1f4),_0x411799,fingerprintAccessKey(_0x1ff483),'my-apps.json');}export function readCachedAppList(_0x15787c,_0x57b78e){const _0xa65de4=a2_0x1658;if(!_0x57b78e?.[_0xa65de4(0x201)]())return null;const _0x5f1639=getAppCacheFilePath(_0x15787c,_0x57b78e);if(!existsSync(_0x5f1639))return null;try{const _0x1238a4=readFileSync(_0x5f1639,'utf8');if(!_0x1238a4[_0xa65de4(0x201)]())return null;const _0x551833=JSON[_0xa65de4(0x1fe)](_0x1238a4);if(!Array[_0xa65de4(0x1f2)](_0x551833[_0xa65de4(0x1ff)]))return null;return _0x551833;}catch{return null;}}export function writeCachedAppList(_0x2a5c22,_0x48ed6f,_0x36fb90){const _0x15c855=a2_0x1658,_0x2ff1a1=getAppCacheFilePath(_0x2a5c22,_0x48ed6f),_0x2a21a3=dirname(_0x2ff1a1);!existsSync(_0x2a21a3)&&mkdirSync(_0x2a21a3,{'recursive':!![]});const _0x5a6129=_0x2ff1a1+_0x15c855(0x1e7);try{writeFileSync(_0x5a6129,JSON[_0x15c855(0x1fb)](_0x36fb90,null,0x2)+'\x0a',{'encoding':_0x15c855(0x1f9),'mode':0x180});try{renameSync(_0x5a6129,_0x2ff1a1);}catch(_0x39b929){if(_0x39b929[_0x15c855(0x1f3)]==='EPERM'||_0x39b929['code']===_0x15c855(0x1ee)||_0x39b929[_0x15c855(0x1f3)]===_0x15c855(0x1ec)){writeFileSync(_0x2ff1a1,JSON[_0x15c855(0x1fb)](_0x36fb90,null,0x2)+'\x0a',{'encoding':_0x15c855(0x1f9)});try{unlinkSync(_0x5a6129);}catch{}}else throw _0x39b929;}}catch(_0x575dc8){try{unlinkSync(_0x5a6129);}catch{}throw _0x575dc8;}return _0x2ff1a1;}export function resolveCachedAppCode(_0x7850e6,_0x4a67ee,_0x37292d){const _0x492fa8=a2_0x1658;if(!_0x7850e6)return undefined;const _0xa79164=readCachedAppList(_0x4a67ee,_0x37292d),_0x177c35=_0xa79164?.[_0x492fa8(0x1ff)][_0x492fa8(0x1ed)](_0x23c74a=>_0x23c74a[_0x492fa8(0x1e8)]===_0x7850e6&&isRuntimeAccessibleApp(_0x23c74a));return _0x177c35?.[_0x492fa8(0x200)]?.['trim']()||undefined;}function a2_0x5324(){const _0x59f004=['461224zEVjbM','13848mHgtNA','EACCES','find','EXDEV','digest','228239HIgONx','18JcGheL','isArray','code','cache','894275yxrGMD','ak_','hex','1fcEhNf','utf8','3761044CuXntN','stringify','unknown','84VAwWor','parse','items','appCode','trim','homeDirName','slice','837plutqt','12VCFJHb','2577680toPLaH','.tmp','appName','707104HzYwOi'];a2_0x5324=function(){return _0x59f004;};return a2_0x5324();}
1
+ function a2_0x3a82(_0x424535,_0x1aade9){_0x424535=_0x424535-0xc5;const _0x2d1b50=a2_0x2d1b();let _0x3a82f5=_0x2d1b50[_0x424535];return _0x3a82f5;}(function(_0x46198b,_0x59f105){const _0x597b0f=a2_0x3a82,_0x3e9685=_0x46198b();while(!![]){try{const _0x33f230=parseInt(_0x597b0f(0xd8))/0x1*(-parseInt(_0x597b0f(0xdd))/0x2)+-parseInt(_0x597b0f(0xd9))/0x3*(parseInt(_0x597b0f(0xd2))/0x4)+parseInt(_0x597b0f(0xdf))/0x5+-parseInt(_0x597b0f(0xda))/0x6+parseInt(_0x597b0f(0xe1))/0x7*(-parseInt(_0x597b0f(0xce))/0x8)+-parseInt(_0x597b0f(0xcb))/0x9+parseInt(_0x597b0f(0xdb))/0xa*(parseInt(_0x597b0f(0xe0))/0xb);if(_0x33f230===_0x59f105)break;else _0x3e9685['push'](_0x3e9685['shift']());}catch(_0x4cc4ce){_0x3e9685['push'](_0x3e9685['shift']());}}}(a2_0x2d1b,0x257e4));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';import{isRuntimeAccessibleApp}from'../../commands/app/eligibility.js';export function fingerprintAccessKey(_0x57ce0e){const _0x457e3f=a2_0x3a82,_0x14c649=_0x57ce0e[_0x457e3f(0xc5)](),_0x12b6fd=_0x14c649['slice'](-0x6)||_0x457e3f(0xc8),_0x5d3e1a=createHash(_0x457e3f(0xd7))[_0x457e3f(0xcd)](_0x14c649)[_0x457e3f(0xe3)](_0x457e3f(0xd1))[_0x457e3f(0xd3)](0x0,0xc);return _0x457e3f(0xd6)+_0x12b6fd+'_'+_0x5d3e1a;}export function getAppCacheFilePath(_0x37ed14,_0xf2590f){const _0x582843=a2_0x3a82;return resolve(homedir(),PRODUCT_CONFIG['homeDirName'],'cache',_0x37ed14,fingerprintAccessKey(_0xf2590f),_0x582843(0xe2));}function a2_0x2d1b(){const _0x53439f=['items','code','ak_','sha256','1JIBqYr','54JyskcN','912486eTXYGN','3088780hxYdxz','EACCES','242414GWUUWs','EXDEV','886050cGrnsK','22bLfWdO','77742SXnsTT','my-apps.json','digest','appCode','trim','appName','utf8','unknown','find','.tmp','1721142dtaXJj','EPERM','update','80YojxRa','isArray','stringify','hex','14624ozabRd','slice'];a2_0x2d1b=function(){return _0x53439f;};return a2_0x2d1b();}export function readCachedAppList(_0x2f66a2,_0x1eb87e){const _0x728d09=a2_0x3a82;if(!_0x1eb87e?.[_0x728d09(0xc5)]())return null;const _0x4cd341=getAppCacheFilePath(_0x2f66a2,_0x1eb87e);if(!existsSync(_0x4cd341))return null;try{const _0x459185=readFileSync(_0x4cd341,_0x728d09(0xc7));if(!_0x459185[_0x728d09(0xc5)]())return null;const _0x5566be=JSON['parse'](_0x459185);if(!Array[_0x728d09(0xcf)](_0x5566be[_0x728d09(0xd4)]))return null;return _0x5566be;}catch{return null;}}export function writeCachedAppList(_0x36cd55,_0x281f5c,_0x33ea1b){const _0xea58ea=a2_0x3a82,_0x3ece66=getAppCacheFilePath(_0x36cd55,_0x281f5c),_0x3e25e4=dirname(_0x3ece66);!existsSync(_0x3e25e4)&&mkdirSync(_0x3e25e4,{'recursive':!![]});const _0x5bfc9d=_0x3ece66+_0xea58ea(0xca);try{writeFileSync(_0x5bfc9d,JSON[_0xea58ea(0xd0)](_0x33ea1b,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x5bfc9d,_0x3ece66);}catch(_0x2974e3){if(_0x2974e3[_0xea58ea(0xd5)]===_0xea58ea(0xcc)||_0x2974e3['code']===_0xea58ea(0xde)||_0x2974e3['code']===_0xea58ea(0xdc)){writeFileSync(_0x3ece66,JSON[_0xea58ea(0xd0)](_0x33ea1b,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0x5bfc9d);}catch{}}else throw _0x2974e3;}}catch(_0x12c023){try{unlinkSync(_0x5bfc9d);}catch{}throw _0x12c023;}return _0x3ece66;}export function resolveCachedAppCode(_0x3b8e3c,_0x20f3bc,_0x50b323){const _0x2694e9=a2_0x3a82;if(!_0x3b8e3c)return undefined;const _0x46ca43=readCachedAppList(_0x20f3bc,_0x50b323),_0x569e54=_0x46ca43?.[_0x2694e9(0xd4)][_0x2694e9(0xc9)](_0x4b0373=>_0x4b0373[_0x2694e9(0xc6)]===_0x3b8e3c&&isRuntimeAccessibleApp(_0x4b0373));return _0x569e54?.[_0x2694e9(0xe4)]?.[_0x2694e9(0xc5)]()||undefined;}
@@ -1 +1 @@
1
- const a3_0x132a24=a3_0x52c8;(function(_0x34ea92,_0x1bad8d){const _0x451e29=a3_0x52c8,_0x434c18=_0x34ea92();while(!![]){try{const _0x6386b6=parseInt(_0x451e29(0x1c1))/0x1*(parseInt(_0x451e29(0x1ee))/0x2)+parseInt(_0x451e29(0x1c7))/0x3+parseInt(_0x451e29(0x1d5))/0x4+-parseInt(_0x451e29(0x1fa))/0x5+-parseInt(_0x451e29(0x1e6))/0x6*(-parseInt(_0x451e29(0x1c3))/0x7)+-parseInt(_0x451e29(0x1fe))/0x8+-parseInt(_0x451e29(0x1ed))/0x9;if(_0x6386b6===_0x1bad8d)break;else _0x434c18['push'](_0x434c18['shift']());}catch(_0x3de7f6){_0x434c18['push'](_0x434c18['shift']());}}}(a3_0x43d8,0xa3a6c));import{CliErrors}from'../../errors.js';import{initCreateFlagDefs,initImportFlagDefs,runInit,runInitImport}from'../../commands/init.js';import{getEnv,RUNTIME_ENV_VALUES}from'../../constant/env.js';function a3_0x52c8(_0x5a5c41,_0x52de31){_0x5a5c41=_0x5a5c41-0x1aa;const _0x43d8b8=a3_0x43d8();let _0x52c85c=_0x43d8b8[_0x5a5c41];return _0x52c85c;}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':'global','type':a3_0x132a24(0x1ce),'description':a3_0x132a24(0x1df),'default':![]};function a3_0x43d8(){const _0x5bf296=['Use\x20`','no-cache','cachePath','appCode','2876208gRGCar','Read\x20from\x20local\x20cache\x20only','cache','warn','../../commands/app/cache.js','name','\x20app\x20use\x20<name>\x20[--global]','Deprecated:\x20use\x20workspace\x20init\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','map','Remote\x20app\x20name\x20to\x20activate','Use\x20global\x20config\x20scope','No\x20apps\x20found\x20on\x20the\x20platform.','\x20is\x20deprecated.\x20Use\x20`','Usage:\x20','trim','\x20workspace\x20init\x20--appcode\x20<code>\x20[--env\x20daily]','type','84546pAhPXv','entries','Filter\x20by\x20environment\x20(default:\x20current\x20env)','Deprecated:\x20use\x20workspace\x20use\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','length','args','`\x20instead.','16592067NarmxC','810396NSqbNs','\x20workspace\x20use\x20--app\x20<name>\x20[--env\x20daily]','use','Available\x20remote\x20apps:\x20','fetchedAt','appOwnerName','join','import','bool','Target\x20environment\x20(default:\x20current\x20env)','No\x20cached\x20apps\x20found.','str','1128750WGLYRv','mergedCli','list','include-unpublished','1610784NGigUq','appPublishStatus','find','from','Default\x20app\x20candidate\x20set\x20to\x20\x22','env','raw','Missing\x20app\x20name.','filter','local','.appcode\x20to\x20.lovrabet.json.','langs','globalPath','global','nonInteractive','\x22\x20not\x20found.','app','items','../../context.js','../../commands/app/remote-source.js','config','defaultApp','envName','remote','2vyINtc','validation','539FnNWZy','enableI18n','Refreshed\x20app\x20cache\x20with\x20','projectPath','979566DfFujh','write','production','source','push','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','accessKey','boolean','appName','string'];a3_0x43d8=function(){return _0x5bf296;};return a3_0x43d8();}function collectFlags(_0x2d078a,_0x5ec672){const _0x109cc3=a3_0x132a24,_0x265163={};for(const _0x1cbbf1 of _0x5ec672){const _0x549371=_0x1cbbf1[_0x109cc3(0x1e5)]==='boolean'?_0x2d078a[_0x109cc3(0x1f6)](_0x1cbbf1['name']):_0x2d078a[_0x109cc3(0x1f9)](_0x1cbbf1['name']);if(_0x549371!==''&&_0x549371!==![])_0x265163[_0x1cbbf1[_0x109cc3(0x1da)]]=_0x549371;}if(_0x2d078a[_0x109cc3(0x1b7)])_0x265163[_0x109cc3(0x1b7)]=!![];return _0x265163;}function normalizeLanguages(_0x530608){const _0x5309d5=a3_0x132a24;if(!Array['isArray'](_0x530608))return[];return _0x530608[_0x5309d5(0x1b1)](_0xc6ea60=>typeof _0xc6ea60==='string')[_0x5309d5(0x1dd)](_0x4a032c=>_0x4a032c[_0x5309d5(0x1e3)]())[_0x5309d5(0x1b1)](Boolean);}function buildRemoteAppI18nFields(_0x591a0c){const _0x29db51=a3_0x132a24,_0x108e44=normalizeLanguages(_0x591a0c['i18nInfo']?.[_0x29db51(0x1b4)]);return{'enableI18n':typeof _0x591a0c[_0x29db51(0x1c4)]==='boolean'?_0x591a0c[_0x29db51(0x1c4)]:null,'languages':_0x108e44,'i18nInfo':_0x591a0c['i18nInfo']?{..._0x591a0c['i18nInfo'],'langs':_0x108e44[_0x29db51(0x1ea)]?_0x108e44:null}:null};}const initDef={'service':a3_0x132a24(0x1b9),'command':'init','description':a3_0x132a24(0x1dc),'risk':a3_0x132a24(0x1c8),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x5ca3a9){const _0x6dc1cc=a3_0x132a24;return warnDeprecatedAppCommand('init',CLI_BIN_NAME+_0x6dc1cc(0x1e4)),await runInit(collectFlags(_0x5ca3a9,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a3_0x132a24(0x1b9),'command':a3_0x132a24(0x1fc),'description':'List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','risk':'read','requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a3_0x132a24(0x1ae),'type':'string','description':a3_0x132a24(0x1e8),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x132a24(0x1b2),'type':a3_0x132a24(0x1ce),'description':'Read\x20app\x20list\x20from\x20local\x20cache\x20only','default':![]},{'name':a3_0x132a24(0x1d2),'type':'boolean','description':a3_0x132a24(0x1cc),'default':![]},{'name':a3_0x132a24(0x1fd),'type':a3_0x132a24(0x1ce),'description':'Include\x20unpublished\x20apps\x20for\x20diagnostics','default':![]}],async 'execute'(_0x1a5c6d){const _0x2e9e4f=a3_0x132a24,_0x1eb112=_0x1a5c6d['str'](_0x2e9e4f(0x1ae))||_0x1a5c6d[_0x2e9e4f(0x1bf)]||getEnv()||_0x2e9e4f(0x1c9),_0x392455=_0x1a5c6d[_0x2e9e4f(0x1f6)](_0x2e9e4f(0x1b2)),_0x47173d=_0x1a5c6d[_0x2e9e4f(0x1f6)](_0x2e9e4f(0x1d2)),_0x150d4c=_0x1a5c6d[_0x2e9e4f(0x1f6)](_0x2e9e4f(0x1fd)),{readRawConfigWithLayers:_0x1b18af,resolveDefaultAppSource:_0x5812bc,getLocalAppAliases:_0x41ad28}=await import(_0x2e9e4f(0x1bb)),{getRemoteAppList:_0xe9ab3c}=await import(_0x2e9e4f(0x1bc)),{config:_0x259b45,layers:_0x10d614}=_0x1b18af(),_0xdc3a05=_0x5812bc(_0x10d614),{defaultApp:_0x1efa4a}=_0x259b45,_0x42a1cb=await _0xe9ab3c({'env':_0x1eb112,'accessKey':_0x1a5c6d[_0x2e9e4f(0x1cd)],'localOnly':_0x392455,'noCache':_0x47173d}),_0x567efb=_0x150d4c?_0x42a1cb[_0x2e9e4f(0x1ba)]:filterRuntimeAccessibleApps(_0x42a1cb['items']),_0x2b9a9e=_0x42a1cb['items'][_0x2e9e4f(0x1ea)]-_0x567efb[_0x2e9e4f(0x1ea)],_0x1ef04c=_0x567efb[_0x2e9e4f(0x1dd)](_0x3ea044=>{const _0x374f18=_0x2e9e4f;return{'name':_0x3ea044[_0x374f18(0x1cf)],'appcode':_0x3ea044['appCode'],'named':!![],'definedIn':_0x374f18(0x1c0),'isDefault':_0x3ea044[_0x374f18(0x1cf)]===_0x1efa4a,...buildAppProfileListFields(_0x1eb112),...buildRemoteAppI18nFields(_0x3ea044),'source':_0x42a1cb[_0x374f18(0x1ca)],'owner':_0x3ea044[_0x374f18(0x1f3)]??null,'status':_0x3ea044[_0x374f18(0x1aa)]??null,'cachedAt':_0x42a1cb['fetchedAt']};}),_0x1c0feb=_0x41ad28(_0x259b45);let _0x3e4268=0x0;for(const [_0x73bcf7,_0x5277ec]of Object[_0x2e9e4f(0x1e7)](_0x1c0feb)){const _0x3b2d43=typeof _0x5277ec['appcode']===_0x2e9e4f(0x1d0)?_0x5277ec['appcode'][_0x2e9e4f(0x1e3)]():'';if(!_0x3b2d43)continue;const _0x38f7d9=findAppByCode(_0x42a1cb[_0x2e9e4f(0x1ba)],_0x3b2d43);if(!_0x150d4c&&_0x38f7d9&&!isRuntimeAccessibleApp(_0x38f7d9))continue;_0x3e4268+=0x1,_0x1ef04c[_0x2e9e4f(0x1cb)]({'name':_0x73bcf7,'appcode':_0x3b2d43,'named':!![],'definedIn':'local','isDefault':_0x73bcf7===_0x1efa4a,...buildAppProfileListFields(_0x1eb112),'source':_0x2e9e4f(0x1bd),'owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x1ef04c,_0x1a5c6d[_0x2e9e4f(0x1fb)]);const _0x5b5b67=_0x1ef04c['find'](_0x1b2931=>_0x1b2931['isCurrent']===!![]),_0xccf022=_0x1efa4a??_0x5b5b67?.[_0x2e9e4f(0x1da)]??null,_0x40b6b1={'env':_0x1eb112,'source':_0x42a1cb[_0x2e9e4f(0x1ca)],'fetchedAt':_0x42a1cb[_0x2e9e4f(0x1f2)],'cachePath':_0x42a1cb[_0x2e9e4f(0x1d3)],'globalPath':_0x10d614[_0x2e9e4f(0x1b5)]??null,'projectPath':_0x10d614[_0x2e9e4f(0x1c6)]??null,'defaultApp':_0xccf022,'defaultAppSource':_0x1efa4a!=null?_0xdc3a05:null,'localAliasCount':_0x3e4268,'remoteTotal':_0x42a1cb[_0x2e9e4f(0x1ba)][_0x2e9e4f(0x1ea)],'hiddenUnpublishedCount':_0x2b9a9e,'includeUnpublished':_0x150d4c};if(_0x1ef04c[_0x2e9e4f(0x1ea)]===0x0)return{'ok':!![],'data':{'items':_0x1ef04c,'meta':_0x40b6b1},'message':_0x42a1cb[_0x2e9e4f(0x1ca)]===_0x2e9e4f(0x1d7)?_0x2e9e4f(0x1f8):_0x2e9e4f(0x1e0)};return{'ok':!![],'data':{'items':_0x1ef04c,'meta':_0x40b6b1}};}},pullDef={'service':a3_0x132a24(0x1b9),'command':'pull','description':'Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','risk':a3_0x132a24(0x1c8),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a3_0x132a24(0x1ae),'type':a3_0x132a24(0x1d0),'description':a3_0x132a24(0x1f7),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x132a24(0x1b2),'type':a3_0x132a24(0x1ce),'description':a3_0x132a24(0x1d6),'default':![]},{'name':a3_0x132a24(0x1d2),'type':a3_0x132a24(0x1ce),'description':a3_0x132a24(0x1cc),'default':![]}],async 'execute'(_0x3dfae2){const _0x31c15e=a3_0x132a24,_0x3e35a3=_0x3dfae2[_0x31c15e(0x1f9)](_0x31c15e(0x1ae))||_0x3dfae2[_0x31c15e(0x1bf)]||getEnv()||_0x31c15e(0x1c9),_0x483fa1=_0x3dfae2[_0x31c15e(0x1f6)](_0x31c15e(0x1b2)),_0x59f91a=_0x3dfae2[_0x31c15e(0x1f6)](_0x31c15e(0x1d2)),{getRemoteAppList:_0x5ea2e4}=await import(_0x31c15e(0x1bc)),_0x280b52=await _0x5ea2e4({'env':_0x3e35a3,'accessKey':_0x3dfae2[_0x31c15e(0x1cd)],'localOnly':_0x483fa1,'noCache':_0x59f91a});return{'ok':!![],'data':{'total':_0x280b52[_0x31c15e(0x1ba)][_0x31c15e(0x1ea)],'env':_0x3e35a3,'source':_0x280b52[_0x31c15e(0x1ca)],'fetchedAt':_0x280b52[_0x31c15e(0x1f2)],'cachePath':_0x280b52['cachePath']},'message':_0x280b52[_0x31c15e(0x1ca)]===_0x31c15e(0x1d7)?'Loaded\x20'+_0x280b52['items'][_0x31c15e(0x1ea)]+'\x20cached\x20app(s)\x20for\x20env=\x22'+_0x3e35a3+'\x22.':_0x31c15e(0x1c5)+_0x280b52[_0x31c15e(0x1ba)][_0x31c15e(0x1ea)]+'\x20app(s)\x20for\x20env=\x22'+_0x3e35a3+'\x22.'};}},useDef={'service':a3_0x132a24(0x1b9),'command':'use','description':a3_0x132a24(0x1e9),'risk':a3_0x132a24(0x1c8),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a3_0x132a24(0x1da),'description':a3_0x132a24(0x1de),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x5ae178){const _0x249502=a3_0x132a24;if(!_0x5ae178[_0x249502(0x1eb)][0x0])throw CliErrors[_0x249502(0x1c2)]('Missing\x20app\x20name.',_0x249502(0x1e2)+CLI_BIN_NAME+_0x249502(0x1db));},async 'execute'(_0x3329ae){const _0x4d142b=a3_0x132a24;warnDeprecatedAppCommand(_0x4d142b(0x1f0),CLI_BIN_NAME+_0x4d142b(0x1ef));const _0x349cc4=_0x3329ae['args'][0x0];if(!_0x349cc4)throw CliErrors['validation'](_0x4d142b(0x1b0),_0x4d142b(0x1e2)+CLI_BIN_NAME+'\x20app\x20use\x20<name>\x20[--global]');const {buildConfigFromFlags:_0x9275ae,resolveLocalAppAliasCode:_0x3f8bc2}=await import(_0x4d142b(0x1bb)),{readCachedAppList:_0x2562d1}=await import(_0x4d142b(0x1d9)),_0x328f27=_0x3329ae[_0x4d142b(0x1f9)](_0x4d142b(0x1ae)),_0xff83c7=_0x9275ae(_0x328f27?{'env':_0x328f27}:{}),_0x499d71=_0x2562d1(_0xff83c7[_0x4d142b(0x1ae)],_0xff83c7[_0x4d142b(0x1cd)]),_0x44419e=_0x499d71?.['items'][_0x4d142b(0x1ab)](_0xce6b70=>_0xce6b70[_0x4d142b(0x1cf)]===_0x349cc4),_0x3258e9=_0x3f8bc2(_0xff83c7[_0x4d142b(0x1af)]??{},_0x349cc4);if(_0x44419e&&!isRuntimeAccessibleApp(_0x44419e))throw runtimeInaccessibleAppError(_0x44419e,'\x22'+_0x349cc4+'\x22');if(_0x3258e9){const _0x565b5d=_0x499d71?.[_0x4d142b(0x1ba)]['find'](_0x3404a8=>_0x3404a8[_0x4d142b(0x1d4)]?.[_0x4d142b(0x1e3)]()===_0x3258e9);if(_0x565b5d&&!isRuntimeAccessibleApp(_0x565b5d))throw runtimeInaccessibleAppError(_0x565b5d,'\x22'+_0x349cc4+'\x22');}if(!_0x44419e&&!_0x3258e9&&_0xff83c7['defaultApp']!==_0x349cc4){const _0x4e557b=[..._0x499d71?.[_0x4d142b(0x1ba)]['map'](_0xdca81a=>_0xdca81a[_0x4d142b(0x1cf)])??[]],_0x244d66=_0x4e557b[_0x4d142b(0x1ea)]===0x0?_0x4d142b(0x1d1)+CLI_BIN_NAME+'\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.'+_0x349cc4+_0x4d142b(0x1b3):_0x4d142b(0x1f1)+Array[_0x4d142b(0x1ac)](new Set(_0x4e557b))[_0x4d142b(0x1f4)](',\x20')+'.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.';throw CliErrors[_0x4d142b(0x1c2)]('App\x20\x22'+_0x349cc4+_0x4d142b(0x1b8),_0x244d66);}const _0x25cd35=_0x3329ae[_0x4d142b(0x1f6)](_0x4d142b(0x1b6));let _0x4dbf85;if(_0x25cd35)_0x4dbf85={'global':!![]};else{const {isInProject:_0x62f7ff}=await import(_0x4d142b(0x1bb)),_0x346a18=_0x62f7ff();_0x4dbf85=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':'project-default','inProject':_0x346a18}));}const _0x10b485=readConfig(_0x4dbf85);return _0x10b485[_0x4d142b(0x1be)]=_0x349cc4,writeConfig(_0x10b485,_0x4dbf85),{'ok':!![],'message':_0x4d142b(0x1ad)+_0x349cc4+'\x22'+scopeLabel(_0x4dbf85)+'.'};}};function warnDeprecatedAppCommand(_0x400b5c,_0x4e61fc){const _0x3ab2a2=a3_0x132a24;console[_0x3ab2a2(0x1d8)](CLI_BIN_NAME+'\x20app\x20'+_0x400b5c+_0x3ab2a2(0x1e1)+_0x4e61fc+_0x3ab2a2(0x1ec));}const importDef={'service':'app','command':a3_0x132a24(0x1f5),'description':'Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x1edcd8){return await runInitImport(collectFlags(_0x1edcd8,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
1
+ const a3_0x3bcc9a=a3_0x260f;(function(_0x483314,_0x1b0bb3){const _0x2cfba2=a3_0x260f,_0x35f01e=_0x483314();while(!![]){try{const _0x156e24=-parseInt(_0x2cfba2(0xf5))/0x1+parseInt(_0x2cfba2(0xee))/0x2*(-parseInt(_0x2cfba2(0xfb))/0x3)+parseInt(_0x2cfba2(0x133))/0x4+-parseInt(_0x2cfba2(0x100))/0x5*(parseInt(_0x2cfba2(0xdc))/0x6)+parseInt(_0x2cfba2(0x129))/0x7+parseInt(_0x2cfba2(0x121))/0x8+-parseInt(_0x2cfba2(0x12c))/0x9*(-parseInt(_0x2cfba2(0x12b))/0xa);if(_0x156e24===_0x1b0bb3)break;else _0x35f01e['push'](_0x35f01e['shift']());}catch(_0x1674d4){_0x35f01e['push'](_0x35f01e['shift']());}}}(a3_0x4baa,0x2a58f));import{CliErrors}from'../../errors.js';function a3_0x260f(_0x86d359,_0x5ee699){_0x86d359=_0x86d359-0xda;const _0x4baa98=a3_0x4baa();let _0x260f18=_0x4baa98[_0x86d359];return _0x260f18;}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';function a3_0x4baa(){const _0x1d160b=['2628360WPfUdO','config','push','projectPath','fetchedAt','Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','init','items','727622VpYmCB','cache','1470AsiXJG','3357WemkzG','validation','No\x20cached\x20apps\x20found.','trim','\x20app\x20use\x20<name>\x20[--global]','from','map','336624IMUXKv','Available\x20remote\x20apps:\x20','Use\x20`','../../commands/app/remote-source.js','appcode','local','462GAgepF','globalPath','name','cachePath','bool','\x20app(s)\x20for\x20env=\x22','project-default','../../context.js','Default\x20app\x20candidate\x20set\x20to\x20\x22','appPublishStatus','accessKey','appName','\x20cached\x20app(s)\x20for\x20env=\x22','Missing\x20app\x20name.','type','`\x20instead.','enableI18n','length','19302ZKHdAT','find','no-cache','App\x20\x22','envName','Filter\x20by\x20environment\x20(default:\x20current\x20env)','\x20workspace\x20use\x20--app\x20<name>\x20[--env\x20daily]','295895IxIMTV','global','read','Deprecated:\x20use\x20workspace\x20init\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','join','isCurrent','3YqwfbN','filter','appOwnerName','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','nonInteractive','6005OiYoKH','write','appCode','Deprecated:\x20use\x20workspace\x20use\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','env','mergedCli','entries','isArray','warn','Read\x20from\x20local\x20cache\x20only','source','langs','\x20is\x20deprecated.\x20Use\x20`','No\x20apps\x20found\x20on\x20the\x20platform.','boolean','Remote\x20app\x20name\x20to\x20activate','Loaded\x20','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','production','i18nInfo','\x20workspace\x20init\x20--appcode\x20<code>\x20[--env\x20daily]','args','defaultApp','string','include-unpublished','str','use','Usage:\x20','raw','\x22\x20not\x20found.','app','remote'];a3_0x4baa=function(){return _0x1d160b;};return a3_0x4baa();}const GLOBAL_FLAG={'name':'global','type':'boolean','description':'Use\x20global\x20config\x20scope','default':![]};function collectFlags(_0x589bd5,_0xf7765b){const _0x380048=a3_0x260f,_0x3158ae={};for(const _0x5ad999 of _0xf7765b){const _0x549c13=_0x5ad999[_0x380048(0xea)]===_0x380048(0x10f)?_0x589bd5[_0x380048(0xe0)](_0x5ad999[_0x380048(0xde)]):_0x589bd5['str'](_0x5ad999[_0x380048(0xde)]);if(_0x549c13!==''&&_0x549c13!==![])_0x3158ae[_0x5ad999[_0x380048(0xde)]]=_0x549c13;}if(_0x589bd5[_0x380048(0xff)])_0x3158ae['nonInteractive']=!![];return _0x3158ae;}function normalizeLanguages(_0xc0f5aa){const _0x26f4c3=a3_0x260f;if(!Array[_0x26f4c3(0x108)](_0xc0f5aa))return[];return _0xc0f5aa['filter'](_0x2ce150=>typeof _0x2ce150===_0x26f4c3(0x118))['map'](_0x3c9a86=>_0x3c9a86[_0x26f4c3(0x12f)]())[_0x26f4c3(0xfc)](Boolean);}function buildRemoteAppI18nFields(_0x420e5e){const _0x1253ac=a3_0x260f,_0x43f2f4=normalizeLanguages(_0x420e5e['i18nInfo']?.[_0x1253ac(0x10c)]);return{'enableI18n':typeof _0x420e5e[_0x1253ac(0xec)]===_0x1253ac(0x10f)?_0x420e5e[_0x1253ac(0xec)]:null,'languages':_0x43f2f4,'i18nInfo':_0x420e5e[_0x1253ac(0x114)]?{..._0x420e5e[_0x1253ac(0x114)],'langs':_0x43f2f4[_0x1253ac(0xed)]?_0x43f2f4:null}:null};}const initDef={'service':a3_0x3bcc9a(0x11f),'command':a3_0x3bcc9a(0x127),'description':a3_0x3bcc9a(0xf8),'risk':a3_0x3bcc9a(0x101),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x1c3fb3){const _0x5af2d3=a3_0x3bcc9a;return warnDeprecatedAppCommand(_0x5af2d3(0x127),CLI_BIN_NAME+_0x5af2d3(0x115)),await runInit(collectFlags(_0x1c3fb3,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a3_0x3bcc9a(0x11f),'command':'list','description':a3_0x3bcc9a(0x112),'risk':a3_0x3bcc9a(0xf7),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a3_0x3bcc9a(0x105),'type':a3_0x3bcc9a(0x118),'description':a3_0x3bcc9a(0xf3),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x3bcc9a(0xdb),'type':a3_0x3bcc9a(0x10f),'description':'Read\x20app\x20list\x20from\x20local\x20cache\x20only','default':![]},{'name':a3_0x3bcc9a(0xf0),'type':a3_0x3bcc9a(0x10f),'description':a3_0x3bcc9a(0xfe),'default':![]},{'name':a3_0x3bcc9a(0x119),'type':a3_0x3bcc9a(0x10f),'description':'Include\x20unpublished\x20apps\x20for\x20diagnostics','default':![]}],async 'execute'(_0x1bfeb0){const _0x443ae4=a3_0x3bcc9a,_0x217de2=_0x1bfeb0['str'](_0x443ae4(0x105))||_0x1bfeb0[_0x443ae4(0xf2)]||getEnv()||_0x443ae4(0x113),_0xfbfdd6=_0x1bfeb0[_0x443ae4(0xe0)](_0x443ae4(0xdb)),_0x3730ee=_0x1bfeb0[_0x443ae4(0xe0)](_0x443ae4(0xf0)),_0x1a7985=_0x1bfeb0[_0x443ae4(0xe0)](_0x443ae4(0x119)),{readRawConfigWithLayers:_0x2058d7,resolveDefaultAppSource:_0x4d6cf7,getLocalAppAliases:_0x3e3635}=await import(_0x443ae4(0xe3)),{getRemoteAppList:_0x10f2c9}=await import('../../commands/app/remote-source.js'),{config:_0x48e014,layers:_0x3591c9}=_0x2058d7(),_0x3d23b7=_0x4d6cf7(_0x3591c9),{defaultApp:_0x1a4138}=_0x48e014,_0x241bbf=await _0x10f2c9({'env':_0x217de2,'accessKey':_0x1bfeb0[_0x443ae4(0xe6)],'localOnly':_0xfbfdd6,'noCache':_0x3730ee}),_0x1195e2=_0x1a7985?_0x241bbf[_0x443ae4(0x128)]:filterRuntimeAccessibleApps(_0x241bbf[_0x443ae4(0x128)]),_0x397b3d=_0x241bbf[_0x443ae4(0x128)][_0x443ae4(0xed)]-_0x1195e2[_0x443ae4(0xed)],_0x537e23=_0x1195e2[_0x443ae4(0x132)](_0xf45d4c=>{const _0x226e66=_0x443ae4;return{'name':_0xf45d4c[_0x226e66(0xe7)],'appcode':_0xf45d4c['appCode'],'named':!![],'definedIn':_0x226e66(0x120),'isDefault':_0xf45d4c[_0x226e66(0xe7)]===_0x1a4138,...buildAppProfileListFields(_0x217de2),...buildRemoteAppI18nFields(_0xf45d4c),'source':_0x241bbf[_0x226e66(0x10b)],'owner':_0xf45d4c[_0x226e66(0xfd)]??null,'status':_0xf45d4c[_0x226e66(0xe5)]??null,'cachedAt':_0x241bbf[_0x226e66(0x125)]};}),_0xca8dac=_0x3e3635(_0x48e014);let _0x4a6bc3=0x0;for(const [_0x4573ee,_0x11e8a9]of Object[_0x443ae4(0x107)](_0xca8dac)){const _0x83a3a3=typeof _0x11e8a9[_0x443ae4(0xda)]===_0x443ae4(0x118)?_0x11e8a9['appcode'][_0x443ae4(0x12f)]():'';if(!_0x83a3a3)continue;const _0x4153c3=findAppByCode(_0x241bbf[_0x443ae4(0x128)],_0x83a3a3);if(!_0x1a7985&&_0x4153c3&&!isRuntimeAccessibleApp(_0x4153c3))continue;_0x4a6bc3+=0x1,_0x537e23[_0x443ae4(0x123)]({'name':_0x4573ee,'appcode':_0x83a3a3,'named':!![],'definedIn':'local','isDefault':_0x4573ee===_0x1a4138,...buildAppProfileListFields(_0x217de2),'source':_0x443ae4(0x122),'owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x537e23,_0x1bfeb0[_0x443ae4(0x106)]);const _0x331b72=_0x537e23['find'](_0x5297fe=>_0x5297fe[_0x443ae4(0xfa)]===!![]),_0x35d3fa=_0x1a4138??_0x331b72?.[_0x443ae4(0xde)]??null,_0x3869ad={'env':_0x217de2,'source':_0x241bbf[_0x443ae4(0x10b)],'fetchedAt':_0x241bbf['fetchedAt'],'cachePath':_0x241bbf['cachePath'],'globalPath':_0x3591c9[_0x443ae4(0xdd)]??null,'projectPath':_0x3591c9[_0x443ae4(0x124)]??null,'defaultApp':_0x35d3fa,'defaultAppSource':_0x1a4138!=null?_0x3d23b7:null,'localAliasCount':_0x4a6bc3,'remoteTotal':_0x241bbf[_0x443ae4(0x128)][_0x443ae4(0xed)],'hiddenUnpublishedCount':_0x397b3d,'includeUnpublished':_0x1a7985};if(_0x537e23[_0x443ae4(0xed)]===0x0)return{'ok':!![],'data':{'items':_0x537e23,'meta':_0x3869ad},'message':_0x241bbf[_0x443ae4(0x10b)]===_0x443ae4(0x12a)?_0x443ae4(0x12e):_0x443ae4(0x10e)};return{'ok':!![],'data':{'items':_0x537e23,'meta':_0x3869ad}};}},pullDef={'service':a3_0x3bcc9a(0x11f),'command':'pull','description':a3_0x3bcc9a(0x104),'risk':a3_0x3bcc9a(0x101),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a3_0x3bcc9a(0x105),'type':a3_0x3bcc9a(0x118),'description':'Target\x20environment\x20(default:\x20current\x20env)','enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x3bcc9a(0xdb),'type':a3_0x3bcc9a(0x10f),'description':a3_0x3bcc9a(0x10a),'default':![]},{'name':a3_0x3bcc9a(0xf0),'type':a3_0x3bcc9a(0x10f),'description':a3_0x3bcc9a(0xfe),'default':![]}],async 'execute'(_0x37f447){const _0x31169e=a3_0x3bcc9a,_0x59b504=_0x37f447['str'](_0x31169e(0x105))||_0x37f447[_0x31169e(0xf2)]||getEnv()||_0x31169e(0x113),_0x25967f=_0x37f447[_0x31169e(0xe0)](_0x31169e(0xdb)),_0x5a5163=_0x37f447[_0x31169e(0xe0)](_0x31169e(0xf0)),{getRemoteAppList:_0x26ad79}=await import(_0x31169e(0x136)),_0x265d72=await _0x26ad79({'env':_0x59b504,'accessKey':_0x37f447[_0x31169e(0xe6)],'localOnly':_0x25967f,'noCache':_0x5a5163});return{'ok':!![],'data':{'total':_0x265d72[_0x31169e(0x128)][_0x31169e(0xed)],'env':_0x59b504,'source':_0x265d72['source'],'fetchedAt':_0x265d72[_0x31169e(0x125)],'cachePath':_0x265d72[_0x31169e(0xdf)]},'message':_0x265d72['source']===_0x31169e(0x12a)?_0x31169e(0x111)+_0x265d72[_0x31169e(0x128)][_0x31169e(0xed)]+_0x31169e(0xe8)+_0x59b504+'\x22.':'Refreshed\x20app\x20cache\x20with\x20'+_0x265d72[_0x31169e(0x128)]['length']+_0x31169e(0xe1)+_0x59b504+'\x22.'};}},useDef={'service':a3_0x3bcc9a(0x11f),'command':a3_0x3bcc9a(0x11b),'description':a3_0x3bcc9a(0x103),'risk':a3_0x3bcc9a(0x101),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a3_0x3bcc9a(0xde),'description':a3_0x3bcc9a(0x110),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x245f50){const _0x4e956a=a3_0x3bcc9a;if(!_0x245f50['args'][0x0])throw CliErrors[_0x4e956a(0x12d)](_0x4e956a(0xe9),_0x4e956a(0x11c)+CLI_BIN_NAME+_0x4e956a(0x130));},async 'execute'(_0x522d70){const _0x2edbb9=a3_0x3bcc9a;warnDeprecatedAppCommand(_0x2edbb9(0x11b),CLI_BIN_NAME+_0x2edbb9(0xf4));const _0x2b8727=_0x522d70[_0x2edbb9(0x116)][0x0];if(!_0x2b8727)throw CliErrors[_0x2edbb9(0x12d)](_0x2edbb9(0xe9),'Usage:\x20'+CLI_BIN_NAME+_0x2edbb9(0x130));const {buildConfigFromFlags:_0x121098,resolveLocalAppAliasCode:_0x5bd40a}=await import('../../context.js'),{readCachedAppList:_0x2d712b}=await import('../../commands/app/cache.js'),_0x22d667=_0x522d70[_0x2edbb9(0x11a)]('env'),_0x5095ad=_0x121098(_0x22d667?{'env':_0x22d667}:{}),_0x1b793f=_0x2d712b(_0x5095ad[_0x2edbb9(0x105)],_0x5095ad[_0x2edbb9(0xe6)]),_0x219f28=_0x1b793f?.[_0x2edbb9(0x128)][_0x2edbb9(0xef)](_0x3952ba=>_0x3952ba[_0x2edbb9(0xe7)]===_0x2b8727),_0xe47df7=_0x5bd40a(_0x5095ad[_0x2edbb9(0x11d)]??{},_0x2b8727);if(_0x219f28&&!isRuntimeAccessibleApp(_0x219f28))throw runtimeInaccessibleAppError(_0x219f28,'\x22'+_0x2b8727+'\x22');if(_0xe47df7){const _0x587711=_0x1b793f?.[_0x2edbb9(0x128)][_0x2edbb9(0xef)](_0x132514=>_0x132514[_0x2edbb9(0x102)]?.[_0x2edbb9(0x12f)]()===_0xe47df7);if(_0x587711&&!isRuntimeAccessibleApp(_0x587711))throw runtimeInaccessibleAppError(_0x587711,'\x22'+_0x2b8727+'\x22');}if(!_0x219f28&&!_0xe47df7&&_0x5095ad[_0x2edbb9(0x117)]!==_0x2b8727){const _0x63e9af=[..._0x1b793f?.[_0x2edbb9(0x128)][_0x2edbb9(0x132)](_0x4cf46e=>_0x4cf46e[_0x2edbb9(0xe7)])??[]],_0xa28ed9=_0x63e9af[_0x2edbb9(0xed)]===0x0?_0x2edbb9(0x135)+CLI_BIN_NAME+'\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.'+_0x2b8727+'.appcode\x20to\x20.lovrabet.json.':_0x2edbb9(0x134)+Array[_0x2edbb9(0x131)](new Set(_0x63e9af))[_0x2edbb9(0xf9)](',\x20')+'.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.';throw CliErrors[_0x2edbb9(0x12d)](_0x2edbb9(0xf1)+_0x2b8727+_0x2edbb9(0x11e),_0xa28ed9);}const _0x54ef03=_0x522d70[_0x2edbb9(0xe0)](_0x2edbb9(0xf6));let _0x4ade7d;if(_0x54ef03)_0x4ade7d={'global':!![]};else{const {isInProject:_0x3e16ea}=await import(_0x2edbb9(0xe3)),_0xbc7707=_0x3e16ea();_0x4ade7d=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0x2edbb9(0xe2),'inProject':_0xbc7707}));}const _0x290767=readConfig(_0x4ade7d);return _0x290767[_0x2edbb9(0x117)]=_0x2b8727,writeConfig(_0x290767,_0x4ade7d),{'ok':!![],'message':_0x2edbb9(0xe4)+_0x2b8727+'\x22'+scopeLabel(_0x4ade7d)+'.'};}};function warnDeprecatedAppCommand(_0x35cb81,_0x493566){const _0x1fa607=a3_0x3bcc9a;console[_0x1fa607(0x109)](CLI_BIN_NAME+'\x20app\x20'+_0x35cb81+_0x1fa607(0x10d)+_0x493566+_0x1fa607(0xeb));}const importDef={'service':a3_0x3bcc9a(0x11f),'command':'import','description':a3_0x3bcc9a(0x126),'risk':a3_0x3bcc9a(0x101),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x1357f7){return await runInitImport(collectFlags(_0x1357f7,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
@@ -1 +1 @@
1
- (function(_0x4d877e,_0x496b03){const _0x5924b4=a4_0x478e,_0x41c568=_0x4d877e();while(!![]){try{const _0x1e7ba2=-parseInt(_0x5924b4(0x10f))/0x1*(parseInt(_0x5924b4(0x109))/0x2)+parseInt(_0x5924b4(0x106))/0x3+-parseInt(_0x5924b4(0x100))/0x4+-parseInt(_0x5924b4(0x108))/0x5+parseInt(_0x5924b4(0x110))/0x6*(-parseInt(_0x5924b4(0x104))/0x7)+-parseInt(_0x5924b4(0x103))/0x8*(-parseInt(_0x5924b4(0x102))/0x9)+parseInt(_0x5924b4(0x10a))/0xa;if(_0x1e7ba2===_0x496b03)break;else _0x41c568['push'](_0x41c568['shift']());}catch(_0x28c35e){_0x41c568['push'](_0x41c568['shift']());}}}(a4_0x45f6,0x619a4));import{CLI_BIN_NAME}from'../../constant/cli.js';import{RUNTIME_ACCESSIBLE_APP_STATUS}from'../../constant/app.js';import{CliErrors}from'../../errors.js';export function normalizeAppPublishStatus(_0x364904){const _0x4c872b=a4_0x478e;if(typeof _0x364904!=='string')return null;const _0x419b8f=_0x364904[_0x4c872b(0x112)]();return _0x419b8f?_0x419b8f[_0x4c872b(0x105)]():null;}function a4_0x478e(_0x2c7e4f,_0x327feb){_0x2c7e4f=_0x2c7e4f-0x100;const _0x45f646=a4_0x45f6();let _0x478e46=_0x45f646[_0x2c7e4f];return _0x478e46;}export function isRuntimeAccessibleApp(_0x567700){const _0x17479d=a4_0x478e;return normalizeAppPublishStatus(_0x567700[_0x17479d(0x113)])===RUNTIME_ACCESSIBLE_APP_STATUS;}export function filterRuntimeAccessibleApps(_0x4902e7){return _0x4902e7['filter'](isRuntimeAccessibleApp);}function a4_0x45f6(){const _0x4b8b3a=['trim','appPublishStatus','1253368LpFeNj','find','81epIjCe','344408jAvHPe','7sYuguZ','toUpperCase','1644000JLcvpS','appCode','1928270gkuukV','8huuPPr','9074320fbignh','UNKNOWN','\x20dataset/data/sql/bff\x20commands,\x20or\x20choose\x20a\x20published\x20app.','App\x20','Current\x20status:\x20','160211PgTzLf','619626ZRFAgr','appName'];a4_0x45f6=function(){return _0x4b8b3a;};return a4_0x45f6();}export function findAppByName(_0x15753f,_0x1f485d){const _0x1b8959=a4_0x478e;return _0x15753f[_0x1b8959(0x101)](_0x3f2c8a=>_0x3f2c8a[_0x1b8959(0x111)]===_0x1f485d);}export function findAppByCode(_0x476d24,_0x9e6805){const _0x528b62=a4_0x478e,_0x2e0b18=_0x9e6805[_0x528b62(0x112)]();if(!_0x2e0b18)return undefined;return _0x476d24['find'](_0x1e78d1=>_0x1e78d1[_0x528b62(0x107)]?.[_0x528b62(0x112)]()===_0x2e0b18);}export function runtimeInaccessibleAppError(_0x43aead,_0x4a6be9){const _0x1714b7=a4_0x478e,_0x1f4ac8=normalizeAppPublishStatus(_0x43aead[_0x1714b7(0x113)])??_0x1714b7(0x10b);return CliErrors['validation'](_0x1714b7(0x10d)+_0x4a6be9+'\x20is\x20not\x20available\x20for\x20runtime\x20AI\x20access.',_0x1714b7(0x10e)+_0x1f4ac8+'.\x20Publish\x20the\x20app\x20before\x20using\x20'+CLI_BIN_NAME+_0x1714b7(0x10c));}
1
+ (function(_0xaa7df3,_0x5e9e56){const _0x22ad2c=a4_0x5178,_0x1e469f=_0xaa7df3();while(!![]){try{const _0x532e1f=parseInt(_0x22ad2c(0x1ea))/0x1*(parseInt(_0x22ad2c(0x1f0))/0x2)+-parseInt(_0x22ad2c(0x1de))/0x3*(-parseInt(_0x22ad2c(0x1e0))/0x4)+-parseInt(_0x22ad2c(0x1ed))/0x5*(parseInt(_0x22ad2c(0x1e5))/0x6)+-parseInt(_0x22ad2c(0x1da))/0x7*(-parseInt(_0x22ad2c(0x1db))/0x8)+parseInt(_0x22ad2c(0x1ee))/0x9+-parseInt(_0x22ad2c(0x1e4))/0xa+-parseInt(_0x22ad2c(0x1e2))/0xb;if(_0x532e1f===_0x5e9e56)break;else _0x1e469f['push'](_0x1e469f['shift']());}catch(_0x448066){_0x1e469f['push'](_0x1e469f['shift']());}}}(a4_0x5856,0x37689));function a4_0x5178(_0x288f1b,_0x1be01e){_0x288f1b=_0x288f1b-0x1da;const _0x5856c7=a4_0x5856();let _0x517850=_0x5856c7[_0x288f1b];return _0x517850;}import{CLI_BIN_NAME}from'../../constant/cli.js';function a4_0x5856(){const _0x3bfc1e=['find','toUpperCase','5FEWKJS','2550726VzVXhp','\x20dataset/data/sql/bff\x20commands,\x20or\x20choose\x20a\x20published\x20app.','14324aYMmYV','2617300SyFRrk','8lUOQfZ','UNKNOWN','appCode','3DWbGTE','filter','1002836LiAtdt','\x20is\x20not\x20available\x20for\x20runtime\x20AI\x20access.','6358572dqllXD','.\x20Publish\x20the\x20app\x20before\x20using\x20','2375800fkCzcd','309900UQDuvH','validation','appPublishStatus','trim','App\x20','26fXUXwa'];a4_0x5856=function(){return _0x3bfc1e;};return a4_0x5856();}import{RUNTIME_ACCESSIBLE_APP_STATUS}from'../../constant/app.js';import{CliErrors}from'../../errors.js';export function normalizeAppPublishStatus(_0x4799cf){const _0xf3516a=a4_0x5178;if(typeof _0x4799cf!=='string')return null;const _0x142efd=_0x4799cf[_0xf3516a(0x1e8)]();return _0x142efd?_0x142efd[_0xf3516a(0x1ec)]():null;}export function isRuntimeAccessibleApp(_0x545ff4){return normalizeAppPublishStatus(_0x545ff4['appPublishStatus'])===RUNTIME_ACCESSIBLE_APP_STATUS;}export function filterRuntimeAccessibleApps(_0xb2d357){const _0x167a79=a4_0x5178;return _0xb2d357[_0x167a79(0x1df)](isRuntimeAccessibleApp);}export function findAppByName(_0x4d731e,_0x1dc47c){const _0x155953=a4_0x5178;return _0x4d731e[_0x155953(0x1eb)](_0x4f96ad=>_0x4f96ad['appName']===_0x1dc47c);}export function findAppByCode(_0x2c98e8,_0x2058c0){const _0x287f75=a4_0x5178,_0x1a1307=_0x2058c0[_0x287f75(0x1e8)]();if(!_0x1a1307)return undefined;return _0x2c98e8['find'](_0x2aff67=>_0x2aff67[_0x287f75(0x1dd)]?.[_0x287f75(0x1e8)]()===_0x1a1307);}export function runtimeInaccessibleAppError(_0x562be7,_0x321563){const _0x9f7421=a4_0x5178,_0x5aacd7=normalizeAppPublishStatus(_0x562be7[_0x9f7421(0x1e7)])??_0x9f7421(0x1dc);return CliErrors[_0x9f7421(0x1e6)](_0x9f7421(0x1e9)+_0x321563+_0x9f7421(0x1e1),'Current\x20status:\x20'+_0x5aacd7+_0x9f7421(0x1e3)+CLI_BIN_NAME+_0x9f7421(0x1ef));}
@@ -1 +1 @@
1
- (function(_0x4eecb9,_0x589415){const _0x420553=a5_0x30ed,_0x167b83=_0x4eecb9();while(!![]){try{const _0x21674f=-parseInt(_0x420553(0x77))/0x1*(parseInt(_0x420553(0x72))/0x2)+parseInt(_0x420553(0x70))/0x3+parseInt(_0x420553(0x71))/0x4*(parseInt(_0x420553(0x74))/0x5)+-parseInt(_0x420553(0x75))/0x6+parseInt(_0x420553(0x6b))/0x7+-parseInt(_0x420553(0x76))/0x8+parseInt(_0x420553(0x73))/0x9*(-parseInt(_0x420553(0x6e))/0xa);if(_0x21674f===_0x589415)break;else _0x167b83['push'](_0x167b83['shift']());}catch(_0x31532d){_0x167b83['push'](_0x167b83['shift']());}}}(a5_0x1f95,0xd795f));function a5_0x1f95(){const _0x825473=['2131866xnQzto','4jdHdLv','174830gHUfvc','1972575yNZwad','6970805tqCGJe','1824684lLpyPK','8317760EGofPC','6GjRUpq','errorCode','parse','6060285PSapgW','data','utf-8','10afhrUh','Mock\x20API\x20error:\x20'];a5_0x1f95=function(){return _0x825473;};return a5_0x1f95();}function a5_0x30ed(_0x50cee9,_0x24db49){_0x50cee9=_0x50cee9-0x69;const _0x1f95ae=a5_0x1f95();let _0x30edb7=_0x1f95ae[_0x50cee9];return _0x30edb7;}import{fileURLToPath}from'url';import{dirname,join}from'path';import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0x279095=a5_0x30ed,_0x177b1d=join(__dirname,'../../../mock/app-list.json'),_0x4ed866=readFileSync(_0x177b1d,_0x279095(0x6d));return JSON[_0x279095(0x6a)](_0x4ed866);}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0xe6c60a=a5_0x30ed,_0x2ce250=getMockAppList();if(!_0x2ce250['success'])throw new Error(_0xe6c60a(0x6f)+_0x2ce250['errorMsg']+'\x20('+_0x2ce250[_0xe6c60a(0x69)]+')');return _0x2ce250[_0xe6c60a(0x6c)]['tableData'];}
1
+ (function(_0x5cd7a7,_0x30111a){const _0x1012f0=a5_0x3a5d,_0xe38671=_0x5cd7a7();while(!![]){try{const _0x5f564b=-parseInt(_0x1012f0(0xfd))/0x1+parseInt(_0x1012f0(0x103))/0x2+parseInt(_0x1012f0(0xfe))/0x3*(parseInt(_0x1012f0(0xfb))/0x4)+-parseInt(_0x1012f0(0x105))/0x5+parseInt(_0x1012f0(0x106))/0x6*(parseInt(_0x1012f0(0x101))/0x7)+-parseInt(_0x1012f0(0xff))/0x8+-parseInt(_0x1012f0(0x104))/0x9*(parseInt(_0x1012f0(0x102))/0xa);if(_0x5f564b===_0x30111a)break;else _0xe38671['push'](_0xe38671['shift']());}catch(_0x1cccb1){_0xe38671['push'](_0xe38671['shift']());}}}(a5_0x489d,0x83912));import{fileURLToPath}from'url';import{dirname,join}from'path';import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0xc42646=a5_0x3a5d,_0xa936bb=join(__dirname,_0xc42646(0x100)),_0x4d2163=readFileSync(_0xa936bb,_0xc42646(0xfc));return JSON['parse'](_0x4d2163);}let _cached=null;function a5_0x489d(){const _0x413db1=['3530926CelxAh','23410ussqjN','1517554sKFhRC','1395SvKaql','824570Lnrxmc','12WBURBG','Mock\x20API\x20error:\x20','tableData','data','6980gxoEJM','utf-8','46699UchQTd','501vLuCqi','7565296wGZqxs','../../../mock/app-list.json'];a5_0x489d=function(){return _0x413db1;};return a5_0x489d();}function a5_0x3a5d(_0x49f9ee,_0x5cd513){_0x49f9ee=_0x49f9ee-0xfb;const _0x489dd5=a5_0x489d();let _0x3a5dc7=_0x489dd5[_0x49f9ee];return _0x3a5dc7;}export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x5c4798=a5_0x3a5d,_0x3242f9=getMockAppList();if(!_0x3242f9['success'])throw new Error(_0x5c4798(0x107)+_0x3242f9['errorMsg']+'\x20('+_0x3242f9['errorCode']+')');return _0x3242f9[_0x5c4798(0x109)][_0x5c4798(0x108)];}
@@ -1 +1 @@
1
- (function(_0x53f731,_0x1ff799){const _0x1cf37f=a6_0x2da0,_0x219f66=_0x53f731();while(!![]){try{const _0x5cdf53=-parseInt(_0x1cf37f(0xaf))/0x1*(parseInt(_0x1cf37f(0xac))/0x2)+parseInt(_0x1cf37f(0xb3))/0x3+parseInt(_0x1cf37f(0xb2))/0x4*(parseInt(_0x1cf37f(0xb0))/0x5)+-parseInt(_0x1cf37f(0xb5))/0x6+parseInt(_0x1cf37f(0xae))/0x7*(parseInt(_0x1cf37f(0xa9))/0x8)+parseInt(_0x1cf37f(0xa4))/0x9*(parseInt(_0x1cf37f(0xa8))/0xa)+-parseInt(_0x1cf37f(0xa5))/0xb*(parseInt(_0x1cf37f(0xb1))/0xc);if(_0x5cdf53===_0x1ff799)break;else _0x219f66['push'](_0x219f66['shift']());}catch(_0x16dd9d){_0x219f66['push'](_0x219f66['shift']());}}}(a6_0xa72f,0x32dff));import{getMyApps}from'../../core/api-client.js';import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';import{productEnv}from'../../constant/product.js';export function shouldUseMockRemoteApps(){const _0x38c13c=a6_0x2da0,_0x45ac04=(productEnv(_0x38c13c(0xa6))||'')[_0x38c13c(0xab)]()['toLowerCase']();return _0x45ac04===_0x38c13c(0xa7);}function a6_0x2da0(_0x2f8a74,_0x4ca61c){_0x2f8a74=_0x2f8a74-0xa4;const _0xa72f10=a6_0xa72f();let _0x2da017=_0xa72f10[_0x2f8a74];return _0x2da017;}function a6_0xa72f(){const _0x53fd70=['cache','51399xxvkcU','2350942YjtjwV','APP_LIST_SOURCE','mock','590JUWEtp','293816miSHrm','fetchedAt','trim','2xqGFPR','items','14kmpHQb','47201cgsiIv','115375EmAWzP','36KmOAtd','64nUTRTd','944025PakfZA','remote','1185168cnhcta'];a6_0xa72f=function(){return _0x53fd70;};return a6_0xa72f();}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x200755){const _0x2814a0=a6_0x2da0,{env:_0x194740,accessKey:_0x5dea2f,localOnly:localOnly=![],noCache:noCache=![]}=_0x200755,_0x443b78=readCachedAppList(_0x194740,_0x5dea2f),_0x342657=_0x5dea2f?.[_0x2814a0(0xab)]()?getAppCacheFilePath(_0x194740,_0x5dea2f):null;if(localOnly)return{'items':_0x443b78?.[_0x2814a0(0xad)]??[],'source':_0x2814a0(0xb6),'fetchedAt':_0x443b78?.[_0x2814a0(0xaa)]??null,'cachePath':_0x342657};try{const _0x276f7d=await getRemoteAppItems(),_0x322d32=shouldUseMockRemoteApps()?_0x2814a0(0xa7):_0x2814a0(0xb4),_0x65b624=new Date()['toISOString'](),_0x4fdf12=_0x5dea2f?.[_0x2814a0(0xab)]()?writeCachedAppList(_0x194740,_0x5dea2f,{'env':_0x194740,'fetchedAt':_0x65b624,'source':_0x322d32,'items':_0x276f7d}):null;return{'items':_0x276f7d,'source':_0x322d32,'fetchedAt':_0x65b624,'cachePath':_0x4fdf12};}catch(_0x53f71f){if(!noCache&&_0x443b78)return{'items':_0x443b78['items'],'source':_0x2814a0(0xb6),'fetchedAt':_0x443b78['fetchedAt'],'cachePath':_0x342657};throw _0x53f71f;}}
1
+ function a6_0x3812(){const _0x32f6ba=['48838QfCgCq','toLowerCase','543641gGIuTg','APP_LIST_SOURCE','524490nsOelJ','trim','fetchedAt','mock','2061624mvpdhJ','remote','279531ZnyqRK','18rZKzar','items','cache','708380UOgXig','134158gJaZUO'];a6_0x3812=function(){return _0x32f6ba;};return a6_0x3812();}(function(_0x111eef,_0x10a029){const _0x43b0bb=a6_0xb0dd,_0x1d5b5b=_0x111eef();while(!![]){try{const _0x1ee366=-parseInt(_0x43b0bb(0x99))/0x1+-parseInt(_0x43b0bb(0x98))/0x2+parseInt(_0x43b0bb(0xa3))/0x3+-parseInt(_0x43b0bb(0x97))/0x4+-parseInt(_0x43b0bb(0x9d))/0x5+-parseInt(_0x43b0bb(0x94))/0x6*(-parseInt(_0x43b0bb(0x9b))/0x7)+parseInt(_0x43b0bb(0xa1))/0x8;if(_0x1ee366===_0x10a029)break;else _0x1d5b5b['push'](_0x1d5b5b['shift']());}catch(_0x3698c8){_0x1d5b5b['push'](_0x1d5b5b['shift']());}}}(a6_0x3812,0x2d667));import{getMyApps}from'../../core/api-client.js';import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';import{productEnv}from'../../constant/product.js';export function shouldUseMockRemoteApps(){const _0x5dd861=a6_0xb0dd,_0x4ab4c7=(productEnv(_0x5dd861(0x9c))||'')[_0x5dd861(0x9e)]()[_0x5dd861(0x9a)]();return _0x4ab4c7===_0x5dd861(0xa0);}function a6_0xb0dd(_0x272626,_0x2f78d5){_0x272626=_0x272626-0x94;const _0x3812c5=a6_0x3812();let _0xb0dd2f=_0x3812c5[_0x272626];return _0xb0dd2f;}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0xc36939){const _0x4d0d3e=a6_0xb0dd,{env:_0x1b45ed,accessKey:_0x4b3e1a,localOnly:localOnly=![],noCache:noCache=![]}=_0xc36939,_0x2bf4d9=readCachedAppList(_0x1b45ed,_0x4b3e1a),_0x1c4f34=_0x4b3e1a?.[_0x4d0d3e(0x9e)]()?getAppCacheFilePath(_0x1b45ed,_0x4b3e1a):null;if(localOnly)return{'items':_0x2bf4d9?.[_0x4d0d3e(0x95)]??[],'source':_0x4d0d3e(0x96),'fetchedAt':_0x2bf4d9?.['fetchedAt']??null,'cachePath':_0x1c4f34};try{const _0xa15b52=await getRemoteAppItems(),_0x431d7d=shouldUseMockRemoteApps()?_0x4d0d3e(0xa0):_0x4d0d3e(0xa2),_0x218b5f=new Date()['toISOString'](),_0x5a43ff=_0x4b3e1a?.['trim']()?writeCachedAppList(_0x1b45ed,_0x4b3e1a,{'env':_0x1b45ed,'fetchedAt':_0x218b5f,'source':_0x431d7d,'items':_0xa15b52}):null;return{'items':_0xa15b52,'source':_0x431d7d,'fetchedAt':_0x218b5f,'cachePath':_0x5a43ff};}catch(_0x425702){if(!noCache&&_0x2bf4d9)return{'items':_0x2bf4d9['items'],'source':_0x4d0d3e(0x96),'fetchedAt':_0x2bf4d9[_0x4d0d3e(0x9f)],'cachePath':_0x1c4f34};throw _0x425702;}}
@@ -1 +1 @@
1
- (function(_0x928dd2,_0x40062f){const _0x31bbae=a7_0x4667,_0x8f80cb=_0x928dd2();while(!![]){try{const _0xbf931b=parseInt(_0x31bbae(0x139))/0x1*(parseInt(_0x31bbae(0x13b))/0x2)+-parseInt(_0x31bbae(0x131))/0x3+parseInt(_0x31bbae(0x12f))/0x4*(parseInt(_0x31bbae(0x12e))/0x5)+parseInt(_0x31bbae(0x138))/0x6+-parseInt(_0x31bbae(0x13e))/0x7+-parseInt(_0x31bbae(0x13a))/0x8*(-parseInt(_0x31bbae(0x13d))/0x9)+-parseInt(_0x31bbae(0x130))/0xa;if(_0xbf931b===_0x40062f)break;else _0x8f80cb['push'](_0x8f80cb['shift']());}catch(_0x4468be){_0x8f80cb['push'](_0x8f80cb['shift']());}}}(a7_0x1692,0x8a3a0));function a7_0x4667(_0x4159b5,_0x3d6772){_0x4159b5=_0x4159b5-0x12d;const _0x1692d4=a7_0x1692();let _0x466787=_0x1692d4[_0x4159b5];return _0x466787;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x5819c1,_0x570039){const _0x20b797=a7_0x4667;if(!_0x570039)return;const _0x5224b1=!!(_0x570039['currentApp']??_0x570039[_0x20b797(0x142)]);for(const _0x250adf of _0x5819c1){_0x250adf['isCurrent']=![];}const _0x96b30f=_0x570039[_0x20b797(0x135)]!=null?String(_0x570039[_0x20b797(0x135)])['trim']():'';if(_0x5224b1){const _0x773b8f=_0x570039[_0x20b797(0x140)]??_0x570039[_0x20b797(0x142)];if(_0x773b8f){const _0x40aaaf=_0x5819c1[_0x20b797(0x137)](_0x413a0f=>_0x413a0f[_0x20b797(0x12d)]===!![]&&_0x413a0f[_0x20b797(0x136)]===_0x773b8f&&_0x413a0f['definedIn']===_0x20b797(0x133)),_0x1922dd=_0x40aaaf??_0x5819c1['find'](_0x21a8f5=>_0x21a8f5['named']===!![]&&_0x21a8f5['name']===_0x773b8f);if(_0x1922dd){const _0x1703e3=String(_0x1922dd[_0x20b797(0x13c)]??'')[_0x20b797(0x13f)]();if(!_0x96b30f||_0x1703e3===_0x96b30f){_0x1922dd[_0x20b797(0x134)]=!![];return;}}}if(_0x96b30f){const _0x2048ac=_0x5819c1[_0x20b797(0x137)](_0x1cce25=>String(_0x1cce25[_0x20b797(0x13c)]??'')[_0x20b797(0x13f)]()===_0x96b30f);_0x2048ac&&(_0x2048ac[_0x20b797(0x134)]=!![]);}return;}if(!_0x96b30f)return;for(const _0x3bd0fa of _0x5819c1){String(_0x3bd0fa[_0x20b797(0x13c)]??'')[_0x20b797(0x13f)]()===_0x96b30f&&(_0x3bd0fa[_0x20b797(0x134)]=!![]);}}function a7_0x1692(){const _0x3a3f53=['8yYZfcG','22gAcRsn','appcode','6565239DeLoXb','964509nJEUra','trim','currentApp','global','defaultApp','named','25285YhCyeg','820hCSUHB','17389980KYSDKz','1693764rHmMQO','project','local','isCurrent','appCode','name','find','1882578GzhCOf','84330RIbiaa'];a7_0x1692=function(){return _0x3a3f53;};return a7_0x1692();}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x2d705c){const _0x4d2815=a7_0x4667;return formatScopeLabel(_0x2d705c[_0x4d2815(0x141)]?_0x4d2815(0x141):_0x4d2815(0x132));}
1
+ (function(_0x8fd25a,_0x2add38){const _0x5bd586=a7_0x13f5,_0x4b13be=_0x8fd25a();while(!![]){try{const _0x4fa96c=-parseInt(_0x5bd586(0xeb))/0x1*(-parseInt(_0x5bd586(0xee))/0x2)+-parseInt(_0x5bd586(0xe5))/0x3*(-parseInt(_0x5bd586(0xe9))/0x4)+parseInt(_0x5bd586(0xea))/0x5*(-parseInt(_0x5bd586(0xf6))/0x6)+-parseInt(_0x5bd586(0xec))/0x7+parseInt(_0x5bd586(0xed))/0x8+-parseInt(_0x5bd586(0xe3))/0x9+-parseInt(_0x5bd586(0xe1))/0xa;if(_0x4fa96c===_0x2add38)break;else _0x4b13be['push'](_0x4b13be['shift']());}catch(_0x102e7f){_0x4b13be['push'](_0x4b13be['shift']());}}}(a7_0x41e1,0xe874d));import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x411505,_0x30cf0d){const _0x1c1071=a7_0x13f5;if(!_0x30cf0d)return;const _0x14dd48=!!(_0x30cf0d[_0x1c1071(0xf1)]??_0x30cf0d[_0x1c1071(0xef)]);for(const _0x195fa0 of _0x411505){_0x195fa0[_0x1c1071(0xf5)]=![];}const _0x378e93=_0x30cf0d['appCode']!=null?String(_0x30cf0d[_0x1c1071(0xe6)])[_0x1c1071(0xe8)]():'';if(_0x14dd48){const _0x311374=_0x30cf0d[_0x1c1071(0xf1)]??_0x30cf0d[_0x1c1071(0xef)];if(_0x311374){const _0x51c533=_0x411505[_0x1c1071(0xf4)](_0x536559=>_0x536559[_0x1c1071(0xe7)]===!![]&&_0x536559[_0x1c1071(0xf2)]===_0x311374&&_0x536559[_0x1c1071(0xe4)]===_0x1c1071(0xf0)),_0xe2464=_0x51c533??_0x411505[_0x1c1071(0xf4)](_0x59f8b1=>_0x59f8b1[_0x1c1071(0xe7)]===!![]&&_0x59f8b1[_0x1c1071(0xf2)]===_0x311374);if(_0xe2464){const _0xe62c3d=String(_0xe2464[_0x1c1071(0xf3)]??'')['trim']();if(!_0x378e93||_0xe62c3d===_0x378e93){_0xe2464['isCurrent']=!![];return;}}}if(_0x378e93){const _0x3f4cab=_0x411505[_0x1c1071(0xf4)](_0xb69452=>String(_0xb69452[_0x1c1071(0xf3)]??'')[_0x1c1071(0xe8)]()===_0x378e93);_0x3f4cab&&(_0x3f4cab[_0x1c1071(0xf5)]=!![]);}return;}if(!_0x378e93)return;for(const _0x5765c9 of _0x411505){String(_0x5765c9[_0x1c1071(0xf3)]??'')[_0x1c1071(0xe8)]()===_0x378e93&&(_0x5765c9[_0x1c1071(0xf5)]=!![]);}}function a7_0x13f5(_0x3c4bf2,_0x3f0cfb){_0x3c4bf2=_0x3c4bf2-0xe0;const _0x41e16e=a7_0x41e1();let _0x13f518=_0x41e16e[_0x3c4bf2];return _0x13f518;}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';function a7_0x41e1(){const _0x2ca485=['isCurrent','6csmRHQ','project','6654290akUglq','global','673848kiIcmv','definedIn','3666uNryCh','appCode','named','trim','1884yKklAm','7048105rJMSSy','1YvzohZ','2992752jYdQmO','13257296aFDvGL','2593750BgXQAs','defaultApp','local','currentApp','name','appcode','find'];a7_0x41e1=function(){return _0x2ca485;};return a7_0x41e1();}export function scopeLabel(_0x4e43dc){const _0xe3afa8=a7_0x13f5;return formatScopeLabel(_0x4e43dc[_0xe3afa8(0xe2)]?'global':_0xe3afa8(0xe0));}
@@ -1 +1 @@
1
- function a8_0x5f3c(_0x461772,_0x3110e8){_0x461772=_0x461772-0x15c;const _0x3e84a4=a8_0x3e84();let _0x5f3c49=_0x3e84a4[_0x461772];return _0x5f3c49;}const a8_0x526fc7=a8_0x5f3c;(function(_0x592dc4,_0x5b02ca){const _0x40a7cd=a8_0x5f3c,_0xc737ab=_0x592dc4();while(!![]){try{const _0xd88c6a=parseInt(_0x40a7cd(0x172))/0x1*(parseInt(_0x40a7cd(0x160))/0x2)+parseInt(_0x40a7cd(0x15f))/0x3+parseInt(_0x40a7cd(0x166))/0x4+-parseInt(_0x40a7cd(0x171))/0x5*(parseInt(_0x40a7cd(0x16a))/0x6)+parseInt(_0x40a7cd(0x162))/0x7*(parseInt(_0x40a7cd(0x170))/0x8)+parseInt(_0x40a7cd(0x163))/0x9+-parseInt(_0x40a7cd(0x16d))/0xa;if(_0xd88c6a===_0x5b02ca)break;else _0xc737ab['push'](_0xc737ab['shift']());}catch(_0x5b0064){_0xc737ab['push'](_0xc737ab['shift']());}}}(a8_0x3e84,0xad3aa));import{getRuntimeAppConfigByKey}from'../../core/api-client.js';function a8_0x3e84(){const _0x330620=['apiError','appCode','17913580UTebTV','\x20app-config\x20get\x20<key>','args','8oDILvH','4295UQGLNy','1XjtBxS','Check\x20that\x20the\x20key\x20exists,\x20the\x20current\x20AccessKey\x20has\x20permission,\x20and\x20the\x20runtime\x20read-only\x20app-config\x20endpoint\x20is\x20available.','App\x20config\x20key','trim','2452791SetEMb','1432814DRmWjH','read','5039867bhqLXv','10471401ZPxjWy','Missing\x20app-config\x20key.','Check\x20whether\x20one\x20runtime\x20app-config\x20key\x20is\x20configured\x20without\x20printing\x20its\x20value','1748856szqKlK','Unable\x20to\x20inspect\x20app-config\x20key\x20status:\x20key=','key',',\x20appCode=','9456XPzAPg'];a8_0x3e84=function(){return _0x330620;};return a8_0x3e84();}import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{projectAppConfigVisibilityCheck}from'../../commands/app-config/shared.js';export const appConfigGet={'service':'app-config','command':'get','description':a8_0x526fc7(0x165),'risk':a8_0x526fc7(0x161),'args':[{'name':a8_0x526fc7(0x168),'description':a8_0x526fc7(0x15d),'required':!![]}],'flags':[],async 'execute'(_0x21def5){const _0x225c3b=a8_0x526fc7,_0x3ef971=_0x21def5[_0x225c3b(0x16f)][0x0]?.[_0x225c3b(0x15e)]();if(!_0x3ef971)throw CliErrors['validation'](_0x225c3b(0x164),'Usage:\x20'+CLI_BIN_NAME+_0x225c3b(0x16e));try{const _0x1bd30d=await getRuntimeAppConfigByKey(_0x21def5['appCode'],_0x3ef971);return{'ok':!![],'data':projectAppConfigVisibilityCheck(_0x1bd30d,{'appCode':_0x21def5[_0x225c3b(0x16c)],'key':_0x3ef971})};}catch{throw CliErrors[_0x225c3b(0x16b)](_0x225c3b(0x167)+_0x3ef971+_0x225c3b(0x169)+_0x21def5[_0x225c3b(0x16c)],_0x225c3b(0x15c));}}};
1
+ function a8_0x5088(){const _0x1b09d0=[',\x20appCode=','7dszZoT','apiError','read','Unable\x20to\x20inspect\x20app-config\x20key\x20status:\x20key=','Check\x20whether\x20one\x20runtime\x20app-config\x20key\x20is\x20configured\x20without\x20printing\x20its\x20value','Missing\x20app-config\x20key.','Check\x20that\x20the\x20key\x20exists,\x20the\x20current\x20AccessKey\x20has\x20permission,\x20and\x20the\x20runtime\x20read-only\x20app-config\x20endpoint\x20is\x20available.','\x20app-config\x20get\x20<key>','3197864CqOwCc','1463940WoMiNZ','trim','appCode','170617sEcQAY','app-config','args','4oJQVzQ','199835gYxKTw','key','875841Bburum','415684QAVCfZ','2838258HXPykB','get','App\x20config\x20key'];a8_0x5088=function(){return _0x1b09d0;};return a8_0x5088();}const a8_0x2c1705=a8_0x4cb4;(function(_0x33a0fd,_0x1698af){const _0x6edb6a=a8_0x4cb4,_0x222b41=_0x33a0fd();while(!![]){try{const _0x46caf1=-parseInt(_0x6edb6a(0x1f2))/0x1+parseInt(_0x6edb6a(0x1f9))/0x2+parseInt(_0x6edb6a(0x1f8))/0x3*(parseInt(_0x6edb6a(0x1f5))/0x4)+parseInt(_0x6edb6a(0x1f6))/0x5+-parseInt(_0x6edb6a(0x1fa))/0x6*(-parseInt(_0x6edb6a(0x1fe))/0x7)+-parseInt(_0x6edb6a(0x1ee))/0x8+-parseInt(_0x6edb6a(0x1ef))/0x9;if(_0x46caf1===_0x1698af)break;else _0x222b41['push'](_0x222b41['shift']());}catch(_0x138a4b){_0x222b41['push'](_0x222b41['shift']());}}}(a8_0x5088,0x444ed));function a8_0x4cb4(_0x1a32c9,_0x2be76e){_0x1a32c9=_0x1a32c9-0x1ec;const _0x50885a=a8_0x5088();let _0x4cb4c3=_0x50885a[_0x1a32c9];return _0x4cb4c3;}import{getRuntimeAppConfigByKey}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{projectAppConfigVisibilityCheck}from'../../commands/app-config/shared.js';export const appConfigGet={'service':a8_0x2c1705(0x1f3),'command':a8_0x2c1705(0x1fb),'description':a8_0x2c1705(0x202),'risk':a8_0x2c1705(0x200),'args':[{'name':a8_0x2c1705(0x1f7),'description':a8_0x2c1705(0x1fc),'required':!![]}],'flags':[],async 'execute'(_0x5058c0){const _0x45b55d=a8_0x2c1705,_0x58d224=_0x5058c0[_0x45b55d(0x1f4)][0x0]?.[_0x45b55d(0x1f0)]();if(!_0x58d224)throw CliErrors['validation'](_0x45b55d(0x203),'Usage:\x20'+CLI_BIN_NAME+_0x45b55d(0x1ed));try{const _0x259641=await getRuntimeAppConfigByKey(_0x5058c0[_0x45b55d(0x1f1)],_0x58d224);return{'ok':!![],'data':projectAppConfigVisibilityCheck(_0x259641,{'appCode':_0x5058c0[_0x45b55d(0x1f1)],'key':_0x58d224})};}catch{throw CliErrors[_0x45b55d(0x1ff)](_0x45b55d(0x201)+_0x58d224+_0x45b55d(0x1fd)+_0x5058c0[_0x45b55d(0x1f1)],_0x45b55d(0x1ec));}}};
@@ -1 +1 @@
1
- (function(_0x59b7c4,_0x41d12a){const _0x12d1e4=a9_0x2275,_0x48f818=_0x59b7c4();while(!![]){try{const _0x35d77c=parseInt(_0x12d1e4(0xcf))/0x1*(-parseInt(_0x12d1e4(0xcd))/0x2)+-parseInt(_0x12d1e4(0xcb))/0x3*(parseInt(_0x12d1e4(0xc7))/0x4)+parseInt(_0x12d1e4(0xce))/0x5+parseInt(_0x12d1e4(0xd0))/0x6+-parseInt(_0x12d1e4(0xd1))/0x7*(-parseInt(_0x12d1e4(0xca))/0x8)+-parseInt(_0x12d1e4(0xd2))/0x9*(-parseInt(_0x12d1e4(0xc8))/0xa)+parseInt(_0x12d1e4(0xcc))/0xb*(-parseInt(_0x12d1e4(0xc9))/0xc);if(_0x35d77c===_0x41d12a)break;else _0x48f818['push'](_0x48f818['shift']());}catch(_0x3b2baf){_0x48f818['push'](_0x48f818['shift']());}}}(a9_0x3d4b,0xadbee));function a9_0x3d4b(){const _0x1a952a=['4WlkvGs','150sWAunN','4730316weZbGP','1614376FYozYX','462057xbvbqb','33vxhRsk','1371944IQSitO','3490060oCNYwl','1jDYVuQ','7356948cWfXWO','7oidbCO','364959eOVpXj'];a9_0x3d4b=function(){return _0x1a952a;};return a9_0x3d4b();}import{appConfigGet}from'../../commands/app-config/get.js';function a9_0x2275(_0x437a4a,_0x12ad9d){_0x437a4a=_0x437a4a-0xc7;const _0x3d4b97=a9_0x3d4b();let _0x2275da=_0x3d4b97[_0x437a4a];return _0x2275da;}export const appConfigDefinitions=[appConfigGet];
1
+ function a9_0x4d34(_0x24867c,_0x3c903a){_0x24867c=_0x24867c-0xe0;const _0xb3d4f6=a9_0xb3d4();let _0x4d345e=_0xb3d4f6[_0x24867c];return _0x4d345e;}function a9_0xb3d4(){const _0xae1b98=['155710tJmkXC','2123913bkkZiR','4ryTJSt','3339060NOaojG','1138305cQdDkQ','4254ndVHAr','3705NsLaMV','8BfPenA','8HThNpZ','2557753DlUYPW','23912Dmwsir','324pdhrmO'];a9_0xb3d4=function(){return _0xae1b98;};return a9_0xb3d4();}(function(_0x524715,_0xf77514){const _0x241337=a9_0x4d34,_0x5ad170=_0x524715();while(!![]){try{const _0xc70448=parseInt(_0x241337(0xe2))/0x1*(-parseInt(_0x241337(0xe5))/0x2)+parseInt(_0x241337(0xe8))/0x3*(-parseInt(_0x241337(0xe9))/0x4)+-parseInt(_0x241337(0xe1))/0x5*(-parseInt(_0x241337(0xe0))/0x6)+-parseInt(_0x241337(0xeb))/0x7*(-parseInt(_0x241337(0xe3))/0x8)+parseInt(_0x241337(0xe6))/0x9*(parseInt(_0x241337(0xe7))/0xa)+parseInt(_0x241337(0xe4))/0xb+-parseInt(_0x241337(0xea))/0xc;if(_0xc70448===_0xf77514)break;else _0x5ad170['push'](_0x5ad170['shift']());}catch(_0xd88824){_0x5ad170['push'](_0x5ad170['shift']());}}}(a9_0xb3d4,0x61755));import{appConfigGet}from'../../commands/app-config/get.js';export const appConfigDefinitions=[appConfigGet];
@@ -1 +1 @@
1
- (function(_0x371144,_0x1f638e){const _0x364dc9=a10_0x4bf5,_0x2c125f=_0x371144();while(!![]){try{const _0x284286=parseInt(_0x364dc9(0xcb))/0x1+-parseInt(_0x364dc9(0xde))/0x2+parseInt(_0x364dc9(0xc7))/0x3*(parseInt(_0x364dc9(0xdd))/0x4)+parseInt(_0x364dc9(0xd0))/0x5*(parseInt(_0x364dc9(0xcf))/0x6)+-parseInt(_0x364dc9(0xd6))/0x7+-parseInt(_0x364dc9(0xcc))/0x8*(parseInt(_0x364dc9(0xce))/0x9)+-parseInt(_0x364dc9(0xdf))/0xa*(parseInt(_0x364dc9(0xc8))/0xb);if(_0x284286===_0x1f638e)break;else _0x2c125f['push'](_0x2c125f['shift']());}catch(_0x26d859){_0x2c125f['push'](_0x2c125f['shift']());}}}(a10_0x4942,0xe911e));function a10_0x4bf5(_0x2a31f0,_0x1063bc){_0x2a31f0=_0x2a31f0-0xc7;const _0x494216=a10_0x4942();let _0x4bf551=_0x494216[_0x2a31f0];return _0x4bf551;}function normalizeTags(_0x428bb8){const _0x5db963=a10_0x4bf5;if(Array[_0x5db963(0xda)](_0x428bb8))return _0x428bb8[_0x5db963(0xd1)](_0x56f78b=>String(_0x56f78b))[_0x5db963(0xd5)](Boolean);if(typeof _0x428bb8!==_0x5db963(0xd8))return[];const _0x9bae22=_0x428bb8[_0x5db963(0xca)]();if(!_0x9bae22)return[];try{const _0x19c2fe=JSON['parse'](_0x9bae22);if(Array[_0x5db963(0xda)](_0x19c2fe))return _0x19c2fe['map'](_0x384273=>String(_0x384273))[_0x5db963(0xd5)](Boolean);}catch{}return _0x9bae22[_0x5db963(0xd9)](',')['map'](_0x507dec=>_0x507dec[_0x5db963(0xca)]())[_0x5db963(0xd5)](Boolean);}function a10_0x4942(){const _0x5dcd44=['traceId','string','split','isArray','tags','gmtModified','20istyyo','3545518GikbWI','30UDIAyV','1090335oYCYsv','540188SVJycK','appCode','trim','1325300kWrzhO','8geaGDp','key','7941204pFurml','78VyWOyC','583855GqQxZw','map','value','updateTime','createTime','filter','6324185WOmiQb'];a10_0x4942=function(){return _0x5dcd44;};return a10_0x4942();}export function projectAppConfigVisibilityCheck(_0x4b68ab,_0x37276c){const _0x532852=a10_0x4bf5,_0x1d0e15=_0x4b68ab[_0x532852(0xd2)],_0x2d72d4={'appCode':typeof _0x4b68ab[_0x532852(0xc9)]===_0x532852(0xd8)&&_0x4b68ab[_0x532852(0xc9)]['trim']()?_0x4b68ab[_0x532852(0xc9)]:_0x37276c[_0x532852(0xc9)],'key':typeof _0x4b68ab[_0x532852(0xcd)]===_0x532852(0xd8)&&_0x4b68ab[_0x532852(0xcd)][_0x532852(0xca)]()?_0x4b68ab[_0x532852(0xcd)]:_0x37276c[_0x532852(0xcd)],'tags':normalizeTags(_0x4b68ab[_0x532852(0xdb)]),'hasValue':typeof _0x1d0e15===_0x532852(0xd8)?_0x1d0e15['length']>0x0:_0x1d0e15!=null,'valueRedacted':!![],'gmtModified':_0x4b68ab[_0x532852(0xdc)]??_0x4b68ab[_0x532852(0xd3)]??'','gmtCreate':_0x4b68ab['gmtCreate']??_0x4b68ab[_0x532852(0xd4)]??''};return typeof _0x4b68ab['traceId']===_0x532852(0xd8)&&_0x4b68ab[_0x532852(0xd7)][_0x532852(0xca)]()&&(_0x2d72d4[_0x532852(0xd7)]=_0x4b68ab['traceId']),_0x2d72d4;}
1
+ function a10_0x4510(_0x55d25b,_0x25ffc7){_0x55d25b=_0x55d25b-0x151;const _0x59c57b=a10_0x59c5();let _0x451039=_0x59c57b[_0x55d25b];return _0x451039;}(function(_0x2134b6,_0x4892d9){const _0x100908=a10_0x4510,_0x12cd88=_0x2134b6();while(!![]){try{const _0x1d45b0=parseInt(_0x100908(0x168))/0x1+-parseInt(_0x100908(0x153))/0x2*(parseInt(_0x100908(0x15c))/0x3)+-parseInt(_0x100908(0x163))/0x4*(-parseInt(_0x100908(0x159))/0x5)+-parseInt(_0x100908(0x166))/0x6+parseInt(_0x100908(0x162))/0x7+-parseInt(_0x100908(0x160))/0x8*(-parseInt(_0x100908(0x156))/0x9)+parseInt(_0x100908(0x158))/0xa*(-parseInt(_0x100908(0x152))/0xb);if(_0x1d45b0===_0x4892d9)break;else _0x12cd88['push'](_0x12cd88['shift']());}catch(_0x11b2f1){_0x12cd88['push'](_0x12cd88['shift']());}}}(a10_0x59c5,0x7cb03));function a10_0x59c5(){const _0x56eea8=['14SvSUIt','appCode','updateTime','531EMybqZ','filter','20JvRIiw','18200UTGYQx','gmtModified','map','40758MVHHaw','parse','key','string','119624yrZhDM','createTime','4620063ZlBbug','1016NkLbjJ','traceId','split','5708952VjMDHu','isArray','61883mbGDMZ','trim','5342491lkfNun'];a10_0x59c5=function(){return _0x56eea8;};return a10_0x59c5();}function normalizeTags(_0x469f30){const _0x4532ca=a10_0x4510;if(Array[_0x4532ca(0x167)](_0x469f30))return _0x469f30[_0x4532ca(0x15b)](_0x1e5ead=>String(_0x1e5ead))['filter'](Boolean);if(typeof _0x469f30!==_0x4532ca(0x15f))return[];const _0x289709=_0x469f30[_0x4532ca(0x151)]();if(!_0x289709)return[];try{const _0x1e1dcf=JSON[_0x4532ca(0x15d)](_0x289709);if(Array['isArray'](_0x1e1dcf))return _0x1e1dcf[_0x4532ca(0x15b)](_0x1b6f21=>String(_0x1b6f21))['filter'](Boolean);}catch{}return _0x289709[_0x4532ca(0x165)](',')['map'](_0x34fcf7=>_0x34fcf7[_0x4532ca(0x151)]())[_0x4532ca(0x157)](Boolean);}export function projectAppConfigVisibilityCheck(_0x3786ad,_0x4951ab){const _0x132026=a10_0x4510,_0x227c86=_0x3786ad['value'],_0x3af8ef={'appCode':typeof _0x3786ad['appCode']===_0x132026(0x15f)&&_0x3786ad['appCode'][_0x132026(0x151)]()?_0x3786ad[_0x132026(0x154)]:_0x4951ab[_0x132026(0x154)],'key':typeof _0x3786ad[_0x132026(0x15e)]==='string'&&_0x3786ad[_0x132026(0x15e)][_0x132026(0x151)]()?_0x3786ad[_0x132026(0x15e)]:_0x4951ab[_0x132026(0x15e)],'tags':normalizeTags(_0x3786ad['tags']),'hasValue':typeof _0x227c86===_0x132026(0x15f)?_0x227c86['length']>0x0:_0x227c86!=null,'valueRedacted':!![],'gmtModified':_0x3786ad[_0x132026(0x15a)]??_0x3786ad[_0x132026(0x155)]??'','gmtCreate':_0x3786ad['gmtCreate']??_0x3786ad[_0x132026(0x161)]??''};return typeof _0x3786ad[_0x132026(0x164)]===_0x132026(0x15f)&&_0x3786ad[_0x132026(0x164)]['trim']()&&(_0x3af8ef[_0x132026(0x164)]=_0x3786ad[_0x132026(0x164)]),_0x3af8ef;}
@@ -1 +1 @@
1
- const a11_0x31f0fd=a11_0x3c9d;(function(_0x2c15d9,_0xab4421){const _0x476b17=a11_0x3c9d,_0xa8ac10=_0x2c15d9();while(!![]){try{const _0x3bce45=parseInt(_0x476b17(0x1cc))/0x1+parseInt(_0x476b17(0x1d5))/0x2+-parseInt(_0x476b17(0x1e6))/0x3*(-parseInt(_0x476b17(0x1e0))/0x4)+-parseInt(_0x476b17(0x1d7))/0x5+parseInt(_0x476b17(0x1bf))/0x6+parseInt(_0x476b17(0x1d3))/0x7*(parseInt(_0x476b17(0x1ea))/0x8)+-parseInt(_0x476b17(0x1b5))/0x9*(parseInt(_0x476b17(0x1f6))/0xa);if(_0x3bce45===_0xab4421)break;else _0xa8ac10['push'](_0xa8ac10['shift']());}catch(_0x421f76){_0xa8ac10['push'](_0xa8ac10['shift']());}}}(a11_0x138a,0xc4c04));import{existsSync,readFileSync,statSync}from'node:fs';import{createRuntimeArtifact,getRuntimeArtifact,listRuntimeArtifacts,updateRuntimeArtifact}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const ARTIFACT_TYPE_REACT_MODULE='react_module',ARTIFACT_SOURCE_AGENT=a11_0x31f0fd(0x1e8),ALLOWED_REACT_MODULE_IMPORTS=[a11_0x31f0fd(0x1c4),'react-dom',a11_0x31f0fd(0x1dc),a11_0x31f0fd(0x1f9),a11_0x31f0fd(0x1c2),a11_0x31f0fd(0x1ed)];export const ALLOWED_REACT_MODULE_IMPORTS_TEXT=ALLOWED_REACT_MODULE_IMPORTS[a11_0x31f0fd(0x1d8)](',\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':a11_0x31f0fd(0x1ef),'type':a11_0x31f0fd(0x1e7),'required':!![],'description':a11_0x31f0fd(0x1fc)},ARTIFACT_NAME_FLAG={'name':'name','type':a11_0x31f0fd(0x1e7),'description':a11_0x31f0fd(0x1d1)},METADATA_FLAG={'name':'metadata','type':a11_0x31f0fd(0x1e7),'description':a11_0x31f0fd(0x1db)};function isPlainObject(_0x5c2063){const _0x3663dd=a11_0x31f0fd;return typeof _0x5c2063==='object'&&_0x5c2063!==null&&!Array[_0x3663dd(0x1e1)](_0x5c2063);}function readSourceFile(_0x5b9d2a){const _0x2d9a13=a11_0x31f0fd;if(!_0x5b9d2a)throw CliErrors['validation']('File\x20path\x20is\x20required.');if(!existsSync(_0x5b9d2a))throw CliErrors[_0x2d9a13(0x1f4)](_0x2d9a13(0x1b3)+_0x5b9d2a);if(!statSync(_0x5b9d2a)[_0x2d9a13(0x1e2)]())throw CliErrors[_0x2d9a13(0x1f4)](_0x2d9a13(0x1c3)+_0x5b9d2a);const _0x3799ca=readFileSync(_0x5b9d2a,_0x2d9a13(0x1f1));return validateReactModuleSource(_0x3799ca),_0x3799ca;}function parseMetadata(_0x58a741){const _0xd93456=a11_0x31f0fd;if(!_0x58a741)return undefined;let _0x485b44;try{_0x485b44=JSON['parse'](_0x58a741);}catch{throw CliErrors[_0xd93456(0x1f4)](_0xd93456(0x1fb)+_0x58a741);}if(!isPlainObject(_0x485b44))throw CliErrors[_0xd93456(0x1f4)](_0xd93456(0x1eb));const _0x1903b6={..._0x485b44};return delete _0x1903b6['compiledContent'],_0x1903b6;}function getPackageName(_0x27ea10){const _0x547aae=a11_0x31f0fd;if(_0x27ea10[_0x547aae(0x1dd)]('@')){const [_0x2d39c2,_0x282b44]=_0x27ea10[_0x547aae(0x1c5)]('/');return _0x2d39c2&&_0x282b44?_0x2d39c2+'/'+_0x282b44:_0x27ea10;}return _0x27ea10[_0x547aae(0x1c5)]('/')[0x0]||_0x27ea10;}function validateAllowedImports(_0x255d97){const _0x12c601=a11_0x31f0fd,_0x453ec0=new Set();for(const _0x504392 of IMPORT_SOURCE_PATTERNS){_0x504392['lastIndex']=0x0;let _0x39efb4;while((_0x39efb4=_0x504392[_0x12c601(0x1e4)](_0x255d97))!==null){const _0xe8e644=_0x39efb4[0x1]?.[_0x12c601(0x1c0)]();_0xe8e644&&_0x453ec0['add'](_0xe8e644);}}const _0x3432c9=[..._0x453ec0]['map'](getPackageName)['filter'](_0x14f424=>!ALLOWED_REACT_MODULE_IMPORTS[_0x12c601(0x1da)](_0x14f424));if(_0x3432c9[_0x12c601(0x1bd)]>0x0)throw CliErrors[_0x12c601(0x1f4)](_0x12c601(0x1c7)+ALLOWED_REACT_MODULE_IMPORTS_TEXT+_0x12c601(0x1ba)+[...new Set(_0x3432c9)][_0x12c601(0x1d8)](',\x20'));}export function validateReactModuleSource(_0x3ef4f0){const _0x426ac4=a11_0x31f0fd;if(!_0x3ef4f0[_0x426ac4(0x1c0)]())throw CliErrors[_0x426ac4(0x1f4)](_0x426ac4(0x1e5));if(PAGE_LEVEL_PATTERNS[_0x426ac4(0x1b6)](_0x216418=>_0x216418[_0x426ac4(0x1d2)](_0x3ef4f0)))throw CliErrors[_0x426ac4(0x1f4)](_0x426ac4(0x1f2));validateAllowedImports(_0x3ef4f0);}function buildArtifactInput(_0x5ccd8a){const _0x3d4a4e=a11_0x31f0fd,_0x40f8bd=readSourceFile(_0x5ccd8a['str'](_0x3d4a4e(0x1ef))),_0x467758=_0x5ccd8a[_0x3d4a4e(0x1de)](_0x3d4a4e(0x1b2))[_0x3d4a4e(0x1c0)](),_0x190986=parseMetadata(_0x5ccd8a['str'](_0x3d4a4e(0x1c9)));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x467758?{'name':_0x467758}:{},'content':_0x40f8bd,..._0x190986?{'metadata':_0x190986}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0x552d04){const _0x1412e9=a11_0x31f0fd;return{'id':_0x552d04['id'],'name':_0x552d04[_0x1412e9(0x1b2)],'artifactType':_0x552d04['artifactType'],'source':_0x552d04[_0x1412e9(0x1f0)],'favorite':_0x552d04[_0x1412e9(0x1f3)],'deleted':_0x552d04['deleted'],'createTime':_0x552d04['createTime'],'updateTime':_0x552d04[_0x1412e9(0x1f7)]};}function a11_0x138a(){const _0x561c8e=['27465foXRMr','string','AGENT','/client/artifact/create','522152FIXBSq','--metadata\x20must\x20be\x20a\x20JSON\x20object.','Preview:\x20update\x20react_module\x20Artifact\x20','@ant-design/icons','boolean','file','source','utf8','react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.','favorite','validation','List\x20current-app\x20react_module\x20Artifacts','414860wNEboe','updateTime','appCode','dayjs','compiledContent','Invalid\x20JSON\x20for\x20--metadata:\x20','Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file','name','File\x20not\x20found:\x20','artifact','531OofYGJ','some','Optional\x20favorite-state\x20filter','flag','Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','.\x20Unsupported:\x20','detail','Preview:\x20create\x20react_module\x20Artifact','length','bool','1979094FXJhmq','trim','Updated\x20Artifact\x20','antd','File\x20is\x20not\x20a\x20regular\x20file:\x20','react','split','read','react_module\x20imports\x20are\x20limited\x20to:\x20','build','metadata','POST','Optional\x20source\x20filter,\x20for\x20example\x20AGENT','1039146KyWbsF','description','content','deleted','num','Artifact\x20display\x20name','test','161iYYkVE','Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','900706hbJkOZ','Artifact\x20ID','2394720ZyHVhP','join','body','includes','Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped','lodash','startsWith','str','write','180bbCphM','isArray','isFile','create','exec','Artifact\x20source\x20file\x20is\x20blank.'];a11_0x138a=function(){return _0x561c8e;};return a11_0x138a();}function detailArtifact(_0x40bbfb){const _0x3650f2=a11_0x31f0fd;return{'id':_0x40bbfb['id'],'appCode':_0x40bbfb['appCode'],'name':_0x40bbfb[_0x3650f2(0x1b2)],'artifactType':_0x40bbfb['artifactType'],'source':_0x40bbfb[_0x3650f2(0x1f0)],'favorite':_0x40bbfb[_0x3650f2(0x1f3)],'deleted':_0x40bbfb[_0x3650f2(0x1cf)],'content':_0x40bbfb[_0x3650f2(0x1ce)]??'','compiledContent':_0x40bbfb[_0x3650f2(0x1fa)],'metadata':_0x40bbfb['metadata']??{},'createTime':_0x40bbfb['createTime'],'updateTime':_0x40bbfb[_0x3650f2(0x1f7)]};}function readFavoriteFlag(_0xeafcec){const _0x14b429=a11_0x31f0fd,_0x309559=_0xeafcec[_0x14b429(0x1b8)](_0x14b429(0x1f3));return _0x309559===undefined||_0x309559===null||_0x309559===''?undefined:_0xeafcec[_0x14b429(0x1be)](_0x14b429(0x1f3));}function a11_0x3c9d(_0x458ab9,_0x472430){_0x458ab9=_0x458ab9-0x1b2;const _0x138aa0=a11_0x138a();let _0x3c9da5=_0x138aa0[_0x458ab9];return _0x3c9da5;}const artifactList={'service':a11_0x31f0fd(0x1b4),'command':'list','description':a11_0x31f0fd(0x1f5),'risk':a11_0x31f0fd(0x1c6),'flags':[{'name':a11_0x31f0fd(0x1f0),'type':a11_0x31f0fd(0x1e7),'description':a11_0x31f0fd(0x1cb)},{'name':a11_0x31f0fd(0x1f3),'type':a11_0x31f0fd(0x1ee),'description':a11_0x31f0fd(0x1b7)},VERBOSE_FLAG],async 'execute'(_0x4d2a17){const _0x30c6b6=a11_0x31f0fd,_0x11a481=await listRuntimeArtifacts(_0x4d2a17['appCode'],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x4d2a17['str'](_0x30c6b6(0x1f0))?{'source':_0x4d2a17['str'](_0x30c6b6(0x1f0))}:{},...readFavoriteFlag(_0x4d2a17)!==undefined?{'favorite':readFavoriteFlag(_0x4d2a17)}:{}});return{'ok':!![],'data':{'total':_0x11a481['length'],'items':_0x4d2a17[_0x30c6b6(0x1be)]('verbose')?_0x11a481:_0x11a481['map'](summarizeArtifact)}};}},artifactDetail={'service':'artifact','command':a11_0x31f0fd(0x1bb),'description':'Show\x20one\x20Artifact\x20by\x20id','risk':a11_0x31f0fd(0x1c6),'flags':[{...ID_FLAG,'description':a11_0x31f0fd(0x1d6)}],async 'execute'(_0x1e2ec3){const _0x21201d=await getRuntimeArtifact(_0x1e2ec3['num']('id'),_0x1e2ec3['appCode']);return{'ok':!![],'data':detailArtifact(_0x21201d)};}},artifactCreate={'service':a11_0x31f0fd(0x1b4),'command':a11_0x31f0fd(0x1e3),'description':a11_0x31f0fd(0x1d4),'risk':a11_0x31f0fd(0x1df),'flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x4fc9c8){const _0xf069a=a11_0x31f0fd,_0x27d249=buildArtifactInput(_0x4fc9c8),_0x7bffb3=await createRuntimeArtifact(_0x4fc9c8[_0xf069a(0x1f8)],_0x27d249);return{'ok':!![],'data':detailArtifact(_0x7bffb3),'message':'Created\x20Artifact\x20'+_0x7bffb3['id']+(_0x7bffb3['name']?'\x20('+_0x7bffb3['name']+')':'')};},async 'dryRun'(_0x223a04){const _0x51c4ce=a11_0x31f0fd,_0x513864=buildArtifactInput(_0x223a04);return dryRun(_0x51c4ce(0x1ca),_0x51c4ce(0x1e9))[_0x51c4ce(0x1d9)]({'appCode':_0x223a04['appCode'],..._0x513864})[_0x51c4ce(0x1cd)](_0x51c4ce(0x1bc))[_0x51c4ce(0x1c8)]();}},artifactUpdate={'service':a11_0x31f0fd(0x1b4),'command':'update','description':a11_0x31f0fd(0x1b9),'risk':a11_0x31f0fd(0x1df),'flags':[{...ID_FLAG,'description':a11_0x31f0fd(0x1d6)},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x2ed639){const _0x5c2e32=a11_0x31f0fd,_0x4a20ac=_0x2ed639[_0x5c2e32(0x1d0)]('id'),_0x454d31=buildArtifactInput(_0x2ed639),_0x365567=await updateRuntimeArtifact(_0x4a20ac,_0x2ed639[_0x5c2e32(0x1f8)],_0x454d31);return{'ok':!![],'data':detailArtifact(_0x365567),'message':_0x5c2e32(0x1c1)+_0x365567['id']+(_0x365567[_0x5c2e32(0x1b2)]?'\x20('+_0x365567['name']+')':'')};},async 'dryRun'(_0x321cb4){const _0x284602=a11_0x31f0fd,_0x4c9e6f=_0x321cb4[_0x284602(0x1d0)]('id'),_0x330b8e=buildArtifactInput(_0x321cb4);return dryRun(_0x284602(0x1ca),'/client/artifact/'+_0x4c9e6f+'/update')[_0x284602(0x1d9)]({'appCode':_0x321cb4[_0x284602(0x1f8)],..._0x330b8e})[_0x284602(0x1cd)](_0x284602(0x1ec)+_0x4c9e6f)[_0x284602(0x1c8)]();}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
1
+ const a11_0x105a91=a11_0x3dbe;(function(_0x2d63dc,_0xdd621b){const _0x9ae5a4=a11_0x3dbe,_0x403a47=_0x2d63dc();while(!![]){try{const _0x24aa91=parseInt(_0x9ae5a4(0xd4))/0x1+parseInt(_0x9ae5a4(0xe3))/0x2*(parseInt(_0x9ae5a4(0xb3))/0x3)+parseInt(_0x9ae5a4(0xb4))/0x4+-parseInt(_0x9ae5a4(0xcb))/0x5+parseInt(_0x9ae5a4(0xdd))/0x6*(-parseInt(_0x9ae5a4(0xd9))/0x7)+-parseInt(_0x9ae5a4(0xaa))/0x8*(-parseInt(_0x9ae5a4(0xb6))/0x9)+-parseInt(_0x9ae5a4(0xc4))/0xa*(parseInt(_0x9ae5a4(0xea))/0xb);if(_0x24aa91===_0xdd621b)break;else _0x403a47['push'](_0x403a47['shift']());}catch(_0x599c27){_0x403a47['push'](_0x403a47['shift']());}}}(a11_0x51fb,0xa3383));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';function a11_0x51fb(){const _0x50b981=['create','deleted','/client/artifact/create','bool','124016FNuILa','Preview:\x20update\x20react_module\x20Artifact\x20','lastIndex','createTime','appCode','List\x20current-app\x20react_module\x20Artifacts','add','list','updateTime','3kEZexs','3593112XEvQWT','str','549emmifB','react_module','source','react_module\x20imports\x20are\x20limited\x20to:\x20','split','num','exec','Artifact\x20source\x20file\x20is\x20blank.','favorite','trim','write','verbose','some','File\x20not\x20found:\x20','70890EeCaHf','string','Invalid\x20JSON\x20for\x20--metadata:\x20','boolean','Optional\x20favorite-state\x20filter','startsWith','includes','5569925GaPtML','validation','File\x20path\x20is\x20required.','AGENT','Optional\x20source\x20filter,\x20for\x20example\x20AGENT','Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','Artifact\x20ID','artifact','read','735786CNuXnb','build','map','Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped','compiledContent','77mhFDQE','metadata','Updated\x20Artifact\x20','file','719706NOMiSX','join','length','name','utf8','POST','2093786fuvkoZ','body','artifactType','Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','object','Created\x20Artifact\x20','Show\x20one\x20Artifact\x20by\x20id','814qNsrWb','File\x20is\x20not\x20a\x20regular\x20file:\x20','.\x20Unsupported:\x20'];a11_0x51fb=function(){return _0x50b981;};return a11_0x51fb();}import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const ARTIFACT_TYPE_REACT_MODULE=a11_0x105a91(0xb7),ARTIFACT_SOURCE_AGENT=a11_0x105a91(0xce),ALLOWED_REACT_MODULE_IMPORTS=['react','react-dom','lodash','dayjs','antd','@ant-design/icons'];function a11_0x3dbe(_0x3ad8a5,_0x19d642){_0x3ad8a5=_0x3ad8a5-0xa9;const _0x51fbde=a11_0x51fb();let _0x3dbe18=_0x51fbde[_0x3ad8a5];return _0x3dbe18;}export const ALLOWED_REACT_MODULE_IMPORTS_TEXT=ALLOWED_REACT_MODULE_IMPORTS[a11_0x105a91(0xde)](',\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':a11_0x105a91(0xdc),'type':a11_0x105a91(0xc5),'required':!![],'description':'Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file'},ARTIFACT_NAME_FLAG={'name':a11_0x105a91(0xe0),'type':a11_0x105a91(0xc5),'description':'Artifact\x20display\x20name'},METADATA_FLAG={'name':a11_0x105a91(0xda),'type':a11_0x105a91(0xc5),'description':a11_0x105a91(0xd7)};function isPlainObject(_0x1aea18){const _0x3d8976=a11_0x105a91;return typeof _0x1aea18===_0x3d8976(0xe7)&&_0x1aea18!==null&&!Array['isArray'](_0x1aea18);}function readSourceFile(_0x3b27c4){const _0x8fd0a9=a11_0x105a91;if(!_0x3b27c4)throw CliErrors[_0x8fd0a9(0xcc)](_0x8fd0a9(0xcd));if(!existsSync(_0x3b27c4))throw CliErrors['validation'](_0x8fd0a9(0xc3)+_0x3b27c4);if(!statSync(_0x3b27c4)['isFile']())throw CliErrors[_0x8fd0a9(0xcc)](_0x8fd0a9(0xeb)+_0x3b27c4);const _0x3f77b4=readFileSync(_0x3b27c4,_0x8fd0a9(0xe1));return validateReactModuleSource(_0x3f77b4),_0x3f77b4;}function parseMetadata(_0x32bb90){const _0xa8b518=a11_0x105a91;if(!_0x32bb90)return undefined;let _0x3b98a2;try{_0x3b98a2=JSON['parse'](_0x32bb90);}catch{throw CliErrors[_0xa8b518(0xcc)](_0xa8b518(0xc6)+_0x32bb90);}if(!isPlainObject(_0x3b98a2))throw CliErrors[_0xa8b518(0xcc)]('--metadata\x20must\x20be\x20a\x20JSON\x20object.');const _0x10cf9a={..._0x3b98a2};return delete _0x10cf9a[_0xa8b518(0xd8)],_0x10cf9a;}function getPackageName(_0x1c8c1e){const _0xcf037f=a11_0x105a91;if(_0x1c8c1e[_0xcf037f(0xc9)]('@')){const [_0x31e3ba,_0x3234e6]=_0x1c8c1e['split']('/');return _0x31e3ba&&_0x3234e6?_0x31e3ba+'/'+_0x3234e6:_0x1c8c1e;}return _0x1c8c1e[_0xcf037f(0xba)]('/')[0x0]||_0x1c8c1e;}function validateAllowedImports(_0x4cbdbe){const _0x3811df=a11_0x105a91,_0x8cb2b5=new Set();for(const _0x28321f of IMPORT_SOURCE_PATTERNS){_0x28321f[_0x3811df(0xac)]=0x0;let _0x309c4b;while((_0x309c4b=_0x28321f[_0x3811df(0xbc)](_0x4cbdbe))!==null){const _0x3d03cd=_0x309c4b[0x1]?.[_0x3811df(0xbf)]();_0x3d03cd&&_0x8cb2b5[_0x3811df(0xb0)](_0x3d03cd);}}const _0x5f0ad5=[..._0x8cb2b5][_0x3811df(0xd6)](getPackageName)['filter'](_0x206078=>!ALLOWED_REACT_MODULE_IMPORTS[_0x3811df(0xca)](_0x206078));if(_0x5f0ad5[_0x3811df(0xdf)]>0x0)throw CliErrors['validation'](_0x3811df(0xb9)+ALLOWED_REACT_MODULE_IMPORTS_TEXT+_0x3811df(0xec)+[...new Set(_0x5f0ad5)][_0x3811df(0xde)](',\x20'));}export function validateReactModuleSource(_0xc40c10){const _0x429ed1=a11_0x105a91;if(!_0xc40c10['trim']())throw CliErrors[_0x429ed1(0xcc)](_0x429ed1(0xbd));if(PAGE_LEVEL_PATTERNS[_0x429ed1(0xc2)](_0x53a2fc=>_0x53a2fc['test'](_0xc40c10)))throw CliErrors[_0x429ed1(0xcc)]('react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.');validateAllowedImports(_0xc40c10);}function buildArtifactInput(_0x216d52){const _0x33cbcc=a11_0x105a91,_0x402d82=readSourceFile(_0x216d52['str']('file')),_0x4ecdcd=_0x216d52['str'](_0x33cbcc(0xe0))['trim'](),_0x27c818=parseMetadata(_0x216d52[_0x33cbcc(0xb5)](_0x33cbcc(0xda)));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x4ecdcd?{'name':_0x4ecdcd}:{},'content':_0x402d82,..._0x27c818?{'metadata':_0x27c818}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0x5a3a66){const _0x41bf0b=a11_0x105a91;return{'id':_0x5a3a66['id'],'name':_0x5a3a66[_0x41bf0b(0xe0)],'artifactType':_0x5a3a66[_0x41bf0b(0xe5)],'source':_0x5a3a66[_0x41bf0b(0xb8)],'favorite':_0x5a3a66[_0x41bf0b(0xbe)],'deleted':_0x5a3a66['deleted'],'createTime':_0x5a3a66[_0x41bf0b(0xad)],'updateTime':_0x5a3a66[_0x41bf0b(0xb2)]};}function detailArtifact(_0x1427f4){const _0x1103a8=a11_0x105a91;return{'id':_0x1427f4['id'],'appCode':_0x1427f4[_0x1103a8(0xae)],'name':_0x1427f4[_0x1103a8(0xe0)],'artifactType':_0x1427f4[_0x1103a8(0xe5)],'source':_0x1427f4[_0x1103a8(0xb8)],'favorite':_0x1427f4['favorite'],'deleted':_0x1427f4[_0x1103a8(0xee)],'content':_0x1427f4['content']??'','compiledContent':_0x1427f4['compiledContent'],'metadata':_0x1427f4[_0x1103a8(0xda)]??{},'createTime':_0x1427f4[_0x1103a8(0xad)],'updateTime':_0x1427f4[_0x1103a8(0xb2)]};}function readFavoriteFlag(_0x206978){const _0x38936e=a11_0x105a91,_0x58af22=_0x206978['flag'](_0x38936e(0xbe));return _0x58af22===undefined||_0x58af22===null||_0x58af22===''?undefined:_0x206978['bool'](_0x38936e(0xbe));}const artifactList={'service':a11_0x105a91(0xd2),'command':a11_0x105a91(0xb1),'description':a11_0x105a91(0xaf),'risk':a11_0x105a91(0xd3),'flags':[{'name':a11_0x105a91(0xb8),'type':a11_0x105a91(0xc5),'description':a11_0x105a91(0xcf)},{'name':a11_0x105a91(0xbe),'type':a11_0x105a91(0xc7),'description':a11_0x105a91(0xc8)},VERBOSE_FLAG],async 'execute'(_0x25d709){const _0x50945c=a11_0x105a91,_0x22e214=await listRuntimeArtifacts(_0x25d709['appCode'],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x25d709[_0x50945c(0xb5)]('source')?{'source':_0x25d709['str']('source')}:{},...readFavoriteFlag(_0x25d709)!==undefined?{'favorite':readFavoriteFlag(_0x25d709)}:{}});return{'ok':!![],'data':{'total':_0x22e214[_0x50945c(0xdf)],'items':_0x25d709[_0x50945c(0xa9)](_0x50945c(0xc1))?_0x22e214:_0x22e214[_0x50945c(0xd6)](summarizeArtifact)}};}},artifactDetail={'service':a11_0x105a91(0xd2),'command':'detail','description':a11_0x105a91(0xe9),'risk':'read','flags':[{...ID_FLAG,'description':'Artifact\x20ID'}],async 'execute'(_0xff7e72){const _0x46f309=a11_0x105a91,_0x51e308=await getRuntimeArtifact(_0xff7e72[_0x46f309(0xbb)]('id'),_0xff7e72['appCode']);return{'ok':!![],'data':detailArtifact(_0x51e308)};}},artifactCreate={'service':'artifact','command':a11_0x105a91(0xed),'description':a11_0x105a91(0xe6),'risk':a11_0x105a91(0xc0),'flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x3384f8){const _0x3820d8=a11_0x105a91,_0x11821f=buildArtifactInput(_0x3384f8),_0x52c823=await createRuntimeArtifact(_0x3384f8[_0x3820d8(0xae)],_0x11821f);return{'ok':!![],'data':detailArtifact(_0x52c823),'message':_0x3820d8(0xe8)+_0x52c823['id']+(_0x52c823[_0x3820d8(0xe0)]?'\x20('+_0x52c823[_0x3820d8(0xe0)]+')':'')};},async 'dryRun'(_0x14ab69){const _0x237a9f=a11_0x105a91,_0x5ad158=buildArtifactInput(_0x14ab69);return dryRun(_0x237a9f(0xe2),_0x237a9f(0xef))['body']({'appCode':_0x14ab69[_0x237a9f(0xae)],..._0x5ad158})['description']('Preview:\x20create\x20react_module\x20Artifact')[_0x237a9f(0xd5)]();}},artifactUpdate={'service':'artifact','command':'update','description':a11_0x105a91(0xd0),'risk':a11_0x105a91(0xc0),'flags':[{...ID_FLAG,'description':a11_0x105a91(0xd1)},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x547f98){const _0x350698=a11_0x105a91,_0x38890c=_0x547f98['num']('id'),_0x16c301=buildArtifactInput(_0x547f98),_0x3062a0=await updateRuntimeArtifact(_0x38890c,_0x547f98[_0x350698(0xae)],_0x16c301);return{'ok':!![],'data':detailArtifact(_0x3062a0),'message':_0x350698(0xdb)+_0x3062a0['id']+(_0x3062a0[_0x350698(0xe0)]?'\x20('+_0x3062a0[_0x350698(0xe0)]+')':'')};},async 'dryRun'(_0x2ba85f){const _0x500cf1=a11_0x105a91,_0x449c97=_0x2ba85f[_0x500cf1(0xbb)]('id'),_0x28c6a1=buildArtifactInput(_0x2ba85f);return dryRun(_0x500cf1(0xe2),'/client/artifact/'+_0x449c97+'/update')[_0x500cf1(0xe4)]({'appCode':_0x2ba85f['appCode'],..._0x28c6a1})['description'](_0x500cf1(0xab)+_0x449c97)['build']();}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
@@ -1 +1 @@
1
- const a12_0x1d924d=a12_0x30a6;function a12_0x30a6(_0x39f30b,_0x83ff22){_0x39f30b=_0x39f30b-0x1f2;const _0x4b583e=a12_0x4b58();let _0x30a6af=_0x4b583e[_0x39f30b];return _0x30a6af;}(function(_0x4b5da5,_0x19539c){const _0x5408b2=a12_0x30a6,_0x1a8a1a=_0x4b5da5();while(!![]){try{const _0x3c485a=parseInt(_0x5408b2(0x21c))/0x1+-parseInt(_0x5408b2(0x1f7))/0x2+parseInt(_0x5408b2(0x21a))/0x3*(parseInt(_0x5408b2(0x220))/0x4)+parseInt(_0x5408b2(0x240))/0x5*(parseInt(_0x5408b2(0x208))/0x6)+parseInt(_0x5408b2(0x200))/0x7*(-parseInt(_0x5408b2(0x1f8))/0x8)+-parseInt(_0x5408b2(0x230))/0x9+-parseInt(_0x5408b2(0x207))/0xa*(parseInt(_0x5408b2(0x216))/0xb);if(_0x3c485a===_0x19539c)break;else _0x1a8a1a['push'](_0x1a8a1a['shift']());}catch(_0x16f89c){_0x1a8a1a['push'](_0x1a8a1a['shift']());}}}(a12_0x4b58,0x632a2));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';function a12_0x4b58(){const _0x206321=['nonInteractive','Auth\x20config\x20reinitialized\x20in\x20','length','cancelled','15QJHTkD','\x20env\x20var','\x20Current\x20env:\x20','Option\x20A:\x20','Use\x20`','\x20auth\x20login\x20--access-key\x20<ak_xxx>','`auth\x20login`\x20does\x20not\x20support\x20--yes.','production','envName','auth','485106ITWKQf','751256aSXXPN','\x20(via\x20','Write\x20to\x20global\x20config\x20(default)','Auth\x20mode:\x20','AccessKey:\x20','No\x20AccessKey\x20found\x20in\x20','\x20\x20export\x20','AccessKey\x20cleared\x20from\x20','42jlPEZF','access-key','project','global','boolean','\x20scope.','yes','21900VpoOjx','227832xwlmVP','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','\x20Verify:\x20','development','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','push','\x20doctor','Then\x20verify\x20with:\x20','Missing\x20accessKey.','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','Read\x20from\x20global\x20config\x20(default)','trim','44xbEnpW','Clear\x20accessKey\x20from\x20config','\x20config.\x20Nothing\x20to\x20clear.','stdin','2202225PtNTCi','daily','808877lJZerD','AccessKey\x20saved\x20to\x20','accessKey','\x20auth\x20status','4JGBWdZ','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','status','login','str','env','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','Show\x20current\x20authentication\x20status','bool','Invalid\x20accessKey\x20format:\x20\x22','\x20config','Shorthand\x20for\x20--access-key','read','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','validation','global-default','3923415zhNgYa','write','isTTY','Option\x20C:\x20environment\x20variable','userCenterDisplayName','string','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','Clear\x20from\x20global\x20config\x20(default)','test','ACCESS_KEY','\x20config.','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config'];a12_0x4b58=function(){return _0x206321;};return a12_0x4b58();}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 _0x512e20=a12_0x30a6;writeCliSideChannelLine(_0x512e20(0x209)+PRODUCT_CONFIG['userCenterDisplayName']+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine('Tip:\x20you\x20can\x20also\x20run:'),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x512e20(0x1f2));}function buildAccessKeySetupGuide(){const _0x3b75bd=a12_0x30a6;return[_0x3b75bd(0x209)+PRODUCT_CONFIG[_0x3b75bd(0x234)]+':',USER_ACCESS_KEY_CREATE_URL,'Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20'+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]']['join']('\x0a');}function canPromptForAccessKey(_0x26e116){const _0x22c212=a12_0x30a6;return!_0x26e116[_0x22c212(0x23c)]&&process[_0x22c212(0x219)][_0x22c212(0x232)]!==![]&&process['stdout'][_0x22c212(0x232)]!==![];}function resolveAuthScopeFlags(_0x55caae){const _0x1750dd=a12_0x30a6;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x55caae[_0x1750dd(0x228)]('global'),'explicitProject':_0x55caae[_0x1750dd(0x228)](_0x1750dd(0x202)),'policy':_0x1750dd(0x22f)}));}async function resolveAuthWriteInput(_0x28f6d6){const _0xa64245=a12_0x30a6;let _0x1a46bb=(_0x28f6d6[_0xa64245(0x224)](_0xa64245(0x201))||_0x28f6d6[_0xa64245(0x224)]('ak')||'')[_0xa64245(0x215)]();const _0x250e4d=(_0x28f6d6[_0xa64245(0x224)](_0xa64245(0x225))||'')[_0xa64245(0x215)]();if(!_0x1a46bb&&canPromptForAccessKey(_0x28f6d6))try{showAccessKeyCreateHint(),_0x1a46bb=await promptAccessKey('');}catch(_0x49b0f0){if(isAbortPrompt(_0x49b0f0))throw CliErrors[_0xa64245(0x23f)]();throw _0x49b0f0;}if(!_0x1a46bb)throw CliErrors[_0xa64245(0x22e)](_0xa64245(0x212),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0xa64245(0x238)](_0x1a46bb))throw CliErrors[_0xa64245(0x22e)](_0xa64245(0x229)+_0x1a46bb+'\x22','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars');if(!_0x250e4d)return{'accessKey':_0x1a46bb};const _0x282701=normalizeEnv(_0x250e4d);return{'accessKey':_0x1a46bb,'env':isDaily(_0x282701)?_0xa64245(0x21b):isDev(_0x282701)?_0xa64245(0x20c):_0xa64245(0x1f4)};}export const authDefinitions=[{'service':a12_0x1d924d(0x1f6),'command':a12_0x1d924d(0x223),'description':a12_0x1d924d(0x213),'risk':a12_0x1d924d(0x231),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x1d924d(0x201),'type':a12_0x1d924d(0x235),'description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':a12_0x1d924d(0x235),'description':a12_0x1d924d(0x22b)},{'name':a12_0x1d924d(0x203),'type':a12_0x1d924d(0x204),'description':a12_0x1d924d(0x1fa),'default':!![]},{'name':'project','type':a12_0x1d924d(0x204),'description':a12_0x1d924d(0x22d),'default':![]}],async 'execute'(_0x330a1f){const _0x1bcad2=a12_0x1d924d;if(_0x330a1f[_0x1bcad2(0x228)](_0x1bcad2(0x206)))throw CliErrors['validation'](_0x1bcad2(0x1f3),_0x1bcad2(0x244)+CLI_BIN_NAME+'\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`'+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.');const _0x4af642=(_0x330a1f['str'](_0x1bcad2(0x201))||_0x330a1f[_0x1bcad2(0x224)]('ak')||'')[_0x1bcad2(0x215)]();if(!_0x4af642&&_0x330a1f[_0x1bcad2(0x23c)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x5cbc1d=await resolveAuthWriteInput(_0x330a1f),_0x101cea=resolveAuthScopeFlags(_0x330a1f),_0x3f7903=readScopedConfig(_0x101cea);_0x3f7903['accessKey']=_0x5cbc1d['accessKey'];_0x5cbc1d[_0x1bcad2(0x225)]&&(_0x3f7903[_0x1bcad2(0x225)]=_0x5cbc1d[_0x1bcad2(0x225)]);writeScopedConfig(_0x3f7903,_0x101cea);const _0x2b44cc=_0x101cea['global']?_0x1bcad2(0x203):_0x1bcad2(0x202),_0xd33371=_0x3f7903[_0x1bcad2(0x225)]?_0x1bcad2(0x242)+_0x3f7903['env']+'.':'';return{'ok':!![],'message':_0x1bcad2(0x21d)+_0x2b44cc+_0x1bcad2(0x23a)+_0xd33371+'\x20Verify:\x20'+CLI_BIN_NAME+_0x1bcad2(0x21f)};}},{'service':a12_0x1d924d(0x1f6),'command':'init','description':a12_0x1d924d(0x20a),'risk':a12_0x1d924d(0x231),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x1d924d(0x201),'type':'string','description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':a12_0x1d924d(0x235),'description':'Shorthand\x20for\x20--access-key'},{'name':a12_0x1d924d(0x225),'type':a12_0x1d924d(0x235),'description':a12_0x1d924d(0x23b)},{'name':a12_0x1d924d(0x203),'type':'boolean','description':a12_0x1d924d(0x1fa),'default':!![]},{'name':'project','type':a12_0x1d924d(0x204),'description':'Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x3581ab){const _0x2b9b6a=a12_0x1d924d,_0x25ccb5=await resolveAuthWriteInput(_0x3581ab),_0x2e694b=resolveAuthScopeFlags(_0x3581ab),_0x4bb07e={'accessKey':_0x25ccb5['accessKey']};_0x25ccb5[_0x2b9b6a(0x225)]&&(_0x4bb07e[_0x2b9b6a(0x225)]=_0x25ccb5[_0x2b9b6a(0x225)]);writeScopedConfig(_0x4bb07e,_0x2e694b);const _0x510f1b=_0x2e694b['global']?'global':_0x2b9b6a(0x202),_0x49db78=_0x4bb07e[_0x2b9b6a(0x225)]?_0x2b9b6a(0x242)+_0x4bb07e[_0x2b9b6a(0x225)]+'.':'';return{'ok':!![],'message':_0x2b9b6a(0x23d)+_0x510f1b+_0x2b9b6a(0x205)+_0x49db78+_0x2b9b6a(0x20b)+CLI_BIN_NAME+_0x2b9b6a(0x21f)};}},{'service':a12_0x1d924d(0x1f6),'command':'logout','description':a12_0x1d924d(0x217),'risk':a12_0x1d924d(0x231),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x1d924d(0x203),'type':a12_0x1d924d(0x204),'description':a12_0x1d924d(0x237),'default':!![]},{'name':a12_0x1d924d(0x202),'type':a12_0x1d924d(0x204),'description':a12_0x1d924d(0x236),'default':![]}],async 'execute'(_0x2b404e){const _0x160223=a12_0x1d924d,_0x146cc8=resolveAuthScopeFlags(_0x2b404e),_0x5a80a4=readScopedConfig(_0x146cc8),_0x661c32=!!_0x5a80a4[_0x160223(0x21e)];delete _0x5a80a4[_0x160223(0x21e)],writeScopedConfig(_0x5a80a4,_0x146cc8);const _0x15bd69=_0x146cc8['global']?'global':_0x160223(0x202);if(_0x661c32)return{'ok':!![],'message':_0x160223(0x1ff)+_0x15bd69+_0x160223(0x23a)};return{'ok':!![],'message':_0x160223(0x1fd)+_0x15bd69+_0x160223(0x218)};}},{'service':a12_0x1d924d(0x1f6),'command':a12_0x1d924d(0x222),'description':a12_0x1d924d(0x227),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x1d924d(0x203),'type':'boolean','description':a12_0x1d924d(0x214),'default':!![]},{'name':a12_0x1d924d(0x202),'type':a12_0x1d924d(0x204),'description':'Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x4491cf){const _0xa72663=a12_0x1d924d,_0xe90c83=resolveAuthScopeFlags(_0x4491cf),_0xb913a7=readScopedConfig(_0xe90c83),_0x2be3bd=productEnvName('ACCESS_KEY'),_0x34c555=productEnv(_0xa72663(0x239))||undefined,_0x467d76=_0xb913a7[_0xa72663(0x21e)]||undefined,_0x3f3162=_0x34c555||_0x467d76,_0x503d1f=_0x34c555?_0x2be3bd+_0xa72663(0x241):_0x467d76?(_0xe90c83[_0xa72663(0x203)]?_0xa72663(0x203):_0xa72663(0x202))+_0xa72663(0x22a):null,_0x9ab92f=[_0xa72663(0x1fb)+AUTH_MODE['ClientAk']];if(_0x3f3162){const _0x5c26de=_0x3f3162[_0xa72663(0x23e)]>0x8?''+_0x3f3162['slice'](0x0,0x8)+'*'['repeat'](_0x3f3162[_0xa72663(0x23e)]-0x8):_0x3f3162;_0x9ab92f['push'](_0xa72663(0x1fc)+_0x5c26de+(_0x503d1f?_0xa72663(0x1f9)+_0x503d1f+')':''));}return!_0x3f3162&&(_0x9ab92f[_0xa72663(0x20f)](''),_0x9ab92f['push'](_0xa72663(0x20d)),_0x9ab92f[_0xa72663(0x20f)](''),_0x9ab92f[_0xa72663(0x20f)](_0xa72663(0x243)+CLI_BIN_NAME+'\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]'),_0x9ab92f[_0xa72663(0x20f)](''),_0x9ab92f['push']('Option\x20B:\x20apps\x20config\x20('+PRODUCT_CONFIG['newConfigFileName']+')'),_0x9ab92f[_0xa72663(0x20f)](_0xa72663(0x221)),_0x9ab92f[_0xa72663(0x20f)](''),_0x9ab92f[_0xa72663(0x20f)](_0xa72663(0x233)),_0x9ab92f['push'](_0xa72663(0x1fe)+_0x2be3bd+'=ak_xxx'),_0x9ab92f['push'](''),_0x9ab92f[_0xa72663(0x20f)](_0xa72663(0x211)+CLI_BIN_NAME+'\x20auth\x20status'),_0x9ab92f['push'](_0xa72663(0x20e)+CLI_BIN_NAME+_0xa72663(0x210))),{'ok':!![],'message':_0x9ab92f['join']('\x0a')};}},{'service':a12_0x1d924d(0x1f6),'command':'info','description':a12_0x1d924d(0x226),'risk':a12_0x1d924d(0x22c),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x430b2b){const _0x1c5a0f=a12_0x1d924d,_0x48973c=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x48973c,'meta':{'env':_0x430b2b[_0x1c5a0f(0x1f5)]??_0x1c5a0f(0x1f4)}}};}}];
1
+ const a12_0x42e394=a12_0x5851;(function(_0x271e04,_0x35078e){const _0x3ccdc6=a12_0x5851,_0x56ba66=_0x271e04();while(!![]){try{const _0x152f09=parseInt(_0x3ccdc6(0x121))/0x1*(-parseInt(_0x3ccdc6(0x103))/0x2)+-parseInt(_0x3ccdc6(0x126))/0x3*(-parseInt(_0x3ccdc6(0x11d))/0x4)+-parseInt(_0x3ccdc6(0x11b))/0x5+-parseInt(_0x3ccdc6(0x109))/0x6+-parseInt(_0x3ccdc6(0x143))/0x7*(parseInt(_0x3ccdc6(0x147))/0x8)+parseInt(_0x3ccdc6(0x102))/0x9+-parseInt(_0x3ccdc6(0x141))/0xa*(-parseInt(_0x3ccdc6(0x133))/0xb);if(_0x152f09===_0x35078e)break;else _0x56ba66['push'](_0x56ba66['shift']());}catch(_0x9717ea){_0x56ba66['push'](_0x56ba66['shift']());}}}(a12_0x22fa,0x3fdb0));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';function a12_0x5851(_0x3ed2ba,_0x3293b2){_0x3ed2ba=_0x3ed2ba-0xfc;const _0x22faa9=a12_0x22fa();let _0x585146=_0x22faa9[_0x3ed2ba];return _0x585146;}import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';function a12_0x22fa(){const _0x43cacd=['validation','envName','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','AccessKey\x20(ak_xxx...)','Tip:\x20you\x20can\x20also\x20run:','length','Missing\x20accessKey.','\x20auth\x20status','Auth\x20config\x20reinitialized\x20in\x20','write','Option\x20A:\x20','nonInteractive','2359899eLAxRx','33010RZYTLk','bool','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','string','project','AccessKey:\x20','2282742ZWmnxK','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','Clear\x20accessKey\x20from\x20config','global','\x20Current\x20env:\x20','No\x20AccessKey\x20found\x20in\x20','Option\x20B:\x20apps\x20config\x20(','=ak_xxx','str','daily','env','newConfigFileName','test','access-key','slice','accessKey','status','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','1529080iUeNqc','AccessKey\x20saved\x20to\x20','1052880upDozV','Clear\x20from\x20global\x20config\x20(default)','Auth\x20mode:\x20','ClientAk','1dZhpEG','stdout','stdin','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','\x20doctor','3rlysqH','push','\x20config','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','init','\x20config.\x20Nothing\x20to\x20clear.','login','isTTY','trim','boolean','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','global-default','11hFdNvM','Then\x20verify\x20with:\x20','yes','read','production','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','`auth\x20login`\x20does\x20not\x20support\x20--yes.','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','Write\x20to\x20global\x20config\x20(default)','\x20Verify:\x20','auth','repeat','ACCESS_KEY','Option\x20C:\x20environment\x20variable','7521290JXkBPB','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','70ymqwql','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','Shorthand\x20for\x20--access-key','250584axEOge','\x20config.','\x20(via\x20','Show\x20current\x20authentication\x20status','Read\x20from\x20global\x20config\x20(default)','\x20scope.','join'];a12_0x22fa=function(){return _0x43cacd;};return a12_0x22fa();}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 _0x34269d=a12_0x5851;writeCliSideChannelLine('AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG['userCenterDisplayName']+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x34269d(0x152)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>');}function buildAccessKeySetupGuide(){const _0x1465bd=a12_0x5851;return[_0x1465bd(0x131)+PRODUCT_CONFIG['userCenterDisplayName']+':',USER_ACCESS_KEY_CREATE_URL,_0x1465bd(0x105)+CLI_BIN_NAME+_0x1465bd(0x12a)][_0x1465bd(0x14d)]('\x0a');}function canPromptForAccessKey(_0x3fcfa8){const _0x561342=a12_0x5851;return!_0x3fcfa8[_0x561342(0x101)]&&process[_0x561342(0x123)][_0x561342(0x12e)]!==![]&&process[_0x561342(0x122)][_0x561342(0x12e)]!==![];}function resolveAuthScopeFlags(_0x3f4814){const _0x5a8db5=a12_0x5851;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x3f4814[_0x5a8db5(0x104)](_0x5a8db5(0x10c)),'explicitProject':_0x3f4814[_0x5a8db5(0x104)](_0x5a8db5(0x107)),'policy':_0x5a8db5(0x132)}));}async function resolveAuthWriteInput(_0x1553fa){const _0x32380b=a12_0x5851;let _0x44ac93=(_0x1553fa[_0x32380b(0x111)]('access-key')||_0x1553fa[_0x32380b(0x111)]('ak')||'')[_0x32380b(0x12f)]();const _0x1e8435=(_0x1553fa[_0x32380b(0x111)]('env')||'')[_0x32380b(0x12f)]();if(!_0x44ac93&&canPromptForAccessKey(_0x1553fa))try{showAccessKeyCreateHint(),_0x44ac93=await promptAccessKey('');}catch(_0x16b2e2){if(isAbortPrompt(_0x16b2e2))throw CliErrors['cancelled']();throw _0x16b2e2;}if(!_0x44ac93)throw CliErrors['validation'](_0x32380b(0xfc),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x32380b(0x115)](_0x44ac93))throw CliErrors[_0x32380b(0x14e)]('Invalid\x20accessKey\x20format:\x20\x22'+_0x44ac93+'\x22','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars');if(!_0x1e8435)return{'accessKey':_0x44ac93};const _0x4305f1=normalizeEnv(_0x1e8435);return{'accessKey':_0x44ac93,'env':isDaily(_0x4305f1)?_0x32380b(0x112):isDev(_0x4305f1)?'development':_0x32380b(0x137)};}export const authDefinitions=[{'service':a12_0x42e394(0x13d),'command':a12_0x42e394(0x12d),'description':a12_0x42e394(0x10a),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x42e394(0x116),'type':a12_0x42e394(0x106),'description':a12_0x42e394(0x151)},{'name':'ak','type':a12_0x42e394(0x106),'description':'Shorthand\x20for\x20--access-key'},{'name':'global','type':a12_0x42e394(0x130),'description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':'project','type':a12_0x42e394(0x130),'description':a12_0x42e394(0x142),'default':![]}],async 'execute'(_0x4c5a5e){const _0x20af1e=a12_0x42e394;if(_0x4c5a5e[_0x20af1e(0x104)](_0x20af1e(0x135)))throw CliErrors[_0x20af1e(0x14e)](_0x20af1e(0x139),'Use\x20`'+CLI_BIN_NAME+_0x20af1e(0x150)+CLI_BIN_NAME+_0x20af1e(0x145));const _0x32d54f=(_0x4c5a5e['str'](_0x20af1e(0x116))||_0x4c5a5e[_0x20af1e(0x111)]('ak')||'')['trim']();if(!_0x32d54f&&_0x4c5a5e[_0x20af1e(0x101)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x4c07a3=await resolveAuthWriteInput(_0x4c5a5e),_0x4a7b58=resolveAuthScopeFlags(_0x4c5a5e),_0x36cd5a=readScopedConfig(_0x4a7b58);_0x36cd5a[_0x20af1e(0x118)]=_0x4c07a3[_0x20af1e(0x118)];_0x4c07a3[_0x20af1e(0x113)]&&(_0x36cd5a[_0x20af1e(0x113)]=_0x4c07a3[_0x20af1e(0x113)]);writeScopedConfig(_0x36cd5a,_0x4a7b58);const _0x4afaa2=_0x4a7b58[_0x20af1e(0x10c)]?_0x20af1e(0x10c):_0x20af1e(0x107),_0x150427=_0x36cd5a[_0x20af1e(0x113)]?_0x20af1e(0x10d)+_0x36cd5a[_0x20af1e(0x113)]+'.':'';return{'ok':!![],'message':_0x20af1e(0x11c)+_0x4afaa2+_0x20af1e(0x148)+_0x150427+'\x20Verify:\x20'+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':a12_0x42e394(0x13d),'command':a12_0x42e394(0x12b),'description':a12_0x42e394(0x129),'risk':a12_0x42e394(0xff),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'access-key','type':'string','description':a12_0x42e394(0x151)},{'name':'ak','type':a12_0x42e394(0x106),'description':a12_0x42e394(0x146)},{'name':a12_0x42e394(0x113),'type':a12_0x42e394(0x106),'description':'Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config'},{'name':a12_0x42e394(0x10c),'type':a12_0x42e394(0x130),'description':a12_0x42e394(0x13b),'default':!![]},{'name':a12_0x42e394(0x107),'type':a12_0x42e394(0x130),'description':a12_0x42e394(0x142),'default':![]}],async 'execute'(_0x4f8dc9){const _0x2f64f9=a12_0x42e394,_0x2de378=await resolveAuthWriteInput(_0x4f8dc9),_0x300dd6=resolveAuthScopeFlags(_0x4f8dc9),_0x12f319={'accessKey':_0x2de378[_0x2f64f9(0x118)]};_0x2de378[_0x2f64f9(0x113)]&&(_0x12f319[_0x2f64f9(0x113)]=_0x2de378[_0x2f64f9(0x113)]);writeScopedConfig(_0x12f319,_0x300dd6);const _0x3a7207=_0x300dd6[_0x2f64f9(0x10c)]?'global':'project',_0x17179d=_0x12f319[_0x2f64f9(0x113)]?'\x20Current\x20env:\x20'+_0x12f319[_0x2f64f9(0x113)]+'.':'';return{'ok':!![],'message':_0x2f64f9(0xfe)+_0x3a7207+_0x2f64f9(0x14c)+_0x17179d+_0x2f64f9(0x13c)+CLI_BIN_NAME+_0x2f64f9(0xfd)};}},{'service':'auth','command':'logout','description':a12_0x42e394(0x10b),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x42e394(0x10c),'type':a12_0x42e394(0x130),'description':a12_0x42e394(0x11e),'default':!![]},{'name':a12_0x42e394(0x107),'type':a12_0x42e394(0x130),'description':a12_0x42e394(0x138),'default':![]}],async 'execute'(_0xcbdfb2){const _0x3aabc8=a12_0x42e394,_0x3baba9=resolveAuthScopeFlags(_0xcbdfb2),_0x562aba=readScopedConfig(_0x3baba9),_0x179ce9=!!_0x562aba[_0x3aabc8(0x118)];delete _0x562aba[_0x3aabc8(0x118)],writeScopedConfig(_0x562aba,_0x3baba9);const _0x44d2b6=_0x3baba9['global']?'global':_0x3aabc8(0x107);if(_0x179ce9)return{'ok':!![],'message':'AccessKey\x20cleared\x20from\x20'+_0x44d2b6+_0x3aabc8(0x148)};return{'ok':!![],'message':_0x3aabc8(0x10e)+_0x44d2b6+_0x3aabc8(0x12c)};}},{'service':a12_0x42e394(0x13d),'command':a12_0x42e394(0x119),'description':a12_0x42e394(0x14a),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x42e394(0x10c),'type':a12_0x42e394(0x130),'description':a12_0x42e394(0x14b),'default':!![]},{'name':a12_0x42e394(0x107),'type':a12_0x42e394(0x130),'description':a12_0x42e394(0x13a),'default':![]}],async 'execute'(_0x436ba3){const _0x225ca6=a12_0x42e394,_0x4194f0=resolveAuthScopeFlags(_0x436ba3),_0x464feb=readScopedConfig(_0x4194f0),_0x59babc=productEnvName(_0x225ca6(0x13f)),_0x671791=productEnv(_0x225ca6(0x13f))||undefined,_0xe73ecb=_0x464feb[_0x225ca6(0x118)]||undefined,_0x57a209=_0x671791||_0xe73ecb,_0x5c6484=_0x671791?_0x59babc+'\x20env\x20var':_0xe73ecb?(_0x4194f0[_0x225ca6(0x10c)]?_0x225ca6(0x10c):_0x225ca6(0x107))+_0x225ca6(0x128):null,_0x554af4=[_0x225ca6(0x11f)+AUTH_MODE[_0x225ca6(0x120)]];if(_0x57a209){const _0x311c1b=_0x57a209['length']>0x8?''+_0x57a209[_0x225ca6(0x117)](0x0,0x8)+'*'[_0x225ca6(0x13e)](_0x57a209[_0x225ca6(0x153)]-0x8):_0x57a209;_0x554af4[_0x225ca6(0x127)](_0x225ca6(0x108)+_0x311c1b+(_0x5c6484?_0x225ca6(0x149)+_0x5c6484+')':''));}return!_0x57a209&&(_0x554af4[_0x225ca6(0x127)](''),_0x554af4[_0x225ca6(0x127)](_0x225ca6(0x144)),_0x554af4[_0x225ca6(0x127)](''),_0x554af4[_0x225ca6(0x127)](_0x225ca6(0x100)+CLI_BIN_NAME+'\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]'),_0x554af4[_0x225ca6(0x127)](''),_0x554af4[_0x225ca6(0x127)](_0x225ca6(0x10f)+PRODUCT_CONFIG[_0x225ca6(0x114)]+')'),_0x554af4[_0x225ca6(0x127)](_0x225ca6(0x11a)),_0x554af4[_0x225ca6(0x127)](''),_0x554af4[_0x225ca6(0x127)](_0x225ca6(0x140)),_0x554af4['push']('\x20\x20export\x20'+_0x59babc+_0x225ca6(0x110)),_0x554af4[_0x225ca6(0x127)](''),_0x554af4['push'](_0x225ca6(0x134)+CLI_BIN_NAME+_0x225ca6(0xfd)),_0x554af4[_0x225ca6(0x127)]('If\x20command\x20execution\x20still\x20fails,\x20run:\x20'+CLI_BIN_NAME+_0x225ca6(0x125))),{'ok':!![],'message':_0x554af4[_0x225ca6(0x14d)]('\x0a')};}},{'service':a12_0x42e394(0x13d),'command':'info','description':a12_0x42e394(0x124),'risk':a12_0x42e394(0x136),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x37d093){const _0x58201c=a12_0x42e394,_0x44df58=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x44df58,'meta':{'env':_0x37d093[_0x58201c(0x14f)]??_0x58201c(0x137)}}};}}];
@@ -1 +1 @@
1
- (function(_0x1afdbc,_0x5e99f8){const _0x1c1831=a13_0x5ceb,_0x4286cc=_0x1afdbc();while(!![]){try{const _0x4f482f=-parseInt(_0x1c1831(0x1fd))/0x1*(-parseInt(_0x1c1831(0x1f1))/0x2)+parseInt(_0x1c1831(0x1fa))/0x3*(-parseInt(_0x1c1831(0x1f7))/0x4)+-parseInt(_0x1c1831(0x1f3))/0x5*(parseInt(_0x1c1831(0x1ec))/0x6)+parseInt(_0x1c1831(0x1ed))/0x7+parseInt(_0x1c1831(0x1fe))/0x8*(parseInt(_0x1c1831(0x1fb))/0x9)+parseInt(_0x1c1831(0x1e8))/0xa*(parseInt(_0x1c1831(0x1f6))/0xb)+parseInt(_0x1c1831(0x1f8))/0xc;if(_0x4f482f===_0x5e99f8)break;else _0x4286cc['push'](_0x4286cc['shift']());}catch(_0xcaa5f4){_0x4286cc['push'](_0x4286cc['shift']());}}}(a13_0x2b89,0x4218c));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x5ec1b5=a13_0x5ceb;super(_0x5ec1b5(0x1f5)),this[_0x5ec1b5(0x1ef)]=_0x5ec1b5(0x1e9);}}function createSafeRl(){const _0x3fa30a=a13_0x5ceb,_0x108377=createInterface({'input':process['stdin'],'output':process[_0x3fa30a(0x1fc)]});let _0x3c505d;const _0x120807=new Promise((_0x647b8f,_0x134e9d)=>{const _0x2ea44c=_0x3fa30a;_0x3c505d=()=>{const _0x57f17f=a13_0x5ceb;_0x3c505d&&(_0x108377[_0x57f17f(0x1eb)]('SIGINT',_0x3c505d),_0x3c505d=undefined);try{_0x108377[_0x57f17f(0x1ea)]();}catch{}_0x134e9d(new AbortPrompt());},_0x108377[_0x2ea44c(0x1e7)](_0x2ea44c(0x1f4),_0x3c505d);}),_0x4a018e=()=>{const _0x58494f=_0x3fa30a;_0x3c505d&&(_0x108377['removeListener']('SIGINT',_0x3c505d),_0x3c505d=undefined);try{_0x108377[_0x58494f(0x1ea)]();}catch{}};return{'rl':_0x108377,'abortPromise':_0x120807,'disposeSuccess':_0x4a018e};}function a13_0x2b89(){const _0xc6e1e8=['trim','964690HVqDcb','SIGINT','User\x20aborted\x20prompt','1848lOnwJO','6212oahYxr','1086348CYLvvx','AccessKey\x20(paste\x20ak_...):\x20','795qXHtLh','22311vjTNib','stdout','6571xBcbjI','400iiJBEu','once','6880TMygwj','AbortPrompt','close','removeListener','12DiHTaM','2636795qwYYYZ','race','name','question','110yuIEPV'];a13_0x2b89=function(){return _0xc6e1e8;};return a13_0x2b89();}export async function promptAccessKey(_0x236dc2=''){const _0x1b80b5=a13_0x5ceb,{rl:_0x39dd77,abortPromise:_0x4ac809,disposeSuccess:_0x1eb35f}=createSafeRl(),_0xc5d679=new Promise(_0x4c5cca=>{const _0x13f07d=a13_0x5ceb,_0x10c322=_0x236dc2?'AccessKey\x20('+_0x236dc2+'):\x20':_0x13f07d(0x1f9);_0x39dd77[_0x13f07d(0x1f0)](_0x10c322,_0x1396e2=>{const _0x1b4dff=_0x13f07d;_0x1eb35f(),_0x4c5cca(_0x1396e2[_0x1b4dff(0x1f2)]()||_0x236dc2);});});return Promise[_0x1b80b5(0x1ee)]([_0xc5d679,_0x4ac809]);}function a13_0x5ceb(_0x1c11e1,_0x119a4a){_0x1c11e1=_0x1c11e1-0x1e7;const _0x2b89ff=a13_0x2b89();let _0x5ceb34=_0x2b89ff[_0x1c11e1];return _0x5ceb34;}export function isAbortPrompt(_0x3aae97){const _0x572eea=a13_0x5ceb;return _0x3aae97 instanceof Error&&_0x3aae97['name']===_0x572eea(0x1e9);}
1
+ (function(_0x163f8f,_0x1b138e){const _0x36508c=a13_0x4ba0,_0x60b678=_0x163f8f();while(!![]){try{const _0x21a574=-parseInt(_0x36508c(0xd9))/0x1*(parseInt(_0x36508c(0xec))/0x2)+-parseInt(_0x36508c(0xdf))/0x3*(parseInt(_0x36508c(0xe5))/0x4)+parseInt(_0x36508c(0xe2))/0x5*(parseInt(_0x36508c(0xe8))/0x6)+parseInt(_0x36508c(0xef))/0x7*(-parseInt(_0x36508c(0xdd))/0x8)+-parseInt(_0x36508c(0xe1))/0x9*(parseInt(_0x36508c(0xea))/0xa)+parseInt(_0x36508c(0xd8))/0xb*(parseInt(_0x36508c(0xee))/0xc)+-parseInt(_0x36508c(0xf0))/0xd*(-parseInt(_0x36508c(0xdc))/0xe);if(_0x21a574===_0x1b138e)break;else _0x60b678['push'](_0x60b678['shift']());}catch(_0x2a3fa9){_0x60b678['push'](_0x60b678['shift']());}}}(a13_0x45b5,0x7ad12));function a13_0x4ba0(_0x3a6986,_0x40d18e){_0x3a6986=_0x3a6986-0xd7;const _0x45b51b=a13_0x45b5();let _0x4ba0c4=_0x45b51b[_0x3a6986];return _0x4ba0c4;}import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x376a87=a13_0x4ba0;super(_0x376a87(0xde)),this[_0x376a87(0xe9)]=_0x376a87(0xed);}}function a13_0x45b5(){const _0x24dacf=['3012datnLF','name','2822910UVRHfK','SIGINT','50BcNetG','AbortPrompt','3968988BjjGGV','2608501oTuVfs','24505KvGyMp','close','11mCJInm','10533lFEqpn','AccessKey\x20(','stdout','2072TGpQYK','8uWawew','User\x20aborted\x20prompt','488382YrCzKJ','race','9hOwQyW','9705MjJibE','question','trim','4NbqyRA','removeListener','once'];a13_0x45b5=function(){return _0x24dacf;};return a13_0x45b5();}function createSafeRl(){const _0x3ca89e=a13_0x4ba0,_0x196204=createInterface({'input':process['stdin'],'output':process[_0x3ca89e(0xdb)]});let _0x2bedb0;const _0x5d72ef=new Promise((_0x31eedf,_0x3661c1)=>{const _0x441eb0=_0x3ca89e;_0x2bedb0=()=>{const _0xce1c9f=a13_0x4ba0;_0x2bedb0&&(_0x196204['removeListener']('SIGINT',_0x2bedb0),_0x2bedb0=undefined);try{_0x196204[_0xce1c9f(0xd7)]();}catch{}_0x3661c1(new AbortPrompt());},_0x196204[_0x441eb0(0xe7)]('SIGINT',_0x2bedb0);}),_0x5323d8=()=>{const _0x359af2=_0x3ca89e;_0x2bedb0&&(_0x196204[_0x359af2(0xe6)](_0x359af2(0xeb),_0x2bedb0),_0x2bedb0=undefined);try{_0x196204[_0x359af2(0xd7)]();}catch{}};return{'rl':_0x196204,'abortPromise':_0x5d72ef,'disposeSuccess':_0x5323d8};}export async function promptAccessKey(_0x407208=''){const _0x4b3012=a13_0x4ba0,{rl:_0x2d9094,abortPromise:_0xcce63a,disposeSuccess:_0x2ab88e}=createSafeRl(),_0x18aa7e=new Promise(_0x3ebf39=>{const _0x1a4889=a13_0x4ba0,_0xcc1aa6=_0x407208?_0x1a4889(0xda)+_0x407208+'):\x20':'AccessKey\x20(paste\x20ak_...):\x20';_0x2d9094[_0x1a4889(0xe3)](_0xcc1aa6,_0x4c7a3a=>{const _0x30af19=_0x1a4889;_0x2ab88e(),_0x3ebf39(_0x4c7a3a[_0x30af19(0xe4)]()||_0x407208);});});return Promise[_0x4b3012(0xe0)]([_0x18aa7e,_0xcce63a]);}export function isAbortPrompt(_0x2f8054){const _0x4983cc=a13_0x4ba0;return _0x2f8054 instanceof Error&&_0x2f8054[_0x4983cc(0xe9)]==='AbortPrompt';}