@lovrabet/rabetbase-cli 2.1.12-beta.0 → 2.1.12-beta.2
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/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/add.js +1 -1
- package/lib/commands/app/discover.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app/use.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/link-create.js +1 -1
- package/lib/commands/dataset/link-delete.js +1 -1
- package/lib/commands/dataset/link-shared.js +1 -1
- package/lib/commands/dataset/link-update.js +1 -1
- package/lib/commands/dataset/links.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -0
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -0
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/update.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/init.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.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/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/save.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.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/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.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/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +3 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x15d4e7,_0x582183){const _0x5572cc=a154_0x222b,_0x147c30=_0x15d4e7();while(!![]){try{const _0x27d2f8=parseInt(_0x5572cc(0x15b))/0x1+parseInt(_0x5572cc(0x162))/0x2+-parseInt(_0x5572cc(0x14d))/0x3*(parseInt(_0x5572cc(0x167))/0x4)+-parseInt(_0x5572cc(0x14b))/0x5*(-parseInt(_0x5572cc(0x165))/0x6)+parseInt(_0x5572cc(0x157))/0x7+-parseInt(_0x5572cc(0x169))/0x8*(-parseInt(_0x5572cc(0x153))/0x9)+-parseInt(_0x5572cc(0x163))/0xa*(parseInt(_0x5572cc(0x155))/0xb);if(_0x27d2f8===_0x582183)break;else _0x147c30['push'](_0x147c30['shift']());}catch(_0x1f3334){_0x147c30['push'](_0x147c30['shift']());}}}(a154_0x2f38,0xf2e90));function a154_0x222b(_0x338e0b,_0x23f927){_0x338e0b=_0x338e0b-0x14b;const _0x2f38f3=a154_0x2f38();let _0x222bc0=_0x2f38f3[_0x338e0b];return _0x222bc0;}import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x4058c2){const _0x2fc56a=a154_0x222b;if(_0x4058c2===_0x2fc56a(0x168))return _0x2fc56a(0x15e);if(_0x4058c2==='.xml')return _0x2fc56a(0x14c);return undefined;}async function scanSqlFilesRecursively(_0x2663f6,_0x1a7188){const _0x5b3066=a154_0x222b,_0x223be6=[];try{const _0xe6525a=await readdir(_0x2663f6,{'withFileTypes':!![]});for(const _0x506027 of _0xe6525a){const _0xe38aa6=join(_0x2663f6,_0x506027['name']);if(_0x506027['isDirectory']()){_0x223be6['push'](...await scanSqlFilesRecursively(_0xe38aa6,_0x1a7188));continue;}if(!_0x506027[_0x5b3066(0x16a)]())continue;const _0x54c8cd=extname(_0x506027['name'])['toLowerCase'](),_0x2b761a=extensionToMode(_0x54c8cd);if(!_0x2b761a)continue;const _0x49a5f3=relative(_0x1a7188,_0xe38aa6)[_0x5b3066(0x15a)](/\\/g,'/'),_0x45787e=_0x49a5f3[_0x5b3066(0x14f)]('/')[_0x5b3066(0x166)](Boolean),_0x1cb512=parseSqlPath(_0x45787e,_0x506027[_0x5b3066(0x154)],_0x54c8cd);if(!_0x1cb512)continue;_0x223be6[_0x5b3066(0x15d)]({'sqlCode':_0x1cb512[_0x5b3066(0x160)],'sqlName':_0x1cb512[_0x5b3066(0x156)],'dbDirectory':_0x45787e[0x0],'filePath':_0xe38aa6,'relativePath':_0x49a5f3,'lockKey':_0x1cb512['sqlCode'],'mode':_0x2b761a});}}catch(_0x38b684){if(_0x38b684[_0x5b3066(0x151)]!==_0x5b3066(0x164))throw _0x38b684;}return _0x223be6;}export async function scanLocalSqlQueries(_0x565725){const _0x30573a=a154_0x222b;return scanSqlFilesRecursively(_0x565725[_0x30573a(0x15f)],_0x565725[_0x30573a(0x15f)]);}function a154_0x2f38(){const _0x45ddde=['30041693ggkkjD','sqlName','8382486zBcoTj','dbName','dbId','replace','1945912oKvqMz','path','push','sql','sqlRootDir','sqlCode','test','3260184dUZPEY','10dRMtGB','ENOENT','6ZBxAsM','filter','616oBrFYC','.sql','8DgTOar','isFile','808975VqWlKp','mybatisXml','28230UmcrHk','mode','split','slice','code','length','2158794BevxRm','name'];a154_0x2f38=function(){return _0x45ddde;};return a154_0x2f38();}export function resolveLocalSqlFilePath(_0x5a6d41,_0x4a6666,_0x2a5426){const _0x2107c8=a154_0x222b,_0x4e8a3d=_0x2a5426?.[_0x2107c8(0x15c)]||(_0x2a5426?.[_0x2107c8(0x156)]||_0x2a5426?.[_0x2107c8(0x158)]?buildSqlRelativePath(_0x4a6666,_0x2a5426?.[_0x2107c8(0x156)],_0x2a5426?.[_0x2107c8(0x158)],_0x2a5426?.[_0x2107c8(0x14e)]||_0x2107c8(0x15e),_0x2a5426?.[_0x2107c8(0x159)]):buildDefaultSqlFileName(_0x4a6666,_0x2a5426?.['mode']||_0x2107c8(0x15e)));return join(_0x5a6d41['sqlRootDir'],_0x4e8a3d);}export async function directoryExists(_0x35e6d5){try{const _0x5bdeda=await stat(_0x35e6d5);return _0x5bdeda['isDirectory']();}catch{return![];}}function parseSqlPath(_0xeedbcd,_0x4243e8,_0x2b9e8a){const _0x23e9c7=a154_0x222b,_0x57fa40=_0x4243e8['slice'](0x0,-_0x2b9e8a[_0x23e9c7(0x152)]);if(_0xeedbcd[_0x23e9c7(0x152)]<0x2)return null;const _0x3b30f2=_0x57fa40['indexOf']('_');if(_0x3b30f2<=0x0||_0x3b30f2>=_0x57fa40[_0x23e9c7(0x152)]-0x1)return null;const _0x593413=_0x57fa40[_0x23e9c7(0x150)](0x0,_0x3b30f2);if(!isLikelySqlCode(_0x593413))return null;return{'sqlCode':_0x593413,'sqlName':_0x57fa40[_0x23e9c7(0x150)](_0x3b30f2+0x1)};}function isLikelySqlCode(_0x4d97d1){const _0x1b4091=a154_0x222b;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x1b4091(0x161)](_0x4d97d1);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a155_0x49b6(){const _0x5a0baa=['9187304HZMBEb','2270218PKOPRq','1xzoZmH','utf8','5615erAtgv','hex','createHash','6GFajeX','13340144RkBwtV','2636SqbfZG','md5','278146fRTocg','3604365jHAlaO','12894417MtKhKT','430CGIBiS','update'];a155_0x49b6=function(){return _0x5a0baa;};return a155_0x49b6();}function a155_0x5d0d(_0x1b1c3d,_0x1e5e93){_0x1b1c3d=_0x1b1c3d-0x126;const _0x49b6cd=a155_0x49b6();let _0x5d0d66=_0x49b6cd[_0x1b1c3d];return _0x5d0d66;}(function(_0xb8d12f,_0x6851d0){const _0x594977=a155_0x5d0d,_0x168cc1=_0xb8d12f();while(!![]){try{const _0x4cf069=parseInt(_0x594977(0x133))/0x1*(parseInt(_0x594977(0x132))/0x2)+parseInt(_0x594977(0x12d))/0x3+-parseInt(_0x594977(0x12a))/0x4*(-parseInt(_0x594977(0x135))/0x5)+-parseInt(_0x594977(0x128))/0x6*(parseInt(_0x594977(0x131))/0x7)+parseInt(_0x594977(0x129))/0x8+-parseInt(_0x594977(0x12e))/0x9+parseInt(_0x594977(0x12f))/0xa*(-parseInt(_0x594977(0x12c))/0xb);if(_0x4cf069===_0x6851d0)break;else _0x168cc1['push'](_0x168cc1['shift']());}catch(_0x19d75d){_0x168cc1['push'](_0x168cc1['shift']());}}}(a155_0x49b6,0xde928));import{readFile}from'node:fs/promises';import a155_0x55e5cc from'node:crypto';export function computeSqlContentHash(_0x2d5295){const _0x3f2416=a155_0x5d0d;return a155_0x55e5cc[_0x3f2416(0x127)](_0x3f2416(0x12b))[_0x3f2416(0x130)](_0x2d5295)['digest'](_0x3f2416(0x126));}export async function computeSqlFileHash(_0x1a6585){const _0x30c723=a155_0x5d0d,_0x269508=await readFile(_0x1a6585,_0x30c723(0x134));return computeSqlContentHash(_0x269508);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x284a18,_0x24b432){const _0x2f7706=a156_0x36c8,_0x4c83dd=_0x284a18();while(!![]){try{const _0x59de8e=parseInt(_0x2f7706(0xa4))/0x1*(-parseInt(_0x2f7706(0xa3))/0x2)+parseInt(_0x2f7706(0x90))/0x3*(parseInt(_0x2f7706(0xa0))/0x4)+-parseInt(_0x2f7706(0x9c))/0x5*(parseInt(_0x2f7706(0x8e))/0x6)+parseInt(_0x2f7706(0x8d))/0x7+-parseInt(_0x2f7706(0x92))/0x8*(-parseInt(_0x2f7706(0x8f))/0x9)+parseInt(_0x2f7706(0x99))/0xa+-parseInt(_0x2f7706(0xa1))/0xb;if(_0x59de8e===_0x24b432)break;else _0x4c83dd['push'](_0x4c83dd['shift']());}catch(_0x301099){_0x4c83dd['push'](_0x4c83dd['shift']());}}}(a156_0x17e4,0x277f0));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}function a156_0x36c8(_0x3800df,_0x5beca1){_0x3800df=_0x3800df-0x8d;const _0x17e48e=a156_0x17e4();let _0x36c830=_0x17e48e[_0x3800df];return _0x36c830;}function a156_0x17e4(){const _0x1f866a=['apps','sqls','5OgwvKJ','\x22\x20vs\x20lock\x20\x22','parse','sqlRoot','1316bwDuwe','3782680swfzbS','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','242906dksNcd','1xuiYNJ','lastSync','1871520UyZslz','377466McSWRG','45mhfduE','2229dHoubq','stringify','264720vBATjT','utf8','ENOENT','code','\x22.\x20','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','127630shNUmq'];a156_0x17e4=function(){return _0x1f866a;};return a156_0x17e4();}export function ensureSqlLockScope(_0x3e5320,_0x4dc146,_0x2fe9fc,_0x25c61d){const _0x2cb53c=a156_0x36c8,_0x1ae983=_0x3e5320??createEmptySqlLock();let _0x168d83=_0x1ae983[_0x2cb53c(0x9a)][_0x4dc146];if(!_0x168d83)return _0x168d83={'sqlRoot':_0x2fe9fc,'lastSync':'','sqls':{}},_0x1ae983[_0x2cb53c(0x9a)][_0x4dc146]=_0x168d83,{'lockData':_0x1ae983,'appLock':_0x168d83};if(!_0x168d83[_0x2cb53c(0x9f)])_0x168d83[_0x2cb53c(0x9f)]=_0x2fe9fc;else{if(_0x168d83['sqlRoot']!==_0x2fe9fc)throw new Error(_0x25c61d+_0x2cb53c(0x98)+_0x2fe9fc+_0x2cb53c(0x9d)+_0x168d83[_0x2cb53c(0x9f)]+_0x2cb53c(0x96)+_0x2cb53c(0xa2));}return!_0x168d83[_0x2cb53c(0x9b)]&&(_0x168d83['sqls']={}),!_0x168d83[_0x2cb53c(0xa5)]&&(_0x168d83[_0x2cb53c(0xa5)]=''),{'lockData':_0x1ae983,'appLock':_0x168d83};}export async function readSqlLockFile(_0x35e525){const _0x4876db=a156_0x36c8;try{const _0x40f0cf=await readFile(_0x35e525,_0x4876db(0x93));return JSON[_0x4876db(0x9e)](_0x40f0cf);}catch(_0x5cc5a8){if(_0x5cc5a8[_0x4876db(0x95)]===_0x4876db(0x94))return null;throw new Error(_0x4876db(0x97)+String(_0x5cc5a8));}}export async function writeSqlLockFile(_0x3af18d,_0x2cf1a7){const _0x38324a=a156_0x36c8;await mkdir(dirname(_0x3af18d),{'recursive':!![]}),await writeFile(_0x3af18d,JSON[_0x38324a(0x91)](_0x2cf1a7,null,0x2),'utf8');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x548598,_0x11af10){const _0x5f3cd5=a158_0x5d13,_0x3d321e=_0x548598();while(!![]){try{const _0x475867=parseInt(_0x5f3cd5(0xf3))/0x1+-parseInt(_0x5f3cd5(0xef))/0x2*(-parseInt(_0x5f3cd5(0xfa))/0x3)+-parseInt(_0x5f3cd5(0xf7))/0x4*(-parseInt(_0x5f3cd5(0xe9))/0x5)+parseInt(_0x5f3cd5(0xee))/0x6*(parseInt(_0x5f3cd5(0xfb))/0x7)+parseInt(_0x5f3cd5(0xea))/0x8*(parseInt(_0x5f3cd5(0xf9))/0x9)+parseInt(_0x5f3cd5(0xf6))/0xa*(parseInt(_0x5f3cd5(0xf5))/0xb)+-parseInt(_0x5f3cd5(0xf4))/0xc;if(_0x475867===_0x11af10)break;else _0x3d321e['push'](_0x3d321e['shift']());}catch(_0x5b40c5){_0x3d321e['push'](_0x3d321e['shift']());}}}(a158_0xa7cf,0x777e7));export function detectSqlMode(_0x42b009){const _0x3c6546=a158_0x5d13,_0x52e633=_0x42b009[_0x3c6546(0xed)]();if(/^<(select|insert|update|delete)\b/i[_0x3c6546(0xeb)](_0x52e633))return'mybatisXml';return _0x3c6546(0xf0);}export function getSqlFileExtension(_0x1de64f){const _0x3f5cd7=a158_0x5d13;return _0x1de64f===_0x3f5cd7(0xf8)?'.xml':_0x3f5cd7(0xf2);}export function buildDefaultSqlFileName(_0x4b31b6,_0x11f2d6){return''+_0x4b31b6+getSqlFileExtension(_0x11f2d6);}export function sanitizeSqlPathSegment(_0x38ad09,_0x539e18){const _0x23f245=a158_0x5d13,_0x1a2dea=String(_0x38ad09??'')['trim'](),_0x87b31b=_0x1a2dea[_0x23f245(0xe8)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')['replace'](/\s+/g,'-')[_0x23f245(0xe8)](/-+/g,'-')[_0x23f245(0xe8)](/^\.+/,'')[_0x23f245(0xe8)](/\.+$/,'')[_0x23f245(0xe8)](/^-+/,'')['replace'](/-+$/,'');return _0x87b31b||_0x539e18;}export function buildDbDirectoryName(_0x36f430,_0x1d4318){const _0x5cb2c6=a158_0x5d13;return sanitizeSqlPathSegment(_0x36f430,_0x1d4318!=null?_0x5cb2c6(0xf1)+_0x1d4318:'unknown-db');}function a158_0x5d13(_0x5d68cf,_0x49f35f){_0x5d68cf=_0x5d68cf-0xe8;const _0xa7cf0d=a158_0xa7cf();let _0x5d1370=_0xa7cf0d[_0x5d68cf];return _0x5d1370;}export function buildSqlRelativePath(_0x10de7b,_0xb28ab5,_0x4d755d,_0x1f5270,_0x52adba){const _0x3308ff=a158_0x5d13,_0x56e6e4=buildDbDirectoryName(_0x4d755d,_0x52adba),_0x4fd77e=sanitizeSqlPathSegment(_0x10de7b,_0x3308ff(0xec)),_0x2f9208=sanitizeSqlPathSegment(_0xb28ab5,_0x4fd77e);return _0x56e6e4+'/'+_0x4fd77e+'_'+_0x2f9208+getSqlFileExtension(_0x1f5270);}function a158_0xa7cf(){const _0x4f65a5=['13644tmlqwa','mybatisXml','36RRfJWz','183rFcUam','15323mZFmGA','replace','815JLnIWy','1069936xApEfx','test','unknown-sql','trimStart','582UlpPMA','29098sizssK','sql','db-','.sql','418376QWxIXR','27350184zCOZzV','110KROyOZ','159470MHwcWy'];a158_0xa7cf=function(){return _0x4f65a5;};return a158_0xa7cf();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xd34cd6,_0x327e85){const _0x27114b=a159_0x2020,_0x416b08=_0xd34cd6();while(!![]){try{const _0x4ba197=-parseInt(_0x27114b(0x7f))/0x1*(-parseInt(_0x27114b(0x90))/0x2)+parseInt(_0x27114b(0x8d))/0x3*(-parseInt(_0x27114b(0x73))/0x4)+parseInt(_0x27114b(0x85))/0x5*(parseInt(_0x27114b(0x80))/0x6)+-parseInt(_0x27114b(0x79))/0x7*(-parseInt(_0x27114b(0x86))/0x8)+-parseInt(_0x27114b(0x6e))/0x9+-parseInt(_0x27114b(0x8b))/0xa+-parseInt(_0x27114b(0x8f))/0xb*(-parseInt(_0x27114b(0x78))/0xc);if(_0x4ba197===_0x327e85)break;else _0x416b08['push'](_0x416b08['shift']());}catch(_0x19c5cf){_0x416b08['push'](_0x416b08['shift']());}}}(a159_0x277c,0x4305c));export function detectSqlType(_0x418722){const _0x353ae5=a159_0x2020;if(!_0x418722?.[_0x353ae5(0x93)]())return{'type':_0x353ae5(0x84),'isSelectOnly':![],'isDangerous':![],'reason':_0x353ae5(0x7c)};const _0x41d07e=_0x418722[_0x353ae5(0x8a)](/#\{[^}]*\}/g,'?')[_0x353ae5(0x8a)](/\$\{[^}]*\}/g,'?')[_0x353ae5(0x8a)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x353ae5(0x8a)](/\/\*[\s\S]*?\*\//g,'')['trim'](),_0x667af6=_0x41d07e[_0x353ae5(0x81)]('\x0a');let _0x3136f1='';for(const _0x41d2d0 of _0x667af6){const _0x5458f6=_0x41d2d0['trim']();if(!_0x5458f6||_0x5458f6[_0x353ae5(0x8e)]('--')||_0x5458f6['startsWith']('/*'))continue;_0x3136f1=_0x5458f6;break;}const _0x2dccc5=_0x3136f1['toUpperCase']();if(_0x2dccc5[_0x353ae5(0x8e)]('SELECT')||_0x2dccc5[_0x353ae5(0x8e)]('WITH')){const _0x4e160e=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i['test'](_0x41d07e);return{'type':_0x353ae5(0x91),'isSelectOnly':!_0x4e160e,'isDangerous':_0x4e160e,'reason':_0x4e160e?_0x353ae5(0x74):undefined};}if(_0x2dccc5[_0x353ae5(0x8e)](_0x353ae5(0x76)))return{'type':_0x353ae5(0x76),'isSelectOnly':![],'isDangerous':![]};if(_0x2dccc5[_0x353ae5(0x8e)]('UPDATE'))return{'type':_0x353ae5(0x88),'isSelectOnly':![],'isDangerous':![]};if(_0x2dccc5['startsWith']('DELETE'))return{'type':_0x353ae5(0x71),'isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x353ae5(0x75)](_0x2dccc5))return{'type':'DDL','isSelectOnly':![],'isDangerous':!![],'reason':_0x353ae5(0x6f)};return{'type':_0x353ae5(0x84),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x42d8dc){const _0xe5fe27=a159_0x2020,_0xbdee89=_0x42d8dc['replace'](/#\{[^}]*\}/g,'?')[_0xe5fe27(0x8a)](/\$\{[^}]*\}/g,'?')[_0xe5fe27(0x8a)](/'[^']*'/g,'\x27\x27')['replace'](/--.*$/gm,'')['replace'](/\/\*[\s\S]*?\*\//g,''),_0x533ca9=[],_0x50f64d=_0xbdee89[_0xe5fe27(0x83)](/FROM\s+([^\s,)(]+)/i);if(_0x50f64d?.[0x1])_0x533ca9[_0xe5fe27(0x8c)](_0x50f64d[0x1][_0xe5fe27(0x8a)](/[`"]/g,''));for(const _0x56f34e of _0xbdee89['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x2c522b=_0x56f34e[0x1]?.[_0xe5fe27(0x8a)](/[`"]/g,'');if(_0x2c522b&&!_0x533ca9[_0xe5fe27(0x7e)](_0x2c522b))_0x533ca9[_0xe5fe27(0x8c)](_0x2c522b);}const _0x3913ee=_0xbdee89[_0xe5fe27(0x83)](/INTO\s+([^\s(]+)/i);if(_0x3913ee?.[0x1]){const _0x577810=_0x3913ee[0x1]['replace'](/[`"]/g,'');if(!_0x533ca9[_0xe5fe27(0x7e)](_0x577810))_0x533ca9[_0xe5fe27(0x8c)](_0x577810);}const _0x1725bc=_0xbdee89[_0xe5fe27(0x83)](/UPDATE\s+([^\s,)(]+)/i);if(_0x1725bc?.[0x1]){const _0x3dd94a=_0x1725bc[0x1]['replace'](/[`"]/g,'');if(!_0x533ca9[_0xe5fe27(0x7e)](_0x3dd94a))_0x533ca9[_0xe5fe27(0x8c)](_0x3dd94a);}return _0x533ca9;}function a159_0x2020(_0x4b02e3,_0x429d11){_0x4b02e3=_0x4b02e3-0x6e;const _0x277c77=a159_0x277c();let _0x2020f5=_0x277c77[_0x4b02e3];return _0x2020f5;}function extractParameters(_0x51671f){const _0x4fac71=a159_0x2020,_0x37b7d4=new Set();for(const _0x53baab of _0x51671f[_0x4fac71(0x77)](/#\{(\w+)\}/g))if(_0x53baab[0x1])_0x37b7d4[_0x4fac71(0x7a)](_0x53baab[0x1]);for(const _0x3f1b42 of _0x51671f[_0x4fac71(0x77)](/\$\{(\w+)\}/g))if(_0x3f1b42[0x1])_0x37b7d4[_0x4fac71(0x7a)](_0x3f1b42[0x1]);return Array[_0x4fac71(0x89)](_0x37b7d4);}export function validateSql(_0x5cb4f5){const _0x473313=a159_0x2020,_0x80688=detectSqlType(_0x5cb4f5),_0x9b6c04=extractTables(_0x5cb4f5),_0x234c1a=extractParameters(_0x5cb4f5);if(_0x80688[_0x473313(0x7b)])return{'valid':![],'sqlType':_0x80688,'tables':_0x9b6c04,'parameters':_0x234c1a,'message':_0x80688['reason']||_0x80688[_0x473313(0x7d)]+'\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'};if(_0x80688[_0x473313(0x7d)]==='UNKNOWN')return{'valid':![],'sqlType':_0x80688,'tables':_0x9b6c04,'parameters':_0x234c1a,'message':_0x473313(0x72)};return{'valid':!![],'sqlType':_0x80688,'tables':_0x9b6c04,'parameters':_0x234c1a,'message':_0x80688[_0x473313(0x7d)]+_0x473313(0x82)+(_0x9b6c04[_0x473313(0x70)]?_0x9b6c04[_0x473313(0x92)](',\x20'):'unknown\x20table(s)')+(_0x234c1a[_0x473313(0x70)]?_0x473313(0x87)+_0x234c1a[_0x473313(0x92)](',\x20'):'')};}function a159_0x277c(){const _0x23be94=['8KDQdxs','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','test','INSERT','matchAll','235044DmsFuP','707oteyAN','add','isDangerous','SQL\x20content\x20is\x20empty','type','includes','43SriENd','336yWyFNA','split','\x20query\x20targeting\x20','match','UNKNOWN','34160MHUaMH','34328JjszGl','\x20with\x20parameters:\x20','UPDATE','from','replace','3819520ILWeuT','push','346110rnybSr','startsWith','88jMDJsq','1408qYAfyH','SELECT','join','trim','1041615KolAlq','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','length','DELETE','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'];a159_0x277c=function(){return _0x23be94;};return a159_0x277c();}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a160_0x5baa85=a160_0x34ec;function a160_0x34ec(_0x3ba42d,_0x56208e){_0x3ba42d=_0x3ba42d-0x1e4;const _0x590b42=a160_0x590b();let _0x34ec95=_0x590b42[_0x3ba42d];return _0x34ec95;}(function(_0x5c822a,_0x9f1d6e){const _0x4463e2=a160_0x34ec,_0x131ec8=_0x5c822a();while(!![]){try{const _0x22f3e7=-parseInt(_0x4463e2(0x1e9))/0x1*(-parseInt(_0x4463e2(0x1e4))/0x2)+parseInt(_0x4463e2(0x1ee))/0x3*(-parseInt(_0x4463e2(0x1e6))/0x4)+-parseInt(_0x4463e2(0x1ef))/0x5+parseInt(_0x4463e2(0x1e5))/0x6+parseInt(_0x4463e2(0x1f0))/0x7+parseInt(_0x4463e2(0x1f1))/0x8+-parseInt(_0x4463e2(0x1eb))/0x9;if(_0x22f3e7===_0x9f1d6e)break;else _0x131ec8['push'](_0x131ec8['shift']());}catch(_0x5dfd46){_0x131ec8['push'](_0x131ec8['shift']());}}}(a160_0x590b,0xd050f));function a160_0x590b(){const _0x4a5594=['16RyezSL','4807398EWjbhs','1400248iyrgxS','join','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','102139aiSnJh','Set\x20appcode\x20via\x20`','946008MfyYab','\x20auth`\x20to\x20login\x20first.','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','9dmRYEs','6376800clkfWJ','5666227ZZmpfN','6848920zYsDAt','Tip:\x20`','\x0a\x20\x20\x20\x20\x20\x20\x20'];a160_0x590b=function(){return _0x4a5594;};return a160_0x590b();}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Run\x20`'+CLI_BIN_NAME+a160_0x5baa85(0x1ec),'configMissingHint':[a160_0x5baa85(0x1ea)+CLI_BIN_NAME+a160_0x5baa85(0x1ed),a160_0x5baa85(0x1f2)+CLI_BIN_NAME+a160_0x5baa85(0x1e8)][a160_0x5baa85(0x1e7)](a160_0x5baa85(0x1f3)),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x939189,_0x2da54a){var _0x4b1acb=a161_0x11ca,_0x5e5947=_0x939189();while(!![]){try{var _0x459799=parseInt(_0x4b1acb(0x1a8))/0x1+parseInt(_0x4b1acb(0x1a9))/0x2+-parseInt(_0x4b1acb(0x1ab))/0x3*(-parseInt(_0x4b1acb(0x1af))/0x4)+-parseInt(_0x4b1acb(0x1a7))/0x5*(-parseInt(_0x4b1acb(0x1aa))/0x6)+parseInt(_0x4b1acb(0x1ae))/0x7+parseInt(_0x4b1acb(0x1ac))/0x8*(parseInt(_0x4b1acb(0x1b0))/0x9)+-parseInt(_0x4b1acb(0x1ad))/0xa;if(_0x459799===_0x2da54a)break;else _0x5e5947['push'](_0x5e5947['shift']());}catch(_0x448e13){_0x5e5947['push'](_0x5e5947['shift']());}}}(a161_0x4af1,0x5cb8a));function a161_0x4af1(){var _0x2d0f7c=['365zVbjfE','137429ALxVgo','1016314TNJZNS','59454dVVaAn','77829pFAbpK','1801904RAqAqK','20103570cOzeSu','4663729pmIgLD','20YjVhDT','9VhQRym'];a161_0x4af1=function(){return _0x2d0f7c;};return a161_0x4af1();}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a161_0x11ca(_0x2ede95,_0x3fb262){_0x2ede95=_0x2ede95-0x1a7;var _0x4af130=a161_0x4af1();var _0x11caa2=_0x4af130[_0x2ede95];return _0x11caa2;}import{buildAllFlags as a161_0x5e963}from'@lovrabet/cli-framework';export function buildAllFlags(_0x3a02ca){return a161_0x5e963(_0x3a02ca,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a162_0x5be055=a162_0x5403;(function(_0x533737,_0x16498f){const _0xcc0fca=a162_0x5403,_0x1d22fd=_0x533737();while(!![]){try{const _0x14c55a=parseInt(_0xcc0fca(0x196))/0x1*(-parseInt(_0xcc0fca(0x19d))/0x2)+-parseInt(_0xcc0fca(0x19f))/0x3*(-parseInt(_0xcc0fca(0x19e))/0x4)+-parseInt(_0xcc0fca(0x199))/0x5+-parseInt(_0xcc0fca(0x1a0))/0x6*(-parseInt(_0xcc0fca(0x198))/0x7)+-parseInt(_0xcc0fca(0x1a2))/0x8*(parseInt(_0xcc0fca(0x1a1))/0x9)+parseInt(_0xcc0fca(0x19a))/0xa+-parseInt(_0xcc0fca(0x197))/0xb*(parseInt(_0xcc0fca(0x19b))/0xc);if(_0x14c55a===_0x16498f)break;else _0x1d22fd['push'](_0x1d22fd['shift']());}catch(_0x93b9e1){_0x1d22fd['push'](_0x1d22fd['shift']());}}}(a162_0x507c,0x9b90a));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];function a162_0x5403(_0xbcd885,_0x15fa90){_0xbcd885=_0xbcd885-0x196;const _0x507cf3=a162_0x507c();let _0x5403df=_0x507cf3[_0xbcd885];return _0x5403df;}function a162_0x507c(){const _0x231641=['3492295URwUvO','9299290kYjLRt','12ATzXUI','validateFlags','50deyVoR','88XQbTBu','160764GKHhAi','66anjZWU','909jSlqGv','54176WCkuES','19867KWRkQh','496397LvHheF','287994ewmMSL'];a162_0x507c=function(){return _0x231641;};return a162_0x507c();}export const validateFlags=helpers[a162_0x5be055(0x19c)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a163_0x4e9548=a163_0xc3e6;(function(_0x35dda0,_0x378bd2){const _0x239191=a163_0xc3e6,_0x1729ab=_0x35dda0();while(!![]){try{const _0xdf0df6=-parseInt(_0x239191(0x1a8))/0x1+parseInt(_0x239191(0x1b0))/0x2*(-parseInt(_0x239191(0x1b5))/0x3)+parseInt(_0x239191(0x1ac))/0x4+-parseInt(_0x239191(0x1b2))/0x5*(parseInt(_0x239191(0x1b3))/0x6)+-parseInt(_0x239191(0x1b4))/0x7+-parseInt(_0x239191(0x1af))/0x8+parseInt(_0x239191(0x1b1))/0x9;if(_0xdf0df6===_0x378bd2)break;else _0x1729ab['push'](_0x1729ab['shift']());}catch(_0x3b739d){_0x1729ab['push'](_0x1729ab['shift']());}}}(a163_0x2b52,0x77e5d));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';function a163_0x2b52(){const _0x44d428=['54548arEQER','generateFullHelp','generateCommandHelp','\x20[args]\x20[flags]','625696YTlxGP','get','Requires\x20appcode\x20(set\x20via\x20`','6287216oWCdXD','13646sjIAZT','19703574iQPtmH','1684745zwbLjT','6MmnRAw','3833011raSydj','57HmeTaT'];a163_0x2b52=function(){return _0x44d428;};return a163_0x2b52();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x5f1ed7=>serviceGroups[a163_0x4e9548(0x1ad)](_0x5f1ed7),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a163_0x4e9548(0x1ae)+CLI_BIN_NAME+'\x20project\x20init`\x20or\x20--appcode).','serviceUsageSuffix':a163_0x4e9548(0x1ab),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x4f6e51){const _0x59fec3=a163_0x4e9548;return generators[_0x59fec3(0x1aa)](_0x4f6e51);}export const generateServiceHelp=generators['generateServiceHelp'];function a163_0xc3e6(_0x5d9c1f,_0x555840){_0x5d9c1f=_0x5d9c1f-0x1a8;const _0x2b52cb=a163_0x2b52();let _0xc3e65c=_0x2b52cb[_0x5d9c1f];return _0xc3e65c;}export const generateFullHelp=generators[a163_0x4e9548(0x1a9)];
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5a3b04,_0x476927){var _0x5326cd=a164_0x3fc7,_0x51868d=_0x5a3b04();while(!![]){try{var _0x1663cf=parseInt(_0x5326cd(0x113))/0x1+-parseInt(_0x5326cd(0x112))/0x2*(parseInt(_0x5326cd(0x116))/0x3)+parseInt(_0x5326cd(0x110))/0x4+-parseInt(_0x5326cd(0x115))/0x5*(parseInt(_0x5326cd(0x114))/0x6)+-parseInt(_0x5326cd(0x10f))/0x7+parseInt(_0x5326cd(0x111))/0x8*(-parseInt(_0x5326cd(0x117))/0x9)+parseInt(_0x5326cd(0x118))/0xa;if(_0x1663cf===_0x476927)break;else _0x51868d['push'](_0x51868d['shift']());}catch(_0x44abc9){_0x51868d['push'](_0x51868d['shift']());}}}(a164_0x59a5,0x9d11b));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a164_0x3fc7(_0x5c1fa8,_0x20c10c){_0x5c1fa8=_0x5c1fa8-0x10f;var _0x59a5ee=a164_0x59a5();var _0x3fc7ff=_0x59a5ee[_0x5c1fa8];return _0x3fc7ff;}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';function a164_0x59a5(){var _0x4c43e1=['18FuPYlS','19415680FqYcAu','6147344gIYWQn','2395296pTTwzM','512744DZJzVT','18feQAgW','1150538cZDaKk','5472GLEcKs','5035uqtpSo','374271iHEjhC'];a164_0x59a5=function(){return _0x4c43e1;};return a164_0x59a5();}
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x52878c,_0x484785){const _0xaaa456=a165_0x4eb7,_0x39335b=_0x52878c();while(!![]){try{const _0x1e41b1=-parseInt(_0xaaa456(0xb7))/0x1+parseInt(_0xaaa456(0xb4))/0x2*(parseInt(_0xaaa456(0xaf))/0x3)+-parseInt(_0xaaa456(0xb5))/0x4+-parseInt(_0xaaa456(0xb2))/0x5*(-parseInt(_0xaaa456(0xae))/0x6)+-parseInt(_0xaaa456(0xad))/0x7+parseInt(_0xaaa456(0xb1))/0x8*(-parseInt(_0xaaa456(0xb3))/0x9)+parseInt(_0xaaa456(0xb6))/0xa*(parseInt(_0xaaa456(0xb0))/0xb);if(_0x1e41b1===_0x484785)break;else _0x39335b['push'](_0x39335b['shift']());}catch(_0x554610){_0x39335b['push'](_0x39335b['shift']());}}}(a165_0x4191,0x4397d));function a165_0x4eb7(_0x43340a,_0x1083b5){_0x43340a=_0x43340a-0xad;const _0x41915a=a165_0x4191();let _0x4eb706=_0x41915a[_0x43340a];return _0x4eb706;}function a165_0x4191(){const _0x351e9a=['39060xaLrIh','332202ZciprJ','2140222uoAUHR','38154LiUdwi','408htwenk','2761nXNNnn','400rqUzmp','415WFlrgO','76851uKQRXr','2566lRqKAt','1363728jraNHI'];a165_0x4191=function(){return _0x351e9a;};return a165_0x4191();}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a166_0x2045(_0x6c5ede,_0xdaabdf){_0x6c5ede=_0x6c5ede-0x1ba;var _0x2fef88=a166_0x2fef();var _0x2045c8=_0x2fef88[_0x6c5ede];return _0x2045c8;}function a166_0x2fef(){var _0x23e7f6=['986824WVGCxc','2510wgHxHY','25460QKKLiU','12111HMGCxa','9bXqaUD','2320227yWhyWC','300typcXB','987464xMlQGL','14HSTYhR','134312CtBFNP','1561206gaVZwN'];a166_0x2fef=function(){return _0x23e7f6;};return a166_0x2fef();}(function(_0x291a37,_0x1caad9){var _0x495b60=a166_0x2045,_0x2b8ff6=_0x291a37();while(!![]){try{var _0x4cf6e9=parseInt(_0x495b60(0x1c4))/0x1+parseInt(_0x495b60(0x1bb))/0x2*(parseInt(_0x495b60(0x1bf))/0x3)+parseInt(_0x495b60(0x1c1))/0x4*(-parseInt(_0x495b60(0x1bd))/0x5)+parseInt(_0x495b60(0x1ba))/0x6*(-parseInt(_0x495b60(0x1c3))/0x7)+parseInt(_0x495b60(0x1c2))/0x8+parseInt(_0x495b60(0x1c0))/0x9+parseInt(_0x495b60(0x1bc))/0xa*(-parseInt(_0x495b60(0x1be))/0xb);if(_0x4cf6e9===_0x1caad9)break;else _0x2b8ff6['push'](_0x2b8ff6['shift']());}catch(_0x480d4f){_0x2b8ff6['push'](_0x2b8ff6['shift']());}}}(a166_0x2fef,0xc77eb));export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x79f31f,_0x1bea1e){const _0x4dc095=a167_0x481f,_0xad238c=_0x79f31f();while(!![]){try{const _0x2ba198=parseInt(_0x4dc095(0x9a))/0x1*(-parseInt(_0x4dc095(0xa5))/0x2)+-parseInt(_0x4dc095(0xa4))/0x3+parseInt(_0x4dc095(0xa9))/0x4+parseInt(_0x4dc095(0xa6))/0x5+parseInt(_0x4dc095(0x98))/0x6+parseInt(_0x4dc095(0xab))/0x7*(-parseInt(_0x4dc095(0xa1))/0x8)+parseInt(_0x4dc095(0xa2))/0x9;if(_0x2ba198===_0x1bea1e)break;else _0xad238c['push'](_0xad238c['shift']());}catch(_0x40a5a8){_0xad238c['push'](_0xad238c['shift']());}}}(a167_0x392d,0xb2f41));import{CliErrors}from'../errors.js';function a167_0x481f(_0x55ef05,_0x50481d){_0x55ef05=_0x55ef05-0x95;const _0x392d1c=a167_0x392d();let _0x481f16=_0x392d1c[_0x55ef05];return _0x481f16;}function a167_0x392d(){const _0x165374=['type','map','5368578LCsHkM','Unknown\x20alias\x20\x22','10BEPBru','some','name','validation','Available\x20aliases:\x20','No\x20api.ts\x20found\x20in\x20','string','8PUnlOi','4974777BxoyMn','\x20api\x20pull`\x20first.','900378WyynXi','74506Krnyyu','2007575TEtIrY','.\x20Run\x20`','alias','1990164wKRwbu','code','6586461AQeDQI','flags','join','length'];a167_0x392d=function(){return _0x165374;};return a167_0x392d();}import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x549023,_0x5349bf,_0x343896,_0x20b812){const _0x528991=a167_0x481f,_0x4bf515=_0x549023[_0x528991(0xac)]['some'](_0x3e3a0c=>_0x3e3a0c[_0x528991(0x9c)]==='code'&&_0x3e3a0c['type']===_0x528991(0xa0)),_0x517c64=_0x549023[_0x528991(0xac)][_0x528991(0x9b)](_0x1a9c71=>_0x1a9c71['name']===_0x528991(0xa8)&&_0x1a9c71[_0x528991(0x96)]==='string');if(!_0x4bf515||!_0x517c64)return;const _0x7ed6f1=_0x5349bf[_0x528991(0xaa)]?String(_0x5349bf[_0x528991(0xaa)]):'',_0x39caab=_0x5349bf[_0x528991(0xa8)]?String(_0x5349bf[_0x528991(0xa8)]):'';if(!_0x7ed6f1&&!_0x39caab)throw CliErrors[_0x528991(0x9d)]('`'+_0x20b812+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x39caab&&!_0x7ed6f1){const _0xbadbfc=resolveAlias(_0x343896,_0x39caab);if(!_0xbadbfc){const _0x5b8f4f=listAliases(_0x343896)[_0x528991(0x97)](_0xdcf12f=>_0xdcf12f[_0x528991(0xa8)]),_0x4c409e=_0x5b8f4f[_0x528991(0x95)]?_0x528991(0x9e)+_0x5b8f4f[_0x528991(0xad)](',\x20'):_0x528991(0x9f)+_0x343896+_0x528991(0xa7)+CLI_BIN_NAME+_0x528991(0xa3);throw CliErrors['validation'](_0x528991(0x99)+_0x39caab+'\x22.\x20'+_0x4c409e);}_0x5349bf[_0x528991(0xaa)]=_0xbadbfc;}}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a168_0x3db8ac=a168_0x46b4;function a168_0x2dd3(){const _0x1fb0db=['resolveAppCode','High-risk\x20operation\x20`','10qqCNrv','requiresAuth','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','configMissing','⚠\x20\x20High-risk\x20operation:\x20','defaultApp','resolveApiDomain','Set\x20appcode\x20via\x20`','cancelled','12123xzLbwz','9PCMSVp','5479929hgscFD','validation','authRequired','apiDir','format','apps','1989316JhdbsS','explicitAppName','appCode','appcode','70adQLne','25204150GTRLOj','../core/api-client.js','562134qkegPt','has','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','service','4935930yZLWQH','cookie','mergedCli','resolveCookie','currentApp','riskLevel','1308776qMRdib','isNonInteractive','requiresAppCode'];a168_0x2dd3=function(){return _0x1fb0db;};return a168_0x2dd3();}(function(_0x7c8759,_0x3750bf){const _0x1ee6ec=a168_0x46b4,_0x1cf824=_0x7c8759();while(!![]){try{const _0x3ecfc6=parseInt(_0x1ee6ec(0x1c9))/0x1*(parseInt(_0x1ee6ec(0x1d5))/0x2)+-parseInt(_0x1ee6ec(0x1dc))/0x3+parseInt(_0x1ee6ec(0x1d1))/0x4+parseInt(_0x1ee6ec(0x1c0))/0x5*(-parseInt(_0x1ee6ec(0x1d8))/0x6)+-parseInt(_0x1ee6ec(0x1cb))/0x7+parseInt(_0x1ee6ec(0x1bb))/0x8*(parseInt(_0x1ee6ec(0x1ca))/0x9)+parseInt(_0x1ee6ec(0x1d6))/0xa;if(_0x3ecfc6===_0x3750bf)break;else _0x1cf824['push'](_0x1cf824['shift']());}catch(_0x532479){_0x1cf824['push'](_0x1cf824['shift']());}}}(a168_0x2dd3,0xf1b9f));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a168_0x143c25}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x5de056,_0x1d7065,_0x34167c=[]){const _0x30fe8b=a168_0x46b4;return{'rawFlags':_0x1d7065,'args':_0x34167c,'resolveAppCode':()=>_0x5de056[_0x30fe8b(0x1d3)]||_0x1d7065[_0x30fe8b(0x1d4)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x5de056[_0x30fe8b(0x1dd)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a168_0x143c25(_0x1d7065),'defaultFormat':_0x5de056[_0x30fe8b(0x1cf)],'defaultPageSize':_0x5de056['pageSize'],'defaultVerbose':_0x5de056['verbose'],'apiDir':_0x5de056[_0x30fe8b(0x1ce)],'riskLevel':_0x5de056[_0x30fe8b(0x1ba)],'selectedAppName':_0x5de056[_0x30fe8b(0x1d2)],'mergedCli':{'defaultApp':_0x5de056[_0x30fe8b(0x1c5)],'currentApp':_0x5de056[_0x30fe8b(0x1b9)],'appCode':_0x5de056[_0x30fe8b(0x1d3)],'apps':_0x5de056[_0x30fe8b(0x1d0)]}};}function a168_0x46b4(_0x317dc8,_0x4ba20e){_0x317dc8=_0x317dc8-0x1b9;const _0x2dd375=a168_0x2dd3();let _0x46b45d=_0x2dd375[_0x317dc8];return _0x46b45d;}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x2e6691=>PIPELINE_FLAG_NAMES[a168_0x3db8ac(0x1d9)](_0x2e6691['name']))['map'](({name:_0x45cd92,type:_0x4feef1,description:_0x3a020f})=>({'name':_0x45cd92,'type':_0x4feef1,'description':_0x3a020f})),'formatOutput':formatOutput,'getCommandLabel'(_0x15caef){const _0x2ade24=a168_0x3db8ac;return CLI_BIN_NAME+'\x20'+_0x15caef[_0x2ade24(0x1db)]+'\x20'+_0x15caef['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x518da9){const _0x2e41c3=a168_0x3db8ac;return CliErrors[_0x2e41c3(0x1cc)](_0x518da9);}},async 'prepare'(_0x2d4ffb,_0x4b5ab7,_0x112523,_0x43abf8){const _0x538f02=a168_0x3db8ac,_0x153a69=_0x4b5ab7[_0x538f02(0x1ce)]||DEFAULT_API_DIR;resolveAliasToCode(_0x2d4ffb,_0x112523,_0x153a69,_0x43abf8);let _0x4f568b='';if(_0x2d4ffb[_0x538f02(0x1c1)]!==![]){_0x4f568b=_0x4b5ab7[_0x538f02(0x1df)]();if(!_0x4f568b)throw CliErrors[_0x538f02(0x1cd)]();const {setActiveCookie:_0x625329}=await import(_0x538f02(0x1d7));_0x625329(_0x4f568b);}const _0x39a64e=_0x4b5ab7[_0x538f02(0x1be)]()??'';if(_0x2d4ffb[_0x538f02(0x1bd)]!==![]){if(!_0x39a64e)throw CliErrors[_0x538f02(0x1c3)](_0x538f02(0x1c7)+CLI_BIN_NAME+_0x538f02(0x1da));}return{'defaults':{'booleans':{'verbose':_0x4b5ab7['defaultVerbose']},'numbers':{'pagesize':_0x4b5ab7['defaultPageSize']}},'extras':{'appCode':_0x39a64e,'cookie':_0x4f568b,'apiDomain':_0x4b5ab7[_0x538f02(0x1c6)](),'apiDir':_0x153a69,'selectedAppName':_0x4b5ab7['selectedAppName'],'mergedCli':_0x4b5ab7[_0x538f02(0x1de)]}};},async 'confirmHighRisk'({env:_0x167ac0,commandLabel:_0x218ec8}){const _0x44cf7d=a168_0x3db8ac;if(_0x167ac0[_0x44cf7d(0x1bc)])throw CliErrors[_0x44cf7d(0x1cc)](_0x44cf7d(0x1bf)+_0x218ec8+_0x44cf7d(0x1c2));await requireConfirmationPrompt({'lines':[_0x44cf7d(0x1c4)+_0x218ec8,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x25bca5=>CliErrors[_0x44cf7d(0x1c8)](_0x25bca5)});},async 'finalize'(){const _0x42820b=a168_0x3db8ac,{clearActiveCookie:_0x165410}=await import(_0x42820b(0x1d7));_0x165410();}};export async function runCommand(_0x3e754f,_0x58a23d){await runCommandWithAdapter(_0x3e754f,_0x58a23d,runnerAdapter);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4d835f,_0x4509e0){const _0x49d8d2=a169_0x528e,_0x132664=_0x4d835f();while(!![]){try{const _0x1735bd=-parseInt(_0x49d8d2(0x196))/0x1+parseInt(_0x49d8d2(0x19a))/0x2*(parseInt(_0x49d8d2(0x198))/0x3)+-parseInt(_0x49d8d2(0x19d))/0x4*(-parseInt(_0x49d8d2(0x197))/0x5)+-parseInt(_0x49d8d2(0x19f))/0x6+parseInt(_0x49d8d2(0x19c))/0x7+-parseInt(_0x49d8d2(0x19b))/0x8*(-parseInt(_0x49d8d2(0x19e))/0x9)+parseInt(_0x49d8d2(0x1a0))/0xa;if(_0x1735bd===_0x4509e0)break;else _0x132664['push'](_0x132664['shift']());}catch(_0x464353){_0x132664['push'](_0x132664['shift']());}}}(a169_0x4f7a,0x26483));function a169_0x4f7a(){const _0x1064fb=['299121AJTrge','../commands/registry.js','2sCgysS','128YCwNmO','96334XXKNFe','4GsLYgj','170406OwTimX','1820094ClAmrG','904220lskIes','281686EGzzfE','1175015RaQspK'];a169_0x4f7a=function(){return _0x1064fb;};return a169_0x4f7a();}function a169_0x528e(_0x25bbb1,_0xabb3ce){_0x25bbb1=_0x25bbb1-0x196;const _0x4f7aac=a169_0x4f7a();let _0x528e73=_0x4f7aac[_0x25bbb1];return _0x528e73;}import{buildSchemaPayload as a169_0x3821ea}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x28703f=a169_0x528e,{serviceRegistry:_0x169235,findDefinition:_0x51ab19}=await import(_0x28703f(0x199));return a169_0x3821ea({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x169235,'buildAllFlags':buildAllFlags,'findDefinition':_0x51ab19});}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a170_0x5e40(){var _0x179e9d=['50CZwDiK','33127884MlgrjY','2334568kEYoLY','11AKePTH','661922vDsgjz','16BxrBXA','373254faatSg','15XDupeB','60OkQBAl','83854laVsyG','2073946aijcnJ','215253ejsbqr'];a170_0x5e40=function(){return _0x179e9d;};return a170_0x5e40();}(function(_0x5051c9,_0x64dc48){var _0x3b091f=a170_0x56df,_0x509633=_0x5051c9();while(!![]){try{var _0x44973a=-parseInt(_0x3b091f(0x1db))/0x1+parseInt(_0x3b091f(0x1e0))/0x2*(parseInt(_0x3b091f(0x1de))/0x3)+-parseInt(_0x3b091f(0x1e5))/0x4+-parseInt(_0x3b091f(0x1e3))/0x5*(parseInt(_0x3b091f(0x1dd))/0x6)+-parseInt(_0x3b091f(0x1e1))/0x7*(parseInt(_0x3b091f(0x1dc))/0x8)+-parseInt(_0x3b091f(0x1e2))/0x9*(-parseInt(_0x3b091f(0x1df))/0xa)+parseInt(_0x3b091f(0x1da))/0xb*(parseInt(_0x3b091f(0x1e4))/0xc);if(_0x44973a===_0x64dc48)break;else _0x509633['push'](_0x509633['shift']());}catch(_0x3e5b48){_0x509633['push'](_0x509633['shift']());}}}(a170_0x5e40,0x9f910));function a170_0x56df(_0x36ff88,_0x1cedf8){_0x36ff88=_0x36ff88-0x1da;var _0x5e405f=a170_0x5e40();var _0x56dff6=_0x5e405f[_0x36ff88];return _0x56dff6;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a171_0xbd1ef5=a171_0xbb9b;(function(_0x17133d,_0xe6b6ec){const _0x41972c=a171_0xbb9b,_0x5d5600=_0x17133d();while(!![]){try{const _0x37ea9f=-parseInt(_0x41972c(0x1bb))/0x1*(-parseInt(_0x41972c(0x1b8))/0x2)+-parseInt(_0x41972c(0x1b6))/0x3*(parseInt(_0x41972c(0x1b5))/0x4)+parseInt(_0x41972c(0x1bd))/0x5*(-parseInt(_0x41972c(0x1b9))/0x6)+parseInt(_0x41972c(0x1c0))/0x7*(-parseInt(_0x41972c(0x1bc))/0x8)+-parseInt(_0x41972c(0x1b7))/0x9*(parseInt(_0x41972c(0x1bf))/0xa)+parseInt(_0x41972c(0x1b4))/0xb+parseInt(_0x41972c(0x1b3))/0xc;if(_0x37ea9f===_0xe6b6ec)break;else _0x5d5600['push'](_0x5d5600['shift']());}catch(_0x212e65){_0x5d5600['push'](_0x5d5600['shift']());}}}(a171_0x2e23,0x1f7c3));function a171_0x2e23(){const _0x2040a7=['v2.1.12-beta.2','7853532NwyRje','18678yXjtTF','4yZSmRr','428478ZoXpRz','935658ytrBHi','182562hvytKw','516486svcuPv','2026-05-19T11:14:25.615Z','1aqQtvW','50968BTutFo','10eBSOkI','3861060','20bwKVAe','105EuYbGJ'];a171_0x2e23=function(){return _0x2040a7;};return a171_0x2e23();}export const VERSION='2.1.12-beta.2';function a171_0xbb9b(_0x2e1da9,_0x586786){_0x2e1da9=_0x2e1da9-0x1b3;const _0x2e2385=a171_0x2e23();let _0xbb9b00=_0x2e2385[_0x2e1da9];return _0xbb9b00;}export const GIT_TAG=a171_0xbd1ef5(0x1c1);export const GIT_COMMIT=a171_0xbd1ef5(0x1be);export const BUILD_TIME=a171_0xbd1ef5(0x1ba);
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5a7fdc,_0x9c87d5){var _0x3354c3=a172_0x3b15,_0x245614=_0x5a7fdc();while(!![]){try{var _0xe47e66=-parseInt(_0x3354c3(0x1ab))/0x1*(parseInt(_0x3354c3(0x1a4))/0x2)+parseInt(_0x3354c3(0x1b4))/0x3*(-parseInt(_0x3354c3(0x1b3))/0x4)+parseInt(_0x3354c3(0x1b1))/0x5*(parseInt(_0x3354c3(0x1a9))/0x6)+-parseInt(_0x3354c3(0x1a8))/0x7+parseInt(_0x3354c3(0x1ad))/0x8+-parseInt(_0x3354c3(0x1a5))/0x9*(-parseInt(_0x3354c3(0x1a7))/0xa)+parseInt(_0x3354c3(0x1ae))/0xb*(-parseInt(_0x3354c3(0x1af))/0xc);if(_0xe47e66===_0x9c87d5)break;else _0x245614['push'](_0x245614['shift']());}catch(_0x583f26){_0x245614['push'](_0x245614['shift']());}}}(a172_0x29f0,0x63825));function a172_0x3b15(_0x479e0d,_0x5c84c0){_0x479e0d=_0x479e0d-0x1a4;var _0x29f0f6=a172_0x29f0();var _0x3b15d3=_0x29f0f6[_0x479e0d];return _0x3b15d3;}import a172_0x52aa01 from'chalk';function a172_0x29f0(){var _0x2f807a=['1ntStdc','\x20\x20Use\x20','1914872OmBhUT','5005mzkgvw','1608YFcUMM','\x20--help','5zfRkcu','\x20to\x20view\x20available\x20commands.','8QEoIFj','266331kImQgw','bold','441334LyXPrF','306WUkbto','green','187050dWROaU','4770192ZVjzmV','4037442tIVCip','log'];a172_0x29f0=function(){return _0x2f807a;};return a172_0x29f0();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x3e9c6c=a172_0x3b15;console[_0x3e9c6c(0x1aa)](),console[_0x3e9c6c(0x1aa)](a172_0x52aa01[_0x3e9c6c(0x1a6)]['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console['log'](),console['log'](_0x3e9c6c(0x1ac)+a172_0x52aa01[_0x3e9c6c(0x1a6)][_0x3e9c6c(0x1b5)](CLI_BIN_NAME+_0x3e9c6c(0x1b0))+_0x3e9c6c(0x1b2)),console[_0x3e9c6c(0x1aa)]();}
|
package/lib/skills/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x184244,_0x311754){const _0x4b4159=a173_0x5719,_0x2d444a=_0x184244();while(!![]){try{const _0x5b9bf6=-parseInt(_0x4b4159(0x1f3))/0x1+parseInt(_0x4b4159(0x1e5))/0x2*(parseInt(_0x4b4159(0x1f8))/0x3)+parseInt(_0x4b4159(0x1df))/0x4+parseInt(_0x4b4159(0x1da))/0x5*(parseInt(_0x4b4159(0x1dc))/0x6)+-parseInt(_0x4b4159(0x1eb))/0x7+-parseInt(_0x4b4159(0x1e6))/0x8+parseInt(_0x4b4159(0x1ec))/0x9;if(_0x5b9bf6===_0x311754)break;else _0x2d444a['push'](_0x2d444a['shift']());}catch(_0x4b28db){_0x2d444a['push'](_0x2d444a['shift']());}}}(a173_0xf28b,0xc4c9b));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x578067){const _0x23265a=a173_0x5719,_0x4f87bf=[];for(const [_0xd51172,_0x5f2336]of Object[_0x23265a(0x1ef)](_0x578067)){if(_0x5f2336===!![]){const _0x5e1b79=_0xd51172[_0x23265a(0x1ed)](/([A-Z])/g,_0x23265a(0x1f5))['toLowerCase']();_0x4f87bf[_0x23265a(0x1e9)](_0x5e1b79);}}return _0x4f87bf;}export function parseDynamicFlags(){const _0x2411cf=a173_0x5719,_0x3cca25=[];for(let _0x1f5a53=0x3;_0x1f5a53<process[_0x2411cf(0x1e2)][_0x2411cf(0x1e7)];_0x1f5a53++){const _0xf2043f=process[_0x2411cf(0x1e2)][_0x1f5a53];if(_0xf2043f&&_0xf2043f[_0x2411cf(0x1e1)]('--')){const _0x3c11e4=_0xf2043f[_0x2411cf(0x1f0)](0x2);_0x3c11e4&&!_0x3c11e4['includes']('=')&&_0x3cca25['push'](_0x3c11e4);}}return _0x3cca25;}function a173_0xf28b(){const _0x2e5cd8=['--help','enable-bff-save','17811xDqzGL','\x20skill\x20--help\x0a\x20\x20','error','Error:\x20Unsupported\x20command:\x20','85UQKEwk','cwd','63258fsRTIn','Equivalent\x20command:\x20','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','1076336HxigRl','不支持的命令:\x20','startsWith','argv','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','(empty)','368EnWDWi','8343552YeqlFp','length','has','push','skill','4330151VtMGeQ','11932371WTsVkk','replace','\x0aAvailable\x20commands:','entries','slice','add','exit','398962jVsiuw','log','-$1'];a173_0xf28b=function(){return _0x2e5cd8;};return a173_0xf28b();}export function getAllProvidedFlags(_0x2e18dc){const _0x38a0d3=camelCaseFlagsToKebab(_0x2e18dc),_0x3a5aba=parseDynamicFlags(),_0x18f0b4=new Set([..._0x38a0d3,..._0x3a5aba]);return Array['from'](_0x18f0b4);}function a173_0x5719(_0x348bd0,_0x4262b1){_0x348bd0=_0x348bd0-0x1d9;const _0xf28b29=a173_0xf28b();let _0x57196b=_0xf28b29[_0x348bd0];return _0x57196b;}export function normalizeLegacyBffSaveFlags(_0x38c9c3){const _0x35cdec=a173_0x5719,_0x1f3e99=new Set(_0x38c9c3);return _0x1f3e99[_0x35cdec(0x1e8)]('dangerously-bff-save')&&_0x1f3e99[_0x35cdec(0x1f1)](_0x35cdec(0x1f7)),Array['from'](_0x1f3e99);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0xa5c397,_0x7ab23b,_0x480334){const _0x3fb67b=a173_0x5719;logger['setLogPath'](process[_0x3fb67b(0x1db)]());if(_0x480334?.['help']||_0xa5c397===_0x3fb67b(0x1f6)){showHelp();return;}console[_0x3fb67b(0x1fa)](_0x3fb67b(0x1d9)+(_0xa5c397||_0x3fb67b(0x1e4))),console[_0x3fb67b(0x1f4)](_0x3fb67b(0x1ee)),console[_0x3fb67b(0x1f4)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation'),console[_0x3fb67b(0x1f4)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a'),console[_0x3fb67b(0x1f4)](''),console['log'](_0x3fb67b(0x1dd)+SKILLS_INSTALL_COMMAND_LINE),logger['error'](_0x3fb67b(0x1ea),_0x3fb67b(0x1e0)+_0xa5c397),process[_0x3fb67b(0x1f2)](0x1);}function showHelp(){const _0x32bfc3=a173_0x5719;console[_0x32bfc3(0x1f4)](_0x32bfc3(0x1de)+CLI_BIN_NAME+_0x32bfc3(0x1f9)+CLI_BIN_NAME+_0x32bfc3(0x1e3)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a174_0x432e1a=a174_0x3c4b;(function(_0x5d0971,_0x1c1d63){const _0xd6fa1b=a174_0x3c4b,_0x3f89e0=_0x5d0971();while(!![]){try{const _0x4cd6e9=parseInt(_0xd6fa1b(0x19b))/0x1*(parseInt(_0xd6fa1b(0x195))/0x2)+-parseInt(_0xd6fa1b(0x1ab))/0x3+parseInt(_0xd6fa1b(0x199))/0x4*(-parseInt(_0xd6fa1b(0x19e))/0x5)+parseInt(_0xd6fa1b(0x1a5))/0x6+parseInt(_0xd6fa1b(0x1a4))/0x7*(-parseInt(_0xd6fa1b(0x1a7))/0x8)+parseInt(_0xd6fa1b(0x1a2))/0x9+-parseInt(_0xd6fa1b(0x1a9))/0xa*(-parseInt(_0xd6fa1b(0x1b4))/0xb);if(_0x4cd6e9===_0x1c1d63)break;else _0x3f89e0['push'](_0x3f89e0['shift']());}catch(_0x16ccf2){_0x3f89e0['push'](_0x3f89e0['shift']());}}}(a174_0xe602,0x7f615));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';function a174_0x3c4b(_0x28a13a,_0x44c2cc){_0x28a13a=_0x28a13a-0x195;const _0xe6025e=a174_0xe602();let _0x3c4bb3=_0xe6025e[_0x28a13a];return _0x3c4bb3;}export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a174_0x432e1a(0x1a1);export const NPX_SKILLS_SUBCOMMAND_ADD=a174_0x432e1a(0x1a3);export const NPX_SKILLS_FLAG_SKILL=a174_0x432e1a(0x19a);export const RABETBASE_SKILL_SOURCE=a174_0x432e1a(0x1a8);export const LEGACY_RABETBASE_SKILL_SOURCE=a174_0x432e1a(0x1b5);export const DEFAULT_RABETBASE_SKILL_NAME=a174_0x432e1a(0x198);export function buildNpxSkillsAddArgv(_0x88799){const _0x3fe2af=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x88799&&_0x3fe2af['push'](NPX_SKILLS_FLAG_SKILL,_0x88799),_0x3fe2af;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a174_0x432e1a(0x1a0),...buildNpxSkillsAddArgv()][a174_0x432e1a(0x1b2)]('\x20');function a174_0xe602(){const _0x4a322c=['45BkbUrZ','pipe','npx','skills','3462561UaikmB','add','387632tXRqrv','5258322Jovoae','yes','8GOMQYr','lovrabet/rabetbase','70VHzYPD','exit\x20','908664oxNAFE','toString','stderr','status','remove','inherit','skill','join','log','728332LqBIHr','lovrabet/lovrabet-skill','1782esmGSt','trim','stdout','Lovrabet','456156KtUdPQ','--skill','204CubtDQ','stdio','unknown'];a174_0xe602=function(){return _0x4a322c;};return a174_0xe602();}export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=['npx',NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a174_0x432e1a(0x1b2)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x2a8ed0,_0x43f547){const _0x5e8161=a174_0x432e1a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x44c4d9=_0x43f547?.['stdio']??_0x5e8161(0x1b0),_0x9e5dd7=resolveNpmBin(_0x5e8161(0x1a0)),_0x279605=buildNpxSkillsAddArgv(_0x43f547?.[_0x5e8161(0x1b1)]),_0x59fa57=[_0x5e8161(0x1a0),..._0x279605][_0x5e8161(0x1b2)]('\x20');console['log']('*\x20'+_0x59fa57);const _0x2f117f=spawnSync(_0x9e5dd7,_0x279605,{'cwd':_0x2a8ed0,'stdio':_0x44c4d9,'env':process.env,'shell':![]}),_0x470f9a=_0x2f117f['status'];if(_0x470f9a===0x0)return{'ok':!![],'status':0x0};let _0x2feb9a=_0x5e8161(0x1aa)+(_0x470f9a??_0x5e8161(0x19d));if(_0x44c4d9===_0x5e8161(0x19f)){const _0x454c97=_0x2f117f['stderr']?_0x2f117f['stderr'][_0x5e8161(0x1ac)]()['trim']():'',_0x416c36=_0x2f117f[_0x5e8161(0x197)]?_0x2f117f[_0x5e8161(0x197)]['toString']()[_0x5e8161(0x196)]():'';if(_0x454c97)_0x2feb9a=_0x454c97;else{if(_0x416c36)_0x2feb9a=_0x416c36;}}return{'ok':![],'status':_0x470f9a??null,'error':_0x2feb9a};}export function runNpxSkillsRemove(_0x36dcbc,_0x4be8a5,_0x46889f=LEGACY_RABETBASE_SKILL_SOURCE){const _0x2a1e58=a174_0x432e1a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x57f52f=_0x4be8a5?.[_0x2a1e58(0x19c)]??_0x2a1e58(0x1b0),_0x118a4c=resolveNpmBin(_0x2a1e58(0x1a0)),_0x385d84=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x2a1e58(0x1af),_0x46889f,NPX_SKILLS_FLAG_SKILL,_0x4be8a5?.[_0x2a1e58(0x1b1)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x4be8a5?.[_0x2a1e58(0x1a6)]?['-y']:[]],_0x486b36=[_0x118a4c,..._0x385d84][_0x2a1e58(0x1b2)]('\x20');console[_0x2a1e58(0x1b3)]('*\x20'+_0x486b36);const _0x376d17=spawnSync(_0x118a4c,_0x385d84,{'cwd':_0x36dcbc,'stdio':_0x57f52f,'env':process.env,'shell':![]}),_0x3efa4f=_0x376d17['status'];if(_0x3efa4f===0x0)return{'ok':!![],'status':0x0};let _0xdfb2e1=_0x2a1e58(0x1aa)+(_0x3efa4f??_0x2a1e58(0x19d));if(_0x57f52f===_0x2a1e58(0x19f)){const _0x26f01d=_0x376d17['stderr']?_0x376d17[_0x2a1e58(0x1ad)][_0x2a1e58(0x1ac)]()['trim']():'',_0x29408e=_0x376d17[_0x2a1e58(0x197)]?_0x376d17['stdout']['toString']()[_0x2a1e58(0x196)]():'';if(_0x26f01d)_0xdfb2e1=_0x26f01d;else{if(_0x29408e)_0xdfb2e1=_0x29408e;}}return{'ok':![],'status':_0x3efa4f??null,'error':_0xdfb2e1};}export function runNpxSkillsAddGlobal(_0x3a6d0d,_0xf269b4,_0xc934d3){const _0x181c60=a174_0x432e1a;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x159dc8=_0xc934d3?.['stdio']??_0x181c60(0x1b0),_0x2238d5=resolveNpmBin(_0x181c60(0x1a0)),_0x26ae94=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0xf269b4,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x9e45fa=[_0x181c60(0x1a0),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0xf269b4,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x181c60(0x1b2)]('\x20');console[_0x181c60(0x1b3)]('*\x20'+_0x9e45fa);const _0x46c981=spawnSync(_0x2238d5,_0x26ae94,{'cwd':_0x3a6d0d,'stdio':_0x159dc8,'env':process.env,'shell':![]}),_0x179467=_0x46c981[_0x181c60(0x1ae)];if(_0x179467===0x0)return{'ok':!![],'status':0x0};let _0x17a7e0=_0x181c60(0x1aa)+(_0x179467??_0x181c60(0x19d));if(_0x159dc8===_0x181c60(0x19f)){const _0x621f=_0x46c981['stderr']?_0x46c981[_0x181c60(0x1ad)][_0x181c60(0x1ac)]()[_0x181c60(0x196)]():'',_0x1bbd98=_0x46c981[_0x181c60(0x197)]?_0x46c981[_0x181c60(0x197)][_0x181c60(0x1ac)]()['trim']():'';if(_0x621f)_0x17a7e0=_0x621f;else{if(_0x1bbd98)_0x17a7e0=_0x1bbd98;}}return{'ok':![],'status':_0x179467??null,'error':_0x17a7e0};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a175_0x2650(){const _0x40c7b2=['1wnmkuw','flags','error','10517175EQuroo','4348464seJoxE','service','command','13328928XpvuKu','145767lLrwbv','some','message','entries','38338707nnisSw','10PheGDV','test','stringify','37458sACEUK','10pEEDJY','durationMs','6355237vSyNDG','60jnRFfF'];a175_0x2650=function(){return _0x40c7b2;};return a175_0x2650();}function a175_0x5ebc(_0x5997a8,_0x560d62){_0x5997a8=_0x5997a8-0x90;const _0x26504e=a175_0x2650();let _0x5ebcd9=_0x26504e[_0x5997a8];return _0x5ebcd9;}(function(_0x41b398,_0x5be073){const _0x4ae32a=a175_0x5ebc,_0x407660=_0x41b398();while(!![]){try{const _0x3b3807=parseInt(_0x4ae32a(0xa0))/0x1*(-parseInt(_0x4ae32a(0x9b))/0x2)+parseInt(_0x4ae32a(0x93))/0x3*(-parseInt(_0x4ae32a(0x9f))/0x4)+-parseInt(_0x4ae32a(0x98))/0x5*(parseInt(_0x4ae32a(0xa4))/0x6)+-parseInt(_0x4ae32a(0x9e))/0x7+parseInt(_0x4ae32a(0x92))/0x8+-parseInt(_0x4ae32a(0xa3))/0x9*(parseInt(_0x4ae32a(0x9c))/0xa)+parseInt(_0x4ae32a(0x97))/0xb;if(_0x3b3807===_0x5be073)break;else _0x407660['push'](_0x407660['shift']());}catch(_0x5ca5b5){_0x407660['push'](_0x407660['shift']());}}}(a175_0x2650,0xd656f));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i];function isSensitiveKey(_0x1299bc){const _0x5d1f25=a175_0x5ebc;return SENSITIVE_PATTERNS[_0x5d1f25(0x94)](_0xa9ea5=>_0xa9ea5[_0x5d1f25(0x99)](_0x1299bc));}function sanitizeFlags(_0x623e61){const _0x48a570=a175_0x5ebc,_0x30d5ed={};for(const [_0x2e64bf,_0x5ad669]of Object[_0x48a570(0x96)](_0x623e61)){isSensitiveKey(_0x2e64bf)?_0x30d5ed[_0x2e64bf]=_0x5ad669!=null&&_0x5ad669!==''?'[REDACTED]':_0x5ad669:_0x30d5ed[_0x2e64bf]=_0x5ad669;}return _0x30d5ed;}export async function reportCommandTrace(_0x4adad8){const _0x1cd581=a175_0x5ebc;try{const _0x329456=sanitizeFlags(_0x4adad8[_0x1cd581(0xa1)]);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x4adad8[_0x1cd581(0x90)],'command.name':_0x4adad8[_0x1cd581(0x91)],'command.flags':JSON[_0x1cd581(0x9a)](_0x329456),..._0x4adad8[_0x1cd581(0x9d)]!=null?{'command.duration_ms':_0x4adad8['durationMs']}:{},..._0x4adad8[_0x1cd581(0xa2)]?{'command.error':_0x4adad8[_0x1cd581(0xa2)]instanceof Error?_0x4adad8[_0x1cd581(0xa2)][_0x1cd581(0x95)]:String(_0x4adad8[_0x1cd581(0xa2)])}:{}}});}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a176_0x5ea8(){var _0x514d97=['79037zJivff','4REnuWI','service','143afTxXf','424TGDFIc','444086wdIMoQ','2377835JZPgMp','1VRwsqq','1342350IhZUZa','error','9148932JjziUk','1540836NTHbID','cli.help','2584660ltQWsl'];a176_0x5ea8=function(){return _0x514d97;};return a176_0x5ea8();}function a176_0x193e(_0x304205,_0x1900ee){_0x304205=_0x304205-0x170;var _0x5ea8b8=a176_0x5ea8();var _0x193e1a=_0x5ea8b8[_0x304205];return _0x193e1a;}(function(_0x4c8cce,_0x1a9589){var _0x1cb924=a176_0x193e,_0x3241ba=_0x4c8cce();while(!![]){try{var _0x41f653=parseInt(_0x1cb924(0x17d))/0x1*(parseInt(_0x1cb924(0x17b))/0x2)+-parseInt(_0x1cb924(0x170))/0x3+parseInt(_0x1cb924(0x177))/0x4*(-parseInt(_0x1cb924(0x17c))/0x5)+-parseInt(_0x1cb924(0x173))/0x6+-parseInt(_0x1cb924(0x176))/0x7*(parseInt(_0x1cb924(0x17a))/0x8)+-parseInt(_0x1cb924(0x172))/0x9+-parseInt(_0x1cb924(0x175))/0xa*(-parseInt(_0x1cb924(0x179))/0xb);if(_0x41f653===_0x1a9589)break;else _0x3241ba['push'](_0x3241ba['shift']());}catch(_0x461525){_0x3241ba['push'](_0x3241ba['shift']());}}}(a176_0x5ea8,0xc036b));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x48bef2,_0x39a1f7){var _0x5689ee=a176_0x193e;try{await sendCliTraceLog({'spanName':_0x5689ee(0x174),'logData':{'rabetbase.help.kind':_0x48bef2,..._0x39a1f7?.[_0x5689ee(0x178)]&&{'rabetbase.help.service':_0x39a1f7[_0x5689ee(0x178)]}}});}catch(_0x2f1b88){console[_0x5689ee(0x171)]('Failed\x20to\x20report\x20CLI\x20help\x20trace:',_0x2f1b88);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1551a6,_0x10ae8e){const _0x1237ad=a177_0x5645,_0x1edeab=_0x1551a6();while(!![]){try{const _0x154af7=parseInt(_0x1237ad(0xab))/0x1+-parseInt(_0x1237ad(0xaf))/0x2+parseInt(_0x1237ad(0xa9))/0x3+parseInt(_0x1237ad(0xb4))/0x4+-parseInt(_0x1237ad(0xae))/0x5+-parseInt(_0x1237ad(0xb1))/0x6*(parseInt(_0x1237ad(0xac))/0x7)+parseInt(_0x1237ad(0xad))/0x8;if(_0x154af7===_0x10ae8e)break;else _0x1edeab['push'](_0x1edeab['shift']());}catch(_0x2b568c){_0x1edeab['push'](_0x1edeab['shift']());}}}(a177_0x129c,0x2a415));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a177_0x5645(_0x168311,_0x24d96a){_0x168311=_0x168311-0xa9;const _0x129c97=a177_0x129c();let _0x564577=_0x129c97[_0x168311];return _0x564577;}import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';function a177_0x129c(){const _0x524f76=['254950Nxcvko','7JPZtiJ','1157056iHbHZY','590085uVomQf','226632XbvRin','unknown','985758OxuAsJ','tenant_code','username','221784HrawXI','user','email','production','341025GwYlWD','daily'];a177_0x129c=function(){return _0x524f76;};return a177_0x129c();}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x1ae46a=a177_0x5645,_0x253c36=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x32c4b1=_0x253c36?.[_0x1ae46a(0xb5)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x1ae46a(0xb0)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x1ae46a(0xaa):_0x1ae46a(0xb7))}),setUserContext({'id':_0x32c4b1?.['id'],'username':_0x32c4b1?.[_0x1ae46a(0xb3)],'nickname':_0x32c4b1?.['nickname'],'email':_0x32c4b1?.[_0x1ae46a(0xb6)],'tenantCode':_0x32c4b1?.['tenant'][_0x1ae46a(0xb2)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x253c36;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x132cd3,_0x649b59){const _0x21963b=a178_0x4fde,_0xc0235a=_0x132cd3();while(!![]){try{const _0x5e392d=parseInt(_0x21963b(0x122))/0x1*(-parseInt(_0x21963b(0x119))/0x2)+parseInt(_0x21963b(0x11b))/0x3*(-parseInt(_0x21963b(0x126))/0x4)+-parseInt(_0x21963b(0x11d))/0x5+parseInt(_0x21963b(0x123))/0x6*(-parseInt(_0x21963b(0x11c))/0x7)+-parseInt(_0x21963b(0x11e))/0x8*(-parseInt(_0x21963b(0x125))/0x9)+parseInt(_0x21963b(0x121))/0xa+parseInt(_0x21963b(0x124))/0xb;if(_0x5e392d===_0x649b59)break;else _0xc0235a['push'](_0xc0235a['shift']());}catch(_0x56177d){_0xc0235a['push'](_0xc0235a['shift']());}}}(a178_0x27cf,0x36f16));function a178_0x27cf(){const _0x1e91fd=['91CHVxTC','1986300RbIaWL','56REMJWd','then','once','3484650TmCoVW','147592YziscJ','31986cyfeuy','7215934PatrKg','374301YEOFbJ','4ebwfXs','exit','6FNSGRF','SIGINT','483591AcIgsz'];a178_0x27cf=function(){return _0x1e91fd;};return a178_0x27cf();}import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x596ee9=a178_0x4fde;process[_0x596ee9(0x120)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x1b8fe0=()=>{const _0x5d19b8=_0x596ee9;void flushOtelNodeIfUsed()[_0x5d19b8(0x11f)](()=>process[_0x5d19b8(0x127)](0x0));};process[_0x596ee9(0x120)](_0x596ee9(0x11a),_0x1b8fe0),process[_0x596ee9(0x120)]('SIGTERM',_0x1b8fe0);}function a178_0x4fde(_0x3c6c41,_0x6831cc){_0x3c6c41=_0x3c6c41-0x119;const _0x27cf95=a178_0x27cf();let _0x4fde99=_0x27cf95[_0x3c6c41];return _0x4fde99;}export async function exitWithOtelShutdown(_0x2c49ab){const _0x455f87=a178_0x4fde;await flushOtelNodeIfUsed(),process[_0x455f87(0x127)](_0x2c49ab);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a179_0x4b1fee=a179_0x20fb;(function(_0x235a35,_0x171dbe){const _0x4d9fcc=a179_0x20fb,_0xfc6ade=_0x235a35();while(!![]){try{const _0x3d2a95=parseInt(_0x4d9fcc(0x10f))/0x1*(-parseInt(_0x4d9fcc(0x116))/0x2)+parseInt(_0x4d9fcc(0x11a))/0x3*(-parseInt(_0x4d9fcc(0x118))/0x4)+-parseInt(_0x4d9fcc(0x112))/0x5+-parseInt(_0x4d9fcc(0x113))/0x6*(parseInt(_0x4d9fcc(0x11c))/0x7)+-parseInt(_0x4d9fcc(0x11b))/0x8*(-parseInt(_0x4d9fcc(0x117))/0x9)+parseInt(_0x4d9fcc(0x111))/0xa+parseInt(_0x4d9fcc(0x110))/0xb;if(_0x3d2a95===_0x171dbe)break;else _0xfc6ade['push'](_0xfc6ade['shift']());}catch(_0x4bd99d){_0xfc6ade['push'](_0xfc6ade['shift']());}}}(a179_0x6748,0x424cd));import{sendTraceLog}from'@lovrabet/otel-logger';function a179_0x20fb(_0x387eae,_0x3802c0){_0x387eae=_0x387eae-0x10d;const _0x674836=a179_0x6748();let _0x20fb28=_0x674836[_0x387eae];return _0x20fb28;}function a179_0x6748(){const _0x457279=['5710518UJtkwI','714650KnIEPn','1569575iBzfvK','312522fSQpPC','traceName','manual','64HxmZkk','90zwPhmL','26964wWmKlR','rabetbase-cli','15nkPpXg','361360xObelg','14nLMwAJ','spanName','version','9967rlaPXR'];a179_0x6748=function(){return _0x457279;};return a179_0x6748();}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a179_0x4b1fee(0x119);export async function sendCliTraceLog(_0x13c2ae){const _0x29a692=a179_0x4b1fee;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x13c2ae[_0x29a692(0x114)]??DEFAULT_TRACE_NAME,'version':_0x13c2ae[_0x29a692(0x10e)]??getCliVersion(),'spanName':_0x13c2ae[_0x29a692(0x10d)],'eventType':_0x29a692(0x115),'logData':_0x13c2ae['logData'],..._0x13c2ae['traceparent']&&{'traceparent':_0x13c2ae['traceparent']}});}
|