@lovrabet/lovrabet-cli 2.3.10-beta.3 → 2.3.11-beta.1
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 +3 -3
- package/skills/lovrabet/references/lovrabet-schedule-workflow.md +50 -1
- package/skills/lovrabet.manifest.json +3 -3
package/lib/core/db-resolver.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xe02283,_0x2b7422){const _0x171f37=a109_0x320b,_0x1770d9=_0xe02283();while(!![]){try{const _0x43ff11=-parseInt(_0x171f37(0xbf))/0x1+parseInt(_0x171f37(0xc0))/0x2+-parseInt(_0x171f37(0xca))/0x3+-parseInt(_0x171f37(0xbc))/0x4*(parseInt(_0x171f37(0xce))/0x5)+-parseInt(_0x171f37(0xbd))/0x6*(parseInt(_0x171f37(0xc5))/0x7)+-parseInt(_0x171f37(0xc6))/0x8*(-parseInt(_0x171f37(0xc4))/0x9)+parseInt(_0x171f37(0xbe))/0xa;if(_0x43ff11===_0x2b7422)break;else _0x1770d9['push'](_0x1770d9['shift']());}catch(_0xb21f48){_0x1770d9['push'](_0x1770d9['shift']());}}}(a109_0x1fef,0x6ad82));function a109_0x320b(_0x4f5b37,_0x3bc7f2){_0x4f5b37=_0x4f5b37-0xbc;const _0x1fefa8=a109_0x1fef();let _0x320be2=_0x1fefa8[_0x4f5b37];return _0x320be2;}import{listDatasets}from'../core/api-client.js';function a109_0x1fef(){const _0x5f54a2=['13506100IELgQN','571896XXVgAI','342878iBYMMQ','has','dbName','entries','1980306wGLABE','1057fhQJIz','16EgKSbL','find','dbtableConfig','dbId','207915hlLedC','set','string','db-','157840tkyAFT','get','map','104BTAGfQ','2484HcvyhZ'];a109_0x1fef=function(){return _0x5f54a2;};return a109_0x1fef();}const cache=new Map();export async function listDatabases(_0x257817){const _0x2ed95e=a109_0x320b;if(cache[_0x2ed95e(0xc1)](_0x257817))return cache[_0x2ed95e(0xcf)](_0x257817);const _0xd7b220=await listDatasets(_0x257817),_0x2cdab5=new Map();for(const _0x162df2 of _0xd7b220){const _0x585768=_0x162df2[_0x2ed95e(0xc8)];_0x585768?.['dbId']!=null&&_0x2cdab5[_0x2ed95e(0xcb)](_0x585768['dbId'],typeof _0x585768[_0x2ed95e(0xc2)]===_0x2ed95e(0xcc)?_0x585768[_0x2ed95e(0xc2)]:_0x2ed95e(0xcd)+_0x585768[_0x2ed95e(0xc9)]);}const _0x586845=[..._0x2cdab5[_0x2ed95e(0xc3)]()][_0x2ed95e(0xd0)](([_0x361d0e,_0x37a495])=>({'dbId':_0x361d0e,'dbName':_0x37a495}));return cache['set'](_0x257817,_0x586845),_0x586845;}export async function getDbName(_0x34f619,_0x3f4270){const _0x790823=a109_0x320b;try{const _0x4538e2=await listDatabases(_0x34f619);return _0x4538e2[_0x790823(0xc7)](_0x20901f=>_0x20901f['dbId']===_0x3f4270)?.[_0x790823(0xc2)];}catch{return undefined;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4ab50f,_0x3efa68){const _0x610278=a110_0x4abc,_0x2ef3d8=_0x4ab50f();while(!![]){try{const _0x3917de=-parseInt(_0x610278(0xb9))/0x1*(parseInt(_0x610278(0xa7))/0x2)+-parseInt(_0x610278(0x9a))/0x3*(-parseInt(_0x610278(0xac))/0x4)+parseInt(_0x610278(0x9b))/0x5+parseInt(_0x610278(0xb5))/0x6+-parseInt(_0x610278(0xae))/0x7+parseInt(_0x610278(0x93))/0x8*(parseInt(_0x610278(0xc2))/0x9)+parseInt(_0x610278(0xbf))/0xa*(-parseInt(_0x610278(0xbe))/0xb);if(_0x3917de===_0x3efa68)break;else _0x2ef3d8['push'](_0x2ef3d8['shift']());}catch(_0x205194){_0x2ef3d8['push'](_0x2ef3d8['shift']());}}}(a110_0x2f2a,0xd1a5d));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(_0x37e230,_0x51b245){const _0x15e1b0=a110_0x4abc;if(typeof _0x37e230!==_0x15e1b0(0xc0)||!_0x37e230[_0x15e1b0(0xad)]()||_0x37e230['length']>0x64)throw CliErrors[_0x15e1b0(0xb4)]('Personal\x20knowledge\x20appCode\x20is\x20required\x20(at\x20most\x20100\x20characters).');return KNOWLEDGE_PATHS[_0x51b245===_0x15e1b0(0xbb)?_0x15e1b0(0x90):_0x51b245];}const commandOrigin=new AsyncLocalStorage();function invalidContract(_0x43c4ce=![]){const _0x3dfccd=a110_0x4abc;return CliErrors[_0x3dfccd(0xaf)](_0x3dfccd(0xb0)+(_0x43c4ce?WRITE_RECONCILIATION:''));}function requestContext(_0x679d8d){const _0x32ded5=a110_0x4abc;if(typeof _0x679d8d['appCode']!=='string'||!_0x679d8d[_0x32ded5(0xab)][_0x32ded5(0xad)]()||_0x679d8d[_0x32ded5(0xab)][_0x32ded5(0xc3)]>0x64)throw CliErrors['validation'](_0x32ded5(0xb3));if(!_0x679d8d[_0x32ded5(0xa2)]?.[_0x32ded5(0xad)]())throw CliErrors[_0x32ded5(0xa1)]();return{..._0x679d8d,'sdk':createKnowledgeClient({'kbServiceDomain':commandOrigin[_0x32ded5(0xa4)]()??configuredOrigin(),'accessKey':_0x679d8d[_0x32ded5(0xa2)],'invokeSource':PRODUCT_CONFIG[_0x32ded5(0xa0)]})};}function a110_0x2f2a(){const _0x48d84d=['validation','8836806vekPiE','min','tableData','currentPage','1uqbPnr','summary','get-one','isArray','add','82027bvZvvQ','1610XUwLWk','string','pageSize','198hmCdAd','length','getOne','POST','create','407848zvHjPR','title','Personal\x20knowledge\x20title\x20is\x20required.','Configure\x20a\x20trusted\x20kbServiceDomain\x20HTTPS\x20origin\x20in\x20the\x20connection\x20settings.','update','Personal\x20knowledge\x20ID\x20must\x20be\x20positive\x20integer\x20text.','userId','9SwVBNg','3162015OQADLy','stringify','personal','sdk','version','invokeSource','authRequired','accessKey','A\x20current\x20personal\x20knowledge\x20version\x20is\x20required.','getStore','run','content','2068654NGrfvr','isSafeInteger','has','paging','appCode','613796MtCQxG','trim','4154584SWYDNd','apiError','KB\x20Service\x20personal\x20knowledge\x20returned\x20an\x20invalid\x20response\x20contract.','signal','totalCount','Personal\x20knowledge\x20appCode\x20is\x20required.'];a110_0x2f2a=function(){return _0x48d84d;};return a110_0x2f2a();}function configuredOrigin(){const _0x22a1d9=a110_0x4abc,_0x274cff=getKbServiceDomain();if(!_0x274cff)throw CliErrors['validation']('KB\x20Service\x20is\x20not\x20configured\x20for\x20personal\x20knowledge\x20management.',_0x22a1d9(0x96));return normalizeKbServiceOrigin(_0x274cff);}export function withKbManagementOrigin(_0x2ad672){const _0x58b882=a110_0x4abc;return commandOrigin[_0x58b882(0xa5)](configuredOrigin(),_0x2ad672);}function positiveInteger(_0x2d0606){const _0x2d768b=a110_0x4abc;return Number[_0x2d768b(0xa8)](_0x2d0606)&&_0x2d0606>=0x1;}function validId(_0x2e9ec0){const _0x20eccf=a110_0x4abc;return typeof _0x2e9ec0===_0x20eccf(0xc0)&&/^0*[1-9]\d*$/['test'](_0x2e9ec0);}export function planPersonalKnowledgeWrite(_0x3a10d7,_0x3509e6,_0x5750b1,_0x1c5e30){const _0x4b45e4=a110_0x4abc;if(_0x5750b1!==undefined&&!validId(_0x5750b1))throw CliErrors[_0x4b45e4(0xb4)](_0x4b45e4(0x98));if(_0x5750b1!==undefined&&!positiveInteger(_0x1c5e30))throw CliErrors[_0x4b45e4(0xb4)](_0x4b45e4(0xa3));const _0x2d276c=personalKnowledgePath(_0x3a10d7,_0x5750b1===undefined?_0x4b45e4(0x92):_0x4b45e4(0x97)),_0x480b91=JSON[_0x4b45e4(0x9c)]({'appCode':_0x3a10d7,'title':_0x3509e6[_0x4b45e4(0x94)],'content':_0x3509e6[_0x4b45e4(0xa6)],..._0x5750b1!==undefined?{'id':_0x5750b1,'expectedVersion':_0x1c5e30}:{}});return{'path':_0x2d276c,'method':_0x4b45e4(0x91),'jsonBody':_0x480b91};}async function sdkCall(_0x5e8422){try{return await _0x5e8422();}catch(_0x3f3000){throw knowledgeCliError(_0x3f3000);}}export async function listPersonalKnowledge(_0x38a1d6){const _0x2d0dad=a110_0x4abc,_0x4eaaef=requestContext(_0x38a1d6),_0x29ca16=0x32;let _0x24f787=0x1,_0x126984,_0x30a665;const _0x554dff=[],_0x5a1f85=new Set();while(!![]){const _0xe33e83=await sdkCall(()=>_0x4eaaef[_0x2d0dad(0x9e)][_0x2d0dad(0x9d)]['page']({'appCode':_0x38a1d6[_0x2d0dad(0xab)],'currentPage':_0x24f787,'pageSize':_0x29ca16,'view':_0x2d0dad(0xba)},{'signal':_0x4eaaef[_0x2d0dad(0xb1)]})),_0x5b0f0f=_0xe33e83[_0x2d0dad(0xaa)];if(!Array[_0x2d0dad(0xbc)](_0xe33e83[_0x2d0dad(0xb7)])||_0x5b0f0f[_0x2d0dad(0xb8)]!==_0x24f787||_0x5b0f0f[_0x2d0dad(0xc1)]!==_0x29ca16||!Number['isSafeInteger'](_0x5b0f0f['totalCount'])||_0x5b0f0f['totalCount']<0x0)throw invalidContract();const _0x1c0921=_0x5b0f0f[_0x2d0dad(0xb2)];if(_0x126984!==undefined&&_0x1c0921!==_0x126984)throw invalidContract();_0x126984=_0x1c0921;if(_0xe33e83[_0x2d0dad(0xb7)][_0x2d0dad(0xc3)]!==Math[_0x2d0dad(0xb6)](_0x29ca16,_0x1c0921-_0x554dff['length']))throw invalidContract();for(const _0x14d5da of _0xe33e83[_0x2d0dad(0xb7)]){const _0xf7dc3e=_0x14d5da;if(_0xf7dc3e[_0x2d0dad(0xa6)]!==null||_0x5a1f85[_0x2d0dad(0xa9)](_0xf7dc3e['id']))throw invalidContract();const _0x37aa21=await getPersonalKnowledgeAt(_0x4eaaef,_0xf7dc3e['id']);if(_0x37aa21['version']!==_0xf7dc3e['version']||_0x37aa21[_0x2d0dad(0x99)]!==_0xf7dc3e[_0x2d0dad(0x99)]||_0x30a665!==undefined&&_0x37aa21[_0x2d0dad(0x99)]!==_0x30a665)throw invalidContract();_0x30a665=_0x37aa21[_0x2d0dad(0x99)],_0x5a1f85[_0x2d0dad(0xbd)](_0x37aa21['id']),_0x554dff['push'](_0x37aa21);}if(_0x554dff[_0x2d0dad(0xc3)]===_0x1c0921)return _0x554dff;_0x24f787++;}}function a110_0x4abc(_0x74fe69,_0x3a6e1d){_0x74fe69=_0x74fe69-0x90;const _0x2f2a3e=a110_0x2f2a();let _0x4abc0b=_0x2f2a3e[_0x74fe69];return _0x4abc0b;}export async function getPersonalKnowledge(_0x2ed841,_0x426de2){if(!validId(_0x426de2))throw CliErrors['validation']('Personal\x20knowledge\x20ID\x20must\x20be\x20positive\x20integer\x20text.');return getPersonalKnowledgeAt(requestContext(_0x2ed841),_0x426de2);}async function getPersonalKnowledgeAt(_0x5aecde,_0x5a0b27){const _0x25ee8a=a110_0x4abc;return await sdkCall(()=>_0x5aecde[_0x25ee8a(0x9e)]['personal'][_0x25ee8a(0x90)]({'appCode':_0x5aecde[_0x25ee8a(0xab)],'id':_0x5a0b27},{'signal':_0x5aecde[_0x25ee8a(0xb1)]}));}export async function savePersonalKnowledge(_0x2154e8,_0x4e7e08,_0x416f88){const _0x154a10=a110_0x4abc;if(_0x416f88!==undefined&&!validId(_0x416f88))throw CliErrors[_0x154a10(0xb4)]('Personal\x20knowledge\x20ID\x20must\x20be\x20positive\x20integer\x20text.');if(typeof _0x4e7e08['content']!==_0x154a10(0xc0)||_0x4e7e08[_0x154a10(0x94)]!==undefined&&typeof _0x4e7e08[_0x154a10(0x94)]!==_0x154a10(0xc0))throw CliErrors[_0x154a10(0xb4)]('Personal\x20knowledge\x20title\x20and\x20content\x20must\x20be\x20strings.');const _0x5eda5b=requestContext(_0x2154e8),_0x559a9=_0x416f88===undefined?undefined:await getPersonalKnowledgeAt(_0x5eda5b,_0x416f88),_0x396d3d=_0x4e7e08[_0x154a10(0x94)]??_0x559a9?.[_0x154a10(0x94)];if(typeof _0x396d3d!==_0x154a10(0xc0))throw CliErrors[_0x154a10(0xb4)](_0x154a10(0x95));const _0x1a28f8={'appCode':_0x2154e8['appCode'],'title':_0x396d3d,'content':_0x4e7e08['content']},_0x29a597=await sdkCall(()=>_0x416f88===undefined?_0x5eda5b[_0x154a10(0x9e)][_0x154a10(0x9d)][_0x154a10(0x92)](_0x1a28f8,{'signal':_0x5eda5b[_0x154a10(0xb1)]}):_0x5eda5b[_0x154a10(0x9e)][_0x154a10(0x9d)]['update']({..._0x1a28f8,'id':_0x416f88,'expectedVersion':_0x559a9[_0x154a10(0x9f)]},{'signal':_0x5eda5b['signal']}));try{const _0x3f9f8a=_0x29a597,_0x53a334=_0x559a9&&(_0x559a9[_0x154a10(0x94)]!==_0x396d3d[_0x154a10(0xad)]()||_0x559a9[_0x154a10(0xa6)]!==_0x4e7e08[_0x154a10(0xa6)]);if(_0x3f9f8a[_0x154a10(0x94)]!==_0x396d3d[_0x154a10(0xad)]()||_0x3f9f8a[_0x154a10(0xa6)]!==_0x4e7e08[_0x154a10(0xa6)]||_0x559a9&&(_0x3f9f8a[_0x154a10(0x99)]!==_0x559a9[_0x154a10(0x99)]||_0x3f9f8a[_0x154a10(0x9f)]!==_0x559a9[_0x154a10(0x9f)]+(_0x53a334?0x1:0x0)))throw invalidContract();const _0x48cf85=await getPersonalKnowledgeAt(_0x5eda5b,_0x3f9f8a['id']);if(_0x48cf85[_0x154a10(0x9f)]!==_0x3f9f8a[_0x154a10(0x9f)]||_0x48cf85[_0x154a10(0x94)]!==_0x3f9f8a['title']||_0x48cf85[_0x154a10(0xa6)]!==_0x3f9f8a[_0x154a10(0xa6)]||_0x48cf85[_0x154a10(0x99)]!==_0x3f9f8a[_0x154a10(0x99)])throw invalidContract();return _0x48cf85;}catch{throw invalidContract(!![]);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a111_0x2e78(){const _0x21577f=['auth','\x20(HTTP\x20','1387089nodBWO','timed\x20out','timeout','personal\x20knowledge','\x20The\x20entry\x20may\x20already\x20have\x20been\x20saved.\x20Use\x20read-only\x20detail\x20or\x20list\x20reconciliation\x20before\x20another\x20write.','367823CwEWHM','networkError','4177016UrfrWG','kind','was\x20cancelled','status','1667035wEKFLw','KB\x20Service\x20personal\x20knowledge\x20returned\x20an\x20invalid\x20response\x20contract','failed','1811348rHLLwp','rateLimited','\x20request\x20','3337389iTupwE','knowledge\x20search','Knowledge\x20search\x20cancelled.','includes','4019892GALbRW','message','8RwjsoF','contract','apiError','writeUncertain','cancelled','2hWGcCy'];a111_0x2e78=function(){return _0x21577f;};return a111_0x2e78();}const a111_0x5815f7=a111_0x3475;(function(_0x438435,_0x5e53c2){const _0x2148e6=a111_0x3475,_0x32e2bf=_0x438435();while(!![]){try{const _0x2fe4b3=-parseInt(_0x2148e6(0x1ee))/0x1*(-parseInt(_0x2148e6(0x1e6))/0x2)+parseInt(_0x2148e6(0x1e9))/0x3+parseInt(_0x2148e6(0x1e1))/0x4*(-parseInt(_0x2148e6(0x1f4))/0x5)+-parseInt(_0x2148e6(0x1df))/0x6+parseInt(_0x2148e6(0x1d8))/0x7+parseInt(_0x2148e6(0x1f0))/0x8+parseInt(_0x2148e6(0x1db))/0x9;if(_0x2fe4b3===_0x5e53c2)break;else _0x32e2bf['push'](_0x32e2bf['shift']());}catch(_0x5b8f48){_0x32e2bf['push'](_0x32e2bf['shift']());}}}(a111_0x2e78,0x9d7ee));import{KnowledgeServiceError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';export const WRITE_RECONCILIATION=a111_0x5815f7(0x1ed);function a111_0x3475(_0x91816b,_0x4d151e){_0x91816b=_0x91816b-0x1d6;const _0x2e78ad=a111_0x2e78();let _0x347513=_0x2e78ad[_0x91816b];return _0x347513;}export function knowledgeCliError(_0x47c64b,_0x47c624=![]){const _0x1d53c9=a111_0x5815f7,_0x3291ea=_0x47c624?_0x1d53c9(0x1dc):_0x1d53c9(0x1ec);if(!(_0x47c64b instanceof KnowledgeServiceError))return CliErrors['apiError']('KB\x20Service\x20'+_0x3291ea+'\x20returned\x20an\x20invalid\x20response\x20contract.');const _0x284db3=_0x47c64b['writeUncertain']?WRITE_RECONCILIATION:'';if(_0x47c64b[_0x1d53c9(0x1f1)]===_0x1d53c9(0x1e7))return CliErrors['authRequired']();if(_0x47c64b[_0x1d53c9(0x1f1)]==='validation')return CliErrors['validation'](_0x47c64b[_0x1d53c9(0x1e0)]);if(_0x47c64b['kind']===_0x1d53c9(0x1e5)&&_0x47c624)return new DOMException(_0x1d53c9(0x1dd),'AbortError');if([_0x1d53c9(0x1e5),_0x1d53c9(0x1eb),'network'][_0x1d53c9(0x1de)](_0x47c64b['kind'])){const _0x1a5138=_0x47c64b[_0x1d53c9(0x1f1)]==='cancelled'?_0x1d53c9(0x1f2):_0x47c64b[_0x1d53c9(0x1f1)]===_0x1d53c9(0x1eb)?_0x1d53c9(0x1ea):_0x1d53c9(0x1d7);return CliErrors[_0x1d53c9(0x1ef)]('KB\x20Service\x20'+_0x3291ea+_0x1d53c9(0x1da)+_0x1a5138+'.'+_0x284db3);}if(_0x47c64b['status']===0x1ad&&!_0x47c64b[_0x1d53c9(0x1e4)])return CliErrors[_0x1d53c9(0x1d9)](_0x47c64b[_0x1d53c9(0x1e0)]);if(_0x47c64b[_0x1d53c9(0x1f1)]===_0x1d53c9(0x1e2)&&!_0x47c624)return CliErrors[_0x1d53c9(0x1e3)](_0x1d53c9(0x1d6)+(_0x47c64b['status']?_0x1d53c9(0x1e8)+_0x47c64b[_0x1d53c9(0x1f3)]+')':'')+'.'+_0x284db3);const _0x336693=_0x47c64b[_0x1d53c9(0x1f3)]!==undefined&&!_0x47c64b[_0x1d53c9(0x1e0)]['includes']('HTTP\x20'+_0x47c64b[_0x1d53c9(0x1f3)])?_0x1d53c9(0x1e8)+_0x47c64b['status']+')':'';return CliErrors[_0x1d53c9(0x1e3)](''+_0x47c64b[_0x1d53c9(0x1e0)]+_0x336693+_0x284db3);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1620f1,_0x1c023a){const _0x3bb0d3=a112_0x2aa1,_0x196636=_0x1620f1();while(!![]){try{const _0x1fc42e=-parseInt(_0x3bb0d3(0xff))/0x1+-parseInt(_0x3bb0d3(0xf4))/0x2+parseInt(_0x3bb0d3(0x100))/0x3*(parseInt(_0x3bb0d3(0xfa))/0x4)+parseInt(_0x3bb0d3(0xf6))/0x5+parseInt(_0x3bb0d3(0xf2))/0x6*(parseInt(_0x3bb0d3(0x108))/0x7)+-parseInt(_0x3bb0d3(0x10b))/0x8+-parseInt(_0x3bb0d3(0x10a))/0x9*(parseInt(_0x3bb0d3(0x107))/0xa);if(_0x1fc42e===_0x1c023a)break;else _0x196636['push'](_0x196636['shift']());}catch(_0x1d4362){_0x196636['push'](_0x196636['shift']());}}}(a112_0x1a2b,0x54e90));function a112_0x1a2b(){const _0x296d11=['24GZmMIe','query','search','Knowledge\x20search\x20query\x20is\x20required.','topK','appCode','accessKey','4609580pWJfRN','4074IZSJCE','validation','9pwQWhG','2610736LZoVtx','public','5766IIhfVG','trim','626896pyPeyF','signal','1915385zgFAzp','cli:lovrabet','Knowledge\x20search\x20appCode\x20is\x20required.','company','300716wVSfFl','authRequired','length','personal','Invalid\x20--kb-service-url:\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','95271lAdueU'];a112_0x1a2b=function(){return _0x296d11;};return a112_0x1a2b();}function a112_0x2aa1(_0x337382,_0x896eb3){_0x337382=_0x337382-0xf2;const _0x1a2b94=a112_0x1a2b();let _0x2aa1aa=_0x1a2b94[_0x337382];return _0x2aa1aa;}import{createKnowledgeClient,normalizeKnowledgeServiceOrigin}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';import{knowledgeCliError}from'../core/kb-sdk-errors.js';export function normalizeKbServiceOrigin(_0x11e6b0){const _0x2f33b1=a112_0x2aa1;try{return normalizeKnowledgeServiceOrigin(_0x11e6b0);}catch{throw CliErrors[_0x2f33b1(0x109)](_0x2f33b1(0xfe));}}export async function searchDirectKnowledge(_0x2af6d3){const _0x2fd2f1=a112_0x2aa1,_0x33c5b7=_0x2af6d3[_0x2fd2f1(0x105)][_0x2fd2f1(0xf3)](),_0x2c5086=_0x2af6d3[_0x2fd2f1(0x101)][_0x2fd2f1(0xf3)]();if(!_0x33c5b7)throw CliErrors[_0x2fd2f1(0x109)](_0x2fd2f1(0xf8));if(!_0x2af6d3['accessKey'][_0x2fd2f1(0xf3)]())throw CliErrors[_0x2fd2f1(0xfb)]();if(!_0x2c5086)throw CliErrors[_0x2fd2f1(0x109)](_0x2fd2f1(0x103));const _0x60e69b=normalizeKbServiceOrigin(_0x2af6d3['serviceUrl']);try{const _0x4df030=createKnowledgeClient({'kbServiceDomain':_0x60e69b,'accessKey':_0x2af6d3[_0x2fd2f1(0x106)],'invokeSource':_0x2fd2f1(0xf7)}),_0x426e40=await _0x4df030[_0x2fd2f1(0x102)]({'appCode':_0x33c5b7,'query':_0x2c5086,'scopes':[_0x2fd2f1(0x10c),_0x2fd2f1(0xf9),_0x2fd2f1(0xfd)],..._0x2af6d3[_0x2fd2f1(0x104)]!==undefined?{'topK':_0x2af6d3[_0x2fd2f1(0x104)]}:{}},{'signal':_0x2af6d3[_0x2fd2f1(0xf5)]});return{'schemaVersion':0x2,'profile':'runtime','total':_0x426e40['hits'][_0x2fd2f1(0xfc)],..._0x426e40};}catch(_0x3d8982){throw knowledgeCliError(_0x3d8982,!![]);}}
|
package/lib/core/sdk-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x373051,_0x4a71b1){const _0x37b505=a113_0x3f23,_0x3c3a90=_0x373051();while(!![]){try{const _0x4754ba=parseInt(_0x37b505(0x12a))/0x1+parseInt(_0x37b505(0x12c))/0x2+parseInt(_0x37b505(0x129))/0x3*(parseInt(_0x37b505(0x14f))/0x4)+-parseInt(_0x37b505(0x138))/0x5*(-parseInt(_0x37b505(0x140))/0x6)+-parseInt(_0x37b505(0x13c))/0x7*(parseInt(_0x37b505(0x12f))/0x8)+parseInt(_0x37b505(0x134))/0x9*(parseInt(_0x37b505(0x145))/0xa)+-parseInt(_0x37b505(0x144))/0xb;if(_0x4754ba===_0x4a71b1)break;else _0x3c3a90['push'](_0x3c3a90['shift']());}catch(_0x4400cb){_0x3c3a90['push'](_0x3c3a90['shift']());}}}(a113_0x5f1d,0x9808c));import{createAppClient,createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';function a113_0x5f1d(){const _0x1b5d58=['2522616jbraFA','isArray','dataset_','appCode','models','144YgdNkN','update','aggregate','error','5mpcyLo','env','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','bff','7svvNMj','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22',']\x20must\x20be\x20an\x20object.','sql','4895670SKrcIE','execute','map','authMode','29103294xHxsBe','291360pWBwlS','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','getOne','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','field','validation','invokeSource','batchCreate','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','data\x20aggregate\x20--params.aggregate[','4777828gKvSoi','delete','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','accessKey','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','3aFvleu','398934nLvoNh','trim','1416602cYXVUI','function','runtimeDomain'];a113_0x5f1d=function(){return _0x1b5d58;};return a113_0x5f1d();}import{installLosslessJsonResponseParser}from'../utils/lossless-json.js';let _client,clientOptions,scopedClient,scopedOptions,restoreResponseJsonParser;export function getIdentitySdkClient(_0x27f4a4,_0x4c3a06){const _0x2069ea=a113_0x3f23;restoreResponseJsonParser??=installLosslessJsonResponseParser();try{return createAppClient({'accessKey':_0x27f4a4,'runtimeDomain':_0x4c3a06,'options':{'timeout':0x7530,'redirect':_0x2069ea(0x137),'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x2069ea(0x14b)]}}});}catch(_0x3d9edf){clearSdkClient();throw _0x3d9edf;}}function a113_0x3f23(_0xcc6e81,_0x56ab9c){_0xcc6e81=_0xcc6e81-0x127;const _0x5f1d00=a113_0x5f1d();let _0x3f23be=_0x5f1d00[_0xcc6e81];return _0x3f23be;}function createRuntimeSdkClient(_0x7ed4e9){const _0x512d77=a113_0x3f23;return restoreResponseJsonParser??=installLosslessJsonResponseParser(),createClient({'appCode':_0x7ed4e9[_0x512d77(0x132)],'env':_0x7ed4e9[_0x512d77(0x139)],'runtimeDomain':_0x7ed4e9['runtimeDomain'],'authMode':_0x7ed4e9[_0x512d77(0x143)],..._0x7ed4e9[_0x512d77(0x127)]?{'accessKey':_0x7ed4e9['accessKey']}:{},'options':{'timeout':0x7530,'redirect':_0x512d77(0x137),'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource']}}});}export function initSdkClient(_0x51c5f6){try{_client=createRuntimeSdkClient(_0x51c5f6),clientOptions={..._0x51c5f6};}catch(_0x41efe1){clearSdkClient();throw _0x41efe1;}}function sameOptions(_0x33458a,_0x55b206){const _0x1985fc=a113_0x3f23;return!!_0x33458a&&_0x33458a[_0x1985fc(0x132)]===_0x55b206[_0x1985fc(0x132)]&&_0x33458a[_0x1985fc(0x139)]===_0x55b206[_0x1985fc(0x139)]&&_0x33458a[_0x1985fc(0x12e)]===_0x55b206[_0x1985fc(0x12e)]&&_0x33458a[_0x1985fc(0x127)]===_0x55b206[_0x1985fc(0x127)]&&_0x33458a[_0x1985fc(0x143)]===_0x55b206[_0x1985fc(0x143)];}export function clearSdkClient(){_client=undefined,clientOptions=undefined,scopedClient=undefined,scopedOptions=undefined,restoreResponseJsonParser?.(),restoreResponseJsonParser=undefined;}export function getSdkClient(_0x420404){const _0x17c12a=a113_0x3f23;if(_0x420404){if(_client&&sameOptions(clientOptions,_0x420404))return _client;if(!scopedClient||!sameOptions(scopedOptions,_0x420404))try{scopedClient=createRuntimeSdkClient(_0x420404),scopedOptions={..._0x420404};}catch(_0x45ec0a){clearSdkClient();throw _0x45ec0a;}return scopedClient;}if(!_client)throw new Error(_0x17c12a(0x14d));return _client;}function normalizeAggregateParams(_0x508cdc){const _0x34fd24=a113_0x3f23,_0x514300=_0x508cdc[_0x34fd24(0x136)];if(_0x514300===undefined)return _0x508cdc;if(!Array[_0x34fd24(0x130)](_0x514300))throw CliErrors[_0x34fd24(0x14a)](_0x34fd24(0x151));return{..._0x508cdc,'aggregate':_0x514300[_0x34fd24(0x142)]((_0x38d072,_0x5356d5)=>{const _0x1e2283=_0x34fd24;if(!_0x38d072||typeof _0x38d072!=='object'||Array[_0x1e2283(0x130)](_0x38d072))throw CliErrors[_0x1e2283(0x14a)](_0x1e2283(0x14e)+_0x5356d5+_0x1e2283(0x13e));const _0x3d5b86=_0x38d072['column']??_0x38d072[_0x1e2283(0x149)];if(typeof _0x3d5b86!=='string'||_0x3d5b86[_0x1e2283(0x12b)]()==='')throw CliErrors[_0x1e2283(0x14a)](_0x1e2283(0x14e)+_0x5356d5+']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.');const _0x30986c={..._0x38d072,'column':_0x3d5b86};return delete _0x30986c['field'],_0x30986c;})};}export async function executeData(_0x528855,_0xf8f8d6,_0x1e925e){const _0x507f08=a113_0x3f23,_0x538611=getSdkClient(),_0x5b04ec=_0x507f08(0x131)+_0x528855,_0x47de18=_0x538611[_0x507f08(0x133)][_0x5b04ec];if(!_0x47de18||typeof _0x47de18[_0xf8f8d6]!==_0x507f08(0x12d))throw new Error(_0x507f08(0x13d)+_0xf8f8d6+'\x22.\x20'+_0x507f08(0x128));if(_0xf8f8d6===_0x507f08(0x14c))return _0x47de18[_0x507f08(0x14c)](parseBatchCreateItemsFromParams(_0x1e925e));const _0x2d9aef=_0x1e925e!==undefined&&_0x1e925e!==null&&!Array[_0x507f08(0x130)](_0x1e925e)?_0x1e925e:{};switch(_0xf8f8d6){case _0x507f08(0x147):{const _0x2e0a3f=_0x2d9aef['id'];if(_0x2e0a3f===undefined||_0x2e0a3f===null)throw new Error(_0x507f08(0x148));return _0x47de18['getOne'](_0x2e0a3f);}case _0x507f08(0x135):{const {id:_0x258537,..._0x2a4b48}=_0x2d9aef;if(_0x258537===undefined||_0x258537===null)throw new Error(_0x507f08(0x146));return _0x47de18[_0x507f08(0x135)](_0x258537,_0x2a4b48);}case _0x507f08(0x150):{const _0x323723=_0x2d9aef['id'];if(_0x323723===undefined||_0x323723===null)throw new Error(_0x507f08(0x13a));return _0x47de18[_0x507f08(0x150)](_0x323723);}case _0x507f08(0x136):return _0x47de18[_0x507f08(0x136)](normalizeAggregateParams(_0x2d9aef));default:return _0x47de18[_0xf8f8d6](_0x2d9aef);}}export async function executeSdkSql(_0x3eaff5,_0x109ecb){const _0x335cfb=a113_0x3f23,_0x4c2718=getSdkClient();return _0x4c2718[_0x335cfb(0x13f)]['execute']({'sqlCode':_0x3eaff5,'params':_0x109ecb});}export async function executeSdkBff(_0x19f938,_0x8811b5){const _0x287bd1=a113_0x3f23,_0x184bef=getSdkClient();return _0x184bef[_0x287bd1(0x13b)][_0x287bd1(0x141)]({'scriptName':_0x19f938,'params':_0x8811b5});}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a114_0x868948=a114_0x427a;(function(_0x5f4361,_0x33fe05){const _0x1b4a8f=a114_0x427a,_0x400a67=_0x5f4361();while(!![]){try{const _0x4639b8=-parseInt(_0x1b4a8f(0x1bc))/0x1+parseInt(_0x1b4a8f(0x1bb))/0x2*(-parseInt(_0x1b4a8f(0x1b3))/0x3)+parseInt(_0x1b4a8f(0x1b4))/0x4*(-parseInt(_0x1b4a8f(0x1b7))/0x5)+parseInt(_0x1b4a8f(0x1b5))/0x6*(-parseInt(_0x1b4a8f(0x1b8))/0x7)+-parseInt(_0x1b4a8f(0x1c6))/0x8*(-parseInt(_0x1b4a8f(0x1b6))/0x9)+-parseInt(_0x1b4a8f(0x1c2))/0xa*(parseInt(_0x1b4a8f(0x1b0))/0xb)+parseInt(_0x1b4a8f(0x1ae))/0xc*(parseInt(_0x1b4a8f(0x1bd))/0xd);if(_0x4639b8===_0x33fe05)break;else _0x400a67['push'](_0x400a67['shift']());}catch(_0x2e9005){_0x400a67['push'](_0x400a67['shift']());}}}(a114_0x5bc7,0xd6c85));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a114_0x5bc7(){const _0x17e563=['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.','`\x20cannot\x20run\x20through\x20the\x20shell\x20CLI\x20because\x20this\x20execution\x20host\x20delegates\x20Lovrabet\x20writes\x20to\x20the\x20native\x20tool.','7088ZygthI','Permission\x20denied.','2820UswmTC','\x20or\x20run\x20`','3509FOAotP','Use\x20the\x20native\x20`lovrabet`\x20tool\x20with\x20argv\x20containing\x20only\x20the\x20tokens\x20after\x20`lovrabet`;\x20do\x20not\x20raise\x20riskLevel\x20or\x20retry\x20through\x20bash.','native_tool_required','3XBavwk','8oMOkFA','1203606eJYSnM','13914tstqfq','3048635BCugHn','7sRFhrj','\x20auth\x20login`.','Command\x20`','1530686qNMvCm','1662567iozXxK','262223apEWmj','Set\x20appcode\x20via\x20--appcode\x20or\x20','newConfigFileName','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','rate_limited','43330GKmBpn','permission_denied'];a114_0x5bc7=function(){return _0x17e563;};return a114_0x5bc7();}function a114_0x427a(_0x2e4bde,_0x13ddca){_0x2e4bde=_0x2e4bde-0x1ae;const _0x5bc7e1=a114_0x5bc7();let _0x427ae3=_0x5bc7e1[_0x2e4bde];return _0x427ae3;}import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};const baseCliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+a114_0x868948(0x1af)+CLI_BIN_NAME+a114_0x868948(0x1b9),'configMissingHint':a114_0x868948(0x1be)+PRODUCT_CONFIG['newConfigFileName']+'.','notInProjectHint':a114_0x868948(0x1c0)+PRODUCT_CONFIG[a114_0x868948(0x1bf)]+'\x20file.'});export const CliErrors={...baseCliErrors,'permissionDenied':()=>new CliError(a114_0x868948(0x1c3),0x2,a114_0x868948(0x1c7),a114_0x868948(0x1c4)),'rateLimited':(_0xe927d0,_0x339d3b)=>new CliError(a114_0x868948(0x1c1),0x2,_0xe927d0,_0x339d3b),'nativeToolRequired':_0x3e3fe9=>new CliError(a114_0x868948(0x1b2),0x1,a114_0x868948(0x1ba)+_0x3e3fe9+a114_0x868948(0x1c5),a114_0x868948(0x1b1))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1d7049,_0x154a85){const _0x679d09=a115_0x1ee0,_0x55da4e=_0x1d7049();while(!![]){try{const _0x1483b8=parseInt(_0x679d09(0x1d2))/0x1+parseInt(_0x679d09(0x1d3))/0x2+parseInt(_0x679d09(0x1d0))/0x3*(-parseInt(_0x679d09(0x1d5))/0x4)+-parseInt(_0x679d09(0x1cb))/0x5+parseInt(_0x679d09(0x1d7))/0x6*(-parseInt(_0x679d09(0x1cc))/0x7)+parseInt(_0x679d09(0x1d6))/0x8+parseInt(_0x679d09(0x1da))/0x9;if(_0x1483b8===_0x154a85)break;else _0x55da4e['push'](_0x55da4e['shift']());}catch(_0x15da66){_0x55da4e['push'](_0x55da4e['shift']());}}}(a115_0x47e1,0x1d83a));function a115_0x47e1(){const _0x57587d=['118278wsfBSq','errorCode','object','1352142mgalHc','number','isFinite','202','isArray','1014355VWgEdd','21gUGaGM','API\x20error\x20code:\x20201.\x20Verify\x20the\x20configured\x20AccessKey\x20or\x20run\x20`','trim','\x20auth\x20login`.','1377qZnsLf','string','79828kmzdoe','289924gjlUQh','authRequired','688KayfGS','694560DMmWMm'];a115_0x47e1=function(){return _0x57587d;};return a115_0x47e1();}import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function readApiErrorCode(_0x1fe10e){const _0x264d37=a115_0x1ee0;if(!_0x1fe10e||typeof _0x1fe10e!==_0x264d37(0x1d9)||Array[_0x264d37(0x1de)](_0x1fe10e))return undefined;const _0x33961d=_0x1fe10e;for(const _0x500e3f of[_0x33961d[_0x264d37(0x1d8)],_0x33961d['error']]){if(typeof _0x500e3f===_0x264d37(0x1d1)&&_0x500e3f[_0x264d37(0x1ce)]())return _0x500e3f['trim']();if(typeof _0x500e3f===_0x264d37(0x1db)&&Number[_0x264d37(0x1dc)](_0x500e3f))return String(_0x500e3f);}return undefined;}function a115_0x1ee0(_0x3a4434,_0x42a814){_0x3a4434=_0x3a4434-0x1cb;const _0x47e1d7=a115_0x47e1();let _0x1ee075=_0x47e1d7[_0x3a4434];return _0x1ee075;}export function createAccessError(_0xa968aa,_0x2cf71f){const _0x90ce2d=a115_0x1ee0,_0x2323f8=readApiErrorCode(_0xa968aa)??String(_0x2cf71f??'');if(_0x2323f8===_0x90ce2d(0x1dd))return CliErrors['permissionDenied']();if(_0x2323f8==='201')return CliErrors[_0x90ce2d(0x1d4)](_0x90ce2d(0x1cd)+CLI_BIN_NAME+_0x90ce2d(0x1cf));return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x46f492,_0x947c28){var _0x578be4=a116_0x33af,_0x5b1ee7=_0x46f492();while(!![]){try{var _0x4e66e3=-parseInt(_0x578be4(0x1a7))/0x1+-parseInt(_0x578be4(0x1a5))/0x2+-parseInt(_0x578be4(0x1a8))/0x3*(-parseInt(_0x578be4(0x1a4))/0x4)+-parseInt(_0x578be4(0x1a2))/0x5+-parseInt(_0x578be4(0x1a9))/0x6+-parseInt(_0x578be4(0x1a3))/0x7+parseInt(_0x578be4(0x1aa))/0x8*(parseInt(_0x578be4(0x1a6))/0x9);if(_0x4e66e3===_0x947c28)break;else _0x5b1ee7['push'](_0x5b1ee7['shift']());}catch(_0x552976){_0x5b1ee7['push'](_0x5b1ee7['shift']());}}}(a116_0x3690,0x9553f));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a116_0x556c0e}from'@lovrabet/cli-framework';function a116_0x33af(_0x40f786,_0x47f8f3){_0x40f786=_0x40f786-0x1a2;var _0x369045=a116_0x3690();var _0x33af36=_0x369045[_0x40f786];return _0x33af36;}function a116_0x3690(){var _0x4bf8eb=['6222048PCXBHI','224FKcKHU','142515dZcWBl','7530397WHkoiU','193288EWCZTk','48812InXBLq','629082EwboUM','387859uqhfsH','75woPBbJ'];a116_0x3690=function(){return _0x4bf8eb;};return a116_0x3690();}export function buildAllFlags(_0x877843){return a116_0x556c0e(_0x877843,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
|
package/lib/framework/dryrun.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x14adc4,_0x24b764){const _0x21960c=a117_0x4e00,_0x150262=_0x14adc4();while(!![]){try{const _0x59277e=parseInt(_0x21960c(0x1cc))/0x1*(-parseInt(_0x21960c(0x1cd))/0x2)+parseInt(_0x21960c(0x1d5))/0x3+parseInt(_0x21960c(0x1d4))/0x4+-parseInt(_0x21960c(0x1d1))/0x5+-parseInt(_0x21960c(0x1cb))/0x6+-parseInt(_0x21960c(0x1d2))/0x7+parseInt(_0x21960c(0x1d0))/0x8*(parseInt(_0x21960c(0x1d3))/0x9);if(_0x59277e===_0x24b764)break;else _0x150262['push'](_0x150262['shift']());}catch(_0x50fbc4){_0x150262['push'](_0x150262['shift']());}}}(a117_0x53d9,0xe2251));function a117_0x4e00(_0x502aa5,_0x5328ca){_0x502aa5=_0x502aa5-0x1cb;const _0x53d911=a117_0x53d9();let _0x4e00c2=_0x53d911[_0x502aa5];return _0x4e00c2;}export function dryRun(_0x502f61,_0x231745){const _0x45c00d={'method':_0x502f61,'url':_0x231745},_0x251d85={'body'(_0xab9f24){const _0xffdac7=a117_0x4e00;return _0x45c00d[_0xffdac7(0x1cf)]=_0xab9f24,_0x251d85;},'description'(_0x4b5585){const _0x428227=a117_0x4e00;return _0x45c00d[_0x428227(0x1ce)]=_0x4b5585,_0x251d85;},'build'(){return{..._0x45c00d};}};return _0x251d85;}function a117_0x53d9(){const _0x4a956d=['body','9064rSlxlL','407825fsEHQe','267806GNAKXE','11601MOeDzr','2059256rLofoI','3676737pcCWkr','4606938pknAxO','277379NPKVkk','10bUnbWE','description'];a117_0x53d9=function(){return _0x4a956d;};return a117_0x53d9();}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a118_0x1e1c(){const _0x4b1388=['32StPfOt','14358333WMLuYW','validateFlags','464852FCDgsl','3sWXHWM','391055yVoMXI','36rTdnmU','70OngZLO','parseFlags','537153cnWLZH','1244964TmXhDb','392002ftDcZI','187569HTvmnl'];a118_0x1e1c=function(){return _0x4b1388;};return a118_0x1e1c();}const a118_0x25643d=a118_0x11a1;(function(_0xe75fe5,_0x1c4c6c){const _0x297685=a118_0x11a1,_0x143664=_0xe75fe5();while(!![]){try{const _0x353f2f=parseInt(_0x297685(0x1c4))/0x1+-parseInt(_0x297685(0x1c6))/0x2*(parseInt(_0x297685(0x1cc))/0x3)+parseInt(_0x297685(0x1cb))/0x4+parseInt(_0x297685(0x1c0))/0x5*(parseInt(_0x297685(0x1c1))/0x6)+parseInt(_0x297685(0x1c5))/0x7*(parseInt(_0x297685(0x1c8))/0x8)+parseInt(_0x297685(0x1c7))/0x9*(parseInt(_0x297685(0x1c2))/0xa)+-parseInt(_0x297685(0x1c9))/0xb;if(_0x353f2f===_0x1c4c6c)break;else _0x143664['push'](_0x143664['shift']());}catch(_0x52ed9b){_0x143664['push'](_0x143664['shift']());}}}(a118_0x1e1c,0x74d9f));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a118_0x25643d(0x1c3)];function a118_0x11a1(_0x5cc2da,_0x40af4f){_0x5cc2da=_0x5cc2da-0x1c0;const _0x1e1c90=a118_0x1e1c();let _0x11a17a=_0x1e1c90[_0x5cc2da];return _0x11a17a;}export const validateFlags=helpers[a118_0x25643d(0x1ca)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x159a4c,_0x2704ce){const _0x43c22e=a119_0x42ee,_0xd62bc2=_0x159a4c();while(!![]){try{const _0x4546d9=parseInt(_0x43c22e(0x148))/0x1*(parseInt(_0x43c22e(0x147))/0x2)+parseInt(_0x43c22e(0x142))/0x3*(-parseInt(_0x43c22e(0x13a))/0x4)+-parseInt(_0x43c22e(0x13f))/0x5+-parseInt(_0x43c22e(0x143))/0x6+-parseInt(_0x43c22e(0x135))/0x7*(parseInt(_0x43c22e(0x13e))/0x8)+-parseInt(_0x43c22e(0x141))/0x9*(-parseInt(_0x43c22e(0x13b))/0xa)+-parseInt(_0x43c22e(0x145))/0xb*(-parseInt(_0x43c22e(0x137))/0xc);if(_0x4546d9===_0x2704ce)break;else _0xd62bc2['push'](_0xd62bc2['shift']());}catch(_0x1ef6f1){_0xd62bc2['push'](_0xd62bc2['shift']());}}}(a119_0x385a,0xbe3d7));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';function a119_0x42ee(_0x325d04,_0x3c99af){_0x325d04=_0x325d04-0x134;const _0x385ad9=a119_0x385a();let _0x42eed6=_0x385ad9[_0x325d04];return _0x42eed6;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';function createGenerators(){const _0x1d1a9f=a119_0x42ee;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries())['filter'](_0x405747=>_0x405747[_0x1d1a9f(0x140)]!==_0x1d1a9f(0x140)),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x1d1a9f(0x144)+PRODUCT_CONFIG[_0x1d1a9f(0x13d)]+_0x1d1a9f(0x139)});}export function generateCommandHelp(_0x1668c7){const _0x5656d9=a119_0x42ee;return createGenerators()[_0x5656d9(0x134)](_0x1668c7);}export function generateServiceHelp(_0xee28bd){const _0x29d948=a119_0x42ee;return createGenerators()[_0x29d948(0x136)](_0xee28bd);}export function generateFullHelp(){return createGenerators()['generateFullHelp']();}function getAnyServiceEntry(_0x38aa2b){const _0x1a9122=getServiceEntry(_0x38aa2b);if(_0x1a9122)return _0x1a9122;try{return getDynamicServiceEntry(_0x38aa2b);}catch{return undefined;}}function a119_0x385a(){const _0x2a33b2=['generateServiceHelp','902136OIRjKC','get','\x20or\x20--appcode).','334876IWogfe','110eUFUiG','map','newConfigFileName','80wZKuOp','787375TNbOxD','service','921987ENiSbJ','15AdFtkw','5357850UIVWWw','Requires\x20appcode\x20(set\x20via\x20','176wvVMKQ','filter','114538WuIWmY','13mRRSBv','generateCommandHelp','578165dsPSii'];a119_0x385a=function(){return _0x2a33b2;};return a119_0x385a();}function getAnyServiceDefinitions(_0x2b2ae1){const _0x2ea209=a119_0x42ee,_0x1fcc70=serviceGroups[_0x2ea209(0x138)](_0x2b2ae1);if(_0x1fcc70)return _0x1fcc70;try{return getDynamicServiceDefinitions(_0x2b2ae1);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x2c6ab3=a119_0x42ee,_0x3dce1f=new Set(serviceRegistry[_0x2c6ab3(0x13c)](_0x5c1cc4=>_0x5c1cc4[_0x2c6ab3(0x140)]));try{return listDynamicServiceEntries()[_0x2c6ab3(0x146)](_0x177c1e=>!_0x3dce1f['has'](_0x177c1e[_0x2c6ab3(0x140)]));}catch{return[];}}
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1f6865,_0x34b479){var _0x2fd9a5=a120_0x4fc9,_0x199a11=_0x1f6865();while(!![]){try{var _0x22f4d6=-parseInt(_0x2fd9a5(0x19e))/0x1+-parseInt(_0x2fd9a5(0x19d))/0x2*(parseInt(_0x2fd9a5(0x1a1))/0x3)+parseInt(_0x2fd9a5(0x19b))/0x4+-parseInt(_0x2fd9a5(0x19c))/0x5+-parseInt(_0x2fd9a5(0x19f))/0x6+parseInt(_0x2fd9a5(0x1a0))/0x7*(-parseInt(_0x2fd9a5(0x199))/0x8)+parseInt(_0x2fd9a5(0x19a))/0x9;if(_0x22f4d6===_0x34b479)break;else _0x199a11['push'](_0x199a11['shift']());}catch(_0x10950e){_0x199a11['push'](_0x199a11['shift']());}}}(a120_0x3472,0x315d6));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a120_0x4fc9(_0x3e5d1e,_0x3c1dc9){_0x3e5d1e=_0x3e5d1e-0x199;var _0x347229=a120_0x3472();var _0x4fc95f=_0x347229[_0x3e5d1e];return _0x4fc95f;}function a120_0x3472(){var _0x3b1cb5=['2104ZizbDV','12365748rchBQx','96884PlHklA','851935Pumrfa','392lkkrdV','85672gUhQyw','2333592ySneGN','4592cjJtGF','5793SXbyfx'];a120_0x3472=function(){return _0x3b1cb5;};return a120_0x3472();}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(_0x205113,_0x185c5e){const _0x21d3b8=a121_0x346a,_0xbe0a92=_0x205113();while(!![]){try{const _0x3b110e=-parseInt(_0x21d3b8(0xec))/0x1*(parseInt(_0x21d3b8(0xe8))/0x2)+-parseInt(_0x21d3b8(0xea))/0x3*(parseInt(_0x21d3b8(0xef))/0x4)+-parseInt(_0x21d3b8(0xf1))/0x5+-parseInt(_0x21d3b8(0xf7))/0x6*(parseInt(_0x21d3b8(0xf3))/0x7)+parseInt(_0x21d3b8(0xeb))/0x8*(parseInt(_0x21d3b8(0xfb))/0x9)+parseInt(_0x21d3b8(0xf6))/0xa*(-parseInt(_0x21d3b8(0xe9))/0xb)+parseInt(_0x21d3b8(0xf4))/0xc*(parseInt(_0x21d3b8(0xf8))/0xd);if(_0x3b110e===_0x185c5e)break;else _0xbe0a92['push'](_0xbe0a92['shift']());}catch(_0xa64994){_0xbe0a92['push'](_0xbe0a92['shift']());}}}(a121_0x2dfa,0x2bc24));function a121_0x346a(_0x234b9b,_0x3cbd7e){_0x234b9b=_0x234b9b-0xe8;const _0x2dfa0c=a121_0x2dfa();let _0x346aaf=_0x2dfa0c[_0x234b9b];return _0x346aaf;}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x571cc9,_0x122721){const _0x64eeb9=a121_0x346a,_0x2bfd7a=_0x571cc9[_0x64eeb9(0xed)],{_notice:_0x1fc1d7,..._0x2ad7e8}=_0x571cc9;void _0x1fc1d7,baseFormatOutput(_0x2ad7e8,_0x122721),_0x122721[_0x64eeb9(0xee)]===_0x64eeb9(0xfa)&&printPrettyNotice(_0x2bfd7a);}function a121_0x2dfa(){const _0x208ff9=['284jLHBQj','3617493ujCNdK','5862hsxuME','1168FzBjXQ','43OvwELc','_notice','format','632dIsgyC','error','348355SjgXSv','update','334313EjDMAl','12198216bHcwcM','url','10INxYQm','36JLpBTc','13WdKOHb','message','pretty','10026ezSthN'];a121_0x2dfa=function(){return _0x208ff9;};return a121_0x2dfa();}function printPrettyNotice(_0x1a3977){const _0x47978f=a121_0x346a;if(!_0x1a3977?.[_0x47978f(0xf2)])return;console[_0x47978f(0xf0)](_0x1a3977[_0x47978f(0xf2)][_0x47978f(0xf9)]+'\x20('+_0x1a3977[_0x47978f(0xf2)][_0x47978f(0xf5)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x44a873,_0x192d30){const _0x425b52=a122_0x4eaf,_0x2b08ed=_0x44a873();while(!![]){try{const _0x1fa69=parseInt(_0x425b52(0x1a1))/0x1*(-parseInt(_0x425b52(0x1b4))/0x2)+-parseInt(_0x425b52(0x1a8))/0x3+-parseInt(_0x425b52(0x1c0))/0x4+-parseInt(_0x425b52(0x1a7))/0x5*(parseInt(_0x425b52(0x1a6))/0x6)+parseInt(_0x425b52(0x1bf))/0x7+parseInt(_0x425b52(0x1a3))/0x8*(parseInt(_0x425b52(0x1ab))/0x9)+parseInt(_0x425b52(0x1b7))/0xa;if(_0x1fa69===_0x192d30)break;else _0x2b08ed['push'](_0x2b08ed['shift']());}catch(_0x177f67){_0x2b08ed['push'](_0x2b08ed['shift']());}}}(a122_0x4294,0x99177));export function toKebab(_0x45e2e9){const _0x35a556=a122_0x4eaf;return _0x45e2e9[_0x35a556(0x1b2)](/_/g,'-')['replace'](/-([A-Z]+)/g,(_0xa74a3,_0x1512fd)=>'-'+_0x1512fd['toLowerCase']())[_0x35a556(0x1b2)](/([a-z0-9])([A-Z])/g,(_0x141049,_0x238817,_0x4b4e34)=>_0x238817+'-'+_0x4b4e34)['toLowerCase']();}function buildKnownFlags(_0x3f5f8f){const _0x2b3596=a122_0x4eaf,_0x385daf=new Set();for(const _0x10cfc8 of _0x3f5f8f){_0x385daf[_0x2b3596(0x1b6)](_0x10cfc8['name']),_0x385daf[_0x2b3596(0x1b6)](toCamelCase(_0x10cfc8[_0x2b3596(0x19d)]));}for(const _0x4c58f4 of['dry-run',_0x2b3596(0x1b9),'yes','format']){_0x385daf['add'](_0x4c58f4);}for(const _0x2e5d46 of[_0x2b3596(0x1aa),_0x2b3596(0x19c),_0x2b3596(0x1be),_0x2b3596(0x1bc),_0x2b3596(0x1c1),_0x2b3596(0x1bd),'ci',_0x2b3596(0x1b1),_0x2b3596(0x1a4)]){_0x385daf[_0x2b3596(0x1b6)](_0x2e5d46);}return _0x385daf;}function a122_0x4eaf(_0x59bc59,_0x44fcc2){_0x59bc59=_0x59bc59-0x19c;const _0x429480=a122_0x4294();let _0x4eafd2=_0x429480[_0x59bc59];return _0x4eafd2;}function a122_0x4294(){const _0x187337=['env','name','corrected','boolean','length','13266iFDofH','get','8pQyrVO','version','sticky','47910rOctCl','80AOAusM','838329yAAXPK','keys','help','7107066ZPlaOx','toUpperCase','original','entries','indexOf','string','global','replace','push','92OuWRrl','has','add','5493590hOJRkz','alias','dryRun','type','slice','app','non-interactive','appcode','5293526rZdEtN','1802996woWvEB','nonInteractive'];a122_0x4294=function(){return _0x187337;};return a122_0x4294();}function buildFlagTypeMap(_0x280609){const _0x4e19d2=a122_0x4eaf,_0x566ec4=new Map();for(const _0x51ece6 of _0x280609){_0x566ec4['set'](_0x51ece6[_0x4e19d2(0x19d)],_0x51ece6[_0x4e19d2(0x1ba)]),_0x566ec4['set'](toCamelCase(_0x51ece6['name']),_0x51ece6[_0x4e19d2(0x1ba)]);}return _0x566ec4;}function toCamelCase(_0xf1495d){const _0x38c8f9=a122_0x4eaf;return _0xf1495d[_0x38c8f9(0x1b2)](/-([a-z])/g,(_0x23bbcf,_0x41bd56)=>_0x41bd56[_0x38c8f9(0x1ac)]());}function aliasHandler(_0x49ba8d,_0x540b7e){const _0x2422bb=a122_0x4eaf,_0x50c263=[];for(const _0x340ffc of Object[_0x2422bb(0x1a9)](_0x49ba8d)){if(_0x540b7e['has'](_0x340ffc))continue;const _0x169d69=toKebab(_0x340ffc);_0x169d69!==_0x340ffc&&_0x540b7e[_0x2422bb(0x1b5)](_0x169d69)&&_0x50c263['push']({'original':_0x340ffc,'corrected':_0x169d69,'handler':_0x2422bb(0x1b8)});}return _0x50c263;}function stickyHandler(_0x47e50f,_0x365b63,_0x3a7cc7){const _0x47ec4d=a122_0x4eaf,_0x27746f=[];for(const [_0x53b7d4,_0x243c11]of Object[_0x47ec4d(0x1ae)](_0x47e50f)){if(_0x243c11!==!![])continue;for(let _0x3eecd4=_0x53b7d4['length']-0x1;_0x3eecd4>0x0;_0x3eecd4--){const _0x121895=_0x53b7d4[_0x47ec4d(0x1bb)](0x0,_0x3eecd4),_0x3ba2e6=_0x53b7d4[_0x47ec4d(0x1bb)](_0x3eecd4),_0x445abc=toKebab(_0x121895),_0x2f9d2f=toCamelCase(_0x121895),_0x5fafa5=_0x365b63[_0x47ec4d(0x1b5)](_0x121895)?_0x121895:_0x365b63['has'](_0x445abc)?_0x445abc:_0x365b63[_0x47ec4d(0x1b5)](_0x2f9d2f)?_0x2f9d2f:null;if(!_0x5fafa5)continue;const _0x40cb47=_0x3a7cc7[_0x47ec4d(0x1a2)](_0x5fafa5)??_0x47ec4d(0x1b0);let _0x231146;if(_0x40cb47==='number'){const _0x1e17a5=Number(_0x3ba2e6);if(isNaN(_0x1e17a5)||_0x3ba2e6==='')continue;_0x231146=_0x1e17a5;}else{if(_0x40cb47===_0x47ec4d(0x19f))continue;else{if(_0x3ba2e6==='')continue;_0x231146=_0x3ba2e6;}}_0x27746f[_0x47ec4d(0x1b3)]({'original':_0x53b7d4,'corrected':_0x5fafa5+'='+_0x231146,'handler':_0x47ec4d(0x1a5)});break;}}return _0x27746f;}export function correctFlags(_0x3cf939,_0x132766){const _0x265368=a122_0x4eaf,_0x4c36d5=buildKnownFlags(_0x132766),_0x28b616=buildFlagTypeMap(_0x132766),_0x4b4fe8=aliasHandler(_0x3cf939,_0x4c36d5),_0x1c96bf=stickyHandler(_0x3cf939,_0x4c36d5,_0x28b616),_0x647c59=[..._0x4b4fe8,..._0x1c96bf];if(_0x647c59[_0x265368(0x1a0)]===0x0)return{'flags':_0x3cf939,'corrections':[]};const _0x35d9aa={..._0x3cf939},_0x41d78e=new Set();for(const _0x4da17e of _0x4b4fe8){_0x35d9aa[_0x4da17e['corrected']]=_0x3cf939[_0x4da17e['original']],_0x41d78e[_0x265368(0x1b6)](_0x4da17e[_0x265368(0x1ad)]);}for(const _0x5f0d57 of _0x1c96bf){const _0x298622=_0x5f0d57[_0x265368(0x19e)][_0x265368(0x1af)]('='),_0x11990a=_0x5f0d57[_0x265368(0x19e)][_0x265368(0x1bb)](0x0,_0x298622),_0x528526=_0x5f0d57[_0x265368(0x19e)][_0x265368(0x1bb)](_0x298622+0x1),_0x169d99=_0x28b616[_0x265368(0x1a2)](_0x11990a)??'string';_0x169d99==='number'?_0x35d9aa[_0x11990a]=Number(_0x528526):_0x35d9aa[_0x11990a]=_0x528526,_0x41d78e[_0x265368(0x1b6)](_0x5f0d57[_0x265368(0x1ad)]);}for(const _0x212c92 of _0x41d78e){delete _0x35d9aa[_0x212c92];}return{'flags':_0x35d9aa,'corrections':_0x647c59};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a123_0xabe42b=a123_0x48ee;(function(_0x5dbb85,_0x2f3f35){const _0xca013d=a123_0x48ee,_0x1d6396=_0x5dbb85();while(!![]){try{const _0x4fc2c7=parseInt(_0xca013d(0xf0))/0x1*(-parseInt(_0xca013d(0xfe))/0x2)+-parseInt(_0xca013d(0x100))/0x3+parseInt(_0xca013d(0xee))/0x4+-parseInt(_0xca013d(0xf4))/0x5*(parseInt(_0xca013d(0x106))/0x6)+-parseInt(_0xca013d(0xfd))/0x7*(parseInt(_0xca013d(0xe4))/0x8)+-parseInt(_0xca013d(0x102))/0x9*(parseInt(_0xca013d(0xea))/0xa)+-parseInt(_0xca013d(0xe7))/0xb*(-parseInt(_0xca013d(0xed))/0xc);if(_0x4fc2c7===_0x2f3f35)break;else _0x1d6396['push'](_0x1d6396['shift']());}catch(_0x550cd6){_0x1d6396['push'](_0x1d6396['shift']());}}}(a123_0x233c,0xcacb8));import{CliErrors}from'../errors.js';function a123_0x233c(){const _0x25d61c=['943332gxjztw','2574016eVbomA','Wait\x20','retry-after','6435VZbYPF','function','isInteger','30nYvtFI','retryAfter','toLowerCase','77304yXtQsP','4109064aGDGzI','object','1TCTDcN','number','errorCode','trim','5yVWAgs','has','MAX_QPS_LIMIT','isArray','rateLimited','Retry-After','call','Request\x20rate\x20limit\x20exceeded.','entries','14DDpOYG','2146818Aytmfb','EXCEED_MAX_QPS_LIMIT','3778791wAGhZS','test','2494368DEXZvL','get','toUpperCase','Retry\x20after\x20'];a123_0x233c=function(){return _0x25d61c;};return a123_0x233c();}function a123_0x48ee(_0x475f69,_0x22503c){_0x475f69=_0x475f69-0xe4;const _0x233c2e=a123_0x233c();let _0x48ee35=_0x233c2e[_0x475f69];return _0x48ee35;}const RATE_LIMIT_ERROR_CODES=new Set([a123_0xabe42b(0xff),a123_0xabe42b(0xf6),'IP_RATE_LIMIT_EXCEEDED']);function nonEmptyString(_0x1284be){const _0x4528ff=a123_0xabe42b;if(typeof _0x1284be!=='string')return undefined;const _0x18ee75=_0x1284be[_0x4528ff(0xf3)]();return _0x18ee75||undefined;}function buildRetryHint(_0x3f3a89){const _0x5970de=a123_0xabe42b,_0x5c5722=nonEmptyString(_0x3f3a89),_0x134893=_0x5c5722?/^\d+$/[_0x5970de(0x101)](_0x5c5722)?_0x5970de(0xe5)+_0x5c5722+'\x20seconds\x20before\x20retrying.':_0x5970de(0x105)+_0x5c5722+'.':'Retry\x20after\x20a\x20short\x20delay.';return _0x134893+'\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.';}export function createRateLimitError(_0x46a332){const _0x254514=a123_0xabe42b,_0x166c9e=nonEmptyString(_0x46a332[_0x254514(0xf2)])?.[_0x254514(0x104)](),_0x2bcbe6=Number(_0x46a332['status'])===0x1ad||_0x166c9e!==undefined&&RATE_LIMIT_ERROR_CODES[_0x254514(0xf5)](_0x166c9e);if(!_0x2bcbe6)return undefined;return CliErrors[_0x254514(0xf8)](nonEmptyString(_0x46a332['message'])??_0x254514(0xfb),buildRetryHint(_0x46a332[_0x254514(0xeb)]));}export function readRetryAfter(_0x12727d){const _0x538724=a123_0xabe42b;if(!_0x12727d||typeof _0x12727d!==_0x538724(0xef))return undefined;const _0x5caaad=_0x12727d[_0x538724(0x103)];if(typeof _0x5caaad===_0x538724(0xe8)){const _0x40c74b=_0x5caaad['call'](_0x12727d,_0x538724(0xf9))??_0x5caaad[_0x538724(0xfa)](_0x12727d,_0x538724(0xe6));return nonEmptyString(_0x40c74b);}for(const [_0xd79df7,_0x4f6ab4]of Object[_0x538724(0xfc)](_0x12727d)){if(_0xd79df7[_0x538724(0xec)]()===_0x538724(0xe6))return nonEmptyString(_0x4f6ab4)??(typeof _0x4f6ab4===_0x538724(0xf1)?String(_0x4f6ab4):undefined);}return undefined;}export function readRetryAfterSeconds(_0x429d1d){const _0x425a1a=a123_0xabe42b;if(!_0x429d1d||typeof _0x429d1d!==_0x425a1a(0xef)||Array[_0x425a1a(0xf7)](_0x429d1d))return undefined;const _0x163c64=_0x429d1d['retryAfterSeconds'];if(typeof _0x163c64===_0x425a1a(0xf1))return Number[_0x425a1a(0xe9)](_0x163c64)&&_0x163c64>=0x0?String(_0x163c64):undefined;const _0x25161b=nonEmptyString(_0x163c64);return _0x25161b&&/^\d+$/[_0x425a1a(0x101)](_0x25161b)?_0x25161b:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a124_0x585e38=a124_0xa3ed;function a124_0xa3ed(_0x20b35e,_0x43fa13){_0x20b35e=_0x20b35e-0x15f;const _0x35e476=a124_0x35e4();let _0xa3ed63=_0x35e476[_0x20b35e];return _0xa3ed63;}function a124_0x35e4(){const _0x39f673=['data','pagesize','\x20is\x20not\x20a\x20CLI\x20flag\x20for\x20`','10783479LTvGVP','order-by','filter','Run\x20`','4385128ZfrtDk','has','\x20data\x20filter`.','version','service','meowKey','validation','288884hprRIl','6778090PeNcrM','name','page','8bAzmLF','add','Example:\x20','where','command','flags','Unknown\x20flag\x20--','currentpage','3604980OTUcwL','10619160vHsmKi','select','1125873ldYSIf','asc','page-size'];a124_0x35e4=function(){return _0x39f673;};return a124_0x35e4();}(function(_0x13780e,_0x5e83b7){const _0x20b60d=a124_0xa3ed,_0x3daaeb=_0x13780e();while(!![]){try{const _0x36ffa9=parseInt(_0x20b60d(0x177))/0x1*(parseInt(_0x20b60d(0x173))/0x2)+-parseInt(_0x20b60d(0x162))/0x3+parseInt(_0x20b60d(0x16c))/0x4+-parseInt(_0x20b60d(0x174))/0x5+parseInt(_0x20b60d(0x15f))/0x6+-parseInt(_0x20b60d(0x168))/0x7+parseInt(_0x20b60d(0x160))/0x8;if(_0x36ffa9===_0x5e83b7)break;else _0x3daaeb['push'](_0x3daaeb['shift']());}catch(_0x3f3e45){_0x3daaeb['push'](_0x3daaeb['shift']());}}}(a124_0x35e4,0xddd5d));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_0x585e38(0x17a),a124_0x585e38(0x161),a124_0x585e38(0x169),'orderby','current-page',a124_0x585e38(0x17e),a124_0x585e38(0x176),a124_0x585e38(0x164),a124_0x585e38(0x166)]);export function assertKnownCommandFlags(_0x1d43df,_0x139901){const _0x33c030=a124_0x585e38,_0x9907c4=new Set([_0x33c030(0x16f)]);for(const _0x26e8e3 of GLOBAL_FLAGS){_0x9907c4['add'](_0x26e8e3[_0x33c030(0x175)]),_0x9907c4[_0x33c030(0x178)](toKebab(_0x26e8e3[_0x33c030(0x171)]));}for(const _0x22f1cf of _0x1d43df[_0x33c030(0x17c)]??[]){_0x9907c4[_0x33c030(0x178)](_0x22f1cf[_0x33c030(0x175)]);}for(const [_0x42144b,_0x576dea]of Object['entries'](_0x139901)){const _0x34ea40=toKebab(_0x42144b);if(_0x9907c4[_0x33c030(0x16d)](_0x34ea40))continue;if(_0x576dea===![]&&_0x9907c4['has']('no-'+_0x34ea40))continue;if(_0x1d43df[_0x33c030(0x170)]===_0x33c030(0x165)&&_0x1d43df['command']===_0x33c030(0x16a)&&FILTER_BODY_FIELDS[_0x33c030(0x16d)](_0x34ea40))throw CliErrors[_0x33c030(0x172)]('--'+_0x34ea40+_0x33c030(0x167)+CLI_BIN_NAME+_0x33c030(0x16e),'Put\x20where,\x20select,\x20orderBy,\x20currentPage,\x20and\x20pageSize\x20inside\x20one\x20--params\x20JSON\x20object.\x20'+(_0x33c030(0x179)+CLI_BIN_NAME+'\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20')+('\x27'+JSON['stringify']({'where':{'status':{'$eq':'active'}},'orderBy':[{'id':_0x33c030(0x163)}],'currentPage':0x1,'pageSize':0x14})+'\x27'));throw CliErrors[_0x33c030(0x172)](_0x33c030(0x17d)+_0x34ea40+'\x20for\x20`'+CLI_BIN_NAME+'\x20'+_0x1d43df[_0x33c030(0x170)]+'\x20'+_0x1d43df[_0x33c030(0x17b)]+'`.',_0x33c030(0x16b)+CLI_BIN_NAME+'\x20'+_0x1d43df['service']+'\x20'+_0x1d43df['command']+'\x20--help`\x20to\x20see\x20accepted\x20flags.');}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x366c20,_0x182dde){var _0x2ac0f4=a125_0x1d53,_0x156cae=_0x366c20();while(!![]){try{var _0x179ee6=parseInt(_0x2ac0f4(0x1a4))/0x1*(-parseInt(_0x2ac0f4(0x1a2))/0x2)+-parseInt(_0x2ac0f4(0x19f))/0x3+parseInt(_0x2ac0f4(0x19e))/0x4+parseInt(_0x2ac0f4(0x1a3))/0x5+-parseInt(_0x2ac0f4(0x1a0))/0x6+-parseInt(_0x2ac0f4(0x1a6))/0x7+parseInt(_0x2ac0f4(0x1a1))/0x8*(parseInt(_0x2ac0f4(0x1a5))/0x9);if(_0x179ee6===_0x182dde)break;else _0x156cae['push'](_0x156cae['shift']());}catch(_0x4a826c){_0x156cae['push'](_0x156cae['shift']());}}}(a125_0x24eb,0xbbf70));function a125_0x1d53(_0x1197a4,_0x3372bd){_0x1197a4=_0x1197a4-0x19e;var _0x24ebc8=a125_0x24eb();var _0x1d5305=_0x24ebc8[_0x1197a4];return _0x1d5305;}function a125_0x24eb(){var _0x21cf6c=['1137561DBEhSQ','309267mAtrGL','8395240ZeWaYw','2542260vsSVEI','4231473kvBcWm','6757344TzGQAJ','824YqQgER','2myTPkW','7342730XqsrOO'];a125_0x24eb=function(){return _0x21cf6c;};return a125_0x24eb();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4e27fb,_0xdc62a0){const _0x5ad302=a126_0x455c,_0x384254=_0x4e27fb();while(!![]){try{const _0x4433b8=-parseInt(_0x5ad302(0x129))/0x1+parseInt(_0x5ad302(0x11d))/0x2+-parseInt(_0x5ad302(0x12c))/0x3*(parseInt(_0x5ad302(0x124))/0x4)+parseInt(_0x5ad302(0x114))/0x5+-parseInt(_0x5ad302(0x126))/0x6*(-parseInt(_0x5ad302(0x10b))/0x7)+-parseInt(_0x5ad302(0x112))/0x8*(-parseInt(_0x5ad302(0x10a))/0x9)+-parseInt(_0x5ad302(0x119))/0xa*(parseInt(_0x5ad302(0x121))/0xb);if(_0x4433b8===_0xdc62a0)break;else _0x384254['push'](_0x384254['shift']());}catch(_0x278c0c){_0x384254['push'](_0x384254['shift']());}}}(a126_0x3f50,0xded50));import{CLI_BIN_NAME}from'../constant/cli.js';import{isSensitiveFlagName}from'../utils/redaction.js';export function buildConfirmationLines(_0x3312a2,_0x36ec3d,_0xc55b82){const _0x406648=a126_0x455c,_0x45bf33=buildConfirmationContext(_0x3312a2,_0x36ec3d,_0xc55b82),_0x25018a=[_0x406648(0x127)+_0x45bf33[_0x406648(0x116)]];return _0x45bf33[_0x406648(0x107)]&&_0x25018a[_0x406648(0x113)](_0x406648(0x122)+_0x45bf33['description']),_0x45bf33[_0x406648(0x123)]&&_0x25018a[_0x406648(0x113)](_0x406648(0x11b)+_0x45bf33[_0x406648(0x123)]),_0x25018a['push'](_0x406648(0x130)),_0x25018a;}export function reconstructCommandArgv(_0x34678d,_0x529bd0){const _0x11c1b1=a126_0x455c,_0x3248c8=[CLI_BIN_NAME,_0x34678d[_0x11c1b1(0x118)],_0x34678d[_0x11c1b1(0x106)]];for(const [_0x500c76,_0x1629ed]of Object[_0x11c1b1(0x10c)](_0x529bd0)){if(_0x1629ed===!![])_0x3248c8['push']('--'+_0x500c76);else{if(isSensitiveFlagName(_0x500c76)&&_0x1629ed!==![]&&_0x1629ed!==undefined&&_0x1629ed!=='')_0x3248c8[_0x11c1b1(0x113)]('--'+_0x500c76+_0x11c1b1(0x117));else _0x1629ed!==![]&&_0x1629ed!==undefined&&_0x1629ed!==''&&_0x3248c8[_0x11c1b1(0x113)]('--'+_0x500c76+'\x20'+JSON[_0x11c1b1(0x115)](_0x1629ed));}}return _0x3248c8['push'](_0x11c1b1(0x10d)),_0x3248c8['join']('\x20');}function buildConfirmationContext(_0x139863,_0x2358de,_0x239ff4){const _0x1bcc1f=extractAffectedRecords(_0x239ff4);return{'commandLabel':_0x2358de,'description':_0x139863['description'],'affectedRecords':_0x1bcc1f};}function a126_0x3f50(){const _0x1b5da2=['531212QZNOEW','\x20\x20\x20','affectedRecords','348wiIssX','schedule-id','72cXgulE','⚠\x20\x20High-risk\x20operation:\x20','length','1408038LFfipp','scheduled-at','code=','40512kauAyM','cron','cron=','schedule-id=','\x20\x20\x20Continue?\x20[y/N]\x20','command','description','params=','title','3632130XuHprU','414967rfmKEl','entries','--yes','kind=','kind','params','join','16VvtbfM','push','6466740OmhBfR','stringify','commandLabel','\x20[REDACTED]','service','70DroIAG','id=','\x20\x20\x20Affected:\x20','channel','2043580dAQysp','name','name=','code'];a126_0x3f50=function(){return _0x1b5da2;};return a126_0x3f50();}function a126_0x455c(_0x462806,_0x1cb83b){_0x462806=_0x462806-0x106;const _0x3f5082=a126_0x3f50();let _0x455c70=_0x3f5082[_0x462806];return _0x455c70;}function extractAffectedRecords(_0x2f656f){const _0x1a62f2=a126_0x455c,_0x5e4399=[];if(_0x2f656f[_0x1a62f2(0x120)])_0x5e4399[_0x1a62f2(0x113)](_0x1a62f2(0x12b)+_0x2f656f[_0x1a62f2(0x120)]);if(_0x2f656f['id'])_0x5e4399[_0x1a62f2(0x113)](_0x1a62f2(0x11a)+_0x2f656f['id']);if(_0x2f656f[_0x1a62f2(0x125)])_0x5e4399[_0x1a62f2(0x113)](_0x1a62f2(0x12f)+_0x2f656f[_0x1a62f2(0x125)]);if(_0x2f656f[_0x1a62f2(0x11e)])_0x5e4399[_0x1a62f2(0x113)](_0x1a62f2(0x11f)+_0x2f656f[_0x1a62f2(0x11e)]);if(_0x2f656f[_0x1a62f2(0x109)])_0x5e4399[_0x1a62f2(0x113)]('title='+_0x2f656f[_0x1a62f2(0x109)]);if(_0x2f656f[_0x1a62f2(0x10f)])_0x5e4399[_0x1a62f2(0x113)](_0x1a62f2(0x10e)+_0x2f656f['kind']);if(_0x2f656f['cron'])_0x5e4399[_0x1a62f2(0x113)](_0x1a62f2(0x12e)+_0x2f656f[_0x1a62f2(0x12d)]);if(_0x2f656f[_0x1a62f2(0x12a)])_0x5e4399[_0x1a62f2(0x113)]('scheduled-at='+_0x2f656f['scheduled-at']);if(_0x2f656f[_0x1a62f2(0x11c)])_0x5e4399['push']('channel='+_0x2f656f[_0x1a62f2(0x11c)]);if(_0x2f656f[_0x1a62f2(0x110)])_0x5e4399[_0x1a62f2(0x113)](_0x1a62f2(0x108)+_0x2f656f[_0x1a62f2(0x110)]);return _0x5e4399[_0x1a62f2(0x128)]>0x0?_0x5e4399[_0x1a62f2(0x111)](',\x20'):undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xd4a43c,_0x8bfc5d){const _0x1e7eab=a127_0x3753,_0x54e68e=_0xd4a43c();while(!![]){try{const _0x4ed58c=parseInt(_0x1e7eab(0x125))/0x1*(parseInt(_0x1e7eab(0x12f))/0x2)+parseInt(_0x1e7eab(0x130))/0x3*(-parseInt(_0x1e7eab(0x12b))/0x4)+-parseInt(_0x1e7eab(0x121))/0x5*(-parseInt(_0x1e7eab(0x124))/0x6)+parseInt(_0x1e7eab(0x12a))/0x7+-parseInt(_0x1e7eab(0x129))/0x8+-parseInt(_0x1e7eab(0x11c))/0x9*(-parseInt(_0x1e7eab(0x11a))/0xa)+parseInt(_0x1e7eab(0x11b))/0xb*(-parseInt(_0x1e7eab(0x127))/0xc);if(_0x4ed58c===_0x8bfc5d)break;else _0x54e68e['push'](_0x54e68e['shift']());}catch(_0x5d0c78){_0x54e68e['push'](_0x54e68e['shift']());}}}(a127_0x3b57,0xee695));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';function a127_0x3b57(){const _0x3c89d4=['apiError','response','4GUlVNu','57gqaggp','trim','31790KbqaiV','8468328AVfHke','3879AdRnLL','string','status','Request\x20rejected\x20(HTTP\x20401).','The\x20response\x20does\x20not\x20identify\x20whether\x20authentication\x20or\x20permission\x20checks\x20failed.','95hNAcLL','validation','headers','128856CPOdVx','908938jPKaRB','message','24advjhq','stringify','622320HLiLYH','3268811eEtHQA','309268nVkYtT','code'];a127_0x3b57=function(){return _0x3c89d4;};return a127_0x3b57();}import{createAccessError}from'../framework/access-error.js';function a127_0x3753(_0x34f3ea,_0x551053){_0x34f3ea=_0x34f3ea-0x119;const _0x3b57ed=a127_0x3b57();let _0x375308=_0x3b57ed[_0x34f3ea];return _0x375308;}import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';export function mapUserFacingExecuteError(_0xceec6c){const _0x1d8100=a127_0x3753;if(_0xceec6c instanceof LovrabetError){const _0x2cb0b3=userFacingLovrabetMessage(_0xceec6c),_0x11fcf4=_0xceec6c,_0x5c9312=createRateLimitError({'status':_0x11fcf4[_0x1d8100(0x11e)],'errorCode':_0x11fcf4[_0x1d8100(0x12c)],'message':_0x2cb0b3,'retryAfter':readRetryAfter(_0x11fcf4[_0x1d8100(0x12e)]?.[_0x1d8100(0x123)])??readRetryAfterSeconds(_0x11fcf4['response'])});return createAccessError(_0x11fcf4[_0x1d8100(0x12e)],_0x11fcf4[_0x1d8100(0x12c)])??_0x5c9312??(Number(_0x11fcf4['status'])===0x191?CliErrors[_0x1d8100(0x12d)](_0x1d8100(0x11f),_0x1d8100(0x120)):CliErrors[_0x1d8100(0x122)](_0x2cb0b3));}return _0xceec6c;}function userFacingLovrabetMessage(_0x53c436){const _0x368dcc=a127_0x3753,_0x5391f=_0x53c436['description'];if(_0x5391f!==undefined&&_0x5391f!==null){if(typeof _0x5391f===_0x368dcc(0x11d)&&_0x5391f['trim']())return _0x5391f[_0x368dcc(0x119)]();try{return JSON[_0x368dcc(0x128)](_0x5391f);}catch{}}return _0x53c436[_0x368dcc(0x126)];}
|