@lovrabet/lovrabet-cli 2.3.9-beta.1 → 2.3.10-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.d.ts +2 -3
- 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.d.ts +5 -6
- 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.d.ts +3 -13
- 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.d.ts +2 -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.d.ts +2 -0
- 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 +31 -132
- package/skills/lovrabet/guides/app-resolution.md +39 -139
- package/skills/lovrabet/guides/dataset-and-data-workflow.md +4 -3
- package/skills/lovrabet/guides/development-intent-handoff.md +7 -5
- package/skills/lovrabet/guides/sql-and-bff-workflow.md +12 -27
- package/skills/lovrabet/guides/troubleshooting.md +11 -31
- package/skills/lovrabet/references/dataset-discovery-workflow.md +10 -48
- package/skills/lovrabet/references/instant-api-workflow.md +4 -11
- package/skills/lovrabet/references/lovrabet-app.md +6 -33
- package/skills/lovrabet/references/lovrabet-auth.md +16 -9
- package/skills/lovrabet/references/lovrabet-bff-workflow.md +9 -34
- package/skills/lovrabet/references/lovrabet-config.md +49 -31
- package/skills/lovrabet/references/lovrabet-kb-workflow.md +2 -2
- package/skills/lovrabet/references/lovrabet-service-tree.md +11 -9
- package/skills/lovrabet/references/lovrabet-sql-workflow.md +9 -34
- package/skills/lovrabet/references/lovrabet-workspace.md +12 -11
- package/skills/lovrabet.manifest.json +3 -3
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1355c0,_0x1030ea){const _0x2d0207=a119_0x4c73,_0xb0175f=_0x1355c0();while(!![]){try{const _0x3d9ed6=parseInt(_0x2d0207(0x17d))/0x1+-parseInt(_0x2d0207(0x17f))/0x2+parseInt(_0x2d0207(0x184))/0x3*(parseInt(_0x2d0207(0x182))/0x4)+parseInt(_0x2d0207(0x185))/0x5+-parseInt(_0x2d0207(0x17c))/0x6+-parseInt(_0x2d0207(0x179))/0x7+parseInt(_0x2d0207(0x17e))/0x8*(parseInt(_0x2d0207(0x17b))/0x9);if(_0x3d9ed6===_0x1030ea)break;else _0xb0175f['push'](_0xb0175f['shift']());}catch(_0x49cea4){_0xb0175f['push'](_0xb0175f['shift']());}}}(a119_0x174f,0xc2ac9));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_0x4c73(_0xf50222,_0xa2840f){_0xf50222=_0xf50222-0x178;const _0x174f10=a119_0x174f();let _0x4c7349=_0x174f10[_0xf50222];return _0x4c7349;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';function createGenerators(){const _0x5b0a83=a119_0x4c73;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries())['filter'](_0x2477c7=>_0x2477c7['service']!==_0x5b0a83(0x180)),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x5b0a83(0x188)+PRODUCT_CONFIG[_0x5b0a83(0x181)]+_0x5b0a83(0x183)});}export function generateCommandHelp(_0x5f360a){const _0x78727d=a119_0x4c73;return createGenerators()[_0x78727d(0x187)](_0x5f360a);}function a119_0x174f(){const _0x1bcb1a=['generateCommandHelp','Requires\x20appcode\x20(set\x20via\x20','filter','8314369pBFNXi','get','2511477fOIGXQ','4025580RKLhzG','240469QQCgUI','64ftqXAS','1149538FkEdMo','service','newConfigFileName','2205236SExNjh','\x20or\x20--appcode).','3BoNuST','1033245sdDgYb','generateFullHelp'];a119_0x174f=function(){return _0x1bcb1a;};return a119_0x174f();}export function generateServiceHelp(_0x32e01e){return createGenerators()['generateServiceHelp'](_0x32e01e);}export function generateFullHelp(){const _0x459d5c=a119_0x4c73;return createGenerators()[_0x459d5c(0x186)]();}function getAnyServiceEntry(_0x24f213){const _0x3a3e46=getServiceEntry(_0x24f213);if(_0x3a3e46)return _0x3a3e46;try{return getDynamicServiceEntry(_0x24f213);}catch{return undefined;}}function getAnyServiceDefinitions(_0xb0e311){const _0x2ebf0b=a119_0x4c73,_0x43b2a3=serviceGroups[_0x2ebf0b(0x17a)](_0xb0e311);if(_0x43b2a3)return _0x43b2a3;try{return getDynamicServiceDefinitions(_0xb0e311);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x4eba36=a119_0x4c73,_0x43850a=new Set(serviceRegistry['map'](_0x3d3ad7=>_0x3d3ad7[_0x4eba36(0x180)]));try{return listDynamicServiceEntries()[_0x4eba36(0x178)](_0x2dcae1=>!_0x43850a['has'](_0x2dcae1['service']));}catch{return[];}}
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x490665,_0x459e06){var _0x98f424=a120_0x11d4,_0xc81c9e=_0x490665();while(!![]){try{var _0x438d1f=parseInt(_0x98f424(0xbb))/0x1+parseInt(_0x98f424(0xb6))/0x2+parseInt(_0x98f424(0xbe))/0x3+-parseInt(_0x98f424(0xb9))/0x4*(parseInt(_0x98f424(0xb7))/0x5)+parseInt(_0x98f424(0xbc))/0x6+-parseInt(_0x98f424(0xba))/0x7*(-parseInt(_0x98f424(0xb8))/0x8)+-parseInt(_0x98f424(0xbd))/0x9;if(_0x438d1f===_0x459e06)break;else _0xc81c9e['push'](_0xc81c9e['shift']());}catch(_0x3bd98f){_0xc81c9e['push'](_0xc81c9e['shift']());}}}(a120_0x382d,0x35a9c));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 a120_0x382d(){var _0x4d8632=['116208wzNDTl','236DihhIv','63CaaBip','310333YKfkXW','2186370iwINUO','9718425ItRrAL','816681CPTrgv','757996cNBBfR','13310VqQAJT'];a120_0x382d=function(){return _0x4d8632;};return a120_0x382d();}function a120_0x11d4(_0x1320ba,_0x2b553d){_0x1320ba=_0x1320ba-0xb6;var _0x382dde=a120_0x382d();var _0x11d4ed=_0x382dde[_0x1320ba];return _0x11d4ed;}export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a121_0x2a90(_0x471ea9,_0x59d58f){_0x471ea9=_0x471ea9-0xba;const _0x48f952=a121_0x48f9();let _0x2a902c=_0x48f952[_0x471ea9];return _0x2a902c;}(function(_0x5f01d5,_0x53b035){const _0xa7030e=a121_0x2a90,_0x2caae0=_0x5f01d5();while(!![]){try{const _0x6c8c9b=-parseInt(_0xa7030e(0xbd))/0x1*(-parseInt(_0xa7030e(0xc3))/0x2)+parseInt(_0xa7030e(0xc6))/0x3+parseInt(_0xa7030e(0xc9))/0x4*(parseInt(_0xa7030e(0xc8))/0x5)+parseInt(_0xa7030e(0xc0))/0x6+-parseInt(_0xa7030e(0xc1))/0x7*(-parseInt(_0xa7030e(0xc5))/0x8)+parseInt(_0xa7030e(0xbc))/0x9*(parseInt(_0xa7030e(0xc4))/0xa)+-parseInt(_0xa7030e(0xbb))/0xb*(parseInt(_0xa7030e(0xca))/0xc);if(_0x6c8c9b===_0x53b035)break;else _0x2caae0['push'](_0x2caae0['shift']());}catch(_0x25ab66){_0x2caae0['push'](_0x2caae0['shift']());}}}(a121_0x48f9,0xc7dd1));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a121_0x48f9(){const _0x5d4619=['update','format','264molnZT','1908Zpvvvb','2xiitUp','_notice','url','8515026MGfJgD','2618105laHNhz','message','250462CUGyos','72290GHZXiM','8hULdQv','2808774wMTrnU','error','2349255vRVSNm','4WqPiXS','2081832enzLEf','pretty'];a121_0x48f9=function(){return _0x5d4619;};return a121_0x48f9();}import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x2efb9b,_0x5f51b0){const _0x552031=a121_0x2a90,_0x3a725e=_0x2efb9b[_0x552031(0xbe)],{_notice:_0x11fd04,..._0x34d146}=_0x2efb9b;void _0x11fd04,baseFormatOutput(_0x34d146,_0x5f51b0),_0x5f51b0[_0x552031(0xba)]===_0x552031(0xcb)&&printPrettyNotice(_0x3a725e);}function printPrettyNotice(_0x48bc8c){const _0x5d2acb=a121_0x2a90;if(!_0x48bc8c?.[_0x5d2acb(0xcc)])return;console[_0x5d2acb(0xc7)](_0x48bc8c[_0x5d2acb(0xcc)][_0x5d2acb(0xc2)]+'\x20('+_0x48bc8c[_0x5d2acb(0xcc)][_0x5d2acb(0xbf)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x56afdd,_0x47a3c8){const _0x254a9e=a122_0x152d,_0x541784=_0x56afdd();while(!![]){try{const _0x22de38=-parseInt(_0x254a9e(0xb5))/0x1+-parseInt(_0x254a9e(0xa5))/0x2*(-parseInt(_0x254a9e(0x96))/0x3)+parseInt(_0x254a9e(0x94))/0x4*(-parseInt(_0x254a9e(0x92))/0x5)+parseInt(_0x254a9e(0xab))/0x6*(parseInt(_0x254a9e(0xae))/0x7)+parseInt(_0x254a9e(0xb3))/0x8*(parseInt(_0x254a9e(0x97))/0x9)+-parseInt(_0x254a9e(0xa1))/0xa+parseInt(_0x254a9e(0x9b))/0xb*(parseInt(_0x254a9e(0x93))/0xc);if(_0x22de38===_0x47a3c8)break;else _0x541784['push'](_0x541784['shift']());}catch(_0x42ab03){_0x541784['push'](_0x541784['shift']());}}}(a122_0x2f9b,0xa33c3));export function toKebab(_0x35194d){const _0x3b17ca=a122_0x152d;return _0x35194d[_0x3b17ca(0xb7)](/_/g,'-')[_0x3b17ca(0xb7)](/-([A-Z]+)/g,(_0x2ab09b,_0x436c39)=>'-'+_0x436c39[_0x3b17ca(0xb0)]())['replace'](/([a-z0-9])([A-Z])/g,(_0x5bac8e,_0xf6c9ab,_0x101182)=>_0xf6c9ab+'-'+_0x101182)[_0x3b17ca(0xb0)]();}function a122_0x152d(_0x461915,_0x123166){_0x461915=_0x461915-0x90;const _0x2f9bc4=a122_0x2f9b();let _0x152d98=_0x2f9bc4[_0x461915];return _0x152d98;}function buildKnownFlags(_0x251d38){const _0x33689b=a122_0x152d,_0x2d6406=new Set();for(const _0x36c423 of _0x251d38){_0x2d6406['add'](_0x36c423[_0x33689b(0xb9)]),_0x2d6406[_0x33689b(0xba)](toCamelCase(_0x36c423[_0x33689b(0xb9)]));}for(const _0x324a77 of[_0x33689b(0xa0),_0x33689b(0xa8),_0x33689b(0xad),_0x33689b(0xb1)]){_0x2d6406['add'](_0x324a77);}for(const _0x2e2592 of[_0x33689b(0xb6),_0x33689b(0x95),'appcode',_0x33689b(0x98),_0x33689b(0xa3),_0x33689b(0xb8),'ci','global',_0x33689b(0xaf)]){_0x2d6406[_0x33689b(0xba)](_0x2e2592);}return _0x2d6406;}function buildFlagTypeMap(_0x55aaf9){const _0x17b7ac=a122_0x152d,_0x422e71=new Map();for(const _0x275300 of _0x55aaf9){_0x422e71[_0x17b7ac(0xa7)](_0x275300['name'],_0x275300[_0x17b7ac(0xb2)]),_0x422e71[_0x17b7ac(0xa7)](toCamelCase(_0x275300['name']),_0x275300[_0x17b7ac(0xb2)]);}return _0x422e71;}function toCamelCase(_0x35cb0f){const _0xa788b3=a122_0x152d;return _0x35cb0f[_0xa788b3(0xb7)](/-([a-z])/g,(_0x33c7fc,_0x14a4ef)=>_0x14a4ef[_0xa788b3(0x99)]());}function aliasHandler(_0x279990,_0x29be2a){const _0x5a6b92=a122_0x152d,_0x301327=[];for(const _0x563c39 of Object[_0x5a6b92(0x9a)](_0x279990)){if(_0x29be2a[_0x5a6b92(0x90)](_0x563c39))continue;const _0x35484b=toKebab(_0x563c39);_0x35484b!==_0x563c39&&_0x29be2a['has'](_0x35484b)&&_0x301327['push']({'original':_0x563c39,'corrected':_0x35484b,'handler':_0x5a6b92(0xa6)});}return _0x301327;}function stickyHandler(_0x193e85,_0x10c698,_0x38b528){const _0x4ca5f1=a122_0x152d,_0x502d1f=[];for(const [_0xfaa815,_0xdfcf4]of Object[_0x4ca5f1(0xb4)](_0x193e85)){if(_0xdfcf4!==!![])continue;for(let _0x4c0070=_0xfaa815[_0x4ca5f1(0x91)]-0x1;_0x4c0070>0x0;_0x4c0070--){const _0x339545=_0xfaa815[_0x4ca5f1(0xaa)](0x0,_0x4c0070),_0x2c5e48=_0xfaa815['slice'](_0x4c0070),_0x3dae31=toKebab(_0x339545),_0xa9c1c2=toCamelCase(_0x339545),_0x33871c=_0x10c698[_0x4ca5f1(0x90)](_0x339545)?_0x339545:_0x10c698[_0x4ca5f1(0x90)](_0x3dae31)?_0x3dae31:_0x10c698[_0x4ca5f1(0x90)](_0xa9c1c2)?_0xa9c1c2:null;if(!_0x33871c)continue;const _0x514f6a=_0x38b528[_0x4ca5f1(0x9d)](_0x33871c)??_0x4ca5f1(0xa2);let _0x53de46;if(_0x514f6a===_0x4ca5f1(0xa4)){const _0xb8fae2=Number(_0x2c5e48);if(isNaN(_0xb8fae2)||_0x2c5e48==='')continue;_0x53de46=_0xb8fae2;}else{if(_0x514f6a===_0x4ca5f1(0xa9))continue;else{if(_0x2c5e48==='')continue;_0x53de46=_0x2c5e48;}}_0x502d1f[_0x4ca5f1(0xac)]({'original':_0xfaa815,'corrected':_0x33871c+'='+_0x53de46,'handler':_0x4ca5f1(0x9e)});break;}}return _0x502d1f;}function a122_0x2f9b(){const _0x1b9b0e=['name','add','has','length','5txtnpz','10308DmmLbu','5037268NxNRkX','env','149637JemMSF','4604778VpBtZz','app','toUpperCase','keys','11693sBufbx','original','get','sticky','corrected','dry-run','4440530vRSvLh','string','nonInteractive','number','2RRtFtZ','alias','set','dryRun','boolean','slice','2561694GhvrNC','push','yes','14xAxEKI','version','toLowerCase','format','type','16Tyvpvx','entries','468197PGPopx','help','replace','non-interactive'];a122_0x2f9b=function(){return _0x1b9b0e;};return a122_0x2f9b();}export function correctFlags(_0x5ae24f,_0x1b1cde){const _0x58976c=a122_0x152d,_0x23977e=buildKnownFlags(_0x1b1cde),_0x3cf0ae=buildFlagTypeMap(_0x1b1cde),_0x54da5a=aliasHandler(_0x5ae24f,_0x23977e),_0x305d86=stickyHandler(_0x5ae24f,_0x23977e,_0x3cf0ae),_0x1ab45b=[..._0x54da5a,..._0x305d86];if(_0x1ab45b[_0x58976c(0x91)]===0x0)return{'flags':_0x5ae24f,'corrections':[]};const _0x1fba36={..._0x5ae24f},_0x52cf51=new Set();for(const _0x59fee8 of _0x54da5a){_0x1fba36[_0x59fee8['corrected']]=_0x5ae24f[_0x59fee8[_0x58976c(0x9c)]],_0x52cf51[_0x58976c(0xba)](_0x59fee8[_0x58976c(0x9c)]);}for(const _0x231f71 of _0x305d86){const _0x5a0ddc=_0x231f71[_0x58976c(0x9f)]['indexOf']('='),_0x2397d5=_0x231f71[_0x58976c(0x9f)][_0x58976c(0xaa)](0x0,_0x5a0ddc),_0x2998aa=_0x231f71[_0x58976c(0x9f)][_0x58976c(0xaa)](_0x5a0ddc+0x1),_0x47d098=_0x3cf0ae[_0x58976c(0x9d)](_0x2397d5)??'string';_0x47d098===_0x58976c(0xa4)?_0x1fba36[_0x2397d5]=Number(_0x2998aa):_0x1fba36[_0x2397d5]=_0x2998aa,_0x52cf51[_0x58976c(0xba)](_0x231f71[_0x58976c(0x9c)]);}for(const _0x3cc29a of _0x52cf51){delete _0x1fba36[_0x3cc29a];}return{'flags':_0x1fba36,'corrections':_0x1ab45b};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a123_0x127f4a=a123_0x440a;(function(_0x199d25,_0x4942b7){const _0x5f1b71=a123_0x440a,_0x26d40d=_0x199d25();while(!![]){try{const _0x39b483=parseInt(_0x5f1b71(0xf3))/0x1+-parseInt(_0x5f1b71(0xe5))/0x2*(-parseInt(_0x5f1b71(0xfa))/0x3)+parseInt(_0x5f1b71(0xeb))/0x4*(-parseInt(_0x5f1b71(0x107))/0x5)+-parseInt(_0x5f1b71(0xf9))/0x6+-parseInt(_0x5f1b71(0xf8))/0x7*(-parseInt(_0x5f1b71(0xe6))/0x8)+parseInt(_0x5f1b71(0xfb))/0x9*(parseInt(_0x5f1b71(0xea))/0xa)+-parseInt(_0x5f1b71(0x104))/0xb;if(_0x39b483===_0x4942b7)break;else _0x26d40d['push'](_0x26d40d['shift']());}catch(_0x4196bc){_0x26d40d['push'](_0x26d40d['shift']());}}}(a123_0x1239,0xd8a81));function a123_0x1239(){const _0x5843d9=['4heWuTR','Wait\x20','retry-after','isInteger','has','retryAfter','call','trim','1422470LkQosU','test','\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.','object','IP_RATE_LIMIT_EXCEEDED','1176wgkhho','7745358evBVgK','67026lArvoa','23949MneXMp','entries','Request\x20rate\x20limit\x20exceeded.','\x20seconds\x20before\x20retrying.','function','toUpperCase','errorCode','message','get','16681995jYbnfH','EXCEED_MAX_QPS_LIMIT','retryAfterSeconds','7381370fFjNUj','46PUjMor','70280DXZgkr','Retry-After','rateLimited','number','6610oHWhKb'];a123_0x1239=function(){return _0x5843d9;};return a123_0x1239();}import{CliErrors}from'../errors.js';const RATE_LIMIT_ERROR_CODES=new Set([a123_0x127f4a(0x105),'MAX_QPS_LIMIT',a123_0x127f4a(0xf7)]);function nonEmptyString(_0x582f99){const _0x17edc2=a123_0x127f4a;if(typeof _0x582f99!=='string')return undefined;const _0x28809c=_0x582f99[_0x17edc2(0xf2)]();return _0x28809c||undefined;}function buildRetryHint(_0x4b0600){const _0x18c7db=a123_0x127f4a,_0x20a88e=nonEmptyString(_0x4b0600),_0x45c789=_0x20a88e?/^\d+$/[_0x18c7db(0xf4)](_0x20a88e)?_0x18c7db(0xec)+_0x20a88e+_0x18c7db(0xfe):'Retry\x20after\x20'+_0x20a88e+'.':'Retry\x20after\x20a\x20short\x20delay.';return _0x45c789+_0x18c7db(0xf5);}export function createRateLimitError(_0x230584){const _0x2409bf=a123_0x127f4a,_0x1b6afd=nonEmptyString(_0x230584[_0x2409bf(0x101)])?.[_0x2409bf(0x100)](),_0x34bd1f=Number(_0x230584['status'])===0x1ad||_0x1b6afd!==undefined&&RATE_LIMIT_ERROR_CODES[_0x2409bf(0xef)](_0x1b6afd);if(!_0x34bd1f)return undefined;return CliErrors[_0x2409bf(0xe8)](nonEmptyString(_0x230584[_0x2409bf(0x102)])??_0x2409bf(0xfd),buildRetryHint(_0x230584[_0x2409bf(0xf0)]));}function a123_0x440a(_0x2a185d,_0x4a8fcc){_0x2a185d=_0x2a185d-0xe5;const _0x123907=a123_0x1239();let _0x440a19=_0x123907[_0x2a185d];return _0x440a19;}export function readRetryAfter(_0xc3cf3){const _0x537a4d=a123_0x127f4a;if(!_0xc3cf3||typeof _0xc3cf3!=='object')return undefined;const _0x4d6180=_0xc3cf3[_0x537a4d(0x103)];if(typeof _0x4d6180===_0x537a4d(0xff)){const _0x5b6061=_0x4d6180[_0x537a4d(0xf1)](_0xc3cf3,_0x537a4d(0xe7))??_0x4d6180[_0x537a4d(0xf1)](_0xc3cf3,'retry-after');return nonEmptyString(_0x5b6061);}for(const [_0x2e8588,_0x3e7838]of Object[_0x537a4d(0xfc)](_0xc3cf3)){if(_0x2e8588['toLowerCase']()===_0x537a4d(0xed))return nonEmptyString(_0x3e7838)??(typeof _0x3e7838===_0x537a4d(0xe9)?String(_0x3e7838):undefined);}return undefined;}export function readRetryAfterSeconds(_0x2f1247){const _0x50ed48=a123_0x127f4a;if(!_0x2f1247||typeof _0x2f1247!==_0x50ed48(0xf6)||Array['isArray'](_0x2f1247))return undefined;const _0x46e3fe=_0x2f1247[_0x50ed48(0x106)];if(typeof _0x46e3fe===_0x50ed48(0xe9))return Number[_0x50ed48(0xee)](_0x46e3fe)&&_0x46e3fe>=0x0?String(_0x46e3fe):undefined;const _0x53b9ef=nonEmptyString(_0x46e3fe);return _0x53b9ef&&/^\d+$/[_0x50ed48(0xf4)](_0x53b9ef)?_0x53b9ef:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a124_0x5297cb=a124_0x5a94;(function(_0x27f1b5,_0x5dec6f){const _0x42b32e=a124_0x5a94,_0x56c0e1=_0x27f1b5();while(!![]){try{const _0x25f9c9=-parseInt(_0x42b32e(0x98))/0x1*(-parseInt(_0x42b32e(0x8c))/0x2)+-parseInt(_0x42b32e(0x8f))/0x3+parseInt(_0x42b32e(0xa6))/0x4+-parseInt(_0x42b32e(0x83))/0x5*(parseInt(_0x42b32e(0x89))/0x6)+parseInt(_0x42b32e(0x96))/0x7*(-parseInt(_0x42b32e(0x91))/0x8)+-parseInt(_0x42b32e(0xa5))/0x9*(-parseInt(_0x42b32e(0x9c))/0xa)+-parseInt(_0x42b32e(0x92))/0xb*(-parseInt(_0x42b32e(0x86))/0xc);if(_0x25f9c9===_0x5dec6f)break;else _0x56c0e1['push'](_0x56c0e1['shift']());}catch(_0x15ccbe){_0x56c0e1['push'](_0x56c0e1['shift']());}}}(a124_0x568e,0x4ba3c));function a124_0x568e(){const _0x433041=['Unknown\x20flag\x20--','32768ILyxKf','\x20--help`\x20to\x20see\x20accepted\x20flags.','asc','command','1077990rPnWAS','flags','add','filter','page','where','no-','validation','currentpage','27VAfjUo','1315388khxQHj','\x20for\x20`','orderby','5tkobyj','select','data','24fJnDPL','has','order-by','1496766HzPGfm','Put\x20where,\x20select,\x20orderBy,\x20currentPage,\x20and\x20pageSize\x20inside\x20one\x20--params\x20JSON\x20object.\x20','version','2JsoFpy','service','meowKey','1131729VNpuIX','pagesize','11472sjXkwf','2795089AwdJWh','entries','name','page-size','1253LXuQda'];a124_0x568e=function(){return _0x433041;};return a124_0x568e();}import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a124_0x5a94(_0x45003d,_0x5ec753){_0x45003d=_0x45003d-0x83;const _0x568e0e=a124_0x568e();let _0x5a94fb=_0x568e0e[_0x45003d];return _0x5a94fb;}import{toKebab}from'../framework/preparse.js';const FILTER_BODY_FIELDS=new Set([a124_0x5297cb(0xa1),a124_0x5297cb(0x84),a124_0x5297cb(0x88),a124_0x5297cb(0xa8),'current-page',a124_0x5297cb(0xa4),a124_0x5297cb(0xa0),a124_0x5297cb(0x95),a124_0x5297cb(0x90)]);export function assertKnownCommandFlags(_0x3cc8a0,_0x322950){const _0x2de2ba=a124_0x5297cb,_0x328742=new Set([_0x2de2ba(0x8b)]);for(const _0x20a875 of GLOBAL_FLAGS){_0x328742[_0x2de2ba(0x9e)](_0x20a875[_0x2de2ba(0x94)]),_0x328742['add'](toKebab(_0x20a875[_0x2de2ba(0x8e)]));}for(const _0x4c06ab of _0x3cc8a0[_0x2de2ba(0x9d)]??[]){_0x328742[_0x2de2ba(0x9e)](_0x4c06ab[_0x2de2ba(0x94)]);}for(const [_0x37592d,_0x38d0b1]of Object[_0x2de2ba(0x93)](_0x322950)){const _0x253aec=toKebab(_0x37592d);if(_0x328742[_0x2de2ba(0x87)](_0x253aec))continue;if(_0x38d0b1===![]&&_0x328742[_0x2de2ba(0x87)](_0x2de2ba(0xa2)+_0x253aec))continue;if(_0x3cc8a0[_0x2de2ba(0x8d)]===_0x2de2ba(0x85)&&_0x3cc8a0[_0x2de2ba(0x9b)]===_0x2de2ba(0x9f)&&FILTER_BODY_FIELDS[_0x2de2ba(0x87)](_0x253aec))throw CliErrors[_0x2de2ba(0xa3)]('--'+_0x253aec+'\x20is\x20not\x20a\x20CLI\x20flag\x20for\x20`'+CLI_BIN_NAME+'\x20data\x20filter`.',_0x2de2ba(0x8a)+('Example:\x20'+CLI_BIN_NAME+'\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20')+('\x27'+JSON['stringify']({'where':{'status':{'$eq':'active'}},'orderBy':[{'id':_0x2de2ba(0x9a)}],'currentPage':0x1,'pageSize':0x14})+'\x27'));throw CliErrors[_0x2de2ba(0xa3)](_0x2de2ba(0x97)+_0x253aec+_0x2de2ba(0xa7)+CLI_BIN_NAME+'\x20'+_0x3cc8a0[_0x2de2ba(0x8d)]+'\x20'+_0x3cc8a0[_0x2de2ba(0x9b)]+'`.','Run\x20`'+CLI_BIN_NAME+'\x20'+_0x3cc8a0[_0x2de2ba(0x8d)]+'\x20'+_0x3cc8a0[_0x2de2ba(0x9b)]+_0x2de2ba(0x99));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x51bc0a,_0x253c8d){var _0x3a6776=a125_0x2405,_0x569ff6=_0x51bc0a();while(!![]){try{var _0xd13d83=parseInt(_0x3a6776(0x19e))/0x1*(parseInt(_0x3a6776(0x19f))/0x2)+parseInt(_0x3a6776(0x197))/0x3+parseInt(_0x3a6776(0x198))/0x4*(parseInt(_0x3a6776(0x196))/0x5)+-parseInt(_0x3a6776(0x1a0))/0x6*(parseInt(_0x3a6776(0x19d))/0x7)+-parseInt(_0x3a6776(0x19b))/0x8+parseInt(_0x3a6776(0x199))/0x9*(-parseInt(_0x3a6776(0x19a))/0xa)+parseInt(_0x3a6776(0x1a1))/0xb*(parseInt(_0x3a6776(0x19c))/0xc);if(_0xd13d83===_0x253c8d)break;else _0x569ff6['push'](_0x569ff6['shift']());}catch(_0x515eec){_0x569ff6['push'](_0x569ff6['shift']());}}}(a125_0x130d,0x1fc04));function a125_0x2405(_0x416a5d,_0x20ecad){_0x416a5d=_0x416a5d-0x196;var _0x130d41=a125_0x130d();var _0x2405c7=_0x130d41[_0x416a5d];return _0x2405c7;}function a125_0x130d(){var _0x294dbb=['30ryAxWX','45023nFwzRO','55pUJrdD','249024EcyoJk','6844OgkkEF','9qoxSFQ','230810ygngXq','1192960xbZGno','492SnKJQP','194285lRjwET','1279PsAxNc','268oyNvjR'];a125_0x130d=function(){return _0x294dbb;};return a125_0x130d();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x26c8cb,_0x1ab7f2){const _0x4bbcd4=a126_0x3366,_0x35bf68=_0x26c8cb();while(!![]){try{const _0x4e3fd2=-parseInt(_0x4bbcd4(0x1b1))/0x1*(parseInt(_0x4bbcd4(0x1c1))/0x2)+-parseInt(_0x4bbcd4(0x1bc))/0x3+-parseInt(_0x4bbcd4(0x1ae))/0x4*(parseInt(_0x4bbcd4(0x1af))/0x5)+parseInt(_0x4bbcd4(0x1c7))/0x6*(parseInt(_0x4bbcd4(0x1bb))/0x7)+parseInt(_0x4bbcd4(0x1ac))/0x8*(parseInt(_0x4bbcd4(0x1bf))/0x9)+parseInt(_0x4bbcd4(0x1cf))/0xa+-parseInt(_0x4bbcd4(0x1c3))/0xb*(-parseInt(_0x4bbcd4(0x1c2))/0xc);if(_0x4e3fd2===_0x1ab7f2)break;else _0x35bf68['push'](_0x35bf68['shift']());}catch(_0x49ef6d){_0x35bf68['push'](_0x35bf68['shift']());}}}(a126_0x1217,0xaba9f));function a126_0x1217(){const _0x143828=['name','30GoMvkt','description','channel=','cron','join','params=','push','id=','6631830VjHyAq','code=','--yes','params','8bzpLdh','kind=','8KaudSb','1574805jamcXz','scheduled-at','639682YvGfvE','service','\x20\x20\x20Continue?\x20[y/N]\x20','length','channel','title','command','\x20[REDACTED]','kind','schedule-id','87843WKEScF','300318sFonYv','code','\x20\x20\x20Affected:\x20','9712359JFWmNv','affectedRecords','2thADlw','1606596eGTDSs','22oUyfua','\x20\x20\x20','scheduled-at='];a126_0x1217=function(){return _0x143828;};return a126_0x1217();}function a126_0x3366(_0x3b2f67,_0x525c37){_0x3b2f67=_0x3b2f67-0x1ac;const _0x121708=a126_0x1217();let _0x33666a=_0x121708[_0x3b2f67];return _0x33666a;}import{CLI_BIN_NAME}from'../constant/cli.js';import{isSensitiveFlagName}from'../utils/redaction.js';export function buildConfirmationLines(_0x7ab5bb,_0x10e9dd,_0x341c9c){const _0x435622=a126_0x3366,_0x456f23=buildConfirmationContext(_0x7ab5bb,_0x10e9dd,_0x341c9c),_0x2ec551=['⚠\x20\x20High-risk\x20operation:\x20'+_0x456f23['commandLabel']];return _0x456f23[_0x435622(0x1c8)]&&_0x2ec551[_0x435622(0x1cd)](_0x435622(0x1c4)+_0x456f23['description']),_0x456f23[_0x435622(0x1c0)]&&_0x2ec551[_0x435622(0x1cd)](_0x435622(0x1be)+_0x456f23[_0x435622(0x1c0)]),_0x2ec551[_0x435622(0x1cd)](_0x435622(0x1b3)),_0x2ec551;}export function reconstructCommandArgv(_0x4c3718,_0x6f8a0){const _0x4fe6eb=a126_0x3366,_0x3a0dab=[CLI_BIN_NAME,_0x4c3718[_0x4fe6eb(0x1b2)],_0x4c3718[_0x4fe6eb(0x1b7)]];for(const [_0x4e5f44,_0x4df965]of Object['entries'](_0x6f8a0)){if(_0x4df965===!![])_0x3a0dab['push']('--'+_0x4e5f44);else{if(isSensitiveFlagName(_0x4e5f44)&&_0x4df965!==![]&&_0x4df965!==undefined&&_0x4df965!=='')_0x3a0dab['push']('--'+_0x4e5f44+_0x4fe6eb(0x1b8));else _0x4df965!==![]&&_0x4df965!==undefined&&_0x4df965!==''&&_0x3a0dab[_0x4fe6eb(0x1cd)]('--'+_0x4e5f44+'\x20'+JSON['stringify'](_0x4df965));}}return _0x3a0dab[_0x4fe6eb(0x1cd)](_0x4fe6eb(0x1d1)),_0x3a0dab[_0x4fe6eb(0x1cb)]('\x20');}function buildConfirmationContext(_0x5a620c,_0x54b555,_0x2f7d67){const _0x4c3034=a126_0x3366,_0x4dd529=extractAffectedRecords(_0x2f7d67);return{'commandLabel':_0x54b555,'description':_0x5a620c[_0x4c3034(0x1c8)],'affectedRecords':_0x4dd529};}function extractAffectedRecords(_0x5b7c24){const _0x10c60b=a126_0x3366,_0x2c8631=[];if(_0x5b7c24[_0x10c60b(0x1bd)])_0x2c8631['push'](_0x10c60b(0x1d0)+_0x5b7c24['code']);if(_0x5b7c24['id'])_0x2c8631[_0x10c60b(0x1cd)](_0x10c60b(0x1ce)+_0x5b7c24['id']);if(_0x5b7c24[_0x10c60b(0x1ba)])_0x2c8631[_0x10c60b(0x1cd)]('schedule-id='+_0x5b7c24[_0x10c60b(0x1ba)]);if(_0x5b7c24[_0x10c60b(0x1c6)])_0x2c8631['push']('name='+_0x5b7c24[_0x10c60b(0x1c6)]);if(_0x5b7c24[_0x10c60b(0x1b6)])_0x2c8631['push']('title='+_0x5b7c24[_0x10c60b(0x1b6)]);if(_0x5b7c24[_0x10c60b(0x1b9)])_0x2c8631[_0x10c60b(0x1cd)](_0x10c60b(0x1ad)+_0x5b7c24[_0x10c60b(0x1b9)]);if(_0x5b7c24['cron'])_0x2c8631['push']('cron='+_0x5b7c24[_0x10c60b(0x1ca)]);if(_0x5b7c24[_0x10c60b(0x1b0)])_0x2c8631[_0x10c60b(0x1cd)](_0x10c60b(0x1c5)+_0x5b7c24[_0x10c60b(0x1b0)]);if(_0x5b7c24[_0x10c60b(0x1b5)])_0x2c8631['push'](_0x10c60b(0x1c9)+_0x5b7c24[_0x10c60b(0x1b5)]);if(_0x5b7c24[_0x10c60b(0x1d2)])_0x2c8631['push'](_0x10c60b(0x1cc)+_0x5b7c24[_0x10c60b(0x1d2)]);return _0x2c8631[_0x10c60b(0x1b4)]>0x0?_0x2c8631[_0x10c60b(0x1cb)](',\x20'):undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3a1809,_0x26c6bd){const _0x45a641=a127_0x26cb,_0x4758eb=_0x3a1809();while(!![]){try{const _0x5dd701=parseInt(_0x45a641(0x137))/0x1*(parseInt(_0x45a641(0x130))/0x2)+parseInt(_0x45a641(0x141))/0x3*(parseInt(_0x45a641(0x13d))/0x4)+-parseInt(_0x45a641(0x13e))/0x5*(-parseInt(_0x45a641(0x134))/0x6)+parseInt(_0x45a641(0x12a))/0x7+-parseInt(_0x45a641(0x135))/0x8*(-parseInt(_0x45a641(0x133))/0x9)+parseInt(_0x45a641(0x12e))/0xa*(-parseInt(_0x45a641(0x13c))/0xb)+parseInt(_0x45a641(0x132))/0xc*(-parseInt(_0x45a641(0x12f))/0xd);if(_0x5dd701===_0x26c6bd)break;else _0x4758eb['push'](_0x4758eb['shift']());}catch(_0x419543){_0x4758eb['push'](_0x4758eb['shift']());}}}(a127_0x5911,0x63773));import{LovrabetError}from'@lovrabet/sdk';function a127_0x5911(){const _0x52af8e=['4dLZCMZ','285535oEfgoL','validation','The\x20response\x20does\x20not\x20identify\x20whether\x20authentication\x20or\x20permission\x20checks\x20failed.','1471056slxTVI','stringify','1895922tnpGSC','message','status','trim','110uKTiWv','17186AijURz','4GboNwS','response','1500qxDvqx','27PHHabz','6fvmAWo','185208YWUGIs','code','116951GeTzMT','headers','apiError','Request\x20rejected\x20(HTTP\x20401).','description','548999SgzpSb'];a127_0x5911=function(){return _0x52af8e;};return a127_0x5911();}import{CliErrors}from'../errors.js';import{createAccessError}from'../framework/access-error.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';export function mapUserFacingExecuteError(_0x3213ee){const _0x324bf1=a127_0x26cb;if(_0x3213ee instanceof LovrabetError){const _0x254bdc=userFacingLovrabetMessage(_0x3213ee),_0x207665=_0x3213ee,_0x46af61=createRateLimitError({'status':_0x207665[_0x324bf1(0x12c)],'errorCode':_0x207665[_0x324bf1(0x136)],'message':_0x254bdc,'retryAfter':readRetryAfter(_0x207665[_0x324bf1(0x131)]?.[_0x324bf1(0x138)])??readRetryAfterSeconds(_0x207665[_0x324bf1(0x131)])});return createAccessError(_0x207665[_0x324bf1(0x131)],_0x207665['code'])??_0x46af61??(Number(_0x207665[_0x324bf1(0x12c)])===0x191?CliErrors[_0x324bf1(0x139)](_0x324bf1(0x13a),_0x324bf1(0x140)):CliErrors[_0x324bf1(0x13f)](_0x254bdc));}return _0x3213ee;}function a127_0x26cb(_0x52a8e4,_0x35a422){_0x52a8e4=_0x52a8e4-0x129;const _0x5911c5=a127_0x5911();let _0x26cb53=_0x5911c5[_0x52a8e4];return _0x26cb53;}function userFacingLovrabetMessage(_0x1d7d41){const _0x1032c4=a127_0x26cb,_0x9ef88b=_0x1d7d41[_0x1032c4(0x13b)];if(_0x9ef88b!==undefined&&_0x9ef88b!==null){if(typeof _0x9ef88b==='string'&&_0x9ef88b[_0x1032c4(0x12d)]())return _0x9ef88b[_0x1032c4(0x12d)]();try{return JSON[_0x1032c4(0x129)](_0x9ef88b);}catch{}}return _0x1d7d41[_0x1032c4(0x12b)];}
|
|
@@ -66,6 +66,7 @@ export interface PipelineEnv {
|
|
|
66
66
|
nativeToolAvailable?: boolean;
|
|
67
67
|
/** AccessKey resolved from config (may be undefined for public commands). */
|
|
68
68
|
accessKey?: string;
|
|
69
|
+
accessKeySource?: string;
|
|
69
70
|
/** Normalized environment name. */
|
|
70
71
|
env?: "production" | "development" | "daily";
|
|
71
72
|
/** Positional arguments after the subcommand name. */
|
|
@@ -80,7 +81,7 @@ export interface PipelineEnv {
|
|
|
80
81
|
export declare function resolveAuthMode(env: PipelineEnv): AuthMode;
|
|
81
82
|
/**
|
|
82
83
|
* 根据已加载配置和原始 flags 构造完整 PipelineEnv。
|
|
83
|
-
*
|
|
84
|
+
* 使用配置解析器的最终选择,避免二次回退到其他应用。
|
|
84
85
|
*/
|
|
85
86
|
export declare function createPipelineEnv(config: CLIConfig, flags: Record<string, any>): PipelineEnv;
|
|
86
87
|
/**
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x1bf20f,_0x1237cd){const _0x42f896=a128_0x5b31,_0x49ccdb=_0x1bf20f();while(!![]){try{const _0x3a1a35=-parseInt(_0x42f896(0x198))/0x1+-parseInt(_0x42f896(0x1a0))/0x2*(parseInt(_0x42f896(0x16c))/0x3)+-parseInt(_0x42f896(0x16d))/0x4*(parseInt(_0x42f896(0x19c))/0x5)+parseInt(_0x42f896(0x194))/0x6*(parseInt(_0x42f896(0x18e))/0x7)+parseInt(_0x42f896(0x178))/0x8*(-parseInt(_0x42f896(0x159))/0x9)+-parseInt(_0x42f896(0x19f))/0xa+parseInt(_0x42f896(0x183))/0xb;if(_0x3a1a35===_0x1237cd)break;else _0x49ccdb['push'](_0x49ccdb['shift']());}catch(_0x4ea57a){_0x49ccdb['push'](_0x49ccdb['shift']());}}}(a128_0x22a4,0x7726f));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';function a128_0x22a4(){const _0x508ff1=['has','699055bueinc','defaultApp','defaultVerbose','includes','write','../commands/app/remote-source.js','18ckTUbD','validation','object','ClientAk','419532MqGwIR','pageSize','newConfigFileName','requiresAuth','25CkRVlR','env','High-risk\x20operation\x20`','3781130QAuYvW','16iTwofp','rawFlags','verbose','schema','cancelled','6651tnBNHG','nativeToolAvailable','currentApp','error','Unknown\x20app:\x20','appcode\x20\x22','high-risk-write','APPCODE','cli-skill','filter','execute','update','authRequired','accessKey','../core/sdk-client.js','confirmHighRisk','../core/api-client.js','\x20\x20To\x20proceed:\x20','runtimeDomain','320883lPQLxq','344116PQCxyn','Run\x20`','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','riskLevel','map','command','trim','Set\x20accessKey\x20in\x20','appCode','nativeToolRequired','local-alias','7568dKnqts','string','mergedCli','isNonInteractive','appCodeSource','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','format','nonInteractive','service','resolve','requiresAppCode','32681264fCQwRS','formatOutput','app','name','\x20or\x20pass\x20','items','defaultPageSize','production','pretty','appcode'];a128_0x22a4=function(){return _0x508ff1;};return a128_0x22a4();}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(_0xa24c64){const _0x250eab=a128_0x5b31;return void _0xa24c64,AUTH_MODE[_0x250eab(0x197)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x18160b,_0x29cd3e){const _0x213a06=a128_0x5b31,_0x3e5106=typeof _0x29cd3e[_0x213a06(0x185)]==='string'&&_0x29cd3e[_0x213a06(0x185)][_0x213a06(0x173)]();return{'rawFlags':_0x29cd3e,'appCode':_0x18160b[_0x213a06(0x175)]||productEnv(_0x213a06(0x160))||(_0x3e5106?undefined:readAppCodeFromConfig()),'appCodeSource':_0x18160b['appCodeSource'],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x29cd3e),'defaultFormat':_0x18160b[_0x213a06(0x17e)],'defaultPageSize':_0x18160b[_0x213a06(0x199)],'defaultVerbose':_0x18160b[_0x213a06(0x1a2)],'riskLevel':_0x18160b[_0x213a06(0x170)],'nativeToolAvailable':_0x18160b[_0x213a06(0x15a)],'accessKey':_0x18160b['accessKey'],'env':_0x18160b[_0x213a06(0x19d)],'mergedCli':{'defaultApp':_0x18160b[_0x213a06(0x18f)],'currentApp':_0x18160b[_0x213a06(0x15b)],'appCode':_0x18160b[_0x213a06(0x175)]}};}export function createLovrabetRunnerAdapter(_0x2bf852={}){const _0x1a65ca=a128_0x5b31,_0x1a2364={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x1a65ca(0x162)](_0x4673b4=>PIPELINE_FLAG_NAMES[_0x1a65ca(0x18d)](_0x4673b4[_0x1a65ca(0x186)]))[_0x1a65ca(0x171)](({name:_0x472f0c,type:_0x3173e8,description:_0xac8f58})=>({'name':_0x472f0c,'type':_0x3173e8,'description':_0xac8f58})),'formatOutput':_0x2bf852[_0x1a65ca(0x184)]??formatOutput,'getCommandLabel'(_0x37b4f6){const _0x325c26=_0x1a65ca;return CLI_BIN_NAME+'\x20'+_0x37b4f6[_0x325c26(0x180)]+'\x20'+_0x37b4f6['command'];},'riskPolicy':{'onViolation'(_0x24dacd,{def:_0x384faf,env:_0x191064}){const _0x21bf21=_0x1a65ca;if(shouldRouteWriteToNativeTool(_0x384faf,_0x191064))return;console[_0x21bf21(0x15c)](_0x24dacd);},'createError'(_0x5478ae,{def:_0x487fb4,env:_0x2c4440}){const _0xecc045=_0x1a65ca;if(shouldRouteWriteToNativeTool(_0x487fb4,_0x2c4440))return CliErrors[_0xecc045(0x176)](CLI_BIN_NAME+'\x20'+_0x487fb4['service']+'\x20'+_0x487fb4[_0xecc045(0x172)]);return CliErrors['cancelled'](_0x5478ae);}},async 'prepare'(_0x2385ef,_0x547fe3){const _0xbf3872=_0x1a65ca,_0x1bfcdc=resolveAuthMode(_0x547fe3);if(_0x2385ef[_0xbf3872(0x19b)]!==![]){if(!_0x547fe3[_0xbf3872(0x166)])throw CliErrors[_0xbf3872(0x165)](_0xbf3872(0x174)+PRODUCT_CONFIG['newConfigFileName']+_0xbf3872(0x187)+productEnvName('ACCESS_KEY')+'.');const {setActiveAK:_0x108dfc}=await import('../core/api-client.js');_0x108dfc(_0x547fe3[_0xbf3872(0x166)]);}let _0x4f6496='';if(_0x2385ef[_0xbf3872(0x182)]!==![]){_0x4f6496=_0x547fe3['appCode']??'',_0x4f6496=await resolveExplicitAppName(_0x2385ef,_0x547fe3,_0x4f6496);if(!_0x4f6496){await assertSelectedAppNameIsRuntimeAccessible(_0x2385ef,_0x547fe3);throw CliErrors['configMissing'](_0xbf3872(0x16f)+PRODUCT_CONFIG[_0xbf3872(0x19a)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x2385ef,_0x547fe3,_0x4f6496);}if(_0x4f6496){const {initSdkClient:_0x226acb}=await import(_0xbf3872(0x167));_0x226acb({'appCode':_0x4f6496,'env':_0x547fe3[_0xbf3872(0x19d)]??_0xbf3872(0x18a),'runtimeDomain':_0x547fe3[_0xbf3872(0x16b)],'accessKey':_0x547fe3[_0xbf3872(0x166)],'authMode':_0x1bfcdc}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x547fe3[_0xbf3872(0x190)]},'numbers':{'pagesize':_0x547fe3[_0xbf3872(0x189)]}},'extras':{'appCode':_0x4f6496,'cookie':'','apiDomain':_0x547fe3['apiDomain'],'apiDir':'','accessKey':_0x547fe3[_0xbf3872(0x166)],'envName':_0x547fe3[_0xbf3872(0x19d)],'mergedCli':_0x547fe3[_0xbf3872(0x17a)]}};},'confirmHighRisk':_0x2bf852[_0x1a65ca(0x168)]??(async({def:_0x5d52c2,env:_0x423b09,flags:_0x548b6d,commandLabel:_0x203e7d})=>{const _0x2d6d2e=_0x1a65ca;if(_0x423b09[_0x2d6d2e(0x17b)]){const _0x3da53e=reconstructCommandArgv(_0x5d52c2,_0x548b6d);throw CliErrors[_0x2d6d2e(0x195)](_0x2d6d2e(0x19e)+_0x203e7d+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a'+(_0x2d6d2e(0x16a)+_0x3da53e));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x5d52c2,_0x203e7d,_0x548b6d),'createCancelledError':_0x50df6e=>CliErrors[_0x2d6d2e(0x158)](_0x50df6e)});}),'mapDryRunError'(_0x517331){return mapUserFacingExecuteError(_0x517331);},'mapExecuteError'(_0x4e48e8){return mapUserFacingExecuteError(_0x4e48e8);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x1a2364;}function shouldRouteWriteToNativeTool(_0xca2cee,_0x39a8f2){const _0x5868fd=a128_0x5b31;return _0x39a8f2[_0x5868fd(0x15a)]===!![]&&(_0xca2cee['risk']===_0x5868fd(0x192)||_0xca2cee['risk']===_0x5868fd(0x15f));}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x13ef45=a128_0x5b31;try{if(sdkClientInitialized){const {clearSdkClient:_0x17d73a}=await import(_0x13ef45(0x167));_0x17d73a();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0xd4533b}=await import(_0x13ef45(0x169));_0xd4533b();}}async function resolveExplicitAppName(_0x6c88c0,_0x45ea26,_0x968f98){const _0x39d487=a128_0x5b31;if(_0x6c88c0['requiresAppCode']===![])return _0x968f98;const _0x4deb1c=typeof _0x45ea26[_0x39d487(0x1a1)][_0x39d487(0x185)]===_0x39d487(0x179)?_0x45ea26[_0x39d487(0x1a1)][_0x39d487(0x185)][_0x39d487(0x173)]():'';if(!_0x4deb1c)return _0x968f98;const _0x2d2e41=typeof _0x45ea26[_0x39d487(0x1a1)][_0x39d487(0x18c)]==='string'&&_0x45ea26[_0x39d487(0x1a1)]['appcode'][_0x39d487(0x173)]()||productEnv(_0x39d487(0x160));if(_0x2d2e41||_0x45ea26[_0x39d487(0x17c)]===_0x39d487(0x177))return _0x968f98;const {getRemoteAppList:_0x2f6ce7}=await import(_0x39d487(0x193)),_0xc6bc8d=await _0x2f6ce7({'env':_0x45ea26['env']??_0x39d487(0x18a),'accessKey':_0x45ea26[_0x39d487(0x166)]}),_0x157184=findAppByName(_0xc6bc8d[_0x39d487(0x188)],_0x4deb1c);if(_0x157184&&!isRuntimeAccessibleApp(_0x157184))throw runtimeInaccessibleAppError(_0x157184,'\x22'+_0x4deb1c+'\x22');const _0x540b42=_0x157184?.[_0x39d487(0x175)]?.[_0x39d487(0x173)]();if(_0x540b42)return _0x540b42;throw CliErrors[_0x39d487(0x195)](_0x39d487(0x15d)+_0x4deb1c,_0x39d487(0x16e)+CLI_BIN_NAME+_0x39d487(0x17d)+_0x4deb1c+'.appcode\x20to\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x10f712,_0x54983e){const _0x1b373b=a128_0x5b31;if(_0x10f712[_0x1b373b(0x182)]===![]||!_0x54983e[_0x1b373b(0x166)])return;const _0x577801=(typeof _0x54983e['rawFlags'][_0x1b373b(0x185)]===_0x1b373b(0x179)&&_0x54983e[_0x1b373b(0x1a1)][_0x1b373b(0x185)][_0x1b373b(0x173)]()?_0x54983e['rawFlags'][_0x1b373b(0x185)]:_0x54983e[_0x1b373b(0x17a)]?.[_0x1b373b(0x15b)]??_0x54983e[_0x1b373b(0x17a)]?.['defaultApp'])?.[_0x1b373b(0x173)]();if(!_0x577801)return;const {getRemoteAppList:_0x164921}=await import('../commands/app/remote-source.js'),_0x3f9d89=await _0x164921({'env':_0x54983e[_0x1b373b(0x19d)]??_0x1b373b(0x18a),'accessKey':_0x54983e[_0x1b373b(0x166)]}),_0x106556=findAppByName(_0x3f9d89[_0x1b373b(0x188)],_0x577801);if(_0x106556&&!isRuntimeAccessibleApp(_0x106556))throw runtimeInaccessibleAppError(_0x106556,'\x22'+_0x577801+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x288756,_0x8b3e6c,_0xc9944a){const _0x5cab9f=a128_0x5b31;if(_0x288756[_0x5cab9f(0x182)]===![]||!_0x8b3e6c[_0x5cab9f(0x166)])return;const {getRemoteAppList:_0xc10aed}=await import(_0x5cab9f(0x193)),_0x15269d=await _0xc10aed({'env':_0x8b3e6c[_0x5cab9f(0x19d)]??'production','accessKey':_0x8b3e6c[_0x5cab9f(0x166)]}),_0x45cc2e=findAppByCode(_0x15269d[_0x5cab9f(0x188)],_0xc9944a);if(_0x45cc2e&&!isRuntimeAccessibleApp(_0x45cc2e))throw runtimeInaccessibleAppError(_0x45cc2e,_0x5cab9f(0x15e)+_0xc9944a+'\x22');}export async function runCommand(_0x1c5379,_0xf944f6,_0x14e916=terminalRunnerAdapter){const _0x9cec71=a128_0x5b31;assertKnownCommandFlags(_0x1c5379,_0xf944f6[_0x9cec71(0x1a1)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x1c5379)?withVersionPolicy(_0x1c5379):_0x1c5379,_0xf944f6,_0x14e916);}function shouldApplyVersionPolicy(_0x7534){const _0x44c68c=a128_0x5b31;if([_0x44c68c(0x164),_0x44c68c(0x157),'doctor'][_0x44c68c(0x191)](_0x7534[_0x44c68c(0x180)]))return![];return!(_0x7534[_0x44c68c(0x180)]===_0x44c68c(0x161)&&_0x7534[_0x44c68c(0x172)]==='install');}function withVersionPolicy(_0x4b1884){return{..._0x4b1884,async 'execute'(_0x47c8c7){const _0x297a13=a128_0x5b31,_0x5038b4=await checkCliVersion();assertCliVersionSupported(_0x5038b4);const _0x396c2a=shouldResolveUpdateNotice(_0x47c8c7)?resolveLatestUpdateNotice(_0x5038b4)['catch'](()=>null):Promise[_0x297a13(0x181)](null),_0x155df8=await _0x4b1884[_0x297a13(0x163)](_0x47c8c7);return attachUpdateNotice(_0x155df8,await _0x396c2a);}};}function a128_0x5b31(_0x323c07,_0x2d346c){_0x323c07=_0x323c07-0x157;const _0x22a45b=a128_0x22a4();let _0x5b3118=_0x22a45b[_0x323c07];return _0x5b3118;}function shouldResolveUpdateNotice(_0x51ed76){const _0x132350=a128_0x5b31;return _0x51ed76[_0x132350(0x17e)]===_0x132350(0x18b)&&!_0x51ed76[_0x132350(0x17f)];}function attachUpdateNotice(_0x1df868,_0x52f067){const _0x5ea8a1=a128_0x5b31;if(!_0x52f067||!_0x1df868||typeof _0x1df868!==_0x5ea8a1(0x196))return _0x1df868;const _0x31d079=_0x1df868,_0x1d2448=typeof _0x31d079['_notice']===_0x5ea8a1(0x196)&&_0x31d079['_notice']!==null?_0x31d079['_notice']:{};return{..._0x31d079,'_notice':{..._0x1d2448,'update':_0x52f067}};}
|
|
1
|
+
(function(_0x3b029c,_0x4b53ce){const _0x588ab0=a128_0x1bf6,_0xae072d=_0x3b029c();while(!![]){try{const _0x3e998d=parseInt(_0x588ab0(0xe2))/0x1+parseInt(_0x588ab0(0x101))/0x2*(parseInt(_0x588ab0(0xf3))/0x3)+parseInt(_0x588ab0(0x10b))/0x4+-parseInt(_0x588ab0(0xef))/0x5+parseInt(_0x588ab0(0xdd))/0x6+-parseInt(_0x588ab0(0x100))/0x7+-parseInt(_0x588ab0(0xfd))/0x8;if(_0x3e998d===_0x4b53ce)break;else _0xae072d['push'](_0xae072d['shift']());}catch(_0x4664dd){_0xae072d['push'](_0xae072d['shift']());}}}(a128_0x6676,0x8d187));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,productEnvName}from'../constant/product.js';import{isNonInteractiveMode}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';function a128_0x1bf6(_0x426776,_0x41f33c){_0x426776=_0x426776-0xcf;const _0x6676d1=a128_0x6676();let _0x1bf609=_0x6676d1[_0x426776];return _0x1bf609;}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(_0x326771){const _0x275993=a128_0x1bf6;return void _0x326771,AUTH_MODE[_0x275993(0xf7)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x5b576c,_0xdb2124){const _0x32d603=a128_0x1bf6;return{'rawFlags':_0xdb2124,'appCode':_0x5b576c[_0x32d603(0xdb)],'appCodeSource':_0x5b576c['appCodeSource'],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0xdb2124),'defaultFormat':_0x5b576c[_0x32d603(0xe7)],'defaultPageSize':_0x5b576c[_0x32d603(0x10f)],'defaultVerbose':_0x5b576c[_0x32d603(0x116)],'riskLevel':_0x5b576c['riskLevel'],'nativeToolAvailable':_0x5b576c[_0x32d603(0x112)],'accessKey':_0x5b576c[_0x32d603(0x111)],'accessKeySource':_0x5b576c[_0x32d603(0xd7)],'env':_0x5b576c[_0x32d603(0x107)],'mergedCli':{'defaultApp':_0x5b576c[_0x32d603(0x104)],'currentApp':_0x5b576c[_0x32d603(0x113)],'appCode':_0x5b576c[_0x32d603(0xdb)]}};}export function createLovrabetRunnerAdapter(_0x41354e={}){const _0x254139=a128_0x1bf6,_0x5bae0={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x254139(0x115)](_0x381c19=>PIPELINE_FLAG_NAMES[_0x254139(0x106)](_0x381c19[_0x254139(0xf6)]))['map'](({name:_0x4883f8,type:_0x43f1f8,description:_0x4d396b})=>({'name':_0x4883f8,'type':_0x43f1f8,'description':_0x4d396b})),'formatOutput':_0x41354e[_0x254139(0xd9)]??formatOutput,'getCommandLabel'(_0x396522){const _0x1e4841=_0x254139;return CLI_BIN_NAME+'\x20'+_0x396522[_0x1e4841(0xe0)]+'\x20'+_0x396522[_0x1e4841(0xf4)];},'riskPolicy':{'onViolation'(_0x33ba8d,{def:_0x4c0a94,env:_0x982c4d}){const _0x40b471=_0x254139;if(shouldRouteWriteToNativeTool(_0x4c0a94,_0x982c4d))return;console[_0x40b471(0x105)](_0x33ba8d);},'createError'(_0x321254,{def:_0x499df2,env:_0x489cc2}){const _0x5c3724=_0x254139;if(shouldRouteWriteToNativeTool(_0x499df2,_0x489cc2))return CliErrors[_0x5c3724(0xed)](CLI_BIN_NAME+'\x20'+_0x499df2[_0x5c3724(0xe0)]+'\x20'+_0x499df2[_0x5c3724(0xf4)]);return CliErrors['cancelled'](_0x321254);}},async 'prepare'(_0xc70787,_0x1c2f37){const _0x45312f=_0x254139,_0xeca03c=resolveAuthMode(_0x1c2f37);if(_0xc70787[_0x45312f(0xd1)]!==![]){if(!_0x1c2f37['accessKey'])throw CliErrors[_0x45312f(0xfe)]('Set\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x45312f(0x10e)]+_0x45312f(0xde)+productEnvName(_0x45312f(0x102))+'.');const {setActiveAK:_0x13c604}=await import('../core/api-client.js');_0x13c604(_0x1c2f37[_0x45312f(0x111)]);}let _0x5746e1='';if(_0xc70787[_0x45312f(0x108)]!==![]){_0x5746e1=_0x1c2f37['appCode']??'',_0x5746e1=await resolveExplicitAppName(_0xc70787,_0x1c2f37,_0x5746e1);if(!_0x5746e1){await assertSelectedAppNameIsRuntimeAccessible(_0xc70787,_0x1c2f37);throw CliErrors[_0x45312f(0xd4)]('Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20'+PRODUCT_CONFIG[_0x45312f(0x10e)]+'.');}await assertAppCodeIsRuntimeAccessible(_0xc70787,_0x1c2f37,_0x5746e1);}if(_0x5746e1){const {initSdkClient:_0x55dfcc}=await import('../core/sdk-client.js');_0x55dfcc({'appCode':_0x5746e1,'env':_0x1c2f37['env']??_0x45312f(0xd3),'runtimeDomain':_0x1c2f37[_0x45312f(0x10c)],'accessKey':_0x1c2f37[_0x45312f(0x111)],'authMode':_0xeca03c}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x1c2f37[_0x45312f(0x109)]},'numbers':{'pagesize':_0x1c2f37['defaultPageSize']}},'extras':{'appCode':_0x5746e1,'cookie':'','apiDomain':_0x1c2f37[_0x45312f(0x103)],'apiDir':'','accessKey':_0x1c2f37[_0x45312f(0x111)],'envName':_0x1c2f37[_0x45312f(0x107)],'accessKeySource':_0x1c2f37[_0x45312f(0xd7)],'mergedCli':_0x1c2f37[_0x45312f(0xd6)]}};},'confirmHighRisk':_0x41354e[_0x254139(0xd0)]??(async({def:_0x674329,env:_0x4c01bd,flags:_0x36a725,commandLabel:_0xe348b5})=>{const _0x251897=_0x254139;if(_0x4c01bd[_0x251897(0xdc)]){const _0xf1bd2a=reconstructCommandArgv(_0x674329,_0x36a725);throw CliErrors[_0x251897(0xfb)](_0x251897(0xfa)+_0xe348b5+_0x251897(0xf8)+(_0x251897(0xea)+_0xf1bd2a));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x674329,_0xe348b5,_0x36a725),'createCancelledError':_0x199c5b=>CliErrors['cancelled'](_0x199c5b)});}),'mapDryRunError'(_0xbca3ed){return mapUserFacingExecuteError(_0xbca3ed);},'mapExecuteError'(_0x326d68){return mapUserFacingExecuteError(_0x326d68);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x5bae0;}function shouldRouteWriteToNativeTool(_0x41bf8f,_0x3cf2de){const _0x282428=a128_0x1bf6;return _0x3cf2de[_0x282428(0x112)]===!![]&&(_0x41bf8f[_0x282428(0xd8)]===_0x282428(0xee)||_0x41bf8f[_0x282428(0xd8)]===_0x282428(0xf0));}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x50b982=a128_0x1bf6;try{if(sdkClientInitialized){const {clearSdkClient:_0x202783}=await import(_0x50b982(0xe4));_0x202783();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x4ab747}=await import(_0x50b982(0x10d));_0x4ab747();}}async function resolveExplicitAppName(_0x62041a,_0x475ba4,_0x52811e){const _0x405697=a128_0x1bf6;if(_0x62041a['requiresAppCode']===![])return _0x52811e;const _0x78c6a3=typeof _0x475ba4['rawFlags'][_0x405697(0xe1)]===_0x405697(0xec)?_0x475ba4[_0x405697(0xe3)][_0x405697(0xe1)][_0x405697(0xf2)]():'';if(!_0x78c6a3)return _0x52811e;const _0x5368f2=typeof _0x475ba4[_0x405697(0xe3)]['appcode']===_0x405697(0xec)&&_0x475ba4[_0x405697(0xe3)][_0x405697(0xdf)][_0x405697(0xf2)]();if(_0x5368f2||_0x475ba4[_0x405697(0xe5)]===_0x405697(0xe9))return _0x52811e;const {getRemoteAppList:_0x56c392}=await import(_0x405697(0xf5)),_0x28ac27=await _0x56c392({'env':_0x475ba4[_0x405697(0x107)]??'production','accessKey':_0x475ba4[_0x405697(0x111)]}),_0x1db605=findAppByName(_0x28ac27[_0x405697(0xcf)],_0x78c6a3);if(_0x1db605&&!isRuntimeAccessibleApp(_0x1db605))throw runtimeInaccessibleAppError(_0x1db605,'\x22'+_0x78c6a3+'\x22');const _0x4d3a7d=_0x1db605?.['appCode']?.[_0x405697(0xf2)]();if(_0x4d3a7d)return _0x4d3a7d;throw CliErrors[_0x405697(0xfb)]('Unknown\x20app:\x20'+_0x78c6a3,_0x405697(0xd5)+CLI_BIN_NAME+_0x405697(0x114)+_0x78c6a3+'.appcode\x20to\x20'+PRODUCT_CONFIG[_0x405697(0x10e)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x164a65,_0xdc8d94){const _0x5a8569=a128_0x1bf6;if(_0x164a65[_0x5a8569(0x108)]===![]||!_0xdc8d94[_0x5a8569(0x111)])return;const _0x3d8158=(typeof _0xdc8d94['rawFlags']['app']===_0x5a8569(0xec)&&_0xdc8d94[_0x5a8569(0xe3)][_0x5a8569(0xe1)][_0x5a8569(0xf2)]()?_0xdc8d94[_0x5a8569(0xe3)][_0x5a8569(0xe1)]:_0xdc8d94[_0x5a8569(0xd6)]?.[_0x5a8569(0x113)]??_0xdc8d94[_0x5a8569(0xd6)]?.['defaultApp'])?.[_0x5a8569(0xf2)]();if(!_0x3d8158)return;const {getRemoteAppList:_0x26bc58}=await import(_0x5a8569(0xf5)),_0x6e140a=await _0x26bc58({'env':_0xdc8d94[_0x5a8569(0x107)]??_0x5a8569(0xd3),'accessKey':_0xdc8d94[_0x5a8569(0x111)]}),_0x4384b5=findAppByName(_0x6e140a[_0x5a8569(0xcf)],_0x3d8158);if(_0x4384b5&&!isRuntimeAccessibleApp(_0x4384b5))throw runtimeInaccessibleAppError(_0x4384b5,'\x22'+_0x3d8158+'\x22');}function a128_0x6676(){const _0x9d38ec=['3248952fQgHrz','authRequired','pretty','4502190dPEosx','11056UhCKpm','ACCESS_KEY','apiDomain','defaultApp','error','has','env','requiresAppCode','defaultVerbose','catch','3661688kfytrO','runtimeDomain','../core/api-client.js','newConfigFileName','pageSize','schema','accessKey','nativeToolAvailable','currentApp','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','filter','verbose','items','confirmHighRisk','requiresAuth','update','production','configMissing','Run\x20`','mergedCli','accessKeySource','risk','formatOutput','_notice','appCode','isNonInteractive','1323282aJnWfd','\x20or\x20pass\x20','appcode','service','app','1059244nEWreu','rawFlags','../core/sdk-client.js','appCodeSource','nonInteractive','format','execute','local-alias','\x20\x20To\x20proceed:\x20','doctor','string','nativeToolRequired','write','3254585aEbGBk','high-risk-write','resolve','trim','45MAkTEt','command','../commands/app/remote-source.js','name','ClientAk','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','object','High-risk\x20operation\x20`','validation','cli-skill'];a128_0x6676=function(){return _0x9d38ec;};return a128_0x6676();}async function assertAppCodeIsRuntimeAccessible(_0x312b89,_0x12aaeb,_0x4ec408){const _0x5d908c=a128_0x1bf6;if(_0x312b89[_0x5d908c(0x108)]===![]||!_0x12aaeb[_0x5d908c(0x111)])return;const {getRemoteAppList:_0x4c497b}=await import('../commands/app/remote-source.js'),_0x3a8043=await _0x4c497b({'env':_0x12aaeb[_0x5d908c(0x107)]??_0x5d908c(0xd3),'accessKey':_0x12aaeb[_0x5d908c(0x111)]}),_0x34656c=findAppByCode(_0x3a8043[_0x5d908c(0xcf)],_0x4ec408);if(_0x34656c&&!isRuntimeAccessibleApp(_0x34656c))throw runtimeInaccessibleAppError(_0x34656c,'appcode\x20\x22'+_0x4ec408+'\x22');}export async function runCommand(_0xd83de5,_0x4ba271,_0x1fd2e5=terminalRunnerAdapter){const _0x58d046=a128_0x1bf6;assertKnownCommandFlags(_0xd83de5,_0x4ba271[_0x58d046(0xe3)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0xd83de5)?withVersionPolicy(_0xd83de5):_0xd83de5,_0x4ba271,_0x1fd2e5);}function shouldApplyVersionPolicy(_0x3e1147){const _0x39342c=a128_0x1bf6;if([_0x39342c(0xd2),_0x39342c(0x110),_0x39342c(0xeb)]['includes'](_0x3e1147[_0x39342c(0xe0)]))return![];return!(_0x3e1147[_0x39342c(0xe0)]===_0x39342c(0xfc)&&_0x3e1147[_0x39342c(0xf4)]==='install');}function withVersionPolicy(_0x369ee4){return{..._0x369ee4,async 'execute'(_0x34af01){const _0x332372=a128_0x1bf6,_0x594f02=await checkCliVersion();assertCliVersionSupported(_0x594f02);const _0x58e26f=shouldResolveUpdateNotice(_0x34af01)?resolveLatestUpdateNotice(_0x594f02)[_0x332372(0x10a)](()=>null):Promise[_0x332372(0xf1)](null),_0x3a451e=await _0x369ee4[_0x332372(0xe8)](_0x34af01);return attachUpdateNotice(_0x3a451e,await _0x58e26f);}};}function shouldResolveUpdateNotice(_0x367d3a){const _0xaf423a=a128_0x1bf6;return _0x367d3a[_0xaf423a(0xe7)]===_0xaf423a(0xff)&&!_0x367d3a[_0xaf423a(0xe6)];}function attachUpdateNotice(_0x5178ed,_0x3284b2){const _0x45943c=a128_0x1bf6;if(!_0x3284b2||!_0x5178ed||typeof _0x5178ed!=='object')return _0x5178ed;const _0x10ad1a=_0x5178ed,_0x1c5d9d=typeof _0x10ad1a[_0x45943c(0xda)]===_0x45943c(0xf9)&&_0x10ad1a[_0x45943c(0xda)]!==null?_0x10ad1a['_notice']:{};return{..._0x10ad1a,'_notice':{..._0x1c5d9d,'update':_0x3284b2}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a129_0x577b(){const _0x176231=['1740BEewkF','70NroFqc','4613705YNbWXO','8bWOGpF','commands','1351890avVeev','1796FVVXbg','services','../commands/registry.js','map','6OtyMMw','requiresAuth','86901dDLhbT','service','filter','55880SgybvQ','42ZvrRPs','required','3794371vZCThR','auth','7407uPOjlb','has'];a129_0x577b=function(){return _0x176231;};return a129_0x577b();}(function(_0x24fc22,_0x5024bd){const _0x48127e=a129_0x6282,_0x472e29=_0x24fc22();while(!![]){try{const _0x4daa2c=parseInt(_0x48127e(0xae))/0x1+-parseInt(_0x48127e(0xa7))/0x2+parseInt(_0x48127e(0x9c))/0x3*(parseInt(_0x48127e(0xa8))/0x4)+parseInt(_0x48127e(0xa4))/0x5*(parseInt(_0x48127e(0xac))/0x6)+-parseInt(_0x48127e(0x9e))/0x7*(parseInt(_0x48127e(0xa5))/0x8)+-parseInt(_0x48127e(0xa0))/0x9*(parseInt(_0x48127e(0xa3))/0xa)+-parseInt(_0x48127e(0x9b))/0xb*(-parseInt(_0x48127e(0xa2))/0xc);if(_0x4daa2c===_0x5024bd)break;else _0x472e29['push'](_0x472e29['shift']());}catch(_0x33861e){_0x472e29['push'](_0x472e29['shift']());}}}(a129_0x577b,0x81181));import{buildSchemaPayload as a129_0x182aaa}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 _0x425e74=a129_0x6282,{serviceRegistry:_0x379d34,findDefinition:_0x924069}=await import(_0x425e74(0xaa)),_0x21ee9d=new Set(_0x379d34[_0x425e74(0xab)](_0x16c6d0=>_0x16c6d0['service'])),_0x124e7e=listDynamicServiceEntries()[_0x425e74(0x9a)](_0x445f0c=>!_0x21ee9d[_0x425e74(0xa1)](_0x445f0c[_0x425e74(0x99)])),_0xd84860=a129_0x182aaa({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x379d34,_0x124e7e),'buildAllFlags':buildAllFlags,'findDefinition':(_0x2eb3a7,_0x39ad60)=>_0x924069(_0x2eb3a7,_0x39ad60)??findDynamicServiceDefinition(_0x2eb3a7,_0x39ad60)});return normalizeSchemaPayload(_0xd84860);}function normalizeSchemaPayload(_0x400c8d){const _0x5e059e=a129_0x6282;return{..._0x400c8d,'schemaVersion':0x2,'services':_0x400c8d[_0x5e059e(0xa9)][_0x5e059e(0xab)](_0x358c0f=>({..._0x358c0f,'commands':_0x358c0f[_0x5e059e(0xa6)][_0x5e059e(0xab)](normalizeSchemaCommand)}))};}function a129_0x6282(_0x2a6305,_0x5ab9d4){_0x2a6305=_0x2a6305-0x99;const _0x577bf4=a129_0x577b();let _0x62825=_0x577bf4[_0x2a6305];return _0x62825;}function normalizeSchemaCommand(_0x450a3f){const _0x1f17a2=a129_0x6282,_0x1a566e=_0x450a3f;return{..._0x450a3f,'auth':_0x1a566e[_0x1f17a2(0x9f)]??(_0x450a3f[_0x1f17a2(0xad)]?_0x1f17a2(0x9d):'none')};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a130_0x57f8(){const _0x212e9c=['30PnBCgN','980445AppIYJ','6870oTgHzS','length','7341520srcMvw','72693TzcEKy','62kTEtqV','findIndex','48efXRgG','service','808402HjiXoh','slice','915564GhnSmy','98536EIphkv'];a130_0x57f8=function(){return _0x212e9c;};return a130_0x57f8();}(function(_0x2d3f67,_0x1c25c6){const _0x41951b=a130_0x35a4,_0x32f8e1=_0x2d3f67();while(!![]){try{const _0x16ef5f=parseInt(_0x41951b(0x1a0))/0x1*(-parseInt(_0x41951b(0x1a4))/0x2)+parseInt(_0x41951b(0x19f))/0x3+parseInt(_0x41951b(0x19d))/0x4+parseInt(_0x41951b(0x19e))/0x5*(parseInt(_0x41951b(0x19c))/0x6)+parseInt(_0x41951b(0x1a8))/0x7+parseInt(_0x41951b(0x1a6))/0x8*(parseInt(_0x41951b(0x1a3))/0x9)+-parseInt(_0x41951b(0x1a2))/0xa;if(_0x16ef5f===_0x1c25c6)break;else _0x32f8e1['push'](_0x32f8e1['shift']());}catch(_0x2dd381){_0x32f8e1['push'](_0x32f8e1['shift']());}}}(a130_0x57f8,0x761ff));function a130_0x35a4(_0xcfc759,_0x52edbc){_0xcfc759=_0xcfc759-0x19c;const _0x57f86b=a130_0x57f8();let _0x35a4ad=_0x57f86b[_0xcfc759];return _0x35a4ad;}export function insertDynamicServicesAfterServiceTree(_0x622cca,_0x3ccd9f){const _0x10ed02=a130_0x35a4;if(_0x3ccd9f[_0x10ed02(0x1a1)]===0x0)return[..._0x622cca];const _0x478b12=_0x622cca[_0x10ed02(0x1a5)](_0x466a98=>_0x466a98[_0x10ed02(0x1a7)]===_0x10ed02(0x1a7));if(_0x478b12<0x0)return[..._0x622cca,..._0x3ccd9f];return[..._0x622cca['slice'](0x0,_0x478b12+0x1),..._0x3ccd9f,..._0x622cca[_0x10ed02(0x1a9)](_0x478b12+0x1)];}
|
package/lib/framework/types.d.ts
CHANGED
|
@@ -67,6 +67,8 @@ export interface RuntimeContextExtras {
|
|
|
67
67
|
* require it (e.g. `init` and `help`).
|
|
68
68
|
*/
|
|
69
69
|
accessKey?: string;
|
|
70
|
+
/** Source of the resolved credential, without its value. */
|
|
71
|
+
accessKeySource?: string;
|
|
70
72
|
/** The normalized environment name. */
|
|
71
73
|
envName?: "production" | "development" | "daily";
|
|
72
74
|
/** Name of the currently selected app profile (if any). */
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a131_0x442c(_0x329429,_0x46dd8b){_0x329429=_0x329429-0x67;var _0x335074=a131_0x3350();var _0x442c73=_0x335074[_0x329429];return _0x442c73;}(function(_0x228297,_0x235f23){var _0x42de64=a131_0x442c,_0x194acd=_0x228297();while(!![]){try{var _0x4ccf08=-parseInt(_0x42de64(0x6f))/0x1+parseInt(_0x42de64(0x6a))/0x2*(parseInt(_0x42de64(0x6d))/0x3)+-parseInt(_0x42de64(0x6c))/0x4*(-parseInt(_0x42de64(0x6b))/0x5)+parseInt(_0x42de64(0x71))/0x6+-parseInt(_0x42de64(0x69))/0x7*(parseInt(_0x42de64(0x67))/0x8)+parseInt(_0x42de64(0x70))/0x9+-parseInt(_0x42de64(0x68))/0xa*(parseInt(_0x42de64(0x6e))/0xb);if(_0x4ccf08===_0x235f23)break;else _0x194acd['push'](_0x194acd['shift']());}catch(_0x594855){_0x194acd['push'](_0x194acd['shift']());}}}(a131_0x3350,0xac80f));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a131_0x3350(){var _0x13e9a5=['1024wZSCOj','890HGkAcZ','51044IXyaVp','60nOAsLz','10edIoev','990568ARHUqP','133185pvMuBc','21043ixPGQX','1269686wVAxSo','4377672pvgYAk','4598112MEucTu'];a131_0x3350=function(){return _0x13e9a5;};return a131_0x3350();}
|
|
@@ -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-11-
|
|
1
|
+
export declare const VERSION = "2.3.10-beta.1";
|
|
2
|
+
export declare const GIT_TAG = "v2.3.10-beta.1";
|
|
3
|
+
export declare const GIT_COMMIT = "b5431a3";
|
|
4
|
+
export declare const BUILD_TIME = "2026-11-04T06:01:46.815Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a132_0x3e3ce4=a132_0x4a61;(function(_0x409c60,_0x5cf3cb){const _0x27306d=a132_0x4a61,_0x5dcf28=_0x409c60();while(!![]){try{const _0x16e086=parseInt(_0x27306d(0x86))/0x1+parseInt(_0x27306d(0x88))/0x2*(parseInt(_0x27306d(0x8b))/0x3)+-parseInt(_0x27306d(0x81))/0x4*(parseInt(_0x27306d(0x8a))/0x5)+-parseInt(_0x27306d(0x84))/0x6*(parseInt(_0x27306d(0x87))/0x7)+parseInt(_0x27306d(0x82))/0x8+-parseInt(_0x27306d(0x8d))/0x9+-parseInt(_0x27306d(0x83))/0xa*(parseInt(_0x27306d(0x8c))/0xb);if(_0x16e086===_0x5cf3cb)break;else _0x5dcf28['push'](_0x5dcf28['shift']());}catch(_0x119791){_0x5dcf28['push'](_0x5dcf28['shift']());}}}(a132_0x55fb,0xd1197));export const VERSION='2.3.10-beta.1';export const GIT_TAG=a132_0x3e3ce4(0x85);export const GIT_COMMIT='b5431a3';function a132_0x4a61(_0x38081a,_0x58832f){_0x38081a=_0x38081a-0x81;const _0x55fb24=a132_0x55fb();let _0x4a610b=_0x55fb24[_0x38081a];return _0x4a610b;}function a132_0x55fb(){const _0x479af4=['700PjsKPK','916xuniRy','2026-11-04T06:01:46.815Z','1062290DeByww','9219ePWcGz','244585CWifyK','6135021DOBDwu','4JukPZz','12485984tdQqRa','770KkOVYR','61428bxnQMq','v2.3.10-beta.1','1518311OmfaXp'];a132_0x55fb=function(){return _0x479af4;};return a132_0x55fb();}export const BUILD_TIME=a132_0x3e3ce4(0x89);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a133_0x40d852=a133_0x1fc1;(function(_0x287d4e,_0x2a5211){const _0x22dbb8=a133_0x1fc1,_0x2ebd1b=_0x287d4e();while(!![]){try{const _0xa43b84=parseInt(_0x22dbb8(0x18e))/0x1*(-parseInt(_0x22dbb8(0x176))/0x2)+-parseInt(_0x22dbb8(0x18d))/0x3+-parseInt(_0x22dbb8(0x183))/0x4*(parseInt(_0x22dbb8(0x188))/0x5)+-parseInt(_0x22dbb8(0x17d))/0x6*(parseInt(_0x22dbb8(0x178))/0x7)+parseInt(_0x22dbb8(0x189))/0x8+parseInt(_0x22dbb8(0x171))/0x9+parseInt(_0x22dbb8(0x177))/0xa;if(_0xa43b84===_0x2a5211)break;else _0x2ebd1b['push'](_0x2ebd1b['shift']());}catch(_0x1fa7da){_0x2ebd1b['push'](_0x2ebd1b['shift']());}}}(a133_0x196d,0x774a7));function a133_0x1fc1(_0x4eac7a,_0x48be7e){_0x4eac7a=_0x4eac7a-0x170;const _0x196d70=a133_0x196d();let _0x1fc12f=_0x196d70[_0x4eac7a];return _0x1fc12f;}export const ROUTING_CATALOG_DIGEST=a133_0x40d852(0x17c);export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id',a133_0x40d852(0x17b)];export const ENABLED_REGION_VALUES=['cn','id','global'];function a133_0x196d(){const _0xc2905a=['https://skills.lovrabet.ai','indonesia','45YxBKvJ','5862680IRfPlK','https://api.lovrabet.com','https://user-daily.lovrabet.ai','https://runtime.lovrabet.com','1500246mLQbEU','13BhCqYw','https://daily-api.lovrabet.com','4273218YLEKhd','https://api.lovrabet.ai','https://skills-daily.lovrabet.ai','https://user.lovrabet.com','https://runtime.lovrabet.id','116940CMYNCb','14796310nXvnKF','1975834MGvDQB','https://daily-runtime.lovrabet.ai','https://kb-service.lovrabet.id','global','886843ef89aa4ff2b36d612e8fbd1b6c1840b37728916fba5699be34129ef579','6WAAvbV','Global','https://skills.lovrabet.com','https://api.lovrabet.id','https://daily-api.lovrabet.ai','https://skills.lovrabet.id','291644suVBFL','https://user.lovrabet.ai','https://skills-daily.lovrabet.com'];a133_0x196d=function(){return _0xc2905a;};return a133_0x196d();}export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':'Mainland\x20China','aliases':['china'],'serviceDomains':{'production':{'user':a133_0x40d852(0x174),'api':a133_0x40d852(0x18a),'runtime':a133_0x40d852(0x18c),'skill':a133_0x40d852(0x17f),'kbService':'https://kb-service.lovrabet.com'},'daily':{'user':'https://user-daily.lovrabet.com','api':a133_0x40d852(0x170),'runtime':'https://daily-runtime.lovrabet.com','skill':a133_0x40d852(0x185),'kbService':'https://kb-service-daily.lovrabet.com'}}},'id':{'enabled':!![],'label':'Indonesia','aliases':[a133_0x40d852(0x187)],'serviceDomains':{'production':{'user':'https://user.lovrabet.id','api':a133_0x40d852(0x180),'runtime':a133_0x40d852(0x175),'skill':a133_0x40d852(0x182),'kbService':a133_0x40d852(0x17a)}}},'global':{'enabled':!![],'label':a133_0x40d852(0x17e),'aliases':[],'serviceDomains':{'production':{'user':a133_0x40d852(0x184),'api':a133_0x40d852(0x172),'runtime':'https://runtime.lovrabet.ai','skill':a133_0x40d852(0x186)},'daily':{'user':a133_0x40d852(0x18b),'api':a133_0x40d852(0x181),'runtime':a133_0x40d852(0x179),'skill':a133_0x40d852(0x173)}}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a134_0x29ace2=a134_0x1dbb;(function(_0x39f0ee,_0x51de57){const _0x3c7d2e=a134_0x1dbb,_0x13ec38=_0x39f0ee();while(!![]){try{const _0x35be54=-parseInt(_0x3c7d2e(0xb5))/0x1*(parseInt(_0x3c7d2e(0xb7))/0x2)+parseInt(_0x3c7d2e(0xb6))/0x3*(-parseInt(_0x3c7d2e(0xad))/0x4)+-parseInt(_0x3c7d2e(0xbc))/0x5*(-parseInt(_0x3c7d2e(0xb3))/0x6)+parseInt(_0x3c7d2e(0xb1))/0x7+parseInt(_0x3c7d2e(0xb4))/0x8+-parseInt(_0x3c7d2e(0xaf))/0x9+-parseInt(_0x3c7d2e(0xb9))/0xa;if(_0x35be54===_0x51de57)break;else _0x13ec38['push'](_0x13ec38['shift']());}catch(_0x3f9df6){_0x13ec38['push'](_0x13ec38['shift']());}}}(a134_0x19f3,0xc2b4a));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a134_0x29ace2(0xb8);export const ENTERPRISE_ROUTING_PROTOCOL=a134_0x29ace2(0xbd);function a134_0x1dbb(_0x3f6fbb,_0x41ef21){_0x3f6fbb=_0x3f6fbb-0xac;const _0x19f354=a134_0x19f3();let _0x1dbbc8=_0x19f354[_0x3f6fbb];return _0x1dbbc8;}export const ENTERPRISE_ROUTING_KIND=a134_0x29ace2(0xbb);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a134_0x29ace2(0xb0),a134_0x29ace2(0xba),a134_0x29ace2(0xb2),a134_0x29ace2(0xac),a134_0x29ace2(0xae)];function a134_0x19f3(){const _0x4627ec=['apiDomain','enterprise','48005iNwlfX','lovrabet-routing/v1','skillDomain','22976YOxeNw','kbServiceDomain','4204395inScud','userDomain','7577059zptXuP','runtimeDomain','258KcwDua','8152240EyHIGg','88Stpnte','183MfyDXY','2646KxZUlI','e3423cad71c22edb18a8481be7bdb733ff2d4136c31aa3ae6da56271e32cced7','7828330xQFzMh'];a134_0x19f3=function(){return _0x4627ec;};return a134_0x19f3();}export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a134_0x29ace2(0xb0),'apiDomain',a134_0x29ace2(0xb2),a134_0x29ace2(0xac)];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x490f6a,_0x34c851){const _0x24af80=a135_0x544d,_0xfb838a=_0x490f6a();while(!![]){try{const _0x3254f6=-parseInt(_0x24af80(0xd6))/0x1+parseInt(_0x24af80(0xd7))/0x2+parseInt(_0x24af80(0xd0))/0x3+-parseInt(_0x24af80(0xdb))/0x4+-parseInt(_0x24af80(0xd9))/0x5*(parseInt(_0x24af80(0xd2))/0x6)+-parseInt(_0x24af80(0xd4))/0x7*(parseInt(_0x24af80(0xdc))/0x8)+-parseInt(_0x24af80(0xd1))/0x9*(-parseInt(_0x24af80(0xd8))/0xa);if(_0x3254f6===_0x34c851)break;else _0xfb838a['push'](_0xfb838a['shift']());}catch(_0x479e1b){_0xfb838a['push'](_0xfb838a['shift']());}}}(a135_0x4cf1,0xd16c2));function a135_0x4cf1(){const _0x2e9aab=['755804uahjNN','457262GIDuHZ','10jWbNWS','305535qcwCJO','\x20to\x20view\x20available\x20commands.','6246008KJHkFW','8eSVFhw','4567653liByqb','34122483bzvIXf','138qREqUD','column','6734056XQsjKi','green'];a135_0x4cf1=function(){return _0x2e9aab;};return a135_0x4cf1();}function a135_0x544d(_0x24d8e0,_0xe084b4){_0x24d8e0=_0x24d8e0-0xd0;const _0x4cf181=a135_0x4cf1();let _0x544dc6=_0x4cf181[_0x24d8e0];return _0x544dc6;}import{jsx as a135_0x54abfd,jsxs as a135_0x340784}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x3f1192=a135_0x544d,{exit:_0x434588}=useApp();return useEffect(()=>{_0x434588();},[_0x434588]),a135_0x340784(Box,{'flexDirection':_0x3f1192(0xd3),'marginTop':0x1,'marginBottom':0x1,'children':[a135_0x54abfd(Box,{'children':a135_0x54abfd(Text,{'bold':!![],'color':_0x3f1192(0xd5),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a135_0x340784(Box,{'marginTop':0x1,'children':[a135_0x54abfd(Text,{'dimColor':!![],'children':'\x20\x20Use\x20'}),a135_0x54abfd(Text,{'bold':!![],'color':_0x3f1192(0xd5),'children':CLI_BIN_NAME+'\x20--help'}),a135_0x54abfd(Text,{'dimColor':!![],'children':_0x3f1192(0xda)})]})]});}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xb6f6c9,_0x243dd4){const _0x327cac=a136_0x5a17,_0x5f5923=_0xb6f6c9();while(!![]){try{const _0x11420d=-parseInt(_0x327cac(0x1d9))/0x1+-parseInt(_0x327cac(0x1ec))/0x2+-parseInt(_0x327cac(0x1e5))/0x3+-parseInt(_0x327cac(0x1db))/0x4+-parseInt(_0x327cac(0x1e9))/0x5+-parseInt(_0x327cac(0x1e6))/0x6*(parseInt(_0x327cac(0x1ea))/0x7)+parseInt(_0x327cac(0x1da))/0x8*(parseInt(_0x327cac(0x1df))/0x9);if(_0x11420d===_0x243dd4)break;else _0x5f5923['push'](_0x5f5923['shift']());}catch(_0x1e8d80){_0x5f5923['push'](_0x5f5923['shift']());}}}(a136_0xe7ee,0xba4ef));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a136_0xe7ee(){const _0x189802=['SOURCE_INVALID','FAILED','\x20at\x20','8199YRXTyp','skillVersion','installedPath','installed','code','warn','4143510ygkOZC','6FSZvEl','Installation\x20failed','Repair\x20with:\x20','4934850EIcIII','6398441NrxZOA','repairCommand','411040fiAGdK','\x20via\x20skills@latest','469298bZTHSY','54352jbbaoI','5876776SNTmPW'];a136_0xe7ee=function(){return _0x189802;};return a136_0xe7ee();}function a136_0x5a17(_0x1fe2dc,_0x3b8330){_0x1fe2dc=_0x1fe2dc-0x1d9;const _0xe7ee13=a136_0xe7ee();let _0x5a176a=_0xe7ee13[_0x1fe2dc];return _0x5a176a;}export async function runPostinstall(_0x503941={}){const _0x43a892=a136_0x5a17,_0x4fb200=installBuiltinSkill(_0x503941);if(_0x4fb200['ok']){const _0x1925e1=_0x4fb200['changed']?_0x43a892(0x1e2):'already\x20current',_0x333122=_0x4fb200[_0x43a892(0x1e1)]?_0x43a892(0x1de)+_0x4fb200[_0x43a892(0x1e1)]:_0x43a892(0x1ed);return console['log']('Lovrabet\x20Built-in\x20Skill\x20'+_0x4fb200[_0x43a892(0x1e0)]+'\x20'+_0x1925e1+_0x333122),_0x4fb200;}const _0x19a346='[BUILTIN_SKILL_INSTALL_'+(_0x4fb200['code']??_0x43a892(0x1dd))+']\x20'+(_0x4fb200['error']??_0x43a892(0x1e7))+'.\x20'+(_0x43a892(0x1e8)+_0x4fb200[_0x43a892(0x1eb)]);if(_0x4fb200[_0x43a892(0x1e3)]===_0x43a892(0x1dc))throw new Error(_0x19a346);return console[_0x43a892(0x1e4)](_0x19a346),_0x4fb200;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x49b419,_0x2d72f5){const _0x58a324=a137_0x1a5f,_0x3ed86a=_0x49b419();while(!![]){try{const _0x288020=parseInt(_0x58a324(0x146))/0x1*(parseInt(_0x58a324(0x153))/0x2)+-parseInt(_0x58a324(0x14c))/0x3*(parseInt(_0x58a324(0x14d))/0x4)+parseInt(_0x58a324(0x157))/0x5*(-parseInt(_0x58a324(0x154))/0x6)+-parseInt(_0x58a324(0x148))/0x7*(parseInt(_0x58a324(0x14e))/0x8)+-parseInt(_0x58a324(0x149))/0x9+parseInt(_0x58a324(0x143))/0xa*(-parseInt(_0x58a324(0x147))/0xb)+parseInt(_0x58a324(0x145))/0xc;if(_0x288020===_0x2d72f5)break;else _0x3ed86a['push'](_0x3ed86a['shift']());}catch(_0x3a1859){_0x3ed86a['push'](_0x3ed86a['shift']());}}}(a137_0x5c4e,0x8f239));const DESCRIPTION_MAX_LENGTH=0x1f4;function a137_0x5c4e(){const _0x2ef22c=['6stvTsb','426QdEdMF','trim','replace','73985UpnLPr','144520THdSYS','high-risk-write','39876408lZUHgZ','2554TfUNlw','66kMlVeF','259XUrEtx','4207572ytMGCN','risk','write','7419lORTiX','1732IJnpkj','14872OExEJr','description','slice','Run\x20this\x20write\x20operation','Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.'];a137_0x5c4e=function(){return _0x2ef22c;};return a137_0x5c4e();}function a137_0x1a5f(_0x14a941,_0x318965){_0x14a941=_0x14a941-0x143;const _0x5c4e27=a137_0x5c4e();let _0x1a5f99=_0x5c4e27[_0x14a941];return _0x1a5f99;}export function buildLovrabetConfirmationRequest(_0xe70eb2,_0x3fde0c,_0x769cf0){const _0xb6b97c=a137_0x1a5f,_0x554c48=normalizeText(_0xe70eb2['confirmationDescription'],DESCRIPTION_MAX_LENGTH),_0x3f2a97=normalizeText(_0xe70eb2[_0xb6b97c(0x14f)],DESCRIPTION_MAX_LENGTH);return{'operation':_0x3fde0c,'risk':requireWriteRisk(_0xe70eb2),'description':_0x554c48||_0x3f2a97||_0xb6b97c(0x151),..._0x769cf0?{'signal':_0x769cf0}:{}};}function requireWriteRisk(_0x100ada){const _0x22ca77=a137_0x1a5f;if(_0x100ada['risk']===_0x22ca77(0x14b)||_0x100ada['risk']===_0x22ca77(0x144))return _0x100ada[_0x22ca77(0x14a)];throw new Error(_0x22ca77(0x152));}function normalizeText(_0x2d9069,_0x1ac5d6){const _0x3d8179=a137_0x1a5f;if(typeof _0x2d9069!=='string')return'';return _0x2d9069[_0x3d8179(0x156)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x3d8179(0x156)](/\s+/g,'\x20')[_0x3d8179(0x155)]()[_0x3d8179(0x150)](0x0,_0x1ac5d6);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x105592,_0x21ccc3){const _0x19ea13=a138_0x1525,_0x377b88=_0x105592();while(!![]){try{const _0x3c2966=-parseInt(_0x19ea13(0x96))/0x1*(-parseInt(_0x19ea13(0x98))/0x2)+parseInt(_0x19ea13(0xa6))/0x3+-parseInt(_0x19ea13(0x9b))/0x4*(parseInt(_0x19ea13(0x99))/0x5)+-parseInt(_0x19ea13(0xa4))/0x6+-parseInt(_0x19ea13(0xa5))/0x7*(-parseInt(_0x19ea13(0xa7))/0x8)+-parseInt(_0x19ea13(0xa3))/0x9*(-parseInt(_0x19ea13(0x94))/0xa)+-parseInt(_0x19ea13(0xa8))/0xb;if(_0x3c2966===_0x21ccc3)break;else _0x377b88['push'](_0x377b88['shift']());}catch(_0x5ecce9){_0x377b88['push'](_0x377b88['shift']());}}}(a138_0x2021,0x7c5be));export function canonicalLovrabetOperation(_0x2dd459){const _0x485e2f=a138_0x1525;return[_0x2dd459[_0x485e2f(0x97)],..._0x2dd459[_0x485e2f(0x9d)]['trim']()[_0x485e2f(0xa1)](/\s+/)][_0x485e2f(0x9a)](Boolean)[_0x485e2f(0x95)]('.');}function a138_0x2021(){const _0x437b33=['2433939BCnNEP','80QoSJYk','16292639CYLgvB','40kuCZdy','join','5vQEIAE','service','123548caSJNS','2045DwvgtV','filter','2404nZUrQZ','lovrabet.write.completed','command','risk','high-risk-write','write','split','writeEventSubject','1663695DzLqPn','615426rADmXZ','335510LFSzws'];a138_0x2021=function(){return _0x437b33;};return a138_0x2021();}function a138_0x1525(_0x48306c,_0x3ff8a6){_0x48306c=_0x48306c-0x94;const _0x202134=a138_0x2021();let _0x152538=_0x202134[_0x48306c];return _0x152538;}export function createLovrabetWriteMetadata(_0x18973c,_0x2d1eca,_0xc449ab,_0x125f8b){const _0x4fc36e=a138_0x1525;if(_0x125f8b||_0xc449ab['ok']!==!![]||_0x18973c[_0x4fc36e(0x9e)]!==_0x4fc36e(0xa0)&&_0x18973c[_0x4fc36e(0x9e)]!==_0x4fc36e(0x9f))return undefined;const _0x3b81ea=_0x18973c[_0x4fc36e(0xa2)]?.(_0xc449ab),_0x2a0045={'type':_0x4fc36e(0x9c),'operation':_0x2d1eca,'risk':_0x18973c[_0x4fc36e(0x9e)],..._0x3b81ea?{'subject':_0x3b81ea}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x2a0045}};}
|