@lovrabet/lovrabet-cli 2.1.23-beta.1 → 2.1.23-beta.2

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 (138) 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.d.ts +4 -8
  5. package/lib/commands/app/definitions.js +1 -1
  6. package/lib/commands/app/eligibility.js +1 -1
  7. package/lib/commands/app/mock-loader.js +1 -1
  8. package/lib/commands/app/remote-source.js +1 -1
  9. package/lib/commands/app/shared.d.ts +1 -16
  10. package/lib/commands/app/shared.js +1 -1
  11. package/lib/commands/app-config/get.js +1 -1
  12. package/lib/commands/app-config/index.js +1 -1
  13. package/lib/commands/artifact/index.js +1 -1
  14. package/lib/commands/auth/device.js +1 -1
  15. package/lib/commands/auth/index.d.ts +2 -2
  16. package/lib/commands/auth/index.js +1 -1
  17. package/lib/commands/auth/prompt.js +1 -1
  18. package/lib/commands/bff/detail.js +1 -1
  19. package/lib/commands/bff/exec.js +1 -1
  20. package/lib/commands/bff/index.js +1 -1
  21. package/lib/commands/cli-skill/index.js +1 -1
  22. package/lib/commands/common/config-policy.d.ts +4 -8
  23. package/lib/commands/common/config-policy.js +1 -1
  24. package/lib/commands/common/constraints.js +1 -1
  25. package/lib/commands/common/flags.js +1 -1
  26. package/lib/commands/common/local-file.js +1 -1
  27. package/lib/commands/config/definitions.js +1 -1
  28. package/lib/commands/config/shared.js +1 -1
  29. package/lib/commands/data/index.js +1 -1
  30. package/lib/commands/dataset/detail.js +1 -1
  31. package/lib/commands/dataset/index.js +1 -1
  32. package/lib/commands/dataset/list.js +1 -1
  33. package/lib/commands/dataset/sdk-doc.js +1 -1
  34. package/lib/commands/doctor.js +1 -1
  35. package/lib/commands/file/index.js +1 -1
  36. package/lib/commands/init.d.ts +6 -24
  37. package/lib/commands/init.js +1 -1
  38. package/lib/commands/kb/index.js +1 -1
  39. package/lib/commands/logs/index.js +1 -1
  40. package/lib/commands/ocr/index.js +1 -1
  41. package/lib/commands/personal-bff/index.js +1 -1
  42. package/lib/commands/registry.d.ts +7 -0
  43. package/lib/commands/registry.js +1 -1
  44. package/lib/commands/schedule/index.js +1 -1
  45. package/lib/commands/schema.js +1 -1
  46. package/lib/commands/service/dynamic.js +1 -1
  47. package/lib/commands/service/function-name-adapter.js +1 -1
  48. package/lib/commands/service/index.js +1 -1
  49. package/lib/commands/service/registry.js +1 -1
  50. package/lib/commands/skill/commands/create.js +1 -1
  51. package/lib/commands/skill/commands/diagram.js +1 -1
  52. package/lib/commands/skill/commands/install.js +1 -1
  53. package/lib/commands/skill/commands/list.js +1 -1
  54. package/lib/commands/skill/commands/push.js +1 -1
  55. package/lib/commands/skill/commands/validate.js +1 -1
  56. package/lib/commands/skill/diagram.js +1 -1
  57. package/lib/commands/skill/flags.js +1 -1
  58. package/lib/commands/skill/index.js +1 -1
  59. package/lib/commands/skill/manifest-helpers.js +1 -1
  60. package/lib/commands/skill/push-execute.js +1 -1
  61. package/lib/commands/skill/push-flow-helpers.js +1 -1
  62. package/lib/commands/skill/push-retarget.js +1 -1
  63. package/lib/commands/skill/scopes.js +1 -1
  64. package/lib/commands/skill/summary.js +1 -1
  65. package/lib/commands/skill/templates.js +1 -1
  66. package/lib/commands/skill/validate.js +1 -1
  67. package/lib/commands/sql/detail.js +1 -1
  68. package/lib/commands/sql/exec.js +1 -1
  69. package/lib/commands/sql/index.js +1 -1
  70. package/lib/commands/update.js +1 -1
  71. package/lib/commands/workspace/index.js +1 -1
  72. package/lib/config/schema.js +1 -1
  73. package/lib/constant/app.js +1 -1
  74. package/lib/constant/auth-mode.js +1 -1
  75. package/lib/constant/cli.js +1 -1
  76. package/lib/constant/defaults.js +1 -1
  77. package/lib/constant/distribution.js +1 -1
  78. package/lib/constant/domain.js +1 -1
  79. package/lib/constant/env.js +1 -1
  80. package/lib/constant/output.js +1 -1
  81. package/lib/constant/product.js +1 -1
  82. package/lib/constant/risk.js +1 -1
  83. package/lib/constant/url.js +1 -1
  84. package/lib/context.d.ts +5 -5
  85. package/lib/context.js +1 -1
  86. package/lib/core/api-client.js +1 -1
  87. package/lib/core/db-resolver.js +1 -1
  88. package/lib/core/sdk-client.js +1 -1
  89. package/lib/errors.js +1 -1
  90. package/lib/framework/build-all-flags.js +1 -1
  91. package/lib/framework/dryrun.js +1 -1
  92. package/lib/framework/flags.js +1 -1
  93. package/lib/framework/help.js +1 -1
  94. package/lib/framework/index.js +1 -1
  95. package/lib/framework/output.js +1 -1
  96. package/lib/framework/preparse.js +1 -1
  97. package/lib/framework/rate-limit.js +1 -1
  98. package/lib/framework/raw-flags.js +1 -1
  99. package/lib/framework/response.js +1 -1
  100. package/lib/framework/runner-confirmation.js +1 -1
  101. package/lib/framework/runner-error.js +1 -1
  102. package/lib/framework/runner.js +1 -1
  103. package/lib/framework/schema-export.js +1 -1
  104. package/lib/framework/service-order.js +1 -1
  105. package/lib/framework/types.js +1 -1
  106. package/lib/generated/build-info.d.ts +4 -4
  107. package/lib/generated/build-info.js +1 -1
  108. package/lib/help.js +1 -1
  109. package/lib/runtime/confirmation.js +1 -1
  110. package/lib/runtime/event.js +1 -1
  111. package/lib/runtime/index.js +1 -1
  112. package/lib/runtime/queue.js +1 -1
  113. package/lib/runtime/resolve.js +1 -1
  114. package/lib/skills/npx-skills-add.js +1 -1
  115. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  116. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  117. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  118. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  119. package/lib/skills/runtime-skill-sync/links.js +1 -1
  120. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  121. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  122. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  123. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  124. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  125. package/lib/skills/runtime-skill-sync/push.js +1 -1
  126. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  127. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  128. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  129. package/lib/skills/runtime-skill-sync.js +1 -1
  130. package/lib/utils/apply-jq-filter.js +1 -1
  131. package/lib/utils/logger.js +1 -1
  132. package/lib/utils/lossless-json.js +1 -1
  133. package/lib/utils/params.js +1 -1
  134. package/lib/utils/platform.js +1 -1
  135. package/lib/utils/update-notice.js +1 -1
  136. package/lib/utils/version.js +1 -1
  137. package/lib/utils/write-cli-side-channel.js +1 -1
  138. package/package.json +1 -1
@@ -1 +1 @@
1
- const a12_0x11ff69=a12_0x4382;(function(_0x139cbd,_0x2cc587){const _0x2443b9=a12_0x4382,_0x5491a4=_0x139cbd();while(!![]){try{const _0x101b30=-parseInt(_0x2443b9(0xa5))/0x1+parseInt(_0x2443b9(0xd5))/0x2*(-parseInt(_0x2443b9(0xc6))/0x3)+parseInt(_0x2443b9(0xd8))/0x4+parseInt(_0x2443b9(0xcb))/0x5+-parseInt(_0x2443b9(0xd7))/0x6+-parseInt(_0x2443b9(0xea))/0x7*(parseInt(_0x2443b9(0xc2))/0x8)+parseInt(_0x2443b9(0xd3))/0x9*(parseInt(_0x2443b9(0xbf))/0xa);if(_0x101b30===_0x2cc587)break;else _0x5491a4['push'](_0x5491a4['shift']());}catch(_0x5c2504){_0x5491a4['push'](_0x5491a4['shift']());}}}(a12_0x4657,0x3cfef));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';function a12_0x4657(){const _0x1f1c4a=['\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','728OzlVDd','AccessKey\x20saved\x20to\x20','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','str','48wsppnH','\x20scope.','No\x20AccessKey\x20found\x20in\x20','\x20config.','boolean','1619235pAuGSi','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','status','push','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','newConfigFileName','清空当前作用域配置并重新初始化认证','155016tzeAHm','Missing\x20accessKey.','49218rWsQbR','project','661602ijEFRi','68776iwLvGg','code','logout','test','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','join','Write\x20to\x20global\x20config\x20(default)','AccessKey:\x20','scope','yes','auth','init','Option\x20B:\x20apps\x20config\x20(','`auth\x20login`\x20does\x20not\x20support\x20--yes.','access-key','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','nonInteractive','access_key','28091vzMokx','check','success','bool','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','=ak_xxx','global-default','ClientAk','Tip:\x20you\x20can\x20also\x20run:','info','trim','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','userCenterDisplayName','Invalid\x20accessKey\x20format:\x20\x22','将用新的认证信息替换所选作用域的整份\x20Lovrabet\x20配置;该作用域中原有的其他配置项也会被清空。确认界面不会显示密钥内容。','\x20Current\x20env:\x20','Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','development','write','env','Option\x20A:\x20','\x20(via\x20','\x20env\x20var','将\x20AccessKey\x20保存到配置(默认写入全局配置;使用\x20--project\x20写入项目配置)','\x20config','\x20Verify:\x20','Then\x20verify\x20with:\x20','\x20auth\x20status','repeat','\x20config.\x20Nothing\x20to\x20clear.','accessKey','将把新的\x20AccessKey\x20保存到所选\x20Lovrabet\x20配置;若该作用域已有\x20AccessKey,将被覆盖。确认界面不会显示密钥内容。','289896eliAqR','slice','从配置中清除\x20AccessKey','\x20\x20export\x20','Clear\x20from\x20global\x20config\x20(default)','read','Auth\x20mode:\x20','stdout','global\x20config','Auth\x20config\x20reinitialized\x20in\x20','daily','Shorthand\x20for\x20--access-key','\x20auth\x20login\x20--access-key\x20<ak_xxx>','string','authRequired','Use\x20`','stdin','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','Show\x20current\x20authentication\x20status','global','cancelled','production','Device\x20authorization\x20pending.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20try\x20again.','length','validation','isTTY','620UJgOrr','ACCESS_KEY'];a12_0x4657=function(){return _0x1f1c4a;};return a12_0x4657();}import{CliErrors}from'../../errors.js';import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';function a12_0x4382(_0x52730d,_0x4c7de1){_0x52730d=_0x52730d-0x88;const _0x46579b=a12_0x4657();let _0x4382c1=_0x46579b[_0x52730d];return _0x4382c1;}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';import{getUserDomain}from'../../constant/domain.js';import{authDeviceDefinition,readStoredDeviceCode,deleteStoredDeviceCode,fetchDeviceToken,isStoredDeviceCodeExpired}from'../../commands/auth/device.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function showAccessKeyCreateHint(){const _0x21c52e=a12_0x4382;writeCliSideChannelLine('AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0x21c52e(0x90)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine(_0x21c52e(0x8c)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x21c52e(0xb1));}function buildAccessKeySetupGuide(){const _0x587934=a12_0x4382;return[_0x587934(0xc4)+PRODUCT_CONFIG['userCenterDisplayName']+':',USER_ACCESS_KEY_CREATE_URL,_0x587934(0x95)+CLI_BIN_NAME+_0x587934(0xd0)][_0x587934(0xdd)]('\x0a');}function canPromptForAccessKey(_0x23ca97){const _0x6a65cb=a12_0x4382;return!_0x23ca97['nonInteractive']&&process[_0x6a65cb(0xb5)][_0x6a65cb(0xbe)]!==![]&&process[_0x6a65cb(0xac)][_0x6a65cb(0xbe)]!==![];}function resolveAuthScopeFlags(_0x374d47){const _0x172754=a12_0x4382;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x374d47[_0x172754(0xed)](_0x172754(0xb8)),'explicitProject':_0x374d47[_0x172754(0xed)](_0x172754(0xd6)),'policy':_0x172754(0x8a)}));}async function resolveAuthWriteInput(_0x348ddb){const _0x2c7642=a12_0x4382;let _0x30cf6f=(_0x348ddb[_0x2c7642(0xc5)](_0x2c7642(0xe6))||_0x348ddb[_0x2c7642(0xc5)]('ak')||'')[_0x2c7642(0x8e)]();const _0x2f7810=(_0x348ddb[_0x2c7642(0xc5)](_0x2c7642(0x98))||'')[_0x2c7642(0x8e)]();if(!_0x30cf6f&&canPromptForAccessKey(_0x348ddb))try{showAccessKeyCreateHint(),_0x30cf6f=await promptAccessKey('');}catch(_0x425df2){if(isAbortPrompt(_0x425df2))throw CliErrors[_0x2c7642(0xb9)]();throw _0x425df2;}if(!_0x30cf6f)throw CliErrors['validation'](_0x2c7642(0xd4),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x2c7642(0xdb)](_0x30cf6f))throw CliErrors[_0x2c7642(0xbd)](_0x2c7642(0x91)+_0x30cf6f+'\x22',_0x2c7642(0xe7));if(!_0x2f7810)return{'accessKey':_0x30cf6f};const _0x3945b8=normalizeEnv(_0x2f7810);return{'accessKey':_0x30cf6f,'env':isDaily(_0x3945b8)?_0x2c7642(0xaf):isDev(_0x3945b8)?_0x2c7642(0x96):_0x2c7642(0xba)};}export const authDefinitions=[{'service':a12_0x11ff69(0xe2),'command':'login','description':a12_0x11ff69(0x9c),'risk':a12_0x11ff69(0x97),'confirmationDescription':a12_0x11ff69(0xa4),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'access-key','type':a12_0x11ff69(0xb2),'description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':a12_0x11ff69(0xb2),'description':a12_0x11ff69(0xb0)},{'name':a12_0x11ff69(0xb8),'type':'boolean','description':a12_0x11ff69(0xde),'default':!![]},{'name':a12_0x11ff69(0xd6),'type':a12_0x11ff69(0xca),'description':a12_0x11ff69(0xcd),'default':![]}],async 'execute'(_0x5ef3c9){const _0x5beb1e=a12_0x11ff69;if(_0x5ef3c9['bool'](_0x5beb1e(0xe1)))throw CliErrors[_0x5beb1e(0xbd)](_0x5beb1e(0xe5),_0x5beb1e(0xb4)+CLI_BIN_NAME+_0x5beb1e(0xdc)+CLI_BIN_NAME+_0x5beb1e(0xcc));const _0x268602=(_0x5ef3c9[_0x5beb1e(0xc5)]('access-key')||_0x5ef3c9[_0x5beb1e(0xc5)]('ak')||'')[_0x5beb1e(0x8e)]();if(!_0x268602&&_0x5ef3c9[_0x5beb1e(0xe8)])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x3d0cb1=await resolveAuthWriteInput(_0x5ef3c9),_0x4795f1=resolveAuthScopeFlags(_0x5ef3c9),_0x1c841a=readScopedConfig(_0x4795f1);_0x1c841a[_0x5beb1e(0xa3)]=_0x3d0cb1[_0x5beb1e(0xa3)];_0x3d0cb1[_0x5beb1e(0x98)]&&(_0x1c841a[_0x5beb1e(0x98)]=_0x3d0cb1['env']);writeScopedConfig(_0x1c841a,_0x4795f1);const _0x5923a5=_0x4795f1[_0x5beb1e(0xb8)]?_0x5beb1e(0xb8):'project',_0x2e28ff=_0x1c841a['env']?_0x5beb1e(0x93)+_0x1c841a['env']+'.':'';return{'ok':!![],'message':_0x5beb1e(0xc3)+_0x5923a5+_0x5beb1e(0xc9)+_0x2e28ff+_0x5beb1e(0x9e)+CLI_BIN_NAME+_0x5beb1e(0xa0)};}},{'service':a12_0x11ff69(0xe2),'command':a12_0x11ff69(0xe3),'description':a12_0x11ff69(0xd2),'risk':'write','confirmationDescription':a12_0x11ff69(0x92),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x11ff69(0xe6),'type':a12_0x11ff69(0xb2),'description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':a12_0x11ff69(0xb2),'description':a12_0x11ff69(0xb0)},{'name':a12_0x11ff69(0x98),'type':a12_0x11ff69(0xb2),'description':a12_0x11ff69(0x94)},{'name':a12_0x11ff69(0xb8),'type':'boolean','description':a12_0x11ff69(0xde),'default':!![]},{'name':a12_0x11ff69(0xd6),'type':a12_0x11ff69(0xca),'description':a12_0x11ff69(0xcd),'default':![]}],async 'execute'(_0x59840b){const _0x2e0620=a12_0x11ff69,_0x457f9d=await resolveAuthWriteInput(_0x59840b),_0x48b957=resolveAuthScopeFlags(_0x59840b),_0x3aec7e={'accessKey':_0x457f9d[_0x2e0620(0xa3)]};_0x457f9d['env']&&(_0x3aec7e[_0x2e0620(0x98)]=_0x457f9d[_0x2e0620(0x98)]);writeScopedConfig(_0x3aec7e,_0x48b957);const _0x216874=_0x48b957[_0x2e0620(0xb8)]?_0x2e0620(0xb8):'project',_0x434398=_0x3aec7e[_0x2e0620(0x98)]?_0x2e0620(0x93)+_0x3aec7e[_0x2e0620(0x98)]+'.':'';return{'ok':!![],'message':_0x2e0620(0xae)+_0x216874+_0x2e0620(0xc7)+_0x434398+'\x20Verify:\x20'+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':'auth','command':a12_0x11ff69(0xda),'description':a12_0x11ff69(0xa7),'risk':a12_0x11ff69(0x97),'confirmationDescription':'将从所选\x20Lovrabet\x20配置中移除\x20AccessKey;之后依赖该密钥的命令需要重新登录才能使用。','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x11ff69(0xb8),'type':a12_0x11ff69(0xca),'description':a12_0x11ff69(0xa9),'default':!![]},{'name':a12_0x11ff69(0xd6),'type':a12_0x11ff69(0xca),'description':'Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x3823dc){const _0x55b1d5=a12_0x11ff69,_0x30a29b=resolveAuthScopeFlags(_0x3823dc),_0x3de577=readScopedConfig(_0x30a29b),_0x13b85c=!!_0x3de577[_0x55b1d5(0xa3)];delete _0x3de577[_0x55b1d5(0xa3)],writeScopedConfig(_0x3de577,_0x30a29b);const _0x41d10a=_0x30a29b['global']?'global':_0x55b1d5(0xd6);if(_0x13b85c)return{'ok':!![],'message':'AccessKey\x20cleared\x20from\x20'+_0x41d10a+_0x55b1d5(0xc9)};return{'ok':!![],'message':_0x55b1d5(0xc8)+_0x41d10a+_0x55b1d5(0xa2)};}},{'service':a12_0x11ff69(0xe2),'command':a12_0x11ff69(0xce),'description':a12_0x11ff69(0xb7),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x11ff69(0xb8),'type':a12_0x11ff69(0xca),'description':'Read\x20from\x20global\x20config\x20(default)','default':!![]},{'name':a12_0x11ff69(0xd6),'type':a12_0x11ff69(0xca),'description':a12_0x11ff69(0xb6),'default':![]},{'name':a12_0x11ff69(0xeb),'type':a12_0x11ff69(0xca),'description':'Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','default':![]}],async 'execute'(_0x46f0c2){const _0x5d2930=a12_0x11ff69,_0x2866f2=resolveAuthScopeFlags(_0x46f0c2),_0x2ca568=readScopedConfig(_0x2866f2),_0x455d5f=productEnvName('ACCESS_KEY'),_0x5eeaf7=productEnv(_0x5d2930(0xc0))||undefined,_0x57ff11=_0x2ca568['accessKey']||undefined,_0x1cb0b0=_0x5eeaf7||_0x57ff11,_0x481f79=_0x5eeaf7?_0x455d5f+_0x5d2930(0x9b):_0x57ff11?(_0x2866f2['global']?_0x5d2930(0xb8):_0x5d2930(0xd6))+_0x5d2930(0x9d):null,_0x35affd=['Auth\x20mode:\x20'+AUTH_MODE['ClientAk']];if(_0x1cb0b0){const _0x44f33c=_0x1cb0b0[_0x5d2930(0xbc)]>0x8?''+_0x1cb0b0[_0x5d2930(0xa6)](0x0,0x8)+'*'['repeat'](_0x1cb0b0['length']-0x8):_0x1cb0b0;_0x35affd['push'](_0x5d2930(0xdf)+_0x44f33c+(_0x481f79?_0x5d2930(0x9a)+_0x481f79+')':'')),_0x35affd['push']('Status:\x20valid');}if(!_0x1cb0b0){_0x35affd['push'](''),_0x35affd[_0x5d2930(0xcf)](_0x5d2930(0x88)),_0x35affd[_0x5d2930(0xcf)](''),_0x35affd[_0x5d2930(0xcf)](_0x5d2930(0x99)+CLI_BIN_NAME+_0x5d2930(0xc1)),_0x35affd[_0x5d2930(0xcf)](''),_0x35affd['push'](_0x5d2930(0xe4)+PRODUCT_CONFIG[_0x5d2930(0xd1)]+')'),_0x35affd[_0x5d2930(0xcf)]('{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}'),_0x35affd['push'](''),_0x35affd[_0x5d2930(0xcf)]('Option\x20C:\x20environment\x20variable'),_0x35affd[_0x5d2930(0xcf)](_0x5d2930(0xa8)+_0x455d5f+_0x5d2930(0x89)),_0x35affd[_0x5d2930(0xcf)](''),_0x35affd[_0x5d2930(0xcf)](_0x5d2930(0x9f)+CLI_BIN_NAME+_0x5d2930(0xa0)),_0x35affd['push'](_0x5d2930(0x8f)+CLI_BIN_NAME+'\x20doctor');if(_0x46f0c2[_0x5d2930(0xed)](_0x5d2930(0xeb))){const _0x3b7798=readStoredDeviceCode();if(_0x3b7798&&!isStoredDeviceCodeExpired(_0x3b7798)){const _0x408b02=getUserDomain(),_0x1e962e=await fetchDeviceToken(_0x408b02,_0x3b7798[_0x5d2930(0xd9)]);if(_0x1e962e['status']===_0x5d2930(0xec)&&_0x1e962e[_0x5d2930(0xe9)]){const _0x189267={'global':_0x3b7798[_0x5d2930(0xe0)]==='global'},_0x126049=readScopedConfig(_0x189267);_0x126049[_0x5d2930(0xa3)]=_0x1e962e[_0x5d2930(0xe9)],writeScopedConfig(_0x126049,_0x189267),deleteStoredDeviceCode();const _0x30ab4b=_0x1e962e['access_key'],_0x1ad329=_0x30ab4b[_0x5d2930(0xbc)]>0x8?''+_0x30ab4b[_0x5d2930(0xa6)](0x0,0x8)+'*'[_0x5d2930(0xa1)](_0x30ab4b['length']-0x8):_0x30ab4b,_0x46fcd6=_0x3b7798['scope']===_0x5d2930(0xb8)?_0x5d2930(0xad):'project\x20config';return{'ok':!![],'message':[_0x5d2930(0xab)+AUTH_MODE[_0x5d2930(0x8b)],_0x5d2930(0xdf)+_0x1ad329+_0x5d2930(0x9a)+_0x46fcd6+')','Status:\x20valid'][_0x5d2930(0xdd)]('\x0a')};}_0x1e962e[_0x5d2930(0xce)]==='expired'&&deleteStoredDeviceCode();throw CliErrors[_0x5d2930(0xb3)](_0x5d2930(0xbb));}throw CliErrors[_0x5d2930(0xb3)](_0x35affd[_0x5d2930(0xdd)]('\x0a'));}}return{'ok':!![],'message':_0x35affd['join']('\x0a')};}},{'service':'auth','command':a12_0x11ff69(0x8d),'description':'Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','risk':a12_0x11ff69(0xaa),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0xff57c5){const _0x26b75f=a12_0x11ff69,_0x83f050=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x83f050,'meta':{'env':_0xff57c5['envName']??_0x26b75f(0xba)}}};}},authDeviceDefinition];
1
+ const a12_0x18f7d4=a12_0x3d3d;(function(_0x34b5c0,_0x280e15){const _0x34872e=a12_0x3d3d,_0x1393c8=_0x34b5c0();while(!![]){try{const _0x2f6a8b=parseInt(_0x34872e(0x1bd))/0x1+-parseInt(_0x34872e(0x1fb))/0x2*(-parseInt(_0x34872e(0x1ce))/0x3)+parseInt(_0x34872e(0x1de))/0x4*(parseInt(_0x34872e(0x1f7))/0x5)+parseInt(_0x34872e(0x1e2))/0x6+-parseInt(_0x34872e(0x1d9))/0x7*(parseInt(_0x34872e(0x1bb))/0x8)+parseInt(_0x34872e(0x1b4))/0x9+-parseInt(_0x34872e(0x1ec))/0xa;if(_0x2f6a8b===_0x280e15)break;else _0x1393c8['push'](_0x1393c8['shift']());}catch(_0x56f07f){_0x1393c8['push'](_0x1393c8['shift']());}}}(a12_0x59af,0xd0474));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';function a12_0x59af(){const _0x977fb1=['project','status','AccessKey\x20(ak_xxx...)','info','newConfigFileName','\x20\x20export\x20','auth','development','Write\x20to\x20global\x20config\x20(default)','7JGgdNX','AccessKey:\x20','cancelled','Invalid\x20accessKey\x20format:\x20\x22','`auth\x20login`\x20does\x20not\x20support\x20--yes.','35624vEZzNP','access_key','ClientAk','AccessKey\x20cleared\x20from\x20','2673774UDveSN','str','\x20Current\x20env:\x20','test','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','validation','Clear\x20from\x20global\x20config\x20(default)','Auth\x20mode:\x20','Status:\x20valid','\x20(via\x20','28031330ZyZCWz','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','global','\x20config','No\x20AccessKey\x20found\x20in\x20','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','logout','\x20doctor','length','Device\x20authorization\x20pending.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20try\x20again.','accessKey','615Yuguen','\x20auth\x20login\x20--access-key\x20<ak_xxx>','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','将从所选\x20Lovrabet\x20配置中移除\x20AccessKey;之后依赖该密钥的命令需要重新登录才能使用。','2nwUpnQ','authRequired','env','check','ACCESS_KEY','write','将\x20AccessKey\x20保存到配置(默认写入全局配置;使用\x20--project\x20写入项目配置)','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','Then\x20verify\x20with:\x20','Use\x20`','bool','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','stdout','Auth\x20config\x20reinitialized\x20in\x20','success','userCenterDisplayName','repeat','global-default','join','trim','\x20config.\x20Nothing\x20to\x20clear.','1641564blapZz','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','将把新的\x20AccessKey\x20保存到所选\x20Lovrabet\x20配置;若该作用域已有\x20AccessKey,将被覆盖。确认界面不会显示密钥内容。','Option\x20C:\x20environment\x20variable','\x20env\x20var','Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','\x20auth\x20status','5136472udLHWQ','Missing\x20accessKey.','1057280viRqZX','Read\x20from\x20global\x20config\x20(default)','\x20config.','read','push','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','isTTY','boolean','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','login','\x20scope.','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','Option\x20B:\x20apps\x20config\x20(','access-key','清空当前作用域配置并重新初始化认证','scope','4552671nHdpHC','string'];a12_0x59af=function(){return _0x977fb1;};return a12_0x59af();}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';import{getUserDomain}from'../../constant/domain.js';import{authDeviceDefinition,readStoredDeviceCode,deleteStoredDeviceCode,fetchDeviceToken,isStoredDeviceCodeExpired}from'../../commands/auth/device.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function showAccessKeyCreateHint(){const _0x223500=a12_0x3d3d;writeCliSideChannelLine(_0x223500(0x1c5)+PRODUCT_CONFIG[_0x223500(0x20a)]+':'),writeCliSideChannelLine('\x0a'+USER_ACCESS_KEY_CREATE_URL+'\x0a'),writeCliSideChannelLine('Tip:\x20you\x20can\x20also\x20run:'),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x223500(0x1f8));}function buildAccessKeySetupGuide(){const _0x294ccc=a12_0x3d3d;return[_0x294ccc(0x1c5)+PRODUCT_CONFIG[_0x294ccc(0x20a)]+':',USER_ACCESS_KEY_CREATE_URL,_0x294ccc(0x1c2)+CLI_BIN_NAME+_0x294ccc(0x1c8)][_0x294ccc(0x1b1)]('\x0a');}function canPromptForAccessKey(_0x2147b1){const _0xd1ab31=a12_0x3d3d;return!_0x2147b1['nonInteractive']&&process['stdin'][_0xd1ab31(0x1c3)]!==![]&&process[_0xd1ab31(0x207)][_0xd1ab31(0x1c3)]!==![];}function resolveAuthScopeFlags(_0x5f3349){const _0x483712=a12_0x3d3d;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x5f3349[_0x483712(0x205)](_0x483712(0x1ee)),'explicitProject':_0x5f3349[_0x483712(0x205)](_0x483712(0x1d0)),'policy':_0x483712(0x1b0)}));}function a12_0x3d3d(_0x2a92b2,_0x30ac75){_0x2a92b2=_0x2a92b2-0x1b0;const _0x59afd5=a12_0x59af();let _0x3d3d91=_0x59afd5[_0x2a92b2];return _0x3d3d91;}async function resolveAuthWriteInput(_0x59c3b7){const _0x74ff45=a12_0x3d3d;let _0x461275=(_0x59c3b7[_0x74ff45(0x1e3)](_0x74ff45(0x1cb))||_0x59c3b7[_0x74ff45(0x1e3)]('ak')||'')['trim']();const _0x4df19a=(_0x59c3b7[_0x74ff45(0x1e3)](_0x74ff45(0x1fd))||'')[_0x74ff45(0x1b2)]();if(!_0x461275&&canPromptForAccessKey(_0x59c3b7))try{showAccessKeyCreateHint(),_0x461275=await promptAccessKey('');}catch(_0x40220e){if(isAbortPrompt(_0x40220e))throw CliErrors[_0x74ff45(0x1db)]();throw _0x40220e;}if(!_0x461275)throw CliErrors['validation'](_0x74ff45(0x1bc),buildAccessKeySetupGuide());if(!ACCESS_KEY_PATTERN[_0x74ff45(0x1e5)](_0x461275))throw CliErrors[_0x74ff45(0x1e7)](_0x74ff45(0x1dc)+_0x461275+'\x22',_0x74ff45(0x1e6));if(!_0x4df19a)return{'accessKey':_0x461275};const _0x33d453=normalizeEnv(_0x4df19a);return{'accessKey':_0x461275,'env':isDaily(_0x33d453)?'daily':isDev(_0x33d453)?_0x74ff45(0x1d7):'production'};}export const authDefinitions=[{'service':a12_0x18f7d4(0x1d6),'command':a12_0x18f7d4(0x1c6),'description':a12_0x18f7d4(0x201),'risk':a12_0x18f7d4(0x200),'confirmationDescription':a12_0x18f7d4(0x1b6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x18f7d4(0x1cb),'type':a12_0x18f7d4(0x1cf),'description':a12_0x18f7d4(0x1d2)},{'name':'ak','type':'string','description':'Shorthand\x20for\x20--access-key'},{'name':a12_0x18f7d4(0x1ee),'type':a12_0x18f7d4(0x1c4),'description':a12_0x18f7d4(0x1d8),'default':!![]},{'name':'project','type':a12_0x18f7d4(0x1c4),'description':a12_0x18f7d4(0x1c9),'default':![]}],async 'execute'(_0x48240a){const _0x40e45b=a12_0x18f7d4;if(_0x48240a[_0x40e45b(0x205)]('yes'))throw CliErrors[_0x40e45b(0x1e7)](_0x40e45b(0x1dd),_0x40e45b(0x204)+CLI_BIN_NAME+_0x40e45b(0x1f9)+CLI_BIN_NAME+_0x40e45b(0x206));const _0x41387b=(_0x48240a[_0x40e45b(0x1e3)]('access-key')||_0x48240a[_0x40e45b(0x1e3)]('ak')||'')[_0x40e45b(0x1b2)]();if(!_0x41387b&&_0x48240a['nonInteractive'])return{'ok':!![],'message':buildAccessKeySetupGuide()};const _0x1d1603=await resolveAuthWriteInput(_0x48240a),_0x37c2b8=resolveAuthScopeFlags(_0x48240a),_0x3954fa=readScopedConfig(_0x37c2b8);_0x3954fa[_0x40e45b(0x1f6)]=_0x1d1603[_0x40e45b(0x1f6)];_0x1d1603['env']&&(_0x3954fa['env']=_0x1d1603[_0x40e45b(0x1fd)]);writeScopedConfig(_0x3954fa,_0x37c2b8);const _0x2cc585=_0x37c2b8['global']?_0x40e45b(0x1ee):_0x40e45b(0x1d0),_0x5a0f0d=_0x3954fa[_0x40e45b(0x1fd)]?'\x20Current\x20env:\x20'+_0x3954fa[_0x40e45b(0x1fd)]+'.':'';return{'ok':!![],'message':'AccessKey\x20saved\x20to\x20'+_0x2cc585+_0x40e45b(0x1bf)+_0x5a0f0d+'\x20Verify:\x20'+CLI_BIN_NAME+_0x40e45b(0x1ba)};}},{'service':'auth','command':'init','description':a12_0x18f7d4(0x1cc),'risk':a12_0x18f7d4(0x200),'confirmationDescription':'将用新的认证信息替换所选作用域的整份\x20Lovrabet\x20配置;该作用域中原有的其他配置项也会被清空。确认界面不会显示密钥内容。','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x18f7d4(0x1cb),'type':a12_0x18f7d4(0x1cf),'description':a12_0x18f7d4(0x1d2)},{'name':'ak','type':a12_0x18f7d4(0x1cf),'description':'Shorthand\x20for\x20--access-key'},{'name':a12_0x18f7d4(0x1fd),'type':a12_0x18f7d4(0x1cf),'description':'Target\x20environment\x20to\x20persist\x20with\x20the\x20new\x20auth\x20config'},{'name':a12_0x18f7d4(0x1ee),'type':a12_0x18f7d4(0x1c4),'description':a12_0x18f7d4(0x1d8),'default':!![]},{'name':a12_0x18f7d4(0x1d0),'type':'boolean','description':a12_0x18f7d4(0x1c9),'default':![]}],async 'execute'(_0x3876a4){const _0x1fcbf4=a12_0x18f7d4,_0x1bde72=await resolveAuthWriteInput(_0x3876a4),_0xebcec9=resolveAuthScopeFlags(_0x3876a4),_0xa60bc7={'accessKey':_0x1bde72[_0x1fcbf4(0x1f6)]};_0x1bde72['env']&&(_0xa60bc7[_0x1fcbf4(0x1fd)]=_0x1bde72[_0x1fcbf4(0x1fd)]);writeScopedConfig(_0xa60bc7,_0xebcec9);const _0x3409ac=_0xebcec9[_0x1fcbf4(0x1ee)]?'global':_0x1fcbf4(0x1d0),_0x4ab08e=_0xa60bc7[_0x1fcbf4(0x1fd)]?_0x1fcbf4(0x1e4)+_0xa60bc7[_0x1fcbf4(0x1fd)]+'.':'';return{'ok':!![],'message':_0x1fcbf4(0x208)+_0x3409ac+_0x1fcbf4(0x1c7)+_0x4ab08e+'\x20Verify:\x20'+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':a12_0x18f7d4(0x1d6),'command':a12_0x18f7d4(0x1f2),'description':'从配置中清除\x20AccessKey','risk':a12_0x18f7d4(0x200),'confirmationDescription':a12_0x18f7d4(0x1fa),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x18f7d4(0x1ee),'type':a12_0x18f7d4(0x1c4),'description':a12_0x18f7d4(0x1e8),'default':!![]},{'name':a12_0x18f7d4(0x1d0),'type':'boolean','description':'Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x38e392){const _0x15e483=a12_0x18f7d4,_0x16dc8e=resolveAuthScopeFlags(_0x38e392),_0x2859b6=readScopedConfig(_0x16dc8e),_0x1d511b=!!_0x2859b6[_0x15e483(0x1f6)];delete _0x2859b6[_0x15e483(0x1f6)],writeScopedConfig(_0x2859b6,_0x16dc8e);const _0x1a1aae=_0x16dc8e[_0x15e483(0x1ee)]?_0x15e483(0x1ee):_0x15e483(0x1d0);if(_0x1d511b)return{'ok':!![],'message':_0x15e483(0x1e1)+_0x1a1aae+'\x20config.'};return{'ok':!![],'message':_0x15e483(0x1f0)+_0x1a1aae+_0x15e483(0x1b3)};}},{'service':'auth','command':a12_0x18f7d4(0x1d1),'description':'Show\x20current\x20authentication\x20status','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a12_0x18f7d4(0x1ee),'type':a12_0x18f7d4(0x1c4),'description':a12_0x18f7d4(0x1be),'default':!![]},{'name':a12_0x18f7d4(0x1d0),'type':a12_0x18f7d4(0x1c4),'description':a12_0x18f7d4(0x1f1),'default':![]},{'name':a12_0x18f7d4(0x1fe),'type':a12_0x18f7d4(0x1c4),'description':a12_0x18f7d4(0x1b9),'default':![]}],async 'execute'(_0x4df98d){const _0x217ef1=a12_0x18f7d4,_0x291975=resolveAuthScopeFlags(_0x4df98d),_0x16b474=readScopedConfig(_0x291975),_0x231643=productEnvName(_0x217ef1(0x1ff)),_0x3ce4b5=productEnv(_0x217ef1(0x1ff))||undefined,_0x52c02d=_0x16b474[_0x217ef1(0x1f6)]||undefined,_0x1acede=_0x3ce4b5||_0x52c02d,_0x5b574f=_0x3ce4b5?_0x231643+_0x217ef1(0x1b8):_0x52c02d?(_0x291975['global']?_0x217ef1(0x1ee):_0x217ef1(0x1d0))+_0x217ef1(0x1ef):null,_0x4dd5c0=[_0x217ef1(0x1e9)+AUTH_MODE['ClientAk']];if(_0x1acede){const _0x3e3859=_0x1acede[_0x217ef1(0x1f4)]>0x8?''+_0x1acede['slice'](0x0,0x8)+'*'[_0x217ef1(0x20b)](_0x1acede['length']-0x8):_0x1acede;_0x4dd5c0[_0x217ef1(0x1c1)]('AccessKey:\x20'+_0x3e3859+(_0x5b574f?_0x217ef1(0x1eb)+_0x5b574f+')':'')),_0x4dd5c0[_0x217ef1(0x1c1)](_0x217ef1(0x1ea));}if(!_0x1acede){_0x4dd5c0[_0x217ef1(0x1c1)](''),_0x4dd5c0[_0x217ef1(0x1c1)]('No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:'),_0x4dd5c0[_0x217ef1(0x1c1)](''),_0x4dd5c0[_0x217ef1(0x1c1)]('Option\x20A:\x20'+CLI_BIN_NAME+_0x217ef1(0x1ed)),_0x4dd5c0[_0x217ef1(0x1c1)](''),_0x4dd5c0[_0x217ef1(0x1c1)](_0x217ef1(0x1ca)+PRODUCT_CONFIG[_0x217ef1(0x1d4)]+')'),_0x4dd5c0[_0x217ef1(0x1c1)](_0x217ef1(0x202)),_0x4dd5c0[_0x217ef1(0x1c1)](''),_0x4dd5c0[_0x217ef1(0x1c1)](_0x217ef1(0x1b7)),_0x4dd5c0[_0x217ef1(0x1c1)](_0x217ef1(0x1d5)+_0x231643+'=ak_xxx'),_0x4dd5c0[_0x217ef1(0x1c1)](''),_0x4dd5c0[_0x217ef1(0x1c1)](_0x217ef1(0x203)+CLI_BIN_NAME+_0x217ef1(0x1ba)),_0x4dd5c0[_0x217ef1(0x1c1)]('If\x20command\x20execution\x20still\x20fails,\x20run:\x20'+CLI_BIN_NAME+_0x217ef1(0x1f3));if(_0x4df98d['bool'](_0x217ef1(0x1fe))){const _0x11a139=readStoredDeviceCode();if(_0x11a139&&!isStoredDeviceCodeExpired(_0x11a139)){const _0x6762a9=getUserDomain(),_0x406a18=await fetchDeviceToken(_0x6762a9,_0x11a139['code']);if(_0x406a18[_0x217ef1(0x1d1)]===_0x217ef1(0x209)&&_0x406a18[_0x217ef1(0x1df)]){const _0x2bc68c={'global':_0x11a139[_0x217ef1(0x1cd)]===_0x217ef1(0x1ee)},_0x5043d3=readScopedConfig(_0x2bc68c);_0x5043d3[_0x217ef1(0x1f6)]=_0x406a18[_0x217ef1(0x1df)],writeScopedConfig(_0x5043d3,_0x2bc68c),deleteStoredDeviceCode();const _0x1c3d0c=_0x406a18[_0x217ef1(0x1df)],_0x27dd8c=_0x1c3d0c['length']>0x8?''+_0x1c3d0c['slice'](0x0,0x8)+'*'['repeat'](_0x1c3d0c['length']-0x8):_0x1c3d0c,_0x219fc0=_0x11a139[_0x217ef1(0x1cd)]===_0x217ef1(0x1ee)?'global\x20config':'project\x20config';return{'ok':!![],'message':['Auth\x20mode:\x20'+AUTH_MODE[_0x217ef1(0x1e0)],_0x217ef1(0x1da)+_0x27dd8c+_0x217ef1(0x1eb)+_0x219fc0+')','Status:\x20valid']['join']('\x0a')};}_0x406a18['status']==='expired'&&deleteStoredDeviceCode();throw CliErrors['authRequired'](_0x217ef1(0x1f5));}throw CliErrors[_0x217ef1(0x1fc)](_0x4dd5c0['join']('\x0a'));}}return{'ok':!![],'message':_0x4dd5c0[_0x217ef1(0x1b1)]('\x0a')};}},{'service':'auth','command':a12_0x18f7d4(0x1d3),'description':a12_0x18f7d4(0x1b5),'risk':a12_0x18f7d4(0x1c0),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x496da7){const _0x569ae5=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x569ae5,'meta':{'env':_0x496da7['envName']??'production'}}};}},authDeviceDefinition];
@@ -1 +1 @@
1
- function a13_0x3ec2(){const _0x4f6142=['4740ZgAqdc','close','removeListener','2213724HzvkPW','1562351aRgbzb','):\x20','AccessKey\x20(paste\x20ak_...):\x20','once','24690RhWiRh','3456035htSKip','54vlfMfj','24670650yviSzB','1484HDEjdN','9bImSKe','SIGINT','User\x20aborted\x20prompt','name','2744248hiSnDV','stdin','stdout'];a13_0x3ec2=function(){return _0x4f6142;};return a13_0x3ec2();}(function(_0x31b3b6,_0x9d32ac){const _0x5ce186=a13_0x5919,_0x3e0046=_0x31b3b6();while(!![]){try{const _0xb4db69=parseInt(_0x5ce186(0x155))/0x1*(parseInt(_0x5ce186(0x167))/0x2)+parseInt(_0x5ce186(0x15f))/0x3*(parseInt(_0x5ce186(0x157))/0x4)+parseInt(_0x5ce186(0x168))/0x5+parseInt(_0x5ce186(0x162))/0x6+parseInt(_0x5ce186(0x163))/0x7+parseInt(_0x5ce186(0x15c))/0x8*(parseInt(_0x5ce186(0x158))/0x9)+-parseInt(_0x5ce186(0x156))/0xa;if(_0xb4db69===_0x9d32ac)break;else _0x3e0046['push'](_0x3e0046['shift']());}catch(_0x567ba2){_0x3e0046['push'](_0x3e0046['shift']());}}}(a13_0x3ec2,0x649e2));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x11c528=a13_0x5919;super(_0x11c528(0x15a)),this['name']='AbortPrompt';}}function createSafeRl(){const _0xac4a59=a13_0x5919,_0x28ad9c=createInterface({'input':process[_0xac4a59(0x15d)],'output':process[_0xac4a59(0x15e)]});let _0x202a8a;const _0x4e6a83=new Promise((_0xc8aaf3,_0x11d36c)=>{const _0x593d0=_0xac4a59;_0x202a8a=()=>{const _0x7005a9=a13_0x5919;_0x202a8a&&(_0x28ad9c[_0x7005a9(0x161)](_0x7005a9(0x159),_0x202a8a),_0x202a8a=undefined);try{_0x28ad9c[_0x7005a9(0x160)]();}catch{}_0x11d36c(new AbortPrompt());},_0x28ad9c[_0x593d0(0x166)](_0x593d0(0x159),_0x202a8a);}),_0x2bd3b2=()=>{const _0x125116=_0xac4a59;_0x202a8a&&(_0x28ad9c[_0x125116(0x161)](_0x125116(0x159),_0x202a8a),_0x202a8a=undefined);try{_0x28ad9c[_0x125116(0x160)]();}catch{}};return{'rl':_0x28ad9c,'abortPromise':_0x4e6a83,'disposeSuccess':_0x2bd3b2};}export async function promptAccessKey(_0x32217e=''){const {rl:_0x15d6b2,abortPromise:_0x43b0c7,disposeSuccess:_0x22c583}=createSafeRl(),_0x487a06=new Promise(_0x2492e7=>{const _0xfa56bb=a13_0x5919,_0xa22c20=_0x32217e?'AccessKey\x20('+_0x32217e+_0xfa56bb(0x164):_0xfa56bb(0x165);_0x15d6b2['question'](_0xa22c20,_0x56a4d5=>{_0x22c583(),_0x2492e7(_0x56a4d5['trim']()||_0x32217e);});});return Promise['race']([_0x487a06,_0x43b0c7]);}function a13_0x5919(_0x5784b1,_0x2cfc6c){_0x5784b1=_0x5784b1-0x155;const _0x3ec21a=a13_0x3ec2();let _0x5919e7=_0x3ec21a[_0x5784b1];return _0x5919e7;}export function isAbortPrompt(_0x5130ba){const _0x2dfc0=a13_0x5919;return _0x5130ba instanceof Error&&_0x5130ba[_0x2dfc0(0x15b)]==='AbortPrompt';}
1
+ (function(_0x4ceb68,_0x28335f){const _0x17676=a13_0x1e1a,_0x27d32c=_0x4ceb68();while(!![]){try{const _0x2f89db=parseInt(_0x17676(0x159))/0x1+parseInt(_0x17676(0x153))/0x2+-parseInt(_0x17676(0x15c))/0x3+-parseInt(_0x17676(0x164))/0x4+-parseInt(_0x17676(0x166))/0x5*(parseInt(_0x17676(0x15d))/0x6)+-parseInt(_0x17676(0x161))/0x7*(-parseInt(_0x17676(0x15e))/0x8)+-parseInt(_0x17676(0x152))/0x9*(-parseInt(_0x17676(0x155))/0xa);if(_0x2f89db===_0x28335f)break;else _0x27d32c['push'](_0x27d32c['shift']());}catch(_0xe390d6){_0x27d32c['push'](_0x27d32c['shift']());}}}(a13_0x14a2,0xed923));function a13_0x1e1a(_0xe8e6c1,_0x55ffe8){_0xe8e6c1=_0xe8e6c1-0x152;const _0x14a256=a13_0x14a2();let _0x1e1a82=_0x14a256[_0xe8e6c1];return _0x1e1a82;}import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x5095f0=a13_0x1e1a;super(_0x5095f0(0x15a)),this[_0x5095f0(0x165)]=_0x5095f0(0x15b);}}function a13_0x14a2(){const _0x147783=['18gONCmP','213864qTVfkG','stdin','14200210IgoomZ','stdout','):\x20','AccessKey\x20(paste\x20ak_...):\x20','1061817Vzugvc','User\x20aborted\x20prompt','AbortPrompt','5678100wzJSrT','160794NlYEdZ','158968QDGBhy','once','close','14sKzpKt','SIGINT','removeListener','3123028vKoKpm','name','75OdoJuj','question','trim'];a13_0x14a2=function(){return _0x147783;};return a13_0x14a2();}function createSafeRl(){const _0x27bdc9=a13_0x1e1a,_0xa5b1e2=createInterface({'input':process[_0x27bdc9(0x154)],'output':process[_0x27bdc9(0x156)]});let _0x5130e5;const _0x1c07f4=new Promise((_0x31d4df,_0x43228c)=>{const _0x3807c6=_0x27bdc9;_0x5130e5=()=>{const _0x3de059=a13_0x1e1a;_0x5130e5&&(_0xa5b1e2[_0x3de059(0x163)](_0x3de059(0x162),_0x5130e5),_0x5130e5=undefined);try{_0xa5b1e2[_0x3de059(0x160)]();}catch{}_0x43228c(new AbortPrompt());},_0xa5b1e2[_0x3807c6(0x15f)](_0x3807c6(0x162),_0x5130e5);}),_0x1c1406=()=>{const _0x2b4944=_0x27bdc9;_0x5130e5&&(_0xa5b1e2[_0x2b4944(0x163)](_0x2b4944(0x162),_0x5130e5),_0x5130e5=undefined);try{_0xa5b1e2[_0x2b4944(0x160)]();}catch{}};return{'rl':_0xa5b1e2,'abortPromise':_0x1c07f4,'disposeSuccess':_0x1c1406};}export async function promptAccessKey(_0x2ef00c=''){const {rl:_0x127625,abortPromise:_0x1a0dc8,disposeSuccess:_0x535c60}=createSafeRl(),_0x12a496=new Promise(_0x55a679=>{const _0x43f2ab=a13_0x1e1a,_0x46e2ee=_0x2ef00c?'AccessKey\x20('+_0x2ef00c+_0x43f2ab(0x157):_0x43f2ab(0x158);_0x127625[_0x43f2ab(0x167)](_0x46e2ee,_0x290de8=>{const _0x443f22=_0x43f2ab;_0x535c60(),_0x55a679(_0x290de8[_0x443f22(0x168)]()||_0x2ef00c);});});return Promise['race']([_0x12a496,_0x1a0dc8]);}export function isAbortPrompt(_0x4ac4dc){const _0x4259a3=a13_0x1e1a;return _0x4ac4dc instanceof Error&&_0x4ac4dc[_0x4259a3(0x165)]==='AbortPrompt';}
@@ -1 +1 @@
1
- const a14_0x4888c5=a14_0x4d1e;(function(_0x144fcc,_0xad671){const _0x117336=a14_0x4d1e,_0x2218ae=_0x144fcc();while(!![]){try{const _0x8d9f68=-parseInt(_0x117336(0x1e3))/0x1+-parseInt(_0x117336(0x1e5))/0x2+-parseInt(_0x117336(0x1e6))/0x3*(parseInt(_0x117336(0x1dd))/0x4)+parseInt(_0x117336(0x1e9))/0x5*(parseInt(_0x117336(0x1e8))/0x6)+parseInt(_0x117336(0x1ee))/0x7+parseInt(_0x117336(0x1e2))/0x8+parseInt(_0x117336(0x1ed))/0x9;if(_0x8d9f68===_0xad671)break;else _0x2218ae['push'](_0x2218ae['shift']());}catch(_0x4599ba){_0x2218ae['push'](_0x2218ae['shift']());}}}(a14_0x24d5,0x7c1a9));import{getBffEndpointContract}from'../../core/api-client.js';import{NAME_FLAG}from'../../commands/common/flags.js';function a14_0x4d1e(_0x2fe5c2,_0x25bc7d){_0x2fe5c2=_0x2fe5c2-0x1dc;const _0x24d5d0=a14_0x24d5();let _0x4d1eb3=_0x24d5d0[_0x2fe5c2];return _0x4d1eb3;}export const bffDetail={'service':a14_0x4888c5(0x1ea),'command':'detail','description':a14_0x4888c5(0x1e4),'risk':a14_0x4888c5(0x1dc),'flags':[{...NAME_FLAG,'required':!![],'description':a14_0x4888c5(0x1e0)}],async 'execute'(_0x45c56c){const _0x117482=a14_0x4888c5,_0x5abf12=await getBffEndpointContract(_0x45c56c[_0x117482(0x1ef)],_0x45c56c[_0x117482(0x1e7)](_0x117482(0x1e1)));return{'ok':!![],'data':{'appCode':_0x5abf12[_0x117482(0x1ef)],'functionName':_0x5abf12[_0x117482(0x1df)],'description':_0x5abf12[_0x117482(0x1ec)]||_0x117482(0x1de),'version':_0x5abf12['version'],'gmtModified':_0x5abf12[_0x117482(0x1eb)]}};}};function a14_0x24d5(){const _0x537352=['appCode','read','88TdeXoI','(none)','functionName','BFF\x20function\x20name','name','2335456ProPTc','716832WAmpEh','Get\x20a\x20BFF\x20endpoint\x20contract\x20by\x20function\x20name','29240cskIGi','80670gxjvSL','str','516AhDRDK','13885ZAaYWb','bff','gmtModified','description','6551190GXIZDW','4008879IIWRBS'];a14_0x24d5=function(){return _0x537352;};return a14_0x24d5();}
1
+ function a14_0x4123(_0x4ac449,_0x327392){_0x4ac449=_0x4ac449-0xaf;const _0x308564=a14_0x3085();let _0x4123ac=_0x308564[_0x4ac449];return _0x4123ac;}const a14_0x347114=a14_0x4123;(function(_0x5e1b8d,_0x5ac5a8){const _0x9f1430=a14_0x4123,_0x55e924=_0x5e1b8d();while(!![]){try{const _0x2393bb=parseInt(_0x9f1430(0xb2))/0x1*(parseInt(_0x9f1430(0xbb))/0x2)+parseInt(_0x9f1430(0xb8))/0x3*(parseInt(_0x9f1430(0xc1))/0x4)+parseInt(_0x9f1430(0xb9))/0x5+parseInt(_0x9f1430(0xc0))/0x6+-parseInt(_0x9f1430(0xbc))/0x7+-parseInt(_0x9f1430(0xbe))/0x8+parseInt(_0x9f1430(0xb0))/0x9*(-parseInt(_0x9f1430(0xb6))/0xa);if(_0x2393bb===_0x5ac5a8)break;else _0x55e924['push'](_0x55e924['shift']());}catch(_0x163e1c){_0x55e924['push'](_0x55e924['shift']());}}}(a14_0x3085,0x58828));import{getBffEndpointContract}from'../../core/api-client.js';import{NAME_FLAG}from'../../commands/common/flags.js';function a14_0x3085(){const _0x181e93=['(none)','62TvRtsR','870233yOMdZY','read','2156408jRNCuA','description','517626ILrTdc','4hxVucJ','Get\x20a\x20BFF\x20endpoint\x20contract\x20by\x20function\x20name','63MMGBXL','detail','12503EveqjZ','BFF\x20function\x20name','appCode','version','65710YPGcoJ','bff','967236GbpooR','30635CwcoAp'];a14_0x3085=function(){return _0x181e93;};return a14_0x3085();}export const bffDetail={'service':a14_0x347114(0xb7),'command':a14_0x347114(0xb1),'description':a14_0x347114(0xaf),'risk':a14_0x347114(0xbd),'flags':[{...NAME_FLAG,'required':!![],'description':a14_0x347114(0xb3)}],async 'execute'(_0x27bd72){const _0x49c780=a14_0x347114,_0x57d34f=await getBffEndpointContract(_0x27bd72[_0x49c780(0xb4)],_0x27bd72['str']('name'));return{'ok':!![],'data':{'appCode':_0x57d34f[_0x49c780(0xb4)],'functionName':_0x57d34f['functionName'],'description':_0x57d34f[_0x49c780(0xbf)]||_0x49c780(0xba),'version':_0x57d34f[_0x49c780(0xb5)],'gmtModified':_0x57d34f['gmtModified']}};}};
@@ -1 +1 @@
1
- const a15_0x5a7abf=a15_0x5869;function a15_0x5869(_0x2c3237,_0x3e7958){_0x2c3237=_0x2c3237-0xa8;const _0x49f960=a15_0x49f9();let _0x586904=_0x49f960[_0x2c3237];return _0x586904;}(function(_0x30aee4,_0x6a2482){const _0x254102=a15_0x5869,_0x2d7ee1=_0x30aee4();while(!![]){try{const _0x47f2b0=parseInt(_0x254102(0xaf))/0x1+-parseInt(_0x254102(0xae))/0x2+parseInt(_0x254102(0xac))/0x3*(parseInt(_0x254102(0xb0))/0x4)+-parseInt(_0x254102(0xb5))/0x5+-parseInt(_0x254102(0xb1))/0x6+parseInt(_0x254102(0xa8))/0x7*(-parseInt(_0x254102(0xad))/0x8)+parseInt(_0x254102(0xb3))/0x9;if(_0x47f2b0===_0x6a2482)break;else _0x2d7ee1['push'](_0x2d7ee1['shift']());}catch(_0xe77a0b){_0x2d7ee1['push'](_0x2d7ee1['shift']());}}}(a15_0x49f9,0x29937));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':'bff','command':a15_0x5a7abf(0xb4),'description':a15_0x5a7abf(0xa9),'risk':'read','flags':[{...NAME_FLAG,'required':!![],'description':'BFF\x20function\x20name\x20to\x20execute'},PARAMS_FLAG],async 'execute'(_0x422c74){const _0x11555f=a15_0x5a7abf,_0x279a93=parseJsonParams(_0x422c74['str']('params')),_0x5b21d2=Date[_0x11555f(0xab)](),_0x45a0a1=await executeSdkBff(_0x422c74[_0x11555f(0xb2)](_0x11555f(0xaa)),_0x279a93),_0x2070f6=Date[_0x11555f(0xab)]()-_0x5b21d2;return{'ok':!![],'data':{'result':_0x45a0a1,'elapsed':_0x2070f6},'message':'BFF\x20executed\x20in\x20'+_0x2070f6+'ms'};}};function a15_0x49f9(){const _0x10c4f5=['40912stFApN','550638iYcGNY','292267hzMUPq','14596HuNFtp','419412rxeJMg','str','4114143hhpNPj','exec','1373545dYDsCL','49dCtQrt','Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','name','now','63lqTjhs'];a15_0x49f9=function(){return _0x10c4f5;};return a15_0x49f9();}
1
+ const a15_0x13906b=a15_0x332f;(function(_0x97ae5,_0x1dc6ef){const _0x2b03d8=a15_0x332f,_0x3ea8bc=_0x97ae5();while(!![]){try{const _0x50f069=-parseInt(_0x2b03d8(0xe7))/0x1+-parseInt(_0x2b03d8(0xf4))/0x2+parseInt(_0x2b03d8(0xec))/0x3*(parseInt(_0x2b03d8(0xea))/0x4)+-parseInt(_0x2b03d8(0xf2))/0x5+parseInt(_0x2b03d8(0xf6))/0x6*(parseInt(_0x2b03d8(0xf3))/0x7)+-parseInt(_0x2b03d8(0xf1))/0x8*(-parseInt(_0x2b03d8(0xef))/0x9)+-parseInt(_0x2b03d8(0xf0))/0xa*(parseInt(_0x2b03d8(0xe9))/0xb);if(_0x50f069===_0x1dc6ef)break;else _0x3ea8bc['push'](_0x3ea8bc['shift']());}catch(_0xf7a2c3){_0x3ea8bc['push'](_0x3ea8bc['shift']());}}}(a15_0x1f07,0xd6929));function a15_0x1f07(){const _0x444c11=['8gjEeOi','6067720navssK','5873VSQhYA','533696PPDpYj','name','5628NvViNc','str','679522NCsNcM','now','129239KjkeDK','168LqljTd','bff','81771mmotnw','BFF\x20executed\x20in\x20','params','15778998sNfFDD','550FfrpFk'];a15_0x1f07=function(){return _0x444c11;};return a15_0x1f07();}import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';function a15_0x332f(_0x48716d,_0x339cbe){_0x48716d=_0x48716d-0xe6;const _0x1f07f1=a15_0x1f07();let _0x332f16=_0x1f07f1[_0x48716d];return _0x332f16;}import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a15_0x13906b(0xeb),'command':'exec','description':'Execute\x20a\x20BFF\x20script\x20by\x20function\x20name','risk':'read','flags':[{...NAME_FLAG,'required':!![],'description':'BFF\x20function\x20name\x20to\x20execute'},PARAMS_FLAG],async 'execute'(_0x3f36e7){const _0x5cc9d9=a15_0x13906b,_0x308a06=parseJsonParams(_0x3f36e7[_0x5cc9d9(0xe6)](_0x5cc9d9(0xee))),_0xf06d2c=Date[_0x5cc9d9(0xe8)](),_0x23334f=await executeSdkBff(_0x3f36e7['str'](_0x5cc9d9(0xf5)),_0x308a06),_0x323c1e=Date[_0x5cc9d9(0xe8)]()-_0xf06d2c;return{'ok':!![],'data':{'result':_0x23334f,'elapsed':_0x323c1e},'message':_0x5cc9d9(0xed)+_0x323c1e+'ms'};}};
@@ -1 +1 @@
1
- function a16_0x15a4(){const _0x3a14cc=['50HoNXfK','32HnDsfk','1152252HjLciy','3150210CWKhyK','845978mUDIFO','12jlQFTj','1803645WwkUNh','1167708zRQigN','213665tObHER','226885IkgVnQ'];a16_0x15a4=function(){return _0x3a14cc;};return a16_0x15a4();}(function(_0x4da46f,_0x3935c1){const _0x120bdf=a16_0x5e30,_0x529cc2=_0x4da46f();while(!![]){try{const _0x59e5f1=parseInt(_0x120bdf(0x85))/0x1+parseInt(_0x120bdf(0x83))/0x2+-parseInt(_0x120bdf(0x7e))/0x3+-parseInt(_0x120bdf(0x81))/0x4*(parseInt(_0x120bdf(0x84))/0x5)+parseInt(_0x120bdf(0x7f))/0x6+-parseInt(_0x120bdf(0x80))/0x7*(-parseInt(_0x120bdf(0x87))/0x8)+parseInt(_0x120bdf(0x82))/0x9*(-parseInt(_0x120bdf(0x86))/0xa);if(_0x59e5f1===_0x3935c1)break;else _0x529cc2['push'](_0x529cc2['shift']());}catch(_0x1db22a){_0x529cc2['push'](_0x529cc2['shift']());}}}(a16_0x15a4,0x4a6f2));import{bffDetail}from'../../commands/bff/detail.js';function a16_0x5e30(_0x7e8260,_0x467b91){_0x7e8260=_0x7e8260-0x7e;const _0x15a487=a16_0x15a4();let _0x5e30ad=_0x15a487[_0x7e8260];return _0x5e30ad;}import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
1
+ function a16_0x6df2(_0x493b20,_0x2b617d){_0x493b20=_0x493b20-0xe9;const _0x2b26c9=a16_0x2b26();let _0x6df2b1=_0x2b26c9[_0x493b20];return _0x6df2b1;}(function(_0xa431f2,_0x3b1da3){const _0xf8fdf1=a16_0x6df2,_0x4858a0=_0xa431f2();while(!![]){try{const _0x53b870=parseInt(_0xf8fdf1(0xe9))/0x1+parseInt(_0xf8fdf1(0xef))/0x2+-parseInt(_0xf8fdf1(0xed))/0x3*(-parseInt(_0xf8fdf1(0xf0))/0x4)+-parseInt(_0xf8fdf1(0xec))/0x5*(parseInt(_0xf8fdf1(0xeb))/0x6)+parseInt(_0xf8fdf1(0xea))/0x7*(parseInt(_0xf8fdf1(0xf2))/0x8)+-parseInt(_0xf8fdf1(0xee))/0x9+-parseInt(_0xf8fdf1(0xf1))/0xa;if(_0x53b870===_0x3b1da3)break;else _0x4858a0['push'](_0x4858a0['shift']());}catch(_0x5b30bb){_0x4858a0['push'](_0x4858a0['shift']());}}}(a16_0x2b26,0x9ad48));function a16_0x2b26(){const _0x2551d4=['3tssnNh','2499939xaOkxf','1076010qxufvH','2547964wZddiS','3342660oBhSgZ','491992ZdIzqQ','405066DUXjQk','49twTxeY','54lbNvXn','424630VoDhwx'];a16_0x2b26=function(){return _0x2551d4;};return a16_0x2b26();}import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
@@ -1 +1 @@
1
- const a17_0x427a5e=a17_0x2ae2;(function(_0x44e836,_0xb78e6a){const _0x60f917=a17_0x2ae2,_0x5c79ad=_0x44e836();while(!![]){try{const _0x5e9cda=-parseInt(_0x60f917(0x163))/0x1+-parseInt(_0x60f917(0x159))/0x2+-parseInt(_0x60f917(0x14d))/0x3*(parseInt(_0x60f917(0x166))/0x4)+-parseInt(_0x60f917(0x15b))/0x5*(parseInt(_0x60f917(0x15d))/0x6)+parseInt(_0x60f917(0x15a))/0x7+-parseInt(_0x60f917(0x162))/0x8*(parseInt(_0x60f917(0x14a))/0x9)+parseInt(_0x60f917(0x149))/0xa;if(_0x5e9cda===_0xb78e6a)break;else _0x5c79ad['push'](_0x5c79ad['shift']());}catch(_0x473e9a){_0x5c79ad['push'](_0x5c79ad['shift']());}}}(a17_0x4130,0x68464));import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a17_0x427a5e(0x152),'command':a17_0x427a5e(0x14b),'description':a17_0x427a5e(0x14c),'risk':a17_0x427a5e(0x154),'confirmationDescription':'将通过\x20npx\x20下载并全局安装\x20Lovrabet\x20CLI\x20内置\x20Skill;这会修改当前用户的全局\x20Skill\x20目录。','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x283b9b){const _0x5b4eb3=a17_0x427a5e;logger[_0x5b4eb3(0x15c)](process[_0x5b4eb3(0x157)]()),logger['info'](_0x5b4eb3(0x151),'Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.');const {LOVRABET_SKILL_SOURCE:_0x348ea1,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x336013,runNpxSkillsAddGlobal:_0x54e0cd}=await import(_0x5b4eb3(0x165)),_0x3eac75=_0x283b9b[_0x5b4eb3(0x160)]?_0x5b4eb3(0x161):_0x5b4eb3(0x164);console['log'](_0x5b4eb3(0x14e)+_0x348ea1+'\x20-g\x20-y)...');const _0xf2901d=_0x54e0cd(process[_0x5b4eb3(0x157)](),_0x348ea1,{'stdio':_0x3eac75});if(_0xf2901d[_0x5b4eb3(0x148)])console[_0x5b4eb3(0x158)](_0x5b4eb3(0x155)+_0x336013+_0x5b4eb3(0x14f));else{if(_0xf2901d['ok'])console[_0x5b4eb3(0x158)](_0x5b4eb3(0x167));else throw CliErrors[_0x5b4eb3(0x150)](_0x5b4eb3(0x15e)+(_0xf2901d[_0x5b4eb3(0x15f)]||'unknown'),_0x5b4eb3(0x156)+_0x348ea1+_0x5b4eb3(0x153));}return{'ok':!![]};}}];function a17_0x2ae2(_0x2370cc,_0x386fb9){_0x2370cc=_0x2370cc-0x148;const _0x41301a=a17_0x4130();let _0x2ae237=_0x41301a[_0x2370cc];return _0x2ae237;}function a17_0x4130(){const _0x4cd863=['29333810exmHFM','90FodXjQ','install','安装\x20Lovrabet\x20运行态所需的\x20CLI\x20内置\x20Skill','171357EKDQFK','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','apiError','cli-skill-install','cli-skill','\x20-g\x20-y','write','Skipped\x20npx\x20(','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','cwd','log','818042OKgTVt','398594uHCwxr','5xfpVDq','setLogPath','4226388UiLOEq','npx\x20skills\x20add\x20failed:\x20','error','nonInteractive','pipe','211496ZFbTZV','385760GHmJCy','inherit','../../skills/npx-skills-add.js','56GXImrQ','CLI\x20Built-in\x20Skill\x20installed','skipped'];a17_0x4130=function(){return _0x4cd863;};return a17_0x4130();}
1
+ const a17_0x1c448c=a17_0x4540;(function(_0x47915a,_0x4d27a4){const _0x26ac31=a17_0x4540,_0x4778b4=_0x47915a();while(!![]){try{const _0x1c6ca6=parseInt(_0x26ac31(0xb6))/0x1*(parseInt(_0x26ac31(0xca))/0x2)+parseInt(_0x26ac31(0xc9))/0x3+-parseInt(_0x26ac31(0xb3))/0x4+parseInt(_0x26ac31(0xc8))/0x5+-parseInt(_0x26ac31(0xb4))/0x6*(parseInt(_0x26ac31(0xba))/0x7)+parseInt(_0x26ac31(0xc4))/0x8+parseInt(_0x26ac31(0xbe))/0x9*(-parseInt(_0x26ac31(0xc0))/0xa);if(_0x1c6ca6===_0x4d27a4)break;else _0x4778b4['push'](_0x4778b4['shift']());}catch(_0x2e09e0){_0x4778b4['push'](_0x4778b4['shift']());}}}(a17_0x4cea,0x6fea0));import{CliErrors}from'../../errors.js';function a17_0x4cea(){const _0x640661=['\x20-g\x20-y','77823raKqAs','安装\x20Lovrabet\x20运行态所需的\x20CLI\x20内置\x20Skill','200MKOeXS','info','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20npx\x20skills\x20add\x20','CLI\x20Built-in\x20Skill\x20installed','6546864uNduHb','apiError','cwd','error','2261965EBptpY','269850RzcbtX','2CQmuCk','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.','Skipped\x20npx\x20(','cli-skill','将通过\x20npx\x20下载并全局安装\x20Lovrabet\x20CLI\x20内置\x20Skill;这会修改当前用户的全局\x20Skill\x20目录。','log','=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','../../skills/npx-skills-add.js','cli-skill-install','nonInteractive','2711136PToyGf','5359908yQpeZw','npx\x20skills\x20add\x20failed:\x20','841741iJWsNY','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(npx\x20skills\x20add\x20','install','skipped','7anoXKw','write','setLogPath'];a17_0x4cea=function(){return _0x640661;};return a17_0x4cea();}function a17_0x4540(_0x334029,_0x17e80a){_0x334029=_0x334029-0xae;const _0x4cea9b=a17_0x4cea();let _0x454075=_0x4cea9b[_0x334029];return _0x454075;}import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a17_0x1c448c(0xcd),'command':a17_0x1c448c(0xb8),'description':a17_0x1c448c(0xbf),'risk':a17_0x1c448c(0xbb),'confirmationDescription':a17_0x1c448c(0xce),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x4ce6e2){const _0x5ee2b3=a17_0x1c448c;logger[_0x5ee2b3(0xbc)](process[_0x5ee2b3(0xc6)]()),logger[_0x5ee2b3(0xc1)](_0x5ee2b3(0xb1),_0x5ee2b3(0xcb));const {LOVRABET_SKILL_SOURCE:_0x1ea4ef,LOVRABET_SKIP_NPX_SKILLS_ENV:_0x2179d9,runNpxSkillsAddGlobal:_0xccc5d2}=await import(_0x5ee2b3(0xb0)),_0x1b83bd=_0x4ce6e2[_0x5ee2b3(0xb2)]?'pipe':'inherit';console[_0x5ee2b3(0xae)](_0x5ee2b3(0xb7)+_0x1ea4ef+'\x20-g\x20-y)...');const _0x35689a=_0xccc5d2(process[_0x5ee2b3(0xc6)](),_0x1ea4ef,{'stdio':_0x1b83bd});if(_0x35689a[_0x5ee2b3(0xb9)])console[_0x5ee2b3(0xae)](_0x5ee2b3(0xcc)+_0x2179d9+_0x5ee2b3(0xaf));else{if(_0x35689a['ok'])console[_0x5ee2b3(0xae)](_0x5ee2b3(0xc3));else throw CliErrors[_0x5ee2b3(0xc5)](_0x5ee2b3(0xb5)+(_0x35689a[_0x5ee2b3(0xc7)]||'unknown'),_0x5ee2b3(0xc2)+_0x1ea4ef+_0x5ee2b3(0xbd));}return{'ok':!![]};}}];
@@ -8,14 +8,13 @@
8
8
  * - `--project` → project if inside a project, else error
9
9
  * - No flag → depends on the command's implicit policy
10
10
  *
11
- * Rather than duplicating these rules in `app use`, `config set`,
12
- * etc., this module provides a single `resolveConfigScope()` function that
11
+ * Rather than duplicating these rules in `auth` and `config set`, this module
12
+ * provides a single `resolveConfigScope()` function that
13
13
  * encapsulates the logic. Commands call this function and get back the
14
14
  * correct scope without knowing the details.
15
15
  *
16
- * Design decision: `ImplicitScopePolicy` has three variants to cover the main
16
+ * Design decision: `ImplicitScopePolicy` has two variants to cover the main
17
17
  * use cases:
18
- * - `project-default`: most commands write to project (safer, repo-scoped)
19
18
  * - `global-default`: commands that should write globally by default (e.g. `auth`)
20
19
  * - `project-or-global-explicit`: project if in a project, else error (explicit --global required outside projects)
21
20
  *
@@ -33,16 +32,13 @@ export type ConfigScope = "global" | "project";
33
32
  /**
34
33
  * Policy for determining the implicit scope when neither `--global` nor `--project` is passed.
35
34
  *
36
- * Why three policies: different commands have different safety profiles.
37
- * `app use` writing to project by default is appropriate (project-scoped).
35
+ * Why two policies: different commands have different safety profiles.
38
36
  * `auth` writing globally by default is appropriate (system-wide credential).
39
37
  * `config set` outside a project should error rather than silently writing globally.
40
38
  */
41
39
  export type ImplicitScopePolicy =
42
40
  /** Write to global config by default. */
43
41
  "global-default"
44
- /** Write to project config by default, fall back to global if not in a project. */
45
- | "project-default"
46
42
  /** Write to project config if inside a project; error if outside (require --global). */
47
43
  | "project-or-global-explicit";
48
44
  export interface ResolveScopeOptions {
@@ -1 +1 @@
1
- (function(_0x5d4c14,_0x23c200){const _0x376a07=a18_0x5a39,_0x13804a=_0x5d4c14();while(!![]){try{const _0x1061b3=-parseInt(_0x376a07(0xa1))/0x1*(-parseInt(_0x376a07(0xb2))/0x2)+-parseInt(_0x376a07(0xb3))/0x3+parseInt(_0x376a07(0xa5))/0x4+parseInt(_0x376a07(0xab))/0x5*(parseInt(_0x376a07(0x9e))/0x6)+parseInt(_0x376a07(0xa4))/0x7+-parseInt(_0x376a07(0xae))/0x8*(parseInt(_0x376a07(0xa9))/0x9)+parseInt(_0x376a07(0xaf))/0xa;if(_0x1061b3===_0x23c200)break;else _0x13804a['push'](_0x13804a['shift']());}catch(_0x4bb031){_0x13804a['push'](_0x13804a['shift']());}}}(a18_0x889d,0x6d5c7));function a18_0x889d(){const _0x198e58=['Use\x20only\x20one\x20config\x20scope\x20flag.','project','261WXOchB','\x20found).','10IwrbAq','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','Not\x20inside\x20a\x20project\x20(no\x20','186664YUfRDw','5687010lVjfbK',',\x20or\x20run\x20`','\x20init`\x20first.','384TPdSTQ','1632075XepFmL','validation','newConfigFileName','1113528hjTyKT','global','\x20(global)','2086khKBjy','project-or-global-explicit','Add\x20--global\x20to\x20write\x20to\x20~/','415758btTBgg','1075368AnPKGe','inProject'];a18_0x889d=function(){return _0x198e58;};return a18_0x889d();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';function a18_0x5a39(_0x1c73ba,_0x1423c3){_0x1c73ba=_0x1c73ba-0x9d;const _0x889df6=a18_0x889d();let _0x5a3968=_0x889df6[_0x1c73ba];return _0x5a3968;}import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';export function resolveConfigScope(_0x3bd992){const _0x48e93d=a18_0x5a39,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x322401}=_0x3bd992;if(explicitGlobal&&explicitProject)throw CliErrors[_0x48e93d(0xb4)](_0x48e93d(0xac),_0x48e93d(0xa7));if(explicitGlobal)return _0x48e93d(0x9f);if(explicitProject)return _0x48e93d(0xa8);switch(_0x322401){case'global-default':return _0x48e93d(0x9f);case'project-default':return _0x3bd992[_0x48e93d(0xa6)]??isInProject()?_0x48e93d(0xa8):_0x48e93d(0x9f);case _0x48e93d(0xa2):if(!(_0x3bd992[_0x48e93d(0xa6)]??isInProject()))throw CliErrors[_0x48e93d(0xb4)](_0x48e93d(0xad)+PRODUCT_CONFIG[_0x48e93d(0x9d)]+_0x48e93d(0xaa),_0x48e93d(0xa3)+PRODUCT_CONFIG[_0x48e93d(0x9d)]+_0x48e93d(0xb0)+CLI_BIN_NAME+_0x48e93d(0xb1));return'project';}}export function toScopeFlags(_0x348ca3){const _0x4a38a0=a18_0x5a39;return{'global':_0x348ca3===_0x4a38a0(0x9f)};}export function formatScopeLabel(_0x3f4c5e){const _0x27cea1=a18_0x5a39;return _0x3f4c5e===_0x27cea1(0x9f)?_0x27cea1(0xa0):'';}
1
+ (function(_0xea4748,_0x369eca){const _0x5b2c7c=a18_0x4cbc,_0x21c40d=_0xea4748();while(!![]){try{const _0x37b54c=-parseInt(_0x5b2c7c(0x77))/0x1+-parseInt(_0x5b2c7c(0x6e))/0x2*(parseInt(_0x5b2c7c(0x6d))/0x3)+parseInt(_0x5b2c7c(0x6f))/0x4+parseInt(_0x5b2c7c(0x67))/0x5*(-parseInt(_0x5b2c7c(0x69))/0x6)+parseInt(_0x5b2c7c(0x76))/0x7+-parseInt(_0x5b2c7c(0x79))/0x8*(parseInt(_0x5b2c7c(0x65))/0x9)+parseInt(_0x5b2c7c(0x71))/0xa;if(_0x37b54c===_0x369eca)break;else _0x21c40d['push'](_0x21c40d['shift']());}catch(_0x103d0c){_0x21c40d['push'](_0x21c40d['shift']());}}}(a18_0x39cb,0xf1211));import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG}from'../../constant/product.js';function a18_0x4cbc(_0x4ce04b,_0x2dfd01){_0x4ce04b=_0x4ce04b-0x65;const _0x39cb1a=a18_0x39cb();let _0x4cbcca=_0x39cb1a[_0x4ce04b];return _0x4cbcca;}export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';function a18_0x39cb(){const _0x3b90c1=['39041300aeomcY','\x20found).','Use\x20only\x20one\x20config\x20scope\x20flag.','Add\x20--global\x20to\x20write\x20to\x20~/','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','914284bEKoFi','1017315NdoEfk','\x20(global)','44768khXtHZ','\x20init`\x20first.','2394fKqBBc','global','565535HDARHc','project','60xaCHyj','validation','Not\x20inside\x20a\x20project\x20(no\x20','global-default','1921116VtuqrC','2maeZEd','4920864BpDOQd','project-or-global-explicit'];a18_0x39cb=function(){return _0x3b90c1;};return a18_0x39cb();}export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isTopLevelConfigKey}from'../../config/schema.js';export function resolveConfigScope(_0xcbcd4c){const _0x226b09=a18_0x4cbc,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x34aa0e}=_0xcbcd4c;if(explicitGlobal&&explicitProject)throw CliErrors['validation'](_0x226b09(0x75),_0x226b09(0x73));if(explicitGlobal)return _0x226b09(0x66);if(explicitProject)return _0x226b09(0x68);switch(_0x34aa0e){case _0x226b09(0x6c):return _0x226b09(0x66);case _0x226b09(0x70):if(!(_0xcbcd4c['inProject']??isInProject()))throw CliErrors[_0x226b09(0x6a)](_0x226b09(0x6b)+PRODUCT_CONFIG['newConfigFileName']+_0x226b09(0x72),_0x226b09(0x74)+PRODUCT_CONFIG['newConfigFileName']+',\x20or\x20run\x20`'+CLI_BIN_NAME+_0x226b09(0x7a));return _0x226b09(0x68);}}export function toScopeFlags(_0x2a9650){const _0x52ef5b=a18_0x4cbc;return{'global':_0x2a9650===_0x52ef5b(0x66)};}export function formatScopeLabel(_0x5eeeda){const _0x358b4f=a18_0x4cbc;return _0x5eeeda===_0x358b4f(0x66)?_0x358b4f(0x78):'';}
@@ -1 +1 @@
1
- (function(_0x87604f,_0x1855f1){const _0x57e3b4=a19_0x5ec0,_0x6c4abb=_0x87604f();while(!![]){try{const _0xb538e=parseInt(_0x57e3b4(0x1d2))/0x1+parseInt(_0x57e3b4(0x1c6))/0x2*(parseInt(_0x57e3b4(0x1d8))/0x3)+parseInt(_0x57e3b4(0x1c7))/0x4+-parseInt(_0x57e3b4(0x1ce))/0x5+parseInt(_0x57e3b4(0x1d0))/0x6*(-parseInt(_0x57e3b4(0x1d3))/0x7)+-parseInt(_0x57e3b4(0x1d5))/0x8+-parseInt(_0x57e3b4(0x1ca))/0x9*(-parseInt(_0x57e3b4(0x1bf))/0xa);if(_0xb538e===_0x1855f1)break;else _0x6c4abb['push'](_0x6c4abb['shift']());}catch(_0x32e506){_0x6c4abb['push'](_0x6c4abb['shift']());}}}(a19_0x18d9,0xa1de6));function a19_0x5ec0(_0x2c0bba,_0x33fdc0){_0x2c0bba=_0x2c0bba-0x1bd;const _0x18d985=a19_0x18d9();let _0x5ec0a5=_0x18d985[_0x2c0bba];return _0x5ec0a5;}function a19_0x18d9(){const _0x43a71f=['26XbXApa','2013228diwhAP','\x20are\x20mutually\x20exclusive\x20for\x20`','\x20is\x20required\x20for\x20`','183114KHhJxg',':\x20expected\x20','Exactly\x20one\x20of\x20',',\x20got\x20\x22','1160360KXSlrm','join','18OFvbTm','test','444586aISOUU','1382178stcEDg','filter','1370112tNsYNf','Provide\x20one\x20of:\x20','At\x20least\x20one\x20of\x20','18483LJZNaw','Only\x20one\x20of\x20','\x20is\x20allowed,\x20found:\x20','310wGKzSl','Invalid\x20--','str','flag','length','validation','Flags\x20'];a19_0x18d9=function(){return _0x43a71f;};return a19_0x18d9();}import{CliErrors}from'../../errors.js';function isSet(_0x326049,_0x2c6dc6){const _0x62546d=a19_0x5ec0,_0x1c33dd=_0x326049[_0x62546d(0x1c2)](_0x2c6dc6);return _0x1c33dd!==undefined&&_0x1c33dd!==''&&_0x1c33dd!==![]&&_0x1c33dd!==0x0;}function fmtNames(_0x33216e){const _0x23c8ba=a19_0x5ec0;return _0x33216e['map'](_0x52429b=>'--'+_0x52429b)[_0x23c8ba(0x1cf)](',\x20');}export function requireOneOf(_0x367f64,_0x3e7e00,_0x4d3dfd){const _0x516f30=a19_0x5ec0,_0x49f364=_0x3e7e00['filter'](_0x19c80f=>isSet(_0x367f64,_0x19c80f));if(_0x49f364[_0x516f30(0x1c3)]!==0x1)throw CliErrors[_0x516f30(0x1c4)](_0x49f364[_0x516f30(0x1c3)]===0x0?_0x516f30(0x1cc)+fmtNames(_0x3e7e00)+_0x516f30(0x1c9)+_0x4d3dfd+'`.':_0x516f30(0x1bd)+fmtNames(_0x3e7e00)+_0x516f30(0x1be)+fmtNames(_0x49f364)+'.',_0x49f364['length']===0x0?_0x516f30(0x1d6)+fmtNames(_0x3e7e00):'Remove\x20all\x20but\x20one.');}export function requireAnyOf(_0x22eb9a,_0xb076f7,_0xe02fd){const _0x3f3651=a19_0x5ec0;if(!_0xb076f7['some'](_0x3093b3=>isSet(_0x22eb9a,_0x3093b3)))throw CliErrors['validation'](_0x3f3651(0x1d7)+fmtNames(_0xb076f7)+_0x3f3651(0x1c9)+_0xe02fd+'`.','Provide\x20one\x20of:\x20'+fmtNames(_0xb076f7));}export function mutuallyExclusive(_0x2db827,_0x1fb373,_0x2b18bb){const _0x4af26e=a19_0x5ec0,_0xbc9aa7=_0x1fb373[_0x4af26e(0x1d4)](_0x5ba8b4=>isSet(_0x2db827,_0x5ba8b4));if(_0xbc9aa7[_0x4af26e(0x1c3)]>0x1)throw CliErrors[_0x4af26e(0x1c4)](_0x4af26e(0x1c5)+fmtNames(_0xbc9aa7)+_0x4af26e(0x1c8)+_0x2b18bb+'`.','Use\x20only\x20one\x20of:\x20'+fmtNames(_0x1fb373));}export function validatePattern(_0x9abb8d,_0x3e0cec,_0x219358,_0xf5dc){const _0x5204d1=a19_0x5ec0,_0x3292b5=_0x9abb8d[_0x5204d1(0x1c1)](_0x3e0cec);if(_0x3292b5&&!_0x219358[_0x5204d1(0x1d1)](_0x3292b5))throw CliErrors['validation'](_0x5204d1(0x1c0)+_0x3e0cec+_0x5204d1(0x1cb)+_0xf5dc+_0x5204d1(0x1cd)+_0x3292b5+'\x22.');}
1
+ (function(_0x595a23,_0x2bee97){const _0x2b748d=a19_0x2ae9,_0x4c1965=_0x595a23();while(!![]){try{const _0x514098=-parseInt(_0x2b748d(0x1b0))/0x1+parseInt(_0x2b748d(0x1c3))/0x2+-parseInt(_0x2b748d(0x1bf))/0x3*(parseInt(_0x2b748d(0x1c1))/0x4)+-parseInt(_0x2b748d(0x1b4))/0x5*(parseInt(_0x2b748d(0x1b9))/0x6)+-parseInt(_0x2b748d(0x1ac))/0x7*(parseInt(_0x2b748d(0x1bd))/0x8)+parseInt(_0x2b748d(0x1b1))/0x9*(-parseInt(_0x2b748d(0x1be))/0xa)+parseInt(_0x2b748d(0x1ad))/0xb;if(_0x514098===_0x2bee97)break;else _0x4c1965['push'](_0x4c1965['shift']());}catch(_0x38b956){_0x4c1965['push'](_0x4c1965['shift']());}}}(a19_0x2099,0x49ec7));import{CliErrors}from'../../errors.js';function a19_0x2ae9(_0x4ecc77,_0x408eb8){_0x4ecc77=_0x4ecc77-0x1ab;const _0x209980=a19_0x2099();let _0x2ae92f=_0x209980[_0x4ecc77];return _0x2ae92f;}function isSet(_0x56f458,_0x2a11b3){const _0xe816e8=a19_0x2ae9,_0x47cfc5=_0x56f458[_0xe816e8(0x1b3)](_0x2a11b3);return _0x47cfc5!==undefined&&_0x47cfc5!==''&&_0x47cfc5!==![]&&_0x47cfc5!==0x0;}function a19_0x2099(){const _0x10e93a=['some','445571pcoUDm','17359551CCuxtc','Remove\x20all\x20but\x20one.','Use\x20only\x20one\x20of:\x20','345656mrQXtb','19863yqfyQf','map','flag','15KOIPKJ','\x20are\x20mutually\x20exclusive\x20for\x20`','Flags\x20','join','validation','521712WIllpD','Provide\x20one\x20of:\x20','length','Invalid\x20--','8JAqOCa','1530sJEgkT','627WdsCzf','str','5656EUCJqr','\x20is\x20allowed,\x20found:\x20','56024OsRMHn'];a19_0x2099=function(){return _0x10e93a;};return a19_0x2099();}function fmtNames(_0x165329){const _0x8f0a47=a19_0x2ae9;return _0x165329[_0x8f0a47(0x1b2)](_0x1a9491=>'--'+_0x1a9491)[_0x8f0a47(0x1b7)](',\x20');}export function requireOneOf(_0x2361a2,_0x4e8f56,_0x43f96d){const _0x4ee98d=a19_0x2ae9,_0x257a32=_0x4e8f56['filter'](_0x5ebd86=>isSet(_0x2361a2,_0x5ebd86));if(_0x257a32[_0x4ee98d(0x1bb)]!==0x1)throw CliErrors['validation'](_0x257a32[_0x4ee98d(0x1bb)]===0x0?'Exactly\x20one\x20of\x20'+fmtNames(_0x4e8f56)+'\x20is\x20required\x20for\x20`'+_0x43f96d+'`.':'Only\x20one\x20of\x20'+fmtNames(_0x4e8f56)+_0x4ee98d(0x1c2)+fmtNames(_0x257a32)+'.',_0x257a32[_0x4ee98d(0x1bb)]===0x0?'Provide\x20one\x20of:\x20'+fmtNames(_0x4e8f56):_0x4ee98d(0x1ae));}export function requireAnyOf(_0x70b34d,_0x4ebbaf,_0x3ac707){const _0x50e65e=a19_0x2ae9;if(!_0x4ebbaf[_0x50e65e(0x1ab)](_0x5548fd=>isSet(_0x70b34d,_0x5548fd)))throw CliErrors[_0x50e65e(0x1b8)]('At\x20least\x20one\x20of\x20'+fmtNames(_0x4ebbaf)+'\x20is\x20required\x20for\x20`'+_0x3ac707+'`.',_0x50e65e(0x1ba)+fmtNames(_0x4ebbaf));}export function mutuallyExclusive(_0x4440f8,_0x2d1ce5,_0x52fcd6){const _0x5bf749=a19_0x2ae9,_0x17449a=_0x2d1ce5['filter'](_0x139d77=>isSet(_0x4440f8,_0x139d77));if(_0x17449a[_0x5bf749(0x1bb)]>0x1)throw CliErrors[_0x5bf749(0x1b8)](_0x5bf749(0x1b6)+fmtNames(_0x17449a)+_0x5bf749(0x1b5)+_0x52fcd6+'`.',_0x5bf749(0x1af)+fmtNames(_0x2d1ce5));}export function validatePattern(_0x1a7e98,_0x141628,_0x4b4919,_0x5dcd68){const _0x444dd7=a19_0x2ae9,_0x19e596=_0x1a7e98[_0x444dd7(0x1c0)](_0x141628);if(_0x19e596&&!_0x4b4919['test'](_0x19e596))throw CliErrors[_0x444dd7(0x1b8)](_0x444dd7(0x1bc)+_0x141628+':\x20expected\x20'+_0x5dcd68+',\x20got\x20\x22'+_0x19e596+'\x22.');}
@@ -1 +1 @@
1
- const a20_0xad608d=a20_0x42c3;(function(_0x5edcae,_0x16d9f6){const _0x225d39=a20_0x42c3,_0x30e6cd=_0x5edcae();while(!![]){try{const _0x30f08b=parseInt(_0x225d39(0x1c9))/0x1+-parseInt(_0x225d39(0x1c5))/0x2+parseInt(_0x225d39(0x1d7))/0x3*(-parseInt(_0x225d39(0x1c4))/0x4)+-parseInt(_0x225d39(0x1d2))/0x5*(parseInt(_0x225d39(0x1d1))/0x6)+parseInt(_0x225d39(0x1d5))/0x7*(parseInt(_0x225d39(0x1d9))/0x8)+-parseInt(_0x225d39(0x1c3))/0x9*(-parseInt(_0x225d39(0x1d4))/0xa)+-parseInt(_0x225d39(0x1ce))/0xb*(-parseInt(_0x225d39(0x1dc))/0xc);if(_0x30f08b===_0x16d9f6)break;else _0x30e6cd['push'](_0x30e6cd['shift']());}catch(_0x5f3452){_0x30e6cd['push'](_0x30e6cd['shift']());}}}(a20_0x6d8f,0x212be));export const CODE_FLAG={'name':a20_0xad608d(0x1c2),'type':a20_0xad608d(0x1c8),'required':!![],'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)','pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a20_0xad608d(0x1ca)}};export const SQLCODE_FLAG={'name':a20_0xad608d(0x1c6),'type':a20_0xad608d(0x1c8),'required':!![],'description':a20_0xad608d(0x1d3),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a20_0xad608d(0x1d0)}};export const VERBOSE_FLAG={'name':a20_0xad608d(0x1cd),'type':a20_0xad608d(0x1cb),'description':a20_0xad608d(0x1d6)};function a20_0x42c3(_0x517d63,_0x45615c){_0x517d63=_0x517d63-0x1c2;const _0x6d8f18=a20_0x6d8f();let _0x42c36f=_0x6d8f18[_0x517d63];return _0x42c36f;}function a20_0x6d8f(){const _0x1efaaa=['Resource\x20name\x20for\x20lookup','395724zMKYaX','code','9nICNPX','56viiGbH','302000inXaMF','sqlcode','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','string','10662ngtwnc','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','boolean','number','verbose','77wYwVBR','params','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','6WrsTPu','1288030UkkISY','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','1810810KGplID','1708fRUdjw','Return\x20full\x20raw\x20response\x20object','5199cUUnIm','name','4792OaMKmD','Resource\x20ID'];a20_0x6d8f=function(){return _0x1efaaa;};return a20_0x6d8f();}export const PARAMS_FLAG={'name':a20_0xad608d(0x1cf),'type':a20_0xad608d(0x1c8),'description':a20_0xad608d(0x1c7)};export const NAME_FLAG={'name':a20_0xad608d(0x1d8),'type':'string','description':a20_0xad608d(0x1db)};export const ID_FLAG={'name':'id','type':a20_0xad608d(0x1cc),'required':!![],'description':a20_0xad608d(0x1da)};
1
+ const a20_0x3e5a62=a20_0x3ba5;function a20_0x3ba5(_0x3253b0,_0x3f2537){_0x3253b0=_0x3253b0-0x80;const _0x108af6=a20_0x108a();let _0x3ba544=_0x108af6[_0x3253b0];return _0x3ba544;}(function(_0x569179,_0x54b73a){const _0x450a25=a20_0x3ba5,_0x2e7536=_0x569179();while(!![]){try{const _0x5e7001=-parseInt(_0x450a25(0x8b))/0x1*(-parseInt(_0x450a25(0x93))/0x2)+parseInt(_0x450a25(0x90))/0x3*(-parseInt(_0x450a25(0x97))/0x4)+parseInt(_0x450a25(0x82))/0x5+-parseInt(_0x450a25(0x92))/0x6*(parseInt(_0x450a25(0x8c))/0x7)+parseInt(_0x450a25(0x89))/0x8*(-parseInt(_0x450a25(0x98))/0x9)+-parseInt(_0x450a25(0x99))/0xa*(-parseInt(_0x450a25(0x84))/0xb)+parseInt(_0x450a25(0x8f))/0xc;if(_0x5e7001===_0x54b73a)break;else _0x2e7536['push'](_0x2e7536['shift']());}catch(_0x3a2bbf){_0x2e7536['push'](_0x2e7536['shift']());}}}(a20_0x108a,0xdd5ac));export const CODE_FLAG={'name':'code','type':a20_0x3e5a62(0x80),'required':!![],'description':a20_0x3e5a62(0x86),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a20_0x3e5a62(0x83)}};export const SQLCODE_FLAG={'name':a20_0x3e5a62(0x8a),'type':a20_0x3e5a62(0x80),'required':!![],'description':a20_0x3e5a62(0x96),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a20_0x3e5a62(0x8d)}};export const VERBOSE_FLAG={'name':a20_0x3e5a62(0x88),'type':a20_0x3e5a62(0x85),'description':a20_0x3e5a62(0x94)};export const PARAMS_FLAG={'name':a20_0x3e5a62(0x95),'type':'string','description':a20_0x3e5a62(0x87)};export const NAME_FLAG={'name':a20_0x3e5a62(0x8e),'type':a20_0x3e5a62(0x80),'description':a20_0x3e5a62(0x91)};export const ID_FLAG={'name':'id','type':'number','required':!![],'description':a20_0x3e5a62(0x81)};function a20_0x108a(){const _0x12381c=['10189470wyOIYa','4zvHbyk','Return\x20full\x20raw\x20response\x20object','params','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','484UUqCuG','2980062shvbjx','10PAABth','string','Resource\x20ID','7358160qUlSzj','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','9112763XBBJAN','boolean','Dataset\x20code\x20(32-char\x20hex\x20UUID)','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','verbose','32MgCDAB','sqlcode','864088cuUzbf','7eeXdwS','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','name','8886252SvJfEV','20811DFjrhb','Resource\x20name\x20for\x20lookup'];a20_0x108a=function(){return _0x12381c;};return a20_0x108a();}
@@ -1 +1 @@
1
- (function(_0x167c64,_0x13d68e){const _0x8fb3d1=a21_0x2f96,_0x392cde=_0x167c64();while(!![]){try{const _0x5c34dd=-parseInt(_0x8fb3d1(0x105))/0x1+-parseInt(_0x8fb3d1(0x100))/0x2+-parseInt(_0x8fb3d1(0x108))/0x3+parseInt(_0x8fb3d1(0xfe))/0x4*(parseInt(_0x8fb3d1(0x101))/0x5)+parseInt(_0x8fb3d1(0xfd))/0x6*(parseInt(_0x8fb3d1(0xf7))/0x7)+parseInt(_0x8fb3d1(0x104))/0x8*(parseInt(_0x8fb3d1(0xf8))/0x9)+parseInt(_0x8fb3d1(0xfc))/0xa;if(_0x5c34dd===_0x13d68e)break;else _0x392cde['push'](_0x392cde['shift']());}catch(_0xad3696){_0x392cde['push'](_0x392cde['shift']());}}}(a21_0x19b9,0x7d3fb));import{existsSync,statSync}from'node:fs';function a21_0x19b9(){const _0x4f7a00=['916476cwNWgq','ceil','size','2208642GsbyNn','21CFoHoF','827145QBanyT','isFile','trim','toFixed','2922580FtlIIX','517812CKokCM','90224XaLwLw','File\x20is\x20not\x20a\x20regular\x20file:\x20','139456jTLlDU','190XIPDgn','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','validation','72yPqmwu'];a21_0x19b9=function(){return _0x4f7a00;};return a21_0x19b9();}import{CliErrors}from'../../errors.js';function a21_0x2f96(_0x58b5a5,_0x69cc35){_0x58b5a5=_0x58b5a5-0xf7;const _0x19b952=a21_0x19b9();let _0x2f968c=_0x19b952[_0x58b5a5];return _0x2f968c;}const BYTES_PER_MB=0x400*0x400;export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x8f60b3){const _0x2157ee=a21_0x2f96;if(_0x8f60b3>=BYTES_PER_MB){const _0x316f52=Math[_0x2157ee(0x106)](_0x8f60b3/BYTES_PER_MB*0x64)/0x64;return _0x316f52[_0x2157ee(0xfb)](0x2)+'\x20MB';}return _0x8f60b3+'\x20B';}export function requireRuntimeUploadFile(_0x5d2244,_0x532c1f){const _0x426daa=a21_0x2f96,_0x41e3ca=_0x5d2244[_0x426daa(0xfa)]();if(!_0x41e3ca)throw CliErrors[_0x426daa(0x103)](_0x532c1f+'\x20path\x20is\x20required.');if(!existsSync(_0x41e3ca))throw CliErrors[_0x426daa(0x103)]('File\x20not\x20found:\x20'+_0x41e3ca);const _0xd9ec9f=statSync(_0x41e3ca);if(!_0xd9ec9f[_0x426daa(0xf9)]())throw CliErrors[_0x426daa(0x103)](_0x426daa(0xff)+_0x41e3ca);if(_0xd9ec9f['size']>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0x426daa(0x103)](_0x426daa(0x102)+_0x41e3ca+'\x20('+formatBytes(_0xd9ec9f['size'])+')');return{'path':_0x41e3ca,'size':_0xd9ec9f[_0x426daa(0x107)]};}
1
+ (function(_0x5389fe,_0x244163){const _0x44f5be=a21_0x1e37,_0x5c51e1=_0x5389fe();while(!![]){try{const _0xa0ad=-parseInt(_0x44f5be(0x85))/0x1+parseInt(_0x44f5be(0x89))/0x2*(-parseInt(_0x44f5be(0x84))/0x3)+parseInt(_0x44f5be(0x87))/0x4*(-parseInt(_0x44f5be(0x8a))/0x5)+parseInt(_0x44f5be(0x97))/0x6*(-parseInt(_0x44f5be(0x8d))/0x7)+-parseInt(_0x44f5be(0x96))/0x8+parseInt(_0x44f5be(0x86))/0x9*(-parseInt(_0x44f5be(0x91))/0xa)+parseInt(_0x44f5be(0x8b))/0xb;if(_0xa0ad===_0x244163)break;else _0x5c51e1['push'](_0x5c51e1['shift']());}catch(_0x37ee77){_0x5c51e1['push'](_0x5c51e1['shift']());}}}(a21_0xe902,0x93b80));function a21_0x1e37(_0x390762,_0x33df36){_0x390762=_0x390762-0x84;const _0xe90296=a21_0xe902();let _0x1e3706=_0xe90296[_0x390762];return _0x1e3706;}import{existsSync,statSync}from'node:fs';function a21_0xe902(){const _0x1cc195=['validation','File\x20not\x20found:\x20','4922880UTxVmH','6107202QyiEUA','465bwaIAY','1073123NCvWpY','783432zUMcAP','77932OOrFtJ','toFixed','6276KpttET','300PvqymF','67082400zdJfIZ','\x20MB','7dyNTcS','File\x20is\x20not\x20a\x20regular\x20file:\x20','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','size','130QfHJKk','\x20path\x20is\x20required.','trim'];a21_0xe902=function(){return _0x1cc195;};return a21_0xe902();}import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x8bb132){const _0x3d21e7=a21_0x1e37;if(_0x8bb132>=BYTES_PER_MB){const _0x3a908b=Math['ceil'](_0x8bb132/BYTES_PER_MB*0x64)/0x64;return _0x3a908b[_0x3d21e7(0x88)](0x2)+_0x3d21e7(0x8c);}return _0x8bb132+'\x20B';}export function requireRuntimeUploadFile(_0x2d0e1f,_0x1c9a67){const _0x3c7602=a21_0x1e37,_0xfcf97e=_0x2d0e1f[_0x3c7602(0x93)]();if(!_0xfcf97e)throw CliErrors[_0x3c7602(0x94)](_0x1c9a67+_0x3c7602(0x92));if(!existsSync(_0xfcf97e))throw CliErrors[_0x3c7602(0x94)](_0x3c7602(0x95)+_0xfcf97e);const _0x57a2e0=statSync(_0xfcf97e);if(!_0x57a2e0['isFile']())throw CliErrors['validation'](_0x3c7602(0x8e)+_0xfcf97e);if(_0x57a2e0[_0x3c7602(0x90)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0x3c7602(0x94)](_0x3c7602(0x8f)+_0xfcf97e+'\x20('+formatBytes(_0x57a2e0[_0x3c7602(0x90)])+')');return{'path':_0xfcf97e,'size':_0x57a2e0['size']};}
@@ -1 +1 @@
1
- const a22_0x32fb08=a22_0x2d1b;(function(_0x24c685,_0x5be0bd){const _0x2197bd=a22_0x2d1b,_0x3b89f4=_0x24c685();while(!![]){try{const _0x5e5cac=parseInt(_0x2197bd(0x14a))/0x1*(parseInt(_0x2197bd(0x130))/0x2)+parseInt(_0x2197bd(0x162))/0x3+parseInt(_0x2197bd(0x15d))/0x4*(parseInt(_0x2197bd(0x173))/0x5)+parseInt(_0x2197bd(0x167))/0x6+parseInt(_0x2197bd(0x140))/0x7*(parseInt(_0x2197bd(0x168))/0x8)+-parseInt(_0x2197bd(0x13f))/0x9+-parseInt(_0x2197bd(0x142))/0xa;if(_0x5e5cac===_0x5be0bd)break;else _0x3b89f4['push'](_0x3b89f4['shift']());}catch(_0x3595c1){_0x3b89f4['push'](_0x3b89f4['shift']());}}}(a22_0x28a2,0x298a3));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':a22_0x32fb08(0x133),'type':a22_0x32fb08(0x132),'description':a22_0x32fb08(0x169),'default':![]};function parseAliasAppcodeSetKey(_0x149cb8){const _0x194bc8=a22_0x32fb08,_0x3e738f=_0x149cb8[_0x194bc8(0x164)]('.');if(_0x3e738f['length']!==0x3||_0x3e738f[0x0]!=='apps'||_0x3e738f[0x2]!==_0x194bc8(0x16e))return undefined;const _0x58063e=_0x3e738f[0x1]?.[_0x194bc8(0x16c)]();return _0x58063e?_0x58063e:undefined;}function parseAliasDeleteKey(_0x37e7b0){const _0x3dd78d=a22_0x32fb08,_0xabaab4=_0x37e7b0[_0x3dd78d(0x164)]('.');if(_0xabaab4[_0x3dd78d(0x158)]===0x2&&_0xabaab4[0x0]===_0x3dd78d(0x131)){const _0x3b6243=_0xabaab4[0x1]?.['trim']();return _0x3b6243?{'alias':_0x3b6243}:undefined;}if(_0xabaab4[_0x3dd78d(0x158)]===0x3&&_0xabaab4[0x0]===_0x3dd78d(0x131)&&_0xabaab4[0x2]===_0x3dd78d(0x16e)){const _0x1f0a6c=_0xabaab4[0x1]?.[_0x3dd78d(0x16c)]();return _0x1f0a6c?{'alias':_0x1f0a6c,'field':_0x3dd78d(0x16e)}:undefined;}return undefined;}function setLocalAppAlias(_0x4d7728,_0x42f81e,_0x5e98bf){const _0x554886=a22_0x32fb08,_0xbf7622=_0x4d7728[_0x554886(0x131)]&&typeof _0x4d7728[_0x554886(0x131)]===_0x554886(0x13b)&&!Array[_0x554886(0x150)](_0x4d7728[_0x554886(0x131)])?_0x4d7728[_0x554886(0x131)]:{},_0x71abf7=_0xbf7622[_0x42f81e]&&typeof _0xbf7622[_0x42f81e]===_0x554886(0x13b)&&!Array[_0x554886(0x150)](_0xbf7622[_0x42f81e])?_0xbf7622[_0x42f81e]:{};_0x71abf7[_0x554886(0x16e)]=_0x5e98bf,_0xbf7622[_0x42f81e]=_0x71abf7,_0x4d7728[_0x554886(0x131)]=_0xbf7622;}function a22_0x28a2(){const _0x3e04b0=['List\x20current\x20config','Missing\x20key\x20or\x20value.','1897902qmrhtG','8BmFrdb','Write\x20to\x20global\x20config','includes','raw','trim','`\x20=\x20\x22','appcode','set','stringify','(none)','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','40HFXSIr','\x20\x20global:\x20\x20','63834AEaUAA','apps','boolean','global','Deleted\x20`','keys','Usage:\x20','\x20\x20project:\x20','Key\x20not\x20found:\x20','删除\x20Lovrabet\x20CLI\x20配置项;后续命令将改用其他配置层或默认值。','key','object','\x20config\x20delete\x20<key>\x20[--global]','\x22\x20not\x20found\x20at\x20top\x20level.','field','1944054sgetiN','1996043IorgFM','get','6332070YkyTAf','Settable\x20keys:\x20','bool','validation','args','delete','Key\x20\x22','log','3SgFRVd','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a',';\x20apps.<alias>.appcode','pretty','format','Get\x20a\x20config\x20value','isArray','\x22\x20is\x20not\x20settable.','Top-level\x20key\x20\x22','\x20(global)','pageSize','修改\x20Lovrabet\x20CLI\x20配置;该变更可能影响后续命令使用的应用、环境或输出行为。','删除配置项的值','config','length','join','\x20config\x20get\x20<key>','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','../../context.js','85384eDdnvG','alias','Missing\x20key\x20argument.','project-or-global-explicit','write','454125uUAIRm','Invalid\x20value\x20for\x20\x22','split'];a22_0x28a2=function(){return _0x3e04b0;};return a22_0x28a2();}function a22_0x2d1b(_0x28c21d,_0x29c95e){_0x28c21d=_0x28c21d-0x12f;const _0x28a2da=a22_0x28a2();let _0x2d1bbc=_0x28a2da[_0x28c21d];return _0x2d1bbc;}function deleteLocalAppAlias(_0x5482eb,_0x3bb4c1){const _0x48ff79=a22_0x32fb08;if(!_0x5482eb[_0x48ff79(0x131)]||typeof _0x5482eb[_0x48ff79(0x131)]!==_0x48ff79(0x13b)||Array['isArray'](_0x5482eb[_0x48ff79(0x131)]))return![];const _0x2bdeb4=_0x5482eb[_0x48ff79(0x131)],_0x3e05cf=_0x2bdeb4[_0x3bb4c1[_0x48ff79(0x15e)]];if(!_0x3e05cf||typeof _0x3e05cf!==_0x48ff79(0x13b)||Array[_0x48ff79(0x150)](_0x3e05cf))return![];if(!_0x3bb4c1['field'])return delete _0x2bdeb4[_0x3bb4c1[_0x48ff79(0x15e)]],!![];if(!(_0x3bb4c1[_0x48ff79(0x13e)]in _0x3e05cf))return![];return delete _0x3e05cf[_0x3bb4c1[_0x48ff79(0x13e)]],Object[_0x48ff79(0x135)](_0x3e05cf)[_0x48ff79(0x158)]===0x0&&delete _0x2bdeb4[_0x3bb4c1[_0x48ff79(0x15e)]],!![];}const listDef={'service':a22_0x32fb08(0x157),'command':'list','description':a22_0x32fb08(0x165),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x15e6d6){const _0xe9b657=a22_0x32fb08,{buildConfigFromFlags:_0x24fb75}=await import(_0xe9b657(0x15c)),_0x164db5=_0x24fb75({}),_0x15dc21=getProjectConfigPath(),_0x163656=resolveWriteConfigPath(_0xe9b657(0x133));if(_0x15e6d6[_0xe9b657(0x14e)]===_0xe9b657(0x14d))return{'ok':!![],'message':_0xe9b657(0x14b)+(JSON[_0xe9b657(0x170)](_0x164db5['raw'],null,0x2)+'\x0a\x0a')+'Config\x20files:\x0a'+(_0xe9b657(0x137)+(_0x15dc21??_0xe9b657(0x171))+'\x0a')+(_0xe9b657(0x12f)+_0x163656)};return{'ok':!![],'data':{'effective':_0x164db5[_0xe9b657(0x16b)],'configFiles':{'project':_0x15dc21??null,'global':_0x163656}}};}},getDef={'service':a22_0x32fb08(0x157),'command':a22_0x32fb08(0x141),'description':a22_0x32fb08(0x14f),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':a22_0x32fb08(0x15b),'required':!![]}],'flags':[],async 'execute'(_0x1ec65e){const _0x1fe57e=a22_0x32fb08,_0x5b123d=_0x1ec65e[_0x1fe57e(0x146)][0x0];if(!_0x5b123d)throw CliErrors['validation'](_0x1fe57e(0x15f),_0x1fe57e(0x136)+CLI_BIN_NAME+_0x1fe57e(0x15a));const {buildConfigFromFlags:_0x49ebd7}=await import('../../context.js'),{raw:_0x368431}=_0x49ebd7({});if(_0x5b123d['includes']('.')){const _0x2561e6=_0x5b123d['split']('.');let _0x5c29a8=_0x368431;for(const _0x154985 of _0x2561e6){if(_0x5c29a8==null||typeof _0x5c29a8!==_0x1fe57e(0x13b))throw CliErrors[_0x1fe57e(0x145)](_0x1fe57e(0x138)+_0x5b123d);_0x5c29a8=_0x5c29a8[_0x154985];}if(_0x5c29a8===undefined)throw CliErrors[_0x1fe57e(0x145)](_0x1fe57e(0x138)+_0x5b123d);return console[_0x1fe57e(0x149)](typeof _0x5c29a8==='object'?JSON['stringify'](_0x5c29a8,null,0x2):String(_0x5c29a8)),{'ok':!![]};}const _0x5111b1=_0x368431[_0x5b123d];if(_0x5111b1===undefined)throw CliErrors['validation'](_0x1fe57e(0x138)+_0x5b123d);return console[_0x1fe57e(0x149)](typeof _0x5111b1==='object'?JSON['stringify'](_0x5111b1,null,0x2):String(_0x5111b1)),{'ok':!![]};}},setDef={'service':a22_0x32fb08(0x157),'command':a22_0x32fb08(0x16f),'description':'设置配置项的值','risk':a22_0x32fb08(0x161),'confirmationDescription':a22_0x32fb08(0x155),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x32fb08(0x13a),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','description':'Value\x20to\x20assign','required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x1fba8e){const _0x34af32=a22_0x32fb08,_0x2cf61b=_0x1fba8e['args'][0x0],_0x4877f1=_0x1fba8e[_0x34af32(0x146)][0x1];if(!_0x2cf61b||_0x4877f1===undefined)throw CliErrors[_0x34af32(0x145)](_0x34af32(0x166),_0x34af32(0x136)+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--global]');if(ENUM_KEYS[_0x2cf61b]&&!ENUM_KEYS[_0x2cf61b][_0x34af32(0x16a)](_0x4877f1))throw CliErrors[_0x34af32(0x145)](_0x34af32(0x163)+_0x2cf61b+'\x22.\x20Allowed:\x20'+ENUM_KEYS[_0x2cf61b][_0x34af32(0x159)](',\x20'));if(_0x2cf61b==='riskLevel')throw CliErrors[_0x34af32(0x145)](_0x34af32(0x172));if(_0x2cf61b===_0x34af32(0x154)){const _0x4bd730=Number(_0x4877f1);if(isNaN(_0x4bd730)||_0x4bd730<=0x0)throw CliErrors[_0x34af32(0x145)]('pageSize\x20must\x20be\x20a\x20positive\x20number');}const _0x20c7e9=resolveWriteScope({'explicitGlobal':_0x1fba8e[_0x34af32(0x144)](_0x34af32(0x133)),'policy':'project-or-global-explicit'}),_0x31a8c2=toScopeFlags(_0x20c7e9),_0x4be223=readScopedConfig(_0x31a8c2),_0x53e068=parseAliasAppcodeSetKey(_0x2cf61b);if(!_0x53e068&&!isTopLevelConfigKey(_0x2cf61b))throw CliErrors[_0x34af32(0x145)](_0x34af32(0x152)+_0x2cf61b+_0x34af32(0x151),_0x34af32(0x143)+getTopLevelConfigKeySummary()+_0x34af32(0x14c));return _0x53e068?setLocalAppAlias(_0x4be223,_0x53e068,_0x4877f1):_0x4be223[_0x2cf61b]=_0x2cf61b===_0x34af32(0x154)?Number(_0x4877f1):_0x4877f1,console[_0x34af32(0x149)]('Set\x20`'+_0x2cf61b+_0x34af32(0x16d)+_0x4877f1+'\x22'+(_0x20c7e9===_0x34af32(0x133)?'\x20(global)':'')),writeScopedConfig(_0x4be223,_0x31a8c2),{'ok':!![]};}},deleteDef={'service':a22_0x32fb08(0x157),'command':a22_0x32fb08(0x147),'description':a22_0x32fb08(0x156),'risk':a22_0x32fb08(0x161),'confirmationDescription':a22_0x32fb08(0x139),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x32fb08(0x13a),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x40d65e){const _0x2738e9=a22_0x32fb08,_0x12232b=_0x40d65e[_0x2738e9(0x146)][0x0];if(!_0x12232b)throw CliErrors[_0x2738e9(0x145)](_0x2738e9(0x15f),'Usage:\x20'+CLI_BIN_NAME+_0x2738e9(0x13c));const _0x5b0bff=resolveWriteScope({'explicitGlobal':_0x40d65e['bool'](_0x2738e9(0x133)),'policy':_0x2738e9(0x160)}),_0x31f34c=toScopeFlags(_0x5b0bff),_0x3e2a9a=readScopedConfig(_0x31f34c),_0x422259=parseAliasDeleteKey(_0x12232b);if(_0x422259){if(!deleteLocalAppAlias(_0x3e2a9a,_0x422259))throw CliErrors[_0x2738e9(0x145)]('Key\x20not\x20found:\x20'+_0x12232b);return console[_0x2738e9(0x149)]('Deleted\x20`'+_0x12232b+'`'+(_0x5b0bff===_0x2738e9(0x133)?'\x20(global)':'')),writeScopedConfig(_0x3e2a9a,_0x31f34c),{'ok':!![]};}if(_0x3e2a9a[_0x12232b]===undefined)throw CliErrors[_0x2738e9(0x145)](_0x2738e9(0x148)+_0x12232b+_0x2738e9(0x13d));return delete _0x3e2a9a[_0x12232b],console['log'](_0x2738e9(0x134)+_0x12232b+'`'+(_0x5b0bff===_0x2738e9(0x133)?_0x2738e9(0x153):'')),writeScopedConfig(_0x3e2a9a,_0x31f34c),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
1
+ function a22_0x1bdf(){const _0x3f103b=['apps','`\x20=\x20\x22','\x20\x20global:\x20\x20','Value\x20to\x20assign','Settable\x20keys:\x20','includes','49xPtEiA','删除配置项的值','4222555kfAbsB','137646CgGhXg','47106nTjWrO','project-or-global-explicit','Missing\x20key\x20argument.','alias','set','619780GXghtJ','\x22\x20is\x20not\x20settable.','format','Top-level\x20key\x20\x22','appcode','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','126136LlcXvE','\x20config\x20delete\x20<key>\x20[--global]','Invalid\x20value\x20for\x20\x22','get','write','Get\x20a\x20config\x20value','global','key','trim','length','pageSize\x20must\x20be\x20a\x20positive\x20number','List\x20current\x20config','\x20(global)','bool','(none)','Write\x20to\x20global\x20config','940oKVloW','pageSize','Set\x20`','9Aoilcu','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','read','validation','Config\x20files:\x0a','field','args','delete','pretty',';\x20apps.<alias>.appcode','Usage:\x20','修改\x20Lovrabet\x20CLI\x20配置;该变更可能影响后续命令使用的应用、环境或输出行为。','Key\x20\x22','Missing\x20key\x20or\x20value.','raw','config','Key\x20not\x20found:\x20','\x20\x20project:\x20','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','keys','Deleted\x20`','设置配置项的值','join','list','split','stringify','object','1737408FWrTYJ','../../context.js','\x20config\x20set\x20<key>\x20<value>\x20[--global]','isArray','432565UTgJRk','log'];a22_0x1bdf=function(){return _0x3f103b;};return a22_0x1bdf();}const a22_0x4ce6c2=a22_0x5526;(function(_0x445ca9,_0x1ad34b){const _0x365bc2=a22_0x5526,_0x4253b4=_0x445ca9();while(!![]){try{const _0x413e6b=-parseInt(_0x365bc2(0x10f))/0x1+-parseInt(_0x365bc2(0x120))/0x2*(parseInt(_0x365bc2(0xf0))/0x3)+-parseInt(_0x365bc2(0x126))/0x4+parseInt(_0x365bc2(0x119))/0x5+parseInt(_0x365bc2(0x11b))/0x6*(-parseInt(_0x365bc2(0x117))/0x7)+-parseInt(_0x365bc2(0x10b))/0x8+-parseInt(_0x365bc2(0x11a))/0x9*(-parseInt(_0x365bc2(0xed))/0xa);if(_0x413e6b===_0x1ad34b)break;else _0x4253b4['push'](_0x4253b4['shift']());}catch(_0x2c8c65){_0x4253b4['push'](_0x4253b4['shift']());}}}(a22_0x1bdf,0x96735));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';const GLOBAL_FLAG={'name':a22_0x4ce6c2(0x12c),'type':'boolean','description':a22_0x4ce6c2(0xec),'default':![]};function parseAliasAppcodeSetKey(_0x4d1224){const _0x43373d=a22_0x4ce6c2,_0x4ffcc1=_0x4d1224['split']('.');if(_0x4ffcc1[_0x43373d(0x12f)]!==0x3||_0x4ffcc1[0x0]!=='apps'||_0x4ffcc1[0x2]!=='appcode')return undefined;const _0x5ba57d=_0x4ffcc1[0x1]?.['trim']();return _0x5ba57d?_0x5ba57d:undefined;}function parseAliasDeleteKey(_0x2541c2){const _0x1a606b=a22_0x4ce6c2,_0x355956=_0x2541c2[_0x1a606b(0x108)]('.');if(_0x355956[_0x1a606b(0x12f)]===0x2&&_0x355956[0x0]===_0x1a606b(0x111)){const _0x16148f=_0x355956[0x1]?.[_0x1a606b(0x12e)]();return _0x16148f?{'alias':_0x16148f}:undefined;}if(_0x355956['length']===0x3&&_0x355956[0x0]===_0x1a606b(0x111)&&_0x355956[0x2]===_0x1a606b(0x124)){const _0x2e835d=_0x355956[0x1]?.[_0x1a606b(0x12e)]();return _0x2e835d?{'alias':_0x2e835d,'field':_0x1a606b(0x124)}:undefined;}return undefined;}function setLocalAppAlias(_0x3ae216,_0x58688e,_0x2fe327){const _0x4c7b84=a22_0x4ce6c2,_0x59b177=_0x3ae216[_0x4c7b84(0x111)]&&typeof _0x3ae216[_0x4c7b84(0x111)]==='object'&&!Array[_0x4c7b84(0x10e)](_0x3ae216[_0x4c7b84(0x111)])?_0x3ae216[_0x4c7b84(0x111)]:{},_0x3af1c8=_0x59b177[_0x58688e]&&typeof _0x59b177[_0x58688e]===_0x4c7b84(0x10a)&&!Array['isArray'](_0x59b177[_0x58688e])?_0x59b177[_0x58688e]:{};_0x3af1c8[_0x4c7b84(0x124)]=_0x2fe327,_0x59b177[_0x58688e]=_0x3af1c8,_0x3ae216[_0x4c7b84(0x111)]=_0x59b177;}function deleteLocalAppAlias(_0x5574f6,_0x21843e){const _0x490fad=a22_0x4ce6c2;if(!_0x5574f6[_0x490fad(0x111)]||typeof _0x5574f6[_0x490fad(0x111)]!==_0x490fad(0x10a)||Array['isArray'](_0x5574f6[_0x490fad(0x111)]))return![];const _0x4f67c9=_0x5574f6[_0x490fad(0x111)],_0x18c9c3=_0x4f67c9[_0x21843e[_0x490fad(0x11e)]];if(!_0x18c9c3||typeof _0x18c9c3!==_0x490fad(0x10a)||Array[_0x490fad(0x10e)](_0x18c9c3))return![];if(!_0x21843e[_0x490fad(0xf5)])return delete _0x4f67c9[_0x21843e[_0x490fad(0x11e)]],!![];if(!(_0x21843e[_0x490fad(0xf5)]in _0x18c9c3))return![];return delete _0x18c9c3[_0x21843e[_0x490fad(0xf5)]],Object[_0x490fad(0x103)](_0x18c9c3)['length']===0x0&&delete _0x4f67c9[_0x21843e[_0x490fad(0x11e)]],!![];}function a22_0x5526(_0x24644b,_0x29b2a2){_0x24644b=_0x24644b-0xe7;const _0x1bdf54=a22_0x1bdf();let _0x5526ef=_0x1bdf54[_0x24644b];return _0x5526ef;}const listDef={'service':'config','command':a22_0x4ce6c2(0x107),'description':a22_0x4ce6c2(0xe8),'risk':a22_0x4ce6c2(0xf2),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x33959e){const _0x3eeeb1=a22_0x4ce6c2,{buildConfigFromFlags:_0x34e2b2}=await import(_0x3eeeb1(0x10c)),_0x4d8977=_0x34e2b2({}),_0x305b71=getProjectConfigPath(),_0x1df65b=resolveWriteConfigPath(_0x3eeeb1(0x12c));if(_0x33959e[_0x3eeeb1(0x122)]===_0x3eeeb1(0xf8))return{'ok':!![],'message':_0x3eeeb1(0x102)+(JSON[_0x3eeeb1(0x109)](_0x4d8977[_0x3eeeb1(0xfe)],null,0x2)+'\x0a\x0a')+_0x3eeeb1(0xf4)+(_0x3eeeb1(0x101)+(_0x305b71??_0x3eeeb1(0xeb))+'\x0a')+(_0x3eeeb1(0x113)+_0x1df65b)};return{'ok':!![],'data':{'effective':_0x4d8977[_0x3eeeb1(0xfe)],'configFiles':{'project':_0x305b71??null,'global':_0x1df65b}}};}},getDef={'service':a22_0x4ce6c2(0xff),'command':a22_0x4ce6c2(0x129),'description':a22_0x4ce6c2(0x12b),'risk':a22_0x4ce6c2(0xf2),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x4ce6c2(0x12d),'description':a22_0x4ce6c2(0x125),'required':!![]}],'flags':[],async 'execute'(_0x162c9f){const _0x5152d8=a22_0x4ce6c2,_0x147f88=_0x162c9f[_0x5152d8(0xf6)][0x0];if(!_0x147f88)throw CliErrors[_0x5152d8(0xf3)]('Missing\x20key\x20argument.','Usage:\x20'+CLI_BIN_NAME+'\x20config\x20get\x20<key>');const {buildConfigFromFlags:_0x56e714}=await import(_0x5152d8(0x10c)),{raw:_0x28e1dc}=_0x56e714({});if(_0x147f88[_0x5152d8(0x116)]('.')){const _0x4a50d3=_0x147f88[_0x5152d8(0x108)]('.');let _0xd7d5da=_0x28e1dc;for(const _0x16212a of _0x4a50d3){if(_0xd7d5da==null||typeof _0xd7d5da!==_0x5152d8(0x10a))throw CliErrors['validation'](_0x5152d8(0x100)+_0x147f88);_0xd7d5da=_0xd7d5da[_0x16212a];}if(_0xd7d5da===undefined)throw CliErrors[_0x5152d8(0xf3)](_0x5152d8(0x100)+_0x147f88);return console[_0x5152d8(0x110)](typeof _0xd7d5da===_0x5152d8(0x10a)?JSON[_0x5152d8(0x109)](_0xd7d5da,null,0x2):String(_0xd7d5da)),{'ok':!![]};}const _0x3b7a66=_0x28e1dc[_0x147f88];if(_0x3b7a66===undefined)throw CliErrors[_0x5152d8(0xf3)](_0x5152d8(0x100)+_0x147f88);return console[_0x5152d8(0x110)](typeof _0x3b7a66===_0x5152d8(0x10a)?JSON[_0x5152d8(0x109)](_0x3b7a66,null,0x2):String(_0x3b7a66)),{'ok':!![]};}},setDef={'service':a22_0x4ce6c2(0xff),'command':a22_0x4ce6c2(0x11f),'description':a22_0x4ce6c2(0x105),'risk':a22_0x4ce6c2(0x12a),'confirmationDescription':a22_0x4ce6c2(0xfb),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x4ce6c2(0x12d),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','description':a22_0x4ce6c2(0x114),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x6d5853){const _0x4d4da0=a22_0x4ce6c2,_0x2d767a=_0x6d5853['args'][0x0],_0xcfbde7=_0x6d5853[_0x4d4da0(0xf6)][0x1];if(!_0x2d767a||_0xcfbde7===undefined)throw CliErrors[_0x4d4da0(0xf3)](_0x4d4da0(0xfd),_0x4d4da0(0xfa)+CLI_BIN_NAME+_0x4d4da0(0x10d));if(ENUM_KEYS[_0x2d767a]&&!ENUM_KEYS[_0x2d767a][_0x4d4da0(0x116)](_0xcfbde7))throw CliErrors['validation'](_0x4d4da0(0x128)+_0x2d767a+'\x22.\x20Allowed:\x20'+ENUM_KEYS[_0x2d767a][_0x4d4da0(0x106)](',\x20'));if(_0x2d767a==='riskLevel')throw CliErrors[_0x4d4da0(0xf3)](_0x4d4da0(0xf1));if(_0x2d767a==='pageSize'){const _0x2626f6=Number(_0xcfbde7);if(isNaN(_0x2626f6)||_0x2626f6<=0x0)throw CliErrors[_0x4d4da0(0xf3)](_0x4d4da0(0xe7));}const _0x199c2e=resolveWriteScope({'explicitGlobal':_0x6d5853['bool'](_0x4d4da0(0x12c)),'policy':'project-or-global-explicit'}),_0x540f35=toScopeFlags(_0x199c2e),_0x7e0a6e=readScopedConfig(_0x540f35),_0x20b245=parseAliasAppcodeSetKey(_0x2d767a);if(!_0x20b245&&!isTopLevelConfigKey(_0x2d767a))throw CliErrors[_0x4d4da0(0xf3)](_0x4d4da0(0x123)+_0x2d767a+_0x4d4da0(0x121),_0x4d4da0(0x115)+getTopLevelConfigKeySummary()+_0x4d4da0(0xf9));return _0x20b245?setLocalAppAlias(_0x7e0a6e,_0x20b245,_0xcfbde7):_0x7e0a6e[_0x2d767a]=_0x2d767a===_0x4d4da0(0xee)?Number(_0xcfbde7):_0xcfbde7,console[_0x4d4da0(0x110)](_0x4d4da0(0xef)+_0x2d767a+_0x4d4da0(0x112)+_0xcfbde7+'\x22'+(_0x199c2e===_0x4d4da0(0x12c)?'\x20(global)':'')),writeScopedConfig(_0x7e0a6e,_0x540f35),{'ok':!![]};}},deleteDef={'service':'config','command':a22_0x4ce6c2(0xf7),'description':a22_0x4ce6c2(0x118),'risk':a22_0x4ce6c2(0x12a),'confirmationDescription':'删除\x20Lovrabet\x20CLI\x20配置项;后续命令将改用其他配置层或默认值。','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a22_0x4ce6c2(0x12d),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_FLAG],async 'execute'(_0x335d6a){const _0x594d23=a22_0x4ce6c2,_0x445601=_0x335d6a[_0x594d23(0xf6)][0x0];if(!_0x445601)throw CliErrors[_0x594d23(0xf3)](_0x594d23(0x11d),_0x594d23(0xfa)+CLI_BIN_NAME+_0x594d23(0x127));const _0x461d20=resolveWriteScope({'explicitGlobal':_0x335d6a[_0x594d23(0xea)](_0x594d23(0x12c)),'policy':_0x594d23(0x11c)}),_0x2c4299=toScopeFlags(_0x461d20),_0x118ac7=readScopedConfig(_0x2c4299),_0x4cadc7=parseAliasDeleteKey(_0x445601);if(_0x4cadc7){if(!deleteLocalAppAlias(_0x118ac7,_0x4cadc7))throw CliErrors[_0x594d23(0xf3)](_0x594d23(0x100)+_0x445601);return console[_0x594d23(0x110)](_0x594d23(0x104)+_0x445601+'`'+(_0x461d20===_0x594d23(0x12c)?'\x20(global)':'')),writeScopedConfig(_0x118ac7,_0x2c4299),{'ok':!![]};}if(_0x118ac7[_0x445601]===undefined)throw CliErrors[_0x594d23(0xf3)](_0x594d23(0xfc)+_0x445601+'\x22\x20not\x20found\x20at\x20top\x20level.');return delete _0x118ac7[_0x445601],console[_0x594d23(0x110)](_0x594d23(0x104)+_0x445601+'`'+(_0x461d20===_0x594d23(0x12c)?_0x594d23(0xe9):'')),writeScopedConfig(_0x118ac7,_0x2c4299),{'ok':!![]};}};export const configDefinitions=[listDef,getDef,setDef,deleteDef];
@@ -1 +1 @@
1
- (function(_0x4ac475,_0x2816c8){var _0x3b8693=a23_0x1e94,_0x45c5e6=_0x4ac475();while(!![]){try{var _0x5877f9=-parseInt(_0x3b8693(0xa4))/0x1+parseInt(_0x3b8693(0xa1))/0x2+parseInt(_0x3b8693(0x9f))/0x3*(parseInt(_0x3b8693(0xa7))/0x4)+-parseInt(_0x3b8693(0xa3))/0x5+-parseInt(_0x3b8693(0xa8))/0x6*(-parseInt(_0x3b8693(0xa9))/0x7)+-parseInt(_0x3b8693(0xa5))/0x8*(-parseInt(_0x3b8693(0xa2))/0x9)+parseInt(_0x3b8693(0xa0))/0xa*(-parseInt(_0x3b8693(0xa6))/0xb);if(_0x5877f9===_0x2816c8)break;else _0x45c5e6['push'](_0x45c5e6['shift']());}catch(_0xed453d){_0x45c5e6['push'](_0x45c5e6['shift']());}}}(a23_0x29fc,0xae945));function a23_0x29fc(){var _0x3be936=['1389370vPTukj','3969URxipe','5522540rVeftu','104536UmtqAI','800AyEbnA','605eyZdlA','4LymgTn','6OJKogU','5392219aLfeLe','2007522pMKqfZ','46210QwTWOT'];a23_0x29fc=function(){return _0x3be936;};return a23_0x29fc();}import{CLI_BIN_NAME}from'../../constant/cli.js';function a23_0x1e94(_0x337730,_0x3e9abf){_0x337730=_0x337730-0x9f;var _0x29fc72=a23_0x29fc();var _0x1e94da=_0x29fc72[_0x337730];return _0x1e94da;}export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,toScopeFlags}from'../../commands/common/config-policy.js';
1
+ (function(_0x2b6178,_0x5f15c6){var _0x3c0217=a23_0x6ee2,_0x16df09=_0x2b6178();while(!![]){try{var _0x40dc37=parseInt(_0x3c0217(0xda))/0x1*(-parseInt(_0x3c0217(0xe0))/0x2)+parseInt(_0x3c0217(0xe5))/0x3*(parseInt(_0x3c0217(0xdd))/0x4)+parseInt(_0x3c0217(0xe2))/0x5*(parseInt(_0x3c0217(0xe6))/0x6)+parseInt(_0x3c0217(0xdf))/0x7+parseInt(_0x3c0217(0xdb))/0x8*(parseInt(_0x3c0217(0xdc))/0x9)+parseInt(_0x3c0217(0xe3))/0xa*(-parseInt(_0x3c0217(0xde))/0xb)+parseInt(_0x3c0217(0xe1))/0xc*(parseInt(_0x3c0217(0xe4))/0xd);if(_0x40dc37===_0x5f15c6)break;else _0x16df09['push'](_0x16df09['shift']());}catch(_0x18ff7d){_0x16df09['push'](_0x16df09['shift']());}}}(a23_0x5950,0x43e1e));function a23_0x5950(){var _0x62a8f6=['571277lvIbGF','2658fbPqjT','686676lMgVkw','1630565wTjTTr','60ZBLgLC','52MvkBdC','516wzkOww','6WaNjJD','201LSGzyx','21880fjoPcs','153dTwokF','1132pqCkcR','342122pNNwgp'];a23_0x5950=function(){return _0x62a8f6;};return a23_0x5950();}import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';function a23_0x6ee2(_0x217072,_0x203b87){_0x217072=_0x217072-0xda;var _0x5950a3=a23_0x5950();var _0x6ee2e7=_0x5950a3[_0x217072];return _0x6ee2e7;}export{resolveConfigScope as resolveWriteScope,TOP_LEVEL_CONFIG_KEYS as TOP_LEVEL_KEYS,CONFIG_ENUM_VALUES as ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,toScopeFlags}from'../../commands/common/config-policy.js';
@@ -1 +1 @@
1
- const a24_0x247f05=a24_0x476c;(function(_0xfbdcac,_0xc4aedb){const _0x428f87=a24_0x476c,_0x44584c=_0xfbdcac();while(!![]){try{const _0xea01c4=-parseInt(_0x428f87(0x16f))/0x1+parseInt(_0x428f87(0x153))/0x2+-parseInt(_0x428f87(0x132))/0x3*(parseInt(_0x428f87(0x12c))/0x4)+-parseInt(_0x428f87(0x11c))/0x5*(-parseInt(_0x428f87(0x138))/0x6)+-parseInt(_0x428f87(0x133))/0x7+parseInt(_0x428f87(0x120))/0x8*(parseInt(_0x428f87(0x131))/0x9)+parseInt(_0x428f87(0x13a))/0xa*(parseInt(_0x428f87(0x148))/0xb);if(_0xea01c4===_0xc4aedb)break;else _0x44584c['push'](_0x44584c['shift']());}catch(_0x17426f){_0x44584c['push'](_0x44584c['shift']());}}}(a24_0x3031,0xea79d));import{executeData}from'../../core/sdk-client.js';function a24_0x3031(){const _0x608a7f=['删除当前应用数据集中的业务记录;该操作可能无法恢复。','params','Preview:\x20data\x20','batch','code','operation','str','\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','修改当前应用数据集中的已有业务记录;确认后新值将立即保存。','paramsHint','\x20on\x20dataset\x20','\x20\x20\x20\x20Do\x20NOT\x20use\x20--where,\x20--select,\x20--order-by,\x20--current-page,\x20--page,\x20or\x20--page-size\x20as\x20CLI\x20flags.','filter','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20AGGREGATE\x20TYPES','\x20\x20PAGINATION','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\x20\x20\x20\x20Page\x20numbers\x20start\x20at\x201.\x20To\x20fetch\x20the\x20next\x20page,\x20keep\x20where/select/orderBy/pageSize\x20unchanged','\x20\x20PARAMS\x20STRUCTURE','删除数据记录(非交互模式需传入\x20--yes)','468773UGGHUh','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','\x20\x20LOGICAL\x20COMBINATORS','update','\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','delete','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','\x20completed\x20in\x20','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','map','join','5JvaMGK','/api/{appCode}/','data\x20','\x20\x20\x20\x20Verify\x20the\x20response\x20paging.currentPage/pageSize\x20and\x20that\x20tableData\x20satisfies\x20where\x20before\x20drawing\x20conclusions.','2002776jTXzax','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','通过一次请求在数据集中批量创建多条记录','\x20\x20\x20\x20and\x20increment\x20only\x20currentPage.\x20Use\x20a\x20stable\x20unique\x20orderBy\x20field\x20to\x20avoid\x20duplicates\x20or\x20gaps.','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Post-aggregation\x20filters,\x20e.g.\x20[{\x22columnName\x22:\x22total\x22,\x22condition\x22:{\x22$gt\x22:1000}}]','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','\x20\x20\x20\x20Filtering\x20and\x20pagination\x20are\x20controlled\x20only\x20via\x20one\x20JSON\x20object\x20in\x20--params.','batchCreate','\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}','data','2529668UjyoiJ','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20WHERE\x20OPERATORS','POST','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','18RjZerk','6gPSIaD','3029082NOwXtI','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','confirmationDescription','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','getOne','8064942tBnvuN','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','3986170AHbFLG','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','aggregate','create','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','risk','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','command','\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}','\x20\x20EXAMPLES','向当前应用的数据集批量写入多条新业务记录;确认后将立即保存。','read','paramsRequired','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','33dVWeEA','更新已有数据记录','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','description','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','length','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}','\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','172088zdBJUu','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','write','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','body'];a24_0x3031=function(){return _0x608a7f;};return a24_0x3031();}import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a24_0x247f05(0x166),'operation':a24_0x247f05(0x166),'risk':'read','paramsRequired':![],'description':'Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsHint':a24_0x247f05(0x14b)+a24_0x247f05(0x167),'helpExtra':[a24_0x247f05(0x12e),a24_0x247f05(0x142),a24_0x247f05(0x150),'\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}',a24_0x247f05(0x127),a24_0x247f05(0x158),a24_0x247f05(0x113),'\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}',a24_0x247f05(0x151),a24_0x247f05(0x116),a24_0x247f05(0x161),'',a24_0x247f05(0x111),a24_0x247f05(0x12a),a24_0x247f05(0x152),'','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)',a24_0x247f05(0x16b),a24_0x247f05(0x140),a24_0x247f05(0x134),a24_0x247f05(0x147),a24_0x247f05(0x139),'',a24_0x247f05(0x169),a24_0x247f05(0x128),a24_0x247f05(0x165),a24_0x247f05(0x16c),a24_0x247f05(0x125),'\x20\x20\x20\x20Page\x201:\x20--params\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22orderBy\x22:[{\x22id\x22:\x22asc\x22}],\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20Page\x202:\x20--params\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22orderBy\x22:[{\x22id\x22:\x22asc\x22}],\x22currentPage\x22:2,\x22pageSize\x22:20}\x27',a24_0x247f05(0x11f)][a24_0x247f05(0x11b)]('\x0a')},{'command':'getOne','operation':a24_0x247f05(0x137),'risk':a24_0x247f05(0x145),'paramsRequired':!![],'description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsHint':a24_0x247f05(0x121)},{'command':a24_0x247f05(0x13d),'operation':a24_0x247f05(0x13d),'risk':'write','paramsRequired':!![],'description':'在数据集中创建一条记录','confirmationDescription':'向当前应用的数据集写入一条新业务记录;确认后将立即保存。','paramsHint':a24_0x247f05(0x123)},{'command':a24_0x247f05(0x129),'operation':'batchCreate','risk':a24_0x247f05(0x156),'paramsRequired':!![],'description':a24_0x247f05(0x124),'confirmationDescription':a24_0x247f05(0x144),'paramsHint':'JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27'},{'command':a24_0x247f05(0x112),'operation':a24_0x247f05(0x112),'risk':a24_0x247f05(0x156),'paramsRequired':!![],'description':a24_0x247f05(0x149),'confirmationDescription':a24_0x247f05(0x162),'paramsHint':a24_0x247f05(0x16a)+a24_0x247f05(0x13e)},{'command':a24_0x247f05(0x115),'operation':'delete','risk':'high-risk-write','paramsRequired':!![],'description':a24_0x247f05(0x16e),'confirmationDescription':a24_0x247f05(0x15a),'paramsHint':a24_0x247f05(0x121)},{'command':a24_0x247f05(0x13c),'operation':a24_0x247f05(0x13c),'risk':a24_0x247f05(0x145),'paramsRequired':![],'description':a24_0x247f05(0x157),'paramsHint':a24_0x247f05(0x14f)+a24_0x247f05(0x12d),'helpExtra':[a24_0x247f05(0x168),a24_0x247f05(0x119),a24_0x247f05(0x14a),a24_0x247f05(0x154),'\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}',a24_0x247f05(0x130),a24_0x247f05(0x117),a24_0x247f05(0x114),'',a24_0x247f05(0x16d),'\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]',a24_0x247f05(0x122),a24_0x247f05(0x155),'\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]',a24_0x247f05(0x126),a24_0x247f05(0x14d),'',a24_0x247f05(0x143),a24_0x247f05(0x170),a24_0x247f05(0x136),'','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter',a24_0x247f05(0x171),'',a24_0x247f05(0x13b)][a24_0x247f05(0x11b)]('\x0a')}];function a24_0x476c(_0x5ee9c9,_0x51ba3b){_0x5ee9c9=_0x5ee9c9-0x111;const _0x3031d2=a24_0x3031();let _0x476c7f=_0x3031d2[_0x5ee9c9];return _0x476c7f;}function makeDataCommand(_0x18b1fb){const _0x5daa9e=a24_0x247f05,_0x3e3c59='data\x20'+_0x18b1fb[_0x5daa9e(0x141)],_0x5ef8e3={'service':_0x5daa9e(0x12b),'command':_0x18b1fb[_0x5daa9e(0x141)],'description':_0x18b1fb['description'],'risk':_0x18b1fb[_0x5daa9e(0x13f)],..._0x18b1fb[_0x5daa9e(0x135)]?{'confirmationDescription':_0x18b1fb['confirmationDescription']}:{},'helpExtra':_0x18b1fb['helpExtra'],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x18b1fb[_0x5daa9e(0x163)]}],'validate':async _0x129926=>{const _0x9d9351=_0x5daa9e;_0x18b1fb[_0x9d9351(0x146)]&&requireAnyOf(_0x129926,[_0x9d9351(0x15b)],_0x3e3c59),_0x18b1fb[_0x9d9351(0x15f)]===_0x9d9351(0x129)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x129926['str'](_0x9d9351(0x15b)))),_0x18b1fb[_0x9d9351(0x15f)]===_0x9d9351(0x112)&&parseUpdateIdsFromParams(parseJsonParams(_0x129926[_0x9d9351(0x160)](_0x9d9351(0x15b)))??{});},async 'execute'(_0x257034){const _0x1a0cdc=_0x5daa9e,_0x524ecd=_0x257034[_0x1a0cdc(0x160)]('code'),_0x129d37=_0x18b1fb[_0x1a0cdc(0x15f)]===_0x1a0cdc(0x129)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x257034['str'](_0x1a0cdc(0x15b)))):parseJsonParams(_0x257034[_0x1a0cdc(0x160)](_0x1a0cdc(0x15b)))??{},_0x36a73c=_0x18b1fb[_0x1a0cdc(0x15f)]===_0x1a0cdc(0x112)?parseUpdateIdsFromParams(_0x129d37):undefined,_0x1c1f4b=_0x36a73c?normalizeUpdateParamsForRuntime(_0x129d37,_0x36a73c):_0x129d37,_0x34832a=Date['now'](),_0x1bbbba=await executeData(_0x524ecd,_0x18b1fb[_0x1a0cdc(0x15f)],_0x1c1f4b),_0x4dd066=Date['now']()-_0x34832a,_0x50cdd6=_0x36a73c&&_0x36a73c[_0x1a0cdc(0x14e)]>0x1?buildBatchUpdateResult(_0x36a73c,_0x1bbbba):_0x1bbbba;return{'ok':!![],'data':{'result':_0x50cdd6,'elapsed':_0x4dd066},'message':_0x1a0cdc(0x11e)+_0x18b1fb[_0x1a0cdc(0x141)]+_0x1a0cdc(0x118)+_0x4dd066+'ms'};}};return _0x18b1fb[_0x5daa9e(0x13f)]!==_0x5daa9e(0x145)&&(_0x5ef8e3['dryRun']=async _0x56772a=>{const _0x5311a2=_0x5daa9e,_0x6e36d1=_0x56772a['str'](_0x5311a2(0x15e)),_0x3f9061=_0x18b1fb['operation']===_0x5311a2(0x129)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x56772a['str']('params'))):parseJsonParams(_0x56772a[_0x5311a2(0x160)](_0x5311a2(0x15b)))??{};let _0x2e8127=_0x3f9061;if(_0x18b1fb[_0x5311a2(0x15f)]==='update'){const _0x5ce27d=parseUpdateIdsFromParams(_0x3f9061);_0x2e8127=normalizeUpdateParamsForRuntime(_0x3f9061,_0x5ce27d);}return dryRun(_0x5311a2(0x12f),_0x5311a2(0x11d)+_0x6e36d1+'/'+_0x18b1fb[_0x5311a2(0x15f)])[_0x5311a2(0x159)](_0x2e8127)[_0x5311a2(0x14c)](_0x5311a2(0x15c)+_0x18b1fb[_0x5311a2(0x141)]+_0x5311a2(0x164)+_0x6e36d1)['build']();}),_0x5ef8e3;}export const dataDefinitions=specs[a24_0x247f05(0x11a)](makeDataCommand);function buildBatchUpdateResult(_0x418184,_0x6cd531){const _0x19e37a=a24_0x247f05;return{'operation':'update','mode':_0x19e37a(0x15d),'ids':_0x418184,'total':_0x418184[_0x19e37a(0x14e)],'result':_0x6cd531};}
1
+ const a24_0x226751=a24_0x1614;function a24_0x1614(_0x4a6710,_0x560d40){_0x4a6710=_0x4a6710-0x1ca;const _0x5d9049=a24_0x5d90();let _0x1614d7=_0x5d9049[_0x4a6710];return _0x1614d7;}(function(_0xdeb741,_0x5bf6e0){const _0x4e4326=a24_0x1614,_0xc8c7c4=_0xdeb741();while(!![]){try{const _0xb58f19=-parseInt(_0x4e4326(0x1ee))/0x1*(parseInt(_0x4e4326(0x1fd))/0x2)+-parseInt(_0x4e4326(0x1d9))/0x3*(parseInt(_0x4e4326(0x1df))/0x4)+-parseInt(_0x4e4326(0x1d8))/0x5*(parseInt(_0x4e4326(0x217))/0x6)+-parseInt(_0x4e4326(0x1ec))/0x7*(-parseInt(_0x4e4326(0x231))/0x8)+-parseInt(_0x4e4326(0x1db))/0x9*(-parseInt(_0x4e4326(0x221))/0xa)+parseInt(_0x4e4326(0x1e0))/0xb*(parseInt(_0x4e4326(0x21d))/0xc)+-parseInt(_0x4e4326(0x1f3))/0xd*(parseInt(_0x4e4326(0x223))/0xe);if(_0xb58f19===_0x5bf6e0)break;else _0xc8c7c4['push'](_0xc8c7c4['shift']());}catch(_0x2bad6b){_0xc8c7c4['push'](_0xc8c7c4['shift']());}}}(a24_0x5d90,0x6b5e7));import{executeData}from'../../core/sdk-client.js';function a24_0x5d90(){const _0x197452=['Filter\x20dataset\x20records\x20with\x20query\x20conditions','read','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','create','\x20\x20\x20\x20aggregate[].alias\x20defines\x20the\x20output\x20field\x20name\x20only','confirmationDescription','description','command','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','90WLliVK','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','body','\x20\x20\x20\x20select/where/having/groupBy\x20must\x20use\x20real\x20dataset\x20fields','\x20\x20\x20\x20METADATA\x20datasets\x20do\x20not\x20support\x20aggregate\x20or\x20Custom\x20SQL','342780IYLaIh','str','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','\x20\x20\x20\x20JOIN\x20and\x20cross-table\x20aggregation\x20require\x20an\x20existing\x20trusted\x20Custom\x20SQL','8682710ivqpti','\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}','1807274iMcndn','\x20\x20\x20\x20Page\x202:\x20--params\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22orderBy\x22:[{\x22id\x22:\x22asc\x22}],\x22currentPage\x22:2,\x22pageSize\x22:20}\x27','update','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','\x20\x20\x20\x20aggregate\x20supports\x20a\x20single\x20DB_TABLE\x20dataset\x20only','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}','\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','\x20\x20\x20\x20orderBy\x20may\x20reference\x20aggregate\x20output\x20aliases','\x20\x20LOGICAL\x20COMBINATORS','code','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','write','3145032hRRvyk','更新已有数据记录','\x20\x20\x20\x20Page\x201:\x20--params\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22orderBy\x22:[{\x22id\x22:\x22asc\x22}],\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','batch','operation','POST','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20Page\x20numbers\x20start\x20at\x201.\x20To\x20fetch\x20the\x20next\x20page,\x20keep\x20where/select/orderBy/pageSize\x20unchanged','\x20\x20AGGREGATE\x20TYPES','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','risk','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','通过一次请求在数据集中批量创建多条记录','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}','270170IUXmvj','841887bVHOdg','build','9VdcURK','\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}','data\x20','Preview:\x20data\x20','8OjVygT','286FAUcXA','paramsRequired','\x20\x20\x20\x20Filtering\x20and\x20pagination\x20are\x20controlled\x20only\x20via\x20one\x20JSON\x20object\x20in\x20--params.','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','删除当前应用数据集中的业务记录;该操作可能无法恢复。','\x20\x20\x20\x20Verify\x20the\x20response\x20paging.currentPage/pageSize\x20and\x20that\x20tableData\x20satisfies\x20where\x20before\x20drawing\x20conclusions.','\x20\x20PARAMS\x20STRUCTURE','dryRun','join','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','paramsHint','\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','7eUCecF','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','1Emhmce','\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','\x20\x20\x20\x20choose\x20the\x20capability\x20before\x20execution;\x20never\x20fall\x20back\x20at\x20runtime','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','13IcdLIM','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','now','data','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','删除数据记录(非交互模式需传入\x20--yes)','/api/{appCode}/','\x20completed\x20in\x20','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','126896RLrcDR','\x20\x20WHERE\x20OPERATORS','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','getOne','aggregate','delete','length','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','params','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','\x20on\x20dataset\x20','\x20\x20\x20\x20and\x20increment\x20only\x20currentPage.\x20Use\x20a\x20stable\x20unique\x20orderBy\x20field\x20to\x20avoid\x20duplicates\x20or\x20gaps.','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order;\x20may\x20reference\x20aggregate\x20output\x20aliases,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','filter','\x20\x20AGGREGATE\x20ALIAS\x20BOUNDARY','batchCreate','\x20\x20\x20\x20Do\x20NOT\x20use\x20--where,\x20--select,\x20--order-by,\x20--current-page,\x20--page,\x20or\x20--page-size\x20as\x20CLI\x20flags.'];a24_0x5d90=function(){return _0x197452;};return a24_0x5d90();}import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a24_0x226751(0x20a),'operation':a24_0x226751(0x20a),'risk':'read','paramsRequired':![],'description':a24_0x226751(0x20e),'paramsHint':'JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20'+a24_0x226751(0x1fc),'helpExtra':[a24_0x226751(0x1fe),a24_0x226751(0x22a),a24_0x226751(0x222),'\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}',a24_0x226751(0x1f2),a24_0x226751(0x1eb),'\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}',a24_0x226751(0x1ef),'\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}','\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','',a24_0x226751(0x22d),a24_0x226751(0x1dc),a24_0x226751(0x219),'',a24_0x226751(0x1d0),a24_0x226751(0x1ff),a24_0x226751(0x206),'\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]',a24_0x226751(0x1cc),a24_0x226751(0x227),'','\x20\x20PAGINATION',a24_0x226751(0x1e2),a24_0x226751(0x20d),a24_0x226751(0x1d1),a24_0x226751(0x208),a24_0x226751(0x1cb),a24_0x226751(0x224),a24_0x226751(0x1e5)][a24_0x226751(0x1e8)]('\x0a')},{'command':a24_0x226751(0x200),'operation':a24_0x226751(0x200),'risk':'read','paramsRequired':!![],'description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsHint':a24_0x226751(0x218)},{'command':a24_0x226751(0x211),'operation':a24_0x226751(0x211),'risk':a24_0x226751(0x230),'paramsRequired':!![],'description':'在数据集中创建一条记录','confirmationDescription':'向当前应用的数据集写入一条新业务记录;确认后将立即保存。','paramsHint':'JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27'},{'command':a24_0x226751(0x20c),'operation':a24_0x226751(0x20c),'risk':a24_0x226751(0x230),'paramsRequired':!![],'description':a24_0x226751(0x1d6),'confirmationDescription':'向当前应用的数据集批量写入多条新业务记录;确认后将立即保存。','paramsHint':'JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27'},{'command':a24_0x226751(0x225),'operation':'update','risk':a24_0x226751(0x230),'paramsRequired':!![],'description':a24_0x226751(0x1ca),'confirmationDescription':'修改当前应用数据集中的已有业务记录;确认后新值将立即保存。','paramsHint':a24_0x226751(0x21f)+a24_0x226751(0x1e9)},{'command':'delete','operation':a24_0x226751(0x202),'risk':'high-risk-write','paramsRequired':!![],'description':a24_0x226751(0x1f8),'confirmationDescription':a24_0x226751(0x1e4),'paramsHint':a24_0x226751(0x218)},{'command':'aggregate','operation':a24_0x226751(0x201),'risk':a24_0x226751(0x20f),'paramsRequired':![],'description':a24_0x226751(0x204),'paramsHint':a24_0x226751(0x1d3)+a24_0x226751(0x1f7),'helpExtra':[a24_0x226751(0x1d2),a24_0x226751(0x229),a24_0x226751(0x1e3),a24_0x226751(0x1d7),a24_0x226751(0x1d5),a24_0x226751(0x1fb),a24_0x226751(0x210),a24_0x226751(0x22b),'',a24_0x226751(0x1e6),a24_0x226751(0x216),a24_0x226751(0x226),a24_0x226751(0x1ed),a24_0x226751(0x22f),'\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Post-aggregation\x20filters\x20using\x20real\x20dataset\x20fields,\x20e.g.\x20{\x22category_id\x22:{\x22$notNull\x22:true}}',a24_0x226751(0x209),'',a24_0x226751(0x20b),a24_0x226751(0x212),a24_0x226751(0x21b),a24_0x226751(0x22c),'','\x20\x20DATASET\x20BOUNDARY',a24_0x226751(0x228),a24_0x226751(0x21c),a24_0x226751(0x220),a24_0x226751(0x1f0),'','\x20\x20EXAMPLES',a24_0x226751(0x1f1),'\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter',a24_0x226751(0x1f4),'','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.'][a24_0x226751(0x1e8)]('\x0a')}];function makeDataCommand(_0x5a5e7c){const _0x4e1e1a=a24_0x226751,_0x297e76='data\x20'+_0x5a5e7c[_0x4e1e1a(0x215)],_0x526d94={'service':_0x4e1e1a(0x1f6),'command':_0x5a5e7c['command'],'description':_0x5a5e7c[_0x4e1e1a(0x214)],'risk':_0x5a5e7c[_0x4e1e1a(0x1d4)],..._0x5a5e7c[_0x4e1e1a(0x213)]?{'confirmationDescription':_0x5a5e7c[_0x4e1e1a(0x213)]}:{},'helpExtra':_0x5a5e7c['helpExtra'],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x5a5e7c[_0x4e1e1a(0x1ea)]}],'validate':async _0xcc845c=>{const _0x11de6f=_0x4e1e1a;_0x5a5e7c[_0x11de6f(0x1e1)]&&requireAnyOf(_0xcc845c,[_0x11de6f(0x205)],_0x297e76),_0x5a5e7c[_0x11de6f(0x1ce)]===_0x11de6f(0x20c)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0xcc845c[_0x11de6f(0x21e)](_0x11de6f(0x205)))),_0x5a5e7c[_0x11de6f(0x1ce)]==='update'&&parseUpdateIdsFromParams(parseJsonParams(_0xcc845c[_0x11de6f(0x21e)](_0x11de6f(0x205)))??{});},async 'execute'(_0x26d60b){const _0x2c32db=_0x4e1e1a,_0x5bf853=_0x26d60b[_0x2c32db(0x21e)]('code'),_0x4c2728=_0x5a5e7c[_0x2c32db(0x1ce)]===_0x2c32db(0x20c)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x26d60b['str'](_0x2c32db(0x205)))):parseJsonParams(_0x26d60b[_0x2c32db(0x21e)](_0x2c32db(0x205)))??{},_0x5a1ff1=_0x5a5e7c['operation']===_0x2c32db(0x225)?parseUpdateIdsFromParams(_0x4c2728):undefined,_0x50b08b=_0x5a1ff1?normalizeUpdateParamsForRuntime(_0x4c2728,_0x5a1ff1):_0x4c2728,_0x3b9a01=Date[_0x2c32db(0x1f5)](),_0x586ce5=await executeData(_0x5bf853,_0x5a5e7c[_0x2c32db(0x1ce)],_0x50b08b),_0x4066d2=Date[_0x2c32db(0x1f5)]()-_0x3b9a01,_0x5ae4d8=_0x5a1ff1&&_0x5a1ff1['length']>0x1?buildBatchUpdateResult(_0x5a1ff1,_0x586ce5):_0x586ce5;return{'ok':!![],'data':{'result':_0x5ae4d8,'elapsed':_0x4066d2},'message':_0x2c32db(0x1dd)+_0x5a5e7c[_0x2c32db(0x215)]+_0x2c32db(0x1fa)+_0x4066d2+'ms'};}};return _0x5a5e7c[_0x4e1e1a(0x1d4)]!==_0x4e1e1a(0x20f)&&(_0x526d94[_0x4e1e1a(0x1e7)]=async _0xec8a1b=>{const _0x34245b=_0x4e1e1a,_0x174708=_0xec8a1b[_0x34245b(0x21e)](_0x34245b(0x22e)),_0x1edd19=_0x5a5e7c[_0x34245b(0x1ce)]===_0x34245b(0x20c)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0xec8a1b[_0x34245b(0x21e)](_0x34245b(0x205)))):parseJsonParams(_0xec8a1b[_0x34245b(0x21e)]('params'))??{};let _0x344146=_0x1edd19;if(_0x5a5e7c['operation']===_0x34245b(0x225)){const _0xb70886=parseUpdateIdsFromParams(_0x1edd19);_0x344146=normalizeUpdateParamsForRuntime(_0x1edd19,_0xb70886);}return dryRun(_0x34245b(0x1cf),_0x34245b(0x1f9)+_0x174708+'/'+_0x5a5e7c[_0x34245b(0x1ce)])[_0x34245b(0x21a)](_0x344146)[_0x34245b(0x214)](_0x34245b(0x1de)+_0x5a5e7c[_0x34245b(0x215)]+_0x34245b(0x207)+_0x174708)[_0x34245b(0x1da)]();}),_0x526d94;}export const dataDefinitions=specs['map'](makeDataCommand);function buildBatchUpdateResult(_0x49185d,_0x11dd8f){const _0xe7873=a24_0x226751;return{'operation':_0xe7873(0x225),'mode':_0xe7873(0x1cd),'ids':_0x49185d,'total':_0x49185d[_0xe7873(0x203)],'result':_0x11dd8f};}
@@ -1 +1 @@
1
- const a25_0x4a05d8=a25_0x55b2;(function(_0x31eb5e,_0x47d640){const _0x413b04=a25_0x55b2,_0x39c196=_0x31eb5e();while(!![]){try{const _0x287029=-parseInt(_0x413b04(0x1e2))/0x1*(-parseInt(_0x413b04(0x1d2))/0x2)+-parseInt(_0x413b04(0x1c4))/0x3+parseInt(_0x413b04(0x1d5))/0x4*(parseInt(_0x413b04(0x1ed))/0x5)+parseInt(_0x413b04(0x1b1))/0x6*(-parseInt(_0x413b04(0x1f2))/0x7)+parseInt(_0x413b04(0x1e7))/0x8+parseInt(_0x413b04(0x1da))/0x9*(-parseInt(_0x413b04(0x1b9))/0xa)+-parseInt(_0x413b04(0x1e0))/0xb*(parseInt(_0x413b04(0x1dc))/0xc);if(_0x287029===_0x47d640)break;else _0x39c196['push'](_0x39c196['shift']());}catch(_0x5880f8){_0x39c196['push'](_0x39c196['shift']());}}}(a25_0x10fd,0x81f06));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x505e1e){const _0x55cfa6=a25_0x55b2;if(_0x505e1e['deleted'])return null;const _0x105988=Boolean(_0x505e1e[_0x55cfa6(0x1ee)]!==undefined||_0x505e1e[_0x55cfa6(0x1d8)]!==undefined);let _0x31f591={};if(!_0x105988&&typeof _0x505e1e['extend']===_0x55cfa6(0x1be))try{_0x31f591=JSON['parse'](_0x505e1e['extend']);}catch{}const _0x1ea8bf=_0x105988?_0x505e1e[_0x55cfa6(0x1b8)]:_0x505e1e[_0x55cfa6(0x1a7)],_0x4dcbb9=_0x105988?_0x505e1e[_0x55cfa6(0x1ee)]:_0x505e1e['name'],_0x32c90a=_0x105988?_0x505e1e[_0x55cfa6(0x1d8)]:_0x505e1e[_0x55cfa6(0x1df)]||_0x505e1e[_0x55cfa6(0x1cf)],_0x2f25f3=_0x105988?_0x505e1e[_0x55cfa6(0x1bc)]===!![]:_0x31f591[_0x55cfa6(0x1bc)]===!![],_0x5f2995=_0x105988?_0x505e1e[_0x55cfa6(0x1e8)]===!![]:_0x31f591[_0x55cfa6(0x1e8)]===!![],_0x37b800=_0x105988?_0x505e1e[_0x55cfa6(0x1e9)]??null:_0x31f591[_0x55cfa6(0x1e9)]??null,_0x7d289c={'name':_0x1ea8bf,'displayName':_0x4dcbb9||_0x1ea8bf,'type':_0x32c90a,'dbType':_0x505e1e[_0x55cfa6(0x1ae)],'pk':_0x2f25f3,'required':_0x5f2995,'description':_0x505e1e[_0x55cfa6(0x1d4)]||undefined};return Array[_0x55cfa6(0x1b5)](_0x37b800)&&_0x37b800['length']>0x0&&(_0x7d289c['options']=_0x37b800),_0x7d289c;}function a25_0x55b2(_0xc809cf,_0x2d7510){_0xc809cf=_0xc809cf-0x1a7;const _0x10fdcd=a25_0x10fd();let _0x55b25a=_0x10fdcd[_0xc809cf];return _0x55b25a;}function parseJsonMaybe(_0x416693){const _0x16c3b5=a25_0x55b2;if(typeof _0x416693!==_0x16c3b5(0x1be))return _0x416693;try{return JSON[_0x16c3b5(0x1cc)](_0x416693);}catch{return _0x416693;}}function normalizeOperationEntry(_0x500248,_0x419045){const _0x584b58=a25_0x55b2;if(!_0x419045||typeof _0x419045!==_0x584b58(0x1bd))return null;if(!_0x419045[_0x584b58(0x1d7)]||!_0x419045[_0x584b58(0x1d6)])return null;const _0x52cd1c={'name':_0x500248,'method':_0x419045[_0x584b58(0x1d7)],'path':_0x419045[_0x584b58(0x1d6)]};if(_0x419045[_0x584b58(0x1cb)])_0x52cd1c[_0x584b58(0x1cb)]=_0x419045[_0x584b58(0x1cb)];if(_0x419045['requestBody']!=null)_0x52cd1c['requestBody']=parseJsonMaybe(_0x419045[_0x584b58(0x1e4)]);if(_0x419045[_0x584b58(0x1f0)]!=null)_0x52cd1c[_0x584b58(0x1f0)]=parseJsonMaybe(_0x419045[_0x584b58(0x1f0)]);if(_0x419045[_0x584b58(0x1b7)]!=null)_0x52cd1c['beforeScriptId']=_0x419045[_0x584b58(0x1b7)];if(_0x419045[_0x584b58(0x1de)]!=null)_0x52cd1c['afterScriptId']=_0x419045[_0x584b58(0x1de)];if(Array['isArray'](_0x419045['requestFields']))_0x52cd1c['requestFields']=_0x419045['requestFields'];if(Array[_0x584b58(0x1b5)](_0x419045['responseFields']))_0x52cd1c['responseFields']=_0x419045['responseFields'];return _0x52cd1c;}function summarizeDbtable(_0x17e09c){const _0x17bd65=a25_0x55b2,_0x5f0949={},_0x37bceb=[_0x17bd65(0x1c0),_0x17bd65(0x1cd),_0x17bd65(0x1a8),_0x17bd65(0x1e6),'pkField',_0x17bd65(0x1d3),_0x17bd65(0x1ab),_0x17bd65(0x1db),_0x17bd65(0x1bf),'creatorIdField',_0x17bd65(0x1b0),_0x17bd65(0x1bb),_0x17bd65(0x1d0),'labelField','dblinkInfoDTO'];for(const _0x2c0282 of _0x37bceb){if(_0x17e09c[_0x2c0282]!==undefined)_0x5f0949[_0x2c0282]=_0x17e09c[_0x2c0282];}return typeof _0x5f0949[_0x17bd65(0x1d3)]===_0x17bd65(0x1be)&&_0x5f0949[_0x17bd65(0x1d3)][_0x17bd65(0x1ef)]>0x0&&(_0x5f0949[_0x17bd65(0x1c8)]=_0x5f0949[_0x17bd65(0x1d3)][_0x17bd65(0x1ec)](',')[_0x17bd65(0x1d9)](_0x49bf6f=>_0x49bf6f['trim']())['filter'](Boolean)),_0x5f0949;}function a25_0x10fd(){const _0x3b6dc6=['columnCodeListWithDeleted','beforeScriptId','name','20XNQdCn','relatedPageInfoList','modifierIdField','pkField','object','string','updateTimeField','dbId','trim','formatRules','deleted','3188994loYUgd','title','relations','dbtableConfig','allFieldNames','validateRules','properties','host','parse','dbName','Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','dataType','modifierNameField','modelCode','38984ZhMuja','allFields','description','3110304BVaTdZ','path','method','doType','map','1977381tnalDF','createTimeField','12twPTUd','sourceType','afterScriptId','type','2919587qgXtJT','extend','47LqhTLq','entries','requestBody','tableComment','datasetKey','7406400SkXyVx','required','options','read','operations','split','5FDTDHU','displayName','length','responseBody','push','745353nRpAfj','code','tableName','indexes','detail','logicField','fields','modelId','dbType','filter','creatorNameField','18eFpTzF','dataset','str','find','isArray'];a25_0x10fd=function(){return _0x3b6dc6;};return a25_0x10fd();}function normalizeRelatedPages(_0xe5506a){const _0x49bec3=a25_0x55b2;if(!Array[_0x49bec3(0x1b5)](_0xe5506a))return[];return _0xe5506a[_0x49bec3(0x1af)](_0x3f269f=>_0x3f269f&&typeof _0x3f269f==='object')[_0x49bec3(0x1d9)](_0x48c509=>({'id':_0x48c509['id'],'type':_0x48c509[_0x49bec3(0x1df)],'code':_0x48c509[_0x49bec3(0x1a7)],'title':_0x48c509[_0x49bec3(0x1c5)],'deleted':_0x48c509[_0x49bec3(0x1c3)]===!![]}));}function normalizeFallbackFieldName(_0x336116,_0x32bdb0){const _0x2bcae1=a25_0x55b2,_0x5cc5b6=_0x336116[_0x2bcae1(0x1c1)]();if(!_0x5cc5b6)return null;return{'name':_0x5cc5b6,'displayName':_0x5cc5b6,'type':undefined,'dbType':undefined,'pk':_0x5cc5b6===_0x32bdb0,'required':![],'description':undefined};}async function loadListFieldFallback(_0x6bfc61,_0x1c2ce3){const _0x351f89=a25_0x55b2;if(!_0x6bfc61||!_0x1c2ce3)return[];try{const _0x5f486e=await listDatasets(_0x6bfc61,{'code':_0x1c2ce3}),_0x453e44=_0x5f486e[_0x351f89(0x1b4)](_0x3f2745=>_0x3f2745[_0x351f89(0x1a7)]===_0x1c2ce3)??_0x5f486e[0x0],_0x44e89e=_0x453e44?.[_0x351f89(0x1c7)]??{},_0x3bdb06=typeof _0x44e89e[_0x351f89(0x1d3)]===_0x351f89(0x1be)?_0x44e89e[_0x351f89(0x1d3)]['split'](','):[];return _0x3bdb06[_0x351f89(0x1d9)](_0x424762=>normalizeFallbackFieldName(_0x424762,_0x44e89e[_0x351f89(0x1bc)]))['filter'](_0x23479b=>_0x23479b!==null);}catch{return[];}}export const datasetDetail={'service':a25_0x4a05d8(0x1b2),'command':a25_0x4a05d8(0x1aa),'description':a25_0x4a05d8(0x1ce),'risk':a25_0x4a05d8(0x1ea),'flags':[CODE_FLAG],async 'execute'(_0x3f32ea){const _0x8df3a9=a25_0x4a05d8,_0x312130=await getDatasetDetail(_0x3f32ea['str'](_0x8df3a9(0x1a7))),_0x5a9d09=Array[_0x8df3a9(0x1b5)](_0x312130[_0x8df3a9(0x1ac)])?_0x312130['fields']:Array[_0x8df3a9(0x1b5)](_0x312130[_0x8df3a9(0x1ca)])?_0x312130['properties']:[];let _0x231851=_0x5a9d09[_0x8df3a9(0x1d9)](_0x40af0c=>normalizeField(_0x40af0c))['filter'](_0x23fb3e=>_0x23fb3e!==null);_0x231851['length']===0x0&&(_0x231851=await loadListFieldFallback(_0x3f32ea['appCode'],_0x3f32ea[_0x8df3a9(0x1b3)](_0x8df3a9(0x1a7))));const _0x21799e=_0x312130[_0x8df3a9(0x1eb)]??{},_0x142361=[];for(const [_0x539114,_0x259722]of Object[_0x8df3a9(0x1e3)](_0x21799e)){const _0x46eecf=normalizeOperationEntry(_0x539114,_0x259722);if(_0x46eecf)_0x142361[_0x8df3a9(0x1f1)](_0x46eecf);}const _0x32643f=_0x312130[_0x8df3a9(0x1c7)]??{},_0x409453=_0x312130[_0x8df3a9(0x1b2)]??{},_0x17d63c=_0x32643f[_0x8df3a9(0x1c0)]!=null?{'id':_0x32643f['dbId'],'name':_0x32643f[_0x8df3a9(0x1cd)]??null}:undefined;let _0x189d89;return typeof _0x312130[_0x8df3a9(0x1e1)]===_0x8df3a9(0x1be)&&(_0x189d89=parseJsonMaybe(_0x312130['extend'])),{'ok':!![],'data':{'id':_0x312130[_0x8df3a9(0x1ad)]??_0x312130['id'],'name':_0x312130[_0x8df3a9(0x1b8)],'code':_0x312130[_0x8df3a9(0x1d1)]||_0x312130[_0x8df3a9(0x1a7)],'doVersion':_0x312130['doVersion'],'description':_0x312130['description']||_0x409453[_0x8df3a9(0x1e5)]||undefined,'source':_0x312130['source']||_0x409453[_0x8df3a9(0x1dd)],'table':_0x32643f['tableName']||_0x409453[_0x8df3a9(0x1a8)],'datasetKey':_0x32643f[_0x8df3a9(0x1e6)],'pk':_0x32643f[_0x8df3a9(0x1bc)],'db':_0x17d63c,'dbtable':summarizeDbtable(_0x32643f),'fields':_0x231851,'operations':_0x142361,'indexes':Array[_0x8df3a9(0x1b5)](_0x409453[_0x8df3a9(0x1a9)])?_0x409453[_0x8df3a9(0x1a9)]:[],'relations':_0x312130[_0x8df3a9(0x1c6)]??null,'relatedPages':normalizeRelatedPages(_0x312130[_0x8df3a9(0x1ba)]),...Array['isArray'](_0x312130[_0x8df3a9(0x1b6)])?{'columnCodeListWithDeleted':_0x312130[_0x8df3a9(0x1b6)]}:{},'formatRules':Array['isArray'](_0x312130[_0x8df3a9(0x1c2)])?_0x312130['formatRules']:[],'validateRules':Array['isArray'](_0x312130[_0x8df3a9(0x1c9)])?_0x312130[_0x8df3a9(0x1c9)]:[],..._0x189d89!==undefined?{'extend':_0x189d89}:{},'stats':{'fieldCount':_0x231851[_0x8df3a9(0x1ef)],'operationCount':_0x142361[_0x8df3a9(0x1ef)]}}};}};
1
+ (function(_0x2ba099,_0x21ab18){const _0x1262a5=a25_0x28ee,_0x11b139=_0x2ba099();while(!![]){try{const _0x380dc9=parseInt(_0x1262a5(0xf3))/0x1*(-parseInt(_0x1262a5(0xf8))/0x2)+parseInt(_0x1262a5(0xf9))/0x3+parseInt(_0x1262a5(0xe1))/0x4*(-parseInt(_0x1262a5(0x116))/0x5)+parseInt(_0x1262a5(0xfb))/0x6*(parseInt(_0x1262a5(0x113))/0x7)+parseInt(_0x1262a5(0xf6))/0x8+parseInt(_0x1262a5(0xf7))/0x9+parseInt(_0x1262a5(0x10e))/0xa;if(_0x380dc9===_0x21ab18)break;else _0x11b139['push'](_0x11b139['shift']());}catch(_0x54feb8){_0x11b139['push'](_0x11b139['shift']());}}}(a25_0x24b1,0xd5f3e));function a25_0x24b1(){const _0x263c6a=['requestBody','relatedPageInfoList','responseFields','modifierNameField','name','isArray','displayName','dbName','797176YkfThj','length','dbtableConfig','string','trim','required','tableName','source','logicField','dblinkInfoDTO','allFields','allFieldNames','method','updateTimeField','find','indexes','dataType','doVersion','1349149CWxUzw','operations','properties','3384568pfWRtA','13801275vFfQii','2LDhbjA','1662690bNzzDR','entries','162ztMGAa','modifierIdField','columnCodeListWithDeleted','modelId','push','split','sourceType','dbType','tableComment','modelCode','code','type','afterScriptId','fields','object','relations','datasetKey','responseBody','description','7428580rKrQLY','doType','dbId','parse','host','146797gmLJxp','pkField','map','40QmsUVR','beforeScriptId','options','validateRules','requestFields','extend','createTimeField','creatorIdField','filter','str'];a25_0x24b1=function(){return _0x263c6a;};return a25_0x24b1();}import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x2b94bb){const _0x4861da=a25_0x28ee;if(_0x2b94bb['deleted'])return null;const _0x38cc14=Boolean(_0x2b94bb[_0x4861da(0xdf)]!==undefined||_0x2b94bb[_0x4861da(0x10f)]!==undefined);let _0x2e116c={};if(!_0x38cc14&&typeof _0x2b94bb['extend']==='string')try{_0x2e116c=JSON[_0x4861da(0x111)](_0x2b94bb['extend']);}catch{}const _0x1aa408=_0x38cc14?_0x2b94bb[_0x4861da(0xdd)]:_0x2b94bb[_0x4861da(0x105)],_0x1c798d=_0x38cc14?_0x2b94bb[_0x4861da(0xdf)]:_0x2b94bb['name'],_0x6de25f=_0x38cc14?_0x2b94bb[_0x4861da(0x10f)]:_0x2b94bb['type']||_0x2b94bb[_0x4861da(0xf1)],_0x163df6=_0x38cc14?_0x2b94bb['pkField']===!![]:_0x2e116c[_0x4861da(0x114)]===!![],_0x1a7787=_0x38cc14?_0x2b94bb[_0x4861da(0xe6)]===!![]:_0x2e116c[_0x4861da(0xe6)]===!![],_0x33a3ab=_0x38cc14?_0x2b94bb[_0x4861da(0x118)]??null:_0x2e116c[_0x4861da(0x118)]??null,_0x253992={'name':_0x1aa408,'displayName':_0x1c798d||_0x1aa408,'type':_0x6de25f,'dbType':_0x2b94bb[_0x4861da(0x102)],'pk':_0x163df6,'required':_0x1a7787,'description':_0x2b94bb[_0x4861da(0x10d)]||undefined};return Array[_0x4861da(0xde)](_0x33a3ab)&&_0x33a3ab['length']>0x0&&(_0x253992[_0x4861da(0x118)]=_0x33a3ab),_0x253992;}function parseJsonMaybe(_0x530fee){if(typeof _0x530fee!=='string')return _0x530fee;try{return JSON['parse'](_0x530fee);}catch{return _0x530fee;}}function normalizeOperationEntry(_0x41c48e,_0x1f5654){const _0x446957=a25_0x28ee;if(!_0x1f5654||typeof _0x1f5654!=='object')return null;if(!_0x1f5654[_0x446957(0xed)]||!_0x1f5654['path'])return null;const _0x5d4f52={'name':_0x41c48e,'method':_0x1f5654['method'],'path':_0x1f5654['path']};if(_0x1f5654[_0x446957(0x112)])_0x5d4f52[_0x446957(0x112)]=_0x1f5654['host'];if(_0x1f5654[_0x446957(0xd9)]!=null)_0x5d4f52['requestBody']=parseJsonMaybe(_0x1f5654[_0x446957(0xd9)]);if(_0x1f5654['responseBody']!=null)_0x5d4f52[_0x446957(0x10c)]=parseJsonMaybe(_0x1f5654['responseBody']);if(_0x1f5654['beforeScriptId']!=null)_0x5d4f52[_0x446957(0x117)]=_0x1f5654['beforeScriptId'];if(_0x1f5654[_0x446957(0x107)]!=null)_0x5d4f52[_0x446957(0x107)]=_0x1f5654[_0x446957(0x107)];if(Array[_0x446957(0xde)](_0x1f5654[_0x446957(0x11a)]))_0x5d4f52[_0x446957(0x11a)]=_0x1f5654[_0x446957(0x11a)];if(Array[_0x446957(0xde)](_0x1f5654['responseFields']))_0x5d4f52[_0x446957(0xdb)]=_0x1f5654[_0x446957(0xdb)];return _0x5d4f52;}function summarizeDbtable(_0x309e10){const _0x2c6061=a25_0x28ee,_0x174514={},_0x13eeb0=[_0x2c6061(0x110),_0x2c6061(0xe0),_0x2c6061(0xe7),_0x2c6061(0x10b),_0x2c6061(0x114),_0x2c6061(0xeb),_0x2c6061(0xe9),_0x2c6061(0x11c),_0x2c6061(0xee),_0x2c6061(0x11d),'creatorNameField',_0x2c6061(0xfc),_0x2c6061(0xdc),'labelField',_0x2c6061(0xea)];for(const _0x4e148f of _0x13eeb0){if(_0x309e10[_0x4e148f]!==undefined)_0x174514[_0x4e148f]=_0x309e10[_0x4e148f];}return typeof _0x174514[_0x2c6061(0xeb)]===_0x2c6061(0xe4)&&_0x174514[_0x2c6061(0xeb)]['length']>0x0&&(_0x174514[_0x2c6061(0xec)]=_0x174514[_0x2c6061(0xeb)][_0x2c6061(0x100)](',')[_0x2c6061(0x115)](_0x349368=>_0x349368[_0x2c6061(0xe5)]())['filter'](Boolean)),_0x174514;}function a25_0x28ee(_0x3c8b5e,_0x2c2ef2){_0x3c8b5e=_0x3c8b5e-0xd9;const _0x24b1ee=a25_0x24b1();let _0x28eed7=_0x24b1ee[_0x3c8b5e];return _0x28eed7;}function normalizeRelatedPages(_0x455ae1){const _0x64e27a=a25_0x28ee;if(!Array[_0x64e27a(0xde)](_0x455ae1))return[];return _0x455ae1[_0x64e27a(0x11e)](_0x5a0bed=>_0x5a0bed&&typeof _0x5a0bed===_0x64e27a(0x109))['map'](_0x196808=>({'id':_0x196808['id'],'type':_0x196808[_0x64e27a(0x106)],'code':_0x196808['code'],'title':_0x196808['title'],'deleted':_0x196808['deleted']===!![]}));}function normalizeFallbackFieldName(_0x488096,_0x4fac2c){const _0xc36e01=a25_0x28ee,_0x1e383f=_0x488096[_0xc36e01(0xe5)]();if(!_0x1e383f)return null;return{'name':_0x1e383f,'displayName':_0x1e383f,'type':undefined,'dbType':undefined,'pk':_0x1e383f===_0x4fac2c,'required':![],'description':undefined};}async function loadListFieldFallback(_0x166cbb,_0x3ba5d5){const _0x1e8f25=a25_0x28ee;if(!_0x166cbb||!_0x3ba5d5)return[];try{const _0x298270=await listDatasets(_0x166cbb,{'code':_0x3ba5d5}),_0x2c315c=_0x298270[_0x1e8f25(0xef)](_0x4671ae=>_0x4671ae[_0x1e8f25(0x105)]===_0x3ba5d5)??_0x298270[0x0],_0x40cf30=_0x2c315c?.['dbtableConfig']??{},_0x88ba01=typeof _0x40cf30[_0x1e8f25(0xeb)]===_0x1e8f25(0xe4)?_0x40cf30['allFields'][_0x1e8f25(0x100)](','):[];return _0x88ba01[_0x1e8f25(0x115)](_0x2f1459=>normalizeFallbackFieldName(_0x2f1459,_0x40cf30[_0x1e8f25(0x114)]))[_0x1e8f25(0x11e)](_0x267435=>_0x267435!==null);}catch{return[];}}export const datasetDetail={'service':'dataset','command':'detail','description':'Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','risk':'read','flags':[CODE_FLAG],async 'execute'(_0x28afef){const _0x15ca35=a25_0x28ee,_0x59af09=await getDatasetDetail(_0x28afef[_0x15ca35(0x11f)](_0x15ca35(0x105))),_0x2b41b3=Array[_0x15ca35(0xde)](_0x59af09['fields'])?_0x59af09[_0x15ca35(0x108)]:Array[_0x15ca35(0xde)](_0x59af09[_0x15ca35(0xf5)])?_0x59af09[_0x15ca35(0xf5)]:[];let _0x20b6e0=_0x2b41b3[_0x15ca35(0x115)](_0x39fd83=>normalizeField(_0x39fd83))[_0x15ca35(0x11e)](_0x30e3d6=>_0x30e3d6!==null);_0x20b6e0[_0x15ca35(0xe2)]===0x0&&(_0x20b6e0=await loadListFieldFallback(_0x28afef['appCode'],_0x28afef[_0x15ca35(0x11f)](_0x15ca35(0x105))));const _0x1ec13f=_0x59af09[_0x15ca35(0xf4)]??{},_0x1de351=[];for(const [_0x1a5973,_0x1b5705]of Object[_0x15ca35(0xfa)](_0x1ec13f)){const _0x21fbab=normalizeOperationEntry(_0x1a5973,_0x1b5705);if(_0x21fbab)_0x1de351[_0x15ca35(0xff)](_0x21fbab);}const _0x307340=_0x59af09[_0x15ca35(0xe3)]??{},_0x5f212c=_0x59af09['dataset']??{},_0xfb6a34=_0x307340[_0x15ca35(0x110)]!=null?{'id':_0x307340[_0x15ca35(0x110)],'name':_0x307340[_0x15ca35(0xe0)]??null}:undefined;let _0xc1a9a7;return typeof _0x59af09[_0x15ca35(0x11b)]===_0x15ca35(0xe4)&&(_0xc1a9a7=parseJsonMaybe(_0x59af09[_0x15ca35(0x11b)])),{'ok':!![],'data':{'id':_0x59af09[_0x15ca35(0xfe)]??_0x59af09['id'],'name':_0x59af09['name'],'code':_0x59af09[_0x15ca35(0x104)]||_0x59af09[_0x15ca35(0x105)],'doVersion':_0x59af09[_0x15ca35(0xf2)],'description':_0x59af09['description']||_0x5f212c[_0x15ca35(0x103)]||undefined,'source':_0x59af09[_0x15ca35(0xe8)]||_0x5f212c[_0x15ca35(0x101)],'table':_0x307340['tableName']||_0x5f212c['tableName'],'datasetKey':_0x307340[_0x15ca35(0x10b)],'pk':_0x307340[_0x15ca35(0x114)],'db':_0xfb6a34,'dbtable':summarizeDbtable(_0x307340),'fields':_0x20b6e0,'operations':_0x1de351,'indexes':Array[_0x15ca35(0xde)](_0x5f212c[_0x15ca35(0xf0)])?_0x5f212c[_0x15ca35(0xf0)]:[],'relations':_0x59af09[_0x15ca35(0x10a)]??null,'relatedPages':normalizeRelatedPages(_0x59af09[_0x15ca35(0xda)]),...Array[_0x15ca35(0xde)](_0x59af09['columnCodeListWithDeleted'])?{'columnCodeListWithDeleted':_0x59af09[_0x15ca35(0xfd)]}:{},'formatRules':Array[_0x15ca35(0xde)](_0x59af09['formatRules'])?_0x59af09['formatRules']:[],'validateRules':Array[_0x15ca35(0xde)](_0x59af09['validateRules'])?_0x59af09[_0x15ca35(0x119)]:[],..._0xc1a9a7!==undefined?{'extend':_0xc1a9a7}:{},'stats':{'fieldCount':_0x20b6e0['length'],'operationCount':_0x1de351[_0x15ca35(0xe2)]}}};}};
@@ -1 +1 @@
1
- (function(_0x183cbb,_0x5caa0b){const _0x34db05=a26_0x16f3,_0x45ccf6=_0x183cbb();while(!![]){try{const _0x2fbd2f=-parseInt(_0x34db05(0x6e))/0x1+parseInt(_0x34db05(0x67))/0x2+-parseInt(_0x34db05(0x68))/0x3+parseInt(_0x34db05(0x6c))/0x4*(parseInt(_0x34db05(0x6d))/0x5)+parseInt(_0x34db05(0x6b))/0x6*(parseInt(_0x34db05(0x69))/0x7)+parseInt(_0x34db05(0x70))/0x8*(-parseInt(_0x34db05(0x6f))/0x9)+-parseInt(_0x34db05(0x6a))/0xa;if(_0x2fbd2f===_0x5caa0b)break;else _0x45ccf6['push'](_0x45ccf6['shift']());}catch(_0x6c9aff){_0x45ccf6['push'](_0x45ccf6['shift']());}}}(a26_0x4aca,0x2095b));function a26_0x16f3(_0x2b13ca,_0x18320f){_0x2b13ca=_0x2b13ca-0x67;const _0x4aca22=a26_0x4aca();let _0x16f38c=_0x4aca22[_0x2b13ca];return _0x16f38c;}import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a26_0x4aca(){const _0x4949a4=['24sUIQDJ','480942oRgbFt','155592UvQQgJ','68201xSJbSX','1355490ddLonu','84yAhqUa','32zmiRBB','9010iaVFWO','70163CxCYfI','738QNGiFJ'];a26_0x4aca=function(){return _0x4949a4;};return a26_0x4aca();}import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
1
+ function a26_0x4a7a(){const _0x22fa0b=['5776729lFalIP','26578460FiBKeb','462JogZSW','1180jxlhfi','2126442WxwmHY','3628134KfjuiH','20ZLdqBG','52616PCZtgw','9xwZDPg','7318824rNuWtX'];a26_0x4a7a=function(){return _0x22fa0b;};return a26_0x4a7a();}(function(_0x144e2a,_0x266511){const _0x2662e9=a26_0x2bf1,_0x324215=_0x144e2a();while(!![]){try{const _0x183f63=-parseInt(_0x2662e9(0x1c1))/0x1*(parseInt(_0x2662e9(0x1c0))/0x2)+-parseInt(_0x2662e9(0x1c2))/0x3+-parseInt(_0x2662e9(0x1c5))/0x4*(parseInt(_0x2662e9(0x1c4))/0x5)+parseInt(_0x2662e9(0x1c3))/0x6+-parseInt(_0x2662e9(0x1be))/0x7+-parseInt(_0x2662e9(0x1bd))/0x8+parseInt(_0x2662e9(0x1c6))/0x9*(parseInt(_0x2662e9(0x1bf))/0xa);if(_0x183f63===_0x266511)break;else _0x324215['push'](_0x324215['shift']());}catch(_0x47c2b7){_0x324215['push'](_0x324215['shift']());}}}(a26_0x4a7a,0x773e9));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';function a26_0x2bf1(_0x4eff19,_0x4877f1){_0x4eff19=_0x4eff19-0x1bd;const _0x4a7a9b=a26_0x4a7a();let _0x2bf11e=_0x4a7a9b[_0x4eff19];return _0x2bf11e;}export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];