@lovrabet/lovrabet-cli 2.3.11 → 2.3.12-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/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.d.ts +13 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/import-excel.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/issue/context.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.d.ts +3 -2
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-sdk-errors.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/access-error.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-import/auto-id-runner.js +1 -1
- package/lib/services/dataset-import/excel-reader.js +1 -1
- package/lib/services/dataset-import/image-bytes.js +1 -1
- package/lib/services/dataset-import/image-ooxml.js +1 -1
- package/lib/services/dataset-import/image-runner.js +1 -1
- package/lib/services/dataset-import/metadata.js +1 -1
- package/lib/services/dataset-import/preview.js +1 -1
- package/lib/services/dataset-import/runner.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/positive-safe-integer.js +1 -1
- package/lib/utils/redaction.js +1 -1
- package/lib/utils/runtime-user-id.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3e5bea,_0x2ab0f0){const _0x1b8b9d=a119_0x3e7c,_0x1c8d0b=_0x3e5bea();while(!![]){try{const _0x260447=-parseInt(_0x1b8b9d(0x201))/0x1*(-parseInt(_0x1b8b9d(0x1f9))/0x2)+-parseInt(_0x1b8b9d(0x200))/0x3*(parseInt(_0x1b8b9d(0x1fc))/0x4)+-parseInt(_0x1b8b9d(0x1fb))/0x5+-parseInt(_0x1b8b9d(0x204))/0x6+-parseInt(_0x1b8b9d(0x1f7))/0x7+-parseInt(_0x1b8b9d(0x1fe))/0x8+parseInt(_0x1b8b9d(0x202))/0x9;if(_0x260447===_0x2ab0f0)break;else _0x1c8d0b['push'](_0x1c8d0b['shift']());}catch(_0xa73bc7){_0x1c8d0b['push'](_0x1c8d0b['shift']());}}}(a119_0x5c73,0xcf727));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';function a119_0x5c73(){const _0x101062=['3342768cgrzZO','filter','36015GIuruX','5657tnOIDf','21033405YDikVq','generateServiceHelp','40164tNvKQo','Requires\x20appcode\x20(set\x20via\x20','\x20or\x20--appcode).','service','newConfigFileName','map','9820160gcGMMH','has','486TxpLnB','generateCommandHelp','3912340itNCRm','84dgTdpu','generateFullHelp'];a119_0x5c73=function(){return _0x101062;};return a119_0x5c73();}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 _0x3d1ac5=a119_0x3e7c;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries())[_0x3d1ac5(0x1ff)](_0x65fabc=>_0x65fabc[_0x3d1ac5(0x1f4)]!==_0x3d1ac5(0x1f4)),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x3d1ac5(0x205)+PRODUCT_CONFIG[_0x3d1ac5(0x1f5)]+_0x3d1ac5(0x206)});}export function generateCommandHelp(_0x5684e0){const _0x5c970a=a119_0x3e7c;return createGenerators()[_0x5c970a(0x1fa)](_0x5684e0);}export function generateServiceHelp(_0x3fc941){const _0x3ca709=a119_0x3e7c;return createGenerators()[_0x3ca709(0x203)](_0x3fc941);}export function generateFullHelp(){const _0x587027=a119_0x3e7c;return createGenerators()[_0x587027(0x1fd)]();}function getAnyServiceEntry(_0x5ccf04){const _0x4dec88=getServiceEntry(_0x5ccf04);if(_0x4dec88)return _0x4dec88;try{return getDynamicServiceEntry(_0x5ccf04);}catch{return undefined;}}function getAnyServiceDefinitions(_0x3c2a7e){const _0x420b5b=serviceGroups['get'](_0x3c2a7e);if(_0x420b5b)return _0x420b5b;try{return getDynamicServiceDefinitions(_0x3c2a7e);}catch{return undefined;}}function a119_0x3e7c(_0x5af60f,_0x2ca8ff){_0x5af60f=_0x5af60f-0x1f4;const _0x5c7363=a119_0x5c73();let _0x3e7cfd=_0x5c7363[_0x5af60f];return _0x3e7cfd;}function safeListDynamicServiceEntries(){const _0x2cb1a2=a119_0x3e7c,_0x535055=new Set(serviceRegistry[_0x2cb1a2(0x1f6)](_0x14a8e9=>_0x14a8e9[_0x2cb1a2(0x1f4)]));try{return listDynamicServiceEntries()['filter'](_0x2ddef2=>!_0x535055[_0x2cb1a2(0x1f8)](_0x2ddef2['service']));}catch{return[];}}
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xa9e20f,_0x13aed4){var _0x299bd0=a120_0x4f13,_0x7508a7=_0xa9e20f();while(!![]){try{var _0x34ab12=-parseInt(_0x299bd0(0x1d8))/0x1*(parseInt(_0x299bd0(0x1dc))/0x2)+parseInt(_0x299bd0(0x1d9))/0x3+parseInt(_0x299bd0(0x1da))/0x4+-parseInt(_0x299bd0(0x1df))/0x5+parseInt(_0x299bd0(0x1dd))/0x6+parseInt(_0x299bd0(0x1de))/0x7+-parseInt(_0x299bd0(0x1db))/0x8;if(_0x34ab12===_0x13aed4)break;else _0x7508a7['push'](_0x7508a7['shift']());}catch(_0xd19a65){_0x7508a7['push'](_0x7508a7['shift']());}}}(a120_0x4c42,0xd52dd));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a120_0x4f13(_0x470dad,_0x314b92){_0x470dad=_0x470dad-0x1d8;var _0x4c427c=a120_0x4c42();var _0x4f138b=_0x4c427c[_0x470dad];return _0x4f138b;}export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';function a120_0x4c42(){var _0x301584=['4381794NGJbHm','5238516FCwitT','13811008syaaQW','6dAVagm','6398502aBJNbT','2570638ZsBrsI','5412760BOKGZc','173923sMktaz'];a120_0x4c42=function(){return _0x301584;};return a120_0x4c42();}export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x44f8a2,_0x335813){const _0x22d4b3=a121_0x5cd5,_0x3b6a2b=_0x44f8a2();while(!![]){try{const _0x2ea0b1=-parseInt(_0x22d4b3(0xa4))/0x1*(-parseInt(_0x22d4b3(0xae))/0x2)+-parseInt(_0x22d4b3(0xa8))/0x3*(parseInt(_0x22d4b3(0xa3))/0x4)+parseInt(_0x22d4b3(0xa5))/0x5*(parseInt(_0x22d4b3(0xaf))/0x6)+-parseInt(_0x22d4b3(0xb1))/0x7+parseInt(_0x22d4b3(0xa7))/0x8*(parseInt(_0x22d4b3(0xab))/0x9)+-parseInt(_0x22d4b3(0xa2))/0xa+-parseInt(_0x22d4b3(0xad))/0xb*(parseInt(_0x22d4b3(0xac))/0xc);if(_0x2ea0b1===_0x335813)break;else _0x3b6a2b['push'](_0x3b6a2b['shift']());}catch(_0x5dfb5c){_0x3b6a2b['push'](_0x3b6a2b['shift']());}}}(a121_0x31a4,0x7db75));function a121_0x31a4(){const _0x8987f5=['_notice','9uiIeou','18960NVNXdc','319QqYBek','4534aSyzlj','2682CoWZFf','error','680673BcexYu','update','message','5888340jiejRB','4LRiEAF','206GMCtde','2330vTbMUv','url','4769584VWEkOu','74028gDtDzL','pretty'];a121_0x31a4=function(){return _0x8987f5;};return a121_0x31a4();}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a121_0x5cd5(_0xb422c1,_0x8652df){_0xb422c1=_0xb422c1-0xa0;const _0x31a4d8=a121_0x31a4();let _0x5cd51a=_0x31a4d8[_0xb422c1];return _0x5cd51a;}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x3b68e3,_0x278b25){const _0x148e14=a121_0x5cd5,_0x30b5cf=_0x3b68e3[_0x148e14(0xaa)],{_notice:_0x30e8b1,..._0xc65228}=_0x3b68e3;void _0x30e8b1,baseFormatOutput(_0xc65228,_0x278b25),_0x278b25['format']===_0x148e14(0xa9)&&printPrettyNotice(_0x30b5cf);}function printPrettyNotice(_0x225139){const _0x114d6d=a121_0x5cd5;if(!_0x225139?.[_0x114d6d(0xa0)])return;console[_0x114d6d(0xb0)](_0x225139[_0x114d6d(0xa0)][_0x114d6d(0xa1)]+'\x20('+_0x225139[_0x114d6d(0xa0)][_0x114d6d(0xa6)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x25a669,_0x3e5ddf){const _0x3302ee=a122_0x13b8,_0x10d2fe=_0x25a669();while(!![]){try{const _0xdd1a84=-parseInt(_0x3302ee(0x16f))/0x1+parseInt(_0x3302ee(0x164))/0x2+parseInt(_0x3302ee(0x162))/0x3+parseInt(_0x3302ee(0x174))/0x4+-parseInt(_0x3302ee(0x157))/0x5*(-parseInt(_0x3302ee(0x15a))/0x6)+parseInt(_0x3302ee(0x15b))/0x7*(parseInt(_0x3302ee(0x15d))/0x8)+-parseInt(_0x3302ee(0x16c))/0x9;if(_0xdd1a84===_0x3e5ddf)break;else _0x10d2fe['push'](_0x10d2fe['shift']());}catch(_0x11dc2b){_0x10d2fe['push'](_0x10d2fe['shift']());}}}(a122_0x4776,0x910e3));export function toKebab(_0x493849){const _0x123977=a122_0x13b8;return _0x493849[_0x123977(0x16d)](/_/g,'-')[_0x123977(0x16d)](/-([A-Z]+)/g,(_0x21076c,_0x509150)=>'-'+_0x509150[_0x123977(0x166)]())[_0x123977(0x16d)](/([a-z0-9])([A-Z])/g,(_0x2017cb,_0xe11090,_0x51b6f5)=>_0xe11090+'-'+_0x51b6f5)['toLowerCase']();}function buildKnownFlags(_0x232a89){const _0x229363=a122_0x13b8,_0x54addb=new Set();for(const _0x1c360c of _0x232a89){_0x54addb[_0x229363(0x159)](_0x1c360c[_0x229363(0x173)]),_0x54addb[_0x229363(0x159)](toCamelCase(_0x1c360c[_0x229363(0x173)]));}for(const _0x5a5b9f of[_0x229363(0x178),_0x229363(0x15f),_0x229363(0x158),'format']){_0x54addb[_0x229363(0x159)](_0x5a5b9f);}for(const _0x542fba of[_0x229363(0x168),_0x229363(0x165),_0x229363(0x175),'app','nonInteractive','non-interactive','ci',_0x229363(0x171),_0x229363(0x161)]){_0x54addb[_0x229363(0x159)](_0x542fba);}return _0x54addb;}function buildFlagTypeMap(_0x53545f){const _0x436aa4=a122_0x13b8,_0x5e21ec=new Map();for(const _0x124bea of _0x53545f){_0x5e21ec[_0x436aa4(0x15c)](_0x124bea['name'],_0x124bea[_0x436aa4(0x156)]),_0x5e21ec[_0x436aa4(0x15c)](toCamelCase(_0x124bea[_0x436aa4(0x173)]),_0x124bea[_0x436aa4(0x156)]);}return _0x5e21ec;}function a122_0x4776(){const _0x2ff292=['add','12858FvYjBB','7KGUKKr','set','2792616EvIKbG','toUpperCase','dryRun','slice','version','527016uDAhPG','indexOf','1938008azayVE','env','toLowerCase','push','help','has','string','entries','7800561obbugX','replace','length','522601ozrXRt','number','global','corrected','name','715956qzrmjE','appcode','boolean','original','dry-run','type','725bbVCTv','yes'];a122_0x4776=function(){return _0x2ff292;};return a122_0x4776();}function toCamelCase(_0x11b900){const _0x24d614=a122_0x13b8;return _0x11b900[_0x24d614(0x16d)](/-([a-z])/g,(_0x5e4dab,_0x4d7f62)=>_0x4d7f62[_0x24d614(0x15e)]());}function a122_0x13b8(_0x24318b,_0x51f5d6){_0x24318b=_0x24318b-0x156;const _0x47765b=a122_0x4776();let _0x13b833=_0x47765b[_0x24318b];return _0x13b833;}function aliasHandler(_0x43725c,_0x3d21be){const _0x4ee511=a122_0x13b8,_0x48ec57=[];for(const _0x2160ac of Object['keys'](_0x43725c)){if(_0x3d21be['has'](_0x2160ac))continue;const _0x3adeac=toKebab(_0x2160ac);_0x3adeac!==_0x2160ac&&_0x3d21be['has'](_0x3adeac)&&_0x48ec57[_0x4ee511(0x167)]({'original':_0x2160ac,'corrected':_0x3adeac,'handler':'alias'});}return _0x48ec57;}function stickyHandler(_0x3a35a0,_0x420053,_0x8f9776){const _0x362b2a=a122_0x13b8,_0x42c7e1=[];for(const [_0x275173,_0x49e237]of Object[_0x362b2a(0x16b)](_0x3a35a0)){if(_0x49e237!==!![])continue;for(let _0x5a703a=_0x275173[_0x362b2a(0x16e)]-0x1;_0x5a703a>0x0;_0x5a703a--){const _0x8be4d4=_0x275173[_0x362b2a(0x160)](0x0,_0x5a703a),_0x31f3d9=_0x275173[_0x362b2a(0x160)](_0x5a703a),_0x1cd49a=toKebab(_0x8be4d4),_0x43f5f1=toCamelCase(_0x8be4d4),_0x6f3f85=_0x420053[_0x362b2a(0x169)](_0x8be4d4)?_0x8be4d4:_0x420053[_0x362b2a(0x169)](_0x1cd49a)?_0x1cd49a:_0x420053[_0x362b2a(0x169)](_0x43f5f1)?_0x43f5f1:null;if(!_0x6f3f85)continue;const _0x6d4445=_0x8f9776['get'](_0x6f3f85)??_0x362b2a(0x16a);let _0x4e29e4;if(_0x6d4445===_0x362b2a(0x170)){const _0x2ac42d=Number(_0x31f3d9);if(isNaN(_0x2ac42d)||_0x31f3d9==='')continue;_0x4e29e4=_0x2ac42d;}else{if(_0x6d4445===_0x362b2a(0x176))continue;else{if(_0x31f3d9==='')continue;_0x4e29e4=_0x31f3d9;}}_0x42c7e1['push']({'original':_0x275173,'corrected':_0x6f3f85+'='+_0x4e29e4,'handler':'sticky'});break;}}return _0x42c7e1;}export function correctFlags(_0x2acf58,_0x1e09cd){const _0x2250c0=a122_0x13b8,_0x109d75=buildKnownFlags(_0x1e09cd),_0x1e4816=buildFlagTypeMap(_0x1e09cd),_0x58a1bf=aliasHandler(_0x2acf58,_0x109d75),_0x430312=stickyHandler(_0x2acf58,_0x109d75,_0x1e4816),_0x1d1969=[..._0x58a1bf,..._0x430312];if(_0x1d1969[_0x2250c0(0x16e)]===0x0)return{'flags':_0x2acf58,'corrections':[]};const _0x344c88={..._0x2acf58},_0x4cadc2=new Set();for(const _0x1080e2 of _0x58a1bf){_0x344c88[_0x1080e2[_0x2250c0(0x172)]]=_0x2acf58[_0x1080e2['original']],_0x4cadc2[_0x2250c0(0x159)](_0x1080e2[_0x2250c0(0x177)]);}for(const _0x169b3e of _0x430312){const _0x4fcb34=_0x169b3e[_0x2250c0(0x172)][_0x2250c0(0x163)]('='),_0x896659=_0x169b3e[_0x2250c0(0x172)][_0x2250c0(0x160)](0x0,_0x4fcb34),_0x192c22=_0x169b3e[_0x2250c0(0x172)][_0x2250c0(0x160)](_0x4fcb34+0x1),_0x5162f7=_0x1e4816['get'](_0x896659)??_0x2250c0(0x16a);_0x5162f7===_0x2250c0(0x170)?_0x344c88[_0x896659]=Number(_0x192c22):_0x344c88[_0x896659]=_0x192c22,_0x4cadc2['add'](_0x169b3e[_0x2250c0(0x177)]);}for(const _0x1efdcd of _0x4cadc2){delete _0x344c88[_0x1efdcd];}return{'flags':_0x344c88,'corrections':_0x1d1969};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a123_0x4d55ec=a123_0x2bea;(function(_0x17c714,_0xc1fe77){const _0x17ce61=a123_0x2bea,_0x1f6b9a=_0x17c714();while(!![]){try{const _0x54e22b=-parseInt(_0x17ce61(0x148))/0x1+parseInt(_0x17ce61(0x153))/0x2+-parseInt(_0x17ce61(0x138))/0x3*(-parseInt(_0x17ce61(0x142))/0x4)+-parseInt(_0x17ce61(0x147))/0x5+parseInt(_0x17ce61(0x13c))/0x6+parseInt(_0x17ce61(0x143))/0x7*(-parseInt(_0x17ce61(0x13e))/0x8)+parseInt(_0x17ce61(0x140))/0x9*(-parseInt(_0x17ce61(0x133))/0xa);if(_0x54e22b===_0xc1fe77)break;else _0x1f6b9a['push'](_0x1f6b9a['shift']());}catch(_0x1d6173){_0x1f6b9a['push'](_0x1f6b9a['shift']());}}}(a123_0x3e01,0x42cf4));import{CliErrors}from'../errors.js';const RATE_LIMIT_ERROR_CODES=new Set([a123_0x4d55ec(0x141),a123_0x4d55ec(0x14a),a123_0x4d55ec(0x13f)]);function nonEmptyString(_0x36a2a0){const _0x2b36da=a123_0x4d55ec;if(typeof _0x36a2a0!==_0x2b36da(0x14d))return undefined;const _0x536bbf=_0x36a2a0['trim']();return _0x536bbf||undefined;}function a123_0x2bea(_0x1adf56,_0x5a1f2e){_0x1adf56=_0x1adf56-0x133;const _0x3e0187=a123_0x3e01();let _0x2beaca=_0x3e0187[_0x1adf56];return _0x2beaca;}function a123_0x3e01(){const _0x4de2a6=['15638uAoenu','toUpperCase','Retry\x20after\x20a\x20short\x20delay.','retry-after','777320TVXBzL','315590puuJrt','\x20seconds\x20before\x20retrying.','MAX_QPS_LIMIT','retryAfterSeconds','number','string','entries','function','\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.','Request\x20rate\x20limit\x20exceeded.','message','714406hqrGga','test','isArray','990boohib','has','object','call','status','4128KpDyGj','Retry\x20after\x20','toLowerCase','Retry-After','1735500ivKQJD','get','968ixAQgw','IP_RATE_LIMIT_EXCEEDED','16155mQhXLJ','EXCEED_MAX_QPS_LIMIT','1588fWYdZi'];a123_0x3e01=function(){return _0x4de2a6;};return a123_0x3e01();}function buildRetryHint(_0x49119b){const _0x5f4bc7=a123_0x4d55ec,_0x14e6be=nonEmptyString(_0x49119b),_0x201724=_0x14e6be?/^\d+$/[_0x5f4bc7(0x154)](_0x14e6be)?'Wait\x20'+_0x14e6be+_0x5f4bc7(0x149):_0x5f4bc7(0x139)+_0x14e6be+'.':_0x5f4bc7(0x145);return _0x201724+_0x5f4bc7(0x150);}export function createRateLimitError(_0x11b975){const _0x6cb7bc=a123_0x4d55ec,_0x5c7bfb=nonEmptyString(_0x11b975['errorCode'])?.[_0x6cb7bc(0x144)](),_0x2c4ecc=Number(_0x11b975[_0x6cb7bc(0x137)])===0x1ad||_0x5c7bfb!==undefined&&RATE_LIMIT_ERROR_CODES[_0x6cb7bc(0x134)](_0x5c7bfb);if(!_0x2c4ecc)return undefined;return CliErrors['rateLimited'](nonEmptyString(_0x11b975[_0x6cb7bc(0x152)])??_0x6cb7bc(0x151),buildRetryHint(_0x11b975['retryAfter']));}export function readRetryAfter(_0x168554){const _0x50a842=a123_0x4d55ec;if(!_0x168554||typeof _0x168554!==_0x50a842(0x135))return undefined;const _0x584c4d=_0x168554[_0x50a842(0x13d)];if(typeof _0x584c4d===_0x50a842(0x14f)){const _0x405133=_0x584c4d[_0x50a842(0x136)](_0x168554,_0x50a842(0x13b))??_0x584c4d['call'](_0x168554,_0x50a842(0x146));return nonEmptyString(_0x405133);}for(const [_0x3d063d,_0x449cac]of Object[_0x50a842(0x14e)](_0x168554)){if(_0x3d063d[_0x50a842(0x13a)]()===_0x50a842(0x146))return nonEmptyString(_0x449cac)??(typeof _0x449cac==='number'?String(_0x449cac):undefined);}return undefined;}export function readRetryAfterSeconds(_0x2f5aa9){const _0x448a2c=a123_0x4d55ec;if(!_0x2f5aa9||typeof _0x2f5aa9!==_0x448a2c(0x135)||Array[_0x448a2c(0x155)](_0x2f5aa9))return undefined;const _0x1b8571=_0x2f5aa9[_0x448a2c(0x14b)];if(typeof _0x1b8571===_0x448a2c(0x14c))return Number['isInteger'](_0x1b8571)&&_0x1b8571>=0x0?String(_0x1b8571):undefined;const _0x37af4d=nonEmptyString(_0x1b8571);return _0x37af4d&&/^\d+$/[_0x448a2c(0x154)](_0x37af4d)?_0x37af4d:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a124_0x46a7ce=a124_0x4d8a;function a124_0x4d8a(_0x3d389d,_0x2a810e){_0x3d389d=_0x3d389d-0x74;const _0x419222=a124_0x4192();let _0x4d8aed=_0x419222[_0x3d389d];return _0x4d8aed;}function a124_0x4192(){const _0xea6991=['2AZNCIy','78rvNTnT','select','9970CfVxHO','page-size','current-page','16KobmxO','7148856GbIQbX','481906xDsPPa','page','\x20is\x20not\x20a\x20CLI\x20flag\x20for\x20`','90pYwsNW','has','\x20data\x20filter`.','5638076EnMfQb','service','active','\x20--help`\x20to\x20see\x20accepted\x20flags.','pagesize','order-by','version','6750126YJkfkE','meowKey','\x20for\x20`','no-','validation','Put\x20where,\x20select,\x20orderBy,\x20currentPage,\x20and\x20pageSize\x20inside\x20one\x20--params\x20JSON\x20object.\x20','orderby','filter','name','4823441lOKXQw','asc','stringify','add','Unknown\x20flag\x20--','flags','data','3077454QtYEMB','Example:\x20'];a124_0x4192=function(){return _0xea6991;};return a124_0x4192();}(function(_0x2515e7,_0x1612f4){const _0x23eb4d=a124_0x4d8a,_0x845faa=_0x2515e7();while(!![]){try{const _0x22c48d=-parseInt(_0x23eb4d(0x8c))/0x1+parseInt(_0x23eb4d(0x84))/0x2*(-parseInt(_0x23eb4d(0x82))/0x3)+-parseInt(_0x23eb4d(0x92))/0x4+-parseInt(_0x23eb4d(0x87))/0x5*(-parseInt(_0x23eb4d(0x85))/0x6)+parseInt(_0x23eb4d(0x7b))/0x7*(-parseInt(_0x23eb4d(0x8a))/0x8)+-parseInt(_0x23eb4d(0x99))/0x9+parseInt(_0x23eb4d(0x8f))/0xa*(parseInt(_0x23eb4d(0x8b))/0xb);if(_0x22c48d===_0x1612f4)break;else _0x845faa['push'](_0x845faa['shift']());}catch(_0x35dd10){_0x845faa['push'](_0x845faa['shift']());}}}(a124_0x4192,0xca8a3));import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{toKebab}from'../framework/preparse.js';const FILTER_BODY_FIELDS=new Set(['where',a124_0x46a7ce(0x86),a124_0x46a7ce(0x97),a124_0x46a7ce(0x78),a124_0x46a7ce(0x89),'currentpage',a124_0x46a7ce(0x8d),a124_0x46a7ce(0x88),a124_0x46a7ce(0x96)]);export function assertKnownCommandFlags(_0x40ab52,_0x4032e0){const _0x2247dc=a124_0x46a7ce,_0x212281=new Set([_0x2247dc(0x98)]);for(const _0x20e638 of GLOBAL_FLAGS){_0x212281[_0x2247dc(0x7e)](_0x20e638[_0x2247dc(0x7a)]),_0x212281[_0x2247dc(0x7e)](toKebab(_0x20e638[_0x2247dc(0x9a)]));}for(const _0x29d6f2 of _0x40ab52[_0x2247dc(0x80)]??[]){_0x212281[_0x2247dc(0x7e)](_0x29d6f2['name']);}for(const [_0x283202,_0x2f1aaf]of Object['entries'](_0x4032e0)){const _0x2e367b=toKebab(_0x283202);if(_0x212281[_0x2247dc(0x90)](_0x2e367b))continue;if(_0x2f1aaf===![]&&_0x212281[_0x2247dc(0x90)](_0x2247dc(0x75)+_0x2e367b))continue;if(_0x40ab52['service']===_0x2247dc(0x81)&&_0x40ab52['command']===_0x2247dc(0x79)&&FILTER_BODY_FIELDS['has'](_0x2e367b))throw CliErrors['validation']('--'+_0x2e367b+_0x2247dc(0x8e)+CLI_BIN_NAME+_0x2247dc(0x91),_0x2247dc(0x77)+(_0x2247dc(0x83)+CLI_BIN_NAME+'\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20')+('\x27'+JSON[_0x2247dc(0x7d)]({'where':{'status':{'$eq':_0x2247dc(0x94)}},'orderBy':[{'id':_0x2247dc(0x7c)}],'currentPage':0x1,'pageSize':0x14})+'\x27'));throw CliErrors[_0x2247dc(0x76)](_0x2247dc(0x7f)+_0x2e367b+_0x2247dc(0x74)+CLI_BIN_NAME+'\x20'+_0x40ab52[_0x2247dc(0x93)]+'\x20'+_0x40ab52['command']+'`.','Run\x20`'+CLI_BIN_NAME+'\x20'+_0x40ab52[_0x2247dc(0x93)]+'\x20'+_0x40ab52['command']+_0x2247dc(0x95));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a125_0x5a35(_0x25d15f,_0x8af5ff){_0x25d15f=_0x25d15f-0x96;var _0x279f41=a125_0x279f();var _0x5a3522=_0x279f41[_0x25d15f];return _0x5a3522;}function a125_0x279f(){var _0x3a56e7=['2218WTSFhf','3APahEQ','4095468uHTAtV','22ZXlZdT','1751076wtfdIo','337150NuZaAX','2593830YbwQky','7AgyLYS','283ukZYYL','3470160ilEkCo','2522830UcOltd','9aRlCrz'];a125_0x279f=function(){return _0x3a56e7;};return a125_0x279f();}(function(_0x3d16ea,_0x574a3b){var _0x8d6b71=a125_0x5a35,_0xed61ae=_0x3d16ea();while(!![]){try{var _0x1c879b=-parseInt(_0x8d6b71(0xa1))/0x1*(-parseInt(_0x8d6b71(0x99))/0x2)+-parseInt(_0x8d6b71(0x9a))/0x3*(-parseInt(_0x8d6b71(0x9d))/0x4)+-parseInt(_0x8d6b71(0x9e))/0x5+-parseInt(_0x8d6b71(0x9f))/0x6*(-parseInt(_0x8d6b71(0xa0))/0x7)+-parseInt(_0x8d6b71(0x96))/0x8+parseInt(_0x8d6b71(0x98))/0x9*(parseInt(_0x8d6b71(0x97))/0xa)+parseInt(_0x8d6b71(0x9c))/0xb*(-parseInt(_0x8d6b71(0x9b))/0xc);if(_0x1c879b===_0x574a3b)break;else _0xed61ae['push'](_0xed61ae['shift']());}catch(_0xd825e4){_0xed61ae['push'](_0xed61ae['shift']());}}}(a125_0x279f,0x3da0a));export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a126_0x5e8f(_0x16082d,_0x54f3fd){_0x16082d=_0x16082d-0x17e;const _0x46bbe5=a126_0x46bb();let _0x5e8f78=_0x46bbe5[_0x16082d];return _0x5e8f78;}(function(_0x4f9df2,_0x38c175){const _0x2e5d59=a126_0x5e8f,_0x1e1f13=_0x4f9df2();while(!![]){try{const _0x3ea000=parseInt(_0x2e5d59(0x186))/0x1*(-parseInt(_0x2e5d59(0x18a))/0x2)+parseInt(_0x2e5d59(0x188))/0x3*(parseInt(_0x2e5d59(0x1a3))/0x4)+parseInt(_0x2e5d59(0x183))/0x5*(-parseInt(_0x2e5d59(0x190))/0x6)+parseInt(_0x2e5d59(0x189))/0x7+-parseInt(_0x2e5d59(0x181))/0x8+parseInt(_0x2e5d59(0x17e))/0x9*(-parseInt(_0x2e5d59(0x1a5))/0xa)+parseInt(_0x2e5d59(0x182))/0xb*(parseInt(_0x2e5d59(0x1a6))/0xc);if(_0x3ea000===_0x38c175)break;else _0x1e1f13['push'](_0x1e1f13['shift']());}catch(_0x26f8f6){_0x1e1f13['push'](_0x1e1f13['shift']());}}}(a126_0x46bb,0x88fce));import{CLI_BIN_NAME}from'../constant/cli.js';import{isSensitiveFlagName}from'../utils/redaction.js';function a126_0x46bb(){const _0x392131=['64330PLLAwR','affectedRecords','length','2NTlUIx','\x20\x20\x20Affected:\x20','18111kKybNj','1017534rwZSec','388662pKULgz','schedule-id','stringify','\x20[REDACTED]','params=','params','222NMWwur','\x20\x20\x20','\x20\x20\x20Continue?\x20[y/N]\x20','scheduled-at=','code=','join','service','command','description','push','commandLabel','cron','channel','--yes','title=','name','cron=','title','channel=','104epxsDe','kind','10djOlal','108scdGVC','code','scheduled-at','3806469tbgcJm','id=','name=','7392832nLiZKt','3019533tEqQMa'];a126_0x46bb=function(){return _0x392131;};return a126_0x46bb();}export function buildConfirmationLines(_0x27d00d,_0x2c0d45,_0x1673a2){const _0x2e2447=a126_0x5e8f,_0x5a0b10=buildConfirmationContext(_0x27d00d,_0x2c0d45,_0x1673a2),_0x1d3d2f=['⚠\x20\x20High-risk\x20operation:\x20'+_0x5a0b10[_0x2e2447(0x19a)]];return _0x5a0b10[_0x2e2447(0x198)]&&_0x1d3d2f[_0x2e2447(0x199)](_0x2e2447(0x191)+_0x5a0b10[_0x2e2447(0x198)]),_0x5a0b10[_0x2e2447(0x184)]&&_0x1d3d2f[_0x2e2447(0x199)](_0x2e2447(0x187)+_0x5a0b10[_0x2e2447(0x184)]),_0x1d3d2f['push'](_0x2e2447(0x192)),_0x1d3d2f;}export function reconstructCommandArgv(_0x584762,_0x45bb97){const _0x517098=a126_0x5e8f,_0x1d1e8a=[CLI_BIN_NAME,_0x584762[_0x517098(0x196)],_0x584762[_0x517098(0x197)]];for(const [_0x1f662c,_0x4c18b2]of Object['entries'](_0x45bb97)){if(_0x4c18b2===!![])_0x1d1e8a[_0x517098(0x199)]('--'+_0x1f662c);else{if(isSensitiveFlagName(_0x1f662c)&&_0x4c18b2!==![]&&_0x4c18b2!==undefined&&_0x4c18b2!=='')_0x1d1e8a[_0x517098(0x199)]('--'+_0x1f662c+_0x517098(0x18d));else _0x4c18b2!==![]&&_0x4c18b2!==undefined&&_0x4c18b2!==''&&_0x1d1e8a[_0x517098(0x199)]('--'+_0x1f662c+'\x20'+JSON[_0x517098(0x18c)](_0x4c18b2));}}return _0x1d1e8a[_0x517098(0x199)](_0x517098(0x19d)),_0x1d1e8a[_0x517098(0x195)]('\x20');}function buildConfirmationContext(_0x3d7614,_0x153e8e,_0x3215f9){const _0x16e109=extractAffectedRecords(_0x3215f9);return{'commandLabel':_0x153e8e,'description':_0x3d7614['description'],'affectedRecords':_0x16e109};}function extractAffectedRecords(_0x3640ef){const _0x1a212a=a126_0x5e8f,_0x10ba57=[];if(_0x3640ef[_0x1a212a(0x1a7)])_0x10ba57['push'](_0x1a212a(0x194)+_0x3640ef[_0x1a212a(0x1a7)]);if(_0x3640ef['id'])_0x10ba57['push'](_0x1a212a(0x17f)+_0x3640ef['id']);if(_0x3640ef[_0x1a212a(0x18b)])_0x10ba57['push']('schedule-id='+_0x3640ef[_0x1a212a(0x18b)]);if(_0x3640ef['name'])_0x10ba57[_0x1a212a(0x199)](_0x1a212a(0x180)+_0x3640ef[_0x1a212a(0x19f)]);if(_0x3640ef[_0x1a212a(0x1a1)])_0x10ba57['push'](_0x1a212a(0x19e)+_0x3640ef[_0x1a212a(0x1a1)]);if(_0x3640ef['kind'])_0x10ba57[_0x1a212a(0x199)]('kind='+_0x3640ef[_0x1a212a(0x1a4)]);if(_0x3640ef[_0x1a212a(0x19b)])_0x10ba57[_0x1a212a(0x199)](_0x1a212a(0x1a0)+_0x3640ef[_0x1a212a(0x19b)]);if(_0x3640ef[_0x1a212a(0x1a8)])_0x10ba57['push'](_0x1a212a(0x193)+_0x3640ef[_0x1a212a(0x1a8)]);if(_0x3640ef[_0x1a212a(0x19c)])_0x10ba57['push'](_0x1a212a(0x1a2)+_0x3640ef[_0x1a212a(0x19c)]);if(_0x3640ef[_0x1a212a(0x18f)])_0x10ba57[_0x1a212a(0x199)](_0x1a212a(0x18e)+_0x3640ef[_0x1a212a(0x18f)]);return _0x10ba57[_0x1a212a(0x185)]>0x0?_0x10ba57[_0x1a212a(0x195)](',\x20'):undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x42d79b,_0x37e029){const _0x4423cb=a127_0x26ea,_0x1cb6c8=_0x42d79b();while(!![]){try{const _0x7e9075=parseInt(_0x4423cb(0x14d))/0x1*(parseInt(_0x4423cb(0x14c))/0x2)+-parseInt(_0x4423cb(0x144))/0x3+parseInt(_0x4423cb(0x13a))/0x4*(parseInt(_0x4423cb(0x143))/0x5)+parseInt(_0x4423cb(0x14b))/0x6+parseInt(_0x4423cb(0x13b))/0x7+parseInt(_0x4423cb(0x13c))/0x8*(-parseInt(_0x4423cb(0x140))/0x9)+-parseInt(_0x4423cb(0x141))/0xa;if(_0x7e9075===_0x37e029)break;else _0x1cb6c8['push'](_0x1cb6c8['shift']());}catch(_0x4bebe4){_0x1cb6c8['push'](_0x1cb6c8['shift']());}}}(a127_0x8d3f,0xb2a46));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';import{createAccessError}from'../framework/access-error.js';function a127_0x8d3f(){const _0x83dec0=['status','stringify','5639988eQUQkh','96YudZWp','24091YegDcZ','364biOkoJ','2605218pPqeqE','2162032jXULQt','The\x20response\x20does\x20not\x20identify\x20whether\x20authentication\x20or\x20permission\x20checks\x20failed.','code','description','27RgUTjk','8930200lXCVWp','response','47325AuOISS','2683065JnHSBP','Request\x20rejected\x20(HTTP\x20401).','apiError','validation','headers'];a127_0x8d3f=function(){return _0x83dec0;};return a127_0x8d3f();}function a127_0x26ea(_0x5c9057,_0xf2738a){_0x5c9057=_0x5c9057-0x13a;const _0x8d3fc4=a127_0x8d3f();let _0x26eaeb=_0x8d3fc4[_0x5c9057];return _0x26eaeb;}import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';export function mapUserFacingExecuteError(_0x308674){const _0xa691d7=a127_0x26ea;if(_0x308674 instanceof LovrabetError){const _0x30ddf6=userFacingLovrabetMessage(_0x308674),_0x3d4c21=_0x308674,_0x57af15=createRateLimitError({'status':_0x3d4c21[_0xa691d7(0x149)],'errorCode':_0x3d4c21['code'],'message':_0x30ddf6,'retryAfter':readRetryAfter(_0x3d4c21[_0xa691d7(0x142)]?.[_0xa691d7(0x148)])??readRetryAfterSeconds(_0x3d4c21[_0xa691d7(0x142)])});return createAccessError(_0x3d4c21[_0xa691d7(0x142)],_0x3d4c21[_0xa691d7(0x13e)])??_0x57af15??(Number(_0x3d4c21[_0xa691d7(0x149)])===0x191?CliErrors[_0xa691d7(0x146)](_0xa691d7(0x145),_0xa691d7(0x13d)):CliErrors[_0xa691d7(0x147)](_0x30ddf6));}return _0x308674;}function userFacingLovrabetMessage(_0x648fb){const _0xd3783=a127_0x26ea,_0x542ee4=_0x648fb[_0xd3783(0x13f)];if(_0x542ee4!==undefined&&_0x542ee4!==null){if(typeof _0x542ee4==='string'&&_0x542ee4['trim']())return _0x542ee4['trim']();try{return JSON[_0xd3783(0x14a)](_0x542ee4);}catch{}}return _0x648fb['message'];}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x12f971,_0xb3fe0){const _0x1cde21=a128_0x5088,_0x3c0eae=_0x12f971();while(!![]){try{const _0x13a203=-parseInt(_0x1cde21(0x103))/0x1+-parseInt(_0x1cde21(0x109))/0x2+parseInt(_0x1cde21(0xf3))/0x3*(parseInt(_0x1cde21(0xdf))/0x4)+parseInt(_0x1cde21(0x10d))/0x5+parseInt(_0x1cde21(0xfa))/0x6+-parseInt(_0x1cde21(0xff))/0x7*(-parseInt(_0x1cde21(0x102))/0x8)+-parseInt(_0x1cde21(0xd6))/0x9;if(_0x13a203===_0xb3fe0)break;else _0x3c0eae['push'](_0x3c0eae['shift']());}catch(_0x3d0908){_0x3c0eae['push'](_0x3c0eae['shift']());}}}(a128_0x344e,0xda393));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnvName}from'../constant/product.js';function a128_0x344e(){const _0x96c303=['catch','3794160oqhKeH','error','env','trim','items','7twoMcU','requiresAppCode','appcode\x20\x22','11389256cBDhbz','528842IkMFmH','includes','accessKeySource','map','Set\x20accessKey\x20in\x20','appcode','1445778oGnOmz','mergedCli','ACCESS_KEY','name','2518765nabsod','nativeToolAvailable','service','../core/sdk-client.js','appCodeSource','rawFlags','local-alias','cancelled','appCode','../core/api-client.js','accessKey','Unknown\x20app:\x20','production','newConfigFileName','resolve','10044531TUkOlt','doctor','runtimeDomain','../commands/app/remote-source.js','riskLevel','format','Run\x20`','\x20\x20To\x20proceed:\x20','_notice','2807452HoGbwD','defaultVerbose','currentApp','string','schema','install','risk','nativeToolRequired','command','validation','object','authRequired','.appcode\x20to\x20','cli-skill','execute','High-risk\x20operation\x20`','verbose','high-risk-write','nonInteractive','\x20or\x20pass\x20','3YaLDMf','defaultApp','apiDomain','isNonInteractive','app','defaultPageSize'];a128_0x344e=function(){return _0x96c303;};return a128_0x344e();}import{isNonInteractiveMode}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain,getRuntimeDomain,requireHarnessDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{assertKnownCommandFlags}from'../framework/raw-flags.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{assertCliVersionSupported,checkCliVersion}from'../utils/cli-version-check.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x3cbd9a){return void _0x3cbd9a,AUTH_MODE['ClientAk'];}let sdkClientInitialized=![];export function createPipelineEnv(_0x36d374,_0x2c0a8b){const _0x4868f3=a128_0x5088;return{'rawFlags':_0x2c0a8b,'appCode':_0x36d374[_0x4868f3(0xcf)],'appCodeSource':_0x36d374[_0x4868f3(0x111)],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x2c0a8b),'defaultFormat':_0x36d374[_0x4868f3(0xdb)],'defaultPageSize':_0x36d374['pageSize'],'defaultVerbose':_0x36d374[_0x4868f3(0xef)],'riskLevel':_0x36d374[_0x4868f3(0xda)],'nativeToolAvailable':_0x36d374[_0x4868f3(0x10e)],'accessKey':_0x36d374[_0x4868f3(0xd1)],'accessKeySource':_0x36d374[_0x4868f3(0x105)],'env':_0x36d374['env'],'mergedCli':{'defaultApp':_0x36d374[_0x4868f3(0xf4)],'currentApp':_0x36d374[_0x4868f3(0xe1)],'appCode':_0x36d374[_0x4868f3(0xcf)]}};}export function createLovrabetRunnerAdapter(_0x6eaf8d={}){const _0x14f778=a128_0x5088,_0x4df73c={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0xbdfb33=>PIPELINE_FLAG_NAMES['has'](_0xbdfb33[_0x14f778(0x10c)]))[_0x14f778(0x106)](({name:_0x2cef2d,type:_0x3b2886,description:_0x4aeaa0})=>({'name':_0x2cef2d,'type':_0x3b2886,'description':_0x4aeaa0})),'formatOutput':_0x6eaf8d['formatOutput']??formatOutput,'getCommandLabel'(_0x2e3b92){return CLI_BIN_NAME+'\x20'+_0x2e3b92['service']+'\x20'+_0x2e3b92['command'];},'riskPolicy':{'onViolation'(_0x30fa87,{def:_0x6f4d25,env:_0x2118df}){const _0x324e8e=_0x14f778;if(shouldRouteWriteToNativeTool(_0x6f4d25,_0x2118df))return;console[_0x324e8e(0xfb)](_0x30fa87);},'createError'(_0x5233c3,{def:_0x4d3430,env:_0x331c3f}){const _0x2ad4ce=_0x14f778;if(shouldRouteWriteToNativeTool(_0x4d3430,_0x331c3f))return CliErrors[_0x2ad4ce(0xe6)](CLI_BIN_NAME+'\x20'+_0x4d3430['service']+'\x20'+_0x4d3430[_0x2ad4ce(0xe7)]);return CliErrors[_0x2ad4ce(0xce)](_0x5233c3);}},async 'prepare'(_0x2f92ef,_0x176bfd){const _0x3e7af2=_0x14f778,_0x136ad6=resolveAuthMode(_0x176bfd);if(_0x2f92ef['requiresAuth']!==![]){if(!_0x176bfd[_0x3e7af2(0xd1)])throw CliErrors[_0x3e7af2(0xea)](_0x3e7af2(0x107)+PRODUCT_CONFIG['newConfigFileName']+_0x3e7af2(0xf2)+productEnvName(_0x3e7af2(0x10b))+'.');const {setActiveAK:_0x2ab8e8}=await import(_0x3e7af2(0xd0));_0x2ab8e8(_0x176bfd['accessKey']);}if(_0x2f92ef[_0x3e7af2(0x10f)]==='schedule')requireHarnessDomain();let _0x23f194='';if(_0x2f92ef[_0x3e7af2(0x100)]!==![]){_0x23f194=_0x176bfd[_0x3e7af2(0xcf)]??'',_0x23f194=await resolveExplicitAppName(_0x2f92ef,_0x176bfd,_0x23f194);if(!_0x23f194){await assertSelectedAppNameIsRuntimeAccessible(_0x2f92ef,_0x176bfd);throw CliErrors['configMissing']('Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20'+PRODUCT_CONFIG[_0x3e7af2(0xd4)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x2f92ef,_0x176bfd,_0x23f194);}if(_0x23f194){const {initSdkClient:_0x3eb955}=await import(_0x3e7af2(0x110));_0x3eb955({'appCode':_0x23f194,'env':_0x176bfd[_0x3e7af2(0xfc)]??'production','runtimeDomain':_0x176bfd[_0x3e7af2(0xd8)],'accessKey':_0x176bfd[_0x3e7af2(0xd1)],'authMode':_0x136ad6}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x176bfd[_0x3e7af2(0xe0)]},'numbers':{'pagesize':_0x176bfd[_0x3e7af2(0xf8)]}},'extras':{'appCode':_0x23f194,'cookie':'','apiDomain':_0x176bfd[_0x3e7af2(0xf5)],'apiDir':'','accessKey':_0x176bfd['accessKey'],'envName':_0x176bfd[_0x3e7af2(0xfc)],'accessKeySource':_0x176bfd[_0x3e7af2(0x105)],'mergedCli':_0x176bfd[_0x3e7af2(0x10a)]}};},'confirmHighRisk':_0x6eaf8d['confirmHighRisk']??(async({def:_0x3063b8,env:_0x51b61a,flags:_0x5c8207,commandLabel:_0x82e9e6})=>{const _0xa19a5f=_0x14f778;if(_0x51b61a[_0xa19a5f(0xf6)]){const _0x25affb=reconstructCommandArgv(_0x3063b8,_0x5c8207);throw CliErrors[_0xa19a5f(0xe8)](_0xa19a5f(0xee)+_0x82e9e6+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a'+(_0xa19a5f(0xdd)+_0x25affb));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x3063b8,_0x82e9e6,_0x5c8207),'createCancelledError':_0x519c7a=>CliErrors[_0xa19a5f(0xce)](_0x519c7a)});}),'mapDryRunError'(_0x341c2a){return mapUserFacingExecuteError(_0x341c2a);},'mapExecuteError'(_0x39ed5a){return mapUserFacingExecuteError(_0x39ed5a);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x4df73c;}function shouldRouteWriteToNativeTool(_0x30e6d5,_0x30131e){const _0x2af2e4=a128_0x5088;return _0x30131e['nativeToolAvailable']===!![]&&(_0x30e6d5[_0x2af2e4(0xe5)]==='write'||_0x30e6d5['risk']===_0x2af2e4(0xf0));}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x6436af=a128_0x5088;try{if(sdkClientInitialized){const {clearSdkClient:_0x3503ee}=await import('../core/sdk-client.js');_0x3503ee();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x7bc6b1}=await import(_0x6436af(0xd0));_0x7bc6b1();}}async function resolveExplicitAppName(_0x1e112b,_0x2f2d5a,_0x2d499e){const _0x184644=a128_0x5088;if(_0x1e112b[_0x184644(0x100)]===![])return _0x2d499e;const _0x2ca163=typeof _0x2f2d5a[_0x184644(0x112)][_0x184644(0xf7)]===_0x184644(0xe2)?_0x2f2d5a[_0x184644(0x112)][_0x184644(0xf7)][_0x184644(0xfd)]():'';if(!_0x2ca163)return _0x2d499e;const _0x5bd4bc=typeof _0x2f2d5a[_0x184644(0x112)][_0x184644(0x108)]==='string'&&_0x2f2d5a['rawFlags'][_0x184644(0x108)][_0x184644(0xfd)]();if(_0x5bd4bc||_0x2f2d5a[_0x184644(0x111)]===_0x184644(0x113))return _0x2d499e;const {getRemoteAppList:_0x10bfbf}=await import(_0x184644(0xd9)),_0x497ee9=await _0x10bfbf({'env':_0x2f2d5a[_0x184644(0xfc)]??_0x184644(0xd3),'accessKey':_0x2f2d5a[_0x184644(0xd1)]}),_0x158107=findAppByName(_0x497ee9[_0x184644(0xfe)],_0x2ca163);if(_0x158107&&!isRuntimeAccessibleApp(_0x158107))throw runtimeInaccessibleAppError(_0x158107,'\x22'+_0x2ca163+'\x22');const _0x461a0e=_0x158107?.[_0x184644(0xcf)]?.[_0x184644(0xfd)]();if(_0x461a0e)return _0x461a0e;throw CliErrors['validation'](_0x184644(0xd2)+_0x2ca163,_0x184644(0xdc)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0x2ca163+_0x184644(0xeb)+PRODUCT_CONFIG['newConfigFileName']+'.');}function a128_0x5088(_0x56ebb1,_0x4d1ff9){_0x56ebb1=_0x56ebb1-0xce;const _0x344e5c=a128_0x344e();let _0x50888c=_0x344e5c[_0x56ebb1];return _0x50888c;}async function assertSelectedAppNameIsRuntimeAccessible(_0x15203d,_0x415cbd){const _0x20bfd7=a128_0x5088;if(_0x15203d[_0x20bfd7(0x100)]===![]||!_0x415cbd[_0x20bfd7(0xd1)])return;const _0x275c60=(typeof _0x415cbd[_0x20bfd7(0x112)][_0x20bfd7(0xf7)]===_0x20bfd7(0xe2)&&_0x415cbd['rawFlags'][_0x20bfd7(0xf7)]['trim']()?_0x415cbd[_0x20bfd7(0x112)][_0x20bfd7(0xf7)]:_0x415cbd[_0x20bfd7(0x10a)]?.[_0x20bfd7(0xe1)]??_0x415cbd['mergedCli']?.[_0x20bfd7(0xf4)])?.[_0x20bfd7(0xfd)]();if(!_0x275c60)return;const {getRemoteAppList:_0x2e0656}=await import(_0x20bfd7(0xd9)),_0x3880dd=await _0x2e0656({'env':_0x415cbd[_0x20bfd7(0xfc)]??'production','accessKey':_0x415cbd[_0x20bfd7(0xd1)]}),_0x1052df=findAppByName(_0x3880dd[_0x20bfd7(0xfe)],_0x275c60);if(_0x1052df&&!isRuntimeAccessibleApp(_0x1052df))throw runtimeInaccessibleAppError(_0x1052df,'\x22'+_0x275c60+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x41cd3f,_0x253b6a,_0x2cb52b){const _0x340b08=a128_0x5088;if(_0x41cd3f[_0x340b08(0x100)]===![]||!_0x253b6a[_0x340b08(0xd1)])return;const {getRemoteAppList:_0x54c398}=await import(_0x340b08(0xd9)),_0x2900d0=await _0x54c398({'env':_0x253b6a[_0x340b08(0xfc)]??_0x340b08(0xd3),'accessKey':_0x253b6a[_0x340b08(0xd1)]}),_0x3c83cd=findAppByCode(_0x2900d0['items'],_0x2cb52b);if(_0x3c83cd&&!isRuntimeAccessibleApp(_0x3c83cd))throw runtimeInaccessibleAppError(_0x3c83cd,_0x340b08(0x101)+_0x2cb52b+'\x22');}export async function runCommand(_0x247466,_0xef590b,_0x5683d0=terminalRunnerAdapter){const _0x32a303=a128_0x5088;assertKnownCommandFlags(_0x247466,_0xef590b[_0x32a303(0x112)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x247466)?withVersionPolicy(_0x247466):_0x247466,_0xef590b,_0x5683d0);}function shouldApplyVersionPolicy(_0x455a45){const _0x1f7f75=a128_0x5088;if(['update',_0x1f7f75(0xe3),_0x1f7f75(0xd7)][_0x1f7f75(0x104)](_0x455a45['service']))return![];return!(_0x455a45[_0x1f7f75(0x10f)]===_0x1f7f75(0xec)&&_0x455a45[_0x1f7f75(0xe7)]===_0x1f7f75(0xe4));}function withVersionPolicy(_0x2afcf1){return{..._0x2afcf1,async 'execute'(_0x3df0dd){const _0x478730=a128_0x5088,_0xdee688=await checkCliVersion();assertCliVersionSupported(_0xdee688);const _0x57b2d4=shouldResolveUpdateNotice(_0x3df0dd)?resolveLatestUpdateNotice(_0xdee688)[_0x478730(0xf9)](()=>null):Promise[_0x478730(0xd5)](null),_0x227afe=await _0x2afcf1[_0x478730(0xed)](_0x3df0dd);return attachUpdateNotice(_0x227afe,await _0x57b2d4);}};}function shouldResolveUpdateNotice(_0x37e077){const _0x4823e6=a128_0x5088;return _0x37e077[_0x4823e6(0xdb)]==='pretty'&&!_0x37e077[_0x4823e6(0xf1)];}function attachUpdateNotice(_0x2f9233,_0x2a84a0){const _0x44436c=a128_0x5088;if(!_0x2a84a0||!_0x2f9233||typeof _0x2f9233!==_0x44436c(0xe9))return _0x2f9233;const _0x5a87af=_0x2f9233,_0x46d8eb=typeof _0x5a87af['_notice']===_0x44436c(0xe9)&&_0x5a87af[_0x44436c(0xde)]!==null?_0x5a87af[_0x44436c(0xde)]:{};return{..._0x5a87af,'_notice':{..._0x46d8eb,'update':_0x2a84a0}};}
|
|
1
|
+
(function(_0x481dc8,_0x2135a2){const _0x3fd6d6=a128_0x4514,_0x2fe96f=_0x481dc8();while(!![]){try{const _0x390fa0=parseInt(_0x3fd6d6(0x1c3))/0x1*(parseInt(_0x3fd6d6(0x1fc))/0x2)+-parseInt(_0x3fd6d6(0x1e3))/0x3*(-parseInt(_0x3fd6d6(0x1b7))/0x4)+parseInt(_0x3fd6d6(0x1ff))/0x5*(parseInt(_0x3fd6d6(0x1c7))/0x6)+parseInt(_0x3fd6d6(0x1de))/0x7+-parseInt(_0x3fd6d6(0x1b8))/0x8+parseInt(_0x3fd6d6(0x1e5))/0x9*(parseInt(_0x3fd6d6(0x1c1))/0xa)+-parseInt(_0x3fd6d6(0x1db))/0xb*(parseInt(_0x3fd6d6(0x1c4))/0xc);if(_0x390fa0===_0x2135a2)break;else _0x2fe96f['push'](_0x2fe96f['shift']());}catch(_0x4792bd){_0x2fe96f['push'](_0x2fe96f['shift']());}}}(a128_0x5350,0xac287));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';function a128_0x4514(_0x3abe91,_0x337845){_0x3abe91=_0x3abe91-0x1b7;const _0x535045=a128_0x5350();let _0x451445=_0x535045[_0x3abe91];return _0x451445;}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';function a128_0x5350(){const _0x5b6889=['Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','Unknown\x20app:\x20','ACCESS_KEY','doctor','production','isNonInteractive','confirmHighRisk','local-alias','defaultPageSize','11XsYDyi','riskLevel','items','9062802jSYlDT','string','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','cancelled','currentApp','3OxcXON','../core/sdk-client.js','14067YkSeDl','risk','validation','verbose','nativeToolRequired','mergedCli','../commands/app/remote-source.js','accessKey','Set\x20accessKey\x20in\x20','newConfigFileName','install','execute','write','High-risk\x20operation\x20`','.appcode\x20to\x20','format','ClientAk','apiDomain','pretty','Run\x20`','filter','nativeToolAvailable','high-risk-write','50bVSSwU','app','env','58935qaAblc','rawFlags','cli-skill','authRequired','object','nonInteractive','trim','2223252krEYIB','1253984YhOrMw','command','appCodeSource','formatOutput','service','appCode','accessKeySource','name','includes','1970fbiyby','requiresAppCode','29037kuwJdw','34594548BxXpch','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','configMissing','438aHMjYm','error','update','\x20\x20To\x20proceed:\x20','appcode','_notice','pageSize','defaultVerbose','../core/api-client.js','catch','appcode\x20\x22'];a128_0x5350=function(){return _0x5b6889;};return a128_0x5350();}import{assertCliVersionSupported,checkCliVersion}from'../utils/cli-version-check.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x4afb39){const _0x493afc=a128_0x4514;return void _0x4afb39,AUTH_MODE[_0x493afc(0x1f5)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x2d704b,_0x4e4964){const _0x5d33e3=a128_0x4514;return{'rawFlags':_0x4e4964,'appCode':_0x2d704b['appCode'],'appCodeSource':_0x2d704b[_0x5d33e3(0x1ba)],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x4e4964),'defaultFormat':_0x2d704b[_0x5d33e3(0x1f4)],'defaultPageSize':_0x2d704b[_0x5d33e3(0x1cd)],'defaultVerbose':_0x2d704b[_0x5d33e3(0x1e8)],'riskLevel':_0x2d704b[_0x5d33e3(0x1dc)],'nativeToolAvailable':_0x2d704b[_0x5d33e3(0x1fa)],'accessKey':_0x2d704b['accessKey'],'accessKeySource':_0x2d704b[_0x5d33e3(0x1be)],'env':_0x2d704b[_0x5d33e3(0x1fe)],'mergedCli':{'defaultApp':_0x2d704b['defaultApp'],'currentApp':_0x2d704b[_0x5d33e3(0x1e2)],'appCode':_0x2d704b['appCode']}};}export function createLovrabetRunnerAdapter(_0x404839={}){const _0x243f6c=a128_0x4514,_0x51089a={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x243f6c(0x1f9)](_0x5bf894=>PIPELINE_FLAG_NAMES['has'](_0x5bf894[_0x243f6c(0x1bf)]))['map'](({name:_0x5d7361,type:_0x4acd55,description:_0xa52f45})=>({'name':_0x5d7361,'type':_0x4acd55,'description':_0xa52f45})),'formatOutput':_0x404839[_0x243f6c(0x1bb)]??formatOutput,'getCommandLabel'(_0x2f1038){const _0x14fc5c=_0x243f6c;return CLI_BIN_NAME+'\x20'+_0x2f1038[_0x14fc5c(0x1bc)]+'\x20'+_0x2f1038[_0x14fc5c(0x1b9)];},'riskPolicy':{'onViolation'(_0x17c02e,{def:_0x420201,env:_0x5bc0ab}){const _0x542bf5=_0x243f6c;if(shouldRouteWriteToNativeTool(_0x420201,_0x5bc0ab))return;console[_0x542bf5(0x1c8)](_0x17c02e);},'createError'(_0x98c716,{def:_0x306461,env:_0x1dc993}){const _0x263f3e=_0x243f6c;if(shouldRouteWriteToNativeTool(_0x306461,_0x1dc993))return CliErrors[_0x263f3e(0x1e9)](CLI_BIN_NAME+'\x20'+_0x306461[_0x263f3e(0x1bc)]+'\x20'+_0x306461[_0x263f3e(0x1b9)]);return CliErrors['cancelled'](_0x98c716);}},async 'prepare'(_0x1818d9,_0x33cef6){const _0x31bc91=_0x243f6c,_0x48d3ab=resolveAuthMode(_0x33cef6);if(_0x1818d9['requiresAuth']!==![]){if(!_0x33cef6[_0x31bc91(0x1ec)])throw CliErrors[_0x31bc91(0x202)](_0x31bc91(0x1ed)+PRODUCT_CONFIG[_0x31bc91(0x1ee)]+'\x20or\x20pass\x20'+productEnvName(_0x31bc91(0x1d4))+'.');const {setActiveAK:_0x2c6e9a}=await import(_0x31bc91(0x1cf));_0x2c6e9a(_0x33cef6['accessKey']);}if(_0x1818d9[_0x31bc91(0x1bc)]==='schedule')requireHarnessDomain();let _0x2c411c='';if(_0x1818d9[_0x31bc91(0x1c2)]!==![]){_0x2c411c=_0x33cef6[_0x31bc91(0x1bd)]??'',_0x2c411c=await resolveExplicitAppName(_0x1818d9,_0x33cef6,_0x2c411c);if(!_0x2c411c){await assertSelectedAppNameIsRuntimeAccessible(_0x1818d9,_0x33cef6);throw CliErrors[_0x31bc91(0x1c6)](_0x31bc91(0x1d2)+PRODUCT_CONFIG['newConfigFileName']+'.');}await assertAppCodeIsRuntimeAccessible(_0x1818d9,_0x33cef6,_0x2c411c);}if(_0x2c411c){const {initSdkClient:_0x16e1a3}=await import(_0x31bc91(0x1e4));_0x16e1a3({'appCode':_0x2c411c,'env':_0x33cef6[_0x31bc91(0x1fe)]??_0x31bc91(0x1d6),'runtimeDomain':_0x33cef6['runtimeDomain'],'accessKey':_0x33cef6['accessKey'],'authMode':_0x48d3ab}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x33cef6[_0x31bc91(0x1ce)]},'numbers':{'pagesize':_0x33cef6[_0x31bc91(0x1da)]}},'extras':{'appCode':_0x2c411c,'cookie':'','apiDomain':_0x33cef6[_0x31bc91(0x1f6)],'apiDir':'','accessKey':_0x33cef6['accessKey'],'envName':_0x33cef6['env'],'accessKeySource':_0x33cef6[_0x31bc91(0x1be)],'mergedCli':_0x33cef6['mergedCli']}};},'confirmHighRisk':_0x404839[_0x243f6c(0x1d8)]??(async({def:_0x5c07bb,env:_0x2766dd,flags:_0x52f5d8,commandLabel:_0x4d7ff0})=>{const _0x37d688=_0x243f6c;if(_0x2766dd[_0x37d688(0x1d7)]){const _0x4d8b65=reconstructCommandArgv(_0x5c07bb,_0x52f5d8);throw CliErrors[_0x37d688(0x1e7)](_0x37d688(0x1f2)+_0x4d7ff0+_0x37d688(0x1e0)+(_0x37d688(0x1ca)+_0x4d8b65));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x5c07bb,_0x4d7ff0,_0x52f5d8),'createCancelledError':_0x5a1b2e=>CliErrors[_0x37d688(0x1e1)](_0x5a1b2e)});}),'mapDryRunError'(_0x7cd112){return mapUserFacingExecuteError(_0x7cd112);},'mapExecuteError'(_0x52067d){return mapUserFacingExecuteError(_0x52067d);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x51089a;}function shouldRouteWriteToNativeTool(_0x30420a,_0x31e80a){const _0x3bf63a=a128_0x4514;return _0x31e80a[_0x3bf63a(0x1fa)]===!![]&&(_0x30420a['risk']===_0x3bf63a(0x1f1)||_0x30420a[_0x3bf63a(0x1e6)]===_0x3bf63a(0x1fb));}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x1b9e8c=a128_0x4514;try{if(sdkClientInitialized){const {clearSdkClient:_0x18688b}=await import('../core/sdk-client.js');_0x18688b();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x1eb31d}=await import(_0x1b9e8c(0x1cf));_0x1eb31d();}}async function resolveExplicitAppName(_0xa03bb,_0x1fd7b7,_0x1369f3){const _0x3b35a8=a128_0x4514;if(_0xa03bb[_0x3b35a8(0x1c2)]===![])return _0x1369f3;const _0x5d8137=typeof _0x1fd7b7[_0x3b35a8(0x200)][_0x3b35a8(0x1fd)]===_0x3b35a8(0x1df)?_0x1fd7b7[_0x3b35a8(0x200)][_0x3b35a8(0x1fd)][_0x3b35a8(0x205)]():'';if(!_0x5d8137)return _0x1369f3;const _0x3dacc2=typeof _0x1fd7b7[_0x3b35a8(0x200)][_0x3b35a8(0x1cb)]===_0x3b35a8(0x1df)&&_0x1fd7b7['rawFlags'][_0x3b35a8(0x1cb)][_0x3b35a8(0x205)]();if(_0x3dacc2||_0x1fd7b7[_0x3b35a8(0x1ba)]===_0x3b35a8(0x1d9))return _0x1369f3;const {getRemoteAppList:_0x3099f2}=await import('../commands/app/remote-source.js'),_0x5d0918=await _0x3099f2({'env':_0x1fd7b7['env']??_0x3b35a8(0x1d6),'accessKey':_0x1fd7b7[_0x3b35a8(0x1ec)]}),_0x37c0a7=findAppByName(_0x5d0918[_0x3b35a8(0x1dd)],_0x5d8137);if(_0x37c0a7&&!isRuntimeAccessibleApp(_0x37c0a7))throw runtimeInaccessibleAppError(_0x37c0a7,'\x22'+_0x5d8137+'\x22');const _0x5100ed=_0x37c0a7?.[_0x3b35a8(0x1bd)]?.[_0x3b35a8(0x205)]();if(_0x5100ed)return _0x5100ed;throw CliErrors[_0x3b35a8(0x1e7)](_0x3b35a8(0x1d3)+_0x5d8137,_0x3b35a8(0x1f8)+CLI_BIN_NAME+_0x3b35a8(0x1c5)+_0x5d8137+_0x3b35a8(0x1f3)+PRODUCT_CONFIG[_0x3b35a8(0x1ee)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x15225b,_0x2c4c4c){const _0x4ef4af=a128_0x4514;if(_0x15225b[_0x4ef4af(0x1c2)]===![]||!_0x2c4c4c['accessKey'])return;const _0x2cea6b=(typeof _0x2c4c4c['rawFlags'][_0x4ef4af(0x1fd)]===_0x4ef4af(0x1df)&&_0x2c4c4c[_0x4ef4af(0x200)][_0x4ef4af(0x1fd)][_0x4ef4af(0x205)]()?_0x2c4c4c['rawFlags']['app']:_0x2c4c4c[_0x4ef4af(0x1ea)]?.['currentApp']??_0x2c4c4c['mergedCli']?.['defaultApp'])?.[_0x4ef4af(0x205)]();if(!_0x2cea6b)return;const {getRemoteAppList:_0x3648d9}=await import(_0x4ef4af(0x1eb)),_0x1d0d0e=await _0x3648d9({'env':_0x2c4c4c['env']??'production','accessKey':_0x2c4c4c[_0x4ef4af(0x1ec)]}),_0xd36506=findAppByName(_0x1d0d0e[_0x4ef4af(0x1dd)],_0x2cea6b);if(_0xd36506&&!isRuntimeAccessibleApp(_0xd36506))throw runtimeInaccessibleAppError(_0xd36506,'\x22'+_0x2cea6b+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x55a1ca,_0x1349bf,_0x30c64f){const _0x398337=a128_0x4514;if(_0x55a1ca[_0x398337(0x1c2)]===![]||!_0x1349bf[_0x398337(0x1ec)])return;const {getRemoteAppList:_0x2e410b}=await import(_0x398337(0x1eb)),_0x3b2075=await _0x2e410b({'env':_0x1349bf[_0x398337(0x1fe)]??'production','accessKey':_0x1349bf[_0x398337(0x1ec)]}),_0x3b5ced=findAppByCode(_0x3b2075[_0x398337(0x1dd)],_0x30c64f);if(_0x3b5ced&&!isRuntimeAccessibleApp(_0x3b5ced))throw runtimeInaccessibleAppError(_0x3b5ced,_0x398337(0x1d1)+_0x30c64f+'\x22');}export async function runCommand(_0x15b17d,_0x4d18f7,_0x30c99d=terminalRunnerAdapter){assertKnownCommandFlags(_0x15b17d,_0x4d18f7['rawFlags']),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x15b17d)?withVersionPolicy(_0x15b17d):_0x15b17d,_0x4d18f7,_0x30c99d);}function shouldApplyVersionPolicy(_0xb2926d){const _0x3ea0aa=a128_0x4514;if([_0x3ea0aa(0x1c9),'schema',_0x3ea0aa(0x1d5)][_0x3ea0aa(0x1c0)](_0xb2926d['service']))return![];return!(_0xb2926d[_0x3ea0aa(0x1bc)]===_0x3ea0aa(0x201)&&_0xb2926d[_0x3ea0aa(0x1b9)]===_0x3ea0aa(0x1ef));}function withVersionPolicy(_0x1fa47d){return{..._0x1fa47d,async 'execute'(_0x489702){const _0x4623cc=a128_0x4514,_0x1d0d30=await checkCliVersion();assertCliVersionSupported(_0x1d0d30);const _0xb77e38=shouldResolveUpdateNotice(_0x489702)?resolveLatestUpdateNotice(_0x1d0d30)[_0x4623cc(0x1d0)](()=>null):Promise['resolve'](null),_0x2f9bdb=await _0x1fa47d[_0x4623cc(0x1f0)](_0x489702);return attachUpdateNotice(_0x2f9bdb,await _0xb77e38);}};}function shouldResolveUpdateNotice(_0x52c6a0){const _0x18736e=a128_0x4514;return _0x52c6a0[_0x18736e(0x1f4)]===_0x18736e(0x1f7)&&!_0x52c6a0[_0x18736e(0x204)];}function attachUpdateNotice(_0x1af0fc,_0xddcc31){const _0x5722e9=a128_0x4514;if(!_0xddcc31||!_0x1af0fc||typeof _0x1af0fc!==_0x5722e9(0x203))return _0x1af0fc;const _0x48c337=_0x1af0fc,_0x5a7170=typeof _0x48c337[_0x5722e9(0x1cc)]===_0x5722e9(0x203)&&_0x48c337[_0x5722e9(0x1cc)]!==null?_0x48c337[_0x5722e9(0x1cc)]:{};return{..._0x48c337,'_notice':{..._0x5a7170,'update':_0xddcc31}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a129_0x20da(){const _0x3cb243=['10644410gHehLL','map','commands','568cxqUGI','none','2695842bRzcRo','96kurRhX','6eoJjiJ','27490vDrrlY','required','6140036aLfsBk','auth','requiresAuth','1893IcsxCU','1559934UUCSlX','../commands/registry.js','335934zasjyq'];a129_0x20da=function(){return _0x3cb243;};return a129_0x20da();}(function(_0x1021ce,_0x2fa7e8){const _0x5122bd=a129_0x4fe5,_0x3d635f=_0x1021ce();while(!![]){try{const _0x100275=-parseInt(_0x5122bd(0xdd))/0x1*(parseInt(_0x5122bd(0xe8))/0x2)+parseInt(_0x5122bd(0xde))/0x3+parseInt(_0x5122bd(0xe4))/0x4*(-parseInt(_0x5122bd(0xe9))/0x5)+parseInt(_0x5122bd(0xe6))/0x6+parseInt(_0x5122bd(0xeb))/0x7+parseInt(_0x5122bd(0xe7))/0x8*(parseInt(_0x5122bd(0xe0))/0x9)+-parseInt(_0x5122bd(0xe1))/0xa;if(_0x100275===_0x2fa7e8)break;else _0x3d635f['push'](_0x3d635f['shift']());}catch(_0x1a3ed2){_0x3d635f['push'](_0x3d635f['shift']());}}}(a129_0x20da,0x6c475));import{buildSchemaPayload as a129_0x4ae64b}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';function a129_0x4fe5(_0x454843,_0x17ad54){_0x454843=_0x454843-0xdb;const _0x20da88=a129_0x20da();let _0x4fe582=_0x20da88[_0x454843];return _0x4fe582;}import{getCliGitCommit,getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x2c53b9=a129_0x4fe5,{serviceRegistry:_0x398671,findDefinition:_0x174fbd}=await import(_0x2c53b9(0xdf)),_0x6d5781=new Set(_0x398671[_0x2c53b9(0xe2)](_0x1488b7=>_0x1488b7['service'])),_0x51c6d=listDynamicServiceEntries()['filter'](_0xb9c438=>!_0x6d5781['has'](_0xb9c438['service'])),_0xe3feef=a129_0x4ae64b({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x398671,_0x51c6d),'buildAllFlags':buildAllFlags,'findDefinition':(_0x20b7d1,_0x8e138f)=>_0x174fbd(_0x20b7d1,_0x8e138f)??findDynamicServiceDefinition(_0x20b7d1,_0x8e138f)});return normalizeSchemaPayload(_0xe3feef);}function normalizeSchemaPayload(_0xf7c093){const _0x466169=a129_0x4fe5;return{..._0xf7c093,'schemaVersion':0x2,'services':_0xf7c093['services']['map'](_0x286b6b=>({..._0x286b6b,'commands':_0x286b6b[_0x466169(0xe3)][_0x466169(0xe2)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x44f9e5){const _0x310af4=a129_0x4fe5,_0x5d3c17=_0x44f9e5;return{..._0x44f9e5,'auth':_0x5d3c17[_0x310af4(0xdb)]??(_0x44f9e5[_0x310af4(0xdc)]?_0x310af4(0xea):_0x310af4(0xe5))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x476276,_0x50bece){const _0xe2a1d6=a130_0x32f6,_0x5d5a82=_0x476276();while(!![]){try{const _0x1ced15=parseInt(_0xe2a1d6(0x8a))/0x1*(-parseInt(_0xe2a1d6(0x88))/0x2)+parseInt(_0xe2a1d6(0x84))/0x3*(parseInt(_0xe2a1d6(0x8d))/0x4)+parseInt(_0xe2a1d6(0x85))/0x5*(-parseInt(_0xe2a1d6(0x89))/0x6)+parseInt(_0xe2a1d6(0x80))/0x7+parseInt(_0xe2a1d6(0x81))/0x8+parseInt(_0xe2a1d6(0x83))/0x9+-parseInt(_0xe2a1d6(0x87))/0xa;if(_0x1ced15===_0x50bece)break;else _0x5d5a82['push'](_0x5d5a82['shift']());}catch(_0xd7f4d1){_0x5d5a82['push'](_0x5d5a82['shift']());}}}(a130_0x51a9,0xdda2b));export function insertDynamicServicesAfterServiceTree(_0x2b9a15,_0x24a9c8){const _0x45f3e2=a130_0x32f6;if(_0x24a9c8[_0x45f3e2(0x82)]===0x0)return[..._0x2b9a15];const _0x3b15df=_0x2b9a15[_0x45f3e2(0x86)](_0x34ec89=>_0x34ec89['service']===_0x45f3e2(0x8b));if(_0x3b15df<0x0)return[..._0x2b9a15,..._0x24a9c8];return[..._0x2b9a15[_0x45f3e2(0x8c)](0x0,_0x3b15df+0x1),..._0x24a9c8,..._0x2b9a15[_0x45f3e2(0x8c)](_0x3b15df+0x1)];}function a130_0x32f6(_0x4eb1f8,_0x22cad3){_0x4eb1f8=_0x4eb1f8-0x80;const _0x51a95e=a130_0x51a9();let _0x32f6e3=_0x51a95e[_0x4eb1f8];return _0x32f6e3;}function a130_0x51a9(){const _0x59757a=['6CQXmgU','1336906iNIVFF','service','slice','3784060JwoYup','3333519LMaOJd','8112128jRioJr','length','7481043xytWOJ','3lGpWkn','1043705lAebCi','findIndex','8140090gOOIFM','2uDYtMu'];a130_0x51a9=function(){return _0x59757a;};return a130_0x51a9();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x53d728,_0x131d05){var _0x27847b=a131_0x3d41,_0x3e2813=_0x53d728();while(!![]){try{var _0x4b6c44=-parseInt(_0x27847b(0x1ce))/0x1*(-parseInt(_0x27847b(0x1cf))/0x2)+parseInt(_0x27847b(0x1d2))/0x3*(parseInt(_0x27847b(0x1d3))/0x4)+-parseInt(_0x27847b(0x1cc))/0x5+parseInt(_0x27847b(0x1d5))/0x6*(parseInt(_0x27847b(0x1d6))/0x7)+-parseInt(_0x27847b(0x1d4))/0x8*(parseInt(_0x27847b(0x1cd))/0x9)+parseInt(_0x27847b(0x1d1))/0xa*(parseInt(_0x27847b(0x1cb))/0xb)+parseInt(_0x27847b(0x1d0))/0xc;if(_0x4b6c44===_0x131d05)break;else _0x3e2813['push'](_0x3e2813['shift']());}catch(_0x1837f2){_0x3e2813['push'](_0x3e2813['shift']());}}}(a131_0x1aac,0x55329));function a131_0x1aac(){var _0x3606e4=['79472oeKpRd','14ltxwrH','4548024aMIZUe','30pYkyIn','12yrgNdb','182544hOqIQc','457272UXSfNA','6vVaAsQ','1381688lcYsNt','709643JsHFoh','3226865tJbaRe','81guhehy'];a131_0x1aac=function(){return _0x3606e4;};return a131_0x1aac();}function a131_0x3d41(_0x30f125,_0x367a1d){_0x30f125=_0x30f125-0x1cb;var _0x1aac81=a131_0x1aac();var _0x3d416d=_0x1aac81[_0x30f125];return _0x3d416d;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
|
|
@@ -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.12-beta.1";
|
|
2
|
+
export declare const GIT_TAG = "v2.3.12-beta.1";
|
|
3
|
+
export declare const GIT_COMMIT = "7ba1fe0";
|
|
4
|
+
export declare const BUILD_TIME = "2026-11-12T15:28:45.109Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a132_0x52da68=a132_0x3efe;(function(_0x362ac4,_0x248881){const _0x39699f=a132_0x3efe,_0x26fa73=_0x362ac4();while(!![]){try{const _0x1d28a7=-parseInt(_0x39699f(0x75))/0x1*(-parseInt(_0x39699f(0x7c))/0x2)+parseInt(_0x39699f(0x73))/0x3*(-parseInt(_0x39699f(0x7d))/0x4)+parseInt(_0x39699f(0x78))/0x5*(parseInt(_0x39699f(0x74))/0x6)+-parseInt(_0x39699f(0x70))/0x7*(-parseInt(_0x39699f(0x76))/0x8)+-parseInt(_0x39699f(0x79))/0x9*(parseInt(_0x39699f(0x71))/0xa)+parseInt(_0x39699f(0x77))/0xb*(parseInt(_0x39699f(0x72))/0xc)+-parseInt(_0x39699f(0x7e))/0xd;if(_0x1d28a7===_0x248881)break;else _0x26fa73['push'](_0x26fa73['shift']());}catch(_0x277e0a){_0x26fa73['push'](_0x26fa73['shift']());}}}(a132_0xbb44,0xbd708));export const VERSION='2.3.12-beta.1';export const GIT_TAG=a132_0x52da68(0x7b);export const GIT_COMMIT=a132_0x52da68(0x7a);function a132_0x3efe(_0x3fae57,_0x4ce847){_0x3fae57=_0x3fae57-0x70;const _0xbb44c9=a132_0xbb44();let _0x3efec5=_0xbb44c9[_0x3fae57];return _0x3efec5;}export const BUILD_TIME='2026-11-12T15:28:45.109Z';function a132_0xbb44(){const _0x5e1d44=['7058725uJtZDF','52011bxVDTc','7ba1fe0','v2.3.12-beta.1','28RQlbgw','6022772TjOiDX','9788584yqHOwb','8380036rjAagC','1630MoxmMc','682452UwefTm','3ZmxGoJ','6aJMFDH','77381qyADij','8GkQRlN','55ldEZOr'];a132_0xbb44=function(){return _0x5e1d44;};return a132_0xbb44();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a133_0x1e5ada=a133_0x55cf;(function(_0x1cc836,_0x52b34d){const _0xdcded5=a133_0x55cf,_0x219e7d=_0x1cc836();while(!![]){try{const _0x54750f=parseInt(_0xdcded5(0x137))/0x1+-parseInt(_0xdcded5(0x13d))/0x2+parseInt(_0xdcded5(0x12c))/0x3+parseInt(_0xdcded5(0x127))/0x4*(parseInt(_0xdcded5(0x128))/0x5)+-parseInt(_0xdcded5(0x129))/0x6+-parseInt(_0xdcded5(0x126))/0x7*(parseInt(_0xdcded5(0x12a))/0x8)+parseInt(_0xdcded5(0x138))/0x9*(parseInt(_0xdcded5(0x132))/0xa);if(_0x54750f===_0x52b34d)break;else _0x219e7d['push'](_0x219e7d['shift']());}catch(_0x362b6f){_0x219e7d['push'](_0x219e7d['shift']());}}}(a133_0x4977,0xc6e0a));export const ROUTING_CATALOG_DIGEST='19bc6dd7c8de7d4ef260bc553e38e63b268d7cd3f535fd1933132eb7ac3c5b52';export const DEFAULT_REGION='cn';function a133_0x55cf(_0x589e8f,_0x20ec45){_0x589e8f=_0x589e8f-0x11d;const _0x49777a=a133_0x4977();let _0x55cf9b=_0x49777a[_0x589e8f];return _0x55cf9b;}function a133_0x4977(){const _0x33f82c=['14JsKatV','4QLKiOS','8132255IMEYwG','1700790ziasec','5622200QosxbR','global','710607NvbNEH','https://api.lovrabet.id','https://kb-service-daily.lovrabet.com','Indonesia','https://user.lovrabet.ai','https://daily-api.lovrabet.com','24560gHhIrX','https://kb-service.lovrabet.id','Global','https://user.lovrabet.com','https://api.lovrabet.ai','1568010qFGHyO','648YkOipB','https://skills.lovrabet.id','https://daily-runtime.lovrabet.com','https://skills.lovrabet.ai','https://sandbox-api.lovrabet.ai','2209090fHiZGK','https://skills-daily.lovrabet.com','https://daily-runtime.lovrabet.ai','https://runtime.lovrabet.id','https://sandbox-api-daily.lovrabet.com','https://user-daily.lovrabet.com','https://sandbox-api.lovrabet.id','https://kb-service.lovrabet.com','https://daily-api.lovrabet.ai','china'];a133_0x4977=function(){return _0x33f82c;};return a133_0x4977();}export const REGION_VALUES=['cn','id',a133_0x1e5ada(0x12b)];export const ENABLED_REGION_VALUES=['cn','id',a133_0x1e5ada(0x12b)];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':'Mainland\x20China','aliases':[a133_0x1e5ada(0x125)],'serviceDomains':{'production':{'user':a133_0x1e5ada(0x135),'api':'https://api.lovrabet.com','runtime':'https://runtime.lovrabet.com','skill':'https://skills.lovrabet.com','kbService':a133_0x1e5ada(0x123),'harness':'https://sandbox-api.lovrabet.com'},'daily':{'user':a133_0x1e5ada(0x121),'api':a133_0x1e5ada(0x131),'runtime':a133_0x1e5ada(0x13a),'skill':a133_0x1e5ada(0x11d),'kbService':a133_0x1e5ada(0x12e),'harness':a133_0x1e5ada(0x120)}}},'id':{'enabled':!![],'label':a133_0x1e5ada(0x12f),'aliases':['indonesia'],'serviceDomains':{'production':{'user':'https://user.lovrabet.id','api':a133_0x1e5ada(0x12d),'runtime':a133_0x1e5ada(0x11f),'skill':a133_0x1e5ada(0x139),'kbService':a133_0x1e5ada(0x133),'harness':a133_0x1e5ada(0x122)}}},'global':{'enabled':!![],'label':a133_0x1e5ada(0x134),'aliases':[],'serviceDomains':{'production':{'user':a133_0x1e5ada(0x130),'api':a133_0x1e5ada(0x136),'runtime':'https://runtime.lovrabet.ai','skill':a133_0x1e5ada(0x13b),'kbService':'https://kb-service.lovrabet.ai','harness':a133_0x1e5ada(0x13c)},'daily':{'user':'https://user-daily.lovrabet.ai','api':a133_0x1e5ada(0x124),'runtime':a133_0x1e5ada(0x11e),'skill':'https://skills-daily.lovrabet.ai'}}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a134_0x471be5=a134_0x1268;(function(_0x1ad573,_0x366adf){const _0x52f834=a134_0x1268,_0x7e4664=_0x1ad573();while(!![]){try{const _0x27d2b7=parseInt(_0x52f834(0x117))/0x1*(parseInt(_0x52f834(0x116))/0x2)+parseInt(_0x52f834(0x119))/0x3*(parseInt(_0x52f834(0x121))/0x4)+parseInt(_0x52f834(0x11f))/0x5+-parseInt(_0x52f834(0x11c))/0x6*(-parseInt(_0x52f834(0x11e))/0x7)+parseInt(_0x52f834(0x11b))/0x8+parseInt(_0x52f834(0x115))/0x9+parseInt(_0x52f834(0x124))/0xa*(-parseInt(_0x52f834(0x122))/0xb);if(_0x27d2b7===_0x366adf)break;else _0x7e4664['push'](_0x7e4664['shift']());}catch(_0xa7ac01){_0x7e4664['push'](_0x7e4664['shift']());}}}(a134_0x28fa,0xa821b));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a134_0x471be5(0x114);function a134_0x1268(_0xc7f66e,_0xd3b56e){_0xc7f66e=_0xc7f66e-0x113;const _0x28fa9d=a134_0x28fa();let _0x1268c8=_0x28fa9d[_0xc7f66e];return _0x1268c8;}export const ENTERPRISE_ROUTING_PROTOCOL='lovrabet-routing/v1';export const ENTERPRISE_ROUTING_KIND=a134_0x471be5(0x113);function a134_0x28fa(){const _0x1951dc=['skillDomain','56KecTJd','1894795PJDdzE','harnessDomain','2233908nmOrab','22121XXYqNO','runtimeDomain','19580VFbuTH','enterprise','192eedb6fe65d2091e1e03fb0fe5046da1c2cf5a5aea21cb85511b2c1181a3d9','10830690IMUrCE','12qgEYea','71066ZUoIkF','userDomain','6XZJZll','kbServiceDomain','4840304yoLxwL','671586IdlfUG'];a134_0x28fa=function(){return _0x1951dc;};return a134_0x28fa();}export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a134_0x471be5(0x118),'apiDomain',a134_0x471be5(0x123),a134_0x471be5(0x11d),a134_0x471be5(0x11a),a134_0x471be5(0x120)];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x23128d,_0x82f113){const _0x47c84d=a135_0x12fa,_0xbf9f9e=_0x23128d();while(!![]){try{const _0x1a45c8=-parseInt(_0x47c84d(0x183))/0x1+parseInt(_0x47c84d(0x17f))/0x2+-parseInt(_0x47c84d(0x17a))/0x3*(-parseInt(_0x47c84d(0x17c))/0x4)+-parseInt(_0x47c84d(0x178))/0x5+parseInt(_0x47c84d(0x17e))/0x6+parseInt(_0x47c84d(0x177))/0x7*(-parseInt(_0x47c84d(0x17b))/0x8)+parseInt(_0x47c84d(0x180))/0x9;if(_0x1a45c8===_0x82f113)break;else _0xbf9f9e['push'](_0xbf9f9e['shift']());}catch(_0xbe37a3){_0xbf9f9e['push'](_0xbf9f9e['shift']());}}}(a135_0x1a92,0xd90dd));import{jsx as a135_0x39942f,jsxs as a135_0x411fb1}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';function a135_0x1a92(){const _0x3bec30=['\x20\x20Use\x20','970969OTgMxc','32186oWSpIi','2536185yjvMso','column','39YBdMce','1680cpXsks','21960aiXqfE','\x20to\x20view\x20available\x20commands.','3566688ODpTxY','1646280lUrnNV','16594929CpmexP','green'];a135_0x1a92=function(){return _0x3bec30;};return a135_0x1a92();}function a135_0x12fa(_0x2ea2c9,_0x1167cf){_0x2ea2c9=_0x2ea2c9-0x177;const _0x1a925f=a135_0x1a92();let _0x12fa71=_0x1a925f[_0x2ea2c9];return _0x12fa71;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x5c2f56=a135_0x12fa,{exit:_0x316ffd}=useApp();return useEffect(()=>{_0x316ffd();},[_0x316ffd]),a135_0x411fb1(Box,{'flexDirection':_0x5c2f56(0x179),'marginTop':0x1,'marginBottom':0x1,'children':[a135_0x39942f(Box,{'children':a135_0x39942f(Text,{'bold':!![],'color':_0x5c2f56(0x181),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a135_0x411fb1(Box,{'marginTop':0x1,'children':[a135_0x39942f(Text,{'dimColor':!![],'children':_0x5c2f56(0x182)}),a135_0x39942f(Text,{'bold':!![],'color':_0x5c2f56(0x181),'children':CLI_BIN_NAME+'\x20--help'}),a135_0x39942f(Text,{'dimColor':!![],'children':_0x5c2f56(0x17d)})]})]});}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a136_0x4886(){const _0x379c16=['5267640XhMfRo','5UXmSnx','Lovrabet\x20Built-in\x20Skill\x20','code','installed','35pLRcAl','error','Installation\x20failed','changed','13915510idHhjK','2012500sGZhOA','warn','log','23344hUYoKg','already\x20current','571314yDekNb','4345SkSeOz','475488aGVLwn','installedPath','494kTZONf','SOURCE_INVALID','repairCommand'];a136_0x4886=function(){return _0x379c16;};return a136_0x4886();}function a136_0x546a(_0x1e6dfb,_0x5be049){_0x1e6dfb=_0x1e6dfb-0xc2;const _0x488601=a136_0x4886();let _0x546ab5=_0x488601[_0x1e6dfb];return _0x546ab5;}(function(_0x20cfc8,_0x1a5f62){const _0x205ffe=a136_0x546a,_0x7f2ee2=_0x20cfc8();while(!![]){try{const _0x118de3=-parseInt(_0x205ffe(0xc5))/0x1*(-parseInt(_0x205ffe(0xc8))/0x2)+parseInt(_0x205ffe(0xcb))/0x3+parseInt(_0x205ffe(0xd5))/0x4*(-parseInt(_0x205ffe(0xcc))/0x5)+parseInt(_0x205ffe(0xc4))/0x6+parseInt(_0x205ffe(0xd0))/0x7*(-parseInt(_0x205ffe(0xc2))/0x8)+-parseInt(_0x205ffe(0xc6))/0x9+-parseInt(_0x205ffe(0xd4))/0xa;if(_0x118de3===_0x1a5f62)break;else _0x7f2ee2['push'](_0x7f2ee2['shift']());}catch(_0x2ae87d){_0x7f2ee2['push'](_0x7f2ee2['shift']());}}}(a136_0x4886,0xeaea8));import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x58207b={}){const _0x2267cf=a136_0x546a,_0x2151e5=installBuiltinSkill(_0x58207b);if(_0x2151e5['ok']){const _0x2c075b=_0x2151e5[_0x2267cf(0xd3)]?_0x2267cf(0xcf):_0x2267cf(0xc3),_0x39e389=_0x2151e5[_0x2267cf(0xc7)]?'\x20at\x20'+_0x2151e5['installedPath']:'\x20via\x20skills@latest';return console[_0x2267cf(0xd7)](_0x2267cf(0xcd)+_0x2151e5['skillVersion']+'\x20'+_0x2c075b+_0x39e389),_0x2151e5;}const _0x419c1d='[BUILTIN_SKILL_INSTALL_'+(_0x2151e5[_0x2267cf(0xce)]??'FAILED')+']\x20'+(_0x2151e5[_0x2267cf(0xd1)]??_0x2267cf(0xd2))+'.\x20'+('Repair\x20with:\x20'+_0x2151e5[_0x2267cf(0xca)]);if(_0x2151e5[_0x2267cf(0xce)]===_0x2267cf(0xc9))throw new Error(_0x419c1d);return console[_0x2267cf(0xd6)](_0x419c1d),_0x2151e5;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3dc424,_0x56a594){const _0x3941d3=a137_0xc95e,_0x18d238=_0x3dc424();while(!![]){try{const _0x5581d5=-parseInt(_0x3941d3(0x1f7))/0x1+-parseInt(_0x3941d3(0x1f9))/0x2+parseInt(_0x3941d3(0x1ee))/0x3*(-parseInt(_0x3941d3(0x1ef))/0x4)+-parseInt(_0x3941d3(0x1fa))/0x5*(-parseInt(_0x3941d3(0x1f5))/0x6)+-parseInt(_0x3941d3(0x1f8))/0x7+parseInt(_0x3941d3(0x1f4))/0x8+-parseInt(_0x3941d3(0x1f6))/0x9*(-parseInt(_0x3941d3(0x1f1))/0xa);if(_0x5581d5===_0x56a594)break;else _0x18d238['push'](_0x18d238['shift']());}catch(_0x4ac5e3){_0x18d238['push'](_0x18d238['shift']());}}}(a137_0x2d32,0xe6e63));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildLovrabetConfirmationRequest(_0x33c122,_0x5b36f1,_0x449797){const _0x53a085=a137_0xc95e,_0x4225dd=normalizeText(_0x33c122[_0x53a085(0x1f3)],DESCRIPTION_MAX_LENGTH),_0x72e37c=normalizeText(_0x33c122[_0x53a085(0x1ed)],DESCRIPTION_MAX_LENGTH);return{'operation':_0x5b36f1,'risk':requireWriteRisk(_0x33c122),'description':_0x4225dd||_0x72e37c||'Run\x20this\x20write\x20operation',..._0x449797?{'signal':_0x449797}:{}};}function a137_0x2d32(){const _0x74b42e=['slice','risk','Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.','replace','description','26814EhYJYl','200JqOgKv','string','6535630CSyghE','write','confirmationDescription','5256408URmkWU','6pYYgma','54YkZStw','1566259bWVznr','11477977UEScaW','1728730nRDiDR','4422845WkQAlf','high-risk-write'];a137_0x2d32=function(){return _0x74b42e;};return a137_0x2d32();}function requireWriteRisk(_0x2f1bf0){const _0x199b42=a137_0xc95e;if(_0x2f1bf0[_0x199b42(0x1ea)]===_0x199b42(0x1f2)||_0x2f1bf0[_0x199b42(0x1ea)]===_0x199b42(0x1fb))return _0x2f1bf0[_0x199b42(0x1ea)];throw new Error(_0x199b42(0x1eb));}function a137_0xc95e(_0x57725c,_0x2d34b8){_0x57725c=_0x57725c-0x1e9;const _0x2d32ee=a137_0x2d32();let _0xc95e18=_0x2d32ee[_0x57725c];return _0xc95e18;}function normalizeText(_0x34d479,_0x13e336){const _0x52c4a2=a137_0xc95e;if(typeof _0x34d479!==_0x52c4a2(0x1f0))return'';return _0x34d479[_0x52c4a2(0x1ec)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x52c4a2(0x1ec)](/\s+/g,'\x20')['trim']()[_0x52c4a2(0x1e9)](0x0,_0x13e336);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x17c339,_0x43e67f){const _0x2f2ad5=a138_0x7257,_0x3333ec=_0x17c339();while(!![]){try{const _0x288d74=-parseInt(_0x2f2ad5(0x71))/0x1*(-parseInt(_0x2f2ad5(0x68))/0x2)+-parseInt(_0x2f2ad5(0x67))/0x3*(-parseInt(_0x2f2ad5(0x6f))/0x4)+-parseInt(_0x2f2ad5(0x76))/0x5+parseInt(_0x2f2ad5(0x66))/0x6*(parseInt(_0x2f2ad5(0x78))/0x7)+parseInt(_0x2f2ad5(0x64))/0x8*(-parseInt(_0x2f2ad5(0x6e))/0x9)+parseInt(_0x2f2ad5(0x6d))/0xa+-parseInt(_0x2f2ad5(0x6c))/0xb;if(_0x288d74===_0x43e67f)break;else _0x3333ec['push'](_0x3333ec['shift']());}catch(_0x51ee04){_0x3333ec['push'](_0x3333ec['shift']());}}}(a138_0xeff5,0xf3329));function a138_0xeff5(){const _0x450462=['filter','join','lovrabet.write.completed','23651023aztqfB','17222170tvxDrI','18nFiakG','7976IlXYXP','writeEventSubject','41ZaXZuy','trim','service','risk','command','8529585gZmkZm','high-risk-write','10768982lUVkZe','6016328ikcpUa','split','6rIRluH','2820vcbLkJ','59572GoaKYf'];a138_0xeff5=function(){return _0x450462;};return a138_0xeff5();}function a138_0x7257(_0x426d9f,_0x214f92){_0x426d9f=_0x426d9f-0x64;const _0xeff55f=a138_0xeff5();let _0x725705=_0xeff55f[_0x426d9f];return _0x725705;}export function canonicalLovrabetOperation(_0x399ce5){const _0x2c7842=a138_0x7257;return[_0x399ce5[_0x2c7842(0x73)],..._0x399ce5[_0x2c7842(0x75)][_0x2c7842(0x72)]()[_0x2c7842(0x65)](/\s+/)][_0x2c7842(0x69)](Boolean)[_0x2c7842(0x6a)]('.');}export function createLovrabetWriteMetadata(_0x4fd3a3,_0x200d76,_0x4672be,_0x78fa20){const _0xd7f8a2=a138_0x7257;if(_0x78fa20||_0x4672be['ok']!==!![]||_0x4fd3a3[_0xd7f8a2(0x74)]!=='write'&&_0x4fd3a3[_0xd7f8a2(0x74)]!==_0xd7f8a2(0x77))return undefined;const _0x15a8e3=_0x4fd3a3[_0xd7f8a2(0x70)]?.(_0x4672be),_0x411f1b={'type':_0xd7f8a2(0x6b),'operation':_0x200d76,'risk':_0x4fd3a3[_0xd7f8a2(0x74)],..._0x15a8e3?{'subject':_0x15a8e3}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x411f1b}};}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x541c2b,_0x3910c9){const _0x112152=a139_0x39c0,_0x409503=_0x541c2b();while(!![]){try{const _0x57e617=parseInt(_0x112152(0x191))/0x1*(-parseInt(_0x112152(0x1b0))/0x2)+parseInt(_0x112152(0x1a8))/0x3*(parseInt(_0x112152(0x1ae))/0x4)+-parseInt(_0x112152(0x19f))/0x5*(-parseInt(_0x112152(0x19e))/0x6)+-parseInt(_0x112152(0x1a9))/0x7*(-parseInt(_0x112152(0x196))/0x8)+-parseInt(_0x112152(0x18f))/0x9+-parseInt(_0x112152(0x1ab))/0xa*(parseInt(_0x112152(0x1a1))/0xb)+parseInt(_0x112152(0x190))/0xc;if(_0x57e617===_0x3910c9)break;else _0x409503['push'](_0x409503['shift']());}catch(_0x19a919){_0x409503['push'](_0x409503['shift']());}}}(a139_0x2a83,0x267f6));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';function a139_0x2a83(){const _0x5d07ba=['Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','2323980YqOYud','7890840abhDCR','87519pxopkc','stringify','data','result','write','10520EQJrCF','high-risk-write','signal','format','args','yes','rawFlags','execute','16752DOWrob','15zLblui','reason','974347OjMPei','definition','dry-run','command','confirm','AbortError','present','9147wwruhX','35yGbNbF','message','10IUOCVj','Lovrabet\x20invocation\x20aborted.','risk','124AvTfEo','presentation','6eGUTUu','confirmation','dryRun','riskLevel'];a139_0x2a83=function(){return _0x5d07ba;};return a139_0x2a83();}import{canonicalLovrabetOperation,createLovrabetWriteMetadata}from'../runtime/event.js';import{buildLovrabetConfirmationRequest}from'../runtime/confirmation.js';import{resolveLovrabetInvocation}from'../runtime/resolve.js';import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0x2166ba,command:_0x28ba32,risk:_0x5ddc54,dryRun:_0x2e61f1}){const _0x4797b4=a139_0x39c0;return JSON[_0x4797b4(0x192)]({'ok':_0x2166ba['ok'],'command':_0x28ba32,'risk':_0x5ddc54,..._0x2e61f1?{'dryRun':!![]}:{},..._0x2166ba[_0x4797b4(0x193)]!==undefined?{'data':_0x2166ba['data']}:{},..._0x2166ba['message']?{'message':_0x2166ba[_0x4797b4(0x1aa)]}:{}});}};export async function invokeLovrabet(_0x5c9d50,_0x455e6f){const _0xf57a04=a139_0x39c0;throwIfAborted(_0x455e6f['signal']);const _0x3c1ef9=await resolveLovrabetInvocation(_0x5c9d50),_0x4ff029=canonicalLovrabetOperation(_0x3c1ef9['definition']);return await confirmWriteBeforeQueue(_0x3c1ef9[_0xf57a04(0x1a2)],_0x3c1ef9[_0xf57a04(0x19c)],_0x4ff029,_0x455e6f),runSerialized(async()=>{const _0x2050a1=_0xf57a04;throwIfAborted(_0x455e6f[_0x2050a1(0x198)]);const _0x58c2d1={},_0x1f75ee=buildConfigFromFlags(_0x3c1ef9[_0x2050a1(0x19c)]);await initGlobalEnvironment(_0x1f75ee);const _0x3e66a1=createPipelineEnv(_0x1f75ee,{..._0x3c1ef9[_0x2050a1(0x19c)],'yes':_0x3c1ef9['definition'][_0x2050a1(0x1ad)]===_0x2050a1(0x197)?!![]:_0x3c1ef9['rawFlags'][_0x2050a1(0x19b)],'nonInteractive':!![]});_0x3e66a1[_0x2050a1(0x19a)]=_0x3c1ef9[_0x2050a1(0x19a)],_0x3e66a1['isNonInteractive']=!![],_0x3e66a1[_0x2050a1(0x1b3)]=_0x2050a1(0x197);const _0x1e078d=withAbortSignal(_0x3c1ef9['definition'],_0x455e6f['signal']),_0x4832da=createLovrabetRunnerAdapter({'formatOutput'(_0x4730ea,_0x84bd25){const _0x1dc4e5=_0x2050a1;_0x58c2d1['result']=_0x4730ea,_0x58c2d1['command']=_0x84bd25[_0x1dc4e5(0x1a4)],_0x58c2d1[_0x1dc4e5(0x1ad)]=_0x84bd25[_0x1dc4e5(0x1ad)],_0x58c2d1[_0x1dc4e5(0x199)]=_0x84bd25[_0x1dc4e5(0x199)],_0x58c2d1['dryRun']=_0x84bd25[_0x1dc4e5(0x1b2)]===!![];},async 'confirmHighRisk'(){const _0x51803c=_0x2050a1;throw new Error(_0x51803c(0x18e));}});try{await runCommand(_0x1e078d,_0x3e66a1,_0x4832da);if(!_0x58c2d1[_0x2050a1(0x194)]||!_0x58c2d1[_0x2050a1(0x1a4)]||!_0x58c2d1['risk']||!_0x58c2d1[_0x2050a1(0x199)])throw new Error('Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.');const _0x5dbd9a=_0x455e6f[_0x2050a1(0x1af)]??defaultPresentation,_0x292d1e=_0x58c2d1[_0x2050a1(0x1b2)]===!![],_0x5b853a={'result':_0x58c2d1[_0x2050a1(0x194)],'command':_0x58c2d1[_0x2050a1(0x1a4)],'operation':_0x4ff029,'risk':_0x58c2d1[_0x2050a1(0x1ad)],'format':_0x58c2d1[_0x2050a1(0x199)],'dryRun':_0x292d1e},_0x38baa8=createLovrabetWriteMetadata(_0x3c1ef9[_0x2050a1(0x1a2)],_0x4ff029,_0x58c2d1[_0x2050a1(0x194)],_0x292d1e);let _0x38ff43;try{_0x38ff43=await _0x5dbd9a[_0x2050a1(0x1a7)](_0x5b853a);}catch(_0x368c4d){if(!_0x38baa8||_0x5dbd9a===defaultPresentation)throw _0x368c4d;_0x38ff43=await defaultPresentation[_0x2050a1(0x1a7)](_0x5b853a);}return{'operation':_0x4ff029,'risk':_0x58c2d1[_0x2050a1(0x1ad)],'mode':_0x292d1e?_0x2050a1(0x1a3):_0x2050a1(0x19d),'result':_0x58c2d1[_0x2050a1(0x194)],'output':_0x38ff43,..._0x38baa8?{'metadata':_0x38baa8}:{}};}finally{await finalizeLovrabetRuntimeState();}});}function a139_0x39c0(_0x1fdde6,_0x49682a){_0x1fdde6=_0x1fdde6-0x18e;const _0x2a8319=a139_0x2a83();let _0x39c01b=_0x2a8319[_0x1fdde6];return _0x39c01b;}async function confirmWriteBeforeQueue(_0x46e50b,_0x11f590,_0x5b1e40,_0x3d6414){const _0x1fa8ab=a139_0x39c0;if(_0x11f590[_0x1fa8ab(0x1b2)]===!![]||_0x46e50b[_0x1fa8ab(0x1ad)]!==_0x1fa8ab(0x195)&&_0x46e50b[_0x1fa8ab(0x1ad)]!==_0x1fa8ab(0x197))return;await _0x3d6414[_0x1fa8ab(0x1b1)][_0x1fa8ab(0x1a5)](buildLovrabetConfirmationRequest(_0x46e50b,_0x5b1e40,_0x3d6414[_0x1fa8ab(0x198)]));}function withAbortSignal(_0x343a0e,_0x54eec7){return{..._0x343a0e,async 'execute'(_0x4f15e8){const _0x3f2cab=a139_0x39c0;return throwIfAborted(_0x54eec7),_0x343a0e[_0x3f2cab(0x19d)]({..._0x4f15e8,'signal':_0x54eec7});}};}function throwIfAborted(_0x4d190c){const _0x2ddee3=a139_0x39c0;if(_0x4d190c?.['aborted'])throw _0x4d190c[_0x2ddee3(0x1a0)]instanceof Error?_0x4d190c['reason']:new DOMException(_0x2ddee3(0x1ac),_0x2ddee3(0x1a6));}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a140_0x59cf(_0x42393b,_0x5efb6f){_0x42393b=_0x42393b-0x9f;const _0x1bf756=a140_0x1bf7();let _0x59cf45=_0x1bf756[_0x42393b];return _0x59cf45;}const a140_0x3ba803=a140_0x59cf;(function(_0x592ac5,_0x8ce818){const _0x1f3389=a140_0x59cf,_0x3542b5=_0x592ac5();while(!![]){try{const _0xd1659d=-parseInt(_0x1f3389(0xa8))/0x1*(-parseInt(_0x1f3389(0xaa))/0x2)+parseInt(_0x1f3389(0xab))/0x3*(parseInt(_0x1f3389(0xa9))/0x4)+-parseInt(_0x1f3389(0xa7))/0x5*(parseInt(_0x1f3389(0xa3))/0x6)+parseInt(_0x1f3389(0x9f))/0x7+-parseInt(_0x1f3389(0xa0))/0x8+parseInt(_0x1f3389(0xa4))/0x9+-parseInt(_0x1f3389(0xa5))/0xa*(parseInt(_0x1f3389(0xa1))/0xb);if(_0xd1659d===_0x8ce818)break;else _0x3542b5['push'](_0x3542b5['shift']());}catch(_0x348538){_0x3542b5['push'](_0x3542b5['shift']());}}}(a140_0x1bf7,0x7faec));let tail=Promise[a140_0x3ba803(0xa2)]();export async function runSerialized(_0x2c4943){const _0x32430b=a140_0x3ba803,_0x569ff7=tail;let _0x3883d8;tail=new Promise(_0x560bcc=>{_0x3883d8=_0x560bcc;}),await _0x569ff7[_0x32430b(0xa6)](()=>undefined);try{return await _0x2c4943();}finally{_0x3883d8();}}function a140_0x1bf7(){const _0x307fb7=['905CUIvOQ','334911bzkymZ','591532kgCBKm','2DxOYaq','3wjuOxV','6384917bpWPKs','7919392rrOxtw','196559wKTozT','resolve','4962JewasU','3856455lKpdvF','90xLGank','catch'];a140_0x1bf7=function(){return _0x307fb7;};return a140_0x1bf7();}
|