@lovrabet/rabetbase-cli 2.1.2-beta.2 → 2.1.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/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 -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/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/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/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/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
package/lib/core/bff/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a154_0xd27c(_0x1ed6d4,_0x3ac00e){_0x1ed6d4=_0x1ed6d4-0x194;const _0x42d5ca=a154_0x42d5();let _0xd27c09=_0x42d5ca[_0x1ed6d4];return _0xd27c09;}const a154_0x35564e=a154_0xd27c;(function(_0x3b87b4,_0x1c19e6){const _0x535c0d=a154_0xd27c,_0x1e1d11=_0x3b87b4();while(!![]){try{const _0xd449f5=-parseInt(_0x535c0d(0x1a1))/0x1*(-parseInt(_0x535c0d(0x196))/0x2)+-parseInt(_0x535c0d(0x19c))/0x3+-parseInt(_0x535c0d(0x199))/0x4+-parseInt(_0x535c0d(0x19d))/0x5+parseInt(_0x535c0d(0x198))/0x6*(parseInt(_0x535c0d(0x19e))/0x7)+parseInt(_0x535c0d(0x19f))/0x8+parseInt(_0x535c0d(0x197))/0x9*(parseInt(_0x535c0d(0x1a2))/0xa);if(_0xd449f5===_0x1c19e6)break;else _0x1e1d11['push'](_0x1e1d11['shift']());}catch(_0x19e35e){_0x1e1d11['push'](_0x1e1d11['shift']());}}}(a154_0x42d5,0x3474c));import{resolve}from'node:path';function a154_0x42d5(){const _0x5d1f3c=['bff-trash','/bff','305673talOOU','1321535pspEgU','56ViscUg','2651664RuyNMx','.rabetbase','118283IAqjQT','1831610DNJMWa','bff','bff.lock.json','6wLCaTf','9SAhXHu','90966eHgxTu','1638792ACNvzX'];a154_0x42d5=function(){return _0x5d1f3c;};return a154_0x42d5();}import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a154_0x35564e(0x1a0),LOCK_FILE_NAME=a154_0x35564e(0x195),TRASH_DIR_NAME=a154_0x35564e(0x19a);export function loadBffProjectConfig(_0x5ee9a0,_0xa73c14){const _0x3d301b=a154_0x35564e,_0x366bb2=resolve(_0xa73c14??findProjectRootDirectory()),_0x613821=DOT_DIR+_0x3d301b(0x19b),_0xfba4d7=_0x613821+'/'+_0x5ee9a0;return{'projectRoot':_0x366bb2,'appCode':_0x5ee9a0,'scriptsBaseDir':DOT_DIR,'scriptsWorkspaceRoot':_0x613821,'scriptsRoot':_0xfba4d7,'scriptsRootDir':resolve(_0x366bb2,DOT_DIR,_0x3d301b(0x194),_0x5ee9a0),'lockFilePath':resolve(_0x366bb2,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x366bb2,DOT_DIR,TRASH_DIR_NAME)};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a150_0x4ce7c6=a150_0x2e69;(function(_0x26ff05,_0x1cc28f){const _0x2f4b1e=a150_0x2e69,_0x1a4dfd=_0x26ff05();while(!![]){try{const _0xca67dd=-parseInt(_0x2f4b1e(0x16f))/0x1+-parseInt(_0x2f4b1e(0x17f))/0x2+-parseInt(_0x2f4b1e(0x169))/0x3*(-parseInt(_0x2f4b1e(0x182))/0x4)+-parseInt(_0x2f4b1e(0x17a))/0x5+-parseInt(_0x2f4b1e(0x181))/0x6+-parseInt(_0x2f4b1e(0x186))/0x7+parseInt(_0x2f4b1e(0x16a))/0x8;if(_0xca67dd===_0x1cc28f)break;else _0x1a4dfd['push'](_0x1a4dfd['shift']());}catch(_0x44c266){_0x1a4dfd['push'](_0x1a4dfd['shift']());}}}(a150_0x467e,0xe7b90));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';function a150_0x467e(){const _0x365ae3=['all','name','1418554EiEFDH','.js','replace','alias','toUpperCase','isDirectory','split','ENOENT','beforeScriptId','HOOK','COMMON','3856685AjHcFw','get','operationType','map','F_OK','1173052pDEYng','datasetCode','10366020fzafWq','156JABNdg','HOOK/','scriptsRootDir','includes','12445328xMCbQl','isFile','ENDPOINT','afterScriptId','endsWith','functionNode','set','push','22179ZbgytF','55542400yrQEvO','code','trim'];a150_0x467e=function(){return _0x365ae3;};return a150_0x467e();}export const SUPPORTED_BFF_TYPES=['COMMON',a150_0x4ce7c6(0x188),a150_0x4ce7c6(0x178)];export function normalizeBffType(_0x14bf3c){const _0x185ba0=a150_0x4ce7c6;if(!_0x14bf3c)return undefined;const _0x4d998e=_0x14bf3c[_0x185ba0(0x16c)]()[_0x185ba0(0x173)]();return SUPPORTED_BFF_TYPES[_0x185ba0(0x185)](_0x4d998e)?_0x4d998e:undefined;}async function scanJsFilesRecursively(_0x23091d,_0x435374){const _0x17e6e9=a150_0x4ce7c6,_0x2579ac=[];try{const _0xe0b034=await readdir(_0x23091d,{'withFileTypes':!![]});for(const _0x41826d of _0xe0b034){const _0xacf063=join(_0x23091d,_0x41826d['name']);if(_0x41826d[_0x17e6e9(0x174)]())_0x2579ac[_0x17e6e9(0x168)](...await scanJsFilesRecursively(_0xacf063,_0x435374+'/'+_0x41826d['name']));else _0x41826d[_0x17e6e9(0x187)]()&&_0x41826d[_0x17e6e9(0x16e)][_0x17e6e9(0x165)](_0x17e6e9(0x170))&&_0x2579ac['push']({'lockKey':_0x435374+'/'+_0x41826d[_0x17e6e9(0x16e)][_0x17e6e9(0x171)](/\.js$/,''),'filePath':_0xacf063});}}catch(_0x297b51){if(_0x297b51['code']!==_0x17e6e9(0x176))throw _0x297b51;}return _0x2579ac;}function a150_0x2e69(_0x187c6b,_0x1085fb){_0x187c6b=_0x187c6b-0x164;const _0x467e13=a150_0x467e();let _0x2e694b=_0x467e13[_0x187c6b];return _0x2e694b;}async function scanFlatFunctions(_0x531ca6,_0x2ea753){const _0x404c75=a150_0x4ce7c6,_0xd2fa64=join(_0x531ca6[_0x404c75(0x184)],_0x2ea753),_0x2dee23=await scanJsFilesRecursively(_0xd2fa64,_0x2ea753);return _0x2dee23[_0x404c75(0x17d)](({lockKey:_0x22c919,filePath:_0x1a1fb8})=>({'type':_0x2ea753,'name':_0x22c919[_0x404c75(0x175)]('/')['at'](-0x1)??'','filePath':_0x1a1fb8,'lockKey':_0x22c919}));}async function scanHookFunctions(_0x875ceb){const _0x5d6ce2=a150_0x4ce7c6,_0x3ed5e1=join(_0x875ceb[_0x5d6ce2(0x184)],_0x5d6ce2(0x178)),_0x244534=[];try{const _0x4decbc=await readdir(_0x3ed5e1,{'withFileTypes':!![]});for(const _0x5dd2ac of _0x4decbc){if(!_0x5dd2ac['isDirectory']())continue;const _0x383fc8=_0x5dd2ac[_0x5d6ce2(0x16e)],_0x21c6b0=join(_0x3ed5e1,_0x383fc8),_0x28ad5e=await readdir(_0x21c6b0,{'withFileTypes':!![]});for(const _0x24ba4f of _0x28ad5e){if(!_0x24ba4f[_0x5d6ce2(0x174)]())continue;const _0x5eb132=_0x24ba4f[_0x5d6ce2(0x16e)],_0x2dbeef=join(_0x21c6b0,_0x5eb132),_0x68ba12=await readdir(_0x2dbeef,{'withFileTypes':!![]});for(const _0x5af817 of _0x68ba12){if(!_0x5af817[_0x5d6ce2(0x174)]())continue;const _0x122890=_0x5af817['name'],_0x5885cb=join(_0x2dbeef,_0x122890),_0x4afac1=await readdir(_0x5885cb,{'withFileTypes':!![]});for(const _0xae14a of _0x4afac1){if(!_0xae14a[_0x5d6ce2(0x187)]()||!_0xae14a[_0x5d6ce2(0x16e)][_0x5d6ce2(0x165)](_0x5d6ce2(0x170)))continue;const _0x1cb3a0=_0xae14a[_0x5d6ce2(0x16e)][_0x5d6ce2(0x171)](/\.js$/,'');_0x244534[_0x5d6ce2(0x168)]({'type':'HOOK','name':_0x1cb3a0,'filePath':join(_0x5885cb,_0xae14a[_0x5d6ce2(0x16e)]),'lockKey':_0x5d6ce2(0x183)+_0x383fc8+'/'+_0x5eb132+'/'+_0x122890+'/'+_0x1cb3a0,'alias':_0x383fc8,'operationType':_0x5eb132,'functionNode':_0x122890});}}}}}catch(_0x5c3d43){if(_0x5c3d43[_0x5d6ce2(0x16b)]!=='ENOENT')throw _0x5c3d43;}return _0x244534;}export async function scanLocalBffFunctions(_0x60ebeb,_0x3c28b2){const _0x23df91=a150_0x4ce7c6;if(_0x3c28b2==='COMMON'||_0x3c28b2===_0x23df91(0x188))return scanFlatFunctions(_0x60ebeb,_0x3c28b2);if(_0x3c28b2===_0x23df91(0x178))return scanHookFunctions(_0x60ebeb);const [_0xd50689,_0x264420,_0x4efba6]=await Promise[_0x23df91(0x16d)]([scanFlatFunctions(_0x60ebeb,_0x23df91(0x179)),scanFlatFunctions(_0x60ebeb,_0x23df91(0x188)),scanHookFunctions(_0x60ebeb)]);return[..._0xd50689,..._0x264420,..._0x4efba6];}export function resolveLocalFilePathFromLockKey(_0x36481d,_0x34a067){const _0x5263c0=a150_0x4ce7c6;return join(_0x36481d['scriptsRootDir'],..._0x34a067[_0x5263c0(0x175)]('/'))+'.js';}export function createHookLocationMap(_0x159eae){const _0x329f8f=a150_0x4ce7c6,_0x58bbf8=new Map();for(const _0x192b46 of _0x159eae){_0x192b46[_0x329f8f(0x177)]&&_0x58bbf8[_0x329f8f(0x167)](_0x192b46['beforeScriptId'],{'datasetCode':_0x192b46[_0x329f8f(0x180)],'operationType':snakeToCamel(_0x192b46[_0x329f8f(0x17c)]),'functionNode':'before'}),_0x192b46[_0x329f8f(0x164)]&&_0x58bbf8[_0x329f8f(0x167)](_0x192b46[_0x329f8f(0x164)],{'datasetCode':_0x192b46[_0x329f8f(0x180)],'operationType':snakeToCamel(_0x192b46[_0x329f8f(0x17c)]),'functionNode':'after'});}return _0x58bbf8;}export function resolveRemoteScriptTarget(_0x334458,_0x2d8a81,_0x50a56c,_0x854e27,_0x502ba5){const _0x163164=a150_0x4ce7c6,_0x5f4cbe=normalizeBffType(_0x2d8a81['scriptType']);if(!_0x5f4cbe||!_0x2d8a81['functionName'])return null;if(_0x5f4cbe==='HOOK'){const _0x3e0fa3=(_0x2d8a81['id']?_0x50a56c[_0x163164(0x17b)](_0x2d8a81['id']):undefined)??findHookLocationByRemoteId(_0x854e27,_0x2d8a81['id']);if(!_0x3e0fa3)return null;const _0x1e0855=_0x3e0fa3[_0x163164(0x172)]||_0x502ba5[_0x163164(0x17b)](_0x3e0fa3[_0x163164(0x180)]),_0x3f75fd=_0x1e0855??_0x3e0fa3[_0x163164(0x180)],_0x3d5ef0={..._0x3e0fa3,'alias':_0x1e0855},_0x697e7b='HOOK/'+_0x3f75fd+'/'+_0x3d5ef0[_0x163164(0x17c)]+'/'+_0x3d5ef0[_0x163164(0x166)]+'/'+_0x2d8a81['functionName'];return{'lockKey':_0x697e7b,'filePath':resolveLocalFilePathFromLockKey(_0x334458,_0x697e7b),'type':_0x163164(0x178),'hookLocation':_0x3d5ef0};}const _0x5de012=_0x5f4cbe+'/'+_0x2d8a81['functionName'];return{'lockKey':_0x5de012,'filePath':resolveLocalFilePathFromLockKey(_0x334458,_0x5de012),'type':_0x5f4cbe};}export async function ensureParentDirectory(_0x2611ec){await mkdir(dirname(_0x2611ec),{'recursive':!![]});}export async function fileExists(_0x2a6b28){const _0x1bfac4=a150_0x4ce7c6;try{return await access(_0x2a6b28,constants[_0x1bfac4(0x17e)]),!![];}catch{return![];}}export async function directoryExists(_0x5b1b75){const _0x8a8474=a150_0x4ce7c6;try{const _0x210945=await stat(_0x5b1b75);return _0x210945[_0x8a8474(0x174)]();}catch{return![];}}
|
package/lib/core/bff/hash.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a152_0x7478(){const _0x1594c3=['utf8','digest','37977YcpQnh','createHash','502839BLvUvo','396400uEfYPq','174ajuQsn','1OuEmBG','1067VeOSiR','271112GEPssY','6952wAbwfA','9912RQyeTe','hex','9315FuvDIL','1246WJxChs','44lVBWVr'];a152_0x7478=function(){return _0x1594c3;};return a152_0x7478();}(function(_0x5e97ce,_0x5dc9ed){const _0x5d465d=a152_0x5ae0,_0x1bed25=_0x5e97ce();while(!![]){try{const _0x181468=-parseInt(_0x5d465d(0x159))/0x1*(-parseInt(_0x5d465d(0x15b))/0x2)+parseInt(_0x5d465d(0x164))/0x3*(-parseInt(_0x5d465d(0x161))/0x4)+-parseInt(_0x5d465d(0x15f))/0x5*(-parseInt(_0x5d465d(0x158))/0x6)+-parseInt(_0x5d465d(0x160))/0x7*(-parseInt(_0x5d465d(0x15c))/0x8)+-parseInt(_0x5d465d(0x166))/0x9+parseInt(_0x5d465d(0x157))/0xa+-parseInt(_0x5d465d(0x15a))/0xb*(parseInt(_0x5d465d(0x15d))/0xc);if(_0x181468===_0x5dc9ed)break;else _0x1bed25['push'](_0x1bed25['shift']());}catch(_0xaa618d){_0x1bed25['push'](_0x1bed25['shift']());}}}(a152_0x7478,0x1a877));function a152_0x5ae0(_0x224893,_0x122e6d){_0x224893=_0x224893-0x157;const _0x747879=a152_0x7478();let _0x5ae094=_0x747879[_0x224893];return _0x5ae094;}import{readFile}from'node:fs/promises';import a152_0x1fd88c from'node:crypto';export function computeContentHash(_0x235979){const _0x2e44f8=a152_0x5ae0;return a152_0x1fd88c[_0x2e44f8(0x165)]('md5')['update'](_0x235979)[_0x2e44f8(0x163)](_0x2e44f8(0x15e));}export async function computeFileHash(_0x2ed969){const _0x130887=a152_0x5ae0,_0x2a9282=await readFile(_0x2ed969,_0x130887(0x162));return computeContentHash(_0x2a9282);}
|
package/lib/core/bff/lock.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x38f973,_0x43c66d){const _0x4630d2=a155_0x17a6,_0x4e0f62=_0x38f973();while(!![]){try{const _0x538b93=-parseInt(_0x4630d2(0x168))/0x1+-parseInt(_0x4630d2(0x158))/0x2+-parseInt(_0x4630d2(0x159))/0x3*(-parseInt(_0x4630d2(0x169))/0x4)+parseInt(_0x4630d2(0x160))/0x5+parseInt(_0x4630d2(0x154))/0x6*(-parseInt(_0x4630d2(0x15e))/0x7)+-parseInt(_0x4630d2(0x157))/0x8*(-parseInt(_0x4630d2(0x15c))/0x9)+-parseInt(_0x4630d2(0x15d))/0xa*(-parseInt(_0x4630d2(0x155))/0xb);if(_0x538b93===_0x43c66d)break;else _0x4e0f62['push'](_0x4e0f62['shift']());}catch(_0x4be7df){_0x4e0f62['push'](_0x4e0f62['shift']());}}}(a155_0x25f8,0xe32e4));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a155_0x25f8(){const _0x4c81d4=['object','scriptsRoot','\x22\x20vs\x20lock\x20\x22','functions','stringify','1261376vdMJAr','8xHgjBT','lastSync','6mOhhDW','11YMBoQt','code','1069616knkRDl','3711418ZZCyky','112884mdpSjV','apps',':\x20scriptsRoot\x20mismatch\x20—\x20','90AfaSPP','12637910vrRYMN','1777811KZSdJY','parse','8127615tKSOFR','Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20','\x22.\x20'];a155_0x25f8=function(){return _0x4c81d4;};return a155_0x25f8();}export function createEmptyBffLock(){return{'apps':{}};}function a155_0x17a6(_0x4eba14,_0x30007a){_0x4eba14=_0x4eba14-0x154;const _0x25f8b4=a155_0x25f8();let _0x17a630=_0x25f8b4[_0x4eba14];return _0x17a630;}export function ensureLockScope(_0x41cf49,_0x21fb66,_0x47c147,_0xad8bcf){const _0x37a7ee=a155_0x17a6,_0x11ab66={'apps':_0x41cf49[_0x37a7ee(0x15a)]&&typeof _0x41cf49['apps']===_0x37a7ee(0x163)?_0x41cf49[_0x37a7ee(0x15a)]:{}};let _0x15c261=_0x11ab66[_0x37a7ee(0x15a)][_0x21fb66];if(!_0x15c261)return _0x15c261={'scriptsRoot':_0x47c147,'lastSync':'','functions':{}},_0x11ab66[_0x37a7ee(0x15a)][_0x21fb66]=_0x15c261,{'lockData':_0x11ab66,'appLock':_0x15c261};if(!_0x15c261['scriptsRoot'])_0x15c261[_0x37a7ee(0x164)]=_0x47c147;else{if(_0x15c261[_0x37a7ee(0x164)]!==_0x47c147)throw new Error(_0xad8bcf+_0x37a7ee(0x15b)+('current\x20\x22'+_0x47c147+_0x37a7ee(0x165)+_0x15c261[_0x37a7ee(0x164)]+_0x37a7ee(0x162))+'Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.');}return!_0x15c261[_0x37a7ee(0x166)]&&(_0x15c261[_0x37a7ee(0x166)]={}),!_0x15c261['lastSync']&&(_0x15c261[_0x37a7ee(0x16a)]=''),{'lockData':_0x11ab66,'appLock':_0x15c261};}export async function readBffLockFile(_0xc09324){const _0x133a2f=a155_0x17a6;try{const _0x383fd0=await readFile(_0xc09324,'utf8'),_0x43cedb=JSON[_0x133a2f(0x15f)](_0x383fd0);return{'apps':_0x43cedb[_0x133a2f(0x15a)]&&typeof _0x43cedb[_0x133a2f(0x15a)]===_0x133a2f(0x163)?_0x43cedb[_0x133a2f(0x15a)]:{}};}catch(_0x376d54){if(_0x376d54[_0x133a2f(0x156)]==='ENOENT')return null;throw new Error(_0x133a2f(0x161)+String(_0x376d54));}}export async function writeBffLockFile(_0x31d0f8,_0x4a0f01){const _0x7a8bfd=a155_0x17a6;await mkdir(dirname(_0x31d0f8),{'recursive':!![]}),await writeFile(_0x31d0f8,JSON[_0x7a8bfd(0x167)](_0x4a0f01,null,0x2),'utf8');}
|
package/lib/core/bff/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1d4c89,_0x48d185){const _0xfc7a52=a153_0x54f3,_0x2e5aa3=_0x1d4c89();while(!![]){try{const _0x1c401a=-parseInt(_0xfc7a52(0x1c6))/0x1*(-parseInt(_0xfc7a52(0x1c2))/0x2)+parseInt(_0xfc7a52(0x1d4))/0x3*(parseInt(_0xfc7a52(0x1d6))/0x4)+parseInt(_0xfc7a52(0x1d0))/0x5+parseInt(_0xfc7a52(0x1ca))/0x6*(-parseInt(_0xfc7a52(0x1c7))/0x7)+parseInt(_0xfc7a52(0x1d5))/0x8*(parseInt(_0xfc7a52(0x1cd))/0x9)+-parseInt(_0xfc7a52(0x1cb))/0xa+-parseInt(_0xfc7a52(0x1d2))/0xb*(-parseInt(_0xfc7a52(0x1cf))/0xc);if(_0x1c401a===_0x48d185)break;else _0x2e5aa3['push'](_0x2e5aa3['shift']());}catch(_0x4c44ad){_0x2e5aa3['push'](_0x2e5aa3['shift']());}}}(a153_0x5cb4,0x8116d));function a153_0x54f3(_0x6e70dd,_0x5953da){_0x6e70dd=_0x6e70dd-0x1c0;const _0x5cb4f4=a153_0x5cb4();let _0x54f3b1=_0x5cb4f4[_0x6e70dd];return _0x54f3b1;}export function snakeToCamel(_0x153ff1){const _0x19fbe2=a153_0x54f3;return _0x153ff1[_0x19fbe2(0x1c1)]()['replace'](/_([a-z])/g,(_0x347a74,_0x49e65c)=>_0x49e65c['toUpperCase']());}function a153_0x5cb4(){const _0x56a89b=['trim','toLowerCase','14JvSNhg','values','functionNode','match','64823HMNnZS','91jUmntM','operationType','test','317778TiPLfR','4227920UaEpbA','datasetCode','9YWDEaD','before','12lJiwBx','1990850YwSehQ','remoteId','3401123pCJrcc','after','80037ZjFgDG','2337464JHaFzi','28niPtko'];a153_0x5cb4=function(){return _0x56a89b;};return a153_0x5cb4();}export function findHookLocationByRemoteId(_0xfeeacd,_0x1a4599){const _0x19649a=a153_0x54f3;if(!_0x1a4599)return undefined;for(const _0x239fb8 of Object[_0x19649a(0x1c3)](_0xfeeacd)){if(_0x239fb8[_0x19649a(0x1d1)]===_0x1a4599&&_0x239fb8['datasetCode']&&_0x239fb8[_0x19649a(0x1c8)]&&_0x239fb8[_0x19649a(0x1c4)])return{'datasetCode':_0x239fb8[_0x19649a(0x1cc)],'operationType':_0x239fb8[_0x19649a(0x1c8)],'functionNode':_0x239fb8[_0x19649a(0x1c4)]};}return undefined;}export function extractScriptDescription(_0x441f37){const _0xc907cf=a153_0x54f3,_0x19715b=_0x441f37[_0xc907cf(0x1c5)](/\[\s*脚本描述\s*]\s*(.+)/);return _0x19715b?.[0x1]?.[_0xc907cf(0x1c0)]()||undefined;}export function isValidBffFunctionName(_0x55a6b0){const _0x4a17d4=a153_0x54f3;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x4a17d4(0x1c9)](_0x55a6b0);}export function normalizeHookFunctionNode(_0xed7655){const _0x419b2c=a153_0x54f3;if(!_0xed7655)return undefined;const _0xb3a4f9=_0xed7655['trim']()[_0x419b2c(0x1c1)]();if(_0xb3a4f9===_0x419b2c(0x1ce)||_0xb3a4f9===_0x419b2c(0x1d3))return _0xb3a4f9;return undefined;}
|
package/lib/core/db-resolver.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a158_0x33af(_0x3e5dbb,_0x11ad86){_0x3e5dbb=_0x3e5dbb-0x86;const _0x48f1b9=a158_0x48f1();let _0x33af24=_0x48f1b9[_0x3e5dbb];return _0x33af24;}(function(_0x374fc5,_0x121d92){const _0x2c2929=a158_0x33af,_0xb24d72=_0x374fc5();while(!![]){try{const _0x284037=parseInt(_0x2c2929(0x8b))/0x1*(-parseInt(_0x2c2929(0x87))/0x2)+-parseInt(_0x2c2929(0xa2))/0x3+parseInt(_0x2c2929(0x9e))/0x4+-parseInt(_0x2c2929(0x8a))/0x5*(-parseInt(_0x2c2929(0xa1))/0x6)+parseInt(_0x2c2929(0x90))/0x7*(parseInt(_0x2c2929(0x9f))/0x8)+parseInt(_0x2c2929(0x96))/0x9*(-parseInt(_0x2c2929(0x93))/0xa)+parseInt(_0x2c2929(0x9c))/0xb;if(_0x284037===_0x121d92)break;else _0xb24d72['push'](_0xb24d72['shift']());}catch(_0x19ebf3){_0xb24d72['push'](_0xb24d72['shift']());}}}(a158_0x48f1,0xb9d4b));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x44414c){const _0x122f19=a158_0x33af;if(cache[_0x122f19(0x8d)](_0x44414c))return cache[_0x122f19(0x97)](_0x44414c);const _0x1fa81b=await listDatasets(_0x44414c),_0x3ed565=new Map();for(const _0x452276 of _0x1fa81b){const _0x17004f=_0x452276[_0x122f19(0x8f)];_0x17004f?.[_0x122f19(0xa6)]!=null&&_0x3ed565['set'](_0x17004f['dbId'],_0x17004f[_0x122f19(0x8e)]??_0x122f19(0x91)+_0x17004f['dbId']);}const _0xbf1050=[..._0x3ed565[_0x122f19(0xa4)]()]['map'](([_0x54686d,_0x4f1476])=>({'dbId':_0x54686d,'dbName':_0x4f1476}));return cache[_0x122f19(0x9a)](_0x44414c,_0xbf1050),_0xbf1050;}export async function resolveDb(_0x3956d7,_0x4885ad){const _0x45e590=a158_0x33af,_0x2ce091=await listDatabases(_0x3956d7);if(_0x2ce091['length']===0x0)return{'resolved':[],'error':_0x45e590(0x88)};if(!_0x4885ad)return{'resolved':_0x2ce091};const _0x269264=Number(_0x4885ad);if(!Number[_0x45e590(0x94)](_0x269264)){const _0x791ed7=_0x2ce091[_0x45e590(0x99)](_0x52cf0e=>_0x52cf0e[_0x45e590(0xa6)]===_0x269264);if(_0x791ed7)return{'resolved':[_0x791ed7]};}const _0x20d0ff=_0x4885ad[_0x45e590(0x92)](),_0x2f8a29=_0x2ce091[_0x45e590(0x98)](_0x4c9fa2=>_0x4c9fa2[_0x45e590(0x8e)]['toLowerCase']()[_0x45e590(0x8c)](_0x20d0ff));if(_0x2f8a29[_0x45e590(0x86)]>0x0)return{'resolved':_0x2f8a29};const _0x2a0bb2=_0x2ce091[_0x45e590(0xa3)](_0x4ab7aa=>_0x4ab7aa[_0x45e590(0x8e)]+'\x20('+_0x4ab7aa[_0x45e590(0xa6)]+')')[_0x45e590(0x89)](',\x20');return{'resolved':[],'error':_0x45e590(0x9b)+_0x4885ad+_0x45e590(0xa5)+_0x2a0bb2};}function a158_0x48f1(){const _0x1a1279=['1chsPDt','includes','has','dbName','dbtableConfig','2555TGqggC','db-','toLowerCase','20RNzQjA','isNaN','.\x20Be\x20more\x20specific.','3753873bPocPs','get','filter','find','set','No\x20database\x20matching\x20\x22','14098953NIsdIm','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','2189060fvxDsY','26800mTWTdQ','\x22\x20matches\x20multiple\x20databases:\x20','582gLOYrd','2487807BRDZhH','map','entries','\x22.\x20Available:\x20','dbId','length','2960648FQQFmg','No\x20linked\x20databases\x20found\x20for\x20this\x20app.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','join','43980yeXtRO'];a158_0x48f1=function(){return _0x1a1279;};return a158_0x48f1();}export async function resolveOneDb(_0x29d3a9,_0x2a68cc){const _0x20c3e9=a158_0x33af,{resolved:_0x418783,error:_0x1c91c3}=await resolveDb(_0x29d3a9,_0x2a68cc);if(_0x1c91c3)return{'db':null,'error':_0x1c91c3};if(_0x418783[_0x20c3e9(0x86)]===0x1)return{'db':_0x418783[0x0]};if(!_0x2a68cc){const _0x3eb3ca=_0x418783[_0x20c3e9(0xa3)](_0x5e2a85=>_0x5e2a85['dbName']+'\x20('+_0x5e2a85['dbId']+')')[_0x20c3e9(0x89)](',\x20');return{'db':null,'error':_0x20c3e9(0x9d)+_0x3eb3ca};}const _0x1a7d12=_0x418783['map'](_0x802033=>_0x802033[_0x20c3e9(0x8e)]+'\x20('+_0x802033[_0x20c3e9(0xa6)]+')')['join'](',\x20');return{'db':null,'error':'\x22'+_0x2a68cc+_0x20c3e9(0xa0)+_0x1a7d12+_0x20c3e9(0x95)};}export async function getDbName(_0x7c9d88,_0x45c44e){const _0x21706d=a158_0x33af,_0x312791=await listDatabases(_0x7c9d88);return _0x312791[_0x21706d(0x99)](_0x15866c=>_0x15866c['dbId']===_0x45c44e)?.[_0x21706d(0x8e)];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a156_0x384c(_0x347b55,_0x120c6e){_0x347b55=_0x347b55-0x9d;const _0x4d08ff=a156_0x4d08();let _0x384cdd=_0x4d08ff[_0x347b55];return _0x384cdd;}(function(_0x17bec4,_0x57c697){const _0xb3155c=a156_0x384c,_0x575551=_0x17bec4();while(!![]){try{const _0x4b008d=-parseInt(_0xb3155c(0xb0))/0x1+-parseInt(_0xb3155c(0xae))/0x2*(-parseInt(_0xb3155c(0xa1))/0x3)+parseInt(_0xb3155c(0xbc))/0x4*(-parseInt(_0xb3155c(0xa8))/0x5)+-parseInt(_0xb3155c(0xbd))/0x6*(parseInt(_0xb3155c(0xa5))/0x7)+-parseInt(_0xb3155c(0xa4))/0x8+-parseInt(_0xb3155c(0xc2))/0x9*(-parseInt(_0xb3155c(0xaa))/0xa)+parseInt(_0xb3155c(0xbe))/0xb*(-parseInt(_0xb3155c(0xbf))/0xc);if(_0x4b008d===_0x57c697)break;else _0x575551['push'](_0x575551['shift']());}catch(_0x3f2b53){_0x575551['push'](_0x575551['shift']());}}}(a156_0x4d08,0x7d2bb));function a156_0x4d08(){const _0x3fd58f=['isDangerous','288juUNxi','add','from','DDL','match','push','3FRLnRH','length','join','2105424CuwUly','2096549iskCKn','includes','unknown\x20table(s)','288485hRSGTh','DELETE','223160gevFbl','SQL\x20content\x20is\x20empty','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','trim','1990100BBkoPO','UNKNOWN','350987sXNfXM','INSERT','type','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','WITH','test','\x20with\x20parameters:\x20','startsWith','SELECT','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','replace','\x20query\x20targeting\x20','4hndDzQ','6UYMiwb','2476034LFkjmA','12fxduXb','matchAll'];a156_0x4d08=function(){return _0x3fd58f;};return a156_0x4d08();}export function detectSqlType(_0x1d9d75){const _0x510aad=a156_0x384c;if(!_0x1d9d75?.['trim']())return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':_0x510aad(0xab)};const _0x3cb7e6=_0x1d9d75[_0x510aad(0xba)](/#\{[^}]*\}/g,'?')[_0x510aad(0xba)](/\$\{[^}]*\}/g,'?')[_0x510aad(0xba)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x510aad(0xba)](/\/\*[\s\S]*?\*\//g,'')[_0x510aad(0xad)](),_0x2cd698=_0x3cb7e6['split']('\x0a');let _0xe7b2a2='';for(const _0x5ac07f of _0x2cd698){const _0x16ec6a=_0x5ac07f[_0x510aad(0xad)]();if(!_0x16ec6a||_0x16ec6a[_0x510aad(0xb7)]('--')||_0x16ec6a[_0x510aad(0xb7)]('/*'))continue;_0xe7b2a2=_0x16ec6a;break;}const _0x46620f=_0xe7b2a2['toUpperCase']();if(_0x46620f['startsWith'](_0x510aad(0xb8))||_0x46620f[_0x510aad(0xb7)](_0x510aad(0xb4))){const _0x539a6f=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x510aad(0xb5)](_0x3cb7e6);return{'type':_0x510aad(0xb8),'isSelectOnly':!_0x539a6f,'isDangerous':_0x539a6f,'reason':_0x539a6f?'SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT':undefined};}if(_0x46620f[_0x510aad(0xb7)](_0x510aad(0xb1)))return{'type':_0x510aad(0xb1),'isSelectOnly':![],'isDangerous':![]};if(_0x46620f[_0x510aad(0xb7)]('UPDATE'))return{'type':'UPDATE','isSelectOnly':![],'isDangerous':![]};if(_0x46620f[_0x510aad(0xb7)](_0x510aad(0xa9)))return{'type':_0x510aad(0xa9),'isSelectOnly':![],'isDangerous':!![],'reason':_0x510aad(0xb3)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x510aad(0xb5)](_0x46620f))return{'type':_0x510aad(0x9e),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':_0x510aad(0xaf),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x41e68f){const _0x989898=a156_0x384c,_0x2dc704=_0x41e68f['replace'](/#\{[^}]*\}/g,'?')[_0x989898(0xba)](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')['replace'](/--.*$/gm,'')[_0x989898(0xba)](/\/\*[\s\S]*?\*\//g,''),_0x34ac81=[],_0x24d72d=_0x2dc704[_0x989898(0x9f)](/FROM\s+([^\s,)(]+)/i);if(_0x24d72d?.[0x1])_0x34ac81[_0x989898(0xa0)](_0x24d72d[0x1]['replace'](/[`"]/g,''));for(const _0x41830d of _0x2dc704[_0x989898(0xc0)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x48ef63=_0x41830d[0x1]?.[_0x989898(0xba)](/[`"]/g,'');if(_0x48ef63&&!_0x34ac81['includes'](_0x48ef63))_0x34ac81[_0x989898(0xa0)](_0x48ef63);}const _0x5a4122=_0x2dc704[_0x989898(0x9f)](/INTO\s+([^\s(]+)/i);if(_0x5a4122?.[0x1]){const _0x3a39ea=_0x5a4122[0x1][_0x989898(0xba)](/[`"]/g,'');if(!_0x34ac81[_0x989898(0xa6)](_0x3a39ea))_0x34ac81[_0x989898(0xa0)](_0x3a39ea);}const _0xa43b53=_0x2dc704['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0xa43b53?.[0x1]){const _0x27822a=_0xa43b53[0x1][_0x989898(0xba)](/[`"]/g,'');if(!_0x34ac81['includes'](_0x27822a))_0x34ac81[_0x989898(0xa0)](_0x27822a);}return _0x34ac81;}function extractParameters(_0x1eeb2a){const _0x810589=a156_0x384c,_0x13c6aa=new Set();for(const _0x3987f7 of _0x1eeb2a[_0x810589(0xc0)](/#\{(\w+)\}/g))if(_0x3987f7[0x1])_0x13c6aa[_0x810589(0xc3)](_0x3987f7[0x1]);for(const _0x2604bf of _0x1eeb2a[_0x810589(0xc0)](/\$\{(\w+)\}/g))if(_0x2604bf[0x1])_0x13c6aa[_0x810589(0xc3)](_0x2604bf[0x1]);return Array[_0x810589(0x9d)](_0x13c6aa);}export function validateSql(_0x244f6f){const _0x3d01a4=a156_0x384c,_0x1f0482=detectSqlType(_0x244f6f),_0xf40678=extractTables(_0x244f6f),_0x13267d=extractParameters(_0x244f6f);if(_0x1f0482[_0x3d01a4(0xc1)])return{'valid':![],'sqlType':_0x1f0482,'tables':_0xf40678,'parameters':_0x13267d,'message':_0x1f0482['reason']||_0x1f0482[_0x3d01a4(0xb2)]+_0x3d01a4(0xb9)};if(_0x1f0482['type']===_0x3d01a4(0xaf))return{'valid':![],'sqlType':_0x1f0482,'tables':_0xf40678,'parameters':_0x13267d,'message':_0x3d01a4(0xac)};return{'valid':!![],'sqlType':_0x1f0482,'tables':_0xf40678,'parameters':_0x13267d,'message':_0x1f0482[_0x3d01a4(0xb2)]+_0x3d01a4(0xbb)+(_0xf40678['length']?_0xf40678[_0x3d01a4(0xa3)](',\x20'):_0x3d01a4(0xa7))+(_0x13267d[_0x3d01a4(0xa2)]?_0x3d01a4(0xb6)+_0x13267d[_0x3d01a4(0xa3)](',\x20'):'')};}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a147_0x48c60b=a147_0xa6ba;function a147_0xa6ba(_0x3a8a46,_0x2a7168){_0x3a8a46=_0x3a8a46-0xbd;const _0x33ce36=a147_0x33ce();let _0xa6baac=_0x33ce36[_0x3a8a46];return _0xa6baac;}(function(_0x496fba,_0x23886d){const _0x2a5a3a=a147_0xa6ba,_0x2629c2=_0x496fba();while(!![]){try{const _0x5e0ce6=parseInt(_0x2a5a3a(0xcd))/0x1+parseInt(_0x2a5a3a(0xbd))/0x2*(parseInt(_0x2a5a3a(0xc3))/0x3)+parseInt(_0x2a5a3a(0xc7))/0x4*(parseInt(_0x2a5a3a(0xcb))/0x5)+-parseInt(_0x2a5a3a(0xc9))/0x6*(-parseInt(_0x2a5a3a(0xbf))/0x7)+parseInt(_0x2a5a3a(0xbe))/0x8+-parseInt(_0x2a5a3a(0xc8))/0x9*(parseInt(_0x2a5a3a(0xcc))/0xa)+-parseInt(_0x2a5a3a(0xc0))/0xb;if(_0x5e0ce6===_0x23886d)break;else _0x2629c2['push'](_0x2629c2['shift']());}catch(_0x21013b){_0x2629c2['push'](_0x2629c2['shift']());}}}(a147_0x33ce,0xb82b6));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a147_0x33ce(){const _0x3c48d6=['4suVsfV','5525216sGQViV','258636bqgPWJ','20244708UkEloX','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','1716609VyxBrF','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','\x20auth`\x20to\x20login\x20first.','Tip:\x20`','4BSMfbJ','18JVFLhz','36BJQkxN','Set\x20appcode\x20via\x20`','5646675pZMRQp','4024190pJKYNo','213543iUSSjP'];a147_0x33ce=function(){return _0x3c48d6;};return a147_0x33ce();}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Run\x20`'+CLI_BIN_NAME+a147_0x48c60b(0xc5),'configMissingHint':[a147_0x48c60b(0xca)+CLI_BIN_NAME+a147_0x48c60b(0xc2),a147_0x48c60b(0xc6)+CLI_BIN_NAME+a147_0x48c60b(0xc4)]['join']('\x0a\x20\x20\x20\x20\x20\x20\x20'),'notInProjectHint':a147_0x48c60b(0xc1)});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3f91ee,_0x3a98e7){var _0x2ebfb4=a46_0x229c,_0x152b60=_0x3f91ee();while(!![]){try{var _0x4b1372=-parseInt(_0x2ebfb4(0x1b7))/0x1*(parseInt(_0x2ebfb4(0x1bc))/0x2)+parseInt(_0x2ebfb4(0x1b4))/0x3+parseInt(_0x2ebfb4(0x1bb))/0x4+-parseInt(_0x2ebfb4(0x1ba))/0x5+parseInt(_0x2ebfb4(0x1b9))/0x6+parseInt(_0x2ebfb4(0x1b6))/0x7*(parseInt(_0x2ebfb4(0x1b5))/0x8)+-parseInt(_0x2ebfb4(0x1b8))/0x9*(parseInt(_0x2ebfb4(0x1bd))/0xa);if(_0x4b1372===_0x3a98e7)break;else _0x152b60['push'](_0x152b60['shift']());}catch(_0x4f3ea9){_0x152b60['push'](_0x152b60['shift']());}}}(a46_0x330e,0xcf61f));function a46_0x330e(){var _0x310965=['28142SvaRUw','54KjkTtW','188172rejiLg','7082620usEiav','5443780HmQsSI','38XYkTTt','1538300FblNIR','4295142eycTDH','248JvvAvC','203140eAnNvw'];a46_0x330e=function(){return _0x310965;};return a46_0x330e();}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a46_0x1a2071}from'@lovrabet/cli-framework';function a46_0x229c(_0x12b1e9,_0x54d24f){_0x12b1e9=_0x12b1e9-0x1b4;var _0x330e14=a46_0x330e();var _0x229cbe=_0x330e14[_0x12b1e9];return _0x229cbe;}export function buildAllFlags(_0x1703f9){return a46_0x1a2071(_0x1703f9,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a45_0x3b5e5d=a45_0x5f47;(function(_0x44983b,_0x38557c){const _0x3c2114=a45_0x5f47,_0x4dc0cf=_0x44983b();while(!![]){try{const _0x2b19b6=-parseInt(_0x3c2114(0x1a9))/0x1*(-parseInt(_0x3c2114(0x1aa))/0x2)+parseInt(_0x3c2114(0x1a7))/0x3+parseInt(_0x3c2114(0x1a1))/0x4*(-parseInt(_0x3c2114(0x1a6))/0x5)+-parseInt(_0x3c2114(0x1ab))/0x6+-parseInt(_0x3c2114(0x1a2))/0x7*(parseInt(_0x3c2114(0x1a4))/0x8)+parseInt(_0x3c2114(0x1ac))/0x9+-parseInt(_0x3c2114(0x1a8))/0xa*(-parseInt(_0x3c2114(0x1a3))/0xb);if(_0x2b19b6===_0x38557c)break;else _0x4dc0cf['push'](_0x4dc0cf['shift']());}catch(_0x3642cc){_0x4dc0cf['push'](_0x4dc0cf['shift']());}}}(a45_0x1f6c,0xcd1bd));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a45_0x5f47(_0x2e4fef,_0x3a9d10){_0x2e4fef=_0x2e4fef-0x1a1;const _0x1f6cc8=a45_0x1f6c();let _0x5f4744=_0x1f6cc8[_0x2e4fef];return _0x5f4744;}export const parseFlags=helpers[a45_0x3b5e5d(0x1a5)];export const validateFlags=helpers['validateFlags'];function a45_0x1f6c(){const _0x2a4bfb=['83026FfxXWL','8730822pgFVfE','10253151aadxAn','4VpTmys','10790619ccRQkb','11OYbiJx','8LYgtBJ','parseFlags','6604915LKlMFj','3469791tyJFHa','18241010pxmVzM','25XfJOTl'];a45_0x1f6c=function(){return _0x2a4bfb;};return a45_0x1f6c();}
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a42_0x5d80(){const _0x5e5af0=['\x20[args]\x20[flags]','get','generateFullHelp','197655nEtpPh','2333436HkLOKE','3590255bupAyS','15523000ZUFvAi','22142150jovEEn','Requires\x20appcode\x20(set\x20via\x20`','5753538kCuZFR','generateCommandHelp','6XvpRap','52uMORCe','6bEjRYV','\x20project\x20init`\x20or\x20--appcode).','415683YRLfqM'];a42_0x5d80=function(){return _0x5e5af0;};return a42_0x5d80();}const a42_0x238889=a42_0x2545;(function(_0x48788d,_0x366b0e){const _0x2c0f52=a42_0x2545,_0x9941bd=_0x48788d();while(!![]){try{const _0x2227ac=parseInt(_0x2c0f52(0xbf))/0x1*(parseInt(_0x2c0f52(0xc7))/0x2)+parseInt(_0x2c0f52(0xbb))/0x3*(parseInt(_0x2c0f52(0xc8))/0x4)+-parseInt(_0x2c0f52(0xc1))/0x5*(parseInt(_0x2c0f52(0xc9))/0x6)+-parseInt(_0x2c0f52(0xc0))/0x7+-parseInt(_0x2c0f52(0xc2))/0x8+-parseInt(_0x2c0f52(0xc5))/0x9+parseInt(_0x2c0f52(0xc3))/0xa;if(_0x2227ac===_0x366b0e)break;else _0x9941bd['push'](_0x9941bd['shift']());}catch(_0x26b5ce){_0x9941bd['push'](_0x9941bd['shift']());}}}(a42_0x5d80,0xeea09));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':_0x283add=>serviceGroups[a42_0x238889(0xbd)](_0x283add),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a42_0x238889(0xc4)+CLI_BIN_NAME+a42_0x238889(0xba),'serviceUsageSuffix':a42_0x238889(0xbc),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x47e940){const _0x6bcfff=a42_0x238889;return generators[_0x6bcfff(0xc6)](_0x47e940);}function a42_0x2545(_0x4d7aed,_0x3aa5bd){_0x4d7aed=_0x4d7aed-0xba;const _0x5d80f2=a42_0x5d80();let _0x254555=_0x5d80f2[_0x4d7aed];return _0x254555;}export const generateServiceHelp=generators['generateServiceHelp'];export const generateFullHelp=generators[a42_0x238889(0xbe)];
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x13cd5f,_0xc78c2f){var _0x2925fa=a44_0x5021,_0x44b572=_0x13cd5f();while(!![]){try{var _0xc7e09f=parseInt(_0x2925fa(0x193))/0x1*(-parseInt(_0x2925fa(0x197))/0x2)+-parseInt(_0x2925fa(0x19b))/0x3+parseInt(_0x2925fa(0x192))/0x4*(-parseInt(_0x2925fa(0x194))/0x5)+-parseInt(_0x2925fa(0x199))/0x6+parseInt(_0x2925fa(0x198))/0x7+-parseInt(_0x2925fa(0x196))/0x8+parseInt(_0x2925fa(0x195))/0x9*(parseInt(_0x2925fa(0x19a))/0xa);if(_0xc7e09f===_0xc78c2f)break;else _0x44b572['push'](_0x44b572['shift']());}catch(_0x351366){_0x44b572['push'](_0x44b572['shift']());}}}(a44_0x2e87,0xace76));function a44_0x5021(_0x30031d,_0x2bcb20){_0x30031d=_0x30031d-0x192;var _0x2e87ed=a44_0x2e87();var _0x50216e=_0x2e87ed[_0x30031d];return _0x50216e;}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 a44_0x2e87(){var _0x59e7d5=['65490eJdmGq','298782MqXuVG','4FSeZit','4qCEZky','742345jbxGAc','3951MzNdfY','4642936FNFrCh','327274eVQBgR','2896460YDiqYr','6585594ZzISlw'];a44_0x2e87=function(){return _0x59e7d5;};return a44_0x2e87();}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 a48_0x45f0(){var _0x384c5d=['4014717akErsO','25dXIzve','481658rFBgaE','648790lwbche','34491237krsqIR','6iCBNEV','12161368IUhaPM','3306751VHyRoA','6EubuKP','609772XhfxIX','144QCDNXy'];a48_0x45f0=function(){return _0x384c5d;};return a48_0x45f0();}(function(_0x50aca2,_0x36c4ed){var _0x53a2ed=a48_0x5974,_0xad2f01=_0x50aca2();while(!![]){try{var _0x1ca907=-parseInt(_0x53a2ed(0x80))/0x1*(-parseInt(_0x53a2ed(0x86))/0x2)+-parseInt(_0x53a2ed(0x89))/0x3+parseInt(_0x53a2ed(0x87))/0x4*(parseInt(_0x53a2ed(0x7f))/0x5)+-parseInt(_0x53a2ed(0x83))/0x6*(-parseInt(_0x53a2ed(0x85))/0x7)+parseInt(_0x53a2ed(0x84))/0x8+parseInt(_0x53a2ed(0x88))/0x9*(parseInt(_0x53a2ed(0x81))/0xa)+-parseInt(_0x53a2ed(0x82))/0xb;if(_0x1ca907===_0x36c4ed)break;else _0xad2f01['push'](_0xad2f01['shift']());}catch(_0x5c8218){_0xad2f01['push'](_0xad2f01['shift']());}}}(a48_0x45f0,0xba86b));function a48_0x5974(_0x32b068,_0x16e433){_0x32b068=_0x32b068-0x7f;var _0x45f0e7=a48_0x45f0();var _0x597490=_0x45f0e7[_0x32b068];return _0x597490;}export{formatOutput}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x185c6e,_0xcecaae){var _0x89b6ea=a40_0x3a59,_0xf52163=_0x185c6e();while(!![]){try{var _0x14663c=parseInt(_0x89b6ea(0xa7))/0x1+-parseInt(_0x89b6ea(0xab))/0x2*(-parseInt(_0x89b6ea(0xa5))/0x3)+-parseInt(_0x89b6ea(0xa9))/0x4*(-parseInt(_0x89b6ea(0xad))/0x5)+parseInt(_0x89b6ea(0xaa))/0x6+-parseInt(_0x89b6ea(0xaf))/0x7*(parseInt(_0x89b6ea(0xac))/0x8)+parseInt(_0x89b6ea(0xae))/0x9+parseInt(_0x89b6ea(0xa6))/0xa*(-parseInt(_0x89b6ea(0xa8))/0xb);if(_0x14663c===_0xcecaae)break;else _0xf52163['push'](_0xf52163['shift']());}catch(_0x285c80){_0xf52163['push'](_0xf52163['shift']());}}}(a40_0x5deb,0xbcf22));function a40_0x3a59(_0x2afe70,_0x53d49f){_0x2afe70=_0x2afe70-0xa5;var _0x5deb3d=a40_0x5deb();var _0x3a59a7=_0x5deb3d[_0x2afe70];return _0x3a59a7;}function a40_0x5deb(){var _0x543456=['3820920fMOXBU','2oKAfvi','10616LrJaew','415oQyxXN','5104998vUZccy','5663pdlFxV','572853OmXQtD','10WDvfcB','1233922WQkBfT','16236847mxfXhy','33476IwrqSE'];a40_0x5deb=function(){return _0x543456;};return a40_0x5deb();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1f9b77,_0x1de7c5){const _0x4f00ec=a47_0x4b2e,_0x4360a3=_0x1f9b77();while(!![]){try{const _0x502cb0=parseInt(_0x4f00ec(0x13a))/0x1*(parseInt(_0x4f00ec(0x12b))/0x2)+-parseInt(_0x4f00ec(0x120))/0x3*(-parseInt(_0x4f00ec(0x128))/0x4)+-parseInt(_0x4f00ec(0x134))/0x5*(parseInt(_0x4f00ec(0x136))/0x6)+parseInt(_0x4f00ec(0x125))/0x7*(parseInt(_0x4f00ec(0x123))/0x8)+-parseInt(_0x4f00ec(0x12f))/0x9*(parseInt(_0x4f00ec(0x11e))/0xa)+parseInt(_0x4f00ec(0x132))/0xb*(-parseInt(_0x4f00ec(0x137))/0xc)+parseInt(_0x4f00ec(0x138))/0xd;if(_0x502cb0===_0x1de7c5)break;else _0x4360a3['push'](_0x4360a3['shift']());}catch(_0x5e8680){_0x4360a3['push'](_0x4360a3['shift']());}}}(a47_0x55b0,0x93c89));function a47_0x4b2e(_0xd20673,_0x269d09){_0xd20673=_0xd20673-0x11d;const _0x55b0d2=a47_0x55b0();let _0x4b2e61=_0x55b0d2[_0xd20673];return _0x4b2e61;}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x48df48,_0x3a1402,_0x42a5b3,_0x4a6b06){const _0x3ddffa=a47_0x4b2e,_0x1df9c2=_0x48df48[_0x3ddffa(0x122)]['some'](_0x49bfa6=>_0x49bfa6[_0x3ddffa(0x139)]===_0x3ddffa(0x12d)&&_0x49bfa6[_0x3ddffa(0x121)]===_0x3ddffa(0x124)),_0x52b9bf=_0x48df48['flags'][_0x3ddffa(0x126)](_0x5954c1=>_0x5954c1[_0x3ddffa(0x139)]===_0x3ddffa(0x11d)&&_0x5954c1[_0x3ddffa(0x121)]===_0x3ddffa(0x124));if(!_0x1df9c2||!_0x52b9bf)return;const _0xeee471=_0x3a1402[_0x3ddffa(0x12d)]?String(_0x3a1402[_0x3ddffa(0x12d)]):'',_0x3f908d=_0x3a1402[_0x3ddffa(0x11d)]?String(_0x3a1402['alias']):'';if(!_0xeee471&&!_0x3f908d)throw CliErrors[_0x3ddffa(0x12a)]('`'+_0x4a6b06+_0x3ddffa(0x130));if(_0x3f908d&&!_0xeee471){const _0x451ade=resolveAlias(_0x42a5b3,_0x3f908d);if(!_0x451ade){const _0x2c7ac9=listAliases(_0x42a5b3)['map'](_0x53e27f=>_0x53e27f[_0x3ddffa(0x11d)]),_0x18adef=_0x2c7ac9[_0x3ddffa(0x133)]?_0x3ddffa(0x12e)+_0x2c7ac9[_0x3ddffa(0x11f)](',\x20'):_0x3ddffa(0x12c)+_0x42a5b3+_0x3ddffa(0x129)+CLI_BIN_NAME+_0x3ddffa(0x131);throw CliErrors[_0x3ddffa(0x12a)](_0x3ddffa(0x135)+_0x3f908d+_0x3ddffa(0x127)+_0x18adef);}_0x3a1402[_0x3ddffa(0x12d)]=_0x451ade;}}function a47_0x55b0(){const _0x339b13=['758760ojTlmJ','type','flags','106304SdNrGx','string','140gwvyWf','some','\x22.\x20','4QzoCrz','.\x20Run\x20`','validation','2CQnxTx','No\x20api.ts\x20found\x20in\x20','code','Available\x20aliases:\x20','9Iqpbxv','`\x20requires\x20either\x20--code\x20or\x20--alias.','\x20api\x20pull`\x20first.','77rLdZDZ','length','5TCFuoE','Unknown\x20alias\x20\x22','4888254xiGeir','847272ECEdsS','25981020mUaRtw','name','198626PkIscd','alias','8015740XgeGsg','join'];a47_0x55b0=function(){return _0x339b13;};return a47_0x55b0();}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a43_0x38d461=a43_0x67c6;(function(_0x71e77b,_0x7e3e6d){const _0x3328f2=a43_0x67c6,_0x3e6e29=_0x71e77b();while(!![]){try{const _0x57c412=parseInt(_0x3328f2(0x1b6))/0x1+parseInt(_0x3328f2(0x1ad))/0x2*(parseInt(_0x3328f2(0x19d))/0x3)+-parseInt(_0x3328f2(0x193))/0x4*(parseInt(_0x3328f2(0x1af))/0x5)+-parseInt(_0x3328f2(0x198))/0x6*(-parseInt(_0x3328f2(0x1a1))/0x7)+parseInt(_0x3328f2(0x19a))/0x8*(parseInt(_0x3328f2(0x199))/0x9)+parseInt(_0x3328f2(0x1ae))/0xa+-parseInt(_0x3328f2(0x1b2))/0xb;if(_0x57c412===_0x7e3e6d)break;else _0x3e6e29['push'](_0x3e6e29['shift']());}catch(_0x21ec65){_0x3e6e29['push'](_0x3e6e29['shift']());}}}(a43_0x30f2,0x4b6d4));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';function a43_0x30f2(){const _0x1bac21=['\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','\x20\x20\x20Continue?\x20[y/N]\x20','60wnhelm','3540530bEjqbU','20gnSMhe','map','resolveCookie','6830296qySReS','defaultPageSize','Set\x20appcode\x20via\x20`','authRequired','151578UKKkGg','High-risk\x20operation\x20`','requiresAppCode','apiDir','appCode','validation','531928yHvZZC','format','../core/api-client.js','appcode','⚠\x20\x20High-risk\x20operation:\x20','12MsvuMV','117KjyeQn','170312DNDehq','pageSize','mergedCli','51807SSFqWT','selectedAppName','cookie','apps','564739DPYjGo','name','cancelled','verbose','configMissing','currentApp','isNonInteractive','service','filter','resolveAppCode'];a43_0x30f2=function(){return _0x1bac21;};return a43_0x30f2();}import{getCookie}from'../auth/get-cookie.js';function a43_0x67c6(_0x37542c,_0x10263a){_0x37542c=_0x37542c-0x191;const _0x30f2aa=a43_0x30f2();let _0x67c60e=_0x30f2aa[_0x37542c];return _0x67c60e;}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 a43_0x215958}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x33825d,_0x1f1390,_0x56cb07=[]){const _0x46618a=a43_0x67c6;return{'rawFlags':_0x1f1390,'args':_0x56cb07,'resolveAppCode':()=>_0x33825d[_0x46618a(0x191)]||_0x1f1390[_0x46618a(0x196)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x33825d[_0x46618a(0x19f)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a43_0x215958(_0x1f1390),'defaultFormat':_0x33825d[_0x46618a(0x194)],'defaultPageSize':_0x33825d[_0x46618a(0x19b)],'defaultVerbose':_0x33825d[_0x46618a(0x1a4)],'apiDir':_0x33825d[_0x46618a(0x1b9)],'riskLevel':_0x33825d['riskLevel'],'selectedAppName':_0x33825d['explicitAppName'],'mergedCli':{'defaultApp':_0x33825d['defaultApp'],'currentApp':_0x33825d[_0x46618a(0x1a6)],'appCode':_0x33825d['appCode'],'apps':_0x33825d[_0x46618a(0x1a0)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a43_0x38d461(0x1a9)](_0x431439=>PIPELINE_FLAG_NAMES['has'](_0x431439[a43_0x38d461(0x1a2)]))[a43_0x38d461(0x1b0)](({name:_0x21255d,type:_0x82a04d,description:_0x3f6d9d})=>({'name':_0x21255d,'type':_0x82a04d,'description':_0x3f6d9d})),'formatOutput':formatOutput,'getCommandLabel'(_0x4ce048){const _0x54af2a=a43_0x38d461;return CLI_BIN_NAME+'\x20'+_0x4ce048[_0x54af2a(0x1a8)]+'\x20'+_0x4ce048['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x4f6e3b){const _0x559093=a43_0x38d461;return CliErrors[_0x559093(0x192)](_0x4f6e3b);}},async 'prepare'(_0x33461b,_0x2a49ee,_0x5430ee,_0x540b48){const _0x36813d=a43_0x38d461,_0x4ad3ae=_0x2a49ee[_0x36813d(0x1b9)]||DEFAULT_API_DIR;resolveAliasToCode(_0x33461b,_0x5430ee,_0x4ad3ae,_0x540b48);let _0x253abf='';if(_0x33461b['requiresAuth']!==![]){_0x253abf=_0x2a49ee[_0x36813d(0x1b1)]();if(!_0x253abf)throw CliErrors[_0x36813d(0x1b5)]();const {setActiveCookie:_0x5e71fb}=await import(_0x36813d(0x195));_0x5e71fb(_0x253abf);}let _0x14fba8='';if(_0x33461b[_0x36813d(0x1b8)]!==![]){_0x14fba8=_0x2a49ee[_0x36813d(0x1aa)]()??'';if(!_0x14fba8)throw CliErrors[_0x36813d(0x1a5)](_0x36813d(0x1b4)+CLI_BIN_NAME+_0x36813d(0x1ab));}return{'defaults':{'booleans':{'verbose':_0x2a49ee['defaultVerbose']},'numbers':{'pagesize':_0x2a49ee[_0x36813d(0x1b3)]}},'extras':{'appCode':_0x14fba8,'cookie':_0x253abf,'apiDomain':_0x2a49ee['resolveApiDomain'](),'apiDir':_0x4ad3ae,'selectedAppName':_0x2a49ee[_0x36813d(0x19e)],'mergedCli':_0x2a49ee[_0x36813d(0x19c)]}};},async 'confirmHighRisk'({env:_0x43a058,commandLabel:_0x2ec540}){const _0xdd8cce=a43_0x38d461;if(_0x43a058[_0xdd8cce(0x1a7)])throw CliErrors[_0xdd8cce(0x192)](_0xdd8cce(0x1b7)+_0x2ec540+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmationPrompt({'lines':[_0xdd8cce(0x197)+_0x2ec540,_0xdd8cce(0x1ac)],'createCancelledError':_0x5a9d1a=>CliErrors[_0xdd8cce(0x1a3)](_0x5a9d1a)});},async 'finalize'(){const {clearActiveCookie:_0x437430}=await import('../core/api-client.js');_0x437430();}};export async function runCommand(_0x34b4c1,_0x31d0e5){await runCommandWithAdapter(_0x34b4c1,_0x31d0e5,runnerAdapter);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a49_0x4633(){const _0x4b17f0=['6086752XfMRJd','626078fmoPgE','../commands/registry.js','1663320Ftaixn','911661SIRwxX','432588chvozn','493735WWFuiq','200541WpAiCH'];a49_0x4633=function(){return _0x4b17f0;};return a49_0x4633();}function a49_0x91e0(_0x478dd6,_0x13987d){_0x478dd6=_0x478dd6-0x9f;const _0x46338d=a49_0x4633();let _0x91e036=_0x46338d[_0x478dd6];return _0x91e036;}(function(_0x56f110,_0x446320){const _0x4ca1f3=a49_0x91e0,_0x379e8c=_0x56f110();while(!![]){try{const _0x27c262=parseInt(_0x4ca1f3(0xa0))/0x1+-parseInt(_0x4ca1f3(0xa2))/0x2+-parseInt(_0x4ca1f3(0xa5))/0x3+-parseInt(_0x4ca1f3(0xa4))/0x4+parseInt(_0x4ca1f3(0x9f))/0x5+parseInt(_0x4ca1f3(0xa6))/0x6+parseInt(_0x4ca1f3(0xa1))/0x7;if(_0x27c262===_0x446320)break;else _0x379e8c['push'](_0x379e8c['shift']());}catch(_0x2aa1fc){_0x379e8c['push'](_0x379e8c['shift']());}}}(a49_0x4633,0x32d26));import{buildSchemaPayload as a49_0x44dc59}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 _0x5e75f5=a49_0x91e0,{serviceRegistry:_0x19c651,findDefinition:_0xacc98}=await import(_0x5e75f5(0xa3));return a49_0x44dc59({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x19c651,'buildAllFlags':buildAllFlags,'findDefinition':_0xacc98});}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x25f86b,_0xf839a5){var _0x1bf3b0=a41_0x55e7,_0x285913=_0x25f86b();while(!![]){try{var _0x3d5cb4=-parseInt(_0x1bf3b0(0x76))/0x1+parseInt(_0x1bf3b0(0x74))/0x2+parseInt(_0x1bf3b0(0x73))/0x3*(-parseInt(_0x1bf3b0(0x77))/0x4)+parseInt(_0x1bf3b0(0x7a))/0x5*(-parseInt(_0x1bf3b0(0x75))/0x6)+parseInt(_0x1bf3b0(0x79))/0x7*(parseInt(_0x1bf3b0(0x7d))/0x8)+-parseInt(_0x1bf3b0(0x7b))/0x9+-parseInt(_0x1bf3b0(0x7c))/0xa*(-parseInt(_0x1bf3b0(0x78))/0xb);if(_0x3d5cb4===_0xf839a5)break;else _0x285913['push'](_0x285913['shift']());}catch(_0x7d3dd1){_0x285913['push'](_0x285913['shift']());}}}(a41_0x76ed,0x7caf8));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a41_0x55e7(_0x2c47b3,_0x1a1322){_0x2c47b3=_0x2c47b3-0x73;var _0x76ed2a=a41_0x76ed();var _0x55e706=_0x76ed2a[_0x2c47b3];return _0x55e706;}function a41_0x76ed(){var _0x5a1000=['10TtiSyh','120xYttxZ','21FoYezE','1478476VythHC','19776njJZAn','244721ZNhmXd','318104oavOZP','14199262lYrDwI','2681LCtFhf','1065QzHoxK','194958VIghnc'];a41_0x76ed=function(){return _0x5a1000;};return a41_0x76ed();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a24_0x19928a=a24_0x2f97;(function(_0x367124,_0x5130ba){const _0xd442c3=a24_0x2f97,_0x2fd32c=_0x367124();while(!![]){try{const _0x17a64e=parseInt(_0xd442c3(0xf5))/0x1+parseInt(_0xd442c3(0xf6))/0x2*(parseInt(_0xd442c3(0xfc))/0x3)+-parseInt(_0xd442c3(0xff))/0x4+-parseInt(_0xd442c3(0xfb))/0x5+-parseInt(_0xd442c3(0xfd))/0x6*(-parseInt(_0xd442c3(0xf7))/0x7)+-parseInt(_0xd442c3(0xf9))/0x8*(parseInt(_0xd442c3(0xf8))/0x9)+-parseInt(_0xd442c3(0xf3))/0xa*(-parseInt(_0xd442c3(0xf4))/0xb);if(_0x17a64e===_0x5130ba)break;else _0x2fd32c['push'](_0x2fd32c['shift']());}catch(_0x297598){_0x2fd32c['push'](_0x2fd32c['shift']());}}}(a24_0x39da,0xb1af5));export const VERSION=a24_0x19928a(0xfa);export const GIT_TAG=a24_0x19928a(0xfe);function a24_0x39da(){const _0x1e5a04=['549462pmAZNk','6GvPdLV','2145983TYSQUn','36gPnUAk','225312qCeErR','2.1.2','3435525AuQlAz','648321hYkVpR','6ZgLmZX','v2.1.2','2460072dORrKs','3191120eFRcGa','22ZfHRlX'];a24_0x39da=function(){return _0x1e5a04;};return a24_0x39da();}export const GIT_COMMIT='e337e0c';function a24_0x2f97(_0x5eee6e,_0x4890ab){_0x5eee6e=_0x5eee6e-0xf3;const _0x39da28=a24_0x39da();let _0x2f9706=_0x39da28[_0x5eee6e];return _0x2f9706;}export const BUILD_TIME='2026-04-14T06:20:18.971Z';
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a20_0x5c14(_0x40417e,_0xdeb368){_0x40417e=_0x40417e-0x1dc;var _0x466fda=a20_0x466f();var _0x5c149e=_0x466fda[_0x40417e];return _0x5c149e;}(function(_0x181b6a,_0x2910ab){var _0x144208=a20_0x5c14,_0x21f645=_0x181b6a();while(!![]){try{var _0x300730=-parseInt(_0x144208(0x1e5))/0x1*(-parseInt(_0x144208(0x1e2))/0x2)+parseInt(_0x144208(0x1de))/0x3+parseInt(_0x144208(0x1e3))/0x4+parseInt(_0x144208(0x1e6))/0x5+parseInt(_0x144208(0x1e8))/0x6*(parseInt(_0x144208(0x1e7))/0x7)+-parseInt(_0x144208(0x1ea))/0x8+-parseInt(_0x144208(0x1dc))/0x9;if(_0x300730===_0x2910ab)break;else _0x21f645['push'](_0x21f645['shift']());}catch(_0xea0c7a){_0x21f645['push'](_0x21f645['shift']());}}}(a20_0x466f,0x3f4ef));function a20_0x466f(){var _0x493042=['132381PBaCtJ','log','\x20--help','\x20\x20Use\x20','47032iHHNoc','1064808HcWTjB','bold','9grutcF','1233140LolCuf','2490733xjDwij','6iTXCZE','\x20to\x20view\x20available\x20commands.','637704XlWacY','7068564wVTGzN','green'];a20_0x466f=function(){return _0x493042;};return a20_0x466f();}import a20_0x141006 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0xa4d838=a20_0x5c14;console[_0xa4d838(0x1df)](),console['log'](a20_0x141006['green']['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console[_0xa4d838(0x1df)](),console[_0xa4d838(0x1df)](_0xa4d838(0x1e1)+a20_0x141006[_0xa4d838(0x1dd)][_0xa4d838(0x1e4)](CLI_BIN_NAME+_0xa4d838(0x1e0))+_0xa4d838(0x1e9)),console[_0xa4d838(0x1df)]();}
|
package/lib/skills/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xfc2280,_0x4ef028){const _0x1a83d4=a22_0x2d11,_0x1d3df9=_0xfc2280();while(!![]){try{const _0x7e9c80=-parseInt(_0x1a83d4(0x9f))/0x1*(-parseInt(_0x1a83d4(0x9c))/0x2)+-parseInt(_0x1a83d4(0xa0))/0x3*(parseInt(_0x1a83d4(0x98))/0x4)+parseInt(_0x1a83d4(0x9b))/0x5+parseInt(_0x1a83d4(0xaa))/0x6+-parseInt(_0x1a83d4(0x95))/0x7+-parseInt(_0x1a83d4(0x94))/0x8*(-parseInt(_0x1a83d4(0xa8))/0x9)+-parseInt(_0x1a83d4(0x90))/0xa*(-parseInt(_0x1a83d4(0x99))/0xb);if(_0x7e9c80===_0x4ef028)break;else _0x1d3df9['push'](_0x1d3df9['shift']());}catch(_0x495b40){_0x1d3df9['push'](_0x1d3df9['shift']());}}}(a22_0x2dcc,0x80a15));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function camelCaseFlagsToKebab(_0x38b0fb){const _0x16fea7=a22_0x2d11,_0x36b27a=[];for(const [_0xdbe52,_0x1f426c]of Object[_0x16fea7(0xa4)](_0x38b0fb)){if(_0x1f426c===!![]){const _0x1f9e6d=_0xdbe52[_0x16fea7(0xad)](/([A-Z])/g,_0x16fea7(0xa2))[_0x16fea7(0x92)]();_0x36b27a[_0x16fea7(0x8f)](_0x1f9e6d);}}return _0x36b27a;}export function parseDynamicFlags(){const _0x118289=a22_0x2d11,_0x49eafc=[];for(let _0x3d2213=0x3;_0x3d2213<process['argv'][_0x118289(0x9a)];_0x3d2213++){const _0x123b61=process['argv'][_0x3d2213];if(_0x123b61&&_0x123b61['startsWith']('--')){const _0x38ecb6=_0x123b61['slice'](0x2);_0x38ecb6&&!_0x38ecb6[_0x118289(0x9e)]('=')&&_0x49eafc['push'](_0x38ecb6);}}return _0x49eafc;}export function getAllProvidedFlags(_0x49504e){const _0x54243d=a22_0x2d11,_0x5eaca9=camelCaseFlagsToKebab(_0x49504e),_0x130a8c=parseDynamicFlags(),_0x546f6a=new Set([..._0x5eaca9,..._0x130a8c]);return Array[_0x54243d(0xa3)](_0x546f6a);}export function normalizeLegacyBffSaveFlags(_0x4615a3){const _0x1153fc=a22_0x2d11,_0x3b7665=new Set(_0x4615a3);return _0x3b7665[_0x1153fc(0x97)](_0x1153fc(0x96))&&_0x3b7665['add']('enable-bff-save'),Array[_0x1153fc(0xa3)](_0x3b7665);}const SKILLS_INSTALL_COMMAND_LINE='npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global';function a22_0x2d11(_0x190045,_0x47bc87){_0x190045=_0x190045-0x8e;const _0x2dcc48=a22_0x2dcc();let _0x2d114c=_0x2dcc48[_0x190045];return _0x2d114c;}function a22_0x2dcc(){const _0x170878=['\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','23202vJsIAx','log','1734978yDgbWJ','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','error','replace','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','push','330uFXKLR','setLogPath','toLowerCase','skill','2888gBAnDF','3452498JPDWCM','dangerously-bff-save','has','12jPrfup','27049PLjgkt','length','498085TJkNpd','568722gPXEqm','exit','includes','1wtpYMS','664863jppBDz','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','-$1','from','entries','cwd','help'];a22_0x2dcc=function(){return _0x170878;};return a22_0x2dcc();}export async function skillsCommand(_0x3d7ee5,_0x3af107,_0x3e20dc){const _0x2f4b62=a22_0x2d11;logger[_0x2f4b62(0x91)](process[_0x2f4b62(0xa5)]());if(_0x3e20dc?.[_0x2f4b62(0xa6)]||_0x3d7ee5==='--help'){showHelp();return;}console[_0x2f4b62(0xac)]('Error:\x20Unsupported\x20command:\x20'+(_0x3d7ee5||'(empty)')),console[_0x2f4b62(0xa9)]('\x0aAvailable\x20commands:'),console['log']('\x20\x20'+CLI_BIN_NAME+_0x2f4b62(0xa7)),console[_0x2f4b62(0xa9)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a'),console[_0x2f4b62(0xa9)](''),console[_0x2f4b62(0xa9)]('Equivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE),logger[_0x2f4b62(0xac)](_0x2f4b62(0x93),'不支持的命令:\x20'+_0x3d7ee5),process[_0x2f4b62(0x9d)](0x1);}function showHelp(){const _0x2fbc54=a22_0x2d11;console[_0x2fbc54(0xa9)](_0x2fbc54(0xa1)+CLI_BIN_NAME+'\x20skill\x20--help\x0a\x20\x20'+CLI_BIN_NAME+_0x2fbc54(0xab)+SKILLS_INSTALL_COMMAND_LINE+_0x2fbc54(0x8e));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a21_0x230fe9=a21_0x5f11;function a21_0x5ac6(){const _0x510c66=['npx','stdio','remove','272188qTjfJJ','1766448HQdANf','toString','lovrabet/lovrabet-skill','exit\x20','skill','4WwQUdr','inherit','108AtiBaY','yes','Lovrabet','pipe','--skill','6299448VBKMga','7SvZhdl','1306125GaoHBD','169590BqKfOQ','stdout','join','unknown','status','log','162546QYkiWT','add','828120wwqlsD','trim','stderr'];a21_0x5ac6=function(){return _0x510c66;};return a21_0x5ac6();}(function(_0x2d4df8,_0x4b0a3f){const _0x9db0eb=a21_0x5f11,_0x1ea5ea=_0x2d4df8();while(!![]){try{const _0x32614f=-parseInt(_0x9db0eb(0x12d))/0x1*(-parseInt(_0x9db0eb(0x13d))/0x2)+parseInt(_0x9db0eb(0x136))/0x3+-parseInt(_0x9db0eb(0x127))/0x4+parseInt(_0x9db0eb(0x13f))/0x5+parseInt(_0x9db0eb(0x128))/0x6+parseInt(_0x9db0eb(0x135))/0x7*(-parseInt(_0x9db0eb(0x134))/0x8)+parseInt(_0x9db0eb(0x12f))/0x9*(parseInt(_0x9db0eb(0x137))/0xa);if(_0x32614f===_0x4b0a3f)break;else _0x1ea5ea['push'](_0x1ea5ea['shift']());}catch(_0x5ae747){_0x1ea5ea['push'](_0x1ea5ea['shift']());}}}(a21_0x5ac6,0x8acd1));import{spawnSync}from'node:child_process';function a21_0x5f11(_0x2cf091,_0x5f4efd){_0x2cf091=_0x2cf091-0x123;const _0x5ac6e6=a21_0x5ac6();let _0x5f11b0=_0x5ac6e6[_0x2cf091];return _0x5f11b0;}import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const NPX_SKILLS_CLI='skills';export const NPX_SKILLS_SUBCOMMAND_ADD=a21_0x230fe9(0x13e);export const NPX_SKILLS_FLAG_SKILL=a21_0x230fe9(0x133);export const RABETBASE_SKILL_SOURCE=a21_0x230fe9(0x12a);export const DEFAULT_RABETBASE_SKILL_NAME=a21_0x230fe9(0x131);export function buildNpxSkillsAddArgv(_0x46c872=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x46c872];}export const NPX_SKILLS_ADD_COMMAND_LINE=[a21_0x230fe9(0x124),...buildNpxSkillsAddArgv()][a21_0x230fe9(0x139)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x401ca9,_0x2487fc){const _0x47aaaf=a21_0x230fe9;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5dc7d7=_0x2487fc?.[_0x47aaaf(0x125)]??_0x47aaaf(0x12e),_0xac8539=resolveNpmBin(_0x47aaaf(0x124)),_0x4630e0=buildNpxSkillsAddArgv(_0x2487fc?.[_0x47aaaf(0x12c)]??DEFAULT_RABETBASE_SKILL_NAME),_0x346bd1=[_0xac8539,..._0x4630e0][_0x47aaaf(0x139)]('\x20');console[_0x47aaaf(0x13c)]('*\x20'+_0x346bd1);const _0x50c5dd=spawnSync(_0xac8539,_0x4630e0,{'cwd':_0x401ca9,'stdio':_0x5dc7d7,'env':process.env,'shell':![]}),_0x3d37e9=_0x50c5dd[_0x47aaaf(0x13b)];if(_0x3d37e9===0x0)return{'ok':!![],'status':0x0};let _0x10ba2c=_0x47aaaf(0x12b)+(_0x3d37e9??_0x47aaaf(0x13a));if(_0x5dc7d7===_0x47aaaf(0x132)){const _0x24c5d5=_0x50c5dd[_0x47aaaf(0x123)]?_0x50c5dd[_0x47aaaf(0x123)][_0x47aaaf(0x129)]()[_0x47aaaf(0x140)]():'',_0x2ec092=_0x50c5dd['stdout']?_0x50c5dd[_0x47aaaf(0x138)][_0x47aaaf(0x129)]()[_0x47aaaf(0x140)]():'';if(_0x24c5d5)_0x10ba2c=_0x24c5d5;else{if(_0x2ec092)_0x10ba2c=_0x2ec092;}}return{'ok':![],'status':_0x3d37e9??null,'error':_0x10ba2c};}export function runNpxSkillsRemove(_0x5c4244,_0x318d06){const _0x133693=a21_0x230fe9;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x145815=_0x318d06?.[_0x133693(0x125)]??_0x133693(0x12e),_0x3bab55=resolveNpmBin(_0x133693(0x124)),_0x4a02f3=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x133693(0x126),RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x318d06?.[_0x133693(0x12c)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x318d06?.[_0x133693(0x130)]?['-y']:[]],_0x2ce6f5=[_0x3bab55,..._0x4a02f3]['join']('\x20');console['log']('*\x20'+_0x2ce6f5);const _0x1f9787=spawnSync(_0x3bab55,_0x4a02f3,{'cwd':_0x5c4244,'stdio':_0x145815,'env':process.env,'shell':![]}),_0x5d7144=_0x1f9787['status'];if(_0x5d7144===0x0)return{'ok':!![],'status':0x0};let _0x5e083c=_0x133693(0x12b)+(_0x5d7144??_0x133693(0x13a));if(_0x145815===_0x133693(0x132)){const _0x5594bb=_0x1f9787[_0x133693(0x123)]?_0x1f9787[_0x133693(0x123)][_0x133693(0x129)]()[_0x133693(0x140)]():'',_0x299cf3=_0x1f9787['stdout']?_0x1f9787['stdout'][_0x133693(0x129)]()[_0x133693(0x140)]():'';if(_0x5594bb)_0x5e083c=_0x5594bb;else{if(_0x299cf3)_0x5e083c=_0x299cf3;}}return{'ok':![],'status':_0x5d7144??null,'error':_0x5e083c};}export function runNpxSkillsAddGlobal(_0x41f9e2,_0xeddaf4,_0x1ba350){const _0xccc3aa=a21_0x230fe9;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x599666=_0x1ba350?.[_0xccc3aa(0x125)]??_0xccc3aa(0x12e),_0x20b034=resolveNpmBin('npx'),_0x2b84a3=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0xeddaf4,'--global',..._0x1ba350?.[_0xccc3aa(0x130)]?['-y']:[]],_0x2abbd8=[_0x20b034,..._0x2b84a3]['join']('\x20');console[_0xccc3aa(0x13c)]('*\x20'+_0x2abbd8);const _0x1cb45a=spawnSync(_0x20b034,_0x2b84a3,{'cwd':_0x41f9e2,'stdio':_0x599666,'env':process.env,'shell':![]}),_0x2dd7fb=_0x1cb45a[_0xccc3aa(0x13b)];if(_0x2dd7fb===0x0)return{'ok':!![],'status':0x0};let _0x19257d=_0xccc3aa(0x12b)+(_0x2dd7fb??'unknown');if(_0x599666===_0xccc3aa(0x132)){const _0x15f478=_0x1cb45a[_0xccc3aa(0x123)]?_0x1cb45a['stderr']['toString']()['trim']():'',_0x4968ff=_0x1cb45a['stdout']?_0x1cb45a[_0xccc3aa(0x138)][_0xccc3aa(0x129)]()[_0xccc3aa(0x140)]():'';if(_0x15f478)_0x19257d=_0x15f478;else{if(_0x4968ff)_0x19257d=_0x4968ff;}}return{'ok':![],'status':_0x2dd7fb??null,'error':_0x19257d};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xc47b54,_0x90ec1e){const _0x3311=a38_0x2a93,_0x29d1c9=_0xc47b54();while(!![]){try{const _0x31337a=-parseInt(_0x3311(0x10b))/0x1*(parseInt(_0x3311(0x114))/0x2)+parseInt(_0x3311(0x119))/0x3*(parseInt(_0x3311(0x108))/0x4)+parseInt(_0x3311(0x111))/0x5+-parseInt(_0x3311(0x115))/0x6*(-parseInt(_0x3311(0x113))/0x7)+parseInt(_0x3311(0x11c))/0x8*(-parseInt(_0x3311(0x118))/0x9)+parseInt(_0x3311(0x11a))/0xa*(parseInt(_0x3311(0x109))/0xb)+-parseInt(_0x3311(0x110))/0xc*(parseInt(_0x3311(0x10a))/0xd);if(_0x31337a===_0x90ec1e)break;else _0x29d1c9['push'](_0x29d1c9['shift']());}catch(_0xa05ffa){_0x29d1c9['push'](_0x29d1c9['shift']());}}}(a38_0x5f59,0x3241a));function a38_0x2a93(_0xc41788,_0x2418d1){_0xc41788=_0xc41788-0x108;const _0x5f5967=a38_0x5f59();let _0x2a9387=_0x5f5967[_0xc41788];return _0x2a9387;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i];function isSensitiveKey(_0x254b59){const _0xfae69e=a38_0x2a93;return SENSITIVE_PATTERNS['some'](_0x750afa=>_0x750afa[_0xfae69e(0x11f)](_0x254b59));}function sanitizeFlags(_0x59a88b){const _0x25bd73=a38_0x2a93,_0x1e960a={};for(const [_0x2fa903,_0x360424]of Object[_0x25bd73(0x117)](_0x59a88b)){isSensitiveKey(_0x2fa903)?_0x1e960a[_0x2fa903]=_0x360424!=null&&_0x360424!==''?_0x25bd73(0x10f):_0x360424:_0x1e960a[_0x2fa903]=_0x360424;}return _0x1e960a;}export async function reportCommandTrace(_0x4d7cce){const _0xb0f134=a38_0x2a93;try{const _0x37c86b=sanitizeFlags(_0x4d7cce[_0xb0f134(0x10d)]);await sendCliTraceLog({'spanName':_0xb0f134(0x11d),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x4d7cce[_0xb0f134(0x112)],'command.name':_0x4d7cce[_0xb0f134(0x116)],'command.flags':JSON[_0xb0f134(0x11e)](_0x37c86b),..._0x4d7cce[_0xb0f134(0x10e)]!=null?{'command.duration_ms':_0x4d7cce[_0xb0f134(0x10e)]}:{},..._0x4d7cce['error']?{'command.error':_0x4d7cce[_0xb0f134(0x11b)]instanceof Error?_0x4d7cce[_0xb0f134(0x11b)][_0xb0f134(0x10c)]:String(_0x4d7cce['error'])}:{}}});}catch{}}function a38_0x5f59(){const _0x43f451=['command','entries','72rbQnGx','4839mAHcLb','10VzHyRB','error','369568ikWOVZ','rabetbase.command','stringify','test','992OUUiHI','3599717YQRHXq','11466lMEFNw','3201ObHsBB','message','flags','durationMs','[REDACTED]','2556DqHOEv','1022315qiLvuU','service','63ArTZch','194fqiDbQ','94698DtztHD'];a38_0x5f59=function(){return _0x43f451;};return a38_0x5f59();}
|