@lovrabet/rabetbase-cli 2.1.2-beta.0 → 2.1.2-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/add.js +1 -1
- package/lib/commands/app/discover.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app/use.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/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 -0
- 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 +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a115_0x12ac5a=a115_0x1274;(function(_0x159001,_0x32d667){const _0x35fad1=a115_0x1274,_0x291434=_0x159001();while(!![]){try{const _0x2eec36=-parseInt(_0x35fad1(0x97))/0x1*(-parseInt(_0x35fad1(0xae))/0x2)+parseInt(_0x35fad1(0xa3))/0x3+parseInt(_0x35fad1(0x95))/0x4+-parseInt(_0x35fad1(0xb0))/0x5+-parseInt(_0x35fad1(0xb4))/0x6+parseInt(_0x35fad1(0xa2))/0x7*(-parseInt(_0x35fad1(0xa5))/0x8)+-parseInt(_0x35fad1(0xa9))/0x9*(-parseInt(_0x35fad1(0xa8))/0xa);if(_0x2eec36===_0x32d667)break;else _0x291434['push'](_0x291434['shift']());}catch(_0x33f1c8){_0x291434['push'](_0x291434['shift']());}}}(a115_0x1587,0xa7472));import{access,mkdir,readdir,stat}from'node:fs/promises';import{constants}from'node:fs';import{dirname,join}from'node:path';function a115_0x1587(){const _0xc721=['.js','64aLTrsg','scriptsRootDir','set','10TfUNSY','5876820DCYKmS','push','toUpperCase','beforeScriptId','functionNode','122IWfasP','functionName','6494420PopFyA','get','replace','afterScriptId','1128258RcGrfm','scriptType','split','name','F_OK','isFile','1239476eVMzfO','COMMON','19402wKNNAn','ENDPOINT','code','HOOK','operationType','datasetCode','trim','isDirectory','endsWith','includes','map','869673OiGXBn','3058914KzRHir'];a115_0x1587=function(){return _0xc721;};return a115_0x1587();}import{findHookLocationByRemoteId,snakeToCamel}from'../../core/bff/utils.js';function a115_0x1274(_0x33546c,_0x3898ed){_0x33546c=_0x33546c-0x94;const _0x158706=a115_0x1587();let _0x1274fc=_0x158706[_0x33546c];return _0x1274fc;}export const SUPPORTED_BFF_TYPES=[a115_0x12ac5a(0x96),a115_0x12ac5a(0x98),a115_0x12ac5a(0x9a)];export function normalizeBffType(_0x417e27){const _0x327198=a115_0x12ac5a;if(!_0x417e27)return undefined;const _0x49da94=_0x417e27[_0x327198(0x9d)]()[_0x327198(0xab)]();return SUPPORTED_BFF_TYPES[_0x327198(0xa0)](_0x49da94)?_0x49da94:undefined;}async function scanJsFilesRecursively(_0x2e48d9,_0x460ad0){const _0x1450eb=a115_0x12ac5a,_0x5ca854=[];try{const _0x50e3d3=await readdir(_0x2e48d9,{'withFileTypes':!![]});for(const _0x32b11f of _0x50e3d3){const _0x427185=join(_0x2e48d9,_0x32b11f[_0x1450eb(0xb7)]);if(_0x32b11f[_0x1450eb(0x9e)]())_0x5ca854[_0x1450eb(0xaa)](...await scanJsFilesRecursively(_0x427185,_0x460ad0+'/'+_0x32b11f[_0x1450eb(0xb7)]));else _0x32b11f[_0x1450eb(0x94)]()&&_0x32b11f['name'][_0x1450eb(0x9f)]('.js')&&_0x5ca854['push']({'lockKey':_0x460ad0+'/'+_0x32b11f['name']['replace'](/\.js$/,''),'filePath':_0x427185});}}catch(_0x4af45c){if(_0x4af45c[_0x1450eb(0x99)]!=='ENOENT')throw _0x4af45c;}return _0x5ca854;}async function scanFlatFunctions(_0x49e2d3,_0x1df4be){const _0x579b27=a115_0x12ac5a,_0x235a69=join(_0x49e2d3[_0x579b27(0xa6)],_0x1df4be),_0x1e2f9b=await scanJsFilesRecursively(_0x235a69,_0x1df4be);return _0x1e2f9b[_0x579b27(0xa1)](({lockKey:_0x3c8a8b,filePath:_0xaee0c9})=>({'type':_0x1df4be,'name':_0x3c8a8b[_0x579b27(0xb6)]('/')['at'](-0x1)??'','filePath':_0xaee0c9,'lockKey':_0x3c8a8b}));}async function scanHookFunctions(_0x3f0c7d){const _0x570ce9=a115_0x12ac5a,_0x52d708=join(_0x3f0c7d['scriptsRootDir'],_0x570ce9(0x9a)),_0x3d901a=[];try{const _0xbd096e=await readdir(_0x52d708,{'withFileTypes':!![]});for(const _0x53cb37 of _0xbd096e){if(!_0x53cb37['isDirectory']())continue;const _0x2c438c=_0x53cb37[_0x570ce9(0xb7)],_0x586f32=join(_0x52d708,_0x2c438c),_0x489958=await readdir(_0x586f32,{'withFileTypes':!![]});for(const _0x2be4f1 of _0x489958){if(!_0x2be4f1[_0x570ce9(0x9e)]())continue;const _0x34a223=_0x2be4f1[_0x570ce9(0xb7)],_0x24a968=join(_0x586f32,_0x34a223),_0x314f5b=await readdir(_0x24a968,{'withFileTypes':!![]});for(const _0x4354ca of _0x314f5b){if(!_0x4354ca[_0x570ce9(0x9e)]())continue;const _0x436787=_0x4354ca[_0x570ce9(0xb7)],_0x769690=join(_0x24a968,_0x436787),_0x3d9415=await readdir(_0x769690,{'withFileTypes':!![]});for(const _0x5c49cc of _0x3d9415){if(!_0x5c49cc['isFile']()||!_0x5c49cc[_0x570ce9(0xb7)]['endsWith'](_0x570ce9(0xa4)))continue;const _0x208277=_0x5c49cc[_0x570ce9(0xb7)][_0x570ce9(0xb2)](/\.js$/,'');_0x3d901a['push']({'type':'HOOK','name':_0x208277,'filePath':join(_0x769690,_0x5c49cc[_0x570ce9(0xb7)]),'lockKey':'HOOK/'+_0x2c438c+'/'+_0x34a223+'/'+_0x436787+'/'+_0x208277,'alias':_0x2c438c,'operationType':_0x34a223,'functionNode':_0x436787});}}}}}catch(_0x5eafc4){if(_0x5eafc4['code']!=='ENOENT')throw _0x5eafc4;}return _0x3d901a;}export async function scanLocalBffFunctions(_0x523061,_0x51fa0c){const _0x18ca29=a115_0x12ac5a;if(_0x51fa0c===_0x18ca29(0x96)||_0x51fa0c===_0x18ca29(0x98))return scanFlatFunctions(_0x523061,_0x51fa0c);if(_0x51fa0c==='HOOK')return scanHookFunctions(_0x523061);const [_0x2d4f0a,_0x78f533,_0x22ebe4]=await Promise['all']([scanFlatFunctions(_0x523061,'COMMON'),scanFlatFunctions(_0x523061,_0x18ca29(0x98)),scanHookFunctions(_0x523061)]);return[..._0x2d4f0a,..._0x78f533,..._0x22ebe4];}export function resolveLocalFilePathFromLockKey(_0x56c039,_0x5b77f7){const _0x5d9aad=a115_0x12ac5a;return join(_0x56c039[_0x5d9aad(0xa6)],..._0x5b77f7[_0x5d9aad(0xb6)]('/'))+_0x5d9aad(0xa4);}export function createHookLocationMap(_0x5b2f0a){const _0x5359dc=a115_0x12ac5a,_0x233bfc=new Map();for(const _0x462350 of _0x5b2f0a){_0x462350[_0x5359dc(0xac)]&&_0x233bfc['set'](_0x462350[_0x5359dc(0xac)],{'datasetCode':_0x462350[_0x5359dc(0x9c)],'operationType':snakeToCamel(_0x462350[_0x5359dc(0x9b)]),'functionNode':'before'}),_0x462350[_0x5359dc(0xb3)]&&_0x233bfc[_0x5359dc(0xa7)](_0x462350[_0x5359dc(0xb3)],{'datasetCode':_0x462350[_0x5359dc(0x9c)],'operationType':snakeToCamel(_0x462350['operationType']),'functionNode':'after'});}return _0x233bfc;}export function resolveRemoteScriptTarget(_0x48c249,_0x5eb17b,_0x4f9708,_0x29bfeb,_0x37a70c){const _0x520146=a115_0x12ac5a,_0x51d0e5=normalizeBffType(_0x5eb17b[_0x520146(0xb5)]);if(!_0x51d0e5||!_0x5eb17b[_0x520146(0xaf)])return null;if(_0x51d0e5==='HOOK'){const _0x62910f=(_0x5eb17b['id']?_0x4f9708[_0x520146(0xb1)](_0x5eb17b['id']):undefined)??findHookLocationByRemoteId(_0x29bfeb,_0x5eb17b['id']);if(!_0x62910f)return null;const _0x262022=_0x62910f['alias']||_0x37a70c[_0x520146(0xb1)](_0x62910f[_0x520146(0x9c)]),_0x49c9d1=_0x262022??_0x62910f[_0x520146(0x9c)],_0x1ea95b={..._0x62910f,'alias':_0x262022},_0x3ecd28='HOOK/'+_0x49c9d1+'/'+_0x1ea95b[_0x520146(0x9b)]+'/'+_0x1ea95b[_0x520146(0xad)]+'/'+_0x5eb17b['functionName'];return{'lockKey':_0x3ecd28,'filePath':resolveLocalFilePathFromLockKey(_0x48c249,_0x3ecd28),'type':_0x520146(0x9a),'hookLocation':_0x1ea95b};}const _0x2bc8a6=_0x51d0e5+'/'+_0x5eb17b['functionName'];return{'lockKey':_0x2bc8a6,'filePath':resolveLocalFilePathFromLockKey(_0x48c249,_0x2bc8a6),'type':_0x51d0e5};}export async function ensureParentDirectory(_0x11dc2f){await mkdir(dirname(_0x11dc2f),{'recursive':!![]});}export async function fileExists(_0x58d4a4){const _0x4dc1f6=a115_0x12ac5a;try{return await access(_0x58d4a4,constants[_0x4dc1f6(0xb8)]),!![];}catch{return![];}}export async function directoryExists(_0x20eb10){const _0x28a8ec=a115_0x12ac5a;try{const _0x5ae4d2=await stat(_0x20eb10);return _0x5ae4d2[_0x28a8ec(0x9e)]();}catch{return![];}}
|
package/lib/core/bff/hash.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xa996df,_0x393181){const _0x5720ea=a116_0x1bb2,_0x423162=_0xa996df();while(!![]){try{const _0x111c21=-parseInt(_0x5720ea(0x1b3))/0x1+-parseInt(_0x5720ea(0x1be))/0x2+parseInt(_0x5720ea(0x1ba))/0x3*(-parseInt(_0x5720ea(0x1b9))/0x4)+-parseInt(_0x5720ea(0x1bc))/0x5*(-parseInt(_0x5720ea(0x1b8))/0x6)+-parseInt(_0x5720ea(0x1b5))/0x7*(-parseInt(_0x5720ea(0x1b7))/0x8)+parseInt(_0x5720ea(0x1b1))/0x9*(parseInt(_0x5720ea(0x1bd))/0xa)+-parseInt(_0x5720ea(0x1bb))/0xb*(-parseInt(_0x5720ea(0x1c0))/0xc);if(_0x111c21===_0x393181)break;else _0x423162['push'](_0x423162['shift']());}catch(_0x438141){_0x423162['push'](_0x423162['shift']());}}}(a116_0xed33,0x4e76c));function a116_0x1bb2(_0x3e4c25,_0x5513a5){_0x3e4c25=_0x3e4c25-0x1b1;const _0xed3331=a116_0xed33();let _0x1bb216=_0xed3331[_0x3e4c25];return _0x1bb216;}import{readFile}from'node:fs/promises';import a116_0x5e358f from'node:crypto';export function computeContentHash(_0x45e917){const _0x326eca=a116_0x1bb2;return a116_0x5e358f['createHash'](_0x326eca(0x1bf))[_0x326eca(0x1b2)](_0x45e917)[_0x326eca(0x1b6)]('hex');}export async function computeFileHash(_0x245868){const _0x458d64=a116_0x1bb2,_0x320928=await readFile(_0x245868,_0x458d64(0x1b4));return computeContentHash(_0x320928);}function a116_0xed33(){const _0x367837=['15630VifjXs','235350EjaxAP','md5','144TlXCnY','387NPdDoU','update','105530dWvhZj','utf8','227206wrtldT','digest','16YsPtKX','30AdDqKz','4IqrphA','1275579KAtYSx','347303eToJBQ','458785NZKfeE'];a116_0xed33=function(){return _0x367837;};return a116_0xed33();}
|
package/lib/core/bff/lock.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4c9661,_0x237bbe){const _0xa7163d=a117_0x4039,_0x26bb8b=_0x4c9661();while(!![]){try{const _0x33b1bf=-parseInt(_0xa7163d(0xaf))/0x1+parseInt(_0xa7163d(0xb3))/0x2+parseInt(_0xa7163d(0xbe))/0x3*(parseInt(_0xa7163d(0xae))/0x4)+-parseInt(_0xa7163d(0xbf))/0x5+-parseInt(_0xa7163d(0xb9))/0x6*(parseInt(_0xa7163d(0xc1))/0x7)+parseInt(_0xa7163d(0xbb))/0x8+parseInt(_0xa7163d(0xb6))/0x9*(-parseInt(_0xa7163d(0xbd))/0xa);if(_0x33b1bf===_0x237bbe)break;else _0x26bb8b['push'](_0x26bb8b['shift']());}catch(_0x21c0b7){_0x26bb8b['push'](_0x26bb8b['shift']());}}}(a117_0x4c73,0x3818a));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x24cc7a,_0x4387a4,_0xe75e49,_0x21ed66){const _0x33c928=a117_0x4039,_0x527629={'apps':_0x24cc7a['apps']&&typeof _0x24cc7a[_0x33c928(0xb2)]===_0x33c928(0xbc)?_0x24cc7a[_0x33c928(0xb2)]:{}};let _0x271279=_0x527629[_0x33c928(0xb2)][_0x4387a4];if(!_0x271279)return _0x271279={'scriptsRoot':_0xe75e49,'lastSync':'','functions':{}},_0x527629['apps'][_0x4387a4]=_0x271279,{'lockData':_0x527629,'appLock':_0x271279};if(!_0x271279[_0x33c928(0xc3)])_0x271279[_0x33c928(0xc3)]=_0xe75e49;else{if(_0x271279[_0x33c928(0xc3)]!==_0xe75e49)throw new Error(_0x21ed66+_0x33c928(0xb8)+(_0x33c928(0xba)+_0xe75e49+_0x33c928(0xb1)+_0x271279['scriptsRoot']+_0x33c928(0xb4))+_0x33c928(0xad));}return!_0x271279[_0x33c928(0xc0)]&&(_0x271279['functions']={}),!_0x271279[_0x33c928(0xc2)]&&(_0x271279['lastSync']=''),{'lockData':_0x527629,'appLock':_0x271279};}export async function readBffLockFile(_0x351b69){const _0x46c752=a117_0x4039;try{const _0x43a105=await readFile(_0x351b69,'utf8'),_0x545369=JSON['parse'](_0x43a105);return{'apps':_0x545369[_0x46c752(0xb2)]&&typeof _0x545369[_0x46c752(0xb2)]===_0x46c752(0xbc)?_0x545369[_0x46c752(0xb2)]:{}};}catch(_0x251dfd){if(_0x251dfd['code']===_0x46c752(0xb5))return null;throw new Error(_0x46c752(0xb0)+String(_0x251dfd));}}function a117_0x4039(_0xfbb1aa,_0x59ab20){_0xfbb1aa=_0xfbb1aa-0xad;const _0x4c73ec=a117_0x4c73();let _0x403923=_0x4c73ec[_0xfbb1aa];return _0x403923;}export async function writeBffLockFile(_0x2cdc89,_0x5ee061){const _0x51ac55=a117_0x4039;await mkdir(dirname(_0x2cdc89),{'recursive':!![]}),await writeFile(_0x2cdc89,JSON['stringify'](_0x5ee061,null,0x2),_0x51ac55(0xb7));}function a117_0x4c73(){const _0x46d685=['utf8',':\x20scriptsRoot\x20mismatch\x20—\x20','551724FgwfJt','current\x20\x22','995144FofouI','object','4280XYVHsr','42uspeaH','1903320ifHdGx','functions','7qUnOyU','lastSync','scriptsRoot','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','120344spwEoS','152648nGrTLv','Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20','\x22\x20vs\x20lock\x20\x22','apps','728446mIONOy','\x22.\x20','ENOENT','1152HLQtlW'];a117_0x4c73=function(){return _0x46d685;};return a117_0x4c73();}
|
package/lib/core/bff/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a119_0x3dd3(){const _0xae961e=['test','578764rFBZjY','961908gvZRMi','toUpperCase','trim','1856475SNCbMD','10038goFiHy','5lAJmul','functionNode','5088296uWpXyz','match','2779580seZIox','98138hOhxDI','toLowerCase','values','3514AcTKjH'];a119_0x3dd3=function(){return _0xae961e;};return a119_0x3dd3();}function a119_0x13b7(_0x1ae4e5,_0x1bd920){_0x1ae4e5=_0x1ae4e5-0x17e;const _0x3dd3f7=a119_0x3dd3();let _0x13b783=_0x3dd3f7[_0x1ae4e5];return _0x13b783;}(function(_0x17233d,_0x187797){const _0x24612b=a119_0x13b7,_0x5dee37=_0x17233d();while(!![]){try{const _0x23ca3c=parseInt(_0x24612b(0x18a))/0x1+parseInt(_0x24612b(0x17f))/0x2+parseInt(_0x24612b(0x180))/0x3+-parseInt(_0x24612b(0x189))/0x4*(parseInt(_0x24612b(0x185))/0x5)+-parseInt(_0x24612b(0x184))/0x6*(-parseInt(_0x24612b(0x18d))/0x7)+-parseInt(_0x24612b(0x187))/0x8+parseInt(_0x24612b(0x183))/0x9;if(_0x23ca3c===_0x187797)break;else _0x5dee37['push'](_0x5dee37['shift']());}catch(_0x32042c){_0x5dee37['push'](_0x5dee37['shift']());}}}(a119_0x3dd3,0x675b1));export function snakeToCamel(_0x1b0ec0){const _0x182bbd=a119_0x13b7;return _0x1b0ec0[_0x182bbd(0x18b)]()['replace'](/_([a-z])/g,(_0x2f3bc0,_0x3946e7)=>_0x3946e7[_0x182bbd(0x181)]());}export function findHookLocationByRemoteId(_0x342517,_0xf323e9){const _0x292224=a119_0x13b7;if(!_0xf323e9)return undefined;for(const _0x42fd01 of Object[_0x292224(0x18c)](_0x342517)){if(_0x42fd01['remoteId']===_0xf323e9&&_0x42fd01['datasetCode']&&_0x42fd01['operationType']&&_0x42fd01['functionNode'])return{'datasetCode':_0x42fd01['datasetCode'],'operationType':_0x42fd01['operationType'],'functionNode':_0x42fd01[_0x292224(0x186)]};}return undefined;}export function extractScriptDescription(_0x492e4a){const _0x1c2fe2=a119_0x13b7,_0x59c9f2=_0x492e4a[_0x1c2fe2(0x188)](/\[\s*脚本描述\s*]\s*(.+)/);return _0x59c9f2?.[0x1]?.[_0x1c2fe2(0x182)]()||undefined;}export function isValidBffFunctionName(_0x551b0a){const _0x16b6c3=a119_0x13b7;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x16b6c3(0x17e)](_0x551b0a);}export function normalizeHookFunctionNode(_0x313cc4){const _0x44792a=a119_0x13b7;if(!_0x313cc4)return undefined;const _0x66cbb5=_0x313cc4[_0x44792a(0x182)]()[_0x44792a(0x18b)]();if(_0x66cbb5==='before'||_0x66cbb5==='after')return _0x66cbb5;return undefined;}
|
package/lib/core/db-resolver.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1ad34b,_0x375b57){const _0x368629=a120_0x9239,_0x152be3=_0x1ad34b();while(!![]){try{const _0x4a7446=-parseInt(_0x368629(0x1d9))/0x1+parseInt(_0x368629(0x1dc))/0x2*(parseInt(_0x368629(0x1c0))/0x3)+parseInt(_0x368629(0x1d4))/0x4+parseInt(_0x368629(0x1be))/0x5*(parseInt(_0x368629(0x1d8))/0x6)+-parseInt(_0x368629(0x1d1))/0x7+parseInt(_0x368629(0x1ce))/0x8*(-parseInt(_0x368629(0x1cf))/0x9)+-parseInt(_0x368629(0x1c2))/0xa*(-parseInt(_0x368629(0x1ca))/0xb);if(_0x4a7446===_0x375b57)break;else _0x152be3['push'](_0x152be3['shift']());}catch(_0x31b6d7){_0x152be3['push'](_0x152be3['shift']());}}}(a120_0x3e14,0xf1b5b));import{listDatasets}from'../core/api-client.js';function a120_0x3e14(){const _0x5ad8d2=['8OkLXDn','15402483ellzme','get','2654365QCbMdk','toLowerCase','No\x20database\x20matching\x20\x22','1601348MSXLuV','join','\x22.\x20Available:\x20','\x22\x20matches\x20multiple\x20databases:\x20','198VjHOho','1344604uIwYhr','find','filter','68548qvRzvh','116330bNgdUa','entries','147mXUadA','isNaN','93910oMJMra','map','.\x20Be\x20more\x20specific.','includes','dbtableConfig','dbId','has','No\x20linked\x20databases\x20found\x20for\x20this\x20app.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','1848pZFgSS','dbName','length','set'];a120_0x3e14=function(){return _0x5ad8d2;};return a120_0x3e14();}const cache=new Map();function a120_0x9239(_0x247e0e,_0x448da5){_0x247e0e=_0x247e0e-0x1be;const _0x3e1412=a120_0x3e14();let _0x9239a7=_0x3e1412[_0x247e0e];return _0x9239a7;}export async function listDatabases(_0x414fa3){const _0x4b354a=a120_0x9239;if(cache[_0x4b354a(0x1c8)](_0x414fa3))return cache[_0x4b354a(0x1d0)](_0x414fa3);const _0x491038=await listDatasets(_0x414fa3),_0x699cfc=new Map();for(const _0x53a07d of _0x491038){const _0x57489e=_0x53a07d[_0x4b354a(0x1c6)];_0x57489e?.[_0x4b354a(0x1c7)]!=null&&_0x699cfc[_0x4b354a(0x1cd)](_0x57489e[_0x4b354a(0x1c7)],_0x57489e['dbName']??'db-'+_0x57489e[_0x4b354a(0x1c7)]);}const _0x4ba7df=[..._0x699cfc[_0x4b354a(0x1bf)]()][_0x4b354a(0x1c3)](([_0x302700,_0x8897fa])=>({'dbId':_0x302700,'dbName':_0x8897fa}));return cache[_0x4b354a(0x1cd)](_0x414fa3,_0x4ba7df),_0x4ba7df;}export async function resolveDb(_0x56594c,_0x121936){const _0x128cde=a120_0x9239,_0x57655a=await listDatabases(_0x56594c);if(_0x57655a['length']===0x0)return{'resolved':[],'error':_0x128cde(0x1c9)};if(!_0x121936)return{'resolved':_0x57655a};const _0x1f46cd=Number(_0x121936);if(!Number[_0x128cde(0x1c1)](_0x1f46cd)){const _0x1d35eb=_0x57655a[_0x128cde(0x1da)](_0x1391cf=>_0x1391cf[_0x128cde(0x1c7)]===_0x1f46cd);if(_0x1d35eb)return{'resolved':[_0x1d35eb]};}const _0x1cb705=_0x121936['toLowerCase'](),_0x2ba013=_0x57655a[_0x128cde(0x1db)](_0x2d548c=>_0x2d548c['dbName'][_0x128cde(0x1d2)]()[_0x128cde(0x1c5)](_0x1cb705));if(_0x2ba013[_0x128cde(0x1cc)]>0x0)return{'resolved':_0x2ba013};const _0x3fe07e=_0x57655a[_0x128cde(0x1c3)](_0x2a738b=>_0x2a738b['dbName']+'\x20('+_0x2a738b[_0x128cde(0x1c7)]+')')[_0x128cde(0x1d5)](',\x20');return{'resolved':[],'error':_0x128cde(0x1d3)+_0x121936+_0x128cde(0x1d6)+_0x3fe07e};}export async function resolveOneDb(_0x6ac06e,_0x18183c){const _0x2c6818=a120_0x9239,{resolved:_0xea5d41,error:_0xd48204}=await resolveDb(_0x6ac06e,_0x18183c);if(_0xd48204)return{'db':null,'error':_0xd48204};if(_0xea5d41['length']===0x1)return{'db':_0xea5d41[0x0]};if(!_0x18183c){const _0xf70b1f=_0xea5d41['map'](_0x16cdbe=>_0x16cdbe['dbName']+'\x20('+_0x16cdbe['dbId']+')')[_0x2c6818(0x1d5)](',\x20');return{'db':null,'error':'Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20'+_0xf70b1f};}const _0xd0756=_0xea5d41[_0x2c6818(0x1c3)](_0x1df999=>_0x1df999[_0x2c6818(0x1cb)]+'\x20('+_0x1df999['dbId']+')')[_0x2c6818(0x1d5)](',\x20');return{'db':null,'error':'\x22'+_0x18183c+_0x2c6818(0x1d7)+_0xd0756+_0x2c6818(0x1c4)};}export async function getDbName(_0x2dbe60,_0x1d348c){const _0x3106b0=a120_0x9239,_0x533bd0=await listDatabases(_0x2dbe60);return _0x533bd0[_0x3106b0(0x1da)](_0x18a96c=>_0x18a96c[_0x3106b0(0x1c7)]===_0x1d348c)?.[_0x3106b0(0x1cb)];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a121_0x13e4(_0x43059d,_0x87d0b0){_0x43059d=_0x43059d-0x79;const _0x306e08=a121_0x306e();let _0x13e42f=_0x306e08[_0x43059d];return _0x13e42f;}function a121_0x306e(){const _0x244a53=['884821hXmxKU','18fkMfQa','1996iRzIJx','length','trim','1975086ZkvPGu','78513bJVSTX','push','toUpperCase','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','4741tdgCHU','\x20query\x20targeting\x20','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','DELETE','matchAll','startsWith','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','INSERT','50XzOlYv','UNKNOWN','309yIByXZ','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','includes','UPDATE','SELECT','replace','reason','2220vpVcLC','20Uizijq','isDangerous','DDL','join','match','from','add','unknown\x20table(s)','split','test','WITH','type','131872nHlrOj','3315112TKxPIN','\x20with\x20parameters:\x20'];a121_0x306e=function(){return _0x244a53;};return a121_0x306e();}(function(_0x46cb9d,_0x29e54f){const _0x372dfa=a121_0x13e4,_0x55a9e9=_0x46cb9d();while(!![]){try{const _0x4d4cc4=parseInt(_0x372dfa(0x7f))/0x1+-parseInt(_0x372dfa(0x7b))/0x2*(-parseInt(_0x372dfa(0x8d))/0x3)+-parseInt(_0x372dfa(0xa1))/0x4*(-parseInt(_0x372dfa(0x8b))/0x5)+parseInt(_0x372dfa(0x7a))/0x6*(-parseInt(_0x372dfa(0x79))/0x7)+-parseInt(_0x372dfa(0xa2))/0x8+parseInt(_0x372dfa(0x7e))/0x9*(parseInt(_0x372dfa(0x95))/0xa)+parseInt(_0x372dfa(0x83))/0xb*(parseInt(_0x372dfa(0x94))/0xc);if(_0x4d4cc4===_0x29e54f)break;else _0x55a9e9['push'](_0x55a9e9['shift']());}catch(_0xa5140){_0x55a9e9['push'](_0x55a9e9['shift']());}}}(a121_0x306e,0x39a00));export function detectSqlType(_0x342fa){const _0x2a8346=a121_0x13e4;if(!_0x342fa?.[_0x2a8346(0x7d)]())return{'type':_0x2a8346(0x8c),'isSelectOnly':![],'isDangerous':![],'reason':'SQL\x20content\x20is\x20empty'};const _0x47e48e=_0x342fa[_0x2a8346(0x92)](/#\{[^}]*\}/g,'?')[_0x2a8346(0x92)](/\$\{[^}]*\}/g,'?')[_0x2a8346(0x92)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x2a8346(0x92)](/\/\*[\s\S]*?\*\//g,'')['trim'](),_0x3bd461=_0x47e48e[_0x2a8346(0x9d)]('\x0a');let _0x56f5f4='';for(const _0x553d6f of _0x3bd461){const _0x3f1b7c=_0x553d6f['trim']();if(!_0x3f1b7c||_0x3f1b7c['startsWith']('--')||_0x3f1b7c[_0x2a8346(0x88)]('/*'))continue;_0x56f5f4=_0x3f1b7c;break;}const _0x3ca741=_0x56f5f4[_0x2a8346(0x81)]();if(_0x3ca741[_0x2a8346(0x88)](_0x2a8346(0x91))||_0x3ca741[_0x2a8346(0x88)](_0x2a8346(0x9f))){const _0x5ebb4b=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i['test'](_0x47e48e);return{'type':_0x2a8346(0x91),'isSelectOnly':!_0x5ebb4b,'isDangerous':_0x5ebb4b,'reason':_0x5ebb4b?_0x2a8346(0x85):undefined};}if(_0x3ca741['startsWith'](_0x2a8346(0x8a)))return{'type':'INSERT','isSelectOnly':![],'isDangerous':![]};if(_0x3ca741[_0x2a8346(0x88)](_0x2a8346(0x90)))return{'type':_0x2a8346(0x90),'isSelectOnly':![],'isDangerous':![]};if(_0x3ca741['startsWith'](_0x2a8346(0x86)))return{'type':_0x2a8346(0x86),'isSelectOnly':![],'isDangerous':!![],'reason':_0x2a8346(0x89)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x2a8346(0x9e)](_0x3ca741))return{'type':_0x2a8346(0x97),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':_0x2a8346(0x8c),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x287034){const _0x240287=a121_0x13e4,_0x1a8c3a=_0x287034[_0x240287(0x92)](/#\{[^}]*\}/g,'?')[_0x240287(0x92)](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')[_0x240287(0x92)](/--.*$/gm,'')[_0x240287(0x92)](/\/\*[\s\S]*?\*\//g,''),_0x3f9791=[],_0x78c1a5=_0x1a8c3a[_0x240287(0x99)](/FROM\s+([^\s,)(]+)/i);if(_0x78c1a5?.[0x1])_0x3f9791[_0x240287(0x80)](_0x78c1a5[0x1][_0x240287(0x92)](/[`"]/g,''));for(const _0x4fb251 of _0x1a8c3a[_0x240287(0x87)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x532bd0=_0x4fb251[0x1]?.['replace'](/[`"]/g,'');if(_0x532bd0&&!_0x3f9791[_0x240287(0x8f)](_0x532bd0))_0x3f9791[_0x240287(0x80)](_0x532bd0);}const _0x4d8bef=_0x1a8c3a[_0x240287(0x99)](/INTO\s+([^\s(]+)/i);if(_0x4d8bef?.[0x1]){const _0x17020a=_0x4d8bef[0x1]['replace'](/[`"]/g,'');if(!_0x3f9791[_0x240287(0x8f)](_0x17020a))_0x3f9791[_0x240287(0x80)](_0x17020a);}const _0x544653=_0x1a8c3a[_0x240287(0x99)](/UPDATE\s+([^\s,)(]+)/i);if(_0x544653?.[0x1]){const _0x1d75ca=_0x544653[0x1]['replace'](/[`"]/g,'');if(!_0x3f9791['includes'](_0x1d75ca))_0x3f9791[_0x240287(0x80)](_0x1d75ca);}return _0x3f9791;}function extractParameters(_0x2dc3fd){const _0x1d4f22=a121_0x13e4,_0x4ab819=new Set();for(const _0x53a1be of _0x2dc3fd['matchAll'](/#\{(\w+)\}/g))if(_0x53a1be[0x1])_0x4ab819[_0x1d4f22(0x9b)](_0x53a1be[0x1]);for(const _0x223ae4 of _0x2dc3fd[_0x1d4f22(0x87)](/\$\{(\w+)\}/g))if(_0x223ae4[0x1])_0x4ab819[_0x1d4f22(0x9b)](_0x223ae4[0x1]);return Array[_0x1d4f22(0x9a)](_0x4ab819);}export function validateSql(_0x365275){const _0x2eebfa=a121_0x13e4,_0x243e80=detectSqlType(_0x365275),_0xb7c15c=extractTables(_0x365275),_0x2507e8=extractParameters(_0x365275);if(_0x243e80[_0x2eebfa(0x96)])return{'valid':![],'sqlType':_0x243e80,'tables':_0xb7c15c,'parameters':_0x2507e8,'message':_0x243e80[_0x2eebfa(0x93)]||_0x243e80['type']+_0x2eebfa(0x8e)};if(_0x243e80[_0x2eebfa(0xa0)]===_0x2eebfa(0x8c))return{'valid':![],'sqlType':_0x243e80,'tables':_0xb7c15c,'parameters':_0x2507e8,'message':_0x2eebfa(0x82)};return{'valid':!![],'sqlType':_0x243e80,'tables':_0xb7c15c,'parameters':_0x2507e8,'message':_0x243e80[_0x2eebfa(0xa0)]+_0x2eebfa(0x84)+(_0xb7c15c[_0x2eebfa(0x7c)]?_0xb7c15c[_0x2eebfa(0x98)](',\x20'):_0x2eebfa(0x9c))+(_0x2507e8[_0x2eebfa(0x7c)]?_0x2eebfa(0xa3)+_0x2507e8[_0x2eebfa(0x98)](',\x20'):'')};}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a122_0x2b9ca9=a122_0x3b38;(function(_0x12808b,_0x122dd9){const _0x42b99c=a122_0x3b38,_0xff58e2=_0x12808b();while(!![]){try{const _0x5ee8c2=-parseInt(_0x42b99c(0x167))/0x1+parseInt(_0x42b99c(0x170))/0x2+-parseInt(_0x42b99c(0x16f))/0x3+parseInt(_0x42b99c(0x16a))/0x4*(-parseInt(_0x42b99c(0x169))/0x5)+-parseInt(_0x42b99c(0x163))/0x6+parseInt(_0x42b99c(0x164))/0x7+parseInt(_0x42b99c(0x168))/0x8;if(_0x5ee8c2===_0x122dd9)break;else _0xff58e2['push'](_0xff58e2['shift']());}catch(_0x10e419){_0xff58e2['push'](_0xff58e2['shift']());}}}(a122_0x4688,0xe07e4));function a122_0x3b38(_0x4c5bc1,_0x53cc27){_0x4c5bc1=_0x4c5bc1-0x162;const _0x468891=a122_0x4688();let _0x3b3875=_0x468891[_0x4c5bc1];return _0x3b3875;}function a122_0x4688(){const _0x4d7892=['\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','257976OkumKg','108311jmNqvP','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','join','1553812imyxfQ','23272912oNBAFc','5JlmnOg','620848VIlBDg','Set\x20appcode\x20via\x20`','\x0a\x20\x20\x20\x20\x20\x20\x20','\x20auth`\x20to\x20login\x20first.','Tip:\x20`','2074314irvEJs','876790fyXGzD','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','Run\x20`'];a122_0x4688=function(){return _0x4d7892;};return a122_0x4688();}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a122_0x2b9ca9(0x172)+CLI_BIN_NAME+a122_0x2b9ca9(0x16d),'configMissingHint':[a122_0x2b9ca9(0x16b)+CLI_BIN_NAME+a122_0x2b9ca9(0x162),a122_0x2b9ca9(0x16e)+CLI_BIN_NAME+a122_0x2b9ca9(0x165)][a122_0x2b9ca9(0x166)](a122_0x2b9ca9(0x16c)),'notInProjectHint':a122_0x2b9ca9(0x171)});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a123_0x1e39(){var _0x54d8b9=['589925djPqaN','1760864aoGccD','12842982GoXnzA','940146ggIsZO','7vYwzev','397199dKGsOR','1761704eudZAM','338NmdpZQ','2532swANPW'];a123_0x1e39=function(){return _0x54d8b9;};return a123_0x1e39();}(function(_0x2dbe91,_0x30277c){var _0x26feb2=a123_0x58d5,_0x3d2598=_0x2dbe91();while(!![]){try{var _0x235c39=-parseInt(_0x26feb2(0x160))/0x1+parseInt(_0x26feb2(0x162))/0x2*(-parseInt(_0x26feb2(0x15a))/0x3)+-parseInt(_0x26feb2(0x15c))/0x4+-parseInt(_0x26feb2(0x15b))/0x5+-parseInt(_0x26feb2(0x15e))/0x6*(-parseInt(_0x26feb2(0x15f))/0x7)+-parseInt(_0x26feb2(0x161))/0x8+parseInt(_0x26feb2(0x15d))/0x9;if(_0x235c39===_0x30277c)break;else _0x3d2598['push'](_0x3d2598['shift']());}catch(_0x378ea3){_0x3d2598['push'](_0x3d2598['shift']());}}}(a123_0x1e39,0x40ce0));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a123_0x58d5(_0xe83926,_0x41bf49){_0xe83926=_0xe83926-0x15a;var _0x1e390c=a123_0x1e39();var _0x58d5e3=_0x1e390c[_0xe83926];return _0x58d5e3;}import{buildAllFlags as a123_0x2a600f}from'@lovrabet/cli-framework';export function buildAllFlags(_0x6622f2){return a123_0x2a600f(_0x6622f2,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a124_0x591484=a124_0x3e7b;function a124_0x536c(){const _0x4cd34e=['6erLjHy','1842597hUUFbv','1652206ZQHRXY','8qeQlod','validateFlags','3979055fuarQK','31957431AubrXK','parseFlags','2083907JMbwCe','10AIGmtf','3064329xZafFK','18uryJyI','5145784qYaelY'];a124_0x536c=function(){return _0x4cd34e;};return a124_0x536c();}(function(_0x4ebaf3,_0x49d0a8){const _0x286ac2=a124_0x3e7b,_0x53c68e=_0x4ebaf3();while(!![]){try{const _0x26608a=parseInt(_0x286ac2(0x111))/0x1+parseInt(_0x286ac2(0x10f))/0x2*(-parseInt(_0x286ac2(0x110))/0x3)+-parseInt(_0x286ac2(0x10e))/0x4+parseInt(_0x286ac2(0x114))/0x5+parseInt(_0x286ac2(0x10d))/0x6*(-parseInt(_0x286ac2(0x117))/0x7)+-parseInt(_0x286ac2(0x112))/0x8*(parseInt(_0x286ac2(0x10c))/0x9)+parseInt(_0x286ac2(0x118))/0xa*(parseInt(_0x286ac2(0x115))/0xb);if(_0x26608a===_0x49d0a8)break;else _0x53c68e['push'](_0x53c68e['shift']());}catch(_0x25df46){_0x53c68e['push'](_0x53c68e['shift']());}}}(a124_0x536c,0xf1d93));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a124_0x3e7b(_0x3982ff,_0x37fb2a){_0x3982ff=_0x3982ff-0x10c;const _0x536c2a=a124_0x536c();let _0x3e7b4c=_0x536c2a[_0x3982ff];return _0x3e7b4c;}export const parseFlags=helpers[a124_0x591484(0x116)];export const validateFlags=helpers[a124_0x591484(0x113)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a125_0x59d30b=a125_0x3e31;(function(_0x61583a,_0x1670d8){const _0x21eee8=a125_0x3e31,_0x2ef09b=_0x61583a();while(!![]){try{const _0x49af72=-parseInt(_0x21eee8(0x18d))/0x1*(-parseInt(_0x21eee8(0x190))/0x2)+-parseInt(_0x21eee8(0x188))/0x3*(parseInt(_0x21eee8(0x189))/0x4)+parseInt(_0x21eee8(0x185))/0x5+-parseInt(_0x21eee8(0x192))/0x6*(-parseInt(_0x21eee8(0x187))/0x7)+-parseInt(_0x21eee8(0x191))/0x8*(parseInt(_0x21eee8(0x184))/0x9)+-parseInt(_0x21eee8(0x18b))/0xa*(parseInt(_0x21eee8(0x186))/0xb)+-parseInt(_0x21eee8(0x18e))/0xc*(parseInt(_0x21eee8(0x18a))/0xd);if(_0x49af72===_0x1670d8)break;else _0x2ef09b['push'](_0x2ef09b['shift']());}catch(_0x5cd0c1){_0x2ef09b['push'](_0x2ef09b['shift']());}}}(a125_0xf45e,0x89db6));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a125_0x3e31(_0x37870f,_0x7eb4e2){_0x37870f=_0x37870f-0x184;const _0xf45ed2=a125_0xf45e();let _0x3e31c4=_0xf45ed2[_0x37870f];return _0x3e31c4;}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':_0x24a16a=>serviceGroups[a125_0x59d30b(0x193)](_0x24a16a),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+'\x20project\x20init`\x20or\x20--appcode).','serviceUsageSuffix':a125_0x59d30b(0x18f),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x2bdd0d){return generators['generateCommandHelp'](_0x2bdd0d);}export const generateServiceHelp=generators[a125_0x59d30b(0x18c)];function a125_0xf45e(){const _0x3e179c=['897feSMHk','260cDCsyq','generateServiceHelp','9WAOLND','21444avHrRQ','\x20[args]\x20[flags]','47246sJmqRA','6280hBtifU','12xckQOI','get','225XkDtmE','2008840CmdeFN','107591LCyQLy','1290562lEdyMV','63633mzBptY','4TvZcTB'];a125_0xf45e=function(){return _0x3e179c;};return a125_0xf45e();}export const generateFullHelp=generators['generateFullHelp'];
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a126_0x2666(){var _0x38eb60=['2701272kpZjqZ','7010Yifoxv','351155uBaAJk','3060464hdAmTx','2827960mjFInv','8lcWcZG','1463WFgmXU','277BEDyzd','7680339XtfWKD','352050ItueHc','12eiJYew'];a126_0x2666=function(){return _0x38eb60;};return a126_0x2666();}(function(_0x56c4a8,_0x510037){var _0x49b48c=a126_0x1152,_0x142611=_0x56c4a8();while(!![]){try{var _0xbfdf6a=-parseInt(_0x49b48c(0x19d))/0x1*(parseInt(_0x49b48c(0x197))/0x2)+-parseInt(_0x49b48c(0x196))/0x3+-parseInt(_0x49b48c(0x199))/0x4+-parseInt(_0x49b48c(0x19a))/0x5+-parseInt(_0x49b48c(0x195))/0x6*(-parseInt(_0x49b48c(0x198))/0x7)+parseInt(_0x49b48c(0x19b))/0x8*(-parseInt(_0x49b48c(0x193))/0x9)+parseInt(_0x49b48c(0x194))/0xa*(parseInt(_0x49b48c(0x19c))/0xb);if(_0xbfdf6a===_0x510037)break;else _0x142611['push'](_0x142611['shift']());}catch(_0x1097b2){_0x142611['push'](_0x142611['shift']());}}}(a126_0x2666,0xb18a7));function a126_0x1152(_0x78855c,_0x1b974f){_0x78855c=_0x78855c-0x193;var _0x26661a=a126_0x2666();var _0x115251=_0x26661a[_0x78855c];return _0x115251;}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a127_0x105f(_0xb709d8,_0xb6b58d){_0xb709d8=_0xb709d8-0x11b;var _0x416926=a127_0x4169();var _0x105fcf=_0x416926[_0xb709d8];return _0x105fcf;}function a127_0x4169(){var _0xb0b48a=['94832yOHXcS','873556mWSjGE','34EcRdTT','1486614xbWcyM','2037phxQJx','185653AIZttG','4455783MZmzUx','1408135MYxgOm','91CLmcrF'];a127_0x4169=function(){return _0xb0b48a;};return a127_0x4169();}(function(_0x451922,_0x45cba4){var _0x26a0ab=a127_0x105f,_0x165339=_0x451922();while(!![]){try{var _0x19d09b=parseInt(_0x26a0ab(0x121))/0x1+parseInt(_0x26a0ab(0x11e))/0x2*(-parseInt(_0x26a0ab(0x120))/0x3)+-parseInt(_0x26a0ab(0x11d))/0x4+parseInt(_0x26a0ab(0x123))/0x5+parseInt(_0x26a0ab(0x11f))/0x6+parseInt(_0x26a0ab(0x11b))/0x7*(parseInt(_0x26a0ab(0x11c))/0x8)+-parseInt(_0x26a0ab(0x122))/0x9;if(_0x19d09b===_0x45cba4)break;else _0x165339['push'](_0x165339['shift']());}catch(_0x29afe0){_0x165339['push'](_0x165339['shift']());}}}(a127_0x4169,0x23304));export{formatOutput}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a128_0x591d(_0x235b6a,_0x211f24){_0x235b6a=_0x235b6a-0xbe;var _0x361490=a128_0x3614();var _0x591dda=_0x361490[_0x235b6a];return _0x591dda;}function a128_0x3614(){var _0x34819b=['3970740TQoszF','510yLbUCz','6902995fsPDbS','104238tNkeCu','1225131AkUIlL','14djpNoG','5580ukOmih','416OCkSDt','4QGpByY','39UzEIRa','13167ITzPOV','36134aHXglC','150kxfFvi'];a128_0x3614=function(){return _0x34819b;};return a128_0x3614();}(function(_0x4fbdb1,_0x5e832b){var _0x28ef1=a128_0x591d,_0x2c9dec=_0x4fbdb1();while(!![]){try{var _0x4ed5dd=parseInt(_0x28ef1(0xbe))/0x1*(parseInt(_0x28ef1(0xc4))/0x2)+-parseInt(_0x28ef1(0xca))/0x3*(-parseInt(_0x28ef1(0xc1))/0x4)+parseInt(_0x28ef1(0xbf))/0x5*(parseInt(_0x28ef1(0xc5))/0x6)+parseInt(_0x28ef1(0xc3))/0x7*(-parseInt(_0x28ef1(0xc0))/0x8)+-parseInt(_0x28ef1(0xc9))/0x9*(parseInt(_0x28ef1(0xc7))/0xa)+-parseInt(_0x28ef1(0xc8))/0xb+parseInt(_0x28ef1(0xc6))/0xc*(parseInt(_0x28ef1(0xc2))/0xd);if(_0x4ed5dd===_0x5e832b)break;else _0x2c9dec['push'](_0x2c9dec['shift']());}catch(_0x506547){_0x2c9dec['push'](_0x2c9dec['shift']());}}}(a128_0x3614,0x59525));export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5690cb,_0x124a94){const _0xa77353=a129_0x4dec,_0x9900b5=_0x5690cb();while(!![]){try{const _0x335217=-parseInt(_0xa77353(0x15e))/0x1*(parseInt(_0xa77353(0x15b))/0x2)+parseInt(_0xa77353(0x167))/0x3*(-parseInt(_0xa77353(0x159))/0x4)+-parseInt(_0xa77353(0x164))/0x5+parseInt(_0xa77353(0x16e))/0x6+parseInt(_0xa77353(0x169))/0x7+-parseInt(_0xa77353(0x15d))/0x8+parseInt(_0xa77353(0x16c))/0x9;if(_0x335217===_0x124a94)break;else _0x9900b5['push'](_0x9900b5['shift']());}catch(_0x120906){_0x9900b5['push'](_0x9900b5['shift']());}}}(a129_0xa063,0x6f1b2));function a129_0x4dec(_0x2ac70c,_0x3a8b14){_0x2ac70c=_0x2ac70c-0x159;const _0xa06354=a129_0xa063();let _0x4dec9b=_0xa06354[_0x2ac70c];return _0x4dec9b;}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x4485f7,_0x85642c,_0x295588,_0x39b301){const _0x423072=a129_0x4dec,_0x33ba01=_0x4485f7[_0x423072(0x161)]['some'](_0x3a4fb3=>_0x3a4fb3[_0x423072(0x168)]===_0x423072(0x15c)&&_0x3a4fb3[_0x423072(0x16d)]===_0x423072(0x15f)),_0x88ebb5=_0x4485f7[_0x423072(0x161)][_0x423072(0x15a)](_0x8a8d0c=>_0x8a8d0c[_0x423072(0x168)]===_0x423072(0x165)&&_0x8a8d0c['type']==='string');if(!_0x33ba01||!_0x88ebb5)return;const _0x41da75=_0x85642c[_0x423072(0x15c)]?String(_0x85642c['code']):'',_0xf1e381=_0x85642c[_0x423072(0x165)]?String(_0x85642c[_0x423072(0x165)]):'';if(!_0x41da75&&!_0xf1e381)throw CliErrors[_0x423072(0x166)]('`'+_0x39b301+_0x423072(0x162));if(_0xf1e381&&!_0x41da75){const _0x30d008=resolveAlias(_0x295588,_0xf1e381);if(!_0x30d008){const _0x28bbd8=listAliases(_0x295588)[_0x423072(0x160)](_0x48f567=>_0x48f567[_0x423072(0x165)]),_0x2c10a2=_0x28bbd8[_0x423072(0x16a)]?_0x423072(0x16b)+_0x28bbd8['join'](',\x20'):'No\x20api.ts\x20found\x20in\x20'+_0x295588+'.\x20Run\x20`'+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors['validation'](_0x423072(0x163)+_0xf1e381+'\x22.\x20'+_0x2c10a2);}_0x85642c[_0x423072(0x15c)]=_0x30d008;}}function a129_0xa063(){const _0x20fe73=['5012988ofibMs','3244jBhbWY','some','106eexFJD','code','4700496DzDFRl','15371JwLqjM','string','map','flags','`\x20requires\x20either\x20--code\x20or\x20--alias.','Unknown\x20alias\x20\x22','603005tZJWdw','alias','validation','2118LkJUoD','name','991746oIQEYG','length','Available\x20aliases:\x20','14159754OtPHqk','type'];a129_0xa063=function(){return _0x20fe73;};return a129_0xa063();}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a130_0x2759bc=a130_0x2681;(function(_0x5c5bef,_0x4d4db6){const _0x379557=a130_0x2681,_0x3e3894=_0x5c5bef();while(!![]){try{const _0xa967f4=-parseInt(_0x379557(0x1c9))/0x1*(parseInt(_0x379557(0x1bd))/0x2)+parseInt(_0x379557(0x1bf))/0x3+parseInt(_0x379557(0x1cb))/0x4*(parseInt(_0x379557(0x1ad))/0x5)+-parseInt(_0x379557(0x1bb))/0x6+-parseInt(_0x379557(0x1af))/0x7+parseInt(_0x379557(0x1b8))/0x8+-parseInt(_0x379557(0x1cf))/0x9;if(_0xa967f4===_0x4d4db6)break;else _0x3e3894['push'](_0x3e3894['shift']());}catch(_0x3ec841){_0x3e3894['push'](_0x3e3894['shift']());}}}(a130_0x2513,0xc5df1));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a130_0xc6cdd}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x32b446,_0x34d7d1,_0xd90e07=[]){const _0x5b3e7=a130_0x2681;return{'rawFlags':_0x34d7d1,'args':_0xd90e07,'resolveAppCode':()=>_0x32b446[_0x5b3e7(0x1be)]||_0x34d7d1[_0x5b3e7(0x1ae)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x32b446[_0x5b3e7(0x1d0)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a130_0xc6cdd(_0x34d7d1),'defaultFormat':_0x32b446[_0x5b3e7(0x1ce)],'defaultPageSize':_0x32b446[_0x5b3e7(0x1a9)],'defaultVerbose':_0x32b446[_0x5b3e7(0x1b1)],'apiDir':_0x32b446['apiDir'],'riskLevel':_0x32b446[_0x5b3e7(0x1b2)],'selectedAppName':_0x32b446['explicitAppName'],'mergedCli':{'defaultApp':_0x32b446[_0x5b3e7(0x1ac)],'currentApp':_0x32b446['currentApp'],'appCode':_0x32b446[_0x5b3e7(0x1be)],'apps':_0x32b446['apps']}};}function a130_0x2513(){const _0xb5c476=['2167776OXlCcr','\x20\x20\x20Continue?\x20[y/N]\x20','cancelled','⚠\x20\x20High-risk\x20operation:\x20','filter','command','map','Set\x20appcode\x20via\x20`','requiresAuth','requiresAppCode','302911EtXVMQ','has','292924nTepjj','mergedCli','configMissing','format','604773RVocwj','cookie','resolveCookie','isNonInteractive','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','pageSize','resolveApiDomain','resolveAppCode','defaultApp','5TrMmPA','appcode','4236505Fmvmqo','validation','verbose','riskLevel','name','selectedAppName','apiDir','High-risk\x20operation\x20`','defaultVerbose','10949312TfAjOV','../core/api-client.js','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','2272098ZpguNF','authRequired','2YvFNxd','appCode'];a130_0x2513=function(){return _0xb5c476;};return a130_0x2513();}function a130_0x2681(_0x57093c,_0x4e3036){_0x57093c=_0x57093c-0x1a7;const _0x251381=a130_0x2513();let _0x268159=_0x251381[_0x57093c];return _0x268159;}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a130_0x2759bc(0x1c3)](_0x30088f=>PIPELINE_FLAG_NAMES[a130_0x2759bc(0x1ca)](_0x30088f[a130_0x2759bc(0x1b3)]))[a130_0x2759bc(0x1c5)](({name:_0x3d0042,type:_0x1b8488,description:_0x3b4d10})=>({'name':_0x3d0042,'type':_0x1b8488,'description':_0x3b4d10})),'formatOutput':formatOutput,'getCommandLabel'(_0x3486ca){const _0x39eed5=a130_0x2759bc;return CLI_BIN_NAME+'\x20'+_0x3486ca['service']+'\x20'+_0x3486ca[_0x39eed5(0x1c4)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x50c279){return CliErrors['validation'](_0x50c279);}},async 'prepare'(_0x1a7e01,_0x25bccc,_0x24deff,_0x14ddea){const _0x1879ac=a130_0x2759bc,_0x340c18=_0x25bccc[_0x1879ac(0x1b5)]||DEFAULT_API_DIR;resolveAliasToCode(_0x1a7e01,_0x24deff,_0x340c18,_0x14ddea);let _0x2388b8='';if(_0x1a7e01[_0x1879ac(0x1c7)]!==![]){_0x2388b8=_0x25bccc[_0x1879ac(0x1d1)]();if(!_0x2388b8)throw CliErrors[_0x1879ac(0x1bc)]();const {setActiveCookie:_0x1b692b}=await import(_0x1879ac(0x1b9));_0x1b692b(_0x2388b8);}let _0x1e2c3b='';if(_0x1a7e01[_0x1879ac(0x1c8)]!==![]){_0x1e2c3b=_0x25bccc[_0x1879ac(0x1ab)]()??'';if(!_0x1e2c3b)throw CliErrors[_0x1879ac(0x1cd)](_0x1879ac(0x1c6)+CLI_BIN_NAME+_0x1879ac(0x1a8));}return{'defaults':{'booleans':{'verbose':_0x25bccc[_0x1879ac(0x1b7)]},'numbers':{'pagesize':_0x25bccc['defaultPageSize']}},'extras':{'appCode':_0x1e2c3b,'cookie':_0x2388b8,'apiDomain':_0x25bccc[_0x1879ac(0x1aa)](),'apiDir':_0x340c18,'selectedAppName':_0x25bccc[_0x1879ac(0x1b4)],'mergedCli':_0x25bccc[_0x1879ac(0x1cc)]}};},async 'confirmHighRisk'({env:_0x20050f,commandLabel:_0x3d5a44}){const _0x21930a=a130_0x2759bc;if(_0x20050f[_0x21930a(0x1a7)])throw CliErrors[_0x21930a(0x1b0)](_0x21930a(0x1b6)+_0x3d5a44+_0x21930a(0x1ba));await requireConfirmationPrompt({'lines':[_0x21930a(0x1c2)+_0x3d5a44,_0x21930a(0x1c0)],'createCancelledError':_0x316c20=>CliErrors[_0x21930a(0x1c1)](_0x316c20)});},async 'finalize'(){const {clearActiveCookie:_0x39f214}=await import('../core/api-client.js');_0x39f214();}};export async function runCommand(_0x1282ff,_0x24d6a9){await runCommandWithAdapter(_0x1282ff,_0x24d6a9,runnerAdapter);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1d8fc2,_0x6abfe){const _0x559876=a131_0x21d7,_0x1b55b8=_0x1d8fc2();while(!![]){try{const _0x481f1a=-parseInt(_0x559876(0x127))/0x1+parseInt(_0x559876(0x128))/0x2+parseInt(_0x559876(0x126))/0x3+-parseInt(_0x559876(0x12a))/0x4+-parseInt(_0x559876(0x123))/0x5+-parseInt(_0x559876(0x125))/0x6*(parseInt(_0x559876(0x129))/0x7)+parseInt(_0x559876(0x124))/0x8;if(_0x481f1a===_0x6abfe)break;else _0x1b55b8['push'](_0x1b55b8['shift']());}catch(_0x2f88de){_0x1b55b8['push'](_0x1b55b8['shift']());}}}(a131_0x687a,0xb0f01));import{buildSchemaPayload as a131_0x350f9e}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a131_0x687a(){const _0x23760c=['1812608gPQXpy','3429705SvrzwI','13596232LjJRIO','6nqyAZp','3499929AbVaKF','447099xDrPKC','1762400wifSGI','10055101XsItey'];a131_0x687a=function(){return _0x23760c;};return a131_0x687a();}function a131_0x21d7(_0x1dd268,_0x3d7bc6){_0x1dd268=_0x1dd268-0x123;const _0x687aab=a131_0x687a();let _0x21d7a1=_0x687aab[_0x1dd268];return _0x21d7a1;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const {serviceRegistry:_0x47a180,findDefinition:_0x2f4c5d}=await import('../commands/registry.js');return a131_0x350f9e({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x47a180,'buildAllFlags':buildAllFlags,'findDefinition':_0x2f4c5d});}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5e9cf4,_0x4dafcb){var _0x4d5265=a132_0x23db,_0x2d9d3f=_0x5e9cf4();while(!![]){try{var _0x40bbbc=parseInt(_0x4d5265(0x109))/0x1*(-parseInt(_0x4d5265(0x10b))/0x2)+parseInt(_0x4d5265(0x108))/0x3*(-parseInt(_0x4d5265(0x10c))/0x4)+parseInt(_0x4d5265(0x107))/0x5+-parseInt(_0x4d5265(0x10a))/0x6+-parseInt(_0x4d5265(0x10d))/0x7+parseInt(_0x4d5265(0x10e))/0x8+parseInt(_0x4d5265(0x10f))/0x9;if(_0x40bbbc===_0x4dafcb)break;else _0x2d9d3f['push'](_0x2d9d3f['shift']());}catch(_0x424f2c){_0x2d9d3f['push'](_0x2d9d3f['shift']());}}}(a132_0x4b9b,0x6cc7c));function a132_0x23db(_0x56850e,_0x21e516){_0x56850e=_0x56850e-0x107;var _0x4b9b67=a132_0x4b9b();var _0x23dbe5=_0x4b9b67[_0x56850e];return _0x23dbe5;}function a132_0x4b9b(){var _0x425ddd=['4221435gMTOaG','114iWJorV','887056cswWdW','3807102JYLNxb','2mgWQiL','37216pIEIUT','6060866NgHmOv','1711936ppijgD','19154232WrEHGf'];a132_0x4b9b=function(){return _0x425ddd;};return a132_0x4b9b();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a133_0x1ef5(_0x293992,_0x3bd282){_0x293992=_0x293992-0x137;const _0x5ab46a=a133_0x5ab4();let _0x1ef517=_0x5ab46a[_0x293992];return _0x1ef517;}const a133_0x5b6145=a133_0x1ef5;(function(_0x1fac2a,_0x91f07a){const _0x3b91eb=a133_0x1ef5,_0x5e9eb6=_0x1fac2a();while(!![]){try{const _0x4196c7=parseInt(_0x3b91eb(0x13e))/0x1+-parseInt(_0x3b91eb(0x13d))/0x2*(-parseInt(_0x3b91eb(0x13c))/0x3)+parseInt(_0x3b91eb(0x140))/0x4*(-parseInt(_0x3b91eb(0x142))/0x5)+-parseInt(_0x3b91eb(0x141))/0x6+parseInt(_0x3b91eb(0x13a))/0x7+parseInt(_0x3b91eb(0x139))/0x8+-parseInt(_0x3b91eb(0x138))/0x9*(parseInt(_0x3b91eb(0x13f))/0xa);if(_0x4196c7===_0x91f07a)break;else _0x5e9eb6['push'](_0x5e9eb6['shift']());}catch(_0x4fe15a){_0x5e9eb6['push'](_0x5e9eb6['shift']());}}}(a133_0x5ab4,0x3ff31));export const VERSION=a133_0x5b6145(0x13b);export const GIT_TAG='v2.1.2-beta.2';export const GIT_COMMIT='3bef55e';function a133_0x5ab4(){const _0x340586=['2.1.2-beta.2','581751oxxBKM','4iYlScf','231068rQWGQq','1570JmExRh','1788ijcROj','1634082GkuNkt','795kwsuHS','2026-04-13T16:01:22.900Z','38061EHCUrx','2635496UwxSlP','2246797zmYNQY'];a133_0x5ab4=function(){return _0x340586;};return a133_0x5ab4();}export const BUILD_TIME=a133_0x5b6145(0x137);
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xdd908a,_0x4b77ef){var _0x206485=a134_0x1d8a,_0x1986fa=_0xdd908a();while(!![]){try{var _0x15ae2e=parseInt(_0x206485(0x1f5))/0x1*(-parseInt(_0x206485(0x1fa))/0x2)+parseInt(_0x206485(0x1f8))/0x3+parseInt(_0x206485(0x1fe))/0x4+parseInt(_0x206485(0x1f4))/0x5+parseInt(_0x206485(0x1f3))/0x6+parseInt(_0x206485(0x1fd))/0x7+-parseInt(_0x206485(0x1fb))/0x8*(parseInt(_0x206485(0x1f9))/0x9);if(_0x15ae2e===_0x4b77ef)break;else _0x1986fa['push'](_0x1986fa['shift']());}catch(_0x47c392){_0x1986fa['push'](_0x1986fa['shift']());}}}(a134_0x1763,0xc0c64));import a134_0x326445 from'chalk';function a134_0x1d8a(_0x2d09fb,_0x18c29b){_0x2d09fb=_0x2d09fb-0x1f3;var _0x1763df=a134_0x1763();var _0x1d8ac9=_0x1763df[_0x2d09fb];return _0x1d8ac9;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x9479b=a134_0x1d8a;console['log'](),console[_0x9479b(0x1f6)](a134_0x326445[_0x9479b(0x1ff)][_0x9479b(0x201)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x9479b(0x1f6)](),console[_0x9479b(0x1f6)](_0x9479b(0x1fc)+a134_0x326445[_0x9479b(0x1ff)][_0x9479b(0x201)](CLI_BIN_NAME+_0x9479b(0x1f7))+_0x9479b(0x200)),console[_0x9479b(0x1f6)]();}function a134_0x1763(){var _0x320591=['\x20to\x20view\x20available\x20commands.','bold','8187168jJRsra','3873180CXSSTf','527041gvgePu','log','\x20--help','4225158qLHNhY','3089943HLAlKl','2aLWttj','104CvuLmP','\x20\x20Use\x20','8340766UVCGak','4163232znqPyV','green'];a134_0x1763=function(){return _0x320591;};return a134_0x1763();}
|
package/lib/skills/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x23a9df,_0xf38d6d){const _0x20bfc8=a135_0x6942,_0xbf813f=_0x23a9df();while(!![]){try{const _0x167159=parseInt(_0x20bfc8(0x1a3))/0x1+-parseInt(_0x20bfc8(0x19e))/0x2*(-parseInt(_0x20bfc8(0x1a0))/0x3)+-parseInt(_0x20bfc8(0x1ab))/0x4*(parseInt(_0x20bfc8(0x1b3))/0x5)+parseInt(_0x20bfc8(0x1a4))/0x6*(-parseInt(_0x20bfc8(0x1af))/0x7)+parseInt(_0x20bfc8(0x1b9))/0x8+-parseInt(_0x20bfc8(0x1ba))/0x9+parseInt(_0x20bfc8(0x1b1))/0xa;if(_0x167159===_0xf38d6d)break;else _0xbf813f['push'](_0xbf813f['shift']());}catch(_0x2e1fe7){_0xbf813f['push'](_0xbf813f['shift']());}}}(a135_0x4636,0x6f688));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function camelCaseFlagsToKebab(_0x430a40){const _0x37c594=a135_0x6942,_0x9720af=[];for(const [_0x39f95c,_0x53c69b]of Object[_0x37c594(0x1ae)](_0x430a40)){if(_0x53c69b===!![]){const _0x2f51c4=_0x39f95c[_0x37c594(0x1ad)](/([A-Z])/g,_0x37c594(0x1a1))[_0x37c594(0x19d)]();_0x9720af[_0x37c594(0x1bc)](_0x2f51c4);}}return _0x9720af;}function a135_0x6942(_0x1d6697,_0x4c66dc){_0x1d6697=_0x1d6697-0x19c;const _0x463618=a135_0x4636();let _0x694227=_0x463618[_0x1d6697];return _0x694227;}export function parseDynamicFlags(){const _0x4198d4=a135_0x6942,_0x53a185=[];for(let _0x1c0127=0x3;_0x1c0127<process[_0x4198d4(0x1bb)]['length'];_0x1c0127++){const _0x25f01c=process[_0x4198d4(0x1bb)][_0x1c0127];if(_0x25f01c&&_0x25f01c[_0x4198d4(0x1b8)]('--')){const _0x59364c=_0x25f01c[_0x4198d4(0x1a7)](0x2);_0x59364c&&!_0x59364c[_0x4198d4(0x1a9)]('=')&&_0x53a185[_0x4198d4(0x1bc)](_0x59364c);}}return _0x53a185;}export function getAllProvidedFlags(_0x211872){const _0x518d6b=a135_0x6942,_0x5b832c=camelCaseFlagsToKebab(_0x211872),_0x311c1d=parseDynamicFlags(),_0x4d6523=new Set([..._0x5b832c,..._0x311c1d]);return Array[_0x518d6b(0x1a8)](_0x4d6523);}export function normalizeLegacyBffSaveFlags(_0x19c580){const _0x3680b2=a135_0x6942,_0x373aa5=new Set(_0x19c580);return _0x373aa5['has']('dangerously-bff-save')&&_0x373aa5['add']('enable-bff-save'),Array[_0x3680b2(0x1a8)](_0x373aa5);}function a135_0x4636(){const _0x37894=['\x0aAvailable\x20commands:','20utZAnZ','log','replace','entries','28gdpKtD','error','10702980hvPWIf','cwd','378555QMjgmA','help','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','exit','startsWith','996072vbFoDS','5567391CGnJGp','argv','push','\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','Equivalent\x20command:\x20','toLowerCase','2kslYfv','(empty)','1180923WgJuyT','-$1','\x20skill\x20--help\x0a\x20\x20','18102HsTEqt','229602ontHHG','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a','不支持的命令:\x20','slice','from','includes'];a135_0x4636=function(){return _0x37894;};return a135_0x4636();}const SKILLS_INSTALL_COMMAND_LINE='npx\x20-y\x20skills\x20add\x20lovrabet/rabetbase\x20--global';export async function skillsCommand(_0x5de790,_0x1358ad,_0x12bbf1){const _0x5e5818=a135_0x6942;logger['setLogPath'](process[_0x5e5818(0x1b2)]());if(_0x12bbf1?.[_0x5e5818(0x1b4)]||_0x5de790==='--help'){showHelp();return;}console[_0x5e5818(0x1b0)]('Error:\x20Unsupported\x20command:\x20'+(_0x5de790||_0x5e5818(0x19f))),console[_0x5e5818(0x1ac)](_0x5e5818(0x1aa)),console[_0x5e5818(0x1ac)]('\x20\x20'+CLI_BIN_NAME+_0x5e5818(0x1b5)),console[_0x5e5818(0x1ac)]('\x20\x20'+CLI_BIN_NAME+'\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a'),console[_0x5e5818(0x1ac)](''),console['log'](_0x5e5818(0x19c)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x5e5818(0x1b0)]('skill',_0x5e5818(0x1a6)+_0x5de790),process[_0x5e5818(0x1b7)](0x1);}function showHelp(){const _0x30506b=a135_0x6942;console[_0x30506b(0x1ac)](_0x30506b(0x1bd)+CLI_BIN_NAME+_0x30506b(0x1a2)+CLI_BIN_NAME+_0x30506b(0x1b6)+SKILLS_INSTALL_COMMAND_LINE+_0x30506b(0x1a5));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a136_0x558cb8=a136_0x5986;(function(_0x3c2fdc,_0x1927d7){const _0x3c037b=a136_0x5986,_0x2aab86=_0x3c2fdc();while(!![]){try{const _0x379fc4=parseInt(_0x3c037b(0x128))/0x1+parseInt(_0x3c037b(0x11d))/0x2*(-parseInt(_0x3c037b(0x134))/0x3)+-parseInt(_0x3c037b(0x136))/0x4*(parseInt(_0x3c037b(0x11a))/0x5)+parseInt(_0x3c037b(0x12c))/0x6+-parseInt(_0x3c037b(0x124))/0x7+parseInt(_0x3c037b(0x126))/0x8+-parseInt(_0x3c037b(0x133))/0x9*(-parseInt(_0x3c037b(0x11b))/0xa);if(_0x379fc4===_0x1927d7)break;else _0x2aab86['push'](_0x2aab86['shift']());}catch(_0x542cc8){_0x2aab86['push'](_0x2aab86['shift']());}}}(a136_0x566d,0x5e07e));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';function a136_0x5986(_0x11298d,_0x32dbdd){_0x11298d=_0x11298d-0x119;const _0x566dac=a136_0x566d();let _0x5986f6=_0x566dac[_0x11298d];return _0x5986f6;}export const NPX_FLAG_YES='-y';export const NPX_SKILLS_CLI=a136_0x558cb8(0x125);export const NPX_SKILLS_SUBCOMMAND_ADD=a136_0x558cb8(0x11c);export const NPX_SKILLS_FLAG_SKILL='--skill';function a136_0x566d(){const _0x1fead6=['--global','toString','3203091FpGRqZ','51099qpwpFF','trim','2644108qKVUXQ','join','yes','5QwSiZP','30CTpEXI','add','82JBZuOf','unknown','npx','stderr','pipe','stdio','status','4423762ttpJMK','skills','5954864SnGKAM','exit\x20','561147FTjfmZ','skill','lovrabet/lovrabet-skill','Lovrabet','19764GyoWqu','inherit','log','remove','stdout'];a136_0x566d=function(){return _0x1fead6;};return a136_0x566d();}export const RABETBASE_SKILL_SOURCE=a136_0x558cb8(0x12a);export const DEFAULT_RABETBASE_SKILL_NAME=a136_0x558cb8(0x12b);export function buildNpxSkillsAddArgv(_0x3fb649=DEFAULT_RABETBASE_SKILL_NAME){return[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x3fb649];}export const NPX_SKILLS_ADD_COMMAND_LINE=[a136_0x558cb8(0x11f),...buildNpxSkillsAddArgv()]['join']('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x15b1f6,_0x2f908f){const _0x6403d=a136_0x558cb8;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x318226=_0x2f908f?.[_0x6403d(0x122)]??_0x6403d(0x12d),_0x24a8d8=resolveNpmBin(_0x6403d(0x11f)),_0x790500=buildNpxSkillsAddArgv(_0x2f908f?.[_0x6403d(0x129)]??DEFAULT_RABETBASE_SKILL_NAME),_0x34f8fb=[_0x24a8d8,..._0x790500][_0x6403d(0x137)]('\x20');console[_0x6403d(0x12e)]('*\x20'+_0x34f8fb);const _0x27bb78=spawnSync(_0x24a8d8,_0x790500,{'cwd':_0x15b1f6,'stdio':_0x318226,'env':process.env,'shell':![]}),_0x142fb3=_0x27bb78[_0x6403d(0x123)];if(_0x142fb3===0x0)return{'ok':!![],'status':0x0};let _0x115f68='exit\x20'+(_0x142fb3??_0x6403d(0x11e));if(_0x318226===_0x6403d(0x121)){const _0x44175c=_0x27bb78[_0x6403d(0x120)]?_0x27bb78[_0x6403d(0x120)][_0x6403d(0x132)]()['trim']():'',_0x4fbf08=_0x27bb78[_0x6403d(0x130)]?_0x27bb78[_0x6403d(0x130)]['toString']()['trim']():'';if(_0x44175c)_0x115f68=_0x44175c;else{if(_0x4fbf08)_0x115f68=_0x4fbf08;}}return{'ok':![],'status':_0x142fb3??null,'error':_0x115f68};}export function runNpxSkillsRemove(_0x3af052,_0x94e3bb){const _0x26a57c=a136_0x558cb8;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x28b5cb=_0x94e3bb?.['stdio']??'inherit',_0x23b006=resolveNpmBin(_0x26a57c(0x11f)),_0x1f35f0=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x26a57c(0x12f),RABETBASE_SKILL_SOURCE,NPX_SKILLS_FLAG_SKILL,_0x94e3bb?.[_0x26a57c(0x129)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x94e3bb?.[_0x26a57c(0x119)]?['-y']:[]],_0x556632=[_0x23b006,..._0x1f35f0][_0x26a57c(0x137)]('\x20');console[_0x26a57c(0x12e)]('*\x20'+_0x556632);const _0x1c3946=spawnSync(_0x23b006,_0x1f35f0,{'cwd':_0x3af052,'stdio':_0x28b5cb,'env':process.env,'shell':![]}),_0x3b22eb=_0x1c3946[_0x26a57c(0x123)];if(_0x3b22eb===0x0)return{'ok':!![],'status':0x0};let _0x1a976b=_0x26a57c(0x127)+(_0x3b22eb??_0x26a57c(0x11e));if(_0x28b5cb===_0x26a57c(0x121)){const _0xf571ef=_0x1c3946['stderr']?_0x1c3946[_0x26a57c(0x120)][_0x26a57c(0x132)]()[_0x26a57c(0x135)]():'',_0x3a5b22=_0x1c3946[_0x26a57c(0x130)]?_0x1c3946[_0x26a57c(0x130)][_0x26a57c(0x132)]()[_0x26a57c(0x135)]():'';if(_0xf571ef)_0x1a976b=_0xf571ef;else{if(_0x3a5b22)_0x1a976b=_0x3a5b22;}}return{'ok':![],'status':_0x3b22eb??null,'error':_0x1a976b};}export function runNpxSkillsAddGlobal(_0x3cd7ec,_0x4b9b5d,_0x19c5ef){const _0x4c2706=a136_0x558cb8;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x523095=_0x19c5ef?.['stdio']??_0x4c2706(0x12d),_0x435b05=resolveNpmBin(_0x4c2706(0x11f)),_0x36a068=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4b9b5d,_0x4c2706(0x131),..._0x19c5ef?.[_0x4c2706(0x119)]?['-y']:[]],_0xc0a4b3=[_0x435b05,..._0x36a068][_0x4c2706(0x137)]('\x20');console[_0x4c2706(0x12e)]('*\x20'+_0xc0a4b3);const _0x3ce431=spawnSync(_0x435b05,_0x36a068,{'cwd':_0x3cd7ec,'stdio':_0x523095,'env':process.env,'shell':![]}),_0x52914c=_0x3ce431[_0x4c2706(0x123)];if(_0x52914c===0x0)return{'ok':!![],'status':0x0};let _0x476664=_0x4c2706(0x127)+(_0x52914c??_0x4c2706(0x11e));if(_0x523095===_0x4c2706(0x121)){const _0x333105=_0x3ce431[_0x4c2706(0x120)]?_0x3ce431['stderr'][_0x4c2706(0x132)]()[_0x4c2706(0x135)]():'',_0xea06ed=_0x3ce431[_0x4c2706(0x130)]?_0x3ce431[_0x4c2706(0x130)][_0x4c2706(0x132)]()[_0x4c2706(0x135)]():'';if(_0x333105)_0x476664=_0x333105;else{if(_0xea06ed)_0x476664=_0xea06ed;}}return{'ok':![],'status':_0x52914c??null,'error':_0x476664};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x21e909,_0x3c1dbe){const _0x26dfae=a137_0xf666,_0x2d6754=_0x21e909();while(!![]){try{const _0xcd3254=-parseInt(_0x26dfae(0x8d))/0x1*(-parseInt(_0x26dfae(0x8f))/0x2)+parseInt(_0x26dfae(0x92))/0x3*(parseInt(_0x26dfae(0x7f))/0x4)+-parseInt(_0x26dfae(0x87))/0x5+-parseInt(_0x26dfae(0x83))/0x6*(parseInt(_0x26dfae(0x82))/0x7)+-parseInt(_0x26dfae(0x84))/0x8+parseInt(_0x26dfae(0x90))/0x9*(parseInt(_0x26dfae(0x81))/0xa)+parseInt(_0x26dfae(0x88))/0xb;if(_0xcd3254===_0x3c1dbe)break;else _0x2d6754['push'](_0x2d6754['shift']());}catch(_0x203e48){_0x2d6754['push'](_0x2d6754['shift']());}}}(a137_0x33c3,0xeb23f));function a137_0x33c3(){const _0x36226a=['service','command','stringify','1483bEIsmL','some','1814pqlTqP','246159IIqRNp','error','12FqDGny','1220812cbuxho','message','500ZqfmHz','7vaqXEr','4923738DSiaZl','7184064lRziiO','entries','durationMs','8255935wMvaSI','4394610dNrljf','[REDACTED]'];a137_0x33c3=function(){return _0x36226a;};return a137_0x33c3();}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 a137_0xf666(_0x363548,_0x4af6ae){_0x363548=_0x363548-0x7f;const _0x33c39a=a137_0x33c3();let _0xf666cc=_0x33c39a[_0x363548];return _0xf666cc;}function isSensitiveKey(_0x5ebe4d){const _0x24181d=a137_0xf666;return SENSITIVE_PATTERNS[_0x24181d(0x8e)](_0x5d3b8f=>_0x5d3b8f['test'](_0x5ebe4d));}function sanitizeFlags(_0x1f33f5){const _0x523518=a137_0xf666,_0x175044={};for(const [_0x441121,_0x4cd02c]of Object[_0x523518(0x85)](_0x1f33f5)){isSensitiveKey(_0x441121)?_0x175044[_0x441121]=_0x4cd02c!=null&&_0x4cd02c!==''?_0x523518(0x89):_0x4cd02c:_0x175044[_0x441121]=_0x4cd02c;}return _0x175044;}export async function reportCommandTrace(_0x528b64){const _0x182982=a137_0xf666;try{const _0xd36b0b=sanitizeFlags(_0x528b64['flags']);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x528b64[_0x182982(0x8a)],'command.name':_0x528b64[_0x182982(0x8b)],'command.flags':JSON[_0x182982(0x8c)](_0xd36b0b),..._0x528b64[_0x182982(0x86)]!=null?{'command.duration_ms':_0x528b64[_0x182982(0x86)]}:{},..._0x528b64[_0x182982(0x91)]?{'command.error':_0x528b64[_0x182982(0x91)]instanceof Error?_0x528b64['error'][_0x182982(0x80)]:String(_0x528b64['error'])}:{}}});}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1657ee,_0x21bd72){var _0x42deee=a138_0x24e6,_0xc2d99f=_0x1657ee();while(!![]){try{var _0x1ce492=-parseInt(_0x42deee(0xe6))/0x1*(parseInt(_0x42deee(0xe2))/0x2)+-parseInt(_0x42deee(0xec))/0x3+parseInt(_0x42deee(0xeb))/0x4+-parseInt(_0x42deee(0xe8))/0x5*(parseInt(_0x42deee(0xe7))/0x6)+-parseInt(_0x42deee(0xed))/0x7+parseInt(_0x42deee(0xe5))/0x8*(-parseInt(_0x42deee(0xea))/0x9)+-parseInt(_0x42deee(0xef))/0xa*(-parseInt(_0x42deee(0xe4))/0xb);if(_0x1ce492===_0x21bd72)break;else _0xc2d99f['push'](_0xc2d99f['shift']());}catch(_0x5d472a){_0xc2d99f['push'](_0xc2d99f['shift']());}}}(a138_0xd5f5,0xd74de));function a138_0xd5f5(){var _0xdeecd8=['5317794IhcIFp','1554420oIEZWD','4155489DlVSCd','441644lpOYGL','service','14370dNkaWf','cli.help','2dCHMeK','error','37939VYhbnl','16PYJiRf','869691EMdYOz','4182gMtzwJ','6910bmcQnq','Failed\x20to\x20report\x20CLI\x20help\x20trace:'];a138_0xd5f5=function(){return _0xdeecd8;};return a138_0xd5f5();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a138_0x24e6(_0x30149b,_0x365466){_0x30149b=_0x30149b-0xe1;var _0xd5f573=a138_0xd5f5();var _0x24e65c=_0xd5f573[_0x30149b];return _0x24e65c;}export async function reportCliHelpTrace(_0x36c26a,_0x2a58f2){var _0x163dd2=a138_0x24e6;try{await sendCliTraceLog({'spanName':_0x163dd2(0xe1),'logData':{'rabetbase.help.kind':_0x36c26a,..._0x2a58f2?.[_0x163dd2(0xee)]&&{'rabetbase.help.service':_0x2a58f2[_0x163dd2(0xee)]}}});}catch(_0x4e5f48){console[_0x163dd2(0xe3)](_0x163dd2(0xe9),_0x4e5f48);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x553c5f,_0x4a4d7b){const _0x2f6b42=a139_0x1238,_0x51c0ef=_0x553c5f();while(!![]){try{const _0x278e27=parseInt(_0x2f6b42(0x1ad))/0x1+parseInt(_0x2f6b42(0x1ab))/0x2+-parseInt(_0x2f6b42(0x1b7))/0x3+-parseInt(_0x2f6b42(0x1ac))/0x4+-parseInt(_0x2f6b42(0x1ae))/0x5+-parseInt(_0x2f6b42(0x1b4))/0x6+parseInt(_0x2f6b42(0x1b0))/0x7;if(_0x278e27===_0x4a4d7b)break;else _0x51c0ef['push'](_0x51c0ef['shift']());}catch(_0x217b25){_0x51c0ef['push'](_0x51c0ef['shift']());}}}(a139_0xb98d,0x7341d));function a139_0x1238(_0x5117de,_0x693d53){_0x5117de=_0x5117de-0x1ab;const _0xb98d83=a139_0xb98d();let _0x123855=_0xb98d83[_0x5117de];return _0x123855;}function a139_0xb98d(){const _0x11c750=['daily','8567965cxPfyK','rabetbase-cli','userInfo','username','2239614edVnZL','production','unknown','405549wfDOJO','248484YAqPsD','3215016cZSxka','922904qwuLQZ','2434210pzBAPb'];a139_0xb98d=function(){return _0x11c750;};return a139_0xb98d();}import a139_0x19a5d7 from'node:os';import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setTraceConfig,getOtelLoggerVersion}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x520f27=a139_0x1238,_0x69e599=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0xba39d1=_0x69e599?.['user'];setTraceConfig({'otelLoggerVersion':getOtelLoggerVersion(),'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x520f27(0x1b6)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x520f27(0x1af):_0x520f27(0x1b5)),'username':_0xba39d1?.['username']??a139_0x19a5d7[_0x520f27(0x1b2)]()[_0x520f27(0x1b3)]??_0x520f27(0x1b1),..._0xba39d1&&{'nickname':_0xba39d1['nickname']}}),cliOtelTraceInitialized=!![];}return _0x69e599;}
|