@lovrabet/lovrabet-cli 2.3.8-beta.2 → 2.3.8-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/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.d.ts +6 -18
- 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.d.ts +3 -0
- package/lib/core/kb-sdk-errors.js +1 -0
- package/lib/core/kb-search-client.d.ts +3 -21
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/sdk-client.d.ts +2 -0
- 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 +2 -2
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x720537,_0x4d15a5){const _0x1a9fbf=a124_0x23c0,_0x50699f=_0x720537();while(!![]){try{const _0x2c91bb=parseInt(_0x1a9fbf(0x1be))/0x1*(-parseInt(_0x1a9fbf(0x1b7))/0x2)+-parseInt(_0x1a9fbf(0x1d7))/0x3*(parseInt(_0x1a9fbf(0x1c8))/0x4)+parseInt(_0x1a9fbf(0x1c3))/0x5*(-parseInt(_0x1a9fbf(0x1b4))/0x6)+parseInt(_0x1a9fbf(0x1bc))/0x7+-parseInt(_0x1a9fbf(0x1dc))/0x8*(parseInt(_0x1a9fbf(0x1c5))/0x9)+parseInt(_0x1a9fbf(0x1b8))/0xa*(parseInt(_0x1a9fbf(0x19b))/0xb)+-parseInt(_0x1a9fbf(0x19c))/0xc*(-parseInt(_0x1a9fbf(0x1c9))/0xd);if(_0x2c91bb===_0x4d15a5)break;else _0x50699f['push'](_0x50699f['shift']());}catch(_0x16c72f){_0x50699f['push'](_0x50699f['shift']());}}}(a124_0x2ba3,0xd95e3));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain,getRuntimeDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{assertKnownCommandFlags}from'../framework/raw-flags.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function a124_0x2ba3(){const _0x113e2c=['defaultApp','appCodeSource','production','app','write','schema','isNonInteractive','defaultVerbose','env','\x20\x20To\x20proceed:\x20','18IvvgWQ','doctor','string','1042BlCsra','4020XOMpAj','appcode\x20\x22','install','requiresAuth','770301RzZCfP','appCode','1781TBqYYo','trim','newConfigFileName','execute','Run\x20`','288055FSNNbh','has','8460972CIMEkk','pretty','_notice','231396FZkWHy','9347tWrOag','.appcode\x20to\x20','Unknown\x20app:\x20','runtimeDomain','High-risk\x20operation\x20`','high-risk-write','riskLevel','mergedCli','APPCODE','command','object','error','risk','validation','3WlhYeT','cli-skill','rawFlags','configMissing','ClientAk','8jtzJoK','resolve','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','currentApp','cancelled','requiresAppCode','service','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','\x20or\x20pass\x20','format','name','42086LsaajH','22380ojjFIJ','../core/sdk-client.js','../core/api-client.js','apiDomain','verbose','appcode','nativeToolAvailable','defaultPageSize','accessKey','items','authRequired','Set\x20accessKey\x20in\x20','../commands/app/remote-source.js','confirmHighRisk'];a124_0x2ba3=function(){return _0x113e2c;};return a124_0x2ba3();}import{assertCliVersionSupported,checkCliVersion}from'../utils/cli-version-check.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x5792d0){const _0x210f84=a124_0x23c0;return void _0x5792d0,AUTH_MODE[_0x210f84(0x1db)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x2bd94f,_0x4b1f67){const _0x3c7f5e=a124_0x23c0,_0x38a669=typeof _0x4b1f67[_0x3c7f5e(0x1ad)]==='string'&&_0x4b1f67['app'][_0x3c7f5e(0x1bf)]();return{'rawFlags':_0x4b1f67,'appCode':_0x2bd94f[_0x3c7f5e(0x1bd)]||productEnv(_0x3c7f5e(0x1d1))||(_0x38a669?undefined:readAppCodeFromConfig()),'appCodeSource':_0x2bd94f[_0x3c7f5e(0x1ab)],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x4b1f67),'defaultFormat':_0x2bd94f['format'],'defaultPageSize':_0x2bd94f['pageSize'],'defaultVerbose':_0x2bd94f[_0x3c7f5e(0x1a0)],'riskLevel':_0x2bd94f[_0x3c7f5e(0x1cf)],'nativeToolAvailable':_0x2bd94f[_0x3c7f5e(0x1a2)],'accessKey':_0x2bd94f[_0x3c7f5e(0x1a4)],'env':_0x2bd94f[_0x3c7f5e(0x1b2)],'mergedCli':{'defaultApp':_0x2bd94f['defaultApp'],'currentApp':_0x2bd94f[_0x3c7f5e(0x193)],'appCode':_0x2bd94f['appCode']}};}export function createLovrabetRunnerAdapter(_0x1f1b82={}){const _0x5b3f62=a124_0x23c0,_0x3ec798={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x3e37c3=>PIPELINE_FLAG_NAMES[_0x5b3f62(0x1c4)](_0x3e37c3[_0x5b3f62(0x19a)]))['map'](({name:_0x24a731,type:_0x3444db,description:_0x1dd10c})=>({'name':_0x24a731,'type':_0x3444db,'description':_0x1dd10c})),'formatOutput':_0x1f1b82['formatOutput']??formatOutput,'getCommandLabel'(_0x5ca730){return CLI_BIN_NAME+'\x20'+_0x5ca730['service']+'\x20'+_0x5ca730['command'];},'riskPolicy':{'onViolation'(_0x213497,{def:_0x2ced34,env:_0x3f966e}){const _0x569713=_0x5b3f62;if(shouldRouteWriteToNativeTool(_0x2ced34,_0x3f966e))return;console[_0x569713(0x1d4)](_0x213497);},'createError'(_0x7efb94,{def:_0x5d8180,env:_0x18fafa}){const _0x29ca8a=_0x5b3f62;if(shouldRouteWriteToNativeTool(_0x5d8180,_0x18fafa))return CliErrors['nativeToolRequired'](CLI_BIN_NAME+'\x20'+_0x5d8180[_0x29ca8a(0x196)]+'\x20'+_0x5d8180[_0x29ca8a(0x1d2)]);return CliErrors['cancelled'](_0x7efb94);}},async 'prepare'(_0x22abd9,_0x230d97){const _0x181a54=_0x5b3f62,_0x243ea2=resolveAuthMode(_0x230d97);if(_0x22abd9[_0x181a54(0x1bb)]!==![]){if(!_0x230d97[_0x181a54(0x1a4)])throw CliErrors[_0x181a54(0x1a6)](_0x181a54(0x1a7)+PRODUCT_CONFIG['newConfigFileName']+_0x181a54(0x198)+productEnvName('ACCESS_KEY')+'.');const {setActiveAK:_0x236205}=await import(_0x181a54(0x19e));_0x236205(_0x230d97[_0x181a54(0x1a4)]);}let _0x147717='';if(_0x22abd9[_0x181a54(0x195)]!==![]){_0x147717=_0x230d97['appCode']??'',_0x147717=await resolveExplicitAppName(_0x22abd9,_0x230d97,_0x147717);if(!_0x147717){await assertSelectedAppNameIsRuntimeAccessible(_0x22abd9,_0x230d97);throw CliErrors[_0x181a54(0x1da)]('Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');}await assertAppCodeIsRuntimeAccessible(_0x22abd9,_0x230d97,_0x147717);}if(_0x147717){const {initSdkClient:_0x564612}=await import('../core/sdk-client.js');_0x564612({'appCode':_0x147717,'env':_0x230d97[_0x181a54(0x1b2)]??_0x181a54(0x1ac),'runtimeDomain':_0x230d97[_0x181a54(0x1cc)],'accessKey':_0x230d97[_0x181a54(0x1a4)],'authMode':_0x243ea2}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x230d97[_0x181a54(0x1b1)]},'numbers':{'pagesize':_0x230d97[_0x181a54(0x1a3)]}},'extras':{'appCode':_0x147717,'cookie':'','apiDomain':_0x230d97[_0x181a54(0x19f)],'apiDir':'','accessKey':_0x230d97[_0x181a54(0x1a4)],'envName':_0x230d97[_0x181a54(0x1b2)],'mergedCli':_0x230d97[_0x181a54(0x1d0)]}};},'confirmHighRisk':_0x1f1b82[_0x5b3f62(0x1a9)]??(async({def:_0x14b784,env:_0x1adc58,flags:_0x303ecd,commandLabel:_0x5a76d4})=>{const _0x3f8028=_0x5b3f62;if(_0x1adc58[_0x3f8028(0x1b0)]){const _0x4d5800=reconstructCommandArgv(_0x14b784,_0x303ecd);throw CliErrors[_0x3f8028(0x1d6)](_0x3f8028(0x1cd)+_0x5a76d4+_0x3f8028(0x1de)+(_0x3f8028(0x1b3)+_0x4d5800));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x14b784,_0x5a76d4,_0x303ecd),'createCancelledError':_0x53385e=>CliErrors[_0x3f8028(0x194)](_0x53385e)});}),'mapDryRunError'(_0x1e7317){return mapUserFacingExecuteError(_0x1e7317);},'mapExecuteError'(_0x47d5ce){return mapUserFacingExecuteError(_0x47d5ce);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x3ec798;}function shouldRouteWriteToNativeTool(_0x96db83,_0x49b71c){const _0x58297e=a124_0x23c0;return _0x49b71c[_0x58297e(0x1a2)]===!![]&&(_0x96db83[_0x58297e(0x1d5)]===_0x58297e(0x1ae)||_0x96db83[_0x58297e(0x1d5)]===_0x58297e(0x1ce));}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x2196e7=a124_0x23c0;try{if(sdkClientInitialized){const {clearSdkClient:_0x90b47e}=await import(_0x2196e7(0x19d));_0x90b47e();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x1c971b}=await import('../core/api-client.js');_0x1c971b();}}async function resolveExplicitAppName(_0x4f9371,_0x47dee6,_0x35f8e5){const _0xfadb7=a124_0x23c0;if(_0x4f9371[_0xfadb7(0x195)]===![])return _0x35f8e5;const _0x2bb0a6=typeof _0x47dee6[_0xfadb7(0x1d9)][_0xfadb7(0x1ad)]==='string'?_0x47dee6[_0xfadb7(0x1d9)][_0xfadb7(0x1ad)][_0xfadb7(0x1bf)]():'';if(!_0x2bb0a6)return _0x35f8e5;const _0x59f81c=typeof _0x47dee6[_0xfadb7(0x1d9)]['appcode']===_0xfadb7(0x1b6)&&_0x47dee6[_0xfadb7(0x1d9)][_0xfadb7(0x1a1)][_0xfadb7(0x1bf)]()||productEnv('APPCODE');if(_0x59f81c||_0x47dee6[_0xfadb7(0x1ab)]==='local-alias')return _0x35f8e5;const {getRemoteAppList:_0x475d28}=await import(_0xfadb7(0x1a8)),_0x5615ba=await _0x475d28({'env':_0x47dee6[_0xfadb7(0x1b2)]??_0xfadb7(0x1ac),'accessKey':_0x47dee6['accessKey']}),_0xd5ae48=findAppByName(_0x5615ba[_0xfadb7(0x1a5)],_0x2bb0a6);if(_0xd5ae48&&!isRuntimeAccessibleApp(_0xd5ae48))throw runtimeInaccessibleAppError(_0xd5ae48,'\x22'+_0x2bb0a6+'\x22');const _0x342047=_0xd5ae48?.['appCode']?.[_0xfadb7(0x1bf)]();if(_0x342047)return _0x342047;throw CliErrors[_0xfadb7(0x1d6)](_0xfadb7(0x1cb)+_0x2bb0a6,_0xfadb7(0x1c2)+CLI_BIN_NAME+_0xfadb7(0x197)+_0x2bb0a6+_0xfadb7(0x1ca)+PRODUCT_CONFIG[_0xfadb7(0x1c0)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x22abc5,_0x37b034){const _0x17b8c9=a124_0x23c0;if(_0x22abc5[_0x17b8c9(0x195)]===![]||!_0x37b034[_0x17b8c9(0x1a4)])return;const _0x4c39ef=(typeof _0x37b034['rawFlags']['app']===_0x17b8c9(0x1b6)&&_0x37b034[_0x17b8c9(0x1d9)][_0x17b8c9(0x1ad)]['trim']()?_0x37b034[_0x17b8c9(0x1d9)]['app']:_0x37b034['mergedCli']?.['currentApp']??_0x37b034['mergedCli']?.[_0x17b8c9(0x1aa)])?.[_0x17b8c9(0x1bf)]();if(!_0x4c39ef)return;const {getRemoteAppList:_0x81af4c}=await import('../commands/app/remote-source.js'),_0x7de5f6=await _0x81af4c({'env':_0x37b034[_0x17b8c9(0x1b2)]??_0x17b8c9(0x1ac),'accessKey':_0x37b034[_0x17b8c9(0x1a4)]}),_0x14acb1=findAppByName(_0x7de5f6[_0x17b8c9(0x1a5)],_0x4c39ef);if(_0x14acb1&&!isRuntimeAccessibleApp(_0x14acb1))throw runtimeInaccessibleAppError(_0x14acb1,'\x22'+_0x4c39ef+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x2bf112,_0x51377e,_0x365773){const _0x44d877=a124_0x23c0;if(_0x2bf112[_0x44d877(0x195)]===![]||!_0x51377e[_0x44d877(0x1a4)])return;const {getRemoteAppList:_0x3ead89}=await import(_0x44d877(0x1a8)),_0x1ce42f=await _0x3ead89({'env':_0x51377e[_0x44d877(0x1b2)]??_0x44d877(0x1ac),'accessKey':_0x51377e[_0x44d877(0x1a4)]}),_0x30dead=findAppByCode(_0x1ce42f[_0x44d877(0x1a5)],_0x365773);if(_0x30dead&&!isRuntimeAccessibleApp(_0x30dead))throw runtimeInaccessibleAppError(_0x30dead,_0x44d877(0x1b9)+_0x365773+'\x22');}export async function runCommand(_0xcc5564,_0x20e610,_0x4c41cc=terminalRunnerAdapter){const _0x47032d=a124_0x23c0;assertKnownCommandFlags(_0xcc5564,_0x20e610[_0x47032d(0x1d9)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0xcc5564)?withVersionPolicy(_0xcc5564):_0xcc5564,_0x20e610,_0x4c41cc);}function shouldApplyVersionPolicy(_0x3bb62a){const _0xc7e586=a124_0x23c0;if(['update',_0xc7e586(0x1af),_0xc7e586(0x1b5)]['includes'](_0x3bb62a[_0xc7e586(0x196)]))return![];return!(_0x3bb62a['service']===_0xc7e586(0x1d8)&&_0x3bb62a[_0xc7e586(0x1d2)]===_0xc7e586(0x1ba));}function withVersionPolicy(_0x586da5){return{..._0x586da5,async 'execute'(_0x308b67){const _0x174fc1=a124_0x23c0,_0x27c880=await checkCliVersion();assertCliVersionSupported(_0x27c880);const _0x1555f0=shouldResolveUpdateNotice(_0x308b67)?resolveLatestUpdateNotice(_0x27c880)['catch'](()=>null):Promise[_0x174fc1(0x1dd)](null),_0x24e9a0=await _0x586da5[_0x174fc1(0x1c1)](_0x308b67);return attachUpdateNotice(_0x24e9a0,await _0x1555f0);}};}function a124_0x23c0(_0x6aed03,_0xe172a4){_0x6aed03=_0x6aed03-0x193;const _0x2ba368=a124_0x2ba3();let _0x23c0ca=_0x2ba368[_0x6aed03];return _0x23c0ca;}function shouldResolveUpdateNotice(_0x30d51f){const _0x3026ca=a124_0x23c0;return _0x30d51f[_0x3026ca(0x199)]===_0x3026ca(0x1c6)&&!_0x30d51f['nonInteractive'];}function attachUpdateNotice(_0x29fbf7,_0x4b9c3b){const _0x1a5dc9=a124_0x23c0;if(!_0x4b9c3b||!_0x29fbf7||typeof _0x29fbf7!==_0x1a5dc9(0x1d3))return _0x29fbf7;const _0x49bdcf=_0x29fbf7,_0x4cc04a=typeof _0x49bdcf[_0x1a5dc9(0x1c7)]==='object'&&_0x49bdcf['_notice']!==null?_0x49bdcf[_0x1a5dc9(0x1c7)]:{};return{..._0x49bdcf,'_notice':{..._0x4cc04a,'update':_0x4b9c3b}};}
|
|
1
|
+
(function(_0x1612dc,_0x5dddb2){const _0x29f7d1=a125_0x15bd,_0x52cfa0=_0x1612dc();while(!![]){try{const _0x295040=-parseInt(_0x29f7d1(0x1c5))/0x1*(parseInt(_0x29f7d1(0x1cc))/0x2)+-parseInt(_0x29f7d1(0x1f2))/0x3*(parseInt(_0x29f7d1(0x1c9))/0x4)+parseInt(_0x29f7d1(0x1fe))/0x5+parseInt(_0x29f7d1(0x1ed))/0x6*(-parseInt(_0x29f7d1(0x1f5))/0x7)+-parseInt(_0x29f7d1(0x1f9))/0x8*(-parseInt(_0x29f7d1(0x1e6))/0x9)+-parseInt(_0x29f7d1(0x1e9))/0xa*(parseInt(_0x29f7d1(0x1ef))/0xb)+parseInt(_0x29f7d1(0x1c7))/0xc*(parseInt(_0x29f7d1(0x1d3))/0xd);if(_0x295040===_0x5dddb2)break;else _0x52cfa0['push'](_0x52cfa0['shift']());}catch(_0x2dcac0){_0x52cfa0['push'](_0x52cfa0['shift']());}}}(a125_0xd038,0xa7395));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';function a125_0x15bd(_0x281a96,_0x5c2108){_0x281a96=_0x281a96-0x1bd;const _0xd038bb=a125_0xd038();let _0x15bd0b=_0xd038bb[_0x281a96];return _0x15bd0b;}import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain,getRuntimeDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{assertKnownCommandFlags}from'../framework/raw-flags.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{assertCliVersionSupported,checkCliVersion}from'../utils/cli-version-check.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x268423){const _0x351763=a125_0x15bd;return void _0x268423,AUTH_MODE[_0x351763(0x1ee)];}function a125_0xd038(){const _0x7cb087=['filter','pretty','install','6fFsJYh','ClientAk','11RsjpyT','env','format','115365bAvvNP','risk','authRequired','3084501GIyPmi','isNonInteractive','appcode','string','62024TPddQF','rawFlags','cancelled','mergedCli','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','6473545QQZXOu','formatOutput','local-alias','Set\x20accessKey\x20in\x20','newConfigFileName','schema','../commands/app/remote-source.js','name','defaultPageSize','requiresAppCode','nativeToolRequired','APPCODE','includes','validation','apiDomain','riskLevel','_notice','504055ezJoYb','cli-skill','12RVKkOp','trim','68LLCcVL','accessKey','service','4QreTdw','pageSize','requiresAuth','items','has','appCode','production','16101787jBkEgG','defaultVerbose','nonInteractive','\x20\x20To\x20proceed:\x20','appcode\x20\x22','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','configMissing','resolve','appCodeSource','catch','../core/api-client.js','app','../core/sdk-client.js','defaultApp','.appcode\x20to\x20','\x20or\x20pass\x20','currentApp','command','object','432pnIlbZ','confirmHighRisk','nativeToolAvailable','1180150wWeika'];a125_0xd038=function(){return _0x7cb087;};return a125_0xd038();}let sdkClientInitialized=![];export function createPipelineEnv(_0x1d6675,_0x4aceb9){const _0x2bd862=a125_0x15bd,_0x287801=typeof _0x4aceb9['app']===_0x2bd862(0x1f8)&&_0x4aceb9[_0x2bd862(0x1de)][_0x2bd862(0x1c8)]();return{'rawFlags':_0x4aceb9,'appCode':_0x1d6675[_0x2bd862(0x1d1)]||productEnv(_0x2bd862(0x1bf))||(_0x287801?undefined:readAppCodeFromConfig()),'appCodeSource':_0x1d6675[_0x2bd862(0x1db)],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x4aceb9),'defaultFormat':_0x1d6675[_0x2bd862(0x1f1)],'defaultPageSize':_0x1d6675[_0x2bd862(0x1cd)],'defaultVerbose':_0x1d6675['verbose'],'riskLevel':_0x1d6675[_0x2bd862(0x1c3)],'nativeToolAvailable':_0x1d6675['nativeToolAvailable'],'accessKey':_0x1d6675[_0x2bd862(0x1ca)],'env':_0x1d6675['env'],'mergedCli':{'defaultApp':_0x1d6675[_0x2bd862(0x1e0)],'currentApp':_0x1d6675['currentApp'],'appCode':_0x1d6675[_0x2bd862(0x1d1)]}};}export function createLovrabetRunnerAdapter(_0x30d60={}){const _0x3bea57=a125_0x15bd,_0xa64997={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x3bea57(0x1ea)](_0x9abe04=>PIPELINE_FLAG_NAMES[_0x3bea57(0x1d0)](_0x9abe04[_0x3bea57(0x205)]))['map'](({name:_0x2d3e51,type:_0x4b64c5,description:_0x570771})=>({'name':_0x2d3e51,'type':_0x4b64c5,'description':_0x570771})),'formatOutput':_0x30d60[_0x3bea57(0x1ff)]??formatOutput,'getCommandLabel'(_0x22b086){const _0x3b339a=_0x3bea57;return CLI_BIN_NAME+'\x20'+_0x22b086[_0x3b339a(0x1cb)]+'\x20'+_0x22b086[_0x3b339a(0x1e4)];},'riskPolicy':{'onViolation'(_0x19446e,{def:_0x12804f,env:_0x425e7c}){if(shouldRouteWriteToNativeTool(_0x12804f,_0x425e7c))return;console['error'](_0x19446e);},'createError'(_0x34a81e,{def:_0x330aab,env:_0x13dd3d}){const _0x1307e2=_0x3bea57;if(shouldRouteWriteToNativeTool(_0x330aab,_0x13dd3d))return CliErrors[_0x1307e2(0x1be)](CLI_BIN_NAME+'\x20'+_0x330aab[_0x1307e2(0x1cb)]+'\x20'+_0x330aab[_0x1307e2(0x1e4)]);return CliErrors[_0x1307e2(0x1fb)](_0x34a81e);}},async 'prepare'(_0xbcd29,_0x4b5328){const _0x3cc699=_0x3bea57,_0x11368a=resolveAuthMode(_0x4b5328);if(_0xbcd29[_0x3cc699(0x1ce)]!==![]){if(!_0x4b5328[_0x3cc699(0x1ca)])throw CliErrors[_0x3cc699(0x1f4)](_0x3cc699(0x201)+PRODUCT_CONFIG['newConfigFileName']+_0x3cc699(0x1e2)+productEnvName('ACCESS_KEY')+'.');const {setActiveAK:_0x3fbf6d}=await import('../core/api-client.js');_0x3fbf6d(_0x4b5328[_0x3cc699(0x1ca)]);}let _0x29bb7b='';if(_0xbcd29[_0x3cc699(0x1bd)]!==![]){_0x29bb7b=_0x4b5328[_0x3cc699(0x1d1)]??'',_0x29bb7b=await resolveExplicitAppName(_0xbcd29,_0x4b5328,_0x29bb7b);if(!_0x29bb7b){await assertSelectedAppNameIsRuntimeAccessible(_0xbcd29,_0x4b5328);throw CliErrors[_0x3cc699(0x1d9)](_0x3cc699(0x1d8)+PRODUCT_CONFIG['newConfigFileName']+'.');}await assertAppCodeIsRuntimeAccessible(_0xbcd29,_0x4b5328,_0x29bb7b);}if(_0x29bb7b){const {initSdkClient:_0x310962}=await import(_0x3cc699(0x1df));_0x310962({'appCode':_0x29bb7b,'env':_0x4b5328[_0x3cc699(0x1f0)]??_0x3cc699(0x1d2),'runtimeDomain':_0x4b5328['runtimeDomain'],'accessKey':_0x4b5328[_0x3cc699(0x1ca)],'authMode':_0x11368a}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x4b5328[_0x3cc699(0x1d4)]},'numbers':{'pagesize':_0x4b5328[_0x3cc699(0x206)]}},'extras':{'appCode':_0x29bb7b,'cookie':'','apiDomain':_0x4b5328[_0x3cc699(0x1c2)],'apiDir':'','accessKey':_0x4b5328[_0x3cc699(0x1ca)],'envName':_0x4b5328[_0x3cc699(0x1f0)],'mergedCli':_0x4b5328[_0x3cc699(0x1fc)]}};},'confirmHighRisk':_0x30d60[_0x3bea57(0x1e7)]??(async({def:_0x7be73d,env:_0x2f0623,flags:_0x169f20,commandLabel:_0x218ed7})=>{const _0x114dd4=_0x3bea57;if(_0x2f0623[_0x114dd4(0x1f6)]){const _0xc8f99a=reconstructCommandArgv(_0x7be73d,_0x169f20);throw CliErrors['validation']('High-risk\x20operation\x20`'+_0x218ed7+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a'+(_0x114dd4(0x1d6)+_0xc8f99a));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x7be73d,_0x218ed7,_0x169f20),'createCancelledError':_0x33137c=>CliErrors[_0x114dd4(0x1fb)](_0x33137c)});}),'mapDryRunError'(_0x15ed95){return mapUserFacingExecuteError(_0x15ed95);},'mapExecuteError'(_0x941f9a){return mapUserFacingExecuteError(_0x941f9a);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0xa64997;}function shouldRouteWriteToNativeTool(_0x1b2d7a,_0x117567){const _0x57ce44=a125_0x15bd;return _0x117567[_0x57ce44(0x1e8)]===!![]&&(_0x1b2d7a[_0x57ce44(0x1f3)]==='write'||_0x1b2d7a['risk']==='high-risk-write');}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x58ce76=a125_0x15bd;try{if(sdkClientInitialized){const {clearSdkClient:_0x46e2ab}=await import(_0x58ce76(0x1df));_0x46e2ab();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x275cc0}=await import(_0x58ce76(0x1dd));_0x275cc0();}}async function resolveExplicitAppName(_0x2ad2b6,_0x4b6ec9,_0x3eeb3b){const _0x21d43e=a125_0x15bd;if(_0x2ad2b6[_0x21d43e(0x1bd)]===![])return _0x3eeb3b;const _0x3e2f7a=typeof _0x4b6ec9[_0x21d43e(0x1fa)][_0x21d43e(0x1de)]===_0x21d43e(0x1f8)?_0x4b6ec9[_0x21d43e(0x1fa)][_0x21d43e(0x1de)][_0x21d43e(0x1c8)]():'';if(!_0x3e2f7a)return _0x3eeb3b;const _0x53278c=typeof _0x4b6ec9['rawFlags'][_0x21d43e(0x1f7)]===_0x21d43e(0x1f8)&&_0x4b6ec9[_0x21d43e(0x1fa)]['appcode'][_0x21d43e(0x1c8)]()||productEnv(_0x21d43e(0x1bf));if(_0x53278c||_0x4b6ec9[_0x21d43e(0x1db)]===_0x21d43e(0x200))return _0x3eeb3b;const {getRemoteAppList:_0x39b5ed}=await import(_0x21d43e(0x204)),_0x4cc8c6=await _0x39b5ed({'env':_0x4b6ec9['env']??_0x21d43e(0x1d2),'accessKey':_0x4b6ec9[_0x21d43e(0x1ca)]}),_0x5eb8c5=findAppByName(_0x4cc8c6[_0x21d43e(0x1cf)],_0x3e2f7a);if(_0x5eb8c5&&!isRuntimeAccessibleApp(_0x5eb8c5))throw runtimeInaccessibleAppError(_0x5eb8c5,'\x22'+_0x3e2f7a+'\x22');const _0x1cf782=_0x5eb8c5?.[_0x21d43e(0x1d1)]?.[_0x21d43e(0x1c8)]();if(_0x1cf782)return _0x1cf782;throw CliErrors[_0x21d43e(0x1c1)]('Unknown\x20app:\x20'+_0x3e2f7a,'Run\x20`'+CLI_BIN_NAME+_0x21d43e(0x1fd)+_0x3e2f7a+_0x21d43e(0x1e1)+PRODUCT_CONFIG[_0x21d43e(0x202)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x11703e,_0x19ad9d){const _0x1f2681=a125_0x15bd;if(_0x11703e[_0x1f2681(0x1bd)]===![]||!_0x19ad9d['accessKey'])return;const _0x552314=(typeof _0x19ad9d['rawFlags'][_0x1f2681(0x1de)]===_0x1f2681(0x1f8)&&_0x19ad9d[_0x1f2681(0x1fa)][_0x1f2681(0x1de)][_0x1f2681(0x1c8)]()?_0x19ad9d[_0x1f2681(0x1fa)][_0x1f2681(0x1de)]:_0x19ad9d['mergedCli']?.[_0x1f2681(0x1e3)]??_0x19ad9d[_0x1f2681(0x1fc)]?.['defaultApp'])?.[_0x1f2681(0x1c8)]();if(!_0x552314)return;const {getRemoteAppList:_0x57be56}=await import(_0x1f2681(0x204)),_0x653338=await _0x57be56({'env':_0x19ad9d[_0x1f2681(0x1f0)]??'production','accessKey':_0x19ad9d[_0x1f2681(0x1ca)]}),_0x1d6c80=findAppByName(_0x653338[_0x1f2681(0x1cf)],_0x552314);if(_0x1d6c80&&!isRuntimeAccessibleApp(_0x1d6c80))throw runtimeInaccessibleAppError(_0x1d6c80,'\x22'+_0x552314+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x168533,_0x12a9a6,_0x3f89ec){const _0x161514=a125_0x15bd;if(_0x168533['requiresAppCode']===![]||!_0x12a9a6['accessKey'])return;const {getRemoteAppList:_0x5d4cd9}=await import(_0x161514(0x204)),_0x5a7bb9=await _0x5d4cd9({'env':_0x12a9a6[_0x161514(0x1f0)]??_0x161514(0x1d2),'accessKey':_0x12a9a6[_0x161514(0x1ca)]}),_0x50bd68=findAppByCode(_0x5a7bb9[_0x161514(0x1cf)],_0x3f89ec);if(_0x50bd68&&!isRuntimeAccessibleApp(_0x50bd68))throw runtimeInaccessibleAppError(_0x50bd68,_0x161514(0x1d7)+_0x3f89ec+'\x22');}export async function runCommand(_0x5eedb2,_0x99d73f,_0x59fcd7=terminalRunnerAdapter){assertKnownCommandFlags(_0x5eedb2,_0x99d73f['rawFlags']),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x5eedb2)?withVersionPolicy(_0x5eedb2):_0x5eedb2,_0x99d73f,_0x59fcd7);}function shouldApplyVersionPolicy(_0x46fd9c){const _0xf18e6b=a125_0x15bd;if(['update',_0xf18e6b(0x203),'doctor'][_0xf18e6b(0x1c0)](_0x46fd9c[_0xf18e6b(0x1cb)]))return![];return!(_0x46fd9c[_0xf18e6b(0x1cb)]===_0xf18e6b(0x1c6)&&_0x46fd9c[_0xf18e6b(0x1e4)]===_0xf18e6b(0x1ec));}function withVersionPolicy(_0x4b3493){return{..._0x4b3493,async 'execute'(_0x2d15c8){const _0x14e60f=a125_0x15bd,_0x25daa4=await checkCliVersion();assertCliVersionSupported(_0x25daa4);const _0x551e44=shouldResolveUpdateNotice(_0x2d15c8)?resolveLatestUpdateNotice(_0x25daa4)[_0x14e60f(0x1dc)](()=>null):Promise[_0x14e60f(0x1da)](null),_0x570e20=await _0x4b3493['execute'](_0x2d15c8);return attachUpdateNotice(_0x570e20,await _0x551e44);}};}function shouldResolveUpdateNotice(_0x1c55fe){const _0xc738e7=a125_0x15bd;return _0x1c55fe[_0xc738e7(0x1f1)]===_0xc738e7(0x1eb)&&!_0x1c55fe[_0xc738e7(0x1d5)];}function attachUpdateNotice(_0x3ac15d,_0x1decb8){const _0x57c83a=a125_0x15bd;if(!_0x1decb8||!_0x3ac15d||typeof _0x3ac15d!==_0x57c83a(0x1e5))return _0x3ac15d;const _0x319970=_0x3ac15d,_0xdb11a1=typeof _0x319970[_0x57c83a(0x1c4)]===_0x57c83a(0x1e5)&&_0x319970[_0x57c83a(0x1c4)]!==null?_0x319970[_0x57c83a(0x1c4)]:{};return{..._0x319970,'_notice':{..._0xdb11a1,'update':_0x1decb8}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a126_0x1f6d(){const _0x266c3e=['map','4zZbTst','619295jyXloA','83708IUrBCe','3314300tYOZws','348HZalkW','1253577swXper','481392IdFHFS','441117YCoulo','filter','8wybZNy','../commands/registry.js','56476CbiLdL','commands','none','has'];a126_0x1f6d=function(){return _0x266c3e;};return a126_0x1f6d();}(function(_0x32966b,_0x9e859f){const _0x136ee0=a126_0x1aae,_0x2139c0=_0x32966b();while(!![]){try{const _0x4c63b9=-parseInt(_0x136ee0(0x1ea))/0x1+parseInt(_0x136ee0(0x1de))/0x2+parseInt(_0x136ee0(0x1dd))/0x3*(parseInt(_0x136ee0(0x1e8))/0x4)+-parseInt(_0x136ee0(0x1e9))/0x5+-parseInt(_0x136ee0(0x1dc))/0x6*(parseInt(_0x136ee0(0x1e3))/0x7)+parseInt(_0x136ee0(0x1e1))/0x8*(parseInt(_0x136ee0(0x1df))/0x9)+parseInt(_0x136ee0(0x1db))/0xa;if(_0x4c63b9===_0x9e859f)break;else _0x2139c0['push'](_0x2139c0['shift']());}catch(_0x59630c){_0x2139c0['push'](_0x2139c0['shift']());}}}(a126_0x1f6d,0x58bdf));import{buildSchemaPayload as a126_0x289ef2}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliGitCommit,getCliVersion}from'../utils/version.js';function a126_0x1aae(_0x557731,_0x4b6046){_0x557731=_0x557731-0x1db;const _0x1f6d3e=a126_0x1f6d();let _0x1aaee5=_0x1f6d3e[_0x557731];return _0x1aaee5;}export async function buildSchemaPayload(){const _0x3fa2a9=a126_0x1aae,{serviceRegistry:_0x3b8dcf,findDefinition:_0x3e7280}=await import(_0x3fa2a9(0x1e2)),_0x591e17=new Set(_0x3b8dcf[_0x3fa2a9(0x1e7)](_0x602773=>_0x602773['service'])),_0x1128f6=listDynamicServiceEntries()[_0x3fa2a9(0x1e0)](_0x209a2a=>!_0x591e17[_0x3fa2a9(0x1e6)](_0x209a2a['service'])),_0x4d0aa9=a126_0x289ef2({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x3b8dcf,_0x1128f6),'buildAllFlags':buildAllFlags,'findDefinition':(_0x393d7a,_0x405ce4)=>_0x3e7280(_0x393d7a,_0x405ce4)??findDynamicServiceDefinition(_0x393d7a,_0x405ce4)});return normalizeSchemaPayload(_0x4d0aa9);}function normalizeSchemaPayload(_0xe8c856){const _0x89cbc9=a126_0x1aae;return{..._0xe8c856,'schemaVersion':0x2,'services':_0xe8c856['services']['map'](_0x3c9e9b=>({..._0x3c9e9b,'commands':_0x3c9e9b[_0x89cbc9(0x1e4)][_0x89cbc9(0x1e7)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x4302a9){const _0x4e3cb4=a126_0x1aae,_0x12f7c0=_0x4302a9;return{..._0x4302a9,'auth':_0x12f7c0['auth']??(_0x4302a9['requiresAuth']?'required':_0x4e3cb4(0x1e5))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a127_0x8338(_0x593006,_0x376379){_0x593006=_0x593006-0x6f;const _0x3ed30c=a127_0x3ed3();let _0x8338fc=_0x3ed30c[_0x593006];return _0x8338fc;}(function(_0x3d6234,_0x20f03f){const _0x49b6e8=a127_0x8338,_0x413ee1=_0x3d6234();while(!![]){try{const _0x538169=-parseInt(_0x49b6e8(0x72))/0x1*(parseInt(_0x49b6e8(0x79))/0x2)+-parseInt(_0x49b6e8(0x73))/0x3+parseInt(_0x49b6e8(0x76))/0x4+-parseInt(_0x49b6e8(0x78))/0x5+-parseInt(_0x49b6e8(0x74))/0x6*(parseInt(_0x49b6e8(0x77))/0x7)+-parseInt(_0x49b6e8(0x6f))/0x8+parseInt(_0x49b6e8(0x71))/0x9;if(_0x538169===_0x20f03f)break;else _0x413ee1['push'](_0x413ee1['shift']());}catch(_0x4701b8){_0x413ee1['push'](_0x413ee1['shift']());}}}(a127_0x3ed3,0x68fc1));export function insertDynamicServicesAfterServiceTree(_0x58f99e,_0x47cb17){const _0x2c6c51=a127_0x8338;if(_0x47cb17['length']===0x0)return[..._0x58f99e];const _0x53251f=_0x58f99e['findIndex'](_0x2ace50=>_0x2ace50[_0x2c6c51(0x70)]===_0x2c6c51(0x70));if(_0x53251f<0x0)return[..._0x58f99e,..._0x47cb17];return[..._0x58f99e['slice'](0x0,_0x53251f+0x1),..._0x47cb17,..._0x58f99e[_0x2c6c51(0x75)](_0x53251f+0x1)];}function a127_0x3ed3(){const _0x4b2d61=['service','16983441yOxJtQ','619EbiTuk','1982814FqlGii','12lJUsHF','slice','463200qxcnMH','56861TcEiBf','462740Wayswo','1486tMljky','2745464DJeZrd'];a127_0x3ed3=function(){return _0x4b2d61;};return a127_0x3ed3();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a128_0x3642(_0x2e9400,_0x398d9b){_0x2e9400=_0x2e9400-0x16d;var _0x59d724=a128_0x59d7();var _0x364252=_0x59d724[_0x2e9400];return _0x364252;}(function(_0x26894e,_0x6fdacb){var _0x229fab=a128_0x3642,_0x2156b0=_0x26894e();while(!![]){try{var _0x1a2a87=parseInt(_0x229fab(0x177))/0x1+parseInt(_0x229fab(0x174))/0x2*(parseInt(_0x229fab(0x173))/0x3)+parseInt(_0x229fab(0x170))/0x4*(-parseInt(_0x229fab(0x175))/0x5)+-parseInt(_0x229fab(0x172))/0x6*(parseInt(_0x229fab(0x178))/0x7)+-parseInt(_0x229fab(0x176))/0x8+-parseInt(_0x229fab(0x16f))/0x9*(-parseInt(_0x229fab(0x171))/0xa)+-parseInt(_0x229fab(0x16d))/0xb*(parseInt(_0x229fab(0x16e))/0xc);if(_0x1a2a87===_0x6fdacb)break;else _0x2156b0['push'](_0x2156b0['shift']());}catch(_0x22a991){_0x2156b0['push'](_0x2156b0['shift']());}}}(a128_0x59d7,0xcae96));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a128_0x59d7(){var _0x37eff8=['308188IDzvgW','250CrWooK','48nqYfNf','172197lYplST','16LpCEQS','20RXGxni','5417216hKRRIC','884775WpPyUo','563003ympZIN','20834oqPhyi','3012atVYae','572877WdhMno'];a128_0x59d7=function(){return _0x37eff8;};return a128_0x59d7();}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.3.8-beta.
|
|
2
|
-
export declare const GIT_TAG = "v2.3.8-beta.
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-10-
|
|
1
|
+
export declare const VERSION = "2.3.8-beta.4";
|
|
2
|
+
export declare const GIT_TAG = "v2.3.8-beta.4";
|
|
3
|
+
export declare const GIT_COMMIT = "4222094";
|
|
4
|
+
export declare const BUILD_TIME = "2026-10-30T07:43:38.452Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a129_0x344dc8=a129_0x4b44;(function(_0x406333,_0x40631f){const _0x32bf8a=a129_0x4b44,_0x863a3a=_0x406333();while(!![]){try{const _0xbafcd=parseInt(_0x32bf8a(0x7c))/0x1*(-parseInt(_0x32bf8a(0x78))/0x2)+-parseInt(_0x32bf8a(0x81))/0x3+parseInt(_0x32bf8a(0x76))/0x4+parseInt(_0x32bf8a(0x82))/0x5+parseInt(_0x32bf8a(0x7d))/0x6*(parseInt(_0x32bf8a(0x7b))/0x7)+parseInt(_0x32bf8a(0x7a))/0x8+parseInt(_0x32bf8a(0x7e))/0x9*(-parseInt(_0x32bf8a(0x80))/0xa);if(_0xbafcd===_0x40631f)break;else _0x863a3a['push'](_0x863a3a['shift']());}catch(_0x518819){_0x863a3a['push'](_0x863a3a['shift']());}}}(a129_0x390c,0x769ee));export const VERSION=a129_0x344dc8(0x77);function a129_0x390c(){const _0x55e6a3=['640fFORTG','1317792ysWnQV','129820ytMpQd','2825628BzskLB','2.3.8-beta.4','48998fxrEqN','v2.3.8-beta.4','1484912vwVBRG','141883oyMbPp','7SdLvNv','156eZaccD','48987wDBIxt','4222094'];a129_0x390c=function(){return _0x55e6a3;};return a129_0x390c();}function a129_0x4b44(_0x3229aa,_0x4a9da4){_0x3229aa=_0x3229aa-0x76;const _0x390c8f=a129_0x390c();let _0x4b449c=_0x390c8f[_0x3229aa];return _0x4b449c;}export const GIT_TAG=a129_0x344dc8(0x79);export const GIT_COMMIT=a129_0x344dc8(0x7f);export const BUILD_TIME='2026-10-30T07:43:38.452Z';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a130_0x4d4073=a130_0xa90d;(function(_0x2dedda,_0x133429){const _0x203b97=a130_0xa90d,_0x761431=_0x2dedda();while(!![]){try{const _0x5571b0=-parseInt(_0x203b97(0xa4))/0x1*(parseInt(_0x203b97(0xae))/0x2)+parseInt(_0x203b97(0xa6))/0x3+-parseInt(_0x203b97(0xa5))/0x4+-parseInt(_0x203b97(0xb8))/0x5*(-parseInt(_0x203b97(0xaf))/0x6)+-parseInt(_0x203b97(0xbc))/0x7+parseInt(_0x203b97(0xbf))/0x8+-parseInt(_0x203b97(0xb5))/0x9*(-parseInt(_0x203b97(0xa7))/0xa);if(_0x5571b0===_0x133429)break;else _0x761431['push'](_0x761431['shift']());}catch(_0x639dd9){_0x761431['push'](_0x761431['shift']());}}}(a130_0x2b53,0xdfac8));export const ROUTING_CATALOG_DIGEST='886843ef89aa4ff2b36d612e8fbd1b6c1840b37728916fba5699be34129ef579';function a130_0xa90d(_0x282d2f,_0x40c3c5){_0x282d2f=_0x282d2f-0xa4;const _0x2b53a5=a130_0x2b53();let _0xa90d27=_0x2b53a5[_0x282d2f];return _0xa90d27;}export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id',a130_0x4d4073(0xb0)];export const ENABLED_REGION_VALUES=['cn','id',a130_0x4d4073(0xb0)];function a130_0x2b53(){const _0x4b6de7=['https://runtime.lovrabet.com','Mainland\x20China','Indonesia','21420udaYHz','https://user.lovrabet.com','https://daily-api.lovrabet.ai','64735UExWiB','indonesia','https://kb-service.lovrabet.com','https://user-daily.lovrabet.ai','4505627YvEjmU','https://runtime.lovrabet.id','Global','2950368TQIQrI','https://kb-service-daily.lovrabet.com','https://api.lovrabet.id','https://user-daily.lovrabet.com','3QaCqxE','3278060eFdMVP','335964sTqyJe','9370zhlqkb','china','https://skills.lovrabet.id','https://skills.lovrabet.com','https://user.lovrabet.id','https://runtime.lovrabet.ai','https://daily-runtime.lovrabet.ai','505834csKMSk','198QswgIH','global','https://skills-daily.lovrabet.com'];a130_0x2b53=function(){return _0x4b6de7;};return a130_0x2b53();}export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a130_0x4d4073(0xb3),'aliases':[a130_0x4d4073(0xa8)],'serviceDomains':{'production':{'user':a130_0x4d4073(0xb6),'api':'https://api.lovrabet.com','runtime':a130_0x4d4073(0xb2),'skill':a130_0x4d4073(0xaa),'kbService':a130_0x4d4073(0xba)},'daily':{'user':a130_0x4d4073(0xc2),'api':'https://daily-api.lovrabet.com','runtime':'https://daily-runtime.lovrabet.com','skill':a130_0x4d4073(0xb1),'kbService':a130_0x4d4073(0xc0)}}},'id':{'enabled':!![],'label':a130_0x4d4073(0xb4),'aliases':[a130_0x4d4073(0xb9)],'serviceDomains':{'production':{'user':a130_0x4d4073(0xab),'api':a130_0x4d4073(0xc1),'runtime':a130_0x4d4073(0xbd),'skill':a130_0x4d4073(0xa9),'kbService':'https://kb-service.lovrabet.id'}}},'global':{'enabled':!![],'label':a130_0x4d4073(0xbe),'aliases':[],'serviceDomains':{'production':{'user':'https://user.lovrabet.ai','api':'https://api.lovrabet.ai','runtime':a130_0x4d4073(0xac),'skill':'https://skills.lovrabet.ai'},'daily':{'user':a130_0x4d4073(0xbb),'api':a130_0x4d4073(0xb7),'runtime':a130_0x4d4073(0xad),'skill':'https://skills-daily.lovrabet.ai'}}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a131_0x566407=a131_0x2653;(function(_0x3b8227,_0x5d4807){const _0x3255d7=a131_0x2653,_0x1330dc=_0x3b8227();while(!![]){try{const _0x1873ce=parseInt(_0x3255d7(0x77))/0x1*(-parseInt(_0x3255d7(0x6d))/0x2)+-parseInt(_0x3255d7(0x78))/0x3+parseInt(_0x3255d7(0x6c))/0x4+-parseInt(_0x3255d7(0x6a))/0x5*(-parseInt(_0x3255d7(0x6b))/0x6)+parseInt(_0x3255d7(0x70))/0x7+parseInt(_0x3255d7(0x74))/0x8+parseInt(_0x3255d7(0x6f))/0x9*(parseInt(_0x3255d7(0x69))/0xa);if(_0x1873ce===_0x5d4807)break;else _0x1330dc['push'](_0x1330dc['shift']());}catch(_0x4986d4){_0x1330dc['push'](_0x1330dc['shift']());}}}(a131_0x5c53,0xdbdc6));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST='e3423cad71c22edb18a8481be7bdb733ff2d4136c31aa3ae6da56271e32cced7';export const ENTERPRISE_ROUTING_PROTOCOL=a131_0x566407(0x71);function a131_0x5c53(){const _0x545f8b=['188150RVBPOr','5aKVzhd','1395090Olthep','1939860GJyaMR','6706eEVkRG','apiDomain','1269oRMwLY','2115610lUOEcY','lovrabet-routing/v1','userDomain','kbServiceDomain','150384NLtgnh','skillDomain','runtimeDomain','483HwkuUp','3514122UbRHUS','enterprise'];a131_0x5c53=function(){return _0x545f8b;};return a131_0x5c53();}function a131_0x2653(_0x545f4c,_0x122d81){_0x545f4c=_0x545f4c-0x68;const _0x5c5394=a131_0x5c53();let _0x26532b=_0x5c5394[_0x545f4c];return _0x26532b;}export const ENTERPRISE_ROUTING_KIND=a131_0x566407(0x68);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a131_0x566407(0x72),a131_0x566407(0x6e),a131_0x566407(0x76),'skillDomain',a131_0x566407(0x73)];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a131_0x566407(0x72),a131_0x566407(0x6e),a131_0x566407(0x76),a131_0x566407(0x75)];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x335142,_0x73eaa0){const _0x1502b8=a132_0x38d6,_0x215584=_0x335142();while(!![]){try{const _0x45f030=-parseInt(_0x1502b8(0x162))/0x1+parseInt(_0x1502b8(0x161))/0x2+parseInt(_0x1502b8(0x15d))/0x3+parseInt(_0x1502b8(0x158))/0x4*(-parseInt(_0x1502b8(0x15a))/0x5)+-parseInt(_0x1502b8(0x163))/0x6+parseInt(_0x1502b8(0x15b))/0x7+-parseInt(_0x1502b8(0x15f))/0x8;if(_0x45f030===_0x73eaa0)break;else _0x215584['push'](_0x215584['shift']());}catch(_0x2b903b){_0x215584['push'](_0x215584['shift']());}}}(a132_0x1b34,0x6a0de));import{jsx as a132_0x5aae77,jsxs as a132_0xd6710b}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';function a132_0x1b34(){const _0x25bf46=['4528746lmUIfJ','4xsLKYU','\x20to\x20view\x20available\x20commands.','1911005VJKktQ','5852805KPTiDn','green','2211222QitDfp','\x20\x20Use\x20','3467376CShCNu','column','1313136xnuadk','224945iQDYya'];a132_0x1b34=function(){return _0x25bf46;};return a132_0x1b34();}function a132_0x38d6(_0x4ab43e,_0x1b2451){_0x4ab43e=_0x4ab43e-0x158;const _0x1b3414=a132_0x1b34();let _0x38d64d=_0x1b3414[_0x4ab43e];return _0x38d64d;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x6bc52a=a132_0x38d6,{exit:_0x4a27d2}=useApp();return useEffect(()=>{_0x4a27d2();},[_0x4a27d2]),a132_0xd6710b(Box,{'flexDirection':_0x6bc52a(0x160),'marginTop':0x1,'marginBottom':0x1,'children':[a132_0x5aae77(Box,{'children':a132_0x5aae77(Text,{'bold':!![],'color':_0x6bc52a(0x15c),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a132_0xd6710b(Box,{'marginTop':0x1,'children':[a132_0x5aae77(Text,{'dimColor':!![],'children':_0x6bc52a(0x15e)}),a132_0x5aae77(Text,{'bold':!![],'color':_0x6bc52a(0x15c),'children':CLI_BIN_NAME+'\x20--help'}),a132_0x5aae77(Text,{'dimColor':!![],'children':_0x6bc52a(0x159)})]})]});}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3ed673,_0x3aac1e){const _0x803a20=a133_0x1087,_0x101d90=_0x3ed673();while(!![]){try{const _0x6dce73=parseInt(_0x803a20(0xc0))/0x1*(-parseInt(_0x803a20(0xbd))/0x2)+parseInt(_0x803a20(0xb0))/0x3*(parseInt(_0x803a20(0xb6))/0x4)+parseInt(_0x803a20(0xc9))/0x5+-parseInt(_0x803a20(0xc6))/0x6*(-parseInt(_0x803a20(0xb3))/0x7)+parseInt(_0x803a20(0xb2))/0x8*(-parseInt(_0x803a20(0xc4))/0x9)+-parseInt(_0x803a20(0xbc))/0xa+parseInt(_0x803a20(0xbe))/0xb;if(_0x6dce73===_0x3aac1e)break;else _0x101d90['push'](_0x101d90['shift']());}catch(_0xb33f42){_0x101d90['push'](_0x101d90['shift']());}}}(a133_0x30a7,0x68aa2));import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x5c55d6={}){const _0x290f48=a133_0x1087,_0x2ef1f2=installBuiltinSkill(_0x5c55d6);if(_0x2ef1f2['ok']){const _0x23b5b3=_0x2ef1f2[_0x290f48(0xae)]?_0x290f48(0xb5):_0x290f48(0xaf),_0x1ed327=_0x2ef1f2[_0x290f48(0xc5)]?_0x290f48(0xb1)+_0x2ef1f2['installedPath']:_0x290f48(0xc1);return console[_0x290f48(0xb8)](_0x290f48(0xbb)+_0x2ef1f2[_0x290f48(0xba)]+'\x20'+_0x23b5b3+_0x1ed327),_0x2ef1f2;}const _0x4803b5=_0x290f48(0xc3)+(_0x2ef1f2[_0x290f48(0xc8)]??_0x290f48(0xb7))+']\x20'+(_0x2ef1f2[_0x290f48(0xbf)]??_0x290f48(0xc7))+'.\x20'+(_0x290f48(0xb9)+_0x2ef1f2['repairCommand']);if(_0x2ef1f2[_0x290f48(0xc8)]===_0x290f48(0xc2))throw new Error(_0x4803b5);return console[_0x290f48(0xb4)](_0x4803b5),_0x2ef1f2;}function a133_0x1087(_0x2393c9,_0x54641e){_0x2393c9=_0x2393c9-0xae;const _0x30a7fd=a133_0x30a7();let _0x1087ef=_0x30a7fd[_0x2393c9];return _0x1087ef;}function a133_0x30a7(){const _0x26c879=['skillVersion','Lovrabet\x20Built-in\x20Skill\x20','8031420VlXJMK','209260sivvDF','14335673JSyDyM','error','8LINhyL','\x20via\x20skills@latest','SOURCE_INVALID','[BUILTIN_SKILL_INSTALL_','548433YaGvIj','installedPath','1129974hSbPjt','Installation\x20failed','code','73395pYHWYc','changed','already\x20current','3cYGZAl','\x20at\x20','8eAiPow','14luqxMZ','warn','installed','1740980BRiBCU','FAILED','log','Repair\x20with:\x20'];a133_0x30a7=function(){return _0x26c879;};return a133_0x30a7();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a134_0x3a8b(_0x3c4e53,_0x2ac485){_0x3c4e53=_0x3c4e53-0x170;const _0x27219a=a134_0x2721();let _0x3a8b9d=_0x27219a[_0x3c4e53];return _0x3a8b9d;}(function(_0x5a1ee6,_0x335c14){const _0xf2b97b=a134_0x3a8b,_0x56f902=_0x5a1ee6();while(!![]){try{const _0xbad6dc=-parseInt(_0xf2b97b(0x17e))/0x1+-parseInt(_0xf2b97b(0x173))/0x2*(parseInt(_0xf2b97b(0x17f))/0x3)+parseInt(_0xf2b97b(0x178))/0x4*(parseInt(_0xf2b97b(0x17a))/0x5)+-parseInt(_0xf2b97b(0x180))/0x6+parseInt(_0xf2b97b(0x175))/0x7+parseInt(_0xf2b97b(0x181))/0x8*(parseInt(_0xf2b97b(0x171))/0x9)+parseInt(_0xf2b97b(0x179))/0xa;if(_0xbad6dc===_0x335c14)break;else _0x56f902['push'](_0x56f902['shift']());}catch(_0x4dc248){_0x56f902['push'](_0x56f902['shift']());}}}(a134_0x2721,0x7d731));function a134_0x2721(){const _0x415501=['confirmationDescription','trim','string','1023054fPybpf','1479663zZEpqx','6045720AwHKqg','181904UnkVKw','replace','171ByUcHo','risk','2EtpsHf','write','5207230lplvJs','high-risk-write','Run\x20this\x20write\x20operation','116ZNzLps','17673710XkrxTP','16285hPFrzx'];a134_0x2721=function(){return _0x415501;};return a134_0x2721();}const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildLovrabetConfirmationRequest(_0x28d675,_0x30b4c7,_0x4df4f0){const _0x412718=a134_0x3a8b,_0x11a498=normalizeText(_0x28d675[_0x412718(0x17b)],DESCRIPTION_MAX_LENGTH),_0x5564a5=normalizeText(_0x28d675['description'],DESCRIPTION_MAX_LENGTH);return{'operation':_0x30b4c7,'risk':requireWriteRisk(_0x28d675),'description':_0x11a498||_0x5564a5||_0x412718(0x177),..._0x4df4f0?{'signal':_0x4df4f0}:{}};}function requireWriteRisk(_0x309819){const _0x571433=a134_0x3a8b;if(_0x309819[_0x571433(0x172)]===_0x571433(0x174)||_0x309819[_0x571433(0x172)]===_0x571433(0x176))return _0x309819['risk'];throw new Error('Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.');}function normalizeText(_0x3a1498,_0x5a0374){const _0x2d0280=a134_0x3a8b;if(typeof _0x3a1498!==_0x2d0280(0x17d))return'';return _0x3a1498[_0x2d0280(0x170)](/[\u0000-\u001f\u007f]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0x2d0280(0x17c)]()['slice'](0x0,_0x5a0374);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x563e92,_0x3552c5){const _0x2c370c=a135_0x3c0c,_0x29b31f=_0x563e92();while(!![]){try{const _0x500080=parseInt(_0x2c370c(0x116))/0x1*(-parseInt(_0x2c370c(0x114))/0x2)+parseInt(_0x2c370c(0x115))/0x3+-parseInt(_0x2c370c(0x11a))/0x4+parseInt(_0x2c370c(0x117))/0x5*(parseInt(_0x2c370c(0x11c))/0x6)+-parseInt(_0x2c370c(0x11b))/0x7*(-parseInt(_0x2c370c(0x118))/0x8)+-parseInt(_0x2c370c(0x122))/0x9+-parseInt(_0x2c370c(0x112))/0xa;if(_0x500080===_0x3552c5)break;else _0x29b31f['push'](_0x29b31f['shift']());}catch(_0x2b7257){_0x29b31f['push'](_0x29b31f['shift']());}}}(a135_0x19ff,0x81e6d));function a135_0x19ff(){const _0xea7a37=['high-risk-write','50MenzLB','2033487BsbLCY','14563oqMCqe','5iNIihH','392bfFmvH','join','1311600OaWEIK','115094cewjDO','2593236KgJpqm','risk','command','trim','lovrabet.write.completed','split','211833TqJUGQ','6681040HdpBpj'];a135_0x19ff=function(){return _0xea7a37;};return a135_0x19ff();}export function canonicalLovrabetOperation(_0x173f3b){const _0x3c8e04=a135_0x3c0c;return[_0x173f3b['service'],..._0x173f3b[_0x3c8e04(0x11e)][_0x3c8e04(0x11f)]()[_0x3c8e04(0x121)](/\s+/)]['filter'](Boolean)[_0x3c8e04(0x119)]('.');}function a135_0x3c0c(_0xd59a7a,_0x432c7e){_0xd59a7a=_0xd59a7a-0x112;const _0x19ff1a=a135_0x19ff();let _0x3c0cf3=_0x19ff1a[_0xd59a7a];return _0x3c0cf3;}export function createLovrabetWriteMetadata(_0x51df92,_0x1a4b1a,_0x2dd098,_0x5f2610){const _0x154bf3=a135_0x3c0c;if(_0x5f2610||_0x2dd098['ok']!==!![]||_0x51df92[_0x154bf3(0x11d)]!=='write'&&_0x51df92[_0x154bf3(0x11d)]!==_0x154bf3(0x113))return undefined;const _0x1cc214=_0x51df92['writeEventSubject']?.(_0x2dd098),_0x4830be={'type':_0x154bf3(0x120),'operation':_0x1a4b1a,'risk':_0x51df92['risk'],..._0x1cc214?{'subject':_0x1cc214}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x4830be}};}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xd77350,_0x379e90){const _0x2ad0f4=a136_0x5621,_0xb3d706=_0xd77350();while(!![]){try{const _0x9aedc6=-parseInt(_0x2ad0f4(0x1c6))/0x1*(parseInt(_0x2ad0f4(0x1d8))/0x2)+parseInt(_0x2ad0f4(0x1d6))/0x3+-parseInt(_0x2ad0f4(0x1c8))/0x4*(parseInt(_0x2ad0f4(0x1cd))/0x5)+parseInt(_0x2ad0f4(0x1ca))/0x6+-parseInt(_0x2ad0f4(0x1e3))/0x7+-parseInt(_0x2ad0f4(0x1cf))/0x8*(parseInt(_0x2ad0f4(0x1e6))/0x9)+parseInt(_0x2ad0f4(0x1d9))/0xa*(parseInt(_0x2ad0f4(0x1da))/0xb);if(_0x9aedc6===_0x379e90)break;else _0xb3d706['push'](_0xb3d706['shift']());}catch(_0x5d27a5){_0xb3d706['push'](_0xb3d706['shift']());}}}(a136_0x5758,0x1feb8));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';function a136_0x5758(){const _0x1c2d11=['execute','high-risk-write','present','dry-run','723249RReMsY','args','15930yilEPW','3314130JbBDAi','11CWRrrQ','dryRun','signal','AbortError','isNonInteractive','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','format','reason','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','867797SShHbe','yes','definition','1651257cQUimo','confirmation','aborted','result','presentation','3NBjCyh','risk','8BaJviE','data','117270UTdOBq','write','message','324895yMniRR','confirm','8MVvjHc','command','rawFlags'];a136_0x5758=function(){return _0x1c2d11;};return a136_0x5758();}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:_0x25fde5,command:_0x41fa54,risk:_0x50bf2b,dryRun:_0x1bf145}){const _0x366391=a136_0x5621;return JSON['stringify']({'ok':_0x25fde5['ok'],'command':_0x41fa54,'risk':_0x50bf2b,..._0x1bf145?{'dryRun':!![]}:{},..._0x25fde5[_0x366391(0x1c9)]!==undefined?{'data':_0x25fde5[_0x366391(0x1c9)]}:{},..._0x25fde5[_0x366391(0x1cc)]?{'message':_0x25fde5[_0x366391(0x1cc)]}:{}});}};export async function invokeLovrabet(_0x14ae2a,_0x343207){const _0x175717=a136_0x5621;throwIfAborted(_0x343207['signal']);const _0x15946b=await resolveLovrabetInvocation(_0x14ae2a),_0x452f0b=canonicalLovrabetOperation(_0x15946b['definition']);return await confirmWriteBeforeQueue(_0x15946b[_0x175717(0x1e5)],_0x15946b['rawFlags'],_0x452f0b,_0x343207),runSerialized(async()=>{const _0x2f69bc=_0x175717;throwIfAborted(_0x343207[_0x2f69bc(0x1dc)]);const _0x44c350={},_0x357191=buildConfigFromFlags(_0x15946b['rawFlags']);await initGlobalEnvironment(_0x357191);const _0x2da77e=createPipelineEnv(_0x357191,{..._0x15946b[_0x2f69bc(0x1d1)],'yes':_0x15946b[_0x2f69bc(0x1e5)][_0x2f69bc(0x1c7)]===_0x2f69bc(0x1d3)?!![]:_0x15946b[_0x2f69bc(0x1d1)][_0x2f69bc(0x1e4)],'nonInteractive':!![]});_0x2da77e['args']=_0x15946b[_0x2f69bc(0x1d7)],_0x2da77e[_0x2f69bc(0x1de)]=!![],_0x2da77e['riskLevel']='high-risk-write';const _0x57858c=withAbortSignal(_0x15946b[_0x2f69bc(0x1e5)],_0x343207[_0x2f69bc(0x1dc)]),_0x2f0eb6=createLovrabetRunnerAdapter({'formatOutput'(_0x449b0d,_0x2a2eeb){const _0xa1de9e=_0x2f69bc;_0x44c350['result']=_0x449b0d,_0x44c350['command']=_0x2a2eeb[_0xa1de9e(0x1d0)],_0x44c350[_0xa1de9e(0x1c7)]=_0x2a2eeb['risk'],_0x44c350[_0xa1de9e(0x1e0)]=_0x2a2eeb['format'],_0x44c350[_0xa1de9e(0x1db)]=_0x2a2eeb['dryRun']===!![];},async 'confirmHighRisk'(){const _0x53fd05=_0x2f69bc;throw new Error(_0x53fd05(0x1df));}});try{await runCommand(_0x57858c,_0x2da77e,_0x2f0eb6);if(!_0x44c350[_0x2f69bc(0x1e9)]||!_0x44c350[_0x2f69bc(0x1d0)]||!_0x44c350[_0x2f69bc(0x1c7)]||!_0x44c350[_0x2f69bc(0x1e0)])throw new Error(_0x2f69bc(0x1e2));const _0x515a16=_0x343207[_0x2f69bc(0x1ea)]??defaultPresentation,_0x5df974=_0x44c350[_0x2f69bc(0x1db)]===!![],_0x3d7ca3={'result':_0x44c350[_0x2f69bc(0x1e9)],'command':_0x44c350[_0x2f69bc(0x1d0)],'operation':_0x452f0b,'risk':_0x44c350[_0x2f69bc(0x1c7)],'format':_0x44c350['format'],'dryRun':_0x5df974},_0x530cd3=createLovrabetWriteMetadata(_0x15946b[_0x2f69bc(0x1e5)],_0x452f0b,_0x44c350[_0x2f69bc(0x1e9)],_0x5df974);let _0xaaf62a;try{_0xaaf62a=await _0x515a16[_0x2f69bc(0x1d4)](_0x3d7ca3);}catch(_0x160e5d){if(!_0x530cd3||_0x515a16===defaultPresentation)throw _0x160e5d;_0xaaf62a=await defaultPresentation['present'](_0x3d7ca3);}return{'operation':_0x452f0b,'risk':_0x44c350[_0x2f69bc(0x1c7)],'mode':_0x5df974?_0x2f69bc(0x1d5):'execute','result':_0x44c350[_0x2f69bc(0x1e9)],'output':_0xaaf62a,..._0x530cd3?{'metadata':_0x530cd3}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x41b40e,_0x57bce8,_0x489c7a,_0x558433){const _0x30b3ab=a136_0x5621;if(_0x57bce8['dryRun']===!![]||_0x41b40e[_0x30b3ab(0x1c7)]!==_0x30b3ab(0x1cb)&&_0x41b40e[_0x30b3ab(0x1c7)]!==_0x30b3ab(0x1d3))return;await _0x558433[_0x30b3ab(0x1e7)][_0x30b3ab(0x1ce)](buildLovrabetConfirmationRequest(_0x41b40e,_0x489c7a,_0x558433[_0x30b3ab(0x1dc)]));}function a136_0x5621(_0x232d3b,_0x17795c){_0x232d3b=_0x232d3b-0x1c6;const _0x5758dc=a136_0x5758();let _0x5621ad=_0x5758dc[_0x232d3b];return _0x5621ad;}function withAbortSignal(_0x112843,_0xcf621e){return{..._0x112843,async 'execute'(_0x232c74){const _0x4632a6=a136_0x5621;return throwIfAborted(_0xcf621e),_0x112843[_0x4632a6(0x1d2)]({..._0x232c74,'signal':_0xcf621e});}};}function throwIfAborted(_0x2ff45a){const _0x3290af=a136_0x5621;if(_0x2ff45a?.[_0x3290af(0x1e8)])throw _0x2ff45a[_0x3290af(0x1e1)]instanceof Error?_0x2ff45a[_0x3290af(0x1e1)]:new DOMException('Lovrabet\x20invocation\x20aborted.',_0x3290af(0x1dd));}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xd80d5,_0x512b7a){const _0x323927=a137_0x4eae,_0x5bc680=_0xd80d5();while(!![]){try{const _0x27be85=-parseInt(_0x323927(0x170))/0x1*(-parseInt(_0x323927(0x16d))/0x2)+parseInt(_0x323927(0x173))/0x3*(parseInt(_0x323927(0x172))/0x4)+-parseInt(_0x323927(0x176))/0x5+parseInt(_0x323927(0x175))/0x6*(-parseInt(_0x323927(0x16f))/0x7)+-parseInt(_0x323927(0x16b))/0x8+-parseInt(_0x323927(0x171))/0x9*(parseInt(_0x323927(0x16c))/0xa)+parseInt(_0x323927(0x174))/0xb;if(_0x27be85===_0x512b7a)break;else _0x5bc680['push'](_0x5bc680['shift']());}catch(_0x31d36b){_0x5bc680['push'](_0x5bc680['shift']());}}}(a137_0xa43b,0x23936));function a137_0xa43b(){const _0x4814b8=['734592BZucsZ','637210ytIHmg','11182HjqJRl','catch','7ZyXiAn','39iAkPJU','18tmHYVk','4IJoNxJ','552822ylDGWA','2638251mRBRoN','438078SgyKfM','1020835VgNZXB'];a137_0xa43b=function(){return _0x4814b8;};return a137_0xa43b();}function a137_0x4eae(_0xdf2514,_0x313cfc){_0xdf2514=_0xdf2514-0x16b;const _0xa43b2b=a137_0xa43b();let _0x4eae93=_0xa43b2b[_0xdf2514];return _0x4eae93;}let tail=Promise['resolve']();export async function runSerialized(_0x408da6){const _0x3c501d=a137_0x4eae,_0x2adc71=tail;let _0x43bd88;tail=new Promise(_0x2cd3ce=>{_0x43bd88=_0x2cd3ce;}),await _0x2adc71[_0x3c501d(0x16e)](()=>undefined);try{return await _0x408da6();}finally{_0x43bd88();}}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xe5e9af,_0x5c5bde){const _0x32b495=a138_0x60a3,_0x199308=_0xe5e9af();while(!![]){try{const _0x1a07c0=-parseInt(_0x32b495(0xdd))/0x1+parseInt(_0x32b495(0xd6))/0x2+-parseInt(_0x32b495(0xe0))/0x3*(parseInt(_0x32b495(0xd0))/0x4)+parseInt(_0x32b495(0xd3))/0x5+-parseInt(_0x32b495(0xd8))/0x6*(parseInt(_0x32b495(0xd1))/0x7)+parseInt(_0x32b495(0xe3))/0x8*(parseInt(_0x32b495(0xde))/0x9)+parseInt(_0x32b495(0xe4))/0xa*(parseInt(_0x32b495(0xce))/0xb);if(_0x1a07c0===_0x5c5bde)break;else _0x199308['push'](_0x199308['shift']());}catch(_0x5a0487){_0x199308['push'](_0x199308['shift']());}}}(a138_0x59bd,0x5f0e1));import a138_0xb518ef from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a138_0x60a3(_0x98c68d,_0x4eeeb1){_0x98c68d=_0x98c68d-0xce;const _0x59bd88=a138_0x59bd();let _0x60a3a2=_0x59bd88[_0x98c68d];return _0x60a3a2;}import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';import{buildMeowFlags}from'../constant/cli.js';function a138_0x59bd(){const _0x1e04c1=['163512ihtZxl','75080IRPtwf','assign','unknownCommand','flatMap','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','1386jwIpjb','hint','621652GKXHXc','220122bNpOGc','args','2717075XcPElN','definition','join','391020vDoIEQ','flags','6SbnIWD','message','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','validation','input','671028GXCbBL','81TKvUhj','slice','15Eubyux','../framework/preparse.js','../commands/registry.js'];a138_0x59bd=function(){return _0x1e04c1;};return a138_0x59bd();}import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x48bf81){const _0x5d632b=a138_0x60a3,_0x5cd209=a138_0xb518ef('',{'importMeta':import.meta,'argv':_0x48bf81,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x52f691=[..._0x5cd209[_0x5d632b(0xdc)]],_0x319ae7=_0x5cd209[_0x5d632b(0xd7)];await correctFlags(_0x319ae7);const _0xb7b4f3=_0x52f691[0x0];if(!_0xb7b4f3)throw CliErrors[_0x5d632b(0xdb)](_0x5d632b(0xe8));const _0x469471=resolveRemovedCommand(_0xb7b4f3,_0x52f691[0x1]);if(_0x469471)throw CliErrors[_0x5d632b(0xdb)](_0x469471[_0x5d632b(0xd9)],_0x469471[_0x5d632b(0xcf)]);if(!isKnownService(_0xb7b4f3)){const _0x46fa23=resolveDynamicServiceCommand(_0x52f691,_0x319ae7);if(!_0x46fa23)throw CliErrors[_0x5d632b(0xe6)](_0x52f691[_0x5d632b(0xd5)]('\x20'));return Object[_0x5d632b(0xe5)](_0x319ae7,_0x46fa23[_0x5d632b(0xd7)]),{'definition':_0x46fa23[_0x5d632b(0xd4)],'rawFlags':_0x319ae7,'args':_0x46fa23[_0x5d632b(0xd2)]};}const _0x2818be=getServiceEntry(_0xb7b4f3),_0x24512c=_0x52f691[0x1]||_0x2818be['defaultCommand'];if(!_0x24512c)throw CliErrors[_0x5d632b(0xdb)](_0x5d632b(0xda)+_0xb7b4f3+'\x22.');const _0x1cd046=findDefinition(_0xb7b4f3,_0x24512c);if(!_0x1cd046)throw CliErrors[_0x5d632b(0xe6)](_0xb7b4f3+'\x20'+_0x24512c);return{'definition':_0x1cd046,'rawFlags':_0x319ae7,'args':_0x52f691[_0x5d632b(0xdf)](0x2)};}async function correctFlags(_0x31e516){const _0x586075=a138_0x60a3;try{const {correctFlags:_0x4289cc}=await import(_0x586075(0xe1)),{getAllDefinitions:_0x173876}=await import(_0x586075(0xe2)),_0x3d8a81=_0x173876()[_0x586075(0xe7)](_0x5e9887=>_0x5e9887['flags']??[]),_0x6086c0=_0x4289cc(_0x31e516,_0x3d8a81);Object[_0x586075(0xe5)](_0x31e516,_0x6086c0[_0x586075(0xd7)]);}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a139_0x168b62=a139_0x4066;function a139_0x1061(){const _0xbe0ca0=['rowIndexes','size','isSafeInteger','225455ycSerK','batches','fileHash','has','count','completed','reduce','filter','code','mappingHash','datasetCode','hasOwn','Import\x20checkpoint\x20contains\x20duplicate\x20generated\x20IDs.','warnings','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','resume','sheet','ids','report','stringify','elapsedMs','flatMap','schemaHash','string','237012ssIICi','maxBatchBytes','add','3459393VPHuyV','imageFields','unknown','readTask','toString','Partial\x20import\x20task\x20readback\x20conflict.','rows','Import\x20content\x20conflict\x20at\x20Excel\x20row\x20','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','batchSize','Import\x20checkpoint\x20contains\x20a\x20content\x20conflict.','binding','succeeded','schemaFingerprint','keys','number','Invalid\x20import\x20batch\x20size.','status','Excel\x20row\x20','Import\x20generated\x20ID\x20collision.','values','utf8','push','includes','reconcileImageConflicts','map','schemaVersion','byteLength','some','768840OXvELw','conflict','Cannot\x20read\x20the\x20import\x20checkpoint.','emptyRows','incomplete','22488XZjbZs','taskId','Invalid\x20write\x20result.','Import\x20generated\x20ID\x20conflict.','now','errors','413cEizEQ','runtimeDomain','importId','Invalid\x20import\x20task\x20readback\x20response.','The\x20import\x20write\x20outcome\x20is\x20unknown.\x20Resume\x20to\x20reconcile\x20the\x20original\x20task\x20marker\x20before\x20continuing.','length','uploadFields','Import\x20checkpoint\x20does\x20not\x20match\x20the\x20input,\x20target\x20or\x20identity.','1062720EDqzta','4orJbCT','isArray','Auto-ID\x20import\x20items\x20cannot\x20contain\x20a\x20primary\x20key.','4782MXQdGY','rowNumber','checkpoint','isInteger','193jfCWjr','unsent'];a139_0x1061=function(){return _0xbe0ca0;};return a139_0x1061();}(function(_0x1653ad,_0x58e703){const _0x565f09=a139_0x4066,_0x341aac=_0x1653ad();while(!![]){try{const _0x6d6fb4=-parseInt(_0x565f09(0x1e6))/0x1*(-parseInt(_0x565f09(0x1e2))/0x2)+parseInt(_0x565f09(0x1ab))/0x3*(parseInt(_0x565f09(0x1df))/0x4)+-parseInt(_0x565f09(0x193))/0x5+-parseInt(_0x565f09(0x1cb))/0x6+-parseInt(_0x565f09(0x1d6))/0x7*(-parseInt(_0x565f09(0x1d0))/0x8)+-parseInt(_0x565f09(0x1ae))/0x9+parseInt(_0x565f09(0x1de))/0xa;if(_0x6d6fb4===_0x58e703)break;else _0x341aac['push'](_0x341aac['shift']());}catch(_0x54e5a5){_0x341aac['push'](_0x341aac['shift']());}}}(a139_0x1061,0x3e404));import{randomBytes,randomUUID}from'node:crypto';import{lstat,readFile}from'node:fs/promises';function a139_0x4066(_0x40a84f,_0x1adaed){_0x40a84f=_0x40a84f-0x192;const _0x10617d=a139_0x1061();let _0x406619=_0x10617d[_0x40a84f];return _0x406619;}import{acquireLock,assertImportContract,assertImportPaths,canonical,sameImportValue,resolveImportOutputPath,saveImportJson}from'./runner.js';const validId=_0x2495c1=>typeof _0x2495c1===a139_0x168b62(0x1bd)&&Number[a139_0x168b62(0x192)](_0x2495c1)&&_0x2495c1>0x0;export async function runAutoIdExcelImport(_0x1ea967){const _0x4e8fc4=a139_0x168b62,_0x40e7c4={..._0x1ea967,'checkpoint':await resolveImportOutputPath(_0x1ea967['checkpoint']),'report':await resolveImportOutputPath(_0x1ea967[_0x4e8fc4(0x1a5)])},{manifest:_0xd69701,contract:_0x13fb99,api:_0x4327a6}=_0x40e7c4;assertImportContract(_0x13fb99,_0x40e7c4['appCode'],_0x40e7c4['datasetCode']);if(_0x13fb99[_0x4e8fc4(0x1c8)]!==0x2||!_0x4327a6[_0x4e8fc4(0x1b1)])throw Error('The\x20auto-ID\x20runner\x20requires\x20the\x20v2\x20task\x20readback\x20contract.');if(_0xd69701[_0x4e8fc4(0x1d5)][_0x4e8fc4(0x1db)])throw Error('Excel\x20contains\x20invalid\x20rows;\x20no\x20data\x20was\x20written.');if(!_0xd69701[_0x4e8fc4(0x1b4)][_0x4e8fc4(0x1db)])throw Error('Excel\x20contains\x20no\x20valid\x20data\x20rows.');if(!Number[_0x4e8fc4(0x1e5)](_0x40e7c4['batchSize'])||_0x40e7c4[_0x4e8fc4(0x1b7)]<0x1||_0x40e7c4[_0x4e8fc4(0x1b7)]>_0x13fb99['maxBatchSize'])throw Error(_0x4e8fc4(0x1be));assertImportPaths(_0x40e7c4[_0x4e8fc4(0x1e4)],_0x40e7c4[_0x4e8fc4(0x1a5)]);if(_0xd69701[_0x4e8fc4(0x1b4)][_0x4e8fc4(0x1ca)](_0x16d4c5=>Object[_0x4e8fc4(0x19e)](_0x16d4c5['values'],'id')))throw Error(_0x4e8fc4(0x1e1));const _0x502a44=(_0x4e260f,_0xe61d23)=>Buffer[_0x4e8fc4(0x1c9)](JSON[_0x4e8fc4(0x1a6)]({'schemaFingerprint':_0x13fb99[_0x4e8fc4(0x1bb)],'taskId':_0xe61d23,'items':_0x4e260f[_0x4e8fc4(0x1c7)](_0x270f0d=>_0xd69701['rows'][_0x270f0d][_0x4e8fc4(0x1c2)])}),'utf8'),_0x368d72=[];let _0x19253d=[];for(let _0x50152f=0x0;_0x50152f<_0xd69701['rows'][_0x4e8fc4(0x1db)];_0x50152f++){if(_0x502a44([_0x50152f],0x2**0x34)>_0x13fb99[_0x4e8fc4(0x1ac)])throw Error(_0x4e8fc4(0x1c0)+_0xd69701[_0x4e8fc4(0x1b4)][_0x50152f][_0x4e8fc4(0x1e3)]+_0x4e8fc4(0x1a1));_0x19253d[_0x4e8fc4(0x1db)]&&(_0x19253d[_0x4e8fc4(0x1db)]===_0x40e7c4[_0x4e8fc4(0x1b7)]||_0x502a44([..._0x19253d,_0x50152f],0x2**0x34)>_0x13fb99[_0x4e8fc4(0x1ac)])&&(_0x368d72[_0x4e8fc4(0x1c4)](_0x19253d),_0x19253d=[]),_0x19253d[_0x4e8fc4(0x1c4)](_0x50152f);}if(_0x19253d['length'])_0x368d72[_0x4e8fc4(0x1c4)](_0x19253d);const _0x20ecdb={'appCode':_0x40e7c4['appCode'],'datasetCode':_0x40e7c4[_0x4e8fc4(0x19d)],'runtimeDomain':_0x40e7c4[_0x4e8fc4(0x1d7)],'actorId':_0x13fb99['actorId'],'fileHash':_0xd69701[_0x4e8fc4(0x195)],'mappingHash':_0xd69701[_0x4e8fc4(0x19c)],'schemaHash':_0xd69701[_0x4e8fc4(0x1a9)],'remoteSchemaHash':_0x13fb99['schemaFingerprint'],'batchSize':_0x40e7c4['batchSize'],'maxBatchBytes':_0x13fb99[_0x4e8fc4(0x1ac)],'sheet':_0xd69701[_0x4e8fc4(0x1a3)],'strategy':_0x13fb99['strategy']},_0xca0eee=await acquireLock(_0x40e7c4[_0x4e8fc4(0x1e4)]);let _0x240f82;const _0x2cffcc=Date[_0x4e8fc4(0x1d4)]();let _0x2b79c1=0x0;const _0x1e254c=[],_0x51adbf=_0x855496=>_0x240f82?.['batches'][_0x4e8fc4(0x19a)](_0x1e4956=>_0x1e4956['status']===_0x855496)[_0x4e8fc4(0x199)]((_0xe8cd8a,_0x5f5883)=>_0xe8cd8a+_0x5f5883[_0x4e8fc4(0x1e8)][_0x4e8fc4(0x1db)],0x0)??0x0,_0x504bc5=()=>({'importId':_0x240f82?.[_0x4e8fc4(0x1d8)],'sourceRows':_0xd69701[_0x4e8fc4(0x1b4)]['length'],'emptyRows':_0xd69701[_0x4e8fc4(0x1ce)][_0x4e8fc4(0x1db)],'succeeded':_0x51adbf('succeeded'),'unknown':_0x51adbf('pending'),'conflicts':_0x51adbf(_0x4e8fc4(0x1cc)),'notAttempted':_0x51adbf(_0x4e8fc4(0x1e7)),'batches':_0x2b79c1,'batchResults':_0x1e254c,'elapsedMs':Date[_0x4e8fc4(0x1d4)]()-_0x2cffcc,'checkpoint':_0x40e7c4['checkpoint'],'report':_0x40e7c4[_0x4e8fc4(0x1a5)],'warnings':_0xd69701[_0x4e8fc4(0x1a0)]});try{if(_0x40e7c4[_0x4e8fc4(0x1a2)]){try{_0x240f82=JSON['parse'](await readFile(_0x40e7c4[_0x4e8fc4(0x1e4)],_0x4e8fc4(0x1c3)));}catch{throw Error(_0x4e8fc4(0x1cd));}if(!_0x240f82||_0x240f82['version']!==0x2||typeof _0x240f82[_0x4e8fc4(0x1d8)]!==_0x4e8fc4(0x1aa)||!_0x240f82[_0x4e8fc4(0x1d8)]||canonical(_0x240f82[_0x4e8fc4(0x1b9)])!==canonical(_0x20ecdb)||!Array[_0x4e8fc4(0x1e0)](_0x240f82[_0x4e8fc4(0x194)])||_0x240f82[_0x4e8fc4(0x194)]['length']!==_0x368d72[_0x4e8fc4(0x1db)]||new Set(_0x240f82[_0x4e8fc4(0x194)][_0x4e8fc4(0x1c7)](_0x529bcb=>_0x529bcb[_0x4e8fc4(0x1d1)]))['size']!==_0x368d72[_0x4e8fc4(0x1db)]||_0x240f82[_0x4e8fc4(0x194)][_0x4e8fc4(0x1ca)]((_0x20e771,_0x1c58a6)=>!validId(_0x20e771[_0x4e8fc4(0x1d1)])||_0x20e771[_0x4e8fc4(0x1d1)]>0x2**0x34||canonical(_0x20e771[_0x4e8fc4(0x1e8)])!==canonical(_0x368d72[_0x1c58a6])||![_0x4e8fc4(0x1e7),'pending',_0x4e8fc4(0x1ba),_0x4e8fc4(0x1cc)][_0x4e8fc4(0x1c5)](_0x20e771[_0x4e8fc4(0x1bf)])||!Array['isArray'](_0x20e771[_0x4e8fc4(0x1a4)])||_0x20e771['ids'][_0x4e8fc4(0x1ca)](_0x4d5009=>!validId(_0x4d5009))||new Set(_0x20e771[_0x4e8fc4(0x1a4)])[_0x4e8fc4(0x1e9)]!==_0x20e771[_0x4e8fc4(0x1a4)][_0x4e8fc4(0x1db)]||_0x20e771['ids']['length']!==0x0&&_0x20e771[_0x4e8fc4(0x1a4)][_0x4e8fc4(0x1db)]!==_0x20e771[_0x4e8fc4(0x1e8)][_0x4e8fc4(0x1db)]||_0x20e771['status']==='succeeded'&&_0x20e771[_0x4e8fc4(0x1a4)][_0x4e8fc4(0x1db)]!==_0x20e771['rowIndexes'][_0x4e8fc4(0x1db)]||_0x20e771[_0x4e8fc4(0x1bf)]===_0x4e8fc4(0x1e7)&&_0x20e771[_0x4e8fc4(0x1a4)][_0x4e8fc4(0x1db)]!==0x0))throw Error(_0x4e8fc4(0x1dd));const _0x173915=_0x240f82['batches'][_0x4e8fc4(0x1a8)](_0x14c406=>_0x14c406['ids']);if(new Set(_0x173915)[_0x4e8fc4(0x1e9)]!==_0x173915[_0x4e8fc4(0x1db)])throw Error(_0x4e8fc4(0x19f));}else{try{await lstat(_0x40e7c4[_0x4e8fc4(0x1e4)]);throw Error(_0x4e8fc4(0x1b6));}catch(_0x200030){if(_0x200030[_0x4e8fc4(0x19b)]!=='ENOENT')throw _0x200030;}const _0x13fae7=new Set();_0x240f82={'version':0x2,'importId':randomUUID(),'binding':_0x20ecdb,'batches':_0x368d72[_0x4e8fc4(0x1c7)](_0x377618=>{const _0x2a98c2=_0x4e8fc4;let _0x3cdc3e;do{_0x3cdc3e=Number(BigInt('0x'+randomBytes(0x7)[_0x2a98c2(0x1b2)]('hex'))&(0x1n<<0x34n)-0x1n)+0x1;}while(_0x13fae7[_0x2a98c2(0x196)](_0x3cdc3e));return _0x13fae7[_0x2a98c2(0x1ad)](_0x3cdc3e),{'taskId':_0x3cdc3e,'rowIndexes':_0x377618,'ids':[],'status':_0x2a98c2(0x1e7)};})},await saveImportJson(_0x40e7c4[_0x4e8fc4(0x1e4)],_0x240f82);}await _0x40e7c4['onCheckpointReady']?.();const _0x17799f=_0x240f82,_0x31e3db=async(_0x4dc330,_0x22ee1c)=>{const _0x5c8b50=_0x4e8fc4;_0x4dc330[_0x5c8b50(0x1bf)]=_0x5c8b50(0x1cc),await saveImportJson(_0x40e7c4[_0x5c8b50(0x1e4)],_0x17799f);throw Error(_0x22ee1c);},_0x3b5f8f=async _0x3c60c3=>{const _0x27da79=_0x4e8fc4,_0x3d7b8e=await _0x4327a6[_0x27da79(0x1b1)](_0x3c60c3['taskId']);if(!Array[_0x27da79(0x1e0)](_0x3d7b8e))throw Error(_0x27da79(0x1d9));if(_0x3c60c3[_0x27da79(0x1bf)]===_0x27da79(0x1e7)&&_0x3d7b8e[_0x27da79(0x1db)])return _0x31e3db(_0x3c60c3,'Import\x20task\x20marker\x20collision;\x20stop\x20without\x20replacing\x20the\x20marker.');if(!_0x3d7b8e[_0x27da79(0x1db)]){if(_0x3c60c3[_0x27da79(0x1bf)]===_0x27da79(0x1ba)||_0x3c60c3['ids'][_0x27da79(0x1db)])return _0x31e3db(_0x3c60c3,'Previously\x20imported\x20records\x20are\x20no\x20longer\x20visible;\x20recovery\x20conflict.');return![];}if(_0x3d7b8e[_0x27da79(0x1db)]!==_0x3c60c3[_0x27da79(0x1e8)][_0x27da79(0x1db)])return _0x31e3db(_0x3c60c3,_0x27da79(0x1b3));const _0x477041=_0x3d7b8e[_0x27da79(0x1c7)](_0xf495a5=>_0xf495a5?.['id']);if(_0x477041[_0x27da79(0x1ca)](_0x43530c=>!validId(_0x43530c)))return _0x31e3db(_0x3c60c3,_0x27da79(0x1d3));const _0x32f822=_0x477041;if(_0x32f822[_0x27da79(0x1ca)](_0x36dfc1=>!validId(_0x36dfc1))||_0x32f822[_0x27da79(0x1ca)]((_0x3019a5,_0x37ee68)=>_0x37ee68>0x0&&_0x3019a5<=_0x32f822[_0x37ee68-0x1])||_0x3c60c3[_0x27da79(0x1a4)][_0x27da79(0x1db)]&&canonical(_0x32f822)!==canonical(_0x3c60c3['ids']))return _0x31e3db(_0x3c60c3,_0x27da79(0x1d3));const _0x5099d9=new Set(_0x17799f[_0x27da79(0x194)][_0x27da79(0x19a)](_0x6d7055=>_0x6d7055!==_0x3c60c3)['flatMap'](_0x1c9b4a=>_0x1c9b4a['ids']));if(_0x32f822['some'](_0x2484a7=>_0x5099d9[_0x27da79(0x196)](_0x2484a7)))return _0x31e3db(_0x3c60c3,_0x27da79(0x1c1));for(let _0x1c9c75=0x0;_0x1c9c75<_0x3d7b8e['length'];_0x1c9c75++){const _0x348cd9=_0xd69701['rows'][_0x3c60c3[_0x27da79(0x1e8)][_0x1c9c75]]['values'];if(Object[_0x27da79(0x1bc)](_0x348cd9)[_0x27da79(0x1ca)](_0x410d1e=>!sameImportValue(_0x348cd9[_0x410d1e],_0x3d7b8e[_0x1c9c75][_0x410d1e],_0xd69701[_0x27da79(0x1af)]?.[_0x27da79(0x1c5)](_0x410d1e)&&!_0xd69701[_0x27da79(0x1dc)]?.[_0x27da79(0x1c5)](_0x410d1e))))return _0x31e3db(_0x3c60c3,_0x27da79(0x1b5)+_0xd69701[_0x27da79(0x1b4)][_0x3c60c3[_0x27da79(0x1e8)][_0x1c9c75]]['rowNumber']+'.');}return _0x3c60c3[_0x27da79(0x1a4)]=_0x32f822,_0x3c60c3[_0x27da79(0x1bf)]=_0x27da79(0x1ba),await saveImportJson(_0x40e7c4[_0x27da79(0x1e4)],_0x17799f),!![];};if(_0x17799f[_0x4e8fc4(0x194)][_0x4e8fc4(0x1ca)](_0x27b6dd=>_0x27b6dd['status']==='conflict'&&!(_0x40e7c4['resume']&&_0x40e7c4[_0x4e8fc4(0x1c6)]&&_0xd69701[_0x4e8fc4(0x1af)]?.[_0x4e8fc4(0x1db)]&&_0x27b6dd[_0x4e8fc4(0x1a4)]['length']===_0x27b6dd[_0x4e8fc4(0x1e8)][_0x4e8fc4(0x1db)])))throw Error(_0x4e8fc4(0x1b8));if(_0x40e7c4[_0x4e8fc4(0x1a2)]){for(const _0x501b71 of _0x17799f[_0x4e8fc4(0x194)])await _0x3b5f8f(_0x501b71);}for(const _0x3da28d of _0x17799f[_0x4e8fc4(0x194)]){if(_0x3da28d['status']===_0x4e8fc4(0x1ba))continue;if(!_0x40e7c4[_0x4e8fc4(0x1a2)])await _0x3b5f8f(_0x3da28d);_0x3da28d[_0x4e8fc4(0x1bf)]='pending',await saveImportJson(_0x40e7c4['checkpoint'],_0x17799f),_0x2b79c1++;const _0x370037=_0x3da28d[_0x4e8fc4(0x1e8)][_0x4e8fc4(0x1c7)](_0x4b707c=>_0xd69701[_0x4e8fc4(0x1b4)][_0x4b707c][_0x4e8fc4(0x1c2)]),_0x18c245=Date[_0x4e8fc4(0x1d4)](),_0x5900c6={'batch':_0x2b79c1,'rowStart':_0xd69701['rows'][_0x3da28d[_0x4e8fc4(0x1e8)][0x0]]['rowNumber'],'rowEnd':_0xd69701[_0x4e8fc4(0x1b4)][_0x3da28d['rowIndexes']['at'](-0x1)][_0x4e8fc4(0x1e3)],'count':_0x370037['length'],'bytes':_0x502a44(_0x3da28d[_0x4e8fc4(0x1e8)],_0x3da28d['taskId']),'elapsedMs':0x0,'status':_0x4e8fc4(0x1b0)};_0x1e254c[_0x4e8fc4(0x1c4)](_0x5900c6);try{const _0x2d36b7=await _0x4327a6['write'](_0x370037,_0x3da28d[_0x4e8fc4(0x1d1)]);if(!_0x2d36b7||_0x2d36b7[_0x4e8fc4(0x197)]!==_0x370037[_0x4e8fc4(0x1db)]||!Array['isArray'](_0x2d36b7[_0x4e8fc4(0x1a4)])||_0x2d36b7[_0x4e8fc4(0x1a4)]['length']!==_0x370037[_0x4e8fc4(0x1db)]||_0x2d36b7[_0x4e8fc4(0x1a4)][_0x4e8fc4(0x1ca)](_0x22cde2=>!validId(_0x22cde2))||new Set(_0x2d36b7[_0x4e8fc4(0x1a4)])[_0x4e8fc4(0x1e9)]!==_0x2d36b7[_0x4e8fc4(0x1a4)][_0x4e8fc4(0x1db)])throw Error(_0x4e8fc4(0x1d2));_0x3da28d[_0x4e8fc4(0x1a4)]=_0x2d36b7[_0x4e8fc4(0x1a4)],await saveImportJson(_0x40e7c4['checkpoint'],_0x17799f);if(!await _0x3b5f8f(_0x3da28d))throw Error('Incomplete\x20readback.');}catch(_0x39c75c){if(_0x3da28d['status']===_0x4e8fc4(0x1cc))throw _0x39c75c;try{await _0x3b5f8f(_0x3da28d);}catch(_0x2e9a7d){if(_0x3da28d[_0x4e8fc4(0x1bf)]===_0x4e8fc4(0x1cc))throw _0x2e9a7d;}if(_0x3da28d[_0x4e8fc4(0x1bf)]!==_0x4e8fc4(0x1ba))throw Error(_0x4e8fc4(0x1da));}finally{_0x5900c6[_0x4e8fc4(0x1a7)]=Date['now']()-_0x18c245,_0x5900c6[_0x4e8fc4(0x1bf)]=_0x3da28d[_0x4e8fc4(0x1bf)]===_0x4e8fc4(0x1ba)?_0x4e8fc4(0x1ba):_0x3da28d[_0x4e8fc4(0x1bf)]==='conflict'?_0x4e8fc4(0x1cc):_0x4e8fc4(0x1b0);}}const _0x4d9ee9={'status':_0x4e8fc4(0x198),..._0x504bc5()};return await saveImportJson(_0x40e7c4[_0x4e8fc4(0x1a5)],_0x4d9ee9),_0x4d9ee9;}catch(_0x5ee4e8){if(_0x240f82)await saveImportJson(_0x40e7c4[_0x4e8fc4(0x1a5)],{'status':_0x4e8fc4(0x1cf),..._0x504bc5(),'message':_0x5ee4e8['message']});throw _0x5ee4e8;}finally{await _0xca0eee();}}
|
|
1
|
+
const a140_0x24e0c1=a140_0x3255;(function(_0x3fe475,_0x2cc8e4){const _0x2d4ffb=a140_0x3255,_0xcd0acf=_0x3fe475();while(!![]){try{const _0x84f11e=-parseInt(_0x2d4ffb(0x154))/0x1*(parseInt(_0x2d4ffb(0x120))/0x2)+parseInt(_0x2d4ffb(0x100))/0x3*(-parseInt(_0x2d4ffb(0x144))/0x4)+parseInt(_0x2d4ffb(0x13d))/0x5+parseInt(_0x2d4ffb(0x11b))/0x6+parseInt(_0x2d4ffb(0x13f))/0x7*(-parseInt(_0x2d4ffb(0x150))/0x8)+-parseInt(_0x2d4ffb(0x10b))/0x9+parseInt(_0x2d4ffb(0x12a))/0xa;if(_0x84f11e===_0x2cc8e4)break;else _0xcd0acf['push'](_0xcd0acf['shift']());}catch(_0xee5de7){_0xcd0acf['push'](_0xcd0acf['shift']());}}}(a140_0x26ed,0x5e1a9));import{randomBytes,randomUUID}from'node:crypto';import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,sameImportValue,resolveImportOutputPath,saveImportJson}from'./runner.js';function a140_0x3255(_0x4e66f7,_0x2732bb){_0x4e66f7=_0x4e66f7-0xfd;const _0x26ed61=a140_0x26ed();let _0x32552b=_0x26ed61[_0x4e66f7];return _0x32552b;}function a140_0x26ed(){const _0x9d85f4=['maxBatchBytes','Invalid\x20import\x20batch\x20size.','mappingHash','14328040okIeVh','count','byteLength','pending','write','push','The\x20auto-ID\x20runner\x20requires\x20the\x20v2\x20task\x20readback\x20contract.','hasOwn','reduce','length','size','sheet','batchSize','checkpoint','version','readTask','stringify','fileHash','string','3055190BWjFlg','report','553VbGVWT','emptyRows','schemaHash','Import\x20checkpoint\x20does\x20not\x20match\x20the\x20input,\x20target\x20or\x20identity.','Cannot\x20read\x20the\x20import\x20checkpoint.','2932108PZrwNp','The\x20import\x20write\x20outcome\x20is\x20unknown.\x20Resume\x20to\x20reconcile\x20the\x20original\x20task\x20marker\x20before\x20continuing.','Auto-ID\x20import\x20items\x20cannot\x20contain\x20a\x20primary\x20key.','toString','uploadFields','Import\x20generated\x20ID\x20conflict.','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','isArray','importId','filter','imageFields','message','39896ONuxss','unknown','Excel\x20contains\x20no\x20valid\x20data\x20rows.','succeeded','856oDnMZh','completed','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','strategy','Excel\x20contains\x20invalid\x20rows;\x20no\x20data\x20was\x20written.','errors','taskId','batches','3fOPHxy','status','values','appCode','rows','Incomplete\x20readback.','isSafeInteger','hex','ENOENT','incomplete','unsent','6056073IREdsx','onCheckpointReady','code','includes','some','ids','Invalid\x20import\x20task\x20readback\x20response.','warnings','Invalid\x20write\x20result.','conflict','Import\x20checkpoint\x20contains\x20a\x20content\x20conflict.','Partial\x20import\x20task\x20readback\x20conflict.','elapsedMs','runtimeDomain','keys','reconcileImageConflicts','2148432GtNMYI','flatMap','map','rowIndexes','schemaFingerprint','506gbmfwE','resume','Excel\x20row\x20','utf8','rowNumber','now','has'];a140_0x26ed=function(){return _0x9d85f4;};return a140_0x26ed();}const validId=_0x4563ca=>typeof _0x4563ca==='number'&&Number[a140_0x24e0c1(0x106)](_0x4563ca)&&_0x4563ca>0x0;export async function runAutoIdExcelImport(_0x339f45){const _0x1140e9=a140_0x24e0c1,_0x24994d={..._0x339f45,'checkpoint':await resolveImportOutputPath(_0x339f45[_0x1140e9(0x137)]),'report':await resolveImportOutputPath(_0x339f45['report'])},{manifest:_0xe4c835,contract:_0x3fa686,api:_0x286070}=_0x24994d;assertImportContract(_0x3fa686,_0x24994d[_0x1140e9(0x103)],_0x24994d['datasetCode']);if(_0x3fa686['schemaVersion']!==0x2||!_0x286070[_0x1140e9(0x139)])throw Error(_0x1140e9(0x130));if(_0xe4c835[_0x1140e9(0xfd)]['length'])throw Error(_0x1140e9(0x158));if(!_0xe4c835[_0x1140e9(0x104)][_0x1140e9(0x133)])throw Error(_0x1140e9(0x152));if(!Number['isInteger'](_0x24994d[_0x1140e9(0x136)])||_0x24994d['batchSize']<0x1||_0x24994d[_0x1140e9(0x136)]>_0x3fa686['maxBatchSize'])throw Error(_0x1140e9(0x128));assertImportPaths(_0x24994d[_0x1140e9(0x137)],_0x24994d[_0x1140e9(0x13e)]);if(_0xe4c835[_0x1140e9(0x104)][_0x1140e9(0x10f)](_0x114b59=>Object[_0x1140e9(0x131)](_0x114b59[_0x1140e9(0x102)],'id')))throw Error(_0x1140e9(0x146));const _0x2e36c1=(_0x40381d,_0x528e9f)=>Buffer[_0x1140e9(0x12c)](JSON[_0x1140e9(0x13a)]({'schemaFingerprint':_0x3fa686['schemaFingerprint'],'taskId':_0x528e9f,'items':_0x40381d[_0x1140e9(0x11d)](_0x549589=>_0xe4c835[_0x1140e9(0x104)][_0x549589][_0x1140e9(0x102)])}),_0x1140e9(0x123)),_0x48462b=[];let _0x2186f2=[];for(let _0x4db70c=0x0;_0x4db70c<_0xe4c835[_0x1140e9(0x104)][_0x1140e9(0x133)];_0x4db70c++){if(_0x2e36c1([_0x4db70c],0x2**0x34)>_0x3fa686[_0x1140e9(0x127)])throw Error(_0x1140e9(0x122)+_0xe4c835['rows'][_0x4db70c][_0x1140e9(0x124)]+_0x1140e9(0x14a));_0x2186f2['length']&&(_0x2186f2[_0x1140e9(0x133)]===_0x24994d[_0x1140e9(0x136)]||_0x2e36c1([..._0x2186f2,_0x4db70c],0x2**0x34)>_0x3fa686[_0x1140e9(0x127)])&&(_0x48462b['push'](_0x2186f2),_0x2186f2=[]),_0x2186f2[_0x1140e9(0x12f)](_0x4db70c);}if(_0x2186f2['length'])_0x48462b[_0x1140e9(0x12f)](_0x2186f2);const _0xf243af={'appCode':_0x24994d[_0x1140e9(0x103)],'datasetCode':_0x24994d['datasetCode'],'runtimeDomain':_0x24994d[_0x1140e9(0x118)],'actorId':_0x3fa686['actorId'],'fileHash':_0xe4c835[_0x1140e9(0x13b)],'mappingHash':_0xe4c835[_0x1140e9(0x129)],'schemaHash':_0xe4c835[_0x1140e9(0x141)],'remoteSchemaHash':_0x3fa686[_0x1140e9(0x11f)],'batchSize':_0x24994d['batchSize'],'maxBatchBytes':_0x3fa686[_0x1140e9(0x127)],'sheet':_0xe4c835[_0x1140e9(0x135)],'strategy':_0x3fa686[_0x1140e9(0x157)]},_0x2b12e8=await acquireLock(_0x24994d['checkpoint']);let _0x39263c;const _0x5e0679=Date[_0x1140e9(0x125)]();let _0x44c1b7=0x0;const _0x5288ff=[],_0x31d586=_0x158617=>_0x39263c?.[_0x1140e9(0xff)][_0x1140e9(0x14d)](_0x4b624a=>_0x4b624a[_0x1140e9(0x101)]===_0x158617)[_0x1140e9(0x132)]((_0x433263,_0x2bd7cd)=>_0x433263+_0x2bd7cd['rowIndexes'][_0x1140e9(0x133)],0x0)??0x0,_0x3bfdf1=()=>({'importId':_0x39263c?.[_0x1140e9(0x14c)],'sourceRows':_0xe4c835['rows'][_0x1140e9(0x133)],'emptyRows':_0xe4c835[_0x1140e9(0x140)][_0x1140e9(0x133)],'succeeded':_0x31d586(_0x1140e9(0x153)),'unknown':_0x31d586(_0x1140e9(0x12d)),'conflicts':_0x31d586('conflict'),'notAttempted':_0x31d586('unsent'),'batches':_0x44c1b7,'batchResults':_0x5288ff,'elapsedMs':Date[_0x1140e9(0x125)]()-_0x5e0679,'checkpoint':_0x24994d['checkpoint'],'report':_0x24994d[_0x1140e9(0x13e)],'warnings':_0xe4c835[_0x1140e9(0x112)]});try{if(_0x24994d[_0x1140e9(0x121)]){try{_0x39263c=JSON['parse'](await readFile(_0x24994d['checkpoint'],'utf8'));}catch{throw Error(_0x1140e9(0x143));}if(!_0x39263c||_0x39263c[_0x1140e9(0x138)]!==0x2||typeof _0x39263c[_0x1140e9(0x14c)]!==_0x1140e9(0x13c)||!_0x39263c[_0x1140e9(0x14c)]||canonical(_0x39263c['binding'])!==canonical(_0xf243af)||!Array[_0x1140e9(0x14b)](_0x39263c[_0x1140e9(0xff)])||_0x39263c[_0x1140e9(0xff)][_0x1140e9(0x133)]!==_0x48462b[_0x1140e9(0x133)]||new Set(_0x39263c[_0x1140e9(0xff)][_0x1140e9(0x11d)](_0x3bd91f=>_0x3bd91f[_0x1140e9(0xfe)]))[_0x1140e9(0x134)]!==_0x48462b['length']||_0x39263c[_0x1140e9(0xff)][_0x1140e9(0x10f)]((_0x107a4e,_0x518bab)=>!validId(_0x107a4e[_0x1140e9(0xfe)])||_0x107a4e[_0x1140e9(0xfe)]>0x2**0x34||canonical(_0x107a4e['rowIndexes'])!==canonical(_0x48462b[_0x518bab])||![_0x1140e9(0x10a),_0x1140e9(0x12d),_0x1140e9(0x153),_0x1140e9(0x114)][_0x1140e9(0x10e)](_0x107a4e[_0x1140e9(0x101)])||!Array[_0x1140e9(0x14b)](_0x107a4e[_0x1140e9(0x110)])||_0x107a4e['ids'][_0x1140e9(0x10f)](_0x4ba851=>!validId(_0x4ba851))||new Set(_0x107a4e[_0x1140e9(0x110)])[_0x1140e9(0x134)]!==_0x107a4e[_0x1140e9(0x110)]['length']||_0x107a4e[_0x1140e9(0x110)][_0x1140e9(0x133)]!==0x0&&_0x107a4e['ids'][_0x1140e9(0x133)]!==_0x107a4e[_0x1140e9(0x11e)][_0x1140e9(0x133)]||_0x107a4e['status']===_0x1140e9(0x153)&&_0x107a4e[_0x1140e9(0x110)]['length']!==_0x107a4e['rowIndexes'][_0x1140e9(0x133)]||_0x107a4e[_0x1140e9(0x101)]===_0x1140e9(0x10a)&&_0x107a4e[_0x1140e9(0x110)][_0x1140e9(0x133)]!==0x0))throw Error(_0x1140e9(0x142));const _0x287179=_0x39263c[_0x1140e9(0xff)][_0x1140e9(0x11c)](_0x44890b=>_0x44890b[_0x1140e9(0x110)]);if(new Set(_0x287179)['size']!==_0x287179['length'])throw Error('Import\x20checkpoint\x20contains\x20duplicate\x20generated\x20IDs.');}else{try{await lstat(_0x24994d[_0x1140e9(0x137)]);throw Error(_0x1140e9(0x156));}catch(_0x352a7c){if(_0x352a7c[_0x1140e9(0x10d)]!==_0x1140e9(0x108))throw _0x352a7c;}const _0x9d318c=new Set();_0x39263c={'version':0x2,'importId':randomUUID(),'binding':_0xf243af,'batches':_0x48462b['map'](_0x53680c=>{const _0x61c5f6=_0x1140e9;let _0x2d4d2a;do{_0x2d4d2a=Number(BigInt('0x'+randomBytes(0x7)[_0x61c5f6(0x147)](_0x61c5f6(0x107)))&(0x1n<<0x34n)-0x1n)+0x1;}while(_0x9d318c['has'](_0x2d4d2a));return _0x9d318c['add'](_0x2d4d2a),{'taskId':_0x2d4d2a,'rowIndexes':_0x53680c,'ids':[],'status':_0x61c5f6(0x10a)};})},await saveImportJson(_0x24994d['checkpoint'],_0x39263c);}await _0x24994d[_0x1140e9(0x10c)]?.();const _0x1cc583=_0x39263c,_0x297d27=async(_0x3a7ea6,_0x1403c8)=>{const _0xf978be=_0x1140e9;_0x3a7ea6['status']=_0xf978be(0x114),await saveImportJson(_0x24994d[_0xf978be(0x137)],_0x1cc583);throw Error(_0x1403c8);},_0x1b3a97=async _0x11b99f=>{const _0x2b5f31=_0x1140e9,_0xc3d0fc=await _0x286070[_0x2b5f31(0x139)](_0x11b99f[_0x2b5f31(0xfe)]);if(!Array['isArray'](_0xc3d0fc))throw Error(_0x2b5f31(0x111));if(_0x11b99f[_0x2b5f31(0x101)]===_0x2b5f31(0x10a)&&_0xc3d0fc['length'])return _0x297d27(_0x11b99f,'Import\x20task\x20marker\x20collision;\x20stop\x20without\x20replacing\x20the\x20marker.');if(!_0xc3d0fc[_0x2b5f31(0x133)]){if(_0x11b99f[_0x2b5f31(0x101)]===_0x2b5f31(0x153)||_0x11b99f[_0x2b5f31(0x110)]['length'])return _0x297d27(_0x11b99f,'Previously\x20imported\x20records\x20are\x20no\x20longer\x20visible;\x20recovery\x20conflict.');return![];}if(_0xc3d0fc[_0x2b5f31(0x133)]!==_0x11b99f[_0x2b5f31(0x11e)][_0x2b5f31(0x133)])return _0x297d27(_0x11b99f,_0x2b5f31(0x116));const _0x2e8706=_0xc3d0fc[_0x2b5f31(0x11d)](_0x1a5122=>_0x1a5122?.['id']);if(_0x2e8706[_0x2b5f31(0x10f)](_0x48e65a=>!validId(_0x48e65a)))return _0x297d27(_0x11b99f,'Import\x20generated\x20ID\x20conflict.');const _0x4a763b=_0x2e8706;if(_0x4a763b[_0x2b5f31(0x10f)](_0x37ef1f=>!validId(_0x37ef1f))||_0x4a763b[_0x2b5f31(0x10f)]((_0x3ac184,_0x31f5e3)=>_0x31f5e3>0x0&&_0x3ac184<=_0x4a763b[_0x31f5e3-0x1])||_0x11b99f[_0x2b5f31(0x110)][_0x2b5f31(0x133)]&&canonical(_0x4a763b)!==canonical(_0x11b99f[_0x2b5f31(0x110)]))return _0x297d27(_0x11b99f,_0x2b5f31(0x149));const _0x2117da=new Set(_0x1cc583['batches'][_0x2b5f31(0x14d)](_0x5bae59=>_0x5bae59!==_0x11b99f)['flatMap'](_0x14a5b2=>_0x14a5b2['ids']));if(_0x4a763b['some'](_0x58ad28=>_0x2117da[_0x2b5f31(0x126)](_0x58ad28)))return _0x297d27(_0x11b99f,'Import\x20generated\x20ID\x20collision.');for(let _0x4a014f=0x0;_0x4a014f<_0xc3d0fc[_0x2b5f31(0x133)];_0x4a014f++){const _0x51e76a=_0xe4c835[_0x2b5f31(0x104)][_0x11b99f[_0x2b5f31(0x11e)][_0x4a014f]][_0x2b5f31(0x102)];if(Object[_0x2b5f31(0x119)](_0x51e76a)[_0x2b5f31(0x10f)](_0x3a7e46=>!sameImportValue(_0x51e76a[_0x3a7e46],_0xc3d0fc[_0x4a014f][_0x3a7e46],_0xe4c835[_0x2b5f31(0x14e)]?.[_0x2b5f31(0x10e)](_0x3a7e46)&&!_0xe4c835[_0x2b5f31(0x148)]?.[_0x2b5f31(0x10e)](_0x3a7e46))))return _0x297d27(_0x11b99f,'Import\x20content\x20conflict\x20at\x20Excel\x20row\x20'+_0xe4c835[_0x2b5f31(0x104)][_0x11b99f[_0x2b5f31(0x11e)][_0x4a014f]]['rowNumber']+'.');}return _0x11b99f[_0x2b5f31(0x110)]=_0x4a763b,_0x11b99f[_0x2b5f31(0x101)]='succeeded',await saveImportJson(_0x24994d['checkpoint'],_0x1cc583),!![];};if(_0x1cc583['batches']['some'](_0x47e500=>_0x47e500['status']===_0x1140e9(0x114)&&!(_0x24994d[_0x1140e9(0x121)]&&_0x24994d[_0x1140e9(0x11a)]&&_0xe4c835[_0x1140e9(0x14e)]?.[_0x1140e9(0x133)]&&_0x47e500[_0x1140e9(0x110)]['length']===_0x47e500[_0x1140e9(0x11e)][_0x1140e9(0x133)])))throw Error(_0x1140e9(0x115));if(_0x24994d[_0x1140e9(0x121)]){for(const _0x292de4 of _0x1cc583['batches'])await _0x1b3a97(_0x292de4);}for(const _0x6f3ebe of _0x1cc583[_0x1140e9(0xff)]){if(_0x6f3ebe[_0x1140e9(0x101)]===_0x1140e9(0x153))continue;if(!_0x24994d[_0x1140e9(0x121)])await _0x1b3a97(_0x6f3ebe);_0x6f3ebe['status']=_0x1140e9(0x12d),await saveImportJson(_0x24994d[_0x1140e9(0x137)],_0x1cc583),_0x44c1b7++;const _0x271895=_0x6f3ebe[_0x1140e9(0x11e)][_0x1140e9(0x11d)](_0x4b54be=>_0xe4c835[_0x1140e9(0x104)][_0x4b54be][_0x1140e9(0x102)]),_0x2688a9=Date[_0x1140e9(0x125)](),_0xb1281b={'batch':_0x44c1b7,'rowStart':_0xe4c835['rows'][_0x6f3ebe[_0x1140e9(0x11e)][0x0]][_0x1140e9(0x124)],'rowEnd':_0xe4c835['rows'][_0x6f3ebe[_0x1140e9(0x11e)]['at'](-0x1)][_0x1140e9(0x124)],'count':_0x271895[_0x1140e9(0x133)],'bytes':_0x2e36c1(_0x6f3ebe[_0x1140e9(0x11e)],_0x6f3ebe['taskId']),'elapsedMs':0x0,'status':_0x1140e9(0x151)};_0x5288ff[_0x1140e9(0x12f)](_0xb1281b);try{const _0xaa3735=await _0x286070[_0x1140e9(0x12e)](_0x271895,_0x6f3ebe[_0x1140e9(0xfe)]);if(!_0xaa3735||_0xaa3735[_0x1140e9(0x12b)]!==_0x271895[_0x1140e9(0x133)]||!Array['isArray'](_0xaa3735[_0x1140e9(0x110)])||_0xaa3735['ids'][_0x1140e9(0x133)]!==_0x271895[_0x1140e9(0x133)]||_0xaa3735[_0x1140e9(0x110)][_0x1140e9(0x10f)](_0x5a02e3=>!validId(_0x5a02e3))||new Set(_0xaa3735[_0x1140e9(0x110)])[_0x1140e9(0x134)]!==_0xaa3735[_0x1140e9(0x110)][_0x1140e9(0x133)])throw Error(_0x1140e9(0x113));_0x6f3ebe[_0x1140e9(0x110)]=_0xaa3735['ids'],await saveImportJson(_0x24994d[_0x1140e9(0x137)],_0x1cc583);if(!await _0x1b3a97(_0x6f3ebe))throw Error(_0x1140e9(0x105));}catch(_0x4c57e3){if(_0x6f3ebe['status']==='conflict')throw _0x4c57e3;try{await _0x1b3a97(_0x6f3ebe);}catch(_0x34b8aa){if(_0x6f3ebe[_0x1140e9(0x101)]==='conflict')throw _0x34b8aa;}if(_0x6f3ebe[_0x1140e9(0x101)]!==_0x1140e9(0x153))throw Error(_0x1140e9(0x145));}finally{_0xb1281b[_0x1140e9(0x117)]=Date[_0x1140e9(0x125)]()-_0x2688a9,_0xb1281b[_0x1140e9(0x101)]=_0x6f3ebe[_0x1140e9(0x101)]==='succeeded'?_0x1140e9(0x153):_0x6f3ebe[_0x1140e9(0x101)]===_0x1140e9(0x114)?'conflict':_0x1140e9(0x151);}}const _0x2b63e6={'status':_0x1140e9(0x155),..._0x3bfdf1()};return await saveImportJson(_0x24994d[_0x1140e9(0x13e)],_0x2b63e6),_0x2b63e6;}catch(_0x9f61d8){if(_0x39263c)await saveImportJson(_0x24994d[_0x1140e9(0x13e)],{'status':_0x1140e9(0x109),..._0x3bfdf1(),'message':_0x9f61d8[_0x1140e9(0x14f)]});throw _0x9f61d8;}finally{await _0x2b12e8();}}
|