@lovrabet/lovrabet-cli 2.3.8-beta.6 → 2.3.8

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 (185) 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/issue/context.js +1 -1
  37. package/lib/commands/issue/index.js +1 -1
  38. package/lib/commands/issue/report.js +1 -1
  39. package/lib/commands/kb/index.js +1 -1
  40. package/lib/commands/logs/index.js +1 -1
  41. package/lib/commands/notification/config-list.js +1 -1
  42. package/lib/commands/notification/index.js +1 -1
  43. package/lib/commands/notification/shared.js +1 -1
  44. package/lib/commands/ocr/index.js +1 -1
  45. package/lib/commands/permit/dataset-get.js +1 -1
  46. package/lib/commands/permit/dataset-set.js +1 -1
  47. package/lib/commands/permit/index.js +1 -1
  48. package/lib/commands/permit/page-get.js +1 -1
  49. package/lib/commands/permit/page-set.js +1 -1
  50. package/lib/commands/permit/role-menus-set.js +1 -1
  51. package/lib/commands/permit/role-menus.js +1 -1
  52. package/lib/commands/permit/shared.js +1 -1
  53. package/lib/commands/personal-bff/index.js +1 -1
  54. package/lib/commands/registry.js +1 -1
  55. package/lib/commands/role/create.js +1 -1
  56. package/lib/commands/role/delete.js +1 -1
  57. package/lib/commands/role/detail.js +1 -1
  58. package/lib/commands/role/index.js +1 -1
  59. package/lib/commands/role/list.js +1 -1
  60. package/lib/commands/role/shared.js +1 -1
  61. package/lib/commands/role/update.js +1 -1
  62. package/lib/commands/role/user-add.js +1 -1
  63. package/lib/commands/role/user-remove.js +1 -1
  64. package/lib/commands/schedule/index.js +1 -1
  65. package/lib/commands/schema.js +1 -1
  66. package/lib/commands/service/dynamic.js +1 -1
  67. package/lib/commands/service/function-name-adapter.js +1 -1
  68. package/lib/commands/service/index.js +1 -1
  69. package/lib/commands/service/registry.js +1 -1
  70. package/lib/commands/skill/commands/create.js +1 -1
  71. package/lib/commands/skill/commands/diagram.js +1 -1
  72. package/lib/commands/skill/commands/install.js +1 -1
  73. package/lib/commands/skill/commands/list.js +1 -1
  74. package/lib/commands/skill/commands/push.js +1 -1
  75. package/lib/commands/skill/commands/validate.js +1 -1
  76. package/lib/commands/skill/diagram.js +1 -1
  77. package/lib/commands/skill/flags.js +1 -1
  78. package/lib/commands/skill/index.js +1 -1
  79. package/lib/commands/skill/manifest-helpers.js +1 -1
  80. package/lib/commands/skill/push-execute.js +1 -1
  81. package/lib/commands/skill/push-flow-helpers.js +1 -1
  82. package/lib/commands/skill/push-retarget.js +1 -1
  83. package/lib/commands/skill/scopes.js +1 -1
  84. package/lib/commands/skill/summary.js +1 -1
  85. package/lib/commands/skill/templates.js +1 -1
  86. package/lib/commands/skill/validate.js +1 -1
  87. package/lib/commands/sql/detail.js +1 -1
  88. package/lib/commands/sql/exec.js +1 -1
  89. package/lib/commands/sql/index.js +1 -1
  90. package/lib/commands/update.js +1 -1
  91. package/lib/commands/user-account/bind.js +1 -1
  92. package/lib/commands/user-account/index.js +1 -1
  93. package/lib/commands/workspace/index.js +1 -1
  94. package/lib/config/domain-config.js +1 -1
  95. package/lib/config/schema.js +1 -1
  96. package/lib/constant/app.js +1 -1
  97. package/lib/constant/auth-mode.js +1 -1
  98. package/lib/constant/cli.js +1 -1
  99. package/lib/constant/defaults.js +1 -1
  100. package/lib/constant/distribution.js +1 -1
  101. package/lib/constant/domain.js +1 -1
  102. package/lib/constant/env.js +1 -1
  103. package/lib/constant/output.js +1 -1
  104. package/lib/constant/product.js +1 -1
  105. package/lib/constant/region.js +1 -1
  106. package/lib/constant/risk.js +1 -1
  107. package/lib/constant/url.js +1 -1
  108. package/lib/context.js +1 -1
  109. package/lib/core/api-client.js +1 -1
  110. package/lib/core/db-resolver.js +1 -1
  111. package/lib/core/kb-management-client.js +1 -1
  112. package/lib/core/kb-sdk-errors.js +1 -1
  113. package/lib/core/kb-search-client.js +1 -1
  114. package/lib/core/sdk-client.js +1 -1
  115. package/lib/errors.js +1 -1
  116. package/lib/framework/access-error.js +1 -1
  117. package/lib/framework/build-all-flags.js +1 -1
  118. package/lib/framework/dryrun.js +1 -1
  119. package/lib/framework/flags.js +1 -1
  120. package/lib/framework/help.js +1 -1
  121. package/lib/framework/index.js +1 -1
  122. package/lib/framework/output.js +1 -1
  123. package/lib/framework/preparse.js +1 -1
  124. package/lib/framework/rate-limit.js +1 -1
  125. package/lib/framework/raw-flags.js +1 -1
  126. package/lib/framework/response.js +1 -1
  127. package/lib/framework/runner-confirmation.js +1 -1
  128. package/lib/framework/runner-error.js +1 -1
  129. package/lib/framework/runner.js +1 -1
  130. package/lib/framework/schema-export.js +1 -1
  131. package/lib/framework/service-order.js +1 -1
  132. package/lib/framework/types.js +1 -1
  133. package/lib/generated/build-info.d.ts +4 -4
  134. package/lib/generated/build-info.js +1 -1
  135. package/lib/generated/official-routing.js +1 -1
  136. package/lib/generated/routing-contract.js +1 -1
  137. package/lib/help.js +1 -1
  138. package/lib/postinstall.js +1 -1
  139. package/lib/runtime/confirmation.js +1 -1
  140. package/lib/runtime/event.js +1 -1
  141. package/lib/runtime/index.js +1 -1
  142. package/lib/runtime/queue.js +1 -1
  143. package/lib/runtime/resolve.js +1 -1
  144. package/lib/services/dataset-import/auto-id-runner.js +1 -1
  145. package/lib/services/dataset-import/excel-reader.js +1 -1
  146. package/lib/services/dataset-import/image-bytes.js +1 -1
  147. package/lib/services/dataset-import/image-ooxml.js +1 -1
  148. package/lib/services/dataset-import/image-runner.js +1 -1
  149. package/lib/services/dataset-import/metadata.js +1 -1
  150. package/lib/services/dataset-import/preview.js +1 -1
  151. package/lib/services/dataset-import/runner.js +1 -1
  152. package/lib/skills/builtin-skill.js +1 -1
  153. package/lib/skills/npx-skills-add.js +1 -1
  154. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  155. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  156. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  157. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  158. package/lib/skills/runtime-skill-sync/links.js +1 -1
  159. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  160. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  161. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  162. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  163. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  164. package/lib/skills/runtime-skill-sync/push.js +1 -1
  165. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  166. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  167. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  168. package/lib/skills/runtime-skill-sync.js +1 -1
  169. package/lib/skills/skill-presence.js +1 -1
  170. package/lib/utils/access-key-redaction.js +1 -1
  171. package/lib/utils/apply-jq-filter.js +1 -1
  172. package/lib/utils/cli-version-check.js +1 -1
  173. package/lib/utils/cli-version-policy.js +1 -1
  174. package/lib/utils/logger.js +1 -1
  175. package/lib/utils/lossless-json.js +1 -1
  176. package/lib/utils/params.js +1 -1
  177. package/lib/utils/positive-safe-integer.js +1 -1
  178. package/lib/utils/redaction.js +1 -1
  179. package/lib/utils/runtime-user-id.js +1 -1
  180. package/lib/utils/update-notice.js +1 -1
  181. package/lib/utils/version.js +1 -1
  182. package/lib/utils/write-cli-side-channel.js +1 -1
  183. package/package.json +3 -3
  184. package/skills/lovrabet/SKILL.md +1 -1
  185. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- const a13_0x15c534=a13_0x5ae5;(function(_0x1553d7,_0x2ca438){const _0x17e230=a13_0x5ae5,_0x42b1c4=_0x1553d7();while(!![]){try{const _0x1bb7a0=parseInt(_0x17e230(0x161))/0x1+-parseInt(_0x17e230(0x115))/0x2*(parseInt(_0x17e230(0x147))/0x3)+-parseInt(_0x17e230(0x121))/0x4*(-parseInt(_0x17e230(0x15e))/0x5)+parseInt(_0x17e230(0x155))/0x6*(parseInt(_0x17e230(0x159))/0x7)+parseInt(_0x17e230(0x158))/0x8+-parseInt(_0x17e230(0x11b))/0x9*(parseInt(_0x17e230(0x118))/0xa)+-parseInt(_0x17e230(0x108))/0xb;if(_0x1bb7a0===_0x2ca438)break;else _0x42b1c4['push'](_0x42b1c4['shift']());}catch(_0x2fbcf6){_0x42b1c4['push'](_0x42b1c4['shift']());}}}(a13_0x1214,0xe677a));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 a13_0x1214(){const _0x43d9fe=['check','Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','validation','logout','env','project','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','204hbbWVH','access_key','Invalid\x20accessKey\x20format.','11056800vkHiyE','204253jEIbcZ','read','accessKeyCreatePath','\x20config.','userCenterDisplayName','725xGfpOP','auth','ClientAk','1791208NBZkTd','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','boolean','access-key','status','isTTY','AccessKey:\x20','success','23458831GXQixH','Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','authRequired','\x20env\x20var','production','yes','Tip:\x20you\x20can\x20also\x20run:','code','Then\x20verify\x20with:\x20','\x20config.\x20Nothing\x20to\x20clear.','bool','Write\x20to\x20global\x20config\x20(default)','\x20config','792764RUEwux','push','\x20Verify:\x20','84080tcsxUK','`auth\x20login`\x20does\x20not\x20support\x20--yes.','write','1206LNItsc','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','Device\x20authorization\x20pending.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20try\x20again.','No\x20AccessKey\x20found\x20in\x20','str','Removes\x20the\x20AccessKey\x20from\x20the\x20selected\x20Lovrabet\x20config.\x20Commands\x20that\x20need\x20that\x20key\x20will\x20require\x20login\x20again.','11980PNcWkK','Clear\x20from\x20global\x20config\x20(default)','global\x20config','Option\x20A:\x20','development','Save\x20the\x20AccessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20the\x20project\x20file)','Auth\x20mode:\x20','stdout','join','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','\x20\x20export\x20','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','scope','envName','AccessKey\x20(ak_xxx...)','\x20doctor','accessKey','Option\x20C:\x20environment\x20variable','stdin','\x20auth\x20status','ACCESS_KEY','Shorthand\x20for\x20--access-key','Clear\x20the\x20AccessKey\x20from\x20config','Status:\x20valid','daily','trim','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','\x20Current\x20env:\x20','AccessKey\x20saved\x20to\x20','nonInteractive','global-default','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.','=ak_xxx','\x20(via\x20','Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars','login','project\x20config','3LzhLnU','test','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','Use\x20`','Missing\x20accessKey.','global','string'];a13_0x1214=function(){return _0x43d9fe;};return a13_0x1214();}function showAccessKeyCreateHint(_0xec315b=USER_ACCESS_KEY_CREATE_URL){const _0x1c3876=a13_0x5ae5;writeCliSideChannelLine(_0x1c3876(0x13c)+PRODUCT_CONFIG[_0x1c3876(0x15d)]+':'),writeCliSideChannelLine('\x0a'+_0xec315b+'\x0a'),writeCliSideChannelLine(_0x1c3876(0x10e)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+'\x20auth\x20login\x20--access-key\x20<ak_xxx>');}function buildAccessKeySetupGuide(_0x3ab98b=USER_ACCESS_KEY_CREATE_URL){const _0x11f15=a13_0x5ae5;return[_0x11f15(0x13c)+PRODUCT_CONFIG['userCenterDisplayName']+':',_0x3ab98b,_0x11f15(0x11c)+CLI_BIN_NAME+_0x11f15(0x12d)][_0x11f15(0x129)]('\x0a');}function canPromptForAccessKey(_0x356372){const _0x5613b0=a13_0x5ae5;return!_0x356372[_0x5613b0(0x13f)]&&process[_0x5613b0(0x134)][_0x5613b0(0x166)]!==![]&&process[_0x5613b0(0x128)][_0x5613b0(0x166)]!==![];}function resolveAuthScopeFlags(_0x12399){const _0x4a1139=a13_0x5ae5;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x12399[_0x4a1139(0x112)](_0x4a1139(0x14c)),'explicitProject':_0x12399[_0x4a1139(0x112)](_0x4a1139(0x153)),'policy':_0x4a1139(0x140)}));}async function resolveAuthWriteInput(_0x5bd5f0){const _0x1c3852=a13_0x5ae5;let _0x44e50c=(_0x5bd5f0[_0x1c3852(0x11f)](_0x1c3852(0x164))||_0x5bd5f0['str']('ak')||'')['trim']();const _0x3e5a58=(_0x5bd5f0[_0x1c3852(0x11f)](_0x1c3852(0x152))||'')[_0x1c3852(0x13b)](),_0x2db5d7=''+getUserDomain()+PRODUCT_CONFIG[_0x1c3852(0x15b)];if(!_0x44e50c&&canPromptForAccessKey(_0x5bd5f0))try{showAccessKeyCreateHint(_0x2db5d7),_0x44e50c=await promptAccessKey('');}catch(_0x15c7ae){if(isAbortPrompt(_0x15c7ae))throw CliErrors['cancelled']();throw _0x15c7ae;}if(!_0x44e50c)throw CliErrors[_0x1c3852(0x150)](_0x1c3852(0x14b),buildAccessKeySetupGuide(_0x2db5d7));if(!ACCESS_KEY_PATTERN[_0x1c3852(0x148)](_0x44e50c))throw CliErrors[_0x1c3852(0x150)](_0x1c3852(0x157),_0x1c3852(0x144));if(!_0x3e5a58)return{'accessKey':_0x44e50c};const _0x442d20=normalizeEnv(_0x3e5a58);return{'accessKey':_0x44e50c,'env':isDaily(_0x442d20)?_0x1c3852(0x13a):isDev(_0x442d20)?_0x1c3852(0x125):_0x1c3852(0x10c)};}function a13_0x5ae5(_0x2bbc92,_0x8c5ae6){_0x2bbc92=_0x2bbc92-0x106;const _0x121474=a13_0x1214();let _0x5ae5a7=_0x121474[_0x2bbc92];return _0x5ae5a7;}export const authDefinitions=[{'service':a13_0x15c534(0x15f),'command':a13_0x15c534(0x145),'description':a13_0x15c534(0x126),'risk':a13_0x15c534(0x11a),'confirmationDescription':a13_0x15c534(0x141),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a13_0x15c534(0x164),'type':'string','description':a13_0x15c534(0x130)},{'name':'ak','type':a13_0x15c534(0x14d),'description':a13_0x15c534(0x137)},{'name':'global','type':a13_0x15c534(0x163),'description':a13_0x15c534(0x113),'default':!![]},{'name':'project','type':a13_0x15c534(0x163),'description':a13_0x15c534(0x12a),'default':![]}],async 'execute'(_0x147bae){const _0x2d9731=a13_0x15c534;if(_0x147bae[_0x2d9731(0x112)](_0x2d9731(0x10d)))throw CliErrors[_0x2d9731(0x150)](_0x2d9731(0x119),_0x2d9731(0x14a)+CLI_BIN_NAME+'\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`'+CLI_BIN_NAME+_0x2d9731(0x154));const _0x2b2bb6=(_0x147bae[_0x2d9731(0x11f)](_0x2d9731(0x164))||_0x147bae[_0x2d9731(0x11f)]('ak')||'')[_0x2d9731(0x13b)]();if(!_0x2b2bb6&&_0x147bae[_0x2d9731(0x13f)])return{'ok':!![],'message':buildAccessKeySetupGuide(''+getUserDomain()+PRODUCT_CONFIG['accessKeyCreatePath'])};const _0x18cc4a=await resolveAuthWriteInput(_0x147bae),_0x2e598b=resolveAuthScopeFlags(_0x147bae),_0x4868e8=readScopedConfig(_0x2e598b);_0x4868e8[_0x2d9731(0x132)]=_0x18cc4a[_0x2d9731(0x132)];_0x18cc4a['env']&&(_0x4868e8[_0x2d9731(0x152)]=_0x18cc4a[_0x2d9731(0x152)]);writeScopedConfig(_0x4868e8,_0x2e598b);const _0x1aaf76=_0x2e598b[_0x2d9731(0x14c)]?'global':_0x2d9731(0x153),_0x30c9e1=_0x4868e8['env']?_0x2d9731(0x13d)+_0x4868e8['env']+'.':'';return{'ok':!![],'message':_0x2d9731(0x13e)+_0x1aaf76+_0x2d9731(0x15c)+_0x30c9e1+_0x2d9731(0x117)+CLI_BIN_NAME+'\x20auth\x20status'};}},{'service':'auth','command':a13_0x15c534(0x151),'description':a13_0x15c534(0x138),'risk':a13_0x15c534(0x11a),'confirmationDescription':a13_0x15c534(0x120),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a13_0x15c534(0x14c),'type':a13_0x15c534(0x163),'description':a13_0x15c534(0x122),'default':!![]},{'name':a13_0x15c534(0x153),'type':a13_0x15c534(0x163),'description':a13_0x15c534(0x162),'default':![]}],async 'execute'(_0x22dc73){const _0x50771d=a13_0x15c534,_0x230dfc=resolveAuthScopeFlags(_0x22dc73),_0x464fd2=readScopedConfig(_0x230dfc),_0x3a4839=!!_0x464fd2['accessKey'];delete _0x464fd2[_0x50771d(0x132)],writeScopedConfig(_0x464fd2,_0x230dfc);const _0x530fc9=_0x230dfc[_0x50771d(0x14c)]?_0x50771d(0x14c):'project';if(_0x3a4839)return{'ok':!![],'message':'AccessKey\x20cleared\x20from\x20'+_0x530fc9+_0x50771d(0x15c)};return{'ok':!![],'message':_0x50771d(0x11e)+_0x530fc9+_0x50771d(0x111)};}},{'service':a13_0x15c534(0x15f),'command':a13_0x15c534(0x165),'description':'Show\x20current\x20authentication\x20status','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a13_0x15c534(0x14c),'type':a13_0x15c534(0x163),'description':'Read\x20from\x20global\x20config\x20(default)','default':!![]},{'name':'project','type':a13_0x15c534(0x163),'description':a13_0x15c534(0x12b),'default':![]},{'name':a13_0x15c534(0x14e),'type':a13_0x15c534(0x163),'description':a13_0x15c534(0x14f),'default':![]}],async 'execute'(_0x4f3632){const _0x4a159f=a13_0x15c534,_0x507146=resolveAuthScopeFlags(_0x4f3632),_0x4a6160=readScopedConfig(_0x507146),_0x616408=productEnvName(_0x4a159f(0x136)),_0x4649af=productEnv(_0x4a159f(0x136))||undefined,_0x5dba21=_0x4a6160[_0x4a159f(0x132)]||undefined,_0x4231fa=_0x4649af||_0x5dba21,_0x3154e7=_0x4649af?_0x616408+_0x4a159f(0x10b):_0x5dba21?(_0x507146[_0x4a159f(0x14c)]?'global':'project')+_0x4a159f(0x114):null,_0x185162=[_0x4a159f(0x127)+AUTH_MODE[_0x4a159f(0x160)]];if(_0x4231fa){const _0x500d23=maskCliAccessKey(_0x4231fa);_0x185162[_0x4a159f(0x116)](_0x4a159f(0x106)+_0x500d23+(_0x3154e7?_0x4a159f(0x143)+_0x3154e7+')':'')),_0x185162['push'](_0x4a159f(0x139));}if(!_0x4231fa){_0x185162['push'](''),_0x185162[_0x4a159f(0x116)]('No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:'),_0x185162['push'](''),_0x185162[_0x4a159f(0x116)](_0x4a159f(0x124)+CLI_BIN_NAME+'\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]'),_0x185162[_0x4a159f(0x116)](''),_0x185162[_0x4a159f(0x116)]('Option\x20B:\x20apps\x20config\x20('+PRODUCT_CONFIG['newConfigFileName']+')'),_0x185162['push']('{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}'),_0x185162['push'](''),_0x185162[_0x4a159f(0x116)](_0x4a159f(0x133)),_0x185162[_0x4a159f(0x116)](_0x4a159f(0x12c)+_0x616408+_0x4a159f(0x142)),_0x185162[_0x4a159f(0x116)](''),_0x185162[_0x4a159f(0x116)](_0x4a159f(0x110)+CLI_BIN_NAME+_0x4a159f(0x135)),_0x185162[_0x4a159f(0x116)](_0x4a159f(0x149)+CLI_BIN_NAME+_0x4a159f(0x131));if(_0x4f3632['bool'](_0x4a159f(0x14e))){const _0x5bbe95=readStoredDeviceCode();if(_0x5bbe95&&!isStoredDeviceCodeExpired(_0x5bbe95)){const _0x54656c=getUserDomain(),_0x109f9a=await fetchDeviceToken(_0x54656c,_0x5bbe95[_0x4a159f(0x10f)]);if(_0x109f9a[_0x4a159f(0x165)]===_0x4a159f(0x107)&&_0x109f9a[_0x4a159f(0x156)]){const _0x1f716d={'global':_0x5bbe95['scope']===_0x4a159f(0x14c)},_0x5ba9ed=readScopedConfig(_0x1f716d);_0x5ba9ed['accessKey']=_0x109f9a['access_key'],writeScopedConfig(_0x5ba9ed,_0x1f716d),deleteStoredDeviceCode();const _0x243208=_0x109f9a[_0x4a159f(0x156)],_0x2b58ed=maskCliAccessKey(_0x243208),_0x50761f=_0x5bbe95[_0x4a159f(0x12e)]===_0x4a159f(0x14c)?_0x4a159f(0x123):_0x4a159f(0x146);return{'ok':!![],'message':['Auth\x20mode:\x20'+AUTH_MODE['ClientAk'],_0x4a159f(0x106)+_0x2b58ed+'\x20(via\x20'+_0x50761f+')',_0x4a159f(0x139)][_0x4a159f(0x129)]('\x0a')};}_0x109f9a[_0x4a159f(0x165)]==='expired'&&deleteStoredDeviceCode();throw CliErrors[_0x4a159f(0x10a)](_0x4a159f(0x11d));}throw CliErrors[_0x4a159f(0x10a)](_0x185162['join']('\x0a'));}}return{'ok':!![],'message':_0x185162[_0x4a159f(0x129)]('\x0a')};}},{'service':a13_0x15c534(0x15f),'command':'info','description':a13_0x15c534(0x109),'risk':a13_0x15c534(0x15a),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x40287e){const _0x5a6b35=a13_0x15c534,_0x5ae2be=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x5ae2be,'meta':{'env':_0x40287e[_0x5a6b35(0x12f)]??_0x5a6b35(0x10c)}}};}},authDeviceDefinition];
1
+ const a13_0x113877=a13_0x46a9;(function(_0x3c8672,_0x4f66f8){const _0x30bda4=a13_0x46a9,_0x1c496f=_0x3c8672();while(!![]){try{const _0x58b460=-parseInt(_0x30bda4(0x9e))/0x1+-parseInt(_0x30bda4(0xcc))/0x2+-parseInt(_0x30bda4(0x80))/0x3*(parseInt(_0x30bda4(0xb6))/0x4)+-parseInt(_0x30bda4(0x93))/0x5+-parseInt(_0x30bda4(0x86))/0x6+parseInt(_0x30bda4(0xa9))/0x7*(-parseInt(_0x30bda4(0xbd))/0x8)+-parseInt(_0x30bda4(0xc1))/0x9*(-parseInt(_0x30bda4(0xc3))/0xa);if(_0x58b460===_0x4f66f8)break;else _0x1c496f['push'](_0x1c496f['shift']());}catch(_0x2a8b64){_0x1c496f['push'](_0x1c496f['shift']());}}}(a13_0xf71b,0xf1236));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';function a13_0xf71b(){const _0x3e35bf=['\x20auth\x20status','=ak_xxx','bool','authRequired','Write\x20to\x20project\x20config\x20instead\x20of\x20global\x20config','stdout','Invalid\x20accessKey\x20format.','\x20auth\x20login\x20--non-interactive`\x20to\x20avoid\x20prompts,\x20or\x20`','nonInteractive','7oACqMl','Tip:\x20you\x20can\x20also\x20run:','\x20(via\x20','logout','AccessKey\x20required\x20for\x20login.\x20Create\x20one\x20in\x20','ACCESS_KEY','envName','\x20doctor','login','Exit\x20non-zero\x20when\x20no\x20AccessKey\x20is\x20configured','boolean','push','join','4tLYlNs','Option\x20B:\x20apps\x20config\x20(','\x20config.\x20Nothing\x20to\x20clear.','\x20auth\x20login\x20--access-key\x20<ak_xxx>\x20[--global]','isTTY','\x20auth\x20login\x20--access-key\x20<ak_xxx>','Removes\x20the\x20AccessKey\x20from\x20the\x20selected\x20Lovrabet\x20config.\x20Commands\x20that\x20need\x20that\x20key\x20will\x20require\x20login\x20again.','14244952dRlayG','stdin','Use\x20`','Clear\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','9jyUQjY','Device\x20authorization\x20pending.\x20Complete\x20authorization\x20in\x20browser,\x20then\x20try\x20again.','82365210NYMrJk','success','access-key','string','AccessKey\x20cleared\x20from\x20','validation','production','accessKey','ClientAk','3003176vbVrhJ','cancelled','read','str','Shorthand\x20for\x20--access-key','yes','project','{\x20\x22accessKey\x22:\x20\x22ak_xxx\x22\x20}','Show\x20current\x20authentication\x20status','Give\x20the\x20AccessKey\x20to\x20your\x20AI\x20Agent,\x20then\x20run:\x20','\x20auth\x20login\x20--access-key\x20<ak_xxx>`\x20to\x20save\x20credentials.','write','1269687YjFRKF','scope','AccessKey\x20saved\x20to\x20','env','\x20config.','\x20Verify:\x20','7520910MDUEgR','If\x20command\x20execution\x20still\x20fails,\x20run:\x20','Status:\x20valid','test','global\x20config','AccessKey:\x20','accessKeyCreatePath','global','check','trim','development','Save\x20the\x20AccessKey\x20to\x20config\x20(global\x20by\x20default;\x20use\x20--project\x20for\x20the\x20project\x20file)','userCenterDisplayName','9172850OfNdjX','expired','\x20env\x20var','status','\x20\x20export\x20','\x20config','access_key','code','Clear\x20from\x20global\x20config\x20(default)','auth','\x20auth\x20login\x20[--global]\x20[--access-key\x20ak_xxx]','455328kfsZQF','`auth\x20login`\x20does\x20not\x20support\x20--yes.'];a13_0xf71b=function(){return _0x3e35bf;};return a13_0xf71b();}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(_0x3bddf4=USER_ACCESS_KEY_CREATE_URL){const _0x43cb62=a13_0x46a9;writeCliSideChannelLine(_0x43cb62(0xad)+PRODUCT_CONFIG[_0x43cb62(0x92)]+':'),writeCliSideChannelLine('\x0a'+_0x3bddf4+'\x0a'),writeCliSideChannelLine(_0x43cb62(0xaa)),writeCliSideChannelLine('\x20\x20'+CLI_BIN_NAME+_0x43cb62(0xbb));}function a13_0x46a9(_0x58fe08,_0xc7b960){_0x58fe08=_0x58fe08-0x79;const _0xf71bc9=a13_0xf71b();let _0x46a98d=_0xf71bc9[_0x58fe08];return _0x46a98d;}function buildAccessKeySetupGuide(_0x1ee1d7=USER_ACCESS_KEY_CREATE_URL){const _0xb18ae6=a13_0x46a9;return[_0xb18ae6(0xad)+PRODUCT_CONFIG[_0xb18ae6(0x92)]+':',_0x1ee1d7,_0xb18ae6(0x7d)+CLI_BIN_NAME+_0xb18ae6(0xb9)][_0xb18ae6(0xb5)]('\x0a');}function canPromptForAccessKey(_0x1564a0){const _0x154493=a13_0x46a9;return!_0x1564a0[_0x154493(0xa8)]&&process[_0x154493(0xbe)][_0x154493(0xba)]!==![]&&process[_0x154493(0xa5)][_0x154493(0xba)]!==![];}function resolveAuthScopeFlags(_0x29ac04){const _0x2abdbf=a13_0x46a9;return toScopeFlags(resolveConfigScope({'explicitGlobal':_0x29ac04[_0x2abdbf(0xa2)](_0x2abdbf(0x8d)),'explicitProject':_0x29ac04[_0x2abdbf(0xa2)](_0x2abdbf(0x7a)),'policy':'global-default'}));}async function resolveAuthWriteInput(_0x27922c){const _0x191db3=a13_0x46a9;let _0x58bc14=(_0x27922c['str'](_0x191db3(0xc5))||_0x27922c[_0x191db3(0xcf)]('ak')||'')[_0x191db3(0x8f)]();const _0x5c1371=(_0x27922c['str'](_0x191db3(0x83))||'')[_0x191db3(0x8f)](),_0x2d407f=''+getUserDomain()+PRODUCT_CONFIG['accessKeyCreatePath'];if(!_0x58bc14&&canPromptForAccessKey(_0x27922c))try{showAccessKeyCreateHint(_0x2d407f),_0x58bc14=await promptAccessKey('');}catch(_0x1fee79){if(isAbortPrompt(_0x1fee79))throw CliErrors[_0x191db3(0xcd)]();throw _0x1fee79;}if(!_0x58bc14)throw CliErrors[_0x191db3(0xc8)]('Missing\x20accessKey.',buildAccessKeySetupGuide(_0x2d407f));if(!ACCESS_KEY_PATTERN[_0x191db3(0x89)](_0x58bc14))throw CliErrors[_0x191db3(0xc8)](_0x191db3(0xa6),'Expected:\x20ak_\x20followed\x20by\x2016+\x20alphanumeric\x20chars');if(!_0x5c1371)return{'accessKey':_0x58bc14};const _0x58ea63=normalizeEnv(_0x5c1371);return{'accessKey':_0x58bc14,'env':isDaily(_0x58ea63)?'daily':isDev(_0x58ea63)?_0x191db3(0x90):_0x191db3(0xc9)};}export const authDefinitions=[{'service':'auth','command':a13_0x113877(0xb1),'description':a13_0x113877(0x91),'risk':a13_0x113877(0x7f),'confirmationDescription':'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.','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':'access-key','type':a13_0x113877(0xc6),'description':'AccessKey\x20(ak_xxx...)'},{'name':'ak','type':a13_0x113877(0xc6),'description':a13_0x113877(0xd0)},{'name':'global','type':a13_0x113877(0xb3),'description':'Write\x20to\x20global\x20config\x20(default)','default':!![]},{'name':a13_0x113877(0x7a),'type':a13_0x113877(0xb3),'description':a13_0x113877(0xa4),'default':![]}],async 'execute'(_0x3d8c7b){const _0x43eac8=a13_0x113877;if(_0x3d8c7b[_0x43eac8(0xa2)](_0x43eac8(0x79)))throw CliErrors[_0x43eac8(0xc8)](_0x43eac8(0x9f),_0x43eac8(0xbf)+CLI_BIN_NAME+_0x43eac8(0xa7)+CLI_BIN_NAME+_0x43eac8(0x7e));const _0x3127c2=(_0x3d8c7b[_0x43eac8(0xcf)](_0x43eac8(0xc5))||_0x3d8c7b[_0x43eac8(0xcf)]('ak')||'')['trim']();if(!_0x3127c2&&_0x3d8c7b[_0x43eac8(0xa8)])return{'ok':!![],'message':buildAccessKeySetupGuide(''+getUserDomain()+PRODUCT_CONFIG[_0x43eac8(0x8c)])};const _0x2bdcc1=await resolveAuthWriteInput(_0x3d8c7b),_0x1492b1=resolveAuthScopeFlags(_0x3d8c7b),_0x40b205=readScopedConfig(_0x1492b1);_0x40b205[_0x43eac8(0xca)]=_0x2bdcc1[_0x43eac8(0xca)];_0x2bdcc1[_0x43eac8(0x83)]&&(_0x40b205['env']=_0x2bdcc1[_0x43eac8(0x83)]);writeScopedConfig(_0x40b205,_0x1492b1);const _0x14ec1d=_0x1492b1[_0x43eac8(0x8d)]?_0x43eac8(0x8d):_0x43eac8(0x7a),_0x191fbf=_0x40b205[_0x43eac8(0x83)]?'\x20Current\x20env:\x20'+_0x40b205[_0x43eac8(0x83)]+'.':'';return{'ok':!![],'message':_0x43eac8(0x82)+_0x14ec1d+_0x43eac8(0x84)+_0x191fbf+_0x43eac8(0x85)+CLI_BIN_NAME+_0x43eac8(0xa0)};}},{'service':a13_0x113877(0x9c),'command':a13_0x113877(0xac),'description':'Clear\x20the\x20AccessKey\x20from\x20config','risk':a13_0x113877(0x7f),'confirmationDescription':a13_0x113877(0xbc),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a13_0x113877(0x8d),'type':a13_0x113877(0xb3),'description':a13_0x113877(0x9b),'default':!![]},{'name':a13_0x113877(0x7a),'type':a13_0x113877(0xb3),'description':a13_0x113877(0xc0),'default':![]}],async 'execute'(_0x5c40e9){const _0x1980c0=a13_0x113877,_0x4befbb=resolveAuthScopeFlags(_0x5c40e9),_0x1a219f=readScopedConfig(_0x4befbb),_0x27ac25=!!_0x1a219f[_0x1980c0(0xca)];delete _0x1a219f[_0x1980c0(0xca)],writeScopedConfig(_0x1a219f,_0x4befbb);const _0x778103=_0x4befbb[_0x1980c0(0x8d)]?_0x1980c0(0x8d):_0x1980c0(0x7a);if(_0x27ac25)return{'ok':!![],'message':_0x1980c0(0xc7)+_0x778103+_0x1980c0(0x84)};return{'ok':!![],'message':'No\x20AccessKey\x20found\x20in\x20'+_0x778103+_0x1980c0(0xb8)};}},{'service':a13_0x113877(0x9c),'command':a13_0x113877(0x96),'description':a13_0x113877(0x7c),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a13_0x113877(0x8d),'type':a13_0x113877(0xb3),'description':'Read\x20from\x20global\x20config\x20(default)','default':!![]},{'name':a13_0x113877(0x7a),'type':a13_0x113877(0xb3),'description':'Read\x20from\x20project\x20config\x20instead\x20of\x20global\x20config','default':![]},{'name':a13_0x113877(0x8e),'type':'boolean','description':a13_0x113877(0xb2),'default':![]}],async 'execute'(_0x406e9c){const _0xd855c1=a13_0x113877,_0x56d13e=resolveAuthScopeFlags(_0x406e9c),_0x46a7ab=readScopedConfig(_0x56d13e),_0x2dc1c0=productEnvName(_0xd855c1(0xae)),_0x51cebd=productEnv(_0xd855c1(0xae))||undefined,_0x588cf6=_0x46a7ab['accessKey']||undefined,_0x53d3e4=_0x51cebd||_0x588cf6,_0x1edc72=_0x51cebd?_0x2dc1c0+_0xd855c1(0x95):_0x588cf6?(_0x56d13e['global']?_0xd855c1(0x8d):'project')+_0xd855c1(0x98):null,_0x5353c2=['Auth\x20mode:\x20'+AUTH_MODE['ClientAk']];if(_0x53d3e4){const _0x1ad0ad=maskCliAccessKey(_0x53d3e4);_0x5353c2[_0xd855c1(0xb4)]('AccessKey:\x20'+_0x1ad0ad+(_0x1edc72?_0xd855c1(0xab)+_0x1edc72+')':'')),_0x5353c2[_0xd855c1(0xb4)](_0xd855c1(0x88));}if(!_0x53d3e4){_0x5353c2[_0xd855c1(0xb4)](''),_0x5353c2['push']('No\x20credentials\x20found.\x20Configure\x20one\x20of\x20the\x20options\x20below:'),_0x5353c2['push'](''),_0x5353c2[_0xd855c1(0xb4)]('Option\x20A:\x20'+CLI_BIN_NAME+_0xd855c1(0x9d)),_0x5353c2[_0xd855c1(0xb4)](''),_0x5353c2[_0xd855c1(0xb4)](_0xd855c1(0xb7)+PRODUCT_CONFIG['newConfigFileName']+')'),_0x5353c2[_0xd855c1(0xb4)](_0xd855c1(0x7b)),_0x5353c2[_0xd855c1(0xb4)](''),_0x5353c2['push']('Option\x20C:\x20environment\x20variable'),_0x5353c2['push'](_0xd855c1(0x97)+_0x2dc1c0+_0xd855c1(0xa1)),_0x5353c2[_0xd855c1(0xb4)](''),_0x5353c2[_0xd855c1(0xb4)]('Then\x20verify\x20with:\x20'+CLI_BIN_NAME+_0xd855c1(0xa0)),_0x5353c2['push'](_0xd855c1(0x87)+CLI_BIN_NAME+_0xd855c1(0xb0));if(_0x406e9c[_0xd855c1(0xa2)](_0xd855c1(0x8e))){const _0x104f78=readStoredDeviceCode();if(_0x104f78&&!isStoredDeviceCodeExpired(_0x104f78)){const _0x1ff2ed=getUserDomain(),_0x5ca824=await fetchDeviceToken(_0x1ff2ed,_0x104f78[_0xd855c1(0x9a)]);if(_0x5ca824['status']===_0xd855c1(0xc4)&&_0x5ca824[_0xd855c1(0x99)]){const _0xab901a={'global':_0x104f78[_0xd855c1(0x81)]===_0xd855c1(0x8d)},_0x57c55d=readScopedConfig(_0xab901a);_0x57c55d[_0xd855c1(0xca)]=_0x5ca824[_0xd855c1(0x99)],writeScopedConfig(_0x57c55d,_0xab901a),deleteStoredDeviceCode();const _0x107dea=_0x5ca824['access_key'],_0x1a4b5f=maskCliAccessKey(_0x107dea),_0x857732=_0x104f78['scope']===_0xd855c1(0x8d)?_0xd855c1(0x8a):'project\x20config';return{'ok':!![],'message':['Auth\x20mode:\x20'+AUTH_MODE[_0xd855c1(0xcb)],_0xd855c1(0x8b)+_0x1a4b5f+_0xd855c1(0xab)+_0x857732+')',_0xd855c1(0x88)]['join']('\x0a')};}_0x5ca824['status']===_0xd855c1(0x94)&&deleteStoredDeviceCode();throw CliErrors[_0xd855c1(0xa3)](_0xd855c1(0xc2));}throw CliErrors['authRequired'](_0x5353c2[_0xd855c1(0xb5)]('\x0a'));}}return{'ok':!![],'message':_0x5353c2[_0xd855c1(0xb5)]('\x0a')};}},{'service':a13_0x113877(0x9c),'command':'info','description':'Fetch\x20current\x20login\x20user\x20info\x20for\x20the\x20active\x20access\x20key','risk':a13_0x113877(0xce),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x53c656){const _0x2b3ca7=a13_0x113877,_0x168464=await getLoginUserInfo();return{'ok':!![],'data':{'user':_0x168464,'meta':{'env':_0x53c656[_0x2b3ca7(0xaf)]??'production'}}};}},authDeviceDefinition];
@@ -1 +1 @@
1
- (function(_0x222163,_0x28279c){const _0x105109=a14_0x2e69,_0x440e29=_0x222163();while(!![]){try{const _0x1dc2e5=parseInt(_0x105109(0x156))/0x1*(-parseInt(_0x105109(0x145))/0x2)+-parseInt(_0x105109(0x153))/0x3*(-parseInt(_0x105109(0x14d))/0x4)+parseInt(_0x105109(0x147))/0x5+-parseInt(_0x105109(0x155))/0x6+parseInt(_0x105109(0x14c))/0x7*(parseInt(_0x105109(0x159))/0x8)+parseInt(_0x105109(0x151))/0x9*(parseInt(_0x105109(0x158))/0xa)+-parseInt(_0x105109(0x148))/0xb;if(_0x1dc2e5===_0x28279c)break;else _0x440e29['push'](_0x440e29['shift']());}catch(_0x5b1960){_0x440e29['push'](_0x440e29['shift']());}}}(a14_0x2e2b,0xa6ca5));function a14_0x2e2b(){const _0x2588d9=['AbortPrompt','639900YOvbTN','14737zJfnFy','question','11904900rwZECJ','9841688LcPkgi','close','118oJwuFY','stdin','3842320mpuQig','24751430hdLzek','race','stdout','removeListener','7VNXoxe','17252cJrOBW','AccessKey\x20(paste\x20ak_...):\x20','once','User\x20aborted\x20prompt','9wHgZWe','SIGINT','501uAsviT'];a14_0x2e2b=function(){return _0x2588d9;};return a14_0x2e2b();}import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0xf97622=a14_0x2e69;super(_0xf97622(0x150)),this['name']=_0xf97622(0x154);}}function createSafeRl(){const _0x216dd1=a14_0x2e69,_0xeb8dfd=createInterface({'input':process[_0x216dd1(0x146)],'output':process[_0x216dd1(0x14a)]});let _0x506c10;const _0x1bd69a=new Promise((_0x262c69,_0x353beb)=>{const _0x5bd9c8=_0x216dd1;_0x506c10=()=>{const _0x58e2df=a14_0x2e69;_0x506c10&&(_0xeb8dfd['removeListener'](_0x58e2df(0x152),_0x506c10),_0x506c10=undefined);try{_0xeb8dfd[_0x58e2df(0x15a)]();}catch{}_0x353beb(new AbortPrompt());},_0xeb8dfd[_0x5bd9c8(0x14f)]('SIGINT',_0x506c10);}),_0x598dd8=()=>{const _0x30ac96=_0x216dd1;_0x506c10&&(_0xeb8dfd[_0x30ac96(0x14b)]('SIGINT',_0x506c10),_0x506c10=undefined);try{_0xeb8dfd[_0x30ac96(0x15a)]();}catch{}};return{'rl':_0xeb8dfd,'abortPromise':_0x1bd69a,'disposeSuccess':_0x598dd8};}function a14_0x2e69(_0x4a8f07,_0x426ab0){_0x4a8f07=_0x4a8f07-0x145;const _0x2e2b5b=a14_0x2e2b();let _0x2e69bc=_0x2e2b5b[_0x4a8f07];return _0x2e69bc;}export async function promptAccessKey(_0x58da4e=''){const _0x433eec=a14_0x2e69,{rl:_0x4342db,abortPromise:_0x193e20,disposeSuccess:_0x37b31b}=createSafeRl(),_0x256924=new Promise(_0x40307f=>{const _0xd9db3=a14_0x2e69,_0x4c4fa1=_0x58da4e?'AccessKey\x20('+_0x58da4e+'):\x20':_0xd9db3(0x14e);_0x4342db[_0xd9db3(0x157)](_0x4c4fa1,_0x2d53fa=>{_0x37b31b(),_0x40307f(_0x2d53fa['trim']()||_0x58da4e);});});return Promise[_0x433eec(0x149)]([_0x256924,_0x193e20]);}export function isAbortPrompt(_0x439157){const _0x1ccf96=a14_0x2e69;return _0x439157 instanceof Error&&_0x439157['name']===_0x1ccf96(0x154);}
1
+ (function(_0x58176f,_0x525766){const _0x4de24d=a14_0x3c31,_0x1f1c9d=_0x58176f();while(!![]){try{const _0x41491b=-parseInt(_0x4de24d(0xaf))/0x1+-parseInt(_0x4de24d(0xc0))/0x2*(-parseInt(_0x4de24d(0xbc))/0x3)+parseInt(_0x4de24d(0xb4))/0x4+parseInt(_0x4de24d(0xc2))/0x5*(parseInt(_0x4de24d(0xac))/0x6)+-parseInt(_0x4de24d(0xb7))/0x7*(parseInt(_0x4de24d(0xb1))/0x8)+parseInt(_0x4de24d(0xc1))/0x9*(parseInt(_0x4de24d(0xbb))/0xa)+parseInt(_0x4de24d(0xb0))/0xb*(parseInt(_0x4de24d(0xbf))/0xc);if(_0x41491b===_0x525766)break;else _0x1f1c9d['push'](_0x1f1c9d['shift']());}catch(_0x4664e0){_0x1f1c9d['push'](_0x1f1c9d['shift']());}}}(a14_0x17a5,0xc85e9));function a14_0x17a5(){const _0x287c49=['1256529wwfbZC','8691947PNeorS','245176LLqZYl','trim','User\x20aborted\x20prompt','1663428DafQLp','once','name','273BrjguT','SIGINT','):\x20','close','4037450IgNKVg','12TCgUMn','AbortPrompt','AccessKey\x20(paste\x20ak_...):\x20','12PiLNdB','531028oHdzAl','9mKaizy','37540bBhWzy','480zXtjTL','race','stdin'];a14_0x17a5=function(){return _0x287c49;};return a14_0x17a5();}import{createInterface}from'node:readline';class AbortPrompt extends Error{constructor(){const _0x1527e7=a14_0x3c31;super(_0x1527e7(0xb3)),this[_0x1527e7(0xb6)]=_0x1527e7(0xbd);}}function a14_0x3c31(_0x5c6353,_0x241165){_0x5c6353=_0x5c6353-0xac;const _0x17a517=a14_0x17a5();let _0x3c3115=_0x17a517[_0x5c6353];return _0x3c3115;}function createSafeRl(){const _0x552357=a14_0x3c31,_0x368a77=createInterface({'input':process[_0x552357(0xae)],'output':process['stdout']});let _0x1e3668;const _0x31db37=new Promise((_0x5a1fde,_0x34d0b3)=>{const _0x20f852=_0x552357;_0x1e3668=()=>{const _0x1fd6b7=a14_0x3c31;_0x1e3668&&(_0x368a77['removeListener']('SIGINT',_0x1e3668),_0x1e3668=undefined);try{_0x368a77[_0x1fd6b7(0xba)]();}catch{}_0x34d0b3(new AbortPrompt());},_0x368a77[_0x20f852(0xb5)](_0x20f852(0xb8),_0x1e3668);}),_0x3ac29e=()=>{const _0xad633=_0x552357;_0x1e3668&&(_0x368a77['removeListener'](_0xad633(0xb8),_0x1e3668),_0x1e3668=undefined);try{_0x368a77[_0xad633(0xba)]();}catch{}};return{'rl':_0x368a77,'abortPromise':_0x31db37,'disposeSuccess':_0x3ac29e};}export async function promptAccessKey(_0x1688aa=''){const _0xdf11f=a14_0x3c31,{rl:_0x36cf6a,abortPromise:_0x3095a6,disposeSuccess:_0x1723a6}=createSafeRl(),_0x49de4d=new Promise(_0x382f15=>{const _0x202448=a14_0x3c31,_0x5ea1db=_0x1688aa?'AccessKey\x20('+_0x1688aa+_0x202448(0xb9):_0x202448(0xbe);_0x36cf6a['question'](_0x5ea1db,_0xdd354a=>{const _0x2b426e=_0x202448;_0x1723a6(),_0x382f15(_0xdd354a[_0x2b426e(0xb2)]()||_0x1688aa);});});return Promise[_0xdf11f(0xad)]([_0x49de4d,_0x3095a6]);}export function isAbortPrompt(_0x4931ec){const _0x56a94=a14_0x3c31;return _0x4931ec instanceof Error&&_0x4931ec[_0x56a94(0xb6)]===_0x56a94(0xbd);}
@@ -1 +1 @@
1
- const a15_0x33f080=a15_0x4b24;function a15_0x3cb8(){const _0x3a0d99=['gmtModified','168880pXikNg','bff','1462112zOJrXR','str','1173330BKHbYd','2SbsTKK','1087692hXFUdW','516038ONEeWe','read','appCode','functionName','description','detail','315lwJaEG','name','(none)','4282715GFTAzH','6112992UUliYI','Backend\x20Function\x20name','14HhNpHU'];a15_0x3cb8=function(){return _0x3a0d99;};return a15_0x3cb8();}function a15_0x4b24(_0x990153,_0x155a19){_0x990153=_0x990153-0x1f0;const _0x3cb85d=a15_0x3cb8();let _0x4b24a1=_0x3cb85d[_0x990153];return _0x4b24a1;}(function(_0x50d42b,_0x1dcd69){const _0x4fa401=a15_0x4b24,_0x16948c=_0x50d42b();while(!![]){try{const _0x5f3872=-parseInt(_0x4fa401(0x200))/0x1*(parseInt(_0x4fa401(0x1fe))/0x2)+-parseInt(_0x4fa401(0x1fd))/0x3+parseInt(_0x4fa401(0x1fb))/0x4+parseInt(_0x4fa401(0x1f4))/0x5+-parseInt(_0x4fa401(0x1ff))/0x6*(-parseInt(_0x4fa401(0x1f7))/0x7)+-parseInt(_0x4fa401(0x1f5))/0x8+-parseInt(_0x4fa401(0x1f1))/0x9*(-parseInt(_0x4fa401(0x1f9))/0xa);if(_0x5f3872===_0x1dcd69)break;else _0x16948c['push'](_0x16948c['shift']());}catch(_0x265be7){_0x16948c['push'](_0x16948c['shift']());}}}(a15_0x3cb8,0x7b27b));import{getBffEndpointContract}from'../../core/api-client.js';import{NAME_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':a15_0x33f080(0x1fa),'command':a15_0x33f080(0x1f0),'description':'Get\x20a\x20Backend\x20Function\x20endpoint\x20contract\x20by\x20function\x20name','risk':a15_0x33f080(0x201),'flags':[{...NAME_FLAG,'required':!![],'description':a15_0x33f080(0x1f6)}],async 'execute'(_0x577bdf){const _0x230055=a15_0x33f080,_0x243eb6=await getBffEndpointContract(_0x577bdf[_0x230055(0x202)],_0x577bdf[_0x230055(0x1fc)](_0x230055(0x1f2)));return{'ok':!![],'data':{'appCode':_0x243eb6['appCode'],'functionName':_0x243eb6[_0x230055(0x203)],'description':_0x243eb6[_0x230055(0x204)]||_0x230055(0x1f3),'version':_0x243eb6['version'],'gmtModified':_0x243eb6[_0x230055(0x1f8)]}};}};
1
+ const a15_0x2704d7=a15_0x6fa6;(function(_0x2be057,_0x533633){const _0x477c25=a15_0x6fa6,_0x5b0d1b=_0x2be057();while(!![]){try{const _0x4780d5=-parseInt(_0x477c25(0x1e6))/0x1+parseInt(_0x477c25(0x1de))/0x2*(-parseInt(_0x477c25(0x1da))/0x3)+-parseInt(_0x477c25(0x1e2))/0x4+-parseInt(_0x477c25(0x1d9))/0x5+-parseInt(_0x477c25(0x1d8))/0x6*(parseInt(_0x477c25(0x1e7))/0x7)+parseInt(_0x477c25(0x1db))/0x8+parseInt(_0x477c25(0x1e3))/0x9;if(_0x4780d5===_0x533633)break;else _0x5b0d1b['push'](_0x5b0d1b['shift']());}catch(_0xab6fe3){_0x5b0d1b['push'](_0x5b0d1b['shift']());}}}(a15_0x1f0b,0x3c61e));function a15_0x1f0b(){const _0x5b7524=['3865240nMhEBd','read','name','386RnsnNr','detail','appCode','gmtModified','1743220VVsssa','7039368eefhhB','description','Backend\x20Function\x20name','63262TSOxEj','140vULWFm','95196RTeQzr','704960GRYwtu','942DTJPWs'];a15_0x1f0b=function(){return _0x5b7524;};return a15_0x1f0b();}import{getBffEndpointContract}from'../../core/api-client.js';function a15_0x6fa6(_0x269b06,_0x2ed07d){_0x269b06=_0x269b06-0x1d8;const _0x1f0b71=a15_0x1f0b();let _0x6fa68f=_0x1f0b71[_0x269b06];return _0x6fa68f;}import{NAME_FLAG}from'../../commands/common/flags.js';export const bffDetail={'service':'bff','command':a15_0x2704d7(0x1df),'description':'Get\x20a\x20Backend\x20Function\x20endpoint\x20contract\x20by\x20function\x20name','risk':a15_0x2704d7(0x1dc),'flags':[{...NAME_FLAG,'required':!![],'description':a15_0x2704d7(0x1e5)}],async 'execute'(_0x2b2975){const _0x298e21=a15_0x2704d7,_0x4c2fff=await getBffEndpointContract(_0x2b2975[_0x298e21(0x1e0)],_0x2b2975['str'](_0x298e21(0x1dd)));return{'ok':!![],'data':{'appCode':_0x4c2fff['appCode'],'functionName':_0x4c2fff['functionName'],'description':_0x4c2fff[_0x298e21(0x1e4)]||'(none)','version':_0x4c2fff['version'],'gmtModified':_0x4c2fff[_0x298e21(0x1e1)]}};}};
@@ -1 +1 @@
1
- function a16_0x1d36(){const _0x38730a=['45973dRJGuX','260116eWqCpR','3360YrzMks','Backend\x20Function\x20executed\x20in\x20','4LJFUAH','str','exec','bff','name','params','922797OTyBbB','549237hLxFrR','15VBnvfS','140kZMaJL','1452ZIAyji','Execute\x20a\x20Backend\x20Function\x20script\x20by\x20function\x20name','Backend\x20Function\x20name\x20to\x20execute','51728PGlXfq','read','now','1349208ezukMC'];a16_0x1d36=function(){return _0x38730a;};return a16_0x1d36();}const a16_0x5efa09=a16_0x3bf1;(function(_0x44caea,_0x390dbc){const _0x458655=a16_0x3bf1,_0x260593=_0x44caea();while(!![]){try{const _0x43c5e8=parseInt(_0x458655(0xb5))/0x1*(-parseInt(_0x458655(0xa4))/0x2)+parseInt(_0x458655(0xab))/0x3+-parseInt(_0x458655(0xa1))/0x4*(-parseInt(_0x458655(0xac))/0x5)+parseInt(_0x458655(0xb4))/0x6+parseInt(_0x458655(0xad))/0x7*(-parseInt(_0x458655(0xb1))/0x8)+-parseInt(_0x458655(0xaa))/0x9+parseInt(_0x458655(0xa2))/0xa*(-parseInt(_0x458655(0xae))/0xb);if(_0x43c5e8===_0x390dbc)break;else _0x260593['push'](_0x260593['shift']());}catch(_0x9aed74){_0x260593['push'](_0x260593['shift']());}}}(a16_0x1d36,0x39583));import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';function a16_0x3bf1(_0x47205d,_0x52081c){_0x47205d=_0x47205d-0xa1;const _0x1d36c5=a16_0x1d36();let _0x3bf19f=_0x1d36c5[_0x47205d];return _0x3bf19f;}import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a16_0x5efa09(0xa7),'command':a16_0x5efa09(0xa6),'description':a16_0x5efa09(0xaf),'risk':a16_0x5efa09(0xb2),'flags':[{...NAME_FLAG,'required':!![],'description':a16_0x5efa09(0xb0)},PARAMS_FLAG],async 'execute'(_0x15994e){const _0x10eb2b=a16_0x5efa09,_0x42a849=parseJsonParams(_0x15994e[_0x10eb2b(0xa5)](_0x10eb2b(0xa9))),_0x93610f=Date[_0x10eb2b(0xb3)](),_0x10ae1b=await executeSdkBff(_0x15994e[_0x10eb2b(0xa5)](_0x10eb2b(0xa8)),_0x42a849),_0x13f0f4=Date[_0x10eb2b(0xb3)]()-_0x93610f;return{'ok':!![],'data':{'result':_0x10ae1b,'elapsed':_0x13f0f4},'message':_0x10eb2b(0xa3)+_0x13f0f4+'ms'};}};
1
+ function a16_0x46c7(_0x1f5185,_0x10a819){_0x1f5185=_0x1f5185-0x1de;const _0x3be42d=a16_0x3be4();let _0x46c760=_0x3be42d[_0x1f5185];return _0x46c760;}const a16_0x4c7b1c=a16_0x46c7;(function(_0x1e1042,_0xabcd21){const _0x163a76=a16_0x46c7,_0x232ece=_0x1e1042();while(!![]){try{const _0x463ea0=parseInt(_0x163a76(0x1df))/0x1+parseInt(_0x163a76(0x1ea))/0x2+-parseInt(_0x163a76(0x1ed))/0x3+parseInt(_0x163a76(0x1de))/0x4+-parseInt(_0x163a76(0x1eb))/0x5*(-parseInt(_0x163a76(0x1e5))/0x6)+-parseInt(_0x163a76(0x1ec))/0x7*(-parseInt(_0x163a76(0x1e2))/0x8)+-parseInt(_0x163a76(0x1e3))/0x9*(parseInt(_0x163a76(0x1e0))/0xa);if(_0x463ea0===_0xabcd21)break;else _0x232ece['push'](_0x232ece['shift']());}catch(_0x38ac04){_0x232ece['push'](_0x232ece['shift']());}}}(a16_0x3be4,0x4e730));function a16_0x3be4(){const _0x55cd50=['1467112EocXRL','524819ECiiWN','3110VmyhwM','name','24vXzPWA','29529IsoYut','bff','210060WGGiHb','read','Backend\x20Function\x20executed\x20in\x20','Backend\x20Function\x20name\x20to\x20execute','exec','22580JYCSkE','55ANcTpK','1459703ktlzAC','1715595vOffmk','Execute\x20a\x20Backend\x20Function\x20script\x20by\x20function\x20name','str'];a16_0x3be4=function(){return _0x55cd50;};return a16_0x3be4();}import{executeSdkBff}from'../../core/sdk-client.js';import{parseJsonParams}from'../../utils/params.js';import{NAME_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';export const bffExec={'service':a16_0x4c7b1c(0x1e4),'command':a16_0x4c7b1c(0x1e9),'description':a16_0x4c7b1c(0x1ee),'risk':a16_0x4c7b1c(0x1e6),'flags':[{...NAME_FLAG,'required':!![],'description':a16_0x4c7b1c(0x1e8)},PARAMS_FLAG],async 'execute'(_0x3289f7){const _0x4a50b3=a16_0x4c7b1c,_0xe3dd68=parseJsonParams(_0x3289f7[_0x4a50b3(0x1ef)]('params')),_0xc7cec3=Date['now'](),_0x171718=await executeSdkBff(_0x3289f7[_0x4a50b3(0x1ef)](_0x4a50b3(0x1e1)),_0xe3dd68),_0x5c246c=Date['now']()-_0xc7cec3;return{'ok':!![],'data':{'result':_0x171718,'elapsed':_0x5c246c},'message':_0x4a50b3(0x1e7)+_0x5c246c+'ms'};}};
@@ -1 +1 @@
1
- (function(_0x1d8ee0,_0x25559b){const _0x3bf3ff=a17_0x2db3,_0x43ee53=_0x1d8ee0();while(!![]){try{const _0x574f79=-parseInt(_0x3bf3ff(0x1c8))/0x1+parseInt(_0x3bf3ff(0x1cd))/0x2*(-parseInt(_0x3bf3ff(0x1ce))/0x3)+parseInt(_0x3bf3ff(0x1ca))/0x4+parseInt(_0x3bf3ff(0x1c9))/0x5*(-parseInt(_0x3bf3ff(0x1cc))/0x6)+-parseInt(_0x3bf3ff(0x1cb))/0x7+-parseInt(_0x3bf3ff(0x1d1))/0x8+-parseInt(_0x3bf3ff(0x1d0))/0x9*(-parseInt(_0x3bf3ff(0x1cf))/0xa);if(_0x574f79===_0x25559b)break;else _0x43ee53['push'](_0x43ee53['shift']());}catch(_0x1b2a20){_0x43ee53['push'](_0x43ee53['shift']());}}}(a17_0x3263,0x5a325));import{bffDetail}from'../../commands/bff/detail.js';function a17_0x3263(){const _0x8c3246=['461211DzMjNX','6025TThmta','586784pfZqLq','869190muJTzN','408FiSACI','44leIhSP','87621rJoYnG','10rmZDhn','17874666TEvivR','3627600DLCiOZ'];a17_0x3263=function(){return _0x8c3246;};return a17_0x3263();}function a17_0x2db3(_0x50b47f,_0x817aad){_0x50b47f=_0x50b47f-0x1c8;const _0x3263e8=a17_0x3263();let _0x2db3c6=_0x3263e8[_0x50b47f];return _0x2db3c6;}import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
1
+ function a17_0x5038(){const _0xa5a156=['5oJsOmz','8898540tHwpTr','7254928XlvbDV','5297704AqDLcl','38568249cnEdcI','879850SXICqd','305466XyWOGn','6680TPyTCe','693giqWUz'];a17_0x5038=function(){return _0xa5a156;};return a17_0x5038();}(function(_0x25ea79,_0x4f14d7){const _0x5f402c=a17_0x1813,_0x1b2243=_0x25ea79();while(!![]){try{const _0x4551fe=parseInt(_0x5f402c(0x18d))/0x1+-parseInt(_0x5f402c(0x18f))/0x2*(parseInt(_0x5f402c(0x190))/0x3)+-parseInt(_0x5f402c(0x18b))/0x4*(parseInt(_0x5f402c(0x191))/0x5)+parseInt(_0x5f402c(0x18e))/0x6+-parseInt(_0x5f402c(0x192))/0x7+-parseInt(_0x5f402c(0x18a))/0x8+parseInt(_0x5f402c(0x18c))/0x9;if(_0x4551fe===_0x4f14d7)break;else _0x1b2243['push'](_0x1b2243['shift']());}catch(_0x1f36e0){_0x1b2243['push'](_0x1b2243['shift']());}}}(a17_0x5038,0xe5ff6));function a17_0x1813(_0x1a366a,_0xfae749){_0x1a366a=_0x1a366a-0x18a;const _0x503814=a17_0x5038();let _0x18130b=_0x503814[_0x1a366a];return _0x18130b;}import{bffDetail}from'../../commands/bff/detail.js';import{bffExec}from'../../commands/bff/exec.js';export const bffDefinitions=[bffDetail,bffExec];
@@ -1 +1 @@
1
- function a18_0x4e63(_0x3590c2,_0x2f0133){_0x3590c2=_0x3590c2-0x12c;const _0x477b88=a18_0x477b();let _0x4e63b3=_0x477b88[_0x3590c2];return _0x4e63b3;}const a18_0x304b0c=a18_0x4e63;(function(_0x32a67e,_0x1e675c){const _0x1e6b6d=a18_0x4e63,_0x4e7aa4=_0x32a67e();while(!![]){try{const _0x2ff809=-parseInt(_0x1e6b6d(0x139))/0x1+parseInt(_0x1e6b6d(0x132))/0x2+parseInt(_0x1e6b6d(0x13a))/0x3+parseInt(_0x1e6b6d(0x149))/0x4*(parseInt(_0x1e6b6d(0x147))/0x5)+parseInt(_0x1e6b6d(0x136))/0x6*(-parseInt(_0x1e6b6d(0x13b))/0x7)+parseInt(_0x1e6b6d(0x142))/0x8+-parseInt(_0x1e6b6d(0x140))/0x9*(parseInt(_0x1e6b6d(0x146))/0xa);if(_0x2ff809===_0x1e675c)break;else _0x4e7aa4['push'](_0x4e7aa4['shift']());}catch(_0x40dcf1){_0x4e7aa4['push'](_0x4e7aa4['shift']());}}}(a18_0x477b,0xcd9ff));import{CliErrors}from'../../errors.js';import{installBuiltinSkill}from'../../skills/builtin-skill.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a18_0x304b0c(0x13f),'command':a18_0x304b0c(0x138),'description':a18_0x304b0c(0x134),'risk':a18_0x304b0c(0x13c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0xcc231f){const _0x31fe96=a18_0x304b0c;logger[_0x31fe96(0x13e)](process[_0x31fe96(0x14c)]()),logger['info'](_0x31fe96(0x14a),_0x31fe96(0x143));const _0x38a4b6=installBuiltinSkill({'stdio':_0xcc231f[_0x31fe96(0x148)]?_0x31fe96(0x145):_0x31fe96(0x137)});if(!_0x38a4b6['ok'])throw CliErrors['apiError'](_0x31fe96(0x12e)+(_0x38a4b6['code']||_0x31fe96(0x135))+_0x31fe96(0x12c)+(_0x38a4b6[_0x31fe96(0x131)]||'unknown'),'Resolve\x20the\x20Skills\x20CLI\x20installation\x20issue\x20and\x20run:\x20'+_0x38a4b6[_0x31fe96(0x12d)]);const _0x580f8f=_0x38a4b6[_0x31fe96(0x130)]?_0x31fe96(0x13d)+_0x38a4b6[_0x31fe96(0x130)]:'';return console[_0x31fe96(0x144)](_0x38a4b6[_0x31fe96(0x14b)]?'CLI\x20Built-in\x20Skill\x20'+_0x38a4b6[_0x31fe96(0x12f)]+_0x31fe96(0x133)+_0x580f8f:'CLI\x20Built-in\x20Skill\x20'+_0x38a4b6[_0x31fe96(0x12f)]+_0x31fe96(0x141)+_0x580f8f),{'ok':!![]};}}];function a18_0x477b(){const _0x491f49=['935360QzsVPK','\x20installed','Install\x20the\x20built-in\x20CLI\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','INSTALL_FAILED','17634qycLvz','inherit','install','879927ouIAJq','3564669DzsLsL','175VPxgLT','read','\x20at\x20','setLogPath','cli-skill','2187qLGIpb','\x20is\x20already\x20current','12157192TMJojx','Installing\x20CLI\x20Built-in\x20Skill\x20from\x20the\x20npm\x20package.','log','pipe','114090aLqyLm','9820ZYQVlB','nonInteractive','2836kosvor','cli-skill-install','changed','cwd',']:\x20','repairCommand','Built-in\x20Skill\x20install\x20failed\x20[','skillVersion','installedPath','error'];a18_0x477b=function(){return _0x491f49;};return a18_0x477b();}
1
+ const a18_0x5d1a3d=a18_0x32a7;function a18_0x98a9(){const _0x348207=[']:\x20','cli-skill','cwd','143358BrjGWh','apiError','unknown','info','Built-in\x20Skill\x20install\x20failed\x20[','45AUlnpv','inherit','CLI\x20Built-in\x20Skill\x20','code','pipe','read','skillVersion','Install\x20the\x20built-in\x20CLI\x20Skill\x20required\x20by\x20Lovrabet\x20runtime','Resolve\x20the\x20Skills\x20CLI\x20installation\x20issue\x20and\x20run:\x20','202440yPPQfz','installedPath','2155689Yctzuy','\x20at\x20','456144xxdITU','131901mimbdc','\x20is\x20already\x20current','install','repairCommand','20144UYtwVl','error','cli-skill-install','changed','INSTALL_FAILED','Installing\x20CLI\x20Built-in\x20Skill\x20from\x20the\x20npm\x20package.','nonInteractive','126JAJKlO','128514cQCFbr'];a18_0x98a9=function(){return _0x348207;};return a18_0x98a9();}(function(_0x24ec66,_0x3d349e){const _0x40be7c=a18_0x32a7,_0x42e654=_0x24ec66();while(!![]){try{const _0x40eb28=parseInt(_0x40be7c(0x71))/0x1+-parseInt(_0x40be7c(0x87))/0x2+parseInt(_0x40be7c(0x70))/0x3*(parseInt(_0x40be7c(0x8c))/0x4)+-parseInt(_0x40be7c(0x7a))/0x5*(parseInt(_0x40be7c(0x75))/0x6)+-parseInt(_0x40be7c(0x88))/0x7+parseInt(_0x40be7c(0x83))/0x8+parseInt(_0x40be7c(0x85))/0x9;if(_0x40eb28===_0x3d349e)break;else _0x42e654['push'](_0x42e654['shift']());}catch(_0x520f36){_0x42e654['push'](_0x42e654['shift']());}}}(a18_0x98a9,0x22e34));import{CliErrors}from'../../errors.js';function a18_0x32a7(_0x54bd99,_0x3c0c4f){_0x54bd99=_0x54bd99-0x6b;const _0x98a987=a18_0x98a9();let _0x32a774=_0x98a987[_0x54bd99];return _0x32a774;}import{installBuiltinSkill}from'../../skills/builtin-skill.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a18_0x5d1a3d(0x73),'command':a18_0x5d1a3d(0x8a),'description':a18_0x5d1a3d(0x81),'risk':a18_0x5d1a3d(0x7f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x79ea81){const _0x13df90=a18_0x5d1a3d;logger['setLogPath'](process[_0x13df90(0x74)]()),logger[_0x13df90(0x78)](_0x13df90(0x6b),_0x13df90(0x6e));const _0x4ab532=installBuiltinSkill({'stdio':_0x79ea81[_0x13df90(0x6f)]?_0x13df90(0x7e):_0x13df90(0x7b)});if(!_0x4ab532['ok'])throw CliErrors[_0x13df90(0x76)](_0x13df90(0x79)+(_0x4ab532[_0x13df90(0x7d)]||_0x13df90(0x6d))+_0x13df90(0x72)+(_0x4ab532[_0x13df90(0x8d)]||_0x13df90(0x77)),_0x13df90(0x82)+_0x4ab532[_0x13df90(0x8b)]);const _0x10c1e4=_0x4ab532[_0x13df90(0x84)]?_0x13df90(0x86)+_0x4ab532[_0x13df90(0x84)]:'';return console['log'](_0x4ab532[_0x13df90(0x6c)]?'CLI\x20Built-in\x20Skill\x20'+_0x4ab532[_0x13df90(0x80)]+'\x20installed'+_0x10c1e4:_0x13df90(0x7c)+_0x4ab532[_0x13df90(0x80)]+_0x13df90(0x89)+_0x10c1e4),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x4beffb,_0x188e98){const _0x4052d6=a19_0x250f,_0x68f85=_0x4beffb();while(!![]){try{const _0x96b1af=-parseInt(_0x4052d6(0x165))/0x1*(parseInt(_0x4052d6(0x16b))/0x2)+-parseInt(_0x4052d6(0x160))/0x3+parseInt(_0x4052d6(0x16e))/0x4*(parseInt(_0x4052d6(0x172))/0x5)+parseInt(_0x4052d6(0x16a))/0x6*(parseInt(_0x4052d6(0x176))/0x7)+-parseInt(_0x4052d6(0x174))/0x8*(-parseInt(_0x4052d6(0x16c))/0x9)+-parseInt(_0x4052d6(0x173))/0xa+parseInt(_0x4052d6(0x16f))/0xb*(parseInt(_0x4052d6(0x170))/0xc);if(_0x96b1af===_0x188e98)break;else _0x68f85['push'](_0x68f85['shift']());}catch(_0x4c5ee4){_0x68f85['push'](_0x68f85['shift']());}}}(a19_0x1fe7,0xac4c5));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';function a19_0x250f(_0x37bfbf,_0x33bca5){_0x37bfbf=_0x37bfbf-0x15f;const _0x1fe753=a19_0x1fe7();let _0x250f55=_0x1fe753[_0x37bfbf];return _0x250f55;}function a19_0x1fe7(){const _0x479a4e=['4145556LyIGdq','global-default','inProject','newConfigFileName','project-or-global-explicit','26570ekPerW','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','Not\x20inside\x20a\x20project\x20(no\x20','Add\x20--global\x20to\x20write\x20to\x20~/','validation','150tNBvdc','2Ewahya','1012734Gndkjp','project','12FSIcJF','77YYGMsv','72444skPBxc','Use\x20only\x20one\x20config\x20scope\x20flag.','977995RvzXpj','7386110pGLSTh','80uaEcpF','global','307566xPuGdH','\x20(global)'];a19_0x1fe7=function(){return _0x479a4e;};return a19_0x1fe7();}export function resolveConfigScope(_0x23923f){const _0x5acdbb=a19_0x250f,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x42a9b9}=_0x23923f;if(explicitGlobal&&explicitProject)throw CliErrors['validation'](_0x5acdbb(0x166),_0x5acdbb(0x171));if(explicitGlobal)return'global';if(explicitProject)return _0x5acdbb(0x16d);switch(_0x42a9b9){case _0x5acdbb(0x161):return _0x5acdbb(0x175);case _0x5acdbb(0x164):if(!(_0x23923f[_0x5acdbb(0x162)]??isInProject()))throw CliErrors[_0x5acdbb(0x169)](_0x5acdbb(0x167)+PRODUCT_CONFIG[_0x5acdbb(0x163)]+'\x20found).',_0x5acdbb(0x168)+PRODUCT_CONFIG['newConfigFileName']+',\x20or\x20create\x20a\x20project-local\x20'+PRODUCT_CONFIG[_0x5acdbb(0x163)]+'\x20first.');return _0x5acdbb(0x16d);}}export function toScopeFlags(_0x30a150){const _0x3b6122=a19_0x250f;return{'global':_0x30a150===_0x3b6122(0x175)};}export function formatScopeLabel(_0x1b95d7){const _0x3efe3f=a19_0x250f;return _0x1b95d7===_0x3efe3f(0x175)?_0x3efe3f(0x15f):'';}
1
+ (function(_0x227332,_0x1ff9a8){const _0x994a2=a19_0x8830,_0x56b48a=_0x227332();while(!![]){try{const _0x576174=-parseInt(_0x994a2(0x1c6))/0x1+-parseInt(_0x994a2(0x1bc))/0x2*(-parseInt(_0x994a2(0x1c1))/0x3)+parseInt(_0x994a2(0x1c5))/0x4*(parseInt(_0x994a2(0x1b9))/0x5)+-parseInt(_0x994a2(0x1cb))/0x6+-parseInt(_0x994a2(0x1bf))/0x7+parseInt(_0x994a2(0x1c2))/0x8+-parseInt(_0x994a2(0x1cd))/0x9;if(_0x576174===_0x1ff9a8)break;else _0x56b48a['push'](_0x56b48a['shift']());}catch(_0x505e69){_0x56b48a['push'](_0x56b48a['shift']());}}}(a19_0x34cf,0xb65a8));import{PRODUCT_CONFIG}from'../../constant/product.js';export{DEFAULT_APP_PROFILE_NAME,DEFAULT_CONFIG_VALUES}from'../../constant/defaults.js';function a19_0x8830(_0x12b111,_0xf3c751){_0x12b111=_0x12b111-0x1b9;const _0x34cfe7=a19_0x34cf();let _0x8830e3=_0x34cfe7[_0x12b111];return _0x8830e3;}export{RUNTIME_ENV_VALUES}from'../../constant/env.js';export{OUTPUT_FORMAT_VALUES}from'../../constant/output.js';function a19_0x34cf(){const _0x58b309=['6292105AUreIy','Use\x20only\x20one\x20config\x20scope\x20flag.','\x20(global)','731118NTrsKA','inProject','Add\x20--global\x20to\x20write\x20to\x20~/','3588361caqIKZ','validation','3mrcetr','10565952bZQxcd','newConfigFileName','Flags\x20--global\x20and\x20--project\x20are\x20mutually\x20exclusive.','4hYJEOa','403046cwzOFe','\x20found).','global-default','global','Not\x20inside\x20a\x20project\x20(no\x20','6016806QqmqMk','project','2514006smGgBd'];a19_0x34cf=function(){return _0x58b309;};return a19_0x34cf();}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(_0x2560d0){const _0x4d7e50=a19_0x8830,{explicitGlobal:explicitGlobal=![],explicitProject:explicitProject=![],policy:_0x57ed07}=_0x2560d0;if(explicitGlobal&&explicitProject)throw CliErrors[_0x4d7e50(0x1c0)](_0x4d7e50(0x1c4),_0x4d7e50(0x1ba));if(explicitGlobal)return _0x4d7e50(0x1c9);if(explicitProject)return'project';switch(_0x57ed07){case _0x4d7e50(0x1c8):return _0x4d7e50(0x1c9);case'project-or-global-explicit':if(!(_0x2560d0[_0x4d7e50(0x1bd)]??isInProject()))throw CliErrors[_0x4d7e50(0x1c0)](_0x4d7e50(0x1ca)+PRODUCT_CONFIG[_0x4d7e50(0x1c3)]+_0x4d7e50(0x1c7),_0x4d7e50(0x1be)+PRODUCT_CONFIG['newConfigFileName']+',\x20or\x20create\x20a\x20project-local\x20'+PRODUCT_CONFIG[_0x4d7e50(0x1c3)]+'\x20first.');return _0x4d7e50(0x1cc);}}export function toScopeFlags(_0x5e33d7){const _0x56d034=a19_0x8830;return{'global':_0x5e33d7===_0x56d034(0x1c9)};}export function formatScopeLabel(_0x425095){const _0x4d3fc4=a19_0x8830;return _0x425095===_0x4d3fc4(0x1c9)?_0x4d3fc4(0x1bb):'';}
@@ -1 +1 @@
1
- (function(_0x4b62f,_0x5d8967){const _0xedc34=a20_0x1f7d,_0x24e277=_0x4b62f();while(!![]){try{const _0x428200=-parseInt(_0xedc34(0x1d8))/0x1+parseInt(_0xedc34(0x1d7))/0x2*(-parseInt(_0xedc34(0x1d3))/0x3)+parseInt(_0xedc34(0x1df))/0x4*(parseInt(_0xedc34(0x1ce))/0x5)+parseInt(_0xedc34(0x1d9))/0x6+parseInt(_0xedc34(0x1e0))/0x7*(parseInt(_0xedc34(0x1dc))/0x8)+-parseInt(_0xedc34(0x1e2))/0x9*(-parseInt(_0xedc34(0x1e3))/0xa)+-parseInt(_0xedc34(0x1de))/0xb*(-parseInt(_0xedc34(0x1d0))/0xc);if(_0x428200===_0x5d8967)break;else _0x24e277['push'](_0x24e277['shift']());}catch(_0x42c3fa){_0x24e277['push'](_0x24e277['shift']());}}}(a20_0x3050,0xac4df));import{CliErrors}from'../../errors.js';function isSet(_0xe892fa,_0x2bf103){const _0x44d72b=a20_0x1f7d,_0x18dfb2=_0xe892fa[_0x44d72b(0x1cd)](_0x2bf103);return _0x18dfb2!==undefined&&_0x18dfb2!==''&&_0x18dfb2!==![]&&_0x18dfb2!==0x0;}function fmtNames(_0x4185b4){const _0x1b2566=a20_0x1f7d;return _0x4185b4['map'](_0x2d86f4=>'--'+_0x2d86f4)[_0x1b2566(0x1da)](',\x20');}export function requireOneOf(_0x199c67,_0x18da83,_0x30b986){const _0x58630d=a20_0x1f7d,_0x483e49=_0x18da83[_0x58630d(0x1e1)](_0x2cf28d=>isSet(_0x199c67,_0x2cf28d));if(_0x483e49[_0x58630d(0x1d5)]!==0x1)throw CliErrors[_0x58630d(0x1db)](_0x483e49[_0x58630d(0x1d5)]===0x0?_0x58630d(0x1d2)+fmtNames(_0x18da83)+_0x58630d(0x1cf)+_0x30b986+'`.':_0x58630d(0x1d6)+fmtNames(_0x18da83)+_0x58630d(0x1dd)+fmtNames(_0x483e49)+'.',_0x483e49['length']===0x0?_0x58630d(0x1e5)+fmtNames(_0x18da83):_0x58630d(0x1d1));}function a20_0x1f7d(_0xb1970b,_0x3831e9){_0xb1970b=_0xb1970b-0x1cb;const _0x305091=a20_0x3050();let _0x1f7d80=_0x305091[_0xb1970b];return _0x1f7d80;}export function requireAnyOf(_0x2c001f,_0x145bd0,_0x17412b){const _0x3d2109=a20_0x1f7d;if(!_0x145bd0[_0x3d2109(0x1cb)](_0x2bccd5=>isSet(_0x2c001f,_0x2bccd5)))throw CliErrors[_0x3d2109(0x1db)]('At\x20least\x20one\x20of\x20'+fmtNames(_0x145bd0)+_0x3d2109(0x1cf)+_0x17412b+'`.',_0x3d2109(0x1e5)+fmtNames(_0x145bd0));}export function mutuallyExclusive(_0x23ed47,_0xf9f1e8,_0x54b695){const _0x1c320a=a20_0x1f7d,_0x5982ad=_0xf9f1e8[_0x1c320a(0x1e1)](_0x1fc9a9=>isSet(_0x23ed47,_0x1fc9a9));if(_0x5982ad[_0x1c320a(0x1d5)]>0x1)throw CliErrors[_0x1c320a(0x1db)]('Flags\x20'+fmtNames(_0x5982ad)+_0x1c320a(0x1cc)+_0x54b695+'`.','Use\x20only\x20one\x20of:\x20'+fmtNames(_0xf9f1e8));}export function validatePattern(_0x43be7d,_0x59c870,_0x13e25e,_0x95b424){const _0x33c33c=a20_0x1f7d,_0x2edc46=_0x43be7d['str'](_0x59c870);if(_0x2edc46&&!_0x13e25e['test'](_0x2edc46))throw CliErrors[_0x33c33c(0x1db)](_0x33c33c(0x1d4)+_0x59c870+_0x33c33c(0x1e6)+_0x95b424+_0x33c33c(0x1e4)+_0x2edc46+'\x22.');}function a20_0x3050(){const _0x43e622=['join','validation','1904wjTMXA','\x20is\x20allowed,\x20found:\x20','2060443teyZss','612MOMJTn','36694WgYMWG','filter','54bxgxWt','1679140yUhlCr',',\x20got\x20\x22','Provide\x20one\x20of:\x20',':\x20expected\x20','some','\x20are\x20mutually\x20exclusive\x20for\x20`','flag','2735phQjib','\x20is\x20required\x20for\x20`','24VRjlRC','Remove\x20all\x20but\x20one.','Exactly\x20one\x20of\x20','3heGmHb','Invalid\x20--','length','Only\x20one\x20of\x20','2062844BhiPbs','1056431LhNUCW','481290ERPydD'];a20_0x3050=function(){return _0x43e622;};return a20_0x3050();}
1
+ (function(_0x11aa52,_0x5a90cd){const _0x3be82a=a20_0x45e7,_0x48f75e=_0x11aa52();while(!![]){try{const _0x52622a=-parseInt(_0x3be82a(0xb6))/0x1+-parseInt(_0x3be82a(0xb1))/0x2*(-parseInt(_0x3be82a(0xba))/0x3)+parseInt(_0x3be82a(0xac))/0x4+parseInt(_0x3be82a(0xb0))/0x5+-parseInt(_0x3be82a(0xc7))/0x6+-parseInt(_0x3be82a(0xc6))/0x7+-parseInt(_0x3be82a(0xb7))/0x8*(-parseInt(_0x3be82a(0xae))/0x9);if(_0x52622a===_0x5a90cd)break;else _0x48f75e['push'](_0x48f75e['shift']());}catch(_0x323c13){_0x48f75e['push'](_0x48f75e['shift']());}}}(a20_0x3627,0x715ef));import{CliErrors}from'../../errors.js';function isSet(_0xae901b,_0x54ffcb){const _0x3d9be5=a20_0x45e7,_0x515e40=_0xae901b[_0x3d9be5(0xb4)](_0x54ffcb);return _0x515e40!==undefined&&_0x515e40!==''&&_0x515e40!==![]&&_0x515e40!==0x0;}function fmtNames(_0x4c90be){const _0x1ef888=a20_0x45e7;return _0x4c90be[_0x1ef888(0xbc)](_0x1f2063=>'--'+_0x1f2063)[_0x1ef888(0xbf)](',\x20');}function a20_0x45e7(_0x1eae5b,_0x244b10){_0x1eae5b=_0x1eae5b-0xac;const _0x362764=a20_0x3627();let _0x45e7ce=_0x362764[_0x1eae5b];return _0x45e7ce;}export function requireOneOf(_0x25b102,_0x3ba8e3,_0x292048){const _0x25570a=a20_0x45e7,_0x3c6154=_0x3ba8e3[_0x25570a(0xb9)](_0x342599=>isSet(_0x25b102,_0x342599));if(_0x3c6154[_0x25570a(0xc2)]!==0x1)throw CliErrors['validation'](_0x3c6154[_0x25570a(0xc2)]===0x0?_0x25570a(0xb3)+fmtNames(_0x3ba8e3)+'\x20is\x20required\x20for\x20`'+_0x292048+'`.':_0x25570a(0xc8)+fmtNames(_0x3ba8e3)+'\x20is\x20allowed,\x20found:\x20'+fmtNames(_0x3c6154)+'.',_0x3c6154[_0x25570a(0xc2)]===0x0?_0x25570a(0xc1)+fmtNames(_0x3ba8e3):'Remove\x20all\x20but\x20one.');}function a20_0x3627(){const _0x2e3e97=['some','Provide\x20one\x20of:\x20','length','validation','Invalid\x20--','str','6497750VznhTm','812406FXeANA','Only\x20one\x20of\x20','1823484iRbfeo',':\x20expected\x20','207yfAsjE','test','1150145kPlGgW','40ghLepl','\x20are\x20mutually\x20exclusive\x20for\x20`','Exactly\x20one\x20of\x20','flag','Flags\x20','681081mvixay','358024abQghp','\x20is\x20required\x20for\x20`','filter','74082YbOZCt','Use\x20only\x20one\x20of:\x20','map',',\x20got\x20\x22','At\x20least\x20one\x20of\x20','join'];a20_0x3627=function(){return _0x2e3e97;};return a20_0x3627();}export function requireAnyOf(_0x211a3a,_0x5e06e7,_0x4aaa73){const _0xcc4e97=a20_0x45e7;if(!_0x5e06e7[_0xcc4e97(0xc0)](_0x433ae3=>isSet(_0x211a3a,_0x433ae3)))throw CliErrors[_0xcc4e97(0xc3)](_0xcc4e97(0xbe)+fmtNames(_0x5e06e7)+_0xcc4e97(0xb8)+_0x4aaa73+'`.',_0xcc4e97(0xc1)+fmtNames(_0x5e06e7));}export function mutuallyExclusive(_0x5d5a85,_0x8cba1e,_0x601f22){const _0x48255b=a20_0x45e7,_0xa0f1e5=_0x8cba1e[_0x48255b(0xb9)](_0x2f2079=>isSet(_0x5d5a85,_0x2f2079));if(_0xa0f1e5['length']>0x1)throw CliErrors[_0x48255b(0xc3)](_0x48255b(0xb5)+fmtNames(_0xa0f1e5)+_0x48255b(0xb2)+_0x601f22+'`.',_0x48255b(0xbb)+fmtNames(_0x8cba1e));}export function validatePattern(_0x279a41,_0x11f934,_0x36739,_0x29c04d){const _0x5ef7db=a20_0x45e7,_0x8ed5fa=_0x279a41[_0x5ef7db(0xc5)](_0x11f934);if(_0x8ed5fa&&!_0x36739[_0x5ef7db(0xaf)](_0x8ed5fa))throw CliErrors['validation'](_0x5ef7db(0xc4)+_0x11f934+_0x5ef7db(0xad)+_0x29c04d+_0x5ef7db(0xbd)+_0x8ed5fa+'\x22.');}
@@ -1 +1 @@
1
- const a21_0x48f5fc=a21_0x462a;(function(_0x258dea,_0x101b7a){const _0x2c7317=a21_0x462a,_0x4ace4=_0x258dea();while(!![]){try{const _0x572f98=parseInt(_0x2c7317(0x115))/0x1*(parseInt(_0x2c7317(0x109))/0x2)+parseInt(_0x2c7317(0x10d))/0x3+-parseInt(_0x2c7317(0x11c))/0x4+-parseInt(_0x2c7317(0x113))/0x5*(-parseInt(_0x2c7317(0x11b))/0x6)+parseInt(_0x2c7317(0x119))/0x7+-parseInt(_0x2c7317(0x111))/0x8+-parseInt(_0x2c7317(0x11d))/0x9;if(_0x572f98===_0x101b7a)break;else _0x4ace4['push'](_0x4ace4['shift']());}catch(_0x34b598){_0x4ace4['push'](_0x4ace4['shift']());}}}(a21_0x5d12,0x70c7f));export const GLOBAL_SCOPE_FLAG={'name':a21_0x48f5fc(0x110),'type':a21_0x48f5fc(0x116),'default':![],'description':'Write\x20to\x20the\x20global\x20configuration'};function a21_0x462a(_0x222b51,_0x1db674){_0x222b51=_0x222b51-0x109;const _0x5d12f5=a21_0x5d12();let _0x462a17=_0x5d12f5[_0x222b51];return _0x462a17;}export const CODE_FLAG={'name':a21_0x48f5fc(0x11a),'type':a21_0x48f5fc(0x117),'required':!![],'description':a21_0x48f5fc(0x10e),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a21_0x48f5fc(0x112)}};export const SQLCODE_FLAG={'name':a21_0x48f5fc(0x10c),'type':a21_0x48f5fc(0x117),'required':!![],'description':a21_0x48f5fc(0x10b),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};export const VERBOSE_FLAG={'name':'verbose','type':'boolean','description':a21_0x48f5fc(0x118)};export const PARAMS_FLAG={'name':'params','type':a21_0x48f5fc(0x117),'description':a21_0x48f5fc(0x114)};export const NAME_FLAG={'name':'name','type':'string','description':'Resource\x20name\x20for\x20lookup'};function a21_0x5d12(){const _0x5135ed=['193015zuDrgf','Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)','25ErzRIM','boolean','string','Return\x20full\x20raw\x20response\x20object','2456104kpcIVK','code','12lDisoP','2298308Vadlgt','2962395QSCovD','23824bvcwJU','Resource\x20ID','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','sqlcode','2494590rlkjXm','Dataset\x20code\x20(32-char\x20hex\x20UUID)','number','global','1533800QKIVmp','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)'];a21_0x5d12=function(){return _0x5135ed;};return a21_0x5d12();}export const ID_FLAG={'name':'id','type':a21_0x48f5fc(0x10f),'required':!![],'description':a21_0x48f5fc(0x10a)};
1
+ const a21_0x156209=a21_0x212f;(function(_0x141ea5,_0x185b8e){const _0x4828f2=a21_0x212f,_0x37309f=_0x141ea5();while(!![]){try{const _0x19d824=-parseInt(_0x4828f2(0x14a))/0x1*(-parseInt(_0x4828f2(0x14e))/0x2)+-parseInt(_0x4828f2(0x14d))/0x3+-parseInt(_0x4828f2(0x159))/0x4+parseInt(_0x4828f2(0x158))/0x5*(-parseInt(_0x4828f2(0x14f))/0x6)+-parseInt(_0x4828f2(0x152))/0x7+-parseInt(_0x4828f2(0x14c))/0x8+-parseInt(_0x4828f2(0x146))/0x9*(-parseInt(_0x4828f2(0x15a))/0xa);if(_0x19d824===_0x185b8e)break;else _0x37309f['push'](_0x37309f['shift']());}catch(_0x4b3017){_0x37309f['push'](_0x37309f['shift']());}}}(a21_0x417a,0xe92eb));export const GLOBAL_SCOPE_FLAG={'name':a21_0x156209(0x153),'type':a21_0x156209(0x155),'default':![],'description':a21_0x156209(0x15c)};function a21_0x417a(){const _0xd63228=['name','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','9034893WvsJiC','global','Resource\x20ID','boolean','Return\x20full\x20raw\x20response\x20object','Dataset\x20code\x20(32-char\x20hex\x20UUID)','42435MlabJH','4378380mxjDej','60AgBOKt','params','Write\x20to\x20the\x20global\x20configuration','5033358hAFmxa','verbose','Resource\x20name\x20for\x20lookup','string','5HHJIMO','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)','1007888ckYCvn','386331CZquNY','163736PRrenA','120VfouzM'];a21_0x417a=function(){return _0xd63228;};return a21_0x417a();}export const CODE_FLAG={'name':'code','type':a21_0x156209(0x149),'required':!![],'description':a21_0x156209(0x157),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a21_0x156209(0x14b)}};export const SQLCODE_FLAG={'name':'sqlcode','type':a21_0x156209(0x149),'required':!![],'description':a21_0x156209(0x151),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};export const VERBOSE_FLAG={'name':a21_0x156209(0x147),'type':'boolean','description':a21_0x156209(0x156)};function a21_0x212f(_0x23d117,_0x5ae8b6){_0x23d117=_0x23d117-0x146;const _0x417acf=a21_0x417a();let _0x212fea=_0x417acf[_0x23d117];return _0x212fea;}export const PARAMS_FLAG={'name':a21_0x156209(0x15b),'type':a21_0x156209(0x149),'description':'Parameters\x20as\x20JSON\x20string\x20(e.g.\x20\x27{\x22key\x22:\x22value\x22}\x27)'};export const NAME_FLAG={'name':a21_0x156209(0x150),'type':a21_0x156209(0x149),'description':a21_0x156209(0x148)};export const ID_FLAG={'name':'id','type':'number','required':!![],'description':a21_0x156209(0x154)};
@@ -1 +1 @@
1
- function a22_0x1daa(_0x41aa21,_0x49e8c6){_0x41aa21=_0x41aa21-0x1a4;const _0x5e4cf4=a22_0x5e4c();let _0x1daa47=_0x5e4cf4[_0x41aa21];return _0x1daa47;}(function(_0x106f85,_0x17fd03){const _0x44f3a7=a22_0x1daa,_0x196cd0=_0x106f85();while(!![]){try{const _0x14b270=parseInt(_0x44f3a7(0x1a5))/0x1+parseInt(_0x44f3a7(0x1a7))/0x2+-parseInt(_0x44f3a7(0x1a9))/0x3*(parseInt(_0x44f3a7(0x1ab))/0x4)+parseInt(_0x44f3a7(0x1b4))/0x5+parseInt(_0x44f3a7(0x1a8))/0x6+parseInt(_0x44f3a7(0x1ae))/0x7*(parseInt(_0x44f3a7(0x1b2))/0x8)+-parseInt(_0x44f3a7(0x1aa))/0x9*(parseInt(_0x44f3a7(0x1b1))/0xa);if(_0x14b270===_0x17fd03)break;else _0x196cd0['push'](_0x196cd0['shift']());}catch(_0x46a3a8){_0x196cd0['push'](_0x196cd0['shift']());}}}(a22_0x5e4c,0xb3b0b));import{existsSync,statSync}from'node:fs';function a22_0x5e4c(){const _0x476daa=['153oCBmuF','4VtQxcK','ceil','\x20path\x20is\x20required.','4891026mMAwyA','trim','validation','1777630cOIGBM','16ZtHufl','isFile','4597955pmsDEC','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','size','1166215SNmAEc','toFixed','432640AjHAZH','8124282FAnIWg','3886881ibsuak'];a22_0x5e4c=function(){return _0x476daa;};return a22_0x5e4c();}import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const RUNTIME_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x3fb027){const _0xae14d5=a22_0x1daa;if(_0x3fb027>=BYTES_PER_MB){const _0x577685=Math[_0xae14d5(0x1ac)](_0x3fb027/BYTES_PER_MB*0x64)/0x64;return _0x577685[_0xae14d5(0x1a6)](0x2)+'\x20MB';}return _0x3fb027+'\x20B';}export function requireRuntimeUploadFile(_0x5b5d5e,_0x13c0f9){const _0x2903bd=a22_0x1daa,_0x1af117=_0x5b5d5e[_0x2903bd(0x1af)]();if(!_0x1af117)throw CliErrors[_0x2903bd(0x1b0)](_0x13c0f9+_0x2903bd(0x1ad));if(!existsSync(_0x1af117))throw CliErrors[_0x2903bd(0x1b0)]('File\x20not\x20found:\x20'+_0x1af117);const _0x413771=statSync(_0x1af117);if(!_0x413771[_0x2903bd(0x1b3)]())throw CliErrors['validation']('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x1af117);if(_0x413771[_0x2903bd(0x1a4)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors['validation'](_0x2903bd(0x1b5)+_0x1af117+'\x20('+formatBytes(_0x413771[_0x2903bd(0x1a4)])+')');return{'path':_0x1af117,'size':_0x413771[_0x2903bd(0x1a4)]};}
1
+ (function(_0xb38025,_0x3898c5){const _0x285760=a22_0x2c1f,_0x13adfd=_0xb38025();while(!![]){try{const _0x60f337=-parseInt(_0x285760(0x17d))/0x1+parseInt(_0x285760(0x179))/0x2+parseInt(_0x285760(0x17b))/0x3*(-parseInt(_0x285760(0x182))/0x4)+-parseInt(_0x285760(0x177))/0x5*(-parseInt(_0x285760(0x176))/0x6)+parseInt(_0x285760(0x17f))/0x7*(parseInt(_0x285760(0x180))/0x8)+-parseInt(_0x285760(0x17c))/0x9+parseInt(_0x285760(0x183))/0xa;if(_0x60f337===_0x3898c5)break;else _0x13adfd['push'](_0x13adfd['shift']());}catch(_0x2896b8){_0x13adfd['push'](_0x13adfd['shift']());}}}(a22_0x2097,0x6ceb2));function a22_0x2c1f(_0x5b4220,_0x4f9a08){_0x5b4220=_0x5b4220-0x171;const _0x2097f7=a22_0x2097();let _0x2c1fd6=_0x2097f7[_0x5b4220];return _0x2c1fd6;}function a22_0x2097(){const _0x5a47b5=['trim','toFixed','File\x20is\x20not\x20a\x20regular\x20file:\x20','\x20path\x20is\x20required.','validation','\x20MB','12BwewTN','1823305CkMElk','isFile','1090708sFoaVG','size','2413335nuTRSr','6657183wJzLHF','670116nnUdgo','ceil','177324njnSab','96bnBWCW','File\x20exceeds\x20the\x20runtime\x20upload\x20limit\x20of\x2050\x20MB:\x20','4lXNuJF','10817180ZonxdR'];a22_0x2097=function(){return _0x5a47b5;};return a22_0x2097();}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(_0x3d873b){const _0x34b6ce=a22_0x2c1f;if(_0x3d873b>=BYTES_PER_MB){const _0x1e7dd9=Math[_0x34b6ce(0x17e)](_0x3d873b/BYTES_PER_MB*0x64)/0x64;return _0x1e7dd9[_0x34b6ce(0x171)](0x2)+_0x34b6ce(0x175);}return _0x3d873b+'\x20B';}export function requireRuntimeUploadFile(_0x123747,_0x3b69eb){const _0x58efc6=a22_0x2c1f,_0x534b07=_0x123747[_0x58efc6(0x184)]();if(!_0x534b07)throw CliErrors['validation'](_0x3b69eb+_0x58efc6(0x173));if(!existsSync(_0x534b07))throw CliErrors[_0x58efc6(0x174)]('File\x20not\x20found:\x20'+_0x534b07);const _0x3f3a7b=statSync(_0x534b07);if(!_0x3f3a7b[_0x58efc6(0x178)]())throw CliErrors[_0x58efc6(0x174)](_0x58efc6(0x172)+_0x534b07);if(_0x3f3a7b[_0x58efc6(0x17a)]>RUNTIME_UPLOAD_MAX_BYTES)throw CliErrors['validation'](_0x58efc6(0x181)+_0x534b07+'\x20('+formatBytes(_0x3f3a7b[_0x58efc6(0x17a)])+')');return{'path':_0x534b07,'size':_0x3f3a7b[_0x58efc6(0x17a)]};}
@@ -1 +1 @@
1
- const a23_0x228a97=a23_0x2beb;(function(_0x45a3fe,_0x12c97f){const _0x14023e=a23_0x2beb,_0x5d93ae=_0x45a3fe();while(!![]){try{const _0x249980=parseInt(_0x14023e(0xb0))/0x1+parseInt(_0x14023e(0x95))/0x2*(parseInt(_0x14023e(0x98))/0x3)+-parseInt(_0x14023e(0xa3))/0x4+parseInt(_0x14023e(0x7b))/0x5+parseInt(_0x14023e(0xb2))/0x6*(parseInt(_0x14023e(0x7d))/0x7)+-parseInt(_0x14023e(0xab))/0x8+-parseInt(_0x14023e(0x92))/0x9;if(_0x249980===_0x12c97f)break;else _0x5d93ae['push'](_0x5d93ae['shift']());}catch(_0x31d408){_0x5d93ae['push'](_0x5d93ae['shift']());}}}(a23_0x5171,0x18c63));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';import{configInitDefinition}from'../../commands/config/init.js';import{GLOBAL_SCOPE_FLAG}from'../../commands/common/flags.js';function a23_0x2beb(_0x1f74c4,_0x1e5e0e){_0x1f74c4=_0x1f74c4-0x70;const _0x517191=a23_0x5171();let _0x2beb87=_0x517191[_0x1f74c4];return _0x2beb87;}import{maskCliAccessKey,redactCliConfigCredentials,redactCliConfigValue}from'../../utils/access-key-redaction.js';function a23_0x5171(){const _0x5f1c64=['Key\x20not\x20found:\x20','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','263250UAxVpl','Deleted\x20`','49WLKqsv','object','write','Changes\x20Lovrabet\x20CLI\x20configuration.\x20Later\x20commands\x20may\x20use\x20a\x20different\x20app,\x20environment,\x20or\x20output\x20behavior.','pretty','\x20\x20global:\x20\x20','isArray','\x20config\x20set\x20<key>\x20<value>\x20[--global]','\x22\x20is\x20protected\x20and\x20cannot\x20be\x20changed\x20via\x20config\x20commands.','Key\x20already\x20absent:\x20','set','Invalid\x20locale\x20value.','\x22\x20is\x20not\x20settable.','apps','read','keys','\x20(global)','delete','split','args','trim','1242666kUCRmD','project-or-global-explicit','Missing\x20key\x20or\x20value.','327298bTpzLs','(none)','format','3LbRllx','list','\x20\x20project:\x20','\x20config\x20get\x20<key>','length','get','validation','Value\x20to\x20assign','appcode','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','key','651700kuxGUW','alias','Invalid\x20value\x20for\x20\x22','config','pageSize','log','accessKey','`\x20=\x20\x22','79608OjUFBu','join',';\x20apps.<alias>.appcode','Deletes\x20a\x20Lovrabet\x20CLI\x20config\x20key.\x20Later\x20commands\x20will\x20fall\x20back\x20to\x20another\x20config\x20layer\x20or\x20the\x20default.','Set\x20`','161399TlSBCT','../../context.js','29766BTEhjF','includes','Usage:\x20','global','value','stringify','bool','Top-level\x20key\x20\x22','locale','Missing\x20key\x20argument.'];a23_0x5171=function(){return _0x5f1c64;};return a23_0x5171();}function parseAliasAppcodeSetKey(_0x221800){const _0x47fc10=a23_0x2beb,_0x4bb4f1=_0x221800[_0x47fc10(0x8f)]('.');if(_0x4bb4f1[_0x47fc10(0x9c)]!==0x3||_0x4bb4f1[0x0]!==_0x47fc10(0x8a)||_0x4bb4f1[0x2]!==_0x47fc10(0xa0))return undefined;const _0xb99b0e=_0x4bb4f1[0x1]?.[_0x47fc10(0x91)]();return _0xb99b0e?_0xb99b0e:undefined;}function parseAliasDeleteKey(_0x2f5db7){const _0x130515=a23_0x2beb,_0x4fa822=_0x2f5db7[_0x130515(0x8f)]('.');if(_0x4fa822[_0x130515(0x9c)]===0x2&&_0x4fa822[0x0]===_0x130515(0x8a)){const _0x203aa9=_0x4fa822[0x1]?.[_0x130515(0x91)]();return _0x203aa9?{'alias':_0x203aa9}:undefined;}if(_0x4fa822[_0x130515(0x9c)]===0x3&&_0x4fa822[0x0]===_0x130515(0x8a)&&_0x4fa822[0x2]==='appcode'){const _0x206a72=_0x4fa822[0x1]?.['trim']();return _0x206a72?{'alias':_0x206a72,'field':_0x130515(0xa0)}:undefined;}return undefined;}function setLocalAppAlias(_0x2f0474,_0x2936f3,_0x486d8f){const _0x22d96f=a23_0x2beb,_0x528069=_0x2f0474[_0x22d96f(0x8a)]&&typeof _0x2f0474['apps']===_0x22d96f(0x7e)&&!Array['isArray'](_0x2f0474[_0x22d96f(0x8a)])?_0x2f0474[_0x22d96f(0x8a)]:{},_0x326c90=_0x528069[_0x2936f3]&&typeof _0x528069[_0x2936f3]===_0x22d96f(0x7e)&&!Array[_0x22d96f(0x83)](_0x528069[_0x2936f3])?_0x528069[_0x2936f3]:{};_0x326c90[_0x22d96f(0xa0)]=_0x486d8f,_0x528069[_0x2936f3]=_0x326c90,_0x2f0474[_0x22d96f(0x8a)]=_0x528069;}function deleteLocalAppAlias(_0x3a5ca6,_0x18b117){const _0x48a8d8=a23_0x2beb;if(!_0x3a5ca6[_0x48a8d8(0x8a)]||typeof _0x3a5ca6['apps']!==_0x48a8d8(0x7e)||Array[_0x48a8d8(0x83)](_0x3a5ca6['apps']))return![];const _0x4a4060=_0x3a5ca6[_0x48a8d8(0x8a)],_0x812ada=_0x4a4060[_0x18b117[_0x48a8d8(0xa4)]];if(!_0x812ada||typeof _0x812ada!==_0x48a8d8(0x7e)||Array['isArray'](_0x812ada))return![];if(!_0x18b117['field'])return delete _0x4a4060[_0x18b117[_0x48a8d8(0xa4)]],!![];if(!(_0x18b117['field']in _0x812ada))return![];return delete _0x812ada[_0x18b117['field']],Object[_0x48a8d8(0x8c)](_0x812ada)[_0x48a8d8(0x9c)]===0x0&&delete _0x4a4060[_0x18b117[_0x48a8d8(0xa4)]],!![];}const listDef={'service':a23_0x228a97(0xa6),'command':a23_0x228a97(0x99),'description':'List\x20current\x20config','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x20b2cd){const _0x141a40=a23_0x228a97,{buildConfigFromFlags:_0x5c2303}=await import(_0x141a40(0xb1)),_0x274917=_0x5c2303({}),_0x39c662=redactCliConfigCredentials(_0x274917['raw']),_0x3c2fa2=getProjectConfigPath(),_0x410ee8=resolveWriteConfigPath(_0x141a40(0x72));if(_0x20b2cd[_0x141a40(0x97)]===_0x141a40(0x81))return{'ok':!![],'message':_0x141a40(0x7a)+(JSON[_0x141a40(0x74)](_0x39c662,null,0x2)+'\x0a\x0a')+'Config\x20files:\x0a'+(_0x141a40(0x9a)+(_0x3c2fa2??_0x141a40(0x96))+'\x0a')+(_0x141a40(0x82)+_0x410ee8)};return{'ok':!![],'data':{'effective':_0x39c662,'configFiles':{'project':_0x3c2fa2??null,'global':_0x410ee8}}};}},getDef={'service':a23_0x228a97(0xa6),'command':a23_0x228a97(0x9d),'description':'Get\x20a\x20config\x20value','risk':a23_0x228a97(0x8b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a23_0x228a97(0xa2),'description':a23_0x228a97(0xa1),'required':!![]}],'flags':[],async 'execute'(_0x24395d){const _0x231a9f=a23_0x228a97,_0x48fd29=_0x24395d[_0x231a9f(0x90)][0x0];if(!_0x48fd29)throw CliErrors[_0x231a9f(0x9e)]('Missing\x20key\x20argument.','Usage:\x20'+CLI_BIN_NAME+_0x231a9f(0x9b));const {buildConfigFromFlags:_0x135f52}=await import('../../context.js'),{raw:_0x37ec99}=_0x135f52({});if(_0x48fd29[_0x231a9f(0x70)]('.')){const _0x305b3f=_0x48fd29['split']('.');let _0x2bf9ab=_0x37ec99;for(const _0xa3e44c of _0x305b3f){if(_0x2bf9ab==null||typeof _0x2bf9ab!=='object')throw CliErrors[_0x231a9f(0x9e)](_0x231a9f(0x79)+_0x48fd29);_0x2bf9ab=_0x2bf9ab[_0xa3e44c];}if(_0x2bf9ab===undefined)throw CliErrors[_0x231a9f(0x9e)](_0x231a9f(0x79)+_0x48fd29);const _0x5a8cd9=redactCliConfigValue(_0x48fd29,_0x2bf9ab);return console['log'](typeof _0x5a8cd9===_0x231a9f(0x7e)?JSON[_0x231a9f(0x74)](_0x5a8cd9,null,0x2):String(_0x5a8cd9)),{'ok':!![]};}const _0x3a4cdd=_0x37ec99[_0x48fd29];if(_0x3a4cdd===undefined)throw CliErrors['validation']('Key\x20not\x20found:\x20'+_0x48fd29);const _0x4cb963=redactCliConfigValue(_0x48fd29,_0x3a4cdd);return console[_0x231a9f(0xa8)](typeof _0x4cb963===_0x231a9f(0x7e)?JSON[_0x231a9f(0x74)](_0x4cb963,null,0x2):String(_0x4cb963)),{'ok':!![]};}},setDef={'service':a23_0x228a97(0xa6),'command':a23_0x228a97(0x87),'description':'Set\x20a\x20configuration\x20value','risk':a23_0x228a97(0x7f),'confirmationDescription':a23_0x228a97(0x80),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'key','description':getConfigCommandKeyDescription(),'required':!![]},{'name':a23_0x228a97(0x73),'description':a23_0x228a97(0x9f),'required':!![]}],'flags':[GLOBAL_SCOPE_FLAG],async 'execute'(_0x481d37){const _0x5e14ec=a23_0x228a97,_0x46a3d2=_0x481d37['args'][0x0],_0x5841b2=_0x481d37[_0x5e14ec(0x90)][0x1];if(!_0x46a3d2||_0x5841b2===undefined)throw CliErrors[_0x5e14ec(0x9e)](_0x5e14ec(0x94),_0x5e14ec(0x71)+CLI_BIN_NAME+_0x5e14ec(0x84));if(ENUM_KEYS[_0x46a3d2]&&!ENUM_KEYS[_0x46a3d2][_0x5e14ec(0x70)](_0x5841b2))throw CliErrors[_0x5e14ec(0x9e)](_0x5e14ec(0xa5)+_0x46a3d2+'\x22.\x20Allowed:\x20'+ENUM_KEYS[_0x46a3d2][_0x5e14ec(0xac)](',\x20'));if(isCliProtectedConfigKey(_0x46a3d2))throw CliErrors['validation']('\x22'+_0x46a3d2+_0x5e14ec(0x85));if(_0x46a3d2===_0x5e14ec(0xa7)){const _0x4c2565=Number(_0x5841b2);if(isNaN(_0x4c2565)||_0x4c2565<=0x0)throw CliErrors['validation']('pageSize\x20must\x20be\x20a\x20positive\x20number');}const _0x3ac9a4=resolveWriteScope({'explicitGlobal':_0x481d37[_0x5e14ec(0x75)](_0x5e14ec(0x72)),'policy':'project-or-global-explicit'}),_0x5380f3=toScopeFlags(_0x3ac9a4),_0x5ec16b=readScopedConfig(_0x5380f3),_0x57ad3f=parseAliasAppcodeSetKey(_0x46a3d2);if(!_0x57ad3f&&!isTopLevelConfigKey(_0x46a3d2))throw CliErrors['validation'](_0x5e14ec(0x76)+_0x46a3d2+_0x5e14ec(0x89),'Settable\x20keys:\x20'+getTopLevelConfigKeySummary()+_0x5e14ec(0xad));if(_0x57ad3f)setLocalAppAlias(_0x5ec16b,_0x57ad3f,_0x5841b2);else{if(_0x46a3d2===_0x5e14ec(0x77)){const _0x3a7466=normalizeLocale(_0x5841b2);if(!_0x3a7466)throw CliErrors['validation'](_0x5e14ec(0x88),'Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US');_0x5ec16b['locale']=_0x3a7466;}else _0x5ec16b[_0x46a3d2]=_0x46a3d2===_0x5e14ec(0xa7)?Number(_0x5841b2):DOMAIN_CONFIG_FIELDS[_0x5e14ec(0x70)](_0x46a3d2)?normalizeDomainOrigin(_0x46a3d2,_0x5841b2):_0x5841b2;}const _0x286c0f=_0x46a3d2===_0x5e14ec(0xa9)?maskCliAccessKey(_0x5841b2):!_0x57ad3f&&_0x46a3d2===_0x5e14ec(0x77)?String(_0x5ec16b[_0x5e14ec(0x77)]):_0x5841b2;return console[_0x5e14ec(0xa8)](_0x5e14ec(0xaf)+_0x46a3d2+_0x5e14ec(0xaa)+_0x286c0f+'\x22'+(_0x3ac9a4==='global'?_0x5e14ec(0x8d):'')),writeScopedConfig(_0x5ec16b,_0x5380f3),{'ok':!![]};}},deleteDef={'service':'config','command':a23_0x228a97(0x8e),'description':'Delete\x20a\x20configuration\x20value','risk':'write','confirmationDescription':a23_0x228a97(0xae),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a23_0x228a97(0xa2),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_SCOPE_FLAG],async 'execute'(_0x51f6b2){const _0x39ee5f=a23_0x228a97,_0xf8203=_0x51f6b2[_0x39ee5f(0x90)][0x0];if(!_0xf8203)throw CliErrors[_0x39ee5f(0x9e)](_0x39ee5f(0x78),_0x39ee5f(0x71)+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');if(isCliProtectedConfigKey(_0xf8203))throw CliErrors['validation']('\x22'+_0xf8203+'\x22\x20is\x20protected\x20and\x20cannot\x20be\x20changed\x20via\x20config\x20commands.');const _0x45b9cf=resolveWriteScope({'explicitGlobal':_0x51f6b2[_0x39ee5f(0x75)]('global'),'policy':_0x39ee5f(0x93)}),_0x2ae7d1=toScopeFlags(_0x45b9cf),_0xf3d30a=readScopedConfig(_0x2ae7d1),_0x5f27d6=parseAliasDeleteKey(_0xf8203);if(_0x5f27d6){if(!deleteLocalAppAlias(_0xf3d30a,_0x5f27d6))return console['log'](_0x39ee5f(0x86)+_0xf8203+(_0x45b9cf==='global'?'\x20(global)':'')),{'ok':!![],'data':{'key':_0xf8203,'scope':_0x45b9cf,'changed':![]}};return console[_0x39ee5f(0xa8)](_0x39ee5f(0x7c)+_0xf8203+'`'+(_0x45b9cf===_0x39ee5f(0x72)?'\x20(global)':'')),writeScopedConfig(_0xf3d30a,_0x2ae7d1),{'ok':!![],'data':{'key':_0xf8203,'scope':_0x45b9cf,'changed':!![]}};}if(_0xf3d30a[_0xf8203]===undefined)return console[_0x39ee5f(0xa8)](_0x39ee5f(0x86)+_0xf8203+(_0x45b9cf===_0x39ee5f(0x72)?_0x39ee5f(0x8d):'')),{'ok':!![],'data':{'key':_0xf8203,'scope':_0x45b9cf,'changed':![]}};return delete _0xf3d30a[_0xf8203],console[_0x39ee5f(0xa8)](_0x39ee5f(0x7c)+_0xf8203+'`'+(_0x45b9cf===_0x39ee5f(0x72)?_0x39ee5f(0x8d):'')),writeScopedConfig(_0xf3d30a,_0x2ae7d1),{'ok':!![],'data':{'key':_0xf8203,'scope':_0x45b9cf,'changed':!![]}};}};export const configDefinitions=[configInitDefinition,listDef,getDef,setDef,deleteDef];
1
+ const a23_0x419fdd=a23_0x2610;(function(_0x52e7ef,_0x28bfe2){const _0x4c3bc1=a23_0x2610,_0x5b42f6=_0x52e7ef();while(!![]){try{const _0x4030ba=-parseInt(_0x4c3bc1(0xd9))/0x1+-parseInt(_0x4c3bc1(0xfe))/0x2+parseInt(_0x4c3bc1(0x102))/0x3*(-parseInt(_0x4c3bc1(0xde))/0x4)+-parseInt(_0x4c3bc1(0xc5))/0x5+-parseInt(_0x4c3bc1(0xd4))/0x6+-parseInt(_0x4c3bc1(0x100))/0x7*(-parseInt(_0x4c3bc1(0xdd))/0x8)+-parseInt(_0x4c3bc1(0xf5))/0x9*(-parseInt(_0x4c3bc1(0xd6))/0xa);if(_0x4030ba===_0x28bfe2)break;else _0x5b42f6['push'](_0x5b42f6['shift']());}catch(_0x412c04){_0x5b42f6['push'](_0x5b42f6['shift']());}}}(a23_0x1f37,0x52e97));function a23_0x1f37(){const _0x75a1a8=['36379fxQZPO','config','670062FCncPS','\x20config\x20get\x20<key>','trim','object','validation','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','\x22.\x20Allowed:\x20','Invalid\x20value\x20for\x20\x22','locale','689400ycxvVX','apps','bool','Set\x20a\x20configuration\x20value','#\x20Effective\x20config\x20(merged\x20global\x20+\x20project)\x0a\x0a','\x20config\x20delete\x20<key>\x20[--global]','appcode','Top-level\x20key\x20\x22','\x20\x20project:\x20','Missing\x20key\x20argument.','Key\x20already\x20absent:\x20','Delete\x20a\x20configuration\x20value','Missing\x20key\x20or\x20value.','join','\x20\x20global:\x20\x20','2240124lXYMyG','pageSize','9067000uyzsuz','raw','Changes\x20Lovrabet\x20CLI\x20configuration.\x20Later\x20commands\x20may\x20use\x20a\x20different\x20app,\x20environment,\x20or\x20output\x20behavior.','135968czNLso','alias','format','value','1040BSrRqo','8GzKBdx','Deleted\x20`','Deletes\x20a\x20Lovrabet\x20CLI\x20config\x20key.\x20Later\x20commands\x20will\x20fall\x20back\x20to\x20another\x20config\x20layer\x20or\x20the\x20default.','project-or-global-explicit','field','get',';\x20apps.<alias>.appcode','isArray','global','split','pageSize\x20must\x20be\x20a\x20positive\x20number','set','key','(none)','keys','\x20config\x20set\x20<key>\x20<value>\x20[--global]','Set\x20`','Key\x20not\x20found:\x20','length','\x20(global)','Usage:\x20','args','Value\x20to\x20assign','9oKAkoe','Config\x20key\x20(supports\x20dot\x20notation\x20for\x20reads\x20only)','List\x20current\x20config','pretty','../../context.js','\x22\x20is\x20protected\x20and\x20cannot\x20be\x20changed\x20via\x20config\x20commands.','Get\x20a\x20config\x20value','log','list','297586wWsAiW','stringify'];a23_0x1f37=function(){return _0x75a1a8;};return a23_0x1f37();}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';function a23_0x2610(_0x3cef18,_0x3f3474){_0x3cef18=_0x3cef18-0xc2;const _0x1f373d=a23_0x1f37();let _0x26106a=_0x1f373d[_0x3cef18];return _0x26106a;}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(_0x23d25f){const _0x1bbdcd=a23_0x2610,_0x58f824=_0x23d25f['split']('.');if(_0x58f824['length']!==0x3||_0x58f824[0x0]!==_0x1bbdcd(0xc6)||_0x58f824[0x2]!==_0x1bbdcd(0xcb))return undefined;const _0x9ac501=_0x58f824[0x1]?.[_0x1bbdcd(0x104)]();return _0x9ac501?_0x9ac501:undefined;}function parseAliasDeleteKey(_0x46afe2){const _0x1ea486=a23_0x2610,_0x342496=_0x46afe2[_0x1ea486(0xe7)]('.');if(_0x342496[_0x1ea486(0xf0)]===0x2&&_0x342496[0x0]===_0x1ea486(0xc6)){const _0x1253eb=_0x342496[0x1]?.[_0x1ea486(0x104)]();return _0x1253eb?{'alias':_0x1253eb}:undefined;}if(_0x342496[_0x1ea486(0xf0)]===0x3&&_0x342496[0x0]===_0x1ea486(0xc6)&&_0x342496[0x2]===_0x1ea486(0xcb)){const _0x332200=_0x342496[0x1]?.[_0x1ea486(0x104)]();return _0x332200?{'alias':_0x332200,'field':'appcode'}:undefined;}return undefined;}function setLocalAppAlias(_0x12c92d,_0x3c7ed6,_0x20c26a){const _0x1947d9=a23_0x2610,_0x145312=_0x12c92d[_0x1947d9(0xc6)]&&typeof _0x12c92d[_0x1947d9(0xc6)]===_0x1947d9(0x105)&&!Array[_0x1947d9(0xe5)](_0x12c92d[_0x1947d9(0xc6)])?_0x12c92d[_0x1947d9(0xc6)]:{},_0x641730=_0x145312[_0x3c7ed6]&&typeof _0x145312[_0x3c7ed6]===_0x1947d9(0x105)&&!Array[_0x1947d9(0xe5)](_0x145312[_0x3c7ed6])?_0x145312[_0x3c7ed6]:{};_0x641730['appcode']=_0x20c26a,_0x145312[_0x3c7ed6]=_0x641730,_0x12c92d[_0x1947d9(0xc6)]=_0x145312;}function deleteLocalAppAlias(_0x280152,_0x533e0a){const _0x125217=a23_0x2610;if(!_0x280152[_0x125217(0xc6)]||typeof _0x280152[_0x125217(0xc6)]!==_0x125217(0x105)||Array[_0x125217(0xe5)](_0x280152[_0x125217(0xc6)]))return![];const _0x3a1c91=_0x280152[_0x125217(0xc6)],_0x32e729=_0x3a1c91[_0x533e0a['alias']];if(!_0x32e729||typeof _0x32e729!==_0x125217(0x105)||Array['isArray'](_0x32e729))return![];if(!_0x533e0a[_0x125217(0xe2)])return delete _0x3a1c91[_0x533e0a[_0x125217(0xda)]],!![];if(!(_0x533e0a[_0x125217(0xe2)]in _0x32e729))return![];return delete _0x32e729[_0x533e0a[_0x125217(0xe2)]],Object[_0x125217(0xec)](_0x32e729)[_0x125217(0xf0)]===0x0&&delete _0x3a1c91[_0x533e0a[_0x125217(0xda)]],!![];}const listDef={'service':'config','command':a23_0x419fdd(0xfd),'description':a23_0x419fdd(0xf7),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':!![],'flags':[],async 'execute'(_0x1191c5){const _0x5de4fe=a23_0x419fdd,{buildConfigFromFlags:_0x255bfb}=await import(_0x5de4fe(0xf9)),_0x454b25=_0x255bfb({}),_0x300f14=redactCliConfigCredentials(_0x454b25[_0x5de4fe(0xd7)]),_0x2ffee5=getProjectConfigPath(),_0x2299a9=resolveWriteConfigPath(_0x5de4fe(0xe6));if(_0x1191c5[_0x5de4fe(0xdb)]===_0x5de4fe(0xf8))return{'ok':!![],'message':_0x5de4fe(0xc9)+(JSON[_0x5de4fe(0xff)](_0x300f14,null,0x2)+'\x0a\x0a')+'Config\x20files:\x0a'+(_0x5de4fe(0xcd)+(_0x2ffee5??_0x5de4fe(0xeb))+'\x0a')+(_0x5de4fe(0xd3)+_0x2299a9)};return{'ok':!![],'data':{'effective':_0x300f14,'configFiles':{'project':_0x2ffee5??null,'global':_0x2299a9}}};}},getDef={'service':a23_0x419fdd(0x101),'command':a23_0x419fdd(0xe3),'description':a23_0x419fdd(0xfb),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a23_0x419fdd(0xea),'description':a23_0x419fdd(0xf6),'required':!![]}],'flags':[],async 'execute'(_0x5ae078){const _0x1cffd5=a23_0x419fdd,_0x167194=_0x5ae078['args'][0x0];if(!_0x167194)throw CliErrors[_0x1cffd5(0x106)](_0x1cffd5(0xce),_0x1cffd5(0xf2)+CLI_BIN_NAME+_0x1cffd5(0x103));const {buildConfigFromFlags:_0xa5de32}=await import(_0x1cffd5(0xf9)),{raw:_0xc74727}=_0xa5de32({});if(_0x167194['includes']('.')){const _0x25238a=_0x167194[_0x1cffd5(0xe7)]('.');let _0x202918=_0xc74727;for(const _0x33fd42 of _0x25238a){if(_0x202918==null||typeof _0x202918!==_0x1cffd5(0x105))throw CliErrors[_0x1cffd5(0x106)](_0x1cffd5(0xef)+_0x167194);_0x202918=_0x202918[_0x33fd42];}if(_0x202918===undefined)throw CliErrors[_0x1cffd5(0x106)](_0x1cffd5(0xef)+_0x167194);const _0x264489=redactCliConfigValue(_0x167194,_0x202918);return console[_0x1cffd5(0xfc)](typeof _0x264489==='object'?JSON[_0x1cffd5(0xff)](_0x264489,null,0x2):String(_0x264489)),{'ok':!![]};}const _0x56761a=_0xc74727[_0x167194];if(_0x56761a===undefined)throw CliErrors[_0x1cffd5(0x106)](_0x1cffd5(0xef)+_0x167194);const _0x137281=redactCliConfigValue(_0x167194,_0x56761a);return console['log'](typeof _0x137281===_0x1cffd5(0x105)?JSON[_0x1cffd5(0xff)](_0x137281,null,0x2):String(_0x137281)),{'ok':!![]};}},setDef={'service':a23_0x419fdd(0x101),'command':a23_0x419fdd(0xe9),'description':a23_0x419fdd(0xc8),'risk':'write','confirmationDescription':a23_0x419fdd(0xd8),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a23_0x419fdd(0xea),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a23_0x419fdd(0xdc),'description':a23_0x419fdd(0xf4),'required':!![]}],'flags':[GLOBAL_SCOPE_FLAG],async 'execute'(_0x27dddb){const _0x409e8c=a23_0x419fdd,_0x4ce374=_0x27dddb['args'][0x0],_0x766ec8=_0x27dddb[_0x409e8c(0xf3)][0x1];if(!_0x4ce374||_0x766ec8===undefined)throw CliErrors[_0x409e8c(0x106)](_0x409e8c(0xd1),_0x409e8c(0xf2)+CLI_BIN_NAME+_0x409e8c(0xed));if(ENUM_KEYS[_0x4ce374]&&!ENUM_KEYS[_0x4ce374]['includes'](_0x766ec8))throw CliErrors[_0x409e8c(0x106)](_0x409e8c(0xc3)+_0x4ce374+_0x409e8c(0xc2)+ENUM_KEYS[_0x4ce374][_0x409e8c(0xd2)](',\x20'));if(isCliProtectedConfigKey(_0x4ce374))throw CliErrors['validation']('\x22'+_0x4ce374+_0x409e8c(0xfa));if(_0x4ce374===_0x409e8c(0xd5)){const _0x15c232=Number(_0x766ec8);if(isNaN(_0x15c232)||_0x15c232<=0x0)throw CliErrors['validation'](_0x409e8c(0xe8));}const _0x1d742e=resolveWriteScope({'explicitGlobal':_0x27dddb[_0x409e8c(0xc7)](_0x409e8c(0xe6)),'policy':_0x409e8c(0xe1)}),_0x3731bc=toScopeFlags(_0x1d742e),_0x4d5f2b=readScopedConfig(_0x3731bc),_0x1b9cde=parseAliasAppcodeSetKey(_0x4ce374);if(!_0x1b9cde&&!isTopLevelConfigKey(_0x4ce374))throw CliErrors[_0x409e8c(0x106)](_0x409e8c(0xcc)+_0x4ce374+'\x22\x20is\x20not\x20settable.','Settable\x20keys:\x20'+getTopLevelConfigKeySummary()+_0x409e8c(0xe4));if(_0x1b9cde)setLocalAppAlias(_0x4d5f2b,_0x1b9cde,_0x766ec8);else{if(_0x4ce374===_0x409e8c(0xc4)){const _0x3e079c=normalizeLocale(_0x766ec8);if(!_0x3e079c)throw CliErrors['validation']('Invalid\x20locale\x20value.',_0x409e8c(0x107));_0x4d5f2b[_0x409e8c(0xc4)]=_0x3e079c;}else _0x4d5f2b[_0x4ce374]=_0x4ce374===_0x409e8c(0xd5)?Number(_0x766ec8):DOMAIN_CONFIG_FIELDS['includes'](_0x4ce374)?normalizeDomainOrigin(_0x4ce374,_0x766ec8):_0x766ec8;}const _0x5139c0=_0x4ce374==='accessKey'?maskCliAccessKey(_0x766ec8):!_0x1b9cde&&_0x4ce374===_0x409e8c(0xc4)?String(_0x4d5f2b[_0x409e8c(0xc4)]):_0x766ec8;return console['log'](_0x409e8c(0xee)+_0x4ce374+'`\x20=\x20\x22'+_0x5139c0+'\x22'+(_0x1d742e===_0x409e8c(0xe6)?'\x20(global)':'')),writeScopedConfig(_0x4d5f2b,_0x3731bc),{'ok':!![]};}},deleteDef={'service':a23_0x419fdd(0x101),'command':'delete','description':a23_0x419fdd(0xd0),'risk':'write','confirmationDescription':a23_0x419fdd(0xe0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':a23_0x419fdd(0xea),'description':getConfigCommandKeyDescription(),'required':!![]}],'flags':[GLOBAL_SCOPE_FLAG],async 'execute'(_0x38442b){const _0x489400=a23_0x419fdd,_0x1ff2ca=_0x38442b['args'][0x0];if(!_0x1ff2ca)throw CliErrors[_0x489400(0x106)](_0x489400(0xce),_0x489400(0xf2)+CLI_BIN_NAME+_0x489400(0xca));if(isCliProtectedConfigKey(_0x1ff2ca))throw CliErrors[_0x489400(0x106)]('\x22'+_0x1ff2ca+_0x489400(0xfa));const _0x49349b=resolveWriteScope({'explicitGlobal':_0x38442b[_0x489400(0xc7)](_0x489400(0xe6)),'policy':_0x489400(0xe1)}),_0x2724aa=toScopeFlags(_0x49349b),_0x288466=readScopedConfig(_0x2724aa),_0x566eaa=parseAliasDeleteKey(_0x1ff2ca);if(_0x566eaa){if(!deleteLocalAppAlias(_0x288466,_0x566eaa))return console['log']('Key\x20already\x20absent:\x20'+_0x1ff2ca+(_0x49349b===_0x489400(0xe6)?'\x20(global)':'')),{'ok':!![],'data':{'key':_0x1ff2ca,'scope':_0x49349b,'changed':![]}};return console[_0x489400(0xfc)](_0x489400(0xdf)+_0x1ff2ca+'`'+(_0x49349b==='global'?_0x489400(0xf1):'')),writeScopedConfig(_0x288466,_0x2724aa),{'ok':!![],'data':{'key':_0x1ff2ca,'scope':_0x49349b,'changed':!![]}};}if(_0x288466[_0x1ff2ca]===undefined)return console[_0x489400(0xfc)](_0x489400(0xcf)+_0x1ff2ca+(_0x49349b===_0x489400(0xe6)?'\x20(global)':'')),{'ok':!![],'data':{'key':_0x1ff2ca,'scope':_0x49349b,'changed':![]}};return delete _0x288466[_0x1ff2ca],console[_0x489400(0xfc)](_0x489400(0xdf)+_0x1ff2ca+'`'+(_0x49349b==='global'?_0x489400(0xf1):'')),writeScopedConfig(_0x288466,_0x2724aa),{'ok':!![],'data':{'key':_0x1ff2ca,'scope':_0x49349b,'changed':!![]}};}};export const configDefinitions=[configInitDefinition,listDef,getDef,setDef,deleteDef];
@@ -1 +1 @@
1
- const a24_0x3f7cb3=a24_0x40fb;(function(_0x4765ac,_0x3e0110){const _0x3da8e7=a24_0x40fb,_0x4ca70f=_0x4765ac();while(!![]){try{const _0x3a1a43=-parseInt(_0x3da8e7(0x91))/0x1*(-parseInt(_0x3da8e7(0x88))/0x2)+-parseInt(_0x3da8e7(0x75))/0x3*(parseInt(_0x3da8e7(0x79))/0x4)+-parseInt(_0x3da8e7(0x80))/0x5*(-parseInt(_0x3da8e7(0x8d))/0x6)+parseInt(_0x3da8e7(0x89))/0x7*(parseInt(_0x3da8e7(0x7f))/0x8)+-parseInt(_0x3da8e7(0x84))/0x9*(-parseInt(_0x3da8e7(0x90))/0xa)+parseInt(_0x3da8e7(0x93))/0xb+parseInt(_0x3da8e7(0x6f))/0xc*(-parseInt(_0x3da8e7(0x74))/0xd);if(_0x3a1a43===_0x3e0110)break;else _0x4ca70f['push'](_0x4ca70f['shift']());}catch(_0x2e5a44){_0x4ca70f['push'](_0x4ca70f['shift']());}}}(a24_0x5331,0x81993));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';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_0x3f7cb3(0x92),'type':a24_0x3f7cb3(0x69),'description':a24_0x3f7cb3(0x72)},{'name':a24_0x3f7cb3(0x7e),'type':a24_0x3f7cb3(0x69),'description':'Custom\x20User\x20HTTPS\x20origin'},{'name':a24_0x3f7cb3(0x71),'type':a24_0x3f7cb3(0x69),'description':a24_0x3f7cb3(0x7d)},{'name':a24_0x3f7cb3(0x8f),'type':a24_0x3f7cb3(0x69),'description':'Custom\x20Runtime\x20HTTPS\x20origin'},{'name':a24_0x3f7cb3(0x68),'type':'string','description':a24_0x3f7cb3(0x8a)},{'name':a24_0x3f7cb3(0x8b),'type':a24_0x3f7cb3(0x69),'description':a24_0x3f7cb3(0x67)}];function a24_0x5331(){const _0x2fcd8e=['8FeSaPS','2330iFoiZr','routing','ExitPromptError','Lovrabet\x20connection\x20configured\x20for\x20region:\x20','94716OxYQrn','validation','region','Initialize\x20the\x20global\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','1870366jvIkkt','888951iUYblf','Custom\x20SkillHub\x20HTTPS\x20origin','kb-service-domain','label','5010LnwBqJ','nonInteractive','runtime-domain','520QSTHwI','1FiGJDS','domain-config','10425140EmBJfK','map','Select\x20Lovrabet\x20region','Custom\x20KB\x20Service\x20HTTPS\x20origin','skill-domain','string','keys','mode','\x22\x20is\x20not\x20currently\x20available.','Official\x20Lovrabet\x20region:\x20','enterprise-v1','59700dWTFRO','cancelled','api-domain','Independent-deployment\x20Domain\x20JSON\x20file','Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.','5759ZBfuvh','51JQFTrg','Updates\x20the\x20global\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domain\x20configuration.\x20AccessKey,\x20output\x20format,\x20and\x20app\x20bindings\x20stay\x20unchanged.','domains','official','49768UZneij','str','manifestDomains','join','Custom\x20platform\x20API\x20HTTPS\x20origin','user-domain'];a24_0x5331=function(){return _0x2fcd8e;};return a24_0x5331();}export const configInitFlags=[{'name':a24_0x3f7cb3(0x86),'type':'string','description':a24_0x3f7cb3(0x6d)+ENABLED_LOVRABET_REGION_VALUES[a24_0x3f7cb3(0x7c)](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},...domainFlags];async function resolveRegion(_0x487f02){const _0x23e5a0=a24_0x3f7cb3,_0x562513=_0x487f02[_0x23e5a0(0x7a)](_0x23e5a0(0x86));if(_0x562513){if(!isEnabledLovrabetRegion(_0x562513))throw CliErrors[_0x23e5a0(0x85)]('Region\x20\x22'+_0x562513+_0x23e5a0(0x6c),'Available\x20regions:\x20'+ENABLED_LOVRABET_REGION_VALUES[_0x23e5a0(0x7c)](',\x20'));return _0x562513;}if(_0x487f02[_0x23e5a0(0x8e)])return DEFAULT_LOVRABET_REGION;try{return await select({'message':_0x23e5a0(0x66),'default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES[_0x23e5a0(0x94)](_0xc7be89=>({'name':OFFICIAL_ROUTING_PROFILES[_0xc7be89][_0x23e5a0(0x8c)]+'\x20('+_0xc7be89+')','value':_0xc7be89}))});}catch(_0x379850){if(_0x379850?.['name']===_0x23e5a0(0x82))throw CliErrors[_0x23e5a0(0x70)]();throw _0x379850;}}export async function executeConfigInit(_0x40bd58){const _0x1f074a=a24_0x3f7cb3,_0x20c0e2=resolveDomainConfigInput(_0x40bd58),_0x23dc22=_0x20c0e2[_0x1f074a(0x77)],_0x3b92cb=Object[_0x1f074a(0x6a)](_0x23dc22)['length']>0x0;if(_0x3b92cb&&_0x40bd58[_0x1f074a(0x7a)](_0x1f074a(0x86)))throw CliErrors['validation'](_0x1f074a(0x73));const _0x52d240={'global':!![]},_0x3ff828=readScopedConfig(_0x52d240);for(const _0xefd3a7 of DOMAIN_CONFIG_FIELDS)delete _0x3ff828[_0xefd3a7];for(const _0x29c227 of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x3ff828[_0x29c227];delete _0x3ff828['routing'];let _0x1eb29c=null;if(_0x3b92cb)delete _0x3ff828[_0x1f074a(0x86)],_0x20c0e2['mode']===_0x1f074a(0x6e)?_0x3ff828[_0x1f074a(0x81)]={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0x20c0e2[_0x1f074a(0x7b)]}:Object['assign'](_0x3ff828,_0x23dc22);else{_0x1eb29c=await resolveRegion(_0x40bd58);if(_0x1eb29c===DEFAULT_LOVRABET_REGION)delete _0x3ff828['region'];else _0x3ff828['region']=_0x1eb29c;}return writeScopedConfig(_0x3ff828,_0x52d240),{'ok':!![],'message':_0x3b92cb?'Lovrabet\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20'+Object[_0x1f074a(0x6a)](_0x20c0e2[_0x1f074a(0x6b)]===_0x1f074a(0x6e)?_0x20c0e2[_0x1f074a(0x7b)]:_0x23dc22)[_0x1f074a(0x7c)](',\x20')+'.':_0x1f074a(0x83)+_0x1eb29c+'.','data':{'mode':_0x3b92cb?'independent':_0x1f074a(0x78),'protocol':_0x20c0e2[_0x1f074a(0x6b)]===_0x1f074a(0x6e)?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0x1eb29c,'domains':_0x23dc22}};}function a24_0x40fb(_0x20ad8a,_0x5968b6){_0x20ad8a=_0x20ad8a-0x66;const _0x533133=a24_0x5331();let _0x40fbf0=_0x533133[_0x20ad8a];return _0x40fbf0;}export const configInitDefinition={'service':'config','command':'init','description':a24_0x3f7cb3(0x87),'risk':'write','confirmationDescription':a24_0x3f7cb3(0x76),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':configInitFlags,'execute':executeConfigInit};
1
+ const a24_0x346207=a24_0x72c4;(function(_0x14ead8,_0x73b7f7){const _0x1744ac=a24_0x72c4,_0x18fd5f=_0x14ead8();while(!![]){try{const _0x85713=-parseInt(_0x1744ac(0x11a))/0x1+parseInt(_0x1744ac(0xfe))/0x2*(-parseInt(_0x1744ac(0x116))/0x3)+-parseInt(_0x1744ac(0x10a))/0x4+-parseInt(_0x1744ac(0x114))/0x5*(parseInt(_0x1744ac(0x118))/0x6)+parseInt(_0x1744ac(0x110))/0x7*(parseInt(_0x1744ac(0x101))/0x8)+parseInt(_0x1744ac(0x105))/0x9+-parseInt(_0x1744ac(0x10e))/0xa*(-parseInt(_0x1744ac(0xfd))/0xb);if(_0x85713===_0x73b7f7)break;else _0x18fd5f['push'](_0x18fd5f['shift']());}catch(_0xf3b5aa){_0x18fd5f['push'](_0x18fd5f['shift']());}}}(a24_0x1fdf,0xd6633));import{select}from'@inquirer/prompts';import{CliErrors}from'../../errors.js';function a24_0x72c4(_0x2f6c3f,_0x45da2c){_0x2f6c3f=_0x2f6c3f-0xf9;const _0x1fdf36=a24_0x1fdf();let _0x72c4e3=_0x1fdf36[_0x2f6c3f];return _0x72c4e3;}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';const domainFlags=[{'name':'domain-config','type':a24_0x346207(0x112),'description':a24_0x346207(0x10b)},{'name':a24_0x346207(0x111),'type':a24_0x346207(0x112),'description':a24_0x346207(0x11c)},{'name':a24_0x346207(0x102),'type':a24_0x346207(0x112),'description':a24_0x346207(0x129)},{'name':'runtime-domain','type':a24_0x346207(0x112),'description':a24_0x346207(0x121)},{'name':a24_0x346207(0x108),'type':'string','description':a24_0x346207(0x119)},{'name':a24_0x346207(0xfb),'type':'string','description':a24_0x346207(0x11e)}];export const configInitFlags=[{'name':a24_0x346207(0x10f),'type':a24_0x346207(0x112),'description':a24_0x346207(0xfa)+ENABLED_LOVRABET_REGION_VALUES['join'](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},...domainFlags];async function resolveRegion(_0x3980a8){const _0x43de7a=a24_0x346207,_0x4e3550=_0x3980a8[_0x43de7a(0xf9)](_0x43de7a(0x10f));if(_0x4e3550){if(!isEnabledLovrabetRegion(_0x4e3550))throw CliErrors[_0x43de7a(0x12a)]('Region\x20\x22'+_0x4e3550+_0x43de7a(0x127),'Available\x20regions:\x20'+ENABLED_LOVRABET_REGION_VALUES[_0x43de7a(0x103)](',\x20'));return _0x4e3550;}if(_0x3980a8['nonInteractive'])return DEFAULT_LOVRABET_REGION;try{return await select({'message':_0x43de7a(0x107),'default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES[_0x43de7a(0xfc)](_0x494402=>({'name':OFFICIAL_ROUTING_PROFILES[_0x494402][_0x43de7a(0x117)]+'\x20('+_0x494402+')','value':_0x494402}))});}catch(_0x315a68){if(_0x315a68?.[_0x43de7a(0x125)]===_0x43de7a(0x11f))throw CliErrors[_0x43de7a(0x123)]();throw _0x315a68;}}function a24_0x1fdf(){const _0xbe8740=['write','3550820WFzcBP','region','7vyuTXt','user-domain','string','Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.','6430taauWo','length','976398jdPWJY','label','4638LeTpoz','Custom\x20SkillHub\x20HTTPS\x20origin','177581mLaMcN','independent','Custom\x20User\x20HTTPS\x20origin','Initialize\x20the\x20global\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','Custom\x20KB\x20Service\x20HTTPS\x20origin','ExitPromptError','routing','Custom\x20Runtime\x20HTTPS\x20origin','mode','cancelled','enterprise-v1','name','config','\x22\x20is\x20not\x20currently\x20available.','Lovrabet\x20connection\x20configured\x20for\x20region:\x20','Custom\x20platform\x20API\x20HTTPS\x20origin','validation','str','Official\x20Lovrabet\x20region:\x20','kb-service-domain','map','99RiWinp','6EDEwbO','init','official','2149752SlSgWG','api-domain','join','keys','7155612JgTbna','Lovrabet\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20','Select\x20Lovrabet\x20region','skill-domain','manifestDomains','4933348WUXBYp','Independent-deployment\x20Domain\x20JSON\x20file','domains'];a24_0x1fdf=function(){return _0xbe8740;};return a24_0x1fdf();}export async function executeConfigInit(_0x3aa9f3){const _0x894c39=a24_0x346207,_0x576e3c=resolveDomainConfigInput(_0x3aa9f3),_0x3a7fec=_0x576e3c[_0x894c39(0x10c)],_0x4a79be=Object[_0x894c39(0x104)](_0x3a7fec)[_0x894c39(0x115)]>0x0;if(_0x4a79be&&_0x3aa9f3[_0x894c39(0xf9)](_0x894c39(0x10f)))throw CliErrors[_0x894c39(0x12a)](_0x894c39(0x113));const _0x335ab8={'global':!![]},_0x4523be=readScopedConfig(_0x335ab8);for(const _0x34ed51 of DOMAIN_CONFIG_FIELDS)delete _0x4523be[_0x34ed51];for(const _0x3e28b8 of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x4523be[_0x3e28b8];delete _0x4523be[_0x894c39(0x120)];let _0x4c010a=null;if(_0x4a79be)delete _0x4523be[_0x894c39(0x10f)],_0x576e3c['mode']===_0x894c39(0x124)?_0x4523be[_0x894c39(0x120)]={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0x576e3c[_0x894c39(0x109)]}:Object['assign'](_0x4523be,_0x3a7fec);else{_0x4c010a=await resolveRegion(_0x3aa9f3);if(_0x4c010a===DEFAULT_LOVRABET_REGION)delete _0x4523be[_0x894c39(0x10f)];else _0x4523be[_0x894c39(0x10f)]=_0x4c010a;}return writeScopedConfig(_0x4523be,_0x335ab8),{'ok':!![],'message':_0x4a79be?_0x894c39(0x106)+Object['keys'](_0x576e3c[_0x894c39(0x122)]===_0x894c39(0x124)?_0x576e3c['manifestDomains']:_0x3a7fec)[_0x894c39(0x103)](',\x20')+'.':_0x894c39(0x128)+_0x4c010a+'.','data':{'mode':_0x4a79be?_0x894c39(0x11b):_0x894c39(0x100),'protocol':_0x576e3c[_0x894c39(0x122)]===_0x894c39(0x124)?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0x4c010a,'domains':_0x3a7fec}};}export const configInitDefinition={'service':a24_0x346207(0x126),'command':a24_0x346207(0xff),'description':a24_0x346207(0x11d),'risk':a24_0x346207(0x10d),'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(_0x52b2c7,_0xda5c85){var _0x5a9752=a25_0x2835,_0x563b8d=_0x52b2c7();while(!![]){try{var _0x18b7a6=parseInt(_0x5a9752(0xbe))/0x1+-parseInt(_0x5a9752(0xbf))/0x2+parseInt(_0x5a9752(0xbd))/0x3+parseInt(_0x5a9752(0xba))/0x4+parseInt(_0x5a9752(0xb9))/0x5+parseInt(_0x5a9752(0xb8))/0x6*(parseInt(_0x5a9752(0xbb))/0x7)+-parseInt(_0x5a9752(0xc0))/0x8*(parseInt(_0x5a9752(0xbc))/0x9);if(_0x18b7a6===_0xda5c85)break;else _0x563b8d['push'](_0x563b8d['shift']());}catch(_0x28fada){_0x563b8d['push'](_0x563b8d['shift']());}}}(a25_0x2ae0,0x5cae6));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_0x2835(_0x5f3d05,_0x2233e1){_0x5f3d05=_0x5f3d05-0xb8;var _0x2ae0ca=a25_0x2ae0();var _0x283565=_0x2ae0ca[_0x5f3d05];return _0x283565;}function a25_0x2ae0(){var _0x133066=['1024vAKkjv','20082BVRMNC','498410mSJMRy','200956tytsev','889TppWNa','40329dkstEa','2031975jILdNF','428179RZcFsO','1454608KWxSqy'];a25_0x2ae0=function(){return _0x133066;};return a25_0x2ae0();}
1
+ (function(_0x3c1cf3,_0x168dac){var _0x2ff3da=a25_0x46f8,_0x508dc2=_0x3c1cf3();while(!![]){try{var _0x200c80=parseInt(_0x2ff3da(0x12f))/0x1+-parseInt(_0x2ff3da(0x12e))/0x2*(parseInt(_0x2ff3da(0x135))/0x3)+parseInt(_0x2ff3da(0x133))/0x4+parseInt(_0x2ff3da(0x131))/0x5+-parseInt(_0x2ff3da(0x137))/0x6*(parseInt(_0x2ff3da(0x134))/0x7)+parseInt(_0x2ff3da(0x132))/0x8+parseInt(_0x2ff3da(0x130))/0x9*(-parseInt(_0x2ff3da(0x136))/0xa);if(_0x200c80===_0x168dac)break;else _0x508dc2['push'](_0x508dc2['shift']());}catch(_0x42f231){_0x508dc2['push'](_0x508dc2['shift']());}}}(a25_0x5c24,0xc51f8));import{CLI_BIN_NAME}from'../../constant/cli.js';export{CLI_BIN_NAME};export{readScopedConfig,writeScopedConfig}from'../../context.js';function a25_0x46f8(_0x393433,_0x45dfb0){_0x393433=_0x393433-0x12e;var _0x5c24f7=a25_0x5c24();var _0x46f8b7=_0x5c24f7[_0x393433];return _0x46f8b7;}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_0x5c24(){var _0x4642f7=['12519368vBLGBV','4733040jEofPr','34538tQDWfo','56031YQEjXx','50zUqbvA','1344SqInrY','86ggDBzf','705893WOPNsK','2216547EyaYyS','2465420ztSWoI'];a25_0x5c24=function(){return _0x4642f7;};return a25_0x5c24();}
@@ -1 +1 @@
1
- const a26_0x3655fc=a26_0x3cb6;function a26_0x4aec(){const _0x3a9150=['.lock.recovery','toString','.import-checkpoint.json','mapping','1-based\x20Excel\x20header\x20row','Creates\x20real\x20dataset\x20records\x20immediately.\x20Keep\x20the\x20checkpoint\x20to\x20reconcile\x20and\x20resume\x20interrupted\x20imports.','all','Mapping\x20file\x20must\x20contain\x20valid\x20JSON.','reduce','str','imageCells','size','utf8','warnings','Local\x20XLSX\x20file\x20(maximum\x2020\x20MB)','/import-batch','media','2MiBOdl','string','Excel\x20import\x20failed.','import-excel','validation','See\x20','mappingFile','isInteger','values','resume','83316PBSCwU','Mapping\x20file\x20exceeds\x201\x20MB.','Private\x20checkpoint\x20file\x20(default:\x20XLSX\x20path\x20plus\x20.import-checkpoint.json)','errors','message','length','/client/','schemaFingerprint','Reconcile\x20imported\x20records\x20and\x20resume\x20the\x20exact\x20original\x20file,\x20target\x20and\x20mapping','report','Mapping\x20must\x20be\x20an\x20object\x20from\x20Excel\x20headers\x20to\x20field\x20codes.','.lock','batchSize','file','bool','succeeded','schemaVersion','number','hashes','102BcqGCW','Imported\x20and\x20verified\x20','Header\x20row\x20must\x20be\x20positive\x20and\x20batch\x20size\x20must\x20be\x20between\x201\x20and\x20500.','687428BSDJzE','batch-size','.rows.json','Inspect\x20lovrabet\x20dataset\x20detail\x20--code\x20','some','237219hwyPrX','POST','--file\x20and\x20--mapping\x20are\x20required.','checkpoint','Source,\x20mapping,\x20checkpoint\x20and\x20report\x20must\x20be\x20different\x20files.','Private\x20result\x20report\x20(default:\x20XLSX\x20path\x20plus\x20.import-report.json)','imageFields','Worksheet\x20name\x20or\x201-based\x20index\x20(default:\x20first\x20worksheet)','\x20records.','write','appCode','Run\x20dataset\x20detail\x20to\x20confirm\x20the\x20source.\x20Only\x20DB_TABLE\x20has\x20the\x20documented\x20alternative\x20batchCreate\x20route;\x20do\x20not\x20guess\x20or\x20automatically\x20switch\x20APIs.','emptyRows','936135CpxHli','Excel\x20contains\x20','Batch\x20size\x20exceeds\x20the\x20server\x20import\x20contract.','\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.','boolean','header-row','code','5251716dneSDS','1179032VVhNOd','METADATA','rowNumber','25837YYQDpW','num','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.','DB_TABLE'];a26_0x4aec=function(){return _0x3a9150;};return a26_0x4aec();}(function(_0x154857,_0x2b8d30){const _0x2ec720=a26_0x3cb6,_0x5757ab=_0x154857();while(!![]){try{const _0x1a9753=-parseInt(_0x2ec720(0x1b8))/0x1+parseInt(_0x2ec720(0x1e5))/0x2*(parseInt(_0x2ec720(0x1ef))/0x3)+-parseInt(_0x2ec720(0x1b3))/0x4+parseInt(_0x2ec720(0x1c5))/0x5+parseInt(_0x2ec720(0x1b0))/0x6*(-parseInt(_0x2ec720(0x1d0))/0x7)+-parseInt(_0x2ec720(0x1cd))/0x8+parseInt(_0x2ec720(0x1cc))/0x9;if(_0x1a9753===_0x2b8d30)break;else _0x5757ab['push'](_0x5757ab['shift']());}catch(_0x4d484b){_0x5757ab['push'](_0x5757ab['shift']());}}}(a26_0x4aec,0x2bc79));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';function a26_0x3cb6(_0x59535c,_0x158333){_0x59535c=_0x59535c-0x1a4;const _0x4aecfc=a26_0x4aec();let _0x3cb6ea=_0x4aecfc[_0x59535c];return _0x3cb6ea;}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 input(_0x791af5){const _0x2d1cbd=a26_0x3cb6,_0x583cef=_0x791af5['str'](_0x2d1cbd(0x1aa)),_0xe49bfe=_0x791af5[_0x2d1cbd(0x1dd)](_0x2d1cbd(0x1d7));if(!_0x583cef||!_0xe49bfe)throw CliErrors['validation'](_0x2d1cbd(0x1ba));const _0x7e658b=_0x791af5[_0x2d1cbd(0x1d1)](_0x2d1cbd(0x1ca),0x1),_0x962e11=_0x791af5[_0x2d1cbd(0x1d1)](_0x2d1cbd(0x1b4),0x1f4);if(!Number[_0x2d1cbd(0x1ec)](_0x7e658b)||_0x7e658b<0x1||!Number[_0x2d1cbd(0x1ec)](_0x962e11)||_0x962e11<0x1||_0x962e11>0x1f4)throw CliErrors[_0x2d1cbd(0x1e9)](_0x2d1cbd(0x1b2));const _0x576e4b=resolve(_0x791af5[_0x2d1cbd(0x1dd)](_0x2d1cbd(0x1bb))||_0x583cef+_0x2d1cbd(0x1d6)),_0x44900c=resolve(_0x791af5['str'](_0x2d1cbd(0x1a6))||_0x583cef+'.import-report.json'),_0x224b13=[resolve(_0x583cef),resolve(_0xe49bfe),_0x576e4b,_0x44900c];if(new Set(_0x224b13)['size']!==_0x224b13[_0x2d1cbd(0x1f4)])throw CliErrors[_0x2d1cbd(0x1e9)](_0x2d1cbd(0x1bc));return{'file':resolve(_0x583cef),'mappingFile':resolve(_0xe49bfe),'headerRow':_0x7e658b,'batchSize':_0x962e11,'checkpoint':_0x576e4b,'report':_0x44900c,'sheet':_0x791af5['str']('sheet')||undefined,'resume':_0x791af5[_0x2d1cbd(0x1ab)]('resume')};}async function prepare(_0x569ae6){const _0x21c5ca=a26_0x3cb6,_0x1cf542=input(_0x569ae6),_0x60bf2d=_0x569ae6[_0x21c5ca(0x1dd)](_0x21c5ca(0x1cb));[_0x1cf542['file'],_0x1cf542[_0x21c5ca(0x1eb)],_0x1cf542[_0x21c5ca(0x1bb)],_0x1cf542['report']]=await Promise[_0x21c5ca(0x1da)]([realpath(_0x1cf542[_0x21c5ca(0x1aa)]),realpath(_0x1cf542[_0x21c5ca(0x1eb)]),resolveImportOutputPath(_0x1cf542['checkpoint']),resolveImportOutputPath(_0x1cf542[_0x21c5ca(0x1a6)])]),assertImportPaths(_0x1cf542[_0x21c5ca(0x1bb)],_0x1cf542[_0x21c5ca(0x1a6)],[_0x1cf542[_0x21c5ca(0x1aa)],_0x1cf542[_0x21c5ca(0x1eb)]]);let _0x14b05e;const _0x747924=await readFile(_0x1cf542[_0x21c5ca(0x1eb)]);if(_0x747924[_0x21c5ca(0x1f4)]>0x400*0x400)throw CliErrors[_0x21c5ca(0x1e9)](_0x21c5ca(0x1f0));try{_0x14b05e=JSON['parse'](_0x747924[_0x21c5ca(0x1d5)](_0x21c5ca(0x1e0)));}catch{throw CliErrors[_0x21c5ca(0x1e9)](_0x21c5ca(0x1db));}if(!_0x14b05e||typeof _0x14b05e!=='object'||Array['isArray'](_0x14b05e)||Object[_0x21c5ca(0x1ed)](_0x14b05e)[_0x21c5ca(0x1b7)](_0x39e510=>typeof _0x39e510!==_0x21c5ca(0x1e6)))throw CliErrors['validation'](_0x21c5ca(0x1a7));const _0x3fc5b4=await getDatasetDetail(_0x60bf2d),_0x1259e4=assertDatasetImportTarget(_0x3fc5b4,_0x569ae6['appCode'],_0x60bf2d);if(_0x1259e4===_0x21c5ca(0x1d3))throw CliErrors['validation']('DB_TABLE\x20datasets\x20use\x20the\x20existing\x20batchCreate\x20operation;\x20import-excel\x20only\x20supports\x20METADATA\x20datasets.',_0x21c5ca(0x1b6)+_0x60bf2d+'.\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'+_0x569ae6['appCode']+'\x20--code\x20'+_0x60bf2d+_0x21c5ca(0x1c8));if(_0x1259e4!==_0x21c5ca(0x1ce))throw CliErrors[_0x21c5ca(0x1e9)]('Dataset\x20source\x20is\x20missing\x20or\x20unsupported;\x20import-excel\x20requires\x20METADATA.',_0x21c5ca(0x1c3));const _0x4f7376=await buildExcelManifest({..._0x1cf542,'mapping':_0x14b05e,'fields':normalizeImportFields(_0x3fc5b4)}),_0xbd71d3=await getDatasetImportContract(_0x569ae6[_0x21c5ca(0x1c2)],_0x60bf2d);assertImportContract(_0xbd71d3,_0x569ae6[_0x21c5ca(0x1c2)],_0x60bf2d),assertImageImportCapability(_0xbd71d3,_0x4f7376);if(_0x4f7376[_0x21c5ca(0x1be)]?.['length']){const _0x4fe5dc=await resolveImportOutputPath(_0x1cf542[_0x21c5ca(0x1bb)]+_0x21c5ca(0x1b5)),_0x2c712=await Promise[_0x21c5ca(0x1da)]([_0x4fe5dc,_0x4fe5dc+_0x21c5ca(0x1a8),_0x4fe5dc+_0x21c5ca(0x1d4),_0x1cf542[_0x21c5ca(0x1bb)]+_0x21c5ca(0x1a8),_0x1cf542[_0x21c5ca(0x1bb)]+_0x21c5ca(0x1d4)]['map'](resolveImportOutputPath));assertImportPaths(_0x1cf542[_0x21c5ca(0x1bb)],_0x1cf542[_0x21c5ca(0x1a6)],[_0x1cf542[_0x21c5ca(0x1aa)],_0x1cf542[_0x21c5ca(0x1eb)],..._0x2c712['slice'](0x0,0x3)]);}if(_0x1cf542[_0x21c5ca(0x1a9)]>_0xbd71d3['maxBatchSize'])throw CliErrors['validation'](_0x21c5ca(0x1c7));return{'args':_0x1cf542,'manifest':_0x4f7376,'contract':_0xbd71d3,'code':_0x60bf2d};}async function checked(_0x5a9ec6){const _0x11756a=a26_0x3cb6;try{return await _0x5a9ec6();}catch(_0x109f2d){if(_0x109f2d instanceof CliError)throw _0x109f2d;throw CliErrors['validation'](_0x109f2d[_0x11756a(0x1f3)]||_0x11756a(0x1e7));}}export const dataImportExcel={'service':'data','command':a26_0x3655fc(0x1e8),'risk':a26_0x3655fc(0x1c1),'description':a26_0x3655fc(0x1d2),'confirmationDescription':a26_0x3655fc(0x1d9),'flags':[CODE_FLAG,{'name':a26_0x3655fc(0x1aa),'type':a26_0x3655fc(0x1e6),'required':!![],'description':a26_0x3655fc(0x1e2)},{'name':a26_0x3655fc(0x1d7),'type':'string','required':!![],'description':'JSON\x20file\x20mapping\x20Excel\x20headers\x20to\x20dataset\x20field\x20codes'},{'name':'sheet','type':a26_0x3655fc(0x1e6),'description':a26_0x3655fc(0x1bf)},{'name':'header-row','type':a26_0x3655fc(0x1ae),'default':0x1,'description':a26_0x3655fc(0x1d8)},{'name':a26_0x3655fc(0x1b4),'type':'number','default':0x1f4,'description':'Maximum\x20records\x20per\x20request\x20(1..500)'},{'name':a26_0x3655fc(0x1bb),'type':a26_0x3655fc(0x1e6),'description':a26_0x3655fc(0x1f1)},{'name':a26_0x3655fc(0x1a6),'type':a26_0x3655fc(0x1e6),'description':a26_0x3655fc(0x1bd)},{'name':a26_0x3655fc(0x1ee),'type':a26_0x3655fc(0x1c9),'description':a26_0x3655fc(0x1a5)}],'validate':async _0x2eb05c=>{input(_0x2eb05c);},'dryRun':async _0x548372=>checked(async()=>{const _0x312eda=a26_0x3655fc,{args:_0x568cf7,manifest:_0x28c4a6,contract:_0x567022,code:_0x5a16e1}=await prepare(_0x548372),_0x69c33e=new Set(_0x28c4a6[_0x312eda(0x1f2)]['map'](_0x41c832=>_0x41c832[_0x312eda(0x1cf)]))['size'];return{'method':_0x312eda(0x1b9),'url':_0x312eda(0x1f5)+encodeURIComponent(_0x548372[_0x312eda(0x1c2)])+'/'+encodeURIComponent(_0x5a16e1)+_0x312eda(0x1e3),'description':'Local\x20Excel\x20validation\x20only;\x20no\x20records\x20or\x20checkpoint\x20were\x20written.','body':{'schemaFingerprint':_0x567022[_0x312eda(0x1a4)]},'validRows':Math['max'](0x0,_0x28c4a6['rows'][_0x312eda(0x1f4)]-_0x69c33e),'invalidRows':_0x69c33e,'invalidCells':_0x28c4a6[_0x312eda(0x1f2)][_0x312eda(0x1f4)],'emptyRows':_0x28c4a6[_0x312eda(0x1c4)][_0x312eda(0x1f4)],'expectedBatches':previewImportBatchCount(_0x28c4a6,_0x567022,_0x568cf7[_0x312eda(0x1a9)]),'imageCount':_0x28c4a6[_0x312eda(0x1de)]?.[_0x312eda(0x1dc)]((_0x32f02a,_0x20b160)=>_0x32f02a+_0x20b160[_0x312eda(0x1af)]['length'],0x0)??0x0,'uniqueImages':_0x28c4a6[_0x312eda(0x1e4)]?.[_0x312eda(0x1f4)]??0x0,'uniqueImageBytes':_0x28c4a6['media']?.[_0x312eda(0x1dc)]((_0x2e42c6,_0x583e1c)=>_0x2e42c6+_0x583e1c[_0x312eda(0x1df)],0x0)??0x0,'errors':_0x28c4a6[_0x312eda(0x1f2)],'warnings':_0x28c4a6[_0x312eda(0x1e1)],'sheet':_0x28c4a6['sheet'],'checkpoint':_0x568cf7['checkpoint'],'report':_0x568cf7[_0x312eda(0x1a6)]};}),'execute':async _0x18591c=>checked(async()=>{const _0x201562=a26_0x3655fc,{args:_0x428106,manifest:_0x3b5411,contract:_0xae1c77,code:_0x13a7a1}=await prepare(_0x18591c);if(_0x3b5411[_0x201562(0x1f2)][_0x201562(0x1f4)]){await saveImportJson(_0x428106[_0x201562(0x1a6)],{'status':'invalid','sourceRows':_0x3b5411['rows'][_0x201562(0x1f4)],'errors':_0x3b5411[_0x201562(0x1f2)],'emptyRows':_0x3b5411[_0x201562(0x1c4)],'warnings':_0x3b5411[_0x201562(0x1e1)]});throw CliErrors[_0x201562(0x1e9)](_0x201562(0x1c6)+_0x3b5411['errors'][_0x201562(0x1f4)]+'\x20invalid\x20cells.\x20No\x20records\x20were\x20written.',_0x201562(0x1ea)+_0x428106[_0x201562(0x1a6)]+'.');}const _0x51427a=_0x3b5411[_0x201562(0x1be)]?.['length']?runImageExcelImport:_0xae1c77[_0x201562(0x1ad)]===0x2?runAutoIdExcelImport:runExcelImport,_0xc7af60=await _0x51427a({..._0x428106,'manifest':_0x3b5411,'contract':_0xae1c77,'appCode':_0x18591c['appCode'],'datasetCode':_0x13a7a1,'runtimeDomain':getRuntimeDomain(),'inputPaths':[_0x428106[_0x201562(0x1aa)],_0x428106[_0x201562(0x1eb)]],'imageApi':{'upload':(_0x4c038c,_0x2eb120)=>uploadDatasetImportImage(_0x18591c[_0x201562(0x1c2)],_0x13a7a1,_0x4c038c,_0x2eb120),'readback':(_0x21ea4c,_0x57ca2a)=>readDatasetImportImage(_0x18591c['appCode'],_0x13a7a1,_0x21ea4c,_0x57ca2a)},'api':{'write':(_0x6cb006,_0x4ffe30)=>createDatasetImportBatch(_0x18591c[_0x201562(0x1c2)],_0x13a7a1,{'schemaFingerprint':_0xae1c77[_0x201562(0x1a4)],'items':_0x6cb006,..._0x4ffe30===undefined?{}:{'taskId':_0x4ffe30}}),'readback':_0x324f21=>readDatasetImportRows(_0x18591c[_0x201562(0x1c2)],_0x13a7a1,_0x324f21),'readTask':_0x2852d1=>readDatasetImportTaskRows(_0x18591c[_0x201562(0x1c2)],_0x13a7a1,_0x2852d1)}});return{'ok':!![],'data':_0xc7af60,'message':_0x201562(0x1b1)+_0xc7af60[_0x201562(0x1ac)]+_0x201562(0x1c0)};})};
1
+ const a26_0x5d7a93=a26_0x1364;(function(_0x56eee8,_0x6b537){const _0x1f5080=a26_0x1364,_0x2c338b=_0x56eee8();while(!![]){try{const _0x8cd3d4=-parseInt(_0x1f5080(0x21d))/0x1+-parseInt(_0x1f5080(0x214))/0x2+-parseInt(_0x1f5080(0x1e7))/0x3+parseInt(_0x1f5080(0x1e8))/0x4*(parseInt(_0x1f5080(0x201))/0x5)+-parseInt(_0x1f5080(0x1e6))/0x6*(-parseInt(_0x1f5080(0x208))/0x7)+-parseInt(_0x1f5080(0x20e))/0x8+parseInt(_0x1f5080(0x1c9))/0x9;if(_0x8cd3d4===_0x6b537)break;else _0x2c338b['push'](_0x2c338b['shift']());}catch(_0x3c5a38){_0x2c338b['push'](_0x2c338b['shift']());}}}(a26_0x1011,0x23094));import{readFile,realpath}from'node:fs/promises';function a26_0x1011(){const _0x108598=['batch-size','.\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','media','schemaFingerprint','import-excel','bool','rows','utf8','schemaVersion','.lock.recovery','file','object','.import-report.json','339558LFVVJz','10377DzoXrr','19564vbvuOC','\x20invalid\x20cells.\x20No\x20records\x20were\x20written.','all','toString','reduce','max','Mapping\x20file\x20exceeds\x201\x20MB.','isInteger','string','map','rowNumber','JSON\x20file\x20mapping\x20Excel\x20headers\x20to\x20dataset\x20field\x20codes','--file\x20and\x20--mapping\x20are\x20required.','Local\x20Excel\x20validation\x20only;\x20no\x20records\x20or\x20checkpoint\x20were\x20written.','Excel\x20contains\x20','checkpoint','some','Mapping\x20file\x20must\x20contain\x20valid\x20JSON.','/client/','size','report','Imported\x20and\x20verified\x20','header-row','write','mappingFile','185rJcxTp','.import-checkpoint.json','errors','Private\x20result\x20report\x20(default:\x20XLSX\x20path\x20plus\x20.import-report.json)','\x20--code\x20','resume','imageFields','21WKdIUN','length','DB_TABLE','batchSize','isArray','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.','2174656moxrpd','Mapping\x20must\x20be\x20an\x20object\x20from\x20Excel\x20headers\x20to\x20field\x20codes.','maxBatchSize','Private\x20checkpoint\x20file\x20(default:\x20XLSX\x20path\x20plus\x20.import-checkpoint.json)','number','Batch\x20size\x20exceeds\x20the\x20server\x20import\x20contract.','158948HJMTyC','mapping','slice','code','values','imageCells','num','succeeded','METADATA','60798bRMpPx','1874925HJrJdv','boolean','data','invalid','str','emptyRows','appCode','Excel\x20import\x20failed.','\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.','warnings','sheet','\x20records.','1-based\x20Excel\x20header\x20row','Worksheet\x20name\x20or\x201-based\x20index\x20(default:\x20first\x20worksheet)','validation','.lock'];a26_0x1011=function(){return _0x108598;};return a26_0x1011();}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';import{assertDatasetImportTarget}from'../../services/dataset-import/metadata.js';function a26_0x1364(_0x52fb79,_0x23e751){_0x52fb79=_0x52fb79-0x1c9;const _0x10112e=a26_0x1011();let _0x1364f0=_0x10112e[_0x52fb79];return _0x1364f0;}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 input(_0xf7bb44){const _0x5442da=a26_0x1364,_0x489cb3=_0xf7bb44[_0x5442da(0x1cd)](_0x5442da(0x1e3)),_0x25728c=_0xf7bb44[_0x5442da(0x1cd)](_0x5442da(0x215));if(!_0x489cb3||!_0x25728c)throw CliErrors[_0x5442da(0x1d7)](_0x5442da(0x1f4));const _0x3292af=_0xf7bb44[_0x5442da(0x21a)](_0x5442da(0x1fe),0x1),_0x524939=_0xf7bb44[_0x5442da(0x21a)](_0x5442da(0x1d9),0x1f4);if(!Number[_0x5442da(0x1ef)](_0x3292af)||_0x3292af<0x1||!Number[_0x5442da(0x1ef)](_0x524939)||_0x524939<0x1||_0x524939>0x1f4)throw CliErrors[_0x5442da(0x1d7)]('Header\x20row\x20must\x20be\x20positive\x20and\x20batch\x20size\x20must\x20be\x20between\x201\x20and\x20500.');const _0x119551=resolve(_0xf7bb44[_0x5442da(0x1cd)](_0x5442da(0x1f7))||_0x489cb3+_0x5442da(0x202)),_0x3e18fa=resolve(_0xf7bb44[_0x5442da(0x1cd)](_0x5442da(0x1fc))||_0x489cb3+_0x5442da(0x1e5)),_0x5ce617=[resolve(_0x489cb3),resolve(_0x25728c),_0x119551,_0x3e18fa];if(new Set(_0x5ce617)['size']!==_0x5ce617[_0x5442da(0x209)])throw CliErrors[_0x5442da(0x1d7)]('Source,\x20mapping,\x20checkpoint\x20and\x20report\x20must\x20be\x20different\x20files.');return{'file':resolve(_0x489cb3),'mappingFile':resolve(_0x25728c),'headerRow':_0x3292af,'batchSize':_0x524939,'checkpoint':_0x119551,'report':_0x3e18fa,'sheet':_0xf7bb44[_0x5442da(0x1cd)]('sheet')||undefined,'resume':_0xf7bb44[_0x5442da(0x1de)](_0x5442da(0x206))};}async function prepare(_0x4707bc){const _0x353de1=a26_0x1364,_0xf627da=input(_0x4707bc),_0x3c5a88=_0x4707bc['str'](_0x353de1(0x217));[_0xf627da[_0x353de1(0x1e3)],_0xf627da[_0x353de1(0x200)],_0xf627da[_0x353de1(0x1f7)],_0xf627da[_0x353de1(0x1fc)]]=await Promise[_0x353de1(0x1ea)]([realpath(_0xf627da[_0x353de1(0x1e3)]),realpath(_0xf627da[_0x353de1(0x200)]),resolveImportOutputPath(_0xf627da[_0x353de1(0x1f7)]),resolveImportOutputPath(_0xf627da['report'])]),assertImportPaths(_0xf627da[_0x353de1(0x1f7)],_0xf627da[_0x353de1(0x1fc)],[_0xf627da[_0x353de1(0x1e3)],_0xf627da['mappingFile']]);let _0x605fa3;const _0xc462b6=await readFile(_0xf627da[_0x353de1(0x200)]);if(_0xc462b6[_0x353de1(0x209)]>0x400*0x400)throw CliErrors[_0x353de1(0x1d7)](_0x353de1(0x1ee));try{_0x605fa3=JSON['parse'](_0xc462b6[_0x353de1(0x1eb)](_0x353de1(0x1e0)));}catch{throw CliErrors['validation'](_0x353de1(0x1f9));}if(!_0x605fa3||typeof _0x605fa3!==_0x353de1(0x1e4)||Array[_0x353de1(0x20c)](_0x605fa3)||Object[_0x353de1(0x218)](_0x605fa3)[_0x353de1(0x1f8)](_0x4a3baa=>typeof _0x4a3baa!=='string'))throw CliErrors['validation'](_0x353de1(0x20f));const _0x3c933c=await getDatasetDetail(_0x3c5a88),_0x24c87e=assertDatasetImportTarget(_0x3c933c,_0x4707bc[_0x353de1(0x1cf)],_0x3c5a88);if(_0x24c87e===_0x353de1(0x20a))throw CliErrors[_0x353de1(0x1d7)]('DB_TABLE\x20datasets\x20use\x20the\x20existing\x20batchCreate\x20operation;\x20import-excel\x20only\x20supports\x20METADATA\x20datasets.','Inspect\x20lovrabet\x20dataset\x20detail\x20--code\x20'+_0x3c5a88+_0x353de1(0x1da)+_0x4707bc[_0x353de1(0x1cf)]+_0x353de1(0x205)+_0x3c5a88+_0x353de1(0x1d1));if(_0x24c87e!==_0x353de1(0x21c))throw CliErrors[_0x353de1(0x1d7)]('Dataset\x20source\x20is\x20missing\x20or\x20unsupported;\x20import-excel\x20requires\x20METADATA.','Run\x20dataset\x20detail\x20to\x20confirm\x20the\x20source.\x20Only\x20DB_TABLE\x20has\x20the\x20documented\x20alternative\x20batchCreate\x20route;\x20do\x20not\x20guess\x20or\x20automatically\x20switch\x20APIs.');const _0xb84edb=await buildExcelManifest({..._0xf627da,'mapping':_0x605fa3,'fields':normalizeImportFields(_0x3c933c)}),_0x4eab52=await getDatasetImportContract(_0x4707bc[_0x353de1(0x1cf)],_0x3c5a88);assertImportContract(_0x4eab52,_0x4707bc[_0x353de1(0x1cf)],_0x3c5a88),assertImageImportCapability(_0x4eab52,_0xb84edb);if(_0xb84edb[_0x353de1(0x207)]?.[_0x353de1(0x209)]){const _0x72bbb=await resolveImportOutputPath(_0xf627da['checkpoint']+'.rows.json'),_0x5122b8=await Promise[_0x353de1(0x1ea)]([_0x72bbb,_0x72bbb+_0x353de1(0x1d8),_0x72bbb+_0x353de1(0x1e2),_0xf627da[_0x353de1(0x1f7)]+'.lock',_0xf627da[_0x353de1(0x1f7)]+_0x353de1(0x1e2)][_0x353de1(0x1f1)](resolveImportOutputPath));assertImportPaths(_0xf627da['checkpoint'],_0xf627da['report'],[_0xf627da[_0x353de1(0x1e3)],_0xf627da['mappingFile'],..._0x5122b8[_0x353de1(0x216)](0x0,0x3)]);}if(_0xf627da['batchSize']>_0x4eab52[_0x353de1(0x210)])throw CliErrors[_0x353de1(0x1d7)](_0x353de1(0x213));return{'args':_0xf627da,'manifest':_0xb84edb,'contract':_0x4eab52,'code':_0x3c5a88};}async function checked(_0x544b69){const _0x2b08ea=a26_0x1364;try{return await _0x544b69();}catch(_0x32e7c2){if(_0x32e7c2 instanceof CliError)throw _0x32e7c2;throw CliErrors[_0x2b08ea(0x1d7)](_0x32e7c2['message']||_0x2b08ea(0x1d0));}}export const dataImportExcel={'service':a26_0x5d7a93(0x1cb),'command':a26_0x5d7a93(0x1dd),'risk':a26_0x5d7a93(0x1ff),'description':a26_0x5d7a93(0x20d),'confirmationDescription':'Creates\x20real\x20dataset\x20records\x20immediately.\x20Keep\x20the\x20checkpoint\x20to\x20reconcile\x20and\x20resume\x20interrupted\x20imports.','flags':[CODE_FLAG,{'name':a26_0x5d7a93(0x1e3),'type':a26_0x5d7a93(0x1f0),'required':!![],'description':'Local\x20XLSX\x20file\x20(maximum\x2020\x20MB)'},{'name':a26_0x5d7a93(0x215),'type':a26_0x5d7a93(0x1f0),'required':!![],'description':a26_0x5d7a93(0x1f3)},{'name':a26_0x5d7a93(0x1d3),'type':a26_0x5d7a93(0x1f0),'description':a26_0x5d7a93(0x1d6)},{'name':a26_0x5d7a93(0x1fe),'type':a26_0x5d7a93(0x212),'default':0x1,'description':a26_0x5d7a93(0x1d5)},{'name':a26_0x5d7a93(0x1d9),'type':a26_0x5d7a93(0x212),'default':0x1f4,'description':'Maximum\x20records\x20per\x20request\x20(1..500)'},{'name':'checkpoint','type':a26_0x5d7a93(0x1f0),'description':a26_0x5d7a93(0x211)},{'name':a26_0x5d7a93(0x1fc),'type':'string','description':a26_0x5d7a93(0x204)},{'name':a26_0x5d7a93(0x206),'type':a26_0x5d7a93(0x1ca),'description':'Reconcile\x20imported\x20records\x20and\x20resume\x20the\x20exact\x20original\x20file,\x20target\x20and\x20mapping'}],'validate':async _0x13374d=>{input(_0x13374d);},'dryRun':async _0x224263=>checked(async()=>{const _0x633199=a26_0x5d7a93,{args:_0x1c45da,manifest:_0x1625d5,contract:_0x3be1be,code:_0x44e714}=await prepare(_0x224263),_0x31d2a2=new Set(_0x1625d5['errors'][_0x633199(0x1f1)](_0x11aa1e=>_0x11aa1e[_0x633199(0x1f2)]))[_0x633199(0x1fb)];return{'method':'POST','url':_0x633199(0x1fa)+encodeURIComponent(_0x224263['appCode'])+'/'+encodeURIComponent(_0x44e714)+'/import-batch','description':_0x633199(0x1f5),'body':{'schemaFingerprint':_0x3be1be[_0x633199(0x1dc)]},'validRows':Math[_0x633199(0x1ed)](0x0,_0x1625d5[_0x633199(0x1df)]['length']-_0x31d2a2),'invalidRows':_0x31d2a2,'invalidCells':_0x1625d5['errors']['length'],'emptyRows':_0x1625d5[_0x633199(0x1ce)]['length'],'expectedBatches':previewImportBatchCount(_0x1625d5,_0x3be1be,_0x1c45da[_0x633199(0x20b)]),'imageCount':_0x1625d5[_0x633199(0x219)]?.[_0x633199(0x1ec)]((_0x42e6b7,_0xb0d5dc)=>_0x42e6b7+_0xb0d5dc['hashes'][_0x633199(0x209)],0x0)??0x0,'uniqueImages':_0x1625d5['media']?.[_0x633199(0x209)]??0x0,'uniqueImageBytes':_0x1625d5[_0x633199(0x1db)]?.['reduce']((_0x4cc5e2,_0x5146c4)=>_0x4cc5e2+_0x5146c4[_0x633199(0x1fb)],0x0)??0x0,'errors':_0x1625d5[_0x633199(0x203)],'warnings':_0x1625d5['warnings'],'sheet':_0x1625d5[_0x633199(0x1d3)],'checkpoint':_0x1c45da[_0x633199(0x1f7)],'report':_0x1c45da[_0x633199(0x1fc)]};}),'execute':async _0x272282=>checked(async()=>{const _0x519a21=a26_0x5d7a93,{args:_0x3c16ab,manifest:_0x530e7e,contract:_0x3753c0,code:_0x18fac9}=await prepare(_0x272282);if(_0x530e7e['errors']['length']){await saveImportJson(_0x3c16ab[_0x519a21(0x1fc)],{'status':_0x519a21(0x1cc),'sourceRows':_0x530e7e[_0x519a21(0x1df)][_0x519a21(0x209)],'errors':_0x530e7e[_0x519a21(0x203)],'emptyRows':_0x530e7e[_0x519a21(0x1ce)],'warnings':_0x530e7e[_0x519a21(0x1d2)]});throw CliErrors['validation'](_0x519a21(0x1f6)+_0x530e7e[_0x519a21(0x203)][_0x519a21(0x209)]+_0x519a21(0x1e9),'See\x20'+_0x3c16ab[_0x519a21(0x1fc)]+'.');}const _0x4fba3f=_0x530e7e['imageFields']?.['length']?runImageExcelImport:_0x3753c0[_0x519a21(0x1e1)]===0x2?runAutoIdExcelImport:runExcelImport,_0x5fb5d2=await _0x4fba3f({..._0x3c16ab,'manifest':_0x530e7e,'contract':_0x3753c0,'appCode':_0x272282[_0x519a21(0x1cf)],'datasetCode':_0x18fac9,'runtimeDomain':getRuntimeDomain(),'inputPaths':[_0x3c16ab[_0x519a21(0x1e3)],_0x3c16ab[_0x519a21(0x200)]],'imageApi':{'upload':(_0x526319,_0x4a2fef)=>uploadDatasetImportImage(_0x272282[_0x519a21(0x1cf)],_0x18fac9,_0x526319,_0x4a2fef),'readback':(_0x219d45,_0x4404ec)=>readDatasetImportImage(_0x272282[_0x519a21(0x1cf)],_0x18fac9,_0x219d45,_0x4404ec)},'api':{'write':(_0x460922,_0x4c31d4)=>createDatasetImportBatch(_0x272282['appCode'],_0x18fac9,{'schemaFingerprint':_0x3753c0[_0x519a21(0x1dc)],'items':_0x460922,..._0x4c31d4===undefined?{}:{'taskId':_0x4c31d4}}),'readback':_0x537e56=>readDatasetImportRows(_0x272282[_0x519a21(0x1cf)],_0x18fac9,_0x537e56),'readTask':_0x166ac4=>readDatasetImportTaskRows(_0x272282[_0x519a21(0x1cf)],_0x18fac9,_0x166ac4)}});return{'ok':!![],'data':_0x5fb5d2,'message':_0x519a21(0x1fd)+_0x5fb5d2[_0x519a21(0x21b)]+_0x519a21(0x1d4)};})};