@lovrabet/lovrabet-cli 2.3.12-beta.1 → 2.3.12
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 +1 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2659bd,_0x13a8d6){const _0x4d8f58=a110_0x18d8,_0x5b4871=_0x2659bd();while(!![]){try{const _0x214071=parseInt(_0x4d8f58(0x79))/0x1*(parseInt(_0x4d8f58(0xa3))/0x2)+-parseInt(_0x4d8f58(0x7a))/0x3*(parseInt(_0x4d8f58(0x82))/0x4)+parseInt(_0x4d8f58(0x80))/0x5*(-parseInt(_0x4d8f58(0x88))/0x6)+-parseInt(_0x4d8f58(0x92))/0x7+-parseInt(_0x4d8f58(0x9a))/0x8+parseInt(_0x4d8f58(0x83))/0x9*(parseInt(_0x4d8f58(0x77))/0xa)+parseInt(_0x4d8f58(0x99))/0xb;if(_0x214071===_0x13a8d6)break;else _0x5b4871['push'](_0x5b4871['shift']());}catch(_0x478477){_0x5b4871['push'](_0x5b4871['shift']());}}}(a110_0xb47d,0xc9c16));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';function a110_0xb47d(){const _0x47b599=['KB\x20Service\x20is\x20not\x20configured\x20for\x20personal\x20knowledge\x20management.','string','getStore','A\x20current\x20personal\x20knowledge\x20version\x20is\x20required.','7485375kEavif','isArray','4CWwfTN','2240802UUOtxY','trim','create','validation','pageSize','6jciarb','title','stringify','getOne','Personal\x20knowledge\x20appCode\x20is\x20required\x20(at\x20most\x20100\x20characters).','get-one','run','appCode','min','authRequired','6778527fQunkb','paging','content','totalCount','Personal\x20knowledge\x20appCode\x20is\x20required.','tableData','currentPage','26642319zTqGWq','7333752llABGf','POST','apiError','personal','version','Personal\x20knowledge\x20ID\x20must\x20be\x20positive\x20integer\x20text.','signal','isSafeInteger','update','4NHECSl','sdk','page','invokeSource','Personal\x20knowledge\x20title\x20and\x20content\x20must\x20be\x20strings.','length','has','30riDzpP','accessKey','606810RydGhk','522114QCsJmE','userId'];a110_0xb47d=function(){return _0x47b599;};return a110_0xb47d();}import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';function a110_0x18d8(_0x314e05,_0x3eb3f2){_0x314e05=_0x314e05-0x74;const _0xb47d3f=a110_0xb47d();let _0x18d8e1=_0xb47d3f[_0x314e05];return _0x18d8e1;}import{normalizeKbServiceOrigin}from'../core/kb-search-client.js';export function personalKnowledgePath(_0x38dba2,_0x568eb0){const _0x262ac6=a110_0x18d8;if(typeof _0x38dba2!=='string'||!_0x38dba2[_0x262ac6(0x84)]()||_0x38dba2[_0x262ac6(0x75)]>0x64)throw CliErrors['validation'](_0x262ac6(0x8c));return KNOWLEDGE_PATHS[_0x568eb0===_0x262ac6(0x8d)?_0x262ac6(0x8b):_0x568eb0];}const commandOrigin=new AsyncLocalStorage();function invalidContract(_0xd251d2=![]){const _0x577f23=a110_0x18d8;return CliErrors[_0x577f23(0x9c)]('KB\x20Service\x20personal\x20knowledge\x20returned\x20an\x20invalid\x20response\x20contract.'+(_0xd251d2?WRITE_RECONCILIATION:''));}function requestContext(_0x3beed6){const _0x82ab32=a110_0x18d8;if(typeof _0x3beed6[_0x82ab32(0x8f)]!=='string'||!_0x3beed6['appCode'][_0x82ab32(0x84)]()||_0x3beed6[_0x82ab32(0x8f)]['length']>0x64)throw CliErrors[_0x82ab32(0x86)](_0x82ab32(0x96));if(!_0x3beed6['accessKey']?.['trim']())throw CliErrors[_0x82ab32(0x91)]();return{..._0x3beed6,'sdk':createKnowledgeClient({'kbServiceDomain':commandOrigin[_0x82ab32(0x7e)]()??configuredOrigin(),'accessKey':_0x3beed6[_0x82ab32(0x78)],'invokeSource':PRODUCT_CONFIG[_0x82ab32(0xa6)]})};}function configuredOrigin(){const _0x5d42d5=a110_0x18d8,_0x310cf5=getKbServiceDomain();if(!_0x310cf5)throw CliErrors[_0x5d42d5(0x86)](_0x5d42d5(0x7c),'Configure\x20a\x20trusted\x20kbServiceDomain\x20HTTPS\x20origin\x20in\x20the\x20connection\x20settings.');return normalizeKbServiceOrigin(_0x310cf5);}export function withKbManagementOrigin(_0x666f1a){const _0x3984c9=a110_0x18d8;return commandOrigin[_0x3984c9(0x8e)](configuredOrigin(),_0x666f1a);}function positiveInteger(_0x713cf2){const _0x5a9915=a110_0x18d8;return Number[_0x5a9915(0xa1)](_0x713cf2)&&_0x713cf2>=0x1;}function validId(_0x4da694){const _0x5db1a0=a110_0x18d8;return typeof _0x4da694===_0x5db1a0(0x7d)&&/^0*[1-9]\d*$/['test'](_0x4da694);}export function planPersonalKnowledgeWrite(_0x38aa54,_0xacc6f5,_0x169eb2,_0x4dccf6){const _0x71a7e5=a110_0x18d8;if(_0x169eb2!==undefined&&!validId(_0x169eb2))throw CliErrors[_0x71a7e5(0x86)](_0x71a7e5(0x9f));if(_0x169eb2!==undefined&&!positiveInteger(_0x4dccf6))throw CliErrors[_0x71a7e5(0x86)](_0x71a7e5(0x7f));const _0x3511b9=personalKnowledgePath(_0x38aa54,_0x169eb2===undefined?'create':_0x71a7e5(0xa2)),_0x45af38=JSON[_0x71a7e5(0x8a)]({'appCode':_0x38aa54,'title':_0xacc6f5[_0x71a7e5(0x89)],'content':_0xacc6f5['content'],..._0x169eb2!==undefined?{'id':_0x169eb2,'expectedVersion':_0x4dccf6}:{}});return{'path':_0x3511b9,'method':_0x71a7e5(0x9b),'jsonBody':_0x45af38};}async function sdkCall(_0x198145){try{return await _0x198145();}catch(_0x58c8ce){throw knowledgeCliError(_0x58c8ce);}}export async function listPersonalKnowledge(_0x572b41){const _0xc9c9bc=a110_0x18d8,_0x54a002=requestContext(_0x572b41),_0x546ca5=0x32;let _0x5f169d=0x1,_0x134b80,_0x21d29f;const _0x36e19c=[],_0x1291e6=new Set();while(!![]){const _0x39dd8b=await sdkCall(()=>_0x54a002[_0xc9c9bc(0xa4)][_0xc9c9bc(0x9d)][_0xc9c9bc(0xa5)]({'appCode':_0x572b41[_0xc9c9bc(0x8f)],'currentPage':_0x5f169d,'pageSize':_0x546ca5,'view':'summary'},{'signal':_0x54a002[_0xc9c9bc(0xa0)]})),_0x5002bc=_0x39dd8b[_0xc9c9bc(0x93)];if(!Array[_0xc9c9bc(0x81)](_0x39dd8b[_0xc9c9bc(0x97)])||_0x5002bc[_0xc9c9bc(0x98)]!==_0x5f169d||_0x5002bc[_0xc9c9bc(0x87)]!==_0x546ca5||!Number['isSafeInteger'](_0x5002bc[_0xc9c9bc(0x95)])||_0x5002bc[_0xc9c9bc(0x95)]<0x0)throw invalidContract();const _0x445bcd=_0x5002bc['totalCount'];if(_0x134b80!==undefined&&_0x445bcd!==_0x134b80)throw invalidContract();_0x134b80=_0x445bcd;if(_0x39dd8b[_0xc9c9bc(0x97)][_0xc9c9bc(0x75)]!==Math[_0xc9c9bc(0x90)](_0x546ca5,_0x445bcd-_0x36e19c[_0xc9c9bc(0x75)]))throw invalidContract();for(const _0x15c765 of _0x39dd8b[_0xc9c9bc(0x97)]){const _0x187f64=_0x15c765;if(_0x187f64[_0xc9c9bc(0x94)]!==null||_0x1291e6[_0xc9c9bc(0x76)](_0x187f64['id']))throw invalidContract();const _0x5b4400=await getPersonalKnowledgeAt(_0x54a002,_0x187f64['id']);if(_0x5b4400['version']!==_0x187f64[_0xc9c9bc(0x9e)]||_0x5b4400['userId']!==_0x187f64[_0xc9c9bc(0x7b)]||_0x21d29f!==undefined&&_0x5b4400[_0xc9c9bc(0x7b)]!==_0x21d29f)throw invalidContract();_0x21d29f=_0x5b4400[_0xc9c9bc(0x7b)],_0x1291e6['add'](_0x5b4400['id']),_0x36e19c['push'](_0x5b4400);}if(_0x36e19c[_0xc9c9bc(0x75)]===_0x445bcd)return _0x36e19c;_0x5f169d++;}}export async function getPersonalKnowledge(_0x34ec9,_0x2f8f7e){if(!validId(_0x2f8f7e))throw CliErrors['validation']('Personal\x20knowledge\x20ID\x20must\x20be\x20positive\x20integer\x20text.');return getPersonalKnowledgeAt(requestContext(_0x34ec9),_0x2f8f7e);}async function getPersonalKnowledgeAt(_0x5b6405,_0x3ff6f3){const _0x3a073c=a110_0x18d8;return await sdkCall(()=>_0x5b6405[_0x3a073c(0xa4)][_0x3a073c(0x9d)]['getOne']({'appCode':_0x5b6405[_0x3a073c(0x8f)],'id':_0x3ff6f3},{'signal':_0x5b6405[_0x3a073c(0xa0)]}));}export async function savePersonalKnowledge(_0x364fbe,_0x395dea,_0x33855d){const _0x519f8a=a110_0x18d8;if(_0x33855d!==undefined&&!validId(_0x33855d))throw CliErrors[_0x519f8a(0x86)](_0x519f8a(0x9f));if(typeof _0x395dea[_0x519f8a(0x94)]!=='string'||_0x395dea[_0x519f8a(0x89)]!==undefined&&typeof _0x395dea['title']!==_0x519f8a(0x7d))throw CliErrors[_0x519f8a(0x86)](_0x519f8a(0x74));const _0x5894b2=requestContext(_0x364fbe),_0x147365=_0x33855d===undefined?undefined:await getPersonalKnowledgeAt(_0x5894b2,_0x33855d),_0x47690e=_0x395dea[_0x519f8a(0x89)]??_0x147365?.[_0x519f8a(0x89)];if(typeof _0x47690e!==_0x519f8a(0x7d))throw CliErrors[_0x519f8a(0x86)]('Personal\x20knowledge\x20title\x20is\x20required.');const _0x59d651={'appCode':_0x364fbe['appCode'],'title':_0x47690e,'content':_0x395dea[_0x519f8a(0x94)]},_0x29a2e8=await sdkCall(()=>_0x33855d===undefined?_0x5894b2[_0x519f8a(0xa4)][_0x519f8a(0x9d)][_0x519f8a(0x85)](_0x59d651,{'signal':_0x5894b2[_0x519f8a(0xa0)]}):_0x5894b2[_0x519f8a(0xa4)][_0x519f8a(0x9d)]['update']({..._0x59d651,'id':_0x33855d,'expectedVersion':_0x147365[_0x519f8a(0x9e)]},{'signal':_0x5894b2[_0x519f8a(0xa0)]}));try{const _0x23d5d8=_0x29a2e8,_0x56a85b=_0x147365&&(_0x147365[_0x519f8a(0x89)]!==_0x47690e[_0x519f8a(0x84)]()||_0x147365['content']!==_0x395dea[_0x519f8a(0x94)]);if(_0x23d5d8[_0x519f8a(0x89)]!==_0x47690e['trim']()||_0x23d5d8['content']!==_0x395dea[_0x519f8a(0x94)]||_0x147365&&(_0x23d5d8[_0x519f8a(0x7b)]!==_0x147365['userId']||_0x23d5d8[_0x519f8a(0x9e)]!==_0x147365[_0x519f8a(0x9e)]+(_0x56a85b?0x1:0x0)))throw invalidContract();const _0x4daff1=await getPersonalKnowledgeAt(_0x5894b2,_0x23d5d8['id']);if(_0x4daff1[_0x519f8a(0x9e)]!==_0x23d5d8['version']||_0x4daff1[_0x519f8a(0x89)]!==_0x23d5d8[_0x519f8a(0x89)]||_0x4daff1[_0x519f8a(0x94)]!==_0x23d5d8[_0x519f8a(0x94)]||_0x4daff1[_0x519f8a(0x7b)]!==_0x23d5d8[_0x519f8a(0x7b)])throw invalidContract();return _0x4daff1;}catch{throw invalidContract(!![]);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a111_0x2179ac=a111_0x3e53;(function(_0x345183,_0xadb700){const _0x23aa61=a111_0x3e53,_0x59e368=_0x345183();while(!![]){try{const _0x262ef1=parseInt(_0x23aa61(0x197))/0x1+-parseInt(_0x23aa61(0x179))/0x2*(parseInt(_0x23aa61(0x18b))/0x3)+parseInt(_0x23aa61(0x191))/0x4+-parseInt(_0x23aa61(0x184))/0x5*(-parseInt(_0x23aa61(0x188))/0x6)+parseInt(_0x23aa61(0x17b))/0x7*(parseInt(_0x23aa61(0x18d))/0x8)+parseInt(_0x23aa61(0x186))/0x9*(parseInt(_0x23aa61(0x18e))/0xa)+-parseInt(_0x23aa61(0x17f))/0xb*(parseInt(_0x23aa61(0x181))/0xc);if(_0x262ef1===_0xadb700)break;else _0x59e368['push'](_0x59e368['shift']());}catch(_0x8dea69){_0x59e368['push'](_0x59e368['shift']());}}}(a111_0x20b1,0x75535));import{KnowledgeServiceError}from'@lovrabet/sdk';function a111_0x20b1(){const _0x5f13c4=['KB\x20Service\x20','knowledge\x20search','423395nhIOYG','network','was\x20cancelled','\x20returned\x20an\x20invalid\x20response\x20contract.','failed','AbortError','validation','Knowledge\x20search\x20cancelled.','926izZOsi','rateLimited','2513wzRDYc','auth','message','apiError','176jemrVn','\x20The\x20entry\x20may\x20already\x20have\x20been\x20saved.\x20Use\x20read-only\x20detail\x20or\x20list\x20reconciliation\x20before\x20another\x20write.','1077576oRkDwH','writeUncertain','personal\x20knowledge','654520knjVaX','includes','9NeXbxK','timed\x20out','30GbKosP','status','cancelled','789pdLyVt','\x20(HTTP\x20','8408OSnBWN','3580730dJoPCZ','authRequired','\x20request\x20','903220KMdyXH','timeout','kind','HTTP\x20'];a111_0x20b1=function(){return _0x5f13c4;};return a111_0x20b1();}import{CliErrors}from'../errors.js';export const WRITE_RECONCILIATION=a111_0x2179ac(0x180);function a111_0x3e53(_0x54757b,_0x457de9){_0x54757b=_0x54757b-0x176;const _0x20b171=a111_0x20b1();let _0x3e5301=_0x20b171[_0x54757b];return _0x3e5301;}export function knowledgeCliError(_0x41600e,_0x8467f=![]){const _0x12c874=a111_0x2179ac,_0x30ab81=_0x8467f?_0x12c874(0x196):_0x12c874(0x183);if(!(_0x41600e instanceof KnowledgeServiceError))return CliErrors['apiError']('KB\x20Service\x20'+_0x30ab81+_0x12c874(0x19a));const _0x58f1d8=_0x41600e['writeUncertain']?WRITE_RECONCILIATION:'';if(_0x41600e[_0x12c874(0x193)]===_0x12c874(0x17c))return CliErrors[_0x12c874(0x18f)]();if(_0x41600e[_0x12c874(0x193)]===_0x12c874(0x177))return CliErrors[_0x12c874(0x177)](_0x41600e[_0x12c874(0x17d)]);if(_0x41600e['kind']===_0x12c874(0x18a)&&_0x8467f)return new DOMException(_0x12c874(0x178),_0x12c874(0x176));if([_0x12c874(0x18a),_0x12c874(0x192),_0x12c874(0x198)]['includes'](_0x41600e['kind'])){const _0x16a929=_0x41600e[_0x12c874(0x193)]===_0x12c874(0x18a)?_0x12c874(0x199):_0x41600e[_0x12c874(0x193)]===_0x12c874(0x192)?_0x12c874(0x187):_0x12c874(0x19b);return CliErrors['networkError'](_0x12c874(0x195)+_0x30ab81+_0x12c874(0x190)+_0x16a929+'.'+_0x58f1d8);}if(_0x41600e['status']===0x1ad&&!_0x41600e[_0x12c874(0x182)])return CliErrors[_0x12c874(0x17a)](_0x41600e[_0x12c874(0x17d)]);if(_0x41600e['kind']==='contract'&&!_0x8467f)return CliErrors[_0x12c874(0x17e)]('KB\x20Service\x20personal\x20knowledge\x20returned\x20an\x20invalid\x20response\x20contract'+(_0x41600e[_0x12c874(0x189)]?_0x12c874(0x18c)+_0x41600e[_0x12c874(0x189)]+')':'')+'.'+_0x58f1d8);const _0x5840b8=_0x41600e[_0x12c874(0x189)]!==undefined&&!_0x41600e['message'][_0x12c874(0x185)](_0x12c874(0x194)+_0x41600e[_0x12c874(0x189)])?_0x12c874(0x18c)+_0x41600e['status']+')':'';return CliErrors[_0x12c874(0x17e)](''+_0x41600e['message']+_0x5840b8+_0x58f1d8);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a112_0x97d5(){const _0x48925b=['serviceUrl','157600LdYcpw','975773ppCFBA','runtime','validation','cli:lovrabet','personal','trim','appCode','24WDTtSl','topK','2073407bjGxtU','public','4871751hbdoDT','Knowledge\x20search\x20query\x20is\x20required.','company','Invalid\x20--kb-service-url:\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','2ZYBtwc','length','2039105muLRfh','accessKey','5167806FjPEGV','4XAfJdY','query','Knowledge\x20search\x20appCode\x20is\x20required.','hits','10444554iIoXuy'];a112_0x97d5=function(){return _0x48925b;};return a112_0x97d5();}(function(_0x1e4a48,_0x390e0a){const _0x4c43d7=a112_0x29ed,_0x55ec2a=_0x1e4a48();while(!![]){try{const _0x20b252=-parseInt(_0x4c43d7(0x11d))/0x1*(parseInt(_0x4c43d7(0x111))/0x2)+parseInt(_0x4c43d7(0x10d))/0x3*(parseInt(_0x4c43d7(0x116))/0x4)+-parseInt(_0x4c43d7(0x113))/0x5+parseInt(_0x4c43d7(0x115))/0x6+-parseInt(_0x4c43d7(0x10b))/0x7*(-parseInt(_0x4c43d7(0x109))/0x8)+-parseInt(_0x4c43d7(0x11a))/0x9+-parseInt(_0x4c43d7(0x11c))/0xa;if(_0x20b252===_0x390e0a)break;else _0x55ec2a['push'](_0x55ec2a['shift']());}catch(_0x5444f9){_0x55ec2a['push'](_0x55ec2a['shift']());}}}(a112_0x97d5,0xc6b89));import{createKnowledgeClient,normalizeKnowledgeServiceOrigin}from'@lovrabet/sdk';function a112_0x29ed(_0x1e09a8,_0x268666){_0x1e09a8=_0x1e09a8-0x106;const _0x97d512=a112_0x97d5();let _0x29ed5f=_0x97d512[_0x1e09a8];return _0x29ed5f;}import{CliErrors}from'../errors.js';import{knowledgeCliError}from'../core/kb-sdk-errors.js';export function normalizeKbServiceOrigin(_0x5ebaa4){const _0x11857c=a112_0x29ed;try{return normalizeKnowledgeServiceOrigin(_0x5ebaa4);}catch{throw CliErrors[_0x11857c(0x11f)](_0x11857c(0x110));}}export async function searchDirectKnowledge(_0x221274){const _0xe9297e=a112_0x29ed,_0x5776b7=_0x221274[_0xe9297e(0x108)][_0xe9297e(0x107)](),_0x32e9a8=_0x221274[_0xe9297e(0x117)][_0xe9297e(0x107)]();if(!_0x5776b7)throw CliErrors[_0xe9297e(0x11f)](_0xe9297e(0x118));if(!_0x221274[_0xe9297e(0x114)][_0xe9297e(0x107)]())throw CliErrors['authRequired']();if(!_0x32e9a8)throw CliErrors[_0xe9297e(0x11f)](_0xe9297e(0x10e));const _0x1ba7b5=normalizeKbServiceOrigin(_0x221274[_0xe9297e(0x11b)]);try{const _0xc37cb5=createKnowledgeClient({'kbServiceDomain':_0x1ba7b5,'accessKey':_0x221274['accessKey'],'invokeSource':_0xe9297e(0x120)}),_0x5f3b3f=await _0xc37cb5['search']({'appCode':_0x5776b7,'query':_0x32e9a8,'scopes':[_0xe9297e(0x10c),_0xe9297e(0x10f),_0xe9297e(0x106)],..._0x221274[_0xe9297e(0x10a)]!==undefined?{'topK':_0x221274[_0xe9297e(0x10a)]}:{}},{'signal':_0x221274['signal']});return{'schemaVersion':0x2,'profile':_0xe9297e(0x11e),'total':_0x5f3b3f[_0xe9297e(0x119)][_0xe9297e(0x112)],..._0x5f3b3f};}catch(_0x1bec35){throw knowledgeCliError(_0x1bec35,!![]);}}
|
package/lib/core/sdk-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x23b75b,_0x36d552){const _0x583d49=a113_0x32b7,_0x195c41=_0x23b75b();while(!![]){try{const _0x200783=-parseInt(_0x583d49(0x1fb))/0x1*(parseInt(_0x583d49(0x1f7))/0x2)+parseInt(_0x583d49(0x1e7))/0x3+-parseInt(_0x583d49(0x1e5))/0x4*(parseInt(_0x583d49(0x1f9))/0x5)+parseInt(_0x583d49(0x1f1))/0x6*(-parseInt(_0x583d49(0x209))/0x7)+parseInt(_0x583d49(0x1f8))/0x8+-parseInt(_0x583d49(0x1ef))/0x9*(parseInt(_0x583d49(0x1f5))/0xa)+parseInt(_0x583d49(0x1ea))/0xb;if(_0x200783===_0x36d552)break;else _0x195c41['push'](_0x195c41['shift']());}catch(_0x18d0b3){_0x195c41['push'](_0x195c41['shift']());}}}(a113_0x572f,0x4e6f3));function a113_0x32b7(_0x3e2157,_0x50261f){_0x3e2157=_0x3e2157-0x1e2;const _0x572fd5=a113_0x572f();let _0x32b790=_0x572fd5[_0x3e2157];return _0x32b790;}import{createAppClient,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';let _client,clientOptions,scopedClient,scopedOptions,restoreResponseJsonParser;export function getIdentitySdkClient(_0x4284f3,_0x5962a3){const _0xed9249=a113_0x32b7;restoreResponseJsonParser??=installLosslessJsonResponseParser();try{return createAppClient({'accessKey':_0x4284f3,'runtimeDomain':_0x5962a3,'options':{'timeout':0x7530,'redirect':_0xed9249(0x204),'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0xed9249(0x1ee)]}}});}catch(_0x6df175){clearSdkClient();throw _0x6df175;}}function createRuntimeSdkClient(_0x28a8b3){const _0xaa0a07=a113_0x32b7;return restoreResponseJsonParser??=installLosslessJsonResponseParser(),createClient({'appCode':_0x28a8b3[_0xaa0a07(0x1fa)],'env':_0x28a8b3['env'],'runtimeDomain':_0x28a8b3[_0xaa0a07(0x1e6)],'authMode':_0x28a8b3[_0xaa0a07(0x1f6)],..._0x28a8b3['accessKey']?{'accessKey':_0x28a8b3[_0xaa0a07(0x205)]}:{},'options':{'timeout':0x7530,'redirect':_0xaa0a07(0x204),'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0xaa0a07(0x1ee)]}}});}export function initSdkClient(_0x298212){try{_client=createRuntimeSdkClient(_0x298212),clientOptions={..._0x298212};}catch(_0x49a60f){clearSdkClient();throw _0x49a60f;}}function sameOptions(_0x493ca9,_0x3cd162){const _0x197c95=a113_0x32b7;return!!_0x493ca9&&_0x493ca9[_0x197c95(0x1fa)]===_0x3cd162[_0x197c95(0x1fa)]&&_0x493ca9[_0x197c95(0x1f0)]===_0x3cd162[_0x197c95(0x1f0)]&&_0x493ca9[_0x197c95(0x1e6)]===_0x3cd162[_0x197c95(0x1e6)]&&_0x493ca9['accessKey']===_0x3cd162['accessKey']&&_0x493ca9[_0x197c95(0x1f6)]===_0x3cd162[_0x197c95(0x1f6)];}export function clearSdkClient(){_client=undefined,clientOptions=undefined,scopedClient=undefined,scopedOptions=undefined,restoreResponseJsonParser?.(),restoreResponseJsonParser=undefined;}export function getSdkClient(_0x4007c6){const _0x1b4389=a113_0x32b7;if(_0x4007c6){if(_client&&sameOptions(clientOptions,_0x4007c6))return _client;if(!scopedClient||!sameOptions(scopedOptions,_0x4007c6))try{scopedClient=createRuntimeSdkClient(_0x4007c6),scopedOptions={..._0x4007c6};}catch(_0x4206d7){clearSdkClient();throw _0x4206d7;}return scopedClient;}if(!_client)throw new Error(_0x1b4389(0x1e9));return _client;}function normalizeAggregateParams(_0x2fa410){const _0x30514e=a113_0x32b7,_0x1015b7=_0x2fa410['aggregate'];if(_0x1015b7===undefined)return _0x2fa410;if(!Array[_0x30514e(0x20b)](_0x1015b7))throw CliErrors[_0x30514e(0x1e8)](_0x30514e(0x202));return{..._0x2fa410,'aggregate':_0x1015b7[_0x30514e(0x1fd)]((_0x1b2a09,_0x3d4050)=>{const _0x548ea0=_0x30514e;if(!_0x1b2a09||typeof _0x1b2a09!=='object'||Array[_0x548ea0(0x20b)](_0x1b2a09))throw CliErrors['validation']('data\x20aggregate\x20--params.aggregate['+_0x3d4050+_0x548ea0(0x1f3));const _0x233a3f=_0x1b2a09[_0x548ea0(0x206)]??_0x1b2a09[_0x548ea0(0x1fe)];if(typeof _0x233a3f!==_0x548ea0(0x201)||_0x233a3f['trim']()==='')throw CliErrors[_0x548ea0(0x1e8)](_0x548ea0(0x207)+_0x3d4050+_0x548ea0(0x1ed));const _0x569024={..._0x1b2a09,'column':_0x233a3f};return delete _0x569024['field'],_0x569024;})};}export async function executeData(_0xa72529,_0x472a3e,_0x2b4dda){const _0x2d97d8=a113_0x32b7,_0x9d1349=getSdkClient(),_0x2e840b=_0x2d97d8(0x200)+_0xa72529,_0x20c42c=_0x9d1349[_0x2d97d8(0x1f2)][_0x2e840b];if(!_0x20c42c||typeof _0x20c42c[_0x472a3e]!==_0x2d97d8(0x208))throw new Error('SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22'+_0x472a3e+_0x2d97d8(0x1f4)+'Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.');if(_0x472a3e===_0x2d97d8(0x1fc))return _0x20c42c[_0x2d97d8(0x1fc)](parseBatchCreateItemsFromParams(_0x2b4dda));const _0x5344a2=_0x2b4dda!==undefined&&_0x2b4dda!==null&&!Array['isArray'](_0x2b4dda)?_0x2b4dda:{};switch(_0x472a3e){case _0x2d97d8(0x1e2):{const _0x40afc1=_0x5344a2['id'];if(_0x40afc1===undefined||_0x40afc1===null)throw new Error('getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0x20c42c[_0x2d97d8(0x1e2)](_0x40afc1);}case _0x2d97d8(0x1ff):{const {id:_0x8338d2,..._0x1642d9}=_0x5344a2;if(_0x8338d2===undefined||_0x8338d2===null)throw new Error(_0x2d97d8(0x1eb));return _0x20c42c[_0x2d97d8(0x1ff)](_0x8338d2,_0x1642d9);}case _0x2d97d8(0x1e3):{const _0x231b67=_0x5344a2['id'];if(_0x231b67===undefined||_0x231b67===null)throw new Error(_0x2d97d8(0x1e4));return _0x20c42c[_0x2d97d8(0x1e3)](_0x231b67);}case _0x2d97d8(0x20a):return _0x20c42c[_0x2d97d8(0x20a)](normalizeAggregateParams(_0x5344a2));default:return _0x20c42c[_0x472a3e](_0x5344a2);}}function a113_0x572f(){const _0x219ab7=['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','execute',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','invokeSource','81BQiMHr','env','354LZZwOS','models',']\x20must\x20be\x20an\x20object.','\x22.\x20','320140dLOdgn','authMode','2BhWOtL','2900176WuneQM','725745FUmpYe','appCode','618346inCNfO','batchCreate','map','field','update','dataset_','string','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','sql','error','accessKey','column','data\x20aggregate\x20--params.aggregate[','function','29645fyztDh','aggregate','isArray','getOne','delete','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','8qYWzFF','runtimeDomain','1690419fGNEuf','validation','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','9260977SCSVSu'];a113_0x572f=function(){return _0x219ab7;};return a113_0x572f();}export async function executeSdkSql(_0x12a8f4,_0x5cd0a3){const _0x36c54a=a113_0x32b7,_0x5e6f83=getSdkClient();return _0x5e6f83[_0x36c54a(0x203)][_0x36c54a(0x1ec)]({'sqlCode':_0x12a8f4,'params':_0x5cd0a3});}export async function executeSdkBff(_0x2332f7,_0x1529ac){const _0x22effa=a113_0x32b7,_0x46774a=getSdkClient();return _0x46774a['bff'][_0x22effa(0x1ec)]({'scriptName':_0x2332f7,'params':_0x1529ac});}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a114_0x46fe3c=a114_0x2dc9;(function(_0x17600b,_0x1d67db){const _0x5d4c85=a114_0x2dc9,_0x45efc2=_0x17600b();while(!![]){try{const _0x59e0cd=-parseInt(_0x5d4c85(0xf2))/0x1*(-parseInt(_0x5d4c85(0xf4))/0x2)+parseInt(_0x5d4c85(0xff))/0x3+parseInt(_0x5d4c85(0xfd))/0x4+parseInt(_0x5d4c85(0xf7))/0x5*(-parseInt(_0x5d4c85(0xfa))/0x6)+parseInt(_0x5d4c85(0xf9))/0x7+parseInt(_0x5d4c85(0xf3))/0x8*(parseInt(_0x5d4c85(0xef))/0x9)+-parseInt(_0x5d4c85(0xf1))/0xa*(parseInt(_0x5d4c85(0xf0))/0xb);if(_0x59e0cd===_0x1d67db)break;else _0x45efc2['push'](_0x45efc2['shift']());}catch(_0x259c4c){_0x45efc2['push'](_0x45efc2['shift']());}}}(a114_0xf1bf,0x93dcd));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a114_0x2dc9(_0x2e5fd1,_0x570439){_0x2e5fd1=_0x2e5fd1-0xec;const _0xf1bf10=a114_0xf1bf();let _0x2dc9c6=_0xf1bf10[_0x2e5fd1];return _0x2dc9c6;}import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';function a114_0xf1bf(){const _0x30fb36=['1059640llZqmx','\x20auth\x20login`.','1815495rtAXVF','Use\x20the\x20native\x20`lovrabet`\x20tool\x20with\x20argv\x20containing\x20only\x20the\x20tokens\x20after\x20`lovrabet`;\x20do\x20not\x20raise\x20riskLevel\x20or\x20retry\x20through\x20bash.','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.','45mbzTvw','310409YGSXoL','430paxerc','62316YjwTui','158712onIGEQ','16qtlwNJ','`\x20cannot\x20run\x20through\x20the\x20shell\x20CLI\x20because\x20this\x20execution\x20host\x20delegates\x20Lovrabet\x20writes\x20to\x20the\x20native\x20tool.','newConfigFileName','65ZLpuJi','Permission\x20denied.','6895735YSiiGr','292542LQenIy','rate_limited','native_tool_required'];a114_0xf1bf=function(){return _0x30fb36;};return a114_0xf1bf();}export{CliError};const baseCliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'\x20or\x20run\x20`'+CLI_BIN_NAME+a114_0x46fe3c(0xfe),'configMissingHint':'Set\x20appcode\x20via\x20--appcode\x20or\x20'+PRODUCT_CONFIG[a114_0x46fe3c(0xf6)]+'.','notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20'+PRODUCT_CONFIG[a114_0x46fe3c(0xf6)]+'\x20file.'});export const CliErrors={...baseCliErrors,'permissionDenied':()=>new CliError('permission_denied',0x2,a114_0x46fe3c(0xf8),a114_0x46fe3c(0xee)),'rateLimited':(_0x3790aa,_0x12e9e1)=>new CliError(a114_0x46fe3c(0xfb),0x2,_0x3790aa,_0x12e9e1),'nativeToolRequired':_0x6cb454=>new CliError(a114_0x46fe3c(0xfc),0x1,a114_0x46fe3c(0xed)+_0x6cb454+a114_0x46fe3c(0xf5),a114_0x46fe3c(0xec))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a115_0x3c84(_0x534e07,_0x33e7fd){_0x534e07=_0x534e07-0x14b;const _0x30e910=a115_0x30e9();let _0x3c84fd=_0x30e910[_0x534e07];return _0x3c84fd;}(function(_0xc7ded8,_0x2440dd){const _0x3906a0=a115_0x3c84,_0xe298eb=_0xc7ded8();while(!![]){try{const _0x42e511=parseInt(_0x3906a0(0x159))/0x1*(-parseInt(_0x3906a0(0x155))/0x2)+-parseInt(_0x3906a0(0x15d))/0x3+parseInt(_0x3906a0(0x14b))/0x4+-parseInt(_0x3906a0(0x15a))/0x5+parseInt(_0x3906a0(0x15c))/0x6*(-parseInt(_0x3906a0(0x158))/0x7)+parseInt(_0x3906a0(0x151))/0x8*(-parseInt(_0x3906a0(0x15e))/0x9)+parseInt(_0x3906a0(0x152))/0xa*(parseInt(_0x3906a0(0x15f))/0xb);if(_0x42e511===_0x2440dd)break;else _0xe298eb['push'](_0xe298eb['shift']());}catch(_0x4be54b){_0xe298eb['push'](_0xe298eb['shift']());}}}(a115_0x30e9,0x404d6));function a115_0x30e9(){const _0x35fa62=['isFinite','201','API\x20error\x20code:\x20201.\x20Verify\x20the\x20configured\x20AccessKey\x20or\x20run\x20`','8wqFuuq','10NAvQGt','authRequired','trim','22fzjlmt','isArray','object','565887grZhHO','3414tWDnjs','1513610LsXrUr','error','18SJLEHo','1405566GjSSfN','1671930ansgcb','14904439bYvCHT','202','582096ejnmpe','string','permissionDenied'];a115_0x30e9=function(){return _0x35fa62;};return a115_0x30e9();}import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function readApiErrorCode(_0x335b2d){const _0x587984=a115_0x3c84;if(!_0x335b2d||typeof _0x335b2d!==_0x587984(0x157)||Array[_0x587984(0x156)](_0x335b2d))return undefined;const _0x786c75=_0x335b2d;for(const _0x5432f1 of[_0x786c75['errorCode'],_0x786c75[_0x587984(0x15b)]]){if(typeof _0x5432f1===_0x587984(0x14c)&&_0x5432f1[_0x587984(0x154)]())return _0x5432f1[_0x587984(0x154)]();if(typeof _0x5432f1==='number'&&Number[_0x587984(0x14e)](_0x5432f1))return String(_0x5432f1);}return undefined;}export function createAccessError(_0x80c156,_0x190fb4){const _0x5dace7=a115_0x3c84,_0x14a86f=readApiErrorCode(_0x80c156)??String(_0x190fb4??'');if(_0x14a86f===_0x5dace7(0x160))return CliErrors[_0x5dace7(0x14d)]();if(_0x14a86f===_0x5dace7(0x14f))return CliErrors[_0x5dace7(0x153)](_0x5dace7(0x150)+CLI_BIN_NAME+'\x20auth\x20login`.');return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x399f86,_0x2005a9){var _0x4c6320=a116_0x400f,_0x4cde1c=_0x399f86();while(!![]){try{var _0x365719=-parseInt(_0x4c6320(0x1c8))/0x1*(parseInt(_0x4c6320(0x1be))/0x2)+parseInt(_0x4c6320(0x1c7))/0x3+parseInt(_0x4c6320(0x1c2))/0x4*(-parseInt(_0x4c6320(0x1bd))/0x5)+-parseInt(_0x4c6320(0x1c5))/0x6*(parseInt(_0x4c6320(0x1c3))/0x7)+parseInt(_0x4c6320(0x1c6))/0x8*(parseInt(_0x4c6320(0x1bf))/0x9)+-parseInt(_0x4c6320(0x1c4))/0xa+parseInt(_0x4c6320(0x1c1))/0xb*(parseInt(_0x4c6320(0x1c0))/0xc);if(_0x365719===_0x2005a9)break;else _0x4cde1c['push'](_0x4cde1c['shift']());}catch(_0x450e95){_0x4cde1c['push'](_0x4cde1c['shift']());}}}(a116_0x1b2b,0x4ddfc));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a116_0x400f(_0x743a02,_0x58b792){_0x743a02=_0x743a02-0x1bd;var _0x1b2b00=a116_0x1b2b();var _0x400f1b=_0x1b2b00[_0x743a02];return _0x400f1b;}function a116_0x1b2b(){var _0x578885=['14945KuVeRM','4026460nxzCfE','264lgkMxx','104dWoJhu','146109SkFCJN','3ChlpoC','35605FtisKw','372308hfUnMf','168066RSmBrB','5668968XcUGcb','33EqMElX','188ifcYSe'];a116_0x1b2b=function(){return _0x578885;};return a116_0x1b2b();}import{buildAllFlags as a116_0xb9a8e2}from'@lovrabet/cli-framework';export function buildAllFlags(_0x52a1f5){return a116_0xb9a8e2(_0x52a1f5,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
|
package/lib/framework/dryrun.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x232a92,_0xf4afbd){const _0xf807e2=a117_0x11f7,_0x31e8cc=_0x232a92();while(!![]){try{const _0x1ea81f=-parseInt(_0xf807e2(0xfa))/0x1*(parseInt(_0xf807e2(0xfb))/0x2)+parseInt(_0xf807e2(0xf7))/0x3+parseInt(_0xf807e2(0xf9))/0x4+parseInt(_0xf807e2(0xfc))/0x5+-parseInt(_0xf807e2(0xf8))/0x6*(parseInt(_0xf807e2(0xf6))/0x7)+-parseInt(_0xf807e2(0xfe))/0x8+-parseInt(_0xf807e2(0xff))/0x9;if(_0x1ea81f===_0xf4afbd)break;else _0x31e8cc['push'](_0x31e8cc['shift']());}catch(_0x5764b0){_0x31e8cc['push'](_0x31e8cc['shift']());}}}(a117_0x3e00,0xc19d2));function a117_0x3e00(){const _0x23001c=['21xyTXkg','3960609tAvPJy','1631658eLQucH','3233176BZOqQM','876053OyPEzD','2PRcRSa','5683680sKZGGI','description','1064784oZpmFv','5824899gbhDFJ'];a117_0x3e00=function(){return _0x23001c;};return a117_0x3e00();}function a117_0x11f7(_0x83733b,_0x17efb9){_0x83733b=_0x83733b-0xf6;const _0x3e0001=a117_0x3e00();let _0x11f7dd=_0x3e0001[_0x83733b];return _0x11f7dd;}export function dryRun(_0x25d9ac,_0x267df6){const _0xc82340={'method':_0x25d9ac,'url':_0x267df6},_0x375764={'body'(_0x222553){return _0xc82340['body']=_0x222553,_0x375764;},'description'(_0x4ce71e){const _0x467ba0=a117_0x11f7;return _0xc82340[_0x467ba0(0xfd)]=_0x4ce71e,_0x375764;},'build'(){return{..._0xc82340};}};return _0x375764;}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x17d643,_0x30f2cd){const _0x5b0c46=a118_0x394c,_0x17b78e=_0x17d643();while(!![]){try{const _0x4fac39=parseInt(_0x5b0c46(0x96))/0x1*(-parseInt(_0x5b0c46(0x93))/0x2)+-parseInt(_0x5b0c46(0x8e))/0x3*(-parseInt(_0x5b0c46(0x92))/0x4)+parseInt(_0x5b0c46(0x97))/0x5+parseInt(_0x5b0c46(0x94))/0x6+-parseInt(_0x5b0c46(0x91))/0x7+parseInt(_0x5b0c46(0x95))/0x8*(parseInt(_0x5b0c46(0x8f))/0x9)+-parseInt(_0x5b0c46(0x90))/0xa;if(_0x4fac39===_0x30f2cd)break;else _0x17b78e['push'](_0x17b78e['shift']());}catch(_0x533134){_0x17b78e['push'](_0x17b78e['shift']());}}}(a118_0x34ee,0xb7f79));function a118_0x394c(_0x51d086,_0x21dc32){_0x51d086=_0x51d086-0x8e;const _0x34ee0d=a118_0x34ee();let _0x394c3b=_0x34ee0d[_0x51d086];return _0x394c3b;}import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers['validateFlags'];function a118_0x34ee(){const _0xe919e5=['8556216WgjwyC','16232BrZGAL','50jbJLZw','4353180phoaol','459489GtLhuF','342fMTxKm','5748860ecpYWk','4283545bPDZbN','8TkskrD','29590ZmOJSe'];a118_0x34ee=function(){return _0xe919e5;};return a118_0x34ee();}
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x11846d,_0x44b621){const _0x1b49ad=a119_0xd6b1,_0x532100=_0x11846d();while(!![]){try{const _0x1c5034=-parseInt(_0x1b49ad(0xe0))/0x1+parseInt(_0x1b49ad(0xde))/0x2+-parseInt(_0x1b49ad(0xe1))/0x3*(-parseInt(_0x1b49ad(0xdc))/0x4)+parseInt(_0x1b49ad(0xe5))/0x5*(parseInt(_0x1b49ad(0xe6))/0x6)+parseInt(_0x1b49ad(0xd8))/0x7+-parseInt(_0x1b49ad(0xda))/0x8*(-parseInt(_0x1b49ad(0xdf))/0x9)+-parseInt(_0x1b49ad(0xe2))/0xa;if(_0x1c5034===_0x44b621)break;else _0x532100['push'](_0x532100['shift']());}catch(_0x1d5246){_0x532100['push'](_0x532100['shift']());}}}(a119_0x2809,0xafa73));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 _0x401c7c=a119_0xd6b1;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries())[_0x401c7c(0xe3)](_0x3d6a2b=>_0x3d6a2b[_0x401c7c(0xd7)]!=='service'),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x401c7c(0xd9)+PRODUCT_CONFIG[_0x401c7c(0xdb)]+'\x20or\x20--appcode).'});}export function generateCommandHelp(_0x4e5191){return createGenerators()['generateCommandHelp'](_0x4e5191);}export function generateServiceHelp(_0xc87028){const _0x4d1dbf=a119_0xd6b1;return createGenerators()[_0x4d1dbf(0xe7)](_0xc87028);}function a119_0x2809(){const _0x5e173e=['261YBSqFv','503104qwfEZj','51shyouG','20026410fMkmhH','filter','has','200PUPQLR','49710wXLDby','generateServiceHelp','service','3247405ckCcDO','Requires\x20appcode\x20(set\x20via\x20','210632Ifcywe','newConfigFileName','60820cEotam','get','2815758xtnWAr'];a119_0x2809=function(){return _0x5e173e;};return a119_0x2809();}export function generateFullHelp(){return createGenerators()['generateFullHelp']();}function getAnyServiceEntry(_0x2a4dff){const _0x1c5179=getServiceEntry(_0x2a4dff);if(_0x1c5179)return _0x1c5179;try{return getDynamicServiceEntry(_0x2a4dff);}catch{return undefined;}}function getAnyServiceDefinitions(_0x1af1a1){const _0x4c4872=a119_0xd6b1,_0x5e75ad=serviceGroups[_0x4c4872(0xdd)](_0x1af1a1);if(_0x5e75ad)return _0x5e75ad;try{return getDynamicServiceDefinitions(_0x1af1a1);}catch{return undefined;}}function a119_0xd6b1(_0x5d6f8d,_0x8ebcb1){_0x5d6f8d=_0x5d6f8d-0xd7;const _0x2809ab=a119_0x2809();let _0xd6b14=_0x2809ab[_0x5d6f8d];return _0xd6b14;}function safeListDynamicServiceEntries(){const _0x4949f0=a119_0xd6b1,_0x4822a5=new Set(serviceRegistry['map'](_0x531da6=>_0x531da6['service']));try{return listDynamicServiceEntries()['filter'](_0x230899=>!_0x4822a5[_0x4949f0(0xe4)](_0x230899[_0x4949f0(0xd7)]));}catch{return[];}}
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x35dcb8,_0x1c3779){var _0x44f6d6=a120_0x59cb,_0x311425=_0x35dcb8();while(!![]){try{var _0x26849d=parseInt(_0x44f6d6(0x16b))/0x1*(-parseInt(_0x44f6d6(0x169))/0x2)+parseInt(_0x44f6d6(0x168))/0x3+parseInt(_0x44f6d6(0x170))/0x4*(parseInt(_0x44f6d6(0x16c))/0x5)+-parseInt(_0x44f6d6(0x16f))/0x6+-parseInt(_0x44f6d6(0x16d))/0x7+parseInt(_0x44f6d6(0x16e))/0x8*(parseInt(_0x44f6d6(0x16a))/0x9)+parseInt(_0x44f6d6(0x167))/0xa;if(_0x26849d===_0x1c3779)break;else _0x311425['push'](_0x311425['shift']());}catch(_0x529617){_0x311425['push'](_0x311425['shift']());}}}(a120_0x4844,0x6fe99));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a120_0x4844(){var _0x458650=['175060SLPyPl','2718020SXvafN','990333cOwaDC','354308YehDGt','243XpHOzq','4iNyDTB','95mlLdje','2817661XQBBSC','144112PkveBk','2101764eLoVSr'];a120_0x4844=function(){return _0x458650;};return a120_0x4844();}function a120_0x59cb(_0x5eec44,_0x13127f){_0x5eec44=_0x5eec44-0x167;var _0x484474=a120_0x4844();var _0x59cb9c=_0x484474[_0x5eec44];return _0x59cb9c;}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 a121_0x220e(_0x568b89,_0x35a8de){_0x568b89=_0x568b89-0x15d;const _0x5ad744=a121_0x5ad7();let _0x220ea2=_0x5ad744[_0x568b89];return _0x220ea2;}(function(_0x1d5b10,_0x240759){const _0xa76d7c=a121_0x220e,_0x10fff3=_0x1d5b10();while(!![]){try{const _0x35e8c6=parseInt(_0xa76d7c(0x161))/0x1*(-parseInt(_0xa76d7c(0x166))/0x2)+parseInt(_0xa76d7c(0x162))/0x3*(-parseInt(_0xa76d7c(0x15d))/0x4)+parseInt(_0xa76d7c(0x169))/0x5+-parseInt(_0xa76d7c(0x15f))/0x6+-parseInt(_0xa76d7c(0x168))/0x7*(parseInt(_0xa76d7c(0x164))/0x8)+parseInt(_0xa76d7c(0x163))/0x9+parseInt(_0xa76d7c(0x15e))/0xa*(parseInt(_0xa76d7c(0x160))/0xb);if(_0x35e8c6===_0x240759)break;else _0x10fff3['push'](_0x10fff3['shift']());}catch(_0x3ea83c){_0x10fff3['push'](_0x10fff3['shift']());}}}(a121_0x5ad7,0x9d6a3));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a121_0x5ad7(){const _0x14f9c9=['message','error','92rmLZVJ','755170eqDxYj','7218690qjBJWq','275CUONqg','128516aCsEDu','58617UvEDjK','4409442TOykpj','4016bjrgZe','update','18fGTREo','pretty','434ezqYmr','5535940VOUEik','url'];a121_0x5ad7=function(){return _0x14f9c9;};return a121_0x5ad7();}export function formatOutput(_0x2d1da2,_0x5e3f4f){const _0x1bf462=a121_0x220e,_0x216f71=_0x2d1da2['_notice'],{_notice:_0x3a88b8,..._0x392547}=_0x2d1da2;void _0x3a88b8,baseFormatOutput(_0x392547,_0x5e3f4f),_0x5e3f4f['format']===_0x1bf462(0x167)&&printPrettyNotice(_0x216f71);}function printPrettyNotice(_0x3fe537){const _0x49ac26=a121_0x220e;if(!_0x3fe537?.['update'])return;console[_0x49ac26(0x16c)](_0x3fe537[_0x49ac26(0x165)][_0x49ac26(0x16b)]+'\x20('+_0x3fe537[_0x49ac26(0x165)][_0x49ac26(0x16a)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x348584,_0xcb4be){const _0x3cec97=a122_0x489f,_0x5c765e=_0x348584();while(!![]){try{const _0x4f8bec=-parseInt(_0x3cec97(0x181))/0x1+parseInt(_0x3cec97(0x17f))/0x2*(parseInt(_0x3cec97(0x177))/0x3)+parseInt(_0x3cec97(0x180))/0x4*(-parseInt(_0x3cec97(0x173))/0x5)+parseInt(_0x3cec97(0x18d))/0x6*(-parseInt(_0x3cec97(0x16b))/0x7)+parseInt(_0x3cec97(0x184))/0x8*(parseInt(_0x3cec97(0x18f))/0x9)+parseInt(_0x3cec97(0x183))/0xa*(parseInt(_0x3cec97(0x170))/0xb)+parseInt(_0x3cec97(0x189))/0xc;if(_0x4f8bec===_0xcb4be)break;else _0x5c765e['push'](_0x5c765e['shift']());}catch(_0x50d1b4){_0x5c765e['push'](_0x5c765e['shift']());}}}(a122_0x22e4,0x4af42));export function toKebab(_0x3faeed){const _0x320253=a122_0x489f;return _0x3faeed['replace'](/_/g,'-')[_0x320253(0x18b)](/-([A-Z]+)/g,(_0x14fed8,_0x1e4034)=>'-'+_0x1e4034[_0x320253(0x17c)]())['replace'](/([a-z0-9])([A-Z])/g,(_0x3418d6,_0x3ea93d,_0x586149)=>_0x3ea93d+'-'+_0x586149)[_0x320253(0x17c)]();}function buildKnownFlags(_0xfeed5b){const _0xf5747b=a122_0x489f,_0x3766e8=new Set();for(const _0x2c1f30 of _0xfeed5b){_0x3766e8['add'](_0x2c1f30[_0xf5747b(0x17b)]),_0x3766e8[_0xf5747b(0x17e)](toCamelCase(_0x2c1f30[_0xf5747b(0x17b)]));}for(const _0xc47167 of[_0xf5747b(0x176),_0xf5747b(0x191),_0xf5747b(0x186),'format']){_0x3766e8[_0xf5747b(0x17e)](_0xc47167);}for(const _0x8ba2b8 of[_0xf5747b(0x174),'env',_0xf5747b(0x16e),_0xf5747b(0x188),_0xf5747b(0x179),'non-interactive','ci',_0xf5747b(0x190),_0xf5747b(0x172)]){_0x3766e8[_0xf5747b(0x17e)](_0x8ba2b8);}return _0x3766e8;}function buildFlagTypeMap(_0x4273bb){const _0x143f4b=a122_0x489f,_0x556ddf=new Map();for(const _0x359feb of _0x4273bb){_0x556ddf['set'](_0x359feb[_0x143f4b(0x17b)],_0x359feb[_0x143f4b(0x17a)]),_0x556ddf['set'](toCamelCase(_0x359feb[_0x143f4b(0x17b)]),_0x359feb[_0x143f4b(0x17a)]);}return _0x556ddf;}function toCamelCase(_0x3702cc){const _0x19441d=a122_0x489f;return _0x3702cc[_0x19441d(0x18b)](/-([a-z])/g,(_0x5c0512,_0x569ac2)=>_0x569ac2['toUpperCase']());}function a122_0x489f(_0x45fd84,_0x224a98){_0x45fd84=_0x45fd84-0x16a;const _0x22e439=a122_0x22e4();let _0x489fcb=_0x22e439[_0x45fd84];return _0x489fcb;}function a122_0x22e4(){const _0x8860f6=['get','boolean','appcode','indexOf','11wykTav','has','version','10WJvMCb','help','string','dry-run','892473WXYdFE','original','nonInteractive','type','name','toLowerCase','push','add','2ikpyhJ','484940XsNcXr','478437AlSYYt','entries','1254640yXplqW','120rYuGLD','slice','yes','alias','app','7654740nMVOao','corrected','replace','sticky','1248774zTHcce','length','229995nKOiiz','global','dryRun','number','14SZphld'];a122_0x22e4=function(){return _0x8860f6;};return a122_0x22e4();}function aliasHandler(_0x41af85,_0x21a4d3){const _0x5e8b16=a122_0x489f,_0x149e4e=[];for(const _0x326f14 of Object['keys'](_0x41af85)){if(_0x21a4d3[_0x5e8b16(0x171)](_0x326f14))continue;const _0x345e9d=toKebab(_0x326f14);_0x345e9d!==_0x326f14&&_0x21a4d3[_0x5e8b16(0x171)](_0x345e9d)&&_0x149e4e['push']({'original':_0x326f14,'corrected':_0x345e9d,'handler':_0x5e8b16(0x187)});}return _0x149e4e;}function stickyHandler(_0x26eb62,_0x26744b,_0x57c8cb){const _0x22d3d3=a122_0x489f,_0x2f3037=[];for(const [_0x1bc91b,_0x3fc510]of Object[_0x22d3d3(0x182)](_0x26eb62)){if(_0x3fc510!==!![])continue;for(let _0x204e29=_0x1bc91b[_0x22d3d3(0x18e)]-0x1;_0x204e29>0x0;_0x204e29--){const _0x1a0d4a=_0x1bc91b[_0x22d3d3(0x185)](0x0,_0x204e29),_0x5d31a4=_0x1bc91b['slice'](_0x204e29),_0xf4e561=toKebab(_0x1a0d4a),_0x268942=toCamelCase(_0x1a0d4a),_0x4fe786=_0x26744b[_0x22d3d3(0x171)](_0x1a0d4a)?_0x1a0d4a:_0x26744b[_0x22d3d3(0x171)](_0xf4e561)?_0xf4e561:_0x26744b[_0x22d3d3(0x171)](_0x268942)?_0x268942:null;if(!_0x4fe786)continue;const _0x1dd4c1=_0x57c8cb[_0x22d3d3(0x16c)](_0x4fe786)??_0x22d3d3(0x175);let _0x5c62f4;if(_0x1dd4c1===_0x22d3d3(0x16a)){const _0x55eefe=Number(_0x5d31a4);if(isNaN(_0x55eefe)||_0x5d31a4==='')continue;_0x5c62f4=_0x55eefe;}else{if(_0x1dd4c1===_0x22d3d3(0x16d))continue;else{if(_0x5d31a4==='')continue;_0x5c62f4=_0x5d31a4;}}_0x2f3037[_0x22d3d3(0x17d)]({'original':_0x1bc91b,'corrected':_0x4fe786+'='+_0x5c62f4,'handler':_0x22d3d3(0x18c)});break;}}return _0x2f3037;}export function correctFlags(_0x5cb249,_0x234770){const _0x4dfad2=a122_0x489f,_0x9b81e8=buildKnownFlags(_0x234770),_0x11e069=buildFlagTypeMap(_0x234770),_0x15bd60=aliasHandler(_0x5cb249,_0x9b81e8),_0x4f5fe0=stickyHandler(_0x5cb249,_0x9b81e8,_0x11e069),_0x35eb09=[..._0x15bd60,..._0x4f5fe0];if(_0x35eb09[_0x4dfad2(0x18e)]===0x0)return{'flags':_0x5cb249,'corrections':[]};const _0x321e4e={..._0x5cb249},_0x7cb3e4=new Set();for(const _0x2f6f6d of _0x15bd60){_0x321e4e[_0x2f6f6d[_0x4dfad2(0x18a)]]=_0x5cb249[_0x2f6f6d[_0x4dfad2(0x178)]],_0x7cb3e4[_0x4dfad2(0x17e)](_0x2f6f6d[_0x4dfad2(0x178)]);}for(const _0x43b54e of _0x4f5fe0){const _0x119c91=_0x43b54e['corrected'][_0x4dfad2(0x16f)]('='),_0x5ae173=_0x43b54e['corrected'][_0x4dfad2(0x185)](0x0,_0x119c91),_0x4a1385=_0x43b54e[_0x4dfad2(0x18a)][_0x4dfad2(0x185)](_0x119c91+0x1),_0x4bac70=_0x11e069[_0x4dfad2(0x16c)](_0x5ae173)??_0x4dfad2(0x175);_0x4bac70==='number'?_0x321e4e[_0x5ae173]=Number(_0x4a1385):_0x321e4e[_0x5ae173]=_0x4a1385,_0x7cb3e4[_0x4dfad2(0x17e)](_0x43b54e[_0x4dfad2(0x178)]);}for(const _0xca0e8b of _0x7cb3e4){delete _0x321e4e[_0xca0e8b];}return{'flags':_0x321e4e,'corrections':_0x35eb09};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a123_0x474ae0=a123_0x3fa6;(function(_0x30ebe5,_0x502b85){const _0x697df4=a123_0x3fa6,_0xf53b76=_0x30ebe5();while(!![]){try{const _0x491bfe=parseInt(_0x697df4(0x1d9))/0x1*(parseInt(_0x697df4(0x1e3))/0x2)+parseInt(_0x697df4(0x1ca))/0x3+-parseInt(_0x697df4(0x1d6))/0x4+-parseInt(_0x697df4(0x1d0))/0x5+parseInt(_0x697df4(0x1de))/0x6+parseInt(_0x697df4(0x1dd))/0x7+-parseInt(_0x697df4(0x1e6))/0x8;if(_0x491bfe===_0x502b85)break;else _0xf53b76['push'](_0xf53b76['shift']());}catch(_0x3dbcbe){_0xf53b76['push'](_0xf53b76['shift']());}}}(a123_0x16c4,0xc7b31));import{CliErrors}from'../errors.js';const RATE_LIMIT_ERROR_CODES=new Set([a123_0x474ae0(0x1d1),a123_0x474ae0(0x1e1),'IP_RATE_LIMIT_EXCEEDED']);function nonEmptyString(_0x45656a){const _0x5a4341=a123_0x474ae0;if(typeof _0x45656a!=='string')return undefined;const _0x1f8108=_0x45656a[_0x5a4341(0x1d5)]();return _0x1f8108||undefined;}function buildRetryHint(_0x3681a4){const _0x4199b7=a123_0x474ae0,_0x12c6f7=nonEmptyString(_0x3681a4),_0x52176b=_0x12c6f7?/^\d+$/[_0x4199b7(0x1e0)](_0x12c6f7)?'Wait\x20'+_0x12c6f7+_0x4199b7(0x1c9):'Retry\x20after\x20'+_0x12c6f7+'.':_0x4199b7(0x1cb);return _0x52176b+'\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.';}export function createRateLimitError(_0x41f262){const _0x18d7a2=a123_0x474ae0,_0x1b0d8d=nonEmptyString(_0x41f262[_0x18d7a2(0x1d3)])?.[_0x18d7a2(0x1cd)](),_0x422eaf=Number(_0x41f262[_0x18d7a2(0x1e7)])===0x1ad||_0x1b0d8d!==undefined&&RATE_LIMIT_ERROR_CODES[_0x18d7a2(0x1df)](_0x1b0d8d);if(!_0x422eaf)return undefined;return CliErrors[_0x18d7a2(0x1d8)](nonEmptyString(_0x41f262[_0x18d7a2(0x1dc)])??_0x18d7a2(0x1e5),buildRetryHint(_0x41f262[_0x18d7a2(0x1e4)]));}function a123_0x3fa6(_0xc97f2c,_0x38c8f4){_0xc97f2c=_0xc97f2c-0x1c7;const _0x16c492=a123_0x16c4();let _0x3fa6de=_0x16c492[_0xc97f2c];return _0x3fa6de;}function a123_0x16c4(){const _0x177e94=['2vqqNWD','retryAfter','Request\x20rate\x20limit\x20exceeded.','1135744tMJdZB','status','number','function','retry-after','\x20seconds\x20before\x20retrying.','2565597UrxxrP','Retry\x20after\x20a\x20short\x20delay.','object','toUpperCase','call','isArray','2076685vvvYpf','EXCEED_MAX_QPS_LIMIT','entries','errorCode','retryAfterSeconds','trim','5970484tEZjQr','toLowerCase','rateLimited','1315450SJuIIr','Retry-After','isInteger','message','4610879gTFkDq','231294WbVRxB','has','test','MAX_QPS_LIMIT','get'];a123_0x16c4=function(){return _0x177e94;};return a123_0x16c4();}export function readRetryAfter(_0x3554f3){const _0x926347=a123_0x474ae0;if(!_0x3554f3||typeof _0x3554f3!==_0x926347(0x1cc))return undefined;const _0x5d4aef=_0x3554f3[_0x926347(0x1e2)];if(typeof _0x5d4aef===_0x926347(0x1c7)){const _0x375980=_0x5d4aef[_0x926347(0x1ce)](_0x3554f3,_0x926347(0x1da))??_0x5d4aef[_0x926347(0x1ce)](_0x3554f3,_0x926347(0x1c8));return nonEmptyString(_0x375980);}for(const [_0xbcb217,_0x513c76]of Object[_0x926347(0x1d2)](_0x3554f3)){if(_0xbcb217[_0x926347(0x1d7)]()===_0x926347(0x1c8))return nonEmptyString(_0x513c76)??(typeof _0x513c76==='number'?String(_0x513c76):undefined);}return undefined;}export function readRetryAfterSeconds(_0x574fed){const _0x299054=a123_0x474ae0;if(!_0x574fed||typeof _0x574fed!==_0x299054(0x1cc)||Array[_0x299054(0x1cf)](_0x574fed))return undefined;const _0xe7539=_0x574fed[_0x299054(0x1d4)];if(typeof _0xe7539===_0x299054(0x1e8))return Number[_0x299054(0x1db)](_0xe7539)&&_0xe7539>=0x0?String(_0xe7539):undefined;const _0xa238ed=nonEmptyString(_0xe7539);return _0xa238ed&&/^\d+$/[_0x299054(0x1e0)](_0xa238ed)?_0xa238ed:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a124_0x45feb6=a124_0x7c9d;function a124_0x7c9d(_0x5375fc,_0x49bccf){_0x5375fc=_0x5375fc-0xc0;const _0x335047=a124_0x3350();let _0x7c9d34=_0x335047[_0x5375fc];return _0x7c9d34;}(function(_0x10eaf4,_0x441144){const _0x5a636e=a124_0x7c9d,_0x227558=_0x10eaf4();while(!![]){try{const _0x309212=-parseInt(_0x5a636e(0xc7))/0x1*(parseInt(_0x5a636e(0xc1))/0x2)+-parseInt(_0x5a636e(0xcc))/0x3+parseInt(_0x5a636e(0xd5))/0x4+parseInt(_0x5a636e(0xd6))/0x5+-parseInt(_0x5a636e(0xdd))/0x6*(parseInt(_0x5a636e(0xdb))/0x7)+parseInt(_0x5a636e(0xca))/0x8*(parseInt(_0x5a636e(0xc4))/0x9)+-parseInt(_0x5a636e(0xda))/0xa;if(_0x309212===_0x441144)break;else _0x227558['push'](_0x227558['shift']());}catch(_0x3e1f20){_0x227558['push'](_0x227558['shift']());}}}(a124_0x3350,0x84ece));function a124_0x3350(){const _0x40e9e3=['4951990lErWMB','validation','has','\x20is\x20not\x20a\x20CLI\x20flag\x20for\x20`','1440770UOfwhS','72744SZYuCo','page','486MgzNyT','currentpage','\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20','6220vzyXrF','flags','command','9pSuQDb','service','meowKey','17vNTNXe','\x20--help`\x20to\x20see\x20accepted\x20flags.','active','4215896JVhkva','no-','916803BOXpLF','data','add','asc','Unknown\x20flag\x20--','\x20data\x20filter`.','orderby','entries','name','1485508xzxzQr'];a124_0x3350=function(){return _0x40e9e3;};return a124_0x3350();}import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{toKebab}from'../framework/preparse.js';const FILTER_BODY_FIELDS=new Set(['where','select','order-by',a124_0x45feb6(0xd2),'current-page',a124_0x45feb6(0xde),a124_0x45feb6(0xdc),'page-size','pagesize']);export function assertKnownCommandFlags(_0x3f655f,_0x2351d3){const _0x48003b=a124_0x45feb6,_0x302051=new Set(['version']);for(const _0x1f1417 of GLOBAL_FLAGS){_0x302051[_0x48003b(0xce)](_0x1f1417['name']),_0x302051[_0x48003b(0xce)](toKebab(_0x1f1417[_0x48003b(0xc6)]));}for(const _0x5b6e57 of _0x3f655f[_0x48003b(0xc2)]??[]){_0x302051['add'](_0x5b6e57[_0x48003b(0xd4)]);}for(const [_0x1b7b47,_0x280631]of Object[_0x48003b(0xd3)](_0x2351d3)){const _0x3f5ad4=toKebab(_0x1b7b47);if(_0x302051[_0x48003b(0xd8)](_0x3f5ad4))continue;if(_0x280631===![]&&_0x302051['has'](_0x48003b(0xcb)+_0x3f5ad4))continue;if(_0x3f655f[_0x48003b(0xc5)]===_0x48003b(0xcd)&&_0x3f655f['command']==='filter'&&FILTER_BODY_FIELDS[_0x48003b(0xd8)](_0x3f5ad4))throw CliErrors[_0x48003b(0xd7)]('--'+_0x3f5ad4+_0x48003b(0xd9)+CLI_BIN_NAME+_0x48003b(0xd1),'Put\x20where,\x20select,\x20orderBy,\x20currentPage,\x20and\x20pageSize\x20inside\x20one\x20--params\x20JSON\x20object.\x20'+('Example:\x20'+CLI_BIN_NAME+_0x48003b(0xc0))+('\x27'+JSON['stringify']({'where':{'status':{'$eq':_0x48003b(0xc9)}},'orderBy':[{'id':_0x48003b(0xcf)}],'currentPage':0x1,'pageSize':0x14})+'\x27'));throw CliErrors['validation'](_0x48003b(0xd0)+_0x3f5ad4+'\x20for\x20`'+CLI_BIN_NAME+'\x20'+_0x3f655f[_0x48003b(0xc5)]+'\x20'+_0x3f655f[_0x48003b(0xc3)]+'`.','Run\x20`'+CLI_BIN_NAME+'\x20'+_0x3f655f[_0x48003b(0xc5)]+'\x20'+_0x3f655f[_0x48003b(0xc3)]+_0x48003b(0xc8));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a125_0x315c(_0x604d74,_0x19b3a1){_0x604d74=_0x604d74-0x185;var _0x1b2b3d=a125_0x1b2b();var _0x315cf2=_0x1b2b3d[_0x604d74];return _0x315cf2;}(function(_0x5aa14f,_0x5a437a){var _0x2dbfcd=a125_0x315c,_0x268f34=_0x5aa14f();while(!![]){try{var _0xbb53d5=-parseInt(_0x2dbfcd(0x185))/0x1*(parseInt(_0x2dbfcd(0x18c))/0x2)+-parseInt(_0x2dbfcd(0x18a))/0x3*(parseInt(_0x2dbfcd(0x186))/0x4)+parseInt(_0x2dbfcd(0x187))/0x5+-parseInt(_0x2dbfcd(0x18d))/0x6*(-parseInt(_0x2dbfcd(0x189))/0x7)+parseInt(_0x2dbfcd(0x18b))/0x8+parseInt(_0x2dbfcd(0x18e))/0x9+-parseInt(_0x2dbfcd(0x188))/0xa;if(_0xbb53d5===_0x5a437a)break;else _0x268f34['push'](_0x268f34['shift']());}catch(_0x1c26ee){_0x268f34['push'](_0x268f34['shift']());}}}(a125_0x1b2b,0x28887));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a125_0x1b2b(){var _0x2676a5=['6jJJXgH','1173897PGuIIw','1193IZQwOz','16FZsUPb','334900ayNwUY','927000CzYtQv','2208801aPkNsl','220545lOzBXx','2026992EdziyI','358AIYETo'];a125_0x1b2b=function(){return _0x2676a5;};return a125_0x1b2b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x245b8c,_0x596bf1){const _0x29b1ba=a126_0x9153,_0x4ba9ef=_0x245b8c();while(!![]){try{const _0x2cecc5=-parseInt(_0x29b1ba(0x13f))/0x1+-parseInt(_0x29b1ba(0x138))/0x2+parseInt(_0x29b1ba(0x148))/0x3+-parseInt(_0x29b1ba(0x14b))/0x4+-parseInt(_0x29b1ba(0x149))/0x5*(-parseInt(_0x29b1ba(0x146))/0x6)+-parseInt(_0x29b1ba(0x153))/0x7+parseInt(_0x29b1ba(0x152))/0x8;if(_0x2cecc5===_0x596bf1)break;else _0x4ba9ef['push'](_0x4ba9ef['shift']());}catch(_0x400977){_0x4ba9ef['push'](_0x4ba9ef['shift']());}}}(a126_0x4080,0x57d10));function a126_0x9153(_0x127177,_0x276b8b){_0x127177=_0x127177-0x12e;const _0x4080c3=a126_0x4080();let _0x91536c=_0x4080c3[_0x127177];return _0x91536c;}import{CLI_BIN_NAME}from'../constant/cli.js';function a126_0x4080(){const _0x45828a=['⚠\x20\x20High-risk\x20operation:\x20','cron','channel','params=','join','290718DuFRtP','name','code=','title=','entries','channel=','--yes','1560dUaoCR','push','2135694Meuvel','95KUHIfF','kind=','81700lVfkcd','service','\x20\x20\x20Affected:\x20','schedule-id','\x20[REDACTED]','kind','stringify','5149744qyGzVV','4689979NslkcI','scheduled-at','\x20\x20\x20','params','schedule-id=','code','description','name=','length','\x20\x20\x20Continue?\x20[y/N]\x20','id=','cron=','39440RpOmZu','affectedRecords'];a126_0x4080=function(){return _0x45828a;};return a126_0x4080();}import{isSensitiveFlagName}from'../utils/redaction.js';export function buildConfirmationLines(_0x4708bd,_0xc7dc80,_0x246ef5){const _0x4f4176=a126_0x9153,_0x850d99=buildConfirmationContext(_0x4708bd,_0xc7dc80,_0x246ef5),_0xfcd178=[_0x4f4176(0x13a)+_0x850d99['commandLabel']];return _0x850d99[_0x4f4176(0x132)]&&_0xfcd178[_0x4f4176(0x147)](_0x4f4176(0x12e)+_0x850d99[_0x4f4176(0x132)]),_0x850d99[_0x4f4176(0x139)]&&_0xfcd178[_0x4f4176(0x147)](_0x4f4176(0x14d)+_0x850d99['affectedRecords']),_0xfcd178[_0x4f4176(0x147)](_0x4f4176(0x135)),_0xfcd178;}export function reconstructCommandArgv(_0x8c7c35,_0x3756ff){const _0x456161=a126_0x9153,_0x3123b0=[CLI_BIN_NAME,_0x8c7c35[_0x456161(0x14c)],_0x8c7c35['command']];for(const [_0x4629af,_0x266f4d]of Object[_0x456161(0x143)](_0x3756ff)){if(_0x266f4d===!![])_0x3123b0[_0x456161(0x147)]('--'+_0x4629af);else{if(isSensitiveFlagName(_0x4629af)&&_0x266f4d!==![]&&_0x266f4d!==undefined&&_0x266f4d!=='')_0x3123b0[_0x456161(0x147)]('--'+_0x4629af+_0x456161(0x14f));else _0x266f4d!==![]&&_0x266f4d!==undefined&&_0x266f4d!==''&&_0x3123b0[_0x456161(0x147)]('--'+_0x4629af+'\x20'+JSON[_0x456161(0x151)](_0x266f4d));}}return _0x3123b0[_0x456161(0x147)](_0x456161(0x145)),_0x3123b0[_0x456161(0x13e)]('\x20');}function buildConfirmationContext(_0x341907,_0x1f496a,_0x4b4006){const _0xc84f0c=a126_0x9153,_0x110ce1=extractAffectedRecords(_0x4b4006);return{'commandLabel':_0x1f496a,'description':_0x341907[_0xc84f0c(0x132)],'affectedRecords':_0x110ce1};}function extractAffectedRecords(_0x5c645a){const _0x2d713e=a126_0x9153,_0x167c20=[];if(_0x5c645a[_0x2d713e(0x131)])_0x167c20[_0x2d713e(0x147)](_0x2d713e(0x141)+_0x5c645a[_0x2d713e(0x131)]);if(_0x5c645a['id'])_0x167c20[_0x2d713e(0x147)](_0x2d713e(0x136)+_0x5c645a['id']);if(_0x5c645a[_0x2d713e(0x14e)])_0x167c20[_0x2d713e(0x147)](_0x2d713e(0x130)+_0x5c645a['schedule-id']);if(_0x5c645a[_0x2d713e(0x140)])_0x167c20['push'](_0x2d713e(0x133)+_0x5c645a[_0x2d713e(0x140)]);if(_0x5c645a['title'])_0x167c20['push'](_0x2d713e(0x142)+_0x5c645a['title']);if(_0x5c645a[_0x2d713e(0x150)])_0x167c20['push'](_0x2d713e(0x14a)+_0x5c645a[_0x2d713e(0x150)]);if(_0x5c645a[_0x2d713e(0x13b)])_0x167c20[_0x2d713e(0x147)](_0x2d713e(0x137)+_0x5c645a[_0x2d713e(0x13b)]);if(_0x5c645a[_0x2d713e(0x154)])_0x167c20['push']('scheduled-at='+_0x5c645a[_0x2d713e(0x154)]);if(_0x5c645a[_0x2d713e(0x13c)])_0x167c20['push'](_0x2d713e(0x144)+_0x5c645a[_0x2d713e(0x13c)]);if(_0x5c645a[_0x2d713e(0x12f)])_0x167c20[_0x2d713e(0x147)](_0x2d713e(0x13d)+_0x5c645a[_0x2d713e(0x12f)]);return _0x167c20[_0x2d713e(0x134)]>0x0?_0x167c20[_0x2d713e(0x13e)](',\x20'):undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a127_0x2769(_0x24a556,_0x4cca89){_0x24a556=_0x24a556-0x119;const _0x4ef9d8=a127_0x4ef9();let _0x276995=_0x4ef9d8[_0x24a556];return _0x276995;}function a127_0x4ef9(){const _0x4a9cfe=['7051968JokRDp','description','262056hrSptw','string','427129IEOMUj','code','260PUCTHP','Request\x20rejected\x20(HTTP\x20401).','response','message','headers','66965cQcHQx','3380256vceanx','3422388aJbajm','The\x20response\x20does\x20not\x20identify\x20whether\x20authentication\x20or\x20permission\x20checks\x20failed.','stringify','5142319tPVNaP'];a127_0x4ef9=function(){return _0x4a9cfe;};return a127_0x4ef9();}(function(_0x4c9e59,_0x79466f){const _0x2c05a0=a127_0x2769,_0x1e6a9a=_0x4c9e59();while(!![]){try{const _0x54af9e=-parseInt(_0x2c05a0(0x128))/0x1+-parseInt(_0x2c05a0(0x126))/0x2+parseInt(_0x2c05a0(0x11f))/0x3+-parseInt(_0x2c05a0(0x119))/0x4*(-parseInt(_0x2c05a0(0x11e))/0x5)+-parseInt(_0x2c05a0(0x120))/0x6+parseInt(_0x2c05a0(0x123))/0x7+-parseInt(_0x2c05a0(0x124))/0x8;if(_0x54af9e===_0x79466f)break;else _0x1e6a9a['push'](_0x1e6a9a['shift']());}catch(_0x5cf84f){_0x1e6a9a['push'](_0x1e6a9a['shift']());}}}(a127_0x4ef9,0xb03c7));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';import{createAccessError}from'../framework/access-error.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';export function mapUserFacingExecuteError(_0x35f35d){const _0x3ca7e2=a127_0x2769;if(_0x35f35d instanceof LovrabetError){const _0xa014d1=userFacingLovrabetMessage(_0x35f35d),_0x4821e2=_0x35f35d,_0x502a7e=createRateLimitError({'status':_0x4821e2['status'],'errorCode':_0x4821e2[_0x3ca7e2(0x129)],'message':_0xa014d1,'retryAfter':readRetryAfter(_0x4821e2[_0x3ca7e2(0x11b)]?.[_0x3ca7e2(0x11d)])??readRetryAfterSeconds(_0x4821e2[_0x3ca7e2(0x11b)])});return createAccessError(_0x4821e2[_0x3ca7e2(0x11b)],_0x4821e2['code'])??_0x502a7e??(Number(_0x4821e2['status'])===0x191?CliErrors['apiError'](_0x3ca7e2(0x11a),_0x3ca7e2(0x121)):CliErrors['validation'](_0xa014d1));}return _0x35f35d;}function userFacingLovrabetMessage(_0x2d75af){const _0x3b8406=a127_0x2769,_0x4a30f5=_0x2d75af[_0x3b8406(0x125)];if(_0x4a30f5!==undefined&&_0x4a30f5!==null){if(typeof _0x4a30f5===_0x3b8406(0x127)&&_0x4a30f5['trim']())return _0x4a30f5['trim']();try{return JSON[_0x3b8406(0x122)](_0x4a30f5);}catch{}}return _0x2d75af[_0x3b8406(0x11c)];}
|