@lovrabet/lovrabet-cli 2.3.8-beta.4 → 2.3.8-beta.6
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 +12 -0
- 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.d.ts +3 -0
- package/lib/commands/issue/context.js +1 -0
- package/lib/commands/issue/index.d.ts +2 -0
- package/lib/commands/issue/index.js +1 -0
- package/lib/commands/issue/report.d.ts +2 -0
- package/lib/commands/issue/report.js +1 -0
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-sdk-errors.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/access-error.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-import/auto-id-runner.js +1 -1
- package/lib/services/dataset-import/excel-reader.js +1 -1
- package/lib/services/dataset-import/image-bytes.js +1 -1
- package/lib/services/dataset-import/image-ooxml.js +1 -1
- package/lib/services/dataset-import/image-runner.js +1 -1
- package/lib/services/dataset-import/metadata.js +1 -1
- package/lib/services/dataset-import/preview.js +1 -1
- package/lib/services/dataset-import/runner.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/positive-safe-integer.js +1 -1
- package/lib/utils/redaction.js +1 -1
- package/lib/utils/runtime-user-id.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +2 -2
- package/skills/lovrabet/SKILL.md +12 -2
- package/skills/lovrabet/guides/development-intent-handoff.md +58 -0
- package/skills/lovrabet/references/lovrabet-issue-report.md +24 -0
- package/skills/lovrabet.manifest.json +5 -3
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x24f27f,_0x16aac4){const _0x303833=a119_0x3e86,_0x3b2b9c=_0x24f27f();while(!![]){try{const _0x1746a3=parseInt(_0x303833(0x106))/0x1+-parseInt(_0x303833(0x101))/0x2+parseInt(_0x303833(0x107))/0x3+parseInt(_0x303833(0xfc))/0x4*(-parseInt(_0x303833(0xfe))/0x5)+-parseInt(_0x303833(0xf7))/0x6*(-parseInt(_0x303833(0xfd))/0x7)+parseInt(_0x303833(0xff))/0x8*(-parseInt(_0x303833(0x103))/0x9)+parseInt(_0x303833(0x108))/0xa;if(_0x1746a3===_0x16aac4)break;else _0x3b2b9c['push'](_0x3b2b9c['shift']());}catch(_0x46370e){_0x3b2b9c['push'](_0x3b2b9c['shift']());}}}(a119_0xbf8e,0x66cc1));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';function a119_0x3e86(_0x1ede54,_0x1ff07f){_0x1ede54=_0x1ede54-0xf6;const _0xbf8e53=a119_0xbf8e();let _0x3e860e=_0xbf8e53[_0x1ede54];return _0x3e860e;}import{getDynamicServiceDefinitions,getDynamicServiceEntry,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a119_0xbf8e(){const _0xa0c84e=['service','generateFullHelp','get','1332824YwiWWY','2610769ybYtPG','5DksPdS','176144NjmtXS','generateCommandHelp','562418AiUvGU','map','279NQQaLr','Requires\x20appcode\x20(set\x20via\x20','generateServiceHelp','156757rSIscZ','849873ZCHRPs','5320480WJNfRQ','has','12VanoQN','newConfigFileName'];a119_0xbf8e=function(){return _0xa0c84e;};return a119_0xbf8e();}import{PRODUCT_CONFIG}from'../constant/product.js';function createGenerators(){const _0x25e8b9=a119_0x3e86;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries()),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x25e8b9(0x104)+PRODUCT_CONFIG[_0x25e8b9(0xf8)]+'\x20or\x20--appcode).'});}export function generateCommandHelp(_0x34d38c){const _0x570a6b=a119_0x3e86;return createGenerators()[_0x570a6b(0x100)](_0x34d38c);}export function generateServiceHelp(_0x4af9d7){const _0x1f21ae=a119_0x3e86;return createGenerators()[_0x1f21ae(0x105)](_0x4af9d7);}export function generateFullHelp(){const _0x50c16f=a119_0x3e86;return createGenerators()[_0x50c16f(0xfa)]();}function getAnyServiceEntry(_0x7af248){const _0x333923=getServiceEntry(_0x7af248);if(_0x333923)return _0x333923;try{return getDynamicServiceEntry(_0x7af248);}catch{return undefined;}}function getAnyServiceDefinitions(_0x42425d){const _0x2144b0=a119_0x3e86,_0x245735=serviceGroups[_0x2144b0(0xfb)](_0x42425d);if(_0x245735)return _0x245735;try{return getDynamicServiceDefinitions(_0x42425d);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x18600d=a119_0x3e86,_0x573410=new Set(serviceRegistry[_0x18600d(0x102)](_0x20eddc=>_0x20eddc['service']));try{return listDynamicServiceEntries()['filter'](_0x33acb7=>!_0x573410[_0x18600d(0xf6)](_0x33acb7[_0x18600d(0xf9)]));}catch{return[];}}
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a120_0x338b(){var _0x4a8660=['2673zQPnDW','12130knCPsF','9288609FCodCz','2592WrsPja','239890Udjivr','463930yNaekP','6QTFKGo','12dMSYNs','2507440RhyVCv','482MFKAbS','173078SNtQaZ'];a120_0x338b=function(){return _0x4a8660;};return a120_0x338b();}(function(_0x45eb6e,_0x4398a1){var _0x3ee137=a120_0x10b1,_0xc74f78=_0x45eb6e();while(!![]){try{var _0x40ed75=-parseInt(_0x3ee137(0x137))/0x1+parseInt(_0x3ee137(0x136))/0x2*(-parseInt(_0x3ee137(0x138))/0x3)+-parseInt(_0x3ee137(0x13f))/0x4*(parseInt(_0x3ee137(0x13d))/0x5)+-parseInt(_0x3ee137(0x13e))/0x6*(-parseInt(_0x3ee137(0x13c))/0x7)+parseInt(_0x3ee137(0x135))/0x8+parseInt(_0x3ee137(0x13b))/0x9*(-parseInt(_0x3ee137(0x139))/0xa)+parseInt(_0x3ee137(0x13a))/0xb;if(_0x40ed75===_0x4398a1)break;else _0xc74f78['push'](_0xc74f78['shift']());}catch(_0x4d94b9){_0xc74f78['push'](_0xc74f78['shift']());}}}(a120_0x338b,0x2b1e0));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a120_0x10b1(_0x2314f2,_0xccb77c){_0x2314f2=_0x2314f2-0x135;var _0x338b80=a120_0x338b();var _0x10b1d9=_0x338b80[_0x2314f2];return _0x10b1d9;}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
|
-
(function(
|
|
1
|
+
(function(_0x521492,_0x2dc7d0){const _0x19ee23=a121_0x5e24,_0x3125a6=_0x521492();while(!![]){try{const _0x5829c7=parseInt(_0x19ee23(0x1a2))/0x1*(parseInt(_0x19ee23(0x1a4))/0x2)+-parseInt(_0x19ee23(0x19f))/0x3*(-parseInt(_0x19ee23(0x19a))/0x4)+parseInt(_0x19ee23(0x1a5))/0x5+-parseInt(_0x19ee23(0x19c))/0x6*(parseInt(_0x19ee23(0x198))/0x7)+parseInt(_0x19ee23(0x19b))/0x8*(-parseInt(_0x19ee23(0x199))/0x9)+-parseInt(_0x19ee23(0x196))/0xa+-parseInt(_0x19ee23(0x195))/0xb*(-parseInt(_0x19ee23(0x19d))/0xc);if(_0x5829c7===_0x2dc7d0)break;else _0x3125a6['push'](_0x3125a6['shift']());}catch(_0x8cc91f){_0x3125a6['push'](_0x3125a6['shift']());}}}(a121_0x210e,0x9bc96));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a121_0x210e(){const _0x2ad41a=['message','url','1804DwciUX','10131700sZdZnb','pretty','7720594xkDAVj','6845355YciwdG','9488sLHwfz','8YziZzp','6yTNXMj','100752myJZxZ','error','987WfVheu','format','_notice','183Djvwfn','update','13198XRWqyo','749300AZXudS'];a121_0x210e=function(){return _0x2ad41a;};return a121_0x210e();}function a121_0x5e24(_0x557abf,_0x4cfc20){_0x557abf=_0x557abf-0x195;const _0x210e9f=a121_0x210e();let _0x5e24cb=_0x210e9f[_0x557abf];return _0x5e24cb;}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x4d054a,_0x3d777c){const _0x161b59=a121_0x5e24,_0x54a8c5=_0x4d054a[_0x161b59(0x1a1)],{_notice:_0x3d23d9,..._0x25124f}=_0x4d054a;void _0x3d23d9,baseFormatOutput(_0x25124f,_0x3d777c),_0x3d777c[_0x161b59(0x1a0)]===_0x161b59(0x197)&&printPrettyNotice(_0x54a8c5);}function printPrettyNotice(_0x47b5a9){const _0x2ba633=a121_0x5e24;if(!_0x47b5a9?.[_0x2ba633(0x1a3)])return;console[_0x2ba633(0x19e)](_0x47b5a9['update'][_0x2ba633(0x1a6)]+'\x20('+_0x47b5a9[_0x2ba633(0x1a3)][_0x2ba633(0x1a7)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3e2ef3,_0x167f16){const _0x1871da=a122_0x27fd,_0xeb8650=_0x3e2ef3();while(!![]){try{const _0x19163f=parseInt(_0x1871da(0x6e))/0x1+-parseInt(_0x1871da(0x92))/0x2*(parseInt(_0x1871da(0x77))/0x3)+-parseInt(_0x1871da(0x7c))/0x4*(-parseInt(_0x1871da(0x82))/0x5)+parseInt(_0x1871da(0x72))/0x6*(parseInt(_0x1871da(0x74))/0x7)+parseInt(_0x1871da(0x7d))/0x8+-parseInt(_0x1871da(0x85))/0x9+-parseInt(_0x1871da(0x75))/0xa;if(_0x19163f===_0x167f16)break;else _0xeb8650['push'](_0xeb8650['shift']());}catch(_0x4aa667){_0xeb8650['push'](_0xeb8650['shift']());}}}(a122_0x106b,0xed940));export function toKebab(_0x55da7f){const _0x281feb=a122_0x27fd;return _0x55da7f[_0x281feb(0x71)](/_/g,'-')[_0x281feb(0x71)](/-([A-Z]+)/g,(_0x22012e,_0x4b7978)=>'-'+_0x4b7978[_0x281feb(0x80)]())[_0x281feb(0x71)](/([a-z0-9])([A-Z])/g,(_0x6f44e4,_0x6eb6f7,_0x4a9be8)=>_0x6eb6f7+'-'+_0x4a9be8)['toLowerCase']();}function buildKnownFlags(_0x55f260){const _0x28ed13=a122_0x27fd,_0x407349=new Set();for(const _0x4800a4 of _0x55f260){_0x407349[_0x28ed13(0x88)](_0x4800a4[_0x28ed13(0x89)]),_0x407349[_0x28ed13(0x88)](toCamelCase(_0x4800a4[_0x28ed13(0x89)]));}for(const _0xfa8228 of[_0x28ed13(0x6d),'dryRun',_0x28ed13(0x8e),_0x28ed13(0x8c)]){_0x407349[_0x28ed13(0x88)](_0xfa8228);}for(const _0x2c3c7e of[_0x28ed13(0x8b),_0x28ed13(0x87),_0x28ed13(0x91),_0x28ed13(0x7b),_0x28ed13(0x8f),'non-interactive','ci','global','version']){_0x407349[_0x28ed13(0x88)](_0x2c3c7e);}return _0x407349;}function buildFlagTypeMap(_0x5cc4c9){const _0x1f8257=a122_0x27fd,_0x30c5bd=new Map();for(const _0x4608b2 of _0x5cc4c9){_0x30c5bd[_0x1f8257(0x76)](_0x4608b2[_0x1f8257(0x89)],_0x4608b2[_0x1f8257(0x70)]),_0x30c5bd[_0x1f8257(0x76)](toCamelCase(_0x4608b2[_0x1f8257(0x89)]),_0x4608b2[_0x1f8257(0x70)]);}return _0x30c5bd;}function toCamelCase(_0x25772c){const _0x1b869d=a122_0x27fd;return _0x25772c[_0x1b869d(0x71)](/-([a-z])/g,(_0x482541,_0x56e0ba)=>_0x56e0ba['toUpperCase']());}function a122_0x106b(){const _0x425a85=['get','boolean','13954716FfJlvi','push','env','add','name','corrected','help','format','keys','yes','nonInteractive','sticky','appcode','1314636TssbQz','dry-run','1699950mrvEqJ','indexOf','type','replace','12VxNiLu','has','242809GyqNXF','3789940AWFuLP','set','6jeCHAp','length','entries','slice','app','1165828GgNuuS','10256976kmbVMx','string','number','toLowerCase','original','20YrhOAm'];a122_0x106b=function(){return _0x425a85;};return a122_0x106b();}function aliasHandler(_0x2e3c68,_0x3ccaa7){const _0x596a84=a122_0x27fd,_0x2e68bb=[];for(const _0x418f5a of Object[_0x596a84(0x8d)](_0x2e3c68)){if(_0x3ccaa7[_0x596a84(0x73)](_0x418f5a))continue;const _0x3575a5=toKebab(_0x418f5a);_0x3575a5!==_0x418f5a&&_0x3ccaa7[_0x596a84(0x73)](_0x3575a5)&&_0x2e68bb[_0x596a84(0x86)]({'original':_0x418f5a,'corrected':_0x3575a5,'handler':'alias'});}return _0x2e68bb;}function stickyHandler(_0x1f1d42,_0x74e92a,_0x100b6f){const _0x1af6b8=a122_0x27fd,_0xbbc6e0=[];for(const [_0x59ee43,_0x4bc5e0]of Object[_0x1af6b8(0x79)](_0x1f1d42)){if(_0x4bc5e0!==!![])continue;for(let _0x4576a3=_0x59ee43[_0x1af6b8(0x78)]-0x1;_0x4576a3>0x0;_0x4576a3--){const _0x1cbc0a=_0x59ee43['slice'](0x0,_0x4576a3),_0x2de08a=_0x59ee43[_0x1af6b8(0x7a)](_0x4576a3),_0x4d2d09=toKebab(_0x1cbc0a),_0x2ea7ee=toCamelCase(_0x1cbc0a),_0x30aa94=_0x74e92a[_0x1af6b8(0x73)](_0x1cbc0a)?_0x1cbc0a:_0x74e92a[_0x1af6b8(0x73)](_0x4d2d09)?_0x4d2d09:_0x74e92a[_0x1af6b8(0x73)](_0x2ea7ee)?_0x2ea7ee:null;if(!_0x30aa94)continue;const _0x198b7d=_0x100b6f[_0x1af6b8(0x83)](_0x30aa94)??_0x1af6b8(0x7e);let _0x549eea;if(_0x198b7d===_0x1af6b8(0x7f)){const _0x49ea25=Number(_0x2de08a);if(isNaN(_0x49ea25)||_0x2de08a==='')continue;_0x549eea=_0x49ea25;}else{if(_0x198b7d===_0x1af6b8(0x84))continue;else{if(_0x2de08a==='')continue;_0x549eea=_0x2de08a;}}_0xbbc6e0[_0x1af6b8(0x86)]({'original':_0x59ee43,'corrected':_0x30aa94+'='+_0x549eea,'handler':_0x1af6b8(0x90)});break;}}return _0xbbc6e0;}function a122_0x27fd(_0x100de5,_0x3a56df){_0x100de5=_0x100de5-0x6d;const _0x106b4a=a122_0x106b();let _0x27fd3a=_0x106b4a[_0x100de5];return _0x27fd3a;}export function correctFlags(_0x46c9ef,_0x5b322d){const _0x7b6e7b=a122_0x27fd,_0x1cebaf=buildKnownFlags(_0x5b322d),_0x399d0d=buildFlagTypeMap(_0x5b322d),_0x10fd08=aliasHandler(_0x46c9ef,_0x1cebaf),_0x156895=stickyHandler(_0x46c9ef,_0x1cebaf,_0x399d0d),_0x4b0810=[..._0x10fd08,..._0x156895];if(_0x4b0810['length']===0x0)return{'flags':_0x46c9ef,'corrections':[]};const _0x284dfd={..._0x46c9ef},_0x92aa14=new Set();for(const _0x49061d of _0x10fd08){_0x284dfd[_0x49061d[_0x7b6e7b(0x8a)]]=_0x46c9ef[_0x49061d[_0x7b6e7b(0x81)]],_0x92aa14[_0x7b6e7b(0x88)](_0x49061d[_0x7b6e7b(0x81)]);}for(const _0xab13a0 of _0x156895){const _0x233643=_0xab13a0[_0x7b6e7b(0x8a)][_0x7b6e7b(0x6f)]('='),_0x347d36=_0xab13a0[_0x7b6e7b(0x8a)]['slice'](0x0,_0x233643),_0x490af5=_0xab13a0[_0x7b6e7b(0x8a)][_0x7b6e7b(0x7a)](_0x233643+0x1),_0xe2046b=_0x399d0d['get'](_0x347d36)??'string';_0xe2046b==='number'?_0x284dfd[_0x347d36]=Number(_0x490af5):_0x284dfd[_0x347d36]=_0x490af5,_0x92aa14[_0x7b6e7b(0x88)](_0xab13a0[_0x7b6e7b(0x81)]);}for(const _0x37e40c of _0x92aa14){delete _0x284dfd[_0x37e40c];}return{'flags':_0x284dfd,'corrections':_0x4b0810};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a123_0x4dfa86=a123_0x39bf;(function(_0x5e8664,_0x31aa94){const _0x41231f=a123_0x39bf,_0x573cda=_0x5e8664();while(!![]){try{const _0x5dcac4=parseInt(_0x41231f(0x1ed))/0x1*(-parseInt(_0x41231f(0x1ee))/0x2)+parseInt(_0x41231f(0x1fd))/0x3*(-parseInt(_0x41231f(0x1ff))/0x4)+-parseInt(_0x41231f(0x20e))/0x5+-parseInt(_0x41231f(0x201))/0x6*(parseInt(_0x41231f(0x205))/0x7)+parseInt(_0x41231f(0x20a))/0x8*(parseInt(_0x41231f(0x1f0))/0x9)+-parseInt(_0x41231f(0x1f2))/0xa+parseInt(_0x41231f(0x1f3))/0xb*(parseInt(_0x41231f(0x210))/0xc);if(_0x5dcac4===_0x31aa94)break;else _0x573cda['push'](_0x573cda['shift']());}catch(_0x49d1ca){_0x573cda['push'](_0x573cda['shift']());}}}(a123_0x5d2c,0x3a677));import{CliErrors}from'../errors.js';function a123_0x5d2c(){const _0x42e2f7=['\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.','1584QBWlwR','MAX_QPS_LIMIT','452840csZuAv','1628vwPbXZ','entries','string','trim','object','errorCode','Retry\x20after\x20','EXCEED_MAX_QPS_LIMIT','Retry-After','isInteger','1020447laApun','Request\x20rate\x20limit\x20exceeded.','4RdrKTA','call','18Jlnuvr','toLowerCase','isArray','Retry\x20after\x20a\x20short\x20delay.','1037351ndggHI','number','has','\x20seconds\x20before\x20retrying.','IP_RATE_LIMIT_EXCEEDED','8488pQHYBo','retry-after','rateLimited','retryAfterSeconds','1072225PbIgtZ','test','121236omYygP','retryAfter','message','50yvoAAO','15932dYftUE'];a123_0x5d2c=function(){return _0x42e2f7;};return a123_0x5d2c();}const RATE_LIMIT_ERROR_CODES=new Set([a123_0x4dfa86(0x1fa),a123_0x4dfa86(0x1f1),a123_0x4dfa86(0x209)]);function nonEmptyString(_0x5bc6ec){const _0x22f563=a123_0x4dfa86;if(typeof _0x5bc6ec!==_0x22f563(0x1f5))return undefined;const _0x34b712=_0x5bc6ec[_0x22f563(0x1f6)]();return _0x34b712||undefined;}function a123_0x39bf(_0x42817d,_0x4f8239){_0x42817d=_0x42817d-0x1ed;const _0x5d2c82=a123_0x5d2c();let _0x39bf34=_0x5d2c82[_0x42817d];return _0x39bf34;}function buildRetryHint(_0x1da7ec){const _0x114eac=a123_0x4dfa86,_0x2ecbde=nonEmptyString(_0x1da7ec),_0x253fc3=_0x2ecbde?/^\d+$/[_0x114eac(0x20f)](_0x2ecbde)?'Wait\x20'+_0x2ecbde+_0x114eac(0x208):_0x114eac(0x1f9)+_0x2ecbde+'.':_0x114eac(0x204);return _0x253fc3+_0x114eac(0x1ef);}export function createRateLimitError(_0x540c7f){const _0x2370b3=a123_0x4dfa86,_0x17195e=nonEmptyString(_0x540c7f[_0x2370b3(0x1f8)])?.['toUpperCase'](),_0x56fe85=Number(_0x540c7f['status'])===0x1ad||_0x17195e!==undefined&&RATE_LIMIT_ERROR_CODES[_0x2370b3(0x207)](_0x17195e);if(!_0x56fe85)return undefined;return CliErrors[_0x2370b3(0x20c)](nonEmptyString(_0x540c7f[_0x2370b3(0x212)])??_0x2370b3(0x1fe),buildRetryHint(_0x540c7f[_0x2370b3(0x211)]));}export function readRetryAfter(_0x1c7756){const _0x4dc4a3=a123_0x4dfa86;if(!_0x1c7756||typeof _0x1c7756!==_0x4dc4a3(0x1f7))return undefined;const _0x571c16=_0x1c7756['get'];if(typeof _0x571c16==='function'){const _0x56fd3f=_0x571c16['call'](_0x1c7756,_0x4dc4a3(0x1fb))??_0x571c16[_0x4dc4a3(0x200)](_0x1c7756,_0x4dc4a3(0x20b));return nonEmptyString(_0x56fd3f);}for(const [_0x5e48ca,_0x2d345d]of Object[_0x4dc4a3(0x1f4)](_0x1c7756)){if(_0x5e48ca[_0x4dc4a3(0x202)]()==='retry-after')return nonEmptyString(_0x2d345d)??(typeof _0x2d345d===_0x4dc4a3(0x206)?String(_0x2d345d):undefined);}return undefined;}export function readRetryAfterSeconds(_0x8bdb4){const _0x8e6154=a123_0x4dfa86;if(!_0x8bdb4||typeof _0x8bdb4!=='object'||Array[_0x8e6154(0x203)](_0x8bdb4))return undefined;const _0x1e6c16=_0x8bdb4[_0x8e6154(0x20d)];if(typeof _0x1e6c16===_0x8e6154(0x206))return Number[_0x8e6154(0x1fc)](_0x1e6c16)&&_0x1e6c16>=0x0?String(_0x1e6c16):undefined;const _0x571f1a=nonEmptyString(_0x1e6c16);return _0x571f1a&&/^\d+$/[_0x8e6154(0x20f)](_0x571f1a)?_0x571f1a:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a124_0x3f473e=a124_0x42f0;(function(_0x1f16a3,_0x5d8bca){const _0x49f1dc=a124_0x42f0,_0x47b9cf=_0x1f16a3();while(!![]){try{const _0x19c4c6=-parseInt(_0x49f1dc(0x10a))/0x1*(parseInt(_0x49f1dc(0x113))/0x2)+parseInt(_0x49f1dc(0x12d))/0x3*(-parseInt(_0x49f1dc(0x10b))/0x4)+-parseInt(_0x49f1dc(0x10e))/0x5*(-parseInt(_0x49f1dc(0x10d))/0x6)+parseInt(_0x49f1dc(0x104))/0x7*(-parseInt(_0x49f1dc(0x11b))/0x8)+parseInt(_0x49f1dc(0x119))/0x9*(parseInt(_0x49f1dc(0x109))/0xa)+-parseInt(_0x49f1dc(0x105))/0xb*(parseInt(_0x49f1dc(0x11a))/0xc)+-parseInt(_0x49f1dc(0x12c))/0xd*(-parseInt(_0x49f1dc(0x10c))/0xe);if(_0x19c4c6===_0x5d8bca)break;else _0x47b9cf['push'](_0x47b9cf['shift']());}catch(_0x431578){_0x47b9cf['push'](_0x47b9cf['shift']());}}}(a124_0x1db7,0x2f615));import{CliErrors}from'../errors.js';function a124_0x1db7(){const _0x5f2df4=['name','\x20for\x20`','asc','add','page','service','filter','4238wDPCQL','16431tTgKEM','data','version','3311imjrFX','2186943zTvRft','command','page-size','stringify','680AQnjGh','375110esoDyD','92wrKyyr','19642ICIjak','12402kXQKOY','835PyDrlN','where','pagesize','no-','orderby','2wMXHjK','order-by','Run\x20`','currentpage','validation','active','39141hNjUdx','12kjtCWL','3456Qcsgiw','Unknown\x20flag\x20--','meowKey','\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20','flags','has','entries','\x20is\x20not\x20a\x20CLI\x20flag\x20for\x20`','select','\x20data\x20filter`.'];a124_0x1db7=function(){return _0x5f2df4;};return a124_0x1db7();}import{CLI_BIN_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a124_0x42f0(_0x16505b,_0x315cc3){_0x16505b=_0x16505b-0x103;const _0x1db78a=a124_0x1db7();let _0x42f04c=_0x1db78a[_0x16505b];return _0x42f04c;}import{toKebab}from'../framework/preparse.js';const FILTER_BODY_FIELDS=new Set([a124_0x3f473e(0x10f),a124_0x3f473e(0x123),a124_0x3f473e(0x114),a124_0x3f473e(0x112),'current-page',a124_0x3f473e(0x116),a124_0x3f473e(0x129),a124_0x3f473e(0x107),a124_0x3f473e(0x110)]);export function assertKnownCommandFlags(_0x2d91ff,_0x59cd6d){const _0x48494c=a124_0x3f473e,_0x57c601=new Set([_0x48494c(0x103)]);for(const _0x2e95c9 of GLOBAL_FLAGS){_0x57c601['add'](_0x2e95c9[_0x48494c(0x125)]),_0x57c601['add'](toKebab(_0x2e95c9[_0x48494c(0x11d)]));}for(const _0xe94324 of _0x2d91ff[_0x48494c(0x11f)]??[]){_0x57c601[_0x48494c(0x128)](_0xe94324[_0x48494c(0x125)]);}for(const [_0x368394,_0x370ce4]of Object[_0x48494c(0x121)](_0x59cd6d)){const _0x1b1526=toKebab(_0x368394);if(_0x57c601['has'](_0x1b1526))continue;if(_0x370ce4===![]&&_0x57c601[_0x48494c(0x120)](_0x48494c(0x111)+_0x1b1526))continue;if(_0x2d91ff[_0x48494c(0x12a)]===_0x48494c(0x12e)&&_0x2d91ff[_0x48494c(0x106)]===_0x48494c(0x12b)&&FILTER_BODY_FIELDS[_0x48494c(0x120)](_0x1b1526))throw CliErrors[_0x48494c(0x117)]('--'+_0x1b1526+_0x48494c(0x122)+CLI_BIN_NAME+_0x48494c(0x124),'Put\x20where,\x20select,\x20orderBy,\x20currentPage,\x20and\x20pageSize\x20inside\x20one\x20--params\x20JSON\x20object.\x20'+('Example:\x20'+CLI_BIN_NAME+_0x48494c(0x11e))+('\x27'+JSON[_0x48494c(0x108)]({'where':{'status':{'$eq':_0x48494c(0x118)}},'orderBy':[{'id':_0x48494c(0x127)}],'currentPage':0x1,'pageSize':0x14})+'\x27'));throw CliErrors['validation'](_0x48494c(0x11c)+_0x1b1526+_0x48494c(0x126)+CLI_BIN_NAME+'\x20'+_0x2d91ff[_0x48494c(0x12a)]+'\x20'+_0x2d91ff[_0x48494c(0x106)]+'`.',_0x48494c(0x115)+CLI_BIN_NAME+'\x20'+_0x2d91ff[_0x48494c(0x12a)]+'\x20'+_0x2d91ff[_0x48494c(0x106)]+'\x20--help`\x20to\x20see\x20accepted\x20flags.');}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a125_0x3564(_0x535884,_0x5798db){_0x535884=_0x535884-0x1c4;var _0x5dd4cc=a125_0x5dd4();var _0x35643d=_0x5dd4cc[_0x535884];return _0x35643d;}(function(_0x909d7b,_0x5f2dc1){var _0x20d120=a125_0x3564,_0x559af7=_0x909d7b();while(!![]){try{var _0xa1c809=-parseInt(_0x20d120(0x1c9))/0x1+parseInt(_0x20d120(0x1c5))/0x2*(-parseInt(_0x20d120(0x1c8))/0x3)+-parseInt(_0x20d120(0x1c6))/0x4*(parseInt(_0x20d120(0x1ca))/0x5)+-parseInt(_0x20d120(0x1cb))/0x6*(parseInt(_0x20d120(0x1c7))/0x7)+-parseInt(_0x20d120(0x1cd))/0x8+parseInt(_0x20d120(0x1c4))/0x9+parseInt(_0x20d120(0x1cc))/0xa;if(_0xa1c809===_0x5f2dc1)break;else _0x559af7['push'](_0x559af7['shift']());}catch(_0x12c11c){_0x559af7['push'](_0x559af7['shift']());}}}(a125_0x5dd4,0xc8918));function a125_0x5dd4(){var _0x1d4ab2=['16LmNMgD','15575EDJFMP','1472886pCQowI','1392284MSVHWy','1038965BeEHnB','1194AShMwl','42321660jBdBQN','6638616IcPhEw','14024754THkNJv','6JTTCiv'];a125_0x5dd4=function(){return _0x1d4ab2;};return a125_0x5dd4();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1eb62a,_0x39cbe7){const _0x548e40=a126_0x3d19,_0x5b40aa=_0x1eb62a();while(!![]){try{const _0x16f8aa=-parseInt(_0x548e40(0x1ba))/0x1*(parseInt(_0x548e40(0x1bb))/0x2)+-parseInt(_0x548e40(0x1b6))/0x3+parseInt(_0x548e40(0x1d1))/0x4+-parseInt(_0x548e40(0x1bf))/0x5*(parseInt(_0x548e40(0x1be))/0x6)+parseInt(_0x548e40(0x1cb))/0x7+parseInt(_0x548e40(0x1b0))/0x8+parseInt(_0x548e40(0x1c0))/0x9*(parseInt(_0x548e40(0x1c3))/0xa);if(_0x16f8aa===_0x39cbe7)break;else _0x5b40aa['push'](_0x5b40aa['shift']());}catch(_0x3582ee){_0x5b40aa['push'](_0x5b40aa['shift']());}}}(a126_0x5412,0x4d992));import{CLI_BIN_NAME}from'../constant/cli.js';import{isSensitiveFlagName}from'../utils/redaction.js';export function buildConfirmationLines(_0x3b6490,_0x519c6b,_0x50e908){const _0x3e6fd2=a126_0x3d19,_0x51d33b=buildConfirmationContext(_0x3b6490,_0x519c6b,_0x50e908),_0x43c6f0=[_0x3e6fd2(0x1d0)+_0x51d33b[_0x3e6fd2(0x1b9)]];return _0x51d33b[_0x3e6fd2(0x1b3)]&&_0x43c6f0[_0x3e6fd2(0x1cf)]('\x20\x20\x20'+_0x51d33b[_0x3e6fd2(0x1b3)]),_0x51d33b['affectedRecords']&&_0x43c6f0[_0x3e6fd2(0x1cf)]('\x20\x20\x20Affected:\x20'+_0x51d33b['affectedRecords']),_0x43c6f0[_0x3e6fd2(0x1cf)](_0x3e6fd2(0x1c6)),_0x43c6f0;}export function reconstructCommandArgv(_0x119108,_0x247466){const _0xfa06be=a126_0x3d19,_0x3f1015=[CLI_BIN_NAME,_0x119108[_0xfa06be(0x1c1)],_0x119108[_0xfa06be(0x1b1)]];for(const [_0x1a7227,_0x27cfcc]of Object[_0xfa06be(0x1ce)](_0x247466)){if(_0x27cfcc===!![])_0x3f1015[_0xfa06be(0x1cf)]('--'+_0x1a7227);else{if(isSensitiveFlagName(_0x1a7227)&&_0x27cfcc!==![]&&_0x27cfcc!==undefined&&_0x27cfcc!=='')_0x3f1015[_0xfa06be(0x1cf)]('--'+_0x1a7227+_0xfa06be(0x1b2));else _0x27cfcc!==![]&&_0x27cfcc!==undefined&&_0x27cfcc!==''&&_0x3f1015[_0xfa06be(0x1cf)]('--'+_0x1a7227+'\x20'+JSON[_0xfa06be(0x1cc)](_0x27cfcc));}}return _0x3f1015[_0xfa06be(0x1cf)]('--yes'),_0x3f1015[_0xfa06be(0x1c8)]('\x20');}function a126_0x5412(){const _0x167d36=['service','schedule-id','288520bvVmgh','schedule-id=','cron=','\x20\x20\x20Continue?\x20[y/N]\x20','title','join','length','params=','2567369ejbbIq','stringify','params','entries','push','⚠\x20\x20High-risk\x20operation:\x20','1420132fuNBwX','3594736GkYvDT','command','\x20[REDACTED]','description','cron','id=','1762842vqWMtn','kind','scheduled-at','commandLabel','1teofSp','931742ZXjDDk','code','channel=','66omKhsz','105725bSuQgH','135YAWalG'];a126_0x5412=function(){return _0x167d36;};return a126_0x5412();}function buildConfirmationContext(_0x12050e,_0x7c9a15,_0x6b576b){const _0x202565=extractAffectedRecords(_0x6b576b);return{'commandLabel':_0x7c9a15,'description':_0x12050e['description'],'affectedRecords':_0x202565};}function a126_0x3d19(_0x3ccc3f,_0x8d69cc){_0x3ccc3f=_0x3ccc3f-0x1b0;const _0x54124c=a126_0x5412();let _0x3d1921=_0x54124c[_0x3ccc3f];return _0x3d1921;}function extractAffectedRecords(_0x50b2b3){const _0x53caa7=a126_0x3d19,_0x17fd0f=[];if(_0x50b2b3['code'])_0x17fd0f[_0x53caa7(0x1cf)]('code='+_0x50b2b3[_0x53caa7(0x1bc)]);if(_0x50b2b3['id'])_0x17fd0f['push'](_0x53caa7(0x1b5)+_0x50b2b3['id']);if(_0x50b2b3[_0x53caa7(0x1c2)])_0x17fd0f['push'](_0x53caa7(0x1c4)+_0x50b2b3[_0x53caa7(0x1c2)]);if(_0x50b2b3['name'])_0x17fd0f[_0x53caa7(0x1cf)]('name='+_0x50b2b3['name']);if(_0x50b2b3[_0x53caa7(0x1c7)])_0x17fd0f[_0x53caa7(0x1cf)]('title='+_0x50b2b3[_0x53caa7(0x1c7)]);if(_0x50b2b3[_0x53caa7(0x1b7)])_0x17fd0f['push']('kind='+_0x50b2b3[_0x53caa7(0x1b7)]);if(_0x50b2b3[_0x53caa7(0x1b4)])_0x17fd0f[_0x53caa7(0x1cf)](_0x53caa7(0x1c5)+_0x50b2b3['cron']);if(_0x50b2b3[_0x53caa7(0x1b8)])_0x17fd0f[_0x53caa7(0x1cf)]('scheduled-at='+_0x50b2b3[_0x53caa7(0x1b8)]);if(_0x50b2b3['channel'])_0x17fd0f['push'](_0x53caa7(0x1bd)+_0x50b2b3['channel']);if(_0x50b2b3[_0x53caa7(0x1cd)])_0x17fd0f[_0x53caa7(0x1cf)](_0x53caa7(0x1ca)+_0x50b2b3[_0x53caa7(0x1cd)]);return _0x17fd0f[_0x53caa7(0x1c9)]>0x0?_0x17fd0f[_0x53caa7(0x1c8)](',\x20'):undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4b6c13,_0x3ef5ff){const _0x2409b0=a127_0x3190,_0x1e842c=_0x4b6c13();while(!![]){try{const _0x5f2500=-parseInt(_0x2409b0(0x9d))/0x1*(parseInt(_0x2409b0(0x8f))/0x2)+parseInt(_0x2409b0(0x94))/0x3*(-parseInt(_0x2409b0(0x9e))/0x4)+parseInt(_0x2409b0(0x97))/0x5*(-parseInt(_0x2409b0(0x95))/0x6)+parseInt(_0x2409b0(0x92))/0x7+parseInt(_0x2409b0(0x9f))/0x8*(parseInt(_0x2409b0(0x9b))/0x9)+parseInt(_0x2409b0(0x8d))/0xa*(-parseInt(_0x2409b0(0x90))/0xb)+parseInt(_0x2409b0(0x9a))/0xc;if(_0x5f2500===_0x3ef5ff)break;else _0x1e842c['push'](_0x1e842c['shift']());}catch(_0x5d9129){_0x1e842c['push'](_0x1e842c['shift']());}}}(a127_0x336b,0x1ab6b));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';import{createAccessError}from'../framework/access-error.js';function a127_0x3190(_0x366006,_0xcd98e9){_0x366006=_0x366006-0x8c;const _0x336bba=a127_0x336b();let _0x319053=_0x336bba[_0x366006];return _0x319053;}import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';export function mapUserFacingExecuteError(_0x11a164){const _0x5abeb7=a127_0x3190;if(_0x11a164 instanceof LovrabetError){const _0x58ec79=userFacingLovrabetMessage(_0x11a164),_0x595af1=_0x11a164,_0x5ddc8b=createRateLimitError({'status':_0x595af1['status'],'errorCode':_0x595af1['code'],'message':_0x58ec79,'retryAfter':readRetryAfter(_0x595af1[_0x5abeb7(0xa0)]?.[_0x5abeb7(0x8e)])??readRetryAfterSeconds(_0x595af1[_0x5abeb7(0xa0)])});return createAccessError(_0x595af1[_0x5abeb7(0xa0)],_0x595af1[_0x5abeb7(0xa1)])??_0x5ddc8b??(Number(_0x595af1[_0x5abeb7(0x98)])===0x191?CliErrors['apiError']('Request\x20rejected\x20(HTTP\x20401).',_0x5abeb7(0x91)):CliErrors[_0x5abeb7(0x93)](_0x58ec79));}return _0x11a164;}function userFacingLovrabetMessage(_0x5b9285){const _0x4f03b0=a127_0x3190,_0x23355d=_0x5b9285['description'];if(_0x23355d!==undefined&&_0x23355d!==null){if(typeof _0x23355d===_0x4f03b0(0x99)&&_0x23355d['trim']())return _0x23355d[_0x4f03b0(0x9c)]();try{return JSON[_0x4f03b0(0x8c)](_0x23355d);}catch{}}return _0x5b9285[_0x4f03b0(0x96)];}function a127_0x336b(){const _0x4f01b0=['5808sWMVNJ','The\x20response\x20does\x20not\x20identify\x20whether\x20authentication\x20or\x20permission\x20checks\x20failed.','747971TkqURX','validation','39ihhdsv','19194whzKWx','message','285Cntyru','status','string','4339812HsaKYx','5562hVIBmS','trim','1lARcPG','14164EgiVZE','1032vktcxw','response','code','stringify','3530rBuAwS','headers','48094XMByzA'];a127_0x336b=function(){return _0x4f01b0;};return a127_0x336b();}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x1612dc,_0x5dddb2){const _0x29f7d1=a125_0x15bd,_0x52cfa0=_0x1612dc();while(!![]){try{const _0x295040=-parseInt(_0x29f7d1(0x1c5))/0x1*(parseInt(_0x29f7d1(0x1cc))/0x2)+-parseInt(_0x29f7d1(0x1f2))/0x3*(parseInt(_0x29f7d1(0x1c9))/0x4)+parseInt(_0x29f7d1(0x1fe))/0x5+parseInt(_0x29f7d1(0x1ed))/0x6*(-parseInt(_0x29f7d1(0x1f5))/0x7)+-parseInt(_0x29f7d1(0x1f9))/0x8*(-parseInt(_0x29f7d1(0x1e6))/0x9)+-parseInt(_0x29f7d1(0x1e9))/0xa*(parseInt(_0x29f7d1(0x1ef))/0xb)+parseInt(_0x29f7d1(0x1c7))/0xc*(parseInt(_0x29f7d1(0x1d3))/0xd);if(_0x295040===_0x5dddb2)break;else _0x52cfa0['push'](_0x52cfa0['shift']());}catch(_0x2dcac0){_0x52cfa0['push'](_0x52cfa0['shift']());}}}(a125_0xd038,0xa7395));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';function a125_0x15bd(_0x281a96,_0x5c2108){_0x281a96=_0x281a96-0x1bd;const _0xd038bb=a125_0xd038();let _0x15bd0b=_0xd038bb[_0x281a96];return _0x15bd0b;}import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain,getRuntimeDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{assertKnownCommandFlags}from'../framework/raw-flags.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{assertCliVersionSupported,checkCliVersion}from'../utils/cli-version-check.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x268423){const _0x351763=a125_0x15bd;return void _0x268423,AUTH_MODE[_0x351763(0x1ee)];}function a125_0xd038(){const _0x7cb087=['filter','pretty','install','6fFsJYh','ClientAk','11RsjpyT','env','format','115365bAvvNP','risk','authRequired','3084501GIyPmi','isNonInteractive','appcode','string','62024TPddQF','rawFlags','cancelled','mergedCli','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','6473545QQZXOu','formatOutput','local-alias','Set\x20accessKey\x20in\x20','newConfigFileName','schema','../commands/app/remote-source.js','name','defaultPageSize','requiresAppCode','nativeToolRequired','APPCODE','includes','validation','apiDomain','riskLevel','_notice','504055ezJoYb','cli-skill','12RVKkOp','trim','68LLCcVL','accessKey','service','4QreTdw','pageSize','requiresAuth','items','has','appCode','production','16101787jBkEgG','defaultVerbose','nonInteractive','\x20\x20To\x20proceed:\x20','appcode\x20\x22','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','configMissing','resolve','appCodeSource','catch','../core/api-client.js','app','../core/sdk-client.js','defaultApp','.appcode\x20to\x20','\x20or\x20pass\x20','currentApp','command','object','432pnIlbZ','confirmHighRisk','nativeToolAvailable','1180150wWeika'];a125_0xd038=function(){return _0x7cb087;};return a125_0xd038();}let sdkClientInitialized=![];export function createPipelineEnv(_0x1d6675,_0x4aceb9){const _0x2bd862=a125_0x15bd,_0x287801=typeof _0x4aceb9['app']===_0x2bd862(0x1f8)&&_0x4aceb9[_0x2bd862(0x1de)][_0x2bd862(0x1c8)]();return{'rawFlags':_0x4aceb9,'appCode':_0x1d6675[_0x2bd862(0x1d1)]||productEnv(_0x2bd862(0x1bf))||(_0x287801?undefined:readAppCodeFromConfig()),'appCodeSource':_0x1d6675[_0x2bd862(0x1db)],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x4aceb9),'defaultFormat':_0x1d6675[_0x2bd862(0x1f1)],'defaultPageSize':_0x1d6675[_0x2bd862(0x1cd)],'defaultVerbose':_0x1d6675['verbose'],'riskLevel':_0x1d6675[_0x2bd862(0x1c3)],'nativeToolAvailable':_0x1d6675['nativeToolAvailable'],'accessKey':_0x1d6675[_0x2bd862(0x1ca)],'env':_0x1d6675['env'],'mergedCli':{'defaultApp':_0x1d6675[_0x2bd862(0x1e0)],'currentApp':_0x1d6675['currentApp'],'appCode':_0x1d6675[_0x2bd862(0x1d1)]}};}export function createLovrabetRunnerAdapter(_0x30d60={}){const _0x3bea57=a125_0x15bd,_0xa64997={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x3bea57(0x1ea)](_0x9abe04=>PIPELINE_FLAG_NAMES[_0x3bea57(0x1d0)](_0x9abe04[_0x3bea57(0x205)]))['map'](({name:_0x2d3e51,type:_0x4b64c5,description:_0x570771})=>({'name':_0x2d3e51,'type':_0x4b64c5,'description':_0x570771})),'formatOutput':_0x30d60[_0x3bea57(0x1ff)]??formatOutput,'getCommandLabel'(_0x22b086){const _0x3b339a=_0x3bea57;return CLI_BIN_NAME+'\x20'+_0x22b086[_0x3b339a(0x1cb)]+'\x20'+_0x22b086[_0x3b339a(0x1e4)];},'riskPolicy':{'onViolation'(_0x19446e,{def:_0x12804f,env:_0x425e7c}){if(shouldRouteWriteToNativeTool(_0x12804f,_0x425e7c))return;console['error'](_0x19446e);},'createError'(_0x34a81e,{def:_0x330aab,env:_0x13dd3d}){const _0x1307e2=_0x3bea57;if(shouldRouteWriteToNativeTool(_0x330aab,_0x13dd3d))return CliErrors[_0x1307e2(0x1be)](CLI_BIN_NAME+'\x20'+_0x330aab[_0x1307e2(0x1cb)]+'\x20'+_0x330aab[_0x1307e2(0x1e4)]);return CliErrors[_0x1307e2(0x1fb)](_0x34a81e);}},async 'prepare'(_0xbcd29,_0x4b5328){const _0x3cc699=_0x3bea57,_0x11368a=resolveAuthMode(_0x4b5328);if(_0xbcd29[_0x3cc699(0x1ce)]!==![]){if(!_0x4b5328[_0x3cc699(0x1ca)])throw CliErrors[_0x3cc699(0x1f4)](_0x3cc699(0x201)+PRODUCT_CONFIG['newConfigFileName']+_0x3cc699(0x1e2)+productEnvName('ACCESS_KEY')+'.');const {setActiveAK:_0x3fbf6d}=await import('../core/api-client.js');_0x3fbf6d(_0x4b5328[_0x3cc699(0x1ca)]);}let _0x29bb7b='';if(_0xbcd29[_0x3cc699(0x1bd)]!==![]){_0x29bb7b=_0x4b5328[_0x3cc699(0x1d1)]??'',_0x29bb7b=await resolveExplicitAppName(_0xbcd29,_0x4b5328,_0x29bb7b);if(!_0x29bb7b){await assertSelectedAppNameIsRuntimeAccessible(_0xbcd29,_0x4b5328);throw CliErrors[_0x3cc699(0x1d9)](_0x3cc699(0x1d8)+PRODUCT_CONFIG['newConfigFileName']+'.');}await assertAppCodeIsRuntimeAccessible(_0xbcd29,_0x4b5328,_0x29bb7b);}if(_0x29bb7b){const {initSdkClient:_0x310962}=await import(_0x3cc699(0x1df));_0x310962({'appCode':_0x29bb7b,'env':_0x4b5328[_0x3cc699(0x1f0)]??_0x3cc699(0x1d2),'runtimeDomain':_0x4b5328['runtimeDomain'],'accessKey':_0x4b5328[_0x3cc699(0x1ca)],'authMode':_0x11368a}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x4b5328[_0x3cc699(0x1d4)]},'numbers':{'pagesize':_0x4b5328[_0x3cc699(0x206)]}},'extras':{'appCode':_0x29bb7b,'cookie':'','apiDomain':_0x4b5328[_0x3cc699(0x1c2)],'apiDir':'','accessKey':_0x4b5328[_0x3cc699(0x1ca)],'envName':_0x4b5328[_0x3cc699(0x1f0)],'mergedCli':_0x4b5328[_0x3cc699(0x1fc)]}};},'confirmHighRisk':_0x30d60[_0x3bea57(0x1e7)]??(async({def:_0x7be73d,env:_0x2f0623,flags:_0x169f20,commandLabel:_0x218ed7})=>{const _0x114dd4=_0x3bea57;if(_0x2f0623[_0x114dd4(0x1f6)]){const _0xc8f99a=reconstructCommandArgv(_0x7be73d,_0x169f20);throw CliErrors['validation']('High-risk\x20operation\x20`'+_0x218ed7+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a'+(_0x114dd4(0x1d6)+_0xc8f99a));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x7be73d,_0x218ed7,_0x169f20),'createCancelledError':_0x33137c=>CliErrors[_0x114dd4(0x1fb)](_0x33137c)});}),'mapDryRunError'(_0x15ed95){return mapUserFacingExecuteError(_0x15ed95);},'mapExecuteError'(_0x941f9a){return mapUserFacingExecuteError(_0x941f9a);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0xa64997;}function shouldRouteWriteToNativeTool(_0x1b2d7a,_0x117567){const _0x57ce44=a125_0x15bd;return _0x117567[_0x57ce44(0x1e8)]===!![]&&(_0x1b2d7a[_0x57ce44(0x1f3)]==='write'||_0x1b2d7a['risk']==='high-risk-write');}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x58ce76=a125_0x15bd;try{if(sdkClientInitialized){const {clearSdkClient:_0x46e2ab}=await import(_0x58ce76(0x1df));_0x46e2ab();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x275cc0}=await import(_0x58ce76(0x1dd));_0x275cc0();}}async function resolveExplicitAppName(_0x2ad2b6,_0x4b6ec9,_0x3eeb3b){const _0x21d43e=a125_0x15bd;if(_0x2ad2b6[_0x21d43e(0x1bd)]===![])return _0x3eeb3b;const _0x3e2f7a=typeof _0x4b6ec9[_0x21d43e(0x1fa)][_0x21d43e(0x1de)]===_0x21d43e(0x1f8)?_0x4b6ec9[_0x21d43e(0x1fa)][_0x21d43e(0x1de)][_0x21d43e(0x1c8)]():'';if(!_0x3e2f7a)return _0x3eeb3b;const _0x53278c=typeof _0x4b6ec9['rawFlags'][_0x21d43e(0x1f7)]===_0x21d43e(0x1f8)&&_0x4b6ec9[_0x21d43e(0x1fa)]['appcode'][_0x21d43e(0x1c8)]()||productEnv(_0x21d43e(0x1bf));if(_0x53278c||_0x4b6ec9[_0x21d43e(0x1db)]===_0x21d43e(0x200))return _0x3eeb3b;const {getRemoteAppList:_0x39b5ed}=await import(_0x21d43e(0x204)),_0x4cc8c6=await _0x39b5ed({'env':_0x4b6ec9['env']??_0x21d43e(0x1d2),'accessKey':_0x4b6ec9[_0x21d43e(0x1ca)]}),_0x5eb8c5=findAppByName(_0x4cc8c6[_0x21d43e(0x1cf)],_0x3e2f7a);if(_0x5eb8c5&&!isRuntimeAccessibleApp(_0x5eb8c5))throw runtimeInaccessibleAppError(_0x5eb8c5,'\x22'+_0x3e2f7a+'\x22');const _0x1cf782=_0x5eb8c5?.[_0x21d43e(0x1d1)]?.[_0x21d43e(0x1c8)]();if(_0x1cf782)return _0x1cf782;throw CliErrors[_0x21d43e(0x1c1)]('Unknown\x20app:\x20'+_0x3e2f7a,'Run\x20`'+CLI_BIN_NAME+_0x21d43e(0x1fd)+_0x3e2f7a+_0x21d43e(0x1e1)+PRODUCT_CONFIG[_0x21d43e(0x202)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x11703e,_0x19ad9d){const _0x1f2681=a125_0x15bd;if(_0x11703e[_0x1f2681(0x1bd)]===![]||!_0x19ad9d['accessKey'])return;const _0x552314=(typeof _0x19ad9d['rawFlags'][_0x1f2681(0x1de)]===_0x1f2681(0x1f8)&&_0x19ad9d[_0x1f2681(0x1fa)][_0x1f2681(0x1de)][_0x1f2681(0x1c8)]()?_0x19ad9d[_0x1f2681(0x1fa)][_0x1f2681(0x1de)]:_0x19ad9d['mergedCli']?.[_0x1f2681(0x1e3)]??_0x19ad9d[_0x1f2681(0x1fc)]?.['defaultApp'])?.[_0x1f2681(0x1c8)]();if(!_0x552314)return;const {getRemoteAppList:_0x57be56}=await import(_0x1f2681(0x204)),_0x653338=await _0x57be56({'env':_0x19ad9d[_0x1f2681(0x1f0)]??'production','accessKey':_0x19ad9d[_0x1f2681(0x1ca)]}),_0x1d6c80=findAppByName(_0x653338[_0x1f2681(0x1cf)],_0x552314);if(_0x1d6c80&&!isRuntimeAccessibleApp(_0x1d6c80))throw runtimeInaccessibleAppError(_0x1d6c80,'\x22'+_0x552314+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x168533,_0x12a9a6,_0x3f89ec){const _0x161514=a125_0x15bd;if(_0x168533['requiresAppCode']===![]||!_0x12a9a6['accessKey'])return;const {getRemoteAppList:_0x5d4cd9}=await import(_0x161514(0x204)),_0x5a7bb9=await _0x5d4cd9({'env':_0x12a9a6[_0x161514(0x1f0)]??_0x161514(0x1d2),'accessKey':_0x12a9a6[_0x161514(0x1ca)]}),_0x50bd68=findAppByCode(_0x5a7bb9[_0x161514(0x1cf)],_0x3f89ec);if(_0x50bd68&&!isRuntimeAccessibleApp(_0x50bd68))throw runtimeInaccessibleAppError(_0x50bd68,_0x161514(0x1d7)+_0x3f89ec+'\x22');}export async function runCommand(_0x5eedb2,_0x99d73f,_0x59fcd7=terminalRunnerAdapter){assertKnownCommandFlags(_0x5eedb2,_0x99d73f['rawFlags']),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x5eedb2)?withVersionPolicy(_0x5eedb2):_0x5eedb2,_0x99d73f,_0x59fcd7);}function shouldApplyVersionPolicy(_0x46fd9c){const _0xf18e6b=a125_0x15bd;if(['update',_0xf18e6b(0x203),'doctor'][_0xf18e6b(0x1c0)](_0x46fd9c[_0xf18e6b(0x1cb)]))return![];return!(_0x46fd9c[_0xf18e6b(0x1cb)]===_0xf18e6b(0x1c6)&&_0x46fd9c[_0xf18e6b(0x1e4)]===_0xf18e6b(0x1ec));}function withVersionPolicy(_0x4b3493){return{..._0x4b3493,async 'execute'(_0x2d15c8){const _0x14e60f=a125_0x15bd,_0x25daa4=await checkCliVersion();assertCliVersionSupported(_0x25daa4);const _0x551e44=shouldResolveUpdateNotice(_0x2d15c8)?resolveLatestUpdateNotice(_0x25daa4)[_0x14e60f(0x1dc)](()=>null):Promise[_0x14e60f(0x1da)](null),_0x570e20=await _0x4b3493['execute'](_0x2d15c8);return attachUpdateNotice(_0x570e20,await _0x551e44);}};}function shouldResolveUpdateNotice(_0x1c55fe){const _0xc738e7=a125_0x15bd;return _0x1c55fe[_0xc738e7(0x1f1)]===_0xc738e7(0x1eb)&&!_0x1c55fe[_0xc738e7(0x1d5)];}function attachUpdateNotice(_0x3ac15d,_0x1decb8){const _0x57c83a=a125_0x15bd;if(!_0x1decb8||!_0x3ac15d||typeof _0x3ac15d!==_0x57c83a(0x1e5))return _0x3ac15d;const _0x319970=_0x3ac15d,_0xdb11a1=typeof _0x319970[_0x57c83a(0x1c4)]===_0x57c83a(0x1e5)&&_0x319970[_0x57c83a(0x1c4)]!==null?_0x319970[_0x57c83a(0x1c4)]:{};return{..._0x319970,'_notice':{..._0xdb11a1,'update':_0x1decb8}};}
|
|
1
|
+
function a128_0x3cfa(){const _0x18d329=['filter','execute','29455pIcxvE','APPCODE','error','ClientAk','appCode','10575450OAnlnd','map','confirmHighRisk','../commands/app/remote-source.js','\x20or\x20pass\x20','includes','write','pageSize','production','245651djdptR','352qDyayo','format','verbose','../core/api-client.js','configMissing','update','catch','app','appcode\x20\x22','env','has','trim','pretty','cli-skill','nativeToolRequired','Run\x20`','accessKey','nonInteractive','22087549PBPehG','runtimeDomain','formatOutput','service','nativeToolAvailable','1284egvNnm','11871XZriZL','local-alias','schema','12730GxZStK','_notice','appCodeSource','ACCESS_KEY','High-risk\x20operation\x20`','744882dtTudI','10XLkPOF','mergedCli','requiresAppCode','\x20\x20To\x20proceed:\x20','Unknown\x20app:\x20','defaultVerbose','apiDomain','rawFlags','validation','install','defaultPageSize','../core/sdk-client.js','object','authRequired','124uanwkh','resolve','defaultApp','currentApp','risk','items','command','string','doctor','appcode','newConfigFileName','cancelled','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','name'];a128_0x3cfa=function(){return _0x18d329;};return a128_0x3cfa();}(function(_0x4218f7,_0x469688){const _0xe3028c=a128_0x2eb0,_0x48eaf0=_0x4218f7();while(!![]){try{const _0x3e82f0=parseInt(_0xe3028c(0x1d7))/0x1+-parseInt(_0xe3028c(0x206))/0x2+-parseInt(_0xe3028c(0x1fe))/0x3*(parseInt(_0xe3028c(0x215))/0x4)+parseInt(_0xe3028c(0x201))/0x5*(parseInt(_0xe3028c(0x1fd))/0x6)+-parseInt(_0xe3028c(0x1e5))/0x7*(-parseInt(_0xe3028c(0x1e6))/0x8)+parseInt(_0xe3028c(0x1dc))/0x9+-parseInt(_0xe3028c(0x207))/0xa*(parseInt(_0xe3028c(0x1f8))/0xb);if(_0x3e82f0===_0x469688)break;else _0x48eaf0['push'](_0x48eaf0['shift']());}catch(_0x338a04){_0x48eaf0['push'](_0x48eaf0['shift']());}}}(a128_0x3cfa,0xc0f66));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain,getRuntimeDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{assertKnownCommandFlags}from'../framework/raw-flags.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{assertCliVersionSupported,checkCliVersion}from'../utils/cli-version-check.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0xaa7ce1){const _0x3defbf=a128_0x2eb0;return void _0xaa7ce1,AUTH_MODE[_0x3defbf(0x1da)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x437f41,_0x1b6bc3){const _0x3aff28=a128_0x2eb0,_0x451fc6=typeof _0x1b6bc3[_0x3aff28(0x1ed)]==='string'&&_0x1b6bc3[_0x3aff28(0x1ed)][_0x3aff28(0x1f1)]();return{'rawFlags':_0x1b6bc3,'appCode':_0x437f41[_0x3aff28(0x1db)]||productEnv(_0x3aff28(0x1d8))||(_0x451fc6?undefined:readAppCodeFromConfig()),'appCodeSource':_0x437f41[_0x3aff28(0x203)],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x1b6bc3),'defaultFormat':_0x437f41[_0x3aff28(0x1e7)],'defaultPageSize':_0x437f41[_0x3aff28(0x1e3)],'defaultVerbose':_0x437f41[_0x3aff28(0x1e8)],'riskLevel':_0x437f41['riskLevel'],'nativeToolAvailable':_0x437f41['nativeToolAvailable'],'accessKey':_0x437f41[_0x3aff28(0x1f6)],'env':_0x437f41['env'],'mergedCli':{'defaultApp':_0x437f41[_0x3aff28(0x217)],'currentApp':_0x437f41['currentApp'],'appCode':_0x437f41['appCode']}};}export function createLovrabetRunnerAdapter(_0x36404a={}){const _0x2280d5=a128_0x2eb0,_0x48c510={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x2280d5(0x223)](_0x1efd71=>PIPELINE_FLAG_NAMES[_0x2280d5(0x1f0)](_0x1efd71[_0x2280d5(0x222)]))[_0x2280d5(0x1dd)](({name:_0x2e22ef,type:_0x50578b,description:_0xe47c8a})=>({'name':_0x2e22ef,'type':_0x50578b,'description':_0xe47c8a})),'formatOutput':_0x36404a[_0x2280d5(0x1fa)]??formatOutput,'getCommandLabel'(_0x4f5062){const _0x2bfa47=_0x2280d5;return CLI_BIN_NAME+'\x20'+_0x4f5062[_0x2bfa47(0x1fb)]+'\x20'+_0x4f5062[_0x2bfa47(0x21b)];},'riskPolicy':{'onViolation'(_0x248a19,{def:_0x3ce197,env:_0x418f3e}){const _0x19662b=_0x2280d5;if(shouldRouteWriteToNativeTool(_0x3ce197,_0x418f3e))return;console[_0x19662b(0x1d9)](_0x248a19);},'createError'(_0x58a439,{def:_0x2f71fb,env:_0x1cd204}){const _0x2bcbce=_0x2280d5;if(shouldRouteWriteToNativeTool(_0x2f71fb,_0x1cd204))return CliErrors[_0x2bcbce(0x1f4)](CLI_BIN_NAME+'\x20'+_0x2f71fb[_0x2bcbce(0x1fb)]+'\x20'+_0x2f71fb['command']);return CliErrors[_0x2bcbce(0x220)](_0x58a439);}},async 'prepare'(_0x3a3b59,_0x2ab1c3){const _0x158d5d=_0x2280d5,_0x4e0a93=resolveAuthMode(_0x2ab1c3);if(_0x3a3b59['requiresAuth']!==![]){if(!_0x2ab1c3['accessKey'])throw CliErrors[_0x158d5d(0x214)]('Set\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+_0x158d5d(0x1e0)+productEnvName(_0x158d5d(0x204))+'.');const {setActiveAK:_0x273294}=await import(_0x158d5d(0x1e9));_0x273294(_0x2ab1c3[_0x158d5d(0x1f6)]);}let _0x4b2422='';if(_0x3a3b59[_0x158d5d(0x209)]!==![]){_0x4b2422=_0x2ab1c3[_0x158d5d(0x1db)]??'',_0x4b2422=await resolveExplicitAppName(_0x3a3b59,_0x2ab1c3,_0x4b2422);if(!_0x4b2422){await assertSelectedAppNameIsRuntimeAccessible(_0x3a3b59,_0x2ab1c3);throw CliErrors[_0x158d5d(0x1ea)]('Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20'+PRODUCT_CONFIG[_0x158d5d(0x21f)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x3a3b59,_0x2ab1c3,_0x4b2422);}if(_0x4b2422){const {initSdkClient:_0x90adc3}=await import(_0x158d5d(0x212));_0x90adc3({'appCode':_0x4b2422,'env':_0x2ab1c3[_0x158d5d(0x1ef)]??_0x158d5d(0x1e4),'runtimeDomain':_0x2ab1c3[_0x158d5d(0x1f9)],'accessKey':_0x2ab1c3[_0x158d5d(0x1f6)],'authMode':_0x4e0a93}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x2ab1c3[_0x158d5d(0x20c)]},'numbers':{'pagesize':_0x2ab1c3[_0x158d5d(0x211)]}},'extras':{'appCode':_0x4b2422,'cookie':'','apiDomain':_0x2ab1c3[_0x158d5d(0x20d)],'apiDir':'','accessKey':_0x2ab1c3[_0x158d5d(0x1f6)],'envName':_0x2ab1c3['env'],'mergedCli':_0x2ab1c3[_0x158d5d(0x208)]}};},'confirmHighRisk':_0x36404a[_0x2280d5(0x1de)]??(async({def:_0x431567,env:_0x196e1a,flags:_0x31fce7,commandLabel:_0x4c9075})=>{const _0x34913d=_0x2280d5;if(_0x196e1a['isNonInteractive']){const _0x3004c4=reconstructCommandArgv(_0x431567,_0x31fce7);throw CliErrors[_0x34913d(0x20f)](_0x34913d(0x205)+_0x4c9075+_0x34913d(0x221)+(_0x34913d(0x20a)+_0x3004c4));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x431567,_0x4c9075,_0x31fce7),'createCancelledError':_0x3e1970=>CliErrors[_0x34913d(0x220)](_0x3e1970)});}),'mapDryRunError'(_0x3d4dfd){return mapUserFacingExecuteError(_0x3d4dfd);},'mapExecuteError'(_0x19cbeb){return mapUserFacingExecuteError(_0x19cbeb);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x48c510;}function shouldRouteWriteToNativeTool(_0x2e360c,_0x1eccd9){const _0x27c982=a128_0x2eb0;return _0x1eccd9[_0x27c982(0x1fc)]===!![]&&(_0x2e360c[_0x27c982(0x219)]===_0x27c982(0x1e2)||_0x2e360c['risk']==='high-risk-write');}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x477b8b=a128_0x2eb0;try{if(sdkClientInitialized){const {clearSdkClient:_0x5a5eb5}=await import(_0x477b8b(0x212));_0x5a5eb5();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x1fd19f}=await import(_0x477b8b(0x1e9));_0x1fd19f();}}async function resolveExplicitAppName(_0x4082e9,_0x15460e,_0x3de321){const _0x4d5554=a128_0x2eb0;if(_0x4082e9['requiresAppCode']===![])return _0x3de321;const _0x2d4069=typeof _0x15460e[_0x4d5554(0x20e)][_0x4d5554(0x1ed)]===_0x4d5554(0x21c)?_0x15460e['rawFlags'][_0x4d5554(0x1ed)][_0x4d5554(0x1f1)]():'';if(!_0x2d4069)return _0x3de321;const _0x4922de=typeof _0x15460e[_0x4d5554(0x20e)][_0x4d5554(0x21e)]===_0x4d5554(0x21c)&&_0x15460e[_0x4d5554(0x20e)]['appcode']['trim']()||productEnv('APPCODE');if(_0x4922de||_0x15460e[_0x4d5554(0x203)]===_0x4d5554(0x1ff))return _0x3de321;const {getRemoteAppList:_0x11c3db}=await import('../commands/app/remote-source.js'),_0x404655=await _0x11c3db({'env':_0x15460e[_0x4d5554(0x1ef)]??_0x4d5554(0x1e4),'accessKey':_0x15460e[_0x4d5554(0x1f6)]}),_0x32bebb=findAppByName(_0x404655['items'],_0x2d4069);if(_0x32bebb&&!isRuntimeAccessibleApp(_0x32bebb))throw runtimeInaccessibleAppError(_0x32bebb,'\x22'+_0x2d4069+'\x22');const _0x18e733=_0x32bebb?.['appCode']?.[_0x4d5554(0x1f1)]();if(_0x18e733)return _0x18e733;throw CliErrors[_0x4d5554(0x20f)](_0x4d5554(0x20b)+_0x2d4069,_0x4d5554(0x1f5)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0x2d4069+'.appcode\x20to\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x134a61,_0x5bd8e9){const _0x1eb81b=a128_0x2eb0;if(_0x134a61[_0x1eb81b(0x209)]===![]||!_0x5bd8e9[_0x1eb81b(0x1f6)])return;const _0xbc1c24=(typeof _0x5bd8e9['rawFlags']['app']===_0x1eb81b(0x21c)&&_0x5bd8e9[_0x1eb81b(0x20e)][_0x1eb81b(0x1ed)]['trim']()?_0x5bd8e9[_0x1eb81b(0x20e)]['app']:_0x5bd8e9[_0x1eb81b(0x208)]?.[_0x1eb81b(0x218)]??_0x5bd8e9['mergedCli']?.[_0x1eb81b(0x217)])?.['trim']();if(!_0xbc1c24)return;const {getRemoteAppList:_0xb183b}=await import(_0x1eb81b(0x1df)),_0x18d252=await _0xb183b({'env':_0x5bd8e9['env']??_0x1eb81b(0x1e4),'accessKey':_0x5bd8e9[_0x1eb81b(0x1f6)]}),_0x3ddd4c=findAppByName(_0x18d252[_0x1eb81b(0x21a)],_0xbc1c24);if(_0x3ddd4c&&!isRuntimeAccessibleApp(_0x3ddd4c))throw runtimeInaccessibleAppError(_0x3ddd4c,'\x22'+_0xbc1c24+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x1d20c2,_0x58963a,_0x1cd900){const _0x48e94d=a128_0x2eb0;if(_0x1d20c2['requiresAppCode']===![]||!_0x58963a[_0x48e94d(0x1f6)])return;const {getRemoteAppList:_0x474173}=await import('../commands/app/remote-source.js'),_0x1a73ee=await _0x474173({'env':_0x58963a[_0x48e94d(0x1ef)]??'production','accessKey':_0x58963a['accessKey']}),_0x2693d2=findAppByCode(_0x1a73ee[_0x48e94d(0x21a)],_0x1cd900);if(_0x2693d2&&!isRuntimeAccessibleApp(_0x2693d2))throw runtimeInaccessibleAppError(_0x2693d2,_0x48e94d(0x1ee)+_0x1cd900+'\x22');}export async function runCommand(_0xc29c09,_0x1a9c20,_0x2fe37b=terminalRunnerAdapter){const _0x32ca76=a128_0x2eb0;assertKnownCommandFlags(_0xc29c09,_0x1a9c20[_0x32ca76(0x20e)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0xc29c09)?withVersionPolicy(_0xc29c09):_0xc29c09,_0x1a9c20,_0x2fe37b);}function shouldApplyVersionPolicy(_0x45f729){const _0x21a866=a128_0x2eb0;if([_0x21a866(0x1eb),_0x21a866(0x200),_0x21a866(0x21d)][_0x21a866(0x1e1)](_0x45f729[_0x21a866(0x1fb)]))return![];return!(_0x45f729[_0x21a866(0x1fb)]===_0x21a866(0x1f3)&&_0x45f729['command']===_0x21a866(0x210));}function withVersionPolicy(_0x2d71a9){return{..._0x2d71a9,async 'execute'(_0x33532c){const _0x3c6df2=a128_0x2eb0,_0x37e769=await checkCliVersion();assertCliVersionSupported(_0x37e769);const _0x4cb4a1=shouldResolveUpdateNotice(_0x33532c)?resolveLatestUpdateNotice(_0x37e769)[_0x3c6df2(0x1ec)](()=>null):Promise[_0x3c6df2(0x216)](null),_0x226485=await _0x2d71a9[_0x3c6df2(0x1d6)](_0x33532c);return attachUpdateNotice(_0x226485,await _0x4cb4a1);}};}function shouldResolveUpdateNotice(_0x7467e1){const _0x558994=a128_0x2eb0;return _0x7467e1[_0x558994(0x1e7)]===_0x558994(0x1f2)&&!_0x7467e1[_0x558994(0x1f7)];}function a128_0x2eb0(_0x4a3e76,_0x2d7f8b){_0x4a3e76=_0x4a3e76-0x1d6;const _0x3cfad9=a128_0x3cfa();let _0x2eb06f=_0x3cfad9[_0x4a3e76];return _0x2eb06f;}function attachUpdateNotice(_0x298b13,_0x34c2f7){const _0x438e1a=a128_0x2eb0;if(!_0x34c2f7||!_0x298b13||typeof _0x298b13!==_0x438e1a(0x213))return _0x298b13;const _0x2410c4=_0x298b13,_0x5da536=typeof _0x2410c4[_0x438e1a(0x202)]===_0x438e1a(0x213)&&_0x2410c4['_notice']!==null?_0x2410c4[_0x438e1a(0x202)]:{};return{..._0x2410c4,'_notice':{..._0x5da536,'update':_0x34c2f7}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a129_0x5926(){const _0x3fbce4=['requiresAuth','11336QjyYKz','auth','52iXgMcB','map','has','required','services','none','2528952WqfVkG','4snwfuO','687306PhVjcQ','4160740TvaxWH','19337DVkycw','2256435MRFhPs','5331942sgzCip','service','322tRkWrB','45SgJLIt'];a129_0x5926=function(){return _0x3fbce4;};return a129_0x5926();}(function(_0x386fb1,_0x4d5dc5){const _0x2d69f7=a129_0x1483,_0x40efda=_0x386fb1();while(!![]){try{const _0x5e908f=-parseInt(_0x2d69f7(0x125))/0x1*(parseInt(_0x2d69f7(0x11b))/0x2)+-parseInt(_0x2d69f7(0x121))/0x3*(-parseInt(_0x2d69f7(0x122))/0x4)+parseInt(_0x2d69f7(0x117))/0x5*(-parseInt(_0x2d69f7(0x123))/0x6)+-parseInt(_0x2d69f7(0x116))/0x7*(-parseInt(_0x2d69f7(0x119))/0x8)+parseInt(_0x2d69f7(0x126))/0x9+parseInt(_0x2d69f7(0x124))/0xa+parseInt(_0x2d69f7(0x127))/0xb;if(_0x5e908f===_0x4d5dc5)break;else _0x40efda['push'](_0x40efda['shift']());}catch(_0x3b81d1){_0x40efda['push'](_0x40efda['shift']());}}}(a129_0x5926,0x80684));import{buildSchemaPayload as a129_0x1456d1}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 a129_0x1483(_0x481455,_0x35c823){_0x481455=_0x481455-0x116;const _0x5926eb=a129_0x5926();let _0x14832a=_0x5926eb[_0x481455];return _0x14832a;}export async function buildSchemaPayload(){const _0x5af96c=a129_0x1483,{serviceRegistry:_0xb0257f,findDefinition:_0x23715e}=await import('../commands/registry.js'),_0x59e904=new Set(_0xb0257f[_0x5af96c(0x11c)](_0x4e4323=>_0x4e4323['service'])),_0x47d67b=listDynamicServiceEntries()['filter'](_0x332845=>!_0x59e904[_0x5af96c(0x11d)](_0x332845[_0x5af96c(0x128)])),_0x23aace=a129_0x1456d1({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0xb0257f,_0x47d67b),'buildAllFlags':buildAllFlags,'findDefinition':(_0x688fed,_0xc6bfe4)=>_0x23715e(_0x688fed,_0xc6bfe4)??findDynamicServiceDefinition(_0x688fed,_0xc6bfe4)});return normalizeSchemaPayload(_0x23aace);}function normalizeSchemaPayload(_0x8c4a08){const _0x39fc2d=a129_0x1483;return{..._0x8c4a08,'schemaVersion':0x2,'services':_0x8c4a08[_0x39fc2d(0x11f)][_0x39fc2d(0x11c)](_0x2426bc=>({..._0x2426bc,'commands':_0x2426bc['commands'][_0x39fc2d(0x11c)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x92eed7){const _0x24b242=a129_0x1483,_0x10bdf1=_0x92eed7;return{..._0x92eed7,'auth':_0x10bdf1[_0x24b242(0x11a)]??(_0x92eed7[_0x24b242(0x118)]?_0x24b242(0x11e):_0x24b242(0x120))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a130_0x56e2(){const _0x47fce9=['5qNmjOA','length','457394KRzjHu','1138036cYHwSN','9MAgDWW','slice','676431VkQZzJ','service','658100CPuFYm','606851DHsCVV','24RvzLhs','297731MIZcaC','18996PyvJru'];a130_0x56e2=function(){return _0x47fce9;};return a130_0x56e2();}(function(_0xd4e179,_0x5ab284){const _0x38088f=a130_0x376a,_0x1a346b=_0xd4e179();while(!![]){try{const _0x48adbd=parseInt(_0x38088f(0x119))/0x1+-parseInt(_0x38088f(0x110))/0x2+parseInt(_0x38088f(0x114))/0x3+-parseInt(_0x38088f(0x111))/0x4*(-parseInt(_0x38088f(0x11b))/0x5)+-parseInt(_0x38088f(0x11a))/0x6+-parseInt(_0x38088f(0x117))/0x7*(parseInt(_0x38088f(0x118))/0x8)+parseInt(_0x38088f(0x112))/0x9*(-parseInt(_0x38088f(0x116))/0xa);if(_0x48adbd===_0x5ab284)break;else _0x1a346b['push'](_0x1a346b['shift']());}catch(_0x312e2e){_0x1a346b['push'](_0x1a346b['shift']());}}}(a130_0x56e2,0x3d06d));function a130_0x376a(_0x1fe7d0,_0x3adfa9){_0x1fe7d0=_0x1fe7d0-0x10f;const _0x56e2b2=a130_0x56e2();let _0x376a82=_0x56e2b2[_0x1fe7d0];return _0x376a82;}export function insertDynamicServicesAfterServiceTree(_0x13d3ce,_0x4502df){const _0x212b21=a130_0x376a;if(_0x4502df[_0x212b21(0x10f)]===0x0)return[..._0x13d3ce];const _0x2f7e14=_0x13d3ce['findIndex'](_0x414143=>_0x414143[_0x212b21(0x115)]===_0x212b21(0x115));if(_0x2f7e14<0x0)return[..._0x13d3ce,..._0x4502df];return[..._0x13d3ce[_0x212b21(0x113)](0x0,_0x2f7e14+0x1),..._0x4502df,..._0x13d3ce['slice'](_0x2f7e14+0x1)];}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1f47fd,_0x3f1ff8){var _0x43b27b=a131_0x3583,_0x3a76ef=_0x1f47fd();while(!![]){try{var _0x9717=-parseInt(_0x43b27b(0xcb))/0x1*(parseInt(_0x43b27b(0xc7))/0x2)+parseInt(_0x43b27b(0xc5))/0x3+-parseInt(_0x43b27b(0xc9))/0x4*(parseInt(_0x43b27b(0xc2))/0x5)+-parseInt(_0x43b27b(0xcc))/0x6+-parseInt(_0x43b27b(0xc8))/0x7*(parseInt(_0x43b27b(0xc4))/0x8)+parseInt(_0x43b27b(0xca))/0x9+parseInt(_0x43b27b(0xc3))/0xa*(parseInt(_0x43b27b(0xc6))/0xb);if(_0x9717===_0x3f1ff8)break;else _0x3a76ef['push'](_0x3a76ef['shift']());}catch(_0x891e44){_0x3a76ef['push'](_0x3a76ef['shift']());}}}(a131_0x1347,0x9b61f));function a131_0x3583(_0x483adc,_0xb34cd5){_0x483adc=_0x483adc-0xc2;var _0x13475d=a131_0x1347();var _0x35836b=_0x13475d[_0x483adc];return _0x35836b;}function a131_0x1347(){var _0x39d386=['6892uXZPUc','5116347SEwLlZ','1MhPNWt','2729382UBJkmw','1545uRNWPi','230gSrITc','2899920dHYpXd','2883966frWqPK','1150578DSCaor','2448676AgsQxx','21LGwhJS'];a131_0x1347=function(){return _0x39d386;};return a131_0x1347();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.3.8-beta.
|
|
2
|
-
export declare const GIT_TAG = "v2.3.8-beta.
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-
|
|
1
|
+
export declare const VERSION = "2.3.8-beta.6";
|
|
2
|
+
export declare const GIT_TAG = "v2.3.8-beta.6";
|
|
3
|
+
export declare const GIT_COMMIT = "bd72bc8";
|
|
4
|
+
export declare const BUILD_TIME = "2026-11-02T09:18:02.466Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a132_0x3763af=a132_0x1517;(function(_0x47b4bb,_0x703e0){const _0xeb707b=a132_0x1517,_0x19b938=_0x47b4bb();while(!![]){try{const _0x1532d2=-parseInt(_0xeb707b(0xaa))/0x1*(parseInt(_0xeb707b(0xab))/0x2)+-parseInt(_0xeb707b(0xa9))/0x3*(parseInt(_0xeb707b(0xa5))/0x4)+parseInt(_0xeb707b(0xa4))/0x5+parseInt(_0xeb707b(0xa8))/0x6*(parseInt(_0xeb707b(0xaf))/0x7)+-parseInt(_0xeb707b(0xae))/0x8+-parseInt(_0xeb707b(0xad))/0x9+parseInt(_0xeb707b(0xac))/0xa;if(_0x1532d2===_0x703e0)break;else _0x19b938['push'](_0x19b938['shift']());}catch(_0x493f8a){_0x19b938['push'](_0x19b938['shift']());}}}(a132_0x4707,0x1e382));export const VERSION=a132_0x3763af(0xa6);function a132_0x1517(_0xfd83b7,_0x2b1dfd){_0xfd83b7=_0xfd83b7-0xa4;const _0x47073f=a132_0x4707();let _0x1517c0=_0x47073f[_0xfd83b7];return _0x1517c0;}function a132_0x4707(){const _0x38cc5c=['608TDomjm','2313650qToXKR','1619118XNfZrc','397112nTDrAM','7dIBQFA','449200HuJpzz','744jLpUgk','2.3.8-beta.6','bd72bc8','488904uyXIZn','507jxcNRt','59RdICKO'];a132_0x4707=function(){return _0x38cc5c;};return a132_0x4707();}export const GIT_TAG='v2.3.8-beta.6';export const GIT_COMMIT=a132_0x3763af(0xa7);export const BUILD_TIME='2026-11-02T09:18:02.466Z';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a133_0x42c29a=a133_0x198d;function a133_0x198d(_0x544b20,_0x579aa0){_0x544b20=_0x544b20-0x161;const _0x99ed93=a133_0x99ed();let _0x198d2d=_0x99ed93[_0x544b20];return _0x198d2d;}(function(_0x360fca,_0x24e4c1){const _0x4a9efc=a133_0x198d,_0x1b0d4b=_0x360fca();while(!![]){try{const _0x1667ed=-parseInt(_0x4a9efc(0x184))/0x1+parseInt(_0x4a9efc(0x170))/0x2+-parseInt(_0x4a9efc(0x176))/0x3*(-parseInt(_0x4a9efc(0x167))/0x4)+-parseInt(_0x4a9efc(0x16d))/0x5*(-parseInt(_0x4a9efc(0x16e))/0x6)+-parseInt(_0x4a9efc(0x17d))/0x7*(parseInt(_0x4a9efc(0x161))/0x8)+parseInt(_0x4a9efc(0x169))/0x9*(-parseInt(_0x4a9efc(0x165))/0xa)+parseInt(_0x4a9efc(0x16c))/0xb;if(_0x1667ed===_0x24e4c1)break;else _0x1b0d4b['push'](_0x1b0d4b['shift']());}catch(_0x554929){_0x1b0d4b['push'](_0x1b0d4b['shift']());}}}(a133_0x99ed,0x959a8));export const ROUTING_CATALOG_DIGEST=a133_0x42c29a(0x162);export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id',a133_0x42c29a(0x180)];export const ENABLED_REGION_VALUES=['cn','id',a133_0x42c29a(0x180)];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a133_0x42c29a(0x181),'aliases':[a133_0x42c29a(0x175)],'serviceDomains':{'production':{'user':a133_0x42c29a(0x17a),'api':a133_0x42c29a(0x183),'runtime':a133_0x42c29a(0x173),'skill':a133_0x42c29a(0x163),'kbService':'https://kb-service.lovrabet.com'},'daily':{'user':a133_0x42c29a(0x166),'api':a133_0x42c29a(0x17c),'runtime':a133_0x42c29a(0x164),'skill':'https://skills-daily.lovrabet.com','kbService':a133_0x42c29a(0x16b)}}},'id':{'enabled':!![],'label':a133_0x42c29a(0x178),'aliases':[a133_0x42c29a(0x182)],'serviceDomains':{'production':{'user':a133_0x42c29a(0x172),'api':a133_0x42c29a(0x174),'runtime':'https://runtime.lovrabet.id','skill':a133_0x42c29a(0x17f),'kbService':'https://kb-service.lovrabet.id'}}},'global':{'enabled':!![],'label':a133_0x42c29a(0x177),'aliases':[],'serviceDomains':{'production':{'user':a133_0x42c29a(0x17b),'api':a133_0x42c29a(0x17e),'runtime':a133_0x42c29a(0x171),'skill':a133_0x42c29a(0x179)},'daily':{'user':a133_0x42c29a(0x16a),'api':a133_0x42c29a(0x168),'runtime':a133_0x42c29a(0x185),'skill':a133_0x42c29a(0x16f)}}}};function a133_0x99ed(){const _0x2fd341=['40408fcFpXE','886843ef89aa4ff2b36d612e8fbd1b6c1840b37728916fba5699be34129ef579','https://skills.lovrabet.com','https://daily-runtime.lovrabet.com','10690wCAIjI','https://user-daily.lovrabet.com','8KCYrld','https://daily-api.lovrabet.ai','2196iaYXzk','https://user-daily.lovrabet.ai','https://kb-service-daily.lovrabet.com','2144395xMMZTU','84705mgBDzE','12XYRaCE','https://skills-daily.lovrabet.ai','1187702QmTyhf','https://runtime.lovrabet.ai','https://user.lovrabet.id','https://runtime.lovrabet.com','https://api.lovrabet.id','china','1186473RAqvvC','Global','Indonesia','https://skills.lovrabet.ai','https://user.lovrabet.com','https://user.lovrabet.ai','https://daily-api.lovrabet.com','259EEFAdZ','https://api.lovrabet.ai','https://skills.lovrabet.id','global','Mainland\x20China','indonesia','https://api.lovrabet.com','553161mSAOUe','https://daily-runtime.lovrabet.ai'];a133_0x99ed=function(){return _0x2fd341;};return a133_0x99ed();}export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a134_0x5dad1e=a134_0x4914;(function(_0x229a8c,_0x55136c){const _0x4e8e76=a134_0x4914,_0x33b08d=_0x229a8c();while(!![]){try{const _0x53aa5d=-parseInt(_0x4e8e76(0x1b4))/0x1*(-parseInt(_0x4e8e76(0x1b8))/0x2)+-parseInt(_0x4e8e76(0x1b5))/0x3+parseInt(_0x4e8e76(0x1bf))/0x4*(-parseInt(_0x4e8e76(0x1c3))/0x5)+parseInt(_0x4e8e76(0x1bc))/0x6+parseInt(_0x4e8e76(0x1b6))/0x7+-parseInt(_0x4e8e76(0x1b7))/0x8*(-parseInt(_0x4e8e76(0x1c1))/0x9)+-parseInt(_0x4e8e76(0x1b9))/0xa*(-parseInt(_0x4e8e76(0x1ba))/0xb);if(_0x53aa5d===_0x55136c)break;else _0x33b08d['push'](_0x33b08d['shift']());}catch(_0x508fa2){_0x33b08d['push'](_0x33b08d['shift']());}}}(a134_0x57ba,0x289a6));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a134_0x5dad1e(0x1bb);function a134_0x57ba(){const _0x4a2250=['741414iuJSjl','361347VOmHUj','24iHQjJS','462ygMwer','10ZTSOWN','1517351aXnYXG','e3423cad71c22edb18a8481be7bdb733ff2d4136c31aa3ae6da56271e32cced7','824988uHbmqn','apiDomain','enterprise','242476UWVChf','skillDomain','196281esoTSh','runtimeDomain','15KfrsMc','userDomain','878jqGKMd'];a134_0x57ba=function(){return _0x4a2250;};return a134_0x57ba();}function a134_0x4914(_0x504daa,_0x4b537b){_0x504daa=_0x504daa-0x1b3;const _0x57ba92=a134_0x57ba();let _0x4914cc=_0x57ba92[_0x504daa];return _0x4914cc;}export const ENTERPRISE_ROUTING_PROTOCOL='lovrabet-routing/v1';export const ENTERPRISE_ROUTING_KIND=a134_0x5dad1e(0x1be);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a134_0x5dad1e(0x1b3),a134_0x5dad1e(0x1bd),'runtimeDomain',a134_0x5dad1e(0x1c0),'kbServiceDomain'];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a134_0x5dad1e(0x1b3),'apiDomain',a134_0x5dad1e(0x1c2),a134_0x5dad1e(0x1c0)];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a135_0x58e2(_0xae7b2d,_0x173ca0){_0xae7b2d=_0xae7b2d-0x122;const _0x29f0ef=a135_0x29f0();let _0x58e267=_0x29f0ef[_0xae7b2d];return _0x58e267;}(function(_0x16207a,_0x55c921){const _0x3e9c9d=a135_0x58e2,_0x4c0e33=_0x16207a();while(!![]){try{const _0x3249a4=parseInt(_0x3e9c9d(0x131))/0x1*(-parseInt(_0x3e9c9d(0x126))/0x2)+parseInt(_0x3e9c9d(0x12a))/0x3*(parseInt(_0x3e9c9d(0x127))/0x4)+parseInt(_0x3e9c9d(0x12e))/0x5+parseInt(_0x3e9c9d(0x12f))/0x6*(-parseInt(_0x3e9c9d(0x122))/0x7)+parseInt(_0x3e9c9d(0x12b))/0x8*(-parseInt(_0x3e9c9d(0x124))/0x9)+-parseInt(_0x3e9c9d(0x129))/0xa*(-parseInt(_0x3e9c9d(0x12d))/0xb)+parseInt(_0x3e9c9d(0x12c))/0xc;if(_0x3249a4===_0x55c921)break;else _0x4c0e33['push'](_0x4c0e33['shift']());}catch(_0x1e6484){_0x4c0e33['push'](_0x4c0e33['shift']());}}}(a135_0x29f0,0xb03b5));import{jsx as a135_0x258f58,jsxs as a135_0xb1fd68}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x174080=a135_0x58e2,{exit:_0x3482e7}=useApp();return useEffect(()=>{_0x3482e7();},[_0x3482e7]),a135_0xb1fd68(Box,{'flexDirection':_0x174080(0x125),'marginTop':0x1,'marginBottom':0x1,'children':[a135_0x258f58(Box,{'children':a135_0x258f58(Text,{'bold':!![],'color':_0x174080(0x123),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a135_0xb1fd68(Box,{'marginTop':0x1,'children':[a135_0x258f58(Text,{'dimColor':!![],'children':_0x174080(0x130)}),a135_0x258f58(Text,{'bold':!![],'color':_0x174080(0x123),'children':CLI_BIN_NAME+_0x174080(0x128)}),a135_0x258f58(Text,{'dimColor':!![],'children':'\x20to\x20view\x20available\x20commands.'})]})]});}function a135_0x29f0(){const _0x203204=['83fbDYjb','259gBcsAG','green','3302766zffWXn','column','13162ybliEb','36fgHZbV','\x20--help','168490amzGiF','83994OJLMBe','16ZeNkMd','10635060INfRKX','176PUjxsN','6139655tZxvMQ','102768WDrlMF','\x20\x20Use\x20'];a135_0x29f0=function(){return _0x203204;};return a135_0x29f0();}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a136_0x1d7f(_0x2e0b2c,_0x2fcde1){_0x2e0b2c=_0x2e0b2c-0x8c;const _0xd9a60e=a136_0xd9a6();let _0x1d7fee=_0xd9a60e[_0x2e0b2c];return _0x1d7fee;}function a136_0xd9a6(){const _0xf60ead=['installedPath','changed','33GJmcDD','370077sgwsUs','code','log','29742XwKRmD','1977960stdxkz','\x20at\x20','756OHWOfl','skillVersion','FAILED','installed','[BUILTIN_SKILL_INSTALL_','already\x20current','957332YJnTXo','Repair\x20with:\x20','4502625KBygSi','\x20via\x20skills@latest','79848UAUtfY','3qUFOwj','7887140KgtAhk','512bChmAM'];a136_0xd9a6=function(){return _0xf60ead;};return a136_0xd9a6();}(function(_0x295c46,_0x36969f){const _0x40dc35=a136_0x1d7f,_0xc37a1a=_0x295c46();while(!![]){try{const _0x3658bd=-parseInt(_0x40dc35(0x9f))/0x1+-parseInt(_0x40dc35(0x8c))/0x2*(-parseInt(_0x40dc35(0x99))/0x3)+parseInt(_0x40dc35(0x94))/0x4+parseInt(_0x40dc35(0x96))/0x5+parseInt(_0x40dc35(0xa2))/0x6*(parseInt(_0x40dc35(0x8e))/0x7)+-parseInt(_0x40dc35(0x9b))/0x8*(-parseInt(_0x40dc35(0x98))/0x9)+parseInt(_0x40dc35(0x9a))/0xa*(-parseInt(_0x40dc35(0x9e))/0xb);if(_0x3658bd===_0x36969f)break;else _0xc37a1a['push'](_0xc37a1a['shift']());}catch(_0x12dbfc){_0xc37a1a['push'](_0xc37a1a['shift']());}}}(a136_0xd9a6,0x790a7));import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x5ba258={}){const _0x19d5a2=a136_0x1d7f,_0x4267e5=installBuiltinSkill(_0x5ba258);if(_0x4267e5['ok']){const _0x47fa9d=_0x4267e5[_0x19d5a2(0x9d)]?_0x19d5a2(0x91):_0x19d5a2(0x93),_0x5af7d2=_0x4267e5[_0x19d5a2(0x9c)]?_0x19d5a2(0x8d)+_0x4267e5[_0x19d5a2(0x9c)]:_0x19d5a2(0x97);return console[_0x19d5a2(0xa1)]('Lovrabet\x20Built-in\x20Skill\x20'+_0x4267e5[_0x19d5a2(0x8f)]+'\x20'+_0x47fa9d+_0x5af7d2),_0x4267e5;}const _0x38379a=_0x19d5a2(0x92)+(_0x4267e5[_0x19d5a2(0xa0)]??_0x19d5a2(0x90))+']\x20'+(_0x4267e5['error']??'Installation\x20failed')+'.\x20'+(_0x19d5a2(0x95)+_0x4267e5['repairCommand']);if(_0x4267e5[_0x19d5a2(0xa0)]==='SOURCE_INVALID')throw new Error(_0x38379a);return console['warn'](_0x38379a),_0x4267e5;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x402245,_0x21c998){const _0x24be35=a137_0x3b19,_0x3e18c8=_0x402245();while(!![]){try{const _0x1d0d58=parseInt(_0x24be35(0x14d))/0x1+parseInt(_0x24be35(0x14e))/0x2*(parseInt(_0x24be35(0x153))/0x3)+parseInt(_0x24be35(0x14f))/0x4+-parseInt(_0x24be35(0x15b))/0x5*(parseInt(_0x24be35(0x158))/0x6)+-parseInt(_0x24be35(0x156))/0x7*(-parseInt(_0x24be35(0x15c))/0x8)+-parseInt(_0x24be35(0x151))/0x9+-parseInt(_0x24be35(0x15e))/0xa*(-parseInt(_0x24be35(0x159))/0xb);if(_0x1d0d58===_0x21c998)break;else _0x3e18c8['push'](_0x3e18c8['shift']());}catch(_0x39fa7e){_0x3e18c8['push'](_0x3e18c8['shift']());}}}(a137_0x2ab4,0xe05dd));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildLovrabetConfirmationRequest(_0x3e43f8,_0x5ad74b,_0x1c3ed7){const _0x194303=a137_0x3b19,_0x4368e6=normalizeText(_0x3e43f8['confirmationDescription'],DESCRIPTION_MAX_LENGTH),_0x425c4c=normalizeText(_0x3e43f8[_0x194303(0x14c)],DESCRIPTION_MAX_LENGTH);return{'operation':_0x5ad74b,'risk':requireWriteRisk(_0x3e43f8),'description':_0x4368e6||_0x425c4c||_0x194303(0x15f),..._0x1c3ed7?{'signal':_0x1c3ed7}:{}};}function requireWriteRisk(_0x544beb){const _0x4a57cd=a137_0x3b19;if(_0x544beb[_0x4a57cd(0x155)]==='write'||_0x544beb['risk']===_0x4a57cd(0x15a))return _0x544beb[_0x4a57cd(0x155)];throw new Error(_0x4a57cd(0x154));}function a137_0x3b19(_0x13e8bf,_0x5226de){_0x13e8bf=_0x13e8bf-0x14c;const _0x2ab4df=a137_0x2ab4();let _0x3b19a7=_0x2ab4df[_0x13e8bf];return _0x3b19a7;}function a137_0x2ab4(){const _0x1c6e9a=['8320194KdpcwD','string','2154EaumMt','Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.','risk','14kvkLkB','replace','2316FQGpAm','7038482gFLgYk','high-risk-write','19495NeNNqP','820056kMEKsa','trim','10XFKEAS','Run\x20this\x20write\x20operation','description','1198195fCZbIY','1438UsuYaM','3156688hXejli','slice'];a137_0x2ab4=function(){return _0x1c6e9a;};return a137_0x2ab4();}function normalizeText(_0x125dfd,_0x2c8ea8){const _0x40e465=a137_0x3b19;if(typeof _0x125dfd!==_0x40e465(0x152))return'';return _0x125dfd[_0x40e465(0x157)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x40e465(0x157)](/\s+/g,'\x20')[_0x40e465(0x15d)]()[_0x40e465(0x150)](0x0,_0x2c8ea8);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a138_0x2eec(){const _0x3065c6=['write','filter','1093980kJJHMt','trim','split','high-risk-write','16KTHSKy','4147440LieEwX','1282616ZRfBmh','594090jlzbVD','writeEventSubject','4315qftAcy','526918fszGUj','join','1212GsBzpV','2889369obMgZF','risk','lovrabet.write.completed','command'];a138_0x2eec=function(){return _0x3065c6;};return a138_0x2eec();}function a138_0x319c(_0x5e5a86,_0x39ba67){_0x5e5a86=_0x5e5a86-0x1c1;const _0x2eec8c=a138_0x2eec();let _0x319cf0=_0x2eec8c[_0x5e5a86];return _0x319cf0;}(function(_0x57bd2c,_0x4bd315){const _0xb9d990=a138_0x319c,_0x4735fd=_0x57bd2c();while(!![]){try{const _0x89109f=parseInt(_0xb9d990(0x1d2))/0x1+parseInt(_0xb9d990(0x1ce))/0x2+parseInt(_0xb9d990(0x1c8))/0x3+parseInt(_0xb9d990(0x1c1))/0x4*(parseInt(_0xb9d990(0x1d1))/0x5)+-parseInt(_0xb9d990(0x1cd))/0x6+-parseInt(_0xb9d990(0x1cf))/0x7+-parseInt(_0xb9d990(0x1cc))/0x8*(parseInt(_0xb9d990(0x1c2))/0x9);if(_0x89109f===_0x4bd315)break;else _0x4735fd['push'](_0x4735fd['shift']());}catch(_0x326d90){_0x4735fd['push'](_0x4735fd['shift']());}}}(a138_0x2eec,0x5bd77));export function canonicalLovrabetOperation(_0x2b2c4d){const _0x4fcbe0=a138_0x319c;return[_0x2b2c4d['service'],..._0x2b2c4d[_0x4fcbe0(0x1c5)][_0x4fcbe0(0x1c9)]()[_0x4fcbe0(0x1ca)](/\s+/)][_0x4fcbe0(0x1c7)](Boolean)[_0x4fcbe0(0x1d3)]('.');}export function createLovrabetWriteMetadata(_0x3389b1,_0x3385c1,_0xdbc24b,_0x475aef){const _0x16df2f=a138_0x319c;if(_0x475aef||_0xdbc24b['ok']!==!![]||_0x3389b1['risk']!==_0x16df2f(0x1c6)&&_0x3389b1[_0x16df2f(0x1c3)]!==_0x16df2f(0x1cb))return undefined;const _0x47229e=_0x3389b1[_0x16df2f(0x1d0)]?.(_0xdbc24b),_0x161170={'type':_0x16df2f(0x1c4),'operation':_0x3385c1,'risk':_0x3389b1[_0x16df2f(0x1c3)],..._0x47229e?{'subject':_0x47229e}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x161170}};}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x93a28b,_0x12192a){const _0x27a198=a139_0x2fc4,_0x520523=_0x93a28b();while(!![]){try{const _0x1df56a=-parseInt(_0x27a198(0x124))/0x1*(-parseInt(_0x27a198(0x11b))/0x2)+-parseInt(_0x27a198(0x119))/0x3*(parseInt(_0x27a198(0x123))/0x4)+parseInt(_0x27a198(0x114))/0x5*(-parseInt(_0x27a198(0x10f))/0x6)+-parseInt(_0x27a198(0x10d))/0x7*(parseInt(_0x27a198(0x129))/0x8)+parseInt(_0x27a198(0x10c))/0x9+parseInt(_0x27a198(0x120))/0xa+parseInt(_0x27a198(0x111))/0xb*(-parseInt(_0x27a198(0x113))/0xc);if(_0x1df56a===_0x12192a)break;else _0x520523['push'](_0x520523['shift']());}catch(_0x2378bb){_0x520523['push'](_0x520523['shift']());}}}(a139_0x32ec,0x3d168));function a139_0x2fc4(_0x20fff0,_0x135fa2){_0x20fff0=_0x20fff0-0x106;const _0x32ec7a=a139_0x32ec();let _0x2fc415=_0x32ec7a[_0x20fff0];return _0x2fc415;}function a139_0x32ec(){const _0x30d401=['8pbAIgN','write','execute','confirm','Lovrabet\x20invocation\x20aborted.','dryRun','high-risk-write','present','message','1013544fRfTVm','1013194DHqSHt','isNonInteractive','81036UaDten','definition','11sJoOlZ','presentation','2868936FBosiq','55tcxkpT','riskLevel','rawFlags','reason','yes','3201RcGKHn','args','9646lqJywB','data','dry-run','confirmation','risk','2961800sJCcfv','AbortError','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','244JLALBz','91EeuXQo','command','format','result','signal'];a139_0x32ec=function(){return _0x30d401;};return a139_0x32ec();}import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';import{canonicalLovrabetOperation,createLovrabetWriteMetadata}from'../runtime/event.js';import{buildLovrabetConfirmationRequest}from'../runtime/confirmation.js';import{resolveLovrabetInvocation}from'../runtime/resolve.js';import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0x5843fd,command:_0x42fab0,risk:_0x357676,dryRun:_0x45617f}){const _0x46e187=a139_0x2fc4;return JSON['stringify']({'ok':_0x5843fd['ok'],'command':_0x42fab0,'risk':_0x357676,..._0x45617f?{'dryRun':!![]}:{},..._0x5843fd[_0x46e187(0x11c)]!==undefined?{'data':_0x5843fd[_0x46e187(0x11c)]}:{},..._0x5843fd[_0x46e187(0x10b)]?{'message':_0x5843fd['message']}:{}});}};export async function invokeLovrabet(_0x5c9e96,_0x5bb616){const _0x262867=a139_0x2fc4;throwIfAborted(_0x5bb616['signal']);const _0x482873=await resolveLovrabetInvocation(_0x5c9e96),_0x5667f4=canonicalLovrabetOperation(_0x482873[_0x262867(0x110)]);return await confirmWriteBeforeQueue(_0x482873[_0x262867(0x110)],_0x482873[_0x262867(0x116)],_0x5667f4,_0x5bb616),runSerialized(async()=>{const _0x960cfc=_0x262867;throwIfAborted(_0x5bb616[_0x960cfc(0x128)]);const _0x3b0cc2={},_0x55cc3d=buildConfigFromFlags(_0x482873[_0x960cfc(0x116)]);await initGlobalEnvironment(_0x55cc3d);const _0x1bb02b=createPipelineEnv(_0x55cc3d,{..._0x482873[_0x960cfc(0x116)],'yes':_0x482873[_0x960cfc(0x110)][_0x960cfc(0x11f)]===_0x960cfc(0x109)?!![]:_0x482873[_0x960cfc(0x116)][_0x960cfc(0x118)],'nonInteractive':!![]});_0x1bb02b[_0x960cfc(0x11a)]=_0x482873[_0x960cfc(0x11a)],_0x1bb02b[_0x960cfc(0x10e)]=!![],_0x1bb02b[_0x960cfc(0x115)]=_0x960cfc(0x109);const _0x76da1e=withAbortSignal(_0x482873[_0x960cfc(0x110)],_0x5bb616[_0x960cfc(0x128)]),_0x90aad8=createLovrabetRunnerAdapter({'formatOutput'(_0x1f3d8d,_0xcef850){const _0x472eb0=_0x960cfc;_0x3b0cc2[_0x472eb0(0x127)]=_0x1f3d8d,_0x3b0cc2[_0x472eb0(0x125)]=_0xcef850[_0x472eb0(0x125)],_0x3b0cc2['risk']=_0xcef850['risk'],_0x3b0cc2[_0x472eb0(0x126)]=_0xcef850[_0x472eb0(0x126)],_0x3b0cc2[_0x472eb0(0x108)]=_0xcef850[_0x472eb0(0x108)]===!![];},async 'confirmHighRisk'(){const _0xdc89c7=_0x960cfc;throw new Error(_0xdc89c7(0x122));}});try{await runCommand(_0x76da1e,_0x1bb02b,_0x90aad8);if(!_0x3b0cc2[_0x960cfc(0x127)]||!_0x3b0cc2[_0x960cfc(0x125)]||!_0x3b0cc2['risk']||!_0x3b0cc2[_0x960cfc(0x126)])throw new Error('Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.');const _0x1880dc=_0x5bb616[_0x960cfc(0x112)]??defaultPresentation,_0x1c0dbc=_0x3b0cc2[_0x960cfc(0x108)]===!![],_0x3ae5b1={'result':_0x3b0cc2['result'],'command':_0x3b0cc2[_0x960cfc(0x125)],'operation':_0x5667f4,'risk':_0x3b0cc2[_0x960cfc(0x11f)],'format':_0x3b0cc2[_0x960cfc(0x126)],'dryRun':_0x1c0dbc},_0x12a8b9=createLovrabetWriteMetadata(_0x482873[_0x960cfc(0x110)],_0x5667f4,_0x3b0cc2[_0x960cfc(0x127)],_0x1c0dbc);let _0x4c7840;try{_0x4c7840=await _0x1880dc['present'](_0x3ae5b1);}catch(_0x52f993){if(!_0x12a8b9||_0x1880dc===defaultPresentation)throw _0x52f993;_0x4c7840=await defaultPresentation[_0x960cfc(0x10a)](_0x3ae5b1);}return{'operation':_0x5667f4,'risk':_0x3b0cc2[_0x960cfc(0x11f)],'mode':_0x1c0dbc?_0x960cfc(0x11d):_0x960cfc(0x12b),'result':_0x3b0cc2[_0x960cfc(0x127)],'output':_0x4c7840,..._0x12a8b9?{'metadata':_0x12a8b9}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x344e82,_0x296586,_0x393da1,_0x1a4743){const _0x2252d2=a139_0x2fc4;if(_0x296586[_0x2252d2(0x108)]===!![]||_0x344e82[_0x2252d2(0x11f)]!==_0x2252d2(0x12a)&&_0x344e82['risk']!=='high-risk-write')return;await _0x1a4743[_0x2252d2(0x11e)][_0x2252d2(0x106)](buildLovrabetConfirmationRequest(_0x344e82,_0x393da1,_0x1a4743[_0x2252d2(0x128)]));}function withAbortSignal(_0x14846c,_0x3cd03f){return{..._0x14846c,async 'execute'(_0x9e2e7e){return throwIfAborted(_0x3cd03f),_0x14846c['execute']({..._0x9e2e7e,'signal':_0x3cd03f});}};}function throwIfAborted(_0x1dfd05){const _0x41919f=a139_0x2fc4;if(_0x1dfd05?.['aborted'])throw _0x1dfd05[_0x41919f(0x117)]instanceof Error?_0x1dfd05[_0x41919f(0x117)]:new DOMException(_0x41919f(0x107),_0x41919f(0x121));}
|