@lovrabet/lovrabet-cli 2.3.8-beta.3 → 2.3.8-beta.4

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 (184) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/approval/index.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/device.js +1 -1
  14. package/lib/commands/auth/index.js +1 -1
  15. package/lib/commands/auth/prompt.js +1 -1
  16. package/lib/commands/bff/detail.js +1 -1
  17. package/lib/commands/bff/exec.js +1 -1
  18. package/lib/commands/bff/index.js +1 -1
  19. package/lib/commands/cli-skill/index.js +1 -1
  20. package/lib/commands/common/config-policy.js +1 -1
  21. package/lib/commands/common/constraints.js +1 -1
  22. package/lib/commands/common/flags.js +1 -1
  23. package/lib/commands/common/local-file.js +1 -1
  24. package/lib/commands/config/definitions.js +1 -1
  25. package/lib/commands/config/init.js +1 -1
  26. package/lib/commands/config/shared.js +1 -1
  27. package/lib/commands/data/import-excel.js +1 -1
  28. package/lib/commands/data/index.js +1 -1
  29. package/lib/commands/dataset/detail.js +1 -1
  30. package/lib/commands/dataset/index.js +1 -1
  31. package/lib/commands/dataset/list.js +1 -1
  32. package/lib/commands/dataset/sdk-doc.js +1 -1
  33. package/lib/commands/doctor.js +1 -1
  34. package/lib/commands/file/index.js +1 -1
  35. package/lib/commands/init.js +1 -1
  36. package/lib/commands/kb/index.js +1 -1
  37. package/lib/commands/logs/index.js +1 -1
  38. package/lib/commands/notification/config-list.js +1 -1
  39. package/lib/commands/notification/index.js +1 -1
  40. package/lib/commands/notification/shared.js +1 -1
  41. package/lib/commands/ocr/index.js +1 -1
  42. package/lib/commands/permit/dataset-get.js +1 -1
  43. package/lib/commands/permit/dataset-set.js +1 -1
  44. package/lib/commands/permit/index.js +1 -1
  45. package/lib/commands/permit/page-get.js +1 -1
  46. package/lib/commands/permit/page-set.js +1 -1
  47. package/lib/commands/permit/role-menus-set.js +1 -1
  48. package/lib/commands/permit/role-menus.js +1 -1
  49. package/lib/commands/permit/shared.js +1 -1
  50. package/lib/commands/personal-bff/index.js +1 -1
  51. package/lib/commands/registry.js +1 -1
  52. package/lib/commands/role/create.js +1 -1
  53. package/lib/commands/role/delete.js +1 -1
  54. package/lib/commands/role/detail.js +1 -1
  55. package/lib/commands/role/index.js +1 -1
  56. package/lib/commands/role/list.js +1 -1
  57. package/lib/commands/role/shared.js +1 -1
  58. package/lib/commands/role/update.js +1 -1
  59. package/lib/commands/role/user-add.js +1 -1
  60. package/lib/commands/role/user-remove.js +1 -1
  61. package/lib/commands/schedule/index.js +1 -1
  62. package/lib/commands/schema.js +1 -1
  63. package/lib/commands/service/dynamic.js +1 -1
  64. package/lib/commands/service/function-name-adapter.js +1 -1
  65. package/lib/commands/service/index.js +1 -1
  66. package/lib/commands/service/registry.js +1 -1
  67. package/lib/commands/skill/commands/create.js +1 -1
  68. package/lib/commands/skill/commands/diagram.js +1 -1
  69. package/lib/commands/skill/commands/install.js +1 -1
  70. package/lib/commands/skill/commands/list.js +1 -1
  71. package/lib/commands/skill/commands/push.js +1 -1
  72. package/lib/commands/skill/commands/validate.js +1 -1
  73. package/lib/commands/skill/diagram.js +1 -1
  74. package/lib/commands/skill/flags.js +1 -1
  75. package/lib/commands/skill/index.js +1 -1
  76. package/lib/commands/skill/manifest-helpers.js +1 -1
  77. package/lib/commands/skill/push-execute.js +1 -1
  78. package/lib/commands/skill/push-flow-helpers.js +1 -1
  79. package/lib/commands/skill/push-retarget.js +1 -1
  80. package/lib/commands/skill/scopes.js +1 -1
  81. package/lib/commands/skill/summary.js +1 -1
  82. package/lib/commands/skill/templates.js +1 -1
  83. package/lib/commands/skill/validate.js +1 -1
  84. package/lib/commands/sql/detail.js +1 -1
  85. package/lib/commands/sql/exec.js +1 -1
  86. package/lib/commands/sql/index.js +1 -1
  87. package/lib/commands/update.js +1 -1
  88. package/lib/commands/user-account/bind.js +1 -1
  89. package/lib/commands/user-account/index.js +1 -1
  90. package/lib/commands/workspace/index.js +1 -1
  91. package/lib/config/domain-config.js +1 -1
  92. package/lib/config/schema.js +1 -1
  93. package/lib/constant/app.js +1 -1
  94. package/lib/constant/auth-mode.js +1 -1
  95. package/lib/constant/cli.js +1 -1
  96. package/lib/constant/defaults.js +1 -1
  97. package/lib/constant/distribution.js +1 -1
  98. package/lib/constant/domain.js +1 -1
  99. package/lib/constant/env.js +1 -1
  100. package/lib/constant/output.js +1 -1
  101. package/lib/constant/product.js +1 -1
  102. package/lib/constant/region.js +1 -1
  103. package/lib/constant/risk.js +1 -1
  104. package/lib/constant/url.js +1 -1
  105. package/lib/context.js +1 -1
  106. package/lib/core/api-client.js +1 -1
  107. package/lib/core/db-resolver.js +1 -1
  108. package/lib/core/kb-management-client.js +1 -1
  109. package/lib/core/kb-sdk-errors.d.ts +3 -0
  110. package/lib/core/kb-sdk-errors.js +1 -0
  111. package/lib/core/kb-search-client.d.ts +3 -21
  112. package/lib/core/kb-search-client.js +1 -1
  113. package/lib/core/sdk-client.js +1 -1
  114. package/lib/errors.js +1 -1
  115. package/lib/framework/access-error.js +1 -1
  116. package/lib/framework/build-all-flags.js +1 -1
  117. package/lib/framework/dryrun.js +1 -1
  118. package/lib/framework/flags.js +1 -1
  119. package/lib/framework/help.js +1 -1
  120. package/lib/framework/index.js +1 -1
  121. package/lib/framework/output.js +1 -1
  122. package/lib/framework/preparse.js +1 -1
  123. package/lib/framework/rate-limit.js +1 -1
  124. package/lib/framework/raw-flags.js +1 -1
  125. package/lib/framework/response.js +1 -1
  126. package/lib/framework/runner-confirmation.js +1 -1
  127. package/lib/framework/runner-error.js +1 -1
  128. package/lib/framework/runner.js +1 -1
  129. package/lib/framework/schema-export.js +1 -1
  130. package/lib/framework/service-order.js +1 -1
  131. package/lib/framework/types.js +1 -1
  132. package/lib/generated/build-info.d.ts +4 -4
  133. package/lib/generated/build-info.js +1 -1
  134. package/lib/generated/official-routing.js +1 -1
  135. package/lib/generated/routing-contract.js +1 -1
  136. package/lib/help.js +1 -1
  137. package/lib/postinstall.js +1 -1
  138. package/lib/runtime/confirmation.js +1 -1
  139. package/lib/runtime/event.js +1 -1
  140. package/lib/runtime/index.js +1 -1
  141. package/lib/runtime/queue.js +1 -1
  142. package/lib/runtime/resolve.js +1 -1
  143. package/lib/services/dataset-import/auto-id-runner.js +1 -1
  144. package/lib/services/dataset-import/excel-reader.js +1 -1
  145. package/lib/services/dataset-import/image-bytes.js +1 -1
  146. package/lib/services/dataset-import/image-ooxml.js +1 -1
  147. package/lib/services/dataset-import/image-runner.js +1 -1
  148. package/lib/services/dataset-import/metadata.js +1 -1
  149. package/lib/services/dataset-import/preview.js +1 -1
  150. package/lib/services/dataset-import/runner.js +1 -1
  151. package/lib/skills/builtin-skill.js +1 -1
  152. package/lib/skills/npx-skills-add.js +1 -1
  153. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  154. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  155. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  156. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  157. package/lib/skills/runtime-skill-sync/links.js +1 -1
  158. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  159. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  160. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  161. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  162. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  163. package/lib/skills/runtime-skill-sync/push.js +1 -1
  164. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  165. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  166. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  167. package/lib/skills/runtime-skill-sync.js +1 -1
  168. package/lib/skills/skill-presence.js +1 -1
  169. package/lib/utils/access-key-redaction.js +1 -1
  170. package/lib/utils/apply-jq-filter.js +1 -1
  171. package/lib/utils/cli-version-check.js +1 -1
  172. package/lib/utils/cli-version-policy.js +1 -1
  173. package/lib/utils/logger.js +1 -1
  174. package/lib/utils/lossless-json.js +1 -1
  175. package/lib/utils/params.js +1 -1
  176. package/lib/utils/positive-safe-integer.js +1 -1
  177. package/lib/utils/redaction.js +1 -1
  178. package/lib/utils/runtime-user-id.js +1 -1
  179. package/lib/utils/update-notice.js +1 -1
  180. package/lib/utils/version.js +1 -1
  181. package/lib/utils/write-cli-side-channel.js +1 -1
  182. package/package.json +2 -2
  183. package/skills/lovrabet/SKILL.md +1 -1
  184. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a13_0x407c04=a13_0x3609;(function(_0x401627,_0x38b693){const _0x5bb848=a13_0x3609,_0x3b4dfa=_0x401627();while(!![]){try{const _0x61835d=-parseInt(_0x5bb848(0xc9))/0x1*(-parseInt(_0x5bb848(0xe7))/0x2)+parseInt(_0x5bb848(0xac))/0x3*(parseInt(_0x5bb848(0xdd))/0x4)+-parseInt(_0x5bb848(0xd0))/0x5*(parseInt(_0x5bb848(0xd2))/0x6)+parseInt(_0x5bb848(0xbb))/0x7+-parseInt(_0x5bb848(0xa4))/0x8*(parseInt(_0x5bb848(0xbc))/0x9)+parseInt(_0x5bb848(0xfa))/0xa+parseInt(_0x5bb848(0xd6))/0xb*(-parseInt(_0x5bb848(0xe4))/0xc);if(_0x61835d===_0x38b693)break;else _0x3b4dfa['push'](_0x3b4dfa['shift']());}catch(_0xf1feec){_0x3b4dfa['push'](_0x3b4dfa['shift']());}}}(a13_0x51e7,0x1b5b7));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';function a13_0x51e7(){const _0xedfa1d=['20RhOByF','string','Use\x20`','Show\x20current\x20authentication\x20status','scope','Clear\x20the\x20AccessKey\x20from\x20config','accessKey','validation','AccessKey\x20(ak_xxx...)','\x20config.','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','Option\x20B:\x20apps\x20config\x20(','Save\x20the\x20AccessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20the\x20project\x20file)','Tip:\x20you\x20can\x20also\x20run:','status','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','info','project','access_key','1357690DjqbGv','Shorthand\x20for\x20--access-key','str','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','=ak_xxx','Auth\x20mode:\x20','expired','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','\x20(via\x20','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','8BhiZjv','newConfigFileName','test','logout','daily','Option\x20A:\x20','login','\x20auth\x20login\x20--access-key\x20<ak_xxx>','21uhHLaT','\x20doctor','\x20\x20export\x20','code','Clear\x20from\x20global\x20config\x20(default)','ClientAk','Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','write','Saves\x20a\x20new\x20AccessKey\x20to\x20the\x20selected\x20Lovrabet\x20config.\x20An\x20existing\x20key\x20in\x20that\x20scope\x20is\x20overwritten.\x20The\x20confirmation\x20UI\x20does\x20not\x20show\x20the\x20secret.','stdout','userCenterDisplayName','`auth\x20login`\x20does\x20not\x20support\x20--yes.','Device\x20authorization\x20pending.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20try\x20again.','\x20config.\x20Nothing\x20to\x20clear.','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','1495361XRXkrA','251631xiEFOB','cancelled','join','read','project\x20config','yes','\x20env\x20var','\x20auth\x20status','AccessKey:\x20','global\x20config','access-key','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','13902fQgAuX','authRequired','bool','Status:\x20valid','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','\x20Verify:\x20','nonInteractive','155lejqZL','\x20Current\x20env:\x20','16218vxWCUc','env','boolean','success','858krxruV','production','Missing\x20accessKey.','trim','stdin','Read\x20from\x20global\x20config\x20(default)','ACCESS_KEY','66172ZcqsgJ','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','push','AccessKey\x20cleared\x20from\x20','check','global','\x20config','58524LPkSSs','isTTY','auth'];a13_0x51e7=function(){return _0xedfa1d;};return a13_0x51e7();}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';import{maskCliAccessKey}from'../../utils/access-key-redaction.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function showAccessKeyCreateHint(_0x5765a9=USER_ACCESS_KEY_CREATE_URL){const _0x441753=a13_0x3609;writeCliSideChannelLine('AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0x441753(0xb6)]+':'),writeCliSideChannelLine('\x0a'+_0x5765a9+'\x0a'),writeCliSideChannelLine(_0x441753(0xf4)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x441753(0xab));}function buildAccessKeySetupGuide(_0x4f49df=USER_ACCESS_KEY_CREATE_URL){const _0x4841d8=a13_0x3609;return[_0x4841d8(0xf1)+PRODUCT_CONFIG[_0x4841d8(0xb6)]+':',_0x4f49df,_0x4841d8(0xc8)+CLI_BIN_NAME+_0x4841d8(0xa2)][_0x4841d8(0xbe)]('\x0a');}function canPromptForAccessKey(_0x5c9118){const _0x4a9a24=a13_0x3609;return!_0x5c9118[_0x4a9a24(0xcf)]&&process[_0x4a9a24(0xda)][_0x4a9a24(0xe5)]!==![]&&process[_0x4a9a24(0xb5)]['isTTY']!==![];}function resolveAuthScopeFlags(_0x32fcbc){const _0x1971fa=a13_0x3609;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x32fcbc['bool'](_0x1971fa(0xe2)),'explicitProject':_0x32fcbc[_0x1971fa(0xcb)](_0x1971fa(0xf8)),'policy':'global-default'}));}async function resolveAuthWriteInput(_0x2e5f92){const _0x1428e9=a13_0x3609;let _0x2cf00c=(_0x2e5f92[_0x1428e9(0xfc)](_0x1428e9(0xc6))||_0x2e5f92['str']('ak')||'')[_0x1428e9(0xd9)]();const _0x112869=(_0x2e5f92[_0x1428e9(0xfc)]('env')||'')['trim'](),_0x29bde2=''+getUserDomain()+PRODUCT_CONFIG['accessKeyCreatePath'];if(!_0x2cf00c&&canPromptForAccessKey(_0x2e5f92))try{showAccessKeyCreateHint(_0x29bde2),_0x2cf00c=await promptAccessKey('');}catch(_0x1f0e65){if(isAbortPrompt(_0x1f0e65))throw CliErrors[_0x1428e9(0xbd)]();throw _0x1f0e65;}if(!_0x2cf00c)throw CliErrors[_0x1428e9(0xee)](_0x1428e9(0xd8),buildAccessKeySetupGuide(_0x29bde2));if(!ACCESS_KEY_PATTERN[_0x1428e9(0xa6)](_0x2cf00c))throw CliErrors[_0x1428e9(0xee)]('Invalid\x20accessKey\x20format.',_0x1428e9(0xfd));if(!_0x112869)return{'accessKey':_0x2cf00c};const _0x21746e=normalizeEnv(_0x112869);return{'accessKey':_0x2cf00c,'env':isDaily(_0x21746e)?_0x1428e9(0xa8):isDev(_0x21746e)?'development':_0x1428e9(0xd7)};}function a13_0x3609(_0x2ac13f,_0x58d552){_0x2ac13f=_0x2ac13f-0x9e;const _0x51e7ef=a13_0x51e7();let _0x360938=_0x51e7ef[_0x2ac13f];return _0x360938;}export const authDefinitions=[{'service':a13_0x407c04(0xe6),'command':a13_0x407c04(0xaa),'description':a13_0x407c04(0xf3),'risk':a13_0x407c04(0xb3),'confirmationDescription':a13_0x407c04(0xb4),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a13_0x407c04(0xc6),'type':a13_0x407c04(0xe8),'description':a13_0x407c04(0xef)},{'name':'ak','type':a13_0x407c04(0xe8),'description':a13_0x407c04(0xfb)},{'name':a13_0x407c04(0xe2),'type':'boolean','description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':a13_0x407c04(0xf8),'type':a13_0x407c04(0xd4),'description':a13_0x407c04(0xa3),'default':![]}],async 'execute'(_0x121cad){const _0x56e868=a13_0x407c04;if(_0x121cad[_0x56e868(0xcb)](_0x56e868(0xc1)))throw CliErrors[_0x56e868(0xee)](_0x56e868(0xb7),_0x56e868(0xe9)+CLI_BIN_NAME+_0x56e868(0xf6)+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.');const _0x1378e2=(_0x121cad[_0x56e868(0xfc)]('access-key')||_0x121cad[_0x56e868(0xfc)]('ak')||'')[_0x56e868(0xd9)]();if(!_0x1378e2&&_0x121cad[_0x56e868(0xcf)])return{'ok':!![],'message':buildAccessKeySetupGuide(''+getUserDomain()+PRODUCT_CONFIG['accessKeyCreatePath'])};const _0x35e132=await resolveAuthWriteInput(_0x121cad),_0x5d9f35=resolveAuthScopeFlags(_0x121cad),_0x7ea35d=readScopedConfig(_0x5d9f35);_0x7ea35d[_0x56e868(0xed)]=_0x35e132[_0x56e868(0xed)];_0x35e132['env']&&(_0x7ea35d[_0x56e868(0xd3)]=_0x35e132[_0x56e868(0xd3)]);writeScopedConfig(_0x7ea35d,_0x5d9f35);const _0x5ef7df=_0x5d9f35[_0x56e868(0xe2)]?_0x56e868(0xe2):_0x56e868(0xf8),_0x2640bc=_0x7ea35d['env']?_0x56e868(0xd1)+_0x7ea35d[_0x56e868(0xd3)]+'.':'';return{'ok':!![],'message':'AccessKey\x20saved\x20to\x20'+_0x5ef7df+_0x56e868(0xf0)+_0x2640bc+_0x56e868(0xce)+CLI_BIN_NAME+_0x56e868(0xc3)};}},{'service':'auth','command':a13_0x407c04(0xa7),'description':a13_0x407c04(0xec),'risk':a13_0x407c04(0xb3),'confirmationDescription':'Removes\x20the\x20AccessKey\x20from\x20the\x20selected\x20Lovrabet\x20config.\x20Commands\x20that\x20need\x20that\x20key\x20will\x20require\x20login\x20again.','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a13_0x407c04(0xe2),'type':'boolean','description':a13_0x407c04(0xb0),'default':!![]},{'name':a13_0x407c04(0xf8),'type':'boolean','description':a13_0x407c04(0xc7),'default':![]}],async 'execute'(_0x14979e){const _0x2478a1=a13_0x407c04,_0x47af5f=resolveAuthScopeFlags(_0x14979e),_0x563ee5=readScopedConfig(_0x47af5f),_0x1bea79=!!_0x563ee5[_0x2478a1(0xed)];delete _0x563ee5[_0x2478a1(0xed)],writeScopedConfig(_0x563ee5,_0x47af5f);const _0x17302b=_0x47af5f[_0x2478a1(0xe2)]?_0x2478a1(0xe2):_0x2478a1(0xf8);if(_0x1bea79)return{'ok':!![],'message':_0x2478a1(0xe0)+_0x17302b+_0x2478a1(0xf0)};return{'ok':!![],'message':'No\x20AccessKey\x20found\x20in\x20'+_0x17302b+_0x2478a1(0xb9)};}},{'service':a13_0x407c04(0xe6),'command':a13_0x407c04(0xf5),'description':a13_0x407c04(0xea),'risk':a13_0x407c04(0xbf),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'global','type':'boolean','description':a13_0x407c04(0xdb),'default':!![]},{'name':a13_0x407c04(0xf8),'type':a13_0x407c04(0xd4),'description':'Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]},{'name':a13_0x407c04(0xe1),'type':a13_0x407c04(0xd4),'description':a13_0x407c04(0xb2),'default':![]}],async 'execute'(_0x566b17){const _0x385610=a13_0x407c04,_0x5b4b20=resolveAuthScopeFlags(_0x566b17),_0x3ac0e9=readScopedConfig(_0x5b4b20),_0x1db760=productEnvName('ACCESS_KEY'),_0x35b676=productEnv(_0x385610(0xdc))||undefined,_0x2a7ed4=_0x3ac0e9[_0x385610(0xed)]||undefined,_0x3163fe=_0x35b676||_0x2a7ed4,_0xd2794c=_0x35b676?_0x1db760+_0x385610(0xc2):_0x2a7ed4?(_0x5b4b20[_0x385610(0xe2)]?_0x385610(0xe2):'project')+_0x385610(0xe3):null,_0x1ec40c=['Auth\x20mode:\x20'+AUTH_MODE[_0x385610(0xb1)]];if(_0x3163fe){const _0x26ce68=maskCliAccessKey(_0x3163fe);_0x1ec40c['push'](_0x385610(0xc4)+_0x26ce68+(_0xd2794c?_0x385610(0xa1)+_0xd2794c+')':'')),_0x1ec40c[_0x385610(0xdf)](_0x385610(0xcc));}if(!_0x3163fe){_0x1ec40c[_0x385610(0xdf)](''),_0x1ec40c['push'](_0x385610(0xa0)),_0x1ec40c['push'](''),_0x1ec40c['push'](_0x385610(0xa9)+CLI_BIN_NAME+'\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]'),_0x1ec40c[_0x385610(0xdf)](''),_0x1ec40c[_0x385610(0xdf)](_0x385610(0xf2)+PRODUCT_CONFIG[_0x385610(0xa5)]+')'),_0x1ec40c[_0x385610(0xdf)](_0x385610(0xcd)),_0x1ec40c['push'](''),_0x1ec40c[_0x385610(0xdf)]('Option\x20C:\x20environment\x20variable'),_0x1ec40c[_0x385610(0xdf)](_0x385610(0xae)+_0x1db760+_0x385610(0xfe)),_0x1ec40c[_0x385610(0xdf)](''),_0x1ec40c['push']('Then\x20verify\x20with:\x20'+CLI_BIN_NAME+_0x385610(0xc3)),_0x1ec40c[_0x385610(0xdf)](_0x385610(0xba)+CLI_BIN_NAME+_0x385610(0xad));if(_0x566b17[_0x385610(0xcb)](_0x385610(0xe1))){const _0x493864=readStoredDeviceCode();if(_0x493864&&!isStoredDeviceCodeExpired(_0x493864)){const _0x3ac838=getUserDomain(),_0x556489=await fetchDeviceToken(_0x3ac838,_0x493864[_0x385610(0xaf)]);if(_0x556489[_0x385610(0xf5)]===_0x385610(0xd5)&&_0x556489[_0x385610(0xf9)]){const _0x23b1fb={'global':_0x493864['scope']===_0x385610(0xe2)},_0x46f902=readScopedConfig(_0x23b1fb);_0x46f902[_0x385610(0xed)]=_0x556489[_0x385610(0xf9)],writeScopedConfig(_0x46f902,_0x23b1fb),deleteStoredDeviceCode();const _0x415179=_0x556489[_0x385610(0xf9)],_0xf83630=maskCliAccessKey(_0x415179),_0x30cd4c=_0x493864[_0x385610(0xeb)]===_0x385610(0xe2)?_0x385610(0xc5):_0x385610(0xc0);return{'ok':!![],'message':[_0x385610(0x9e)+AUTH_MODE[_0x385610(0xb1)],'AccessKey:\x20'+_0xf83630+_0x385610(0xa1)+_0x30cd4c+')',_0x385610(0xcc)][_0x385610(0xbe)]('\x0a')};}_0x556489['status']===_0x385610(0x9f)&&deleteStoredDeviceCode();throw CliErrors[_0x385610(0xca)](_0x385610(0xb8));}throw CliErrors[_0x385610(0xca)](_0x1ec40c['join']('\x0a'));}}return{'ok':!![],'message':_0x1ec40c[_0x385610(0xbe)]('\x0a')};}},{'service':a13_0x407c04(0xe6),'command':a13_0x407c04(0xf7),'description':a13_0x407c04(0xde),'risk':a13_0x407c04(0xbf),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x37262c){const _0x7fd7fb=a13_0x407c04,_0x52482a=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x52482a,'meta':{'env':_0x37262c['envName']??_0x7fd7fb(0xd7)}}};}},authDeviceDefinition];
1
+ const a13_0x166a21=a13_0x3cb5;function a13_0x2e99(){const _0x2572de=['1581981EWNzeu','Write\x20to\x20global\x20config\x20(default)','Save\x20the\x20AccessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20the\x20project\x20file)','join','AccessKey\x20(ak_xxx...)','project\x20config','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','\x20auth\x20status','string','AccessKey\x20saved\x20to\x20','Removes\x20the\x20AccessKey\x20from\x20the\x20selected\x20Lovrabet\x20config.\x20Commands\x20that\x20need\x20that\x20key\x20will\x20require\x20login\x20again.','global','logout','\x20auth\x20login\x20--access-key\x20<ak_xxx>','2575VAarYN','Device\x20authorization\x20pending.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20try\x20again.','Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','Invalid\x20accessKey\x20format.','success','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','Show\x20current\x20authentication\x20status','write','boolean','trim','userCenterDisplayName','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','bool','project','\x20config','Option\x20A:\x20','test','8595153jjPaXm','stdout','Clear\x20the\x20AccessKey\x20from\x20config','daily','Read\x20from\x20global\x20config\x20(default)','Use\x20`','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','\x20Verify:\x20','10888fzbsdi','\x20config.','1746546fIUeBq','global-default','ACCESS_KEY','\x20config.\x20Nothing\x20to\x20clear.','env','3196350WXbzJO','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','scope','cancelled','info','ClientAk','Status:\x20valid','str','41283208pNpgkK','\x20env\x20var','`auth\x20login`\x20does\x20not\x20support\x20--yes.','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:','Option\x20C:\x20environment\x20variable','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','code','accessKeyCreatePath','177200qKZuNE','\x20doctor','=ak_xxx','stdin','Tip:\x20you\x20can\x20also\x20run:','expired','status','access-key','isTTY','validation','accessKey','Then\x20verify\x20with:\x20','read','check','authRequired','\x20(via\x20','access_key','auth','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','No\x20AccessKey\x20found\x20in\x20','production','nonInteractive','newConfigFileName','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','push','Auth\x20mode:\x20','Saves\x20a\x20new\x20AccessKey\x20to\x20the\x20selected\x20Lovrabet\x20config.\x20An\x20existing\x20key\x20in\x20that\x20scope\x20is\x20overwritten.\x20The\x20confirmation\x20UI\x20does\x20not\x20show\x20the\x20secret.','AccessKey:\x20'];a13_0x2e99=function(){return _0x2572de;};return a13_0x2e99();}(function(_0x4d4251,_0x3fd46d){const _0x1ed0f8=a13_0x3cb5,_0x20374e=_0x4d4251();while(!![]){try{const _0x353ffd=-parseInt(_0x1ed0f8(0xb0))/0x1+parseInt(_0x1ed0f8(0xc6))/0x2+-parseInt(_0x1ed0f8(0xe2))/0x3+parseInt(_0x1ed0f8(0x109))/0x4*(-parseInt(_0x1ed0f8(0xf0))/0x5)+parseInt(_0x1ed0f8(0xb5))/0x6+-parseInt(_0x1ed0f8(0x101))/0x7+parseInt(_0x1ed0f8(0xbd))/0x8;if(_0x353ffd===_0x3fd46d)break;else _0x20374e['push'](_0x20374e['shift']());}catch(_0x35f210){_0x20374e['push'](_0x20374e['shift']());}}}(a13_0x2e99,0xd6640));import{readScopedConfig,writeScopedConfig}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../../constant/product.js';import{AUTH_MODE}from'../../constant/auth-mode.js';import{normalizeEnv,isDaily,isDev}from'../../constant/env.js';import{USER_ACCESS_KEY_CREATE_URL}from'../../constant/url.js';import{CliErrors}from'../../errors.js';import{promptAccessKey,isAbortPrompt}from'../../commands/auth/prompt.js';import{resolveConfigScope,toScopeFlags}from'../../commands/common/config-policy.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{getLoginUserInfo}from'../../core/api-client.js';import{getUserDomain}from'../../constant/domain.js';import{authDeviceDefinition,readStoredDeviceCode,deleteStoredDeviceCode,fetchDeviceToken,isStoredDeviceCodeExpired}from'../../commands/auth/device.js';import{maskCliAccessKey}from'../../utils/access-key-redaction.js';const ACCESS_KEY_PATTERN=/^ak_[A-Za-z0-9]{16,}$/;function showAccessKeyCreateHint(_0x467991=USER_ACCESS_KEY_CREATE_URL){const _0x80aad5=a13_0x3cb5;writeCliSideChannelLine('AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20'+PRODUCT_CONFIG[_0x80aad5(0xfa)]+':'),writeCliSideChannelLine('\x0a'+_0x467991+'\x0a'),writeCliSideChannelLine(_0x80aad5(0xca)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x80aad5(0xef));}function buildAccessKeySetupGuide(_0x5cdb41=USER_ACCESS_KEY_CREATE_URL){const _0x49d4e2=a13_0x3cb5;return[_0x49d4e2(0xc3)+PRODUCT_CONFIG[_0x49d4e2(0xfa)]+':',_0x5cdb41,'Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20'+CLI_BIN_NAME+_0x49d4e2(0xb6)][_0x49d4e2(0xe5)]('\x0a');}function canPromptForAccessKey(_0x43e5e1){const _0xf62842=a13_0x3cb5;return!_0x43e5e1[_0xf62842(0xdb)]&&process[_0xf62842(0xc9)][_0xf62842(0xce)]!==![]&&process[_0xf62842(0x102)][_0xf62842(0xce)]!==![];}function resolveAuthScopeFlags(_0x1e3073){const _0x3dfae9=a13_0x3cb5;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x1e3073['bool'](_0x3dfae9(0xed)),'explicitProject':_0x1e3073[_0x3dfae9(0xfc)](_0x3dfae9(0xfd)),'policy':_0x3dfae9(0xb1)}));}function a13_0x3cb5(_0x264894,_0x255d88){_0x264894=_0x264894-0xaf;const _0x2e9970=a13_0x2e99();let _0x3cb537=_0x2e9970[_0x264894];return _0x3cb537;}async function resolveAuthWriteInput(_0x565473){const _0x780698=a13_0x3cb5;let _0x3ff186=(_0x565473['str']('access-key')||_0x565473[_0x780698(0xbc)]('ak')||'')[_0x780698(0xf9)]();const _0x26dd1f=(_0x565473[_0x780698(0xbc)](_0x780698(0xb4))||'')[_0x780698(0xf9)](),_0x3b95e9=''+getUserDomain()+PRODUCT_CONFIG['accessKeyCreatePath'];if(!_0x3ff186&&canPromptForAccessKey(_0x565473))try{showAccessKeyCreateHint(_0x3b95e9),_0x3ff186=await promptAccessKey('');}catch(_0x4045be){if(isAbortPrompt(_0x4045be))throw CliErrors[_0x780698(0xb8)]();throw _0x4045be;}if(!_0x3ff186)throw CliErrors[_0x780698(0xcf)]('Missing\x20accessKey.',buildAccessKeySetupGuide(_0x3b95e9));if(!ACCESS_KEY_PATTERN[_0x780698(0x100)](_0x3ff186))throw CliErrors[_0x780698(0xcf)](_0x780698(0xf3),_0x780698(0xe8));if(!_0x26dd1f)return{'accessKey':_0x3ff186};const _0x5872af=normalizeEnv(_0x26dd1f);return{'accessKey':_0x3ff186,'env':isDaily(_0x5872af)?_0x780698(0x104):isDev(_0x5872af)?'development':_0x780698(0xda)};}export const authDefinitions=[{'service':a13_0x166a21(0xd7),'command':'login','description':a13_0x166a21(0xe4),'risk':a13_0x166a21(0xf7),'confirmationDescription':a13_0x166a21(0xe0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a13_0x166a21(0xcd),'type':a13_0x166a21(0xea),'description':a13_0x166a21(0xe6)},{'name':'ak','type':a13_0x166a21(0xea),'description':'Shorthand\x20for\x20--access-key'},{'name':'global','type':a13_0x166a21(0xf8),'description':a13_0x166a21(0xe3),'default':!![]},{'name':'project','type':'boolean','description':'Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]}],async 'execute'(_0x3d89dd){const _0x132b2b=a13_0x166a21;if(_0x3d89dd[_0x132b2b(0xfc)]('yes'))throw CliErrors['validation'](_0x132b2b(0xbf),_0x132b2b(0x106)+CLI_BIN_NAME+'\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`'+CLI_BIN_NAME+_0x132b2b(0xdd));const _0x3d4a17=(_0x3d89dd[_0x132b2b(0xbc)](_0x132b2b(0xcd))||_0x3d89dd[_0x132b2b(0xbc)]('ak')||'')[_0x132b2b(0xf9)]();if(!_0x3d4a17&&_0x3d89dd[_0x132b2b(0xdb)])return{'ok':!![],'message':buildAccessKeySetupGuide(''+getUserDomain()+PRODUCT_CONFIG[_0x132b2b(0xc5)])};const _0x3d7bda=await resolveAuthWriteInput(_0x3d89dd),_0x4f73a6=resolveAuthScopeFlags(_0x3d89dd),_0x35d847=readScopedConfig(_0x4f73a6);_0x35d847['accessKey']=_0x3d7bda['accessKey'];_0x3d7bda[_0x132b2b(0xb4)]&&(_0x35d847[_0x132b2b(0xb4)]=_0x3d7bda[_0x132b2b(0xb4)]);writeScopedConfig(_0x35d847,_0x4f73a6);const _0x353617=_0x4f73a6[_0x132b2b(0xed)]?'global':_0x132b2b(0xfd),_0x2fdf68=_0x35d847[_0x132b2b(0xb4)]?'\x20Current\x20env:\x20'+_0x35d847['env']+'.':'';return{'ok':!![],'message':_0x132b2b(0xeb)+_0x353617+'\x20config.'+_0x2fdf68+_0x132b2b(0x108)+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':a13_0x166a21(0xd7),'command':a13_0x166a21(0xee),'description':a13_0x166a21(0x103),'risk':a13_0x166a21(0xf7),'confirmationDescription':a13_0x166a21(0xec),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a13_0x166a21(0xed),'type':a13_0x166a21(0xf8),'description':'Clear\x20from\x20global\x20config\x20(default)','default':!![]},{'name':a13_0x166a21(0xfd),'type':a13_0x166a21(0xf8),'description':a13_0x166a21(0xd8),'default':![]}],async 'execute'(_0x26829b){const _0x52a03b=a13_0x166a21,_0x1c3674=resolveAuthScopeFlags(_0x26829b),_0x73f4cf=readScopedConfig(_0x1c3674),_0x203aff=!!_0x73f4cf[_0x52a03b(0xd0)];delete _0x73f4cf['accessKey'],writeScopedConfig(_0x73f4cf,_0x1c3674);const _0x3dad14=_0x1c3674[_0x52a03b(0xed)]?'global':_0x52a03b(0xfd);if(_0x203aff)return{'ok':!![],'message':'AccessKey\x20cleared\x20from\x20'+_0x3dad14+_0x52a03b(0xaf)};return{'ok':!![],'message':_0x52a03b(0xd9)+_0x3dad14+_0x52a03b(0xb3)};}},{'service':a13_0x166a21(0xd7),'command':a13_0x166a21(0xcc),'description':a13_0x166a21(0xf6),'risk':a13_0x166a21(0xd2),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a13_0x166a21(0xed),'type':'boolean','description':a13_0x166a21(0x105),'default':!![]},{'name':a13_0x166a21(0xfd),'type':'boolean','description':a13_0x166a21(0xfb),'default':![]},{'name':a13_0x166a21(0xd3),'type':a13_0x166a21(0xf8),'description':a13_0x166a21(0xf2),'default':![]}],async 'execute'(_0x4dc122){const _0x2c8009=a13_0x166a21,_0x12cb7c=resolveAuthScopeFlags(_0x4dc122),_0x518a32=readScopedConfig(_0x12cb7c),_0x794501=productEnvName(_0x2c8009(0xb2)),_0x4f4f3c=productEnv(_0x2c8009(0xb2))||undefined,_0x33e46d=_0x518a32[_0x2c8009(0xd0)]||undefined,_0x3d6361=_0x4f4f3c||_0x33e46d,_0x59d3be=_0x4f4f3c?_0x794501+_0x2c8009(0xbe):_0x33e46d?(_0x12cb7c[_0x2c8009(0xed)]?'global':_0x2c8009(0xfd))+_0x2c8009(0xfe):null,_0x5edd0e=[_0x2c8009(0xdf)+AUTH_MODE[_0x2c8009(0xba)]];if(_0x3d6361){const _0x22dca4=maskCliAccessKey(_0x3d6361);_0x5edd0e[_0x2c8009(0xde)](_0x2c8009(0xe1)+_0x22dca4+(_0x59d3be?_0x2c8009(0xd5)+_0x59d3be+')':'')),_0x5edd0e[_0x2c8009(0xde)](_0x2c8009(0xbb));}if(!_0x3d6361){_0x5edd0e[_0x2c8009(0xde)](''),_0x5edd0e[_0x2c8009(0xde)](_0x2c8009(0xc1)),_0x5edd0e[_0x2c8009(0xde)](''),_0x5edd0e[_0x2c8009(0xde)](_0x2c8009(0xff)+CLI_BIN_NAME+_0x2c8009(0x107)),_0x5edd0e[_0x2c8009(0xde)](''),_0x5edd0e[_0x2c8009(0xde)]('Option\x20B:\x20apps\x20config\x20('+PRODUCT_CONFIG[_0x2c8009(0xdc)]+')'),_0x5edd0e[_0x2c8009(0xde)]('{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}'),_0x5edd0e['push'](''),_0x5edd0e[_0x2c8009(0xde)](_0x2c8009(0xc2)),_0x5edd0e[_0x2c8009(0xde)]('\x20\x20export\x20'+_0x794501+_0x2c8009(0xc8)),_0x5edd0e[_0x2c8009(0xde)](''),_0x5edd0e['push'](_0x2c8009(0xd1)+CLI_BIN_NAME+_0x2c8009(0xe9)),_0x5edd0e[_0x2c8009(0xde)](_0x2c8009(0xc0)+CLI_BIN_NAME+_0x2c8009(0xc7));if(_0x4dc122[_0x2c8009(0xfc)]('check')){const _0x1f3821=readStoredDeviceCode();if(_0x1f3821&&!isStoredDeviceCodeExpired(_0x1f3821)){const _0x4e4c4b=getUserDomain(),_0x309736=await fetchDeviceToken(_0x4e4c4b,_0x1f3821[_0x2c8009(0xc4)]);if(_0x309736['status']===_0x2c8009(0xf4)&&_0x309736[_0x2c8009(0xd6)]){const _0x38eee1={'global':_0x1f3821[_0x2c8009(0xb7)]===_0x2c8009(0xed)},_0x1d1b50=readScopedConfig(_0x38eee1);_0x1d1b50[_0x2c8009(0xd0)]=_0x309736[_0x2c8009(0xd6)],writeScopedConfig(_0x1d1b50,_0x38eee1),deleteStoredDeviceCode();const _0x23bbab=_0x309736[_0x2c8009(0xd6)],_0x421952=maskCliAccessKey(_0x23bbab),_0x42dc3f=_0x1f3821[_0x2c8009(0xb7)]===_0x2c8009(0xed)?'global\x20config':_0x2c8009(0xe7);return{'ok':!![],'message':[_0x2c8009(0xdf)+AUTH_MODE[_0x2c8009(0xba)],'AccessKey:\x20'+_0x421952+_0x2c8009(0xd5)+_0x42dc3f+')',_0x2c8009(0xbb)][_0x2c8009(0xe5)]('\x0a')};}_0x309736[_0x2c8009(0xcc)]===_0x2c8009(0xcb)&&deleteStoredDeviceCode();throw CliErrors[_0x2c8009(0xd4)](_0x2c8009(0xf1));}throw CliErrors['authRequired'](_0x5edd0e['join']('\x0a'));}}return{'ok':!![],'message':_0x5edd0e[_0x2c8009(0xe5)]('\x0a')};}},{'service':a13_0x166a21(0xd7),'command':a13_0x166a21(0xb9),'description':a13_0x166a21(0xf5),'risk':'read','requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0xde4fdd){const _0x26ead7=a13_0x166a21,_0x113d67=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x113d67,'meta':{'env':_0xde4fdd['envName']??_0x26ead7(0xda)}}};}},authDeviceDefinition];
@@ -1 +1 @@
1
- (function(_0x28f520,_0x336fde){const _0x60aa66=a14_0x46c4,_0x482a1e=_0x28f520();while(!![]){try{const _0x3b26e3=-parseInt(_0x60aa66(0x1be))/0x1+parseInt(_0x60aa66(0x1bb))/0x2+parseInt(_0x60aa66(0x1c0))/0x3+parseInt(_0x60aa66(0x1b2))/0x4*(parseInt(_0x60aa66(0x1ba))/0x5)+-parseInt(_0x60aa66(0x1b8))/0x6+parseInt(_0x60aa66(0x1b3))/0x7+parseInt(_0x60aa66(0x1b9))/0x8;if(_0x3b26e3===_0x336fde)break;else _0x482a1e['push'](_0x482a1e['shift']());}catch(_0x45e0e3){_0x482a1e['push'](_0x482a1e['shift']());}}}(a14_0x6d17,0x1890f));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x274bac=a14_0x46c4;super('User\x20aborted\x20prompt'),this['name']=_0x274bac(0x1b4);}}function createSafeRl(){const _0x34d0ff=createInterface({'input':process['stdin'],'output':process['stdout']});let _0x5877bb;const _0xc97eaf=new Promise((_0x1aace3,_0x3fd8bc)=>{_0x5877bb=()=>{const _0x1ee578=a14_0x46c4;_0x5877bb&&(_0x34d0ff[_0x1ee578(0x1b7)](_0x1ee578(0x1c1),_0x5877bb),_0x5877bb=undefined);try{_0x34d0ff[_0x1ee578(0x1bf)]();}catch{}_0x3fd8bc(new AbortPrompt());},_0x34d0ff['once']('SIGINT',_0x5877bb);}),_0x555fdc=()=>{const _0x50bb79=a14_0x46c4;_0x5877bb&&(_0x34d0ff[_0x50bb79(0x1b7)](_0x50bb79(0x1c1),_0x5877bb),_0x5877bb=undefined);try{_0x34d0ff[_0x50bb79(0x1bf)]();}catch{}};return{'rl':_0x34d0ff,'abortPromise':_0xc97eaf,'disposeSuccess':_0x555fdc};}function a14_0x6d17(){const _0x29fab3=['163960IVGXhj','552937NoGDtq','AbortPrompt','AccessKey\x20(','race','removeListener','780882wkpCzA','613992gKQMUt','10xTfTrt','196632ZfMPxo','AccessKey\x20(paste\x20ak_...):\x20','name','159512USbOVg','close','162738zrhLeM','SIGINT','):\x20','question'];a14_0x6d17=function(){return _0x29fab3;};return a14_0x6d17();}export async function promptAccessKey(_0x5b634c=''){const _0x1bf23d=a14_0x46c4,{rl:_0x50bb36,abortPromise:_0x23c52a,disposeSuccess:_0x51155e}=createSafeRl(),_0x525914=new Promise(_0x2a41bf=>{const _0x57d05e=a14_0x46c4,_0x27fe80=_0x5b634c?_0x57d05e(0x1b5)+_0x5b634c+_0x57d05e(0x1c2):_0x57d05e(0x1bc);_0x50bb36[_0x57d05e(0x1b1)](_0x27fe80,_0x38ee68=>{_0x51155e(),_0x2a41bf(_0x38ee68['trim']()||_0x5b634c);});});return Promise[_0x1bf23d(0x1b6)]([_0x525914,_0x23c52a]);}function a14_0x46c4(_0x463356,_0x303be9){_0x463356=_0x463356-0x1b1;const _0x6d1718=a14_0x6d17();let _0x46c4af=_0x6d1718[_0x463356];return _0x46c4af;}export function isAbortPrompt(_0x2d1a2c){const _0x50b7b7=a14_0x46c4;return _0x2d1a2c instanceof Error&&_0x2d1a2c[_0x50b7b7(0x1bd)]===_0x50b7b7(0x1b4);}
1
+ (function(_0x594ad8,_0x801d3a){const _0xf55f1b=a14_0x1673,_0x5a25f8=_0x594ad8();while(!![]){try{const _0x54bcd7=parseInt(_0xf55f1b(0x6c))/0x1*(parseInt(_0xf55f1b(0x73))/0x2)+parseInt(_0xf55f1b(0x74))/0x3+parseInt(_0xf55f1b(0x68))/0x4*(-parseInt(_0xf55f1b(0x7a))/0x5)+-parseInt(_0xf55f1b(0x6b))/0x6+parseInt(_0xf55f1b(0x79))/0x7*(-parseInt(_0xf55f1b(0x67))/0x8)+-parseInt(_0xf55f1b(0x69))/0x9+parseInt(_0xf55f1b(0x6a))/0xa*(parseInt(_0xf55f1b(0x77))/0xb);if(_0x54bcd7===_0x801d3a)break;else _0x5a25f8['push'](_0x5a25f8['shift']());}catch(_0x7986be){_0x5a25f8['push'](_0x5a25f8['shift']());}}}(a14_0x2aec,0xb6b2c));import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x1b9c3f=a14_0x1673;super(_0x1b9c3f(0x75)),this[_0x1b9c3f(0x6e)]=_0x1b9c3f(0x72);}}function a14_0x2aec(){const _0xf6ac58=['688dGoxBr','795964MzcOOj','2342835JJHAcG','10CPVLSQ','2219436GkXtBA','125cWOWce','close','name','question','stdin','):\x20','AbortPrompt','10382hVHvmr','3472107JZnsKX','User\x20aborted\x20prompt','SIGINT','16064257zxhIEx','removeListener','88893WgmLtV','20JIquoT'];a14_0x2aec=function(){return _0xf6ac58;};return a14_0x2aec();}function createSafeRl(){const _0x4c72b8=a14_0x1673,_0x25db3f=createInterface({'input':process[_0x4c72b8(0x70)],'output':process['stdout']});let _0x3e10d4;const _0x20845f=new Promise((_0x3b20d1,_0x57398b)=>{const _0x322949=_0x4c72b8;_0x3e10d4=()=>{const _0x3d3cbe=a14_0x1673;_0x3e10d4&&(_0x25db3f[_0x3d3cbe(0x78)](_0x3d3cbe(0x76),_0x3e10d4),_0x3e10d4=undefined);try{_0x25db3f['close']();}catch{}_0x57398b(new AbortPrompt());},_0x25db3f['once'](_0x322949(0x76),_0x3e10d4);}),_0x1b55bc=()=>{const _0x995adb=_0x4c72b8;_0x3e10d4&&(_0x25db3f[_0x995adb(0x78)](_0x995adb(0x76),_0x3e10d4),_0x3e10d4=undefined);try{_0x25db3f[_0x995adb(0x6d)]();}catch{}};return{'rl':_0x25db3f,'abortPromise':_0x20845f,'disposeSuccess':_0x1b55bc};}function a14_0x1673(_0x52788b,_0x4ab32f){_0x52788b=_0x52788b-0x67;const _0x2aecad=a14_0x2aec();let _0x1673d6=_0x2aecad[_0x52788b];return _0x1673d6;}export async function promptAccessKey(_0x2e0f66=''){const {rl:_0x3da673,abortPromise:_0x418f22,disposeSuccess:_0x33fae2}=createSafeRl(),_0x3a0775=new Promise(_0x33f59a=>{const _0x5c71ef=a14_0x1673,_0x2fa141=_0x2e0f66?'AccessKey\x20('+_0x2e0f66+_0x5c71ef(0x71):'AccessKey\x20(paste\x20ak_...):\x20';_0x3da673[_0x5c71ef(0x6f)](_0x2fa141,_0x3b4546=>{_0x33fae2(),_0x33f59a(_0x3b4546['trim']()||_0x2e0f66);});});return Promise['race']([_0x3a0775,_0x418f22]);}export function isAbortPrompt(_0x128c25){const _0x2c32f3=a14_0x1673;return _0x128c25 instanceof Error&&_0x128c25[_0x2c32f3(0x6e)]==='AbortPrompt';}
@@ -1 +1 @@
1
- const a15_0x8b0416=a15_0x15ff;function a15_0x2711(){const _0x8454c3=['1311863NDTgkY','appCode','(none)','9vrLKNX','gmtModified','49934790Asxnkk','Get\x20a\x20Backend\x20Function\x20endpoint\x20contract\x20by\x20function\x20name','4BjrhxW','Backend\x20Function\x20name','name','48GEidju','1054794uHvFkH','775298ZvyoVm','7148255getBAq','version','str','2957205bkRmBY','3209720zJxnGT','detail','read','bff'];a15_0x2711=function(){return _0x8454c3;};return a15_0x2711();}(function(_0x26046f,_0x3b81fc){const _0xecfae6=a15_0x15ff,_0x350623=_0x26046f();while(!![]){try{const _0x3e9524=parseInt(_0xecfae6(0xcd))/0x1+parseInt(_0xecfae6(0xce))/0x2+parseInt(_0xecfae6(0xd2))/0x3+parseInt(_0xecfae6(0xde))/0x4*(parseInt(_0xecfae6(0xcf))/0x5)+-parseInt(_0xecfae6(0xe1))/0x6*(-parseInt(_0xecfae6(0xd7))/0x7)+parseInt(_0xecfae6(0xd3))/0x8*(parseInt(_0xecfae6(0xda))/0x9)+-parseInt(_0xecfae6(0xdc))/0xa;if(_0x3e9524===_0x3b81fc)break;else _0x350623['push'](_0x350623['shift']());}catch(_0x16f662){_0x350623['push'](_0x350623['shift']());}}}(a15_0x2711,0xbaba5));import{getBffEndpointContract}from'../../core/api-client.js';import{NAME_FLAG}from'../../commands/common/flags.js';function a15_0x15ff(_0x20d3aa,_0x502d9b){_0x20d3aa=_0x20d3aa-0xcd;const _0x2711f7=a15_0x2711();let _0x15ff1a=_0x2711f7[_0x20d3aa];return _0x15ff1a;}export const bffDetail={'service':a15_0x8b0416(0xd6),'command':a15_0x8b0416(0xd4),'description':a15_0x8b0416(0xdd),'risk':a15_0x8b0416(0xd5),'flags':[{...NAME_FLAG,'required':!![],'description':a15_0x8b0416(0xdf)}],async 'execute'(_0x118565){const _0x3e8de8=a15_0x8b0416,_0x577f67=await getBffEndpointContract(_0x118565['appCode'],_0x118565[_0x3e8de8(0xd1)](_0x3e8de8(0xe0)));return{'ok':!![],'data':{'appCode':_0x577f67[_0x3e8de8(0xd8)],'functionName':_0x577f67['functionName'],'description':_0x577f67['description']||_0x3e8de8(0xd9),'version':_0x577f67[_0x3e8de8(0xd0)],'gmtModified':_0x577f67[_0x3e8de8(0xdb)]}};}};
1
+ const a15_0x33f313=a15_0xd9ca;(function(_0x1fc92f,_0x4a8921){const _0x19a225=a15_0xd9ca,_0x5d9fd7=_0x1fc92f();while(!![]){try{const _0x26b6ed=-parseInt(_0x19a225(0x1d0))/0x1+-parseInt(_0x19a225(0x1c5))/0x2+-parseInt(_0x19a225(0x1c6))/0x3+-parseInt(_0x19a225(0x1c8))/0x4+parseInt(_0x19a225(0x1cb))/0x5+parseInt(_0x19a225(0x1d1))/0x6*(-parseInt(_0x19a225(0x1c9))/0x7)+parseInt(_0x19a225(0x1cd))/0x8*(parseInt(_0x19a225(0x1ce))/0x9);if(_0x26b6ed===_0x4a8921)break;else _0x5d9fd7['push'](_0x5d9fd7['shift']());}catch(_0xb30c9b){_0x5d9fd7['push'](_0x5d9fd7['shift']());}}}(a15_0xb8d4,0x4a9f9));import{getBffEndpointContract}from'../../core/api-client.js';import{NAME_FLAG}from'../../commands/common/flags.js';function a15_0xd9ca(_0x215525,_0x417c4c){_0x215525=_0x215525-0x1be;const _0xb8d412=a15_0xb8d4();let _0xd9ca2f=_0xb8d412[_0x215525];return _0xd9ca2f;}export const bffDetail={'service':'bff','command':a15_0x33f313(0x1c7),'description':a15_0x33f313(0x1cc),'risk':a15_0x33f313(0x1bf),'flags':[{...NAME_FLAG,'required':!![],'description':a15_0x33f313(0x1cf)}],async 'execute'(_0x118165){const _0x16afc0=a15_0x33f313,_0x1854b5=await getBffEndpointContract(_0x118165[_0x16afc0(0x1c1)],_0x118165[_0x16afc0(0x1ca)](_0x16afc0(0x1c0)));return{'ok':!![],'data':{'appCode':_0x1854b5[_0x16afc0(0x1c1)],'functionName':_0x1854b5[_0x16afc0(0x1c3)],'description':_0x1854b5[_0x16afc0(0x1c4)]||_0x16afc0(0x1c2),'version':_0x1854b5[_0x16afc0(0x1d2)],'gmtModified':_0x1854b5[_0x16afc0(0x1be)]}};}};function a15_0xb8d4(){const _0x56f2a6=['description','856862LkFBqA','370935EdkYOO','detail','940880RiUsTN','2681875wPtoDR','str','1976985QrQWTC','Get\x20a\x20Backend\x20Function\x20endpoint\x20contract\x20by\x20function\x20name','11938856ulwxgD','9JLTAHT','Backend\x20Function\x20name','411676ZXXSQM','6EXhZtn','version','gmtModified','read','name','appCode','(none)','functionName'];a15_0xb8d4=function(){return _0x56f2a6;};return a15_0xb8d4();}
@@ -1 +1 @@
1
- const a16_0x596fdd=a16_0x174d;function a16_0x174d(_0x4271dc,_0x137ad3){_0x4271dc=_0x4271dc-0x143;const _0x494754=a16_0x4947();let _0x174d3c=_0x494754[_0x4271dc];return _0x174d3c;}(function(_0x1094b5,_0x3d4cd6){const _0x7e9247=a16_0x174d,_0x58b90d=_0x1094b5();while(!![]){try{const _0x1f55f5=parseInt(_0x7e9247(0x14d))/0x1+-parseInt(_0x7e9247(0x146))/0x2+parseInt(_0x7e9247(0x14f))/0x3*(-parseInt(_0x7e9247(0x14b))/0x4)+parseInt(_0x7e9247(0x147))/0x5*(parseInt(_0x7e9247(0x145))/0x6)+-parseInt(_0x7e9247(0x150))/0x7+-parseInt(_0x7e9247(0x144))/0x8+-parseInt(_0x7e9247(0x14a))/0x9*(-parseInt(_0x7e9247(0x152))/0xa);if(_0x1f55f5===_0x3d4cd6)break;else _0x58b90d['push'](_0x58b90d['shift']());}catch(_0x5e384d){_0x58b90d['push'](_0x58b90d['shift']());}}}(a16_0x4947,0x1cc03));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';function a16_0x4947(){const _0x3f23c4=['name','117csYkcC','4PNrSDa','read','34984HVUrTD','exec','386418OvreXq','94465TzJcOR','Execute\x20a\x20Backend\x20Function\x20script\x20by\x20function\x20name','297090EASgIR','str','691320qSmHBj','42sdhKUG','369622fbxkNE','78635znyogc','Backend\x20Function\x20name\x20to\x20execute'];a16_0x4947=function(){return _0x3f23c4;};return a16_0x4947();}import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':'bff','command':a16_0x596fdd(0x14e),'description':a16_0x596fdd(0x151),'risk':a16_0x596fdd(0x14c),'flags':[{...NAME_FLAG,'required':!![],'description':a16_0x596fdd(0x148)},PARAMS_FLAG],async 'execute'(_0x3999b1){const _0x40df1d=a16_0x596fdd,_0x16a362=parseJsonParams(_0x3999b1[_0x40df1d(0x143)]('params')),_0x4cd548=Date['now'](),_0x1401bd=await executeSdkBff(_0x3999b1[_0x40df1d(0x143)](_0x40df1d(0x149)),_0x16a362),_0x21affa=Date['now']()-_0x4cd548;return{'ok':!![],'data':{'result':_0x1401bd,'elapsed':_0x21affa},'message':'Backend\x20Function\x20executed\x20in\x20'+_0x21affa+'ms'};}};
1
+ function a16_0x1b19(){const _0x342ca9=['627786hFNGyw','Execute\x20a\x20Backend\x20Function\x20script\x20by\x20function\x20name','Backend\x20Function\x20name\x20to\x20execute','name','params','8upssEn','Backend\x20Function\x20executed\x20in\x20','182355ZGmWfa','18htGfZb','182091DGuInh','160998lYDGOr','bff','3auykMw','720734SCVKyi','665424Qryqzs','read','now','str','120940gZVDbl'];a16_0x1b19=function(){return _0x342ca9;};return a16_0x1b19();}const a16_0x227981=a16_0x26e7;(function(_0x2e48c9,_0x5e328b){const _0x175a73=a16_0x26e7,_0x42297d=_0x2e48c9();while(!![]){try{const _0xd52c91=-parseInt(_0x175a73(0xdd))/0x1+-parseInt(_0x175a73(0xde))/0x2*(parseInt(_0x175a73(0xe0))/0x3)+parseInt(_0x175a73(0xcf))/0x4+parseInt(_0x175a73(0xdb))/0x5+parseInt(_0x175a73(0xd4))/0x6+parseInt(_0x175a73(0xe1))/0x7*(parseInt(_0x175a73(0xd9))/0x8)+parseInt(_0x175a73(0xdc))/0x9*(-parseInt(_0x175a73(0xd3))/0xa);if(_0xd52c91===_0x5e328b)break;else _0x42297d['push'](_0x42297d['shift']());}catch(_0x1d9a85){_0x42297d['push'](_0x42297d['shift']());}}}(a16_0x1b19,0x1e2fa));import{executeSdkBff}from'../../core/sdk-client.js';function a16_0x26e7(_0x47c968,_0x4090ea){_0x47c968=_0x47c968-0xcf;const _0x1b1902=a16_0x1b19();let _0x26e760=_0x1b1902[_0x47c968];return _0x26e760;}import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a16_0x227981(0xdf),'command':'exec','description':a16_0x227981(0xd5),'risk':a16_0x227981(0xd0),'flags':[{...NAME_FLAG,'required':!![],'description':a16_0x227981(0xd6)},PARAMS_FLAG],async 'execute'(_0x5d43d2){const _0x32db70=a16_0x227981,_0x230990=parseJsonParams(_0x5d43d2[_0x32db70(0xd2)](_0x32db70(0xd8))),_0x47e0be=Date[_0x32db70(0xd1)](),_0x5d3776=await executeSdkBff(_0x5d43d2[_0x32db70(0xd2)](_0x32db70(0xd7)),_0x230990),_0x2ab731=Date['now']()-_0x47e0be;return{'ok':!![],'data':{'result':_0x5d3776,'elapsed':_0x2ab731},'message':_0x32db70(0xda)+_0x2ab731+'ms'};}};
@@ -1 +1 @@
1
- (function(_0x8ad58e,_0x26ec1d){const _0x14c0f0=a17_0x5083,_0x57a0c8=_0x8ad58e();while(!![]){try{const _0x591873=parseInt(_0x14c0f0(0x7d))/0x1+-parseInt(_0x14c0f0(0x81))/0x2+-parseInt(_0x14c0f0(0x7b))/0x3*(parseInt(_0x14c0f0(0x78))/0x4)+parseInt(_0x14c0f0(0x7a))/0x5+parseInt(_0x14c0f0(0x79))/0x6+-parseInt(_0x14c0f0(0x80))/0x7*(parseInt(_0x14c0f0(0x7f))/0x8)+-parseInt(_0x14c0f0(0x7e))/0x9*(-parseInt(_0x14c0f0(0x7c))/0xa);if(_0x591873===_0x26ec1d)break;else _0x57a0c8['push'](_0x57a0c8['shift']());}catch(_0x5e91a3){_0x57a0c8['push'](_0x57a0c8['shift']());}}}(a17_0x4fa5,0x435f4));function a17_0x5083(_0x3682a0,_0x42daa2){_0x3682a0=_0x3682a0-0x78;const _0x4fa5e4=a17_0x4fa5();let _0x50831a=_0x4fa5e4[_0x3682a0];return _0x50831a;}import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];function a17_0x4fa5(){const _0x31dc03=['2385AwxPMk','2120456FBwcnc','7QzQhvc','534536jGIeLH','12ZJYqkk','203622Vowsun','385380SprPmE','304659kUYCjH','21770cUrvkh','425022PudCGI'];a17_0x4fa5=function(){return _0x31dc03;};return a17_0x4fa5();}
1
+ function a17_0x4bb8(){const _0x3bf0be=['440791cqBPYD','3487680MXvnik','494248eCmaeB','3519404qeWuqo','679530URgrGN','3177846QqiCQm','8437768cHEktg','2RabzNK'];a17_0x4bb8=function(){return _0x3bf0be;};return a17_0x4bb8();}(function(_0x5b4745,_0x59f53d){const _0x292768=a17_0x8c61,_0xbaba18=_0x5b4745();while(!![]){try{const _0xe65383=parseInt(_0x292768(0x1ed))/0x1*(parseInt(_0x292768(0x1ec))/0x2)+-parseInt(_0x292768(0x1f2))/0x3+parseInt(_0x292768(0x1ef))/0x4+parseInt(_0x292768(0x1ee))/0x5+parseInt(_0x292768(0x1f1))/0x6+-parseInt(_0x292768(0x1f0))/0x7+parseInt(_0x292768(0x1eb))/0x8;if(_0xe65383===_0x59f53d)break;else _0xbaba18['push'](_0xbaba18['shift']());}catch(_0x1fb032){_0xbaba18['push'](_0xbaba18['shift']());}}}(a17_0x4bb8,0xd3de3));import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';function a17_0x8c61(_0x5546af,_0x4ddf34){_0x5546af=_0x5546af-0x1eb;const _0x4bb8eb=a17_0x4bb8();let _0x8c6166=_0x4bb8eb[_0x5546af];return _0x8c6166;}export const bffDefinitions=[bffDetail,bffExec];
@@ -1 +1 @@
1
- function a18_0x2da9(){const _0xe23397=['6DMYXpc','Installing\x20CLI\x20Built-in\x20Skill\x20from\x20the\x20npm\x20package.','cli-skill','1011130QZJvLW','3LUkmaF','INSTALL_FAILED','1035448wGAiyl','4008310IVXkvc','setLogPath','code','Resolve\x20the\x20Skills\x20CLI\x20installation\x20issue\x20and\x20run:\x20','apiError','inherit','install','skillVersion','Built-in\x20Skill\x20install\x20failed\x20[','cli-skill-install','installedPath','nonInteractive','pipe','705279iGuPjL','Install\x20the\x20built-in\x20CLI\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','read','54BgOTUs','228291RQKfGR','cwd','CLI\x20Built-in\x20Skill\x20','1040522RrKlsM','1566148BzpKRy','repairCommand','unknown'];a18_0x2da9=function(){return _0xe23397;};return a18_0x2da9();}const a18_0x3b1230=a18_0x5e64;function a18_0x5e64(_0x319d47,_0x41b53c){_0x319d47=_0x319d47-0xef;const _0x2da98e=a18_0x2da9();let _0x5e6454=_0x2da98e[_0x319d47];return _0x5e6454;}(function(_0x54eab5,_0x3e99d2){const _0x2e07a2=a18_0x5e64,_0x1991e4=_0x54eab5();while(!![]){try{const _0x30417f=-parseInt(_0x2e07a2(0x102))/0x1+-parseInt(_0x2e07a2(0x109))/0x2+-parseInt(_0x2e07a2(0xf2))/0x3*(parseInt(_0x2e07a2(0x10a))/0x4)+parseInt(_0x2e07a2(0xf1))/0x5*(-parseInt(_0x2e07a2(0x10d))/0x6)+-parseInt(_0x2e07a2(0x106))/0x7+-parseInt(_0x2e07a2(0xf4))/0x8+parseInt(_0x2e07a2(0x105))/0x9*(parseInt(_0x2e07a2(0xf5))/0xa);if(_0x30417f===_0x3e99d2)break;else _0x1991e4['push'](_0x1991e4['shift']());}catch(_0x866503){_0x1991e4['push'](_0x1991e4['shift']());}}}(a18_0x2da9,0x676d7));import{CliErrors}from'../../errors.js';import{installBuiltinSkill}from'../../skills/builtin-skill.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a18_0x3b1230(0xf0),'command':a18_0x3b1230(0xfb),'description':a18_0x3b1230(0x103),'risk':a18_0x3b1230(0x104),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x121727){const _0x11a359=a18_0x3b1230;logger[_0x11a359(0xf6)](process[_0x11a359(0x107)]()),logger['info'](_0x11a359(0xfe),_0x11a359(0xef));const _0x5caecb=installBuiltinSkill({'stdio':_0x121727[_0x11a359(0x100)]?_0x11a359(0x101):_0x11a359(0xfa)});if(!_0x5caecb['ok'])throw CliErrors[_0x11a359(0xf9)](_0x11a359(0xfd)+(_0x5caecb[_0x11a359(0xf7)]||_0x11a359(0xf3))+']:\x20'+(_0x5caecb['error']||_0x11a359(0x10c)),_0x11a359(0xf8)+_0x5caecb[_0x11a359(0x10b)]);const _0x33c316=_0x5caecb[_0x11a359(0xff)]?'\x20at\x20'+_0x5caecb[_0x11a359(0xff)]:'';return console['log'](_0x5caecb['changed']?_0x11a359(0x108)+_0x5caecb[_0x11a359(0xfc)]+'\x20installed'+_0x33c316:'CLI\x20Built-in\x20Skill\x20'+_0x5caecb[_0x11a359(0xfc)]+'\x20is\x20already\x20current'+_0x33c316),{'ok':!![]};}}];
1
+ const a18_0x49e2d2=a18_0x2f33;(function(_0x1a55bf,_0x2e7af1){const _0x28cb33=a18_0x2f33,_0x581ca7=_0x1a55bf();while(!![]){try{const _0x1964a7=parseInt(_0x28cb33(0x11c))/0x1+parseInt(_0x28cb33(0x120))/0x2*(-parseInt(_0x28cb33(0x129))/0x3)+parseInt(_0x28cb33(0x116))/0x4*(parseInt(_0x28cb33(0x10f))/0x5)+parseInt(_0x28cb33(0x10e))/0x6+parseInt(_0x28cb33(0x123))/0x7*(-parseInt(_0x28cb33(0x10c))/0x8)+-parseInt(_0x28cb33(0x114))/0x9*(parseInt(_0x28cb33(0x11a))/0xa)+-parseInt(_0x28cb33(0x121))/0xb*(parseInt(_0x28cb33(0x111))/0xc);if(_0x1964a7===_0x2e7af1)break;else _0x581ca7['push'](_0x581ca7['shift']());}catch(_0x203219){_0x581ca7['push'](_0x581ca7['shift']());}}}(a18_0x106b,0x9e8da));import{CliErrors}from'../../errors.js';import{installBuiltinSkill}from'../../skills/builtin-skill.js';function a18_0x2f33(_0x5515d2,_0xa6ead5){_0x5515d2=_0x5515d2-0x10c;const _0x106be0=a18_0x106b();let _0x2f33eb=_0x106be0[_0x5515d2];return _0x2f33eb;}function a18_0x106b(){const _0x320092=['installedPath','error','784mXhSNg','read','6409218QPvQit','110015gVQseX','\x20at\x20','72lwoYQT','Install\x20the\x20built-in\x20CLI\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','\x20is\x20already\x20current','4388058pAqWtR','code','176UBVzLc','install','pipe','changed','10KGzBwS','\x20installed','1191415GPpICS','Built-in\x20Skill\x20install\x20failed\x20[','INSTALL_FAILED','unknown','4FQWume','1531387IfcfDS','info','4571xDPqYb','Resolve\x20the\x20Skills\x20CLI\x20installation\x20issue\x20and\x20run:\x20','Installing\x20CLI\x20Built-in\x20Skill\x20from\x20the\x20npm\x20package.','CLI\x20Built-in\x20Skill\x20',']:\x20','skillVersion','1787187GScprP'];a18_0x106b=function(){return _0x320092;};return a18_0x106b();}import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':'cli-skill','command':a18_0x49e2d2(0x117),'description':a18_0x49e2d2(0x112),'risk':a18_0x49e2d2(0x10d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x5e9c41){const _0x55f811=a18_0x49e2d2;logger['setLogPath'](process['cwd']()),logger[_0x55f811(0x122)]('cli-skill-install',_0x55f811(0x125));const _0x4ed1d4=installBuiltinSkill({'stdio':_0x5e9c41['nonInteractive']?_0x55f811(0x118):'inherit'});if(!_0x4ed1d4['ok'])throw CliErrors['apiError'](_0x55f811(0x11d)+(_0x4ed1d4[_0x55f811(0x115)]||_0x55f811(0x11e))+_0x55f811(0x127)+(_0x4ed1d4[_0x55f811(0x12b)]||_0x55f811(0x11f)),_0x55f811(0x124)+_0x4ed1d4['repairCommand']);const _0x239dcb=_0x4ed1d4[_0x55f811(0x12a)]?_0x55f811(0x110)+_0x4ed1d4[_0x55f811(0x12a)]:'';return console['log'](_0x4ed1d4[_0x55f811(0x119)]?'CLI\x20Built-in\x20Skill\x20'+_0x4ed1d4[_0x55f811(0x128)]+_0x55f811(0x11b)+_0x239dcb:_0x55f811(0x126)+_0x4ed1d4[_0x55f811(0x128)]+_0x55f811(0x113)+_0x239dcb),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x320699,_0x19c399){const _0x5cefff=a19_0x3a48,_0x4a5bda=_0x320699();while(!![]){try{const _0x472b15=-parseInt(_0x5cefff(0x9f))/0x1+parseInt(_0x5cefff(0xa6))/0x2*(parseInt(_0x5cefff(0xa5))/0x3)+-parseInt(_0x5cefff(0x9a))/0x4+parseInt(_0x5cefff(0xa8))/0x5+parseInt(_0x5cefff(0xa9))/0x6+parseInt(_0x5cefff(0x98))/0x7*(-parseInt(_0x5cefff(0xab))/0x8)+parseInt(_0x5cefff(0xa2))/0x9*(parseInt(_0x5cefff(0xa7))/0xa);if(_0x472b15===_0x19c399)break;else _0x4a5bda['push'](_0x4a5bda['shift']());}catch(_0x2da986){_0x4a5bda['push'](_0x4a5bda['shift']());}}}(a19_0x31d9,0x1b665));import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';function a19_0x31d9(){const _0x9ffe3c=['inProject','56gNXPMj','project','31297YMbZwL','newConfigFileName','794828iLWiNG','global-default','global','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','Not\x20inside\x20a\x20project\x20(no\x20','56210qThDNu','Use\x20only\x20one\x20config\x20scope\x20flag.','validation','27NtxhrR','project-or-global-explicit','\x20found).','382971mTvHSV','2rMcuSl','848690ZnbObK','69470bdNuhX','13710IeMIWA'];a19_0x31d9=function(){return _0x9ffe3c;};return a19_0x31d9();}function a19_0x3a48(_0x2b2230,_0xfa3ad4){_0x2b2230=_0x2b2230-0x98;const _0x31d984=a19_0x31d9();let _0x3a485b=_0x31d984[_0x2b2230];return _0x3a485b;}export{buildAppProfileListFields,CONFIG_ENUM_VALUES,CLI_PROTECTED_CONFIG_KEYS,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isCliProtectedConfigKey,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export function resolveConfigScope(_0x4ffdd4){const _0x38f5ec=a19_0x3a48,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x2d3ce2}=_0x4ffdd4;if(explicitGlobal&&explicitProject)throw CliErrors[_0x38f5ec(0xa1)](_0x38f5ec(0x9d),_0x38f5ec(0xa0));if(explicitGlobal)return _0x38f5ec(0x9c);if(explicitProject)return _0x38f5ec(0xac);switch(_0x2d3ce2){case _0x38f5ec(0x9b):return _0x38f5ec(0x9c);case _0x38f5ec(0xa3):if(!(_0x4ffdd4[_0x38f5ec(0xaa)]??isInProject()))throw CliErrors['validation'](_0x38f5ec(0x9e)+PRODUCT_CONFIG['newConfigFileName']+_0x38f5ec(0xa4),'Add\x20--global\x20to\x20write\x20to\x20~/'+PRODUCT_CONFIG[_0x38f5ec(0x99)]+',\x20or\x20create\x20a\x20project-local\x20'+PRODUCT_CONFIG[_0x38f5ec(0x99)]+'\x20first.');return'project';}}export function toScopeFlags(_0x52ee7d){const _0x180318=a19_0x3a48;return{'global':_0x52ee7d===_0x180318(0x9c)};}export function formatScopeLabel(_0xa84579){return _0xa84579==='global'?'\x20(global)':'';}
1
+ (function(_0x47fa17,_0xb58fde){const _0x5ac2f6=a19_0x479c,_0x498f71=_0x47fa17();while(!![]){try{const _0x4c04b4=parseInt(_0x5ac2f6(0x83))/0x1*(parseInt(_0x5ac2f6(0x90))/0x2)+parseInt(_0x5ac2f6(0x85))/0x3*(-parseInt(_0x5ac2f6(0x87))/0x4)+parseInt(_0x5ac2f6(0x8d))/0x5*(-parseInt(_0x5ac2f6(0x8c))/0x6)+parseInt(_0x5ac2f6(0x94))/0x7*(-parseInt(_0x5ac2f6(0x95))/0x8)+parseInt(_0x5ac2f6(0x7e))/0x9*(parseInt(_0x5ac2f6(0x91))/0xa)+-parseInt(_0x5ac2f6(0x89))/0xb+-parseInt(_0x5ac2f6(0x93))/0xc*(-parseInt(_0x5ac2f6(0x80))/0xd);if(_0x4c04b4===_0xb58fde)break;else _0x498f71['push'](_0x498f71['shift']());}catch(_0x4bf12a){_0x498f71['push'](_0x498f71['shift']());}}}(a19_0x9d47,0x1e2bc));import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{isInProject}from'../../context.js';import{CliErrors}from'../../errors.js';export{buildAppProfileListFields,CONFIG_ENUM_VALUES,CLI_PROTECTED_CONFIG_KEYS,IMPORTABLE_RUNTIME_CONFIG_KEYS,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getConfigDefaultValue,getConfigEnumValues,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isLegacyCompatConfigKey,isCliProtectedConfigKey,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export function resolveConfigScope(_0x184c37){const _0x6c32cb=a19_0x479c,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x464a69}=_0x184c37;if(explicitGlobal&&explicitProject)throw CliErrors[_0x6c32cb(0x86)](_0x6c32cb(0x8a),'Use\x20only\x20one\x20config\x20scope\x20flag.');if(explicitGlobal)return _0x6c32cb(0x7f);if(explicitProject)return'project';switch(_0x464a69){case _0x6c32cb(0x92):return _0x6c32cb(0x7f);case _0x6c32cb(0x81):if(!(_0x184c37[_0x6c32cb(0x82)]??isInProject()))throw CliErrors[_0x6c32cb(0x86)](_0x6c32cb(0x7d)+PRODUCT_CONFIG[_0x6c32cb(0x8e)]+_0x6c32cb(0x96),'Add\x20--global\x20to\x20write\x20to\x20~/'+PRODUCT_CONFIG[_0x6c32cb(0x8e)]+_0x6c32cb(0x8f)+PRODUCT_CONFIG[_0x6c32cb(0x8e)]+_0x6c32cb(0x8b));return _0x6c32cb(0x84);}}function a19_0x479c(_0x2aa438,_0x241bed){_0x2aa438=_0x2aa438-0x7d;const _0x9d4746=a19_0x9d47();let _0x479ced=_0x9d4746[_0x2aa438];return _0x479ced;}export function toScopeFlags(_0x3e6ae4){const _0x4c9d82=a19_0x479c;return{'global':_0x3e6ae4===_0x4c9d82(0x7f)};}export function formatScopeLabel(_0x4f7496){const _0x1fb9d2=a19_0x479c;return _0x4f7496==='global'?_0x1fb9d2(0x88):'';}function a19_0x9d47(){const _0x2bcd23=['global-default','5632296moMITF','203RUHkwZ','56632nvMyuX','\x20found).','Not\x20inside\x20a\x20project\x20(no\x20','9Ksesly','global','13oMKpcm','project-or-global-explicit','inProject','165439bJMZDO','project','58740iiDoqL','validation','48OocobT','\x20(global)','1716693HffzPV','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','\x20first.','144144GsMYXA','5hBPwPr','newConfigFileName',',\x20or\x20create\x20a\x20project-local\x20','2GCKDno','1091210gBfxqv'];a19_0x9d47=function(){return _0x2bcd23;};return a19_0x9d47();}
@@ -1 +1 @@
1
- (function(_0x3569ef,_0x389b5d){const _0x55c167=a20_0x2847,_0x38693d=_0x3569ef();while(!![]){try{const _0x3c64ac=parseInt(_0x55c167(0x1ed))/0x1+parseInt(_0x55c167(0x1e7))/0x2*(parseInt(_0x55c167(0x1f0))/0x3)+parseInt(_0x55c167(0x1f4))/0x4*(parseInt(_0x55c167(0x1f7))/0x5)+parseInt(_0x55c167(0x1f3))/0x6+parseInt(_0x55c167(0x1eb))/0x7+-parseInt(_0x55c167(0x1f9))/0x8+-parseInt(_0x55c167(0x1fa))/0x9*(parseInt(_0x55c167(0x1e1))/0xa);if(_0x3c64ac===_0x389b5d)break;else _0x38693d['push'](_0x38693d['shift']());}catch(_0x32b788){_0x38693d['push'](_0x38693d['shift']());}}}(a20_0x5abe,0x1a4f9));import{CliErrors}from'../../errors.js';function isSet(_0x964389,_0x2c4ad1){const _0x3813ea=a20_0x2847,_0x5c4878=_0x964389[_0x3813ea(0x1e2)](_0x2c4ad1);return _0x5c4878!==undefined&&_0x5c4878!==''&&_0x5c4878!==![]&&_0x5c4878!==0x0;}function a20_0x2847(_0x57782e,_0x142aec){_0x57782e=_0x57782e-0x1df;const _0x5abe6b=a20_0x5abe();let _0x2847ce=_0x5abe6b[_0x57782e];return _0x2847ce;}function fmtNames(_0x43a636){const _0x24a0c9=a20_0x2847;return _0x43a636[_0x24a0c9(0x1e8)](_0x140488=>'--'+_0x140488)[_0x24a0c9(0x1f5)](',\x20');}export function requireOneOf(_0x5d1c45,_0x3a919d,_0x5b6b4e){const _0x1732d9=a20_0x2847,_0x19dc02=_0x3a919d[_0x1732d9(0x1ea)](_0x5a2399=>isSet(_0x5d1c45,_0x5a2399));if(_0x19dc02['length']!==0x1)throw CliErrors[_0x1732d9(0x1f6)](_0x19dc02[_0x1732d9(0x1ec)]===0x0?_0x1732d9(0x1e4)+fmtNames(_0x3a919d)+'\x20is\x20required\x20for\x20`'+_0x5b6b4e+'`.':_0x1732d9(0x1f8)+fmtNames(_0x3a919d)+_0x1732d9(0x1e5)+fmtNames(_0x19dc02)+'.',_0x19dc02[_0x1732d9(0x1ec)]===0x0?_0x1732d9(0x1f1)+fmtNames(_0x3a919d):_0x1732d9(0x1e9));}function a20_0x5abe(){const _0x2916ed=['\x20are\x20mutually\x20exclusive\x20for\x20`','450999jxjBof','Provide\x20one\x20of:\x20','Use\x20only\x20one\x20of:\x20','745326UskXwe','14024KHkNHZ','join','validation','25xpNYGN','Only\x20one\x20of\x20','893784fALast','18JAYPdE','str','At\x20least\x20one\x20of\x20','1908910xngmNb','flag','\x20is\x20required\x20for\x20`','Exactly\x20one\x20of\x20','\x20is\x20allowed,\x20found:\x20',':\x20expected\x20','2iQdWCQ','map','Remove\x20all\x20but\x20one.','filter','957831XJWGCm','length','172357qLWWYU','Flags\x20'];a20_0x5abe=function(){return _0x2916ed;};return a20_0x5abe();}export function requireAnyOf(_0x1b5e17,_0x18cf0c,_0x57f675){const _0x41edf4=a20_0x2847;if(!_0x18cf0c['some'](_0x58d186=>isSet(_0x1b5e17,_0x58d186)))throw CliErrors[_0x41edf4(0x1f6)](_0x41edf4(0x1e0)+fmtNames(_0x18cf0c)+_0x41edf4(0x1e3)+_0x57f675+'`.',_0x41edf4(0x1f1)+fmtNames(_0x18cf0c));}export function mutuallyExclusive(_0x3c86d2,_0x3f0e26,_0x340473){const _0x2de885=a20_0x2847,_0x3f5125=_0x3f0e26[_0x2de885(0x1ea)](_0x1b9f81=>isSet(_0x3c86d2,_0x1b9f81));if(_0x3f5125['length']>0x1)throw CliErrors[_0x2de885(0x1f6)](_0x2de885(0x1ee)+fmtNames(_0x3f5125)+_0x2de885(0x1ef)+_0x340473+'`.',_0x2de885(0x1f2)+fmtNames(_0x3f0e26));}export function validatePattern(_0x40e971,_0x48edf9,_0x5f0520,_0x432299){const _0x20e13f=a20_0x2847,_0xaecda2=_0x40e971[_0x20e13f(0x1df)](_0x48edf9);if(_0xaecda2&&!_0x5f0520['test'](_0xaecda2))throw CliErrors['validation']('Invalid\x20--'+_0x48edf9+_0x20e13f(0x1e6)+_0x432299+',\x20got\x20\x22'+_0xaecda2+'\x22.');}
1
+ function a20_0x15c3(_0x883053,_0x58096e){_0x883053=_0x883053-0x191;const _0x58a029=a20_0x58a0();let _0x15c39e=_0x58a029[_0x883053];return _0x15c39e;}(function(_0x10b20a,_0x3b7344){const _0x1fb30c=a20_0x15c3,_0x3a628a=_0x10b20a();while(!![]){try{const _0xd96505=-parseInt(_0x1fb30c(0x1ac))/0x1*(parseInt(_0x1fb30c(0x1aa))/0x2)+-parseInt(_0x1fb30c(0x19c))/0x3*(parseInt(_0x1fb30c(0x1a6))/0x4)+-parseInt(_0x1fb30c(0x1a4))/0x5*(parseInt(_0x1fb30c(0x19e))/0x6)+parseInt(_0x1fb30c(0x191))/0x7+-parseInt(_0x1fb30c(0x192))/0x8+-parseInt(_0x1fb30c(0x199))/0x9+-parseInt(_0x1fb30c(0x1a9))/0xa*(-parseInt(_0x1fb30c(0x1a0))/0xb);if(_0xd96505===_0x3b7344)break;else _0x3a628a['push'](_0x3a628a['shift']());}catch(_0x5e7142){_0x3a628a['push'](_0x3a628a['shift']());}}}(a20_0x58a0,0x82a47));import{CliErrors}from'../../errors.js';function a20_0x58a0(){const _0x14aebf=['Provide\x20one\x20of:\x20','11Fulrsc','\x20is\x20required\x20for\x20`','length','Only\x20one\x20of\x20','5LLKnpV',':\x20expected\x20','34684rnJgfD','filter','Use\x20only\x20one\x20of:\x20','32711510zaxlDJ','2PevfDF','\x20are\x20mutually\x20exclusive\x20for\x20`','945071Xmyajp','join','7219191aazxVh','6280400DYOVSA','str','some','map','Exactly\x20one\x20of\x20','validation',',\x20got\x20\x22','5593347JTBpfa','Invalid\x20--','test','339dMLuXK','Flags\x20','2615556IWrdIx'];a20_0x58a0=function(){return _0x14aebf;};return a20_0x58a0();}function isSet(_0x387060,_0x3af259){const _0x2f873a=_0x387060['flag'](_0x3af259);return _0x2f873a!==undefined&&_0x2f873a!==''&&_0x2f873a!==![]&&_0x2f873a!==0x0;}function fmtNames(_0x1674cf){const _0x1dcb82=a20_0x15c3;return _0x1674cf[_0x1dcb82(0x195)](_0x5123d3=>'--'+_0x5123d3)[_0x1dcb82(0x1ad)](',\x20');}export function requireOneOf(_0x3d57a8,_0x6168e0,_0x225dbd){const _0x3db185=a20_0x15c3,_0x4098f6=_0x6168e0[_0x3db185(0x1a7)](_0x1f60ac=>isSet(_0x3d57a8,_0x1f60ac));if(_0x4098f6[_0x3db185(0x1a2)]!==0x1)throw CliErrors[_0x3db185(0x197)](_0x4098f6[_0x3db185(0x1a2)]===0x0?_0x3db185(0x196)+fmtNames(_0x6168e0)+_0x3db185(0x1a1)+_0x225dbd+'`.':_0x3db185(0x1a3)+fmtNames(_0x6168e0)+'\x20is\x20allowed,\x20found:\x20'+fmtNames(_0x4098f6)+'.',_0x4098f6[_0x3db185(0x1a2)]===0x0?_0x3db185(0x19f)+fmtNames(_0x6168e0):'Remove\x20all\x20but\x20one.');}export function requireAnyOf(_0x5a4ff1,_0x19514e,_0x15c0b5){const _0x15e8c7=a20_0x15c3;if(!_0x19514e[_0x15e8c7(0x194)](_0xf7be65=>isSet(_0x5a4ff1,_0xf7be65)))throw CliErrors[_0x15e8c7(0x197)]('At\x20least\x20one\x20of\x20'+fmtNames(_0x19514e)+_0x15e8c7(0x1a1)+_0x15c0b5+'`.',_0x15e8c7(0x19f)+fmtNames(_0x19514e));}export function mutuallyExclusive(_0x298349,_0xfe035a,_0x5118c5){const _0x505c08=a20_0x15c3,_0x12f1e8=_0xfe035a[_0x505c08(0x1a7)](_0x54376d=>isSet(_0x298349,_0x54376d));if(_0x12f1e8[_0x505c08(0x1a2)]>0x1)throw CliErrors[_0x505c08(0x197)](_0x505c08(0x19d)+fmtNames(_0x12f1e8)+_0x505c08(0x1ab)+_0x5118c5+'`.',_0x505c08(0x1a8)+fmtNames(_0xfe035a));}export function validatePattern(_0x26b827,_0x2de6e3,_0x28bc54,_0x3c9edc){const _0x29840d=a20_0x15c3,_0x47ff13=_0x26b827[_0x29840d(0x193)](_0x2de6e3);if(_0x47ff13&&!_0x28bc54[_0x29840d(0x19b)](_0x47ff13))throw CliErrors[_0x29840d(0x197)](_0x29840d(0x19a)+_0x2de6e3+_0x29840d(0x1a5)+_0x3c9edc+_0x29840d(0x198)+_0x47ff13+'\x22.');}
@@ -1 +1 @@
1
- function a21_0x55d9(){const _0x57842d=['49889QoOLjO','name','228cpRqLI','1514650CAfwiX','Resource\x20ID','843HMGgyb','string','1900875OpftqT','number','113825NmTetv','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','45EvsKjy','boolean','verbose','44IKoqMG','175624dDhJaU','Resource\x20name\x20for\x20lookup','sqlcode','params','507282qWoUCI','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)','2552JeKTKz','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'];a21_0x55d9=function(){return _0x57842d;};return a21_0x55d9();}const a21_0x312506=a21_0x7f57;(function(_0x282f14,_0x526d5e){const _0x1c01e2=a21_0x7f57,_0x1939f7=_0x282f14();while(!![]){try{const _0x17b6cc=parseInt(_0x1c01e2(0x9d))/0x1+-parseInt(_0x1c01e2(0xa7))/0x2+-parseInt(_0x1c01e2(0x99))/0x3*(-parseInt(_0x1c01e2(0xa9))/0x4)+parseInt(_0x1c01e2(0x9b))/0x5+-parseInt(_0x1c01e2(0x96))/0x6*(-parseInt(_0x1c01e2(0xab))/0x7)+-parseInt(_0x1c01e2(0xa3))/0x8*(-parseInt(_0x1c01e2(0x9f))/0x9)+-parseInt(_0x1c01e2(0x97))/0xa*(parseInt(_0x1c01e2(0xa2))/0xb);if(_0x17b6cc===_0x526d5e)break;else _0x1939f7['push'](_0x1939f7['shift']());}catch(_0xdbab6a){_0x1939f7['push'](_0x1939f7['shift']());}}}(a21_0x55d9,0x2f740));export const GLOBAL_SCOPE_FLAG={'name':'global','type':a21_0x312506(0xa0),'default':![],'description':'Write\x20to\x20the\x20global\x20configuration'};export const CODE_FLAG={'name':'code','type':'string','required':!![],'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)','pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a21_0x312506(0xa8)}};export const SQLCODE_FLAG={'name':a21_0x312506(0xa5),'type':a21_0x312506(0x9a),'required':!![],'description':a21_0x312506(0x9e),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a21_0x312506(0xaa)}};export const VERBOSE_FLAG={'name':a21_0x312506(0xa1),'type':a21_0x312506(0xa0),'description':'Return\x20full\x20raw\x20response\x20object'};function a21_0x7f57(_0x4f5d65,_0x1abd78){_0x4f5d65=_0x4f5d65-0x95;const _0x55d957=a21_0x55d9();let _0x7f5771=_0x55d957[_0x4f5d65];return _0x7f5771;}export const PARAMS_FLAG={'name':a21_0x312506(0xa6),'type':'string','description':'Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)'};export const NAME_FLAG={'name':a21_0x312506(0x95),'type':a21_0x312506(0x9a),'description':a21_0x312506(0xa4)};export const ID_FLAG={'name':'id','type':a21_0x312506(0x9c),'required':!![],'description':a21_0x312506(0x98)};
1
+ const a21_0x3ce1d0=a21_0x3f6d;(function(_0x493af7,_0x9ecb6b){const _0x53163e=a21_0x3f6d,_0x35b262=_0x493af7();while(!![]){try{const _0x16303c=parseInt(_0x53163e(0x1ce))/0x1+parseInt(_0x53163e(0x1de))/0x2*(-parseInt(_0x53163e(0x1d6))/0x3)+parseInt(_0x53163e(0x1db))/0x4+-parseInt(_0x53163e(0x1cc))/0x5*(-parseInt(_0x53163e(0x1c8))/0x6)+-parseInt(_0x53163e(0x1d7))/0x7*(parseInt(_0x53163e(0x1ca))/0x8)+parseInt(_0x53163e(0x1d0))/0x9*(parseInt(_0x53163e(0x1d4))/0xa)+-parseInt(_0x53163e(0x1df))/0xb*(parseInt(_0x53163e(0x1c5))/0xc);if(_0x16303c===_0x9ecb6b)break;else _0x35b262['push'](_0x35b262['shift']());}catch(_0x5d60cb){_0x35b262['push'](_0x35b262['shift']());}}}(a21_0x5ba9,0xd3d0e));export const GLOBAL_SCOPE_FLAG={'name':'global','type':a21_0x3ce1d0(0x1dc),'default':![],'description':a21_0x3ce1d0(0x1d9)};export const CODE_FLAG={'name':a21_0x3ce1d0(0x1cd),'type':a21_0x3ce1d0(0x1da),'required':!![],'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)','pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a21_0x3ce1d0(0x1c9)}};export const SQLCODE_FLAG={'name':a21_0x3ce1d0(0x1cb),'type':'string','required':!![],'description':a21_0x3ce1d0(0x1cf),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a21_0x3ce1d0(0x1d8)}};function a21_0x3f6d(_0xf4194a,_0x159e2f){_0xf4194a=_0xf4194a-0x1c5;const _0x5ba9f5=a21_0x5ba9();let _0x3f6d27=_0x5ba9f5[_0xf4194a];return _0x3f6d27;}export const VERBOSE_FLAG={'name':a21_0x3ce1d0(0x1dd),'type':a21_0x3ce1d0(0x1dc),'description':a21_0x3ce1d0(0x1d5)};export const PARAMS_FLAG={'name':a21_0x3ce1d0(0x1c6),'type':a21_0x3ce1d0(0x1da),'description':a21_0x3ce1d0(0x1d2)};function a21_0x5ba9(){const _0x380502=['Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','name','12310NcqkxO','Return\x20full\x20raw\x20response\x20object','1695459osUnfo','301NzLgdO','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','Write\x20to\x20the\x20global\x20configuration','string','6451480SSRscV','boolean','verbose','4iMrqcJ','275tScMkM','7884nBTpxV','params','Resource\x20name\x20for\x20lookup','4082430ApgSie','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)','298096sBGApS','sqlcode','5McskZc','code','881391tCcOJx','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','3231VkeNds','Resource\x20ID'];a21_0x5ba9=function(){return _0x380502;};return a21_0x5ba9();}export const NAME_FLAG={'name':a21_0x3ce1d0(0x1d3),'type':'string','description':a21_0x3ce1d0(0x1c7)};export const ID_FLAG={'name':'id','type':'number','required':!![],'description':a21_0x3ce1d0(0x1d1)};
@@ -1 +1 @@
1
- function a22_0x19b5(_0x18a460,_0x517e57){_0x18a460=_0x18a460-0xdb;const _0x45bfe3=a22_0x45bf();let _0x19b5eb=_0x45bfe3[_0x18a460];return _0x19b5eb;}(function(_0x2eca11,_0x4c5268){const _0xf4b600=a22_0x19b5,_0x2161be=_0x2eca11();while(!![]){try{const _0x3241af=-parseInt(_0xf4b600(0xdc))/0x1+-parseInt(_0xf4b600(0xea))/0x2+-parseInt(_0xf4b600(0xe2))/0x3*(-parseInt(_0xf4b600(0xed))/0x4)+-parseInt(_0xf4b600(0xdb))/0x5+parseInt(_0xf4b600(0xe7))/0x6*(-parseInt(_0xf4b600(0xe9))/0x7)+-parseInt(_0xf4b600(0xe8))/0x8+parseInt(_0xf4b600(0xdf))/0x9*(parseInt(_0xf4b600(0xe6))/0xa);if(_0x3241af===_0x4c5268)break;else _0x2161be['push'](_0x2161be['shift']());}catch(_0x1f019f){_0x2161be['push'](_0x2161be['shift']());}}}(a22_0x45bf,0x97f3e));import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x50c7f8){const _0x108d1d=a22_0x19b5;if(_0x50c7f8>=BYTES_PER_MB){const _0x2c3c86=Math[_0x108d1d(0xe4)](_0x50c7f8/BYTES_PER_MB*0x64)/0x64;return _0x2c3c86[_0x108d1d(0xe3)](0x2)+_0x108d1d(0xec);}return _0x50c7f8+'\x20B';}export function requireRuntimeUploadFile(_0x2adb68,_0x148123){const _0x36668d=a22_0x19b5,_0x43cc30=_0x2adb68['trim']();if(!_0x43cc30)throw CliErrors['validation'](_0x148123+_0x36668d(0xeb));if(!existsSync(_0x43cc30))throw CliErrors[_0x36668d(0xe5)](_0x36668d(0xe1)+_0x43cc30);const _0x282294=statSync(_0x43cc30);if(!_0x282294[_0x36668d(0xdd)]())throw CliErrors[_0x36668d(0xe5)](_0x36668d(0xe0)+_0x43cc30);if(_0x282294[_0x36668d(0xde)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors[_0x36668d(0xe5)]('File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20'+_0x43cc30+'\x20('+formatBytes(_0x282294['size'])+')');return{'path':_0x43cc30,'size':_0x282294[_0x36668d(0xde)]};}function a22_0x45bf(){const _0x47eb3f=['4xFjdKy','2064795fRBvYR','573476mmbJPb','isFile','size','1548hxgMmy','File\x20is\x20not\x20a\x20regular\x20file:\x20','File\x20not\x20found:\x20','2197974myXOLO','toFixed','ceil','validation','128270Kddoky','35718PBwMmW','2185256KSqrNq','917fqSKZW','554138CDlMTA','\x20path\x20is\x20required.','\x20MB'];a22_0x45bf=function(){return _0x47eb3f;};return a22_0x45bf();}
1
+ (function(_0x589adb,_0x13ada6){const _0x1bab1d=a22_0x3f98,_0x170c19=_0x589adb();while(!![]){try{const _0x3f5879=parseInt(_0x1bab1d(0x124))/0x1*(parseInt(_0x1bab1d(0x122))/0x2)+-parseInt(_0x1bab1d(0x11d))/0x3+-parseInt(_0x1bab1d(0x121))/0x4+-parseInt(_0x1bab1d(0x127))/0x5*(parseInt(_0x1bab1d(0x126))/0x6)+-parseInt(_0x1bab1d(0x125))/0x7+-parseInt(_0x1bab1d(0x11e))/0x8+-parseInt(_0x1bab1d(0x117))/0x9*(-parseInt(_0x1bab1d(0x11c))/0xa);if(_0x3f5879===_0x13ada6)break;else _0x170c19['push'](_0x170c19['shift']());}catch(_0xae9c71){_0x170c19['push'](_0x170c19['shift']());}}}(a22_0x2534,0x9deda));function a22_0x2534(){const _0x18af81=['File\x20not\x20found:\x20','331148VSlZGQ','244598EyJNcM','trim','9UQaKTz','6836641spRCDd','376392btoios','20qIGgaM','File\x20is\x20not\x20a\x20regular\x20file:\x20','validation','117VTmcpU','isFile','size','\x20MB','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','1987550wXeKMB','1570374kioIsw','9630368OBynRd','ceil'];a22_0x2534=function(){return _0x18af81;};return a22_0x2534();}import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x1267e1){const _0x5eb5bb=a22_0x3f98;if(_0x1267e1>=BYTES_PER_MB){const _0x4ab10a=Math[_0x5eb5bb(0x11f)](_0x1267e1/BYTES_PER_MB*0x64)/0x64;return _0x4ab10a['toFixed'](0x2)+_0x5eb5bb(0x11a);}return _0x1267e1+'\x20B';}function a22_0x3f98(_0x1db2b5,_0x298f6e){_0x1db2b5=_0x1db2b5-0x117;const _0x253481=a22_0x2534();let _0x3f98dd=_0x253481[_0x1db2b5];return _0x3f98dd;}export function requireRuntimeUploadFile(_0x511806,_0x38d0f1){const _0x2edd1d=a22_0x3f98,_0x346335=_0x511806[_0x2edd1d(0x123)]();if(!_0x346335)throw CliErrors['validation'](_0x38d0f1+'\x20path\x20is\x20required.');if(!existsSync(_0x346335))throw CliErrors[_0x2edd1d(0x129)](_0x2edd1d(0x120)+_0x346335);const _0x3e0593=statSync(_0x346335);if(!_0x3e0593[_0x2edd1d(0x118)]())throw CliErrors[_0x2edd1d(0x129)](_0x2edd1d(0x128)+_0x346335);if(_0x3e0593['size']>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors['validation'](_0x2edd1d(0x11b)+_0x346335+'\x20('+formatBytes(_0x3e0593[_0x2edd1d(0x119)])+')');return{'path':_0x346335,'size':_0x3e0593[_0x2edd1d(0x119)]};}
@@ -1 +1 @@
1
- const a23_0x5445c2=a23_0x2314;function a23_0x2314(_0x2c5e42,_0x3bbffd){_0x2c5e42=_0x2c5e42-0x19e;const _0x585b2a=a23_0x585b();let _0x2314bf=_0x585b2a[_0x2c5e42];return _0x2314bf;}(function(_0x3b2622,_0x1268bc){const _0x2a5841=a23_0x2314,_0x45c81c=_0x3b2622();while(!![]){try{const _0x980f5c=parseInt(_0x2a5841(0x1b3))/0x1*(parseInt(_0x2a5841(0x1dc))/0x2)+-parseInt(_0x2a5841(0x1c3))/0x3+parseInt(_0x2a5841(0x1bb))/0x4*(parseInt(_0x2a5841(0x1dd))/0x5)+parseInt(_0x2a5841(0x1b8))/0x6+-parseInt(_0x2a5841(0x1be))/0x7+-parseInt(_0x2a5841(0x1db))/0x8+parseInt(_0x2a5841(0x1aa))/0x9*(parseInt(_0x2a5841(0x1d5))/0xa);if(_0x980f5c===_0x1268bc)break;else _0x45c81c['push'](_0x45c81c['shift']());}catch(_0x318123){_0x45c81c['push'](_0x45c81c['shift']());}}}(a23_0x585b,0xdf107));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isCliProtectedConfigKey,isTopLevelConfigKey,normalizeLocale,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';import{DOMAIN_CONFIG_FIELDS,normalizeDomainOrigin}from'../../config/domain-config.js';function a23_0x585b(){const _0x312b67=['locale','List\x20current\x20config','includes','keys','key','Key\x20not\x20found:\x20','\x20\x20project:\x20','\x22\x20is\x20not\x20settable.','delete','Delete\x20a\x20configuration\x20value','Deletes\x20a\x20Lovrabet\x20CLI\x20config\x20key.\x20Later\x20commands\x20will\x20fall\x20back\x20to\x20another\x20config\x20layer\x20or\x20the\x20default.','args','read','value','10FhckIT','Deleted\x20`','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','Usage:\x20','set','object','10283640lelonR','3333392meXYoD','91515GvmJAc','pretty','\x20\x20global:\x20\x20','isArray','(none)','get','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','\x22\x20is\x20protected\x20and\x20cannot\x20be\x20changed\x20via\x20config\x20commands.','format','stringify','\x20config\x20delete\x20<key>\x20[--global]','Missing\x20key\x20argument.','\x22.\x20Allowed:\x20','log','bool','trim','27965727HeizxG','length','list','../../context.js','\x20(global)','write','alias','pageSize\x20must\x20be\x20a\x20positive\x20number','appcode','1OkHdqH','project-or-global-explicit','config','pageSize','global','380016LvWslG','validation','Set\x20a\x20configuration\x20value','8opEMbN','Config\x20files:\x0a','raw','9672383aqGpKn','field','Settable\x20keys:\x20','apps',';\x20apps.<alias>.appcode','3879138offJOb','accessKey','Invalid\x20value\x20for\x20\x22','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)'];a23_0x585b=function(){return _0x312b67;};return a23_0x585b();}import{configInitDefinition}from'../../commands/config/init.js';import{GLOBAL_SCOPE_FLAG}from'../../commands/common/flags.js';import{maskCliAccessKey,redactCliConfigCredentials,redactCliConfigValue}from'../../utils/access-key-redaction.js';function parseAliasAppcodeSetKey(_0x5c82d7){const _0x3008a8=a23_0x2314,_0x466858=_0x5c82d7['split']('.');if(_0x466858[_0x3008a8(0x1ab)]!==0x3||_0x466858[0x0]!==_0x3008a8(0x1c1)||_0x466858[0x2]!=='appcode')return undefined;const _0x56a289=_0x466858[0x1]?.[_0x3008a8(0x1a9)]();return _0x56a289?_0x56a289:undefined;}function parseAliasDeleteKey(_0x5c353c){const _0x113e51=a23_0x2314,_0x438fc1=_0x5c353c['split']('.');if(_0x438fc1[_0x113e51(0x1ab)]===0x2&&_0x438fc1[0x0]===_0x113e51(0x1c1)){const _0x3391e5=_0x438fc1[0x1]?.[_0x113e51(0x1a9)]();return _0x3391e5?{'alias':_0x3391e5}:undefined;}if(_0x438fc1[_0x113e51(0x1ab)]===0x3&&_0x438fc1[0x0]==='apps'&&_0x438fc1[0x2]===_0x113e51(0x1b2)){const _0x221605=_0x438fc1[0x1]?.['trim']();return _0x221605?{'alias':_0x221605,'field':_0x113e51(0x1b2)}:undefined;}return undefined;}function setLocalAppAlias(_0x6bd6b7,_0x1677e0,_0x3fb437){const _0x275526=a23_0x2314,_0x321008=_0x6bd6b7[_0x275526(0x1c1)]&&typeof _0x6bd6b7[_0x275526(0x1c1)]===_0x275526(0x1da)&&!Array[_0x275526(0x1e0)](_0x6bd6b7[_0x275526(0x1c1)])?_0x6bd6b7[_0x275526(0x1c1)]:{},_0x1164b3=_0x321008[_0x1677e0]&&typeof _0x321008[_0x1677e0]===_0x275526(0x1da)&&!Array['isArray'](_0x321008[_0x1677e0])?_0x321008[_0x1677e0]:{};_0x1164b3[_0x275526(0x1b2)]=_0x3fb437,_0x321008[_0x1677e0]=_0x1164b3,_0x6bd6b7[_0x275526(0x1c1)]=_0x321008;}function deleteLocalAppAlias(_0x15be3e,_0x3838df){const _0x47e084=a23_0x2314;if(!_0x15be3e[_0x47e084(0x1c1)]||typeof _0x15be3e[_0x47e084(0x1c1)]!==_0x47e084(0x1da)||Array[_0x47e084(0x1e0)](_0x15be3e[_0x47e084(0x1c1)]))return![];const _0x53e57d=_0x15be3e[_0x47e084(0x1c1)],_0x58b3c2=_0x53e57d[_0x3838df['alias']];if(!_0x58b3c2||typeof _0x58b3c2!==_0x47e084(0x1da)||Array['isArray'](_0x58b3c2))return![];if(!_0x3838df[_0x47e084(0x1bf)])return delete _0x53e57d[_0x3838df[_0x47e084(0x1b0)]],!![];if(!(_0x3838df['field']in _0x58b3c2))return![];return delete _0x58b3c2[_0x3838df[_0x47e084(0x1bf)]],Object[_0x47e084(0x1ca)](_0x58b3c2)['length']===0x0&&delete _0x53e57d[_0x3838df[_0x47e084(0x1b0)]],!![];}const listDef={'service':a23_0x5445c2(0x1b5),'command':a23_0x5445c2(0x1ac),'description':a23_0x5445c2(0x1c8),'risk':a23_0x5445c2(0x1d3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x4c149e){const _0x5900f2=a23_0x5445c2,{buildConfigFromFlags:_0x2ffdca}=await import('../../context.js'),_0x9efe0b=_0x2ffdca({}),_0xd07a31=redactCliConfigCredentials(_0x9efe0b[_0x5900f2(0x1bd)]),_0x5f4cfa=getProjectConfigPath(),_0x69be5c=resolveWriteConfigPath('global');if(_0x4c149e[_0x5900f2(0x1a2)]===_0x5900f2(0x1de))return{'ok':!![],'message':_0x5900f2(0x1a0)+(JSON[_0x5900f2(0x1a3)](_0xd07a31,null,0x2)+'\x0a\x0a')+_0x5900f2(0x1bc)+(_0x5900f2(0x1cd)+(_0x5f4cfa??_0x5900f2(0x19e))+'\x0a')+(_0x5900f2(0x1df)+_0x69be5c)};return{'ok':!![],'data':{'effective':_0xd07a31,'configFiles':{'project':_0x5f4cfa??null,'global':_0x69be5c}}};}},getDef={'service':a23_0x5445c2(0x1b5),'command':a23_0x5445c2(0x19f),'description':'Get\x20a\x20config\x20value','risk':a23_0x5445c2(0x1d3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a23_0x5445c2(0x1cb),'description':a23_0x5445c2(0x1c6),'required':!![]}],'flags':[],async 'execute'(_0x1ba411){const _0x4d77cf=a23_0x5445c2,_0x25d204=_0x1ba411[_0x4d77cf(0x1d2)][0x0];if(!_0x25d204)throw CliErrors[_0x4d77cf(0x1b9)](_0x4d77cf(0x1a5),'Usage:\x20'+CLI_BIN_NAME+'\x20config\x20get\x20<key>');const {buildConfigFromFlags:_0x24d878}=await import(_0x4d77cf(0x1ad)),{raw:_0x12a378}=_0x24d878({});if(_0x25d204['includes']('.')){const _0x1f159e=_0x25d204['split']('.');let _0x5c4b49=_0x12a378;for(const _0x26dccb of _0x1f159e){if(_0x5c4b49==null||typeof _0x5c4b49!==_0x4d77cf(0x1da))throw CliErrors[_0x4d77cf(0x1b9)](_0x4d77cf(0x1cc)+_0x25d204);_0x5c4b49=_0x5c4b49[_0x26dccb];}if(_0x5c4b49===undefined)throw CliErrors[_0x4d77cf(0x1b9)](_0x4d77cf(0x1cc)+_0x25d204);const _0x25319d=redactCliConfigValue(_0x25d204,_0x5c4b49);return console[_0x4d77cf(0x1a7)](typeof _0x25319d===_0x4d77cf(0x1da)?JSON[_0x4d77cf(0x1a3)](_0x25319d,null,0x2):String(_0x25319d)),{'ok':!![]};}const _0x1fbfe4=_0x12a378[_0x25d204];if(_0x1fbfe4===undefined)throw CliErrors['validation'](_0x4d77cf(0x1cc)+_0x25d204);const _0x14954e=redactCliConfigValue(_0x25d204,_0x1fbfe4);return console[_0x4d77cf(0x1a7)](typeof _0x14954e===_0x4d77cf(0x1da)?JSON[_0x4d77cf(0x1a3)](_0x14954e,null,0x2):String(_0x14954e)),{'ok':!![]};}},setDef={'service':a23_0x5445c2(0x1b5),'command':a23_0x5445c2(0x1d9),'description':a23_0x5445c2(0x1ba),'risk':a23_0x5445c2(0x1af),'confirmationDescription':'Changes\x20Lovrabet\x20CLI\x20configuration.\x20Later\x20commands\x20may\x20use\x20a\x20different\x20app,\x20environment,\x20or\x20output\x20behavior.','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a23_0x5445c2(0x1cb),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a23_0x5445c2(0x1d4),'description':'Value\x20to\x20assign','required':!![]}],'flags':[GLOBAL_SCOPE_FLAG],async 'execute'(_0x162cb0){const _0x207128=a23_0x5445c2,_0x4b700f=_0x162cb0[_0x207128(0x1d2)][0x0],_0x4d8ffb=_0x162cb0[_0x207128(0x1d2)][0x1];if(!_0x4b700f||_0x4d8ffb===undefined)throw CliErrors[_0x207128(0x1b9)]('Missing\x20key\x20or\x20value.',_0x207128(0x1d8)+CLI_BIN_NAME+'\x20config\x20set\x20<key>\x20<value>\x20[--global]');if(ENUM_KEYS[_0x4b700f]&&!ENUM_KEYS[_0x4b700f][_0x207128(0x1c9)](_0x4d8ffb))throw CliErrors['validation'](_0x207128(0x1c5)+_0x4b700f+_0x207128(0x1a6)+ENUM_KEYS[_0x4b700f]['join'](',\x20'));if(isCliProtectedConfigKey(_0x4b700f))throw CliErrors[_0x207128(0x1b9)]('\x22'+_0x4b700f+_0x207128(0x1a1));if(_0x4b700f===_0x207128(0x1b6)){const _0x54fb15=Number(_0x4d8ffb);if(isNaN(_0x54fb15)||_0x54fb15<=0x0)throw CliErrors['validation'](_0x207128(0x1b1));}const _0x2f13fe=resolveWriteScope({'explicitGlobal':_0x162cb0[_0x207128(0x1a8)](_0x207128(0x1b7)),'policy':_0x207128(0x1b4)}),_0x4780c7=toScopeFlags(_0x2f13fe),_0x27a493=readScopedConfig(_0x4780c7),_0x353194=parseAliasAppcodeSetKey(_0x4b700f);if(!_0x353194&&!isTopLevelConfigKey(_0x4b700f))throw CliErrors[_0x207128(0x1b9)]('Top-level\x20key\x20\x22'+_0x4b700f+_0x207128(0x1ce),_0x207128(0x1c0)+getTopLevelConfigKeySummary()+_0x207128(0x1c2));if(_0x353194)setLocalAppAlias(_0x27a493,_0x353194,_0x4d8ffb);else{if(_0x4b700f===_0x207128(0x1c7)){const _0xdcf34b=normalizeLocale(_0x4d8ffb);if(!_0xdcf34b)throw CliErrors[_0x207128(0x1b9)]('Invalid\x20locale\x20value.',_0x207128(0x1d7));_0x27a493[_0x207128(0x1c7)]=_0xdcf34b;}else _0x27a493[_0x4b700f]=_0x4b700f===_0x207128(0x1b6)?Number(_0x4d8ffb):DOMAIN_CONFIG_FIELDS[_0x207128(0x1c9)](_0x4b700f)?normalizeDomainOrigin(_0x4b700f,_0x4d8ffb):_0x4d8ffb;}const _0x43486b=_0x4b700f===_0x207128(0x1c4)?maskCliAccessKey(_0x4d8ffb):!_0x353194&&_0x4b700f===_0x207128(0x1c7)?String(_0x27a493[_0x207128(0x1c7)]):_0x4d8ffb;return console[_0x207128(0x1a7)]('Set\x20`'+_0x4b700f+'`\x20=\x20\x22'+_0x43486b+'\x22'+(_0x2f13fe===_0x207128(0x1b7)?_0x207128(0x1ae):'')),writeScopedConfig(_0x27a493,_0x4780c7),{'ok':!![]};}},deleteDef={'service':a23_0x5445c2(0x1b5),'command':a23_0x5445c2(0x1cf),'description':a23_0x5445c2(0x1d0),'risk':a23_0x5445c2(0x1af),'confirmationDescription':a23_0x5445c2(0x1d1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a23_0x5445c2(0x1cb),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_SCOPE_FLAG],async 'execute'(_0x4effa9){const _0x46e17f=a23_0x5445c2,_0x3a65d9=_0x4effa9[_0x46e17f(0x1d2)][0x0];if(!_0x3a65d9)throw CliErrors['validation']('Missing\x20key\x20argument.',_0x46e17f(0x1d8)+CLI_BIN_NAME+_0x46e17f(0x1a4));if(isCliProtectedConfigKey(_0x3a65d9))throw CliErrors[_0x46e17f(0x1b9)]('\x22'+_0x3a65d9+'\x22\x20is\x20protected\x20and\x20cannot\x20be\x20changed\x20via\x20config\x20commands.');const _0x238a6e=resolveWriteScope({'explicitGlobal':_0x4effa9[_0x46e17f(0x1a8)](_0x46e17f(0x1b7)),'policy':_0x46e17f(0x1b4)}),_0x1f4427=toScopeFlags(_0x238a6e),_0x3ea54f=readScopedConfig(_0x1f4427),_0x4ca3f7=parseAliasDeleteKey(_0x3a65d9);if(_0x4ca3f7){if(!deleteLocalAppAlias(_0x3ea54f,_0x4ca3f7))return console['log']('Key\x20already\x20absent:\x20'+_0x3a65d9+(_0x238a6e===_0x46e17f(0x1b7)?_0x46e17f(0x1ae):'')),{'ok':!![],'data':{'key':_0x3a65d9,'scope':_0x238a6e,'changed':![]}};return console[_0x46e17f(0x1a7)](_0x46e17f(0x1d6)+_0x3a65d9+'`'+(_0x238a6e===_0x46e17f(0x1b7)?_0x46e17f(0x1ae):'')),writeScopedConfig(_0x3ea54f,_0x1f4427),{'ok':!![],'data':{'key':_0x3a65d9,'scope':_0x238a6e,'changed':!![]}};}if(_0x3ea54f[_0x3a65d9]===undefined)return console[_0x46e17f(0x1a7)]('Key\x20already\x20absent:\x20'+_0x3a65d9+(_0x238a6e===_0x46e17f(0x1b7)?_0x46e17f(0x1ae):'')),{'ok':!![],'data':{'key':_0x3a65d9,'scope':_0x238a6e,'changed':![]}};return delete _0x3ea54f[_0x3a65d9],console[_0x46e17f(0x1a7)]('Deleted\x20`'+_0x3a65d9+'`'+(_0x238a6e===_0x46e17f(0x1b7)?'\x20(global)':'')),writeScopedConfig(_0x3ea54f,_0x1f4427),{'ok':!![],'data':{'key':_0x3a65d9,'scope':_0x238a6e,'changed':!![]}};}};export const configDefinitions=[configInitDefinition,listDef,getDef,setDef,deleteDef];
1
+ const a23_0xf80ca5=a23_0x11ac;(function(_0x413b1e,_0x3d0fa1){const _0x5d2ec7=a23_0x11ac,_0x1493d9=_0x413b1e();while(!![]){try{const _0xa46fef=parseInt(_0x5d2ec7(0x185))/0x1+parseInt(_0x5d2ec7(0x19a))/0x2+parseInt(_0x5d2ec7(0x199))/0x3+-parseInt(_0x5d2ec7(0x181))/0x4*(-parseInt(_0x5d2ec7(0x1ba))/0x5)+-parseInt(_0x5d2ec7(0x191))/0x6*(-parseInt(_0x5d2ec7(0x17c))/0x7)+-parseInt(_0x5d2ec7(0x1a4))/0x8*(-parseInt(_0x5d2ec7(0x1b3))/0x9)+parseInt(_0x5d2ec7(0x1ab))/0xa*(-parseInt(_0x5d2ec7(0x17e))/0xb);if(_0xa46fef===_0x3d0fa1)break;else _0x1493d9['push'](_0x1493d9['shift']());}catch(_0x5114f9){_0x1493d9['push'](_0x1493d9['shift']());}}}(a23_0x2354,0x4acbd));import{CliErrors}from'../../errors.js';function a23_0x11ac(_0x1e5bc6,_0x47a3e5){_0x1e5bc6=_0x1e5bc6-0x17b;const _0x2354f8=a23_0x2354();let _0x11ac41=_0x2354f8[_0x1e5bc6];return _0x11ac41;}function a23_0x2354(){const _0xd2461=['\x20\x20project:\x20','16314qaLdUe','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','\x20\x20global:\x20\x20','Invalid\x20locale\x20value.','alias','includes','log','(none)','1663692qdtREm','665830HEPtdR','raw','field','\x20(global)','join','length','Key\x20already\x20absent:\x20','trim','Get\x20a\x20config\x20value','locale','48TSVqZf','\x22\x20is\x20not\x20settable.','\x20config\x20set\x20<key>\x20<value>\x20[--global]','set','object','../../context.js','delete','3449190snaSsG','args','\x22.\x20Allowed:\x20','Delete\x20a\x20configuration\x20value','global','project-or-global-explicit','\x20config\x20delete\x20<key>\x20[--global]','Deleted\x20`','544392vdbtXT',';\x20apps.<alias>.appcode','config','Usage:\x20','Changes\x20Lovrabet\x20CLI\x20configuration.\x20Later\x20commands\x20may\x20use\x20a\x20different\x20app,\x20environment,\x20or\x20output\x20behavior.','stringify','validation','5rnNKPJ','appcode','994gFGxVX','key','77bhRsDM','isArray','read','2297752KofzyA','split','\x22\x20is\x20protected\x20and\x20cannot\x20be\x20changed\x20via\x20config\x20commands.','pageSize','509855ZMeICq','format','pageSize\x20must\x20be\x20a\x20positive\x20number','apps','Deletes\x20a\x20Lovrabet\x20CLI\x20config\x20key.\x20Later\x20commands\x20will\x20fall\x20back\x20to\x20another\x20config\x20layer\x20or\x20the\x20default.','get','Value\x20to\x20assign','Missing\x20key\x20argument.','write','Top-level\x20key\x20\x22','Key\x20not\x20found:\x20'];a23_0x2354=function(){return _0xd2461;};return a23_0x2354();}import{CLI_BIN_NAME,ENUM_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isCliProtectedConfigKey,isTopLevelConfigKey,normalizeLocale,readScopedConfig,writeScopedConfig,resolveWriteScope,toScopeFlags}from'../../commands/config/shared.js';import{resolveWriteConfigPath,getProjectConfigPath}from'../../context.js';import{DOMAIN_CONFIG_FIELDS,normalizeDomainOrigin}from'../../config/domain-config.js';import{configInitDefinition}from'../../commands/config/init.js';import{GLOBAL_SCOPE_FLAG}from'../../commands/common/flags.js';import{maskCliAccessKey,redactCliConfigCredentials,redactCliConfigValue}from'../../utils/access-key-redaction.js';function parseAliasAppcodeSetKey(_0x5b79da){const _0x2fd739=a23_0x11ac,_0x58538c=_0x5b79da[_0x2fd739(0x182)]('.');if(_0x58538c['length']!==0x3||_0x58538c[0x0]!==_0x2fd739(0x188)||_0x58538c[0x2]!==_0x2fd739(0x17b))return undefined;const _0x41e03e=_0x58538c[0x1]?.[_0x2fd739(0x1a1)]();return _0x41e03e?_0x41e03e:undefined;}function parseAliasDeleteKey(_0x2172ff){const _0x145cdf=a23_0x11ac,_0x40f172=_0x2172ff[_0x145cdf(0x182)]('.');if(_0x40f172['length']===0x2&&_0x40f172[0x0]===_0x145cdf(0x188)){const _0xf62120=_0x40f172[0x1]?.[_0x145cdf(0x1a1)]();return _0xf62120?{'alias':_0xf62120}:undefined;}if(_0x40f172[_0x145cdf(0x19f)]===0x3&&_0x40f172[0x0]===_0x145cdf(0x188)&&_0x40f172[0x2]==='appcode'){const _0x1cab5b=_0x40f172[0x1]?.['trim']();return _0x1cab5b?{'alias':_0x1cab5b,'field':'appcode'}:undefined;}return undefined;}function setLocalAppAlias(_0x2300ac,_0x407fdd,_0x5de593){const _0x146b4b=a23_0x11ac,_0x3e8b01=_0x2300ac[_0x146b4b(0x188)]&&typeof _0x2300ac[_0x146b4b(0x188)]===_0x146b4b(0x1a8)&&!Array[_0x146b4b(0x17f)](_0x2300ac[_0x146b4b(0x188)])?_0x2300ac[_0x146b4b(0x188)]:{},_0x16bdd1=_0x3e8b01[_0x407fdd]&&typeof _0x3e8b01[_0x407fdd]===_0x146b4b(0x1a8)&&!Array[_0x146b4b(0x17f)](_0x3e8b01[_0x407fdd])?_0x3e8b01[_0x407fdd]:{};_0x16bdd1[_0x146b4b(0x17b)]=_0x5de593,_0x3e8b01[_0x407fdd]=_0x16bdd1,_0x2300ac[_0x146b4b(0x188)]=_0x3e8b01;}function deleteLocalAppAlias(_0x309c02,_0x20b85e){const _0x2f1331=a23_0x11ac;if(!_0x309c02[_0x2f1331(0x188)]||typeof _0x309c02[_0x2f1331(0x188)]!==_0x2f1331(0x1a8)||Array[_0x2f1331(0x17f)](_0x309c02[_0x2f1331(0x188)]))return![];const _0x319385=_0x309c02[_0x2f1331(0x188)],_0x3a0b3c=_0x319385[_0x20b85e[_0x2f1331(0x195)]];if(!_0x3a0b3c||typeof _0x3a0b3c!==_0x2f1331(0x1a8)||Array[_0x2f1331(0x17f)](_0x3a0b3c))return![];if(!_0x20b85e[_0x2f1331(0x19c)])return delete _0x319385[_0x20b85e[_0x2f1331(0x195)]],!![];if(!(_0x20b85e[_0x2f1331(0x19c)]in _0x3a0b3c))return![];return delete _0x3a0b3c[_0x20b85e[_0x2f1331(0x19c)]],Object['keys'](_0x3a0b3c)[_0x2f1331(0x19f)]===0x0&&delete _0x319385[_0x20b85e[_0x2f1331(0x195)]],!![];}const listDef={'service':'config','command':'list','description':'List\x20current\x20config','risk':a23_0xf80ca5(0x180),'requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x4062e3){const _0x2b2662=a23_0xf80ca5,{buildConfigFromFlags:_0x13672c}=await import(_0x2b2662(0x1a9)),_0x222cd2=_0x13672c({}),_0x36fa65=redactCliConfigCredentials(_0x222cd2[_0x2b2662(0x19b)]),_0x452126=getProjectConfigPath(),_0x1f1f2b=resolveWriteConfigPath('global');if(_0x4062e3[_0x2b2662(0x186)]==='pretty')return{'ok':!![],'message':'#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a'+(JSON[_0x2b2662(0x1b8)](_0x36fa65,null,0x2)+'\x0a\x0a')+'Config\x20files:\x0a'+(_0x2b2662(0x190)+(_0x452126??_0x2b2662(0x198))+'\x0a')+(_0x2b2662(0x193)+_0x1f1f2b)};return{'ok':!![],'data':{'effective':_0x36fa65,'configFiles':{'project':_0x452126??null,'global':_0x1f1f2b}}};}},getDef={'service':a23_0xf80ca5(0x1b5),'command':a23_0xf80ca5(0x18a),'description':a23_0xf80ca5(0x1a2),'risk':a23_0xf80ca5(0x180),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a23_0xf80ca5(0x17d),'description':a23_0xf80ca5(0x192),'required':!![]}],'flags':[],async 'execute'(_0x4c0ea7){const _0x4fbdfd=a23_0xf80ca5,_0x45543d=_0x4c0ea7[_0x4fbdfd(0x1ac)][0x0];if(!_0x45543d)throw CliErrors[_0x4fbdfd(0x1b9)]('Missing\x20key\x20argument.',_0x4fbdfd(0x1b6)+CLI_BIN_NAME+'\x20config\x20get\x20<key>');const {buildConfigFromFlags:_0x5ba98b}=await import(_0x4fbdfd(0x1a9)),{raw:_0x3671d7}=_0x5ba98b({});if(_0x45543d['includes']('.')){const _0x37830f=_0x45543d[_0x4fbdfd(0x182)]('.');let _0x49975e=_0x3671d7;for(const _0x5bdd66 of _0x37830f){if(_0x49975e==null||typeof _0x49975e!==_0x4fbdfd(0x1a8))throw CliErrors[_0x4fbdfd(0x1b9)](_0x4fbdfd(0x18f)+_0x45543d);_0x49975e=_0x49975e[_0x5bdd66];}if(_0x49975e===undefined)throw CliErrors[_0x4fbdfd(0x1b9)](_0x4fbdfd(0x18f)+_0x45543d);const _0x3723db=redactCliConfigValue(_0x45543d,_0x49975e);return console[_0x4fbdfd(0x197)](typeof _0x3723db===_0x4fbdfd(0x1a8)?JSON[_0x4fbdfd(0x1b8)](_0x3723db,null,0x2):String(_0x3723db)),{'ok':!![]};}const _0x25d701=_0x3671d7[_0x45543d];if(_0x25d701===undefined)throw CliErrors[_0x4fbdfd(0x1b9)](_0x4fbdfd(0x18f)+_0x45543d);const _0x13973d=redactCliConfigValue(_0x45543d,_0x25d701);return console['log'](typeof _0x13973d===_0x4fbdfd(0x1a8)?JSON['stringify'](_0x13973d,null,0x2):String(_0x13973d)),{'ok':!![]};}},setDef={'service':a23_0xf80ca5(0x1b5),'command':a23_0xf80ca5(0x1a7),'description':'Set\x20a\x20configuration\x20value','risk':a23_0xf80ca5(0x18d),'confirmationDescription':a23_0xf80ca5(0x1b7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a23_0xf80ca5(0x17d),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','description':a23_0xf80ca5(0x18b),'required':!![]}],'flags':[GLOBAL_SCOPE_FLAG],async 'execute'(_0x2271b3){const _0x495958=a23_0xf80ca5,_0x5328fe=_0x2271b3[_0x495958(0x1ac)][0x0],_0x2dd075=_0x2271b3[_0x495958(0x1ac)][0x1];if(!_0x5328fe||_0x2dd075===undefined)throw CliErrors['validation']('Missing\x20key\x20or\x20value.',_0x495958(0x1b6)+CLI_BIN_NAME+_0x495958(0x1a6));if(ENUM_KEYS[_0x5328fe]&&!ENUM_KEYS[_0x5328fe]['includes'](_0x2dd075))throw CliErrors[_0x495958(0x1b9)]('Invalid\x20value\x20for\x20\x22'+_0x5328fe+_0x495958(0x1ad)+ENUM_KEYS[_0x5328fe][_0x495958(0x19e)](',\x20'));if(isCliProtectedConfigKey(_0x5328fe))throw CliErrors['validation']('\x22'+_0x5328fe+_0x495958(0x183));if(_0x5328fe===_0x495958(0x184)){const _0x50b2a8=Number(_0x2dd075);if(isNaN(_0x50b2a8)||_0x50b2a8<=0x0)throw CliErrors[_0x495958(0x1b9)](_0x495958(0x187));}const _0x3af2fd=resolveWriteScope({'explicitGlobal':_0x2271b3['bool']('global'),'policy':_0x495958(0x1b0)}),_0x491bf4=toScopeFlags(_0x3af2fd),_0x590141=readScopedConfig(_0x491bf4),_0x1c2444=parseAliasAppcodeSetKey(_0x5328fe);if(!_0x1c2444&&!isTopLevelConfigKey(_0x5328fe))throw CliErrors[_0x495958(0x1b9)](_0x495958(0x18e)+_0x5328fe+_0x495958(0x1a5),'Settable\x20keys:\x20'+getTopLevelConfigKeySummary()+_0x495958(0x1b4));if(_0x1c2444)setLocalAppAlias(_0x590141,_0x1c2444,_0x2dd075);else{if(_0x5328fe===_0x495958(0x1a3)){const _0x4cf22a=normalizeLocale(_0x2dd075);if(!_0x4cf22a)throw CliErrors[_0x495958(0x1b9)](_0x495958(0x194),'Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US');_0x590141[_0x495958(0x1a3)]=_0x4cf22a;}else _0x590141[_0x5328fe]=_0x5328fe==='pageSize'?Number(_0x2dd075):DOMAIN_CONFIG_FIELDS[_0x495958(0x196)](_0x5328fe)?normalizeDomainOrigin(_0x5328fe,_0x2dd075):_0x2dd075;}const _0x2b7628=_0x5328fe==='accessKey'?maskCliAccessKey(_0x2dd075):!_0x1c2444&&_0x5328fe===_0x495958(0x1a3)?String(_0x590141['locale']):_0x2dd075;return console['log']('Set\x20`'+_0x5328fe+'`\x20=\x20\x22'+_0x2b7628+'\x22'+(_0x3af2fd===_0x495958(0x1af)?_0x495958(0x19d):'')),writeScopedConfig(_0x590141,_0x491bf4),{'ok':!![]};}},deleteDef={'service':a23_0xf80ca5(0x1b5),'command':a23_0xf80ca5(0x1aa),'description':a23_0xf80ca5(0x1ae),'risk':a23_0xf80ca5(0x18d),'confirmationDescription':a23_0xf80ca5(0x189),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a23_0xf80ca5(0x17d),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_SCOPE_FLAG],async 'execute'(_0x2061d3){const _0x102192=a23_0xf80ca5,_0x2f2dfe=_0x2061d3['args'][0x0];if(!_0x2f2dfe)throw CliErrors[_0x102192(0x1b9)](_0x102192(0x18c),_0x102192(0x1b6)+CLI_BIN_NAME+_0x102192(0x1b1));if(isCliProtectedConfigKey(_0x2f2dfe))throw CliErrors['validation']('\x22'+_0x2f2dfe+_0x102192(0x183));const _0x448560=resolveWriteScope({'explicitGlobal':_0x2061d3['bool'](_0x102192(0x1af)),'policy':_0x102192(0x1b0)}),_0x1070ec=toScopeFlags(_0x448560),_0x404891=readScopedConfig(_0x1070ec),_0x3d34b5=parseAliasDeleteKey(_0x2f2dfe);if(_0x3d34b5){if(!deleteLocalAppAlias(_0x404891,_0x3d34b5))return console[_0x102192(0x197)](_0x102192(0x1a0)+_0x2f2dfe+(_0x448560===_0x102192(0x1af)?_0x102192(0x19d):'')),{'ok':!![],'data':{'key':_0x2f2dfe,'scope':_0x448560,'changed':![]}};return console['log'](_0x102192(0x1b2)+_0x2f2dfe+'`'+(_0x448560===_0x102192(0x1af)?'\x20(global)':'')),writeScopedConfig(_0x404891,_0x1070ec),{'ok':!![],'data':{'key':_0x2f2dfe,'scope':_0x448560,'changed':!![]}};}if(_0x404891[_0x2f2dfe]===undefined)return console['log'](_0x102192(0x1a0)+_0x2f2dfe+(_0x448560===_0x102192(0x1af)?_0x102192(0x19d):'')),{'ok':!![],'data':{'key':_0x2f2dfe,'scope':_0x448560,'changed':![]}};return delete _0x404891[_0x2f2dfe],console[_0x102192(0x197)](_0x102192(0x1b2)+_0x2f2dfe+'`'+(_0x448560===_0x102192(0x1af)?_0x102192(0x19d):'')),writeScopedConfig(_0x404891,_0x1070ec),{'ok':!![],'data':{'key':_0x2f2dfe,'scope':_0x448560,'changed':!![]}};}};export const configDefinitions=[configInitDefinition,listDef,getDef,setDef,deleteDef];
@@ -1 +1 @@
1
- const a24_0x5007e7=a24_0x2018;(function(_0x5209d7,_0x7fcfd2){const _0x5f3f66=a24_0x2018,_0xd71537=_0x5209d7();while(!![]){try{const _0x14a080=-parseInt(_0x5f3f66(0x1fb))/0x1*(parseInt(_0x5f3f66(0x1ff))/0x2)+-parseInt(_0x5f3f66(0x20f))/0x3*(parseInt(_0x5f3f66(0x1fc))/0x4)+-parseInt(_0x5f3f66(0x1f5))/0x5*(-parseInt(_0x5f3f66(0x218))/0x6)+parseInt(_0x5f3f66(0x1f7))/0x7+-parseInt(_0x5f3f66(0x1f4))/0x8*(parseInt(_0x5f3f66(0x208))/0x9)+-parseInt(_0x5f3f66(0x1fa))/0xa+parseInt(_0x5f3f66(0x20e))/0xb*(parseInt(_0x5f3f66(0x209))/0xc);if(_0x14a080===_0x7fcfd2)break;else _0xd71537['push'](_0xd71537['shift']());}catch(_0x388a69){_0xd71537['push'](_0xd71537['shift']());}}}(a24_0xedd9,0xc62ec));import{select}from'@inquirer/prompts';function a24_0xedd9(){const _0x5c6f43=['keys','Official\x20Lovrabet\x20region:\x20','cancelled','manifestDomains','ExitPromptError','Custom\x20platform\x20API\x20HTTPS\x20origin','1000170LivAXX','23326584bnTJGX','Initialize\x20the\x20global\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','name','Select\x20Lovrabet\x20region','config','11ciqodO','3JmChhy','Available\x20regions:\x20','string','Custom\x20User\x20HTTPS\x20origin','write','api-domain','validation','Updates\x20the\x20global\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domain\x20configuration.\x20AccessKey,\x20output\x20format,\x20and\x20app\x20bindings\x20stay\x20unchanged.','routing','9540336kXKjRH','str','mode','Region\x20\x22','runtime-domain','40QRvSnd','5qVwRPQ','join','9154327WvwmvW','nonInteractive','Custom\x20Runtime\x20HTTPS\x20origin','14494690DUsJoe','47BruAvJ','1939852NIfxVc','label','region','65526KSaAVs','enterprise-v1','independent'];a24_0xedd9=function(){return _0x5c6f43;};return a24_0xedd9();}import{CliErrors}from'../../errors.js';import{readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{DOMAIN_CONFIG_FIELDS,LEGACY_DOMAIN_CONFIG_FIELDS,resolveDomainConfigInput}from'../../config/domain-config.js';import{ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL}from'../../generated/routing-contract.js';import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES,isEnabledLovrabetRegion}from'../../constant/region.js';import{OFFICIAL_ROUTING_PROFILES}from'../../generated/official-routing.js';function a24_0x2018(_0x468d8e,_0x1a5534){_0x468d8e=_0x468d8e-0x1f1;const _0xedd96e=a24_0xedd9();let _0x20189b=_0xedd96e[_0x468d8e];return _0x20189b;}const domainFlags=[{'name':'domain-config','type':a24_0x5007e7(0x211),'description':'Independent-deployment\x20Domain\x20JSON\x20file'},{'name':'user-domain','type':'string','description':a24_0x5007e7(0x212)},{'name':a24_0x5007e7(0x214),'type':'string','description':a24_0x5007e7(0x207)},{'name':a24_0x5007e7(0x1f3),'type':'string','description':a24_0x5007e7(0x1f9)},{'name':'skill-domain','type':a24_0x5007e7(0x211),'description':'Custom\x20SkillHub\x20HTTPS\x20origin'},{'name':'kb-service-domain','type':a24_0x5007e7(0x211),'description':'Custom\x20KB\x20Service\x20HTTPS\x20origin'}];export const configInitFlags=[{'name':a24_0x5007e7(0x1fe),'type':a24_0x5007e7(0x211),'description':a24_0x5007e7(0x203)+ENABLED_LOVRABET_REGION_VALUES[a24_0x5007e7(0x1f6)](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},...domainFlags];async function resolveRegion(_0x2255e7){const _0x301cd4=a24_0x5007e7,_0x1c751=_0x2255e7[_0x301cd4(0x219)]('region');if(_0x1c751){if(!isEnabledLovrabetRegion(_0x1c751))throw CliErrors['validation'](_0x301cd4(0x1f2)+_0x1c751+'\x22\x20is\x20not\x20currently\x20available.',_0x301cd4(0x210)+ENABLED_LOVRABET_REGION_VALUES[_0x301cd4(0x1f6)](',\x20'));return _0x1c751;}if(_0x2255e7[_0x301cd4(0x1f8)])return DEFAULT_LOVRABET_REGION;try{return await select({'message':_0x301cd4(0x20c),'default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES['map'](_0x3c51e2=>({'name':OFFICIAL_ROUTING_PROFILES[_0x3c51e2][_0x301cd4(0x1fd)]+'\x20('+_0x3c51e2+')','value':_0x3c51e2}))});}catch(_0xd52cec){if(_0xd52cec?.[_0x301cd4(0x20b)]===_0x301cd4(0x206))throw CliErrors[_0x301cd4(0x204)]();throw _0xd52cec;}}export async function executeConfigInit(_0x6aed6c){const _0x1ab29e=a24_0x5007e7,_0xc1121c=resolveDomainConfigInput(_0x6aed6c),_0x28d763=_0xc1121c['domains'],_0x229ea7=Object[_0x1ab29e(0x202)](_0x28d763)['length']>0x0;if(_0x229ea7&&_0x6aed6c['str'](_0x1ab29e(0x1fe)))throw CliErrors[_0x1ab29e(0x215)]('Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.');const _0x56ea02={'global':!![]},_0x3ea9e4=readScopedConfig(_0x56ea02);for(const _0x41faa4 of DOMAIN_CONFIG_FIELDS)delete _0x3ea9e4[_0x41faa4];for(const _0x2e9c80 of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x3ea9e4[_0x2e9c80];delete _0x3ea9e4[_0x1ab29e(0x217)];let _0x3ff4cb=null;if(_0x229ea7)delete _0x3ea9e4['region'],_0xc1121c['mode']==='enterprise-v1'?_0x3ea9e4['routing']={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0xc1121c['manifestDomains']}:Object['assign'](_0x3ea9e4,_0x28d763);else{_0x3ff4cb=await resolveRegion(_0x6aed6c);if(_0x3ff4cb===DEFAULT_LOVRABET_REGION)delete _0x3ea9e4['region'];else _0x3ea9e4[_0x1ab29e(0x1fe)]=_0x3ff4cb;}return writeScopedConfig(_0x3ea9e4,_0x56ea02),{'ok':!![],'message':_0x229ea7?'Lovrabet\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20'+Object[_0x1ab29e(0x202)](_0xc1121c[_0x1ab29e(0x1f1)]===_0x1ab29e(0x200)?_0xc1121c[_0x1ab29e(0x205)]:_0x28d763)[_0x1ab29e(0x1f6)](',\x20')+'.':'Lovrabet\x20connection\x20configured\x20for\x20region:\x20'+_0x3ff4cb+'.','data':{'mode':_0x229ea7?_0x1ab29e(0x201):'official','protocol':_0xc1121c['mode']===_0x1ab29e(0x200)?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0x3ff4cb,'domains':_0x28d763}};}export const configInitDefinition={'service':a24_0x5007e7(0x20d),'command':'init','description':a24_0x5007e7(0x20a),'risk':a24_0x5007e7(0x213),'confirmationDescription':a24_0x5007e7(0x216),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':configInitFlags,'execute':executeConfigInit};
1
+ const a24_0x32734d=a24_0x10b5;(function(_0x35addd,_0x4438fb){const _0x528624=a24_0x10b5,_0x5c8b93=_0x35addd();while(!![]){try{const _0x5899f2=-parseInt(_0x528624(0xdd))/0x1*(parseInt(_0x528624(0xf5))/0x2)+parseInt(_0x528624(0xe4))/0x3*(parseInt(_0x528624(0xde))/0x4)+parseInt(_0x528624(0xe3))/0x5+parseInt(_0x528624(0xf4))/0x6+-parseInt(_0x528624(0xe6))/0x7*(-parseInt(_0x528624(0x100))/0x8)+parseInt(_0x528624(0xe2))/0x9+-parseInt(_0x528624(0xf0))/0xa*(parseInt(_0x528624(0xf3))/0xb);if(_0x5899f2===_0x4438fb)break;else _0x5c8b93['push'](_0x5c8b93['shift']());}catch(_0x4e23ec){_0x5c8b93['push'](_0x5c8b93['shift']());}}}(a24_0x4fc5,0x810de));import{select}from'@inquirer/prompts';import{CliErrors}from'../../errors.js';import{readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{DOMAIN_CONFIG_FIELDS,LEGACY_DOMAIN_CONFIG_FIELDS,resolveDomainConfigInput}from'../../config/domain-config.js';import{ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL}from'../../generated/routing-contract.js';function a24_0x10b5(_0x4c2ee1,_0x149261){_0x4c2ee1=_0x4c2ee1-0xd6;const _0x4fc5aa=a24_0x4fc5();let _0x10b521=_0x4fc5aa[_0x4c2ee1];return _0x10b521;}import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES,isEnabledLovrabetRegion}from'../../constant/region.js';import{OFFICIAL_ROUTING_PROFILES}from'../../generated/official-routing.js';const domainFlags=[{'name':a24_0x32734d(0xed),'type':a24_0x32734d(0x101),'description':a24_0x32734d(0xe1)},{'name':a24_0x32734d(0xf2),'type':a24_0x32734d(0x101),'description':a24_0x32734d(0xdf)},{'name':a24_0x32734d(0xd9),'type':a24_0x32734d(0x101),'description':a24_0x32734d(0xec)},{'name':'runtime-domain','type':a24_0x32734d(0x101),'description':a24_0x32734d(0xe7)},{'name':a24_0x32734d(0xe9),'type':a24_0x32734d(0x101),'description':a24_0x32734d(0xdc)},{'name':a24_0x32734d(0xf9),'type':a24_0x32734d(0x101),'description':a24_0x32734d(0xf1)}];export const configInitFlags=[{'name':a24_0x32734d(0xe8),'type':a24_0x32734d(0x101),'description':a24_0x32734d(0xfb)+ENABLED_LOVRABET_REGION_VALUES[a24_0x32734d(0xef)](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},...domainFlags];async function resolveRegion(_0x18c7ad){const _0x5b2664=a24_0x32734d,_0x383a6d=_0x18c7ad[_0x5b2664(0xfe)](_0x5b2664(0xe8));if(_0x383a6d){if(!isEnabledLovrabetRegion(_0x383a6d))throw CliErrors[_0x5b2664(0xe5)]('Region\x20\x22'+_0x383a6d+'\x22\x20is\x20not\x20currently\x20available.',_0x5b2664(0xf7)+ENABLED_LOVRABET_REGION_VALUES[_0x5b2664(0xef)](',\x20'));return _0x383a6d;}if(_0x18c7ad['nonInteractive'])return DEFAULT_LOVRABET_REGION;try{return await select({'message':_0x5b2664(0xd6),'default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES[_0x5b2664(0xda)](_0x2e0300=>({'name':OFFICIAL_ROUTING_PROFILES[_0x2e0300][_0x5b2664(0xf6)]+'\x20('+_0x2e0300+')','value':_0x2e0300}))});}catch(_0x23f0a9){if(_0x23f0a9?.['name']==='ExitPromptError')throw CliErrors[_0x5b2664(0xd7)]();throw _0x23f0a9;}}export async function executeConfigInit(_0x312732){const _0x5a4572=a24_0x32734d,_0x4b23a2=resolveDomainConfigInput(_0x312732),_0xe59940=_0x4b23a2[_0x5a4572(0xdb)],_0x374db1=Object[_0x5a4572(0xea)](_0xe59940)[_0x5a4572(0xff)]>0x0;if(_0x374db1&&_0x312732['str']('region'))throw CliErrors['validation']('Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.');const _0x8101e3={'global':!![]},_0x1c4c25=readScopedConfig(_0x8101e3);for(const _0xbeaa of DOMAIN_CONFIG_FIELDS)delete _0x1c4c25[_0xbeaa];for(const _0x1803b2 of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x1c4c25[_0x1803b2];delete _0x1c4c25[_0x5a4572(0xfc)];let _0x3248db=null;if(_0x374db1)delete _0x1c4c25['region'],_0x4b23a2[_0x5a4572(0xeb)]==='enterprise-v1'?_0x1c4c25[_0x5a4572(0xfc)]={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0x4b23a2[_0x5a4572(0xe0)]}:Object['assign'](_0x1c4c25,_0xe59940);else{_0x3248db=await resolveRegion(_0x312732);if(_0x3248db===DEFAULT_LOVRABET_REGION)delete _0x1c4c25[_0x5a4572(0xe8)];else _0x1c4c25['region']=_0x3248db;}return writeScopedConfig(_0x1c4c25,_0x8101e3),{'ok':!![],'message':_0x374db1?_0x5a4572(0xf8)+Object[_0x5a4572(0xea)](_0x4b23a2[_0x5a4572(0xeb)]===_0x5a4572(0xfa)?_0x4b23a2[_0x5a4572(0xe0)]:_0xe59940)[_0x5a4572(0xef)](',\x20')+'.':'Lovrabet\x20connection\x20configured\x20for\x20region:\x20'+_0x3248db+'.','data':{'mode':_0x374db1?_0x5a4572(0xd8):'official','protocol':_0x4b23a2[_0x5a4572(0xeb)]===_0x5a4572(0xfa)?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0x3248db,'domains':_0xe59940}};}function a24_0x4fc5(){const _0x149e5b=['1345816XIBtjp','string','Select\x20Lovrabet\x20region','cancelled','independent','api-domain','map','domains','Custom\x20SkillHub\x20HTTPS\x20origin','883357tHgCDd','1043860gGIGDo','Custom\x20User\x20HTTPS\x20origin','manifestDomains','Independent-deployment\x20Domain\x20JSON\x20file','7929801HphGyY','781075PJLKVC','3zYPJtQ','validation','28Tlhrzz','Custom\x20Runtime\x20HTTPS\x20origin','region','skill-domain','keys','mode','Custom\x20platform\x20API\x20HTTPS\x20origin','domain-config','config','join','20eRwpZY','Custom\x20KB\x20Service\x20HTTPS\x20origin','user-domain','4929408ELhpDp','2022252emJjQk','2SKUSOb','label','Available\x20regions:\x20','Lovrabet\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20','kb-service-domain','enterprise-v1','Official\x20Lovrabet\x20region:\x20','routing','write','str','length'];a24_0x4fc5=function(){return _0x149e5b;};return a24_0x4fc5();}export const configInitDefinition={'service':a24_0x32734d(0xee),'command':'init','description':'Initialize\x20the\x20global\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','risk':a24_0x32734d(0xfd),'confirmationDescription':'Updates\x20the\x20global\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domain\x20configuration.\x20AccessKey,\x20output\x20format,\x20and\x20app\x20bindings\x20stay\x20unchanged.','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':configInitFlags,'execute':executeConfigInit};
@@ -1 +1 @@
1
- (function(_0x3c334d,_0x13e84a){var _0x5c3de1=a25_0x344b,_0xe26765=_0x3c334d();while(!![]){try{var _0x358a64=-parseInt(_0x5c3de1(0xf9))/0x1+-parseInt(_0x5c3de1(0xfe))/0x2*(parseInt(_0x5c3de1(0xff))/0x3)+parseInt(_0x5c3de1(0xfa))/0x4+-parseInt(_0x5c3de1(0xf8))/0x5+parseInt(_0x5c3de1(0xfc))/0x6+-parseInt(_0x5c3de1(0xfd))/0x7+parseInt(_0x5c3de1(0xfb))/0x8;if(_0x358a64===_0x13e84a)break;else _0xe26765['push'](_0xe26765['shift']());}catch(_0x8a9f8a){_0xe26765['push'](_0xe26765['shift']());}}}(a25_0x120d,0x2e6fe));import{CLI_BIN_NAME}from'../../constant/cli.js';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,isCliProtectedConfigKey,isTopLevelConfigKey,normalizeLocale,toScopeFlags}from'../../commands/common/config-policy.js';function a25_0x344b(_0x1d74b1,_0x279658){_0x1d74b1=_0x1d74b1-0xf8;var _0x120d34=a25_0x120d();var _0x344b28=_0x120d34[_0x1d74b1];return _0x344b28;}function a25_0x120d(){var _0x23338e=['99dlfWoD','499565HySeKx','346214oxLTQu','1199348zNVqtL','3251088Jgfbiy','1514478QqeyOn','730366BgwYsH','13210MJPQzL'];a25_0x120d=function(){return _0x23338e;};return a25_0x120d();}
1
+ function a25_0x1b5b(){var _0x26c2a7=['1598044dvQXbC','15227550wHTZPL','149298Rmachm','8cGeZdx','472941pbPOUL','160rdNwEf','12052390FtZCKz','2Ntbjge','9530486aRHlAr','3420240wBnwgq','33yfOGzI'];a25_0x1b5b=function(){return _0x26c2a7;};return a25_0x1b5b();}(function(_0x2a11cc,_0x43cbe8){var _0x4bef61=a25_0x29c9,_0x486c32=_0x2a11cc();while(!![]){try{var _0x4ac35a=parseInt(_0x4bef61(0x1f1))/0x1*(parseInt(_0x4bef61(0x1ea))/0x2)+-parseInt(_0x4bef61(0x1ee))/0x3+parseInt(_0x4bef61(0x1e8))/0x4+parseInt(_0x4bef61(0x1ef))/0x5*(-parseInt(_0x4bef61(0x1ec))/0x6)+parseInt(_0x4bef61(0x1f2))/0x7*(parseInt(_0x4bef61(0x1ed))/0x8)+parseInt(_0x4bef61(0x1eb))/0x9+parseInt(_0x4bef61(0x1f0))/0xa*(-parseInt(_0x4bef61(0x1e9))/0xb);if(_0x4ac35a===_0x43cbe8)break;else _0x486c32['push'](_0x486c32['shift']());}catch(_0x38589e){_0x486c32['push'](_0x486c32['shift']());}}}(a25_0x1b5b,0xe4be4));function a25_0x29c9(_0x183519,_0x1af769){_0x183519=_0x183519-0x1e8;var _0x1b5bdf=a25_0x1b5b();var _0x29c964=_0x1b5bdf[_0x183519];return _0x29c964;}import{CLI_BIN_NAME}from'../../constant/cli.js';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,isCliProtectedConfigKey,isTopLevelConfigKey,normalizeLocale,toScopeFlags}from'../../commands/common/config-policy.js';
@@ -1 +1 @@
1
- const a26_0x398a53=a26_0x5f10;(function(_0x4d31c4,_0x223e35){const _0x47d3bf=a26_0x5f10,_0x24203b=_0x4d31c4();while(!![]){try{const _0x2eeca0=-parseInt(_0x47d3bf(0xf7))/0x1*(-parseInt(_0x47d3bf(0xd3))/0x2)+parseInt(_0x47d3bf(0xdd))/0x3+parseInt(_0x47d3bf(0xe6))/0x4*(parseInt(_0x47d3bf(0xf3))/0x5)+-parseInt(_0x47d3bf(0xcb))/0x6+parseInt(_0x47d3bf(0xef))/0x7*(parseInt(_0x47d3bf(0xcf))/0x8)+-parseInt(_0x47d3bf(0xf2))/0x9*(parseInt(_0x47d3bf(0xf0))/0xa)+-parseInt(_0x47d3bf(0x110))/0xb*(parseInt(_0x47d3bf(0x113))/0xc);if(_0x2eeca0===_0x223e35)break;else _0x24203b['push'](_0x24203b['shift']());}catch(_0x17341a){_0x24203b['push'](_0x24203b['shift']());}}}(a26_0x4dd7,0x2e435));import{readFile,realpath}from'node:fs/promises';import{resolve}from'node:path';import{CODE_FLAG}from'../../commands/common/flags.js';import{getDatasetDetail,getDatasetImportContract,createDatasetImportBatch,readDatasetImportRows,readDatasetImportTaskRows,uploadDatasetImportImage,readDatasetImportImage}from'../../core/api-client.js';import{getRuntimeDomain}from'../../constant/domain.js';function a26_0x5f10(_0xc98e1b,_0x1c1b3e){_0xc98e1b=_0xc98e1b-0xc2;const _0x4dd7bf=a26_0x4dd7();let _0x5f10c5=_0x4dd7bf[_0xc98e1b];return _0x5f10c5;}import{CliError,CliErrors}from'../../errors.js';import{buildExcelManifest,normalizeImportFields}from'../../services/dataset-import/excel-reader.js';import{assertImportContract,assertImportPaths,runExcelImport,saveImportJson,resolveImportOutputPath}from'../../services/dataset-import/runner.js';import{assertDatasetImportTarget}from'../../services/dataset-import/metadata.js';import{runAutoIdExcelImport}from'../../services/dataset-import/auto-id-runner.js';import{assertImageImportCapability,runImageExcelImport}from'../../services/dataset-import/image-runner.js';import{previewImportBatchCount}from'../../services/dataset-import/preview.js';function a26_0x4dd7(){const _0x40b1eb=['map','mappingFile','Creates\x20real\x20dataset\x20records\x20immediately.\x20Keep\x20the\x20checkpoint\x20to\x20reconcile\x20and\x20resume\x20interrupted\x20imports.','292449EOEKQG','Excel\x20import\x20failed.','See\x20','/client/','\x20--params\x20\x27<JSON\x20array>\x27\x20--dry-run\x20using\x20the\x20target\x20app\x27s\x20User\x20AK\x20and\x20runtime\x20permissions.\x20Dry-run\x20only\x20previews\x20the\x20request;\x20verify\x20written\x20rows\x20before\x20advancing\x20and\x20reconcile\x20unknown\x20outcomes\x20before\x20retrying.\x20This\x20DB_TABLE\x20route\x20does\x20not\x20support\x20import\x20checkpoints\x20or\x20--resume.\x20See\x20references/lovrabet-db-table-excel-import.md\x20in\x20the\x20built-in\x20Skill.\x20No\x20import\x20request\x20was\x20sent.','validation','/import-batch','errors','DB_TABLE\x20datasets\x20use\x20the\x20existing\x20batchCreate\x20operation;\x20import-excel\x20only\x20supports\x20METADATA\x20datasets.','376532kVktRQ','Import\x20one\x20XLSX\x20worksheet\x20into\x20METADATA\x20with\x20checkpoint\x20recovery.\x20DB_TABLE\x20uses\x20lovrabet\x20data\x20batchCreate\x20after\x20mapping\x20and\x20validation;\x20that\x20route\x20has\x20no\x20import\x20checkpoint\x20or\x20--resume.','METADATA','batch-size','media','max','size','str','Local\x20XLSX\x20file\x20(maximum\x2020\x20MB)','229985CmqvnJ','3283220EUfiAC','sheet','9PHUmnV','15HRZNkl','report','emptyRows','values','5DvFIIy','imageFields','import-excel','\x20invalid\x20cells.\x20No\x20records\x20were\x20written.','data','Batch\x20size\x20exceeds\x20the\x20server\x20import\x20contract.','appCode','reduce','\x20--code\x20','Private\x20result\x20report\x20(default:\x20XLSX\x20path\x20plus\x20.import-report.json)','.\x20Validate\x20fields\x20and\x20confirmed\x20unique\x20business\x20keys,\x20convert\x20Excel\x20rows\x20to\x20JSON,\x20and\x20split\x20within\x20the\x20target\x20API\x20row/byte\x20limits.\x20Preview\x20one\x20batch\x20with\x20lovrabet\x20data\x20batchCreate\x20--appcode\x20','resume','isArray','num','mapping','Mapping\x20file\x20exceeds\x201\x20MB.','boolean','.import-checkpoint.json','.lock.recovery','some','rows','.lock','message','warnings','DB_TABLE','11tmftao','Maximum\x20records\x20per\x20request\x20(1..500)','POST','2518320uQssvz','slice','Worksheet\x20name\x20or\x201-based\x20index\x20(default:\x20first\x20worksheet)','batchSize','Excel\x20contains\x20','bool','.import-report.json','length','succeeded','hashes','file','checkpoint','Private\x20checkpoint\x20file\x20(default:\x20XLSX\x20path\x20plus\x20.import-checkpoint.json)','schemaFingerprint','all','string','Dataset\x20source\x20is\x20missing\x20or\x20unsupported;\x20import-excel\x20requires\x20METADATA.','\x20records.','796002RFojtp','object','code','number','32wFCvFr','JSON\x20file\x20mapping\x20Excel\x20headers\x20to\x20dataset\x20field\x20codes','1-based\x20Excel\x20header\x20row','header-row','139616brYFja','isInteger','Run\x20dataset\x20detail\x20to\x20confirm\x20the\x20source.\x20Only\x20DB_TABLE\x20has\x20the\x20documented\x20alternative\x20batchCreate\x20route;\x20do\x20not\x20guess\x20or\x20automatically\x20switch\x20APIs.','Reconcile\x20imported\x20records\x20and\x20resume\x20the\x20exact\x20original\x20file,\x20target\x20and\x20mapping','Source,\x20mapping,\x20checkpoint\x20and\x20report\x20must\x20be\x20different\x20files.','imageCells','Imported\x20and\x20verified\x20'];a26_0x4dd7=function(){return _0x40b1eb;};return a26_0x4dd7();}function input(_0x8d850e){const _0xc5fd71=a26_0x5f10,_0x51d30c=_0x8d850e[_0xc5fd71(0xed)]('file'),_0x461d68=_0x8d850e[_0xc5fd71(0xed)](_0xc5fd71(0x105));if(!_0x51d30c||!_0x461d68)throw CliErrors['validation']('--file\x20and\x20--mapping\x20are\x20required.');const _0x37fdde=_0x8d850e[_0xc5fd71(0x104)](_0xc5fd71(0xd2),0x1),_0xcc16d7=_0x8d850e[_0xc5fd71(0x104)](_0xc5fd71(0xe9),0x1f4);if(!Number['isInteger'](_0x37fdde)||_0x37fdde<0x1||!Number[_0xc5fd71(0xd4)](_0xcc16d7)||_0xcc16d7<0x1||_0xcc16d7>0x1f4)throw CliErrors['validation']('Header\x20row\x20must\x20be\x20positive\x20and\x20batch\x20size\x20must\x20be\x20between\x201\x20and\x20500.');const _0x530429=resolve(_0x8d850e[_0xc5fd71(0xed)]('checkpoint')||_0x51d30c+_0xc5fd71(0x108)),_0x41bd39=resolve(_0x8d850e['str'](_0xc5fd71(0xf4))||_0x51d30c+_0xc5fd71(0x119)),_0x13c2c6=[resolve(_0x51d30c),resolve(_0x461d68),_0x530429,_0x41bd39];if(new Set(_0x13c2c6)[_0xc5fd71(0xec)]!==_0x13c2c6[_0xc5fd71(0x11a)])throw CliErrors[_0xc5fd71(0xe2)](_0xc5fd71(0xd7));return{'file':resolve(_0x51d30c),'mappingFile':resolve(_0x461d68),'headerRow':_0x37fdde,'batchSize':_0xcc16d7,'checkpoint':_0x530429,'report':_0x41bd39,'sheet':_0x8d850e[_0xc5fd71(0xed)](_0xc5fd71(0xf1))||undefined,'resume':_0x8d850e[_0xc5fd71(0x118)](_0xc5fd71(0x102))};}async function prepare(_0xc7f60d){const _0x5afe33=a26_0x5f10,_0x5e47e3=input(_0xc7f60d),_0x222e61=_0xc7f60d['str'](_0x5afe33(0xcd));[_0x5e47e3[_0x5afe33(0xc3)],_0x5e47e3[_0x5afe33(0xdb)],_0x5e47e3[_0x5afe33(0xc4)],_0x5e47e3[_0x5afe33(0xf4)]]=await Promise['all']([realpath(_0x5e47e3[_0x5afe33(0xc3)]),realpath(_0x5e47e3['mappingFile']),resolveImportOutputPath(_0x5e47e3['checkpoint']),resolveImportOutputPath(_0x5e47e3[_0x5afe33(0xf4)])]),assertImportPaths(_0x5e47e3['checkpoint'],_0x5e47e3['report'],[_0x5e47e3[_0x5afe33(0xc3)],_0x5e47e3[_0x5afe33(0xdb)]]);let _0x3dc30b;const _0x47f7d6=await readFile(_0x5e47e3[_0x5afe33(0xdb)]);if(_0x47f7d6[_0x5afe33(0x11a)]>0x400*0x400)throw CliErrors[_0x5afe33(0xe2)](_0x5afe33(0x106));try{_0x3dc30b=JSON['parse'](_0x47f7d6['toString']('utf8'));}catch{throw CliErrors[_0x5afe33(0xe2)]('Mapping\x20file\x20must\x20contain\x20valid\x20JSON.');}if(!_0x3dc30b||typeof _0x3dc30b!==_0x5afe33(0xcc)||Array[_0x5afe33(0x103)](_0x3dc30b)||Object[_0x5afe33(0xf6)](_0x3dc30b)[_0x5afe33(0x10a)](_0x406537=>typeof _0x406537!==_0x5afe33(0xc8)))throw CliErrors[_0x5afe33(0xe2)]('Mapping\x20must\x20be\x20an\x20object\x20from\x20Excel\x20headers\x20to\x20field\x20codes.');const _0x5b7a01=await getDatasetDetail(_0x222e61),_0x23d4e0=assertDatasetImportTarget(_0x5b7a01,_0xc7f60d['appCode'],_0x222e61);if(_0x23d4e0===_0x5afe33(0x10f))throw CliErrors['validation'](_0x5afe33(0xe5),'Inspect\x20lovrabet\x20dataset\x20detail\x20--code\x20'+_0x222e61+_0x5afe33(0x101)+_0xc7f60d[_0x5afe33(0xfd)]+_0x5afe33(0xff)+_0x222e61+_0x5afe33(0xe1));if(_0x23d4e0!==_0x5afe33(0xe8))throw CliErrors['validation'](_0x5afe33(0xc9),_0x5afe33(0xd5));const _0x191ccd=await buildExcelManifest({..._0x5e47e3,'mapping':_0x3dc30b,'fields':normalizeImportFields(_0x5b7a01)}),_0x4dbeee=await getDatasetImportContract(_0xc7f60d[_0x5afe33(0xfd)],_0x222e61);assertImportContract(_0x4dbeee,_0xc7f60d[_0x5afe33(0xfd)],_0x222e61),assertImageImportCapability(_0x4dbeee,_0x191ccd);if(_0x191ccd[_0x5afe33(0xf8)]?.[_0x5afe33(0x11a)]){const _0x301f18=await resolveImportOutputPath(_0x5e47e3[_0x5afe33(0xc4)]+'.rows.json'),_0x4162fc=await Promise[_0x5afe33(0xc7)]([_0x301f18,_0x301f18+_0x5afe33(0x10c),_0x301f18+_0x5afe33(0x109),_0x5e47e3[_0x5afe33(0xc4)]+'.lock',_0x5e47e3[_0x5afe33(0xc4)]+_0x5afe33(0x109)]['map'](resolveImportOutputPath));assertImportPaths(_0x5e47e3[_0x5afe33(0xc4)],_0x5e47e3['report'],[_0x5e47e3[_0x5afe33(0xc3)],_0x5e47e3[_0x5afe33(0xdb)],..._0x4162fc[_0x5afe33(0x114)](0x0,0x3)]);}if(_0x5e47e3['batchSize']>_0x4dbeee['maxBatchSize'])throw CliErrors['validation'](_0x5afe33(0xfc));return{'args':_0x5e47e3,'manifest':_0x191ccd,'contract':_0x4dbeee,'code':_0x222e61};}async function checked(_0x388391){const _0x33c395=a26_0x5f10;try{return await _0x388391();}catch(_0x503485){if(_0x503485 instanceof CliError)throw _0x503485;throw CliErrors[_0x33c395(0xe2)](_0x503485[_0x33c395(0x10d)]||_0x33c395(0xde));}}export const dataImportExcel={'service':a26_0x398a53(0xfb),'command':a26_0x398a53(0xf9),'risk':'write','description':a26_0x398a53(0xe7),'confirmationDescription':a26_0x398a53(0xdc),'flags':[CODE_FLAG,{'name':a26_0x398a53(0xc3),'type':a26_0x398a53(0xc8),'required':!![],'description':a26_0x398a53(0xee)},{'name':'mapping','type':a26_0x398a53(0xc8),'required':!![],'description':a26_0x398a53(0xd0)},{'name':'sheet','type':a26_0x398a53(0xc8),'description':a26_0x398a53(0x115)},{'name':a26_0x398a53(0xd2),'type':a26_0x398a53(0xce),'default':0x1,'description':a26_0x398a53(0xd1)},{'name':'batch-size','type':a26_0x398a53(0xce),'default':0x1f4,'description':a26_0x398a53(0x111)},{'name':a26_0x398a53(0xc4),'type':'string','description':a26_0x398a53(0xc5)},{'name':'report','type':a26_0x398a53(0xc8),'description':a26_0x398a53(0x100)},{'name':'resume','type':a26_0x398a53(0x107),'description':a26_0x398a53(0xd6)}],'validate':async _0x398eaa=>{input(_0x398eaa);},'dryRun':async _0x418d1c=>checked(async()=>{const _0x418a7e=a26_0x398a53,{args:_0x3da430,manifest:_0x139521,contract:_0xbd2ff2,code:_0x2881f6}=await prepare(_0x418d1c),_0x528860=new Set(_0x139521[_0x418a7e(0xe4)][_0x418a7e(0xda)](_0x4ddfea=>_0x4ddfea['rowNumber']))[_0x418a7e(0xec)];return{'method':_0x418a7e(0x112),'url':_0x418a7e(0xe0)+encodeURIComponent(_0x418d1c['appCode'])+'/'+encodeURIComponent(_0x2881f6)+_0x418a7e(0xe3),'description':'Local\x20Excel\x20validation\x20only;\x20no\x20records\x20or\x20checkpoint\x20were\x20written.','body':{'schemaFingerprint':_0xbd2ff2[_0x418a7e(0xc6)]},'validRows':Math[_0x418a7e(0xeb)](0x0,_0x139521['rows'][_0x418a7e(0x11a)]-_0x528860),'invalidRows':_0x528860,'invalidCells':_0x139521[_0x418a7e(0xe4)][_0x418a7e(0x11a)],'emptyRows':_0x139521['emptyRows']['length'],'expectedBatches':previewImportBatchCount(_0x139521,_0xbd2ff2,_0x3da430[_0x418a7e(0x116)]),'imageCount':_0x139521[_0x418a7e(0xd8)]?.[_0x418a7e(0xfe)]((_0x13fd42,_0x5aecea)=>_0x13fd42+_0x5aecea[_0x418a7e(0xc2)]['length'],0x0)??0x0,'uniqueImages':_0x139521[_0x418a7e(0xea)]?.[_0x418a7e(0x11a)]??0x0,'uniqueImageBytes':_0x139521['media']?.['reduce']((_0x1c1a9a,_0x4785e8)=>_0x1c1a9a+_0x4785e8[_0x418a7e(0xec)],0x0)??0x0,'errors':_0x139521[_0x418a7e(0xe4)],'warnings':_0x139521[_0x418a7e(0x10e)],'sheet':_0x139521[_0x418a7e(0xf1)],'checkpoint':_0x3da430[_0x418a7e(0xc4)],'report':_0x3da430[_0x418a7e(0xf4)]};}),'execute':async _0x56fb88=>checked(async()=>{const _0x303aa9=a26_0x398a53,{args:_0x14656a,manifest:_0x2d1103,contract:_0x1768e6,code:_0x3056aa}=await prepare(_0x56fb88);if(_0x2d1103[_0x303aa9(0xe4)][_0x303aa9(0x11a)]){await saveImportJson(_0x14656a[_0x303aa9(0xf4)],{'status':'invalid','sourceRows':_0x2d1103[_0x303aa9(0x10b)][_0x303aa9(0x11a)],'errors':_0x2d1103[_0x303aa9(0xe4)],'emptyRows':_0x2d1103[_0x303aa9(0xf5)],'warnings':_0x2d1103[_0x303aa9(0x10e)]});throw CliErrors[_0x303aa9(0xe2)](_0x303aa9(0x117)+_0x2d1103[_0x303aa9(0xe4)][_0x303aa9(0x11a)]+_0x303aa9(0xfa),_0x303aa9(0xdf)+_0x14656a[_0x303aa9(0xf4)]+'.');}const _0x431bbb=_0x2d1103[_0x303aa9(0xf8)]?.[_0x303aa9(0x11a)]?runImageExcelImport:_0x1768e6['schemaVersion']===0x2?runAutoIdExcelImport:runExcelImport,_0x133e92=await _0x431bbb({..._0x14656a,'manifest':_0x2d1103,'contract':_0x1768e6,'appCode':_0x56fb88['appCode'],'datasetCode':_0x3056aa,'runtimeDomain':getRuntimeDomain(),'inputPaths':[_0x14656a['file'],_0x14656a['mappingFile']],'imageApi':{'upload':(_0x53196e,_0xfbc47a)=>uploadDatasetImportImage(_0x56fb88[_0x303aa9(0xfd)],_0x3056aa,_0x53196e,_0xfbc47a),'readback':(_0x183d0e,_0x56e482)=>readDatasetImportImage(_0x56fb88['appCode'],_0x3056aa,_0x183d0e,_0x56e482)},'api':{'write':(_0x413e3f,_0x19b9aa)=>createDatasetImportBatch(_0x56fb88[_0x303aa9(0xfd)],_0x3056aa,{'schemaFingerprint':_0x1768e6['schemaFingerprint'],'items':_0x413e3f,..._0x19b9aa===undefined?{}:{'taskId':_0x19b9aa}}),'readback':_0x4edf4f=>readDatasetImportRows(_0x56fb88[_0x303aa9(0xfd)],_0x3056aa,_0x4edf4f),'readTask':_0x4764f1=>readDatasetImportTaskRows(_0x56fb88[_0x303aa9(0xfd)],_0x3056aa,_0x4764f1)}});return{'ok':!![],'data':_0x133e92,'message':_0x303aa9(0xd9)+_0x133e92[_0x303aa9(0x11b)]+_0x303aa9(0xca)};})};
1
+ const a26_0x43e41a=a26_0x2e85;(function(_0x59ef2e,_0x503371){const _0x7c337b=a26_0x2e85,_0x1932b1=_0x59ef2e();while(!![]){try{const _0x965b70=-parseInt(_0x7c337b(0x95))/0x1+parseInt(_0x7c337b(0x9e))/0x2+parseInt(_0x7c337b(0xb0))/0x3*(parseInt(_0x7c337b(0x72))/0x4)+-parseInt(_0x7c337b(0xa3))/0x5*(-parseInt(_0x7c337b(0xae))/0x6)+-parseInt(_0x7c337b(0x9d))/0x7+-parseInt(_0x7c337b(0x8d))/0x8+parseInt(_0x7c337b(0x90))/0x9;if(_0x965b70===_0x503371)break;else _0x1932b1['push'](_0x1932b1['shift']());}catch(_0x39a1e6){_0x1932b1['push'](_0x1932b1['shift']());}}}(a26_0x5747,0xd64c4));import{readFile,realpath}from'node:fs/promises';import{resolve}from'node:path';import{CODE_FLAG}from'../../commands/common/flags.js';import{getDatasetDetail,getDatasetImportContract,createDatasetImportBatch,readDatasetImportRows,readDatasetImportTaskRows,uploadDatasetImportImage,readDatasetImportImage}from'../../core/api-client.js';import{getRuntimeDomain}from'../../constant/domain.js';import{CliError,CliErrors}from'../../errors.js';import{buildExcelManifest,normalizeImportFields}from'../../services/dataset-import/excel-reader.js';import{assertImportContract,assertImportPaths,runExcelImport,saveImportJson,resolveImportOutputPath}from'../../services/dataset-import/runner.js';function a26_0x2e85(_0x4a2139,_0x5ae63b){_0x4a2139=_0x4a2139-0x64;const _0x57472c=a26_0x5747();let _0x2e85ff=_0x57472c[_0x4a2139];return _0x2e85ff;}import{assertDatasetImportTarget}from'../../services/dataset-import/metadata.js';import{runAutoIdExcelImport}from'../../services/dataset-import/auto-id-runner.js';import{assertImageImportCapability,runImageExcelImport}from'../../services/dataset-import/image-runner.js';import{previewImportBatchCount}from'../../services/dataset-import/preview.js';function a26_0x5747(){const _0x313980=['values','isInteger','Private\x20result\x20report\x20(default:\x20XLSX\x20path\x20plus\x20.import-report.json)','\x20records.','string','report','Source,\x20mapping,\x20checkpoint\x20and\x20report\x20must\x20be\x20different\x20files.','\x20--code\x20','\x20invalid\x20cells.\x20No\x20records\x20were\x20written.','str','60ZsbspT','errors','291qhrVOL','.import-checkpoint.json','succeeded','batch-size','batchSize','Mapping\x20file\x20must\x20contain\x20valid\x20JSON.','/import-batch','Maximum\x20records\x20per\x20request\x20(1..500)','file','toString','resume','length','Mapping\x20file\x20exceeds\x201\x20MB.','appCode','sheet','.lock','number','max','invalid','mapping','Local\x20XLSX\x20file\x20(maximum\x2020\x20MB)','Reconcile\x20imported\x20records\x20and\x20resume\x20the\x20exact\x20original\x20file,\x20target\x20and\x20mapping','Excel\x20import\x20failed.','68528bxHmNR','Excel\x20contains\x20','schemaFingerprint','maxBatchSize','rows','validation','code','size','Imported\x20and\x20verified\x20','message','write','Dataset\x20source\x20is\x20missing\x20or\x20unsupported;\x20import-excel\x20requires\x20METADATA.','imageFields','warnings','Header\x20row\x20must\x20be\x20positive\x20and\x20batch\x20size\x20must\x20be\x20between\x201\x20and\x20500.','See\x20','Creates\x20real\x20dataset\x20records\x20immediately.\x20Keep\x20the\x20checkpoint\x20to\x20reconcile\x20and\x20resume\x20interrupted\x20imports.','\x20--params\x20\x27<JSON\x20array>\x27\x20--dry-run\x20using\x20the\x20target\x20app\x27s\x20User\x20AK\x20and\x20runtime\x20permissions.\x20Dry-run\x20only\x20previews\x20the\x20request;\x20verify\x20written\x20rows\x20before\x20advancing\x20and\x20reconcile\x20unknown\x20outcomes\x20before\x20retrying.\x20This\x20DB_TABLE\x20route\x20does\x20not\x20support\x20import\x20checkpoints\x20or\x20--resume.\x20See\x20references/lovrabet-db-table-excel-import.md\x20in\x20the\x20built-in\x20Skill.\x20No\x20import\x20request\x20was\x20sent.','reduce','media','Inspect\x20lovrabet\x20dataset\x20detail\x20--code\x20','all','Local\x20Excel\x20validation\x20only;\x20no\x20records\x20or\x20checkpoint\x20were\x20written.','emptyRows','checkpoint','rowNumber','mappingFile','3345256xsUlBH','schemaVersion','Private\x20checkpoint\x20file\x20(default:\x20XLSX\x20path\x20plus\x20.import-checkpoint.json)','11321208rBtTOw','--file\x20and\x20--mapping\x20are\x20required.','utf8','1-based\x20Excel\x20header\x20row','DB_TABLE\x20datasets\x20use\x20the\x20existing\x20batchCreate\x20operation;\x20import-excel\x20only\x20supports\x20METADATA\x20datasets.','1115482wpzCNg','data','some','num','/client/','isArray','METADATA','Mapping\x20must\x20be\x20an\x20object\x20from\x20Excel\x20headers\x20to\x20field\x20codes.','9435825TOXGFu','532884dVjgUG','.import-report.json','map','header-row','.lock.recovery','286610yfJZYX'];a26_0x5747=function(){return _0x313980;};return a26_0x5747();}function input(_0x44c57f){const _0x42a42c=a26_0x2e85,_0xe18c38=_0x44c57f['str']('file'),_0x15d982=_0x44c57f['str'](_0x42a42c(0x6e));if(!_0xe18c38||!_0x15d982)throw CliErrors[_0x42a42c(0x77)](_0x42a42c(0x91));const _0x5243ac=_0x44c57f['num']('header-row',0x1),_0x1c393d=_0x44c57f[_0x42a42c(0x98)](_0x42a42c(0xb3),0x1f4);if(!Number[_0x42a42c(0xa5)](_0x5243ac)||_0x5243ac<0x1||!Number[_0x42a42c(0xa5)](_0x1c393d)||_0x1c393d<0x1||_0x1c393d>0x1f4)throw CliErrors[_0x42a42c(0x77)](_0x42a42c(0x80));const _0x38935f=resolve(_0x44c57f['str']('checkpoint')||_0xe18c38+_0x42a42c(0xb1)),_0x48cb5f=resolve(_0x44c57f['str'](_0x42a42c(0xa9))||_0xe18c38+_0x42a42c(0x9f)),_0x4cd13b=[resolve(_0xe18c38),resolve(_0x15d982),_0x38935f,_0x48cb5f];if(new Set(_0x4cd13b)[_0x42a42c(0x79)]!==_0x4cd13b[_0x42a42c(0x66)])throw CliErrors[_0x42a42c(0x77)](_0x42a42c(0xaa));return{'file':resolve(_0xe18c38),'mappingFile':resolve(_0x15d982),'headerRow':_0x5243ac,'batchSize':_0x1c393d,'checkpoint':_0x38935f,'report':_0x48cb5f,'sheet':_0x44c57f[_0x42a42c(0xad)](_0x42a42c(0x69))||undefined,'resume':_0x44c57f['bool'](_0x42a42c(0x65))};}async function prepare(_0x1147e0){const _0x5940be=a26_0x2e85,_0x3b14e0=input(_0x1147e0),_0x570d49=_0x1147e0[_0x5940be(0xad)](_0x5940be(0x78));[_0x3b14e0[_0x5940be(0xb8)],_0x3b14e0[_0x5940be(0x8c)],_0x3b14e0['checkpoint'],_0x3b14e0[_0x5940be(0xa9)]]=await Promise[_0x5940be(0x87)]([realpath(_0x3b14e0['file']),realpath(_0x3b14e0[_0x5940be(0x8c)]),resolveImportOutputPath(_0x3b14e0[_0x5940be(0x8a)]),resolveImportOutputPath(_0x3b14e0['report'])]),assertImportPaths(_0x3b14e0[_0x5940be(0x8a)],_0x3b14e0[_0x5940be(0xa9)],[_0x3b14e0[_0x5940be(0xb8)],_0x3b14e0[_0x5940be(0x8c)]]);let _0x572697;const _0x46ca3e=await readFile(_0x3b14e0[_0x5940be(0x8c)]);if(_0x46ca3e['length']>0x400*0x400)throw CliErrors[_0x5940be(0x77)](_0x5940be(0x67));try{_0x572697=JSON['parse'](_0x46ca3e[_0x5940be(0x64)](_0x5940be(0x92)));}catch{throw CliErrors[_0x5940be(0x77)](_0x5940be(0xb5));}if(!_0x572697||typeof _0x572697!=='object'||Array[_0x5940be(0x9a)](_0x572697)||Object[_0x5940be(0xa4)](_0x572697)[_0x5940be(0x97)](_0x58f199=>typeof _0x58f199!==_0x5940be(0xa8)))throw CliErrors[_0x5940be(0x77)](_0x5940be(0x9c));const _0x3958d9=await getDatasetDetail(_0x570d49),_0x1a4e26=assertDatasetImportTarget(_0x3958d9,_0x1147e0[_0x5940be(0x68)],_0x570d49);if(_0x1a4e26==='DB_TABLE')throw CliErrors[_0x5940be(0x77)](_0x5940be(0x94),_0x5940be(0x86)+_0x570d49+'.\x20Validate\x20fields\x20and\x20confirmed\x20unique\x20business\x20keys,\x20convert\x20Excel\x20rows\x20to\x20JSON,\x20and\x20split\x20within\x20the\x20target\x20API\x20row/byte\x20limits.\x20Preview\x20one\x20batch\x20with\x20lovrabet\x20data\x20batchCreate\x20--appcode\x20'+_0x1147e0[_0x5940be(0x68)]+_0x5940be(0xab)+_0x570d49+_0x5940be(0x83));if(_0x1a4e26!==_0x5940be(0x9b))throw CliErrors[_0x5940be(0x77)](_0x5940be(0x7d),'Run\x20dataset\x20detail\x20to\x20confirm\x20the\x20source.\x20Only\x20DB_TABLE\x20has\x20the\x20documented\x20alternative\x20batchCreate\x20route;\x20do\x20not\x20guess\x20or\x20automatically\x20switch\x20APIs.');const _0x2ed75b=await buildExcelManifest({..._0x3b14e0,'mapping':_0x572697,'fields':normalizeImportFields(_0x3958d9)}),_0xbad30d=await getDatasetImportContract(_0x1147e0['appCode'],_0x570d49);assertImportContract(_0xbad30d,_0x1147e0[_0x5940be(0x68)],_0x570d49),assertImageImportCapability(_0xbad30d,_0x2ed75b);if(_0x2ed75b[_0x5940be(0x7e)]?.[_0x5940be(0x66)]){const _0x43cc34=await resolveImportOutputPath(_0x3b14e0[_0x5940be(0x8a)]+'.rows.json'),_0x5b54a0=await Promise[_0x5940be(0x87)]([_0x43cc34,_0x43cc34+_0x5940be(0x6a),_0x43cc34+_0x5940be(0xa2),_0x3b14e0[_0x5940be(0x8a)]+_0x5940be(0x6a),_0x3b14e0[_0x5940be(0x8a)]+_0x5940be(0xa2)][_0x5940be(0xa0)](resolveImportOutputPath));assertImportPaths(_0x3b14e0[_0x5940be(0x8a)],_0x3b14e0['report'],[_0x3b14e0['file'],_0x3b14e0[_0x5940be(0x8c)],..._0x5b54a0['slice'](0x0,0x3)]);}if(_0x3b14e0[_0x5940be(0xb4)]>_0xbad30d[_0x5940be(0x75)])throw CliErrors[_0x5940be(0x77)]('Batch\x20size\x20exceeds\x20the\x20server\x20import\x20contract.');return{'args':_0x3b14e0,'manifest':_0x2ed75b,'contract':_0xbad30d,'code':_0x570d49};}async function checked(_0x1680a6){const _0x306839=a26_0x2e85;try{return await _0x1680a6();}catch(_0x335bcf){if(_0x335bcf instanceof CliError)throw _0x335bcf;throw CliErrors[_0x306839(0x77)](_0x335bcf[_0x306839(0x7b)]||_0x306839(0x71));}}export const dataImportExcel={'service':a26_0x43e41a(0x96),'command':'import-excel','risk':a26_0x43e41a(0x7c),'description':'Import\x20one\x20XLSX\x20worksheet\x20into\x20METADATA\x20with\x20checkpoint\x20recovery.\x20DB_TABLE\x20uses\x20lovrabet\x20data\x20batchCreate\x20after\x20mapping\x20and\x20validation;\x20that\x20route\x20has\x20no\x20import\x20checkpoint\x20or\x20--resume.','confirmationDescription':a26_0x43e41a(0x82),'flags':[CODE_FLAG,{'name':a26_0x43e41a(0xb8),'type':a26_0x43e41a(0xa8),'required':!![],'description':a26_0x43e41a(0x6f)},{'name':a26_0x43e41a(0x6e),'type':'string','required':!![],'description':'JSON\x20file\x20mapping\x20Excel\x20headers\x20to\x20dataset\x20field\x20codes'},{'name':'sheet','type':a26_0x43e41a(0xa8),'description':'Worksheet\x20name\x20or\x201-based\x20index\x20(default:\x20first\x20worksheet)'},{'name':a26_0x43e41a(0xa1),'type':a26_0x43e41a(0x6b),'default':0x1,'description':a26_0x43e41a(0x93)},{'name':a26_0x43e41a(0xb3),'type':a26_0x43e41a(0x6b),'default':0x1f4,'description':a26_0x43e41a(0xb7)},{'name':a26_0x43e41a(0x8a),'type':'string','description':a26_0x43e41a(0x8f)},{'name':a26_0x43e41a(0xa9),'type':a26_0x43e41a(0xa8),'description':a26_0x43e41a(0xa6)},{'name':a26_0x43e41a(0x65),'type':'boolean','description':a26_0x43e41a(0x70)}],'validate':async _0x4ffffd=>{input(_0x4ffffd);},'dryRun':async _0x43f6aa=>checked(async()=>{const _0x1f5920=a26_0x43e41a,{args:_0x3432dd,manifest:_0x521c1c,contract:_0x3f9318,code:_0x3965c2}=await prepare(_0x43f6aa),_0x59cee5=new Set(_0x521c1c[_0x1f5920(0xaf)][_0x1f5920(0xa0)](_0x26c921=>_0x26c921[_0x1f5920(0x8b)]))['size'];return{'method':'POST','url':_0x1f5920(0x99)+encodeURIComponent(_0x43f6aa[_0x1f5920(0x68)])+'/'+encodeURIComponent(_0x3965c2)+_0x1f5920(0xb6),'description':_0x1f5920(0x88),'body':{'schemaFingerprint':_0x3f9318['schemaFingerprint']},'validRows':Math[_0x1f5920(0x6c)](0x0,_0x521c1c[_0x1f5920(0x76)][_0x1f5920(0x66)]-_0x59cee5),'invalidRows':_0x59cee5,'invalidCells':_0x521c1c[_0x1f5920(0xaf)][_0x1f5920(0x66)],'emptyRows':_0x521c1c[_0x1f5920(0x89)]['length'],'expectedBatches':previewImportBatchCount(_0x521c1c,_0x3f9318,_0x3432dd[_0x1f5920(0xb4)]),'imageCount':_0x521c1c['imageCells']?.[_0x1f5920(0x84)]((_0x420d00,_0x25ac95)=>_0x420d00+_0x25ac95['hashes'][_0x1f5920(0x66)],0x0)??0x0,'uniqueImages':_0x521c1c[_0x1f5920(0x85)]?.[_0x1f5920(0x66)]??0x0,'uniqueImageBytes':_0x521c1c[_0x1f5920(0x85)]?.[_0x1f5920(0x84)]((_0x2722cd,_0x27c205)=>_0x2722cd+_0x27c205[_0x1f5920(0x79)],0x0)??0x0,'errors':_0x521c1c[_0x1f5920(0xaf)],'warnings':_0x521c1c[_0x1f5920(0x7f)],'sheet':_0x521c1c[_0x1f5920(0x69)],'checkpoint':_0x3432dd[_0x1f5920(0x8a)],'report':_0x3432dd[_0x1f5920(0xa9)]};}),'execute':async _0x112d75=>checked(async()=>{const _0x47a8be=a26_0x43e41a,{args:_0x45cecf,manifest:_0x292a12,contract:_0x41353e,code:_0x85ebbd}=await prepare(_0x112d75);if(_0x292a12[_0x47a8be(0xaf)]['length']){await saveImportJson(_0x45cecf[_0x47a8be(0xa9)],{'status':_0x47a8be(0x6d),'sourceRows':_0x292a12['rows'][_0x47a8be(0x66)],'errors':_0x292a12[_0x47a8be(0xaf)],'emptyRows':_0x292a12[_0x47a8be(0x89)],'warnings':_0x292a12[_0x47a8be(0x7f)]});throw CliErrors['validation'](_0x47a8be(0x73)+_0x292a12[_0x47a8be(0xaf)][_0x47a8be(0x66)]+_0x47a8be(0xac),_0x47a8be(0x81)+_0x45cecf[_0x47a8be(0xa9)]+'.');}const _0x35a301=_0x292a12[_0x47a8be(0x7e)]?.['length']?runImageExcelImport:_0x41353e[_0x47a8be(0x8e)]===0x2?runAutoIdExcelImport:runExcelImport,_0x1905b5=await _0x35a301({..._0x45cecf,'manifest':_0x292a12,'contract':_0x41353e,'appCode':_0x112d75[_0x47a8be(0x68)],'datasetCode':_0x85ebbd,'runtimeDomain':getRuntimeDomain(),'inputPaths':[_0x45cecf[_0x47a8be(0xb8)],_0x45cecf[_0x47a8be(0x8c)]],'imageApi':{'upload':(_0x1a7c1b,_0x19cbc4)=>uploadDatasetImportImage(_0x112d75['appCode'],_0x85ebbd,_0x1a7c1b,_0x19cbc4),'readback':(_0x2cb405,_0x15f1c7)=>readDatasetImportImage(_0x112d75[_0x47a8be(0x68)],_0x85ebbd,_0x2cb405,_0x15f1c7)},'api':{'write':(_0x478d42,_0x5a425a)=>createDatasetImportBatch(_0x112d75[_0x47a8be(0x68)],_0x85ebbd,{'schemaFingerprint':_0x41353e[_0x47a8be(0x74)],'items':_0x478d42,..._0x5a425a===undefined?{}:{'taskId':_0x5a425a}}),'readback':_0x1a0def=>readDatasetImportRows(_0x112d75[_0x47a8be(0x68)],_0x85ebbd,_0x1a0def),'readTask':_0x7eb45b=>readDatasetImportTaskRows(_0x112d75[_0x47a8be(0x68)],_0x85ebbd,_0x7eb45b)}});return{'ok':!![],'data':_0x1905b5,'message':_0x47a8be(0x7a)+_0x1905b5[_0x47a8be(0xb2)]+_0x47a8be(0xa7)};})};
@@ -1 +1 @@
1
- const a27_0x3898c7=a27_0x3017;(function(_0x92d31d,_0x130ce9){const _0x187bdb=a27_0x3017,_0x37e60b=_0x92d31d();while(!![]){try{const _0xa9f549=-parseInt(_0x187bdb(0xe9))/0x1*(parseInt(_0x187bdb(0xfa))/0x2)+parseInt(_0x187bdb(0xe3))/0x3+-parseInt(_0x187bdb(0xf1))/0x4*(parseInt(_0x187bdb(0xdc))/0x5)+-parseInt(_0x187bdb(0xd1))/0x6*(-parseInt(_0x187bdb(0xc4))/0x7)+parseInt(_0x187bdb(0xd3))/0x8*(-parseInt(_0x187bdb(0xcf))/0x9)+-parseInt(_0x187bdb(0xc9))/0xa+parseInt(_0x187bdb(0xdd))/0xb;if(_0xa9f549===_0x130ce9)break;else _0x37e60b['push'](_0x37e60b['shift']());}catch(_0x2fa1d7){_0x37e60b['push'](_0x37e60b['shift']());}}}(a27_0x4f1a,0x5d1ef));import{dataImportExcel}from'./import-excel.js';import{executeData}from'../../core/sdk-client.js';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';function a27_0x4f1a(){const _0x326494=['Create\x20one\x20record\x20in\x20the\x20dataset','\x20\x20\x20\x20Page\x20numbers\x20start\x20at\x201.\x20To\x20fetch\x20the\x20next\x20page,\x20keep\x20where/select/orderBy/pageSize\x20unchanged','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','batchCreate','217UjQzOi','now','\x20\x20\x20\x20and\x20increment\x20only\x20currentPage.\x20Use\x20a\x20stable\x20unique\x20orderBy\x20field\x20to\x20avoid\x20duplicates\x20or\x20gaps.','Create\x20multiple\x20records\x20in\x20the\x20dataset\x20in\x20one\x20request','\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}','6900810MnjvEM','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','\x20\x20DATASET\x20BOUNDARY','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','params','5787PhBmba','update','29058utSUNK','\x20\x20\x20\x20then\x20convert\x20rows\x20to\x20JSON\x20and\x20split\x20within\x20the\x20target\x20API\x20row/byte\x20and\x20local\x20argument\x20limits.','1304mneVWK','data','Delete\x20data\x20records\x20(non-interactive\x20mode\x20requires\x20--yes)','\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]}}','Deletes\x20business\x20records\x20from\x20the\x20current\x20app\x20dataset.\x20This\x20may\x20not\x20be\x20recoverable.','command','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','code','\x20\x20\x20\x20Record\x20each\x20batch\x20and\x20verify\x20its\x20IDs\x20or\x20unique\x20business\x20keys\x20before\x20continuing.','5365QfqmiB','13265791EuokLB','paramsRequired','\x20\x20\x20\x20choose\x20the\x20capability\x20before\x20execution;\x20never\x20fall\x20back\x20at\x20runtime','\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}','join','aggregate','481479lrXWtv','\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]','\x20\x20AGGREGATE\x20ALIAS\x20BOUNDARY','write','\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\x20EXCEL\x20ROUTES','1694rafAdm','\x20\x20LOGICAL\x20COMBINATORS','\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}}','\x20\x20\x20\x20orderBy\x20may\x20reference\x20aggregate\x20output\x20aliases','map','\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}','\x20\x20AGGREGATE\x20TYPES','\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}','776mHMPAc','Get\x20a\x20single\x20record\x20by\x20ID','Changes\x20an\x20existing\x20business\x20record\x20in\x20the\x20current\x20app\x20dataset.\x20The\x20new\x20values\x20are\x20saved\x20immediately\x20after\x20confirmation.','\x20\x20PARAMS\x20STRUCTURE','description','\x20on\x20dataset\x20','\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}]','\x20\x20\x20\x20METADATA\x20datasets\x20do\x20not\x20support\x20aggregate\x20or\x20Custom\x20SQL','\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}}]}','156CDMyTo','Update\x20an\x20existing\x20data\x20record','high-risk-write','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','getOne','Filter\x20dataset\x20records\x20with\x20query\x20conditions','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','operation','Writes\x20multiple\x20new\x20business\x20records\x20to\x20the\x20current\x20app\x20dataset.\x20They\x20are\x20saved\x20immediately\x20after\x20confirmation.','\x20\x20\x20\x20aggregate\x20supports\x20a\x20single\x20DB_TABLE\x20dataset\x20only','Writes\x20one\x20new\x20business\x20record\x20to\x20the\x20current\x20app\x20dataset.\x20It\x20is\x20saved\x20immediately\x20after\x20confirmation.','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\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}}','/api/{appCode}/','create','\x20\x20\x20\x20This\x20command\x20sends\x20one\x20prepared\x20batch;\x20it\x20does\x20not\x20read\x20XLSX\x20or\x20split\x20batches.','str','length','\x20\x20\x20\x20METADATA:\x20use\x20lovrabet\x20data\x20import-excel\x20with\x20checkpoint\x20recovery.','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\x20\x20\x20\x20select/where/having/groupBy\x20must\x20use\x20real\x20dataset\x20fields','\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\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','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\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}}','build','body','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','\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}}','confirmationDescription','\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$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}}','read','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','filter','POST','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','\x20\x20\x20\x20Built-in\x20Skill\x20guide:\x20references/lovrabet-db-table-excel-import.md','\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}]','risk','Preview:\x20data\x20','data\x20','\x20\x20\x20\x20JOIN\x20and\x20cross-table\x20aggregation\x20require\x20an\x20existing\x20trusted\x20Custom\x20SQL','\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]','delete','paramsHint','\x20\x20\x20\x20DB_TABLE:\x20inspect\x20dataset\x20detail,\x20validate\x20the\x20full\x20file\x20and\x20confirmed\x20unique\x20business\x20keys,','\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','batch'];a27_0x4f1a=function(){return _0x326494;};return a27_0x4f1a();}function a27_0x3017(_0x247122,_0x4f8c71){_0x247122=_0x247122-0x98;const _0x4f1a2e=a27_0x4f1a();let _0x301783=_0x4f1a2e[_0x247122];return _0x301783;}const specs=[{'command':a27_0x3898c7(0xb1),'operation':a27_0x3898c7(0xb1),'risk':'read','paramsRequired':![],'description':a27_0x3898c7(0xff),'paramsHint':a27_0x3898c7(0xcd)+'Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','helpExtra':['\x20\x20WHERE\x20OPERATORS','\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}}',a27_0x3898c7(0xad),a27_0x3898c7(0xeb),a27_0x3898c7(0xab),'\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}}',a27_0x3898c7(0x9b),a27_0x3898c7(0xd6),a27_0x3898c7(0xe7),'\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}}',a27_0x3898c7(0xae),'',a27_0x3898c7(0xea),'\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}}]}',a27_0x3898c7(0xf9),'',a27_0x3898c7(0x100),a27_0x3898c7(0xa2),a27_0x3898c7(0xe4),a27_0x3898c7(0xf7),a27_0x3898c7(0xa6),a27_0x3898c7(0xca),'','\x20\x20PAGINATION','\x20\x20\x20\x20Filtering\x20and\x20pagination\x20are\x20controlled\x20only\x20via\x20one\x20JSON\x20object\x20in\x20--params.','\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.',a27_0x3898c7(0xc1),a27_0x3898c7(0xc6),a27_0x3898c7(0xbe),a27_0x3898c7(0xa5),'\x20\x20\x20\x20Verify\x20the\x20response\x20paging.currentPage/pageSize\x20and\x20that\x20tableData\x20satisfies\x20where\x20before\x20drawing\x20conclusions.'][a27_0x3898c7(0xe1)]('\x0a')},{'command':a27_0x3898c7(0xfe),'operation':'getOne','risk':a27_0x3898c7(0xaf),'paramsRequired':!![],'description':a27_0x3898c7(0xf2),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a27_0x3898c7(0x9d),'operation':a27_0x3898c7(0x9d),'risk':a27_0x3898c7(0xe6),'paramsRequired':!![],'description':a27_0x3898c7(0xc0),'confirmationDescription':a27_0x3898c7(0x99),'paramsHint':'JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27'},{'command':'batchCreate','operation':a27_0x3898c7(0xc3),'risk':a27_0x3898c7(0xe6),'paramsRequired':!![],'description':a27_0x3898c7(0xc7),'helpExtra':[a27_0x3898c7(0xe8),a27_0x3898c7(0xa1),a27_0x3898c7(0xbd),a27_0x3898c7(0xd2),a27_0x3898c7(0x9e),'\x20\x20\x20\x20--dry-run\x20previews\x20the\x20request\x20only;\x20it\x20does\x20not\x20validate\x20server\x20constraints\x20or\x20write\x20permissions.',a27_0x3898c7(0xdb),'\x20\x20\x20\x20Stop\x20on\x20unknown\x20outcomes\x20or\x20conflicts;\x20reconcile\x20before\x20retrying,\x20never\x20blindly\x20resend\x20a\x20batch.','\x20\x20\x20\x20No\x20import\x20checkpoint,\x20--resume,\x20automatic\x20upsert,\x20or\x20atomic\x20rollback\x20guarantee.',a27_0x3898c7(0xb4),'\x20\x20\x20\x20Non-Excel\x20batchCreate\x20remains\x20available\x20for\x20METADATA\x20and\x20DB_TABLE.']['join']('\x0a'),'confirmationDescription':a27_0x3898c7(0x102),'paramsHint':a27_0x3898c7(0xb3)},{'command':'update','operation':a27_0x3898c7(0xd0),'risk':a27_0x3898c7(0xe6),'paramsRequired':!![],'description':a27_0x3898c7(0xfb),'confirmationDescription':a27_0x3898c7(0xf3),'paramsHint':'JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20'+a27_0x3898c7(0xd9)},{'command':'delete','operation':a27_0x3898c7(0xbb),'risk':a27_0x3898c7(0xfc),'paramsRequired':!![],'description':a27_0x3898c7(0xd5),'confirmationDescription':a27_0x3898c7(0xd7),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a27_0x3898c7(0xe2),'operation':a27_0x3898c7(0xe2),'risk':a27_0x3898c7(0xaf),'paramsRequired':![],'description':a27_0x3898c7(0xaa),'paramsHint':a27_0x3898c7(0xfd)+a27_0x3898c7(0xc2),'helpExtra':[a27_0x3898c7(0xef),'\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}',a27_0x3898c7(0xf0),a27_0x3898c7(0xc8),'\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}',a27_0x3898c7(0xee),'\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}',a27_0x3898c7(0xe0),'',a27_0x3898c7(0xf4),a27_0x3898c7(0xba),a27_0x3898c7(0x9a),'\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)',a27_0x3898c7(0xcc),a27_0x3898c7(0xa7),a27_0x3898c7(0xb5),'',a27_0x3898c7(0xe5),'\x20\x20\x20\x20aggregate[].alias\x20defines\x20the\x20output\x20field\x20name\x20only',a27_0x3898c7(0xa3),a27_0x3898c7(0xec),'',a27_0x3898c7(0xcb),a27_0x3898c7(0x98),a27_0x3898c7(0xf8),a27_0x3898c7(0xb9),a27_0x3898c7(0xdf),'','\x20\x20EXAMPLES','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status',a27_0x3898c7(0xa4),'',a27_0x3898c7(0xb0),'\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\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.'][a27_0x3898c7(0xe1)]('\x0a')}];function makeDataCommand(_0x48cece){const _0x2c55aa=a27_0x3898c7,_0xe97117='data\x20'+_0x48cece['command'],_0x3cb4eb={'service':_0x2c55aa(0xd4),'command':_0x48cece[_0x2c55aa(0xd8)],'description':_0x48cece[_0x2c55aa(0xf5)],'risk':_0x48cece['risk'],..._0x48cece[_0x2c55aa(0xac)]?{'confirmationDescription':_0x48cece['confirmationDescription']}:{},'helpExtra':_0x48cece['helpExtra'],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x48cece[_0x2c55aa(0xbc)]}],'validate':async _0x2d7b61=>{const _0x5caf22=_0x2c55aa;_0x48cece[_0x5caf22(0xde)]&&requireAnyOf(_0x2d7b61,[_0x5caf22(0xce)],_0xe97117),_0x48cece[_0x5caf22(0x101)]===_0x5caf22(0xc3)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x2d7b61['str'](_0x5caf22(0xce)))),_0x48cece[_0x5caf22(0x101)]===_0x5caf22(0xd0)&&parseUpdateIdsFromParams(parseJsonParams(_0x2d7b61['str'](_0x5caf22(0xce)))??{});},async 'execute'(_0x5d2a02){const _0x571c3f=_0x2c55aa,_0x1164a3=_0x5d2a02['str'](_0x571c3f(0xda)),_0x2377a4=_0x48cece[_0x571c3f(0x101)]===_0x571c3f(0xc3)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x5d2a02[_0x571c3f(0x9f)](_0x571c3f(0xce)))):parseJsonParams(_0x5d2a02[_0x571c3f(0x9f)](_0x571c3f(0xce)))??{},_0x3802bf=_0x48cece[_0x571c3f(0x101)]==='update'?parseUpdateIdsFromParams(_0x2377a4):undefined,_0x1a76d6=_0x3802bf?normalizeUpdateParamsForRuntime(_0x2377a4,_0x3802bf):_0x2377a4,_0x5d2af4=Date[_0x571c3f(0xc5)](),_0x2ee0b3=await executeData(_0x1164a3,_0x48cece['operation'],_0x1a76d6),_0x28176f=Date[_0x571c3f(0xc5)]()-_0x5d2af4,_0x1056cd=_0x3802bf&&_0x3802bf[_0x571c3f(0xa0)]>0x1?buildBatchUpdateResult(_0x3802bf,_0x2ee0b3):_0x2ee0b3;return{'ok':!![],'data':{'result':_0x1056cd,'elapsed':_0x28176f},'message':_0x571c3f(0xb8)+_0x48cece[_0x571c3f(0xd8)]+'\x20completed\x20in\x20'+_0x28176f+'ms'};}};return _0x48cece[_0x2c55aa(0xb6)]!==_0x2c55aa(0xaf)&&(_0x3cb4eb['dryRun']=async _0x25e1aa=>{const _0x50b749=_0x2c55aa,_0x30a2e3=_0x25e1aa[_0x50b749(0x9f)]('code'),_0x3c4643=_0x48cece[_0x50b749(0x101)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x25e1aa[_0x50b749(0x9f)](_0x50b749(0xce)))):parseJsonParams(_0x25e1aa['str'](_0x50b749(0xce)))??{};let _0x15780d=_0x3c4643;if(_0x48cece[_0x50b749(0x101)]===_0x50b749(0xd0)){const _0x37eb9e=parseUpdateIdsFromParams(_0x3c4643);_0x15780d=normalizeUpdateParamsForRuntime(_0x3c4643,_0x37eb9e);}return dryRun(_0x50b749(0xb2),_0x50b749(0x9c)+_0x30a2e3+'/'+_0x48cece[_0x50b749(0x101)])[_0x50b749(0xa9)](_0x15780d)[_0x50b749(0xf5)](_0x50b749(0xb7)+_0x48cece['command']+_0x50b749(0xf6)+_0x30a2e3)[_0x50b749(0xa8)]();}),_0x3cb4eb;}export const dataDefinitions=[...specs[a27_0x3898c7(0xed)](makeDataCommand),dataImportExcel];function buildBatchUpdateResult(_0xbb9947,_0x454bd8){const _0x15276c=a27_0x3898c7;return{'operation':'update','mode':_0x15276c(0xbf),'ids':_0xbb9947,'total':_0xbb9947[_0x15276c(0xa0)],'result':_0x454bd8};}
1
+ const a27_0x2ca052=a27_0x59e8;(function(_0x3c0286,_0x35273d){const _0x4dc5f2=a27_0x59e8,_0x59c984=_0x3c0286();while(!![]){try{const _0x1140fb=-parseInt(_0x4dc5f2(0x197))/0x1+parseInt(_0x4dc5f2(0x1dd))/0x2+parseInt(_0x4dc5f2(0x1e0))/0x3+-parseInt(_0x4dc5f2(0x194))/0x4*(parseInt(_0x4dc5f2(0x1aa))/0x5)+-parseInt(_0x4dc5f2(0x1a6))/0x6*(parseInt(_0x4dc5f2(0x1be))/0x7)+-parseInt(_0x4dc5f2(0x1af))/0x8*(parseInt(_0x4dc5f2(0x1a0))/0x9)+parseInt(_0x4dc5f2(0x195))/0xa;if(_0x1140fb===_0x35273d)break;else _0x59c984['push'](_0x59c984['shift']());}catch(_0x25b1ba){_0x59c984['push'](_0x59c984['shift']());}}}(a27_0x5953,0x88964));import{dataImportExcel}from'./import-excel.js';import{executeData}from'../../core/sdk-client.js';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':a27_0x2ca052(0x1e1),'operation':'filter','risk':a27_0x2ca052(0x196),'paramsRequired':![],'description':'Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsHint':a27_0x2ca052(0x1b4)+a27_0x2ca052(0x18c),'helpExtra':['\x20\x20WHERE\x20OPERATORS','\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}}',a27_0x2ca052(0x1cf),a27_0x2ca052(0x18f),a27_0x2ca052(0x1d5),'\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}}',a27_0x2ca052(0x1d1),'\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]}}',a27_0x2ca052(0x1c6),'\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}}',a27_0x2ca052(0x1c9),'',a27_0x2ca052(0x17b),'\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}}]}',a27_0x2ca052(0x1ce),'',a27_0x2ca052(0x1cd),a27_0x2ca052(0x18d),'\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]','\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}]',a27_0x2ca052(0x1df),a27_0x2ca052(0x1dc),'',a27_0x2ca052(0x1d9),a27_0x2ca052(0x19e),a27_0x2ca052(0x1c3),a27_0x2ca052(0x1bc),a27_0x2ca052(0x1b5),'\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',a27_0x2ca052(0x1a7),'\x20\x20\x20\x20Verify\x20the\x20response\x20paging.currentPage/pageSize\x20and\x20that\x20tableData\x20satisfies\x20where\x20before\x20drawing\x20conclusions.']['join']('\x0a')},{'command':'getOne','operation':'getOne','risk':'read','paramsRequired':!![],'description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsHint':a27_0x2ca052(0x17d)},{'command':a27_0x2ca052(0x19a),'operation':a27_0x2ca052(0x19a),'risk':'write','paramsRequired':!![],'description':a27_0x2ca052(0x1b8),'confirmationDescription':a27_0x2ca052(0x1ba),'paramsHint':a27_0x2ca052(0x193)},{'command':a27_0x2ca052(0x18a),'operation':a27_0x2ca052(0x18a),'risk':a27_0x2ca052(0x186),'paramsRequired':!![],'description':a27_0x2ca052(0x1a1),'helpExtra':['\x20\x20EXCEL\x20ROUTES',a27_0x2ca052(0x1b3),a27_0x2ca052(0x17a),a27_0x2ca052(0x1e5),a27_0x2ca052(0x190),a27_0x2ca052(0x1b0),'\x20\x20\x20\x20Record\x20each\x20batch\x20and\x20verify\x20its\x20IDs\x20or\x20unique\x20business\x20keys\x20before\x20continuing.',a27_0x2ca052(0x1c2),a27_0x2ca052(0x1c5),a27_0x2ca052(0x1ad),a27_0x2ca052(0x1de)][a27_0x2ca052(0x1db)]('\x0a'),'confirmationDescription':a27_0x2ca052(0x1b6),'paramsHint':a27_0x2ca052(0x1ab)},{'command':'update','operation':'update','risk':'write','paramsRequired':!![],'description':a27_0x2ca052(0x19f),'confirmationDescription':'Changes\x20an\x20existing\x20business\x20record\x20in\x20the\x20current\x20app\x20dataset.\x20The\x20new\x20values\x20are\x20saved\x20immediately\x20after\x20confirmation.','paramsHint':a27_0x2ca052(0x1e3)+a27_0x2ca052(0x189)},{'command':a27_0x2ca052(0x1c0),'operation':a27_0x2ca052(0x1c0),'risk':'high-risk-write','paramsRequired':!![],'description':a27_0x2ca052(0x181),'confirmationDescription':a27_0x2ca052(0x1b1),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a27_0x2ca052(0x17e),'operation':'aggregate','risk':'read','paramsRequired':![],'description':a27_0x2ca052(0x1b9),'paramsHint':a27_0x2ca052(0x1a4)+a27_0x2ca052(0x1c8),'helpExtra':[a27_0x2ca052(0x19b),a27_0x2ca052(0x1d6),a27_0x2ca052(0x1cb),a27_0x2ca052(0x184),a27_0x2ca052(0x1c4),a27_0x2ca052(0x17f),a27_0x2ca052(0x1e2),a27_0x2ca052(0x182),'','\x20\x20PARAMS\x20STRUCTURE',a27_0x2ca052(0x1d4),a27_0x2ca052(0x17c),a27_0x2ca052(0x1b7),a27_0x2ca052(0x1e7),a27_0x2ca052(0x1cc),'\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}]','',a27_0x2ca052(0x1da),a27_0x2ca052(0x1a8),a27_0x2ca052(0x1a3),'\x20\x20\x20\x20orderBy\x20may\x20reference\x20aggregate\x20output\x20aliases','','\x20\x20DATASET\x20BOUNDARY',a27_0x2ca052(0x198),a27_0x2ca052(0x1e8),a27_0x2ca052(0x185),a27_0x2ca052(0x1e4),'',a27_0x2ca052(0x1a5),a27_0x2ca052(0x188),'\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','',a27_0x2ca052(0x1ae),a27_0x2ca052(0x1c1),'',a27_0x2ca052(0x187)][a27_0x2ca052(0x1db)]('\x0a')}];function makeDataCommand(_0x574c78){const _0x540d77=a27_0x2ca052,_0x64d32=_0x540d77(0x183)+_0x574c78[_0x540d77(0x1ac)],_0x526292={'service':_0x540d77(0x1bf),'command':_0x574c78[_0x540d77(0x1ac)],'description':_0x574c78['description'],'risk':_0x574c78[_0x540d77(0x199)],..._0x574c78['confirmationDescription']?{'confirmationDescription':_0x574c78[_0x540d77(0x1d7)]}:{},'helpExtra':_0x574c78[_0x540d77(0x1d2)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x574c78['paramsHint']}],'validate':async _0x2b48bc=>{const _0x1fb209=_0x540d77;_0x574c78[_0x1fb209(0x1bd)]&&requireAnyOf(_0x2b48bc,[_0x1fb209(0x1e6)],_0x64d32),_0x574c78[_0x1fb209(0x1bb)]==='batchCreate'&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x2b48bc[_0x1fb209(0x191)](_0x1fb209(0x1e6)))),_0x574c78['operation']===_0x1fb209(0x1d0)&&parseUpdateIdsFromParams(parseJsonParams(_0x2b48bc['str'](_0x1fb209(0x1e6)))??{});},async 'execute'(_0x1c38ab){const _0x5ce75c=_0x540d77,_0x8ab5d0=_0x1c38ab[_0x5ce75c(0x191)]('code'),_0x48ebea=_0x574c78[_0x5ce75c(0x1bb)]===_0x5ce75c(0x18a)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x1c38ab['str'](_0x5ce75c(0x1e6)))):parseJsonParams(_0x1c38ab[_0x5ce75c(0x191)](_0x5ce75c(0x1e6)))??{},_0x40b603=_0x574c78[_0x5ce75c(0x1bb)]==='update'?parseUpdateIdsFromParams(_0x48ebea):undefined,_0x581708=_0x40b603?normalizeUpdateParamsForRuntime(_0x48ebea,_0x40b603):_0x48ebea,_0x28eba9=Date[_0x5ce75c(0x192)](),_0x43ca18=await executeData(_0x8ab5d0,_0x574c78[_0x5ce75c(0x1bb)],_0x581708),_0xcfd093=Date[_0x5ce75c(0x192)]()-_0x28eba9,_0x2b9250=_0x40b603&&_0x40b603[_0x5ce75c(0x1b2)]>0x1?buildBatchUpdateResult(_0x40b603,_0x43ca18):_0x43ca18;return{'ok':!![],'data':{'result':_0x2b9250,'elapsed':_0xcfd093},'message':_0x5ce75c(0x183)+_0x574c78[_0x5ce75c(0x1ac)]+_0x5ce75c(0x1c7)+_0xcfd093+'ms'};}};return _0x574c78['risk']!==_0x540d77(0x196)&&(_0x526292[_0x540d77(0x1ca)]=async _0x5e6b93=>{const _0x317a57=_0x540d77,_0x3a6f23=_0x5e6b93['str'](_0x317a57(0x1a9)),_0x2d4010=_0x574c78[_0x317a57(0x1bb)]===_0x317a57(0x18a)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x5e6b93[_0x317a57(0x191)](_0x317a57(0x1e6)))):parseJsonParams(_0x5e6b93[_0x317a57(0x191)]('params'))??{};let _0x3c2588=_0x2d4010;if(_0x574c78[_0x317a57(0x1bb)]===_0x317a57(0x1d0)){const _0x529eeb=parseUpdateIdsFromParams(_0x2d4010);_0x3c2588=normalizeUpdateParamsForRuntime(_0x2d4010,_0x529eeb);}return dryRun(_0x317a57(0x18e),_0x317a57(0x19c)+_0x3a6f23+'/'+_0x574c78[_0x317a57(0x1bb)])['body'](_0x3c2588)[_0x317a57(0x1a2)](_0x317a57(0x19d)+_0x574c78[_0x317a57(0x1ac)]+_0x317a57(0x1d8)+_0x3a6f23)[_0x317a57(0x18b)]();}),_0x526292;}export const dataDefinitions=[...specs[a27_0x2ca052(0x1d3)](makeDataCommand),dataImportExcel];function a27_0x5953(){const _0x242501=['Deletes\x20business\x20records\x20from\x20the\x20current\x20app\x20dataset.\x20This\x20may\x20not\x20be\x20recoverable.','length','\x20\x20\x20\x20METADATA:\x20use\x20lovrabet\x20data\x20import-excel\x20with\x20checkpoint\x20recovery.','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\x20\x20\x20\x20and\x20increment\x20only\x20currentPage.\x20Use\x20a\x20stable\x20unique\x20orderBy\x20field\x20to\x20avoid\x20duplicates\x20or\x20gaps.','Writes\x20multiple\x20new\x20business\x20records\x20to\x20the\x20current\x20app\x20dataset.\x20They\x20are\x20saved\x20immediately\x20after\x20confirmation.','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','Create\x20one\x20record\x20in\x20the\x20dataset','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','Writes\x20one\x20new\x20business\x20record\x20to\x20the\x20current\x20app\x20dataset.\x20It\x20is\x20saved\x20immediately\x20after\x20confirmation.','operation','\x20\x20\x20\x20Page\x20numbers\x20start\x20at\x201.\x20To\x20fetch\x20the\x20next\x20page,\x20keep\x20where/select/orderBy/pageSize\x20unchanged','paramsRequired','91UtBbUS','data','delete','\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\x20\x20\x20Stop\x20on\x20unknown\x20outcomes\x20or\x20conflicts;\x20reconcile\x20before\x20retrying,\x20never\x20blindly\x20resend\x20a\x20batch.','\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.','\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\x20No\x20import\x20checkpoint,\x20--resume,\x20automatic\x20upsert,\x20or\x20atomic\x20rollback\x20guarantee.','\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}}','\x20completed\x20in\x20','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\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}}','dryRun','\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\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}}','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\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}}]}','\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}}','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}}','helpExtra','map','\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]','\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\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}','confirmationDescription','\x20on\x20dataset\x20','\x20\x20PAGINATION','\x20\x20AGGREGATE\x20ALIAS\x20BOUNDARY','join','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','632586BFtetL','\x20\x20\x20\x20Non-Excel\x20batchCreate\x20remains\x20available\x20for\x20METADATA\x20and\x20DB_TABLE.','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','3320148zuhpaD','filter','\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}','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','\x20\x20\x20\x20choose\x20the\x20capability\x20before\x20execution;\x20never\x20fall\x20back\x20at\x20runtime','\x20\x20\x20\x20then\x20convert\x20rows\x20to\x20JSON\x20and\x20split\x20within\x20the\x20target\x20API\x20row/byte\x20and\x20local\x20argument\x20limits.','params','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\x20METADATA\x20datasets\x20do\x20not\x20support\x20aggregate\x20or\x20Custom\x20SQL','\x20\x20\x20\x20DB_TABLE:\x20inspect\x20dataset\x20detail,\x20validate\x20the\x20full\x20file\x20and\x20confirmed\x20unique\x20business\x20keys,','\x20\x20LOGICAL\x20COMBINATORS','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','aggregate','\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}','batch','Delete\x20data\x20records\x20(non-interactive\x20mode\x20requires\x20--yes)','\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}','data\x20','\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\x20JOIN\x20and\x20cross-table\x20aggregation\x20require\x20an\x20existing\x20trusted\x20Custom\x20SQL','write','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','batchCreate','build','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','POST','\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}}','\x20\x20\x20\x20This\x20command\x20sends\x20one\x20prepared\x20batch;\x20it\x20does\x20not\x20read\x20XLSX\x20or\x20split\x20batches.','str','now','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','392hwdRFE','4676550irCirz','read','396280xVnpER','\x20\x20\x20\x20aggregate\x20supports\x20a\x20single\x20DB_TABLE\x20dataset\x20only','risk','create','\x20\x20AGGREGATE\x20TYPES','/api/{appCode}/','Preview:\x20data\x20','\x20\x20\x20\x20Filtering\x20and\x20pagination\x20are\x20controlled\x20only\x20via\x20one\x20JSON\x20object\x20in\x20--params.','Update\x20an\x20existing\x20data\x20record','1315044IzgJUb','Create\x20multiple\x20records\x20in\x20the\x20dataset\x20in\x20one\x20request','description','\x20\x20\x20\x20select/where/having/groupBy\x20must\x20use\x20real\x20dataset\x20fields','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','\x20\x20EXAMPLES','93408TmToBM','\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','\x20\x20\x20\x20aggregate[].alias\x20defines\x20the\x20output\x20field\x20name\x20only','code','100lQZqvV','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','command','\x20\x20\x20\x20Built-in\x20Skill\x20guide:\x20references/lovrabet-db-table-excel-import.md','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','40JVAMHz','\x20\x20\x20\x20--dry-run\x20previews\x20the\x20request\x20only;\x20it\x20does\x20not\x20validate\x20server\x20constraints\x20or\x20write\x20permissions.'];a27_0x5953=function(){return _0x242501;};return a27_0x5953();}function a27_0x59e8(_0x1c4aca,_0x2ff767){_0x1c4aca=_0x1c4aca-0x17a;const _0x5953ad=a27_0x5953();let _0x59e8a0=_0x5953ad[_0x1c4aca];return _0x59e8a0;}function buildBatchUpdateResult(_0x3de900,_0x37ce76){const _0x47e22=a27_0x2ca052;return{'operation':_0x47e22(0x1d0),'mode':_0x47e22(0x180),'ids':_0x3de900,'total':_0x3de900[_0x47e22(0x1b2)],'result':_0x37ce76};}