@lovrabet/rabetbase-cli 2.2.1-beta.1 → 2.2.1-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/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/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.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/relation-audit.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/update-notice.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(_0x1697e3,_0x528f6e){const _0x56a5e5=a157_0x4b85,_0x326493=_0x1697e3();while(!![]){try{const _0xb34a24=parseInt(_0x56a5e5(0x8d))/0x1*(-parseInt(_0x56a5e5(0x8e))/0x2)+parseInt(_0x56a5e5(0x76))/0x3*(parseInt(_0x56a5e5(0x75))/0x4)+-parseInt(_0x56a5e5(0x8f))/0x5*(-parseInt(_0x56a5e5(0x8a))/0x6)+parseInt(_0x56a5e5(0x74))/0x7+-parseInt(_0x56a5e5(0x73))/0x8*(-parseInt(_0x56a5e5(0x79))/0x9)+-parseInt(_0x56a5e5(0x92))/0xa*(parseInt(_0x56a5e5(0x7d))/0xb)+parseInt(_0x56a5e5(0x81))/0xc*(-parseInt(_0x56a5e5(0x82))/0xd);if(_0xb34a24===_0x528f6e)break;else _0x326493['push'](_0x326493['shift']());}catch(_0x6e504e){_0x326493['push'](_0x326493['shift']());}}}(a157_0x3e28,0x84519));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function a157_0x3e28(){const _0x471bef=['sqlRootDir','15109zJZsbX','88YOizyB','935695zYQOol','push','code','5817970WzmYxV','sqlCode','path','indexOf','8hXruiA','6531315iriFWs','1341004EudOJT','6qQHECW','toLowerCase','mybatisXml','7964199MPUPnV','name','isFile','test','11Jgqqnn','ENOENT','dbName','mode','19626996FiubOA','13tLkyRX','.xml','length','.sql','filter','sqlName','slice','isDirectory','30EDKgWm','split'];a157_0x3e28=function(){return _0x471bef;};return a157_0x3e28();}function extensionToMode(_0x2dfda7){const _0x175726=a157_0x4b85;if(_0x2dfda7===_0x175726(0x85))return'sql';if(_0x2dfda7===_0x175726(0x83))return _0x175726(0x78);return undefined;}async function scanSqlFilesRecursively(_0x206818,_0x2bd311){const _0x170b89=a157_0x4b85,_0x5e8738=[];try{const _0xcfa1b1=await readdir(_0x206818,{'withFileTypes':!![]});for(const _0x4cc87b of _0xcfa1b1){const _0x13ec1f=join(_0x206818,_0x4cc87b[_0x170b89(0x7a)]);if(_0x4cc87b[_0x170b89(0x89)]()){_0x5e8738[_0x170b89(0x90)](...await scanSqlFilesRecursively(_0x13ec1f,_0x2bd311));continue;}if(!_0x4cc87b[_0x170b89(0x7b)]())continue;const _0x269685=extname(_0x4cc87b['name'])[_0x170b89(0x77)](),_0x129cac=extensionToMode(_0x269685);if(!_0x129cac)continue;const _0x41b5b5=relative(_0x2bd311,_0x13ec1f)['replace'](/\\/g,'/'),_0x18b60b=_0x41b5b5[_0x170b89(0x8b)]('/')[_0x170b89(0x86)](Boolean),_0x42ec44=parseSqlPath(_0x18b60b,_0x4cc87b[_0x170b89(0x7a)],_0x269685);if(!_0x42ec44)continue;_0x5e8738[_0x170b89(0x90)]({'sqlCode':_0x42ec44['sqlCode'],'sqlName':_0x42ec44[_0x170b89(0x87)],'dbDirectory':_0x18b60b[0x0],'filePath':_0x13ec1f,'relativePath':_0x41b5b5,'lockKey':_0x42ec44[_0x170b89(0x93)],'mode':_0x129cac});}}catch(_0x212363){if(_0x212363[_0x170b89(0x91)]!==_0x170b89(0x7e))throw _0x212363;}return _0x5e8738;}export async function scanLocalSqlQueries(_0xbf81ec){const _0x4d2c73=a157_0x4b85;return scanSqlFilesRecursively(_0xbf81ec[_0x4d2c73(0x8c)],_0xbf81ec[_0x4d2c73(0x8c)]);}export function resolveLocalSqlFilePath(_0x4ce011,_0x6c1ae4,_0x367507){const _0x5ae465=a157_0x4b85,_0x2c9883=_0x367507?.[_0x5ae465(0x94)]||(_0x367507?.[_0x5ae465(0x87)]||_0x367507?.[_0x5ae465(0x7f)]?buildSqlRelativePath(_0x6c1ae4,_0x367507?.[_0x5ae465(0x87)],_0x367507?.[_0x5ae465(0x7f)],_0x367507?.[_0x5ae465(0x80)]||'sql',_0x367507?.['dbId']):buildDefaultSqlFileName(_0x6c1ae4,_0x367507?.[_0x5ae465(0x80)]||'sql'));return join(_0x4ce011[_0x5ae465(0x8c)],_0x2c9883);}export async function directoryExists(_0x45d3f5){const _0x18ec3c=a157_0x4b85;try{const _0x1e288a=await stat(_0x45d3f5);return _0x1e288a[_0x18ec3c(0x89)]();}catch{return![];}}function a157_0x4b85(_0xa6d9db,_0x192924){_0xa6d9db=_0xa6d9db-0x73;const _0x3e289b=a157_0x3e28();let _0x4b8516=_0x3e289b[_0xa6d9db];return _0x4b8516;}function parseSqlPath(_0xc86ca5,_0x2b25b1,_0x52d856){const _0x3ac872=a157_0x4b85,_0x48d30f=_0x2b25b1[_0x3ac872(0x88)](0x0,-_0x52d856['length']);if(_0xc86ca5['length']<0x2)return null;const _0x159498=_0x48d30f[_0x3ac872(0x95)]('_');if(_0x159498<=0x0||_0x159498>=_0x48d30f[_0x3ac872(0x84)]-0x1)return null;const _0x421154=_0x48d30f['slice'](0x0,_0x159498);if(!isLikelySqlCode(_0x421154))return null;return{'sqlCode':_0x421154,'sqlName':_0x48d30f[_0x3ac872(0x88)](_0x159498+0x1)};}function isLikelySqlCode(_0x309a97){const _0x3a775f=a157_0x4b85;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x3a775f(0x7c)](_0x309a97);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x43a009,_0xd7f15f){const _0xaa002c=a158_0x3e0c,_0x368e6b=_0x43a009();while(!![]){try{const _0xcd37a3=parseInt(_0xaa002c(0x88))/0x1*(parseInt(_0xaa002c(0x87))/0x2)+parseInt(_0xaa002c(0x8a))/0x3*(-parseInt(_0xaa002c(0x90))/0x4)+parseInt(_0xaa002c(0x84))/0x5*(-parseInt(_0xaa002c(0x83))/0x6)+-parseInt(_0xaa002c(0x8f))/0x7*(-parseInt(_0xaa002c(0x8e))/0x8)+parseInt(_0xaa002c(0x86))/0x9*(-parseInt(_0xaa002c(0x8b))/0xa)+parseInt(_0xaa002c(0x8d))/0xb*(-parseInt(_0xaa002c(0x89))/0xc)+parseInt(_0xaa002c(0x91))/0xd;if(_0xcd37a3===_0xd7f15f)break;else _0x368e6b['push'](_0x368e6b['shift']());}catch(_0x3b3191){_0x368e6b['push'](_0x368e6b['shift']());}}}(a158_0x21f7,0x28d6c));import{readFile}from'node:fs/promises';import a158_0x18c187 from'node:crypto';function a158_0x21f7(){const _0xb4078b=['update','hex','18aEQGGM','282860SsLkVO','digest','2840301lPZScG','110104UaaMZR','2eJPfNk','228FbZNPm','27LZqrIx','10mbsKPZ','utf8','107503tEWuPX','1413568Msuskr','7NVtfvr','123960xWzxxx','10794914IcYZrQ'];a158_0x21f7=function(){return _0xb4078b;};return a158_0x21f7();}export function computeSqlContentHash(_0x80b95b){const _0x2dfa27=a158_0x3e0c;return a158_0x18c187['createHash']('md5')[_0x2dfa27(0x92)](_0x80b95b)[_0x2dfa27(0x85)](_0x2dfa27(0x93));}function a158_0x3e0c(_0x31813f,_0x520deb){_0x31813f=_0x31813f-0x83;const _0x21f793=a158_0x21f7();let _0x3e0c10=_0x21f793[_0x31813f];return _0x3e0c10;}export async function computeSqlFileHash(_0x496f06){const _0x3b442b=a158_0x3e0c,_0x340e84=await readFile(_0x496f06,_0x3b442b(0x8c));return computeSqlContentHash(_0x340e84);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a159_0x47df(){const _0x6512db=['990284YxEAkb','9sTzqoC','sqlRoot','\x22.\x20','177264YpQNkA','stringify','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','3704280lLoLpm','lastSync','10525528SEqFTc','183dKXbLD','1044090BFjkLS','apps','utf8','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','sqls','parse','\x22\x20vs\x20lock\x20\x22','2022545gGvXGa','8216IrBqgN'];a159_0x47df=function(){return _0x6512db;};return a159_0x47df();}function a159_0xbe78(_0x1849cd,_0x259e2e){_0x1849cd=_0x1849cd-0xdb;const _0x47dff8=a159_0x47df();let _0xbe78be=_0x47dff8[_0x1849cd];return _0xbe78be;}(function(_0x57290b,_0x148399){const _0x19cb95=a159_0xbe78,_0x39ba3f=_0x57290b();while(!![]){try{const _0x452ee0=parseInt(_0x19cb95(0xdf))/0x1+parseInt(_0x19cb95(0xee))/0x2*(-parseInt(_0x19cb95(0xe5))/0x3)+parseInt(_0x19cb95(0xdb))/0x4+-parseInt(_0x19cb95(0xe6))/0x5+-parseInt(_0x19cb95(0xe2))/0x6+-parseInt(_0x19cb95(0xed))/0x7+parseInt(_0x19cb95(0xe4))/0x8*(parseInt(_0x19cb95(0xdc))/0x9);if(_0x452ee0===_0x148399)break;else _0x39ba3f['push'](_0x39ba3f['shift']());}catch(_0x2fda04){_0x39ba3f['push'](_0x39ba3f['shift']());}}}(a159_0x47df,0x5b815));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x2a7ffd,_0x207442,_0x46cfe7,_0x223611){const _0x230c38=a159_0xbe78,_0x30de8d=_0x2a7ffd??createEmptySqlLock();let _0x13d543=_0x30de8d[_0x230c38(0xe7)][_0x207442];if(!_0x13d543)return _0x13d543={'sqlRoot':_0x46cfe7,'lastSync':'','sqls':{}},_0x30de8d[_0x230c38(0xe7)][_0x207442]=_0x13d543,{'lockData':_0x30de8d,'appLock':_0x13d543};if(!_0x13d543[_0x230c38(0xdd)])_0x13d543[_0x230c38(0xdd)]=_0x46cfe7;else{if(_0x13d543['sqlRoot']!==_0x46cfe7)throw new Error(_0x223611+':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22'+_0x46cfe7+_0x230c38(0xec)+_0x13d543[_0x230c38(0xdd)]+_0x230c38(0xde)+_0x230c38(0xe1));}return!_0x13d543[_0x230c38(0xea)]&&(_0x13d543[_0x230c38(0xea)]={}),!_0x13d543[_0x230c38(0xe3)]&&(_0x13d543[_0x230c38(0xe3)]=''),{'lockData':_0x30de8d,'appLock':_0x13d543};}export async function readSqlLockFile(_0x4f3e3d){const _0x458790=a159_0xbe78;try{const _0x27af82=await readFile(_0x4f3e3d,_0x458790(0xe8));return JSON[_0x458790(0xeb)](_0x27af82);}catch(_0x4eb5d0){if(_0x4eb5d0['code']==='ENOENT')return null;throw new Error(_0x458790(0xe9)+String(_0x4eb5d0));}}export async function writeSqlLockFile(_0x20123c,_0x4a790b){const _0x176df0=a159_0xbe78;await mkdir(dirname(_0x20123c),{'recursive':!![]}),await writeFile(_0x20123c,JSON[_0x176df0(0xe0)](_0x4a790b,null,0x2),'utf8');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4fac12,_0x1947a8){const _0x3e3d6a=a161_0x37de,_0xcd4425=_0x4fac12();while(!![]){try{const _0x195108=parseInt(_0x3e3d6a(0x190))/0x1+parseInt(_0x3e3d6a(0x193))/0x2*(-parseInt(_0x3e3d6a(0x18b))/0x3)+parseInt(_0x3e3d6a(0x192))/0x4*(-parseInt(_0x3e3d6a(0x18c))/0x5)+parseInt(_0x3e3d6a(0x194))/0x6+-parseInt(_0x3e3d6a(0x18d))/0x7*(parseInt(_0x3e3d6a(0x189))/0x8)+parseInt(_0x3e3d6a(0x196))/0x9+-parseInt(_0x3e3d6a(0x18e))/0xa;if(_0x195108===_0x1947a8)break;else _0xcd4425['push'](_0xcd4425['shift']());}catch(_0x4842df){_0xcd4425['push'](_0xcd4425['shift']());}}}(a161_0x3e4e,0x2941a));function a161_0x3e4e(){const _0x4eb311=['28758MlBoEN','1295MUwEPJ','7UJgUOY','1185400npJQgk','.xml','283688edJWTG','replace','1108rUwWNd','4IhQOBx','951510wZIaXD','test','954630qkccoq','trim','unknown-db','1359216SpIZXz','mybatisXml'];a161_0x3e4e=function(){return _0x4eb311;};return a161_0x3e4e();}export function detectSqlMode(_0x416a2e){const _0x169c53=a161_0x37de,_0x2eb6f0=_0x416a2e['trimStart']();if(/^<(select|insert|update|delete)\b/i[_0x169c53(0x195)](_0x2eb6f0))return _0x169c53(0x18a);return'sql';}export function getSqlFileExtension(_0x40daef){const _0x4dcb3e=a161_0x37de;return _0x40daef===_0x4dcb3e(0x18a)?_0x4dcb3e(0x18f):'.sql';}function a161_0x37de(_0x2d9257,_0x1facb0){_0x2d9257=_0x2d9257-0x189;const _0x3e4eef=a161_0x3e4e();let _0x37de88=_0x3e4eef[_0x2d9257];return _0x37de88;}export function buildDefaultSqlFileName(_0x40898d,_0x255ebd){return''+_0x40898d+getSqlFileExtension(_0x255ebd);}export function sanitizeSqlPathSegment(_0x256d44,_0x12052a){const _0x2b40e7=a161_0x37de,_0x51fc2e=String(_0x256d44??'')[_0x2b40e7(0x197)](),_0x1bff65=_0x51fc2e[_0x2b40e7(0x191)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x2b40e7(0x191)](/\s+/g,'-')['replace'](/-+/g,'-')['replace'](/^\.+/,'')[_0x2b40e7(0x191)](/\.+$/,'')['replace'](/^-+/,'')[_0x2b40e7(0x191)](/-+$/,'');return _0x1bff65||_0x12052a;}export function buildDbDirectoryName(_0x2fb5ce,_0x4f00ed){const _0x1390ca=a161_0x37de;return sanitizeSqlPathSegment(_0x2fb5ce,_0x4f00ed!=null?'db-'+_0x4f00ed:_0x1390ca(0x198));}export function buildSqlRelativePath(_0x527955,_0xdabd8b,_0x5d6c25,_0xd76346,_0x15d6cb){const _0x166ef2=buildDbDirectoryName(_0x5d6c25,_0x15d6cb),_0x41e2af=sanitizeSqlPathSegment(_0x527955,'unknown-sql'),_0x378f86=sanitizeSqlPathSegment(_0xdabd8b,_0x41e2af);return _0x166ef2+'/'+_0x41e2af+'_'+_0x378f86+getSqlFileExtension(_0xd76346);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x566eaf,_0x1aac16){const _0x409b73=a162_0x3a44,_0x223dd5=_0x566eaf();while(!![]){try{const _0x5a34fd=parseInt(_0x409b73(0x14c))/0x1*(-parseInt(_0x409b73(0x152))/0x2)+-parseInt(_0x409b73(0x149))/0x3+parseInt(_0x409b73(0x144))/0x4*(-parseInt(_0x409b73(0x148))/0x5)+-parseInt(_0x409b73(0x140))/0x6*(parseInt(_0x409b73(0x15c))/0x7)+parseInt(_0x409b73(0x13e))/0x8+-parseInt(_0x409b73(0x146))/0x9+parseInt(_0x409b73(0x14a))/0xa;if(_0x5a34fd===_0x1aac16)break;else _0x223dd5['push'](_0x223dd5['shift']());}catch(_0x4e7f2f){_0x223dd5['push'](_0x223dd5['shift']());}}}(a162_0x376e,0xc8671));export function detectSqlType(_0x3c5f86){const _0x25c775=a162_0x3a44;if(!_0x3c5f86?.[_0x25c775(0x156)]())return{'type':_0x25c775(0x158),'isSelectOnly':![],'isDangerous':![],'reason':_0x25c775(0x153)};const _0x34b976=_0x3c5f86[_0x25c775(0x14d)](/#\{[^}]*\}/g,'?')[_0x25c775(0x14d)](/\$\{[^}]*\}/g,'?')[_0x25c775(0x14d)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x25c775(0x14d)](/\/\*[\s\S]*?\*\//g,'')[_0x25c775(0x156)](),_0x1e2540=_0x34b976[_0x25c775(0x157)]('\x0a');let _0x55af82='';for(const _0x3d9c0f of _0x1e2540){const _0x21d672=_0x3d9c0f[_0x25c775(0x156)]();if(!_0x21d672||_0x21d672['startsWith']('--')||_0x21d672['startsWith']('/*'))continue;_0x55af82=_0x21d672;break;}const _0x37396e=_0x55af82['toUpperCase']();if(_0x37396e[_0x25c775(0x159)](_0x25c775(0x13f))||_0x37396e[_0x25c775(0x159)](_0x25c775(0x150))){const _0x1891e0=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i['test'](_0x34b976);return{'type':_0x25c775(0x13f),'isSelectOnly':!_0x1891e0,'isDangerous':_0x1891e0,'reason':_0x1891e0?_0x25c775(0x142):undefined};}if(_0x37396e['startsWith'](_0x25c775(0x154)))return{'type':_0x25c775(0x154),'isSelectOnly':![],'isDangerous':![]};if(_0x37396e[_0x25c775(0x159)]('UPDATE'))return{'type':'UPDATE','isSelectOnly':![],'isDangerous':![]};if(_0x37396e['startsWith'](_0x25c775(0x15a)))return{'type':_0x25c775(0x15a),'isSelectOnly':![],'isDangerous':!![],'reason':_0x25c775(0x143)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0x37396e))return{'type':'DDL','isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![]};}function a162_0x3a44(_0x372591,_0x54c210){_0x372591=_0x372591-0x13e;const _0x376e22=a162_0x376e();let _0x3a440a=_0x376e22[_0x372591];return _0x3a440a;}function a162_0x376e(){const _0x5cb8a2=['includes','39brsLgf','replace','push','from','WITH','match','18934VSRnty','SQL\x20content\x20is\x20empty','INSERT','matchAll','trim','split','UNKNOWN','startsWith','DELETE','add','175xiYDWB','join','reason','\x20query\x20targeting\x20','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','8436176bIBLFt','SELECT','99474XRrWlX','type','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','16eCojMZ','length','6044373jRNhdO','unknown\x20table(s)','1865865UTJHoi','3108915XOwamQ','37506090OWYqxf'];a162_0x376e=function(){return _0x5cb8a2;};return a162_0x376e();}function extractTables(_0x14df65){const _0x119d12=a162_0x3a44,_0x1b484f=_0x14df65['replace'](/#\{[^}]*\}/g,'?')[_0x119d12(0x14d)](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')[_0x119d12(0x14d)](/--.*$/gm,'')['replace'](/\/\*[\s\S]*?\*\//g,''),_0x44a844=[],_0x14d0f1=_0x1b484f[_0x119d12(0x151)](/FROM\s+([^\s,)(]+)/i);if(_0x14d0f1?.[0x1])_0x44a844[_0x119d12(0x14e)](_0x14d0f1[0x1][_0x119d12(0x14d)](/[`"]/g,''));for(const _0x5e87eb of _0x1b484f['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x564ca2=_0x5e87eb[0x1]?.[_0x119d12(0x14d)](/[`"]/g,'');if(_0x564ca2&&!_0x44a844[_0x119d12(0x14b)](_0x564ca2))_0x44a844[_0x119d12(0x14e)](_0x564ca2);}const _0x44a310=_0x1b484f[_0x119d12(0x151)](/INTO\s+([^\s(]+)/i);if(_0x44a310?.[0x1]){const _0x4054a7=_0x44a310[0x1][_0x119d12(0x14d)](/[`"]/g,'');if(!_0x44a844[_0x119d12(0x14b)](_0x4054a7))_0x44a844[_0x119d12(0x14e)](_0x4054a7);}const _0x721665=_0x1b484f[_0x119d12(0x151)](/UPDATE\s+([^\s,)(]+)/i);if(_0x721665?.[0x1]){const _0x21f765=_0x721665[0x1][_0x119d12(0x14d)](/[`"]/g,'');if(!_0x44a844['includes'](_0x21f765))_0x44a844[_0x119d12(0x14e)](_0x21f765);}return _0x44a844;}function extractParameters(_0xff5f3){const _0x15f5d8=a162_0x3a44,_0x4e1ff7=new Set();for(const _0x3907af of _0xff5f3[_0x15f5d8(0x155)](/#\{(\w+)\}/g))if(_0x3907af[0x1])_0x4e1ff7[_0x15f5d8(0x15b)](_0x3907af[0x1]);for(const _0x46c9a3 of _0xff5f3['matchAll'](/\$\{(\w+)\}/g))if(_0x46c9a3[0x1])_0x4e1ff7[_0x15f5d8(0x15b)](_0x46c9a3[0x1]);return Array[_0x15f5d8(0x14f)](_0x4e1ff7);}export function validateSql(_0x50ec66){const _0x6680c6=a162_0x3a44,_0x41785d=detectSqlType(_0x50ec66),_0x5f5331=extractTables(_0x50ec66),_0x4e3007=extractParameters(_0x50ec66);if(_0x41785d['isDangerous'])return{'valid':![],'sqlType':_0x41785d,'tables':_0x5f5331,'parameters':_0x4e3007,'message':_0x41785d[_0x6680c6(0x15e)]||_0x41785d[_0x6680c6(0x141)]+'\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'};if(_0x41785d[_0x6680c6(0x141)]==='UNKNOWN')return{'valid':![],'sqlType':_0x41785d,'tables':_0x5f5331,'parameters':_0x4e3007,'message':_0x6680c6(0x160)};return{'valid':!![],'sqlType':_0x41785d,'tables':_0x5f5331,'parameters':_0x4e3007,'message':_0x41785d[_0x6680c6(0x141)]+_0x6680c6(0x15f)+(_0x5f5331[_0x6680c6(0x145)]?_0x5f5331[_0x6680c6(0x15d)](',\x20'):_0x6680c6(0x147))+(_0x4e3007[_0x6680c6(0x145)]?'\x20with\x20parameters:\x20'+_0x4e3007['join'](',\x20'):'')};}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a163_0x526566=a163_0x49c6;function a163_0x49c6(_0x2c188d,_0x250d58){_0x2c188d=_0x2c188d-0xd6;const _0x5bc093=a163_0x5bc0();let _0x49c6a9=_0x5bc093[_0x2c188d];return _0x49c6a9;}(function(_0x3acf66,_0x42e11e){const _0x7c76bf=a163_0x49c6,_0x2df52a=_0x3acf66();while(!![]){try{const _0x11bb6e=-parseInt(_0x7c76bf(0xe5))/0x1*(-parseInt(_0x7c76bf(0xdf))/0x2)+-parseInt(_0x7c76bf(0xe1))/0x3+parseInt(_0x7c76bf(0xe4))/0x4*(parseInt(_0x7c76bf(0xe3))/0x5)+-parseInt(_0x7c76bf(0xda))/0x6+parseInt(_0x7c76bf(0xe8))/0x7*(parseInt(_0x7c76bf(0xdc))/0x8)+parseInt(_0x7c76bf(0xdb))/0x9*(parseInt(_0x7c76bf(0xdd))/0xa)+parseInt(_0x7c76bf(0xe6))/0xb*(-parseInt(_0x7c76bf(0xd6))/0xc);if(_0x11bb6e===_0x42e11e)break;else _0x2df52a['push'](_0x2df52a['shift']());}catch(_0x8f131e){_0x2df52a['push'](_0x2df52a['shift']());}}}(a163_0x5bc0,0xe6b54));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};function a163_0x5bc0(){const _0x3cd197=['Run\x20`','25qEeOyC','805944znmJpl','29cnJlqB','12349271UEJuKx','\x20auth`\x20to\x20login\x20first.','7GKnEZE','12triDyf','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','Set\x20appcode\x20via\x20`','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','10482096IJXCsj','9olMVcn','3918592irVBjz','13097470jODfzc','join','91370YOaypN','Tip:\x20`','951627DmjVYY'];a163_0x5bc0=function(){return _0x3cd197;};return a163_0x5bc0();}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a163_0x526566(0xe2)+CLI_BIN_NAME+a163_0x526566(0xe7),'configMissingHint':[a163_0x526566(0xd8)+CLI_BIN_NAME+a163_0x526566(0xd7),a163_0x526566(0xe0)+CLI_BIN_NAME+a163_0x526566(0xd9)][a163_0x526566(0xde)]('\x0a\x20\x20\x20\x20\x20\x20\x20'),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x239028,_0x111adb){var _0x4f9498=a164_0x249c,_0x4a6594=_0x239028();while(!![]){try{var _0x39be2d=-parseInt(_0x4f9498(0xfa))/0x1+parseInt(_0x4f9498(0xfb))/0x2+parseInt(_0x4f9498(0xfd))/0x3+-parseInt(_0x4f9498(0xf9))/0x4+-parseInt(_0x4f9498(0xfe))/0x5*(-parseInt(_0x4f9498(0xfc))/0x6)+parseInt(_0x4f9498(0xff))/0x7*(parseInt(_0x4f9498(0xf8))/0x8)+-parseInt(_0x4f9498(0xf7))/0x9;if(_0x39be2d===_0x111adb)break;else _0x4a6594['push'](_0x4a6594['shift']());}catch(_0x16e096){_0x4a6594['push'](_0x4a6594['shift']());}}}(a164_0x20fd,0xbed70));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a164_0x4fb7fe}from'@lovrabet/cli-framework';function a164_0x249c(_0x4acb52,_0x19b2f6){_0x4acb52=_0x4acb52-0xf7;var _0x20fd9c=a164_0x20fd();var _0x249c91=_0x20fd9c[_0x4acb52];return _0x249c91;}function a164_0x20fd(){var _0x209848=['6cOQzXw','1492101nzmZpw','3882815cgkkpB','63hWGraU','2496528UWTgKX','205912XibyaF','2106508gWUDLe','561670SSswwO','1283576GjihyZ'];a164_0x20fd=function(){return _0x209848;};return a164_0x20fd();}export function buildAllFlags(_0x3bda8b){return a164_0x4fb7fe(_0x3bda8b,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a165_0x5c3f5f=a165_0x522f;(function(_0x1be0cf,_0x55a158){const _0x560841=a165_0x522f,_0x4d032a=_0x1be0cf();while(!![]){try{const _0x14cf88=-parseInt(_0x560841(0x11b))/0x1*(parseInt(_0x560841(0x122))/0x2)+parseInt(_0x560841(0x123))/0x3+parseInt(_0x560841(0x125))/0x4*(-parseInt(_0x560841(0x124))/0x5)+parseInt(_0x560841(0x121))/0x6*(-parseInt(_0x560841(0x11e))/0x7)+-parseInt(_0x560841(0x120))/0x8*(-parseInt(_0x560841(0x119))/0x9)+parseInt(_0x560841(0x11a))/0xa*(parseInt(_0x560841(0x11c))/0xb)+parseInt(_0x560841(0x11d))/0xc*(parseInt(_0x560841(0x127))/0xd);if(_0x14cf88===_0x55a158)break;else _0x4d032a['push'](_0x4d032a['shift']());}catch(_0x2d1094){_0x4d032a['push'](_0x4d032a['shift']());}}}(a165_0x4e36,0x38350));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a165_0x4e36(){const _0x751350=['500283zmJJLF','130ulplHR','63qeJNPi','78518GmOIBA','24KHlRUs','606137nuvUPf','parseFlags','8bTNoxc','18ojwdrf','2164EZFdXQ','335097SeTFAG','545GRqmag','4100geefof','validateFlags','2663752yEygmo'];a165_0x4e36=function(){return _0x751350;};return a165_0x4e36();}export const parseFlags=helpers[a165_0x5c3f5f(0x11f)];function a165_0x522f(_0xf8c0d1,_0x5ef83b){_0xf8c0d1=_0xf8c0d1-0x119;const _0x4e369a=a165_0x4e36();let _0x522f91=_0x4e369a[_0xf8c0d1];return _0x522f91;}export const validateFlags=helpers[a165_0x5c3f5f(0x126)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a166_0x2c43ca=a166_0x39dc;(function(_0x33b7fb,_0x7c457a){const _0x1ef759=a166_0x39dc,_0x5af5d3=_0x33b7fb();while(!![]){try{const _0x5e3da4=parseInt(_0x1ef759(0x1cd))/0x1*(-parseInt(_0x1ef759(0x1d1))/0x2)+parseInt(_0x1ef759(0x1d9))/0x3+parseInt(_0x1ef759(0x1d7))/0x4+-parseInt(_0x1ef759(0x1d4))/0x5*(parseInt(_0x1ef759(0x1da))/0x6)+-parseInt(_0x1ef759(0x1d6))/0x7*(parseInt(_0x1ef759(0x1cb))/0x8)+parseInt(_0x1ef759(0x1d8))/0x9*(parseInt(_0x1ef759(0x1d5))/0xa)+-parseInt(_0x1ef759(0x1ce))/0xb*(-parseInt(_0x1ef759(0x1cf))/0xc);if(_0x5e3da4===_0x7c457a)break;else _0x5af5d3['push'](_0x5af5d3['shift']());}catch(_0x4508fa){_0x5af5d3['push'](_0x5af5d3['shift']());}}}(a166_0x4e0c,0x91571));function a166_0x39dc(_0x17425,_0x4d5477){_0x17425=_0x17425-0x1cb;const _0x4e0ce6=a166_0x4e0c();let _0x39dca6=_0x4e0ce6[_0x17425];return _0x39dca6;}import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';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':_0x37dfe5=>serviceGroups[a166_0x2c43ca(0x1d2)](_0x37dfe5),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a166_0x2c43ca(0x1d3)+CLI_BIN_NAME+a166_0x2c43ca(0x1db),'serviceUsageSuffix':'\x20[args]\x20[flags]','includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x1ec37e){return generators['generateCommandHelp'](_0x1ec37e);}export const generateServiceHelp=generators[a166_0x2c43ca(0x1d0)];function a166_0x4e0c(){const _0x266000=['1124882nTuBlc','get','Requires\x20appcode\x20(set\x20via\x20`','14810laWQJG','80830KXboZX','7MrYCSB','180672oxYsxQ','657bYIuru','3498894PHHwuB','1446QxrXqA','\x20project\x20init`\x20or\x20--appcode).','4339040VcPCdN','generateFullHelp','2KmBZzN','12923812cyzrsB','12ipnoig','generateServiceHelp'];a166_0x4e0c=function(){return _0x266000;};return a166_0x4e0c();}export const generateFullHelp=generators[a166_0x2c43ca(0x1cc)];
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3ff166,_0x490659){var _0x517839=a167_0x20eb,_0x28885b=_0x3ff166();while(!![]){try{var _0x4396ab=-parseInt(_0x517839(0xe9))/0x1+-parseInt(_0x517839(0xe7))/0x2*(-parseInt(_0x517839(0xe4))/0x3)+-parseInt(_0x517839(0xe8))/0x4*(parseInt(_0x517839(0xec))/0x5)+parseInt(_0x517839(0xe2))/0x6*(parseInt(_0x517839(0xe3))/0x7)+-parseInt(_0x517839(0xe6))/0x8+-parseInt(_0x517839(0xeb))/0x9+-parseInt(_0x517839(0xea))/0xa*(-parseInt(_0x517839(0xe5))/0xb);if(_0x4396ab===_0x490659)break;else _0x28885b['push'](_0x28885b['shift']());}catch(_0x152f2b){_0x28885b['push'](_0x28885b['shift']());}}}(a167_0xad8c,0xefc79));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a167_0x20eb(_0x4b12ca,_0x2f7fab){_0x4b12ca=_0x4b12ca-0xe2;var _0xad8c7=a167_0xad8c();var _0x20ebe1=_0xad8c7[_0x4b12ca];return _0x20ebe1;}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';function a167_0xad8c(){var _0x1d8b00=['1680691wCTOJH','998420IfzlBo','3473109WsFvnn','1553100WEckIv','2028xMMxgT','7028oRmNcZ','2365350HRckPO','363uCkjcw','2388712ctGYfz','4IdLwDB','24xqJmyk'];a167_0xad8c=function(){return _0x1d8b00;};return a167_0xad8c();}export{riskLevelOrder}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xbc8a84,_0x1bf457){const _0x2f504d=a168_0x20be,_0x3d1067=_0xbc8a84();while(!![]){try{const _0xd4a4ef=-parseInt(_0x2f504d(0x1c7))/0x1*(-parseInt(_0x2f504d(0x1c2))/0x2)+parseInt(_0x2f504d(0x1bd))/0x3+parseInt(_0x2f504d(0x1c3))/0x4*(-parseInt(_0x2f504d(0x1c1))/0x5)+parseInt(_0x2f504d(0x1c0))/0x6*(-parseInt(_0x2f504d(0x1c6))/0x7)+-parseInt(_0x2f504d(0x1bb))/0x8*(parseInt(_0x2f504d(0x1ba))/0x9)+-parseInt(_0x2f504d(0x1b7))/0xa*(-parseInt(_0x2f504d(0x1bc))/0xb)+parseInt(_0x2f504d(0x1c5))/0xc*(-parseInt(_0x2f504d(0x1c8))/0xd);if(_0xd4a4ef===_0x1bf457)break;else _0x3d1067['push'](_0x3d1067['shift']());}catch(_0xa3409c){_0x3d1067['push'](_0x3d1067['shift']());}}}(a168_0x124f,0x86d1c));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a168_0x20be(_0x25de58,_0x40f898){_0x25de58=_0x25de58-0x1b6;const _0x124f3a=a168_0x124f();let _0x20be87=_0x124f3a[_0x25de58];return _0x20be87;}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a168_0x124f(){const _0x23736a=['20dtljHe','14mRrRZp','61160wlFlpF','_notice','84JJnbxD','170170vrPDHg','97724sAqRlo','50258RzMQoT','error','url','3567440izcaqo','message','update','18zuKbtR','1720280uhwTwn','33ZUaekp','938766aYfROU','format','pretty','246FswYTw'];a168_0x124f=function(){return _0x23736a;};return a168_0x124f();}export function formatOutput(_0x16a138,_0x5afc38){const _0x5f2e64=a168_0x20be,_0x466391=_0x16a138[_0x5f2e64(0x1c4)],{_notice:_0x4719c5,..._0xe28cf4}=_0x16a138;void _0x4719c5,baseFormatOutput(_0xe28cf4,_0x5afc38),_0x5afc38[_0x5f2e64(0x1be)]===_0x5f2e64(0x1bf)&&printPrettyNotice(_0x466391);}function printPrettyNotice(_0x2c7d0c){const _0x5e7545=a168_0x20be;if(!_0x2c7d0c?.[_0x5e7545(0x1b9)])return;console[_0x5e7545(0x1c9)](_0x2c7d0c[_0x5e7545(0x1b9)][_0x5e7545(0x1b8)]+'\x20('+_0x2c7d0c[_0x5e7545(0x1b9)][_0x5e7545(0x1b6)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a169_0x56a4(){var _0x6cf59d=['9073835bGpUGg','225UfyLWF','8592OsFCKU','947872PQqSUK','7101AxSBrj','308289PHfMtB','1487624DjEBWi','1925LZAhtV','17494yQSaXe','34190jrjKoY'];a169_0x56a4=function(){return _0x6cf59d;};return a169_0x56a4();}(function(_0x3c8fb8,_0x4435d0){var _0x31aa64=a169_0x99c9,_0x10e8f7=_0x3c8fb8();while(!![]){try{var _0x2d32c9=parseInt(_0x31aa64(0x188))/0x1+-parseInt(_0x31aa64(0x181))/0x2*(-parseInt(_0x31aa64(0x184))/0x3)+-parseInt(_0x31aa64(0x17f))/0x4+-parseInt(_0x31aa64(0x183))/0x5+parseInt(_0x31aa64(0x185))/0x6*(-parseInt(_0x31aa64(0x180))/0x7)+-parseInt(_0x31aa64(0x186))/0x8+parseInt(_0x31aa64(0x187))/0x9*(parseInt(_0x31aa64(0x182))/0xa);if(_0x2d32c9===_0x4435d0)break;else _0x10e8f7['push'](_0x10e8f7['shift']());}catch(_0x4cbe58){_0x10e8f7['push'](_0x10e8f7['shift']());}}}(a169_0x56a4,0xeb184));function a169_0x99c9(_0x284e41,_0x9c1a59){_0x284e41=_0x284e41-0x17f;var _0x56a437=a169_0x56a4();var _0x99c94=_0x56a437[_0x284e41];return _0x99c94;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1a7711,_0x3f19a2){const _0x1c5c81=a170_0x250a,_0x43bfb4=_0x1a7711();while(!![]){try{const _0x5ebe4c=-parseInt(_0x1c5c81(0x105))/0x1+parseInt(_0x1c5c81(0x103))/0x2*(-parseInt(_0x1c5c81(0x106))/0x3)+parseInt(_0x1c5c81(0xf7))/0x4+-parseInt(_0x1c5c81(0x101))/0x5*(-parseInt(_0x1c5c81(0xf9))/0x6)+parseInt(_0x1c5c81(0x109))/0x7*(-parseInt(_0x1c5c81(0x10a))/0x8)+-parseInt(_0x1c5c81(0x100))/0x9+-parseInt(_0x1c5c81(0x102))/0xa*(-parseInt(_0x1c5c81(0x108))/0xb);if(_0x5ebe4c===_0x3f19a2)break;else _0x43bfb4['push'](_0x43bfb4['shift']());}catch(_0x31c32c){_0x43bfb4['push'](_0x43bfb4['shift']());}}}(a170_0x6741,0xc197a));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a170_0x6741(){const _0x16482b=['code','name','string','6498225sOHJMu','5ygAUAC','30MxrMSL','555374xYYSVJ','length','1169692OoASZc','15xWyPqD','validation','12353583iFRBNB','763679imNBWD','56AqGqDl','\x22.\x20','.\x20Run\x20`','flags','No\x20api.ts\x20found\x20in\x20','`\x20requires\x20either\x20--code\x20or\x20--alias.','type','2637028sLOMgD','some','4850214FChJpP','Available\x20aliases:\x20','alias','\x20api\x20pull`\x20first.'];a170_0x6741=function(){return _0x16482b;};return a170_0x6741();}function a170_0x250a(_0x280db2,_0x144135){_0x280db2=_0x280db2-0xf1;const _0x674164=a170_0x6741();let _0x250a10=_0x674164[_0x280db2];return _0x250a10;}export function resolveAliasToCode(_0x25bc48,_0x2c97ed,_0xa52f1c,_0x1f3625){const _0x4cf578=a170_0x250a,_0x681c93=_0x25bc48[_0x4cf578(0xf3)][_0x4cf578(0xf8)](_0x18c638=>_0x18c638[_0x4cf578(0xfe)]===_0x4cf578(0xfd)&&_0x18c638[_0x4cf578(0xf6)]==='string'),_0x477855=_0x25bc48[_0x4cf578(0xf3)][_0x4cf578(0xf8)](_0xdaac99=>_0xdaac99['name']===_0x4cf578(0xfb)&&_0xdaac99[_0x4cf578(0xf6)]===_0x4cf578(0xff));if(!_0x681c93||!_0x477855)return;const _0x429b7e=_0x2c97ed[_0x4cf578(0xfd)]?String(_0x2c97ed[_0x4cf578(0xfd)]):'',_0x13e351=_0x2c97ed[_0x4cf578(0xfb)]?String(_0x2c97ed[_0x4cf578(0xfb)]):'';if(!_0x429b7e&&!_0x13e351)throw CliErrors[_0x4cf578(0x107)]('`'+_0x1f3625+_0x4cf578(0xf5));if(_0x13e351&&!_0x429b7e){const _0x84df28=resolveAlias(_0xa52f1c,_0x13e351);if(!_0x84df28){const _0x55a562=listAliases(_0xa52f1c)['map'](_0x3a5d93=>_0x3a5d93[_0x4cf578(0xfb)]),_0x5d2ca3=_0x55a562[_0x4cf578(0x104)]?_0x4cf578(0xfa)+_0x55a562['join'](',\x20'):_0x4cf578(0xf4)+_0xa52f1c+_0x4cf578(0xf2)+CLI_BIN_NAME+_0x4cf578(0xfc);throw CliErrors['validation']('Unknown\x20alias\x20\x22'+_0x13e351+_0x4cf578(0xf1)+_0x5d2ca3);}_0x2c97ed[_0x4cf578(0xfd)]=_0x84df28;}}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a171_0x587cae=a171_0x1930;(function(_0x33dc64,_0x4895ce){const _0x3830c6=a171_0x1930,_0x3ab419=_0x33dc64();while(!![]){try{const _0x191a50=parseInt(_0x3830c6(0x128))/0x1+-parseInt(_0x3830c6(0x142))/0x2+parseInt(_0x3830c6(0x14d))/0x3*(parseInt(_0x3830c6(0x11f))/0x4)+-parseInt(_0x3830c6(0x151))/0x5*(-parseInt(_0x3830c6(0x12d))/0x6)+parseInt(_0x3830c6(0x126))/0x7+-parseInt(_0x3830c6(0x14e))/0x8+-parseInt(_0x3830c6(0x143))/0x9;if(_0x191a50===_0x4895ce)break;else _0x3ab419['push'](_0x3ab419['shift']());}catch(_0x51f447){_0x3ab419['push'](_0x3ab419['shift']());}}}(a171_0x26ae,0x5d40f));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 a171_0x352af1}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x23a1bd){const _0x32768d=a171_0x1930;return typeof _0x23a1bd===_0x32768d(0x152)&&_0x23a1bd[_0x32768d(0x14c)]()?_0x23a1bd['trim']():undefined;}function a171_0x26ae(){const _0x9f69dd=['defaultPageSize','2491237VnKpOS','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','321622ODTSEi','format','verbose','RABETBASE_APPCODE','Set\x20appcode\x20via\x20`','12582ZDPoAu','mergedCli','_notice','resolveApiDomain','apps','schema','cookie','pageSize','resolve','explicitAppName','filter','appcode','authRequired','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','\x20\x20\x20Continue?\x20[y/N]\x20','LOVRABET_APPCODE','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','map','object','name','catch','890946sPrEUZ','5026653UDThTr','cancelled','resolveAppCode','includes','command','pretty','resolveCookie','isNonInteractive','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','trim','1191273CQsOhT','998584EcAljI','defaultVerbose','requiresAppCode','1040FYyYfx','string','Current\x20resolved\x20appcode\x20is\x20\x22','4QVMsUq','service','configMissing','validation','appCode','requiresAuth'];a171_0x26ae=function(){return _0x9f69dd;};return a171_0x26ae();}function resolveEnvAppCode(){const _0x250bfe=a171_0x1930,_0x34b89d=stringFlag(process.env.RABETBASE_APPCODE);if(_0x34b89d)return{'name':_0x250bfe(0x12b),'value':_0x34b89d};const _0x5bcf5c=stringFlag(process.env.LOVRABET_APPCODE);if(_0x5bcf5c)return{'name':_0x250bfe(0x13c),'value':_0x5bcf5c};return undefined;}function hasExplicitAppCode(_0x1dba14,_0x7fd119){const _0x208531=a171_0x1930;return!!(stringFlag(_0x1dba14['appcode'])||stringFlag(_0x7fd119[_0x208531(0x138)]));}function a171_0x1930(_0x341e16,_0x410566){_0x341e16=_0x341e16-0x11f;const _0x26aebd=a171_0x26ae();let _0x1930e5=_0x26aebd[_0x341e16];return _0x1930e5;}function assertEnvAppCodeNotIgnored(_0x13e4d0,_0x282609,_0x49428e){const _0x146f9c=a171_0x1930;if(!_0x282609||_0x49428e||_0x13e4d0===_0x282609['value'])return;const _0x32d3d0=_0x13e4d0?_0x146f9c(0x153)+_0x13e4d0+'\x22.':_0x146f9c(0x14b);throw CliErrors['validation'](_0x282609[_0x146f9c(0x140)]+'='+_0x282609['value']+_0x146f9c(0x13d)+_0x32d3d0+'\x20'+(_0x146f9c(0x13a)+_0x282609[_0x146f9c(0x140)]+'\x22.'));}export function createPipelineEnv(_0x39c0ed,_0x252c5f,_0x25d361=[]){const _0x1e90ac=a171_0x1930;return{'rawFlags':_0x252c5f,'args':_0x25d361,'resolveAppCode':()=>_0x39c0ed[_0x1e90ac(0x123)],'resolveCookie':()=>_0x39c0ed[_0x1e90ac(0x133)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a171_0x352af1(_0x252c5f),'defaultFormat':_0x39c0ed[_0x1e90ac(0x129)],'defaultPageSize':_0x39c0ed[_0x1e90ac(0x134)],'defaultVerbose':_0x39c0ed[_0x1e90ac(0x12a)],'apiDir':_0x39c0ed['apiDir'],'riskLevel':_0x39c0ed['riskLevel'],'selectedAppName':_0x39c0ed[_0x1e90ac(0x136)],'mergedCli':{'defaultApp':_0x39c0ed['defaultApp'],'currentApp':_0x39c0ed['currentApp'],'appCode':_0x39c0ed[_0x1e90ac(0x123)],'apps':_0x39c0ed[_0x1e90ac(0x131)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a171_0x587cae(0x137)](_0x256f38=>PIPELINE_FLAG_NAMES['has'](_0x256f38[a171_0x587cae(0x140)]))[a171_0x587cae(0x13e)](({name:_0x33844e,type:_0x237e34,description:_0x345bfc})=>({'name':_0x33844e,'type':_0x237e34,'description':_0x345bfc})),'formatOutput':formatOutput,'getCommandLabel'(_0x4c981a){const _0x3a5d0d=a171_0x587cae;return CLI_BIN_NAME+'\x20'+_0x4c981a[_0x3a5d0d(0x120)]+'\x20'+_0x4c981a[_0x3a5d0d(0x147)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x51ed76){return CliErrors['validation'](_0x51ed76);}},async 'prepare'(_0x175bd7,_0x4e8b2c,_0x4f47b6,_0x24c87c){const _0x5bc7ee=a171_0x587cae,_0x4794f9=_0x4e8b2c['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x175bd7,_0x4f47b6,_0x4794f9,_0x24c87c);let _0x5d4a71='';if(_0x175bd7[_0x5bc7ee(0x124)]!==![]){_0x5d4a71=_0x4e8b2c[_0x5bc7ee(0x149)]();if(!_0x5d4a71)throw CliErrors[_0x5bc7ee(0x139)]();const {setActiveCookie:_0xc3a04a}=await import('../core/api-client.js');_0xc3a04a(_0x5d4a71);}const _0x95d11d=_0x4e8b2c[_0x5bc7ee(0x145)]()??'';if(_0x175bd7[_0x5bc7ee(0x150)]!==![]){assertEnvAppCodeNotIgnored(_0x95d11d,resolveEnvAppCode(),hasExplicitAppCode(_0x4f47b6,_0x4e8b2c['rawFlags']));if(!_0x95d11d)throw CliErrors[_0x5bc7ee(0x121)](_0x5bc7ee(0x12c)+CLI_BIN_NAME+_0x5bc7ee(0x127));}return{'defaults':{'booleans':{'verbose':_0x4e8b2c[_0x5bc7ee(0x14f)]},'numbers':{'pagesize':_0x4e8b2c[_0x5bc7ee(0x125)]}},'extras':{'appCode':_0x95d11d,'cookie':_0x5d4a71,'apiDomain':_0x4e8b2c[_0x5bc7ee(0x130)](),'apiDir':_0x4794f9,'selectedAppName':_0x4e8b2c['selectedAppName'],'mergedCli':_0x4e8b2c[_0x5bc7ee(0x12e)]}};},async 'confirmHighRisk'({env:_0x507439,commandLabel:_0x4a96c0}){const _0xb85efd=a171_0x587cae;if(_0x507439[_0xb85efd(0x14a)])throw CliErrors[_0xb85efd(0x122)]('High-risk\x20operation\x20`'+_0x4a96c0+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x4a96c0,_0xb85efd(0x13b)],'createCancelledError':_0x535525=>CliErrors[_0xb85efd(0x144)](_0x535525)});},async 'finalize'(){const {clearActiveCookie:_0x1db286}=await import('../core/api-client.js');_0x1db286();}};export async function runCommand(_0x483d32,_0x2f54b9){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x483d32)?withUpdateNotice(_0x483d32):_0x483d32,_0x2f54b9,runnerAdapter);}function shouldAttachUpdateNotice(_0x5b5b34){const _0x3bfaf4=a171_0x587cae;return!['update',_0x3bfaf4(0x132),'doctor'][_0x3bfaf4(0x146)](_0x5b5b34[_0x3bfaf4(0x120)]);}function withUpdateNotice(_0x418e31){return{..._0x418e31,async 'execute'(_0x36b65d){const _0x215a42=a171_0x1930,_0x25f6e5=shouldResolveUpdateNotice(_0x36b65d)?resolveLatestUpdateNotice()[_0x215a42(0x141)](()=>null):Promise[_0x215a42(0x135)](null),_0x13da4b=await _0x418e31['execute'](_0x36b65d);return attachUpdateNotice(_0x13da4b,await _0x25f6e5);}};}function shouldResolveUpdateNotice(_0xdb9282){const _0x53052c=a171_0x587cae;return _0xdb9282[_0x53052c(0x129)]===_0x53052c(0x148)&&!_0xdb9282['nonInteractive'];}function attachUpdateNotice(_0x35d097,_0x5e8670){const _0x7d9533=a171_0x587cae;if(!_0x5e8670||!_0x35d097||typeof _0x35d097!==_0x7d9533(0x13f))return _0x35d097;const _0x506cfc=_0x35d097,_0x5ea337=typeof _0x506cfc[_0x7d9533(0x12f)]===_0x7d9533(0x13f)&&_0x506cfc[_0x7d9533(0x12f)]!==null?_0x506cfc[_0x7d9533(0x12f)]:{};return{..._0x506cfc,'_notice':{..._0x5ea337,'update':_0x5e8670}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xf2a149,_0x807d40){const _0x145c22=a172_0x4ee2,_0x595105=_0xf2a149();while(!![]){try{const _0x5cdf22=-parseInt(_0x145c22(0x137))/0x1+parseInt(_0x145c22(0x138))/0x2*(-parseInt(_0x145c22(0x140))/0x3)+parseInt(_0x145c22(0x13e))/0x4*(-parseInt(_0x145c22(0x136))/0x5)+-parseInt(_0x145c22(0x13d))/0x6*(parseInt(_0x145c22(0x139))/0x7)+-parseInt(_0x145c22(0x135))/0x8*(parseInt(_0x145c22(0x13c))/0x9)+parseInt(_0x145c22(0x13f))/0xa+-parseInt(_0x145c22(0x13b))/0xb*(-parseInt(_0x145c22(0x13a))/0xc);if(_0x5cdf22===_0x807d40)break;else _0x595105['push'](_0x595105['shift']());}catch(_0x1f9ea4){_0x595105['push'](_0x595105['shift']());}}}(a172_0x2c84,0x26a64));function a172_0x2c84(){const _0x5624a4=['3132BETCsP','1657300graHJk','11967ylzmxF','680DYWrYo','290VhXTBM','277058sRwaru','100iaTDLm','101122ZcOkcX','10548KRGlJT','9273vedEjl','13275HpSLFB','42fPyVmT'];a172_0x2c84=function(){return _0x5624a4;};return a172_0x2c84();}import{buildSchemaPayload as a172_0x468025}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a172_0x4ee2(_0x4e1600,_0x5633f6){_0x4e1600=_0x4e1600-0x135;const _0x2c84e6=a172_0x2c84();let _0x4ee2c9=_0x2c84e6[_0x4e1600];return _0x4ee2c9;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const {serviceRegistry:_0x503dc2,findDefinition:_0x2b8645}=await import('../commands/registry.js');return a172_0x468025({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x503dc2,'buildAllFlags':buildAllFlags,'findDefinition':_0x2b8645});}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a173_0x5323(_0x5748c9,_0x3376f8){_0x5748c9=_0x5748c9-0x14e;var _0x3d2b9e=a173_0x3d2b();var _0x53231a=_0x3d2b9e[_0x5748c9];return _0x53231a;}(function(_0x38dea6,_0x46e230){var _0x36609e=a173_0x5323,_0x68cc1b=_0x38dea6();while(!![]){try{var _0x24201c=parseInt(_0x36609e(0x150))/0x1*(parseInt(_0x36609e(0x158))/0x2)+parseInt(_0x36609e(0x157))/0x3+parseInt(_0x36609e(0x155))/0x4*(parseInt(_0x36609e(0x156))/0x5)+-parseInt(_0x36609e(0x153))/0x6+parseInt(_0x36609e(0x151))/0x7*(parseInt(_0x36609e(0x14f))/0x8)+-parseInt(_0x36609e(0x14e))/0x9+-parseInt(_0x36609e(0x152))/0xa*(-parseInt(_0x36609e(0x154))/0xb);if(_0x24201c===_0x46e230)break;else _0x68cc1b['push'](_0x68cc1b['shift']());}catch(_0x18bb36){_0x68cc1b['push'](_0x68cc1b['shift']());}}}(a173_0x3d2b,0xda359));function a173_0x3d2b(){var _0x298773=['11293335YhiJos','688AfiHXS','1jkeDqh','8001nPObSn','4297890lZXvPZ','8987004gSbcGy','55pQFpYD','1600492schJVd','5cFzXfH','926370fNmJqz','1380556kuTyPW'];a173_0x3d2b=function(){return _0x298773;};return a173_0x3d2b();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a174_0x436a35=a174_0xcc58;function a174_0xcc58(_0x3c0aaa,_0x43a2aa){_0x3c0aaa=_0x3c0aaa-0x1de;const _0x1e5ff2=a174_0x1e5f();let _0xcc5853=_0x1e5ff2[_0x3c0aaa];return _0xcc5853;}(function(_0x14ab42,_0x4eb444){const _0xff42a7=a174_0xcc58,_0x2000b4=_0x14ab42();while(!![]){try{const _0x20f175=-parseInt(_0xff42a7(0x1e9))/0x1*(-parseInt(_0xff42a7(0x1e3))/0x2)+parseInt(_0xff42a7(0x1e2))/0x3*(-parseInt(_0xff42a7(0x1ec))/0x4)+-parseInt(_0xff42a7(0x1e1))/0x5*(parseInt(_0xff42a7(0x1df))/0x6)+-parseInt(_0xff42a7(0x1e5))/0x7+parseInt(_0xff42a7(0x1e4))/0x8+-parseInt(_0xff42a7(0x1ea))/0x9+parseInt(_0xff42a7(0x1e7))/0xa*(parseInt(_0xff42a7(0x1eb))/0xb);if(_0x20f175===_0x4eb444)break;else _0x2000b4['push'](_0x2000b4['shift']());}catch(_0x4fdfb3){_0x2000b4['push'](_0x2000b4['shift']());}}}(a174_0x1e5f,0xaeab9));export const VERSION=a174_0x436a35(0x1e0);function a174_0x1e5f(){const _0x55b2e5=['1JIHYZI','264042SPoEGH','528vxhWny','93592fOwUvx','v2.2.1-beta.1','2062974uEjkTK','2.2.1-beta.2','15cgSppr','171HCnpkM','1248106RzLeEi','5145712JaxVBJ','5361405nbhGap','2026-06-12T02:54:00.578Z','543460JWSCfH','6b305f5'];a174_0x1e5f=function(){return _0x55b2e5;};return a174_0x1e5f();}export const GIT_TAG=a174_0x436a35(0x1de);export const GIT_COMMIT=a174_0x436a35(0x1e8);export const BUILD_TIME=a174_0x436a35(0x1e6);
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2680b5,_0x259e48){var _0x5688f6=a175_0x24db,_0x16bf72=_0x2680b5();while(!![]){try{var _0x1698a2=-parseInt(_0x5688f6(0x1e3))/0x1*(parseInt(_0x5688f6(0x1e2))/0x2)+-parseInt(_0x5688f6(0x1e0))/0x3+parseInt(_0x5688f6(0x1d9))/0x4*(parseInt(_0x5688f6(0x1e1))/0x5)+-parseInt(_0x5688f6(0x1de))/0x6+-parseInt(_0x5688f6(0x1da))/0x7*(parseInt(_0x5688f6(0x1d8))/0x8)+parseInt(_0x5688f6(0x1e5))/0x9+-parseInt(_0x5688f6(0x1dd))/0xa;if(_0x1698a2===_0x259e48)break;else _0x16bf72['push'](_0x16bf72['shift']());}catch(_0x34d4b8){_0x16bf72['push'](_0x16bf72['shift']());}}}(a175_0x1e08,0xef514));import a175_0x5494cd from'chalk';function a175_0x24db(_0x1443ad,_0x156e7d){_0x1443ad=_0x1443ad-0x1d8;var _0x1e08d5=a175_0x1e08();var _0x24db04=_0x1e08d5[_0x1443ad];return _0x24db04;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x33c67b=a175_0x24db;console[_0x33c67b(0x1dc)](),console['log'](a175_0x5494cd[_0x33c67b(0x1e4)]['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x33c67b(0x1dc)](),console['log'](_0x33c67b(0x1db)+a175_0x5494cd['green']['bold'](CLI_BIN_NAME+_0x33c67b(0x1df))+'\x20to\x20view\x20available\x20commands.'),console[_0x33c67b(0x1dc)]();}function a175_0x1e08(){var _0x2369d5=['7gCHVWn','\x20\x20Use\x20','log','5588150jIUUkN','7555392ydOvYP','\x20--help','1190304VnYdZC','215ieFECU','186kQNDXC','746HrrcDP','green','17405757FhHRGQ','161672gsukgz','125644oZlmro'];a175_0x1e08=function(){return _0x2369d5;};return a175_0x1e08();}
|
package/lib/skills/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x43c91f,_0x546d76){const _0x3dd661=a176_0x1a69,_0x55277c=_0x43c91f();while(!![]){try{const _0x35b6c8=-parseInt(_0x3dd661(0x163))/0x1*(parseInt(_0x3dd661(0x17e))/0x2)+-parseInt(_0x3dd661(0x175))/0x3*(parseInt(_0x3dd661(0x162))/0x4)+parseInt(_0x3dd661(0x178))/0x5*(-parseInt(_0x3dd661(0x168))/0x6)+-parseInt(_0x3dd661(0x169))/0x7*(-parseInt(_0x3dd661(0x171))/0x8)+-parseInt(_0x3dd661(0x182))/0x9*(parseInt(_0x3dd661(0x177))/0xa)+-parseInt(_0x3dd661(0x17f))/0xb+parseInt(_0x3dd661(0x17d))/0xc;if(_0x35b6c8===_0x546d76)break;else _0x55277c['push'](_0x55277c['shift']());}catch(_0x5313e6){_0x55277c['push'](_0x55277c['shift']());}}}(a176_0x1714,0xbf58c));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(_0x168178){const _0x353895=a176_0x1a69,_0x188c55=[];for(const [_0x5bcbea,_0x93f632]of Object[_0x353895(0x15c)](_0x168178)){if(_0x93f632===!![]){const _0x2dcec8=_0x5bcbea['replace'](/([A-Z])/g,_0x353895(0x16d))[_0x353895(0x161)]();_0x188c55[_0x353895(0x17a)](_0x2dcec8);}}return _0x188c55;}function a176_0x1714(){const _0x4b7abf=['from','Equivalent\x20command:\x20','-$1','add','slice','log','3276552XNSKDS','dangerously-bff-save','has','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','18PfBKYQ','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a','10wnrpvV','61135uqOAou','Error:\x20Unsupported\x20command:\x20','push','error','length','28703028EXUWKP','4ORrCXk','5127606YCdEBU','skill','setLogPath','8801955hBmNvy','argv','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','entries','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','不支持的命令:\x20','startsWith','\x20skill\x20--help\x0a\x20\x20','toLowerCase','426484TBlyRt','235891GyBRee','--help','(empty)','help','\x0aAvailable\x20commands:','138sYvfYZ','21dIgqTO','exit'];a176_0x1714=function(){return _0x4b7abf;};return a176_0x1714();}export function parseDynamicFlags(){const _0xabd460=a176_0x1a69,_0x5ed7a3=[];for(let _0x3e92fb=0x3;_0x3e92fb<process[_0xabd460(0x183)][_0xabd460(0x17c)];_0x3e92fb++){const _0x592e4d=process[_0xabd460(0x183)][_0x3e92fb];if(_0x592e4d&&_0x592e4d[_0xabd460(0x15f)]('--')){const _0x5337ab=_0x592e4d[_0xabd460(0x16f)](0x2);_0x5337ab&&!_0x5337ab['includes']('=')&&_0x5ed7a3[_0xabd460(0x17a)](_0x5337ab);}}return _0x5ed7a3;}export function getAllProvidedFlags(_0x340106){const _0x1cac46=camelCaseFlagsToKebab(_0x340106),_0xa9eb66=parseDynamicFlags(),_0x230d0f=new Set([..._0x1cac46,..._0xa9eb66]);return Array['from'](_0x230d0f);}function a176_0x1a69(_0x5bfcac,_0x140204){_0x5bfcac=_0x5bfcac-0x15c;const _0x171453=a176_0x1714();let _0x1a69fe=_0x171453[_0x5bfcac];return _0x1a69fe;}export function normalizeLegacyBffSaveFlags(_0x1444b8){const _0xb2b739=a176_0x1a69,_0x5c3b74=new Set(_0x1444b8);return _0x5c3b74[_0xb2b739(0x173)](_0xb2b739(0x172))&&_0x5c3b74[_0xb2b739(0x16e)]('enable-bff-save'),Array[_0xb2b739(0x16b)](_0x5c3b74);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x2636cd,_0x509b70,_0x588986){const _0xca11db=a176_0x1a69;logger[_0xca11db(0x181)](process['cwd']());if(_0x588986?.[_0xca11db(0x166)]||_0x2636cd===_0xca11db(0x164)){showHelp();return;}console['error'](_0xca11db(0x179)+(_0x2636cd||_0xca11db(0x165))),console[_0xca11db(0x170)](_0xca11db(0x167)),console[_0xca11db(0x170)]('\x20\x20'+CLI_BIN_NAME+_0xca11db(0x184)),console['log']('\x20\x20'+CLI_BIN_NAME+_0xca11db(0x15d)),console['log'](''),console[_0xca11db(0x170)](_0xca11db(0x16c)+SKILLS_INSTALL_COMMAND_LINE),logger[_0xca11db(0x17b)](_0xca11db(0x180),_0xca11db(0x15e)+_0x2636cd),process[_0xca11db(0x16a)](0x1);}function showHelp(){const _0x2c39b2=a176_0x1a69;console[_0x2c39b2(0x170)]('\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+_0x2c39b2(0x160)+CLI_BIN_NAME+_0x2c39b2(0x174)+SKILLS_INSTALL_COMMAND_LINE+_0x2c39b2(0x176));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a177_0x559aef=a177_0x11c3;(function(_0x276b36,_0x41eb55){const _0x19c559=a177_0x11c3,_0x2db0c4=_0x276b36();while(!![]){try{const _0x56b1f7=parseInt(_0x19c559(0x131))/0x1+-parseInt(_0x19c559(0x13d))/0x2*(-parseInt(_0x19c559(0x128))/0x3)+-parseInt(_0x19c559(0x127))/0x4+parseInt(_0x19c559(0x135))/0x5*(-parseInt(_0x19c559(0x12f))/0x6)+parseInt(_0x19c559(0x120))/0x7*(parseInt(_0x19c559(0x122))/0x8)+-parseInt(_0x19c559(0x13e))/0x9+-parseInt(_0x19c559(0x130))/0xa*(-parseInt(_0x19c559(0x123))/0xb);if(_0x56b1f7===_0x41eb55)break;else _0x2db0c4['push'](_0x2db0c4['shift']());}catch(_0x28e4f1){_0x2db0c4['push'](_0x2db0c4['shift']());}}}(a177_0x3ce0,0xd8189));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=a177_0x559aef(0x134);export const NPX_SKILLS_SUBCOMMAND_ADD=a177_0x559aef(0x12e);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a177_0x559aef(0x138);export const LEGACY_RABETBASE_SKILL_SOURCE=a177_0x559aef(0x124);export const DEFAULT_RABETBASE_SKILL_NAME=a177_0x559aef(0x121);export function buildNpxSkillsAddArgv(_0xee893d){const _0x43dad8=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0xee893d&&_0x43dad8['push'](NPX_SKILLS_FLAG_SKILL,_0xee893d),_0x43dad8;}function a177_0x3ce0(){const _0x4e98ad=['add','3153348sceoqX','50ciwPaD','1731356mphosm','stdout','trim','skills','5gEtLjQ','log','join','lovrabet/rabetbase','skill','stdio','pipe','yes','301060uOkDog','12675168DlvFpl','2276428oEQJBW','Lovrabet','16llSrbD','568161qNGWZS','lovrabet/lovrabet-skill','status','inherit','2896640NXzJGm','18GsjxOy','npx','unknown','stderr','toString','exit\x20'];a177_0x3ce0=function(){return _0x4e98ad;};return a177_0x3ce0();}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()][a177_0x559aef(0x137)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a177_0x559aef(0x129),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}function a177_0x11c3(_0x852d69,_0x2b4649){_0x852d69=_0x852d69-0x120;const _0x3ce0bd=a177_0x3ce0();let _0x11c367=_0x3ce0bd[_0x852d69];return _0x11c367;}export function runNpxSkillsAdd(_0x3591e3,_0x8107e4){const _0x1787b4=a177_0x559aef;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x406542=_0x8107e4?.[_0x1787b4(0x13a)]??_0x1787b4(0x126),_0x17f6ed=resolveNpmBin(_0x1787b4(0x129)),_0x311d28=buildNpxSkillsAddArgv(_0x8107e4?.[_0x1787b4(0x139)]),_0x178f3=[_0x1787b4(0x129),..._0x311d28][_0x1787b4(0x137)]('\x20');console[_0x1787b4(0x136)]('*\x20'+_0x178f3);const _0x529545=spawnSync(_0x17f6ed,_0x311d28,{'cwd':_0x3591e3,'stdio':_0x406542,'env':process.env,'shell':![]}),_0x35f319=_0x529545[_0x1787b4(0x125)];if(_0x35f319===0x0)return{'ok':!![],'status':0x0};let _0x1a5a13=_0x1787b4(0x12d)+(_0x35f319??_0x1787b4(0x12a));if(_0x406542===_0x1787b4(0x13b)){const _0x183cb8=_0x529545['stderr']?_0x529545[_0x1787b4(0x12b)][_0x1787b4(0x12c)]()[_0x1787b4(0x133)]():'',_0x58b7dc=_0x529545[_0x1787b4(0x132)]?_0x529545[_0x1787b4(0x132)][_0x1787b4(0x12c)]()['trim']():'';if(_0x183cb8)_0x1a5a13=_0x183cb8;else{if(_0x58b7dc)_0x1a5a13=_0x58b7dc;}}return{'ok':![],'status':_0x35f319??null,'error':_0x1a5a13};}export function runNpxSkillsRemove(_0x23c782,_0x213ca6,_0x5c7344=LEGACY_RABETBASE_SKILL_SOURCE){const _0x54c7a6=a177_0x559aef;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1843ab=_0x213ca6?.[_0x54c7a6(0x13a)]??_0x54c7a6(0x126),_0x1a3b04=resolveNpmBin(_0x54c7a6(0x129)),_0x4cab07=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',_0x5c7344,NPX_SKILLS_FLAG_SKILL,_0x213ca6?.[_0x54c7a6(0x139)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x213ca6?.[_0x54c7a6(0x13c)]?['-y']:[]],_0x95ce70=[_0x1a3b04,..._0x4cab07][_0x54c7a6(0x137)]('\x20');console[_0x54c7a6(0x136)]('*\x20'+_0x95ce70);const _0x5f57a5=spawnSync(_0x1a3b04,_0x4cab07,{'cwd':_0x23c782,'stdio':_0x1843ab,'env':process.env,'shell':![]}),_0x129534=_0x5f57a5[_0x54c7a6(0x125)];if(_0x129534===0x0)return{'ok':!![],'status':0x0};let _0x368fa4=_0x54c7a6(0x12d)+(_0x129534??'unknown');if(_0x1843ab==='pipe'){const _0x503447=_0x5f57a5[_0x54c7a6(0x12b)]?_0x5f57a5['stderr']['toString']()[_0x54c7a6(0x133)]():'',_0x10e4cc=_0x5f57a5[_0x54c7a6(0x132)]?_0x5f57a5['stdout']['toString']()[_0x54c7a6(0x133)]():'';if(_0x503447)_0x368fa4=_0x503447;else{if(_0x10e4cc)_0x368fa4=_0x10e4cc;}}return{'ok':![],'status':_0x129534??null,'error':_0x368fa4};}export function runNpxSkillsAddGlobal(_0x40cc86,_0x3e0578,_0x247938){const _0x449220=a177_0x559aef;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x459403=_0x247938?.['stdio']??_0x449220(0x126),_0xc3f78f=resolveNpmBin(_0x449220(0x129)),_0x1893f8=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3e0578,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0xf2f78a=[_0x449220(0x129),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x3e0578,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');console[_0x449220(0x136)]('*\x20'+_0xf2f78a);const _0x5e3745=spawnSync(_0xc3f78f,_0x1893f8,{'cwd':_0x40cc86,'stdio':_0x459403,'env':process.env,'shell':![]}),_0x23799d=_0x5e3745[_0x449220(0x125)];if(_0x23799d===0x0)return{'ok':!![],'status':0x0};let _0x53ce7b=_0x449220(0x12d)+(_0x23799d??'unknown');if(_0x459403===_0x449220(0x13b)){const _0x32053d=_0x5e3745[_0x449220(0x12b)]?_0x5e3745[_0x449220(0x12b)][_0x449220(0x12c)]()[_0x449220(0x133)]():'',_0x3d8e0c=_0x5e3745[_0x449220(0x132)]?_0x5e3745[_0x449220(0x132)][_0x449220(0x12c)]()[_0x449220(0x133)]():'';if(_0x32053d)_0x53ce7b=_0x32053d;else{if(_0x3d8e0c)_0x53ce7b=_0x3d8e0c;}}return{'ok':![],'status':_0x23799d??null,'error':_0x53ce7b};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1b9f4e,_0xefbf20){const _0x403f8f=a178_0x2649,_0x1056fd=_0x1b9f4e();while(!![]){try{const _0x4bf76c=parseInt(_0x403f8f(0x12a))/0x1*(-parseInt(_0x403f8f(0x134))/0x2)+parseInt(_0x403f8f(0x130))/0x3*(parseInt(_0x403f8f(0x12c))/0x4)+-parseInt(_0x403f8f(0x12e))/0x5*(parseInt(_0x403f8f(0x133))/0x6)+parseInt(_0x403f8f(0x128))/0x7+-parseInt(_0x403f8f(0x12b))/0x8*(-parseInt(_0x403f8f(0x132))/0x9)+parseInt(_0x403f8f(0x12d))/0xa+-parseInt(_0x403f8f(0x137))/0xb;if(_0x4bf76c===_0xefbf20)break;else _0x1056fd['push'](_0x1056fd['shift']());}catch(_0xfd85a){_0x1056fd['push'](_0x1056fd['shift']());}}}(a178_0x4a26,0x5496f));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 a178_0x4a26(){const _0x4a18b4=['64910CayaIu','[REDACTED]','51561ktHHSY','rabetbase.command','247383wycJwb','78gtvgCx','644254yTMVFm','command','test','5520152KtqkEJ','error','stringify','some','durationMs','2286319KFStvv','service','1qKHPWE','168LyBOEL','92uhwMRs','400590nEBCrv'];a178_0x4a26=function(){return _0x4a18b4;};return a178_0x4a26();}function isSensitiveKey(_0xf39fb7){const _0x101163=a178_0x2649;return SENSITIVE_PATTERNS[_0x101163(0x13a)](_0x356bbc=>_0x356bbc[_0x101163(0x136)](_0xf39fb7));}function a178_0x2649(_0x36956a,_0x29baef){_0x36956a=_0x36956a-0x127;const _0x4a26e8=a178_0x4a26();let _0x2649e8=_0x4a26e8[_0x36956a];return _0x2649e8;}function sanitizeFlags(_0x20a00b){const _0x2838cd=a178_0x2649,_0x2fda7b={};for(const [_0xdd58ff,_0x5ebf2a]of Object['entries'](_0x20a00b)){isSensitiveKey(_0xdd58ff)?_0x2fda7b[_0xdd58ff]=_0x5ebf2a!=null&&_0x5ebf2a!==''?_0x2838cd(0x12f):_0x5ebf2a:_0x2fda7b[_0xdd58ff]=_0x5ebf2a;}return _0x2fda7b;}export async function reportCommandTrace(_0x4e28a2){const _0x213593=a178_0x2649;try{const _0x1288c8=sanitizeFlags(_0x4e28a2['flags']);await sendCliTraceLog({'spanName':_0x213593(0x131),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x4e28a2[_0x213593(0x129)],'command.name':_0x4e28a2[_0x213593(0x135)],'command.flags':JSON[_0x213593(0x139)](_0x1288c8),..._0x4e28a2[_0x213593(0x127)]!=null?{'command.duration_ms':_0x4e28a2[_0x213593(0x127)]}:{},..._0x4e28a2['error']?{'command.error':_0x4e28a2[_0x213593(0x138)]instanceof Error?_0x4e28a2[_0x213593(0x138)]['message']:String(_0x4e28a2[_0x213593(0x138)])}:{}}});}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4960c0,_0x117267){var _0x309385=a179_0x54b2,_0x56a770=_0x4960c0();while(!![]){try{var _0xf6e87e=-parseInt(_0x309385(0x11f))/0x1*(parseInt(_0x309385(0x11e))/0x2)+parseInt(_0x309385(0x120))/0x3+parseInt(_0x309385(0x11c))/0x4*(parseInt(_0x309385(0x128))/0x5)+parseInt(_0x309385(0x121))/0x6+parseInt(_0x309385(0x11d))/0x7+parseInt(_0x309385(0x122))/0x8+-parseInt(_0x309385(0x127))/0x9;if(_0xf6e87e===_0x117267)break;else _0x56a770['push'](_0x56a770['shift']());}catch(_0x2826db){_0x56a770['push'](_0x56a770['shift']());}}}(a179_0x2e61,0x99d9b));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a179_0x54b2(_0xc9636f,_0x391ea1){_0xc9636f=_0xc9636f-0x11c;var _0x2e6166=a179_0x2e61();var _0x54b262=_0x2e6166[_0xc9636f];return _0x54b262;}export async function reportCliHelpTrace(_0x2ab905,_0xd42108){var _0x3c4293=a179_0x54b2;try{await sendCliTraceLog({'spanName':_0x3c4293(0x125),'logData':{'rabetbase.help.kind':_0x2ab905,..._0xd42108?.[_0x3c4293(0x124)]&&{'rabetbase.help.service':_0xd42108['service']}}});}catch(_0x37e2ed){console[_0x3c4293(0x126)](_0x3c4293(0x123),_0x37e2ed);}}function a179_0x2e61(){var _0x32b744=['410412UBuWHP','1345602CjSvvq','8114632ExTGkd','Failed\x20to\x20report\x20CLI\x20help\x20trace:','service','cli.help','error','7915545pZSbZq','10VqvWqH','1061164sOIzAq','5408760vYWGlF','59948KxHfUI','39DsBnuA'];a179_0x2e61=function(){return _0x32b744;};return a179_0x2e61();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x297641,_0x41507d){const _0x1791e0=a180_0x1f38,_0x3fa562=_0x297641();while(!![]){try{const _0x352e42=-parseInt(_0x1791e0(0x153))/0x1*(parseInt(_0x1791e0(0x14e))/0x2)+parseInt(_0x1791e0(0x157))/0x3+-parseInt(_0x1791e0(0x14c))/0x4+-parseInt(_0x1791e0(0x156))/0x5*(parseInt(_0x1791e0(0x159))/0x6)+parseInt(_0x1791e0(0x14b))/0x7*(parseInt(_0x1791e0(0x150))/0x8)+-parseInt(_0x1791e0(0x14a))/0x9*(parseInt(_0x1791e0(0x14d))/0xa)+parseInt(_0x1791e0(0x152))/0xb*(parseInt(_0x1791e0(0x14f))/0xc);if(_0x352e42===_0x41507d)break;else _0x3fa562['push'](_0x3fa562['shift']());}catch(_0x59c14d){_0x3fa562['push'](_0x3fa562['shift']());}}}(a180_0x2a27,0x53a47));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';function a180_0x1f38(_0x5a5713,_0x212316){_0x5a5713=_0x5a5713-0x14a;const _0x2a27fb=a180_0x2a27();let _0x1f383b=_0x2a27fb[_0x5a5713];return _0x1f383b;}import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a180_0x2a27(){const _0x116a43=['44748dpPVqz','427urAXRb','52608zJiKWk','510AVeaEx','6kealpF','24viZGhx','71384PDibPX','unknown','1108316oIvjLi','40847pnQLTX','nickname','production','5wRRPqZ','1770822olKflf','tenant','3625350lmuXrJ'];a180_0x2a27=function(){return _0x116a43;};return a180_0x2a27();}import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x39899d=a180_0x1f38,_0x32b542=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x17c809=_0x32b542?.['user'];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x39899d(0x151)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?'daily':_0x39899d(0x155))}),setUserContext({'id':_0x17c809?.['id'],'username':_0x17c809?.['username'],'nickname':_0x17c809?.[_0x39899d(0x154)],'email':_0x17c809?.['email'],'tenantCode':_0x17c809?.[_0x39899d(0x158)]['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x32b542;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a181_0x9060(_0x44a680,_0x2f23e4){_0x44a680=_0x44a680-0x121;const _0xb8bdb4=a181_0xb8bd();let _0x906094=_0xb8bdb4[_0x44a680];return _0x906094;}(function(_0x25b8ae,_0x5d2d25){const _0xa4f5fc=a181_0x9060,_0x3b42cd=_0x25b8ae();while(!![]){try{const _0x2c01cb=-parseInt(_0xa4f5fc(0x126))/0x1*(-parseInt(_0xa4f5fc(0x128))/0x2)+parseInt(_0xa4f5fc(0x125))/0x3+parseInt(_0xa4f5fc(0x122))/0x4*(parseInt(_0xa4f5fc(0x121))/0x5)+parseInt(_0xa4f5fc(0x12b))/0x6*(-parseInt(_0xa4f5fc(0x12c))/0x7)+parseInt(_0xa4f5fc(0x124))/0x8+parseInt(_0xa4f5fc(0x127))/0x9+-parseInt(_0xa4f5fc(0x12d))/0xa;if(_0x2c01cb===_0x5d2d25)break;else _0x3b42cd['push'](_0x3b42cd['shift']());}catch(_0x366acd){_0x3b42cd['push'](_0x3b42cd['shift']());}}}(a181_0xb8bd,0x77ba6));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a181_0xb8bd(){const _0x50de6a=['287468hnfILe','exit','SIGTERM','427974VIiQDu','35BHqDop','27885000Gqnstf','then','4262750deUfyF','4NrsgRb','once','7284520umtTnU','1804350ROumpC','4bhaAgj','6264450fhReng'];a181_0xb8bd=function(){return _0x50de6a;};return a181_0xb8bd();}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x1bb060=a181_0x9060;process[_0x1bb060(0x123)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x48ebda=()=>{const _0x48408e=_0x1bb060;void flushOtelNodeIfUsed()[_0x48408e(0x12e)](()=>process[_0x48408e(0x129)](0x0));};process[_0x1bb060(0x123)]('SIGINT',_0x48ebda),process['once'](_0x1bb060(0x12a),_0x48ebda);}export async function exitWithOtelShutdown(_0x5680f6){const _0x5095e1=a181_0x9060;await flushOtelNodeIfUsed(),process[_0x5095e1(0x129)](_0x5680f6);}
|