@lovrabet/lovrabet-cli 2.3.11-beta.1 → 2.3.11

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 +1 -1
  184. package/skills/lovrabet/SKILL.md +1 -1
  185. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x551207,_0x247b17){const _0x30baf2=a128_0x4df8,_0x29650b=_0x551207();while(!![]){try{const _0x13cced=parseInt(_0x30baf2(0x1a4))/0x1+parseInt(_0x30baf2(0x19e))/0x2+-parseInt(_0x30baf2(0x184))/0x3*(-parseInt(_0x30baf2(0x160))/0x4)+-parseInt(_0x30baf2(0x18c))/0x5+-parseInt(_0x30baf2(0x166))/0x6+parseInt(_0x30baf2(0x181))/0x7*(-parseInt(_0x30baf2(0x16d))/0x8)+parseInt(_0x30baf2(0x19d))/0x9;if(_0x13cced===_0x247b17)break;else _0x29650b['push'](_0x29650b['shift']());}catch(_0x51836c){_0x29650b['push'](_0x29650b['shift']());}}}(a128_0x2014,0x87910));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';import{isNonInteractiveMode}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain,getRuntimeDomain,requireHarnessDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{assertKnownCommandFlags}from'../framework/raw-flags.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{assertCliVersionSupported,checkCliVersion}from'../utils/cli-version-check.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x3d5d7d){const _0x1a84de=a128_0x4df8;return void _0x3d5d7d,AUTH_MODE[_0x1a84de(0x1a7)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x1790e3,_0x5d12d4){const _0x55f07a=a128_0x4df8;return{'rawFlags':_0x5d12d4,'appCode':_0x1790e3[_0x55f07a(0x182)],'appCodeSource':_0x1790e3[_0x55f07a(0x198)],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x5d12d4),'defaultFormat':_0x1790e3[_0x55f07a(0x199)],'defaultPageSize':_0x1790e3[_0x55f07a(0x193)],'defaultVerbose':_0x1790e3[_0x55f07a(0x16c)],'riskLevel':_0x1790e3['riskLevel'],'nativeToolAvailable':_0x1790e3['nativeToolAvailable'],'accessKey':_0x1790e3['accessKey'],'accessKeySource':_0x1790e3['accessKeySource'],'env':_0x1790e3[_0x55f07a(0x178)],'mergedCli':{'defaultApp':_0x1790e3[_0x55f07a(0x17b)],'currentApp':_0x1790e3[_0x55f07a(0x171)],'appCode':_0x1790e3['appCode']}};}export function createLovrabetRunnerAdapter(_0x1a544b={}){const _0x3b69b7=a128_0x4df8,_0x223d15={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x3b69b7(0x1aa)](_0x5c9ab6=>PIPELINE_FLAG_NAMES[_0x3b69b7(0x177)](_0x5c9ab6[_0x3b69b7(0x17f)]))[_0x3b69b7(0x1a2)](({name:_0x29d856,type:_0x3becec,description:_0x13b058})=>({'name':_0x29d856,'type':_0x3becec,'description':_0x13b058})),'formatOutput':_0x1a544b[_0x3b69b7(0x17e)]??formatOutput,'getCommandLabel'(_0x171885){const _0x1e450d=_0x3b69b7;return CLI_BIN_NAME+'\x20'+_0x171885[_0x1e450d(0x161)]+'\x20'+_0x171885[_0x1e450d(0x173)];},'riskPolicy':{'onViolation'(_0x3949cf,{def:_0x2cf782,env:_0x4c5b54}){const _0x42f75f=_0x3b69b7;if(shouldRouteWriteToNativeTool(_0x2cf782,_0x4c5b54))return;console[_0x42f75f(0x195)](_0x3949cf);},'createError'(_0x25890f,{def:_0xcb600b,env:_0x4f30f7}){const _0x31b598=_0x3b69b7;if(shouldRouteWriteToNativeTool(_0xcb600b,_0x4f30f7))return CliErrors[_0x31b598(0x18e)](CLI_BIN_NAME+'\x20'+_0xcb600b[_0x31b598(0x161)]+'\x20'+_0xcb600b[_0x31b598(0x173)]);return CliErrors[_0x31b598(0x197)](_0x25890f);}},async 'prepare'(_0x14f392,_0x4fe3e3){const _0x5dd39e=_0x3b69b7,_0x393c46=resolveAuthMode(_0x4fe3e3);if(_0x14f392[_0x5dd39e(0x191)]!==![]){if(!_0x4fe3e3[_0x5dd39e(0x19f)])throw CliErrors['authRequired'](_0x5dd39e(0x1a9)+PRODUCT_CONFIG[_0x5dd39e(0x183)]+_0x5dd39e(0x194)+productEnvName(_0x5dd39e(0x16b))+'.');const {setActiveAK:_0xff7bcf}=await import('../core/api-client.js');_0xff7bcf(_0x4fe3e3[_0x5dd39e(0x19f)]);}if(_0x14f392[_0x5dd39e(0x161)]==='schedule')requireHarnessDomain();let _0x342436='';if(_0x14f392[_0x5dd39e(0x18f)]!==![]){_0x342436=_0x4fe3e3[_0x5dd39e(0x182)]??'',_0x342436=await resolveExplicitAppName(_0x14f392,_0x4fe3e3,_0x342436);if(!_0x342436){await assertSelectedAppNameIsRuntimeAccessible(_0x14f392,_0x4fe3e3);throw CliErrors[_0x5dd39e(0x19b)](_0x5dd39e(0x1a3)+PRODUCT_CONFIG[_0x5dd39e(0x183)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x14f392,_0x4fe3e3,_0x342436);}if(_0x342436){const {initSdkClient:_0x10a16d}=await import(_0x5dd39e(0x19a));_0x10a16d({'appCode':_0x342436,'env':_0x4fe3e3['env']??_0x5dd39e(0x190),'runtimeDomain':_0x4fe3e3[_0x5dd39e(0x1a5)],'accessKey':_0x4fe3e3[_0x5dd39e(0x19f)],'authMode':_0x393c46}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x4fe3e3[_0x5dd39e(0x172)]},'numbers':{'pagesize':_0x4fe3e3[_0x5dd39e(0x1a8)]}},'extras':{'appCode':_0x342436,'cookie':'','apiDomain':_0x4fe3e3[_0x5dd39e(0x174)],'apiDir':'','accessKey':_0x4fe3e3[_0x5dd39e(0x19f)],'envName':_0x4fe3e3[_0x5dd39e(0x178)],'accessKeySource':_0x4fe3e3[_0x5dd39e(0x17d)],'mergedCli':_0x4fe3e3[_0x5dd39e(0x167)]}};},'confirmHighRisk':_0x1a544b['confirmHighRisk']??(async({def:_0x40a904,env:_0x2bad62,flags:_0x6b7356,commandLabel:_0x313524})=>{const _0x18b20a=_0x3b69b7;if(_0x2bad62[_0x18b20a(0x170)]){const _0x3b6d01=reconstructCommandArgv(_0x40a904,_0x6b7356);throw CliErrors['validation'](_0x18b20a(0x16e)+_0x313524+_0x18b20a(0x186)+(_0x18b20a(0x16a)+_0x3b6d01));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x40a904,_0x313524,_0x6b7356),'createCancelledError':_0x31fa93=>CliErrors['cancelled'](_0x31fa93)});}),'mapDryRunError'(_0x4a403e){return mapUserFacingExecuteError(_0x4a403e);},'mapExecuteError'(_0x179d9c){return mapUserFacingExecuteError(_0x179d9c);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x223d15;}function shouldRouteWriteToNativeTool(_0x2f5756,_0xe13173){const _0x252a15=a128_0x4df8;return _0xe13173['nativeToolAvailable']===!![]&&(_0x2f5756[_0x252a15(0x180)]===_0x252a15(0x17c)||_0x2f5756[_0x252a15(0x180)]===_0x252a15(0x165));}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){try{if(sdkClientInitialized){const {clearSdkClient:_0x35530c}=await import('../core/sdk-client.js');_0x35530c();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x2472c2}=await import('../core/api-client.js');_0x2472c2();}}function a128_0x4df8(_0x4e404e,_0x4d1017){_0x4e404e=_0x4e404e-0x15f;const _0x201456=a128_0x2014();let _0x4df8fd=_0x201456[_0x4e404e];return _0x4df8fd;}function a128_0x2014(){const _0x1c420d=['risk','42jDurWY','appCode','newConfigFileName','6uqKOjS','update','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','execute','.appcode\x20to\x20','pretty','includes','string','2123915JAhsfc','install','nativeToolRequired','requiresAppCode','production','requiresAuth','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','pageSize','\x20or\x20pass\x20','error','trim','cancelled','appCodeSource','format','../core/sdk-client.js','configMissing','rawFlags','13609494GGAbUT','391826syAYXn','accessKey','schema','_notice','map','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','618130zbGNQN','runtimeDomain','items','ClientAk','defaultPageSize','Set\x20accessKey\x20in\x20','filter','app','1336728jcAEGY','service','../commands/app/remote-source.js','resolve','Run\x20`','high-risk-write','5910432gKQkyl','mergedCli','nonInteractive','appcode','\x20\x20To\x20proceed:\x20','ACCESS_KEY','verbose','1372584KMjbZD','High-risk\x20operation\x20`','catch','isNonInteractive','currentApp','defaultVerbose','command','apiDomain','doctor','appcode\x20\x22','has','env','local-alias','Unknown\x20app:\x20','defaultApp','write','accessKeySource','formatOutput','name'];a128_0x2014=function(){return _0x1c420d;};return a128_0x2014();}async function resolveExplicitAppName(_0x1e1f3c,_0x5bd135,_0x1b649a){const _0x1a988c=a128_0x4df8;if(_0x1e1f3c[_0x1a988c(0x18f)]===![])return _0x1b649a;const _0x8217e5=typeof _0x5bd135['rawFlags']['app']===_0x1a988c(0x18b)?_0x5bd135['rawFlags'][_0x1a988c(0x15f)]['trim']():'';if(!_0x8217e5)return _0x1b649a;const _0x658fce=typeof _0x5bd135[_0x1a988c(0x19c)][_0x1a988c(0x169)]===_0x1a988c(0x18b)&&_0x5bd135[_0x1a988c(0x19c)][_0x1a988c(0x169)][_0x1a988c(0x196)]();if(_0x658fce||_0x5bd135[_0x1a988c(0x198)]===_0x1a988c(0x179))return _0x1b649a;const {getRemoteAppList:_0x3c542d}=await import(_0x1a988c(0x162)),_0x466ef6=await _0x3c542d({'env':_0x5bd135[_0x1a988c(0x178)]??_0x1a988c(0x190),'accessKey':_0x5bd135[_0x1a988c(0x19f)]}),_0x5252ed=findAppByName(_0x466ef6[_0x1a988c(0x1a6)],_0x8217e5);if(_0x5252ed&&!isRuntimeAccessibleApp(_0x5252ed))throw runtimeInaccessibleAppError(_0x5252ed,'\x22'+_0x8217e5+'\x22');const _0x102158=_0x5252ed?.[_0x1a988c(0x182)]?.[_0x1a988c(0x196)]();if(_0x102158)return _0x102158;throw CliErrors['validation'](_0x1a988c(0x17a)+_0x8217e5,_0x1a988c(0x164)+CLI_BIN_NAME+_0x1a988c(0x192)+_0x8217e5+_0x1a988c(0x188)+PRODUCT_CONFIG[_0x1a988c(0x183)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x59dceb,_0x1e1ef4){const _0x4f0a16=a128_0x4df8;if(_0x59dceb[_0x4f0a16(0x18f)]===![]||!_0x1e1ef4[_0x4f0a16(0x19f)])return;const _0x5ed1c4=(typeof _0x1e1ef4[_0x4f0a16(0x19c)][_0x4f0a16(0x15f)]===_0x4f0a16(0x18b)&&_0x1e1ef4[_0x4f0a16(0x19c)][_0x4f0a16(0x15f)][_0x4f0a16(0x196)]()?_0x1e1ef4[_0x4f0a16(0x19c)][_0x4f0a16(0x15f)]:_0x1e1ef4['mergedCli']?.[_0x4f0a16(0x171)]??_0x1e1ef4['mergedCli']?.[_0x4f0a16(0x17b)])?.[_0x4f0a16(0x196)]();if(!_0x5ed1c4)return;const {getRemoteAppList:_0x2a4e83}=await import('../commands/app/remote-source.js'),_0x55c308=await _0x2a4e83({'env':_0x1e1ef4[_0x4f0a16(0x178)]??_0x4f0a16(0x190),'accessKey':_0x1e1ef4[_0x4f0a16(0x19f)]}),_0x1eddf5=findAppByName(_0x55c308['items'],_0x5ed1c4);if(_0x1eddf5&&!isRuntimeAccessibleApp(_0x1eddf5))throw runtimeInaccessibleAppError(_0x1eddf5,'\x22'+_0x5ed1c4+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x4d4a4e,_0x4d774d,_0x1b5c67){const _0x99b480=a128_0x4df8;if(_0x4d4a4e[_0x99b480(0x18f)]===![]||!_0x4d774d[_0x99b480(0x19f)])return;const {getRemoteAppList:_0x178789}=await import(_0x99b480(0x162)),_0x52d9fa=await _0x178789({'env':_0x4d774d['env']??_0x99b480(0x190),'accessKey':_0x4d774d[_0x99b480(0x19f)]}),_0x2b7745=findAppByCode(_0x52d9fa[_0x99b480(0x1a6)],_0x1b5c67);if(_0x2b7745&&!isRuntimeAccessibleApp(_0x2b7745))throw runtimeInaccessibleAppError(_0x2b7745,_0x99b480(0x176)+_0x1b5c67+'\x22');}export async function runCommand(_0x566dc6,_0x51d280,_0xbab626=terminalRunnerAdapter){const _0x508b7d=a128_0x4df8;assertKnownCommandFlags(_0x566dc6,_0x51d280[_0x508b7d(0x19c)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x566dc6)?withVersionPolicy(_0x566dc6):_0x566dc6,_0x51d280,_0xbab626);}function shouldApplyVersionPolicy(_0x3d372a){const _0x44831f=a128_0x4df8;if([_0x44831f(0x185),_0x44831f(0x1a0),_0x44831f(0x175)][_0x44831f(0x18a)](_0x3d372a[_0x44831f(0x161)]))return![];return!(_0x3d372a[_0x44831f(0x161)]==='cli-skill'&&_0x3d372a['command']===_0x44831f(0x18d));}function withVersionPolicy(_0x4b1ef3){return{..._0x4b1ef3,async 'execute'(_0x1d7447){const _0x37c8ce=a128_0x4df8,_0x5a09f4=await checkCliVersion();assertCliVersionSupported(_0x5a09f4);const _0x493e03=shouldResolveUpdateNotice(_0x1d7447)?resolveLatestUpdateNotice(_0x5a09f4)[_0x37c8ce(0x16f)](()=>null):Promise[_0x37c8ce(0x163)](null),_0x18409e=await _0x4b1ef3[_0x37c8ce(0x187)](_0x1d7447);return attachUpdateNotice(_0x18409e,await _0x493e03);}};}function shouldResolveUpdateNotice(_0x1e988f){const _0x4204bf=a128_0x4df8;return _0x1e988f['format']===_0x4204bf(0x189)&&!_0x1e988f[_0x4204bf(0x168)];}function attachUpdateNotice(_0xf28e89,_0x4c4d77){const _0xe1f844=a128_0x4df8;if(!_0x4c4d77||!_0xf28e89||typeof _0xf28e89!=='object')return _0xf28e89;const _0x20e2a9=_0xf28e89,_0x444788=typeof _0x20e2a9[_0xe1f844(0x1a1)]==='object'&&_0x20e2a9['_notice']!==null?_0x20e2a9[_0xe1f844(0x1a1)]:{};return{..._0x20e2a9,'_notice':{..._0x444788,'update':_0x4c4d77}};}
1
+ (function(_0x12f971,_0xb3fe0){const _0x1cde21=a128_0x5088,_0x3c0eae=_0x12f971();while(!![]){try{const _0x13a203=-parseInt(_0x1cde21(0x103))/0x1+-parseInt(_0x1cde21(0x109))/0x2+parseInt(_0x1cde21(0xf3))/0x3*(parseInt(_0x1cde21(0xdf))/0x4)+parseInt(_0x1cde21(0x10d))/0x5+parseInt(_0x1cde21(0xfa))/0x6+-parseInt(_0x1cde21(0xff))/0x7*(-parseInt(_0x1cde21(0x102))/0x8)+-parseInt(_0x1cde21(0xd6))/0x9;if(_0x13a203===_0xb3fe0)break;else _0x3c0eae['push'](_0x3c0eae['shift']());}catch(_0x3d0908){_0x3c0eae['push'](_0x3c0eae['shift']());}}}(a128_0x344e,0xda393));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';function a128_0x344e(){const _0x96c303=['catch','3794160oqhKeH','error','env','trim','items','7twoMcU','requiresAppCode','appcode\x20\x22','11389256cBDhbz','528842IkMFmH','includes','accessKeySource','map','Set\x20accessKey\x20in\x20','appcode','1445778oGnOmz','mergedCli','ACCESS_KEY','name','2518765nabsod','nativeToolAvailable','service','../core/sdk-client.js','appCodeSource','rawFlags','local-alias','cancelled','appCode','../core/api-client.js','accessKey','Unknown\x20app:\x20','production','newConfigFileName','resolve','10044531TUkOlt','doctor','runtimeDomain','../commands/app/remote-source.js','riskLevel','format','Run\x20`','\x20\x20To\x20proceed:\x20','_notice','2807452HoGbwD','defaultVerbose','currentApp','string','schema','install','risk','nativeToolRequired','command','validation','object','authRequired','.appcode\x20to\x20','cli-skill','execute','High-risk\x20operation\x20`','verbose','high-risk-write','nonInteractive','\x20or\x20pass\x20','3YaLDMf','defaultApp','apiDomain','isNonInteractive','app','defaultPageSize'];a128_0x344e=function(){return _0x96c303;};return a128_0x344e();}import{isNonInteractiveMode}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain,getRuntimeDomain,requireHarnessDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{assertKnownCommandFlags}from'../framework/raw-flags.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{assertCliVersionSupported,checkCliVersion}from'../utils/cli-version-check.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x3cbd9a){return void _0x3cbd9a,AUTH_MODE['ClientAk'];}let sdkClientInitialized=![];export function createPipelineEnv(_0x36d374,_0x2c0a8b){const _0x4868f3=a128_0x5088;return{'rawFlags':_0x2c0a8b,'appCode':_0x36d374[_0x4868f3(0xcf)],'appCodeSource':_0x36d374[_0x4868f3(0x111)],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x2c0a8b),'defaultFormat':_0x36d374[_0x4868f3(0xdb)],'defaultPageSize':_0x36d374['pageSize'],'defaultVerbose':_0x36d374[_0x4868f3(0xef)],'riskLevel':_0x36d374[_0x4868f3(0xda)],'nativeToolAvailable':_0x36d374[_0x4868f3(0x10e)],'accessKey':_0x36d374[_0x4868f3(0xd1)],'accessKeySource':_0x36d374[_0x4868f3(0x105)],'env':_0x36d374['env'],'mergedCli':{'defaultApp':_0x36d374[_0x4868f3(0xf4)],'currentApp':_0x36d374[_0x4868f3(0xe1)],'appCode':_0x36d374[_0x4868f3(0xcf)]}};}export function createLovrabetRunnerAdapter(_0x6eaf8d={}){const _0x14f778=a128_0x5088,_0x4df73c={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0xbdfb33=>PIPELINE_FLAG_NAMES['has'](_0xbdfb33[_0x14f778(0x10c)]))[_0x14f778(0x106)](({name:_0x2cef2d,type:_0x3b2886,description:_0x4aeaa0})=>({'name':_0x2cef2d,'type':_0x3b2886,'description':_0x4aeaa0})),'formatOutput':_0x6eaf8d['formatOutput']??formatOutput,'getCommandLabel'(_0x2e3b92){return CLI_BIN_NAME+'\x20'+_0x2e3b92['service']+'\x20'+_0x2e3b92['command'];},'riskPolicy':{'onViolation'(_0x30fa87,{def:_0x6f4d25,env:_0x2118df}){const _0x324e8e=_0x14f778;if(shouldRouteWriteToNativeTool(_0x6f4d25,_0x2118df))return;console[_0x324e8e(0xfb)](_0x30fa87);},'createError'(_0x5233c3,{def:_0x4d3430,env:_0x331c3f}){const _0x2ad4ce=_0x14f778;if(shouldRouteWriteToNativeTool(_0x4d3430,_0x331c3f))return CliErrors[_0x2ad4ce(0xe6)](CLI_BIN_NAME+'\x20'+_0x4d3430['service']+'\x20'+_0x4d3430[_0x2ad4ce(0xe7)]);return CliErrors[_0x2ad4ce(0xce)](_0x5233c3);}},async 'prepare'(_0x2f92ef,_0x176bfd){const _0x3e7af2=_0x14f778,_0x136ad6=resolveAuthMode(_0x176bfd);if(_0x2f92ef['requiresAuth']!==![]){if(!_0x176bfd[_0x3e7af2(0xd1)])throw CliErrors[_0x3e7af2(0xea)](_0x3e7af2(0x107)+PRODUCT_CONFIG['newConfigFileName']+_0x3e7af2(0xf2)+productEnvName(_0x3e7af2(0x10b))+'.');const {setActiveAK:_0x2ab8e8}=await import(_0x3e7af2(0xd0));_0x2ab8e8(_0x176bfd['accessKey']);}if(_0x2f92ef[_0x3e7af2(0x10f)]==='schedule')requireHarnessDomain();let _0x23f194='';if(_0x2f92ef[_0x3e7af2(0x100)]!==![]){_0x23f194=_0x176bfd[_0x3e7af2(0xcf)]??'',_0x23f194=await resolveExplicitAppName(_0x2f92ef,_0x176bfd,_0x23f194);if(!_0x23f194){await assertSelectedAppNameIsRuntimeAccessible(_0x2f92ef,_0x176bfd);throw CliErrors['configMissing']('Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20'+PRODUCT_CONFIG[_0x3e7af2(0xd4)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x2f92ef,_0x176bfd,_0x23f194);}if(_0x23f194){const {initSdkClient:_0x3eb955}=await import(_0x3e7af2(0x110));_0x3eb955({'appCode':_0x23f194,'env':_0x176bfd[_0x3e7af2(0xfc)]??'production','runtimeDomain':_0x176bfd[_0x3e7af2(0xd8)],'accessKey':_0x176bfd[_0x3e7af2(0xd1)],'authMode':_0x136ad6}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x176bfd[_0x3e7af2(0xe0)]},'numbers':{'pagesize':_0x176bfd[_0x3e7af2(0xf8)]}},'extras':{'appCode':_0x23f194,'cookie':'','apiDomain':_0x176bfd[_0x3e7af2(0xf5)],'apiDir':'','accessKey':_0x176bfd['accessKey'],'envName':_0x176bfd[_0x3e7af2(0xfc)],'accessKeySource':_0x176bfd[_0x3e7af2(0x105)],'mergedCli':_0x176bfd[_0x3e7af2(0x10a)]}};},'confirmHighRisk':_0x6eaf8d['confirmHighRisk']??(async({def:_0x3063b8,env:_0x51b61a,flags:_0x5c8207,commandLabel:_0x82e9e6})=>{const _0xa19a5f=_0x14f778;if(_0x51b61a[_0xa19a5f(0xf6)]){const _0x25affb=reconstructCommandArgv(_0x3063b8,_0x5c8207);throw CliErrors[_0xa19a5f(0xe8)](_0xa19a5f(0xee)+_0x82e9e6+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a'+(_0xa19a5f(0xdd)+_0x25affb));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x3063b8,_0x82e9e6,_0x5c8207),'createCancelledError':_0x519c7a=>CliErrors[_0xa19a5f(0xce)](_0x519c7a)});}),'mapDryRunError'(_0x341c2a){return mapUserFacingExecuteError(_0x341c2a);},'mapExecuteError'(_0x39ed5a){return mapUserFacingExecuteError(_0x39ed5a);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x4df73c;}function shouldRouteWriteToNativeTool(_0x30e6d5,_0x30131e){const _0x2af2e4=a128_0x5088;return _0x30131e['nativeToolAvailable']===!![]&&(_0x30e6d5[_0x2af2e4(0xe5)]==='write'||_0x30e6d5['risk']===_0x2af2e4(0xf0));}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x6436af=a128_0x5088;try{if(sdkClientInitialized){const {clearSdkClient:_0x3503ee}=await import('../core/sdk-client.js');_0x3503ee();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x7bc6b1}=await import(_0x6436af(0xd0));_0x7bc6b1();}}async function resolveExplicitAppName(_0x1e112b,_0x2f2d5a,_0x2d499e){const _0x184644=a128_0x5088;if(_0x1e112b[_0x184644(0x100)]===![])return _0x2d499e;const _0x2ca163=typeof _0x2f2d5a[_0x184644(0x112)][_0x184644(0xf7)]===_0x184644(0xe2)?_0x2f2d5a[_0x184644(0x112)][_0x184644(0xf7)][_0x184644(0xfd)]():'';if(!_0x2ca163)return _0x2d499e;const _0x5bd4bc=typeof _0x2f2d5a[_0x184644(0x112)][_0x184644(0x108)]==='string'&&_0x2f2d5a['rawFlags'][_0x184644(0x108)][_0x184644(0xfd)]();if(_0x5bd4bc||_0x2f2d5a[_0x184644(0x111)]===_0x184644(0x113))return _0x2d499e;const {getRemoteAppList:_0x10bfbf}=await import(_0x184644(0xd9)),_0x497ee9=await _0x10bfbf({'env':_0x2f2d5a[_0x184644(0xfc)]??_0x184644(0xd3),'accessKey':_0x2f2d5a[_0x184644(0xd1)]}),_0x158107=findAppByName(_0x497ee9[_0x184644(0xfe)],_0x2ca163);if(_0x158107&&!isRuntimeAccessibleApp(_0x158107))throw runtimeInaccessibleAppError(_0x158107,'\x22'+_0x2ca163+'\x22');const _0x461a0e=_0x158107?.[_0x184644(0xcf)]?.[_0x184644(0xfd)]();if(_0x461a0e)return _0x461a0e;throw CliErrors['validation'](_0x184644(0xd2)+_0x2ca163,_0x184644(0xdc)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0x2ca163+_0x184644(0xeb)+PRODUCT_CONFIG['newConfigFileName']+'.');}function a128_0x5088(_0x56ebb1,_0x4d1ff9){_0x56ebb1=_0x56ebb1-0xce;const _0x344e5c=a128_0x344e();let _0x50888c=_0x344e5c[_0x56ebb1];return _0x50888c;}async function assertSelectedAppNameIsRuntimeAccessible(_0x15203d,_0x415cbd){const _0x20bfd7=a128_0x5088;if(_0x15203d[_0x20bfd7(0x100)]===![]||!_0x415cbd[_0x20bfd7(0xd1)])return;const _0x275c60=(typeof _0x415cbd[_0x20bfd7(0x112)][_0x20bfd7(0xf7)]===_0x20bfd7(0xe2)&&_0x415cbd['rawFlags'][_0x20bfd7(0xf7)]['trim']()?_0x415cbd[_0x20bfd7(0x112)][_0x20bfd7(0xf7)]:_0x415cbd[_0x20bfd7(0x10a)]?.[_0x20bfd7(0xe1)]??_0x415cbd['mergedCli']?.[_0x20bfd7(0xf4)])?.[_0x20bfd7(0xfd)]();if(!_0x275c60)return;const {getRemoteAppList:_0x2e0656}=await import(_0x20bfd7(0xd9)),_0x3880dd=await _0x2e0656({'env':_0x415cbd[_0x20bfd7(0xfc)]??'production','accessKey':_0x415cbd[_0x20bfd7(0xd1)]}),_0x1052df=findAppByName(_0x3880dd[_0x20bfd7(0xfe)],_0x275c60);if(_0x1052df&&!isRuntimeAccessibleApp(_0x1052df))throw runtimeInaccessibleAppError(_0x1052df,'\x22'+_0x275c60+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x41cd3f,_0x253b6a,_0x2cb52b){const _0x340b08=a128_0x5088;if(_0x41cd3f[_0x340b08(0x100)]===![]||!_0x253b6a[_0x340b08(0xd1)])return;const {getRemoteAppList:_0x54c398}=await import(_0x340b08(0xd9)),_0x2900d0=await _0x54c398({'env':_0x253b6a[_0x340b08(0xfc)]??_0x340b08(0xd3),'accessKey':_0x253b6a[_0x340b08(0xd1)]}),_0x3c83cd=findAppByCode(_0x2900d0['items'],_0x2cb52b);if(_0x3c83cd&&!isRuntimeAccessibleApp(_0x3c83cd))throw runtimeInaccessibleAppError(_0x3c83cd,_0x340b08(0x101)+_0x2cb52b+'\x22');}export async function runCommand(_0x247466,_0xef590b,_0x5683d0=terminalRunnerAdapter){const _0x32a303=a128_0x5088;assertKnownCommandFlags(_0x247466,_0xef590b[_0x32a303(0x112)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x247466)?withVersionPolicy(_0x247466):_0x247466,_0xef590b,_0x5683d0);}function shouldApplyVersionPolicy(_0x455a45){const _0x1f7f75=a128_0x5088;if(['update',_0x1f7f75(0xe3),_0x1f7f75(0xd7)][_0x1f7f75(0x104)](_0x455a45['service']))return![];return!(_0x455a45[_0x1f7f75(0x10f)]===_0x1f7f75(0xec)&&_0x455a45[_0x1f7f75(0xe7)]===_0x1f7f75(0xe4));}function withVersionPolicy(_0x2afcf1){return{..._0x2afcf1,async 'execute'(_0x3df0dd){const _0x478730=a128_0x5088,_0xdee688=await checkCliVersion();assertCliVersionSupported(_0xdee688);const _0x57b2d4=shouldResolveUpdateNotice(_0x3df0dd)?resolveLatestUpdateNotice(_0xdee688)[_0x478730(0xf9)](()=>null):Promise[_0x478730(0xd5)](null),_0x227afe=await _0x2afcf1[_0x478730(0xed)](_0x3df0dd);return attachUpdateNotice(_0x227afe,await _0x57b2d4);}};}function shouldResolveUpdateNotice(_0x37e077){const _0x4823e6=a128_0x5088;return _0x37e077[_0x4823e6(0xdb)]==='pretty'&&!_0x37e077[_0x4823e6(0xf1)];}function attachUpdateNotice(_0x2f9233,_0x2a84a0){const _0x44436c=a128_0x5088;if(!_0x2a84a0||!_0x2f9233||typeof _0x2f9233!==_0x44436c(0xe9))return _0x2f9233;const _0x5a87af=_0x2f9233,_0x46d8eb=typeof _0x5a87af['_notice']===_0x44436c(0xe9)&&_0x5a87af[_0x44436c(0xde)]!==null?_0x5a87af[_0x44436c(0xde)]:{};return{..._0x5a87af,'_notice':{..._0x46d8eb,'update':_0x2a84a0}};}
@@ -1 +1 @@
1
- function a129_0x1d9f(_0x270761,_0x40d15f){_0x270761=_0x270761-0xd8;const _0x39b4bf=a129_0x39b4();let _0x1d9fc9=_0x39b4bf[_0x270761];return _0x1d9fc9;}(function(_0x6d76dc,_0x2e80e3){const _0x2b7462=a129_0x1d9f,_0x284439=_0x6d76dc();while(!![]){try{const _0x453d7d=-parseInt(_0x2b7462(0xda))/0x1+parseInt(_0x2b7462(0xe8))/0x2*(parseInt(_0x2b7462(0xe1))/0x3)+parseInt(_0x2b7462(0xe5))/0x4*(-parseInt(_0x2b7462(0xdc))/0x5)+-parseInt(_0x2b7462(0xe0))/0x6+-parseInt(_0x2b7462(0xd8))/0x7*(-parseInt(_0x2b7462(0xdb))/0x8)+parseInt(_0x2b7462(0xde))/0x9+-parseInt(_0x2b7462(0xea))/0xa*(-parseInt(_0x2b7462(0xe9))/0xb);if(_0x453d7d===_0x2e80e3)break;else _0x284439['push'](_0x284439['shift']());}catch(_0x527470){_0x284439['push'](_0x284439['shift']());}}}(a129_0x39b4,0x45e87));import{buildSchemaPayload as a129_0x397ed2}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a129_0x39b4(){const _0x4a2632=['49698ytfRHM','map','auth','commands','61228wJrmjG','requiresAuth','filter','22GhSahW','6127fNdoeY','7180BTtfpf','services','836773qLXKfs','has','24274VMxTls','8EfinaV','140ordDhf','none','2335815jvOIND','service','1332078mNoVkx'];a129_0x39b4=function(){return _0x4a2632;};return a129_0x39b4();}import{getCliGitCommit,getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x21bed1=a129_0x1d9f,{serviceRegistry:_0x36b9c7,findDefinition:_0x581772}=await import('../commands/registry.js'),_0x234642=new Set(_0x36b9c7['map'](_0x57d73d=>_0x57d73d[_0x21bed1(0xdf)])),_0x52f83a=listDynamicServiceEntries()[_0x21bed1(0xe7)](_0xd3b471=>!_0x234642[_0x21bed1(0xd9)](_0xd3b471[_0x21bed1(0xdf)])),_0x4b1c9c=a129_0x397ed2({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x36b9c7,_0x52f83a),'buildAllFlags':buildAllFlags,'findDefinition':(_0x287326,_0xa721e7)=>_0x581772(_0x287326,_0xa721e7)??findDynamicServiceDefinition(_0x287326,_0xa721e7)});return normalizeSchemaPayload(_0x4b1c9c);}function normalizeSchemaPayload(_0xaefbf2){const _0x1fd7ad=a129_0x1d9f;return{..._0xaefbf2,'schemaVersion':0x2,'services':_0xaefbf2[_0x1fd7ad(0xeb)][_0x1fd7ad(0xe2)](_0x25c0c1=>({..._0x25c0c1,'commands':_0x25c0c1[_0x1fd7ad(0xe4)][_0x1fd7ad(0xe2)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x25f124){const _0x26c3c4=a129_0x1d9f,_0x338670=_0x25f124;return{..._0x25f124,'auth':_0x338670[_0x26c3c4(0xe3)]??(_0x25f124[_0x26c3c4(0xe6)]?'required':_0x26c3c4(0xdd))};}
1
+ (function(_0x66562f,_0x17e2ef){const _0x448349=a129_0x222d,_0x126c46=_0x66562f();while(!![]){try{const _0x2664bb=parseInt(_0x448349(0x7c))/0x1+-parseInt(_0x448349(0x7a))/0x2+parseInt(_0x448349(0x7f))/0x3*(parseInt(_0x448349(0x77))/0x4)+-parseInt(_0x448349(0x7e))/0x5*(-parseInt(_0x448349(0x79))/0x6)+parseInt(_0x448349(0x87))/0x7+-parseInt(_0x448349(0x76))/0x8*(parseInt(_0x448349(0x80))/0x9)+-parseInt(_0x448349(0x78))/0xa;if(_0x2664bb===_0x17e2ef)break;else _0x126c46['push'](_0x126c46['shift']());}catch(_0x252ea9){_0x126c46['push'](_0x126c46['shift']());}}}(a129_0x1fbd,0xe9a87));import{buildSchemaPayload as a129_0x804cb2}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a129_0x222d(_0x2e5137,_0x874a66){_0x2e5137=_0x2e5137-0x76;const _0x1fbddb=a129_0x1fbd();let _0x222d8c=_0x1fbddb[_0x2e5137];return _0x222d8c;}import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a129_0x1fbd(){const _0x3efdc5=['2297145iYfYTv','61932qVQlJS','27KZxbEE','../commands/registry.js','requiresAuth','commands','service','has','auth','5657484uICRBu','services','none','3402224JnLddn','68HzaCWX','2114680cyYghX','12dDaikT','1416662NWGRLV','required','1074678TnquSM','map'];a129_0x1fbd=function(){return _0x3efdc5;};return a129_0x1fbd();}import{getCliGitCommit,getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x2b4e6a=a129_0x222d,{serviceRegistry:_0x502a97,findDefinition:_0x31584c}=await import(_0x2b4e6a(0x81)),_0x49866d=new Set(_0x502a97[_0x2b4e6a(0x7d)](_0x3b91d4=>_0x3b91d4[_0x2b4e6a(0x84)])),_0x48b24a=listDynamicServiceEntries()['filter'](_0x225c81=>!_0x49866d[_0x2b4e6a(0x85)](_0x225c81[_0x2b4e6a(0x84)])),_0xd8bdbf=a129_0x804cb2({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x502a97,_0x48b24a),'buildAllFlags':buildAllFlags,'findDefinition':(_0x67f39f,_0x5a2193)=>_0x31584c(_0x67f39f,_0x5a2193)??findDynamicServiceDefinition(_0x67f39f,_0x5a2193)});return normalizeSchemaPayload(_0xd8bdbf);}function normalizeSchemaPayload(_0x2b6bb9){const _0x3f3e6a=a129_0x222d;return{..._0x2b6bb9,'schemaVersion':0x2,'services':_0x2b6bb9[_0x3f3e6a(0x88)][_0x3f3e6a(0x7d)](_0x78949f=>({..._0x78949f,'commands':_0x78949f[_0x3f3e6a(0x83)]['map'](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x1dfd93){const _0x185aaa=a129_0x222d,_0x3198ae=_0x1dfd93;return{..._0x1dfd93,'auth':_0x3198ae[_0x185aaa(0x86)]??(_0x1dfd93[_0x185aaa(0x82)]?_0x185aaa(0x7b):_0x185aaa(0x89))};}
@@ -1 +1 @@
1
- (function(_0x52d2bc,_0x3408f1){const _0x2a37a5=a130_0x196e,_0xa29673=_0x52d2bc();while(!![]){try{const _0x5251dc=-parseInt(_0x2a37a5(0x91))/0x1+parseInt(_0x2a37a5(0x96))/0x2*(parseInt(_0x2a37a5(0x8d))/0x3)+parseInt(_0x2a37a5(0x97))/0x4+-parseInt(_0x2a37a5(0x92))/0x5+parseInt(_0x2a37a5(0x94))/0x6+parseInt(_0x2a37a5(0x95))/0x7*(-parseInt(_0x2a37a5(0x8f))/0x8)+parseInt(_0x2a37a5(0x90))/0x9*(parseInt(_0x2a37a5(0x93))/0xa);if(_0x5251dc===_0x3408f1)break;else _0xa29673['push'](_0xa29673['shift']());}catch(_0xe80ef5){_0xa29673['push'](_0xa29673['shift']());}}}(a130_0x307c,0xa1c4a));function a130_0x196e(_0x4f97fd,_0xa4bf3c){_0x4f97fd=_0x4f97fd-0x8c;const _0x307c83=a130_0x307c();let _0x196e4a=_0x307c83[_0x4f97fd];return _0x196e4a;}export function insertDynamicServicesAfterServiceTree(_0x111a6d,_0x1b5ad1){const _0xfbc7e2=a130_0x196e;if(_0x1b5ad1['length']===0x0)return[..._0x111a6d];const _0x49d07e=_0x111a6d['findIndex'](_0x6e26c0=>_0x6e26c0[_0xfbc7e2(0x8c)]==='service');if(_0x49d07e<0x0)return[..._0x111a6d,..._0x1b5ad1];return[..._0x111a6d[_0xfbc7e2(0x8e)](0x0,_0x49d07e+0x1),..._0x1b5ad1,..._0x111a6d['slice'](_0x49d07e+0x1)];}function a130_0x307c(){const _0x32f304=['2862008FgJgLJ','36DtQXGw','92642AGezna','3483105tNXvLP','1854620aavKlE','4471920NiLWlP','14yLaQXs','1141522XyodrA','437752UvHIhH','service','3RGEfbY','slice'];a130_0x307c=function(){return _0x32f304;};return a130_0x307c();}
1
+ (function(_0x4eec52,_0x4708df){const _0xff3b25=a130_0x1b95,_0xa442cd=_0x4eec52();while(!![]){try{const _0x160739=-parseInt(_0xff3b25(0x12b))/0x1*(-parseInt(_0xff3b25(0x123))/0x2)+-parseInt(_0xff3b25(0x12e))/0x3*(parseInt(_0xff3b25(0x12a))/0x4)+-parseInt(_0xff3b25(0x125))/0x5*(-parseInt(_0xff3b25(0x12c))/0x6)+parseInt(_0xff3b25(0x12f))/0x7*(parseInt(_0xff3b25(0x124))/0x8)+parseInt(_0xff3b25(0x130))/0x9+-parseInt(_0xff3b25(0x128))/0xa+-parseInt(_0xff3b25(0x126))/0xb;if(_0x160739===_0x4708df)break;else _0xa442cd['push'](_0xa442cd['shift']());}catch(_0x31f713){_0xa442cd['push'](_0xa442cd['shift']());}}}(a130_0x3370,0x98bb3));function a130_0x1b95(_0x245af6,_0x23325b){_0x245af6=_0x245af6-0x123;const _0x3370cc=a130_0x3370();let _0x1b9552=_0x3370cc[_0x245af6];return _0x1b9552;}export function insertDynamicServicesAfterServiceTree(_0x22a072,_0x13b172){const _0x14a89c=a130_0x1b95;if(_0x13b172['length']===0x0)return[..._0x22a072];const _0x391ec8=_0x22a072[_0x14a89c(0x12d)](_0x2ae369=>_0x2ae369[_0x14a89c(0x129)]==='service');if(_0x391ec8<0x0)return[..._0x22a072,..._0x13b172];return[..._0x22a072[_0x14a89c(0x127)](0x0,_0x391ec8+0x1),..._0x13b172,..._0x22a072[_0x14a89c(0x127)](_0x391ec8+0x1)];}function a130_0x3370(){const _0x429641=['1vhYGXp','156726dBXWiv','findIndex','180hmhupd','637NPbbUC','7066584sltPbW','1708954yoxHuu','57416cvAHgn','155wmHylI','13296503dyHmGK','slice','3562710dhACRL','service','60792rnJmlx'];a130_0x3370=function(){return _0x429641;};return a130_0x3370();}
@@ -1 +1 @@
1
- function a131_0x9839(_0x426e5e,_0x247eae){_0x426e5e=_0x426e5e-0x10e;var _0x24d34d=a131_0x24d3();var _0x983943=_0x24d34d[_0x426e5e];return _0x983943;}function a131_0x24d3(){var _0x1c7148=['6034544ZGdBAC','1759201huDjjU','6172968sMwNfG','553022zgdJrq','1586291LtJKRy','31068090OivbNB','9ojYhdg','8pxgEjB','5ViArCU','2215611diYgxZ'];a131_0x24d3=function(){return _0x1c7148;};return a131_0x24d3();}(function(_0x4c396b,_0x51517f){var _0x36bac3=a131_0x9839,_0x355fa2=_0x4c396b();while(!![]){try{var _0x548c42=-parseInt(_0x36bac3(0x117))/0x1+-parseInt(_0x36bac3(0x10f))/0x2+-parseInt(_0x36bac3(0x115))/0x3*(-parseInt(_0x36bac3(0x113))/0x4)+parseInt(_0x36bac3(0x114))/0x5*(-parseInt(_0x36bac3(0x10e))/0x6)+parseInt(_0x36bac3(0x110))/0x7+-parseInt(_0x36bac3(0x116))/0x8+-parseInt(_0x36bac3(0x112))/0x9*(-parseInt(_0x36bac3(0x111))/0xa);if(_0x548c42===_0x51517f)break;else _0x355fa2['push'](_0x355fa2['shift']());}catch(_0x14cbd9){_0x355fa2['push'](_0x355fa2['shift']());}}}(a131_0x24d3,0xf2196));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
1
+ (function(_0x315a3c,_0x27a872){var _0x4c2503=a131_0x1fe7,_0x1dadb4=_0x315a3c();while(!![]){try{var _0x2047f8=parseInt(_0x4c2503(0x1dc))/0x1*(-parseInt(_0x4c2503(0x1dd))/0x2)+-parseInt(_0x4c2503(0x1e0))/0x3*(parseInt(_0x4c2503(0x1e3))/0x4)+parseInt(_0x4c2503(0x1e2))/0x5+parseInt(_0x4c2503(0x1e5))/0x6*(-parseInt(_0x4c2503(0x1db))/0x7)+parseInt(_0x4c2503(0x1de))/0x8*(-parseInt(_0x4c2503(0x1df))/0x9)+-parseInt(_0x4c2503(0x1e4))/0xa*(-parseInt(_0x4c2503(0x1e6))/0xb)+parseInt(_0x4c2503(0x1e1))/0xc;if(_0x2047f8===_0x27a872)break;else _0x1dadb4['push'](_0x1dadb4['shift']());}catch(_0x1c54e9){_0x1dadb4['push'](_0x1dadb4['shift']());}}}(a131_0x31b9,0x3b0fa));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a131_0x1fe7(_0x74df50,_0x13259f){_0x74df50=_0x74df50-0x1db;var _0x31b9ab=a131_0x31b9();var _0x1fe754=_0x31b9ab[_0x74df50];return _0x1fe754;}function a131_0x31b9(){var _0x3325e8=['854914kyVxQx','57560NuaNbN','279gMpfpr','86703dvSlzB','6913416jnOiad','143390coHdYF','4AURTZi','10AZTvyz','825048QbfigF','4994319krxnbA','7RpcPRX','1XDuxqU'];a131_0x31b9=function(){return _0x3325e8;};return a131_0x31b9();}
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "2.3.11-beta.1";
2
- export declare const GIT_TAG = "v2.3.11-beta.1";
3
- export declare const GIT_COMMIT = "44f7bc5";
4
- export declare const BUILD_TIME = "2026-11-10T05:34:10.330Z";
1
+ export declare const VERSION = "2.3.11";
2
+ export declare const GIT_TAG = "v2.3.11";
3
+ export declare const GIT_COMMIT = "586d541";
4
+ export declare const BUILD_TIME = "2026-11-10T10:15:35.973Z";
@@ -1 +1 @@
1
- const a132_0x46a601=a132_0x2a7f;(function(_0x7bbe77,_0xdc07df){const _0x20609e=a132_0x2a7f,_0x41a50d=_0x7bbe77();while(!![]){try{const _0x30ade7=-parseInt(_0x20609e(0x7d))/0x1+parseInt(_0x20609e(0x80))/0x2+-parseInt(_0x20609e(0x82))/0x3+-parseInt(_0x20609e(0x84))/0x4+parseInt(_0x20609e(0x81))/0x5*(-parseInt(_0x20609e(0x83))/0x6)+parseInt(_0x20609e(0x7f))/0x7+parseInt(_0x20609e(0x7b))/0x8*(parseInt(_0x20609e(0x7c))/0x9);if(_0x30ade7===_0xdc07df)break;else _0x41a50d['push'](_0x41a50d['shift']());}catch(_0x1045ae){_0x41a50d['push'](_0x41a50d['shift']());}}}(a132_0x4cf6,0xf243d));function a132_0x4cf6(){const _0x3d0128=['5734060wQHnhn','797436BWQjCa','6ExYCBB','2092184TcmKhS','44f7bc5','2.3.11-beta.1','184GjOELc','345807YnprGg','422015xcrVxg','v2.3.11-beta.1','4877264aQJlLS','3539042CNpIOM'];a132_0x4cf6=function(){return _0x3d0128;};return a132_0x4cf6();}export const VERSION=a132_0x46a601(0x86);export const GIT_TAG=a132_0x46a601(0x7e);export const GIT_COMMIT=a132_0x46a601(0x85);function a132_0x2a7f(_0x383841,_0x3ac87b){_0x383841=_0x383841-0x7b;const _0x4cf6b1=a132_0x4cf6();let _0x2a7fc7=_0x4cf6b1[_0x383841];return _0x2a7fc7;}export const BUILD_TIME='2026-11-10T05:34:10.330Z';
1
+ const a132_0x210308=a132_0xca09;function a132_0x50cd(){const _0x2b2079=['323588sddKjI','37540QXxems','1731824KQuvQK','829152mJuQVh','20106RWeZKB','v2.3.11','1155RVsnam','215oNYzgU','4517469jCyScw','16VxKGLg','2.3.11','10dYnGME'];a132_0x50cd=function(){return _0x2b2079;};return a132_0x50cd();}(function(_0x5bf1ea,_0x21192b){const _0x2ac3e5=a132_0xca09,_0x40e931=_0x5bf1ea();while(!![]){try{const _0x5b2db7=-parseInt(_0x2ac3e5(0x1a0))/0x1*(parseInt(_0x2ac3e5(0x198))/0x2)+parseInt(_0x2ac3e5(0x19a))/0x3+parseInt(_0x2ac3e5(0x1a3))/0x4+-parseInt(_0x2ac3e5(0x19e))/0x5*(parseInt(_0x2ac3e5(0x19b))/0x6)+parseInt(_0x2ac3e5(0x19d))/0x7+-parseInt(_0x2ac3e5(0x199))/0x8+-parseInt(_0x2ac3e5(0x19f))/0x9*(-parseInt(_0x2ac3e5(0x1a2))/0xa);if(_0x5b2db7===_0x21192b)break;else _0x40e931['push'](_0x40e931['shift']());}catch(_0x5575a5){_0x40e931['push'](_0x40e931['shift']());}}}(a132_0x50cd,0x30760));function a132_0xca09(_0x528aa2,_0x2bd408){_0x528aa2=_0x528aa2-0x198;const _0x50cd7f=a132_0x50cd();let _0xca09dc=_0x50cd7f[_0x528aa2];return _0xca09dc;}export const VERSION=a132_0x210308(0x1a1);export const GIT_TAG=a132_0x210308(0x19c);export const GIT_COMMIT='586d541';export const BUILD_TIME='2026-11-10T10:15:35.973Z';
@@ -1 +1 @@
1
- const a133_0x4f3eda=a133_0x2007;(function(_0x293aba,_0x2f32cf){const _0x4bbc03=a133_0x2007,_0xa67f57=_0x293aba();while(!![]){try{const _0x2bfea1=-parseInt(_0x4bbc03(0x98))/0x1*(parseInt(_0x4bbc03(0xa5))/0x2)+-parseInt(_0x4bbc03(0x91))/0x3*(parseInt(_0x4bbc03(0xa8))/0x4)+-parseInt(_0x4bbc03(0xae))/0x5*(parseInt(_0x4bbc03(0xa1))/0x6)+-parseInt(_0x4bbc03(0x94))/0x7+parseInt(_0x4bbc03(0x9f))/0x8*(parseInt(_0x4bbc03(0x8f))/0x9)+-parseInt(_0x4bbc03(0x95))/0xa*(parseInt(_0x4bbc03(0xaf))/0xb)+parseInt(_0x4bbc03(0xb3))/0xc;if(_0x2bfea1===_0x2f32cf)break;else _0xa67f57['push'](_0xa67f57['shift']());}catch(_0x8ea51d){_0xa67f57['push'](_0xa67f57['shift']());}}}(a133_0x1ed4,0xe4927));export const ROUTING_CATALOG_DIGEST=a133_0x4f3eda(0x8e);export const DEFAULT_REGION='cn';function a133_0x2007(_0x495d07,_0x8f2446){_0x495d07=_0x495d07-0x8e;const _0x1ed4d3=a133_0x1ed4();let _0x20070f=_0x1ed4d3[_0x495d07];return _0x20070f;}function a133_0x1ed4(){const _0x3fd203=['https://api.lovrabet.ai','54XMbIaM','https://user.lovrabet.com','https://daily-runtime.lovrabet.com','1271824WqOAfY','https://sandbox-api.lovrabet.id','https://user.lovrabet.id','https://kb-service-daily.lovrabet.com','https://user-daily.lovrabet.com','https://sandbox-api.lovrabet.ai','8015YAQDjv','15796kzmfYM','https://kb-service.lovrabet.id','https://sandbox-api-daily.lovrabet.com','global','78380436KqwTzF','19bc6dd7c8de7d4ef260bc553e38e63b268d7cd3f535fd1933132eb7ac3c5b52','481005XqWJoX','china','15HVjsMY','https://skills-daily.lovrabet.com','https://skills.lovrabet.com','8856631AfibMh','11560oIiRBI','Indonesia','https://kb-service.lovrabet.com','35133HePBfJ','indonesia','Mainland\x20China','https://skills-daily.lovrabet.ai','https://user.lovrabet.ai','https://api.lovrabet.com','https://daily-api.lovrabet.com','88giPfAV','Global','2694zYNfmJ','https://sandbox-api.lovrabet.com','https://runtime.lovrabet.id'];a133_0x1ed4=function(){return _0x3fd203;};return a133_0x1ed4();}export const REGION_VALUES=['cn','id',a133_0x4f3eda(0xb2)];export const ENABLED_REGION_VALUES=['cn','id',a133_0x4f3eda(0xb2)];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a133_0x4f3eda(0x9a),'aliases':[a133_0x4f3eda(0x90)],'serviceDomains':{'production':{'user':a133_0x4f3eda(0xa6),'api':a133_0x4f3eda(0x9d),'runtime':'https://runtime.lovrabet.com','skill':a133_0x4f3eda(0x93),'kbService':a133_0x4f3eda(0x97),'harness':a133_0x4f3eda(0xa2)},'daily':{'user':a133_0x4f3eda(0xac),'api':a133_0x4f3eda(0x9e),'runtime':a133_0x4f3eda(0xa7),'skill':a133_0x4f3eda(0x92),'kbService':a133_0x4f3eda(0xab),'harness':a133_0x4f3eda(0xb1)}}},'id':{'enabled':!![],'label':a133_0x4f3eda(0x96),'aliases':[a133_0x4f3eda(0x99)],'serviceDomains':{'production':{'user':a133_0x4f3eda(0xaa),'api':'https://api.lovrabet.id','runtime':a133_0x4f3eda(0xa3),'skill':'https://skills.lovrabet.id','kbService':a133_0x4f3eda(0xb0),'harness':a133_0x4f3eda(0xa9)}}},'global':{'enabled':!![],'label':a133_0x4f3eda(0xa0),'aliases':[],'serviceDomains':{'production':{'user':a133_0x4f3eda(0x9c),'api':a133_0x4f3eda(0xa4),'runtime':'https://runtime.lovrabet.ai','skill':'https://skills.lovrabet.ai','kbService':'https://kb-service.lovrabet.ai','harness':a133_0x4f3eda(0xad)},'daily':{'user':'https://user-daily.lovrabet.ai','api':'https://daily-api.lovrabet.ai','runtime':'https://daily-runtime.lovrabet.ai','skill':a133_0x4f3eda(0x9b)}}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
1
+ const a133_0x544834=a133_0x490c;function a133_0x4942(){const _0x1debed=['https://user-daily.lovrabet.com','1060015akpwuy','https://daily-api.lovrabet.com','https://skills-daily.lovrabet.com','https://daily-runtime.lovrabet.com','664755SRsPtt','https://user-daily.lovrabet.ai','https://skills.lovrabet.id','4OheBcg','https://api.lovrabet.ai','https://sandbox-api-daily.lovrabet.com','458984XhOTYD','https://kb-service.lovrabet.com','china','https://api.lovrabet.id','https://skills.lovrabet.ai','https://runtime.lovrabet.com','https://kb-service.lovrabet.id','Mainland\x20China','https://runtime.lovrabet.ai','578182WkufkG','https://sandbox-api.lovrabet.id','https://kb-service-daily.lovrabet.com','https://skills.lovrabet.com','https://user.lovrabet.com','15304122imSUJm','800070PDSbNc','https://daily-api.lovrabet.ai','70DOanMu','indonesia','607344GFsFgr','https://api.lovrabet.com','10GDpuyp','https://kb-service.lovrabet.ai','Indonesia','https://user.lovrabet.ai'];a133_0x4942=function(){return _0x1debed;};return a133_0x4942();}(function(_0x2e7970,_0xdf2eb1){const _0x37026d=a133_0x490c,_0x539305=_0x2e7970();while(!![]){try{const _0x2b33f9=-parseInt(_0x37026d(0x1b1))/0x1+parseInt(_0x37026d(0x19c))/0x2+-parseInt(_0x37026d(0x1a6))/0x3+-parseInt(_0x37026d(0x190))/0x4*(parseInt(_0x37026d(0x1ad))/0x5)+parseInt(_0x37026d(0x1a2))/0x6+parseInt(_0x37026d(0x1a4))/0x7*(-parseInt(_0x37026d(0x193))/0x8)+parseInt(_0x37026d(0x1a1))/0x9*(parseInt(_0x37026d(0x1a8))/0xa);if(_0x2b33f9===_0xdf2eb1)break;else _0x539305['push'](_0x539305['shift']());}catch(_0x50351a){_0x539305['push'](_0x539305['shift']());}}}(a133_0x4942,0x72bc6));export const ROUTING_CATALOG_DIGEST='19bc6dd7c8de7d4ef260bc553e38e63b268d7cd3f535fd1933132eb7ac3c5b52';export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id','global'];export const ENABLED_REGION_VALUES=['cn','id','global'];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a133_0x544834(0x19a),'aliases':[a133_0x544834(0x195)],'serviceDomains':{'production':{'user':a133_0x544834(0x1a0),'api':a133_0x544834(0x1a7),'runtime':a133_0x544834(0x198),'skill':a133_0x544834(0x19f),'kbService':a133_0x544834(0x194),'harness':'https://sandbox-api.lovrabet.com'},'daily':{'user':a133_0x544834(0x1ac),'api':a133_0x544834(0x1ae),'runtime':a133_0x544834(0x1b0),'skill':a133_0x544834(0x1af),'kbService':a133_0x544834(0x19e),'harness':a133_0x544834(0x192)}}},'id':{'enabled':!![],'label':a133_0x544834(0x1aa),'aliases':[a133_0x544834(0x1a5)],'serviceDomains':{'production':{'user':'https://user.lovrabet.id','api':a133_0x544834(0x196),'runtime':'https://runtime.lovrabet.id','skill':a133_0x544834(0x18f),'kbService':a133_0x544834(0x199),'harness':a133_0x544834(0x19d)}}},'global':{'enabled':!![],'label':'Global','aliases':[],'serviceDomains':{'production':{'user':a133_0x544834(0x1ab),'api':a133_0x544834(0x191),'runtime':a133_0x544834(0x19b),'skill':a133_0x544834(0x197),'kbService':a133_0x544834(0x1a9),'harness':'https://sandbox-api.lovrabet.ai'},'daily':{'user':a133_0x544834(0x18e),'api':a133_0x544834(0x1a3),'runtime':'https://daily-runtime.lovrabet.ai','skill':'https://skills-daily.lovrabet.ai'}}}};function a133_0x490c(_0x116e91,_0x291079){_0x116e91=_0x116e91-0x18e;const _0x4942a7=a133_0x4942();let _0x490c66=_0x4942a7[_0x116e91];return _0x490c66;}export const REGION_ALIASES={'china':'cn','indonesia':'id'};
@@ -1 +1 @@
1
- function a134_0x5acd(_0x3365df,_0x162033){_0x3365df=_0x3365df-0x116;const _0x70e762=a134_0x70e7();let _0x5acd89=_0x70e762[_0x3365df];return _0x5acd89;}const a134_0x3a29fe=a134_0x5acd;(function(_0x1ce2cb,_0x417d36){const _0x2f0d4d=a134_0x5acd,_0x2a39d1=_0x1ce2cb();while(!![]){try{const _0x54925e=parseInt(_0x2f0d4d(0x11d))/0x1+parseInt(_0x2f0d4d(0x11f))/0x2+-parseInt(_0x2f0d4d(0x117))/0x3+parseInt(_0x2f0d4d(0x122))/0x4*(-parseInt(_0x2f0d4d(0x11c))/0x5)+parseInt(_0x2f0d4d(0x123))/0x6*(-parseInt(_0x2f0d4d(0x118))/0x7)+-parseInt(_0x2f0d4d(0x119))/0x8+parseInt(_0x2f0d4d(0x121))/0x9;if(_0x54925e===_0x417d36)break;else _0x2a39d1['push'](_0x2a39d1['shift']());}catch(_0x20cfcc){_0x2a39d1['push'](_0x2a39d1['shift']());}}}(a134_0x70e7,0xf2271));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a134_0x3a29fe(0x11b);export const ENTERPRISE_ROUTING_PROTOCOL='lovrabet-routing/v1';export const ENTERPRISE_ROUTING_KIND=a134_0x3a29fe(0x125);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a134_0x3a29fe(0x11e),a134_0x3a29fe(0x120),a134_0x3a29fe(0x11a),a134_0x3a29fe(0x124),a134_0x3a29fe(0x116),a134_0x3a29fe(0x126)];function a134_0x70e7(){const _0x32b5d2=['userDomain','2716958CHAcJA','apiDomain','25698528ZgIMMH','4ZTkXRe','6ESYMON','skillDomain','enterprise','harnessDomain','kbServiceDomain','5398878JZhltH','1396150hwWDKx','1188336fZqbYS','runtimeDomain','192eedb6fe65d2091e1e03fb0fe5046da1c2cf5a5aea21cb85511b2c1181a3d9','8929695erSdHA','711543bNCrnu'];a134_0x70e7=function(){return _0x32b5d2;};return a134_0x70e7();}export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[];
1
+ const a134_0x395414=a134_0x4387;function a134_0x4387(_0x5db5e3,_0x197cdc){_0x5db5e3=_0x5db5e3-0x123;const _0x52be2c=a134_0x52be();let _0x4387bc=_0x52be2c[_0x5db5e3];return _0x4387bc;}(function(_0x56bf39,_0x18830e){const _0x409837=a134_0x4387,_0xaca24b=_0x56bf39();while(!![]){try{const _0x48d969=-parseInt(_0x409837(0x12d))/0x1*(-parseInt(_0x409837(0x124))/0x2)+-parseInt(_0x409837(0x123))/0x3*(-parseInt(_0x409837(0x125))/0x4)+-parseInt(_0x409837(0x12c))/0x5*(parseInt(_0x409837(0x131))/0x6)+parseInt(_0x409837(0x128))/0x7*(-parseInt(_0x409837(0x133))/0x8)+parseInt(_0x409837(0x127))/0x9+-parseInt(_0x409837(0x12a))/0xa+parseInt(_0x409837(0x132))/0xb;if(_0x48d969===_0x18830e)break;else _0xaca24b['push'](_0xaca24b['shift']());}catch(_0x3a59a9){_0xaca24b['push'](_0xaca24b['shift']());}}}(a134_0x52be,0xb4e56));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a134_0x395414(0x12b);export const ENTERPRISE_ROUTING_PROTOCOL=a134_0x395414(0x126);function a134_0x52be(){const _0x2e4a87=['151832PZMMhk','userDomain','12UcbEGR','14eCcLVR','337484xhxWbA','lovrabet-routing/v1','5536026UHCNyf','441CxMLbd','kbServiceDomain','5007470Fdqrzl','192eedb6fe65d2091e1e03fb0fe5046da1c2cf5a5aea21cb85511b2c1181a3d9','2285Xxhkxg','27983OJizml','enterprise','harnessDomain','runtimeDomain','10266evUbwK','22779042wmWkQp'];a134_0x52be=function(){return _0x2e4a87;};return a134_0x52be();}export const ENTERPRISE_ROUTING_KIND=a134_0x395414(0x12e);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a134_0x395414(0x134),'apiDomain',a134_0x395414(0x130),'skillDomain',a134_0x395414(0x129),a134_0x395414(0x12f)];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[];
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a135_0x1914(){const _0x35f89c=['8RiQdWO','632876LJoIHb','271980cqEZvm','1715265afbTMJ','510885JIiizx','green','\x20\x20Use\x20','30359AACUlx','242683WvlXax','482817rGIXQn','\x20--help','120MnIPVN'];a135_0x1914=function(){return _0x35f89c;};return a135_0x1914();}function a135_0x36ec(_0x191fbd,_0x2553ca){_0x191fbd=_0x191fbd-0x182;const _0x191444=a135_0x1914();let _0x36ecfc=_0x191444[_0x191fbd];return _0x36ecfc;}(function(_0x46ee49,_0x48e3a7){const _0x2cad09=a135_0x36ec,_0x3d5e9a=_0x46ee49();while(!![]){try{const _0x521435=parseInt(_0x2cad09(0x185))/0x1+parseInt(_0x2cad09(0x18a))/0x2+-parseInt(_0x2cad09(0x186))/0x3+-parseInt(_0x2cad09(0x18b))/0x4+-parseInt(_0x2cad09(0x18d))/0x5+parseInt(_0x2cad09(0x188))/0x6*(-parseInt(_0x2cad09(0x184))/0x7)+parseInt(_0x2cad09(0x189))/0x8*(parseInt(_0x2cad09(0x18c))/0x9);if(_0x521435===_0x48e3a7)break;else _0x3d5e9a['push'](_0x3d5e9a['shift']());}catch(_0x3daf5c){_0x3d5e9a['push'](_0x3d5e9a['shift']());}}}(a135_0x1914,0x5104f));import{jsx as a135_0x1d3ddc,jsxs as a135_0x552153}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x566e69=a135_0x36ec,{exit:_0x1530cf}=useApp();return useEffect(()=>{_0x1530cf();},[_0x1530cf]),a135_0x552153(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a135_0x1d3ddc(Box,{'children':a135_0x1d3ddc(Text,{'bold':!![],'color':_0x566e69(0x182),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a135_0x552153(Box,{'marginTop':0x1,'children':[a135_0x1d3ddc(Text,{'dimColor':!![],'children':_0x566e69(0x183)}),a135_0x1d3ddc(Text,{'bold':!![],'color':_0x566e69(0x182),'children':CLI_BIN_NAME+_0x566e69(0x187)}),a135_0x1d3ddc(Text,{'dimColor':!![],'children':'\x20to\x20view\x20available\x20commands.'})]})]});}
1
+ (function(_0x216bf8,_0x34e01e){const _0x2c9758=a135_0x4967,_0x117841=_0x216bf8();while(!![]){try{const _0x1fd3d4=parseInt(_0x2c9758(0x16b))/0x1*(parseInt(_0x2c9758(0x176))/0x2)+parseInt(_0x2c9758(0x16d))/0x3+-parseInt(_0x2c9758(0x174))/0x4*(parseInt(_0x2c9758(0x16a))/0x5)+-parseInt(_0x2c9758(0x172))/0x6+-parseInt(_0x2c9758(0x170))/0x7+-parseInt(_0x2c9758(0x175))/0x8+-parseInt(_0x2c9758(0x171))/0x9*(-parseInt(_0x2c9758(0x16f))/0xa);if(_0x1fd3d4===_0x34e01e)break;else _0x117841['push'](_0x117841['shift']());}catch(_0x1a7f5c){_0x117841['push'](_0x117841['shift']());}}}(a135_0x3ac0,0x514ba));import{jsx as a135_0x1fa83e,jsxs as a135_0x5e33f3}from'react/jsx-runtime';import{useEffect}from'react';function a135_0x3ac0(){const _0x48f852=['369IcVieK','2534922xqXxTh','green','125408yeQwYp','3391920MpcSFl','168KvFzIw','\x20to\x20view\x20available\x20commands.','5osVmDz','5620IeFEoo','\x20--help','1330926CCGdAG','column','134060OQMQOM','1781871skBnMB'];a135_0x3ac0=function(){return _0x48f852;};return a135_0x3ac0();}import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a135_0x4967(_0x5ba7c4,_0x2a0340){_0x5ba7c4=_0x5ba7c4-0x16a;const _0x3ac07e=a135_0x3ac0();let _0x496765=_0x3ac07e[_0x5ba7c4];return _0x496765;}export function Help(){const _0x545f28=a135_0x4967,{exit:_0x47055e}=useApp();return useEffect(()=>{_0x47055e();},[_0x47055e]),a135_0x5e33f3(Box,{'flexDirection':_0x545f28(0x16e),'marginTop':0x1,'marginBottom':0x1,'children':[a135_0x1fa83e(Box,{'children':a135_0x1fa83e(Text,{'bold':!![],'color':_0x545f28(0x173),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a135_0x5e33f3(Box,{'marginTop':0x1,'children':[a135_0x1fa83e(Text,{'dimColor':!![],'children':'\x20\x20Use\x20'}),a135_0x1fa83e(Text,{'bold':!![],'color':'green','children':CLI_BIN_NAME+_0x545f28(0x16c)}),a135_0x1fa83e(Text,{'dimColor':!![],'children':_0x545f28(0x177)})]})]});}
@@ -1 +1 @@
1
- function a136_0x3fc2(_0x329634,_0xf9ee6c){_0x329634=_0x329634-0x18a;const _0x3961d4=a136_0x3961();let _0x3fc244=_0x3961d4[_0x329634];return _0x3fc244;}(function(_0x21e44c,_0x593591){const _0x539b80=a136_0x3fc2,_0x7cb53=_0x21e44c();while(!![]){try{const _0x513469=-parseInt(_0x539b80(0x193))/0x1+-parseInt(_0x539b80(0x191))/0x2+-parseInt(_0x539b80(0x194))/0x3+parseInt(_0x539b80(0x19f))/0x4+-parseInt(_0x539b80(0x18c))/0x5*(parseInt(_0x539b80(0x190))/0x6)+parseInt(_0x539b80(0x19a))/0x7+parseInt(_0x539b80(0x192))/0x8;if(_0x513469===_0x593591)break;else _0x7cb53['push'](_0x7cb53['shift']());}catch(_0x3e6125){_0x7cb53['push'](_0x7cb53['shift']());}}}(a136_0x3961,0x3761f));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a136_0x3961(){const _0x4df39d=['323861gndjxJ','1551LdLTps','installed','code','SOURCE_INVALID','installedPath','Repair\x20with:\x20','1836835JxlztR','FAILED','\x20via\x20skills@latest','\x20at\x20','[BUILTIN_SKILL_INSTALL_','461028altLyO','repairCommand','warn','1988200ajEDyb','changed','Installation\x20failed','log','6WyINjD','878622cwdZed','8084112UOJBeR'];a136_0x3961=function(){return _0x4df39d;};return a136_0x3961();}export async function runPostinstall(_0x175815={}){const _0x48f5e4=a136_0x3fc2,_0x432644=installBuiltinSkill(_0x175815);if(_0x432644['ok']){const _0x17b99e=_0x432644[_0x48f5e4(0x18d)]?_0x48f5e4(0x195):'already\x20current',_0x2e26cc=_0x432644[_0x48f5e4(0x198)]?_0x48f5e4(0x19d)+_0x432644['installedPath']:_0x48f5e4(0x19c);return console[_0x48f5e4(0x18f)]('Lovrabet\x20Built-in\x20Skill\x20'+_0x432644['skillVersion']+'\x20'+_0x17b99e+_0x2e26cc),_0x432644;}const _0x350534=_0x48f5e4(0x19e)+(_0x432644[_0x48f5e4(0x196)]??_0x48f5e4(0x19b))+']\x20'+(_0x432644['error']??_0x48f5e4(0x18e))+'.\x20'+(_0x48f5e4(0x199)+_0x432644[_0x48f5e4(0x18a)]);if(_0x432644['code']===_0x48f5e4(0x197))throw new Error(_0x350534);return console[_0x48f5e4(0x18b)](_0x350534),_0x432644;}
1
+ function a136_0x5341(_0x530669,_0x249097){_0x530669=_0x530669-0x1ab;const _0x3f4c59=a136_0x3f4c();let _0x534106=_0x3f4c59[_0x530669];return _0x534106;}(function(_0x4bebc9,_0xe85336){const _0x1505d0=a136_0x5341,_0x4889ab=_0x4bebc9();while(!![]){try{const _0x3b7513=parseInt(_0x1505d0(0x1b6))/0x1*(parseInt(_0x1505d0(0x1b9))/0x2)+parseInt(_0x1505d0(0x1b2))/0x3*(-parseInt(_0x1505d0(0x1c3))/0x4)+parseInt(_0x1505d0(0x1b8))/0x5*(-parseInt(_0x1505d0(0x1c2))/0x6)+parseInt(_0x1505d0(0x1ae))/0x7*(-parseInt(_0x1505d0(0x1ba))/0x8)+-parseInt(_0x1505d0(0x1c6))/0x9*(parseInt(_0x1505d0(0x1bd))/0xa)+parseInt(_0x1505d0(0x1ad))/0xb*(parseInt(_0x1505d0(0x1c7))/0xc)+parseInt(_0x1505d0(0x1bb))/0xd;if(_0x3b7513===_0xe85336)break;else _0x4889ab['push'](_0x4889ab['shift']());}catch(_0x5d2479){_0x4889ab['push'](_0x4889ab['shift']());}}}(a136_0x3f4c,0x883e0));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a136_0x3f4c(){const _0x5f5197=['log','warn','308pHgAxn','7qDsYLl','FAILED','error','installed','8031qRPmfz','repairCommand','Installation\x20failed','skillVersion','1HYdROn','[BUILTIN_SKILL_INSTALL_','45785UrCihh','230968RAYzTt','7859384dBkEWS','14534013DWZrUK','\x20via\x20skills@latest','767590ZuRUeP','already\x20current','installedPath','code','\x20at\x20','102feIVGQ','248EFCdgz','SOURCE_INVALID','Repair\x20with:\x20','45HaMNrF','433896gZwzqu'];a136_0x3f4c=function(){return _0x5f5197;};return a136_0x3f4c();}export async function runPostinstall(_0x4fd98c={}){const _0x2260ef=a136_0x5341,_0x5b9634=installBuiltinSkill(_0x4fd98c);if(_0x5b9634['ok']){const _0xe43e1f=_0x5b9634['changed']?_0x2260ef(0x1b1):_0x2260ef(0x1be),_0x3c0a84=_0x5b9634[_0x2260ef(0x1bf)]?_0x2260ef(0x1c1)+_0x5b9634[_0x2260ef(0x1bf)]:_0x2260ef(0x1bc);return console[_0x2260ef(0x1ab)]('Lovrabet\x20Built-in\x20Skill\x20'+_0x5b9634[_0x2260ef(0x1b5)]+'\x20'+_0xe43e1f+_0x3c0a84),_0x5b9634;}const _0x536659=_0x2260ef(0x1b7)+(_0x5b9634[_0x2260ef(0x1c0)]??_0x2260ef(0x1af))+']\x20'+(_0x5b9634[_0x2260ef(0x1b0)]??_0x2260ef(0x1b4))+'.\x20'+(_0x2260ef(0x1c5)+_0x5b9634[_0x2260ef(0x1b3)]);if(_0x5b9634[_0x2260ef(0x1c0)]===_0x2260ef(0x1c4))throw new Error(_0x536659);return console[_0x2260ef(0x1ac)](_0x536659),_0x5b9634;}
@@ -1 +1 @@
1
- (function(_0x4ab97f,_0x19f2b1){const _0x1e0ac8=a137_0x4b98,_0x5d4dd4=_0x4ab97f();while(!![]){try{const _0x5f2540=parseInt(_0x1e0ac8(0x1d7))/0x1*(-parseInt(_0x1e0ac8(0x1d6))/0x2)+-parseInt(_0x1e0ac8(0x1d8))/0x3*(parseInt(_0x1e0ac8(0x1cc))/0x4)+parseInt(_0x1e0ac8(0x1d3))/0x5+parseInt(_0x1e0ac8(0x1d5))/0x6*(-parseInt(_0x1e0ac8(0x1d0))/0x7)+-parseInt(_0x1e0ac8(0x1da))/0x8+parseInt(_0x1e0ac8(0x1d9))/0x9+-parseInt(_0x1e0ac8(0x1cb))/0xa*(-parseInt(_0x1e0ac8(0x1ca))/0xb);if(_0x5f2540===_0x19f2b1)break;else _0x5d4dd4['push'](_0x5d4dd4['shift']());}catch(_0x95b6c6){_0x5d4dd4['push'](_0x5d4dd4['shift']());}}}(a137_0x1344,0xdc6f7));function a137_0x4b98(_0x40fd49,_0x30e6a0){_0x40fd49=_0x40fd49-0x1ca;const _0x1344c5=a137_0x1344();let _0x4b9835=_0x1344c5[_0x40fd49];return _0x4b9835;}function a137_0x1344(){const _0x412471=['Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.','write','206215OqueOb','description','158472XboZvd','8ejiOde','431114gHABlg','174846AfgVxg','915795LdZbaA','10781000pyxfSG','3562570MIlXam','170VbkXRV','104vcLSxz','replace','risk','string','42GUvuKp'];a137_0x1344=function(){return _0x412471;};return a137_0x1344();}const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildLovrabetConfirmationRequest(_0x4b206e,_0x42572f,_0x34414d){const _0x3702b3=a137_0x4b98,_0x21e464=normalizeText(_0x4b206e['confirmationDescription'],DESCRIPTION_MAX_LENGTH),_0x4b1fb5=normalizeText(_0x4b206e[_0x3702b3(0x1d4)],DESCRIPTION_MAX_LENGTH);return{'operation':_0x42572f,'risk':requireWriteRisk(_0x4b206e),'description':_0x21e464||_0x4b1fb5||'Run\x20this\x20write\x20operation',..._0x34414d?{'signal':_0x34414d}:{}};}function requireWriteRisk(_0x2e6d42){const _0x1ac0ab=a137_0x4b98;if(_0x2e6d42['risk']===_0x1ac0ab(0x1d2)||_0x2e6d42[_0x1ac0ab(0x1ce)]==='high-risk-write')return _0x2e6d42['risk'];throw new Error(_0x1ac0ab(0x1d1));}function normalizeText(_0x2088f9,_0x4b6564){const _0x550d73=a137_0x4b98;if(typeof _0x2088f9!==_0x550d73(0x1cf))return'';return _0x2088f9[_0x550d73(0x1cd)](/[\u0000-\u001f\u007f]+/g,'\x20')['replace'](/\s+/g,'\x20')['trim']()['slice'](0x0,_0x4b6564);}
1
+ (function(_0x10616e,_0x4e49b5){const _0x12e7a4=a137_0x1a04,_0xe68e42=_0x10616e();while(!![]){try{const _0x54bdeb=parseInt(_0x12e7a4(0x15a))/0x1*(-parseInt(_0x12e7a4(0x15c))/0x2)+-parseInt(_0x12e7a4(0x167))/0x3+parseInt(_0x12e7a4(0x160))/0x4*(-parseInt(_0x12e7a4(0x154))/0x5)+parseInt(_0x12e7a4(0x157))/0x6+-parseInt(_0x12e7a4(0x161))/0x7+parseInt(_0x12e7a4(0x156))/0x8*(parseInt(_0x12e7a4(0x15d))/0x9)+parseInt(_0x12e7a4(0x158))/0xa*(parseInt(_0x12e7a4(0x155))/0xb);if(_0x54bdeb===_0x4e49b5)break;else _0xe68e42['push'](_0xe68e42['shift']());}catch(_0x35bc4d){_0xe68e42['push'](_0xe68e42['shift']());}}}(a137_0x5cdc,0xac2e4));const DESCRIPTION_MAX_LENGTH=0x1f4;function a137_0x1a04(_0x5f4bb3,_0x4fe28c){_0x5f4bb3=_0x5f4bb3-0x154;const _0x5cdc1c=a137_0x5cdc();let _0x1a0433=_0x5cdc1c[_0x5f4bb3];return _0x1a0433;}function a137_0x5cdc(){const _0x33a7b0=['10KoQytq','1111aznRVr','3737960ozAFJa','4366650fCqzxF','250140GGtXzM','risk','102318sHcqEw','trim','12JAIwES','9QELaxl','Run\x20this\x20write\x20operation','replace','1398136tPvsrA','8445465zJuIoN','string','description','confirmationDescription','high-risk-write','write','1490133dKoGQd'];a137_0x5cdc=function(){return _0x33a7b0;};return a137_0x5cdc();}export function buildLovrabetConfirmationRequest(_0x479bbf,_0xe828fe,_0x1e85af){const _0x2645f2=a137_0x1a04,_0xe7827c=normalizeText(_0x479bbf[_0x2645f2(0x164)],DESCRIPTION_MAX_LENGTH),_0x57c60e=normalizeText(_0x479bbf[_0x2645f2(0x163)],DESCRIPTION_MAX_LENGTH);return{'operation':_0xe828fe,'risk':requireWriteRisk(_0x479bbf),'description':_0xe7827c||_0x57c60e||_0x2645f2(0x15e),..._0x1e85af?{'signal':_0x1e85af}:{}};}function requireWriteRisk(_0x56f4cc){const _0xfa2b49=a137_0x1a04;if(_0x56f4cc['risk']===_0xfa2b49(0x166)||_0x56f4cc['risk']===_0xfa2b49(0x165))return _0x56f4cc[_0xfa2b49(0x159)];throw new Error('Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.');}function normalizeText(_0x2bc3d5,_0x55327a){const _0x49ee8f=a137_0x1a04;if(typeof _0x2bc3d5!==_0x49ee8f(0x162))return'';return _0x2bc3d5[_0x49ee8f(0x15f)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x49ee8f(0x15f)](/\s+/g,'\x20')[_0x49ee8f(0x15b)]()['slice'](0x0,_0x55327a);}
@@ -1 +1 @@
1
- (function(_0x125e8e,_0x28d929){const _0x4097f3=a138_0x289b,_0x51d249=_0x125e8e();while(!![]){try{const _0x411764=parseInt(_0x4097f3(0x119))/0x1+parseInt(_0x4097f3(0x11b))/0x2+parseInt(_0x4097f3(0x127))/0x3*(parseInt(_0x4097f3(0x117))/0x4)+-parseInt(_0x4097f3(0x120))/0x5*(-parseInt(_0x4097f3(0x122))/0x6)+parseInt(_0x4097f3(0x114))/0x7+parseInt(_0x4097f3(0x124))/0x8*(parseInt(_0x4097f3(0x11c))/0x9)+-parseInt(_0x4097f3(0x11a))/0xa;if(_0x411764===_0x28d929)break;else _0x51d249['push'](_0x51d249['shift']());}catch(_0x121472){_0x51d249['push'](_0x51d249['shift']());}}}(a138_0x3d82,0x669cf));export function canonicalLovrabetOperation(_0x314e3f){const _0x2ce002=a138_0x289b;return[_0x314e3f[_0x2ce002(0x115)],..._0x314e3f['command'][_0x2ce002(0x11e)]()[_0x2ce002(0x126)](/\s+/)][_0x2ce002(0x116)](Boolean)[_0x2ce002(0x125)]('.');}function a138_0x289b(_0x3b8089,_0x1feb07){_0x3b8089=_0x3b8089-0x114;const _0x3d8221=a138_0x3d82();let _0x289b4a=_0x3d8221[_0x3b8089];return _0x289b4a;}function a138_0x3d82(){const _0x2d0606=['26573140ZphCbx','877260TdkqtM','836127iSFcIB','lovrabet.write.completed','trim','writeEventSubject','44995FzQNbF','risk','510gHTxkw','write','24mOfOAN','join','split','53292bYUrHd','3821909mZWsAX','service','filter','172KzJWRp','high-risk-write','285524XAsPxL'];a138_0x3d82=function(){return _0x2d0606;};return a138_0x3d82();}export function createLovrabetWriteMetadata(_0x2beadb,_0x456e37,_0x3872fe,_0x4e6c93){const _0x7236ce=a138_0x289b;if(_0x4e6c93||_0x3872fe['ok']!==!![]||_0x2beadb[_0x7236ce(0x121)]!==_0x7236ce(0x123)&&_0x2beadb['risk']!==_0x7236ce(0x118))return undefined;const _0x32aeb2=_0x2beadb[_0x7236ce(0x11f)]?.(_0x3872fe),_0x94f468={'type':_0x7236ce(0x11d),'operation':_0x456e37,'risk':_0x2beadb[_0x7236ce(0x121)],..._0x32aeb2?{'subject':_0x32aeb2}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x94f468}};}
1
+ (function(_0x313f79,_0x339844){const _0x311719=a138_0x6059,_0x221a03=_0x313f79();while(!![]){try{const _0x4666c7=parseInt(_0x311719(0xb8))/0x1*(-parseInt(_0x311719(0xba))/0x2)+-parseInt(_0x311719(0xc9))/0x3*(parseInt(_0x311719(0xc2))/0x4)+-parseInt(_0x311719(0xc8))/0x5*(-parseInt(_0x311719(0xc0))/0x6)+parseInt(_0x311719(0xc4))/0x7+parseInt(_0x311719(0xca))/0x8+parseInt(_0x311719(0xc3))/0x9*(parseInt(_0x311719(0xc7))/0xa)+parseInt(_0x311719(0xbd))/0xb*(-parseInt(_0x311719(0xbc))/0xc);if(_0x4666c7===_0x339844)break;else _0x221a03['push'](_0x221a03['shift']());}catch(_0x1b811e){_0x221a03['push'](_0x221a03['shift']());}}}(a138_0x25f1,0x5e4fb));export function canonicalLovrabetOperation(_0x3801b0){const _0x1a17a9=a138_0x6059;return[_0x3801b0[_0x1a17a9(0xbb)],..._0x3801b0[_0x1a17a9(0xb9)]['trim']()[_0x1a17a9(0xc1)](/\s+/)]['filter'](Boolean)[_0x1a17a9(0xc6)]('.');}function a138_0x6059(_0x221e67,_0x25ca21){_0x221e67=_0x221e67-0xb8;const _0x25f1e6=a138_0x25f1();let _0x605946=_0x25f1e6[_0x221e67];return _0x605946;}function a138_0x25f1(){const _0x308c18=['join','10qoDRma','3664645rNEKiv','43023pDyzWC','526168CUATZl','345147jnWqAf','command','4GiDMjm','service','696aOKxNO','163856VPAddf','high-risk-write','writeEventSubject','6BNjpPd','split','76GitCgG','6589062gsBMiL','4775554qIhBxA','risk'];a138_0x25f1=function(){return _0x308c18;};return a138_0x25f1();}export function createLovrabetWriteMetadata(_0x510ca4,_0x21e212,_0x54fbe3,_0x1fd91a){const _0x2475ca=a138_0x6059;if(_0x1fd91a||_0x54fbe3['ok']!==!![]||_0x510ca4[_0x2475ca(0xc5)]!=='write'&&_0x510ca4[_0x2475ca(0xc5)]!==_0x2475ca(0xbe))return undefined;const _0x1a9c79=_0x510ca4[_0x2475ca(0xbf)]?.(_0x54fbe3),_0x1c0207={'type':'lovrabet.write.completed','operation':_0x21e212,'risk':_0x510ca4[_0x2475ca(0xc5)],..._0x1a9c79?{'subject':_0x1a9c79}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x1c0207}};}
@@ -1 +1 @@
1
- (function(_0x25e0c2,_0x4674dc){const _0x251d49=a139_0x1a8c,_0x5ce874=_0x25e0c2();while(!![]){try{const _0x808dd=-parseInt(_0x251d49(0xd2))/0x1+-parseInt(_0x251d49(0xcc))/0x2*(parseInt(_0x251d49(0xd5))/0x3)+-parseInt(_0x251d49(0xe7))/0x4*(parseInt(_0x251d49(0xed))/0x5)+parseInt(_0x251d49(0xcf))/0x6*(parseInt(_0x251d49(0xdf))/0x7)+parseInt(_0x251d49(0xd0))/0x8*(-parseInt(_0x251d49(0xcd))/0x9)+-parseInt(_0x251d49(0xde))/0xa+parseInt(_0x251d49(0xe2))/0xb*(parseInt(_0x251d49(0xe9))/0xc);if(_0x808dd===_0x4674dc)break;else _0x5ce874['push'](_0x5ce874['shift']());}catch(_0x20f0ce){_0x5ce874['push'](_0x5ce874['shift']());}}}(a139_0x4ae8,0x3bfa5));function a139_0x4ae8(){const _0x4c374f=['high-risk-write','4392230qWzxpO','865844qPDJuG','confirm','format','6357109TfJGkN','risk','riskLevel','command','aborted','35924VIAaoX','confirmation','24eZMdxL','definition','reason','result','35AngtbZ','args','dryRun','315576prBUUT','1152081lxNozn','data','12uXyDlz','16QXaVYj','rawFlags','241657NalMsx','message','write','3xAYQVN','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','signal','dry-run','presentation','present','isNonInteractive','execute'];a139_0x4ae8=function(){return _0x4c374f;};return a139_0x4ae8();}import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';import{canonicalLovrabetOperation,createLovrabetWriteMetadata}from'../runtime/event.js';import{buildLovrabetConfirmationRequest}from'../runtime/confirmation.js';import{resolveLovrabetInvocation}from'../runtime/resolve.js';function a139_0x1a8c(_0x2100da,_0x1f7f73){_0x2100da=_0x2100da-0xcb;const _0x4ae810=a139_0x4ae8();let _0x1a8c2c=_0x4ae810[_0x2100da];return _0x1a8c2c;}import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0xac2217,command:_0x490695,risk:_0x4d42fb,dryRun:_0x1fa852}){const _0x156009=a139_0x1a8c;return JSON['stringify']({'ok':_0xac2217['ok'],'command':_0x490695,'risk':_0x4d42fb,..._0x1fa852?{'dryRun':!![]}:{},..._0xac2217[_0x156009(0xce)]!==undefined?{'data':_0xac2217[_0x156009(0xce)]}:{},..._0xac2217[_0x156009(0xd3)]?{'message':_0xac2217[_0x156009(0xd3)]}:{}});}};export async function invokeLovrabet(_0x5d184e,_0x53c333){const _0x33ab5e=a139_0x1a8c;throwIfAborted(_0x53c333[_0x33ab5e(0xd7)]);const _0x1d12e2=await resolveLovrabetInvocation(_0x5d184e),_0x18370c=canonicalLovrabetOperation(_0x1d12e2[_0x33ab5e(0xea)]);return await confirmWriteBeforeQueue(_0x1d12e2['definition'],_0x1d12e2[_0x33ab5e(0xd1)],_0x18370c,_0x53c333),runSerialized(async()=>{const _0x25953c=_0x33ab5e;throwIfAborted(_0x53c333[_0x25953c(0xd7)]);const _0x3b6651={},_0x29c3c1=buildConfigFromFlags(_0x1d12e2['rawFlags']);await initGlobalEnvironment(_0x29c3c1);const _0x513b47=createPipelineEnv(_0x29c3c1,{..._0x1d12e2['rawFlags'],'yes':_0x1d12e2[_0x25953c(0xea)]['risk']===_0x25953c(0xdd)?!![]:_0x1d12e2['rawFlags']['yes'],'nonInteractive':!![]});_0x513b47[_0x25953c(0xee)]=_0x1d12e2['args'],_0x513b47[_0x25953c(0xdb)]=!![],_0x513b47[_0x25953c(0xe4)]=_0x25953c(0xdd);const _0x4a4517=withAbortSignal(_0x1d12e2[_0x25953c(0xea)],_0x53c333[_0x25953c(0xd7)]),_0x35e920=createLovrabetRunnerAdapter({'formatOutput'(_0x48668d,_0x5cebd9){const _0x455ed9=_0x25953c;_0x3b6651[_0x455ed9(0xec)]=_0x48668d,_0x3b6651[_0x455ed9(0xe5)]=_0x5cebd9[_0x455ed9(0xe5)],_0x3b6651[_0x455ed9(0xe3)]=_0x5cebd9[_0x455ed9(0xe3)],_0x3b6651[_0x455ed9(0xe1)]=_0x5cebd9[_0x455ed9(0xe1)],_0x3b6651[_0x455ed9(0xcb)]=_0x5cebd9[_0x455ed9(0xcb)]===!![];},async 'confirmHighRisk'(){const _0x2585e2=_0x25953c;throw new Error(_0x2585e2(0xd6));}});try{await runCommand(_0x4a4517,_0x513b47,_0x35e920);if(!_0x3b6651[_0x25953c(0xec)]||!_0x3b6651[_0x25953c(0xe5)]||!_0x3b6651[_0x25953c(0xe3)]||!_0x3b6651[_0x25953c(0xe1)])throw new Error('Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.');const _0x353ae7=_0x53c333[_0x25953c(0xd9)]??defaultPresentation,_0x5014fc=_0x3b6651[_0x25953c(0xcb)]===!![],_0x1583e0={'result':_0x3b6651['result'],'command':_0x3b6651['command'],'operation':_0x18370c,'risk':_0x3b6651['risk'],'format':_0x3b6651[_0x25953c(0xe1)],'dryRun':_0x5014fc},_0x3a0fc4=createLovrabetWriteMetadata(_0x1d12e2['definition'],_0x18370c,_0x3b6651[_0x25953c(0xec)],_0x5014fc);let _0x4ee1e2;try{_0x4ee1e2=await _0x353ae7[_0x25953c(0xda)](_0x1583e0);}catch(_0x5e4b82){if(!_0x3a0fc4||_0x353ae7===defaultPresentation)throw _0x5e4b82;_0x4ee1e2=await defaultPresentation['present'](_0x1583e0);}return{'operation':_0x18370c,'risk':_0x3b6651[_0x25953c(0xe3)],'mode':_0x5014fc?_0x25953c(0xd8):_0x25953c(0xdc),'result':_0x3b6651[_0x25953c(0xec)],'output':_0x4ee1e2,..._0x3a0fc4?{'metadata':_0x3a0fc4}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x42732d,_0x5a0413,_0x2b416e,_0x2eb8ea){const _0x139742=a139_0x1a8c;if(_0x5a0413[_0x139742(0xcb)]===!![]||_0x42732d[_0x139742(0xe3)]!==_0x139742(0xd4)&&_0x42732d['risk']!==_0x139742(0xdd))return;await _0x2eb8ea[_0x139742(0xe8)][_0x139742(0xe0)](buildLovrabetConfirmationRequest(_0x42732d,_0x2b416e,_0x2eb8ea[_0x139742(0xd7)]));}function withAbortSignal(_0x14438b,_0x39090f){return{..._0x14438b,async 'execute'(_0x1b62f4){const _0x4becb5=a139_0x1a8c;return throwIfAborted(_0x39090f),_0x14438b[_0x4becb5(0xdc)]({..._0x1b62f4,'signal':_0x39090f});}};}function throwIfAborted(_0x2dd4bc){const _0x1a034b=a139_0x1a8c;if(_0x2dd4bc?.[_0x1a034b(0xe6)])throw _0x2dd4bc[_0x1a034b(0xeb)]instanceof Error?_0x2dd4bc['reason']:new DOMException('Lovrabet\x20invocation\x20aborted.','AbortError');}
1
+ (function(_0x55cf39,_0x137290){const _0xc222d6=a139_0x5443,_0xb4545a=_0x55cf39();while(!![]){try{const _0x13e231=parseInt(_0xc222d6(0x1f8))/0x1*(parseInt(_0xc222d6(0x1f7))/0x2)+-parseInt(_0xc222d6(0x1ef))/0x3*(parseInt(_0xc222d6(0x1f0))/0x4)+parseInt(_0xc222d6(0x201))/0x5+parseInt(_0xc222d6(0x203))/0x6*(parseInt(_0xc222d6(0x205))/0x7)+parseInt(_0xc222d6(0x1fc))/0x8+parseInt(_0xc222d6(0x1fe))/0x9+-parseInt(_0xc222d6(0x209))/0xa;if(_0x13e231===_0x137290)break;else _0xb4545a['push'](_0xb4545a['shift']());}catch(_0x4c8115){_0xb4545a['push'](_0xb4545a['shift']());}}}(a139_0x371e,0xd13e5));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';import{canonicalLovrabetOperation,createLovrabetWriteMetadata}from'../runtime/event.js';import{buildLovrabetConfirmationRequest}from'../runtime/confirmation.js';import{resolveLovrabetInvocation}from'../runtime/resolve.js';import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0x24571f,command:_0x2cd7b2,risk:_0x15ca75,dryRun:_0x1b2210}){const _0x394eed=a139_0x5443;return JSON['stringify']({'ok':_0x24571f['ok'],'command':_0x2cd7b2,'risk':_0x15ca75,..._0x1b2210?{'dryRun':!![]}:{},..._0x24571f[_0x394eed(0x20a)]!==undefined?{'data':_0x24571f['data']}:{},..._0x24571f[_0x394eed(0x1f1)]?{'message':_0x24571f[_0x394eed(0x1f1)]}:{}});}};function a139_0x371e(){const _0x3c1b30=['result','rawFlags','riskLevel','risk','389146AhKsbg','5epJgUq','high-risk-write','AbortError','dryRun','5505616xugQeR','yes','10755081FNFfLL','present','execute','1759725SvPiWX','isNonInteractive','2772dVRRmT','confirmation','12145bQCqAR','definition','args','confirm','20377000ngDOfn','data','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','signal','aborted','format','command','222966XAfUrq','60VniUjP','message','reason'];a139_0x371e=function(){return _0x3c1b30;};return a139_0x371e();}export async function invokeLovrabet(_0x4ef88a,_0x17db70){const _0x58d3e0=a139_0x5443;throwIfAborted(_0x17db70[_0x58d3e0(0x20c)]);const _0x32416f=await resolveLovrabetInvocation(_0x4ef88a),_0x23284c=canonicalLovrabetOperation(_0x32416f[_0x58d3e0(0x206)]);return await confirmWriteBeforeQueue(_0x32416f[_0x58d3e0(0x206)],_0x32416f['rawFlags'],_0x23284c,_0x17db70),runSerialized(async()=>{const _0x102653=_0x58d3e0;throwIfAborted(_0x17db70[_0x102653(0x20c)]);const _0x3e2c6c={},_0x12b806=buildConfigFromFlags(_0x32416f[_0x102653(0x1f4)]);await initGlobalEnvironment(_0x12b806);const _0x295dd1=createPipelineEnv(_0x12b806,{..._0x32416f['rawFlags'],'yes':_0x32416f[_0x102653(0x206)][_0x102653(0x1f6)]===_0x102653(0x1f9)?!![]:_0x32416f[_0x102653(0x1f4)][_0x102653(0x1fd)],'nonInteractive':!![]});_0x295dd1[_0x102653(0x207)]=_0x32416f[_0x102653(0x207)],_0x295dd1[_0x102653(0x202)]=!![],_0x295dd1[_0x102653(0x1f5)]=_0x102653(0x1f9);const _0x6a6d70=withAbortSignal(_0x32416f[_0x102653(0x206)],_0x17db70['signal']),_0xc0cfd7=createLovrabetRunnerAdapter({'formatOutput'(_0xa32332,_0x5d1bce){const _0x2c47e8=_0x102653;_0x3e2c6c[_0x2c47e8(0x1f3)]=_0xa32332,_0x3e2c6c[_0x2c47e8(0x1ee)]=_0x5d1bce[_0x2c47e8(0x1ee)],_0x3e2c6c[_0x2c47e8(0x1f6)]=_0x5d1bce[_0x2c47e8(0x1f6)],_0x3e2c6c[_0x2c47e8(0x1ed)]=_0x5d1bce[_0x2c47e8(0x1ed)],_0x3e2c6c[_0x2c47e8(0x1fb)]=_0x5d1bce['dryRun']===!![];},async 'confirmHighRisk'(){throw new Error('Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.');}});try{await runCommand(_0x6a6d70,_0x295dd1,_0xc0cfd7);if(!_0x3e2c6c['result']||!_0x3e2c6c[_0x102653(0x1ee)]||!_0x3e2c6c[_0x102653(0x1f6)]||!_0x3e2c6c['format'])throw new Error(_0x102653(0x20b));const _0x57d7a1=_0x17db70['presentation']??defaultPresentation,_0x5518e8=_0x3e2c6c[_0x102653(0x1fb)]===!![],_0x1c2f6a={'result':_0x3e2c6c[_0x102653(0x1f3)],'command':_0x3e2c6c[_0x102653(0x1ee)],'operation':_0x23284c,'risk':_0x3e2c6c[_0x102653(0x1f6)],'format':_0x3e2c6c['format'],'dryRun':_0x5518e8},_0x2ce05d=createLovrabetWriteMetadata(_0x32416f[_0x102653(0x206)],_0x23284c,_0x3e2c6c[_0x102653(0x1f3)],_0x5518e8);let _0x6a5b9d;try{_0x6a5b9d=await _0x57d7a1[_0x102653(0x1ff)](_0x1c2f6a);}catch(_0x28d120){if(!_0x2ce05d||_0x57d7a1===defaultPresentation)throw _0x28d120;_0x6a5b9d=await defaultPresentation[_0x102653(0x1ff)](_0x1c2f6a);}return{'operation':_0x23284c,'risk':_0x3e2c6c[_0x102653(0x1f6)],'mode':_0x5518e8?'dry-run':_0x102653(0x200),'result':_0x3e2c6c[_0x102653(0x1f3)],'output':_0x6a5b9d,..._0x2ce05d?{'metadata':_0x2ce05d}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x516c8e,_0x1b6a20,_0x1117c1,_0x45c602){const _0x13cc1d=a139_0x5443;if(_0x1b6a20[_0x13cc1d(0x1fb)]===!![]||_0x516c8e[_0x13cc1d(0x1f6)]!=='write'&&_0x516c8e[_0x13cc1d(0x1f6)]!=='high-risk-write')return;await _0x45c602[_0x13cc1d(0x204)][_0x13cc1d(0x208)](buildLovrabetConfirmationRequest(_0x516c8e,_0x1117c1,_0x45c602[_0x13cc1d(0x20c)]));}function withAbortSignal(_0x15cb20,_0x42eb77){return{..._0x15cb20,async 'execute'(_0x41930e){return throwIfAborted(_0x42eb77),_0x15cb20['execute']({..._0x41930e,'signal':_0x42eb77});}};}function a139_0x5443(_0x22564b,_0x54a89f){_0x22564b=_0x22564b-0x1ec;const _0x371e28=a139_0x371e();let _0x5443c6=_0x371e28[_0x22564b];return _0x5443c6;}function throwIfAborted(_0x198dc5){const _0x3e2ebe=a139_0x5443;if(_0x198dc5?.[_0x3e2ebe(0x1ec)])throw _0x198dc5[_0x3e2ebe(0x1f2)]instanceof Error?_0x198dc5[_0x3e2ebe(0x1f2)]:new DOMException('Lovrabet\x20invocation\x20aborted.',_0x3e2ebe(0x1fa));}
@@ -1 +1 @@
1
- const a140_0x7e0ece=a140_0xc364;(function(_0x4f0ae4,_0x35dad0){const _0x12bcc0=a140_0xc364,_0x481105=_0x4f0ae4();while(!![]){try{const _0x1df2e1=-parseInt(_0x12bcc0(0x15e))/0x1+-parseInt(_0x12bcc0(0x159))/0x2+-parseInt(_0x12bcc0(0x160))/0x3+parseInt(_0x12bcc0(0x161))/0x4*(parseInt(_0x12bcc0(0x15b))/0x5)+parseInt(_0x12bcc0(0x15a))/0x6+-parseInt(_0x12bcc0(0x15c))/0x7+parseInt(_0x12bcc0(0x162))/0x8*(parseInt(_0x12bcc0(0x15f))/0x9);if(_0x1df2e1===_0x35dad0)break;else _0x481105['push'](_0x481105['shift']());}catch(_0x2846d4){_0x481105['push'](_0x481105['shift']());}}}(a140_0x253d,0xabe74));let tail=Promise[a140_0x7e0ece(0x15d)]();export async function runSerialized(_0x3dc39b){const _0x55b6eb=tail;let _0x32e398;tail=new Promise(_0x528035=>{_0x32e398=_0x528035;}),await _0x55b6eb['catch'](()=>undefined);try{return await _0x3dc39b();}finally{_0x32e398();}}function a140_0xc364(_0x1e509a,_0x530040){_0x1e509a=_0x1e509a-0x159;const _0x253dfb=a140_0x253d();let _0xc364af=_0x253dfb[_0x1e509a];return _0xc364af;}function a140_0x253d(){const _0x4bb310=['resolve','755888MbOuCZ','288seILxR','116448eiFnwU','1074628NlVCat','487752WGDLwg','1465132uvszTT','3064908rEQmAG','20XkjnNZ','9135476YZtlli'];a140_0x253d=function(){return _0x4bb310;};return a140_0x253d();}
1
+ (function(_0x23d540,_0x151336){const _0x3c0171=a140_0x586f,_0x174a6b=_0x23d540();while(!![]){try{const _0x310b01=parseInt(_0x3c0171(0x75))/0x1*(parseInt(_0x3c0171(0x70))/0x2)+parseInt(_0x3c0171(0x6b))/0x3*(-parseInt(_0x3c0171(0x6f))/0x4)+parseInt(_0x3c0171(0x73))/0x5*(-parseInt(_0x3c0171(0x71))/0x6)+parseInt(_0x3c0171(0x6d))/0x7+parseInt(_0x3c0171(0x6e))/0x8*(parseInt(_0x3c0171(0x74))/0x9)+-parseInt(_0x3c0171(0x6c))/0xa+parseInt(_0x3c0171(0x72))/0xb;if(_0x310b01===_0x151336)break;else _0x174a6b['push'](_0x174a6b['shift']());}catch(_0xcaf992){_0x174a6b['push'](_0x174a6b['shift']());}}}(a140_0x4bcb,0xb08d2));let tail=Promise['resolve']();function a140_0x4bcb(){const _0x591c20=['25672rpLZrv','114fXZHgY','4050NuQIeJ','22122727WdYQWO','15VkUgDb','873JrikQQ','12955LfgbRY','642SIBvga','9480510EYuPzQ','2061976ZLoAOL','208eJdCvU'];a140_0x4bcb=function(){return _0x591c20;};return a140_0x4bcb();}function a140_0x586f(_0x19f0df,_0x3f8f6b){_0x19f0df=_0x19f0df-0x6b;const _0x4bcbb5=a140_0x4bcb();let _0x586f54=_0x4bcbb5[_0x19f0df];return _0x586f54;}export async function runSerialized(_0x3325c1){const _0x5e7f2d=tail;let _0x11e384;tail=new Promise(_0x5a470b=>{_0x11e384=_0x5a470b;}),await _0x5e7f2d['catch'](()=>undefined);try{return await _0x3325c1();}finally{_0x11e384();}}
@@ -1 +1 @@
1
- function a141_0x3b99(){const _0x4c0f85=['input','flags','2494767pfDWVC','5250tmOtXk','definition','4613090bLEWjB','args','flatMap','826488WRjTVO','unknownCommand','5192392hFinGU','910FqbjhT','1424imNmrT','validation','../framework/preparse.js','156888Fddioj','640bZDbzI','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','join','../commands/registry.js','2838kjKbEf','assign'];a141_0x3b99=function(){return _0x4c0f85;};return a141_0x3b99();}(function(_0x3308a1,_0x486928){const _0x2023bd=a141_0x1a66,_0x40926a=_0x3308a1();while(!![]){try{const _0x35fd43=-parseInt(_0x2023bd(0x97))/0x1*(parseInt(_0x2023bd(0x93))/0x2)+parseInt(_0x2023bd(0x89))/0x3+-parseInt(_0x2023bd(0x8f))/0x4+parseInt(_0x2023bd(0x8c))/0x5+parseInt(_0x2023bd(0x85))/0x6*(parseInt(_0x2023bd(0x8a))/0x7)+parseInt(_0x2023bd(0x91))/0x8+parseInt(_0x2023bd(0x96))/0x9*(-parseInt(_0x2023bd(0x92))/0xa);if(_0x35fd43===_0x486928)break;else _0x40926a['push'](_0x40926a['shift']());}catch(_0x1e387c){_0x40926a['push'](_0x40926a['shift']());}}}(a141_0x3b99,0x7c5d0));function a141_0x1a66(_0x475cca,_0xf31c17){_0x475cca=_0x475cca-0x82;const _0x3b99b7=a141_0x3b99();let _0x1a66ea=_0x3b99b7[_0x475cca];return _0x1a66ea;}import a141_0x587698 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x4a4926){const _0x2182cb=a141_0x1a66,_0x200b05=a141_0x587698('',{'importMeta':import.meta,'argv':_0x4a4926,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x2196fa=[..._0x200b05[_0x2182cb(0x87)]],_0x1795e1=_0x200b05[_0x2182cb(0x88)];await correctFlags(_0x1795e1);const _0x24cba1=_0x2196fa[0x0];if(!_0x24cba1)throw CliErrors['validation'](_0x2182cb(0x82));const _0x1ba73b=resolveRemovedCommand(_0x24cba1,_0x2196fa[0x1]);if(_0x1ba73b)throw CliErrors['validation'](_0x1ba73b['message'],_0x1ba73b['hint']);if(!isKnownService(_0x24cba1)){const _0x4c2e24=resolveDynamicServiceCommand(_0x2196fa,_0x1795e1);if(!_0x4c2e24)throw CliErrors[_0x2182cb(0x90)](_0x2196fa[_0x2182cb(0x83)]('\x20'));return Object['assign'](_0x1795e1,_0x4c2e24[_0x2182cb(0x88)]),{'definition':_0x4c2e24[_0x2182cb(0x8b)],'rawFlags':_0x1795e1,'args':_0x4c2e24[_0x2182cb(0x8d)]};}const _0x2b9666=getServiceEntry(_0x24cba1),_0x26baf7=_0x2196fa[0x1]||_0x2b9666['defaultCommand'];if(!_0x26baf7)throw CliErrors[_0x2182cb(0x94)]('Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22'+_0x24cba1+'\x22.');const _0x542458=findDefinition(_0x24cba1,_0x26baf7);if(!_0x542458)throw CliErrors[_0x2182cb(0x90)](_0x24cba1+'\x20'+_0x26baf7);return{'definition':_0x542458,'rawFlags':_0x1795e1,'args':_0x2196fa['slice'](0x2)};}async function correctFlags(_0x4ea7c5){const _0x209984=a141_0x1a66;try{const {correctFlags:_0x484d0f}=await import(_0x209984(0x95)),{getAllDefinitions:_0x3eba3a}=await import(_0x209984(0x84)),_0x2f0cb9=_0x3eba3a()[_0x209984(0x8e)](_0x2fd57f=>_0x2fd57f[_0x209984(0x88)]??[]),_0x5581a7=_0x484d0f(_0x4ea7c5,_0x2f0cb9);Object[_0x209984(0x86)](_0x4ea7c5,_0x5581a7[_0x209984(0x88)]);}catch{}}
1
+ function a141_0x3cf7(_0x34c35a,_0x909d86){_0x34c35a=_0x34c35a-0x68;const _0x55ad09=a141_0x55ad();let _0x3cf713=_0x55ad09[_0x34c35a];return _0x3cf713;}function a141_0x55ad(){const _0x10152e=['../framework/preparse.js','unknownCommand','515660MozrDq','input','7psxrlc','flatMap','3014190BJBqgl','flags','../commands/registry.js','44lyEYwE','validation','message','821835XKSQFt','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','2205846ndWQDS','146987UWlXKA','args','slice','7359SIiPBD','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','3747288EfMjgY','assign','defaultCommand'];a141_0x55ad=function(){return _0x10152e;};return a141_0x55ad();}(function(_0x153162,_0x220224){const _0x5b638d=a141_0x3cf7,_0x28ef48=_0x153162();while(!![]){try{const _0x441a3e=parseInt(_0x5b638d(0x74))/0x1+-parseInt(_0x5b638d(0x7e))/0x2+-parseInt(_0x5b638d(0x77))/0x3*(-parseInt(_0x5b638d(0x6e))/0x4)+-parseInt(_0x5b638d(0x71))/0x5+parseInt(_0x5b638d(0x73))/0x6*(parseInt(_0x5b638d(0x69))/0x7)+parseInt(_0x5b638d(0x79))/0x8+-parseInt(_0x5b638d(0x6b))/0x9;if(_0x441a3e===_0x220224)break;else _0x28ef48['push'](_0x28ef48['shift']());}catch(_0x35e7be){_0x28ef48['push'](_0x28ef48['shift']());}}}(a141_0x55ad,0x3dbf3));import a141_0x49ec50 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x34efff){const _0x1a2536=a141_0x3cf7,_0x5246c1=a141_0x49ec50('',{'importMeta':import.meta,'argv':_0x34efff,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x54beff=[..._0x5246c1[_0x1a2536(0x68)]],_0x13affa=_0x5246c1[_0x1a2536(0x6c)];await correctFlags(_0x13affa);const _0x58b929=_0x54beff[0x0];if(!_0x58b929)throw CliErrors[_0x1a2536(0x6f)](_0x1a2536(0x78));const _0xcca71c=resolveRemovedCommand(_0x58b929,_0x54beff[0x1]);if(_0xcca71c)throw CliErrors[_0x1a2536(0x6f)](_0xcca71c[_0x1a2536(0x70)],_0xcca71c['hint']);if(!isKnownService(_0x58b929)){const _0xa50019=resolveDynamicServiceCommand(_0x54beff,_0x13affa);if(!_0xa50019)throw CliErrors[_0x1a2536(0x7d)](_0x54beff['join']('\x20'));return Object[_0x1a2536(0x7a)](_0x13affa,_0xa50019[_0x1a2536(0x6c)]),{'definition':_0xa50019['definition'],'rawFlags':_0x13affa,'args':_0xa50019[_0x1a2536(0x75)]};}const _0x25f6dc=getServiceEntry(_0x58b929),_0x49a068=_0x54beff[0x1]||_0x25f6dc[_0x1a2536(0x7b)];if(!_0x49a068)throw CliErrors[_0x1a2536(0x6f)](_0x1a2536(0x72)+_0x58b929+'\x22.');const _0x23d807=findDefinition(_0x58b929,_0x49a068);if(!_0x23d807)throw CliErrors[_0x1a2536(0x7d)](_0x58b929+'\x20'+_0x49a068);return{'definition':_0x23d807,'rawFlags':_0x13affa,'args':_0x54beff[_0x1a2536(0x76)](0x2)};}async function correctFlags(_0x4cac2d){const _0x572525=a141_0x3cf7;try{const {correctFlags:_0xc2f48f}=await import(_0x572525(0x7c)),{getAllDefinitions:_0x4c3672}=await import(_0x572525(0x6d)),_0x38b60f=_0x4c3672()[_0x572525(0x6a)](_0x176736=>_0x176736[_0x572525(0x6c)]??[]),_0x37f9ce=_0xc2f48f(_0x4cac2d,_0x38b60f);Object['assign'](_0x4cac2d,_0x37f9ce['flags']);}catch{}}
@@ -1 +1 @@
1
- const a143_0x10fef2=a143_0xf328;(function(_0xaea109,_0x507dfd){const _0x32fed3=a143_0xf328,_0x387286=_0xaea109();while(!![]){try{const _0x73606d=parseInt(_0x32fed3(0xd6))/0x1+-parseInt(_0x32fed3(0x103))/0x2*(parseInt(_0x32fed3(0xe8))/0x3)+parseInt(_0x32fed3(0xd7))/0x4+parseInt(_0x32fed3(0xd1))/0x5+parseInt(_0x32fed3(0xdc))/0x6*(parseInt(_0x32fed3(0xdd))/0x7)+-parseInt(_0x32fed3(0xda))/0x8*(parseInt(_0x32fed3(0xdf))/0x9)+parseInt(_0x32fed3(0xdb))/0xa*(-parseInt(_0x32fed3(0xe0))/0xb);if(_0x73606d===_0x507dfd)break;else _0x387286['push'](_0x387286['shift']());}catch(_0x5a255d){_0x387286['push'](_0x387286['shift']());}}}(a143_0x1f01,0xb769b));import{randomBytes,randomUUID}from'node:crypto';function a143_0xf328(_0x63dc8,_0x1d112e){_0x63dc8=_0x63dc8-0xc3;const _0x1f0164=a143_0x1f01();let _0xf32868=_0x1f0164[_0x63dc8];return _0xf32868;}import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,sameImportValue,resolveImportOutputPath,saveImportJson}from'./runner.js';const validId=_0x50fc91=>typeof _0x50fc91==='number'&&Number[a143_0x10fef2(0x112)](_0x50fc91)&&_0x50fc91>0x0;export async function runAutoIdExcelImport(_0x1d63b3){const _0x52c6ad=a143_0x10fef2,_0x13e20c={..._0x1d63b3,'checkpoint':await resolveImportOutputPath(_0x1d63b3[_0x52c6ad(0x110)]),'report':await resolveImportOutputPath(_0x1d63b3[_0x52c6ad(0xcd)])},{manifest:_0x200e31,contract:_0x3c6da5,api:_0x8f14bf}=_0x13e20c;assertImportContract(_0x3c6da5,_0x13e20c[_0x52c6ad(0x10c)],_0x13e20c[_0x52c6ad(0x11e)]);if(_0x3c6da5[_0x52c6ad(0xce)]!==0x2||!_0x8f14bf[_0x52c6ad(0xe2)])throw Error(_0x52c6ad(0xfc));if(_0x200e31[_0x52c6ad(0x118)][_0x52c6ad(0xe5)])throw Error(_0x52c6ad(0xc9));if(!_0x200e31[_0x52c6ad(0xcf)][_0x52c6ad(0xe5)])throw Error(_0x52c6ad(0xd9));if(!Number[_0x52c6ad(0xf1)](_0x13e20c['batchSize'])||_0x13e20c[_0x52c6ad(0xc4)]<0x1||_0x13e20c[_0x52c6ad(0xc4)]>_0x3c6da5[_0x52c6ad(0xf6)])throw Error('Invalid\x20import\x20batch\x20size.');assertImportPaths(_0x13e20c[_0x52c6ad(0x110)],_0x13e20c['report']);if(_0x200e31[_0x52c6ad(0xcf)][_0x52c6ad(0x10e)](_0x5bb4bc=>Object['hasOwn'](_0x5bb4bc[_0x52c6ad(0xf5)],'id')))throw Error(_0x52c6ad(0x108));const _0x14442f=(_0x486278,_0x55b1e0)=>Buffer[_0x52c6ad(0xfe)](JSON[_0x52c6ad(0x100)]({'schemaFingerprint':_0x3c6da5[_0x52c6ad(0xf3)],'taskId':_0x55b1e0,'items':_0x486278[_0x52c6ad(0xd8)](_0x18581f=>_0x200e31[_0x52c6ad(0xcf)][_0x18581f][_0x52c6ad(0xf5)])}),_0x52c6ad(0x106)),_0x2ddda6=[];let _0x338360=[];for(let _0x3b9af7=0x0;_0x3b9af7<_0x200e31['rows'][_0x52c6ad(0xe5)];_0x3b9af7++){if(_0x14442f([_0x3b9af7],0x2**0x34)>_0x3c6da5['maxBatchBytes'])throw Error(_0x52c6ad(0xd4)+_0x200e31[_0x52c6ad(0xcf)][_0x3b9af7]['rowNumber']+_0x52c6ad(0xef));_0x338360['length']&&(_0x338360[_0x52c6ad(0xe5)]===_0x13e20c[_0x52c6ad(0xc4)]||_0x14442f([..._0x338360,_0x3b9af7],0x2**0x34)>_0x3c6da5[_0x52c6ad(0x114)])&&(_0x2ddda6[_0x52c6ad(0xff)](_0x338360),_0x338360=[]),_0x338360[_0x52c6ad(0xff)](_0x3b9af7);}if(_0x338360[_0x52c6ad(0xe5)])_0x2ddda6[_0x52c6ad(0xff)](_0x338360);const _0x589060={'appCode':_0x13e20c['appCode'],'datasetCode':_0x13e20c[_0x52c6ad(0x11e)],'runtimeDomain':_0x13e20c['runtimeDomain'],'actorId':_0x3c6da5['actorId'],'fileHash':_0x200e31[_0x52c6ad(0x116)],'mappingHash':_0x200e31[_0x52c6ad(0xd3)],'schemaHash':_0x200e31[_0x52c6ad(0xee)],'remoteSchemaHash':_0x3c6da5[_0x52c6ad(0xf3)],'batchSize':_0x13e20c[_0x52c6ad(0xc4)],'maxBatchBytes':_0x3c6da5[_0x52c6ad(0x114)],'sheet':_0x200e31['sheet'],'strategy':_0x3c6da5[_0x52c6ad(0xd5)]},_0x178ba4=await acquireLock(_0x13e20c[_0x52c6ad(0x110)]);let _0x10b0db;const _0x253f3e=Date[_0x52c6ad(0xe7)]();let _0x3e7255=0x0;const _0x2175b9=[],_0x167c49=_0xa644a2=>_0x10b0db?.['batches'][_0x52c6ad(0xc3)](_0x569c3e=>_0x569c3e[_0x52c6ad(0xea)]===_0xa644a2)[_0x52c6ad(0xf9)]((_0x3be04b,_0x3ef210)=>_0x3be04b+_0x3ef210['rowIndexes'][_0x52c6ad(0xe5)],0x0)??0x0,_0x3786a4=()=>({'importId':_0x10b0db?.[_0x52c6ad(0xc6)],'sourceRows':_0x200e31[_0x52c6ad(0xcf)][_0x52c6ad(0xe5)],'emptyRows':_0x200e31['emptyRows'][_0x52c6ad(0xe5)],'succeeded':_0x167c49(_0x52c6ad(0xcc)),'unknown':_0x167c49(_0x52c6ad(0xc7)),'conflicts':_0x167c49(_0x52c6ad(0x11d)),'notAttempted':_0x167c49('unsent'),'batches':_0x3e7255,'batchResults':_0x2175b9,'elapsedMs':Date[_0x52c6ad(0xe7)]()-_0x253f3e,'checkpoint':_0x13e20c[_0x52c6ad(0x110)],'report':_0x13e20c[_0x52c6ad(0xcd)],'warnings':_0x200e31[_0x52c6ad(0x111)]});try{if(_0x13e20c[_0x52c6ad(0xfa)]){try{_0x10b0db=JSON[_0x52c6ad(0x11c)](await readFile(_0x13e20c[_0x52c6ad(0x110)],_0x52c6ad(0x106)));}catch{throw Error(_0x52c6ad(0x117));}if(!_0x10b0db||_0x10b0db[_0x52c6ad(0xf2)]!==0x2||typeof _0x10b0db[_0x52c6ad(0xc6)]!==_0x52c6ad(0x113)||!_0x10b0db[_0x52c6ad(0xc6)]||canonical(_0x10b0db[_0x52c6ad(0xde)])!==canonical(_0x589060)||!Array[_0x52c6ad(0x10a)](_0x10b0db[_0x52c6ad(0xf0)])||_0x10b0db[_0x52c6ad(0xf0)][_0x52c6ad(0xe5)]!==_0x2ddda6['length']||new Set(_0x10b0db[_0x52c6ad(0xf0)][_0x52c6ad(0xd8)](_0x381a96=>_0x381a96[_0x52c6ad(0xf7)]))[_0x52c6ad(0x109)]!==_0x2ddda6[_0x52c6ad(0xe5)]||_0x10b0db[_0x52c6ad(0xf0)][_0x52c6ad(0x10e)]((_0x227c8f,_0x5ca1f4)=>!validId(_0x227c8f[_0x52c6ad(0xf7)])||_0x227c8f[_0x52c6ad(0xf7)]>0x2**0x34||canonical(_0x227c8f[_0x52c6ad(0xca)])!==canonical(_0x2ddda6[_0x5ca1f4])||![_0x52c6ad(0xeb),_0x52c6ad(0xc7),_0x52c6ad(0xcc),_0x52c6ad(0x11d)][_0x52c6ad(0x10b)](_0x227c8f[_0x52c6ad(0xea)])||!Array[_0x52c6ad(0x10a)](_0x227c8f[_0x52c6ad(0x115)])||_0x227c8f['ids'][_0x52c6ad(0x10e)](_0x14a8f6=>!validId(_0x14a8f6))||new Set(_0x227c8f['ids'])['size']!==_0x227c8f[_0x52c6ad(0x115)][_0x52c6ad(0xe5)]||_0x227c8f[_0x52c6ad(0x115)][_0x52c6ad(0xe5)]!==0x0&&_0x227c8f[_0x52c6ad(0x115)][_0x52c6ad(0xe5)]!==_0x227c8f['rowIndexes']['length']||_0x227c8f[_0x52c6ad(0xea)]===_0x52c6ad(0xcc)&&_0x227c8f[_0x52c6ad(0x115)][_0x52c6ad(0xe5)]!==_0x227c8f[_0x52c6ad(0xca)][_0x52c6ad(0xe5)]||_0x227c8f['status']===_0x52c6ad(0xeb)&&_0x227c8f['ids'][_0x52c6ad(0xe5)]!==0x0))throw Error(_0x52c6ad(0xcb));const _0x27e717=_0x10b0db[_0x52c6ad(0xf0)][_0x52c6ad(0x105)](_0xef34e3=>_0xef34e3[_0x52c6ad(0x115)]);if(new Set(_0x27e717)['size']!==_0x27e717[_0x52c6ad(0xe5)])throw Error(_0x52c6ad(0xc8));}else{try{await lstat(_0x13e20c['checkpoint']);throw Error(_0x52c6ad(0x102));}catch(_0x536499){if(_0x536499[_0x52c6ad(0xf8)]!==_0x52c6ad(0x11a))throw _0x536499;}const _0x18a419=new Set();_0x10b0db={'version':0x2,'importId':randomUUID(),'binding':_0x589060,'batches':_0x2ddda6[_0x52c6ad(0xd8)](_0x116b61=>{const _0x285393=_0x52c6ad;let _0x4810d0;do{_0x4810d0=Number(BigInt('0x'+randomBytes(0x7)['toString'](_0x285393(0xec)))&(0x1n<<0x34n)-0x1n)+0x1;}while(_0x18a419[_0x285393(0x119)](_0x4810d0));return _0x18a419['add'](_0x4810d0),{'taskId':_0x4810d0,'rowIndexes':_0x116b61,'ids':[],'status':_0x285393(0xeb)};})},await saveImportJson(_0x13e20c[_0x52c6ad(0x110)],_0x10b0db);}await _0x13e20c['onCheckpointReady']?.();const _0x5e342f=_0x10b0db,_0x57e9ec=async(_0x7e560a,_0x10faa6)=>{const _0x432f33=_0x52c6ad;_0x7e560a[_0x432f33(0xea)]=_0x432f33(0x11d),await saveImportJson(_0x13e20c['checkpoint'],_0x5e342f);throw Error(_0x10faa6);},_0xc773d0=async _0x4889dd=>{const _0x144af3=_0x52c6ad;let _0x4ef1c3=await _0x8f14bf[_0x144af3(0xe2)](_0x4889dd['taskId']);if(!Array[_0x144af3(0x10a)](_0x4ef1c3))throw Error(_0x144af3(0x10d));if(_0x4889dd['status']===_0x144af3(0xeb)&&_0x4ef1c3['length'])return _0x57e9ec(_0x4889dd,_0x144af3(0xfb));if(!_0x4ef1c3[_0x144af3(0xe5)]){if(_0x4889dd[_0x144af3(0xea)]===_0x144af3(0xcc)||_0x4889dd['ids'][_0x144af3(0xe5)])return _0x57e9ec(_0x4889dd,_0x144af3(0xe3));return![];}if(_0x4ef1c3[_0x144af3(0xe5)]!==_0x4889dd[_0x144af3(0xca)][_0x144af3(0xe5)])return _0x57e9ec(_0x4889dd,_0x144af3(0x10f));const _0x1b478a=_0x4ef1c3[_0x144af3(0xd8)](_0x3df06a=>_0x3df06a?.['id']);if(_0x1b478a[_0x144af3(0x10e)](_0x31a021=>!validId(_0x31a021)))return _0x57e9ec(_0x4889dd,_0x144af3(0x107));if(new Set(_0x1b478a)[_0x144af3(0x109)]!==_0x1b478a['length'])return _0x57e9ec(_0x4889dd,'Import\x20generated\x20ID\x20conflict.');const _0x5dedd7=new Map(_0x4ef1c3['map'](_0x1ae148=>[_0x1ae148['id'],_0x1ae148])),_0x544606=_0x4889dd[_0x144af3(0x115)]['length']?[..._0x4889dd[_0x144af3(0x115)]]:[..._0x1b478a][_0x144af3(0xf4)]((_0x37c25f,_0x5d13cf)=>_0x37c25f-_0x5d13cf);if(_0x544606[_0x144af3(0x10e)](_0x20671f=>!validId(_0x20671f))||_0x544606[_0x144af3(0x10e)]((_0x16884a,_0x184ed6)=>_0x184ed6>0x0&&_0x16884a<=_0x544606[_0x184ed6-0x1])||_0x544606[_0x144af3(0x10e)](_0x4eddfa=>!_0x5dedd7[_0x144af3(0x119)](_0x4eddfa)))return _0x57e9ec(_0x4889dd,'Import\x20generated\x20ID\x20conflict.');_0x4ef1c3=_0x544606[_0x144af3(0xd8)](_0x4e6ecf=>_0x5dedd7[_0x144af3(0xed)](_0x4e6ecf));const _0x524085=new Set(_0x5e342f[_0x144af3(0xf0)]['filter'](_0x1c34b2=>_0x1c34b2!==_0x4889dd)[_0x144af3(0x105)](_0x3420ce=>_0x3420ce[_0x144af3(0x115)]));if(_0x544606[_0x144af3(0x10e)](_0x3a38bc=>_0x524085[_0x144af3(0x119)](_0x3a38bc)))return _0x57e9ec(_0x4889dd,'Import\x20generated\x20ID\x20collision.');for(let _0x300716=0x0;_0x300716<_0x4ef1c3[_0x144af3(0xe5)];_0x300716++){const _0x274086=_0x200e31[_0x144af3(0xcf)][_0x4889dd[_0x144af3(0xca)][_0x300716]][_0x144af3(0xf5)];if(Object[_0x144af3(0xd0)](_0x274086)['some'](_0x44d64c=>!sameImportValue(_0x274086[_0x44d64c],_0x4ef1c3[_0x300716][_0x44d64c],_0x200e31[_0x144af3(0xe9)]?.[_0x144af3(0x10b)](_0x44d64c)&&!_0x200e31[_0x144af3(0xfd)]?.[_0x144af3(0x10b)](_0x44d64c))))return _0x57e9ec(_0x4889dd,_0x144af3(0xe6)+_0x200e31[_0x144af3(0xcf)][_0x4889dd[_0x144af3(0xca)][_0x300716]][_0x144af3(0x104)]+'.');}return _0x4889dd['ids']=_0x544606,_0x4889dd[_0x144af3(0xea)]=_0x144af3(0xcc),await saveImportJson(_0x13e20c['checkpoint'],_0x5e342f),!![];};if(_0x5e342f[_0x52c6ad(0xf0)][_0x52c6ad(0x10e)](_0x31cdd4=>_0x31cdd4[_0x52c6ad(0xea)]===_0x52c6ad(0x11d)&&!(_0x13e20c[_0x52c6ad(0xfa)]&&_0x13e20c[_0x52c6ad(0xe4)]&&_0x200e31[_0x52c6ad(0xe9)]?.['length']&&_0x31cdd4[_0x52c6ad(0x115)]['length']===_0x31cdd4[_0x52c6ad(0xca)][_0x52c6ad(0xe5)])))throw Error('Import\x20checkpoint\x20contains\x20a\x20content\x20conflict.');if(_0x13e20c['resume']){for(const _0x329deb of _0x5e342f[_0x52c6ad(0xf0)])await _0xc773d0(_0x329deb);}for(const _0x454a63 of _0x5e342f[_0x52c6ad(0xf0)]){if(_0x454a63['status']===_0x52c6ad(0xcc))continue;if(!_0x13e20c[_0x52c6ad(0xfa)])await _0xc773d0(_0x454a63);_0x454a63[_0x52c6ad(0xea)]=_0x52c6ad(0xc7),await saveImportJson(_0x13e20c[_0x52c6ad(0x110)],_0x5e342f),_0x3e7255++;const _0x22e8e2=_0x454a63['rowIndexes'][_0x52c6ad(0xd8)](_0x507441=>_0x200e31[_0x52c6ad(0xcf)][_0x507441][_0x52c6ad(0xf5)]),_0x5a23dd=Date[_0x52c6ad(0xe7)](),_0x27b1eb={'batch':_0x3e7255,'rowStart':_0x200e31['rows'][_0x454a63[_0x52c6ad(0xca)][0x0]][_0x52c6ad(0x104)],'rowEnd':_0x200e31[_0x52c6ad(0xcf)][_0x454a63[_0x52c6ad(0xca)]['at'](-0x1)][_0x52c6ad(0x104)],'count':_0x22e8e2[_0x52c6ad(0xe5)],'bytes':_0x14442f(_0x454a63[_0x52c6ad(0xca)],_0x454a63[_0x52c6ad(0xf7)]),'elapsedMs':0x0,'status':'unknown'};_0x2175b9[_0x52c6ad(0xff)](_0x27b1eb);try{const _0x31a48a=await _0x8f14bf[_0x52c6ad(0xc5)](_0x22e8e2,_0x454a63[_0x52c6ad(0xf7)]);if(!_0x31a48a||_0x31a48a[_0x52c6ad(0x11b)]!==_0x22e8e2[_0x52c6ad(0xe5)]||!Array[_0x52c6ad(0x10a)](_0x31a48a[_0x52c6ad(0x115)])||_0x31a48a[_0x52c6ad(0x115)]['length']!==_0x22e8e2[_0x52c6ad(0xe5)]||_0x31a48a[_0x52c6ad(0x115)][_0x52c6ad(0x10e)](_0x17fc9f=>!validId(_0x17fc9f))||new Set(_0x31a48a[_0x52c6ad(0x115)])[_0x52c6ad(0x109)]!==_0x31a48a[_0x52c6ad(0x115)]['length'])throw Error('Invalid\x20write\x20result.');_0x454a63[_0x52c6ad(0x115)]=_0x31a48a['ids'],await saveImportJson(_0x13e20c[_0x52c6ad(0x110)],_0x5e342f);if(!await _0xc773d0(_0x454a63))throw Error(_0x52c6ad(0xd2));}catch(_0x45f24a){if(_0x454a63['status']===_0x52c6ad(0x11d))throw _0x45f24a;try{await _0xc773d0(_0x454a63);}catch(_0x2d75e1){if(_0x454a63['status']===_0x52c6ad(0x11d))throw _0x2d75e1;}if(_0x454a63[_0x52c6ad(0xea)]!==_0x52c6ad(0xcc))throw Error('The\x20import\x20write\x20outcome\x20is\x20unknown.\x20Resume\x20to\x20reconcile\x20the\x20original\x20task\x20marker\x20before\x20continuing.');}finally{_0x27b1eb['elapsedMs']=Date[_0x52c6ad(0xe7)]()-_0x5a23dd,_0x27b1eb['status']=_0x454a63[_0x52c6ad(0xea)]===_0x52c6ad(0xcc)?'succeeded':_0x454a63['status']==='conflict'?_0x52c6ad(0x11d):_0x52c6ad(0x101);}}const _0x4f4086={'status':_0x52c6ad(0xe1),..._0x3786a4()};return await saveImportJson(_0x13e20c['report'],_0x4f4086),_0x4f4086;}catch(_0x570050){if(_0x10b0db)await saveImportJson(_0x13e20c[_0x52c6ad(0xcd)],{'status':'incomplete',..._0x3786a4(),'message':_0x570050['message']});throw _0x570050;}finally{await _0x178ba4();}}function a143_0x1f01(){const _0x55d4e8=['7CPMNRB','binding','9IDXvwi','5949251gkwgZx','completed','readTask','Previously\x20imported\x20records\x20are\x20no\x20longer\x20visible;\x20recovery\x20conflict.','reconcileImageConflicts','length','Import\x20content\x20conflict\x20at\x20Excel\x20row\x20','now','696216JDPFdV','imageFields','status','unsent','hex','get','schemaHash','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','batches','isInteger','version','schemaFingerprint','sort','values','maxBatchSize','taskId','code','reduce','resume','Import\x20task\x20marker\x20collision;\x20stop\x20without\x20replacing\x20the\x20marker.','The\x20auto-ID\x20runner\x20requires\x20the\x20v2\x20task\x20readback\x20contract.','uploadFields','byteLength','push','stringify','unknown','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','10niSmMg','rowNumber','flatMap','utf8','Import\x20generated\x20ID\x20conflict.','Auto-ID\x20import\x20items\x20cannot\x20contain\x20a\x20primary\x20key.','size','isArray','includes','appCode','Invalid\x20import\x20task\x20readback\x20response.','some','Partial\x20import\x20task\x20readback\x20conflict.','checkpoint','warnings','isSafeInteger','string','maxBatchBytes','ids','fileHash','Cannot\x20read\x20the\x20import\x20checkpoint.','errors','has','ENOENT','count','parse','conflict','datasetCode','filter','batchSize','write','importId','pending','Import\x20checkpoint\x20contains\x20duplicate\x20generated\x20IDs.','Excel\x20contains\x20invalid\x20rows;\x20no\x20data\x20was\x20written.','rowIndexes','Import\x20checkpoint\x20does\x20not\x20match\x20the\x20input,\x20target\x20or\x20identity.','succeeded','report','schemaVersion','rows','keys','1894215xhzDFI','Incomplete\x20readback.','mappingHash','Excel\x20row\x20','strategy','146102thKJVB','4817560dftuLS','map','Excel\x20contains\x20no\x20valid\x20data\x20rows.','5150096PaVule','10lXcOAo','8201322tmbrYu'];a143_0x1f01=function(){return _0x55d4e8;};return a143_0x1f01();}
1
+ function a143_0x4e3f(){const _0x3cd894=['maxBatchSize','batchSize','values','Import\x20checkpoint\x20contains\x20duplicate\x20generated\x20IDs.','unknown','Import\x20generated\x20ID\x20conflict.','reconcileImageConflicts','report','9027238btFVeM','rows','isArray','flatMap','Excel\x20contains\x20no\x20valid\x20data\x20rows.','1486965KlYIoI','toString','includes','3789378QixNIk','isSafeInteger','sheet','conflict','The\x20import\x20write\x20outcome\x20is\x20unknown.\x20Resume\x20to\x20reconcile\x20the\x20original\x20task\x20marker\x20before\x20continuing.','uploadFields','Auto-ID\x20import\x20items\x20cannot\x20contain\x20a\x20primary\x20key.','get','82120xuwGPS','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','errors','emptyRows','maxBatchBytes','string','succeeded','ENOENT','18ZTLGVG','count','utf8','Cannot\x20read\x20the\x20import\x20checkpoint.','hex','stringify','binding','readTask','taskId','Import\x20generated\x20ID\x20collision.','rowIndexes','reduce','sort','datasetCode','resume','imageFields','schemaHash','message','length','status','strategy','schemaVersion','filter','645LJmlbB','push','7mZsvSk','pending','fileHash','batches','mappingHash','importId','unsent','number','completed','keys','some','has','Import\x20content\x20conflict\x20at\x20Excel\x20row\x20','byteLength','code','size','onCheckpointReady','appCode','map','14848OegEIr','ids','rowNumber','checkpoint','The\x20auto-ID\x20runner\x20requires\x20the\x20v2\x20task\x20readback\x20contract.','Previously\x20imported\x20records\x20are\x20no\x20longer\x20visible;\x20recovery\x20conflict.','schemaFingerprint','2178790NuQZji','Excel\x20contains\x20invalid\x20rows;\x20no\x20data\x20was\x20written.','write','actorId','now','2492576vbrbHU','Excel\x20row\x20','9UrwrJI'];a143_0x4e3f=function(){return _0x3cd894;};return a143_0x4e3f();}const a143_0x59f8dc=a143_0x5ca5;(function(_0x5956b6,_0x1bfad3){const _0x330b97=a143_0x5ca5,_0x4be3b2=_0x5956b6();while(!![]){try{const _0x263a02=-parseInt(_0x330b97(0xbe))/0x1*(parseInt(_0x330b97(0xd7))/0x2)+-parseInt(_0x330b97(0xcc))/0x3+-parseInt(_0x330b97(0xb0))/0x4*(-parseInt(_0x330b97(0x9b))/0x5)+-parseInt(_0x330b97(0xcf))/0x6*(-parseInt(_0x330b97(0x9d))/0x7)+-parseInt(_0x330b97(0xbc))/0x8+-parseInt(_0x330b97(0xdf))/0x9*(parseInt(_0x330b97(0xb7))/0xa)+parseInt(_0x330b97(0xc7))/0xb;if(_0x263a02===_0x1bfad3)break;else _0x4be3b2['push'](_0x4be3b2['shift']());}catch(_0xfa1f46){_0x4be3b2['push'](_0x4be3b2['shift']());}}}(a143_0x4e3f,0x4dc50));import{randomBytes,randomUUID}from'node:crypto';function a143_0x5ca5(_0x41091f,_0x5bf1b3){_0x41091f=_0x41091f-0x8e;const _0x4e3fb1=a143_0x4e3f();let _0x5ca551=_0x4e3fb1[_0x41091f];return _0x5ca551;}import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,sameImportValue,resolveImportOutputPath,saveImportJson}from'./runner.js';const validId=_0x4c4d74=>typeof _0x4c4d74===a143_0x59f8dc(0xa4)&&Number[a143_0x59f8dc(0xd0)](_0x4c4d74)&&_0x4c4d74>0x0;export async function runAutoIdExcelImport(_0x41f55f){const _0x364552=a143_0x59f8dc,_0xbcb73f={..._0x41f55f,'checkpoint':await resolveImportOutputPath(_0x41f55f[_0x364552(0xb3)]),'report':await resolveImportOutputPath(_0x41f55f[_0x364552(0xc6)])},{manifest:_0x349080,contract:_0x4e9149,api:_0x1d6644}=_0xbcb73f;assertImportContract(_0x4e9149,_0xbcb73f[_0x364552(0xae)],_0xbcb73f['datasetCode']);if(_0x4e9149[_0x364552(0x99)]!==0x2||!_0x1d6644['readTask'])throw Error(_0x364552(0xb4));if(_0x349080[_0x364552(0xd9)][_0x364552(0x96)])throw Error(_0x364552(0xb8));if(!_0x349080[_0x364552(0xc8)][_0x364552(0x96)])throw Error(_0x364552(0xcb));if(!Number['isInteger'](_0xbcb73f[_0x364552(0xc0)])||_0xbcb73f['batchSize']<0x1||_0xbcb73f[_0x364552(0xc0)]>_0x4e9149[_0x364552(0xbf)])throw Error('Invalid\x20import\x20batch\x20size.');assertImportPaths(_0xbcb73f[_0x364552(0xb3)],_0xbcb73f[_0x364552(0xc6)]);if(_0x349080[_0x364552(0xc8)][_0x364552(0xa7)](_0x4863c1=>Object['hasOwn'](_0x4863c1[_0x364552(0xc1)],'id')))throw Error(_0x364552(0xd5));const _0x44b9cc=(_0x4036dd,_0x137a20)=>Buffer[_0x364552(0xaa)](JSON[_0x364552(0xe4)]({'schemaFingerprint':_0x4e9149[_0x364552(0xb6)],'taskId':_0x137a20,'items':_0x4036dd[_0x364552(0xaf)](_0x53202d=>_0x349080[_0x364552(0xc8)][_0x53202d][_0x364552(0xc1)])}),_0x364552(0xe1)),_0x509aa2=[];let _0x1bc392=[];for(let _0x1a8bdd=0x0;_0x1a8bdd<_0x349080[_0x364552(0xc8)]['length'];_0x1a8bdd++){if(_0x44b9cc([_0x1a8bdd],0x2**0x34)>_0x4e9149[_0x364552(0xdb)])throw Error(_0x364552(0xbd)+_0x349080['rows'][_0x1a8bdd][_0x364552(0xb2)]+_0x364552(0xd8));_0x1bc392[_0x364552(0x96)]&&(_0x1bc392['length']===_0xbcb73f[_0x364552(0xc0)]||_0x44b9cc([..._0x1bc392,_0x1a8bdd],0x2**0x34)>_0x4e9149[_0x364552(0xdb)])&&(_0x509aa2[_0x364552(0x9c)](_0x1bc392),_0x1bc392=[]),_0x1bc392[_0x364552(0x9c)](_0x1a8bdd);}if(_0x1bc392[_0x364552(0x96)])_0x509aa2[_0x364552(0x9c)](_0x1bc392);const _0x2b9d58={'appCode':_0xbcb73f[_0x364552(0xae)],'datasetCode':_0xbcb73f[_0x364552(0x91)],'runtimeDomain':_0xbcb73f['runtimeDomain'],'actorId':_0x4e9149[_0x364552(0xba)],'fileHash':_0x349080[_0x364552(0x9f)],'mappingHash':_0x349080[_0x364552(0xa1)],'schemaHash':_0x349080[_0x364552(0x94)],'remoteSchemaHash':_0x4e9149[_0x364552(0xb6)],'batchSize':_0xbcb73f['batchSize'],'maxBatchBytes':_0x4e9149['maxBatchBytes'],'sheet':_0x349080[_0x364552(0xd1)],'strategy':_0x4e9149[_0x364552(0x98)]},_0x122c01=await acquireLock(_0xbcb73f[_0x364552(0xb3)]);let _0x2d8df2;const _0x5bb299=Date[_0x364552(0xbb)]();let _0x37509e=0x0;const _0x3c38a2=[],_0xe298bf=_0x4e1d9e=>_0x2d8df2?.['batches']['filter'](_0x10e68a=>_0x10e68a[_0x364552(0x97)]===_0x4e1d9e)[_0x364552(0x8f)]((_0x5dc5a4,_0x1be176)=>_0x5dc5a4+_0x1be176[_0x364552(0x8e)][_0x364552(0x96)],0x0)??0x0,_0x3e8a46=()=>({'importId':_0x2d8df2?.[_0x364552(0xa2)],'sourceRows':_0x349080[_0x364552(0xc8)]['length'],'emptyRows':_0x349080[_0x364552(0xda)][_0x364552(0x96)],'succeeded':_0xe298bf(_0x364552(0xdd)),'unknown':_0xe298bf(_0x364552(0x9e)),'conflicts':_0xe298bf(_0x364552(0xd2)),'notAttempted':_0xe298bf(_0x364552(0xa3)),'batches':_0x37509e,'batchResults':_0x3c38a2,'elapsedMs':Date[_0x364552(0xbb)]()-_0x5bb299,'checkpoint':_0xbcb73f['checkpoint'],'report':_0xbcb73f[_0x364552(0xc6)],'warnings':_0x349080['warnings']});try{if(_0xbcb73f[_0x364552(0x92)]){try{_0x2d8df2=JSON['parse'](await readFile(_0xbcb73f[_0x364552(0xb3)],_0x364552(0xe1)));}catch{throw Error(_0x364552(0xe2));}if(!_0x2d8df2||_0x2d8df2['version']!==0x2||typeof _0x2d8df2[_0x364552(0xa2)]!==_0x364552(0xdc)||!_0x2d8df2[_0x364552(0xa2)]||canonical(_0x2d8df2[_0x364552(0xe5)])!==canonical(_0x2b9d58)||!Array[_0x364552(0xc9)](_0x2d8df2[_0x364552(0xa0)])||_0x2d8df2['batches'][_0x364552(0x96)]!==_0x509aa2['length']||new Set(_0x2d8df2[_0x364552(0xa0)][_0x364552(0xaf)](_0x2466c0=>_0x2466c0[_0x364552(0xe7)]))[_0x364552(0xac)]!==_0x509aa2[_0x364552(0x96)]||_0x2d8df2['batches'][_0x364552(0xa7)]((_0x327a56,_0x3c31ab)=>!validId(_0x327a56[_0x364552(0xe7)])||_0x327a56['taskId']>0x2**0x34||canonical(_0x327a56[_0x364552(0x8e)])!==canonical(_0x509aa2[_0x3c31ab])||![_0x364552(0xa3),_0x364552(0x9e),'succeeded','conflict'][_0x364552(0xce)](_0x327a56['status'])||!Array['isArray'](_0x327a56[_0x364552(0xb1)])||_0x327a56[_0x364552(0xb1)][_0x364552(0xa7)](_0x2d9bc0=>!validId(_0x2d9bc0))||new Set(_0x327a56[_0x364552(0xb1)])[_0x364552(0xac)]!==_0x327a56[_0x364552(0xb1)]['length']||_0x327a56[_0x364552(0xb1)][_0x364552(0x96)]!==0x0&&_0x327a56[_0x364552(0xb1)]['length']!==_0x327a56[_0x364552(0x8e)][_0x364552(0x96)]||_0x327a56[_0x364552(0x97)]===_0x364552(0xdd)&&_0x327a56[_0x364552(0xb1)][_0x364552(0x96)]!==_0x327a56[_0x364552(0x8e)][_0x364552(0x96)]||_0x327a56[_0x364552(0x97)]===_0x364552(0xa3)&&_0x327a56[_0x364552(0xb1)][_0x364552(0x96)]!==0x0))throw Error('Import\x20checkpoint\x20does\x20not\x20match\x20the\x20input,\x20target\x20or\x20identity.');const _0x1c8715=_0x2d8df2[_0x364552(0xa0)][_0x364552(0xca)](_0x40d158=>_0x40d158[_0x364552(0xb1)]);if(new Set(_0x1c8715)[_0x364552(0xac)]!==_0x1c8715['length'])throw Error(_0x364552(0xc2));}else{try{await lstat(_0xbcb73f['checkpoint']);throw Error('Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.');}catch(_0x38f241){if(_0x38f241[_0x364552(0xab)]!==_0x364552(0xde))throw _0x38f241;}const _0x4f0dd4=new Set();_0x2d8df2={'version':0x2,'importId':randomUUID(),'binding':_0x2b9d58,'batches':_0x509aa2[_0x364552(0xaf)](_0x2c5059=>{const _0x4b5159=_0x364552;let _0x115432;do{_0x115432=Number(BigInt('0x'+randomBytes(0x7)[_0x4b5159(0xcd)](_0x4b5159(0xe3)))&(0x1n<<0x34n)-0x1n)+0x1;}while(_0x4f0dd4[_0x4b5159(0xa8)](_0x115432));return _0x4f0dd4['add'](_0x115432),{'taskId':_0x115432,'rowIndexes':_0x2c5059,'ids':[],'status':_0x4b5159(0xa3)};})},await saveImportJson(_0xbcb73f[_0x364552(0xb3)],_0x2d8df2);}await _0xbcb73f[_0x364552(0xad)]?.();const _0x4e6b98=_0x2d8df2,_0xc5a971=async(_0x855d13,_0x4ea31d)=>{const _0x10e28e=_0x364552;_0x855d13[_0x10e28e(0x97)]=_0x10e28e(0xd2),await saveImportJson(_0xbcb73f[_0x10e28e(0xb3)],_0x4e6b98);throw Error(_0x4ea31d);},_0x5c6f40=async _0x1d5947=>{const _0x5924ba=_0x364552;let _0x910383=await _0x1d6644[_0x5924ba(0xe6)](_0x1d5947[_0x5924ba(0xe7)]);if(!Array['isArray'](_0x910383))throw Error('Invalid\x20import\x20task\x20readback\x20response.');if(_0x1d5947[_0x5924ba(0x97)]===_0x5924ba(0xa3)&&_0x910383[_0x5924ba(0x96)])return _0xc5a971(_0x1d5947,'Import\x20task\x20marker\x20collision;\x20stop\x20without\x20replacing\x20the\x20marker.');if(!_0x910383[_0x5924ba(0x96)]){if(_0x1d5947[_0x5924ba(0x97)]==='succeeded'||_0x1d5947['ids'][_0x5924ba(0x96)])return _0xc5a971(_0x1d5947,_0x5924ba(0xb5));return![];}if(_0x910383[_0x5924ba(0x96)]!==_0x1d5947[_0x5924ba(0x8e)]['length'])return _0xc5a971(_0x1d5947,'Partial\x20import\x20task\x20readback\x20conflict.');const _0x512c79=_0x910383['map'](_0x332698=>_0x332698?.['id']);if(_0x512c79[_0x5924ba(0xa7)](_0x51de3a=>!validId(_0x51de3a)))return _0xc5a971(_0x1d5947,_0x5924ba(0xc4));if(new Set(_0x512c79)[_0x5924ba(0xac)]!==_0x512c79[_0x5924ba(0x96)])return _0xc5a971(_0x1d5947,_0x5924ba(0xc4));const _0x359bac=new Map(_0x910383[_0x5924ba(0xaf)](_0x5b5559=>[_0x5b5559['id'],_0x5b5559])),_0xece1ae=_0x1d5947[_0x5924ba(0xb1)][_0x5924ba(0x96)]?[..._0x1d5947[_0x5924ba(0xb1)]]:[..._0x512c79][_0x5924ba(0x90)]((_0x2b5a90,_0x2b3781)=>_0x2b5a90-_0x2b3781);if(_0xece1ae[_0x5924ba(0xa7)](_0x34e5bb=>!validId(_0x34e5bb))||_0xece1ae[_0x5924ba(0xa7)]((_0x52301c,_0x44c074)=>_0x44c074>0x0&&_0x52301c<=_0xece1ae[_0x44c074-0x1])||_0xece1ae[_0x5924ba(0xa7)](_0x7c80a7=>!_0x359bac['has'](_0x7c80a7)))return _0xc5a971(_0x1d5947,'Import\x20generated\x20ID\x20conflict.');_0x910383=_0xece1ae[_0x5924ba(0xaf)](_0x1c1b52=>_0x359bac[_0x5924ba(0xd6)](_0x1c1b52));const _0x43a545=new Set(_0x4e6b98[_0x5924ba(0xa0)][_0x5924ba(0x9a)](_0x166788=>_0x166788!==_0x1d5947)['flatMap'](_0x37921c=>_0x37921c['ids']));if(_0xece1ae['some'](_0x7ed575=>_0x43a545[_0x5924ba(0xa8)](_0x7ed575)))return _0xc5a971(_0x1d5947,_0x5924ba(0xe8));for(let _0xc3bb7f=0x0;_0xc3bb7f<_0x910383['length'];_0xc3bb7f++){const _0x5254c9=_0x349080['rows'][_0x1d5947[_0x5924ba(0x8e)][_0xc3bb7f]]['values'];if(Object[_0x5924ba(0xa6)](_0x5254c9)['some'](_0x2025a1=>!sameImportValue(_0x5254c9[_0x2025a1],_0x910383[_0xc3bb7f][_0x2025a1],_0x349080[_0x5924ba(0x93)]?.[_0x5924ba(0xce)](_0x2025a1)&&!_0x349080[_0x5924ba(0xd4)]?.[_0x5924ba(0xce)](_0x2025a1))))return _0xc5a971(_0x1d5947,_0x5924ba(0xa9)+_0x349080[_0x5924ba(0xc8)][_0x1d5947[_0x5924ba(0x8e)][_0xc3bb7f]][_0x5924ba(0xb2)]+'.');}return _0x1d5947['ids']=_0xece1ae,_0x1d5947[_0x5924ba(0x97)]='succeeded',await saveImportJson(_0xbcb73f['checkpoint'],_0x4e6b98),!![];};if(_0x4e6b98[_0x364552(0xa0)]['some'](_0x3d354d=>_0x3d354d[_0x364552(0x97)]==='conflict'&&!(_0xbcb73f[_0x364552(0x92)]&&_0xbcb73f[_0x364552(0xc5)]&&_0x349080[_0x364552(0x93)]?.['length']&&_0x3d354d[_0x364552(0xb1)]['length']===_0x3d354d[_0x364552(0x8e)]['length'])))throw Error('Import\x20checkpoint\x20contains\x20a\x20content\x20conflict.');if(_0xbcb73f[_0x364552(0x92)]){for(const _0x5ddb2d of _0x4e6b98[_0x364552(0xa0)])await _0x5c6f40(_0x5ddb2d);}for(const _0x59b766 of _0x4e6b98[_0x364552(0xa0)]){if(_0x59b766['status']===_0x364552(0xdd))continue;if(!_0xbcb73f[_0x364552(0x92)])await _0x5c6f40(_0x59b766);_0x59b766[_0x364552(0x97)]=_0x364552(0x9e),await saveImportJson(_0xbcb73f[_0x364552(0xb3)],_0x4e6b98),_0x37509e++;const _0x3591b0=_0x59b766['rowIndexes']['map'](_0x3a8549=>_0x349080[_0x364552(0xc8)][_0x3a8549][_0x364552(0xc1)]),_0x357a1d=Date['now'](),_0x180d17={'batch':_0x37509e,'rowStart':_0x349080[_0x364552(0xc8)][_0x59b766[_0x364552(0x8e)][0x0]][_0x364552(0xb2)],'rowEnd':_0x349080['rows'][_0x59b766['rowIndexes']['at'](-0x1)][_0x364552(0xb2)],'count':_0x3591b0[_0x364552(0x96)],'bytes':_0x44b9cc(_0x59b766[_0x364552(0x8e)],_0x59b766[_0x364552(0xe7)]),'elapsedMs':0x0,'status':_0x364552(0xc3)};_0x3c38a2[_0x364552(0x9c)](_0x180d17);try{const _0x4ce3b1=await _0x1d6644[_0x364552(0xb9)](_0x3591b0,_0x59b766['taskId']);if(!_0x4ce3b1||_0x4ce3b1[_0x364552(0xe0)]!==_0x3591b0[_0x364552(0x96)]||!Array[_0x364552(0xc9)](_0x4ce3b1[_0x364552(0xb1)])||_0x4ce3b1[_0x364552(0xb1)][_0x364552(0x96)]!==_0x3591b0[_0x364552(0x96)]||_0x4ce3b1[_0x364552(0xb1)][_0x364552(0xa7)](_0x2dc2e6=>!validId(_0x2dc2e6))||new Set(_0x4ce3b1['ids'])['size']!==_0x4ce3b1[_0x364552(0xb1)]['length'])throw Error('Invalid\x20write\x20result.');_0x59b766[_0x364552(0xb1)]=_0x4ce3b1[_0x364552(0xb1)],await saveImportJson(_0xbcb73f[_0x364552(0xb3)],_0x4e6b98);if(!await _0x5c6f40(_0x59b766))throw Error('Incomplete\x20readback.');}catch(_0x2f4d9d){if(_0x59b766[_0x364552(0x97)]===_0x364552(0xd2))throw _0x2f4d9d;try{await _0x5c6f40(_0x59b766);}catch(_0x4fa396){if(_0x59b766[_0x364552(0x97)]===_0x364552(0xd2))throw _0x4fa396;}if(_0x59b766[_0x364552(0x97)]!=='succeeded')throw Error(_0x364552(0xd3));}finally{_0x180d17['elapsedMs']=Date[_0x364552(0xbb)]()-_0x357a1d,_0x180d17[_0x364552(0x97)]=_0x59b766[_0x364552(0x97)]===_0x364552(0xdd)?'succeeded':_0x59b766[_0x364552(0x97)]==='conflict'?'conflict':_0x364552(0xc3);}}const _0x50eb57={'status':_0x364552(0xa5),..._0x3e8a46()};return await saveImportJson(_0xbcb73f[_0x364552(0xc6)],_0x50eb57),_0x50eb57;}catch(_0x3b48be){if(_0x2d8df2)await saveImportJson(_0xbcb73f[_0x364552(0xc6)],{'status':'incomplete',..._0x3e8a46(),'message':_0x3b48be[_0x364552(0x95)]});throw _0x3b48be;}finally{await _0x122c01();}}