@lovrabet/lovrabet-cli 2.1.11-beta.1 → 2.1.11-beta.3

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 (119) 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/rate-limit.js +1 -0
  87. package/lib/framework/response.js +1 -1
  88. package/lib/framework/runner-confirmation.js +1 -1
  89. package/lib/framework/runner-error.js +1 -1
  90. package/lib/framework/runner.js +1 -1
  91. package/lib/framework/schema-export.js +1 -1
  92. package/lib/framework/service-order.js +1 -1
  93. package/lib/framework/types.js +1 -1
  94. package/lib/generated/build-info.js +1 -1
  95. package/lib/help.js +1 -1
  96. package/lib/skills/npx-skills-add.js +1 -1
  97. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  98. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  99. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  100. package/lib/skills/runtime-skill-sync/links.js +1 -1
  101. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  102. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  103. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  104. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  105. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  106. package/lib/skills/runtime-skill-sync/push.js +1 -1
  107. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  108. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  109. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  110. package/lib/skills/runtime-skill-sync.js +1 -1
  111. package/lib/utils/apply-jq-filter.js +1 -1
  112. package/lib/utils/logger.js +1 -1
  113. package/lib/utils/lossless-json.js +1 -0
  114. package/lib/utils/params.js +1 -1
  115. package/lib/utils/platform.js +1 -1
  116. package/lib/utils/update-notice.js +1 -1
  117. package/lib/utils/version.js +1 -1
  118. package/lib/utils/write-cli-side-channel.js +1 -1
  119. package/package.json +1 -1
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const a0_0x51e959=a0_0x1be9;(function(_0x59fb33,_0x14c866){const _0x46de9b=a0_0x1be9,_0x1f3cc7=_0x59fb33();while(!![]){try{const _0x18110d=-parseInt(_0x46de9b(0x6f))/0x1+parseInt(_0x46de9b(0x72))/0x2*(-parseInt(_0x46de9b(0x98))/0x3)+-parseInt(_0x46de9b(0x73))/0x4*(-parseInt(_0x46de9b(0x77))/0x5)+parseInt(_0x46de9b(0x91))/0x6+-parseInt(_0x46de9b(0x7c))/0x7*(parseInt(_0x46de9b(0x74))/0x8)+parseInt(_0x46de9b(0x70))/0x9*(-parseInt(_0x46de9b(0x7a))/0xa)+parseInt(_0x46de9b(0x7e))/0xb*(parseInt(_0x46de9b(0x84))/0xc);if(_0x18110d===_0x14c866)break;else _0x1f3cc7['push'](_0x1f3cc7['shift']());}catch(_0x3b5cb3){_0x1f3cc7['push'](_0x1f3cc7['shift']());}}}(a0_0x2ec4,0x95470));import{jsx as a0_0x2aacd7}from'react/jsx-runtime';import a0_0x413837 from'meow';import{render}from'ink';import{Help}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{buildConfigFromFlags,initGlobalEnvironment}from'./context.js';function a0_0x2ec4(){const _0x5a515c=['definition','defaultCommand','code','exit','3922788seCEHG','hint','catch','\x0aCancelled.\x0a','write','unknownCommand','error','162309aRVJwj','stderr','Unexpected\x20error:','647278AVmyJc','5106159OAWbkZ','ExitPromptError','34NLgYvE','4Blfmjb','8oMAlvc','flags','./framework/preparse.js','148245rnrlze','handler','\x20->\x20--','10BPzRUv','input','4988697ebnOAC','ERR_USE_AFTER_CLOSE','1804VEzoMO','log','assign','message','args','original','203052iqWYTK','name','exitCode','help','corrected','ERR_STREAM_DESTROYED',':\x20--','cancelled','Hint:\x20'];a0_0x2ec4=function(){return _0x5a515c;};return a0_0x2ec4();}import{isKnownService,getServiceEntry,findDefinition,getAllDefinitions}from'./commands/registry.js';function a0_0x1be9(_0x136d0a,_0x3128dc){_0x136d0a=_0x136d0a-0x6f;const _0x2ec412=a0_0x2ec4();let _0x1be929=_0x2ec412[_0x136d0a];return _0x1be929;}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_0x413837(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'version':getCliVersionDisplay()});void main()[a0_0x51e959(0x93)](handleError);async function main(){try{await run();}catch(_0x397397){handleError(_0x397397);}}async function run(){const _0x9d8bc7=a0_0x51e959;let _0x1957e7=cli[_0x9d8bc7(0x7b)][0x0],_0x21abdc=cli[_0x9d8bc7(0x7b)][0x1];const _0x42a045=cli[_0x9d8bc7(0x75)];try{const {correctFlags:_0x4355f8}=await import(_0x9d8bc7(0x76)),_0x1f8896=getAllDefinitions()['flatMap'](_0x2de928=>_0x2de928[_0x9d8bc7(0x75)]??[]),{flags:_0x570809,corrections:_0x26abe6}=_0x4355f8(_0x42a045,_0x1f8896);if(_0x26abe6['length']>0x0){for(const _0x543c6d of _0x26abe6){process[_0x9d8bc7(0x99)][_0x9d8bc7(0x95)]('[preparse]\x20'+_0x543c6d[_0x9d8bc7(0x78)]+_0x9d8bc7(0x8a)+_0x543c6d[_0x9d8bc7(0x83)]+_0x9d8bc7(0x79)+_0x543c6d[_0x9d8bc7(0x88)]+'\x0a');}Object['assign'](_0x42a045,_0x570809);}}catch{}if(!_0x1957e7){const {waitUntilExit:_0x199faa}=render(a0_0x2aacd7(Help,{}));await _0x199faa();return;}if(!isKnownService(_0x1957e7)){const _0x4d3890=resolveDynamicServiceCommand(cli[_0x9d8bc7(0x7b)],_0x42a045);if(_0x4d3890){if(_0x42a045[_0x9d8bc7(0x87)]){console[_0x9d8bc7(0x7f)](generateCommandHelp(_0x4d3890['definition']));return;}Object[_0x9d8bc7(0x80)](_0x42a045,_0x4d3890[_0x9d8bc7(0x75)]);const _0x23e4b1=buildConfigFromFlags(_0x42a045);await initGlobalEnvironment(_0x23e4b1);const _0x15a9fe=createPipelineEnv(_0x23e4b1,_0x42a045);_0x15a9fe[_0x9d8bc7(0x82)]=_0x4d3890[_0x9d8bc7(0x82)],await runCommand(_0x4d3890[_0x9d8bc7(0x8d)],_0x15a9fe);return;}if(_0x42a045[_0x9d8bc7(0x87)]){const _0x47b0d7=generateDynamicServiceHelp(_0x1957e7);if(_0x47b0d7){console[_0x9d8bc7(0x7f)](_0x47b0d7);return;}}const {waitUntilExit:_0x47c84f}=render(a0_0x2aacd7(Help,{}));await _0x47c84f();return;}const _0x5a2806=getServiceEntry(_0x1957e7);if(!_0x21abdc){if(_0x42a045[_0x9d8bc7(0x87)]){console[_0x9d8bc7(0x7f)](generateServiceHelp(_0x1957e7));return;}if(_0x5a2806['defaultCommand'])_0x21abdc=_0x5a2806[_0x9d8bc7(0x8e)];else{console['log'](generateServiceHelp(_0x1957e7));return;}}const _0x472afa=findDefinition(_0x1957e7,_0x21abdc);!_0x472afa&&(console[_0x9d8bc7(0x7f)](generateServiceHelp(_0x1957e7)),handleError(CliErrors[_0x9d8bc7(0x96)](_0x1957e7+'\x20'+_0x21abdc)));if(_0x42a045[_0x9d8bc7(0x87)]){console[_0x9d8bc7(0x7f)](generateCommandHelp(_0x472afa));return;}const _0x540d05=buildConfigFromFlags(_0x42a045);await initGlobalEnvironment(_0x540d05);const _0x27e4ca=createPipelineEnv(_0x540d05,_0x42a045);_0x27e4ca['args']=cli[_0x9d8bc7(0x7b)]['slice'](0x2),await runCommand(_0x472afa,_0x27e4ca);}function handleError(_0x1a78da){const _0x46d8f4=a0_0x51e959;if(_0x1a78da instanceof CliError){_0x1a78da[_0x46d8f4(0x8f)]===_0x46d8f4(0x8b)&&(process[_0x46d8f4(0x99)]['write']('\x0aCancelled.\x0a'),process[_0x46d8f4(0x90)](0x0));console[_0x46d8f4(0x97)]('Error:\x20'+_0x1a78da[_0x46d8f4(0x81)]);if(_0x1a78da[_0x46d8f4(0x92)])console[_0x46d8f4(0x97)](_0x46d8f4(0x8c)+_0x1a78da[_0x46d8f4(0x92)]);process[_0x46d8f4(0x90)](_0x1a78da[_0x46d8f4(0x86)]);}isUserCancellation(_0x1a78da)&&(process[_0x46d8f4(0x99)]['write'](_0x46d8f4(0x94)),process[_0x46d8f4(0x90)](0x0)),console['error'](_0x46d8f4(0x9a),_0x1a78da),process['exit'](0x1);}function isUserCancellation(_0x2ce82d){const _0x3c3bbe=a0_0x51e959;if(!(_0x2ce82d instanceof Error))return![];if(_0x2ce82d[_0x3c3bbe(0x85)]===_0x3c3bbe(0x71))return!![];if(_0x2ce82d['code']===_0x3c3bbe(0x7d))return!![];if(_0x2ce82d[_0x3c3bbe(0x8f)]===_0x3c3bbe(0x89))return!![];return![];}
2
+ const a0_0x72f78d=a0_0x53a7;(function(_0xfdb975,_0x22e4b7){const _0x1f26fb=a0_0x53a7,_0x7b213a=_0xfdb975();while(!![]){try{const _0x485bbe=-parseInt(_0x1f26fb(0xd0))/0x1*(-parseInt(_0x1f26fb(0xba))/0x2)+parseInt(_0x1f26fb(0xd2))/0x3+parseInt(_0x1f26fb(0xaa))/0x4*(parseInt(_0x1f26fb(0xac))/0x5)+-parseInt(_0x1f26fb(0xad))/0x6*(parseInt(_0x1f26fb(0xc5))/0x7)+parseInt(_0x1f26fb(0xcf))/0x8*(-parseInt(_0x1f26fb(0xc0))/0x9)+parseInt(_0x1f26fb(0xbb))/0xa+parseInt(_0x1f26fb(0xb6))/0xb;if(_0x485bbe===_0x22e4b7)break;else _0x7b213a['push'](_0x7b213a['shift']());}catch(_0x146d6a){_0x7b213a['push'](_0x7b213a['shift']());}}}(a0_0x3aa1,0x64c09));function a0_0x3aa1(){const _0x290376=['ERR_USE_AFTER_CLOSE','name','ERR_STREAM_DESTROYED','assign','args','2623038qOcLRP','message','input','Error:\x20','2060idrexl','2995350seowTq','exit','[preparse]\x20','\x0aCancelled.\x0a','cancelled','18LUCSiy','catch','Hint:\x20','hint','error','3365502BDZGGJ','stderr','help','write','slice',':\x20--','length','exitCode','original','code','2791600IqTuxV','173pWjZtv','log','2274369KczBCz','flags','ExitPromptError','definition','handler','./framework/preparse.js','4KehPQh','defaultCommand','585305aAvVva','6scJLhE','unknownCommand','Unexpected\x20error:','corrected'];a0_0x3aa1=function(){return _0x290376;};return a0_0x3aa1();}import{jsx as a0_0x29785d}from'react/jsx-runtime';import a0_0x4cf3ce from'meow';import{render}from'ink';import{Help}from'./help.js';import{CliError,CliErrors}from'./errors.js';function a0_0x53a7(_0x18ad23,_0x639317){_0x18ad23=_0x18ad23-0xa7;const _0x3aa107=a0_0x3aa1();let _0x53a76f=_0x3aa107[_0x18ad23];return _0x53a76f;}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_0x4cf3ce(helpText,{'importMeta':import.meta,'flags':buildMeowFlags(),'version':getCliVersionDisplay()});void main()[a0_0x72f78d(0xc1)](handleError);async function main(){try{await run();}catch(_0x5e45ea){handleError(_0x5e45ea);}}async function run(){const _0x14db27=a0_0x72f78d;let _0x51eae8=cli['input'][0x0],_0x1464c7=cli[_0x14db27(0xb8)][0x1];const _0x395f14=cli[_0x14db27(0xd3)];try{const {correctFlags:_0x2a78fe}=await import(_0x14db27(0xa9)),_0x4c0567=getAllDefinitions()['flatMap'](_0x1cf9a9=>_0x1cf9a9['flags']??[]),{flags:_0x3d4204,corrections:_0x58b504}=_0x2a78fe(_0x395f14,_0x4c0567);if(_0x58b504[_0x14db27(0xcb)]>0x0){for(const _0x9284d1 of _0x58b504){process[_0x14db27(0xc6)][_0x14db27(0xc8)](_0x14db27(0xbd)+_0x9284d1[_0x14db27(0xa8)]+_0x14db27(0xca)+_0x9284d1[_0x14db27(0xcd)]+'\x20->\x20--'+_0x9284d1[_0x14db27(0xb0)]+'\x0a');}Object[_0x14db27(0xb4)](_0x395f14,_0x3d4204);}}catch{}if(!_0x51eae8){const {waitUntilExit:_0x5e53d3}=render(a0_0x29785d(Help,{}));await _0x5e53d3();return;}if(!isKnownService(_0x51eae8)){const _0x2de0a0=resolveDynamicServiceCommand(cli[_0x14db27(0xb8)],_0x395f14);if(_0x2de0a0){if(_0x395f14[_0x14db27(0xc7)]){console[_0x14db27(0xd1)](generateCommandHelp(_0x2de0a0[_0x14db27(0xa7)]));return;}Object['assign'](_0x395f14,_0x2de0a0[_0x14db27(0xd3)]);const _0x1bb358=buildConfigFromFlags(_0x395f14);await initGlobalEnvironment(_0x1bb358);const _0x337ad9=createPipelineEnv(_0x1bb358,_0x395f14);_0x337ad9[_0x14db27(0xb5)]=_0x2de0a0[_0x14db27(0xb5)],await runCommand(_0x2de0a0['definition'],_0x337ad9);return;}if(_0x395f14[_0x14db27(0xc7)]){const _0x37a30d=generateDynamicServiceHelp(_0x51eae8);if(_0x37a30d){console[_0x14db27(0xd1)](_0x37a30d);return;}}const {waitUntilExit:_0x44e4df}=render(a0_0x29785d(Help,{}));await _0x44e4df();return;}const _0x14a54d=getServiceEntry(_0x51eae8);if(!_0x1464c7){if(_0x395f14[_0x14db27(0xc7)]){console[_0x14db27(0xd1)](generateServiceHelp(_0x51eae8));return;}if(_0x14a54d[_0x14db27(0xab)])_0x1464c7=_0x14a54d[_0x14db27(0xab)];else{console[_0x14db27(0xd1)](generateServiceHelp(_0x51eae8));return;}}const _0x7522f4=findDefinition(_0x51eae8,_0x1464c7);!_0x7522f4&&(console['log'](generateServiceHelp(_0x51eae8)),handleError(CliErrors[_0x14db27(0xae)](_0x51eae8+'\x20'+_0x1464c7)));if(_0x395f14[_0x14db27(0xc7)]){console['log'](generateCommandHelp(_0x7522f4));return;}const _0x70fd14=buildConfigFromFlags(_0x395f14);await initGlobalEnvironment(_0x70fd14);const _0x555688=createPipelineEnv(_0x70fd14,_0x395f14);_0x555688[_0x14db27(0xb5)]=cli[_0x14db27(0xb8)][_0x14db27(0xc9)](0x2),await runCommand(_0x7522f4,_0x555688);}function handleError(_0x883ae3){const _0x162795=a0_0x72f78d;if(_0x883ae3 instanceof CliError){_0x883ae3['code']===_0x162795(0xbf)&&(process[_0x162795(0xc6)][_0x162795(0xc8)]('\x0aCancelled.\x0a'),process[_0x162795(0xbc)](0x0));console[_0x162795(0xc4)](_0x162795(0xb9)+_0x883ae3[_0x162795(0xb7)]);if(_0x883ae3['hint'])console[_0x162795(0xc4)](_0x162795(0xc2)+_0x883ae3[_0x162795(0xc3)]);process[_0x162795(0xbc)](_0x883ae3[_0x162795(0xcc)]);}isUserCancellation(_0x883ae3)&&(process['stderr'][_0x162795(0xc8)](_0x162795(0xbe)),process[_0x162795(0xbc)](0x0)),console[_0x162795(0xc4)](_0x162795(0xaf),_0x883ae3),process['exit'](0x1);}function isUserCancellation(_0x42f411){const _0x4b19ff=a0_0x72f78d;if(!(_0x42f411 instanceof Error))return![];if(_0x42f411[_0x4b19ff(0xb2)]===_0x4b19ff(0xd4))return!![];if(_0x42f411[_0x4b19ff(0xce)]===_0x4b19ff(0xb1))return!![];if(_0x42f411['code']===_0x4b19ff(0xb3))return!![];return![];}
@@ -1 +1 @@
1
- const a1_0x3c4002=a1_0x6aaf;(function(_0x1f1edb,_0x120244){const _0xca1351=a1_0x6aaf,_0x5de3d5=_0x1f1edb();while(!![]){try{const _0x164e5f=-parseInt(_0xca1351(0xeb))/0x1+-parseInt(_0xca1351(0x11d))/0x2*(parseInt(_0xca1351(0x117))/0x3)+-parseInt(_0xca1351(0xcc))/0x4+-parseInt(_0xca1351(0x101))/0x5+-parseInt(_0xca1351(0xff))/0x6+-parseInt(_0xca1351(0x105))/0x7*(-parseInt(_0xca1351(0x118))/0x8)+parseInt(_0xca1351(0x10e))/0x9*(parseInt(_0xca1351(0x128))/0xa);if(_0x164e5f===_0x120244)break;else _0x5de3d5['push'](_0x5de3d5['shift']());}catch(_0x270e1e){_0x5de3d5['push'](_0x5de3d5['shift']());}}}(a1_0x359e,0xb12ff));function a1_0x359e(){const _0x154f90=['{\x22param\x22:\x22value\x22}','str','Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset','Endpoint\x20function\x20name','Execute\x20custom\x20SQL','/api/custom/executeSql','dataset_data_create','summary','toLowerCase','dataset_list','8319910VbBPlU','执行自定义\x20SQL','/api/endpoint/{appCode}/functions','path','relations\x20contains\x20the\x20object-shaped\x20API\x20relations\x20value\x20when\x20returned','API\x20doc\x20code\x20not\x20found:\x20','paging.totalCount\x20gives\x20total\x20rows','lovrabet\x20bff\x20detail\x20--id\x20<scriptId>\x20--appcode\x20<appCode>','list','read','##\x20Filter\x20dataset\x20data','##\x20Dataset\x20detail','##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.','paging\x20contains\x20pagination','Execute\x20BF\x20endpoint\x20function','lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27','custom_sql','title','##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.','需要按数据集\x20code\x20获取字段、表信息、关联关系(relations)或操作定义时使用','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.','whenToUse','需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','List\x20BF\x20endpoint\x20functions','5432688iXkQIl','string','where\x20filters\x20before\x20aggregation','/api/{appCode}/{datasetCode}/create','This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.','Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.','appCode','bf_execute','method','{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','##\x20List\x20datasets','detail','None','需要携带\x20where、orderBy、分页等条件读取业务数据时使用','已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','/api/dataset/getOneByCode?code={datasetCode}','需要向指定数据集新增一条业务数据时使用','执行指定\x20BF\x20函数','Dataset\x20detail','Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text','api-doc','需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用','分页获取数据集列表','length','##\x20List\x20BF\x20endpoint\x20functions\x0a\x0aDiscover\x20executable\x20endpoint\x20functions.','/api/{appCode}/{datasetCode}/filter','/api/{appCode}/{datasetCode}/getOne','Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result','已经确认目标\x20BF\x20的\x20scriptName,且需要实际调用该\x20ENDPOINT\x20脚本完成业务操作时使用','custom_sql_execute','tableData\x20contains\x20dataset\x20id/code/name','621162BEPEkQ','result\x20rows\x20contain\x20aggregate\x20aliases','code','List\x20available\x20runtime\x20API\x20documentation\x20entries','scriptName','{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','Inspect\x20field\x20names,\x20relations,\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.','category','查询单条数据','datasetCode','trim','/api/{appCode}/{datasetCode}/aggregate','If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.','/api/dataset/get-dataset-list-by-app-code','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','join','{\x22fieldName\x22:\x22value\x22}','Aggregate\x20dataset\x20data','POST','##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.','8153100EnGceZ','{\x22aggregate\x22:[{\x22column\x22:\x20\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','1553140jMCeEU','dataset','Current\x20app\x20code','##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.','955241dPAMKP','operations\x20describes\x20runtime\x20APIs','Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.','includes','`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','dataset_detail','CLI\x20has\x20typed\x20`bff\x20detail`\x20and\x20`bff\x20exec`\x20commands\x20for\x20endpoint\x20scripts.','Returns\x20SQL\x20execution\x20payload','Returns\x20script\x20business\x20payload','45TIZdkF','tableData\x20contains\x20records','validation','已经知道记录\x20id,需要按数据集读取单条业务数据时使用','获取应用下可调用的\x20BF\x20函数列表','lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress','Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.','Get\x20one\x20dataset\x20record','dataset_data_filter','1403097nkIvIj','40GaoofC','lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27','List\x20datasets','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.','32-character\x20dataset\x20code','2uMGxvW'];a1_0x359e=function(){return _0x154f90;};return a1_0x359e();}import{CliErrors}from'../../errors.js';const CATEGORY_FLAG={'name':'category','type':a1_0x3c4002(0xcd),'description':a1_0x3c4002(0x120)},KEYWORD_FLAG={'name':'keyword','type':'string','description':a1_0x3c4002(0xdf)},DOC_CODE_FLAG={'name':'code','type':a1_0x3c4002(0xcd),'required':!![],'description':'API\x20doc\x20code,\x20for\x20example\x20dataset_list'},DOCS=[{'code':a1_0x3c4002(0x127),'category':a1_0x3c4002(0x102),'title':a1_0x3c4002(0x11a),'method':'POST','path':a1_0x3c4002(0xf8),'summary':a1_0x3c4002(0xe2),'whenToUse':a1_0x3c4002(0xca),'pathParams':[],'queryParams':[],'bodySchema':'{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','responseHighlights':[a1_0x3c4002(0xea),a1_0x3c4002(0x12e)],'examples':[a1_0x3c4002(0x113)],'notes':['CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.'],'markdown':[a1_0x3c4002(0xd6),'','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.']['join']('\x0a')},{'code':a1_0x3c4002(0x10a),'category':a1_0x3c4002(0x102),'title':a1_0x3c4002(0xde),'method':'GET','path':a1_0x3c4002(0xdb),'summary':'获取数据集详情','whenToUse':a1_0x3c4002(0xc7),'pathParams':[],'queryParams':[{'name':a1_0x3c4002(0xed),'description':a1_0x3c4002(0x11c)}],'bodySchema':'None','responseHighlights':['fields/properties\x20describe\x20data\x20shape',a1_0x3c4002(0x12c),a1_0x3c4002(0x106)],'examples':['lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>'],'notes':[a1_0x3c4002(0xf7)],'markdown':[a1_0x3c4002(0x133),'',a1_0x3c4002(0xf1)][a1_0x3c4002(0xfa)]('\x0a')},{'code':a1_0x3c4002(0x116),'category':a1_0x3c4002(0x102),'title':'Filter\x20dataset\x20data','method':'POST','path':a1_0x3c4002(0xe5),'summary':'条件过滤查询数据','whenToUse':a1_0x3c4002(0xd9),'pathParams':[{'name':a1_0x3c4002(0xd2),'description':a1_0x3c4002(0x103)},{'name':a1_0x3c4002(0xf4),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':a1_0x3c4002(0xf0),'responseHighlights':[a1_0x3c4002(0x10f),a1_0x3c4002(0x135)],'examples':['lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:5}\x27'],'notes':[a1_0x3c4002(0x114)],'markdown':[a1_0x3c4002(0x132),'',a1_0x3c4002(0xc8)][a1_0x3c4002(0xfa)]('\x0a')},{'code':'dataset_data_aggregate','category':a1_0x3c4002(0x102),'title':a1_0x3c4002(0xfc),'method':'POST','path':a1_0x3c4002(0xf6),'summary':'聚合查询数据集数据','whenToUse':a1_0x3c4002(0xe1),'pathParams':[{'name':a1_0x3c4002(0xd2),'description':a1_0x3c4002(0x103)},{'name':a1_0x3c4002(0xf4),'description':a1_0x3c4002(0x11c)}],'queryParams':[],'bodySchema':a1_0x3c4002(0x100),'responseHighlights':[a1_0x3c4002(0xec),a1_0x3c4002(0xce)],'examples':[a1_0x3c4002(0xf9)],'notes':['Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.',a1_0x3c4002(0x109)],'markdown':['##\x20Aggregate\x20dataset\x20data','',a1_0x3c4002(0x11b)][a1_0x3c4002(0xfa)]('\x0a')},{'code':'dataset_data_get_one','category':'dataset','title':a1_0x3c4002(0x115),'method':a1_0x3c4002(0xfd),'path':a1_0x3c4002(0xe6),'summary':a1_0x3c4002(0xf3),'whenToUse':a1_0x3c4002(0x111),'pathParams':[{'name':a1_0x3c4002(0xd2),'description':a1_0x3c4002(0x103)},{'name':a1_0x3c4002(0xf4),'description':a1_0x3c4002(0x11c)}],'queryParams':[],'bodySchema':'{\x22id\x22:123}','responseHighlights':['Returns\x20one\x20matching\x20business\x20record'],'examples':['lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27'],'notes':['Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.'],'markdown':a1_0x3c4002(0x104)},{'code':a1_0x3c4002(0x124),'category':a1_0x3c4002(0x102),'title':'Create\x20dataset\x20record','method':a1_0x3c4002(0xfd),'path':a1_0x3c4002(0xcf),'summary':'创建数据','whenToUse':a1_0x3c4002(0xdc),'pathParams':[{'name':'appCode','description':a1_0x3c4002(0x103)},{'name':a1_0x3c4002(0xf4),'description':a1_0x3c4002(0x11c)}],'queryParams':[],'bodySchema':a1_0x3c4002(0xfb),'responseHighlights':[a1_0x3c4002(0xe7)],'examples':[a1_0x3c4002(0xc3)],'notes':[a1_0x3c4002(0xd0)],'markdown':a1_0x3c4002(0xc6)},{'code':'bf_function_list','category':'bf','title':a1_0x3c4002(0xcb),'method':'GET','path':a1_0x3c4002(0x12a),'summary':a1_0x3c4002(0x112),'whenToUse':'需要先确认当前应用有哪些可执行的\x20BF/ENDPOINT\x20函数,以及收敛可用\x20scriptName\x20时使用','pathParams':[{'name':'appCode','description':'Current\x20app\x20code'}],'queryParams':[],'bodySchema':a1_0x3c4002(0xd8),'responseHighlights':['Returns\x20endpoint\x20functionName/id/description'],'examples':[a1_0x3c4002(0x12f)],'notes':[a1_0x3c4002(0x10b)],'markdown':a1_0x3c4002(0xe4)},{'code':a1_0x3c4002(0xd3),'category':'bf','title':a1_0x3c4002(0x136),'method':'POST','path':'/api/endpoint/{appCode}/{scriptName}','summary':a1_0x3c4002(0xdd),'whenToUse':a1_0x3c4002(0xe8),'pathParams':[{'name':a1_0x3c4002(0xd2),'description':a1_0x3c4002(0x103)},{'name':a1_0x3c4002(0xef),'description':a1_0x3c4002(0x121)}],'queryParams':[],'bodySchema':a1_0x3c4002(0x11e),'responseHighlights':[a1_0x3c4002(0x10d)],'examples':['lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27'],'notes':[a1_0x3c4002(0xd1)],'markdown':a1_0x3c4002(0x134)},{'code':a1_0x3c4002(0xe9),'category':a1_0x3c4002(0xc4),'title':a1_0x3c4002(0x122),'method':a1_0x3c4002(0xfd),'path':a1_0x3c4002(0x123),'summary':a1_0x3c4002(0x129),'whenToUse':a1_0x3c4002(0xda),'pathParams':[],'queryParams':[],'bodySchema':a1_0x3c4002(0xd5),'responseHighlights':[a1_0x3c4002(0x10c)],'examples':[a1_0x3c4002(0x119)],'notes':[a1_0x3c4002(0x107)],'markdown':a1_0x3c4002(0xfe)}];function entrySummary(_0x467dcb){const _0x26bdca=a1_0x3c4002;return{'code':_0x467dcb[_0x26bdca(0xed)],'category':_0x467dcb[_0x26bdca(0xf2)],'method':_0x467dcb['method'],'path':_0x467dcb[_0x26bdca(0x12b)],'summary':_0x467dcb[_0x26bdca(0x125)],'whenToUse':_0x467dcb['whenToUse']};}function a1_0x6aaf(_0x300744,_0x425a04){_0x300744=_0x300744-0xc3;const _0x359e4d=a1_0x359e();let _0x6aafa9=_0x359e4d[_0x300744];return _0x6aafa9;}export function listApiDocEntries(_0x3c811a={}){const _0x379283=a1_0x3c4002,_0x5cf907=String(_0x3c811a['category']||'')[_0x379283(0xf5)](),_0x5dc602=String(_0x3c811a['keyword']||'')['trim']()[_0x379283(0x126)]();return DOCS['filter'](_0x4326f0=>{const _0x4e8c49=_0x379283;if(_0x5cf907&&_0x4326f0[_0x4e8c49(0xf2)]!==_0x5cf907)return![];if(!_0x5dc602)return!![];return[_0x4326f0[_0x4e8c49(0xed)],_0x4326f0[_0x4e8c49(0xf2)],_0x4326f0[_0x4e8c49(0xd4)],_0x4326f0[_0x4e8c49(0x12b)],_0x4326f0[_0x4e8c49(0x125)],_0x4326f0[_0x4e8c49(0xc9)],_0x4326f0[_0x4e8c49(0xc5)]]['join']('\x20')[_0x4e8c49(0x126)]()[_0x4e8c49(0x108)](_0x5dc602);})['map'](entrySummary);}export function getApiDocDetail(_0x295fdc){const _0x7a6231=a1_0x3c4002,_0x37501e=DOCS['find'](_0x54f4de=>_0x54f4de[_0x7a6231(0xed)]===_0x295fdc);if(!_0x37501e)throw CliErrors[_0x7a6231(0x110)](_0x7a6231(0x12d)+_0x295fdc);return{..._0x37501e};}const apiDocList={'service':a1_0x3c4002(0xe0),'command':a1_0x3c4002(0x130),'description':a1_0x3c4002(0xee),'risk':a1_0x3c4002(0x131),'requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0x4701b){const _0x23e3fb=a1_0x3c4002,_0x5d31b5=listApiDocEntries({'category':_0x4701b['str']('category'),'keyword':_0x4701b[_0x23e3fb(0x11f)]('keyword')});return{'ok':!![],'data':{'total':_0x5d31b5[_0x23e3fb(0xe3)],'items':_0x5d31b5}};}},apiDocDetail={'service':'api-doc','command':a1_0x3c4002(0xd7),'description':'Show\x20runtime\x20API\x20documentation\x20by\x20code','risk':'read','requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0x5e8420){const _0x328902=a1_0x3c4002;return{'ok':!![],'data':getApiDocDetail(_0x5e8420[_0x328902(0x11f)](_0x328902(0xed)))};}};export const apiDocDefinitions=[apiDocList,apiDocDetail];
1
+ const a1_0x53e504=a1_0x2abc;(function(_0x571665,_0x37c3b9){const _0x5a7bd9=a1_0x2abc,_0x347764=_0x571665();while(!![]){try{const _0x1575f5=parseInt(_0x5a7bd9(0x223))/0x1*(-parseInt(_0x5a7bd9(0x247))/0x2)+parseInt(_0x5a7bd9(0x238))/0x3*(-parseInt(_0x5a7bd9(0x1d5))/0x4)+-parseInt(_0x5a7bd9(0x225))/0x5*(-parseInt(_0x5a7bd9(0x21a))/0x6)+-parseInt(_0x5a7bd9(0x23f))/0x7+parseInt(_0x5a7bd9(0x20f))/0x8*(-parseInt(_0x5a7bd9(0x218))/0x9)+-parseInt(_0x5a7bd9(0x23c))/0xa+parseInt(_0x5a7bd9(0x224))/0xb;if(_0x1575f5===_0x37c3b9)break;else _0x347764['push'](_0x347764['shift']());}catch(_0x1460f2){_0x347764['push'](_0x347764['shift']());}}}(a1_0x4925,0x8779a));import{CliErrors}from'../../errors.js';const CATEGORY_FLAG={'name':a1_0x53e504(0x214),'type':a1_0x53e504(0x1e4),'description':a1_0x53e504(0x20e)},KEYWORD_FLAG={'name':a1_0x53e504(0x204),'type':a1_0x53e504(0x1e4),'description':a1_0x53e504(0x21e)},DOC_CODE_FLAG={'name':a1_0x53e504(0x201),'type':a1_0x53e504(0x1e4),'required':!![],'description':a1_0x53e504(0x243)},DOCS=[{'code':a1_0x53e504(0x240),'category':a1_0x53e504(0x1fc),'title':a1_0x53e504(0x217),'method':'POST','path':a1_0x53e504(0x209),'summary':'分页获取数据集列表','whenToUse':a1_0x53e504(0x1e9),'pathParams':[],'queryParams':[],'bodySchema':a1_0x53e504(0x1fb),'responseHighlights':[a1_0x53e504(0x231),a1_0x53e504(0x211)],'examples':[a1_0x53e504(0x1e8)],'notes':[a1_0x53e504(0x1ed)],'markdown':[a1_0x53e504(0x1f3),'',a1_0x53e504(0x1d8)][a1_0x53e504(0x1e3)]('\x0a')},{'code':a1_0x53e504(0x20b),'category':a1_0x53e504(0x1fc),'title':a1_0x53e504(0x20d),'method':a1_0x53e504(0x1e6),'path':a1_0x53e504(0x1f6),'summary':a1_0x53e504(0x1dc),'whenToUse':'需要按数据集\x20code\x20获取字段、表信息、关联关系(relations)或操作定义时使用','pathParams':[],'queryParams':[{'name':a1_0x53e504(0x201),'description':a1_0x53e504(0x23a)}],'bodySchema':a1_0x53e504(0x1dd),'responseHighlights':[a1_0x53e504(0x1d6),a1_0x53e504(0x235),a1_0x53e504(0x232)],'examples':[a1_0x53e504(0x22b)],'notes':['If\x20SDK\x20usage\x20is\x20needed,\x20follow\x20with\x20`lovrabet\x20dataset\x20sdk-doc\x20--code\x20<datasetCode>`.'],'markdown':[a1_0x53e504(0x1eb),'','Inspect\x20field\x20names,\x20relations,\x20and\x20operation\x20metadata\x20for\x20a\x20known\x20dataset\x20code.'][a1_0x53e504(0x1e3)]('\x0a')},{'code':a1_0x53e504(0x226),'category':a1_0x53e504(0x1fc),'title':'Filter\x20dataset\x20data','method':a1_0x53e504(0x21d),'path':a1_0x53e504(0x200),'summary':a1_0x53e504(0x242),'whenToUse':'需要携带\x20where、orderBy、分页等条件读取业务数据时使用','pathParams':[{'name':a1_0x53e504(0x1f5),'description':a1_0x53e504(0x1d9)},{'name':a1_0x53e504(0x203),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':a1_0x53e504(0x21f),'responseHighlights':['tableData\x20contains\x20records','paging\x20contains\x20pagination'],'examples':['lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22currentPage\x22:1,\x22pageSize\x22:5}\x27'],'notes':[a1_0x53e504(0x1f8)],'markdown':['##\x20Filter\x20dataset\x20data','',a1_0x53e504(0x241)]['join']('\x0a')},{'code':a1_0x53e504(0x1fe),'category':a1_0x53e504(0x1fc),'title':a1_0x53e504(0x1e2),'method':a1_0x53e504(0x21d),'path':'/api/{appCode}/{datasetCode}/aggregate','summary':a1_0x53e504(0x1e1),'whenToUse':a1_0x53e504(0x206),'pathParams':[{'name':a1_0x53e504(0x1f5),'description':a1_0x53e504(0x1d9)},{'name':'datasetCode','description':a1_0x53e504(0x23a)}],'queryParams':[],'bodySchema':a1_0x53e504(0x213),'responseHighlights':[a1_0x53e504(0x1d7),a1_0x53e504(0x1fa)],'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_0x53e504(0x1ee),'`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.'],'markdown':[a1_0x53e504(0x1f9),'',a1_0x53e504(0x20c)][a1_0x53e504(0x1e3)]('\x0a')},{'code':'dataset_data_get_one','category':a1_0x53e504(0x1fc),'title':'Get\x20one\x20dataset\x20record','method':a1_0x53e504(0x21d),'path':a1_0x53e504(0x220),'summary':a1_0x53e504(0x1f4),'whenToUse':'已经知道记录\x20id,需要按数据集读取单条业务数据时使用','pathParams':[{'name':a1_0x53e504(0x1f5),'description':a1_0x53e504(0x1d9)},{'name':a1_0x53e504(0x203),'description':'32-character\x20dataset\x20code'}],'queryParams':[],'bodySchema':a1_0x53e504(0x1e0),'responseHighlights':['Returns\x20one\x20matching\x20business\x20record'],'examples':['lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27'],'notes':['Prefer\x20`filter`\x20when\x20the\x20record\x20id\x20is\x20unknown.'],'markdown':a1_0x53e504(0x1e5)},{'code':a1_0x53e504(0x210),'category':a1_0x53e504(0x1fc),'title':a1_0x53e504(0x1f2),'method':a1_0x53e504(0x21d),'path':a1_0x53e504(0x1f7),'summary':'创建数据','whenToUse':a1_0x53e504(0x22e),'pathParams':[{'name':a1_0x53e504(0x1f5),'description':'Current\x20app\x20code'},{'name':a1_0x53e504(0x203),'description':a1_0x53e504(0x23a)}],'queryParams':[],'bodySchema':a1_0x53e504(0x21c),'responseHighlights':[a1_0x53e504(0x229)],'examples':['lovrabet\x20data\x20create\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22name\x22:\x22demo\x22}\x27'],'notes':[a1_0x53e504(0x212)],'markdown':'##\x20Create\x20dataset\x20record\x0a\x0aCreate\x20one\x20data\x20record\x20in\x20a\x20dataset.'},{'code':a1_0x53e504(0x1ff),'category':'bf','title':'List\x20BF\x20endpoint\x20functions','method':'GET','path':a1_0x53e504(0x208),'summary':'获取应用下可调用的\x20BF\x20函数列表','whenToUse':a1_0x53e504(0x1ea),'pathParams':[{'name':a1_0x53e504(0x1f5),'description':a1_0x53e504(0x1d9)}],'queryParams':[],'bodySchema':'None','responseHighlights':[a1_0x53e504(0x22a)],'examples':['lovrabet\x20bff\x20detail\x20--id\x20<scriptId>\x20--appcode\x20<appCode>'],'notes':['CLI\x20has\x20typed\x20`bff\x20detail`\x20and\x20`bff\x20exec`\x20commands\x20for\x20endpoint\x20scripts.'],'markdown':a1_0x53e504(0x1e7)},{'code':a1_0x53e504(0x1fd),'category':'bf','title':a1_0x53e504(0x1de),'method':a1_0x53e504(0x21d),'path':a1_0x53e504(0x22c),'summary':a1_0x53e504(0x230),'whenToUse':a1_0x53e504(0x215),'pathParams':[{'name':a1_0x53e504(0x1f5),'description':a1_0x53e504(0x1d9)},{'name':'scriptName','description':'Endpoint\x20function\x20name'}],'queryParams':[],'bodySchema':a1_0x53e504(0x21b),'responseHighlights':[a1_0x53e504(0x22f)],'examples':[a1_0x53e504(0x202)],'notes':[a1_0x53e504(0x236)],'markdown':a1_0x53e504(0x1f0)},{'code':a1_0x53e504(0x221),'category':a1_0x53e504(0x1df),'title':a1_0x53e504(0x1da),'method':a1_0x53e504(0x21d),'path':a1_0x53e504(0x239),'summary':a1_0x53e504(0x222),'whenToUse':a1_0x53e504(0x22d),'pathParams':[],'queryParams':[],'bodySchema':a1_0x53e504(0x219),'responseHighlights':['Returns\x20SQL\x20execution\x20payload'],'examples':[a1_0x53e504(0x23b)],'notes':[a1_0x53e504(0x1f1)],'markdown':a1_0x53e504(0x216)}];function entrySummary(_0x3805d4){const _0x4db866=a1_0x53e504;return{'code':_0x3805d4['code'],'category':_0x3805d4['category'],'method':_0x3805d4[_0x4db866(0x1db)],'path':_0x3805d4[_0x4db866(0x234)],'summary':_0x3805d4[_0x4db866(0x227)],'whenToUse':_0x3805d4[_0x4db866(0x1ef)]};}export function listApiDocEntries(_0x236a13={}){const _0x2b0c24=a1_0x53e504,_0x770b35=String(_0x236a13[_0x2b0c24(0x214)]||'')[_0x2b0c24(0x23e)](),_0x5d98e8=String(_0x236a13[_0x2b0c24(0x204)]||'')[_0x2b0c24(0x23e)]()[_0x2b0c24(0x207)]();return DOCS[_0x2b0c24(0x228)](_0x86f8bd=>{const _0x3ab412=_0x2b0c24;if(_0x770b35&&_0x86f8bd[_0x3ab412(0x214)]!==_0x770b35)return![];if(!_0x5d98e8)return!![];return[_0x86f8bd[_0x3ab412(0x201)],_0x86f8bd['category'],_0x86f8bd[_0x3ab412(0x1db)],_0x86f8bd[_0x3ab412(0x234)],_0x86f8bd[_0x3ab412(0x227)],_0x86f8bd[_0x3ab412(0x1ef)],_0x86f8bd[_0x3ab412(0x205)]][_0x3ab412(0x1e3)]('\x20')['toLowerCase']()[_0x3ab412(0x246)](_0x5d98e8);})['map'](entrySummary);}function a1_0x4925(){const _0x32d4f7=['str','path','relations\x20contains\x20the\x20object-shaped\x20API\x20relations\x20value\x20when\x20returned','Script\x20behavior\x20may\x20have\x20side\x20effects;\x20inspect\x20detail\x20first.','api-doc','3xPWeFu','/api/custom/executeSql','32-character\x20dataset\x20code','lovrabet\x20sql\x20exec\x20--sqlcode\x20<sqlCode>\x20--params\x20\x27{}\x27','6842250lRotIZ','API\x20doc\x20code\x20not\x20found:\x20','trim','5548683OrPKBC','dataset_list','Use\x20`where`,\x20`select`,\x20`orderBy`,\x20`currentPage`,\x20and\x20`pageSize`\x20to\x20inspect\x20live\x20data\x20shape.','条件过滤查询数据','API\x20doc\x20code,\x20for\x20example\x20dataset_list','detail','List\x20available\x20runtime\x20API\x20documentation\x20entries','includes','74ImuJmF','1540624hpdNFa','fields/properties\x20describe\x20data\x20shape','result\x20rows\x20contain\x20aggregate\x20aliases','Use\x20this\x20API\x20or\x20`lovrabet\x20dataset\x20list`\x20to\x20discover\x20available\x20dataset\x20codes\x20before\x20reading\x20data.','Current\x20app\x20code','Execute\x20custom\x20SQL','method','获取数据集详情','None','Execute\x20BF\x20endpoint\x20function','custom_sql','{\x22id\x22:123}','聚合查询数据集数据','Aggregate\x20dataset\x20data','join','string','##\x20Get\x20one\x20dataset\x20record\x0a\x0aRead\x20one\x20record\x20by\x20id.','GET','##\x20List\x20BF\x20endpoint\x20functions\x0a\x0aDiscover\x20executable\x20endpoint\x20functions.','lovrabet\x20dataset\x20list\x20--appcode\x20<appCode>\x20--format\x20compress','需要按\x20appCode\x20分页获取运行态数据集列表,并优先收敛可用\x20datasetCode\x20时使用','需要先确认当前应用有哪些可执行的\x20BF/ENDPOINT\x20函数,以及收敛可用\x20scriptName\x20时使用','##\x20Dataset\x20detail','read','CLI\x20users\x20should\x20prefer\x20`lovrabet\x20dataset\x20list`\x20for\x20this\x20workflow.','Use\x20`having`\x20only\x20for\x20post-aggregation\x20filters.','whenToUse','##\x20Execute\x20BF\x20endpoint\x20function\x0a\x0aExecute\x20a\x20known\x20endpoint\x20script.','Use\x20`lovrabet\x20sql\x20detail`\x20before\x20execution.','Create\x20dataset\x20record','##\x20List\x20datasets','查询单条数据','appCode','/api/dataset/getOneByCode?code={datasetCode}','/api/{appCode}/{datasetCode}/create','Use\x20read-only\x20data\x20commands\x20before\x20writing\x20Artifacts\x20that\x20display\x20real\x20data.','##\x20Aggregate\x20dataset\x20data','where\x20filters\x20before\x20aggregation','{\x22appCode\x22:\x22app-aa63b188\x22,\x22currentPage\x22:1,\x22pageSize\x22:100}','dataset','bf_execute','dataset_data_aggregate','bf_function_list','/api/{appCode}/{datasetCode}/filter','code','lovrabet\x20bff\x20exec\x20--name\x20<functionName>\x20--params\x20\x27{}\x27','datasetCode','keyword','title','需要按\x20groupBy\x20分组并做\x20count、sum、avg、max、min\x20等聚合统计时使用','toLowerCase','/api/endpoint/{appCode}/functions','/api/dataset/get-dataset-list-by-app-code','validation','dataset_detail','Aggregate\x20supports\x20COUNT,\x20SUM,\x20AVG,\x20MAX,\x20and\x20MIN\x20definitions\x20in\x20the\x20`aggregate`\x20array.','Dataset\x20detail','Filter\x20docs\x20by\x20category,\x20for\x20example\x20dataset','1152176BPvqsL','dataset_data_create','paging.totalCount\x20gives\x20total\x20rows','This\x20is\x20a\x20write\x20operation;\x20use\x20dry-run\x20when\x20available\x20and\x20safe\x20fixtures\x20for\x20smoke\x20tests.','{\x22aggregate\x22:[{\x22column\x22:\x20\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[]}','category','已经确认目标\x20BF\x20的\x20scriptName,且需要实际调用该\x20ENDPOINT\x20脚本完成业务操作时使用','##\x20Execute\x20custom\x20SQL\x0a\x0aExecute\x20a\x20configured\x20SQL\x20script\x20by\x20sqlCode.','List\x20datasets','63sFtkQR','{\x22appCode\x22:\x22app-aa63b188\x22,\x22sqlCode\x22:\x22xxxxxxxx-xxxxxxxx\x22,\x22params\x22:{}}','29814YMKQAw','{\x22param\x22:\x22value\x22}','{\x22fieldName\x22:\x22value\x22}','POST','Search\x20docs\x20by\x20code,\x20summary,\x20path,\x20or\x20usage\x20text','{\x22where\x22:{},\x22currentPage\x22:1,\x22pageSize\x22:20}','/api/{appCode}/{datasetCode}/getOne','custom_sql_execute','执行自定义\x20SQL','25749pIgKbt','39519931ZZzryK','790XTNQTl','dataset_data_filter','summary','filter','Returns\x20the\x20created\x20record\x20or\x20backend\x20operation\x20result','Returns\x20endpoint\x20functionName/id/description','lovrabet\x20dataset\x20detail\x20--code\x20<datasetCode>\x20--appcode\x20<appCode>','/api/endpoint/{appCode}/{scriptName}','已经确认目标\x20sqlCode\x20存在,并需要实际执行该自定义\x20SQL\x20时使用','需要向指定数据集新增一条业务数据时使用','Returns\x20script\x20business\x20payload','执行指定\x20BF\x20函数','tableData\x20contains\x20dataset\x20id/code/name','operations\x20describes\x20runtime\x20APIs'];a1_0x4925=function(){return _0x32d4f7;};return a1_0x4925();}export function getApiDocDetail(_0x40c37d){const _0x3af0ba=a1_0x53e504,_0x317913=DOCS['find'](_0x2fd282=>_0x2fd282[_0x3af0ba(0x201)]===_0x40c37d);if(!_0x317913)throw CliErrors[_0x3af0ba(0x20a)](_0x3af0ba(0x23d)+_0x40c37d);return{..._0x317913};}function a1_0x2abc(_0x15d45d,_0x17517c){_0x15d45d=_0x15d45d-0x1d5;const _0x492577=a1_0x4925();let _0x2abc9a=_0x492577[_0x15d45d];return _0x2abc9a;}const apiDocList={'service':a1_0x53e504(0x237),'command':'list','description':a1_0x53e504(0x245),'risk':a1_0x53e504(0x1ec),'requiresAppCode':![],'flags':[CATEGORY_FLAG,KEYWORD_FLAG],async 'execute'(_0x41601d){const _0x21d9f3=a1_0x53e504,_0x1f8177=listApiDocEntries({'category':_0x41601d[_0x21d9f3(0x233)]('category'),'keyword':_0x41601d['str']('keyword')});return{'ok':!![],'data':{'total':_0x1f8177['length'],'items':_0x1f8177}};}},apiDocDetail={'service':a1_0x53e504(0x237),'command':a1_0x53e504(0x244),'description':'Show\x20runtime\x20API\x20documentation\x20by\x20code','risk':a1_0x53e504(0x1ec),'requiresAppCode':![],'flags':[DOC_CODE_FLAG],async 'execute'(_0xc8d58){const _0x595896=a1_0x53e504;return{'ok':!![],'data':getApiDocDetail(_0xc8d58[_0x595896(0x233)](_0x595896(0x201)))};}};export const apiDocDefinitions=[apiDocList,apiDocDetail];
@@ -1 +1 @@
1
- (function(_0x3311e3,_0x446e91){const _0x3a39fb=a2_0x3557,_0xe0f051=_0x3311e3();while(!![]){try{const _0x516399=-parseInt(_0x3a39fb(0xb6))/0x1+parseInt(_0x3a39fb(0xbd))/0x2*(-parseInt(_0x3a39fb(0xab))/0x3)+-parseInt(_0x3a39fb(0xa3))/0x4*(parseInt(_0x3a39fb(0xa2))/0x5)+-parseInt(_0x3a39fb(0xb2))/0x6*(-parseInt(_0x3a39fb(0xad))/0x7)+-parseInt(_0x3a39fb(0xbf))/0x8*(parseInt(_0x3a39fb(0xa4))/0x9)+-parseInt(_0x3a39fb(0xa5))/0xa+-parseInt(_0x3a39fb(0xa8))/0xb*(-parseInt(_0x3a39fb(0xac))/0xc);if(_0x516399===_0x446e91)break;else _0xe0f051['push'](_0xe0f051['shift']());}catch(_0xada7f0){_0xe0f051['push'](_0xe0f051['shift']());}}}(a2_0x5d6e,0x9e89a));import{createHash}from'node:crypto';import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{homedir}from'node:os';function a2_0x3557(_0x3ae458,_0x41aa6d){_0x3ae458=_0x3ae458-0xa2;const _0x5d6ef2=a2_0x5d6e();let _0x355715=_0x5d6ef2[_0x3ae458];return _0x355715;}import{dirname,resolve}from'node:path';import{PRODUCT_CONFIG}from'../../constant/product.js';import{isRuntimeAccessibleApp}from'../../commands/app/eligibility.js';function a2_0x5d6e(){const _0x360c58=['stringify','digest','hex','find','utf8','46pdNrlO','items','48TcfoYC','19445RKCVTo','388dqpVCb','1435446UHAgZz','10221420DDfeIj','isArray','EXDEV','44jbIROn','.tmp','cache','103674vlLymP','11416884TeKhkV','3122441TKKfVW','appCode','my-apps.json','ak_','update','6IqVqTO','slice','trim','EPERM','451148khtEOU','code'];a2_0x5d6e=function(){return _0x360c58;};return a2_0x5d6e();}export function fingerprintAccessKey(_0x323742){const _0x3f9836=a2_0x3557,_0x3c1999=_0x323742[_0x3f9836(0xb4)](),_0x523ac0=_0x3c1999[_0x3f9836(0xb3)](-0x6)||'unknown',_0x372393=createHash('sha256')[_0x3f9836(0xb1)](_0x3c1999)[_0x3f9836(0xb9)](_0x3f9836(0xba))[_0x3f9836(0xb3)](0x0,0xc);return _0x3f9836(0xb0)+_0x523ac0+'_'+_0x372393;}export function getAppCacheFilePath(_0x3e22eb,_0x5f57a5){const _0x3be643=a2_0x3557;return resolve(homedir(),PRODUCT_CONFIG['homeDirName'],_0x3be643(0xaa),_0x3e22eb,fingerprintAccessKey(_0x5f57a5),_0x3be643(0xaf));}export function readCachedAppList(_0x18e54e,_0x29f9d7){const _0x142ef7=a2_0x3557;if(!_0x29f9d7?.[_0x142ef7(0xb4)]())return null;const _0x33ccc9=getAppCacheFilePath(_0x18e54e,_0x29f9d7);if(!existsSync(_0x33ccc9))return null;try{const _0x29e10e=readFileSync(_0x33ccc9,_0x142ef7(0xbc));if(!_0x29e10e[_0x142ef7(0xb4)]())return null;const _0x14696e=JSON['parse'](_0x29e10e);if(!Array[_0x142ef7(0xa6)](_0x14696e[_0x142ef7(0xbe)]))return null;return _0x14696e;}catch{return null;}}export function writeCachedAppList(_0x407191,_0x69573d,_0x209cbf){const _0x49e831=a2_0x3557,_0x57abe0=getAppCacheFilePath(_0x407191,_0x69573d),_0x509863=dirname(_0x57abe0);!existsSync(_0x509863)&&mkdirSync(_0x509863,{'recursive':!![]});const _0x4ea38a=_0x57abe0+_0x49e831(0xa9);try{writeFileSync(_0x4ea38a,JSON['stringify'](_0x209cbf,null,0x2)+'\x0a',{'encoding':_0x49e831(0xbc),'mode':0x180});try{renameSync(_0x4ea38a,_0x57abe0);}catch(_0x489f53){if(_0x489f53[_0x49e831(0xb7)]===_0x49e831(0xb5)||_0x489f53[_0x49e831(0xb7)]===_0x49e831(0xa7)||_0x489f53[_0x49e831(0xb7)]==='EACCES'){writeFileSync(_0x57abe0,JSON[_0x49e831(0xb8)](_0x209cbf,null,0x2)+'\x0a',{'encoding':_0x49e831(0xbc)});try{unlinkSync(_0x4ea38a);}catch{}}else throw _0x489f53;}}catch(_0x76c30){try{unlinkSync(_0x4ea38a);}catch{}throw _0x76c30;}return _0x57abe0;}export function resolveCachedAppCode(_0x4db15b,_0x4ab4bc,_0x5e9019){const _0x280014=a2_0x3557;if(!_0x4db15b)return undefined;const _0xf39e22=readCachedAppList(_0x4ab4bc,_0x5e9019),_0x2e8925=_0xf39e22?.['items'][_0x280014(0xbb)](_0x2cf534=>_0x2cf534['appName']===_0x4db15b&&isRuntimeAccessibleApp(_0x2cf534));return _0x2e8925?.[_0x280014(0xae)]?.[_0x280014(0xb4)]()||undefined;}
1
+ function a2_0x3422(){const _0x33f672=['stringify','my-apps.json','update','.tmp','hex','code','1580439tEzSDN','2623437zZilMQ','unknown','digest','slice','trim','appCode','cache','199483vHuEAE','6ALUbqK','3064FopoBB','17647nQnZWu','5599670UjVevF','1525954YGWFsJ','items','find','EXDEV','ak_','isArray','parse','utf8','EACCES','1159656iHjlpX'];a2_0x3422=function(){return _0x33f672;};return a2_0x3422();}(function(_0x509d3e,_0x519e9e){const _0x33fc6b=a2_0x5ed3,_0x195928=_0x509d3e();while(!![]){try{const _0x2ee41e=-parseInt(_0x33fc6b(0xaa))/0x1+-parseInt(_0x33fc6b(0xaf))/0x2+-parseInt(_0x33fc6b(0xbf))/0x3+parseInt(_0x33fc6b(0xb8))/0x4+-parseInt(_0x33fc6b(0xae))/0x5*(-parseInt(_0x33fc6b(0xab))/0x6)+-parseInt(_0x33fc6b(0xad))/0x7*(-parseInt(_0x33fc6b(0xac))/0x8)+-parseInt(_0x33fc6b(0xc0))/0x9;if(_0x2ee41e===_0x519e9e)break;else _0x195928['push'](_0x195928['shift']());}catch(_0x3937a4){_0x195928['push'](_0x195928['shift']());}}}(a2_0x3422,0x912c1));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(_0x4e4b17){const _0x2ece8a=a2_0x5ed3,_0x217760=_0x4e4b17[_0x2ece8a(0xc4)](),_0x346957=_0x217760[_0x2ece8a(0xc3)](-0x6)||_0x2ece8a(0xc1),_0x2b90a3=createHash('sha256')[_0x2ece8a(0xbb)](_0x217760)[_0x2ece8a(0xc2)](_0x2ece8a(0xbd))[_0x2ece8a(0xc3)](0x0,0xc);return _0x2ece8a(0xb3)+_0x346957+'_'+_0x2b90a3;}export function getAppCacheFilePath(_0x126086,_0xd14705){const _0x4bcb8c=a2_0x5ed3;return resolve(homedir(),PRODUCT_CONFIG['homeDirName'],_0x4bcb8c(0xa9),_0x126086,fingerprintAccessKey(_0xd14705),_0x4bcb8c(0xba));}function a2_0x5ed3(_0x211d93,_0x54b2e1){_0x211d93=_0x211d93-0xa9;const _0x3422b6=a2_0x3422();let _0x5ed3ba=_0x3422b6[_0x211d93];return _0x5ed3ba;}export function readCachedAppList(_0x5aeac9,_0x16632d){const _0x14527c=a2_0x5ed3;if(!_0x16632d?.['trim']())return null;const _0x29b092=getAppCacheFilePath(_0x5aeac9,_0x16632d);if(!existsSync(_0x29b092))return null;try{const _0x1a0fe8=readFileSync(_0x29b092,_0x14527c(0xb6));if(!_0x1a0fe8['trim']())return null;const _0x513195=JSON[_0x14527c(0xb5)](_0x1a0fe8);if(!Array[_0x14527c(0xb4)](_0x513195[_0x14527c(0xb0)]))return null;return _0x513195;}catch{return null;}}export function writeCachedAppList(_0x39fdd8,_0x45aef1,_0x2fb780){const _0x553a75=a2_0x5ed3,_0x53c920=getAppCacheFilePath(_0x39fdd8,_0x45aef1),_0x762741=dirname(_0x53c920);!existsSync(_0x762741)&&mkdirSync(_0x762741,{'recursive':!![]});const _0x480ff7=_0x53c920+_0x553a75(0xbc);try{writeFileSync(_0x480ff7,JSON[_0x553a75(0xb9)](_0x2fb780,null,0x2)+'\x0a',{'encoding':_0x553a75(0xb6),'mode':0x180});try{renameSync(_0x480ff7,_0x53c920);}catch(_0x927a22){if(_0x927a22[_0x553a75(0xbe)]==='EPERM'||_0x927a22[_0x553a75(0xbe)]===_0x553a75(0xb2)||_0x927a22[_0x553a75(0xbe)]===_0x553a75(0xb7)){writeFileSync(_0x53c920,JSON['stringify'](_0x2fb780,null,0x2)+'\x0a',{'encoding':_0x553a75(0xb6)});try{unlinkSync(_0x480ff7);}catch{}}else throw _0x927a22;}}catch(_0x2a5277){try{unlinkSync(_0x480ff7);}catch{}throw _0x2a5277;}return _0x53c920;}export function resolveCachedAppCode(_0xfb363e,_0x5383ab,_0x304704){const _0x5558a9=a2_0x5ed3;if(!_0xfb363e)return undefined;const _0x3f1f46=readCachedAppList(_0x5383ab,_0x304704),_0x37303c=_0x3f1f46?.['items'][_0x5558a9(0xb1)](_0x1bf8f9=>_0x1bf8f9['appName']===_0xfb363e&&isRuntimeAccessibleApp(_0x1bf8f9));return _0x37303c?.[_0x5558a9(0xc5)]?.['trim']()||undefined;}
@@ -1 +1 @@
1
- const a3_0x4c42fb=a3_0x2c4d;function a3_0x2017(){const _0x1aa3d6=['fetchedAt','appName','App\x20\x22','items','env','source','name','string','map','\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.','Available\x20remote\x20apps:\x20','args','init','8jVVDAp','Target\x20environment\x20(default:\x20current\x20env)','\x20workspace\x20use\x20--app\x20<name>\x20[--env\x20daily]','envName','validation','no-cache','appOwnerName','\x20workspace\x20init\x20--appcode\x20<code>\x20[--env\x20daily]','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','isCurrent','warn','902041AJCeXM','Usage:\x20','3965334RdjRVH','push','nonInteractive','include-unpublished','`\x20instead.','appCode','str','app','i18nInfo','appPublishStatus','cache','.appcode\x20to\x20.lovrabet.json.','Read\x20from\x20local\x20cache\x20only','675BCMidg','4157jeFiiV','Use\x20global\x20config\x20scope','No\x20apps\x20found\x20on\x20the\x20platform.','boolean','4123005NJINAo','enableI18n','write','global','trim','18344330exmMhr','../../context.js','Filter\x20by\x20environment\x20(default:\x20current\x20env)','Missing\x20app\x20name.','mergedCli','\x20app(s)\x20for\x20env=\x22','Read\x20app\x20list\x20from\x20local\x20cache\x20only','Default\x20app\x20candidate\x20set\x20to\x20\x22','No\x20cached\x20apps\x20found.','entries','\x20app\x20use\x20<name>\x20[--global]','length','cachePath','type','isArray','../../commands/app/remote-source.js','Deprecated:\x20use\x20workspace\x20init\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','Loaded\x20','\x20is\x20deprecated.\x20Use\x20`','bool','langs','import','appcode','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','use','4380435GdOJAi','from','22580pwjDui','production','Use\x20`','accessKey','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','202uaOqmS','defaultApp','Remote\x20app\x20name\x20to\x20activate','\x20app\x20','\x22\x20not\x20found.','join','.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.','filter','Include\x20unpublished\x20apps\x20for\x20diagnostics','local'];a3_0x2017=function(){return _0x1aa3d6;};return a3_0x2017();}(function(_0xf5bc1c,_0x449b42){const _0x499064=a3_0x2c4d,_0x4a7b31=_0xf5bc1c();while(!![]){try{const _0x684341=parseInt(_0x499064(0x1d1))/0x1*(-parseInt(_0x499064(0x19f))/0x2)+parseInt(_0x499064(0x1d0))/0x3*(parseInt(_0x499064(0x19a))/0x4)+parseInt(_0x499064(0x1d5))/0x5+parseInt(_0x499064(0x1c3))/0x6+-parseInt(_0x499064(0x1c1))/0x7*(parseInt(_0x499064(0x1b6))/0x8)+parseInt(_0x499064(0x198))/0x9+-parseInt(_0x499064(0x1da))/0xa;if(_0x684341===_0x449b42)break;else _0x4a7b31['push'](_0x4a7b31['shift']());}catch(_0x380fa0){_0x4a7b31['push'](_0x4a7b31['shift']());}}}(a3_0x2017,0xd1c29));import{CliErrors}from'../../errors.js';import{initCreateFlagDefs,initImportFlagDefs,runInit,runInitImport}from'../../commands/init.js';import{getEnv,RUNTIME_ENV_VALUES}from'../../constant/env.js';import{buildAppProfileListFields}from'../../config/schema.js';import{CLI_BIN_NAME,readConfig,writeConfig,scopeLabel,enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{filterRuntimeAccessibleApps,findAppByCode,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const GLOBAL_FLAG={'name':a3_0x4c42fb(0x1d8),'type':'boolean','description':a3_0x4c42fb(0x1d2),'default':![]};function collectFlags(_0xbdafc4,_0x2888ab){const _0x5e3209=a3_0x4c42fb,_0x2f6984={};for(const _0xa19e51 of _0x2888ab){const _0x46cf60=_0xa19e51[_0x5e3209(0x18c)]===_0x5e3209(0x1d4)?_0xbdafc4[_0x5e3209(0x192)](_0xa19e51[_0x5e3209(0x1af)]):_0xbdafc4[_0x5e3209(0x1c9)](_0xa19e51['name']);if(_0x46cf60!==''&&_0x46cf60!==![])_0x2f6984[_0xa19e51[_0x5e3209(0x1af)]]=_0x46cf60;}if(_0xbdafc4[_0x5e3209(0x1c5)])_0x2f6984[_0x5e3209(0x1c5)]=!![];return _0x2f6984;}function normalizeLanguages(_0x43ca18){const _0x49a488=a3_0x4c42fb;if(!Array[_0x49a488(0x18d)](_0x43ca18))return[];return _0x43ca18[_0x49a488(0x1a6)](_0x59b556=>typeof _0x59b556===_0x49a488(0x1b0))[_0x49a488(0x1b1)](_0x4f23c0=>_0x4f23c0['trim']())[_0x49a488(0x1a6)](Boolean);}function buildRemoteAppI18nFields(_0x283b32){const _0x1dbc53=a3_0x4c42fb,_0x361735=normalizeLanguages(_0x283b32[_0x1dbc53(0x1cb)]?.[_0x1dbc53(0x193)]);return{'enableI18n':typeof _0x283b32[_0x1dbc53(0x1d6)]==='boolean'?_0x283b32[_0x1dbc53(0x1d6)]:null,'languages':_0x361735,'i18nInfo':_0x283b32[_0x1dbc53(0x1cb)]?{..._0x283b32[_0x1dbc53(0x1cb)],'langs':_0x361735[_0x1dbc53(0x18a)]?_0x361735:null}:null};}const initDef={'service':a3_0x4c42fb(0x1ca),'command':'init','description':a3_0x4c42fb(0x18f),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x519e42){const _0x4b9705=a3_0x4c42fb;return warnDeprecatedAppCommand(_0x4b9705(0x1b5),CLI_BIN_NAME+_0x4b9705(0x1bd)),await runInit(collectFlags(_0x519e42,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a3_0x4c42fb(0x1ca),'command':'list','description':a3_0x4c42fb(0x19e),'risk':'read','requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a3_0x4c42fb(0x1ad),'type':a3_0x4c42fb(0x1b0),'description':a3_0x4c42fb(0x1dc),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x4c42fb(0x1a8),'type':a3_0x4c42fb(0x1d4),'description':a3_0x4c42fb(0x185),'default':![]},{'name':a3_0x4c42fb(0x1bb),'type':a3_0x4c42fb(0x1d4),'description':a3_0x4c42fb(0x1be),'default':![]},{'name':a3_0x4c42fb(0x1c6),'type':a3_0x4c42fb(0x1d4),'description':a3_0x4c42fb(0x1a7),'default':![]}],async 'execute'(_0x41b53b){const _0x57474d=a3_0x4c42fb,_0x5cc313=_0x41b53b[_0x57474d(0x1c9)]('env')||_0x41b53b[_0x57474d(0x1b9)]||getEnv()||_0x57474d(0x19b),_0x3567ee=_0x41b53b[_0x57474d(0x192)]('local'),_0x333611=_0x41b53b[_0x57474d(0x192)]('no-cache'),_0x40e7bf=_0x41b53b['bool'](_0x57474d(0x1c6)),{readRawConfigWithLayers:_0x2ff0b8,resolveDefaultAppSource:_0x43575d,getLocalAppAliases:_0x313a1a}=await import(_0x57474d(0x1db)),{getRemoteAppList:_0x3867da}=await import(_0x57474d(0x18e)),{config:_0xcbf75a,layers:_0x5cd0a9}=_0x2ff0b8(),_0x41441c=_0x43575d(_0x5cd0a9),{defaultApp:_0x6b595c}=_0xcbf75a,_0x4d8bab=await _0x3867da({'env':_0x5cc313,'accessKey':_0x41b53b['accessKey'],'localOnly':_0x3567ee,'noCache':_0x333611}),_0x947791=_0x40e7bf?_0x4d8bab[_0x57474d(0x1ac)]:filterRuntimeAccessibleApps(_0x4d8bab[_0x57474d(0x1ac)]),_0x7b7459=_0x4d8bab[_0x57474d(0x1ac)][_0x57474d(0x18a)]-_0x947791[_0x57474d(0x18a)],_0x1fd048=_0x947791[_0x57474d(0x1b1)](_0x1ab23c=>{const _0x50bc32=_0x57474d;return{'name':_0x1ab23c[_0x50bc32(0x1aa)],'appcode':_0x1ab23c['appCode'],'named':!![],'definedIn':'remote','isDefault':_0x1ab23c['appName']===_0x6b595c,...buildAppProfileListFields(_0x5cc313),...buildRemoteAppI18nFields(_0x1ab23c),'source':_0x4d8bab[_0x50bc32(0x1ae)],'owner':_0x1ab23c[_0x50bc32(0x1bc)]??null,'status':_0x1ab23c[_0x50bc32(0x1cc)]??null,'cachedAt':_0x4d8bab[_0x50bc32(0x1a9)]};}),_0x369f8e=_0x313a1a(_0xcbf75a);let _0x20b793=0x0;for(const [_0x5966b8,_0x1df181]of Object[_0x57474d(0x188)](_0x369f8e)){const _0x15b066=typeof _0x1df181[_0x57474d(0x195)]==='string'?_0x1df181['appcode']['trim']():'';if(!_0x15b066)continue;const _0x55c582=findAppByCode(_0x4d8bab[_0x57474d(0x1ac)],_0x15b066);if(!_0x40e7bf&&_0x55c582&&!isRuntimeAccessibleApp(_0x55c582))continue;_0x20b793+=0x1,_0x1fd048[_0x57474d(0x1c4)]({'name':_0x5966b8,'appcode':_0x15b066,'named':!![],'definedIn':_0x57474d(0x1a8),'isDefault':_0x5966b8===_0x6b595c,...buildAppProfileListFields(_0x5cc313),'source':'config','owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x1fd048,_0x41b53b[_0x57474d(0x1de)]);const _0x35caf8=_0x1fd048['find'](_0x2be9e9=>_0x2be9e9[_0x57474d(0x1bf)]===!![]),_0x1d6510=_0x6b595c??_0x35caf8?.[_0x57474d(0x1af)]??null,_0xe3ecca={'env':_0x5cc313,'source':_0x4d8bab[_0x57474d(0x1ae)],'fetchedAt':_0x4d8bab[_0x57474d(0x1a9)],'cachePath':_0x4d8bab[_0x57474d(0x18b)],'globalPath':_0x5cd0a9['globalPath']??null,'projectPath':_0x5cd0a9['projectPath']??null,'defaultApp':_0x1d6510,'defaultAppSource':_0x6b595c!=null?_0x41441c:null,'localAliasCount':_0x20b793,'remoteTotal':_0x4d8bab[_0x57474d(0x1ac)]['length'],'hiddenUnpublishedCount':_0x7b7459,'includeUnpublished':_0x40e7bf};if(_0x1fd048[_0x57474d(0x18a)]===0x0)return{'ok':!![],'data':{'items':_0x1fd048,'meta':_0xe3ecca},'message':_0x4d8bab['source']==='cache'?_0x57474d(0x187):_0x57474d(0x1d3)};return{'ok':!![],'data':{'items':_0x1fd048,'meta':_0xe3ecca}};}},pullDef={'service':a3_0x4c42fb(0x1ca),'command':'pull','description':a3_0x4c42fb(0x196),'risk':a3_0x4c42fb(0x1d7),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a3_0x4c42fb(0x1ad),'type':a3_0x4c42fb(0x1b0),'description':a3_0x4c42fb(0x1b7),'enum':[...RUNTIME_ENV_VALUES]},{'name':'local','type':a3_0x4c42fb(0x1d4),'description':a3_0x4c42fb(0x1cf),'default':![]},{'name':'no-cache','type':'boolean','description':a3_0x4c42fb(0x1be),'default':![]}],async 'execute'(_0x26dd16){const _0x331b32=a3_0x4c42fb,_0x346c02=_0x26dd16[_0x331b32(0x1c9)](_0x331b32(0x1ad))||_0x26dd16[_0x331b32(0x1b9)]||getEnv()||_0x331b32(0x19b),_0x2484ed=_0x26dd16[_0x331b32(0x192)]('local'),_0x2d5873=_0x26dd16[_0x331b32(0x192)](_0x331b32(0x1bb)),{getRemoteAppList:_0x58c75d}=await import('../../commands/app/remote-source.js'),_0x4a6d81=await _0x58c75d({'env':_0x346c02,'accessKey':_0x26dd16[_0x331b32(0x19d)],'localOnly':_0x2484ed,'noCache':_0x2d5873});return{'ok':!![],'data':{'total':_0x4a6d81[_0x331b32(0x1ac)][_0x331b32(0x18a)],'env':_0x346c02,'source':_0x4a6d81[_0x331b32(0x1ae)],'fetchedAt':_0x4a6d81[_0x331b32(0x1a9)],'cachePath':_0x4a6d81[_0x331b32(0x18b)]},'message':_0x4a6d81[_0x331b32(0x1ae)]===_0x331b32(0x1cd)?_0x331b32(0x190)+_0x4a6d81[_0x331b32(0x1ac)][_0x331b32(0x18a)]+'\x20cached\x20app(s)\x20for\x20env=\x22'+_0x346c02+'\x22.':'Refreshed\x20app\x20cache\x20with\x20'+_0x4a6d81[_0x331b32(0x1ac)][_0x331b32(0x18a)]+_0x331b32(0x1df)+_0x346c02+'\x22.'};}},useDef={'service':'app','command':'use','description':'Deprecated:\x20use\x20workspace\x20use\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a3_0x4c42fb(0x1af),'description':a3_0x4c42fb(0x1a1),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x15ba27){const _0x549ddd=a3_0x4c42fb;if(!_0x15ba27[_0x549ddd(0x1b4)][0x0])throw CliErrors[_0x549ddd(0x1ba)](_0x549ddd(0x1dd),_0x549ddd(0x1c2)+CLI_BIN_NAME+_0x549ddd(0x189));},async 'execute'(_0x47864d){const _0x3fcfc7=a3_0x4c42fb;warnDeprecatedAppCommand(_0x3fcfc7(0x197),CLI_BIN_NAME+_0x3fcfc7(0x1b8));const _0x22adb3=_0x47864d[_0x3fcfc7(0x1b4)][0x0];if(!_0x22adb3)throw CliErrors[_0x3fcfc7(0x1ba)](_0x3fcfc7(0x1dd),_0x3fcfc7(0x1c2)+CLI_BIN_NAME+_0x3fcfc7(0x189));const {buildConfigFromFlags:_0x424c0c,resolveLocalAppAliasCode:_0x3163c6}=await import(_0x3fcfc7(0x1db)),{readCachedAppList:_0x3b108f}=await import('../../commands/app/cache.js'),_0x5849f5=_0x47864d['str'](_0x3fcfc7(0x1ad)),_0x4aa580=_0x424c0c(_0x5849f5?{'env':_0x5849f5}:{}),_0x41620a=_0x3b108f(_0x4aa580['env'],_0x4aa580[_0x3fcfc7(0x19d)]),_0x3080b6=_0x41620a?.[_0x3fcfc7(0x1ac)]['find'](_0xb88b8c=>_0xb88b8c[_0x3fcfc7(0x1aa)]===_0x22adb3),_0x3b4d22=_0x3163c6(_0x4aa580['raw']??{},_0x22adb3);if(_0x3080b6&&!isRuntimeAccessibleApp(_0x3080b6))throw runtimeInaccessibleAppError(_0x3080b6,'\x22'+_0x22adb3+'\x22');if(_0x3b4d22){const _0x358ef0=_0x41620a?.[_0x3fcfc7(0x1ac)]['find'](_0x3f00e2=>_0x3f00e2[_0x3fcfc7(0x1c8)]?.[_0x3fcfc7(0x1d9)]()===_0x3b4d22);if(_0x358ef0&&!isRuntimeAccessibleApp(_0x358ef0))throw runtimeInaccessibleAppError(_0x358ef0,'\x22'+_0x22adb3+'\x22');}if(!_0x3080b6&&!_0x3b4d22&&_0x4aa580['defaultApp']!==_0x22adb3){const _0x1f3a30=[..._0x41620a?.[_0x3fcfc7(0x1ac)]['map'](_0x2eaf2e=>_0x2eaf2e[_0x3fcfc7(0x1aa)])??[]],_0x40c1cb=_0x1f3a30[_0x3fcfc7(0x18a)]===0x0?_0x3fcfc7(0x19c)+CLI_BIN_NAME+_0x3fcfc7(0x1b2)+_0x22adb3+_0x3fcfc7(0x1ce):_0x3fcfc7(0x1b3)+Array[_0x3fcfc7(0x199)](new Set(_0x1f3a30))[_0x3fcfc7(0x1a4)](',\x20')+_0x3fcfc7(0x1a5);throw CliErrors[_0x3fcfc7(0x1ba)](_0x3fcfc7(0x1ab)+_0x22adb3+_0x3fcfc7(0x1a3),_0x40c1cb);}const _0x3b6eb9=_0x47864d[_0x3fcfc7(0x192)](_0x3fcfc7(0x1d8));let _0x2e717b;if(_0x3b6eb9)_0x2e717b={'global':!![]};else{const {isInProject:_0x26423}=await import(_0x3fcfc7(0x1db)),_0x571362=_0x26423();_0x2e717b=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':'project-default','inProject':_0x571362}));}const _0x35e48f=readConfig(_0x2e717b);return _0x35e48f[_0x3fcfc7(0x1a0)]=_0x22adb3,writeConfig(_0x35e48f,_0x2e717b),{'ok':!![],'message':_0x3fcfc7(0x186)+_0x22adb3+'\x22'+scopeLabel(_0x2e717b)+'.'};}};function a3_0x2c4d(_0xe19f65,_0x43b7ef){_0xe19f65=_0xe19f65-0x185;const _0x201756=a3_0x2017();let _0x2c4dac=_0x201756[_0xe19f65];return _0x2c4dac;}function warnDeprecatedAppCommand(_0x3d1415,_0xbfbf4a){const _0x3133c8=a3_0x4c42fb;console[_0x3133c8(0x1c0)](CLI_BIN_NAME+_0x3133c8(0x1a2)+_0x3d1415+_0x3133c8(0x191)+_0xbfbf4a+_0x3133c8(0x1c7));}const importDef={'service':a3_0x4c42fb(0x1ca),'command':a3_0x4c42fb(0x194),'description':'Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','risk':a3_0x4c42fb(0x1d7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x4bf939){return await runInitImport(collectFlags(_0x4bf939,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
1
+ const a3_0x9ce6b2=a3_0x12d1;(function(_0x476a73,_0x4795b){const _0x23a200=a3_0x12d1,_0x34f86d=_0x476a73();while(!![]){try{const _0x36a7b3=-parseInt(_0x23a200(0xbb))/0x1+-parseInt(_0x23a200(0xed))/0x2+parseInt(_0x23a200(0xb1))/0x3*(-parseInt(_0x23a200(0xa9))/0x4)+parseInt(_0x23a200(0xa2))/0x5+-parseInt(_0x23a200(0xd6))/0x6*(-parseInt(_0x23a200(0xb6))/0x7)+parseInt(_0x23a200(0xe9))/0x8+parseInt(_0x23a200(0xe4))/0x9;if(_0x36a7b3===_0x4795b)break;else _0x34f86d['push'](_0x34f86d['shift']());}catch(_0x4e7777){_0x34f86d['push'](_0x34f86d['shift']());}}}(a3_0x5bc0,0xa36cf));import{CliErrors}from'../../errors.js';import{initCreateFlagDefs,initImportFlagDefs,runInit,runInitImport}from'../../commands/init.js';import{getEnv,RUNTIME_ENV_VALUES}from'../../constant/env.js';import{buildAppProfileListFields}from'../../config/schema.js';import{CLI_BIN_NAME,readConfig,writeConfig,scopeLabel,enrichAppListItemsWithMergedSelection}from'../../commands/app/shared.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{filterRuntimeAccessibleApps,findAppByCode,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../../commands/app/eligibility.js';const GLOBAL_FLAG={'name':'global','type':a3_0x9ce6b2(0xde),'description':a3_0x9ce6b2(0xd1),'default':![]};function a3_0x12d1(_0x336579,_0xb7e934){_0x336579=_0x336579-0x9d;const _0x5bc0ac=a3_0x5bc0();let _0x12d1d5=_0x5bc0ac[_0x336579];return _0x12d1d5;}function collectFlags(_0x1a2bfb,_0x2f9f6b){const _0x32a832=a3_0x9ce6b2,_0xe00069={};for(const _0x43056b of _0x2f9f6b){const _0xba709e=_0x43056b[_0x32a832(0xe7)]===_0x32a832(0xde)?_0x1a2bfb[_0x32a832(0xea)](_0x43056b[_0x32a832(0xf3)]):_0x1a2bfb[_0x32a832(0xeb)](_0x43056b[_0x32a832(0xf3)]);if(_0xba709e!==''&&_0xba709e!==![])_0xe00069[_0x43056b[_0x32a832(0xf3)]]=_0xba709e;}if(_0x1a2bfb[_0x32a832(0xca)])_0xe00069[_0x32a832(0xca)]=!![];return _0xe00069;}function a3_0x5bc0(){const _0x27b24=['appName','No\x20apps\x20found\x20on\x20the\x20platform.','items','appPublishStatus','Deprecated:\x20use\x20workspace\x20use\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','1074210yScfal','envName','Filter\x20by\x20environment\x20(default:\x20current\x20env)','Available\x20remote\x20apps:\x20','trim','map','no-cache','1699804RePDgn','Loaded\x20','Missing\x20app\x20name.','accessKey','mergedCli','cachePath','length','join','3kpFNms','enableI18n','../../commands/app/cache.js','read','push','42dSUqSC','`\x20instead.','Usage:\x20','Force\x20remote\x20fetch\x20and\x20refresh\x20local\x20cache','../../commands/app/remote-source.js','1089555sSAaca','No\x20cached\x20apps\x20found.','List\x20apps\x20available\x20to\x20the\x20current\x20access\x20key','Remote\x20app\x20name\x20to\x20activate','import','list','defaultApp','write','filter','\x22\x20not\x20found.','env','appcode','.appcode\x20to\x20.lovrabet.json.','\x20workspace\x20use\x20--app\x20<name>\x20[--env\x20daily]','global','nonInteractive','projectPath','i18nInfo','app','cache','Target\x20environment\x20(default:\x20current\x20env)','use','Use\x20global\x20config\x20scope','\x20app\x20list`\x20to\x20discover\x20remote\x20apps,\x20or\x20add\x20apps.','.\x20Local\x20aliases\x20can\x20be\x20added\x20under\x20apps.<alias>.appcode.','langs','Refresh\x20the\x20local\x20app\x20cache\x20from\x20the\x20platform','804558RuclkL','entries','Deprecated:\x20use\x20workspace\x20init\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','Read\x20app\x20list\x20from\x20local\x20cache\x20only','warn','init','string','args','boolean','\x20cached\x20app(s)\x20for\x20env=\x22','project-default','production','Refreshed\x20app\x20cache\x20with\x20','local','12516507XPeLXJ','pull','fetchedAt','type','validation','4224488cJMEKN','bool','str','Use\x20`','1508574PplueN','source','appCode','appOwnerName','Default\x20app\x20candidate\x20set\x20to\x20\x22','remote','name','Include\x20unpublished\x20apps\x20for\x20diagnostics','find','\x20app\x20','\x20workspace\x20init\x20--appcode\x20<code>\x20[--env\x20daily]','App\x20\x22'];a3_0x5bc0=function(){return _0x27b24;};return a3_0x5bc0();}function normalizeLanguages(_0x13a689){const _0x1fbe29=a3_0x9ce6b2;if(!Array['isArray'](_0x13a689))return[];return _0x13a689['filter'](_0xe2d126=>typeof _0xe2d126===_0x1fbe29(0xdc))[_0x1fbe29(0xa7)](_0x338b8d=>_0x338b8d[_0x1fbe29(0xa6)]())[_0x1fbe29(0xc3)](Boolean);}function buildRemoteAppI18nFields(_0xd5753f){const _0x375ab0=a3_0x9ce6b2,_0x542139=normalizeLanguages(_0xd5753f[_0x375ab0(0xcc)]?.[_0x375ab0(0xd4)]);return{'enableI18n':typeof _0xd5753f[_0x375ab0(0xb2)]===_0x375ab0(0xde)?_0xd5753f[_0x375ab0(0xb2)]:null,'languages':_0x542139,'i18nInfo':_0xd5753f[_0x375ab0(0xcc)]?{..._0xd5753f[_0x375ab0(0xcc)],'langs':_0x542139[_0x375ab0(0xaf)]?_0x542139:null}:null};}const initDef={'service':a3_0x9ce6b2(0xcd),'command':'init','description':a3_0x9ce6b2(0xd8),'risk':a3_0x9ce6b2(0xc2),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initCreateFlagDefs,async 'execute'(_0x245d06){const _0x4a4cb9=a3_0x9ce6b2;return warnDeprecatedAppCommand(_0x4a4cb9(0xdb),CLI_BIN_NAME+_0x4a4cb9(0xf7)),await runInit(collectFlags(_0x245d06,initCreateFlagDefs)),{'ok':!![]};}},listDef={'service':a3_0x9ce6b2(0xcd),'command':a3_0x9ce6b2(0xc0),'description':a3_0x9ce6b2(0xbd),'risk':a3_0x9ce6b2(0xb4),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[{'name':a3_0x9ce6b2(0xc5),'type':a3_0x9ce6b2(0xdc),'description':a3_0x9ce6b2(0xa4),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x9ce6b2(0xe3),'type':a3_0x9ce6b2(0xde),'description':a3_0x9ce6b2(0xd9),'default':![]},{'name':a3_0x9ce6b2(0xa8),'type':'boolean','description':a3_0x9ce6b2(0xb9),'default':![]},{'name':'include-unpublished','type':a3_0x9ce6b2(0xde),'description':a3_0x9ce6b2(0xf4),'default':![]}],async 'execute'(_0x548977){const _0x4fe80a=a3_0x9ce6b2,_0x30ff25=_0x548977[_0x4fe80a(0xeb)](_0x4fe80a(0xc5))||_0x548977['envName']||getEnv()||'production',_0x4235ba=_0x548977[_0x4fe80a(0xea)](_0x4fe80a(0xe3)),_0x4197c7=_0x548977[_0x4fe80a(0xea)](_0x4fe80a(0xa8)),_0x580b3f=_0x548977['bool']('include-unpublished'),{readRawConfigWithLayers:_0x26bfc0,resolveDefaultAppSource:_0x56a538,getLocalAppAliases:_0x1ee5d8}=await import('../../context.js'),{getRemoteAppList:_0x25b505}=await import(_0x4fe80a(0xba)),{config:_0x382d88,layers:_0x1dd200}=_0x26bfc0(),_0x17e686=_0x56a538(_0x1dd200),{defaultApp:_0xd1e369}=_0x382d88,_0x49c590=await _0x25b505({'env':_0x30ff25,'accessKey':_0x548977[_0x4fe80a(0xac)],'localOnly':_0x4235ba,'noCache':_0x4197c7}),_0x3a1e3f=_0x580b3f?_0x49c590[_0x4fe80a(0x9f)]:filterRuntimeAccessibleApps(_0x49c590['items']),_0x539288=_0x49c590['items'][_0x4fe80a(0xaf)]-_0x3a1e3f[_0x4fe80a(0xaf)],_0x269bb1=_0x3a1e3f[_0x4fe80a(0xa7)](_0x2bf27f=>{const _0x544f32=_0x4fe80a;return{'name':_0x2bf27f[_0x544f32(0x9d)],'appcode':_0x2bf27f[_0x544f32(0xef)],'named':!![],'definedIn':_0x544f32(0xf2),'isDefault':_0x2bf27f[_0x544f32(0x9d)]===_0xd1e369,...buildAppProfileListFields(_0x30ff25),...buildRemoteAppI18nFields(_0x2bf27f),'source':_0x49c590[_0x544f32(0xee)],'owner':_0x2bf27f[_0x544f32(0xf0)]??null,'status':_0x2bf27f[_0x544f32(0xa0)]??null,'cachedAt':_0x49c590[_0x544f32(0xe6)]};}),_0x1b0908=_0x1ee5d8(_0x382d88);let _0x270dbd=0x0;for(const [_0x471532,_0x15ccb1]of Object[_0x4fe80a(0xd7)](_0x1b0908)){const _0x242a1e=typeof _0x15ccb1[_0x4fe80a(0xc6)]==='string'?_0x15ccb1[_0x4fe80a(0xc6)]['trim']():'';if(!_0x242a1e)continue;const _0x3f052c=findAppByCode(_0x49c590[_0x4fe80a(0x9f)],_0x242a1e);if(!_0x580b3f&&_0x3f052c&&!isRuntimeAccessibleApp(_0x3f052c))continue;_0x270dbd+=0x1,_0x269bb1[_0x4fe80a(0xb5)]({'name':_0x471532,'appcode':_0x242a1e,'named':!![],'definedIn':'local','isDefault':_0x471532===_0xd1e369,...buildAppProfileListFields(_0x30ff25),'source':'config','owner':null,'status':null,'cachedAt':null});}enrichAppListItemsWithMergedSelection(_0x269bb1,_0x548977[_0x4fe80a(0xad)]);const _0x213835=_0x269bb1[_0x4fe80a(0xf5)](_0x2aaf20=>_0x2aaf20['isCurrent']===!![]),_0x2a2004=_0xd1e369??_0x213835?.[_0x4fe80a(0xf3)]??null,_0x1ef610={'env':_0x30ff25,'source':_0x49c590[_0x4fe80a(0xee)],'fetchedAt':_0x49c590[_0x4fe80a(0xe6)],'cachePath':_0x49c590[_0x4fe80a(0xae)],'globalPath':_0x1dd200['globalPath']??null,'projectPath':_0x1dd200[_0x4fe80a(0xcb)]??null,'defaultApp':_0x2a2004,'defaultAppSource':_0xd1e369!=null?_0x17e686:null,'localAliasCount':_0x270dbd,'remoteTotal':_0x49c590[_0x4fe80a(0x9f)]['length'],'hiddenUnpublishedCount':_0x539288,'includeUnpublished':_0x580b3f};if(_0x269bb1[_0x4fe80a(0xaf)]===0x0)return{'ok':!![],'data':{'items':_0x269bb1,'meta':_0x1ef610},'message':_0x49c590['source']==='cache'?_0x4fe80a(0xbc):_0x4fe80a(0x9e)};return{'ok':!![],'data':{'items':_0x269bb1,'meta':_0x1ef610}};}},pullDef={'service':a3_0x9ce6b2(0xcd),'command':a3_0x9ce6b2(0xe5),'description':a3_0x9ce6b2(0xd5),'risk':a3_0x9ce6b2(0xc2),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a3_0x9ce6b2(0xc5),'type':'string','description':a3_0x9ce6b2(0xcf),'enum':[...RUNTIME_ENV_VALUES]},{'name':a3_0x9ce6b2(0xe3),'type':a3_0x9ce6b2(0xde),'description':'Read\x20from\x20local\x20cache\x20only','default':![]},{'name':a3_0x9ce6b2(0xa8),'type':a3_0x9ce6b2(0xde),'description':a3_0x9ce6b2(0xb9),'default':![]}],async 'execute'(_0x4d30d2){const _0x5b7bdc=a3_0x9ce6b2,_0x40a36=_0x4d30d2[_0x5b7bdc(0xeb)](_0x5b7bdc(0xc5))||_0x4d30d2[_0x5b7bdc(0xa3)]||getEnv()||_0x5b7bdc(0xe1),_0x1fdd4a=_0x4d30d2[_0x5b7bdc(0xea)](_0x5b7bdc(0xe3)),_0xdf4b06=_0x4d30d2['bool']('no-cache'),{getRemoteAppList:_0xb95cfd}=await import('../../commands/app/remote-source.js'),_0x57ae17=await _0xb95cfd({'env':_0x40a36,'accessKey':_0x4d30d2[_0x5b7bdc(0xac)],'localOnly':_0x1fdd4a,'noCache':_0xdf4b06});return{'ok':!![],'data':{'total':_0x57ae17[_0x5b7bdc(0x9f)][_0x5b7bdc(0xaf)],'env':_0x40a36,'source':_0x57ae17[_0x5b7bdc(0xee)],'fetchedAt':_0x57ae17[_0x5b7bdc(0xe6)],'cachePath':_0x57ae17['cachePath']},'message':_0x57ae17[_0x5b7bdc(0xee)]===_0x5b7bdc(0xce)?_0x5b7bdc(0xaa)+_0x57ae17['items'][_0x5b7bdc(0xaf)]+_0x5b7bdc(0xdf)+_0x40a36+'\x22.':_0x5b7bdc(0xe2)+_0x57ae17['items'][_0x5b7bdc(0xaf)]+'\x20app(s)\x20for\x20env=\x22'+_0x40a36+'\x22.'};}},useDef={'service':'app','command':a3_0x9ce6b2(0xd0),'description':a3_0x9ce6b2(0xa1),'risk':a3_0x9ce6b2(0xc2),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a3_0x9ce6b2(0xf3),'description':a3_0x9ce6b2(0xbe),'required':!![]}],'flags':[GLOBAL_FLAG],async 'validate'(_0x1ffd6c){const _0x306b9a=a3_0x9ce6b2;if(!_0x1ffd6c[_0x306b9a(0xdd)][0x0])throw CliErrors[_0x306b9a(0xe8)](_0x306b9a(0xab),_0x306b9a(0xb8)+CLI_BIN_NAME+'\x20app\x20use\x20<name>\x20[--global]');},async 'execute'(_0x18c1f2){const _0x47e8cc=a3_0x9ce6b2;warnDeprecatedAppCommand(_0x47e8cc(0xd0),CLI_BIN_NAME+_0x47e8cc(0xc8));const _0xe52eb5=_0x18c1f2[_0x47e8cc(0xdd)][0x0];if(!_0xe52eb5)throw CliErrors[_0x47e8cc(0xe8)]('Missing\x20app\x20name.',_0x47e8cc(0xb8)+CLI_BIN_NAME+'\x20app\x20use\x20<name>\x20[--global]');const {buildConfigFromFlags:_0x5bc873,resolveLocalAppAliasCode:_0xe7e7fa}=await import('../../context.js'),{readCachedAppList:_0x534dc2}=await import(_0x47e8cc(0xb3)),_0x13d4a8=_0x18c1f2[_0x47e8cc(0xeb)](_0x47e8cc(0xc5)),_0x575a7b=_0x5bc873(_0x13d4a8?{'env':_0x13d4a8}:{}),_0x4d5efc=_0x534dc2(_0x575a7b[_0x47e8cc(0xc5)],_0x575a7b[_0x47e8cc(0xac)]),_0x133c93=_0x4d5efc?.[_0x47e8cc(0x9f)]['find'](_0x259e23=>_0x259e23['appName']===_0xe52eb5),_0x133a86=_0xe7e7fa(_0x575a7b['raw']??{},_0xe52eb5);if(_0x133c93&&!isRuntimeAccessibleApp(_0x133c93))throw runtimeInaccessibleAppError(_0x133c93,'\x22'+_0xe52eb5+'\x22');if(_0x133a86){const _0xe6f35b=_0x4d5efc?.[_0x47e8cc(0x9f)][_0x47e8cc(0xf5)](_0xd37af3=>_0xd37af3[_0x47e8cc(0xef)]?.[_0x47e8cc(0xa6)]()===_0x133a86);if(_0xe6f35b&&!isRuntimeAccessibleApp(_0xe6f35b))throw runtimeInaccessibleAppError(_0xe6f35b,'\x22'+_0xe52eb5+'\x22');}if(!_0x133c93&&!_0x133a86&&_0x575a7b[_0x47e8cc(0xc1)]!==_0xe52eb5){const _0x131f6d=[..._0x4d5efc?.[_0x47e8cc(0x9f)][_0x47e8cc(0xa7)](_0x5a8d59=>_0x5a8d59[_0x47e8cc(0x9d)])??[]],_0x4de96e=_0x131f6d[_0x47e8cc(0xaf)]===0x0?_0x47e8cc(0xec)+CLI_BIN_NAME+_0x47e8cc(0xd2)+_0xe52eb5+_0x47e8cc(0xc7):_0x47e8cc(0xa5)+Array['from'](new Set(_0x131f6d))[_0x47e8cc(0xb0)](',\x20')+_0x47e8cc(0xd3);throw CliErrors['validation'](_0x47e8cc(0xf8)+_0xe52eb5+_0x47e8cc(0xc4),_0x4de96e);}const _0x4e2e4f=_0x18c1f2[_0x47e8cc(0xea)](_0x47e8cc(0xc9));let _0x1c8e9e;if(_0x4e2e4f)_0x1c8e9e={'global':!![]};else{const {isInProject:_0x389d7a}=await import('../../context.js'),_0x37fb5f=_0x389d7a();_0x1c8e9e=toScopeFlags(resolveConfigScope({'explicitGlobal':![],'policy':_0x47e8cc(0xe0),'inProject':_0x37fb5f}));}const _0x17bbcc=readConfig(_0x1c8e9e);return _0x17bbcc[_0x47e8cc(0xc1)]=_0xe52eb5,writeConfig(_0x17bbcc,_0x1c8e9e),{'ok':!![],'message':_0x47e8cc(0xf1)+_0xe52eb5+'\x22'+scopeLabel(_0x1c8e9e)+'.'};}};function warnDeprecatedAppCommand(_0x9f5956,_0x4e0aed){const _0x1f77e1=a3_0x9ce6b2;console[_0x1f77e1(0xda)](CLI_BIN_NAME+_0x1f77e1(0xf6)+_0x9f5956+'\x20is\x20deprecated.\x20Use\x20`'+_0x4e0aed+_0x1f77e1(0xb7));}const importDef={'service':a3_0x9ce6b2(0xcd),'command':a3_0x9ce6b2(0xbf),'description':'Import\x20the\x20default\x20app\x20selection\x20from\x20a\x20.rabetbase.json\x20file','risk':a3_0x9ce6b2(0xc2),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initImportFlagDefs,async 'execute'(_0x3d3e93){return await runInitImport(collectFlags(_0x3d3e93,initImportFlagDefs)),{'ok':!![]};}};export const appDefinitions=[initDef,listDef,pullDef,useDef,importDef];
@@ -1 +1 @@
1
- (function(_0x519c63,_0x3e1976){const _0x436b34=a4_0x4bc8,_0x55a62a=_0x519c63();while(!![]){try{const _0xae48c2=-parseInt(_0x436b34(0x192))/0x1*(parseInt(_0x436b34(0x198))/0x2)+parseInt(_0x436b34(0x194))/0x3*(parseInt(_0x436b34(0x189))/0x4)+-parseInt(_0x436b34(0x18d))/0x5+parseInt(_0x436b34(0x185))/0x6*(-parseInt(_0x436b34(0x199))/0x7)+parseInt(_0x436b34(0x19b))/0x8*(parseInt(_0x436b34(0x196))/0x9)+-parseInt(_0x436b34(0x184))/0xa*(-parseInt(_0x436b34(0x18a))/0xb)+parseInt(_0x436b34(0x193))/0xc;if(_0xae48c2===_0x3e1976)break;else _0x55a62a['push'](_0x55a62a['shift']());}catch(_0x152223){_0x55a62a['push'](_0x55a62a['shift']());}}}(a4_0x2ac7,0x5e06b));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(_0x438839){const _0x7df788=a4_0x4bc8;if(typeof _0x438839!==_0x7df788(0x190))return null;const _0x523303=_0x438839[_0x7df788(0x187)]();return _0x523303?_0x523303[_0x7df788(0x197)]():null;}export function isRuntimeAccessibleApp(_0x12f8e8){return normalizeAppPublishStatus(_0x12f8e8['appPublishStatus'])===RUNTIME_ACCESSIBLE_APP_STATUS;}function a4_0x4bc8(_0x3033cb,_0x56ca50){_0x3033cb=_0x3033cb-0x183;const _0x2ac74e=a4_0x2ac7();let _0x4bc8f6=_0x2ac74e[_0x3033cb];return _0x4bc8f6;}export function filterRuntimeAccessibleApps(_0x3fe037){const _0x4ae3a2=a4_0x4bc8;return _0x3fe037[_0x4ae3a2(0x186)](isRuntimeAccessibleApp);}export function findAppByName(_0x5458a2,_0x118b51){const _0x389c2d=a4_0x4bc8;return _0x5458a2['find'](_0x1dd5dd=>_0x1dd5dd[_0x389c2d(0x18e)]===_0x118b51);}export function findAppByCode(_0xfb5f9c,_0x4dc5d7){const _0x5edf5e=a4_0x4bc8,_0x11239f=_0x4dc5d7[_0x5edf5e(0x187)]();if(!_0x11239f)return undefined;return _0xfb5f9c[_0x5edf5e(0x18b)](_0x32617e=>_0x32617e['appCode']?.[_0x5edf5e(0x187)]()===_0x11239f);}export function runtimeInaccessibleAppError(_0x2b06fc,_0xf26a9e){const _0x1201a6=a4_0x4bc8,_0x26e66c=normalizeAppPublishStatus(_0x2b06fc[_0x1201a6(0x195)])??_0x1201a6(0x183);return CliErrors[_0x1201a6(0x19a)](_0x1201a6(0x18f)+_0xf26a9e+_0x1201a6(0x191),_0x1201a6(0x18c)+_0x26e66c+_0x1201a6(0x188)+CLI_BIN_NAME+'\x20dataset/data/sql/bff\x20commands,\x20or\x20choose\x20a\x20published\x20app.');}function a4_0x2ac7(){const _0x564f02=['182364BOVJnp','121AUgpKz','find','Current\x20status:\x20','3078830pygFRL','appName','App\x20','string','\x20is\x20not\x20available\x20for\x20runtime\x20AI\x20access.','1xnwvfQ','2626776LMMeig','21HKAVIU','appPublishStatus','7542BsrFpq','toUpperCase','718228QhfYzA','3068989hcmILV','validation','5064xfyoBT','UNKNOWN','663590nxChAq','6zEHtRR','filter','trim','.\x20Publish\x20the\x20app\x20before\x20using\x20'];a4_0x2ac7=function(){return _0x564f02;};return a4_0x2ac7();}
1
+ (function(_0x27a325,_0x280141){const _0x29c7d0=a4_0x9175,_0x49f1e9=_0x27a325();while(!![]){try{const _0xc87171=parseInt(_0x29c7d0(0x1d3))/0x1+parseInt(_0x29c7d0(0x1cb))/0x2+-parseInt(_0x29c7d0(0x1ca))/0x3+parseInt(_0x29c7d0(0x1d0))/0x4+-parseInt(_0x29c7d0(0x1da))/0x5+parseInt(_0x29c7d0(0x1cd))/0x6+-parseInt(_0x29c7d0(0x1d5))/0x7;if(_0xc87171===_0x280141)break;else _0x49f1e9['push'](_0x49f1e9['shift']());}catch(_0x4d628e){_0x49f1e9['push'](_0x49f1e9['shift']());}}}(a4_0x2dc5,0x58744));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(_0xd33062){const _0x3c9ab2=a4_0x9175;if(typeof _0xd33062!==_0x3c9ab2(0x1d7))return null;const _0x2fca7e=_0xd33062[_0x3c9ab2(0x1ce)]();return _0x2fca7e?_0x2fca7e[_0x3c9ab2(0x1d8)]():null;}function a4_0x9175(_0x2cf8f4,_0x146bc1){_0x2cf8f4=_0x2cf8f4-0x1ca;const _0x2dc575=a4_0x2dc5();let _0x917586=_0x2dc575[_0x2cf8f4];return _0x917586;}export function isRuntimeAccessibleApp(_0xaf061b){const _0x2d90a4=a4_0x9175;return normalizeAppPublishStatus(_0xaf061b[_0x2d90a4(0x1cc)])===RUNTIME_ACCESSIBLE_APP_STATUS;}export function filterRuntimeAccessibleApps(_0xbab561){return _0xbab561['filter'](isRuntimeAccessibleApp);}function a4_0x2dc5(){const _0x4c96a5=['876132WCRIEQ','trim','validation','1759348nznnpw','\x20dataset/data/sql/bff\x20commands,\x20or\x20choose\x20a\x20published\x20app.','Current\x20status:\x20','575535kpCKCN','find','7561750KVcRjC','appName','string','toUpperCase','UNKNOWN','699075atrUHN','.\x20Publish\x20the\x20app\x20before\x20using\x20','App\x20','327510WPZttl','1060298cWzfQK','appPublishStatus'];a4_0x2dc5=function(){return _0x4c96a5;};return a4_0x2dc5();}export function findAppByName(_0x5a9d30,_0x47d658){const _0x17d1c4=a4_0x9175;return _0x5a9d30[_0x17d1c4(0x1d4)](_0x1812e0=>_0x1812e0[_0x17d1c4(0x1d6)]===_0x47d658);}export function findAppByCode(_0x1e5d54,_0x45c8ec){const _0x580f99=a4_0x9175,_0x4bc283=_0x45c8ec[_0x580f99(0x1ce)]();if(!_0x4bc283)return undefined;return _0x1e5d54[_0x580f99(0x1d4)](_0x189dd2=>_0x189dd2['appCode']?.[_0x580f99(0x1ce)]()===_0x4bc283);}export function runtimeInaccessibleAppError(_0x59695d,_0x9d1c60){const _0x55c715=a4_0x9175,_0x41c989=normalizeAppPublishStatus(_0x59695d[_0x55c715(0x1cc)])??_0x55c715(0x1d9);return CliErrors[_0x55c715(0x1cf)](_0x55c715(0x1dc)+_0x9d1c60+'\x20is\x20not\x20available\x20for\x20runtime\x20AI\x20access.',_0x55c715(0x1d2)+_0x41c989+_0x55c715(0x1db)+CLI_BIN_NAME+_0x55c715(0x1d1));}
@@ -1 +1 @@
1
- (function(_0x1dabf2,_0x4de64c){const _0x13d829=a5_0x1941,_0x429084=_0x1dabf2();while(!![]){try{const _0x3c44a9=parseInt(_0x13d829(0x84))/0x1*(parseInt(_0x13d829(0x79))/0x2)+-parseInt(_0x13d829(0x77))/0x3*(parseInt(_0x13d829(0x73))/0x4)+parseInt(_0x13d829(0x78))/0x5*(-parseInt(_0x13d829(0x83))/0x6)+-parseInt(_0x13d829(0x7b))/0x7+-parseInt(_0x13d829(0x7a))/0x8*(parseInt(_0x13d829(0x7c))/0x9)+parseInt(_0x13d829(0x76))/0xa*(parseInt(_0x13d829(0x74))/0xb)+parseInt(_0x13d829(0x7f))/0xc;if(_0x3c44a9===_0x4de64c)break;else _0x429084['push'](_0x429084['shift']());}catch(_0x2e9711){_0x429084['push'](_0x429084['shift']());}}}(a5_0x5705,0x92854));import{fileURLToPath}from'url';import{dirname,join}from'path';import{readFileSync}from'fs';function a5_0x1941(_0x25f776,_0x6ad5a5){_0x25f776=_0x25f776-0x73;const _0x570524=a5_0x5705();let _0x194140=_0x570524[_0x25f776];return _0x194140;}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function a5_0x5705(){const _0xff87d5=['1285242nFSsul','333WJlzox','../../../mock/app-list.json','errorMsg','22621416EOTlcH','Mock\x20API\x20error:\x20','utf-8','parse','6246RjrFqY','30079stRiOI','1076qLeUJf','143YYNQwn','data','800050SwcQIl','1968ZKorYL','5715PBzGLg','26mjSVud','252136LyuTxE'];a5_0x5705=function(){return _0xff87d5;};return a5_0x5705();}function loadMockAppList(){const _0x43d161=a5_0x1941,_0x5d6ec4=join(__dirname,_0x43d161(0x7d)),_0x3d7d3b=readFileSync(_0x5d6ec4,_0x43d161(0x81));return JSON[_0x43d161(0x82)](_0x3d7d3b);}let _cached=null;export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x1260aa=a5_0x1941,_0x38bdc6=getMockAppList();if(!_0x38bdc6['success'])throw new Error(_0x1260aa(0x80)+_0x38bdc6[_0x1260aa(0x7e)]+'\x20('+_0x38bdc6['errorCode']+')');return _0x38bdc6[_0x1260aa(0x75)]['tableData'];}
1
+ (function(_0x565ada,_0x285d4d){const _0x4ef3a7=a5_0x1d5f,_0x8ac91f=_0x565ada();while(!![]){try{const _0x3e6018=-parseInt(_0x4ef3a7(0x19d))/0x1*(parseInt(_0x4ef3a7(0x1ac))/0x2)+parseInt(_0x4ef3a7(0x1a0))/0x3*(parseInt(_0x4ef3a7(0x19f))/0x4)+-parseInt(_0x4ef3a7(0x1a1))/0x5+parseInt(_0x4ef3a7(0x1a8))/0x6*(parseInt(_0x4ef3a7(0x1a7))/0x7)+parseInt(_0x4ef3a7(0x1aa))/0x8*(-parseInt(_0x4ef3a7(0x1ab))/0x9)+parseInt(_0x4ef3a7(0x19c))/0xa+-parseInt(_0x4ef3a7(0x1a6))/0xb;if(_0x3e6018===_0x285d4d)break;else _0x8ac91f['push'](_0x8ac91f['shift']());}catch(_0x4c0a13){_0x8ac91f['push'](_0x8ac91f['shift']());}}}(a5_0x12ac,0x36c68));import{fileURLToPath}from'url';import{dirname,join}from'path';function a5_0x12ac(){const _0xdef3ab=['10RzaYSO','Mock\x20API\x20error:\x20','569484ZwCaFH','9hBeUdP','2188470vgrsCN','tableData','../../../mock/app-list.json','utf-8','success','2593624LTwSKs','81319qNHQbp','150qJSbLh','data','32dldhnm','82206kZSlVf','21628qgilFA','parse','3249760cncTrl'];a5_0x12ac=function(){return _0xdef3ab;};return a5_0x12ac();}import{readFileSync}from'fs';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function loadMockAppList(){const _0x507b20=a5_0x1d5f,_0x373811=join(__dirname,_0x507b20(0x1a3)),_0x50de1b=readFileSync(_0x373811,_0x507b20(0x1a4));return JSON[_0x507b20(0x19b)](_0x50de1b);}let _cached=null;function a5_0x1d5f(_0x1da8b3,_0x4586ee){_0x1da8b3=_0x1da8b3-0x19b;const _0x12acde=a5_0x12ac();let _0x1d5fc6=_0x12acde[_0x1da8b3];return _0x1d5fc6;}export function getMockAppList(){return!_cached&&(_cached=loadMockAppList()),_cached;}export function getMockRemoteAppItems(){const _0x39f0b1=a5_0x1d5f,_0xf965a=getMockAppList();if(!_0xf965a[_0x39f0b1(0x1a5)])throw new Error(_0x39f0b1(0x19e)+_0xf965a['errorMsg']+'\x20('+_0xf965a['errorCode']+')');return _0xf965a[_0x39f0b1(0x1a9)][_0x39f0b1(0x1a2)];}
@@ -1 +1 @@
1
- (function(_0x11f6e3,_0x330633){const _0xb796a8=a6_0xda62,_0x1019cc=_0x11f6e3();while(!![]){try{const _0x247110=-parseInt(_0xb796a8(0x181))/0x1*(parseInt(_0xb796a8(0x18f))/0x2)+parseInt(_0xb796a8(0x18e))/0x3+-parseInt(_0xb796a8(0x18d))/0x4*(parseInt(_0xb796a8(0x18a))/0x5)+parseInt(_0xb796a8(0x190))/0x6+parseInt(_0xb796a8(0x185))/0x7*(parseInt(_0xb796a8(0x18c))/0x8)+parseInt(_0xb796a8(0x188))/0x9+parseInt(_0xb796a8(0x17f))/0xa*(-parseInt(_0xb796a8(0x186))/0xb);if(_0x247110===_0x330633)break;else _0x1019cc['push'](_0x1019cc['shift']());}catch(_0x44acd2){_0x1019cc['push'](_0x1019cc['shift']());}}}(a6_0x326e,0xddacd));import{getMyApps}from'../../core/api-client.js';function a6_0x326e(){const _0x12a6b7=['835056FCgCqr','trim','1369510udfIot','toLowerCase','8HxmABP','4aUyojf','4692180ovzdxq','92ouFfwv','3928116rnIorg','mock','APP_LIST_SOURCE','230HhJfJg','fetchedAt','39113mGpqZX','items','remote','toISOString','6704348dHkZch','137841hRHOCL','cache'];a6_0x326e=function(){return _0x12a6b7;};return a6_0x326e();}import{getMockRemoteAppItems}from'../../commands/app/mock-loader.js';function a6_0xda62(_0x254be5,_0x33e18f){_0x254be5=_0x254be5-0x17d;const _0x326e16=a6_0x326e();let _0xda6271=_0x326e16[_0x254be5];return _0xda6271;}import{getAppCacheFilePath,readCachedAppList,writeCachedAppList}from'../../commands/app/cache.js';import{productEnv}from'../../constant/product.js';export function shouldUseMockRemoteApps(){const _0x365ad8=a6_0xda62,_0x2df393=(productEnv(_0x365ad8(0x17e))||'')[_0x365ad8(0x189)]()[_0x365ad8(0x18b)]();return _0x2df393==='mock';}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x129a56){const _0x2f615d=a6_0xda62,{env:_0xc295b5,accessKey:_0x4a54c1,localOnly:localOnly=![],noCache:noCache=![]}=_0x129a56,_0x3d1f65=readCachedAppList(_0xc295b5,_0x4a54c1),_0xfa3848=_0x4a54c1?.[_0x2f615d(0x189)]()?getAppCacheFilePath(_0xc295b5,_0x4a54c1):null;if(localOnly)return{'items':_0x3d1f65?.[_0x2f615d(0x182)]??[],'source':_0x2f615d(0x187),'fetchedAt':_0x3d1f65?.[_0x2f615d(0x180)]??null,'cachePath':_0xfa3848};try{const _0x2e10a1=await getRemoteAppItems(),_0x25454f=shouldUseMockRemoteApps()?_0x2f615d(0x17d):_0x2f615d(0x183),_0x3d6b87=new Date()[_0x2f615d(0x184)](),_0x55de73=_0x4a54c1?.[_0x2f615d(0x189)]()?writeCachedAppList(_0xc295b5,_0x4a54c1,{'env':_0xc295b5,'fetchedAt':_0x3d6b87,'source':_0x25454f,'items':_0x2e10a1}):null;return{'items':_0x2e10a1,'source':_0x25454f,'fetchedAt':_0x3d6b87,'cachePath':_0x55de73};}catch(_0x2b71d3){if(!noCache&&_0x3d1f65)return{'items':_0x3d1f65[_0x2f615d(0x182)],'source':_0x2f615d(0x187),'fetchedAt':_0x3d1f65[_0x2f615d(0x180)],'cachePath':_0xfa3848};throw _0x2b71d3;}}
1
+ (function(_0x5b647e,_0x36df4f){const _0x3e8657=a6_0x5d6e,_0x5ee4cf=_0x5b647e();while(!![]){try{const _0x451c46=parseInt(_0x3e8657(0x147))/0x1+parseInt(_0x3e8657(0x13b))/0x2+-parseInt(_0x3e8657(0x144))/0x3*(parseInt(_0x3e8657(0x13c))/0x4)+parseInt(_0x3e8657(0x148))/0x5*(-parseInt(_0x3e8657(0x14a))/0x6)+-parseInt(_0x3e8657(0x146))/0x7*(parseInt(_0x3e8657(0x149))/0x8)+-parseInt(_0x3e8657(0x140))/0x9*(-parseInt(_0x3e8657(0x14c))/0xa)+-parseInt(_0x3e8657(0x13e))/0xb*(parseInt(_0x3e8657(0x14b))/0xc);if(_0x451c46===_0x36df4f)break;else _0x5ee4cf['push'](_0x5ee4cf['shift']());}catch(_0x2dd54c){_0x5ee4cf['push'](_0x5ee4cf['shift']());}}}(a6_0x5379,0xa70f2));function a6_0x5d6e(_0x281356,_0xc1e60b){_0x281356=_0x281356-0x13a;const _0x53793f=a6_0x5379();let _0x5d6e4a=_0x53793f[_0x281356];return _0x5d6e4a;}import{getMyApps}from'../../core/api-client.js';function a6_0x5379(){const _0x24014a=['trim','items','60237SlwKar','mock','297220VaMmrL','1198145naRSYs','910bMMBig','16fXRIGR','30540GetPsm','564SBePhE','170uEBrPD','remote','693160fMiTDz','8dVdnAb','cache','57068NGlWqi','APP_LIST_SOURCE','230211GUaFko','fetchedAt'];a6_0x5379=function(){return _0x24014a;};return a6_0x5379();}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 _0x2054f2=a6_0x5d6e,_0x57054a=(productEnv(_0x2054f2(0x13f))||'')[_0x2054f2(0x142)]()['toLowerCase']();return _0x57054a===_0x2054f2(0x145);}export async function getRemoteAppItems(){if(shouldUseMockRemoteApps())return getMockRemoteAppItems();return getMyApps();}export async function getRemoteAppList(_0x1646d1){const _0x269970=a6_0x5d6e,{env:_0x5c523d,accessKey:_0x3dd0bf,localOnly:localOnly=![],noCache:noCache=![]}=_0x1646d1,_0x490bfe=readCachedAppList(_0x5c523d,_0x3dd0bf),_0x5034f2=_0x3dd0bf?.[_0x269970(0x142)]()?getAppCacheFilePath(_0x5c523d,_0x3dd0bf):null;if(localOnly)return{'items':_0x490bfe?.[_0x269970(0x143)]??[],'source':_0x269970(0x13d),'fetchedAt':_0x490bfe?.[_0x269970(0x141)]??null,'cachePath':_0x5034f2};try{const _0x592c88=await getRemoteAppItems(),_0x4620aa=shouldUseMockRemoteApps()?_0x269970(0x145):_0x269970(0x13a),_0x29fb3d=new Date()['toISOString'](),_0x1a5bf0=_0x3dd0bf?.[_0x269970(0x142)]()?writeCachedAppList(_0x5c523d,_0x3dd0bf,{'env':_0x5c523d,'fetchedAt':_0x29fb3d,'source':_0x4620aa,'items':_0x592c88}):null;return{'items':_0x592c88,'source':_0x4620aa,'fetchedAt':_0x29fb3d,'cachePath':_0x1a5bf0};}catch(_0x5aa80e){if(!noCache&&_0x490bfe)return{'items':_0x490bfe[_0x269970(0x143)],'source':_0x269970(0x13d),'fetchedAt':_0x490bfe[_0x269970(0x141)],'cachePath':_0x5034f2};throw _0x5aa80e;}}
@@ -1 +1 @@
1
- function a7_0x4c2b(){const _0x39a901=['4504913uiNXYt','172RPRolo','5434578GvlMDZ','41435BVifCK','project','defaultApp','name','219SgemMC','appCode','1227969niVVod','4542136ZoaoOt','global','named','trim','appcode','30HiUwHt','9904vprKgH','definedIn','isCurrent','currentApp','64996WMzvmT','local','find'];a7_0x4c2b=function(){return _0x39a901;};return a7_0x4c2b();}(function(_0x2fd853,_0x5aa13e){const _0x5c1576=a7_0x1160,_0x3de436=_0x2fd853();while(!![]){try{const _0x877c07=parseInt(_0x5c1576(0x19f))/0x1+-parseInt(_0x5c1576(0x1b2))/0x2*(-parseInt(_0x5c1576(0x1a9))/0x3)+parseInt(_0x5c1576(0x1a3))/0x4*(-parseInt(_0x5c1576(0x1a5))/0x5)+parseInt(_0x5c1576(0x1a4))/0x6+-parseInt(_0x5c1576(0x1a2))/0x7+parseInt(_0x5c1576(0x1ac))/0x8+parseInt(_0x5c1576(0x1ab))/0x9*(-parseInt(_0x5c1576(0x1b1))/0xa);if(_0x877c07===_0x5aa13e)break;else _0x3de436['push'](_0x3de436['shift']());}catch(_0x1bde9c){_0x3de436['push'](_0x3de436['shift']());}}}(a7_0x4c2b,0x77d2f));import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';function a7_0x1160(_0x5eef92,_0x533d0e){_0x5eef92=_0x5eef92-0x19c;const _0x4c2b5c=a7_0x4c2b();let _0x1160d8=_0x4c2b5c[_0x5eef92];return _0x1160d8;}export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x3d579e,_0x55aa1f){const _0x5bef10=a7_0x1160;if(!_0x55aa1f)return;const _0x231682=!!(_0x55aa1f[_0x5bef10(0x19e)]??_0x55aa1f[_0x5bef10(0x1a7)]);for(const _0x2ec02e of _0x3d579e){_0x2ec02e[_0x5bef10(0x19d)]=![];}const _0x1e82dc=_0x55aa1f['appCode']!=null?String(_0x55aa1f[_0x5bef10(0x1aa)])[_0x5bef10(0x1af)]():'';if(_0x231682){const _0x3cc88e=_0x55aa1f[_0x5bef10(0x19e)]??_0x55aa1f[_0x5bef10(0x1a7)];if(_0x3cc88e){const _0x31021f=_0x3d579e[_0x5bef10(0x1a1)](_0x355e98=>_0x355e98[_0x5bef10(0x1ae)]===!![]&&_0x355e98[_0x5bef10(0x1a8)]===_0x3cc88e&&_0x355e98[_0x5bef10(0x19c)]===_0x5bef10(0x1a0)),_0xf35217=_0x31021f??_0x3d579e[_0x5bef10(0x1a1)](_0x509ca0=>_0x509ca0[_0x5bef10(0x1ae)]===!![]&&_0x509ca0[_0x5bef10(0x1a8)]===_0x3cc88e);if(_0xf35217){const _0x2e787a=String(_0xf35217[_0x5bef10(0x1b0)]??'')[_0x5bef10(0x1af)]();if(!_0x1e82dc||_0x2e787a===_0x1e82dc){_0xf35217[_0x5bef10(0x19d)]=!![];return;}}}if(_0x1e82dc){const _0x1b8500=_0x3d579e[_0x5bef10(0x1a1)](_0x15074b=>String(_0x15074b[_0x5bef10(0x1b0)]??'')['trim']()===_0x1e82dc);_0x1b8500&&(_0x1b8500['isCurrent']=!![]);}return;}if(!_0x1e82dc)return;for(const _0x360bc3 of _0x3d579e){String(_0x360bc3['appcode']??'')[_0x5bef10(0x1af)]()===_0x1e82dc&&(_0x360bc3['isCurrent']=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x384ad8){const _0x693f71=a7_0x1160;return formatScopeLabel(_0x384ad8['global']?_0x693f71(0x1ad):_0x693f71(0x1a6));}
1
+ function a7_0x207d(_0x28dbba,_0x53476a){_0x28dbba=_0x28dbba-0x195;const _0x5f580c=a7_0x5f58();let _0x207dd3=_0x5f580c[_0x28dbba];return _0x207dd3;}(function(_0x1728f0,_0x4e9c6d){const _0x53fb9c=a7_0x207d,_0x1ccb9a=_0x1728f0();while(!![]){try{const _0x575fcf=parseInt(_0x53fb9c(0x199))/0x1+-parseInt(_0x53fb9c(0x197))/0x2*(-parseInt(_0x53fb9c(0x198))/0x3)+-parseInt(_0x53fb9c(0x196))/0x4*(parseInt(_0x53fb9c(0x1a9))/0x5)+parseInt(_0x53fb9c(0x1a0))/0x6+parseInt(_0x53fb9c(0x1a1))/0x7+-parseInt(_0x53fb9c(0x1a7))/0x8*(-parseInt(_0x53fb9c(0x1a4))/0x9)+-parseInt(_0x53fb9c(0x1a3))/0xa;if(_0x575fcf===_0x4e9c6d)break;else _0x1ccb9a['push'](_0x1ccb9a['shift']());}catch(_0x1e3ca9){_0x1ccb9a['push'](_0x1ccb9a['shift']());}}}(a7_0x5f58,0x9a160));function a7_0x5f58(){const _0x19b9a4=['3992034pNWHqS','2269134NbgZrr','isCurrent','14910610WxuCUa','237411qhjLZD','local','global','200NVmLfO','definedIn','130ACbsmr','appCode','currentApp','31300QNfKvn','2WGnOQX','83865tnoLgW','648716mSIOwv','find','trim','named','name','defaultApp','appcode'];a7_0x5f58=function(){return _0x19b9a4;};return a7_0x5f58();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{formatScopeLabel}from'../../commands/common/config-policy.js';export{CLI_BIN_NAME};export function enrichAppListItemsWithMergedSelection(_0x287958,_0x2e6c43){const _0x437e42=a7_0x207d;if(!_0x2e6c43)return;const _0xff1351=!!(_0x2e6c43[_0x437e42(0x195)]??_0x2e6c43[_0x437e42(0x19e)]);for(const _0x5ae541 of _0x287958){_0x5ae541['isCurrent']=![];}const _0x45b3e0=_0x2e6c43[_0x437e42(0x1aa)]!=null?String(_0x2e6c43[_0x437e42(0x1aa)])[_0x437e42(0x19b)]():'';if(_0xff1351){const _0x35d9c1=_0x2e6c43[_0x437e42(0x195)]??_0x2e6c43[_0x437e42(0x19e)];if(_0x35d9c1){const _0x5a39f7=_0x287958[_0x437e42(0x19a)](_0x5154fa=>_0x5154fa['named']===!![]&&_0x5154fa[_0x437e42(0x19d)]===_0x35d9c1&&_0x5154fa[_0x437e42(0x1a8)]===_0x437e42(0x1a5)),_0x2efc53=_0x5a39f7??_0x287958['find'](_0x48ace5=>_0x48ace5[_0x437e42(0x19c)]===!![]&&_0x48ace5[_0x437e42(0x19d)]===_0x35d9c1);if(_0x2efc53){const _0x4d2d60=String(_0x2efc53['appcode']??'')[_0x437e42(0x19b)]();if(!_0x45b3e0||_0x4d2d60===_0x45b3e0){_0x2efc53[_0x437e42(0x1a2)]=!![];return;}}}if(_0x45b3e0){const _0x292654=_0x287958[_0x437e42(0x19a)](_0x1b4902=>String(_0x1b4902[_0x437e42(0x19f)]??'')[_0x437e42(0x19b)]()===_0x45b3e0);_0x292654&&(_0x292654[_0x437e42(0x1a2)]=!![]);}return;}if(!_0x45b3e0)return;for(const _0x37df20 of _0x287958){String(_0x37df20[_0x437e42(0x19f)]??'')[_0x437e42(0x19b)]()===_0x45b3e0&&(_0x37df20[_0x437e42(0x1a2)]=!![]);}}export{readScopedConfig as readConfig,writeScopedConfig as writeConfig,isInProject}from'../../context.js';export function scopeLabel(_0x1db1ea){const _0x795690=a7_0x207d;return formatScopeLabel(_0x1db1ea['global']?_0x795690(0x1a6):'project');}
@@ -1 +1 @@
1
- const a8_0xea7562=a8_0x519d;(function(_0x27f016,_0x257663){const _0x580684=a8_0x519d,_0x298a04=_0x27f016();while(!![]){try{const _0x29f1df=-parseInt(_0x580684(0xd8))/0x1+-parseInt(_0x580684(0xe8))/0x2*(-parseInt(_0x580684(0xe4))/0x3)+parseInt(_0x580684(0xdd))/0x4+-parseInt(_0x580684(0xe1))/0x5+-parseInt(_0x580684(0xe7))/0x6+-parseInt(_0x580684(0xe2))/0x7*(parseInt(_0x580684(0xdb))/0x8)+parseInt(_0x580684(0xeb))/0x9;if(_0x29f1df===_0x257663)break;else _0x298a04['push'](_0x298a04['shift']());}catch(_0x14db5e){_0x298a04['push'](_0x298a04['shift']());}}}(a8_0x1d03,0x4ab03));import{getRuntimeAppConfigByKey}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a8_0x519d(_0x1fd1f4,_0x2305d3){_0x1fd1f4=_0x1fd1f4-0xd6;const _0x1d0303=a8_0x1d03();let _0x519d2d=_0x1d0303[_0x1fd1f4];return _0x519d2d;}import{CLI_BIN_NAME}from'../../constant/cli.js';function a8_0x1d03(){const _0x39d084=['\x20app-config\x20get\x20<key>','16EUGOWr','Usage:\x20','1114832XPQleT',',\x20appCode=','read','App\x20config\x20key','2138115JPHZLJ','2000194oaCDzH','get','876510WfkTmx','key','Unable\x20to\x20inspect\x20app-config\x20key\x20status:\x20key=','2554230WqCOIt','2umSXCt','appCode','args','14956569DoEgcH','Check\x20whether\x20one\x20runtime\x20app-config\x20key\x20is\x20configured\x20without\x20printing\x20its\x20value','Missing\x20app-config\x20key.','501984wUxLgl','app-config'];a8_0x1d03=function(){return _0x39d084;};return a8_0x1d03();}import{projectAppConfigVisibilityCheck}from'../../commands/app-config/shared.js';export const appConfigGet={'service':a8_0xea7562(0xd9),'command':a8_0xea7562(0xe3),'description':a8_0xea7562(0xd6),'risk':a8_0xea7562(0xdf),'args':[{'name':a8_0xea7562(0xe5),'description':a8_0xea7562(0xe0),'required':!![]}],'flags':[],async 'execute'(_0x2ff2ec){const _0x78e85=a8_0xea7562,_0x4c609d=_0x2ff2ec[_0x78e85(0xea)][0x0]?.['trim']();if(!_0x4c609d)throw CliErrors['validation'](_0x78e85(0xd7),_0x78e85(0xdc)+CLI_BIN_NAME+_0x78e85(0xda));try{const _0x59c036=await getRuntimeAppConfigByKey(_0x2ff2ec[_0x78e85(0xe9)],_0x4c609d);return{'ok':!![],'data':projectAppConfigVisibilityCheck(_0x59c036,{'appCode':_0x2ff2ec[_0x78e85(0xe9)],'key':_0x4c609d})};}catch{throw CliErrors['apiError'](_0x78e85(0xe6)+_0x4c609d+_0x78e85(0xde)+_0x2ff2ec[_0x78e85(0xe9)],'Check\x20that\x20the\x20key\x20exists,\x20the\x20current\x20AccessKey\x20has\x20permission,\x20and\x20the\x20runtime\x20read-only\x20app-config\x20endpoint\x20is\x20available.');}}};
1
+ function a8_0x5318(_0xb1b945,_0x51121d){_0xb1b945=_0xb1b945-0x1e0;const _0x5b4013=a8_0x5b40();let _0x531858=_0x5b4013[_0xb1b945];return _0x531858;}const a8_0x25e3a0=a8_0x5318;(function(_0x4bc8cc,_0x29d635){const _0xd47e01=a8_0x5318,_0x7cc472=_0x4bc8cc();while(!![]){try{const _0x43d80b=parseInt(_0xd47e01(0x1ed))/0x1+-parseInt(_0xd47e01(0x1e6))/0x2*(parseInt(_0xd47e01(0x1e9))/0x3)+parseInt(_0xd47e01(0x1ec))/0x4*(parseInt(_0xd47e01(0x1e3))/0x5)+parseInt(_0xd47e01(0x1ef))/0x6+parseInt(_0xd47e01(0x1f4))/0x7*(parseInt(_0xd47e01(0x1e2))/0x8)+parseInt(_0xd47e01(0x1e0))/0x9+-parseInt(_0xd47e01(0x1e5))/0xa;if(_0x43d80b===_0x29d635)break;else _0x7cc472['push'](_0x7cc472['shift']());}catch(_0x5b4258){_0x7cc472['push'](_0x7cc472['shift']());}}}(a8_0x5b40,0xcdcbb));import{getRuntimeAppConfigByKey}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a8_0x5b40(){const _0x4ed1de=['Check\x20whether\x20one\x20runtime\x20app-config\x20key\x20is\x20configured\x20without\x20printing\x20its\x20value','Missing\x20app-config\x20key.','44430XivqDB',',\x20appCode=','app-config','5044744FJGSHC','23945pFanqY','Check\x20that\x20the\x20key\x20exists,\x20the\x20current\x20AccessKey\x20has\x20permission,\x20and\x20the\x20runtime\x20read-only\x20app-config\x20endpoint\x20is\x20available.','956934wEpuIO','args','appCode','\x20app-config\x20get\x20<key>','trim','178374NCFqNt','read','validation','9057843zEiyWW','get','16AllhvJ','5bwvjtV','App\x20config\x20key','16294520MAskpp','4ThFJkK'];a8_0x5b40=function(){return _0x4ed1de;};return a8_0x5b40();}import{projectAppConfigVisibilityCheck}from'../../commands/app-config/shared.js';export const appConfigGet={'service':a8_0x25e3a0(0x1eb),'command':a8_0x25e3a0(0x1e1),'description':a8_0x25e3a0(0x1e7),'risk':a8_0x25e3a0(0x1f5),'args':[{'name':'key','description':a8_0x25e3a0(0x1e4),'required':!![]}],'flags':[],async 'execute'(_0x43e75a){const _0x18b691=a8_0x25e3a0,_0x4883da=_0x43e75a[_0x18b691(0x1f0)][0x0]?.[_0x18b691(0x1f3)]();if(!_0x4883da)throw CliErrors[_0x18b691(0x1f6)](_0x18b691(0x1e8),'Usage:\x20'+CLI_BIN_NAME+_0x18b691(0x1f2));try{const _0x295e03=await getRuntimeAppConfigByKey(_0x43e75a[_0x18b691(0x1f1)],_0x4883da);return{'ok':!![],'data':projectAppConfigVisibilityCheck(_0x295e03,{'appCode':_0x43e75a[_0x18b691(0x1f1)],'key':_0x4883da})};}catch{throw CliErrors['apiError']('Unable\x20to\x20inspect\x20app-config\x20key\x20status:\x20key='+_0x4883da+_0x18b691(0x1ea)+_0x43e75a[_0x18b691(0x1f1)],_0x18b691(0x1ee));}}};
@@ -1 +1 @@
1
- (function(_0x39b3f1,_0x595678){const _0x449c59=a9_0x2363,_0x46335e=_0x39b3f1();while(!![]){try{const _0x5289fa=parseInt(_0x449c59(0x86))/0x1*(-parseInt(_0x449c59(0x82))/0x2)+-parseInt(_0x449c59(0x85))/0x3*(-parseInt(_0x449c59(0x87))/0x4)+-parseInt(_0x449c59(0x7f))/0x5+-parseInt(_0x449c59(0x7e))/0x6*(parseInt(_0x449c59(0x84))/0x7)+-parseInt(_0x449c59(0x81))/0x8+-parseInt(_0x449c59(0x83))/0x9*(-parseInt(_0x449c59(0x88))/0xa)+parseInt(_0x449c59(0x80))/0xb;if(_0x5289fa===_0x595678)break;else _0x46335e['push'](_0x46335e['shift']());}catch(_0x8b7f4f){_0x46335e['push'](_0x46335e['shift']());}}}(a9_0x301e,0x4b430));function a9_0x301e(){const _0x40ea6f=['2BODblX','628qPIhvC','10UgmlxZ','42ZkehEK','2699935yEhYZz','16725852vsBrFH','3261736OgqdHZ','508294NSOPXj','2173482NwrEya','213164RpDYaD','4116zjeOQh'];a9_0x301e=function(){return _0x40ea6f;};return a9_0x301e();}function a9_0x2363(_0x4a771a,_0x1dcc3c){_0x4a771a=_0x4a771a-0x7e;const _0x301e4a=a9_0x301e();let _0x2363df=_0x301e4a[_0x4a771a];return _0x2363df;}import{appConfigGet}from'../../commands/app-config/get.js';export const appConfigDefinitions=[appConfigGet];
1
+ function a9_0x597f(_0x35f818,_0x476122){_0x35f818=_0x35f818-0x16d;const _0x91513d=a9_0x9151();let _0x597f04=_0x91513d[_0x35f818];return _0x597f04;}(function(_0x37d87b,_0x31fb47){const _0x2e0059=a9_0x597f,_0x2cd8b3=_0x37d87b();while(!![]){try{const _0x1d5175=parseInt(_0x2e0059(0x173))/0x1+parseInt(_0x2e0059(0x16f))/0x2+-parseInt(_0x2e0059(0x171))/0x3+parseInt(_0x2e0059(0x170))/0x4*(parseInt(_0x2e0059(0x174))/0x5)+-parseInt(_0x2e0059(0x16e))/0x6+parseInt(_0x2e0059(0x175))/0x7*(-parseInt(_0x2e0059(0x172))/0x8)+-parseInt(_0x2e0059(0x16d))/0x9*(-parseInt(_0x2e0059(0x176))/0xa);if(_0x1d5175===_0x31fb47)break;else _0x2cd8b3['push'](_0x2cd8b3['shift']());}catch(_0xab0dfd){_0x2cd8b3['push'](_0x2cd8b3['shift']());}}}(a9_0x9151,0xf0caf));import{appConfigGet}from'../../commands/app-config/get.js';function a9_0x9151(){const _0x5396c4=['1247058IjjsLU','325505mQTsPn','1202887srUePH','10IPTObg','12748518YTVHrm','4266192MmwTYy','605110tTNoOb','16EesnYC','2009985VhucGG','40ZWsQfC'];a9_0x9151=function(){return _0x5396c4;};return a9_0x9151();}export const appConfigDefinitions=[appConfigGet];
@@ -1 +1 @@
1
- (function(_0x50bd98,_0xf8ce0b){const _0x514ab9=a10_0x3611,_0x3a46b9=_0x50bd98();while(!![]){try{const _0x56c058=-parseInt(_0x514ab9(0x1ee))/0x1*(parseInt(_0x514ab9(0x1eb))/0x2)+-parseInt(_0x514ab9(0x200))/0x3+-parseInt(_0x514ab9(0x1f0))/0x4*(-parseInt(_0x514ab9(0x1fb))/0x5)+parseInt(_0x514ab9(0x1ed))/0x6+-parseInt(_0x514ab9(0x1f6))/0x7+parseInt(_0x514ab9(0x1fc))/0x8*(parseInt(_0x514ab9(0x1f5))/0x9)+parseInt(_0x514ab9(0x1f8))/0xa;if(_0x56c058===_0xf8ce0b)break;else _0x3a46b9['push'](_0x3a46b9['shift']());}catch(_0x31e8db){_0x3a46b9['push'](_0x3a46b9['shift']());}}}(a10_0x3084,0x93795));function a10_0x3084(){const _0x38b391=['trim','485RGiCBl','64RPaUgt','createTime','split','map','1847574Xgsptj','string','updateTime','140962QqWqBX','gmtCreate','1143360ljkOOu','7RyBbaM','isArray','35520JNvFlo','key','length','value','appCode','742185pQnPEW','2673692eSpYpa','traceId','3835940PCfOvL','filter'];a10_0x3084=function(){return _0x38b391;};return a10_0x3084();}function normalizeTags(_0xbf212b){const _0xedc851=a10_0x3611;if(Array[_0xedc851(0x1ef)](_0xbf212b))return _0xbf212b[_0xedc851(0x1ff)](_0x3eb0bb=>String(_0x3eb0bb))[_0xedc851(0x1f9)](Boolean);if(typeof _0xbf212b!=='string')return[];const _0x7e958c=_0xbf212b[_0xedc851(0x1fa)]();if(!_0x7e958c)return[];try{const _0x7127a=JSON['parse'](_0x7e958c);if(Array['isArray'](_0x7127a))return _0x7127a[_0xedc851(0x1ff)](_0x24283d=>String(_0x24283d))[_0xedc851(0x1f9)](Boolean);}catch{}return _0x7e958c[_0xedc851(0x1fe)](',')[_0xedc851(0x1ff)](_0x1d148f=>_0x1d148f[_0xedc851(0x1fa)]())[_0xedc851(0x1f9)](Boolean);}function a10_0x3611(_0x36f8ac,_0x5895ca){_0x36f8ac=_0x36f8ac-0x1ea;const _0x30844b=a10_0x3084();let _0x361161=_0x30844b[_0x36f8ac];return _0x361161;}export function projectAppConfigVisibilityCheck(_0x5526f6,_0x4dc131){const _0x43605f=a10_0x3611,_0x22f4b7=_0x5526f6[_0x43605f(0x1f3)],_0x13c4da={'appCode':typeof _0x5526f6[_0x43605f(0x1f4)]==='string'&&_0x5526f6[_0x43605f(0x1f4)][_0x43605f(0x1fa)]()?_0x5526f6[_0x43605f(0x1f4)]:_0x4dc131[_0x43605f(0x1f4)],'key':typeof _0x5526f6[_0x43605f(0x1f1)]===_0x43605f(0x201)&&_0x5526f6[_0x43605f(0x1f1)][_0x43605f(0x1fa)]()?_0x5526f6[_0x43605f(0x1f1)]:_0x4dc131[_0x43605f(0x1f1)],'tags':normalizeTags(_0x5526f6['tags']),'hasValue':typeof _0x22f4b7===_0x43605f(0x201)?_0x22f4b7[_0x43605f(0x1f2)]>0x0:_0x22f4b7!=null,'valueRedacted':!![],'gmtModified':_0x5526f6['gmtModified']??_0x5526f6[_0x43605f(0x1ea)]??'','gmtCreate':_0x5526f6[_0x43605f(0x1ec)]??_0x5526f6[_0x43605f(0x1fd)]??''};return typeof _0x5526f6[_0x43605f(0x1f7)]===_0x43605f(0x201)&&_0x5526f6['traceId'][_0x43605f(0x1fa)]()&&(_0x13c4da[_0x43605f(0x1f7)]=_0x5526f6['traceId']),_0x13c4da;}
1
+ function a10_0x31b3(_0x5d3540,_0x5e0012){_0x5d3540=_0x5d3540-0x64;const _0x12a016=a10_0x12a0();let _0x31b3d9=_0x12a016[_0x5d3540];return _0x31b3d9;}(function(_0x189481,_0x3bd10f){const _0x5287cd=a10_0x31b3,_0x35d359=_0x189481();while(!![]){try{const _0x5dffbd=parseInt(_0x5287cd(0x6f))/0x1*(parseInt(_0x5287cd(0x7a))/0x2)+parseInt(_0x5287cd(0x79))/0x3+-parseInt(_0x5287cd(0x67))/0x4+parseInt(_0x5287cd(0x74))/0x5*(-parseInt(_0x5287cd(0x6a))/0x6)+parseInt(_0x5287cd(0x7d))/0x7+parseInt(_0x5287cd(0x75))/0x8*(parseInt(_0x5287cd(0x69))/0x9)+-parseInt(_0x5287cd(0x68))/0xa;if(_0x5dffbd===_0x3bd10f)break;else _0x35d359['push'](_0x35d359['shift']());}catch(_0x349793){_0x35d359['push'](_0x35d359['shift']());}}}(a10_0x12a0,0x42c86));function a10_0x12a0(){const _0x4f2186=['createTime','214577GOoThq','map','isArray','length','boolean','77060lkhGCP','8CpylRR','trim','filter','appCode','210453WlplNg','2wswydw','string','traceId','766584lblapX','key','value','gmtCreate','split','parse','127004XwbDMR','3481440DtkKsW','4274685zEOBmf','84gEpulX','hasValue','gmtModified','updateTime'];a10_0x12a0=function(){return _0x4f2186;};return a10_0x12a0();}function normalizeTags(_0x475a14){const _0x2ced89=a10_0x31b3;if(Array['isArray'](_0x475a14))return _0x475a14[_0x2ced89(0x70)](_0x5b4d19=>String(_0x5b4d19))['filter'](Boolean);if(typeof _0x475a14!=='string')return[];const _0x3ecc36=_0x475a14[_0x2ced89(0x76)]();if(!_0x3ecc36)return[];try{const _0x855e62=JSON[_0x2ced89(0x66)](_0x3ecc36);if(Array[_0x2ced89(0x71)](_0x855e62))return _0x855e62[_0x2ced89(0x70)](_0x246b7a=>String(_0x246b7a))[_0x2ced89(0x77)](Boolean);}catch{}return _0x3ecc36[_0x2ced89(0x65)](',')[_0x2ced89(0x70)](_0x443898=>_0x443898[_0x2ced89(0x76)]())[_0x2ced89(0x77)](Boolean);}export function projectAppConfigVisibilityCheck(_0x47c1da,_0x3af240){const _0x370da9=a10_0x31b3,_0x3adb22=_0x47c1da[_0x370da9(0x7f)],_0x3dd2a6=typeof _0x47c1da[_0x370da9(0x6b)]===_0x370da9(0x73)?_0x47c1da[_0x370da9(0x6b)]:typeof _0x3adb22===_0x370da9(0x7b)?_0x3adb22[_0x370da9(0x72)]>0x0:_0x3adb22!=null,_0x5d6177={'appCode':typeof _0x47c1da['appCode']===_0x370da9(0x7b)&&_0x47c1da[_0x370da9(0x78)][_0x370da9(0x76)]()?_0x47c1da[_0x370da9(0x78)]:_0x3af240[_0x370da9(0x78)],'key':typeof _0x47c1da[_0x370da9(0x7e)]===_0x370da9(0x7b)&&_0x47c1da[_0x370da9(0x7e)][_0x370da9(0x76)]()?_0x47c1da['key']:_0x3af240[_0x370da9(0x7e)],'tags':normalizeTags(_0x47c1da['tags']),'hasValue':_0x3dd2a6,'valueRedacted':!![],'gmtModified':_0x47c1da[_0x370da9(0x6c)]??_0x47c1da[_0x370da9(0x6d)]??'','gmtCreate':_0x47c1da[_0x370da9(0x64)]??_0x47c1da[_0x370da9(0x6e)]??''};return typeof _0x47c1da[_0x370da9(0x7c)]===_0x370da9(0x7b)&&_0x47c1da[_0x370da9(0x7c)]['trim']()&&(_0x5d6177[_0x370da9(0x7c)]=_0x47c1da['traceId']),_0x5d6177;}
@@ -1 +1 @@
1
- function a11_0x33bd(_0xb27598,_0x13db1c){_0xb27598=_0xb27598-0x143;const _0x446f40=a11_0x446f();let _0x33bdf0=_0x446f40[_0xb27598];return _0x33bdf0;}const a11_0x14c897=a11_0x33bd;(function(_0x1f602e,_0x1aac6a){const _0x29e1f4=a11_0x33bd,_0x4bc353=_0x1f602e();while(!![]){try{const _0x2a613b=-parseInt(_0x29e1f4(0x14d))/0x1*(-parseInt(_0x29e1f4(0x17d))/0x2)+parseInt(_0x29e1f4(0x14b))/0x3*(-parseInt(_0x29e1f4(0x159))/0x4)+-parseInt(_0x29e1f4(0x15d))/0x5+parseInt(_0x29e1f4(0x14c))/0x6*(-parseInt(_0x29e1f4(0x181))/0x7)+-parseInt(_0x29e1f4(0x155))/0x8+-parseInt(_0x29e1f4(0x177))/0x9+parseInt(_0x29e1f4(0x162))/0xa;if(_0x2a613b===_0x1aac6a)break;else _0x4bc353['push'](_0x4bc353['shift']());}catch(_0x1ed2e4){_0x4bc353['push'](_0x4bc353['shift']());}}}(a11_0x446f,0xa497c));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_0x446f(){const _0x181fe2=['18UqjWiR','1QQiznU','build','react_module','flag','exec','Artifact\x20source\x20file\x20is\x20blank.','react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.','metadata','6446640xBJgMn','--metadata\x20must\x20be\x20a\x20JSON\x20object.','trim','Optional\x20source\x20filter,\x20for\x20example\x20AGENT','20wdDrxM','write','Preview:\x20create\x20react_module\x20Artifact','string','3750830qaJAwV','lodash','List\x20current-app\x20react_module\x20Artifacts','File\x20is\x20not\x20a\x20regular\x20file:\x20','list','39931630khDSmD','source','add','compiledContent','react','parse','split','includes','updateTime','name','body','test','Invalid\x20JSON\x20for\x20--metadata:\x20','Artifact\x20ID','artifactType','description','Updated\x20Artifact\x20','object','POST','Created\x20Artifact\x20','join','10281789WyROsM','@ant-design/icons','utf8','detail','Optional\x20favorite-state\x20filter','File\x20not\x20found:\x20','2156078aoqFxp','map','isArray','react-dom','1535667vemTqs','/client/artifact/','str','length','Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','bool','filter','verbose','favorite','isFile','validation','artifact','deleted','file','appCode','num','/client/artifact/create','.\x20Unsupported:\x20','lastIndex','createTime','startsWith','624282nygJMK'];a11_0x446f=function(){return _0x181fe2;};return a11_0x446f();}import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const ARTIFACT_TYPE_REACT_MODULE=a11_0x14c897(0x14f),ARTIFACT_SOURCE_AGENT='AGENT',ALLOWED_REACT_MODULE_IMPORTS=[a11_0x14c897(0x166),a11_0x14c897(0x180),a11_0x14c897(0x15e),'dayjs','antd',a11_0x14c897(0x178)];export const ALLOWED_REACT_MODULE_IMPORTS_TEXT=ALLOWED_REACT_MODULE_IMPORTS[a11_0x14c897(0x176)](',\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_0x14c897(0x143),'type':a11_0x14c897(0x15c),'required':!![],'description':'Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file'},ARTIFACT_NAME_FLAG={'name':a11_0x14c897(0x16b),'type':a11_0x14c897(0x15c),'description':'Artifact\x20display\x20name'},METADATA_FLAG={'name':a11_0x14c897(0x154),'type':a11_0x14c897(0x15c),'description':'Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped'};function isPlainObject(_0x2b92c1){const _0x2912c6=a11_0x14c897;return typeof _0x2b92c1===_0x2912c6(0x173)&&_0x2b92c1!==null&&!Array[_0x2912c6(0x17f)](_0x2b92c1);}function readSourceFile(_0x327997){const _0x1a00c5=a11_0x14c897;if(!_0x327997)throw CliErrors['validation']('File\x20path\x20is\x20required.');if(!existsSync(_0x327997))throw CliErrors[_0x1a00c5(0x18b)](_0x1a00c5(0x17c)+_0x327997);if(!statSync(_0x327997)[_0x1a00c5(0x18a)]())throw CliErrors['validation'](_0x1a00c5(0x160)+_0x327997);const _0x15c464=readFileSync(_0x327997,_0x1a00c5(0x179));return validateReactModuleSource(_0x15c464),_0x15c464;}function parseMetadata(_0x43354b){const _0x3b1cc2=a11_0x14c897;if(!_0x43354b)return undefined;let _0x225ee4;try{_0x225ee4=JSON[_0x3b1cc2(0x167)](_0x43354b);}catch{throw CliErrors[_0x3b1cc2(0x18b)](_0x3b1cc2(0x16e)+_0x43354b);}if(!isPlainObject(_0x225ee4))throw CliErrors[_0x3b1cc2(0x18b)](_0x3b1cc2(0x156));const _0x428ea0={..._0x225ee4};return delete _0x428ea0[_0x3b1cc2(0x165)],_0x428ea0;}function getPackageName(_0x85f5ba){const _0x314e61=a11_0x14c897;if(_0x85f5ba[_0x314e61(0x14a)]('@')){const [_0x22fd56,_0x403dd3]=_0x85f5ba[_0x314e61(0x168)]('/');return _0x22fd56&&_0x403dd3?_0x22fd56+'/'+_0x403dd3:_0x85f5ba;}return _0x85f5ba[_0x314e61(0x168)]('/')[0x0]||_0x85f5ba;}function validateAllowedImports(_0x5d1376){const _0x58b40a=a11_0x14c897,_0x185c38=new Set();for(const _0x1a96a4 of IMPORT_SOURCE_PATTERNS){_0x1a96a4[_0x58b40a(0x148)]=0x0;let _0x780eac;while((_0x780eac=_0x1a96a4[_0x58b40a(0x151)](_0x5d1376))!==null){const _0x3aec03=_0x780eac[0x1]?.[_0x58b40a(0x157)]();_0x3aec03&&_0x185c38[_0x58b40a(0x164)](_0x3aec03);}}const _0x4d5e56=[..._0x185c38][_0x58b40a(0x17e)](getPackageName)[_0x58b40a(0x187)](_0x2cbb47=>!ALLOWED_REACT_MODULE_IMPORTS[_0x58b40a(0x169)](_0x2cbb47));if(_0x4d5e56['length']>0x0)throw CliErrors[_0x58b40a(0x18b)]('react_module\x20imports\x20are\x20limited\x20to:\x20'+ALLOWED_REACT_MODULE_IMPORTS_TEXT+_0x58b40a(0x147)+[...new Set(_0x4d5e56)][_0x58b40a(0x176)](',\x20'));}export function validateReactModuleSource(_0x141242){const _0x4d8632=a11_0x14c897;if(!_0x141242[_0x4d8632(0x157)]())throw CliErrors[_0x4d8632(0x18b)](_0x4d8632(0x152));if(PAGE_LEVEL_PATTERNS['some'](_0x5906f=>_0x5906f[_0x4d8632(0x16d)](_0x141242)))throw CliErrors[_0x4d8632(0x18b)](_0x4d8632(0x153));validateAllowedImports(_0x141242);}function buildArtifactInput(_0x1632f4){const _0x3a35f3=a11_0x14c897,_0x4fc271=readSourceFile(_0x1632f4[_0x3a35f3(0x183)](_0x3a35f3(0x143))),_0x389fc9=_0x1632f4[_0x3a35f3(0x183)]('name')[_0x3a35f3(0x157)](),_0x4756a4=parseMetadata(_0x1632f4[_0x3a35f3(0x183)](_0x3a35f3(0x154)));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x389fc9?{'name':_0x389fc9}:{},'content':_0x4fc271,..._0x4756a4?{'metadata':_0x4756a4}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0x4b6c7e){const _0x532082=a11_0x14c897;return{'id':_0x4b6c7e['id'],'name':_0x4b6c7e[_0x532082(0x16b)],'artifactType':_0x4b6c7e[_0x532082(0x170)],'source':_0x4b6c7e['source'],'favorite':_0x4b6c7e['favorite'],'deleted':_0x4b6c7e['deleted'],'createTime':_0x4b6c7e[_0x532082(0x149)],'updateTime':_0x4b6c7e[_0x532082(0x16a)]};}function detailArtifact(_0x52702f){const _0xb0138f=a11_0x14c897;return{'id':_0x52702f['id'],'appCode':_0x52702f[_0xb0138f(0x144)],'name':_0x52702f[_0xb0138f(0x16b)],'artifactType':_0x52702f[_0xb0138f(0x170)],'source':_0x52702f['source'],'favorite':_0x52702f[_0xb0138f(0x189)],'deleted':_0x52702f[_0xb0138f(0x18d)],'content':_0x52702f['content']??'','compiledContent':_0x52702f[_0xb0138f(0x165)],'metadata':_0x52702f[_0xb0138f(0x154)]??{},'createTime':_0x52702f['createTime'],'updateTime':_0x52702f[_0xb0138f(0x16a)]};}function readFavoriteFlag(_0x5ae17a){const _0x39ae0e=a11_0x14c897,_0x136c29=_0x5ae17a[_0x39ae0e(0x150)](_0x39ae0e(0x189));return _0x136c29===undefined||_0x136c29===null||_0x136c29===''?undefined:_0x5ae17a[_0x39ae0e(0x186)]('favorite');}const artifactList={'service':a11_0x14c897(0x18c),'command':a11_0x14c897(0x161),'description':a11_0x14c897(0x15f),'risk':'read','flags':[{'name':'source','type':a11_0x14c897(0x15c),'description':a11_0x14c897(0x158)},{'name':'favorite','type':'boolean','description':a11_0x14c897(0x17b)},VERBOSE_FLAG],async 'execute'(_0x16dd8c){const _0x365a07=a11_0x14c897,_0x5e0e5a=await listRuntimeArtifacts(_0x16dd8c['appCode'],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x16dd8c[_0x365a07(0x183)]('source')?{'source':_0x16dd8c[_0x365a07(0x183)](_0x365a07(0x163))}:{},...readFavoriteFlag(_0x16dd8c)!==undefined?{'favorite':readFavoriteFlag(_0x16dd8c)}:{}});return{'ok':!![],'data':{'total':_0x5e0e5a[_0x365a07(0x184)],'items':_0x16dd8c['bool'](_0x365a07(0x188))?_0x5e0e5a:_0x5e0e5a[_0x365a07(0x17e)](summarizeArtifact)}};}},artifactDetail={'service':a11_0x14c897(0x18c),'command':a11_0x14c897(0x17a),'description':'Show\x20one\x20Artifact\x20by\x20id','risk':'read','flags':[{...ID_FLAG,'description':'Artifact\x20ID'}],async 'execute'(_0x87c655){const _0x11235e=a11_0x14c897,_0x2f2515=await getRuntimeArtifact(_0x87c655['num']('id'),_0x87c655[_0x11235e(0x144)]);return{'ok':!![],'data':detailArtifact(_0x2f2515)};}},artifactCreate={'service':a11_0x14c897(0x18c),'command':'create','description':a11_0x14c897(0x185),'risk':a11_0x14c897(0x15a),'flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x5e1f8a){const _0x5937dd=a11_0x14c897,_0xfc5652=buildArtifactInput(_0x5e1f8a),_0x567ac9=await createRuntimeArtifact(_0x5e1f8a['appCode'],_0xfc5652);return{'ok':!![],'data':detailArtifact(_0x567ac9),'message':_0x5937dd(0x175)+_0x567ac9['id']+(_0x567ac9[_0x5937dd(0x16b)]?'\x20('+_0x567ac9[_0x5937dd(0x16b)]+')':'')};},async 'dryRun'(_0x68fd3d){const _0x3db4b9=a11_0x14c897,_0x385f70=buildArtifactInput(_0x68fd3d);return dryRun('POST',_0x3db4b9(0x146))['body']({'appCode':_0x68fd3d['appCode'],..._0x385f70})[_0x3db4b9(0x171)](_0x3db4b9(0x15b))[_0x3db4b9(0x14e)]();}},artifactUpdate={'service':a11_0x14c897(0x18c),'command':'update','description':'Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','risk':a11_0x14c897(0x15a),'flags':[{...ID_FLAG,'description':a11_0x14c897(0x16f)},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x382b4c){const _0x3d970b=a11_0x14c897,_0x24c583=_0x382b4c[_0x3d970b(0x145)]('id'),_0x2a4035=buildArtifactInput(_0x382b4c),_0x1bc679=await updateRuntimeArtifact(_0x24c583,_0x382b4c[_0x3d970b(0x144)],_0x2a4035);return{'ok':!![],'data':detailArtifact(_0x1bc679),'message':_0x3d970b(0x172)+_0x1bc679['id']+(_0x1bc679[_0x3d970b(0x16b)]?'\x20('+_0x1bc679[_0x3d970b(0x16b)]+')':'')};},async 'dryRun'(_0x24cabd){const _0x3bd054=a11_0x14c897,_0x1f4974=_0x24cabd[_0x3bd054(0x145)]('id'),_0x5549a3=buildArtifactInput(_0x24cabd);return dryRun(_0x3bd054(0x174),_0x3bd054(0x182)+_0x1f4974+'/update')[_0x3bd054(0x16c)]({'appCode':_0x24cabd[_0x3bd054(0x144)],..._0x5549a3})[_0x3bd054(0x171)]('Preview:\x20update\x20react_module\x20Artifact\x20'+_0x1f4974)[_0x3bd054(0x14e)]();}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
1
+ const a11_0x4d89e2=a11_0x1e11;function a11_0x1e11(_0x47ee18,_0x4d8641){_0x47ee18=_0x47ee18-0xfd;const _0x2ec7fb=a11_0x2ec7();let _0x1e11a1=_0x2ec7fb[_0x47ee18];return _0x1e11a1;}(function(_0x2700c7,_0x3c3b40){const _0x361d5b=a11_0x1e11,_0x88079c=_0x2700c7();while(!![]){try{const _0x27eaa8=parseInt(_0x361d5b(0x118))/0x1*(-parseInt(_0x361d5b(0x143))/0x2)+-parseInt(_0x361d5b(0xfe))/0x3*(-parseInt(_0x361d5b(0x102))/0x4)+-parseInt(_0x361d5b(0x111))/0x5*(parseInt(_0x361d5b(0x12f))/0x6)+parseInt(_0x361d5b(0x13d))/0x7*(-parseInt(_0x361d5b(0x12b))/0x8)+-parseInt(_0x361d5b(0x129))/0x9+parseInt(_0x361d5b(0x13f))/0xa+parseInt(_0x361d5b(0x10a))/0xb*(parseInt(_0x361d5b(0x11c))/0xc);if(_0x27eaa8===_0x3c3b40)break;else _0x88079c['push'](_0x88079c['shift']());}catch(_0x5ea5cf){_0x88079c['push'](_0x88079c['shift']());}}}(a11_0x2ec7,0x740e9));import{existsSync,readFileSync,statSync}from'node:fs';import{createRuntimeArtifact,getRuntimeArtifact,listRuntimeArtifacts,updateRuntimeArtifact}from'../../core/api-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const ARTIFACT_TYPE_REACT_MODULE='react_module',ARTIFACT_SOURCE_AGENT='AGENT',ALLOWED_REACT_MODULE_IMPORTS=[a11_0x4d89e2(0x14a),a11_0x4d89e2(0x106),a11_0x4d89e2(0x131),a11_0x4d89e2(0x14b),a11_0x4d89e2(0x113),'@ant-design/icons'];export const ALLOWED_REACT_MODULE_IMPORTS_TEXT=ALLOWED_REACT_MODULE_IMPORTS[a11_0x4d89e2(0x109)](',\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_0x4d89e2(0x116),'type':a11_0x4d89e2(0x11d),'required':!![],'description':a11_0x4d89e2(0x12a)},ARTIFACT_NAME_FLAG={'name':a11_0x4d89e2(0x10c),'type':a11_0x4d89e2(0x11d),'description':a11_0x4d89e2(0x135)},METADATA_FLAG={'name':a11_0x4d89e2(0x139),'type':a11_0x4d89e2(0x11d),'description':'Artifact\x20metadata\x20as\x20JSON\x20object;\x20compiledContent\x20is\x20stripped'};function isPlainObject(_0x46eb61){const _0x2dd8d9=a11_0x4d89e2;return typeof _0x46eb61===_0x2dd8d9(0x101)&&_0x46eb61!==null&&!Array['isArray'](_0x46eb61);}function readSourceFile(_0x32b58c){const _0x178493=a11_0x4d89e2;if(!_0x32b58c)throw CliErrors[_0x178493(0x134)](_0x178493(0x11b));if(!existsSync(_0x32b58c))throw CliErrors['validation']('File\x20not\x20found:\x20'+_0x32b58c);if(!statSync(_0x32b58c)['isFile']())throw CliErrors[_0x178493(0x134)](_0x178493(0x123)+_0x32b58c);const _0x4f447a=readFileSync(_0x32b58c,_0x178493(0x11e));return validateReactModuleSource(_0x4f447a),_0x4f447a;}function parseMetadata(_0x326466){const _0x1ca613=a11_0x4d89e2;if(!_0x326466)return undefined;let _0x12e1f2;try{_0x12e1f2=JSON[_0x1ca613(0x130)](_0x326466);}catch{throw CliErrors['validation']('Invalid\x20JSON\x20for\x20--metadata:\x20'+_0x326466);}if(!isPlainObject(_0x12e1f2))throw CliErrors[_0x1ca613(0x134)](_0x1ca613(0x13e));const _0x43d53f={..._0x12e1f2};return delete _0x43d53f[_0x1ca613(0x145)],_0x43d53f;}function getPackageName(_0x175da9){const _0x5571ea=a11_0x4d89e2;if(_0x175da9[_0x5571ea(0x103)]('@')){const [_0x39a83b,_0x3139c2]=_0x175da9[_0x5571ea(0x110)]('/');return _0x39a83b&&_0x3139c2?_0x39a83b+'/'+_0x3139c2:_0x175da9;}return _0x175da9['split']('/')[0x0]||_0x175da9;}function validateAllowedImports(_0xbc26d8){const _0x3a1b95=a11_0x4d89e2,_0xcad38f=new Set();for(const _0x5c6061 of IMPORT_SOURCE_PATTERNS){_0x5c6061[_0x3a1b95(0x105)]=0x0;let _0x362125;while((_0x362125=_0x5c6061[_0x3a1b95(0x132)](_0xbc26d8))!==null){const _0xe1f2f=_0x362125[0x1]?.['trim']();_0xe1f2f&&_0xcad38f[_0x3a1b95(0x121)](_0xe1f2f);}}const _0xbc7c9=[..._0xcad38f][_0x3a1b95(0x115)](getPackageName)[_0x3a1b95(0x10d)](_0x370dc9=>!ALLOWED_REACT_MODULE_IMPORTS[_0x3a1b95(0x141)](_0x370dc9));if(_0xbc7c9[_0x3a1b95(0x120)]>0x0)throw CliErrors[_0x3a1b95(0x134)]('react_module\x20imports\x20are\x20limited\x20to:\x20'+ALLOWED_REACT_MODULE_IMPORTS_TEXT+_0x3a1b95(0x142)+[...new Set(_0xbc7c9)][_0x3a1b95(0x109)](',\x20'));}function a11_0x2ec7(){const _0xb67e55=['updateTime','Preview:\x20create\x20react_module\x20Artifact','Create\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','/client/artifact/create','7159743LJdVjv','Path\x20to\x20a\x20local\x20UTF-8\x20React\x20module\x20source\x20file','248968zWQMhP','verbose','detail','bool','3501714LSHzYF','parse','lodash','exec','create','validation','Artifact\x20display\x20name','Artifact\x20ID','favorite','list','metadata','build','update','createTime','28leetHE','--metadata\x20must\x20be\x20a\x20JSON\x20object.','7936070OUmoaI','/client/artifact/','includes','.\x20Unsupported:\x20','23612jpSQld','appCode','compiledContent','boolean','description','num','Optional\x20favorite-state\x20filter','react','dayjs','flag','2038077OMsNxt','trim','artifact','object','4mILxvA','startsWith','deleted','lastIndex','react-dom','body','POST','join','271249rHgbnF','react_module\x20must\x20be\x20an\x20embeddable\x20React\x20module,\x20not\x20full\x20HTML\x20or\x20a\x20ReactDOM/createRoot\x20mount\x20entry.','name','filter','some','str','split','5tPoYbx','Created\x20Artifact\x20','antd','/update','map','file','Updated\x20Artifact\x20','1pqdQuW','read','artifactType','File\x20path\x20is\x20required.','252iSlWtV','string','utf8','write','length','add','List\x20current-app\x20react_module\x20Artifacts','File\x20is\x20not\x20a\x20regular\x20file:\x20','source'];a11_0x2ec7=function(){return _0xb67e55;};return a11_0x2ec7();}export function validateReactModuleSource(_0x11196a){const _0x45ef4b=a11_0x4d89e2;if(!_0x11196a[_0x45ef4b(0xff)]())throw CliErrors[_0x45ef4b(0x134)]('Artifact\x20source\x20file\x20is\x20blank.');if(PAGE_LEVEL_PATTERNS[_0x45ef4b(0x10e)](_0x2baa11=>_0x2baa11['test'](_0x11196a)))throw CliErrors[_0x45ef4b(0x134)](_0x45ef4b(0x10b));validateAllowedImports(_0x11196a);}function buildArtifactInput(_0x5c0c01){const _0x4d7ede=a11_0x4d89e2,_0x41c817=readSourceFile(_0x5c0c01[_0x4d7ede(0x10f)](_0x4d7ede(0x116))),_0x2e6543=_0x5c0c01[_0x4d7ede(0x10f)](_0x4d7ede(0x10c))['trim'](),_0x4b58d9=parseMetadata(_0x5c0c01[_0x4d7ede(0x10f)](_0x4d7ede(0x139)));return{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x2e6543?{'name':_0x2e6543}:{},'content':_0x41c817,..._0x4b58d9?{'metadata':_0x4b58d9}:{},'source':ARTIFACT_SOURCE_AGENT};}function summarizeArtifact(_0x4ed586){const _0x3c4267=a11_0x4d89e2;return{'id':_0x4ed586['id'],'name':_0x4ed586[_0x3c4267(0x10c)],'artifactType':_0x4ed586[_0x3c4267(0x11a)],'source':_0x4ed586[_0x3c4267(0x124)],'favorite':_0x4ed586[_0x3c4267(0x137)],'deleted':_0x4ed586[_0x3c4267(0x104)],'createTime':_0x4ed586[_0x3c4267(0x13c)],'updateTime':_0x4ed586[_0x3c4267(0x125)]};}function detailArtifact(_0x2ba8b2){const _0x2717ab=a11_0x4d89e2;return{'id':_0x2ba8b2['id'],'appCode':_0x2ba8b2[_0x2717ab(0x144)],'name':_0x2ba8b2[_0x2717ab(0x10c)],'artifactType':_0x2ba8b2['artifactType'],'source':_0x2ba8b2[_0x2717ab(0x124)],'favorite':_0x2ba8b2['favorite'],'deleted':_0x2ba8b2[_0x2717ab(0x104)],'content':_0x2ba8b2['content']??'','compiledContent':_0x2ba8b2[_0x2717ab(0x145)],'metadata':_0x2ba8b2[_0x2717ab(0x139)]??{},'createTime':_0x2ba8b2[_0x2717ab(0x13c)],'updateTime':_0x2ba8b2[_0x2717ab(0x125)]};}function readFavoriteFlag(_0x2ebc35){const _0x33a3ba=a11_0x4d89e2,_0x407df8=_0x2ebc35[_0x33a3ba(0xfd)]('favorite');return _0x407df8===undefined||_0x407df8===null||_0x407df8===''?undefined:_0x2ebc35[_0x33a3ba(0x12e)]('favorite');}const artifactList={'service':'artifact','command':a11_0x4d89e2(0x138),'description':a11_0x4d89e2(0x122),'risk':a11_0x4d89e2(0x119),'flags':[{'name':'source','type':a11_0x4d89e2(0x11d),'description':'Optional\x20source\x20filter,\x20for\x20example\x20AGENT'},{'name':a11_0x4d89e2(0x137),'type':a11_0x4d89e2(0x146),'description':a11_0x4d89e2(0x149)},VERBOSE_FLAG],async 'execute'(_0x2caad5){const _0x1ef3d5=a11_0x4d89e2,_0x115876=await listRuntimeArtifacts(_0x2caad5[_0x1ef3d5(0x144)],{'artifactType':ARTIFACT_TYPE_REACT_MODULE,..._0x2caad5[_0x1ef3d5(0x10f)](_0x1ef3d5(0x124))?{'source':_0x2caad5[_0x1ef3d5(0x10f)](_0x1ef3d5(0x124))}:{},...readFavoriteFlag(_0x2caad5)!==undefined?{'favorite':readFavoriteFlag(_0x2caad5)}:{}});return{'ok':!![],'data':{'total':_0x115876[_0x1ef3d5(0x120)],'items':_0x2caad5['bool'](_0x1ef3d5(0x12c))?_0x115876:_0x115876[_0x1ef3d5(0x115)](summarizeArtifact)}};}},artifactDetail={'service':a11_0x4d89e2(0x100),'command':a11_0x4d89e2(0x12d),'description':'Show\x20one\x20Artifact\x20by\x20id','risk':'read','flags':[{...ID_FLAG,'description':a11_0x4d89e2(0x136)}],async 'execute'(_0x25a499){const _0x2a3419=a11_0x4d89e2,_0x3dece3=await getRuntimeArtifact(_0x25a499[_0x2a3419(0x148)]('id'),_0x25a499[_0x2a3419(0x144)]);return{'ok':!![],'data':detailArtifact(_0x3dece3)};}},artifactCreate={'service':a11_0x4d89e2(0x100),'command':a11_0x4d89e2(0x133),'description':a11_0x4d89e2(0x127),'risk':'write','flags':[FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x3a95a4){const _0x5f2553=a11_0x4d89e2,_0x280c83=buildArtifactInput(_0x3a95a4),_0x2cf410=await createRuntimeArtifact(_0x3a95a4[_0x5f2553(0x144)],_0x280c83);return{'ok':!![],'data':detailArtifact(_0x2cf410),'message':_0x5f2553(0x112)+_0x2cf410['id']+(_0x2cf410[_0x5f2553(0x10c)]?'\x20('+_0x2cf410['name']+')':'')};},async 'dryRun'(_0x5970b3){const _0x4700d4=a11_0x4d89e2,_0x1ba1b0=buildArtifactInput(_0x5970b3);return dryRun(_0x4700d4(0x108),_0x4700d4(0x128))['body']({'appCode':_0x5970b3['appCode'],..._0x1ba1b0})[_0x4700d4(0x147)](_0x4700d4(0x126))['build']();}},artifactUpdate={'service':a11_0x4d89e2(0x100),'command':a11_0x4d89e2(0x13b),'description':'Update\x20a\x20react_module\x20Artifact\x20from\x20a\x20local\x20source\x20file','risk':a11_0x4d89e2(0x11f),'flags':[{...ID_FLAG,'description':a11_0x4d89e2(0x136)},FILE_FLAG,ARTIFACT_NAME_FLAG,METADATA_FLAG],async 'execute'(_0x39a5de){const _0x2ff907=a11_0x4d89e2,_0x6c51e8=_0x39a5de[_0x2ff907(0x148)]('id'),_0x3c8b9c=buildArtifactInput(_0x39a5de),_0x4ffdff=await updateRuntimeArtifact(_0x6c51e8,_0x39a5de[_0x2ff907(0x144)],_0x3c8b9c);return{'ok':!![],'data':detailArtifact(_0x4ffdff),'message':_0x2ff907(0x117)+_0x4ffdff['id']+(_0x4ffdff[_0x2ff907(0x10c)]?'\x20('+_0x4ffdff[_0x2ff907(0x10c)]+')':'')};},async 'dryRun'(_0x4a3038){const _0x4bafe2=a11_0x4d89e2,_0x2e67c5=_0x4a3038[_0x4bafe2(0x148)]('id'),_0x26f0c0=buildArtifactInput(_0x4a3038);return dryRun(_0x4bafe2(0x108),_0x4bafe2(0x140)+_0x2e67c5+_0x4bafe2(0x114))[_0x4bafe2(0x107)]({'appCode':_0x4a3038[_0x4bafe2(0x144)],..._0x26f0c0})[_0x4bafe2(0x147)]('Preview:\x20update\x20react_module\x20Artifact\x20'+_0x2e67c5)[_0x4bafe2(0x13a)]();}};export const artifactDefinitions=[artifactList,artifactDetail,artifactCreate,artifactUpdate];
@@ -1 +1 @@
1
- function a12_0x583b(){const _0x5d1840=['logout','1536772ZJvGEv','global','\x20doctor','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','=ak_xxx','bool','login','write','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','check','test','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','Invalid\x20accessKey\x20format:\x20\x22','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','isTTY','Option\x20B:\x20apps\x20config\x20(','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','validation','ACCESS_KEY','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','Option\x20A:\x20','trim','repeat','Missing\x20accessKey.','project','Option\x20C:\x20environment\x20variable','access-key','\x20config.','ClientAk','AccessKey\x20(ak_xxx...)','\x20env\x20var','Clear\x20accessKey\x20from\x20config','1374MtxJOt','3039267ATtRGS','newConfigFileName','\x20scope.','stdout','Show\x20current\x20authentication\x20status','No\x20AccessKey\x20found\x20in\x20','length','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','\x20Verify:\x20','str','accessKey','Read\x20from\x20global\x20config\x20(default)','env','Tip:\x20you\x20can\x20also\x20run:','global-default','boolean','read','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','status','slice','`auth\x20login`\x20does\x20not\x20support\x20--yes.','26145uYGBXW','Shorthand\x20for\x20--access-key','27729900HBLwpp','development','production','148QNkiCm','auth','init','string','Use\x20`','yes','envName','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','7193800lcajUe','cancelled','Auth\x20config\x20reinitialized\x20in\x20','join','\x20Current\x20env:\x20','Write\x20to\x20global\x20config\x20(default)','\x20config','17497jEpHkH','Auth\x20mode:\x20','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','push','1737360SNENwY','userCenterDisplayName','stdin','AccessKey:\x20'];a12_0x583b=function(){return _0x5d1840;};return a12_0x583b();}const a12_0x40fc9f=a12_0x208e;(function(_0x3d7725,_0x3875bb){const _0x47afc3=a12_0x208e,_0x1468c9=_0x3d7725();while(!![]){try{const _0x49193f=parseInt(_0x47afc3(0x16a))/0x1*(-parseInt(_0x47afc3(0x15b))/0x2)+-parseInt(_0x47afc3(0x141))/0x3+-parseInt(_0x47afc3(0x173))/0x4+parseInt(_0x47afc3(0x16e))/0x5+-parseInt(_0x47afc3(0x140))/0x6*(-parseInt(_0x47afc3(0x156))/0x7)+-parseInt(_0x47afc3(0x163))/0x8+parseInt(_0x47afc3(0x158))/0x9;if(_0x49193f===_0x3875bb)break;else _0x1468c9['push'](_0x1468c9['shift']());}catch(_0x585a75){_0x1468c9['push'](_0x1468c9['shift']());}}}(a12_0x583b,0xa917a));function a12_0x208e(_0x691a15,_0x108196){_0x691a15=_0x691a15-0x13e;const _0x583b30=a12_0x583b();let _0x208e7b=_0x583b30[_0x691a15];return _0x208e7b;}import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';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 _0x41d6c4=a12_0x208e;writeCliSideChannelLine('AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0x41d6c4(0x16f)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x41d6c4(0x14e)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>');}function buildAccessKeySetupGuide(){const _0x54c924=a12_0x208e;return['AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0x54c924(0x16f)]+':',USER_ACCESS_KEY_CREATE_URL,_0x54c924(0x176)+CLI_BIN_NAME+_0x54c924(0x184)][_0x54c924(0x166)]('\x0a');}function canPromptForAccessKey(_0x52475d){const _0x2eafaa=a12_0x208e;return!_0x52475d['nonInteractive']&&process[_0x2eafaa(0x170)][_0x2eafaa(0x182)]!==![]&&process[_0x2eafaa(0x144)]['isTTY']!==![];}function resolveAuthScopeFlags(_0x328728){const _0x20b6b2=a12_0x208e;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x328728['bool']('global'),'explicitProject':_0x328728[_0x20b6b2(0x178)](_0x20b6b2(0x18e)),'policy':_0x20b6b2(0x14f)}));}async function resolveAuthWriteInput(_0x5e037c){const _0x40d967=a12_0x208e;let _0x49cfcb=(_0x5e037c[_0x40d967(0x14a)]('access-key')||_0x5e037c['str']('ak')||'')[_0x40d967(0x18b)]();const _0x5e2bfd=(_0x5e037c[_0x40d967(0x14a)](_0x40d967(0x14d))||'')['trim']();if(!_0x49cfcb&&canPromptForAccessKey(_0x5e037c))try{showAccessKeyCreateHint(),_0x49cfcb=await promptAccessKey('');}catch(_0x4e9aeb){if(isAbortPrompt(_0x4e9aeb))throw CliErrors[_0x40d967(0x164)]();throw _0x4e9aeb;}if(!_0x49cfcb)throw CliErrors[_0x40d967(0x187)](_0x40d967(0x18d),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x40d967(0x17e)](_0x49cfcb))throw CliErrors[_0x40d967(0x187)](_0x40d967(0x180)+_0x49cfcb+'\x22',_0x40d967(0x181));if(!_0x5e2bfd)return{'accessKey':_0x49cfcb};const _0x1aa35c=normalizeEnv(_0x5e2bfd);return{'accessKey':_0x49cfcb,'env':isDaily(_0x1aa35c)?'daily':isDev(_0x1aa35c)?_0x40d967(0x159):'production'};}export const authDefinitions=[{'service':a12_0x40fc9f(0x15c),'command':a12_0x40fc9f(0x179),'description':a12_0x40fc9f(0x17f),'risk':a12_0x40fc9f(0x17a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'access-key','type':a12_0x40fc9f(0x15e),'description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':a12_0x40fc9f(0x15e),'description':a12_0x40fc9f(0x157)},{'name':'global','type':'boolean','description':a12_0x40fc9f(0x168),'default':!![]},{'name':'project','type':a12_0x40fc9f(0x150),'description':'Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x195a4e){const _0x38711d=a12_0x40fc9f;if(_0x195a4e[_0x38711d(0x178)](_0x38711d(0x160)))throw CliErrors[_0x38711d(0x187)](_0x38711d(0x155),_0x38711d(0x15f)+CLI_BIN_NAME+'\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`'+CLI_BIN_NAME+_0x38711d(0x16c));const _0x19b627=(_0x195a4e[_0x38711d(0x14a)]('access-key')||_0x195a4e[_0x38711d(0x14a)]('ak')||'')[_0x38711d(0x18b)]();if(!_0x19b627&&_0x195a4e['nonInteractive'])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0xdae080=await resolveAuthWriteInput(_0x195a4e),_0x3b3b5a=resolveAuthScopeFlags(_0x195a4e),_0x39c903=readScopedConfig(_0x3b3b5a);_0x39c903[_0x38711d(0x14b)]=_0xdae080['accessKey'];_0xdae080[_0x38711d(0x14d)]&&(_0x39c903[_0x38711d(0x14d)]=_0xdae080[_0x38711d(0x14d)]);writeScopedConfig(_0x39c903,_0x3b3b5a);const _0x4ac512=_0x3b3b5a[_0x38711d(0x174)]?_0x38711d(0x174):_0x38711d(0x18e),_0x38e523=_0x39c903[_0x38711d(0x14d)]?_0x38711d(0x167)+_0x39c903[_0x38711d(0x14d)]+'.':'';return{'ok':!![],'message':'AccessKey\x20saved\x20to\x20'+_0x4ac512+_0x38711d(0x191)+_0x38e523+_0x38711d(0x149)+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':a12_0x40fc9f(0x15c),'command':a12_0x40fc9f(0x15d),'description':a12_0x40fc9f(0x152),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x40fc9f(0x190),'type':a12_0x40fc9f(0x15e),'description':a12_0x40fc9f(0x193)},{'name':'ak','type':'string','description':a12_0x40fc9f(0x157)},{'name':a12_0x40fc9f(0x14d),'type':'string','description':'Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config'},{'name':a12_0x40fc9f(0x174),'type':'boolean','description':a12_0x40fc9f(0x168),'default':!![]},{'name':a12_0x40fc9f(0x18e),'type':a12_0x40fc9f(0x150),'description':a12_0x40fc9f(0x17c),'default':![]}],async 'execute'(_0x331307){const _0x84ca6d=a12_0x40fc9f,_0x33afec=await resolveAuthWriteInput(_0x331307),_0x5b7ff2=resolveAuthScopeFlags(_0x331307),_0x217969={'accessKey':_0x33afec[_0x84ca6d(0x14b)]};_0x33afec[_0x84ca6d(0x14d)]&&(_0x217969[_0x84ca6d(0x14d)]=_0x33afec[_0x84ca6d(0x14d)]);writeScopedConfig(_0x217969,_0x5b7ff2);const _0x423c50=_0x5b7ff2[_0x84ca6d(0x174)]?'global':_0x84ca6d(0x18e),_0x37990c=_0x217969[_0x84ca6d(0x14d)]?_0x84ca6d(0x167)+_0x217969[_0x84ca6d(0x14d)]+'.':'';return{'ok':!![],'message':_0x84ca6d(0x165)+_0x423c50+_0x84ca6d(0x143)+_0x37990c+_0x84ca6d(0x149)+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':a12_0x40fc9f(0x15c),'command':a12_0x40fc9f(0x172),'description':a12_0x40fc9f(0x13f),'risk':a12_0x40fc9f(0x17a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x40fc9f(0x174),'type':'boolean','description':'Clear\x20from\x20global\x20config\x20(default)','default':!![]},{'name':a12_0x40fc9f(0x18e),'type':a12_0x40fc9f(0x150),'description':a12_0x40fc9f(0x186),'default':![]}],async 'execute'(_0x263d8b){const _0x48c252=a12_0x40fc9f,_0x49a300=resolveAuthScopeFlags(_0x263d8b),_0x53d5e4=readScopedConfig(_0x49a300),_0x46a1b5=!!_0x53d5e4['accessKey'];delete _0x53d5e4['accessKey'],writeScopedConfig(_0x53d5e4,_0x49a300);const _0x2173ef=_0x49a300['global']?_0x48c252(0x174):_0x48c252(0x18e);if(_0x46a1b5)return{'ok':!![],'message':'AccessKey\x20cleared\x20from\x20'+_0x2173ef+_0x48c252(0x191)};return{'ok':!![],'message':_0x48c252(0x146)+_0x2173ef+'\x20config.\x20Nothing\x20to\x20clear.'};}},{'service':a12_0x40fc9f(0x15c),'command':a12_0x40fc9f(0x153),'description':a12_0x40fc9f(0x145),'risk':a12_0x40fc9f(0x151),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x40fc9f(0x174),'type':'boolean','description':a12_0x40fc9f(0x14c),'default':!![]},{'name':a12_0x40fc9f(0x18e),'type':'boolean','description':a12_0x40fc9f(0x162),'default':![]},{'name':a12_0x40fc9f(0x17d),'type':'boolean','description':'Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','default':![]}],async 'execute'(_0x338332){const _0x1bcc7=a12_0x40fc9f,_0x13a482=resolveAuthScopeFlags(_0x338332),_0x187100=readScopedConfig(_0x13a482),_0x39b8c1=productEnvName(_0x1bcc7(0x188)),_0x274fc7=productEnv(_0x1bcc7(0x188))||undefined,_0x390cac=_0x187100[_0x1bcc7(0x14b)]||undefined,_0x54aad8=_0x274fc7||_0x390cac,_0x931dd2=_0x274fc7?_0x39b8c1+_0x1bcc7(0x13e):_0x390cac?(_0x13a482[_0x1bcc7(0x174)]?'global':_0x1bcc7(0x18e))+_0x1bcc7(0x169):null,_0x3c2f38=[_0x1bcc7(0x16b)+AUTH_MODE[_0x1bcc7(0x192)]];if(_0x54aad8){const _0x283fb8=_0x54aad8[_0x1bcc7(0x147)]>0x8?''+_0x54aad8[_0x1bcc7(0x154)](0x0,0x8)+'*'[_0x1bcc7(0x18c)](_0x54aad8[_0x1bcc7(0x147)]-0x8):_0x54aad8;_0x3c2f38[_0x1bcc7(0x16d)](_0x1bcc7(0x171)+_0x283fb8+(_0x931dd2?'\x20(via\x20'+_0x931dd2+')':''));}if(!_0x54aad8){_0x3c2f38[_0x1bcc7(0x16d)](''),_0x3c2f38['push'](_0x1bcc7(0x148)),_0x3c2f38['push'](''),_0x3c2f38[_0x1bcc7(0x16d)](_0x1bcc7(0x18a)+CLI_BIN_NAME+_0x1bcc7(0x17b)),_0x3c2f38[_0x1bcc7(0x16d)](''),_0x3c2f38[_0x1bcc7(0x16d)](_0x1bcc7(0x183)+PRODUCT_CONFIG[_0x1bcc7(0x142)]+')'),_0x3c2f38['push']('{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}'),_0x3c2f38['push'](''),_0x3c2f38[_0x1bcc7(0x16d)](_0x1bcc7(0x18f)),_0x3c2f38[_0x1bcc7(0x16d)]('\x20\x20export\x20'+_0x39b8c1+_0x1bcc7(0x177)),_0x3c2f38['push'](''),_0x3c2f38[_0x1bcc7(0x16d)]('Then\x20verify\x20with:\x20'+CLI_BIN_NAME+'\x20auth\x20status'),_0x3c2f38['push'](_0x1bcc7(0x185)+CLI_BIN_NAME+_0x1bcc7(0x175));if(_0x338332['bool'](_0x1bcc7(0x17d)))throw CliErrors['authRequired'](_0x3c2f38[_0x1bcc7(0x166)]('\x0a'));}return{'ok':!![],'message':_0x3c2f38[_0x1bcc7(0x166)]('\x0a')};}},{'service':'auth','command':'info','description':a12_0x40fc9f(0x189),'risk':a12_0x40fc9f(0x151),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x5812d8){const _0x5014f=a12_0x40fc9f,_0x401e18=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x401e18,'meta':{'env':_0x5812d8[_0x5014f(0x161)]??_0x5014f(0x15a)}}};}}];
1
+ const a12_0x1b3c07=a12_0x3300;(function(_0x55d2db,_0x153af0){const _0x47e750=a12_0x3300,_0x153782=_0x55d2db();while(!![]){try{const _0x30f12e=-parseInt(_0x47e750(0x194))/0x1*(parseInt(_0x47e750(0x1a0))/0x2)+parseInt(_0x47e750(0x182))/0x3+-parseInt(_0x47e750(0x19f))/0x4+-parseInt(_0x47e750(0x179))/0x5+parseInt(_0x47e750(0x19c))/0x6*(parseInt(_0x47e750(0x162))/0x7)+parseInt(_0x47e750(0x159))/0x8+parseInt(_0x47e750(0x172))/0x9;if(_0x30f12e===_0x153af0)break;else _0x153782['push'](_0x153782['shift']());}catch(_0xa62673){_0x153782['push'](_0x153782['shift']());}}}(a12_0x48d8,0x34f25));import{readScopedConfig,writeScopedConfig}from'../../context.js';function a12_0x48d8(){const _0x33416b=['authRequired','Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','\x20config.\x20Nothing\x20to\x20clear.','str','177624NKmoaC','production','boolean','=ak_xxx','Clear\x20from\x20global\x20config\x20(default)','\x20scope.','AccessKey\x20saved\x20to\x20','\x20config.','Clear\x20accessKey\x20from\x20config','154qohOrA','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','login','logout','ACCESS_KEY','status','newConfigFileName','test','trim','bool','Shorthand\x20for\x20--access-key','isTTY','\x20auth\x20status','check','Read\x20from\x20global\x20config\x20(default)','slice','5851242jhrkSJ','global','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','project','length','929310gAZoKk','Option\x20A:\x20','Auth\x20mode:\x20','env','daily','\x20config','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','push','Save\x20accessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20project\x20config)','256293VjFLsO','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','Tip:\x20you\x20can\x20also\x20run:','`auth\x20login`\x20does\x20not\x20support\x20--yes.','No\x20AccessKey\x20found\x20in\x20','\x20doctor','accessKey','Missing\x20accessKey.','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','info','userCenterDisplayName','\x20Verify:\x20','Then\x20verify\x20with:\x20','envName','write','development','validation','Option\x20C:\x20environment\x20variable','80568iBmcDk','cancelled','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','\x20(via\x20','AccessKey\x20cleared\x20from\x20','stdout','access-key','Show\x20current\x20authentication\x20status','75828UnXiRR','join','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','920948zCZMaR','10xPkGyL','stdin','Clear\x20all\x20config\x20in\x20scope\x20and\x20initialize\x20auth\x20from\x20scratch','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','Option\x20B:\x20apps\x20config\x20(','auth','string','read','\x20auth\x20login\x20--access-key\x20<ak_xxx>','nonInteractive','\x20Current\x20env:\x20','Write\x20to\x20global\x20config\x20(default)','AccessKey\x20(ak_xxx...)'];a12_0x48d8=function(){return _0x33416b;};return a12_0x48d8();}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';function a12_0x3300(_0x21f49d,_0x3277e9){_0x21f49d=_0x21f49d-0x149;const _0x48d88b=a12_0x48d8();let _0x3300e2=_0x48d88b[_0x21f49d];return _0x3300e2;}import{CliErrors}from'../../errors.js';import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{getLoginUserInfo}from'../../core/api-client.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function showAccessKeyCreateHint(){const _0x23beab=a12_0x3300;writeCliSideChannelLine(_0x23beab(0x163)+PRODUCT_CONFIG[_0x23beab(0x18c)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x23beab(0x184)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x23beab(0x150));}function buildAccessKeySetupGuide(){const _0x1d19f6=a12_0x3300;return[_0x1d19f6(0x163)+PRODUCT_CONFIG[_0x1d19f6(0x18c)]+':',USER_ACCESS_KEY_CREATE_URL,_0x1d19f6(0x196)+CLI_BIN_NAME+_0x1d19f6(0x183)]['join']('\x0a');}function canPromptForAccessKey(_0x5417dc){const _0x377168=a12_0x3300;return!_0x5417dc['nonInteractive']&&process[_0x377168(0x149)][_0x377168(0x16d)]!==![]&&process[_0x377168(0x199)]['isTTY']!==![];}function resolveAuthScopeFlags(_0x3d4dd8){const _0x543cca=a12_0x3300;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x3d4dd8['bool'](_0x543cca(0x173)),'explicitProject':_0x3d4dd8['bool'](_0x543cca(0x177)),'policy':'global-default'}));}async function resolveAuthWriteInput(_0x22879a){const _0x2911d9=a12_0x3300;let _0x2f0fc1=(_0x22879a[_0x2911d9(0x158)]('access-key')||_0x22879a[_0x2911d9(0x158)]('ak')||'')['trim']();const _0x1bc2ab=(_0x22879a[_0x2911d9(0x158)](_0x2911d9(0x17c))||'')[_0x2911d9(0x16a)]();if(!_0x2f0fc1&&canPromptForAccessKey(_0x22879a))try{showAccessKeyCreateHint(),_0x2f0fc1=await promptAccessKey('');}catch(_0x4b8144){if(isAbortPrompt(_0x4b8144))throw CliErrors[_0x2911d9(0x195)]();throw _0x4b8144;}if(!_0x2f0fc1)throw CliErrors[_0x2911d9(0x192)](_0x2911d9(0x189),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x2911d9(0x169)](_0x2f0fc1))throw CliErrors[_0x2911d9(0x192)]('Invalid\x20accessKey\x20format:\x20\x22'+_0x2f0fc1+'\x22',_0x2911d9(0x176));if(!_0x1bc2ab)return{'accessKey':_0x2f0fc1};const _0x5e1395=normalizeEnv(_0x1bc2ab);return{'accessKey':_0x2f0fc1,'env':isDaily(_0x5e1395)?_0x2911d9(0x17d):isDev(_0x5e1395)?_0x2911d9(0x191):_0x2911d9(0x15a)};}export const authDefinitions=[{'service':a12_0x1b3c07(0x14d),'command':a12_0x1b3c07(0x164),'description':a12_0x1b3c07(0x181),'risk':a12_0x1b3c07(0x190),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x1b3c07(0x19a),'type':'string','description':a12_0x1b3c07(0x154)},{'name':'ak','type':a12_0x1b3c07(0x14e),'description':a12_0x1b3c07(0x16c)},{'name':'global','type':a12_0x1b3c07(0x15b),'description':a12_0x1b3c07(0x153),'default':!![]},{'name':a12_0x1b3c07(0x177),'type':a12_0x1b3c07(0x15b),'description':a12_0x1b3c07(0x19e),'default':![]}],async 'execute'(_0x41079c){const _0x448e6a=a12_0x1b3c07;if(_0x41079c[_0x448e6a(0x16b)]('yes'))throw CliErrors[_0x448e6a(0x192)](_0x448e6a(0x185),'Use\x20`'+CLI_BIN_NAME+'\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`'+CLI_BIN_NAME+_0x448e6a(0x175));const _0x9166c2=(_0x41079c[_0x448e6a(0x158)](_0x448e6a(0x19a))||_0x41079c[_0x448e6a(0x158)]('ak')||'')[_0x448e6a(0x16a)]();if(!_0x9166c2&&_0x41079c[_0x448e6a(0x151)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x456bda=await resolveAuthWriteInput(_0x41079c),_0x47ae39=resolveAuthScopeFlags(_0x41079c),_0xad4ae4=readScopedConfig(_0x47ae39);_0xad4ae4[_0x448e6a(0x188)]=_0x456bda[_0x448e6a(0x188)];_0x456bda['env']&&(_0xad4ae4[_0x448e6a(0x17c)]=_0x456bda[_0x448e6a(0x17c)]);writeScopedConfig(_0xad4ae4,_0x47ae39);const _0x1c3781=_0x47ae39[_0x448e6a(0x173)]?'global':_0x448e6a(0x177),_0x321b75=_0xad4ae4['env']?_0x448e6a(0x152)+_0xad4ae4[_0x448e6a(0x17c)]+'.':'';return{'ok':!![],'message':_0x448e6a(0x15f)+_0x1c3781+_0x448e6a(0x160)+_0x321b75+_0x448e6a(0x18d)+CLI_BIN_NAME+_0x448e6a(0x16e)};}},{'service':a12_0x1b3c07(0x14d),'command':'init','description':a12_0x1b3c07(0x14a),'risk':a12_0x1b3c07(0x190),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x1b3c07(0x19a),'type':a12_0x1b3c07(0x14e),'description':a12_0x1b3c07(0x154)},{'name':'ak','type':a12_0x1b3c07(0x14e),'description':a12_0x1b3c07(0x16c)},{'name':a12_0x1b3c07(0x17c),'type':'string','description':a12_0x1b3c07(0x174)},{'name':a12_0x1b3c07(0x173),'type':a12_0x1b3c07(0x15b),'description':a12_0x1b3c07(0x153),'default':!![]},{'name':a12_0x1b3c07(0x177),'type':'boolean','description':'Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x41f00a){const _0x1e34de=a12_0x1b3c07,_0x6eff8e=await resolveAuthWriteInput(_0x41f00a),_0x29ccfd=resolveAuthScopeFlags(_0x41f00a),_0x2817e2={'accessKey':_0x6eff8e[_0x1e34de(0x188)]};_0x6eff8e['env']&&(_0x2817e2[_0x1e34de(0x17c)]=_0x6eff8e[_0x1e34de(0x17c)]);writeScopedConfig(_0x2817e2,_0x29ccfd);const _0x272d37=_0x29ccfd[_0x1e34de(0x173)]?_0x1e34de(0x173):_0x1e34de(0x177),_0x54da97=_0x2817e2[_0x1e34de(0x17c)]?_0x1e34de(0x152)+_0x2817e2[_0x1e34de(0x17c)]+'.':'';return{'ok':!![],'message':'Auth\x20config\x20reinitialized\x20in\x20'+_0x272d37+_0x1e34de(0x15e)+_0x54da97+'\x20Verify:\x20'+CLI_BIN_NAME+_0x1e34de(0x16e)};}},{'service':a12_0x1b3c07(0x14d),'command':a12_0x1b3c07(0x165),'description':a12_0x1b3c07(0x161),'risk':a12_0x1b3c07(0x190),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x1b3c07(0x173),'type':a12_0x1b3c07(0x15b),'description':a12_0x1b3c07(0x15d),'default':!![]},{'name':a12_0x1b3c07(0x177),'type':a12_0x1b3c07(0x15b),'description':'Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x4409f7){const _0x51d588=a12_0x1b3c07,_0x19ca25=resolveAuthScopeFlags(_0x4409f7),_0x13cbb9=readScopedConfig(_0x19ca25),_0x2508d5=!!_0x13cbb9[_0x51d588(0x188)];delete _0x13cbb9[_0x51d588(0x188)],writeScopedConfig(_0x13cbb9,_0x19ca25);const _0x5b599b=_0x19ca25[_0x51d588(0x173)]?'global':'project';if(_0x2508d5)return{'ok':!![],'message':_0x51d588(0x198)+_0x5b599b+_0x51d588(0x160)};return{'ok':!![],'message':_0x51d588(0x186)+_0x5b599b+_0x51d588(0x157)};}},{'service':a12_0x1b3c07(0x14d),'command':a12_0x1b3c07(0x167),'description':a12_0x1b3c07(0x19b),'risk':a12_0x1b3c07(0x14f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x1b3c07(0x173),'type':a12_0x1b3c07(0x15b),'description':a12_0x1b3c07(0x170),'default':!![]},{'name':'project','type':'boolean','description':a12_0x1b3c07(0x14b),'default':![]},{'name':a12_0x1b3c07(0x16f),'type':a12_0x1b3c07(0x15b),'description':a12_0x1b3c07(0x156),'default':![]}],async 'execute'(_0x1b95dd){const _0x2e64e1=a12_0x1b3c07,_0x23b2b6=resolveAuthScopeFlags(_0x1b95dd),_0x4762b7=readScopedConfig(_0x23b2b6),_0x523768=productEnvName('ACCESS_KEY'),_0xd30349=productEnv(_0x2e64e1(0x166))||undefined,_0x11dee4=_0x4762b7[_0x2e64e1(0x188)]||undefined,_0x45090c=_0xd30349||_0x11dee4,_0x2ae6da=_0xd30349?_0x523768+'\x20env\x20var':_0x11dee4?(_0x23b2b6[_0x2e64e1(0x173)]?'global':_0x2e64e1(0x177))+_0x2e64e1(0x17e):null,_0x503524=[_0x2e64e1(0x17b)+AUTH_MODE['ClientAk']];if(_0x45090c){const _0x10b1d5=_0x45090c[_0x2e64e1(0x178)]>0x8?''+_0x45090c[_0x2e64e1(0x171)](0x0,0x8)+'*'['repeat'](_0x45090c[_0x2e64e1(0x178)]-0x8):_0x45090c;_0x503524['push']('AccessKey:\x20'+_0x10b1d5+(_0x2ae6da?_0x2e64e1(0x197)+_0x2ae6da+')':''));}if(!_0x45090c){_0x503524[_0x2e64e1(0x180)](''),_0x503524['push']('No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:'),_0x503524[_0x2e64e1(0x180)](''),_0x503524['push'](_0x2e64e1(0x17a)+CLI_BIN_NAME+'\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]'),_0x503524[_0x2e64e1(0x180)](''),_0x503524[_0x2e64e1(0x180)](_0x2e64e1(0x14c)+PRODUCT_CONFIG[_0x2e64e1(0x168)]+')'),_0x503524[_0x2e64e1(0x180)](_0x2e64e1(0x18a)),_0x503524[_0x2e64e1(0x180)](''),_0x503524[_0x2e64e1(0x180)](_0x2e64e1(0x193)),_0x503524[_0x2e64e1(0x180)]('\x20\x20export\x20'+_0x523768+_0x2e64e1(0x15c)),_0x503524[_0x2e64e1(0x180)](''),_0x503524['push'](_0x2e64e1(0x18e)+CLI_BIN_NAME+_0x2e64e1(0x16e)),_0x503524[_0x2e64e1(0x180)]('If\x20command\x20execution\x20still\x20fails,\x20run:\x20'+CLI_BIN_NAME+_0x2e64e1(0x187));if(_0x1b95dd['bool'](_0x2e64e1(0x16f)))throw CliErrors[_0x2e64e1(0x155)](_0x503524[_0x2e64e1(0x19d)]('\x0a'));}return{'ok':!![],'message':_0x503524[_0x2e64e1(0x19d)]('\x0a')};}},{'service':a12_0x1b3c07(0x14d),'command':a12_0x1b3c07(0x18b),'description':a12_0x1b3c07(0x17f),'risk':a12_0x1b3c07(0x14f),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x18e6b0){const _0x5c84bd=a12_0x1b3c07,_0x24ae06=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x24ae06,'meta':{'env':_0x18e6b0[_0x5c84bd(0x18f)]??_0x5c84bd(0x15a)}}};}}];
@@ -1 +1 @@
1
- (function(_0x24aad1,_0x38ccdb){const _0x3d4266=a13_0x2838,_0x46da93=_0x24aad1();while(!![]){try{const _0x588d30=parseInt(_0x3d4266(0x10c))/0x1*(parseInt(_0x3d4266(0xfd))/0x2)+parseInt(_0x3d4266(0x107))/0x3+parseInt(_0x3d4266(0x10b))/0x4+parseInt(_0x3d4266(0xff))/0x5+-parseInt(_0x3d4266(0x10d))/0x6+parseInt(_0x3d4266(0x100))/0x7+parseInt(_0x3d4266(0x109))/0x8*(-parseInt(_0x3d4266(0x106))/0x9);if(_0x588d30===_0x38ccdb)break;else _0x46da93['push'](_0x46da93['shift']());}catch(_0x115cc3){_0x46da93['push'](_0x46da93['shift']());}}}(a13_0x2814,0x89ff3));function a13_0x2814(){const _0xad4888=['8NvZHHa','race','2628580xEbFjO','53greAAl','4749960cLcwqA','AccessKey\x20(','SIGINT','AccessKey\x20(paste\x20ak_...):\x20','once','12990shUOdG','close','594735xuLZsk','7883078bZQjtf','):\x20','name','stdout','question','stdin','8514648nyyABN','169458spufdc','removeListener'];a13_0x2814=function(){return _0xad4888;};return a13_0x2814();}function a13_0x2838(_0x174052,_0x3b188b){_0x174052=_0x174052-0xfb;const _0x28149c=a13_0x2814();let _0x2838d8=_0x28149c[_0x174052];return _0x2838d8;}import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x563dc2=a13_0x2838;super('User\x20aborted\x20prompt'),this[_0x563dc2(0x102)]='AbortPrompt';}}function createSafeRl(){const _0x43c682=a13_0x2838,_0x48629c=createInterface({'input':process[_0x43c682(0x105)],'output':process[_0x43c682(0x103)]});let _0x4ee750;const _0x4a6622=new Promise((_0x5f2a84,_0x299921)=>{const _0x487664=_0x43c682;_0x4ee750=()=>{const _0x52f897=a13_0x2838;_0x4ee750&&(_0x48629c[_0x52f897(0x108)]('SIGINT',_0x4ee750),_0x4ee750=undefined);try{_0x48629c[_0x52f897(0xfe)]();}catch{}_0x299921(new AbortPrompt());},_0x48629c[_0x487664(0xfc)](_0x487664(0x10f),_0x4ee750);}),_0xf3bd65=()=>{const _0xa17761=_0x43c682;_0x4ee750&&(_0x48629c[_0xa17761(0x108)](_0xa17761(0x10f),_0x4ee750),_0x4ee750=undefined);try{_0x48629c[_0xa17761(0xfe)]();}catch{}};return{'rl':_0x48629c,'abortPromise':_0x4a6622,'disposeSuccess':_0xf3bd65};}export async function promptAccessKey(_0x38fc72=''){const _0x4264ad=a13_0x2838,{rl:_0x550ab8,abortPromise:_0xe346fc,disposeSuccess:_0x274a6c}=createSafeRl(),_0x2134b9=new Promise(_0x39fc84=>{const _0x48a170=a13_0x2838,_0x3a261f=_0x38fc72?_0x48a170(0x10e)+_0x38fc72+_0x48a170(0x101):_0x48a170(0xfb);_0x550ab8[_0x48a170(0x104)](_0x3a261f,_0x208af5=>{_0x274a6c(),_0x39fc84(_0x208af5['trim']()||_0x38fc72);});});return Promise[_0x4264ad(0x10a)]([_0x2134b9,_0xe346fc]);}export function isAbortPrompt(_0x477ad3){const _0x7aec59=a13_0x2838;return _0x477ad3 instanceof Error&&_0x477ad3[_0x7aec59(0x102)]==='AbortPrompt';}
1
+ (function(_0xed4e,_0x382ad4){const _0x4f1596=a13_0x3dab,_0x5961bf=_0xed4e();while(!![]){try{const _0x56f6ec=parseInt(_0x4f1596(0xeb))/0x1+-parseInt(_0x4f1596(0xf1))/0x2*(parseInt(_0x4f1596(0xe8))/0x3)+-parseInt(_0x4f1596(0xf3))/0x4*(-parseInt(_0x4f1596(0xe4))/0x5)+parseInt(_0x4f1596(0xe6))/0x6+-parseInt(_0x4f1596(0xec))/0x7+parseInt(_0x4f1596(0xf6))/0x8*(-parseInt(_0x4f1596(0xef))/0x9)+parseInt(_0x4f1596(0xea))/0xa;if(_0x56f6ec===_0x382ad4)break;else _0x5961bf['push'](_0x5961bf['shift']());}catch(_0x46f3ea){_0x5961bf['push'](_0x5961bf['shift']());}}}(a13_0xa6eb,0x7f9fb));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x1b6c8=a13_0x3dab;super(_0x1b6c8(0xe5)),this[_0x1b6c8(0xf5)]=_0x1b6c8(0xf0);}}function createSafeRl(){const _0x536db7=a13_0x3dab,_0x45ae01=createInterface({'input':process[_0x536db7(0xe7)],'output':process[_0x536db7(0xe9)]});let _0x4c1bd9;const _0x12464a=new Promise((_0x528052,_0x24877c)=>{const _0x19e759=_0x536db7;_0x4c1bd9=()=>{const _0x44182a=a13_0x3dab;_0x4c1bd9&&(_0x45ae01[_0x44182a(0xee)](_0x44182a(0xed),_0x4c1bd9),_0x4c1bd9=undefined);try{_0x45ae01['close']();}catch{}_0x24877c(new AbortPrompt());},_0x45ae01[_0x19e759(0xf7)](_0x19e759(0xed),_0x4c1bd9);}),_0x10ae05=()=>{const _0x1e2c4e=_0x536db7;_0x4c1bd9&&(_0x45ae01['removeListener'](_0x1e2c4e(0xed),_0x4c1bd9),_0x4c1bd9=undefined);try{_0x45ae01['close']();}catch{}};return{'rl':_0x45ae01,'abortPromise':_0x12464a,'disposeSuccess':_0x10ae05};}export async function promptAccessKey(_0x3260fa=''){const {rl:_0x130d28,abortPromise:_0x366c30,disposeSuccess:_0x1ea585}=createSafeRl(),_0x440c78=new Promise(_0x1d36bc=>{const _0x24c89c=a13_0x3dab,_0x2469e2=_0x3260fa?'AccessKey\x20('+_0x3260fa+'):\x20':_0x24c89c(0xf2);_0x130d28[_0x24c89c(0xe3)](_0x2469e2,_0x44f2f0=>{const _0x32b97e=_0x24c89c;_0x1ea585(),_0x1d36bc(_0x44f2f0[_0x32b97e(0xf4)]()||_0x3260fa);});});return Promise['race']([_0x440c78,_0x366c30]);}function a13_0x3dab(_0x13e79f,_0x9a25ad){_0x13e79f=_0x13e79f-0xe3;const _0xa6eb2e=a13_0xa6eb();let _0x3dab1e=_0xa6eb2e[_0x13e79f];return _0x3dab1e;}export function isAbortPrompt(_0x16fbd1){const _0x329552=a13_0x3dab;return _0x16fbd1 instanceof Error&&_0x16fbd1[_0x329552(0xf5)]===_0x329552(0xf0);}function a13_0xa6eb(){const _0x123c59=['stdout','4019400yoHvXA','646012oocVcX','3071936jxxFMx','SIGINT','removeListener','837sjbzvE','AbortPrompt','710364mTKNqZ','AccessKey\x20(paste\x20ak_...):\x20','8aIJYWi','trim','name','82888aCGTTw','once','question','1416665GmMHtu','User\x20aborted\x20prompt','3994392llSBQS','stdin','3AeKWGo'];a13_0xa6eb=function(){return _0x123c59;};return a13_0xa6eb();}