@lovrabet/rabetbase-cli 2.1.1-beta.0 → 2.1.2-beta.0
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 -0
- 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 -0
- 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 -0
- 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/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/new.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/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/links.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/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/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/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/save.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/config/schema.js +1 -0
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -0
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -0
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -0
- 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/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 -0
- 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/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/config.js +1 -1
- package/lib/utils/copy-directory.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/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +3 -2
- package/lib/commands/api/doc.js +0 -1
- package/lib/commands/app/remote.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a115_0x2389d3=a115_0x50c2;(function(_0x5e2aba,_0x230140){const _0x55a0ca=a115_0x50c2,_0x45fadd=_0x5e2aba();while(!![]){try{const _0x88fdd6=parseInt(_0x55a0ca(0x100))/0x1*(parseInt(_0x55a0ca(0x103))/0x2)+parseInt(_0x55a0ca(0x102))/0x3+-parseInt(_0x55a0ca(0xe5))/0x4+parseInt(_0x55a0ca(0xf1))/0x5+parseInt(_0x55a0ca(0xf6))/0x6+parseInt(_0x55a0ca(0xf7))/0x7+-parseInt(_0x55a0ca(0xf8))/0x8*(parseInt(_0x55a0ca(0xeb))/0x9);if(_0x88fdd6===_0x230140)break;else _0x45fadd['push'](_0x45fadd['shift']());}catch(_0x200ef5){_0x45fadd['push'](_0x45fadd['shift']());}}}(a115_0x2124,0x75e40));import{access,mkdir,readdir,stat}from'node:fs/promises';import{constants}from'node:fs';import{dirname,join}from'node:path';import{findHookLocationByRemoteId,snakeToCamel}from'../../core/bff/utils.js';export const SUPPORTED_BFF_TYPES=[a115_0x2389d3(0xfe),a115_0x2389d3(0xfb),'HOOK'];export function normalizeBffType(_0x54c1b8){const _0xa0324=a115_0x2389d3;if(!_0x54c1b8)return undefined;const _0x340b18=_0x54c1b8['trim']()[_0xa0324(0xf3)]();return SUPPORTED_BFF_TYPES['includes'](_0x340b18)?_0x340b18:undefined;}async function scanJsFilesRecursively(_0x723294,_0x2b1869){const _0x520dd9=a115_0x2389d3,_0x155f96=[];try{const _0x3699c1=await readdir(_0x723294,{'withFileTypes':!![]});for(const _0x340c11 of _0x3699c1){const _0x206170=join(_0x723294,_0x340c11['name']);if(_0x340c11[_0x520dd9(0xf9)]())_0x155f96['push'](...await scanJsFilesRecursively(_0x206170,_0x2b1869+'/'+_0x340c11[_0x520dd9(0xf2)]));else _0x340c11[_0x520dd9(0xfc)]()&&_0x340c11[_0x520dd9(0xf2)][_0x520dd9(0xe2)]('.js')&&_0x155f96[_0x520dd9(0x104)]({'lockKey':_0x2b1869+'/'+_0x340c11[_0x520dd9(0xf2)][_0x520dd9(0x105)](/\.js$/,''),'filePath':_0x206170});}}catch(_0x2efd79){if(_0x2efd79[_0x520dd9(0xe8)]!==_0x520dd9(0x101))throw _0x2efd79;}return _0x155f96;}function a115_0x50c2(_0x210416,_0x37240e){_0x210416=_0x210416-0xe0;const _0x2124e0=a115_0x2124();let _0x50c2e0=_0x2124e0[_0x210416];return _0x50c2e0;}async function scanFlatFunctions(_0x2d6a5f,_0x54acfa){const _0x4eb99d=a115_0x2389d3,_0x267157=join(_0x2d6a5f['scriptsRootDir'],_0x54acfa),_0x1611d4=await scanJsFilesRecursively(_0x267157,_0x54acfa);return _0x1611d4[_0x4eb99d(0xe9)](({lockKey:_0x1485b3,filePath:_0x2e88d2})=>({'type':_0x54acfa,'name':_0x1485b3[_0x4eb99d(0xe7)]('/')['at'](-0x1)??'','filePath':_0x2e88d2,'lockKey':_0x1485b3}));}async function scanHookFunctions(_0x2f510a){const _0xb4ba20=a115_0x2389d3,_0x2f3338=join(_0x2f510a[_0xb4ba20(0xf5)],_0xb4ba20(0xe1)),_0x59c284=[];try{const _0x388661=await readdir(_0x2f3338,{'withFileTypes':!![]});for(const _0x57adc1 of _0x388661){if(!_0x57adc1[_0xb4ba20(0xf9)]())continue;const _0x5c5194=_0x57adc1[_0xb4ba20(0xf2)],_0x28cda1=join(_0x2f3338,_0x5c5194),_0x403d2d=await readdir(_0x28cda1,{'withFileTypes':!![]});for(const _0x227d1f of _0x403d2d){if(!_0x227d1f[_0xb4ba20(0xf9)]())continue;const _0x26e420=_0x227d1f['name'],_0x1f2bf9=join(_0x28cda1,_0x26e420),_0x10a0a6=await readdir(_0x1f2bf9,{'withFileTypes':!![]});for(const _0x4042a0 of _0x10a0a6){if(!_0x4042a0[_0xb4ba20(0xf9)]())continue;const _0x2a5437=_0x4042a0[_0xb4ba20(0xf2)],_0x16ae08=join(_0x1f2bf9,_0x2a5437),_0x2ab646=await readdir(_0x16ae08,{'withFileTypes':!![]});for(const _0x52e5a3 of _0x2ab646){if(!_0x52e5a3[_0xb4ba20(0xfc)]()||!_0x52e5a3[_0xb4ba20(0xf2)][_0xb4ba20(0xe2)]('.js'))continue;const _0xbbc5cb=_0x52e5a3[_0xb4ba20(0xf2)][_0xb4ba20(0x105)](/\.js$/,'');_0x59c284[_0xb4ba20(0x104)]({'type':'HOOK','name':_0xbbc5cb,'filePath':join(_0x16ae08,_0x52e5a3[_0xb4ba20(0xf2)]),'lockKey':_0xb4ba20(0xe6)+_0x5c5194+'/'+_0x26e420+'/'+_0x2a5437+'/'+_0xbbc5cb,'alias':_0x5c5194,'operationType':_0x26e420,'functionNode':_0x2a5437});}}}}}catch(_0xf679e0){if(_0xf679e0[_0xb4ba20(0xe8)]!==_0xb4ba20(0x101))throw _0xf679e0;}return _0x59c284;}function a115_0x2124(){const _0x121689=['scriptType','1385592kiqJNU','HOOK/','split','code','map','operationType','11979Vyogrl','beforeScriptId','after','all','set','functionNode','4703320ENUtAx','name','toUpperCase','datasetCode','scriptsRootDir','2595654byzWPP','1411067JHUHIN','11728JaYUHD','isDirectory','before','ENDPOINT','isFile','functionName','COMMON','afterScriptId','34589ZaPnVy','ENOENT','1437903XInqPA','42nucYKh','push','replace','F_OK','HOOK','endsWith','get'];a115_0x2124=function(){return _0x121689;};return a115_0x2124();}export async function scanLocalBffFunctions(_0x3605b,_0x588790){const _0x1966cd=a115_0x2389d3;if(_0x588790===_0x1966cd(0xfe)||_0x588790===_0x1966cd(0xfb))return scanFlatFunctions(_0x3605b,_0x588790);if(_0x588790==='HOOK')return scanHookFunctions(_0x3605b);const [_0xaea028,_0xf453c3,_0x459bbb]=await Promise[_0x1966cd(0xee)]([scanFlatFunctions(_0x3605b,_0x1966cd(0xfe)),scanFlatFunctions(_0x3605b,'ENDPOINT'),scanHookFunctions(_0x3605b)]);return[..._0xaea028,..._0xf453c3,..._0x459bbb];}export function resolveLocalFilePathFromLockKey(_0x597d4c,_0x300b0b){const _0x4a6df6=a115_0x2389d3;return join(_0x597d4c[_0x4a6df6(0xf5)],..._0x300b0b[_0x4a6df6(0xe7)]('/'))+'.js';}export function createHookLocationMap(_0x1e4b2b){const _0x40b36d=a115_0x2389d3,_0x4a1b61=new Map();for(const _0x2c2fbb of _0x1e4b2b){_0x2c2fbb[_0x40b36d(0xec)]&&_0x4a1b61['set'](_0x2c2fbb[_0x40b36d(0xec)],{'datasetCode':_0x2c2fbb[_0x40b36d(0xf4)],'operationType':snakeToCamel(_0x2c2fbb[_0x40b36d(0xea)]),'functionNode':_0x40b36d(0xfa)}),_0x2c2fbb[_0x40b36d(0xff)]&&_0x4a1b61[_0x40b36d(0xef)](_0x2c2fbb[_0x40b36d(0xff)],{'datasetCode':_0x2c2fbb[_0x40b36d(0xf4)],'operationType':snakeToCamel(_0x2c2fbb[_0x40b36d(0xea)]),'functionNode':_0x40b36d(0xed)});}return _0x4a1b61;}export function resolveRemoteScriptTarget(_0x169fe8,_0x5558bc,_0x5c0136,_0x1ac44d,_0x30c28e){const _0x485622=a115_0x2389d3,_0x25a380=normalizeBffType(_0x5558bc[_0x485622(0xe4)]);if(!_0x25a380||!_0x5558bc[_0x485622(0xfd)])return null;if(_0x25a380===_0x485622(0xe1)){const _0x419dd6=(_0x5558bc['id']?_0x5c0136[_0x485622(0xe3)](_0x5558bc['id']):undefined)??findHookLocationByRemoteId(_0x1ac44d,_0x5558bc['id']);if(!_0x419dd6)return null;const _0x2ed44a=_0x419dd6['alias']||_0x30c28e[_0x485622(0xe3)](_0x419dd6[_0x485622(0xf4)]),_0x30c724=_0x2ed44a??_0x419dd6[_0x485622(0xf4)],_0x7c5f7d={..._0x419dd6,'alias':_0x2ed44a},_0xedbd65=_0x485622(0xe6)+_0x30c724+'/'+_0x7c5f7d[_0x485622(0xea)]+'/'+_0x7c5f7d[_0x485622(0xf0)]+'/'+_0x5558bc[_0x485622(0xfd)];return{'lockKey':_0xedbd65,'filePath':resolveLocalFilePathFromLockKey(_0x169fe8,_0xedbd65),'type':_0x485622(0xe1),'hookLocation':_0x7c5f7d};}const _0x2e9844=_0x25a380+'/'+_0x5558bc['functionName'];return{'lockKey':_0x2e9844,'filePath':resolveLocalFilePathFromLockKey(_0x169fe8,_0x2e9844),'type':_0x25a380};}export async function ensureParentDirectory(_0x13f93f){await mkdir(dirname(_0x13f93f),{'recursive':!![]});}export async function fileExists(_0x13d335){const _0x456d42=a115_0x2389d3;try{return await access(_0x13d335,constants[_0x456d42(0xe0)]),!![];}catch{return![];}}export async function directoryExists(_0x54d263){try{const _0x286674=await stat(_0x54d263);return _0x286674['isDirectory']();}catch{return![];}}
|
package/lib/core/bff/hash.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xf07025,_0x5b358e){const _0x3294a4=a116_0x479c,_0xab4cc2=_0xf07025();while(!![]){try{const _0x1d9c4f=parseInt(_0x3294a4(0x10f))/0x1+-parseInt(_0x3294a4(0x112))/0x2+-parseInt(_0x3294a4(0x116))/0x3*(-parseInt(_0x3294a4(0x110))/0x4)+-parseInt(_0x3294a4(0x10d))/0x5+-parseInt(_0x3294a4(0x114))/0x6*(parseInt(_0x3294a4(0x113))/0x7)+parseInt(_0x3294a4(0x117))/0x8+-parseInt(_0x3294a4(0x10e))/0x9;if(_0x1d9c4f===_0x5b358e)break;else _0xab4cc2['push'](_0xab4cc2['shift']());}catch(_0x155ed9){_0xab4cc2['push'](_0xab4cc2['shift']());}}}(a116_0x374d,0xba5c3));function a116_0x479c(_0x4a8b84,_0x1b172f){_0x4a8b84=_0x4a8b84-0x10b;const _0x374da0=a116_0x374d();let _0x479ce4=_0x374da0[_0x4a8b84];return _0x479ce4;}import{readFile}from'node:fs/promises';import a116_0x442284 from'node:crypto';export function computeContentHash(_0x292052){const _0x366cfa=a116_0x479c;return a116_0x442284[_0x366cfa(0x111)](_0x366cfa(0x115))[_0x366cfa(0x10b)](_0x292052)[_0x366cfa(0x10c)]('hex');}function a116_0x374d(){const _0xec6895=['683316ZJnpDL','md5','329370JzGVCl','8553208mVfKuo','utf8','update','digest','1649270sBoTJD','13715523ipyAOG','986406CEepkt','32RFZkQW','createHash','177946NlfTkw','14HUPyni'];a116_0x374d=function(){return _0xec6895;};return a116_0x374d();}export async function computeFileHash(_0x4bee0f){const _0x420cfb=a116_0x479c,_0x76bd9d=await readFile(_0x4bee0f,_0x420cfb(0x118));return computeContentHash(_0x76bd9d);}
|
package/lib/core/bff/lock.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x128f2e,_0x31fb2b){const _0x54c005=a117_0xdf08,_0x1c990a=_0x128f2e();while(!![]){try{const _0x2fe453=-parseInt(_0x54c005(0x162))/0x1*(-parseInt(_0x54c005(0x14d))/0x2)+-parseInt(_0x54c005(0x14f))/0x3+-parseInt(_0x54c005(0x152))/0x4*(parseInt(_0x54c005(0x159))/0x5)+parseInt(_0x54c005(0x14c))/0x6+parseInt(_0x54c005(0x15e))/0x7*(parseInt(_0x54c005(0x14b))/0x8)+-parseInt(_0x54c005(0x160))/0x9*(parseInt(_0x54c005(0x161))/0xa)+parseInt(_0x54c005(0x155))/0xb;if(_0x2fe453===_0x31fb2b)break;else _0x1c990a['push'](_0x1c990a['shift']());}catch(_0x1c3ea8){_0x1c990a['push'](_0x1c990a['shift']());}}}(a117_0x175f,0x395df));function a117_0xdf08(_0x31a1b4,_0x23c5d1){_0x31a1b4=_0x31a1b4-0x14b;const _0x175f48=a117_0x175f();let _0xdf08cb=_0x175f48[_0x31a1b4];return _0xdf08cb;}function a117_0x175f(){const _0x2830f6=['8KGHrKG','313770FnLJhH','120ubtDYX',':\x20scriptsRoot\x20mismatch\x20—\x20','815586hFpQHF','functions','utf8','597768foisWs','Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','10082435uoomjc','apps','current\x20\x22','code','15QIPKVR','scriptsRoot','stringify','lastSync','object','1286173AwwYSb','parse','18Aeurfn','1163380QgVaws','587ibGtYH'];a117_0x175f=function(){return _0x2830f6;};return a117_0x175f();}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x43cfdc,_0x5a3d45,_0x538b2d,_0x4716c3){const _0x15e4a3=a117_0xdf08,_0x47d20a={'apps':_0x43cfdc[_0x15e4a3(0x156)]&&typeof _0x43cfdc[_0x15e4a3(0x156)]===_0x15e4a3(0x15d)?_0x43cfdc[_0x15e4a3(0x156)]:{}};let _0x58d05b=_0x47d20a['apps'][_0x5a3d45];if(!_0x58d05b)return _0x58d05b={'scriptsRoot':_0x538b2d,'lastSync':'','functions':{}},_0x47d20a[_0x15e4a3(0x156)][_0x5a3d45]=_0x58d05b,{'lockData':_0x47d20a,'appLock':_0x58d05b};if(!_0x58d05b['scriptsRoot'])_0x58d05b[_0x15e4a3(0x15a)]=_0x538b2d;else{if(_0x58d05b[_0x15e4a3(0x15a)]!==_0x538b2d)throw new Error(_0x4716c3+_0x15e4a3(0x14e)+(_0x15e4a3(0x157)+_0x538b2d+'\x22\x20vs\x20lock\x20\x22'+_0x58d05b['scriptsRoot']+'\x22.\x20')+_0x15e4a3(0x154));}return!_0x58d05b[_0x15e4a3(0x150)]&&(_0x58d05b[_0x15e4a3(0x150)]={}),!_0x58d05b['lastSync']&&(_0x58d05b[_0x15e4a3(0x15c)]=''),{'lockData':_0x47d20a,'appLock':_0x58d05b};}export async function readBffLockFile(_0x55678a){const _0x19a4db=a117_0xdf08;try{const _0x55a015=await readFile(_0x55678a,_0x19a4db(0x151)),_0x9b8a8f=JSON[_0x19a4db(0x15f)](_0x55a015);return{'apps':_0x9b8a8f[_0x19a4db(0x156)]&&typeof _0x9b8a8f[_0x19a4db(0x156)]==='object'?_0x9b8a8f[_0x19a4db(0x156)]:{}};}catch(_0x3770fc){if(_0x3770fc[_0x19a4db(0x158)]==='ENOENT')return null;throw new Error(_0x19a4db(0x153)+String(_0x3770fc));}}export async function writeBffLockFile(_0x4c2ced,_0x394e60){const _0x282a67=a117_0xdf08;await mkdir(dirname(_0x4c2ced),{'recursive':!![]}),await writeFile(_0x4c2ced,JSON[_0x282a67(0x15b)](_0x394e60,null,0x2),_0x282a67(0x151));}
|
package/lib/core/bff/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3fb7b3,_0x580a72){const _0x2c53cc=a119_0x2b17,_0x528bc3=_0x3fb7b3();while(!![]){try{const _0xc093e=-parseInt(_0x2c53cc(0xdd))/0x1*(parseInt(_0x2c53cc(0xd7))/0x2)+-parseInt(_0x2c53cc(0xdf))/0x3+parseInt(_0x2c53cc(0xe4))/0x4+-parseInt(_0x2c53cc(0xe7))/0x5+parseInt(_0x2c53cc(0xe2))/0x6*(-parseInt(_0x2c53cc(0xe0))/0x7)+parseInt(_0x2c53cc(0xe3))/0x8*(parseInt(_0x2c53cc(0xe6))/0x9)+parseInt(_0x2c53cc(0xd3))/0xa;if(_0xc093e===_0x580a72)break;else _0x528bc3['push'](_0x528bc3['shift']());}catch(_0x479ff0){_0x528bc3['push'](_0x528bc3['shift']());}}}(a119_0x27ae,0x8d2af));export function snakeToCamel(_0x4ce7b0){const _0x4c1438=a119_0x2b17;return _0x4ce7b0[_0x4c1438(0xde)]()[_0x4c1438(0xd5)](/_([a-z])/g,(_0x9538a9,_0x5a42fe)=>_0x5a42fe[_0x4c1438(0xd4)]());}function a119_0x2b17(_0x3a9de9,_0x3f7009){_0x3a9de9=_0x3a9de9-0xd2;const _0x27ae8c=a119_0x27ae();let _0x2b1751=_0x27ae8c[_0x3a9de9];return _0x2b1751;}export function findHookLocationByRemoteId(_0x5affac,_0x492708){const _0x27ba64=a119_0x2b17;if(!_0x492708)return undefined;for(const _0x4ea534 of Object['values'](_0x5affac)){if(_0x4ea534[_0x27ba64(0xd9)]===_0x492708&&_0x4ea534[_0x27ba64(0xe1)]&&_0x4ea534['operationType']&&_0x4ea534[_0x27ba64(0xda)])return{'datasetCode':_0x4ea534[_0x27ba64(0xe1)],'operationType':_0x4ea534[_0x27ba64(0xd6)],'functionNode':_0x4ea534[_0x27ba64(0xda)]};}return undefined;}function a119_0x27ae(){const _0x219418=['operationType','6mxMMEM','match','remoteId','functionNode','trim','before','327983EGUqqN','toLowerCase','591471GOfhfI','797083YwJZnt','datasetCode','6ZQZLSh','5963464CTrdoP','3146780FwcbIE','test','9zVjvsB','2293885JeJWZH','after','7998470BmsHLe','toUpperCase','replace'];a119_0x27ae=function(){return _0x219418;};return a119_0x27ae();}export function extractScriptDescription(_0xda9769){const _0x17cadc=a119_0x2b17,_0x6bcf1e=_0xda9769[_0x17cadc(0xd8)](/\[\s*脚本描述\s*]\s*(.+)/);return _0x6bcf1e?.[0x1]?.[_0x17cadc(0xdb)]()||undefined;}export function isValidBffFunctionName(_0x24fb9d){const _0xe749fa=a119_0x2b17;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0xe749fa(0xe5)](_0x24fb9d);}export function normalizeHookFunctionNode(_0x4d42ce){const _0x412f00=a119_0x2b17;if(!_0x4d42ce)return undefined;const _0x5baa6d=_0x4d42ce['trim']()[_0x412f00(0xde)]();if(_0x5baa6d===_0x412f00(0xdc)||_0x5baa6d===_0x412f00(0xd2))return _0x5baa6d;return undefined;}
|
package/lib/core/db-resolver.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x176699,_0x4a0dda){const _0x48b513=a120_0x1287,_0x3cf82d=_0x176699();while(!![]){try{const _0x119ecd=-parseInt(_0x48b513(0x128))/0x1+parseInt(_0x48b513(0x13a))/0x2*(parseInt(_0x48b513(0x122))/0x3)+parseInt(_0x48b513(0x12e))/0x4+parseInt(_0x48b513(0x126))/0x5*(-parseInt(_0x48b513(0x127))/0x6)+parseInt(_0x48b513(0x11f))/0x7*(parseInt(_0x48b513(0x130))/0x8)+-parseInt(_0x48b513(0x138))/0x9+parseInt(_0x48b513(0x129))/0xa;if(_0x119ecd===_0x4a0dda)break;else _0x3cf82d['push'](_0x3cf82d['shift']());}catch(_0x4a316b){_0x3cf82d['push'](_0x3cf82d['shift']());}}}(a120_0x4870,0x67a25));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x28928c){const _0x1b1b1c=a120_0x1287;if(cache['has'](_0x28928c))return cache[_0x1b1b1c(0x123)](_0x28928c);const _0x27019e=await listDatasets(_0x28928c),_0x3bcdc8=new Map();for(const _0x27cd83 of _0x27019e){const _0x1dce42=_0x27cd83[_0x1b1b1c(0x134)];_0x1dce42?.[_0x1b1b1c(0x131)]!=null&&_0x3bcdc8[_0x1b1b1c(0x137)](_0x1dce42['dbId'],_0x1dce42[_0x1b1b1c(0x12b)]??_0x1b1b1c(0x132)+_0x1dce42[_0x1b1b1c(0x131)]);}const _0x129e4c=[..._0x3bcdc8['entries']()][_0x1b1b1c(0x121)](([_0x14d05d,_0xef47fc])=>({'dbId':_0x14d05d,'dbName':_0xef47fc}));return cache[_0x1b1b1c(0x137)](_0x28928c,_0x129e4c),_0x129e4c;}function a120_0x1287(_0x1d344b,_0x34abe2){_0x1d344b=_0x1d344b-0x11f;const _0x4870f7=a120_0x4870();let _0x128732=_0x4870f7[_0x1d344b];return _0x128732;}export async function resolveDb(_0x50a756,_0x1c135a){const _0x373f54=a120_0x1287,_0x5644e1=await listDatabases(_0x50a756);if(_0x5644e1['length']===0x0)return{'resolved':[],'error':_0x373f54(0x12a)};if(!_0x1c135a)return{'resolved':_0x5644e1};const _0x47ba08=Number(_0x1c135a);if(!Number['isNaN'](_0x47ba08)){const _0x5266f7=_0x5644e1[_0x373f54(0x124)](_0x4ca652=>_0x4ca652[_0x373f54(0x131)]===_0x47ba08);if(_0x5266f7)return{'resolved':[_0x5266f7]};}const _0x417011=_0x1c135a[_0x373f54(0x13b)](),_0x353108=_0x5644e1[_0x373f54(0x135)](_0x19805e=>_0x19805e[_0x373f54(0x12b)]['toLowerCase']()[_0x373f54(0x125)](_0x417011));if(_0x353108[_0x373f54(0x120)]>0x0)return{'resolved':_0x353108};const _0xdd5f35=_0x5644e1[_0x373f54(0x121)](_0xcba23f=>_0xcba23f[_0x373f54(0x12b)]+'\x20('+_0xcba23f[_0x373f54(0x131)]+')')[_0x373f54(0x136)](',\x20');return{'resolved':[],'error':_0x373f54(0x12d)+_0x1c135a+_0x373f54(0x12c)+_0xdd5f35};}export async function resolveOneDb(_0x206ae5,_0x493880){const _0x26673a=a120_0x1287,{resolved:_0x3fad03,error:_0xa9fde2}=await resolveDb(_0x206ae5,_0x493880);if(_0xa9fde2)return{'db':null,'error':_0xa9fde2};if(_0x3fad03[_0x26673a(0x120)]===0x1)return{'db':_0x3fad03[0x0]};if(!_0x493880){const _0x5bf966=_0x3fad03[_0x26673a(0x121)](_0x5022f6=>_0x5022f6['dbName']+'\x20('+_0x5022f6[_0x26673a(0x131)]+')')[_0x26673a(0x136)](',\x20');return{'db':null,'error':_0x26673a(0x139)+_0x5bf966};}const _0x182301=_0x3fad03[_0x26673a(0x121)](_0x1be764=>_0x1be764['dbName']+'\x20('+_0x1be764[_0x26673a(0x131)]+')')[_0x26673a(0x136)](',\x20');return{'db':null,'error':'\x22'+_0x493880+_0x26673a(0x133)+_0x182301+_0x26673a(0x12f)};}export async function getDbName(_0x1929f4,_0x158572){const _0x5b4348=a120_0x1287,_0x363073=await listDatabases(_0x1929f4);return _0x363073['find'](_0x1d7577=>_0x1d7577[_0x5b4348(0x131)]===_0x158572)?.[_0x5b4348(0x12b)];}function a120_0x4870(){const _0x166784=['6GmWYAJ','755230pfzDdC','3223720AcYLEu','No\x20linked\x20databases\x20found\x20for\x20this\x20app.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','dbName','\x22.\x20Available:\x20','No\x20database\x20matching\x20\x22','2422468iBYAkd','.\x20Be\x20more\x20specific.','8arQcDo','dbId','db-','\x22\x20matches\x20multiple\x20databases:\x20','dbtableConfig','filter','join','set','6320718RpkCnl','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','945388FXQErF','toLowerCase','5309437HAxmQa','length','map','3aQyKkv','get','find','includes','1385785ihvUfh'];a120_0x4870=function(){return _0x166784;};return a120_0x4870();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a121_0x2d21(_0x2b03b7,_0x215c86){_0x2b03b7=_0x2b03b7-0xc4;const _0x49109b=a121_0x4910();let _0x2d2151=_0x49109b[_0x2b03b7];return _0x2d2151;}function a121_0x4910(){const _0x47c609=['toUpperCase','add','\x20query\x20targeting\x20','3264GuNHLR','type','8071mKsxZQ','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','startsWith','24zFjdYu','5307809MQHimS','unknown\x20table(s)','DELETE','2875371uFprSO','UPDATE','UNKNOWN','from','test','10HNuIqL','SQL\x20content\x20is\x20empty','4404RUdXlD','\x20with\x20parameters:\x20','9604107SuCTRf','length','trim','reason','DDL','4kjNtGx','replace','push','matchAll','INSERT','4YOcyhC','includes','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','11815xQuIsZ','isDangerous','1661kGsOlt','598385NykjTn','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'];a121_0x4910=function(){return _0x47c609;};return a121_0x4910();}(function(_0x39a815,_0x22540d){const _0x524e77=a121_0x2d21,_0x536093=_0x39a815();while(!![]){try{const _0x253430=parseInt(_0x524e77(0xe4))/0x1*(parseInt(_0x524e77(0xde))/0x2)+parseInt(_0x524e77(0xcb))/0x3*(-parseInt(_0x524e77(0xd9))/0x4)+-parseInt(_0x524e77(0xe1))/0x5*(-parseInt(_0x524e77(0xe9))/0x6)+-parseInt(_0x524e77(0xc4))/0x7*(parseInt(_0x524e77(0xc7))/0x8)+parseInt(_0x524e77(0xd4))/0x9*(-parseInt(_0x524e77(0xd0))/0xa)+parseInt(_0x524e77(0xe3))/0xb*(-parseInt(_0x524e77(0xd2))/0xc)+parseInt(_0x524e77(0xc8))/0xd;if(_0x253430===_0x22540d)break;else _0x536093['push'](_0x536093['shift']());}catch(_0x59b260){_0x536093['push'](_0x536093['shift']());}}}(a121_0x4910,0xc4cbf));export function detectSqlType(_0x46f1cd){const _0x96005e=a121_0x2d21;if(!_0x46f1cd?.[_0x96005e(0xd6)]())return{'type':_0x96005e(0xcd),'isSelectOnly':![],'isDangerous':![],'reason':_0x96005e(0xd1)};const _0x36e6f5=_0x46f1cd['replace'](/#\{[^}]*\}/g,'?')[_0x96005e(0xda)](/\$\{[^}]*\}/g,'?')[_0x96005e(0xda)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x96005e(0xda)](/\/\*[\s\S]*?\*\//g,'')[_0x96005e(0xd6)](),_0x38dfc4=_0x36e6f5['split']('\x0a');let _0x28735b='';for(const _0x140b51 of _0x38dfc4){const _0x53361e=_0x140b51['trim']();if(!_0x53361e||_0x53361e[_0x96005e(0xc6)]('--')||_0x53361e[_0x96005e(0xc6)]('/*'))continue;_0x28735b=_0x53361e;break;}const _0x47985f=_0x28735b[_0x96005e(0xe6)]();if(_0x47985f[_0x96005e(0xc6)]('SELECT')||_0x47985f[_0x96005e(0xc6)]('WITH')){const _0x4134ef=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x96005e(0xcf)](_0x36e6f5);return{'type':'SELECT','isSelectOnly':!_0x4134ef,'isDangerous':_0x4134ef,'reason':_0x4134ef?'SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT':undefined};}if(_0x47985f[_0x96005e(0xc6)](_0x96005e(0xdd)))return{'type':_0x96005e(0xdd),'isSelectOnly':![],'isDangerous':![]};if(_0x47985f[_0x96005e(0xc6)]('UPDATE'))return{'type':_0x96005e(0xcc),'isSelectOnly':![],'isDangerous':![]};if(_0x47985f[_0x96005e(0xc6)]('DELETE'))return{'type':_0x96005e(0xca),'isSelectOnly':![],'isDangerous':!![],'reason':_0x96005e(0xe5)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x96005e(0xcf)](_0x47985f))return{'type':_0x96005e(0xd8),'isSelectOnly':![],'isDangerous':!![],'reason':_0x96005e(0xc5)};return{'type':_0x96005e(0xcd),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x16ec05){const _0x3a8edb=a121_0x2d21,_0x3d1530=_0x16ec05[_0x3a8edb(0xda)](/#\{[^}]*\}/g,'?')[_0x3a8edb(0xda)](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')[_0x3a8edb(0xda)](/--.*$/gm,'')[_0x3a8edb(0xda)](/\/\*[\s\S]*?\*\//g,''),_0x35bc09=[],_0x1ee3cc=_0x3d1530['match'](/FROM\s+([^\s,)(]+)/i);if(_0x1ee3cc?.[0x1])_0x35bc09[_0x3a8edb(0xdb)](_0x1ee3cc[0x1][_0x3a8edb(0xda)](/[`"]/g,''));for(const _0x2ba407 of _0x3d1530['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x22b93a=_0x2ba407[0x1]?.['replace'](/[`"]/g,'');if(_0x22b93a&&!_0x35bc09['includes'](_0x22b93a))_0x35bc09[_0x3a8edb(0xdb)](_0x22b93a);}const _0x1253d8=_0x3d1530['match'](/INTO\s+([^\s(]+)/i);if(_0x1253d8?.[0x1]){const _0x576194=_0x1253d8[0x1][_0x3a8edb(0xda)](/[`"]/g,'');if(!_0x35bc09[_0x3a8edb(0xdf)](_0x576194))_0x35bc09[_0x3a8edb(0xdb)](_0x576194);}const _0x4136c9=_0x3d1530['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0x4136c9?.[0x1]){const _0x17fb16=_0x4136c9[0x1][_0x3a8edb(0xda)](/[`"]/g,'');if(!_0x35bc09['includes'](_0x17fb16))_0x35bc09[_0x3a8edb(0xdb)](_0x17fb16);}return _0x35bc09;}function extractParameters(_0x3d5584){const _0x57d68=a121_0x2d21,_0x251704=new Set();for(const _0x5a1974 of _0x3d5584[_0x57d68(0xdc)](/#\{(\w+)\}/g))if(_0x5a1974[0x1])_0x251704[_0x57d68(0xe7)](_0x5a1974[0x1]);for(const _0x54ccc4 of _0x3d5584[_0x57d68(0xdc)](/\$\{(\w+)\}/g))if(_0x54ccc4[0x1])_0x251704[_0x57d68(0xe7)](_0x54ccc4[0x1]);return Array[_0x57d68(0xce)](_0x251704);}export function validateSql(_0x819d69){const _0x13bd28=a121_0x2d21,_0x4fdee8=detectSqlType(_0x819d69),_0x7697a4=extractTables(_0x819d69),_0x276f9b=extractParameters(_0x819d69);if(_0x4fdee8[_0x13bd28(0xe2)])return{'valid':![],'sqlType':_0x4fdee8,'tables':_0x7697a4,'parameters':_0x276f9b,'message':_0x4fdee8[_0x13bd28(0xd7)]||_0x4fdee8['type']+_0x13bd28(0xe0)};if(_0x4fdee8[_0x13bd28(0xea)]===_0x13bd28(0xcd))return{'valid':![],'sqlType':_0x4fdee8,'tables':_0x7697a4,'parameters':_0x276f9b,'message':'Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'};return{'valid':!![],'sqlType':_0x4fdee8,'tables':_0x7697a4,'parameters':_0x276f9b,'message':_0x4fdee8[_0x13bd28(0xea)]+_0x13bd28(0xe8)+(_0x7697a4['length']?_0x7697a4['join'](',\x20'):_0x13bd28(0xc9))+(_0x276f9b[_0x13bd28(0xd5)]?_0x13bd28(0xd3)+_0x276f9b['join'](',\x20'):'')};}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a122_0x49ffbb=a122_0x27d0;(function(_0x16cc73,_0x153d4c){const _0x27d33f=a122_0x27d0,_0x183759=_0x16cc73();while(!![]){try{const _0x5426d6=parseInt(_0x27d33f(0x116))/0x1*(parseInt(_0x27d33f(0x111))/0x2)+parseInt(_0x27d33f(0x10e))/0x3*(-parseInt(_0x27d33f(0x118))/0x4)+-parseInt(_0x27d33f(0x109))/0x5*(-parseInt(_0x27d33f(0x110))/0x6)+-parseInt(_0x27d33f(0x108))/0x7*(parseInt(_0x27d33f(0x119))/0x8)+parseInt(_0x27d33f(0x11a))/0x9+parseInt(_0x27d33f(0x10d))/0xa*(-parseInt(_0x27d33f(0x10b))/0xb)+-parseInt(_0x27d33f(0x117))/0xc*(parseInt(_0x27d33f(0x114))/0xd);if(_0x5426d6===_0x153d4c)break;else _0x183759['push'](_0x183759['shift']());}catch(_0x8e9b4c){_0x183759['push'](_0x183759['shift']());}}}(a122_0x2b88,0xb8e6b));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a122_0x2b88(){const _0x1e283b=['2640065qaLOof','join','22yekPRH','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','2061820yGwhxQ','32244KFHznU','\x0a\x20\x20\x20\x20\x20\x20\x20','12WwQaAj','5440pkVnLQ','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','13aSUjnj','\x20auth`\x20to\x20login\x20first.','293AVaxrk','16417428Zxrqnc','92MTBGCG','56yQfLSA','9919719YfbnpG','170135MtTdma'];a122_0x2b88=function(){return _0x1e283b;};return a122_0x2b88();}export{CliError};function a122_0x27d0(_0x533c1b,_0x2bca6a){_0x533c1b=_0x533c1b-0x108;const _0x2b884f=a122_0x2b88();let _0x27d029=_0x2b884f[_0x533c1b];return _0x27d029;}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Run\x20`'+CLI_BIN_NAME+a122_0x49ffbb(0x115),'configMissingHint':['Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+a122_0x49ffbb(0x112),'Tip:\x20`'+CLI_BIN_NAME+a122_0x49ffbb(0x10c)][a122_0x49ffbb(0x10a)](a122_0x49ffbb(0x10f)),'notInProjectHint':a122_0x49ffbb(0x113)});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x308054,_0x4100c5){var _0x410fd6=a123_0x43db,_0x2d80dd=_0x308054();while(!![]){try{var _0x846c14=-parseInt(_0x410fd6(0x13c))/0x1*(-parseInt(_0x410fd6(0x13a))/0x2)+-parseInt(_0x410fd6(0x139))/0x3+-parseInt(_0x410fd6(0x13f))/0x4*(parseInt(_0x410fd6(0x13b))/0x5)+parseInt(_0x410fd6(0x138))/0x6*(parseInt(_0x410fd6(0x141))/0x7)+parseInt(_0x410fd6(0x136))/0x8*(parseInt(_0x410fd6(0x13d))/0x9)+parseInt(_0x410fd6(0x135))/0xa*(parseInt(_0x410fd6(0x140))/0xb)+-parseInt(_0x410fd6(0x13e))/0xc*(parseInt(_0x410fd6(0x137))/0xd);if(_0x846c14===_0x4100c5)break;else _0x2d80dd['push'](_0x2d80dd['shift']());}catch(_0x5f1ec4){_0x2d80dd['push'](_0x2d80dd['shift']());}}}(a123_0x43c7,0xa4365));function a123_0x43db(_0x327f59,_0x1066d9){_0x327f59=_0x327f59-0x135;var _0x43c76e=a123_0x43c7();var _0x43db95=_0x43c76e[_0x327f59];return _0x43db95;}function a123_0x43c7(){var _0xbd0571=['65244NrPXiZ','4EDrfYO','4653QSIecW','7slfHMJ','22170eCPnMn','8LSkLKr','6305WhLFhy','7657278qqAebu','235623ixzwiu','62994ZowQMf','1628645FVdkiP','29RwOQHp','5277699BcuXhn'];a123_0x43c7=function(){return _0xbd0571;};return a123_0x43c7();}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a123_0x2b2058}from'@lovrabet/cli-framework';export function buildAllFlags(_0x53a5d3){return a123_0x2b2058(_0x53a5d3,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a124_0x36ce33=a124_0x1c83;function a124_0x1c83(_0x39042f,_0x24499a){_0x39042f=_0x39042f-0x146;const _0x55ea75=a124_0x55ea();let _0x1c830d=_0x55ea75[_0x39042f];return _0x1c830d;}function a124_0x55ea(){const _0x112763=['3928281CgCyOZ','5214232GnDFPn','2361724Tyexaz','1878708zpaitU','427KpVumG','2681586jioWgx','70XeZXLA','1969595MOQXWQ','1erZyym','validateFlags','123594VecnkJ'];a124_0x55ea=function(){return _0x112763;};return a124_0x55ea();}(function(_0x433d8d,_0x4319db){const _0x555459=a124_0x1c83,_0x1b3109=_0x433d8d();while(!![]){try{const _0x1f0ca4=-parseInt(_0x555459(0x14d))/0x1*(parseInt(_0x555459(0x147))/0x2)+parseInt(_0x555459(0x150))/0x3+-parseInt(_0x555459(0x148))/0x4+-parseInt(_0x555459(0x14c))/0x5+parseInt(_0x555459(0x14f))/0x6*(-parseInt(_0x555459(0x149))/0x7)+parseInt(_0x555459(0x146))/0x8+parseInt(_0x555459(0x14a))/0x9*(parseInt(_0x555459(0x14b))/0xa);if(_0x1f0ca4===_0x4319db)break;else _0x1b3109['push'](_0x1b3109['shift']());}catch(_0x13e9cc){_0x1b3109['push'](_0x1b3109['shift']());}}}(a124_0x55ea,0xb619f));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a124_0x36ce33(0x14e)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a120_0x1bba4c=a120_0x1b48;function a120_0x1b48(_0x48e822,_0x185807){_0x48e822=_0x48e822-0xa3;const _0x4a522f=a120_0x4a52();let _0x1b4879=_0x4a522f[_0x48e822];return _0x1b4879;}(function(_0x465ced,_0x312f5f){const _0x3ac60f=a120_0x1b48,_0x20f4a5=_0x465ced();while(!![]){try{const _0x91e67c=-parseInt(_0x3ac60f(0xde))/0x1+-parseInt(_0x3ac60f(0xe5))/0x2*(-parseInt(_0x3ac60f(0xe4))/0x3)+parseInt(_0x3ac60f(0xad))/0x4*(parseInt(_0x3ac60f(0xa6))/0x5)+parseInt(_0x3ac60f(0xa8))/0x6+-parseInt(_0x3ac60f(0xbf))/0x7+parseInt(_0x3ac60f(0xbb))/0x8*(parseInt(_0x3ac60f(0xc1))/0x9)+parseInt(_0x3ac60f(0xdd))/0xa*(-parseInt(_0x3ac60f(0xe2))/0xb);if(_0x91e67c===_0x312f5f)break;else _0x20f4a5['push'](_0x20f4a5['shift']());}catch(_0x2d53ca){_0x20f4a5['push'](_0x20f4a5['shift']());}}}(a120_0x4a52,0xc4b93));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';function a120_0x4a52(){const _0x18a104=['\x20\x20Run\x20`','get','boolean','\x20<n>','\x20\x20\x20\x20\x20\x20','\x20\x20[high-risk-write]','\x20[flags]','\x20\x20GLOBAL\x20OPTIONS','split','19112IeGRKN','description','\x20\x20ARGS','risk','861707kBBsBU','commands','4905CBfBVn','length','\x20auth`\x20first).','\x20[global-options]\x20<service>\x20<command>\x20[flags]','function','enum','\x20\x20[write]','\x20\x20USAGE','required','name','Requires\x20authentication\x20(run\x20`','\x20<service>\x20<command>\x20--help`\x20for\x20command\x20flags.','wildcardDef','Requires\x20appcode\x20(set\x20via\x20`','type','flags','\x20|\x20','args','service','\x20<command>\x20[args]\x20[flags]','label','\x20\x20\x20\x20','\x20\x20PREREQUISITES','\x20project\x20init`\x20or\x20--appcode).','\x20<service>\x20--help`\x20for\x20service\x20commands.','\x20<value>','(required)','trim','18406090grYcNj','856275XnLvfN','join','helpExtra','hint','11LMeLgH','max','4702389HOayuo','2DkMpEp','push','requiresAuth','map','\x20\x20\x20\x20$\x20','\x20\x20FLAGS','dryRun','\x20\x20\x20\x20\x20\x20\x20\x20','filter','number','35YOdqkn','requiresAppCode','3293106ECvzoi','padEnd','command','high-risk-write','default','118540eIOiIs','tag','find','\x20\x20COMMANDS','\x20\x20\x20\x20Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.'];a120_0x4a52=function(){return _0x18a104;};return a120_0x4a52();}const RISK_LABELS={'read':'','write':a120_0x1bba4c(0xc7),'high-risk-write':a120_0x1bba4c(0xb7)};export function generateCommandHelp(_0x2d7afb){const _0x49b41f=a120_0x1bba4c,_0x11af7d=[],_0x37c888=_0x2d7afb[_0x49b41f(0xd3)]===_0x2d7afb[_0x49b41f(0xaa)]?CLI_BIN_NAME+'\x20'+_0x2d7afb[_0x49b41f(0xd3)]:CLI_BIN_NAME+'\x20'+_0x2d7afb[_0x49b41f(0xd3)]+'\x20'+_0x2d7afb[_0x49b41f(0xaa)],_0x4c542f=_0x2d7afb[_0x49b41f(0xd2)]?_0x2d7afb['args'][_0x49b41f(0xe8)](_0x522b4e=>_0x522b4e['required']!==![]?'<'+_0x522b4e[_0x49b41f(0xca)]+'>':'['+_0x522b4e[_0x49b41f(0xca)]+']')[_0x49b41f(0xdf)]('\x20'):'',_0x4b76e3=_0x4c542f?_0x37c888+'\x20'+_0x4c542f+_0x49b41f(0xb8):_0x37c888+'\x20[flags]';_0x11af7d[_0x49b41f(0xe6)](''),_0x11af7d[_0x49b41f(0xe6)]('\x20\x20'+_0x2d7afb[_0x49b41f(0xbc)]),_0x11af7d['push'](''),_0x11af7d[_0x49b41f(0xe6)](_0x49b41f(0xc8)),_0x11af7d['push'](_0x49b41f(0xd6)+_0x4b76e3),_0x11af7d[_0x49b41f(0xe6)](''),_0x11af7d['push']('\x20\x20RISK:\x20'+_0x2d7afb[_0x49b41f(0xbe)]);_0x2d7afb['risk']===_0x49b41f(0xab)&&_0x11af7d['push'](_0x49b41f(0xb1));_0x11af7d[_0x49b41f(0xe6)]('');if(_0x2d7afb[_0x49b41f(0xd2)]&&_0x2d7afb[_0x49b41f(0xd2)][_0x49b41f(0xc2)]>0x0){_0x11af7d[_0x49b41f(0xe6)](_0x49b41f(0xbd));const _0x55867c=Math[_0x49b41f(0xe3)](..._0x2d7afb[_0x49b41f(0xd2)][_0x49b41f(0xe8)](_0x4823aa=>_0x4823aa[_0x49b41f(0xca)][_0x49b41f(0xc2)]+0x2));for(const _0x16d017 of _0x2d7afb[_0x49b41f(0xd2)]){const _0x3d27b4=('<'+_0x16d017['name']+'>')['padEnd'](_0x55867c+0x2),_0x40bbed=_0x16d017[_0x49b41f(0xc9)]!==![]?'\x20(required)':'';_0x11af7d[_0x49b41f(0xe6)](_0x49b41f(0xd6)+_0x3d27b4+_0x16d017[_0x49b41f(0xbc)]+_0x40bbed);}_0x11af7d[_0x49b41f(0xe6)]('');}if(_0x2d7afb[_0x49b41f(0xd0)][_0x49b41f(0xc2)]>0x0||_0x2d7afb[_0x49b41f(0xeb)]||_0x2d7afb['hasFormat']!==![]){_0x11af7d['push'](_0x49b41f(0xea));const _0x43fbbd=buildAllFlags(_0x2d7afb),_0x1bbd39=Math[_0x49b41f(0xe3)](..._0x43fbbd[_0x49b41f(0xe8)](_0x5244f9=>formatFlagName(_0x5244f9)[_0x49b41f(0xc2)]));for(const _0x268202 of _0x43fbbd){_0x11af7d[_0x49b41f(0xe6)]('\x20\x20\x20\x20'+formatFlagName(_0x268202)['padEnd'](_0x1bbd39+0x2)+renderFlagDesc(_0x268202));}_0x11af7d[_0x49b41f(0xe6)]('');}const _0x4e81c9=[];_0x2d7afb[_0x49b41f(0xe7)]!==![]&&_0x4e81c9[_0x49b41f(0xe6)](_0x49b41f(0xcb)+CLI_BIN_NAME+_0x49b41f(0xc3));_0x2d7afb[_0x49b41f(0xa7)]!==![]&&_0x4e81c9[_0x49b41f(0xe6)](_0x49b41f(0xce)+CLI_BIN_NAME+_0x49b41f(0xd8));if(_0x4e81c9[_0x49b41f(0xc2)]>0x0){_0x11af7d['push'](_0x49b41f(0xd7));for(const _0x2ed7c6 of _0x4e81c9){_0x11af7d[_0x49b41f(0xe6)]('\x20\x20\x20\x20•\x20'+_0x2ed7c6);}_0x11af7d[_0x49b41f(0xe6)]('');}if(_0x2d7afb[_0x49b41f(0xe0)]){const _0x5f0114=typeof _0x2d7afb[_0x49b41f(0xe0)]===_0x49b41f(0xc5)?_0x2d7afb[_0x49b41f(0xe0)]():_0x2d7afb[_0x49b41f(0xe0)];_0x11af7d['push'](_0x5f0114),_0x11af7d['push']('');}return _0x11af7d['join']('\x0a');}export function generateServiceHelp(_0x2433e8){const _0x3881f7=a120_0x1bba4c,_0x224c78=getServiceEntry(_0x2433e8);if(!_0x224c78)return'\x20\x20Unknown\x20service:\x20'+_0x2433e8+'\x0a';const _0x43f200=[],_0x47fd9e=serviceGroups[_0x3881f7(0xb3)](_0x2433e8);_0x43f200[_0x3881f7(0xe6)](''),_0x43f200['push']('\x20\x20'+_0x224c78[_0x3881f7(0xd5)]),_0x43f200['push'](''),_0x43f200[_0x3881f7(0xe6)]('\x20\x20USAGE'),_0x43f200[_0x3881f7(0xe6)](_0x3881f7(0xd6)+CLI_BIN_NAME+'\x20'+_0x2433e8+_0x3881f7(0xd4)),_0x43f200[_0x3881f7(0xe6)](''),_0x43f200['push'](_0x3881f7(0xb0));for(const _0x4c961b of _0x224c78[_0x3881f7(0xc0)]){_0x43f200[_0x3881f7(0xe6)]('');const _0x4bea65=_0x4c961b[_0x3881f7(0xae)]?'\x20\x20'+_0x4c961b['tag'][_0x3881f7(0xdc)]():'';_0x43f200[_0x3881f7(0xe6)]('\x20\x20\x20\x20'+_0x4c961b['command']+_0x4bea65),_0x43f200['push'](_0x3881f7(0xb6)+_0x4c961b[_0x3881f7(0xbc)]);const _0x3322e0=_0x47fd9e?.[_0x3881f7(0xaf)](_0x5c9562=>_0x5c9562['command']===_0x4c961b[_0x3881f7(0xaa)]);if(_0x3322e0?.[_0x3881f7(0xd2)]&&_0x3322e0[_0x3881f7(0xd2)][_0x3881f7(0xc2)]>0x0){_0x43f200[_0x3881f7(0xe6)]('\x20\x20\x20\x20\x20\x20ARGS');const _0x585495=Math[_0x3881f7(0xe3)](..._0x3322e0['args'][_0x3881f7(0xe8)](_0xe7c08a=>_0xe7c08a[_0x3881f7(0xca)]['length']+0x2));for(const _0xb55a3c of _0x3322e0[_0x3881f7(0xd2)]){const _0x3459b1=('<'+_0xb55a3c[_0x3881f7(0xca)]+'>')[_0x3881f7(0xa9)](_0x585495+0x2),_0x394335=_0xb55a3c[_0x3881f7(0xc9)]!==![]?'\x20(required)':'';_0x43f200['push'](_0x3881f7(0xa3)+_0x3459b1+_0xb55a3c[_0x3881f7(0xbc)]+_0x394335);}}const _0xb88d6d=getCommandFlags(_0x2433e8,_0x4c961b['command'],_0x47fd9e);if(_0xb88d6d[_0x3881f7(0xc2)]>0x0){const _0x335257=Math['max'](..._0xb88d6d[_0x3881f7(0xe8)](_0x256c96=>formatFlagName(_0x256c96)[_0x3881f7(0xc2)]));for(const _0x15fbba of _0xb88d6d){_0x43f200[_0x3881f7(0xe6)](_0x3881f7(0xb6)+formatFlagName(_0x15fbba)['padEnd'](_0x335257+0x2)+renderFlagDesc(_0x15fbba));}}}return _0x43f200[_0x3881f7(0xe6)](''),_0x43f200[_0x3881f7(0xdf)]('\x0a');}export function generateFullHelp(){const _0x55bf25=a120_0x1bba4c,_0xc622cf=[];_0xc622cf[_0x55bf25(0xe6)](''),_0xc622cf[_0x55bf25(0xe6)]('\x20\x20'+CLI_DISPLAY_NAME),_0xc622cf[_0x55bf25(0xe6)](''),_0xc622cf[_0x55bf25(0xe6)](_0x55bf25(0xc8)),_0xc622cf[_0x55bf25(0xe6)](_0x55bf25(0xe9)+CLI_BIN_NAME+_0x55bf25(0xc4)),_0xc622cf[_0x55bf25(0xe6)](''),_0xc622cf[_0x55bf25(0xe6)](_0x55bf25(0xb9));const _0x1a75dc=GLOBAL_FLAGS[_0x55bf25(0xa4)](_0x458945=>!_0x458945['hidden']),_0x992511=Math[_0x55bf25(0xe3)](..._0x1a75dc[_0x55bf25(0xe8)](_0x73ce1c=>{const _0x4319ad=_0x55bf25,_0x381249=_0x73ce1c[_0x4319ad(0xe1)]?'\x20'+_0x73ce1c[_0x4319ad(0xe1)]:'';return('--'+_0x73ce1c['name']+_0x381249)[_0x4319ad(0xc2)];}));for(const _0x183c74 of _0x1a75dc){const _0x9e029d=_0x183c74[_0x55bf25(0xe1)]?'\x20'+_0x183c74[_0x55bf25(0xe1)]:'',_0x4b83d5=('--'+_0x183c74[_0x55bf25(0xca)]+_0x9e029d)['padEnd'](_0x992511+0x2);_0xc622cf[_0x55bf25(0xe6)](_0x55bf25(0xd6)+_0x4b83d5+_0x183c74[_0x55bf25(0xbc)]);}_0xc622cf[_0x55bf25(0xe6)](''),_0xc622cf['push'](_0x55bf25(0xb0)),_0xc622cf[_0x55bf25(0xe6)]('');for(const _0x4318a1 of serviceRegistry){_0xc622cf[_0x55bf25(0xe6)]('\x20\x20'+_0x4318a1['label']);if(_0x4318a1['isSingleCommand']){const _0x5f2fed=_0x4318a1[_0x55bf25(0xc0)][0x0],_0xb82f01=_0x5f2fed[_0x55bf25(0xae)]??'';_0xc622cf[_0x55bf25(0xe6)](_0x55bf25(0xd6)+_0x4318a1[_0x55bf25(0xd3)][_0x55bf25(0xa9)](0x12)+_0x5f2fed[_0x55bf25(0xbc)]+_0xb82f01);}else{const _0x3b39bd=_0x4318a1['commands']['map'](_0x7676=>_0x4318a1[_0x55bf25(0xd3)]+'\x20'+_0x7676['command']),_0x23b943=Math['max'](..._0x3b39bd[_0x55bf25(0xe8)](_0xa5d11d=>_0xa5d11d[_0x55bf25(0xc2)]));for(let _0x4bd561=0x0;_0x4bd561<_0x4318a1[_0x55bf25(0xc0)][_0x55bf25(0xc2)];_0x4bd561++){const _0x18876c=_0x4318a1[_0x55bf25(0xc0)][_0x4bd561],_0x333276=_0x18876c[_0x55bf25(0xae)]??'';_0xc622cf[_0x55bf25(0xe6)](_0x55bf25(0xd6)+_0x3b39bd[_0x4bd561][_0x55bf25(0xa9)](_0x23b943+0x2)+_0x18876c[_0x55bf25(0xbc)]+_0x333276);}}if(_0x4318a1[_0x55bf25(0xcd)]?.[_0x55bf25(0xe0)]){const _0x2d894c=typeof _0x4318a1['wildcardDef'][_0x55bf25(0xe0)]===_0x55bf25(0xc5)?_0x4318a1['wildcardDef'][_0x55bf25(0xe0)]():_0x4318a1[_0x55bf25(0xcd)][_0x55bf25(0xe0)];for(const _0x12e3f5 of _0x2d894c[_0x55bf25(0xba)]('\x0a')){_0xc622cf['push']('\x20\x20'+_0x12e3f5);}}_0xc622cf['push']('');}return _0xc622cf[_0x55bf25(0xe6)](_0x55bf25(0xb2)+CLI_BIN_NAME+_0x55bf25(0xd9)),_0xc622cf['push']('\x20\x20Run\x20`'+CLI_BIN_NAME+_0x55bf25(0xcc)),_0xc622cf['push'](''),_0xc622cf[_0x55bf25(0xdf)]('\x0a');}function getCommandFlags(_0x32563d,_0x29f7f2,_0x5333b4){const _0x5b1caa=a120_0x1bba4c;if(_0x5333b4){const _0x503de1=_0x5333b4['find'](_0x2752a6=>_0x2752a6[_0x5b1caa(0xaa)]===_0x29f7f2);if(_0x503de1)return buildAllFlags(_0x503de1);}return[];}function renderFlagDesc(_0x4f7a68){const _0x58c493=a120_0x1bba4c;let _0x4b625f=_0x4f7a68[_0x58c493(0xbc)];return _0x4f7a68[_0x58c493(0xc6)]&&_0x4f7a68[_0x58c493(0xc6)]['length']>0x0&&(_0x4b625f+='\x20('+_0x4f7a68[_0x58c493(0xc6)][_0x58c493(0xdf)](_0x58c493(0xd1))+')'),_0x4f7a68[_0x58c493(0xac)]!==undefined&&_0x4f7a68[_0x58c493(0xac)]!==''&&_0x4f7a68[_0x58c493(0xac)]!==![]&&(_0x4b625f+='\x20[default:\x20'+_0x4f7a68[_0x58c493(0xac)]+']'),_0x4f7a68[_0x58c493(0xc9)]&&!_0x4b625f['includes'](_0x58c493(0xdb))&&(_0x4b625f+='\x20(required)'),_0x4b625f;}function formatFlagName(_0xfe4312){const _0x32b372=a120_0x1bba4c,_0xc15e29=_0xfe4312[_0x32b372(0xcf)]===_0x32b372(0xb4)?'':_0xfe4312['type']===_0x32b372(0xa5)?_0x32b372(0xb5):_0x32b372(0xda);return'--'+_0xfe4312['name']+_0xc15e29;}
|
|
1
|
+
const a125_0x49bbbd=a125_0x84f5;(function(_0x19c22a,_0x363a64){const _0x66f2d1=a125_0x84f5,_0x1bea04=_0x19c22a();while(!![]){try{const _0xc207f5=parseInt(_0x66f2d1(0xd9))/0x1*(-parseInt(_0x66f2d1(0xd7))/0x2)+-parseInt(_0x66f2d1(0xdf))/0x3*(parseInt(_0x66f2d1(0xd6))/0x4)+parseInt(_0x66f2d1(0xd5))/0x5*(parseInt(_0x66f2d1(0xe2))/0x6)+parseInt(_0x66f2d1(0xe3))/0x7+parseInt(_0x66f2d1(0xd8))/0x8+parseInt(_0x66f2d1(0xda))/0x9+-parseInt(_0x66f2d1(0xd4))/0xa;if(_0xc207f5===_0x363a64)break;else _0x1bea04['push'](_0x1bea04['shift']());}catch(_0x5cc795){_0x1bea04['push'](_0x1bea04['shift']());}}}(a125_0x2313,0xef452));function a125_0x2313(){const _0x31c0fa=['27484velmYN','4uAPjXV','5172920WfueIl','419577KDnnQk','13699017tijiMY','\x20project\x20init`\x20or\x20--appcode).','generateServiceHelp','get','generateFullHelp','822rpAiwq','generateCommandHelp','Requires\x20appcode\x20(set\x20via\x20`','5630064EhgHkM','8669759XXilFu','6437510YdIuqf','5oBUBhT'];a125_0x2313=function(){return _0x31c0fa;};return a125_0x2313();}import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';function a125_0x84f5(_0x6fa9da,_0x1b8ffa){_0x6fa9da=_0x6fa9da-0xd4;const _0x2313fc=a125_0x2313();let _0x84f58a=_0x2313fc[_0x6fa9da];return _0x84f58a;}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':_0x3d93f4=>serviceGroups[a125_0x49bbbd(0xdd)](_0x3d93f4),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a125_0x49bbbd(0xe1)+CLI_BIN_NAME+a125_0x49bbbd(0xdb),'serviceUsageSuffix':'\x20[args]\x20[flags]','includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x31279a){const _0x1841b9=a125_0x49bbbd;return generators[_0x1841b9(0xe0)](_0x31279a);}export const generateServiceHelp=generators[a125_0x49bbbd(0xdc)];export const generateFullHelp=generators[a125_0x49bbbd(0xde)];
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a126_0xe9b5(){var _0x29bbc3=['8348584dmYGdy','7RSydwi','6091785ndqbwF','4132695DrQGas','6614310tGKYmk','243026vJVQoM','4563307eHADSU','4739740gYHvFo'];a126_0xe9b5=function(){return _0x29bbc3;};return a126_0xe9b5();}(function(_0x7bb4a5,_0x4a2946){var _0x32bcd4=a126_0x3f08,_0x37c309=_0x7bb4a5();while(!![]){try{var _0x5813b3=parseInt(_0x32bcd4(0x1a1))/0x1*(parseInt(_0x32bcd4(0x19d))/0x2)+parseInt(_0x32bcd4(0x19b))/0x3+parseInt(_0x32bcd4(0x19f))/0x4+-parseInt(_0x32bcd4(0x19a))/0x5+-parseInt(_0x32bcd4(0x19c))/0x6+parseInt(_0x32bcd4(0x19e))/0x7+-parseInt(_0x32bcd4(0x1a0))/0x8;if(_0x5813b3===_0x4a2946)break;else _0x37c309['push'](_0x37c309['shift']());}catch(_0x563b80){_0x37c309['push'](_0x37c309['shift']());}}}(a126_0xe9b5,0xab105));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';function a126_0x3f08(_0x766c7a,_0x4a62d7){_0x766c7a=_0x766c7a-0x19a;var _0xe9b520=a126_0xe9b5();var _0x3f08e2=_0xe9b520[_0x766c7a];return _0x3f08e2;}export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a127_0x20a1(){var _0x521312=['77HSqRQL','18xHsIfa','1199592EhneeM','1156670Xysywt','97273OkbaPt','8UpTjPh','1471134nKDsFw','259936rXREed','704235cklasF','1902252DQoMMk','2MwyHrn'];a127_0x20a1=function(){return _0x521312;};return a127_0x20a1();}function a127_0x353f(_0x442726,_0x1ebefe){_0x442726=_0x442726-0x10e;var _0x20a161=a127_0x20a1();var _0x353f46=_0x20a161[_0x442726];return _0x353f46;}(function(_0x320035,_0x23510a){var _0x1d09ee=a127_0x353f,_0x3c066a=_0x320035();while(!![]){try{var _0x5d0cde=-parseInt(_0x1d09ee(0x110))/0x1+-parseInt(_0x1d09ee(0x116))/0x2*(parseInt(_0x1d09ee(0x112))/0x3)+-parseInt(_0x1d09ee(0x111))/0x4*(-parseInt(_0x1d09ee(0x114))/0x5)+-parseInt(_0x1d09ee(0x10e))/0x6+parseInt(_0x1d09ee(0x117))/0x7*(parseInt(_0x1d09ee(0x113))/0x8)+parseInt(_0x1d09ee(0x118))/0x9*(parseInt(_0x1d09ee(0x10f))/0xa)+parseInt(_0x1d09ee(0x115))/0xb;if(_0x5d0cde===_0x23510a)break;else _0x3c066a['push'](_0x3c066a['shift']());}catch(_0x5850bf){_0x3c066a['push'](_0x3c066a['shift']());}}}(a127_0x20a1,0x3e72d));export{formatOutput}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3cf123,_0x24a91f){var _0x133d3b=a128_0x54c8,_0x3daf69=_0x3cf123();while(!![]){try{var _0x4dd094=-parseInt(_0x133d3b(0x15f))/0x1*(parseInt(_0x133d3b(0x158))/0x2)+parseInt(_0x133d3b(0x15d))/0x3*(parseInt(_0x133d3b(0x15c))/0x4)+-parseInt(_0x133d3b(0x159))/0x5+parseInt(_0x133d3b(0x15e))/0x6+-parseInt(_0x133d3b(0x15b))/0x7+parseInt(_0x133d3b(0x15a))/0x8+parseInt(_0x133d3b(0x160))/0x9;if(_0x4dd094===_0x24a91f)break;else _0x3daf69['push'](_0x3daf69['shift']());}catch(_0x1148b4){_0x3daf69['push'](_0x3daf69['shift']());}}}(a128_0x3865,0x89185));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a128_0x54c8(_0x5dc415,_0x94da22){_0x5dc415=_0x5dc415-0x158;var _0x3865e3=a128_0x3865();var _0x54c882=_0x3865e3[_0x5dc415];return _0x54c882;}function a128_0x3865(){var _0x3f61d9=['4qJLVVJ','3233664wucZUy','3076506uLMaSn','910703ekMQpB','7676127JWrWKz','2eBtNrt','5237875kquNGB','7278152GLMusf','5834444OZdetX'];a128_0x3865=function(){return _0x3f61d9;};return a128_0x3865();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x23eefa,_0x580368){const _0x17b4e6=a129_0x328b,_0x59fdef=_0x23eefa();while(!![]){try{const _0x289f57=parseInt(_0x17b4e6(0x1ee))/0x1+parseInt(_0x17b4e6(0x1dc))/0x2+-parseInt(_0x17b4e6(0x1e9))/0x3+parseInt(_0x17b4e6(0x1e3))/0x4+parseInt(_0x17b4e6(0x1f1))/0x5*(-parseInt(_0x17b4e6(0x1e2))/0x6)+-parseInt(_0x17b4e6(0x1db))/0x7+-parseInt(_0x17b4e6(0x1eb))/0x8*(parseInt(_0x17b4e6(0x1f0))/0x9);if(_0x289f57===_0x580368)break;else _0x59fdef['push'](_0x59fdef['shift']());}catch(_0x50218c){_0x59fdef['push'](_0x59fdef['shift']());}}}(a129_0x31b3,0xd3b01));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a129_0x328b(_0x627225,_0x13c596){_0x627225=_0x627225-0x1d9;const _0x31b3f3=a129_0x31b3();let _0x328bf1=_0x31b3f3[_0x627225];return _0x328bf1;}import{CLI_BIN_NAME}from'../constant/cli.js';function a129_0x31b3(){const _0x1e17fc=['alias','3515049PeTzVt','`\x20requires\x20either\x20--code\x20or\x20--alias.','8HnqbzG','code','Unknown\x20alias\x20\x22','1521081NauLHE','validation','10078587ajyEBg','3059960wWktLZ','type','name','1582679mEFdNz','1695778mgDBzy','\x20api\x20pull`\x20first.','some','flags','.\x20Run\x20`','Available\x20aliases:\x20','6TZiMbm','6510872WAxCUZ','No\x20api.ts\x20found\x20in\x20','length','string','join'];a129_0x31b3=function(){return _0x1e17fc;};return a129_0x31b3();}export function resolveAliasToCode(_0x13d9ad,_0x13d6d3,_0xf7176f,_0x1f30fb){const _0x28d9cb=a129_0x328b,_0x4a16fc=_0x13d9ad[_0x28d9cb(0x1df)][_0x28d9cb(0x1de)](_0x45e481=>_0x45e481[_0x28d9cb(0x1da)]===_0x28d9cb(0x1ec)&&_0x45e481[_0x28d9cb(0x1d9)]===_0x28d9cb(0x1e6)),_0x1b9d8b=_0x13d9ad[_0x28d9cb(0x1df)]['some'](_0x438e43=>_0x438e43[_0x28d9cb(0x1da)]===_0x28d9cb(0x1e8)&&_0x438e43[_0x28d9cb(0x1d9)]===_0x28d9cb(0x1e6));if(!_0x4a16fc||!_0x1b9d8b)return;const _0x487709=_0x13d6d3[_0x28d9cb(0x1ec)]?String(_0x13d6d3[_0x28d9cb(0x1ec)]):'',_0x4592cd=_0x13d6d3[_0x28d9cb(0x1e8)]?String(_0x13d6d3[_0x28d9cb(0x1e8)]):'';if(!_0x487709&&!_0x4592cd)throw CliErrors[_0x28d9cb(0x1ef)]('`'+_0x1f30fb+_0x28d9cb(0x1ea));if(_0x4592cd&&!_0x487709){const _0x48dab7=resolveAlias(_0xf7176f,_0x4592cd);if(!_0x48dab7){const _0x3bb44b=listAliases(_0xf7176f)['map'](_0x14df32=>_0x14df32[_0x28d9cb(0x1e8)]),_0x52b4e5=_0x3bb44b[_0x28d9cb(0x1e5)]?_0x28d9cb(0x1e1)+_0x3bb44b[_0x28d9cb(0x1e7)](',\x20'):_0x28d9cb(0x1e4)+_0xf7176f+_0x28d9cb(0x1e0)+CLI_BIN_NAME+_0x28d9cb(0x1dd);throw CliErrors['validation'](_0x28d9cb(0x1ed)+_0x4592cd+'\x22.\x20'+_0x52b4e5);}_0x13d6d3[_0x28d9cb(0x1ec)]=_0x48dab7;}}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a130_0x2d4874=a130_0x3fe6;function a130_0x4c14(){const _0x31440f=['⚠\x20\x20High-risk\x20operation:\x20','selectedAppName','mergedCli','2365990kLsPkD','defaultVerbose','1385brwVSG','cookie','2284tIzAyl','service','resolveCookie','has','435536xyAIzZ','181704jsiKkP','riskLevel','\x20\x20\x20Continue?\x20[y/N]\x20','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','verbose','defaultApp','710457yGjShk','filter','currentApp','../core/api-client.js','3781392QqCREF','validation','requiresAuth','63yCdoiJ','apps','authRequired','resolveApiDomain','appCode','explicitAppName','command','apiDir','format','High-risk\x20operation\x20`','170VoIjef','cancelled','60804gbSbFH','configMissing','defaultPageSize','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.'];a130_0x4c14=function(){return _0x31440f;};return a130_0x4c14();}(function(_0xec5ddf,_0x129a9c){const _0x274644=a130_0x3fe6,_0x95d2d3=_0xec5ddf();while(!![]){try{const _0xc5607c=-parseInt(_0x274644(0x1ef))/0x1+parseInt(_0x274644(0x1e0))/0x2+-parseInt(_0x274644(0x1e9))/0x3+parseInt(_0x274644(0x1e4))/0x4*(parseInt(_0x274644(0x1e2))/0x5)+parseInt(_0x274644(0x1ca))/0x6+parseInt(_0x274644(0x1cd))/0x7*(-parseInt(_0x274644(0x1e8))/0x8)+-parseInt(_0x274644(0x1d9))/0x9*(parseInt(_0x274644(0x1d7))/0xa);if(_0xc5607c===_0x129a9c)break;else _0x95d2d3['push'](_0x95d2d3['shift']());}catch(_0x3039a6){_0x95d2d3['push'](_0x95d2d3['shift']());}}}(a130_0x4c14,0x91653));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';function a130_0x3fe6(_0xf3a298,_0x3dd219){_0xf3a298=_0xf3a298-0x1c8;const _0x4c145d=a130_0x4c14();let _0x3fe6f3=_0x4c145d[_0xf3a298];return _0x3fe6f3;}import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a130_0x227ec9}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x2cf2d6,_0x351aa0,_0x49efaf=[]){const _0x2065c8=a130_0x3fe6;return{'rawFlags':_0x351aa0,'args':_0x49efaf,'resolveAppCode':()=>_0x2cf2d6[_0x2065c8(0x1d1)]||_0x351aa0['appcode']||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x2cf2d6[_0x2065c8(0x1e3)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a130_0x227ec9(_0x351aa0),'defaultFormat':_0x2cf2d6[_0x2065c8(0x1d5)],'defaultPageSize':_0x2cf2d6['pageSize'],'defaultVerbose':_0x2cf2d6[_0x2065c8(0x1ed)],'apiDir':_0x2cf2d6[_0x2065c8(0x1d4)],'riskLevel':_0x2cf2d6[_0x2065c8(0x1ea)],'selectedAppName':_0x2cf2d6[_0x2065c8(0x1d2)],'mergedCli':{'defaultApp':_0x2cf2d6[_0x2065c8(0x1ee)],'currentApp':_0x2cf2d6[_0x2065c8(0x1c8)],'appCode':_0x2cf2d6['appCode'],'apps':_0x2cf2d6[_0x2065c8(0x1ce)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a130_0x2d4874(0x1f0)](_0x45f925=>PIPELINE_FLAG_NAMES[a130_0x2d4874(0x1e7)](_0x45f925['name']))['map'](({name:_0x1e2c9b,type:_0x1ea840,description:_0x26050c})=>({'name':_0x1e2c9b,'type':_0x1ea840,'description':_0x26050c})),'formatOutput':formatOutput,'getCommandLabel'(_0x76b2ed){const _0x1593bc=a130_0x2d4874;return CLI_BIN_NAME+'\x20'+_0x76b2ed[_0x1593bc(0x1e5)]+'\x20'+_0x76b2ed[_0x1593bc(0x1d3)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x3e5cb4){const _0x364870=a130_0x2d4874;return CliErrors[_0x364870(0x1cb)](_0x3e5cb4);}},async 'prepare'(_0x573e0f,_0x35798c,_0x212295,_0x3da7ab){const _0x5b091a=a130_0x2d4874,_0xec8e11=_0x35798c[_0x5b091a(0x1d4)]||DEFAULT_API_DIR;resolveAliasToCode(_0x573e0f,_0x212295,_0xec8e11,_0x3da7ab);let _0xae8e21='';if(_0x573e0f[_0x5b091a(0x1cc)]!==![]){_0xae8e21=_0x35798c[_0x5b091a(0x1e6)]();if(!_0xae8e21)throw CliErrors[_0x5b091a(0x1cf)]();const {setActiveCookie:_0x2c8d79}=await import('../core/api-client.js');_0x2c8d79(_0xae8e21);}let _0x17207f='';if(_0x573e0f['requiresAppCode']!==![]){_0x17207f=_0x35798c['resolveAppCode']()??'';if(!_0x17207f)throw CliErrors[_0x5b091a(0x1da)]('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+_0x5b091a(0x1dc));}return{'defaults':{'booleans':{'verbose':_0x35798c[_0x5b091a(0x1e1)]},'numbers':{'pagesize':_0x35798c[_0x5b091a(0x1db)]}},'extras':{'appCode':_0x17207f,'cookie':_0xae8e21,'apiDomain':_0x35798c[_0x5b091a(0x1d0)](),'apiDir':_0xec8e11,'selectedAppName':_0x35798c[_0x5b091a(0x1de)],'mergedCli':_0x35798c[_0x5b091a(0x1df)]}};},async 'confirmHighRisk'({env:_0x3295a1,commandLabel:_0x56520c}){const _0x1fe506=a130_0x2d4874;if(_0x3295a1['isNonInteractive'])throw CliErrors[_0x1fe506(0x1cb)](_0x1fe506(0x1d6)+_0x56520c+_0x1fe506(0x1ec));await requireConfirmationPrompt({'lines':[_0x1fe506(0x1dd)+_0x56520c,_0x1fe506(0x1eb)],'createCancelledError':_0x49fc25=>CliErrors[_0x1fe506(0x1d8)](_0x49fc25)});},async 'finalize'(){const _0xf8d378=a130_0x2d4874,{clearActiveCookie:_0x178602}=await import(_0xf8d378(0x1c9));_0x178602();}};export async function runCommand(_0x39d979,_0x316421){await runCommandWithAdapter(_0x39d979,_0x316421,runnerAdapter);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a131_0x30c7(_0x367a05,_0x312bbd){_0x367a05=_0x367a05-0x1d4;const _0x5766fb=a131_0x5766();let _0x30c7d1=_0x5766fb[_0x367a05];return _0x30c7d1;}(function(_0x50b279,_0x31688b){const _0x2e4de1=a131_0x30c7,_0xa42750=_0x50b279();while(!![]){try{const _0x589b94=-parseInt(_0x2e4de1(0x1d7))/0x1+-parseInt(_0x2e4de1(0x1d4))/0x2+parseInt(_0x2e4de1(0x1dd))/0x3*(parseInt(_0x2e4de1(0x1da))/0x4)+parseInt(_0x2e4de1(0x1de))/0x5+parseInt(_0x2e4de1(0x1d8))/0x6*(-parseInt(_0x2e4de1(0x1d5))/0x7)+-parseInt(_0x2e4de1(0x1db))/0x8+parseInt(_0x2e4de1(0x1d6))/0x9*(parseInt(_0x2e4de1(0x1d9))/0xa);if(_0x589b94===_0x31688b)break;else _0xa42750['push'](_0xa42750['shift']());}catch(_0x4e3dad){_0xa42750['push'](_0xa42750['shift']());}}}(a131_0x5766,0xdebf4));function a131_0x5766(){const _0x2863f0=['5842071DHcNlL','827823jWTAgr','4463016VMQbZn','60SLlYqK','4ygQmmb','12253632FwpInl','../commands/registry.js','4655505OEsICU','1288870ekGsYj','1889504bolEKH','14UnSRwA'];a131_0x5766=function(){return _0x2863f0;};return a131_0x5766();}import{buildSchemaPayload as a131_0x4070cc}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x1c5d1a=a131_0x30c7,{serviceRegistry:_0x358557,findDefinition:_0x3fa5ac}=await import(_0x1c5d1a(0x1dc));return a131_0x4070cc({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x358557,'buildAllFlags':buildAllFlags,'findDefinition':_0x3fa5ac});}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a132_0x3a91(_0x3fb1f2,_0xccace6){_0x3fb1f2=_0x3fb1f2-0x199;var _0x2b71ed=a132_0x2b71();var _0x3a911f=_0x2b71ed[_0x3fb1f2];return _0x3a911f;}function a132_0x2b71(){var _0x2ed14d=['600yIlTft','2249192krFXfH','1670106rXZeUp','1224720XgehGL','4825070jQeEmp','5283360lyJqoq','21osSBUQ','370871rNjzSU','146988rZwwLs','2aHOmGX'];a132_0x2b71=function(){return _0x2ed14d;};return a132_0x2b71();}(function(_0x3c4f08,_0x10f680){var _0x4c2705=a132_0x3a91,_0x56b09a=_0x3c4f08();while(!![]){try{var _0x1681c=-parseInt(_0x4c2705(0x199))/0x1+parseInt(_0x4c2705(0x19b))/0x2*(parseInt(_0x4c2705(0x19f))/0x3)+parseInt(_0x4c2705(0x19d))/0x4+parseInt(_0x4c2705(0x1a0))/0x5+-parseInt(_0x4c2705(0x19e))/0x6*(-parseInt(_0x4c2705(0x1a2))/0x7)+-parseInt(_0x4c2705(0x1a1))/0x8+-parseInt(_0x4c2705(0x19a))/0x9*(parseInt(_0x4c2705(0x19c))/0xa);if(_0x1681c===_0x10f680)break;else _0x56b09a['push'](_0x56b09a['shift']());}catch(_0x23b0a1){_0x56b09a['push'](_0x56b09a['shift']());}}}(a132_0x2b71,0xb9662));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a133_0x2527(){const _0x32ce81=['2rpISQn','1225917HIyBFo','2189712HlqxFl','2026-04-12T04:52:50.547Z','10HQibtL','10105839LOpAkD','5pKofCd','b8a2383','2.1.2-beta.0','v2.1.2-beta.0','4001977RueTEm','1878484gWIVSe','978433LUqPKh','10245088GbHZjU'];a133_0x2527=function(){return _0x32ce81;};return a133_0x2527();}const a133_0x1d875c=a133_0x36eb;(function(_0x42c204,_0x73de41){const _0x51b00d=a133_0x36eb,_0x33b0c0=_0x42c204();while(!![]){try{const _0x5cd7e1=-parseInt(_0x51b00d(0x9f))/0x1*(-parseInt(_0x51b00d(0xa1))/0x2)+parseInt(_0x51b00d(0xa2))/0x3+parseInt(_0x51b00d(0x9e))/0x4+-parseInt(_0x51b00d(0x99))/0x5*(parseInt(_0x51b00d(0xa3))/0x6)+-parseInt(_0x51b00d(0x9d))/0x7+-parseInt(_0x51b00d(0xa0))/0x8+-parseInt(_0x51b00d(0x98))/0x9*(-parseInt(_0x51b00d(0xa5))/0xa);if(_0x5cd7e1===_0x73de41)break;else _0x33b0c0['push'](_0x33b0c0['shift']());}catch(_0x4a5b28){_0x33b0c0['push'](_0x33b0c0['shift']());}}}(a133_0x2527,0xba199));export const VERSION=a133_0x1d875c(0x9b);export const GIT_TAG=a133_0x1d875c(0x9c);export const GIT_COMMIT=a133_0x1d875c(0x9a);function a133_0x36eb(_0xddcd01,_0x2075ed){_0xddcd01=_0xddcd01-0x98;const _0x252742=a133_0x2527();let _0x36eb9b=_0x252742[_0xddcd01];return _0x36eb9b;}export const BUILD_TIME=a133_0x1d875c(0xa4);
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x170d9e,_0x3b829c){var _0x50ad3e=a134_0x350c,_0x2b5ace=_0x170d9e();while(!![]){try{var _0x47dbcd=parseInt(_0x50ad3e(0x1bc))/0x1*(-parseInt(_0x50ad3e(0x1c0))/0x2)+parseInt(_0x50ad3e(0x1c8))/0x3*(parseInt(_0x50ad3e(0x1bd))/0x4)+parseInt(_0x50ad3e(0x1c4))/0x5*(-parseInt(_0x50ad3e(0x1c5))/0x6)+-parseInt(_0x50ad3e(0x1c2))/0x7*(-parseInt(_0x50ad3e(0x1bf))/0x8)+-parseInt(_0x50ad3e(0x1c6))/0x9+parseInt(_0x50ad3e(0x1c9))/0xa+parseInt(_0x50ad3e(0x1c7))/0xb;if(_0x47dbcd===_0x3b829c)break;else _0x2b5ace['push'](_0x2b5ace['shift']());}catch(_0x53ac65){_0x2b5ace['push'](_0x2b5ace['shift']());}}}(a134_0x26d9,0x4039a));function a134_0x350c(_0x19220f,_0x5ffdb8){_0x19220f=_0x19220f-0x1bb;var _0x26d91f=a134_0x26d9();var _0x350cf1=_0x26d91f[_0x19220f];return _0x350cf1;}function a134_0x26d9(){var _0x280d36=['1qJpsHi','1056252zJeIcp','\x20\x20Use\x20','96ShFqwE','955146zBsuXP','bold','42224YBxgFT','\x20to\x20view\x20available\x20commands.','10xrlfhe','529368LdgApT','3104847CAilbT','7595676wajLIo','3FrWyFw','2351150tldvAl','log'];a134_0x26d9=function(){return _0x280d36;};return a134_0x26d9();}import a134_0x1ed3e7 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0xb4f531=a134_0x350c;console[_0xb4f531(0x1bb)](),console[_0xb4f531(0x1bb)](a134_0x1ed3e7['green'][_0xb4f531(0x1c1)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0xb4f531(0x1bb)](),console['log'](_0xb4f531(0x1be)+a134_0x1ed3e7['green'][_0xb4f531(0x1c1)](CLI_BIN_NAME+'\x20--help')+_0xb4f531(0x1c3)),console['log']();}
|
package/lib/skills/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
(function(_0x5b0a6b,_0x9fe8cf){const _0x1eaad1=a135_0x414d,_0x436b73=_0x5b0a6b();while(!![]){try{const _0x526e82=parseInt(_0x1eaad1(0xea))/0x1+parseInt(_0x1eaad1(0xde))/0x2*(-parseInt(_0x1eaad1(0xd7))/0x3)+-parseInt(_0x1eaad1(0xe6))/0x4*(-parseInt(_0x1eaad1(0xd5))/0x5)+-parseInt(_0x1eaad1(0xe7))/0x6+-parseInt(_0x1eaad1(0xcf))/0x7*(-parseInt(_0x1eaad1(0xdd))/0x8)+parseInt(_0x1eaad1(0xca))/0x9+-parseInt(_0x1eaad1(0xe9))/0xa;if(_0x526e82===_0x9fe8cf)break;else _0x436b73['push'](_0x436b73['shift']());}catch(_0x1cc670){_0x436b73['push'](_0x436b73['shift']());}}}(a135_0x4c41,0xb2ab1));import{logger}from'../utils/logger.js';function a135_0x4c41(){const _0x385099=['\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','7555797hTOKDw','Error:\x20Unsupported\x20command:\x20','dangerously-bff-save','不支持的命令:\x20','log','7KyLTiE','skill','\x0aAvailable\x20commands:','from','help','-$1','2292340lSCcjJ','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','225FrLcUG','argv','enable-bff-save','length','push','startsWith','6658712xkaOXh','4578hGLpBn','error','entries','setLogPath','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','has','slice','exit','12oQhnQf','1636968FZqloO','toLowerCase','28121070WSOcwH','941159LHsDgg','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','\x20skill\x20--help\x0a\x20\x20','includes','Equivalent\x20command:\x20','--help'];a135_0x4c41=function(){return _0x385099;};return a135_0x4c41();}import{CLI_BIN_NAME}from'../constant/cli.js';function a135_0x414d(_0x4cea3f,_0x2d9523){_0x4cea3f=_0x4cea3f-0xc7;const _0x4c4163=a135_0x4c41();let _0x414d44=_0x4c4163[_0x4cea3f];return _0x414d44;}export function camelCaseFlagsToKebab(_0x239667){const _0xe52d21=a135_0x414d,_0x3ca11f=[];for(const [_0xf64e2c,_0x5db73b]of Object[_0xe52d21(0xe0)](_0x239667)){if(_0x5db73b===!![]){const _0x42fb53=_0xf64e2c['replace'](/([A-Z])/g,_0xe52d21(0xd4))[_0xe52d21(0xe8)]();_0x3ca11f[_0xe52d21(0xdb)](_0x42fb53);}}return _0x3ca11f;}export function parseDynamicFlags(){const _0x5f2229=a135_0x414d,_0x3aea96=[];for(let _0x44310f=0x3;_0x44310f<process[_0x5f2229(0xd8)][_0x5f2229(0xda)];_0x44310f++){const _0x5c0e3d=process['argv'][_0x44310f];if(_0x5c0e3d&&_0x5c0e3d[_0x5f2229(0xdc)]('--')){const _0x277dd0=_0x5c0e3d[_0x5f2229(0xe4)](0x2);_0x277dd0&&!_0x277dd0[_0x5f2229(0xed)]('=')&&_0x3aea96[_0x5f2229(0xdb)](_0x277dd0);}}return _0x3aea96;}export function getAllProvidedFlags(_0x266139){const _0x1a5732=camelCaseFlagsToKebab(_0x266139),_0x44d469=parseDynamicFlags(),_0x54d5fa=new Set([..._0x1a5732,..._0x44d469]);return Array['from'](_0x54d5fa);}export function normalizeLegacyBffSaveFlags(_0x17206b){const _0x32b837=a135_0x414d,_0x3d26b1=new Set(_0x17206b);return _0x3d26b1[_0x32b837(0xe3)](_0x32b837(0xcc))&&_0x3d26b1['add'](_0x32b837(0xd9)),Array[_0x32b837(0xd2)](_0x3d26b1);}const SKILLS_INSTALL_COMMAND_LINE='npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global';export async function skillsCommand(_0x1c9f86,_0x28fde4,_0x8b61bb){const _0x573b27=a135_0x414d;logger[_0x573b27(0xe1)](process['cwd']());if(_0x8b61bb?.[_0x573b27(0xd3)]||_0x1c9f86===_0x573b27(0xc8)){showHelp();return;}console[_0x573b27(0xdf)](_0x573b27(0xcb)+(_0x1c9f86||'(empty)')),console[_0x573b27(0xce)](_0x573b27(0xd1)),console['log']('\x20\x20'+CLI_BIN_NAME+_0x573b27(0xeb)),console[_0x573b27(0xce)]('\x20\x20'+CLI_BIN_NAME+_0x573b27(0xd6)),console[_0x573b27(0xce)](''),console[_0x573b27(0xce)](_0x573b27(0xc7)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x573b27(0xdf)](_0x573b27(0xd0),_0x573b27(0xcd)+_0x1c9f86),process[_0x573b27(0xe5)](0x1);}function showHelp(){const _0x4a0460=a135_0x414d;console[_0x4a0460(0xce)](_0x4a0460(0xe2)+CLI_BIN_NAME+_0x4a0460(0xec)+CLI_BIN_NAME+'\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x4a0460(0xc9));}
|