@lovrabet/lovrabet-cli 2.3.1 → 2.3.2-beta.2
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 +10 -8
- 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/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.d.ts +1 -2
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.d.ts +0 -3
- 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.d.ts +2 -0
- 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.d.ts +6 -14
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.d.ts +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.d.ts +0 -3
- 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 +5 -10
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.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/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.d.ts +1 -5
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.d.ts +3 -7
- 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/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/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 -1
- package/skills/lovrabet/SKILL.md +4 -4
- package/skills/lovrabet/guides/role-and-permission-workflow.md +6 -4
- package/skills/lovrabet/references/lovrabet-config-commands.md +7 -11
- package/skills/lovrabet/references/lovrabet-config.md +2 -3
- package/skills/lovrabet/references/lovrabet-doctor.md +1 -1
- package/skills/lovrabet/references/lovrabet-kb-workflow.md +1 -1
- package/skills/lovrabet/references/lovrabet-notification-config-list.md +2 -8
- package/skills/lovrabet.manifest.json +3 -3
- package/lib/utils/platform.d.ts +0 -17
- package/lib/utils/platform.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a105_0x2799c7=a105_0x4865;(function(_0x5d7c8d,_0x45c0f1){const _0x1ea699=a105_0x4865,_0x26bfa1=_0x5d7c8d();while(!![]){try{const _0x1eedbf=parseInt(_0x1ea699(0x197))/0x1+-parseInt(_0x1ea699(0x16d))/0x2+-parseInt(_0x1ea699(0x19a))/0x3+-parseInt(_0x1ea699(0x176))/0x4+parseInt(_0x1ea699(0x162))/0x5+-parseInt(_0x1ea699(0x155))/0x6+parseInt(_0x1ea699(0x18b))/0x7;if(_0x1eedbf===_0x45c0f1)break;else _0x26bfa1['push'](_0x26bfa1['shift']());}catch(_0x2d67d7){_0x26bfa1['push'](_0x26bfa1['shift']());}}}(a105_0x4781,0x7b661));import{getRuntimeDomain}from'../constant/domain.js';import{CliError,CliErrors}from'../errors.js';const RESPONSE_KEYS=[a105_0x2799c7(0x18e),a105_0x2799c7(0x19f),a105_0x2799c7(0x194),a105_0x2799c7(0x156),a105_0x2799c7(0x190),a105_0x2799c7(0x185)],HIT_KEYS=[a105_0x2799c7(0x18d),a105_0x2799c7(0x193),a105_0x2799c7(0x17a),a105_0x2799c7(0x177),a105_0x2799c7(0x198),'text',a105_0x2799c7(0x15c),a105_0x2799c7(0x166),a105_0x2799c7(0x172),a105_0x2799c7(0x157),'scoreKind'];export async function searchRuntimeKnowledge(_0x4627c1){const _0x419aae=a105_0x2799c7,_0x214298=_0x4627c1[_0x419aae(0x18f)][_0x419aae(0x169)](),_0x40adb=_0x4627c1[_0x419aae(0x188)]['trim']();if(!_0x214298)throw CliErrors['validation'](_0x419aae(0x19c));if(!_0x4627c1[_0x419aae(0x163)][_0x419aae(0x169)]())throw CliErrors[_0x419aae(0x16f)]();if(!_0x40adb)throw CliErrors[_0x419aae(0x152)](_0x419aae(0x17b));validateTopK(_0x4627c1['topK']);const _0x241b45=getRuntimeDomain()+_0x419aae(0x173);let _0x3eb64c;try{_0x3eb64c=await fetch(_0x241b45,{'method':_0x419aae(0x195),'headers':{'Content-Type':'application/json','X-User-AK':_0x4627c1[_0x419aae(0x163)],'X-Invoke-Source':_0x419aae(0x192)},'body':JSON[_0x419aae(0x15a)]({'appCode':_0x214298,'query':_0x40adb,..._0x4627c1[_0x419aae(0x17d)]!==undefined?{'topK':_0x4627c1['topK']}:{}}),'signal':_0x4627c1['signal']});}catch(_0x392603){if(_0x392603 instanceof CliError)throw _0x392603;if(_0x392603 instanceof Error&&_0x392603['name']===_0x419aae(0x18c))throw _0x392603;throw CliErrors[_0x419aae(0x18a)](_0x419aae(0x171));}if(!hasNoStore(_0x3eb64c[_0x419aae(0x16e)]))throw CliErrors['apiError'](_0x419aae(0x19b));if(_0x3eb64c[_0x419aae(0x15b)]===0x191)throw CliErrors[_0x419aae(0x16f)]();if(!_0x3eb64c['ok'])throw CliErrors[_0x419aae(0x16b)](_0x419aae(0x16a)+_0x3eb64c[_0x419aae(0x15b)]+').');if(!(_0x3eb64c[_0x419aae(0x16e)][_0x419aae(0x153)](_0x419aae(0x15d))??'')[_0x419aae(0x184)]()[_0x419aae(0x175)](_0x419aae(0x170)))throw CliErrors[_0x419aae(0x16b)](_0x419aae(0x187));let _0x161a53;try{_0x161a53=await _0x3eb64c[_0x419aae(0x15e)]();}catch{throw CliErrors['apiError'](_0x419aae(0x17e));}return parseRuntimeSearchResponse(readEnvelopeData(_0x161a53),_0x4627c1[_0x419aae(0x17d)]);}function a105_0x4781(){const _0x1e9dc6=['/client/knowledge-base/search','map','includes','3035688VmFELY','scope','Knowledge\x20search\x20topK\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.','response','chunkId','Knowledge\x20search\x20query\x20is\x20required.','test','topK','Runtime\x20knowledge\x20search\x20returned\x20invalid\x20JSON.','public','entries','Runtime\x20knowledge\x20search\x20returned\x20an\x20invalid\x20','runtime','length','toLowerCase','timingsMs','data','Runtime\x20knowledge\x20search\x20returned\x20a\x20non-JSON\x20content\x20type.','query','text','networkError','10348611Kiidep','AbortError','documentId','schemaVersion','appCode','strategyFingerprint','isSafeInteger','cli:lovrabet','revision','total','POST','response\x20envelope','841228EseSLI','title','string','1889652ZIkUmB','Runtime\x20knowledge\x20search\x20response\x20is\x20missing\x20Cache-Control:\x20no-store.','Knowledge\x20search\x20appCode\x20is\x20required.','score','company','profile','validation','get','split','4350558RYOTsf','hits','finalScore','isFinite','isArray','stringify','status','tags','content-type','json','scoreKind','some','personal','1839860vaVlvN','accessKey','number','success','rank','keys','sort','trim','Runtime\x20knowledge\x20search\x20failed\x20(HTTP\x20','apiError','no-store','136466gJlNeV','headers','authRequired','application/json','Runtime\x20knowledge\x20search\x20request\x20failed.','rawScore'];a105_0x4781=function(){return _0x1e9dc6;};return a105_0x4781();}function readEnvelopeData(_0x110e0e){const _0x4ccfbf=a105_0x2799c7,_0x577518=requireRecord(_0x110e0e,_0x4ccfbf(0x196));if(_0x577518[_0x4ccfbf(0x165)]===![])throw CliErrors['apiError']('Runtime\x20knowledge\x20search\x20failed.');if(!(_0x4ccfbf(0x186)in _0x577518))throw invalidContract('response\x20envelope');return _0x577518[_0x4ccfbf(0x186)];}function a105_0x4865(_0x403425,_0x30d25d){_0x403425=_0x403425-0x152;const _0x478136=a105_0x4781();let _0x4865e1=_0x478136[_0x403425];return _0x4865e1;}function validateTopK(_0x1b2da2){const _0x33b72c=a105_0x2799c7;if(_0x1b2da2!==undefined&&(!Number[_0x33b72c(0x191)](_0x1b2da2)||_0x1b2da2<0x1||_0x1b2da2>0x32))throw CliErrors[_0x33b72c(0x152)](_0x33b72c(0x178));}function hasNoStore(_0x4ee0f2){const _0x246aa8=a105_0x2799c7;return(_0x4ee0f2['get']('cache-control')??'')[_0x246aa8(0x154)](',')[_0x246aa8(0x160)](_0x4ed28c=>_0x4ed28c[_0x246aa8(0x169)]()[_0x246aa8(0x184)]()===_0x246aa8(0x16c));}function parseRuntimeSearchResponse(_0x7cbbfa,_0x2246af){const _0x3ee987=a105_0x2799c7,_0x4776e8=requireExactRecord(_0x7cbbfa,RESPONSE_KEYS,_0x3ee987(0x179));if(_0x4776e8[_0x3ee987(0x18e)]!==0x2||_0x4776e8[_0x3ee987(0x19f)]!==_0x3ee987(0x182))throw invalidContract(_0x3ee987(0x19f));if(!Array['isArray'](_0x4776e8['hits'])||_0x4776e8[_0x3ee987(0x156)][_0x3ee987(0x183)]>(_0x2246af??0x32))throw invalidContract(_0x3ee987(0x156));if(typeof _0x4776e8['strategyFingerprint']!==_0x3ee987(0x199)||!/^sha256:[0-9a-f]{64}$/[_0x3ee987(0x17c)](_0x4776e8[_0x3ee987(0x190)]))throw invalidContract('strategyFingerprint');const _0x58a02d=requireRecord(_0x4776e8[_0x3ee987(0x185)],_0x3ee987(0x185)),_0x85a321={};for(const [_0xf66d3a,_0x46269d]of Object[_0x3ee987(0x180)](_0x58a02d)){if(!/^[A-Za-z][A-Za-z0-9]*$/[_0x3ee987(0x17c)](_0xf66d3a)||typeof _0x46269d!==_0x3ee987(0x164)||!Number[_0x3ee987(0x158)](_0x46269d)||_0x46269d<0x0)throw invalidContract(_0x3ee987(0x185));_0x85a321[_0xf66d3a]=_0x46269d;}const _0xffa94d=_0x4776e8[_0x3ee987(0x156)][_0x3ee987(0x174)]((_0x1aa1e3,_0x2852c9)=>parseHit(_0x1aa1e3,_0x2852c9));if(!Number[_0x3ee987(0x191)](_0x4776e8['total'])||_0x4776e8[_0x3ee987(0x194)]!==_0xffa94d[_0x3ee987(0x183)])throw invalidContract(_0x3ee987(0x194));return{'schemaVersion':_0x4776e8['schemaVersion'],'profile':_0x4776e8[_0x3ee987(0x19f)],'total':_0x4776e8[_0x3ee987(0x194)],'strategyFingerprint':_0x4776e8[_0x3ee987(0x190)],'timingsMs':_0x85a321,'hits':_0xffa94d};}function parseHit(_0x146620,_0x1bd3d3){const _0x525251=a105_0x2799c7,_0x470832=requireExactRecord(_0x146620,HIT_KEYS,'hits['+_0x1bd3d3+']'),_0x4eef7f=_0x562a52=>{const _0x375178=a105_0x4865,_0x5633e3=_0x470832[_0x562a52];if(typeof _0x5633e3!==_0x375178(0x199)||!_0x5633e3)throw invalidContract(_0x562a52);return _0x5633e3;};if(!Number[_0x525251(0x191)](_0x470832[_0x525251(0x193)])||_0x470832[_0x525251(0x193)]<0x1)throw invalidContract('revision');if(_0x470832[_0x525251(0x177)]!==_0x525251(0x17f)&&_0x470832[_0x525251(0x177)]!==_0x525251(0x19e)&&_0x470832[_0x525251(0x177)]!==_0x525251(0x161))throw invalidContract(_0x525251(0x177));if(typeof _0x470832[_0x525251(0x198)]!==_0x525251(0x199)||typeof _0x470832[_0x525251(0x189)]!==_0x525251(0x199))throw invalidContract('text');if(!Array[_0x525251(0x159)](_0x470832[_0x525251(0x15c)])||_0x470832[_0x525251(0x15c)]['some'](_0x5b119d=>typeof _0x5b119d!=='string'))throw invalidContract('tags');if(!Number['isSafeInteger'](_0x470832[_0x525251(0x166)])||_0x470832[_0x525251(0x166)]!==_0x1bd3d3+0x1)throw invalidContract(_0x525251(0x166));if(!isFiniteNumber(_0x470832[_0x525251(0x172)])||!isFiniteNumber(_0x470832[_0x525251(0x157)]))throw invalidContract(_0x525251(0x19d));return{'documentId':_0x4eef7f('documentId'),'revision':_0x470832[_0x525251(0x193)],'chunkId':_0x4eef7f(_0x525251(0x17a)),'scope':_0x470832[_0x525251(0x177)],'title':_0x470832[_0x525251(0x198)],'text':_0x470832[_0x525251(0x189)],'tags':[..._0x470832[_0x525251(0x15c)]],'rank':_0x470832[_0x525251(0x166)],'rawScore':_0x470832['rawScore'],'finalScore':_0x470832[_0x525251(0x157)],'scoreKind':_0x4eef7f(_0x525251(0x15f))};}function requireExactRecord(_0x5c9d51,_0x150cd8,_0x4608aa){const _0x22261d=a105_0x2799c7,_0x23ab7d=requireRecord(_0x5c9d51,_0x4608aa),_0x21ab83=Object[_0x22261d(0x167)](_0x23ab7d)[_0x22261d(0x168)](),_0x8f31d5=[..._0x150cd8]['sort']();if(_0x21ab83['length']!==_0x8f31d5[_0x22261d(0x183)]||_0x21ab83['some']((_0x12695e,_0x543f5e)=>_0x12695e!==_0x8f31d5[_0x543f5e]))throw invalidContract(_0x4608aa);return _0x23ab7d;}function requireRecord(_0x1f8b5a,_0x3ac7f5){if(!_0x1f8b5a||typeof _0x1f8b5a!=='object'||Array['isArray'](_0x1f8b5a))throw invalidContract(_0x3ac7f5);return _0x1f8b5a;}function isFiniteNumber(_0x225ffa){const _0x324242=a105_0x2799c7;return typeof _0x225ffa===_0x324242(0x164)&&Number[_0x324242(0x158)](_0x225ffa);}function invalidContract(_0x1fa9ab){const _0x59aa0f=a105_0x2799c7;return CliErrors[_0x59aa0f(0x16b)](_0x59aa0f(0x181)+_0x1fa9ab+'\x20contract.');}
|
package/lib/core/sdk-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x150828,_0x5b101f){const _0x5d10e0=a106_0x3f23,_0x5392c5=_0x150828();while(!![]){try{const _0x4b6f51=parseInt(_0x5d10e0(0xda))/0x1+parseInt(_0x5d10e0(0xec))/0x2+parseInt(_0x5d10e0(0xf6))/0x3+parseInt(_0x5d10e0(0xee))/0x4+-parseInt(_0x5d10e0(0x101))/0x5*(parseInt(_0x5d10e0(0xe4))/0x6)+parseInt(_0x5d10e0(0xf9))/0x7*(parseInt(_0x5d10e0(0xfe))/0x8)+parseInt(_0x5d10e0(0xea))/0x9;if(_0x4b6f51===_0x5b101f)break;else _0x5392c5['push'](_0x5392c5['shift']());}catch(_0x384bdf){_0x5392c5['push'](_0x5392c5['shift']());}}}(a106_0x6a23,0x70503));function a106_0x3f23(_0x2ceb9f,_0x3a0d02){_0x2ceb9f=_0x2ceb9f-0xd9;const _0x6a23be=a106_0x6a23();let _0x3f23f4=_0x6a23be[_0x2ceb9f];return _0x3f23f4;}import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';import{installLosslessJsonResponseParser}from'../utils/lossless-json.js';function a106_0x6a23(){const _0x2a3f4b=['data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','appCode','data\x20aggregate\x20--params.aggregate[','\x22.\x20','update','execute','636WjhShC','isArray','invokeSource','delete','string','accessKey','5273055ymeWUp','dataset_','192752uaSGIE','models','1506676fxPPzR','trim','sql','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27\x20or\x20\x27{\x22id\x22:[1,2,3],\x22name\x22:\x22new\x22}\x27','validation','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.',']\x20must\x20be\x20an\x20object.','aggregate','243483VnaOLO','getOne',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','627963akiTlT','batchCreate','authMode','column','env','8hmYarF','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','bff','38555VPfXmL','object','47591eZQdyO','field'];a106_0x6a23=function(){return _0x2a3f4b;};return a106_0x6a23();}let _client,restoreResponseJsonParser;export function initSdkClient(_0x227278){const _0x438001=a106_0x3f23;restoreResponseJsonParser??=installLosslessJsonResponseParser();try{_client=createClient({'appCode':_0x227278[_0x438001(0xdf)],'env':_0x227278[_0x438001(0xfd)],'runtimeDomain':_0x227278['runtimeDomain'],'authMode':_0x227278[_0x438001(0xfb)],..._0x227278[_0x438001(0xe9)]?{'accessKey':_0x227278['accessKey']}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x438001(0xe6)]}}});}catch(_0x4859f6){clearSdkClient();throw _0x4859f6;}}export function clearSdkClient(){_client=undefined,restoreResponseJsonParser?.(),restoreResponseJsonParser=undefined;}function ensureClient(){const _0xfb52ed=a106_0x3f23;if(!_client)throw new Error(_0xfb52ed(0xf3));return _client;}function normalizeAggregateParams(_0x1048db){const _0x23810d=a106_0x3f23,_0x465939=_0x1048db['aggregate'];if(_0x465939===undefined)return _0x1048db;if(!Array['isArray'](_0x465939))throw CliErrors[_0x23810d(0xf2)](_0x23810d(0xdc));return{..._0x1048db,'aggregate':_0x465939['map']((_0x546384,_0x3535c1)=>{const _0x51ac25=_0x23810d;if(!_0x546384||typeof _0x546384!==_0x51ac25(0xd9)||Array[_0x51ac25(0xe5)](_0x546384))throw CliErrors[_0x51ac25(0xf2)](_0x51ac25(0xe0)+_0x3535c1+_0x51ac25(0xf4));const _0x3b954d=_0x546384[_0x51ac25(0xfc)]??_0x546384[_0x51ac25(0xdb)];if(typeof _0x3b954d!==_0x51ac25(0xe8)||_0x3b954d[_0x51ac25(0xef)]()==='')throw CliErrors['validation'](_0x51ac25(0xe0)+_0x3535c1+_0x51ac25(0xf8));const _0x4a0384={..._0x546384,'column':_0x3b954d};return delete _0x4a0384[_0x51ac25(0xdb)],_0x4a0384;})};}export async function executeData(_0x38753e,_0xa11130,_0x33b64c){const _0x4937e2=a106_0x3f23,_0x4a9920=ensureClient(),_0xc73462=_0x4937e2(0xeb)+_0x38753e,_0x4c8129=_0x4a9920[_0x4937e2(0xed)][_0xc73462];if(!_0x4c8129||typeof _0x4c8129[_0xa11130]!=='function')throw new Error(_0x4937e2(0xff)+_0xa11130+_0x4937e2(0xe1)+_0x4937e2(0xdd));if(_0xa11130===_0x4937e2(0xfa))return _0x4c8129['batchCreate'](parseBatchCreateItemsFromParams(_0x33b64c));const _0x2fc106=_0x33b64c!==undefined&&_0x33b64c!==null&&!Array[_0x4937e2(0xe5)](_0x33b64c)?_0x33b64c:{};switch(_0xa11130){case _0x4937e2(0xf7):{const _0x33c52a=_0x2fc106['id'];if(_0x33c52a===undefined||_0x33c52a===null)throw new Error(_0x4937e2(0xde));return _0x4c8129[_0x4937e2(0xf7)](_0x33c52a);}case'update':{const {id:_0x1689f4,..._0x273485}=_0x2fc106;if(_0x1689f4===undefined||_0x1689f4===null)throw new Error(_0x4937e2(0xf1));return _0x4c8129[_0x4937e2(0xe2)](_0x1689f4,_0x273485);}case _0x4937e2(0xe7):{const _0x22376b=_0x2fc106['id'];if(_0x22376b===undefined||_0x22376b===null)throw new Error('delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0x4c8129['delete'](_0x22376b);}case'aggregate':return _0x4c8129[_0x4937e2(0xf5)](normalizeAggregateParams(_0x2fc106));default:return _0x4c8129[_0xa11130](_0x2fc106);}}export async function executeSdkSql(_0x40598a,_0x4a11de){const _0x307d11=a106_0x3f23,_0xb079ba=ensureClient();return _0xb079ba[_0x307d11(0xf0)][_0x307d11(0xe3)]({'sqlCode':_0x40598a,'params':_0x4a11de});}export async function executeSdkBff(_0x534822,_0x127a0f){const _0x5982e8=a106_0x3f23,_0x23dc31=ensureClient();return _0x23dc31[_0x5982e8(0x100)][_0x5982e8(0xe3)]({'scriptName':_0x534822,'params':_0x127a0f});}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a107_0x5bba88=a107_0x2e96;function a107_0x2e96(_0x505c94,_0x41aad0){_0x505c94=_0x505c94-0xfd;const _0x28d0d5=a107_0x28d0();let _0x2e96c5=_0x28d0d5[_0x505c94];return _0x2e96c5;}(function(_0x190e27,_0x26d264){const _0x112410=a107_0x2e96,_0x1c4d21=_0x190e27();while(!![]){try{const _0x591055=-parseInt(_0x112410(0x105))/0x1*(-parseInt(_0x112410(0xff))/0x2)+parseInt(_0x112410(0x103))/0x3*(-parseInt(_0x112410(0x10c))/0x4)+-parseInt(_0x112410(0x10a))/0x5+-parseInt(_0x112410(0x10b))/0x6*(-parseInt(_0x112410(0xfd))/0x7)+-parseInt(_0x112410(0x102))/0x8*(-parseInt(_0x112410(0x109))/0x9)+parseInt(_0x112410(0x112))/0xa*(parseInt(_0x112410(0x108))/0xb)+-parseInt(_0x112410(0x104))/0xc;if(_0x591055===_0x26d264)break;else _0x1c4d21['push'](_0x1c4d21['shift']());}catch(_0x577542){_0x1c4d21['push'](_0x1c4d21['shift']());}}}(a107_0x28d0,0x67d2b));function a107_0x28d0(){const _0x57bdf4=['88maJJap','`\x20cannot\x20run\x20through\x20the\x20shell\x20CLI\x20because\x20this\x20execution\x20host\x20delegates\x20Lovrabet\x20writes\x20to\x20the\x20native\x20tool.','Command\x20`','Configure\x20accessKey\x20in\x20','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','Use\x20the\x20native\x20`lovrabet`\x20tool\x20with\x20argv\x20containing\x20only\x20the\x20tokens\x20after\x20`lovrabet`;\x20do\x20not\x20raise\x20riskLevel\x20or\x20retry\x20through\x20bash.','112490HpLBNl','2709IhaTIz','\x20file.','592842caeXVu','\x20or\x20run\x20`','newConfigFileName','80008xYKEqq','429sxPATk','7744512eulASj','2eZALZP','\x20auth\x20login`.','Set\x20appcode\x20via\x20--appcode\x20or\x20','407PCAWFJ','27fVsbrg','3400330EBoSCG','11082UMyFnC'];a107_0x28d0=function(){return _0x57bdf4;};return a107_0x28d0();}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};const baseCliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a107_0x5bba88(0x10f)+PRODUCT_CONFIG[a107_0x5bba88(0x101)]+a107_0x5bba88(0x100)+CLI_BIN_NAME+a107_0x5bba88(0x106),'configMissingHint':a107_0x5bba88(0x107)+PRODUCT_CONFIG[a107_0x5bba88(0x101)]+'.','notInProjectHint':a107_0x5bba88(0x110)+PRODUCT_CONFIG[a107_0x5bba88(0x101)]+a107_0x5bba88(0xfe)});export const CliErrors={...baseCliErrors,'rateLimited':(_0x186a3f,_0x39c9bd)=>new CliError('rate_limited',0x2,_0x186a3f,_0x39c9bd),'nativeToolRequired':_0x18134d=>new CliError('native_tool_required',0x1,a107_0x5bba88(0x10e)+_0x18134d+a107_0x5bba88(0x10d),a107_0x5bba88(0x111))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x8c98f7,_0x114b6e){var _0x14abe9=a108_0x2d3f,_0x2bdada=_0x8c98f7();while(!![]){try{var _0x5879e7=parseInt(_0x14abe9(0x1d3))/0x1+parseInt(_0x14abe9(0x1d1))/0x2*(parseInt(_0x14abe9(0x1ce))/0x3)+-parseInt(_0x14abe9(0x1cc))/0x4+-parseInt(_0x14abe9(0x1cd))/0x5+parseInt(_0x14abe9(0x1cf))/0x6*(-parseInt(_0x14abe9(0x1cb))/0x7)+parseInt(_0x14abe9(0x1ca))/0x8+parseInt(_0x14abe9(0x1d0))/0x9*(-parseInt(_0x14abe9(0x1d2))/0xa);if(_0x5879e7===_0x114b6e)break;else _0x2bdada['push'](_0x2bdada['shift']());}catch(_0x177e63){_0x2bdada['push'](_0x2bdada['shift']());}}}(a108_0x49ac,0x73850));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a108_0x2d3f(_0x193d73,_0x13303f){_0x193d73=_0x193d73-0x1ca;var _0x49acf4=a108_0x49ac();var _0x2d3fc8=_0x49acf4[_0x193d73];return _0x2d3fc8;}import{buildAllFlags as a108_0x367260}from'@lovrabet/cli-framework';function a108_0x49ac(){var _0x23e0ff=['14sToEaS','145968NDjBoB','3202700AWgMba','3kZclad','41700bmpVaf','1179sdUyCz','129838PHkTfo','25230RJwwXF','581667hNeylA','6784216lllGgR'];a108_0x49ac=function(){return _0x23e0ff;};return a108_0x49ac();}export function buildAllFlags(_0x3d8015){return a108_0x367260(_0x3d8015,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
|
package/lib/framework/dryrun.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x539426,_0xbd875a){const _0x11cade=a109_0x4b3e,_0x1f7a1a=_0x539426();while(!![]){try{const _0xcf6729=parseInt(_0x11cade(0x76))/0x1+parseInt(_0x11cade(0x6c))/0x2*(-parseInt(_0x11cade(0x77))/0x3)+-parseInt(_0x11cade(0x72))/0x4+parseInt(_0x11cade(0x6d))/0x5*(parseInt(_0x11cade(0x70))/0x6)+parseInt(_0x11cade(0x75))/0x7*(-parseInt(_0x11cade(0x6e))/0x8)+parseInt(_0x11cade(0x6f))/0x9+parseInt(_0x11cade(0x74))/0xa;if(_0xcf6729===_0xbd875a)break;else _0x1f7a1a['push'](_0x1f7a1a['shift']());}catch(_0x28fe84){_0x1f7a1a['push'](_0x1f7a1a['shift']());}}}(a109_0x66e8,0x45247));function a109_0x66e8(){const _0x5d4bf1=['21765HowmDQ','40gwuAXM','2654226YBOMIy','306ekuNAt','description','1625424UooojW','body','2564970gjXNzy','15197cBDMAn','163737tGoFYG','33819RzMzkF','42wbNkoN'];a109_0x66e8=function(){return _0x5d4bf1;};return a109_0x66e8();}function a109_0x4b3e(_0x26705e,_0x5d5ccb){_0x26705e=_0x26705e-0x6c;const _0x66e843=a109_0x66e8();let _0x4b3e66=_0x66e843[_0x26705e];return _0x4b3e66;}export function dryRun(_0x26e57a,_0x53a484){const _0x5a3569={'method':_0x26e57a,'url':_0x53a484},_0xba6a9a={'body'(_0x1c0cd7){const _0x4abe19=a109_0x4b3e;return _0x5a3569[_0x4abe19(0x73)]=_0x1c0cd7,_0xba6a9a;},'description'(_0x35821b){const _0x5855de=a109_0x4b3e;return _0x5a3569[_0x5855de(0x71)]=_0x35821b,_0xba6a9a;},'build'(){return{..._0x5a3569};}};return _0xba6a9a;}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a110_0x544437=a110_0x2485;(function(_0xb5facb,_0x42f9af){const _0xfa52fd=a110_0x2485,_0x9dd0d5=_0xb5facb();while(!![]){try{const _0x5ac84e=parseInt(_0xfa52fd(0x7e))/0x1+parseInt(_0xfa52fd(0x82))/0x2*(parseInt(_0xfa52fd(0x7d))/0x3)+-parseInt(_0xfa52fd(0x7b))/0x4*(-parseInt(_0xfa52fd(0x7f))/0x5)+-parseInt(_0xfa52fd(0x80))/0x6*(parseInt(_0xfa52fd(0x84))/0x7)+-parseInt(_0xfa52fd(0x78))/0x8*(parseInt(_0xfa52fd(0x7a))/0x9)+parseInt(_0xfa52fd(0x7c))/0xa+-parseInt(_0xfa52fd(0x79))/0xb;if(_0x5ac84e===_0x42f9af)break;else _0x9dd0d5['push'](_0x9dd0d5['shift']());}catch(_0x20fb9a){_0x9dd0d5['push'](_0x9dd0d5['shift']());}}}(a110_0x8ed5,0xb97fe));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a110_0x8ed5(){const _0x4b84c3=['14vDbzIa','40272SVVPiZ','18691750gnHBCv','2619CkHgTX','4EwDBAx','10164690vPoCWC','1505919nCOWNQ','1334165axchGG','4156285AnaGQu','2291580uYOjJZ','parseFlags','6uiMRPb','validateFlags'];a110_0x8ed5=function(){return _0x4b84c3;};return a110_0x8ed5();}const helpers=createFlagHelpers(CliErrors);function a110_0x2485(_0x5bf201,_0x4016bd){_0x5bf201=_0x5bf201-0x78;const _0x8ed534=a110_0x8ed5();let _0x248560=_0x8ed534[_0x5bf201];return _0x248560;}export const parseFlags=helpers[a110_0x544437(0x81)];export const validateFlags=helpers[a110_0x544437(0x83)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x32bb52,_0x127ee6){const _0x51b463=a111_0x5287,_0x336131=_0x32bb52();while(!![]){try{const _0x28adab=parseInt(_0x51b463(0x9a))/0x1+-parseInt(_0x51b463(0x94))/0x2+parseInt(_0x51b463(0x9f))/0x3+parseInt(_0x51b463(0xa1))/0x4*(parseInt(_0x51b463(0x9c))/0x5)+-parseInt(_0x51b463(0x90))/0x6*(parseInt(_0x51b463(0xa2))/0x7)+-parseInt(_0x51b463(0x9d))/0x8+-parseInt(_0x51b463(0x95))/0x9*(parseInt(_0x51b463(0x92))/0xa);if(_0x28adab===_0x127ee6)break;else _0x336131['push'](_0x336131['shift']());}catch(_0x64b0d9){_0x336131['push'](_0x336131['shift']());}}}(a111_0x2a75,0x8bf83));function a111_0x2a75(){const _0x37a7bd=['55ancnfc','5340080PycMDU','Requires\x20appcode\x20(set\x20via\x20','3088056bZBVBb','\x20or\x20--appcode).','247264sohUru','98bsWKMa','314274zPKkYU','newConfigFileName','10LwIBsv','has','400848oIPdnw','4619817MSZspU','generateServiceHelp','map','filter','generateFullHelp','978540iYCIGb','service'];a111_0x2a75=function(){return _0x37a7bd;};return a111_0x2a75();}function a111_0x5287(_0x3df937,_0x3bf69d){_0x3df937=_0x3df937-0x90;const _0x2a75b9=a111_0x2a75();let _0x5287e9=_0x2a75b9[_0x3df937];return _0x5287e9;}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';import{getDynamicServiceDefinitions,getDynamicServiceEntry,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';function createGenerators(){const _0x404798=a111_0x5287;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries()),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x404798(0x9e)+PRODUCT_CONFIG[_0x404798(0x91)]+_0x404798(0xa0)});}export function generateCommandHelp(_0x50cbdc){return createGenerators()['generateCommandHelp'](_0x50cbdc);}export function generateServiceHelp(_0x4fc2b3){const _0xf90483=a111_0x5287;return createGenerators()[_0xf90483(0x96)](_0x4fc2b3);}export function generateFullHelp(){const _0x1cddb8=a111_0x5287;return createGenerators()[_0x1cddb8(0x99)]();}function getAnyServiceEntry(_0x1a5672){const _0x2f0a86=getServiceEntry(_0x1a5672);if(_0x2f0a86)return _0x2f0a86;try{return getDynamicServiceEntry(_0x1a5672);}catch{return undefined;}}function getAnyServiceDefinitions(_0xb90bce){const _0x1f9cc2=serviceGroups['get'](_0xb90bce);if(_0x1f9cc2)return _0x1f9cc2;try{return getDynamicServiceDefinitions(_0xb90bce);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x42fdc2=a111_0x5287,_0x3c9e17=new Set(serviceRegistry[_0x42fdc2(0x97)](_0x570c5f=>_0x570c5f['service']));try{return listDynamicServiceEntries()[_0x42fdc2(0x98)](_0x29a7ea=>!_0x3c9e17[_0x42fdc2(0x93)](_0x29a7ea[_0x42fdc2(0x9b)]));}catch{return[];}}
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x588ad,_0x226197){var _0x1ca3ec=a112_0x1316,_0x166c5f=_0x588ad();while(!![]){try{var _0x216dc4=parseInt(_0x1ca3ec(0x1c3))/0x1+parseInt(_0x1ca3ec(0x1c4))/0x2+-parseInt(_0x1ca3ec(0x1c2))/0x3*(-parseInt(_0x1ca3ec(0x1c0))/0x4)+-parseInt(_0x1ca3ec(0x1c5))/0x5+-parseInt(_0x1ca3ec(0x1bf))/0x6*(parseInt(_0x1ca3ec(0x1bd))/0x7)+parseInt(_0x1ca3ec(0x1c1))/0x8+parseInt(_0x1ca3ec(0x1be))/0x9*(parseInt(_0x1ca3ec(0x1bc))/0xa);if(_0x216dc4===_0x226197)break;else _0x166c5f['push'](_0x166c5f['shift']());}catch(_0x42c717){_0x166c5f['push'](_0x166c5f['shift']());}}}(a112_0x25e7,0x41de9));function a112_0x25e7(){var _0x265a65=['2770789RriCbZ','2277vXRATS','6mROtdX','812524HfkQpz','1354328VorVvd','6dIVVPr','306285FJCmze','227514TETjhH','1676400hOtnAq','210gTQpEI'];a112_0x25e7=function(){return _0x265a65;};return a112_0x25e7();}export{runCommand}from'../framework/runner.js';function a112_0x1316(_0x887dd2,_0x2f6689){_0x887dd2=_0x887dd2-0x1bc;var _0x25e7b5=a112_0x25e7();var _0x1316e4=_0x25e7b5[_0x887dd2];return _0x1316e4;}export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';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 a113_0x4480(_0x4b702c,_0x2d4b29){_0x4b702c=_0x4b702c-0xbc;const _0x12e78e=a113_0x12e7();let _0x448060=_0x12e78e[_0x4b702c];return _0x448060;}(function(_0x1b8e03,_0x5184ad){const _0x2b991a=a113_0x4480,_0x192e4e=_0x1b8e03();while(!![]){try{const _0x3b84bc=-parseInt(_0x2b991a(0xc8))/0x1*(-parseInt(_0x2b991a(0xc0))/0x2)+-parseInt(_0x2b991a(0xbc))/0x3+parseInt(_0x2b991a(0xc9))/0x4*(parseInt(_0x2b991a(0xc4))/0x5)+parseInt(_0x2b991a(0xc3))/0x6*(parseInt(_0x2b991a(0xbe))/0x7)+-parseInt(_0x2b991a(0xca))/0x8*(parseInt(_0x2b991a(0xcc))/0x9)+-parseInt(_0x2b991a(0xc7))/0xa+-parseInt(_0x2b991a(0xc2))/0xb*(-parseInt(_0x2b991a(0xbf))/0xc);if(_0x3b84bc===_0x5184ad)break;else _0x192e4e['push'](_0x192e4e['shift']());}catch(_0x4aa7de){_0x192e4e['push'](_0x192e4e['shift']());}}}(a113_0x12e7,0x8693c));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x13b998,_0xdc79bc){const _0x20ad88=a113_0x4480,_0x43acd6=_0x13b998[_0x20ad88(0xcd)],{_notice:_0x34c963,..._0x30881d}=_0x13b998;void _0x34c963,baseFormatOutput(_0x30881d,_0xdc79bc),_0xdc79bc[_0x20ad88(0xbd)]===_0x20ad88(0xcb)&&printPrettyNotice(_0x43acd6);}function printPrettyNotice(_0x2b07e7){const _0x32985e=a113_0x4480;if(!_0x2b07e7?.[_0x32985e(0xc1)])return;console[_0x32985e(0xc5)](_0x2b07e7[_0x32985e(0xc1)][_0x32985e(0xc6)]+'\x20('+_0x2b07e7['update']['url']+')');}function a113_0x12e7(){const _0x3c2f0e=['update','407eWDPJl','1086SLHInr','349935AUBEHV','error','message','10844190AYOGbq','887teizKY','20IfLAbk','127536JHGvoD','pretty','513movFkP','_notice','175374nWzjZa','format','6104OszPTW','567564BRFlDD','778cwSCUe'];a113_0x12e7=function(){return _0x3c2f0e;};return a113_0x12e7();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a114_0x587a(){const _0x3de1f5=['sticky','version','3786060RsMdlj','app','indexOf','1552239hmgMOQ','replace','1393360YsPwtt','length','toLowerCase','format','original','1135QcYIDx','dry-run','nonInteractive','dryRun','appcode','number','has','push','alias','type','slice','global','22746933EgoqaY','35YKcMfn','corrected','name','boolean','set','env','keys','string','get','14220XexIgU','help','add','5784KUVYHp','883349XNEORZ','non-interactive'];a114_0x587a=function(){return _0x3de1f5;};return a114_0x587a();}(function(_0x63b6af,_0x467fa8){const _0x43ed0d=a114_0x33df,_0x58277f=_0x63b6af();while(!![]){try{const _0x30a158=-parseInt(_0x43ed0d(0xc9))/0x1+parseInt(_0x43ed0d(0xc5))/0x2+-parseInt(_0x43ed0d(0xd0))/0x3+-parseInt(_0x43ed0d(0xcd))/0x4+parseInt(_0x43ed0d(0xd7))/0x5*(-parseInt(_0x43ed0d(0xc8))/0x6)+parseInt(_0x43ed0d(0xbc))/0x7*(parseInt(_0x43ed0d(0xd2))/0x8)+parseInt(_0x43ed0d(0xbb))/0x9;if(_0x30a158===_0x467fa8)break;else _0x58277f['push'](_0x58277f['shift']());}catch(_0x2bb237){_0x58277f['push'](_0x58277f['shift']());}}}(a114_0x587a,0xcce7c));export function toKebab(_0x128caa){const _0x3312f1=a114_0x33df;return _0x128caa[_0x3312f1(0xd1)](/_/g,'-')['replace'](/-([A-Z]+)/g,(_0x15c491,_0x338fa0)=>'-'+_0x338fa0[_0x3312f1(0xd4)]())[_0x3312f1(0xd1)](/([a-z0-9])([A-Z])/g,(_0x161545,_0x570e4f,_0x31b702)=>_0x570e4f+'-'+_0x31b702)[_0x3312f1(0xd4)]();}function buildKnownFlags(_0x2769b1){const _0x5ed3ea=a114_0x33df,_0x4280e4=new Set();for(const _0x30bc7f of _0x2769b1){_0x4280e4[_0x5ed3ea(0xc7)](_0x30bc7f[_0x5ed3ea(0xbe)]),_0x4280e4[_0x5ed3ea(0xc7)](toCamelCase(_0x30bc7f['name']));}for(const _0x34421b of[_0x5ed3ea(0xd8),_0x5ed3ea(0xda),'yes',_0x5ed3ea(0xd5)]){_0x4280e4[_0x5ed3ea(0xc7)](_0x34421b);}for(const _0x5a708a of[_0x5ed3ea(0xc6),_0x5ed3ea(0xc1),_0x5ed3ea(0xdb),_0x5ed3ea(0xce),_0x5ed3ea(0xd9),_0x5ed3ea(0xca),'ci',_0x5ed3ea(0xba),_0x5ed3ea(0xcc)]){_0x4280e4[_0x5ed3ea(0xc7)](_0x5a708a);}return _0x4280e4;}function buildFlagTypeMap(_0x3623dd){const _0x44ee8d=a114_0x33df,_0x4db6cb=new Map();for(const _0xd78bc4 of _0x3623dd){_0x4db6cb[_0x44ee8d(0xc0)](_0xd78bc4[_0x44ee8d(0xbe)],_0xd78bc4[_0x44ee8d(0xb8)]),_0x4db6cb['set'](toCamelCase(_0xd78bc4[_0x44ee8d(0xbe)]),_0xd78bc4['type']);}return _0x4db6cb;}function toCamelCase(_0x256a3c){return _0x256a3c['replace'](/-([a-z])/g,(_0x2d2ede,_0x4c46f7)=>_0x4c46f7['toUpperCase']());}function a114_0x33df(_0x232808,_0x3f4f9d){_0x232808=_0x232808-0xb6;const _0x587a21=a114_0x587a();let _0x33df35=_0x587a21[_0x232808];return _0x33df35;}function aliasHandler(_0x4c7a3e,_0x2997f7){const _0x5ecf58=a114_0x33df,_0x37c951=[];for(const _0x2f2296 of Object[_0x5ecf58(0xc2)](_0x4c7a3e)){if(_0x2997f7[_0x5ecf58(0xdd)](_0x2f2296))continue;const _0x52bc33=toKebab(_0x2f2296);_0x52bc33!==_0x2f2296&&_0x2997f7[_0x5ecf58(0xdd)](_0x52bc33)&&_0x37c951['push']({'original':_0x2f2296,'corrected':_0x52bc33,'handler':_0x5ecf58(0xb7)});}return _0x37c951;}function stickyHandler(_0x3a54dc,_0x109a65,_0x5ef353){const _0x12e1f2=a114_0x33df,_0x24455d=[];for(const [_0x135d46,_0x476dfb]of Object['entries'](_0x3a54dc)){if(_0x476dfb!==!![])continue;for(let _0x55f663=_0x135d46[_0x12e1f2(0xd3)]-0x1;_0x55f663>0x0;_0x55f663--){const _0x151215=_0x135d46[_0x12e1f2(0xb9)](0x0,_0x55f663),_0x4ab94e=_0x135d46[_0x12e1f2(0xb9)](_0x55f663),_0x51a412=toKebab(_0x151215),_0x15c4c8=toCamelCase(_0x151215),_0x30c69f=_0x109a65[_0x12e1f2(0xdd)](_0x151215)?_0x151215:_0x109a65['has'](_0x51a412)?_0x51a412:_0x109a65[_0x12e1f2(0xdd)](_0x15c4c8)?_0x15c4c8:null;if(!_0x30c69f)continue;const _0x4bde55=_0x5ef353[_0x12e1f2(0xc4)](_0x30c69f)??_0x12e1f2(0xc3);let _0xcc1ee8;if(_0x4bde55===_0x12e1f2(0xdc)){const _0x1ca682=Number(_0x4ab94e);if(isNaN(_0x1ca682)||_0x4ab94e==='')continue;_0xcc1ee8=_0x1ca682;}else{if(_0x4bde55===_0x12e1f2(0xbf))continue;else{if(_0x4ab94e==='')continue;_0xcc1ee8=_0x4ab94e;}}_0x24455d[_0x12e1f2(0xb6)]({'original':_0x135d46,'corrected':_0x30c69f+'='+_0xcc1ee8,'handler':_0x12e1f2(0xcb)});break;}}return _0x24455d;}export function correctFlags(_0x397d60,_0x3f1ac5){const _0x468ce7=a114_0x33df,_0x24b446=buildKnownFlags(_0x3f1ac5),_0x21bf2f=buildFlagTypeMap(_0x3f1ac5),_0x34c272=aliasHandler(_0x397d60,_0x24b446),_0x5aa181=stickyHandler(_0x397d60,_0x24b446,_0x21bf2f),_0x56ffeb=[..._0x34c272,..._0x5aa181];if(_0x56ffeb[_0x468ce7(0xd3)]===0x0)return{'flags':_0x397d60,'corrections':[]};const _0x133c99={..._0x397d60},_0x3fd321=new Set();for(const _0x500497 of _0x34c272){_0x133c99[_0x500497[_0x468ce7(0xbd)]]=_0x397d60[_0x500497[_0x468ce7(0xd6)]],_0x3fd321[_0x468ce7(0xc7)](_0x500497['original']);}for(const _0x3386e8 of _0x5aa181){const _0x4f2680=_0x3386e8[_0x468ce7(0xbd)][_0x468ce7(0xcf)]('='),_0x4bff28=_0x3386e8[_0x468ce7(0xbd)][_0x468ce7(0xb9)](0x0,_0x4f2680),_0xcef82f=_0x3386e8[_0x468ce7(0xbd)][_0x468ce7(0xb9)](_0x4f2680+0x1),_0x2ab6b0=_0x21bf2f[_0x468ce7(0xc4)](_0x4bff28)??_0x468ce7(0xc3);_0x2ab6b0===_0x468ce7(0xdc)?_0x133c99[_0x4bff28]=Number(_0xcef82f):_0x133c99[_0x4bff28]=_0xcef82f,_0x3fd321[_0x468ce7(0xc7)](_0x3386e8[_0x468ce7(0xd6)]);}for(const _0x260995 of _0x3fd321){delete _0x133c99[_0x260995];}return{'flags':_0x133c99,'corrections':_0x56ffeb};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a115_0x293e0e=a115_0x5385;(function(_0x1fdcfb,_0x449573){const _0x1cca45=a115_0x5385,_0x48ac0c=_0x1fdcfb();while(!![]){try{const _0x10668b=-parseInt(_0x1cca45(0x86))/0x1*(parseInt(_0x1cca45(0x9b))/0x2)+parseInt(_0x1cca45(0xa5))/0x3+-parseInt(_0x1cca45(0xa2))/0x4*(parseInt(_0x1cca45(0xa0))/0x5)+parseInt(_0x1cca45(0x89))/0x6*(-parseInt(_0x1cca45(0x9f))/0x7)+parseInt(_0x1cca45(0x9c))/0x8+parseInt(_0x1cca45(0x9e))/0x9+-parseInt(_0x1cca45(0x88))/0xa;if(_0x10668b===_0x449573)break;else _0x48ac0c['push'](_0x48ac0c['shift']());}catch(_0x5aebfe){_0x48ac0c['push'](_0x48ac0c['shift']());}}}(a115_0x49f0,0x51255));import{CliErrors}from'../errors.js';const RATE_LIMIT_ERROR_CODES=new Set([a115_0x293e0e(0xa1),'MAX_QPS_LIMIT',a115_0x293e0e(0x93)]);function nonEmptyString(_0x2637f9){const _0x1221ac=a115_0x293e0e;if(typeof _0x2637f9!=='string')return undefined;const _0x310fbc=_0x2637f9[_0x1221ac(0xa3)]();return _0x310fbc||undefined;}function a115_0x49f0(){const _0x535726=['number','681TidpSM','Request\x20rate\x20limit\x20exceeded.','6197300kIBAYY','18KSNOir','Wait\x20','test','retry-after','Retry\x20after\x20','object','retryAfterSeconds','get','isArray','errorCode','IP_RATE_LIMIT_EXCEEDED','isInteger','\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.','Retry\x20after\x20a\x20short\x20delay.','has','toUpperCase','entries','function','618SlnjNE','3243160ghWjIW','\x20seconds\x20before\x20retrying.','4956885eYngTW','159362RkSSbX','732615ugrtpb','EXCEED_MAX_QPS_LIMIT','4sRWCNE','trim','call','1263579Ywcsjn','status','Retry-After','rateLimited'];a115_0x49f0=function(){return _0x535726;};return a115_0x49f0();}function buildRetryHint(_0x34de42){const _0x314eed=a115_0x293e0e,_0x442750=nonEmptyString(_0x34de42),_0x36e015=_0x442750?/^\d+$/[_0x314eed(0x8b)](_0x442750)?_0x314eed(0x8a)+_0x442750+_0x314eed(0x9d):_0x314eed(0x8d)+_0x442750+'.':_0x314eed(0x96);return _0x36e015+_0x314eed(0x95);}function a115_0x5385(_0x4769cc,_0x94358b){_0x4769cc=_0x4769cc-0x85;const _0x49f01c=a115_0x49f0();let _0x5385a1=_0x49f01c[_0x4769cc];return _0x5385a1;}export function createRateLimitError(_0x331abb){const _0x6daf15=a115_0x293e0e,_0x56b585=nonEmptyString(_0x331abb[_0x6daf15(0x92)])?.[_0x6daf15(0x98)](),_0x5c28eb=Number(_0x331abb[_0x6daf15(0xa6)])===0x1ad||_0x56b585!==undefined&&RATE_LIMIT_ERROR_CODES[_0x6daf15(0x97)](_0x56b585);if(!_0x5c28eb)return undefined;return CliErrors[_0x6daf15(0xa8)](nonEmptyString(_0x331abb['message'])??_0x6daf15(0x87),buildRetryHint(_0x331abb['retryAfter']));}export function readRetryAfter(_0x4ae4f3){const _0x5bedab=a115_0x293e0e;if(!_0x4ae4f3||typeof _0x4ae4f3!==_0x5bedab(0x8e))return undefined;const _0x21c6c3=_0x4ae4f3[_0x5bedab(0x90)];if(typeof _0x21c6c3===_0x5bedab(0x9a)){const _0x37d3b4=_0x21c6c3['call'](_0x4ae4f3,_0x5bedab(0xa7))??_0x21c6c3[_0x5bedab(0xa4)](_0x4ae4f3,_0x5bedab(0x8c));return nonEmptyString(_0x37d3b4);}for(const [_0x48ee33,_0x3c52ea]of Object[_0x5bedab(0x99)](_0x4ae4f3)){if(_0x48ee33['toLowerCase']()==='retry-after')return nonEmptyString(_0x3c52ea)??(typeof _0x3c52ea==='number'?String(_0x3c52ea):undefined);}return undefined;}export function readRetryAfterSeconds(_0x236d18){const _0x150448=a115_0x293e0e;if(!_0x236d18||typeof _0x236d18!==_0x150448(0x8e)||Array[_0x150448(0x91)](_0x236d18))return undefined;const _0x45fc11=_0x236d18[_0x150448(0x8f)];if(typeof _0x45fc11===_0x150448(0x85))return Number[_0x150448(0x94)](_0x45fc11)&&_0x45fc11>=0x0?String(_0x45fc11):undefined;const _0x2e77a4=nonEmptyString(_0x45fc11);return _0x2e77a4&&/^\d+$/[_0x150448(0x8b)](_0x2e77a4)?_0x2e77a4:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a116_0x2687d2=a116_0x17b1;(function(_0x4c85ea,_0xd7929f){const _0x2b7da6=a116_0x17b1,_0xdade95=_0x4c85ea();while(!![]){try{const _0x319e73=parseInt(_0x2b7da6(0xbe))/0x1+-parseInt(_0x2b7da6(0xb7))/0x2+-parseInt(_0x2b7da6(0xc3))/0x3*(-parseInt(_0x2b7da6(0xcf))/0x4)+parseInt(_0x2b7da6(0xbf))/0x5+-parseInt(_0x2b7da6(0xb8))/0x6+-parseInt(_0x2b7da6(0xba))/0x7+parseInt(_0x2b7da6(0xd4))/0x8*(parseInt(_0x2b7da6(0xc6))/0x9);if(_0x319e73===_0xd7929f)break;else _0xdade95['push'](_0xdade95['shift']());}catch(_0xd6c15){_0xdade95['push'](_0xdade95['shift']());}}}(a116_0x44bf,0x2077d));import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{toKebab}from'../framework/preparse.js';function a116_0x44bf(){const _0x9ff3e0=['no-','344BCrCVe','command','filter','orderby','Example:\x20','page-size','add','215188KHWzJb','963132IAjfMo','\x20--help`\x20to\x20see\x20accepted\x20flags.','11648rPfrLe','asc','\x20for\x20`','has','85968fQpawk','887270YzARCJ','service','Run\x20`','order-by','444rzNAuN','validation','currentpage','11385RNHsiU','page','current-page','active','name','Put\x20where,\x20select,\x20orderBy,\x20currentPage,\x20and\x20pageSize\x20inside\x20one\x20--params\x20JSON\x20object.\x20','flags','stringify','\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20','2296vDMVmS','meowKey','Unknown\x20flag\x20--','\x20is\x20not\x20a\x20CLI\x20flag\x20for\x20`'];a116_0x44bf=function(){return _0x9ff3e0;};return a116_0x44bf();}function a116_0x17b1(_0x566a1d,_0x212f56){_0x566a1d=_0x566a1d-0xb7;const _0x44bfa2=a116_0x44bf();let _0x17b1f3=_0x44bfa2[_0x566a1d];return _0x17b1f3;}const FILTER_BODY_FIELDS=new Set(['where','select',a116_0x2687d2(0xc2),a116_0x2687d2(0xd7),a116_0x2687d2(0xc8),a116_0x2687d2(0xc5),a116_0x2687d2(0xc7),a116_0x2687d2(0xd9),'pagesize']);export function assertKnownCommandFlags(_0x2f1bb9,_0x6493f){const _0x2854aa=a116_0x2687d2,_0x4788be=new Set(['version']);for(const _0x4406a0 of GLOBAL_FLAGS){_0x4788be[_0x2854aa(0xda)](_0x4406a0[_0x2854aa(0xca)]),_0x4788be[_0x2854aa(0xda)](toKebab(_0x4406a0[_0x2854aa(0xd0)]));}for(const _0x5f7a5c of _0x2f1bb9[_0x2854aa(0xcc)]??[]){_0x4788be['add'](_0x5f7a5c[_0x2854aa(0xca)]);}for(const [_0x3d0f8c,_0x200b33]of Object['entries'](_0x6493f)){const _0x3956fb=toKebab(_0x3d0f8c);if(_0x4788be[_0x2854aa(0xbd)](_0x3956fb))continue;if(_0x200b33===![]&&_0x4788be[_0x2854aa(0xbd)](_0x2854aa(0xd3)+_0x3956fb))continue;if(_0x2f1bb9[_0x2854aa(0xc0)]==='data'&&_0x2f1bb9[_0x2854aa(0xd5)]===_0x2854aa(0xd6)&&FILTER_BODY_FIELDS[_0x2854aa(0xbd)](_0x3956fb))throw CliErrors[_0x2854aa(0xc4)]('--'+_0x3956fb+_0x2854aa(0xd2)+CLI_BIN_NAME+'\x20data\x20filter`.',_0x2854aa(0xcb)+(_0x2854aa(0xd8)+CLI_BIN_NAME+_0x2854aa(0xce))+('\x27'+JSON[_0x2854aa(0xcd)]({'where':{'status':{'$eq':_0x2854aa(0xc9)}},'orderBy':[{'id':_0x2854aa(0xbb)}],'currentPage':0x1,'pageSize':0x14})+'\x27'));throw CliErrors[_0x2854aa(0xc4)](_0x2854aa(0xd1)+_0x3956fb+_0x2854aa(0xbc)+CLI_BIN_NAME+'\x20'+_0x2f1bb9[_0x2854aa(0xc0)]+'\x20'+_0x2f1bb9['command']+'`.',_0x2854aa(0xc1)+CLI_BIN_NAME+'\x20'+_0x2f1bb9[_0x2854aa(0xc0)]+'\x20'+_0x2f1bb9[_0x2854aa(0xd5)]+_0x2854aa(0xb9));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x47bb3a,_0x35e0e7){var _0x43d2a4=a117_0x16c4,_0x35ecb6=_0x47bb3a();while(!![]){try{var _0x327f15=parseInt(_0x43d2a4(0x1b5))/0x1+parseInt(_0x43d2a4(0x1ae))/0x2*(parseInt(_0x43d2a4(0x1b2))/0x3)+-parseInt(_0x43d2a4(0x1ad))/0x4+-parseInt(_0x43d2a4(0x1b4))/0x5*(parseInt(_0x43d2a4(0x1af))/0x6)+-parseInt(_0x43d2a4(0x1b3))/0x7*(-parseInt(_0x43d2a4(0x1b1))/0x8)+-parseInt(_0x43d2a4(0x1ac))/0x9*(parseInt(_0x43d2a4(0x1aa))/0xa)+-parseInt(_0x43d2a4(0x1b0))/0xb*(-parseInt(_0x43d2a4(0x1ab))/0xc);if(_0x327f15===_0x35e0e7)break;else _0x35ecb6['push'](_0x35ecb6['shift']());}catch(_0x3fcca6){_0x35ecb6['push'](_0x35ecb6['shift']());}}}(a117_0x3989,0xd5044));function a117_0x16c4(_0x289200,_0xe64777){_0x289200=_0x289200-0x1aa;var _0x3989bd=a117_0x3989();var _0x16c477=_0x3989bd[_0x289200];return _0x16c477;}export{extractList,extractPaging}from'@lovrabet/cli-framework';function a117_0x3989(){var _0x57e741=['40AxQNZT','8076SyFlLY','1560609UIDdVM','6294296SiIiTl','1516pxsmxQ','426lEcOEu','12166fbNTRr','6817352tuucvM','1470vVEXJP','14cprUpm','97490eiSusT','1703956KjXMlm'];a117_0x3989=function(){return _0x57e741;};return a117_0x3989();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a118_0x5c5d(_0x14e056,_0x1bb16e){_0x14e056=_0x14e056-0x143;const _0x61c5ba=a118_0x61c5();let _0x5c5d96=_0x61c5ba[_0x14e056];return _0x5c5d96;}(function(_0x274d6d,_0x5d8f6f){const _0x5c7dde=a118_0x5c5d,_0x38d6ec=_0x274d6d();while(!![]){try{const _0x5507c7=parseInt(_0x5c7dde(0x14a))/0x1+-parseInt(_0x5c7dde(0x15e))/0x2+parseInt(_0x5c7dde(0x152))/0x3+-parseInt(_0x5c7dde(0x146))/0x4+-parseInt(_0x5c7dde(0x157))/0x5*(-parseInt(_0x5c7dde(0x164))/0x6)+-parseInt(_0x5c7dde(0x143))/0x7*(parseInt(_0x5c7dde(0x159))/0x8)+parseInt(_0x5c7dde(0x15d))/0x9*(parseInt(_0x5c7dde(0x14c))/0xa);if(_0x5507c7===_0x5d8f6f)break;else _0x38d6ec['push'](_0x38d6ec['shift']());}catch(_0x1752b3){_0x38d6ec['push'](_0x38d6ec['shift']());}}}(a118_0x61c5,0x7782c));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x44badc,_0x183087,_0x5df4bc){const _0x5066aa=a118_0x5c5d,_0x10271d=buildConfirmationContext(_0x44badc,_0x183087,_0x5df4bc),_0x28319c=[_0x5066aa(0x14d)+_0x10271d[_0x5066aa(0x167)]];return _0x10271d[_0x5066aa(0x16a)]&&_0x28319c['push'](_0x5066aa(0x15a)+_0x10271d['description']),_0x10271d[_0x5066aa(0x148)]&&_0x28319c['push'](_0x5066aa(0x149)+_0x10271d[_0x5066aa(0x148)]),_0x28319c['push'](_0x5066aa(0x15f)),_0x28319c;}export function reconstructCommandArgv(_0x4c4e47,_0x39abe6){const _0x23233d=a118_0x5c5d,_0x584c4e=[CLI_BIN_NAME,_0x4c4e47[_0x23233d(0x165)],_0x4c4e47[_0x23233d(0x150)]];for(const [_0x31a9a0,_0x3e929e]of Object[_0x23233d(0x163)](_0x39abe6)){if(_0x3e929e===!![])_0x584c4e[_0x23233d(0x161)]('--'+_0x31a9a0);else _0x3e929e!==![]&&_0x3e929e!==undefined&&_0x3e929e!==''&&_0x584c4e['push']('--'+_0x31a9a0+'\x20'+JSON[_0x23233d(0x15b)](_0x3e929e));}return _0x584c4e[_0x23233d(0x161)](_0x23233d(0x15c)),_0x584c4e[_0x23233d(0x151)]('\x20');}function buildConfirmationContext(_0x18d1f4,_0x297376,_0x5fe40b){const _0x346394=a118_0x5c5d,_0x1c8f15=extractAffectedRecords(_0x5fe40b);return{'commandLabel':_0x297376,'description':_0x18d1f4[_0x346394(0x16a)],'affectedRecords':_0x1c8f15};}function a118_0x61c5(){const _0xf08b2d=['id=','affectedRecords','\x20\x20\x20Affected:\x20','109829WFLDGM','cron=','108740qCWYQo','⚠\x20\x20High-risk\x20operation:\x20','title','params=','command','join','396561gUJLwk','schedule-id=','name','scheduled-at','params','2335tTAHjV','name=','536scrwbJ','\x20\x20\x20','stringify','--yes','549VdadxA','1209098LxtvjI','\x20\x20\x20Continue?\x20[y/N]\x20','schedule-id','push','title=','entries','8226pBcxJW','service','length','commandLabel','kind','cron','description','3269bIGbtS','code','code=','1680932UfwEwX'];a118_0x61c5=function(){return _0xf08b2d;};return a118_0x61c5();}function extractAffectedRecords(_0x22e4e0){const _0x24ae75=a118_0x5c5d,_0x524345=[];if(_0x22e4e0[_0x24ae75(0x144)])_0x524345['push'](_0x24ae75(0x145)+_0x22e4e0['code']);if(_0x22e4e0['id'])_0x524345[_0x24ae75(0x161)](_0x24ae75(0x147)+_0x22e4e0['id']);if(_0x22e4e0[_0x24ae75(0x160)])_0x524345[_0x24ae75(0x161)](_0x24ae75(0x153)+_0x22e4e0[_0x24ae75(0x160)]);if(_0x22e4e0[_0x24ae75(0x154)])_0x524345['push'](_0x24ae75(0x158)+_0x22e4e0[_0x24ae75(0x154)]);if(_0x22e4e0['title'])_0x524345[_0x24ae75(0x161)](_0x24ae75(0x162)+_0x22e4e0[_0x24ae75(0x14e)]);if(_0x22e4e0['kind'])_0x524345['push']('kind='+_0x22e4e0[_0x24ae75(0x168)]);if(_0x22e4e0[_0x24ae75(0x169)])_0x524345['push'](_0x24ae75(0x14b)+_0x22e4e0[_0x24ae75(0x169)]);if(_0x22e4e0[_0x24ae75(0x155)])_0x524345['push']('scheduled-at='+_0x22e4e0[_0x24ae75(0x155)]);if(_0x22e4e0['channel'])_0x524345[_0x24ae75(0x161)]('channel='+_0x22e4e0['channel']);if(_0x22e4e0[_0x24ae75(0x156)])_0x524345[_0x24ae75(0x161)](_0x24ae75(0x14f)+_0x22e4e0['params']);return _0x524345[_0x24ae75(0x166)]>0x0?_0x524345['join'](',\x20'):undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a119_0x574d(){const _0x2c415f=['headers','description','3738csXfdQ','status','2321UIccjQ','message','6GKRtfk','10098881FdauHW','string','stringify','319524jVtOkx','2025215YJYqdm','7510aERJrp','188TJDKIJ','1200mYdkfX','validation','code','response','12ZWxnDR','trim','12615bSCMOn','604818tRdXpD','104CTeDgo'];a119_0x574d=function(){return _0x2c415f;};return a119_0x574d();}(function(_0x1f4b08,_0x1db999){const _0x1a84c1=a119_0x54b0,_0x230d01=_0x1f4b08();while(!![]){try{const _0x108732=-parseInt(_0x1a84c1(0x110))/0x1*(-parseInt(_0x1a84c1(0x10c))/0x2)+parseInt(_0x1a84c1(0x11a))/0x3*(-parseInt(_0x1a84c1(0x113))/0x4)+-parseInt(_0x1a84c1(0x111))/0x5+parseInt(_0x1a84c1(0x114))/0x6*(-parseInt(_0x1a84c1(0x108))/0x7)+-parseInt(_0x1a84c1(0x105))/0x8*(-parseInt(_0x1a84c1(0x11b))/0x9)+-parseInt(_0x1a84c1(0x112))/0xa*(-parseInt(_0x1a84c1(0x10a))/0xb)+-parseInt(_0x1a84c1(0x118))/0xc*(parseInt(_0x1a84c1(0x10d))/0xd);if(_0x108732===_0x1db999)break;else _0x230d01['push'](_0x230d01['shift']());}catch(_0x55195f){_0x230d01['push'](_0x230d01['shift']());}}}(a119_0x574d,0x7b218));import{LovrabetError}from'@lovrabet/sdk';function a119_0x54b0(_0x4d2216,_0x44b1ef){_0x4d2216=_0x4d2216-0x105;const _0x574dfe=a119_0x574d();let _0x54b0af=_0x574dfe[_0x4d2216];return _0x54b0af;}import{CliErrors}from'../errors.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';export function mapUserFacingExecuteError(_0x2f6103){const _0x1c28f2=a119_0x54b0;if(_0x2f6103 instanceof LovrabetError){const _0x2a583e=userFacingLovrabetMessage(_0x2f6103),_0x22f097=_0x2f6103,_0x1196bf=createRateLimitError({'status':_0x22f097[_0x1c28f2(0x109)],'errorCode':_0x22f097[_0x1c28f2(0x116)],'message':_0x2a583e,'retryAfter':readRetryAfter(_0x22f097['response']?.[_0x1c28f2(0x106)])??readRetryAfterSeconds(_0x22f097[_0x1c28f2(0x117)])});return _0x1196bf??CliErrors[_0x1c28f2(0x115)](_0x2a583e);}return _0x2f6103;}function userFacingLovrabetMessage(_0xb46c92){const _0x54ed61=a119_0x54b0,_0x3ac425=_0xb46c92[_0x54ed61(0x107)];if(_0x3ac425!==undefined&&_0x3ac425!==null){if(typeof _0x3ac425===_0x54ed61(0x10e)&&_0x3ac425[_0x54ed61(0x119)]())return _0x3ac425[_0x54ed61(0x119)]();try{return JSON[_0x54ed61(0x10f)](_0x3ac425);}catch{}}return _0xb46c92[_0x54ed61(0x10b)];}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x376fe7,_0x1772d6){const _0x280f20=a120_0x40e8,_0x44cf23=_0x376fe7();while(!![]){try{const _0x246c3a=-parseInt(_0x280f20(0x13a))/0x1*(parseInt(_0x280f20(0x12d))/0x2)+-parseInt(_0x280f20(0x147))/0x3*(-parseInt(_0x280f20(0x127))/0x4)+-parseInt(_0x280f20(0x161))/0x5*(-parseInt(_0x280f20(0x164))/0x6)+-parseInt(_0x280f20(0x153))/0x7*(-parseInt(_0x280f20(0x15c))/0x8)+parseInt(_0x280f20(0x13c))/0x9+-parseInt(_0x280f20(0x132))/0xa*(-parseInt(_0x280f20(0x140))/0xb)+-parseInt(_0x280f20(0x15d))/0xc;if(_0x246c3a===_0x1772d6)break;else _0x44cf23['push'](_0x44cf23['shift']());}catch(_0x58a850){_0x44cf23['push'](_0x44cf23['shift']());}}}(a120_0x3783,0xb151c));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 a120_0x3783(){const _0x3f5186=['doctor','error','resolve','trim','4DHYrMz','service','defaultApp','catch','nativeToolAvailable','name','2762wwFICc','items','update','riskLevel','local-alias','20NXCAEL','isNonInteractive','requiresAuth','has','appcode','command','app','rawFlags','1029dbYgUc','format','1658754lBxIYK','apiDomain','defaultPageSize','.appcode\x20to\x20','5342183VjPyYS','install','_notice','string','env','APPCODE','Set\x20accessKey\x20in\x20','2446617BOBEWE','newConfigFileName','cli-skill','nonInteractive','object','../commands/app/remote-source.js','verbose','mergedCli','production','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','Unknown\x20app:\x20','287Rciuor','../core/api-client.js','requiresAppCode','High-risk\x20operation\x20`','confirmHighRisk','high-risk-write','pretty','configMissing','accessKey','16016wpgeqP','12269316EzdTga','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','ACCESS_KEY','appCodeSource','5582795CaWzsn','currentApp','nativeToolRequired','6sLlqhm','appCode','../core/sdk-client.js','appcode\x20\x22','risk'];a120_0x3783=function(){return _0x3f5186;};return a120_0x3783();}import{assertCliVersionSupported,checkCliVersion}from'../utils/cli-version-check.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x11a18d){return void _0x11a18d,AUTH_MODE['ClientAk'];}let sdkClientInitialized=![];export function createPipelineEnv(_0x20a48d,_0x24cc41){const _0x141d4e=a120_0x40e8,_0x112c3=typeof _0x24cc41[_0x141d4e(0x138)]===_0x141d4e(0x143)&&_0x24cc41['app'][_0x141d4e(0x126)]();return{'rawFlags':_0x24cc41,'appCode':_0x20a48d['appCode']||productEnv(_0x141d4e(0x145))||(_0x112c3?undefined:readAppCodeFromConfig()),'appCodeSource':_0x20a48d[_0x141d4e(0x160)],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x24cc41),'defaultFormat':_0x20a48d[_0x141d4e(0x13b)],'defaultPageSize':_0x20a48d['pageSize'],'defaultVerbose':_0x20a48d[_0x141d4e(0x14d)],'riskLevel':_0x20a48d[_0x141d4e(0x130)],'nativeToolAvailable':_0x20a48d[_0x141d4e(0x12b)],'accessKey':_0x20a48d[_0x141d4e(0x15b)],'env':_0x20a48d[_0x141d4e(0x144)],'mergedCli':{'defaultApp':_0x20a48d[_0x141d4e(0x129)],'currentApp':_0x20a48d['currentApp'],'appCode':_0x20a48d[_0x141d4e(0x165)]}};}export function createLovrabetRunnerAdapter(_0x32faea={}){const _0x194ece=a120_0x40e8,_0x106343={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x30e0d0=>PIPELINE_FLAG_NAMES[_0x194ece(0x135)](_0x30e0d0[_0x194ece(0x12c)]))['map'](({name:_0x18584b,type:_0x2f699a,description:_0x25dee2})=>({'name':_0x18584b,'type':_0x2f699a,'description':_0x25dee2})),'formatOutput':_0x32faea['formatOutput']??formatOutput,'getCommandLabel'(_0x90aee4){const _0x34f9fa=_0x194ece;return CLI_BIN_NAME+'\x20'+_0x90aee4['service']+'\x20'+_0x90aee4[_0x34f9fa(0x137)];},'riskPolicy':{'onViolation'(_0x2af6b3,{def:_0xe3d31,env:_0xdcb331}){const _0x15ee89=_0x194ece;if(shouldRouteWriteToNativeTool(_0xe3d31,_0xdcb331))return;console[_0x15ee89(0x124)](_0x2af6b3);},'createError'(_0x299a23,{def:_0x4f8a16,env:_0x2d9add}){const _0x1c2336=_0x194ece;if(shouldRouteWriteToNativeTool(_0x4f8a16,_0x2d9add))return CliErrors[_0x1c2336(0x163)](CLI_BIN_NAME+'\x20'+_0x4f8a16['service']+'\x20'+_0x4f8a16[_0x1c2336(0x137)]);return CliErrors['cancelled'](_0x299a23);}},async 'prepare'(_0x4c0257,_0x205b72){const _0x321100=_0x194ece,_0x4912a8=resolveAuthMode(_0x205b72);if(_0x4c0257[_0x321100(0x134)]!==![]){if(!_0x205b72[_0x321100(0x15b)])throw CliErrors['authRequired'](_0x321100(0x146)+PRODUCT_CONFIG[_0x321100(0x148)]+'\x20or\x20pass\x20'+productEnvName(_0x321100(0x15f))+'.');const {setActiveAK:_0x282750}=await import(_0x321100(0x154));_0x282750(_0x205b72[_0x321100(0x15b)]);}let _0x9d4bc5='';if(_0x4c0257[_0x321100(0x155)]!==![]){_0x9d4bc5=_0x205b72[_0x321100(0x165)]??'',_0x9d4bc5=await resolveExplicitAppName(_0x4c0257,_0x205b72,_0x9d4bc5);if(!_0x9d4bc5){await assertSelectedAppNameIsRuntimeAccessible(_0x4c0257,_0x205b72);throw CliErrors[_0x321100(0x15a)](_0x321100(0x150)+PRODUCT_CONFIG['newConfigFileName']+'.');}await assertAppCodeIsRuntimeAccessible(_0x4c0257,_0x205b72,_0x9d4bc5);}if(_0x9d4bc5){const {initSdkClient:_0x2772c1}=await import(_0x321100(0x166));_0x2772c1({'appCode':_0x9d4bc5,'env':_0x205b72['env']??_0x321100(0x14f),'runtimeDomain':_0x205b72['runtimeDomain'],'accessKey':_0x205b72[_0x321100(0x15b)],'authMode':_0x4912a8}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x205b72['defaultVerbose']},'numbers':{'pagesize':_0x205b72[_0x321100(0x13e)]}},'extras':{'appCode':_0x9d4bc5,'cookie':'','apiDomain':_0x205b72[_0x321100(0x13d)],'apiDir':'','accessKey':_0x205b72[_0x321100(0x15b)],'envName':_0x205b72[_0x321100(0x144)],'mergedCli':_0x205b72[_0x321100(0x14e)]}};},'confirmHighRisk':_0x32faea[_0x194ece(0x157)]??(async({def:_0x3f5601,env:_0x3783b2,flags:_0x467375,commandLabel:_0x55b700})=>{const _0xd62588=_0x194ece;if(_0x3783b2[_0xd62588(0x133)]){const _0x5c904f=reconstructCommandArgv(_0x3f5601,_0x467375);throw CliErrors['validation'](_0xd62588(0x156)+_0x55b700+_0xd62588(0x151)+('\x20\x20To\x20proceed:\x20'+_0x5c904f));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x3f5601,_0x55b700,_0x467375),'createCancelledError':_0x6b154b=>CliErrors['cancelled'](_0x6b154b)});}),'mapDryRunError'(_0xc6cac1){return mapUserFacingExecuteError(_0xc6cac1);},'mapExecuteError'(_0x4f32af){return mapUserFacingExecuteError(_0x4f32af);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x106343;}function shouldRouteWriteToNativeTool(_0x191f99,_0x3b4bcc){const _0x306854=a120_0x40e8;return _0x3b4bcc[_0x306854(0x12b)]===!![]&&(_0x191f99['risk']==='write'||_0x191f99[_0x306854(0x168)]===_0x306854(0x158));}function a120_0x40e8(_0x25b03d,_0x2dcf20){_0x25b03d=_0x25b03d-0x124;const _0x3783e7=a120_0x3783();let _0x40e880=_0x3783e7[_0x25b03d];return _0x40e880;}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x22d7f8=a120_0x40e8;try{if(sdkClientInitialized){const {clearSdkClient:_0x4fe8af}=await import(_0x22d7f8(0x166));_0x4fe8af();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x25577b}=await import(_0x22d7f8(0x154));_0x25577b();}}async function resolveExplicitAppName(_0x18341e,_0x1344d7,_0x1edd68){const _0x2ec935=a120_0x40e8;if(_0x18341e[_0x2ec935(0x155)]===![])return _0x1edd68;const _0x25be76=typeof _0x1344d7[_0x2ec935(0x139)][_0x2ec935(0x138)]===_0x2ec935(0x143)?_0x1344d7[_0x2ec935(0x139)][_0x2ec935(0x138)][_0x2ec935(0x126)]():'';if(!_0x25be76)return _0x1edd68;const _0x2783b2=typeof _0x1344d7[_0x2ec935(0x139)]['appcode']===_0x2ec935(0x143)&&_0x1344d7[_0x2ec935(0x139)][_0x2ec935(0x136)][_0x2ec935(0x126)]()||productEnv(_0x2ec935(0x145));if(_0x2783b2||_0x1344d7[_0x2ec935(0x160)]===_0x2ec935(0x131))return _0x1edd68;const {getRemoteAppList:_0xf4fd99}=await import(_0x2ec935(0x14c)),_0x42dcc1=await _0xf4fd99({'env':_0x1344d7['env']??'production','accessKey':_0x1344d7['accessKey']}),_0x5905f8=findAppByName(_0x42dcc1[_0x2ec935(0x12e)],_0x25be76);if(_0x5905f8&&!isRuntimeAccessibleApp(_0x5905f8))throw runtimeInaccessibleAppError(_0x5905f8,'\x22'+_0x25be76+'\x22');const _0x7ebf65=_0x5905f8?.[_0x2ec935(0x165)]?.[_0x2ec935(0x126)]();if(_0x7ebf65)return _0x7ebf65;throw CliErrors['validation'](_0x2ec935(0x152)+_0x25be76,'Run\x20`'+CLI_BIN_NAME+_0x2ec935(0x15e)+_0x25be76+_0x2ec935(0x13f)+PRODUCT_CONFIG[_0x2ec935(0x148)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x58903a,_0x5bd38b){const _0x4fea1c=a120_0x40e8;if(_0x58903a[_0x4fea1c(0x155)]===![]||!_0x5bd38b[_0x4fea1c(0x15b)])return;const _0x28dad4=(typeof _0x5bd38b[_0x4fea1c(0x139)]['app']==='string'&&_0x5bd38b[_0x4fea1c(0x139)][_0x4fea1c(0x138)][_0x4fea1c(0x126)]()?_0x5bd38b[_0x4fea1c(0x139)][_0x4fea1c(0x138)]:_0x5bd38b[_0x4fea1c(0x14e)]?.[_0x4fea1c(0x162)]??_0x5bd38b[_0x4fea1c(0x14e)]?.[_0x4fea1c(0x129)])?.[_0x4fea1c(0x126)]();if(!_0x28dad4)return;const {getRemoteAppList:_0x3ff06b}=await import(_0x4fea1c(0x14c)),_0x2415d5=await _0x3ff06b({'env':_0x5bd38b['env']??'production','accessKey':_0x5bd38b[_0x4fea1c(0x15b)]}),_0x7596c2=findAppByName(_0x2415d5[_0x4fea1c(0x12e)],_0x28dad4);if(_0x7596c2&&!isRuntimeAccessibleApp(_0x7596c2))throw runtimeInaccessibleAppError(_0x7596c2,'\x22'+_0x28dad4+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x3bf81c,_0x287f40,_0x2c4434){const _0xa4d615=a120_0x40e8;if(_0x3bf81c[_0xa4d615(0x155)]===![]||!_0x287f40[_0xa4d615(0x15b)])return;const {getRemoteAppList:_0xa4c7f2}=await import('../commands/app/remote-source.js'),_0x2fb72c=await _0xa4c7f2({'env':_0x287f40[_0xa4d615(0x144)]??'production','accessKey':_0x287f40['accessKey']}),_0x1124ba=findAppByCode(_0x2fb72c['items'],_0x2c4434);if(_0x1124ba&&!isRuntimeAccessibleApp(_0x1124ba))throw runtimeInaccessibleAppError(_0x1124ba,_0xa4d615(0x167)+_0x2c4434+'\x22');}export async function runCommand(_0x31a214,_0x188af8,_0x4cc68f=terminalRunnerAdapter){const _0x128fa7=a120_0x40e8;assertKnownCommandFlags(_0x31a214,_0x188af8[_0x128fa7(0x139)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x31a214)?withVersionPolicy(_0x31a214):_0x31a214,_0x188af8,_0x4cc68f);}function shouldApplyVersionPolicy(_0x408d7b){const _0x548045=a120_0x40e8;if([_0x548045(0x12f),'schema',_0x548045(0x169)]['includes'](_0x408d7b[_0x548045(0x128)]))return![];return!(_0x408d7b[_0x548045(0x128)]===_0x548045(0x149)&&_0x408d7b[_0x548045(0x137)]===_0x548045(0x141));}function withVersionPolicy(_0x211680){return{..._0x211680,async 'execute'(_0xb07b0a){const _0x3c580=a120_0x40e8,_0x56329b=await checkCliVersion();assertCliVersionSupported(_0x56329b);const _0x3c7236=shouldResolveUpdateNotice(_0xb07b0a)?resolveLatestUpdateNotice(_0x56329b)[_0x3c580(0x12a)](()=>null):Promise[_0x3c580(0x125)](null),_0x40830d=await _0x211680['execute'](_0xb07b0a);return attachUpdateNotice(_0x40830d,await _0x3c7236);}};}function shouldResolveUpdateNotice(_0x3c756d){const _0x50ad70=a120_0x40e8;return _0x3c756d['format']===_0x50ad70(0x159)&&!_0x3c756d[_0x50ad70(0x14a)];}function attachUpdateNotice(_0x374d00,_0x870bf6){const _0xcadc42=a120_0x40e8;if(!_0x870bf6||!_0x374d00||typeof _0x374d00!==_0xcadc42(0x14b))return _0x374d00;const _0x33fd16=_0x374d00,_0x4e66fc=typeof _0x33fd16[_0xcadc42(0x142)]===_0xcadc42(0x14b)&&_0x33fd16[_0xcadc42(0x142)]!==null?_0x33fd16[_0xcadc42(0x142)]:{};return{..._0x33fd16,'_notice':{..._0x4e66fc,'update':_0x870bf6}};}
|
|
1
|
+
(function(_0x9f68b1,_0x11eb16){const _0x4ed917=a120_0x3782,_0x14eb8a=_0x9f68b1();while(!![]){try{const _0x5481b5=parseInt(_0x4ed917(0x110))/0x1+-parseInt(_0x4ed917(0x107))/0x2+-parseInt(_0x4ed917(0x10e))/0x3*(-parseInt(_0x4ed917(0x12a))/0x4)+parseInt(_0x4ed917(0xf0))/0x5*(parseInt(_0x4ed917(0x129))/0x6)+-parseInt(_0x4ed917(0x11c))/0x7+-parseInt(_0x4ed917(0x112))/0x8*(parseInt(_0x4ed917(0x121))/0x9)+parseInt(_0x4ed917(0xfc))/0xa*(-parseInt(_0x4ed917(0xed))/0xb);if(_0x5481b5===_0x11eb16)break;else _0x14eb8a['push'](_0x14eb8a['shift']());}catch(_0x2dff53){_0x14eb8a['push'](_0x14eb8a['shift']());}}}(a120_0x3c20,0xcfebf));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(_0xe4a8cc){const _0x499ba0=a120_0x3782;return void _0xe4a8cc,AUTH_MODE[_0x499ba0(0x127)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x52bcde,_0x4a9529){const _0x4116bf=a120_0x3782,_0x902ed5=typeof _0x4a9529['app']==='string'&&_0x4a9529[_0x4116bf(0x12b)][_0x4116bf(0xf5)]();return{'rawFlags':_0x4a9529,'appCode':_0x52bcde['appCode']||productEnv(_0x4116bf(0xe3))||(_0x902ed5?undefined:readAppCodeFromConfig()),'appCodeSource':_0x52bcde['appCodeSource'],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x4a9529),'defaultFormat':_0x52bcde['format'],'defaultPageSize':_0x52bcde[_0x4116bf(0x126)],'defaultVerbose':_0x52bcde[_0x4116bf(0xfa)],'riskLevel':_0x52bcde[_0x4116bf(0x11d)],'nativeToolAvailable':_0x52bcde['nativeToolAvailable'],'accessKey':_0x52bcde[_0x4116bf(0x11b)],'env':_0x52bcde['env'],'mergedCli':{'defaultApp':_0x52bcde['defaultApp'],'currentApp':_0x52bcde[_0x4116bf(0xf7)],'appCode':_0x52bcde['appCode']}};}export function createLovrabetRunnerAdapter(_0x3bf3ba={}){const _0x4d5fb0=a120_0x3782,_0x1da532={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x4d5fb0(0x123)](_0x4ef5f9=>PIPELINE_FLAG_NAMES[_0x4d5fb0(0xef)](_0x4ef5f9[_0x4d5fb0(0x10f)]))[_0x4d5fb0(0xe7)](({name:_0x58cf8f,type:_0x9cf91f,description:_0x5c1252})=>({'name':_0x58cf8f,'type':_0x9cf91f,'description':_0x5c1252})),'formatOutput':_0x3bf3ba[_0x4d5fb0(0x109)]??formatOutput,'getCommandLabel'(_0x3dd95b){const _0x3cb1e4=_0x4d5fb0;return CLI_BIN_NAME+'\x20'+_0x3dd95b[_0x3cb1e4(0x108)]+'\x20'+_0x3dd95b[_0x3cb1e4(0xfb)];},'riskPolicy':{'onViolation'(_0x50d727,{def:_0x397fb0,env:_0x54e89a}){const _0x23079a=_0x4d5fb0;if(shouldRouteWriteToNativeTool(_0x397fb0,_0x54e89a))return;console[_0x23079a(0xfe)](_0x50d727);},'createError'(_0x10ecfb,{def:_0x3536aa,env:_0x5c911f}){const _0x6fd30a=_0x4d5fb0;if(shouldRouteWriteToNativeTool(_0x3536aa,_0x5c911f))return CliErrors['nativeToolRequired'](CLI_BIN_NAME+'\x20'+_0x3536aa[_0x6fd30a(0x108)]+'\x20'+_0x3536aa[_0x6fd30a(0xfb)]);return CliErrors[_0x6fd30a(0x10d)](_0x10ecfb);}},async 'prepare'(_0x5956aa,_0x27a5f5){const _0x5b2073=_0x4d5fb0,_0x54876f=resolveAuthMode(_0x27a5f5);if(_0x5956aa[_0x5b2073(0x10c)]!==![]){if(!_0x27a5f5[_0x5b2073(0x11b)])throw CliErrors[_0x5b2073(0x103)]('Set\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x5b2073(0x125)]+'\x20or\x20pass\x20'+productEnvName(_0x5b2073(0xe4))+'.');const {setActiveAK:_0x4335c8}=await import(_0x5b2073(0xfd));_0x4335c8(_0x27a5f5[_0x5b2073(0x11b)]);}let _0x193fdd='';if(_0x5956aa[_0x5b2073(0x124)]!==![]){_0x193fdd=_0x27a5f5['appCode']??'',_0x193fdd=await resolveExplicitAppName(_0x5956aa,_0x27a5f5,_0x193fdd);if(!_0x193fdd){await assertSelectedAppNameIsRuntimeAccessible(_0x5956aa,_0x27a5f5);throw CliErrors[_0x5b2073(0x119)]('Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20'+PRODUCT_CONFIG[_0x5b2073(0x125)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x5956aa,_0x27a5f5,_0x193fdd);}if(_0x193fdd){const {initSdkClient:_0x1c3bfe}=await import(_0x5b2073(0xee));_0x1c3bfe({'appCode':_0x193fdd,'env':_0x27a5f5['env']??_0x5b2073(0xe5),'runtimeDomain':_0x27a5f5[_0x5b2073(0x104)],'accessKey':_0x27a5f5[_0x5b2073(0x11b)],'authMode':_0x54876f}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x27a5f5[_0x5b2073(0x101)]},'numbers':{'pagesize':_0x27a5f5[_0x5b2073(0xf1)]}},'extras':{'appCode':_0x193fdd,'cookie':'','apiDomain':_0x27a5f5[_0x5b2073(0x11a)],'apiDir':'','accessKey':_0x27a5f5[_0x5b2073(0x11b)],'envName':_0x27a5f5[_0x5b2073(0x10a)],'mergedCli':_0x27a5f5[_0x5b2073(0x100)]}};},'confirmHighRisk':_0x3bf3ba[_0x4d5fb0(0xea)]??(async({def:_0xa7c52f,env:_0x5b3e67,flags:_0x2b27d5,commandLabel:_0x1a1576})=>{const _0x3ac4e3=_0x4d5fb0;if(_0x5b3e67['isNonInteractive']){const _0x11db39=reconstructCommandArgv(_0xa7c52f,_0x2b27d5);throw CliErrors[_0x3ac4e3(0x115)]('High-risk\x20operation\x20`'+_0x1a1576+_0x3ac4e3(0xeb)+(_0x3ac4e3(0x118)+_0x11db39));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0xa7c52f,_0x1a1576,_0x2b27d5),'createCancelledError':_0x278107=>CliErrors[_0x3ac4e3(0x10d)](_0x278107)});}),'mapDryRunError'(_0x4dfc41){return mapUserFacingExecuteError(_0x4dfc41);},'mapExecuteError'(_0x561d57){return mapUserFacingExecuteError(_0x561d57);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x1da532;}function shouldRouteWriteToNativeTool(_0x232d5a,_0x145a2d){const _0x1db6da=a120_0x3782;return _0x145a2d[_0x1db6da(0x102)]===!![]&&(_0x232d5a['risk']===_0x1db6da(0xf9)||_0x232d5a[_0x1db6da(0x113)]==='high-risk-write');}const terminalRunnerAdapter=createLovrabetRunnerAdapter();function a120_0x3c20(){const _0x2913e6=['rawFlags','1078544HutgUH','service','formatOutput','env','items','requiresAuth','cancelled','9xypJyv','name','931572IPlwrw','object','1536WEZqPr','risk','appcode','validation','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','appcode\x20\x22','\x20\x20To\x20proceed:\x20','configMissing','apiDomain','accessKey','6223070kfopWz','riskLevel','update','doctor','local-alias','14112vGfBQq','.appcode\x20to\x20','filter','requiresAppCode','newConfigFileName','pageSize','ClientAk','cli-skill','1700910rzlyql','1499716tKgEZK','app','APPCODE','ACCESS_KEY','production','schema','map','resolve','../commands/app/remote-source.js','confirmHighRisk','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','pretty','15917rWDIkA','../core/sdk-client.js','has','25YyOLbK','defaultPageSize','_notice','string','appCode','trim','defaultApp','currentApp','Run\x20`','write','verbose','command','6170HkCLYe','../core/api-client.js','error','install','mergedCli','defaultVerbose','nativeToolAvailable','authRequired','runtimeDomain','nonInteractive'];a120_0x3c20=function(){return _0x2913e6;};return a120_0x3c20();}export async function finalizeLovrabetRuntimeState(){try{if(sdkClientInitialized){const {clearSdkClient:_0x5daec1}=await import('../core/sdk-client.js');_0x5daec1();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0xfe2ea4}=await import('../core/api-client.js');_0xfe2ea4();}}async function resolveExplicitAppName(_0x2e9f8e,_0x3456c3,_0xd1a2f8){const _0x509474=a120_0x3782;if(_0x2e9f8e[_0x509474(0x124)]===![])return _0xd1a2f8;const _0x426236=typeof _0x3456c3[_0x509474(0x106)][_0x509474(0x12b)]===_0x509474(0xf3)?_0x3456c3[_0x509474(0x106)][_0x509474(0x12b)][_0x509474(0xf5)]():'';if(!_0x426236)return _0xd1a2f8;const _0x189104=typeof _0x3456c3[_0x509474(0x106)][_0x509474(0x114)]===_0x509474(0xf3)&&_0x3456c3[_0x509474(0x106)][_0x509474(0x114)][_0x509474(0xf5)]()||productEnv(_0x509474(0xe3));if(_0x189104||_0x3456c3['appCodeSource']===_0x509474(0x120))return _0xd1a2f8;const {getRemoteAppList:_0x3c9b9b}=await import(_0x509474(0xe9)),_0x12fbba=await _0x3c9b9b({'env':_0x3456c3[_0x509474(0x10a)]??_0x509474(0xe5),'accessKey':_0x3456c3[_0x509474(0x11b)]}),_0x56c24f=findAppByName(_0x12fbba['items'],_0x426236);if(_0x56c24f&&!isRuntimeAccessibleApp(_0x56c24f))throw runtimeInaccessibleAppError(_0x56c24f,'\x22'+_0x426236+'\x22');const _0x194133=_0x56c24f?.[_0x509474(0xf4)]?.[_0x509474(0xf5)]();if(_0x194133)return _0x194133;throw CliErrors[_0x509474(0x115)]('Unknown\x20app:\x20'+_0x426236,_0x509474(0xf8)+CLI_BIN_NAME+_0x509474(0x116)+_0x426236+_0x509474(0x122)+PRODUCT_CONFIG['newConfigFileName']+'.');}function a120_0x3782(_0x101485,_0x4641fc){_0x101485=_0x101485-0xe3;const _0x3c2069=a120_0x3c20();let _0x378235=_0x3c2069[_0x101485];return _0x378235;}async function assertSelectedAppNameIsRuntimeAccessible(_0x577caf,_0x298076){const _0x2d5742=a120_0x3782;if(_0x577caf['requiresAppCode']===![]||!_0x298076[_0x2d5742(0x11b)])return;const _0x1c7ce3=(typeof _0x298076[_0x2d5742(0x106)][_0x2d5742(0x12b)]===_0x2d5742(0xf3)&&_0x298076[_0x2d5742(0x106)][_0x2d5742(0x12b)][_0x2d5742(0xf5)]()?_0x298076[_0x2d5742(0x106)][_0x2d5742(0x12b)]:_0x298076['mergedCli']?.[_0x2d5742(0xf7)]??_0x298076['mergedCli']?.[_0x2d5742(0xf6)])?.[_0x2d5742(0xf5)]();if(!_0x1c7ce3)return;const {getRemoteAppList:_0x2fc883}=await import(_0x2d5742(0xe9)),_0x4848a4=await _0x2fc883({'env':_0x298076[_0x2d5742(0x10a)]??_0x2d5742(0xe5),'accessKey':_0x298076[_0x2d5742(0x11b)]}),_0x463738=findAppByName(_0x4848a4['items'],_0x1c7ce3);if(_0x463738&&!isRuntimeAccessibleApp(_0x463738))throw runtimeInaccessibleAppError(_0x463738,'\x22'+_0x1c7ce3+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x5a7545,_0x3612c7,_0x5ad3f3){const _0x3d7016=a120_0x3782;if(_0x5a7545[_0x3d7016(0x124)]===![]||!_0x3612c7['accessKey'])return;const {getRemoteAppList:_0x4ef09b}=await import(_0x3d7016(0xe9)),_0x2a14b3=await _0x4ef09b({'env':_0x3612c7[_0x3d7016(0x10a)]??_0x3d7016(0xe5),'accessKey':_0x3612c7[_0x3d7016(0x11b)]}),_0x1ac1c9=findAppByCode(_0x2a14b3[_0x3d7016(0x10b)],_0x5ad3f3);if(_0x1ac1c9&&!isRuntimeAccessibleApp(_0x1ac1c9))throw runtimeInaccessibleAppError(_0x1ac1c9,_0x3d7016(0x117)+_0x5ad3f3+'\x22');}export async function runCommand(_0x33726f,_0x5eb67a,_0x5b772a=terminalRunnerAdapter){const _0x1626bc=a120_0x3782;assertKnownCommandFlags(_0x33726f,_0x5eb67a[_0x1626bc(0x106)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x33726f)?withVersionPolicy(_0x33726f):_0x33726f,_0x5eb67a,_0x5b772a);}function shouldApplyVersionPolicy(_0x54f4fe){const _0x4d097a=a120_0x3782;if([_0x4d097a(0x11e),_0x4d097a(0xe6),_0x4d097a(0x11f)]['includes'](_0x54f4fe[_0x4d097a(0x108)]))return![];return!(_0x54f4fe[_0x4d097a(0x108)]===_0x4d097a(0x128)&&_0x54f4fe[_0x4d097a(0xfb)]===_0x4d097a(0xff));}function withVersionPolicy(_0x3751a1){return{..._0x3751a1,async 'execute'(_0x57a0f7){const _0x563173=a120_0x3782,_0x450151=await checkCliVersion();assertCliVersionSupported(_0x450151);const _0x3e1986=shouldResolveUpdateNotice(_0x57a0f7)?resolveLatestUpdateNotice(_0x450151)['catch'](()=>null):Promise[_0x563173(0xe8)](null),_0xdb72a0=await _0x3751a1['execute'](_0x57a0f7);return attachUpdateNotice(_0xdb72a0,await _0x3e1986);}};}function shouldResolveUpdateNotice(_0x5cc8a2){const _0x56fa42=a120_0x3782;return _0x5cc8a2['format']===_0x56fa42(0xec)&&!_0x5cc8a2[_0x56fa42(0x105)];}function attachUpdateNotice(_0x354274,_0x2213cc){const _0x2ff3b1=a120_0x3782;if(!_0x2213cc||!_0x354274||typeof _0x354274!==_0x2ff3b1(0x111))return _0x354274;const _0x4b5c08=_0x354274,_0x4c9c37=typeof _0x4b5c08[_0x2ff3b1(0xf2)]==='object'&&_0x4b5c08[_0x2ff3b1(0xf2)]!==null?_0x4b5c08['_notice']:{};return{..._0x4b5c08,'_notice':{..._0x4c9c37,'update':_0x2213cc}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4a78d8,_0x439c29){const _0x21cd72=a121_0x5af2,_0x4581be=_0x4a78d8();while(!![]){try{const _0x3757b1=parseInt(_0x21cd72(0xc6))/0x1+-parseInt(_0x21cd72(0xc3))/0x2*(-parseInt(_0x21cd72(0xc5))/0x3)+-parseInt(_0x21cd72(0xb7))/0x4+parseInt(_0x21cd72(0xbe))/0x5*(-parseInt(_0x21cd72(0xc4))/0x6)+parseInt(_0x21cd72(0xbc))/0x7*(parseInt(_0x21cd72(0xbb))/0x8)+parseInt(_0x21cd72(0xbd))/0x9+-parseInt(_0x21cd72(0xc2))/0xa*(-parseInt(_0x21cd72(0xb9))/0xb);if(_0x3757b1===_0x439c29)break;else _0x4581be['push'](_0x4581be['shift']());}catch(_0x326d9d){_0x4581be['push'](_0x4581be['shift']());}}}(a121_0x47cb,0x576db));import{buildSchemaPayload as a121_0xf441da}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';function a121_0x5af2(_0x1c842,_0x2dbc86){_0x1c842=_0x1c842-0xb6;const _0x47cb42=a121_0x47cb();let _0x5af23a=_0x47cb42[_0x1c842];return _0x5af23a;}function a121_0x47cb(){const _0x5e0696=['has','3586jhFynI','none','48672vvpzse','56VPduht','5702571MjQiZl','2762005fTuJZT','service','../commands/registry.js','commands','2850HtYVxj','4lgLvfc','6XEZmzv','238197wXyOkS','166216FCkfNf','required','filter','auth','map','758828Tidjfy'];a121_0x47cb=function(){return _0x5e0696;};return a121_0x47cb();}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 _0x31c035=a121_0x5af2,{serviceRegistry:_0xd68424,findDefinition:_0x45cc98}=await import(_0x31c035(0xc0)),_0x43d2d6=new Set(_0xd68424['map'](_0x4c45d5=>_0x4c45d5[_0x31c035(0xbf)])),_0x58941e=listDynamicServiceEntries()[_0x31c035(0xc8)](_0x5541a1=>!_0x43d2d6[_0x31c035(0xb8)](_0x5541a1[_0x31c035(0xbf)])),_0x3b5112=a121_0xf441da({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0xd68424,_0x58941e),'buildAllFlags':buildAllFlags,'findDefinition':(_0xb6397,_0x1143bc)=>_0x45cc98(_0xb6397,_0x1143bc)??findDynamicServiceDefinition(_0xb6397,_0x1143bc)});return normalizeSchemaPayload(_0x3b5112);}function normalizeSchemaPayload(_0x480b0b){const _0x20bd18=a121_0x5af2;return{..._0x480b0b,'schemaVersion':0x2,'services':_0x480b0b['services'][_0x20bd18(0xb6)](_0x4717e2=>({..._0x4717e2,'commands':_0x4717e2[_0x20bd18(0xc1)]['map'](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x432339){const _0x1d2e19=a121_0x5af2,_0x1829bc=_0x432339;return{..._0x432339,'auth':_0x1829bc[_0x1d2e19(0xc9)]??(_0x432339['requiresAuth']?_0x1d2e19(0xc7):_0x1d2e19(0xba))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2a7624,_0x1db776){const _0x41bcde=a122_0x3536,_0x2edb07=_0x2a7624();while(!![]){try{const _0x5563f0=-parseInt(_0x41bcde(0x1ca))/0x1*(-parseInt(_0x41bcde(0x1d0))/0x2)+parseInt(_0x41bcde(0x1cd))/0x3+parseInt(_0x41bcde(0x1d3))/0x4+-parseInt(_0x41bcde(0x1d2))/0x5+parseInt(_0x41bcde(0x1ce))/0x6*(parseInt(_0x41bcde(0x1cc))/0x7)+-parseInt(_0x41bcde(0x1cf))/0x8+parseInt(_0x41bcde(0x1d5))/0x9*(parseInt(_0x41bcde(0x1d1))/0xa);if(_0x5563f0===_0x1db776)break;else _0x2edb07['push'](_0x2edb07['shift']());}catch(_0x4f23c9){_0x2edb07['push'](_0x2edb07['shift']());}}}(a122_0x59f7,0xa4f2a));export function insertDynamicServicesAfterServiceTree(_0x201923,_0x33f063){const _0x5dc019=a122_0x3536;if(_0x33f063[_0x5dc019(0x1c8)]===0x0)return[..._0x201923];const _0x20a92a=_0x201923[_0x5dc019(0x1c9)](_0x596f52=>_0x596f52[_0x5dc019(0x1d4)]==='service');if(_0x20a92a<0x0)return[..._0x201923,..._0x33f063];return[..._0x201923[_0x5dc019(0x1cb)](0x0,_0x20a92a+0x1),..._0x33f063,..._0x201923[_0x5dc019(0x1cb)](_0x20a92a+0x1)];}function a122_0x3536(_0x5713fd,_0x244515){_0x5713fd=_0x5713fd-0x1c8;const _0x59f734=a122_0x59f7();let _0x353673=_0x59f734[_0x5713fd];return _0x353673;}function a122_0x59f7(){const _0x2854d3=['10UILlFT','319500qjcJBR','367580GrxXAO','service','5869467sopisN','length','findIndex','824eGFLjl','slice','539JUSdxO','623787bWMObK','52146jYdsQZ','8859552ZHVbvI','548jPqCBJ'];a122_0x59f7=function(){return _0x2854d3;};return a122_0x59f7();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a123_0x5a14(_0xc85c0f,_0x554920){_0xc85c0f=_0xc85c0f-0x91;var _0x262701=a123_0x2627();var _0x5a1422=_0x262701[_0xc85c0f];return _0x5a1422;}(function(_0x157721,_0x5011d6){var _0x29b62d=a123_0x5a14,_0x3e6123=_0x157721();while(!![]){try{var _0x52c847=parseInt(_0x29b62d(0x98))/0x1*(-parseInt(_0x29b62d(0x99))/0x2)+parseInt(_0x29b62d(0x92))/0x3+-parseInt(_0x29b62d(0x96))/0x4+-parseInt(_0x29b62d(0x94))/0x5*(-parseInt(_0x29b62d(0x97))/0x6)+-parseInt(_0x29b62d(0x91))/0x7+-parseInt(_0x29b62d(0x95))/0x8+parseInt(_0x29b62d(0x93))/0x9*(parseInt(_0x29b62d(0x9a))/0xa);if(_0x52c847===_0x5011d6)break;else _0x3e6123['push'](_0x3e6123['shift']());}catch(_0x6392b4){_0x3e6123['push'](_0x3e6123['shift']());}}}(a123_0x2627,0x6d540));function a123_0x2627(){var _0x15d11c=['6918240Ixucyz','3462252NGNIYV','12xeczHu','116015PYCIWn','2xEMOKV','18477370dbXIcp','2319261fqIEOd','2080944awtCoX','9owqgCq','210260ovFHYm'];a123_0x2627=function(){return _0x15d11c;};return a123_0x2627();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.3.
|
|
2
|
-
export declare const GIT_TAG = "v2.3.
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-
|
|
1
|
+
export declare const VERSION = "2.3.2-beta.2";
|
|
2
|
+
export declare const GIT_TAG = "v2.3.2-beta.2";
|
|
3
|
+
export declare const GIT_COMMIT = "ebef0c6";
|
|
4
|
+
export declare const BUILD_TIME = "2026-09-04T08:19:26.020Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a124_0x1f20(){const _0x5c505c=['49188320fVfIDo','726QdWhxs','2.3.2-beta.2','204960GREWuj','ebef0c6','v2.3.2-beta.2','38905WoxzZS','2026-09-04T08:19:26.020Z','2736QlKjgc','3649242ZZMMxW','556wgAwOC','7737912oduNYz','4351gcXWWy','273XArrSn'];a124_0x1f20=function(){return _0x5c505c;};return a124_0x1f20();}const a124_0x3b5b4a=a124_0x45e1;(function(_0x40b2d7,_0x343306){const _0x3111bd=a124_0x45e1,_0x17c311=_0x40b2d7();while(!![]){try{const _0x5d81f5=parseInt(_0x3111bd(0x192))/0x1*(-parseInt(_0x3111bd(0x190))/0x2)+-parseInt(_0x3111bd(0x18f))/0x3+-parseInt(_0x3111bd(0x197))/0x4+parseInt(_0x3111bd(0x19a))/0x5*(-parseInt(_0x3111bd(0x195))/0x6)+parseInt(_0x3111bd(0x193))/0x7*(parseInt(_0x3111bd(0x18e))/0x8)+-parseInt(_0x3111bd(0x191))/0x9+parseInt(_0x3111bd(0x194))/0xa;if(_0x5d81f5===_0x343306)break;else _0x17c311['push'](_0x17c311['shift']());}catch(_0x10b714){_0x17c311['push'](_0x17c311['shift']());}}}(a124_0x1f20,0x9f965));function a124_0x45e1(_0x2aef82,_0xd019d2){_0x2aef82=_0x2aef82-0x18d;const _0x1f204a=a124_0x1f20();let _0x45e198=_0x1f204a[_0x2aef82];return _0x45e198;}export const VERSION=a124_0x3b5b4a(0x196);export const GIT_TAG=a124_0x3b5b4a(0x199);export const GIT_COMMIT=a124_0x3b5b4a(0x198);export const BUILD_TIME=a124_0x3b5b4a(0x18d);
|