@lovrabet/lovrabet-cli 2.3.8-beta.7 → 2.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/approval/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/import-excel.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/issue/context.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-sdk-errors.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/access-error.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-import/auto-id-runner.js +1 -1
- package/lib/services/dataset-import/excel-reader.js +1 -1
- package/lib/services/dataset-import/image-bytes.js +1 -1
- package/lib/services/dataset-import/image-ooxml.js +1 -1
- package/lib/services/dataset-import/image-runner.js +1 -1
- package/lib/services/dataset-import/metadata.js +1 -1
- package/lib/services/dataset-import/preview.js +1 -1
- package/lib/services/dataset-import/runner.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/positive-safe-integer.js +1 -1
- package/lib/utils/redaction.js +1 -1
- package/lib/utils/runtime-user-id.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x3dcb3f,_0x3c4b9d){const _0x149e92=a128_0xdfa5,_0x3d93d4=_0x3dcb3f();while(!![]){try{const _0x4bcedc=-parseInt(_0x149e92(0x183))/0x1*(parseInt(_0x149e92(0x17d))/0x2)+-parseInt(_0x149e92(0x19c))/0x3+parseInt(_0x149e92(0x19a))/0x4*(-parseInt(_0x149e92(0x179))/0x5)+-parseInt(_0x149e92(0x173))/0x6+-parseInt(_0x149e92(0x1a4))/0x7+parseInt(_0x149e92(0x1a1))/0x8+parseInt(_0x149e92(0x17b))/0x9;if(_0x4bcedc===_0x3c4b9d)break;else _0x3d93d4['push'](_0x3d93d4['shift']());}catch(_0x3a10a1){_0x3d93d4['push'](_0x3d93d4['shift']());}}}(a128_0x2a97,0x3ce4f));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain,getRuntimeDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{assertKnownCommandFlags}from'../framework/raw-flags.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{assertCliVersionSupported,checkCliVersion}from'../utils/cli-version-check.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0xd6382e){const _0x216d0f=a128_0xdfa5;return void _0xd6382e,AUTH_MODE[_0x216d0f(0x1b6)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x1626e9,_0x2bc718){const _0xb635f7=a128_0xdfa5,_0x3938b8=typeof _0x2bc718['app']===_0xb635f7(0x177)&&_0x2bc718[_0xb635f7(0x191)][_0xb635f7(0x1b5)]();return{'rawFlags':_0x2bc718,'appCode':_0x1626e9[_0xb635f7(0x176)]||productEnv('APPCODE')||(_0x3938b8?undefined:readAppCodeFromConfig()),'appCodeSource':_0x1626e9[_0xb635f7(0x188)],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x2bc718),'defaultFormat':_0x1626e9[_0xb635f7(0x194)],'defaultPageSize':_0x1626e9[_0xb635f7(0x187)],'defaultVerbose':_0x1626e9[_0xb635f7(0x1ac)],'riskLevel':_0x1626e9[_0xb635f7(0x174)],'nativeToolAvailable':_0x1626e9['nativeToolAvailable'],'accessKey':_0x1626e9['accessKey'],'env':_0x1626e9[_0xb635f7(0x1aa)],'mergedCli':{'defaultApp':_0x1626e9[_0xb635f7(0x175)],'currentApp':_0x1626e9['currentApp'],'appCode':_0x1626e9[_0xb635f7(0x176)]}};}export function createLovrabetRunnerAdapter(_0x10f198={}){const _0x3b1b38=a128_0xdfa5,_0x21791a={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x3b1b38(0x19f)](_0x2e9fab=>PIPELINE_FLAG_NAMES[_0x3b1b38(0x17e)](_0x2e9fab[_0x3b1b38(0x186)]))[_0x3b1b38(0x18e)](({name:_0x7099,type:_0x1a1a58,description:_0x17a6aa})=>({'name':_0x7099,'type':_0x1a1a58,'description':_0x17a6aa})),'formatOutput':_0x10f198['formatOutput']??formatOutput,'getCommandLabel'(_0x5976b1){const _0x3591e5=_0x3b1b38;return CLI_BIN_NAME+'\x20'+_0x5976b1[_0x3591e5(0x198)]+'\x20'+_0x5976b1[_0x3591e5(0x1a8)];},'riskPolicy':{'onViolation'(_0x58daca,{def:_0x2d7467,env:_0x12f9d6}){const _0x3d1682=_0x3b1b38;if(shouldRouteWriteToNativeTool(_0x2d7467,_0x12f9d6))return;console[_0x3d1682(0x1a9)](_0x58daca);},'createError'(_0x3a09ad,{def:_0x118c32,env:_0x39030e}){const _0x3a3b56=_0x3b1b38;if(shouldRouteWriteToNativeTool(_0x118c32,_0x39030e))return CliErrors[_0x3a3b56(0x18a)](CLI_BIN_NAME+'\x20'+_0x118c32[_0x3a3b56(0x198)]+'\x20'+_0x118c32[_0x3a3b56(0x1a8)]);return CliErrors[_0x3a3b56(0x199)](_0x3a09ad);}},async 'prepare'(_0x47c8f5,_0x24f577){const _0x38abc0=_0x3b1b38,_0x3e118a=resolveAuthMode(_0x24f577);if(_0x47c8f5[_0x38abc0(0x1b3)]!==![]){if(!_0x24f577[_0x38abc0(0x172)])throw CliErrors[_0x38abc0(0x1a3)](_0x38abc0(0x17c)+PRODUCT_CONFIG[_0x38abc0(0x1a2)]+_0x38abc0(0x192)+productEnvName(_0x38abc0(0x1a6))+'.');const {setActiveAK:_0x4deef2}=await import('../core/api-client.js');_0x4deef2(_0x24f577[_0x38abc0(0x172)]);}let _0x1e4fa0='';if(_0x47c8f5[_0x38abc0(0x180)]!==![]){_0x1e4fa0=_0x24f577['appCode']??'',_0x1e4fa0=await resolveExplicitAppName(_0x47c8f5,_0x24f577,_0x1e4fa0);if(!_0x1e4fa0){await assertSelectedAppNameIsRuntimeAccessible(_0x47c8f5,_0x24f577);throw CliErrors['configMissing'](_0x38abc0(0x195)+PRODUCT_CONFIG[_0x38abc0(0x1a2)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x47c8f5,_0x24f577,_0x1e4fa0);}if(_0x1e4fa0){const {initSdkClient:_0x131068}=await import(_0x38abc0(0x189));_0x131068({'appCode':_0x1e4fa0,'env':_0x24f577[_0x38abc0(0x1aa)]??_0x38abc0(0x18f),'runtimeDomain':_0x24f577[_0x38abc0(0x1b8)],'accessKey':_0x24f577[_0x38abc0(0x172)],'authMode':_0x3e118a}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x24f577[_0x38abc0(0x182)]},'numbers':{'pagesize':_0x24f577[_0x38abc0(0x19d)]}},'extras':{'appCode':_0x1e4fa0,'cookie':'','apiDomain':_0x24f577[_0x38abc0(0x181)],'apiDir':'','accessKey':_0x24f577[_0x38abc0(0x172)],'envName':_0x24f577[_0x38abc0(0x1aa)],'mergedCli':_0x24f577[_0x38abc0(0x18c)]}};},'confirmHighRisk':_0x10f198[_0x3b1b38(0x190)]??(async({def:_0x5624dd,env:_0x340ec0,flags:_0x284741,commandLabel:_0x2e3a05})=>{const _0x5aa8f7=_0x3b1b38;if(_0x340ec0[_0x5aa8f7(0x1af)]){const _0x2eaf69=reconstructCommandArgv(_0x5624dd,_0x284741);throw CliErrors[_0x5aa8f7(0x19b)](_0x5aa8f7(0x1b1)+_0x2e3a05+_0x5aa8f7(0x1ab)+(_0x5aa8f7(0x1b0)+_0x2eaf69));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x5624dd,_0x2e3a05,_0x284741),'createCancelledError':_0x53c155=>CliErrors[_0x5aa8f7(0x199)](_0x53c155)});}),'mapDryRunError'(_0x44f57a){return mapUserFacingExecuteError(_0x44f57a);},'mapExecuteError'(_0x3d7944){return mapUserFacingExecuteError(_0x3d7944);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x21791a;}function shouldRouteWriteToNativeTool(_0x10d50e,_0x362839){const _0x180535=a128_0xdfa5;return _0x362839[_0x180535(0x193)]===!![]&&(_0x10d50e[_0x180535(0x197)]===_0x180535(0x1b4)||_0x10d50e[_0x180535(0x197)]===_0x180535(0x196));}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x27c0d5=a128_0xdfa5;try{if(sdkClientInitialized){const {clearSdkClient:_0x36d3c6}=await import(_0x27c0d5(0x189));_0x36d3c6();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x3a7059}=await import('../core/api-client.js');_0x3a7059();}}function a128_0x2a97(){const _0x117470=['high-risk-write','risk','service','cancelled','3628MzBlFh','validation','367284tKwFKz','defaultPageSize','nonInteractive','filter','resolve','2538488CzyETF','newConfigFileName','authRequired','2521925YWiYix','install','ACCESS_KEY','update','command','error','env','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','verbose','execute','.appcode\x20to\x20','isNonInteractive','\x20\x20To\x20proceed:\x20','High-risk\x20operation\x20`','object','requiresAuth','write','trim','ClientAk','appcode','runtimeDomain','rawFlags','accessKey','2353278vgYoNf','riskLevel','defaultApp','appCode','string','cli-skill','1805hWBthh','_notice','10476585bRPVnn','Set\x20accessKey\x20in\x20','9870BaojYb','has','local-alias','requiresAppCode','apiDomain','defaultVerbose','6UBbvOB','appcode\x20\x22','Run\x20`','name','pageSize','appCodeSource','../core/sdk-client.js','nativeToolRequired','../commands/app/remote-source.js','mergedCli','Unknown\x20app:\x20','map','production','confirmHighRisk','app','\x20or\x20pass\x20','nativeToolAvailable','format','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20'];a128_0x2a97=function(){return _0x117470;};return a128_0x2a97();}async function resolveExplicitAppName(_0x1893f9,_0x55f4d2,_0x14b7da){const _0x306bb3=a128_0xdfa5;if(_0x1893f9[_0x306bb3(0x180)]===![])return _0x14b7da;const _0x301514=typeof _0x55f4d2['rawFlags']['app']===_0x306bb3(0x177)?_0x55f4d2[_0x306bb3(0x171)][_0x306bb3(0x191)][_0x306bb3(0x1b5)]():'';if(!_0x301514)return _0x14b7da;const _0x2ce681=typeof _0x55f4d2[_0x306bb3(0x171)][_0x306bb3(0x1b7)]===_0x306bb3(0x177)&&_0x55f4d2[_0x306bb3(0x171)]['appcode'][_0x306bb3(0x1b5)]()||productEnv('APPCODE');if(_0x2ce681||_0x55f4d2[_0x306bb3(0x188)]===_0x306bb3(0x17f))return _0x14b7da;const {getRemoteAppList:_0x1118eb}=await import(_0x306bb3(0x18b)),_0xdb4c07=await _0x1118eb({'env':_0x55f4d2[_0x306bb3(0x1aa)]??_0x306bb3(0x18f),'accessKey':_0x55f4d2[_0x306bb3(0x172)]}),_0x626d9d=findAppByName(_0xdb4c07['items'],_0x301514);if(_0x626d9d&&!isRuntimeAccessibleApp(_0x626d9d))throw runtimeInaccessibleAppError(_0x626d9d,'\x22'+_0x301514+'\x22');const _0x14279d=_0x626d9d?.[_0x306bb3(0x176)]?.[_0x306bb3(0x1b5)]();if(_0x14279d)return _0x14279d;throw CliErrors[_0x306bb3(0x19b)](_0x306bb3(0x18d)+_0x301514,_0x306bb3(0x185)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0x301514+_0x306bb3(0x1ae)+PRODUCT_CONFIG['newConfigFileName']+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x27681b,_0x275871){const _0x56206a=a128_0xdfa5;if(_0x27681b[_0x56206a(0x180)]===![]||!_0x275871[_0x56206a(0x172)])return;const _0x59dc7e=(typeof _0x275871[_0x56206a(0x171)]['app']===_0x56206a(0x177)&&_0x275871[_0x56206a(0x171)][_0x56206a(0x191)][_0x56206a(0x1b5)]()?_0x275871[_0x56206a(0x171)][_0x56206a(0x191)]:_0x275871[_0x56206a(0x18c)]?.['currentApp']??_0x275871[_0x56206a(0x18c)]?.[_0x56206a(0x175)])?.[_0x56206a(0x1b5)]();if(!_0x59dc7e)return;const {getRemoteAppList:_0x16d406}=await import(_0x56206a(0x18b)),_0xecd81d=await _0x16d406({'env':_0x275871['env']??_0x56206a(0x18f),'accessKey':_0x275871[_0x56206a(0x172)]}),_0x28f21e=findAppByName(_0xecd81d['items'],_0x59dc7e);if(_0x28f21e&&!isRuntimeAccessibleApp(_0x28f21e))throw runtimeInaccessibleAppError(_0x28f21e,'\x22'+_0x59dc7e+'\x22');}function a128_0xdfa5(_0x53c870,_0x352093){_0x53c870=_0x53c870-0x171;const _0x2a9714=a128_0x2a97();let _0xdfa5cb=_0x2a9714[_0x53c870];return _0xdfa5cb;}async function assertAppCodeIsRuntimeAccessible(_0x137f8e,_0x1102ed,_0x4b7381){const _0x585943=a128_0xdfa5;if(_0x137f8e['requiresAppCode']===![]||!_0x1102ed[_0x585943(0x172)])return;const {getRemoteAppList:_0x24f14e}=await import('../commands/app/remote-source.js'),_0x3c86eb=await _0x24f14e({'env':_0x1102ed[_0x585943(0x1aa)]??_0x585943(0x18f),'accessKey':_0x1102ed[_0x585943(0x172)]}),_0xf28fc7=findAppByCode(_0x3c86eb['items'],_0x4b7381);if(_0xf28fc7&&!isRuntimeAccessibleApp(_0xf28fc7))throw runtimeInaccessibleAppError(_0xf28fc7,_0x585943(0x184)+_0x4b7381+'\x22');}export async function runCommand(_0x3a4f6b,_0x35a1ed,_0x528147=terminalRunnerAdapter){assertKnownCommandFlags(_0x3a4f6b,_0x35a1ed['rawFlags']),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x3a4f6b)?withVersionPolicy(_0x3a4f6b):_0x3a4f6b,_0x35a1ed,_0x528147);}function shouldApplyVersionPolicy(_0x435820){const _0x500fe0=a128_0xdfa5;if([_0x500fe0(0x1a7),'schema','doctor']['includes'](_0x435820[_0x500fe0(0x198)]))return![];return!(_0x435820[_0x500fe0(0x198)]===_0x500fe0(0x178)&&_0x435820['command']===_0x500fe0(0x1a5));}function withVersionPolicy(_0x14f597){return{..._0x14f597,async 'execute'(_0xb2812a){const _0x372230=a128_0xdfa5,_0x6aabbe=await checkCliVersion();assertCliVersionSupported(_0x6aabbe);const _0x546e9c=shouldResolveUpdateNotice(_0xb2812a)?resolveLatestUpdateNotice(_0x6aabbe)['catch'](()=>null):Promise[_0x372230(0x1a0)](null),_0x4210a4=await _0x14f597[_0x372230(0x1ad)](_0xb2812a);return attachUpdateNotice(_0x4210a4,await _0x546e9c);}};}function shouldResolveUpdateNotice(_0x4524d6){const _0x15da36=a128_0xdfa5;return _0x4524d6[_0x15da36(0x194)]==='pretty'&&!_0x4524d6[_0x15da36(0x19e)];}function attachUpdateNotice(_0x4378a3,_0x19c8c8){const _0xf63252=a128_0xdfa5;if(!_0x19c8c8||!_0x4378a3||typeof _0x4378a3!==_0xf63252(0x1b2))return _0x4378a3;const _0x46d6e4=_0x4378a3,_0x1bbb34=typeof _0x46d6e4[_0xf63252(0x17a)]===_0xf63252(0x1b2)&&_0x46d6e4[_0xf63252(0x17a)]!==null?_0x46d6e4[_0xf63252(0x17a)]:{};return{..._0x46d6e4,'_notice':{..._0x1bbb34,'update':_0x19c8c8}};}
|
|
1
|
+
(function(_0x1adfc3,_0x39e78f){const _0x538e5d=a128_0x214a,_0x30ad59=_0x1adfc3();while(!![]){try{const _0x2047ac=-parseInt(_0x538e5d(0x7a))/0x1*(-parseInt(_0x538e5d(0x84))/0x2)+-parseInt(_0x538e5d(0xa6))/0x3*(parseInt(_0x538e5d(0xb0))/0x4)+-parseInt(_0x538e5d(0x78))/0x5*(parseInt(_0x538e5d(0x74))/0x6)+-parseInt(_0x538e5d(0x91))/0x7+-parseInt(_0x538e5d(0xaa))/0x8+-parseInt(_0x538e5d(0x82))/0x9+parseInt(_0x538e5d(0x97))/0xa;if(_0x2047ac===_0x39e78f)break;else _0x30ad59['push'](_0x30ad59['shift']());}catch(_0x2a3693){_0x30ad59['push'](_0x30ad59['shift']());}}}(a128_0x452b,0x5399b));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';function a128_0x452b(){const _0xcfa607=['items','5mqdGhN','pageSize','11mvtEst','resolve','defaultPageSize','map','install','currentApp','requiresAuth','APPCODE','2975913TPShRA','app','19922wMrqMC','env','service','name','defaultVerbose','cli-skill','requiresAppCode','appCode','Unknown\x20app:\x20','trim','update','../core/api-client.js','doctor','3131765GPoAye','execute','ACCESS_KEY','nativeToolAvailable','riskLevel','accessKey','21638420STSRvj','rawFlags','validation','string','.appcode\x20to\x20','runtimeDomain','appcode','mergedCli','../commands/app/remote-source.js','high-risk-write','newConfigFileName','\x20or\x20pass\x20','format','risk','appcode\x20\x22','168789CICHzD','High-risk\x20operation\x20`','object','local-alias','1442728IZMlpL','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','command','apiDomain','ClientAk','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','40VegAUl','../core/sdk-client.js','catch','authRequired','defaultApp','nonInteractive','_notice','production','2459778qqyznf','configMissing','appCodeSource'];a128_0x452b=function(){return _0xcfa607;};return a128_0x452b();}import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';function a128_0x214a(_0x67c88f,_0x13f6e7){_0x67c88f=_0x67c88f-0x6d;const _0x452b4e=a128_0x452b();let _0x214a52=_0x452b4e[_0x67c88f];return _0x214a52;}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(_0x476f89){const _0x1f67fa=a128_0x214a;return void _0x476f89,AUTH_MODE[_0x1f67fa(0xae)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x3e75e0,_0x5f29be){const _0xa80563=a128_0x214a,_0x155eb5=typeof _0x5f29be['app']==='string'&&_0x5f29be[_0xa80563(0x83)][_0xa80563(0x8d)]();return{'rawFlags':_0x5f29be,'appCode':_0x3e75e0[_0xa80563(0x8b)]||productEnv(_0xa80563(0x81))||(_0x155eb5?undefined:readAppCodeFromConfig()),'appCodeSource':_0x3e75e0['appCodeSource'],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x5f29be),'defaultFormat':_0x3e75e0[_0xa80563(0xa3)],'defaultPageSize':_0x3e75e0[_0xa80563(0x79)],'defaultVerbose':_0x3e75e0['verbose'],'riskLevel':_0x3e75e0[_0xa80563(0x95)],'nativeToolAvailable':_0x3e75e0[_0xa80563(0x94)],'accessKey':_0x3e75e0[_0xa80563(0x96)],'env':_0x3e75e0[_0xa80563(0x85)],'mergedCli':{'defaultApp':_0x3e75e0[_0xa80563(0x70)],'currentApp':_0x3e75e0[_0xa80563(0x7f)],'appCode':_0x3e75e0[_0xa80563(0x8b)]}};}export function createLovrabetRunnerAdapter(_0x1c5462={}){const _0x199636=a128_0x214a,_0x34e8d1={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x4b675f=>PIPELINE_FLAG_NAMES['has'](_0x4b675f[_0x199636(0x87)]))[_0x199636(0x7d)](({name:_0x42c4d8,type:_0x11eda2,description:_0x212c76})=>({'name':_0x42c4d8,'type':_0x11eda2,'description':_0x212c76})),'formatOutput':_0x1c5462['formatOutput']??formatOutput,'getCommandLabel'(_0x550075){const _0x33563f=_0x199636;return CLI_BIN_NAME+'\x20'+_0x550075[_0x33563f(0x86)]+'\x20'+_0x550075[_0x33563f(0xac)];},'riskPolicy':{'onViolation'(_0x4cdbfc,{def:_0x247d28,env:_0x4e490f}){if(shouldRouteWriteToNativeTool(_0x247d28,_0x4e490f))return;console['error'](_0x4cdbfc);},'createError'(_0x18f7ec,{def:_0x721beb,env:_0x5a1cce}){if(shouldRouteWriteToNativeTool(_0x721beb,_0x5a1cce))return CliErrors['nativeToolRequired'](CLI_BIN_NAME+'\x20'+_0x721beb['service']+'\x20'+_0x721beb['command']);return CliErrors['cancelled'](_0x18f7ec);}},async 'prepare'(_0x5327f0,_0x349c6d){const _0x4fa5c5=_0x199636,_0x40c738=resolveAuthMode(_0x349c6d);if(_0x5327f0[_0x4fa5c5(0x80)]!==![]){if(!_0x349c6d['accessKey'])throw CliErrors[_0x4fa5c5(0x6f)]('Set\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x4fa5c5(0xa1)]+_0x4fa5c5(0xa2)+productEnvName(_0x4fa5c5(0x93))+'.');const {setActiveAK:_0x3dde98}=await import(_0x4fa5c5(0x8f));_0x3dde98(_0x349c6d[_0x4fa5c5(0x96)]);}let _0x3f8263='';if(_0x5327f0[_0x4fa5c5(0x8a)]!==![]){_0x3f8263=_0x349c6d['appCode']??'',_0x3f8263=await resolveExplicitAppName(_0x5327f0,_0x349c6d,_0x3f8263);if(!_0x3f8263){await assertSelectedAppNameIsRuntimeAccessible(_0x5327f0,_0x349c6d);throw CliErrors[_0x4fa5c5(0x75)](_0x4fa5c5(0xab)+PRODUCT_CONFIG[_0x4fa5c5(0xa1)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x5327f0,_0x349c6d,_0x3f8263);}if(_0x3f8263){const {initSdkClient:_0xe71617}=await import(_0x4fa5c5(0x6d));_0xe71617({'appCode':_0x3f8263,'env':_0x349c6d[_0x4fa5c5(0x85)]??_0x4fa5c5(0x73),'runtimeDomain':_0x349c6d[_0x4fa5c5(0x9c)],'accessKey':_0x349c6d[_0x4fa5c5(0x96)],'authMode':_0x40c738}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x349c6d[_0x4fa5c5(0x88)]},'numbers':{'pagesize':_0x349c6d[_0x4fa5c5(0x7c)]}},'extras':{'appCode':_0x3f8263,'cookie':'','apiDomain':_0x349c6d[_0x4fa5c5(0xad)],'apiDir':'','accessKey':_0x349c6d['accessKey'],'envName':_0x349c6d['env'],'mergedCli':_0x349c6d[_0x4fa5c5(0x9e)]}};},'confirmHighRisk':_0x1c5462['confirmHighRisk']??(async({def:_0x16decb,env:_0x4fce22,flags:_0x4297d8,commandLabel:_0x5d078f})=>{const _0x1c5144=_0x199636;if(_0x4fce22['isNonInteractive']){const _0x4cbe76=reconstructCommandArgv(_0x16decb,_0x4297d8);throw CliErrors[_0x1c5144(0x99)](_0x1c5144(0xa7)+_0x5d078f+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a'+('\x20\x20To\x20proceed:\x20'+_0x4cbe76));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x16decb,_0x5d078f,_0x4297d8),'createCancelledError':_0x39837c=>CliErrors['cancelled'](_0x39837c)});}),'mapDryRunError'(_0x2fd238){return mapUserFacingExecuteError(_0x2fd238);},'mapExecuteError'(_0x2e3a9c){return mapUserFacingExecuteError(_0x2e3a9c);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x34e8d1;}function shouldRouteWriteToNativeTool(_0x4f12dc,_0x59903b){const _0x8bb911=a128_0x214a;return _0x59903b[_0x8bb911(0x94)]===!![]&&(_0x4f12dc['risk']==='write'||_0x4f12dc[_0x8bb911(0xa4)]===_0x8bb911(0xa0));}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x438c84=a128_0x214a;try{if(sdkClientInitialized){const {clearSdkClient:_0x12d585}=await import(_0x438c84(0x6d));_0x12d585();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x5eebec}=await import(_0x438c84(0x8f));_0x5eebec();}}async function resolveExplicitAppName(_0x479b5d,_0x471caa,_0x3bfe8c){const _0x11e442=a128_0x214a;if(_0x479b5d[_0x11e442(0x8a)]===![])return _0x3bfe8c;const _0x39fba4=typeof _0x471caa['rawFlags'][_0x11e442(0x83)]===_0x11e442(0x9a)?_0x471caa[_0x11e442(0x98)][_0x11e442(0x83)][_0x11e442(0x8d)]():'';if(!_0x39fba4)return _0x3bfe8c;const _0x5a945a=typeof _0x471caa[_0x11e442(0x98)][_0x11e442(0x9d)]==='string'&&_0x471caa['rawFlags'][_0x11e442(0x9d)][_0x11e442(0x8d)]()||productEnv(_0x11e442(0x81));if(_0x5a945a||_0x471caa[_0x11e442(0x76)]===_0x11e442(0xa9))return _0x3bfe8c;const {getRemoteAppList:_0x5044f1}=await import('../commands/app/remote-source.js'),_0x25e54b=await _0x5044f1({'env':_0x471caa[_0x11e442(0x85)]??_0x11e442(0x73),'accessKey':_0x471caa[_0x11e442(0x96)]}),_0x104aaa=findAppByName(_0x25e54b[_0x11e442(0x77)],_0x39fba4);if(_0x104aaa&&!isRuntimeAccessibleApp(_0x104aaa))throw runtimeInaccessibleAppError(_0x104aaa,'\x22'+_0x39fba4+'\x22');const _0x171b0d=_0x104aaa?.[_0x11e442(0x8b)]?.['trim']();if(_0x171b0d)return _0x171b0d;throw CliErrors[_0x11e442(0x99)](_0x11e442(0x8c)+_0x39fba4,'Run\x20`'+CLI_BIN_NAME+_0x11e442(0xaf)+_0x39fba4+_0x11e442(0x9b)+PRODUCT_CONFIG[_0x11e442(0xa1)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x5d3732,_0xdb2f23){const _0x3cd660=a128_0x214a;if(_0x5d3732[_0x3cd660(0x8a)]===![]||!_0xdb2f23['accessKey'])return;const _0x4114aa=(typeof _0xdb2f23[_0x3cd660(0x98)][_0x3cd660(0x83)]==='string'&&_0xdb2f23['rawFlags'][_0x3cd660(0x83)][_0x3cd660(0x8d)]()?_0xdb2f23[_0x3cd660(0x98)][_0x3cd660(0x83)]:_0xdb2f23[_0x3cd660(0x9e)]?.[_0x3cd660(0x7f)]??_0xdb2f23[_0x3cd660(0x9e)]?.[_0x3cd660(0x70)])?.['trim']();if(!_0x4114aa)return;const {getRemoteAppList:_0x38aaf7}=await import('../commands/app/remote-source.js'),_0x379d36=await _0x38aaf7({'env':_0xdb2f23['env']??_0x3cd660(0x73),'accessKey':_0xdb2f23['accessKey']}),_0x99b3fc=findAppByName(_0x379d36[_0x3cd660(0x77)],_0x4114aa);if(_0x99b3fc&&!isRuntimeAccessibleApp(_0x99b3fc))throw runtimeInaccessibleAppError(_0x99b3fc,'\x22'+_0x4114aa+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0xffa247,_0x12fd6f,_0x11687f){const _0x3a852e=a128_0x214a;if(_0xffa247[_0x3a852e(0x8a)]===![]||!_0x12fd6f[_0x3a852e(0x96)])return;const {getRemoteAppList:_0x57417f}=await import(_0x3a852e(0x9f)),_0x22eb6e=await _0x57417f({'env':_0x12fd6f[_0x3a852e(0x85)]??_0x3a852e(0x73),'accessKey':_0x12fd6f[_0x3a852e(0x96)]}),_0x32bb49=findAppByCode(_0x22eb6e[_0x3a852e(0x77)],_0x11687f);if(_0x32bb49&&!isRuntimeAccessibleApp(_0x32bb49))throw runtimeInaccessibleAppError(_0x32bb49,_0x3a852e(0xa5)+_0x11687f+'\x22');}export async function runCommand(_0x546c09,_0x3ffa39,_0x5a1402=terminalRunnerAdapter){const _0x15937c=a128_0x214a;assertKnownCommandFlags(_0x546c09,_0x3ffa39[_0x15937c(0x98)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x546c09)?withVersionPolicy(_0x546c09):_0x546c09,_0x3ffa39,_0x5a1402);}function shouldApplyVersionPolicy(_0x58f277){const _0x3eebfc=a128_0x214a;if([_0x3eebfc(0x8e),'schema',_0x3eebfc(0x90)]['includes'](_0x58f277[_0x3eebfc(0x86)]))return![];return!(_0x58f277[_0x3eebfc(0x86)]===_0x3eebfc(0x89)&&_0x58f277['command']===_0x3eebfc(0x7e));}function withVersionPolicy(_0xf51187){return{..._0xf51187,async 'execute'(_0x1f91cb){const _0x7b09df=a128_0x214a,_0x3f1a4b=await checkCliVersion();assertCliVersionSupported(_0x3f1a4b);const _0x235ce1=shouldResolveUpdateNotice(_0x1f91cb)?resolveLatestUpdateNotice(_0x3f1a4b)[_0x7b09df(0x6e)](()=>null):Promise[_0x7b09df(0x7b)](null),_0x2c44b5=await _0xf51187[_0x7b09df(0x92)](_0x1f91cb);return attachUpdateNotice(_0x2c44b5,await _0x235ce1);}};}function shouldResolveUpdateNotice(_0x2a7d41){const _0x57cf8b=a128_0x214a;return _0x2a7d41[_0x57cf8b(0xa3)]==='pretty'&&!_0x2a7d41[_0x57cf8b(0x71)];}function attachUpdateNotice(_0x49adb5,_0x4688f0){const _0x526c33=a128_0x214a;if(!_0x4688f0||!_0x49adb5||typeof _0x49adb5!==_0x526c33(0xa8))return _0x49adb5;const _0x1bdd9f=_0x49adb5,_0x55cd7f=typeof _0x1bdd9f[_0x526c33(0x72)]===_0x526c33(0xa8)&&_0x1bdd9f[_0x526c33(0x72)]!==null?_0x1bdd9f['_notice']:{};return{..._0x1bdd9f,'_notice':{..._0x55cd7f,'update':_0x4688f0}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x30b8ec,_0x2d47ae){const _0x32f15b=a129_0x1253,_0x170c83=_0x30b8ec();while(!![]){try{const _0x28f625=parseInt(_0x32f15b(0x1fc))/0x1*(parseInt(_0x32f15b(0x1f6))/0x2)+-parseInt(_0x32f15b(0x202))/0x3+parseInt(_0x32f15b(0x1ff))/0x4*(-parseInt(_0x32f15b(0x1fd))/0x5)+parseInt(_0x32f15b(0x1fa))/0x6*(parseInt(_0x32f15b(0x1fe))/0x7)+-parseInt(_0x32f15b(0x200))/0x8*(parseInt(_0x32f15b(0x1f5))/0x9)+parseInt(_0x32f15b(0x1fb))/0xa+parseInt(_0x32f15b(0x1f7))/0xb;if(_0x28f625===_0x2d47ae)break;else _0x170c83['push'](_0x170c83['shift']());}catch(_0x55dbf1){_0x170c83['push'](_0x170c83['shift']());}}}(a129_0x15ca,0x84a07));import{buildSchemaPayload as a129_0x4778b9}from'@lovrabet/cli-framework';function a129_0x1253(_0xa961d3,_0x2b8d5d){_0xa961d3=_0xa961d3-0x1f3;const _0x15cad2=a129_0x15ca();let _0x12537b=_0x15cad2[_0xa961d3];return _0x12537b;}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';export async function buildSchemaPayload(){const _0x414d0f=a129_0x1253,{serviceRegistry:_0x14b30e,findDefinition:_0x45fa22}=await import(_0x414d0f(0x203)),_0x3b88bf=new Set(_0x14b30e[_0x414d0f(0x1f9)](_0x3c745f=>_0x3c745f['service'])),_0x265cfb=listDynamicServiceEntries()[_0x414d0f(0x1f8)](_0x3e9911=>!_0x3b88bf['has'](_0x3e9911[_0x414d0f(0x1f4)])),_0x1dac99=a129_0x4778b9({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x14b30e,_0x265cfb),'buildAllFlags':buildAllFlags,'findDefinition':(_0x37b7ff,_0x39a5c7)=>_0x45fa22(_0x37b7ff,_0x39a5c7)??findDynamicServiceDefinition(_0x37b7ff,_0x39a5c7)});return normalizeSchemaPayload(_0x1dac99);}function normalizeSchemaPayload(_0x330ad9){const _0x432522=a129_0x1253;return{..._0x330ad9,'schemaVersion':0x2,'services':_0x330ad9['services']['map'](_0x1841e2=>({..._0x1841e2,'commands':_0x1841e2['commands'][_0x432522(0x1f9)](normalizeSchemaCommand)}))};}function a129_0x15ca(){const _0x41b7c6=['152EbYYhZ','requiresAuth','3247839aGBAtt','../commands/registry.js','none','service','97749qBFFcG','5956sBCVHU','12645402LMSqCu','filter','map','2154BKudHp','1930210DFobgm','66REzzOp','923035TWeqMm','16513meQllY','12ysBkzz'];a129_0x15ca=function(){return _0x41b7c6;};return a129_0x15ca();}function normalizeSchemaCommand(_0x49b104){const _0x266978=a129_0x1253,_0x5e3e94=_0x49b104;return{..._0x49b104,'auth':_0x5e3e94['auth']??(_0x49b104[_0x266978(0x201)]?'required':_0x266978(0x1f3))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a130_0x24dd(){const _0xbebc9b=['9217430Vzcdtw','findIndex','2933YkfVtv','slice','service','10792776GKRejz','15624400AipkMY','267084YTAifa','966864OJrDYD','5RYbtSZ','3piOXLo','1423320RkKHvc','9cyzIQa','3VyVtPE','4496VFWsbp'];a130_0x24dd=function(){return _0xbebc9b;};return a130_0x24dd();}(function(_0x32fde5,_0x2b5c5f){const _0x15d2a7=a130_0x285c,_0x89db5e=_0x32fde5();while(!![]){try{const _0x58a9ba=parseInt(_0x15d2a7(0x19b))/0x1*(-parseInt(_0x15d2a7(0x198))/0x2)+parseInt(_0x15d2a7(0x19e))/0x3*(parseInt(_0x15d2a7(0x199))/0x4)+parseInt(_0x15d2a7(0x19a))/0x5*(-parseInt(_0x15d2a7(0x19c))/0x6)+-parseInt(_0x15d2a7(0x1a2))/0x7*(parseInt(_0x15d2a7(0x19f))/0x8)+parseInt(_0x15d2a7(0x19d))/0x9*(-parseInt(_0x15d2a7(0x1a0))/0xa)+parseInt(_0x15d2a7(0x1a6))/0xb+parseInt(_0x15d2a7(0x1a5))/0xc;if(_0x58a9ba===_0x2b5c5f)break;else _0x89db5e['push'](_0x89db5e['shift']());}catch(_0x18a9fb){_0x89db5e['push'](_0x89db5e['shift']());}}}(a130_0x24dd,0xbb1ef));function a130_0x285c(_0x3d7270,_0x45828e){_0x3d7270=_0x3d7270-0x198;const _0x24ddf8=a130_0x24dd();let _0x285cbe=_0x24ddf8[_0x3d7270];return _0x285cbe;}export function insertDynamicServicesAfterServiceTree(_0x262f8f,_0x1e5abc){const _0x5c95e9=a130_0x285c;if(_0x1e5abc['length']===0x0)return[..._0x262f8f];const _0x59d3c2=_0x262f8f[_0x5c95e9(0x1a1)](_0x2bebcf=>_0x2bebcf[_0x5c95e9(0x1a4)]===_0x5c95e9(0x1a4));if(_0x59d3c2<0x0)return[..._0x262f8f,..._0x1e5abc];return[..._0x262f8f[_0x5c95e9(0x1a3)](0x0,_0x59d3c2+0x1),..._0x1e5abc,..._0x262f8f[_0x5c95e9(0x1a3)](_0x59d3c2+0x1)];}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5ec4e7,_0x4b5a54){var _0x1819d7=a131_0x5c54,_0x301b97=_0x5ec4e7();while(!![]){try{var _0x4f0b10=parseInt(_0x1819d7(0x12b))/0x1*(parseInt(_0x1819d7(0x12a))/0x2)+parseInt(_0x1819d7(0x129))/0x3*(-parseInt(_0x1819d7(0x126))/0x4)+parseInt(_0x1819d7(0x12d))/0x5*(-parseInt(_0x1819d7(0x12c))/0x6)+parseInt(_0x1819d7(0x125))/0x7*(parseInt(_0x1819d7(0x128))/0x8)+-parseInt(_0x1819d7(0x130))/0x9*(parseInt(_0x1819d7(0x12e))/0xa)+-parseInt(_0x1819d7(0x124))/0xb*(parseInt(_0x1819d7(0x123))/0xc)+-parseInt(_0x1819d7(0x127))/0xd*(-parseInt(_0x1819d7(0x12f))/0xe);if(_0x4f0b10===_0x4b5a54)break;else _0x301b97['push'](_0x301b97['shift']());}catch(_0x4bed59){_0x301b97['push'](_0x301b97['shift']());}}}(a131_0x53d9,0x2aa6e));function a131_0x5c54(_0x1fd7d8,_0x356c0a){_0x1fd7d8=_0x1fd7d8-0x123;var _0x53d929=a131_0x53d9();var _0x5c5419=_0x53d929[_0x1fd7d8];return _0x5c5419;}function a131_0x53d9(){var _0x28befe=['141LdWHWh','6Ypfust','1644740kCbEwW','1420ergHqE','14TfiTdn','4761XQNvJd','1384260RhMLqz','11rtIdYk','4746FbhSsO','2732qMlosY','6075485BjqVtc','4000WJbANY','771bgBOVk','898gwrksX'];a131_0x53d9=function(){return _0x28befe;};return a131_0x53d9();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.3.8
|
|
2
|
-
export declare const GIT_TAG = "v2.3.8
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-11-02T15:
|
|
1
|
+
export declare const VERSION = "2.3.8";
|
|
2
|
+
export declare const GIT_TAG = "v2.3.8";
|
|
3
|
+
export declare const GIT_COMMIT = "e783fef";
|
|
4
|
+
export declare const BUILD_TIME = "2026-11-02T15:30:15.014Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a132_0x4ec953=a132_0x1e17;(function(_0x355fa7,_0x4b9562){const _0x218321=a132_0x1e17,_0x147d57=_0x355fa7();while(!![]){try{const _0x177caf=parseInt(_0x218321(0x127))/0x1+-parseInt(_0x218321(0x12a))/0x2*(-parseInt(_0x218321(0x123))/0x3)+parseInt(_0x218321(0x122))/0x4+parseInt(_0x218321(0x128))/0x5*(-parseInt(_0x218321(0x125))/0x6)+parseInt(_0x218321(0x12f))/0x7*(parseInt(_0x218321(0x124))/0x8)+-parseInt(_0x218321(0x12c))/0x9*(parseInt(_0x218321(0x126))/0xa)+-parseInt(_0x218321(0x12b))/0xb;if(_0x177caf===_0x4b9562)break;else _0x147d57['push'](_0x147d57['shift']());}catch(_0x466557){_0x147d57['push'](_0x147d57['shift']());}}}(a132_0xfefb,0xf223a));export const VERSION=a132_0x4ec953(0x129);export const GIT_TAG=a132_0x4ec953(0x12e);function a132_0x1e17(_0x330217,_0x1dcaa0){_0x330217=_0x330217-0x122;const _0xfefbf3=a132_0xfefb();let _0x1e176d=_0xfefbf3[_0x330217];return _0x1e176d;}function a132_0xfefb(){const _0x44e687=['1494299zSlomf','1440560nfJJzq','2.3.8','50146rQQStw','25643596JkxdIx','747rrEqEc','2026-11-02T15:30:15.014Z','v2.3.8','777NIziky','7259652edGzqc','111twJLOJ','21744ifqTQp','12TIGoMl','77030qDIrCO'];a132_0xfefb=function(){return _0x44e687;};return a132_0xfefb();}export const GIT_COMMIT='e783fef';export const BUILD_TIME=a132_0x4ec953(0x12d);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a133_0x55a1aa=a133_0xb4ff;(function(_0x54b860,_0x449971){const _0x39cd84=a133_0xb4ff,_0x61e4e6=_0x54b860();while(!![]){try{const _0x2f4e49=parseInt(_0x39cd84(0x200))/0x1+-parseInt(_0x39cd84(0x1ee))/0x2*(-parseInt(_0x39cd84(0x1f4))/0x3)+parseInt(_0x39cd84(0x1f2))/0x4+-parseInt(_0x39cd84(0x1f0))/0x5*(parseInt(_0x39cd84(0x1fc))/0x6)+-parseInt(_0x39cd84(0x1f6))/0x7*(-parseInt(_0x39cd84(0x1f7))/0x8)+-parseInt(_0x39cd84(0x1f8))/0x9*(-parseInt(_0x39cd84(0x1ea))/0xa)+-parseInt(_0x39cd84(0x1e3))/0xb*(parseInt(_0x39cd84(0x1fb))/0xc);if(_0x2f4e49===_0x449971)break;else _0x61e4e6['push'](_0x61e4e6['shift']());}catch(_0x1f6893){_0x61e4e6['push'](_0x61e4e6['shift']());}}}(a133_0x5d33,0x6d668));export const ROUTING_CATALOG_DIGEST=a133_0x55a1aa(0x1f1);function a133_0xb4ff(_0x1d47de,_0x4c4da4){_0x1d47de=_0x1d47de-0x1e3;const _0x5d33d4=a133_0x5d33();let _0xb4ff95=_0x5d33d4[_0x1d47de];return _0xb4ff95;}export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id',a133_0x55a1aa(0x1eb)];export const ENABLED_REGION_VALUES=['cn','id','global'];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a133_0x55a1aa(0x1e5),'aliases':['china'],'serviceDomains':{'production':{'user':'https://user.lovrabet.com','api':'https://api.lovrabet.com','runtime':'https://runtime.lovrabet.com','skill':a133_0x55a1aa(0x1e9),'kbService':a133_0x55a1aa(0x1e6)},'daily':{'user':a133_0x55a1aa(0x1e4),'api':a133_0x55a1aa(0x1fa),'runtime':a133_0x55a1aa(0x203),'skill':a133_0x55a1aa(0x1f9),'kbService':a133_0x55a1aa(0x1f5)}}},'id':{'enabled':!![],'label':a133_0x55a1aa(0x1ff),'aliases':[a133_0x55a1aa(0x1ed)],'serviceDomains':{'production':{'user':a133_0x55a1aa(0x1e7),'api':'https://api.lovrabet.id','runtime':a133_0x55a1aa(0x204),'skill':a133_0x55a1aa(0x1e8),'kbService':a133_0x55a1aa(0x201)}}},'global':{'enabled':!![],'label':a133_0x55a1aa(0x1ef),'aliases':[],'serviceDomains':{'production':{'user':a133_0x55a1aa(0x1f3),'api':'https://api.lovrabet.ai','runtime':a133_0x55a1aa(0x202),'skill':a133_0x55a1aa(0x1fd)},'daily':{'user':a133_0x55a1aa(0x1ec),'api':a133_0x55a1aa(0x1fe),'runtime':'https://daily-runtime.lovrabet.ai','skill':'https://skills-daily.lovrabet.ai'}}}};function a133_0x5d33(){const _0x4c9948=['8jnkYaT','9rkRyTJ','https://skills-daily.lovrabet.com','https://daily-api.lovrabet.com','12viPpTa','19122AbBNCt','https://skills.lovrabet.ai','https://daily-api.lovrabet.ai','Indonesia','822995rcOPuM','https://kb-service.lovrabet.id','https://runtime.lovrabet.ai','https://daily-runtime.lovrabet.com','https://runtime.lovrabet.id','13828793IICbvZ','https://user-daily.lovrabet.com','Mainland\x20China','https://kb-service.lovrabet.com','https://user.lovrabet.id','https://skills.lovrabet.id','https://skills.lovrabet.com','2007410VovstH','global','https://user-daily.lovrabet.ai','indonesia','2LhzOPn','Global','1285ZqvBTz','886843ef89aa4ff2b36d612e8fbd1b6c1840b37728916fba5699be34129ef579','3111476sQbnEl','https://user.lovrabet.ai','1237668fzqZHr','https://kb-service-daily.lovrabet.com','2171155ncsPYu'];a133_0x5d33=function(){return _0x4c9948;};return a133_0x5d33();}export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a134_0x408e0c=a134_0x4123;function a134_0x4123(_0x3519a3,_0x3bba15){_0x3519a3=_0x3519a3-0x19f;const _0x472c47=a134_0x472c();let _0x41232a=_0x472c47[_0x3519a3];return _0x41232a;}(function(_0x2d6165,_0x841b7f){const _0x5c2c60=a134_0x4123,_0x2def37=_0x2d6165();while(!![]){try{const _0x1be0ab=parseInt(_0x5c2c60(0x1a9))/0x1*(-parseInt(_0x5c2c60(0x1a3))/0x2)+parseInt(_0x5c2c60(0x1a4))/0x3+parseInt(_0x5c2c60(0x1ac))/0x4+parseInt(_0x5c2c60(0x1ae))/0x5*(parseInt(_0x5c2c60(0x1a7))/0x6)+parseInt(_0x5c2c60(0x1ab))/0x7+parseInt(_0x5c2c60(0x1aa))/0x8*(-parseInt(_0x5c2c60(0x19f))/0x9)+parseInt(_0x5c2c60(0x1a2))/0xa*(parseInt(_0x5c2c60(0x1ad))/0xb);if(_0x1be0ab===_0x841b7f)break;else _0x2def37['push'](_0x2def37['shift']());}catch(_0x26af50){_0x2def37['push'](_0x2def37['shift']());}}}(a134_0x472c,0xebd93));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST='e3423cad71c22edb18a8481be7bdb733ff2d4136c31aa3ae6da56271e32cced7';function a134_0x472c(){const _0x384efc=['runtimeDomain','50660qCcDDH','590482VDttXJ','426057aJVqbI','apiDomain','lovrabet-routing/v1','88980AOWDIT','skillDomain','4BnROTY','7580944MOcjUG','12404266zxmmOn','619960aPWLqD','2288ISsWZN','310ayxrAP','18blQPHk','userDomain'];a134_0x472c=function(){return _0x384efc;};return a134_0x472c();}export const ENTERPRISE_ROUTING_PROTOCOL=a134_0x408e0c(0x1a6);export const ENTERPRISE_ROUTING_KIND='enterprise';export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a134_0x408e0c(0x1a0),a134_0x408e0c(0x1a5),a134_0x408e0c(0x1a1),a134_0x408e0c(0x1a8),'kbServiceDomain'];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a134_0x408e0c(0x1a0),'apiDomain',a134_0x408e0c(0x1a1),'skillDomain'];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x41c945,_0x4e42ae){const _0x3a19f5=a135_0xf0e1,_0x248b36=_0x41c945();while(!![]){try{const _0x56a9f2=parseInt(_0x3a19f5(0x137))/0x1*(-parseInt(_0x3a19f5(0x13e))/0x2)+-parseInt(_0x3a19f5(0x13f))/0x3*(parseInt(_0x3a19f5(0x13d))/0x4)+parseInt(_0x3a19f5(0x136))/0x5*(parseInt(_0x3a19f5(0x134))/0x6)+-parseInt(_0x3a19f5(0x133))/0x7*(parseInt(_0x3a19f5(0x135))/0x8)+-parseInt(_0x3a19f5(0x132))/0x9+parseInt(_0x3a19f5(0x13a))/0xa+-parseInt(_0x3a19f5(0x13c))/0xb*(-parseInt(_0x3a19f5(0x139))/0xc);if(_0x56a9f2===_0x4e42ae)break;else _0x248b36['push'](_0x248b36['shift']());}catch(_0xd64a65){_0x248b36['push'](_0x248b36['shift']());}}}(a135_0x1b16,0x9fe56));import{jsx as a135_0x323a77,jsxs as a135_0x1b596f}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';function a135_0x1b16(){const _0x145746=['\x20\x20Use\x20','\x20--help','8056611WlbSgY','91PkJhuW','118674sKaRUM','488256qYuMkt','30CEgPdi','13AxIvXu','green','60xXFsgr','6551640XrKmPx','column','4556178qPoRbE','1982524epiEVE','872EUQxwm','3VQpinX'];a135_0x1b16=function(){return _0x145746;};return a135_0x1b16();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a135_0xf0e1(_0x2ce014,_0x17ec32){_0x2ce014=_0x2ce014-0x130;const _0x1b16a1=a135_0x1b16();let _0xf0e108=_0x1b16a1[_0x2ce014];return _0xf0e108;}export function Help(){const _0x221f32=a135_0xf0e1,{exit:_0x28c3ae}=useApp();return useEffect(()=>{_0x28c3ae();},[_0x28c3ae]),a135_0x1b596f(Box,{'flexDirection':_0x221f32(0x13b),'marginTop':0x1,'marginBottom':0x1,'children':[a135_0x323a77(Box,{'children':a135_0x323a77(Text,{'bold':!![],'color':_0x221f32(0x138),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a135_0x1b596f(Box,{'marginTop':0x1,'children':[a135_0x323a77(Text,{'dimColor':!![],'children':_0x221f32(0x130)}),a135_0x323a77(Text,{'bold':!![],'color':'green','children':CLI_BIN_NAME+_0x221f32(0x131)}),a135_0x323a77(Text,{'dimColor':!![],'children':'\x20to\x20view\x20available\x20commands.'})]})]});}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a136_0x7456(){const _0x51de53=['529734GgOoaZ','5082600BayJbS','already\x20current','warn','8895834pFivtQ','installedPath','repairCommand','skillVersion','2PkPBOa','16lEKCYY','\x20at\x20','SOURCE_INVALID','\x20via\x20skills@latest','Lovrabet\x20Built-in\x20Skill\x20','7760010HOZpOZ','122765NRMvpb','31256lNsbRb','installed','[BUILTIN_SKILL_INSTALL_','FAILED','code','399TzsDOI','5111850THzHYo'];a136_0x7456=function(){return _0x51de53;};return a136_0x7456();}(function(_0x1d595c,_0x3520a4){const _0x1e79a4=a136_0x1ac3,_0x16f6a9=_0x1d595c();while(!![]){try{const _0x19ae7f=parseInt(_0x1e79a4(0xfb))/0x1*(parseInt(_0x1e79a4(0xf4))/0x2)+-parseInt(_0x1e79a4(0xec))/0x3*(parseInt(_0x1e79a4(0xf5))/0x4)+parseInt(_0x1e79a4(0xed))/0x5+parseInt(_0x1e79a4(0xeb))/0x6+parseInt(_0x1e79a4(0xea))/0x7*(-parseInt(_0x1e79a4(0xe5))/0x8)+-parseInt(_0x1e79a4(0xf0))/0x9+parseInt(_0x1e79a4(0xfa))/0xa;if(_0x19ae7f===_0x3520a4)break;else _0x16f6a9['push'](_0x16f6a9['shift']());}catch(_0x281bdf){_0x16f6a9['push'](_0x16f6a9['shift']());}}}(a136_0x7456,0xcf7a0));function a136_0x1ac3(_0x3b628f,_0xfe57a7){_0x3b628f=_0x3b628f-0xe5;const _0x74567c=a136_0x7456();let _0x1ac378=_0x74567c[_0x3b628f];return _0x1ac378;}import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x1b3254={}){const _0x1e4c2c=a136_0x1ac3,_0x2fb06e=installBuiltinSkill(_0x1b3254);if(_0x2fb06e['ok']){const _0x28068a=_0x2fb06e['changed']?_0x1e4c2c(0xe6):_0x1e4c2c(0xee),_0x30f69c=_0x2fb06e[_0x1e4c2c(0xf1)]?_0x1e4c2c(0xf6)+_0x2fb06e[_0x1e4c2c(0xf1)]:_0x1e4c2c(0xf8);return console['log'](_0x1e4c2c(0xf9)+_0x2fb06e[_0x1e4c2c(0xf3)]+'\x20'+_0x28068a+_0x30f69c),_0x2fb06e;}const _0x323199=_0x1e4c2c(0xe7)+(_0x2fb06e['code']??_0x1e4c2c(0xe8))+']\x20'+(_0x2fb06e['error']??'Installation\x20failed')+'.\x20'+('Repair\x20with:\x20'+_0x2fb06e[_0x1e4c2c(0xf2)]);if(_0x2fb06e[_0x1e4c2c(0xe9)]===_0x1e4c2c(0xf7))throw new Error(_0x323199);return console[_0x1e4c2c(0xef)](_0x323199),_0x2fb06e;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x527935,_0x84723f){const _0x2807df=a137_0x1b56,_0x5ba081=_0x527935();while(!![]){try{const _0x1bb27a=-parseInt(_0x2807df(0x1b3))/0x1*(-parseInt(_0x2807df(0x1b0))/0x2)+parseInt(_0x2807df(0x1b8))/0x3*(-parseInt(_0x2807df(0x1c4))/0x4)+parseInt(_0x2807df(0x1c2))/0x5*(parseInt(_0x2807df(0x1b5))/0x6)+parseInt(_0x2807df(0x1bc))/0x7*(-parseInt(_0x2807df(0x1c5))/0x8)+-parseInt(_0x2807df(0x1b2))/0x9*(parseInt(_0x2807df(0x1b7))/0xa)+-parseInt(_0x2807df(0x1bb))/0xb*(-parseInt(_0x2807df(0x1b9))/0xc)+parseInt(_0x2807df(0x1b6))/0xd;if(_0x1bb27a===_0x84723f)break;else _0x5ba081['push'](_0x5ba081['shift']());}catch(_0x325cf8){_0x5ba081['push'](_0x5ba081['shift']());}}}(a137_0x5802,0xaf8e3));function a137_0x1b56(_0x10f4d6,_0x56ee9d){_0x10f4d6=_0x10f4d6-0x1b0;const _0x5802e2=a137_0x5802();let _0x1b56f8=_0x5802e2[_0x10f4d6];return _0x1b56f8;}function a137_0x5802(){const _0x3a4cfe=['trim','20HyDSDW','Run\x20this\x20write\x20operation','4CJNcWP','8VgVuHI','21974aMvNJv','high-risk-write','1019835HTNsLk','25TWxfKT','write','1892862ZlZNha','20974928sULJXV','120bdCymD','3624063FAfBiI','2509884buIuzF','risk','44RcFkKt','4898537qAVpTR','replace','Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.','description','slice'];a137_0x5802=function(){return _0x3a4cfe;};return a137_0x5802();}const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildLovrabetConfirmationRequest(_0x4f1b38,_0x2e3cda,_0xafd74c){const _0x5b5ca0=a137_0x1b56,_0x5afb1b=normalizeText(_0x4f1b38['confirmationDescription'],DESCRIPTION_MAX_LENGTH),_0x338133=normalizeText(_0x4f1b38[_0x5b5ca0(0x1bf)],DESCRIPTION_MAX_LENGTH);return{'operation':_0x2e3cda,'risk':requireWriteRisk(_0x4f1b38),'description':_0x5afb1b||_0x338133||_0x5b5ca0(0x1c3),..._0xafd74c?{'signal':_0xafd74c}:{}};}function requireWriteRisk(_0x28fcf5){const _0x2040d9=a137_0x1b56;if(_0x28fcf5['risk']===_0x2040d9(0x1b4)||_0x28fcf5[_0x2040d9(0x1ba)]===_0x2040d9(0x1b1))return _0x28fcf5[_0x2040d9(0x1ba)];throw new Error(_0x2040d9(0x1be));}function normalizeText(_0x5a6120,_0x2f3733){const _0x1fcec6=a137_0x1b56;if(typeof _0x5a6120!=='string')return'';return _0x5a6120[_0x1fcec6(0x1bd)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x1fcec6(0x1bd)](/\s+/g,'\x20')[_0x1fcec6(0x1c1)]()[_0x1fcec6(0x1c0)](0x0,_0x2f3733);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x39e455,_0x305a6e){const _0x12229d=a138_0x36fe,_0x88165d=_0x39e455();while(!![]){try{const _0x215465=-parseInt(_0x12229d(0x1cf))/0x1*(parseInt(_0x12229d(0x1c6))/0x2)+-parseInt(_0x12229d(0x1d2))/0x3*(-parseInt(_0x12229d(0x1cd))/0x4)+parseInt(_0x12229d(0x1c7))/0x5*(parseInt(_0x12229d(0x1cc))/0x6)+-parseInt(_0x12229d(0x1d5))/0x7+-parseInt(_0x12229d(0x1d3))/0x8*(parseInt(_0x12229d(0x1d4))/0x9)+parseInt(_0x12229d(0x1d1))/0xa+-parseInt(_0x12229d(0x1d0))/0xb*(-parseInt(_0x12229d(0x1cb))/0xc);if(_0x215465===_0x305a6e)break;else _0x88165d['push'](_0x88165d['shift']());}catch(_0x36b383){_0x88165d['push'](_0x88165d['shift']());}}}(a138_0x5b05,0x32260));export function canonicalLovrabetOperation(_0xc172a9){const _0x2aa9f8=a138_0x36fe;return[_0xc172a9['service'],..._0xc172a9['command'][_0x2aa9f8(0x1ce)]()['split'](/\s+/)][_0x2aa9f8(0x1c9)](Boolean)['join']('.');}function a138_0x36fe(_0x22ce46,_0x3b9c22){_0x22ce46=_0x22ce46-0x1c4;const _0x5b0544=a138_0x5b05();let _0x36fee4=_0x5b0544[_0x22ce46];return _0x36fee4;}function a138_0x5b05(){const _0xafff3b=['2158717vuEIln','1205490xRMkrj','6HdhMXC','14352ZOCxhq','396TWcwdY','1076110KPVZvF','write','high-risk-write','416618VWOSBs','685FPpIOI','writeEventSubject','filter','risk','24LUWHIQ','3084EKTyOW','125844bnEake','trim','1fOXnaI'];a138_0x5b05=function(){return _0xafff3b;};return a138_0x5b05();}export function createLovrabetWriteMetadata(_0x332c27,_0x58d886,_0x22b46e,_0x3e7618){const _0x892c5e=a138_0x36fe;if(_0x3e7618||_0x22b46e['ok']!==!![]||_0x332c27['risk']!==_0x892c5e(0x1c4)&&_0x332c27[_0x892c5e(0x1ca)]!==_0x892c5e(0x1c5))return undefined;const _0xc6b66a=_0x332c27[_0x892c5e(0x1c8)]?.(_0x22b46e),_0x4a2c71={'type':'lovrabet.write.completed','operation':_0x58d886,'risk':_0x332c27[_0x892c5e(0x1ca)],..._0xc6b66a?{'subject':_0xc6b66a}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x4a2c71}};}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a139_0x1e55(_0x2b1b91,_0x5668ce){_0x2b1b91=_0x2b1b91-0x121;const _0x4c544e=a139_0x4c54();let _0x1e5506=_0x4c544e[_0x2b1b91];return _0x1e5506;}(function(_0x4adb2f,_0x174cc1){const _0x158688=a139_0x1e55,_0x1166c8=_0x4adb2f();while(!![]){try{const _0x6ede04=parseInt(_0x158688(0x12f))/0x1+parseInt(_0x158688(0x145))/0x2*(parseInt(_0x158688(0x137))/0x3)+parseInt(_0x158688(0x141))/0x4*(-parseInt(_0x158688(0x128))/0x5)+parseInt(_0x158688(0x140))/0x6+-parseInt(_0x158688(0x146))/0x7*(parseInt(_0x158688(0x138))/0x8)+-parseInt(_0x158688(0x13b))/0x9+parseInt(_0x158688(0x12d))/0xa*(parseInt(_0x158688(0x139))/0xb);if(_0x6ede04===_0x174cc1)break;else _0x1166c8['push'](_0x1166c8['shift']());}catch(_0x2978bf){_0x1166c8['push'](_0x1166c8['shift']());}}}(a139_0x4c54,0x95144));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';import{canonicalLovrabetOperation,createLovrabetWriteMetadata}from'../runtime/event.js';import{buildLovrabetConfirmationRequest}from'../runtime/confirmation.js';import{resolveLovrabetInvocation}from'../runtime/resolve.js';import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0xa91f32,command:_0x4f17ab,risk:_0x18ea6e,dryRun:_0x35be15}){const _0x526c01=a139_0x1e55;return JSON[_0x526c01(0x129)]({'ok':_0xa91f32['ok'],'command':_0x4f17ab,'risk':_0x18ea6e,..._0x35be15?{'dryRun':!![]}:{},..._0xa91f32[_0x526c01(0x12c)]!==undefined?{'data':_0xa91f32[_0x526c01(0x12c)]}:{},..._0xa91f32[_0x526c01(0x142)]?{'message':_0xa91f32[_0x526c01(0x142)]}:{}});}};export async function invokeLovrabet(_0x4c9fe8,_0x4d17a9){const _0x49ca71=a139_0x1e55;throwIfAborted(_0x4d17a9['signal']);const _0x32f39e=await resolveLovrabetInvocation(_0x4c9fe8),_0x362357=canonicalLovrabetOperation(_0x32f39e[_0x49ca71(0x135)]);return await confirmWriteBeforeQueue(_0x32f39e[_0x49ca71(0x135)],_0x32f39e[_0x49ca71(0x131)],_0x362357,_0x4d17a9),runSerialized(async()=>{const _0x3b4e01=_0x49ca71;throwIfAborted(_0x4d17a9['signal']);const _0x5e1972={},_0x5c6a79=buildConfigFromFlags(_0x32f39e[_0x3b4e01(0x131)]);await initGlobalEnvironment(_0x5c6a79);const _0xa5b72e=createPipelineEnv(_0x5c6a79,{..._0x32f39e[_0x3b4e01(0x131)],'yes':_0x32f39e[_0x3b4e01(0x135)][_0x3b4e01(0x122)]==='high-risk-write'?!![]:_0x32f39e[_0x3b4e01(0x131)][_0x3b4e01(0x133)],'nonInteractive':!![]});_0xa5b72e[_0x3b4e01(0x13e)]=_0x32f39e['args'],_0xa5b72e[_0x3b4e01(0x134)]=!![],_0xa5b72e['riskLevel']=_0x3b4e01(0x13f);const _0x3f2205=withAbortSignal(_0x32f39e[_0x3b4e01(0x135)],_0x4d17a9['signal']),_0x434c80=createLovrabetRunnerAdapter({'formatOutput'(_0x4343a0,_0x444408){const _0x1c419c=_0x3b4e01;_0x5e1972[_0x1c419c(0x123)]=_0x4343a0,_0x5e1972['command']=_0x444408[_0x1c419c(0x144)],_0x5e1972[_0x1c419c(0x122)]=_0x444408['risk'],_0x5e1972[_0x1c419c(0x130)]=_0x444408['format'],_0x5e1972[_0x1c419c(0x136)]=_0x444408[_0x1c419c(0x136)]===!![];},async 'confirmHighRisk'(){const _0x315b11=_0x3b4e01;throw new Error(_0x315b11(0x126));}});try{await runCommand(_0x3f2205,_0xa5b72e,_0x434c80);if(!_0x5e1972['result']||!_0x5e1972[_0x3b4e01(0x144)]||!_0x5e1972[_0x3b4e01(0x122)]||!_0x5e1972[_0x3b4e01(0x130)])throw new Error('Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.');const _0x534073=_0x4d17a9[_0x3b4e01(0x12a)]??defaultPresentation,_0x4cd573=_0x5e1972[_0x3b4e01(0x136)]===!![],_0x57eef9={'result':_0x5e1972[_0x3b4e01(0x123)],'command':_0x5e1972[_0x3b4e01(0x144)],'operation':_0x362357,'risk':_0x5e1972[_0x3b4e01(0x122)],'format':_0x5e1972['format'],'dryRun':_0x4cd573},_0x119a8d=createLovrabetWriteMetadata(_0x32f39e[_0x3b4e01(0x135)],_0x362357,_0x5e1972[_0x3b4e01(0x123)],_0x4cd573);let _0x3f0280;try{_0x3f0280=await _0x534073[_0x3b4e01(0x13c)](_0x57eef9);}catch(_0x14471a){if(!_0x119a8d||_0x534073===defaultPresentation)throw _0x14471a;_0x3f0280=await defaultPresentation[_0x3b4e01(0x13c)](_0x57eef9);}return{'operation':_0x362357,'risk':_0x5e1972[_0x3b4e01(0x122)],'mode':_0x4cd573?_0x3b4e01(0x124):_0x3b4e01(0x12b),'result':_0x5e1972[_0x3b4e01(0x123)],'output':_0x3f0280,..._0x119a8d?{'metadata':_0x119a8d}:{}};}finally{await finalizeLovrabetRuntimeState();}});}function a139_0x4c54(){const _0x472190=['high-risk-write','676752wDDjfN','12jvfpdl','message','AbortError','command','952xzFEBl','5239465VsHTmh','Lovrabet\x20invocation\x20aborted.','risk','result','dry-run','reason','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','aborted','559905OTZVmD','stringify','presentation','execute','data','4887530vqYHVT','confirmation','1060450ZqMDmc','format','rawFlags','write','yes','isNonInteractive','definition','dryRun','2904jEghuC','8znrimP','22pXAINY','signal','8248050chYZQx','present','confirm','args'];a139_0x4c54=function(){return _0x472190;};return a139_0x4c54();}async function confirmWriteBeforeQueue(_0x2906b4,_0x218f39,_0x4675ec,_0x16f178){const _0xe7a760=a139_0x1e55;if(_0x218f39[_0xe7a760(0x136)]===!![]||_0x2906b4['risk']!==_0xe7a760(0x132)&&_0x2906b4[_0xe7a760(0x122)]!==_0xe7a760(0x13f))return;await _0x16f178[_0xe7a760(0x12e)][_0xe7a760(0x13d)](buildLovrabetConfirmationRequest(_0x2906b4,_0x4675ec,_0x16f178[_0xe7a760(0x13a)]));}function withAbortSignal(_0x148e4a,_0x1ad40e){return{..._0x148e4a,async 'execute'(_0x5ddcc2){const _0x3061f6=a139_0x1e55;return throwIfAborted(_0x1ad40e),_0x148e4a[_0x3061f6(0x12b)]({..._0x5ddcc2,'signal':_0x1ad40e});}};}function throwIfAborted(_0xa84cd6){const _0x56a6cd=a139_0x1e55;if(_0xa84cd6?.[_0x56a6cd(0x127)])throw _0xa84cd6[_0x56a6cd(0x125)]instanceof Error?_0xa84cd6['reason']:new DOMException(_0x56a6cd(0x121),_0x56a6cd(0x143));}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a140_0x44e7(_0x490fd2,_0x372a7f){_0x490fd2=_0x490fd2-0x1f1;const _0x5042eb=a140_0x5042();let _0x44e76c=_0x5042eb[_0x490fd2];return _0x44e76c;}const a140_0x10e873=a140_0x44e7;(function(_0x2bbdbf,_0x509d97){const _0x16f376=a140_0x44e7,_0x4466f6=_0x2bbdbf();while(!![]){try{const _0x15e7e6=-parseInt(_0x16f376(0x1fa))/0x1*(parseInt(_0x16f376(0x1f3))/0x2)+-parseInt(_0x16f376(0x1f1))/0x3*(-parseInt(_0x16f376(0x1f5))/0x4)+-parseInt(_0x16f376(0x1fe))/0x5*(parseInt(_0x16f376(0x1f8))/0x6)+parseInt(_0x16f376(0x1f6))/0x7*(-parseInt(_0x16f376(0x1ff))/0x8)+parseInt(_0x16f376(0x1f9))/0x9+-parseInt(_0x16f376(0x1f2))/0xa*(parseInt(_0x16f376(0x1fc))/0xb)+parseInt(_0x16f376(0x1fb))/0xc*(parseInt(_0x16f376(0x1f7))/0xd);if(_0x15e7e6===_0x509d97)break;else _0x4466f6['push'](_0x4466f6['shift']());}catch(_0x29beb0){_0x4466f6['push'](_0x4466f6['shift']());}}}(a140_0x5042,0xdd265));let tail=Promise[a140_0x10e873(0x1f4)]();export async function runSerialized(_0x384779){const _0x191639=a140_0x10e873,_0x1282ad=tail;let _0x21cbab;tail=new Promise(_0x45664d=>{_0x21cbab=_0x45664d;}),await _0x1282ad[_0x191639(0x1fd)](()=>undefined);try{return await _0x384779();}finally{_0x21cbab();}}function a140_0x5042(){const _0x394bbb=['12YsGNqw','1170411NHsMrL','catch','310nODevu','280SlmEUu','15MeYHpp','170WYNLID','21094sJxUzu','resolve','244916KcDKuk','73808fLgbSS','51554854IyxssK','81492nAKouz','2770029xRUBLR','62RsbwVJ'];a140_0x5042=function(){return _0x394bbb;};return a140_0x5042();}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3238e7,_0x601491){const _0x1c36b7=a141_0x57c7,_0x4d98d3=_0x3238e7();while(!![]){try{const _0x21ebce=parseInt(_0x1c36b7(0x115))/0x1+parseInt(_0x1c36b7(0x10d))/0x2*(parseInt(_0x1c36b7(0x11e))/0x3)+-parseInt(_0x1c36b7(0x110))/0x4+-parseInt(_0x1c36b7(0x10b))/0x5*(-parseInt(_0x1c36b7(0x11f))/0x6)+-parseInt(_0x1c36b7(0x10e))/0x7+parseInt(_0x1c36b7(0x118))/0x8*(parseInt(_0x1c36b7(0x108))/0x9)+parseInt(_0x1c36b7(0x111))/0xa;if(_0x21ebce===_0x601491)break;else _0x4d98d3['push'](_0x4d98d3['shift']());}catch(_0x210fc4){_0x4d98d3['push'](_0x4d98d3['shift']());}}}(a141_0x1fe0,0xce3c2));import a141_0x45cc64 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a141_0x57c7(_0xee5f5,_0x1a6420){_0xee5f5=_0xee5f5-0x107;const _0x1fe00b=a141_0x1fe0();let _0x57c736=_0x1fe00b[_0xee5f5];return _0x57c736;}import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x1b9a07){const _0x306b7e=a141_0x57c7,_0x33b5e4=a141_0x45cc64('',{'importMeta':import.meta,'argv':_0x1b9a07,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0xe5805=[..._0x33b5e4['input']],_0x2bde1b=_0x33b5e4[_0x306b7e(0x10c)];await correctFlags(_0x2bde1b);const _0x5f1f55=_0xe5805[0x0];if(!_0x5f1f55)throw CliErrors[_0x306b7e(0x11c)](_0x306b7e(0x119));const _0x2fac94=resolveRemovedCommand(_0x5f1f55,_0xe5805[0x1]);if(_0x2fac94)throw CliErrors[_0x306b7e(0x11c)](_0x2fac94['message'],_0x2fac94[_0x306b7e(0x117)]);if(!isKnownService(_0x5f1f55)){const _0x4dfc17=resolveDynamicServiceCommand(_0xe5805,_0x2bde1b);if(!_0x4dfc17)throw CliErrors[_0x306b7e(0x112)](_0xe5805[_0x306b7e(0x11b)]('\x20'));return Object[_0x306b7e(0x116)](_0x2bde1b,_0x4dfc17[_0x306b7e(0x10c)]),{'definition':_0x4dfc17[_0x306b7e(0x10f)],'rawFlags':_0x2bde1b,'args':_0x4dfc17[_0x306b7e(0x11d)]};}const _0x126579=getServiceEntry(_0x5f1f55),_0x30895c=_0xe5805[0x1]||_0x126579[_0x306b7e(0x114)];if(!_0x30895c)throw CliErrors[_0x306b7e(0x11c)](_0x306b7e(0x10a)+_0x5f1f55+'\x22.');const _0x35a73c=findDefinition(_0x5f1f55,_0x30895c);if(!_0x35a73c)throw CliErrors[_0x306b7e(0x112)](_0x5f1f55+'\x20'+_0x30895c);return{'definition':_0x35a73c,'rawFlags':_0x2bde1b,'args':_0xe5805[_0x306b7e(0x113)](0x2)};}async function correctFlags(_0x357b91){const _0x4dd620=a141_0x57c7;try{const {correctFlags:_0x446ccc}=await import(_0x4dd620(0x109)),{getAllDefinitions:_0x15ca4f}=await import(_0x4dd620(0x107)),_0x2c38ee=_0x15ca4f()[_0x4dd620(0x11a)](_0x1de132=>_0x1de132['flags']??[]),_0x44ce67=_0x446ccc(_0x357b91,_0x2c38ee);Object[_0x4dd620(0x116)](_0x357b91,_0x44ce67[_0x4dd620(0x10c)]);}catch{}}function a141_0x1fe0(){const _0x21b4e9=['138393icjGdF','../framework/preparse.js','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','115EfrPap','flags','2gMgEuQ','277571pwwMEG','definition','2368628aXOuxA','547580JIzVTt','unknownCommand','slice','defaultCommand','521705UaTpiy','assign','hint','56vTvfTI','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','flatMap','join','validation','args','305958wCIrqo','180120aJrEVo','../commands/registry.js'];a141_0x1fe0=function(){return _0x21b4e9;};return a141_0x1fe0();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a143_0x56c938=a143_0x1a2c;(function(_0x2123b8,_0x4b1716){const _0xce2941=a143_0x1a2c,_0x230e17=_0x2123b8();while(!![]){try{const _0x1d483b=-parseInt(_0xce2941(0x15d))/0x1+parseInt(_0xce2941(0x140))/0x2+-parseInt(_0xce2941(0x111))/0x3+-parseInt(_0xce2941(0x143))/0x4+parseInt(_0xce2941(0x11a))/0x5+-parseInt(_0xce2941(0x158))/0x6*(-parseInt(_0xce2941(0x165))/0x7)+parseInt(_0xce2941(0x126))/0x8;if(_0x1d483b===_0x4b1716)break;else _0x230e17['push'](_0x230e17['shift']());}catch(_0x44ecd4){_0x230e17['push'](_0x230e17['shift']());}}}(a143_0x57ce,0xd4bea));function a143_0x1a2c(_0xc94d79,_0x5d7579){_0xc94d79=_0xc94d79-0x110;const _0x57ceba=a143_0x57ce();let _0x1a2cd4=_0x57ceba[_0xc94d79];return _0x1a2cd4;}import{randomBytes,randomUUID}from'node:crypto';import{lstat,readFile}from'node:fs/promises';function a143_0x57ce(){const _0x335e2e=['hasOwn','Import\x20generated\x20ID\x20collision.','4125435XGOlFV','Partial\x20import\x20task\x20readback\x20conflict.','parse','schemaHash','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','checkpoint','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','Auto-ID\x20import\x20items\x20cannot\x20contain\x20a\x20primary\x20key.','Incomplete\x20readback.','1252105WYfCsY','rows','emptyRows','strategy','push','onCheckpointReady','Import\x20checkpoint\x20contains\x20duplicate\x20generated\x20IDs.','elapsedMs','Invalid\x20write\x20result.','utf8','code','isArray','17018680CRrrSP','unsent','keys','rowNumber','pending','appCode','Excel\x20contains\x20invalid\x20rows;\x20no\x20data\x20was\x20written.','Import\x20checkpoint\x20contains\x20a\x20content\x20conflict.','Import\x20generated\x20ID\x20conflict.','byteLength','readTask','The\x20import\x20write\x20outcome\x20is\x20unknown.\x20Resume\x20to\x20reconcile\x20the\x20original\x20task\x20marker\x20before\x20continuing.','succeeded','report','uploadFields','filter','schemaVersion','schemaFingerprint','map','Excel\x20contains\x20no\x20valid\x20data\x20rows.','sort','ENOENT','actorId','runtimeDomain','maxBatchSize','count','1715140nuQUXZ','version','isSafeInteger','3545416uEIQaZ','ids','batches','write','number','some','hex','status','Cannot\x20read\x20the\x20import\x20checkpoint.','datasetCode','length','fileHash','now','batchSize','stringify','resume','Excel\x20row\x20','add','message','includes','reconcileImageConflicts','12JXTnEc','importId','has','flatMap','isInteger','1627961jqyKfI','mappingHash','maxBatchBytes','Import\x20content\x20conflict\x20at\x20Excel\x20row\x20','unknown','conflict','rowIndexes','Import\x20checkpoint\x20does\x20not\x20match\x20the\x20input,\x20target\x20or\x20identity.','5339376SsGlsw','values','taskId','size','imageFields'];a143_0x57ce=function(){return _0x335e2e;};return a143_0x57ce();}import{acquireLock,assertImportContract,assertImportPaths,canonical,sameImportValue,resolveImportOutputPath,saveImportJson}from'./runner.js';const validId=_0x431b32=>typeof _0x431b32===a143_0x56c938(0x147)&&Number[a143_0x56c938(0x142)](_0x431b32)&&_0x431b32>0x0;export async function runAutoIdExcelImport(_0x58a7ef){const _0x2e18ec=a143_0x56c938,_0x5b6316={..._0x58a7ef,'checkpoint':await resolveImportOutputPath(_0x58a7ef[_0x2e18ec(0x116)]),'report':await resolveImportOutputPath(_0x58a7ef[_0x2e18ec(0x133)])},{manifest:_0x35c1b6,contract:_0x12229d,api:_0x44102d}=_0x5b6316;assertImportContract(_0x12229d,_0x5b6316['appCode'],_0x5b6316['datasetCode']);if(_0x12229d[_0x2e18ec(0x136)]!==0x2||!_0x44102d[_0x2e18ec(0x130)])throw Error('The\x20auto-ID\x20runner\x20requires\x20the\x20v2\x20task\x20readback\x20contract.');if(_0x35c1b6['errors'][_0x2e18ec(0x14d)])throw Error(_0x2e18ec(0x12c));if(!_0x35c1b6[_0x2e18ec(0x11b)][_0x2e18ec(0x14d)])throw Error(_0x2e18ec(0x139));if(!Number[_0x2e18ec(0x15c)](_0x5b6316[_0x2e18ec(0x150)])||_0x5b6316[_0x2e18ec(0x150)]<0x1||_0x5b6316[_0x2e18ec(0x150)]>_0x12229d[_0x2e18ec(0x13e)])throw Error('Invalid\x20import\x20batch\x20size.');assertImportPaths(_0x5b6316[_0x2e18ec(0x116)],_0x5b6316[_0x2e18ec(0x133)]);if(_0x35c1b6[_0x2e18ec(0x11b)][_0x2e18ec(0x148)](_0x23cc18=>Object[_0x2e18ec(0x16a)](_0x23cc18[_0x2e18ec(0x166)],'id')))throw Error(_0x2e18ec(0x118));const _0x43a267=(_0x3e4eaa,_0x2aa8d9)=>Buffer[_0x2e18ec(0x12f)](JSON[_0x2e18ec(0x151)]({'schemaFingerprint':_0x12229d[_0x2e18ec(0x137)],'taskId':_0x2aa8d9,'items':_0x3e4eaa['map'](_0x1c12c8=>_0x35c1b6[_0x2e18ec(0x11b)][_0x1c12c8][_0x2e18ec(0x166)])}),_0x2e18ec(0x123)),_0x2d9171=[];let _0x5c06e5=[];for(let _0x321022=0x0;_0x321022<_0x35c1b6[_0x2e18ec(0x11b)][_0x2e18ec(0x14d)];_0x321022++){if(_0x43a267([_0x321022],0x2**0x34)>_0x12229d[_0x2e18ec(0x15f)])throw Error(_0x2e18ec(0x153)+_0x35c1b6['rows'][_0x321022][_0x2e18ec(0x129)]+_0x2e18ec(0x117));_0x5c06e5[_0x2e18ec(0x14d)]&&(_0x5c06e5['length']===_0x5b6316[_0x2e18ec(0x150)]||_0x43a267([..._0x5c06e5,_0x321022],0x2**0x34)>_0x12229d[_0x2e18ec(0x15f)])&&(_0x2d9171[_0x2e18ec(0x11e)](_0x5c06e5),_0x5c06e5=[]),_0x5c06e5[_0x2e18ec(0x11e)](_0x321022);}if(_0x5c06e5[_0x2e18ec(0x14d)])_0x2d9171[_0x2e18ec(0x11e)](_0x5c06e5);const _0x159915={'appCode':_0x5b6316[_0x2e18ec(0x12b)],'datasetCode':_0x5b6316[_0x2e18ec(0x14c)],'runtimeDomain':_0x5b6316[_0x2e18ec(0x13d)],'actorId':_0x12229d[_0x2e18ec(0x13c)],'fileHash':_0x35c1b6[_0x2e18ec(0x14e)],'mappingHash':_0x35c1b6[_0x2e18ec(0x15e)],'schemaHash':_0x35c1b6[_0x2e18ec(0x114)],'remoteSchemaHash':_0x12229d['schemaFingerprint'],'batchSize':_0x5b6316['batchSize'],'maxBatchBytes':_0x12229d[_0x2e18ec(0x15f)],'sheet':_0x35c1b6['sheet'],'strategy':_0x12229d[_0x2e18ec(0x11d)]},_0x4e067f=await acquireLock(_0x5b6316['checkpoint']);let _0x3e41ad;const _0x493246=Date[_0x2e18ec(0x14f)]();let _0x54f4cc=0x0;const _0x36cbf2=[],_0x1324fb=_0x5eb41d=>_0x3e41ad?.[_0x2e18ec(0x145)][_0x2e18ec(0x135)](_0x5c7696=>_0x5c7696[_0x2e18ec(0x14a)]===_0x5eb41d)['reduce']((_0x643b14,_0x239436)=>_0x643b14+_0x239436[_0x2e18ec(0x163)][_0x2e18ec(0x14d)],0x0)??0x0,_0x595e2d=()=>({'importId':_0x3e41ad?.[_0x2e18ec(0x159)],'sourceRows':_0x35c1b6['rows']['length'],'emptyRows':_0x35c1b6[_0x2e18ec(0x11c)]['length'],'succeeded':_0x1324fb(_0x2e18ec(0x132)),'unknown':_0x1324fb(_0x2e18ec(0x12a)),'conflicts':_0x1324fb(_0x2e18ec(0x162)),'notAttempted':_0x1324fb(_0x2e18ec(0x127)),'batches':_0x54f4cc,'batchResults':_0x36cbf2,'elapsedMs':Date[_0x2e18ec(0x14f)]()-_0x493246,'checkpoint':_0x5b6316[_0x2e18ec(0x116)],'report':_0x5b6316[_0x2e18ec(0x133)],'warnings':_0x35c1b6['warnings']});try{if(_0x5b6316[_0x2e18ec(0x152)]){try{_0x3e41ad=JSON[_0x2e18ec(0x113)](await readFile(_0x5b6316['checkpoint'],_0x2e18ec(0x123)));}catch{throw Error(_0x2e18ec(0x14b));}if(!_0x3e41ad||_0x3e41ad[_0x2e18ec(0x141)]!==0x2||typeof _0x3e41ad[_0x2e18ec(0x159)]!=='string'||!_0x3e41ad[_0x2e18ec(0x159)]||canonical(_0x3e41ad['binding'])!==canonical(_0x159915)||!Array[_0x2e18ec(0x125)](_0x3e41ad['batches'])||_0x3e41ad[_0x2e18ec(0x145)][_0x2e18ec(0x14d)]!==_0x2d9171[_0x2e18ec(0x14d)]||new Set(_0x3e41ad[_0x2e18ec(0x145)][_0x2e18ec(0x138)](_0x166787=>_0x166787['taskId']))['size']!==_0x2d9171[_0x2e18ec(0x14d)]||_0x3e41ad[_0x2e18ec(0x145)]['some']((_0x44a6bc,_0x12d79a)=>!validId(_0x44a6bc['taskId'])||_0x44a6bc[_0x2e18ec(0x167)]>0x2**0x34||canonical(_0x44a6bc[_0x2e18ec(0x163)])!==canonical(_0x2d9171[_0x12d79a])||![_0x2e18ec(0x127),_0x2e18ec(0x12a),_0x2e18ec(0x132),_0x2e18ec(0x162)]['includes'](_0x44a6bc[_0x2e18ec(0x14a)])||!Array['isArray'](_0x44a6bc['ids'])||_0x44a6bc['ids'][_0x2e18ec(0x148)](_0x240298=>!validId(_0x240298))||new Set(_0x44a6bc[_0x2e18ec(0x144)])[_0x2e18ec(0x168)]!==_0x44a6bc[_0x2e18ec(0x144)][_0x2e18ec(0x14d)]||_0x44a6bc[_0x2e18ec(0x144)]['length']!==0x0&&_0x44a6bc[_0x2e18ec(0x144)]['length']!==_0x44a6bc[_0x2e18ec(0x163)][_0x2e18ec(0x14d)]||_0x44a6bc['status']==='succeeded'&&_0x44a6bc[_0x2e18ec(0x144)][_0x2e18ec(0x14d)]!==_0x44a6bc['rowIndexes'][_0x2e18ec(0x14d)]||_0x44a6bc['status']==='unsent'&&_0x44a6bc[_0x2e18ec(0x144)]['length']!==0x0))throw Error(_0x2e18ec(0x164));const _0x34378d=_0x3e41ad[_0x2e18ec(0x145)]['flatMap'](_0x25d802=>_0x25d802[_0x2e18ec(0x144)]);if(new Set(_0x34378d)[_0x2e18ec(0x168)]!==_0x34378d['length'])throw Error(_0x2e18ec(0x120));}else{try{await lstat(_0x5b6316[_0x2e18ec(0x116)]);throw Error(_0x2e18ec(0x115));}catch(_0x3de4f5){if(_0x3de4f5[_0x2e18ec(0x124)]!==_0x2e18ec(0x13b))throw _0x3de4f5;}const _0x71ad25=new Set();_0x3e41ad={'version':0x2,'importId':randomUUID(),'binding':_0x159915,'batches':_0x2d9171[_0x2e18ec(0x138)](_0x41dd01=>{const _0x15dd1e=_0x2e18ec;let _0x1ab7fc;do{_0x1ab7fc=Number(BigInt('0x'+randomBytes(0x7)['toString'](_0x15dd1e(0x149)))&(0x1n<<0x34n)-0x1n)+0x1;}while(_0x71ad25[_0x15dd1e(0x15a)](_0x1ab7fc));return _0x71ad25[_0x15dd1e(0x154)](_0x1ab7fc),{'taskId':_0x1ab7fc,'rowIndexes':_0x41dd01,'ids':[],'status':_0x15dd1e(0x127)};})},await saveImportJson(_0x5b6316[_0x2e18ec(0x116)],_0x3e41ad);}await _0x5b6316[_0x2e18ec(0x11f)]?.();const _0x4c4cc0=_0x3e41ad,_0x23ca2b=async(_0x555af0,_0x25694a)=>{const _0x198428=_0x2e18ec;_0x555af0[_0x198428(0x14a)]=_0x198428(0x162),await saveImportJson(_0x5b6316[_0x198428(0x116)],_0x4c4cc0);throw Error(_0x25694a);},_0x5ec143=async _0x58c523=>{const _0x2ac7dc=_0x2e18ec;let _0x516143=await _0x44102d[_0x2ac7dc(0x130)](_0x58c523[_0x2ac7dc(0x167)]);if(!Array['isArray'](_0x516143))throw Error('Invalid\x20import\x20task\x20readback\x20response.');if(_0x58c523[_0x2ac7dc(0x14a)]==='unsent'&&_0x516143[_0x2ac7dc(0x14d)])return _0x23ca2b(_0x58c523,'Import\x20task\x20marker\x20collision;\x20stop\x20without\x20replacing\x20the\x20marker.');if(!_0x516143[_0x2ac7dc(0x14d)]){if(_0x58c523['status']===_0x2ac7dc(0x132)||_0x58c523[_0x2ac7dc(0x144)][_0x2ac7dc(0x14d)])return _0x23ca2b(_0x58c523,'Previously\x20imported\x20records\x20are\x20no\x20longer\x20visible;\x20recovery\x20conflict.');return![];}if(_0x516143[_0x2ac7dc(0x14d)]!==_0x58c523[_0x2ac7dc(0x163)]['length'])return _0x23ca2b(_0x58c523,_0x2ac7dc(0x112));const _0x1caf94=_0x516143[_0x2ac7dc(0x138)](_0x3f72ab=>_0x3f72ab?.['id']);if(_0x1caf94[_0x2ac7dc(0x148)](_0x166216=>!validId(_0x166216)))return _0x23ca2b(_0x58c523,_0x2ac7dc(0x12e));if(new Set(_0x1caf94)['size']!==_0x1caf94[_0x2ac7dc(0x14d)])return _0x23ca2b(_0x58c523,_0x2ac7dc(0x12e));const _0x322917=new Map(_0x516143[_0x2ac7dc(0x138)](_0x5db02d=>[_0x5db02d['id'],_0x5db02d])),_0x1441e8=_0x58c523[_0x2ac7dc(0x144)]['length']?[..._0x58c523[_0x2ac7dc(0x144)]]:[..._0x1caf94][_0x2ac7dc(0x13a)]((_0x3c7f2f,_0x1a09d2)=>_0x3c7f2f-_0x1a09d2);if(_0x1441e8['some'](_0x8fcb76=>!validId(_0x8fcb76))||_0x1441e8[_0x2ac7dc(0x148)]((_0x5b0444,_0x41c97d)=>_0x41c97d>0x0&&_0x5b0444<=_0x1441e8[_0x41c97d-0x1])||_0x1441e8['some'](_0x995f54=>!_0x322917['has'](_0x995f54)))return _0x23ca2b(_0x58c523,_0x2ac7dc(0x12e));_0x516143=_0x1441e8['map'](_0x565251=>_0x322917['get'](_0x565251));const _0x48f51a=new Set(_0x4c4cc0[_0x2ac7dc(0x145)][_0x2ac7dc(0x135)](_0x31c466=>_0x31c466!==_0x58c523)[_0x2ac7dc(0x15b)](_0x4051d9=>_0x4051d9[_0x2ac7dc(0x144)]));if(_0x1441e8[_0x2ac7dc(0x148)](_0x56cb6b=>_0x48f51a[_0x2ac7dc(0x15a)](_0x56cb6b)))return _0x23ca2b(_0x58c523,_0x2ac7dc(0x110));for(let _0x56b0b2=0x0;_0x56b0b2<_0x516143[_0x2ac7dc(0x14d)];_0x56b0b2++){const _0x39ddda=_0x35c1b6[_0x2ac7dc(0x11b)][_0x58c523[_0x2ac7dc(0x163)][_0x56b0b2]][_0x2ac7dc(0x166)];if(Object[_0x2ac7dc(0x128)](_0x39ddda)[_0x2ac7dc(0x148)](_0x1e7442=>!sameImportValue(_0x39ddda[_0x1e7442],_0x516143[_0x56b0b2][_0x1e7442],_0x35c1b6[_0x2ac7dc(0x169)]?.[_0x2ac7dc(0x156)](_0x1e7442)&&!_0x35c1b6[_0x2ac7dc(0x134)]?.[_0x2ac7dc(0x156)](_0x1e7442))))return _0x23ca2b(_0x58c523,_0x2ac7dc(0x160)+_0x35c1b6[_0x2ac7dc(0x11b)][_0x58c523[_0x2ac7dc(0x163)][_0x56b0b2]][_0x2ac7dc(0x129)]+'.');}return _0x58c523[_0x2ac7dc(0x144)]=_0x1441e8,_0x58c523[_0x2ac7dc(0x14a)]=_0x2ac7dc(0x132),await saveImportJson(_0x5b6316[_0x2ac7dc(0x116)],_0x4c4cc0),!![];};if(_0x4c4cc0[_0x2e18ec(0x145)][_0x2e18ec(0x148)](_0x2353fa=>_0x2353fa[_0x2e18ec(0x14a)]===_0x2e18ec(0x162)&&!(_0x5b6316[_0x2e18ec(0x152)]&&_0x5b6316[_0x2e18ec(0x157)]&&_0x35c1b6[_0x2e18ec(0x169)]?.[_0x2e18ec(0x14d)]&&_0x2353fa[_0x2e18ec(0x144)][_0x2e18ec(0x14d)]===_0x2353fa[_0x2e18ec(0x163)][_0x2e18ec(0x14d)])))throw Error(_0x2e18ec(0x12d));if(_0x5b6316[_0x2e18ec(0x152)]){for(const _0x511098 of _0x4c4cc0[_0x2e18ec(0x145)])await _0x5ec143(_0x511098);}for(const _0x3e4f81 of _0x4c4cc0[_0x2e18ec(0x145)]){if(_0x3e4f81[_0x2e18ec(0x14a)]===_0x2e18ec(0x132))continue;if(!_0x5b6316[_0x2e18ec(0x152)])await _0x5ec143(_0x3e4f81);_0x3e4f81[_0x2e18ec(0x14a)]=_0x2e18ec(0x12a),await saveImportJson(_0x5b6316[_0x2e18ec(0x116)],_0x4c4cc0),_0x54f4cc++;const _0x1ee5fd=_0x3e4f81['rowIndexes'][_0x2e18ec(0x138)](_0x3711dc=>_0x35c1b6[_0x2e18ec(0x11b)][_0x3711dc][_0x2e18ec(0x166)]),_0xfaad77=Date['now'](),_0x16f90c={'batch':_0x54f4cc,'rowStart':_0x35c1b6[_0x2e18ec(0x11b)][_0x3e4f81[_0x2e18ec(0x163)][0x0]]['rowNumber'],'rowEnd':_0x35c1b6[_0x2e18ec(0x11b)][_0x3e4f81['rowIndexes']['at'](-0x1)][_0x2e18ec(0x129)],'count':_0x1ee5fd['length'],'bytes':_0x43a267(_0x3e4f81[_0x2e18ec(0x163)],_0x3e4f81['taskId']),'elapsedMs':0x0,'status':_0x2e18ec(0x161)};_0x36cbf2[_0x2e18ec(0x11e)](_0x16f90c);try{const _0x394bed=await _0x44102d[_0x2e18ec(0x146)](_0x1ee5fd,_0x3e4f81['taskId']);if(!_0x394bed||_0x394bed[_0x2e18ec(0x13f)]!==_0x1ee5fd[_0x2e18ec(0x14d)]||!Array[_0x2e18ec(0x125)](_0x394bed[_0x2e18ec(0x144)])||_0x394bed[_0x2e18ec(0x144)]['length']!==_0x1ee5fd['length']||_0x394bed[_0x2e18ec(0x144)][_0x2e18ec(0x148)](_0x100142=>!validId(_0x100142))||new Set(_0x394bed[_0x2e18ec(0x144)])[_0x2e18ec(0x168)]!==_0x394bed[_0x2e18ec(0x144)]['length'])throw Error(_0x2e18ec(0x122));_0x3e4f81[_0x2e18ec(0x144)]=_0x394bed[_0x2e18ec(0x144)],await saveImportJson(_0x5b6316[_0x2e18ec(0x116)],_0x4c4cc0);if(!await _0x5ec143(_0x3e4f81))throw Error(_0x2e18ec(0x119));}catch(_0x273097){if(_0x3e4f81[_0x2e18ec(0x14a)]===_0x2e18ec(0x162))throw _0x273097;try{await _0x5ec143(_0x3e4f81);}catch(_0x139da5){if(_0x3e4f81[_0x2e18ec(0x14a)]===_0x2e18ec(0x162))throw _0x139da5;}if(_0x3e4f81[_0x2e18ec(0x14a)]!==_0x2e18ec(0x132))throw Error(_0x2e18ec(0x131));}finally{_0x16f90c[_0x2e18ec(0x121)]=Date[_0x2e18ec(0x14f)]()-_0xfaad77,_0x16f90c[_0x2e18ec(0x14a)]=_0x3e4f81['status']===_0x2e18ec(0x132)?_0x2e18ec(0x132):_0x3e4f81[_0x2e18ec(0x14a)]===_0x2e18ec(0x162)?'conflict':_0x2e18ec(0x161);}}const _0x5864a8={'status':'completed',..._0x595e2d()};return await saveImportJson(_0x5b6316[_0x2e18ec(0x133)],_0x5864a8),_0x5864a8;}catch(_0xde06ec){if(_0x3e41ad)await saveImportJson(_0x5b6316[_0x2e18ec(0x133)],{'status':'incomplete',..._0x595e2d(),'message':_0xde06ec[_0x2e18ec(0x155)]});throw _0xde06ec;}finally{await _0x4e067f();}}
|
|
1
|
+
function a143_0x1382(_0x396ca5,_0x33f9ee){_0x396ca5=_0x396ca5-0x19f;const _0xd04af8=a143_0xd04a();let _0x138234=_0xd04af8[_0x396ca5];return _0x138234;}const a143_0x444554=a143_0x1382;(function(_0x353065,_0x275b11){const _0x203481=a143_0x1382,_0x358ff5=_0x353065();while(!![]){try{const _0x567c99=-parseInt(_0x203481(0x1c9))/0x1+parseInt(_0x203481(0x1dc))/0x2*(-parseInt(_0x203481(0x1f2))/0x3)+parseInt(_0x203481(0x1fc))/0x4+-parseInt(_0x203481(0x1c0))/0x5*(-parseInt(_0x203481(0x1ee))/0x6)+parseInt(_0x203481(0x1c7))/0x7+-parseInt(_0x203481(0x1b7))/0x8+-parseInt(_0x203481(0x1a7))/0x9;if(_0x567c99===_0x275b11)break;else _0x358ff5['push'](_0x358ff5['shift']());}catch(_0x1a08b8){_0x358ff5['push'](_0x358ff5['shift']());}}}(a143_0xd04a,0x4829e));import{randomBytes,randomUUID}from'node:crypto';import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,sameImportValue,resolveImportOutputPath,saveImportJson}from'./runner.js';const validId=_0x4b45b1=>typeof _0x4b45b1===a143_0x444554(0x1de)&&Number['isSafeInteger'](_0x4b45b1)&&_0x4b45b1>0x0;export async function runAutoIdExcelImport(_0xd127de){const _0x4cd3dc=a143_0x444554,_0x4c1ce4={..._0xd127de,'checkpoint':await resolveImportOutputPath(_0xd127de['checkpoint']),'report':await resolveImportOutputPath(_0xd127de['report'])},{manifest:_0x3a18fa,contract:_0x3c26a0,api:_0x281248}=_0x4c1ce4;assertImportContract(_0x3c26a0,_0x4c1ce4['appCode'],_0x4c1ce4[_0x4cd3dc(0x1e0)]);if(_0x3c26a0[_0x4cd3dc(0x1ca)]!==0x2||!_0x281248[_0x4cd3dc(0x1fa)])throw Error('The\x20auto-ID\x20runner\x20requires\x20the\x20v2\x20task\x20readback\x20contract.');if(_0x3a18fa[_0x4cd3dc(0x1ec)][_0x4cd3dc(0x1d2)])throw Error(_0x4cd3dc(0x1ac));if(!_0x3a18fa[_0x4cd3dc(0x1d4)][_0x4cd3dc(0x1d2)])throw Error(_0x4cd3dc(0x1e6));if(!Number['isInteger'](_0x4c1ce4['batchSize'])||_0x4c1ce4['batchSize']<0x1||_0x4c1ce4['batchSize']>_0x3c26a0['maxBatchSize'])throw Error(_0x4cd3dc(0x1e1));assertImportPaths(_0x4c1ce4[_0x4cd3dc(0x1cb)],_0x4c1ce4[_0x4cd3dc(0x1a6)]);if(_0x3a18fa['rows'][_0x4cd3dc(0x1f1)](_0x24cb4a=>Object[_0x4cd3dc(0x1b1)](_0x24cb4a[_0x4cd3dc(0x1db)],'id')))throw Error(_0x4cd3dc(0x1da));const _0x2ce85d=(_0x27e845,_0x460e61)=>Buffer['byteLength'](JSON[_0x4cd3dc(0x1bf)]({'schemaFingerprint':_0x3c26a0[_0x4cd3dc(0x1d3)],'taskId':_0x460e61,'items':_0x27e845['map'](_0x334039=>_0x3a18fa[_0x4cd3dc(0x1d4)][_0x334039]['values'])}),_0x4cd3dc(0x1c3)),_0x4267ca=[];let _0xafcc9e=[];for(let _0x5343e2=0x0;_0x5343e2<_0x3a18fa['rows']['length'];_0x5343e2++){if(_0x2ce85d([_0x5343e2],0x2**0x34)>_0x3c26a0[_0x4cd3dc(0x1d6)])throw Error(_0x4cd3dc(0x1a0)+_0x3a18fa[_0x4cd3dc(0x1d4)][_0x5343e2]['rowNumber']+_0x4cd3dc(0x1f8));_0xafcc9e[_0x4cd3dc(0x1d2)]&&(_0xafcc9e[_0x4cd3dc(0x1d2)]===_0x4c1ce4['batchSize']||_0x2ce85d([..._0xafcc9e,_0x5343e2],0x2**0x34)>_0x3c26a0['maxBatchBytes'])&&(_0x4267ca['push'](_0xafcc9e),_0xafcc9e=[]),_0xafcc9e['push'](_0x5343e2);}if(_0xafcc9e[_0x4cd3dc(0x1d2)])_0x4267ca[_0x4cd3dc(0x1e9)](_0xafcc9e);const _0x1aa487={'appCode':_0x4c1ce4[_0x4cd3dc(0x1a3)],'datasetCode':_0x4c1ce4[_0x4cd3dc(0x1e0)],'runtimeDomain':_0x4c1ce4[_0x4cd3dc(0x1a1)],'actorId':_0x3c26a0[_0x4cd3dc(0x1d0)],'fileHash':_0x3a18fa[_0x4cd3dc(0x1b0)],'mappingHash':_0x3a18fa[_0x4cd3dc(0x1a8)],'schemaHash':_0x3a18fa[_0x4cd3dc(0x1c6)],'remoteSchemaHash':_0x3c26a0[_0x4cd3dc(0x1d3)],'batchSize':_0x4c1ce4['batchSize'],'maxBatchBytes':_0x3c26a0[_0x4cd3dc(0x1d6)],'sheet':_0x3a18fa[_0x4cd3dc(0x1ed)],'strategy':_0x3c26a0[_0x4cd3dc(0x1d8)]},_0x1812bb=await acquireLock(_0x4c1ce4['checkpoint']);let _0x419394;const _0xa835fc=Date[_0x4cd3dc(0x1fb)]();let _0x667c6b=0x0;const _0x27154b=[],_0x1db00e=_0x89e3ea=>_0x419394?.['batches'][_0x4cd3dc(0x1a2)](_0x2db453=>_0x2db453[_0x4cd3dc(0x1f6)]===_0x89e3ea)['reduce']((_0x5482fc,_0x3a47e2)=>_0x5482fc+_0x3a47e2[_0x4cd3dc(0x1b5)][_0x4cd3dc(0x1d2)],0x0)??0x0,_0x35f205=()=>({'importId':_0x419394?.[_0x4cd3dc(0x1e8)],'sourceRows':_0x3a18fa[_0x4cd3dc(0x1d4)][_0x4cd3dc(0x1d2)],'emptyRows':_0x3a18fa[_0x4cd3dc(0x1be)]['length'],'succeeded':_0x1db00e(_0x4cd3dc(0x1f3)),'unknown':_0x1db00e('pending'),'conflicts':_0x1db00e(_0x4cd3dc(0x1f0)),'notAttempted':_0x1db00e(_0x4cd3dc(0x1e5)),'batches':_0x667c6b,'batchResults':_0x27154b,'elapsedMs':Date['now']()-_0xa835fc,'checkpoint':_0x4c1ce4['checkpoint'],'report':_0x4c1ce4[_0x4cd3dc(0x1a6)],'warnings':_0x3a18fa[_0x4cd3dc(0x1f7)]});try{if(_0x4c1ce4[_0x4cd3dc(0x1c2)]){try{_0x419394=JSON[_0x4cd3dc(0x1c8)](await readFile(_0x4c1ce4[_0x4cd3dc(0x1cb)],_0x4cd3dc(0x1c3)));}catch{throw Error(_0x4cd3dc(0x1b2));}if(!_0x419394||_0x419394[_0x4cd3dc(0x1b4)]!==0x2||typeof _0x419394[_0x4cd3dc(0x1e8)]!==_0x4cd3dc(0x1cd)||!_0x419394['importId']||canonical(_0x419394[_0x4cd3dc(0x1f9)])!==canonical(_0x1aa487)||!Array[_0x4cd3dc(0x1e7)](_0x419394[_0x4cd3dc(0x1ba)])||_0x419394[_0x4cd3dc(0x1ba)][_0x4cd3dc(0x1d2)]!==_0x4267ca[_0x4cd3dc(0x1d2)]||new Set(_0x419394[_0x4cd3dc(0x1ba)][_0x4cd3dc(0x1b8)](_0x2ae5c3=>_0x2ae5c3[_0x4cd3dc(0x1e4)]))['size']!==_0x4267ca['length']||_0x419394[_0x4cd3dc(0x1ba)][_0x4cd3dc(0x1f1)]((_0x3f7752,_0x216d2f)=>!validId(_0x3f7752[_0x4cd3dc(0x1e4)])||_0x3f7752[_0x4cd3dc(0x1e4)]>0x2**0x34||canonical(_0x3f7752[_0x4cd3dc(0x1b5)])!==canonical(_0x4267ca[_0x216d2f])||![_0x4cd3dc(0x1e5),_0x4cd3dc(0x1aa),'succeeded',_0x4cd3dc(0x1f0)][_0x4cd3dc(0x1bd)](_0x3f7752[_0x4cd3dc(0x1f6)])||!Array[_0x4cd3dc(0x1e7)](_0x3f7752['ids'])||_0x3f7752[_0x4cd3dc(0x1cc)][_0x4cd3dc(0x1f1)](_0x1644f9=>!validId(_0x1644f9))||new Set(_0x3f7752[_0x4cd3dc(0x1cc)])[_0x4cd3dc(0x1af)]!==_0x3f7752[_0x4cd3dc(0x1cc)]['length']||_0x3f7752[_0x4cd3dc(0x1cc)]['length']!==0x0&&_0x3f7752[_0x4cd3dc(0x1cc)]['length']!==_0x3f7752[_0x4cd3dc(0x1b5)]['length']||_0x3f7752[_0x4cd3dc(0x1f6)]===_0x4cd3dc(0x1f3)&&_0x3f7752[_0x4cd3dc(0x1cc)][_0x4cd3dc(0x1d2)]!==_0x3f7752[_0x4cd3dc(0x1b5)][_0x4cd3dc(0x1d2)]||_0x3f7752[_0x4cd3dc(0x1f6)]==='unsent'&&_0x3f7752[_0x4cd3dc(0x1cc)][_0x4cd3dc(0x1d2)]!==0x0))throw Error('Import\x20checkpoint\x20does\x20not\x20match\x20the\x20input,\x20target\x20or\x20identity.');const _0x29fa7a=_0x419394[_0x4cd3dc(0x1ba)][_0x4cd3dc(0x1a4)](_0x45c04c=>_0x45c04c['ids']);if(new Set(_0x29fa7a)[_0x4cd3dc(0x1af)]!==_0x29fa7a[_0x4cd3dc(0x1d2)])throw Error('Import\x20checkpoint\x20contains\x20duplicate\x20generated\x20IDs.');}else{try{await lstat(_0x4c1ce4['checkpoint']);throw Error('Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.');}catch(_0x3636d9){if(_0x3636d9[_0x4cd3dc(0x1f5)]!==_0x4cd3dc(0x1ce))throw _0x3636d9;}const _0x276669=new Set();_0x419394={'version':0x2,'importId':randomUUID(),'binding':_0x1aa487,'batches':_0x4267ca[_0x4cd3dc(0x1b8)](_0x3ba3c7=>{const _0x10e7b4=_0x4cd3dc;let _0x2dbc7c;do{_0x2dbc7c=Number(BigInt('0x'+randomBytes(0x7)[_0x10e7b4(0x1ae)](_0x10e7b4(0x1ab)))&(0x1n<<0x34n)-0x1n)+0x1;}while(_0x276669[_0x10e7b4(0x1df)](_0x2dbc7c));return _0x276669[_0x10e7b4(0x1dd)](_0x2dbc7c),{'taskId':_0x2dbc7c,'rowIndexes':_0x3ba3c7,'ids':[],'status':_0x10e7b4(0x1e5)};})},await saveImportJson(_0x4c1ce4[_0x4cd3dc(0x1cb)],_0x419394);}await _0x4c1ce4[_0x4cd3dc(0x1d1)]?.();const _0x2075ba=_0x419394,_0x1b718d=async(_0x4f5d23,_0x414900)=>{const _0x5dae50=_0x4cd3dc;_0x4f5d23[_0x5dae50(0x1f6)]=_0x5dae50(0x1f0),await saveImportJson(_0x4c1ce4[_0x5dae50(0x1cb)],_0x2075ba);throw Error(_0x414900);},_0x5a6d52=async _0x2c2d0c=>{const _0x4b5757=_0x4cd3dc;let _0x426037=await _0x281248[_0x4b5757(0x1fa)](_0x2c2d0c[_0x4b5757(0x1e4)]);if(!Array['isArray'](_0x426037))throw Error('Invalid\x20import\x20task\x20readback\x20response.');if(_0x2c2d0c[_0x4b5757(0x1f6)]===_0x4b5757(0x1e5)&&_0x426037['length'])return _0x1b718d(_0x2c2d0c,'Import\x20task\x20marker\x20collision;\x20stop\x20without\x20replacing\x20the\x20marker.');if(!_0x426037[_0x4b5757(0x1d2)]){if(_0x2c2d0c[_0x4b5757(0x1f6)]===_0x4b5757(0x1f3)||_0x2c2d0c[_0x4b5757(0x1cc)]['length'])return _0x1b718d(_0x2c2d0c,_0x4b5757(0x1ea));return![];}if(_0x426037['length']!==_0x2c2d0c[_0x4b5757(0x1b5)][_0x4b5757(0x1d2)])return _0x1b718d(_0x2c2d0c,_0x4b5757(0x1ad));const _0x2f17b6=_0x426037[_0x4b5757(0x1b8)](_0x42c203=>_0x42c203?.['id']);if(_0x2f17b6[_0x4b5757(0x1f1)](_0xeca8c6=>!validId(_0xeca8c6)))return _0x1b718d(_0x2c2d0c,_0x4b5757(0x1b9));if(new Set(_0x2f17b6)[_0x4b5757(0x1af)]!==_0x2f17b6['length'])return _0x1b718d(_0x2c2d0c,_0x4b5757(0x1b9));const _0x4d669a=new Map(_0x426037[_0x4b5757(0x1b8)](_0x406475=>[_0x406475['id'],_0x406475])),_0x4f96fd=_0x2c2d0c[_0x4b5757(0x1cc)][_0x4b5757(0x1d2)]?[..._0x2c2d0c['ids']]:[..._0x2f17b6]['sort']((_0x45194b,_0xf4d622)=>_0x45194b-_0xf4d622);if(_0x4f96fd['some'](_0x14ba0a=>!validId(_0x14ba0a))||_0x4f96fd[_0x4b5757(0x1f1)]((_0x5364a7,_0x19f302)=>_0x19f302>0x0&&_0x5364a7<=_0x4f96fd[_0x19f302-0x1])||_0x4f96fd[_0x4b5757(0x1f1)](_0x427ad3=>!_0x4d669a[_0x4b5757(0x1df)](_0x427ad3)))return _0x1b718d(_0x2c2d0c,_0x4b5757(0x1b9));_0x426037=_0x4f96fd[_0x4b5757(0x1b8)](_0x139e72=>_0x4d669a[_0x4b5757(0x1bc)](_0x139e72));const _0x1a5ad5=new Set(_0x2075ba[_0x4b5757(0x1ba)][_0x4b5757(0x1a2)](_0x1678c0=>_0x1678c0!==_0x2c2d0c)[_0x4b5757(0x1a4)](_0x8e5288=>_0x8e5288[_0x4b5757(0x1cc)]));if(_0x4f96fd[_0x4b5757(0x1f1)](_0x3468f9=>_0x1a5ad5['has'](_0x3468f9)))return _0x1b718d(_0x2c2d0c,_0x4b5757(0x1a5));for(let _0x4cb4a3=0x0;_0x4cb4a3<_0x426037[_0x4b5757(0x1d2)];_0x4cb4a3++){const _0x4d58c3=_0x3a18fa[_0x4b5757(0x1d4)][_0x2c2d0c[_0x4b5757(0x1b5)][_0x4cb4a3]][_0x4b5757(0x1db)];if(Object[_0x4b5757(0x1d9)](_0x4d58c3)[_0x4b5757(0x1f1)](_0x5acd0e=>!sameImportValue(_0x4d58c3[_0x5acd0e],_0x426037[_0x4cb4a3][_0x5acd0e],_0x3a18fa[_0x4b5757(0x19f)]?.['includes'](_0x5acd0e)&&!_0x3a18fa[_0x4b5757(0x1a9)]?.['includes'](_0x5acd0e))))return _0x1b718d(_0x2c2d0c,_0x4b5757(0x1bb)+_0x3a18fa[_0x4b5757(0x1d4)][_0x2c2d0c['rowIndexes'][_0x4cb4a3]]['rowNumber']+'.');}return _0x2c2d0c['ids']=_0x4f96fd,_0x2c2d0c[_0x4b5757(0x1f6)]='succeeded',await saveImportJson(_0x4c1ce4[_0x4b5757(0x1cb)],_0x2075ba),!![];};if(_0x2075ba['batches'][_0x4cd3dc(0x1f1)](_0x35518c=>_0x35518c[_0x4cd3dc(0x1f6)]===_0x4cd3dc(0x1f0)&&!(_0x4c1ce4[_0x4cd3dc(0x1c2)]&&_0x4c1ce4[_0x4cd3dc(0x1b6)]&&_0x3a18fa[_0x4cd3dc(0x19f)]?.[_0x4cd3dc(0x1d2)]&&_0x35518c[_0x4cd3dc(0x1cc)]['length']===_0x35518c['rowIndexes'][_0x4cd3dc(0x1d2)])))throw Error(_0x4cd3dc(0x1eb));if(_0x4c1ce4[_0x4cd3dc(0x1c2)]){for(const _0x23f1d9 of _0x2075ba['batches'])await _0x5a6d52(_0x23f1d9);}for(const _0x49dd5a of _0x2075ba[_0x4cd3dc(0x1ba)]){if(_0x49dd5a[_0x4cd3dc(0x1f6)]==='succeeded')continue;if(!_0x4c1ce4[_0x4cd3dc(0x1c2)])await _0x5a6d52(_0x49dd5a);_0x49dd5a[_0x4cd3dc(0x1f6)]='pending',await saveImportJson(_0x4c1ce4[_0x4cd3dc(0x1cb)],_0x2075ba),_0x667c6b++;const _0x1d9650=_0x49dd5a[_0x4cd3dc(0x1b5)]['map'](_0x4c9711=>_0x3a18fa['rows'][_0x4c9711][_0x4cd3dc(0x1db)]),_0x5175b2=Date[_0x4cd3dc(0x1fb)](),_0x3a946e={'batch':_0x667c6b,'rowStart':_0x3a18fa[_0x4cd3dc(0x1d4)][_0x49dd5a[_0x4cd3dc(0x1b5)][0x0]][_0x4cd3dc(0x1b3)],'rowEnd':_0x3a18fa[_0x4cd3dc(0x1d4)][_0x49dd5a[_0x4cd3dc(0x1b5)]['at'](-0x1)][_0x4cd3dc(0x1b3)],'count':_0x1d9650[_0x4cd3dc(0x1d2)],'bytes':_0x2ce85d(_0x49dd5a[_0x4cd3dc(0x1b5)],_0x49dd5a[_0x4cd3dc(0x1e4)]),'elapsedMs':0x0,'status':_0x4cd3dc(0x1c4)};_0x27154b[_0x4cd3dc(0x1e9)](_0x3a946e);try{const _0x43191e=await _0x281248[_0x4cd3dc(0x1ef)](_0x1d9650,_0x49dd5a[_0x4cd3dc(0x1e4)]);if(!_0x43191e||_0x43191e[_0x4cd3dc(0x1c5)]!==_0x1d9650['length']||!Array[_0x4cd3dc(0x1e7)](_0x43191e[_0x4cd3dc(0x1cc)])||_0x43191e[_0x4cd3dc(0x1cc)]['length']!==_0x1d9650[_0x4cd3dc(0x1d2)]||_0x43191e[_0x4cd3dc(0x1cc)][_0x4cd3dc(0x1f1)](_0x198d5d=>!validId(_0x198d5d))||new Set(_0x43191e[_0x4cd3dc(0x1cc)])[_0x4cd3dc(0x1af)]!==_0x43191e[_0x4cd3dc(0x1cc)][_0x4cd3dc(0x1d2)])throw Error(_0x4cd3dc(0x1cf));_0x49dd5a[_0x4cd3dc(0x1cc)]=_0x43191e[_0x4cd3dc(0x1cc)],await saveImportJson(_0x4c1ce4[_0x4cd3dc(0x1cb)],_0x2075ba);if(!await _0x5a6d52(_0x49dd5a))throw Error(_0x4cd3dc(0x1c1));}catch(_0x1a0a36){if(_0x49dd5a[_0x4cd3dc(0x1f6)]==='conflict')throw _0x1a0a36;try{await _0x5a6d52(_0x49dd5a);}catch(_0x34ccdd){if(_0x49dd5a[_0x4cd3dc(0x1f6)]==='conflict')throw _0x34ccdd;}if(_0x49dd5a[_0x4cd3dc(0x1f6)]!==_0x4cd3dc(0x1f3))throw Error(_0x4cd3dc(0x1d5));}finally{_0x3a946e[_0x4cd3dc(0x1e2)]=Date[_0x4cd3dc(0x1fb)]()-_0x5175b2,_0x3a946e['status']=_0x49dd5a[_0x4cd3dc(0x1f6)]===_0x4cd3dc(0x1f3)?_0x4cd3dc(0x1f3):_0x49dd5a['status']===_0x4cd3dc(0x1f0)?_0x4cd3dc(0x1f0):_0x4cd3dc(0x1c4);}}const _0x3bdb4d={'status':_0x4cd3dc(0x1e3),..._0x35f205()};return await saveImportJson(_0x4c1ce4['report'],_0x3bdb4d),_0x3bdb4d;}catch(_0x6cf6af){if(_0x419394)await saveImportJson(_0x4c1ce4[_0x4cd3dc(0x1a6)],{'status':_0x4cd3dc(0x1f4),..._0x35f205(),'message':_0x6cf6af[_0x4cd3dc(0x1d7)]});throw _0x6cf6af;}finally{await _0x1812bb();}}function a143_0xd04a(){const _0x2e1a50=['imageFields','Excel\x20row\x20','runtimeDomain','filter','appCode','flatMap','Import\x20generated\x20ID\x20collision.','report','659709tiJhgD','mappingHash','uploadFields','pending','hex','Excel\x20contains\x20invalid\x20rows;\x20no\x20data\x20was\x20written.','Partial\x20import\x20task\x20readback\x20conflict.','toString','size','fileHash','hasOwn','Cannot\x20read\x20the\x20import\x20checkpoint.','rowNumber','version','rowIndexes','reconcileImageConflicts','2566008fxyzhn','map','Import\x20generated\x20ID\x20conflict.','batches','Import\x20content\x20conflict\x20at\x20Excel\x20row\x20','get','includes','emptyRows','stringify','93355mZDXTT','Incomplete\x20readback.','resume','utf8','unknown','count','schemaHash','2041151zbFxLV','parse','22967ndDtKG','schemaVersion','checkpoint','ids','string','ENOENT','Invalid\x20write\x20result.','actorId','onCheckpointReady','length','schemaFingerprint','rows','The\x20import\x20write\x20outcome\x20is\x20unknown.\x20Resume\x20to\x20reconcile\x20the\x20original\x20task\x20marker\x20before\x20continuing.','maxBatchBytes','message','strategy','keys','Auto-ID\x20import\x20items\x20cannot\x20contain\x20a\x20primary\x20key.','values','4tczZiV','add','number','has','datasetCode','Invalid\x20import\x20batch\x20size.','elapsedMs','completed','taskId','unsent','Excel\x20contains\x20no\x20valid\x20data\x20rows.','isArray','importId','push','Previously\x20imported\x20records\x20are\x20no\x20longer\x20visible;\x20recovery\x20conflict.','Import\x20checkpoint\x20contains\x20a\x20content\x20conflict.','errors','sheet','30wGlEcN','write','conflict','some','153471hztlxd','succeeded','incomplete','code','status','warnings','\x20exceeds\x20the\x20import\x20request\x20size\x20limit.','binding','readTask','now','1719868xZSaax'];a143_0xd04a=function(){return _0x2e1a50;};return a143_0xd04a();}
|