@lovrabet/lovrabet-cli 2.3.4 → 2.3.5-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/README.md +44 -1
- 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.d.ts +2 -0
- package/lib/commands/data/import-excel.js +1 -0
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.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.d.ts +19 -5
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.d.ts +1 -0
- package/lib/errors.js +1 -1
- package/lib/framework/access-error.d.ts +5 -0
- package/lib/framework/access-error.js +1 -0
- 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.d.ts +2 -17
- 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.d.ts +25 -0
- package/lib/services/dataset-import/auto-id-runner.js +1 -0
- package/lib/services/dataset-import/excel-reader.d.ts +3 -0
- package/lib/services/dataset-import/excel-reader.js +1 -0
- package/lib/services/dataset-import/metadata.d.ts +2 -0
- package/lib/services/dataset-import/metadata.js +1 -0
- package/lib/services/dataset-import/preview.d.ts +4 -0
- package/lib/services/dataset-import/preview.js +1 -0
- package/lib/services/dataset-import/runner.d.ts +63 -0
- package/lib/services/dataset-import/runner.js +1 -0
- package/lib/services/dataset-import/types.d.ts +33 -0
- package/lib/services/dataset-import/types.js +1 -0
- 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/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 +8 -3
- package/skills/lovrabet/SKILL.md +10 -5
- package/skills/lovrabet/guides/dataset-and-data-workflow.md +4 -2
- package/skills/lovrabet/guides/role-and-permission-workflow.md +14 -0
- package/skills/lovrabet/guides/sql-and-bff-workflow.md +1 -1
- package/skills/lovrabet/guides/troubleshooting.md +7 -1
- package/skills/lovrabet/references/instant-api-workflow.md +6 -2
- package/skills/lovrabet/references/lovrabet-approval-workflow.md +16 -2
- package/skills/lovrabet/references/lovrabet-bff-workflow.md +9 -0
- package/skills/lovrabet/references/lovrabet-db-table-excel-import.md +113 -0
- package/skills/lovrabet/references/lovrabet-excel-import.md +31 -0
- package/skills/lovrabet/references/lovrabet-kb-workflow.md +1 -1
- package/skills/lovrabet/references/lovrabet-personal-bff-workflow.md +2 -0
- package/skills/lovrabet.manifest.json +5 -3
package/lib/core/sdk-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x26b739,_0x2ccfd6){const _0x57d307=a108_0x5bb1,_0x5fb2f=_0x26b739();while(!![]){try{const _0x28a153=parseInt(_0x57d307(0xa4))/0x1+-parseInt(_0x57d307(0xb2))/0x2*(-parseInt(_0x57d307(0x9d))/0x3)+parseInt(_0x57d307(0x9f))/0x4+-parseInt(_0x57d307(0x9c))/0x5*(parseInt(_0x57d307(0xa0))/0x6)+-parseInt(_0x57d307(0x94))/0x7+parseInt(_0x57d307(0xa7))/0x8*(-parseInt(_0x57d307(0x99))/0x9)+parseInt(_0x57d307(0xb5))/0xa*(parseInt(_0x57d307(0xb7))/0xb);if(_0x28a153===_0x2ccfd6)break;else _0x5fb2f['push'](_0x5fb2f['shift']());}catch(_0x260f4e){_0x5fb2f['push'](_0x5fb2f['shift']());}}}(a108_0x92de,0x3817f));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';import{installLosslessJsonResponseParser}from'../utils/lossless-json.js';let _client,restoreResponseJsonParser;export function initSdkClient(_0x3f3df3){const _0x1bf462=a108_0x5bb1;restoreResponseJsonParser??=installLosslessJsonResponseParser();try{_client=createClient({'appCode':_0x3f3df3['appCode'],'env':_0x3f3df3[_0x1bf462(0xa6)],'runtimeDomain':_0x3f3df3[_0x1bf462(0xba)],'authMode':_0x3f3df3[_0x1bf462(0x9a)],..._0x3f3df3[_0x1bf462(0x93)]?{'accessKey':_0x3f3df3['accessKey']}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x1bf462(0x9b)]}}});}catch(_0x5f1779){clearSdkClient();throw _0x5f1779;}}export function clearSdkClient(){_client=undefined,restoreResponseJsonParser?.(),restoreResponseJsonParser=undefined;}function ensureClient(){const _0x384a2f=a108_0x5bb1;if(!_client)throw new Error(_0x384a2f(0xb9));return _client;}function normalizeAggregateParams(_0x3cbe8b){const _0x3bfce7=a108_0x5bb1,_0x29d2e7=_0x3cbe8b[_0x3bfce7(0xa8)];if(_0x29d2e7===undefined)return _0x3cbe8b;if(!Array['isArray'](_0x29d2e7))throw CliErrors[_0x3bfce7(0xa1)]('data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.');return{..._0x3cbe8b,'aggregate':_0x29d2e7[_0x3bfce7(0x9e)]((_0x53dcfc,_0x2a787a)=>{const _0x5c18c7=_0x3bfce7;if(!_0x53dcfc||typeof _0x53dcfc!==_0x5c18c7(0xab)||Array[_0x5c18c7(0xb8)](_0x53dcfc))throw CliErrors['validation'](_0x5c18c7(0xb3)+_0x2a787a+_0x5c18c7(0x96));const _0x14b8d2=_0x53dcfc[_0x5c18c7(0xae)]??_0x53dcfc['field'];if(typeof _0x14b8d2!==_0x5c18c7(0x97)||_0x14b8d2[_0x5c18c7(0x95)]()==='')throw CliErrors[_0x5c18c7(0xa1)]('data\x20aggregate\x20--params.aggregate['+_0x2a787a+']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.');const _0x5c9caa={..._0x53dcfc,'column':_0x14b8d2};return delete _0x5c9caa['field'],_0x5c9caa;})};}function a108_0x92de(){const _0xa4bf6f=['aggregate','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27\x20or\x20\x27{\x22id\x22:[1,2,3],\x22name\x22:\x22new\x22}\x27','function','object','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','batchCreate','column','sql','\x22.\x20','delete','30434IILOQE','data\x20aggregate\x20--params.aggregate[','dataset_','20WcqfES','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','3306809kfFEZa','isArray','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','runtimeDomain','accessKey','1872857HPSFxb','trim',']\x20must\x20be\x20an\x20object.','string','bff','4002165QDDgZW','authMode','invokeSource','355SayztQ','12nuqzhu','map','1108204odfwgk','8328RfOGBV','validation','execute','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','101386CfwsPi','getOne','env','8kLfFpu'];a108_0x92de=function(){return _0xa4bf6f;};return a108_0x92de();}export async function executeData(_0x3d10b8,_0x3281e6,_0x2af44a){const _0x1795ee=a108_0x5bb1,_0x2bd3ae=ensureClient(),_0x59eeb2=_0x1795ee(0xb4)+_0x3d10b8,_0x39883c=_0x2bd3ae['models'][_0x59eeb2];if(!_0x39883c||typeof _0x39883c[_0x3281e6]!==_0x1795ee(0xaa))throw new Error(_0x1795ee(0xa3)+_0x3281e6+_0x1795ee(0xb0)+_0x1795ee(0xb6));if(_0x3281e6===_0x1795ee(0xad))return _0x39883c['batchCreate'](parseBatchCreateItemsFromParams(_0x2af44a));const _0x6880b=_0x2af44a!==undefined&&_0x2af44a!==null&&!Array[_0x1795ee(0xb8)](_0x2af44a)?_0x2af44a:{};switch(_0x3281e6){case _0x1795ee(0xa5):{const _0x47b73a=_0x6880b['id'];if(_0x47b73a===undefined||_0x47b73a===null)throw new Error(_0x1795ee(0xac));return _0x39883c['getOne'](_0x47b73a);}case'update':{const {id:_0x88b332,..._0x54aa4b}=_0x6880b;if(_0x88b332===undefined||_0x88b332===null)throw new Error(_0x1795ee(0xa9));return _0x39883c['update'](_0x88b332,_0x54aa4b);}case'delete':{const _0x1df183=_0x6880b['id'];if(_0x1df183===undefined||_0x1df183===null)throw new Error('delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0x39883c[_0x1795ee(0xb1)](_0x1df183);}case _0x1795ee(0xa8):return _0x39883c[_0x1795ee(0xa8)](normalizeAggregateParams(_0x6880b));default:return _0x39883c[_0x3281e6](_0x6880b);}}export async function executeSdkSql(_0x16bbac,_0x51e0ad){const _0x3cbab0=a108_0x5bb1,_0x1d5e62=ensureClient();return _0x1d5e62[_0x3cbab0(0xaf)][_0x3cbab0(0xa2)]({'sqlCode':_0x16bbac,'params':_0x51e0ad});}function a108_0x5bb1(_0x51ce54,_0xeb7a9a){_0x51ce54=_0x51ce54-0x93;const _0x92deb8=a108_0x92de();let _0x5bb16c=_0x92deb8[_0x51ce54];return _0x5bb16c;}export async function executeSdkBff(_0x244170,_0x5d4b72){const _0x1412a8=a108_0x5bb1,_0x1c2292=ensureClient();return _0x1c2292[_0x1412a8(0x98)][_0x1412a8(0xa2)]({'scriptName':_0x244170,'params':_0x5d4b72});}
|
package/lib/errors.d.ts
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { CliError } from "@lovrabet/cli-framework";
|
|
13
13
|
export { CliError };
|
|
14
14
|
export declare const CliErrors: {
|
|
15
|
+
permissionDenied: () => CliError;
|
|
15
16
|
rateLimited: (message: string, hint?: string) => CliError;
|
|
16
17
|
nativeToolRequired: (commandLabel: string) => CliError;
|
|
17
18
|
authRequired(hint?: string): CliError;
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a109_0x243580=a109_0x504e;(function(_0x33e665,_0x1e22d6){const _0x944ad6=a109_0x504e,_0x1f78be=_0x33e665();while(!![]){try{const _0x2d62d5=parseInt(_0x944ad6(0x1bf))/0x1*(-parseInt(_0x944ad6(0x1c8))/0x2)+-parseInt(_0x944ad6(0x1cb))/0x3+parseInt(_0x944ad6(0x1c9))/0x4*(-parseInt(_0x944ad6(0x1d3))/0x5)+parseInt(_0x944ad6(0x1cc))/0x6+-parseInt(_0x944ad6(0x1c4))/0x7+-parseInt(_0x944ad6(0x1d4))/0x8*(parseInt(_0x944ad6(0x1d0))/0x9)+parseInt(_0x944ad6(0x1c7))/0xa;if(_0x2d62d5===_0x1e22d6)break;else _0x1f78be['push'](_0x1f78be['shift']());}catch(_0x43aca3){_0x1f78be['push'](_0x1f78be['shift']());}}}(a109_0x4cea,0x76286));function a109_0x4cea(){const _0x5ba397=['\x20or\x20run\x20`','permission_denied','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.','2381031lxBtAc','\x20auth\x20login`.','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','20vJddjB','8zyElMh','rate_limited','\x20file.','708052WvjwfO','Configure\x20accessKey\x20in\x20','Use\x20the\x20native\x20`lovrabet`\x20tool\x20with\x20argv\x20containing\x20only\x20the\x20tokens\x20after\x20`lovrabet`;\x20do\x20not\x20raise\x20riskLevel\x20or\x20retry\x20through\x20bash.','newConfigFileName','Command\x20`','4603060sVAtaY','`\x20cannot\x20run\x20through\x20the\x20shell\x20CLI\x20because\x20this\x20execution\x20host\x20delegates\x20Lovrabet\x20writes\x20to\x20the\x20native\x20tool.','Permission\x20denied.','16421670QVnQMi','2UTabSQ','38756TsBegz','Set\x20appcode\x20via\x20--appcode\x20or\x20','1277772xUhaDJ','5620068kmAjuv'];a109_0x4cea=function(){return _0x5ba397;};return a109_0x4cea();}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};const baseCliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a109_0x243580(0x1c0)+PRODUCT_CONFIG['newConfigFileName']+a109_0x243580(0x1cd)+CLI_BIN_NAME+a109_0x243580(0x1d1),'configMissingHint':a109_0x243580(0x1ca)+PRODUCT_CONFIG[a109_0x243580(0x1c2)]+'.','notInProjectHint':a109_0x243580(0x1d2)+PRODUCT_CONFIG[a109_0x243580(0x1c2)]+a109_0x243580(0x1be)});function a109_0x504e(_0x2ab8b0,_0x520ee0){_0x2ab8b0=_0x2ab8b0-0x1bd;const _0x4ceae1=a109_0x4cea();let _0x504e8a=_0x4ceae1[_0x2ab8b0];return _0x504e8a;}export const CliErrors={...baseCliErrors,'permissionDenied':()=>new CliError(a109_0x243580(0x1ce),0x2,a109_0x243580(0x1c6),a109_0x243580(0x1cf)),'rateLimited':(_0x48755c,_0x48bb1d)=>new CliError(a109_0x243580(0x1bd),0x2,_0x48755c,_0x48bb1d),'nativeToolRequired':_0x1b89af=>new CliError('native_tool_required',0x1,a109_0x243580(0x1c3)+_0x1b89af+a109_0x243580(0x1c5),a109_0x243580(0x1c1))};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Classifies Runtime business failures independently of their HTTP status. */
|
|
2
|
+
import { type CliError } from "../errors.js";
|
|
3
|
+
export declare function readApiErrorCode(body: unknown): string | undefined;
|
|
4
|
+
/** Call only for a failed response; nested business results are not error envelopes. */
|
|
5
|
+
export declare function createAccessError(body: unknown, fallbackCode?: unknown): CliError | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x128f17,_0x833d91){const _0x4bbc26=a110_0x192d,_0xebec4a=_0x128f17();while(!![]){try{const _0x478032=parseInt(_0x4bbc26(0xe3))/0x1+-parseInt(_0x4bbc26(0xeb))/0x2*(parseInt(_0x4bbc26(0xdc))/0x3)+-parseInt(_0x4bbc26(0xdd))/0x4*(parseInt(_0x4bbc26(0xdf))/0x5)+parseInt(_0x4bbc26(0xdb))/0x6+-parseInt(_0x4bbc26(0xde))/0x7+parseInt(_0x4bbc26(0xe5))/0x8+parseInt(_0x4bbc26(0xe4))/0x9;if(_0x478032===_0x833d91)break;else _0xebec4a['push'](_0xebec4a['shift']());}catch(_0x1fcf6d){_0xebec4a['push'](_0xebec4a['shift']());}}}(a110_0x2084,0x7d0d2));function a110_0x192d(_0x492f5b,_0x22040b){_0x492f5b=_0x492f5b-0xdb;const _0x2084ad=a110_0x2084();let _0x192db1=_0x2084ad[_0x492f5b];return _0x192db1;}import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function readApiErrorCode(_0x351846){const _0x1d19bd=a110_0x192d;if(!_0x351846||typeof _0x351846!==_0x1d19bd(0xef)||Array[_0x1d19bd(0xe0)](_0x351846))return undefined;const _0x1fd01e=_0x351846;for(const _0x27386e of[_0x1fd01e[_0x1d19bd(0xee)],_0x1fd01e['error']]){if(typeof _0x27386e===_0x1d19bd(0xe6)&&_0x27386e[_0x1d19bd(0xed)]())return _0x27386e[_0x1d19bd(0xed)]();if(typeof _0x27386e===_0x1d19bd(0xe1)&&Number[_0x1d19bd(0xe8)](_0x27386e))return String(_0x27386e);}return undefined;}function a110_0x2084(){const _0x54242a=['API\x20error\x20code:\x20201.\x20Verify\x20the\x20configured\x20AccessKey\x20or\x20run\x20`','trim','errorCode','object','4447860PESIro','123QImMfM','80nRpETD','3264275kajeyy','224765STNupr','isArray','number','\x20auth\x20login`.','1003363zTbkSG','1654038MzOiru','3295256hvsScH','string','202','isFinite','201','authRequired','22574GifeKY'];a110_0x2084=function(){return _0x54242a;};return a110_0x2084();}export function createAccessError(_0x1a81b2,_0xc84319){const _0x196d5a=a110_0x192d,_0x1bd917=readApiErrorCode(_0x1a81b2)??String(_0xc84319??'');if(_0x1bd917===_0x196d5a(0xe7))return CliErrors['permissionDenied']();if(_0x1bd917===_0x196d5a(0xe9))return CliErrors[_0x196d5a(0xea)](_0x196d5a(0xec)+CLI_BIN_NAME+_0x196d5a(0xe2));return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3540d0,_0x28662d){var _0x257546=a111_0x23db,_0x33dfdf=_0x3540d0();while(!![]){try{var _0x2fe6aa=parseInt(_0x257546(0x198))/0x1+-parseInt(_0x257546(0x199))/0x2*(parseInt(_0x257546(0x194))/0x3)+-parseInt(_0x257546(0x193))/0x4+parseInt(_0x257546(0x192))/0x5+parseInt(_0x257546(0x197))/0x6*(parseInt(_0x257546(0x191))/0x7)+parseInt(_0x257546(0x195))/0x8+-parseInt(_0x257546(0x196))/0x9;if(_0x2fe6aa===_0x28662d)break;else _0x33dfdf['push'](_0x33dfdf['shift']());}catch(_0x43cf56){_0x33dfdf['push'](_0x33dfdf['shift']());}}}(a111_0x178d,0x2398f));function a111_0x178d(){var _0xb9ecd2=['639051XuyhGK','1245385HgEmpM','454828YikAHJ','861uqQuLX','528160eTkHea','1031211hrVwtY','6WnJQef','52942BsiDbp','594larRtm'];a111_0x178d=function(){return _0xb9ecd2;};return a111_0x178d();}function a111_0x23db(_0x3f3142,_0x4c1e03){_0x3f3142=_0x3f3142-0x191;var _0x178daf=a111_0x178d();var _0x23dba6=_0x178daf[_0x3f3142];return _0x23dba6;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a111_0x510309}from'@lovrabet/cli-framework';export function buildAllFlags(_0x1932bb){return a111_0x510309(_0x1932bb,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
|
package/lib/framework/dryrun.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a112_0x187c(_0x24d40c,_0x3b2b2f){_0x24d40c=_0x24d40c-0xf8;const _0x198da2=a112_0x198d();let _0x187c41=_0x198da2[_0x24d40c];return _0x187c41;}(function(_0x1f528d,_0xff58a8){const _0xd65500=a112_0x187c,_0x1e3ddb=_0x1f528d();while(!![]){try{const _0x4285a1=-parseInt(_0xd65500(0xf9))/0x1+parseInt(_0xd65500(0x100))/0x2+parseInt(_0xd65500(0xfa))/0x3*(parseInt(_0xd65500(0xfb))/0x4)+-parseInt(_0xd65500(0xfc))/0x5+-parseInt(_0xd65500(0xff))/0x6+-parseInt(_0xd65500(0x101))/0x7*(-parseInt(_0xd65500(0xfd))/0x8)+parseInt(_0xd65500(0xfe))/0x9;if(_0x4285a1===_0xff58a8)break;else _0x1e3ddb['push'](_0x1e3ddb['shift']());}catch(_0x391322){_0x1e3ddb['push'](_0x1e3ddb['shift']());}}}(a112_0x198d,0xeed3f));export function dryRun(_0x44a939,_0x204f21){const _0x42f17d={'method':_0x44a939,'url':_0x204f21},_0x470531={'body'(_0x3cedf8){return _0x42f17d['body']=_0x3cedf8,_0x470531;},'description'(_0x4e1f37){const _0x5b1267=a112_0x187c;return _0x42f17d[_0x5b1267(0xf8)]=_0x4e1f37,_0x470531;},'build'(){return{..._0x42f17d};}};return _0x470531;}function a112_0x198d(){const _0x1c18ec=['6327567dzfLZp','9854370YGnFjY','3647648tiGWvN','704116JhfxgI','description','1041744mztSrS','3228744YAyite','4sqMVJG','206725FKxOKi','8ArDQHv'];a112_0x198d=function(){return _0x1c18ec;};return a112_0x198d();}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a113_0x330fe5=a113_0x382b;(function(_0xefea4b,_0x4f01b2){const _0x54aa87=a113_0x382b,_0x2144cf=_0xefea4b();while(!![]){try{const _0x22ba65=parseInt(_0x54aa87(0x199))/0x1*(-parseInt(_0x54aa87(0x19c))/0x2)+parseInt(_0x54aa87(0x194))/0x3*(parseInt(_0x54aa87(0x1a0))/0x4)+-parseInt(_0x54aa87(0x198))/0x5*(parseInt(_0x54aa87(0x197))/0x6)+-parseInt(_0x54aa87(0x19d))/0x7+-parseInt(_0x54aa87(0x196))/0x8*(-parseInt(_0x54aa87(0x19b))/0x9)+-parseInt(_0x54aa87(0x19e))/0xa*(parseInt(_0x54aa87(0x193))/0xb)+-parseInt(_0x54aa87(0x19f))/0xc*(-parseInt(_0x54aa87(0x19a))/0xd);if(_0x22ba65===_0x4f01b2)break;else _0x2144cf['push'](_0x2144cf['shift']());}catch(_0x3aac2d){_0x2144cf['push'](_0x2144cf['shift']());}}}(a113_0x11cd,0x2f769));function a113_0x11cd(){const _0xe655aa=['1513620YPJlgL','4aTNKNm','validateFlags','5159rHwiEA','524466NluggM','parseFlags','461728ikjLcS','1182dPInns','1655cPwaRU','3JeVDMz','65mxlbcA','36KCmtde','162922MjakgY','1714055hxSjNc','6130faIVFg'];a113_0x11cd=function(){return _0xe655aa;};return a113_0x11cd();}import{createFlagHelpers}from'@lovrabet/cli-framework';function a113_0x382b(_0x159987,_0x290d83){_0x159987=_0x159987-0x193;const _0x11cd3a=a113_0x11cd();let _0x382bc6=_0x11cd3a[_0x159987];return _0x382bc6;}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a113_0x330fe5(0x195)];export const validateFlags=helpers[a113_0x330fe5(0x1a1)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3b76eb,_0x58090e){const _0x230ae0=a114_0x2140,_0x41149b=_0x3b76eb();while(!![]){try{const _0x34c7d5=-parseInt(_0x230ae0(0xd3))/0x1*(-parseInt(_0x230ae0(0xd8))/0x2)+-parseInt(_0x230ae0(0xe2))/0x3*(-parseInt(_0x230ae0(0xda))/0x4)+parseInt(_0x230ae0(0xdc))/0x5*(parseInt(_0x230ae0(0xe0))/0x6)+parseInt(_0x230ae0(0xde))/0x7*(parseInt(_0x230ae0(0xd7))/0x8)+parseInt(_0x230ae0(0xd6))/0x9+-parseInt(_0x230ae0(0xdf))/0xa+-parseInt(_0x230ae0(0xd9))/0xb*(parseInt(_0x230ae0(0xd4))/0xc);if(_0x34c7d5===_0x58090e)break;else _0x41149b['push'](_0x41149b['shift']());}catch(_0x1134a0){_0x41149b['push'](_0x41149b['shift']());}}}(a114_0xaaa1,0xc5fc8));function a114_0xaaa1(){const _0x1456f2=['438KJjgmn','11CcNuSf','4PRMYWH','generateCommandHelp','3529820QQyvBL','service','7ArVCtE','5379320yiXkkr','12FglHWy','get','4394922ExjDuc','\x20or\x20--appcode).','newConfigFileName','filter','generateServiceHelp','has','5219lJxDDe','43835388lEoeJX','map','1006875qxkNak','6960760HmowLw'];a114_0xaaa1=function(){return _0x1456f2;};return a114_0xaaa1();}import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';function a114_0x2140(_0x45a790,_0x32e133){_0x45a790=_0x45a790-0xd2;const _0xaaa141=a114_0xaaa1();let _0x21406e=_0xaaa141[_0x45a790];return _0x21406e;}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 _0x3fe5cd=a114_0x2140;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries()),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20'+PRODUCT_CONFIG[_0x3fe5cd(0xe4)]+_0x3fe5cd(0xe3)});}export function generateCommandHelp(_0x1da415){const _0xa97dae=a114_0x2140;return createGenerators()[_0xa97dae(0xdb)](_0x1da415);}export function generateServiceHelp(_0x26a870){const _0x105626=a114_0x2140;return createGenerators()[_0x105626(0xe6)](_0x26a870);}export function generateFullHelp(){return createGenerators()['generateFullHelp']();}function getAnyServiceEntry(_0x2a242c){const _0x388496=getServiceEntry(_0x2a242c);if(_0x388496)return _0x388496;try{return getDynamicServiceEntry(_0x2a242c);}catch{return undefined;}}function getAnyServiceDefinitions(_0x175b2c){const _0x5bdd2e=a114_0x2140,_0xe64524=serviceGroups[_0x5bdd2e(0xe1)](_0x175b2c);if(_0xe64524)return _0xe64524;try{return getDynamicServiceDefinitions(_0x175b2c);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x301bd2=a114_0x2140,_0x28bd3c=new Set(serviceRegistry[_0x301bd2(0xd5)](_0x438036=>_0x438036[_0x301bd2(0xdd)]));try{return listDynamicServiceEntries()[_0x301bd2(0xe5)](_0x5da28c=>!_0x28bd3c[_0x301bd2(0xd2)](_0x5da28c[_0x301bd2(0xdd)]));}catch{return[];}}
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4e4210,_0x3b348a){var _0x35b6c1=a115_0x448f,_0x5404f5=_0x4e4210();while(!![]){try{var _0x3af2e7=-parseInt(_0x35b6c1(0x1cd))/0x1+-parseInt(_0x35b6c1(0x1cb))/0x2+-parseInt(_0x35b6c1(0x1cc))/0x3*(parseInt(_0x35b6c1(0x1d1))/0x4)+parseInt(_0x35b6c1(0x1d3))/0x5*(-parseInt(_0x35b6c1(0x1ce))/0x6)+-parseInt(_0x35b6c1(0x1d2))/0x7+-parseInt(_0x35b6c1(0x1cf))/0x8+parseInt(_0x35b6c1(0x1d0))/0x9;if(_0x3af2e7===_0x3b348a)break;else _0x5404f5['push'](_0x5404f5['shift']());}catch(_0x1c834e){_0x5404f5['push'](_0x5404f5['shift']());}}}(a115_0x7fa0,0x82436));function a115_0x448f(_0x2ac0b7,_0x2f6dc3){_0x2ac0b7=_0x2ac0b7-0x1cb;var _0x7fa027=a115_0x7fa0();var _0x448f8d=_0x7fa027[_0x2ac0b7];return _0x448f8d;}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';function a115_0x7fa0(){var _0x42ac00=['5987856RjOfQh','2055DRJczZ','1537924MHlzJO','4197AeNsrW','565102jXPoKK','14346oczhBL','337376KgYyKW','39006756rGcuqX','1676jvqlud'];a115_0x7fa0=function(){return _0x42ac00;};return a115_0x7fa0();}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 a116_0x1300(){const _0x470563=['format','message','370JexUgB','error','70689twMxTm','1271186AwjfZs','11961cXgUlh','update','url','_notice','11RyEebm','23564JcPmMe','1087614DwzQco','57255468DTMRiK','4450RrFZfg','194271iWUklg','40sFbczv','158zEhVsD'];a116_0x1300=function(){return _0x470563;};return a116_0x1300();}(function(_0x5a9e2b,_0x653297){const _0x26c5cf=a116_0x119a,_0x35645a=_0x5a9e2b();while(!![]){try{const _0x22f7c3=-parseInt(_0x26c5cf(0x12b))/0x1+parseInt(_0x26c5cf(0x125))/0x2*(-parseInt(_0x26c5cf(0x12a))/0x3)+-parseInt(_0x26c5cf(0x131))/0x4*(parseInt(_0x26c5cf(0x128))/0x5)+parseInt(_0x26c5cf(0x132))/0x6+-parseInt(_0x26c5cf(0x135))/0x7*(-parseInt(_0x26c5cf(0x124))/0x8)+parseInt(_0x26c5cf(0x12c))/0x9*(-parseInt(_0x26c5cf(0x134))/0xa)+-parseInt(_0x26c5cf(0x130))/0xb*(-parseInt(_0x26c5cf(0x133))/0xc);if(_0x22f7c3===_0x653297)break;else _0x35645a['push'](_0x35645a['shift']());}catch(_0x28e52c){_0x35645a['push'](_0x35645a['shift']());}}}(a116_0x1300,0xe35f9));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a116_0x119a(_0x5c3995,_0x93be46){_0x5c3995=_0x5c3995-0x124;const _0x130073=a116_0x1300();let _0x119a49=_0x130073[_0x5c3995];return _0x119a49;}export function formatOutput(_0x7dd2d5,_0x20c53a){const _0x406936=a116_0x119a,_0x607851=_0x7dd2d5[_0x406936(0x12f)],{_notice:_0x4234cc,..._0x220266}=_0x7dd2d5;void _0x4234cc,baseFormatOutput(_0x220266,_0x20c53a),_0x20c53a[_0x406936(0x126)]==='pretty'&&printPrettyNotice(_0x607851);}function printPrettyNotice(_0x1e7e18){const _0x5d89c6=a116_0x119a;if(!_0x1e7e18?.[_0x5d89c6(0x12d)])return;console[_0x5d89c6(0x129)](_0x1e7e18[_0x5d89c6(0x12d)][_0x5d89c6(0x127)]+'\x20('+_0x1e7e18[_0x5d89c6(0x12d)][_0x5d89c6(0x12e)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x294a5a,_0x5a92f0){const _0x40181b=a117_0x41ff,_0x2efbdf=_0x294a5a();while(!![]){try{const _0x201dcc=-parseInt(_0x40181b(0x181))/0x1+parseInt(_0x40181b(0x16e))/0x2*(-parseInt(_0x40181b(0x169))/0x3)+-parseInt(_0x40181b(0x17a))/0x4*(parseInt(_0x40181b(0x182))/0x5)+parseInt(_0x40181b(0x16f))/0x6*(parseInt(_0x40181b(0x178))/0x7)+-parseInt(_0x40181b(0x164))/0x8*(parseInt(_0x40181b(0x17c))/0x9)+-parseInt(_0x40181b(0x165))/0xa*(-parseInt(_0x40181b(0x180))/0xb)+parseInt(_0x40181b(0x17d))/0xc;if(_0x201dcc===_0x5a92f0)break;else _0x2efbdf['push'](_0x2efbdf['shift']());}catch(_0x12c308){_0x2efbdf['push'](_0x2efbdf['shift']());}}}(a117_0x113e,0x2d9bb));export function toKebab(_0x44f4b3){const _0x287d5c=a117_0x41ff;return _0x44f4b3['replace'](/_/g,'-')['replace'](/-([A-Z]+)/g,(_0xcf877,_0x3f8378)=>'-'+_0x3f8378['toLowerCase']())[_0x287d5c(0x17b)](/([a-z0-9])([A-Z])/g,(_0x711ddf,_0x3a2bc2,_0x59d4c9)=>_0x3a2bc2+'-'+_0x59d4c9)[_0x287d5c(0x187)]();}function buildKnownFlags(_0x27aa08){const _0x56d9d1=a117_0x41ff,_0x3c0ba3=new Set();for(const _0x4c1b05 of _0x27aa08){_0x3c0ba3['add'](_0x4c1b05[_0x56d9d1(0x175)]),_0x3c0ba3[_0x56d9d1(0x16c)](toCamelCase(_0x4c1b05[_0x56d9d1(0x175)]));}for(const _0x2200cf of[_0x56d9d1(0x183),_0x56d9d1(0x168),'yes',_0x56d9d1(0x185)]){_0x3c0ba3[_0x56d9d1(0x16c)](_0x2200cf);}for(const _0x316ee7 of[_0x56d9d1(0x16a),_0x56d9d1(0x184),_0x56d9d1(0x16d),_0x56d9d1(0x177),_0x56d9d1(0x166),_0x56d9d1(0x161),'ci',_0x56d9d1(0x173),_0x56d9d1(0x170)]){_0x3c0ba3[_0x56d9d1(0x16c)](_0x316ee7);}return _0x3c0ba3;}function buildFlagTypeMap(_0x453182){const _0x4e8c51=a117_0x41ff,_0x52274f=new Map();for(const _0x28966d of _0x453182){_0x52274f[_0x4e8c51(0x186)](_0x28966d[_0x4e8c51(0x175)],_0x28966d[_0x4e8c51(0x162)]),_0x52274f['set'](toCamelCase(_0x28966d[_0x4e8c51(0x175)]),_0x28966d['type']);}return _0x52274f;}function toCamelCase(_0x298fc9){const _0x5125bf=a117_0x41ff;return _0x298fc9[_0x5125bf(0x17b)](/-([a-z])/g,(_0x5da177,_0x1f6a2a)=>_0x1f6a2a[_0x5125bf(0x15f)]());}function aliasHandler(_0x42d2c1,_0x43a27a){const _0x26e472=a117_0x41ff,_0x3aeae3=[];for(const _0x142a4c of Object[_0x26e472(0x167)](_0x42d2c1)){if(_0x43a27a[_0x26e472(0x163)](_0x142a4c))continue;const _0x18ca29=toKebab(_0x142a4c);_0x18ca29!==_0x142a4c&&_0x43a27a[_0x26e472(0x163)](_0x18ca29)&&_0x3aeae3[_0x26e472(0x188)]({'original':_0x142a4c,'corrected':_0x18ca29,'handler':'alias'});}return _0x3aeae3;}function stickyHandler(_0x2a0806,_0x10ecfb,_0x507355){const _0x99388f=a117_0x41ff,_0x2c73e9=[];for(const [_0x1bf94e,_0x102f45]of Object[_0x99388f(0x179)](_0x2a0806)){if(_0x102f45!==!![])continue;for(let _0x544bf3=_0x1bf94e[_0x99388f(0x17f)]-0x1;_0x544bf3>0x0;_0x544bf3--){const _0x3f5eef=_0x1bf94e['slice'](0x0,_0x544bf3),_0x5c4605=_0x1bf94e[_0x99388f(0x16b)](_0x544bf3),_0x30331d=toKebab(_0x3f5eef),_0x1e09c3=toCamelCase(_0x3f5eef),_0x561102=_0x10ecfb[_0x99388f(0x163)](_0x3f5eef)?_0x3f5eef:_0x10ecfb[_0x99388f(0x163)](_0x30331d)?_0x30331d:_0x10ecfb[_0x99388f(0x163)](_0x1e09c3)?_0x1e09c3:null;if(!_0x561102)continue;const _0xae511c=_0x507355[_0x99388f(0x176)](_0x561102)??_0x99388f(0x160);let _0x3783dc;if(_0xae511c==='number'){const _0x4c9272=Number(_0x5c4605);if(isNaN(_0x4c9272)||_0x5c4605==='')continue;_0x3783dc=_0x4c9272;}else{if(_0xae511c==='boolean')continue;else{if(_0x5c4605==='')continue;_0x3783dc=_0x5c4605;}}_0x2c73e9[_0x99388f(0x188)]({'original':_0x1bf94e,'corrected':_0x561102+'='+_0x3783dc,'handler':_0x99388f(0x172)});break;}}return _0x2c73e9;}function a117_0x41ff(_0x36e0f2,_0xf743cc){_0x36e0f2=_0x36e0f2-0x15f;const _0x113e1a=a117_0x113e();let _0x41ff81=_0x113e1a[_0x36e0f2];return _0x41ff81;}function a117_0x113e(){const _0x2d3abf=['480JXzDce','replace','36KysfYM','6227100tlYPuO','corrected','length','9427Zlquci','50797fAGMiJ','9915lNZhwx','dry-run','env','format','set','toLowerCase','push','toUpperCase','string','non-interactive','type','has','682016qswyyA','3090XKmXOv','nonInteractive','keys','dryRun','3CXmTKJ','help','slice','add','appcode','425794nuaykg','294PaKGoL','version','original','sticky','global','number','name','get','app','35105EzjYfj','entries'];a117_0x113e=function(){return _0x2d3abf;};return a117_0x113e();}export function correctFlags(_0x2e1e90,_0x115ac4){const _0x2c08c8=a117_0x41ff,_0x2830f8=buildKnownFlags(_0x115ac4),_0xcfecd2=buildFlagTypeMap(_0x115ac4),_0xfa3a20=aliasHandler(_0x2e1e90,_0x2830f8),_0x5e0067=stickyHandler(_0x2e1e90,_0x2830f8,_0xcfecd2),_0xda80c0=[..._0xfa3a20,..._0x5e0067];if(_0xda80c0[_0x2c08c8(0x17f)]===0x0)return{'flags':_0x2e1e90,'corrections':[]};const _0x3448f0={..._0x2e1e90},_0x5e3d18=new Set();for(const _0x3c0700 of _0xfa3a20){_0x3448f0[_0x3c0700[_0x2c08c8(0x17e)]]=_0x2e1e90[_0x3c0700[_0x2c08c8(0x171)]],_0x5e3d18['add'](_0x3c0700['original']);}for(const _0x4ba8f5 of _0x5e0067){const _0x27b28b=_0x4ba8f5[_0x2c08c8(0x17e)]['indexOf']('='),_0x372b56=_0x4ba8f5[_0x2c08c8(0x17e)][_0x2c08c8(0x16b)](0x0,_0x27b28b),_0x234316=_0x4ba8f5[_0x2c08c8(0x17e)]['slice'](_0x27b28b+0x1),_0x3a736f=_0xcfecd2['get'](_0x372b56)??_0x2c08c8(0x160);_0x3a736f===_0x2c08c8(0x174)?_0x3448f0[_0x372b56]=Number(_0x234316):_0x3448f0[_0x372b56]=_0x234316,_0x5e3d18[_0x2c08c8(0x16c)](_0x4ba8f5[_0x2c08c8(0x171)]);}for(const _0x23d413 of _0x5e3d18){delete _0x3448f0[_0x23d413];}return{'flags':_0x3448f0,'corrections':_0xda80c0};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a118_0x2ff1ae=a118_0x3c2a;function a118_0x3445(){const _0x50d4b7=['retryAfterSeconds','185446tCCtkI','Request\x20rate\x20limit\x20exceeded.','7pfgOhr','1874568IMclTz','6148809cWxahg','retry-after','number','4238760ebwdKo','EXCEED_MAX_QPS_LIMIT','string','Retry\x20after\x20a\x20short\x20delay.','object','Retry-After','retryAfter','call','MAX_QPS_LIMIT','Wait\x20','get','2dtrlht','message','status','\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.','\x20seconds\x20before\x20retrying.','2539164AiJmgr','trim','toLowerCase','10zNlnFa','2687528yfJoXg','10JULrHC','test','16043258RAMQyA'];a118_0x3445=function(){return _0x50d4b7;};return a118_0x3445();}(function(_0x49f093,_0x1482ae){const _0x5ccc76=a118_0x3c2a,_0x38337b=_0x49f093();while(!![]){try{const _0x1899bb=-parseInt(_0x5ccc76(0xd5))/0x1+parseInt(_0x5ccc76(0xe7))/0x2*(parseInt(_0x5ccc76(0xec))/0x3)+-parseInt(_0x5ccc76(0xd8))/0x4*(-parseInt(_0x5ccc76(0xf1))/0x5)+parseInt(_0x5ccc76(0xdc))/0x6+parseInt(_0x5ccc76(0xd7))/0x7*(parseInt(_0x5ccc76(0xf0))/0x8)+-parseInt(_0x5ccc76(0xd9))/0x9*(parseInt(_0x5ccc76(0xef))/0xa)+-parseInt(_0x5ccc76(0xf3))/0xb;if(_0x1899bb===_0x1482ae)break;else _0x38337b['push'](_0x38337b['shift']());}catch(_0x597980){_0x38337b['push'](_0x38337b['shift']());}}}(a118_0x3445,0x79d04));function a118_0x3c2a(_0xfef3a0,_0x409115){_0xfef3a0=_0xfef3a0-0xd5;const _0x3445e8=a118_0x3445();let _0x3c2ad6=_0x3445e8[_0xfef3a0];return _0x3c2ad6;}import{CliErrors}from'../errors.js';const RATE_LIMIT_ERROR_CODES=new Set([a118_0x2ff1ae(0xdd),a118_0x2ff1ae(0xe4),'IP_RATE_LIMIT_EXCEEDED']);function nonEmptyString(_0x108a6c){const _0x552497=a118_0x2ff1ae;if(typeof _0x108a6c!==_0x552497(0xde))return undefined;const _0x21b500=_0x108a6c[_0x552497(0xed)]();return _0x21b500||undefined;}function buildRetryHint(_0x18c66d){const _0x3c8ebc=a118_0x2ff1ae,_0x533959=nonEmptyString(_0x18c66d),_0x42e2f6=_0x533959?/^\d+$/[_0x3c8ebc(0xf2)](_0x533959)?_0x3c8ebc(0xe5)+_0x533959+_0x3c8ebc(0xeb):'Retry\x20after\x20'+_0x533959+'.':_0x3c8ebc(0xdf);return _0x42e2f6+_0x3c8ebc(0xea);}export function createRateLimitError(_0xd87721){const _0x2e1308=a118_0x2ff1ae,_0xd7f730=nonEmptyString(_0xd87721['errorCode'])?.['toUpperCase'](),_0x1b2d35=Number(_0xd87721[_0x2e1308(0xe9)])===0x1ad||_0xd7f730!==undefined&&RATE_LIMIT_ERROR_CODES['has'](_0xd7f730);if(!_0x1b2d35)return undefined;return CliErrors['rateLimited'](nonEmptyString(_0xd87721[_0x2e1308(0xe8)])??_0x2e1308(0xd6),buildRetryHint(_0xd87721[_0x2e1308(0xe2)]));}export function readRetryAfter(_0x5c1b76){const _0x3be2c9=a118_0x2ff1ae;if(!_0x5c1b76||typeof _0x5c1b76!==_0x3be2c9(0xe0))return undefined;const _0x525060=_0x5c1b76[_0x3be2c9(0xe6)];if(typeof _0x525060==='function'){const _0xf0406=_0x525060[_0x3be2c9(0xe3)](_0x5c1b76,_0x3be2c9(0xe1))??_0x525060[_0x3be2c9(0xe3)](_0x5c1b76,_0x3be2c9(0xda));return nonEmptyString(_0xf0406);}for(const [_0xa332c7,_0x32ba64]of Object['entries'](_0x5c1b76)){if(_0xa332c7[_0x3be2c9(0xee)]()===_0x3be2c9(0xda))return nonEmptyString(_0x32ba64)??(typeof _0x32ba64===_0x3be2c9(0xdb)?String(_0x32ba64):undefined);}return undefined;}export function readRetryAfterSeconds(_0x981f8e){const _0x2132f2=a118_0x2ff1ae;if(!_0x981f8e||typeof _0x981f8e!==_0x2132f2(0xe0)||Array['isArray'](_0x981f8e))return undefined;const _0x4a02ae=_0x981f8e[_0x2132f2(0xf4)];if(typeof _0x4a02ae==='number')return Number['isInteger'](_0x4a02ae)&&_0x4a02ae>=0x0?String(_0x4a02ae):undefined;const _0x4993e1=nonEmptyString(_0x4a02ae);return _0x4993e1&&/^\d+$/[_0x2132f2(0xf2)](_0x4993e1)?_0x4993e1:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a119_0x1ffa(){const _0x355c1a=['asc','data','1930mXUSLj','60jUFVgD','command','filter','version','Example:\x20','\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20','page','service','entries','active','order-by','4045107tzqmUg','36ANSeXY','select','meowKey','name','stringify','no-','current-page','Unknown\x20flag\x20--','currentpage','1753290NKFQDN','36QjpWLP','validation','flags','53186RiTzNn','7518VuuirP','\x20is\x20not\x20a\x20CLI\x20flag\x20for\x20`','\x20--help`\x20to\x20see\x20accepted\x20flags.','11600312xQvnWe','323712fSfwbq','add','pagesize','orderby','has','9243450zSbNwX'];a119_0x1ffa=function(){return _0x355c1a;};return a119_0x1ffa();}const a119_0x543d87=a119_0x5a6b;(function(_0x15af82,_0xe5fff3){const _0x4c752b=a119_0x5a6b,_0x48a7e7=_0x15af82();while(!![]){try{const _0x5238a3=-parseInt(_0x4c752b(0xf6))/0x1*(-parseInt(_0x4c752b(0x110))/0x2)+-parseInt(_0x4c752b(0xfb))/0x3*(-parseInt(_0x4c752b(0xf3))/0x4)+-parseInt(_0x4c752b(0x103))/0x5*(parseInt(_0x4c752b(0xf7))/0x6)+-parseInt(_0x4c752b(0x119))/0x7+-parseInt(_0x4c752b(0xfa))/0x8+-parseInt(_0x4c752b(0x100))/0x9+-parseInt(_0x4c752b(0x104))/0xa*(-parseInt(_0x4c752b(0x10f))/0xb);if(_0x5238a3===_0xe5fff3)break;else _0x48a7e7['push'](_0x48a7e7['shift']());}catch(_0x5e8b0b){_0x48a7e7['push'](_0x48a7e7['shift']());}}}(a119_0x1ffa,0xe1829));import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{toKebab}from'../framework/preparse.js';const FILTER_BODY_FIELDS=new Set(['where',a119_0x543d87(0x111),a119_0x543d87(0x10e),a119_0x543d87(0xfe),a119_0x543d87(0x116),a119_0x543d87(0x118),a119_0x543d87(0x10a),'page-size',a119_0x543d87(0xfd)]);function a119_0x5a6b(_0x245b2e,_0x2304ae){_0x245b2e=_0x245b2e-0xf3;const _0x1ffa7e=a119_0x1ffa();let _0x5a6b89=_0x1ffa7e[_0x245b2e];return _0x5a6b89;}export function assertKnownCommandFlags(_0x1ad5e6,_0x764dd8){const _0x15987a=a119_0x543d87,_0x51c564=new Set([_0x15987a(0x107)]);for(const _0x40cebb of GLOBAL_FLAGS){_0x51c564[_0x15987a(0xfc)](_0x40cebb[_0x15987a(0x113)]),_0x51c564[_0x15987a(0xfc)](toKebab(_0x40cebb[_0x15987a(0x112)]));}for(const _0x106de6 of _0x1ad5e6[_0x15987a(0xf5)]??[]){_0x51c564['add'](_0x106de6['name']);}for(const [_0x3814a2,_0x5ceb48]of Object[_0x15987a(0x10c)](_0x764dd8)){const _0x48b62f=toKebab(_0x3814a2);if(_0x51c564[_0x15987a(0xff)](_0x48b62f))continue;if(_0x5ceb48===![]&&_0x51c564[_0x15987a(0xff)](_0x15987a(0x115)+_0x48b62f))continue;if(_0x1ad5e6[_0x15987a(0x10b)]===_0x15987a(0x102)&&_0x1ad5e6[_0x15987a(0x105)]===_0x15987a(0x106)&&FILTER_BODY_FIELDS['has'](_0x48b62f))throw CliErrors[_0x15987a(0xf4)]('--'+_0x48b62f+_0x15987a(0xf8)+CLI_BIN_NAME+'\x20data\x20filter`.','Put\x20where,\x20select,\x20orderBy,\x20currentPage,\x20and\x20pageSize\x20inside\x20one\x20--params\x20JSON\x20object.\x20'+(_0x15987a(0x108)+CLI_BIN_NAME+_0x15987a(0x109))+('\x27'+JSON[_0x15987a(0x114)]({'where':{'status':{'$eq':_0x15987a(0x10d)}},'orderBy':[{'id':_0x15987a(0x101)}],'currentPage':0x1,'pageSize':0x14})+'\x27'));throw CliErrors[_0x15987a(0xf4)](_0x15987a(0x117)+_0x48b62f+'\x20for\x20`'+CLI_BIN_NAME+'\x20'+_0x1ad5e6['service']+'\x20'+_0x1ad5e6[_0x15987a(0x105)]+'`.','Run\x20`'+CLI_BIN_NAME+'\x20'+_0x1ad5e6[_0x15987a(0x10b)]+'\x20'+_0x1ad5e6[_0x15987a(0x105)]+_0x15987a(0xf9));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a120_0x23ec(){var _0x2650d6=['6730497UMcCNS','2136824NKDZev','80694FcmZnV','11EyEHaj','630852CyiMmU','516230ptDBLb','1025517HHBqwd','613728HjYYbA','28cfmuIR','10moHMop'];a120_0x23ec=function(){return _0x2650d6;};return a120_0x23ec();}(function(_0x236978,_0x460fbb){var _0x3c12ca=a120_0x3d9b,_0x36a43b=_0x236978();while(!![]){try{var _0x1df466=parseInt(_0x3c12ca(0x172))/0x1*(parseInt(_0x3c12ca(0x171))/0x2)+parseInt(_0x3c12ca(0x16b))/0x3+parseInt(_0x3c12ca(0x16c))/0x4+-parseInt(_0x3c12ca(0x16a))/0x5+parseInt(_0x3c12ca(0x173))/0x6*(parseInt(_0x3c12ca(0x16d))/0x7)+-parseInt(_0x3c12ca(0x170))/0x8+parseInt(_0x3c12ca(0x16f))/0x9*(-parseInt(_0x3c12ca(0x16e))/0xa);if(_0x1df466===_0x460fbb)break;else _0x36a43b['push'](_0x36a43b['shift']());}catch(_0x2360d3){_0x36a43b['push'](_0x36a43b['shift']());}}}(a120_0x23ec,0x3af42));function a120_0x3d9b(_0x1f16e3,_0x160c80){_0x1f16e3=_0x1f16e3-0x16a;var _0x23ec03=a120_0x23ec();var _0x3d9bbc=_0x23ec03[_0x1f16e3];return _0x3d9bbc;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4fa545,_0x5b3c38){const _0x34de7e=a121_0x42ed,_0x5ad4be=_0x4fa545();while(!![]){try{const _0x53afb9=parseInt(_0x34de7e(0x1c9))/0x1*(-parseInt(_0x34de7e(0x1bf))/0x2)+-parseInt(_0x34de7e(0x1b7))/0x3*(parseInt(_0x34de7e(0x1af))/0x4)+-parseInt(_0x34de7e(0x1cd))/0x5+parseInt(_0x34de7e(0x1bb))/0x6*(parseInt(_0x34de7e(0x1b6))/0x7)+-parseInt(_0x34de7e(0x1b9))/0x8+-parseInt(_0x34de7e(0x1d2))/0x9+parseInt(_0x34de7e(0x1b3))/0xa*(parseInt(_0x34de7e(0x1c2))/0xb);if(_0x53afb9===_0x5b3c38)break;else _0x5ad4be['push'](_0x5ad4be['shift']());}catch(_0x332aa0){_0x5ad4be['push'](_0x5ad4be['shift']());}}}(a121_0x5af1,0x8cb63));import{CLI_BIN_NAME}from'../constant/cli.js';function a121_0x5af1(){const _0x45424f=['push','\x20\x20\x20Continue?\x20[y/N]\x20','schedule-id','⚠\x20\x20High-risk\x20operation:\x20','6000282biCjwT','affectedRecords','code','626408nBDhuL','description','\x20[REDACTED]','cron','35830aBdzaT','scheduled-at','params=','42Ajyvzg','9KOVSQk','schedule-id=','2797288SLNcSV','title','929262QbFbvL','join','code=','service','6830SgPUMg','title=','channel','9229ATnuPJ','commandLabel','scheduled-at=','id=','length','entries','kind','305xBnmUR','name','stringify','params','4156520ZFRnja'];a121_0x5af1=function(){return _0x45424f;};return a121_0x5af1();}import{isSensitiveFlagName}from'../utils/redaction.js';export function buildConfirmationLines(_0x1d4a93,_0x43725c,_0x277973){const _0xe0676a=a121_0x42ed,_0x29fc70=buildConfirmationContext(_0x1d4a93,_0x43725c,_0x277973),_0x3d7495=[_0xe0676a(0x1d1)+_0x29fc70[_0xe0676a(0x1c3)]];return _0x29fc70[_0xe0676a(0x1b0)]&&_0x3d7495[_0xe0676a(0x1ce)]('\x20\x20\x20'+_0x29fc70[_0xe0676a(0x1b0)]),_0x29fc70[_0xe0676a(0x1ad)]&&_0x3d7495[_0xe0676a(0x1ce)]('\x20\x20\x20Affected:\x20'+_0x29fc70['affectedRecords']),_0x3d7495[_0xe0676a(0x1ce)](_0xe0676a(0x1cf)),_0x3d7495;}export function reconstructCommandArgv(_0x5d2fea,_0x39315c){const _0x59587d=a121_0x42ed,_0x58d239=[CLI_BIN_NAME,_0x5d2fea[_0x59587d(0x1be)],_0x5d2fea['command']];for(const [_0x549e9a,_0x4ef388]of Object[_0x59587d(0x1c7)](_0x39315c)){if(_0x4ef388===!![])_0x58d239[_0x59587d(0x1ce)]('--'+_0x549e9a);else{if(isSensitiveFlagName(_0x549e9a)&&_0x4ef388!==![]&&_0x4ef388!==undefined&&_0x4ef388!=='')_0x58d239[_0x59587d(0x1ce)]('--'+_0x549e9a+_0x59587d(0x1b1));else _0x4ef388!==![]&&_0x4ef388!==undefined&&_0x4ef388!==''&&_0x58d239['push']('--'+_0x549e9a+'\x20'+JSON[_0x59587d(0x1cb)](_0x4ef388));}}return _0x58d239[_0x59587d(0x1ce)]('--yes'),_0x58d239['join']('\x20');}function buildConfirmationContext(_0x532820,_0xf68e4,_0x47486f){const _0x5726d3=a121_0x42ed,_0x10c7ea=extractAffectedRecords(_0x47486f);return{'commandLabel':_0xf68e4,'description':_0x532820[_0x5726d3(0x1b0)],'affectedRecords':_0x10c7ea};}function a121_0x42ed(_0x4579d1,_0x177105){_0x4579d1=_0x4579d1-0x1ad;const _0x5af141=a121_0x5af1();let _0x42eddf=_0x5af141[_0x4579d1];return _0x42eddf;}function extractAffectedRecords(_0x4ee715){const _0x4bf4f5=a121_0x42ed,_0x1f8d65=[];if(_0x4ee715[_0x4bf4f5(0x1ae)])_0x1f8d65[_0x4bf4f5(0x1ce)](_0x4bf4f5(0x1bd)+_0x4ee715[_0x4bf4f5(0x1ae)]);if(_0x4ee715['id'])_0x1f8d65[_0x4bf4f5(0x1ce)](_0x4bf4f5(0x1c5)+_0x4ee715['id']);if(_0x4ee715[_0x4bf4f5(0x1d0)])_0x1f8d65[_0x4bf4f5(0x1ce)](_0x4bf4f5(0x1b8)+_0x4ee715['schedule-id']);if(_0x4ee715[_0x4bf4f5(0x1ca)])_0x1f8d65['push']('name='+_0x4ee715[_0x4bf4f5(0x1ca)]);if(_0x4ee715[_0x4bf4f5(0x1ba)])_0x1f8d65['push'](_0x4bf4f5(0x1c0)+_0x4ee715[_0x4bf4f5(0x1ba)]);if(_0x4ee715[_0x4bf4f5(0x1c8)])_0x1f8d65[_0x4bf4f5(0x1ce)]('kind='+_0x4ee715['kind']);if(_0x4ee715[_0x4bf4f5(0x1b2)])_0x1f8d65[_0x4bf4f5(0x1ce)]('cron='+_0x4ee715[_0x4bf4f5(0x1b2)]);if(_0x4ee715['scheduled-at'])_0x1f8d65[_0x4bf4f5(0x1ce)](_0x4bf4f5(0x1c4)+_0x4ee715[_0x4bf4f5(0x1b4)]);if(_0x4ee715[_0x4bf4f5(0x1c1)])_0x1f8d65[_0x4bf4f5(0x1ce)]('channel='+_0x4ee715[_0x4bf4f5(0x1c1)]);if(_0x4ee715[_0x4bf4f5(0x1cc)])_0x1f8d65[_0x4bf4f5(0x1ce)](_0x4bf4f5(0x1b5)+_0x4ee715[_0x4bf4f5(0x1cc)]);return _0x1f8d65[_0x4bf4f5(0x1c6)]>0x0?_0x1f8d65[_0x4bf4f5(0x1bc)](',\x20'):undefined;}
|
|
@@ -1,24 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview Maps SDK errors to user-facing CLI errors.
|
|
3
|
-
*
|
|
4
|
-
* Why this mapping layer exists: the `@lovrabet/sdk` throws `LovrabetError` instances
|
|
5
|
-
* whose `message` field contains internal technical details (stack traces, internal
|
|
6
|
-
* codes) unsuitable for end users. The SDK also surfaces a `description` field that
|
|
7
|
-
* contains the human-readable message set by the API team.
|
|
8
|
-
*
|
|
9
|
-
* This function extracts `description` (when available and non-empty) and uses it
|
|
10
|
-
* as the user-facing message, falling back to `message` only when `description`
|
|
11
|
-
* is absent. Rate-limit failures are mapped to the retryable `rate_limited` contract;
|
|
12
|
-
* other SDK failures retain the existing validation mapping.
|
|
13
|
-
*
|
|
14
|
-
* Design decision: non-LovrabetError errors pass through unchanged. This preserves
|
|
15
|
-
* stack traces and error types for unexpected errors, which is better for debugging
|
|
16
|
-
* than wrapping everything in a generic CLI error.
|
|
17
|
-
*/
|
|
1
|
+
/** Maps SDK failures to the CLI error contract without confusing HTTP 401 with an invalid AK. */
|
|
18
2
|
/**
|
|
19
3
|
* Maps any error thrown during command execution to a user-facing CLI error.
|
|
20
4
|
*
|
|
21
5
|
* - Rate-limited `LovrabetError` → retryable `rate_limited` `CliError`
|
|
6
|
+
* - Runtime 202 / 201 → permission_denied / auth_required with stable English guidance
|
|
22
7
|
* - Other `LovrabetError` → validation `CliError` with `description` as the message
|
|
23
8
|
* - Everything else → passed through unchanged (preserves stack trace)
|
|
24
9
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xf4167f,_0x24dc82){const _0x5b0e5f=a122_0x3562,_0xfe01a1=_0xf4167f();while(!![]){try{const _0x5ed368=parseInt(_0x5b0e5f(0x198))/0x1+-parseInt(_0x5b0e5f(0x1a4))/0x2+parseInt(_0x5b0e5f(0x1a8))/0x3*(-parseInt(_0x5b0e5f(0x19c))/0x4)+parseInt(_0x5b0e5f(0x1a0))/0x5+-parseInt(_0x5b0e5f(0x19e))/0x6+-parseInt(_0x5b0e5f(0x19f))/0x7*(-parseInt(_0x5b0e5f(0x1a7))/0x8)+-parseInt(_0x5b0e5f(0x199))/0x9*(-parseInt(_0x5b0e5f(0x1a5))/0xa);if(_0x5ed368===_0x24dc82)break;else _0xfe01a1['push'](_0xfe01a1['shift']());}catch(_0x2fd1c9){_0xfe01a1['push'](_0xfe01a1['shift']());}}}(a122_0x4d97,0x65102));function a122_0x3562(_0x3f004a,_0x512e69){_0x3f004a=_0x3f004a-0x196;const _0x4d975d=a122_0x4d97();let _0x35621a=_0x4d975d[_0x3f004a];return _0x35621a;}import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';import{createAccessError}from'../framework/access-error.js';function a122_0x4d97(){const _0x48bcdc=['3422184jVXnDW','224SMvuBO','3916945QLmMhb','Request\x20rejected\x20(HTTP\x20401).','response','string','322698RxxHJL','10xeZEgu','status','74112QMPmgS','571161yvHMAO','message','trim','63643ZohpAD','1733166luOfCF','code','description','4YwqSJo','validation'];a122_0x4d97=function(){return _0x48bcdc;};return a122_0x4d97();}import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';export function mapUserFacingExecuteError(_0x3eefb9){const _0x2cb751=a122_0x3562;if(_0x3eefb9 instanceof LovrabetError){const _0x176894=userFacingLovrabetMessage(_0x3eefb9),_0x2910dd=_0x3eefb9,_0xba8d59=createRateLimitError({'status':_0x2910dd[_0x2cb751(0x1a6)],'errorCode':_0x2910dd[_0x2cb751(0x19a)],'message':_0x176894,'retryAfter':readRetryAfter(_0x2910dd[_0x2cb751(0x1a2)]?.['headers'])??readRetryAfterSeconds(_0x2910dd[_0x2cb751(0x1a2)])});return createAccessError(_0x2910dd[_0x2cb751(0x1a2)],_0x2910dd['code'])??_0xba8d59??(Number(_0x2910dd[_0x2cb751(0x1a6)])===0x191?CliErrors['apiError'](_0x2cb751(0x1a1),'The\x20response\x20does\x20not\x20identify\x20whether\x20authentication\x20or\x20permission\x20checks\x20failed.'):CliErrors[_0x2cb751(0x19d)](_0x176894));}return _0x3eefb9;}function userFacingLovrabetMessage(_0x1451af){const _0x563e84=a122_0x3562,_0x58c653=_0x1451af[_0x563e84(0x19b)];if(_0x58c653!==undefined&&_0x58c653!==null){if(typeof _0x58c653===_0x563e84(0x1a3)&&_0x58c653[_0x563e84(0x197)]())return _0x58c653[_0x563e84(0x197)]();try{return JSON['stringify'](_0x58c653);}catch{}}return _0x1451af[_0x563e84(0x196)];}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0xe0fed8,_0x54530a){const _0x519da2=a121_0x291a,_0x3f5d5f=_0xe0fed8();while(!![]){try{const _0x3e1af5=parseInt(_0x519da2(0x197))/0x1+-parseInt(_0x519da2(0x184))/0x2*(-parseInt(_0x519da2(0x161))/0x3)+parseInt(_0x519da2(0x19d))/0x4*(-parseInt(_0x519da2(0x198))/0x5)+-parseInt(_0x519da2(0x177))/0x6+-parseInt(_0x519da2(0x15e))/0x7*(parseInt(_0x519da2(0x15c))/0x8)+-parseInt(_0x519da2(0x18b))/0x9+parseInt(_0x519da2(0x175))/0xa*(parseInt(_0x519da2(0x172))/0xb);if(_0x3e1af5===_0x54530a)break;else _0x3f5d5f['push'](_0x3f5d5f['shift']());}catch(_0x1e5b18){_0x3f5d5f['push'](_0x3f5d5f['shift']());}}}(a121_0x2a33,0x363c7));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain,getRuntimeDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{assertKnownCommandFlags}from'../framework/raw-flags.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{assertCliVersionSupported,checkCliVersion}from'../utils/cli-version-check.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x3470cd){const _0x3ece4f=a121_0x291a;return void _0x3470cd,AUTH_MODE[_0x3ece4f(0x15b)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x5061ff,_0x3bce4a){const _0x206f10=a121_0x291a,_0x5f3ae3=typeof _0x3bce4a['app']===_0x206f10(0x193)&&_0x3bce4a[_0x206f10(0x16b)][_0x206f10(0x180)]();return{'rawFlags':_0x3bce4a,'appCode':_0x5061ff[_0x206f10(0x17b)]||productEnv(_0x206f10(0x16c))||(_0x5f3ae3?undefined:readAppCodeFromConfig()),'appCodeSource':_0x5061ff[_0x206f10(0x195)],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x3bce4a),'defaultFormat':_0x5061ff[_0x206f10(0x174)],'defaultPageSize':_0x5061ff[_0x206f10(0x178)],'defaultVerbose':_0x5061ff[_0x206f10(0x179)],'riskLevel':_0x5061ff[_0x206f10(0x154)],'nativeToolAvailable':_0x5061ff[_0x206f10(0x165)],'accessKey':_0x5061ff[_0x206f10(0x189)],'env':_0x5061ff['env'],'mergedCli':{'defaultApp':_0x5061ff['defaultApp'],'currentApp':_0x5061ff[_0x206f10(0x15a)],'appCode':_0x5061ff['appCode']}};}export function createLovrabetRunnerAdapter(_0x27fcb6={}){const _0x59906f=a121_0x291a,_0x4bc93e={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x59906f(0x16a)](_0x267ae7=>PIPELINE_FLAG_NAMES[_0x59906f(0x181)](_0x267ae7[_0x59906f(0x156)]))['map'](({name:_0x109a5b,type:_0x42f618,description:_0x42d3d2})=>({'name':_0x109a5b,'type':_0x42f618,'description':_0x42d3d2})),'formatOutput':_0x27fcb6['formatOutput']??formatOutput,'getCommandLabel'(_0x1a111c){const _0x52bed7=_0x59906f;return CLI_BIN_NAME+'\x20'+_0x1a111c[_0x52bed7(0x19a)]+'\x20'+_0x1a111c[_0x52bed7(0x185)];},'riskPolicy':{'onViolation'(_0x139489,{def:_0x24c997,env:_0x437e32}){const _0x4cef53=_0x59906f;if(shouldRouteWriteToNativeTool(_0x24c997,_0x437e32))return;console[_0x4cef53(0x192)](_0x139489);},'createError'(_0x17e146,{def:_0x3db7c7,env:_0x3c173e}){const _0x29cec1=_0x59906f;if(shouldRouteWriteToNativeTool(_0x3db7c7,_0x3c173e))return CliErrors[_0x29cec1(0x199)](CLI_BIN_NAME+'\x20'+_0x3db7c7[_0x29cec1(0x19a)]+'\x20'+_0x3db7c7[_0x29cec1(0x185)]);return CliErrors[_0x29cec1(0x188)](_0x17e146);}},async 'prepare'(_0x5671c1,_0x1bbb10){const _0x28c6d8=_0x59906f,_0x4ba15a=resolveAuthMode(_0x1bbb10);if(_0x5671c1[_0x28c6d8(0x183)]!==![]){if(!_0x1bbb10[_0x28c6d8(0x189)])throw CliErrors['authRequired']('Set\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x28c6d8(0x191)]+'\x20or\x20pass\x20'+productEnvName(_0x28c6d8(0x17e))+'.');const {setActiveAK:_0x360c84}=await import(_0x28c6d8(0x186));_0x360c84(_0x1bbb10[_0x28c6d8(0x189)]);}let _0x412b8c='';if(_0x5671c1['requiresAppCode']!==![]){_0x412b8c=_0x1bbb10[_0x28c6d8(0x17b)]??'',_0x412b8c=await resolveExplicitAppName(_0x5671c1,_0x1bbb10,_0x412b8c);if(!_0x412b8c){await assertSelectedAppNameIsRuntimeAccessible(_0x5671c1,_0x1bbb10);throw CliErrors[_0x28c6d8(0x166)](_0x28c6d8(0x157)+PRODUCT_CONFIG[_0x28c6d8(0x191)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x5671c1,_0x1bbb10,_0x412b8c);}if(_0x412b8c){const {initSdkClient:_0x527e7d}=await import(_0x28c6d8(0x18c));_0x527e7d({'appCode':_0x412b8c,'env':_0x1bbb10[_0x28c6d8(0x194)]??'production','runtimeDomain':_0x1bbb10[_0x28c6d8(0x173)],'accessKey':_0x1bbb10[_0x28c6d8(0x189)],'authMode':_0x4ba15a}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x1bbb10['defaultVerbose']},'numbers':{'pagesize':_0x1bbb10[_0x28c6d8(0x170)]}},'extras':{'appCode':_0x412b8c,'cookie':'','apiDomain':_0x1bbb10[_0x28c6d8(0x155)],'apiDir':'','accessKey':_0x1bbb10['accessKey'],'envName':_0x1bbb10[_0x28c6d8(0x194)],'mergedCli':_0x1bbb10[_0x28c6d8(0x17c)]}};},'confirmHighRisk':_0x27fcb6[_0x59906f(0x15d)]??(async({def:_0x2396e2,env:_0x51ab88,flags:_0x569950,commandLabel:_0x2a53b7})=>{const _0x3d487c=_0x59906f;if(_0x51ab88[_0x3d487c(0x164)]){const _0x10989b=reconstructCommandArgv(_0x2396e2,_0x569950);throw CliErrors['validation']('High-risk\x20operation\x20`'+_0x2a53b7+_0x3d487c(0x163)+(_0x3d487c(0x190)+_0x10989b));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x2396e2,_0x2a53b7,_0x569950),'createCancelledError':_0x2b3b3f=>CliErrors[_0x3d487c(0x188)](_0x2b3b3f)});}),'mapDryRunError'(_0x1704a5){return mapUserFacingExecuteError(_0x1704a5);},'mapExecuteError'(_0x3bd465){return mapUserFacingExecuteError(_0x3bd465);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x4bc93e;}function shouldRouteWriteToNativeTool(_0x5875d1,_0x2e0999){const _0x12f29e=a121_0x291a;return _0x2e0999[_0x12f29e(0x165)]===!![]&&(_0x5875d1[_0x12f29e(0x19c)]===_0x12f29e(0x18d)||_0x5875d1['risk']===_0x12f29e(0x159));}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x111bfd=a121_0x291a;try{if(sdkClientInitialized){const {clearSdkClient:_0x280361}=await import(_0x111bfd(0x18c));_0x280361();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x259729}=await import(_0x111bfd(0x186));_0x259729();}}async function resolveExplicitAppName(_0x1bb0c0,_0x1cc74a,_0x594eaa){const _0x3a8d9a=a121_0x291a;if(_0x1bb0c0[_0x3a8d9a(0x18f)]===![])return _0x594eaa;const _0x29b0cf=typeof _0x1cc74a['rawFlags'][_0x3a8d9a(0x16b)]===_0x3a8d9a(0x193)?_0x1cc74a[_0x3a8d9a(0x17d)][_0x3a8d9a(0x16b)]['trim']():'';if(!_0x29b0cf)return _0x594eaa;const _0x39d0d9=typeof _0x1cc74a[_0x3a8d9a(0x17d)][_0x3a8d9a(0x158)]===_0x3a8d9a(0x193)&&_0x1cc74a['rawFlags']['appcode']['trim']()||productEnv(_0x3a8d9a(0x16c));if(_0x39d0d9||_0x1cc74a[_0x3a8d9a(0x195)]==='local-alias')return _0x594eaa;const {getRemoteAppList:_0x4a16d9}=await import('../commands/app/remote-source.js'),_0x2cefc8=await _0x4a16d9({'env':_0x1cc74a[_0x3a8d9a(0x194)]??_0x3a8d9a(0x17f),'accessKey':_0x1cc74a['accessKey']}),_0x2e07bd=findAppByName(_0x2cefc8[_0x3a8d9a(0x171)],_0x29b0cf);if(_0x2e07bd&&!isRuntimeAccessibleApp(_0x2e07bd))throw runtimeInaccessibleAppError(_0x2e07bd,'\x22'+_0x29b0cf+'\x22');const _0x54e5b8=_0x2e07bd?.[_0x3a8d9a(0x17b)]?.[_0x3a8d9a(0x180)]();if(_0x54e5b8)return _0x54e5b8;throw CliErrors[_0x3a8d9a(0x182)]('Unknown\x20app:\x20'+_0x29b0cf,_0x3a8d9a(0x176)+CLI_BIN_NAME+_0x3a8d9a(0x168)+_0x29b0cf+_0x3a8d9a(0x19b)+PRODUCT_CONFIG[_0x3a8d9a(0x191)]+'.');}function a121_0x2a33(){const _0xd8bf32=['_notice','../commands/app/remote-source.js','update','defaultPageSize','items','72809PDFKav','runtimeDomain','format','940jhejgp','Run\x20`','963684mybSxE','pageSize','verbose','schema','appCode','mergedCli','rawFlags','ACCESS_KEY','production','trim','has','validation','requiresAuth','6jJagQY','command','../core/api-client.js','execute','cancelled','accessKey','includes','1546236CiZtHV','../core/sdk-client.js','write','appcode\x20\x22','requiresAppCode','\x20\x20To\x20proceed:\x20','newConfigFileName','error','string','env','appCodeSource','defaultApp','178874bGqAjx','7565PhuPoW','nativeToolRequired','service','.appcode\x20to\x20','risk','364xqwssg','riskLevel','apiDomain','name','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','appcode','high-risk-write','currentApp','ClientAk','54304LGFgyw','confirmHighRisk','329gduUmR','object','doctor','210228IUPmUJ','nonInteractive','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','isNonInteractive','nativeToolAvailable','configMissing','pretty','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','cli-skill','filter','app','APPCODE'];a121_0x2a33=function(){return _0xd8bf32;};return a121_0x2a33();}async function assertSelectedAppNameIsRuntimeAccessible(_0x2f5943,_0x5184ea){const _0x261d60=a121_0x291a;if(_0x2f5943[_0x261d60(0x18f)]===![]||!_0x5184ea['accessKey'])return;const _0x1310e1=(typeof _0x5184ea['rawFlags'][_0x261d60(0x16b)]===_0x261d60(0x193)&&_0x5184ea[_0x261d60(0x17d)]['app'][_0x261d60(0x180)]()?_0x5184ea['rawFlags'][_0x261d60(0x16b)]:_0x5184ea[_0x261d60(0x17c)]?.[_0x261d60(0x15a)]??_0x5184ea[_0x261d60(0x17c)]?.[_0x261d60(0x196)])?.[_0x261d60(0x180)]();if(!_0x1310e1)return;const {getRemoteAppList:_0x39aa3d}=await import(_0x261d60(0x16e)),_0x5c4259=await _0x39aa3d({'env':_0x5184ea[_0x261d60(0x194)]??_0x261d60(0x17f),'accessKey':_0x5184ea[_0x261d60(0x189)]}),_0x4a82a0=findAppByName(_0x5c4259[_0x261d60(0x171)],_0x1310e1);if(_0x4a82a0&&!isRuntimeAccessibleApp(_0x4a82a0))throw runtimeInaccessibleAppError(_0x4a82a0,'\x22'+_0x1310e1+'\x22');}function a121_0x291a(_0xc0b541,_0x16afdb){_0xc0b541=_0xc0b541-0x154;const _0x2a33bc=a121_0x2a33();let _0x291a75=_0x2a33bc[_0xc0b541];return _0x291a75;}async function assertAppCodeIsRuntimeAccessible(_0x242441,_0x4aed12,_0x2ef0b4){const _0x5ccfe6=a121_0x291a;if(_0x242441['requiresAppCode']===![]||!_0x4aed12[_0x5ccfe6(0x189)])return;const {getRemoteAppList:_0x3df398}=await import(_0x5ccfe6(0x16e)),_0x5263d3=await _0x3df398({'env':_0x4aed12[_0x5ccfe6(0x194)]??_0x5ccfe6(0x17f),'accessKey':_0x4aed12[_0x5ccfe6(0x189)]}),_0x445a58=findAppByCode(_0x5263d3[_0x5ccfe6(0x171)],_0x2ef0b4);if(_0x445a58&&!isRuntimeAccessibleApp(_0x445a58))throw runtimeInaccessibleAppError(_0x445a58,_0x5ccfe6(0x18e)+_0x2ef0b4+'\x22');}export async function runCommand(_0x9ecd83,_0x2f1d21,_0x2538af=terminalRunnerAdapter){assertKnownCommandFlags(_0x9ecd83,_0x2f1d21['rawFlags']),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x9ecd83)?withVersionPolicy(_0x9ecd83):_0x9ecd83,_0x2f1d21,_0x2538af);}function shouldApplyVersionPolicy(_0x3d50a6){const _0x3ae26d=a121_0x291a;if([_0x3ae26d(0x16f),_0x3ae26d(0x17a),_0x3ae26d(0x160)][_0x3ae26d(0x18a)](_0x3d50a6[_0x3ae26d(0x19a)]))return![];return!(_0x3d50a6['service']===_0x3ae26d(0x169)&&_0x3d50a6[_0x3ae26d(0x185)]==='install');}function withVersionPolicy(_0x5428bc){return{..._0x5428bc,async 'execute'(_0x2f5a96){const _0x8530d4=a121_0x291a,_0xa57245=await checkCliVersion();assertCliVersionSupported(_0xa57245);const _0x22fe0b=shouldResolveUpdateNotice(_0x2f5a96)?resolveLatestUpdateNotice(_0xa57245)['catch'](()=>null):Promise['resolve'](null),_0x3d90c6=await _0x5428bc[_0x8530d4(0x187)](_0x2f5a96);return attachUpdateNotice(_0x3d90c6,await _0x22fe0b);}};}function shouldResolveUpdateNotice(_0x18ddf2){const _0x2b8b42=a121_0x291a;return _0x18ddf2[_0x2b8b42(0x174)]===_0x2b8b42(0x167)&&!_0x18ddf2[_0x2b8b42(0x162)];}function attachUpdateNotice(_0x38f66d,_0x162b09){const _0x278ddb=a121_0x291a;if(!_0x162b09||!_0x38f66d||typeof _0x38f66d!==_0x278ddb(0x15f))return _0x38f66d;const _0x33e01c=_0x38f66d,_0xc1a303=typeof _0x33e01c['_notice']===_0x278ddb(0x15f)&&_0x33e01c[_0x278ddb(0x16d)]!==null?_0x33e01c[_0x278ddb(0x16d)]:{};return{..._0x33e01c,'_notice':{..._0xc1a303,'update':_0x162b09}};}
|
|
1
|
+
(function(_0x186bc6,_0x21d385){const _0x22aeb0=a123_0x4a2d,_0x4d6d24=_0x186bc6();while(!![]){try{const _0x25d6e6=-parseInt(_0x22aeb0(0x14b))/0x1*(-parseInt(_0x22aeb0(0x150))/0x2)+-parseInt(_0x22aeb0(0x146))/0x3+parseInt(_0x22aeb0(0x13b))/0x4*(-parseInt(_0x22aeb0(0x142))/0x5)+-parseInt(_0x22aeb0(0x136))/0x6*(parseInt(_0x22aeb0(0x12d))/0x7)+parseInt(_0x22aeb0(0x131))/0x8*(-parseInt(_0x22aeb0(0x13d))/0x9)+parseInt(_0x22aeb0(0x13e))/0xa*(-parseInt(_0x22aeb0(0x120))/0xb)+parseInt(_0x22aeb0(0x11f))/0xc*(parseInt(_0x22aeb0(0x157))/0xd);if(_0x25d6e6===_0x21d385)break;else _0x4d6d24['push'](_0x4d6d24['shift']());}catch(_0x10f193){_0x4d6d24['push'](_0x4d6d24['shift']());}}}(a123_0x4498,0x852da));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';function a123_0x4a2d(_0x2739f6,_0x595749){_0x2739f6=_0x2739f6-0x111;const _0x449870=a123_0x4498();let _0x4a2d6d=_0x449870[_0x2739f6];return _0x4a2d6d;}import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain,getRuntimeDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{assertKnownCommandFlags}from'../framework/raw-flags.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function a123_0x4498(){const _0xd8578d=['../core/sdk-client.js','requiresAppCode','52764907hZcqdx','write','mergedCli','trim','local-alias','appCodeSource','ClientAk','\x20\x20To\x20proceed:\x20','service','has','app','cancelled','runtimeDomain','string','rawFlags','defaultApp','12eyavRM','4497493XuyjcK','Run\x20`','defaultVerbose','\x20or\x20pass\x20','cli-skill','filter','apiDomain','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','error','appcode\x20\x22','_notice','resolve','command','2013158FkEUjn','pretty','configMissing','nonInteractive','5814552VYDzaL','verbose','currentApp','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','accessKey','6kRpGmw','riskLevel','production','requiresAuth','newConfigFileName','882676rBscCn','includes','9YCmQbz','20XmEkei','APPCODE','install','object','20MWeVmg','appCode','appcode','items','2875728WZuUEZ','risk','format','../commands/app/remote-source.js','doctor','16005rVkBZx','nativeToolAvailable','ACCESS_KEY','pageSize','.appcode\x20to\x20','20KvvdNV','authRequired','high-risk-write','../core/api-client.js','env'];a123_0x4498=function(){return _0xd8578d;};return a123_0x4498();}import{assertCliVersionSupported,checkCliVersion}from'../utils/cli-version-check.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x58c3d4){const _0x1900e8=a123_0x4a2d;return void _0x58c3d4,AUTH_MODE[_0x1900e8(0x115)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x1e2f10,_0x5d020f){const _0x5e8b65=a123_0x4a2d,_0x23c67f=typeof _0x5d020f[_0x5e8b65(0x119)]===_0x5e8b65(0x11c)&&_0x5d020f['app'][_0x5e8b65(0x112)]();return{'rawFlags':_0x5d020f,'appCode':_0x1e2f10[_0x5e8b65(0x143)]||productEnv(_0x5e8b65(0x13f))||(_0x23c67f?undefined:readAppCodeFromConfig()),'appCodeSource':_0x1e2f10[_0x5e8b65(0x114)],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x5d020f),'defaultFormat':_0x1e2f10[_0x5e8b65(0x148)],'defaultPageSize':_0x1e2f10[_0x5e8b65(0x14e)],'defaultVerbose':_0x1e2f10[_0x5e8b65(0x132)],'riskLevel':_0x1e2f10[_0x5e8b65(0x137)],'nativeToolAvailable':_0x1e2f10[_0x5e8b65(0x14c)],'accessKey':_0x1e2f10[_0x5e8b65(0x135)],'env':_0x1e2f10[_0x5e8b65(0x154)],'mergedCli':{'defaultApp':_0x1e2f10[_0x5e8b65(0x11e)],'currentApp':_0x1e2f10[_0x5e8b65(0x133)],'appCode':_0x1e2f10[_0x5e8b65(0x143)]}};}export function createLovrabetRunnerAdapter(_0x4038d9={}){const _0x1756eb=a123_0x4a2d,_0x4c858d={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x1756eb(0x125)](_0x3747f2=>PIPELINE_FLAG_NAMES[_0x1756eb(0x118)](_0x3747f2['name']))['map'](({name:_0x2dcd73,type:_0xc9f881,description:_0x2a0d8e})=>({'name':_0x2dcd73,'type':_0xc9f881,'description':_0x2a0d8e})),'formatOutput':_0x4038d9['formatOutput']??formatOutput,'getCommandLabel'(_0x17ae31){const _0x5329c2=_0x1756eb;return CLI_BIN_NAME+'\x20'+_0x17ae31[_0x5329c2(0x117)]+'\x20'+_0x17ae31['command'];},'riskPolicy':{'onViolation'(_0x2ed856,{def:_0x2dc352,env:_0x3e10ce}){const _0x5dce8d=_0x1756eb;if(shouldRouteWriteToNativeTool(_0x2dc352,_0x3e10ce))return;console[_0x5dce8d(0x128)](_0x2ed856);},'createError'(_0x5afed3,{def:_0x5808d6,env:_0x4d1018}){const _0x40fce8=_0x1756eb;if(shouldRouteWriteToNativeTool(_0x5808d6,_0x4d1018))return CliErrors['nativeToolRequired'](CLI_BIN_NAME+'\x20'+_0x5808d6[_0x40fce8(0x117)]+'\x20'+_0x5808d6['command']);return CliErrors[_0x40fce8(0x11a)](_0x5afed3);}},async 'prepare'(_0x1dedcd,_0x5c1ee6){const _0x55493c=_0x1756eb,_0x167c9a=resolveAuthMode(_0x5c1ee6);if(_0x1dedcd[_0x55493c(0x139)]!==![]){if(!_0x5c1ee6['accessKey'])throw CliErrors[_0x55493c(0x151)]('Set\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x55493c(0x13a)]+_0x55493c(0x123)+productEnvName(_0x55493c(0x14d))+'.');const {setActiveAK:_0x58135e}=await import('../core/api-client.js');_0x58135e(_0x5c1ee6[_0x55493c(0x135)]);}let _0x14f998='';if(_0x1dedcd[_0x55493c(0x156)]!==![]){_0x14f998=_0x5c1ee6[_0x55493c(0x143)]??'',_0x14f998=await resolveExplicitAppName(_0x1dedcd,_0x5c1ee6,_0x14f998);if(!_0x14f998){await assertSelectedAppNameIsRuntimeAccessible(_0x1dedcd,_0x5c1ee6);throw CliErrors[_0x55493c(0x12f)]('Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');}await assertAppCodeIsRuntimeAccessible(_0x1dedcd,_0x5c1ee6,_0x14f998);}if(_0x14f998){const {initSdkClient:_0x202441}=await import('../core/sdk-client.js');_0x202441({'appCode':_0x14f998,'env':_0x5c1ee6['env']??_0x55493c(0x138),'runtimeDomain':_0x5c1ee6[_0x55493c(0x11b)],'accessKey':_0x5c1ee6[_0x55493c(0x135)],'authMode':_0x167c9a}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x5c1ee6[_0x55493c(0x122)]},'numbers':{'pagesize':_0x5c1ee6['defaultPageSize']}},'extras':{'appCode':_0x14f998,'cookie':'','apiDomain':_0x5c1ee6[_0x55493c(0x126)],'apiDir':'','accessKey':_0x5c1ee6[_0x55493c(0x135)],'envName':_0x5c1ee6['env'],'mergedCli':_0x5c1ee6['mergedCli']}};},'confirmHighRisk':_0x4038d9['confirmHighRisk']??(async({def:_0x32afbd,env:_0x1a0ea4,flags:_0x18583f,commandLabel:_0x12eff0})=>{const _0x23fef3=_0x1756eb;if(_0x1a0ea4['isNonInteractive']){const _0xd8cf8f=reconstructCommandArgv(_0x32afbd,_0x18583f);throw CliErrors['validation']('High-risk\x20operation\x20`'+_0x12eff0+_0x23fef3(0x134)+(_0x23fef3(0x116)+_0xd8cf8f));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x32afbd,_0x12eff0,_0x18583f),'createCancelledError':_0x35d5de=>CliErrors[_0x23fef3(0x11a)](_0x35d5de)});}),'mapDryRunError'(_0x5aa978){return mapUserFacingExecuteError(_0x5aa978);},'mapExecuteError'(_0x36f9a5){return mapUserFacingExecuteError(_0x36f9a5);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x4c858d;}function shouldRouteWriteToNativeTool(_0x41dd79,_0x4c5efb){const _0x465ce3=a123_0x4a2d;return _0x4c5efb[_0x465ce3(0x14c)]===!![]&&(_0x41dd79[_0x465ce3(0x147)]===_0x465ce3(0x158)||_0x41dd79[_0x465ce3(0x147)]===_0x465ce3(0x152));}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x55048d=a123_0x4a2d;try{if(sdkClientInitialized){const {clearSdkClient:_0x2c59b5}=await import(_0x55048d(0x155));_0x2c59b5();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x1508f8}=await import(_0x55048d(0x153));_0x1508f8();}}async function resolveExplicitAppName(_0x2dc338,_0x2fa75c,_0x532ac4){const _0x2baac7=a123_0x4a2d;if(_0x2dc338[_0x2baac7(0x156)]===![])return _0x532ac4;const _0xc3f7d0=typeof _0x2fa75c['rawFlags'][_0x2baac7(0x119)]===_0x2baac7(0x11c)?_0x2fa75c[_0x2baac7(0x11d)]['app'][_0x2baac7(0x112)]():'';if(!_0xc3f7d0)return _0x532ac4;const _0x5b00cf=typeof _0x2fa75c[_0x2baac7(0x11d)]['appcode']==='string'&&_0x2fa75c[_0x2baac7(0x11d)][_0x2baac7(0x144)][_0x2baac7(0x112)]()||productEnv('APPCODE');if(_0x5b00cf||_0x2fa75c[_0x2baac7(0x114)]===_0x2baac7(0x113))return _0x532ac4;const {getRemoteAppList:_0x4d75dc}=await import(_0x2baac7(0x149)),_0x2dcbea=await _0x4d75dc({'env':_0x2fa75c[_0x2baac7(0x154)]??_0x2baac7(0x138),'accessKey':_0x2fa75c[_0x2baac7(0x135)]}),_0x37a768=findAppByName(_0x2dcbea[_0x2baac7(0x145)],_0xc3f7d0);if(_0x37a768&&!isRuntimeAccessibleApp(_0x37a768))throw runtimeInaccessibleAppError(_0x37a768,'\x22'+_0xc3f7d0+'\x22');const _0x5b1b51=_0x37a768?.[_0x2baac7(0x143)]?.['trim']();if(_0x5b1b51)return _0x5b1b51;throw CliErrors['validation']('Unknown\x20app:\x20'+_0xc3f7d0,_0x2baac7(0x121)+CLI_BIN_NAME+_0x2baac7(0x127)+_0xc3f7d0+_0x2baac7(0x14f)+PRODUCT_CONFIG[_0x2baac7(0x13a)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x3addf5,_0x21a347){const _0x5aa44c=a123_0x4a2d;if(_0x3addf5['requiresAppCode']===![]||!_0x21a347[_0x5aa44c(0x135)])return;const _0x5cb98c=(typeof _0x21a347['rawFlags'][_0x5aa44c(0x119)]===_0x5aa44c(0x11c)&&_0x21a347['rawFlags'][_0x5aa44c(0x119)][_0x5aa44c(0x112)]()?_0x21a347[_0x5aa44c(0x11d)]['app']:_0x21a347[_0x5aa44c(0x111)]?.[_0x5aa44c(0x133)]??_0x21a347[_0x5aa44c(0x111)]?.[_0x5aa44c(0x11e)])?.[_0x5aa44c(0x112)]();if(!_0x5cb98c)return;const {getRemoteAppList:_0x2b3fe9}=await import(_0x5aa44c(0x149)),_0x827a7=await _0x2b3fe9({'env':_0x21a347['env']??'production','accessKey':_0x21a347['accessKey']}),_0x58ca66=findAppByName(_0x827a7[_0x5aa44c(0x145)],_0x5cb98c);if(_0x58ca66&&!isRuntimeAccessibleApp(_0x58ca66))throw runtimeInaccessibleAppError(_0x58ca66,'\x22'+_0x5cb98c+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x34c2d6,_0x4f12f7,_0x8a2a4a){const _0x276bc7=a123_0x4a2d;if(_0x34c2d6['requiresAppCode']===![]||!_0x4f12f7['accessKey'])return;const {getRemoteAppList:_0x1e64d1}=await import('../commands/app/remote-source.js'),_0x233b25=await _0x1e64d1({'env':_0x4f12f7[_0x276bc7(0x154)]??_0x276bc7(0x138),'accessKey':_0x4f12f7['accessKey']}),_0x23c323=findAppByCode(_0x233b25[_0x276bc7(0x145)],_0x8a2a4a);if(_0x23c323&&!isRuntimeAccessibleApp(_0x23c323))throw runtimeInaccessibleAppError(_0x23c323,_0x276bc7(0x129)+_0x8a2a4a+'\x22');}export async function runCommand(_0x529541,_0x3d5ed6,_0x19614e=terminalRunnerAdapter){const _0x100bd7=a123_0x4a2d;assertKnownCommandFlags(_0x529541,_0x3d5ed6[_0x100bd7(0x11d)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x529541)?withVersionPolicy(_0x529541):_0x529541,_0x3d5ed6,_0x19614e);}function shouldApplyVersionPolicy(_0x3f01b8){const _0x4d2b7c=a123_0x4a2d;if(['update','schema',_0x4d2b7c(0x14a)][_0x4d2b7c(0x13c)](_0x3f01b8[_0x4d2b7c(0x117)]))return![];return!(_0x3f01b8['service']===_0x4d2b7c(0x124)&&_0x3f01b8[_0x4d2b7c(0x12c)]===_0x4d2b7c(0x140));}function withVersionPolicy(_0x2ef4d8){return{..._0x2ef4d8,async 'execute'(_0x3f617a){const _0xf362f5=a123_0x4a2d,_0x16226a=await checkCliVersion();assertCliVersionSupported(_0x16226a);const _0x1a2b22=shouldResolveUpdateNotice(_0x3f617a)?resolveLatestUpdateNotice(_0x16226a)['catch'](()=>null):Promise[_0xf362f5(0x12b)](null),_0x163131=await _0x2ef4d8['execute'](_0x3f617a);return attachUpdateNotice(_0x163131,await _0x1a2b22);}};}function shouldResolveUpdateNotice(_0x4b600f){const _0x3441bc=a123_0x4a2d;return _0x4b600f[_0x3441bc(0x148)]===_0x3441bc(0x12e)&&!_0x4b600f[_0x3441bc(0x130)];}function attachUpdateNotice(_0x35acda,_0x10dfcf){const _0x1c35f1=a123_0x4a2d;if(!_0x10dfcf||!_0x35acda||typeof _0x35acda!==_0x1c35f1(0x141))return _0x35acda;const _0x8a309b=_0x35acda,_0x14354d=typeof _0x8a309b['_notice']===_0x1c35f1(0x141)&&_0x8a309b[_0x1c35f1(0x12a)]!==null?_0x8a309b[_0x1c35f1(0x12a)]:{};return{..._0x8a309b,'_notice':{..._0x14354d,'update':_0x10dfcf}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a124_0x2a1e(){const _0x1cc763=['has','none','4783566eedSjv','commands','1535148IGUYqQ','2754038rlRHGI','1QdOuUM','filter','requiresAuth','service','822856yzDwkf','2905917pxQwSF','../commands/registry.js','4638935fhyoKq','auth','map','services','6117400RmAxBm','99inhsmF'];a124_0x2a1e=function(){return _0x1cc763;};return a124_0x2a1e();}(function(_0x5a26cf,_0x845fd1){const _0x46d4c7=a124_0x4ef7,_0xc7a73b=_0x5a26cf();while(!![]){try{const _0x3ff793=parseInt(_0x46d4c7(0x94))/0x1*(parseInt(_0x46d4c7(0x93))/0x2)+-parseInt(_0x46d4c7(0x99))/0x3+parseInt(_0x46d4c7(0x92))/0x4+parseInt(_0x46d4c7(0x8c))/0x5+-parseInt(_0x46d4c7(0x90))/0x6+parseInt(_0x46d4c7(0x9b))/0x7+parseInt(_0x46d4c7(0x98))/0x8*(-parseInt(_0x46d4c7(0x8d))/0x9);if(_0x3ff793===_0x845fd1)break;else _0xc7a73b['push'](_0xc7a73b['shift']());}catch(_0xfac848){_0xc7a73b['push'](_0xc7a73b['shift']());}}}(a124_0x2a1e,0xb7060));import{buildSchemaPayload as a124_0x3a3d2f}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliGitCommit,getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x288455=a124_0x4ef7,{serviceRegistry:_0x432481,findDefinition:_0x1d75da}=await import(_0x288455(0x9a)),_0x37321d=new Set(_0x432481[_0x288455(0x9d)](_0x3a818d=>_0x3a818d[_0x288455(0x97)])),_0xb44d1f=listDynamicServiceEntries()[_0x288455(0x95)](_0x4d6576=>!_0x37321d[_0x288455(0x8e)](_0x4d6576[_0x288455(0x97)])),_0x1d05ed=a124_0x3a3d2f({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x432481,_0xb44d1f),'buildAllFlags':buildAllFlags,'findDefinition':(_0x27bfe2,_0x592edf)=>_0x1d75da(_0x27bfe2,_0x592edf)??findDynamicServiceDefinition(_0x27bfe2,_0x592edf)});return normalizeSchemaPayload(_0x1d05ed);}function a124_0x4ef7(_0x1700fb,_0x36d262){_0x1700fb=_0x1700fb-0x8c;const _0x2a1ee4=a124_0x2a1e();let _0x4ef77b=_0x2a1ee4[_0x1700fb];return _0x4ef77b;}function normalizeSchemaPayload(_0x3eabd8){const _0x5f4122=a124_0x4ef7;return{..._0x3eabd8,'schemaVersion':0x2,'services':_0x3eabd8[_0x5f4122(0x9e)][_0x5f4122(0x9d)](_0x4c7353=>({..._0x4c7353,'commands':_0x4c7353[_0x5f4122(0x91)][_0x5f4122(0x9d)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x7d2262){const _0x5c2ead=a124_0x4ef7,_0x21b3a4=_0x7d2262;return{..._0x7d2262,'auth':_0x21b3a4[_0x5c2ead(0x9c)]??(_0x7d2262[_0x5c2ead(0x96)]?'required':_0x5c2ead(0x8f))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a125_0x1f51(){const _0x2b72fa=['8858610kGcGfx','slice','findIndex','44NiKoAF','8Cgpudi','680MehWTk','30499QCkdUR','508902ZaKOsD','1242Nagevf','service','1034523IormZi','1098EiDDMP','5542640AyXDOo','2331741ATDmhB'];a125_0x1f51=function(){return _0x2b72fa;};return a125_0x1f51();}function a125_0x5e81(_0x10acee,_0x1dd726){_0x10acee=_0x10acee-0x12b;const _0x1f51e0=a125_0x1f51();let _0x5e81b0=_0x1f51e0[_0x10acee];return _0x5e81b0;}(function(_0x13147f,_0x8ae92f){const _0x25d93e=a125_0x5e81,_0x12a04c=_0x13147f();while(!![]){try{const _0x30b74a=-parseInt(_0x25d93e(0x12d))/0x1+-parseInt(_0x25d93e(0x138))/0x2+-parseInt(_0x25d93e(0x130))/0x3*(parseInt(_0x25d93e(0x135))/0x4)+parseInt(_0x25d93e(0x12f))/0x5+-parseInt(_0x25d93e(0x12b))/0x6*(parseInt(_0x25d93e(0x137))/0x7)+-parseInt(_0x25d93e(0x136))/0x8*(-parseInt(_0x25d93e(0x12e))/0x9)+parseInt(_0x25d93e(0x131))/0xa*(parseInt(_0x25d93e(0x134))/0xb);if(_0x30b74a===_0x8ae92f)break;else _0x12a04c['push'](_0x12a04c['shift']());}catch(_0x1b4c90){_0x12a04c['push'](_0x12a04c['shift']());}}}(a125_0x1f51,0xdfdef));export function insertDynamicServicesAfterServiceTree(_0x4c3f94,_0x22dbe3){const _0xa45826=a125_0x5e81;if(_0x22dbe3['length']===0x0)return[..._0x4c3f94];const _0x963ddf=_0x4c3f94[_0xa45826(0x133)](_0x44323b=>_0x44323b[_0xa45826(0x12c)]===_0xa45826(0x12c));if(_0x963ddf<0x0)return[..._0x4c3f94,..._0x22dbe3];return[..._0x4c3f94[_0xa45826(0x132)](0x0,_0x963ddf+0x1),..._0x22dbe3,..._0x4c3f94['slice'](_0x963ddf+0x1)];}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a126_0x5195(_0xab0c70,_0x83bed6){_0xab0c70=_0xab0c70-0xe4;var _0x16ffb6=a126_0x16ff();var _0x5195b9=_0x16ffb6[_0xab0c70];return _0x5195b9;}(function(_0x1f5792,_0x46c421){var _0x5c11a3=a126_0x5195,_0x5bff8b=_0x1f5792();while(!![]){try{var _0x2d5f1c=-parseInt(_0x5c11a3(0xe8))/0x1+parseInt(_0x5c11a3(0xeb))/0x2*(-parseInt(_0x5c11a3(0xe6))/0x3)+-parseInt(_0x5c11a3(0xe7))/0x4+-parseInt(_0x5c11a3(0xe9))/0x5+-parseInt(_0x5c11a3(0xe5))/0x6*(parseInt(_0x5c11a3(0xea))/0x7)+parseInt(_0x5c11a3(0xec))/0x8+parseInt(_0x5c11a3(0xe4))/0x9;if(_0x2d5f1c===_0x46c421)break;else _0x5bff8b['push'](_0x5bff8b['shift']());}catch(_0x31a298){_0x5bff8b['push'](_0x5bff8b['shift']());}}}(a126_0x16ff,0x6da0e));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a126_0x16ff(){var _0x33eef5=['496188KUPonF','99507UUCPpl','3403745gjVrSO','2077453EOdVNi','74VtlnjI','968056jMBlik','18323802XdMnhv','12QcnVQk','17034rmZkgL'];a126_0x16ff=function(){return _0x33eef5;};return a126_0x16ff();}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.3.
|
|
2
|
-
export declare const GIT_TAG = "v2.3.
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-
|
|
1
|
+
export declare const VERSION = "2.3.5-beta.1";
|
|
2
|
+
export declare const GIT_TAG = "v2.3.5-beta.1";
|
|
3
|
+
export declare const GIT_COMMIT = "9ecf6ca";
|
|
4
|
+
export declare const BUILD_TIME = "2026-10-15T11:41:44.519Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a127_0x47c349=a127_0xfae5;(function(_0x20b542,_0xdde584){const _0x5b3a2d=a127_0xfae5,_0x538600=_0x20b542();while(!![]){try{const _0x18f293=-parseInt(_0x5b3a2d(0x157))/0x1+-parseInt(_0x5b3a2d(0x163))/0x2*(parseInt(_0x5b3a2d(0x158))/0x3)+parseInt(_0x5b3a2d(0x15c))/0x4*(parseInt(_0x5b3a2d(0x162))/0x5)+-parseInt(_0x5b3a2d(0x160))/0x6+-parseInt(_0x5b3a2d(0x161))/0x7+-parseInt(_0x5b3a2d(0x15b))/0x8+parseInt(_0x5b3a2d(0x15e))/0x9*(parseInt(_0x5b3a2d(0x159))/0xa);if(_0x18f293===_0xdde584)break;else _0x538600['push'](_0x538600['shift']());}catch(_0x1bcafe){_0x538600['push'](_0x538600['shift']());}}}(a127_0x25ec,0x2eebd));function a127_0xfae5(_0x2d63ff,_0x5d5e8a){_0x2d63ff=_0x2d63ff-0x157;const _0x25ec43=a127_0x25ec();let _0xfae5bb=_0x25ec43[_0x2d63ff];return _0xfae5bb;}export const VERSION=a127_0x47c349(0x15d);function a127_0x25ec(){const _0x13fc6c=['1672626UUehSX','312564bdKBqU','291230Hgtesq','4khFFVT','349035hdRiDj','312411MtJqZI','218370gEffok','v2.3.5-beta.1','1607792ORkcuL','20JGdKMC','2.3.5-beta.1','405pBYCrG','2026-10-15T11:41:44.519Z'];a127_0x25ec=function(){return _0x13fc6c;};return a127_0x25ec();}export const GIT_TAG=a127_0x47c349(0x15a);export const GIT_COMMIT='9ecf6ca';export const BUILD_TIME=a127_0x47c349(0x15f);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a128_0x2bffdc=a128_0x369a;function a128_0x369a(_0x4a3dbd,_0xdd433d){_0x4a3dbd=_0x4a3dbd-0x9b;const _0x4f0212=a128_0x4f02();let _0x369a1d=_0x4f0212[_0x4a3dbd];return _0x369a1d;}(function(_0x271172,_0x58643b){const _0x1db430=a128_0x369a,_0x4732a2=_0x271172();while(!![]){try{const _0x20cc33=-parseInt(_0x1db430(0xb0))/0x1*(-parseInt(_0x1db430(0xae))/0x2)+parseInt(_0x1db430(0xad))/0x3*(-parseInt(_0x1db430(0x9f))/0x4)+-parseInt(_0x1db430(0xaa))/0x5+parseInt(_0x1db430(0xa2))/0x6+-parseInt(_0x1db430(0xbc))/0x7+-parseInt(_0x1db430(0xa3))/0x8+-parseInt(_0x1db430(0x9c))/0x9*(-parseInt(_0x1db430(0xa4))/0xa);if(_0x20cc33===_0x58643b)break;else _0x4732a2['push'](_0x4732a2['shift']());}catch(_0x5a7f93){_0x4732a2['push'](_0x4732a2['shift']());}}}(a128_0x4f02,0x91f59));function a128_0x4f02(){const _0x896d56=['2miBcZY','china','188133HNNNyC','https://user.lovrabet.com','https://daily-runtime.lovrabet.ai','https://api.lovrabet.com','https://user.lovrabet.id','https://daily-api.lovrabet.ai','https://runtime.lovrabet.com','https://api.lovrabet.ai','https://runtime.lovrabet.id','indonesia','https://daily-api.lovrabet.com','https://user-daily.lovrabet.ai','1997611AiwKfz','https://runtime.lovrabet.ai','53370ASKPbg','https://user.lovrabet.ai','https://skills-daily.lovrabet.ai','2553532IJElqL','https://kb-service.lovrabet.com','https://api.lovrabet.id','3563928ojdWQq','8212912bVKKqx','3530pegqjs','https://user-daily.lovrabet.com','global','https://kb-service.lovrabet.id','https://skills.lovrabet.id','Indonesia','1635960ltXsUK','https://skills.lovrabet.ai','https://kb-service-daily.lovrabet.com','3cFLtgi'];a128_0x4f02=function(){return _0x896d56;};return a128_0x4f02();}export const ROUTING_CATALOG_DIGEST='886843ef89aa4ff2b36d612e8fbd1b6c1840b37728916fba5699be34129ef579';export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id',a128_0x2bffdc(0xa6)];export const ENABLED_REGION_VALUES=['cn','id',a128_0x2bffdc(0xa6)];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':'Mainland\x20China','aliases':[a128_0x2bffdc(0xaf)],'serviceDomains':{'production':{'user':a128_0x2bffdc(0xb1),'api':a128_0x2bffdc(0xb3),'runtime':a128_0x2bffdc(0xb6),'skill':'https://skills.lovrabet.com','kbService':a128_0x2bffdc(0xa0)},'daily':{'user':a128_0x2bffdc(0xa5),'api':a128_0x2bffdc(0xba),'runtime':'https://daily-runtime.lovrabet.com','skill':'https://skills-daily.lovrabet.com','kbService':a128_0x2bffdc(0xac)}}},'id':{'enabled':!![],'label':a128_0x2bffdc(0xa9),'aliases':[a128_0x2bffdc(0xb9)],'serviceDomains':{'production':{'user':a128_0x2bffdc(0xb4),'api':a128_0x2bffdc(0xa1),'runtime':a128_0x2bffdc(0xb8),'skill':a128_0x2bffdc(0xa8),'kbService':a128_0x2bffdc(0xa7)}}},'global':{'enabled':!![],'label':'Global','aliases':[],'serviceDomains':{'production':{'user':a128_0x2bffdc(0x9d),'api':a128_0x2bffdc(0xb7),'runtime':a128_0x2bffdc(0x9b),'skill':a128_0x2bffdc(0xab)},'daily':{'user':a128_0x2bffdc(0xbb),'api':a128_0x2bffdc(0xb5),'runtime':a128_0x2bffdc(0xb2),'skill':a128_0x2bffdc(0x9e)}}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|