@lovrabet/lovrabet-cli 2.3.6-beta.1 → 2.3.6-beta.3
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 +33 -2
- 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.d.ts +3 -3
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.d.ts +7 -6
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/kb-management-client.d.ts +17 -0
- package/lib/core/kb-management-client.js +1 -0
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/access-error.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-import/auto-id-runner.js +1 -1
- package/lib/services/dataset-import/excel-reader.js +1 -1
- package/lib/services/dataset-import/image-bytes.js +1 -1
- package/lib/services/dataset-import/image-ooxml.js +1 -1
- package/lib/services/dataset-import/image-runner.js +1 -1
- package/lib/services/dataset-import/metadata.js +1 -1
- package/lib/services/dataset-import/preview.js +1 -1
- package/lib/services/dataset-import/runner.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/positive-safe-integer.js +1 -1
- package/lib/utils/redaction.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/lovrabet/SKILL.md +5 -3
- package/skills/lovrabet/guides/app-resolution.md +2 -0
- package/skills/lovrabet/guides/dataset-and-data-workflow.md +10 -1
- package/skills/lovrabet/references/dataset-discovery-workflow.md +14 -1
- package/skills/lovrabet/references/instant-api-workflow.md +2 -0
- package/skills/lovrabet/references/lovrabet-app.md +2 -0
- package/skills/lovrabet/references/lovrabet-kb-workflow.md +7 -3
- package/skills/lovrabet.manifest.json +3 -3
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a116_0x4744(_0x27d252,_0x24b158){_0x27d252=_0x27d252-0x86;var _0x5d5eca=a116_0x5d5e();var _0x474498=_0x5d5eca[_0x27d252];return _0x474498;}(function(_0x21560a,_0x54a626){var _0x4afccf=a116_0x4744,_0xd97b11=_0x21560a();while(!![]){try{var _0x2a99f1=-parseInt(_0x4afccf(0x8d))/0x1*(parseInt(_0x4afccf(0x89))/0x2)+parseInt(_0x4afccf(0x8e))/0x3*(-parseInt(_0x4afccf(0x90))/0x4)+parseInt(_0x4afccf(0x8b))/0x5+-parseInt(_0x4afccf(0x8a))/0x6*(-parseInt(_0x4afccf(0x87))/0x7)+-parseInt(_0x4afccf(0x88))/0x8+parseInt(_0x4afccf(0x8f))/0x9+-parseInt(_0x4afccf(0x8c))/0xa*(-parseInt(_0x4afccf(0x86))/0xb);if(_0x2a99f1===_0x54a626)break;else _0xd97b11['push'](_0xd97b11['shift']());}catch(_0x2011ea){_0xd97b11['push'](_0xd97b11['shift']());}}}(a116_0x5d5e,0x22405));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a116_0x5d5e(){var _0x411b69=['1092249lIAUip','1121404PmKsHT','7359dMssSi','33383Fncoti','2013080PfhTfp','4JljHWD','228agigQB','960760RePfcX','5820RAhBqv','105907ohapHY','3bVeQYV'];a116_0x5d5e=function(){return _0x411b69;};return a116_0x5d5e();}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2f8f8e,_0x56e818){const _0x51c7c1=a117_0x3da6,_0x25354d=_0x2f8f8e();while(!![]){try{const _0x25b01b=parseInt(_0x51c7c1(0x10b))/0x1*(-parseInt(_0x51c7c1(0x110))/0x2)+-parseInt(_0x51c7c1(0x10f))/0x3+-parseInt(_0x51c7c1(0x105))/0x4*(-parseInt(_0x51c7c1(0x111))/0x5)+parseInt(_0x51c7c1(0x10c))/0x6*(-parseInt(_0x51c7c1(0x10d))/0x7)+parseInt(_0x51c7c1(0x106))/0x8*(-parseInt(_0x51c7c1(0x109))/0x9)+parseInt(_0x51c7c1(0x107))/0xa+parseInt(_0x51c7c1(0x108))/0xb;if(_0x25b01b===_0x56e818)break;else _0x25354d['push'](_0x25354d['shift']());}catch(_0x939556){_0x25354d['push'](_0x25354d['shift']());}}}(a117_0x23e5,0xb4687));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a117_0x23e5(){const _0x25905f=['2532TopEmx','12187XjdFcw','message','3249399pxUmvQ','32AZrYUz','5bRnISe','update','_notice','1278700eXhJVS','176axPxtR','104480OhPiuN','36901139DZdows','356355SePVRI','pretty','16056rcJGkM'];a117_0x23e5=function(){return _0x25905f;};return a117_0x23e5();}export function formatOutput(_0x4fe22b,_0x63883c){const _0x49f252=a117_0x3da6,_0x2f689a=_0x4fe22b[_0x49f252(0x104)],{_notice:_0x40fca9,..._0x54e93e}=_0x4fe22b;void _0x40fca9,baseFormatOutput(_0x54e93e,_0x63883c),_0x63883c['format']===_0x49f252(0x10a)&&printPrettyNotice(_0x2f689a);}function a117_0x3da6(_0x21e3f1,_0x1237fe){_0x21e3f1=_0x21e3f1-0x104;const _0x23e5fc=a117_0x23e5();let _0x3da681=_0x23e5fc[_0x21e3f1];return _0x3da681;}function printPrettyNotice(_0x1e865f){const _0x39f7c7=a117_0x3da6;if(!_0x1e865f?.[_0x39f7c7(0x112)])return;console['error'](_0x1e865f[_0x39f7c7(0x112)][_0x39f7c7(0x10e)]+'\x20('+_0x1e865f[_0x39f7c7(0x112)]['url']+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4127aa,_0x2515c4){const _0x4cd2a7=a118_0x498c,_0x215843=_0x4127aa();while(!![]){try{const _0x431829=-parseInt(_0x4cd2a7(0x198))/0x1+-parseInt(_0x4cd2a7(0x1a9))/0x2+-parseInt(_0x4cd2a7(0x1ab))/0x3*(parseInt(_0x4cd2a7(0x1a3))/0x4)+parseInt(_0x4cd2a7(0x190))/0x5+-parseInt(_0x4cd2a7(0x196))/0x6*(parseInt(_0x4cd2a7(0x1ac))/0x7)+-parseInt(_0x4cd2a7(0x19e))/0x8*(parseInt(_0x4cd2a7(0x18c))/0x9)+parseInt(_0x4cd2a7(0x1aa))/0xa;if(_0x431829===_0x2515c4)break;else _0x215843['push'](_0x215843['shift']());}catch(_0x314ff6){_0x215843['push'](_0x215843['shift']());}}}(a118_0xacce,0xebadd));export function toKebab(_0xea0805){const _0x3b9242=a118_0x498c;return _0xea0805['replace'](/_/g,'-')[_0x3b9242(0x19f)](/-([A-Z]+)/g,(_0x5468c5,_0xb9f924)=>'-'+_0xb9f924[_0x3b9242(0x1a2)]())[_0x3b9242(0x19f)](/([a-z0-9])([A-Z])/g,(_0x2394b6,_0x26bd7d,_0x40e2c6)=>_0x26bd7d+'-'+_0x40e2c6)[_0x3b9242(0x1a2)]();}function buildKnownFlags(_0x59af40){const _0xf81761=a118_0x498c,_0xac6afa=new Set();for(const _0x26fa18 of _0x59af40){_0xac6afa[_0xf81761(0x1ae)](_0x26fa18[_0xf81761(0x1a6)]),_0xac6afa[_0xf81761(0x1ae)](toCamelCase(_0x26fa18[_0xf81761(0x1a6)]));}for(const _0x58b2b7 of['dry-run',_0xf81761(0x197),_0xf81761(0x18f),_0xf81761(0x191)]){_0xac6afa['add'](_0x58b2b7);}for(const _0x127378 of['help','env','appcode','app',_0xf81761(0x1a1),_0xf81761(0x1a0),'ci',_0xf81761(0x194),_0xf81761(0x19d)]){_0xac6afa['add'](_0x127378);}return _0xac6afa;}function buildFlagTypeMap(_0x3408bd){const _0x3a73c1=a118_0x498c,_0x3ca843=new Map();for(const _0xc92b35 of _0x3408bd){_0x3ca843[_0x3a73c1(0x18d)](_0xc92b35[_0x3a73c1(0x1a6)],_0xc92b35['type']),_0x3ca843[_0x3a73c1(0x18d)](toCamelCase(_0xc92b35[_0x3a73c1(0x1a6)]),_0xc92b35['type']);}return _0x3ca843;}function toCamelCase(_0x27979a){const _0x365b22=a118_0x498c;return _0x27979a[_0x365b22(0x19f)](/-([a-z])/g,(_0x586812,_0x2e0517)=>_0x2e0517['toUpperCase']());}function aliasHandler(_0x17e034,_0x49cf9c){const _0x13e64a=a118_0x498c,_0x3a804b=[];for(const _0x25dddb of Object[_0x13e64a(0x1a7)](_0x17e034)){if(_0x49cf9c[_0x13e64a(0x1ad)](_0x25dddb))continue;const _0x1dc02f=toKebab(_0x25dddb);_0x1dc02f!==_0x25dddb&&_0x49cf9c[_0x13e64a(0x1ad)](_0x1dc02f)&&_0x3a804b[_0x13e64a(0x19c)]({'original':_0x25dddb,'corrected':_0x1dc02f,'handler':'alias'});}return _0x3a804b;}function a118_0x498c(_0xacc790,_0x468ef3){_0xacc790=_0xacc790-0x18b;const _0xacceb6=a118_0xacce();let _0x498c5b=_0xacceb6[_0xacc790];return _0x498c5b;}function stickyHandler(_0x53151a,_0x5e449d,_0x5f4718){const _0x5571f5=a118_0x498c,_0xb3af3e=[];for(const [_0x2d51fd,_0x49df9d]of Object[_0x5571f5(0x1a5)](_0x53151a)){if(_0x49df9d!==!![])continue;for(let _0xfea800=_0x2d51fd[_0x5571f5(0x19a)]-0x1;_0xfea800>0x0;_0xfea800--){const _0x3a1f3c=_0x2d51fd[_0x5571f5(0x18e)](0x0,_0xfea800),_0x4b1da2=_0x2d51fd[_0x5571f5(0x18e)](_0xfea800),_0x4e518a=toKebab(_0x3a1f3c),_0x32c463=toCamelCase(_0x3a1f3c),_0x189a3f=_0x5e449d[_0x5571f5(0x1ad)](_0x3a1f3c)?_0x3a1f3c:_0x5e449d[_0x5571f5(0x1ad)](_0x4e518a)?_0x4e518a:_0x5e449d[_0x5571f5(0x1ad)](_0x32c463)?_0x32c463:null;if(!_0x189a3f)continue;const _0x309e39=_0x5f4718[_0x5571f5(0x18b)](_0x189a3f)??_0x5571f5(0x1a8);let _0x40a21e;if(_0x309e39===_0x5571f5(0x195)){const _0x1ac35b=Number(_0x4b1da2);if(isNaN(_0x1ac35b)||_0x4b1da2==='')continue;_0x40a21e=_0x1ac35b;}else{if(_0x309e39===_0x5571f5(0x199))continue;else{if(_0x4b1da2==='')continue;_0x40a21e=_0x4b1da2;}}_0xb3af3e['push']({'original':_0x2d51fd,'corrected':_0x189a3f+'='+_0x40a21e,'handler':_0x5571f5(0x193)});break;}}return _0xb3af3e;}export function correctFlags(_0x1318a2,_0x46e5d4){const _0x4cd60b=a118_0x498c,_0x337aa1=buildKnownFlags(_0x46e5d4),_0xb7e167=buildFlagTypeMap(_0x46e5d4),_0x59244f=aliasHandler(_0x1318a2,_0x337aa1),_0xba3d92=stickyHandler(_0x1318a2,_0x337aa1,_0xb7e167),_0x36c790=[..._0x59244f,..._0xba3d92];if(_0x36c790['length']===0x0)return{'flags':_0x1318a2,'corrections':[]};const _0x15da6c={..._0x1318a2},_0x3b1690=new Set();for(const _0x19eb22 of _0x59244f){_0x15da6c[_0x19eb22[_0x4cd60b(0x19b)]]=_0x1318a2[_0x19eb22[_0x4cd60b(0x192)]],_0x3b1690[_0x4cd60b(0x1ae)](_0x19eb22['original']);}for(const _0x38b14b of _0xba3d92){const _0x5c2d9d=_0x38b14b['corrected'][_0x4cd60b(0x1a4)]('='),_0x5d2c63=_0x38b14b['corrected'][_0x4cd60b(0x18e)](0x0,_0x5c2d9d),_0x230044=_0x38b14b[_0x4cd60b(0x19b)][_0x4cd60b(0x18e)](_0x5c2d9d+0x1),_0x408e9a=_0xb7e167['get'](_0x5d2c63)??'string';_0x408e9a===_0x4cd60b(0x195)?_0x15da6c[_0x5d2c63]=Number(_0x230044):_0x15da6c[_0x5d2c63]=_0x230044,_0x3b1690[_0x4cd60b(0x1ae)](_0x38b14b[_0x4cd60b(0x192)]);}for(const _0x5e047 of _0x3b1690){delete _0x15da6c[_0x5e047];}return{'flags':_0x15da6c,'corrections':_0x36c790};}function a118_0xacce(){const _0x49808f=['88724plopPV','24649280nUoBPi','139407VWyVzV','21931qsnjeq','has','add','get','544653xryryo','set','slice','yes','6383165ixLrKU','format','original','sticky','global','number','3492roQFQt','dryRun','169273ijZcGl','boolean','length','corrected','push','version','24MfcZms','replace','non-interactive','nonInteractive','toLowerCase','48vgoNZX','indexOf','entries','name','keys','string'];a118_0xacce=function(){return _0x49808f;};return a118_0xacce();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a119_0x3d5b84=a119_0x531a;(function(_0x13f0b2,_0x1ecd36){const _0x13d57b=a119_0x531a,_0x38da2e=_0x13f0b2();while(!![]){try{const _0x40d1a5=-parseInt(_0x13d57b(0x7f))/0x1*(-parseInt(_0x13d57b(0x7e))/0x2)+-parseInt(_0x13d57b(0x6d))/0x3*(parseInt(_0x13d57b(0x7a))/0x4)+parseInt(_0x13d57b(0x88))/0x5+parseInt(_0x13d57b(0x8c))/0x6*(-parseInt(_0x13d57b(0x86))/0x7)+parseInt(_0x13d57b(0x74))/0x8+parseInt(_0x13d57b(0x87))/0x9+parseInt(_0x13d57b(0x83))/0xa;if(_0x40d1a5===_0x1ecd36)break;else _0x38da2e['push'](_0x38da2e['shift']());}catch(_0x1d6a27){_0x38da2e['push'](_0x38da2e['shift']());}}}(a119_0x6777,0x953e2));function a119_0x6777(){const _0x414ac5=['test','\x20seconds\x20before\x20retrying.','entries','isArray','\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.','trim','3418600TraJen','object','Retry-After','Retry\x20after\x20a\x20short\x20delay.','status','MAX_QPS_LIMIT','36jbBSQb','retryAfterSeconds','retryAfter','number','2fcVguR','951278qKqUlI','retry-after','Retry\x20after\x20','has','7572940KSTLzz','rateLimited','message','3718771NUmtkH','378675qPslEy','1627665JlvPJs','errorCode','Wait\x20','toUpperCase','12isWkmt','get','string','EXCEED_MAX_QPS_LIMIT','call','function','276567BdfVHo'];a119_0x6777=function(){return _0x414ac5;};return a119_0x6777();}import{CliErrors}from'../errors.js';const RATE_LIMIT_ERROR_CODES=new Set([a119_0x3d5b84(0x6a),a119_0x3d5b84(0x79),'IP_RATE_LIMIT_EXCEEDED']);function nonEmptyString(_0x499ac1){const _0x56d44d=a119_0x3d5b84;if(typeof _0x499ac1!==_0x56d44d(0x69))return undefined;const _0x4d1612=_0x499ac1[_0x56d44d(0x73)]();return _0x4d1612||undefined;}function buildRetryHint(_0x218b8b){const _0x580c7f=a119_0x3d5b84,_0xd86b42=nonEmptyString(_0x218b8b),_0xe32cfa=_0xd86b42?/^\d+$/[_0x580c7f(0x6e)](_0xd86b42)?_0x580c7f(0x8a)+_0xd86b42+_0x580c7f(0x6f):_0x580c7f(0x81)+_0xd86b42+'.':_0x580c7f(0x77);return _0xe32cfa+_0x580c7f(0x72);}export function createRateLimitError(_0xea312c){const _0x54c1a2=a119_0x3d5b84,_0x47070c=nonEmptyString(_0xea312c[_0x54c1a2(0x89)])?.[_0x54c1a2(0x8b)](),_0x260bc0=Number(_0xea312c[_0x54c1a2(0x78)])===0x1ad||_0x47070c!==undefined&&RATE_LIMIT_ERROR_CODES[_0x54c1a2(0x82)](_0x47070c);if(!_0x260bc0)return undefined;return CliErrors[_0x54c1a2(0x84)](nonEmptyString(_0xea312c[_0x54c1a2(0x85)])??'Request\x20rate\x20limit\x20exceeded.',buildRetryHint(_0xea312c[_0x54c1a2(0x7c)]));}function a119_0x531a(_0x3e2889,_0x5e726b){_0x3e2889=_0x3e2889-0x69;const _0x677720=a119_0x6777();let _0x531ab9=_0x677720[_0x3e2889];return _0x531ab9;}export function readRetryAfter(_0x171868){const _0x2c46a5=a119_0x3d5b84;if(!_0x171868||typeof _0x171868!==_0x2c46a5(0x75))return undefined;const _0x193c5c=_0x171868[_0x2c46a5(0x8d)];if(typeof _0x193c5c===_0x2c46a5(0x6c)){const _0x3139ef=_0x193c5c[_0x2c46a5(0x6b)](_0x171868,_0x2c46a5(0x76))??_0x193c5c['call'](_0x171868,'retry-after');return nonEmptyString(_0x3139ef);}for(const [_0x1bcf0f,_0x40df82]of Object[_0x2c46a5(0x70)](_0x171868)){if(_0x1bcf0f['toLowerCase']()===_0x2c46a5(0x80))return nonEmptyString(_0x40df82)??(typeof _0x40df82===_0x2c46a5(0x7d)?String(_0x40df82):undefined);}return undefined;}export function readRetryAfterSeconds(_0x4a7ff1){const _0x351e0c=a119_0x3d5b84;if(!_0x4a7ff1||typeof _0x4a7ff1!=='object'||Array[_0x351e0c(0x71)](_0x4a7ff1))return undefined;const _0x254af2=_0x4a7ff1[_0x351e0c(0x7b)];if(typeof _0x254af2===_0x351e0c(0x7d))return Number['isInteger'](_0x254af2)&&_0x254af2>=0x0?String(_0x254af2):undefined;const _0x18343a=nonEmptyString(_0x254af2);return _0x18343a&&/^\d+$/[_0x351e0c(0x6e)](_0x18343a)?_0x18343a:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a120_0x35e538=a120_0x281d;(function(_0x152d5b,_0x2a7f0f){const _0x4741e6=a120_0x281d,_0xdc26be=_0x152d5b();while(!![]){try{const _0x23a1e7=parseInt(_0x4741e6(0x115))/0x1+parseInt(_0x4741e6(0x100))/0x2*(parseInt(_0x4741e6(0x109))/0x3)+parseInt(_0x4741e6(0x11a))/0x4*(-parseInt(_0x4741e6(0x10e))/0x5)+parseInt(_0x4741e6(0x114))/0x6+-parseInt(_0x4741e6(0x10a))/0x7+-parseInt(_0x4741e6(0x104))/0x8+-parseInt(_0x4741e6(0x10d))/0x9;if(_0x23a1e7===_0x2a7f0f)break;else _0xdc26be['push'](_0xdc26be['shift']());}catch(_0x31e98f){_0xdc26be['push'](_0xdc26be['shift']());}}}(a120_0x172b,0x58f87));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([a120_0x35e538(0x116),a120_0x35e538(0x118),a120_0x35e538(0x106),a120_0x35e538(0x111),a120_0x35e538(0x101),a120_0x35e538(0x105),'page',a120_0x35e538(0x103),a120_0x35e538(0x108)]);function a120_0x172b(){const _0x2ac643=['currentpage','order-by','\x20data\x20filter`.','pagesize','409134gcrlYg','1972950hwTggK','flags','Example:\x20','1092627aiDbtw','219845hZMYji','service','validation','orderby','add','command','95214WfVGSl','574310UnHAXO','where','name','select','asc','4lYUgqN','Put\x20where,\x20select,\x20orderBy,\x20currentPage,\x20and\x20pageSize\x20inside\x20one\x20--params\x20JSON\x20object.\x20','entries','no-','Unknown\x20flag\x20--','filter','\x20is\x20not\x20a\x20CLI\x20flag\x20for\x20`','meowKey','active','6sjzhVb','current-page','\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20','page-size','1501344GQuoNX'];a120_0x172b=function(){return _0x2ac643;};return a120_0x172b();}function a120_0x281d(_0x1e1161,_0x4503e5){_0x1e1161=_0x1e1161-0xfe;const _0x172bb0=a120_0x172b();let _0x281dbe=_0x172bb0[_0x1e1161];return _0x281dbe;}export function assertKnownCommandFlags(_0x3a64f5,_0x12e29d){const _0x4e6319=a120_0x35e538,_0xa247fd=new Set(['version']);for(const _0x424c8c of GLOBAL_FLAGS){_0xa247fd[_0x4e6319(0x112)](_0x424c8c[_0x4e6319(0x117)]),_0xa247fd[_0x4e6319(0x112)](toKebab(_0x424c8c[_0x4e6319(0xfe)]));}for(const _0xb808ca of _0x3a64f5[_0x4e6319(0x10b)]??[]){_0xa247fd[_0x4e6319(0x112)](_0xb808ca[_0x4e6319(0x117)]);}for(const [_0x5856f5,_0x56d2a1]of Object[_0x4e6319(0x11c)](_0x12e29d)){const _0xa91328=toKebab(_0x5856f5);if(_0xa247fd['has'](_0xa91328))continue;if(_0x56d2a1===![]&&_0xa247fd['has'](_0x4e6319(0x11d)+_0xa91328))continue;if(_0x3a64f5[_0x4e6319(0x10f)]==='data'&&_0x3a64f5[_0x4e6319(0x113)]===_0x4e6319(0x11f)&&FILTER_BODY_FIELDS['has'](_0xa91328))throw CliErrors['validation']('--'+_0xa91328+_0x4e6319(0x120)+CLI_BIN_NAME+_0x4e6319(0x107),_0x4e6319(0x11b)+(_0x4e6319(0x10c)+CLI_BIN_NAME+_0x4e6319(0x102))+('\x27'+JSON['stringify']({'where':{'status':{'$eq':_0x4e6319(0xff)}},'orderBy':[{'id':_0x4e6319(0x119)}],'currentPage':0x1,'pageSize':0x14})+'\x27'));throw CliErrors[_0x4e6319(0x110)](_0x4e6319(0x11e)+_0xa91328+'\x20for\x20`'+CLI_BIN_NAME+'\x20'+_0x3a64f5[_0x4e6319(0x10f)]+'\x20'+_0x3a64f5[_0x4e6319(0x113)]+'`.','Run\x20`'+CLI_BIN_NAME+'\x20'+_0x3a64f5['service']+'\x20'+_0x3a64f5[_0x4e6319(0x113)]+'\x20--help`\x20to\x20see\x20accepted\x20flags.');}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a121_0x42a6(_0x4341ed,_0x29a697){_0x4341ed=_0x4341ed-0x8c;var _0x323df4=a121_0x323d();var _0x42a672=_0x323df4[_0x4341ed];return _0x42a672;}function a121_0x323d(){var _0x2a1928=['778029klDvjO','2659340zoIpjH','261LfNmGp','45eGgqIp','888325byIZIZ','6743448MDfpSa','1211466rWCvrG','247904aIublL','365948bwHMpY'];a121_0x323d=function(){return _0x2a1928;};return a121_0x323d();}(function(_0x23f343,_0x2dbeff){var _0x3ce2b4=a121_0x42a6,_0x52a431=_0x23f343();while(!![]){try{var _0x44f60d=-parseInt(_0x3ce2b4(0x94))/0x1+parseInt(_0x3ce2b4(0x8d))/0x2+parseInt(_0x3ce2b4(0x93))/0x3*(parseInt(_0x3ce2b4(0x8f))/0x4)+-parseInt(_0x3ce2b4(0x91))/0x5+parseInt(_0x3ce2b4(0x8c))/0x6+parseInt(_0x3ce2b4(0x90))/0x7+-parseInt(_0x3ce2b4(0x8e))/0x8*(parseInt(_0x3ce2b4(0x92))/0x9);if(_0x44f60d===_0x2dbeff)break;else _0x52a431['push'](_0x52a431['shift']());}catch(_0x213907){_0x52a431['push'](_0x52a431['shift']());}}}(a121_0x323d,0xda528));export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x47ea4e,_0x2bf754){const _0x44bcdf=a122_0x3318,_0x37006f=_0x47ea4e();while(!![]){try{const _0x2c9164=parseInt(_0x44bcdf(0xd5))/0x1+parseInt(_0x44bcdf(0xee))/0x2+parseInt(_0x44bcdf(0xd9))/0x3*(parseInt(_0x44bcdf(0xe0))/0x4)+-parseInt(_0x44bcdf(0xec))/0x5*(-parseInt(_0x44bcdf(0xef))/0x6)+parseInt(_0x44bcdf(0xe4))/0x7*(parseInt(_0x44bcdf(0xf2))/0x8)+-parseInt(_0x44bcdf(0xe5))/0x9+-parseInt(_0x44bcdf(0xe2))/0xa;if(_0x2c9164===_0x2bf754)break;else _0x37006f['push'](_0x37006f['shift']());}catch(_0x162274){_0x37006f['push'](_0x37006f['shift']());}}}(a122_0x377e,0xb4523));import{CLI_BIN_NAME}from'../constant/cli.js';function a122_0x3318(_0x5a32ec,_0x3c7fc4){_0x5a32ec=_0x5a32ec-0xd2;const _0x377e17=a122_0x377e();let _0x33181c=_0x377e17[_0x5a32ec];return _0x33181c;}import{isSensitiveFlagName}from'../utils/redaction.js';export function buildConfirmationLines(_0x13ca15,_0x2db6c7,_0x520a24){const _0x33f281=a122_0x3318,_0x1a627e=buildConfirmationContext(_0x13ca15,_0x2db6c7,_0x520a24),_0x293d26=[_0x33f281(0xe8)+_0x1a627e[_0x33f281(0xde)]];return _0x1a627e['description']&&_0x293d26['push'](_0x33f281(0xd3)+_0x1a627e['description']),_0x1a627e[_0x33f281(0xdf)]&&_0x293d26[_0x33f281(0xf7)](_0x33f281(0xe3)+_0x1a627e[_0x33f281(0xdf)]),_0x293d26[_0x33f281(0xf7)](_0x33f281(0xf8)),_0x293d26;}export function reconstructCommandArgv(_0x4d5d79,_0x47ae62){const _0x379584=a122_0x3318,_0x57dbe8=[CLI_BIN_NAME,_0x4d5d79['service'],_0x4d5d79['command']];for(const [_0x1f1247,_0x45ae80]of Object[_0x379584(0xe1)](_0x47ae62)){if(_0x45ae80===!![])_0x57dbe8[_0x379584(0xf7)]('--'+_0x1f1247);else{if(isSensitiveFlagName(_0x1f1247)&&_0x45ae80!==![]&&_0x45ae80!==undefined&&_0x45ae80!=='')_0x57dbe8[_0x379584(0xf7)]('--'+_0x1f1247+_0x379584(0xf1));else _0x45ae80!==![]&&_0x45ae80!==undefined&&_0x45ae80!==''&&_0x57dbe8[_0x379584(0xf7)]('--'+_0x1f1247+'\x20'+JSON[_0x379584(0xdb)](_0x45ae80));}}return _0x57dbe8[_0x379584(0xf7)](_0x379584(0xda)),_0x57dbe8['join']('\x20');}function a122_0x377e(){const _0x14cea8=['scheduled-at=','2427070DgxrLG','12ZNtGdl','title=','\x20[REDACTED]','120656faFiFj','name=','code','channel','channel=','push','\x20\x20\x20Continue?\x20[y/N]\x20','scheduled-at','\x20\x20\x20','schedule-id','1409085WlgddO','kind','title','code=','9141IYANGu','--yes','stringify','schedule-id=','name','commandLabel','affectedRecords','668rpdkUk','entries','34272540GxoREu','\x20\x20\x20Affected:\x20','182dECGKM','4776894IqvCmt','cron=','params','⚠\x20\x20High-risk\x20operation:\x20','params=','join','cron','2932535MnDNlX'];a122_0x377e=function(){return _0x14cea8;};return a122_0x377e();}function buildConfirmationContext(_0x199ad8,_0x55cff9,_0x1b59da){const _0x355358=extractAffectedRecords(_0x1b59da);return{'commandLabel':_0x55cff9,'description':_0x199ad8['description'],'affectedRecords':_0x355358};}function extractAffectedRecords(_0x367fca){const _0x1cf45d=a122_0x3318,_0x14edce=[];if(_0x367fca['code'])_0x14edce['push'](_0x1cf45d(0xd8)+_0x367fca[_0x1cf45d(0xf4)]);if(_0x367fca['id'])_0x14edce['push']('id='+_0x367fca['id']);if(_0x367fca[_0x1cf45d(0xd4)])_0x14edce[_0x1cf45d(0xf7)](_0x1cf45d(0xdc)+_0x367fca['schedule-id']);if(_0x367fca[_0x1cf45d(0xdd)])_0x14edce[_0x1cf45d(0xf7)](_0x1cf45d(0xf3)+_0x367fca['name']);if(_0x367fca['title'])_0x14edce[_0x1cf45d(0xf7)](_0x1cf45d(0xf0)+_0x367fca[_0x1cf45d(0xd7)]);if(_0x367fca[_0x1cf45d(0xd6)])_0x14edce[_0x1cf45d(0xf7)]('kind='+_0x367fca[_0x1cf45d(0xd6)]);if(_0x367fca[_0x1cf45d(0xeb)])_0x14edce[_0x1cf45d(0xf7)](_0x1cf45d(0xe6)+_0x367fca[_0x1cf45d(0xeb)]);if(_0x367fca[_0x1cf45d(0xd2)])_0x14edce[_0x1cf45d(0xf7)](_0x1cf45d(0xed)+_0x367fca['scheduled-at']);if(_0x367fca[_0x1cf45d(0xf5)])_0x14edce['push'](_0x1cf45d(0xf6)+_0x367fca['channel']);if(_0x367fca[_0x1cf45d(0xe7)])_0x14edce[_0x1cf45d(0xf7)](_0x1cf45d(0xe9)+_0x367fca[_0x1cf45d(0xe7)]);return _0x14edce['length']>0x0?_0x14edce[_0x1cf45d(0xea)](',\x20'):undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x837691,_0x370d6d){const _0x785621=a123_0x13d5,_0x1fb195=_0x837691();while(!![]){try{const _0x5df309=-parseInt(_0x785621(0xd6))/0x1+parseInt(_0x785621(0xd4))/0x2*(parseInt(_0x785621(0xc5))/0x3)+-parseInt(_0x785621(0xcc))/0x4*(parseInt(_0x785621(0xc6))/0x5)+-parseInt(_0x785621(0xd1))/0x6+-parseInt(_0x785621(0xd0))/0x7+parseInt(_0x785621(0xd3))/0x8+-parseInt(_0x785621(0xc7))/0x9*(-parseInt(_0x785621(0xd5))/0xa);if(_0x5df309===_0x370d6d)break;else _0x1fb195['push'](_0x1fb195['shift']());}catch(_0x24f31){_0x1fb195['push'](_0x1fb195['shift']());}}}(a123_0x2e95,0xd4bdb));function a123_0x13d5(_0x57b34e,_0x224df2){_0x57b34e=_0x57b34e-0xc4;const _0x2e9542=a123_0x2e95();let _0x13d592=_0x2e9542[_0x57b34e];return _0x13d592;}import{LovrabetError}from'@lovrabet/sdk';function a123_0x2e95(){const _0x21b768=['The\x20response\x20does\x20not\x20identify\x20whether\x20authentication\x20or\x20permission\x20checks\x20failed.','8279530hDWepV','831000kinfDU','validation','1089496rjMBdz','4bfYqGN','10JJthfe','1357573aJxxcy','status','string','response','86793ppLilJ','4729805qiWFZa','38719458FvRQqa','apiError','code','trim','stringify','4xjqmTF','description','message'];a123_0x2e95=function(){return _0x21b768;};return a123_0x2e95();}import{CliErrors}from'../errors.js';import{createAccessError}from'../framework/access-error.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';export function mapUserFacingExecuteError(_0x46b8a9){const _0x1186d2=a123_0x13d5;if(_0x46b8a9 instanceof LovrabetError){const _0x49dfe5=userFacingLovrabetMessage(_0x46b8a9),_0x394ee7=_0x46b8a9,_0xf72674=createRateLimitError({'status':_0x394ee7['status'],'errorCode':_0x394ee7[_0x1186d2(0xc9)],'message':_0x49dfe5,'retryAfter':readRetryAfter(_0x394ee7['response']?.['headers'])??readRetryAfterSeconds(_0x394ee7['response'])});return createAccessError(_0x394ee7[_0x1186d2(0xc4)],_0x394ee7[_0x1186d2(0xc9)])??_0xf72674??(Number(_0x394ee7[_0x1186d2(0xd7)])===0x191?CliErrors[_0x1186d2(0xc8)]('Request\x20rejected\x20(HTTP\x20401).',_0x1186d2(0xcf)):CliErrors[_0x1186d2(0xd2)](_0x49dfe5));}return _0x46b8a9;}function userFacingLovrabetMessage(_0x5e2872){const _0x2418a4=a123_0x13d5,_0x30564b=_0x5e2872[_0x2418a4(0xcd)];if(_0x30564b!==undefined&&_0x30564b!==null){if(typeof _0x30564b===_0x2418a4(0xd8)&&_0x30564b[_0x2418a4(0xca)]())return _0x30564b[_0x2418a4(0xca)]();try{return JSON[_0x2418a4(0xcb)](_0x30564b);}catch{}}return _0x5e2872[_0x2418a4(0xce)];}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x5b1fa0,_0x452966){const _0x5d0d06=a123_0x553a,_0x48f281=_0x5b1fa0();while(!![]){try{const _0x11b356=parseInt(_0x5d0d06(0xa7))/0x1+parseInt(_0x5d0d06(0xe5))/0x2+parseInt(_0x5d0d06(0xc8))/0x3+parseInt(_0x5d0d06(0xa5))/0x4+-parseInt(_0x5d0d06(0xb0))/0x5*(-parseInt(_0x5d0d06(0xd0))/0x6)+parseInt(_0x5d0d06(0xbe))/0x7+parseInt(_0x5d0d06(0xe3))/0x8*(-parseInt(_0x5d0d06(0xde))/0x9);if(_0x11b356===_0x452966)break;else _0x48f281['push'](_0x48f281['shift']());}catch(_0x10380f){_0x48f281['push'](_0x48f281['shift']());}}}(a123_0x759a,0xa8941));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(_0x2b9631){const _0x4cde9d=a123_0x553a;return void _0x2b9631,AUTH_MODE[_0x4cde9d(0xdd)];}function a123_0x759a(){const _0x11bf13=['defaultApp','Unknown\x20app:\x20','error','update','object','risk','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','validation','execute','resolve','nonInteractive','env','ClientAk','9cZwMJx','string','appcode','verbose','pretty','27557176XlQfrF','newConfigFileName','1846094EzyHsA','_notice','nativeToolRequired','appcode\x20\x22','\x20\x20To\x20proceed:\x20','requiresAppCode','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','mergedCli','schema','local-alias','.appcode\x20to\x20','239136dZhfPi','accessKey','1234719fZFDLv','appCodeSource','cancelled','APPCODE','format','service','catch','app','trim','848665MDKwxD','production','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','rawFlags','filter','../commands/app/remote-source.js','appCode','doctor','cli-skill','items','configMissing','currentApp','name','includes','9140572GDnYaY','isNonInteractive','high-risk-write','../core/api-client.js','defaultVerbose','nativeToolAvailable','confirmHighRisk','apiDomain','formatOutput','pageSize','816996TuiXcs','runtimeDomain','has','\x20or\x20pass\x20','command','Set\x20accessKey\x20in\x20','../core/sdk-client.js','ACCESS_KEY','12VcDQEc'];a123_0x759a=function(){return _0x11bf13;};return a123_0x759a();}function a123_0x553a(_0x641d0,_0x188be0){_0x641d0=_0x641d0-0x9b;const _0x759a69=a123_0x759a();let _0x553acb=_0x759a69[_0x641d0];return _0x553acb;}let sdkClientInitialized=![];export function createPipelineEnv(_0x3df268,_0x1cc601){const _0x447339=a123_0x553a,_0x21946c=typeof _0x1cc601[_0x447339(0xae)]===_0x447339(0xdf)&&_0x1cc601[_0x447339(0xae)]['trim']();return{'rawFlags':_0x1cc601,'appCode':_0x3df268[_0x447339(0xb6)]||productEnv(_0x447339(0xaa))||(_0x21946c?undefined:readAppCodeFromConfig()),'appCodeSource':_0x3df268[_0x447339(0xa8)],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x1cc601),'defaultFormat':_0x3df268[_0x447339(0xab)],'defaultPageSize':_0x3df268[_0x447339(0xc7)],'defaultVerbose':_0x3df268[_0x447339(0xe1)],'riskLevel':_0x3df268['riskLevel'],'nativeToolAvailable':_0x3df268['nativeToolAvailable'],'accessKey':_0x3df268['accessKey'],'env':_0x3df268[_0x447339(0xdc)],'mergedCli':{'defaultApp':_0x3df268['defaultApp'],'currentApp':_0x3df268[_0x447339(0xbb)],'appCode':_0x3df268[_0x447339(0xb6)]}};}export function createLovrabetRunnerAdapter(_0x52004c={}){const _0x89ecf1=a123_0x553a,_0x49f891={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x89ecf1(0xb4)](_0x57cb46=>PIPELINE_FLAG_NAMES[_0x89ecf1(0xca)](_0x57cb46[_0x89ecf1(0xbc)]))['map'](({name:_0x32f078,type:_0x38b0ee,description:_0x3e7a3f})=>({'name':_0x32f078,'type':_0x38b0ee,'description':_0x3e7a3f})),'formatOutput':_0x52004c[_0x89ecf1(0xc6)]??formatOutput,'getCommandLabel'(_0x3f21d9){return CLI_BIN_NAME+'\x20'+_0x3f21d9['service']+'\x20'+_0x3f21d9['command'];},'riskPolicy':{'onViolation'(_0x1e7cf6,{def:_0x3bd31d,env:_0x2ed3b5}){const _0x4b0673=_0x89ecf1;if(shouldRouteWriteToNativeTool(_0x3bd31d,_0x2ed3b5))return;console[_0x4b0673(0xd3)](_0x1e7cf6);},'createError'(_0x1f32f5,{def:_0x2160d4,env:_0x4974a8}){const _0x5f0c7a=_0x89ecf1;if(shouldRouteWriteToNativeTool(_0x2160d4,_0x4974a8))return CliErrors[_0x5f0c7a(0x9c)](CLI_BIN_NAME+'\x20'+_0x2160d4[_0x5f0c7a(0xac)]+'\x20'+_0x2160d4[_0x5f0c7a(0xcc)]);return CliErrors[_0x5f0c7a(0xa9)](_0x1f32f5);}},async 'prepare'(_0x9f5d28,_0x5b53cb){const _0x43f38a=_0x89ecf1,_0x59d673=resolveAuthMode(_0x5b53cb);if(_0x9f5d28['requiresAuth']!==![]){if(!_0x5b53cb['accessKey'])throw CliErrors['authRequired'](_0x43f38a(0xcd)+PRODUCT_CONFIG[_0x43f38a(0xe4)]+_0x43f38a(0xcb)+productEnvName(_0x43f38a(0xcf))+'.');const {setActiveAK:_0x39b221}=await import(_0x43f38a(0xc1));_0x39b221(_0x5b53cb[_0x43f38a(0xa6)]);}let _0x585746='';if(_0x9f5d28[_0x43f38a(0x9f)]!==![]){_0x585746=_0x5b53cb[_0x43f38a(0xb6)]??'',_0x585746=await resolveExplicitAppName(_0x9f5d28,_0x5b53cb,_0x585746);if(!_0x585746){await assertSelectedAppNameIsRuntimeAccessible(_0x9f5d28,_0x5b53cb);throw CliErrors[_0x43f38a(0xba)](_0x43f38a(0xb2)+PRODUCT_CONFIG[_0x43f38a(0xe4)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x9f5d28,_0x5b53cb,_0x585746);}if(_0x585746){const {initSdkClient:_0x598221}=await import(_0x43f38a(0xce));_0x598221({'appCode':_0x585746,'env':_0x5b53cb[_0x43f38a(0xdc)]??'production','runtimeDomain':_0x5b53cb[_0x43f38a(0xc9)],'accessKey':_0x5b53cb[_0x43f38a(0xa6)],'authMode':_0x59d673}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x5b53cb[_0x43f38a(0xc2)]},'numbers':{'pagesize':_0x5b53cb['defaultPageSize']}},'extras':{'appCode':_0x585746,'cookie':'','apiDomain':_0x5b53cb[_0x43f38a(0xc5)],'apiDir':'','accessKey':_0x5b53cb[_0x43f38a(0xa6)],'envName':_0x5b53cb[_0x43f38a(0xdc)],'mergedCli':_0x5b53cb[_0x43f38a(0xa1)]}};},'confirmHighRisk':_0x52004c[_0x89ecf1(0xc4)]??(async({def:_0x4dc4df,env:_0x5c2770,flags:_0x8440ad,commandLabel:_0x38bfc1})=>{const _0x61a897=_0x89ecf1;if(_0x5c2770[_0x61a897(0xbf)]){const _0x2e4bc4=reconstructCommandArgv(_0x4dc4df,_0x8440ad);throw CliErrors[_0x61a897(0xd8)]('High-risk\x20operation\x20`'+_0x38bfc1+_0x61a897(0xa0)+(_0x61a897(0x9e)+_0x2e4bc4));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x4dc4df,_0x38bfc1,_0x8440ad),'createCancelledError':_0xeb3a6d=>CliErrors[_0x61a897(0xa9)](_0xeb3a6d)});}),'mapDryRunError'(_0x10ecc0){return mapUserFacingExecuteError(_0x10ecc0);},'mapExecuteError'(_0x32acd3){return mapUserFacingExecuteError(_0x32acd3);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x49f891;}function shouldRouteWriteToNativeTool(_0x1d4d6f,_0x48604b){const _0x530a7a=a123_0x553a;return _0x48604b[_0x530a7a(0xc3)]===!![]&&(_0x1d4d6f[_0x530a7a(0xd6)]==='write'||_0x1d4d6f[_0x530a7a(0xd6)]===_0x530a7a(0xc0));}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x1073db=a123_0x553a;try{if(sdkClientInitialized){const {clearSdkClient:_0x53bf93}=await import(_0x1073db(0xce));_0x53bf93();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x1fc185}=await import(_0x1073db(0xc1));_0x1fc185();}}async function resolveExplicitAppName(_0x3cb8d8,_0x203aaa,_0x43068c){const _0xda0683=a123_0x553a;if(_0x3cb8d8[_0xda0683(0x9f)]===![])return _0x43068c;const _0x3bfd73=typeof _0x203aaa[_0xda0683(0xb3)][_0xda0683(0xae)]==='string'?_0x203aaa['rawFlags'][_0xda0683(0xae)][_0xda0683(0xaf)]():'';if(!_0x3bfd73)return _0x43068c;const _0x1231b6=typeof _0x203aaa[_0xda0683(0xb3)][_0xda0683(0xe0)]===_0xda0683(0xdf)&&_0x203aaa[_0xda0683(0xb3)][_0xda0683(0xe0)][_0xda0683(0xaf)]()||productEnv(_0xda0683(0xaa));if(_0x1231b6||_0x203aaa[_0xda0683(0xa8)]===_0xda0683(0xa3))return _0x43068c;const {getRemoteAppList:_0x56c2c7}=await import(_0xda0683(0xb5)),_0x3c2c07=await _0x56c2c7({'env':_0x203aaa[_0xda0683(0xdc)]??'production','accessKey':_0x203aaa['accessKey']}),_0x305f4d=findAppByName(_0x3c2c07[_0xda0683(0xb9)],_0x3bfd73);if(_0x305f4d&&!isRuntimeAccessibleApp(_0x305f4d))throw runtimeInaccessibleAppError(_0x305f4d,'\x22'+_0x3bfd73+'\x22');const _0x3c1cfe=_0x305f4d?.[_0xda0683(0xb6)]?.['trim']();if(_0x3c1cfe)return _0x3c1cfe;throw CliErrors[_0xda0683(0xd8)](_0xda0683(0xd2)+_0x3bfd73,'Run\x20`'+CLI_BIN_NAME+_0xda0683(0xd7)+_0x3bfd73+_0xda0683(0xa4)+PRODUCT_CONFIG[_0xda0683(0xe4)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x5d1c5e,_0x46a6cb){const _0x34a72e=a123_0x553a;if(_0x5d1c5e[_0x34a72e(0x9f)]===![]||!_0x46a6cb[_0x34a72e(0xa6)])return;const _0x189ddd=(typeof _0x46a6cb['rawFlags'][_0x34a72e(0xae)]===_0x34a72e(0xdf)&&_0x46a6cb[_0x34a72e(0xb3)]['app'][_0x34a72e(0xaf)]()?_0x46a6cb[_0x34a72e(0xb3)][_0x34a72e(0xae)]:_0x46a6cb[_0x34a72e(0xa1)]?.['currentApp']??_0x46a6cb[_0x34a72e(0xa1)]?.[_0x34a72e(0xd1)])?.[_0x34a72e(0xaf)]();if(!_0x189ddd)return;const {getRemoteAppList:_0x98c0fe}=await import(_0x34a72e(0xb5)),_0xb8aa37=await _0x98c0fe({'env':_0x46a6cb[_0x34a72e(0xdc)]??'production','accessKey':_0x46a6cb[_0x34a72e(0xa6)]}),_0x588af6=findAppByName(_0xb8aa37['items'],_0x189ddd);if(_0x588af6&&!isRuntimeAccessibleApp(_0x588af6))throw runtimeInaccessibleAppError(_0x588af6,'\x22'+_0x189ddd+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x3f6697,_0xbd158a,_0x2af421){const _0x427e46=a123_0x553a;if(_0x3f6697[_0x427e46(0x9f)]===![]||!_0xbd158a[_0x427e46(0xa6)])return;const {getRemoteAppList:_0x44f158}=await import(_0x427e46(0xb5)),_0x1dd56f=await _0x44f158({'env':_0xbd158a[_0x427e46(0xdc)]??_0x427e46(0xb1),'accessKey':_0xbd158a[_0x427e46(0xa6)]}),_0x1d9dfd=findAppByCode(_0x1dd56f[_0x427e46(0xb9)],_0x2af421);if(_0x1d9dfd&&!isRuntimeAccessibleApp(_0x1d9dfd))throw runtimeInaccessibleAppError(_0x1d9dfd,_0x427e46(0x9d)+_0x2af421+'\x22');}export async function runCommand(_0x46e36c,_0x4c6d48,_0xa90574=terminalRunnerAdapter){const _0x592936=a123_0x553a;assertKnownCommandFlags(_0x46e36c,_0x4c6d48[_0x592936(0xb3)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x46e36c)?withVersionPolicy(_0x46e36c):_0x46e36c,_0x4c6d48,_0xa90574);}function shouldApplyVersionPolicy(_0x292bab){const _0x476bd6=a123_0x553a;if([_0x476bd6(0xd4),_0x476bd6(0xa2),_0x476bd6(0xb7)][_0x476bd6(0xbd)](_0x292bab[_0x476bd6(0xac)]))return![];return!(_0x292bab[_0x476bd6(0xac)]===_0x476bd6(0xb8)&&_0x292bab[_0x476bd6(0xcc)]==='install');}function withVersionPolicy(_0x4431de){return{..._0x4431de,async 'execute'(_0x169cbd){const _0x114977=a123_0x553a,_0x2fb7e5=await checkCliVersion();assertCliVersionSupported(_0x2fb7e5);const _0x3661d2=shouldResolveUpdateNotice(_0x169cbd)?resolveLatestUpdateNotice(_0x2fb7e5)[_0x114977(0xad)](()=>null):Promise[_0x114977(0xda)](null),_0x4cae9f=await _0x4431de[_0x114977(0xd9)](_0x169cbd);return attachUpdateNotice(_0x4cae9f,await _0x3661d2);}};}function shouldResolveUpdateNotice(_0x21e379){const _0x28a673=a123_0x553a;return _0x21e379[_0x28a673(0xab)]===_0x28a673(0xe2)&&!_0x21e379[_0x28a673(0xdb)];}function attachUpdateNotice(_0x362302,_0x23824e){const _0x214497=a123_0x553a;if(!_0x23824e||!_0x362302||typeof _0x362302!=='object')return _0x362302;const _0x32d702=_0x362302,_0x555bbb=typeof _0x32d702[_0x214497(0x9b)]===_0x214497(0xd5)&&_0x32d702[_0x214497(0x9b)]!==null?_0x32d702['_notice']:{};return{..._0x32d702,'_notice':{..._0x555bbb,'update':_0x23824e}};}
|
|
1
|
+
(function(_0x26d420,_0x78223c){const _0x4d3cc8=a124_0x2088,_0x3ade29=_0x26d420();while(!![]){try{const _0x1fc252=parseInt(_0x4d3cc8(0x19f))/0x1+-parseInt(_0x4d3cc8(0x195))/0x2+parseInt(_0x4d3cc8(0x178))/0x3*(-parseInt(_0x4d3cc8(0x1b8))/0x4)+-parseInt(_0x4d3cc8(0x17a))/0x5*(-parseInt(_0x4d3cc8(0x179))/0x6)+parseInt(_0x4d3cc8(0x18b))/0x7+-parseInt(_0x4d3cc8(0x184))/0x8*(parseInt(_0x4d3cc8(0x18e))/0x9)+-parseInt(_0x4d3cc8(0x185))/0xa*(parseInt(_0x4d3cc8(0x1b2))/0xb);if(_0x1fc252===_0x78223c)break;else _0x3ade29['push'](_0x3ade29['shift']());}catch(_0x1f15be){_0x3ade29['push'](_0x3ade29['shift']());}}}(a124_0x33f3,0x72893));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';function a124_0x33f3(){const _0x3e8434=['service','risk','confirmHighRisk','isNonInteractive','authRequired','newConfigFileName','runtimeDomain','../core/api-client.js','Run\x20`','cancelled','646987ELAIVZ','accessKey','_notice','trim','schema','Set\x20accessKey\x20in\x20','328036nkuouN','appCodeSource','object','verbose','format','error','Unknown\x20app:\x20','30YQMWSO','6hBjVaW','2671730GWCWqu','apiDomain','ACCESS_KEY','filter','../core/sdk-client.js','high-risk-write','local-alias','env','rawFlags','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','1792568VBmKCJ','30msFpKm','items','requiresAuth','command','nonInteractive','update','4350913DCwJOC','has','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','9GFibyr','app','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','nativeToolRequired','includes','currentApp','requiresAppCode','324394FsYdFm','mergedCli','\x20\x20To\x20proceed:\x20','appCode','defaultVerbose','High-risk\x20operation\x20`','nativeToolAvailable','string','defaultApp','../commands/app/remote-source.js','696043OKbxEE','APPCODE','.appcode\x20to\x20','defaultPageSize','resolve','cli-skill','production','validation','riskLevel'];a124_0x33f3=function(){return _0x3e8434;};return a124_0x33f3();}import{assertCliVersionSupported,checkCliVersion}from'../utils/cli-version-check.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x5e4b88){return void _0x5e4b88,AUTH_MODE['ClientAk'];}let sdkClientInitialized=![];export function createPipelineEnv(_0x402557,_0x1c3c9e){const _0x595a73=a124_0x2088,_0x34ea3f=typeof _0x1c3c9e[_0x595a73(0x18f)]===_0x595a73(0x19c)&&_0x1c3c9e['app'][_0x595a73(0x1b5)]();return{'rawFlags':_0x1c3c9e,'appCode':_0x402557['appCode']||productEnv(_0x595a73(0x1a0))||(_0x34ea3f?undefined:readAppCodeFromConfig()),'appCodeSource':_0x402557['appCodeSource'],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x1c3c9e),'defaultFormat':_0x402557[_0x595a73(0x1bc)],'defaultPageSize':_0x402557['pageSize'],'defaultVerbose':_0x402557[_0x595a73(0x1bb)],'riskLevel':_0x402557[_0x595a73(0x1a7)],'nativeToolAvailable':_0x402557['nativeToolAvailable'],'accessKey':_0x402557['accessKey'],'env':_0x402557['env'],'mergedCli':{'defaultApp':_0x402557[_0x595a73(0x19d)],'currentApp':_0x402557[_0x595a73(0x193)],'appCode':_0x402557[_0x595a73(0x198)]}};}function a124_0x2088(_0x324f84,_0x4b6c67){_0x324f84=_0x324f84-0x176;const _0x33f3f8=a124_0x33f3();let _0x208810=_0x33f3f8[_0x324f84];return _0x208810;}export function createLovrabetRunnerAdapter(_0x4514d0={}){const _0x4c090a=a124_0x2088,_0x548228={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x4c090a(0x17d)](_0x43c33d=>PIPELINE_FLAG_NAMES[_0x4c090a(0x18c)](_0x43c33d['name']))['map'](({name:_0x119309,type:_0x4755d2,description:_0x35bc9a})=>({'name':_0x119309,'type':_0x4755d2,'description':_0x35bc9a})),'formatOutput':_0x4514d0['formatOutput']??formatOutput,'getCommandLabel'(_0x371159){const _0x28392d=_0x4c090a;return CLI_BIN_NAME+'\x20'+_0x371159[_0x28392d(0x1a8)]+'\x20'+_0x371159['command'];},'riskPolicy':{'onViolation'(_0x512eef,{def:_0x4507de,env:_0x521c8c}){const _0x1dd968=_0x4c090a;if(shouldRouteWriteToNativeTool(_0x4507de,_0x521c8c))return;console[_0x1dd968(0x176)](_0x512eef);},'createError'(_0x5c0f6f,{def:_0x3578e9,env:_0x2b79de}){const _0x5c3dc8=_0x4c090a;if(shouldRouteWriteToNativeTool(_0x3578e9,_0x2b79de))return CliErrors[_0x5c3dc8(0x191)](CLI_BIN_NAME+'\x20'+_0x3578e9['service']+'\x20'+_0x3578e9[_0x5c3dc8(0x188)]);return CliErrors[_0x5c3dc8(0x1b1)](_0x5c0f6f);}},async 'prepare'(_0x238531,_0x8af9d9){const _0x1fa02e=_0x4c090a,_0x493094=resolveAuthMode(_0x8af9d9);if(_0x238531[_0x1fa02e(0x187)]!==![]){if(!_0x8af9d9[_0x1fa02e(0x1b3)])throw CliErrors[_0x1fa02e(0x1ac)](_0x1fa02e(0x1b7)+PRODUCT_CONFIG['newConfigFileName']+'\x20or\x20pass\x20'+productEnvName(_0x1fa02e(0x17c))+'.');const {setActiveAK:_0x49d730}=await import(_0x1fa02e(0x1af));_0x49d730(_0x8af9d9[_0x1fa02e(0x1b3)]);}let _0x36dc87='';if(_0x238531[_0x1fa02e(0x194)]!==![]){_0x36dc87=_0x8af9d9[_0x1fa02e(0x198)]??'',_0x36dc87=await resolveExplicitAppName(_0x238531,_0x8af9d9,_0x36dc87);if(!_0x36dc87){await assertSelectedAppNameIsRuntimeAccessible(_0x238531,_0x8af9d9);throw CliErrors['configMissing'](_0x1fa02e(0x190)+PRODUCT_CONFIG[_0x1fa02e(0x1ad)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x238531,_0x8af9d9,_0x36dc87);}if(_0x36dc87){const {initSdkClient:_0x59b965}=await import(_0x1fa02e(0x17e));_0x59b965({'appCode':_0x36dc87,'env':_0x8af9d9[_0x1fa02e(0x181)]??_0x1fa02e(0x1a5),'runtimeDomain':_0x8af9d9[_0x1fa02e(0x1ae)],'accessKey':_0x8af9d9[_0x1fa02e(0x1b3)],'authMode':_0x493094}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x8af9d9[_0x1fa02e(0x199)]},'numbers':{'pagesize':_0x8af9d9[_0x1fa02e(0x1a2)]}},'extras':{'appCode':_0x36dc87,'cookie':'','apiDomain':_0x8af9d9[_0x1fa02e(0x17b)],'apiDir':'','accessKey':_0x8af9d9[_0x1fa02e(0x1b3)],'envName':_0x8af9d9[_0x1fa02e(0x181)],'mergedCli':_0x8af9d9['mergedCli']}};},'confirmHighRisk':_0x4514d0[_0x4c090a(0x1aa)]??(async({def:_0x349f35,env:_0xd5c61,flags:_0x552535,commandLabel:_0x373c7d})=>{const _0xbd7e61=_0x4c090a;if(_0xd5c61[_0xbd7e61(0x1ab)]){const _0x26e4c5=reconstructCommandArgv(_0x349f35,_0x552535);throw CliErrors[_0xbd7e61(0x1a6)](_0xbd7e61(0x19a)+_0x373c7d+_0xbd7e61(0x18d)+(_0xbd7e61(0x197)+_0x26e4c5));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x349f35,_0x373c7d,_0x552535),'createCancelledError':_0x3b409e=>CliErrors[_0xbd7e61(0x1b1)](_0x3b409e)});}),'mapDryRunError'(_0x4f43dc){return mapUserFacingExecuteError(_0x4f43dc);},'mapExecuteError'(_0xec79fc){return mapUserFacingExecuteError(_0xec79fc);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x548228;}function shouldRouteWriteToNativeTool(_0x1775d9,_0x2c00d7){const _0x59677b=a124_0x2088;return _0x2c00d7[_0x59677b(0x19b)]===!![]&&(_0x1775d9['risk']==='write'||_0x1775d9[_0x59677b(0x1a9)]===_0x59677b(0x17f));}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){try{if(sdkClientInitialized){const {clearSdkClient:_0x4e3219}=await import('../core/sdk-client.js');_0x4e3219();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x26771e}=await import('../core/api-client.js');_0x26771e();}}async function resolveExplicitAppName(_0x55c317,_0x3af21d,_0x5516a5){const _0x190b8a=a124_0x2088;if(_0x55c317[_0x190b8a(0x194)]===![])return _0x5516a5;const _0x2817d0=typeof _0x3af21d['rawFlags'][_0x190b8a(0x18f)]===_0x190b8a(0x19c)?_0x3af21d[_0x190b8a(0x182)]['app'][_0x190b8a(0x1b5)]():'';if(!_0x2817d0)return _0x5516a5;const _0x1a7dbf=typeof _0x3af21d[_0x190b8a(0x182)]['appcode']===_0x190b8a(0x19c)&&_0x3af21d[_0x190b8a(0x182)]['appcode']['trim']()||productEnv(_0x190b8a(0x1a0));if(_0x1a7dbf||_0x3af21d[_0x190b8a(0x1b9)]===_0x190b8a(0x180))return _0x5516a5;const {getRemoteAppList:_0x5f42a6}=await import(_0x190b8a(0x19e)),_0x500889=await _0x5f42a6({'env':_0x3af21d[_0x190b8a(0x181)]??_0x190b8a(0x1a5),'accessKey':_0x3af21d['accessKey']}),_0x407b7b=findAppByName(_0x500889[_0x190b8a(0x186)],_0x2817d0);if(_0x407b7b&&!isRuntimeAccessibleApp(_0x407b7b))throw runtimeInaccessibleAppError(_0x407b7b,'\x22'+_0x2817d0+'\x22');const _0x2385ac=_0x407b7b?.[_0x190b8a(0x198)]?.['trim']();if(_0x2385ac)return _0x2385ac;throw CliErrors['validation'](_0x190b8a(0x177)+_0x2817d0,_0x190b8a(0x1b0)+CLI_BIN_NAME+_0x190b8a(0x183)+_0x2817d0+_0x190b8a(0x1a1)+PRODUCT_CONFIG['newConfigFileName']+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x31a14c,_0x2b0508){const _0x94cea6=a124_0x2088;if(_0x31a14c[_0x94cea6(0x194)]===![]||!_0x2b0508[_0x94cea6(0x1b3)])return;const _0x1e3847=(typeof _0x2b0508['rawFlags']['app']===_0x94cea6(0x19c)&&_0x2b0508[_0x94cea6(0x182)][_0x94cea6(0x18f)][_0x94cea6(0x1b5)]()?_0x2b0508['rawFlags'][_0x94cea6(0x18f)]:_0x2b0508[_0x94cea6(0x196)]?.[_0x94cea6(0x193)]??_0x2b0508[_0x94cea6(0x196)]?.[_0x94cea6(0x19d)])?.[_0x94cea6(0x1b5)]();if(!_0x1e3847)return;const {getRemoteAppList:_0x9ec932}=await import(_0x94cea6(0x19e)),_0x306248=await _0x9ec932({'env':_0x2b0508[_0x94cea6(0x181)]??'production','accessKey':_0x2b0508[_0x94cea6(0x1b3)]}),_0x409dd7=findAppByName(_0x306248['items'],_0x1e3847);if(_0x409dd7&&!isRuntimeAccessibleApp(_0x409dd7))throw runtimeInaccessibleAppError(_0x409dd7,'\x22'+_0x1e3847+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x9c64f2,_0x4923d8,_0x39f61b){const _0x3df1eb=a124_0x2088;if(_0x9c64f2['requiresAppCode']===![]||!_0x4923d8[_0x3df1eb(0x1b3)])return;const {getRemoteAppList:_0x31d087}=await import(_0x3df1eb(0x19e)),_0x17aaf0=await _0x31d087({'env':_0x4923d8[_0x3df1eb(0x181)]??_0x3df1eb(0x1a5),'accessKey':_0x4923d8['accessKey']}),_0x5dd733=findAppByCode(_0x17aaf0[_0x3df1eb(0x186)],_0x39f61b);if(_0x5dd733&&!isRuntimeAccessibleApp(_0x5dd733))throw runtimeInaccessibleAppError(_0x5dd733,'appcode\x20\x22'+_0x39f61b+'\x22');}export async function runCommand(_0x1f2bc9,_0x24b863,_0x346e1e=terminalRunnerAdapter){const _0x576895=a124_0x2088;assertKnownCommandFlags(_0x1f2bc9,_0x24b863[_0x576895(0x182)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x1f2bc9)?withVersionPolicy(_0x1f2bc9):_0x1f2bc9,_0x24b863,_0x346e1e);}function shouldApplyVersionPolicy(_0x5bd0de){const _0x18634a=a124_0x2088;if([_0x18634a(0x18a),_0x18634a(0x1b6),'doctor'][_0x18634a(0x192)](_0x5bd0de[_0x18634a(0x1a8)]))return![];return!(_0x5bd0de['service']===_0x18634a(0x1a4)&&_0x5bd0de[_0x18634a(0x188)]==='install');}function withVersionPolicy(_0x1b59ed){return{..._0x1b59ed,async 'execute'(_0x22ca8c){const _0x2c5a4d=a124_0x2088,_0x56ae94=await checkCliVersion();assertCliVersionSupported(_0x56ae94);const _0x46af46=shouldResolveUpdateNotice(_0x22ca8c)?resolveLatestUpdateNotice(_0x56ae94)['catch'](()=>null):Promise[_0x2c5a4d(0x1a3)](null),_0x10ba58=await _0x1b59ed['execute'](_0x22ca8c);return attachUpdateNotice(_0x10ba58,await _0x46af46);}};}function shouldResolveUpdateNotice(_0x3915f1){const _0x459850=a124_0x2088;return _0x3915f1[_0x459850(0x1bc)]==='pretty'&&!_0x3915f1[_0x459850(0x189)];}function attachUpdateNotice(_0x1c4177,_0x3151b6){const _0x418697=a124_0x2088;if(!_0x3151b6||!_0x1c4177||typeof _0x1c4177!==_0x418697(0x1ba))return _0x1c4177;const _0x10ab0b=_0x1c4177,_0x2d8aef=typeof _0x10ab0b[_0x418697(0x1b4)]==='object'&&_0x10ab0b[_0x418697(0x1b4)]!==null?_0x10ab0b['_notice']:{};return{..._0x10ab0b,'_notice':{..._0x2d8aef,'update':_0x3151b6}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a125_0x5107(_0x34edb7,_0xc51750){_0x34edb7=_0x34edb7-0xe9;const _0x43c558=a125_0x43c5();let _0x5107ed=_0x43c558[_0x34edb7];return _0x5107ed;}(function(_0xbabfe6,_0x3a71d3){const _0x5a49af=a125_0x5107,_0xf90503=_0xbabfe6();while(!![]){try{const _0x2a0f5c=parseInt(_0x5a49af(0xfc))/0x1*(parseInt(_0x5a49af(0xf3))/0x2)+-parseInt(_0x5a49af(0xfa))/0x3*(-parseInt(_0x5a49af(0xf7))/0x4)+-parseInt(_0x5a49af(0xf9))/0x5*(parseInt(_0x5a49af(0xea))/0x6)+parseInt(_0x5a49af(0xf2))/0x7*(-parseInt(_0x5a49af(0xf1))/0x8)+parseInt(_0x5a49af(0xef))/0x9+-parseInt(_0x5a49af(0xf8))/0xa*(-parseInt(_0x5a49af(0xfb))/0xb)+-parseInt(_0x5a49af(0xeb))/0xc;if(_0x2a0f5c===_0x3a71d3)break;else _0xf90503['push'](_0xf90503['shift']());}catch(_0x4146bd){_0xf90503['push'](_0xf90503['shift']());}}}(a125_0x43c5,0x4b63f));import{buildSchemaPayload as a125_0x5896e7}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';function a125_0x43c5(){const _0x5a97d6=['map','auth','363524jlYwZV','1030OFFBZM','61095TWuTXy','3SOYBOV','13145yUaijd','26772yiexpw','required','114LsvRnZ','6254544jsozXH','services','none','filter','5201532zRaUHH','requiresAuth','528kzMTgd','19607PTZUCR','34hKDRtd','has'];a125_0x43c5=function(){return _0x5a97d6;};return a125_0x43c5();}import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliGitCommit,getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x257f86=a125_0x5107,{serviceRegistry:_0x2bff30,findDefinition:_0x3aa5d8}=await import('../commands/registry.js'),_0x26f9f3=new Set(_0x2bff30[_0x257f86(0xf5)](_0x11c9f4=>_0x11c9f4['service'])),_0x390cc6=listDynamicServiceEntries()[_0x257f86(0xee)](_0xf240fd=>!_0x26f9f3[_0x257f86(0xf4)](_0xf240fd['service'])),_0x561523=a125_0x5896e7({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x2bff30,_0x390cc6),'buildAllFlags':buildAllFlags,'findDefinition':(_0x284e69,_0x1148ce)=>_0x3aa5d8(_0x284e69,_0x1148ce)??findDynamicServiceDefinition(_0x284e69,_0x1148ce)});return normalizeSchemaPayload(_0x561523);}function normalizeSchemaPayload(_0x2e9998){const _0x486e28=a125_0x5107;return{..._0x2e9998,'schemaVersion':0x2,'services':_0x2e9998[_0x486e28(0xec)]['map'](_0x4c1a4c=>({..._0x4c1a4c,'commands':_0x4c1a4c['commands'][_0x486e28(0xf5)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x27ad00){const _0x184e9a=a125_0x5107,_0x447c0d=_0x27ad00;return{..._0x27ad00,'auth':_0x447c0d[_0x184e9a(0xf6)]??(_0x27ad00[_0x184e9a(0xf0)]?_0x184e9a(0xe9):_0x184e9a(0xed))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a126_0xf7da(_0x3a773f,_0x4a9e14){_0x3a773f=_0x3a773f-0x169;const _0x143f6c=a126_0x143f();let _0xf7daa7=_0x143f6c[_0x3a773f];return _0xf7daa7;}function a126_0x143f(){const _0x554d68=['30rEONaz','1851489sCcArh','4039668YjbmWC','744276pYDjwH','11065zgdbZt','4050136DpZxgO','slice','length','2155455YGGgPI','service','findIndex','5JjwbrS','6266554tOQUef'];a126_0x143f=function(){return _0x554d68;};return a126_0x143f();}(function(_0x227812,_0x820c50){const _0xb08a2c=a126_0xf7da,_0x3b43b0=_0x227812();while(!![]){try{const _0x42d2a4=-parseInt(_0xb08a2c(0x169))/0x1*(-parseInt(_0xb08a2c(0x172))/0x2)+-parseInt(_0xb08a2c(0x173))/0x3+parseInt(_0xb08a2c(0x174))/0x4+parseInt(_0xb08a2c(0x170))/0x5*(parseInt(_0xb08a2c(0x175))/0x6)+-parseInt(_0xb08a2c(0x171))/0x7+parseInt(_0xb08a2c(0x16a))/0x8+parseInt(_0xb08a2c(0x16d))/0x9;if(_0x42d2a4===_0x820c50)break;else _0x3b43b0['push'](_0x3b43b0['shift']());}catch(_0x3574d3){_0x3b43b0['push'](_0x3b43b0['shift']());}}}(a126_0x143f,0x82343));export function insertDynamicServicesAfterServiceTree(_0xd9a524,_0x24118c){const _0x277bbe=a126_0xf7da;if(_0x24118c[_0x277bbe(0x16c)]===0x0)return[..._0xd9a524];const _0x4423a8=_0xd9a524[_0x277bbe(0x16f)](_0x2b924e=>_0x2b924e[_0x277bbe(0x16e)]===_0x277bbe(0x16e));if(_0x4423a8<0x0)return[..._0xd9a524,..._0x24118c];return[..._0xd9a524['slice'](0x0,_0x4423a8+0x1),..._0x24118c,..._0xd9a524[_0x277bbe(0x16b)](_0x4423a8+0x1)];}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a127_0x2f00(){var _0xd6cb75=['20QGTxWT','5298768osninh','5600100iZBvpL','3CaMQbB','1144764bXnMES','719192WEKilh','1191666CWXNwl','4339lOuLdc','5584536BzmZCY','25kNnHlC','7mvqLTM','452daoruz'];a127_0x2f00=function(){return _0xd6cb75;};return a127_0x2f00();}function a127_0x3d3a(_0x464d03,_0x177f3b){_0x464d03=_0x464d03-0x136;var _0x2f000a=a127_0x2f00();var _0x3d3a37=_0x2f000a[_0x464d03];return _0x3d3a37;}(function(_0x3d90e1,_0x55c5d9){var _0x30dee0=a127_0x3d3a,_0x2f4d32=_0x3d90e1();while(!![]){try{var _0x3ca121=parseInt(_0x30dee0(0x13d))/0x1*(-parseInt(_0x30dee0(0x141))/0x2)+-parseInt(_0x30dee0(0x139))/0x3*(-parseInt(_0x30dee0(0x13b))/0x4)+-parseInt(_0x30dee0(0x13f))/0x5*(-parseInt(_0x30dee0(0x13c))/0x6)+parseInt(_0x30dee0(0x140))/0x7*(-parseInt(_0x30dee0(0x13e))/0x8)+-parseInt(_0x30dee0(0x13a))/0x9*(-parseInt(_0x30dee0(0x136))/0xa)+parseInt(_0x30dee0(0x138))/0xb+parseInt(_0x30dee0(0x137))/0xc;if(_0x3ca121===_0x55c5d9)break;else _0x2f4d32['push'](_0x2f4d32['shift']());}catch(_0x4c97f7){_0x2f4d32['push'](_0x2f4d32['shift']());}}}(a127_0x2f00,0xaab5c));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.3.6-beta.
|
|
2
|
-
export declare const GIT_TAG = "v2.3.6-beta.
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-10-
|
|
1
|
+
export declare const VERSION = "2.3.6-beta.3";
|
|
2
|
+
export declare const GIT_TAG = "v2.3.6-beta.3";
|
|
3
|
+
export declare const GIT_COMMIT = "cd5279a";
|
|
4
|
+
export declare const BUILD_TIME = "2026-10-22T09:49:45.267Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a128_0xaff3d8=a128_0x12c0;function a128_0x5409(){const _0x302e66=['1179766jHSgEQ','v2.3.6-beta.3','cd5279a','16160kMtpss','32886480xdQqhz','1175923mixFzj','12rhvXVN','5704272ReEmFd','196ATBCbV','2.3.6-beta.3','4534587WOTvJA','564231XmWMBR','11cjfnco','2026-10-22T09:49:45.267Z','14jSeNFP'];a128_0x5409=function(){return _0x302e66;};return a128_0x5409();}(function(_0x32fdd0,_0x4c28de){const _0xb3e682=a128_0x12c0,_0x30d926=_0x32fdd0();while(!![]){try{const _0x2bda1d=parseInt(_0xb3e682(0x1b5))/0x1+-parseInt(_0xb3e682(0x1b4))/0x2*(-parseInt(_0xb3e682(0x1b1))/0x3)+parseInt(_0xb3e682(0x1ae))/0x4*(parseInt(_0xb3e682(0x1b8))/0x5)+-parseInt(_0xb3e682(0x1ac))/0x6*(-parseInt(_0xb3e682(0x1ab))/0x7)+parseInt(_0xb3e682(0x1ad))/0x8+parseInt(_0xb3e682(0x1b0))/0x9+-parseInt(_0xb3e682(0x1b9))/0xa*(parseInt(_0xb3e682(0x1b2))/0xb);if(_0x2bda1d===_0x4c28de)break;else _0x30d926['push'](_0x30d926['shift']());}catch(_0x4e1968){_0x30d926['push'](_0x30d926['shift']());}}}(a128_0x5409,0xe0560));export const VERSION=a128_0xaff3d8(0x1af);export const GIT_TAG=a128_0xaff3d8(0x1b6);export const GIT_COMMIT=a128_0xaff3d8(0x1b7);function a128_0x12c0(_0x35fb45,_0x1ababd){_0x35fb45=_0x35fb45-0x1ab;const _0x540974=a128_0x5409();let _0x12c0cd=_0x540974[_0x35fb45];return _0x12c0cd;}export const BUILD_TIME=a128_0xaff3d8(0x1b3);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a129_0x3bcdb3=a129_0x3c57;(function(_0x1108bf,_0x3a3046){const _0x248071=a129_0x3c57,_0x3e4ef7=_0x1108bf();while(!![]){try{const _0x3625d2=parseInt(_0x248071(0x17b))/0x1+parseInt(_0x248071(0x179))/0x2*(parseInt(_0x248071(0x174))/0x3)+parseInt(_0x248071(0x188))/0x4+parseInt(_0x248071(0x18e))/0x5*(parseInt(_0x248071(0x184))/0x6)+-parseInt(_0x248071(0x177))/0x7+parseInt(_0x248071(0x181))/0x8*(parseInt(_0x248071(0x16d))/0x9)+-parseInt(_0x248071(0x16a))/0xa;if(_0x3625d2===_0x3a3046)break;else _0x3e4ef7['push'](_0x3e4ef7['shift']());}catch(_0xebf29e){_0x3e4ef7['push'](_0x3e4ef7['shift']());}}}(a129_0x469f,0xb47ce));export const ROUTING_CATALOG_DIGEST=a129_0x3bcdb3(0x186);function a129_0x3c57(_0x151681,_0x283611){_0x151681=_0x151681-0x169;const _0x469f0a=a129_0x469f();let _0x3c57d7=_0x469f0a[_0x151681];return _0x3c57d7;}function a129_0x469f(){const _0x556e9f=['6575814tQOnLG','https://user-daily.lovrabet.com','Global','https://skills.lovrabet.id','https://runtime.lovrabet.id','https://daily-runtime.lovrabet.com','https://api.lovrabet.id','28041KitERX','https://user-daily.lovrabet.ai','https://skills.lovrabet.ai','4908505xbfMQi','china','54PPGdgP','https://runtime.lovrabet.com','752392kKLlqL','https://kb-service.lovrabet.id','Indonesia','https://kb-service-daily.lovrabet.com','https://user.lovrabet.ai','https://skills-daily.lovrabet.com','8BmzLTQ','https://daily-api.lovrabet.ai','https://runtime.lovrabet.ai','66894rQCsJw','global','886843ef89aa4ff2b36d612e8fbd1b6c1840b37728916fba5699be34129ef579','https://daily-runtime.lovrabet.ai','4714496OpvFmJ','Mainland\x20China','https://skills.lovrabet.com','https://skills-daily.lovrabet.ai','https://api.lovrabet.ai','https://user.lovrabet.id','485KPtvdW','https://daily-api.lovrabet.com','25549910VASWVv','https://api.lovrabet.com','indonesia'];a129_0x469f=function(){return _0x556e9f;};return a129_0x469f();}export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id',a129_0x3bcdb3(0x185)];export const ENABLED_REGION_VALUES=['cn','id','global'];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a129_0x3bcdb3(0x189),'aliases':[a129_0x3bcdb3(0x178)],'serviceDomains':{'production':{'user':'https://user.lovrabet.com','api':a129_0x3bcdb3(0x16b),'runtime':a129_0x3bcdb3(0x17a),'skill':a129_0x3bcdb3(0x18a),'kbService':'https://kb-service.lovrabet.com'},'daily':{'user':a129_0x3bcdb3(0x16e),'api':a129_0x3bcdb3(0x169),'runtime':a129_0x3bcdb3(0x172),'skill':a129_0x3bcdb3(0x180),'kbService':a129_0x3bcdb3(0x17e)}}},'id':{'enabled':!![],'label':a129_0x3bcdb3(0x17d),'aliases':[a129_0x3bcdb3(0x16c)],'serviceDomains':{'production':{'user':a129_0x3bcdb3(0x18d),'api':a129_0x3bcdb3(0x173),'runtime':a129_0x3bcdb3(0x171),'skill':a129_0x3bcdb3(0x170),'kbService':a129_0x3bcdb3(0x17c)}}},'global':{'enabled':!![],'label':a129_0x3bcdb3(0x16f),'aliases':[],'serviceDomains':{'production':{'user':a129_0x3bcdb3(0x17f),'api':a129_0x3bcdb3(0x18c),'runtime':a129_0x3bcdb3(0x183),'skill':a129_0x3bcdb3(0x176)},'daily':{'user':a129_0x3bcdb3(0x175),'api':a129_0x3bcdb3(0x182),'runtime':a129_0x3bcdb3(0x187),'skill':a129_0x3bcdb3(0x18b)}}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a130_0x3411ac=a130_0x26a8;(function(_0x355e2f,_0x1c50b1){const _0xaec6f7=a130_0x26a8,_0x5d49e8=_0x355e2f();while(!![]){try{const _0x54ea4f=-parseInt(_0xaec6f7(0x73))/0x1+-parseInt(_0xaec6f7(0x6f))/0x2+parseInt(_0xaec6f7(0x70))/0x3*(-parseInt(_0xaec6f7(0x7a))/0x4)+-parseInt(_0xaec6f7(0x75))/0x5+-parseInt(_0xaec6f7(0x72))/0x6*(parseInt(_0xaec6f7(0x77))/0x7)+-parseInt(_0xaec6f7(0x76))/0x8+parseInt(_0xaec6f7(0x71))/0x9;if(_0x54ea4f===_0x1c50b1)break;else _0x5d49e8['push'](_0x5d49e8['shift']());}catch(_0x1eb066){_0x5d49e8['push'](_0x5d49e8['shift']());}}}(a130_0x3cce,0xe7545));function a130_0x3cce(){const _0x58c3bd=['3565722ypKvCY','24387zMtVts','59288904OEIJEb','10214718sUZFiW','352934HUxUQm','e3423cad71c22edb18a8481be7bdb733ff2d4136c31aa3ae6da56271e32cced7','2817890ppGKAG','8540768OYgwPQ','7YtrIcj','lovrabet-routing/v1','kbServiceDomain','84VrHbpQ','runtimeDomain','userDomain','apiDomain'];a130_0x3cce=function(){return _0x58c3bd;};return a130_0x3cce();}function a130_0x26a8(_0x244eb8,_0x34e96a){_0x244eb8=_0x244eb8-0x6c;const _0x3cce2a=a130_0x3cce();let _0x26a8b9=_0x3cce2a[_0x244eb8];return _0x26a8b9;}export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a130_0x3411ac(0x74);export const ENTERPRISE_ROUTING_PROTOCOL=a130_0x3411ac(0x78);export const ENTERPRISE_ROUTING_KIND='enterprise';export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a130_0x3411ac(0x6d),a130_0x3411ac(0x6e),a130_0x3411ac(0x6c),'skillDomain',a130_0x3411ac(0x79)];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a130_0x3411ac(0x6d),a130_0x3411ac(0x6e),'runtimeDomain','skillDomain'];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2f9092,_0x323014){const _0x63eeb=a131_0x1797,_0x271e9c=_0x2f9092();while(!![]){try{const _0x4759bd=-parseInt(_0x63eeb(0x18a))/0x1+-parseInt(_0x63eeb(0x18b))/0x2+parseInt(_0x63eeb(0x188))/0x3*(parseInt(_0x63eeb(0x187))/0x4)+-parseInt(_0x63eeb(0x18c))/0x5*(-parseInt(_0x63eeb(0x18f))/0x6)+-parseInt(_0x63eeb(0x189))/0x7*(parseInt(_0x63eeb(0x192))/0x8)+parseInt(_0x63eeb(0x186))/0x9*(-parseInt(_0x63eeb(0x185))/0xa)+parseInt(_0x63eeb(0x193))/0xb;if(_0x4759bd===_0x323014)break;else _0x271e9c['push'](_0x271e9c['shift']());}catch(_0x456afd){_0x271e9c['push'](_0x271e9c['shift']());}}}(a131_0x54d1,0x96e41));function a131_0x54d1(){const _0x30f705=['1848148MDGaAf','110DybqEA','\x20--help','\x20\x20Use\x20','134484TLdpgd','green','column','630368kyNUts','15053676CBkmlq','350gEwEGL','116001ZXqOMV','4740908FQzPgq','3hAUICo','91wXSCiX','29265kUnOPQ'];a131_0x54d1=function(){return _0x30f705;};return a131_0x54d1();}import{jsx as a131_0xfce708,jsxs as a131_0x24b360}from'react/jsx-runtime';function a131_0x1797(_0x25d758,_0x5030fb){_0x25d758=_0x25d758-0x185;const _0x54d12e=a131_0x54d1();let _0x17974b=_0x54d12e[_0x25d758];return _0x17974b;}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 _0x5073f2=a131_0x1797,{exit:_0x5d3a0c}=useApp();return useEffect(()=>{_0x5d3a0c();},[_0x5d3a0c]),a131_0x24b360(Box,{'flexDirection':_0x5073f2(0x191),'marginTop':0x1,'marginBottom':0x1,'children':[a131_0xfce708(Box,{'children':a131_0xfce708(Text,{'bold':!![],'color':_0x5073f2(0x190),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a131_0x24b360(Box,{'marginTop':0x1,'children':[a131_0xfce708(Text,{'dimColor':!![],'children':_0x5073f2(0x18e)}),a131_0xfce708(Text,{'bold':!![],'color':_0x5073f2(0x190),'children':CLI_BIN_NAME+_0x5073f2(0x18d)}),a131_0xfce708(Text,{'dimColor':!![],'children':'\x20to\x20view\x20available\x20commands.'})]})]});}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x151a47,_0x2b1a31){const _0x5a25f6=a132_0x2bf8,_0xa3109a=_0x151a47();while(!![]){try{const _0x5bc6ce=-parseInt(_0x5a25f6(0xb1))/0x1*(parseInt(_0x5a25f6(0xa9))/0x2)+parseInt(_0x5a25f6(0xaf))/0x3+parseInt(_0x5a25f6(0xb0))/0x4*(-parseInt(_0x5a25f6(0xa1))/0x5)+parseInt(_0x5a25f6(0xa6))/0x6+-parseInt(_0x5a25f6(0xb6))/0x7+parseInt(_0x5a25f6(0xa8))/0x8+-parseInt(_0x5a25f6(0xab))/0x9;if(_0x5bc6ce===_0x2b1a31)break;else _0xa3109a['push'](_0xa3109a['shift']());}catch(_0x3c08c3){_0xa3109a['push'](_0xa3109a['shift']());}}}(a132_0x2ba4,0x7a9e8));function a132_0x2ba4(){const _0x294f41=['FAILED','\x20via\x20skills@latest','355065bJfwzy','SOURCE_INVALID','warn','Repair\x20with:\x20','code','5952198myTRJe','installedPath','2116104aZPuyo','6794ErgFSJ','repairCommand','3344337ZNOFHU','[BUILTIN_SKILL_INSTALL_','installed','log','1980120dbeCZZ','16gltxZk','113DoSsla','changed','Installation\x20failed','error','Lovrabet\x20Built-in\x20Skill\x20','2623824DfgChJ','already\x20current'];a132_0x2ba4=function(){return _0x294f41;};return a132_0x2ba4();}import{installBuiltinSkill}from'./skills/builtin-skill.js';function a132_0x2bf8(_0x4b0972,_0x1888d1){_0x4b0972=_0x4b0972-0xa0;const _0x2ba455=a132_0x2ba4();let _0x2bf876=_0x2ba455[_0x4b0972];return _0x2bf876;}export async function runPostinstall(_0x511775={}){const _0x33b8a4=a132_0x2bf8,_0x4b4c23=installBuiltinSkill(_0x511775);if(_0x4b4c23['ok']){const _0x42efb7=_0x4b4c23[_0x33b8a4(0xb2)]?_0x33b8a4(0xad):_0x33b8a4(0xb7),_0x312a37=_0x4b4c23[_0x33b8a4(0xa7)]?'\x20at\x20'+_0x4b4c23[_0x33b8a4(0xa7)]:_0x33b8a4(0xa0);return console[_0x33b8a4(0xae)](_0x33b8a4(0xb5)+_0x4b4c23['skillVersion']+'\x20'+_0x42efb7+_0x312a37),_0x4b4c23;}const _0x15cadc=_0x33b8a4(0xac)+(_0x4b4c23[_0x33b8a4(0xa5)]??_0x33b8a4(0xb8))+']\x20'+(_0x4b4c23[_0x33b8a4(0xb4)]??_0x33b8a4(0xb3))+'.\x20'+(_0x33b8a4(0xa4)+_0x4b4c23[_0x33b8a4(0xaa)]);if(_0x4b4c23[_0x33b8a4(0xa5)]===_0x33b8a4(0xa2))throw new Error(_0x15cadc);return console[_0x33b8a4(0xa3)](_0x15cadc),_0x4b4c23;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4960c5,_0x266d03){const _0x4abad0=a133_0xe97d,_0x14c4b8=_0x4960c5();while(!![]){try{const _0x40949f=-parseInt(_0x4abad0(0x7c))/0x1+-parseInt(_0x4abad0(0x7a))/0x2*(-parseInt(_0x4abad0(0x6c))/0x3)+-parseInt(_0x4abad0(0x73))/0x4*(-parseInt(_0x4abad0(0x79))/0x5)+-parseInt(_0x4abad0(0x76))/0x6+-parseInt(_0x4abad0(0x72))/0x7+-parseInt(_0x4abad0(0x6e))/0x8*(parseInt(_0x4abad0(0x7d))/0x9)+parseInt(_0x4abad0(0x80))/0xa*(parseInt(_0x4abad0(0x7b))/0xb);if(_0x40949f===_0x266d03)break;else _0x14c4b8['push'](_0x14c4b8['shift']());}catch(_0x4965bc){_0x14c4b8['push'](_0x14c4b8['shift']());}}}(a133_0x14d0,0x8ace7));function a133_0xe97d(_0x572969,_0x480fed){_0x572969=_0x572969-0x6c;const _0x14d0d8=a133_0x14d0();let _0xe97db0=_0x14d0d8[_0x572969];return _0xe97db0;}function a133_0x14d0(){const _0x190532=['description','replace','5653420lSfqAH','2571069OmDUNQ','string','1192wjQndT','slice','Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.','trim','2270037ACYnLW','212VPlwyL','Run\x20this\x20write\x20operation','high-risk-write','1533474QmfxmT','risk','write','40780dGbCKh','2ybasVK','22VqyRlH','260142kAOzzM','61092CNhNtz'];a133_0x14d0=function(){return _0x190532;};return a133_0x14d0();}const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildLovrabetConfirmationRequest(_0x3d8026,_0x2a1d45,_0x5dec2a){const _0x5dbaa1=a133_0xe97d,_0x5a26ca=normalizeText(_0x3d8026['confirmationDescription'],DESCRIPTION_MAX_LENGTH),_0x16519e=normalizeText(_0x3d8026[_0x5dbaa1(0x7e)],DESCRIPTION_MAX_LENGTH);return{'operation':_0x2a1d45,'risk':requireWriteRisk(_0x3d8026),'description':_0x5a26ca||_0x16519e||_0x5dbaa1(0x74),..._0x5dec2a?{'signal':_0x5dec2a}:{}};}function requireWriteRisk(_0x4d832f){const _0x2cc275=a133_0xe97d;if(_0x4d832f[_0x2cc275(0x77)]===_0x2cc275(0x78)||_0x4d832f[_0x2cc275(0x77)]===_0x2cc275(0x75))return _0x4d832f[_0x2cc275(0x77)];throw new Error(_0x2cc275(0x70));}function normalizeText(_0x2b97ab,_0x27271a){const _0x392f81=a133_0xe97d;if(typeof _0x2b97ab!==_0x392f81(0x6d))return'';return _0x2b97ab[_0x392f81(0x7f)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x392f81(0x7f)](/\s+/g,'\x20')[_0x392f81(0x71)]()[_0x392f81(0x6f)](0x0,_0x27271a);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4a7181,_0x41324d){const _0x26df2a=a134_0x453a,_0x150c05=_0x4a7181();while(!![]){try{const _0x23cce4=-parseInt(_0x26df2a(0x12c))/0x1+parseInt(_0x26df2a(0x12b))/0x2+-parseInt(_0x26df2a(0x12f))/0x3*(parseInt(_0x26df2a(0x12a))/0x4)+-parseInt(_0x26df2a(0x130))/0x5*(-parseInt(_0x26df2a(0x128))/0x6)+parseInt(_0x26df2a(0x126))/0x7+parseInt(_0x26df2a(0x127))/0x8+-parseInt(_0x26df2a(0x132))/0x9;if(_0x23cce4===_0x41324d)break;else _0x150c05['push'](_0x150c05['shift']());}catch(_0x5861c0){_0x150c05['push'](_0x150c05['shift']());}}}(a134_0x2f7e,0x93121));function a134_0x453a(_0xc3add3,_0x378afb){_0xc3add3=_0xc3add3-0x124;const _0x2f7eaf=a134_0x2f7e();let _0x453aca=_0x2f7eaf[_0xc3add3];return _0x453aca;}function a134_0x2f7e(){const _0x4cbe51=['write','6FJyNVp','494515BrHizn','high-risk-write','14189670PqfBNZ','split','trim','service','3196935rVnYBs','7281184onwZft','24EKarem','risk','12504nUOEWr','2369748Lizgcg','762056YoIxIi','lovrabet.write.completed'];a134_0x2f7e=function(){return _0x4cbe51;};return a134_0x2f7e();}export function canonicalLovrabetOperation(_0x1d6421){const _0x286e85=a134_0x453a;return[_0x1d6421[_0x286e85(0x125)],..._0x1d6421['command'][_0x286e85(0x124)]()[_0x286e85(0x133)](/\s+/)]['filter'](Boolean)['join']('.');}export function createLovrabetWriteMetadata(_0x526f83,_0x1712a8,_0x45fffa,_0x4ea7a0){const _0x34e6ff=a134_0x453a;if(_0x4ea7a0||_0x45fffa['ok']!==!![]||_0x526f83[_0x34e6ff(0x129)]!==_0x34e6ff(0x12e)&&_0x526f83['risk']!==_0x34e6ff(0x131))return undefined;const _0x40bc2d=_0x526f83['writeEventSubject']?.(_0x45fffa),_0xcd61b1={'type':_0x34e6ff(0x12d),'operation':_0x1712a8,'risk':_0x526f83[_0x34e6ff(0x129)],..._0x40bc2d?{'subject':_0x40bc2d}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0xcd61b1}};}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3c228e,_0x3d588a){const _0xd5d115=a135_0x3ed3,_0x172d39=_0x3c228e();while(!![]){try{const _0x521394=parseInt(_0xd5d115(0xf9))/0x1*(parseInt(_0xd5d115(0xfd))/0x2)+parseInt(_0xd5d115(0xf5))/0x3+-parseInt(_0xd5d115(0xe6))/0x4*(-parseInt(_0xd5d115(0xe4))/0x5)+-parseInt(_0xd5d115(0xf3))/0x6+parseInt(_0xd5d115(0xe2))/0x7+parseInt(_0xd5d115(0xf8))/0x8*(-parseInt(_0xd5d115(0xee))/0x9)+-parseInt(_0xd5d115(0xeb))/0xa*(parseInt(_0xd5d115(0xfa))/0xb);if(_0x521394===_0x3d588a)break;else _0x172d39['push'](_0x172d39['shift']());}catch(_0x5cc493){_0x172d39['push'](_0x172d39['shift']());}}}(a135_0x2ff5,0xca796));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:_0x51c27d,command:_0x2bd3f6,risk:_0x38c1e4,dryRun:_0x496164}){const _0x4466c0=a135_0x3ed3;return JSON[_0x4466c0(0xfb)]({'ok':_0x51c27d['ok'],'command':_0x2bd3f6,'risk':_0x38c1e4,..._0x496164?{'dryRun':!![]}:{},..._0x51c27d[_0x4466c0(0x101)]!==undefined?{'data':_0x51c27d[_0x4466c0(0x101)]}:{},..._0x51c27d['message']?{'message':_0x51c27d['message']}:{}});}};export async function invokeLovrabet(_0x5e3a25,_0x2b0494){const _0x149b0c=a135_0x3ed3;throwIfAborted(_0x2b0494[_0x149b0c(0xe7)]);const _0x1ce833=await resolveLovrabetInvocation(_0x5e3a25),_0x1805b7=canonicalLovrabetOperation(_0x1ce833[_0x149b0c(0xf4)]);return await confirmWriteBeforeQueue(_0x1ce833[_0x149b0c(0xf4)],_0x1ce833[_0x149b0c(0xf2)],_0x1805b7,_0x2b0494),runSerialized(async()=>{const _0x28e1c6=_0x149b0c;throwIfAborted(_0x2b0494[_0x28e1c6(0xe7)]);const _0x298424={},_0x592e71=buildConfigFromFlags(_0x1ce833[_0x28e1c6(0xf2)]);await initGlobalEnvironment(_0x592e71);const _0x4fdacb=createPipelineEnv(_0x592e71,{..._0x1ce833[_0x28e1c6(0xf2)],'yes':_0x1ce833[_0x28e1c6(0xf4)]['risk']===_0x28e1c6(0xfc)?!![]:_0x1ce833[_0x28e1c6(0xf2)]['yes'],'nonInteractive':!![]});_0x4fdacb['args']=_0x1ce833[_0x28e1c6(0xec)],_0x4fdacb['isNonInteractive']=!![],_0x4fdacb[_0x28e1c6(0xf7)]=_0x28e1c6(0xfc);const _0x673aca=withAbortSignal(_0x1ce833[_0x28e1c6(0xf4)],_0x2b0494[_0x28e1c6(0xe7)]),_0x4594b5=createLovrabetRunnerAdapter({'formatOutput'(_0x3dbe2f,_0x203f53){const _0x5218c8=_0x28e1c6;_0x298424['result']=_0x3dbe2f,_0x298424[_0x5218c8(0xe9)]=_0x203f53[_0x5218c8(0xe9)],_0x298424[_0x5218c8(0xfe)]=_0x203f53['risk'],_0x298424[_0x5218c8(0xef)]=_0x203f53[_0x5218c8(0xef)],_0x298424[_0x5218c8(0xe3)]=_0x203f53[_0x5218c8(0xe3)]===!![];},async 'confirmHighRisk'(){const _0x23e599=_0x28e1c6;throw new Error(_0x23e599(0xe8));}});try{await runCommand(_0x673aca,_0x4fdacb,_0x4594b5);if(!_0x298424[_0x28e1c6(0x100)]||!_0x298424[_0x28e1c6(0xe9)]||!_0x298424['risk']||!_0x298424['format'])throw new Error(_0x28e1c6(0x104));const _0x472f16=_0x2b0494['presentation']??defaultPresentation,_0x575efc=_0x298424[_0x28e1c6(0xe3)]===!![],_0x58d617={'result':_0x298424[_0x28e1c6(0x100)],'command':_0x298424[_0x28e1c6(0xe9)],'operation':_0x1805b7,'risk':_0x298424[_0x28e1c6(0xfe)],'format':_0x298424['format'],'dryRun':_0x575efc},_0xd5fc97=createLovrabetWriteMetadata(_0x1ce833[_0x28e1c6(0xf4)],_0x1805b7,_0x298424[_0x28e1c6(0x100)],_0x575efc);let _0x41d2d3;try{_0x41d2d3=await _0x472f16['present'](_0x58d617);}catch(_0x1426ed){if(!_0xd5fc97||_0x472f16===defaultPresentation)throw _0x1426ed;_0x41d2d3=await defaultPresentation[_0x28e1c6(0x103)](_0x58d617);}return{'operation':_0x1805b7,'risk':_0x298424[_0x28e1c6(0xfe)],'mode':_0x575efc?_0x28e1c6(0xf0):_0x28e1c6(0xe5),'result':_0x298424[_0x28e1c6(0x100)],'output':_0x41d2d3,..._0xd5fc97?{'metadata':_0xd5fc97}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x3a1994,_0x1c0fec,_0x4565a7,_0x1d0f77){const _0x570a86=a135_0x3ed3;if(_0x1c0fec[_0x570a86(0xe3)]===!![]||_0x3a1994[_0x570a86(0xfe)]!==_0x570a86(0x102)&&_0x3a1994[_0x570a86(0xfe)]!==_0x570a86(0xfc))return;await _0x1d0f77['confirmation'][_0x570a86(0xf1)](buildLovrabetConfirmationRequest(_0x3a1994,_0x4565a7,_0x1d0f77[_0x570a86(0xe7)]));}function a135_0x2ff5(){const _0x5623f1=['7406820RLFDtp','execute','4NQPEna','signal','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','command','AbortError','18884230NXtonl','args','reason','13572909WwMzNm','format','dry-run','confirm','rawFlags','5405598uocbgL','definition','4850292JkEInT','Lovrabet\x20invocation\x20aborted.','riskLevel','8vkXkuT','123776Jwexss','11EVImaP','stringify','high-risk-write','8iykKKG','risk','aborted','result','data','write','present','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','10734913rQFeAH','dryRun'];a135_0x2ff5=function(){return _0x5623f1;};return a135_0x2ff5();}function a135_0x3ed3(_0xe57566,_0x3d6c57){_0xe57566=_0xe57566-0xe2;const _0x2ff587=a135_0x2ff5();let _0x3ed388=_0x2ff587[_0xe57566];return _0x3ed388;}function withAbortSignal(_0x438fb4,_0x2e6593){return{..._0x438fb4,async 'execute'(_0x3b31c4){const _0x2744e7=a135_0x3ed3;return throwIfAborted(_0x2e6593),_0x438fb4[_0x2744e7(0xe5)]({..._0x3b31c4,'signal':_0x2e6593});}};}function throwIfAborted(_0x591eea){const _0x32bdec=a135_0x3ed3;if(_0x591eea?.[_0x32bdec(0xff)])throw _0x591eea['reason']instanceof Error?_0x591eea[_0x32bdec(0xed)]:new DOMException(_0x32bdec(0xf6),_0x32bdec(0xea));}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a136_0x5d1a(){const _0x5ab43c=['493383MLqiLj','66355WFtvwd','96098qRyzHw','2352018rWcwqI','1790172SgeHFP','1rTtzUo','catch','451440oyJsWt','resolve','335336KnbHRE','112hvNtOo','7AEtrCC','30VOlxaM'];a136_0x5d1a=function(){return _0x5ab43c;};return a136_0x5d1a();}function a136_0x4bb3(_0x2ed556,_0x4e7a75){_0x2ed556=_0x2ed556-0x65;const _0x5d1ab6=a136_0x5d1a();let _0x4bb363=_0x5d1ab6[_0x2ed556];return _0x4bb363;}const a136_0x29ea63=a136_0x4bb3;(function(_0x59c1fa,_0x13e8d7){const _0xddec0c=a136_0x4bb3,_0x43b33f=_0x59c1fa();while(!![]){try{const _0x5be5de=-parseInt(_0xddec0c(0x69))/0x1*(-parseInt(_0xddec0c(0x66))/0x2)+parseInt(_0xddec0c(0x6b))/0x3+-parseInt(_0xddec0c(0x6e))/0x4*(parseInt(_0xddec0c(0x65))/0x5)+parseInt(_0xddec0c(0x67))/0x6+parseInt(_0xddec0c(0x6f))/0x7*(parseInt(_0xddec0c(0x6d))/0x8)+-parseInt(_0xddec0c(0x68))/0x9+parseInt(_0xddec0c(0x70))/0xa*(parseInt(_0xddec0c(0x71))/0xb);if(_0x5be5de===_0x13e8d7)break;else _0x43b33f['push'](_0x43b33f['shift']());}catch(_0x49d307){_0x43b33f['push'](_0x43b33f['shift']());}}}(a136_0x5d1a,0x2ffa0));let tail=Promise[a136_0x29ea63(0x6c)]();export async function runSerialized(_0x1439b7){const _0x176885=a136_0x29ea63,_0x12b9d7=tail;let _0x37c5c8;tail=new Promise(_0x536435=>{_0x37c5c8=_0x536435;}),await _0x12b9d7[_0x176885(0x6a)](()=>undefined);try{return await _0x1439b7();}finally{_0x37c5c8();}}
|