@lovrabet/lovrabet-cli 2.3.7-beta.1 → 2.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/approval/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/import-excel.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/kb-management-client.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/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(_0x594dc9,_0x2b7687){const _0x4ed0f7=a124_0x52ca,_0x3232e8=_0x594dc9();while(!![]){try{const _0x46df3e=-parseInt(_0x4ed0f7(0x11b))/0x1+-parseInt(_0x4ed0f7(0xef))/0x2*(-parseInt(_0x4ed0f7(0xd6))/0x3)+-parseInt(_0x4ed0f7(0xfa))/0x4*(-parseInt(_0x4ed0f7(0xcf))/0x5)+parseInt(_0x4ed0f7(0xd3))/0x6*(-parseInt(_0x4ed0f7(0x105))/0x7)+-parseInt(_0x4ed0f7(0x10c))/0x8*(-parseInt(_0x4ed0f7(0xda))/0x9)+parseInt(_0x4ed0f7(0x103))/0xa*(-parseInt(_0x4ed0f7(0xed))/0xb)+parseInt(_0x4ed0f7(0xe8))/0xc*(parseInt(_0x4ed0f7(0xd4))/0xd);if(_0x46df3e===_0x2b7687)break;else _0x3232e8['push'](_0x3232e8['shift']());}catch(_0x53eabe){_0x3232e8['push'](_0x3232e8['shift']());}}}(a124_0x25d5,0x64fe6));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';function a124_0x52ca(_0x24e524,_0x5d25d7){_0x24e524=_0x24e524-0xcf;const _0x25d546=a124_0x25d5();let _0x52cabd=_0x25d546[_0x24e524];return _0x52cabd;}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(_0xbbff5e){const _0x22a9b0=a124_0x52ca;return void _0xbbff5e,AUTH_MODE[_0x22a9b0(0x117)];}function a124_0x25d5(){const _0x57b2bf=['items','requiresAuth','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','app','128gjKycO','object','High-risk\x20operation\x20`','has','pageSize','nativeToolRequired','accessKey','riskLevel','nativeToolAvailable','error','confirmHighRisk','ClientAk','risk','rawFlags','catch','282556RVLSuR','2041145NekVOe','env','resolve','authRequired','12OplnjT','2808cnFbCL','local-alias','15aoSAkU','validation','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','pretty','232182rXjfso','currentApp','../commands/app/remote-source.js','\x20\x20To\x20proceed:\x20','Run\x20`','apiDomain','Set\x20accessKey\x20in\x20','APPCODE','defaultPageSize','command','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','mergedCli','Unknown\x20app:\x20','appCodeSource','32484xHAIZr','execute','write','string','appcode','1628lKQNGc','update','113956FYYGWR','isNonInteractive','appcode\x20\x22','service','ACCESS_KEY','appCode','newConfigFileName','nonInteractive','defaultApp','trim','format','8gfLBhe','formatOutput','../core/api-client.js','configMissing','../core/sdk-client.js','schema','includes','production','cancelled','54870KaKUjL','requiresAppCode','2066841qRZUWv','doctor','name'];a124_0x25d5=function(){return _0x57b2bf;};return a124_0x25d5();}let sdkClientInitialized=![];export function createPipelineEnv(_0x4084b2,_0x5e6822){const _0xd15576=a124_0x52ca,_0x473277=typeof _0x5e6822[_0xd15576(0x10b)]==='string'&&_0x5e6822['app']['trim']();return{'rawFlags':_0x5e6822,'appCode':_0x4084b2[_0xd15576(0xf4)]||productEnv(_0xd15576(0xe1))||(_0x473277?undefined:readAppCodeFromConfig()),'appCodeSource':_0x4084b2[_0xd15576(0xe7)],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x5e6822),'defaultFormat':_0x4084b2[_0xd15576(0xf9)],'defaultPageSize':_0x4084b2[_0xd15576(0x110)],'defaultVerbose':_0x4084b2['verbose'],'riskLevel':_0x4084b2[_0xd15576(0x113)],'nativeToolAvailable':_0x4084b2['nativeToolAvailable'],'accessKey':_0x4084b2[_0xd15576(0x112)],'env':_0x4084b2['env'],'mergedCli':{'defaultApp':_0x4084b2[_0xd15576(0xf7)],'currentApp':_0x4084b2[_0xd15576(0xdb)],'appCode':_0x4084b2[_0xd15576(0xf4)]}};}export function createLovrabetRunnerAdapter(_0x19d78c={}){const _0x155060=a124_0x52ca,_0x7a0f4c={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x3cfb94=>PIPELINE_FLAG_NAMES[_0x155060(0x10f)](_0x3cfb94[_0x155060(0x107)]))['map'](({name:_0x377c5f,type:_0x74aad6,description:_0x33c834})=>({'name':_0x377c5f,'type':_0x74aad6,'description':_0x33c834})),'formatOutput':_0x19d78c[_0x155060(0xfb)]??formatOutput,'getCommandLabel'(_0x5a4d65){const _0x1efd9c=_0x155060;return CLI_BIN_NAME+'\x20'+_0x5a4d65[_0x1efd9c(0xf2)]+'\x20'+_0x5a4d65[_0x1efd9c(0xe3)];},'riskPolicy':{'onViolation'(_0x26c21b,{def:_0x43c401,env:_0xae6e79}){const _0xa9848d=_0x155060;if(shouldRouteWriteToNativeTool(_0x43c401,_0xae6e79))return;console[_0xa9848d(0x115)](_0x26c21b);},'createError'(_0x1969b5,{def:_0x804f16,env:_0x30eeae}){const _0xa0e549=_0x155060;if(shouldRouteWriteToNativeTool(_0x804f16,_0x30eeae))return CliErrors[_0xa0e549(0x111)](CLI_BIN_NAME+'\x20'+_0x804f16[_0xa0e549(0xf2)]+'\x20'+_0x804f16['command']);return CliErrors[_0xa0e549(0x102)](_0x1969b5);}},async 'prepare'(_0x4fc098,_0x1d46d1){const _0x1fa98f=_0x155060,_0x18f4b9=resolveAuthMode(_0x1d46d1);if(_0x4fc098[_0x1fa98f(0x109)]!==![]){if(!_0x1d46d1[_0x1fa98f(0x112)])throw CliErrors[_0x1fa98f(0xd2)](_0x1fa98f(0xe0)+PRODUCT_CONFIG[_0x1fa98f(0xf5)]+'\x20or\x20pass\x20'+productEnvName(_0x1fa98f(0xf3))+'.');const {setActiveAK:_0x5ab83e}=await import(_0x1fa98f(0xfc));_0x5ab83e(_0x1d46d1[_0x1fa98f(0x112)]);}let _0x26f954='';if(_0x4fc098[_0x1fa98f(0x104)]!==![]){_0x26f954=_0x1d46d1[_0x1fa98f(0xf4)]??'',_0x26f954=await resolveExplicitAppName(_0x4fc098,_0x1d46d1,_0x26f954);if(!_0x26f954){await assertSelectedAppNameIsRuntimeAccessible(_0x4fc098,_0x1d46d1);throw CliErrors[_0x1fa98f(0xfd)](_0x1fa98f(0x10a)+PRODUCT_CONFIG[_0x1fa98f(0xf5)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x4fc098,_0x1d46d1,_0x26f954);}if(_0x26f954){const {initSdkClient:_0x3270da}=await import(_0x1fa98f(0xfe));_0x3270da({'appCode':_0x26f954,'env':_0x1d46d1[_0x1fa98f(0xd0)]??'production','runtimeDomain':_0x1d46d1['runtimeDomain'],'accessKey':_0x1d46d1[_0x1fa98f(0x112)],'authMode':_0x18f4b9}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x1d46d1['defaultVerbose']},'numbers':{'pagesize':_0x1d46d1[_0x1fa98f(0xe2)]}},'extras':{'appCode':_0x26f954,'cookie':'','apiDomain':_0x1d46d1[_0x1fa98f(0xdf)],'apiDir':'','accessKey':_0x1d46d1['accessKey'],'envName':_0x1d46d1[_0x1fa98f(0xd0)],'mergedCli':_0x1d46d1[_0x1fa98f(0xe5)]}};},'confirmHighRisk':_0x19d78c[_0x155060(0x116)]??(async({def:_0x2a6e9a,env:_0x3202cb,flags:_0x504b99,commandLabel:_0x3a3bdb})=>{const _0x24cfdc=_0x155060;if(_0x3202cb[_0x24cfdc(0xf0)]){const _0x167335=reconstructCommandArgv(_0x2a6e9a,_0x504b99);throw CliErrors[_0x24cfdc(0xd7)](_0x24cfdc(0x10e)+_0x3a3bdb+_0x24cfdc(0xe4)+(_0x24cfdc(0xdd)+_0x167335));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x2a6e9a,_0x3a3bdb,_0x504b99),'createCancelledError':_0x45a6a6=>CliErrors[_0x24cfdc(0x102)](_0x45a6a6)});}),'mapDryRunError'(_0x1e5e3e){return mapUserFacingExecuteError(_0x1e5e3e);},'mapExecuteError'(_0x330a56){return mapUserFacingExecuteError(_0x330a56);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x7a0f4c;}function shouldRouteWriteToNativeTool(_0x3cb31c,_0x203a94){const _0x14b28d=a124_0x52ca;return _0x203a94[_0x14b28d(0x114)]===!![]&&(_0x3cb31c[_0x14b28d(0x118)]===_0x14b28d(0xea)||_0x3cb31c[_0x14b28d(0x118)]==='high-risk-write');}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x1df45d=a124_0x52ca;try{if(sdkClientInitialized){const {clearSdkClient:_0x21f12d}=await import(_0x1df45d(0xfe));_0x21f12d();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x1bc45a}=await import(_0x1df45d(0xfc));_0x1bc45a();}}async function resolveExplicitAppName(_0x5d1172,_0x6e361d,_0x1e0d79){const _0x51e810=a124_0x52ca;if(_0x5d1172['requiresAppCode']===![])return _0x1e0d79;const _0x2e695b=typeof _0x6e361d['rawFlags'][_0x51e810(0x10b)]===_0x51e810(0xeb)?_0x6e361d[_0x51e810(0x119)]['app'][_0x51e810(0xf8)]():'';if(!_0x2e695b)return _0x1e0d79;const _0x3b9ac2=typeof _0x6e361d[_0x51e810(0x119)][_0x51e810(0xec)]===_0x51e810(0xeb)&&_0x6e361d['rawFlags'][_0x51e810(0xec)]['trim']()||productEnv(_0x51e810(0xe1));if(_0x3b9ac2||_0x6e361d['appCodeSource']===_0x51e810(0xd5))return _0x1e0d79;const {getRemoteAppList:_0x5f2493}=await import('../commands/app/remote-source.js'),_0xccaf39=await _0x5f2493({'env':_0x6e361d['env']??_0x51e810(0x101),'accessKey':_0x6e361d[_0x51e810(0x112)]}),_0x438576=findAppByName(_0xccaf39[_0x51e810(0x108)],_0x2e695b);if(_0x438576&&!isRuntimeAccessibleApp(_0x438576))throw runtimeInaccessibleAppError(_0x438576,'\x22'+_0x2e695b+'\x22');const _0x452e92=_0x438576?.[_0x51e810(0xf4)]?.[_0x51e810(0xf8)]();if(_0x452e92)return _0x452e92;throw CliErrors[_0x51e810(0xd7)](_0x51e810(0xe6)+_0x2e695b,_0x51e810(0xde)+CLI_BIN_NAME+_0x51e810(0xd8)+_0x2e695b+'.appcode\x20to\x20'+PRODUCT_CONFIG[_0x51e810(0xf5)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x4e5d16,_0x5e7f49){const _0x32536b=a124_0x52ca;if(_0x4e5d16[_0x32536b(0x104)]===![]||!_0x5e7f49['accessKey'])return;const _0x5cf7bc=(typeof _0x5e7f49[_0x32536b(0x119)][_0x32536b(0x10b)]===_0x32536b(0xeb)&&_0x5e7f49['rawFlags']['app'][_0x32536b(0xf8)]()?_0x5e7f49[_0x32536b(0x119)][_0x32536b(0x10b)]:_0x5e7f49[_0x32536b(0xe5)]?.[_0x32536b(0xdb)]??_0x5e7f49[_0x32536b(0xe5)]?.['defaultApp'])?.[_0x32536b(0xf8)]();if(!_0x5cf7bc)return;const {getRemoteAppList:_0x5b9ae6}=await import(_0x32536b(0xdc)),_0x3cd99d=await _0x5b9ae6({'env':_0x5e7f49[_0x32536b(0xd0)]??_0x32536b(0x101),'accessKey':_0x5e7f49[_0x32536b(0x112)]}),_0xfbd1a4=findAppByName(_0x3cd99d[_0x32536b(0x108)],_0x5cf7bc);if(_0xfbd1a4&&!isRuntimeAccessibleApp(_0xfbd1a4))throw runtimeInaccessibleAppError(_0xfbd1a4,'\x22'+_0x5cf7bc+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x41689a,_0x34a812,_0x374543){const _0x59ce9a=a124_0x52ca;if(_0x41689a[_0x59ce9a(0x104)]===![]||!_0x34a812[_0x59ce9a(0x112)])return;const {getRemoteAppList:_0x2b449f}=await import(_0x59ce9a(0xdc)),_0xec8558=await _0x2b449f({'env':_0x34a812['env']??_0x59ce9a(0x101),'accessKey':_0x34a812[_0x59ce9a(0x112)]}),_0xd73641=findAppByCode(_0xec8558[_0x59ce9a(0x108)],_0x374543);if(_0xd73641&&!isRuntimeAccessibleApp(_0xd73641))throw runtimeInaccessibleAppError(_0xd73641,_0x59ce9a(0xf1)+_0x374543+'\x22');}export async function runCommand(_0xc9165e,_0xa9a874,_0x5a5e7e=terminalRunnerAdapter){assertKnownCommandFlags(_0xc9165e,_0xa9a874['rawFlags']),await runCommandWithAdapter(shouldApplyVersionPolicy(_0xc9165e)?withVersionPolicy(_0xc9165e):_0xc9165e,_0xa9a874,_0x5a5e7e);}function shouldApplyVersionPolicy(_0x4819ed){const _0x2d4193=a124_0x52ca;if([_0x2d4193(0xee),_0x2d4193(0xff),_0x2d4193(0x106)][_0x2d4193(0x100)](_0x4819ed[_0x2d4193(0xf2)]))return![];return!(_0x4819ed['service']==='cli-skill'&&_0x4819ed[_0x2d4193(0xe3)]==='install');}function withVersionPolicy(_0xebf61e){return{..._0xebf61e,async 'execute'(_0x989cfa){const _0x170584=a124_0x52ca,_0x4ccfdb=await checkCliVersion();assertCliVersionSupported(_0x4ccfdb);const _0x3e7985=shouldResolveUpdateNotice(_0x989cfa)?resolveLatestUpdateNotice(_0x4ccfdb)[_0x170584(0x11a)](()=>null):Promise[_0x170584(0xd1)](null),_0x1f1889=await _0xebf61e[_0x170584(0xe9)](_0x989cfa);return attachUpdateNotice(_0x1f1889,await _0x3e7985);}};}function shouldResolveUpdateNotice(_0x26248d){const _0x3d01b2=a124_0x52ca;return _0x26248d[_0x3d01b2(0xf9)]===_0x3d01b2(0xd9)&&!_0x26248d[_0x3d01b2(0xf6)];}function attachUpdateNotice(_0x51d925,_0x34813f){const _0x3f6855=a124_0x52ca;if(!_0x34813f||!_0x51d925||typeof _0x51d925!==_0x3f6855(0x10d))return _0x51d925;const _0x318f34=_0x51d925,_0x583950=typeof _0x318f34['_notice']===_0x3f6855(0x10d)&&_0x318f34['_notice']!==null?_0x318f34['_notice']:{};return{..._0x318f34,'_notice':{..._0x583950,'update':_0x34813f}};}
|
|
1
|
+
(function(_0x357f71,_0x2a46f4){const _0x1241bd=a124_0x5002,_0x3b588a=_0x357f71();while(!![]){try{const _0x36d7c8=parseInt(_0x1241bd(0xbb))/0x1+-parseInt(_0x1241bd(0xb9))/0x2*(parseInt(_0x1241bd(0xa4))/0x3)+-parseInt(_0x1241bd(0xb5))/0x4+parseInt(_0x1241bd(0x80))/0x5*(-parseInt(_0x1241bd(0x85))/0x6)+parseInt(_0x1241bd(0x96))/0x7*(parseInt(_0x1241bd(0x84))/0x8)+-parseInt(_0x1241bd(0x97))/0x9+parseInt(_0x1241bd(0x99))/0xa*(parseInt(_0x1241bd(0x9c))/0xb);if(_0x36d7c8===_0x2a46f4)break;else _0x3b588a['push'](_0x3b588a['shift']());}catch(_0x498fcb){_0x3b588a['push'](_0x3b588a['shift']());}}}(a124_0x5e5b,0x8cf2e));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(_0x2ec503){const _0x137709=a124_0x5002;return void _0x2ec503,AUTH_MODE[_0x137709(0x7c)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x296ea9,_0x369df5){const _0xa9bd8a=a124_0x5002,_0x3299fb=typeof _0x369df5[_0xa9bd8a(0x8f)]===_0xa9bd8a(0x92)&&_0x369df5['app'][_0xa9bd8a(0xa8)]();return{'rawFlags':_0x369df5,'appCode':_0x296ea9[_0xa9bd8a(0x83)]||productEnv(_0xa9bd8a(0xb8))||(_0x3299fb?undefined:readAppCodeFromConfig()),'appCodeSource':_0x296ea9['appCodeSource'],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x369df5),'defaultFormat':_0x296ea9['format'],'defaultPageSize':_0x296ea9[_0xa9bd8a(0xb6)],'defaultVerbose':_0x296ea9[_0xa9bd8a(0xaa)],'riskLevel':_0x296ea9['riskLevel'],'nativeToolAvailable':_0x296ea9[_0xa9bd8a(0x82)],'accessKey':_0x296ea9[_0xa9bd8a(0xa6)],'env':_0x296ea9[_0xa9bd8a(0x9d)],'mergedCli':{'defaultApp':_0x296ea9[_0xa9bd8a(0x93)],'currentApp':_0x296ea9['currentApp'],'appCode':_0x296ea9[_0xa9bd8a(0x83)]}};}export function createLovrabetRunnerAdapter(_0x3a0834={}){const _0x2fcdb3=a124_0x5002,_0x46f950={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x2fcdb3(0xb0)](_0x484523=>PIPELINE_FLAG_NAMES[_0x2fcdb3(0x90)](_0x484523[_0x2fcdb3(0x7a)]))[_0x2fcdb3(0x7d)](({name:_0x1feb78,type:_0x1a6b96,description:_0x166613})=>({'name':_0x1feb78,'type':_0x1a6b96,'description':_0x166613})),'formatOutput':_0x3a0834['formatOutput']??formatOutput,'getCommandLabel'(_0x584d54){const _0x25af4f=_0x2fcdb3;return CLI_BIN_NAME+'\x20'+_0x584d54[_0x25af4f(0x8d)]+'\x20'+_0x584d54[_0x25af4f(0x9a)];},'riskPolicy':{'onViolation'(_0x866cdd,{def:_0x3b3efe,env:_0x435c41}){const _0x2286e6=_0x2fcdb3;if(shouldRouteWriteToNativeTool(_0x3b3efe,_0x435c41))return;console[_0x2286e6(0xa2)](_0x866cdd);},'createError'(_0x5e53d2,{def:_0x2fd200,env:_0x30bdc9}){const _0x11dca9=_0x2fcdb3;if(shouldRouteWriteToNativeTool(_0x2fd200,_0x30bdc9))return CliErrors['nativeToolRequired'](CLI_BIN_NAME+'\x20'+_0x2fd200[_0x11dca9(0x8d)]+'\x20'+_0x2fd200['command']);return CliErrors[_0x11dca9(0x9b)](_0x5e53d2);}},async 'prepare'(_0x3240e2,_0x1a03d7){const _0x23937b=_0x2fcdb3,_0x16531a=resolveAuthMode(_0x1a03d7);if(_0x3240e2[_0x23937b(0xab)]!==![]){if(!_0x1a03d7[_0x23937b(0xa6)])throw CliErrors['authRequired']('Set\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x23937b(0xac)]+_0x23937b(0x8e)+productEnvName(_0x23937b(0xb7))+'.');const {setActiveAK:_0xf6e7fe}=await import(_0x23937b(0xa9));_0xf6e7fe(_0x1a03d7[_0x23937b(0xa6)]);}let _0x157878='';if(_0x3240e2[_0x23937b(0xba)]!==![]){_0x157878=_0x1a03d7[_0x23937b(0x83)]??'',_0x157878=await resolveExplicitAppName(_0x3240e2,_0x1a03d7,_0x157878);if(!_0x157878){await assertSelectedAppNameIsRuntimeAccessible(_0x3240e2,_0x1a03d7);throw CliErrors['configMissing']('Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20'+PRODUCT_CONFIG[_0x23937b(0xac)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x3240e2,_0x1a03d7,_0x157878);}if(_0x157878){const {initSdkClient:_0x94e308}=await import('../core/sdk-client.js');_0x94e308({'appCode':_0x157878,'env':_0x1a03d7['env']??'production','runtimeDomain':_0x1a03d7[_0x23937b(0xa7)],'accessKey':_0x1a03d7['accessKey'],'authMode':_0x16531a}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x1a03d7[_0x23937b(0x8b)]},'numbers':{'pagesize':_0x1a03d7[_0x23937b(0x94)]}},'extras':{'appCode':_0x157878,'cookie':'','apiDomain':_0x1a03d7[_0x23937b(0x8c)],'apiDir':'','accessKey':_0x1a03d7[_0x23937b(0xa6)],'envName':_0x1a03d7[_0x23937b(0x9d)],'mergedCli':_0x1a03d7['mergedCli']}};},'confirmHighRisk':_0x3a0834[_0x2fcdb3(0x76)]??(async({def:_0x1e0ba5,env:_0x113ecd,flags:_0x55439b,commandLabel:_0xfeea60})=>{const _0x41e2ae=_0x2fcdb3;if(_0x113ecd[_0x41e2ae(0xb4)]){const _0x40c84a=reconstructCommandArgv(_0x1e0ba5,_0x55439b);throw CliErrors[_0x41e2ae(0x79)](_0x41e2ae(0x78)+_0xfeea60+_0x41e2ae(0x89)+('\x20\x20To\x20proceed:\x20'+_0x40c84a));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x1e0ba5,_0xfeea60,_0x55439b),'createCancelledError':_0x5cde31=>CliErrors[_0x41e2ae(0x9b)](_0x5cde31)});}),'mapDryRunError'(_0x38b025){return mapUserFacingExecuteError(_0x38b025);},'mapExecuteError'(_0xd7124){return mapUserFacingExecuteError(_0xd7124);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x46f950;}function a124_0x5002(_0x49b97e,_0x41063c){_0x49b97e=_0x49b97e-0x75;const _0x5e5b7e=a124_0x5e5b();let _0x5002a7=_0x5e5b7e[_0x49b97e];return _0x5002a7;}function shouldRouteWriteToNativeTool(_0x58478a,_0x1996ed){const _0x50369e=a124_0x5002;return _0x1996ed['nativeToolAvailable']===!![]&&(_0x58478a['risk']===_0x50369e(0x86)||_0x58478a['risk']===_0x50369e(0xbc));}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x45d534=a124_0x5002;try{if(sdkClientInitialized){const {clearSdkClient:_0x7e4df}=await import(_0x45d534(0xa5));_0x7e4df();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x43f4d5}=await import(_0x45d534(0xa9));_0x43f4d5();}}async function resolveExplicitAppName(_0x1da275,_0xb99efc,_0x6d2d8a){const _0x123c47=a124_0x5002;if(_0x1da275[_0x123c47(0xba)]===![])return _0x6d2d8a;const _0x48dcc4=typeof _0xb99efc[_0x123c47(0xa0)][_0x123c47(0x8f)]===_0x123c47(0x92)?_0xb99efc[_0x123c47(0xa0)][_0x123c47(0x8f)]['trim']():'';if(!_0x48dcc4)return _0x6d2d8a;const _0x1c962a=typeof _0xb99efc[_0x123c47(0xa0)]['appcode']===_0x123c47(0x92)&&_0xb99efc[_0x123c47(0xa0)][_0x123c47(0x91)][_0x123c47(0xa8)]()||productEnv(_0x123c47(0xb8));if(_0x1c962a||_0xb99efc[_0x123c47(0xaf)]===_0x123c47(0x87))return _0x6d2d8a;const {getRemoteAppList:_0x442383}=await import(_0x123c47(0x7e)),_0x2df9d0=await _0x442383({'env':_0xb99efc['env']??'production','accessKey':_0xb99efc[_0x123c47(0xa6)]}),_0x37b9aa=findAppByName(_0x2df9d0['items'],_0x48dcc4);if(_0x37b9aa&&!isRuntimeAccessibleApp(_0x37b9aa))throw runtimeInaccessibleAppError(_0x37b9aa,'\x22'+_0x48dcc4+'\x22');const _0x59c2c3=_0x37b9aa?.[_0x123c47(0x83)]?.[_0x123c47(0xa8)]();if(_0x59c2c3)return _0x59c2c3;throw CliErrors[_0x123c47(0x79)](_0x123c47(0xa3)+_0x48dcc4,_0x123c47(0xb1)+CLI_BIN_NAME+_0x123c47(0x98)+_0x48dcc4+_0x123c47(0xb2)+PRODUCT_CONFIG[_0x123c47(0xac)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0xcade9,_0x4bf725){const _0x2b3ae7=a124_0x5002;if(_0xcade9['requiresAppCode']===![]||!_0x4bf725[_0x2b3ae7(0xa6)])return;const _0x23fe5a=(typeof _0x4bf725[_0x2b3ae7(0xa0)][_0x2b3ae7(0x8f)]===_0x2b3ae7(0x92)&&_0x4bf725[_0x2b3ae7(0xa0)][_0x2b3ae7(0x8f)][_0x2b3ae7(0xa8)]()?_0x4bf725['rawFlags'][_0x2b3ae7(0x8f)]:_0x4bf725[_0x2b3ae7(0xa1)]?.[_0x2b3ae7(0x9f)]??_0x4bf725[_0x2b3ae7(0xa1)]?.['defaultApp'])?.[_0x2b3ae7(0xa8)]();if(!_0x23fe5a)return;const {getRemoteAppList:_0x4de130}=await import(_0x2b3ae7(0x7e)),_0x4acda6=await _0x4de130({'env':_0x4bf725[_0x2b3ae7(0x9d)]??_0x2b3ae7(0x77),'accessKey':_0x4bf725[_0x2b3ae7(0xa6)]}),_0x2fbebb=findAppByName(_0x4acda6[_0x2b3ae7(0x88)],_0x23fe5a);if(_0x2fbebb&&!isRuntimeAccessibleApp(_0x2fbebb))throw runtimeInaccessibleAppError(_0x2fbebb,'\x22'+_0x23fe5a+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x146356,_0x2acda2,_0x1e1a11){const _0x736f3a=a124_0x5002;if(_0x146356[_0x736f3a(0xba)]===![]||!_0x2acda2[_0x736f3a(0xa6)])return;const {getRemoteAppList:_0x4af887}=await import(_0x736f3a(0x7e)),_0x3320b9=await _0x4af887({'env':_0x2acda2[_0x736f3a(0x9d)]??_0x736f3a(0x77),'accessKey':_0x2acda2[_0x736f3a(0xa6)]}),_0x532f0b=findAppByCode(_0x3320b9[_0x736f3a(0x88)],_0x1e1a11);if(_0x532f0b&&!isRuntimeAccessibleApp(_0x532f0b))throw runtimeInaccessibleAppError(_0x532f0b,_0x736f3a(0x8a)+_0x1e1a11+'\x22');}export async function runCommand(_0x1989aa,_0x34d8cb,_0x43ecf5=terminalRunnerAdapter){const _0x4b2b2b=a124_0x5002;assertKnownCommandFlags(_0x1989aa,_0x34d8cb[_0x4b2b2b(0xa0)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x1989aa)?withVersionPolicy(_0x1989aa):_0x1989aa,_0x34d8cb,_0x43ecf5);}function a124_0x5e5b(){const _0x39a5fb=['`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','appcode\x20\x22','defaultVerbose','apiDomain','service','\x20or\x20pass\x20','app','has','appcode','string','defaultApp','defaultPageSize','nonInteractive','255318RfUcBu','7529607ZLhesO','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','1240AIwUoS','command','cancelled','210386OfuIto','env','_notice','currentApp','rawFlags','mergedCli','error','Unknown\x20app:\x20','3jANmzp','../core/sdk-client.js','accessKey','runtimeDomain','trim','../core/api-client.js','verbose','requiresAuth','newConfigFileName','catch','cli-skill','appCodeSource','filter','Run\x20`','.appcode\x20to\x20','install','isNonInteractive','3121908CZqaPP','pageSize','ACCESS_KEY','APPCODE','2025694bYXcqq','requiresAppCode','863387nMXnMk','high-risk-write','schema','confirmHighRisk','production','High-risk\x20operation\x20`','validation','name','resolve','ClientAk','map','../commands/app/remote-source.js','includes','5EMHLKt','object','nativeToolAvailable','appCode','208hYkrNc','5856372OOVtqp','write','local-alias','items'];a124_0x5e5b=function(){return _0x39a5fb;};return a124_0x5e5b();}function shouldApplyVersionPolicy(_0x18d859){const _0xf08618=a124_0x5002;if(['update',_0xf08618(0x75),'doctor'][_0xf08618(0x7f)](_0x18d859[_0xf08618(0x8d)]))return![];return!(_0x18d859[_0xf08618(0x8d)]===_0xf08618(0xae)&&_0x18d859['command']===_0xf08618(0xb3));}function withVersionPolicy(_0x56ff7e){return{..._0x56ff7e,async 'execute'(_0x525105){const _0x2e7c38=a124_0x5002,_0x7af2ad=await checkCliVersion();assertCliVersionSupported(_0x7af2ad);const _0x3cf25f=shouldResolveUpdateNotice(_0x525105)?resolveLatestUpdateNotice(_0x7af2ad)[_0x2e7c38(0xad)](()=>null):Promise[_0x2e7c38(0x7b)](null),_0x3b972c=await _0x56ff7e['execute'](_0x525105);return attachUpdateNotice(_0x3b972c,await _0x3cf25f);}};}function shouldResolveUpdateNotice(_0x583cc7){const _0x2e9747=a124_0x5002;return _0x583cc7['format']==='pretty'&&!_0x583cc7[_0x2e9747(0x95)];}function attachUpdateNotice(_0x4f3ecb,_0x2ac1b8){const _0x59560a=a124_0x5002;if(!_0x2ac1b8||!_0x4f3ecb||typeof _0x4f3ecb!=='object')return _0x4f3ecb;const _0x4d492d=_0x4f3ecb,_0x3ac149=typeof _0x4d492d['_notice']===_0x59560a(0x81)&&_0x4d492d[_0x59560a(0x9e)]!==null?_0x4d492d[_0x59560a(0x9e)]:{};return{..._0x4d492d,'_notice':{..._0x3ac149,'update':_0x2ac1b8}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x36db59,_0x589177){const _0x5a5e94=a125_0x41f3,_0x5bf6ea=_0x36db59();while(!![]){try{const _0x5e22ac=parseInt(_0x5a5e94(0x6a))/0x1+-parseInt(_0x5a5e94(0x67))/0x2+-parseInt(_0x5a5e94(0x68))/0x3+-parseInt(_0x5a5e94(0x6d))/0x4*(parseInt(_0x5a5e94(0x78))/0x5)+-parseInt(_0x5a5e94(0x71))/0x6*(-parseInt(_0x5a5e94(0x70))/0x7)+-parseInt(_0x5a5e94(0x72))/0x8*(-parseInt(_0x5a5e94(0x66))/0x9)+parseInt(_0x5a5e94(0x6b))/0xa;if(_0x5e22ac===_0x589177)break;else _0x5bf6ea['push'](_0x5bf6ea['shift']());}catch(_0x17a335){_0x5bf6ea['push'](_0x5bf6ea['shift']());}}}(a125_0x249c,0xe9939));import{buildSchemaPayload as a125_0x2110ef}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';function a125_0x41f3(_0x2e0da9,_0x74afa4){_0x2e0da9=_0x2e0da9-0x66;const _0x249cdd=a125_0x249c();let _0x41f335=_0x249cdd[_0x2e0da9];return _0x41f335;}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 _0x5d7cd5=a125_0x41f3,{serviceRegistry:_0x10b4fd,findDefinition:_0x1fbb63}=await import(_0x5d7cd5(0x6f)),_0x4de0c3=new Set(_0x10b4fd['map'](_0x158825=>_0x158825[_0x5d7cd5(0x73)])),_0x188c71=listDynamicServiceEntries()[_0x5d7cd5(0x75)](_0xe32787=>!_0x4de0c3['has'](_0xe32787[_0x5d7cd5(0x73)])),_0x4c82f4=a125_0x2110ef({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x10b4fd,_0x188c71),'buildAllFlags':buildAllFlags,'findDefinition':(_0x360612,_0x2bab72)=>_0x1fbb63(_0x360612,_0x2bab72)??findDynamicServiceDefinition(_0x360612,_0x2bab72)});return normalizeSchemaPayload(_0x4c82f4);}function normalizeSchemaPayload(_0x107dae){const _0x4330e4=a125_0x41f3;return{..._0x107dae,'schemaVersion':0x2,'services':_0x107dae[_0x4330e4(0x6e)][_0x4330e4(0x77)](_0x404032=>({..._0x404032,'commands':_0x404032[_0x4330e4(0x74)][_0x4330e4(0x77)](normalizeSchemaCommand)}))};}function a125_0x249c(){const _0x37617b=['filter','none','map','357865BnRHfI','528444qQIbzo','1243396nenDSv','5046801RBkIRz','auth','949827QEtmvy','17062100oDPaeV','requiresAuth','44lgSHRo','services','../commands/registry.js','32788QTRkEq','354tKqdBR','152UnLnFd','service','commands'];a125_0x249c=function(){return _0x37617b;};return a125_0x249c();}function normalizeSchemaCommand(_0x2c4498){const _0x5ccaf8=a125_0x41f3,_0x26dcd0=_0x2c4498;return{..._0x2c4498,'auth':_0x26dcd0[_0x5ccaf8(0x69)]??(_0x2c4498[_0x5ccaf8(0x6c)]?'required':_0x5ccaf8(0x76))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x454b27,_0x389939){const _0x392dca=a126_0x151c,_0xf89c0b=_0x454b27();while(!![]){try{const _0x1cd5ef=parseInt(_0x392dca(0x1c3))/0x1*(parseInt(_0x392dca(0x1c5))/0x2)+parseInt(_0x392dca(0x1c1))/0x3+-parseInt(_0x392dca(0x1c2))/0x4*(-parseInt(_0x392dca(0x1ca))/0x5)+-parseInt(_0x392dca(0x1cb))/0x6*(parseInt(_0x392dca(0x1c4))/0x7)+parseInt(_0x392dca(0x1c9))/0x8+parseInt(_0x392dca(0x1ce))/0x9+-parseInt(_0x392dca(0x1c7))/0xa*(parseInt(_0x392dca(0x1c6))/0xb);if(_0x1cd5ef===_0x389939)break;else _0xf89c0b['push'](_0xf89c0b['shift']());}catch(_0x97971b){_0xf89c0b['push'](_0xf89c0b['shift']());}}}(a126_0xd64d,0x61872));function a126_0x151c(_0x1eaab9,_0xb2791a){_0x1eaab9=_0x1eaab9-0x1c1;const _0xd64da7=a126_0xd64d();let _0x151c97=_0xd64da7[_0x1eaab9];return _0x151c97;}function a126_0xd64d(){const _0x3d16f3=['8250lKgFmT','slice','1178368OLqaiF','256340tERoTH','6paeZOU','service','findIndex','5404338OaTkWe','716397JWQTEI','4tphpKW','167BNfoXg','3604139wQJXwu','7186ngCpLa','9647CmppIK'];a126_0xd64d=function(){return _0x3d16f3;};return a126_0xd64d();}export function insertDynamicServicesAfterServiceTree(_0x5bb30c,_0x56f5eb){const _0x15dac9=a126_0x151c;if(_0x56f5eb['length']===0x0)return[..._0x5bb30c];const _0x159354=_0x5bb30c[_0x15dac9(0x1cd)](_0x26e0d1=>_0x26e0d1[_0x15dac9(0x1cc)]==='service');if(_0x159354<0x0)return[..._0x5bb30c,..._0x56f5eb];return[..._0x5bb30c[_0x15dac9(0x1c8)](0x0,_0x159354+0x1),..._0x56f5eb,..._0x5bb30c[_0x15dac9(0x1c8)](_0x159354+0x1)];}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a127_0x44f5(){var _0x8cd5cd=['3tddKie','43782AlcqIS','427jMbLHl','5580810mifLUK','906719YfyPCr','5TdLJCK','508408oKrIcp','1860784yibvts','364194zrsPnG','8462XQfTnG','40oWKzHt'];a127_0x44f5=function(){return _0x8cd5cd;};return a127_0x44f5();}function a127_0x5f03(_0x4cfb8f,_0x54a8cf){_0x4cfb8f=_0x4cfb8f-0x96;var _0x44f5e1=a127_0x44f5();var _0x5f0357=_0x44f5e1[_0x4cfb8f];return _0x5f0357;}(function(_0x194455,_0x23c7bd){var _0x28d7a0=a127_0x5f03,_0x57164b=_0x194455();while(!![]){try{var _0xffee99=-parseInt(_0x28d7a0(0x98))/0x1+-parseInt(_0x28d7a0(0x9b))/0x2*(-parseInt(_0x28d7a0(0x9d))/0x3)+-parseInt(_0x28d7a0(0x99))/0x4*(parseInt(_0x28d7a0(0x97))/0x5)+-parseInt(_0x28d7a0(0x9e))/0x6*(-parseInt(_0x28d7a0(0x9f))/0x7)+-parseInt(_0x28d7a0(0x9c))/0x8*(-parseInt(_0x28d7a0(0x9a))/0x9)+parseInt(_0x28d7a0(0xa0))/0xa+parseInt(_0x28d7a0(0x96))/0xb;if(_0xffee99===_0x23c7bd)break;else _0x57164b['push'](_0x57164b['shift']());}catch(_0x18dec3){_0x57164b['push'](_0x57164b['shift']());}}}(a127_0x44f5,0x4dc78));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.3.7
|
|
2
|
-
export declare const GIT_TAG = "v2.3.7
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-10-
|
|
1
|
+
export declare const VERSION = "2.3.7";
|
|
2
|
+
export declare const GIT_TAG = "v2.3.7";
|
|
3
|
+
export declare const GIT_COMMIT = "0dedaff";
|
|
4
|
+
export declare const BUILD_TIME = "2026-10-29T02:53:36.401Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a128_0x100dc1=a128_0x4a98;function a128_0x4a98(_0x414efe,_0x2e661e){_0x414efe=_0x414efe-0x103;const _0x35205a=a128_0x3520();let _0x4a9839=_0x35205a[_0x414efe];return _0x4a9839;}(function(_0x5a25ba,_0x16987d){const _0x332897=a128_0x4a98,_0x11473d=_0x5a25ba();while(!![]){try{const _0x27f90b=-parseInt(_0x332897(0x10c))/0x1+-parseInt(_0x332897(0x10a))/0x2+-parseInt(_0x332897(0x105))/0x3*(-parseInt(_0x332897(0x108))/0x4)+parseInt(_0x332897(0x10f))/0x5*(-parseInt(_0x332897(0x104))/0x6)+parseInt(_0x332897(0x10d))/0x7*(parseInt(_0x332897(0x10b))/0x8)+parseInt(_0x332897(0x10e))/0x9+parseInt(_0x332897(0x103))/0xa;if(_0x27f90b===_0x16987d)break;else _0x11473d['push'](_0x11473d['shift']());}catch(_0x55d545){_0x11473d['push'](_0x11473d['shift']());}}}(a128_0x3520,0xa7422));export const VERSION=a128_0x100dc1(0x109);export const GIT_TAG=a128_0x100dc1(0x107);function a128_0x3520(){const _0x17771d=['209004ujJGMz','801gbPeig','0dedaff','v2.3.7','11180RekrIe','2.3.7','1433206ZdpcTH','136UKZcur','721293eEHDdz','232862BIAktw','9504756MsLVLn','160UFKFGE','8698030Wzkovv'];a128_0x3520=function(){return _0x17771d;};return a128_0x3520();}export const GIT_COMMIT=a128_0x100dc1(0x106);export const BUILD_TIME='2026-10-29T02:53:36.401Z';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a129_0x2d12(){const _0x52c3b1=['6VkTVAV','https://daily-api.lovrabet.ai','global','Mainland\x20China','https://runtime.lovrabet.com','7hFGIHi','china','287396KWlvRm','https://user-daily.lovrabet.com','https://daily-runtime.lovrabet.ai','https://kb-service.lovrabet.com','10wDxxfY','27036420XQiwcQ','https://skills-daily.lovrabet.com','https://api.lovrabet.id','36PEHtmw','1405448umjoSI','https://runtime.lovrabet.ai','https://daily-api.lovrabet.com','https://skills-daily.lovrabet.ai','https://skills.lovrabet.com','441185usBtoy','https://user.lovrabet.id','https://skills.lovrabet.id','280iqDfki','5422872lYZvyk','2087192yuQusC','https://user.lovrabet.com','886843ef89aa4ff2b36d612e8fbd1b6c1840b37728916fba5699be34129ef579','https://user-daily.lovrabet.ai','https://api.lovrabet.com','35757laUgus'];a129_0x2d12=function(){return _0x52c3b1;};return a129_0x2d12();}const a129_0x409d1d=a129_0x28c0;(function(_0x2b96df,_0x412a99){const _0x23ce41=a129_0x28c0,_0x5ca9f8=_0x2b96df();while(!![]){try{const _0x161440=parseInt(_0x23ce41(0xe9))/0x1*(-parseInt(_0x23ce41(0xeb))/0x2)+parseInt(_0x23ce41(0xe4))/0x3*(parseInt(_0x23ce41(0xde))/0x4)+-parseInt(_0x23ce41(0xd9))/0x5*(parseInt(_0x23ce41(0xd3))/0x6)+-parseInt(_0x23ce41(0xdd))/0x7+-parseInt(_0x23ce41(0xdc))/0x8*(parseInt(_0x23ce41(0xe3))/0x9)+parseInt(_0x23ce41(0xef))/0xa*(-parseInt(_0x23ce41(0xd4))/0xb)+parseInt(_0x23ce41(0xf0))/0xc;if(_0x161440===_0x412a99)break;else _0x5ca9f8['push'](_0x5ca9f8['shift']());}catch(_0x39deab){_0x5ca9f8['push'](_0x5ca9f8['shift']());}}}(a129_0x2d12,0xafbbc));export const ROUTING_CATALOG_DIGEST=a129_0x409d1d(0xe0);export const DEFAULT_REGION='cn';function a129_0x28c0(_0x4e6beb,_0x297234){_0x4e6beb=_0x4e6beb-0xd2;const _0x2d124e=a129_0x2d12();let _0x28c0c3=_0x2d124e[_0x4e6beb];return _0x28c0c3;}export const REGION_VALUES=['cn','id',a129_0x409d1d(0xe6)];export const ENABLED_REGION_VALUES=['cn','id',a129_0x409d1d(0xe6)];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a129_0x409d1d(0xe7),'aliases':[a129_0x409d1d(0xea)],'serviceDomains':{'production':{'user':a129_0x409d1d(0xdf),'api':a129_0x409d1d(0xe2),'runtime':a129_0x409d1d(0xe8),'skill':a129_0x409d1d(0xd8),'kbService':a129_0x409d1d(0xee)},'daily':{'user':a129_0x409d1d(0xec),'api':a129_0x409d1d(0xd6),'runtime':'https://daily-runtime.lovrabet.com','skill':a129_0x409d1d(0xf1),'kbService':'https://kb-service-daily.lovrabet.com'}}},'id':{'enabled':!![],'label':'Indonesia','aliases':['indonesia'],'serviceDomains':{'production':{'user':a129_0x409d1d(0xda),'api':a129_0x409d1d(0xd2),'runtime':'https://runtime.lovrabet.id','skill':a129_0x409d1d(0xdb),'kbService':'https://kb-service.lovrabet.id'}}},'global':{'enabled':!![],'label':'Global','aliases':[],'serviceDomains':{'production':{'user':'https://user.lovrabet.ai','api':'https://api.lovrabet.ai','runtime':a129_0x409d1d(0xd5),'skill':'https://skills.lovrabet.ai'},'daily':{'user':a129_0x409d1d(0xe1),'api':a129_0x409d1d(0xe5),'runtime':a129_0x409d1d(0xed),'skill':a129_0x409d1d(0xd7)}}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a130_0x2852(_0x1df185,_0x4a87c2){_0x1df185=_0x1df185-0x1f4;const _0x2a375b=a130_0x2a37();let _0x2852b3=_0x2a375b[_0x1df185];return _0x2852b3;}const a130_0x3aeed0=a130_0x2852;(function(_0x5fb9e5,_0x5af20e){const _0x1ee04c=a130_0x2852,_0x52c6f3=_0x5fb9e5();while(!![]){try{const _0x5a1975=-parseInt(_0x1ee04c(0x1fb))/0x1+parseInt(_0x1ee04c(0x1f4))/0x2*(parseInt(_0x1ee04c(0x1fe))/0x3)+-parseInt(_0x1ee04c(0x1fd))/0x4*(-parseInt(_0x1ee04c(0x1fa))/0x5)+parseInt(_0x1ee04c(0x1f6))/0x6+-parseInt(_0x1ee04c(0x205))/0x7*(-parseInt(_0x1ee04c(0x1f9))/0x8)+parseInt(_0x1ee04c(0x1f8))/0x9+-parseInt(_0x1ee04c(0x204))/0xa*(parseInt(_0x1ee04c(0x1fc))/0xb);if(_0x5a1975===_0x5af20e)break;else _0x52c6f3['push'](_0x52c6f3['shift']());}catch(_0xc354c6){_0x52c6f3['push'](_0x52c6f3['shift']());}}}(a130_0x2a37,0x53775));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a130_0x3aeed0(0x203);export const ENTERPRISE_ROUTING_PROTOCOL=a130_0x3aeed0(0x1f7);function a130_0x2a37(){const _0x329e60=['11800RGrPlc','14ZJJwVI','42beDTEl','apiDomain','3870240twTvbK','lovrabet-routing/v1','2683287fiksrv','1584920dFIkLC','2984270oOZlMW','53059CCmNTj','15345BYFVlh','4rRYkFN','14967OOyWqP','runtimeDomain','enterprise','kbServiceDomain','userDomain','e3423cad71c22edb18a8481be7bdb733ff2d4136c31aa3ae6da56271e32cced7'];a130_0x2a37=function(){return _0x329e60;};return a130_0x2a37();}export const ENTERPRISE_ROUTING_KIND=a130_0x3aeed0(0x200);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a130_0x3aeed0(0x202),a130_0x3aeed0(0x1f5),a130_0x3aeed0(0x1ff),'skillDomain',a130_0x3aeed0(0x201)];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=['userDomain','apiDomain',a130_0x3aeed0(0x1ff),'skillDomain'];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a131_0x3710(){const _0xf7bf25=['195eowVLG','584FecNDP','\x20--help','3856156nTiQLO','451LJooPy','430cyXuQb','\x20\x20Use\x20','green','2529YcxOAT','294345qeWSAm','\x20to\x20view\x20available\x20commands.','1510146hFTlVt','181026mzCIAY','623790vwXBNw','1729rCXdss'];a131_0x3710=function(){return _0xf7bf25;};return a131_0x3710();}(function(_0xeff87c,_0x3b687d){const _0x552e31=a131_0x456d,_0x318c93=_0xeff87c();while(!![]){try{const _0x1a224a=-parseInt(_0x552e31(0x80))/0x1*(-parseInt(_0x552e31(0x7d))/0x2)+parseInt(_0x552e31(0x81))/0x3+-parseInt(_0x552e31(0x7b))/0x4+-parseInt(_0x552e31(0x78))/0x5*(parseInt(_0x552e31(0x75))/0x6)+parseInt(_0x552e31(0x77))/0x7*(-parseInt(_0x552e31(0x79))/0x8)+-parseInt(_0x552e31(0x83))/0x9+-parseInt(_0x552e31(0x76))/0xa*(-parseInt(_0x552e31(0x7c))/0xb);if(_0x1a224a===_0x3b687d)break;else _0x318c93['push'](_0x318c93['shift']());}catch(_0x5012df){_0x318c93['push'](_0x318c93['shift']());}}}(a131_0x3710,0xd5198));function a131_0x456d(_0x9e6be,_0x448c81){_0x9e6be=_0x9e6be-0x75;const _0x371045=a131_0x3710();let _0x456da9=_0x371045[_0x9e6be];return _0x456da9;}import{jsx as a131_0x311b15,jsxs as a131_0x314e87}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0xaad341=a131_0x456d,{exit:_0x53f864}=useApp();return useEffect(()=>{_0x53f864();},[_0x53f864]),a131_0x314e87(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a131_0x311b15(Box,{'children':a131_0x311b15(Text,{'bold':!![],'color':_0xaad341(0x7f),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a131_0x314e87(Box,{'marginTop':0x1,'children':[a131_0x311b15(Text,{'dimColor':!![],'children':_0xaad341(0x7e)}),a131_0x311b15(Text,{'bold':!![],'color':_0xaad341(0x7f),'children':CLI_BIN_NAME+_0xaad341(0x7a)}),a131_0x311b15(Text,{'dimColor':!![],'children':_0xaad341(0x82)})]})]});}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x39b213,_0x2abec7){const _0x312ebe=a132_0x3824,_0x217559=_0x39b213();while(!![]){try{const _0xaeba20=parseInt(_0x312ebe(0x1ac))/0x1+-parseInt(_0x312ebe(0x1b1))/0x2+parseInt(_0x312ebe(0x1a3))/0x3+parseInt(_0x312ebe(0x1b2))/0x4+parseInt(_0x312ebe(0x1a6))/0x5*(parseInt(_0x312ebe(0x1a5))/0x6)+-parseInt(_0x312ebe(0x1ad))/0x7+parseInt(_0x312ebe(0x1b7))/0x8*(-parseInt(_0x312ebe(0x1ae))/0x9);if(_0xaeba20===_0x2abec7)break;else _0x217559['push'](_0x217559['shift']());}catch(_0x16d889){_0x217559['push'](_0x217559['shift']());}}}(a132_0x7d46,0xbe89d));import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x29fde2={}){const _0x4bb76a=a132_0x3824,_0x8ddc8e=installBuiltinSkill(_0x29fde2);if(_0x8ddc8e['ok']){const _0x451223=_0x8ddc8e['changed']?_0x4bb76a(0x1b4):_0x4bb76a(0x1a8),_0x5448bf=_0x8ddc8e[_0x4bb76a(0x1a9)]?_0x4bb76a(0x1ab)+_0x8ddc8e['installedPath']:_0x4bb76a(0x1b8);return console['log'](_0x4bb76a(0x1a2)+_0x8ddc8e[_0x4bb76a(0x1b5)]+'\x20'+_0x451223+_0x5448bf),_0x8ddc8e;}const _0x3996d7=_0x4bb76a(0x1a4)+(_0x8ddc8e[_0x4bb76a(0x1b3)]??_0x4bb76a(0x1aa))+']\x20'+(_0x8ddc8e['error']??_0x4bb76a(0x1b0))+'.\x20'+(_0x4bb76a(0x1b6)+_0x8ddc8e[_0x4bb76a(0x1af)]);if(_0x8ddc8e[_0x4bb76a(0x1b3)]==='SOURCE_INVALID')throw new Error(_0x3996d7);return console[_0x4bb76a(0x1a7)](_0x3996d7),_0x8ddc8e;}function a132_0x3824(_0x1ee691,_0xd0999b){_0x1ee691=_0x1ee691-0x1a2;const _0x7d465b=a132_0x7d46();let _0x3824ca=_0x7d465b[_0x1ee691];return _0x3824ca;}function a132_0x7d46(){const _0x2abf95=['3656496poTdCv','code','installed','skillVersion','Repair\x20with:\x20','3894152cRKcOG','\x20via\x20skills@latest','Lovrabet\x20Built-in\x20Skill\x20','4377426TxAJTw','[BUILTIN_SKILL_INSTALL_','4250502ZCTsLy','10MpgTet','warn','already\x20current','installedPath','FAILED','\x20at\x20','879608jNMUBE','1461488UoJEXj','45gcuWLX','repairCommand','Installation\x20failed','2493268bICztd'];a132_0x7d46=function(){return _0x2abf95;};return a132_0x7d46();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2e3d57,_0x3c2a96){const _0x48f614=a133_0x9692,_0x586c0d=_0x2e3d57();while(!![]){try{const _0x44e760=-parseInt(_0x48f614(0xe0))/0x1*(-parseInt(_0x48f614(0xde))/0x2)+parseInt(_0x48f614(0xe2))/0x3+-parseInt(_0x48f614(0xd9))/0x4*(-parseInt(_0x48f614(0xdd))/0x5)+-parseInt(_0x48f614(0xe5))/0x6+parseInt(_0x48f614(0xdf))/0x7*(parseInt(_0x48f614(0xd8))/0x8)+parseInt(_0x48f614(0xd7))/0x9+-parseInt(_0x48f614(0xe9))/0xa;if(_0x44e760===_0x3c2a96)break;else _0x586c0d['push'](_0x586c0d['shift']());}catch(_0x53d0e2){_0x586c0d['push'](_0x586c0d['shift']());}}}(a133_0x2cfd,0x9f4ad));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildLovrabetConfirmationRequest(_0x189a97,_0x24181c,_0x466cc5){const _0x2997ee=a133_0x9692,_0x108325=normalizeText(_0x189a97[_0x2997ee(0xda)],DESCRIPTION_MAX_LENGTH),_0x5ede13=normalizeText(_0x189a97[_0x2997ee(0xdb)],DESCRIPTION_MAX_LENGTH);return{'operation':_0x24181c,'risk':requireWriteRisk(_0x189a97),'description':_0x108325||_0x5ede13||_0x2997ee(0xe8),..._0x466cc5?{'signal':_0x466cc5}:{}};}function a133_0x2cfd(){const _0x227462=['description','slice','81630fYoEFo','2466646YdxqUT','114422AqQeAF','1tsOOwS','trim','2364723ulsIqn','replace','write','1763448dRNBka','high-risk-write','Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.','Run\x20this\x20write\x20operation','38223100YQuAct','risk','6937281lBJYDv','344TbidXP','312dpDzmo','confirmationDescription'];a133_0x2cfd=function(){return _0x227462;};return a133_0x2cfd();}function a133_0x9692(_0x43c84d,_0x11ba87){_0x43c84d=_0x43c84d-0xd6;const _0x2cfd28=a133_0x2cfd();let _0x9692ad=_0x2cfd28[_0x43c84d];return _0x9692ad;}function requireWriteRisk(_0x5b099f){const _0x49d07c=a133_0x9692;if(_0x5b099f[_0x49d07c(0xd6)]===_0x49d07c(0xe4)||_0x5b099f['risk']===_0x49d07c(0xe6))return _0x5b099f[_0x49d07c(0xd6)];throw new Error(_0x49d07c(0xe7));}function normalizeText(_0x59af85,_0x27f7f1){const _0x4a15e2=a133_0x9692;if(typeof _0x59af85!=='string')return'';return _0x59af85[_0x4a15e2(0xe3)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x4a15e2(0xe3)](/\s+/g,'\x20')[_0x4a15e2(0xe1)]()[_0x4a15e2(0xdc)](0x0,_0x27f7f1);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x57fdd8,_0x5e0ebe){const _0x2907ea=a134_0x2f44,_0x33307c=_0x57fdd8();while(!![]){try{const _0x40de5c=-parseInt(_0x2907ea(0x19a))/0x1+parseInt(_0x2907ea(0x196))/0x2+-parseInt(_0x2907ea(0x18f))/0x3*(-parseInt(_0x2907ea(0x193))/0x4)+parseInt(_0x2907ea(0x194))/0x5+-parseInt(_0x2907ea(0x18a))/0x6+parseInt(_0x2907ea(0x192))/0x7*(parseInt(_0x2907ea(0x195))/0x8)+-parseInt(_0x2907ea(0x19b))/0x9;if(_0x40de5c===_0x5e0ebe)break;else _0x33307c['push'](_0x33307c['shift']());}catch(_0xe45ec2){_0x33307c['push'](_0x33307c['shift']());}}}(a134_0x4cc9,0xb75d6));export function canonicalLovrabetOperation(_0x3f2b2c){const _0x4c5014=a134_0x2f44;return[_0x3f2b2c[_0x4c5014(0x199)],..._0x3f2b2c[_0x4c5014(0x18b)][_0x4c5014(0x191)]()[_0x4c5014(0x198)](/\s+/)][_0x4c5014(0x18c)](Boolean)[_0x4c5014(0x18e)]('.');}function a134_0x2f44(_0x5f33c1,_0x4b2915){_0x5f33c1=_0x5f33c1-0x189;const _0x4cc946=a134_0x4cc9();let _0x2f440=_0x4cc946[_0x5f33c1];return _0x2f440;}export function createLovrabetWriteMetadata(_0x287b25,_0x358b82,_0x18aba2,_0x212ef4){const _0x5ea851=a134_0x2f44;if(_0x212ef4||_0x18aba2['ok']!==!![]||_0x287b25[_0x5ea851(0x197)]!=='write'&&_0x287b25[_0x5ea851(0x197)]!==_0x5ea851(0x189))return undefined;const _0x5ab32e=_0x287b25[_0x5ea851(0x18d)]?.(_0x18aba2),_0x461943={'type':_0x5ea851(0x190),'operation':_0x358b82,'risk':_0x287b25[_0x5ea851(0x197)],..._0x5ab32e?{'subject':_0x5ab32e}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x461943}};}function a134_0x4cc9(){const _0x4a2935=['filter','writeEventSubject','join','98757viwmwr','lovrabet.write.completed','trim','1869MYApdM','36GxBbAq','5775730wwWZVv','41296HlHRJa','931924DYanQN','risk','split','service','520166tlYkVM','8217963GSlJQI','high-risk-write','6667788aKfUTy','command'];a134_0x4cc9=function(){return _0x4a2935;};return a134_0x4cc9();}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5b1922,_0x580f88){const _0x2a3ea1=a135_0x463f,_0x579649=_0x5b1922();while(!![]){try{const _0x332fe7=-parseInt(_0x2a3ea1(0xdd))/0x1*(parseInt(_0x2a3ea1(0xee))/0x2)+-parseInt(_0x2a3ea1(0xe5))/0x3*(parseInt(_0x2a3ea1(0xf6))/0x4)+-parseInt(_0x2a3ea1(0xe7))/0x5+-parseInt(_0x2a3ea1(0xf3))/0x6+-parseInt(_0x2a3ea1(0xeb))/0x7*(-parseInt(_0x2a3ea1(0xe2))/0x8)+-parseInt(_0x2a3ea1(0xf8))/0x9+-parseInt(_0x2a3ea1(0xf1))/0xa*(-parseInt(_0x2a3ea1(0xe3))/0xb);if(_0x332fe7===_0x580f88)break;else _0x579649['push'](_0x579649['shift']());}catch(_0x349398){_0x579649['push'](_0x579649['shift']());}}}(a135_0x3924,0x57d74));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';function a135_0x3924(){const _0x35c71f=['Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','1118232JJfpgj','args','format','confirm','risk','presentation','data','reason','Lovrabet\x20invocation\x20aborted.','stringify','rawFlags','97BuMXIl','riskLevel','dry-run','write','aborted','16KVeHJS','11sBdZEZ','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','18VKqHiH','execute','3432095WcmCaA','definition','present','message','1624658XIbrFU','isNonInteractive','result','8876MiHZbu','high-risk-write','yes','23228530PtnQif','signal','2855916kqPJSW','command','dryRun','473404IXJYxp'];a135_0x3924=function(){return _0x35c71f;};return a135_0x3924();}import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';import{canonicalLovrabetOperation,createLovrabetWriteMetadata}from'../runtime/event.js';import{buildLovrabetConfirmationRequest}from'../runtime/confirmation.js';function a135_0x463f(_0x1d4019,_0x593010){_0x1d4019=_0x1d4019-0xd7;const _0x392433=a135_0x3924();let _0x463f88=_0x392433[_0x1d4019];return _0x463f88;}import{resolveLovrabetInvocation}from'../runtime/resolve.js';import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0x2dee3e,command:_0x506963,risk:_0x5d4df,dryRun:_0x46e1a3}){const _0x509190=a135_0x463f;return JSON[_0x509190(0xdb)]({'ok':_0x2dee3e['ok'],'command':_0x506963,'risk':_0x5d4df,..._0x46e1a3?{'dryRun':!![]}:{},..._0x2dee3e[_0x509190(0xd8)]!==undefined?{'data':_0x2dee3e[_0x509190(0xd8)]}:{},..._0x2dee3e[_0x509190(0xea)]?{'message':_0x2dee3e[_0x509190(0xea)]}:{}});}};export async function invokeLovrabet(_0x337e44,_0x5f2d45){const _0x500d6e=a135_0x463f;throwIfAborted(_0x5f2d45['signal']);const _0x313dee=await resolveLovrabetInvocation(_0x337e44),_0x2a6507=canonicalLovrabetOperation(_0x313dee[_0x500d6e(0xe8)]);return await confirmWriteBeforeQueue(_0x313dee[_0x500d6e(0xe8)],_0x313dee[_0x500d6e(0xdc)],_0x2a6507,_0x5f2d45),runSerialized(async()=>{const _0x270479=_0x500d6e;throwIfAborted(_0x5f2d45['signal']);const _0x13190c={},_0x1b46d8=buildConfigFromFlags(_0x313dee['rawFlags']);await initGlobalEnvironment(_0x1b46d8);const _0x40adcc=createPipelineEnv(_0x1b46d8,{..._0x313dee[_0x270479(0xdc)],'yes':_0x313dee[_0x270479(0xe8)][_0x270479(0xfc)]===_0x270479(0xef)?!![]:_0x313dee[_0x270479(0xdc)][_0x270479(0xf0)],'nonInteractive':!![]});_0x40adcc[_0x270479(0xf9)]=_0x313dee[_0x270479(0xf9)],_0x40adcc[_0x270479(0xec)]=!![],_0x40adcc[_0x270479(0xde)]=_0x270479(0xef);const _0x5e7904=withAbortSignal(_0x313dee[_0x270479(0xe8)],_0x5f2d45['signal']),_0x54bcda=createLovrabetRunnerAdapter({'formatOutput'(_0x2165a4,_0x40939b){const _0x14b152=_0x270479;_0x13190c[_0x14b152(0xed)]=_0x2165a4,_0x13190c['command']=_0x40939b[_0x14b152(0xf4)],_0x13190c[_0x14b152(0xfc)]=_0x40939b[_0x14b152(0xfc)],_0x13190c[_0x14b152(0xfa)]=_0x40939b['format'],_0x13190c[_0x14b152(0xf5)]=_0x40939b[_0x14b152(0xf5)]===!![];},async 'confirmHighRisk'(){const _0x57bc72=_0x270479;throw new Error(_0x57bc72(0xe4));}});try{await runCommand(_0x5e7904,_0x40adcc,_0x54bcda);if(!_0x13190c[_0x270479(0xed)]||!_0x13190c[_0x270479(0xf4)]||!_0x13190c[_0x270479(0xfc)]||!_0x13190c[_0x270479(0xfa)])throw new Error(_0x270479(0xf7));const _0x178497=_0x5f2d45[_0x270479(0xd7)]??defaultPresentation,_0x36afe6=_0x13190c[_0x270479(0xf5)]===!![],_0x518c0a={'result':_0x13190c[_0x270479(0xed)],'command':_0x13190c[_0x270479(0xf4)],'operation':_0x2a6507,'risk':_0x13190c[_0x270479(0xfc)],'format':_0x13190c['format'],'dryRun':_0x36afe6},_0x380686=createLovrabetWriteMetadata(_0x313dee['definition'],_0x2a6507,_0x13190c[_0x270479(0xed)],_0x36afe6);let _0x4af83d;try{_0x4af83d=await _0x178497[_0x270479(0xe9)](_0x518c0a);}catch(_0x3da33c){if(!_0x380686||_0x178497===defaultPresentation)throw _0x3da33c;_0x4af83d=await defaultPresentation[_0x270479(0xe9)](_0x518c0a);}return{'operation':_0x2a6507,'risk':_0x13190c['risk'],'mode':_0x36afe6?_0x270479(0xdf):_0x270479(0xe6),'result':_0x13190c[_0x270479(0xed)],'output':_0x4af83d,..._0x380686?{'metadata':_0x380686}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x1a6d98,_0x546c23,_0x42e02e,_0x32cb7a){const _0x18861d=a135_0x463f;if(_0x546c23[_0x18861d(0xf5)]===!![]||_0x1a6d98[_0x18861d(0xfc)]!==_0x18861d(0xe0)&&_0x1a6d98[_0x18861d(0xfc)]!==_0x18861d(0xef))return;await _0x32cb7a['confirmation'][_0x18861d(0xfb)](buildLovrabetConfirmationRequest(_0x1a6d98,_0x42e02e,_0x32cb7a[_0x18861d(0xf2)]));}function withAbortSignal(_0x2721f3,_0x44c8fd){return{..._0x2721f3,async 'execute'(_0x107408){return throwIfAborted(_0x44c8fd),_0x2721f3['execute']({..._0x107408,'signal':_0x44c8fd});}};}function throwIfAborted(_0x5cd5a5){const _0x35a757=a135_0x463f;if(_0x5cd5a5?.[_0x35a757(0xe1)])throw _0x5cd5a5[_0x35a757(0xd9)]instanceof Error?_0x5cd5a5[_0x35a757(0xd9)]:new DOMException(_0x35a757(0xda),'AbortError');}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x155c58,_0x1b82bf){const _0x7b85cb=a136_0x315e,_0xe8a09a=_0x155c58();while(!![]){try{const _0x23e747=-parseInt(_0x7b85cb(0x19d))/0x1*(-parseInt(_0x7b85cb(0x199))/0x2)+-parseInt(_0x7b85cb(0x19f))/0x3*(-parseInt(_0x7b85cb(0x19e))/0x4)+-parseInt(_0x7b85cb(0x198))/0x5+-parseInt(_0x7b85cb(0x1a0))/0x6*(-parseInt(_0x7b85cb(0x1a1))/0x7)+parseInt(_0x7b85cb(0x19b))/0x8*(parseInt(_0x7b85cb(0x197))/0x9)+-parseInt(_0x7b85cb(0x19c))/0xa*(-parseInt(_0x7b85cb(0x19a))/0xb)+parseInt(_0x7b85cb(0x196))/0xc*(-parseInt(_0x7b85cb(0x1a2))/0xd);if(_0x23e747===_0x1b82bf)break;else _0xe8a09a['push'](_0xe8a09a['shift']());}catch(_0x5cb70f){_0xe8a09a['push'](_0xe8a09a['shift']());}}}(a136_0x2bcc,0xaacf2));let tail=Promise['resolve']();export async function runSerialized(_0xd59f62){const _0x32daba=a136_0x315e,_0x39a9eb=tail;let _0x26db25;tail=new Promise(_0xf08223=>{_0x26db25=_0xf08223;}),await _0x39a9eb[_0x32daba(0x1a3)](()=>undefined);try{return await _0xd59f62();}finally{_0x26db25();}}function a136_0x315e(_0x340bb0,_0x247be3){_0x340bb0=_0x340bb0-0x196;const _0x2bcc3d=a136_0x2bcc();let _0x315e31=_0x2bcc3d[_0x340bb0];return _0x315e31;}function a136_0x2bcc(){const _0x3a3483=['37457bJTmwm','750451VAJtwx','catch','264SqxhJX','18pUnTBt','3110255nIAdaz','2IMEtRx','11xMnvbt','3705896NJdcnI','2247640BquovF','237323uXJEcM','623284EiBcaC','21rKchnB','126rmiivY'];a136_0x2bcc=function(){return _0x3a3483;};return a136_0x2bcc();}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xcff9a8,_0x50337b){const _0x557e45=a137_0x3999,_0x1e777f=_0xcff9a8();while(!![]){try{const _0x182b5f=-parseInt(_0x557e45(0x155))/0x1*(parseInt(_0x557e45(0x162))/0x2)+parseInt(_0x557e45(0x15c))/0x3+-parseInt(_0x557e45(0x15f))/0x4+parseInt(_0x557e45(0x154))/0x5+parseInt(_0x557e45(0x15b))/0x6*(-parseInt(_0x557e45(0x167))/0x7)+-parseInt(_0x557e45(0x156))/0x8+-parseInt(_0x557e45(0x165))/0x9*(-parseInt(_0x557e45(0x152))/0xa);if(_0x182b5f===_0x50337b)break;else _0x1e777f['push'](_0x1e777f['shift']());}catch(_0x369d33){_0x1e777f['push'](_0x1e777f['shift']());}}}(a137_0x46bf,0xa5e81));import a137_0x2f04c5 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a137_0x3999(_0x4b18df,_0x1b2c5d){_0x4b18df=_0x4b18df-0x150;const _0x46bfc0=a137_0x46bf();let _0x399968=_0x46bfc0[_0x4b18df];return _0x399968;}import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a137_0x46bf(){const _0x519c1c=['82609ZgokYW','9202720aWxXob','args','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','defaultCommand','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','1290FijqFZ','2731533IbkFYO','flags','message','4886824AAjOIM','assign','../framework/preparse.js','14hFivlu','slice','input','45fDVOgy','validation','37982bWxupl','definition','unknownCommand','5129390FsGDCL','../commands/registry.js','6606230pMcMpN'];a137_0x46bf=function(){return _0x519c1c;};return a137_0x46bf();}export async function resolveLovrabetInvocation(_0x38ce61){const _0x408891=a137_0x3999,_0x4bb787=a137_0x2f04c5('',{'importMeta':import.meta,'argv':_0x38ce61,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x282d71=[..._0x4bb787[_0x408891(0x164)]],_0x6f3f6e=_0x4bb787[_0x408891(0x15d)];await correctFlags(_0x6f3f6e);const _0xa8cfdb=_0x282d71[0x0];if(!_0xa8cfdb)throw CliErrors[_0x408891(0x166)](_0x408891(0x158));const _0x1ad715=resolveRemovedCommand(_0xa8cfdb,_0x282d71[0x1]);if(_0x1ad715)throw CliErrors[_0x408891(0x166)](_0x1ad715[_0x408891(0x15e)],_0x1ad715['hint']);if(!isKnownService(_0xa8cfdb)){const _0x48063d=resolveDynamicServiceCommand(_0x282d71,_0x6f3f6e);if(!_0x48063d)throw CliErrors[_0x408891(0x151)](_0x282d71['join']('\x20'));return Object[_0x408891(0x160)](_0x6f3f6e,_0x48063d[_0x408891(0x15d)]),{'definition':_0x48063d[_0x408891(0x150)],'rawFlags':_0x6f3f6e,'args':_0x48063d[_0x408891(0x157)]};}const _0x2c3fa2=getServiceEntry(_0xa8cfdb),_0x49459e=_0x282d71[0x1]||_0x2c3fa2[_0x408891(0x159)];if(!_0x49459e)throw CliErrors['validation'](_0x408891(0x15a)+_0xa8cfdb+'\x22.');const _0x3eb541=findDefinition(_0xa8cfdb,_0x49459e);if(!_0x3eb541)throw CliErrors[_0x408891(0x151)](_0xa8cfdb+'\x20'+_0x49459e);return{'definition':_0x3eb541,'rawFlags':_0x6f3f6e,'args':_0x282d71[_0x408891(0x163)](0x2)};}async function correctFlags(_0x293cba){const _0x4bd207=a137_0x3999;try{const {correctFlags:_0x34c6b2}=await import(_0x4bd207(0x161)),{getAllDefinitions:_0x385d44}=await import(_0x4bd207(0x153)),_0x246d70=_0x385d44()['flatMap'](_0x57f829=>_0x57f829[_0x4bd207(0x15d)]??[]),_0x176ebf=_0x34c6b2(_0x293cba,_0x246d70);Object[_0x4bd207(0x160)](_0x293cba,_0x176ebf[_0x4bd207(0x15d)]);}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a139_0x5157d3=a139_0x508b;(function(_0x4f790b,_0x4bd55f){const _0x1737cf=a139_0x508b,_0x28d665=_0x4f790b();while(!![]){try{const _0x15e80b=parseInt(_0x1737cf(0x93))/0x1*(parseInt(_0x1737cf(0xab))/0x2)+-parseInt(_0x1737cf(0x9b))/0x3+-parseInt(_0x1737cf(0xdc))/0x4+parseInt(_0x1737cf(0xb1))/0x5+-parseInt(_0x1737cf(0xdb))/0x6+-parseInt(_0x1737cf(0xd4))/0x7*(-parseInt(_0x1737cf(0xbd))/0x8)+-parseInt(_0x1737cf(0x99))/0x9*(-parseInt(_0x1737cf(0xc7))/0xa);if(_0x15e80b===_0x4bd55f)break;else _0x28d665['push'](_0x28d665['shift']());}catch(_0x3112df){_0x28d665['push'](_0x28d665['shift']());}}}(a139_0x5a3d,0x22edf));function a139_0x5a3d(){const _0x2852f3=['rows','1697148NWAqaG','937028qTnmlF','isInteger','runtimeDomain','rowNumber','now','filter','ENOENT','ids','taskId','warnings','utf8','mappingHash','batchSize','resume','values','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','rowIndexes','Import\x20checkpoint\x20does\x20not\x20match\x20the\x20input,\x20target\x20or\x20identity.','string','10049qooAQG','schemaFingerprint','message','status','checkpoint','Import\x20task\x20marker\x20collision;\x20stop\x20without\x20replacing\x20the\x20marker.','18OjvKbi','Excel\x20contains\x20no\x20valid\x20data\x20rows.','555651TsrHRV','maxBatchSize','binding','reduce','succeeded','reconcileImageConflicts','includes','Excel\x20contains\x20invalid\x20rows;\x20no\x20data\x20was\x20written.','toString','incomplete','errors','emptyRows','The\x20auto-ID\x20runner\x20requires\x20the\x20v2\x20task\x20readback\x20contract.','appCode','elapsedMs','maxBatchBytes','12gLnKSn','length','unknown','number','unsent','keys','1053695HrMkfx','some','completed','Import\x20checkpoint\x20contains\x20duplicate\x20generated\x20IDs.','schemaVersion','code','schemaHash','byteLength','report','count','size','Invalid\x20import\x20task\x20readback\x20response.','314432pwCeBu','Excel\x20row\x20','uploadFields','batches','push','Partial\x20import\x20task\x20readback\x20conflict.','actorId','importId','Incomplete\x20readback.','has','1496210xMWlAW','isArray','imageFields','readTask','datasetCode','pending','Import\x20content\x20conflict\x20at\x20Excel\x20row\x20','Import\x20checkpoint\x20contains\x20a\x20content\x20conflict.','add','hasOwn','Invalid\x20write\x20result.','Import\x20generated\x20ID\x20conflict.','Import\x20generated\x20ID\x20collision.','49NmIymi','map','The\x20import\x20write\x20outcome\x20is\x20unknown.\x20Resume\x20to\x20reconcile\x20the\x20original\x20task\x20marker\x20before\x20continuing.','conflict','Cannot\x20read\x20the\x20import\x20checkpoint.','flatMap'];a139_0x5a3d=function(){return _0x2852f3;};return a139_0x5a3d();}import{randomBytes,randomUUID}from'node:crypto';import{lstat,readFile}from'node:fs/promises';import{acquireLock,assertImportContract,assertImportPaths,canonical,sameImportValue,resolveImportOutputPath,saveImportJson}from'./runner.js';function a139_0x508b(_0x69f5a3,_0x5d9d13){_0x69f5a3=_0x69f5a3-0x8c;const _0x5a3dcb=a139_0x5a3d();let _0x508ba1=_0x5a3dcb[_0x69f5a3];return _0x508ba1;}const validId=_0x82341f=>typeof _0x82341f===a139_0x5157d3(0xae)&&Number['isSafeInteger'](_0x82341f)&&_0x82341f>0x0;export async function runAutoIdExcelImport(_0xbab6bb){const _0x259676=a139_0x5157d3,_0x422a77={..._0xbab6bb,'checkpoint':await resolveImportOutputPath(_0xbab6bb[_0x259676(0x97)]),'report':await resolveImportOutputPath(_0xbab6bb[_0x259676(0xb9)])},{manifest:_0x146488,contract:_0x56eecd,api:_0x40a794}=_0x422a77;assertImportContract(_0x56eecd,_0x422a77[_0x259676(0xa8)],_0x422a77[_0x259676(0xcb)]);if(_0x56eecd[_0x259676(0xb5)]!==0x2||!_0x40a794[_0x259676(0xca)])throw Error(_0x259676(0xa7));if(_0x146488[_0x259676(0xa5)][_0x259676(0xac)])throw Error(_0x259676(0xa2));if(!_0x146488[_0x259676(0xda)][_0x259676(0xac)])throw Error(_0x259676(0x9a));if(!Number[_0x259676(0xdd)](_0x422a77['batchSize'])||_0x422a77[_0x259676(0x8c)]<0x1||_0x422a77[_0x259676(0x8c)]>_0x56eecd[_0x259676(0x9c)])throw Error('Invalid\x20import\x20batch\x20size.');assertImportPaths(_0x422a77[_0x259676(0x97)],_0x422a77['report']);if(_0x146488[_0x259676(0xda)][_0x259676(0xb2)](_0x20e22a=>Object[_0x259676(0xd0)](_0x20e22a[_0x259676(0x8e)],'id')))throw Error('Auto-ID\x20import\x20items\x20cannot\x20contain\x20a\x20primary\x20key.');const _0x47991e=(_0x542e04,_0x1ffb14)=>Buffer[_0x259676(0xb8)](JSON['stringify']({'schemaFingerprint':_0x56eecd[_0x259676(0x94)],'taskId':_0x1ffb14,'items':_0x542e04[_0x259676(0xd5)](_0x38eb0f=>_0x146488[_0x259676(0xda)][_0x38eb0f][_0x259676(0x8e)])}),_0x259676(0xe6)),_0x100c34=[];let _0x26f85=[];for(let _0x27c5c2=0x0;_0x27c5c2<_0x146488[_0x259676(0xda)][_0x259676(0xac)];_0x27c5c2++){if(_0x47991e([_0x27c5c2],0x2**0x34)>_0x56eecd['maxBatchBytes'])throw Error(_0x259676(0xbe)+_0x146488[_0x259676(0xda)][_0x27c5c2][_0x259676(0xdf)]+'\x20exceeds\x20the\x20import\x20request\x20size\x20limit.');_0x26f85[_0x259676(0xac)]&&(_0x26f85[_0x259676(0xac)]===_0x422a77[_0x259676(0x8c)]||_0x47991e([..._0x26f85,_0x27c5c2],0x2**0x34)>_0x56eecd['maxBatchBytes'])&&(_0x100c34['push'](_0x26f85),_0x26f85=[]),_0x26f85[_0x259676(0xc1)](_0x27c5c2);}if(_0x26f85[_0x259676(0xac)])_0x100c34[_0x259676(0xc1)](_0x26f85);const _0x86a32a={'appCode':_0x422a77[_0x259676(0xa8)],'datasetCode':_0x422a77[_0x259676(0xcb)],'runtimeDomain':_0x422a77[_0x259676(0xde)],'actorId':_0x56eecd[_0x259676(0xc3)],'fileHash':_0x146488['fileHash'],'mappingHash':_0x146488[_0x259676(0xe7)],'schemaHash':_0x146488[_0x259676(0xb7)],'remoteSchemaHash':_0x56eecd[_0x259676(0x94)],'batchSize':_0x422a77[_0x259676(0x8c)],'maxBatchBytes':_0x56eecd[_0x259676(0xaa)],'sheet':_0x146488['sheet'],'strategy':_0x56eecd['strategy']},_0x4f1b53=await acquireLock(_0x422a77[_0x259676(0x97)]);let _0x1f1a04;const _0x2e0477=Date['now']();let _0x5afa5d=0x0;const _0x17289d=[],_0x2701a7=_0x17c49c=>_0x1f1a04?.[_0x259676(0xc0)]['filter'](_0x543f64=>_0x543f64[_0x259676(0x96)]===_0x17c49c)[_0x259676(0x9e)]((_0x305980,_0x22c360)=>_0x305980+_0x22c360['rowIndexes']['length'],0x0)??0x0,_0x343080=()=>({'importId':_0x1f1a04?.['importId'],'sourceRows':_0x146488[_0x259676(0xda)][_0x259676(0xac)],'emptyRows':_0x146488[_0x259676(0xa6)][_0x259676(0xac)],'succeeded':_0x2701a7(_0x259676(0x9f)),'unknown':_0x2701a7(_0x259676(0xcc)),'conflicts':_0x2701a7(_0x259676(0xd7)),'notAttempted':_0x2701a7('unsent'),'batches':_0x5afa5d,'batchResults':_0x17289d,'elapsedMs':Date['now']()-_0x2e0477,'checkpoint':_0x422a77[_0x259676(0x97)],'report':_0x422a77['report'],'warnings':_0x146488[_0x259676(0xe5)]});try{if(_0x422a77[_0x259676(0x8d)]){try{_0x1f1a04=JSON['parse'](await readFile(_0x422a77[_0x259676(0x97)],_0x259676(0xe6)));}catch{throw Error(_0x259676(0xd8));}if(!_0x1f1a04||_0x1f1a04['version']!==0x2||typeof _0x1f1a04[_0x259676(0xc4)]!==_0x259676(0x92)||!_0x1f1a04['importId']||canonical(_0x1f1a04[_0x259676(0x9d)])!==canonical(_0x86a32a)||!Array['isArray'](_0x1f1a04[_0x259676(0xc0)])||_0x1f1a04[_0x259676(0xc0)][_0x259676(0xac)]!==_0x100c34[_0x259676(0xac)]||new Set(_0x1f1a04['batches'][_0x259676(0xd5)](_0x2d5e25=>_0x2d5e25['taskId']))['size']!==_0x100c34[_0x259676(0xac)]||_0x1f1a04[_0x259676(0xc0)][_0x259676(0xb2)]((_0x23f357,_0x47d3d2)=>!validId(_0x23f357[_0x259676(0xe4)])||_0x23f357[_0x259676(0xe4)]>0x2**0x34||canonical(_0x23f357['rowIndexes'])!==canonical(_0x100c34[_0x47d3d2])||![_0x259676(0xaf),_0x259676(0xcc),_0x259676(0x9f),'conflict']['includes'](_0x23f357[_0x259676(0x96)])||!Array[_0x259676(0xc8)](_0x23f357[_0x259676(0xe3)])||_0x23f357[_0x259676(0xe3)][_0x259676(0xb2)](_0x559632=>!validId(_0x559632))||new Set(_0x23f357['ids'])['size']!==_0x23f357['ids'][_0x259676(0xac)]||_0x23f357[_0x259676(0xe3)][_0x259676(0xac)]!==0x0&&_0x23f357[_0x259676(0xe3)][_0x259676(0xac)]!==_0x23f357[_0x259676(0x90)][_0x259676(0xac)]||_0x23f357[_0x259676(0x96)]===_0x259676(0x9f)&&_0x23f357[_0x259676(0xe3)]['length']!==_0x23f357[_0x259676(0x90)][_0x259676(0xac)]||_0x23f357['status']===_0x259676(0xaf)&&_0x23f357[_0x259676(0xe3)][_0x259676(0xac)]!==0x0))throw Error(_0x259676(0x91));const _0x104ad1=_0x1f1a04[_0x259676(0xc0)][_0x259676(0xd9)](_0x26a0e6=>_0x26a0e6[_0x259676(0xe3)]);if(new Set(_0x104ad1)[_0x259676(0xbb)]!==_0x104ad1[_0x259676(0xac)])throw Error(_0x259676(0xb4));}else{try{await lstat(_0x422a77[_0x259676(0x97)]);throw Error(_0x259676(0x8f));}catch(_0x2ba526){if(_0x2ba526[_0x259676(0xb6)]!==_0x259676(0xe2))throw _0x2ba526;}const _0x5ad34e=new Set();_0x1f1a04={'version':0x2,'importId':randomUUID(),'binding':_0x86a32a,'batches':_0x100c34[_0x259676(0xd5)](_0x3dd30e=>{const _0x4c6614=_0x259676;let _0x967675;do{_0x967675=Number(BigInt('0x'+randomBytes(0x7)[_0x4c6614(0xa3)]('hex'))&(0x1n<<0x34n)-0x1n)+0x1;}while(_0x5ad34e['has'](_0x967675));return _0x5ad34e[_0x4c6614(0xcf)](_0x967675),{'taskId':_0x967675,'rowIndexes':_0x3dd30e,'ids':[],'status':_0x4c6614(0xaf)};})},await saveImportJson(_0x422a77[_0x259676(0x97)],_0x1f1a04);}await _0x422a77['onCheckpointReady']?.();const _0x219494=_0x1f1a04,_0x42a02a=async(_0x1b6ac3,_0x5500d3)=>{const _0x20c0e3=_0x259676;_0x1b6ac3[_0x20c0e3(0x96)]=_0x20c0e3(0xd7),await saveImportJson(_0x422a77[_0x20c0e3(0x97)],_0x219494);throw Error(_0x5500d3);},_0x42fc4a=async _0x7f5771=>{const _0x44afcb=_0x259676,_0x17c8ba=await _0x40a794[_0x44afcb(0xca)](_0x7f5771[_0x44afcb(0xe4)]);if(!Array[_0x44afcb(0xc8)](_0x17c8ba))throw Error(_0x44afcb(0xbc));if(_0x7f5771[_0x44afcb(0x96)]===_0x44afcb(0xaf)&&_0x17c8ba[_0x44afcb(0xac)])return _0x42a02a(_0x7f5771,_0x44afcb(0x98));if(!_0x17c8ba[_0x44afcb(0xac)]){if(_0x7f5771['status']===_0x44afcb(0x9f)||_0x7f5771[_0x44afcb(0xe3)][_0x44afcb(0xac)])return _0x42a02a(_0x7f5771,'Previously\x20imported\x20records\x20are\x20no\x20longer\x20visible;\x20recovery\x20conflict.');return![];}if(_0x17c8ba[_0x44afcb(0xac)]!==_0x7f5771['rowIndexes'][_0x44afcb(0xac)])return _0x42a02a(_0x7f5771,_0x44afcb(0xc2));const _0xa9f8e8=_0x17c8ba[_0x44afcb(0xd5)](_0x353a73=>_0x353a73?.['id']);if(_0xa9f8e8[_0x44afcb(0xb2)](_0x326ab3=>!validId(_0x326ab3)))return _0x42a02a(_0x7f5771,_0x44afcb(0xd2));const _0x16c853=_0xa9f8e8;if(_0x16c853[_0x44afcb(0xb2)](_0x5cdfa2=>!validId(_0x5cdfa2))||_0x16c853['some']((_0x198217,_0x38ca5b)=>_0x38ca5b>0x0&&_0x198217<=_0x16c853[_0x38ca5b-0x1])||_0x7f5771[_0x44afcb(0xe3)][_0x44afcb(0xac)]&&canonical(_0x16c853)!==canonical(_0x7f5771[_0x44afcb(0xe3)]))return _0x42a02a(_0x7f5771,_0x44afcb(0xd2));const _0x4ff2af=new Set(_0x219494[_0x44afcb(0xc0)][_0x44afcb(0xe1)](_0x194c85=>_0x194c85!==_0x7f5771)[_0x44afcb(0xd9)](_0x108349=>_0x108349[_0x44afcb(0xe3)]));if(_0x16c853['some'](_0x4b9150=>_0x4ff2af[_0x44afcb(0xc6)](_0x4b9150)))return _0x42a02a(_0x7f5771,_0x44afcb(0xd3));for(let _0x3d0e2a=0x0;_0x3d0e2a<_0x17c8ba['length'];_0x3d0e2a++){const _0x5959c9=_0x146488['rows'][_0x7f5771[_0x44afcb(0x90)][_0x3d0e2a]][_0x44afcb(0x8e)];if(Object[_0x44afcb(0xb0)](_0x5959c9)['some'](_0x1c7ea2=>!sameImportValue(_0x5959c9[_0x1c7ea2],_0x17c8ba[_0x3d0e2a][_0x1c7ea2],_0x146488[_0x44afcb(0xc9)]?.[_0x44afcb(0xa1)](_0x1c7ea2)&&!_0x146488[_0x44afcb(0xbf)]?.[_0x44afcb(0xa1)](_0x1c7ea2))))return _0x42a02a(_0x7f5771,_0x44afcb(0xcd)+_0x146488[_0x44afcb(0xda)][_0x7f5771[_0x44afcb(0x90)][_0x3d0e2a]][_0x44afcb(0xdf)]+'.');}return _0x7f5771['ids']=_0x16c853,_0x7f5771['status']='succeeded',await saveImportJson(_0x422a77[_0x44afcb(0x97)],_0x219494),!![];};if(_0x219494[_0x259676(0xc0)][_0x259676(0xb2)](_0x3fd426=>_0x3fd426['status']===_0x259676(0xd7)&&!(_0x422a77['resume']&&_0x422a77[_0x259676(0xa0)]&&_0x146488[_0x259676(0xc9)]?.['length']&&_0x3fd426[_0x259676(0xe3)]['length']===_0x3fd426[_0x259676(0x90)][_0x259676(0xac)])))throw Error(_0x259676(0xce));if(_0x422a77['resume']){for(const _0x39413a of _0x219494[_0x259676(0xc0)])await _0x42fc4a(_0x39413a);}for(const _0x3a2500 of _0x219494['batches']){if(_0x3a2500[_0x259676(0x96)]==='succeeded')continue;if(!_0x422a77['resume'])await _0x42fc4a(_0x3a2500);_0x3a2500[_0x259676(0x96)]=_0x259676(0xcc),await saveImportJson(_0x422a77[_0x259676(0x97)],_0x219494),_0x5afa5d++;const _0x401298=_0x3a2500[_0x259676(0x90)][_0x259676(0xd5)](_0x57abf8=>_0x146488[_0x259676(0xda)][_0x57abf8][_0x259676(0x8e)]),_0x19863c=Date[_0x259676(0xe0)](),_0x15fe97={'batch':_0x5afa5d,'rowStart':_0x146488[_0x259676(0xda)][_0x3a2500[_0x259676(0x90)][0x0]][_0x259676(0xdf)],'rowEnd':_0x146488[_0x259676(0xda)][_0x3a2500[_0x259676(0x90)]['at'](-0x1)][_0x259676(0xdf)],'count':_0x401298[_0x259676(0xac)],'bytes':_0x47991e(_0x3a2500['rowIndexes'],_0x3a2500['taskId']),'elapsedMs':0x0,'status':_0x259676(0xad)};_0x17289d[_0x259676(0xc1)](_0x15fe97);try{const _0x575b23=await _0x40a794['write'](_0x401298,_0x3a2500[_0x259676(0xe4)]);if(!_0x575b23||_0x575b23[_0x259676(0xba)]!==_0x401298[_0x259676(0xac)]||!Array[_0x259676(0xc8)](_0x575b23[_0x259676(0xe3)])||_0x575b23[_0x259676(0xe3)][_0x259676(0xac)]!==_0x401298['length']||_0x575b23[_0x259676(0xe3)][_0x259676(0xb2)](_0x524f1e=>!validId(_0x524f1e))||new Set(_0x575b23['ids'])[_0x259676(0xbb)]!==_0x575b23[_0x259676(0xe3)][_0x259676(0xac)])throw Error(_0x259676(0xd1));_0x3a2500[_0x259676(0xe3)]=_0x575b23[_0x259676(0xe3)],await saveImportJson(_0x422a77[_0x259676(0x97)],_0x219494);if(!await _0x42fc4a(_0x3a2500))throw Error(_0x259676(0xc5));}catch(_0x49b966){if(_0x3a2500[_0x259676(0x96)]===_0x259676(0xd7))throw _0x49b966;try{await _0x42fc4a(_0x3a2500);}catch(_0x5331b2){if(_0x3a2500[_0x259676(0x96)]==='conflict')throw _0x5331b2;}if(_0x3a2500['status']!==_0x259676(0x9f))throw Error(_0x259676(0xd6));}finally{_0x15fe97[_0x259676(0xa9)]=Date['now']()-_0x19863c,_0x15fe97[_0x259676(0x96)]=_0x3a2500[_0x259676(0x96)]==='succeeded'?_0x259676(0x9f):_0x3a2500['status']===_0x259676(0xd7)?_0x259676(0xd7):_0x259676(0xad);}}const _0x349e08={'status':_0x259676(0xb3),..._0x343080()};return await saveImportJson(_0x422a77['report'],_0x349e08),_0x349e08;}catch(_0x2fd62e){if(_0x1f1a04)await saveImportJson(_0x422a77[_0x259676(0xb9)],{'status':_0x259676(0xa4),..._0x343080(),'message':_0x2fd62e[_0x259676(0x95)]});throw _0x2fd62e;}finally{await _0x4f1b53();}}
|
|
1
|
+
const a139_0x339614=a139_0xf213;function a139_0x228a(){const _0x33ae9c=['version','unsent','succeeded','report','push','filter','Previously\x20imported\x20records\x20are\x20no\x20longer\x20visible;\x20recovery\x20conflict.','count','add','has','Import\x20task\x20marker\x20collision;\x20stop\x20without\x20replacing\x20the\x20marker.','Import\x20generated\x20ID\x20conflict.','ids','some','325610uNWeBD','789445yhVtnM','map','values','resume','Incomplete\x20readback.','strategy','Import\x20checkpoint\x20already\x20exists;\x20use\x20--resume.','length','importId','completed','unknown','utf8','checkpoint','rowNumber','rowIndexes','schemaVersion','reduce','byteLength','onCheckpointReady','status','39CkcsBN','1343194AfjOwO','string','datasetCode','Excel\x20contains\x20invalid\x20rows;\x20no\x20data\x20was\x20written.','The\x20auto-ID\x20runner\x20requires\x20the\x20v2\x20task\x20readback\x20contract.','now','203232GshRqL','isArray','conflict','Import\x20content\x20conflict\x20at\x20Excel\x20row\x20','30cpJWPe','Cannot\x20read\x20the\x20import\x20checkpoint.','Invalid\x20write\x20result.','2559018NnslhU','maxBatchSize','schemaFingerprint','maxBatchBytes','batchSize','elapsedMs','570hkUGUl','369392ZRvzKk','code','appCode','sheet','Import\x20generated\x20ID\x20collision.','batches','hex','454751GjEwWH','readTask','Invalid\x20import\x20task\x20readback\x20response.','stringify','parse','keys','63NziNvQ','flatMap','Excel\x20row\x20','schemaHash','uploadFields','ENOENT','mappingHash','Partial\x20import\x20task\x20readback\x20conflict.','rows','Import\x20checkpoint\x20does\x20not\x20match\x20the\x20input,\x20target\x20or\x20identity.','incomplete','Import\x20checkpoint\x20contains\x20a\x20content\x20conflict.','message','taskId','size','includes','The\x20import\x20write\x20outcome\x20is\x20unknown.\x20Resume\x20to\x20reconcile\x20the\x20original\x20task\x20marker\x20before\x20continuing.','number','pending','isInteger'];a139_0x228a=function(){return _0x33ae9c;};return a139_0x228a();}(function(_0x154e3d,_0x16fe39){const _0x32f7ad=a139_0xf213,_0x4d1c48=_0x154e3d();while(!![]){try{const _0x5c97cf=-parseInt(_0x32f7ad(0x1ea))/0x1+-parseInt(_0x32f7ad(0x200))/0x2+parseInt(_0x32f7ad(0x1ff))/0x3*(-parseInt(_0x32f7ad(0x206))/0x4)+parseInt(_0x32f7ad(0x1eb))/0x5*(-parseInt(_0x32f7ad(0x20a))/0x6)+parseInt(_0x32f7ad(0x20d))/0x7+-parseInt(_0x32f7ad(0x214))/0x8*(-parseInt(_0x32f7ad(0x221))/0x9)+parseInt(_0x32f7ad(0x213))/0xa*(parseInt(_0x32f7ad(0x21b))/0xb);if(_0x5c97cf===_0x16fe39)break;else _0x4d1c48['push'](_0x4d1c48['shift']());}catch(_0x13a7c2){_0x4d1c48['push'](_0x4d1c48['shift']());}}}(a139_0x228a,0x92039));import{randomBytes,randomUUID}from'node:crypto';import{lstat,readFile}from'node:fs/promises';function a139_0xf213(_0x17262f,_0x1a638f){_0x17262f=_0x17262f-0x1d1;const _0x228a3a=a139_0x228a();let _0xf213ba=_0x228a3a[_0x17262f];return _0xf213ba;}import{acquireLock,assertImportContract,assertImportPaths,canonical,sameImportValue,resolveImportOutputPath,saveImportJson}from'./runner.js';const validId=_0x200bee=>typeof _0x200bee===a139_0x339614(0x1d9)&&Number['isSafeInteger'](_0x200bee)&&_0x200bee>0x0;export async function runAutoIdExcelImport(_0x779114){const _0x2848ce=a139_0x339614,_0x5e4227={..._0x779114,'checkpoint':await resolveImportOutputPath(_0x779114[_0x2848ce(0x1f7)]),'report':await resolveImportOutputPath(_0x779114['report'])},{manifest:_0x107182,contract:_0x39492f,api:_0x22ebd3}=_0x5e4227;assertImportContract(_0x39492f,_0x5e4227[_0x2848ce(0x216)],_0x5e4227[_0x2848ce(0x202)]);if(_0x39492f[_0x2848ce(0x1fa)]!==0x2||!_0x22ebd3['readTask'])throw Error(_0x2848ce(0x204));if(_0x107182['errors'][_0x2848ce(0x1f2)])throw Error(_0x2848ce(0x203));if(!_0x107182[_0x2848ce(0x229)][_0x2848ce(0x1f2)])throw Error('Excel\x20contains\x20no\x20valid\x20data\x20rows.');if(!Number[_0x2848ce(0x1db)](_0x5e4227[_0x2848ce(0x211)])||_0x5e4227[_0x2848ce(0x211)]<0x1||_0x5e4227[_0x2848ce(0x211)]>_0x39492f[_0x2848ce(0x20e)])throw Error('Invalid\x20import\x20batch\x20size.');assertImportPaths(_0x5e4227['checkpoint'],_0x5e4227['report']);if(_0x107182[_0x2848ce(0x229)]['some'](_0x2dff5a=>Object['hasOwn'](_0x2dff5a[_0x2848ce(0x1ed)],'id')))throw Error('Auto-ID\x20import\x20items\x20cannot\x20contain\x20a\x20primary\x20key.');const _0x444986=(_0x4767bf,_0x32cdb2)=>Buffer[_0x2848ce(0x1fc)](JSON[_0x2848ce(0x21e)]({'schemaFingerprint':_0x39492f[_0x2848ce(0x20f)],'taskId':_0x32cdb2,'items':_0x4767bf['map'](_0x190574=>_0x107182['rows'][_0x190574][_0x2848ce(0x1ed)])}),_0x2848ce(0x1f6)),_0x24f1b3=[];let _0xd61f62=[];for(let _0x5386e5=0x0;_0x5386e5<_0x107182[_0x2848ce(0x229)][_0x2848ce(0x1f2)];_0x5386e5++){if(_0x444986([_0x5386e5],0x2**0x34)>_0x39492f['maxBatchBytes'])throw Error(_0x2848ce(0x223)+_0x107182[_0x2848ce(0x229)][_0x5386e5][_0x2848ce(0x1f8)]+'\x20exceeds\x20the\x20import\x20request\x20size\x20limit.');_0xd61f62[_0x2848ce(0x1f2)]&&(_0xd61f62['length']===_0x5e4227[_0x2848ce(0x211)]||_0x444986([..._0xd61f62,_0x5386e5],0x2**0x34)>_0x39492f[_0x2848ce(0x210)])&&(_0x24f1b3[_0x2848ce(0x1e0)](_0xd61f62),_0xd61f62=[]),_0xd61f62[_0x2848ce(0x1e0)](_0x5386e5);}if(_0xd61f62[_0x2848ce(0x1f2)])_0x24f1b3[_0x2848ce(0x1e0)](_0xd61f62);const _0x3493a2={'appCode':_0x5e4227[_0x2848ce(0x216)],'datasetCode':_0x5e4227[_0x2848ce(0x202)],'runtimeDomain':_0x5e4227['runtimeDomain'],'actorId':_0x39492f['actorId'],'fileHash':_0x107182['fileHash'],'mappingHash':_0x107182[_0x2848ce(0x227)],'schemaHash':_0x107182[_0x2848ce(0x224)],'remoteSchemaHash':_0x39492f[_0x2848ce(0x20f)],'batchSize':_0x5e4227['batchSize'],'maxBatchBytes':_0x39492f[_0x2848ce(0x210)],'sheet':_0x107182[_0x2848ce(0x217)],'strategy':_0x39492f[_0x2848ce(0x1f0)]},_0x55717f=await acquireLock(_0x5e4227[_0x2848ce(0x1f7)]);let _0x34f5f4;const _0x40f266=Date[_0x2848ce(0x205)]();let _0x2cce3d=0x0;const _0x38be23=[],_0x365066=_0x307cfd=>_0x34f5f4?.[_0x2848ce(0x219)][_0x2848ce(0x1e1)](_0x1e73ae=>_0x1e73ae['status']===_0x307cfd)[_0x2848ce(0x1fb)]((_0x152b6a,_0x147ca8)=>_0x152b6a+_0x147ca8[_0x2848ce(0x1f9)][_0x2848ce(0x1f2)],0x0)??0x0,_0x5de5a4=()=>({'importId':_0x34f5f4?.[_0x2848ce(0x1f3)],'sourceRows':_0x107182['rows'][_0x2848ce(0x1f2)],'emptyRows':_0x107182['emptyRows'][_0x2848ce(0x1f2)],'succeeded':_0x365066(_0x2848ce(0x1de)),'unknown':_0x365066(_0x2848ce(0x1da)),'conflicts':_0x365066(_0x2848ce(0x208)),'notAttempted':_0x365066(_0x2848ce(0x1dd)),'batches':_0x2cce3d,'batchResults':_0x38be23,'elapsedMs':Date['now']()-_0x40f266,'checkpoint':_0x5e4227[_0x2848ce(0x1f7)],'report':_0x5e4227['report'],'warnings':_0x107182['warnings']});try{if(_0x5e4227[_0x2848ce(0x1ee)]){try{_0x34f5f4=JSON[_0x2848ce(0x21f)](await readFile(_0x5e4227['checkpoint'],'utf8'));}catch{throw Error(_0x2848ce(0x20b));}if(!_0x34f5f4||_0x34f5f4[_0x2848ce(0x1dc)]!==0x2||typeof _0x34f5f4['importId']!==_0x2848ce(0x201)||!_0x34f5f4[_0x2848ce(0x1f3)]||canonical(_0x34f5f4['binding'])!==canonical(_0x3493a2)||!Array[_0x2848ce(0x207)](_0x34f5f4['batches'])||_0x34f5f4[_0x2848ce(0x219)][_0x2848ce(0x1f2)]!==_0x24f1b3[_0x2848ce(0x1f2)]||new Set(_0x34f5f4[_0x2848ce(0x219)][_0x2848ce(0x1ec)](_0x48409b=>_0x48409b[_0x2848ce(0x1d5)]))[_0x2848ce(0x1d6)]!==_0x24f1b3[_0x2848ce(0x1f2)]||_0x34f5f4[_0x2848ce(0x219)][_0x2848ce(0x1e9)]((_0x56b8c0,_0x3ab0d8)=>!validId(_0x56b8c0[_0x2848ce(0x1d5)])||_0x56b8c0[_0x2848ce(0x1d5)]>0x2**0x34||canonical(_0x56b8c0['rowIndexes'])!==canonical(_0x24f1b3[_0x3ab0d8])||![_0x2848ce(0x1dd),_0x2848ce(0x1da),_0x2848ce(0x1de),_0x2848ce(0x208)][_0x2848ce(0x1d7)](_0x56b8c0[_0x2848ce(0x1fe)])||!Array[_0x2848ce(0x207)](_0x56b8c0['ids'])||_0x56b8c0['ids']['some'](_0x1e4b52=>!validId(_0x1e4b52))||new Set(_0x56b8c0[_0x2848ce(0x1e8)])['size']!==_0x56b8c0[_0x2848ce(0x1e8)]['length']||_0x56b8c0[_0x2848ce(0x1e8)][_0x2848ce(0x1f2)]!==0x0&&_0x56b8c0[_0x2848ce(0x1e8)][_0x2848ce(0x1f2)]!==_0x56b8c0[_0x2848ce(0x1f9)][_0x2848ce(0x1f2)]||_0x56b8c0[_0x2848ce(0x1fe)]===_0x2848ce(0x1de)&&_0x56b8c0[_0x2848ce(0x1e8)][_0x2848ce(0x1f2)]!==_0x56b8c0[_0x2848ce(0x1f9)][_0x2848ce(0x1f2)]||_0x56b8c0['status']===_0x2848ce(0x1dd)&&_0x56b8c0[_0x2848ce(0x1e8)][_0x2848ce(0x1f2)]!==0x0))throw Error(_0x2848ce(0x1d1));const _0x4c56f4=_0x34f5f4['batches']['flatMap'](_0x4da31b=>_0x4da31b[_0x2848ce(0x1e8)]);if(new Set(_0x4c56f4)[_0x2848ce(0x1d6)]!==_0x4c56f4[_0x2848ce(0x1f2)])throw Error('Import\x20checkpoint\x20contains\x20duplicate\x20generated\x20IDs.');}else{try{await lstat(_0x5e4227[_0x2848ce(0x1f7)]);throw Error(_0x2848ce(0x1f1));}catch(_0x188b42){if(_0x188b42[_0x2848ce(0x215)]!==_0x2848ce(0x226))throw _0x188b42;}const _0x2e0b22=new Set();_0x34f5f4={'version':0x2,'importId':randomUUID(),'binding':_0x3493a2,'batches':_0x24f1b3['map'](_0xd2ff2b=>{const _0x1fce19=_0x2848ce;let _0xab0110;do{_0xab0110=Number(BigInt('0x'+randomBytes(0x7)['toString'](_0x1fce19(0x21a)))&(0x1n<<0x34n)-0x1n)+0x1;}while(_0x2e0b22[_0x1fce19(0x1e5)](_0xab0110));return _0x2e0b22[_0x1fce19(0x1e4)](_0xab0110),{'taskId':_0xab0110,'rowIndexes':_0xd2ff2b,'ids':[],'status':'unsent'};})},await saveImportJson(_0x5e4227['checkpoint'],_0x34f5f4);}await _0x5e4227[_0x2848ce(0x1fd)]?.();const _0x41822b=_0x34f5f4,_0x1b4c0f=async(_0x4b874b,_0xc91895)=>{const _0x4b1e13=_0x2848ce;_0x4b874b[_0x4b1e13(0x1fe)]=_0x4b1e13(0x208),await saveImportJson(_0x5e4227[_0x4b1e13(0x1f7)],_0x41822b);throw Error(_0xc91895);},_0x3bbad4=async _0x2dd3f0=>{const _0x3e69ea=_0x2848ce,_0x3b621a=await _0x22ebd3[_0x3e69ea(0x21c)](_0x2dd3f0['taskId']);if(!Array[_0x3e69ea(0x207)](_0x3b621a))throw Error(_0x3e69ea(0x21d));if(_0x2dd3f0[_0x3e69ea(0x1fe)]===_0x3e69ea(0x1dd)&&_0x3b621a['length'])return _0x1b4c0f(_0x2dd3f0,_0x3e69ea(0x1e6));if(!_0x3b621a[_0x3e69ea(0x1f2)]){if(_0x2dd3f0[_0x3e69ea(0x1fe)]===_0x3e69ea(0x1de)||_0x2dd3f0[_0x3e69ea(0x1e8)]['length'])return _0x1b4c0f(_0x2dd3f0,_0x3e69ea(0x1e2));return![];}if(_0x3b621a['length']!==_0x2dd3f0['rowIndexes'][_0x3e69ea(0x1f2)])return _0x1b4c0f(_0x2dd3f0,_0x3e69ea(0x228));const _0x155954=_0x3b621a[_0x3e69ea(0x1ec)](_0x121e88=>_0x121e88?.['id']);if(_0x155954['some'](_0x227803=>!validId(_0x227803)))return _0x1b4c0f(_0x2dd3f0,_0x3e69ea(0x1e7));const _0x194ecb=_0x155954;if(_0x194ecb[_0x3e69ea(0x1e9)](_0x5085ac=>!validId(_0x5085ac))||_0x194ecb['some']((_0x2cf08f,_0x360140)=>_0x360140>0x0&&_0x2cf08f<=_0x194ecb[_0x360140-0x1])||_0x2dd3f0[_0x3e69ea(0x1e8)][_0x3e69ea(0x1f2)]&&canonical(_0x194ecb)!==canonical(_0x2dd3f0[_0x3e69ea(0x1e8)]))return _0x1b4c0f(_0x2dd3f0,'Import\x20generated\x20ID\x20conflict.');const _0x477e36=new Set(_0x41822b[_0x3e69ea(0x219)][_0x3e69ea(0x1e1)](_0x3dd7ea=>_0x3dd7ea!==_0x2dd3f0)[_0x3e69ea(0x222)](_0x55d656=>_0x55d656[_0x3e69ea(0x1e8)]));if(_0x194ecb[_0x3e69ea(0x1e9)](_0x18fa7f=>_0x477e36['has'](_0x18fa7f)))return _0x1b4c0f(_0x2dd3f0,_0x3e69ea(0x218));for(let _0x26aba6=0x0;_0x26aba6<_0x3b621a[_0x3e69ea(0x1f2)];_0x26aba6++){const _0x48b77b=_0x107182[_0x3e69ea(0x229)][_0x2dd3f0[_0x3e69ea(0x1f9)][_0x26aba6]][_0x3e69ea(0x1ed)];if(Object[_0x3e69ea(0x220)](_0x48b77b)[_0x3e69ea(0x1e9)](_0x4b6d28=>!sameImportValue(_0x48b77b[_0x4b6d28],_0x3b621a[_0x26aba6][_0x4b6d28],_0x107182['imageFields']?.[_0x3e69ea(0x1d7)](_0x4b6d28)&&!_0x107182[_0x3e69ea(0x225)]?.[_0x3e69ea(0x1d7)](_0x4b6d28))))return _0x1b4c0f(_0x2dd3f0,_0x3e69ea(0x209)+_0x107182[_0x3e69ea(0x229)][_0x2dd3f0[_0x3e69ea(0x1f9)][_0x26aba6]][_0x3e69ea(0x1f8)]+'.');}return _0x2dd3f0[_0x3e69ea(0x1e8)]=_0x194ecb,_0x2dd3f0['status']=_0x3e69ea(0x1de),await saveImportJson(_0x5e4227[_0x3e69ea(0x1f7)],_0x41822b),!![];};if(_0x41822b[_0x2848ce(0x219)][_0x2848ce(0x1e9)](_0x3924d7=>_0x3924d7[_0x2848ce(0x1fe)]==='conflict'&&!(_0x5e4227[_0x2848ce(0x1ee)]&&_0x5e4227['reconcileImageConflicts']&&_0x107182['imageFields']?.[_0x2848ce(0x1f2)]&&_0x3924d7['ids'][_0x2848ce(0x1f2)]===_0x3924d7['rowIndexes']['length'])))throw Error(_0x2848ce(0x1d3));if(_0x5e4227[_0x2848ce(0x1ee)]){for(const _0x286bf1 of _0x41822b['batches'])await _0x3bbad4(_0x286bf1);}for(const _0x311ae7 of _0x41822b[_0x2848ce(0x219)]){if(_0x311ae7[_0x2848ce(0x1fe)]==='succeeded')continue;if(!_0x5e4227[_0x2848ce(0x1ee)])await _0x3bbad4(_0x311ae7);_0x311ae7[_0x2848ce(0x1fe)]='pending',await saveImportJson(_0x5e4227[_0x2848ce(0x1f7)],_0x41822b),_0x2cce3d++;const _0x18f400=_0x311ae7[_0x2848ce(0x1f9)][_0x2848ce(0x1ec)](_0x27b52e=>_0x107182[_0x2848ce(0x229)][_0x27b52e][_0x2848ce(0x1ed)]),_0x1affe1=Date[_0x2848ce(0x205)](),_0xd248a7={'batch':_0x2cce3d,'rowStart':_0x107182[_0x2848ce(0x229)][_0x311ae7['rowIndexes'][0x0]][_0x2848ce(0x1f8)],'rowEnd':_0x107182['rows'][_0x311ae7[_0x2848ce(0x1f9)]['at'](-0x1)]['rowNumber'],'count':_0x18f400[_0x2848ce(0x1f2)],'bytes':_0x444986(_0x311ae7['rowIndexes'],_0x311ae7[_0x2848ce(0x1d5)]),'elapsedMs':0x0,'status':_0x2848ce(0x1f5)};_0x38be23[_0x2848ce(0x1e0)](_0xd248a7);try{const _0x3423f0=await _0x22ebd3['write'](_0x18f400,_0x311ae7[_0x2848ce(0x1d5)]);if(!_0x3423f0||_0x3423f0[_0x2848ce(0x1e3)]!==_0x18f400[_0x2848ce(0x1f2)]||!Array['isArray'](_0x3423f0[_0x2848ce(0x1e8)])||_0x3423f0['ids']['length']!==_0x18f400[_0x2848ce(0x1f2)]||_0x3423f0[_0x2848ce(0x1e8)][_0x2848ce(0x1e9)](_0x51d73d=>!validId(_0x51d73d))||new Set(_0x3423f0[_0x2848ce(0x1e8)])['size']!==_0x3423f0['ids'][_0x2848ce(0x1f2)])throw Error(_0x2848ce(0x20c));_0x311ae7[_0x2848ce(0x1e8)]=_0x3423f0[_0x2848ce(0x1e8)],await saveImportJson(_0x5e4227['checkpoint'],_0x41822b);if(!await _0x3bbad4(_0x311ae7))throw Error(_0x2848ce(0x1ef));}catch(_0x99c343){if(_0x311ae7['status']==='conflict')throw _0x99c343;try{await _0x3bbad4(_0x311ae7);}catch(_0x55078f){if(_0x311ae7[_0x2848ce(0x1fe)]===_0x2848ce(0x208))throw _0x55078f;}if(_0x311ae7[_0x2848ce(0x1fe)]!==_0x2848ce(0x1de))throw Error(_0x2848ce(0x1d8));}finally{_0xd248a7[_0x2848ce(0x212)]=Date[_0x2848ce(0x205)]()-_0x1affe1,_0xd248a7[_0x2848ce(0x1fe)]=_0x311ae7[_0x2848ce(0x1fe)]===_0x2848ce(0x1de)?_0x2848ce(0x1de):_0x311ae7['status']==='conflict'?'conflict':_0x2848ce(0x1f5);}}const _0x2dad16={'status':_0x2848ce(0x1f4),..._0x5de5a4()};return await saveImportJson(_0x5e4227[_0x2848ce(0x1df)],_0x2dad16),_0x2dad16;}catch(_0xf51e2b){if(_0x34f5f4)await saveImportJson(_0x5e4227['report'],{'status':_0x2848ce(0x1d2),..._0x5de5a4(),'message':_0xf51e2b[_0x2848ce(0x1d4)]});throw _0xf51e2b;}finally{await _0x55717f();}}
|