@lovrabet/lovrabet-cli 2.3.8-beta.1 → 2.3.8-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/approval/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/init.d.ts +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/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.d.ts +32 -6
- 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.d.ts +2 -4
- 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 +26 -358
- 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-search-client.js +1 -1
- package/lib/core/sdk-client.d.ts +9 -10
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/access-error.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-import/auto-id-runner.js +1 -1
- package/lib/services/dataset-import/excel-reader.js +1 -1
- package/lib/services/dataset-import/image-bytes.js +1 -1
- package/lib/services/dataset-import/image-ooxml.js +1 -1
- package/lib/services/dataset-import/image-runner.js +1 -1
- package/lib/services/dataset-import/metadata.js +1 -1
- package/lib/services/dataset-import/preview.js +1 -1
- package/lib/services/dataset-import/runner.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/positive-safe-integer.js +1 -1
- package/lib/utils/redaction.js +1 -1
- package/lib/utils/runtime-user-id.d.ts +2 -0
- package/lib/utils/runtime-user-id.js +1 -0
- 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 +2 -2
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet/guides/role-and-permission-workflow.md +3 -2
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x575a41,_0x157e97){var _0x1261cc=a112_0x330e,_0x5a401c=_0x575a41();while(!![]){try{var _0x34de8b=-parseInt(_0x1261cc(0x15a))/0x1+-parseInt(_0x1261cc(0x157))/0x2+parseInt(_0x1261cc(0x159))/0x3*(parseInt(_0x1261cc(0x15f))/0x4)+-parseInt(_0x1261cc(0x158))/0x5*(parseInt(_0x1261cc(0x15c))/0x6)+parseInt(_0x1261cc(0x15d))/0x7+parseInt(_0x1261cc(0x15b))/0x8*(parseInt(_0x1261cc(0x156))/0x9)+-parseInt(_0x1261cc(0x15e))/0xa;if(_0x34de8b===_0x157e97)break;else _0x5a401c['push'](_0x5a401c['shift']());}catch(_0x485d87){_0x5a401c['push'](_0x5a401c['shift']());}}}(a112_0x2cdb,0xc023e));function a112_0x2cdb(){var _0x40412e=['150PYvVfn','2087322FSONkL','1539253BrBRFQ','304oggfiY','34626TeFDDe','10173891nftOWm','3469410YOdJdW','8lCqUXY','354240yLvedP','2988622rFgrND'];a112_0x2cdb=function(){return _0x40412e;};return a112_0x2cdb();}function a112_0x330e(_0xd121d1,_0x10c77c){_0xd121d1=_0xd121d1-0x156;var _0x2cdbd0=a112_0x2cdb();var _0x330ee8=_0x2cdbd0[_0xd121d1];return _0x330ee8;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a112_0x5415dd}from'@lovrabet/cli-framework';export function buildAllFlags(_0x104f7f){return a112_0x5415dd(_0x104f7f,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
|
package/lib/framework/dryrun.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x43372d,_0x1c009b){const _0x1582ca=a113_0x3067,_0x664a90=_0x43372d();while(!![]){try{const _0x3e1e21=parseInt(_0x1582ca(0x12b))/0x1+-parseInt(_0x1582ca(0x123))/0x2+-parseInt(_0x1582ca(0x121))/0x3*(parseInt(_0x1582ca(0x129))/0x4)+-parseInt(_0x1582ca(0x124))/0x5*(parseInt(_0x1582ca(0x122))/0x6)+parseInt(_0x1582ca(0x120))/0x7*(parseInt(_0x1582ca(0x126))/0x8)+-parseInt(_0x1582ca(0x12a))/0x9*(-parseInt(_0x1582ca(0x127))/0xa)+parseInt(_0x1582ca(0x128))/0xb*(parseInt(_0x1582ca(0x12d))/0xc);if(_0x3e1e21===_0x1c009b)break;else _0x664a90['push'](_0x664a90['shift']());}catch(_0x567a22){_0x664a90['push'](_0x664a90['shift']());}}}(a113_0x2d43,0xc161e));export function dryRun(_0x36f4fd,_0x56dc92){const _0x46b89e={'method':_0x36f4fd,'url':_0x56dc92},_0x340c02={'body'(_0x1af123){const _0x7075a4=a113_0x3067;return _0x46b89e[_0x7075a4(0x12c)]=_0x1af123,_0x340c02;},'description'(_0x13975a){const _0x240082=a113_0x3067;return _0x46b89e[_0x240082(0x125)]=_0x13975a,_0x340c02;},'build'(){return{..._0x46b89e};}};return _0x340c02;}function a113_0x3067(_0x460c71,_0x4329f4){_0x460c71=_0x460c71-0x120;const _0x2d43bf=a113_0x2d43();let _0x306746=_0x2d43bf[_0x460c71];return _0x306746;}function a113_0x2d43(){const _0x428037=['17410rnwIej','308CrzCLU','5075476eVufRe','2961ZnahKG','1205128dldfet','body','229188dbNjts','49qFCfSN','3jVVJZl','2583852aCTWbv','495320ABWbEF','15cTNbjc','description','1471840uKOiai'];a113_0x2d43=function(){return _0x428037;};return a113_0x2d43();}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a114_0x508059=a114_0x461c;(function(_0x14bd4a,_0x44a02e){const _0x5418c4=a114_0x461c,_0x496d97=_0x14bd4a();while(!![]){try{const _0x570675=-parseInt(_0x5418c4(0xae))/0x1+parseInt(_0x5418c4(0xb1))/0x2*(parseInt(_0x5418c4(0xb4))/0x3)+parseInt(_0x5418c4(0xb3))/0x4+parseInt(_0x5418c4(0xb5))/0x5+parseInt(_0x5418c4(0xb2))/0x6+-parseInt(_0x5418c4(0xb0))/0x7+parseInt(_0x5418c4(0xad))/0x8;if(_0x570675===_0x44a02e)break;else _0x496d97['push'](_0x496d97['shift']());}catch(_0x416fa9){_0x496d97['push'](_0x496d97['shift']());}}}(a114_0x79e7,0xd0bf6));import{createFlagHelpers}from'@lovrabet/cli-framework';function a114_0x79e7(){const _0x4f224b=['10417352DpTZtQ','1381122PQgxQF','validateFlags','1618743GTPmQC','2vdnuoD','1844700nlQAQF','655576qvqznG','483855roxVEf','2663015NztbMJ','parseFlags'];a114_0x79e7=function(){return _0x4f224b;};return a114_0x79e7();}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a114_0x508059(0xb6)];function a114_0x461c(_0x57fd21,_0x2f2f89){_0x57fd21=_0x57fd21-0xad;const _0x79e75f=a114_0x79e7();let _0x461c80=_0x79e75f[_0x57fd21];return _0x461c80;}export const validateFlags=helpers[a114_0x508059(0xaf)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x425e0a,_0x8e6fc2){const _0x527bee=a115_0xe30e,_0x25d2ae=_0x425e0a();while(!![]){try{const _0x2849c9=-parseInt(_0x527bee(0xd2))/0x1+parseInt(_0x527bee(0xdb))/0x2+-parseInt(_0x527bee(0xc9))/0x3+parseInt(_0x527bee(0xd7))/0x4+parseInt(_0x527bee(0xd6))/0x5*(-parseInt(_0x527bee(0xd0))/0x6)+parseInt(_0x527bee(0xd1))/0x7*(-parseInt(_0x527bee(0xd3))/0x8)+-parseInt(_0x527bee(0xd9))/0x9*(-parseInt(_0x527bee(0xcf))/0xa);if(_0x2849c9===_0x8e6fc2)break;else _0x25d2ae['push'](_0x25d2ae['shift']());}catch(_0x5226c4){_0x25d2ae['push'](_0x25d2ae['shift']());}}}(a115_0x1311,0x4a04c));function a115_0xe30e(_0x17b369,_0x1e6726){_0x17b369=_0x17b369-0xc9;const _0x131114=a115_0x1311();let _0xe30ea1=_0x131114[_0x17b369];return _0xe30ea1;}import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{getDynamicServiceDefinitions,getDynamicServiceEntry,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';function createGenerators(){const _0x4d5087=a115_0xe30e;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries()),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x4d5087(0xcd)+PRODUCT_CONFIG[_0x4d5087(0xce)]+_0x4d5087(0xda)});}function a115_0x1311(){const _0x3cf474=['4210664sYTxLU','generateServiceHelp','get','405IeuzyO','1548508FEqNAJ','service','315BQjRYa','\x20or\x20--appcode).','737500rbHAPB','335457cAYUyJ','generateCommandHelp','filter','map','Requires\x20appcode\x20(set\x20via\x20','newConfigFileName','342490SvsBke','32082fIvKYT','7tMbtXd','580153gwpzXl'];a115_0x1311=function(){return _0x3cf474;};return a115_0x1311();}export function generateCommandHelp(_0x3dcd40){const _0x1c44a1=a115_0xe30e;return createGenerators()[_0x1c44a1(0xca)](_0x3dcd40);}export function generateServiceHelp(_0xbf4880){const _0x23925a=a115_0xe30e;return createGenerators()[_0x23925a(0xd4)](_0xbf4880);}export function generateFullHelp(){return createGenerators()['generateFullHelp']();}function getAnyServiceEntry(_0x4914e0){const _0x584589=getServiceEntry(_0x4914e0);if(_0x584589)return _0x584589;try{return getDynamicServiceEntry(_0x4914e0);}catch{return undefined;}}function getAnyServiceDefinitions(_0x12c87e){const _0x3dac3c=a115_0xe30e,_0x2eaa65=serviceGroups[_0x3dac3c(0xd5)](_0x12c87e);if(_0x2eaa65)return _0x2eaa65;try{return getDynamicServiceDefinitions(_0x12c87e);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x34f945=a115_0xe30e,_0x306f33=new Set(serviceRegistry[_0x34f945(0xcc)](_0x726a8e=>_0x726a8e[_0x34f945(0xd8)]));try{return listDynamicServiceEntries()[_0x34f945(0xcb)](_0x32b055=>!_0x306f33['has'](_0x32b055['service']));}catch{return[];}}
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a116_0x34ec(_0x1f7536,_0x139c7b){_0x1f7536=_0x1f7536-0x12e;var _0x22c826=a116_0x22c8();var _0x34ec8c=_0x22c826[_0x1f7536];return _0x34ec8c;}(function(_0x543241,_0x43056f){var _0x53d6f1=a116_0x34ec,_0x264e5a=_0x543241();while(!![]){try{var _0x1ab8b6=parseInt(_0x53d6f1(0x130))/0x1+parseInt(_0x53d6f1(0x134))/0x2*(parseInt(_0x53d6f1(0x137))/0x3)+parseInt(_0x53d6f1(0x136))/0x4*(-parseInt(_0x53d6f1(0x133))/0x5)+-parseInt(_0x53d6f1(0x131))/0x6*(-parseInt(_0x53d6f1(0x135))/0x7)+-parseInt(_0x53d6f1(0x132))/0x8+parseInt(_0x53d6f1(0x12f))/0x9+-parseInt(_0x53d6f1(0x12e))/0xa;if(_0x1ab8b6===_0x43056f)break;else _0x264e5a['push'](_0x264e5a['shift']());}catch(_0x81d9d7){_0x264e5a['push'](_0x264e5a['shift']());}}}(a116_0x22c8,0x1ce5a));export{runCommand}from'../framework/runner.js';function a116_0x22c8(){var _0x4bbd8e=['30zZQXVi','2AxoZpR','497gFVdDM','40284DiBiJr','550209TFJzCW','3890120iyXgNY','1340370rtWJhY','144331fOEsBm','14478qvpIOc','641496MtqCZp'];a116_0x22c8=function(){return _0x4bbd8e;};return a116_0x22c8();}export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x57b8b5,_0x125d2c){const _0xe8d1f=a117_0x3c50,_0x5ea568=_0x57b8b5();while(!![]){try{const _0x47dfc3=parseInt(_0xe8d1f(0x1a4))/0x1+parseInt(_0xe8d1f(0x1a8))/0x2+parseInt(_0xe8d1f(0x1a7))/0x3+-parseInt(_0xe8d1f(0x1a1))/0x4+-parseInt(_0xe8d1f(0x1a2))/0x5*(parseInt(_0xe8d1f(0x1aa))/0x6)+-parseInt(_0xe8d1f(0x1a5))/0x7+-parseInt(_0xe8d1f(0x1a9))/0x8*(parseInt(_0xe8d1f(0x1a0))/0x9);if(_0x47dfc3===_0x125d2c)break;else _0x5ea568['push'](_0x5ea568['shift']());}catch(_0x516fc6){_0x5ea568['push'](_0x5ea568['shift']());}}}(a117_0x117a,0xaef23));function a117_0x117a(){const _0x578f72=['232uDnCYm','264EcmZvY','error','format','message','pretty','update','433566jFCyyX','538904YcplkV','1015WJOshM','_notice','928884xmtKRK','3326848WQpwud','url','2943510uNVMVN','1644986pFMUQJ'];a117_0x117a=function(){return _0x578f72;};return a117_0x117a();}function a117_0x3c50(_0x54238e,_0x1d7286){_0x54238e=_0x54238e-0x19e;const _0x117ab2=a117_0x117a();let _0x3c506c=_0x117ab2[_0x54238e];return _0x3c506c;}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x34af17,_0x455572){const _0x4f3a2f=a117_0x3c50,_0xc33814=_0x34af17[_0x4f3a2f(0x1a3)],{_notice:_0x20a34c,..._0x394ca2}=_0x34af17;void _0x20a34c,baseFormatOutput(_0x394ca2,_0x455572),_0x455572[_0x4f3a2f(0x1ac)]===_0x4f3a2f(0x19e)&&printPrettyNotice(_0xc33814);}function printPrettyNotice(_0x344350){const _0x148c52=a117_0x3c50;if(!_0x344350?.[_0x148c52(0x19f)])return;console[_0x148c52(0x1ab)](_0x344350[_0x148c52(0x19f)][_0x148c52(0x1ad)]+'\x20('+_0x344350[_0x148c52(0x19f)][_0x148c52(0x1a6)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a118_0x2a54(_0x364a64,_0x152eb5){_0x364a64=_0x364a64-0x1c8;const _0x4ce6db=a118_0x4ce6();let _0x2a5412=_0x4ce6db[_0x364a64];return _0x2a5412;}(function(_0x30fe68,_0x3f911a){const _0x196689=a118_0x2a54,_0xfb521a=_0x30fe68();while(!![]){try{const _0x104b56=parseInt(_0x196689(0x1e1))/0x1*(-parseInt(_0x196689(0x1da))/0x2)+-parseInt(_0x196689(0x1e5))/0x3+parseInt(_0x196689(0x1d9))/0x4+parseInt(_0x196689(0x1ca))/0x5+-parseInt(_0x196689(0x1df))/0x6+-parseInt(_0x196689(0x1cb))/0x7+parseInt(_0x196689(0x1dc))/0x8*(parseInt(_0x196689(0x1e6))/0x9);if(_0x104b56===_0x3f911a)break;else _0xfb521a['push'](_0xfb521a['shift']());}catch(_0x1ea4f9){_0xfb521a['push'](_0xfb521a['shift']());}}}(a118_0x4ce6,0x6e5a2));export function toKebab(_0x5d3fec){const _0x30aa60=a118_0x2a54;return _0x5d3fec['replace'](/_/g,'-')['replace'](/-([A-Z]+)/g,(_0x797505,_0x2433ba)=>'-'+_0x2433ba[_0x30aa60(0x1d4)]())[_0x30aa60(0x1d8)](/([a-z0-9])([A-Z])/g,(_0x4abc3d,_0x1244ef,_0x1dfbc4)=>_0x1244ef+'-'+_0x1dfbc4)[_0x30aa60(0x1d4)]();}function buildKnownFlags(_0x28f849){const _0x331c22=a118_0x2a54,_0x283f4a=new Set();for(const _0x1a1be2 of _0x28f849){_0x283f4a[_0x331c22(0x1ed)](_0x1a1be2[_0x331c22(0x1d6)]),_0x283f4a[_0x331c22(0x1ed)](toCamelCase(_0x1a1be2['name']));}for(const _0x26b823 of['dry-run',_0x331c22(0x1cc),_0x331c22(0x1d3),'format']){_0x283f4a[_0x331c22(0x1ed)](_0x26b823);}for(const _0x1e4925 of['help',_0x331c22(0x1e7),_0x331c22(0x1d2),_0x331c22(0x1d5),_0x331c22(0x1e2),_0x331c22(0x1d1),'ci',_0x331c22(0x1dd),_0x331c22(0x1e3)]){_0x283f4a['add'](_0x1e4925);}return _0x283f4a;}function buildFlagTypeMap(_0x46a8cd){const _0x2cf6ee=a118_0x2a54,_0x3c93f2=new Map();for(const _0x47938c of _0x46a8cd){_0x3c93f2[_0x2cf6ee(0x1d0)](_0x47938c[_0x2cf6ee(0x1d6)],_0x47938c['type']),_0x3c93f2[_0x2cf6ee(0x1d0)](toCamelCase(_0x47938c['name']),_0x47938c['type']);}return _0x3c93f2;}function a118_0x4ce6(){const _0x5b911b=['1178838BckyCB','has','3dNFpSP','nonInteractive','version','boolean','1926327iASrai','351BmZKJD','env','entries','get','length','original','keys','add','sticky','number','2933025BiwYdR','5639683VXimVN','dryRun','slice','corrected','alias','set','non-interactive','appcode','yes','toLowerCase','app','name','push','replace','2154216XFWRuJ','354462KoQBcG','string','308264YZxTCZ','global','indexOf'];a118_0x4ce6=function(){return _0x5b911b;};return a118_0x4ce6();}function toCamelCase(_0x4f971c){const _0x29f1bd=a118_0x2a54;return _0x4f971c[_0x29f1bd(0x1d8)](/-([a-z])/g,(_0x2724f0,_0x4965c0)=>_0x4965c0['toUpperCase']());}function aliasHandler(_0x1244de,_0x5e4e18){const _0x526e9d=a118_0x2a54,_0x5286c3=[];for(const _0x360eb2 of Object[_0x526e9d(0x1ec)](_0x1244de)){if(_0x5e4e18['has'](_0x360eb2))continue;const _0x486c25=toKebab(_0x360eb2);_0x486c25!==_0x360eb2&&_0x5e4e18[_0x526e9d(0x1e0)](_0x486c25)&&_0x5286c3[_0x526e9d(0x1d7)]({'original':_0x360eb2,'corrected':_0x486c25,'handler':_0x526e9d(0x1cf)});}return _0x5286c3;}function stickyHandler(_0x1c611a,_0x11a661,_0xd36cf0){const _0x3d045b=a118_0x2a54,_0x2b1569=[];for(const [_0x3c22ca,_0xc21052]of Object[_0x3d045b(0x1e8)](_0x1c611a)){if(_0xc21052!==!![])continue;for(let _0x52d5fe=_0x3c22ca[_0x3d045b(0x1ea)]-0x1;_0x52d5fe>0x0;_0x52d5fe--){const _0x6f5dfe=_0x3c22ca['slice'](0x0,_0x52d5fe),_0x5bed9e=_0x3c22ca[_0x3d045b(0x1cd)](_0x52d5fe),_0x5bf3f5=toKebab(_0x6f5dfe),_0xdd7c1f=toCamelCase(_0x6f5dfe),_0x651c7a=_0x11a661[_0x3d045b(0x1e0)](_0x6f5dfe)?_0x6f5dfe:_0x11a661['has'](_0x5bf3f5)?_0x5bf3f5:_0x11a661[_0x3d045b(0x1e0)](_0xdd7c1f)?_0xdd7c1f:null;if(!_0x651c7a)continue;const _0x9fc331=_0xd36cf0[_0x3d045b(0x1e9)](_0x651c7a)??_0x3d045b(0x1db);let _0x3a9229;if(_0x9fc331===_0x3d045b(0x1c9)){const _0x1ad9ce=Number(_0x5bed9e);if(isNaN(_0x1ad9ce)||_0x5bed9e==='')continue;_0x3a9229=_0x1ad9ce;}else{if(_0x9fc331===_0x3d045b(0x1e4))continue;else{if(_0x5bed9e==='')continue;_0x3a9229=_0x5bed9e;}}_0x2b1569[_0x3d045b(0x1d7)]({'original':_0x3c22ca,'corrected':_0x651c7a+'='+_0x3a9229,'handler':_0x3d045b(0x1c8)});break;}}return _0x2b1569;}export function correctFlags(_0x291382,_0x1243d4){const _0x56788f=a118_0x2a54,_0x41eb1f=buildKnownFlags(_0x1243d4),_0x357fce=buildFlagTypeMap(_0x1243d4),_0x1890f2=aliasHandler(_0x291382,_0x41eb1f),_0x1d3eb7=stickyHandler(_0x291382,_0x41eb1f,_0x357fce),_0x30d06f=[..._0x1890f2,..._0x1d3eb7];if(_0x30d06f[_0x56788f(0x1ea)]===0x0)return{'flags':_0x291382,'corrections':[]};const _0x5eba0c={..._0x291382},_0x1ee52b=new Set();for(const _0x20a3d4 of _0x1890f2){_0x5eba0c[_0x20a3d4['corrected']]=_0x291382[_0x20a3d4[_0x56788f(0x1eb)]],_0x1ee52b['add'](_0x20a3d4['original']);}for(const _0x43012e of _0x1d3eb7){const _0x4813ce=_0x43012e[_0x56788f(0x1ce)][_0x56788f(0x1de)]('='),_0x587706=_0x43012e[_0x56788f(0x1ce)][_0x56788f(0x1cd)](0x0,_0x4813ce),_0x130f29=_0x43012e[_0x56788f(0x1ce)][_0x56788f(0x1cd)](_0x4813ce+0x1),_0x966120=_0x357fce[_0x56788f(0x1e9)](_0x587706)??'string';_0x966120===_0x56788f(0x1c9)?_0x5eba0c[_0x587706]=Number(_0x130f29):_0x5eba0c[_0x587706]=_0x130f29,_0x1ee52b[_0x56788f(0x1ed)](_0x43012e[_0x56788f(0x1eb)]);}for(const _0x5490d7 of _0x1ee52b){delete _0x5eba0c[_0x5490d7];}return{'flags':_0x5eba0c,'corrections':_0x30d06f};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x349df0,_0x2bce4e){const _0x4287cb=a119_0x5edc,_0x214535=_0x349df0();while(!![]){try{const _0x3df936=-parseInt(_0x4287cb(0x192))/0x1+-parseInt(_0x4287cb(0x1ae))/0x2+-parseInt(_0x4287cb(0x1a3))/0x3+parseInt(_0x4287cb(0x19a))/0x4+-parseInt(_0x4287cb(0x1ab))/0x5*(-parseInt(_0x4287cb(0x19b))/0x6)+-parseInt(_0x4287cb(0x19d))/0x7*(parseInt(_0x4287cb(0x1a9))/0x8)+parseInt(_0x4287cb(0x1a6))/0x9;if(_0x3df936===_0x2bce4e)break;else _0x214535['push'](_0x214535['shift']());}catch(_0x1ba0a2){_0x214535['push'](_0x214535['shift']());}}}(a119_0x14b2,0xd35db));import{CliErrors}from'../errors.js';function a119_0x14b2(){const _0x2577bc=['number','5800501jqlMKo','toLowerCase','trim','entries','object','call','3227034CdAVkm','get','isArray','26769168ytAyKf','test','has','8OynJAl','string','65dcDKFB','retryAfter','Retry\x20after\x20','1398454xRVhiO','isInteger','1057393BDeXtg','errorCode','retryAfterSeconds','Retry\x20after\x20a\x20short\x20delay.','Wait\x20','retry-after','toUpperCase','function','5888380XgUgeb','37038mBSEiQ'];a119_0x14b2=function(){return _0x2577bc;};return a119_0x14b2();}const RATE_LIMIT_ERROR_CODES=new Set(['EXCEED_MAX_QPS_LIMIT','MAX_QPS_LIMIT','IP_RATE_LIMIT_EXCEEDED']);function nonEmptyString(_0x3483ab){const _0x3c1184=a119_0x5edc;if(typeof _0x3483ab!==_0x3c1184(0x1aa))return undefined;const _0x443217=_0x3483ab[_0x3c1184(0x19f)]();return _0x443217||undefined;}function buildRetryHint(_0x35399b){const _0x4b6a92=a119_0x5edc,_0x3e078a=nonEmptyString(_0x35399b),_0x7be4c2=_0x3e078a?/^\d+$/[_0x4b6a92(0x1a7)](_0x3e078a)?_0x4b6a92(0x196)+_0x3e078a+'\x20seconds\x20before\x20retrying.':_0x4b6a92(0x1ad)+_0x3e078a+'.':_0x4b6a92(0x195);return _0x7be4c2+'\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.';}function a119_0x5edc(_0x3fedc3,_0x4f8a61){_0x3fedc3=_0x3fedc3-0x192;const _0x14b2e5=a119_0x14b2();let _0x5edc01=_0x14b2e5[_0x3fedc3];return _0x5edc01;}export function createRateLimitError(_0x2e1807){const _0x1d0397=a119_0x5edc,_0x172c5f=nonEmptyString(_0x2e1807[_0x1d0397(0x193)])?.[_0x1d0397(0x198)](),_0x142d63=Number(_0x2e1807['status'])===0x1ad||_0x172c5f!==undefined&&RATE_LIMIT_ERROR_CODES[_0x1d0397(0x1a8)](_0x172c5f);if(!_0x142d63)return undefined;return CliErrors['rateLimited'](nonEmptyString(_0x2e1807['message'])??'Request\x20rate\x20limit\x20exceeded.',buildRetryHint(_0x2e1807[_0x1d0397(0x1ac)]));}export function readRetryAfter(_0xef4654){const _0x1578b1=a119_0x5edc;if(!_0xef4654||typeof _0xef4654!==_0x1578b1(0x1a1))return undefined;const _0x72d983=_0xef4654[_0x1578b1(0x1a4)];if(typeof _0x72d983===_0x1578b1(0x199)){const _0x36ee4c=_0x72d983[_0x1578b1(0x1a2)](_0xef4654,'Retry-After')??_0x72d983[_0x1578b1(0x1a2)](_0xef4654,_0x1578b1(0x197));return nonEmptyString(_0x36ee4c);}for(const [_0x598525,_0x56c14a]of Object[_0x1578b1(0x1a0)](_0xef4654)){if(_0x598525[_0x1578b1(0x19e)]()===_0x1578b1(0x197))return nonEmptyString(_0x56c14a)??(typeof _0x56c14a===_0x1578b1(0x19c)?String(_0x56c14a):undefined);}return undefined;}export function readRetryAfterSeconds(_0x392486){const _0x527e01=a119_0x5edc;if(!_0x392486||typeof _0x392486!=='object'||Array[_0x527e01(0x1a5)](_0x392486))return undefined;const _0x19b9b8=_0x392486[_0x527e01(0x194)];if(typeof _0x19b9b8==='number')return Number[_0x527e01(0x1af)](_0x19b9b8)&&_0x19b9b8>=0x0?String(_0x19b9b8):undefined;const _0xc0047a=nonEmptyString(_0x19b9b8);return _0xc0047a&&/^\d+$/['test'](_0xc0047a)?_0xc0047a:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a120_0x987a86=a120_0x4667;function a120_0x4667(_0x4dd139,_0x236ffa){_0x4dd139=_0x4dd139-0x1b0;const _0x4e4a76=a120_0x4e4a();let _0x46674b=_0x4e4a76[_0x4dd139];return _0x46674b;}(function(_0x4da7b2,_0x346bd2){const _0x30f53c=a120_0x4667,_0x18b630=_0x4da7b2();while(!![]){try{const _0x12a91a=-parseInt(_0x30f53c(0x1c0))/0x1+-parseInt(_0x30f53c(0x1bd))/0x2+-parseInt(_0x30f53c(0x1ba))/0x3*(parseInt(_0x30f53c(0x1bb))/0x4)+-parseInt(_0x30f53c(0x1b7))/0x5*(-parseInt(_0x30f53c(0x1b5))/0x6)+-parseInt(_0x30f53c(0x1c9))/0x7+-parseInt(_0x30f53c(0x1cb))/0x8+parseInt(_0x30f53c(0x1c7))/0x9;if(_0x12a91a===_0x346bd2)break;else _0x18b630['push'](_0x18b630['shift']());}catch(_0x4a63bf){_0x18b630['push'](_0x18b630['shift']());}}}(a120_0x4e4a,0x56e1e));import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a120_0x4e4a(){const _0x311318=['service','Unknown\x20flag\x20--','6075396ECtdBY','asc','935396xJXyZm','pagesize','2186376tHEhol','entries','active','Example:\x20','\x20is\x20not\x20a\x20CLI\x20flag\x20for\x20`','\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20','command','add','Run\x20`','flags','2455590qdZEBW','has','5Uebjut','currentpage','validation','156wHpPzY','1828jAZLoc','\x20data\x20filter`.','439588waEPAu','name','version','77956GGqATf','page-size','select','filter','stringify'];a120_0x4e4a=function(){return _0x311318;};return a120_0x4e4a();}import{toKebab}from'../framework/preparse.js';const FILTER_BODY_FIELDS=new Set(['where',a120_0x987a86(0x1c2),'order-by','orderby','current-page',a120_0x987a86(0x1b8),'page',a120_0x987a86(0x1c1),a120_0x987a86(0x1ca)]);export function assertKnownCommandFlags(_0x2bd510,_0x3cacf7){const _0x4403e8=a120_0x987a86,_0x1d6504=new Set([_0x4403e8(0x1bf)]);for(const _0x4e5e0b of GLOBAL_FLAGS){_0x1d6504[_0x4403e8(0x1b2)](_0x4e5e0b[_0x4403e8(0x1be)]),_0x1d6504['add'](toKebab(_0x4e5e0b['meowKey']));}for(const _0x9add0 of _0x2bd510[_0x4403e8(0x1b4)]??[]){_0x1d6504['add'](_0x9add0[_0x4403e8(0x1be)]);}for(const [_0x48e2e3,_0x4b800e]of Object[_0x4403e8(0x1cc)](_0x3cacf7)){const _0x578642=toKebab(_0x48e2e3);if(_0x1d6504[_0x4403e8(0x1b6)](_0x578642))continue;if(_0x4b800e===![]&&_0x1d6504[_0x4403e8(0x1b6)]('no-'+_0x578642))continue;if(_0x2bd510[_0x4403e8(0x1c5)]==='data'&&_0x2bd510[_0x4403e8(0x1b1)]===_0x4403e8(0x1c3)&&FILTER_BODY_FIELDS[_0x4403e8(0x1b6)](_0x578642))throw CliErrors['validation']('--'+_0x578642+_0x4403e8(0x1cf)+CLI_BIN_NAME+_0x4403e8(0x1bc),'Put\x20where,\x20select,\x20orderBy,\x20currentPage,\x20and\x20pageSize\x20inside\x20one\x20--params\x20JSON\x20object.\x20'+(_0x4403e8(0x1ce)+CLI_BIN_NAME+_0x4403e8(0x1b0))+('\x27'+JSON[_0x4403e8(0x1c4)]({'where':{'status':{'$eq':_0x4403e8(0x1cd)}},'orderBy':[{'id':_0x4403e8(0x1c8)}],'currentPage':0x1,'pageSize':0x14})+'\x27'));throw CliErrors[_0x4403e8(0x1b9)](_0x4403e8(0x1c6)+_0x578642+'\x20for\x20`'+CLI_BIN_NAME+'\x20'+_0x2bd510[_0x4403e8(0x1c5)]+'\x20'+_0x2bd510[_0x4403e8(0x1b1)]+'`.',_0x4403e8(0x1b3)+CLI_BIN_NAME+'\x20'+_0x2bd510[_0x4403e8(0x1c5)]+'\x20'+_0x2bd510[_0x4403e8(0x1b1)]+'\x20--help`\x20to\x20see\x20accepted\x20flags.');}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a121_0x3c48(){var _0x4abd01=['1816144XuaJbD','380hvrSmS','9fWREZU','2166036rmcveo','2469NPERVX','87659ojVjOX','181640VxfZOw','7ChNYqC','5kQBROB','4240632QtGeoN','746YoEJfE','1340382zbTofT'];a121_0x3c48=function(){return _0x4abd01;};return a121_0x3c48();}(function(_0x5b8712,_0xd54330){var _0x308c0a=a121_0x5ada,_0x49226f=_0x5b8712();while(!![]){try{var _0x433900=parseInt(_0x308c0a(0x1f3))/0x1+parseInt(_0x308c0a(0x1f7))/0x2*(parseInt(_0x308c0a(0x1f1))/0x3)+-parseInt(_0x308c0a(0x1f0))/0x4*(-parseInt(_0x308c0a(0x1f5))/0x5)+parseInt(_0x308c0a(0x1f8))/0x6*(parseInt(_0x308c0a(0x1f4))/0x7)+parseInt(_0x308c0a(0x1f9))/0x8*(-parseInt(_0x308c0a(0x1ef))/0x9)+-parseInt(_0x308c0a(0x1ee))/0xa*(parseInt(_0x308c0a(0x1f2))/0xb)+-parseInt(_0x308c0a(0x1f6))/0xc;if(_0x433900===_0xd54330)break;else _0x49226f['push'](_0x49226f['shift']());}catch(_0x531b08){_0x49226f['push'](_0x49226f['shift']());}}}(a121_0x3c48,0x5a67b));function a121_0x5ada(_0x35e2b8,_0x544806){_0x35e2b8=_0x35e2b8-0x1ee;var _0x3c48ba=a121_0x3c48();var _0x5ada90=_0x3c48ba[_0x35e2b8];return _0x5ada90;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1c7c4a,_0x4406ef){const _0xa39b1a=a122_0xe006,_0xcc3f81=_0x1c7c4a();while(!![]){try{const _0x7e2d1=-parseInt(_0xa39b1a(0x1be))/0x1*(parseInt(_0xa39b1a(0x1cf))/0x2)+-parseInt(_0xa39b1a(0x1b6))/0x3+-parseInt(_0xa39b1a(0x1b9))/0x4*(parseInt(_0xa39b1a(0x1ab))/0x5)+parseInt(_0xa39b1a(0x1b2))/0x6+parseInt(_0xa39b1a(0x1d0))/0x7*(parseInt(_0xa39b1a(0x1c5))/0x8)+-parseInt(_0xa39b1a(0x1c9))/0x9*(parseInt(_0xa39b1a(0x1aa))/0xa)+parseInt(_0xa39b1a(0x1c2))/0xb;if(_0x7e2d1===_0x4406ef)break;else _0xcc3f81['push'](_0xcc3f81['shift']());}catch(_0x49068f){_0xcc3f81['push'](_0xcc3f81['shift']());}}}(a122_0x1ae6,0x49222));import{CLI_BIN_NAME}from'../constant/cli.js';import{isSensitiveFlagName}from'../utils/redaction.js';function a122_0xe006(_0x26a5c4,_0x2c1268){_0x26a5c4=_0x26a5c4-0x1aa;const _0x1ae6eb=a122_0x1ae6();let _0xe0060=_0x1ae6eb[_0x26a5c4];return _0xe0060;}export function buildConfirmationLines(_0x3a9359,_0x413b58,_0x4bea6c){const _0x5f224b=a122_0xe006,_0x25cb40=buildConfirmationContext(_0x3a9359,_0x413b58,_0x4bea6c),_0x278046=['⚠\x20\x20High-risk\x20operation:\x20'+_0x25cb40[_0x5f224b(0x1bc)]];return _0x25cb40[_0x5f224b(0x1b5)]&&_0x278046[_0x5f224b(0x1b1)](_0x5f224b(0x1bd)+_0x25cb40[_0x5f224b(0x1b5)]),_0x25cb40[_0x5f224b(0x1b3)]&&_0x278046['push'](_0x5f224b(0x1ba)+_0x25cb40[_0x5f224b(0x1b3)]),_0x278046[_0x5f224b(0x1b1)]('\x20\x20\x20Continue?\x20[y/N]\x20'),_0x278046;}export function reconstructCommandArgv(_0x968a6,_0x2b4954){const _0x2f8ec0=a122_0xe006,_0x4542a0=[CLI_BIN_NAME,_0x968a6[_0x2f8ec0(0x1ad)],_0x968a6['command']];for(const [_0x19be97,_0x1981e6]of Object[_0x2f8ec0(0x1b0)](_0x2b4954)){if(_0x1981e6===!![])_0x4542a0[_0x2f8ec0(0x1b1)]('--'+_0x19be97);else{if(isSensitiveFlagName(_0x19be97)&&_0x1981e6!==![]&&_0x1981e6!==undefined&&_0x1981e6!=='')_0x4542a0[_0x2f8ec0(0x1b1)]('--'+_0x19be97+_0x2f8ec0(0x1ce));else _0x1981e6!==![]&&_0x1981e6!==undefined&&_0x1981e6!==''&&_0x4542a0[_0x2f8ec0(0x1b1)]('--'+_0x19be97+'\x20'+JSON[_0x2f8ec0(0x1cb)](_0x1981e6));}}return _0x4542a0['push'](_0x2f8ec0(0x1b8)),_0x4542a0[_0x2f8ec0(0x1ae)]('\x20');}function buildConfirmationContext(_0x154368,_0x28677a,_0x5a0c6c){const _0x3d4d73=a122_0xe006,_0x3bb065=extractAffectedRecords(_0x5a0c6c);return{'commandLabel':_0x28677a,'description':_0x154368[_0x3d4d73(0x1b5)],'affectedRecords':_0x3bb065};}function a122_0x1ae6(){const _0x3d9531=['title','name=','2552751Fxmqfm','name','stringify','cron=','kind','\x20[REDACTED]','506058qJZdvB','14lBtioD','code','10bGZPeY','1580UVuSWk','channel=','service','join','schedule-id','entries','push','2574570yjpeXc','affectedRecords','cron','description','419172hIKTWx','params=','--yes','2164dHKhci','\x20\x20\x20Affected:\x20','channel','commandLabel','\x20\x20\x20','2LsUNxe','code=','id=','params','6311558QHidPD','kind=','length','1588232vxoOmH','scheduled-at'];a122_0x1ae6=function(){return _0x3d9531;};return a122_0x1ae6();}function extractAffectedRecords(_0x188dbb){const _0xa3df8=a122_0xe006,_0x5bbf14=[];if(_0x188dbb['code'])_0x5bbf14[_0xa3df8(0x1b1)](_0xa3df8(0x1bf)+_0x188dbb[_0xa3df8(0x1d1)]);if(_0x188dbb['id'])_0x5bbf14[_0xa3df8(0x1b1)](_0xa3df8(0x1c0)+_0x188dbb['id']);if(_0x188dbb['schedule-id'])_0x5bbf14[_0xa3df8(0x1b1)]('schedule-id='+_0x188dbb[_0xa3df8(0x1af)]);if(_0x188dbb[_0xa3df8(0x1ca)])_0x5bbf14['push'](_0xa3df8(0x1c8)+_0x188dbb[_0xa3df8(0x1ca)]);if(_0x188dbb[_0xa3df8(0x1c7)])_0x5bbf14[_0xa3df8(0x1b1)]('title='+_0x188dbb['title']);if(_0x188dbb['kind'])_0x5bbf14[_0xa3df8(0x1b1)](_0xa3df8(0x1c3)+_0x188dbb[_0xa3df8(0x1cd)]);if(_0x188dbb[_0xa3df8(0x1b4)])_0x5bbf14[_0xa3df8(0x1b1)](_0xa3df8(0x1cc)+_0x188dbb[_0xa3df8(0x1b4)]);if(_0x188dbb[_0xa3df8(0x1c6)])_0x5bbf14['push']('scheduled-at='+_0x188dbb['scheduled-at']);if(_0x188dbb['channel'])_0x5bbf14[_0xa3df8(0x1b1)](_0xa3df8(0x1ac)+_0x188dbb[_0xa3df8(0x1bb)]);if(_0x188dbb[_0xa3df8(0x1c1)])_0x5bbf14[_0xa3df8(0x1b1)](_0xa3df8(0x1b7)+_0x188dbb[_0xa3df8(0x1c1)]);return _0x5bbf14[_0xa3df8(0x1c4)]>0x0?_0x5bbf14['join'](',\x20'):undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x37f7bf,_0x210010){const _0x270db7=a123_0x702c,_0x3e0c4f=_0x37f7bf();while(!![]){try{const _0x3791fd=-parseInt(_0x270db7(0x157))/0x1*(parseInt(_0x270db7(0x163))/0x2)+parseInt(_0x270db7(0x165))/0x3+-parseInt(_0x270db7(0x15e))/0x4*(-parseInt(_0x270db7(0x160))/0x5)+-parseInt(_0x270db7(0x16b))/0x6*(-parseInt(_0x270db7(0x169))/0x7)+-parseInt(_0x270db7(0x15d))/0x8*(-parseInt(_0x270db7(0x167))/0x9)+-parseInt(_0x270db7(0x15f))/0xa+parseInt(_0x270db7(0x166))/0xb*(-parseInt(_0x270db7(0x161))/0xc);if(_0x3791fd===_0x210010)break;else _0x3e0c4f['push'](_0x3e0c4f['shift']());}catch(_0x56797a){_0x3e0c4f['push'](_0x3e0c4f['shift']());}}}(a123_0x1e3a,0x7c473));import{LovrabetError}from'@lovrabet/sdk';function a123_0x702c(_0x195ddc,_0x56fc2d){_0x195ddc=_0x195ddc-0x154;const _0x1e3a1d=a123_0x1e3a();let _0x702c92=_0x1e3a1d[_0x195ddc];return _0x702c92;}import{CliErrors}from'../errors.js';import{createAccessError}from'../framework/access-error.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';export function mapUserFacingExecuteError(_0x311eed){const _0x2cf7d4=a123_0x702c;if(_0x311eed instanceof LovrabetError){const _0x42171b=userFacingLovrabetMessage(_0x311eed),_0x115ce6=_0x311eed,_0x4b284b=createRateLimitError({'status':_0x115ce6['status'],'errorCode':_0x115ce6[_0x2cf7d4(0x155)],'message':_0x42171b,'retryAfter':readRetryAfter(_0x115ce6[_0x2cf7d4(0x16a)]?.[_0x2cf7d4(0x156)])??readRetryAfterSeconds(_0x115ce6[_0x2cf7d4(0x16a)])});return createAccessError(_0x115ce6[_0x2cf7d4(0x16a)],_0x115ce6[_0x2cf7d4(0x155)])??_0x4b284b??(Number(_0x115ce6[_0x2cf7d4(0x158)])===0x191?CliErrors[_0x2cf7d4(0x164)](_0x2cf7d4(0x15b),_0x2cf7d4(0x15c)):CliErrors[_0x2cf7d4(0x159)](_0x42171b));}return _0x311eed;}function a123_0x1e3a(){const _0x6fa989=['62456zEIhXz','4MsgWBL','8895580tdWANl','3389545BDOihm','24132fIdYSr','description','198ePGnka','apiError','2299041xFzWaI','209lZfgqv','369lXnSIZ','string','1442gOEipe','response','786BETFFT','message','code','headers','3581uANGdf','status','validation','stringify','Request\x20rejected\x20(HTTP\x20401).','The\x20response\x20does\x20not\x20identify\x20whether\x20authentication\x20or\x20permission\x20checks\x20failed.'];a123_0x1e3a=function(){return _0x6fa989;};return a123_0x1e3a();}function userFacingLovrabetMessage(_0x14812a){const _0x5cf4d2=a123_0x702c,_0xc249a6=_0x14812a[_0x5cf4d2(0x162)];if(_0xc249a6!==undefined&&_0xc249a6!==null){if(typeof _0xc249a6===_0x5cf4d2(0x168)&&_0xc249a6['trim']())return _0xc249a6['trim']();try{return JSON[_0x5cf4d2(0x15a)](_0xc249a6);}catch{}}return _0x14812a[_0x5cf4d2(0x154)];}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x206489,_0x4df318){const _0x59b5f6=a124_0x4cb4,_0x264ca9=_0x206489();while(!![]){try{const _0x4c3fe1=parseInt(_0x59b5f6(0x13f))/0x1+parseInt(_0x59b5f6(0x104))/0x2+-parseInt(_0x59b5f6(0x13c))/0x3*(-parseInt(_0x59b5f6(0x13b))/0x4)+-parseInt(_0x59b5f6(0x126))/0x5*(parseInt(_0x59b5f6(0x145))/0x6)+-parseInt(_0x59b5f6(0x13a))/0x7*(parseInt(_0x59b5f6(0x141))/0x8)+parseInt(_0x59b5f6(0x143))/0x9+parseInt(_0x59b5f6(0x10a))/0xa;if(_0x4c3fe1===_0x4df318)break;else _0x264ca9['push'](_0x264ca9['shift']());}catch(_0x594f5a){_0x264ca9['push'](_0x264ca9['shift']());}}}(a124_0x4b12,0xd04b0));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';function a124_0x4b12(){const _0x504d64=['requiresAppCode','currentApp','1614758kDaeWT','resolve','High-risk\x20operation\x20`','Run\x20`','error','format','1764180pJFEvW','APPCODE','ACCESS_KEY','install','ClientAk','../core/api-client.js','command','isNonInteractive','update','rawFlags','\x20or\x20pass\x20','../commands/app/remote-source.js','accessKey','\x20\x20To\x20proceed:\x20','map','execute','newConfigFileName','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','filter','requiresAuth','string','cancelled','catch','riskLevel','nativeToolRequired','trim','env','Unknown\x20app:\x20','2815kKjRnM','appCode','validation','defaultPageSize','production','pageSize','configMissing','appcode','local-alias','runtimeDomain','defaultApp','items','formatOutput','name','has','.appcode\x20to\x20','pretty','risk','mergedCli','confirmHighRisk','8894277qPmKrQ','36wWFoFk','191094fmmSuK','doctor','cli-skill','281850ggwbLq','app','8UWBbnO','appCodeSource','5264361sbHmjP','object','3198YswGtu','service','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','_notice'];a124_0x4b12=function(){return _0x504d64;};return a124_0x4b12();}import{assertCliVersionSupported,checkCliVersion}from'../utils/cli-version-check.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x504a92){const _0x4cf69a=a124_0x4cb4;return void _0x504a92,AUTH_MODE[_0x4cf69a(0x10e)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x51059e,_0x48c14e){const _0x4cc1da=a124_0x4cb4,_0x257e7a=typeof _0x48c14e[_0x4cc1da(0x140)]==='string'&&_0x48c14e['app'][_0x4cc1da(0x123)]();return{'rawFlags':_0x48c14e,'appCode':_0x51059e[_0x4cc1da(0x127)]||productEnv('APPCODE')||(_0x257e7a?undefined:readAppCodeFromConfig()),'appCodeSource':_0x51059e[_0x4cc1da(0x142)],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x48c14e),'defaultFormat':_0x51059e[_0x4cc1da(0x109)],'defaultPageSize':_0x51059e[_0x4cc1da(0x12b)],'defaultVerbose':_0x51059e['verbose'],'riskLevel':_0x51059e[_0x4cc1da(0x121)],'nativeToolAvailable':_0x51059e['nativeToolAvailable'],'accessKey':_0x51059e[_0x4cc1da(0x116)],'env':_0x51059e[_0x4cc1da(0x124)],'mergedCli':{'defaultApp':_0x51059e['defaultApp'],'currentApp':_0x51059e[_0x4cc1da(0x103)],'appCode':_0x51059e[_0x4cc1da(0x127)]}};}export function createLovrabetRunnerAdapter(_0x302211={}){const _0x347c01=a124_0x4cb4,_0x355c09={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x347c01(0x11c)](_0x3fdd0f=>PIPELINE_FLAG_NAMES[_0x347c01(0x134)](_0x3fdd0f[_0x347c01(0x133)]))[_0x347c01(0x118)](({name:_0x333275,type:_0x3b0bba,description:_0x43d893})=>({'name':_0x333275,'type':_0x3b0bba,'description':_0x43d893})),'formatOutput':_0x302211[_0x347c01(0x132)]??formatOutput,'getCommandLabel'(_0x2ebd19){const _0x5551fe=_0x347c01;return CLI_BIN_NAME+'\x20'+_0x2ebd19[_0x5551fe(0x146)]+'\x20'+_0x2ebd19[_0x5551fe(0x110)];},'riskPolicy':{'onViolation'(_0x1d81d6,{def:_0x49a550,env:_0x250fcc}){const _0x1b5d75=_0x347c01;if(shouldRouteWriteToNativeTool(_0x49a550,_0x250fcc))return;console[_0x1b5d75(0x108)](_0x1d81d6);},'createError'(_0x4b572c,{def:_0x1821fc,env:_0x2a1be5}){const _0x6dc829=_0x347c01;if(shouldRouteWriteToNativeTool(_0x1821fc,_0x2a1be5))return CliErrors[_0x6dc829(0x122)](CLI_BIN_NAME+'\x20'+_0x1821fc[_0x6dc829(0x146)]+'\x20'+_0x1821fc['command']);return CliErrors[_0x6dc829(0x11f)](_0x4b572c);}},async 'prepare'(_0x37f963,_0x532677){const _0x405f7e=_0x347c01,_0x39b280=resolveAuthMode(_0x532677);if(_0x37f963[_0x405f7e(0x11d)]!==![]){if(!_0x532677['accessKey'])throw CliErrors['authRequired']('Set\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+_0x405f7e(0x114)+productEnvName(_0x405f7e(0x10c))+'.');const {setActiveAK:_0x30fe00}=await import(_0x405f7e(0x10f));_0x30fe00(_0x532677[_0x405f7e(0x116)]);}let _0x2396d8='';if(_0x37f963[_0x405f7e(0x149)]!==![]){_0x2396d8=_0x532677[_0x405f7e(0x127)]??'',_0x2396d8=await resolveExplicitAppName(_0x37f963,_0x532677,_0x2396d8);if(!_0x2396d8){await assertSelectedAppNameIsRuntimeAccessible(_0x37f963,_0x532677);throw CliErrors[_0x405f7e(0x12c)](_0x405f7e(0x11b)+PRODUCT_CONFIG['newConfigFileName']+'.');}await assertAppCodeIsRuntimeAccessible(_0x37f963,_0x532677,_0x2396d8);}if(_0x2396d8){const {initSdkClient:_0x3283a7}=await import('../core/sdk-client.js');_0x3283a7({'appCode':_0x2396d8,'env':_0x532677[_0x405f7e(0x124)]??_0x405f7e(0x12a),'runtimeDomain':_0x532677[_0x405f7e(0x12f)],'accessKey':_0x532677[_0x405f7e(0x116)],'authMode':_0x39b280}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x532677['defaultVerbose']},'numbers':{'pagesize':_0x532677[_0x405f7e(0x129)]}},'extras':{'appCode':_0x2396d8,'cookie':'','apiDomain':_0x532677['apiDomain'],'apiDir':'','accessKey':_0x532677['accessKey'],'envName':_0x532677[_0x405f7e(0x124)],'mergedCli':_0x532677[_0x405f7e(0x138)]}};},'confirmHighRisk':_0x302211[_0x347c01(0x139)]??(async({def:_0x2b0c62,env:_0x54656d,flags:_0x2b71b4,commandLabel:_0x2cd7c5})=>{const _0x2ebf68=_0x347c01;if(_0x54656d[_0x2ebf68(0x111)]){const _0x5d157e=reconstructCommandArgv(_0x2b0c62,_0x2b71b4);throw CliErrors[_0x2ebf68(0x128)](_0x2ebf68(0x106)+_0x2cd7c5+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a'+(_0x2ebf68(0x117)+_0x5d157e));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x2b0c62,_0x2cd7c5,_0x2b71b4),'createCancelledError':_0x40ec00=>CliErrors[_0x2ebf68(0x11f)](_0x40ec00)});}),'mapDryRunError'(_0x53a34b){return mapUserFacingExecuteError(_0x53a34b);},'mapExecuteError'(_0x2cd016){return mapUserFacingExecuteError(_0x2cd016);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x355c09;}function shouldRouteWriteToNativeTool(_0x47fa10,_0x4a437a){const _0x209bc1=a124_0x4cb4;return _0x4a437a['nativeToolAvailable']===!![]&&(_0x47fa10[_0x209bc1(0x137)]==='write'||_0x47fa10[_0x209bc1(0x137)]==='high-risk-write');}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x5d88d5=a124_0x4cb4;try{if(sdkClientInitialized){const {clearSdkClient:_0x45c5b1}=await import('../core/sdk-client.js');_0x45c5b1();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x33ec46}=await import(_0x5d88d5(0x10f));_0x33ec46();}}async function resolveExplicitAppName(_0x168226,_0x2f79b6,_0x1e483d){const _0x56d57f=a124_0x4cb4;if(_0x168226[_0x56d57f(0x149)]===![])return _0x1e483d;const _0x569a46=typeof _0x2f79b6[_0x56d57f(0x113)][_0x56d57f(0x140)]==='string'?_0x2f79b6[_0x56d57f(0x113)][_0x56d57f(0x140)][_0x56d57f(0x123)]():'';if(!_0x569a46)return _0x1e483d;const _0x8143c3=typeof _0x2f79b6[_0x56d57f(0x113)]['appcode']===_0x56d57f(0x11e)&&_0x2f79b6[_0x56d57f(0x113)][_0x56d57f(0x12d)][_0x56d57f(0x123)]()||productEnv(_0x56d57f(0x10b));if(_0x8143c3||_0x2f79b6['appCodeSource']===_0x56d57f(0x12e))return _0x1e483d;const {getRemoteAppList:_0x309e70}=await import('../commands/app/remote-source.js'),_0x28158b=await _0x309e70({'env':_0x2f79b6[_0x56d57f(0x124)]??_0x56d57f(0x12a),'accessKey':_0x2f79b6[_0x56d57f(0x116)]}),_0x1fdef2=findAppByName(_0x28158b[_0x56d57f(0x131)],_0x569a46);if(_0x1fdef2&&!isRuntimeAccessibleApp(_0x1fdef2))throw runtimeInaccessibleAppError(_0x1fdef2,'\x22'+_0x569a46+'\x22');const _0x212509=_0x1fdef2?.[_0x56d57f(0x127)]?.[_0x56d57f(0x123)]();if(_0x212509)return _0x212509;throw CliErrors[_0x56d57f(0x128)](_0x56d57f(0x125)+_0x569a46,_0x56d57f(0x107)+CLI_BIN_NAME+_0x56d57f(0x147)+_0x569a46+_0x56d57f(0x135)+PRODUCT_CONFIG[_0x56d57f(0x11a)]+'.');}function a124_0x4cb4(_0x3b44e5,_0x4ec254){_0x3b44e5=_0x3b44e5-0x103;const _0x4b12cc=a124_0x4b12();let _0x4cb4b5=_0x4b12cc[_0x3b44e5];return _0x4cb4b5;}async function assertSelectedAppNameIsRuntimeAccessible(_0x382d6e,_0x52daf6){const _0x5ee55a=a124_0x4cb4;if(_0x382d6e[_0x5ee55a(0x149)]===![]||!_0x52daf6['accessKey'])return;const _0x9a5a11=(typeof _0x52daf6[_0x5ee55a(0x113)][_0x5ee55a(0x140)]===_0x5ee55a(0x11e)&&_0x52daf6['rawFlags'][_0x5ee55a(0x140)]['trim']()?_0x52daf6[_0x5ee55a(0x113)]['app']:_0x52daf6[_0x5ee55a(0x138)]?.['currentApp']??_0x52daf6[_0x5ee55a(0x138)]?.[_0x5ee55a(0x130)])?.[_0x5ee55a(0x123)]();if(!_0x9a5a11)return;const {getRemoteAppList:_0x8629ef}=await import(_0x5ee55a(0x115)),_0x5e4a70=await _0x8629ef({'env':_0x52daf6[_0x5ee55a(0x124)]??_0x5ee55a(0x12a),'accessKey':_0x52daf6[_0x5ee55a(0x116)]}),_0x8a0457=findAppByName(_0x5e4a70[_0x5ee55a(0x131)],_0x9a5a11);if(_0x8a0457&&!isRuntimeAccessibleApp(_0x8a0457))throw runtimeInaccessibleAppError(_0x8a0457,'\x22'+_0x9a5a11+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x4df637,_0x5f4298,_0x2a941f){const _0x377e54=a124_0x4cb4;if(_0x4df637[_0x377e54(0x149)]===![]||!_0x5f4298['accessKey'])return;const {getRemoteAppList:_0x4ae08c}=await import(_0x377e54(0x115)),_0x4640df=await _0x4ae08c({'env':_0x5f4298[_0x377e54(0x124)]??_0x377e54(0x12a),'accessKey':_0x5f4298[_0x377e54(0x116)]}),_0x32989b=findAppByCode(_0x4640df[_0x377e54(0x131)],_0x2a941f);if(_0x32989b&&!isRuntimeAccessibleApp(_0x32989b))throw runtimeInaccessibleAppError(_0x32989b,'appcode\x20\x22'+_0x2a941f+'\x22');}export async function runCommand(_0x49233a,_0x3e88b2,_0x16f74a=terminalRunnerAdapter){assertKnownCommandFlags(_0x49233a,_0x3e88b2['rawFlags']),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x49233a)?withVersionPolicy(_0x49233a):_0x49233a,_0x3e88b2,_0x16f74a);}function shouldApplyVersionPolicy(_0x271861){const _0x3c4677=a124_0x4cb4;if([_0x3c4677(0x112),'schema',_0x3c4677(0x13d)]['includes'](_0x271861[_0x3c4677(0x146)]))return![];return!(_0x271861[_0x3c4677(0x146)]===_0x3c4677(0x13e)&&_0x271861[_0x3c4677(0x110)]===_0x3c4677(0x10d));}function withVersionPolicy(_0x1fb0be){return{..._0x1fb0be,async 'execute'(_0x38d413){const _0x533586=a124_0x4cb4,_0x3df0b0=await checkCliVersion();assertCliVersionSupported(_0x3df0b0);const _0x4b5d58=shouldResolveUpdateNotice(_0x38d413)?resolveLatestUpdateNotice(_0x3df0b0)[_0x533586(0x120)](()=>null):Promise[_0x533586(0x105)](null),_0x1a29bf=await _0x1fb0be[_0x533586(0x119)](_0x38d413);return attachUpdateNotice(_0x1a29bf,await _0x4b5d58);}};}function shouldResolveUpdateNotice(_0xdb2847){const _0x1bd37a=a124_0x4cb4;return _0xdb2847['format']===_0x1bd37a(0x136)&&!_0xdb2847['nonInteractive'];}function attachUpdateNotice(_0x4f79a3,_0x679edb){const _0x198075=a124_0x4cb4;if(!_0x679edb||!_0x4f79a3||typeof _0x4f79a3!==_0x198075(0x144))return _0x4f79a3;const _0x5b6c4f=_0x4f79a3,_0x416137=typeof _0x5b6c4f[_0x198075(0x148)]===_0x198075(0x144)&&_0x5b6c4f[_0x198075(0x148)]!==null?_0x5b6c4f['_notice']:{};return{..._0x5b6c4f,'_notice':{..._0x416137,'update':_0x679edb}};}
|
|
1
|
+
(function(_0x216c13,_0x44a944){const _0x432737=a124_0x4f73,_0x5627ed=_0x216c13();while(!![]){try{const _0x24c6ba=-parseInt(_0x432737(0x130))/0x1*(-parseInt(_0x432737(0x156))/0x2)+-parseInt(_0x432737(0x12d))/0x3*(-parseInt(_0x432737(0x134))/0x4)+-parseInt(_0x432737(0x159))/0x5+parseInt(_0x432737(0x145))/0x6+-parseInt(_0x432737(0x138))/0x7*(-parseInt(_0x432737(0x169))/0x8)+-parseInt(_0x432737(0x149))/0x9+-parseInt(_0x432737(0x16a))/0xa;if(_0x24c6ba===_0x44a944)break;else _0x5627ed['push'](_0x5627ed['shift']());}catch(_0x333610){_0x5627ed['push'](_0x5627ed['shift']());}}}(a124_0x36dc,0x5bfe9));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(_0x335e62){return void _0x335e62,AUTH_MODE['ClientAk'];}let sdkClientInitialized=![];export function createPipelineEnv(_0x19b7ab,_0x339f21){const _0x31f201=a124_0x4f73,_0x36a439=typeof _0x339f21[_0x31f201(0x151)]===_0x31f201(0x15b)&&_0x339f21[_0x31f201(0x151)][_0x31f201(0x132)]();return{'rawFlags':_0x339f21,'appCode':_0x19b7ab[_0x31f201(0x148)]||productEnv(_0x31f201(0x140))||(_0x36a439?undefined:readAppCodeFromConfig()),'appCodeSource':_0x19b7ab[_0x31f201(0x133)],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x339f21),'defaultFormat':_0x19b7ab[_0x31f201(0x163)],'defaultPageSize':_0x19b7ab[_0x31f201(0x15f)],'defaultVerbose':_0x19b7ab['verbose'],'riskLevel':_0x19b7ab[_0x31f201(0x12b)],'nativeToolAvailable':_0x19b7ab[_0x31f201(0x157)],'accessKey':_0x19b7ab['accessKey'],'env':_0x19b7ab[_0x31f201(0x13b)],'mergedCli':{'defaultApp':_0x19b7ab[_0x31f201(0x135)],'currentApp':_0x19b7ab[_0x31f201(0x150)],'appCode':_0x19b7ab[_0x31f201(0x148)]}};}export function createLovrabetRunnerAdapter(_0x4ab10e={}){const _0xb96e99=a124_0x4f73,_0x3ba5d5={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0xb96e99(0x12c)](_0x34208c=>PIPELINE_FLAG_NAMES[_0xb96e99(0x147)](_0x34208c[_0xb96e99(0x142)]))['map'](({name:_0x3b36e9,type:_0x494b5f,description:_0xd852b})=>({'name':_0x3b36e9,'type':_0x494b5f,'description':_0xd852b})),'formatOutput':_0x4ab10e[_0xb96e99(0x161)]??formatOutput,'getCommandLabel'(_0x118e88){const _0x2309e7=_0xb96e99;return CLI_BIN_NAME+'\x20'+_0x118e88[_0x2309e7(0x146)]+'\x20'+_0x118e88[_0x2309e7(0x152)];},'riskPolicy':{'onViolation'(_0x6ec49b,{def:_0x31beed,env:_0x77044e}){if(shouldRouteWriteToNativeTool(_0x31beed,_0x77044e))return;console['error'](_0x6ec49b);},'createError'(_0x57dc6a,{def:_0x3ce742,env:_0x393b7e}){const _0x4a69ac=_0xb96e99;if(shouldRouteWriteToNativeTool(_0x3ce742,_0x393b7e))return CliErrors[_0x4a69ac(0x143)](CLI_BIN_NAME+'\x20'+_0x3ce742[_0x4a69ac(0x146)]+'\x20'+_0x3ce742[_0x4a69ac(0x152)]);return CliErrors['cancelled'](_0x57dc6a);}},async 'prepare'(_0x52d20d,_0x17ceb3){const _0x459360=_0xb96e99,_0xcd8ea0=resolveAuthMode(_0x17ceb3);if(_0x52d20d['requiresAuth']!==![]){if(!_0x17ceb3[_0x459360(0x14c)])throw CliErrors['authRequired']('Set\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x459360(0x136)]+'\x20or\x20pass\x20'+productEnvName(_0x459360(0x139))+'.');const {setActiveAK:_0x10653b}=await import(_0x459360(0x141));_0x10653b(_0x17ceb3[_0x459360(0x14c)]);}let _0x206921='';if(_0x52d20d[_0x459360(0x144)]!==![]){_0x206921=_0x17ceb3[_0x459360(0x148)]??'',_0x206921=await resolveExplicitAppName(_0x52d20d,_0x17ceb3,_0x206921);if(!_0x206921){await assertSelectedAppNameIsRuntimeAccessible(_0x52d20d,_0x17ceb3);throw CliErrors['configMissing'](_0x459360(0x13d)+PRODUCT_CONFIG[_0x459360(0x136)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x52d20d,_0x17ceb3,_0x206921);}if(_0x206921){const {initSdkClient:_0x3e38a2}=await import(_0x459360(0x137));_0x3e38a2({'appCode':_0x206921,'env':_0x17ceb3[_0x459360(0x13b)]??_0x459360(0x16b),'runtimeDomain':_0x17ceb3[_0x459360(0x15e)],'accessKey':_0x17ceb3['accessKey'],'authMode':_0xcd8ea0}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x17ceb3['defaultVerbose']},'numbers':{'pagesize':_0x17ceb3[_0x459360(0x154)]}},'extras':{'appCode':_0x206921,'cookie':'','apiDomain':_0x17ceb3[_0x459360(0x167)],'apiDir':'','accessKey':_0x17ceb3[_0x459360(0x14c)],'envName':_0x17ceb3[_0x459360(0x13b)],'mergedCli':_0x17ceb3[_0x459360(0x14b)]}};},'confirmHighRisk':_0x4ab10e[_0xb96e99(0x160)]??(async({def:_0x4a9e56,env:_0x4693e2,flags:_0x35ef9d,commandLabel:_0x4bb61b})=>{const _0x34d422=_0xb96e99;if(_0x4693e2[_0x34d422(0x14f)]){const _0x224870=reconstructCommandArgv(_0x4a9e56,_0x35ef9d);throw CliErrors[_0x34d422(0x168)]('High-risk\x20operation\x20`'+_0x4bb61b+_0x34d422(0x166)+(_0x34d422(0x131)+_0x224870));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x4a9e56,_0x4bb61b,_0x35ef9d),'createCancelledError':_0x5746e1=>CliErrors[_0x34d422(0x153)](_0x5746e1)});}),'mapDryRunError'(_0x595334){return mapUserFacingExecuteError(_0x595334);},'mapExecuteError'(_0x39b391){return mapUserFacingExecuteError(_0x39b391);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x3ba5d5;}function shouldRouteWriteToNativeTool(_0x55c013,_0x3e1d08){const _0x386ac3=a124_0x4f73;return _0x3e1d08[_0x386ac3(0x157)]===!![]&&(_0x55c013[_0x386ac3(0x15a)]==='write'||_0x55c013[_0x386ac3(0x15a)]===_0x386ac3(0x15d));}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x520538=a124_0x4f73;try{if(sdkClientInitialized){const {clearSdkClient:_0x33bc3c}=await import(_0x520538(0x137));_0x33bc3c();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0xc6a454}=await import(_0x520538(0x141));_0xc6a454();}}function a124_0x36dc(){const _0x248136=['newConfigFileName','../core/sdk-client.js','567OfZnay','ACCESS_KEY','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','env','rawFlags','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','Run\x20`','local-alias','APPCODE','../core/api-client.js','name','nativeToolRequired','requiresAppCode','3468654pUltRU','service','has','appCode','5081805yZXjLj','Unknown\x20app:\x20','mergedCli','accessKey','appcode','items','isNonInteractive','currentApp','app','command','cancelled','defaultPageSize','object','34046GvTdri','nativeToolAvailable','catch','665220tZWJZk','risk','string','../commands/app/remote-source.js','high-risk-write','runtimeDomain','pageSize','confirmHighRisk','formatOutput','pretty','format','_notice','schema','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','apiDomain','validation','42248HuJdGA','9623370mCEfxH','production','riskLevel','filter','24tQKdsH','.appcode\x20to\x20','appcode\x20\x22','19qRgsUt','\x20\x20To\x20proceed:\x20','trim','appCodeSource','353764KRNyHd','defaultApp'];a124_0x36dc=function(){return _0x248136;};return a124_0x36dc();}async function resolveExplicitAppName(_0x33acc7,_0x3912df,_0x2f5236){const _0x5b548c=a124_0x4f73;if(_0x33acc7[_0x5b548c(0x144)]===![])return _0x2f5236;const _0x45a5a5=typeof _0x3912df[_0x5b548c(0x13c)][_0x5b548c(0x151)]===_0x5b548c(0x15b)?_0x3912df[_0x5b548c(0x13c)][_0x5b548c(0x151)][_0x5b548c(0x132)]():'';if(!_0x45a5a5)return _0x2f5236;const _0x3ee0c3=typeof _0x3912df[_0x5b548c(0x13c)][_0x5b548c(0x14d)]===_0x5b548c(0x15b)&&_0x3912df[_0x5b548c(0x13c)][_0x5b548c(0x14d)][_0x5b548c(0x132)]()||productEnv(_0x5b548c(0x140));if(_0x3ee0c3||_0x3912df[_0x5b548c(0x133)]===_0x5b548c(0x13f))return _0x2f5236;const {getRemoteAppList:_0x2a36d3}=await import(_0x5b548c(0x15c)),_0x2e4dda=await _0x2a36d3({'env':_0x3912df['env']??_0x5b548c(0x16b),'accessKey':_0x3912df['accessKey']}),_0x4307e1=findAppByName(_0x2e4dda[_0x5b548c(0x14e)],_0x45a5a5);if(_0x4307e1&&!isRuntimeAccessibleApp(_0x4307e1))throw runtimeInaccessibleAppError(_0x4307e1,'\x22'+_0x45a5a5+'\x22');const _0x38345a=_0x4307e1?.[_0x5b548c(0x148)]?.[_0x5b548c(0x132)]();if(_0x38345a)return _0x38345a;throw CliErrors[_0x5b548c(0x168)](_0x5b548c(0x14a)+_0x45a5a5,_0x5b548c(0x13e)+CLI_BIN_NAME+_0x5b548c(0x13a)+_0x45a5a5+_0x5b548c(0x12e)+PRODUCT_CONFIG[_0x5b548c(0x136)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x2d65db,_0x3bdce3){const _0x3dd460=a124_0x4f73;if(_0x2d65db[_0x3dd460(0x144)]===![]||!_0x3bdce3[_0x3dd460(0x14c)])return;const _0x562852=(typeof _0x3bdce3[_0x3dd460(0x13c)][_0x3dd460(0x151)]===_0x3dd460(0x15b)&&_0x3bdce3[_0x3dd460(0x13c)][_0x3dd460(0x151)][_0x3dd460(0x132)]()?_0x3bdce3[_0x3dd460(0x13c)][_0x3dd460(0x151)]:_0x3bdce3['mergedCli']?.[_0x3dd460(0x150)]??_0x3bdce3[_0x3dd460(0x14b)]?.[_0x3dd460(0x135)])?.['trim']();if(!_0x562852)return;const {getRemoteAppList:_0x282d5d}=await import(_0x3dd460(0x15c)),_0x20a808=await _0x282d5d({'env':_0x3bdce3[_0x3dd460(0x13b)]??_0x3dd460(0x16b),'accessKey':_0x3bdce3['accessKey']}),_0x2db281=findAppByName(_0x20a808['items'],_0x562852);if(_0x2db281&&!isRuntimeAccessibleApp(_0x2db281))throw runtimeInaccessibleAppError(_0x2db281,'\x22'+_0x562852+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x43a9b7,_0x226979,_0x43ce05){const _0x378876=a124_0x4f73;if(_0x43a9b7[_0x378876(0x144)]===![]||!_0x226979[_0x378876(0x14c)])return;const {getRemoteAppList:_0x4297bd}=await import('../commands/app/remote-source.js'),_0x1deaf1=await _0x4297bd({'env':_0x226979[_0x378876(0x13b)]??_0x378876(0x16b),'accessKey':_0x226979['accessKey']}),_0xb75500=findAppByCode(_0x1deaf1[_0x378876(0x14e)],_0x43ce05);if(_0xb75500&&!isRuntimeAccessibleApp(_0xb75500))throw runtimeInaccessibleAppError(_0xb75500,_0x378876(0x12f)+_0x43ce05+'\x22');}export async function runCommand(_0x50cb28,_0xdbc2eb,_0x245bc1=terminalRunnerAdapter){const _0x388841=a124_0x4f73;assertKnownCommandFlags(_0x50cb28,_0xdbc2eb[_0x388841(0x13c)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x50cb28)?withVersionPolicy(_0x50cb28):_0x50cb28,_0xdbc2eb,_0x245bc1);}function shouldApplyVersionPolicy(_0x4d5f59){const _0x3c6327=a124_0x4f73;if(['update',_0x3c6327(0x165),'doctor']['includes'](_0x4d5f59[_0x3c6327(0x146)]))return![];return!(_0x4d5f59[_0x3c6327(0x146)]==='cli-skill'&&_0x4d5f59[_0x3c6327(0x152)]==='install');}function withVersionPolicy(_0x3d957f){return{..._0x3d957f,async 'execute'(_0x521154){const _0x4c2f39=a124_0x4f73,_0x514103=await checkCliVersion();assertCliVersionSupported(_0x514103);const _0x496ea1=shouldResolveUpdateNotice(_0x521154)?resolveLatestUpdateNotice(_0x514103)[_0x4c2f39(0x158)](()=>null):Promise['resolve'](null),_0x38e446=await _0x3d957f['execute'](_0x521154);return attachUpdateNotice(_0x38e446,await _0x496ea1);}};}function a124_0x4f73(_0x226f87,_0x39a505){_0x226f87=_0x226f87-0x12b;const _0x36dc73=a124_0x36dc();let _0x4f73a6=_0x36dc73[_0x226f87];return _0x4f73a6;}function shouldResolveUpdateNotice(_0x532465){const _0x1c00b1=a124_0x4f73;return _0x532465[_0x1c00b1(0x163)]===_0x1c00b1(0x162)&&!_0x532465['nonInteractive'];}function attachUpdateNotice(_0x174b27,_0xd6fb12){const _0x1bdbab=a124_0x4f73;if(!_0xd6fb12||!_0x174b27||typeof _0x174b27!==_0x1bdbab(0x155))return _0x174b27;const _0x1ff8ae=_0x174b27,_0x4475f8=typeof _0x1ff8ae[_0x1bdbab(0x164)]===_0x1bdbab(0x155)&&_0x1ff8ae[_0x1bdbab(0x164)]!==null?_0x1ff8ae[_0x1bdbab(0x164)]:{};return{..._0x1ff8ae,'_notice':{..._0x4475f8,'update':_0xd6fb12}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a125_0xdc7d(){const _0x3cf1e9=['867703FrSeWK','../commands/registry.js','3077480LqXsEB','3837888SAaXHZ','filter','service','909888lvFmhz','none','has','935412DsdRgv','15cPxYDP','map','services','1134540GtPkts','commands','2723707apmIhi','requiresAuth'];a125_0xdc7d=function(){return _0x3cf1e9;};return a125_0xdc7d();}(function(_0xfe2ff0,_0x911c0){const _0x5292fb=a125_0x3582,_0x47ac1a=_0xfe2ff0();while(!![]){try{const _0x70d7b5=-parseInt(_0x5292fb(0x165))/0x1+parseInt(_0x5292fb(0x172))/0x2+parseInt(_0x5292fb(0x16b))/0x3+parseInt(_0x5292fb(0x168))/0x4+parseInt(_0x5292fb(0x16f))/0x5*(-parseInt(_0x5292fb(0x16e))/0x6)+-parseInt(_0x5292fb(0x163))/0x7+parseInt(_0x5292fb(0x167))/0x8;if(_0x70d7b5===_0x911c0)break;else _0x47ac1a['push'](_0x47ac1a['shift']());}catch(_0x25afa0){_0x47ac1a['push'](_0x47ac1a['shift']());}}}(a125_0xdc7d,0x77ae5));import{buildSchemaPayload as a125_0x5cdeab}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';function a125_0x3582(_0x38c2af,_0x3b4b7d){_0x38c2af=_0x38c2af-0x163;const _0xdc7dbb=a125_0xdc7d();let _0x3582b2=_0xdc7dbb[_0x38c2af];return _0x3582b2;}import{getCliGitCommit,getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x48c425=a125_0x3582,{serviceRegistry:_0x264c58,findDefinition:_0x3f8129}=await import(_0x48c425(0x166)),_0x35bea6=new Set(_0x264c58[_0x48c425(0x170)](_0x281b1f=>_0x281b1f[_0x48c425(0x16a)])),_0x18fbe0=listDynamicServiceEntries()[_0x48c425(0x169)](_0x259747=>!_0x35bea6[_0x48c425(0x16d)](_0x259747[_0x48c425(0x16a)])),_0x3ce26c=a125_0x5cdeab({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x264c58,_0x18fbe0),'buildAllFlags':buildAllFlags,'findDefinition':(_0x25196f,_0x536d1c)=>_0x3f8129(_0x25196f,_0x536d1c)??findDynamicServiceDefinition(_0x25196f,_0x536d1c)});return normalizeSchemaPayload(_0x3ce26c);}function normalizeSchemaPayload(_0x382fcb){const _0x5dc18d=a125_0x3582;return{..._0x382fcb,'schemaVersion':0x2,'services':_0x382fcb[_0x5dc18d(0x171)][_0x5dc18d(0x170)](_0x7df660=>({..._0x7df660,'commands':_0x7df660[_0x5dc18d(0x173)][_0x5dc18d(0x170)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x529b50){const _0x2d85c0=a125_0x3582,_0x2284b4=_0x529b50;return{..._0x529b50,'auth':_0x2284b4['auth']??(_0x529b50[_0x2d85c0(0x164)]?'required':_0x2d85c0(0x16c))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x415b52,_0x2940d2){const _0x433c24=a126_0xba88,_0x2f905b=_0x415b52();while(!![]){try{const _0x3ac9f5=-parseInt(_0x433c24(0x83))/0x1+parseInt(_0x433c24(0x7a))/0x2+-parseInt(_0x433c24(0x79))/0x3*(-parseInt(_0x433c24(0x84))/0x4)+parseInt(_0x433c24(0x7e))/0x5+parseInt(_0x433c24(0x7f))/0x6*(-parseInt(_0x433c24(0x78))/0x7)+-parseInt(_0x433c24(0x81))/0x8+parseInt(_0x433c24(0x80))/0x9*(-parseInt(_0x433c24(0x85))/0xa);if(_0x3ac9f5===_0x2940d2)break;else _0x2f905b['push'](_0x2f905b['shift']());}catch(_0x58ea4a){_0x2f905b['push'](_0x2f905b['shift']());}}}(a126_0x3dd6,0xe66cc));function a126_0xba88(_0x397c02,_0xf71598){_0x397c02=_0x397c02-0x78;const _0x3dd623=a126_0x3dd6();let _0xba885a=_0x3dd623[_0x397c02];return _0xba885a;}export function insertDynamicServicesAfterServiceTree(_0x216675,_0xdf0759){const _0xc7b35a=a126_0xba88;if(_0xdf0759[_0xc7b35a(0x82)]===0x0)return[..._0x216675];const _0x54783e=_0x216675[_0xc7b35a(0x7b)](_0x1d14fd=>_0x1d14fd[_0xc7b35a(0x7d)]===_0xc7b35a(0x7d));if(_0x54783e<0x0)return[..._0x216675,..._0xdf0759];return[..._0x216675['slice'](0x0,_0x54783e+0x1),..._0xdf0759,..._0x216675[_0xc7b35a(0x7c)](_0x54783e+0x1)];}function a126_0x3dd6(){const _0x229fab=['25317yXyZbP','6253488hBiFWa','length','184700iDYORU','1000MJzrkt','4500QWSOol','56AfgSnv','6189EoEhCr','3186514LiLZem','findIndex','slice','service','7988605HZAnSp','398004wzxbRH'];a126_0x3dd6=function(){return _0x229fab;};return a126_0x3dd6();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1b70c,_0xb0d490){var _0x485e6d=a127_0x5ed6,_0x5ca4a1=_0x1b70c();while(!![]){try{var _0x2cf456=-parseInt(_0x485e6d(0x130))/0x1+-parseInt(_0x485e6d(0x132))/0x2+parseInt(_0x485e6d(0x12f))/0x3+parseInt(_0x485e6d(0x12e))/0x4+parseInt(_0x485e6d(0x133))/0x5+parseInt(_0x485e6d(0x12c))/0x6+parseInt(_0x485e6d(0x131))/0x7*(-parseInt(_0x485e6d(0x12d))/0x8);if(_0x2cf456===_0xb0d490)break;else _0x5ca4a1['push'](_0x5ca4a1['shift']());}catch(_0x5c0e9c){_0x5ca4a1['push'](_0x5ca4a1['shift']());}}}(a127_0xda66,0xd8320));function a127_0x5ed6(_0x373811,_0x442142){_0x373811=_0x373811-0x12c;var _0xda663d=a127_0xda66();var _0x5ed63f=_0xda663d[_0x373811];return _0x5ed63f;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a127_0xda66(){var _0x1046e5=['2120278yBLnIi','8385445QQgYaJ','5592438wAPaRK','144VhOISy','2886872txvqex','120171Llglom','21496znHsBI','545909bOTpvk'];a127_0xda66=function(){return _0x1046e5;};return a127_0xda66();}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.3.8-beta.
|
|
2
|
-
export declare const GIT_TAG = "v2.3.8-beta.
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-10-
|
|
1
|
+
export declare const VERSION = "2.3.8-beta.3";
|
|
2
|
+
export declare const GIT_TAG = "v2.3.8-beta.3";
|
|
3
|
+
export declare const GIT_COMMIT = "6616ccb";
|
|
4
|
+
export declare const BUILD_TIME = "2026-10-30T05:40:15.781Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a128_0x135fd6=a128_0x206f;function a128_0x206f(_0x20db75,_0x1ae55a){_0x20db75=_0x20db75-0xc3;const _0x2ddc52=a128_0x2ddc();let _0x206f89=_0x2ddc52[_0x20db75];return _0x206f89;}(function(_0x1d0ed6,_0x5ba187){const _0x349358=a128_0x206f,_0x352fdc=_0x1d0ed6();while(!![]){try{const _0x46a8c4=-parseInt(_0x349358(0xc6))/0x1*(-parseInt(_0x349358(0xc7))/0x2)+parseInt(_0x349358(0xd0))/0x3+parseInt(_0x349358(0xc8))/0x4*(parseInt(_0x349358(0xca))/0x5)+-parseInt(_0x349358(0xce))/0x6*(-parseInt(_0x349358(0xc5))/0x7)+parseInt(_0x349358(0xc9))/0x8+-parseInt(_0x349358(0xc3))/0x9+-parseInt(_0x349358(0xcf))/0xa*(parseInt(_0x349358(0xcd))/0xb);if(_0x46a8c4===_0x5ba187)break;else _0x352fdc['push'](_0x352fdc['shift']());}catch(_0xc1d4dd){_0x352fdc['push'](_0x352fdc['shift']());}}}(a128_0x2ddc,0x6631e));export const VERSION=a128_0x135fd6(0xcc);function a128_0x2ddc(){const _0x35b44e=['2281725raEqlg','v2.3.8-beta.3','5432392IiJcec','148QFswIx','6598BYVfLJ','317396EaWibO','5689456dyroJh','5rsiSsg','2026-10-30T05:40:15.781Z','2.3.8-beta.3','583OHwTGd','6GZdfpv','276000ZBbFdB','240228YPKyCQ'];a128_0x2ddc=function(){return _0x35b44e;};return a128_0x2ddc();}export const GIT_TAG=a128_0x135fd6(0xc4);export const GIT_COMMIT='6616ccb';export const BUILD_TIME=a128_0x135fd6(0xcb);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a129_0x4f08f1=a129_0x177b;(function(_0x2848bc,_0x425efd){const _0x56e610=a129_0x177b,_0x82b36=_0x2848bc();while(!![]){try{const _0x53709a=-parseInt(_0x56e610(0x82))/0x1*(-parseInt(_0x56e610(0x7d))/0x2)+-parseInt(_0x56e610(0x80))/0x3+-parseInt(_0x56e610(0x71))/0x4+parseInt(_0x56e610(0x68))/0x5+parseInt(_0x56e610(0x7a))/0x6+-parseInt(_0x56e610(0x6b))/0x7*(parseInt(_0x56e610(0x87))/0x8)+-parseInt(_0x56e610(0x75))/0x9*(-parseInt(_0x56e610(0x76))/0xa);if(_0x53709a===_0x425efd)break;else _0x82b36['push'](_0x82b36['shift']());}catch(_0x4aecb7){_0x82b36['push'](_0x82b36['shift']());}}}(a129_0x5e70,0xa3889));function a129_0x177b(_0x56ec6d,_0x4c222c){_0x56ec6d=_0x56ec6d-0x68;const _0x5e70f0=a129_0x5e70();let _0x177b9b=_0x5e70f0[_0x56ec6d];return _0x177b9b;}function a129_0x5e70(){const _0x3d6c34=['54012jsWHGa','https://skills.lovrabet.id','https://daily-api.lovrabet.ai','https://api.lovrabet.com','https://user.lovrabet.com','Global','5317844SyoaOy','https://api.lovrabet.ai','https://kb-service.lovrabet.id','https://skills.lovrabet.ai','99gqDmtv','861270HhJMsv','china','https://user.lovrabet.ai','https://runtime.lovrabet.com','1726314REdTAK','https://kb-service-daily.lovrabet.com','Mainland\x20China','3072yHqtOW','https://runtime.lovrabet.ai','https://user-daily.lovrabet.ai','714303rumiWY','https://skills-daily.lovrabet.com','661fdBXUJ','https://kb-service.lovrabet.com','https://api.lovrabet.id','Indonesia','https://skills.lovrabet.com','920EogzEj','4371615TlalKX','https://skills-daily.lovrabet.ai','https://user.lovrabet.id'];a129_0x5e70=function(){return _0x3d6c34;};return a129_0x5e70();}export const ROUTING_CATALOG_DIGEST='886843ef89aa4ff2b36d612e8fbd1b6c1840b37728916fba5699be34129ef579';export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id','global'];export const ENABLED_REGION_VALUES=['cn','id','global'];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a129_0x4f08f1(0x7c),'aliases':[a129_0x4f08f1(0x77)],'serviceDomains':{'production':{'user':a129_0x4f08f1(0x6f),'api':a129_0x4f08f1(0x6e),'runtime':a129_0x4f08f1(0x79),'skill':a129_0x4f08f1(0x86),'kbService':a129_0x4f08f1(0x83)},'daily':{'user':'https://user-daily.lovrabet.com','api':'https://daily-api.lovrabet.com','runtime':'https://daily-runtime.lovrabet.com','skill':a129_0x4f08f1(0x81),'kbService':a129_0x4f08f1(0x7b)}}},'id':{'enabled':!![],'label':a129_0x4f08f1(0x85),'aliases':['indonesia'],'serviceDomains':{'production':{'user':a129_0x4f08f1(0x6a),'api':a129_0x4f08f1(0x84),'runtime':'https://runtime.lovrabet.id','skill':a129_0x4f08f1(0x6c),'kbService':a129_0x4f08f1(0x73)}}},'global':{'enabled':!![],'label':a129_0x4f08f1(0x70),'aliases':[],'serviceDomains':{'production':{'user':a129_0x4f08f1(0x78),'api':a129_0x4f08f1(0x72),'runtime':a129_0x4f08f1(0x7e),'skill':a129_0x4f08f1(0x74)},'daily':{'user':a129_0x4f08f1(0x7f),'api':a129_0x4f08f1(0x6d),'runtime':'https://daily-runtime.lovrabet.ai','skill':a129_0x4f08f1(0x69)}}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a130_0x5c5b95=a130_0x1b40;(function(_0x1d8b45,_0x2e63d0){const _0x1c760b=a130_0x1b40,_0x68c1d6=_0x1d8b45();while(!![]){try{const _0x78308a=-parseInt(_0x1c760b(0xd9))/0x1+parseInt(_0x1c760b(0xe4))/0x2+parseInt(_0x1c760b(0xdd))/0x3+parseInt(_0x1c760b(0xde))/0x4*(-parseInt(_0x1c760b(0xda))/0x5)+parseInt(_0x1c760b(0xe1))/0x6*(-parseInt(_0x1c760b(0xe0))/0x7)+-parseInt(_0x1c760b(0xe2))/0x8*(-parseInt(_0x1c760b(0xe3))/0x9)+parseInt(_0x1c760b(0xd8))/0xa;if(_0x78308a===_0x2e63d0)break;else _0x68c1d6['push'](_0x68c1d6['shift']());}catch(_0x11a2c6){_0x68c1d6['push'](_0x68c1d6['shift']());}}}(a130_0x35d7,0xc33b1));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST='e3423cad71c22edb18a8481be7bdb733ff2d4136c31aa3ae6da56271e32cced7';function a130_0x1b40(_0x1e6196,_0x58f272){_0x1e6196=_0x1e6196-0xd7;const _0x35d74f=a130_0x35d7();let _0x1b405a=_0x35d74f[_0x1e6196];return _0x1b405a;}export const ENTERPRISE_ROUTING_PROTOCOL=a130_0x5c5b95(0xe5);export const ENTERPRISE_ROUTING_KIND=a130_0x5c5b95(0xd7);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a130_0x5c5b95(0xdc),a130_0x5c5b95(0xdb),a130_0x5c5b95(0xdf),a130_0x5c5b95(0xe6),'kbServiceDomain'];function a130_0x35d7(){const _0xb9b8cd=['1383363xsuzYY','76612LYUsUu','runtimeDomain','7vsFChL','4144890nNMTAw','8aAWKfS','285723xfoKeY','731716TpLFKD','lovrabet-routing/v1','skillDomain','enterprise','27601460UbQTwN','1400578GASJpu','190OGymZd','apiDomain','userDomain'];a130_0x35d7=function(){return _0xb9b8cd;};return a130_0x35d7();}export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=['userDomain','apiDomain',a130_0x5c5b95(0xdf),'skillDomain'];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a131_0x5887(_0x45099e,_0x106c74){_0x45099e=_0x45099e-0x174;const _0x4a9fec=a131_0x4a9f();let _0x588762=_0x4a9fec[_0x45099e];return _0x588762;}(function(_0x1187a0,_0x5a658b){const _0x184305=a131_0x5887,_0x5150d5=_0x1187a0();while(!![]){try{const _0x3e48a8=-parseInt(_0x184305(0x17e))/0x1*(parseInt(_0x184305(0x17f))/0x2)+parseInt(_0x184305(0x182))/0x3*(parseInt(_0x184305(0x181))/0x4)+-parseInt(_0x184305(0x17c))/0x5*(parseInt(_0x184305(0x174))/0x6)+-parseInt(_0x184305(0x178))/0x7+-parseInt(_0x184305(0x17a))/0x8*(parseInt(_0x184305(0x176))/0x9)+-parseInt(_0x184305(0x180))/0xa+parseInt(_0x184305(0x17b))/0xb*(parseInt(_0x184305(0x177))/0xc);if(_0x3e48a8===_0x5a658b)break;else _0x5150d5['push'](_0x5150d5['shift']());}catch(_0x19c369){_0x5150d5['push'](_0x5150d5['shift']());}}}(a131_0x4a9f,0xce65a));import{jsx as a131_0xaa6e9e,jsxs as a131_0x2765ae}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';function a131_0x4a9f(){const _0x2c9e72=['10735130oDTftB','20AIDGCx','248928EiwtDW','4560AHuaji','column','6046956uyXRzZ','3481152vvZxkL','3934882GnPvZU','\x20--help','8oKjXmP','209qiLhtp','7645HJxFsl','green','907igBidI','3554ZbJOHE'];a131_0x4a9f=function(){return _0x2c9e72;};return a131_0x4a9f();}export function Help(){const _0x3e4cc2=a131_0x5887,{exit:_0x36e379}=useApp();return useEffect(()=>{_0x36e379();},[_0x36e379]),a131_0x2765ae(Box,{'flexDirection':_0x3e4cc2(0x175),'marginTop':0x1,'marginBottom':0x1,'children':[a131_0xaa6e9e(Box,{'children':a131_0xaa6e9e(Text,{'bold':!![],'color':_0x3e4cc2(0x17d),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a131_0x2765ae(Box,{'marginTop':0x1,'children':[a131_0xaa6e9e(Text,{'dimColor':!![],'children':'\x20\x20Use\x20'}),a131_0xaa6e9e(Text,{'bold':!![],'color':_0x3e4cc2(0x17d),'children':CLI_BIN_NAME+_0x3e4cc2(0x179)}),a131_0xaa6e9e(Text,{'dimColor':!![],'children':'\x20to\x20view\x20available\x20commands.'})]})]});}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a132_0x3a42(_0x52e641,_0x2f2eaf){_0x52e641=_0x52e641-0x1bc;const _0x587786=a132_0x5877();let _0x3a42d2=_0x587786[_0x52e641];return _0x3a42d2;}(function(_0x9c441e,_0x7a98e2){const _0xd323be=a132_0x3a42,_0x33ab9a=_0x9c441e();while(!![]){try{const _0x3a0fd4=-parseInt(_0xd323be(0x1cf))/0x1*(parseInt(_0xd323be(0x1c9))/0x2)+parseInt(_0xd323be(0x1c8))/0x3+-parseInt(_0xd323be(0x1d4))/0x4+-parseInt(_0xd323be(0x1ca))/0x5*(-parseInt(_0xd323be(0x1c3))/0x6)+-parseInt(_0xd323be(0x1d0))/0x7+-parseInt(_0xd323be(0x1cc))/0x8+-parseInt(_0xd323be(0x1d3))/0x9*(-parseInt(_0xd323be(0x1c4))/0xa);if(_0x3a0fd4===_0x7a98e2)break;else _0x33ab9a['push'](_0x33ab9a['shift']());}catch(_0x20da88){_0x33ab9a['push'](_0x33ab9a['shift']());}}}(a132_0x5877,0xe70aa));function a132_0x5877(){const _0x2faf6e=['log','warn','skillVersion','6QTdBSZ','5033540wqJcdn','\x20via\x20skills@latest','FAILED','Repair\x20with:\x20','3641739OPhOmy','100922jtFUai','2036095JOdEbe','code','3392752HdJSRi','already\x20current','installedPath','31TlNloU','4229085rIgOAq','SOURCE_INVALID','repairCommand','36AkQYTZ','382648HPsEfK','Installation\x20failed','Lovrabet\x20Built-in\x20Skill\x20','changed','installed'];a132_0x5877=function(){return _0x2faf6e;};return a132_0x5877();}import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x457178={}){const _0xa4aec8=a132_0x3a42,_0x241b54=installBuiltinSkill(_0x457178);if(_0x241b54['ok']){const _0x276a3f=_0x241b54[_0xa4aec8(0x1be)]?_0xa4aec8(0x1bf):_0xa4aec8(0x1cd),_0x51ed73=_0x241b54[_0xa4aec8(0x1ce)]?'\x20at\x20'+_0x241b54[_0xa4aec8(0x1ce)]:_0xa4aec8(0x1c5);return console[_0xa4aec8(0x1c0)](_0xa4aec8(0x1bd)+_0x241b54[_0xa4aec8(0x1c2)]+'\x20'+_0x276a3f+_0x51ed73),_0x241b54;}const _0x42e88b='[BUILTIN_SKILL_INSTALL_'+(_0x241b54[_0xa4aec8(0x1cb)]??_0xa4aec8(0x1c6))+']\x20'+(_0x241b54['error']??_0xa4aec8(0x1bc))+'.\x20'+(_0xa4aec8(0x1c7)+_0x241b54[_0xa4aec8(0x1d2)]);if(_0x241b54[_0xa4aec8(0x1cb)]===_0xa4aec8(0x1d1))throw new Error(_0x42e88b);return console[_0xa4aec8(0x1c1)](_0x42e88b),_0x241b54;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5cdbe8,_0x1949e1){const _0xc73a88=a133_0x18d3,_0x1213e7=_0x5cdbe8();while(!![]){try{const _0x294a9c=-parseInt(_0xc73a88(0x88))/0x1*(parseInt(_0xc73a88(0x92))/0x2)+-parseInt(_0xc73a88(0x8b))/0x3+-parseInt(_0xc73a88(0x91))/0x4*(-parseInt(_0xc73a88(0x96))/0x5)+-parseInt(_0xc73a88(0x93))/0x6+parseInt(_0xc73a88(0x8a))/0x7*(-parseInt(_0xc73a88(0x89))/0x8)+-parseInt(_0xc73a88(0x8f))/0x9+-parseInt(_0xc73a88(0x8e))/0xa*(-parseInt(_0xc73a88(0x86))/0xb);if(_0x294a9c===_0x1949e1)break;else _0x1213e7['push'](_0x1213e7['shift']());}catch(_0x3d4db6){_0x1213e7['push'](_0x1213e7['shift']());}}}(a133_0x2870,0xab725));const DESCRIPTION_MAX_LENGTH=0x1f4;function a133_0x2870(){const _0x46d303=['12euwteJ','6868368QohNdd','high-risk-write','Run\x20this\x20write\x20operation','355ifCVYj','trim','slice','99WarMVt','replace','103079IRsAra','5704iPgyVG','8295DOPflP','1567965IWwvCw','Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.','risk','4376860dfhucD','12520125hhKibu','write','72392qcceTj'];a133_0x2870=function(){return _0x46d303;};return a133_0x2870();}function a133_0x18d3(_0x4a9a41,_0xccd194){_0x4a9a41=_0x4a9a41-0x85;const _0x2870de=a133_0x2870();let _0x18d3ac=_0x2870de[_0x4a9a41];return _0x18d3ac;}export function buildLovrabetConfirmationRequest(_0x1eb778,_0x4b9732,_0x3b2b79){const _0x5788f5=a133_0x18d3,_0x459a5d=normalizeText(_0x1eb778['confirmationDescription'],DESCRIPTION_MAX_LENGTH),_0x2e9309=normalizeText(_0x1eb778['description'],DESCRIPTION_MAX_LENGTH);return{'operation':_0x4b9732,'risk':requireWriteRisk(_0x1eb778),'description':_0x459a5d||_0x2e9309||_0x5788f5(0x95),..._0x3b2b79?{'signal':_0x3b2b79}:{}};}function requireWriteRisk(_0x5ee989){const _0x5b8575=a133_0x18d3;if(_0x5ee989['risk']===_0x5b8575(0x90)||_0x5ee989['risk']===_0x5b8575(0x94))return _0x5ee989[_0x5b8575(0x8d)];throw new Error(_0x5b8575(0x8c));}function normalizeText(_0x3e9535,_0x190eb8){const _0x18cd33=a133_0x18d3;if(typeof _0x3e9535!=='string')return'';return _0x3e9535['replace'](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x18cd33(0x87)](/\s+/g,'\x20')[_0x18cd33(0x97)]()[_0x18cd33(0x85)](0x0,_0x190eb8);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4817fc,_0x3f3977){const _0x16e7f0=a134_0x2bec,_0x1c5c5c=_0x4817fc();while(!![]){try{const _0x19f7e9=-parseInt(_0x16e7f0(0x9e))/0x1+-parseInt(_0x16e7f0(0x98))/0x2+parseInt(_0x16e7f0(0x9f))/0x3*(parseInt(_0x16e7f0(0xa4))/0x4)+-parseInt(_0x16e7f0(0x9b))/0x5+-parseInt(_0x16e7f0(0xa5))/0x6+parseInt(_0x16e7f0(0xa1))/0x7*(parseInt(_0x16e7f0(0x95))/0x8)+parseInt(_0x16e7f0(0x9d))/0x9*(parseInt(_0x16e7f0(0x9a))/0xa);if(_0x19f7e9===_0x3f3977)break;else _0x1c5c5c['push'](_0x1c5c5c['shift']());}catch(_0x40cbd3){_0x1c5c5c['push'](_0x1c5c5c['shift']());}}}(a134_0x25f2,0xbab44));export function canonicalLovrabetOperation(_0x1ba152){const _0x437106=a134_0x2bec;return[_0x1ba152[_0x437106(0xa0)],..._0x1ba152[_0x437106(0x96)][_0x437106(0xa2)]()[_0x437106(0x97)](/\s+/)]['filter'](Boolean)[_0x437106(0x94)]('.');}function a134_0x25f2(){const _0x1d905b=['314420OUlEZQ','2569165WCXBeA','high-risk-write','801oGHavo','893756TIATjI','2985pSeTYo','service','35RChykZ','trim','risk','152bTIAAh','5570406Ttswxw','join','532744ADGGCi','command','split','136766OxSZpO','writeEventSubject'];a134_0x25f2=function(){return _0x1d905b;};return a134_0x25f2();}function a134_0x2bec(_0xeebc2e,_0x2bda90){_0xeebc2e=_0xeebc2e-0x94;const _0x25f2d3=a134_0x25f2();let _0x2bece8=_0x25f2d3[_0xeebc2e];return _0x2bece8;}export function createLovrabetWriteMetadata(_0x40fc2d,_0xe91c51,_0x1ce69f,_0x459406){const _0x299a64=a134_0x2bec;if(_0x459406||_0x1ce69f['ok']!==!![]||_0x40fc2d[_0x299a64(0xa3)]!=='write'&&_0x40fc2d[_0x299a64(0xa3)]!==_0x299a64(0x9c))return undefined;const _0x4f50d7=_0x40fc2d[_0x299a64(0x99)]?.(_0x1ce69f),_0x93e0c7={'type':'lovrabet.write.completed','operation':_0xe91c51,'risk':_0x40fc2d['risk'],..._0x4f50d7?{'subject':_0x4f50d7}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x93e0c7}};}
|