@lovrabet/lovrabet-cli 2.3.8 → 2.3.9
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/guides/development-intent-handoff.md +7 -5
- package/skills/lovrabet.manifest.json +3 -3
package/lib/core/db-resolver.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x33c8b3,_0x43c6ae){const _0x3e72b5=a109_0x23c7,_0x5802d4=_0x33c8b3();while(!![]){try{const _0x4aa581=-parseInt(_0x3e72b5(0xbf))/0x1*(-parseInt(_0x3e72b5(0xb0))/0x2)+-parseInt(_0x3e72b5(0xb1))/0x3+-parseInt(_0x3e72b5(0xc1))/0x4*(-parseInt(_0x3e72b5(0xb2))/0x5)+parseInt(_0x3e72b5(0xb3))/0x6*(-parseInt(_0x3e72b5(0xb6))/0x7)+-parseInt(_0x3e72b5(0xbe))/0x8+parseInt(_0x3e72b5(0xb9))/0x9+-parseInt(_0x3e72b5(0xbd))/0xa;if(_0x4aa581===_0x43c6ae)break;else _0x5802d4['push'](_0x5802d4['shift']());}catch(_0x21518){_0x5802d4['push'](_0x5802d4['shift']());}}}(a109_0x14fe,0xb947f));import{listDatasets}from'../core/api-client.js';const cache=new Map();function a109_0x23c7(_0xbd2916,_0x470ab2){_0xbd2916=_0xbd2916-0xb0;const _0x14fe9e=a109_0x14fe();let _0x23c7fd=_0x14fe9e[_0xbd2916];return _0x23c7fd;}function a109_0x14fe(){const _0x25fd30=['set','10193110wkfqec','932944JlZbKX','1266aWazyr','find','771724AejiYJ','1194VEXeLZ','332718LsfMbq','35isDaWc','3426PUSbAN','map','dbtableConfig','6132gCFXco','string','dbName','3596607oVlzfg','dbId','db-'];a109_0x14fe=function(){return _0x25fd30;};return a109_0x14fe();}export async function listDatabases(_0x2859de){const _0x43102b=a109_0x23c7;if(cache['has'](_0x2859de))return cache['get'](_0x2859de);const _0x54b15b=await listDatasets(_0x2859de),_0x50a515=new Map();for(const _0x5b3550 of _0x54b15b){const _0x1e8c32=_0x5b3550[_0x43102b(0xb5)];_0x1e8c32?.[_0x43102b(0xba)]!=null&&_0x50a515[_0x43102b(0xbc)](_0x1e8c32[_0x43102b(0xba)],typeof _0x1e8c32['dbName']===_0x43102b(0xb7)?_0x1e8c32[_0x43102b(0xb8)]:_0x43102b(0xbb)+_0x1e8c32[_0x43102b(0xba)]);}const _0x3be146=[..._0x50a515['entries']()][_0x43102b(0xb4)](([_0x33414f,_0xb10513])=>({'dbId':_0x33414f,'dbName':_0xb10513}));return cache[_0x43102b(0xbc)](_0x2859de,_0x3be146),_0x3be146;}export async function getDbName(_0x2af0f9,_0x5141cd){const _0x86981=a109_0x23c7;try{const _0x3c039d=await listDatabases(_0x2af0f9);return _0x3c039d[_0x86981(0xc0)](_0xd69f7a=>_0xd69f7a['dbId']===_0x5141cd)?.[_0x86981(0xb8)];}catch{return undefined;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x347362,_0x134285){const _0x2d5592=a110_0x3494,_0x27ce5f=_0x347362();while(!![]){try{const _0x190f35=-parseInt(_0x2d5592(0x1d8))/0x1*(parseInt(_0x2d5592(0x1eb))/0x2)+-parseInt(_0x2d5592(0x1e1))/0x3*(parseInt(_0x2d5592(0x1ce))/0x4)+-parseInt(_0x2d5592(0x1cd))/0x5+-parseInt(_0x2d5592(0x1d9))/0x6+-parseInt(_0x2d5592(0x1df))/0x7*(-parseInt(_0x2d5592(0x1ef))/0x8)+-parseInt(_0x2d5592(0x1de))/0x9+parseInt(_0x2d5592(0x1e0))/0xa;if(_0x190f35===_0x134285)break;else _0x27ce5f['push'](_0x27ce5f['shift']());}catch(_0x48c183){_0x27ce5f['push'](_0x27ce5f['shift']());}}}(a110_0x4f63,0xa1d68));function a110_0x4f63(){const _0x308b0b=['length','1272PAodOU','userId','page','Personal\x20knowledge\x20title\x20and\x20content\x20must\x20be\x20strings.','paging','add','personal','version','run','Personal\x20knowledge\x20appCode\x20is\x20required.','push','Personal\x20knowledge\x20appCode\x20is\x20required\x20(at\x20most\x20100\x20characters).','trim','invokeSource','sdk','4081950GPUtfa','120116TReBCV','string','KB\x20Service\x20is\x20not\x20configured\x20for\x20personal\x20knowledge\x20management.','accessKey','Personal\x20knowledge\x20ID\x20must\x20be\x20positive\x20integer\x20text.','tableData','A\x20current\x20personal\x20knowledge\x20version\x20is\x20required.','POST','getStore','totalCount','812124lUzdZt','3085236jLHFIC','title','update','signal','content','1757142mIEyLQ','973dQjOXF','34892380AhIOXN','51tweMir','validation','currentPage','apiError','appCode','getOne','isArray','get-one','test','min','2WoEIuK','has','isSafeInteger'];a110_0x4f63=function(){return _0x308b0b;};return a110_0x4f63();}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(_0x1e371e,_0x23d1f1){const _0x3d3da0=a110_0x3494;if(typeof _0x1e371e!==_0x3d3da0(0x1cf)||!_0x1e371e[_0x3d3da0(0x1ca)]()||_0x1e371e[_0x3d3da0(0x1ee)]>0x64)throw CliErrors[_0x3d3da0(0x1e2)](_0x3d3da0(0x1c9));return KNOWLEDGE_PATHS[_0x23d1f1===_0x3d3da0(0x1e8)?_0x3d3da0(0x1e6):_0x23d1f1];}const commandOrigin=new AsyncLocalStorage();function invalidContract(_0x4bca31=![]){const _0x463331=a110_0x3494;return CliErrors[_0x463331(0x1e4)]('KB\x20Service\x20personal\x20knowledge\x20returned\x20an\x20invalid\x20response\x20contract.'+(_0x4bca31?WRITE_RECONCILIATION:''));}function requestContext(_0x165585){const _0x3b0f5f=a110_0x3494;if(typeof _0x165585['appCode']!==_0x3b0f5f(0x1cf)||!_0x165585[_0x3b0f5f(0x1e5)][_0x3b0f5f(0x1ca)]()||_0x165585[_0x3b0f5f(0x1e5)][_0x3b0f5f(0x1ee)]>0x64)throw CliErrors['validation'](_0x3b0f5f(0x1c7));if(!_0x165585['accessKey']?.[_0x3b0f5f(0x1ca)]())throw CliErrors['authRequired']();return{..._0x165585,'sdk':createKnowledgeClient({'kbServiceDomain':commandOrigin[_0x3b0f5f(0x1d6)]()??configuredOrigin(),'accessKey':_0x165585[_0x3b0f5f(0x1d1)],'invokeSource':PRODUCT_CONFIG[_0x3b0f5f(0x1cb)]})};}function a110_0x3494(_0x1abd67,_0x5f20a1){_0x1abd67=_0x1abd67-0x1bf;const _0x4f63ff=a110_0x4f63();let _0x34946d=_0x4f63ff[_0x1abd67];return _0x34946d;}function configuredOrigin(){const _0x10ee4d=a110_0x3494,_0x153d9b=getKbServiceDomain();if(!_0x153d9b)throw CliErrors['validation'](_0x10ee4d(0x1d0),'Configure\x20a\x20trusted\x20kbServiceDomain\x20HTTPS\x20origin\x20in\x20the\x20connection\x20settings.');return normalizeKbServiceOrigin(_0x153d9b);}export function withKbManagementOrigin(_0x183d2){const _0x5dc917=a110_0x3494;return commandOrigin[_0x5dc917(0x1c6)](configuredOrigin(),_0x183d2);}function positiveInteger(_0x130c44){const _0x347afc=a110_0x3494;return Number[_0x347afc(0x1ed)](_0x130c44)&&_0x130c44>=0x1;}function validId(_0x469397){const _0x55231=a110_0x3494;return typeof _0x469397===_0x55231(0x1cf)&&/^0*[1-9]\d*$/[_0x55231(0x1e9)](_0x469397);}export function planPersonalKnowledgeWrite(_0x4b45bf,_0x246b78,_0x256bbc,_0x44cca6){const _0x402823=a110_0x3494;if(_0x256bbc!==undefined&&!validId(_0x256bbc))throw CliErrors[_0x402823(0x1e2)](_0x402823(0x1d2));if(_0x256bbc!==undefined&&!positiveInteger(_0x44cca6))throw CliErrors['validation'](_0x402823(0x1d4));const _0x52629b=personalKnowledgePath(_0x4b45bf,_0x256bbc===undefined?'create':_0x402823(0x1db)),_0x5e9e40=JSON['stringify']({'appCode':_0x4b45bf,'title':_0x246b78['title'],'content':_0x246b78[_0x402823(0x1dd)],..._0x256bbc!==undefined?{'id':_0x256bbc,'expectedVersion':_0x44cca6}:{}});return{'path':_0x52629b,'method':_0x402823(0x1d5),'jsonBody':_0x5e9e40};}async function sdkCall(_0x276c65){try{return await _0x276c65();}catch(_0x282a00){throw knowledgeCliError(_0x282a00);}}export async function listPersonalKnowledge(_0x25fa83){const _0x598998=a110_0x3494,_0x4c91d9=requestContext(_0x25fa83),_0x3a3374=0x32;let _0xd02d52=0x1,_0x4d4de9,_0x40e1d6;const _0x1a9854=[],_0x416d74=new Set();while(!![]){const _0x5ebbd6=await sdkCall(()=>_0x4c91d9[_0x598998(0x1cc)][_0x598998(0x1c4)][_0x598998(0x1c0)]({'appCode':_0x25fa83[_0x598998(0x1e5)],'currentPage':_0xd02d52,'pageSize':_0x3a3374,'view':'summary'},{'signal':_0x4c91d9['signal']})),_0x154b10=_0x5ebbd6[_0x598998(0x1c2)];if(!Array[_0x598998(0x1e7)](_0x5ebbd6[_0x598998(0x1d3)])||_0x154b10[_0x598998(0x1e3)]!==_0xd02d52||_0x154b10['pageSize']!==_0x3a3374||!Number[_0x598998(0x1ed)](_0x154b10[_0x598998(0x1d7)])||_0x154b10[_0x598998(0x1d7)]<0x0)throw invalidContract();const _0x30d068=_0x154b10[_0x598998(0x1d7)];if(_0x4d4de9!==undefined&&_0x30d068!==_0x4d4de9)throw invalidContract();_0x4d4de9=_0x30d068;if(_0x5ebbd6['tableData'][_0x598998(0x1ee)]!==Math[_0x598998(0x1ea)](_0x3a3374,_0x30d068-_0x1a9854[_0x598998(0x1ee)]))throw invalidContract();for(const _0x5ee921 of _0x5ebbd6['tableData']){const _0x38ac9e=_0x5ee921;if(_0x38ac9e[_0x598998(0x1dd)]!==null||_0x416d74[_0x598998(0x1ec)](_0x38ac9e['id']))throw invalidContract();const _0xc1eeb4=await getPersonalKnowledgeAt(_0x4c91d9,_0x38ac9e['id']);if(_0xc1eeb4['version']!==_0x38ac9e[_0x598998(0x1c5)]||_0xc1eeb4['userId']!==_0x38ac9e[_0x598998(0x1bf)]||_0x40e1d6!==undefined&&_0xc1eeb4[_0x598998(0x1bf)]!==_0x40e1d6)throw invalidContract();_0x40e1d6=_0xc1eeb4[_0x598998(0x1bf)],_0x416d74[_0x598998(0x1c3)](_0xc1eeb4['id']),_0x1a9854[_0x598998(0x1c8)](_0xc1eeb4);}if(_0x1a9854[_0x598998(0x1ee)]===_0x30d068)return _0x1a9854;_0xd02d52++;}}export async function getPersonalKnowledge(_0x5cfb57,_0x384d0a){const _0x4dfbd0=a110_0x3494;if(!validId(_0x384d0a))throw CliErrors['validation'](_0x4dfbd0(0x1d2));return getPersonalKnowledgeAt(requestContext(_0x5cfb57),_0x384d0a);}async function getPersonalKnowledgeAt(_0x4484bb,_0x1b583b){const _0x2cc310=a110_0x3494;return await sdkCall(()=>_0x4484bb[_0x2cc310(0x1cc)][_0x2cc310(0x1c4)][_0x2cc310(0x1e6)]({'appCode':_0x4484bb[_0x2cc310(0x1e5)],'id':_0x1b583b},{'signal':_0x4484bb['signal']}));}export async function savePersonalKnowledge(_0x11ed62,_0x3bcf39,_0x42dd40){const _0x1e2b62=a110_0x3494;if(_0x42dd40!==undefined&&!validId(_0x42dd40))throw CliErrors[_0x1e2b62(0x1e2)]('Personal\x20knowledge\x20ID\x20must\x20be\x20positive\x20integer\x20text.');if(typeof _0x3bcf39[_0x1e2b62(0x1dd)]!==_0x1e2b62(0x1cf)||_0x3bcf39[_0x1e2b62(0x1da)]!==undefined&&typeof _0x3bcf39['title']!==_0x1e2b62(0x1cf))throw CliErrors['validation'](_0x1e2b62(0x1c1));const _0x2e07fa=requestContext(_0x11ed62),_0x166ad6=_0x42dd40===undefined?undefined:await getPersonalKnowledgeAt(_0x2e07fa,_0x42dd40),_0x5f57b6=_0x3bcf39[_0x1e2b62(0x1da)]??_0x166ad6?.[_0x1e2b62(0x1da)];if(typeof _0x5f57b6!==_0x1e2b62(0x1cf))throw CliErrors[_0x1e2b62(0x1e2)]('Personal\x20knowledge\x20title\x20is\x20required.');const _0x509488={'appCode':_0x11ed62[_0x1e2b62(0x1e5)],'title':_0x5f57b6,'content':_0x3bcf39[_0x1e2b62(0x1dd)]},_0x3b9e06=await sdkCall(()=>_0x42dd40===undefined?_0x2e07fa[_0x1e2b62(0x1cc)][_0x1e2b62(0x1c4)]['create'](_0x509488,{'signal':_0x2e07fa[_0x1e2b62(0x1dc)]}):_0x2e07fa[_0x1e2b62(0x1cc)][_0x1e2b62(0x1c4)][_0x1e2b62(0x1db)]({..._0x509488,'id':_0x42dd40,'expectedVersion':_0x166ad6[_0x1e2b62(0x1c5)]},{'signal':_0x2e07fa[_0x1e2b62(0x1dc)]}));try{const _0x2e0119=_0x3b9e06,_0x1b7632=_0x166ad6&&(_0x166ad6[_0x1e2b62(0x1da)]!==_0x5f57b6[_0x1e2b62(0x1ca)]()||_0x166ad6[_0x1e2b62(0x1dd)]!==_0x3bcf39[_0x1e2b62(0x1dd)]);if(_0x2e0119[_0x1e2b62(0x1da)]!==_0x5f57b6['trim']()||_0x2e0119['content']!==_0x3bcf39[_0x1e2b62(0x1dd)]||_0x166ad6&&(_0x2e0119[_0x1e2b62(0x1bf)]!==_0x166ad6[_0x1e2b62(0x1bf)]||_0x2e0119['version']!==_0x166ad6[_0x1e2b62(0x1c5)]+(_0x1b7632?0x1:0x0)))throw invalidContract();const _0x41fadf=await getPersonalKnowledgeAt(_0x2e07fa,_0x2e0119['id']);if(_0x41fadf[_0x1e2b62(0x1c5)]!==_0x2e0119['version']||_0x41fadf['title']!==_0x2e0119['title']||_0x41fadf['content']!==_0x2e0119[_0x1e2b62(0x1dd)]||_0x41fadf['userId']!==_0x2e0119[_0x1e2b62(0x1bf)])throw invalidContract();return _0x41fadf;}catch{throw invalidContract(!![]);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a111_0x1648(){const _0x11b1f4=['175aAhOxv','auth','apiError','network','12775608SCFVvw','contract','timed\x20out','\x20request\x20','timeout','319345JZPUlC','personal\x20knowledge','HTTP\x20','authRequired','kind','cancelled','KB\x20Service\x20','Knowledge\x20search\x20cancelled.','AbortError','3111760eyvGGW','message','includes','failed','status','networkError','153qiWSeI','\x20(HTTP\x20','validation','55662MFbSUf','KB\x20Service\x20personal\x20knowledge\x20returned\x20an\x20invalid\x20response\x20contract','137825MfEODC','30944xcKzDV','8126bXHMyt','was\x20cancelled'];a111_0x1648=function(){return _0x11b1f4;};return a111_0x1648();}(function(_0xa5c7ad,_0x3badf8){const _0x450a5a=a111_0x3c01,_0x56b704=_0xa5c7ad();while(!![]){try{const _0x132a11=-parseInt(_0x450a5a(0x68))/0x1+-parseInt(_0x450a5a(0x6a))/0x2+parseInt(_0x450a5a(0x84))/0x3*(-parseInt(_0x450a5a(0x69))/0x4)+-parseInt(_0x450a5a(0x75))/0x5+-parseInt(_0x450a5a(0x66))/0x6*(parseInt(_0x450a5a(0x6c))/0x7)+-parseInt(_0x450a5a(0x7e))/0x8+parseInt(_0x450a5a(0x70))/0x9;if(_0x132a11===_0x3badf8)break;else _0x56b704['push'](_0x56b704['shift']());}catch(_0x5e2b0c){_0x56b704['push'](_0x56b704['shift']());}}}(a111_0x1648,0x306b4));function a111_0x3c01(_0x29ce52,_0x59a10e){_0x29ce52=_0x29ce52-0x64;const _0x164810=a111_0x1648();let _0x3c0178=_0x164810[_0x29ce52];return _0x3c0178;}import{KnowledgeServiceError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';export const WRITE_RECONCILIATION='\x20The\x20entry\x20may\x20already\x20have\x20been\x20saved.\x20Use\x20read-only\x20detail\x20or\x20list\x20reconciliation\x20before\x20another\x20write.';export function knowledgeCliError(_0x5cb3c6,_0x187d8d=![]){const _0x246f63=a111_0x3c01,_0x210fc3=_0x187d8d?'knowledge\x20search':_0x246f63(0x76);if(!(_0x5cb3c6 instanceof KnowledgeServiceError))return CliErrors[_0x246f63(0x6e)](_0x246f63(0x7b)+_0x210fc3+'\x20returned\x20an\x20invalid\x20response\x20contract.');const _0x2cdb21=_0x5cb3c6['writeUncertain']?WRITE_RECONCILIATION:'';if(_0x5cb3c6['kind']===_0x246f63(0x6d))return CliErrors[_0x246f63(0x78)]();if(_0x5cb3c6[_0x246f63(0x79)]===_0x246f63(0x65))return CliErrors[_0x246f63(0x65)](_0x5cb3c6[_0x246f63(0x7f)]);if(_0x5cb3c6[_0x246f63(0x79)]===_0x246f63(0x7a)&&_0x187d8d)return new DOMException(_0x246f63(0x7c),_0x246f63(0x7d));if(['cancelled',_0x246f63(0x74),_0x246f63(0x6f)][_0x246f63(0x80)](_0x5cb3c6[_0x246f63(0x79)])){const _0x2220ea=_0x5cb3c6['kind']==='cancelled'?_0x246f63(0x6b):_0x5cb3c6[_0x246f63(0x79)]==='timeout'?_0x246f63(0x72):_0x246f63(0x81);return CliErrors[_0x246f63(0x83)](_0x246f63(0x7b)+_0x210fc3+_0x246f63(0x73)+_0x2220ea+'.'+_0x2cdb21);}if(_0x5cb3c6[_0x246f63(0x82)]===0x1ad&&!_0x5cb3c6['writeUncertain'])return CliErrors['rateLimited'](_0x5cb3c6[_0x246f63(0x7f)]);if(_0x5cb3c6['kind']===_0x246f63(0x71)&&!_0x187d8d)return CliErrors[_0x246f63(0x6e)](_0x246f63(0x67)+(_0x5cb3c6[_0x246f63(0x82)]?_0x246f63(0x64)+_0x5cb3c6[_0x246f63(0x82)]+')':'')+'.'+_0x2cdb21);const _0x2996cb=_0x5cb3c6[_0x246f63(0x82)]!==undefined&&!_0x5cb3c6[_0x246f63(0x7f)][_0x246f63(0x80)](_0x246f63(0x77)+_0x5cb3c6[_0x246f63(0x82)])?_0x246f63(0x64)+_0x5cb3c6[_0x246f63(0x82)]+')':'';return CliErrors[_0x246f63(0x6e)](''+_0x5cb3c6[_0x246f63(0x7f)]+_0x2996cb+_0x2cdb21);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a112_0x4cb8(_0x3f06d8,_0x502990){_0x3f06d8=_0x3f06d8-0x82;const _0x5bcf07=a112_0x5bcf();let _0x4cb826=_0x5bcf07[_0x3f06d8];return _0x4cb826;}(function(_0x5b1368,_0x13a349){const _0x1e2b28=a112_0x4cb8,_0x1b52fa=_0x5b1368();while(!![]){try{const _0xebf54e=parseInt(_0x1e2b28(0x90))/0x1+parseInt(_0x1e2b28(0x86))/0x2*(parseInt(_0x1e2b28(0x8b))/0x3)+-parseInt(_0x1e2b28(0x9a))/0x4+parseInt(_0x1e2b28(0x93))/0x5*(-parseInt(_0x1e2b28(0x8d))/0x6)+parseInt(_0x1e2b28(0x95))/0x7+-parseInt(_0x1e2b28(0x94))/0x8+parseInt(_0x1e2b28(0x98))/0x9;if(_0xebf54e===_0x13a349)break;else _0x1b52fa['push'](_0x1b52fa['shift']());}catch(_0xaeccab){_0x1b52fa['push'](_0x1b52fa['shift']());}}}(a112_0x5bcf,0xa5786));import{createKnowledgeClient,normalizeKnowledgeServiceOrigin}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';import{knowledgeCliError}from'../core/kb-sdk-errors.js';export function normalizeKbServiceOrigin(_0x1c3ff1){const _0xa2ab80=a112_0x4cb8;try{return normalizeKnowledgeServiceOrigin(_0x1c3ff1);}catch{throw CliErrors[_0xa2ab80(0x8a)]('Invalid\x20--kb-service-url:\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.');}}export async function searchDirectKnowledge(_0x93e941){const _0x12cca8=a112_0x4cb8,_0x5e81be=_0x93e941[_0x12cca8(0x85)][_0x12cca8(0x87)](),_0x279d56=_0x93e941[_0x12cca8(0x83)][_0x12cca8(0x87)]();if(!_0x5e81be)throw CliErrors['validation'](_0x12cca8(0x89));if(!_0x93e941[_0x12cca8(0x91)]['trim']())throw CliErrors[_0x12cca8(0x92)]();if(!_0x279d56)throw CliErrors['validation']('Knowledge\x20search\x20query\x20is\x20required.');const _0x5c83fa=normalizeKbServiceOrigin(_0x93e941[_0x12cca8(0x97)]);try{const _0x400407=createKnowledgeClient({'kbServiceDomain':_0x5c83fa,'accessKey':_0x93e941[_0x12cca8(0x91)],'invokeSource':_0x12cca8(0x88)}),_0x41187f=await _0x400407[_0x12cca8(0x82)]({'appCode':_0x5e81be,'query':_0x279d56,'scopes':[_0x12cca8(0x84),_0x12cca8(0x8e),_0x12cca8(0x99)],..._0x93e941['topK']!==undefined?{'topK':_0x93e941[_0x12cca8(0x8f)]}:{}},{'signal':_0x93e941[_0x12cca8(0x8c)]});return{'schemaVersion':0x2,'profile':_0x12cca8(0x96),'total':_0x41187f['hits']['length'],..._0x41187f};}catch(_0x470aa7){throw knowledgeCliError(_0x470aa7,!![]);}}function a112_0x5bcf(){const _0x39dd96=['12MEEZsd','company','topK','184469VzgOBU','accessKey','authRequired','1864385GIbssu','5613624YGPJeo','2279634uBQKFH','runtime','serviceUrl','15732306rmnank','personal','1553496RAQJzp','search','query','public','appCode','42572OabrPI','trim','cli:lovrabet','Knowledge\x20search\x20appCode\x20is\x20required.','validation','36tBqsak','signal'];a112_0x5bcf=function(){return _0x39dd96;};return a112_0x5bcf();}
|
package/lib/core/sdk-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x810349,_0xba4a4c){const _0x30f854=a113_0x3c7c,_0x2008da=_0x810349();while(!![]){try{const _0x2f42a5=-parseInt(_0x30f854(0x17f))/0x1*(parseInt(_0x30f854(0x161))/0x2)+parseInt(_0x30f854(0x160))/0x3*(-parseInt(_0x30f854(0x17a))/0x4)+parseInt(_0x30f854(0x15e))/0x5+parseInt(_0x30f854(0x17c))/0x6*(parseInt(_0x30f854(0x172))/0x7)+-parseInt(_0x30f854(0x170))/0x8+parseInt(_0x30f854(0x167))/0x9*(parseInt(_0x30f854(0x159))/0xa)+-parseInt(_0x30f854(0x16f))/0xb;if(_0x2f42a5===_0xba4a4c)break;else _0x2008da['push'](_0x2008da['shift']());}catch(_0xcdfcf6){_0x2008da['push'](_0x2008da['shift']());}}}(a113_0x2381,0xcefde));function a113_0x3c7c(_0x18b7bd,_0x826461){_0x18b7bd=_0x18b7bd-0x158;const _0x238118=a113_0x2381();let _0x3c7c83=_0x238118[_0x18b7bd];return _0x3c7c83;}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';function a113_0x2381(){const _0x8d57c8=['data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','invokeSource','map','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','validation','isArray','8167137NFLmLH','1235920TPYwrB','execute','3260775saShsq','column','runtimeDomain',']\x20must\x20be\x20an\x20object.','field','sql','getOne','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','8ynGpkm','update','12SoKtHC','env','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','8800SkfhTx','batchCreate','accessKey','10qPAPIh','appCode','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','authMode','object','5392390nsGKSy','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','1329603QLzopO','106vRtgbu','dataset_','delete','data\x20aggregate\x20--params.aggregate[','bff','error','9787221TwubUf','aggregate'];a113_0x2381=function(){return _0x8d57c8;};return a113_0x2381();}let _client,clientOptions,scopedClient,scopedOptions,restoreResponseJsonParser;export function getIdentitySdkClient(_0x12b8be,_0x439ba2){const _0x4ad46e=a113_0x3c7c;restoreResponseJsonParser??=installLosslessJsonResponseParser();try{return createAppClient({'accessKey':_0x12b8be,'runtimeDomain':_0x439ba2,'options':{'timeout':0x7530,'redirect':_0x4ad46e(0x166),'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource']}}});}catch(_0x252131){clearSdkClient();throw _0x252131;}}function createRuntimeSdkClient(_0x492df5){const _0x2c2368=a113_0x3c7c;return restoreResponseJsonParser??=installLosslessJsonResponseParser(),createClient({'appCode':_0x492df5[_0x2c2368(0x15a)],'env':_0x492df5['env'],'runtimeDomain':_0x492df5[_0x2c2368(0x174)],'authMode':_0x492df5[_0x2c2368(0x15c)],..._0x492df5[_0x2c2368(0x158)]?{'accessKey':_0x492df5['accessKey']}:{},'options':{'timeout':0x7530,'redirect':_0x2c2368(0x166),'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x2c2368(0x16a)]}}});}export function initSdkClient(_0x421298){try{_client=createRuntimeSdkClient(_0x421298),clientOptions={..._0x421298};}catch(_0x2b8359){clearSdkClient();throw _0x2b8359;}}function sameOptions(_0x153f03,_0x73c84e){const _0x2ec554=a113_0x3c7c;return!!_0x153f03&&_0x153f03[_0x2ec554(0x15a)]===_0x73c84e[_0x2ec554(0x15a)]&&_0x153f03[_0x2ec554(0x17d)]===_0x73c84e[_0x2ec554(0x17d)]&&_0x153f03[_0x2ec554(0x174)]===_0x73c84e[_0x2ec554(0x174)]&&_0x153f03['accessKey']===_0x73c84e['accessKey']&&_0x153f03[_0x2ec554(0x15c)]===_0x73c84e[_0x2ec554(0x15c)];}export function clearSdkClient(){_client=undefined,clientOptions=undefined,scopedClient=undefined,scopedOptions=undefined,restoreResponseJsonParser?.(),restoreResponseJsonParser=undefined;}export function getSdkClient(_0x27c11b){const _0x145b2a=a113_0x3c7c;if(_0x27c11b){if(_client&&sameOptions(clientOptions,_0x27c11b))return _client;if(!scopedClient||!sameOptions(scopedOptions,_0x27c11b))try{scopedClient=createRuntimeSdkClient(_0x27c11b),scopedOptions={..._0x27c11b};}catch(_0x470814){clearSdkClient();throw _0x470814;}return scopedClient;}if(!_client)throw new Error(_0x145b2a(0x17e));return _client;}function normalizeAggregateParams(_0x3ff0e0){const _0x5dffa7=a113_0x3c7c,_0x2a5195=_0x3ff0e0[_0x5dffa7(0x168)];if(_0x2a5195===undefined)return _0x3ff0e0;if(!Array['isArray'](_0x2a5195))throw CliErrors[_0x5dffa7(0x16d)](_0x5dffa7(0x169));return{..._0x3ff0e0,'aggregate':_0x2a5195[_0x5dffa7(0x16b)]((_0x46edf5,_0x58d69c)=>{const _0x3121af=_0x5dffa7;if(!_0x46edf5||typeof _0x46edf5!==_0x3121af(0x15d)||Array[_0x3121af(0x16e)](_0x46edf5))throw CliErrors[_0x3121af(0x16d)](_0x3121af(0x164)+_0x58d69c+_0x3121af(0x175));const _0x364246=_0x46edf5[_0x3121af(0x173)]??_0x46edf5[_0x3121af(0x176)];if(typeof _0x364246!=='string'||_0x364246['trim']()==='')throw CliErrors[_0x3121af(0x16d)](_0x3121af(0x164)+_0x58d69c+']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.');const _0x5b381d={..._0x46edf5,'column':_0x364246};return delete _0x5b381d[_0x3121af(0x176)],_0x5b381d;})};}export async function executeData(_0x4c5c48,_0x2afc3d,_0x3b0a30){const _0x3bb48b=a113_0x3c7c,_0x1f7e82=getSdkClient(),_0x30e7ce=_0x3bb48b(0x162)+_0x4c5c48,_0x5d9774=_0x1f7e82['models'][_0x30e7ce];if(!_0x5d9774||typeof _0x5d9774[_0x2afc3d]!=='function')throw new Error('SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22'+_0x2afc3d+'\x22.\x20'+_0x3bb48b(0x16c));if(_0x2afc3d==='batchCreate')return _0x5d9774[_0x3bb48b(0x180)](parseBatchCreateItemsFromParams(_0x3b0a30));const _0x3a3a60=_0x3b0a30!==undefined&&_0x3b0a30!==null&&!Array[_0x3bb48b(0x16e)](_0x3b0a30)?_0x3b0a30:{};switch(_0x2afc3d){case _0x3bb48b(0x178):{const _0x4108dd=_0x3a3a60['id'];if(_0x4108dd===undefined||_0x4108dd===null)throw new Error(_0x3bb48b(0x15f));return _0x5d9774['getOne'](_0x4108dd);}case _0x3bb48b(0x17b):{const {id:_0x34a6e4,..._0x3640f6}=_0x3a3a60;if(_0x34a6e4===undefined||_0x34a6e4===null)throw new Error(_0x3bb48b(0x15b));return _0x5d9774[_0x3bb48b(0x17b)](_0x34a6e4,_0x3640f6);}case _0x3bb48b(0x163):{const _0x56521e=_0x3a3a60['id'];if(_0x56521e===undefined||_0x56521e===null)throw new Error(_0x3bb48b(0x179));return _0x5d9774[_0x3bb48b(0x163)](_0x56521e);}case _0x3bb48b(0x168):return _0x5d9774[_0x3bb48b(0x168)](normalizeAggregateParams(_0x3a3a60));default:return _0x5d9774[_0x2afc3d](_0x3a3a60);}}export async function executeSdkSql(_0x3959c9,_0x2ae55c){const _0x31cb96=a113_0x3c7c,_0x678754=getSdkClient();return _0x678754[_0x31cb96(0x177)][_0x31cb96(0x171)]({'sqlCode':_0x3959c9,'params':_0x2ae55c});}export async function executeSdkBff(_0x444536,_0x1de4b0){const _0x521156=a113_0x3c7c,_0x32bdda=getSdkClient();return _0x32bdda[_0x521156(0x165)][_0x521156(0x171)]({'scriptName':_0x444536,'params':_0x1de4b0});}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a114_0x19a013=a114_0x4fe3;(function(_0x13cedd,_0x18f9ab){const _0x43a880=a114_0x4fe3,_0xc44cd7=_0x13cedd();while(!![]){try{const _0x5bc945=parseInt(_0x43a880(0x128))/0x1+-parseInt(_0x43a880(0x120))/0x2*(parseInt(_0x43a880(0x11e))/0x3)+parseInt(_0x43a880(0x127))/0x4+-parseInt(_0x43a880(0x12a))/0x5+parseInt(_0x43a880(0x119))/0x6*(parseInt(_0x43a880(0x124))/0x7)+parseInt(_0x43a880(0x11c))/0x8+-parseInt(_0x43a880(0x116))/0x9;if(_0x5bc945===_0x18f9ab)break;else _0xc44cd7['push'](_0xc44cd7['shift']());}catch(_0x3b9496){_0xc44cd7['push'](_0xc44cd7['shift']());}}}(a114_0x19cd,0xb3dc2));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a114_0x19cd(){const _0x3e3364=['rate_limited','5662780ogjlBj','native_tool_required','10439766jLKtQz','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','\x20or\x20run\x20`','1412046ZbEcDZ','newConfigFileName','\x20auth\x20login`.','9424896FNWDax','`\x20cannot\x20run\x20through\x20the\x20shell\x20CLI\x20because\x20this\x20execution\x20host\x20delegates\x20Lovrabet\x20writes\x20to\x20the\x20native\x20tool.','3oJESDG','Permission\x20denied.','2558678HOjgCz','Use\x20the\x20native\x20`lovrabet`\x20tool\x20with\x20argv\x20containing\x20only\x20the\x20tokens\x20after\x20`lovrabet`;\x20do\x20not\x20raise\x20riskLevel\x20or\x20retry\x20through\x20bash.','Configure\x20accessKey\x20in\x20','Set\x20appcode\x20via\x20--appcode\x20or\x20','35UeXQHA','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.','permission_denied','4740424anpcag','768652hIlBVV'];a114_0x19cd=function(){return _0x3e3364;};return a114_0x19cd();}import{CLI_BIN_NAME}from'./constant/cli.js';function a114_0x4fe3(_0x477372,_0x11adab){_0x477372=_0x477372-0x115;const _0x19cd72=a114_0x19cd();let _0x4fe34a=_0x19cd72[_0x477372];return _0x4fe34a;}import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};const baseCliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a114_0x19a013(0x122)+PRODUCT_CONFIG['newConfigFileName']+a114_0x19a013(0x118)+CLI_BIN_NAME+a114_0x19a013(0x11b),'configMissingHint':a114_0x19a013(0x123)+PRODUCT_CONFIG[a114_0x19a013(0x11a)]+'.','notInProjectHint':a114_0x19a013(0x117)+PRODUCT_CONFIG[a114_0x19a013(0x11a)]+'\x20file.'});export const CliErrors={...baseCliErrors,'permissionDenied':()=>new CliError(a114_0x19a013(0x126),0x2,a114_0x19a013(0x11f),a114_0x19a013(0x125)),'rateLimited':(_0x1a217f,_0x2f94d8)=>new CliError(a114_0x19a013(0x129),0x2,_0x1a217f,_0x2f94d8),'nativeToolRequired':_0x542fff=>new CliError(a114_0x19a013(0x115),0x1,'Command\x20`'+_0x542fff+a114_0x19a013(0x11d),a114_0x19a013(0x121))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4906e3,_0x16778b){const _0x34f6f4=a115_0x36b0,_0x40f1f1=_0x4906e3();while(!![]){try{const _0x466259=parseInt(_0x34f6f4(0xad))/0x1+parseInt(_0x34f6f4(0xa5))/0x2*(-parseInt(_0x34f6f4(0xa2))/0x3)+-parseInt(_0x34f6f4(0xa1))/0x4*(-parseInt(_0x34f6f4(0xa8))/0x5)+-parseInt(_0x34f6f4(0xab))/0x6*(parseInt(_0x34f6f4(0xae))/0x7)+parseInt(_0x34f6f4(0x9c))/0x8*(parseInt(_0x34f6f4(0xa4))/0x9)+parseInt(_0x34f6f4(0xaf))/0xa*(parseInt(_0x34f6f4(0x9f))/0xb)+parseInt(_0x34f6f4(0x9e))/0xc;if(_0x466259===_0x16778b)break;else _0x40f1f1['push'](_0x40f1f1['shift']());}catch(_0x32f598){_0x40f1f1['push'](_0x40f1f1['shift']());}}}(a115_0xfbfc,0x43b3e));import{CliErrors}from'../errors.js';function a115_0x36b0(_0xa77727,_0x5852ab){_0xa77727=_0xa77727-0x9b;const _0xfbfca1=a115_0xfbfc();let _0x36b0b7=_0xfbfca1[_0xa77727];return _0x36b0b7;}import{CLI_BIN_NAME}from'../constant/cli.js';function a115_0xfbfc(){const _0x35798e=['532126Yilqqr','252290fhICcF','202','number','75328nsjGVy','error','667812mTudEV','22AiEXFd','errorCode','5288KTcOWO','1560138XKywtp','string','117HUYMir','2DtTzbw','permissionDenied','API\x20error\x20code:\x20201.\x20Verify\x20the\x20configured\x20AccessKey\x20or\x20run\x20`','1655fLVKxR','201','trim','24etmhfT','object','435329YXOBFF'];a115_0xfbfc=function(){return _0x35798e;};return a115_0xfbfc();}export function readApiErrorCode(_0x23970e){const _0x858809=a115_0x36b0;if(!_0x23970e||typeof _0x23970e!==_0x858809(0xac)||Array['isArray'](_0x23970e))return undefined;const _0x80438e=_0x23970e;for(const _0x2f27f7 of[_0x80438e[_0x858809(0xa0)],_0x80438e[_0x858809(0x9d)]]){if(typeof _0x2f27f7===_0x858809(0xa3)&&_0x2f27f7[_0x858809(0xaa)]())return _0x2f27f7[_0x858809(0xaa)]();if(typeof _0x2f27f7===_0x858809(0x9b)&&Number['isFinite'](_0x2f27f7))return String(_0x2f27f7);}return undefined;}export function createAccessError(_0x143c6e,_0x4f89bf){const _0x3cd4fb=a115_0x36b0,_0x2c8797=readApiErrorCode(_0x143c6e)??String(_0x4f89bf??'');if(_0x2c8797===_0x3cd4fb(0xb0))return CliErrors[_0x3cd4fb(0xa6)]();if(_0x2c8797===_0x3cd4fb(0xa9))return CliErrors['authRequired'](_0x3cd4fb(0xa7)+CLI_BIN_NAME+'\x20auth\x20login`.');return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1de033,_0x443fab){var _0x30c4cd=a116_0x31a8,_0x580c4c=_0x1de033();while(!![]){try{var _0x2d3899=parseInt(_0x30c4cd(0x1c0))/0x1*(-parseInt(_0x30c4cd(0x1bb))/0x2)+parseInt(_0x30c4cd(0x1bf))/0x3+-parseInt(_0x30c4cd(0x1b9))/0x4+parseInt(_0x30c4cd(0x1b8))/0x5+parseInt(_0x30c4cd(0x1bd))/0x6*(-parseInt(_0x30c4cd(0x1bc))/0x7)+parseInt(_0x30c4cd(0x1be))/0x8+-parseInt(_0x30c4cd(0x1b7))/0x9*(parseInt(_0x30c4cd(0x1ba))/0xa);if(_0x2d3899===_0x443fab)break;else _0x580c4c['push'](_0x580c4c['shift']());}catch(_0x57cc81){_0x580c4c['push'](_0x580c4c['shift']());}}}(a116_0x4949,0xa3db9));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a116_0x4949(){var _0x55f3c2=['9879232ticMmb','3599667AbsLMe','6CIGEhR','315GkQhRZ','1542945PgoslD','3416848JNShWz','257230bNFbWK','29198imFEGt','1610770frkfBX','6AJLOjS'];a116_0x4949=function(){return _0x55f3c2;};return a116_0x4949();}function a116_0x31a8(_0x31bcb7,_0x5e22a2){_0x31bcb7=_0x31bcb7-0x1b7;var _0x494975=a116_0x4949();var _0x31a8e7=_0x494975[_0x31bcb7];return _0x31a8e7;}import{buildAllFlags as a116_0x47538b}from'@lovrabet/cli-framework';export function buildAllFlags(_0x4db662){return a116_0x47538b(_0x4db662,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
|
package/lib/framework/dryrun.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5d96ae,_0x47ff6c){const _0x5059c4=a117_0x4758,_0x3443b2=_0x5d96ae();while(!![]){try{const _0xd5fef6=-parseInt(_0x5059c4(0x9d))/0x1*(parseInt(_0x5059c4(0x95))/0x2)+parseInt(_0x5059c4(0xa1))/0x3+-parseInt(_0x5059c4(0x9b))/0x4*(parseInt(_0x5059c4(0x97))/0x5)+-parseInt(_0x5059c4(0x96))/0x6*(-parseInt(_0x5059c4(0x98))/0x7)+parseInt(_0x5059c4(0x9a))/0x8+-parseInt(_0x5059c4(0x9e))/0x9*(parseInt(_0x5059c4(0x9c))/0xa)+parseInt(_0x5059c4(0x9f))/0xb;if(_0xd5fef6===_0x47ff6c)break;else _0x3443b2['push'](_0x3443b2['shift']());}catch(_0x41fbde){_0x3443b2['push'](_0x3443b2['shift']());}}}(a117_0x2ce3,0x5fb8c));export function dryRun(_0x30f386,_0x37a058){const _0x54eb9d={'method':_0x30f386,'url':_0x37a058},_0x5def34={'body'(_0x2b6e64){const _0x1b8b1a=a117_0x4758;return _0x54eb9d[_0x1b8b1a(0xa0)]=_0x2b6e64,_0x5def34;},'description'(_0x22c9df){const _0x4f8828=a117_0x4758;return _0x54eb9d[_0x4f8828(0x99)]=_0x22c9df,_0x5def34;},'build'(){return{..._0x54eb9d};}};return _0x5def34;}function a117_0x4758(_0x17b769,_0xdc1ceb){_0x17b769=_0x17b769-0x95;const _0x2ce3cb=a117_0x2ce3();let _0x47581a=_0x2ce3cb[_0x17b769];return _0x47581a;}function a117_0x2ce3(){const _0x496958=['2200098axhJsa','15pbfXko','7HdtkrW','description','280600UrmTIi','785348TDvlpq','550SFLaAl','1suznxw','42849XwthpK','9179478fCwzrM','body','2219295PEyLYo','1466158xwWqQD'];a117_0x2ce3=function(){return _0x496958;};return a117_0x2ce3();}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a118_0x4cf4(){const _0x17ca94=['228465MFmUQj','parseFlags','2oRSNfR','1525368ERrOUi','395468cNadVD','147bmjPzy','97962BrDeqI','4651587PrYYIW','725650MbYtOY','8VUykFN','4239525QhhIIM','validateFlags'];a118_0x4cf4=function(){return _0x17ca94;};return a118_0x4cf4();}const a118_0x4a46fa=a118_0x379c;(function(_0x15096b,_0x39aa00){const _0x113522=a118_0x379c,_0x2896ec=_0x15096b();while(!![]){try{const _0x20ae97=-parseInt(_0x113522(0x169))/0x1*(-parseInt(_0x113522(0x16b))/0x2)+parseInt(_0x113522(0x16c))/0x3+parseInt(_0x113522(0x16d))/0x4+parseInt(_0x113522(0x167))/0x5+-parseInt(_0x113522(0x163))/0x6*(parseInt(_0x113522(0x162))/0x7)+-parseInt(_0x113522(0x166))/0x8*(parseInt(_0x113522(0x164))/0x9)+parseInt(_0x113522(0x165))/0xa;if(_0x20ae97===_0x39aa00)break;else _0x2896ec['push'](_0x2896ec['shift']());}catch(_0x27542a){_0x2896ec['push'](_0x2896ec['shift']());}}}(a118_0x4cf4,0xdae24));import{createFlagHelpers}from'@lovrabet/cli-framework';function a118_0x379c(_0x3b8162,_0x47408b){_0x3b8162=_0x3b8162-0x162;const _0x4cf400=a118_0x4cf4();let _0x379c41=_0x4cf400[_0x3b8162];return _0x379c41;}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a118_0x4a46fa(0x16a)];export const validateFlags=helpers[a118_0x4a46fa(0x168)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5af608,_0x2f6b4c){const _0x251b50=a119_0x1094,_0x42df3c=_0x5af608();while(!![]){try{const _0xa5afea=-parseInt(_0x251b50(0x132))/0x1*(parseInt(_0x251b50(0x12c))/0x2)+-parseInt(_0x251b50(0x12a))/0x3+parseInt(_0x251b50(0x129))/0x4*(parseInt(_0x251b50(0x122))/0x5)+-parseInt(_0x251b50(0x12b))/0x6+parseInt(_0x251b50(0x130))/0x7*(-parseInt(_0x251b50(0x12f))/0x8)+-parseInt(_0x251b50(0x12e))/0x9+parseInt(_0x251b50(0x125))/0xa*(parseInt(_0x251b50(0x123))/0xb);if(_0xa5afea===_0x2f6b4c)break;else _0x42df3c['push'](_0x42df3c['shift']());}catch(_0x18bf24){_0x42df3c['push'](_0x42df3c['shift']());}}}(a119_0x522c,0x6f174));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a119_0x522c(){const _0x29d06a=['6655347wlNDOV','1067824tMrMSe','7iZXcDL','service','3zJjskV','generateServiceHelp','get','2565wXjxII','33DVNFyd','newConfigFileName','6966970CGbCha','map','\x20or\x20--appcode).','Requires\x20appcode\x20(set\x20via\x20','1736vUPHTC','559887yhMWxe','3865182uJZiqE','102612EQXary','has'];a119_0x522c=function(){return _0x29d06a;};return a119_0x522c();}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 _0x18da03=a119_0x1094;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries()),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x18da03(0x128)+PRODUCT_CONFIG[_0x18da03(0x124)]+_0x18da03(0x127)});}export function generateCommandHelp(_0x152869){return createGenerators()['generateCommandHelp'](_0x152869);}export function generateServiceHelp(_0x49cded){const _0x1dda5a=a119_0x1094;return createGenerators()[_0x1dda5a(0x133)](_0x49cded);}export function generateFullHelp(){return createGenerators()['generateFullHelp']();}function getAnyServiceEntry(_0xc9fa90){const _0x25d52c=getServiceEntry(_0xc9fa90);if(_0x25d52c)return _0x25d52c;try{return getDynamicServiceEntry(_0xc9fa90);}catch{return undefined;}}function getAnyServiceDefinitions(_0x81b351){const _0x25e2b9=a119_0x1094,_0x5a8163=serviceGroups[_0x25e2b9(0x134)](_0x81b351);if(_0x5a8163)return _0x5a8163;try{return getDynamicServiceDefinitions(_0x81b351);}catch{return undefined;}}function a119_0x1094(_0x576e24,_0x2ce723){_0x576e24=_0x576e24-0x122;const _0x522c67=a119_0x522c();let _0x109444=_0x522c67[_0x576e24];return _0x109444;}function safeListDynamicServiceEntries(){const _0x5a6533=a119_0x1094,_0x4256f2=new Set(serviceRegistry[_0x5a6533(0x126)](_0x2c0349=>_0x2c0349[_0x5a6533(0x131)]));try{return listDynamicServiceEntries()['filter'](_0x2f2aeb=>!_0x4256f2[_0x5a6533(0x12d)](_0x2f2aeb[_0x5a6533(0x131)]));}catch{return[];}}
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2abb7b,_0x52f131){var _0x10a995=a120_0x29a8,_0x33dfe4=_0x2abb7b();while(!![]){try{var _0x5e3e61=-parseInt(_0x10a995(0x1bd))/0x1*(-parseInt(_0x10a995(0x1c1))/0x2)+parseInt(_0x10a995(0x1c2))/0x3*(-parseInt(_0x10a995(0x1c7))/0x4)+parseInt(_0x10a995(0x1c0))/0x5*(parseInt(_0x10a995(0x1be))/0x6)+parseInt(_0x10a995(0x1bf))/0x7+parseInt(_0x10a995(0x1c5))/0x8*(-parseInt(_0x10a995(0x1bc))/0x9)+-parseInt(_0x10a995(0x1c4))/0xa*(-parseInt(_0x10a995(0x1c3))/0xb)+-parseInt(_0x10a995(0x1c6))/0xc;if(_0x5e3e61===_0x52f131)break;else _0x33dfe4['push'](_0x33dfe4['shift']());}catch(_0x443fcd){_0x33dfe4['push'](_0x33dfe4['shift']());}}}(a120_0x59a5,0x7f692));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';function a120_0x29a8(_0x181122,_0x239b58){_0x181122=_0x181122-0x1bc;var _0x59a542=a120_0x59a5();var _0x29a846=_0x59a542[_0x181122];return _0x29a846;}export{riskLevelOrder,isValidFormat}from'../framework/types.js';function a120_0x59a5(){var _0x2a5a04=['4113884sUqgDD','261ImuNvn','250399Noeoji','576hZYxMV','1677305rZrDCR','21760dYaQQe','8zryuxJ','3oupBEY','2255LxzFJA','24470xPLsHu','124984UXiOuL','1886712optjID'];a120_0x59a5=function(){return _0x2a5a04;};return a120_0x59a5();}
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x361708,_0x378b40){const _0x2350e2=a121_0x3b03,_0x592a80=_0x361708();while(!![]){try{const _0x5cd624=-parseInt(_0x2350e2(0x117))/0x1+parseInt(_0x2350e2(0x116))/0x2*(-parseInt(_0x2350e2(0x10d))/0x3)+-parseInt(_0x2350e2(0x10f))/0x4+-parseInt(_0x2350e2(0x10c))/0x5+parseInt(_0x2350e2(0x111))/0x6+parseInt(_0x2350e2(0x118))/0x7+-parseInt(_0x2350e2(0x115))/0x8*(-parseInt(_0x2350e2(0x112))/0x9);if(_0x5cd624===_0x378b40)break;else _0x592a80['push'](_0x592a80['shift']());}catch(_0x12910a){_0x592a80['push'](_0x592a80['shift']());}}}(a121_0x27db,0x86cba));function a121_0x27db(){const _0xd0f15e=['639252cnFkYJ','559809dzDiPh','error','url','232JAECtk','2WgxfnT','259891jxRHQA','2527224eUQWuh','update','pretty','1839695DXDbIg','2072613ptbweM','message','1602320BFWnws','_notice'];a121_0x27db=function(){return _0xd0f15e;};return a121_0x27db();}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a121_0x3b03(_0x170244,_0x2f3375){_0x170244=_0x170244-0x10c;const _0x27db9f=a121_0x27db();let _0x3b0397=_0x27db9f[_0x170244];return _0x3b0397;}import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x498ce1,_0x6f0dd5){const _0x2ad301=a121_0x3b03,_0x5b7389=_0x498ce1[_0x2ad301(0x110)],{_notice:_0x588d27,..._0xf432a7}=_0x498ce1;void _0x588d27,baseFormatOutput(_0xf432a7,_0x6f0dd5),_0x6f0dd5['format']===_0x2ad301(0x11a)&&printPrettyNotice(_0x5b7389);}function printPrettyNotice(_0x45337e){const _0x525747=a121_0x3b03;if(!_0x45337e?.[_0x525747(0x119)])return;console[_0x525747(0x113)](_0x45337e[_0x525747(0x119)][_0x525747(0x10e)]+'\x20('+_0x45337e[_0x525747(0x119)][_0x525747(0x114)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a122_0x518b(){const _0x4b9115=['nonInteractive','length','indexOf','18jtzBZi','5093475HuovqT','env','toLowerCase','432oJBoLn','format','corrected','type','number','slice','original','434SOqsCJ','toUpperCase','version','170271ZCDEWU','74436fXLoOS','sticky','39190tykSut','get','help','10sDaZLI','47699160hKHfmP','set','push','entries','keys','2925362TxIJFs','52hywZrt','name','appcode','string','boolean','add','561980DMZfMA','replace','alias','has'];a122_0x518b=function(){return _0x4b9115;};return a122_0x518b();}(function(_0x296bf6,_0x57ff31){const _0x2913b3=a122_0x378c,_0x477de2=_0x296bf6();while(!![]){try{const _0x2baf8c=parseInt(_0x2913b3(0x1c0))/0x1*(-parseInt(_0x2913b3(0x1a2))/0x2)+parseInt(_0x2913b3(0x1af))/0x3*(-parseInt(_0x2913b3(0x1a8))/0x4)+-parseInt(_0x2913b3(0x1b0))/0x5+-parseInt(_0x2913b3(0x1be))/0x6*(-parseInt(_0x2913b3(0x1ba))/0x7)+parseInt(_0x2913b3(0x1b3))/0x8*(-parseInt(_0x2913b3(0x1bd))/0x9)+parseInt(_0x2913b3(0x1c3))/0xa*(-parseInt(_0x2913b3(0x1a1))/0xb)+parseInt(_0x2913b3(0x1c4))/0xc;if(_0x2baf8c===_0x57ff31)break;else _0x477de2['push'](_0x477de2['shift']());}catch(_0x473e5a){_0x477de2['push'](_0x477de2['shift']());}}}(a122_0x518b,0x8c9b9));export function toKebab(_0x96a402){const _0x345e74=a122_0x378c;return _0x96a402['replace'](/_/g,'-')[_0x345e74(0x1a9)](/-([A-Z]+)/g,(_0x5af6c7,_0x56cae7)=>'-'+_0x56cae7[_0x345e74(0x1b2)]())[_0x345e74(0x1a9)](/([a-z0-9])([A-Z])/g,(_0x3366d2,_0x3525fc,_0x3894e6)=>_0x3525fc+'-'+_0x3894e6)[_0x345e74(0x1b2)]();}function a122_0x378c(_0x3892e8,_0x8ae433){_0x3892e8=_0x3892e8-0x19e;const _0x518b82=a122_0x518b();let _0x378c5c=_0x518b82[_0x3892e8];return _0x378c5c;}function buildKnownFlags(_0x31dad1){const _0x1f96a3=a122_0x378c,_0x3c0c6e=new Set();for(const _0x37807d of _0x31dad1){_0x3c0c6e[_0x1f96a3(0x1a7)](_0x37807d[_0x1f96a3(0x1a3)]),_0x3c0c6e[_0x1f96a3(0x1a7)](toCamelCase(_0x37807d['name']));}for(const _0x36f9ae of['dry-run','dryRun','yes',_0x1f96a3(0x1b4)]){_0x3c0c6e[_0x1f96a3(0x1a7)](_0x36f9ae);}for(const _0xc1afc1 of[_0x1f96a3(0x1c2),_0x1f96a3(0x1b1),_0x1f96a3(0x1a4),'app',_0x1f96a3(0x1ac),'non-interactive','ci','global',_0x1f96a3(0x1bc)]){_0x3c0c6e[_0x1f96a3(0x1a7)](_0xc1afc1);}return _0x3c0c6e;}function buildFlagTypeMap(_0x5f1f57){const _0x57fa3b=a122_0x378c,_0x3e5cf7=new Map();for(const _0x598854 of _0x5f1f57){_0x3e5cf7[_0x57fa3b(0x1c5)](_0x598854[_0x57fa3b(0x1a3)],_0x598854[_0x57fa3b(0x1b6)]),_0x3e5cf7[_0x57fa3b(0x1c5)](toCamelCase(_0x598854[_0x57fa3b(0x1a3)]),_0x598854[_0x57fa3b(0x1b6)]);}return _0x3e5cf7;}function toCamelCase(_0x1f5c96){const _0x5db51b=a122_0x378c;return _0x1f5c96[_0x5db51b(0x1a9)](/-([a-z])/g,(_0x467f52,_0x4bb279)=>_0x4bb279[_0x5db51b(0x1bb)]());}function aliasHandler(_0x9faee8,_0x6b4a6d){const _0x388700=a122_0x378c,_0x215d26=[];for(const _0x4384b8 of Object[_0x388700(0x1a0)](_0x9faee8)){if(_0x6b4a6d[_0x388700(0x1ab)](_0x4384b8))continue;const _0x4e58bc=toKebab(_0x4384b8);_0x4e58bc!==_0x4384b8&&_0x6b4a6d[_0x388700(0x1ab)](_0x4e58bc)&&_0x215d26[_0x388700(0x19e)]({'original':_0x4384b8,'corrected':_0x4e58bc,'handler':_0x388700(0x1aa)});}return _0x215d26;}function stickyHandler(_0x40bca0,_0x31b475,_0x4f5a98){const _0x1e48fd=a122_0x378c,_0x57dfce=[];for(const [_0x656146,_0x37749e]of Object[_0x1e48fd(0x19f)](_0x40bca0)){if(_0x37749e!==!![])continue;for(let _0xb6e2ee=_0x656146['length']-0x1;_0xb6e2ee>0x0;_0xb6e2ee--){const _0xa9bf82=_0x656146[_0x1e48fd(0x1b8)](0x0,_0xb6e2ee),_0x22fb63=_0x656146[_0x1e48fd(0x1b8)](_0xb6e2ee),_0x304a59=toKebab(_0xa9bf82),_0x35fdad=toCamelCase(_0xa9bf82),_0xad01ec=_0x31b475['has'](_0xa9bf82)?_0xa9bf82:_0x31b475[_0x1e48fd(0x1ab)](_0x304a59)?_0x304a59:_0x31b475[_0x1e48fd(0x1ab)](_0x35fdad)?_0x35fdad:null;if(!_0xad01ec)continue;const _0x8d83e0=_0x4f5a98[_0x1e48fd(0x1c1)](_0xad01ec)??_0x1e48fd(0x1a5);let _0x55e13f;if(_0x8d83e0==='number'){const _0x3bda90=Number(_0x22fb63);if(isNaN(_0x3bda90)||_0x22fb63==='')continue;_0x55e13f=_0x3bda90;}else{if(_0x8d83e0===_0x1e48fd(0x1a6))continue;else{if(_0x22fb63==='')continue;_0x55e13f=_0x22fb63;}}_0x57dfce[_0x1e48fd(0x19e)]({'original':_0x656146,'corrected':_0xad01ec+'='+_0x55e13f,'handler':_0x1e48fd(0x1bf)});break;}}return _0x57dfce;}export function correctFlags(_0x5ecf67,_0xa369c1){const _0x6e54d0=a122_0x378c,_0xebd7dd=buildKnownFlags(_0xa369c1),_0x313816=buildFlagTypeMap(_0xa369c1),_0x16a0b8=aliasHandler(_0x5ecf67,_0xebd7dd),_0x4309f2=stickyHandler(_0x5ecf67,_0xebd7dd,_0x313816),_0x578c62=[..._0x16a0b8,..._0x4309f2];if(_0x578c62[_0x6e54d0(0x1ad)]===0x0)return{'flags':_0x5ecf67,'corrections':[]};const _0x433582={..._0x5ecf67},_0x31e594=new Set();for(const _0x3205f6 of _0x16a0b8){_0x433582[_0x3205f6[_0x6e54d0(0x1b5)]]=_0x5ecf67[_0x3205f6[_0x6e54d0(0x1b9)]],_0x31e594[_0x6e54d0(0x1a7)](_0x3205f6[_0x6e54d0(0x1b9)]);}for(const _0x31a2e3 of _0x4309f2){const _0x2e6190=_0x31a2e3[_0x6e54d0(0x1b5)][_0x6e54d0(0x1ae)]('='),_0x461593=_0x31a2e3[_0x6e54d0(0x1b5)][_0x6e54d0(0x1b8)](0x0,_0x2e6190),_0x3c5029=_0x31a2e3[_0x6e54d0(0x1b5)][_0x6e54d0(0x1b8)](_0x2e6190+0x1),_0xa806af=_0x313816[_0x6e54d0(0x1c1)](_0x461593)??'string';_0xa806af===_0x6e54d0(0x1b7)?_0x433582[_0x461593]=Number(_0x3c5029):_0x433582[_0x461593]=_0x3c5029,_0x31e594[_0x6e54d0(0x1a7)](_0x31a2e3[_0x6e54d0(0x1b9)]);}for(const _0x1a193d of _0x31e594){delete _0x433582[_0x1a193d];}return{'flags':_0x433582,'corrections':_0x578c62};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a123_0x1ec5(){const _0x2a2b1f=['string','test','IP_RATE_LIMIT_EXCEEDED','has','errorCode','108512gYNgax','Request\x20rate\x20limit\x20exceeded.','7238330foWkdK','\x20seconds\x20before\x20retrying.','rateLimited','function','get','10BcUaoK','Retry-After','210143wBLlIj','call','Retry\x20after\x20','entries','retryAfter','42LdUOtp','object','\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.','Wait\x20','isArray','4149837TYYoLJ','727506WZEhRh','trim','toLowerCase','number','isInteger','toUpperCase','MAX_QPS_LIMIT','EXCEED_MAX_QPS_LIMIT','73092oVpauB','808620rHezSz','175DCDDPI','20EvAnCo'];a123_0x1ec5=function(){return _0x2a2b1f;};return a123_0x1ec5();}const a123_0x3a1ba7=a123_0x1e3c;(function(_0x513e68,_0x43be6d){const _0x1dce87=a123_0x1e3c,_0x544ee3=_0x513e68();while(!![]){try{const _0x1c7a84=parseInt(_0x1dce87(0xf9))/0x1+parseInt(_0x1dce87(0x10d))/0x2+parseInt(_0x1dce87(0xfe))/0x3*(parseInt(_0x1dce87(0x10c))/0x4)+parseInt(_0x1dce87(0x10f))/0x5*(-parseInt(_0x1dce87(0x104))/0x6)+parseInt(_0x1dce87(0x10e))/0x7*(-parseInt(_0x1dce87(0x115))/0x8)+-parseInt(_0x1dce87(0x103))/0x9*(parseInt(_0x1dce87(0xf7))/0xa)+parseInt(_0x1dce87(0x117))/0xb;if(_0x1c7a84===_0x43be6d)break;else _0x544ee3['push'](_0x544ee3['shift']());}catch(_0x49c923){_0x544ee3['push'](_0x544ee3['shift']());}}}(a123_0x1ec5,0x3b5a4));function a123_0x1e3c(_0x3f021b,_0x39d6e1){_0x3f021b=_0x3f021b-0xf3;const _0x1ec5a8=a123_0x1ec5();let _0x1e3cad=_0x1ec5a8[_0x3f021b];return _0x1e3cad;}import{CliErrors}from'../errors.js';const RATE_LIMIT_ERROR_CODES=new Set([a123_0x3a1ba7(0x10b),a123_0x3a1ba7(0x10a),a123_0x3a1ba7(0x112)]);function nonEmptyString(_0x2d7bec){const _0x15a735=a123_0x3a1ba7;if(typeof _0x2d7bec!==_0x15a735(0x110))return undefined;const _0x23f790=_0x2d7bec[_0x15a735(0x105)]();return _0x23f790||undefined;}function buildRetryHint(_0x156d90){const _0x3cc8ec=a123_0x3a1ba7,_0x189e6e=nonEmptyString(_0x156d90),_0x3b7068=_0x189e6e?/^\d+$/[_0x3cc8ec(0x111)](_0x189e6e)?_0x3cc8ec(0x101)+_0x189e6e+_0x3cc8ec(0xf3):_0x3cc8ec(0xfb)+_0x189e6e+'.':'Retry\x20after\x20a\x20short\x20delay.';return _0x3b7068+_0x3cc8ec(0x100);}export function createRateLimitError(_0x378d92){const _0x17e8a0=a123_0x3a1ba7,_0xb75dfc=nonEmptyString(_0x378d92[_0x17e8a0(0x114)])?.[_0x17e8a0(0x109)](),_0x17ac13=Number(_0x378d92['status'])===0x1ad||_0xb75dfc!==undefined&&RATE_LIMIT_ERROR_CODES[_0x17e8a0(0x113)](_0xb75dfc);if(!_0x17ac13)return undefined;return CliErrors[_0x17e8a0(0xf4)](nonEmptyString(_0x378d92['message'])??_0x17e8a0(0x116),buildRetryHint(_0x378d92[_0x17e8a0(0xfd)]));}export function readRetryAfter(_0xbb3323){const _0x5712db=a123_0x3a1ba7;if(!_0xbb3323||typeof _0xbb3323!==_0x5712db(0xff))return undefined;const _0x2eeaf1=_0xbb3323[_0x5712db(0xf6)];if(typeof _0x2eeaf1===_0x5712db(0xf5)){const _0x3ffea9=_0x2eeaf1[_0x5712db(0xfa)](_0xbb3323,_0x5712db(0xf8))??_0x2eeaf1[_0x5712db(0xfa)](_0xbb3323,'retry-after');return nonEmptyString(_0x3ffea9);}for(const [_0x12f3f4,_0x1031ad]of Object[_0x5712db(0xfc)](_0xbb3323)){if(_0x12f3f4[_0x5712db(0x106)]()==='retry-after')return nonEmptyString(_0x1031ad)??(typeof _0x1031ad===_0x5712db(0x107)?String(_0x1031ad):undefined);}return undefined;}export function readRetryAfterSeconds(_0x2e7153){const _0x5efde1=a123_0x3a1ba7;if(!_0x2e7153||typeof _0x2e7153!==_0x5efde1(0xff)||Array[_0x5efde1(0x102)](_0x2e7153))return undefined;const _0x50fe1e=_0x2e7153['retryAfterSeconds'];if(typeof _0x50fe1e==='number')return Number[_0x5efde1(0x108)](_0x50fe1e)&&_0x50fe1e>=0x0?String(_0x50fe1e):undefined;const _0x152b39=nonEmptyString(_0x50fe1e);return _0x152b39&&/^\d+$/[_0x5efde1(0x111)](_0x152b39)?_0x152b39:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a124_0xaaad(){const _0x795929=['\x20--help`\x20to\x20see\x20accepted\x20flags.','has','order-by','1936648EWNjtA','827240LUarbw','page','entries','Run\x20`','where','780171sqGiGn','command','7bUSuKD','40128Enjgif','asc','flags','stringify','pagesize','validation','\x20data\x20filter`.','page-size','current-page','select','Unknown\x20flag\x20--','614590qmDNNY','data','service','add','973648OnPzlQ','Put\x20where,\x20select,\x20orderBy,\x20currentPage,\x20and\x20pageSize\x20inside\x20one\x20--params\x20JSON\x20object.\x20','active','2LTFdIr','\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20','currentpage','name','36AKRZjP','no-','\x20is\x20not\x20a\x20CLI\x20flag\x20for\x20`','1976700MfuvfI','version'];a124_0xaaad=function(){return _0x795929;};return a124_0xaaad();}const a124_0x1e9cb4=a124_0x3061;(function(_0x106d27,_0x126c30){const _0x17b7b4=a124_0x3061,_0x3e1411=_0x106d27();while(!![]){try{const _0x597960=parseInt(_0x17b7b4(0x8d))/0x1+parseInt(_0x17b7b4(0x78))/0x2*(parseInt(_0x17b7b4(0x8a))/0x3)+parseInt(_0x17b7b4(0x75))/0x4+-parseInt(_0x17b7b4(0x71))/0x5+-parseInt(_0x17b7b4(0x7f))/0x6+parseInt(_0x17b7b4(0x8c))/0x7*(-parseInt(_0x17b7b4(0x84))/0x8)+-parseInt(_0x17b7b4(0x7c))/0x9*(-parseInt(_0x17b7b4(0x85))/0xa);if(_0x597960===_0x126c30)break;else _0x3e1411['push'](_0x3e1411['shift']());}catch(_0x5e6c54){_0x3e1411['push'](_0x3e1411['shift']());}}}(a124_0xaaad,0x2bf4c));function a124_0x3061(_0x195ba3,_0x22e663){_0x195ba3=_0x195ba3-0x69;const _0xaaad19=a124_0xaaad();let _0x3061e6=_0xaaad19[_0x195ba3];return _0x3061e6;}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([a124_0x1e9cb4(0x89),a124_0x1e9cb4(0x6f),a124_0x1e9cb4(0x83),'orderby',a124_0x1e9cb4(0x6e),a124_0x1e9cb4(0x7a),a124_0x1e9cb4(0x86),a124_0x1e9cb4(0x6d),a124_0x1e9cb4(0x6a)]);export function assertKnownCommandFlags(_0x4d88e2,_0x2dc1e9){const _0x18cf1a=a124_0x1e9cb4,_0x97c55d=new Set([_0x18cf1a(0x80)]);for(const _0xae11ef of GLOBAL_FLAGS){_0x97c55d[_0x18cf1a(0x74)](_0xae11ef[_0x18cf1a(0x7b)]),_0x97c55d[_0x18cf1a(0x74)](toKebab(_0xae11ef['meowKey']));}for(const _0x2012ed of _0x4d88e2[_0x18cf1a(0x8f)]??[]){_0x97c55d[_0x18cf1a(0x74)](_0x2012ed[_0x18cf1a(0x7b)]);}for(const [_0x552e98,_0x7bd00c]of Object[_0x18cf1a(0x87)](_0x2dc1e9)){const _0x32cbe6=toKebab(_0x552e98);if(_0x97c55d[_0x18cf1a(0x82)](_0x32cbe6))continue;if(_0x7bd00c===![]&&_0x97c55d[_0x18cf1a(0x82)](_0x18cf1a(0x7d)+_0x32cbe6))continue;if(_0x4d88e2[_0x18cf1a(0x73)]===_0x18cf1a(0x72)&&_0x4d88e2['command']==='filter'&&FILTER_BODY_FIELDS[_0x18cf1a(0x82)](_0x32cbe6))throw CliErrors[_0x18cf1a(0x6b)]('--'+_0x32cbe6+_0x18cf1a(0x7e)+CLI_BIN_NAME+_0x18cf1a(0x6c),_0x18cf1a(0x76)+('Example:\x20'+CLI_BIN_NAME+_0x18cf1a(0x79))+('\x27'+JSON[_0x18cf1a(0x69)]({'where':{'status':{'$eq':_0x18cf1a(0x77)}},'orderBy':[{'id':_0x18cf1a(0x8e)}],'currentPage':0x1,'pageSize':0x14})+'\x27'));throw CliErrors[_0x18cf1a(0x6b)](_0x18cf1a(0x70)+_0x32cbe6+'\x20for\x20`'+CLI_BIN_NAME+'\x20'+_0x4d88e2[_0x18cf1a(0x73)]+'\x20'+_0x4d88e2[_0x18cf1a(0x8b)]+'`.',_0x18cf1a(0x88)+CLI_BIN_NAME+'\x20'+_0x4d88e2['service']+'\x20'+_0x4d88e2['command']+_0x18cf1a(0x81));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a125_0x4b91(_0x506add,_0x5b748d){_0x506add=_0x506add-0x7b;var _0x279fb9=a125_0x279f();var _0x4b91f5=_0x279fb9[_0x506add];return _0x4b91f5;}function a125_0x279f(){var _0x2c5505=['1995350nSiTeH','294IwKPgK','323220BRwHma','712800dPahtZ','1038088BMWZFB','478558OEvpFL','124138GuZwWY','2625512ZWSSML'];a125_0x279f=function(){return _0x2c5505;};return a125_0x279f();}(function(_0x4c86e3,_0x3578e2){var _0x17887b=a125_0x4b91,_0x578cf8=_0x4c86e3();while(!![]){try{var _0x5bc262=-parseInt(_0x17887b(0x7f))/0x1+parseInt(_0x17887b(0x7d))/0x2+parseInt(_0x17887b(0x7c))/0x3+-parseInt(_0x17887b(0x7e))/0x4+-parseInt(_0x17887b(0x82))/0x5+parseInt(_0x17887b(0x7b))/0x6*(parseInt(_0x17887b(0x80))/0x7)+parseInt(_0x17887b(0x81))/0x8;if(_0x5bc262===_0x3578e2)break;else _0x578cf8['push'](_0x578cf8['shift']());}catch(_0x38aaea){_0x578cf8['push'](_0x578cf8['shift']());}}}(a125_0x279f,0x7ff71));export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3958ff,_0x387dca){const _0x3d99cf=a126_0x4c27,_0x1db08b=_0x3958ff();while(!![]){try{const _0x303762=-parseInt(_0x3d99cf(0x162))/0x1+parseInt(_0x3d99cf(0x14d))/0x2+parseInt(_0x3d99cf(0x15f))/0x3+-parseInt(_0x3d99cf(0x164))/0x4+-parseInt(_0x3d99cf(0x169))/0x5+parseInt(_0x3d99cf(0x15d))/0x6+parseInt(_0x3d99cf(0x158))/0x7;if(_0x303762===_0x387dca)break;else _0x1db08b['push'](_0x1db08b['shift']());}catch(_0x59a462){_0x1db08b['push'](_0x1db08b['shift']());}}}(a126_0x7727,0x51a2f));import{CLI_BIN_NAME}from'../constant/cli.js';import{isSensitiveFlagName}from'../utils/redaction.js';export function buildConfirmationLines(_0x30fd51,_0x4bf67c,_0x5ae8b1){const _0x5c979a=a126_0x4c27,_0x537948=buildConfirmationContext(_0x30fd51,_0x4bf67c,_0x5ae8b1),_0x498bbb=[_0x5c979a(0x153)+_0x537948[_0x5c979a(0x16b)]];return _0x537948[_0x5c979a(0x15c)]&&_0x498bbb[_0x5c979a(0x16c)]('\x20\x20\x20'+_0x537948['description']),_0x537948['affectedRecords']&&_0x498bbb[_0x5c979a(0x16c)]('\x20\x20\x20Affected:\x20'+_0x537948[_0x5c979a(0x150)]),_0x498bbb[_0x5c979a(0x16c)](_0x5c979a(0x168)),_0x498bbb;}export function reconstructCommandArgv(_0x431e0c,_0x183fdc){const _0xef3232=a126_0x4c27,_0x2f6555=[CLI_BIN_NAME,_0x431e0c[_0xef3232(0x14b)],_0x431e0c[_0xef3232(0x166)]];for(const [_0x59944c,_0x5c99b8]of Object['entries'](_0x183fdc)){if(_0x5c99b8===!![])_0x2f6555[_0xef3232(0x16c)]('--'+_0x59944c);else{if(isSensitiveFlagName(_0x59944c)&&_0x5c99b8!==![]&&_0x5c99b8!==undefined&&_0x5c99b8!=='')_0x2f6555[_0xef3232(0x16c)]('--'+_0x59944c+_0xef3232(0x154));else _0x5c99b8!==![]&&_0x5c99b8!==undefined&&_0x5c99b8!==''&&_0x2f6555['push']('--'+_0x59944c+'\x20'+JSON['stringify'](_0x5c99b8));}}return _0x2f6555['push'](_0xef3232(0x163)),_0x2f6555[_0xef3232(0x151)]('\x20');}function buildConfirmationContext(_0x4c26b2,_0x5644f3,_0x17178d){const _0x4188ea=a126_0x4c27,_0x392164=extractAffectedRecords(_0x17178d);return{'commandLabel':_0x5644f3,'description':_0x4c26b2[_0x4188ea(0x15c)],'affectedRecords':_0x392164};}function a126_0x7727(){const _0x652022=['command','params=','\x20\x20\x20Continue?\x20[y/N]\x20','1186630sszhFN','params','commandLabel','push','scheduled-at','service','name=','265824cGoigu','id=','code','affectedRecords','join','title=','⚠\x20\x20High-risk\x20operation:\x20','\x20[REDACTED]','kind','name','kind=','3140242gdKRRX','scheduled-at=','title','code=','description','3349152VTmWPA','cron=','236985klaKbB','channel','cron','344944AWpxJr','--yes','1208208ZYJjKh','schedule-id'];a126_0x7727=function(){return _0x652022;};return a126_0x7727();}function a126_0x4c27(_0x15a561,_0x16572f){_0x15a561=_0x15a561-0x14b;const _0x77276a=a126_0x7727();let _0x4c2705=_0x77276a[_0x15a561];return _0x4c2705;}function extractAffectedRecords(_0x625bd){const _0x3f8195=a126_0x4c27,_0x1f22e3=[];if(_0x625bd[_0x3f8195(0x14f)])_0x1f22e3[_0x3f8195(0x16c)](_0x3f8195(0x15b)+_0x625bd[_0x3f8195(0x14f)]);if(_0x625bd['id'])_0x1f22e3[_0x3f8195(0x16c)](_0x3f8195(0x14e)+_0x625bd['id']);if(_0x625bd[_0x3f8195(0x165)])_0x1f22e3[_0x3f8195(0x16c)]('schedule-id='+_0x625bd['schedule-id']);if(_0x625bd[_0x3f8195(0x156)])_0x1f22e3[_0x3f8195(0x16c)](_0x3f8195(0x14c)+_0x625bd[_0x3f8195(0x156)]);if(_0x625bd[_0x3f8195(0x15a)])_0x1f22e3[_0x3f8195(0x16c)](_0x3f8195(0x152)+_0x625bd[_0x3f8195(0x15a)]);if(_0x625bd[_0x3f8195(0x155)])_0x1f22e3[_0x3f8195(0x16c)](_0x3f8195(0x157)+_0x625bd[_0x3f8195(0x155)]);if(_0x625bd[_0x3f8195(0x161)])_0x1f22e3['push'](_0x3f8195(0x15e)+_0x625bd[_0x3f8195(0x161)]);if(_0x625bd[_0x3f8195(0x16d)])_0x1f22e3[_0x3f8195(0x16c)](_0x3f8195(0x159)+_0x625bd[_0x3f8195(0x16d)]);if(_0x625bd[_0x3f8195(0x160)])_0x1f22e3[_0x3f8195(0x16c)]('channel='+_0x625bd['channel']);if(_0x625bd[_0x3f8195(0x16a)])_0x1f22e3[_0x3f8195(0x16c)](_0x3f8195(0x167)+_0x625bd[_0x3f8195(0x16a)]);return _0x1f22e3['length']>0x0?_0x1f22e3[_0x3f8195(0x151)](',\x20'):undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5c3ed2,_0x50d4a2){const _0x4a4805=a127_0x4aa0,_0x423592=_0x5c3ed2();while(!![]){try{const _0x37a9c4=parseInt(_0x4a4805(0x133))/0x1*(parseInt(_0x4a4805(0x128))/0x2)+-parseInt(_0x4a4805(0x126))/0x3*(-parseInt(_0x4a4805(0x130))/0x4)+parseInt(_0x4a4805(0x12b))/0x5+parseInt(_0x4a4805(0x134))/0x6*(-parseInt(_0x4a4805(0x137))/0x7)+parseInt(_0x4a4805(0x122))/0x8*(-parseInt(_0x4a4805(0x132))/0x9)+-parseInt(_0x4a4805(0x124))/0xa*(parseInt(_0x4a4805(0x129))/0xb)+-parseInt(_0x4a4805(0x12e))/0xc*(-parseInt(_0x4a4805(0x12c))/0xd);if(_0x37a9c4===_0x50d4a2)break;else _0x423592['push'](_0x423592['shift']());}catch(_0x3382f0){_0x423592['push'](_0x423592['shift']());}}}(a127_0x5dd2,0x27a83));function a127_0x4aa0(_0xbe556c,_0xf708a5){_0xbe556c=_0xbe556c-0x121;const _0x5dd24d=a127_0x5dd2();let _0x4aa053=_0x5dd24d[_0xbe556c];return _0x4aa053;}import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';import{createAccessError}from'../framework/access-error.js';function a127_0x5dd2(){const _0x372ec0=['trim','message','7MbopfB','apiError','120syAbqJ','stringify','10sOkpKj','headers','33XuGzAo','Request\x20rejected\x20(HTTP\x20401).','6MzncSa','2383117zdmsPh','string','192015SAPVJb','1642264PSACfp','status','36RBavDl','response','16620fwWLfe','code','91638rwkNtb','36425HnDIdE','243330mHGlij'];a127_0x5dd2=function(){return _0x372ec0;};return a127_0x5dd2();}import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';export function mapUserFacingExecuteError(_0x7eec5c){const _0x15c8e6=a127_0x4aa0;if(_0x7eec5c instanceof LovrabetError){const _0x25fa7e=userFacingLovrabetMessage(_0x7eec5c),_0x373c62=_0x7eec5c,_0x342b21=createRateLimitError({'status':_0x373c62[_0x15c8e6(0x12d)],'errorCode':_0x373c62[_0x15c8e6(0x131)],'message':_0x25fa7e,'retryAfter':readRetryAfter(_0x373c62[_0x15c8e6(0x12f)]?.[_0x15c8e6(0x125)])??readRetryAfterSeconds(_0x373c62['response'])});return createAccessError(_0x373c62[_0x15c8e6(0x12f)],_0x373c62[_0x15c8e6(0x131)])??_0x342b21??(Number(_0x373c62[_0x15c8e6(0x12d)])===0x191?CliErrors[_0x15c8e6(0x121)](_0x15c8e6(0x127),'The\x20response\x20does\x20not\x20identify\x20whether\x20authentication\x20or\x20permission\x20checks\x20failed.'):CliErrors['validation'](_0x25fa7e));}return _0x7eec5c;}function userFacingLovrabetMessage(_0x531311){const _0x5df2da=a127_0x4aa0,_0x44ede9=_0x531311['description'];if(_0x44ede9!==undefined&&_0x44ede9!==null){if(typeof _0x44ede9===_0x5df2da(0x12a)&&_0x44ede9[_0x5df2da(0x135)]())return _0x44ede9['trim']();try{return JSON[_0x5df2da(0x123)](_0x44ede9);}catch{}}return _0x531311[_0x5df2da(0x136)];}
|