@lovrabet/lovrabet-cli 2.3.12 → 2.3.13-beta.1
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/README.md +18 -1
- 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/metric/contract.d.ts +8 -0
- package/lib/commands/metric/contract.js +1 -0
- package/lib/commands/metric/definition.d.ts +35 -0
- package/lib/commands/metric/definition.js +1 -0
- package/lib/commands/metric/detail.d.ts +2 -0
- package/lib/commands/metric/detail.js +1 -0
- package/lib/commands/metric/exec.d.ts +2 -0
- package/lib/commands/metric/exec.js +1 -0
- package/lib/commands/metric/index.d.ts +1 -0
- package/lib/commands/metric/index.js +1 -0
- package/lib/commands/metric/list.d.ts +2 -0
- package/lib/commands/metric/list.js +1 -0
- package/lib/commands/metric/shared.d.ts +17 -0
- package/lib/commands/metric/shared.js +1 -0
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.d.ts +4 -0
- 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 +5 -2
- package/skills/lovrabet/SKILL.md +12 -4
- package/skills/lovrabet/guides/app-resolution.md +2 -0
- package/skills/lovrabet/guides/dataset-and-data-workflow.md +2 -0
- package/skills/lovrabet/guides/development-intent-handoff.md +19 -3
- package/skills/lovrabet/guides/metric-consumption.md +134 -0
- package/skills/lovrabet/guides/sql-and-bff-workflow.md +2 -0
- package/skills/lovrabet/references/lovrabet-auth.md +4 -0
- package/skills/lovrabet/references/lovrabet-schedule-workflow.md +16 -0
- package/skills/lovrabet/references/lovrabet-skill-authoring.md +27 -0
- package/skills/lovrabet-report-generation/SKILL.md +28 -0
- package/skills/lovrabet-report-generation/references/business-skill-reuse.md +19 -0
- package/skills/lovrabet-report-generation/references/quality-checks.md +16 -0
- package/skills/lovrabet-report-generation/references/report-workflow.md +42 -0
- package/skills/lovrabet-report-generation/templates/report-outline.md +10 -0
- package/skills/lovrabet.manifest.json +4 -3
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3816a4,_0x5f4014){const _0x374be9=a126_0xc858,_0x4e5550=_0x3816a4();while(!![]){try{const _0x51660f=-parseInt(_0x374be9(0x18e))/0x1*(parseInt(_0x374be9(0x185))/0x2)+parseInt(_0x374be9(0x189))/0x3+-parseInt(_0x374be9(0x17e))/0x4+parseInt(_0x374be9(0x182))/0x5*(parseInt(_0x374be9(0x18c))/0x6)+parseInt(_0x374be9(0x183))/0x7+parseInt(_0x374be9(0x17c))/0x8*(-parseInt(_0x374be9(0x18d))/0x9)+-parseInt(_0x374be9(0x18b))/0xa;if(_0x51660f===_0x5f4014)break;else _0x4e5550['push'](_0x4e5550['shift']());}catch(_0x203334){_0x4e5550['push'](_0x4e5550['shift']());}}}(a126_0x2e22,0xca011));import{createHelpGenerators}from'@lovrabet/cli-framework';function a126_0xc858(_0x381195,_0x5437b3){_0x381195=_0x381195-0x17c;const _0x2e22e2=a126_0x2e22();let _0xc85890=_0x2e22e2[_0x381195];return _0xc85890;}import{buildAllFlags}from'../framework/build-all-flags.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{getDynamicServiceDefinitions,getDynamicServiceEntry,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';function createGenerators(){const _0x1ea249=a126_0xc858;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries())[_0x1ea249(0x18a)](_0x108cb5=>_0x108cb5[_0x1ea249(0x186)]!=='service'),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x1ea249(0x184)+PRODUCT_CONFIG['newConfigFileName']+_0x1ea249(0x180)});}export function generateCommandHelp(_0x1801ad){const _0x233943=a126_0xc858;return createGenerators()[_0x233943(0x188)](_0x1801ad);}export function generateServiceHelp(_0x3fa517){return createGenerators()['generateServiceHelp'](_0x3fa517);}export function generateFullHelp(){const _0x53e5f8=a126_0xc858;return createGenerators()[_0x53e5f8(0x17d)]();}function getAnyServiceEntry(_0x5563e2){const _0x5a0c2b=getServiceEntry(_0x5563e2);if(_0x5a0c2b)return _0x5a0c2b;try{return getDynamicServiceEntry(_0x5563e2);}catch{return undefined;}}function getAnyServiceDefinitions(_0x4b888d){const _0x4aafd6=a126_0xc858,_0x82877a=serviceGroups[_0x4aafd6(0x17f)](_0x4b888d);if(_0x82877a)return _0x82877a;try{return getDynamicServiceDefinitions(_0x4b888d);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x38f215=a126_0xc858,_0x2e43d5=new Set(serviceRegistry[_0x38f215(0x181)](_0x46c811=>_0x46c811[_0x38f215(0x186)]));try{return listDynamicServiceEntries()['filter'](_0x3da8ae=>!_0x2e43d5[_0x38f215(0x187)](_0x3da8ae['service']));}catch{return[];}}function a126_0x2e22(){const _0xb99abe=['11536281mqDfpb','314EHeVco','8CIKfGb','generateFullHelp','2024688qDQaFI','get','\x20or\x20--appcode).','map','90645AxGcjs','9906827nafqqC','Requires\x20appcode\x20(set\x20via\x20','1600dQaakK','service','has','generateCommandHelp','2273193lTtdYq','filter','4122710pzjleR','366SfIzea'];a126_0x2e22=function(){return _0xb99abe;};return a126_0x2e22();}
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x46d20e,_0x15cba3){var _0x1315ea=a127_0x44a2,_0xd771cf=_0x46d20e();while(!![]){try{var _0x2aff3a=parseInt(_0x1315ea(0x1b9))/0x1*(-parseInt(_0x1315ea(0x1b7))/0x2)+parseInt(_0x1315ea(0x1ba))/0x3*(-parseInt(_0x1315ea(0x1bc))/0x4)+parseInt(_0x1315ea(0x1bf))/0x5+-parseInt(_0x1315ea(0x1b8))/0x6+parseInt(_0x1315ea(0x1c0))/0x7+-parseInt(_0x1315ea(0x1bb))/0x8*(parseInt(_0x1315ea(0x1be))/0x9)+parseInt(_0x1315ea(0x1bd))/0xa*(parseInt(_0x1315ea(0x1c1))/0xb);if(_0x2aff3a===_0x15cba3)break;else _0xd771cf['push'](_0xd771cf['shift']());}catch(_0x552300){_0xd771cf['push'](_0xd771cf['shift']());}}}(a127_0x4760,0xd4873));function a127_0x44a2(_0x581bf0,_0x543c52){_0x581bf0=_0x581bf0-0x1b7;var _0x4760f7=a127_0x4760();var _0x44a20c=_0x4760f7[_0x581bf0];return _0x44a20c;}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a127_0x4760(){var _0x38e662=['4912740QquaFb','2unKTbP','3369909ZhlPPF','13281288FAENum','4FkfyEp','30147410EsmEZn','9aWvTzp','7347260yDtgZw','5978630uAoCyZ','11wzSAcQ','865514uihAdU'];a127_0x4760=function(){return _0x38e662;};return a127_0x4760();}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x56b722,_0x377420){const _0xd15ae4=a128_0x3e0d,_0x42a185=_0x56b722();while(!![]){try{const _0x1de205=-parseInt(_0xd15ae4(0x193))/0x1*(-parseInt(_0xd15ae4(0x19c))/0x2)+-parseInt(_0xd15ae4(0x19b))/0x3*(-parseInt(_0xd15ae4(0x192))/0x4)+parseInt(_0xd15ae4(0x1a0))/0x5*(-parseInt(_0xd15ae4(0x19e))/0x6)+parseInt(_0xd15ae4(0x198))/0x7+-parseInt(_0xd15ae4(0x19f))/0x8+-parseInt(_0xd15ae4(0x196))/0x9*(-parseInt(_0xd15ae4(0x19a))/0xa)+-parseInt(_0xd15ae4(0x194))/0xb;if(_0x1de205===_0x377420)break;else _0x42a185['push'](_0x42a185['shift']());}catch(_0x45f99a){_0x42a185['push'](_0x42a185['shift']());}}}(a128_0x4b9f,0x59fa0));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a128_0x3e0d(_0x1ff740,_0x3a7f7e){_0x1ff740=_0x1ff740-0x192;const _0x4b9f7e=a128_0x4b9f();let _0x3e0d81=_0x4b9f7e[_0x1ff740];return _0x3e0d81;}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x19d94e,_0x53a80e){const _0x3808ce=a128_0x3e0d,_0x1b601a=_0x19d94e['_notice'],{_notice:_0x2bd0c2,..._0x586a2a}=_0x19d94e;void _0x2bd0c2,baseFormatOutput(_0x586a2a,_0x53a80e),_0x53a80e[_0x3808ce(0x199)]===_0x3808ce(0x197)&&printPrettyNotice(_0x1b601a);}function a128_0x4b9f(){const _0x1c078=['pretty','5055085fsDNxw','format','20ZFqaah','141gdGvKs','2WtIWRT','url','1400646BUlOEX','31368aXFlyj','5JFZiIt','update','59972clZbri','721639hwScNS','18465711XPGDXh','error','612639JpLKiX'];a128_0x4b9f=function(){return _0x1c078;};return a128_0x4b9f();}function printPrettyNotice(_0x10b5c2){const _0x166d51=a128_0x3e0d;if(!_0x10b5c2?.[_0x166d51(0x1a1)])return;console[_0x166d51(0x195)](_0x10b5c2['update']['message']+'\x20('+_0x10b5c2[_0x166d51(0x1a1)][_0x166d51(0x19d)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a129_0x613b(_0x5afdfc,_0x1a0764){_0x5afdfc=_0x5afdfc-0x11c;const _0x2e56d3=a129_0x2e56();let _0x613b61=_0x2e56d3[_0x5afdfc];return _0x613b61;}function a129_0x2e56(){const _0x22734b=['742458EfJezC','get','number','type','version','toUpperCase','24dnCMbN','63IaEqXi','586384xMzTRX','non-interactive','original','sticky','indexOf','has','toLowerCase','set','dryRun','yes','push','format','478430jNnrmp','corrected','slice','keys','9ivOPxj','appcode','add','name','28rWNgID','app','227555ZGFUyZ','8023301HXMJYL','dry-run','string','301772UBRics','alias','nonInteractive','replace','entries','216757MasafB'];a129_0x2e56=function(){return _0x22734b;};return a129_0x2e56();}(function(_0x22eaf0,_0x37e390){const _0x578ad2=a129_0x613b,_0x47a06b=_0x22eaf0();while(!![]){try{const _0x5df165=parseInt(_0x578ad2(0x121))/0x1+parseInt(_0x578ad2(0x122))/0x2+parseInt(_0x578ad2(0x13a))/0x3*(parseInt(_0x578ad2(0x11c))/0x4)+parseInt(_0x578ad2(0x140))/0x5*(parseInt(_0x578ad2(0x128))/0x6)+parseInt(_0x578ad2(0x13e))/0x7*(parseInt(_0x578ad2(0x12a))/0x8)+-parseInt(_0x578ad2(0x129))/0x9*(parseInt(_0x578ad2(0x136))/0xa)+-parseInt(_0x578ad2(0x141))/0xb;if(_0x5df165===_0x37e390)break;else _0x47a06b['push'](_0x47a06b['shift']());}catch(_0x64d1f4){_0x47a06b['push'](_0x47a06b['shift']());}}}(a129_0x2e56,0x36feb));export function toKebab(_0x4e3815){const _0x52b825=a129_0x613b;return _0x4e3815[_0x52b825(0x11f)](/_/g,'-')[_0x52b825(0x11f)](/-([A-Z]+)/g,(_0x251a9f,_0x44c6ac)=>'-'+_0x44c6ac[_0x52b825(0x130)]())['replace'](/([a-z0-9])([A-Z])/g,(_0x5c9e16,_0x31542d,_0x5b02d0)=>_0x31542d+'-'+_0x5b02d0)['toLowerCase']();}function buildKnownFlags(_0x4df89a){const _0x196211=a129_0x613b,_0x59df9b=new Set();for(const _0x59d51 of _0x4df89a){_0x59df9b[_0x196211(0x13c)](_0x59d51[_0x196211(0x13d)]),_0x59df9b[_0x196211(0x13c)](toCamelCase(_0x59d51[_0x196211(0x13d)]));}for(const _0x5aec9d of[_0x196211(0x142),_0x196211(0x132),_0x196211(0x133),_0x196211(0x135)]){_0x59df9b[_0x196211(0x13c)](_0x5aec9d);}for(const _0x462567 of['help','env',_0x196211(0x13b),_0x196211(0x13f),_0x196211(0x11e),_0x196211(0x12b),'ci','global',_0x196211(0x126)]){_0x59df9b[_0x196211(0x13c)](_0x462567);}return _0x59df9b;}function buildFlagTypeMap(_0x52d610){const _0x290d77=a129_0x613b,_0x7f8f91=new Map();for(const _0x4226af of _0x52d610){_0x7f8f91[_0x290d77(0x131)](_0x4226af[_0x290d77(0x13d)],_0x4226af[_0x290d77(0x125)]),_0x7f8f91[_0x290d77(0x131)](toCamelCase(_0x4226af[_0x290d77(0x13d)]),_0x4226af['type']);}return _0x7f8f91;}function toCamelCase(_0x104395){const _0x12b36d=a129_0x613b;return _0x104395[_0x12b36d(0x11f)](/-([a-z])/g,(_0x2f47c6,_0x553cae)=>_0x553cae[_0x12b36d(0x127)]());}function aliasHandler(_0x4ddcf6,_0x1ce711){const _0x223d20=a129_0x613b,_0xe8befd=[];for(const _0x232a90 of Object[_0x223d20(0x139)](_0x4ddcf6)){if(_0x1ce711[_0x223d20(0x12f)](_0x232a90))continue;const _0x18cab6=toKebab(_0x232a90);_0x18cab6!==_0x232a90&&_0x1ce711[_0x223d20(0x12f)](_0x18cab6)&&_0xe8befd[_0x223d20(0x134)]({'original':_0x232a90,'corrected':_0x18cab6,'handler':_0x223d20(0x11d)});}return _0xe8befd;}function stickyHandler(_0x575300,_0xde70c4,_0x8bbddb){const _0x1c8d20=a129_0x613b,_0x5ef188=[];for(const [_0x35af71,_0x1252d9]of Object[_0x1c8d20(0x120)](_0x575300)){if(_0x1252d9!==!![])continue;for(let _0xe4a83c=_0x35af71['length']-0x1;_0xe4a83c>0x0;_0xe4a83c--){const _0x85664f=_0x35af71['slice'](0x0,_0xe4a83c),_0x36bcba=_0x35af71['slice'](_0xe4a83c),_0x5186db=toKebab(_0x85664f),_0x80a68a=toCamelCase(_0x85664f),_0x4dfaeb=_0xde70c4[_0x1c8d20(0x12f)](_0x85664f)?_0x85664f:_0xde70c4['has'](_0x5186db)?_0x5186db:_0xde70c4['has'](_0x80a68a)?_0x80a68a:null;if(!_0x4dfaeb)continue;const _0x8089c3=_0x8bbddb[_0x1c8d20(0x123)](_0x4dfaeb)??'string';let _0x5c7a0e;if(_0x8089c3===_0x1c8d20(0x124)){const _0x555921=Number(_0x36bcba);if(isNaN(_0x555921)||_0x36bcba==='')continue;_0x5c7a0e=_0x555921;}else{if(_0x8089c3==='boolean')continue;else{if(_0x36bcba==='')continue;_0x5c7a0e=_0x36bcba;}}_0x5ef188[_0x1c8d20(0x134)]({'original':_0x35af71,'corrected':_0x4dfaeb+'='+_0x5c7a0e,'handler':_0x1c8d20(0x12d)});break;}}return _0x5ef188;}export function correctFlags(_0x18fc98,_0x1ad40d){const _0x23a381=a129_0x613b,_0x3e09a8=buildKnownFlags(_0x1ad40d),_0x57d74a=buildFlagTypeMap(_0x1ad40d),_0x1967b1=aliasHandler(_0x18fc98,_0x3e09a8),_0x54a21d=stickyHandler(_0x18fc98,_0x3e09a8,_0x57d74a),_0x2febd0=[..._0x1967b1,..._0x54a21d];if(_0x2febd0['length']===0x0)return{'flags':_0x18fc98,'corrections':[]};const _0x2747a4={..._0x18fc98},_0x3c6960=new Set();for(const _0x134083 of _0x1967b1){_0x2747a4[_0x134083['corrected']]=_0x18fc98[_0x134083[_0x23a381(0x12c)]],_0x3c6960[_0x23a381(0x13c)](_0x134083[_0x23a381(0x12c)]);}for(const _0x199d29 of _0x54a21d){const _0x26dca9=_0x199d29['corrected'][_0x23a381(0x12e)]('='),_0x330219=_0x199d29[_0x23a381(0x137)][_0x23a381(0x138)](0x0,_0x26dca9),_0x466293=_0x199d29[_0x23a381(0x137)][_0x23a381(0x138)](_0x26dca9+0x1),_0x4ea764=_0x57d74a[_0x23a381(0x123)](_0x330219)??_0x23a381(0x143);_0x4ea764===_0x23a381(0x124)?_0x2747a4[_0x330219]=Number(_0x466293):_0x2747a4[_0x330219]=_0x466293,_0x3c6960[_0x23a381(0x13c)](_0x199d29['original']);}for(const _0x1c2bc8 of _0x3c6960){delete _0x2747a4[_0x1c2bc8];}return{'flags':_0x2747a4,'corrections':_0x2febd0};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a130_0x1d5a45=a130_0xba98;(function(_0x486324,_0x43dfea){const _0x52e686=a130_0xba98,_0x1dc840=_0x486324();while(!![]){try{const _0x52016e=parseInt(_0x52e686(0x13a))/0x1*(parseInt(_0x52e686(0x145))/0x2)+parseInt(_0x52e686(0x141))/0x3+-parseInt(_0x52e686(0x133))/0x4*(parseInt(_0x52e686(0x151))/0x5)+-parseInt(_0x52e686(0x13e))/0x6+-parseInt(_0x52e686(0x136))/0x7*(parseInt(_0x52e686(0x14b))/0x8)+-parseInt(_0x52e686(0x142))/0x9*(-parseInt(_0x52e686(0x140))/0xa)+parseInt(_0x52e686(0x150))/0xb*(parseInt(_0x52e686(0x132))/0xc);if(_0x52016e===_0x43dfea)break;else _0x1dc840['push'](_0x1dc840['shift']());}catch(_0x5c5568){_0x1dc840['push'](_0x1dc840['shift']());}}}(a130_0x4a64,0xb30a4));function a130_0x4a64(){const _0x3dd20b=['call','rateLimited','1253VCgGGB','retryAfterSeconds','entries','retryAfter','1lcRTux','status','\x20seconds\x20before\x20retrying.','isArray','1113750eLCKbB','test','220cdlHCp','2068293gciuAq','38844xasyLy','message','Retry\x20after\x20a\x20short\x20delay.','1597042BvHREm','retry-after','Wait\x20','object','Retry-After','\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.','7312EBKOQW','EXCEED_MAX_QPS_LIMIT','errorCode','IP_RATE_LIMIT_EXCEEDED','string','7036447aNQpSX','10DyBHVX','toUpperCase','has','number','12IWpJxO','2280004wjWBwB'];a130_0x4a64=function(){return _0x3dd20b;};return a130_0x4a64();}import{CliErrors}from'../errors.js';const RATE_LIMIT_ERROR_CODES=new Set([a130_0x1d5a45(0x14c),'MAX_QPS_LIMIT',a130_0x1d5a45(0x14e)]);function nonEmptyString(_0xe9856){const _0x1bfcfd=a130_0x1d5a45;if(typeof _0xe9856!==_0x1bfcfd(0x14f))return undefined;const _0x381958=_0xe9856['trim']();return _0x381958||undefined;}function buildRetryHint(_0x1a6776){const _0x290cea=a130_0x1d5a45,_0x9247dc=nonEmptyString(_0x1a6776),_0xeb7299=_0x9247dc?/^\d+$/['test'](_0x9247dc)?_0x290cea(0x147)+_0x9247dc+_0x290cea(0x13c):'Retry\x20after\x20'+_0x9247dc+'.':_0x290cea(0x144);return _0xeb7299+_0x290cea(0x14a);}function a130_0xba98(_0xfa1fe9,_0x4c044d){_0xfa1fe9=_0xfa1fe9-0x131;const _0x4a64dd=a130_0x4a64();let _0xba9841=_0x4a64dd[_0xfa1fe9];return _0xba9841;}export function createRateLimitError(_0x279d77){const _0x1711c2=a130_0x1d5a45,_0xc1d24d=nonEmptyString(_0x279d77[_0x1711c2(0x14d)])?.[_0x1711c2(0x152)](),_0x4ccb9c=Number(_0x279d77[_0x1711c2(0x13b)])===0x1ad||_0xc1d24d!==undefined&&RATE_LIMIT_ERROR_CODES[_0x1711c2(0x153)](_0xc1d24d);if(!_0x4ccb9c)return undefined;return CliErrors[_0x1711c2(0x135)](nonEmptyString(_0x279d77[_0x1711c2(0x143)])??'Request\x20rate\x20limit\x20exceeded.',buildRetryHint(_0x279d77[_0x1711c2(0x139)]));}export function readRetryAfter(_0x215348){const _0x5bc113=a130_0x1d5a45;if(!_0x215348||typeof _0x215348!=='object')return undefined;const _0x504d1a=_0x215348['get'];if(typeof _0x504d1a==='function'){const _0x5645b9=_0x504d1a[_0x5bc113(0x134)](_0x215348,_0x5bc113(0x149))??_0x504d1a['call'](_0x215348,_0x5bc113(0x146));return nonEmptyString(_0x5645b9);}for(const [_0x53f941,_0x1c04a6]of Object[_0x5bc113(0x138)](_0x215348)){if(_0x53f941['toLowerCase']()==='retry-after')return nonEmptyString(_0x1c04a6)??(typeof _0x1c04a6===_0x5bc113(0x131)?String(_0x1c04a6):undefined);}return undefined;}export function readRetryAfterSeconds(_0x577f36){const _0x4c978c=a130_0x1d5a45;if(!_0x577f36||typeof _0x577f36!==_0x4c978c(0x148)||Array[_0x4c978c(0x13d)](_0x577f36))return undefined;const _0x1e3c98=_0x577f36[_0x4c978c(0x137)];if(typeof _0x1e3c98===_0x4c978c(0x131))return Number['isInteger'](_0x1e3c98)&&_0x1e3c98>=0x0?String(_0x1e3c98):undefined;const _0x473076=nonEmptyString(_0x1e3c98);return _0x473076&&/^\d+$/[_0x4c978c(0x13f)](_0x473076)?_0x473076:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a131_0x23d1(){const _0x2f91ce=['186FtqWnF','5894987Szxbvv','validation','Example:\x20','72812FRBsUp','820602HTzDHO','25887tFDNGN','Run\x20`','\x20for\x20`','3586955bZmQfe','page-size','Unknown\x20flag\x20--','current-page','\x20--help`\x20to\x20see\x20accepted\x20flags.','\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20','has','38qBcdrb','56DcHQdq','select','name','stringify','command','no-','meowKey','order-by','\x20data\x20filter`.','where','data','currentpage','1450206UrKNZg','asc','add','page','pagesize','orderby','15660920BEuESW','flags','\x20is\x20not\x20a\x20CLI\x20flag\x20for\x20`','service'];a131_0x23d1=function(){return _0x2f91ce;};return a131_0x23d1();}const a131_0x10feb8=a131_0x58a6;(function(_0x312d6b,_0x1daf53){const _0x13ac86=a131_0x58a6,_0x3ab3e2=_0x312d6b();while(!![]){try{const _0x470df7=-parseInt(_0x13ac86(0x177))/0x1*(-parseInt(_0x13ac86(0x181))/0x2)+parseInt(_0x13ac86(0x171))/0x3*(parseInt(_0x13ac86(0x175))/0x4)+parseInt(_0x13ac86(0x17a))/0x5+parseInt(_0x13ac86(0x176))/0x6+parseInt(_0x13ac86(0x172))/0x7+-parseInt(_0x13ac86(0x182))/0x8*(parseInt(_0x13ac86(0x167))/0x9)+-parseInt(_0x13ac86(0x16d))/0xa;if(_0x470df7===_0x1daf53)break;else _0x3ab3e2['push'](_0x3ab3e2['shift']());}catch(_0x3e57ec){_0x3ab3e2['push'](_0x3ab3e2['shift']());}}}(a131_0x23d1,0x98074));import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a131_0x58a6(_0x3d0d16,_0x387947){_0x3d0d16=_0x3d0d16-0x162;const _0x23d11e=a131_0x23d1();let _0x58a6c0=_0x23d11e[_0x3d0d16];return _0x58a6c0;}import{toKebab}from'../framework/preparse.js';const FILTER_BODY_FIELDS=new Set([a131_0x10feb8(0x164),a131_0x10feb8(0x183),a131_0x10feb8(0x162),a131_0x10feb8(0x16c),a131_0x10feb8(0x17d),a131_0x10feb8(0x166),a131_0x10feb8(0x16a),a131_0x10feb8(0x17b),a131_0x10feb8(0x16b)]);export function assertKnownCommandFlags(_0x2c91e3,_0x24325c){const _0x443bbf=a131_0x10feb8,_0x4f6dbf=new Set(['version']);for(const _0x28780c of GLOBAL_FLAGS){_0x4f6dbf['add'](_0x28780c[_0x443bbf(0x184)]),_0x4f6dbf['add'](toKebab(_0x28780c[_0x443bbf(0x188)]));}for(const _0x383950 of _0x2c91e3[_0x443bbf(0x16e)]??[]){_0x4f6dbf[_0x443bbf(0x169)](_0x383950[_0x443bbf(0x184)]);}for(const [_0x5bba2c,_0x4c69e1]of Object['entries'](_0x24325c)){const _0x470c5e=toKebab(_0x5bba2c);if(_0x4f6dbf['has'](_0x470c5e))continue;if(_0x4c69e1===![]&&_0x4f6dbf[_0x443bbf(0x180)](_0x443bbf(0x187)+_0x470c5e))continue;if(_0x2c91e3[_0x443bbf(0x170)]===_0x443bbf(0x165)&&_0x2c91e3[_0x443bbf(0x186)]==='filter'&&FILTER_BODY_FIELDS[_0x443bbf(0x180)](_0x470c5e))throw CliErrors[_0x443bbf(0x173)]('--'+_0x470c5e+_0x443bbf(0x16f)+CLI_BIN_NAME+_0x443bbf(0x163),'Put\x20where,\x20select,\x20orderBy,\x20currentPage,\x20and\x20pageSize\x20inside\x20one\x20--params\x20JSON\x20object.\x20'+(_0x443bbf(0x174)+CLI_BIN_NAME+_0x443bbf(0x17f))+('\x27'+JSON[_0x443bbf(0x185)]({'where':{'status':{'$eq':'active'}},'orderBy':[{'id':_0x443bbf(0x168)}],'currentPage':0x1,'pageSize':0x14})+'\x27'));throw CliErrors['validation'](_0x443bbf(0x17c)+_0x470c5e+_0x443bbf(0x179)+CLI_BIN_NAME+'\x20'+_0x2c91e3[_0x443bbf(0x170)]+'\x20'+_0x2c91e3['command']+'`.',_0x443bbf(0x178)+CLI_BIN_NAME+'\x20'+_0x2c91e3[_0x443bbf(0x170)]+'\x20'+_0x2c91e3[_0x443bbf(0x186)]+_0x443bbf(0x17e));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a132_0x43f7(){var _0xd88b05=['2162RQKyrl','12ijqEIn','921145npeQxi','1219467IZpIAA','708FJPRMB','1349047RsxIqV','291OaeQcq','80498LUWKzC','1049424IGKSpK','8qpQceo','2259ZYcXuX','13270jpmycZ'];a132_0x43f7=function(){return _0xd88b05;};return a132_0x43f7();}(function(_0x1c0e54,_0xd52ffd){var _0x3443c6=a132_0x4314,_0x1ae155=_0x1c0e54();while(!![]){try{var _0x26fc27=parseInt(_0x3443c6(0x18e))/0x1+parseInt(_0x3443c6(0x197))/0x2*(parseInt(_0x3443c6(0x191))/0x3)+-parseInt(_0x3443c6(0x193))/0x4+parseInt(_0x3443c6(0x18d))/0x5*(-parseInt(_0x3443c6(0x18c))/0x6)+parseInt(_0x3443c6(0x190))/0x7*(parseInt(_0x3443c6(0x194))/0x8)+-parseInt(_0x3443c6(0x195))/0x9*(-parseInt(_0x3443c6(0x196))/0xa)+parseInt(_0x3443c6(0x192))/0xb*(-parseInt(_0x3443c6(0x18f))/0xc);if(_0x26fc27===_0xd52ffd)break;else _0x1ae155['push'](_0x1ae155['shift']());}catch(_0x4836ed){_0x1ae155['push'](_0x1ae155['shift']());}}}(a132_0x43f7,0xc045a));function a132_0x4314(_0x5b23fa,_0x4e0a9d){_0x5b23fa=_0x5b23fa-0x18c;var _0x43f759=a132_0x43f7();var _0x4314b7=_0x43f759[_0x5b23fa];return _0x4314b7;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x101b2c,_0xe3aff1){const _0x1322d9=a133_0x30a7,_0x38e0fd=_0x101b2c();while(!![]){try{const _0xe5f239=parseInt(_0x1322d9(0xe3))/0x1*(parseInt(_0x1322d9(0xd1))/0x2)+-parseInt(_0x1322d9(0xd3))/0x3*(parseInt(_0x1322d9(0xdf))/0x4)+parseInt(_0x1322d9(0xef))/0x5*(parseInt(_0x1322d9(0xf0))/0x6)+-parseInt(_0x1322d9(0xe4))/0x7+-parseInt(_0x1322d9(0xdb))/0x8+-parseInt(_0x1322d9(0xeb))/0x9+parseInt(_0x1322d9(0xf4))/0xa;if(_0xe5f239===_0xe3aff1)break;else _0x38e0fd['push'](_0x38e0fd['shift']());}catch(_0x8a4991){_0x38e0fd['push'](_0x38e0fd['shift']());}}}(a133_0x1ee0,0x7e1d3));import{CLI_BIN_NAME}from'../constant/cli.js';import{isSensitiveFlagName}from'../utils/redaction.js';function a133_0x1ee0(){const _0x3c62b7=['\x20\x20\x20Continue?\x20[y/N]\x20','scheduled-at','params=','kind','title=','join','5526162nUXaqE','service','id=','name','5hzMGsG','4076124NwbNWJ','--yes','commandLabel','entries','12916380ZQBFyK','command','code=','length','schedule-id','2IvMRqB','⚠\x20\x20High-risk\x20operation:\x20','75693MMWFKQ','affectedRecords','push','name=','title','cron','schedule-id=','params','4616552RoYudR','description','code','channel','12GegmWf','\x20\x20\x20Affected:\x20','channel=','kind=','463214utOOuf','4556041adUKmr'];a133_0x1ee0=function(){return _0x3c62b7;};return a133_0x1ee0();}export function buildConfirmationLines(_0x32dffc,_0x3a9a82,_0x2969f7){const _0x3c40d9=a133_0x30a7,_0x197c03=buildConfirmationContext(_0x32dffc,_0x3a9a82,_0x2969f7),_0x332004=[_0x3c40d9(0xd2)+_0x197c03[_0x3c40d9(0xf2)]];return _0x197c03[_0x3c40d9(0xdc)]&&_0x332004[_0x3c40d9(0xd5)]('\x20\x20\x20'+_0x197c03[_0x3c40d9(0xdc)]),_0x197c03['affectedRecords']&&_0x332004['push'](_0x3c40d9(0xe0)+_0x197c03[_0x3c40d9(0xd4)]),_0x332004[_0x3c40d9(0xd5)](_0x3c40d9(0xe5)),_0x332004;}export function reconstructCommandArgv(_0x508f56,_0x2e72a1){const _0x180771=a133_0x30a7,_0x4c32f0=[CLI_BIN_NAME,_0x508f56[_0x180771(0xec)],_0x508f56[_0x180771(0xf5)]];for(const [_0x1ecdc4,_0x14db31]of Object[_0x180771(0xf3)](_0x2e72a1)){if(_0x14db31===!![])_0x4c32f0[_0x180771(0xd5)]('--'+_0x1ecdc4);else{if(isSensitiveFlagName(_0x1ecdc4)&&_0x14db31!==![]&&_0x14db31!==undefined&&_0x14db31!=='')_0x4c32f0['push']('--'+_0x1ecdc4+'\x20[REDACTED]');else _0x14db31!==![]&&_0x14db31!==undefined&&_0x14db31!==''&&_0x4c32f0[_0x180771(0xd5)]('--'+_0x1ecdc4+'\x20'+JSON['stringify'](_0x14db31));}}return _0x4c32f0[_0x180771(0xd5)](_0x180771(0xf1)),_0x4c32f0[_0x180771(0xea)]('\x20');}function buildConfirmationContext(_0x1acd54,_0x4c465c,_0x5d8a53){const _0x4f64ce=a133_0x30a7,_0x251b68=extractAffectedRecords(_0x5d8a53);return{'commandLabel':_0x4c465c,'description':_0x1acd54[_0x4f64ce(0xdc)],'affectedRecords':_0x251b68};}function a133_0x30a7(_0x349c7c,_0xe8be13){_0x349c7c=_0x349c7c-0xcf;const _0x1ee0c2=a133_0x1ee0();let _0x30a7a1=_0x1ee0c2[_0x349c7c];return _0x30a7a1;}function extractAffectedRecords(_0x13e324){const _0x5d377f=a133_0x30a7,_0x45bfa9=[];if(_0x13e324[_0x5d377f(0xdd)])_0x45bfa9[_0x5d377f(0xd5)](_0x5d377f(0xf6)+_0x13e324[_0x5d377f(0xdd)]);if(_0x13e324['id'])_0x45bfa9[_0x5d377f(0xd5)](_0x5d377f(0xed)+_0x13e324['id']);if(_0x13e324[_0x5d377f(0xd0)])_0x45bfa9[_0x5d377f(0xd5)](_0x5d377f(0xd9)+_0x13e324[_0x5d377f(0xd0)]);if(_0x13e324[_0x5d377f(0xee)])_0x45bfa9[_0x5d377f(0xd5)](_0x5d377f(0xd6)+_0x13e324['name']);if(_0x13e324[_0x5d377f(0xd7)])_0x45bfa9['push'](_0x5d377f(0xe9)+_0x13e324[_0x5d377f(0xd7)]);if(_0x13e324[_0x5d377f(0xe8)])_0x45bfa9[_0x5d377f(0xd5)](_0x5d377f(0xe2)+_0x13e324[_0x5d377f(0xe8)]);if(_0x13e324[_0x5d377f(0xd8)])_0x45bfa9[_0x5d377f(0xd5)]('cron='+_0x13e324[_0x5d377f(0xd8)]);if(_0x13e324[_0x5d377f(0xe6)])_0x45bfa9[_0x5d377f(0xd5)]('scheduled-at='+_0x13e324[_0x5d377f(0xe6)]);if(_0x13e324[_0x5d377f(0xde)])_0x45bfa9[_0x5d377f(0xd5)](_0x5d377f(0xe1)+_0x13e324[_0x5d377f(0xde)]);if(_0x13e324['params'])_0x45bfa9[_0x5d377f(0xd5)](_0x5d377f(0xe7)+_0x13e324[_0x5d377f(0xda)]);return _0x45bfa9[_0x5d377f(0xcf)]>0x0?_0x45bfa9['join'](',\x20'):undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x55b880,_0x3eee38){const _0x159ac1=a134_0x2f25,_0x106771=_0x55b880();while(!![]){try{const _0x188e46=parseInt(_0x159ac1(0x1e6))/0x1*(-parseInt(_0x159ac1(0x1f1))/0x2)+-parseInt(_0x159ac1(0x1eb))/0x3*(-parseInt(_0x159ac1(0x1f2))/0x4)+-parseInt(_0x159ac1(0x1ed))/0x5*(-parseInt(_0x159ac1(0x1e8))/0x6)+-parseInt(_0x159ac1(0x1ef))/0x7+parseInt(_0x159ac1(0x1e1))/0x8*(-parseInt(_0x159ac1(0x1e4))/0x9)+parseInt(_0x159ac1(0x1e5))/0xa+-parseInt(_0x159ac1(0x1e7))/0xb*(parseInt(_0x159ac1(0x1e2))/0xc);if(_0x188e46===_0x3eee38)break;else _0x106771['push'](_0x106771['shift']());}catch(_0x383ab5){_0x106771['push'](_0x106771['shift']());}}}(a134_0x3258,0x3e87d));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';function a134_0x2f25(_0x29fdb6,_0x33225d){_0x29fdb6=_0x29fdb6-0x1de;const _0x32581c=a134_0x3258();let _0x2f2539=_0x32581c[_0x29fdb6];return _0x2f2539;}import{createAccessError}from'../framework/access-error.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';export function mapUserFacingExecuteError(_0x203c5d){const _0x1f3234=a134_0x2f25;if(_0x203c5d instanceof LovrabetError){const _0x4b434c=userFacingLovrabetMessage(_0x203c5d),_0x3faac2=_0x203c5d,_0x5d9c6c=createRateLimitError({'status':_0x3faac2['status'],'errorCode':_0x3faac2[_0x1f3234(0x1e9)],'message':_0x4b434c,'retryAfter':readRetryAfter(_0x3faac2['response']?.[_0x1f3234(0x1ec)])??readRetryAfterSeconds(_0x3faac2[_0x1f3234(0x1df)])});return createAccessError(_0x3faac2[_0x1f3234(0x1df)],_0x3faac2[_0x1f3234(0x1e9)])??_0x5d9c6c??(Number(_0x3faac2['status'])===0x191?CliErrors[_0x1f3234(0x1de)]('Request\x20rejected\x20(HTTP\x20401).',_0x1f3234(0x1ee)):CliErrors[_0x1f3234(0x1f0)](_0x4b434c));}return _0x203c5d;}function userFacingLovrabetMessage(_0x2c8c54){const _0x2fc18d=a134_0x2f25,_0xe4f8f3=_0x2c8c54[_0x2fc18d(0x1e0)];if(_0xe4f8f3!==undefined&&_0xe4f8f3!==null){if(typeof _0xe4f8f3==='string'&&_0xe4f8f3[_0x2fc18d(0x1e3)]())return _0xe4f8f3[_0x2fc18d(0x1e3)]();try{return JSON['stringify'](_0xe4f8f3);}catch{}}return _0x2c8c54[_0x2fc18d(0x1ea)];}function a134_0x3258(){const _0x3e174f=['349944sEstNX','validation','330uYinsg','72tyfKrw','apiError','response','description','8OyfdPD','12KpLrob','trim','3433779pCciYZ','4795980xBTBDa','24tPLxIj','6028143utmbfk','766242PgfSOa','code','message','62817MPtbwr','headers','15Sgyroa','The\x20response\x20does\x20not\x20identify\x20whether\x20authentication\x20or\x20permission\x20checks\x20failed.'];a134_0x3258=function(){return _0x3e174f;};return a134_0x3258();}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x4b3f76,_0x2d4ba3){const _0x1853d0=a128_0x3278,_0x742c18=_0x4b3f76();while(!![]){try{const _0x589e6f=-parseInt(_0x1853d0(0x1d1))/0x1+-parseInt(_0x1853d0(0x1ec))/0x2+parseInt(_0x1853d0(0x1e4))/0x3*(parseInt(_0x1853d0(0x1e8))/0x4)+-parseInt(_0x1853d0(0x207))/0x5+parseInt(_0x1853d0(0x1dc))/0x6+parseInt(_0x1853d0(0x1dd))/0x7+parseInt(_0x1853d0(0x20f))/0x8*(parseInt(_0x1853d0(0x1d6))/0x9);if(_0x589e6f===_0x2d4ba3)break;else _0x742c18['push'](_0x742c18['shift']());}catch(_0x38bc27){_0x742c18['push'](_0x742c18['shift']());}}}(a128_0x1da0,0x9f8df));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';import{isNonInteractiveMode}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain,getRuntimeDomain,requireHarnessDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{assertKnownCommandFlags}from'../framework/raw-flags.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{assertCliVersionSupported,checkCliVersion}from'../utils/cli-version-check.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x4ce609){return void _0x4ce609,AUTH_MODE['ClientAk'];}function a128_0x3278(_0x178428,_0x570f73){_0x178428=_0x178428-0x1c8;const _0x1da014=a128_0x1da0();let _0x3278bb=_0x1da014[_0x178428];return _0x3278bb;}let sdkClientInitialized=![];export function createPipelineEnv(_0x5b0716,_0x573a19){const _0x5eb600=a128_0x3278;return{'rawFlags':_0x573a19,'appCode':_0x5b0716[_0x5eb600(0x1e0)],'appCodeSource':_0x5b0716[_0x5eb600(0x208)],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x573a19),'defaultFormat':_0x5b0716[_0x5eb600(0x1ef)],'defaultPageSize':_0x5b0716[_0x5eb600(0x1d5)],'defaultVerbose':_0x5b0716['verbose'],'riskLevel':_0x5b0716[_0x5eb600(0x211)],'nativeToolAvailable':_0x5b0716[_0x5eb600(0x1f7)],'accessKey':_0x5b0716[_0x5eb600(0x1d3)],'accessKeySource':_0x5b0716[_0x5eb600(0x1e2)],'env':_0x5b0716[_0x5eb600(0x1ed)],'mergedCli':{'defaultApp':_0x5b0716[_0x5eb600(0x1cc)],'currentApp':_0x5b0716[_0x5eb600(0x1cb)],'appCode':_0x5b0716[_0x5eb600(0x1e0)]}};}export function createLovrabetRunnerAdapter(_0x3cdc5c={}){const _0xfdcaa4=a128_0x3278,_0x7a322e={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0xfdcaa4(0x1db)](_0x200809=>PIPELINE_FLAG_NAMES[_0xfdcaa4(0x1f8)](_0x200809[_0xfdcaa4(0x205)]))['map'](({name:_0x3a297f,type:_0x300317,description:_0x46d392})=>({'name':_0x3a297f,'type':_0x300317,'description':_0x46d392})),'formatOutput':_0x3cdc5c[_0xfdcaa4(0x1f3)]??formatOutput,'getCommandLabel'(_0xc4029c){const _0x10fcd6=_0xfdcaa4;return CLI_BIN_NAME+'\x20'+_0xc4029c[_0x10fcd6(0x1ca)]+'\x20'+_0xc4029c[_0x10fcd6(0x1f9)];},'riskPolicy':{'onViolation'(_0x199f1b,{def:_0x22d1ac,env:_0x4bece2}){const _0x52daf4=_0xfdcaa4;if(shouldRouteWriteToNativeTool(_0x22d1ac,_0x4bece2))return;console[_0x52daf4(0x213)](_0x199f1b);},'createError'(_0x529fce,{def:_0x45637b,env:_0x1f4db6}){const _0xe3c11d=_0xfdcaa4;if(shouldRouteWriteToNativeTool(_0x45637b,_0x1f4db6))return CliErrors[_0xe3c11d(0x1f2)](CLI_BIN_NAME+'\x20'+_0x45637b[_0xe3c11d(0x1ca)]+'\x20'+_0x45637b[_0xe3c11d(0x1f9)]);return CliErrors[_0xe3c11d(0x216)](_0x529fce);}},async 'prepare'(_0x5f3235,_0x181605){const _0x23c751=_0xfdcaa4,_0x108dc9=resolveAuthMode(_0x181605);if(_0x5f3235[_0x23c751(0x1f0)]!==![]){if(!_0x181605[_0x23c751(0x1d3)])throw CliErrors[_0x23c751(0x1e3)](_0x23c751(0x1d0)+PRODUCT_CONFIG[_0x23c751(0x210)]+_0x23c751(0x1c8)+productEnvName('ACCESS_KEY')+'.');const {setActiveAK:_0x65a54b}=await import('../core/api-client.js');_0x65a54b(_0x181605['accessKey']);}if(_0x5f3235[_0x23c751(0x1ca)]===_0x23c751(0x20b))requireHarnessDomain();let _0x4dd9b5='';if(_0x5f3235[_0x23c751(0x1cd)]!==![]){_0x4dd9b5=_0x181605['appCode']??'',_0x4dd9b5=await resolveExplicitAppName(_0x5f3235,_0x181605,_0x4dd9b5);if(!_0x4dd9b5){await assertSelectedAppNameIsRuntimeAccessible(_0x5f3235,_0x181605);throw CliErrors[_0x23c751(0x1da)](_0x23c751(0x200)+PRODUCT_CONFIG[_0x23c751(0x210)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x5f3235,_0x181605,_0x4dd9b5);}if(_0x4dd9b5){const {initSdkClient:_0x2adf87}=await import(_0x23c751(0x1f5));_0x2adf87({'appCode':_0x4dd9b5,'env':_0x181605[_0x23c751(0x1ed)]??'production','runtimeDomain':_0x181605['runtimeDomain'],'accessKey':_0x181605['accessKey'],'authMode':_0x108dc9}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x181605[_0x23c751(0x201)]},'numbers':{'pagesize':_0x181605[_0x23c751(0x1d2)]}},'extras':{'appCode':_0x4dd9b5,'cookie':'','apiDomain':_0x181605[_0x23c751(0x1e9)],'apiDir':'','accessKey':_0x181605['accessKey'],'envName':_0x181605[_0x23c751(0x1ed)],'accessKeySource':_0x181605['accessKeySource'],'mergedCli':_0x181605[_0x23c751(0x20d)]}};},'confirmHighRisk':_0x3cdc5c[_0xfdcaa4(0x1d7)]??(async({def:_0x54c0fe,env:_0x10871b,flags:_0x115494,commandLabel:_0x2cb5e5})=>{const _0x3273bc=_0xfdcaa4;if(_0x10871b[_0x3273bc(0x1d4)]){const _0x24f312=reconstructCommandArgv(_0x54c0fe,_0x115494);throw CliErrors[_0x3273bc(0x1e6)](_0x3273bc(0x1ff)+_0x2cb5e5+_0x3273bc(0x20a)+('\x20\x20To\x20proceed:\x20'+_0x24f312));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x54c0fe,_0x2cb5e5,_0x115494),'createCancelledError':_0x32256b=>CliErrors['cancelled'](_0x32256b)});}),'mapDryRunError'(_0x10af4){return mapUserFacingExecuteError(_0x10af4);},'mapExecuteError'(_0x1bcc29){return mapUserFacingExecuteError(_0x1bcc29);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x7a322e;}function shouldRouteWriteToNativeTool(_0x39652e,_0x21d77a){const _0x34257b=a128_0x3278;return _0x21d77a[_0x34257b(0x1f7)]===!![]&&(_0x39652e[_0x34257b(0x1fb)]===_0x34257b(0x212)||_0x39652e[_0x34257b(0x1fb)]===_0x34257b(0x1fe));}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x3a066e=a128_0x3278;try{if(sdkClientInitialized){const {clearSdkClient:_0x474d0c}=await import(_0x3a066e(0x1f5));_0x474d0c();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x20042f}=await import(_0x3a066e(0x1ce));_0x20042f();}}async function resolveExplicitAppName(_0x1d6fd1,_0x6b2c64,_0x5cb0fe){const _0x20495d=a128_0x3278;if(_0x1d6fd1['requiresAppCode']===![])return _0x5cb0fe;const _0x4c898e=typeof _0x6b2c64[_0x20495d(0x1fa)]['app']===_0x20495d(0x215)?_0x6b2c64[_0x20495d(0x1fa)]['app'][_0x20495d(0x202)]():'';if(!_0x4c898e)return _0x5cb0fe;const _0x592fab=typeof _0x6b2c64[_0x20495d(0x1fa)][_0x20495d(0x1e1)]===_0x20495d(0x215)&&_0x6b2c64[_0x20495d(0x1fa)][_0x20495d(0x1e1)][_0x20495d(0x202)]();if(_0x592fab||_0x6b2c64[_0x20495d(0x208)]===_0x20495d(0x1e7))return _0x5cb0fe;const {getRemoteAppList:_0x1e4029}=await import(_0x20495d(0x204)),_0x93d7fd=await _0x1e4029({'env':_0x6b2c64[_0x20495d(0x1ed)]??_0x20495d(0x1d9),'accessKey':_0x6b2c64[_0x20495d(0x1d3)]}),_0x3f6105=findAppByName(_0x93d7fd['items'],_0x4c898e);if(_0x3f6105&&!isRuntimeAccessibleApp(_0x3f6105))throw runtimeInaccessibleAppError(_0x3f6105,'\x22'+_0x4c898e+'\x22');const _0x5c99b9=_0x3f6105?.[_0x20495d(0x1e0)]?.[_0x20495d(0x202)]();if(_0x5c99b9)return _0x5c99b9;throw CliErrors[_0x20495d(0x1e6)](_0x20495d(0x1de)+_0x4c898e,_0x20495d(0x1c9)+CLI_BIN_NAME+_0x20495d(0x1fd)+_0x4c898e+_0x20495d(0x1f4)+PRODUCT_CONFIG[_0x20495d(0x210)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x2e6242,_0x5eedf0){const _0x29a878=a128_0x3278;if(_0x2e6242['requiresAppCode']===![]||!_0x5eedf0[_0x29a878(0x1d3)])return;const _0x3f89fe=(typeof _0x5eedf0[_0x29a878(0x1fa)]['app']===_0x29a878(0x215)&&_0x5eedf0[_0x29a878(0x1fa)][_0x29a878(0x1f6)][_0x29a878(0x202)]()?_0x5eedf0[_0x29a878(0x1fa)][_0x29a878(0x1f6)]:_0x5eedf0[_0x29a878(0x20d)]?.[_0x29a878(0x1cb)]??_0x5eedf0[_0x29a878(0x20d)]?.[_0x29a878(0x1cc)])?.[_0x29a878(0x202)]();if(!_0x3f89fe)return;const {getRemoteAppList:_0x2d84c6}=await import(_0x29a878(0x204)),_0x4904b9=await _0x2d84c6({'env':_0x5eedf0[_0x29a878(0x1ed)]??'production','accessKey':_0x5eedf0[_0x29a878(0x1d3)]}),_0x4c4100=findAppByName(_0x4904b9[_0x29a878(0x20e)],_0x3f89fe);if(_0x4c4100&&!isRuntimeAccessibleApp(_0x4c4100))throw runtimeInaccessibleAppError(_0x4c4100,'\x22'+_0x3f89fe+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x2719da,_0x404628,_0x3c938b){const _0xc63879=a128_0x3278;if(_0x2719da[_0xc63879(0x1cd)]===![]||!_0x404628[_0xc63879(0x1d3)])return;const {getRemoteAppList:_0x45113e}=await import(_0xc63879(0x204)),_0x360692=await _0x45113e({'env':_0x404628[_0xc63879(0x1ed)]??'production','accessKey':_0x404628[_0xc63879(0x1d3)]}),_0x4db33e=findAppByCode(_0x360692['items'],_0x3c938b);if(_0x4db33e&&!isRuntimeAccessibleApp(_0x4db33e))throw runtimeInaccessibleAppError(_0x4db33e,_0xc63879(0x1df)+_0x3c938b+'\x22');}export async function runCommand(_0x3e3bf5,_0xaa4706,_0x2fccaa=terminalRunnerAdapter){const _0x4f7472=a128_0x3278;assertKnownCommandFlags(_0x3e3bf5,_0xaa4706[_0x4f7472(0x1fa)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x3e3bf5)?withVersionPolicy(_0x3e3bf5):_0x3e3bf5,_0xaa4706,_0x2fccaa);}function shouldApplyVersionPolicy(_0x5ceb22){const _0x5c85d2=a128_0x3278;if([_0x5c85d2(0x1ee),_0x5c85d2(0x209),_0x5c85d2(0x20c)][_0x5c85d2(0x1e5)](_0x5ceb22[_0x5c85d2(0x1ca)]))return![];return!(_0x5ceb22[_0x5c85d2(0x1ca)]===_0x5c85d2(0x1fc)&&_0x5ceb22[_0x5c85d2(0x1f9)]===_0x5c85d2(0x1f1));}function withVersionPolicy(_0x78af33){return{..._0x78af33,async 'execute'(_0x447bdd){const _0x1c111d=a128_0x3278,_0x35a9d6=await checkCliVersion();assertCliVersionSupported(_0x35a9d6);const _0x1f098b=shouldResolveUpdateNotice(_0x447bdd)?resolveLatestUpdateNotice(_0x35a9d6)[_0x1c111d(0x1eb)](()=>null):Promise[_0x1c111d(0x206)](null),_0x5b836e=await _0x78af33[_0x1c111d(0x1d8)](_0x447bdd);return attachUpdateNotice(_0x5b836e,await _0x1f098b);}};}function a128_0x1da0(){const _0x2fd74d=['riskLevel','write','error','_notice','string','cancelled','\x20or\x20pass\x20','Run\x20`','service','currentApp','defaultApp','requiresAppCode','../core/api-client.js','object','Set\x20accessKey\x20in\x20','881606qZzMHz','defaultPageSize','accessKey','isNonInteractive','pageSize','3987549kczUyv','confirmHighRisk','execute','production','configMissing','filter','974184SUHOIc','963620sqMKSE','Unknown\x20app:\x20','appcode\x20\x22','appCode','appcode','accessKeySource','authRequired','3ePlUwe','includes','validation','local-alias','2489468djWvfC','apiDomain','pretty','catch','1865348dXmWDx','env','update','format','requiresAuth','install','nativeToolRequired','formatOutput','.appcode\x20to\x20','../core/sdk-client.js','app','nativeToolAvailable','has','command','rawFlags','risk','cli-skill','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','high-risk-write','High-risk\x20operation\x20`','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','defaultVerbose','trim','nonInteractive','../commands/app/remote-source.js','name','resolve','1134100FHzCAj','appCodeSource','schema','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','schedule','doctor','mergedCli','items','32oRyGnG','newConfigFileName'];a128_0x1da0=function(){return _0x2fd74d;};return a128_0x1da0();}function shouldResolveUpdateNotice(_0xef47c){const _0x4ea64f=a128_0x3278;return _0xef47c[_0x4ea64f(0x1ef)]===_0x4ea64f(0x1ea)&&!_0xef47c[_0x4ea64f(0x203)];}function attachUpdateNotice(_0x3a9050,_0x4456d7){const _0xc217c7=a128_0x3278;if(!_0x4456d7||!_0x3a9050||typeof _0x3a9050!==_0xc217c7(0x1cf))return _0x3a9050;const _0x2d25e6=_0x3a9050,_0x142a97=typeof _0x2d25e6[_0xc217c7(0x214)]===_0xc217c7(0x1cf)&&_0x2d25e6['_notice']!==null?_0x2d25e6[_0xc217c7(0x214)]:{};return{..._0x2d25e6,'_notice':{..._0x142a97,'update':_0x4456d7}};}
|
|
1
|
+
(function(_0x1dc253,_0x2409ea){const _0x3c6456=a135_0xd2bf,_0x4945d7=_0x1dc253();while(!![]){try{const _0x1a708f=-parseInt(_0x3c6456(0x157))/0x1*(parseInt(_0x3c6456(0x120))/0x2)+-parseInt(_0x3c6456(0x150))/0x3*(parseInt(_0x3c6456(0x11e))/0x4)+-parseInt(_0x3c6456(0x152))/0x5+-parseInt(_0x3c6456(0x132))/0x6*(parseInt(_0x3c6456(0x154))/0x7)+parseInt(_0x3c6456(0x119))/0x8+parseInt(_0x3c6456(0x136))/0x9+parseInt(_0x3c6456(0x14d))/0xa*(parseInt(_0x3c6456(0x133))/0xb);if(_0x1a708f===_0x2409ea)break;else _0x4945d7['push'](_0x4945d7['shift']());}catch(_0x4299f4){_0x4945d7['push'](_0x4945d7['shift']());}}}(a135_0x3bde,0xd29a4));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';function a135_0x3bde(){const _0x42dcfc=['393856SbAtCg','Set\x20accessKey\x20in\x20','../core/api-client.js','accessKey','confirmHighRisk','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','Unknown\x20app:\x20','requiresAuth','configMissing','resolve','apiDomain','.appcode\x20to\x20','riskLevel','nativeToolAvailable','_notice','2119752zgSaLS','High-risk\x20operation\x20`','write','schedule','string','367372sVArdk','mergedCli','8vNVHWQ','defaultVerbose','catch','format','nonInteractive','cli-skill','install','rawFlags','env','\x20or\x20pass\x20','error','items','requiresAppCode','has','production','trim','formatOutput','runtimeDomain','473388ThhqdY','868109FyzNqj','object','../commands/app/remote-source.js','438318tsPCyq','isNonInteractive','service','doctor','filter','pretty','defaultPageSize','app','nativeToolRequired','validation','currentApp','cancelled','appCodeSource','../core/sdk-client.js','defaultApp','includes','name','appCode','newConfigFileName','appcode\x20\x22','risk','command','\x20\x20To\x20proceed:\x20','470WPnuhU','verbose','ClientAk','21zjMXta','accessKeySource','3920575VErIOI','map','14vlOEaN','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','schema'];a135_0x3bde=function(){return _0x42dcfc;};return a135_0x3bde();}import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';import{isNonInteractiveMode}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain,getRuntimeDomain,requireHarnessDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{assertKnownCommandFlags}from'../framework/raw-flags.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{assertCliVersionSupported,checkCliVersion}from'../utils/cli-version-check.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x47b750){const _0x5adf3a=a135_0xd2bf;return void _0x47b750,AUTH_MODE[_0x5adf3a(0x14f)];}let sdkClientInitialized=![];function a135_0xd2bf(_0x43201e,_0x5d5510){_0x43201e=_0x43201e-0x114;const _0x3bdec2=a135_0x3bde();let _0xd2bfea=_0x3bdec2[_0x43201e];return _0xd2bfea;}export function createPipelineEnv(_0x48ce68,_0x3487e9){const _0xbbc6a4=a135_0xd2bf;return{'rawFlags':_0x3487e9,'appCode':_0x48ce68[_0xbbc6a4(0x147)],'appCodeSource':_0x48ce68['appCodeSource'],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x3487e9),'defaultFormat':_0x48ce68[_0xbbc6a4(0x123)],'defaultPageSize':_0x48ce68['pageSize'],'defaultVerbose':_0x48ce68[_0xbbc6a4(0x14e)],'riskLevel':_0x48ce68[_0xbbc6a4(0x116)],'nativeToolAvailable':_0x48ce68[_0xbbc6a4(0x117)],'accessKey':_0x48ce68[_0xbbc6a4(0x15a)],'accessKeySource':_0x48ce68[_0xbbc6a4(0x151)],'env':_0x48ce68[_0xbbc6a4(0x128)],'mergedCli':{'defaultApp':_0x48ce68[_0xbbc6a4(0x144)],'currentApp':_0x48ce68[_0xbbc6a4(0x140)],'appCode':_0x48ce68[_0xbbc6a4(0x147)]}};}export function createLovrabetRunnerAdapter(_0xe3e205={}){const _0x4c4a4f=a135_0xd2bf,_0x50115e={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x4c4a4f(0x13a)](_0x119f57=>PIPELINE_FLAG_NAMES[_0x4c4a4f(0x12d)](_0x119f57[_0x4c4a4f(0x146)]))[_0x4c4a4f(0x153)](({name:_0x45caf6,type:_0x210a40,description:_0x1928c2})=>({'name':_0x45caf6,'type':_0x210a40,'description':_0x1928c2})),'formatOutput':_0xe3e205[_0x4c4a4f(0x130)]??formatOutput,'getCommandLabel'(_0x496ec6){const _0x4256b4=_0x4c4a4f;return CLI_BIN_NAME+'\x20'+_0x496ec6[_0x4256b4(0x138)]+'\x20'+_0x496ec6[_0x4256b4(0x14b)];},'riskPolicy':{'onViolation'(_0x5eff40,{def:_0x39b432,env:_0x55270d}){const _0x2b5fb8=_0x4c4a4f;if(shouldRouteWriteToNativeTool(_0x39b432,_0x55270d))return;console[_0x2b5fb8(0x12a)](_0x5eff40);},'createError'(_0x4e420d,{def:_0x59ac0c,env:_0x5196f2}){const _0x492035=_0x4c4a4f;if(shouldRouteWriteToNativeTool(_0x59ac0c,_0x5196f2))return CliErrors[_0x492035(0x13e)](CLI_BIN_NAME+'\x20'+_0x59ac0c[_0x492035(0x138)]+'\x20'+_0x59ac0c[_0x492035(0x14b)]);return CliErrors[_0x492035(0x141)](_0x4e420d);}},async 'prepare'(_0x367554,_0x17dae3){const _0x4f67a8=_0x4c4a4f,_0x30bb19=resolveAuthMode(_0x17dae3);if(_0x367554[_0x4f67a8(0x15e)]!==![]){if(!_0x17dae3[_0x4f67a8(0x15a)])throw CliErrors['authRequired'](_0x4f67a8(0x158)+PRODUCT_CONFIG[_0x4f67a8(0x148)]+_0x4f67a8(0x129)+productEnvName('ACCESS_KEY')+'.');const {setActiveAK:_0x5d3c62}=await import(_0x4f67a8(0x159));_0x5d3c62(_0x17dae3[_0x4f67a8(0x15a)]);}if(_0x367554[_0x4f67a8(0x138)]===_0x4f67a8(0x11c))requireHarnessDomain();let _0x3114a9='';if(_0x367554[_0x4f67a8(0x12c)]!==![]){_0x3114a9=_0x17dae3[_0x4f67a8(0x147)]??'',_0x3114a9=await resolveExplicitAppName(_0x367554,_0x17dae3,_0x3114a9);if(!_0x3114a9){await assertSelectedAppNameIsRuntimeAccessible(_0x367554,_0x17dae3);throw CliErrors[_0x4f67a8(0x15f)](_0x4f67a8(0x15c)+PRODUCT_CONFIG[_0x4f67a8(0x148)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x367554,_0x17dae3,_0x3114a9);}if(_0x3114a9){const {initSdkClient:_0x3db980}=await import(_0x4f67a8(0x143));_0x3db980({'appCode':_0x3114a9,'env':_0x17dae3[_0x4f67a8(0x128)]??_0x4f67a8(0x12e),'runtimeDomain':_0x17dae3[_0x4f67a8(0x131)],'accessKey':_0x17dae3[_0x4f67a8(0x15a)],'authMode':_0x30bb19}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x17dae3[_0x4f67a8(0x121)]},'numbers':{'pagesize':_0x17dae3[_0x4f67a8(0x13c)]}},'extras':{'appCode':_0x3114a9,'cookie':'','apiDomain':_0x17dae3[_0x4f67a8(0x114)],'apiDir':'','accessKey':_0x17dae3['accessKey'],'envName':_0x17dae3['env'],'accessKeySource':_0x17dae3[_0x4f67a8(0x151)],'mergedCli':_0x17dae3['mergedCli']}};},'confirmHighRisk':_0xe3e205[_0x4c4a4f(0x15b)]??(async({def:_0x2633e5,env:_0x47ecac,flags:_0x233c34,commandLabel:_0x23f2d4})=>{const _0x2016c1=_0x4c4a4f;if(_0x47ecac[_0x2016c1(0x137)]){const _0x290667=reconstructCommandArgv(_0x2633e5,_0x233c34);throw CliErrors[_0x2016c1(0x13f)](_0x2016c1(0x11a)+_0x23f2d4+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a'+(_0x2016c1(0x14c)+_0x290667));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x2633e5,_0x23f2d4,_0x233c34),'createCancelledError':_0x5a2181=>CliErrors[_0x2016c1(0x141)](_0x5a2181)});}),'mapDryRunError'(_0x5799c2){return mapUserFacingExecuteError(_0x5799c2);},'mapExecuteError'(_0x3fd018){return mapUserFacingExecuteError(_0x3fd018);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x50115e;}function shouldRouteWriteToNativeTool(_0x5bcad1,_0x47c267){const _0x5d061e=a135_0xd2bf;return _0x47c267[_0x5d061e(0x117)]===!![]&&(_0x5bcad1[_0x5d061e(0x14a)]===_0x5d061e(0x11b)||_0x5bcad1[_0x5d061e(0x14a)]==='high-risk-write');}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){try{if(sdkClientInitialized){const {clearSdkClient:_0x5bb093}=await import('../core/sdk-client.js');_0x5bb093();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x2b8360}=await import('../core/api-client.js');_0x2b8360();}}async function resolveExplicitAppName(_0x1687e6,_0x5e4db6,_0x215ae8){const _0x5708c9=a135_0xd2bf;if(_0x1687e6[_0x5708c9(0x12c)]===![])return _0x215ae8;const _0xbe396c=typeof _0x5e4db6[_0x5708c9(0x127)]['app']===_0x5708c9(0x11d)?_0x5e4db6[_0x5708c9(0x127)]['app']['trim']():'';if(!_0xbe396c)return _0x215ae8;const _0x300416=typeof _0x5e4db6['rawFlags']['appcode']===_0x5708c9(0x11d)&&_0x5e4db6['rawFlags']['appcode']['trim']();if(_0x300416||_0x5e4db6[_0x5708c9(0x142)]==='local-alias')return _0x215ae8;const {getRemoteAppList:_0x2dc301}=await import(_0x5708c9(0x135)),_0x301fa9=await _0x2dc301({'env':_0x5e4db6[_0x5708c9(0x128)]??'production','accessKey':_0x5e4db6[_0x5708c9(0x15a)]}),_0x2e7117=findAppByName(_0x301fa9[_0x5708c9(0x12b)],_0xbe396c);if(_0x2e7117&&!isRuntimeAccessibleApp(_0x2e7117))throw runtimeInaccessibleAppError(_0x2e7117,'\x22'+_0xbe396c+'\x22');const _0x58cfb0=_0x2e7117?.['appCode']?.[_0x5708c9(0x12f)]();if(_0x58cfb0)return _0x58cfb0;throw CliErrors['validation'](_0x5708c9(0x15d)+_0xbe396c,'Run\x20`'+CLI_BIN_NAME+_0x5708c9(0x155)+_0xbe396c+_0x5708c9(0x115)+PRODUCT_CONFIG[_0x5708c9(0x148)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x26e78d,_0xdc78dc){const _0x6bdb29=a135_0xd2bf;if(_0x26e78d[_0x6bdb29(0x12c)]===![]||!_0xdc78dc['accessKey'])return;const _0x30c54e=(typeof _0xdc78dc['rawFlags'][_0x6bdb29(0x13d)]===_0x6bdb29(0x11d)&&_0xdc78dc['rawFlags'][_0x6bdb29(0x13d)][_0x6bdb29(0x12f)]()?_0xdc78dc['rawFlags']['app']:_0xdc78dc[_0x6bdb29(0x11f)]?.[_0x6bdb29(0x140)]??_0xdc78dc[_0x6bdb29(0x11f)]?.[_0x6bdb29(0x144)])?.[_0x6bdb29(0x12f)]();if(!_0x30c54e)return;const {getRemoteAppList:_0x528fcf}=await import(_0x6bdb29(0x135)),_0x22efe4=await _0x528fcf({'env':_0xdc78dc['env']??'production','accessKey':_0xdc78dc[_0x6bdb29(0x15a)]}),_0x1978fe=findAppByName(_0x22efe4[_0x6bdb29(0x12b)],_0x30c54e);if(_0x1978fe&&!isRuntimeAccessibleApp(_0x1978fe))throw runtimeInaccessibleAppError(_0x1978fe,'\x22'+_0x30c54e+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x25cc36,_0x3f3804,_0x34928e){const _0x236c36=a135_0xd2bf;if(_0x25cc36[_0x236c36(0x12c)]===![]||!_0x3f3804[_0x236c36(0x15a)])return;const {getRemoteAppList:_0x1640e2}=await import('../commands/app/remote-source.js'),_0x4a7ef5=await _0x1640e2({'env':_0x3f3804[_0x236c36(0x128)]??_0x236c36(0x12e),'accessKey':_0x3f3804[_0x236c36(0x15a)]}),_0xc43888=findAppByCode(_0x4a7ef5['items'],_0x34928e);if(_0xc43888&&!isRuntimeAccessibleApp(_0xc43888))throw runtimeInaccessibleAppError(_0xc43888,_0x236c36(0x149)+_0x34928e+'\x22');}export async function runCommand(_0x147e89,_0x797f79,_0x3debc9=terminalRunnerAdapter){assertKnownCommandFlags(_0x147e89,_0x797f79['rawFlags']),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x147e89)?withVersionPolicy(_0x147e89):_0x147e89,_0x797f79,_0x3debc9);}function shouldApplyVersionPolicy(_0x39a399){const _0x437d69=a135_0xd2bf;if(['update',_0x437d69(0x156),_0x437d69(0x139)][_0x437d69(0x145)](_0x39a399[_0x437d69(0x138)]))return![];return!(_0x39a399['service']===_0x437d69(0x125)&&_0x39a399[_0x437d69(0x14b)]===_0x437d69(0x126));}function withVersionPolicy(_0x275a6a){return{..._0x275a6a,async 'execute'(_0x2eec79){const _0x316aef=a135_0xd2bf,_0x44fc5e=await checkCliVersion();assertCliVersionSupported(_0x44fc5e);const _0x503e37=shouldResolveUpdateNotice(_0x2eec79)?resolveLatestUpdateNotice(_0x44fc5e)[_0x316aef(0x122)](()=>null):Promise[_0x316aef(0x160)](null),_0x5713a7=await _0x275a6a['execute'](_0x2eec79);return attachUpdateNotice(_0x5713a7,await _0x503e37);}};}function shouldResolveUpdateNotice(_0x29cd15){const _0x216610=a135_0xd2bf;return _0x29cd15[_0x216610(0x123)]===_0x216610(0x13b)&&!_0x29cd15[_0x216610(0x124)];}function attachUpdateNotice(_0x2bebfb,_0x4816cd){const _0x12d3bd=a135_0xd2bf;if(!_0x4816cd||!_0x2bebfb||typeof _0x2bebfb!==_0x12d3bd(0x134))return _0x2bebfb;const _0x3085b5=_0x2bebfb,_0x180818=typeof _0x3085b5[_0x12d3bd(0x118)]===_0x12d3bd(0x134)&&_0x3085b5[_0x12d3bd(0x118)]!==null?_0x3085b5[_0x12d3bd(0x118)]:{};return{..._0x3085b5,'_notice':{..._0x180818,'update':_0x4816cd}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4e8d67,_0x110589){const _0x273b7e=a136_0x508a,_0x37ca9a=_0x4e8d67();while(!![]){try{const _0x271461=-parseInt(_0x273b7e(0xa0))/0x1*(parseInt(_0x273b7e(0x98))/0x2)+parseInt(_0x273b7e(0x9a))/0x3+parseInt(_0x273b7e(0x97))/0x4*(parseInt(_0x273b7e(0x9d))/0x5)+parseInt(_0x273b7e(0x93))/0x6*(-parseInt(_0x273b7e(0x9b))/0x7)+parseInt(_0x273b7e(0x96))/0x8+-parseInt(_0x273b7e(0xa2))/0x9*(parseInt(_0x273b7e(0x94))/0xa)+-parseInt(_0x273b7e(0x9e))/0xb;if(_0x271461===_0x110589)break;else _0x37ca9a['push'](_0x37ca9a['shift']());}catch(_0x904d75){_0x37ca9a['push'](_0x37ca9a['shift']());}}}(a136_0x1f4e,0xb63fd));import{buildSchemaPayload as a136_0x48f160}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliGitCommit,getCliVersion}from'../utils/version.js';function a136_0x508a(_0x5605e0,_0x57d17c){_0x5605e0=_0x5605e0-0x92;const _0x1f4efb=a136_0x1f4e();let _0x508a73=_0x1f4efb[_0x5605e0];return _0x508a73;}function a136_0x1f4e(){const _0x1d4be3=['services','14088jJDakY','350xhCPID','map','8102888TUhaXp','4256804NzWRsX','34htWess','has','2227392IvsTJW','210pegRPv','../commands/registry.js','5vfUCZA','8375070WkWfuA','service','62614bEsTFv','requiresAuth','45459uWzdUO','commands'];a136_0x1f4e=function(){return _0x1d4be3;};return a136_0x1f4e();}export async function buildSchemaPayload(){const _0xe3beb=a136_0x508a,{serviceRegistry:_0xfba267,findDefinition:_0x274706}=await import(_0xe3beb(0x9c)),_0x91ba4a=new Set(_0xfba267[_0xe3beb(0x95)](_0xab8b51=>_0xab8b51[_0xe3beb(0x9f)])),_0x299bd1=listDynamicServiceEntries()['filter'](_0x3a7cc6=>!_0x91ba4a[_0xe3beb(0x99)](_0x3a7cc6[_0xe3beb(0x9f)])),_0x261e76=a136_0x48f160({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0xfba267,_0x299bd1),'buildAllFlags':buildAllFlags,'findDefinition':(_0x40d59e,_0x3c9369)=>_0x274706(_0x40d59e,_0x3c9369)??findDynamicServiceDefinition(_0x40d59e,_0x3c9369)});return normalizeSchemaPayload(_0x261e76);}function normalizeSchemaPayload(_0x115b19){const _0x1f8bc5=a136_0x508a;return{..._0x115b19,'schemaVersion':0x2,'services':_0x115b19[_0x1f8bc5(0x92)][_0x1f8bc5(0x95)](_0x370ad6=>({..._0x370ad6,'commands':_0x370ad6[_0x1f8bc5(0xa3)][_0x1f8bc5(0x95)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x211834){const _0xa12448=a136_0x508a,_0x478086=_0x211834;return{..._0x211834,'auth':_0x478086['auth']??(_0x211834[_0xa12448(0xa1)]?'required':'none')};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a137_0x2e15(){const _0x1716bb=['service','2499510eXbBEY','2324399fptrdo','7488jKBxzj','8241RKjqWC','33AecihI','3387960tcZyCk','164bZFplY','32WnIQsZ','slice','length','1293pKVoal','8283730cnboIR','7501392MqJbnt'];a137_0x2e15=function(){return _0x1716bb;};return a137_0x2e15();}(function(_0x1c8324,_0x1c0110){const _0x420b19=a137_0x481a,_0x12f1bf=_0x1c8324();while(!![]){try{const _0x22b33a=-parseInt(_0x420b19(0xbe))/0x1*(parseInt(_0x420b19(0xc1))/0x2)+-parseInt(_0x420b19(0xc5))/0x3*(parseInt(_0x420b19(0xbd))/0x4)+parseInt(_0x420b19(0xc0))/0x5+-parseInt(_0x420b19(0xc9))/0x6+-parseInt(_0x420b19(0xbc))/0x7*(parseInt(_0x420b19(0xc2))/0x8)+parseInt(_0x420b19(0xc7))/0x9+parseInt(_0x420b19(0xc6))/0xa*(parseInt(_0x420b19(0xbf))/0xb);if(_0x22b33a===_0x1c0110)break;else _0x12f1bf['push'](_0x12f1bf['shift']());}catch(_0x4f2737){_0x12f1bf['push'](_0x12f1bf['shift']());}}}(a137_0x2e15,0xbbb18));function a137_0x481a(_0x3f12dd,_0x18d544){_0x3f12dd=_0x3f12dd-0xbc;const _0x2e1590=a137_0x2e15();let _0x481a37=_0x2e1590[_0x3f12dd];return _0x481a37;}export function insertDynamicServicesAfterServiceTree(_0x9cb80f,_0x2e882e){const _0x148691=a137_0x481a;if(_0x2e882e[_0x148691(0xc4)]===0x0)return[..._0x9cb80f];const _0x7de034=_0x9cb80f['findIndex'](_0x314b86=>_0x314b86[_0x148691(0xc8)]==='service');if(_0x7de034<0x0)return[..._0x9cb80f,..._0x2e882e];return[..._0x9cb80f['slice'](0x0,_0x7de034+0x1),..._0x2e882e,..._0x9cb80f[_0x148691(0xc3)](_0x7de034+0x1)];}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x24cec5,_0x4e7956){var _0x127c31=a138_0x2860,_0xb0e82a=_0x24cec5();while(!![]){try{var _0xfa89ca=-parseInt(_0x127c31(0x1c3))/0x1*(parseInt(_0x127c31(0x1c6))/0x2)+-parseInt(_0x127c31(0x1c2))/0x3*(parseInt(_0x127c31(0x1c5))/0x4)+parseInt(_0x127c31(0x1c1))/0x5+parseInt(_0x127c31(0x1c9))/0x6+parseInt(_0x127c31(0x1c0))/0x7+parseInt(_0x127c31(0x1c4))/0x8+-parseInt(_0x127c31(0x1c8))/0x9*(parseInt(_0x127c31(0x1c7))/0xa);if(_0xfa89ca===_0x4e7956)break;else _0xb0e82a['push'](_0xb0e82a['shift']());}catch(_0x2fc85a){_0xb0e82a['push'](_0xb0e82a['shift']());}}}(a138_0x12e6,0x8f009));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a138_0x2860(_0x1ff173,_0x2227d0){_0x1ff173=_0x1ff173-0x1c0;var _0x12e660=a138_0x12e6();var _0x28609d=_0x12e660[_0x1ff173];return _0x28609d;}function a138_0x12e6(){var _0x4d0a57=['3PNclLE','67nfzcXP','2904928RPiyJF','3415516tyhHus','2742lHjbzr','10NpEBVC','5728419zqidvQ','3375792uxcZMV','2957164PlibxS','4098820QcLWcu'];a138_0x12e6=function(){return _0x4d0a57;};return a138_0x12e6();}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.3.
|
|
2
|
-
export declare const GIT_TAG = "v2.3.
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-11-
|
|
1
|
+
export declare const VERSION = "2.3.13-beta.1";
|
|
2
|
+
export declare const GIT_TAG = "v2.3.13-beta.1";
|
|
3
|
+
export declare const GIT_COMMIT = "731aa62";
|
|
4
|
+
export declare const BUILD_TIME = "2026-11-16T09:47:08.960Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a139_0x22baad=a139_0x5461;(function(_0xc577d2,_0x5abd96){const _0x341b72=a139_0x5461,_0x13c23d=_0xc577d2();while(!![]){try{const _0x21d9e4=-parseInt(_0x341b72(0x96))/0x1+parseInt(_0x341b72(0x9b))/0x2*(parseInt(_0x341b72(0x9f))/0x3)+parseInt(_0x341b72(0x98))/0x4*(-parseInt(_0x341b72(0x95))/0x5)+-parseInt(_0x341b72(0x9a))/0x6+parseInt(_0x341b72(0x97))/0x7+parseInt(_0x341b72(0xa1))/0x8+parseInt(_0x341b72(0x9e))/0x9;if(_0x21d9e4===_0x5abd96)break;else _0x13c23d['push'](_0x13c23d['shift']());}catch(_0x28ca40){_0x13c23d['push'](_0x13c23d['shift']());}}}(a139_0x9e29,0x8e37b));export const VERSION=a139_0x22baad(0x9c);export const GIT_TAG=a139_0x22baad(0x9d);function a139_0x9e29(){const _0x2425d6=['517768tWmhXd','5232003uUXwVr','2005148ZufbGY','731aa62','6685272HhCFyo','2624eREsgT','2.3.13-beta.1','v2.3.13-beta.1','16054974cJBXKk','624EQIAVr','2026-11-16T09:47:08.960Z','3302928dcqepR','10EMTvWP'];a139_0x9e29=function(){return _0x2425d6;};return a139_0x9e29();}function a139_0x5461(_0x25a711,_0xfe6d3d){_0x25a711=_0x25a711-0x95;const _0x9e290f=a139_0x9e29();let _0x5461da=_0x9e290f[_0x25a711];return _0x5461da;}export const GIT_COMMIT=a139_0x22baad(0x99);export const BUILD_TIME=a139_0x22baad(0xa0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a140_0x42c536=a140_0x27b9;(function(_0x12fe1a,_0x1df3e3){const _0x10147b=a140_0x27b9,_0x3d2101=_0x12fe1a();while(!![]){try{const _0x43b342=-parseInt(_0x10147b(0x97))/0x1*(-parseInt(_0x10147b(0x91))/0x2)+parseInt(_0x10147b(0xaa))/0x3+-parseInt(_0x10147b(0x90))/0x4*(-parseInt(_0x10147b(0xa6))/0x5)+parseInt(_0x10147b(0x92))/0x6+-parseInt(_0x10147b(0xa3))/0x7+-parseInt(_0x10147b(0xab))/0x8+-parseInt(_0x10147b(0xad))/0x9*(parseInt(_0x10147b(0x93))/0xa);if(_0x43b342===_0x1df3e3)break;else _0x3d2101['push'](_0x3d2101['shift']());}catch(_0x4064ae){_0x3d2101['push'](_0x3d2101['shift']());}}}(a140_0x5afa,0x9b9c7));export const ROUTING_CATALOG_DIGEST='19bc6dd7c8de7d4ef260bc553e38e63b268d7cd3f535fd1933132eb7ac3c5b52';export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id','global'];export const ENABLED_REGION_VALUES=['cn','id','global'];function a140_0x27b9(_0x39530a,_0x570ae8){_0x39530a=_0x39530a-0x8e;const _0x5afa05=a140_0x5afa();let _0x27b955=_0x5afa05[_0x39530a];return _0x27b955;}export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':'Mainland\x20China','aliases':[a140_0x42c536(0xa0)],'serviceDomains':{'production':{'user':a140_0x42c536(0x94),'api':a140_0x42c536(0xac),'runtime':a140_0x42c536(0xb0),'skill':'https://skills.lovrabet.com','kbService':a140_0x42c536(0x8f),'harness':a140_0x42c536(0xaf)},'daily':{'user':'https://user-daily.lovrabet.com','api':a140_0x42c536(0x9b),'runtime':a140_0x42c536(0xae),'skill':a140_0x42c536(0xa1),'kbService':a140_0x42c536(0xa2),'harness':a140_0x42c536(0x9c)}}},'id':{'enabled':!![],'label':'Indonesia','aliases':[a140_0x42c536(0xb1)],'serviceDomains':{'production':{'user':a140_0x42c536(0x9d),'api':a140_0x42c536(0xa5),'runtime':a140_0x42c536(0xa7),'skill':a140_0x42c536(0x95),'kbService':a140_0x42c536(0x96),'harness':'https://sandbox-api.lovrabet.id'}}},'global':{'enabled':!![],'label':a140_0x42c536(0xa9),'aliases':[],'serviceDomains':{'production':{'user':a140_0x42c536(0x99),'api':a140_0x42c536(0x98),'runtime':a140_0x42c536(0x9a),'skill':a140_0x42c536(0xa4),'kbService':a140_0x42c536(0x9e),'harness':a140_0x42c536(0x9f)},'daily':{'user':'https://user-daily.lovrabet.ai','api':'https://daily-api.lovrabet.ai','runtime':a140_0x42c536(0xa8),'skill':a140_0x42c536(0x8e)}}}};function a140_0x5afa(){const _0x39d78d=['https://runtime.lovrabet.id','https://daily-runtime.lovrabet.ai','Global','3390315yemBOA','8704416aLZWNW','https://api.lovrabet.com','17919SmVGcB','https://daily-runtime.lovrabet.com','https://sandbox-api.lovrabet.com','https://runtime.lovrabet.com','indonesia','https://skills-daily.lovrabet.ai','https://kb-service.lovrabet.com','3664nqVFzB','42222aUVnxh','2761590YECEwP','970KBgfqv','https://user.lovrabet.com','https://skills.lovrabet.id','https://kb-service.lovrabet.id','13pfEPTF','https://api.lovrabet.ai','https://user.lovrabet.ai','https://runtime.lovrabet.ai','https://daily-api.lovrabet.com','https://sandbox-api-daily.lovrabet.com','https://user.lovrabet.id','https://kb-service.lovrabet.ai','https://sandbox-api.lovrabet.ai','china','https://skills-daily.lovrabet.com','https://kb-service-daily.lovrabet.com','6715429ciEvUi','https://skills.lovrabet.ai','https://api.lovrabet.id','5530BnpjvO'];a140_0x5afa=function(){return _0x39d78d;};return a140_0x5afa();}export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a141_0x237323=a141_0x3c4a;(function(_0x2a1bf7,_0x143892){const _0x173025=a141_0x3c4a,_0x2fef48=_0x2a1bf7();while(!![]){try{const _0x36279a=parseInt(_0x173025(0x148))/0x1+-parseInt(_0x173025(0x149))/0x2*(-parseInt(_0x173025(0x14a))/0x3)+-parseInt(_0x173025(0x152))/0x4*(-parseInt(_0x173025(0x150))/0x5)+-parseInt(_0x173025(0x145))/0x6+-parseInt(_0x173025(0x14d))/0x7+-parseInt(_0x173025(0x151))/0x8+-parseInt(_0x173025(0x146))/0x9;if(_0x36279a===_0x143892)break;else _0x2fef48['push'](_0x2fef48['shift']());}catch(_0x28f37e){_0x2fef48['push'](_0x2fef48['shift']());}}}(a141_0x2b89,0x3eef6));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a141_0x237323(0x14e);export const ENTERPRISE_ROUTING_PROTOCOL=a141_0x237323(0x142);function a141_0x3c4a(_0x1c05e0,_0x44af02){_0x1c05e0=_0x1c05e0-0x142;const _0x2b891f=a141_0x2b89();let _0x3c4a3e=_0x2b891f[_0x1c05e0];return _0x3c4a3e;}export const ENTERPRISE_ROUTING_KIND=a141_0x237323(0x144);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a141_0x237323(0x147),a141_0x237323(0x14c),a141_0x237323(0x153),a141_0x237323(0x14f),a141_0x237323(0x14b),a141_0x237323(0x143)];function a141_0x2b89(){const _0x10c1fb=['userDomain','297862RMsunh','240428ioemXt','9Zniozm','kbServiceDomain','apiDomain','65478CxyiLJ','192eedb6fe65d2091e1e03fb0fe5046da1c2cf5a5aea21cb85511b2c1181a3d9','skillDomain','1130NOueOi','1288840CvwpzO','6448IYMwSp','runtimeDomain','lovrabet-routing/v1','harnessDomain','enterprise','1655034EAPWuR','2868624hxSsNR'];a141_0x2b89=function(){return _0x10c1fb;};return a141_0x2b89();}export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x16f907,_0x34c0fa){const _0x2f9d3e=a142_0x4478,_0x5d683f=_0x16f907();while(!![]){try{const _0x372da1=-parseInt(_0x2f9d3e(0xe1))/0x1+-parseInt(_0x2f9d3e(0xe6))/0x2+parseInt(_0x2f9d3e(0xdf))/0x3+-parseInt(_0x2f9d3e(0xe3))/0x4+-parseInt(_0x2f9d3e(0xe4))/0x5*(parseInt(_0x2f9d3e(0xe2))/0x6)+parseInt(_0x2f9d3e(0xdb))/0x7+-parseInt(_0x2f9d3e(0xdc))/0x8*(-parseInt(_0x2f9d3e(0xe5))/0x9);if(_0x372da1===_0x34c0fa)break;else _0x5d683f['push'](_0x5d683f['shift']());}catch(_0x390eca){_0x5d683f['push'](_0x5d683f['shift']());}}}(a142_0x41d5,0x5013d));import{jsx as a142_0x3d57b0,jsxs as a142_0x48e78e}from'react/jsx-runtime';function a142_0x41d5(){const _0x51d61d=['\x20--help','805539LBPHXs','green','489999ZtqALM','809454FbdcSH','190876ALcvnG','5NOJFkr','264555AUAdMo','1275996XFdTLn','2800518NPSQkI','264PJdate','column'];a142_0x41d5=function(){return _0x51d61d;};return a142_0x41d5();}import{useEffect}from'react';function a142_0x4478(_0x4308fa,_0x193d00){_0x4308fa=_0x4308fa-0xdb;const _0x41d56e=a142_0x41d5();let _0x447825=_0x41d56e[_0x4308fa];return _0x447825;}import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x395a81=a142_0x4478,{exit:_0x382867}=useApp();return useEffect(()=>{_0x382867();},[_0x382867]),a142_0x48e78e(Box,{'flexDirection':_0x395a81(0xdd),'marginTop':0x1,'marginBottom':0x1,'children':[a142_0x3d57b0(Box,{'children':a142_0x3d57b0(Text,{'bold':!![],'color':_0x395a81(0xe0),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a142_0x48e78e(Box,{'marginTop':0x1,'children':[a142_0x3d57b0(Text,{'dimColor':!![],'children':'\x20\x20Use\x20'}),a142_0x3d57b0(Text,{'bold':!![],'color':_0x395a81(0xe0),'children':CLI_BIN_NAME+_0x395a81(0xde)}),a142_0x3d57b0(Text,{'dimColor':!![],'children':'\x20to\x20view\x20available\x20commands.'})]})]});}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x569abf,_0x213224){const _0x2a7d7e=a143_0x280f,_0x946469=_0x569abf();while(!![]){try{const _0x23fdf4=parseInt(_0x2a7d7e(0x159))/0x1+-parseInt(_0x2a7d7e(0x153))/0x2+parseInt(_0x2a7d7e(0x161))/0x3+-parseInt(_0x2a7d7e(0x150))/0x4*(-parseInt(_0x2a7d7e(0x15c))/0x5)+-parseInt(_0x2a7d7e(0x156))/0x6*(parseInt(_0x2a7d7e(0x157))/0x7)+parseInt(_0x2a7d7e(0x163))/0x8+-parseInt(_0x2a7d7e(0x165))/0x9*(-parseInt(_0x2a7d7e(0x15e))/0xa);if(_0x23fdf4===_0x213224)break;else _0x946469['push'](_0x946469['shift']());}catch(_0x25bb20){_0x946469['push'](_0x946469['shift']());}}}(a143_0x13c5,0xcf3bc));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a143_0x13c5(){const _0x26c752=['2760046xiEQfA','\x20via\x20skills@latest','Lovrabet\x20Built-in\x20Skill\x20','6xuVaiI','6080634Rvrskp','installedPath','896254XkGfCU','Repair\x20with:\x20','SOURCE_INVALID','6700GDRWBd','repairCommand','1030UaikMK','log','installed','2258508hVtSUF','warn','1965168XhPkIB','[BUILTIN_SKILL_INSTALL_','27351hJDKYK','\x20at\x20','FAILED','skillVersion','2656hwrXiE','code','changed'];a143_0x13c5=function(){return _0x26c752;};return a143_0x13c5();}function a143_0x280f(_0x12cfd2,_0x4f18ab){_0x12cfd2=_0x12cfd2-0x14d;const _0x13c50d=a143_0x13c5();let _0x280ff2=_0x13c50d[_0x12cfd2];return _0x280ff2;}export async function runPostinstall(_0xbc7a24={}){const _0x4f2eb5=a143_0x280f,_0x5b7582=installBuiltinSkill(_0xbc7a24);if(_0x5b7582['ok']){const _0x78b512=_0x5b7582[_0x4f2eb5(0x152)]?_0x4f2eb5(0x160):'already\x20current',_0x54dd19=_0x5b7582[_0x4f2eb5(0x158)]?_0x4f2eb5(0x14d)+_0x5b7582[_0x4f2eb5(0x158)]:_0x4f2eb5(0x154);return console[_0x4f2eb5(0x15f)](_0x4f2eb5(0x155)+_0x5b7582[_0x4f2eb5(0x14f)]+'\x20'+_0x78b512+_0x54dd19),_0x5b7582;}const _0x75b147=_0x4f2eb5(0x164)+(_0x5b7582[_0x4f2eb5(0x151)]??_0x4f2eb5(0x14e))+']\x20'+(_0x5b7582['error']??'Installation\x20failed')+'.\x20'+(_0x4f2eb5(0x15a)+_0x5b7582[_0x4f2eb5(0x15d)]);if(_0x5b7582[_0x4f2eb5(0x151)]===_0x4f2eb5(0x15b))throw new Error(_0x75b147);return console[_0x4f2eb5(0x162)](_0x75b147),_0x5b7582;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a144_0x285e(_0x319b55,_0x2c19d0){_0x319b55=_0x319b55-0xa8;const _0x1f5328=a144_0x1f53();let _0x285edf=_0x1f5328[_0x319b55];return _0x285edf;}(function(_0x4cc0d6,_0x15e162){const _0x36eb57=a144_0x285e,_0x38974a=_0x4cc0d6();while(!![]){try{const _0x576c16=-parseInt(_0x36eb57(0xb2))/0x1*(parseInt(_0x36eb57(0xb4))/0x2)+-parseInt(_0x36eb57(0xad))/0x3*(-parseInt(_0x36eb57(0xb7))/0x4)+-parseInt(_0x36eb57(0xb5))/0x5*(parseInt(_0x36eb57(0xb8))/0x6)+-parseInt(_0x36eb57(0xba))/0x7*(-parseInt(_0x36eb57(0xbb))/0x8)+parseInt(_0x36eb57(0xaf))/0x9+parseInt(_0x36eb57(0xab))/0xa+parseInt(_0x36eb57(0xbc))/0xb;if(_0x576c16===_0x15e162)break;else _0x38974a['push'](_0x38974a['shift']());}catch(_0x15a18d){_0x38974a['push'](_0x38974a['shift']());}}}(a144_0x1f53,0x622c0));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildLovrabetConfirmationRequest(_0x29798a,_0x40cffb,_0xecb55c){const _0x21a40e=a144_0x285e,_0x2cf76b=normalizeText(_0x29798a['confirmationDescription'],DESCRIPTION_MAX_LENGTH),_0x245c7a=normalizeText(_0x29798a[_0x21a40e(0xb6)],DESCRIPTION_MAX_LENGTH);return{'operation':_0x40cffb,'risk':requireWriteRisk(_0x29798a),'description':_0x2cf76b||_0x245c7a||_0x21a40e(0xb1),..._0xecb55c?{'signal':_0xecb55c}:{}};}function requireWriteRisk(_0x5602c7){const _0x4e0483=a144_0x285e;if(_0x5602c7[_0x4e0483(0xb3)]===_0x4e0483(0xaa)||_0x5602c7[_0x4e0483(0xb3)]===_0x4e0483(0xb0))return _0x5602c7[_0x4e0483(0xb3)];throw new Error(_0x4e0483(0xa8));}function a144_0x1f53(){const _0x309c83=['description','4BqGcuD','175302FVNaVb','string','2993557mDGUao','8FfnAOE','3026430aUnJcC','Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.','slice','write','472580qBTaAd','trim','209175kplNYM','replace','2354274fSwBfB','high-risk-write','Run\x20this\x20write\x20operation','1sOnucE','risk','832570NLkKBK','45VAByNW'];a144_0x1f53=function(){return _0x309c83;};return a144_0x1f53();}function normalizeText(_0x136b33,_0x1badc1){const _0x3b4315=a144_0x285e;if(typeof _0x136b33!==_0x3b4315(0xb9))return'';return _0x136b33['replace'](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x3b4315(0xae)](/\s+/g,'\x20')[_0x3b4315(0xac)]()[_0x3b4315(0xa9)](0x0,_0x1badc1);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xc48931,_0x107d9b){const _0x4b9afc=a145_0x58c4,_0x1c2188=_0xc48931();while(!![]){try{const _0x394e59=parseInt(_0x4b9afc(0x1f1))/0x1+-parseInt(_0x4b9afc(0x202))/0x2*(parseInt(_0x4b9afc(0x1f0))/0x3)+-parseInt(_0x4b9afc(0x1ee))/0x4*(parseInt(_0x4b9afc(0x1f2))/0x5)+-parseInt(_0x4b9afc(0x201))/0x6*(-parseInt(_0x4b9afc(0x1f4))/0x7)+-parseInt(_0x4b9afc(0x1f3))/0x8+parseInt(_0x4b9afc(0x1f9))/0x9*(parseInt(_0x4b9afc(0x200))/0xa)+-parseInt(_0x4b9afc(0x203))/0xb*(-parseInt(_0x4b9afc(0x1f7))/0xc);if(_0x394e59===_0x107d9b)break;else _0x1c2188['push'](_0x1c2188['shift']());}catch(_0x4343d9){_0x1c2188['push'](_0x1c2188['shift']());}}}(a145_0x1bd9,0x6ee2e));export function canonicalLovrabetOperation(_0x427934){const _0x297818=a145_0x58c4;return[_0x427934[_0x297818(0x1f8)],..._0x427934[_0x297818(0x1fc)][_0x297818(0x1fd)]()[_0x297818(0x1fb)](/\s+/)][_0x297818(0x1ff)](Boolean)[_0x297818(0x1f5)]('.');}function a145_0x58c4(_0x34059f,_0x1f18c2){_0x34059f=_0x34059f-0x1ee;const _0x1bd9b8=a145_0x1bd9();let _0x58c4f7=_0x1bd9b8[_0x34059f];return _0x58c4f7;}export function createLovrabetWriteMetadata(_0x330065,_0x5dd9cf,_0x325a1d,_0x572bd9){const _0x1f7367=a145_0x58c4;if(_0x572bd9||_0x325a1d['ok']!==!![]||_0x330065[_0x1f7367(0x1f6)]!==_0x1f7367(0x1fe)&&_0x330065[_0x1f7367(0x1f6)]!==_0x1f7367(0x1ef))return undefined;const _0x28dcaf=_0x330065[_0x1f7367(0x1fa)]?.(_0x325a1d),_0x427cdc={'type':'lovrabet.write.completed','operation':_0x5dd9cf,'risk':_0x330065[_0x1f7367(0x1f6)],..._0x28dcaf?{'subject':_0x28dcaf}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x427cdc}};}function a145_0x1bd9(){const _0x414add=['join','risk','1068rXrBGw','service','39357enBHrR','writeEventSubject','split','command','trim','write','filter','1470rJcodJ','4403964CBSDwn','58uzEvtA','65890pHmSMA','777792LKkVCy','high-risk-write','38886RCkZbe','339971YmZhZo','20nWlKJi','5136208OQPLgZ','7bYGpcn'];a145_0x1bd9=function(){return _0x414add;};return a145_0x1bd9();}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3ab461,_0x315eac){const _0x4f16d7=a146_0x31a6,_0x4a43a1=_0x3ab461();while(!![]){try{const _0x28ee98=parseInt(_0x4f16d7(0x9f))/0x1+parseInt(_0x4f16d7(0xa7))/0x2*(parseInt(_0x4f16d7(0xac))/0x3)+-parseInt(_0x4f16d7(0xa1))/0x4+-parseInt(_0x4f16d7(0x97))/0x5+-parseInt(_0x4f16d7(0xb7))/0x6+parseInt(_0x4f16d7(0x9b))/0x7*(parseInt(_0x4f16d7(0xb2))/0x8)+parseInt(_0x4f16d7(0xb0))/0x9;if(_0x28ee98===_0x315eac)break;else _0x4a43a1['push'](_0x4a43a1['shift']());}catch(_0x5ccb6c){_0x4a43a1['push'](_0x4a43a1['shift']());}}}(a146_0x2425,0x7e78a));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';function a146_0x2425(){const _0x24ea02=['args','reason','3lZOMUI','signal','confirm','present','19992834nVRlFq','definition','1064272xhSDhe','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','dryRun','high-risk-write','execute','5026926mmsTJu','5167065VtSMps','format','result','rawFlags','28tPPTTD','yes','riskLevel','stringify','31781FwwXfY','AbortError','2416600ujQSbd','isNonInteractive','Lovrabet\x20invocation\x20aborted.','data','command','dry-run','416134yfkbxJ','confirmation','risk'];a146_0x2425=function(){return _0x24ea02;};return a146_0x2425();}import{canonicalLovrabetOperation,createLovrabetWriteMetadata}from'../runtime/event.js';import{buildLovrabetConfirmationRequest}from'../runtime/confirmation.js';function a146_0x31a6(_0xebecbc,_0x4126d1){_0xebecbc=_0xebecbc-0x97;const _0x2425f6=a146_0x2425();let _0x31a61f=_0x2425f6[_0xebecbc];return _0x31a61f;}import{resolveLovrabetInvocation}from'../runtime/resolve.js';import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0x4ae56c,command:_0x11ba84,risk:_0x31839d,dryRun:_0x324a59}){const _0x4b0e23=a146_0x31a6;return JSON[_0x4b0e23(0x9e)]({'ok':_0x4ae56c['ok'],'command':_0x11ba84,'risk':_0x31839d,..._0x324a59?{'dryRun':!![]}:{},..._0x4ae56c[_0x4b0e23(0xa4)]!==undefined?{'data':_0x4ae56c[_0x4b0e23(0xa4)]}:{},..._0x4ae56c['message']?{'message':_0x4ae56c['message']}:{}});}};export async function invokeLovrabet(_0xa6f62c,_0x448e2b){const _0x180405=a146_0x31a6;throwIfAborted(_0x448e2b[_0x180405(0xad)]);const _0x199643=await resolveLovrabetInvocation(_0xa6f62c),_0x45e37f=canonicalLovrabetOperation(_0x199643['definition']);return await confirmWriteBeforeQueue(_0x199643[_0x180405(0xb1)],_0x199643[_0x180405(0x9a)],_0x45e37f,_0x448e2b),runSerialized(async()=>{const _0x3077ac=_0x180405;throwIfAborted(_0x448e2b[_0x3077ac(0xad)]);const _0x1888c6={},_0x48fdef=buildConfigFromFlags(_0x199643[_0x3077ac(0x9a)]);await initGlobalEnvironment(_0x48fdef);const _0x2c701b=createPipelineEnv(_0x48fdef,{..._0x199643[_0x3077ac(0x9a)],'yes':_0x199643[_0x3077ac(0xb1)][_0x3077ac(0xa9)]===_0x3077ac(0xb5)?!![]:_0x199643[_0x3077ac(0x9a)][_0x3077ac(0x9c)],'nonInteractive':!![]});_0x2c701b[_0x3077ac(0xaa)]=_0x199643['args'],_0x2c701b[_0x3077ac(0xa2)]=!![],_0x2c701b[_0x3077ac(0x9d)]=_0x3077ac(0xb5);const _0x244e3b=withAbortSignal(_0x199643[_0x3077ac(0xb1)],_0x448e2b[_0x3077ac(0xad)]),_0x128ac7=createLovrabetRunnerAdapter({'formatOutput'(_0x209be1,_0x5a00b6){const _0x52258c=_0x3077ac;_0x1888c6[_0x52258c(0x99)]=_0x209be1,_0x1888c6[_0x52258c(0xa5)]=_0x5a00b6['command'],_0x1888c6[_0x52258c(0xa9)]=_0x5a00b6[_0x52258c(0xa9)],_0x1888c6['format']=_0x5a00b6['format'],_0x1888c6[_0x52258c(0xb4)]=_0x5a00b6['dryRun']===!![];},async 'confirmHighRisk'(){const _0xb46038=_0x3077ac;throw new Error(_0xb46038(0xb3));}});try{await runCommand(_0x244e3b,_0x2c701b,_0x128ac7);if(!_0x1888c6[_0x3077ac(0x99)]||!_0x1888c6[_0x3077ac(0xa5)]||!_0x1888c6[_0x3077ac(0xa9)]||!_0x1888c6[_0x3077ac(0x98)])throw new Error('Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.');const _0x5477ee=_0x448e2b['presentation']??defaultPresentation,_0x13464b=_0x1888c6[_0x3077ac(0xb4)]===!![],_0x2d02b7={'result':_0x1888c6[_0x3077ac(0x99)],'command':_0x1888c6[_0x3077ac(0xa5)],'operation':_0x45e37f,'risk':_0x1888c6[_0x3077ac(0xa9)],'format':_0x1888c6[_0x3077ac(0x98)],'dryRun':_0x13464b},_0x1b4e88=createLovrabetWriteMetadata(_0x199643[_0x3077ac(0xb1)],_0x45e37f,_0x1888c6[_0x3077ac(0x99)],_0x13464b);let _0x10e837;try{_0x10e837=await _0x5477ee['present'](_0x2d02b7);}catch(_0x289d5d){if(!_0x1b4e88||_0x5477ee===defaultPresentation)throw _0x289d5d;_0x10e837=await defaultPresentation[_0x3077ac(0xaf)](_0x2d02b7);}return{'operation':_0x45e37f,'risk':_0x1888c6[_0x3077ac(0xa9)],'mode':_0x13464b?_0x3077ac(0xa6):_0x3077ac(0xb6),'result':_0x1888c6[_0x3077ac(0x99)],'output':_0x10e837,..._0x1b4e88?{'metadata':_0x1b4e88}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0xbc0ea0,_0x1fc7a6,_0x37a0e8,_0x3b5901){const _0x10647b=a146_0x31a6;if(_0x1fc7a6[_0x10647b(0xb4)]===!![]||_0xbc0ea0['risk']!=='write'&&_0xbc0ea0[_0x10647b(0xa9)]!==_0x10647b(0xb5))return;await _0x3b5901[_0x10647b(0xa8)][_0x10647b(0xae)](buildLovrabetConfirmationRequest(_0xbc0ea0,_0x37a0e8,_0x3b5901[_0x10647b(0xad)]));}function withAbortSignal(_0x307b40,_0x471941){return{..._0x307b40,async 'execute'(_0x14458c){const _0x5b2a83=a146_0x31a6;return throwIfAborted(_0x471941),_0x307b40[_0x5b2a83(0xb6)]({..._0x14458c,'signal':_0x471941});}};}function throwIfAborted(_0x16e652){const _0x34a6a1=a146_0x31a6;if(_0x16e652?.['aborted'])throw _0x16e652['reason']instanceof Error?_0x16e652[_0x34a6a1(0xab)]:new DOMException(_0x34a6a1(0xa3),_0x34a6a1(0xa0));}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a147_0x1259(){const _0x271543=['1561628bvuoLw','1467uavhXk','75220HCRMJA','resolve','7066494lCxZVK','1406SmRExD','12534273dtKwnz','10nrRPxH','2232060LGUMlO','40rWrKHy','catch','66738YUZImM'];a147_0x1259=function(){return _0x271543;};return a147_0x1259();}const a147_0x312ad1=a147_0x14ca;(function(_0x36fe30,_0x6fa858){const _0x25a6a3=a147_0x14ca,_0x45af09=_0x36fe30();while(!![]){try{const _0x38b732=parseInt(_0x25a6a3(0x1cd))/0x1*(-parseInt(_0x25a6a3(0x1d1))/0x2)+parseInt(_0x25a6a3(0x1c8))/0x3+parseInt(_0x25a6a3(0x1cc))/0x4*(parseInt(_0x25a6a3(0x1c7))/0x5)+-parseInt(_0x25a6a3(0x1d0))/0x6+parseInt(_0x25a6a3(0x1cb))/0x7*(parseInt(_0x25a6a3(0x1c9))/0x8)+parseInt(_0x25a6a3(0x1d2))/0x9+parseInt(_0x25a6a3(0x1ce))/0xa;if(_0x38b732===_0x6fa858)break;else _0x45af09['push'](_0x45af09['shift']());}catch(_0x13cb63){_0x45af09['push'](_0x45af09['shift']());}}}(a147_0x1259,0xba719));let tail=Promise[a147_0x312ad1(0x1cf)]();function a147_0x14ca(_0xa13391,_0x16ebb7){_0xa13391=_0xa13391-0x1c7;const _0x125922=a147_0x1259();let _0x14caad=_0x125922[_0xa13391];return _0x14caad;}export async function runSerialized(_0x2334a0){const _0x2868b5=a147_0x312ad1,_0x550478=tail;let _0x586df8;tail=new Promise(_0x3394b8=>{_0x586df8=_0x3394b8;}),await _0x550478[_0x2868b5(0x1ca)](()=>undefined);try{return await _0x2334a0();}finally{_0x586df8();}}
|