@lovrabet/lovrabet-cli 2.3.11-beta.1 → 2.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/approval/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/import-excel.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/issue/context.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-sdk-errors.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/access-error.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-import/auto-id-runner.js +1 -1
- package/lib/services/dataset-import/excel-reader.js +1 -1
- package/lib/services/dataset-import/image-bytes.js +1 -1
- package/lib/services/dataset-import/image-ooxml.js +1 -1
- package/lib/services/dataset-import/image-runner.js +1 -1
- package/lib/services/dataset-import/metadata.js +1 -1
- package/lib/services/dataset-import/preview.js +1 -1
- package/lib/services/dataset-import/runner.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/positive-safe-integer.js +1 -1
- package/lib/utils/redaction.js +1 -1
- package/lib/utils/runtime-user-id.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x551207,_0x247b17){const _0x30baf2=a128_0x4df8,_0x29650b=_0x551207();while(!![]){try{const _0x13cced=parseInt(_0x30baf2(0x1a4))/0x1+parseInt(_0x30baf2(0x19e))/0x2+-parseInt(_0x30baf2(0x184))/0x3*(-parseInt(_0x30baf2(0x160))/0x4)+-parseInt(_0x30baf2(0x18c))/0x5+-parseInt(_0x30baf2(0x166))/0x6+parseInt(_0x30baf2(0x181))/0x7*(-parseInt(_0x30baf2(0x16d))/0x8)+parseInt(_0x30baf2(0x19d))/0x9;if(_0x13cced===_0x247b17)break;else _0x29650b['push'](_0x29650b['shift']());}catch(_0x51836c){_0x29650b['push'](_0x29650b['shift']());}}}(a128_0x2014,0x87910));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';import{isNonInteractiveMode}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain,getRuntimeDomain,requireHarnessDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{assertKnownCommandFlags}from'../framework/raw-flags.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{assertCliVersionSupported,checkCliVersion}from'../utils/cli-version-check.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x3d5d7d){const _0x1a84de=a128_0x4df8;return void _0x3d5d7d,AUTH_MODE[_0x1a84de(0x1a7)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x1790e3,_0x5d12d4){const _0x55f07a=a128_0x4df8;return{'rawFlags':_0x5d12d4,'appCode':_0x1790e3[_0x55f07a(0x182)],'appCodeSource':_0x1790e3[_0x55f07a(0x198)],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x5d12d4),'defaultFormat':_0x1790e3[_0x55f07a(0x199)],'defaultPageSize':_0x1790e3[_0x55f07a(0x193)],'defaultVerbose':_0x1790e3[_0x55f07a(0x16c)],'riskLevel':_0x1790e3['riskLevel'],'nativeToolAvailable':_0x1790e3['nativeToolAvailable'],'accessKey':_0x1790e3['accessKey'],'accessKeySource':_0x1790e3['accessKeySource'],'env':_0x1790e3[_0x55f07a(0x178)],'mergedCli':{'defaultApp':_0x1790e3[_0x55f07a(0x17b)],'currentApp':_0x1790e3[_0x55f07a(0x171)],'appCode':_0x1790e3['appCode']}};}export function createLovrabetRunnerAdapter(_0x1a544b={}){const _0x3b69b7=a128_0x4df8,_0x223d15={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x3b69b7(0x1aa)](_0x5c9ab6=>PIPELINE_FLAG_NAMES[_0x3b69b7(0x177)](_0x5c9ab6[_0x3b69b7(0x17f)]))[_0x3b69b7(0x1a2)](({name:_0x29d856,type:_0x3becec,description:_0x13b058})=>({'name':_0x29d856,'type':_0x3becec,'description':_0x13b058})),'formatOutput':_0x1a544b[_0x3b69b7(0x17e)]??formatOutput,'getCommandLabel'(_0x171885){const _0x1e450d=_0x3b69b7;return CLI_BIN_NAME+'\x20'+_0x171885[_0x1e450d(0x161)]+'\x20'+_0x171885[_0x1e450d(0x173)];},'riskPolicy':{'onViolation'(_0x3949cf,{def:_0x2cf782,env:_0x4c5b54}){const _0x42f75f=_0x3b69b7;if(shouldRouteWriteToNativeTool(_0x2cf782,_0x4c5b54))return;console[_0x42f75f(0x195)](_0x3949cf);},'createError'(_0x25890f,{def:_0xcb600b,env:_0x4f30f7}){const _0x31b598=_0x3b69b7;if(shouldRouteWriteToNativeTool(_0xcb600b,_0x4f30f7))return CliErrors[_0x31b598(0x18e)](CLI_BIN_NAME+'\x20'+_0xcb600b[_0x31b598(0x161)]+'\x20'+_0xcb600b[_0x31b598(0x173)]);return CliErrors[_0x31b598(0x197)](_0x25890f);}},async 'prepare'(_0x14f392,_0x4fe3e3){const _0x5dd39e=_0x3b69b7,_0x393c46=resolveAuthMode(_0x4fe3e3);if(_0x14f392[_0x5dd39e(0x191)]!==![]){if(!_0x4fe3e3[_0x5dd39e(0x19f)])throw CliErrors['authRequired'](_0x5dd39e(0x1a9)+PRODUCT_CONFIG[_0x5dd39e(0x183)]+_0x5dd39e(0x194)+productEnvName(_0x5dd39e(0x16b))+'.');const {setActiveAK:_0xff7bcf}=await import('../core/api-client.js');_0xff7bcf(_0x4fe3e3[_0x5dd39e(0x19f)]);}if(_0x14f392[_0x5dd39e(0x161)]==='schedule')requireHarnessDomain();let _0x342436='';if(_0x14f392[_0x5dd39e(0x18f)]!==![]){_0x342436=_0x4fe3e3[_0x5dd39e(0x182)]??'',_0x342436=await resolveExplicitAppName(_0x14f392,_0x4fe3e3,_0x342436);if(!_0x342436){await assertSelectedAppNameIsRuntimeAccessible(_0x14f392,_0x4fe3e3);throw CliErrors[_0x5dd39e(0x19b)](_0x5dd39e(0x1a3)+PRODUCT_CONFIG[_0x5dd39e(0x183)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x14f392,_0x4fe3e3,_0x342436);}if(_0x342436){const {initSdkClient:_0x10a16d}=await import(_0x5dd39e(0x19a));_0x10a16d({'appCode':_0x342436,'env':_0x4fe3e3['env']??_0x5dd39e(0x190),'runtimeDomain':_0x4fe3e3[_0x5dd39e(0x1a5)],'accessKey':_0x4fe3e3[_0x5dd39e(0x19f)],'authMode':_0x393c46}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x4fe3e3[_0x5dd39e(0x172)]},'numbers':{'pagesize':_0x4fe3e3[_0x5dd39e(0x1a8)]}},'extras':{'appCode':_0x342436,'cookie':'','apiDomain':_0x4fe3e3[_0x5dd39e(0x174)],'apiDir':'','accessKey':_0x4fe3e3[_0x5dd39e(0x19f)],'envName':_0x4fe3e3[_0x5dd39e(0x178)],'accessKeySource':_0x4fe3e3[_0x5dd39e(0x17d)],'mergedCli':_0x4fe3e3[_0x5dd39e(0x167)]}};},'confirmHighRisk':_0x1a544b['confirmHighRisk']??(async({def:_0x40a904,env:_0x2bad62,flags:_0x6b7356,commandLabel:_0x313524})=>{const _0x18b20a=_0x3b69b7;if(_0x2bad62[_0x18b20a(0x170)]){const _0x3b6d01=reconstructCommandArgv(_0x40a904,_0x6b7356);throw CliErrors['validation'](_0x18b20a(0x16e)+_0x313524+_0x18b20a(0x186)+(_0x18b20a(0x16a)+_0x3b6d01));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x40a904,_0x313524,_0x6b7356),'createCancelledError':_0x31fa93=>CliErrors['cancelled'](_0x31fa93)});}),'mapDryRunError'(_0x4a403e){return mapUserFacingExecuteError(_0x4a403e);},'mapExecuteError'(_0x179d9c){return mapUserFacingExecuteError(_0x179d9c);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x223d15;}function shouldRouteWriteToNativeTool(_0x2f5756,_0xe13173){const _0x252a15=a128_0x4df8;return _0xe13173['nativeToolAvailable']===!![]&&(_0x2f5756[_0x252a15(0x180)]===_0x252a15(0x17c)||_0x2f5756[_0x252a15(0x180)]===_0x252a15(0x165));}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){try{if(sdkClientInitialized){const {clearSdkClient:_0x35530c}=await import('../core/sdk-client.js');_0x35530c();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x2472c2}=await import('../core/api-client.js');_0x2472c2();}}function a128_0x4df8(_0x4e404e,_0x4d1017){_0x4e404e=_0x4e404e-0x15f;const _0x201456=a128_0x2014();let _0x4df8fd=_0x201456[_0x4e404e];return _0x4df8fd;}function a128_0x2014(){const _0x1c420d=['risk','42jDurWY','appCode','newConfigFileName','6uqKOjS','update','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','execute','.appcode\x20to\x20','pretty','includes','string','2123915JAhsfc','install','nativeToolRequired','requiresAppCode','production','requiresAuth','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','pageSize','\x20or\x20pass\x20','error','trim','cancelled','appCodeSource','format','../core/sdk-client.js','configMissing','rawFlags','13609494GGAbUT','391826syAYXn','accessKey','schema','_notice','map','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','618130zbGNQN','runtimeDomain','items','ClientAk','defaultPageSize','Set\x20accessKey\x20in\x20','filter','app','1336728jcAEGY','service','../commands/app/remote-source.js','resolve','Run\x20`','high-risk-write','5910432gKQkyl','mergedCli','nonInteractive','appcode','\x20\x20To\x20proceed:\x20','ACCESS_KEY','verbose','1372584KMjbZD','High-risk\x20operation\x20`','catch','isNonInteractive','currentApp','defaultVerbose','command','apiDomain','doctor','appcode\x20\x22','has','env','local-alias','Unknown\x20app:\x20','defaultApp','write','accessKeySource','formatOutput','name'];a128_0x2014=function(){return _0x1c420d;};return a128_0x2014();}async function resolveExplicitAppName(_0x1e1f3c,_0x5bd135,_0x1b649a){const _0x1a988c=a128_0x4df8;if(_0x1e1f3c[_0x1a988c(0x18f)]===![])return _0x1b649a;const _0x8217e5=typeof _0x5bd135['rawFlags']['app']===_0x1a988c(0x18b)?_0x5bd135['rawFlags'][_0x1a988c(0x15f)]['trim']():'';if(!_0x8217e5)return _0x1b649a;const _0x658fce=typeof _0x5bd135[_0x1a988c(0x19c)][_0x1a988c(0x169)]===_0x1a988c(0x18b)&&_0x5bd135[_0x1a988c(0x19c)][_0x1a988c(0x169)][_0x1a988c(0x196)]();if(_0x658fce||_0x5bd135[_0x1a988c(0x198)]===_0x1a988c(0x179))return _0x1b649a;const {getRemoteAppList:_0x3c542d}=await import(_0x1a988c(0x162)),_0x466ef6=await _0x3c542d({'env':_0x5bd135[_0x1a988c(0x178)]??_0x1a988c(0x190),'accessKey':_0x5bd135[_0x1a988c(0x19f)]}),_0x5252ed=findAppByName(_0x466ef6[_0x1a988c(0x1a6)],_0x8217e5);if(_0x5252ed&&!isRuntimeAccessibleApp(_0x5252ed))throw runtimeInaccessibleAppError(_0x5252ed,'\x22'+_0x8217e5+'\x22');const _0x102158=_0x5252ed?.[_0x1a988c(0x182)]?.[_0x1a988c(0x196)]();if(_0x102158)return _0x102158;throw CliErrors['validation'](_0x1a988c(0x17a)+_0x8217e5,_0x1a988c(0x164)+CLI_BIN_NAME+_0x1a988c(0x192)+_0x8217e5+_0x1a988c(0x188)+PRODUCT_CONFIG[_0x1a988c(0x183)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x59dceb,_0x1e1ef4){const _0x4f0a16=a128_0x4df8;if(_0x59dceb[_0x4f0a16(0x18f)]===![]||!_0x1e1ef4[_0x4f0a16(0x19f)])return;const _0x5ed1c4=(typeof _0x1e1ef4[_0x4f0a16(0x19c)][_0x4f0a16(0x15f)]===_0x4f0a16(0x18b)&&_0x1e1ef4[_0x4f0a16(0x19c)][_0x4f0a16(0x15f)][_0x4f0a16(0x196)]()?_0x1e1ef4[_0x4f0a16(0x19c)][_0x4f0a16(0x15f)]:_0x1e1ef4['mergedCli']?.[_0x4f0a16(0x171)]??_0x1e1ef4['mergedCli']?.[_0x4f0a16(0x17b)])?.[_0x4f0a16(0x196)]();if(!_0x5ed1c4)return;const {getRemoteAppList:_0x2a4e83}=await import('../commands/app/remote-source.js'),_0x55c308=await _0x2a4e83({'env':_0x1e1ef4[_0x4f0a16(0x178)]??_0x4f0a16(0x190),'accessKey':_0x1e1ef4[_0x4f0a16(0x19f)]}),_0x1eddf5=findAppByName(_0x55c308['items'],_0x5ed1c4);if(_0x1eddf5&&!isRuntimeAccessibleApp(_0x1eddf5))throw runtimeInaccessibleAppError(_0x1eddf5,'\x22'+_0x5ed1c4+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x4d4a4e,_0x4d774d,_0x1b5c67){const _0x99b480=a128_0x4df8;if(_0x4d4a4e[_0x99b480(0x18f)]===![]||!_0x4d774d[_0x99b480(0x19f)])return;const {getRemoteAppList:_0x178789}=await import(_0x99b480(0x162)),_0x52d9fa=await _0x178789({'env':_0x4d774d['env']??_0x99b480(0x190),'accessKey':_0x4d774d[_0x99b480(0x19f)]}),_0x2b7745=findAppByCode(_0x52d9fa[_0x99b480(0x1a6)],_0x1b5c67);if(_0x2b7745&&!isRuntimeAccessibleApp(_0x2b7745))throw runtimeInaccessibleAppError(_0x2b7745,_0x99b480(0x176)+_0x1b5c67+'\x22');}export async function runCommand(_0x566dc6,_0x51d280,_0xbab626=terminalRunnerAdapter){const _0x508b7d=a128_0x4df8;assertKnownCommandFlags(_0x566dc6,_0x51d280[_0x508b7d(0x19c)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x566dc6)?withVersionPolicy(_0x566dc6):_0x566dc6,_0x51d280,_0xbab626);}function shouldApplyVersionPolicy(_0x3d372a){const _0x44831f=a128_0x4df8;if([_0x44831f(0x185),_0x44831f(0x1a0),_0x44831f(0x175)][_0x44831f(0x18a)](_0x3d372a[_0x44831f(0x161)]))return![];return!(_0x3d372a[_0x44831f(0x161)]==='cli-skill'&&_0x3d372a['command']===_0x44831f(0x18d));}function withVersionPolicy(_0x4b1ef3){return{..._0x4b1ef3,async 'execute'(_0x1d7447){const _0x37c8ce=a128_0x4df8,_0x5a09f4=await checkCliVersion();assertCliVersionSupported(_0x5a09f4);const _0x493e03=shouldResolveUpdateNotice(_0x1d7447)?resolveLatestUpdateNotice(_0x5a09f4)[_0x37c8ce(0x16f)](()=>null):Promise[_0x37c8ce(0x163)](null),_0x18409e=await _0x4b1ef3[_0x37c8ce(0x187)](_0x1d7447);return attachUpdateNotice(_0x18409e,await _0x493e03);}};}function shouldResolveUpdateNotice(_0x1e988f){const _0x4204bf=a128_0x4df8;return _0x1e988f['format']===_0x4204bf(0x189)&&!_0x1e988f[_0x4204bf(0x168)];}function attachUpdateNotice(_0xf28e89,_0x4c4d77){const _0xe1f844=a128_0x4df8;if(!_0x4c4d77||!_0xf28e89||typeof _0xf28e89!=='object')return _0xf28e89;const _0x20e2a9=_0xf28e89,_0x444788=typeof _0x20e2a9[_0xe1f844(0x1a1)]==='object'&&_0x20e2a9['_notice']!==null?_0x20e2a9[_0xe1f844(0x1a1)]:{};return{..._0x20e2a9,'_notice':{..._0x444788,'update':_0x4c4d77}};}
|
|
1
|
+
(function(_0x12f971,_0xb3fe0){const _0x1cde21=a128_0x5088,_0x3c0eae=_0x12f971();while(!![]){try{const _0x13a203=-parseInt(_0x1cde21(0x103))/0x1+-parseInt(_0x1cde21(0x109))/0x2+parseInt(_0x1cde21(0xf3))/0x3*(parseInt(_0x1cde21(0xdf))/0x4)+parseInt(_0x1cde21(0x10d))/0x5+parseInt(_0x1cde21(0xfa))/0x6+-parseInt(_0x1cde21(0xff))/0x7*(-parseInt(_0x1cde21(0x102))/0x8)+-parseInt(_0x1cde21(0xd6))/0x9;if(_0x13a203===_0xb3fe0)break;else _0x3c0eae['push'](_0x3c0eae['shift']());}catch(_0x3d0908){_0x3c0eae['push'](_0x3c0eae['shift']());}}}(a128_0x344e,0xda393));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';function a128_0x344e(){const _0x96c303=['catch','3794160oqhKeH','error','env','trim','items','7twoMcU','requiresAppCode','appcode\x20\x22','11389256cBDhbz','528842IkMFmH','includes','accessKeySource','map','Set\x20accessKey\x20in\x20','appcode','1445778oGnOmz','mergedCli','ACCESS_KEY','name','2518765nabsod','nativeToolAvailable','service','../core/sdk-client.js','appCodeSource','rawFlags','local-alias','cancelled','appCode','../core/api-client.js','accessKey','Unknown\x20app:\x20','production','newConfigFileName','resolve','10044531TUkOlt','doctor','runtimeDomain','../commands/app/remote-source.js','riskLevel','format','Run\x20`','\x20\x20To\x20proceed:\x20','_notice','2807452HoGbwD','defaultVerbose','currentApp','string','schema','install','risk','nativeToolRequired','command','validation','object','authRequired','.appcode\x20to\x20','cli-skill','execute','High-risk\x20operation\x20`','verbose','high-risk-write','nonInteractive','\x20or\x20pass\x20','3YaLDMf','defaultApp','apiDomain','isNonInteractive','app','defaultPageSize'];a128_0x344e=function(){return _0x96c303;};return a128_0x344e();}import{isNonInteractiveMode}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain,getRuntimeDomain,requireHarnessDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{assertKnownCommandFlags}from'../framework/raw-flags.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{assertCliVersionSupported,checkCliVersion}from'../utils/cli-version-check.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x3cbd9a){return void _0x3cbd9a,AUTH_MODE['ClientAk'];}let sdkClientInitialized=![];export function createPipelineEnv(_0x36d374,_0x2c0a8b){const _0x4868f3=a128_0x5088;return{'rawFlags':_0x2c0a8b,'appCode':_0x36d374[_0x4868f3(0xcf)],'appCodeSource':_0x36d374[_0x4868f3(0x111)],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x2c0a8b),'defaultFormat':_0x36d374[_0x4868f3(0xdb)],'defaultPageSize':_0x36d374['pageSize'],'defaultVerbose':_0x36d374[_0x4868f3(0xef)],'riskLevel':_0x36d374[_0x4868f3(0xda)],'nativeToolAvailable':_0x36d374[_0x4868f3(0x10e)],'accessKey':_0x36d374[_0x4868f3(0xd1)],'accessKeySource':_0x36d374[_0x4868f3(0x105)],'env':_0x36d374['env'],'mergedCli':{'defaultApp':_0x36d374[_0x4868f3(0xf4)],'currentApp':_0x36d374[_0x4868f3(0xe1)],'appCode':_0x36d374[_0x4868f3(0xcf)]}};}export function createLovrabetRunnerAdapter(_0x6eaf8d={}){const _0x14f778=a128_0x5088,_0x4df73c={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0xbdfb33=>PIPELINE_FLAG_NAMES['has'](_0xbdfb33[_0x14f778(0x10c)]))[_0x14f778(0x106)](({name:_0x2cef2d,type:_0x3b2886,description:_0x4aeaa0})=>({'name':_0x2cef2d,'type':_0x3b2886,'description':_0x4aeaa0})),'formatOutput':_0x6eaf8d['formatOutput']??formatOutput,'getCommandLabel'(_0x2e3b92){return CLI_BIN_NAME+'\x20'+_0x2e3b92['service']+'\x20'+_0x2e3b92['command'];},'riskPolicy':{'onViolation'(_0x30fa87,{def:_0x6f4d25,env:_0x2118df}){const _0x324e8e=_0x14f778;if(shouldRouteWriteToNativeTool(_0x6f4d25,_0x2118df))return;console[_0x324e8e(0xfb)](_0x30fa87);},'createError'(_0x5233c3,{def:_0x4d3430,env:_0x331c3f}){const _0x2ad4ce=_0x14f778;if(shouldRouteWriteToNativeTool(_0x4d3430,_0x331c3f))return CliErrors[_0x2ad4ce(0xe6)](CLI_BIN_NAME+'\x20'+_0x4d3430['service']+'\x20'+_0x4d3430[_0x2ad4ce(0xe7)]);return CliErrors[_0x2ad4ce(0xce)](_0x5233c3);}},async 'prepare'(_0x2f92ef,_0x176bfd){const _0x3e7af2=_0x14f778,_0x136ad6=resolveAuthMode(_0x176bfd);if(_0x2f92ef['requiresAuth']!==![]){if(!_0x176bfd[_0x3e7af2(0xd1)])throw CliErrors[_0x3e7af2(0xea)](_0x3e7af2(0x107)+PRODUCT_CONFIG['newConfigFileName']+_0x3e7af2(0xf2)+productEnvName(_0x3e7af2(0x10b))+'.');const {setActiveAK:_0x2ab8e8}=await import(_0x3e7af2(0xd0));_0x2ab8e8(_0x176bfd['accessKey']);}if(_0x2f92ef[_0x3e7af2(0x10f)]==='schedule')requireHarnessDomain();let _0x23f194='';if(_0x2f92ef[_0x3e7af2(0x100)]!==![]){_0x23f194=_0x176bfd[_0x3e7af2(0xcf)]??'',_0x23f194=await resolveExplicitAppName(_0x2f92ef,_0x176bfd,_0x23f194);if(!_0x23f194){await assertSelectedAppNameIsRuntimeAccessible(_0x2f92ef,_0x176bfd);throw CliErrors['configMissing']('Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20'+PRODUCT_CONFIG[_0x3e7af2(0xd4)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x2f92ef,_0x176bfd,_0x23f194);}if(_0x23f194){const {initSdkClient:_0x3eb955}=await import(_0x3e7af2(0x110));_0x3eb955({'appCode':_0x23f194,'env':_0x176bfd[_0x3e7af2(0xfc)]??'production','runtimeDomain':_0x176bfd[_0x3e7af2(0xd8)],'accessKey':_0x176bfd[_0x3e7af2(0xd1)],'authMode':_0x136ad6}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x176bfd[_0x3e7af2(0xe0)]},'numbers':{'pagesize':_0x176bfd[_0x3e7af2(0xf8)]}},'extras':{'appCode':_0x23f194,'cookie':'','apiDomain':_0x176bfd[_0x3e7af2(0xf5)],'apiDir':'','accessKey':_0x176bfd['accessKey'],'envName':_0x176bfd[_0x3e7af2(0xfc)],'accessKeySource':_0x176bfd[_0x3e7af2(0x105)],'mergedCli':_0x176bfd[_0x3e7af2(0x10a)]}};},'confirmHighRisk':_0x6eaf8d['confirmHighRisk']??(async({def:_0x3063b8,env:_0x51b61a,flags:_0x5c8207,commandLabel:_0x82e9e6})=>{const _0xa19a5f=_0x14f778;if(_0x51b61a[_0xa19a5f(0xf6)]){const _0x25affb=reconstructCommandArgv(_0x3063b8,_0x5c8207);throw CliErrors[_0xa19a5f(0xe8)](_0xa19a5f(0xee)+_0x82e9e6+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a'+(_0xa19a5f(0xdd)+_0x25affb));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x3063b8,_0x82e9e6,_0x5c8207),'createCancelledError':_0x519c7a=>CliErrors[_0xa19a5f(0xce)](_0x519c7a)});}),'mapDryRunError'(_0x341c2a){return mapUserFacingExecuteError(_0x341c2a);},'mapExecuteError'(_0x39ed5a){return mapUserFacingExecuteError(_0x39ed5a);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x4df73c;}function shouldRouteWriteToNativeTool(_0x30e6d5,_0x30131e){const _0x2af2e4=a128_0x5088;return _0x30131e['nativeToolAvailable']===!![]&&(_0x30e6d5[_0x2af2e4(0xe5)]==='write'||_0x30e6d5['risk']===_0x2af2e4(0xf0));}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x6436af=a128_0x5088;try{if(sdkClientInitialized){const {clearSdkClient:_0x3503ee}=await import('../core/sdk-client.js');_0x3503ee();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x7bc6b1}=await import(_0x6436af(0xd0));_0x7bc6b1();}}async function resolveExplicitAppName(_0x1e112b,_0x2f2d5a,_0x2d499e){const _0x184644=a128_0x5088;if(_0x1e112b[_0x184644(0x100)]===![])return _0x2d499e;const _0x2ca163=typeof _0x2f2d5a[_0x184644(0x112)][_0x184644(0xf7)]===_0x184644(0xe2)?_0x2f2d5a[_0x184644(0x112)][_0x184644(0xf7)][_0x184644(0xfd)]():'';if(!_0x2ca163)return _0x2d499e;const _0x5bd4bc=typeof _0x2f2d5a[_0x184644(0x112)][_0x184644(0x108)]==='string'&&_0x2f2d5a['rawFlags'][_0x184644(0x108)][_0x184644(0xfd)]();if(_0x5bd4bc||_0x2f2d5a[_0x184644(0x111)]===_0x184644(0x113))return _0x2d499e;const {getRemoteAppList:_0x10bfbf}=await import(_0x184644(0xd9)),_0x497ee9=await _0x10bfbf({'env':_0x2f2d5a[_0x184644(0xfc)]??_0x184644(0xd3),'accessKey':_0x2f2d5a[_0x184644(0xd1)]}),_0x158107=findAppByName(_0x497ee9[_0x184644(0xfe)],_0x2ca163);if(_0x158107&&!isRuntimeAccessibleApp(_0x158107))throw runtimeInaccessibleAppError(_0x158107,'\x22'+_0x2ca163+'\x22');const _0x461a0e=_0x158107?.[_0x184644(0xcf)]?.[_0x184644(0xfd)]();if(_0x461a0e)return _0x461a0e;throw CliErrors['validation'](_0x184644(0xd2)+_0x2ca163,_0x184644(0xdc)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0x2ca163+_0x184644(0xeb)+PRODUCT_CONFIG['newConfigFileName']+'.');}function a128_0x5088(_0x56ebb1,_0x4d1ff9){_0x56ebb1=_0x56ebb1-0xce;const _0x344e5c=a128_0x344e();let _0x50888c=_0x344e5c[_0x56ebb1];return _0x50888c;}async function assertSelectedAppNameIsRuntimeAccessible(_0x15203d,_0x415cbd){const _0x20bfd7=a128_0x5088;if(_0x15203d[_0x20bfd7(0x100)]===![]||!_0x415cbd[_0x20bfd7(0xd1)])return;const _0x275c60=(typeof _0x415cbd[_0x20bfd7(0x112)][_0x20bfd7(0xf7)]===_0x20bfd7(0xe2)&&_0x415cbd['rawFlags'][_0x20bfd7(0xf7)]['trim']()?_0x415cbd[_0x20bfd7(0x112)][_0x20bfd7(0xf7)]:_0x415cbd[_0x20bfd7(0x10a)]?.[_0x20bfd7(0xe1)]??_0x415cbd['mergedCli']?.[_0x20bfd7(0xf4)])?.[_0x20bfd7(0xfd)]();if(!_0x275c60)return;const {getRemoteAppList:_0x2e0656}=await import(_0x20bfd7(0xd9)),_0x3880dd=await _0x2e0656({'env':_0x415cbd[_0x20bfd7(0xfc)]??'production','accessKey':_0x415cbd[_0x20bfd7(0xd1)]}),_0x1052df=findAppByName(_0x3880dd[_0x20bfd7(0xfe)],_0x275c60);if(_0x1052df&&!isRuntimeAccessibleApp(_0x1052df))throw runtimeInaccessibleAppError(_0x1052df,'\x22'+_0x275c60+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x41cd3f,_0x253b6a,_0x2cb52b){const _0x340b08=a128_0x5088;if(_0x41cd3f[_0x340b08(0x100)]===![]||!_0x253b6a[_0x340b08(0xd1)])return;const {getRemoteAppList:_0x54c398}=await import(_0x340b08(0xd9)),_0x2900d0=await _0x54c398({'env':_0x253b6a[_0x340b08(0xfc)]??_0x340b08(0xd3),'accessKey':_0x253b6a[_0x340b08(0xd1)]}),_0x3c83cd=findAppByCode(_0x2900d0['items'],_0x2cb52b);if(_0x3c83cd&&!isRuntimeAccessibleApp(_0x3c83cd))throw runtimeInaccessibleAppError(_0x3c83cd,_0x340b08(0x101)+_0x2cb52b+'\x22');}export async function runCommand(_0x247466,_0xef590b,_0x5683d0=terminalRunnerAdapter){const _0x32a303=a128_0x5088;assertKnownCommandFlags(_0x247466,_0xef590b[_0x32a303(0x112)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x247466)?withVersionPolicy(_0x247466):_0x247466,_0xef590b,_0x5683d0);}function shouldApplyVersionPolicy(_0x455a45){const _0x1f7f75=a128_0x5088;if(['update',_0x1f7f75(0xe3),_0x1f7f75(0xd7)][_0x1f7f75(0x104)](_0x455a45['service']))return![];return!(_0x455a45[_0x1f7f75(0x10f)]===_0x1f7f75(0xec)&&_0x455a45[_0x1f7f75(0xe7)]===_0x1f7f75(0xe4));}function withVersionPolicy(_0x2afcf1){return{..._0x2afcf1,async 'execute'(_0x3df0dd){const _0x478730=a128_0x5088,_0xdee688=await checkCliVersion();assertCliVersionSupported(_0xdee688);const _0x57b2d4=shouldResolveUpdateNotice(_0x3df0dd)?resolveLatestUpdateNotice(_0xdee688)[_0x478730(0xf9)](()=>null):Promise[_0x478730(0xd5)](null),_0x227afe=await _0x2afcf1[_0x478730(0xed)](_0x3df0dd);return attachUpdateNotice(_0x227afe,await _0x57b2d4);}};}function shouldResolveUpdateNotice(_0x37e077){const _0x4823e6=a128_0x5088;return _0x37e077[_0x4823e6(0xdb)]==='pretty'&&!_0x37e077[_0x4823e6(0xf1)];}function attachUpdateNotice(_0x2f9233,_0x2a84a0){const _0x44436c=a128_0x5088;if(!_0x2a84a0||!_0x2f9233||typeof _0x2f9233!==_0x44436c(0xe9))return _0x2f9233;const _0x5a87af=_0x2f9233,_0x46d8eb=typeof _0x5a87af['_notice']===_0x44436c(0xe9)&&_0x5a87af[_0x44436c(0xde)]!==null?_0x5a87af[_0x44436c(0xde)]:{};return{..._0x5a87af,'_notice':{..._0x46d8eb,'update':_0x2a84a0}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x66562f,_0x17e2ef){const _0x448349=a129_0x222d,_0x126c46=_0x66562f();while(!![]){try{const _0x2664bb=parseInt(_0x448349(0x7c))/0x1+-parseInt(_0x448349(0x7a))/0x2+parseInt(_0x448349(0x7f))/0x3*(parseInt(_0x448349(0x77))/0x4)+-parseInt(_0x448349(0x7e))/0x5*(-parseInt(_0x448349(0x79))/0x6)+parseInt(_0x448349(0x87))/0x7+-parseInt(_0x448349(0x76))/0x8*(parseInt(_0x448349(0x80))/0x9)+-parseInt(_0x448349(0x78))/0xa;if(_0x2664bb===_0x17e2ef)break;else _0x126c46['push'](_0x126c46['shift']());}catch(_0x252ea9){_0x126c46['push'](_0x126c46['shift']());}}}(a129_0x1fbd,0xe9a87));import{buildSchemaPayload as a129_0x804cb2}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a129_0x222d(_0x2e5137,_0x874a66){_0x2e5137=_0x2e5137-0x76;const _0x1fbddb=a129_0x1fbd();let _0x222d8c=_0x1fbddb[_0x2e5137];return _0x222d8c;}import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a129_0x1fbd(){const _0x3efdc5=['2297145iYfYTv','61932qVQlJS','27KZxbEE','../commands/registry.js','requiresAuth','commands','service','has','auth','5657484uICRBu','services','none','3402224JnLddn','68HzaCWX','2114680cyYghX','12dDaikT','1416662NWGRLV','required','1074678TnquSM','map'];a129_0x1fbd=function(){return _0x3efdc5;};return a129_0x1fbd();}import{getCliGitCommit,getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x2b4e6a=a129_0x222d,{serviceRegistry:_0x502a97,findDefinition:_0x31584c}=await import(_0x2b4e6a(0x81)),_0x49866d=new Set(_0x502a97[_0x2b4e6a(0x7d)](_0x3b91d4=>_0x3b91d4[_0x2b4e6a(0x84)])),_0x48b24a=listDynamicServiceEntries()['filter'](_0x225c81=>!_0x49866d[_0x2b4e6a(0x85)](_0x225c81[_0x2b4e6a(0x84)])),_0xd8bdbf=a129_0x804cb2({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x502a97,_0x48b24a),'buildAllFlags':buildAllFlags,'findDefinition':(_0x67f39f,_0x5a2193)=>_0x31584c(_0x67f39f,_0x5a2193)??findDynamicServiceDefinition(_0x67f39f,_0x5a2193)});return normalizeSchemaPayload(_0xd8bdbf);}function normalizeSchemaPayload(_0x2b6bb9){const _0x3f3e6a=a129_0x222d;return{..._0x2b6bb9,'schemaVersion':0x2,'services':_0x2b6bb9[_0x3f3e6a(0x88)][_0x3f3e6a(0x7d)](_0x78949f=>({..._0x78949f,'commands':_0x78949f[_0x3f3e6a(0x83)]['map'](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x1dfd93){const _0x185aaa=a129_0x222d,_0x3198ae=_0x1dfd93;return{..._0x1dfd93,'auth':_0x3198ae[_0x185aaa(0x86)]??(_0x1dfd93[_0x185aaa(0x82)]?_0x185aaa(0x7b):_0x185aaa(0x89))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4eec52,_0x4708df){const _0xff3b25=a130_0x1b95,_0xa442cd=_0x4eec52();while(!![]){try{const _0x160739=-parseInt(_0xff3b25(0x12b))/0x1*(-parseInt(_0xff3b25(0x123))/0x2)+-parseInt(_0xff3b25(0x12e))/0x3*(parseInt(_0xff3b25(0x12a))/0x4)+-parseInt(_0xff3b25(0x125))/0x5*(-parseInt(_0xff3b25(0x12c))/0x6)+parseInt(_0xff3b25(0x12f))/0x7*(parseInt(_0xff3b25(0x124))/0x8)+parseInt(_0xff3b25(0x130))/0x9+-parseInt(_0xff3b25(0x128))/0xa+-parseInt(_0xff3b25(0x126))/0xb;if(_0x160739===_0x4708df)break;else _0xa442cd['push'](_0xa442cd['shift']());}catch(_0x31f713){_0xa442cd['push'](_0xa442cd['shift']());}}}(a130_0x3370,0x98bb3));function a130_0x1b95(_0x245af6,_0x23325b){_0x245af6=_0x245af6-0x123;const _0x3370cc=a130_0x3370();let _0x1b9552=_0x3370cc[_0x245af6];return _0x1b9552;}export function insertDynamicServicesAfterServiceTree(_0x22a072,_0x13b172){const _0x14a89c=a130_0x1b95;if(_0x13b172['length']===0x0)return[..._0x22a072];const _0x391ec8=_0x22a072[_0x14a89c(0x12d)](_0x2ae369=>_0x2ae369[_0x14a89c(0x129)]==='service');if(_0x391ec8<0x0)return[..._0x22a072,..._0x13b172];return[..._0x22a072[_0x14a89c(0x127)](0x0,_0x391ec8+0x1),..._0x13b172,..._0x22a072[_0x14a89c(0x127)](_0x391ec8+0x1)];}function a130_0x3370(){const _0x429641=['1vhYGXp','156726dBXWiv','findIndex','180hmhupd','637NPbbUC','7066584sltPbW','1708954yoxHuu','57416cvAHgn','155wmHylI','13296503dyHmGK','slice','3562710dhACRL','service','60792rnJmlx'];a130_0x3370=function(){return _0x429641;};return a130_0x3370();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x315a3c,_0x27a872){var _0x4c2503=a131_0x1fe7,_0x1dadb4=_0x315a3c();while(!![]){try{var _0x2047f8=parseInt(_0x4c2503(0x1dc))/0x1*(-parseInt(_0x4c2503(0x1dd))/0x2)+-parseInt(_0x4c2503(0x1e0))/0x3*(parseInt(_0x4c2503(0x1e3))/0x4)+parseInt(_0x4c2503(0x1e2))/0x5+parseInt(_0x4c2503(0x1e5))/0x6*(-parseInt(_0x4c2503(0x1db))/0x7)+parseInt(_0x4c2503(0x1de))/0x8*(-parseInt(_0x4c2503(0x1df))/0x9)+-parseInt(_0x4c2503(0x1e4))/0xa*(-parseInt(_0x4c2503(0x1e6))/0xb)+parseInt(_0x4c2503(0x1e1))/0xc;if(_0x2047f8===_0x27a872)break;else _0x1dadb4['push'](_0x1dadb4['shift']());}catch(_0x1c54e9){_0x1dadb4['push'](_0x1dadb4['shift']());}}}(a131_0x31b9,0x3b0fa));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a131_0x1fe7(_0x74df50,_0x13259f){_0x74df50=_0x74df50-0x1db;var _0x31b9ab=a131_0x31b9();var _0x1fe754=_0x31b9ab[_0x74df50];return _0x1fe754;}function a131_0x31b9(){var _0x3325e8=['854914kyVxQx','57560NuaNbN','279gMpfpr','86703dvSlzB','6913416jnOiad','143390coHdYF','4AURTZi','10AZTvyz','825048QbfigF','4994319krxnbA','7RpcPRX','1XDuxqU'];a131_0x31b9=function(){return _0x3325e8;};return a131_0x31b9();}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.3.11
|
|
2
|
-
export declare const GIT_TAG = "v2.3.11
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-11-
|
|
1
|
+
export declare const VERSION = "2.3.11";
|
|
2
|
+
export declare const GIT_TAG = "v2.3.11";
|
|
3
|
+
export declare const GIT_COMMIT = "586d541";
|
|
4
|
+
export declare const BUILD_TIME = "2026-11-10T10:15:35.973Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a132_0x210308=a132_0xca09;function a132_0x50cd(){const _0x2b2079=['323588sddKjI','37540QXxems','1731824KQuvQK','829152mJuQVh','20106RWeZKB','v2.3.11','1155RVsnam','215oNYzgU','4517469jCyScw','16VxKGLg','2.3.11','10dYnGME'];a132_0x50cd=function(){return _0x2b2079;};return a132_0x50cd();}(function(_0x5bf1ea,_0x21192b){const _0x2ac3e5=a132_0xca09,_0x40e931=_0x5bf1ea();while(!![]){try{const _0x5b2db7=-parseInt(_0x2ac3e5(0x1a0))/0x1*(parseInt(_0x2ac3e5(0x198))/0x2)+parseInt(_0x2ac3e5(0x19a))/0x3+parseInt(_0x2ac3e5(0x1a3))/0x4+-parseInt(_0x2ac3e5(0x19e))/0x5*(parseInt(_0x2ac3e5(0x19b))/0x6)+parseInt(_0x2ac3e5(0x19d))/0x7+-parseInt(_0x2ac3e5(0x199))/0x8+-parseInt(_0x2ac3e5(0x19f))/0x9*(-parseInt(_0x2ac3e5(0x1a2))/0xa);if(_0x5b2db7===_0x21192b)break;else _0x40e931['push'](_0x40e931['shift']());}catch(_0x5575a5){_0x40e931['push'](_0x40e931['shift']());}}}(a132_0x50cd,0x30760));function a132_0xca09(_0x528aa2,_0x2bd408){_0x528aa2=_0x528aa2-0x198;const _0x50cd7f=a132_0x50cd();let _0xca09dc=_0x50cd7f[_0x528aa2];return _0xca09dc;}export const VERSION=a132_0x210308(0x1a1);export const GIT_TAG=a132_0x210308(0x19c);export const GIT_COMMIT='586d541';export const BUILD_TIME='2026-11-10T10:15:35.973Z';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a133_0x544834=a133_0x490c;function a133_0x4942(){const _0x1debed=['https://user-daily.lovrabet.com','1060015akpwuy','https://daily-api.lovrabet.com','https://skills-daily.lovrabet.com','https://daily-runtime.lovrabet.com','664755SRsPtt','https://user-daily.lovrabet.ai','https://skills.lovrabet.id','4OheBcg','https://api.lovrabet.ai','https://sandbox-api-daily.lovrabet.com','458984XhOTYD','https://kb-service.lovrabet.com','china','https://api.lovrabet.id','https://skills.lovrabet.ai','https://runtime.lovrabet.com','https://kb-service.lovrabet.id','Mainland\x20China','https://runtime.lovrabet.ai','578182WkufkG','https://sandbox-api.lovrabet.id','https://kb-service-daily.lovrabet.com','https://skills.lovrabet.com','https://user.lovrabet.com','15304122imSUJm','800070PDSbNc','https://daily-api.lovrabet.ai','70DOanMu','indonesia','607344GFsFgr','https://api.lovrabet.com','10GDpuyp','https://kb-service.lovrabet.ai','Indonesia','https://user.lovrabet.ai'];a133_0x4942=function(){return _0x1debed;};return a133_0x4942();}(function(_0x2e7970,_0xdf2eb1){const _0x37026d=a133_0x490c,_0x539305=_0x2e7970();while(!![]){try{const _0x2b33f9=-parseInt(_0x37026d(0x1b1))/0x1+parseInt(_0x37026d(0x19c))/0x2+-parseInt(_0x37026d(0x1a6))/0x3+-parseInt(_0x37026d(0x190))/0x4*(parseInt(_0x37026d(0x1ad))/0x5)+parseInt(_0x37026d(0x1a2))/0x6+parseInt(_0x37026d(0x1a4))/0x7*(-parseInt(_0x37026d(0x193))/0x8)+parseInt(_0x37026d(0x1a1))/0x9*(parseInt(_0x37026d(0x1a8))/0xa);if(_0x2b33f9===_0xdf2eb1)break;else _0x539305['push'](_0x539305['shift']());}catch(_0x50351a){_0x539305['push'](_0x539305['shift']());}}}(a133_0x4942,0x72bc6));export const ROUTING_CATALOG_DIGEST='19bc6dd7c8de7d4ef260bc553e38e63b268d7cd3f535fd1933132eb7ac3c5b52';export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id','global'];export const ENABLED_REGION_VALUES=['cn','id','global'];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a133_0x544834(0x19a),'aliases':[a133_0x544834(0x195)],'serviceDomains':{'production':{'user':a133_0x544834(0x1a0),'api':a133_0x544834(0x1a7),'runtime':a133_0x544834(0x198),'skill':a133_0x544834(0x19f),'kbService':a133_0x544834(0x194),'harness':'https://sandbox-api.lovrabet.com'},'daily':{'user':a133_0x544834(0x1ac),'api':a133_0x544834(0x1ae),'runtime':a133_0x544834(0x1b0),'skill':a133_0x544834(0x1af),'kbService':a133_0x544834(0x19e),'harness':a133_0x544834(0x192)}}},'id':{'enabled':!![],'label':a133_0x544834(0x1aa),'aliases':[a133_0x544834(0x1a5)],'serviceDomains':{'production':{'user':'https://user.lovrabet.id','api':a133_0x544834(0x196),'runtime':'https://runtime.lovrabet.id','skill':a133_0x544834(0x18f),'kbService':a133_0x544834(0x199),'harness':a133_0x544834(0x19d)}}},'global':{'enabled':!![],'label':'Global','aliases':[],'serviceDomains':{'production':{'user':a133_0x544834(0x1ab),'api':a133_0x544834(0x191),'runtime':a133_0x544834(0x19b),'skill':a133_0x544834(0x197),'kbService':a133_0x544834(0x1a9),'harness':'https://sandbox-api.lovrabet.ai'},'daily':{'user':a133_0x544834(0x18e),'api':a133_0x544834(0x1a3),'runtime':'https://daily-runtime.lovrabet.ai','skill':'https://skills-daily.lovrabet.ai'}}}};function a133_0x490c(_0x116e91,_0x291079){_0x116e91=_0x116e91-0x18e;const _0x4942a7=a133_0x4942();let _0x490c66=_0x4942a7[_0x116e91];return _0x490c66;}export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a134_0x395414=a134_0x4387;function a134_0x4387(_0x5db5e3,_0x197cdc){_0x5db5e3=_0x5db5e3-0x123;const _0x52be2c=a134_0x52be();let _0x4387bc=_0x52be2c[_0x5db5e3];return _0x4387bc;}(function(_0x56bf39,_0x18830e){const _0x409837=a134_0x4387,_0xaca24b=_0x56bf39();while(!![]){try{const _0x48d969=-parseInt(_0x409837(0x12d))/0x1*(-parseInt(_0x409837(0x124))/0x2)+-parseInt(_0x409837(0x123))/0x3*(-parseInt(_0x409837(0x125))/0x4)+-parseInt(_0x409837(0x12c))/0x5*(parseInt(_0x409837(0x131))/0x6)+parseInt(_0x409837(0x128))/0x7*(-parseInt(_0x409837(0x133))/0x8)+parseInt(_0x409837(0x127))/0x9+-parseInt(_0x409837(0x12a))/0xa+parseInt(_0x409837(0x132))/0xb;if(_0x48d969===_0x18830e)break;else _0xaca24b['push'](_0xaca24b['shift']());}catch(_0x3a59a9){_0xaca24b['push'](_0xaca24b['shift']());}}}(a134_0x52be,0xb4e56));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a134_0x395414(0x12b);export const ENTERPRISE_ROUTING_PROTOCOL=a134_0x395414(0x126);function a134_0x52be(){const _0x2e4a87=['151832PZMMhk','userDomain','12UcbEGR','14eCcLVR','337484xhxWbA','lovrabet-routing/v1','5536026UHCNyf','441CxMLbd','kbServiceDomain','5007470Fdqrzl','192eedb6fe65d2091e1e03fb0fe5046da1c2cf5a5aea21cb85511b2c1181a3d9','2285Xxhkxg','27983OJizml','enterprise','harnessDomain','runtimeDomain','10266evUbwK','22779042wmWkQp'];a134_0x52be=function(){return _0x2e4a87;};return a134_0x52be();}export const ENTERPRISE_ROUTING_KIND=a134_0x395414(0x12e);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a134_0x395414(0x134),'apiDomain',a134_0x395414(0x130),'skillDomain',a134_0x395414(0x129),a134_0x395414(0x12f)];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x216bf8,_0x34e01e){const _0x2c9758=a135_0x4967,_0x117841=_0x216bf8();while(!![]){try{const _0x1fd3d4=parseInt(_0x2c9758(0x16b))/0x1*(parseInt(_0x2c9758(0x176))/0x2)+parseInt(_0x2c9758(0x16d))/0x3+-parseInt(_0x2c9758(0x174))/0x4*(parseInt(_0x2c9758(0x16a))/0x5)+-parseInt(_0x2c9758(0x172))/0x6+-parseInt(_0x2c9758(0x170))/0x7+-parseInt(_0x2c9758(0x175))/0x8+-parseInt(_0x2c9758(0x171))/0x9*(-parseInt(_0x2c9758(0x16f))/0xa);if(_0x1fd3d4===_0x34e01e)break;else _0x117841['push'](_0x117841['shift']());}catch(_0x1a7f5c){_0x117841['push'](_0x117841['shift']());}}}(a135_0x3ac0,0x514ba));import{jsx as a135_0x1fa83e,jsxs as a135_0x5e33f3}from'react/jsx-runtime';import{useEffect}from'react';function a135_0x3ac0(){const _0x48f852=['369IcVieK','2534922xqXxTh','green','125408yeQwYp','3391920MpcSFl','168KvFzIw','\x20to\x20view\x20available\x20commands.','5osVmDz','5620IeFEoo','\x20--help','1330926CCGdAG','column','134060OQMQOM','1781871skBnMB'];a135_0x3ac0=function(){return _0x48f852;};return a135_0x3ac0();}import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a135_0x4967(_0x5ba7c4,_0x2a0340){_0x5ba7c4=_0x5ba7c4-0x16a;const _0x3ac07e=a135_0x3ac0();let _0x496765=_0x3ac07e[_0x5ba7c4];return _0x496765;}export function Help(){const _0x545f28=a135_0x4967,{exit:_0x47055e}=useApp();return useEffect(()=>{_0x47055e();},[_0x47055e]),a135_0x5e33f3(Box,{'flexDirection':_0x545f28(0x16e),'marginTop':0x1,'marginBottom':0x1,'children':[a135_0x1fa83e(Box,{'children':a135_0x1fa83e(Text,{'bold':!![],'color':_0x545f28(0x173),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a135_0x5e33f3(Box,{'marginTop':0x1,'children':[a135_0x1fa83e(Text,{'dimColor':!![],'children':'\x20\x20Use\x20'}),a135_0x1fa83e(Text,{'bold':!![],'color':'green','children':CLI_BIN_NAME+_0x545f28(0x16c)}),a135_0x1fa83e(Text,{'dimColor':!![],'children':_0x545f28(0x177)})]})]});}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a136_0x5341(_0x530669,_0x249097){_0x530669=_0x530669-0x1ab;const _0x3f4c59=a136_0x3f4c();let _0x534106=_0x3f4c59[_0x530669];return _0x534106;}(function(_0x4bebc9,_0xe85336){const _0x1505d0=a136_0x5341,_0x4889ab=_0x4bebc9();while(!![]){try{const _0x3b7513=parseInt(_0x1505d0(0x1b6))/0x1*(parseInt(_0x1505d0(0x1b9))/0x2)+parseInt(_0x1505d0(0x1b2))/0x3*(-parseInt(_0x1505d0(0x1c3))/0x4)+parseInt(_0x1505d0(0x1b8))/0x5*(-parseInt(_0x1505d0(0x1c2))/0x6)+parseInt(_0x1505d0(0x1ae))/0x7*(-parseInt(_0x1505d0(0x1ba))/0x8)+-parseInt(_0x1505d0(0x1c6))/0x9*(parseInt(_0x1505d0(0x1bd))/0xa)+parseInt(_0x1505d0(0x1ad))/0xb*(parseInt(_0x1505d0(0x1c7))/0xc)+parseInt(_0x1505d0(0x1bb))/0xd;if(_0x3b7513===_0xe85336)break;else _0x4889ab['push'](_0x4889ab['shift']());}catch(_0x5d2479){_0x4889ab['push'](_0x4889ab['shift']());}}}(a136_0x3f4c,0x883e0));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a136_0x3f4c(){const _0x5f5197=['log','warn','308pHgAxn','7qDsYLl','FAILED','error','installed','8031qRPmfz','repairCommand','Installation\x20failed','skillVersion','1HYdROn','[BUILTIN_SKILL_INSTALL_','45785UrCihh','230968RAYzTt','7859384dBkEWS','14534013DWZrUK','\x20via\x20skills@latest','767590ZuRUeP','already\x20current','installedPath','code','\x20at\x20','102feIVGQ','248EFCdgz','SOURCE_INVALID','Repair\x20with:\x20','45HaMNrF','433896gZwzqu'];a136_0x3f4c=function(){return _0x5f5197;};return a136_0x3f4c();}export async function runPostinstall(_0x4fd98c={}){const _0x2260ef=a136_0x5341,_0x5b9634=installBuiltinSkill(_0x4fd98c);if(_0x5b9634['ok']){const _0xe43e1f=_0x5b9634['changed']?_0x2260ef(0x1b1):_0x2260ef(0x1be),_0x3c0a84=_0x5b9634[_0x2260ef(0x1bf)]?_0x2260ef(0x1c1)+_0x5b9634[_0x2260ef(0x1bf)]:_0x2260ef(0x1bc);return console[_0x2260ef(0x1ab)]('Lovrabet\x20Built-in\x20Skill\x20'+_0x5b9634[_0x2260ef(0x1b5)]+'\x20'+_0xe43e1f+_0x3c0a84),_0x5b9634;}const _0x536659=_0x2260ef(0x1b7)+(_0x5b9634[_0x2260ef(0x1c0)]??_0x2260ef(0x1af))+']\x20'+(_0x5b9634[_0x2260ef(0x1b0)]??_0x2260ef(0x1b4))+'.\x20'+(_0x2260ef(0x1c5)+_0x5b9634[_0x2260ef(0x1b3)]);if(_0x5b9634[_0x2260ef(0x1c0)]===_0x2260ef(0x1c4))throw new Error(_0x536659);return console[_0x2260ef(0x1ac)](_0x536659),_0x5b9634;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x10616e,_0x4e49b5){const _0x12e7a4=a137_0x1a04,_0xe68e42=_0x10616e();while(!![]){try{const _0x54bdeb=parseInt(_0x12e7a4(0x15a))/0x1*(-parseInt(_0x12e7a4(0x15c))/0x2)+-parseInt(_0x12e7a4(0x167))/0x3+parseInt(_0x12e7a4(0x160))/0x4*(-parseInt(_0x12e7a4(0x154))/0x5)+parseInt(_0x12e7a4(0x157))/0x6+-parseInt(_0x12e7a4(0x161))/0x7+parseInt(_0x12e7a4(0x156))/0x8*(parseInt(_0x12e7a4(0x15d))/0x9)+parseInt(_0x12e7a4(0x158))/0xa*(parseInt(_0x12e7a4(0x155))/0xb);if(_0x54bdeb===_0x4e49b5)break;else _0xe68e42['push'](_0xe68e42['shift']());}catch(_0x35bc4d){_0xe68e42['push'](_0xe68e42['shift']());}}}(a137_0x5cdc,0xac2e4));const DESCRIPTION_MAX_LENGTH=0x1f4;function a137_0x1a04(_0x5f4bb3,_0x4fe28c){_0x5f4bb3=_0x5f4bb3-0x154;const _0x5cdc1c=a137_0x5cdc();let _0x1a0433=_0x5cdc1c[_0x5f4bb3];return _0x1a0433;}function a137_0x5cdc(){const _0x33a7b0=['10KoQytq','1111aznRVr','3737960ozAFJa','4366650fCqzxF','250140GGtXzM','risk','102318sHcqEw','trim','12JAIwES','9QELaxl','Run\x20this\x20write\x20operation','replace','1398136tPvsrA','8445465zJuIoN','string','description','confirmationDescription','high-risk-write','write','1490133dKoGQd'];a137_0x5cdc=function(){return _0x33a7b0;};return a137_0x5cdc();}export function buildLovrabetConfirmationRequest(_0x479bbf,_0xe828fe,_0x1e85af){const _0x2645f2=a137_0x1a04,_0xe7827c=normalizeText(_0x479bbf[_0x2645f2(0x164)],DESCRIPTION_MAX_LENGTH),_0x57c60e=normalizeText(_0x479bbf[_0x2645f2(0x163)],DESCRIPTION_MAX_LENGTH);return{'operation':_0xe828fe,'risk':requireWriteRisk(_0x479bbf),'description':_0xe7827c||_0x57c60e||_0x2645f2(0x15e),..._0x1e85af?{'signal':_0x1e85af}:{}};}function requireWriteRisk(_0x56f4cc){const _0xfa2b49=a137_0x1a04;if(_0x56f4cc['risk']===_0xfa2b49(0x166)||_0x56f4cc['risk']===_0xfa2b49(0x165))return _0x56f4cc[_0xfa2b49(0x159)];throw new Error('Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.');}function normalizeText(_0x2bc3d5,_0x55327a){const _0x49ee8f=a137_0x1a04;if(typeof _0x2bc3d5!==_0x49ee8f(0x162))return'';return _0x2bc3d5[_0x49ee8f(0x15f)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x49ee8f(0x15f)](/\s+/g,'\x20')[_0x49ee8f(0x15b)]()['slice'](0x0,_0x55327a);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x313f79,_0x339844){const _0x311719=a138_0x6059,_0x221a03=_0x313f79();while(!![]){try{const _0x4666c7=parseInt(_0x311719(0xb8))/0x1*(-parseInt(_0x311719(0xba))/0x2)+-parseInt(_0x311719(0xc9))/0x3*(parseInt(_0x311719(0xc2))/0x4)+-parseInt(_0x311719(0xc8))/0x5*(-parseInt(_0x311719(0xc0))/0x6)+parseInt(_0x311719(0xc4))/0x7+parseInt(_0x311719(0xca))/0x8+parseInt(_0x311719(0xc3))/0x9*(parseInt(_0x311719(0xc7))/0xa)+parseInt(_0x311719(0xbd))/0xb*(-parseInt(_0x311719(0xbc))/0xc);if(_0x4666c7===_0x339844)break;else _0x221a03['push'](_0x221a03['shift']());}catch(_0x1b811e){_0x221a03['push'](_0x221a03['shift']());}}}(a138_0x25f1,0x5e4fb));export function canonicalLovrabetOperation(_0x3801b0){const _0x1a17a9=a138_0x6059;return[_0x3801b0[_0x1a17a9(0xbb)],..._0x3801b0[_0x1a17a9(0xb9)]['trim']()[_0x1a17a9(0xc1)](/\s+/)]['filter'](Boolean)[_0x1a17a9(0xc6)]('.');}function a138_0x6059(_0x221e67,_0x25ca21){_0x221e67=_0x221e67-0xb8;const _0x25f1e6=a138_0x25f1();let _0x605946=_0x25f1e6[_0x221e67];return _0x605946;}function a138_0x25f1(){const _0x308c18=['join','10qoDRma','3664645rNEKiv','43023pDyzWC','526168CUATZl','345147jnWqAf','command','4GiDMjm','service','696aOKxNO','163856VPAddf','high-risk-write','writeEventSubject','6BNjpPd','split','76GitCgG','6589062gsBMiL','4775554qIhBxA','risk'];a138_0x25f1=function(){return _0x308c18;};return a138_0x25f1();}export function createLovrabetWriteMetadata(_0x510ca4,_0x21e212,_0x54fbe3,_0x1fd91a){const _0x2475ca=a138_0x6059;if(_0x1fd91a||_0x54fbe3['ok']!==!![]||_0x510ca4[_0x2475ca(0xc5)]!=='write'&&_0x510ca4[_0x2475ca(0xc5)]!==_0x2475ca(0xbe))return undefined;const _0x1a9c79=_0x510ca4[_0x2475ca(0xbf)]?.(_0x54fbe3),_0x1c0207={'type':'lovrabet.write.completed','operation':_0x21e212,'risk':_0x510ca4[_0x2475ca(0xc5)],..._0x1a9c79?{'subject':_0x1a9c79}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x1c0207}};}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x55cf39,_0x137290){const _0xc222d6=a139_0x5443,_0xb4545a=_0x55cf39();while(!![]){try{const _0x13e231=parseInt(_0xc222d6(0x1f8))/0x1*(parseInt(_0xc222d6(0x1f7))/0x2)+-parseInt(_0xc222d6(0x1ef))/0x3*(parseInt(_0xc222d6(0x1f0))/0x4)+parseInt(_0xc222d6(0x201))/0x5+parseInt(_0xc222d6(0x203))/0x6*(parseInt(_0xc222d6(0x205))/0x7)+parseInt(_0xc222d6(0x1fc))/0x8+parseInt(_0xc222d6(0x1fe))/0x9+-parseInt(_0xc222d6(0x209))/0xa;if(_0x13e231===_0x137290)break;else _0xb4545a['push'](_0xb4545a['shift']());}catch(_0x4c8115){_0xb4545a['push'](_0xb4545a['shift']());}}}(a139_0x371e,0xd13e5));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';import{canonicalLovrabetOperation,createLovrabetWriteMetadata}from'../runtime/event.js';import{buildLovrabetConfirmationRequest}from'../runtime/confirmation.js';import{resolveLovrabetInvocation}from'../runtime/resolve.js';import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0x24571f,command:_0x2cd7b2,risk:_0x15ca75,dryRun:_0x1b2210}){const _0x394eed=a139_0x5443;return JSON['stringify']({'ok':_0x24571f['ok'],'command':_0x2cd7b2,'risk':_0x15ca75,..._0x1b2210?{'dryRun':!![]}:{},..._0x24571f[_0x394eed(0x20a)]!==undefined?{'data':_0x24571f['data']}:{},..._0x24571f[_0x394eed(0x1f1)]?{'message':_0x24571f[_0x394eed(0x1f1)]}:{}});}};function a139_0x371e(){const _0x3c1b30=['result','rawFlags','riskLevel','risk','389146AhKsbg','5epJgUq','high-risk-write','AbortError','dryRun','5505616xugQeR','yes','10755081FNFfLL','present','execute','1759725SvPiWX','isNonInteractive','2772dVRRmT','confirmation','12145bQCqAR','definition','args','confirm','20377000ngDOfn','data','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','signal','aborted','format','command','222966XAfUrq','60VniUjP','message','reason'];a139_0x371e=function(){return _0x3c1b30;};return a139_0x371e();}export async function invokeLovrabet(_0x4ef88a,_0x17db70){const _0x58d3e0=a139_0x5443;throwIfAborted(_0x17db70[_0x58d3e0(0x20c)]);const _0x32416f=await resolveLovrabetInvocation(_0x4ef88a),_0x23284c=canonicalLovrabetOperation(_0x32416f[_0x58d3e0(0x206)]);return await confirmWriteBeforeQueue(_0x32416f[_0x58d3e0(0x206)],_0x32416f['rawFlags'],_0x23284c,_0x17db70),runSerialized(async()=>{const _0x102653=_0x58d3e0;throwIfAborted(_0x17db70[_0x102653(0x20c)]);const _0x3e2c6c={},_0x12b806=buildConfigFromFlags(_0x32416f[_0x102653(0x1f4)]);await initGlobalEnvironment(_0x12b806);const _0x295dd1=createPipelineEnv(_0x12b806,{..._0x32416f['rawFlags'],'yes':_0x32416f[_0x102653(0x206)][_0x102653(0x1f6)]===_0x102653(0x1f9)?!![]:_0x32416f[_0x102653(0x1f4)][_0x102653(0x1fd)],'nonInteractive':!![]});_0x295dd1[_0x102653(0x207)]=_0x32416f[_0x102653(0x207)],_0x295dd1[_0x102653(0x202)]=!![],_0x295dd1[_0x102653(0x1f5)]=_0x102653(0x1f9);const _0x6a6d70=withAbortSignal(_0x32416f[_0x102653(0x206)],_0x17db70['signal']),_0xc0cfd7=createLovrabetRunnerAdapter({'formatOutput'(_0xa32332,_0x5d1bce){const _0x2c47e8=_0x102653;_0x3e2c6c[_0x2c47e8(0x1f3)]=_0xa32332,_0x3e2c6c[_0x2c47e8(0x1ee)]=_0x5d1bce[_0x2c47e8(0x1ee)],_0x3e2c6c[_0x2c47e8(0x1f6)]=_0x5d1bce[_0x2c47e8(0x1f6)],_0x3e2c6c[_0x2c47e8(0x1ed)]=_0x5d1bce[_0x2c47e8(0x1ed)],_0x3e2c6c[_0x2c47e8(0x1fb)]=_0x5d1bce['dryRun']===!![];},async 'confirmHighRisk'(){throw new Error('Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.');}});try{await runCommand(_0x6a6d70,_0x295dd1,_0xc0cfd7);if(!_0x3e2c6c['result']||!_0x3e2c6c[_0x102653(0x1ee)]||!_0x3e2c6c[_0x102653(0x1f6)]||!_0x3e2c6c['format'])throw new Error(_0x102653(0x20b));const _0x57d7a1=_0x17db70['presentation']??defaultPresentation,_0x5518e8=_0x3e2c6c[_0x102653(0x1fb)]===!![],_0x1c2f6a={'result':_0x3e2c6c[_0x102653(0x1f3)],'command':_0x3e2c6c[_0x102653(0x1ee)],'operation':_0x23284c,'risk':_0x3e2c6c[_0x102653(0x1f6)],'format':_0x3e2c6c['format'],'dryRun':_0x5518e8},_0x2ce05d=createLovrabetWriteMetadata(_0x32416f[_0x102653(0x206)],_0x23284c,_0x3e2c6c[_0x102653(0x1f3)],_0x5518e8);let _0x6a5b9d;try{_0x6a5b9d=await _0x57d7a1[_0x102653(0x1ff)](_0x1c2f6a);}catch(_0x28d120){if(!_0x2ce05d||_0x57d7a1===defaultPresentation)throw _0x28d120;_0x6a5b9d=await defaultPresentation[_0x102653(0x1ff)](_0x1c2f6a);}return{'operation':_0x23284c,'risk':_0x3e2c6c[_0x102653(0x1f6)],'mode':_0x5518e8?'dry-run':_0x102653(0x200),'result':_0x3e2c6c[_0x102653(0x1f3)],'output':_0x6a5b9d,..._0x2ce05d?{'metadata':_0x2ce05d}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x516c8e,_0x1b6a20,_0x1117c1,_0x45c602){const _0x13cc1d=a139_0x5443;if(_0x1b6a20[_0x13cc1d(0x1fb)]===!![]||_0x516c8e[_0x13cc1d(0x1f6)]!=='write'&&_0x516c8e[_0x13cc1d(0x1f6)]!=='high-risk-write')return;await _0x45c602[_0x13cc1d(0x204)][_0x13cc1d(0x208)](buildLovrabetConfirmationRequest(_0x516c8e,_0x1117c1,_0x45c602[_0x13cc1d(0x20c)]));}function withAbortSignal(_0x15cb20,_0x42eb77){return{..._0x15cb20,async 'execute'(_0x41930e){return throwIfAborted(_0x42eb77),_0x15cb20['execute']({..._0x41930e,'signal':_0x42eb77});}};}function a139_0x5443(_0x22564b,_0x54a89f){_0x22564b=_0x22564b-0x1ec;const _0x371e28=a139_0x371e();let _0x5443c6=_0x371e28[_0x22564b];return _0x5443c6;}function throwIfAborted(_0x198dc5){const _0x3e2ebe=a139_0x5443;if(_0x198dc5?.[_0x3e2ebe(0x1ec)])throw _0x198dc5[_0x3e2ebe(0x1f2)]instanceof Error?_0x198dc5[_0x3e2ebe(0x1f2)]:new DOMException('Lovrabet\x20invocation\x20aborted.',_0x3e2ebe(0x1fa));}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x23d540,_0x151336){const _0x3c0171=a140_0x586f,_0x174a6b=_0x23d540();while(!![]){try{const _0x310b01=parseInt(_0x3c0171(0x75))/0x1*(parseInt(_0x3c0171(0x70))/0x2)+parseInt(_0x3c0171(0x6b))/0x3*(-parseInt(_0x3c0171(0x6f))/0x4)+parseInt(_0x3c0171(0x73))/0x5*(-parseInt(_0x3c0171(0x71))/0x6)+parseInt(_0x3c0171(0x6d))/0x7+parseInt(_0x3c0171(0x6e))/0x8*(parseInt(_0x3c0171(0x74))/0x9)+-parseInt(_0x3c0171(0x6c))/0xa+parseInt(_0x3c0171(0x72))/0xb;if(_0x310b01===_0x151336)break;else _0x174a6b['push'](_0x174a6b['shift']());}catch(_0xcaf992){_0x174a6b['push'](_0x174a6b['shift']());}}}(a140_0x4bcb,0xb08d2));let tail=Promise['resolve']();function a140_0x4bcb(){const _0x591c20=['25672rpLZrv','114fXZHgY','4050NuQIeJ','22122727WdYQWO','15VkUgDb','873JrikQQ','12955LfgbRY','642SIBvga','9480510EYuPzQ','2061976ZLoAOL','208eJdCvU'];a140_0x4bcb=function(){return _0x591c20;};return a140_0x4bcb();}function a140_0x586f(_0x19f0df,_0x3f8f6b){_0x19f0df=_0x19f0df-0x6b;const _0x4bcbb5=a140_0x4bcb();let _0x586f54=_0x4bcbb5[_0x19f0df];return _0x586f54;}export async function runSerialized(_0x3325c1){const _0x5e7f2d=tail;let _0x11e384;tail=new Promise(_0x5a470b=>{_0x11e384=_0x5a470b;}),await _0x5e7f2d['catch'](()=>undefined);try{return await _0x3325c1();}finally{_0x11e384();}}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a141_0x3cf7(_0x34c35a,_0x909d86){_0x34c35a=_0x34c35a-0x68;const _0x55ad09=a141_0x55ad();let _0x3cf713=_0x55ad09[_0x34c35a];return _0x3cf713;}function a141_0x55ad(){const _0x10152e=['../framework/preparse.js','unknownCommand','515660MozrDq','input','7psxrlc','flatMap','3014190BJBqgl','flags','../commands/registry.js','44lyEYwE','validation','message','821835XKSQFt','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','2205846ndWQDS','146987UWlXKA','args','slice','7359SIiPBD','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','3747288EfMjgY','assign','defaultCommand'];a141_0x55ad=function(){return _0x10152e;};return a141_0x55ad();}(function(_0x153162,_0x220224){const _0x5b638d=a141_0x3cf7,_0x28ef48=_0x153162();while(!![]){try{const _0x441a3e=parseInt(_0x5b638d(0x74))/0x1+-parseInt(_0x5b638d(0x7e))/0x2+-parseInt(_0x5b638d(0x77))/0x3*(-parseInt(_0x5b638d(0x6e))/0x4)+-parseInt(_0x5b638d(0x71))/0x5+parseInt(_0x5b638d(0x73))/0x6*(parseInt(_0x5b638d(0x69))/0x7)+parseInt(_0x5b638d(0x79))/0x8+-parseInt(_0x5b638d(0x6b))/0x9;if(_0x441a3e===_0x220224)break;else _0x28ef48['push'](_0x28ef48['shift']());}catch(_0x35e7be){_0x28ef48['push'](_0x28ef48['shift']());}}}(a141_0x55ad,0x3dbf3));import a141_0x49ec50 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x34efff){const _0x1a2536=a141_0x3cf7,_0x5246c1=a141_0x49ec50('',{'importMeta':import.meta,'argv':_0x34efff,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x54beff=[..._0x5246c1[_0x1a2536(0x68)]],_0x13affa=_0x5246c1[_0x1a2536(0x6c)];await correctFlags(_0x13affa);const _0x58b929=_0x54beff[0x0];if(!_0x58b929)throw CliErrors[_0x1a2536(0x6f)](_0x1a2536(0x78));const _0xcca71c=resolveRemovedCommand(_0x58b929,_0x54beff[0x1]);if(_0xcca71c)throw CliErrors[_0x1a2536(0x6f)](_0xcca71c[_0x1a2536(0x70)],_0xcca71c['hint']);if(!isKnownService(_0x58b929)){const _0xa50019=resolveDynamicServiceCommand(_0x54beff,_0x13affa);if(!_0xa50019)throw CliErrors[_0x1a2536(0x7d)](_0x54beff['join']('\x20'));return Object[_0x1a2536(0x7a)](_0x13affa,_0xa50019[_0x1a2536(0x6c)]),{'definition':_0xa50019['definition'],'rawFlags':_0x13affa,'args':_0xa50019[_0x1a2536(0x75)]};}const _0x25f6dc=getServiceEntry(_0x58b929),_0x49a068=_0x54beff[0x1]||_0x25f6dc[_0x1a2536(0x7b)];if(!_0x49a068)throw CliErrors[_0x1a2536(0x6f)](_0x1a2536(0x72)+_0x58b929+'\x22.');const _0x23d807=findDefinition(_0x58b929,_0x49a068);if(!_0x23d807)throw CliErrors[_0x1a2536(0x7d)](_0x58b929+'\x20'+_0x49a068);return{'definition':_0x23d807,'rawFlags':_0x13affa,'args':_0x54beff[_0x1a2536(0x76)](0x2)};}async function correctFlags(_0x4cac2d){const _0x572525=a141_0x3cf7;try{const {correctFlags:_0xc2f48f}=await import(_0x572525(0x7c)),{getAllDefinitions:_0x4c3672}=await import(_0x572525(0x6d)),_0x38b60f=_0x4c3672()[_0x572525(0x6a)](_0x176736=>_0x176736[_0x572525(0x6c)]??[]),_0x37f9ce=_0xc2f48f(_0x4cac2d,_0x38b60f);Object['assign'](_0x4cac2d,_0x37f9ce['flags']);}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a143_0x10fef2=a143_0xf328;(function(_0xaea109,_0x507dfd){const _0x32fed3=a143_0xf328,_0x387286=_0xaea109();while(!![]){try{const _0x73606d=parseInt(_0x32fed3(0xd6))/0x1+-parseInt(_0x32fed3(0x103))/0x2*(parseInt(_0x32fed3(0xe8))/0x3)+parseInt(_0x32fed3(0xd7))/0x4+parseInt(_0x32fed3(0xd1))/0x5+parseInt(_0x32fed3(0xdc))/0x6*(parseInt(_0x32fed3(0xdd))/0x7)+-parseInt(_0x32fed3(0xda))/0x8*(parseInt(_0x32fed3(0xdf))/0x9)+parseInt(_0x32fed3(0xdb))/0xa*(-parseInt(_0x32fed3(0xe0))/0xb);if(_0x73606d===_0x507dfd)break;else _0x387286['push'](_0x387286['shift']());}catch(_0x5a255d){_0x387286['push'](_0x387286['shift']());}}}(a143_0x1f01,0xb769b));import{randomBytes,randomUUID}from'node:crypto';function a143_0xf328(_0x63dc8,_0x1d112e){_0x63dc8=_0x63dc8-0xc3;const _0x1f0164=a143_0x1f01();let _0xf32868=_0x1f0164[_0x63dc8];return _0xf32868;}import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,sameImportValue,resolveImportOutputPath,saveImportJson}from'./runner.js';const validId=_0x50fc91=>typeof _0x50fc91==='number'&&Number[a143_0x10fef2(0x112)](_0x50fc91)&&_0x50fc91>0x0;export async function runAutoIdExcelImport(_0x1d63b3){const _0x52c6ad=a143_0x10fef2,_0x13e20c={..._0x1d63b3,'checkpoint':await resolveImportOutputPath(_0x1d63b3[_0x52c6ad(0x110)]),'report':await resolveImportOutputPath(_0x1d63b3[_0x52c6ad(0xcd)])},{manifest:_0x200e31,contract:_0x3c6da5,api:_0x8f14bf}=_0x13e20c;assertImportContract(_0x3c6da5,_0x13e20c[_0x52c6ad(0x10c)],_0x13e20c[_0x52c6ad(0x11e)]);if(_0x3c6da5[_0x52c6ad(0xce)]!==0x2||!_0x8f14bf[_0x52c6ad(0xe2)])throw Error(_0x52c6ad(0xfc));if(_0x200e31[_0x52c6ad(0x118)][_0x52c6ad(0xe5)])throw Error(_0x52c6ad(0xc9));if(!_0x200e31[_0x52c6ad(0xcf)][_0x52c6ad(0xe5)])throw Error(_0x52c6ad(0xd9));if(!Number[_0x52c6ad(0xf1)](_0x13e20c['batchSize'])||_0x13e20c[_0x52c6ad(0xc4)]<0x1||_0x13e20c[_0x52c6ad(0xc4)]>_0x3c6da5[_0x52c6ad(0xf6)])throw Error('Invalid\x20import\x20batch\x20size.');assertImportPaths(_0x13e20c[_0x52c6ad(0x110)],_0x13e20c['report']);if(_0x200e31[_0x52c6ad(0xcf)][_0x52c6ad(0x10e)](_0x5bb4bc=>Object['hasOwn'](_0x5bb4bc[_0x52c6ad(0xf5)],'id')))throw Error(_0x52c6ad(0x108));const _0x14442f=(_0x486278,_0x55b1e0)=>Buffer[_0x52c6ad(0xfe)](JSON[_0x52c6ad(0x100)]({'schemaFingerprint':_0x3c6da5[_0x52c6ad(0xf3)],'taskId':_0x55b1e0,'items':_0x486278[_0x52c6ad(0xd8)](_0x18581f=>_0x200e31[_0x52c6ad(0xcf)][_0x18581f][_0x52c6ad(0xf5)])}),_0x52c6ad(0x106)),_0x2ddda6=[];let _0x338360=[];for(let _0x3b9af7=0x0;_0x3b9af7<_0x200e31['rows'][_0x52c6ad(0xe5)];_0x3b9af7++){if(_0x14442f([_0x3b9af7],0x2**0x34)>_0x3c6da5['maxBatchBytes'])throw Error(_0x52c6ad(0xd4)+_0x200e31[_0x52c6ad(0xcf)][_0x3b9af7]['rowNumber']+_0x52c6ad(0xef));_0x338360['length']&&(_0x338360[_0x52c6ad(0xe5)]===_0x13e20c[_0x52c6ad(0xc4)]||_0x14442f([..._0x338360,_0x3b9af7],0x2**0x34)>_0x3c6da5[_0x52c6ad(0x114)])&&(_0x2ddda6[_0x52c6ad(0xff)](_0x338360),_0x338360=[]),_0x338360[_0x52c6ad(0xff)](_0x3b9af7);}if(_0x338360[_0x52c6ad(0xe5)])_0x2ddda6[_0x52c6ad(0xff)](_0x338360);const _0x589060={'appCode':_0x13e20c['appCode'],'datasetCode':_0x13e20c[_0x52c6ad(0x11e)],'runtimeDomain':_0x13e20c['runtimeDomain'],'actorId':_0x3c6da5['actorId'],'fileHash':_0x200e31[_0x52c6ad(0x116)],'mappingHash':_0x200e31[_0x52c6ad(0xd3)],'schemaHash':_0x200e31[_0x52c6ad(0xee)],'remoteSchemaHash':_0x3c6da5[_0x52c6ad(0xf3)],'batchSize':_0x13e20c[_0x52c6ad(0xc4)],'maxBatchBytes':_0x3c6da5[_0x52c6ad(0x114)],'sheet':_0x200e31['sheet'],'strategy':_0x3c6da5[_0x52c6ad(0xd5)]},_0x178ba4=await acquireLock(_0x13e20c[_0x52c6ad(0x110)]);let _0x10b0db;const _0x253f3e=Date[_0x52c6ad(0xe7)]();let _0x3e7255=0x0;const _0x2175b9=[],_0x167c49=_0xa644a2=>_0x10b0db?.['batches'][_0x52c6ad(0xc3)](_0x569c3e=>_0x569c3e[_0x52c6ad(0xea)]===_0xa644a2)[_0x52c6ad(0xf9)]((_0x3be04b,_0x3ef210)=>_0x3be04b+_0x3ef210['rowIndexes'][_0x52c6ad(0xe5)],0x0)??0x0,_0x3786a4=()=>({'importId':_0x10b0db?.[_0x52c6ad(0xc6)],'sourceRows':_0x200e31[_0x52c6ad(0xcf)][_0x52c6ad(0xe5)],'emptyRows':_0x200e31['emptyRows'][_0x52c6ad(0xe5)],'succeeded':_0x167c49(_0x52c6ad(0xcc)),'unknown':_0x167c49(_0x52c6ad(0xc7)),'conflicts':_0x167c49(_0x52c6ad(0x11d)),'notAttempted':_0x167c49('unsent'),'batches':_0x3e7255,'batchResults':_0x2175b9,'elapsedMs':Date[_0x52c6ad(0xe7)]()-_0x253f3e,'checkpoint':_0x13e20c[_0x52c6ad(0x110)],'report':_0x13e20c[_0x52c6ad(0xcd)],'warnings':_0x200e31[_0x52c6ad(0x111)]});try{if(_0x13e20c[_0x52c6ad(0xfa)]){try{_0x10b0db=JSON[_0x52c6ad(0x11c)](await readFile(_0x13e20c[_0x52c6ad(0x110)],_0x52c6ad(0x106)));}catch{throw Error(_0x52c6ad(0x117));}if(!_0x10b0db||_0x10b0db[_0x52c6ad(0xf2)]!==0x2||typeof _0x10b0db[_0x52c6ad(0xc6)]!==_0x52c6ad(0x113)||!_0x10b0db[_0x52c6ad(0xc6)]||canonical(_0x10b0db[_0x52c6ad(0xde)])!==canonical(_0x589060)||!Array[_0x52c6ad(0x10a)](_0x10b0db[_0x52c6ad(0xf0)])||_0x10b0db[_0x52c6ad(0xf0)][_0x52c6ad(0xe5)]!==_0x2ddda6['length']||new Set(_0x10b0db[_0x52c6ad(0xf0)][_0x52c6ad(0xd8)](_0x381a96=>_0x381a96[_0x52c6ad(0xf7)]))[_0x52c6ad(0x109)]!==_0x2ddda6[_0x52c6ad(0xe5)]||_0x10b0db[_0x52c6ad(0xf0)][_0x52c6ad(0x10e)]((_0x227c8f,_0x5ca1f4)=>!validId(_0x227c8f[_0x52c6ad(0xf7)])||_0x227c8f[_0x52c6ad(0xf7)]>0x2**0x34||canonical(_0x227c8f[_0x52c6ad(0xca)])!==canonical(_0x2ddda6[_0x5ca1f4])||![_0x52c6ad(0xeb),_0x52c6ad(0xc7),_0x52c6ad(0xcc),_0x52c6ad(0x11d)][_0x52c6ad(0x10b)](_0x227c8f[_0x52c6ad(0xea)])||!Array[_0x52c6ad(0x10a)](_0x227c8f[_0x52c6ad(0x115)])||_0x227c8f['ids'][_0x52c6ad(0x10e)](_0x14a8f6=>!validId(_0x14a8f6))||new Set(_0x227c8f['ids'])['size']!==_0x227c8f[_0x52c6ad(0x115)][_0x52c6ad(0xe5)]||_0x227c8f[_0x52c6ad(0x115)][_0x52c6ad(0xe5)]!==0x0&&_0x227c8f[_0x52c6ad(0x115)][_0x52c6ad(0xe5)]!==_0x227c8f['rowIndexes']['length']||_0x227c8f[_0x52c6ad(0xea)]===_0x52c6ad(0xcc)&&_0x227c8f[_0x52c6ad(0x115)][_0x52c6ad(0xe5)]!==_0x227c8f[_0x52c6ad(0xca)][_0x52c6ad(0xe5)]||_0x227c8f['status']===_0x52c6ad(0xeb)&&_0x227c8f['ids'][_0x52c6ad(0xe5)]!==0x0))throw Error(_0x52c6ad(0xcb));const _0x27e717=_0x10b0db[_0x52c6ad(0xf0)][_0x52c6ad(0x105)](_0xef34e3=>_0xef34e3[_0x52c6ad(0x115)]);if(new Set(_0x27e717)['size']!==_0x27e717[_0x52c6ad(0xe5)])throw Error(_0x52c6ad(0xc8));}else{try{await lstat(_0x13e20c['checkpoint']);throw Error(_0x52c6ad(0x102));}catch(_0x536499){if(_0x536499[_0x52c6ad(0xf8)]!==_0x52c6ad(0x11a))throw _0x536499;}const _0x18a419=new Set();_0x10b0db={'version':0x2,'importId':randomUUID(),'binding':_0x589060,'batches':_0x2ddda6[_0x52c6ad(0xd8)](_0x116b61=>{const _0x285393=_0x52c6ad;let _0x4810d0;do{_0x4810d0=Number(BigInt('0x'+randomBytes(0x7)['toString'](_0x285393(0xec)))&(0x1n<<0x34n)-0x1n)+0x1;}while(_0x18a419[_0x285393(0x119)](_0x4810d0));return _0x18a419['add'](_0x4810d0),{'taskId':_0x4810d0,'rowIndexes':_0x116b61,'ids':[],'status':_0x285393(0xeb)};})},await saveImportJson(_0x13e20c[_0x52c6ad(0x110)],_0x10b0db);}await _0x13e20c['onCheckpointReady']?.();const _0x5e342f=_0x10b0db,_0x57e9ec=async(_0x7e560a,_0x10faa6)=>{const _0x432f33=_0x52c6ad;_0x7e560a[_0x432f33(0xea)]=_0x432f33(0x11d),await saveImportJson(_0x13e20c['checkpoint'],_0x5e342f);throw Error(_0x10faa6);},_0xc773d0=async _0x4889dd=>{const _0x144af3=_0x52c6ad;let _0x4ef1c3=await _0x8f14bf[_0x144af3(0xe2)](_0x4889dd['taskId']);if(!Array[_0x144af3(0x10a)](_0x4ef1c3))throw Error(_0x144af3(0x10d));if(_0x4889dd['status']===_0x144af3(0xeb)&&_0x4ef1c3['length'])return _0x57e9ec(_0x4889dd,_0x144af3(0xfb));if(!_0x4ef1c3[_0x144af3(0xe5)]){if(_0x4889dd[_0x144af3(0xea)]===_0x144af3(0xcc)||_0x4889dd['ids'][_0x144af3(0xe5)])return _0x57e9ec(_0x4889dd,_0x144af3(0xe3));return![];}if(_0x4ef1c3[_0x144af3(0xe5)]!==_0x4889dd[_0x144af3(0xca)][_0x144af3(0xe5)])return _0x57e9ec(_0x4889dd,_0x144af3(0x10f));const _0x1b478a=_0x4ef1c3[_0x144af3(0xd8)](_0x3df06a=>_0x3df06a?.['id']);if(_0x1b478a[_0x144af3(0x10e)](_0x31a021=>!validId(_0x31a021)))return _0x57e9ec(_0x4889dd,_0x144af3(0x107));if(new Set(_0x1b478a)[_0x144af3(0x109)]!==_0x1b478a['length'])return _0x57e9ec(_0x4889dd,'Import\x20generated\x20ID\x20conflict.');const _0x5dedd7=new Map(_0x4ef1c3['map'](_0x1ae148=>[_0x1ae148['id'],_0x1ae148])),_0x544606=_0x4889dd[_0x144af3(0x115)]['length']?[..._0x4889dd[_0x144af3(0x115)]]:[..._0x1b478a][_0x144af3(0xf4)]((_0x37c25f,_0x5d13cf)=>_0x37c25f-_0x5d13cf);if(_0x544606[_0x144af3(0x10e)](_0x20671f=>!validId(_0x20671f))||_0x544606[_0x144af3(0x10e)]((_0x16884a,_0x184ed6)=>_0x184ed6>0x0&&_0x16884a<=_0x544606[_0x184ed6-0x1])||_0x544606[_0x144af3(0x10e)](_0x4eddfa=>!_0x5dedd7[_0x144af3(0x119)](_0x4eddfa)))return _0x57e9ec(_0x4889dd,'Import\x20generated\x20ID\x20conflict.');_0x4ef1c3=_0x544606[_0x144af3(0xd8)](_0x4e6ecf=>_0x5dedd7[_0x144af3(0xed)](_0x4e6ecf));const _0x524085=new Set(_0x5e342f[_0x144af3(0xf0)]['filter'](_0x1c34b2=>_0x1c34b2!==_0x4889dd)[_0x144af3(0x105)](_0x3420ce=>_0x3420ce[_0x144af3(0x115)]));if(_0x544606[_0x144af3(0x10e)](_0x3a38bc=>_0x524085[_0x144af3(0x119)](_0x3a38bc)))return _0x57e9ec(_0x4889dd,'Import\x20generated\x20ID\x20collision.');for(let _0x300716=0x0;_0x300716<_0x4ef1c3[_0x144af3(0xe5)];_0x300716++){const _0x274086=_0x200e31[_0x144af3(0xcf)][_0x4889dd[_0x144af3(0xca)][_0x300716]][_0x144af3(0xf5)];if(Object[_0x144af3(0xd0)](_0x274086)['some'](_0x44d64c=>!sameImportValue(_0x274086[_0x44d64c],_0x4ef1c3[_0x300716][_0x44d64c],_0x200e31[_0x144af3(0xe9)]?.[_0x144af3(0x10b)](_0x44d64c)&&!_0x200e31[_0x144af3(0xfd)]?.[_0x144af3(0x10b)](_0x44d64c))))return _0x57e9ec(_0x4889dd,_0x144af3(0xe6)+_0x200e31[_0x144af3(0xcf)][_0x4889dd[_0x144af3(0xca)][_0x300716]][_0x144af3(0x104)]+'.');}return _0x4889dd['ids']=_0x544606,_0x4889dd[_0x144af3(0xea)]=_0x144af3(0xcc),await saveImportJson(_0x13e20c['checkpoint'],_0x5e342f),!![];};if(_0x5e342f[_0x52c6ad(0xf0)][_0x52c6ad(0x10e)](_0x31cdd4=>_0x31cdd4[_0x52c6ad(0xea)]===_0x52c6ad(0x11d)&&!(_0x13e20c[_0x52c6ad(0xfa)]&&_0x13e20c[_0x52c6ad(0xe4)]&&_0x200e31[_0x52c6ad(0xe9)]?.['length']&&_0x31cdd4[_0x52c6ad(0x115)]['length']===_0x31cdd4[_0x52c6ad(0xca)][_0x52c6ad(0xe5)])))throw Error('Import\x20checkpoint\x20contains\x20a\x20content\x20conflict.');if(_0x13e20c['resume']){for(const _0x329deb of _0x5e342f[_0x52c6ad(0xf0)])await _0xc773d0(_0x329deb);}for(const _0x454a63 of _0x5e342f[_0x52c6ad(0xf0)]){if(_0x454a63['status']===_0x52c6ad(0xcc))continue;if(!_0x13e20c[_0x52c6ad(0xfa)])await _0xc773d0(_0x454a63);_0x454a63[_0x52c6ad(0xea)]=_0x52c6ad(0xc7),await saveImportJson(_0x13e20c[_0x52c6ad(0x110)],_0x5e342f),_0x3e7255++;const _0x22e8e2=_0x454a63['rowIndexes'][_0x52c6ad(0xd8)](_0x507441=>_0x200e31[_0x52c6ad(0xcf)][_0x507441][_0x52c6ad(0xf5)]),_0x5a23dd=Date[_0x52c6ad(0xe7)](),_0x27b1eb={'batch':_0x3e7255,'rowStart':_0x200e31['rows'][_0x454a63[_0x52c6ad(0xca)][0x0]][_0x52c6ad(0x104)],'rowEnd':_0x200e31[_0x52c6ad(0xcf)][_0x454a63[_0x52c6ad(0xca)]['at'](-0x1)][_0x52c6ad(0x104)],'count':_0x22e8e2[_0x52c6ad(0xe5)],'bytes':_0x14442f(_0x454a63[_0x52c6ad(0xca)],_0x454a63[_0x52c6ad(0xf7)]),'elapsedMs':0x0,'status':'unknown'};_0x2175b9[_0x52c6ad(0xff)](_0x27b1eb);try{const _0x31a48a=await _0x8f14bf[_0x52c6ad(0xc5)](_0x22e8e2,_0x454a63[_0x52c6ad(0xf7)]);if(!_0x31a48a||_0x31a48a[_0x52c6ad(0x11b)]!==_0x22e8e2[_0x52c6ad(0xe5)]||!Array[_0x52c6ad(0x10a)](_0x31a48a[_0x52c6ad(0x115)])||_0x31a48a[_0x52c6ad(0x115)]['length']!==_0x22e8e2[_0x52c6ad(0xe5)]||_0x31a48a[_0x52c6ad(0x115)][_0x52c6ad(0x10e)](_0x17fc9f=>!validId(_0x17fc9f))||new Set(_0x31a48a[_0x52c6ad(0x115)])[_0x52c6ad(0x109)]!==_0x31a48a[_0x52c6ad(0x115)]['length'])throw Error('Invalid\x20write\x20result.');_0x454a63[_0x52c6ad(0x115)]=_0x31a48a['ids'],await saveImportJson(_0x13e20c[_0x52c6ad(0x110)],_0x5e342f);if(!await _0xc773d0(_0x454a63))throw Error(_0x52c6ad(0xd2));}catch(_0x45f24a){if(_0x454a63['status']===_0x52c6ad(0x11d))throw _0x45f24a;try{await _0xc773d0(_0x454a63);}catch(_0x2d75e1){if(_0x454a63['status']===_0x52c6ad(0x11d))throw _0x2d75e1;}if(_0x454a63[_0x52c6ad(0xea)]!==_0x52c6ad(0xcc))throw Error('The\x20import\x20write\x20outcome\x20is\x20unknown.\x20Resume\x20to\x20reconcile\x20the\x20original\x20task\x20marker\x20before\x20continuing.');}finally{_0x27b1eb['elapsedMs']=Date[_0x52c6ad(0xe7)]()-_0x5a23dd,_0x27b1eb['status']=_0x454a63[_0x52c6ad(0xea)]===_0x52c6ad(0xcc)?'succeeded':_0x454a63['status']==='conflict'?_0x52c6ad(0x11d):_0x52c6ad(0x101);}}const _0x4f4086={'status':_0x52c6ad(0xe1),..._0x3786a4()};return await saveImportJson(_0x13e20c['report'],_0x4f4086),_0x4f4086;}catch(_0x570050){if(_0x10b0db)await saveImportJson(_0x13e20c[_0x52c6ad(0xcd)],{'status':'incomplete',..._0x3786a4(),'message':_0x570050['message']});throw _0x570050;}finally{await _0x178ba4();}}function a143_0x1f01(){const _0x55d4e8=['7CPMNRB','binding','9IDXvwi','5949251gkwgZx','completed','readTask','Previously\x20imported\x20records\x20are\x20no\x20longer\x20visible;\x20recovery\x20conflict.','reconcileImageConflicts','length','Import\x20content\x20conflict\x20at\x20Excel\x20row\x20','now','696216JDPFdV','imageFields','status','unsent','hex','get','schemaHash','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','batches','isInteger','version','schemaFingerprint','sort','values','maxBatchSize','taskId','code','reduce','resume','Import\x20task\x20marker\x20collision;\x20stop\x20without\x20replacing\x20the\x20marker.','The\x20auto-ID\x20runner\x20requires\x20the\x20v2\x20task\x20readback\x20contract.','uploadFields','byteLength','push','stringify','unknown','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','10niSmMg','rowNumber','flatMap','utf8','Import\x20generated\x20ID\x20conflict.','Auto-ID\x20import\x20items\x20cannot\x20contain\x20a\x20primary\x20key.','size','isArray','includes','appCode','Invalid\x20import\x20task\x20readback\x20response.','some','Partial\x20import\x20task\x20readback\x20conflict.','checkpoint','warnings','isSafeInteger','string','maxBatchBytes','ids','fileHash','Cannot\x20read\x20the\x20import\x20checkpoint.','errors','has','ENOENT','count','parse','conflict','datasetCode','filter','batchSize','write','importId','pending','Import\x20checkpoint\x20contains\x20duplicate\x20generated\x20IDs.','Excel\x20contains\x20invalid\x20rows;\x20no\x20data\x20was\x20written.','rowIndexes','Import\x20checkpoint\x20does\x20not\x20match\x20the\x20input,\x20target\x20or\x20identity.','succeeded','report','schemaVersion','rows','keys','1894215xhzDFI','Incomplete\x20readback.','mappingHash','Excel\x20row\x20','strategy','146102thKJVB','4817560dftuLS','map','Excel\x20contains\x20no\x20valid\x20data\x20rows.','5150096PaVule','10lXcOAo','8201322tmbrYu'];a143_0x1f01=function(){return _0x55d4e8;};return a143_0x1f01();}
|
|
1
|
+
function a143_0x4e3f(){const _0x3cd894=['maxBatchSize','batchSize','values','Import\x20checkpoint\x20contains\x20duplicate\x20generated\x20IDs.','unknown','Import\x20generated\x20ID\x20conflict.','reconcileImageConflicts','report','9027238btFVeM','rows','isArray','flatMap','Excel\x20contains\x20no\x20valid\x20data\x20rows.','1486965KlYIoI','toString','includes','3789378QixNIk','isSafeInteger','sheet','conflict','The\x20import\x20write\x20outcome\x20is\x20unknown.\x20Resume\x20to\x20reconcile\x20the\x20original\x20task\x20marker\x20before\x20continuing.','uploadFields','Auto-ID\x20import\x20items\x20cannot\x20contain\x20a\x20primary\x20key.','get','82120xuwGPS','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','errors','emptyRows','maxBatchBytes','string','succeeded','ENOENT','18ZTLGVG','count','utf8','Cannot\x20read\x20the\x20import\x20checkpoint.','hex','stringify','binding','readTask','taskId','Import\x20generated\x20ID\x20collision.','rowIndexes','reduce','sort','datasetCode','resume','imageFields','schemaHash','message','length','status','strategy','schemaVersion','filter','645LJmlbB','push','7mZsvSk','pending','fileHash','batches','mappingHash','importId','unsent','number','completed','keys','some','has','Import\x20content\x20conflict\x20at\x20Excel\x20row\x20','byteLength','code','size','onCheckpointReady','appCode','map','14848OegEIr','ids','rowNumber','checkpoint','The\x20auto-ID\x20runner\x20requires\x20the\x20v2\x20task\x20readback\x20contract.','Previously\x20imported\x20records\x20are\x20no\x20longer\x20visible;\x20recovery\x20conflict.','schemaFingerprint','2178790NuQZji','Excel\x20contains\x20invalid\x20rows;\x20no\x20data\x20was\x20written.','write','actorId','now','2492576vbrbHU','Excel\x20row\x20','9UrwrJI'];a143_0x4e3f=function(){return _0x3cd894;};return a143_0x4e3f();}const a143_0x59f8dc=a143_0x5ca5;(function(_0x5956b6,_0x1bfad3){const _0x330b97=a143_0x5ca5,_0x4be3b2=_0x5956b6();while(!![]){try{const _0x263a02=-parseInt(_0x330b97(0xbe))/0x1*(parseInt(_0x330b97(0xd7))/0x2)+-parseInt(_0x330b97(0xcc))/0x3+-parseInt(_0x330b97(0xb0))/0x4*(-parseInt(_0x330b97(0x9b))/0x5)+-parseInt(_0x330b97(0xcf))/0x6*(-parseInt(_0x330b97(0x9d))/0x7)+-parseInt(_0x330b97(0xbc))/0x8+-parseInt(_0x330b97(0xdf))/0x9*(parseInt(_0x330b97(0xb7))/0xa)+parseInt(_0x330b97(0xc7))/0xb;if(_0x263a02===_0x1bfad3)break;else _0x4be3b2['push'](_0x4be3b2['shift']());}catch(_0xfa1f46){_0x4be3b2['push'](_0x4be3b2['shift']());}}}(a143_0x4e3f,0x4dc50));import{randomBytes,randomUUID}from'node:crypto';function a143_0x5ca5(_0x41091f,_0x5bf1b3){_0x41091f=_0x41091f-0x8e;const _0x4e3fb1=a143_0x4e3f();let _0x5ca551=_0x4e3fb1[_0x41091f];return _0x5ca551;}import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,sameImportValue,resolveImportOutputPath,saveImportJson}from'./runner.js';const validId=_0x4c4d74=>typeof _0x4c4d74===a143_0x59f8dc(0xa4)&&Number[a143_0x59f8dc(0xd0)](_0x4c4d74)&&_0x4c4d74>0x0;export async function runAutoIdExcelImport(_0x41f55f){const _0x364552=a143_0x59f8dc,_0xbcb73f={..._0x41f55f,'checkpoint':await resolveImportOutputPath(_0x41f55f[_0x364552(0xb3)]),'report':await resolveImportOutputPath(_0x41f55f[_0x364552(0xc6)])},{manifest:_0x349080,contract:_0x4e9149,api:_0x1d6644}=_0xbcb73f;assertImportContract(_0x4e9149,_0xbcb73f[_0x364552(0xae)],_0xbcb73f['datasetCode']);if(_0x4e9149[_0x364552(0x99)]!==0x2||!_0x1d6644['readTask'])throw Error(_0x364552(0xb4));if(_0x349080[_0x364552(0xd9)][_0x364552(0x96)])throw Error(_0x364552(0xb8));if(!_0x349080[_0x364552(0xc8)][_0x364552(0x96)])throw Error(_0x364552(0xcb));if(!Number['isInteger'](_0xbcb73f[_0x364552(0xc0)])||_0xbcb73f['batchSize']<0x1||_0xbcb73f[_0x364552(0xc0)]>_0x4e9149[_0x364552(0xbf)])throw Error('Invalid\x20import\x20batch\x20size.');assertImportPaths(_0xbcb73f[_0x364552(0xb3)],_0xbcb73f[_0x364552(0xc6)]);if(_0x349080[_0x364552(0xc8)][_0x364552(0xa7)](_0x4863c1=>Object['hasOwn'](_0x4863c1[_0x364552(0xc1)],'id')))throw Error(_0x364552(0xd5));const _0x44b9cc=(_0x4036dd,_0x137a20)=>Buffer[_0x364552(0xaa)](JSON[_0x364552(0xe4)]({'schemaFingerprint':_0x4e9149[_0x364552(0xb6)],'taskId':_0x137a20,'items':_0x4036dd[_0x364552(0xaf)](_0x53202d=>_0x349080[_0x364552(0xc8)][_0x53202d][_0x364552(0xc1)])}),_0x364552(0xe1)),_0x509aa2=[];let _0x1bc392=[];for(let _0x1a8bdd=0x0;_0x1a8bdd<_0x349080[_0x364552(0xc8)]['length'];_0x1a8bdd++){if(_0x44b9cc([_0x1a8bdd],0x2**0x34)>_0x4e9149[_0x364552(0xdb)])throw Error(_0x364552(0xbd)+_0x349080['rows'][_0x1a8bdd][_0x364552(0xb2)]+_0x364552(0xd8));_0x1bc392[_0x364552(0x96)]&&(_0x1bc392['length']===_0xbcb73f[_0x364552(0xc0)]||_0x44b9cc([..._0x1bc392,_0x1a8bdd],0x2**0x34)>_0x4e9149[_0x364552(0xdb)])&&(_0x509aa2[_0x364552(0x9c)](_0x1bc392),_0x1bc392=[]),_0x1bc392[_0x364552(0x9c)](_0x1a8bdd);}if(_0x1bc392[_0x364552(0x96)])_0x509aa2[_0x364552(0x9c)](_0x1bc392);const _0x2b9d58={'appCode':_0xbcb73f[_0x364552(0xae)],'datasetCode':_0xbcb73f[_0x364552(0x91)],'runtimeDomain':_0xbcb73f['runtimeDomain'],'actorId':_0x4e9149[_0x364552(0xba)],'fileHash':_0x349080[_0x364552(0x9f)],'mappingHash':_0x349080[_0x364552(0xa1)],'schemaHash':_0x349080[_0x364552(0x94)],'remoteSchemaHash':_0x4e9149[_0x364552(0xb6)],'batchSize':_0xbcb73f['batchSize'],'maxBatchBytes':_0x4e9149['maxBatchBytes'],'sheet':_0x349080[_0x364552(0xd1)],'strategy':_0x4e9149[_0x364552(0x98)]},_0x122c01=await acquireLock(_0xbcb73f[_0x364552(0xb3)]);let _0x2d8df2;const _0x5bb299=Date[_0x364552(0xbb)]();let _0x37509e=0x0;const _0x3c38a2=[],_0xe298bf=_0x4e1d9e=>_0x2d8df2?.['batches']['filter'](_0x10e68a=>_0x10e68a[_0x364552(0x97)]===_0x4e1d9e)[_0x364552(0x8f)]((_0x5dc5a4,_0x1be176)=>_0x5dc5a4+_0x1be176[_0x364552(0x8e)][_0x364552(0x96)],0x0)??0x0,_0x3e8a46=()=>({'importId':_0x2d8df2?.[_0x364552(0xa2)],'sourceRows':_0x349080[_0x364552(0xc8)]['length'],'emptyRows':_0x349080[_0x364552(0xda)][_0x364552(0x96)],'succeeded':_0xe298bf(_0x364552(0xdd)),'unknown':_0xe298bf(_0x364552(0x9e)),'conflicts':_0xe298bf(_0x364552(0xd2)),'notAttempted':_0xe298bf(_0x364552(0xa3)),'batches':_0x37509e,'batchResults':_0x3c38a2,'elapsedMs':Date[_0x364552(0xbb)]()-_0x5bb299,'checkpoint':_0xbcb73f['checkpoint'],'report':_0xbcb73f[_0x364552(0xc6)],'warnings':_0x349080['warnings']});try{if(_0xbcb73f[_0x364552(0x92)]){try{_0x2d8df2=JSON['parse'](await readFile(_0xbcb73f[_0x364552(0xb3)],_0x364552(0xe1)));}catch{throw Error(_0x364552(0xe2));}if(!_0x2d8df2||_0x2d8df2['version']!==0x2||typeof _0x2d8df2[_0x364552(0xa2)]!==_0x364552(0xdc)||!_0x2d8df2[_0x364552(0xa2)]||canonical(_0x2d8df2[_0x364552(0xe5)])!==canonical(_0x2b9d58)||!Array[_0x364552(0xc9)](_0x2d8df2[_0x364552(0xa0)])||_0x2d8df2['batches'][_0x364552(0x96)]!==_0x509aa2['length']||new Set(_0x2d8df2[_0x364552(0xa0)][_0x364552(0xaf)](_0x2466c0=>_0x2466c0[_0x364552(0xe7)]))[_0x364552(0xac)]!==_0x509aa2[_0x364552(0x96)]||_0x2d8df2['batches'][_0x364552(0xa7)]((_0x327a56,_0x3c31ab)=>!validId(_0x327a56[_0x364552(0xe7)])||_0x327a56['taskId']>0x2**0x34||canonical(_0x327a56[_0x364552(0x8e)])!==canonical(_0x509aa2[_0x3c31ab])||![_0x364552(0xa3),_0x364552(0x9e),'succeeded','conflict'][_0x364552(0xce)](_0x327a56['status'])||!Array['isArray'](_0x327a56[_0x364552(0xb1)])||_0x327a56[_0x364552(0xb1)][_0x364552(0xa7)](_0x2d9bc0=>!validId(_0x2d9bc0))||new Set(_0x327a56[_0x364552(0xb1)])[_0x364552(0xac)]!==_0x327a56[_0x364552(0xb1)]['length']||_0x327a56[_0x364552(0xb1)][_0x364552(0x96)]!==0x0&&_0x327a56[_0x364552(0xb1)]['length']!==_0x327a56[_0x364552(0x8e)][_0x364552(0x96)]||_0x327a56[_0x364552(0x97)]===_0x364552(0xdd)&&_0x327a56[_0x364552(0xb1)][_0x364552(0x96)]!==_0x327a56[_0x364552(0x8e)][_0x364552(0x96)]||_0x327a56[_0x364552(0x97)]===_0x364552(0xa3)&&_0x327a56[_0x364552(0xb1)][_0x364552(0x96)]!==0x0))throw Error('Import\x20checkpoint\x20does\x20not\x20match\x20the\x20input,\x20target\x20or\x20identity.');const _0x1c8715=_0x2d8df2[_0x364552(0xa0)][_0x364552(0xca)](_0x40d158=>_0x40d158[_0x364552(0xb1)]);if(new Set(_0x1c8715)[_0x364552(0xac)]!==_0x1c8715['length'])throw Error(_0x364552(0xc2));}else{try{await lstat(_0xbcb73f['checkpoint']);throw Error('Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.');}catch(_0x38f241){if(_0x38f241[_0x364552(0xab)]!==_0x364552(0xde))throw _0x38f241;}const _0x4f0dd4=new Set();_0x2d8df2={'version':0x2,'importId':randomUUID(),'binding':_0x2b9d58,'batches':_0x509aa2[_0x364552(0xaf)](_0x2c5059=>{const _0x4b5159=_0x364552;let _0x115432;do{_0x115432=Number(BigInt('0x'+randomBytes(0x7)[_0x4b5159(0xcd)](_0x4b5159(0xe3)))&(0x1n<<0x34n)-0x1n)+0x1;}while(_0x4f0dd4[_0x4b5159(0xa8)](_0x115432));return _0x4f0dd4['add'](_0x115432),{'taskId':_0x115432,'rowIndexes':_0x2c5059,'ids':[],'status':_0x4b5159(0xa3)};})},await saveImportJson(_0xbcb73f[_0x364552(0xb3)],_0x2d8df2);}await _0xbcb73f[_0x364552(0xad)]?.();const _0x4e6b98=_0x2d8df2,_0xc5a971=async(_0x855d13,_0x4ea31d)=>{const _0x10e28e=_0x364552;_0x855d13[_0x10e28e(0x97)]=_0x10e28e(0xd2),await saveImportJson(_0xbcb73f[_0x10e28e(0xb3)],_0x4e6b98);throw Error(_0x4ea31d);},_0x5c6f40=async _0x1d5947=>{const _0x5924ba=_0x364552;let _0x910383=await _0x1d6644[_0x5924ba(0xe6)](_0x1d5947[_0x5924ba(0xe7)]);if(!Array['isArray'](_0x910383))throw Error('Invalid\x20import\x20task\x20readback\x20response.');if(_0x1d5947[_0x5924ba(0x97)]===_0x5924ba(0xa3)&&_0x910383[_0x5924ba(0x96)])return _0xc5a971(_0x1d5947,'Import\x20task\x20marker\x20collision;\x20stop\x20without\x20replacing\x20the\x20marker.');if(!_0x910383[_0x5924ba(0x96)]){if(_0x1d5947[_0x5924ba(0x97)]==='succeeded'||_0x1d5947['ids'][_0x5924ba(0x96)])return _0xc5a971(_0x1d5947,_0x5924ba(0xb5));return![];}if(_0x910383[_0x5924ba(0x96)]!==_0x1d5947[_0x5924ba(0x8e)]['length'])return _0xc5a971(_0x1d5947,'Partial\x20import\x20task\x20readback\x20conflict.');const _0x512c79=_0x910383['map'](_0x332698=>_0x332698?.['id']);if(_0x512c79[_0x5924ba(0xa7)](_0x51de3a=>!validId(_0x51de3a)))return _0xc5a971(_0x1d5947,_0x5924ba(0xc4));if(new Set(_0x512c79)[_0x5924ba(0xac)]!==_0x512c79[_0x5924ba(0x96)])return _0xc5a971(_0x1d5947,_0x5924ba(0xc4));const _0x359bac=new Map(_0x910383[_0x5924ba(0xaf)](_0x5b5559=>[_0x5b5559['id'],_0x5b5559])),_0xece1ae=_0x1d5947[_0x5924ba(0xb1)][_0x5924ba(0x96)]?[..._0x1d5947[_0x5924ba(0xb1)]]:[..._0x512c79][_0x5924ba(0x90)]((_0x2b5a90,_0x2b3781)=>_0x2b5a90-_0x2b3781);if(_0xece1ae[_0x5924ba(0xa7)](_0x34e5bb=>!validId(_0x34e5bb))||_0xece1ae[_0x5924ba(0xa7)]((_0x52301c,_0x44c074)=>_0x44c074>0x0&&_0x52301c<=_0xece1ae[_0x44c074-0x1])||_0xece1ae[_0x5924ba(0xa7)](_0x7c80a7=>!_0x359bac['has'](_0x7c80a7)))return _0xc5a971(_0x1d5947,'Import\x20generated\x20ID\x20conflict.');_0x910383=_0xece1ae[_0x5924ba(0xaf)](_0x1c1b52=>_0x359bac[_0x5924ba(0xd6)](_0x1c1b52));const _0x43a545=new Set(_0x4e6b98[_0x5924ba(0xa0)][_0x5924ba(0x9a)](_0x166788=>_0x166788!==_0x1d5947)['flatMap'](_0x37921c=>_0x37921c['ids']));if(_0xece1ae['some'](_0x7ed575=>_0x43a545[_0x5924ba(0xa8)](_0x7ed575)))return _0xc5a971(_0x1d5947,_0x5924ba(0xe8));for(let _0xc3bb7f=0x0;_0xc3bb7f<_0x910383['length'];_0xc3bb7f++){const _0x5254c9=_0x349080['rows'][_0x1d5947[_0x5924ba(0x8e)][_0xc3bb7f]]['values'];if(Object[_0x5924ba(0xa6)](_0x5254c9)['some'](_0x2025a1=>!sameImportValue(_0x5254c9[_0x2025a1],_0x910383[_0xc3bb7f][_0x2025a1],_0x349080[_0x5924ba(0x93)]?.[_0x5924ba(0xce)](_0x2025a1)&&!_0x349080[_0x5924ba(0xd4)]?.[_0x5924ba(0xce)](_0x2025a1))))return _0xc5a971(_0x1d5947,_0x5924ba(0xa9)+_0x349080[_0x5924ba(0xc8)][_0x1d5947[_0x5924ba(0x8e)][_0xc3bb7f]][_0x5924ba(0xb2)]+'.');}return _0x1d5947['ids']=_0xece1ae,_0x1d5947[_0x5924ba(0x97)]='succeeded',await saveImportJson(_0xbcb73f['checkpoint'],_0x4e6b98),!![];};if(_0x4e6b98[_0x364552(0xa0)]['some'](_0x3d354d=>_0x3d354d[_0x364552(0x97)]==='conflict'&&!(_0xbcb73f[_0x364552(0x92)]&&_0xbcb73f[_0x364552(0xc5)]&&_0x349080[_0x364552(0x93)]?.['length']&&_0x3d354d[_0x364552(0xb1)]['length']===_0x3d354d[_0x364552(0x8e)]['length'])))throw Error('Import\x20checkpoint\x20contains\x20a\x20content\x20conflict.');if(_0xbcb73f[_0x364552(0x92)]){for(const _0x5ddb2d of _0x4e6b98[_0x364552(0xa0)])await _0x5c6f40(_0x5ddb2d);}for(const _0x59b766 of _0x4e6b98[_0x364552(0xa0)]){if(_0x59b766['status']===_0x364552(0xdd))continue;if(!_0xbcb73f[_0x364552(0x92)])await _0x5c6f40(_0x59b766);_0x59b766[_0x364552(0x97)]=_0x364552(0x9e),await saveImportJson(_0xbcb73f[_0x364552(0xb3)],_0x4e6b98),_0x37509e++;const _0x3591b0=_0x59b766['rowIndexes']['map'](_0x3a8549=>_0x349080[_0x364552(0xc8)][_0x3a8549][_0x364552(0xc1)]),_0x357a1d=Date['now'](),_0x180d17={'batch':_0x37509e,'rowStart':_0x349080[_0x364552(0xc8)][_0x59b766[_0x364552(0x8e)][0x0]][_0x364552(0xb2)],'rowEnd':_0x349080['rows'][_0x59b766['rowIndexes']['at'](-0x1)][_0x364552(0xb2)],'count':_0x3591b0[_0x364552(0x96)],'bytes':_0x44b9cc(_0x59b766[_0x364552(0x8e)],_0x59b766[_0x364552(0xe7)]),'elapsedMs':0x0,'status':_0x364552(0xc3)};_0x3c38a2[_0x364552(0x9c)](_0x180d17);try{const _0x4ce3b1=await _0x1d6644[_0x364552(0xb9)](_0x3591b0,_0x59b766['taskId']);if(!_0x4ce3b1||_0x4ce3b1[_0x364552(0xe0)]!==_0x3591b0[_0x364552(0x96)]||!Array[_0x364552(0xc9)](_0x4ce3b1[_0x364552(0xb1)])||_0x4ce3b1[_0x364552(0xb1)][_0x364552(0x96)]!==_0x3591b0[_0x364552(0x96)]||_0x4ce3b1[_0x364552(0xb1)][_0x364552(0xa7)](_0x2dc2e6=>!validId(_0x2dc2e6))||new Set(_0x4ce3b1['ids'])['size']!==_0x4ce3b1[_0x364552(0xb1)]['length'])throw Error('Invalid\x20write\x20result.');_0x59b766[_0x364552(0xb1)]=_0x4ce3b1[_0x364552(0xb1)],await saveImportJson(_0xbcb73f[_0x364552(0xb3)],_0x4e6b98);if(!await _0x5c6f40(_0x59b766))throw Error('Incomplete\x20readback.');}catch(_0x2f4d9d){if(_0x59b766[_0x364552(0x97)]===_0x364552(0xd2))throw _0x2f4d9d;try{await _0x5c6f40(_0x59b766);}catch(_0x4fa396){if(_0x59b766[_0x364552(0x97)]===_0x364552(0xd2))throw _0x4fa396;}if(_0x59b766[_0x364552(0x97)]!=='succeeded')throw Error(_0x364552(0xd3));}finally{_0x180d17['elapsedMs']=Date[_0x364552(0xbb)]()-_0x357a1d,_0x180d17[_0x364552(0x97)]=_0x59b766[_0x364552(0x97)]===_0x364552(0xdd)?'succeeded':_0x59b766[_0x364552(0x97)]==='conflict'?'conflict':_0x364552(0xc3);}}const _0x50eb57={'status':_0x364552(0xa5),..._0x3e8a46()};return await saveImportJson(_0xbcb73f[_0x364552(0xc6)],_0x50eb57),_0x50eb57;}catch(_0x3b48be){if(_0x2d8df2)await saveImportJson(_0xbcb73f[_0x364552(0xc6)],{'status':'incomplete',..._0x3e8a46(),'message':_0x3b48be[_0x364552(0x95)]});throw _0x3b48be;}finally{await _0x122c01();}}
|