@lovrabet/lovrabet-cli 2.3.8-beta.5 → 2.3.8-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/approval/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/import-excel.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/issue/context.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-sdk-errors.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/access-error.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-import/auto-id-runner.js +1 -1
- package/lib/services/dataset-import/excel-reader.js +1 -1
- package/lib/services/dataset-import/image-bytes.js +1 -1
- package/lib/services/dataset-import/image-ooxml.js +1 -1
- package/lib/services/dataset-import/image-runner.js +1 -1
- package/lib/services/dataset-import/metadata.js +1 -1
- package/lib/services/dataset-import/preview.js +1 -1
- package/lib/services/dataset-import/runner.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/positive-safe-integer.js +1 -1
- package/lib/utils/redaction.js +1 -1
- package/lib/utils/runtime-user-id.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/lovrabet/SKILL.md +10 -2
- package/skills/lovrabet/guides/development-intent-handoff.md +58 -0
- package/skills/lovrabet.manifest.json +4 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1028aa,_0x2a8378){const _0x5f2cf7=a110_0x3e80,_0x5c8e89=_0x1028aa();while(!![]){try{const _0x5a6596=-parseInt(_0x5f2cf7(0x1e1))/0x1*(-parseInt(_0x5f2cf7(0x1c7))/0x2)+parseInt(_0x5f2cf7(0x1e5))/0x3*(-parseInt(_0x5f2cf7(0x1db))/0x4)+-parseInt(_0x5f2cf7(0x1d4))/0x5+-parseInt(_0x5f2cf7(0x1cf))/0x6+-parseInt(_0x5f2cf7(0x1bd))/0x7+-parseInt(_0x5f2cf7(0x1e6))/0x8+-parseInt(_0x5f2cf7(0x1e0))/0x9*(-parseInt(_0x5f2cf7(0x1c8))/0xa);if(_0x5a6596===_0x2a8378)break;else _0x5c8e89['push'](_0x5c8e89['shift']());}catch(_0x35a0ac){_0x5c8e89['push'](_0x5c8e89['shift']());}}}(a110_0x5a73,0xb4e31));import{createKnowledgeClient,KNOWLEDGE_PATHS}from'@lovrabet/sdk';import{knowledgeCliError,WRITE_RECONCILIATION}from'../core/kb-sdk-errors.js';import{AsyncLocalStorage}from'node:async_hooks';import{getKbServiceDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{normalizeKbServiceOrigin}from'../core/kb-search-client.js';export function personalKnowledgePath(_0x57ea2a,_0x383215){const _0xf12246=a110_0x3e80;if(typeof _0x57ea2a!=='string'||!_0x57ea2a[_0xf12246(0x1cc)]()||_0x57ea2a[_0xf12246(0x1ef)]>0x64)throw CliErrors[_0xf12246(0x1f0)]('Personal\x20knowledge\x20appCode\x20is\x20required\x20(at\x20most\x20100\x20characters).');return KNOWLEDGE_PATHS[_0x383215==='get-one'?_0xf12246(0x1eb):_0x383215];}const commandOrigin=new AsyncLocalStorage();function invalidContract(_0x4d8c73=![]){const _0x403964=a110_0x3e80;return CliErrors[_0x403964(0x1e3)](_0x403964(0x1c5)+(_0x4d8c73?WRITE_RECONCILIATION:''));}function a110_0x3e80(_0x388419,_0x27f289){_0x388419=_0x388419-0x1bd;const _0x5a73dc=a110_0x5a73();let _0x3e8031=_0x5a73dc[_0x388419];return _0x3e8031;}function requestContext(_0x51e72d){const _0x372363=a110_0x3e80;if(typeof _0x51e72d[_0x372363(0x1cb)]!=='string'||!_0x51e72d[_0x372363(0x1cb)]['trim']()||_0x51e72d[_0x372363(0x1cb)][_0x372363(0x1ef)]>0x64)throw CliErrors['validation'](_0x372363(0x1da));if(!_0x51e72d[_0x372363(0x1e2)]?.[_0x372363(0x1cc)]())throw CliErrors[_0x372363(0x1ec)]();return{..._0x51e72d,'sdk':createKnowledgeClient({'kbServiceDomain':commandOrigin[_0x372363(0x1bf)]()??configuredOrigin(),'accessKey':_0x51e72d[_0x372363(0x1e2)],'invokeSource':PRODUCT_CONFIG[_0x372363(0x1c9)]})};}function configuredOrigin(){const _0x32f350=a110_0x3e80,_0x41e43a=getKbServiceDomain();if(!_0x41e43a)throw CliErrors[_0x32f350(0x1f0)](_0x32f350(0x1d6),_0x32f350(0x1dc));return normalizeKbServiceOrigin(_0x41e43a);}export function withKbManagementOrigin(_0x23859f){const _0x5e794c=a110_0x3e80;return commandOrigin[_0x5e794c(0x1d7)](configuredOrigin(),_0x23859f);}function a110_0x5a73(){const _0x3ac112=['A\x20current\x20personal\x20knowledge\x20version\x20is\x20required.','Personal\x20knowledge\x20title\x20is\x20required.','create','3404190qjvthh','isArray','KB\x20Service\x20is\x20not\x20configured\x20for\x20personal\x20knowledge\x20management.','run','userId','paging','Personal\x20knowledge\x20appCode\x20is\x20required.','2706596puMARJ','Configure\x20a\x20trusted\x20kbServiceDomain\x20HTTPS\x20origin\x20in\x20the\x20connection\x20settings.','min','version','pageSize','966960bTfNoE','51581imqhFr','accessKey','apiError','content','6uihVvz','6248536tmyldH','Personal\x20knowledge\x20ID\x20must\x20be\x20positive\x20integer\x20text.','page','update','test','getOne','authRequired','tableData','has','length','validation','9376570EYqjxV','string','getStore','Personal\x20knowledge\x20title\x20and\x20content\x20must\x20be\x20strings.','stringify','personal','totalCount','isSafeInteger','KB\x20Service\x20personal\x20knowledge\x20returned\x20an\x20invalid\x20response\x20contract.','title','20dSlrpt','480rbEvhx','invokeSource','add','appCode','trim','sdk','signal','4663824xjDZjm','POST'];a110_0x5a73=function(){return _0x3ac112;};return a110_0x5a73();}function positiveInteger(_0x119530){const _0x56eedb=a110_0x3e80;return Number[_0x56eedb(0x1c4)](_0x119530)&&_0x119530>=0x1;}function validId(_0x257fb2){const _0x429514=a110_0x3e80;return typeof _0x257fb2===_0x429514(0x1be)&&/^0*[1-9]\d*$/[_0x429514(0x1ea)](_0x257fb2);}export function planPersonalKnowledgeWrite(_0x3c8f5d,_0x12e7c9,_0xfc5bc,_0xeb7656){const _0x2d76fe=a110_0x3e80;if(_0xfc5bc!==undefined&&!validId(_0xfc5bc))throw CliErrors[_0x2d76fe(0x1f0)](_0x2d76fe(0x1e7));if(_0xfc5bc!==undefined&&!positiveInteger(_0xeb7656))throw CliErrors[_0x2d76fe(0x1f0)](_0x2d76fe(0x1d1));const _0x4b7fa7=personalKnowledgePath(_0x3c8f5d,_0xfc5bc===undefined?_0x2d76fe(0x1d3):_0x2d76fe(0x1e9)),_0x133ff6=JSON[_0x2d76fe(0x1c1)]({'appCode':_0x3c8f5d,'title':_0x12e7c9[_0x2d76fe(0x1c6)],'content':_0x12e7c9[_0x2d76fe(0x1e4)],..._0xfc5bc!==undefined?{'id':_0xfc5bc,'expectedVersion':_0xeb7656}:{}});return{'path':_0x4b7fa7,'method':_0x2d76fe(0x1d0),'jsonBody':_0x133ff6};}async function sdkCall(_0x54a4ac){try{return await _0x54a4ac();}catch(_0x574ed8){throw knowledgeCliError(_0x574ed8);}}export async function listPersonalKnowledge(_0x144c79){const _0x393713=a110_0x3e80,_0x44dccd=requestContext(_0x144c79),_0x4e3d4f=0x32;let _0x2c9d8b=0x1,_0x280d09,_0x4ced67;const _0xee5488=[],_0x2c676c=new Set();while(!![]){const _0x118adb=await sdkCall(()=>_0x44dccd['sdk'][_0x393713(0x1c2)][_0x393713(0x1e8)]({'appCode':_0x144c79[_0x393713(0x1cb)],'currentPage':_0x2c9d8b,'pageSize':_0x4e3d4f,'view':'summary'},{'signal':_0x44dccd[_0x393713(0x1ce)]})),_0x1d0a3e=_0x118adb[_0x393713(0x1d9)];if(!Array[_0x393713(0x1d5)](_0x118adb[_0x393713(0x1ed)])||_0x1d0a3e['currentPage']!==_0x2c9d8b||_0x1d0a3e[_0x393713(0x1df)]!==_0x4e3d4f||!Number[_0x393713(0x1c4)](_0x1d0a3e[_0x393713(0x1c3)])||_0x1d0a3e[_0x393713(0x1c3)]<0x0)throw invalidContract();const _0x21d2f0=_0x1d0a3e[_0x393713(0x1c3)];if(_0x280d09!==undefined&&_0x21d2f0!==_0x280d09)throw invalidContract();_0x280d09=_0x21d2f0;if(_0x118adb[_0x393713(0x1ed)]['length']!==Math[_0x393713(0x1dd)](_0x4e3d4f,_0x21d2f0-_0xee5488[_0x393713(0x1ef)]))throw invalidContract();for(const _0x2ba7af of _0x118adb[_0x393713(0x1ed)]){const _0x41ac32=_0x2ba7af;if(_0x41ac32[_0x393713(0x1e4)]!==null||_0x2c676c[_0x393713(0x1ee)](_0x41ac32['id']))throw invalidContract();const _0x53bf7a=await getPersonalKnowledgeAt(_0x44dccd,_0x41ac32['id']);if(_0x53bf7a[_0x393713(0x1de)]!==_0x41ac32[_0x393713(0x1de)]||_0x53bf7a['userId']!==_0x41ac32[_0x393713(0x1d8)]||_0x4ced67!==undefined&&_0x53bf7a['userId']!==_0x4ced67)throw invalidContract();_0x4ced67=_0x53bf7a[_0x393713(0x1d8)],_0x2c676c[_0x393713(0x1ca)](_0x53bf7a['id']),_0xee5488['push'](_0x53bf7a);}if(_0xee5488[_0x393713(0x1ef)]===_0x21d2f0)return _0xee5488;_0x2c9d8b++;}}export async function getPersonalKnowledge(_0x1f820b,_0xb66dc7){if(!validId(_0xb66dc7))throw CliErrors['validation']('Personal\x20knowledge\x20ID\x20must\x20be\x20positive\x20integer\x20text.');return getPersonalKnowledgeAt(requestContext(_0x1f820b),_0xb66dc7);}async function getPersonalKnowledgeAt(_0x19c198,_0xfcab54){const _0x18e1d2=a110_0x3e80;return await sdkCall(()=>_0x19c198[_0x18e1d2(0x1cd)]['personal'][_0x18e1d2(0x1eb)]({'appCode':_0x19c198['appCode'],'id':_0xfcab54},{'signal':_0x19c198[_0x18e1d2(0x1ce)]}));}export async function savePersonalKnowledge(_0xa44a3d,_0x37d8e1,_0xf1e2c8){const _0x5b4b35=a110_0x3e80;if(_0xf1e2c8!==undefined&&!validId(_0xf1e2c8))throw CliErrors[_0x5b4b35(0x1f0)](_0x5b4b35(0x1e7));if(typeof _0x37d8e1[_0x5b4b35(0x1e4)]!==_0x5b4b35(0x1be)||_0x37d8e1['title']!==undefined&&typeof _0x37d8e1[_0x5b4b35(0x1c6)]!==_0x5b4b35(0x1be))throw CliErrors[_0x5b4b35(0x1f0)](_0x5b4b35(0x1c0));const _0x10edb9=requestContext(_0xa44a3d),_0x366407=_0xf1e2c8===undefined?undefined:await getPersonalKnowledgeAt(_0x10edb9,_0xf1e2c8),_0x2dbf5f=_0x37d8e1['title']??_0x366407?.[_0x5b4b35(0x1c6)];if(typeof _0x2dbf5f!==_0x5b4b35(0x1be))throw CliErrors[_0x5b4b35(0x1f0)](_0x5b4b35(0x1d2));const _0x3b2d46={'appCode':_0xa44a3d[_0x5b4b35(0x1cb)],'title':_0x2dbf5f,'content':_0x37d8e1[_0x5b4b35(0x1e4)]},_0x290a27=await sdkCall(()=>_0xf1e2c8===undefined?_0x10edb9[_0x5b4b35(0x1cd)][_0x5b4b35(0x1c2)]['create'](_0x3b2d46,{'signal':_0x10edb9[_0x5b4b35(0x1ce)]}):_0x10edb9[_0x5b4b35(0x1cd)][_0x5b4b35(0x1c2)][_0x5b4b35(0x1e9)]({..._0x3b2d46,'id':_0xf1e2c8,'expectedVersion':_0x366407[_0x5b4b35(0x1de)]},{'signal':_0x10edb9[_0x5b4b35(0x1ce)]}));try{const _0x599304=_0x290a27,_0x1e399f=_0x366407&&(_0x366407['title']!==_0x2dbf5f['trim']()||_0x366407[_0x5b4b35(0x1e4)]!==_0x37d8e1[_0x5b4b35(0x1e4)]);if(_0x599304[_0x5b4b35(0x1c6)]!==_0x2dbf5f[_0x5b4b35(0x1cc)]()||_0x599304[_0x5b4b35(0x1e4)]!==_0x37d8e1[_0x5b4b35(0x1e4)]||_0x366407&&(_0x599304[_0x5b4b35(0x1d8)]!==_0x366407['userId']||_0x599304[_0x5b4b35(0x1de)]!==_0x366407['version']+(_0x1e399f?0x1:0x0)))throw invalidContract();const _0x15f746=await getPersonalKnowledgeAt(_0x10edb9,_0x599304['id']);if(_0x15f746['version']!==_0x599304[_0x5b4b35(0x1de)]||_0x15f746[_0x5b4b35(0x1c6)]!==_0x599304[_0x5b4b35(0x1c6)]||_0x15f746[_0x5b4b35(0x1e4)]!==_0x599304[_0x5b4b35(0x1e4)]||_0x15f746[_0x5b4b35(0x1d8)]!==_0x599304[_0x5b4b35(0x1d8)])throw invalidContract();return _0x15f746;}catch{throw invalidContract(!![]);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a111_0x3932c2=a111_0x3aee;function a111_0x3aee(_0x3e7f32,_0x2ceb0e){_0x3e7f32=_0x3e7f32-0x18b;const _0x5cf6df=a111_0x5cf6();let _0x3aee46=_0x5cf6df[_0x3e7f32];return _0x3aee46;}(function(_0xdb5c21,_0x2495be){const _0xc897=a111_0x3aee,_0x51ea69=_0xdb5c21();while(!![]){try{const _0x5bd282=-parseInt(_0xc897(0x19a))/0x1*(parseInt(_0xc897(0x18f))/0x2)+-parseInt(_0xc897(0x1a3))/0x3*(parseInt(_0xc897(0x1a1))/0x4)+-parseInt(_0xc897(0x1a5))/0x5*(parseInt(_0xc897(0x1a4))/0x6)+parseInt(_0xc897(0x1a2))/0x7+-parseInt(_0xc897(0x1ac))/0x8*(-parseInt(_0xc897(0x199))/0x9)+-parseInt(_0xc897(0x1aa))/0xa+parseInt(_0xc897(0x18b))/0xb;if(_0x5bd282===_0x2495be)break;else _0x51ea69['push'](_0x51ea69['shift']());}catch(_0x5890be){_0x51ea69['push'](_0x51ea69['shift']());}}}(a111_0x5cf6,0x8c0c8));import{KnowledgeServiceError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';export const WRITE_RECONCILIATION=a111_0x3932c2(0x19c);export function knowledgeCliError(_0x98e21b,_0xf5a6cf=![]){const _0x275c56=a111_0x3932c2,_0x28612b=_0xf5a6cf?_0x275c56(0x19f):_0x275c56(0x18c);if(!(_0x98e21b instanceof KnowledgeServiceError))return CliErrors[_0x275c56(0x191)](_0x275c56(0x19d)+_0x28612b+_0x275c56(0x1a7));const _0x2b9a0c=_0x98e21b['writeUncertain']?WRITE_RECONCILIATION:'';if(_0x98e21b['kind']===_0x275c56(0x194))return CliErrors[_0x275c56(0x1a0)]();if(_0x98e21b[_0x275c56(0x195)]===_0x275c56(0x192))return CliErrors[_0x275c56(0x192)](_0x98e21b[_0x275c56(0x193)]);if(_0x98e21b['kind']===_0x275c56(0x1a6)&&_0xf5a6cf)return new DOMException('Knowledge\x20search\x20cancelled.','AbortError');if([_0x275c56(0x1a6),_0x275c56(0x197),'network']['includes'](_0x98e21b[_0x275c56(0x195)])){const _0x885542=_0x98e21b[_0x275c56(0x195)]==='cancelled'?_0x275c56(0x19b):_0x98e21b[_0x275c56(0x195)]===_0x275c56(0x197)?_0x275c56(0x19e):'failed';return CliErrors[_0x275c56(0x18e)](_0x275c56(0x19d)+_0x28612b+_0x275c56(0x196)+_0x885542+'.'+_0x2b9a0c);}if(_0x98e21b[_0x275c56(0x198)]===0x1ad&&!_0x98e21b[_0x275c56(0x1a8)])return CliErrors[_0x275c56(0x1a9)](_0x98e21b[_0x275c56(0x193)]);if(_0x98e21b[_0x275c56(0x195)]===_0x275c56(0x18d)&&!_0xf5a6cf)return CliErrors[_0x275c56(0x191)]('KB\x20Service\x20personal\x20knowledge\x20returned\x20an\x20invalid\x20response\x20contract'+(_0x98e21b[_0x275c56(0x198)]?'\x20(HTTP\x20'+_0x98e21b[_0x275c56(0x198)]+')':'')+'.'+_0x2b9a0c);const _0x58c010=_0x98e21b[_0x275c56(0x198)]!==undefined&&!_0x98e21b[_0x275c56(0x193)][_0x275c56(0x1ab)](_0x275c56(0x190)+_0x98e21b[_0x275c56(0x198)])?'\x20(HTTP\x20'+_0x98e21b[_0x275c56(0x198)]+')':'';return CliErrors[_0x275c56(0x191)](''+_0x98e21b['message']+_0x58c010+_0x2b9a0c);}function a111_0x5cf6(){const _0x3e753d=['\x20returned\x20an\x20invalid\x20response\x20contract.','writeUncertain','rateLimited','6827550etBgrC','includes','470064zyepKx','16963837KTUIUU','personal\x20knowledge','contract','networkError','38kysbrJ','HTTP\x20','apiError','validation','message','auth','kind','\x20request\x20','timeout','status','45GQGxdq','41981PJobLX','was\x20cancelled','\x20The\x20entry\x20may\x20already\x20have\x20been\x20saved.\x20Use\x20read-only\x20detail\x20or\x20list\x20reconciliation\x20before\x20another\x20write.','KB\x20Service\x20','timed\x20out','knowledge\x20search','authRequired','2016008cQYCaL','6367781goGfdC','3OzaOio','281406rizLRt','20kaPCrB','cancelled'];a111_0x5cf6=function(){return _0x3e753d;};return a111_0x5cf6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x12ef3f,_0xd51fba){const _0x448b31=a112_0x5187,_0x2544fd=_0x12ef3f();while(!![]){try{const _0x292f6c=parseInt(_0x448b31(0x99))/0x1*(parseInt(_0x448b31(0x9b))/0x2)+-parseInt(_0x448b31(0xa3))/0x3+parseInt(_0x448b31(0x9e))/0x4*(-parseInt(_0x448b31(0xab))/0x5)+-parseInt(_0x448b31(0x9f))/0x6*(-parseInt(_0x448b31(0x9d))/0x7)+parseInt(_0x448b31(0xa7))/0x8*(parseInt(_0x448b31(0xb3))/0x9)+parseInt(_0x448b31(0xb4))/0xa*(parseInt(_0x448b31(0x9a))/0xb)+parseInt(_0x448b31(0x9c))/0xc*(-parseInt(_0x448b31(0xb1))/0xd);if(_0x292f6c===_0xd51fba)break;else _0x2544fd['push'](_0x2544fd['shift']());}catch(_0x246e69){_0x2544fd['push'](_0x2544fd['shift']());}}}(a112_0x25e3,0x947b9));function a112_0x5187(_0x369286,_0x5c71e8){_0x369286=_0x369286-0x98;const _0x25e362=a112_0x25e3();let _0x5187c3=_0x25e362[_0x369286];return _0x5187c3;}import{createKnowledgeClient,normalizeKnowledgeServiceOrigin}from'@lovrabet/sdk';function a112_0x25e3(){const _0x4cdc9c=['signal','Knowledge\x20search\x20query\x20is\x20required.','546495LbXyIb','appCode','authRequired','validation','Knowledge\x20search\x20appCode\x20is\x20required.','company','1859507nIwsWx','personal','2403153tHFmqz','1720QdsWyz','runtime','public','2490uHDCHq','48334WGnocs','498njbCWg','60epjFMH','7mhkZZm','36svqByz','5026884zDfpEJ','search','Invalid\x20--kb-service-url:\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','query','2923767YviewU','hits','trim','topK','32ZrNGIs','length'];a112_0x25e3=function(){return _0x4cdc9c;};return a112_0x25e3();}import{CliErrors}from'../errors.js';import{knowledgeCliError}from'../core/kb-sdk-errors.js';export function normalizeKbServiceOrigin(_0x1f0784){const _0x112d41=a112_0x5187;try{return normalizeKnowledgeServiceOrigin(_0x1f0784);}catch{throw CliErrors[_0x112d41(0xae)](_0x112d41(0xa1));}}export async function searchDirectKnowledge(_0x3f6240){const _0x29558b=a112_0x5187,_0x299ead=_0x3f6240[_0x29558b(0xac)][_0x29558b(0xa5)](),_0x4d7ca7=_0x3f6240[_0x29558b(0xa2)][_0x29558b(0xa5)]();if(!_0x299ead)throw CliErrors[_0x29558b(0xae)](_0x29558b(0xaf));if(!_0x3f6240['accessKey']['trim']())throw CliErrors[_0x29558b(0xad)]();if(!_0x4d7ca7)throw CliErrors['validation'](_0x29558b(0xaa));const _0x5c4302=normalizeKbServiceOrigin(_0x3f6240['serviceUrl']);try{const _0x32696d=createKnowledgeClient({'kbServiceDomain':_0x5c4302,'accessKey':_0x3f6240['accessKey'],'invokeSource':'cli:lovrabet'}),_0x394c85=await _0x32696d[_0x29558b(0xa0)]({'appCode':_0x299ead,'query':_0x4d7ca7,'scopes':[_0x29558b(0x98),_0x29558b(0xb0),_0x29558b(0xb2)],..._0x3f6240[_0x29558b(0xa6)]!==undefined?{'topK':_0x3f6240[_0x29558b(0xa6)]}:{}},{'signal':_0x3f6240[_0x29558b(0xa9)]});return{'schemaVersion':0x2,'profile':_0x29558b(0xb5),'total':_0x394c85[_0x29558b(0xa4)][_0x29558b(0xa8)],..._0x394c85};}catch(_0x3e5c7a){throw knowledgeCliError(_0x3e5c7a,!![]);}}
|
package/lib/core/sdk-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a113_0xb8a0(_0x406a20,_0x131739){_0x406a20=_0x406a20-0x118;const _0x533904=a113_0x5339();let _0xb8a003=_0x533904[_0x406a20];return _0xb8a003;}(function(_0x108bbe,_0xebdda8){const _0x31da4e=a113_0xb8a0,_0x449af2=_0x108bbe();while(!![]){try{const _0x21c5de=-parseInt(_0x31da4e(0x12d))/0x1+parseInt(_0x31da4e(0x132))/0x2+-parseInt(_0x31da4e(0x120))/0x3+parseInt(_0x31da4e(0x123))/0x4*(parseInt(_0x31da4e(0x13f))/0x5)+parseInt(_0x31da4e(0x127))/0x6+-parseInt(_0x31da4e(0x11c))/0x7+-parseInt(_0x31da4e(0x139))/0x8*(parseInt(_0x31da4e(0x12e))/0x9);if(_0x21c5de===_0xebdda8)break;else _0x449af2['push'](_0x449af2['shift']());}catch(_0x1bd495){_0x449af2['push'](_0x449af2['shift']());}}}(a113_0x5339,0xd6c3c));import{createAppClient,createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';function a113_0x5339(){const _0x321bdd=['2472832ICiAfw','update','delete','isArray','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','function','sql','16HMrpnV','dataset_','string','aggregate','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','field','445ZzcnRD','models','column','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','\x22.\x20','10994921PUILQy','execute','error',']\x20must\x20be\x20an\x20object.','2353239ylcPAH','validation','data\x20aggregate\x20--params.aggregate[','50248syoEta','map','object','getOne','6874296wXtHNT','accessKey','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','runtimeDomain','authMode','69880Vbhdna','879651TGBNwE','appCode','env','batchCreate'];a113_0x5339=function(){return _0x321bdd;};return a113_0x5339();}import{installLosslessJsonResponseParser}from'../utils/lossless-json.js';let _client,clientOptions,scopedClient,scopedOptions,restoreResponseJsonParser;export function getIdentitySdkClient(_0x1efbec,_0x36a075){const _0x48ba04=a113_0xb8a0;restoreResponseJsonParser??=installLosslessJsonResponseParser();try{return createAppClient({'accessKey':_0x1efbec,'runtimeDomain':_0x36a075,'options':{'timeout':0x7530,'redirect':_0x48ba04(0x11e),'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource']}}});}catch(_0x53ed7e){clearSdkClient();throw _0x53ed7e;}}function createRuntimeSdkClient(_0x46c09c){const _0x47d5d1=a113_0xb8a0;return restoreResponseJsonParser??=installLosslessJsonResponseParser(),createClient({'appCode':_0x46c09c['appCode'],'env':_0x46c09c[_0x47d5d1(0x130)],'runtimeDomain':_0x46c09c[_0x47d5d1(0x12b)],'authMode':_0x46c09c['authMode'],..._0x46c09c[_0x47d5d1(0x128)]?{'accessKey':_0x46c09c[_0x47d5d1(0x128)]}:{},'options':{'timeout':0x7530,'redirect':_0x47d5d1(0x11e),'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource']}}});}export function initSdkClient(_0x585e45){try{_client=createRuntimeSdkClient(_0x585e45),clientOptions={..._0x585e45};}catch(_0x8173b4){clearSdkClient();throw _0x8173b4;}}function sameOptions(_0x45dec8,_0x491b69){const _0x1c7e5e=a113_0xb8a0;return!!_0x45dec8&&_0x45dec8['appCode']===_0x491b69[_0x1c7e5e(0x12f)]&&_0x45dec8['env']===_0x491b69[_0x1c7e5e(0x130)]&&_0x45dec8[_0x1c7e5e(0x12b)]===_0x491b69[_0x1c7e5e(0x12b)]&&_0x45dec8[_0x1c7e5e(0x128)]===_0x491b69[_0x1c7e5e(0x128)]&&_0x45dec8[_0x1c7e5e(0x12c)]===_0x491b69['authMode'];}export function clearSdkClient(){_client=undefined,clientOptions=undefined,scopedClient=undefined,scopedOptions=undefined,restoreResponseJsonParser?.(),restoreResponseJsonParser=undefined;}export function getSdkClient(_0xe29414){if(_0xe29414){if(_client&&sameOptions(clientOptions,_0xe29414))return _client;if(!scopedClient||!sameOptions(scopedOptions,_0xe29414))try{scopedClient=createRuntimeSdkClient(_0xe29414),scopedOptions={..._0xe29414};}catch(_0x557cb1){clearSdkClient();throw _0x557cb1;}return scopedClient;}if(!_client)throw new Error('SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.');return _client;}function normalizeAggregateParams(_0x57195b){const _0x22c694=a113_0xb8a0,_0x52884b=_0x57195b[_0x22c694(0x13c)];if(_0x52884b===undefined)return _0x57195b;if(!Array[_0x22c694(0x135)](_0x52884b))throw CliErrors[_0x22c694(0x121)](_0x22c694(0x129));return{..._0x57195b,'aggregate':_0x52884b[_0x22c694(0x124)]((_0x554e89,_0x57adb0)=>{const _0x3557d5=_0x22c694;if(!_0x554e89||typeof _0x554e89!==_0x3557d5(0x125)||Array['isArray'](_0x554e89))throw CliErrors[_0x3557d5(0x121)]('data\x20aggregate\x20--params.aggregate['+_0x57adb0+_0x3557d5(0x11f));const _0x3897de=_0x554e89[_0x3557d5(0x119)]??_0x554e89[_0x3557d5(0x13e)];if(typeof _0x3897de!==_0x3557d5(0x13b)||_0x3897de['trim']()==='')throw CliErrors[_0x3557d5(0x121)](_0x3557d5(0x122)+_0x57adb0+_0x3557d5(0x12a));const _0xd1c68e={..._0x554e89,'column':_0x3897de};return delete _0xd1c68e[_0x3557d5(0x13e)],_0xd1c68e;})};}export async function executeData(_0x599d47,_0x532757,_0x10b16c){const _0x5f0f10=a113_0xb8a0,_0x4bc0a6=getSdkClient(),_0x4e29fd=_0x5f0f10(0x13a)+_0x599d47,_0x337572=_0x4bc0a6[_0x5f0f10(0x118)][_0x4e29fd];if(!_0x337572||typeof _0x337572[_0x532757]!==_0x5f0f10(0x137))throw new Error(_0x5f0f10(0x13d)+_0x532757+_0x5f0f10(0x11b)+'Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.');if(_0x532757===_0x5f0f10(0x131))return _0x337572[_0x5f0f10(0x131)](parseBatchCreateItemsFromParams(_0x10b16c));const _0x1fb939=_0x10b16c!==undefined&&_0x10b16c!==null&&!Array[_0x5f0f10(0x135)](_0x10b16c)?_0x10b16c:{};switch(_0x532757){case _0x5f0f10(0x126):{const _0x59edf2=_0x1fb939['id'];if(_0x59edf2===undefined||_0x59edf2===null)throw new Error(_0x5f0f10(0x11a));return _0x337572[_0x5f0f10(0x126)](_0x59edf2);}case _0x5f0f10(0x133):{const {id:_0xf7d72c,..._0x701a58}=_0x1fb939;if(_0xf7d72c===undefined||_0xf7d72c===null)throw new Error(_0x5f0f10(0x136));return _0x337572[_0x5f0f10(0x133)](_0xf7d72c,_0x701a58);}case _0x5f0f10(0x134):{const _0x11f0de=_0x1fb939['id'];if(_0x11f0de===undefined||_0x11f0de===null)throw new Error('delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0x337572['delete'](_0x11f0de);}case'aggregate':return _0x337572[_0x5f0f10(0x13c)](normalizeAggregateParams(_0x1fb939));default:return _0x337572[_0x532757](_0x1fb939);}}export async function executeSdkSql(_0x539a13,_0x433109){const _0x212b07=a113_0xb8a0,_0x2d23bf=getSdkClient();return _0x2d23bf[_0x212b07(0x138)][_0x212b07(0x11d)]({'sqlCode':_0x539a13,'params':_0x433109});}export async function executeSdkBff(_0x18901e,_0x461529){const _0x1ed85f=a113_0xb8a0,_0x781b0b=getSdkClient();return _0x781b0b['bff'][_0x1ed85f(0x11d)]({'scriptName':_0x18901e,'params':_0x461529});}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a114_0x5f0326=a114_0x3d41;(function(_0x39d0f2,_0x4e65ee){const _0x2a21f3=a114_0x3d41,_0x13c717=_0x39d0f2();while(!![]){try{const _0x431d7f=-parseInt(_0x2a21f3(0x6d))/0x1*(-parseInt(_0x2a21f3(0x6a))/0x2)+parseInt(_0x2a21f3(0x7f))/0x3+-parseInt(_0x2a21f3(0x6c))/0x4+-parseInt(_0x2a21f3(0x7b))/0x5+-parseInt(_0x2a21f3(0x71))/0x6*(parseInt(_0x2a21f3(0x74))/0x7)+parseInt(_0x2a21f3(0x7a))/0x8+-parseInt(_0x2a21f3(0x75))/0x9*(-parseInt(_0x2a21f3(0x7d))/0xa);if(_0x431d7f===_0x4e65ee)break;else _0x13c717['push'](_0x13c717['shift']());}catch(_0x3b617e){_0x13c717['push'](_0x13c717['shift']());}}}(a114_0x4944,0x8d9c9));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a114_0x3d41(_0x5cf66b,_0x1e1059){_0x5cf66b=_0x5cf66b-0x6a;const _0x494499=a114_0x4944();let _0x3d41a1=_0x494499[_0x5cf66b];return _0x3d41a1;}import{PRODUCT_CONFIG}from'./constant/product.js';function a114_0x4944(){const _0x2994df=['543456jVZnre','2QBhVbA','Use\x20the\x20native\x20`lovrabet`\x20tool\x20with\x20argv\x20containing\x20only\x20the\x20tokens\x20after\x20`lovrabet`;\x20do\x20not\x20raise\x20riskLevel\x20or\x20retry\x20through\x20bash.','3340616DujmrQ','25634DUerGC','permission_denied','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','\x20file.','41358RDatuk','Command\x20`','API\x20error\x20code:\x20202.\x20Check\x20the\x20current\x20user\x27s\x20application,\x20dataset,\x20and\x20operation\x20permissions.\x20Keep\x20the\x20current\x20identity;\x20do\x20not\x20retry\x20through\x20a\x20different\x20endpoint\x20or\x20AccessKey.','553iTIrAL','9uUcQtp','native_tool_required','\x20auth\x20login`.','Permission\x20denied.','rate_limited','3804280ijloBa','2765530IewMvH','`\x20cannot\x20run\x20through\x20the\x20shell\x20CLI\x20because\x20this\x20execution\x20host\x20delegates\x20Lovrabet\x20writes\x20to\x20the\x20native\x20tool.','18305270cpOtHq','newConfigFileName'];a114_0x4944=function(){return _0x2994df;};return a114_0x4944();}export{CliError};const baseCliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[a114_0x5f0326(0x7e)]+'\x20or\x20run\x20`'+CLI_BIN_NAME+a114_0x5f0326(0x77),'configMissingHint':'Set\x20appcode\x20via\x20--appcode\x20or\x20'+PRODUCT_CONFIG[a114_0x5f0326(0x7e)]+'.','notInProjectHint':a114_0x5f0326(0x6f)+PRODUCT_CONFIG[a114_0x5f0326(0x7e)]+a114_0x5f0326(0x70)});export const CliErrors={...baseCliErrors,'permissionDenied':()=>new CliError(a114_0x5f0326(0x6e),0x2,a114_0x5f0326(0x78),a114_0x5f0326(0x73)),'rateLimited':(_0x3f05ef,_0x311ee0)=>new CliError(a114_0x5f0326(0x79),0x2,_0x3f05ef,_0x311ee0),'nativeToolRequired':_0x2f55ac=>new CliError(a114_0x5f0326(0x76),0x1,a114_0x5f0326(0x72)+_0x2f55ac+a114_0x5f0326(0x7c),a114_0x5f0326(0x6b))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5c398f,_0x3d716a){const _0x4b2cc4=a115_0x1e4e,_0x1e9869=_0x5c398f();while(!![]){try{const _0x2a1eca=parseInt(_0x4b2cc4(0xa2))/0x1*(-parseInt(_0x4b2cc4(0xa1))/0x2)+parseInt(_0x4b2cc4(0xb0))/0x3*(parseInt(_0x4b2cc4(0xad))/0x4)+parseInt(_0x4b2cc4(0xa8))/0x5*(parseInt(_0x4b2cc4(0x9d))/0x6)+-parseInt(_0x4b2cc4(0x9c))/0x7*(parseInt(_0x4b2cc4(0xae))/0x8)+-parseInt(_0x4b2cc4(0xa6))/0x9+parseInt(_0x4b2cc4(0xa0))/0xa+parseInt(_0x4b2cc4(0xac))/0xb*(-parseInt(_0x4b2cc4(0x9e))/0xc);if(_0x2a1eca===_0x3d716a)break;else _0x1e9869['push'](_0x1e9869['shift']());}catch(_0x33d114){_0x1e9869['push'](_0x1e9869['shift']());}}}(a115_0x1e8f,0x4d49c));import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a115_0x1e4e(_0x312cb7,_0x36b2ef){_0x312cb7=_0x312cb7-0x9a;const _0x1e8f50=a115_0x1e8f();let _0x1e4ef1=_0x1e8f50[_0x312cb7];return _0x1e4ef1;}export function readApiErrorCode(_0x5d8e94){const _0x26bd54=a115_0x1e4e;if(!_0x5d8e94||typeof _0x5d8e94!==_0x26bd54(0xa9)||Array[_0x26bd54(0xaa)](_0x5d8e94))return undefined;const _0x61be95=_0x5d8e94;for(const _0x44460e of[_0x61be95[_0x26bd54(0xa5)],_0x61be95['error']]){if(typeof _0x44460e===_0x26bd54(0xa3)&&_0x44460e[_0x26bd54(0xa7)]())return _0x44460e['trim']();if(typeof _0x44460e===_0x26bd54(0x9f)&&Number['isFinite'](_0x44460e))return String(_0x44460e);}return undefined;}export function createAccessError(_0x40d688,_0x16121c){const _0x1b4c0d=a115_0x1e4e,_0x3014e1=readApiErrorCode(_0x40d688)??String(_0x16121c??'');if(_0x3014e1===_0x1b4c0d(0xab))return CliErrors[_0x1b4c0d(0x9a)]();if(_0x3014e1===_0x1b4c0d(0xaf))return CliErrors[_0x1b4c0d(0xb1)](_0x1b4c0d(0x9b)+CLI_BIN_NAME+_0x1b4c0d(0xa4));return undefined;}function a115_0x1e8f(){const _0x485b1b=['9904hVfpLO','string','\x20auth\x20login`.','errorCode','1229256cPeZSV','trim','5JmzTDZ','object','isArray','202','2805CxHmHD','448068PKFsRC','2163704PGRuer','201','3QFgGOM','authRequired','permissionDenied','API\x20error\x20code:\x20201.\x20Verify\x20the\x20configured\x20AccessKey\x20or\x20run\x20`','7PkLKJJ','2842062xMQODl','13128CPVwiA','number','5753590yDjCYR','32AEiYbc'];a115_0x1e8f=function(){return _0x485b1b;};return a115_0x1e8f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a116_0x4ea1(){var _0x537cff=['212376WGJgvN','15282NIXCkM','451EQQOQR','10xHRNZI','662361QULiHS','2583NwsnSq','24QKZBtE','798390Xcgxql','404070joJFrr','2184490pqDZgl','696249lJCSOl'];a116_0x4ea1=function(){return _0x537cff;};return a116_0x4ea1();}(function(_0x5cc2fe,_0x44fd58){var _0xe33398=a116_0x4908,_0x1ecb46=_0x5cc2fe();while(!![]){try{var _0x282605=-parseInt(_0xe33398(0x18c))/0x1+-parseInt(_0xe33398(0x192))/0x2*(parseInt(_0xe33398(0x193))/0x3)+-parseInt(_0xe33398(0x18f))/0x4+-parseInt(_0xe33398(0x18d))/0x5+parseInt(_0xe33398(0x190))/0x6*(-parseInt(_0xe33398(0x194))/0x7)+-parseInt(_0xe33398(0x195))/0x8*(-parseInt(_0xe33398(0x18e))/0x9)+-parseInt(_0xe33398(0x18b))/0xa*(-parseInt(_0xe33398(0x191))/0xb);if(_0x282605===_0x44fd58)break;else _0x1ecb46['push'](_0x1ecb46['shift']());}catch(_0xa71a87){_0x1ecb46['push'](_0x1ecb46['shift']());}}}(a116_0x4ea1,0x8a95a));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a116_0x12053c}from'@lovrabet/cli-framework';function a116_0x4908(_0x1353fa,_0x3f481f){_0x1353fa=_0x1353fa-0x18b;var _0x4ea1c4=a116_0x4ea1();var _0x49082b=_0x4ea1c4[_0x1353fa];return _0x49082b;}export function buildAllFlags(_0x441854){return a116_0x12053c(_0x441854,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
|
package/lib/framework/dryrun.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x53b058,_0x25716d){const _0x5df80c=a117_0x4466,_0x8cb4b2=_0x53b058();while(!![]){try{const _0x4f6f92=-parseInt(_0x5df80c(0x129))/0x1+parseInt(_0x5df80c(0x12e))/0x2+parseInt(_0x5df80c(0x128))/0x3+parseInt(_0x5df80c(0x126))/0x4+parseInt(_0x5df80c(0x12f))/0x5*(parseInt(_0x5df80c(0x12b))/0x6)+-parseInt(_0x5df80c(0x127))/0x7+-parseInt(_0x5df80c(0x12c))/0x8;if(_0x4f6f92===_0x25716d)break;else _0x8cb4b2['push'](_0x8cb4b2['shift']());}catch(_0xa40fa7){_0x8cb4b2['push'](_0x8cb4b2['shift']());}}}(a117_0xf3f4,0x4b1f9));function a117_0xf3f4(){const _0x157be1=['description','1028714QSVqEe','1160415CmEVAV','955940LOAZrC','4188121rahvhq','1075392xBWgrv','178222uWnfeO','body','6brGJDX','2077272qjiidM'];a117_0xf3f4=function(){return _0x157be1;};return a117_0xf3f4();}function a117_0x4466(_0x58a5fc,_0x389b15){_0x58a5fc=_0x58a5fc-0x126;const _0xf3f47=a117_0xf3f4();let _0x4466f5=_0xf3f47[_0x58a5fc];return _0x4466f5;}export function dryRun(_0x2d91fb,_0x3f22c4){const _0x3c215c={'method':_0x2d91fb,'url':_0x3f22c4},_0x33f7d3={'body'(_0x186015){const _0x5dcf18=a117_0x4466;return _0x3c215c[_0x5dcf18(0x12a)]=_0x186015,_0x33f7d3;},'description'(_0x12b21f){const _0x3bcc69=a117_0x4466;return _0x3c215c[_0x3bcc69(0x12d)]=_0x12b21f,_0x33f7d3;},'build'(){return{..._0x3c215c};}};return _0x33f7d3;}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a118_0xd75fd0=a118_0x3950;(function(_0x228d4a,_0x133554){const _0x429a44=a118_0x3950,_0x7cd5a2=_0x228d4a();while(!![]){try{const _0x22cc89=-parseInt(_0x429a44(0x19e))/0x1*(-parseInt(_0x429a44(0x19f))/0x2)+-parseInt(_0x429a44(0x199))/0x3*(parseInt(_0x429a44(0x19d))/0x4)+parseInt(_0x429a44(0x198))/0x5*(parseInt(_0x429a44(0x1a0))/0x6)+parseInt(_0x429a44(0x19a))/0x7*(-parseInt(_0x429a44(0x195))/0x8)+-parseInt(_0x429a44(0x19c))/0x9+-parseInt(_0x429a44(0x194))/0xa+parseInt(_0x429a44(0x196))/0xb;if(_0x22cc89===_0x133554)break;else _0x7cd5a2['push'](_0x7cd5a2['shift']());}catch(_0x59e1ac){_0x7cd5a2['push'](_0x7cd5a2['shift']());}}}(a118_0x2bf1,0x27997));function a118_0x3950(_0x1e2c48,_0x34dc00){_0x1e2c48=_0x1e2c48-0x194;const _0x2bf1eb=a118_0x2bf1();let _0x39506e=_0x2bf1eb[_0x1e2c48];return _0x39506e;}import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a118_0xd75fd0(0x197)];function a118_0x2bf1(){const _0x52fc76=['24632LXlmTC','6809858HWcAPc','parseFlags','19555owJFKf','201QUMrAG','413ByDDwb','validateFlags','2531520pPeBVE','6648dopjHN','1UaaMUM','360786OzLFbZ','6wzKxxz','668880MTYeTa'];a118_0x2bf1=function(){return _0x52fc76;};return a118_0x2bf1();}export const validateFlags=helpers[a118_0xd75fd0(0x19b)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x24f27f,_0x16aac4){const _0x303833=a119_0x3e86,_0x3b2b9c=_0x24f27f();while(!![]){try{const _0x1746a3=parseInt(_0x303833(0x106))/0x1+-parseInt(_0x303833(0x101))/0x2+parseInt(_0x303833(0x107))/0x3+parseInt(_0x303833(0xfc))/0x4*(-parseInt(_0x303833(0xfe))/0x5)+-parseInt(_0x303833(0xf7))/0x6*(-parseInt(_0x303833(0xfd))/0x7)+parseInt(_0x303833(0xff))/0x8*(-parseInt(_0x303833(0x103))/0x9)+parseInt(_0x303833(0x108))/0xa;if(_0x1746a3===_0x16aac4)break;else _0x3b2b9c['push'](_0x3b2b9c['shift']());}catch(_0x46370e){_0x3b2b9c['push'](_0x3b2b9c['shift']());}}}(a119_0xbf8e,0x66cc1));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';function a119_0x3e86(_0x1ede54,_0x1ff07f){_0x1ede54=_0x1ede54-0xf6;const _0xbf8e53=a119_0xbf8e();let _0x3e860e=_0xbf8e53[_0x1ede54];return _0x3e860e;}import{getDynamicServiceDefinitions,getDynamicServiceEntry,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a119_0xbf8e(){const _0xa0c84e=['service','generateFullHelp','get','1332824YwiWWY','2610769ybYtPG','5DksPdS','176144NjmtXS','generateCommandHelp','562418AiUvGU','map','279NQQaLr','Requires\x20appcode\x20(set\x20via\x20','generateServiceHelp','156757rSIscZ','849873ZCHRPs','5320480WJNfRQ','has','12VanoQN','newConfigFileName'];a119_0xbf8e=function(){return _0xa0c84e;};return a119_0xbf8e();}import{PRODUCT_CONFIG}from'../constant/product.js';function createGenerators(){const _0x25e8b9=a119_0x3e86;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries()),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x25e8b9(0x104)+PRODUCT_CONFIG[_0x25e8b9(0xf8)]+'\x20or\x20--appcode).'});}export function generateCommandHelp(_0x34d38c){const _0x570a6b=a119_0x3e86;return createGenerators()[_0x570a6b(0x100)](_0x34d38c);}export function generateServiceHelp(_0x4af9d7){const _0x1f21ae=a119_0x3e86;return createGenerators()[_0x1f21ae(0x105)](_0x4af9d7);}export function generateFullHelp(){const _0x50c16f=a119_0x3e86;return createGenerators()[_0x50c16f(0xfa)]();}function getAnyServiceEntry(_0x7af248){const _0x333923=getServiceEntry(_0x7af248);if(_0x333923)return _0x333923;try{return getDynamicServiceEntry(_0x7af248);}catch{return undefined;}}function getAnyServiceDefinitions(_0x42425d){const _0x2144b0=a119_0x3e86,_0x245735=serviceGroups[_0x2144b0(0xfb)](_0x42425d);if(_0x245735)return _0x245735;try{return getDynamicServiceDefinitions(_0x42425d);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x18600d=a119_0x3e86,_0x573410=new Set(serviceRegistry[_0x18600d(0x102)](_0x20eddc=>_0x20eddc['service']));try{return listDynamicServiceEntries()['filter'](_0x33acb7=>!_0x573410[_0x18600d(0xf6)](_0x33acb7[_0x18600d(0xf9)]));}catch{return[];}}
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a120_0x338b(){var _0x4a8660=['2673zQPnDW','12130knCPsF','9288609FCodCz','2592WrsPja','239890Udjivr','463930yNaekP','6QTFKGo','12dMSYNs','2507440RhyVCv','482MFKAbS','173078SNtQaZ'];a120_0x338b=function(){return _0x4a8660;};return a120_0x338b();}(function(_0x45eb6e,_0x4398a1){var _0x3ee137=a120_0x10b1,_0xc74f78=_0x45eb6e();while(!![]){try{var _0x40ed75=-parseInt(_0x3ee137(0x137))/0x1+parseInt(_0x3ee137(0x136))/0x2*(-parseInt(_0x3ee137(0x138))/0x3)+-parseInt(_0x3ee137(0x13f))/0x4*(parseInt(_0x3ee137(0x13d))/0x5)+-parseInt(_0x3ee137(0x13e))/0x6*(-parseInt(_0x3ee137(0x13c))/0x7)+parseInt(_0x3ee137(0x135))/0x8+parseInt(_0x3ee137(0x13b))/0x9*(-parseInt(_0x3ee137(0x139))/0xa)+parseInt(_0x3ee137(0x13a))/0xb;if(_0x40ed75===_0x4398a1)break;else _0xc74f78['push'](_0xc74f78['shift']());}catch(_0x4d94b9){_0xc74f78['push'](_0xc74f78['shift']());}}}(a120_0x338b,0x2b1e0));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a120_0x10b1(_0x2314f2,_0xccb77c){_0x2314f2=_0x2314f2-0x135;var _0x338b80=a120_0x338b();var _0x10b1d9=_0x338b80[_0x2314f2];return _0x10b1d9;}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x521492,_0x2dc7d0){const _0x19ee23=a121_0x5e24,_0x3125a6=_0x521492();while(!![]){try{const _0x5829c7=parseInt(_0x19ee23(0x1a2))/0x1*(parseInt(_0x19ee23(0x1a4))/0x2)+-parseInt(_0x19ee23(0x19f))/0x3*(-parseInt(_0x19ee23(0x19a))/0x4)+parseInt(_0x19ee23(0x1a5))/0x5+-parseInt(_0x19ee23(0x19c))/0x6*(parseInt(_0x19ee23(0x198))/0x7)+parseInt(_0x19ee23(0x19b))/0x8*(-parseInt(_0x19ee23(0x199))/0x9)+-parseInt(_0x19ee23(0x196))/0xa+-parseInt(_0x19ee23(0x195))/0xb*(-parseInt(_0x19ee23(0x19d))/0xc);if(_0x5829c7===_0x2dc7d0)break;else _0x3125a6['push'](_0x3125a6['shift']());}catch(_0x8cc91f){_0x3125a6['push'](_0x3125a6['shift']());}}}(a121_0x210e,0x9bc96));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a121_0x210e(){const _0x2ad41a=['message','url','1804DwciUX','10131700sZdZnb','pretty','7720594xkDAVj','6845355YciwdG','9488sLHwfz','8YziZzp','6yTNXMj','100752myJZxZ','error','987WfVheu','format','_notice','183Djvwfn','update','13198XRWqyo','749300AZXudS'];a121_0x210e=function(){return _0x2ad41a;};return a121_0x210e();}function a121_0x5e24(_0x557abf,_0x4cfc20){_0x557abf=_0x557abf-0x195;const _0x210e9f=a121_0x210e();let _0x5e24cb=_0x210e9f[_0x557abf];return _0x5e24cb;}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x4d054a,_0x3d777c){const _0x161b59=a121_0x5e24,_0x54a8c5=_0x4d054a[_0x161b59(0x1a1)],{_notice:_0x3d23d9,..._0x25124f}=_0x4d054a;void _0x3d23d9,baseFormatOutput(_0x25124f,_0x3d777c),_0x3d777c[_0x161b59(0x1a0)]===_0x161b59(0x197)&&printPrettyNotice(_0x54a8c5);}function printPrettyNotice(_0x47b5a9){const _0x2ba633=a121_0x5e24;if(!_0x47b5a9?.[_0x2ba633(0x1a3)])return;console[_0x2ba633(0x19e)](_0x47b5a9['update'][_0x2ba633(0x1a6)]+'\x20('+_0x47b5a9[_0x2ba633(0x1a3)][_0x2ba633(0x1a7)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3e2ef3,_0x167f16){const _0x1871da=a122_0x27fd,_0xeb8650=_0x3e2ef3();while(!![]){try{const _0x19163f=parseInt(_0x1871da(0x6e))/0x1+-parseInt(_0x1871da(0x92))/0x2*(parseInt(_0x1871da(0x77))/0x3)+-parseInt(_0x1871da(0x7c))/0x4*(-parseInt(_0x1871da(0x82))/0x5)+parseInt(_0x1871da(0x72))/0x6*(parseInt(_0x1871da(0x74))/0x7)+parseInt(_0x1871da(0x7d))/0x8+-parseInt(_0x1871da(0x85))/0x9+-parseInt(_0x1871da(0x75))/0xa;if(_0x19163f===_0x167f16)break;else _0xeb8650['push'](_0xeb8650['shift']());}catch(_0x4aa667){_0xeb8650['push'](_0xeb8650['shift']());}}}(a122_0x106b,0xed940));export function toKebab(_0x55da7f){const _0x281feb=a122_0x27fd;return _0x55da7f[_0x281feb(0x71)](/_/g,'-')[_0x281feb(0x71)](/-([A-Z]+)/g,(_0x22012e,_0x4b7978)=>'-'+_0x4b7978[_0x281feb(0x80)]())[_0x281feb(0x71)](/([a-z0-9])([A-Z])/g,(_0x6f44e4,_0x6eb6f7,_0x4a9be8)=>_0x6eb6f7+'-'+_0x4a9be8)['toLowerCase']();}function buildKnownFlags(_0x55f260){const _0x28ed13=a122_0x27fd,_0x407349=new Set();for(const _0x4800a4 of _0x55f260){_0x407349[_0x28ed13(0x88)](_0x4800a4[_0x28ed13(0x89)]),_0x407349[_0x28ed13(0x88)](toCamelCase(_0x4800a4[_0x28ed13(0x89)]));}for(const _0xfa8228 of[_0x28ed13(0x6d),'dryRun',_0x28ed13(0x8e),_0x28ed13(0x8c)]){_0x407349[_0x28ed13(0x88)](_0xfa8228);}for(const _0x2c3c7e of[_0x28ed13(0x8b),_0x28ed13(0x87),_0x28ed13(0x91),_0x28ed13(0x7b),_0x28ed13(0x8f),'non-interactive','ci','global','version']){_0x407349[_0x28ed13(0x88)](_0x2c3c7e);}return _0x407349;}function buildFlagTypeMap(_0x5cc4c9){const _0x1f8257=a122_0x27fd,_0x30c5bd=new Map();for(const _0x4608b2 of _0x5cc4c9){_0x30c5bd[_0x1f8257(0x76)](_0x4608b2[_0x1f8257(0x89)],_0x4608b2[_0x1f8257(0x70)]),_0x30c5bd[_0x1f8257(0x76)](toCamelCase(_0x4608b2[_0x1f8257(0x89)]),_0x4608b2[_0x1f8257(0x70)]);}return _0x30c5bd;}function toCamelCase(_0x25772c){const _0x1b869d=a122_0x27fd;return _0x25772c[_0x1b869d(0x71)](/-([a-z])/g,(_0x482541,_0x56e0ba)=>_0x56e0ba['toUpperCase']());}function a122_0x106b(){const _0x425a85=['get','boolean','13954716FfJlvi','push','env','add','name','corrected','help','format','keys','yes','nonInteractive','sticky','appcode','1314636TssbQz','dry-run','1699950mrvEqJ','indexOf','type','replace','12VxNiLu','has','242809GyqNXF','3789940AWFuLP','set','6jeCHAp','length','entries','slice','app','1165828GgNuuS','10256976kmbVMx','string','number','toLowerCase','original','20YrhOAm'];a122_0x106b=function(){return _0x425a85;};return a122_0x106b();}function aliasHandler(_0x2e3c68,_0x3ccaa7){const _0x596a84=a122_0x27fd,_0x2e68bb=[];for(const _0x418f5a of Object[_0x596a84(0x8d)](_0x2e3c68)){if(_0x3ccaa7[_0x596a84(0x73)](_0x418f5a))continue;const _0x3575a5=toKebab(_0x418f5a);_0x3575a5!==_0x418f5a&&_0x3ccaa7[_0x596a84(0x73)](_0x3575a5)&&_0x2e68bb[_0x596a84(0x86)]({'original':_0x418f5a,'corrected':_0x3575a5,'handler':'alias'});}return _0x2e68bb;}function stickyHandler(_0x1f1d42,_0x74e92a,_0x100b6f){const _0x1af6b8=a122_0x27fd,_0xbbc6e0=[];for(const [_0x59ee43,_0x4bc5e0]of Object[_0x1af6b8(0x79)](_0x1f1d42)){if(_0x4bc5e0!==!![])continue;for(let _0x4576a3=_0x59ee43[_0x1af6b8(0x78)]-0x1;_0x4576a3>0x0;_0x4576a3--){const _0x1cbc0a=_0x59ee43['slice'](0x0,_0x4576a3),_0x2de08a=_0x59ee43[_0x1af6b8(0x7a)](_0x4576a3),_0x4d2d09=toKebab(_0x1cbc0a),_0x2ea7ee=toCamelCase(_0x1cbc0a),_0x30aa94=_0x74e92a[_0x1af6b8(0x73)](_0x1cbc0a)?_0x1cbc0a:_0x74e92a[_0x1af6b8(0x73)](_0x4d2d09)?_0x4d2d09:_0x74e92a[_0x1af6b8(0x73)](_0x2ea7ee)?_0x2ea7ee:null;if(!_0x30aa94)continue;const _0x198b7d=_0x100b6f[_0x1af6b8(0x83)](_0x30aa94)??_0x1af6b8(0x7e);let _0x549eea;if(_0x198b7d===_0x1af6b8(0x7f)){const _0x49ea25=Number(_0x2de08a);if(isNaN(_0x49ea25)||_0x2de08a==='')continue;_0x549eea=_0x49ea25;}else{if(_0x198b7d===_0x1af6b8(0x84))continue;else{if(_0x2de08a==='')continue;_0x549eea=_0x2de08a;}}_0xbbc6e0[_0x1af6b8(0x86)]({'original':_0x59ee43,'corrected':_0x30aa94+'='+_0x549eea,'handler':_0x1af6b8(0x90)});break;}}return _0xbbc6e0;}function a122_0x27fd(_0x100de5,_0x3a56df){_0x100de5=_0x100de5-0x6d;const _0x106b4a=a122_0x106b();let _0x27fd3a=_0x106b4a[_0x100de5];return _0x27fd3a;}export function correctFlags(_0x46c9ef,_0x5b322d){const _0x7b6e7b=a122_0x27fd,_0x1cebaf=buildKnownFlags(_0x5b322d),_0x399d0d=buildFlagTypeMap(_0x5b322d),_0x10fd08=aliasHandler(_0x46c9ef,_0x1cebaf),_0x156895=stickyHandler(_0x46c9ef,_0x1cebaf,_0x399d0d),_0x4b0810=[..._0x10fd08,..._0x156895];if(_0x4b0810['length']===0x0)return{'flags':_0x46c9ef,'corrections':[]};const _0x284dfd={..._0x46c9ef},_0x92aa14=new Set();for(const _0x49061d of _0x10fd08){_0x284dfd[_0x49061d[_0x7b6e7b(0x8a)]]=_0x46c9ef[_0x49061d[_0x7b6e7b(0x81)]],_0x92aa14[_0x7b6e7b(0x88)](_0x49061d[_0x7b6e7b(0x81)]);}for(const _0xab13a0 of _0x156895){const _0x233643=_0xab13a0[_0x7b6e7b(0x8a)][_0x7b6e7b(0x6f)]('='),_0x347d36=_0xab13a0[_0x7b6e7b(0x8a)]['slice'](0x0,_0x233643),_0x490af5=_0xab13a0[_0x7b6e7b(0x8a)][_0x7b6e7b(0x7a)](_0x233643+0x1),_0xe2046b=_0x399d0d['get'](_0x347d36)??'string';_0xe2046b==='number'?_0x284dfd[_0x347d36]=Number(_0x490af5):_0x284dfd[_0x347d36]=_0x490af5,_0x92aa14[_0x7b6e7b(0x88)](_0xab13a0[_0x7b6e7b(0x81)]);}for(const _0x37e40c of _0x92aa14){delete _0x284dfd[_0x37e40c];}return{'flags':_0x284dfd,'corrections':_0x4b0810};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a123_0x4dfa86=a123_0x39bf;(function(_0x5e8664,_0x31aa94){const _0x41231f=a123_0x39bf,_0x573cda=_0x5e8664();while(!![]){try{const _0x5dcac4=parseInt(_0x41231f(0x1ed))/0x1*(-parseInt(_0x41231f(0x1ee))/0x2)+parseInt(_0x41231f(0x1fd))/0x3*(-parseInt(_0x41231f(0x1ff))/0x4)+-parseInt(_0x41231f(0x20e))/0x5+-parseInt(_0x41231f(0x201))/0x6*(parseInt(_0x41231f(0x205))/0x7)+parseInt(_0x41231f(0x20a))/0x8*(parseInt(_0x41231f(0x1f0))/0x9)+-parseInt(_0x41231f(0x1f2))/0xa+parseInt(_0x41231f(0x1f3))/0xb*(parseInt(_0x41231f(0x210))/0xc);if(_0x5dcac4===_0x31aa94)break;else _0x573cda['push'](_0x573cda['shift']());}catch(_0x49d1ca){_0x573cda['push'](_0x573cda['shift']());}}}(a123_0x5d2c,0x3a677));import{CliErrors}from'../errors.js';function a123_0x5d2c(){const _0x42e2f7=['\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.','1584QBWlwR','MAX_QPS_LIMIT','452840csZuAv','1628vwPbXZ','entries','string','trim','object','errorCode','Retry\x20after\x20','EXCEED_MAX_QPS_LIMIT','Retry-After','isInteger','1020447laApun','Request\x20rate\x20limit\x20exceeded.','4RdrKTA','call','18Jlnuvr','toLowerCase','isArray','Retry\x20after\x20a\x20short\x20delay.','1037351ndggHI','number','has','\x20seconds\x20before\x20retrying.','IP_RATE_LIMIT_EXCEEDED','8488pQHYBo','retry-after','rateLimited','retryAfterSeconds','1072225PbIgtZ','test','121236omYygP','retryAfter','message','50yvoAAO','15932dYftUE'];a123_0x5d2c=function(){return _0x42e2f7;};return a123_0x5d2c();}const RATE_LIMIT_ERROR_CODES=new Set([a123_0x4dfa86(0x1fa),a123_0x4dfa86(0x1f1),a123_0x4dfa86(0x209)]);function nonEmptyString(_0x5bc6ec){const _0x22f563=a123_0x4dfa86;if(typeof _0x5bc6ec!==_0x22f563(0x1f5))return undefined;const _0x34b712=_0x5bc6ec[_0x22f563(0x1f6)]();return _0x34b712||undefined;}function a123_0x39bf(_0x42817d,_0x4f8239){_0x42817d=_0x42817d-0x1ed;const _0x5d2c82=a123_0x5d2c();let _0x39bf34=_0x5d2c82[_0x42817d];return _0x39bf34;}function buildRetryHint(_0x1da7ec){const _0x114eac=a123_0x4dfa86,_0x2ecbde=nonEmptyString(_0x1da7ec),_0x253fc3=_0x2ecbde?/^\d+$/[_0x114eac(0x20f)](_0x2ecbde)?'Wait\x20'+_0x2ecbde+_0x114eac(0x208):_0x114eac(0x1f9)+_0x2ecbde+'.':_0x114eac(0x204);return _0x253fc3+_0x114eac(0x1ef);}export function createRateLimitError(_0x540c7f){const _0x2370b3=a123_0x4dfa86,_0x17195e=nonEmptyString(_0x540c7f[_0x2370b3(0x1f8)])?.['toUpperCase'](),_0x56fe85=Number(_0x540c7f['status'])===0x1ad||_0x17195e!==undefined&&RATE_LIMIT_ERROR_CODES[_0x2370b3(0x207)](_0x17195e);if(!_0x56fe85)return undefined;return CliErrors[_0x2370b3(0x20c)](nonEmptyString(_0x540c7f[_0x2370b3(0x212)])??_0x2370b3(0x1fe),buildRetryHint(_0x540c7f[_0x2370b3(0x211)]));}export function readRetryAfter(_0x1c7756){const _0x4dc4a3=a123_0x4dfa86;if(!_0x1c7756||typeof _0x1c7756!==_0x4dc4a3(0x1f7))return undefined;const _0x571c16=_0x1c7756['get'];if(typeof _0x571c16==='function'){const _0x56fd3f=_0x571c16['call'](_0x1c7756,_0x4dc4a3(0x1fb))??_0x571c16[_0x4dc4a3(0x200)](_0x1c7756,_0x4dc4a3(0x20b));return nonEmptyString(_0x56fd3f);}for(const [_0x5e48ca,_0x2d345d]of Object[_0x4dc4a3(0x1f4)](_0x1c7756)){if(_0x5e48ca[_0x4dc4a3(0x202)]()==='retry-after')return nonEmptyString(_0x2d345d)??(typeof _0x2d345d===_0x4dc4a3(0x206)?String(_0x2d345d):undefined);}return undefined;}export function readRetryAfterSeconds(_0x8bdb4){const _0x8e6154=a123_0x4dfa86;if(!_0x8bdb4||typeof _0x8bdb4!=='object'||Array[_0x8e6154(0x203)](_0x8bdb4))return undefined;const _0x1e6c16=_0x8bdb4[_0x8e6154(0x20d)];if(typeof _0x1e6c16===_0x8e6154(0x206))return Number[_0x8e6154(0x1fc)](_0x1e6c16)&&_0x1e6c16>=0x0?String(_0x1e6c16):undefined;const _0x571f1a=nonEmptyString(_0x1e6c16);return _0x571f1a&&/^\d+$/[_0x8e6154(0x20f)](_0x571f1a)?_0x571f1a:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a124_0x3f473e=a124_0x42f0;(function(_0x1f16a3,_0x5d8bca){const _0x49f1dc=a124_0x42f0,_0x47b9cf=_0x1f16a3();while(!![]){try{const _0x19c4c6=-parseInt(_0x49f1dc(0x10a))/0x1*(parseInt(_0x49f1dc(0x113))/0x2)+parseInt(_0x49f1dc(0x12d))/0x3*(-parseInt(_0x49f1dc(0x10b))/0x4)+-parseInt(_0x49f1dc(0x10e))/0x5*(-parseInt(_0x49f1dc(0x10d))/0x6)+parseInt(_0x49f1dc(0x104))/0x7*(-parseInt(_0x49f1dc(0x11b))/0x8)+parseInt(_0x49f1dc(0x119))/0x9*(parseInt(_0x49f1dc(0x109))/0xa)+-parseInt(_0x49f1dc(0x105))/0xb*(parseInt(_0x49f1dc(0x11a))/0xc)+-parseInt(_0x49f1dc(0x12c))/0xd*(-parseInt(_0x49f1dc(0x10c))/0xe);if(_0x19c4c6===_0x5d8bca)break;else _0x47b9cf['push'](_0x47b9cf['shift']());}catch(_0x431578){_0x47b9cf['push'](_0x47b9cf['shift']());}}}(a124_0x1db7,0x2f615));import{CliErrors}from'../errors.js';function a124_0x1db7(){const _0x5f2df4=['name','\x20for\x20`','asc','add','page','service','filter','4238wDPCQL','16431tTgKEM','data','version','3311imjrFX','2186943zTvRft','command','page-size','stringify','680AQnjGh','375110esoDyD','92wrKyyr','19642ICIjak','12402kXQKOY','835PyDrlN','where','pagesize','no-','orderby','2wMXHjK','order-by','Run\x20`','currentpage','validation','active','39141hNjUdx','12kjtCWL','3456Qcsgiw','Unknown\x20flag\x20--','meowKey','\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20','flags','has','entries','\x20is\x20not\x20a\x20CLI\x20flag\x20for\x20`','select','\x20data\x20filter`.'];a124_0x1db7=function(){return _0x5f2df4;};return a124_0x1db7();}import{CLI_BIN_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a124_0x42f0(_0x16505b,_0x315cc3){_0x16505b=_0x16505b-0x103;const _0x1db78a=a124_0x1db7();let _0x42f04c=_0x1db78a[_0x16505b];return _0x42f04c;}import{toKebab}from'../framework/preparse.js';const FILTER_BODY_FIELDS=new Set([a124_0x3f473e(0x10f),a124_0x3f473e(0x123),a124_0x3f473e(0x114),a124_0x3f473e(0x112),'current-page',a124_0x3f473e(0x116),a124_0x3f473e(0x129),a124_0x3f473e(0x107),a124_0x3f473e(0x110)]);export function assertKnownCommandFlags(_0x2d91ff,_0x59cd6d){const _0x48494c=a124_0x3f473e,_0x57c601=new Set([_0x48494c(0x103)]);for(const _0x2e95c9 of GLOBAL_FLAGS){_0x57c601['add'](_0x2e95c9[_0x48494c(0x125)]),_0x57c601['add'](toKebab(_0x2e95c9[_0x48494c(0x11d)]));}for(const _0xe94324 of _0x2d91ff[_0x48494c(0x11f)]??[]){_0x57c601[_0x48494c(0x128)](_0xe94324[_0x48494c(0x125)]);}for(const [_0x368394,_0x370ce4]of Object[_0x48494c(0x121)](_0x59cd6d)){const _0x1b1526=toKebab(_0x368394);if(_0x57c601['has'](_0x1b1526))continue;if(_0x370ce4===![]&&_0x57c601[_0x48494c(0x120)](_0x48494c(0x111)+_0x1b1526))continue;if(_0x2d91ff[_0x48494c(0x12a)]===_0x48494c(0x12e)&&_0x2d91ff[_0x48494c(0x106)]===_0x48494c(0x12b)&&FILTER_BODY_FIELDS[_0x48494c(0x120)](_0x1b1526))throw CliErrors[_0x48494c(0x117)]('--'+_0x1b1526+_0x48494c(0x122)+CLI_BIN_NAME+_0x48494c(0x124),'Put\x20where,\x20select,\x20orderBy,\x20currentPage,\x20and\x20pageSize\x20inside\x20one\x20--params\x20JSON\x20object.\x20'+('Example:\x20'+CLI_BIN_NAME+_0x48494c(0x11e))+('\x27'+JSON[_0x48494c(0x108)]({'where':{'status':{'$eq':_0x48494c(0x118)}},'orderBy':[{'id':_0x48494c(0x127)}],'currentPage':0x1,'pageSize':0x14})+'\x27'));throw CliErrors['validation'](_0x48494c(0x11c)+_0x1b1526+_0x48494c(0x126)+CLI_BIN_NAME+'\x20'+_0x2d91ff[_0x48494c(0x12a)]+'\x20'+_0x2d91ff[_0x48494c(0x106)]+'`.',_0x48494c(0x115)+CLI_BIN_NAME+'\x20'+_0x2d91ff[_0x48494c(0x12a)]+'\x20'+_0x2d91ff[_0x48494c(0x106)]+'\x20--help`\x20to\x20see\x20accepted\x20flags.');}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a125_0x3564(_0x535884,_0x5798db){_0x535884=_0x535884-0x1c4;var _0x5dd4cc=a125_0x5dd4();var _0x35643d=_0x5dd4cc[_0x535884];return _0x35643d;}(function(_0x909d7b,_0x5f2dc1){var _0x20d120=a125_0x3564,_0x559af7=_0x909d7b();while(!![]){try{var _0xa1c809=-parseInt(_0x20d120(0x1c9))/0x1+parseInt(_0x20d120(0x1c5))/0x2*(-parseInt(_0x20d120(0x1c8))/0x3)+-parseInt(_0x20d120(0x1c6))/0x4*(parseInt(_0x20d120(0x1ca))/0x5)+-parseInt(_0x20d120(0x1cb))/0x6*(parseInt(_0x20d120(0x1c7))/0x7)+-parseInt(_0x20d120(0x1cd))/0x8+parseInt(_0x20d120(0x1c4))/0x9+parseInt(_0x20d120(0x1cc))/0xa;if(_0xa1c809===_0x5f2dc1)break;else _0x559af7['push'](_0x559af7['shift']());}catch(_0x12c11c){_0x559af7['push'](_0x559af7['shift']());}}}(a125_0x5dd4,0xc8918));function a125_0x5dd4(){var _0x1d4ab2=['16LmNMgD','15575EDJFMP','1472886pCQowI','1392284MSVHWy','1038965BeEHnB','1194AShMwl','42321660jBdBQN','6638616IcPhEw','14024754THkNJv','6JTTCiv'];a125_0x5dd4=function(){return _0x1d4ab2;};return a125_0x5dd4();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1eb62a,_0x39cbe7){const _0x548e40=a126_0x3d19,_0x5b40aa=_0x1eb62a();while(!![]){try{const _0x16f8aa=-parseInt(_0x548e40(0x1ba))/0x1*(parseInt(_0x548e40(0x1bb))/0x2)+-parseInt(_0x548e40(0x1b6))/0x3+parseInt(_0x548e40(0x1d1))/0x4+-parseInt(_0x548e40(0x1bf))/0x5*(parseInt(_0x548e40(0x1be))/0x6)+parseInt(_0x548e40(0x1cb))/0x7+parseInt(_0x548e40(0x1b0))/0x8+parseInt(_0x548e40(0x1c0))/0x9*(parseInt(_0x548e40(0x1c3))/0xa);if(_0x16f8aa===_0x39cbe7)break;else _0x5b40aa['push'](_0x5b40aa['shift']());}catch(_0x3582ee){_0x5b40aa['push'](_0x5b40aa['shift']());}}}(a126_0x5412,0x4d992));import{CLI_BIN_NAME}from'../constant/cli.js';import{isSensitiveFlagName}from'../utils/redaction.js';export function buildConfirmationLines(_0x3b6490,_0x519c6b,_0x50e908){const _0x3e6fd2=a126_0x3d19,_0x51d33b=buildConfirmationContext(_0x3b6490,_0x519c6b,_0x50e908),_0x43c6f0=[_0x3e6fd2(0x1d0)+_0x51d33b[_0x3e6fd2(0x1b9)]];return _0x51d33b[_0x3e6fd2(0x1b3)]&&_0x43c6f0[_0x3e6fd2(0x1cf)]('\x20\x20\x20'+_0x51d33b[_0x3e6fd2(0x1b3)]),_0x51d33b['affectedRecords']&&_0x43c6f0[_0x3e6fd2(0x1cf)]('\x20\x20\x20Affected:\x20'+_0x51d33b['affectedRecords']),_0x43c6f0[_0x3e6fd2(0x1cf)](_0x3e6fd2(0x1c6)),_0x43c6f0;}export function reconstructCommandArgv(_0x119108,_0x247466){const _0xfa06be=a126_0x3d19,_0x3f1015=[CLI_BIN_NAME,_0x119108[_0xfa06be(0x1c1)],_0x119108[_0xfa06be(0x1b1)]];for(const [_0x1a7227,_0x27cfcc]of Object[_0xfa06be(0x1ce)](_0x247466)){if(_0x27cfcc===!![])_0x3f1015[_0xfa06be(0x1cf)]('--'+_0x1a7227);else{if(isSensitiveFlagName(_0x1a7227)&&_0x27cfcc!==![]&&_0x27cfcc!==undefined&&_0x27cfcc!=='')_0x3f1015[_0xfa06be(0x1cf)]('--'+_0x1a7227+_0xfa06be(0x1b2));else _0x27cfcc!==![]&&_0x27cfcc!==undefined&&_0x27cfcc!==''&&_0x3f1015[_0xfa06be(0x1cf)]('--'+_0x1a7227+'\x20'+JSON[_0xfa06be(0x1cc)](_0x27cfcc));}}return _0x3f1015[_0xfa06be(0x1cf)]('--yes'),_0x3f1015[_0xfa06be(0x1c8)]('\x20');}function a126_0x5412(){const _0x167d36=['service','schedule-id','288520bvVmgh','schedule-id=','cron=','\x20\x20\x20Continue?\x20[y/N]\x20','title','join','length','params=','2567369ejbbIq','stringify','params','entries','push','⚠\x20\x20High-risk\x20operation:\x20','1420132fuNBwX','3594736GkYvDT','command','\x20[REDACTED]','description','cron','id=','1762842vqWMtn','kind','scheduled-at','commandLabel','1teofSp','931742ZXjDDk','code','channel=','66omKhsz','105725bSuQgH','135YAWalG'];a126_0x5412=function(){return _0x167d36;};return a126_0x5412();}function buildConfirmationContext(_0x12050e,_0x7c9a15,_0x6b576b){const _0x202565=extractAffectedRecords(_0x6b576b);return{'commandLabel':_0x7c9a15,'description':_0x12050e['description'],'affectedRecords':_0x202565};}function a126_0x3d19(_0x3ccc3f,_0x8d69cc){_0x3ccc3f=_0x3ccc3f-0x1b0;const _0x54124c=a126_0x5412();let _0x3d1921=_0x54124c[_0x3ccc3f];return _0x3d1921;}function extractAffectedRecords(_0x50b2b3){const _0x53caa7=a126_0x3d19,_0x17fd0f=[];if(_0x50b2b3['code'])_0x17fd0f[_0x53caa7(0x1cf)]('code='+_0x50b2b3[_0x53caa7(0x1bc)]);if(_0x50b2b3['id'])_0x17fd0f['push'](_0x53caa7(0x1b5)+_0x50b2b3['id']);if(_0x50b2b3[_0x53caa7(0x1c2)])_0x17fd0f['push'](_0x53caa7(0x1c4)+_0x50b2b3[_0x53caa7(0x1c2)]);if(_0x50b2b3['name'])_0x17fd0f[_0x53caa7(0x1cf)]('name='+_0x50b2b3['name']);if(_0x50b2b3[_0x53caa7(0x1c7)])_0x17fd0f[_0x53caa7(0x1cf)]('title='+_0x50b2b3[_0x53caa7(0x1c7)]);if(_0x50b2b3[_0x53caa7(0x1b7)])_0x17fd0f['push']('kind='+_0x50b2b3[_0x53caa7(0x1b7)]);if(_0x50b2b3[_0x53caa7(0x1b4)])_0x17fd0f[_0x53caa7(0x1cf)](_0x53caa7(0x1c5)+_0x50b2b3['cron']);if(_0x50b2b3[_0x53caa7(0x1b8)])_0x17fd0f[_0x53caa7(0x1cf)]('scheduled-at='+_0x50b2b3[_0x53caa7(0x1b8)]);if(_0x50b2b3['channel'])_0x17fd0f['push'](_0x53caa7(0x1bd)+_0x50b2b3['channel']);if(_0x50b2b3[_0x53caa7(0x1cd)])_0x17fd0f[_0x53caa7(0x1cf)](_0x53caa7(0x1ca)+_0x50b2b3[_0x53caa7(0x1cd)]);return _0x17fd0f[_0x53caa7(0x1c9)]>0x0?_0x17fd0f[_0x53caa7(0x1c8)](',\x20'):undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4b6c13,_0x3ef5ff){const _0x2409b0=a127_0x3190,_0x1e842c=_0x4b6c13();while(!![]){try{const _0x5f2500=-parseInt(_0x2409b0(0x9d))/0x1*(parseInt(_0x2409b0(0x8f))/0x2)+parseInt(_0x2409b0(0x94))/0x3*(-parseInt(_0x2409b0(0x9e))/0x4)+parseInt(_0x2409b0(0x97))/0x5*(-parseInt(_0x2409b0(0x95))/0x6)+parseInt(_0x2409b0(0x92))/0x7+parseInt(_0x2409b0(0x9f))/0x8*(parseInt(_0x2409b0(0x9b))/0x9)+parseInt(_0x2409b0(0x8d))/0xa*(-parseInt(_0x2409b0(0x90))/0xb)+parseInt(_0x2409b0(0x9a))/0xc;if(_0x5f2500===_0x3ef5ff)break;else _0x1e842c['push'](_0x1e842c['shift']());}catch(_0x5d9129){_0x1e842c['push'](_0x1e842c['shift']());}}}(a127_0x336b,0x1ab6b));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';import{createAccessError}from'../framework/access-error.js';function a127_0x3190(_0x366006,_0xcd98e9){_0x366006=_0x366006-0x8c;const _0x336bba=a127_0x336b();let _0x319053=_0x336bba[_0x366006];return _0x319053;}import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';export function mapUserFacingExecuteError(_0x11a164){const _0x5abeb7=a127_0x3190;if(_0x11a164 instanceof LovrabetError){const _0x58ec79=userFacingLovrabetMessage(_0x11a164),_0x595af1=_0x11a164,_0x5ddc8b=createRateLimitError({'status':_0x595af1['status'],'errorCode':_0x595af1['code'],'message':_0x58ec79,'retryAfter':readRetryAfter(_0x595af1[_0x5abeb7(0xa0)]?.[_0x5abeb7(0x8e)])??readRetryAfterSeconds(_0x595af1[_0x5abeb7(0xa0)])});return createAccessError(_0x595af1[_0x5abeb7(0xa0)],_0x595af1[_0x5abeb7(0xa1)])??_0x5ddc8b??(Number(_0x595af1[_0x5abeb7(0x98)])===0x191?CliErrors['apiError']('Request\x20rejected\x20(HTTP\x20401).',_0x5abeb7(0x91)):CliErrors[_0x5abeb7(0x93)](_0x58ec79));}return _0x11a164;}function userFacingLovrabetMessage(_0x5b9285){const _0x4f03b0=a127_0x3190,_0x23355d=_0x5b9285['description'];if(_0x23355d!==undefined&&_0x23355d!==null){if(typeof _0x23355d===_0x4f03b0(0x99)&&_0x23355d['trim']())return _0x23355d[_0x4f03b0(0x9c)]();try{return JSON[_0x4f03b0(0x8c)](_0x23355d);}catch{}}return _0x5b9285[_0x4f03b0(0x96)];}function a127_0x336b(){const _0x4f01b0=['5808sWMVNJ','The\x20response\x20does\x20not\x20identify\x20whether\x20authentication\x20or\x20permission\x20checks\x20failed.','747971TkqURX','validation','39ihhdsv','19194whzKWx','message','285Cntyru','status','string','4339812HsaKYx','5562hVIBmS','trim','1lARcPG','14164EgiVZE','1032vktcxw','response','code','stringify','3530rBuAwS','headers','48094XMByzA'];a127_0x336b=function(){return _0x4f01b0;};return a127_0x336b();}
|