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

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 (186) 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 +10 -2
  185. package/skills/lovrabet/guides/development-intent-handoff.md +58 -0
  186. package/skills/lovrabet.manifest.json +4 -3
@@ -1 +1 @@
1
- (function(_0x4367c0,_0x4e1609){const _0x513c31=a128_0x3d4e,_0x2940e3=_0x4367c0();while(!![]){try{const _0x4b0661=parseInt(_0x513c31(0xc2))/0x1*(-parseInt(_0x513c31(0xed))/0x2)+parseInt(_0x513c31(0xfd))/0x3*(parseInt(_0x513c31(0xc9))/0x4)+-parseInt(_0x513c31(0xe2))/0x5*(-parseInt(_0x513c31(0xf6))/0x6)+parseInt(_0x513c31(0x10f))/0x7+-parseInt(_0x513c31(0xc3))/0x8*(-parseInt(_0x513c31(0x106))/0x9)+-parseInt(_0x513c31(0xc1))/0xa+parseInt(_0x513c31(0xdf))/0xb*(-parseInt(_0x513c31(0xee))/0xc);if(_0x4b0661===_0x4e1609)break;else _0x2940e3['push'](_0x2940e3['shift']());}catch(_0x23aaff){_0x2940e3['push'](_0x2940e3['shift']());}}}(a128_0x34fc,0xe4ac2));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,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain,getRuntimeDomain}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';function a128_0x3d4e(_0x4ef551,_0x4bc82c){_0x4ef551=_0x4ef551-0xbf;const _0x34fc1f=a128_0x34fc();let _0x3d4eff=_0x34fc1f[_0x4ef551];return _0x3d4eff;}import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x10a226){const _0xc241aa=a128_0x3d4e;return void _0x10a226,AUTH_MODE[_0xc241aa(0xd6)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x10f1bb,_0x53100a){const _0x174d73=a128_0x3d4e,_0x3871c4=typeof _0x53100a[_0x174d73(0xe6)]===_0x174d73(0xf3)&&_0x53100a[_0x174d73(0xe6)][_0x174d73(0xd8)]();return{'rawFlags':_0x53100a,'appCode':_0x10f1bb[_0x174d73(0xc0)]||productEnv(_0x174d73(0xcc))||(_0x3871c4?undefined:readAppCodeFromConfig()),'appCodeSource':_0x10f1bb[_0x174d73(0xf5)],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x53100a),'defaultFormat':_0x10f1bb[_0x174d73(0x10b)],'defaultPageSize':_0x10f1bb[_0x174d73(0xdc)],'defaultVerbose':_0x10f1bb[_0x174d73(0xda)],'riskLevel':_0x10f1bb[_0x174d73(0xd4)],'nativeToolAvailable':_0x10f1bb['nativeToolAvailable'],'accessKey':_0x10f1bb[_0x174d73(0x110)],'env':_0x10f1bb['env'],'mergedCli':{'defaultApp':_0x10f1bb[_0x174d73(0xf8)],'currentApp':_0x10f1bb['currentApp'],'appCode':_0x10f1bb[_0x174d73(0xc0)]}};}export function createLovrabetRunnerAdapter(_0x51e52d={}){const _0x23a0b1=a128_0x3d4e,_0xf0089f={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x427071=>PIPELINE_FLAG_NAMES[_0x23a0b1(0xca)](_0x427071[_0x23a0b1(0x104)]))[_0x23a0b1(0xe3)](({name:_0x4b8e30,type:_0x327822,description:_0x17c02b})=>({'name':_0x4b8e30,'type':_0x327822,'description':_0x17c02b})),'formatOutput':_0x51e52d[_0x23a0b1(0x107)]??formatOutput,'getCommandLabel'(_0x37b486){return CLI_BIN_NAME+'\x20'+_0x37b486['service']+'\x20'+_0x37b486['command'];},'riskPolicy':{'onViolation'(_0x233764,{def:_0x1a9833,env:_0x5c94b9}){if(shouldRouteWriteToNativeTool(_0x1a9833,_0x5c94b9))return;console['error'](_0x233764);},'createError'(_0x1aa396,{def:_0x5dbf62,env:_0x1ea581}){const _0x4766ab=_0x23a0b1;if(shouldRouteWriteToNativeTool(_0x5dbf62,_0x1ea581))return CliErrors[_0x4766ab(0xe4)](CLI_BIN_NAME+'\x20'+_0x5dbf62[_0x4766ab(0x105)]+'\x20'+_0x5dbf62['command']);return CliErrors[_0x4766ab(0xf7)](_0x1aa396);}},async 'prepare'(_0x346d1b,_0x338e36){const _0x26413f=_0x23a0b1,_0x36dce1=resolveAuthMode(_0x338e36);if(_0x346d1b['requiresAuth']!==![]){if(!_0x338e36[_0x26413f(0x110)])throw CliErrors[_0x26413f(0xde)](_0x26413f(0xef)+PRODUCT_CONFIG[_0x26413f(0x108)]+_0x26413f(0xdd)+productEnvName(_0x26413f(0xf9))+'.');const {setActiveAK:_0x2a4b2a}=await import(_0x26413f(0xfb));_0x2a4b2a(_0x338e36[_0x26413f(0x110)]);}let _0x5cac38='';if(_0x346d1b[_0x26413f(0xd5)]!==![]){_0x5cac38=_0x338e36[_0x26413f(0xc0)]??'',_0x5cac38=await resolveExplicitAppName(_0x346d1b,_0x338e36,_0x5cac38);if(!_0x5cac38){await assertSelectedAppNameIsRuntimeAccessible(_0x346d1b,_0x338e36);throw CliErrors[_0x26413f(0xeb)](_0x26413f(0xe9)+PRODUCT_CONFIG[_0x26413f(0x108)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x346d1b,_0x338e36,_0x5cac38);}if(_0x5cac38){const {initSdkClient:_0x22e382}=await import(_0x26413f(0xfe));_0x22e382({'appCode':_0x5cac38,'env':_0x338e36[_0x26413f(0xe8)]??_0x26413f(0xc8),'runtimeDomain':_0x338e36[_0x26413f(0xf0)],'accessKey':_0x338e36[_0x26413f(0x110)],'authMode':_0x36dce1}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x338e36[_0x26413f(0x101)]},'numbers':{'pagesize':_0x338e36[_0x26413f(0xcb)]}},'extras':{'appCode':_0x5cac38,'cookie':'','apiDomain':_0x338e36[_0x26413f(0xd9)],'apiDir':'','accessKey':_0x338e36[_0x26413f(0x110)],'envName':_0x338e36[_0x26413f(0xe8)],'mergedCli':_0x338e36[_0x26413f(0x10c)]}};},'confirmHighRisk':_0x51e52d[_0x23a0b1(0xc6)]??(async({def:_0x38ab72,env:_0x3e0456,flags:_0x4ecd58,commandLabel:_0x5430d7})=>{const _0x1d671d=_0x23a0b1;if(_0x3e0456[_0x1d671d(0xea)]){const _0x1cba7e=reconstructCommandArgv(_0x38ab72,_0x4ecd58);throw CliErrors[_0x1d671d(0xc4)](_0x1d671d(0xe5)+_0x5430d7+_0x1d671d(0xd0)+(_0x1d671d(0xe1)+_0x1cba7e));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x38ab72,_0x5430d7,_0x4ecd58),'createCancelledError':_0x4e44c7=>CliErrors[_0x1d671d(0xf7)](_0x4e44c7)});}),'mapDryRunError'(_0x5772cc){return mapUserFacingExecuteError(_0x5772cc);},'mapExecuteError'(_0x3ff40e){return mapUserFacingExecuteError(_0x3ff40e);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0xf0089f;}function shouldRouteWriteToNativeTool(_0x2b10f3,_0x52f683){const _0x493675=a128_0x3d4e;return _0x52f683[_0x493675(0xd7)]===!![]&&(_0x2b10f3[_0x493675(0x10e)]===_0x493675(0x10d)||_0x2b10f3[_0x493675(0x10e)]===_0x493675(0xf2));}function a128_0x34fc(){const _0x249b1b=['items','high-risk-write','string','_notice','appCodeSource','18OEFVpz','cancelled','defaultApp','ACCESS_KEY','update','../core/api-client.js','execute','2759238gnaIxX','../core/sdk-client.js','install','includes','defaultVerbose','../commands/app/remote-source.js','appcode','name','service','3505743dGFaxR','formatOutput','newConfigFileName','cli-skill','Run\x20`','format','mergedCli','write','risk','6613579kZgBVL','accessKey','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','appCode','7710780OYcFPF','171KLECCx','32EcIuHc','validation','currentApp','confirmHighRisk','object','production','8MSqSKc','has','defaultPageSize','APPCODE','.appcode\x20to\x20','rawFlags','doctor','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','nonInteractive','catch','command','riskLevel','requiresAppCode','ClientAk','nativeToolAvailable','trim','apiDomain','verbose','local-alias','pageSize','\x20or\x20pass\x20','authRequired','2132372iIGMdX','pretty','\x20\x20To\x20proceed:\x20','1856310gjZLUS','map','nativeToolRequired','High-risk\x20operation\x20`','app','Unknown\x20app:\x20','env','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','isNonInteractive','configMissing','appcode\x20\x22','5298YQyzKp','204PhpKqd','Set\x20accessKey\x20in\x20','runtimeDomain'];a128_0x34fc=function(){return _0x249b1b;};return a128_0x34fc();}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x359225=a128_0x3d4e;try{if(sdkClientInitialized){const {clearSdkClient:_0x2c867b}=await import(_0x359225(0xfe));_0x2c867b();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x258971}=await import('../core/api-client.js');_0x258971();}}async function resolveExplicitAppName(_0x58f128,_0x582962,_0x3ecd06){const _0x4b39e6=a128_0x3d4e;if(_0x58f128['requiresAppCode']===![])return _0x3ecd06;const _0x3bf73e=typeof _0x582962[_0x4b39e6(0xce)]['app']==='string'?_0x582962[_0x4b39e6(0xce)][_0x4b39e6(0xe6)]['trim']():'';if(!_0x3bf73e)return _0x3ecd06;const _0x4be273=typeof _0x582962[_0x4b39e6(0xce)][_0x4b39e6(0x103)]===_0x4b39e6(0xf3)&&_0x582962[_0x4b39e6(0xce)][_0x4b39e6(0x103)][_0x4b39e6(0xd8)]()||productEnv(_0x4b39e6(0xcc));if(_0x4be273||_0x582962[_0x4b39e6(0xf5)]===_0x4b39e6(0xdb))return _0x3ecd06;const {getRemoteAppList:_0x4bdb71}=await import(_0x4b39e6(0x102)),_0x37664d=await _0x4bdb71({'env':_0x582962[_0x4b39e6(0xe8)]??_0x4b39e6(0xc8),'accessKey':_0x582962[_0x4b39e6(0x110)]}),_0x1fe6e5=findAppByName(_0x37664d[_0x4b39e6(0xf1)],_0x3bf73e);if(_0x1fe6e5&&!isRuntimeAccessibleApp(_0x1fe6e5))throw runtimeInaccessibleAppError(_0x1fe6e5,'\x22'+_0x3bf73e+'\x22');const _0x1b9501=_0x1fe6e5?.[_0x4b39e6(0xc0)]?.['trim']();if(_0x1b9501)return _0x1b9501;throw CliErrors['validation'](_0x4b39e6(0xe7)+_0x3bf73e,_0x4b39e6(0x10a)+CLI_BIN_NAME+_0x4b39e6(0xbf)+_0x3bf73e+_0x4b39e6(0xcd)+PRODUCT_CONFIG['newConfigFileName']+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x131047,_0x5662e8){const _0x3b072b=a128_0x3d4e;if(_0x131047[_0x3b072b(0xd5)]===![]||!_0x5662e8[_0x3b072b(0x110)])return;const _0x9862df=(typeof _0x5662e8[_0x3b072b(0xce)][_0x3b072b(0xe6)]==='string'&&_0x5662e8[_0x3b072b(0xce)]['app']['trim']()?_0x5662e8[_0x3b072b(0xce)][_0x3b072b(0xe6)]:_0x5662e8[_0x3b072b(0x10c)]?.[_0x3b072b(0xc5)]??_0x5662e8[_0x3b072b(0x10c)]?.[_0x3b072b(0xf8)])?.[_0x3b072b(0xd8)]();if(!_0x9862df)return;const {getRemoteAppList:_0x3a44cc}=await import(_0x3b072b(0x102)),_0x26f872=await _0x3a44cc({'env':_0x5662e8[_0x3b072b(0xe8)]??_0x3b072b(0xc8),'accessKey':_0x5662e8[_0x3b072b(0x110)]}),_0x543982=findAppByName(_0x26f872['items'],_0x9862df);if(_0x543982&&!isRuntimeAccessibleApp(_0x543982))throw runtimeInaccessibleAppError(_0x543982,'\x22'+_0x9862df+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x5c342b,_0x580220,_0x3a24a1){const _0x237eca=a128_0x3d4e;if(_0x5c342b[_0x237eca(0xd5)]===![]||!_0x580220[_0x237eca(0x110)])return;const {getRemoteAppList:_0x3f745f}=await import(_0x237eca(0x102)),_0x20581c=await _0x3f745f({'env':_0x580220[_0x237eca(0xe8)]??_0x237eca(0xc8),'accessKey':_0x580220['accessKey']}),_0x172ed3=findAppByCode(_0x20581c[_0x237eca(0xf1)],_0x3a24a1);if(_0x172ed3&&!isRuntimeAccessibleApp(_0x172ed3))throw runtimeInaccessibleAppError(_0x172ed3,_0x237eca(0xec)+_0x3a24a1+'\x22');}export async function runCommand(_0x24ab18,_0x480f92,_0x1e5ce7=terminalRunnerAdapter){assertKnownCommandFlags(_0x24ab18,_0x480f92['rawFlags']),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x24ab18)?withVersionPolicy(_0x24ab18):_0x24ab18,_0x480f92,_0x1e5ce7);}function shouldApplyVersionPolicy(_0x1a30c4){const _0x377919=a128_0x3d4e;if([_0x377919(0xfa),'schema',_0x377919(0xcf)][_0x377919(0x100)](_0x1a30c4[_0x377919(0x105)]))return![];return!(_0x1a30c4[_0x377919(0x105)]===_0x377919(0x109)&&_0x1a30c4[_0x377919(0xd3)]===_0x377919(0xff));}function withVersionPolicy(_0xc14f58){return{..._0xc14f58,async 'execute'(_0x1bcc1d){const _0x3a53c8=a128_0x3d4e,_0x386daf=await checkCliVersion();assertCliVersionSupported(_0x386daf);const _0x5c5916=shouldResolveUpdateNotice(_0x1bcc1d)?resolveLatestUpdateNotice(_0x386daf)[_0x3a53c8(0xd2)](()=>null):Promise['resolve'](null),_0x3d90bb=await _0xc14f58[_0x3a53c8(0xfc)](_0x1bcc1d);return attachUpdateNotice(_0x3d90bb,await _0x5c5916);}};}function shouldResolveUpdateNotice(_0x582402){const _0x4d1361=a128_0x3d4e;return _0x582402[_0x4d1361(0x10b)]===_0x4d1361(0xe0)&&!_0x582402[_0x4d1361(0xd1)];}function attachUpdateNotice(_0x3f9968,_0x3fb52c){const _0x223f2c=a128_0x3d4e;if(!_0x3fb52c||!_0x3f9968||typeof _0x3f9968!==_0x223f2c(0xc7))return _0x3f9968;const _0x1400db=_0x3f9968,_0x3d658f=typeof _0x1400db[_0x223f2c(0xf4)]===_0x223f2c(0xc7)&&_0x1400db['_notice']!==null?_0x1400db[_0x223f2c(0xf4)]:{};return{..._0x1400db,'_notice':{..._0x3d658f,'update':_0x3fb52c}};}
1
+ function a128_0x3cfa(){const _0x18d329=['filter','execute','29455pIcxvE','APPCODE','error','ClientAk','appCode','10575450OAnlnd','map','confirmHighRisk','../commands/app/remote-source.js','\x20or\x20pass\x20','includes','write','pageSize','production','245651djdptR','352qDyayo','format','verbose','../core/api-client.js','configMissing','update','catch','app','appcode\x20\x22','env','has','trim','pretty','cli-skill','nativeToolRequired','Run\x20`','accessKey','nonInteractive','22087549PBPehG','runtimeDomain','formatOutput','service','nativeToolAvailable','1284egvNnm','11871XZriZL','local-alias','schema','12730GxZStK','_notice','appCodeSource','ACCESS_KEY','High-risk\x20operation\x20`','744882dtTudI','10XLkPOF','mergedCli','requiresAppCode','\x20\x20To\x20proceed:\x20','Unknown\x20app:\x20','defaultVerbose','apiDomain','rawFlags','validation','install','defaultPageSize','../core/sdk-client.js','object','authRequired','124uanwkh','resolve','defaultApp','currentApp','risk','items','command','string','doctor','appcode','newConfigFileName','cancelled','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','name'];a128_0x3cfa=function(){return _0x18d329;};return a128_0x3cfa();}(function(_0x4218f7,_0x469688){const _0xe3028c=a128_0x2eb0,_0x48eaf0=_0x4218f7();while(!![]){try{const _0x3e82f0=parseInt(_0xe3028c(0x1d7))/0x1+-parseInt(_0xe3028c(0x206))/0x2+-parseInt(_0xe3028c(0x1fe))/0x3*(parseInt(_0xe3028c(0x215))/0x4)+parseInt(_0xe3028c(0x201))/0x5*(parseInt(_0xe3028c(0x1fd))/0x6)+-parseInt(_0xe3028c(0x1e5))/0x7*(-parseInt(_0xe3028c(0x1e6))/0x8)+parseInt(_0xe3028c(0x1dc))/0x9+-parseInt(_0xe3028c(0x207))/0xa*(parseInt(_0xe3028c(0x1f8))/0xb);if(_0x3e82f0===_0x469688)break;else _0x48eaf0['push'](_0x48eaf0['shift']());}catch(_0x338a04){_0x48eaf0['push'](_0x48eaf0['shift']());}}}(a128_0x3cfa,0xc0f66));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,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain,getRuntimeDomain}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(_0xaa7ce1){const _0x3defbf=a128_0x2eb0;return void _0xaa7ce1,AUTH_MODE[_0x3defbf(0x1da)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x437f41,_0x1b6bc3){const _0x3aff28=a128_0x2eb0,_0x451fc6=typeof _0x1b6bc3[_0x3aff28(0x1ed)]==='string'&&_0x1b6bc3[_0x3aff28(0x1ed)][_0x3aff28(0x1f1)]();return{'rawFlags':_0x1b6bc3,'appCode':_0x437f41[_0x3aff28(0x1db)]||productEnv(_0x3aff28(0x1d8))||(_0x451fc6?undefined:readAppCodeFromConfig()),'appCodeSource':_0x437f41[_0x3aff28(0x203)],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x1b6bc3),'defaultFormat':_0x437f41[_0x3aff28(0x1e7)],'defaultPageSize':_0x437f41[_0x3aff28(0x1e3)],'defaultVerbose':_0x437f41[_0x3aff28(0x1e8)],'riskLevel':_0x437f41['riskLevel'],'nativeToolAvailable':_0x437f41['nativeToolAvailable'],'accessKey':_0x437f41[_0x3aff28(0x1f6)],'env':_0x437f41['env'],'mergedCli':{'defaultApp':_0x437f41[_0x3aff28(0x217)],'currentApp':_0x437f41['currentApp'],'appCode':_0x437f41['appCode']}};}export function createLovrabetRunnerAdapter(_0x36404a={}){const _0x2280d5=a128_0x2eb0,_0x48c510={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x2280d5(0x223)](_0x1efd71=>PIPELINE_FLAG_NAMES[_0x2280d5(0x1f0)](_0x1efd71[_0x2280d5(0x222)]))[_0x2280d5(0x1dd)](({name:_0x2e22ef,type:_0x50578b,description:_0xe47c8a})=>({'name':_0x2e22ef,'type':_0x50578b,'description':_0xe47c8a})),'formatOutput':_0x36404a[_0x2280d5(0x1fa)]??formatOutput,'getCommandLabel'(_0x4f5062){const _0x2bfa47=_0x2280d5;return CLI_BIN_NAME+'\x20'+_0x4f5062[_0x2bfa47(0x1fb)]+'\x20'+_0x4f5062[_0x2bfa47(0x21b)];},'riskPolicy':{'onViolation'(_0x248a19,{def:_0x3ce197,env:_0x418f3e}){const _0x19662b=_0x2280d5;if(shouldRouteWriteToNativeTool(_0x3ce197,_0x418f3e))return;console[_0x19662b(0x1d9)](_0x248a19);},'createError'(_0x58a439,{def:_0x2f71fb,env:_0x1cd204}){const _0x2bcbce=_0x2280d5;if(shouldRouteWriteToNativeTool(_0x2f71fb,_0x1cd204))return CliErrors[_0x2bcbce(0x1f4)](CLI_BIN_NAME+'\x20'+_0x2f71fb[_0x2bcbce(0x1fb)]+'\x20'+_0x2f71fb['command']);return CliErrors[_0x2bcbce(0x220)](_0x58a439);}},async 'prepare'(_0x3a3b59,_0x2ab1c3){const _0x158d5d=_0x2280d5,_0x4e0a93=resolveAuthMode(_0x2ab1c3);if(_0x3a3b59['requiresAuth']!==![]){if(!_0x2ab1c3['accessKey'])throw CliErrors[_0x158d5d(0x214)]('Set\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+_0x158d5d(0x1e0)+productEnvName(_0x158d5d(0x204))+'.');const {setActiveAK:_0x273294}=await import(_0x158d5d(0x1e9));_0x273294(_0x2ab1c3[_0x158d5d(0x1f6)]);}let _0x4b2422='';if(_0x3a3b59[_0x158d5d(0x209)]!==![]){_0x4b2422=_0x2ab1c3[_0x158d5d(0x1db)]??'',_0x4b2422=await resolveExplicitAppName(_0x3a3b59,_0x2ab1c3,_0x4b2422);if(!_0x4b2422){await assertSelectedAppNameIsRuntimeAccessible(_0x3a3b59,_0x2ab1c3);throw CliErrors[_0x158d5d(0x1ea)]('Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20'+PRODUCT_CONFIG[_0x158d5d(0x21f)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x3a3b59,_0x2ab1c3,_0x4b2422);}if(_0x4b2422){const {initSdkClient:_0x90adc3}=await import(_0x158d5d(0x212));_0x90adc3({'appCode':_0x4b2422,'env':_0x2ab1c3[_0x158d5d(0x1ef)]??_0x158d5d(0x1e4),'runtimeDomain':_0x2ab1c3[_0x158d5d(0x1f9)],'accessKey':_0x2ab1c3[_0x158d5d(0x1f6)],'authMode':_0x4e0a93}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x2ab1c3[_0x158d5d(0x20c)]},'numbers':{'pagesize':_0x2ab1c3[_0x158d5d(0x211)]}},'extras':{'appCode':_0x4b2422,'cookie':'','apiDomain':_0x2ab1c3[_0x158d5d(0x20d)],'apiDir':'','accessKey':_0x2ab1c3[_0x158d5d(0x1f6)],'envName':_0x2ab1c3['env'],'mergedCli':_0x2ab1c3[_0x158d5d(0x208)]}};},'confirmHighRisk':_0x36404a[_0x2280d5(0x1de)]??(async({def:_0x431567,env:_0x196e1a,flags:_0x31fce7,commandLabel:_0x4c9075})=>{const _0x34913d=_0x2280d5;if(_0x196e1a['isNonInteractive']){const _0x3004c4=reconstructCommandArgv(_0x431567,_0x31fce7);throw CliErrors[_0x34913d(0x20f)](_0x34913d(0x205)+_0x4c9075+_0x34913d(0x221)+(_0x34913d(0x20a)+_0x3004c4));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x431567,_0x4c9075,_0x31fce7),'createCancelledError':_0x3e1970=>CliErrors[_0x34913d(0x220)](_0x3e1970)});}),'mapDryRunError'(_0x3d4dfd){return mapUserFacingExecuteError(_0x3d4dfd);},'mapExecuteError'(_0x19cbeb){return mapUserFacingExecuteError(_0x19cbeb);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x48c510;}function shouldRouteWriteToNativeTool(_0x2e360c,_0x1eccd9){const _0x27c982=a128_0x2eb0;return _0x1eccd9[_0x27c982(0x1fc)]===!![]&&(_0x2e360c[_0x27c982(0x219)]===_0x27c982(0x1e2)||_0x2e360c['risk']==='high-risk-write');}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x477b8b=a128_0x2eb0;try{if(sdkClientInitialized){const {clearSdkClient:_0x5a5eb5}=await import(_0x477b8b(0x212));_0x5a5eb5();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x1fd19f}=await import(_0x477b8b(0x1e9));_0x1fd19f();}}async function resolveExplicitAppName(_0x4082e9,_0x15460e,_0x3de321){const _0x4d5554=a128_0x2eb0;if(_0x4082e9['requiresAppCode']===![])return _0x3de321;const _0x2d4069=typeof _0x15460e[_0x4d5554(0x20e)][_0x4d5554(0x1ed)]===_0x4d5554(0x21c)?_0x15460e['rawFlags'][_0x4d5554(0x1ed)][_0x4d5554(0x1f1)]():'';if(!_0x2d4069)return _0x3de321;const _0x4922de=typeof _0x15460e[_0x4d5554(0x20e)][_0x4d5554(0x21e)]===_0x4d5554(0x21c)&&_0x15460e[_0x4d5554(0x20e)]['appcode']['trim']()||productEnv('APPCODE');if(_0x4922de||_0x15460e[_0x4d5554(0x203)]===_0x4d5554(0x1ff))return _0x3de321;const {getRemoteAppList:_0x11c3db}=await import('../commands/app/remote-source.js'),_0x404655=await _0x11c3db({'env':_0x15460e[_0x4d5554(0x1ef)]??_0x4d5554(0x1e4),'accessKey':_0x15460e[_0x4d5554(0x1f6)]}),_0x32bebb=findAppByName(_0x404655['items'],_0x2d4069);if(_0x32bebb&&!isRuntimeAccessibleApp(_0x32bebb))throw runtimeInaccessibleAppError(_0x32bebb,'\x22'+_0x2d4069+'\x22');const _0x18e733=_0x32bebb?.['appCode']?.[_0x4d5554(0x1f1)]();if(_0x18e733)return _0x18e733;throw CliErrors[_0x4d5554(0x20f)](_0x4d5554(0x20b)+_0x2d4069,_0x4d5554(0x1f5)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0x2d4069+'.appcode\x20to\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x134a61,_0x5bd8e9){const _0x1eb81b=a128_0x2eb0;if(_0x134a61[_0x1eb81b(0x209)]===![]||!_0x5bd8e9[_0x1eb81b(0x1f6)])return;const _0xbc1c24=(typeof _0x5bd8e9['rawFlags']['app']===_0x1eb81b(0x21c)&&_0x5bd8e9[_0x1eb81b(0x20e)][_0x1eb81b(0x1ed)]['trim']()?_0x5bd8e9[_0x1eb81b(0x20e)]['app']:_0x5bd8e9[_0x1eb81b(0x208)]?.[_0x1eb81b(0x218)]??_0x5bd8e9['mergedCli']?.[_0x1eb81b(0x217)])?.['trim']();if(!_0xbc1c24)return;const {getRemoteAppList:_0xb183b}=await import(_0x1eb81b(0x1df)),_0x18d252=await _0xb183b({'env':_0x5bd8e9['env']??_0x1eb81b(0x1e4),'accessKey':_0x5bd8e9[_0x1eb81b(0x1f6)]}),_0x3ddd4c=findAppByName(_0x18d252[_0x1eb81b(0x21a)],_0xbc1c24);if(_0x3ddd4c&&!isRuntimeAccessibleApp(_0x3ddd4c))throw runtimeInaccessibleAppError(_0x3ddd4c,'\x22'+_0xbc1c24+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x1d20c2,_0x58963a,_0x1cd900){const _0x48e94d=a128_0x2eb0;if(_0x1d20c2['requiresAppCode']===![]||!_0x58963a[_0x48e94d(0x1f6)])return;const {getRemoteAppList:_0x474173}=await import('../commands/app/remote-source.js'),_0x1a73ee=await _0x474173({'env':_0x58963a[_0x48e94d(0x1ef)]??'production','accessKey':_0x58963a['accessKey']}),_0x2693d2=findAppByCode(_0x1a73ee[_0x48e94d(0x21a)],_0x1cd900);if(_0x2693d2&&!isRuntimeAccessibleApp(_0x2693d2))throw runtimeInaccessibleAppError(_0x2693d2,_0x48e94d(0x1ee)+_0x1cd900+'\x22');}export async function runCommand(_0xc29c09,_0x1a9c20,_0x2fe37b=terminalRunnerAdapter){const _0x32ca76=a128_0x2eb0;assertKnownCommandFlags(_0xc29c09,_0x1a9c20[_0x32ca76(0x20e)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0xc29c09)?withVersionPolicy(_0xc29c09):_0xc29c09,_0x1a9c20,_0x2fe37b);}function shouldApplyVersionPolicy(_0x45f729){const _0x21a866=a128_0x2eb0;if([_0x21a866(0x1eb),_0x21a866(0x200),_0x21a866(0x21d)][_0x21a866(0x1e1)](_0x45f729[_0x21a866(0x1fb)]))return![];return!(_0x45f729[_0x21a866(0x1fb)]===_0x21a866(0x1f3)&&_0x45f729['command']===_0x21a866(0x210));}function withVersionPolicy(_0x2d71a9){return{..._0x2d71a9,async 'execute'(_0x33532c){const _0x3c6df2=a128_0x2eb0,_0x37e769=await checkCliVersion();assertCliVersionSupported(_0x37e769);const _0x4cb4a1=shouldResolveUpdateNotice(_0x33532c)?resolveLatestUpdateNotice(_0x37e769)[_0x3c6df2(0x1ec)](()=>null):Promise[_0x3c6df2(0x216)](null),_0x226485=await _0x2d71a9[_0x3c6df2(0x1d6)](_0x33532c);return attachUpdateNotice(_0x226485,await _0x4cb4a1);}};}function shouldResolveUpdateNotice(_0x7467e1){const _0x558994=a128_0x2eb0;return _0x7467e1[_0x558994(0x1e7)]===_0x558994(0x1f2)&&!_0x7467e1[_0x558994(0x1f7)];}function a128_0x2eb0(_0x4a3e76,_0x2d7f8b){_0x4a3e76=_0x4a3e76-0x1d6;const _0x3cfad9=a128_0x3cfa();let _0x2eb06f=_0x3cfad9[_0x4a3e76];return _0x2eb06f;}function attachUpdateNotice(_0x298b13,_0x34c2f7){const _0x438e1a=a128_0x2eb0;if(!_0x34c2f7||!_0x298b13||typeof _0x298b13!==_0x438e1a(0x213))return _0x298b13;const _0x2410c4=_0x298b13,_0x5da536=typeof _0x2410c4[_0x438e1a(0x202)]===_0x438e1a(0x213)&&_0x2410c4['_notice']!==null?_0x2410c4[_0x438e1a(0x202)]:{};return{..._0x2410c4,'_notice':{..._0x5da536,'update':_0x34c2f7}};}
@@ -1 +1 @@
1
- (function(_0x4dfd5d,_0x57f70d){const _0x2a7d5a=a129_0x1753,_0x2dec15=_0x4dfd5d();while(!![]){try{const _0x4af4f3=parseInt(_0x2a7d5a(0xbb))/0x1+parseInt(_0x2a7d5a(0xbd))/0x2+parseInt(_0x2a7d5a(0xba))/0x3+-parseInt(_0x2a7d5a(0xc0))/0x4+-parseInt(_0x2a7d5a(0xbf))/0x5+parseInt(_0x2a7d5a(0xb8))/0x6+-parseInt(_0x2a7d5a(0xb7))/0x7;if(_0x4af4f3===_0x57f70d)break;else _0x2dec15['push'](_0x2dec15['shift']());}catch(_0x2165e8){_0x2dec15['push'](_0x2dec15['shift']());}}}(a129_0x2cba,0xbee1f));function a129_0x2cba(){const _0x37eb97=['commands','8849099WKdtEd','5748930bbFQDU','../commands/registry.js','2009502haAHRt','1420142Ybtzvp','filter','377588AGuLke','requiresAuth','3826415PGUvnu','1702520TPXXte','auth','service','has','map'];a129_0x2cba=function(){return _0x37eb97;};return a129_0x2cba();}import{buildSchemaPayload as a129_0x39a25f}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';function a129_0x1753(_0x2b4b25,_0x4705f5){_0x2b4b25=_0x2b4b25-0xb2;const _0x2cba7d=a129_0x2cba();let _0x17538e=_0x2cba7d[_0x2b4b25];return _0x17538e;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliGitCommit,getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x476d03=a129_0x1753,{serviceRegistry:_0x220374,findDefinition:_0x11567a}=await import(_0x476d03(0xb9)),_0x1065fa=new Set(_0x220374[_0x476d03(0xb5)](_0x3a0c63=>_0x3a0c63['service'])),_0x4872d3=listDynamicServiceEntries()[_0x476d03(0xbc)](_0x3b0fc4=>!_0x1065fa[_0x476d03(0xb4)](_0x3b0fc4[_0x476d03(0xb3)])),_0x2e9404=a129_0x39a25f({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x220374,_0x4872d3),'buildAllFlags':buildAllFlags,'findDefinition':(_0x4d44b4,_0x576d91)=>_0x11567a(_0x4d44b4,_0x576d91)??findDynamicServiceDefinition(_0x4d44b4,_0x576d91)});return normalizeSchemaPayload(_0x2e9404);}function normalizeSchemaPayload(_0x579038){const _0x1ad483=a129_0x1753;return{..._0x579038,'schemaVersion':0x2,'services':_0x579038['services'][_0x1ad483(0xb5)](_0x94b41b=>({..._0x94b41b,'commands':_0x94b41b[_0x1ad483(0xb6)][_0x1ad483(0xb5)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x22da08){const _0x1777ec=a129_0x1753,_0x221ea2=_0x22da08;return{..._0x22da08,'auth':_0x221ea2[_0x1777ec(0xb2)]??(_0x22da08[_0x1777ec(0xbe)]?'required':'none')};}
1
+ function a129_0x5926(){const _0x3fbce4=['requiresAuth','11336QjyYKz','auth','52iXgMcB','map','has','required','services','none','2528952WqfVkG','4snwfuO','687306PhVjcQ','4160740TvaxWH','19337DVkycw','2256435MRFhPs','5331942sgzCip','service','322tRkWrB','45SgJLIt'];a129_0x5926=function(){return _0x3fbce4;};return a129_0x5926();}(function(_0x386fb1,_0x4d5dc5){const _0x2d69f7=a129_0x1483,_0x40efda=_0x386fb1();while(!![]){try{const _0x5e908f=-parseInt(_0x2d69f7(0x125))/0x1*(parseInt(_0x2d69f7(0x11b))/0x2)+-parseInt(_0x2d69f7(0x121))/0x3*(-parseInt(_0x2d69f7(0x122))/0x4)+parseInt(_0x2d69f7(0x117))/0x5*(-parseInt(_0x2d69f7(0x123))/0x6)+-parseInt(_0x2d69f7(0x116))/0x7*(-parseInt(_0x2d69f7(0x119))/0x8)+parseInt(_0x2d69f7(0x126))/0x9+parseInt(_0x2d69f7(0x124))/0xa+parseInt(_0x2d69f7(0x127))/0xb;if(_0x5e908f===_0x4d5dc5)break;else _0x40efda['push'](_0x40efda['shift']());}catch(_0x3b81d1){_0x40efda['push'](_0x40efda['shift']());}}}(a129_0x5926,0x80684));import{buildSchemaPayload as a129_0x1456d1}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';import{getCliGitCommit,getCliVersion}from'../utils/version.js';function a129_0x1483(_0x481455,_0x35c823){_0x481455=_0x481455-0x116;const _0x5926eb=a129_0x5926();let _0x14832a=_0x5926eb[_0x481455];return _0x14832a;}export async function buildSchemaPayload(){const _0x5af96c=a129_0x1483,{serviceRegistry:_0xb0257f,findDefinition:_0x23715e}=await import('../commands/registry.js'),_0x59e904=new Set(_0xb0257f[_0x5af96c(0x11c)](_0x4e4323=>_0x4e4323['service'])),_0x47d67b=listDynamicServiceEntries()['filter'](_0x332845=>!_0x59e904[_0x5af96c(0x11d)](_0x332845[_0x5af96c(0x128)])),_0x23aace=a129_0x1456d1({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0xb0257f,_0x47d67b),'buildAllFlags':buildAllFlags,'findDefinition':(_0x688fed,_0xc6bfe4)=>_0x23715e(_0x688fed,_0xc6bfe4)??findDynamicServiceDefinition(_0x688fed,_0xc6bfe4)});return normalizeSchemaPayload(_0x23aace);}function normalizeSchemaPayload(_0x8c4a08){const _0x39fc2d=a129_0x1483;return{..._0x8c4a08,'schemaVersion':0x2,'services':_0x8c4a08[_0x39fc2d(0x11f)][_0x39fc2d(0x11c)](_0x2426bc=>({..._0x2426bc,'commands':_0x2426bc['commands'][_0x39fc2d(0x11c)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x92eed7){const _0x24b242=a129_0x1483,_0x10bdf1=_0x92eed7;return{..._0x92eed7,'auth':_0x10bdf1[_0x24b242(0x11a)]??(_0x92eed7[_0x24b242(0x118)]?_0x24b242(0x11e):_0x24b242(0x120))};}
@@ -1 +1 @@
1
- (function(_0x30140d,_0x25fe2b){const _0x202f5a=a130_0x1db2,_0x1a46fa=_0x30140d();while(!![]){try{const _0x4fe162=parseInt(_0x202f5a(0x115))/0x1*(-parseInt(_0x202f5a(0x10f))/0x2)+parseInt(_0x202f5a(0x116))/0x3*(parseInt(_0x202f5a(0x113))/0x4)+-parseInt(_0x202f5a(0x10d))/0x5+parseInt(_0x202f5a(0x114))/0x6*(parseInt(_0x202f5a(0x111))/0x7)+parseInt(_0x202f5a(0x118))/0x8*(-parseInt(_0x202f5a(0x117))/0x9)+parseInt(_0x202f5a(0x10e))/0xa+parseInt(_0x202f5a(0x110))/0xb;if(_0x4fe162===_0x25fe2b)break;else _0x1a46fa['push'](_0x1a46fa['shift']());}catch(_0x33f53e){_0x1a46fa['push'](_0x1a46fa['shift']());}}}(a130_0x1d75,0x371b9));function a130_0x1d75(){const _0x37beca=['322360dTHIVS','6neIkkr','88041LhhVhA','6wMICDI','198810tSsTOy','16JwWlrx','slice','findIndex','966470kghSVL','3290270zLoHTY','8QHeOWO','799205iQFhcA','1767479OlghWO','service'];a130_0x1d75=function(){return _0x37beca;};return a130_0x1d75();}function a130_0x1db2(_0x46e6bd,_0x57da2d){_0x46e6bd=_0x46e6bd-0x10b;const _0x1d7579=a130_0x1d75();let _0x1db238=_0x1d7579[_0x46e6bd];return _0x1db238;}export function insertDynamicServicesAfterServiceTree(_0x3ed203,_0x5e778e){const _0x47fae2=a130_0x1db2;if(_0x5e778e['length']===0x0)return[..._0x3ed203];const _0x34f1b7=_0x3ed203[_0x47fae2(0x10c)](_0xb09acb=>_0xb09acb['service']===_0x47fae2(0x112));if(_0x34f1b7<0x0)return[..._0x3ed203,..._0x5e778e];return[..._0x3ed203['slice'](0x0,_0x34f1b7+0x1),..._0x5e778e,..._0x3ed203[_0x47fae2(0x10b)](_0x34f1b7+0x1)];}
1
+ function a130_0x56e2(){const _0x47fce9=['5qNmjOA','length','457394KRzjHu','1138036cYHwSN','9MAgDWW','slice','676431VkQZzJ','service','658100CPuFYm','606851DHsCVV','24RvzLhs','297731MIZcaC','18996PyvJru'];a130_0x56e2=function(){return _0x47fce9;};return a130_0x56e2();}(function(_0xd4e179,_0x5ab284){const _0x38088f=a130_0x376a,_0x1a346b=_0xd4e179();while(!![]){try{const _0x48adbd=parseInt(_0x38088f(0x119))/0x1+-parseInt(_0x38088f(0x110))/0x2+parseInt(_0x38088f(0x114))/0x3+-parseInt(_0x38088f(0x111))/0x4*(-parseInt(_0x38088f(0x11b))/0x5)+-parseInt(_0x38088f(0x11a))/0x6+-parseInt(_0x38088f(0x117))/0x7*(parseInt(_0x38088f(0x118))/0x8)+parseInt(_0x38088f(0x112))/0x9*(-parseInt(_0x38088f(0x116))/0xa);if(_0x48adbd===_0x5ab284)break;else _0x1a346b['push'](_0x1a346b['shift']());}catch(_0x312e2e){_0x1a346b['push'](_0x1a346b['shift']());}}}(a130_0x56e2,0x3d06d));function a130_0x376a(_0x1fe7d0,_0x3adfa9){_0x1fe7d0=_0x1fe7d0-0x10f;const _0x56e2b2=a130_0x56e2();let _0x376a82=_0x56e2b2[_0x1fe7d0];return _0x376a82;}export function insertDynamicServicesAfterServiceTree(_0x13d3ce,_0x4502df){const _0x212b21=a130_0x376a;if(_0x4502df[_0x212b21(0x10f)]===0x0)return[..._0x13d3ce];const _0x2f7e14=_0x13d3ce['findIndex'](_0x414143=>_0x414143[_0x212b21(0x115)]===_0x212b21(0x115));if(_0x2f7e14<0x0)return[..._0x13d3ce,..._0x4502df];return[..._0x13d3ce[_0x212b21(0x113)](0x0,_0x2f7e14+0x1),..._0x4502df,..._0x13d3ce['slice'](_0x2f7e14+0x1)];}
@@ -1 +1 @@
1
- (function(_0xc53189,_0x59318b){var _0x2d971e=a131_0x2701,_0x4b6364=_0xc53189();while(!![]){try{var _0x2c58c3=parseInt(_0x2d971e(0x7d))/0x1+-parseInt(_0x2d971e(0x7b))/0x2+parseInt(_0x2d971e(0x76))/0x3*(parseInt(_0x2d971e(0x7c))/0x4)+-parseInt(_0x2d971e(0x7a))/0x5+-parseInt(_0x2d971e(0x79))/0x6+parseInt(_0x2d971e(0x77))/0x7+parseInt(_0x2d971e(0x78))/0x8;if(_0x2c58c3===_0x59318b)break;else _0x4b6364['push'](_0x4b6364['shift']());}catch(_0x43f19f){_0x4b6364['push'](_0x4b6364['shift']());}}}(a131_0x1615,0x9a1a6));function a131_0x2701(_0x249e4b,_0x1bb143){_0x249e4b=_0x249e4b-0x76;var _0x161584=a131_0x1615();var _0x270168=_0x161584[_0x249e4b];return _0x270168;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a131_0x1615(){var _0x1eb0b4=['2197236bzpRYi','3047260KQsabX','2488190CyEAZs','1886596uWVPyw','417207bIUzeD','6DDzelV','2581355LVRGMh','8973512CWhPHx'];a131_0x1615=function(){return _0x1eb0b4;};return a131_0x1615();}
1
+ (function(_0x1f47fd,_0x3f1ff8){var _0x43b27b=a131_0x3583,_0x3a76ef=_0x1f47fd();while(!![]){try{var _0x9717=-parseInt(_0x43b27b(0xcb))/0x1*(parseInt(_0x43b27b(0xc7))/0x2)+parseInt(_0x43b27b(0xc5))/0x3+-parseInt(_0x43b27b(0xc9))/0x4*(parseInt(_0x43b27b(0xc2))/0x5)+-parseInt(_0x43b27b(0xcc))/0x6+-parseInt(_0x43b27b(0xc8))/0x7*(parseInt(_0x43b27b(0xc4))/0x8)+parseInt(_0x43b27b(0xca))/0x9+parseInt(_0x43b27b(0xc3))/0xa*(parseInt(_0x43b27b(0xc6))/0xb);if(_0x9717===_0x3f1ff8)break;else _0x3a76ef['push'](_0x3a76ef['shift']());}catch(_0x891e44){_0x3a76ef['push'](_0x3a76ef['shift']());}}}(a131_0x1347,0x9b61f));function a131_0x3583(_0x483adc,_0xb34cd5){_0x483adc=_0x483adc-0xc2;var _0x13475d=a131_0x1347();var _0x35836b=_0x13475d[_0x483adc];return _0x35836b;}function a131_0x1347(){var _0x39d386=['6892uXZPUc','5116347SEwLlZ','1MhPNWt','2729382UBJkmw','1545uRNWPi','230gSrITc','2899920dHYpXd','2883966frWqPK','1150578DSCaor','2448676AgsQxx','21LGwhJS'];a131_0x1347=function(){return _0x39d386;};return a131_0x1347();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "2.3.8-beta.5";
2
- export declare const GIT_TAG = "v2.3.8-beta.5";
3
- export declare const GIT_COMMIT = "d9ba645";
4
- export declare const BUILD_TIME = "2026-11-02T07:57:14.525Z";
1
+ export declare const VERSION = "2.3.8-beta.6";
2
+ export declare const GIT_TAG = "v2.3.8-beta.6";
3
+ export declare const GIT_COMMIT = "bd72bc8";
4
+ export declare const BUILD_TIME = "2026-11-02T09:18:02.466Z";
@@ -1 +1 @@
1
- const a132_0x243224=a132_0x14d0;(function(_0x57c13e,_0x5d841d){const _0x2edea2=a132_0x14d0,_0x3945be=_0x57c13e();while(!![]){try{const _0x4bc2f6=-parseInt(_0x2edea2(0xa0))/0x1*(parseInt(_0x2edea2(0xa2))/0x2)+parseInt(_0x2edea2(0xa9))/0x3*(-parseInt(_0x2edea2(0x9e))/0x4)+-parseInt(_0x2edea2(0xa3))/0x5+parseInt(_0x2edea2(0xa8))/0x6+parseInt(_0x2edea2(0xaa))/0x7+-parseInt(_0x2edea2(0xa5))/0x8*(parseInt(_0x2edea2(0xa6))/0x9)+parseInt(_0x2edea2(0xa7))/0xa;if(_0x4bc2f6===_0x5d841d)break;else _0x3945be['push'](_0x3945be['shift']());}catch(_0xf21982){_0x3945be['push'](_0x3945be['shift']());}}}(a132_0x40a4,0x34d68));function a132_0x14d0(_0x506c18,_0x1080a3){_0x506c18=_0x506c18-0x9e;const _0x40a439=a132_0x40a4();let _0x14d0ab=_0x40a439[_0x506c18];return _0x14d0ab;}export const VERSION=a132_0x243224(0x9f);export const GIT_TAG='v2.3.8-beta.5';export const GIT_COMMIT=a132_0x243224(0xa1);export const BUILD_TIME=a132_0x243224(0xa4);function a132_0x40a4(){const _0x359c26=['1961118HGamtu','1191597RAmpca','1100855Iejhre','4xdMFgQ','2.3.8-beta.5','3xKNtcA','d9ba645','210892NXQkwr','757270HzBUOW','2026-11-02T07:57:14.525Z','80OmPnYO','185571rRFaSp','8034870pxliaC'];a132_0x40a4=function(){return _0x359c26;};return a132_0x40a4();}
1
+ const a132_0x3763af=a132_0x1517;(function(_0x47b4bb,_0x703e0){const _0xeb707b=a132_0x1517,_0x19b938=_0x47b4bb();while(!![]){try{const _0x1532d2=-parseInt(_0xeb707b(0xaa))/0x1*(parseInt(_0xeb707b(0xab))/0x2)+-parseInt(_0xeb707b(0xa9))/0x3*(parseInt(_0xeb707b(0xa5))/0x4)+parseInt(_0xeb707b(0xa4))/0x5+parseInt(_0xeb707b(0xa8))/0x6*(parseInt(_0xeb707b(0xaf))/0x7)+-parseInt(_0xeb707b(0xae))/0x8+-parseInt(_0xeb707b(0xad))/0x9+parseInt(_0xeb707b(0xac))/0xa;if(_0x1532d2===_0x703e0)break;else _0x19b938['push'](_0x19b938['shift']());}catch(_0x493f8a){_0x19b938['push'](_0x19b938['shift']());}}}(a132_0x4707,0x1e382));export const VERSION=a132_0x3763af(0xa6);function a132_0x1517(_0xfd83b7,_0x2b1dfd){_0xfd83b7=_0xfd83b7-0xa4;const _0x47073f=a132_0x4707();let _0x1517c0=_0x47073f[_0xfd83b7];return _0x1517c0;}function a132_0x4707(){const _0x38cc5c=['608TDomjm','2313650qToXKR','1619118XNfZrc','397112nTDrAM','7dIBQFA','449200HuJpzz','744jLpUgk','2.3.8-beta.6','bd72bc8','488904uyXIZn','507jxcNRt','59RdICKO'];a132_0x4707=function(){return _0x38cc5c;};return a132_0x4707();}export const GIT_TAG='v2.3.8-beta.6';export const GIT_COMMIT=a132_0x3763af(0xa7);export const BUILD_TIME='2026-11-02T09:18:02.466Z';
@@ -1 +1 @@
1
- const a133_0x33d6e4=a133_0x57fc;(function(_0x119f5c,_0x5bf663){const _0x55cf59=a133_0x57fc,_0x3c4037=_0x119f5c();while(!![]){try{const _0x34c69f=parseInt(_0x55cf59(0x8d))/0x1*(parseInt(_0x55cf59(0x92))/0x2)+-parseInt(_0x55cf59(0x80))/0x3*(-parseInt(_0x55cf59(0x95))/0x4)+-parseInt(_0x55cf59(0x8c))/0x5+parseInt(_0x55cf59(0x93))/0x6*(-parseInt(_0x55cf59(0x88))/0x7)+-parseInt(_0x55cf59(0x8f))/0x8+parseInt(_0x55cf59(0x82))/0x9+-parseInt(_0x55cf59(0x86))/0xa*(-parseInt(_0x55cf59(0x7f))/0xb);if(_0x34c69f===_0x5bf663)break;else _0x3c4037['push'](_0x3c4037['shift']());}catch(_0x5b2377){_0x3c4037['push'](_0x3c4037['shift']());}}}(a133_0x5ae5,0x27339));export const ROUTING_CATALOG_DIGEST=a133_0x33d6e4(0x7c);export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id',a133_0x33d6e4(0x7e)];export const ENABLED_REGION_VALUES=['cn','id',a133_0x33d6e4(0x7e)];function a133_0x5ae5(){const _0xb103df=['3031hKBsSi','Mainland\x20China','Indonesia','https://skills-daily.lovrabet.ai','215045VhhmlP','112560jTAQnk','https://daily-runtime.lovrabet.ai','1790768xZfrcB','https://user.lovrabet.id','https://user.lovrabet.ai','2AkALBB','2334LllQCX','https://api.lovrabet.com','4FHYfAg','https://user-daily.lovrabet.ai','https://skills.lovrabet.id','https://runtime.lovrabet.id','https://api.lovrabet.id','https://daily-api.lovrabet.ai','https://user-daily.lovrabet.com','https://kb-service.lovrabet.com','https://daily-api.lovrabet.com','https://api.lovrabet.ai','886843ef89aa4ff2b36d612e8fbd1b6c1840b37728916fba5699be34129ef579','indonesia','global','11ABSWyg','447102vtZfmv','https://skills-daily.lovrabet.com','64881qJERAG','https://kb-service.lovrabet.id','https://runtime.lovrabet.ai','Global','3270580loqMUJ','https://user.lovrabet.com'];a133_0x5ae5=function(){return _0xb103df;};return a133_0x5ae5();}function a133_0x57fc(_0x230bac,_0x1c289d){_0x230bac=_0x230bac-0x79;const _0x5ae5f7=a133_0x5ae5();let _0x57fcdd=_0x5ae5f7[_0x230bac];return _0x57fcdd;}export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a133_0x33d6e4(0x89),'aliases':['china'],'serviceDomains':{'production':{'user':a133_0x33d6e4(0x87),'api':a133_0x33d6e4(0x94),'runtime':'https://runtime.lovrabet.com','skill':'https://skills.lovrabet.com','kbService':a133_0x33d6e4(0x79)},'daily':{'user':a133_0x33d6e4(0x9b),'api':a133_0x33d6e4(0x7a),'runtime':'https://daily-runtime.lovrabet.com','skill':a133_0x33d6e4(0x81),'kbService':'https://kb-service-daily.lovrabet.com'}}},'id':{'enabled':!![],'label':a133_0x33d6e4(0x8a),'aliases':[a133_0x33d6e4(0x7d)],'serviceDomains':{'production':{'user':a133_0x33d6e4(0x90),'api':a133_0x33d6e4(0x99),'runtime':a133_0x33d6e4(0x98),'skill':a133_0x33d6e4(0x97),'kbService':a133_0x33d6e4(0x83)}}},'global':{'enabled':!![],'label':a133_0x33d6e4(0x85),'aliases':[],'serviceDomains':{'production':{'user':a133_0x33d6e4(0x91),'api':a133_0x33d6e4(0x7b),'runtime':a133_0x33d6e4(0x84),'skill':'https://skills.lovrabet.ai'},'daily':{'user':a133_0x33d6e4(0x96),'api':a133_0x33d6e4(0x9a),'runtime':a133_0x33d6e4(0x8e),'skill':a133_0x33d6e4(0x8b)}}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
1
+ const a133_0x42c29a=a133_0x198d;function a133_0x198d(_0x544b20,_0x579aa0){_0x544b20=_0x544b20-0x161;const _0x99ed93=a133_0x99ed();let _0x198d2d=_0x99ed93[_0x544b20];return _0x198d2d;}(function(_0x360fca,_0x24e4c1){const _0x4a9efc=a133_0x198d,_0x1b0d4b=_0x360fca();while(!![]){try{const _0x1667ed=-parseInt(_0x4a9efc(0x184))/0x1+parseInt(_0x4a9efc(0x170))/0x2+-parseInt(_0x4a9efc(0x176))/0x3*(-parseInt(_0x4a9efc(0x167))/0x4)+-parseInt(_0x4a9efc(0x16d))/0x5*(-parseInt(_0x4a9efc(0x16e))/0x6)+-parseInt(_0x4a9efc(0x17d))/0x7*(parseInt(_0x4a9efc(0x161))/0x8)+parseInt(_0x4a9efc(0x169))/0x9*(-parseInt(_0x4a9efc(0x165))/0xa)+parseInt(_0x4a9efc(0x16c))/0xb;if(_0x1667ed===_0x24e4c1)break;else _0x1b0d4b['push'](_0x1b0d4b['shift']());}catch(_0x554929){_0x1b0d4b['push'](_0x1b0d4b['shift']());}}}(a133_0x99ed,0x959a8));export const ROUTING_CATALOG_DIGEST=a133_0x42c29a(0x162);export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id',a133_0x42c29a(0x180)];export const ENABLED_REGION_VALUES=['cn','id',a133_0x42c29a(0x180)];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a133_0x42c29a(0x181),'aliases':[a133_0x42c29a(0x175)],'serviceDomains':{'production':{'user':a133_0x42c29a(0x17a),'api':a133_0x42c29a(0x183),'runtime':a133_0x42c29a(0x173),'skill':a133_0x42c29a(0x163),'kbService':'https://kb-service.lovrabet.com'},'daily':{'user':a133_0x42c29a(0x166),'api':a133_0x42c29a(0x17c),'runtime':a133_0x42c29a(0x164),'skill':'https://skills-daily.lovrabet.com','kbService':a133_0x42c29a(0x16b)}}},'id':{'enabled':!![],'label':a133_0x42c29a(0x178),'aliases':[a133_0x42c29a(0x182)],'serviceDomains':{'production':{'user':a133_0x42c29a(0x172),'api':a133_0x42c29a(0x174),'runtime':'https://runtime.lovrabet.id','skill':a133_0x42c29a(0x17f),'kbService':'https://kb-service.lovrabet.id'}}},'global':{'enabled':!![],'label':a133_0x42c29a(0x177),'aliases':[],'serviceDomains':{'production':{'user':a133_0x42c29a(0x17b),'api':a133_0x42c29a(0x17e),'runtime':a133_0x42c29a(0x171),'skill':a133_0x42c29a(0x179)},'daily':{'user':a133_0x42c29a(0x16a),'api':a133_0x42c29a(0x168),'runtime':a133_0x42c29a(0x185),'skill':a133_0x42c29a(0x16f)}}}};function a133_0x99ed(){const _0x2fd341=['40408fcFpXE','886843ef89aa4ff2b36d612e8fbd1b6c1840b37728916fba5699be34129ef579','https://skills.lovrabet.com','https://daily-runtime.lovrabet.com','10690wCAIjI','https://user-daily.lovrabet.com','8KCYrld','https://daily-api.lovrabet.ai','2196iaYXzk','https://user-daily.lovrabet.ai','https://kb-service-daily.lovrabet.com','2144395xMMZTU','84705mgBDzE','12XYRaCE','https://skills-daily.lovrabet.ai','1187702QmTyhf','https://runtime.lovrabet.ai','https://user.lovrabet.id','https://runtime.lovrabet.com','https://api.lovrabet.id','china','1186473RAqvvC','Global','Indonesia','https://skills.lovrabet.ai','https://user.lovrabet.com','https://user.lovrabet.ai','https://daily-api.lovrabet.com','259EEFAdZ','https://api.lovrabet.ai','https://skills.lovrabet.id','global','Mainland\x20China','indonesia','https://api.lovrabet.com','553161mSAOUe','https://daily-runtime.lovrabet.ai'];a133_0x99ed=function(){return _0x2fd341;};return a133_0x99ed();}export const REGION_ALIASES={'china':'cn','indonesia':'id'};
@@ -1 +1 @@
1
- const a134_0x2caa45=a134_0x6bb3;(function(_0x224fc2,_0x4fa6da){const _0x1f49e2=a134_0x6bb3,_0xbb9ac0=_0x224fc2();while(!![]){try{const _0x4a66b6=-parseInt(_0x1f49e2(0x7d))/0x1+parseInt(_0x1f49e2(0x81))/0x2*(-parseInt(_0x1f49e2(0x86))/0x3)+-parseInt(_0x1f49e2(0x82))/0x4*(-parseInt(_0x1f49e2(0x85))/0x5)+parseInt(_0x1f49e2(0x83))/0x6+parseInt(_0x1f49e2(0x7b))/0x7*(-parseInt(_0x1f49e2(0x84))/0x8)+parseInt(_0x1f49e2(0x80))/0x9*(-parseInt(_0x1f49e2(0x87))/0xa)+parseInt(_0x1f49e2(0x7a))/0xb;if(_0x4a66b6===_0x4fa6da)break;else _0xbb9ac0['push'](_0xbb9ac0['shift']());}catch(_0x5e36e9){_0xbb9ac0['push'](_0xbb9ac0['shift']());}}}(a134_0x4502,0x1870a));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST='e3423cad71c22edb18a8481be7bdb733ff2d4136c31aa3ae6da56271e32cced7';function a134_0x6bb3(_0x37432f,_0x32cbb4){_0x37432f=_0x37432f-0x7a;const _0x4502e9=a134_0x4502();let _0x6bb378=_0x4502e9[_0x37432f];return _0x6bb378;}export const ENTERPRISE_ROUTING_PROTOCOL=a134_0x2caa45(0x7c);export const ENTERPRISE_ROUTING_KIND=a134_0x2caa45(0x89);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a134_0x2caa45(0x88),'apiDomain',a134_0x2caa45(0x7f),'skillDomain',a134_0x2caa45(0x7e)];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a134_0x2caa45(0x88),'apiDomain','runtimeDomain','skillDomain'];function a134_0x4502(){const _0x278920=['2281532PQVkdL','35ekAJiU','lovrabet-routing/v1','175056VjTcGt','kbServiceDomain','runtimeDomain','91629KAmJAY','1330ZdESrs','1124JqTbpd','331866aTpQEB','191024yEYvRR','3165uokBaT','24pXAmKV','40uHsYuH','userDomain','enterprise'];a134_0x4502=function(){return _0x278920;};return a134_0x4502();}
1
+ const a134_0x5dad1e=a134_0x4914;(function(_0x229a8c,_0x55136c){const _0x4e8e76=a134_0x4914,_0x33b08d=_0x229a8c();while(!![]){try{const _0x53aa5d=-parseInt(_0x4e8e76(0x1b4))/0x1*(-parseInt(_0x4e8e76(0x1b8))/0x2)+-parseInt(_0x4e8e76(0x1b5))/0x3+parseInt(_0x4e8e76(0x1bf))/0x4*(-parseInt(_0x4e8e76(0x1c3))/0x5)+parseInt(_0x4e8e76(0x1bc))/0x6+parseInt(_0x4e8e76(0x1b6))/0x7+-parseInt(_0x4e8e76(0x1b7))/0x8*(-parseInt(_0x4e8e76(0x1c1))/0x9)+-parseInt(_0x4e8e76(0x1b9))/0xa*(-parseInt(_0x4e8e76(0x1ba))/0xb);if(_0x53aa5d===_0x55136c)break;else _0x33b08d['push'](_0x33b08d['shift']());}catch(_0x508fa2){_0x33b08d['push'](_0x33b08d['shift']());}}}(a134_0x57ba,0x289a6));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a134_0x5dad1e(0x1bb);function a134_0x57ba(){const _0x4a2250=['741414iuJSjl','361347VOmHUj','24iHQjJS','462ygMwer','10ZTSOWN','1517351aXnYXG','e3423cad71c22edb18a8481be7bdb733ff2d4136c31aa3ae6da56271e32cced7','824988uHbmqn','apiDomain','enterprise','242476UWVChf','skillDomain','196281esoTSh','runtimeDomain','15KfrsMc','userDomain','878jqGKMd'];a134_0x57ba=function(){return _0x4a2250;};return a134_0x57ba();}function a134_0x4914(_0x504daa,_0x4b537b){_0x504daa=_0x504daa-0x1b3;const _0x57ba92=a134_0x57ba();let _0x4914cc=_0x57ba92[_0x504daa];return _0x4914cc;}export const ENTERPRISE_ROUTING_PROTOCOL='lovrabet-routing/v1';export const ENTERPRISE_ROUTING_KIND=a134_0x5dad1e(0x1be);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a134_0x5dad1e(0x1b3),a134_0x5dad1e(0x1bd),'runtimeDomain',a134_0x5dad1e(0x1c0),'kbServiceDomain'];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a134_0x5dad1e(0x1b3),'apiDomain',a134_0x5dad1e(0x1c2),a134_0x5dad1e(0x1c0)];
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x3de560,_0x3bdfbb){const _0x541368=a135_0xead8,_0x3f1328=_0x3de560();while(!![]){try{const _0xd68f9e=-parseInt(_0x541368(0x196))/0x1+parseInt(_0x541368(0x1a4))/0x2*(parseInt(_0x541368(0x1a6))/0x3)+parseInt(_0x541368(0x19b))/0x4*(-parseInt(_0x541368(0x199))/0x5)+parseInt(_0x541368(0x1a1))/0x6*(-parseInt(_0x541368(0x19d))/0x7)+-parseInt(_0x541368(0x19f))/0x8+-parseInt(_0x541368(0x1a3))/0x9*(parseInt(_0x541368(0x19c))/0xa)+-parseInt(_0x541368(0x197))/0xb*(-parseInt(_0x541368(0x19a))/0xc);if(_0xd68f9e===_0x3bdfbb)break;else _0x3f1328['push'](_0x3f1328['shift']());}catch(_0x3d0400){_0x3f1328['push'](_0x3f1328['shift']());}}}(a135_0x1613,0x67f3d));import{jsx as a135_0x30ec0f,jsxs as a135_0x59c5ee}from'react/jsx-runtime';function a135_0xead8(_0x59673e,_0x875b61){_0x59673e=_0x59673e-0x196;const _0x16139b=a135_0x1613();let _0xead8c6=_0x16139b[_0x59673e];return _0xead8c6;}import{useEffect}from'react';function a135_0x1613(){const _0x2c58c0=['14ueFPPm','\x20to\x20view\x20available\x20commands.','6152056jymgxV','green','669132dMfxiu','column','762462yNibgm','63094bgGWEp','\x20\x20Use\x20','6zqlCrh','642152kxhdPs','31979574MiZGvp','\x20--help','3280910bXQPOq','12CaRFEt','4HLNBdq','30VLeKBI'];a135_0x1613=function(){return _0x2c58c0;};return a135_0x1613();}import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x4e2013=a135_0xead8,{exit:_0x4aa6ff}=useApp();return useEffect(()=>{_0x4aa6ff();},[_0x4aa6ff]),a135_0x59c5ee(Box,{'flexDirection':_0x4e2013(0x1a2),'marginTop':0x1,'marginBottom':0x1,'children':[a135_0x30ec0f(Box,{'children':a135_0x30ec0f(Text,{'bold':!![],'color':_0x4e2013(0x1a0),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a135_0x59c5ee(Box,{'marginTop':0x1,'children':[a135_0x30ec0f(Text,{'dimColor':!![],'children':_0x4e2013(0x1a5)}),a135_0x30ec0f(Text,{'bold':!![],'color':_0x4e2013(0x1a0),'children':CLI_BIN_NAME+_0x4e2013(0x198)}),a135_0x30ec0f(Text,{'dimColor':!![],'children':_0x4e2013(0x19e)})]})]});}
1
+ function a135_0x58e2(_0xae7b2d,_0x173ca0){_0xae7b2d=_0xae7b2d-0x122;const _0x29f0ef=a135_0x29f0();let _0x58e267=_0x29f0ef[_0xae7b2d];return _0x58e267;}(function(_0x16207a,_0x55c921){const _0x3e9c9d=a135_0x58e2,_0x4c0e33=_0x16207a();while(!![]){try{const _0x3249a4=parseInt(_0x3e9c9d(0x131))/0x1*(-parseInt(_0x3e9c9d(0x126))/0x2)+parseInt(_0x3e9c9d(0x12a))/0x3*(parseInt(_0x3e9c9d(0x127))/0x4)+parseInt(_0x3e9c9d(0x12e))/0x5+parseInt(_0x3e9c9d(0x12f))/0x6*(-parseInt(_0x3e9c9d(0x122))/0x7)+parseInt(_0x3e9c9d(0x12b))/0x8*(-parseInt(_0x3e9c9d(0x124))/0x9)+-parseInt(_0x3e9c9d(0x129))/0xa*(-parseInt(_0x3e9c9d(0x12d))/0xb)+parseInt(_0x3e9c9d(0x12c))/0xc;if(_0x3249a4===_0x55c921)break;else _0x4c0e33['push'](_0x4c0e33['shift']());}catch(_0x1e6484){_0x4c0e33['push'](_0x4c0e33['shift']());}}}(a135_0x29f0,0xb03b5));import{jsx as a135_0x258f58,jsxs as a135_0xb1fd68}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 _0x174080=a135_0x58e2,{exit:_0x3482e7}=useApp();return useEffect(()=>{_0x3482e7();},[_0x3482e7]),a135_0xb1fd68(Box,{'flexDirection':_0x174080(0x125),'marginTop':0x1,'marginBottom':0x1,'children':[a135_0x258f58(Box,{'children':a135_0x258f58(Text,{'bold':!![],'color':_0x174080(0x123),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a135_0xb1fd68(Box,{'marginTop':0x1,'children':[a135_0x258f58(Text,{'dimColor':!![],'children':_0x174080(0x130)}),a135_0x258f58(Text,{'bold':!![],'color':_0x174080(0x123),'children':CLI_BIN_NAME+_0x174080(0x128)}),a135_0x258f58(Text,{'dimColor':!![],'children':'\x20to\x20view\x20available\x20commands.'})]})]});}function a135_0x29f0(){const _0x203204=['83fbDYjb','259gBcsAG','green','3302766zffWXn','column','13162ybliEb','36fgHZbV','\x20--help','168490amzGiF','83994OJLMBe','16ZeNkMd','10635060INfRKX','176PUjxsN','6139655tZxvMQ','102768WDrlMF','\x20\x20Use\x20'];a135_0x29f0=function(){return _0x203204;};return a135_0x29f0();}
@@ -1 +1 @@
1
- (function(_0x589d95,_0xd3c859){const _0x358cf4=a136_0x12f6,_0x255933=_0x589d95();while(!![]){try{const _0x4cc9ad=-parseInt(_0x358cf4(0x109))/0x1*(-parseInt(_0x358cf4(0x100))/0x2)+-parseInt(_0x358cf4(0x113))/0x3+-parseInt(_0x358cf4(0xff))/0x4*(-parseInt(_0x358cf4(0x104))/0x5)+parseInt(_0x358cf4(0x102))/0x6+-parseInt(_0x358cf4(0x10c))/0x7*(-parseInt(_0x358cf4(0x105))/0x8)+parseInt(_0x358cf4(0x10b))/0x9+-parseInt(_0x358cf4(0x108))/0xa;if(_0x4cc9ad===_0xd3c859)break;else _0x255933['push'](_0x255933['shift']());}catch(_0x32c9a2){_0x255933['push'](_0x255933['shift']());}}}(a136_0x1a1b,0x396d0));function a136_0x12f6(_0x381eb8,_0x429bb2){_0x381eb8=_0x381eb8-0xff;const _0x1a1b45=a136_0x1a1b();let _0x12f607=_0x1a1b45[_0x381eb8];return _0x12f607;}import{installBuiltinSkill}from'./skills/builtin-skill.js';function a136_0x1a1b(){const _0x4d3b23=['error','[BUILTIN_SKILL_INSTALL_','FAILED','\x20via\x20skills@latest','log','skillVersion','538899KHSVld','Lovrabet\x20Built-in\x20Skill\x20','code','4cEZVhl','4RexOMP','installed','917310zIIELP','Installation\x20failed','900390JQqAwG','16uUiTEr','already\x20current','warn','2378670VhRpDv','101231ppZnLc','changed','449973UfJisS','235529EZDInY'];a136_0x1a1b=function(){return _0x4d3b23;};return a136_0x1a1b();}export async function runPostinstall(_0x4302b4={}){const _0x5ad69e=a136_0x12f6,_0xbd3fe3=installBuiltinSkill(_0x4302b4);if(_0xbd3fe3['ok']){const _0x241f0d=_0xbd3fe3[_0x5ad69e(0x10a)]?_0x5ad69e(0x101):_0x5ad69e(0x106),_0xfb728c=_0xbd3fe3['installedPath']?'\x20at\x20'+_0xbd3fe3['installedPath']:_0x5ad69e(0x110);return console[_0x5ad69e(0x111)](_0x5ad69e(0x114)+_0xbd3fe3[_0x5ad69e(0x112)]+'\x20'+_0x241f0d+_0xfb728c),_0xbd3fe3;}const _0x5a9cd0=_0x5ad69e(0x10e)+(_0xbd3fe3['code']??_0x5ad69e(0x10f))+']\x20'+(_0xbd3fe3[_0x5ad69e(0x10d)]??_0x5ad69e(0x103))+'.\x20'+('Repair\x20with:\x20'+_0xbd3fe3['repairCommand']);if(_0xbd3fe3[_0x5ad69e(0x115)]==='SOURCE_INVALID')throw new Error(_0x5a9cd0);return console[_0x5ad69e(0x107)](_0x5a9cd0),_0xbd3fe3;}
1
+ function a136_0x1d7f(_0x2e0b2c,_0x2fcde1){_0x2e0b2c=_0x2e0b2c-0x8c;const _0xd9a60e=a136_0xd9a6();let _0x1d7fee=_0xd9a60e[_0x2e0b2c];return _0x1d7fee;}function a136_0xd9a6(){const _0xf60ead=['installedPath','changed','33GJmcDD','370077sgwsUs','code','log','29742XwKRmD','1977960stdxkz','\x20at\x20','756OHWOfl','skillVersion','FAILED','installed','[BUILTIN_SKILL_INSTALL_','already\x20current','957332YJnTXo','Repair\x20with:\x20','4502625KBygSi','\x20via\x20skills@latest','79848UAUtfY','3qUFOwj','7887140KgtAhk','512bChmAM'];a136_0xd9a6=function(){return _0xf60ead;};return a136_0xd9a6();}(function(_0x295c46,_0x36969f){const _0x40dc35=a136_0x1d7f,_0xc37a1a=_0x295c46();while(!![]){try{const _0x3658bd=-parseInt(_0x40dc35(0x9f))/0x1+-parseInt(_0x40dc35(0x8c))/0x2*(-parseInt(_0x40dc35(0x99))/0x3)+parseInt(_0x40dc35(0x94))/0x4+parseInt(_0x40dc35(0x96))/0x5+parseInt(_0x40dc35(0xa2))/0x6*(parseInt(_0x40dc35(0x8e))/0x7)+-parseInt(_0x40dc35(0x9b))/0x8*(-parseInt(_0x40dc35(0x98))/0x9)+parseInt(_0x40dc35(0x9a))/0xa*(-parseInt(_0x40dc35(0x9e))/0xb);if(_0x3658bd===_0x36969f)break;else _0xc37a1a['push'](_0xc37a1a['shift']());}catch(_0x12dbfc){_0xc37a1a['push'](_0xc37a1a['shift']());}}}(a136_0xd9a6,0x790a7));import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x5ba258={}){const _0x19d5a2=a136_0x1d7f,_0x4267e5=installBuiltinSkill(_0x5ba258);if(_0x4267e5['ok']){const _0x47fa9d=_0x4267e5[_0x19d5a2(0x9d)]?_0x19d5a2(0x91):_0x19d5a2(0x93),_0x5af7d2=_0x4267e5[_0x19d5a2(0x9c)]?_0x19d5a2(0x8d)+_0x4267e5[_0x19d5a2(0x9c)]:_0x19d5a2(0x97);return console[_0x19d5a2(0xa1)]('Lovrabet\x20Built-in\x20Skill\x20'+_0x4267e5[_0x19d5a2(0x8f)]+'\x20'+_0x47fa9d+_0x5af7d2),_0x4267e5;}const _0x38379a=_0x19d5a2(0x92)+(_0x4267e5[_0x19d5a2(0xa0)]??_0x19d5a2(0x90))+']\x20'+(_0x4267e5['error']??'Installation\x20failed')+'.\x20'+(_0x19d5a2(0x95)+_0x4267e5['repairCommand']);if(_0x4267e5[_0x19d5a2(0xa0)]==='SOURCE_INVALID')throw new Error(_0x38379a);return console['warn'](_0x38379a),_0x4267e5;}
@@ -1 +1 @@
1
- (function(_0x4c3c75,_0x6567a7){const _0x32a28a=a137_0x4d25,_0x412e4b=_0x4c3c75();while(!![]){try{const _0x37c6b3=-parseInt(_0x32a28a(0x182))/0x1*(parseInt(_0x32a28a(0x179))/0x2)+-parseInt(_0x32a28a(0x17c))/0x3+-parseInt(_0x32a28a(0x180))/0x4+-parseInt(_0x32a28a(0x184))/0x5+parseInt(_0x32a28a(0x181))/0x6*(-parseInt(_0x32a28a(0x177))/0x7)+parseInt(_0x32a28a(0x174))/0x8+-parseInt(_0x32a28a(0x17d))/0x9*(-parseInt(_0x32a28a(0x17a))/0xa);if(_0x37c6b3===_0x6567a7)break;else _0x412e4b['push'](_0x412e4b['shift']());}catch(_0x464dd3){_0x412e4b['push'](_0x412e4b['shift']());}}}(a137_0xf4af,0xab99e));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildLovrabetConfirmationRequest(_0x47b605,_0x5e00cb,_0x4f8f1e){const _0x5719d2=a137_0x4d25,_0x429131=normalizeText(_0x47b605['confirmationDescription'],DESCRIPTION_MAX_LENGTH),_0x29182d=normalizeText(_0x47b605[_0x5719d2(0x17b)],DESCRIPTION_MAX_LENGTH);return{'operation':_0x5e00cb,'risk':requireWriteRisk(_0x47b605),'description':_0x429131||_0x29182d||_0x5719d2(0x178),..._0x4f8f1e?{'signal':_0x4f8f1e}:{}};}function a137_0xf4af(){const _0x29cb19=['high-risk-write','write','1197GvfvmM','Run\x20this\x20write\x20operation','21148KVlTAh','11111510BrdFqN','description','4176858fpxFSa','45LkRXtY','slice','trim','3533520bmhSpx','24114ICnQKc','79KutgeI','risk','5848015xrKLaz','replace','string','919896tDUdfJ'];a137_0xf4af=function(){return _0x29cb19;};return a137_0xf4af();}function a137_0x4d25(_0x4d0a4e,_0x233483){_0x4d0a4e=_0x4d0a4e-0x174;const _0xf4afd4=a137_0xf4af();let _0x4d2598=_0xf4afd4[_0x4d0a4e];return _0x4d2598;}function requireWriteRisk(_0x22e3c1){const _0x3945bd=a137_0x4d25;if(_0x22e3c1[_0x3945bd(0x183)]===_0x3945bd(0x176)||_0x22e3c1[_0x3945bd(0x183)]===_0x3945bd(0x175))return _0x22e3c1[_0x3945bd(0x183)];throw new Error('Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.');}function normalizeText(_0x391181,_0x36275a){const _0xdfb19e=a137_0x4d25;if(typeof _0x391181!==_0xdfb19e(0x186))return'';return _0x391181[_0xdfb19e(0x185)](/[\u0000-\u001f\u007f]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0xdfb19e(0x17f)]()[_0xdfb19e(0x17e)](0x0,_0x36275a);}
1
+ (function(_0x402245,_0x21c998){const _0x24be35=a137_0x3b19,_0x3e18c8=_0x402245();while(!![]){try{const _0x1d0d58=parseInt(_0x24be35(0x14d))/0x1+parseInt(_0x24be35(0x14e))/0x2*(parseInt(_0x24be35(0x153))/0x3)+parseInt(_0x24be35(0x14f))/0x4+-parseInt(_0x24be35(0x15b))/0x5*(parseInt(_0x24be35(0x158))/0x6)+-parseInt(_0x24be35(0x156))/0x7*(-parseInt(_0x24be35(0x15c))/0x8)+-parseInt(_0x24be35(0x151))/0x9+-parseInt(_0x24be35(0x15e))/0xa*(-parseInt(_0x24be35(0x159))/0xb);if(_0x1d0d58===_0x21c998)break;else _0x3e18c8['push'](_0x3e18c8['shift']());}catch(_0x39fa7e){_0x3e18c8['push'](_0x3e18c8['shift']());}}}(a137_0x2ab4,0xe05dd));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildLovrabetConfirmationRequest(_0x3e43f8,_0x5ad74b,_0x1c3ed7){const _0x194303=a137_0x3b19,_0x4368e6=normalizeText(_0x3e43f8['confirmationDescription'],DESCRIPTION_MAX_LENGTH),_0x425c4c=normalizeText(_0x3e43f8[_0x194303(0x14c)],DESCRIPTION_MAX_LENGTH);return{'operation':_0x5ad74b,'risk':requireWriteRisk(_0x3e43f8),'description':_0x4368e6||_0x425c4c||_0x194303(0x15f),..._0x1c3ed7?{'signal':_0x1c3ed7}:{}};}function requireWriteRisk(_0x544beb){const _0x4a57cd=a137_0x3b19;if(_0x544beb[_0x4a57cd(0x155)]==='write'||_0x544beb['risk']===_0x4a57cd(0x15a))return _0x544beb[_0x4a57cd(0x155)];throw new Error(_0x4a57cd(0x154));}function a137_0x3b19(_0x13e8bf,_0x5226de){_0x13e8bf=_0x13e8bf-0x14c;const _0x2ab4df=a137_0x2ab4();let _0x3b19a7=_0x2ab4df[_0x13e8bf];return _0x3b19a7;}function a137_0x2ab4(){const _0x1c6e9a=['8320194KdpcwD','string','2154EaumMt','Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.','risk','14kvkLkB','replace','2316FQGpAm','7038482gFLgYk','high-risk-write','19495NeNNqP','820056kMEKsa','trim','10XFKEAS','Run\x20this\x20write\x20operation','description','1198195fCZbIY','1438UsuYaM','3156688hXejli','slice'];a137_0x2ab4=function(){return _0x1c6e9a;};return a137_0x2ab4();}function normalizeText(_0x125dfd,_0x2c8ea8){const _0x40e465=a137_0x3b19;if(typeof _0x125dfd!==_0x40e465(0x152))return'';return _0x125dfd[_0x40e465(0x157)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x40e465(0x157)](/\s+/g,'\x20')[_0x40e465(0x15d)]()[_0x40e465(0x150)](0x0,_0x2c8ea8);}
@@ -1 +1 @@
1
- (function(_0x4ca46b,_0x28c2d0){const _0x6ad397=a138_0x2e3a,_0x3cb627=_0x4ca46b();while(!![]){try{const _0x563bb1=-parseInt(_0x6ad397(0xe1))/0x1*(parseInt(_0x6ad397(0xe7))/0x2)+-parseInt(_0x6ad397(0xe8))/0x3*(parseInt(_0x6ad397(0xda))/0x4)+parseInt(_0x6ad397(0xe6))/0x5+-parseInt(_0x6ad397(0xd3))/0x6+-parseInt(_0x6ad397(0xdc))/0x7*(parseInt(_0x6ad397(0xe0))/0x8)+parseInt(_0x6ad397(0xe5))/0x9+-parseInt(_0x6ad397(0xd6))/0xa*(-parseInt(_0x6ad397(0xdd))/0xb);if(_0x563bb1===_0x28c2d0)break;else _0x3cb627['push'](_0x3cb627['shift']());}catch(_0x20386e){_0x3cb627['push'](_0x3cb627['shift']());}}}(a138_0x2165,0x2ff35));function a138_0x2165(){const _0x5cd38e=['2225293gWwXBC','11RBSCMj','service','trim','8pOVPcw','1815mlLoEn','lovrabet.write.completed','join','writeEventSubject','2123640KDjzjO','1300550SYaweZ','118MkQuqo','3NixExE','2004930CazwVD','risk','split','7545850VYDIyw','high-risk-write','filter','command','1180444NYEdPc','write'];a138_0x2165=function(){return _0x5cd38e;};return a138_0x2165();}function a138_0x2e3a(_0x20f14c,_0x394d94){_0x20f14c=_0x20f14c-0xd3;const _0x2165bc=a138_0x2165();let _0x2e3a59=_0x2165bc[_0x20f14c];return _0x2e3a59;}export function canonicalLovrabetOperation(_0x273f0b){const _0xca261f=a138_0x2e3a;return[_0x273f0b[_0xca261f(0xde)],..._0x273f0b[_0xca261f(0xd9)][_0xca261f(0xdf)]()[_0xca261f(0xd5)](/\s+/)][_0xca261f(0xd8)](Boolean)[_0xca261f(0xe3)]('.');}export function createLovrabetWriteMetadata(_0x4a4133,_0x2e36a2,_0x2b01a6,_0x57eae4){const _0x432330=a138_0x2e3a;if(_0x57eae4||_0x2b01a6['ok']!==!![]||_0x4a4133[_0x432330(0xd4)]!==_0x432330(0xdb)&&_0x4a4133[_0x432330(0xd4)]!==_0x432330(0xd7))return undefined;const _0x1db357=_0x4a4133[_0x432330(0xe4)]?.(_0x2b01a6),_0x504708={'type':_0x432330(0xe2),'operation':_0x2e36a2,'risk':_0x4a4133[_0x432330(0xd4)],..._0x1db357?{'subject':_0x1db357}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x504708}};}
1
+ function a138_0x2eec(){const _0x3065c6=['write','filter','1093980kJJHMt','trim','split','high-risk-write','16KTHSKy','4147440LieEwX','1282616ZRfBmh','594090jlzbVD','writeEventSubject','4315qftAcy','526918fszGUj','join','1212GsBzpV','2889369obMgZF','risk','lovrabet.write.completed','command'];a138_0x2eec=function(){return _0x3065c6;};return a138_0x2eec();}function a138_0x319c(_0x5e5a86,_0x39ba67){_0x5e5a86=_0x5e5a86-0x1c1;const _0x2eec8c=a138_0x2eec();let _0x319cf0=_0x2eec8c[_0x5e5a86];return _0x319cf0;}(function(_0x57bd2c,_0x4bd315){const _0xb9d990=a138_0x319c,_0x4735fd=_0x57bd2c();while(!![]){try{const _0x89109f=parseInt(_0xb9d990(0x1d2))/0x1+parseInt(_0xb9d990(0x1ce))/0x2+parseInt(_0xb9d990(0x1c8))/0x3+parseInt(_0xb9d990(0x1c1))/0x4*(parseInt(_0xb9d990(0x1d1))/0x5)+-parseInt(_0xb9d990(0x1cd))/0x6+-parseInt(_0xb9d990(0x1cf))/0x7+-parseInt(_0xb9d990(0x1cc))/0x8*(parseInt(_0xb9d990(0x1c2))/0x9);if(_0x89109f===_0x4bd315)break;else _0x4735fd['push'](_0x4735fd['shift']());}catch(_0x326d90){_0x4735fd['push'](_0x4735fd['shift']());}}}(a138_0x2eec,0x5bd77));export function canonicalLovrabetOperation(_0x2b2c4d){const _0x4fcbe0=a138_0x319c;return[_0x2b2c4d['service'],..._0x2b2c4d[_0x4fcbe0(0x1c5)][_0x4fcbe0(0x1c9)]()[_0x4fcbe0(0x1ca)](/\s+/)][_0x4fcbe0(0x1c7)](Boolean)[_0x4fcbe0(0x1d3)]('.');}export function createLovrabetWriteMetadata(_0x3389b1,_0x3385c1,_0xdbc24b,_0x475aef){const _0x16df2f=a138_0x319c;if(_0x475aef||_0xdbc24b['ok']!==!![]||_0x3389b1['risk']!==_0x16df2f(0x1c6)&&_0x3389b1[_0x16df2f(0x1c3)]!==_0x16df2f(0x1cb))return undefined;const _0x47229e=_0x3389b1[_0x16df2f(0x1d0)]?.(_0xdbc24b),_0x161170={'type':_0x16df2f(0x1c4),'operation':_0x3385c1,'risk':_0x3389b1[_0x16df2f(0x1c3)],..._0x47229e?{'subject':_0x47229e}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x161170}};}
@@ -1 +1 @@
1
- (function(_0x51ec02,_0x6a49db){const _0x897916=a139_0x297f,_0x95549f=_0x51ec02();while(!![]){try{const _0xa55229=-parseInt(_0x897916(0x18f))/0x1*(parseInt(_0x897916(0x18d))/0x2)+parseInt(_0x897916(0x194))/0x3*(-parseInt(_0x897916(0x183))/0x4)+parseInt(_0x897916(0x190))/0x5*(-parseInt(_0x897916(0x18a))/0x6)+parseInt(_0x897916(0x184))/0x7+parseInt(_0x897916(0x192))/0x8*(parseInt(_0x897916(0x198))/0x9)+parseInt(_0x897916(0x182))/0xa*(parseInt(_0x897916(0x188))/0xb)+-parseInt(_0x897916(0x17d))/0xc*(-parseInt(_0x897916(0x197))/0xd);if(_0xa55229===_0x6a49db)break;else _0x95549f['push'](_0x95549f['shift']());}catch(_0x2d8179){_0x95549f['push'](_0x95549f['shift']());}}}(a139_0x14f9,0x5e0bc));function a139_0x297f(_0x2312a5,_0xab0957){_0x2312a5=_0x2312a5-0x17a;const _0x14f94c=a139_0x14f9();let _0x297f6a=_0x14f94c[_0x2312a5];return _0x297f6a;}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_0x14f9(){const _0x53d211=['5rVxMOh','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','1913408LUJcEf','format','258uDlFhg','definition','rawFlags','104qMfrZq','18ptMwOc','riskLevel','result','message','command','high-risk-write','write','104952Rbajzl','AbortError','present','data','presentation','1991570NsNqaM','21832iGtYlM','5238107zrxHHC','signal','dryRun','reason','11JlVUAA','risk','3248298uAMKAu','dry-run','execute','10emsNsR','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','19959tHFNSy'];a139_0x14f9=function(){return _0x53d211;};return a139_0x14f9();}import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0x1b7216,command:_0x451b1c,risk:_0x595509,dryRun:_0x3b9a98}){const _0x1ddcc2=a139_0x297f;return JSON['stringify']({'ok':_0x1b7216['ok'],'command':_0x451b1c,'risk':_0x595509,..._0x3b9a98?{'dryRun':!![]}:{},..._0x1b7216[_0x1ddcc2(0x180)]!==undefined?{'data':_0x1b7216['data']}:{},..._0x1b7216[_0x1ddcc2(0x19b)]?{'message':_0x1b7216['message']}:{}});}};export async function invokeLovrabet(_0x55b083,_0x25d449){const _0x2f7204=a139_0x297f;throwIfAborted(_0x25d449[_0x2f7204(0x185)]);const _0x30f5ad=await resolveLovrabetInvocation(_0x55b083),_0x3f7803=canonicalLovrabetOperation(_0x30f5ad[_0x2f7204(0x195)]);return await confirmWriteBeforeQueue(_0x30f5ad[_0x2f7204(0x195)],_0x30f5ad[_0x2f7204(0x196)],_0x3f7803,_0x25d449),runSerialized(async()=>{const _0x2884c3=_0x2f7204;throwIfAborted(_0x25d449[_0x2884c3(0x185)]);const _0x1bb6c5={},_0x184a35=buildConfigFromFlags(_0x30f5ad['rawFlags']);await initGlobalEnvironment(_0x184a35);const _0x21b0a4=createPipelineEnv(_0x184a35,{..._0x30f5ad[_0x2884c3(0x196)],'yes':_0x30f5ad[_0x2884c3(0x195)][_0x2884c3(0x189)]==='high-risk-write'?!![]:_0x30f5ad[_0x2884c3(0x196)]['yes'],'nonInteractive':!![]});_0x21b0a4['args']=_0x30f5ad['args'],_0x21b0a4['isNonInteractive']=!![],_0x21b0a4[_0x2884c3(0x199)]=_0x2884c3(0x17b);const _0x8284d1=withAbortSignal(_0x30f5ad[_0x2884c3(0x195)],_0x25d449['signal']),_0x11fc4b=createLovrabetRunnerAdapter({'formatOutput'(_0x290975,_0xdf2d8f){const _0xdca4c8=_0x2884c3;_0x1bb6c5[_0xdca4c8(0x19a)]=_0x290975,_0x1bb6c5[_0xdca4c8(0x17a)]=_0xdf2d8f[_0xdca4c8(0x17a)],_0x1bb6c5[_0xdca4c8(0x189)]=_0xdf2d8f[_0xdca4c8(0x189)],_0x1bb6c5[_0xdca4c8(0x193)]=_0xdf2d8f['format'],_0x1bb6c5[_0xdca4c8(0x186)]=_0xdf2d8f[_0xdca4c8(0x186)]===!![];},async 'confirmHighRisk'(){const _0x5404d1=_0x2884c3;throw new Error(_0x5404d1(0x18e));}});try{await runCommand(_0x8284d1,_0x21b0a4,_0x11fc4b);if(!_0x1bb6c5['result']||!_0x1bb6c5[_0x2884c3(0x17a)]||!_0x1bb6c5['risk']||!_0x1bb6c5[_0x2884c3(0x193)])throw new Error(_0x2884c3(0x191));const _0xf3bab5=_0x25d449[_0x2884c3(0x181)]??defaultPresentation,_0xed6211=_0x1bb6c5[_0x2884c3(0x186)]===!![],_0x3a710a={'result':_0x1bb6c5[_0x2884c3(0x19a)],'command':_0x1bb6c5[_0x2884c3(0x17a)],'operation':_0x3f7803,'risk':_0x1bb6c5['risk'],'format':_0x1bb6c5[_0x2884c3(0x193)],'dryRun':_0xed6211},_0x4b0400=createLovrabetWriteMetadata(_0x30f5ad['definition'],_0x3f7803,_0x1bb6c5[_0x2884c3(0x19a)],_0xed6211);let _0x4d9ab3;try{_0x4d9ab3=await _0xf3bab5[_0x2884c3(0x17f)](_0x3a710a);}catch(_0x388263){if(!_0x4b0400||_0xf3bab5===defaultPresentation)throw _0x388263;_0x4d9ab3=await defaultPresentation[_0x2884c3(0x17f)](_0x3a710a);}return{'operation':_0x3f7803,'risk':_0x1bb6c5[_0x2884c3(0x189)],'mode':_0xed6211?_0x2884c3(0x18b):_0x2884c3(0x18c),'result':_0x1bb6c5['result'],'output':_0x4d9ab3,..._0x4b0400?{'metadata':_0x4b0400}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0xd09aba,_0x431967,_0x35d40f,_0x4d7371){const _0x4ad265=a139_0x297f;if(_0x431967[_0x4ad265(0x186)]===!![]||_0xd09aba[_0x4ad265(0x189)]!==_0x4ad265(0x17c)&&_0xd09aba[_0x4ad265(0x189)]!=='high-risk-write')return;await _0x4d7371['confirmation']['confirm'](buildLovrabetConfirmationRequest(_0xd09aba,_0x35d40f,_0x4d7371['signal']));}function withAbortSignal(_0x22b933,_0x25fad3){return{..._0x22b933,async 'execute'(_0x559753){const _0x23fb0b=a139_0x297f;return throwIfAborted(_0x25fad3),_0x22b933[_0x23fb0b(0x18c)]({..._0x559753,'signal':_0x25fad3});}};}function throwIfAborted(_0x4bfce0){const _0x21a73f=a139_0x297f;if(_0x4bfce0?.['aborted'])throw _0x4bfce0['reason']instanceof Error?_0x4bfce0[_0x21a73f(0x187)]:new DOMException('Lovrabet\x20invocation\x20aborted.',_0x21a73f(0x17e));}
1
+ (function(_0x93a28b,_0x12192a){const _0x27a198=a139_0x2fc4,_0x520523=_0x93a28b();while(!![]){try{const _0x1df56a=-parseInt(_0x27a198(0x124))/0x1*(-parseInt(_0x27a198(0x11b))/0x2)+-parseInt(_0x27a198(0x119))/0x3*(parseInt(_0x27a198(0x123))/0x4)+parseInt(_0x27a198(0x114))/0x5*(-parseInt(_0x27a198(0x10f))/0x6)+-parseInt(_0x27a198(0x10d))/0x7*(parseInt(_0x27a198(0x129))/0x8)+parseInt(_0x27a198(0x10c))/0x9+parseInt(_0x27a198(0x120))/0xa+parseInt(_0x27a198(0x111))/0xb*(-parseInt(_0x27a198(0x113))/0xc);if(_0x1df56a===_0x12192a)break;else _0x520523['push'](_0x520523['shift']());}catch(_0x2378bb){_0x520523['push'](_0x520523['shift']());}}}(a139_0x32ec,0x3d168));function a139_0x2fc4(_0x20fff0,_0x135fa2){_0x20fff0=_0x20fff0-0x106;const _0x32ec7a=a139_0x32ec();let _0x2fc415=_0x32ec7a[_0x20fff0];return _0x2fc415;}function a139_0x32ec(){const _0x30d401=['8pbAIgN','write','execute','confirm','Lovrabet\x20invocation\x20aborted.','dryRun','high-risk-write','present','message','1013544fRfTVm','1013194DHqSHt','isNonInteractive','81036UaDten','definition','11sJoOlZ','presentation','2868936FBosiq','55tcxkpT','riskLevel','rawFlags','reason','yes','3201RcGKHn','args','9646lqJywB','data','dry-run','confirmation','risk','2961800sJCcfv','AbortError','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','244JLALBz','91EeuXQo','command','format','result','signal'];a139_0x32ec=function(){return _0x30d401;};return a139_0x32ec();}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:_0x5843fd,command:_0x42fab0,risk:_0x357676,dryRun:_0x45617f}){const _0x46e187=a139_0x2fc4;return JSON['stringify']({'ok':_0x5843fd['ok'],'command':_0x42fab0,'risk':_0x357676,..._0x45617f?{'dryRun':!![]}:{},..._0x5843fd[_0x46e187(0x11c)]!==undefined?{'data':_0x5843fd[_0x46e187(0x11c)]}:{},..._0x5843fd[_0x46e187(0x10b)]?{'message':_0x5843fd['message']}:{}});}};export async function invokeLovrabet(_0x5c9e96,_0x5bb616){const _0x262867=a139_0x2fc4;throwIfAborted(_0x5bb616['signal']);const _0x482873=await resolveLovrabetInvocation(_0x5c9e96),_0x5667f4=canonicalLovrabetOperation(_0x482873[_0x262867(0x110)]);return await confirmWriteBeforeQueue(_0x482873[_0x262867(0x110)],_0x482873[_0x262867(0x116)],_0x5667f4,_0x5bb616),runSerialized(async()=>{const _0x960cfc=_0x262867;throwIfAborted(_0x5bb616[_0x960cfc(0x128)]);const _0x3b0cc2={},_0x55cc3d=buildConfigFromFlags(_0x482873[_0x960cfc(0x116)]);await initGlobalEnvironment(_0x55cc3d);const _0x1bb02b=createPipelineEnv(_0x55cc3d,{..._0x482873[_0x960cfc(0x116)],'yes':_0x482873[_0x960cfc(0x110)][_0x960cfc(0x11f)]===_0x960cfc(0x109)?!![]:_0x482873[_0x960cfc(0x116)][_0x960cfc(0x118)],'nonInteractive':!![]});_0x1bb02b[_0x960cfc(0x11a)]=_0x482873[_0x960cfc(0x11a)],_0x1bb02b[_0x960cfc(0x10e)]=!![],_0x1bb02b[_0x960cfc(0x115)]=_0x960cfc(0x109);const _0x76da1e=withAbortSignal(_0x482873[_0x960cfc(0x110)],_0x5bb616[_0x960cfc(0x128)]),_0x90aad8=createLovrabetRunnerAdapter({'formatOutput'(_0x1f3d8d,_0xcef850){const _0x472eb0=_0x960cfc;_0x3b0cc2[_0x472eb0(0x127)]=_0x1f3d8d,_0x3b0cc2[_0x472eb0(0x125)]=_0xcef850[_0x472eb0(0x125)],_0x3b0cc2['risk']=_0xcef850['risk'],_0x3b0cc2[_0x472eb0(0x126)]=_0xcef850[_0x472eb0(0x126)],_0x3b0cc2[_0x472eb0(0x108)]=_0xcef850[_0x472eb0(0x108)]===!![];},async 'confirmHighRisk'(){const _0xdc89c7=_0x960cfc;throw new Error(_0xdc89c7(0x122));}});try{await runCommand(_0x76da1e,_0x1bb02b,_0x90aad8);if(!_0x3b0cc2[_0x960cfc(0x127)]||!_0x3b0cc2[_0x960cfc(0x125)]||!_0x3b0cc2['risk']||!_0x3b0cc2[_0x960cfc(0x126)])throw new Error('Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.');const _0x1880dc=_0x5bb616[_0x960cfc(0x112)]??defaultPresentation,_0x1c0dbc=_0x3b0cc2[_0x960cfc(0x108)]===!![],_0x3ae5b1={'result':_0x3b0cc2['result'],'command':_0x3b0cc2[_0x960cfc(0x125)],'operation':_0x5667f4,'risk':_0x3b0cc2[_0x960cfc(0x11f)],'format':_0x3b0cc2[_0x960cfc(0x126)],'dryRun':_0x1c0dbc},_0x12a8b9=createLovrabetWriteMetadata(_0x482873[_0x960cfc(0x110)],_0x5667f4,_0x3b0cc2[_0x960cfc(0x127)],_0x1c0dbc);let _0x4c7840;try{_0x4c7840=await _0x1880dc['present'](_0x3ae5b1);}catch(_0x52f993){if(!_0x12a8b9||_0x1880dc===defaultPresentation)throw _0x52f993;_0x4c7840=await defaultPresentation[_0x960cfc(0x10a)](_0x3ae5b1);}return{'operation':_0x5667f4,'risk':_0x3b0cc2[_0x960cfc(0x11f)],'mode':_0x1c0dbc?_0x960cfc(0x11d):_0x960cfc(0x12b),'result':_0x3b0cc2[_0x960cfc(0x127)],'output':_0x4c7840,..._0x12a8b9?{'metadata':_0x12a8b9}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x344e82,_0x296586,_0x393da1,_0x1a4743){const _0x2252d2=a139_0x2fc4;if(_0x296586[_0x2252d2(0x108)]===!![]||_0x344e82[_0x2252d2(0x11f)]!==_0x2252d2(0x12a)&&_0x344e82['risk']!=='high-risk-write')return;await _0x1a4743[_0x2252d2(0x11e)][_0x2252d2(0x106)](buildLovrabetConfirmationRequest(_0x344e82,_0x393da1,_0x1a4743[_0x2252d2(0x128)]));}function withAbortSignal(_0x14846c,_0x3cd03f){return{..._0x14846c,async 'execute'(_0x9e2e7e){return throwIfAborted(_0x3cd03f),_0x14846c['execute']({..._0x9e2e7e,'signal':_0x3cd03f});}};}function throwIfAborted(_0x1dfd05){const _0x41919f=a139_0x2fc4;if(_0x1dfd05?.['aborted'])throw _0x1dfd05[_0x41919f(0x117)]instanceof Error?_0x1dfd05[_0x41919f(0x117)]:new DOMException(_0x41919f(0x107),_0x41919f(0x121));}
@@ -1 +1 @@
1
- function a140_0x51d6(_0x237c5b,_0x5c5373){_0x237c5b=_0x237c5b-0x11c;const _0x3c1efd=a140_0x3c1e();let _0x51d681=_0x3c1efd[_0x237c5b];return _0x51d681;}const a140_0x29549c=a140_0x51d6;(function(_0xb4cb8c,_0x5a509a){const _0x4bfda8=a140_0x51d6,_0x436981=_0xb4cb8c();while(!![]){try{const _0x2a6110=-parseInt(_0x4bfda8(0x11e))/0x1*(-parseInt(_0x4bfda8(0x126))/0x2)+parseInt(_0x4bfda8(0x120))/0x3*(-parseInt(_0x4bfda8(0x129))/0x4)+-parseInt(_0x4bfda8(0x121))/0x5+parseInt(_0x4bfda8(0x128))/0x6*(parseInt(_0x4bfda8(0x122))/0x7)+parseInt(_0x4bfda8(0x124))/0x8*(-parseInt(_0x4bfda8(0x11d))/0x9)+-parseInt(_0x4bfda8(0x11c))/0xa+parseInt(_0x4bfda8(0x11f))/0xb*(parseInt(_0x4bfda8(0x123))/0xc);if(_0x2a6110===_0x5a509a)break;else _0x436981['push'](_0x436981['shift']());}catch(_0x55edb2){_0x436981['push'](_0x436981['shift']());}}}(a140_0x3c1e,0x8e14e));function a140_0x3c1e(){const _0x45315b=['3496145wAvisC','28cfNEhM','48bEoSEo','8Pvcafp','resolve','2tWqgDR','catch','1086150dnBsjO','179092guvHqQ','7357920QUJLoD','3406437fObMix','616003SDdTLP','3271664qlxZWz','9gNGnJX'];a140_0x3c1e=function(){return _0x45315b;};return a140_0x3c1e();}let tail=Promise[a140_0x29549c(0x125)]();export async function runSerialized(_0x455b20){const _0x2a6255=a140_0x29549c,_0x2de0ac=tail;let _0x4f9c7f;tail=new Promise(_0x54e1d9=>{_0x4f9c7f=_0x54e1d9;}),await _0x2de0ac[_0x2a6255(0x127)](()=>undefined);try{return await _0x455b20();}finally{_0x4f9c7f();}}
1
+ const a140_0x7cd888=a140_0x314a;(function(_0x221853,_0x1968a4){const _0xcf134=a140_0x314a,_0x4a5d1d=_0x221853();while(!![]){try{const _0x32bbd0=-parseInt(_0xcf134(0x111))/0x1*(-parseInt(_0xcf134(0x114))/0x2)+-parseInt(_0xcf134(0x109))/0x3*(parseInt(_0xcf134(0x110))/0x4)+parseInt(_0xcf134(0x10a))/0x5*(parseInt(_0xcf134(0x112))/0x6)+parseInt(_0xcf134(0x115))/0x7*(-parseInt(_0xcf134(0x113))/0x8)+-parseInt(_0xcf134(0x10c))/0x9+parseInt(_0xcf134(0x10b))/0xa+parseInt(_0xcf134(0x10e))/0xb;if(_0x32bbd0===_0x1968a4)break;else _0x4a5d1d['push'](_0x4a5d1d['shift']());}catch(_0x1579df){_0x4a5d1d['push'](_0x4a5d1d['shift']());}}}(a140_0x436d,0x59fec));let tail=Promise[a140_0x7cd888(0x10f)]();function a140_0x314a(_0x19b9ca,_0x41b225){_0x19b9ca=_0x19b9ca-0x109;const _0x436d17=a140_0x436d();let _0x314a71=_0x436d17[_0x19b9ca];return _0x314a71;}export async function runSerialized(_0x4c379b){const _0x9aecd=a140_0x7cd888,_0x599e14=tail;let _0xb9c729;tail=new Promise(_0x1bc7bb=>{_0xb9c729=_0x1bc7bb;}),await _0x599e14[_0x9aecd(0x10d)](()=>undefined);try{return await _0x4c379b();}finally{_0xb9c729();}}function a140_0x436d(){const _0x4e8759=['617290cbHneh','1475298TuPEzk','catch','9118846VjnSJJ','resolve','4WyGSDy','3mVISck','5562ntWcgf','173080MRXGbi','297722vrDSGl','196ZOGkWx','1712109OufjBb','2005hnQoMm'];a140_0x436d=function(){return _0x4e8759;};return a140_0x436d();}
@@ -1 +1 @@
1
- function a141_0x1a03(){const _0x1c53db=['8pGeNIq','6IkUtpe','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','validation','855ERmcyy','join','404500EZdKkg','1262680mtIVtt','message','../framework/preparse.js','2404896UfydSs','9266971wxptoc','unknownCommand','assign','53241KAuGYm','1244082KMemxY','flags','../commands/registry.js','definition','5607360MRQcrh','defaultCommand','args','slice'];a141_0x1a03=function(){return _0x1c53db;};return a141_0x1a03();}(function(_0x180f5e,_0x13c707){const _0x547fac=a141_0x7179,_0x1071cb=_0x180f5e();while(!![]){try{const _0x4b4aa1=-parseInt(_0x547fac(0xb1))/0x1*(parseInt(_0x547fac(0xa3))/0x2)+-parseInt(_0x547fac(0x9b))/0x3+-parseInt(_0x547fac(0xaa))/0x4+-parseInt(_0x547fac(0x9f))/0x5+-parseInt(_0x547fac(0xa4))/0x6*(parseInt(_0x547fac(0xae))/0x7)+parseInt(_0x547fac(0xad))/0x8+parseInt(_0x547fac(0xa7))/0x9*(parseInt(_0x547fac(0xa9))/0xa);if(_0x4b4aa1===_0x13c707)break;else _0x1071cb['push'](_0x1071cb['shift']());}catch(_0x2e5055){_0x1071cb['push'](_0x1071cb['shift']());}}}(a141_0x1a03,0xb8415));import a141_0x18e13e from'meow';function a141_0x7179(_0x422e55,_0xab0a03){_0x422e55=_0x422e55-0x9b;const _0x1a0327=a141_0x1a03();let _0x717905=_0x1a0327[_0x422e55];return _0x717905;}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(_0x13adea){const _0x435bea=a141_0x7179,_0x3ee2ce=a141_0x18e13e('',{'importMeta':import.meta,'argv':_0x13adea,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x333871=[..._0x3ee2ce['input']],_0x401cf5=_0x3ee2ce[_0x435bea(0x9c)];await correctFlags(_0x401cf5);const _0x536e7d=_0x333871[0x0];if(!_0x536e7d)throw CliErrors[_0x435bea(0xa6)]('Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.');const _0x566b9c=resolveRemovedCommand(_0x536e7d,_0x333871[0x1]);if(_0x566b9c)throw CliErrors[_0x435bea(0xa6)](_0x566b9c[_0x435bea(0xab)],_0x566b9c['hint']);if(!isKnownService(_0x536e7d)){const _0x4e456d=resolveDynamicServiceCommand(_0x333871,_0x401cf5);if(!_0x4e456d)throw CliErrors[_0x435bea(0xaf)](_0x333871[_0x435bea(0xa8)]('\x20'));return Object[_0x435bea(0xb0)](_0x401cf5,_0x4e456d[_0x435bea(0x9c)]),{'definition':_0x4e456d[_0x435bea(0x9e)],'rawFlags':_0x401cf5,'args':_0x4e456d[_0x435bea(0xa1)]};}const _0x276af5=getServiceEntry(_0x536e7d),_0x211333=_0x333871[0x1]||_0x276af5[_0x435bea(0xa0)];if(!_0x211333)throw CliErrors[_0x435bea(0xa6)](_0x435bea(0xa5)+_0x536e7d+'\x22.');const _0x56320a=findDefinition(_0x536e7d,_0x211333);if(!_0x56320a)throw CliErrors['unknownCommand'](_0x536e7d+'\x20'+_0x211333);return{'definition':_0x56320a,'rawFlags':_0x401cf5,'args':_0x333871[_0x435bea(0xa2)](0x2)};}async function correctFlags(_0x21e38d){const _0x5268e6=a141_0x7179;try{const {correctFlags:_0x12a5e2}=await import(_0x5268e6(0xac)),{getAllDefinitions:_0x4d0d6d}=await import(_0x5268e6(0x9d)),_0x148b43=_0x4d0d6d()['flatMap'](_0xa4d10b=>_0xa4d10b[_0x5268e6(0x9c)]??[]),_0x37431c=_0x12a5e2(_0x21e38d,_0x148b43);Object['assign'](_0x21e38d,_0x37431c[_0x5268e6(0x9c)]);}catch{}}
1
+ (function(_0xc8c8ab,_0x3b63f5){const _0x11b4c9=a141_0x4d7d,_0x2b0edf=_0xc8c8ab();while(!![]){try{const _0x1a422b=-parseInt(_0x11b4c9(0xf1))/0x1*(-parseInt(_0x11b4c9(0xea))/0x2)+parseInt(_0x11b4c9(0xee))/0x3*(-parseInt(_0x11b4c9(0xf8))/0x4)+parseInt(_0x11b4c9(0xf9))/0x5*(parseInt(_0x11b4c9(0xf6))/0x6)+parseInt(_0x11b4c9(0x100))/0x7*(parseInt(_0x11b4c9(0x101))/0x8)+parseInt(_0x11b4c9(0xf5))/0x9+parseInt(_0x11b4c9(0xff))/0xa+-parseInt(_0x11b4c9(0xf2))/0xb;if(_0x1a422b===_0x3b63f5)break;else _0x2b0edf['push'](_0x2b0edf['shift']());}catch(_0x3ad237){_0x2b0edf['push'](_0x2b0edf['shift']());}}}(a141_0x4f8d,0x411a5));function a141_0x4f8d(){const _0x2b926b=['args','../commands/registry.js','3TdfNrB','defaultCommand','validation','60693QyXJeJ','10464751hiTjnw','unknownCommand','join','812646zWiDwH','48VhoRuS','assign','1708156EDyjso','321815PBjZSL','flatMap','flags','hint','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','1662030MdVrTU','77fBbVNz','326392gpEnFA','14BsYErx','input'];a141_0x4f8d=function(){return _0x2b926b;};return a141_0x4f8d();}import a141_0x57f4a5 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';function a141_0x4d7d(_0xb0fb1c,_0x16fe53){_0xb0fb1c=_0xb0fb1c-0xea;const _0x4f8d4c=a141_0x4f8d();let _0x4d7d12=_0x4f8d4c[_0xb0fb1c];return _0x4d7d12;}export async function resolveLovrabetInvocation(_0x35e278){const _0x27bae5=a141_0x4d7d,_0x5363b2=a141_0x57f4a5('',{'importMeta':import.meta,'argv':_0x35e278,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x326750=[..._0x5363b2[_0x27bae5(0xeb)]],_0x32f9d3=_0x5363b2[_0x27bae5(0xfb)];await correctFlags(_0x32f9d3);const _0x3e9649=_0x326750[0x0];if(!_0x3e9649)throw CliErrors['validation'](_0x27bae5(0xfd));const _0x1a6b8c=resolveRemovedCommand(_0x3e9649,_0x326750[0x1]);if(_0x1a6b8c)throw CliErrors[_0x27bae5(0xf0)](_0x1a6b8c['message'],_0x1a6b8c[_0x27bae5(0xfc)]);if(!isKnownService(_0x3e9649)){const _0x20959e=resolveDynamicServiceCommand(_0x326750,_0x32f9d3);if(!_0x20959e)throw CliErrors['unknownCommand'](_0x326750[_0x27bae5(0xf4)]('\x20'));return Object[_0x27bae5(0xf7)](_0x32f9d3,_0x20959e[_0x27bae5(0xfb)]),{'definition':_0x20959e['definition'],'rawFlags':_0x32f9d3,'args':_0x20959e[_0x27bae5(0xec)]};}const _0xcf1313=getServiceEntry(_0x3e9649),_0xc663d7=_0x326750[0x1]||_0xcf1313[_0x27bae5(0xef)];if(!_0xc663d7)throw CliErrors[_0x27bae5(0xf0)](_0x27bae5(0xfe)+_0x3e9649+'\x22.');const _0x2062c2=findDefinition(_0x3e9649,_0xc663d7);if(!_0x2062c2)throw CliErrors[_0x27bae5(0xf3)](_0x3e9649+'\x20'+_0xc663d7);return{'definition':_0x2062c2,'rawFlags':_0x32f9d3,'args':_0x326750['slice'](0x2)};}async function correctFlags(_0x549631){const _0x2eafb6=a141_0x4d7d;try{const {correctFlags:_0x3d11b3}=await import('../framework/preparse.js'),{getAllDefinitions:_0x4a4fbe}=await import(_0x2eafb6(0xed)),_0x546de3=_0x4a4fbe()[_0x2eafb6(0xfa)](_0x285ceb=>_0x285ceb[_0x2eafb6(0xfb)]??[]),_0x1ddfb9=_0x3d11b3(_0x549631,_0x546de3);Object[_0x2eafb6(0xf7)](_0x549631,_0x1ddfb9[_0x2eafb6(0xfb)]);}catch{}}
@@ -1 +1 @@
1
- function a143_0x3c84(){const _0x92d981=['rowNumber','ids','now','status','onCheckpointReady','1579024XJQHHv','count','isArray','Import\x20checkpoint\x20contains\x20duplicate\x20generated\x20IDs.','3409086EFSsgb','keys','conflict','emptyRows','elapsedMs','warnings','push','parse','Cannot\x20read\x20the\x20import\x20checkpoint.','runtimeDomain','108FtbXdM','Previously\x20imported\x20records\x20are\x20no\x20longer\x20visible;\x20recovery\x20conflict.','filter','Excel\x20contains\x20invalid\x20rows;\x20no\x20data\x20was\x20written.','Import\x20checkpoint\x20contains\x20a\x20content\x20conflict.','Import\x20generated\x20ID\x20conflict.','importId','code','Auto-ID\x20import\x20items\x20cannot\x20contain\x20a\x20primary\x20key.','unknown','Invalid\x20import\x20batch\x20size.','errors','appCode','batches','get','has','mappingHash','787973NhAVws','number','schemaVersion','Excel\x20row\x20','rows','pending','succeeded','completed','schemaFingerprint','resume','isSafeInteger','write','maxBatchBytes','56RkASaj','stringify','utf8','checkpoint','Incomplete\x20readback.','strategy','readTask','length','hasOwn','map','3254656zsiTlD','rowIndexes','24503157yiwDEw','5112205deUYIp','actorId','Partial\x20import\x20task\x20readback\x20conflict.','some','imageFields','92042pVjOZn','toString','reduce','unsent','batchSize','flatMap','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','uploadFields','Import\x20checkpoint\x20does\x20not\x20match\x20the\x20input,\x20target\x20or\x20identity.','The\x20auto-ID\x20runner\x20requires\x20the\x20v2\x20task\x20readback\x20contract.','values','reconcileImageConflicts','version','isInteger','incomplete','Import\x20content\x20conflict\x20at\x20Excel\x20row\x20','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','report','add','size','datasetCode','includes','schemaHash','taskId','binding'];a143_0x3c84=function(){return _0x92d981;};return a143_0x3c84();}const a143_0x3b2cce=a143_0x46f0;(function(_0x3e0174,_0x5b3e95){const _0x57aabb=a143_0x46f0,_0x59dad3=_0x3e0174();while(!![]){try{const _0x10dfab=-parseInt(_0x57aabb(0x17b))/0x1+-parseInt(_0x57aabb(0x19a))/0x2*(-parseInt(_0x57aabb(0x16a))/0x3)+parseInt(_0x57aabb(0x192))/0x4+parseInt(_0x57aabb(0x195))/0x5+-parseInt(_0x57aabb(0x1bc))/0x6+parseInt(_0x57aabb(0x188))/0x7*(parseInt(_0x57aabb(0x1b8))/0x8)+-parseInt(_0x57aabb(0x194))/0x9;if(_0x10dfab===_0x5b3e95)break;else _0x59dad3['push'](_0x59dad3['shift']());}catch(_0x158d6a){_0x59dad3['push'](_0x59dad3['shift']());}}}(a143_0x3c84,0xf2786));import{randomBytes,randomUUID}from'node:crypto';import{lstat,readFile}from'node:fs/promises';function a143_0x46f0(_0x1672f8,_0x4f7d63){_0x1672f8=_0x1672f8-0x163;const _0x3c843c=a143_0x3c84();let _0x46f0d4=_0x3c843c[_0x1672f8];return _0x46f0d4;}import{acquireLock,assertImportContract,assertImportPaths,canonical,sameImportValue,resolveImportOutputPath,saveImportJson}from'./runner.js';const validId=_0xe030d1=>typeof _0xe030d1===a143_0x3b2cce(0x17c)&&Number[a143_0x3b2cce(0x185)](_0xe030d1)&&_0xe030d1>0x0;export async function runAutoIdExcelImport(_0x139f3b){const _0x13f355=a143_0x3b2cce,_0x1aad29={..._0x139f3b,'checkpoint':await resolveImportOutputPath(_0x139f3b[_0x13f355(0x18b)]),'report':await resolveImportOutputPath(_0x139f3b[_0x13f355(0x1ab)])},{manifest:_0x5d7824,contract:_0x36da83,api:_0x53b6d7}=_0x1aad29;assertImportContract(_0x36da83,_0x1aad29[_0x13f355(0x176)],_0x1aad29[_0x13f355(0x1ae)]);if(_0x36da83[_0x13f355(0x17d)]!==0x2||!_0x53b6d7[_0x13f355(0x18e)])throw Error(_0x13f355(0x1a3));if(_0x5d7824[_0x13f355(0x175)][_0x13f355(0x18f)])throw Error(_0x13f355(0x16d));if(!_0x5d7824[_0x13f355(0x17f)][_0x13f355(0x18f)])throw Error('Excel\x20contains\x20no\x20valid\x20data\x20rows.');if(!Number[_0x13f355(0x1a7)](_0x1aad29[_0x13f355(0x19e)])||_0x1aad29['batchSize']<0x1||_0x1aad29[_0x13f355(0x19e)]>_0x36da83['maxBatchSize'])throw Error(_0x13f355(0x174));assertImportPaths(_0x1aad29[_0x13f355(0x18b)],_0x1aad29[_0x13f355(0x1ab)]);if(_0x5d7824['rows']['some'](_0x3d1e2d=>Object[_0x13f355(0x190)](_0x3d1e2d[_0x13f355(0x1a4)],'id')))throw Error(_0x13f355(0x172));const _0x56d413=(_0xd3d677,_0x424af7)=>Buffer['byteLength'](JSON[_0x13f355(0x189)]({'schemaFingerprint':_0x36da83[_0x13f355(0x183)],'taskId':_0x424af7,'items':_0xd3d677['map'](_0x4220c5=>_0x5d7824['rows'][_0x4220c5][_0x13f355(0x1a4)])}),_0x13f355(0x18a)),_0x28e726=[];let _0x106000=[];for(let _0x2c8210=0x0;_0x2c8210<_0x5d7824[_0x13f355(0x17f)][_0x13f355(0x18f)];_0x2c8210++){if(_0x56d413([_0x2c8210],0x2**0x34)>_0x36da83[_0x13f355(0x187)])throw Error(_0x13f355(0x17e)+_0x5d7824[_0x13f355(0x17f)][_0x2c8210][_0x13f355(0x1b3)]+_0x13f355(0x1aa));_0x106000[_0x13f355(0x18f)]&&(_0x106000[_0x13f355(0x18f)]===_0x1aad29['batchSize']||_0x56d413([..._0x106000,_0x2c8210],0x2**0x34)>_0x36da83['maxBatchBytes'])&&(_0x28e726[_0x13f355(0x166)](_0x106000),_0x106000=[]),_0x106000[_0x13f355(0x166)](_0x2c8210);}if(_0x106000[_0x13f355(0x18f)])_0x28e726['push'](_0x106000);const _0x438c6f={'appCode':_0x1aad29[_0x13f355(0x176)],'datasetCode':_0x1aad29['datasetCode'],'runtimeDomain':_0x1aad29[_0x13f355(0x169)],'actorId':_0x36da83[_0x13f355(0x196)],'fileHash':_0x5d7824['fileHash'],'mappingHash':_0x5d7824[_0x13f355(0x17a)],'schemaHash':_0x5d7824[_0x13f355(0x1b0)],'remoteSchemaHash':_0x36da83[_0x13f355(0x183)],'batchSize':_0x1aad29[_0x13f355(0x19e)],'maxBatchBytes':_0x36da83[_0x13f355(0x187)],'sheet':_0x5d7824['sheet'],'strategy':_0x36da83[_0x13f355(0x18d)]},_0x3efcf6=await acquireLock(_0x1aad29['checkpoint']);let _0x1f151b;const _0x186dff=Date[_0x13f355(0x1b5)]();let _0x5c5335=0x0;const _0x4a4ca1=[],_0xf982ca=_0x3aa9bd=>_0x1f151b?.[_0x13f355(0x177)][_0x13f355(0x16c)](_0x73796a=>_0x73796a['status']===_0x3aa9bd)[_0x13f355(0x19c)]((_0x5403b5,_0x47dc5f)=>_0x5403b5+_0x47dc5f[_0x13f355(0x193)][_0x13f355(0x18f)],0x0)??0x0,_0x293265=()=>({'importId':_0x1f151b?.[_0x13f355(0x170)],'sourceRows':_0x5d7824[_0x13f355(0x17f)][_0x13f355(0x18f)],'emptyRows':_0x5d7824[_0x13f355(0x163)][_0x13f355(0x18f)],'succeeded':_0xf982ca('succeeded'),'unknown':_0xf982ca(_0x13f355(0x180)),'conflicts':_0xf982ca(_0x13f355(0x1be)),'notAttempted':_0xf982ca(_0x13f355(0x19d)),'batches':_0x5c5335,'batchResults':_0x4a4ca1,'elapsedMs':Date[_0x13f355(0x1b5)]()-_0x186dff,'checkpoint':_0x1aad29[_0x13f355(0x18b)],'report':_0x1aad29['report'],'warnings':_0x5d7824[_0x13f355(0x165)]});try{if(_0x1aad29[_0x13f355(0x184)]){try{_0x1f151b=JSON[_0x13f355(0x167)](await readFile(_0x1aad29['checkpoint'],_0x13f355(0x18a)));}catch{throw Error(_0x13f355(0x168));}if(!_0x1f151b||_0x1f151b[_0x13f355(0x1a6)]!==0x2||typeof _0x1f151b[_0x13f355(0x170)]!=='string'||!_0x1f151b[_0x13f355(0x170)]||canonical(_0x1f151b[_0x13f355(0x1b2)])!==canonical(_0x438c6f)||!Array[_0x13f355(0x1ba)](_0x1f151b[_0x13f355(0x177)])||_0x1f151b[_0x13f355(0x177)][_0x13f355(0x18f)]!==_0x28e726[_0x13f355(0x18f)]||new Set(_0x1f151b['batches'][_0x13f355(0x191)](_0x2bcaf7=>_0x2bcaf7[_0x13f355(0x1b1)]))[_0x13f355(0x1ad)]!==_0x28e726[_0x13f355(0x18f)]||_0x1f151b[_0x13f355(0x177)][_0x13f355(0x198)]((_0x531876,_0x46a177)=>!validId(_0x531876[_0x13f355(0x1b1)])||_0x531876[_0x13f355(0x1b1)]>0x2**0x34||canonical(_0x531876[_0x13f355(0x193)])!==canonical(_0x28e726[_0x46a177])||!['unsent',_0x13f355(0x180),_0x13f355(0x181),_0x13f355(0x1be)][_0x13f355(0x1af)](_0x531876['status'])||!Array['isArray'](_0x531876[_0x13f355(0x1b4)])||_0x531876[_0x13f355(0x1b4)][_0x13f355(0x198)](_0x201bcb=>!validId(_0x201bcb))||new Set(_0x531876['ids'])[_0x13f355(0x1ad)]!==_0x531876['ids']['length']||_0x531876[_0x13f355(0x1b4)][_0x13f355(0x18f)]!==0x0&&_0x531876[_0x13f355(0x1b4)][_0x13f355(0x18f)]!==_0x531876[_0x13f355(0x193)]['length']||_0x531876[_0x13f355(0x1b6)]===_0x13f355(0x181)&&_0x531876[_0x13f355(0x1b4)][_0x13f355(0x18f)]!==_0x531876[_0x13f355(0x193)]['length']||_0x531876[_0x13f355(0x1b6)]===_0x13f355(0x19d)&&_0x531876[_0x13f355(0x1b4)][_0x13f355(0x18f)]!==0x0))throw Error(_0x13f355(0x1a2));const _0x593ecf=_0x1f151b[_0x13f355(0x177)][_0x13f355(0x19f)](_0x2dbb74=>_0x2dbb74[_0x13f355(0x1b4)]);if(new Set(_0x593ecf)['size']!==_0x593ecf[_0x13f355(0x18f)])throw Error(_0x13f355(0x1bb));}else{try{await lstat(_0x1aad29['checkpoint']);throw Error(_0x13f355(0x1a0));}catch(_0x51039a){if(_0x51039a[_0x13f355(0x171)]!=='ENOENT')throw _0x51039a;}const _0xda43e4=new Set();_0x1f151b={'version':0x2,'importId':randomUUID(),'binding':_0x438c6f,'batches':_0x28e726[_0x13f355(0x191)](_0x3ee83d=>{const _0x1b2fc8=_0x13f355;let _0x14d414;do{_0x14d414=Number(BigInt('0x'+randomBytes(0x7)[_0x1b2fc8(0x19b)]('hex'))&(0x1n<<0x34n)-0x1n)+0x1;}while(_0xda43e4[_0x1b2fc8(0x179)](_0x14d414));return _0xda43e4[_0x1b2fc8(0x1ac)](_0x14d414),{'taskId':_0x14d414,'rowIndexes':_0x3ee83d,'ids':[],'status':_0x1b2fc8(0x19d)};})},await saveImportJson(_0x1aad29[_0x13f355(0x18b)],_0x1f151b);}await _0x1aad29[_0x13f355(0x1b7)]?.();const _0x57736a=_0x1f151b,_0x1e181f=async(_0x279d9d,_0x1cb9de)=>{const _0x193bd9=_0x13f355;_0x279d9d[_0x193bd9(0x1b6)]='conflict',await saveImportJson(_0x1aad29['checkpoint'],_0x57736a);throw Error(_0x1cb9de);},_0x44dda6=async _0x30fc4b=>{const _0x208346=_0x13f355;let _0x4fe0ed=await _0x53b6d7[_0x208346(0x18e)](_0x30fc4b[_0x208346(0x1b1)]);if(!Array['isArray'](_0x4fe0ed))throw Error('Invalid\x20import\x20task\x20readback\x20response.');if(_0x30fc4b['status']===_0x208346(0x19d)&&_0x4fe0ed[_0x208346(0x18f)])return _0x1e181f(_0x30fc4b,'Import\x20task\x20marker\x20collision;\x20stop\x20without\x20replacing\x20the\x20marker.');if(!_0x4fe0ed[_0x208346(0x18f)]){if(_0x30fc4b[_0x208346(0x1b6)]==='succeeded'||_0x30fc4b[_0x208346(0x1b4)]['length'])return _0x1e181f(_0x30fc4b,_0x208346(0x16b));return![];}if(_0x4fe0ed['length']!==_0x30fc4b[_0x208346(0x193)][_0x208346(0x18f)])return _0x1e181f(_0x30fc4b,_0x208346(0x197));const _0x1ed6d6=_0x4fe0ed[_0x208346(0x191)](_0x26dcf8=>_0x26dcf8?.['id']);if(_0x1ed6d6[_0x208346(0x198)](_0x3c0860=>!validId(_0x3c0860)))return _0x1e181f(_0x30fc4b,_0x208346(0x16f));if(new Set(_0x1ed6d6)['size']!==_0x1ed6d6['length'])return _0x1e181f(_0x30fc4b,'Import\x20generated\x20ID\x20conflict.');const _0x25aaf3=new Map(_0x4fe0ed[_0x208346(0x191)](_0x2561cb=>[_0x2561cb['id'],_0x2561cb])),_0x36bae0=_0x30fc4b[_0x208346(0x1b4)][_0x208346(0x18f)]?[..._0x30fc4b[_0x208346(0x1b4)]]:[..._0x1ed6d6]['sort']((_0x35dff3,_0x536cde)=>_0x35dff3-_0x536cde);if(_0x36bae0[_0x208346(0x198)](_0x576823=>!validId(_0x576823))||_0x36bae0['some']((_0x3122c9,_0x648e)=>_0x648e>0x0&&_0x3122c9<=_0x36bae0[_0x648e-0x1])||_0x36bae0['some'](_0x1f0368=>!_0x25aaf3[_0x208346(0x179)](_0x1f0368)))return _0x1e181f(_0x30fc4b,_0x208346(0x16f));_0x4fe0ed=_0x36bae0['map'](_0x527475=>_0x25aaf3[_0x208346(0x178)](_0x527475));const _0x23becb=new Set(_0x57736a[_0x208346(0x177)][_0x208346(0x16c)](_0x3288c9=>_0x3288c9!==_0x30fc4b)['flatMap'](_0x533315=>_0x533315[_0x208346(0x1b4)]));if(_0x36bae0[_0x208346(0x198)](_0x82e05e=>_0x23becb[_0x208346(0x179)](_0x82e05e)))return _0x1e181f(_0x30fc4b,'Import\x20generated\x20ID\x20collision.');for(let _0x32a5e1=0x0;_0x32a5e1<_0x4fe0ed['length'];_0x32a5e1++){const _0xa26fa1=_0x5d7824['rows'][_0x30fc4b['rowIndexes'][_0x32a5e1]][_0x208346(0x1a4)];if(Object[_0x208346(0x1bd)](_0xa26fa1)[_0x208346(0x198)](_0x2d94f1=>!sameImportValue(_0xa26fa1[_0x2d94f1],_0x4fe0ed[_0x32a5e1][_0x2d94f1],_0x5d7824[_0x208346(0x199)]?.[_0x208346(0x1af)](_0x2d94f1)&&!_0x5d7824[_0x208346(0x1a1)]?.[_0x208346(0x1af)](_0x2d94f1))))return _0x1e181f(_0x30fc4b,_0x208346(0x1a9)+_0x5d7824[_0x208346(0x17f)][_0x30fc4b[_0x208346(0x193)][_0x32a5e1]][_0x208346(0x1b3)]+'.');}return _0x30fc4b[_0x208346(0x1b4)]=_0x36bae0,_0x30fc4b[_0x208346(0x1b6)]=_0x208346(0x181),await saveImportJson(_0x1aad29[_0x208346(0x18b)],_0x57736a),!![];};if(_0x57736a['batches']['some'](_0x309635=>_0x309635[_0x13f355(0x1b6)]===_0x13f355(0x1be)&&!(_0x1aad29['resume']&&_0x1aad29[_0x13f355(0x1a5)]&&_0x5d7824['imageFields']?.[_0x13f355(0x18f)]&&_0x309635[_0x13f355(0x1b4)][_0x13f355(0x18f)]===_0x309635[_0x13f355(0x193)][_0x13f355(0x18f)])))throw Error(_0x13f355(0x16e));if(_0x1aad29['resume']){for(const _0x3153d3 of _0x57736a[_0x13f355(0x177)])await _0x44dda6(_0x3153d3);}for(const _0x597bb3 of _0x57736a[_0x13f355(0x177)]){if(_0x597bb3[_0x13f355(0x1b6)]==='succeeded')continue;if(!_0x1aad29['resume'])await _0x44dda6(_0x597bb3);_0x597bb3[_0x13f355(0x1b6)]=_0x13f355(0x180),await saveImportJson(_0x1aad29[_0x13f355(0x18b)],_0x57736a),_0x5c5335++;const _0x1f604f=_0x597bb3[_0x13f355(0x193)][_0x13f355(0x191)](_0x2820ef=>_0x5d7824[_0x13f355(0x17f)][_0x2820ef][_0x13f355(0x1a4)]),_0x4b67a3=Date[_0x13f355(0x1b5)](),_0x1d2271={'batch':_0x5c5335,'rowStart':_0x5d7824[_0x13f355(0x17f)][_0x597bb3[_0x13f355(0x193)][0x0]][_0x13f355(0x1b3)],'rowEnd':_0x5d7824[_0x13f355(0x17f)][_0x597bb3[_0x13f355(0x193)]['at'](-0x1)]['rowNumber'],'count':_0x1f604f[_0x13f355(0x18f)],'bytes':_0x56d413(_0x597bb3[_0x13f355(0x193)],_0x597bb3['taskId']),'elapsedMs':0x0,'status':_0x13f355(0x173)};_0x4a4ca1['push'](_0x1d2271);try{const _0x50e2e2=await _0x53b6d7[_0x13f355(0x186)](_0x1f604f,_0x597bb3[_0x13f355(0x1b1)]);if(!_0x50e2e2||_0x50e2e2[_0x13f355(0x1b9)]!==_0x1f604f[_0x13f355(0x18f)]||!Array[_0x13f355(0x1ba)](_0x50e2e2[_0x13f355(0x1b4)])||_0x50e2e2[_0x13f355(0x1b4)][_0x13f355(0x18f)]!==_0x1f604f[_0x13f355(0x18f)]||_0x50e2e2[_0x13f355(0x1b4)][_0x13f355(0x198)](_0x51f325=>!validId(_0x51f325))||new Set(_0x50e2e2['ids'])[_0x13f355(0x1ad)]!==_0x50e2e2[_0x13f355(0x1b4)]['length'])throw Error('Invalid\x20write\x20result.');_0x597bb3['ids']=_0x50e2e2[_0x13f355(0x1b4)],await saveImportJson(_0x1aad29[_0x13f355(0x18b)],_0x57736a);if(!await _0x44dda6(_0x597bb3))throw Error(_0x13f355(0x18c));}catch(_0x40af40){if(_0x597bb3[_0x13f355(0x1b6)]===_0x13f355(0x1be))throw _0x40af40;try{await _0x44dda6(_0x597bb3);}catch(_0x1b9727){if(_0x597bb3[_0x13f355(0x1b6)]===_0x13f355(0x1be))throw _0x1b9727;}if(_0x597bb3[_0x13f355(0x1b6)]!==_0x13f355(0x181))throw Error('The\x20import\x20write\x20outcome\x20is\x20unknown.\x20Resume\x20to\x20reconcile\x20the\x20original\x20task\x20marker\x20before\x20continuing.');}finally{_0x1d2271[_0x13f355(0x164)]=Date[_0x13f355(0x1b5)]()-_0x4b67a3,_0x1d2271[_0x13f355(0x1b6)]=_0x597bb3[_0x13f355(0x1b6)]===_0x13f355(0x181)?_0x13f355(0x181):_0x597bb3[_0x13f355(0x1b6)]===_0x13f355(0x1be)?_0x13f355(0x1be):'unknown';}}const _0x13bd12={'status':_0x13f355(0x182),..._0x293265()};return await saveImportJson(_0x1aad29[_0x13f355(0x1ab)],_0x13bd12),_0x13bd12;}catch(_0x277a5e){if(_0x1f151b)await saveImportJson(_0x1aad29['report'],{'status':_0x13f355(0x1a8),..._0x293265(),'message':_0x277a5e['message']});throw _0x277a5e;}finally{await _0x3efcf6();}}
1
+ const a143_0x1edcab=a143_0x28d2;function a143_0x31c8(){const _0x438fb4=['hex','length','5033568DurBRW','get','Invalid\x20import\x20batch\x20size.','887012OpSFvO','Import\x20task\x20marker\x20collision;\x20stop\x20without\x20replacing\x20the\x20marker.','includes','rowNumber','rowIndexes','values','maxBatchSize','code','pending','number','some','readTask','batches','parse','schemaHash','isInteger','ids','fileHash','status','datasetCode','now','runtimeDomain','Import\x20generated\x20ID\x20conflict.','keys','flatMap','1210332pmgbQQ','size','checkpoint','has','Cannot\x20read\x20the\x20import\x20checkpoint.','2661764uXyIgX','The\x20auto-ID\x20runner\x20requires\x20the\x20v2\x20task\x20readback\x20contract.','onCheckpointReady','string','imageFields','incomplete','message','Auto-ID\x20import\x20items\x20cannot\x20contain\x20a\x20primary\x20key.','taskId','utf8','15904600PeYjZE','actorId','reduce','Import\x20generated\x20ID\x20collision.','add','Import\x20checkpoint\x20contains\x20duplicate\x20generated\x20IDs.','elapsedMs','isArray','6425680GusLAQ','byteLength','batchSize','schemaFingerprint','ENOENT','map','version','count','warnings','maxBatchBytes','unsent','Import\x20checkpoint\x20contains\x20a\x20content\x20conflict.','uploadFields','9918629WhddLs','filter','write','Partial\x20import\x20task\x20readback\x20conflict.','rows','Previously\x20imported\x20records\x20are\x20no\x20longer\x20visible;\x20recovery\x20conflict.','reconcileImageConflicts','hasOwn','push','conflict','6VwPbrd','appCode','Incomplete\x20readback.','Import\x20checkpoint\x20does\x20not\x20match\x20the\x20input,\x20target\x20or\x20identity.','importId','resume','binding','report','succeeded'];a143_0x31c8=function(){return _0x438fb4;};return a143_0x31c8();}(function(_0x1e51a8,_0xccda8){const _0x4fa113=a143_0x28d2,_0x4cd7ea=_0x1e51a8();while(!![]){try{const _0x4bb1c2=parseInt(_0x4fa113(0x150))/0x1+-parseInt(_0x4fa113(0x137))/0x2+parseInt(_0x4fa113(0x134))/0x3+parseInt(_0x4fa113(0x155))/0x4+parseInt(_0x4fa113(0x167))/0x5+-parseInt(_0x4fa113(0x17e))/0x6*(parseInt(_0x4fa113(0x174))/0x7)+-parseInt(_0x4fa113(0x15f))/0x8;if(_0x4bb1c2===_0xccda8)break;else _0x4cd7ea['push'](_0x4cd7ea['shift']());}catch(_0xa77f0){_0x4cd7ea['push'](_0x4cd7ea['shift']());}}}(a143_0x31c8,0xf1c1d));import{randomBytes,randomUUID}from'node:crypto';function a143_0x28d2(_0x1d58ba,_0x2f552f){_0x1d58ba=_0x1d58ba-0x133;const _0x31c8b7=a143_0x31c8();let _0x28d209=_0x31c8b7[_0x1d58ba];return _0x28d209;}import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,sameImportValue,resolveImportOutputPath,saveImportJson}from'./runner.js';const validId=_0x2afa47=>typeof _0x2afa47===a143_0x1edcab(0x140)&&Number['isSafeInteger'](_0x2afa47)&&_0x2afa47>0x0;export async function runAutoIdExcelImport(_0x1ca829){const _0x4ae577=a143_0x1edcab,_0x61109d={..._0x1ca829,'checkpoint':await resolveImportOutputPath(_0x1ca829[_0x4ae577(0x152)]),'report':await resolveImportOutputPath(_0x1ca829['report'])},{manifest:_0x24d64c,contract:_0x4ae28c,api:_0x187aa4}=_0x61109d;assertImportContract(_0x4ae28c,_0x61109d[_0x4ae577(0x17f)],_0x61109d['datasetCode']);if(_0x4ae28c['schemaVersion']!==0x2||!_0x187aa4[_0x4ae577(0x142)])throw Error(_0x4ae577(0x156));if(_0x24d64c['errors'][_0x4ae577(0x133)])throw Error('Excel\x20contains\x20invalid\x20rows;\x20no\x20data\x20was\x20written.');if(!_0x24d64c[_0x4ae577(0x178)][_0x4ae577(0x133)])throw Error('Excel\x20contains\x20no\x20valid\x20data\x20rows.');if(!Number[_0x4ae577(0x146)](_0x61109d[_0x4ae577(0x169)])||_0x61109d[_0x4ae577(0x169)]<0x1||_0x61109d[_0x4ae577(0x169)]>_0x4ae28c[_0x4ae577(0x13d)])throw Error(_0x4ae577(0x136));assertImportPaths(_0x61109d[_0x4ae577(0x152)],_0x61109d[_0x4ae577(0x185)]);if(_0x24d64c[_0x4ae577(0x178)]['some'](_0x260dac=>Object[_0x4ae577(0x17b)](_0x260dac[_0x4ae577(0x13c)],'id')))throw Error(_0x4ae577(0x15c));const _0xc72524=(_0x1896d8,_0x4cb8c8)=>Buffer[_0x4ae577(0x168)](JSON['stringify']({'schemaFingerprint':_0x4ae28c[_0x4ae577(0x16a)],'taskId':_0x4cb8c8,'items':_0x1896d8[_0x4ae577(0x16c)](_0x3203dd=>_0x24d64c[_0x4ae577(0x178)][_0x3203dd]['values'])}),_0x4ae577(0x15e)),_0x438da4=[];let _0x3b133d=[];for(let _0x419fe9=0x0;_0x419fe9<_0x24d64c[_0x4ae577(0x178)]['length'];_0x419fe9++){if(_0xc72524([_0x419fe9],0x2**0x34)>_0x4ae28c[_0x4ae577(0x170)])throw Error('Excel\x20row\x20'+_0x24d64c[_0x4ae577(0x178)][_0x419fe9]['rowNumber']+'\x20exceeds\x20the\x20import\x20request\x20size\x20limit.');_0x3b133d[_0x4ae577(0x133)]&&(_0x3b133d[_0x4ae577(0x133)]===_0x61109d[_0x4ae577(0x169)]||_0xc72524([..._0x3b133d,_0x419fe9],0x2**0x34)>_0x4ae28c[_0x4ae577(0x170)])&&(_0x438da4[_0x4ae577(0x17c)](_0x3b133d),_0x3b133d=[]),_0x3b133d[_0x4ae577(0x17c)](_0x419fe9);}if(_0x3b133d[_0x4ae577(0x133)])_0x438da4['push'](_0x3b133d);const _0x1285a7={'appCode':_0x61109d[_0x4ae577(0x17f)],'datasetCode':_0x61109d[_0x4ae577(0x14a)],'runtimeDomain':_0x61109d[_0x4ae577(0x14c)],'actorId':_0x4ae28c[_0x4ae577(0x160)],'fileHash':_0x24d64c[_0x4ae577(0x148)],'mappingHash':_0x24d64c['mappingHash'],'schemaHash':_0x24d64c[_0x4ae577(0x145)],'remoteSchemaHash':_0x4ae28c[_0x4ae577(0x16a)],'batchSize':_0x61109d[_0x4ae577(0x169)],'maxBatchBytes':_0x4ae28c[_0x4ae577(0x170)],'sheet':_0x24d64c['sheet'],'strategy':_0x4ae28c['strategy']},_0x3c42ee=await acquireLock(_0x61109d[_0x4ae577(0x152)]);let _0x545572;const _0x565857=Date[_0x4ae577(0x14b)]();let _0x7ff474=0x0;const _0x20ceae=[],_0x20fd1b=_0x912c8b=>_0x545572?.[_0x4ae577(0x143)][_0x4ae577(0x175)](_0x4e03f1=>_0x4e03f1['status']===_0x912c8b)[_0x4ae577(0x161)]((_0x347552,_0x2a64ea)=>_0x347552+_0x2a64ea['rowIndexes'][_0x4ae577(0x133)],0x0)??0x0,_0x1f64e1=()=>({'importId':_0x545572?.[_0x4ae577(0x182)],'sourceRows':_0x24d64c['rows'][_0x4ae577(0x133)],'emptyRows':_0x24d64c['emptyRows']['length'],'succeeded':_0x20fd1b(_0x4ae577(0x186)),'unknown':_0x20fd1b(_0x4ae577(0x13f)),'conflicts':_0x20fd1b(_0x4ae577(0x17d)),'notAttempted':_0x20fd1b('unsent'),'batches':_0x7ff474,'batchResults':_0x20ceae,'elapsedMs':Date['now']()-_0x565857,'checkpoint':_0x61109d[_0x4ae577(0x152)],'report':_0x61109d[_0x4ae577(0x185)],'warnings':_0x24d64c[_0x4ae577(0x16f)]});try{if(_0x61109d[_0x4ae577(0x183)]){try{_0x545572=JSON[_0x4ae577(0x144)](await readFile(_0x61109d[_0x4ae577(0x152)],_0x4ae577(0x15e)));}catch{throw Error(_0x4ae577(0x154));}if(!_0x545572||_0x545572[_0x4ae577(0x16d)]!==0x2||typeof _0x545572[_0x4ae577(0x182)]!==_0x4ae577(0x158)||!_0x545572['importId']||canonical(_0x545572[_0x4ae577(0x184)])!==canonical(_0x1285a7)||!Array[_0x4ae577(0x166)](_0x545572[_0x4ae577(0x143)])||_0x545572[_0x4ae577(0x143)]['length']!==_0x438da4[_0x4ae577(0x133)]||new Set(_0x545572[_0x4ae577(0x143)][_0x4ae577(0x16c)](_0x893be8=>_0x893be8['taskId']))[_0x4ae577(0x151)]!==_0x438da4['length']||_0x545572[_0x4ae577(0x143)][_0x4ae577(0x141)]((_0x11d79f,_0x488cd6)=>!validId(_0x11d79f['taskId'])||_0x11d79f[_0x4ae577(0x15d)]>0x2**0x34||canonical(_0x11d79f['rowIndexes'])!==canonical(_0x438da4[_0x488cd6])||![_0x4ae577(0x171),'pending',_0x4ae577(0x186),'conflict']['includes'](_0x11d79f[_0x4ae577(0x149)])||!Array[_0x4ae577(0x166)](_0x11d79f[_0x4ae577(0x147)])||_0x11d79f[_0x4ae577(0x147)][_0x4ae577(0x141)](_0x49a9c3=>!validId(_0x49a9c3))||new Set(_0x11d79f[_0x4ae577(0x147)])['size']!==_0x11d79f[_0x4ae577(0x147)][_0x4ae577(0x133)]||_0x11d79f[_0x4ae577(0x147)]['length']!==0x0&&_0x11d79f[_0x4ae577(0x147)]['length']!==_0x11d79f['rowIndexes'][_0x4ae577(0x133)]||_0x11d79f['status']===_0x4ae577(0x186)&&_0x11d79f[_0x4ae577(0x147)]['length']!==_0x11d79f[_0x4ae577(0x13b)][_0x4ae577(0x133)]||_0x11d79f[_0x4ae577(0x149)]===_0x4ae577(0x171)&&_0x11d79f['ids'][_0x4ae577(0x133)]!==0x0))throw Error(_0x4ae577(0x181));const _0xc1a7d5=_0x545572[_0x4ae577(0x143)][_0x4ae577(0x14f)](_0x1b8e4c=>_0x1b8e4c[_0x4ae577(0x147)]);if(new Set(_0xc1a7d5)[_0x4ae577(0x151)]!==_0xc1a7d5[_0x4ae577(0x133)])throw Error(_0x4ae577(0x164));}else{try{await lstat(_0x61109d[_0x4ae577(0x152)]);throw Error('Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.');}catch(_0x5bc9d4){if(_0x5bc9d4[_0x4ae577(0x13e)]!==_0x4ae577(0x16b))throw _0x5bc9d4;}const _0x3de994=new Set();_0x545572={'version':0x2,'importId':randomUUID(),'binding':_0x1285a7,'batches':_0x438da4[_0x4ae577(0x16c)](_0xd41431=>{const _0x423dce=_0x4ae577;let _0xe24549;do{_0xe24549=Number(BigInt('0x'+randomBytes(0x7)['toString'](_0x423dce(0x187)))&(0x1n<<0x34n)-0x1n)+0x1;}while(_0x3de994['has'](_0xe24549));return _0x3de994[_0x423dce(0x163)](_0xe24549),{'taskId':_0xe24549,'rowIndexes':_0xd41431,'ids':[],'status':_0x423dce(0x171)};})},await saveImportJson(_0x61109d[_0x4ae577(0x152)],_0x545572);}await _0x61109d[_0x4ae577(0x157)]?.();const _0x6e1963=_0x545572,_0x2e23f7=async(_0xe88e58,_0x660b98)=>{const _0x482058=_0x4ae577;_0xe88e58[_0x482058(0x149)]=_0x482058(0x17d),await saveImportJson(_0x61109d[_0x482058(0x152)],_0x6e1963);throw Error(_0x660b98);},_0x74fa3f=async _0x2cb600=>{const _0x15a179=_0x4ae577;let _0x1abef3=await _0x187aa4[_0x15a179(0x142)](_0x2cb600['taskId']);if(!Array['isArray'](_0x1abef3))throw Error('Invalid\x20import\x20task\x20readback\x20response.');if(_0x2cb600['status']==='unsent'&&_0x1abef3[_0x15a179(0x133)])return _0x2e23f7(_0x2cb600,_0x15a179(0x138));if(!_0x1abef3[_0x15a179(0x133)]){if(_0x2cb600[_0x15a179(0x149)]==='succeeded'||_0x2cb600[_0x15a179(0x147)][_0x15a179(0x133)])return _0x2e23f7(_0x2cb600,_0x15a179(0x179));return![];}if(_0x1abef3[_0x15a179(0x133)]!==_0x2cb600[_0x15a179(0x13b)][_0x15a179(0x133)])return _0x2e23f7(_0x2cb600,_0x15a179(0x177));const _0x29fd9c=_0x1abef3[_0x15a179(0x16c)](_0x43a5f1=>_0x43a5f1?.['id']);if(_0x29fd9c[_0x15a179(0x141)](_0x252187=>!validId(_0x252187)))return _0x2e23f7(_0x2cb600,'Import\x20generated\x20ID\x20conflict.');if(new Set(_0x29fd9c)[_0x15a179(0x151)]!==_0x29fd9c[_0x15a179(0x133)])return _0x2e23f7(_0x2cb600,_0x15a179(0x14d));const _0x150441=new Map(_0x1abef3[_0x15a179(0x16c)](_0x52f947=>[_0x52f947['id'],_0x52f947])),_0x292d29=_0x2cb600[_0x15a179(0x147)][_0x15a179(0x133)]?[..._0x2cb600[_0x15a179(0x147)]]:[..._0x29fd9c]['sort']((_0x56509c,_0x49a235)=>_0x56509c-_0x49a235);if(_0x292d29[_0x15a179(0x141)](_0x4f3dfb=>!validId(_0x4f3dfb))||_0x292d29[_0x15a179(0x141)]((_0x404c69,_0x5c2f6b)=>_0x5c2f6b>0x0&&_0x404c69<=_0x292d29[_0x5c2f6b-0x1])||_0x292d29[_0x15a179(0x141)](_0x13119a=>!_0x150441[_0x15a179(0x153)](_0x13119a)))return _0x2e23f7(_0x2cb600,_0x15a179(0x14d));_0x1abef3=_0x292d29['map'](_0x3ab3a6=>_0x150441[_0x15a179(0x135)](_0x3ab3a6));const _0x253ba0=new Set(_0x6e1963['batches'][_0x15a179(0x175)](_0x2f70a7=>_0x2f70a7!==_0x2cb600)['flatMap'](_0x22e39e=>_0x22e39e[_0x15a179(0x147)]));if(_0x292d29[_0x15a179(0x141)](_0x2e6ba1=>_0x253ba0[_0x15a179(0x153)](_0x2e6ba1)))return _0x2e23f7(_0x2cb600,_0x15a179(0x162));for(let _0x4a5b87=0x0;_0x4a5b87<_0x1abef3[_0x15a179(0x133)];_0x4a5b87++){const _0x157873=_0x24d64c[_0x15a179(0x178)][_0x2cb600[_0x15a179(0x13b)][_0x4a5b87]][_0x15a179(0x13c)];if(Object[_0x15a179(0x14e)](_0x157873)[_0x15a179(0x141)](_0x353928=>!sameImportValue(_0x157873[_0x353928],_0x1abef3[_0x4a5b87][_0x353928],_0x24d64c[_0x15a179(0x159)]?.[_0x15a179(0x139)](_0x353928)&&!_0x24d64c[_0x15a179(0x173)]?.[_0x15a179(0x139)](_0x353928))))return _0x2e23f7(_0x2cb600,'Import\x20content\x20conflict\x20at\x20Excel\x20row\x20'+_0x24d64c[_0x15a179(0x178)][_0x2cb600['rowIndexes'][_0x4a5b87]][_0x15a179(0x13a)]+'.');}return _0x2cb600[_0x15a179(0x147)]=_0x292d29,_0x2cb600[_0x15a179(0x149)]='succeeded',await saveImportJson(_0x61109d['checkpoint'],_0x6e1963),!![];};if(_0x6e1963[_0x4ae577(0x143)][_0x4ae577(0x141)](_0x4eca5a=>_0x4eca5a['status']===_0x4ae577(0x17d)&&!(_0x61109d[_0x4ae577(0x183)]&&_0x61109d[_0x4ae577(0x17a)]&&_0x24d64c[_0x4ae577(0x159)]?.[_0x4ae577(0x133)]&&_0x4eca5a[_0x4ae577(0x147)][_0x4ae577(0x133)]===_0x4eca5a[_0x4ae577(0x13b)]['length'])))throw Error(_0x4ae577(0x172));if(_0x61109d['resume']){for(const _0x51933c of _0x6e1963[_0x4ae577(0x143)])await _0x74fa3f(_0x51933c);}for(const _0xcecc1c of _0x6e1963[_0x4ae577(0x143)]){if(_0xcecc1c[_0x4ae577(0x149)]===_0x4ae577(0x186))continue;if(!_0x61109d[_0x4ae577(0x183)])await _0x74fa3f(_0xcecc1c);_0xcecc1c['status']=_0x4ae577(0x13f),await saveImportJson(_0x61109d[_0x4ae577(0x152)],_0x6e1963),_0x7ff474++;const _0x17d11d=_0xcecc1c['rowIndexes']['map'](_0x2147cd=>_0x24d64c[_0x4ae577(0x178)][_0x2147cd]['values']),_0x5847e5=Date[_0x4ae577(0x14b)](),_0x47ada7={'batch':_0x7ff474,'rowStart':_0x24d64c[_0x4ae577(0x178)][_0xcecc1c[_0x4ae577(0x13b)][0x0]][_0x4ae577(0x13a)],'rowEnd':_0x24d64c['rows'][_0xcecc1c[_0x4ae577(0x13b)]['at'](-0x1)][_0x4ae577(0x13a)],'count':_0x17d11d[_0x4ae577(0x133)],'bytes':_0xc72524(_0xcecc1c[_0x4ae577(0x13b)],_0xcecc1c[_0x4ae577(0x15d)]),'elapsedMs':0x0,'status':'unknown'};_0x20ceae[_0x4ae577(0x17c)](_0x47ada7);try{const _0xd91db2=await _0x187aa4[_0x4ae577(0x176)](_0x17d11d,_0xcecc1c['taskId']);if(!_0xd91db2||_0xd91db2[_0x4ae577(0x16e)]!==_0x17d11d[_0x4ae577(0x133)]||!Array[_0x4ae577(0x166)](_0xd91db2[_0x4ae577(0x147)])||_0xd91db2['ids'][_0x4ae577(0x133)]!==_0x17d11d[_0x4ae577(0x133)]||_0xd91db2[_0x4ae577(0x147)][_0x4ae577(0x141)](_0x11268c=>!validId(_0x11268c))||new Set(_0xd91db2['ids'])[_0x4ae577(0x151)]!==_0xd91db2[_0x4ae577(0x147)][_0x4ae577(0x133)])throw Error('Invalid\x20write\x20result.');_0xcecc1c[_0x4ae577(0x147)]=_0xd91db2[_0x4ae577(0x147)],await saveImportJson(_0x61109d[_0x4ae577(0x152)],_0x6e1963);if(!await _0x74fa3f(_0xcecc1c))throw Error(_0x4ae577(0x180));}catch(_0x4007e2){if(_0xcecc1c[_0x4ae577(0x149)]===_0x4ae577(0x17d))throw _0x4007e2;try{await _0x74fa3f(_0xcecc1c);}catch(_0x1ed193){if(_0xcecc1c[_0x4ae577(0x149)]===_0x4ae577(0x17d))throw _0x1ed193;}if(_0xcecc1c[_0x4ae577(0x149)]!=='succeeded')throw Error('The\x20import\x20write\x20outcome\x20is\x20unknown.\x20Resume\x20to\x20reconcile\x20the\x20original\x20task\x20marker\x20before\x20continuing.');}finally{_0x47ada7[_0x4ae577(0x165)]=Date[_0x4ae577(0x14b)]()-_0x5847e5,_0x47ada7[_0x4ae577(0x149)]=_0xcecc1c[_0x4ae577(0x149)]===_0x4ae577(0x186)?_0x4ae577(0x186):_0xcecc1c[_0x4ae577(0x149)]===_0x4ae577(0x17d)?_0x4ae577(0x17d):'unknown';}}const _0x2f4e88={'status':'completed',..._0x1f64e1()};return await saveImportJson(_0x61109d['report'],_0x2f4e88),_0x2f4e88;}catch(_0x5ca705){if(_0x545572)await saveImportJson(_0x61109d[_0x4ae577(0x185)],{'status':_0x4ae577(0x15a),..._0x1f64e1(),'message':_0x5ca705[_0x4ae577(0x15b)]});throw _0x5ca705;}finally{await _0x3c42ee();}}