@lovrabet/rabetbase-cli 2.1.14-beta.2 → 2.1.14-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/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/extend-update.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/dataset/rename.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 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- 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 +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a156_0x6bee(){const _0x38f41b=['348HCGDmx','1502172mzXETb','indexOf','dbName','length','sql','687033qdRaNf','213127zfZHpw','replace','split','227590GECNGk','toLowerCase','test','60myTSWA','slice','isDirectory','332205WWsGzU','5663NwknoG','4kEqaDl','filter','709178MpjiyX','sqlRootDir','.xml','sqlCode','mode','mybatisXml','3bTEqYh','.sql','ENOENT','code','path','2904UILrEX','sqlName','name','push'];a156_0x6bee=function(){return _0x38f41b;};return a156_0x6bee();}(function(_0x3f14b5,_0x4267a3){const _0x5796bb=a156_0x24e4,_0x419c25=_0x3f14b5();while(!![]){try{const _0x9fba88=parseInt(_0x5796bb(0x81))/0x1+-parseInt(_0x5796bb(0x6b))/0x2*(-parseInt(_0x5796bb(0x71))/0x3)+parseInt(_0x5796bb(0x69))/0x4*(parseInt(_0x5796bb(0x8a))/0x5)+-parseInt(_0x5796bb(0x7b))/0x6+parseInt(_0x5796bb(0x68))/0x7*(-parseInt(_0x5796bb(0x76))/0x8)+parseInt(_0x5796bb(0x80))/0x9*(-parseInt(_0x5796bb(0x87))/0xa)+parseInt(_0x5796bb(0x84))/0xb*(parseInt(_0x5796bb(0x7a))/0xc);if(_0x9fba88===_0x4267a3)break;else _0x419c25['push'](_0x419c25['shift']());}catch(_0x225942){_0x419c25['push'](_0x419c25['shift']());}}}(a156_0x6bee,0x38ab4));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';function a156_0x24e4(_0x219d6c,_0x2e5dbe){_0x219d6c=_0x219d6c-0x68;const _0x6beebb=a156_0x6bee();let _0x24e459=_0x6beebb[_0x219d6c];return _0x24e459;}import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x5c26bf){const _0x6e5bff=a156_0x24e4;if(_0x5c26bf===_0x6e5bff(0x72))return _0x6e5bff(0x7f);if(_0x5c26bf===_0x6e5bff(0x6d))return _0x6e5bff(0x70);return undefined;}async function scanSqlFilesRecursively(_0x2f3abc,_0x48f152){const _0x5e3a69=a156_0x24e4,_0xd4a8e7=[];try{const _0x33c6e3=await readdir(_0x2f3abc,{'withFileTypes':!![]});for(const _0x1179bc of _0x33c6e3){const _0x526033=join(_0x2f3abc,_0x1179bc[_0x5e3a69(0x78)]);if(_0x1179bc[_0x5e3a69(0x89)]()){_0xd4a8e7[_0x5e3a69(0x79)](...await scanSqlFilesRecursively(_0x526033,_0x48f152));continue;}if(!_0x1179bc['isFile']())continue;const _0x1d67fb=extname(_0x1179bc['name'])[_0x5e3a69(0x85)](),_0x205e1a=extensionToMode(_0x1d67fb);if(!_0x205e1a)continue;const _0x366732=relative(_0x48f152,_0x526033)[_0x5e3a69(0x82)](/\\/g,'/'),_0x579f1d=_0x366732[_0x5e3a69(0x83)]('/')[_0x5e3a69(0x6a)](Boolean),_0x3ccba3=parseSqlPath(_0x579f1d,_0x1179bc['name'],_0x1d67fb);if(!_0x3ccba3)continue;_0xd4a8e7[_0x5e3a69(0x79)]({'sqlCode':_0x3ccba3[_0x5e3a69(0x6e)],'sqlName':_0x3ccba3['sqlName'],'dbDirectory':_0x579f1d[0x0],'filePath':_0x526033,'relativePath':_0x366732,'lockKey':_0x3ccba3[_0x5e3a69(0x6e)],'mode':_0x205e1a});}}catch(_0x5643e9){if(_0x5643e9[_0x5e3a69(0x74)]!==_0x5e3a69(0x73))throw _0x5643e9;}return _0xd4a8e7;}export async function scanLocalSqlQueries(_0x1fb6f){const _0x4fafc9=a156_0x24e4;return scanSqlFilesRecursively(_0x1fb6f[_0x4fafc9(0x6c)],_0x1fb6f[_0x4fafc9(0x6c)]);}export function resolveLocalSqlFilePath(_0x1864ad,_0x1b046e,_0x4ce19d){const _0x11669a=a156_0x24e4,_0x371845=_0x4ce19d?.[_0x11669a(0x75)]||(_0x4ce19d?.[_0x11669a(0x77)]||_0x4ce19d?.[_0x11669a(0x7d)]?buildSqlRelativePath(_0x1b046e,_0x4ce19d?.[_0x11669a(0x77)],_0x4ce19d?.[_0x11669a(0x7d)],_0x4ce19d?.[_0x11669a(0x6f)]||_0x11669a(0x7f),_0x4ce19d?.['dbId']):buildDefaultSqlFileName(_0x1b046e,_0x4ce19d?.[_0x11669a(0x6f)]||_0x11669a(0x7f)));return join(_0x1864ad['sqlRootDir'],_0x371845);}export async function directoryExists(_0x53b372){try{const _0x2d7615=await stat(_0x53b372);return _0x2d7615['isDirectory']();}catch{return![];}}function parseSqlPath(_0x2ea5a5,_0x289c83,_0x168c99){const _0x63aab1=a156_0x24e4,_0x2eb311=_0x289c83[_0x63aab1(0x88)](0x0,-_0x168c99[_0x63aab1(0x7e)]);if(_0x2ea5a5[_0x63aab1(0x7e)]<0x2)return null;const _0x15ca3e=_0x2eb311[_0x63aab1(0x7c)]('_');if(_0x15ca3e<=0x0||_0x15ca3e>=_0x2eb311[_0x63aab1(0x7e)]-0x1)return null;const _0xae821a=_0x2eb311[_0x63aab1(0x88)](0x0,_0x15ca3e);if(!isLikelySqlCode(_0xae821a))return null;return{'sqlCode':_0xae821a,'sqlName':_0x2eb311['slice'](_0x15ca3e+0x1)};}function isLikelySqlCode(_0x29cc6d){const _0x31f130=a156_0x24e4;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x31f130(0x86)](_0x29cc6d);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x13f4da,_0x114d87){const _0x38feeb=a157_0x3820,_0x4a510d=_0x13f4da();while(!![]){try{const _0x3cb257=parseInt(_0x38feeb(0x152))/0x1*(-parseInt(_0x38feeb(0x154))/0x2)+parseInt(_0x38feeb(0x14e))/0x3*(-parseInt(_0x38feeb(0x150))/0x4)+-parseInt(_0x38feeb(0x14f))/0x5+parseInt(_0x38feeb(0x14a))/0x6+parseInt(_0x38feeb(0x14d))/0x7*(parseInt(_0x38feeb(0x149))/0x8)+-parseInt(_0x38feeb(0x155))/0x9+parseInt(_0x38feeb(0x151))/0xa;if(_0x3cb257===_0x114d87)break;else _0x4a510d['push'](_0x4a510d['shift']());}catch(_0x24faf3){_0x4a510d['push'](_0x4a510d['shift']());}}}(a157_0xc772,0x27ab3));import{readFile}from'node:fs/promises';function a157_0xc772(){const _0x5971bc=['md5','createHash','7GaVUmZ','2118oeanfS','339990ggkPNb','676LqtGMs','3709650UfkJSd','9rQAedh','hex','29394uTmMEm','1093770zwsVjE','utf8','553552jFEsce','980634RoYnSs'];a157_0xc772=function(){return _0x5971bc;};return a157_0xc772();}import a157_0x2e244d from'node:crypto';export function computeSqlContentHash(_0x4676e1){const _0x4168c4=a157_0x3820;return a157_0x2e244d[_0x4168c4(0x14c)](_0x4168c4(0x14b))['update'](_0x4676e1)['digest'](_0x4168c4(0x153));}function a157_0x3820(_0x8ca272,_0x859103){_0x8ca272=_0x8ca272-0x148;const _0xc772a7=a157_0xc772();let _0x382010=_0xc772a7[_0x8ca272];return _0x382010;}export async function computeSqlFileHash(_0x50c6e4){const _0xa9feb4=a157_0x3820,_0x3c5e4f=await readFile(_0x50c6e4,_0xa9feb4(0x148));return computeSqlContentHash(_0x3c5e4f);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a158_0x4eba(_0x1967a9,_0x2a1aac){_0x1967a9=_0x1967a9-0x106;const _0x5779d3=a158_0x5779();let _0x4ebab9=_0x5779d3[_0x1967a9];return _0x4ebab9;}function a158_0x5779(){const _0x2455a1=['104049xBaIti','2128752EWznsw','14196zwyEbz','parse','202722jFlMxJ','stringify','27574ITxqeO','sqlRoot','utf8','sqls','105VlXnkW','lastSync','63115hWyJOt','apps','\x22\x20vs\x20lock\x20\x22','64nlSoAk','490fKCEsf','2292OtXySm','\x22.\x20','27TzbDco','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','230NQHBUY','code','1183203wZJAfW'];a158_0x5779=function(){return _0x2455a1;};return a158_0x5779();}(function(_0x4632f0,_0x4b7f2f){const _0x285367=a158_0x4eba,_0x4c7b8c=_0x4632f0();while(!![]){try{const _0x2747ce=-parseInt(_0x285367(0x114))/0x1*(parseInt(_0x285367(0x107))/0x2)+parseInt(_0x285367(0x11a))/0x3+-parseInt(_0x285367(0x11b))/0x4*(parseInt(_0x285367(0x111))/0x5)+parseInt(_0x285367(0x11d))/0x6*(parseInt(_0x285367(0x10b))/0x7)+parseInt(_0x285367(0x110))/0x8*(-parseInt(_0x285367(0x118))/0x9)+parseInt(_0x285367(0x116))/0xa*(parseInt(_0x285367(0x119))/0xb)+-parseInt(_0x285367(0x112))/0xc*(-parseInt(_0x285367(0x10d))/0xd);if(_0x2747ce===_0x4b7f2f)break;else _0x4c7b8c['push'](_0x4c7b8c['shift']());}catch(_0x5bcbf8){_0x4c7b8c['push'](_0x4c7b8c['shift']());}}}(a158_0x5779,0x8fe98));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x346bb9,_0x50743d,_0x561bca,_0x1eca8e){const _0x2c7224=a158_0x4eba,_0x22dea5=_0x346bb9??createEmptySqlLock();let _0x2852ad=_0x22dea5[_0x2c7224(0x10e)][_0x50743d];if(!_0x2852ad)return _0x2852ad={'sqlRoot':_0x561bca,'lastSync':'','sqls':{}},_0x22dea5['apps'][_0x50743d]=_0x2852ad,{'lockData':_0x22dea5,'appLock':_0x2852ad};if(!_0x2852ad[_0x2c7224(0x108)])_0x2852ad[_0x2c7224(0x108)]=_0x561bca;else{if(_0x2852ad['sqlRoot']!==_0x561bca)throw new Error(_0x1eca8e+':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22'+_0x561bca+_0x2c7224(0x10f)+_0x2852ad[_0x2c7224(0x108)]+_0x2c7224(0x113)+'Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.');}return!_0x2852ad[_0x2c7224(0x10a)]&&(_0x2852ad[_0x2c7224(0x10a)]={}),!_0x2852ad[_0x2c7224(0x10c)]&&(_0x2852ad[_0x2c7224(0x10c)]=''),{'lockData':_0x22dea5,'appLock':_0x2852ad};}export async function readSqlLockFile(_0x481870){const _0x57d0af=a158_0x4eba;try{const _0x14a689=await readFile(_0x481870,_0x57d0af(0x109));return JSON[_0x57d0af(0x11c)](_0x14a689);}catch(_0x238006){if(_0x238006[_0x57d0af(0x117)]==='ENOENT')return null;throw new Error(_0x57d0af(0x115)+String(_0x238006));}}export async function writeSqlLockFile(_0x479ae2,_0x4e5f68){const _0x12000b=a158_0x4eba;await mkdir(dirname(_0x479ae2),{'recursive':!![]}),await writeFile(_0x479ae2,JSON[_0x12000b(0x106)](_0x4e5f68,null,0x2),_0x12000b(0x109));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xd004c2,_0x3bc343){const _0x2b63fc=a160_0x1b39,_0x4ab141=_0xd004c2();while(!![]){try{const _0x22e045=parseInt(_0x2b63fc(0x104))/0x1*(parseInt(_0x2b63fc(0x102))/0x2)+-parseInt(_0x2b63fc(0xff))/0x3+parseInt(_0x2b63fc(0x106))/0x4*(-parseInt(_0x2b63fc(0x10b))/0x5)+parseInt(_0x2b63fc(0x10e))/0x6*(parseInt(_0x2b63fc(0x107))/0x7)+parseInt(_0x2b63fc(0xfe))/0x8+parseInt(_0x2b63fc(0x109))/0x9*(parseInt(_0x2b63fc(0x100))/0xa)+-parseInt(_0x2b63fc(0x10a))/0xb;if(_0x22e045===_0x3bc343)break;else _0x4ab141['push'](_0x4ab141['shift']());}catch(_0x321925){_0x4ab141['push'](_0x4ab141['shift']());}}}(a160_0x261e,0xdf9d2));function a160_0x1b39(_0x2817ee,_0x5f352c){_0x2817ee=_0x2817ee-0xfd;const _0x261ec5=a160_0x261e();let _0x1b391b=_0x261ec5[_0x2817ee];return _0x1b391b;}export function detectSqlMode(_0x4b5967){const _0x5aa1a0=a160_0x1b39,_0x2fa11e=_0x4b5967[_0x5aa1a0(0x105)]();if(/^<(select|insert|update|delete)\b/i['test'](_0x2fa11e))return'mybatisXml';return'sql';}export function getSqlFileExtension(_0x484641){const _0x3baaec=a160_0x1b39;return _0x484641===_0x3baaec(0x101)?_0x3baaec(0x10c):'.sql';}export function buildDefaultSqlFileName(_0x7c1598,_0x4a9821){return''+_0x7c1598+getSqlFileExtension(_0x4a9821);}export function sanitizeSqlPathSegment(_0x2d7e79,_0x4bf3d0){const _0x5540e7=a160_0x1b39,_0x236de9=String(_0x2d7e79??'')[_0x5540e7(0x108)](),_0x3ed361=_0x236de9[_0x5540e7(0xfd)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')['replace'](/\s+/g,'-')[_0x5540e7(0xfd)](/-+/g,'-')[_0x5540e7(0xfd)](/^\.+/,'')[_0x5540e7(0xfd)](/\.+$/,'')[_0x5540e7(0xfd)](/^-+/,'')[_0x5540e7(0xfd)](/-+$/,'');return _0x3ed361||_0x4bf3d0;}export function buildDbDirectoryName(_0xdc094b,_0x1c56eb){const _0x5ea9bf=a160_0x1b39;return sanitizeSqlPathSegment(_0xdc094b,_0x1c56eb!=null?_0x5ea9bf(0x10d)+_0x1c56eb:'unknown-db');}function a160_0x261e(){const _0x3cf453=['66025oVpNnY','.xml','db-','6522lwndbi','replace','4872384VVpVAn','2575878GazLWR','41880sdRjAq','mybatisXml','31054EuXtZD','unknown-sql','71vTCYBf','trimStart','116TFNhoC','2821VQjgmr','trim','882ECoqaU','4427027JOuHUZ'];a160_0x261e=function(){return _0x3cf453;};return a160_0x261e();}export function buildSqlRelativePath(_0x5ecc6c,_0x5e0599,_0x4d91c6,_0x56e243,_0x1bbf73){const _0x455271=a160_0x1b39,_0x150722=buildDbDirectoryName(_0x4d91c6,_0x1bbf73),_0x12e73a=sanitizeSqlPathSegment(_0x5ecc6c,_0x455271(0x103)),_0x106b40=sanitizeSqlPathSegment(_0x5e0599,_0x12e73a);return _0x150722+'/'+_0x12e73a+'_'+_0x106b40+getSqlFileExtension(_0x56e243);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x55db01,_0x5b1b07){const _0x2e67a0=a161_0x570a,_0x14be9f=_0x55db01();while(!![]){try{const _0x30265c=-parseInt(_0x2e67a0(0xf5))/0x1*(-parseInt(_0x2e67a0(0xe6))/0x2)+-parseInt(_0x2e67a0(0xf7))/0x3+-parseInt(_0x2e67a0(0xef))/0x4+parseInt(_0x2e67a0(0xdf))/0x5+parseInt(_0x2e67a0(0xdd))/0x6+-parseInt(_0x2e67a0(0xf6))/0x7*(-parseInt(_0x2e67a0(0xe8))/0x8)+parseInt(_0x2e67a0(0xf0))/0x9;if(_0x30265c===_0x5b1b07)break;else _0x14be9f['push'](_0x14be9f['shift']());}catch(_0x5aea6d){_0x14be9f['push'](_0x14be9f['shift']());}}}(a161_0x5210,0xa1236));export function detectSqlType(_0x1e153b){const _0x5d8915=a161_0x570a;if(!_0x1e153b?.[_0x5d8915(0xda)]())return{'type':_0x5d8915(0xe4),'isSelectOnly':![],'isDangerous':![],'reason':_0x5d8915(0xde)};const _0x4d39d2=_0x1e153b['replace'](/#\{[^}]*\}/g,'?')[_0x5d8915(0xd8)](/\$\{[^}]*\}/g,'?')[_0x5d8915(0xd8)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x5d8915(0xd8)](/\/\*[\s\S]*?\*\//g,'')[_0x5d8915(0xda)](),_0x4a6a2b=_0x4d39d2[_0x5d8915(0xea)]('\x0a');let _0x4eb277='';for(const _0x50f260 of _0x4a6a2b){const _0x45f6f1=_0x50f260[_0x5d8915(0xda)]();if(!_0x45f6f1||_0x45f6f1[_0x5d8915(0xd9)]('--')||_0x45f6f1[_0x5d8915(0xd9)]('/*'))continue;_0x4eb277=_0x45f6f1;break;}const _0x368172=_0x4eb277[_0x5d8915(0xd7)]();if(_0x368172[_0x5d8915(0xd9)](_0x5d8915(0xe0))||_0x368172[_0x5d8915(0xd9)](_0x5d8915(0xf2))){const _0x196aeb=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x5d8915(0xf3)](_0x4d39d2);return{'type':'SELECT','isSelectOnly':!_0x196aeb,'isDangerous':_0x196aeb,'reason':_0x196aeb?_0x5d8915(0xe5):undefined};}if(_0x368172[_0x5d8915(0xd9)](_0x5d8915(0xf9)))return{'type':_0x5d8915(0xf9),'isSelectOnly':![],'isDangerous':![]};if(_0x368172[_0x5d8915(0xd9)](_0x5d8915(0xe2)))return{'type':_0x5d8915(0xe2),'isSelectOnly':![],'isDangerous':![]};if(_0x368172[_0x5d8915(0xd9)](_0x5d8915(0xdc)))return{'type':_0x5d8915(0xdc),'isSelectOnly':![],'isDangerous':!![],'reason':_0x5d8915(0xf4)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0x368172))return{'type':_0x5d8915(0xf8),'isSelectOnly':![],'isDangerous':!![],'reason':_0x5d8915(0xfa)};return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x42cdeb){const _0x510afc=a161_0x570a,_0x4c494f=_0x42cdeb[_0x510afc(0xd8)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x510afc(0xd8)](/'[^']*'/g,'\x27\x27')[_0x510afc(0xd8)](/--.*$/gm,'')[_0x510afc(0xd8)](/\/\*[\s\S]*?\*\//g,''),_0x1147e1=[],_0xd9b503=_0x4c494f[_0x510afc(0xe7)](/FROM\s+([^\s,)(]+)/i);if(_0xd9b503?.[0x1])_0x1147e1[_0x510afc(0xfd)](_0xd9b503[0x1][_0x510afc(0xd8)](/[`"]/g,''));for(const _0x26b337 of _0x4c494f['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x3c597f=_0x26b337[0x1]?.['replace'](/[`"]/g,'');if(_0x3c597f&&!_0x1147e1['includes'](_0x3c597f))_0x1147e1[_0x510afc(0xfd)](_0x3c597f);}const _0x51a76a=_0x4c494f['match'](/INTO\s+([^\s(]+)/i);if(_0x51a76a?.[0x1]){const _0xd30fb1=_0x51a76a[0x1][_0x510afc(0xd8)](/[`"]/g,'');if(!_0x1147e1[_0x510afc(0xec)](_0xd30fb1))_0x1147e1[_0x510afc(0xfd)](_0xd30fb1);}const _0x108ab7=_0x4c494f[_0x510afc(0xe7)](/UPDATE\s+([^\s,)(]+)/i);if(_0x108ab7?.[0x1]){const _0x572194=_0x108ab7[0x1][_0x510afc(0xd8)](/[`"]/g,'');if(!_0x1147e1[_0x510afc(0xec)](_0x572194))_0x1147e1[_0x510afc(0xfd)](_0x572194);}return _0x1147e1;}function a161_0x5210(){const _0x82b8ce=['startsWith','trim','isDangerous','DELETE','102972SwVoXY','SQL\x20content\x20is\x20empty','1755110GABsIp','SELECT','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','UPDATE','type','UNKNOWN','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','110itxMWR','match','2111112EZawea','from','split','matchAll','includes','join','\x20query\x20targeting\x20','3025248JBvHoO','7001100oxhrzh','unknown\x20table(s)','WITH','test','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','4303mgoZan','14iiKzOR','1482579ZqAFhI','DDL','INSERT','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','\x20with\x20parameters:\x20','length','push','toUpperCase','replace'];a161_0x5210=function(){return _0x82b8ce;};return a161_0x5210();}function extractParameters(_0x39b642){const _0x35a579=a161_0x570a,_0x3cf406=new Set();for(const _0x5adf88 of _0x39b642[_0x35a579(0xeb)](/#\{(\w+)\}/g))if(_0x5adf88[0x1])_0x3cf406['add'](_0x5adf88[0x1]);for(const _0x196ea8 of _0x39b642[_0x35a579(0xeb)](/\$\{(\w+)\}/g))if(_0x196ea8[0x1])_0x3cf406['add'](_0x196ea8[0x1]);return Array[_0x35a579(0xe9)](_0x3cf406);}function a161_0x570a(_0x2fe0cd,_0x55d242){_0x2fe0cd=_0x2fe0cd-0xd7;const _0x5210b9=a161_0x5210();let _0x570a8f=_0x5210b9[_0x2fe0cd];return _0x570a8f;}export function validateSql(_0x4c0ea6){const _0x4c333e=a161_0x570a,_0x5cfb2a=detectSqlType(_0x4c0ea6),_0x2a7d81=extractTables(_0x4c0ea6),_0x6d0aeb=extractParameters(_0x4c0ea6);if(_0x5cfb2a[_0x4c333e(0xdb)])return{'valid':![],'sqlType':_0x5cfb2a,'tables':_0x2a7d81,'parameters':_0x6d0aeb,'message':_0x5cfb2a['reason']||_0x5cfb2a[_0x4c333e(0xe3)]+_0x4c333e(0xe1)};if(_0x5cfb2a['type']==='UNKNOWN')return{'valid':![],'sqlType':_0x5cfb2a,'tables':_0x2a7d81,'parameters':_0x6d0aeb,'message':'Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'};return{'valid':!![],'sqlType':_0x5cfb2a,'tables':_0x2a7d81,'parameters':_0x6d0aeb,'message':_0x5cfb2a[_0x4c333e(0xe3)]+_0x4c333e(0xee)+(_0x2a7d81[_0x4c333e(0xfc)]?_0x2a7d81['join'](',\x20'):_0x4c333e(0xf1))+(_0x6d0aeb['length']?_0x4c333e(0xfb)+_0x6d0aeb[_0x4c333e(0xed)](',\x20'):'')};}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a162_0x5d7361=a162_0x1195;(function(_0x36c865,_0x5108b4){const _0x439007=a162_0x1195,_0x4dc649=_0x36c865();while(!![]){try{const _0x111fd8=-parseInt(_0x439007(0x1df))/0x1*(-parseInt(_0x439007(0x1d9))/0x2)+parseInt(_0x439007(0x1db))/0x3+-parseInt(_0x439007(0x1e4))/0x4*(-parseInt(_0x439007(0x1e8))/0x5)+parseInt(_0x439007(0x1da))/0x6+-parseInt(_0x439007(0x1eb))/0x7+-parseInt(_0x439007(0x1e1))/0x8*(parseInt(_0x439007(0x1e0))/0x9)+parseInt(_0x439007(0x1e9))/0xa*(-parseInt(_0x439007(0x1e7))/0xb);if(_0x111fd8===_0x5108b4)break;else _0x4dc649['push'](_0x4dc649['shift']());}catch(_0x563274){_0x4dc649['push'](_0x4dc649['shift']());}}}(a162_0x2635,0x9059b));function a162_0x2635(){const _0x1a732c=['join','3385620Lqobdi','4GPrLCx','1299930lUuRty','2485998pdolmV','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','Set\x20appcode\x20via\x20`','429242IgVPOr','9gzTAsE','7563000GrfqRf','Run\x20`','Tip:\x20`','183116kPIuNX','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','\x20auth`\x20to\x20login\x20first.','22RnCydb','15MbtUZU','104240jPmDFI'];a162_0x2635=function(){return _0x1a732c;};return a162_0x2635();}function a162_0x1195(_0x4fd49a,_0x5ac76e){_0x4fd49a=_0x4fd49a-0x1d9;const _0x2635b1=a162_0x2635();let _0x119577=_0x2635b1[_0x4fd49a];return _0x119577;}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':a162_0x5d7361(0x1e2)+CLI_BIN_NAME+a162_0x5d7361(0x1e6),'configMissingHint':[a162_0x5d7361(0x1de)+CLI_BIN_NAME+a162_0x5d7361(0x1dd),a162_0x5d7361(0x1e3)+CLI_BIN_NAME+a162_0x5d7361(0x1dc)][a162_0x5d7361(0x1ea)]('\x0a\x20\x20\x20\x20\x20\x20\x20'),'notInProjectHint':a162_0x5d7361(0x1e5)});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a163_0x5891(_0x37ca49,_0x4ff068){_0x37ca49=_0x37ca49-0x176;var _0x43c11d=a163_0x43c1();var _0x5891b0=_0x43c11d[_0x37ca49];return _0x5891b0;}function a163_0x43c1(){var _0x479911=['3214716GQxmae','18sSlaCU','1450017NUZWaZ','3047sgzApZ','33772blIRau','6MCvydd','148BxqUAb','538625hBeXww','762713MnukEl','6070306DyPdIP','39PYMaIx','10MrnUjC','16lSIntn'];a163_0x43c1=function(){return _0x479911;};return a163_0x43c1();}(function(_0x33dc78,_0x37ed9b){var _0x44c5a8=a163_0x5891,_0x569dc3=_0x33dc78();while(!![]){try{var _0x500c6e=parseInt(_0x44c5a8(0x17f))/0x1*(parseInt(_0x44c5a8(0x182))/0x2)+parseInt(_0x44c5a8(0x181))/0x3*(parseInt(_0x44c5a8(0x180))/0x4)+-parseInt(_0x44c5a8(0x176))/0x5+parseInt(_0x44c5a8(0x17d))/0x6*(-parseInt(_0x44c5a8(0x177))/0x7)+-parseInt(_0x44c5a8(0x17b))/0x8*(-parseInt(_0x44c5a8(0x17e))/0x9)+-parseInt(_0x44c5a8(0x17a))/0xa*(parseInt(_0x44c5a8(0x178))/0xb)+parseInt(_0x44c5a8(0x17c))/0xc*(parseInt(_0x44c5a8(0x179))/0xd);if(_0x500c6e===_0x37ed9b)break;else _0x569dc3['push'](_0x569dc3['shift']());}catch(_0x15670f){_0x569dc3['push'](_0x569dc3['shift']());}}}(a163_0x43c1,0x5d37d));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a163_0x1e7289}from'@lovrabet/cli-framework';export function buildAllFlags(_0x611b36){return a163_0x1e7289(_0x611b36,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a164_0x30d49d=a164_0x453f;function a164_0x3730(){const _0x5acd86=['991206HsrZUP','557588OiAudP','219324ejLArC','validateFlags','52300oKJFFs','2UufIQd','776690AOpLXN','666mCqdvD','199904NTuDrO','14svpxqT','658328enMNml'];a164_0x3730=function(){return _0x5acd86;};return a164_0x3730();}(function(_0xde8610,_0x5c81d0){const _0x8c2d96=a164_0x453f,_0x1efac1=_0xde8610();while(!![]){try{const _0x3237bf=parseInt(_0x8c2d96(0x1e9))/0x1*(-parseInt(_0x8c2d96(0x1e6))/0x2)+parseInt(_0x8c2d96(0x1ee))/0x3+parseInt(_0x8c2d96(0x1ed))/0x4+parseInt(_0x8c2d96(0x1e7))/0x5+parseInt(_0x8c2d96(0x1ec))/0x6+parseInt(_0x8c2d96(0x1ea))/0x7*(parseInt(_0x8c2d96(0x1eb))/0x8)+parseInt(_0x8c2d96(0x1e8))/0x9*(-parseInt(_0x8c2d96(0x1e5))/0xa);if(_0x3237bf===_0x5c81d0)break;else _0x1efac1['push'](_0x1efac1['shift']());}catch(_0x45fdf6){_0x1efac1['push'](_0x1efac1['shift']());}}}(a164_0x3730,0x1b06e));import{createFlagHelpers}from'@lovrabet/cli-framework';function a164_0x453f(_0x154310,_0x3fbecf){_0x154310=_0x154310-0x1e5;const _0x3730fb=a164_0x3730();let _0x453f0a=_0x3730fb[_0x154310];return _0x453f0a;}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a164_0x30d49d(0x1ef)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a165_0x542685=a165_0x5d8f;function a165_0x5e43(){const _0x24b5c8=['11134386OOXVWY','10YcLBgc','Requires\x20appcode\x20(set\x20via\x20`','842087dLMjSy','4034868KULnnd','\x20project\x20init`\x20or\x20--appcode).','generateCommandHelp','1887148XHyyYV','201999cltIOk','2xvduiA','5PWxQTP','2671328JfHtWO','6677360ZanhQe','3KzAYDT'];a165_0x5e43=function(){return _0x24b5c8;};return a165_0x5e43();}(function(_0x850f5d,_0x45d9a4){const _0x23ced9=a165_0x5d8f,_0x476050=_0x850f5d();while(!![]){try{const _0x1c38a8=-parseInt(_0x23ced9(0x14b))/0x1*(parseInt(_0x23ced9(0x143))/0x2)+parseInt(_0x23ced9(0x147))/0x3*(parseInt(_0x23ced9(0x141))/0x4)+-parseInt(_0x23ced9(0x144))/0x5*(parseInt(_0x23ced9(0x13e))/0x6)+-parseInt(_0x23ced9(0x142))/0x7+parseInt(_0x23ced9(0x146))/0x8+parseInt(_0x23ced9(0x148))/0x9*(parseInt(_0x23ced9(0x149))/0xa)+-parseInt(_0x23ced9(0x145))/0xb;if(_0x1c38a8===_0x45d9a4)break;else _0x476050['push'](_0x476050['shift']());}catch(_0x5628b6){_0x476050['push'](_0x476050['shift']());}}}(a165_0x5e43,0xb8e5d));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a165_0x5d8f(_0x205b3a,_0x38688c){_0x205b3a=_0x205b3a-0x13e;const _0x5e439c=a165_0x5e43();let _0x5d8f9f=_0x5e439c[_0x205b3a];return _0x5d8f9f;}import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';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':_0x20d854=>serviceGroups['get'](_0x20d854),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a165_0x542685(0x14a)+CLI_BIN_NAME+a165_0x542685(0x13f),'serviceUsageSuffix':'\x20[args]\x20[flags]','includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x1c4fc2){const _0x90fa=a165_0x542685;return generators[_0x90fa(0x140)](_0x1c4fc2);}export const generateServiceHelp=generators['generateServiceHelp'];export const generateFullHelp=generators['generateFullHelp'];
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3ae859,_0x2b508e){var _0x5be389=a166_0x4d08,_0x3c650b=_0x3ae859();while(!![]){try{var _0x4656b3=parseInt(_0x5be389(0x1a2))/0x1+-parseInt(_0x5be389(0x1a0))/0x2+parseInt(_0x5be389(0x1a1))/0x3+-parseInt(_0x5be389(0x1a3))/0x4*(-parseInt(_0x5be389(0x19c))/0x5)+-parseInt(_0x5be389(0x19a))/0x6+parseInt(_0x5be389(0x19e))/0x7*(parseInt(_0x5be389(0x19b))/0x8)+-parseInt(_0x5be389(0x19d))/0x9*(parseInt(_0x5be389(0x19f))/0xa);if(_0x4656b3===_0x2b508e)break;else _0x3c650b['push'](_0x3c650b['shift']());}catch(_0xe182bc){_0x3c650b['push'](_0x3c650b['shift']());}}}(a166_0x4791,0xa07fd));function a166_0x4791(){var _0x46a3a8=['5974591WbNaDB','7470cYHsRc','1961794CWFqWL','1078173rVCUXF','822832vwZKJi','12dwsLIo','2960694sRYGkQ','8erNMSA','1512095UcgxRv','9774GTXWXE'];a166_0x4791=function(){return _0x46a3a8;};return a166_0x4791();}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';function a166_0x4d08(_0x5d9d0f,_0x491a35){_0x5d9d0f=_0x5d9d0f-0x19a;var _0x4791a4=a166_0x4791();var _0x4d08b9=_0x4791a4[_0x5d9d0f];return _0x4d08b9;}export{riskLevelOrder}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x51389a,_0x4d3bda){const _0x523d9a=a167_0x593b,_0x44ea7b=_0x51389a();while(!![]){try{const _0x4dcbf6=parseInt(_0x523d9a(0x155))/0x1*(parseInt(_0x523d9a(0x154))/0x2)+parseInt(_0x523d9a(0x157))/0x3+-parseInt(_0x523d9a(0x150))/0x4+-parseInt(_0x523d9a(0x14f))/0x5+parseInt(_0x523d9a(0x152))/0x6+parseInt(_0x523d9a(0x153))/0x7*(-parseInt(_0x523d9a(0x151))/0x8)+-parseInt(_0x523d9a(0x156))/0x9*(-parseInt(_0x523d9a(0x14e))/0xa);if(_0x4dcbf6===_0x4d3bda)break;else _0x44ea7b['push'](_0x44ea7b['shift']());}catch(_0x59e7e7){_0x44ea7b['push'](_0x44ea7b['shift']());}}}(a167_0x27e3,0x366b4));function a167_0x593b(_0x44bd0f,_0x1127a8){_0x44bd0f=_0x44bd0f-0x14e;const _0x27e354=a167_0x27e3();let _0x593b7c=_0x27e354[_0x44bd0f];return _0x593b7c;}function a167_0x27e3(){const _0x662716=['388132uqLpPT','15824YZrfXJ','1576890LDkKqw','567mdEyeX','22RCVizS','25171RfvulC','747tiJZMz','263901pJhYHZ','25420gMTCyn','1792490egcPxh'];a167_0x27e3=function(){return _0x662716;};return a167_0x27e3();}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x277264,_0x4b4ef7){var _0x43ee55=a168_0xeb68,_0x5f011d=_0x277264();while(!![]){try{var _0x13e9a7=-parseInt(_0x43ee55(0x13c))/0x1*(parseInt(_0x43ee55(0x137))/0x2)+parseInt(_0x43ee55(0x13e))/0x3*(-parseInt(_0x43ee55(0x139))/0x4)+-parseInt(_0x43ee55(0x13d))/0x5*(parseInt(_0x43ee55(0x138))/0x6)+-parseInt(_0x43ee55(0x140))/0x7*(parseInt(_0x43ee55(0x13f))/0x8)+parseInt(_0x43ee55(0x13b))/0x9+parseInt(_0x43ee55(0x13a))/0xa+parseInt(_0x43ee55(0x136))/0xb;if(_0x13e9a7===_0x4b4ef7)break;else _0x5f011d['push'](_0x5f011d['shift']());}catch(_0x590eb7){_0x5f011d['push'](_0x5f011d['shift']());}}}(a168_0x400d,0x461c4));function a168_0xeb68(_0x23c90e,_0x589006){_0x23c90e=_0x23c90e-0x136;var _0x400db6=a168_0x400d();var _0xeb685f=_0x400db6[_0x23c90e];return _0xeb685f;}export{extractList,extractPaging}from'@lovrabet/cli-framework';function a168_0x400d(){var _0x3ccea1=['3380256LnxRbu','244xAYURb','79705XOMQxh','1284897VDoGjp','21880ZUckzh','609IesQaP','8735804hLKCbF','3814rvOzlL','102fuyMxm','4ZgLFaR','5199730AIxpBl'];a168_0x400d=function(){return _0x3ccea1;};return a168_0x400d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x37c75a,_0x45e35d){const _0x5248d5=a169_0x5503,_0x5ee0e6=_0x37c75a();while(!![]){try{const _0x5c3587=-parseInt(_0x5248d5(0x1d3))/0x1*(-parseInt(_0x5248d5(0x1c1))/0x2)+-parseInt(_0x5248d5(0x1c9))/0x3*(parseInt(_0x5248d5(0x1d0))/0x4)+parseInt(_0x5248d5(0x1d5))/0x5+parseInt(_0x5248d5(0x1c2))/0x6+-parseInt(_0x5248d5(0x1c0))/0x7+parseInt(_0x5248d5(0x1cd))/0x8*(parseInt(_0x5248d5(0x1d6))/0x9)+-parseInt(_0x5248d5(0x1c8))/0xa*(parseInt(_0x5248d5(0x1ca))/0xb);if(_0x5c3587===_0x45e35d)break;else _0x5ee0e6['push'](_0x5ee0e6['shift']());}catch(_0x4dc4e7){_0x5ee0e6['push'](_0x5ee0e6['shift']());}}}(a169_0x3776,0xbc9b2));function a169_0x3776(){const _0x1c4462=['3TtfJvK','132TstElj','flags','Unknown\x20alias\x20\x22','20632dprxgL','name','type','353524bMsWPo','string','No\x20api.ts\x20found\x20in\x20','206QGngss','alias','1006135BbPFBf','1611xeKoSc','validation','code','\x20api\x20pull`\x20first.','Available\x20aliases:\x20','850969QfhPdi','9266VVvUKs','7319520GhgYTy','join','map','`\x20requires\x20either\x20--code\x20or\x20--alias.','some','\x22.\x20','1545590FnHCpK'];a169_0x3776=function(){return _0x1c4462;};return a169_0x3776();}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a169_0x5503(_0x1491c3,_0x55201b){_0x1491c3=_0x1491c3-0x1bd;const _0x3776e2=a169_0x3776();let _0x550371=_0x3776e2[_0x1491c3];return _0x550371;}export function resolveAliasToCode(_0x48fc69,_0x4122e0,_0x417ee7,_0x6fb8ca){const _0x3c16d5=a169_0x5503,_0x10e785=_0x48fc69['flags'][_0x3c16d5(0x1c6)](_0x189fad=>_0x189fad[_0x3c16d5(0x1ce)]===_0x3c16d5(0x1bd)&&_0x189fad[_0x3c16d5(0x1cf)]===_0x3c16d5(0x1d1)),_0xe060a1=_0x48fc69[_0x3c16d5(0x1cb)][_0x3c16d5(0x1c6)](_0x328ecd=>_0x328ecd[_0x3c16d5(0x1ce)]===_0x3c16d5(0x1d4)&&_0x328ecd[_0x3c16d5(0x1cf)]===_0x3c16d5(0x1d1));if(!_0x10e785||!_0xe060a1)return;const _0x142a24=_0x4122e0[_0x3c16d5(0x1bd)]?String(_0x4122e0[_0x3c16d5(0x1bd)]):'',_0x1c7bd4=_0x4122e0[_0x3c16d5(0x1d4)]?String(_0x4122e0['alias']):'';if(!_0x142a24&&!_0x1c7bd4)throw CliErrors[_0x3c16d5(0x1d7)]('`'+_0x6fb8ca+_0x3c16d5(0x1c5));if(_0x1c7bd4&&!_0x142a24){const _0x26c625=resolveAlias(_0x417ee7,_0x1c7bd4);if(!_0x26c625){const _0x2b8a80=listAliases(_0x417ee7)[_0x3c16d5(0x1c4)](_0x1cee5b=>_0x1cee5b[_0x3c16d5(0x1d4)]),_0x22a2a6=_0x2b8a80['length']?_0x3c16d5(0x1bf)+_0x2b8a80[_0x3c16d5(0x1c3)](',\x20'):_0x3c16d5(0x1d2)+_0x417ee7+'.\x20Run\x20`'+CLI_BIN_NAME+_0x3c16d5(0x1be);throw CliErrors['validation'](_0x3c16d5(0x1cc)+_0x1c7bd4+_0x3c16d5(0x1c7)+_0x22a2a6);}_0x4122e0[_0x3c16d5(0x1bd)]=_0x26c625;}}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a170_0x31521c=a170_0x321b;(function(_0x31c203,_0xa7e287){const _0x25dd9f=a170_0x321b,_0x29f375=_0x31c203();while(!![]){try{const _0x7f3681=parseInt(_0x25dd9f(0x1c0))/0x1*(-parseInt(_0x25dd9f(0x1cf))/0x2)+-parseInt(_0x25dd9f(0x1c2))/0x3*(-parseInt(_0x25dd9f(0x1b5))/0x4)+-parseInt(_0x25dd9f(0x1d3))/0x5*(-parseInt(_0x25dd9f(0x1be))/0x6)+-parseInt(_0x25dd9f(0x1c5))/0x7+parseInt(_0x25dd9f(0x1ae))/0x8*(parseInt(_0x25dd9f(0x1b8))/0x9)+parseInt(_0x25dd9f(0x1c1))/0xa+-parseInt(_0x25dd9f(0x1ac))/0xb*(parseInt(_0x25dd9f(0x1b1))/0xc);if(_0x7f3681===_0xa7e287)break;else _0x29f375['push'](_0x29f375['shift']());}catch(_0x51b4c5){_0x29f375['push'](_0x29f375['shift']());}}}(a170_0x3890,0x40cac));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';function a170_0x3890(){const _0x54dba6=['resolveAppCode','appcode','command','5kaxdOa','pageSize','configMissing','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','89848PGWpJB','name','8JTRHsI','resolveCookie','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','1092hcsNlu','authRequired','has','format','258052pqahds','cookie','selectedAppName','1645281jndeiA','validation','requiresAppCode','mergedCli','currentApp','apiDir','2159034eojsFv','High-risk\x20operation\x20`','9873MdqxPq','4534950KtOuvl','15tJVWHL','filter','isNonInteractive','1410003pQVBvK','verbose','appCode','Set\x20appcode\x20via\x20`','apps','\x20\x20\x20Continue?\x20[y/N]\x20','service','riskLevel','resolveApiDomain','cancelled','22sRuAVZ'];a170_0x3890=function(){return _0x54dba6;};return a170_0x3890();}function a170_0x321b(_0x573400,_0x431cec){_0x573400=_0x573400-0x1aa;const _0x3890af=a170_0x3890();let _0x321b61=_0x3890af[_0x573400];return _0x321b61;}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 a170_0xfc58bc}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x3debb1,_0x169028,_0x31bd61=[]){const _0x313430=a170_0x321b;return{'rawFlags':_0x169028,'args':_0x31bd61,'resolveAppCode':()=>_0x3debb1[_0x313430(0x1c7)]||_0x169028[_0x313430(0x1d1)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x3debb1[_0x313430(0x1b6)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a170_0xfc58bc(_0x169028),'defaultFormat':_0x3debb1[_0x313430(0x1b4)],'defaultPageSize':_0x3debb1[_0x313430(0x1d4)],'defaultVerbose':_0x3debb1[_0x313430(0x1c6)],'apiDir':_0x3debb1[_0x313430(0x1bd)],'riskLevel':_0x3debb1[_0x313430(0x1cc)],'selectedAppName':_0x3debb1['explicitAppName'],'mergedCli':{'defaultApp':_0x3debb1['defaultApp'],'currentApp':_0x3debb1[_0x313430(0x1bc)],'appCode':_0x3debb1[_0x313430(0x1c7)],'apps':_0x3debb1[_0x313430(0x1c9)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a170_0x31521c(0x1c3)](_0x368fa6=>PIPELINE_FLAG_NAMES[a170_0x31521c(0x1b3)](_0x368fa6[a170_0x31521c(0x1ad)]))['map'](({name:_0x241022,type:_0x54bd88,description:_0xd5e635})=>({'name':_0x241022,'type':_0x54bd88,'description':_0xd5e635})),'formatOutput':formatOutput,'getCommandLabel'(_0x174ba){const _0xcfbe0b=a170_0x31521c;return CLI_BIN_NAME+'\x20'+_0x174ba[_0xcfbe0b(0x1cb)]+'\x20'+_0x174ba[_0xcfbe0b(0x1d2)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x4c3821){return CliErrors['validation'](_0x4c3821);}},async 'prepare'(_0x3289f0,_0x4605e7,_0x370fcf,_0x573f14){const _0x322692=a170_0x31521c,_0x350783=_0x4605e7[_0x322692(0x1bd)]||DEFAULT_API_DIR;resolveAliasToCode(_0x3289f0,_0x370fcf,_0x350783,_0x573f14);let _0xd09ba='';if(_0x3289f0['requiresAuth']!==![]){_0xd09ba=_0x4605e7[_0x322692(0x1af)]();if(!_0xd09ba)throw CliErrors[_0x322692(0x1b2)]();const {setActiveCookie:_0x21fcb9}=await import('../core/api-client.js');_0x21fcb9(_0xd09ba);}const _0x7b7788=_0x4605e7[_0x322692(0x1d0)]()??'';if(_0x3289f0[_0x322692(0x1ba)]!==![]){if(!_0x7b7788)throw CliErrors[_0x322692(0x1aa)](_0x322692(0x1c8)+CLI_BIN_NAME+_0x322692(0x1b0));}return{'defaults':{'booleans':{'verbose':_0x4605e7['defaultVerbose']},'numbers':{'pagesize':_0x4605e7['defaultPageSize']}},'extras':{'appCode':_0x7b7788,'cookie':_0xd09ba,'apiDomain':_0x4605e7[_0x322692(0x1cd)](),'apiDir':_0x350783,'selectedAppName':_0x4605e7[_0x322692(0x1b7)],'mergedCli':_0x4605e7[_0x322692(0x1bb)]}};},async 'confirmHighRisk'({env:_0x2408ac,commandLabel:_0x59dda2}){const _0x46f839=a170_0x31521c;if(_0x2408ac[_0x46f839(0x1c4)])throw CliErrors[_0x46f839(0x1b9)](_0x46f839(0x1bf)+_0x59dda2+_0x46f839(0x1ab));await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x59dda2,_0x46f839(0x1ca)],'createCancelledError':_0x18c1c3=>CliErrors[_0x46f839(0x1ce)](_0x18c1c3)});},async 'finalize'(){const {clearActiveCookie:_0x3de358}=await import('../core/api-client.js');_0x3de358();}};export async function runCommand(_0x31e5df,_0x21401c){await runCommandWithAdapter(_0x31e5df,_0x21401c,runnerAdapter);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3937a3,_0x157115){const _0x1bf410=a171_0x2c82,_0x95f93e=_0x3937a3();while(!![]){try{const _0x1e83e1=-parseInt(_0x1bf410(0xa5))/0x1+parseInt(_0x1bf410(0xa1))/0x2*(-parseInt(_0x1bf410(0x9e))/0x3)+parseInt(_0x1bf410(0xa2))/0x4+-parseInt(_0x1bf410(0x9f))/0x5*(parseInt(_0x1bf410(0xa6))/0x6)+parseInt(_0x1bf410(0x9c))/0x7*(parseInt(_0x1bf410(0xa3))/0x8)+parseInt(_0x1bf410(0xa4))/0x9*(-parseInt(_0x1bf410(0xa0))/0xa)+parseInt(_0x1bf410(0xa7))/0xb;if(_0x1e83e1===_0x157115)break;else _0x95f93e['push'](_0x95f93e['shift']());}catch(_0x35c28b){_0x95f93e['push'](_0x95f93e['shift']());}}}(a171_0x5bed,0x850ff));import{buildSchemaPayload as a171_0x50c5d8}from'@lovrabet/cli-framework';function a171_0x5bed(){const _0x34c644=['537416iRPPHD','8052248KVyAnJ','1963278nNdVqJ','653278yxVVBJ','366pBrnyp','21336700lGhyGH','7Iyqwxd','../commands/registry.js','30aTOImt','52190ocLyxn','30bujVMn','118228kwZrgz'];a171_0x5bed=function(){return _0x34c644;};return a171_0x5bed();}import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a171_0x2c82(_0x4f4994,_0x53d18c){_0x4f4994=_0x4f4994-0x9c;const _0x5bedc6=a171_0x5bed();let _0x2c8215=_0x5bedc6[_0x4f4994];return _0x2c8215;}import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x5c07c2=a171_0x2c82,{serviceRegistry:_0x4cabb0,findDefinition:_0x2c1eca}=await import(_0x5c07c2(0x9d));return a171_0x50c5d8({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x4cabb0,'buildAllFlags':buildAllFlags,'findDefinition':_0x2c1eca});}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2cdc8d,_0x1d13e9){var _0x376246=a172_0x2e8d,_0x12a1e8=_0x2cdc8d();while(!![]){try{var _0x5c2ee8=parseInt(_0x376246(0x1b3))/0x1*(-parseInt(_0x376246(0x1b5))/0x2)+parseInt(_0x376246(0x1bb))/0x3*(-parseInt(_0x376246(0x1b7))/0x4)+parseInt(_0x376246(0x1ba))/0x5+parseInt(_0x376246(0x1b4))/0x6+-parseInt(_0x376246(0x1b6))/0x7+parseInt(_0x376246(0x1bc))/0x8*(parseInt(_0x376246(0x1b9))/0x9)+parseInt(_0x376246(0x1b8))/0xa;if(_0x5c2ee8===_0x1d13e9)break;else _0x12a1e8['push'](_0x12a1e8['shift']());}catch(_0x72749e){_0x12a1e8['push'](_0x12a1e8['shift']());}}}(a172_0x597c,0xafb1b));function a172_0x2e8d(_0x442aac,_0x4965ef){_0x442aac=_0x442aac-0x1b3;var _0x597cf0=a172_0x597c();var _0x2e8deb=_0x597cf0[_0x442aac];return _0x2e8deb;}function a172_0x597c(){var _0x425ee8=['690895DxDucU','1725546KlpVov','11410904gSSrCu','4EnEEwm','7963134NBslxq','578938kzvZRD','7291333gZUmit','4urucyr','6025890OoOIBX','9IRlMmn'];a172_0x597c=function(){return _0x425ee8;};return a172_0x597c();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a173_0x519b98=a173_0x5506;(function(_0x568f95,_0x50505f){const _0x565cb6=a173_0x5506,_0x72610e=_0x568f95();while(!![]){try{const _0x5b9cb1=-parseInt(_0x565cb6(0x98))/0x1*(-parseInt(_0x565cb6(0x94))/0x2)+parseInt(_0x565cb6(0x9a))/0x3*(parseInt(_0x565cb6(0xa0))/0x4)+parseInt(_0x565cb6(0xa1))/0x5+-parseInt(_0x565cb6(0x97))/0x6+-parseInt(_0x565cb6(0x9b))/0x7*(-parseInt(_0x565cb6(0x9d))/0x8)+-parseInt(_0x565cb6(0x9c))/0x9*(-parseInt(_0x565cb6(0x99))/0xa)+-parseInt(_0x565cb6(0x9e))/0xb;if(_0x5b9cb1===_0x50505f)break;else _0x72610e['push'](_0x72610e['shift']());}catch(_0x37025f){_0x72610e['push'](_0x72610e['shift']());}}}(a173_0x387e,0x60d67));function a173_0x5506(_0x2494db,_0x30a020){_0x2494db=_0x2494db-0x94;const _0x387e06=a173_0x387e();let _0x55060a=_0x387e06[_0x2494db];return _0x55060a;}export const VERSION=a173_0x519b98(0x95);export const GIT_TAG='v2.1.14-beta.2';export const GIT_COMMIT=a173_0x519b98(0x9f);function a173_0x387e(){const _0x227664=['2.1.14-beta.3','2026-06-10T05:52:11.876Z','2067744CaOTxG','184282pLNbWt','548480PqaJgk','3RBVbbA','56rmjFuu','54KfgaoB','244792Dyuulg','16407512JXPTgt','544bc05','2148728mRGqqX','2844775brPCeW','6SiPrYD'];a173_0x387e=function(){return _0x227664;};return a173_0x387e();}export const BUILD_TIME=a173_0x519b98(0x96);
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a174_0x49c4(){var _0x3c265d=['9XtkCUk','\x20--help','10HVNtDi','2584085ziUcSw','599244fvVfyS','3CSiKux','bold','2137384LCqkRj','384346TsPKKw','214160uenuWC','5786100chjQPR','\x20to\x20view\x20available\x20commands.','log','977490aLsWft'];a174_0x49c4=function(){return _0x3c265d;};return a174_0x49c4();}function a174_0xac13(_0x1a358a,_0x290dac){_0x1a358a=_0x1a358a-0xc3;var _0x49c497=a174_0x49c4();var _0xac1395=_0x49c497[_0x1a358a];return _0xac1395;}(function(_0x5428a8,_0xe77e99){var _0x2f2c07=a174_0xac13,_0x564e20=_0x5428a8();while(!![]){try{var _0x2257bf=parseInt(_0x2f2c07(0xc7))/0x1+-parseInt(_0x2f2c07(0xc6))/0x2*(parseInt(_0x2f2c07(0xc3))/0x3)+-parseInt(_0x2f2c07(0xd0))/0x4+-parseInt(_0x2f2c07(0xce))/0x5*(parseInt(_0x2f2c07(0xcb))/0x6)+parseInt(_0x2f2c07(0xcf))/0x7+-parseInt(_0x2f2c07(0xc5))/0x8*(parseInt(_0x2f2c07(0xcc))/0x9)+parseInt(_0x2f2c07(0xc8))/0xa;if(_0x2257bf===_0xe77e99)break;else _0x564e20['push'](_0x564e20['shift']());}catch(_0x51be28){_0x564e20['push'](_0x564e20['shift']());}}}(a174_0x49c4,0x3767a));import a174_0xf555ed from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x4751ff=a174_0xac13;console[_0x4751ff(0xca)](),console[_0x4751ff(0xca)](a174_0xf555ed['green'][_0x4751ff(0xc4)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x4751ff(0xca)](),console['log']('\x20\x20Use\x20'+a174_0xf555ed['green'][_0x4751ff(0xc4)](CLI_BIN_NAME+_0x4751ff(0xcd))+_0x4751ff(0xc9)),console['log']();}
|
package/lib/skills/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x37411d,_0x3094a7){const _0x1cdc54=a175_0x3cdf,_0x551ead=_0x37411d();while(!![]){try{const _0xf6f825=parseInt(_0x1cdc54(0x118))/0x1+-parseInt(_0x1cdc54(0x133))/0x2+parseInt(_0x1cdc54(0x115))/0x3*(parseInt(_0x1cdc54(0x120))/0x4)+parseInt(_0x1cdc54(0x10d))/0x5+-parseInt(_0x1cdc54(0x129))/0x6+-parseInt(_0x1cdc54(0x11f))/0x7*(-parseInt(_0x1cdc54(0x11e))/0x8)+-parseInt(_0x1cdc54(0x125))/0x9*(-parseInt(_0x1cdc54(0x12a))/0xa);if(_0xf6f825===_0x3094a7)break;else _0x551ead['push'](_0x551ead['shift']());}catch(_0x4f07ed){_0x551ead['push'](_0x551ead['shift']());}}}(a175_0x3555,0x1de32));function a175_0x3cdf(_0xf66966,_0x1a5cc4){_0xf66966=_0xf66966-0x10d;const _0x35553c=a175_0x3555();let _0x3cdf81=_0x35553c[_0xf66966];return _0x3cdf81;}import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a175_0x3555(){const _0xc874e7=['30qAqNzZ','slice','argv','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','--help','\x0aAvailable\x20commands:','exit','length','Error:\x20Unsupported\x20command:\x20','219530yfDEey','530180mDEfyM','setLogPath','log','help','(empty)','Equivalent\x20command:\x20','replace','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','29553xVEOqW','toLowerCase','entries','76912OuosbF','push','error','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','has','dangerously-bff-save','296pbMblR','43274RFCTOX','12nVvNzA','\x20skill\x20--help\x0a\x20\x20','add','from','startsWith','2115kJQRkI','includes','cwd','skill','1258542jHjpCC'];a175_0x3555=function(){return _0xc874e7;};return a175_0x3555();}import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x2ca409){const _0x2d9a6c=a175_0x3cdf,_0x4e486e=[];for(const [_0x4150eb,_0x498e0f]of Object[_0x2d9a6c(0x117)](_0x2ca409)){if(_0x498e0f===!![]){const _0x9facdd=_0x4150eb[_0x2d9a6c(0x113)](/([A-Z])/g,'-$1')[_0x2d9a6c(0x116)]();_0x4e486e[_0x2d9a6c(0x119)](_0x9facdd);}}return _0x4e486e;}export function parseDynamicFlags(){const _0x1d3982=a175_0x3cdf,_0x457730=[];for(let _0x13f36a=0x3;_0x13f36a<process[_0x1d3982(0x12c)][_0x1d3982(0x131)];_0x13f36a++){const _0x490134=process[_0x1d3982(0x12c)][_0x13f36a];if(_0x490134&&_0x490134[_0x1d3982(0x124)]('--')){const _0x15f830=_0x490134[_0x1d3982(0x12b)](0x2);_0x15f830&&!_0x15f830[_0x1d3982(0x126)]('=')&&_0x457730[_0x1d3982(0x119)](_0x15f830);}}return _0x457730;}export function getAllProvidedFlags(_0x460b98){const _0x141f3c=a175_0x3cdf,_0x745c2a=camelCaseFlagsToKebab(_0x460b98),_0xa28d4f=parseDynamicFlags(),_0xe5fa6f=new Set([..._0x745c2a,..._0xa28d4f]);return Array[_0x141f3c(0x123)](_0xe5fa6f);}export function normalizeLegacyBffSaveFlags(_0x2385a9){const _0x3cf15e=a175_0x3cdf,_0x6444cc=new Set(_0x2385a9);return _0x6444cc[_0x3cf15e(0x11c)](_0x3cf15e(0x11d))&&_0x6444cc[_0x3cf15e(0x122)]('enable-bff-save'),Array[_0x3cf15e(0x123)](_0x6444cc);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x118d64,_0x4af937,_0x2217cf){const _0x48e286=a175_0x3cdf;logger[_0x48e286(0x10e)](process[_0x48e286(0x127)]());if(_0x2217cf?.[_0x48e286(0x110)]||_0x118d64===_0x48e286(0x12e)){showHelp();return;}console[_0x48e286(0x11a)](_0x48e286(0x132)+(_0x118d64||_0x48e286(0x111))),console[_0x48e286(0x10f)](_0x48e286(0x12f)),console['log']('\x20\x20'+CLI_BIN_NAME+_0x48e286(0x11b)),console[_0x48e286(0x10f)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a'),console[_0x48e286(0x10f)](''),console[_0x48e286(0x10f)](_0x48e286(0x112)+SKILLS_INSTALL_COMMAND_LINE),logger['error'](_0x48e286(0x128),'不支持的命令:\x20'+_0x118d64),process[_0x48e286(0x130)](0x1);}function showHelp(){const _0x4312a5=a175_0x3cdf;console[_0x4312a5(0x10f)](_0x4312a5(0x114)+CLI_BIN_NAME+_0x4312a5(0x121)+CLI_BIN_NAME+_0x4312a5(0x12d)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a176_0x5ea3(_0x3d3373,_0x56df51){_0x3d3373=_0x3d3373-0xc9;const _0xde43b0=a176_0xde43();let _0x5ea391=_0xde43b0[_0x3d3373];return _0x5ea391;}const a176_0x480ba7=a176_0x5ea3;(function(_0x4510b2,_0x49f18d){const _0x1e0882=a176_0x5ea3,_0x550951=_0x4510b2();while(!![]){try{const _0x145d36=-parseInt(_0x1e0882(0xd0))/0x1*(-parseInt(_0x1e0882(0xd1))/0x2)+parseInt(_0x1e0882(0xd3))/0x3+parseInt(_0x1e0882(0xd6))/0x4*(parseInt(_0x1e0882(0xd9))/0x5)+parseInt(_0x1e0882(0xd4))/0x6*(parseInt(_0x1e0882(0xde))/0x7)+-parseInt(_0x1e0882(0xd8))/0x8+-parseInt(_0x1e0882(0xe3))/0x9+-parseInt(_0x1e0882(0xd5))/0xa;if(_0x145d36===_0x49f18d)break;else _0x550951['push'](_0x550951['shift']());}catch(_0x1b71c6){_0x550951['push'](_0x550951['shift']());}}}(a176_0xde43,0x54134));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a176_0x480ba7(0xe0);export const NPX_SKILLS_SUBCOMMAND_ADD=a176_0x480ba7(0xe5);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';function a176_0xde43(){const _0x123c1c=['1gPndYm','1252684fGyvIO','inherit','1987950oriqrQ','2892hQwkmj','1410900FrCQRA','4UZRSNX','log','5338136jTHSdf','673760VHyJlJ','remove','unknown','push','skill','5495XjRMHG','stdio','skills','stderr','stdout','5844465xcCPDt','npx','add','join','yes','status','toString','exit\x20','pipe','trim'];a176_0xde43=function(){return _0x123c1c;};return a176_0xde43();}export const LEGACY_RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';export function buildNpxSkillsAddArgv(_0x13a771){const _0x1da423=a176_0x480ba7,_0x21ecdb=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x13a771&&_0x21ecdb[_0x1da423(0xdc)](NPX_SKILLS_FLAG_SKILL,_0x13a771),_0x21ecdb;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a176_0x480ba7(0xe4),...buildNpxSkillsAddArgv()][a176_0x480ba7(0xc9)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a176_0x480ba7(0xe4),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a176_0x480ba7(0xc9)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x141d02,_0x35247a){const _0x1d5084=a176_0x480ba7;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x129ece=_0x35247a?.[_0x1d5084(0xdf)]??_0x1d5084(0xd2),_0x48454b=resolveNpmBin('npx'),_0x3a6b61=buildNpxSkillsAddArgv(_0x35247a?.[_0x1d5084(0xdd)]),_0x357074=['npx',..._0x3a6b61]['join']('\x20');console[_0x1d5084(0xd7)]('*\x20'+_0x357074);const _0x1a17e3=spawnSync(_0x48454b,_0x3a6b61,{'cwd':_0x141d02,'stdio':_0x129ece,'env':process.env,'shell':![]}),_0x4beff0=_0x1a17e3[_0x1d5084(0xcb)];if(_0x4beff0===0x0)return{'ok':!![],'status':0x0};let _0x160df7=_0x1d5084(0xcd)+(_0x4beff0??_0x1d5084(0xdb));if(_0x129ece==='pipe'){const _0x509bc5=_0x1a17e3['stderr']?_0x1a17e3[_0x1d5084(0xe1)]['toString']()[_0x1d5084(0xcf)]():'',_0x4c939b=_0x1a17e3[_0x1d5084(0xe2)]?_0x1a17e3[_0x1d5084(0xe2)][_0x1d5084(0xcc)]()[_0x1d5084(0xcf)]():'';if(_0x509bc5)_0x160df7=_0x509bc5;else{if(_0x4c939b)_0x160df7=_0x4c939b;}}return{'ok':![],'status':_0x4beff0??null,'error':_0x160df7};}export function runNpxSkillsRemove(_0x4cc2ff,_0x3217f2,_0x55b45e=LEGACY_RABETBASE_SKILL_SOURCE){const _0x23e46a=a176_0x480ba7;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x22b613=_0x3217f2?.[_0x23e46a(0xdf)]??_0x23e46a(0xd2),_0x53f679=resolveNpmBin(_0x23e46a(0xe4)),_0x474700=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x23e46a(0xda),_0x55b45e,NPX_SKILLS_FLAG_SKILL,_0x3217f2?.[_0x23e46a(0xdd)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x3217f2?.[_0x23e46a(0xca)]?['-y']:[]],_0x214ba5=[_0x53f679,..._0x474700][_0x23e46a(0xc9)]('\x20');console[_0x23e46a(0xd7)]('*\x20'+_0x214ba5);const _0xc08456=spawnSync(_0x53f679,_0x474700,{'cwd':_0x4cc2ff,'stdio':_0x22b613,'env':process.env,'shell':![]}),_0x4f9b72=_0xc08456[_0x23e46a(0xcb)];if(_0x4f9b72===0x0)return{'ok':!![],'status':0x0};let _0x29018d=_0x23e46a(0xcd)+(_0x4f9b72??_0x23e46a(0xdb));if(_0x22b613===_0x23e46a(0xce)){const _0x18866e=_0xc08456['stderr']?_0xc08456[_0x23e46a(0xe1)][_0x23e46a(0xcc)]()[_0x23e46a(0xcf)]():'',_0x465871=_0xc08456[_0x23e46a(0xe2)]?_0xc08456[_0x23e46a(0xe2)]['toString']()['trim']():'';if(_0x18866e)_0x29018d=_0x18866e;else{if(_0x465871)_0x29018d=_0x465871;}}return{'ok':![],'status':_0x4f9b72??null,'error':_0x29018d};}export function runNpxSkillsAddGlobal(_0x5c0c0d,_0x5658ca,_0x4b6c66){const _0x4847ce=a176_0x480ba7;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5a33fd=_0x4b6c66?.[_0x4847ce(0xdf)]??'inherit',_0x45ccc2=resolveNpmBin(_0x4847ce(0xe4)),_0x1fda1a=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x5658ca,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x33c7f0=[_0x4847ce(0xe4),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x5658ca,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x4847ce(0xc9)]('\x20');console[_0x4847ce(0xd7)]('*\x20'+_0x33c7f0);const _0x579a95=spawnSync(_0x45ccc2,_0x1fda1a,{'cwd':_0x5c0c0d,'stdio':_0x5a33fd,'env':process.env,'shell':![]}),_0x57e45e=_0x579a95[_0x4847ce(0xcb)];if(_0x57e45e===0x0)return{'ok':!![],'status':0x0};let _0x90d538=_0x4847ce(0xcd)+(_0x57e45e??'unknown');if(_0x5a33fd===_0x4847ce(0xce)){const _0x578657=_0x579a95[_0x4847ce(0xe1)]?_0x579a95[_0x4847ce(0xe1)][_0x4847ce(0xcc)]()[_0x4847ce(0xcf)]():'',_0x10c429=_0x579a95[_0x4847ce(0xe2)]?_0x579a95[_0x4847ce(0xe2)][_0x4847ce(0xcc)]()[_0x4847ce(0xcf)]():'';if(_0x578657)_0x90d538=_0x578657;else{if(_0x10c429)_0x90d538=_0x10c429;}}return{'ok':![],'status':_0x57e45e??null,'error':_0x90d538};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x642ce0,_0x59a9d7){const _0x587f47=a177_0x1797,_0x424c55=_0x642ce0();while(!![]){try{const _0x5a39e6=parseInt(_0x587f47(0x1fa))/0x1*(parseInt(_0x587f47(0x1fc))/0x2)+parseInt(_0x587f47(0x1f7))/0x3+parseInt(_0x587f47(0x1f3))/0x4*(-parseInt(_0x587f47(0x1fd))/0x5)+parseInt(_0x587f47(0x204))/0x6*(-parseInt(_0x587f47(0x201))/0x7)+-parseInt(_0x587f47(0x205))/0x8*(parseInt(_0x587f47(0x1f5))/0x9)+-parseInt(_0x587f47(0x1f9))/0xa+parseInt(_0x587f47(0x202))/0xb*(parseInt(_0x587f47(0x1f6))/0xc);if(_0x5a39e6===_0x59a9d7)break;else _0x424c55['push'](_0x424c55['shift']());}catch(_0x4a09e6){_0x424c55['push'](_0x424c55['shift']());}}}(a177_0xc75a,0x4487a));function a177_0x1797(_0x22ddda,_0x2db2cf){_0x22ddda=_0x22ddda-0x1f2;const _0xc75a71=a177_0xc75a();let _0x1797f1=_0xc75a71[_0x22ddda];return _0x1797f1;}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(_0x1a6c40){const _0x839eaa=a177_0x1797;return SENSITIVE_PATTERNS[_0x839eaa(0x1f8)](_0x1b2426=>_0x1b2426['test'](_0x1a6c40));}function sanitizeFlags(_0x3c13bf){const _0x438f76=a177_0x1797,_0x17ecbf={};for(const [_0x5ec3ad,_0x48364a]of Object[_0x438f76(0x200)](_0x3c13bf)){isSensitiveKey(_0x5ec3ad)?_0x17ecbf[_0x5ec3ad]=_0x48364a!=null&&_0x48364a!==''?_0x438f76(0x207):_0x48364a:_0x17ecbf[_0x5ec3ad]=_0x48364a;}return _0x17ecbf;}function a177_0xc75a(){const _0x5844c8=['1286610MlmCuO','4377928KQAkGJ','flags','[REDACTED]','command','error','3356JJGcze','message','9XCbBCy','198732qsbIVm','895305rNPdgs','some','2189800QQCthN','3593lKagDZ','durationMs','146BFSyBS','1845RYTIvt','stringify','rabetbase.command','entries','7RuWUuB','671HHsQtj','service'];a177_0xc75a=function(){return _0x5844c8;};return a177_0xc75a();}export async function reportCommandTrace(_0x1b85f3){const _0x30776d=a177_0x1797;try{const _0x3ce96e=sanitizeFlags(_0x1b85f3[_0x30776d(0x206)]);await sendCliTraceLog({'spanName':_0x30776d(0x1ff),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x1b85f3[_0x30776d(0x203)],'command.name':_0x1b85f3[_0x30776d(0x208)],'command.flags':JSON[_0x30776d(0x1fe)](_0x3ce96e),..._0x1b85f3[_0x30776d(0x1fb)]!=null?{'command.duration_ms':_0x1b85f3[_0x30776d(0x1fb)]}:{},..._0x1b85f3[_0x30776d(0x1f2)]?{'command.error':_0x1b85f3[_0x30776d(0x1f2)]instanceof Error?_0x1b85f3['error'][_0x30776d(0x1f4)]:String(_0x1b85f3[_0x30776d(0x1f2)])}:{}}});}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a178_0xa913(){var _0x212cbc=['5DPYYpL','1106562BeucGX','4360734dMpxCU','500264YSyNDu','cli.help','2882453rMdnfu','error','238794geiGpf','421505rBOLmv','8AivNcN','service','730548XQZOut','20dJtVfi','Failed\x20to\x20report\x20CLI\x20help\x20trace:','28cQlzTw','154TzUZzu'];a178_0xa913=function(){return _0x212cbc;};return a178_0xa913();}function a178_0x2a4d(_0x5866a7,_0x25aae2){_0x5866a7=_0x5866a7-0x117;var _0xa9131=a178_0xa913();var _0x2a4d6e=_0xa9131[_0x5866a7];return _0x2a4d6e;}(function(_0x867222,_0x31206e){var _0x3e142b=a178_0x2a4d,_0x2914a3=_0x867222();while(!![]){try{var _0x4d1306=parseInt(_0x3e142b(0x11a))/0x1+parseInt(_0x3e142b(0x125))/0x2+-parseInt(_0x3e142b(0x119))/0x3*(-parseInt(_0x3e142b(0x120))/0x4)+-parseInt(_0x3e142b(0x122))/0x5*(parseInt(_0x3e142b(0x123))/0x6)+-parseInt(_0x3e142b(0x117))/0x7*(parseInt(_0x3e142b(0x11b))/0x8)+-parseInt(_0x3e142b(0x124))/0x9*(parseInt(_0x3e142b(0x11e))/0xa)+parseInt(_0x3e142b(0x121))/0xb*(parseInt(_0x3e142b(0x11d))/0xc);if(_0x4d1306===_0x31206e)break;else _0x2914a3['push'](_0x2914a3['shift']());}catch(_0x5579e9){_0x2914a3['push'](_0x2914a3['shift']());}}}(a178_0xa913,0x7df1f));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x2ec7e1,_0x29cc7f){var _0x2e3497=a178_0x2a4d;try{await sendCliTraceLog({'spanName':_0x2e3497(0x126),'logData':{'rabetbase.help.kind':_0x2ec7e1,..._0x29cc7f?.[_0x2e3497(0x11c)]&&{'rabetbase.help.service':_0x29cc7f[_0x2e3497(0x11c)]}}});}catch(_0x4b15d7){console[_0x2e3497(0x118)](_0x2e3497(0x11f),_0x4b15d7);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x6b6a27,_0x3aefcf){const _0x21b135=a179_0x72f9,_0x57234b=_0x6b6a27();while(!![]){try{const _0x5e39de=parseInt(_0x21b135(0x10b))/0x1*(parseInt(_0x21b135(0x105))/0x2)+-parseInt(_0x21b135(0x109))/0x3*(-parseInt(_0x21b135(0x102))/0x4)+-parseInt(_0x21b135(0x104))/0x5+parseInt(_0x21b135(0x100))/0x6+parseInt(_0x21b135(0x101))/0x7+parseInt(_0x21b135(0x107))/0x8*(parseInt(_0x21b135(0x10c))/0x9)+-parseInt(_0x21b135(0xff))/0xa;if(_0x5e39de===_0x3aefcf)break;else _0x57234b['push'](_0x57234b['shift']());}catch(_0x564240){_0x57234b['push'](_0x57234b['shift']());}}}(a179_0x33b5,0x76ee0));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a179_0x72f9(_0x35e86f,_0x29b0f9){_0x35e86f=_0x35e86f-0xff;const _0x33b56b=a179_0x33b5();let _0x72f931=_0x33b56b[_0x35e86f];return _0x72f931;}import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a179_0x33b5(){const _0x4a20c1=['production','7726552IsQImD','tenant_code','1183344sqQfTW','unknown','38VRpChg','9qVVkkB','23084380RFYKga','3806514xujEwJ','3745581iJVRQt','8YDGFFL','email','1968845dqRfGv','13954EkXfQS'];a179_0x33b5=function(){return _0x4a20c1;};return a179_0x33b5();}import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x3282e8=a179_0x72f9,_0x1d8f08=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x510cb7=_0x1d8f08?.['user'];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x3282e8(0x10a)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?'daily':_0x3282e8(0x106))}),setUserContext({'id':_0x510cb7?.['id'],'username':_0x510cb7?.['username'],'nickname':_0x510cb7?.['nickname'],'email':_0x510cb7?.[_0x3282e8(0x103)],'tenantCode':_0x510cb7?.['tenant'][_0x3282e8(0x108)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x1d8f08;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3e3cc6,_0x107774){const _0x4c6c4d=a180_0x1d66,_0x3d5df1=_0x3e3cc6();while(!![]){try{const _0x289a69=parseInt(_0x4c6c4d(0x71))/0x1*(-parseInt(_0x4c6c4d(0x73))/0x2)+parseInt(_0x4c6c4d(0x72))/0x3+parseInt(_0x4c6c4d(0x70))/0x4+-parseInt(_0x4c6c4d(0x69))/0x5+parseInt(_0x4c6c4d(0x6d))/0x6+parseInt(_0x4c6c4d(0x6a))/0x7*(-parseInt(_0x4c6c4d(0x6f))/0x8)+parseInt(_0x4c6c4d(0x6c))/0x9*(parseInt(_0x4c6c4d(0x67))/0xa);if(_0x289a69===_0x107774)break;else _0x3d5df1['push'](_0x3d5df1['shift']());}catch(_0x1adfe7){_0x3d5df1['push'](_0x3d5df1['shift']());}}}(a180_0x4522,0x85a41));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a180_0x1d66(_0x4b3368,_0x785ad5){_0x4b3368=_0x4b3368-0x67;const _0x4522b9=a180_0x4522();let _0x1d663d=_0x4522b9[_0x4b3368];return _0x1d663d;}function a180_0x4522(){const _0x25f45f=['325832ubgpgu','40goCJOD','once','4628625MkDZih','3567221miauno','SIGINT','2519253KeEcVX','2235120MPSWkh','exit','8efGnmr','1012608SnCDxf','1WijkLN','1200891fWWFGm'];a180_0x4522=function(){return _0x25f45f;};return a180_0x4522();}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x5660f9=a180_0x1d66;process[_0x5660f9(0x68)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0xc82324=()=>{const _0x3011e3=_0x5660f9;void flushOtelNodeIfUsed()['then'](()=>process[_0x3011e3(0x6e)](0x0));};process[_0x5660f9(0x68)](_0x5660f9(0x6b),_0xc82324),process[_0x5660f9(0x68)]('SIGTERM',_0xc82324);}export async function exitWithOtelShutdown(_0x57ff90){await flushOtelNodeIfUsed(),process['exit'](_0x57ff90);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a181_0x1c2480=a181_0x56b5;function a181_0x56b5(_0x1bcaf2,_0xf84ec3){_0x1bcaf2=_0x1bcaf2-0x188;const _0x2e13fb=a181_0x2e13();let _0x56b5ea=_0x2e13fb[_0x1bcaf2];return _0x56b5ea;}(function(_0xf9ada2,_0x2244ae){const _0xbd50a2=a181_0x56b5,_0x376a53=_0xf9ada2();while(!![]){try{const _0x381aab=-parseInt(_0xbd50a2(0x18c))/0x1+parseInt(_0xbd50a2(0x18b))/0x2+parseInt(_0xbd50a2(0x195))/0x3*(parseInt(_0xbd50a2(0x194))/0x4)+-parseInt(_0xbd50a2(0x18d))/0x5*(-parseInt(_0xbd50a2(0x191))/0x6)+-parseInt(_0xbd50a2(0x18e))/0x7+parseInt(_0xbd50a2(0x196))/0x8*(parseInt(_0xbd50a2(0x18f))/0x9)+parseInt(_0xbd50a2(0x197))/0xa*(-parseInt(_0xbd50a2(0x192))/0xb);if(_0x381aab===_0x2244ae)break;else _0x376a53['push'](_0x376a53['shift']());}catch(_0x26c19){_0x376a53['push'](_0x376a53['shift']());}}}(a181_0x2e13,0xc6c26));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a181_0x1c2480(0x190);function a181_0x2e13(){const _0x16fda1=['traceparent','16INhZlZ','762897Omfgha','8264UZAbye','10agMxdt','logData','version','traceName','2704916xfKESs','1057784EtrZYD','5XwZjAL','2904104rdorGG','1656zFGxLO','rabetbase-cli','6524484gDCuZC','14964026DxFbrz'];a181_0x2e13=function(){return _0x16fda1;};return a181_0x2e13();}export async function sendCliTraceLog(_0x252e5c){const _0x23fc69=a181_0x1c2480;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x252e5c[_0x23fc69(0x18a)]??DEFAULT_TRACE_NAME,'version':_0x252e5c[_0x23fc69(0x189)]??getCliVersion(),'spanName':_0x252e5c['spanName'],'eventType':'manual','logData':_0x252e5c[_0x23fc69(0x188)],..._0x252e5c[_0x23fc69(0x193)]&&{'traceparent':_0x252e5c[_0x23fc69(0x193)]}});}
|