@lovrabet/rabetbase-cli 2.1.14-beta.3 → 2.2.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/add.js +1 -1
- package/lib/commands/app/discover.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app/use.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -0
- package/lib/commands/dataset/relation-delete.js +1 -0
- package/lib/commands/dataset/relation-shared.js +1 -0
- package/lib/commands/dataset/relation-update.js +1 -0
- package/lib/commands/dataset/relations.js +1 -0
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/update.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -0
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/init.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/save.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -0
- 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/commands/dataset/link-create.js +0 -1
- package/lib/commands/dataset/link-delete.js +0 -1
- package/lib/commands/dataset/link-shared.js +0 -1
- package/lib/commands/dataset/link-update.js +0 -1
- package/lib/commands/dataset/links.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a146_0x1fac7f=a146_0x453e;(function(_0xebb213,_0x79205f){const _0x331e4a=a146_0x453e,_0x336089=_0xebb213();while(!![]){try{const _0x614441=-parseInt(_0x331e4a(0xdb))/0x1*(-parseInt(_0x331e4a(0xe2))/0x2)+parseInt(_0x331e4a(0xda))/0x3+-parseInt(_0x331e4a(0xf0))/0x4+parseInt(_0x331e4a(0xe1))/0x5*(parseInt(_0x331e4a(0xe6))/0x6)+-parseInt(_0x331e4a(0xec))/0x7+-parseInt(_0x331e4a(0xe8))/0x8*(parseInt(_0x331e4a(0xe0))/0x9)+-parseInt(_0x331e4a(0xd6))/0xa;if(_0x614441===_0x79205f)break;else _0x336089['push'](_0x336089['shift']());}catch(_0x3e868e){_0x336089['push'](_0x336089['shift']());}}}(a146_0x4321,0x83ebb));import{access,mkdir,readdir,stat}from'node:fs/promises';import{constants}from'node:fs';import{dirname,join}from'node:path';import{findHookLocationByRemoteId,snakeToCamel}from'../../core/bff/utils.js';export const SUPPORTED_BFF_TYPES=[a146_0x1fac7f(0xf1),a146_0x1fac7f(0xf5),a146_0x1fac7f(0xf8)];export function normalizeBffType(_0x2dc6c3){const _0x456f7e=a146_0x1fac7f;if(!_0x2dc6c3)return undefined;const _0x46baaa=_0x2dc6c3['trim']()['toUpperCase']();return SUPPORTED_BFF_TYPES[_0x456f7e(0xe5)](_0x46baaa)?_0x46baaa:undefined;}async function scanJsFilesRecursively(_0x34b2a1,_0x4595e9){const _0x27f8f2=a146_0x1fac7f,_0x489300=[];try{const _0x4cdca4=await readdir(_0x34b2a1,{'withFileTypes':!![]});for(const _0x2cb398 of _0x4cdca4){const _0x35b8fb=join(_0x34b2a1,_0x2cb398[_0x27f8f2(0xeb)]);if(_0x2cb398[_0x27f8f2(0xd9)]())_0x489300[_0x27f8f2(0xed)](...await scanJsFilesRecursively(_0x35b8fb,_0x4595e9+'/'+_0x2cb398[_0x27f8f2(0xeb)]));else _0x2cb398[_0x27f8f2(0xfd)]()&&_0x2cb398[_0x27f8f2(0xeb)][_0x27f8f2(0xdd)](_0x27f8f2(0xe7))&&_0x489300[_0x27f8f2(0xed)]({'lockKey':_0x4595e9+'/'+_0x2cb398[_0x27f8f2(0xeb)]['replace'](/\.js$/,''),'filePath':_0x35b8fb});}}catch(_0x371520){if(_0x371520['code']!==_0x27f8f2(0xf9))throw _0x371520;}return _0x489300;}async function scanFlatFunctions(_0x100450,_0x306e4f){const _0xd91be0=a146_0x1fac7f,_0x238dee=join(_0x100450[_0xd91be0(0xe9)],_0x306e4f),_0x30f6ad=await scanJsFilesRecursively(_0x238dee,_0x306e4f);return _0x30f6ad[_0xd91be0(0xf2)](({lockKey:_0x358372,filePath:_0x147007})=>({'type':_0x306e4f,'name':_0x358372[_0xd91be0(0xef)]('/')['at'](-0x1)??'','filePath':_0x147007,'lockKey':_0x358372}));}async function scanHookFunctions(_0x542836){const _0x1771e0=a146_0x1fac7f,_0x36972f=join(_0x542836['scriptsRootDir'],_0x1771e0(0xf8)),_0x30a0c3=[];try{const _0x72294=await readdir(_0x36972f,{'withFileTypes':!![]});for(const _0x2728a8 of _0x72294){if(!_0x2728a8[_0x1771e0(0xd9)]())continue;const _0x30aad4=_0x2728a8[_0x1771e0(0xeb)],_0x2e067e=join(_0x36972f,_0x30aad4),_0xe4dc95=await readdir(_0x2e067e,{'withFileTypes':!![]});for(const _0x11ebfb of _0xe4dc95){if(!_0x11ebfb[_0x1771e0(0xd9)]())continue;const _0x27b095=_0x11ebfb[_0x1771e0(0xeb)],_0x3b5aa5=join(_0x2e067e,_0x27b095),_0x363179=await readdir(_0x3b5aa5,{'withFileTypes':!![]});for(const _0x411e0e of _0x363179){if(!_0x411e0e[_0x1771e0(0xd9)]())continue;const _0x42cbe2=_0x411e0e[_0x1771e0(0xeb)],_0x1450bb=join(_0x3b5aa5,_0x42cbe2),_0x461468=await readdir(_0x1450bb,{'withFileTypes':!![]});for(const _0x345681 of _0x461468){if(!_0x345681['isFile']()||!_0x345681['name']['endsWith'](_0x1771e0(0xe7)))continue;const _0x79684=_0x345681['name'][_0x1771e0(0xf7)](/\.js$/,'');_0x30a0c3[_0x1771e0(0xed)]({'type':_0x1771e0(0xf8),'name':_0x79684,'filePath':join(_0x1450bb,_0x345681[_0x1771e0(0xeb)]),'lockKey':_0x1771e0(0xfb)+_0x30aad4+'/'+_0x27b095+'/'+_0x42cbe2+'/'+_0x79684,'alias':_0x30aad4,'operationType':_0x27b095,'functionNode':_0x42cbe2});}}}}}catch(_0xe99f98){if(_0xe99f98[_0x1771e0(0xea)]!==_0x1771e0(0xf9))throw _0xe99f98;}return _0x30a0c3;}export async function scanLocalBffFunctions(_0x437602,_0x512d7e){const _0x5a8065=a146_0x1fac7f;if(_0x512d7e==='COMMON'||_0x512d7e===_0x5a8065(0xf5))return scanFlatFunctions(_0x437602,_0x512d7e);if(_0x512d7e===_0x5a8065(0xf8))return scanHookFunctions(_0x437602);const [_0x12b55e,_0x1b52ea,_0x5bbca7]=await Promise[_0x5a8065(0xf6)]([scanFlatFunctions(_0x437602,_0x5a8065(0xf1)),scanFlatFunctions(_0x437602,_0x5a8065(0xf5)),scanHookFunctions(_0x437602)]);return[..._0x12b55e,..._0x1b52ea,..._0x5bbca7];}export function resolveLocalFilePathFromLockKey(_0x3773db,_0xc59c10){const _0x12d419=a146_0x1fac7f;return join(_0x3773db[_0x12d419(0xe9)],..._0xc59c10['split']('/'))+_0x12d419(0xe7);}export function createHookLocationMap(_0x466d92){const _0x1e2d60=a146_0x1fac7f,_0x502b68=new Map();for(const _0x1aeeed of _0x466d92){_0x1aeeed[_0x1e2d60(0xfa)]&&_0x502b68['set'](_0x1aeeed['beforeScriptId'],{'datasetCode':_0x1aeeed['datasetCode'],'operationType':snakeToCamel(_0x1aeeed['operationType']),'functionNode':_0x1e2d60(0xee)}),_0x1aeeed['afterScriptId']&&_0x502b68[_0x1e2d60(0xdc)](_0x1aeeed['afterScriptId'],{'datasetCode':_0x1aeeed[_0x1e2d60(0xe4)],'operationType':snakeToCamel(_0x1aeeed[_0x1e2d60(0xd7)]),'functionNode':_0x1e2d60(0xd8)});}return _0x502b68;}export function resolveRemoteScriptTarget(_0x4935e8,_0x124aa0,_0x53927b,_0x9baaf2,_0x4c93c3){const _0x5a07a1=a146_0x1fac7f,_0x313ace=normalizeBffType(_0x124aa0[_0x5a07a1(0xfc)]);if(!_0x313ace||!_0x124aa0['functionName'])return null;if(_0x313ace===_0x5a07a1(0xf8)){const _0x586d13=(_0x124aa0['id']?_0x53927b[_0x5a07a1(0xf4)](_0x124aa0['id']):undefined)??findHookLocationByRemoteId(_0x9baaf2,_0x124aa0['id']);if(!_0x586d13)return null;const _0x4337fc=_0x586d13[_0x5a07a1(0xe3)]||_0x4c93c3['get'](_0x586d13[_0x5a07a1(0xe4)]),_0x45b318=_0x4337fc??_0x586d13[_0x5a07a1(0xe4)],_0x215c57={..._0x586d13,'alias':_0x4337fc},_0x15f3d9=_0x5a07a1(0xfb)+_0x45b318+'/'+_0x215c57['operationType']+'/'+_0x215c57[_0x5a07a1(0xde)]+'/'+_0x124aa0[_0x5a07a1(0xf3)];return{'lockKey':_0x15f3d9,'filePath':resolveLocalFilePathFromLockKey(_0x4935e8,_0x15f3d9),'type':_0x5a07a1(0xf8),'hookLocation':_0x215c57};}const _0x192231=_0x313ace+'/'+_0x124aa0[_0x5a07a1(0xf3)];return{'lockKey':_0x192231,'filePath':resolveLocalFilePathFromLockKey(_0x4935e8,_0x192231),'type':_0x313ace};}export async function ensureParentDirectory(_0x5e38ae){await mkdir(dirname(_0x5e38ae),{'recursive':!![]});}function a146_0x4321(){const _0x35c0ff=['HOOK','ENOENT','beforeScriptId','HOOK/','scriptType','isFile','6746010EdzoDp','operationType','after','isDirectory','3112932EnBZNN','225482qLlSvn','set','endsWith','functionNode','F_OK','147627sTgMvQ','2895NyrsSe','2CcpxkE','alias','datasetCode','includes','4188iPNMyv','.js','24LxZFPb','scriptsRootDir','code','name','261191rSTDpQ','push','before','split','1463192ltSEKd','COMMON','map','functionName','get','ENDPOINT','all','replace'];a146_0x4321=function(){return _0x35c0ff;};return a146_0x4321();}function a146_0x453e(_0x2cf50e,_0x4e7f94){_0x2cf50e=_0x2cf50e-0xd6;const _0x4321cb=a146_0x4321();let _0x453ee3=_0x4321cb[_0x2cf50e];return _0x453ee3;}export async function fileExists(_0x4ef4ed){const _0x1b8868=a146_0x1fac7f;try{return await access(_0x4ef4ed,constants[_0x1b8868(0xdf)]),!![];}catch{return![];}}export async function directoryExists(_0x152254){try{const _0x1cfcc6=await stat(_0x152254);return _0x1cfcc6['isDirectory']();}catch{return![];}}
|
package/lib/core/bff/hash.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x38b43a,_0x47f8f2){const _0x430c03=a147_0x250c,_0x5d98ef=_0x38b43a();while(!![]){try{const _0x9a444c=parseInt(_0x430c03(0x165))/0x1*(-parseInt(_0x430c03(0x163))/0x2)+parseInt(_0x430c03(0x15f))/0x3*(parseInt(_0x430c03(0x162))/0x4)+parseInt(_0x430c03(0x15b))/0x5+-parseInt(_0x430c03(0x15a))/0x6*(parseInt(_0x430c03(0x15d))/0x7)+-parseInt(_0x430c03(0x160))/0x8+-parseInt(_0x430c03(0x164))/0x9*(-parseInt(_0x430c03(0x15e))/0xa)+parseInt(_0x430c03(0x159))/0xb;if(_0x9a444c===_0x47f8f2)break;else _0x5d98ef['push'](_0x5d98ef['shift']());}catch(_0x540f7e){_0x5d98ef['push'](_0x5d98ef['shift']());}}}(a147_0x1de4,0x78092));function a147_0x1de4(){const _0x1c5267=['6xTxPbe','944340QUxnUR','update','1393448eFzstF','120bGphNr','203799RXDqpe','7259560ABwyHf','md5','12pDxsNN','271076xxLSkr','622701RTNuzO','6XGYHCa','digest','13073148MuSHJz'];a147_0x1de4=function(){return _0x1c5267;};return a147_0x1de4();}import{readFile}from'node:fs/promises';function a147_0x250c(_0x4c9289,_0x3ecade){_0x4c9289=_0x4c9289-0x159;const _0x1de4c7=a147_0x1de4();let _0x250c6a=_0x1de4c7[_0x4c9289];return _0x250c6a;}import a147_0x2b12c2 from'node:crypto';export function computeContentHash(_0x17ab5c){const _0x1ea63d=a147_0x250c;return a147_0x2b12c2['createHash'](_0x1ea63d(0x161))[_0x1ea63d(0x15c)](_0x17ab5c)[_0x1ea63d(0x166)]('hex');}export async function computeFileHash(_0x5d78de){const _0x5eb145=await readFile(_0x5d78de,'utf8');return computeContentHash(_0x5eb145);}
|
package/lib/core/bff/lock.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a148_0x54da(_0x1e0dd0,_0x4d0476){_0x1e0dd0=_0x1e0dd0-0x1db;const _0x337572=a148_0x3375();let _0x54da60=_0x337572[_0x1e0dd0];return _0x54da60;}(function(_0x466df2,_0x31cafe){const _0x44e6d0=a148_0x54da,_0x529400=_0x466df2();while(!![]){try{const _0x5417c3=-parseInt(_0x44e6d0(0x1eb))/0x1+-parseInt(_0x44e6d0(0x1e9))/0x2*(-parseInt(_0x44e6d0(0x1ed))/0x3)+-parseInt(_0x44e6d0(0x1de))/0x4+-parseInt(_0x44e6d0(0x1e8))/0x5*(parseInt(_0x44e6d0(0x1ea))/0x6)+-parseInt(_0x44e6d0(0x1db))/0x7+-parseInt(_0x44e6d0(0x1df))/0x8+-parseInt(_0x44e6d0(0x1ef))/0x9*(-parseInt(_0x44e6d0(0x1e4))/0xa);if(_0x5417c3===_0x31cafe)break;else _0x529400['push'](_0x529400['shift']());}catch(_0x560956){_0x529400['push'](_0x529400['shift']());}}}(a148_0x3375,0xc5b80));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a148_0x3375(){const _0x3d4815=['ENOENT','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','scriptsRoot','130TPqcEl','current\x20\x22','utf8','\x22\x20vs\x20lock\x20\x22','25hAuxUg','2056418pysHPt','722904OPDWIw','499856PQVbab',':\x20scriptsRoot\x20mismatch\x20—\x20','3ahiPsM','object','2104074vDqblK','stringify','apps','\x22.\x20','4926824gbBhZX','functions','code','4055172lEiTXG','3501360aVmVll','lastSync'];a148_0x3375=function(){return _0x3d4815;};return a148_0x3375();}export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x11bfa4,_0x4987eb,_0x121d84,_0xf3fc5e){const _0x2da4c5=a148_0x54da,_0x5d4703={'apps':_0x11bfa4[_0x2da4c5(0x1f1)]&&typeof _0x11bfa4[_0x2da4c5(0x1f1)]===_0x2da4c5(0x1ee)?_0x11bfa4[_0x2da4c5(0x1f1)]:{}};let _0x9b4f95=_0x5d4703[_0x2da4c5(0x1f1)][_0x4987eb];if(!_0x9b4f95)return _0x9b4f95={'scriptsRoot':_0x121d84,'lastSync':'','functions':{}},_0x5d4703[_0x2da4c5(0x1f1)][_0x4987eb]=_0x9b4f95,{'lockData':_0x5d4703,'appLock':_0x9b4f95};if(!_0x9b4f95[_0x2da4c5(0x1e3)])_0x9b4f95[_0x2da4c5(0x1e3)]=_0x121d84;else{if(_0x9b4f95[_0x2da4c5(0x1e3)]!==_0x121d84)throw new Error(_0xf3fc5e+_0x2da4c5(0x1ec)+(_0x2da4c5(0x1e5)+_0x121d84+_0x2da4c5(0x1e7)+_0x9b4f95[_0x2da4c5(0x1e3)]+_0x2da4c5(0x1f2))+_0x2da4c5(0x1e2));}return!_0x9b4f95['functions']&&(_0x9b4f95[_0x2da4c5(0x1dc)]={}),!_0x9b4f95[_0x2da4c5(0x1e0)]&&(_0x9b4f95[_0x2da4c5(0x1e0)]=''),{'lockData':_0x5d4703,'appLock':_0x9b4f95};}export async function readBffLockFile(_0x5f37b8){const _0x1b4bfe=a148_0x54da;try{const _0x11450f=await readFile(_0x5f37b8,_0x1b4bfe(0x1e6)),_0x575c7a=JSON['parse'](_0x11450f);return{'apps':_0x575c7a[_0x1b4bfe(0x1f1)]&&typeof _0x575c7a['apps']===_0x1b4bfe(0x1ee)?_0x575c7a[_0x1b4bfe(0x1f1)]:{}};}catch(_0x4a9ed8){if(_0x4a9ed8[_0x1b4bfe(0x1dd)]===_0x1b4bfe(0x1e1))return null;throw new Error('Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20'+String(_0x4a9ed8));}}export async function writeBffLockFile(_0x1eb58f,_0x2d911d){const _0x4ff130=a148_0x54da;await mkdir(dirname(_0x1eb58f),{'recursive':!![]}),await writeFile(_0x1eb58f,JSON[_0x4ff130(0x1f0)](_0x2d911d,null,0x2),_0x4ff130(0x1e6));}
|
package/lib/core/bff/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a150_0x2ebc(_0x56fcce,_0x32a1b1){_0x56fcce=_0x56fcce-0xd5;const _0x5b3fc3=a150_0x5b3f();let _0x2ebcdc=_0x5b3fc3[_0x56fcce];return _0x2ebcdc;}(function(_0x2c180d,_0x4ee434){const _0x55e473=a150_0x2ebc,_0x4945ef=_0x2c180d();while(!![]){try{const _0x538be8=-parseInt(_0x55e473(0xe4))/0x1*(parseInt(_0x55e473(0xd7))/0x2)+-parseInt(_0x55e473(0xdb))/0x3*(-parseInt(_0x55e473(0xde))/0x4)+-parseInt(_0x55e473(0xe5))/0x5*(-parseInt(_0x55e473(0xd8))/0x6)+parseInt(_0x55e473(0xe0))/0x7*(parseInt(_0x55e473(0xdf))/0x8)+-parseInt(_0x55e473(0xd6))/0x9+-parseInt(_0x55e473(0xe3))/0xa*(-parseInt(_0x55e473(0xea))/0xb)+-parseInt(_0x55e473(0xe1))/0xc*(parseInt(_0x55e473(0xdc))/0xd);if(_0x538be8===_0x4ee434)break;else _0x4945ef['push'](_0x4945ef['shift']());}catch(_0x533684){_0x4945ef['push'](_0x4945ef['shift']());}}}(a150_0x5b3f,0x60c8c));export function snakeToCamel(_0x50a822){const _0x278e18=a150_0x2ebc;return _0x50a822['toLowerCase']()[_0x278e18(0xd5)](/_([a-z])/g,(_0x329610,_0x52a6a6)=>_0x52a6a6['toUpperCase']());}export function findHookLocationByRemoteId(_0x191dcc,_0x36f0b9){const _0x4ee9f3=a150_0x2ebc;if(!_0x36f0b9)return undefined;for(const _0x3c3577 of Object[_0x4ee9f3(0xda)](_0x191dcc)){if(_0x3c3577[_0x4ee9f3(0xe8)]===_0x36f0b9&&_0x3c3577['datasetCode']&&_0x3c3577[_0x4ee9f3(0xe2)]&&_0x3c3577[_0x4ee9f3(0xdd)])return{'datasetCode':_0x3c3577['datasetCode'],'operationType':_0x3c3577[_0x4ee9f3(0xe2)],'functionNode':_0x3c3577[_0x4ee9f3(0xdd)]};}return undefined;}function a150_0x5b3f(){const _0x3162ab=['before','test','remoteId','toLowerCase','737JgKaAJ','after','replace','3338262lZiDZX','2ssAFiR','49782DiDkNX','trim','values','6aCeJfs','13eHvfvi','functionNode','653284XLxObc','808xqrgQB','2863AEQDvw','7457124zQPRRY','operationType','52340sSkTCz','84883UCCIZk','455edXiHz'];a150_0x5b3f=function(){return _0x3162ab;};return a150_0x5b3f();}export function extractScriptDescription(_0x316979){const _0x3325af=a150_0x2ebc,_0x53bff9=_0x316979['match'](/\[\s*脚本描述\s*]\s*(.+)/);return _0x53bff9?.[0x1]?.[_0x3325af(0xd9)]()||undefined;}export function isValidBffFunctionName(_0x26b7b6){const _0x12e15b=a150_0x2ebc;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x12e15b(0xe7)](_0x26b7b6);}export function normalizeHookFunctionNode(_0x212012){const _0x4dfa92=a150_0x2ebc;if(!_0x212012)return undefined;const _0x11218c=_0x212012[_0x4dfa92(0xd9)]()[_0x4dfa92(0xe9)]();if(_0x11218c===_0x4dfa92(0xe6)||_0x11218c===_0x4dfa92(0xeb))return _0x11218c;return undefined;}
|
package/lib/core/db-resolver.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x6de5c6,_0x3864e3){const _0x1627fd=a151_0x3839,_0x15954f=_0x6de5c6();while(!![]){try{const _0x5c6fd1=parseInt(_0x1627fd(0xf0))/0x1+-parseInt(_0x1627fd(0xd4))/0x2*(parseInt(_0x1627fd(0xd6))/0x3)+parseInt(_0x1627fd(0xdb))/0x4*(parseInt(_0x1627fd(0xd9))/0x5)+parseInt(_0x1627fd(0xd3))/0x6*(parseInt(_0x1627fd(0xde))/0x7)+-parseInt(_0x1627fd(0xe4))/0x8*(parseInt(_0x1627fd(0xeb))/0x9)+parseInt(_0x1627fd(0xda))/0xa+-parseInt(_0x1627fd(0xe1))/0xb*(parseInt(_0x1627fd(0xe2))/0xc);if(_0x5c6fd1===_0x3864e3)break;else _0x15954f['push'](_0x15954f['shift']());}catch(_0x30adfd){_0x15954f['push'](_0x15954f['shift']());}}}(a151_0xdb86,0x58b36));import{listDatasets}from'../core/api-client.js';const cache=new Map();function a151_0xdb86(){const _0x1e86fd=['5cZbeNk','2830250BIoJim','764268MmSzDE','dbId','set','4102lMLTYW','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','.\x20Be\x20more\x20specific.','483560lhMQdl','192dwgERe','dbName','3448zYnzBE','filter','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','map','dbtableConfig','\x22\x20under\x20app\x20\x22','No\x20linked\x20databases\x20found\x20under\x20app\x20\x22','6345NiCupJ','get','length','toLowerCase','isNaN','481039sJOcNS','No\x20database\x20matching\x20\x22','6948XEAjWU','75196aTslaE','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','21ducWLI','find','\x22\x20matches\x20multiple\x20databases:\x20'];a151_0xdb86=function(){return _0x1e86fd;};return a151_0xdb86();}export async function listDatabases(_0x545f56){const _0x2c2845=a151_0x3839;if(cache['has'](_0x545f56))return cache[_0x2c2845(0xec)](_0x545f56);const _0x51f99c=await listDatasets(_0x545f56),_0xd5b179=new Map();for(const _0xc37130 of _0x51f99c){const _0x2f85e5=_0xc37130[_0x2c2845(0xe8)];_0x2f85e5?.['dbId']!=null&&_0xd5b179[_0x2c2845(0xdd)](_0x2f85e5[_0x2c2845(0xdc)],_0x2f85e5['dbName']??'db-'+_0x2f85e5[_0x2c2845(0xdc)]);}const _0x10180e=[..._0xd5b179['entries']()][_0x2c2845(0xe7)](([_0x553b31,_0x7c507c])=>({'dbId':_0x553b31,'dbName':_0x7c507c}));return cache[_0x2c2845(0xdd)](_0x545f56,_0x10180e),_0x10180e;}export async function resolveDb(_0x1b5768,_0x45149d){const _0x584c5c=a151_0x3839,_0x3d853a=await listDatabases(_0x1b5768);if(_0x3d853a[_0x584c5c(0xed)]===0x0)return{'resolved':[],'error':_0x584c5c(0xea)+_0x1b5768+_0x584c5c(0xd5)};if(!_0x45149d)return{'resolved':_0x3d853a};const _0x34b1cf=Number(_0x45149d);if(!Number[_0x584c5c(0xef)](_0x34b1cf)){const _0x230dcd=_0x3d853a[_0x584c5c(0xd7)](_0x4eb9ac=>_0x4eb9ac[_0x584c5c(0xdc)]===_0x34b1cf);if(_0x230dcd)return{'resolved':[_0x230dcd]};}const _0x18c0ba=_0x45149d[_0x584c5c(0xee)](),_0xa2d1e7=_0x3d853a[_0x584c5c(0xe5)](_0x3d7e85=>_0x3d7e85[_0x584c5c(0xe3)]['toLowerCase']()['includes'](_0x18c0ba));if(_0xa2d1e7[_0x584c5c(0xed)]>0x0)return{'resolved':_0xa2d1e7};const _0x5ba6bf=_0x3d853a[_0x584c5c(0xe7)](_0x5efd31=>_0x5efd31[_0x584c5c(0xe3)]+'\x20('+_0x5efd31[_0x584c5c(0xdc)]+')')['join'](',\x20');return{'resolved':[],'error':_0x584c5c(0xf1)+_0x45149d+_0x584c5c(0xe9)+_0x1b5768+'\x22.\x20Available:\x20'+_0x5ba6bf+_0x584c5c(0xdf)};}function a151_0x3839(_0x21c50d,_0x27e4cd){_0x21c50d=_0x21c50d-0xd3;const _0xdb86bd=a151_0xdb86();let _0x3839ac=_0xdb86bd[_0x21c50d];return _0x3839ac;}export async function resolveOneDb(_0x2b1431,_0x58f5e4){const _0x2e975c=a151_0x3839,{resolved:_0x52f4ad,error:_0x53a09c}=await resolveDb(_0x2b1431,_0x58f5e4);if(_0x53a09c)return{'db':null,'error':_0x53a09c};if(_0x52f4ad['length']===0x1)return{'db':_0x52f4ad[0x0]};if(!_0x58f5e4){const _0x5f2b87=_0x52f4ad[_0x2e975c(0xe7)](_0x3eaac1=>_0x3eaac1[_0x2e975c(0xe3)]+'\x20('+_0x3eaac1[_0x2e975c(0xdc)]+')')['join'](',\x20');return{'db':null,'error':_0x2e975c(0xe6)+_0x5f2b87};}const _0x119a40=_0x52f4ad[_0x2e975c(0xe7)](_0x159758=>_0x159758[_0x2e975c(0xe3)]+'\x20('+_0x159758['dbId']+')')['join'](',\x20');return{'db':null,'error':'\x22'+_0x58f5e4+_0x2e975c(0xd8)+_0x119a40+_0x2e975c(0xe0)};}export async function getDbName(_0xa461a9,_0xcb651){const _0x10d945=a151_0x3839,_0x4833ad=await listDatabases(_0xa461a9);return _0x4833ad['find'](_0x3847e8=>_0x3847e8['dbId']===_0xcb651)?.[_0x10d945(0xe3)];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a152_0x3bb178=a152_0x4976;(function(_0x817011,_0x16cfda){const _0xe41aa=a152_0x4976,_0x22ad7a=_0x817011();while(!![]){try{const _0x2e5469=parseInt(_0xe41aa(0xfa))/0x1+-parseInt(_0xe41aa(0x100))/0x2*(parseInt(_0xe41aa(0xff))/0x3)+-parseInt(_0xe41aa(0x101))/0x4*(parseInt(_0xe41aa(0xef))/0x5)+parseInt(_0xe41aa(0xf4))/0x6+-parseInt(_0xe41aa(0xf1))/0x7+-parseInt(_0xe41aa(0xf3))/0x8*(parseInt(_0xe41aa(0xf8))/0x9)+parseInt(_0xe41aa(0xfc))/0xa*(parseInt(_0xe41aa(0xfd))/0xb);if(_0x2e5469===_0x16cfda)break;else _0x22ad7a['push'](_0x22ad7a['shift']());}catch(_0x4ca93b){_0x22ad7a['push'](_0x22ad7a['shift']());}}}(a152_0x5653,0x6fcab));import{constants}from'node:fs';import{access,mkdir}from'node:fs/promises';function a152_0x5653(){const _0x44a977=['cwd','9681610pjoKdx','11LsrjNF','F_OK','243lRVecy','16586oPeFXf','144716bxsbQw','5sGuXhf','page','1910328kdnvnZ','page.lock.json','400392HRvYEB','3069324TPaQfZ','appPagesDir','.rabetbase','toUpperCase','117pRdOhV','.json','609637kmSSsj'];a152_0x5653=function(){return _0x44a977;};return a152_0x5653();}import{dirname,join,resolve}from'node:path';export function loadPageProjectConfig(_0x26b0c7,_0x46d765=process[a152_0x3bb178(0xfb)]()){const _0x1b78c8=a152_0x3bb178,_0x4fd62f=resolve(_0x46d765),_0x56ba73=join(_0x4fd62f,_0x1b78c8(0xf6),_0x1b78c8(0xf0));return{'projectRoot':_0x4fd62f,'pagesBaseDir':_0x56ba73,'appPagesDir':join(_0x56ba73,_0x26b0c7),'lockFilePath':join(_0x4fd62f,_0x1b78c8(0xf6),_0x1b78c8(0xf2))};}export function buildPageFileName(_0x44686a,_0x3a37f2){const _0x8792df=a152_0x3bb178;return _0x44686a+'-'+String(_0x3a37f2)[_0x8792df(0xf7)]()+_0x8792df(0xf9);}export function resolvePageFilePath(_0x3bcb85,_0x391aee,_0x417d6b){const _0x80472c=a152_0x3bb178;return join(_0x3bcb85[_0x80472c(0xf5)],buildPageFileName(_0x391aee,_0x417d6b));}export async function ensureParentDirectory(_0x441be2){await mkdir(dirname(_0x441be2),{'recursive':!![]});}function a152_0x4976(_0x36022,_0x531926){_0x36022=_0x36022-0xef;const _0x5653b5=a152_0x5653();let _0x497690=_0x5653b5[_0x36022];return _0x497690;}export async function fileExists(_0x51ff0c){const _0x47adc2=a152_0x3bb178;try{return await access(_0x51ff0c,constants[_0x47adc2(0xfe)]),!![];}catch{return![];}}
|
package/lib/core/page/hash.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2cffef,_0x5a0371){const _0x3653ec=a153_0x43e5,_0x5c5911=_0x2cffef();while(!![]){try{const _0x4d9f15=-parseInt(_0x3653ec(0xfa))/0x1+-parseInt(_0x3653ec(0xee))/0x2+-parseInt(_0x3653ec(0xf2))/0x3+-parseInt(_0x3653ec(0xf5))/0x4+parseInt(_0x3653ec(0xef))/0x5+parseInt(_0x3653ec(0xf7))/0x6+parseInt(_0x3653ec(0xf9))/0x7*(parseInt(_0x3653ec(0xf1))/0x8);if(_0x4d9f15===_0x5a0371)break;else _0x5c5911['push'](_0x5c5911['shift']());}catch(_0x11ed30){_0x5c5911['push'](_0x5c5911['shift']());}}}(a153_0x2f67,0x67be1));import a153_0x348c8c from'node:crypto';import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0x49141a){const _0x45b570=a153_0x43e5;return JSON[_0x45b570(0xed)](JSON[_0x45b570(0xf3)](_0x49141a),null,0x2)+'\x0a';}export function computePageContentHash(_0x13143e){const _0x559f71=a153_0x43e5;return a153_0x348c8c['createHash'](_0x559f71(0xf8))['update'](_0x13143e)[_0x559f71(0xf0)](_0x559f71(0xf4));}function a153_0x43e5(_0x1969a4,_0x252c72){_0x1969a4=_0x1969a4-0xed;const _0x2f6737=a153_0x2f67();let _0x43e5ef=_0x2f6737[_0x1969a4];return _0x43e5ef;}export function computeSerializedSchemaHash(_0x37444e){return computePageContentHash(serializePageSchemaForFile(_0x37444e));}function a153_0x2f67(){const _0x2af9e3=['2128710AKuQzg','md5','33271DBfjad','579790YhtvWh','stringify','1211926UlyzTa','655810RFIsfb','digest','2776edjKzS','479751ycNPiQ','parse','hex','1458556lmvQWW','utf8'];a153_0x2f67=function(){return _0x2af9e3;};return a153_0x2f67();}export async function computePageFileHash(_0x2742d8){const _0x323eda=a153_0x43e5,_0x4f7528=await readFile(_0x2742d8,_0x323eda(0xf6));return computePageContentHash(_0x4f7528);}
|
package/lib/core/page/lock.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2dec23,_0x5b08ea){const _0x11b7cd=a154_0x24ad,_0x4ba0ba=_0x2dec23();while(!![]){try{const _0x35c913=parseInt(_0x11b7cd(0xa7))/0x1+parseInt(_0x11b7cd(0xa9))/0x2+parseInt(_0x11b7cd(0xa5))/0x3+-parseInt(_0x11b7cd(0xb2))/0x4+parseInt(_0x11b7cd(0xa4))/0x5+-parseInt(_0x11b7cd(0xae))/0x6*(parseInt(_0x11b7cd(0xa8))/0x7)+parseInt(_0x11b7cd(0xa3))/0x8*(-parseInt(_0x11b7cd(0xa2))/0x9);if(_0x35c913===_0x5b08ea)break;else _0x4ba0ba['push'](_0x4ba0ba['shift']());}catch(_0x4e607f){_0x4ba0ba['push'](_0x4ba0ba['shift']());}}}(a154_0x2e69,0x86cf1));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyPageLock(){return{'apps':{}};}export function ensurePageLockScope(_0x59684c,_0x280b55){const _0x2dda85=a154_0x24ad,_0x5965bc={'apps':_0x59684c[_0x2dda85(0xad)]&&typeof _0x59684c[_0x2dda85(0xad)]===_0x2dda85(0xa6)?_0x59684c[_0x2dda85(0xad)]:{}};let _0x2590f1=_0x5965bc[_0x2dda85(0xad)][_0x280b55];if(!_0x2590f1)return _0x2590f1={'lastSync':'','pages':{}},_0x5965bc['apps'][_0x280b55]=_0x2590f1,{'lockData':_0x5965bc,'appLock':_0x2590f1};return!_0x2590f1['lastSync']&&(_0x2590f1['lastSync']=''),(!_0x2590f1[_0x2dda85(0xaa)]||typeof _0x2590f1[_0x2dda85(0xaa)]!==_0x2dda85(0xa6))&&(_0x2590f1[_0x2dda85(0xaa)]={}),{'lockData':_0x5965bc,'appLock':_0x2590f1};}export async function readPageLockFile(_0x1446e7){const _0x31c38a=a154_0x24ad;try{const _0x42a037=await readFile(_0x1446e7,_0x31c38a(0xb1)),_0x5de49a=JSON['parse'](_0x42a037);return{'apps':_0x5de49a[_0x31c38a(0xad)]&&typeof _0x5de49a[_0x31c38a(0xad)]===_0x31c38a(0xa6)?_0x5de49a[_0x31c38a(0xad)]:{}};}catch(_0x2cc8a6){if(_0x2cc8a6[_0x31c38a(0xab)]===_0x31c38a(0xac))return null;throw new Error(_0x31c38a(0xaf)+String(_0x2cc8a6));}}function a154_0x2e69(){const _0x3f9143=['1507600BSFioW','pages','code','ENOENT','apps','3190734YqytpI','Failed\x20to\x20read\x20page\x20lock\x20file:\x20','stringify','utf8','1511196jwkCDU','17390034BLAayo','8uWYxhu','4680965DUtGhR','1861365fHlGeb','object','1083543mlPBsd','7VvAhYG'];a154_0x2e69=function(){return _0x3f9143;};return a154_0x2e69();}function a154_0x24ad(_0x41de67,_0x4a8bc4){_0x41de67=_0x41de67-0xa2;const _0x2e695c=a154_0x2e69();let _0x24adb5=_0x2e695c[_0x41de67];return _0x24adb5;}export async function writePageLockFile(_0x46ea35,_0x467c2e){const _0x50eec2=a154_0x24ad;await mkdir(dirname(_0x46ea35),{'recursive':!![]}),await writeFile(_0x46ea35,JSON[_0x50eec2(0xb0)](_0x467c2e,null,0x2),_0x50eec2(0xb1));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a156_0x5d47fe=a156_0x4ef1;(function(_0x42a6c6,_0x171e24){const _0x4a8455=a156_0x4ef1,_0xeb7ad4=_0x42a6c6();while(!![]){try{const _0x3d4759=parseInt(_0x4a8455(0xf2))/0x1+-parseInt(_0x4a8455(0xf8))/0x2+parseInt(_0x4a8455(0xf7))/0x3+parseInt(_0x4a8455(0xef))/0x4+parseInt(_0x4a8455(0xf0))/0x5*(parseInt(_0x4a8455(0xf9))/0x6)+parseInt(_0x4a8455(0xfc))/0x7*(parseInt(_0x4a8455(0xf3))/0x8)+parseInt(_0x4a8455(0xf5))/0x9*(-parseInt(_0x4a8455(0xfa))/0xa);if(_0x3d4759===_0x171e24)break;else _0xeb7ad4['push'](_0xeb7ad4['shift']());}catch(_0x289c84){_0xeb7ad4['push'](_0xeb7ad4['shift']());}}}(a156_0x1863,0xafdf9));function a156_0x4ef1(_0x2e9ea1,_0x4ca6d3){_0x2e9ea1=_0x2e9ea1-0xef;const _0x1863da=a156_0x1863();let _0x4ef1a9=_0x1863da[_0x2e9ea1];return _0x4ef1a9;}import{resolve}from'node:path';function a156_0x1863(){const _0x2cf8df=['2815340uiiXDD','6449514YYALEU','10RxyAHe','/sql','244769zPfVvj','sql-trash','2396300lewiBv','5bYUAXO','sql','1361594bpNwev','136XysbQX','.rabetbase','21354561Dfrkcq','sql.lock.json','2612247EkPEtD'];a156_0x1863=function(){return _0x2cf8df;};return a156_0x1863();}import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a156_0x5d47fe(0xf4),LOCK_FILE_NAME=a156_0x5d47fe(0xf6),TRASH_DIR_NAME=a156_0x5d47fe(0xfd);export function loadSqlProjectConfig(_0x58b84b,_0x521150){const _0x2d8322=a156_0x5d47fe,_0x108c18=resolve(_0x521150??findProjectRootDirectory()),_0xb53360=DOT_DIR+_0x2d8322(0xfb),_0x17b1c8=_0xb53360+'/'+_0x58b84b;return{'projectRoot':_0x108c18,'appCode':_0x58b84b,'sqlWorkspaceRoot':_0xb53360,'sqlRoot':_0x17b1c8,'sqlRootDir':resolve(_0x108c18,DOT_DIR,_0x2d8322(0xf1),_0x58b84b),'lockFilePath':resolve(_0x108c18,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x108c18,DOT_DIR,TRASH_DIR_NAME)};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a157_0x49e5(_0x40a64a,_0x46441b){_0x40a64a=_0x40a64a-0xb5;const _0x1eb09c=a157_0x1eb0();let _0x49e5aa=_0x1eb09c[_0x40a64a];return _0x49e5aa;}(function(_0x5e263c,_0x1f07e8){const _0x5760b2=a157_0x49e5,_0x540840=_0x5e263c();while(!![]){try{const _0x4ed356=parseInt(_0x5760b2(0xc1))/0x1*(parseInt(_0x5760b2(0xc7))/0x2)+-parseInt(_0x5760b2(0xb7))/0x3+parseInt(_0x5760b2(0xc2))/0x4+-parseInt(_0x5760b2(0xcb))/0x5+parseInt(_0x5760b2(0xbd))/0x6+-parseInt(_0x5760b2(0xbb))/0x7*(parseInt(_0x5760b2(0xb5))/0x8)+parseInt(_0x5760b2(0xcd))/0x9*(parseInt(_0x5760b2(0xc9))/0xa);if(_0x4ed356===_0x1f07e8)break;else _0x540840['push'](_0x540840['shift']());}catch(_0x4a3ab9){_0x540840['push'](_0x540840['shift']());}}}(a157_0x1eb0,0x688e5));function a157_0x1eb0(){const _0x4b89fb=['split','.sql','33848BXwcVW','isDirectory','1145907PfkxVP','test','sqlRootDir','sql','1043kZUHjM','toLowerCase','4874142kbSaFu','dbName','slice','dbId','47iRTrCR','1518752dVbFMd','sqlCode','length','isFile','filter','29362exMDik','push','1061260lfGAqA','mode','2737645EZRuTw','name','9eKxvCo','mybatisXml','.xml','replace','sqlName'];a157_0x1eb0=function(){return _0x4b89fb;};return a157_0x1eb0();}import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x24ee74){const _0x37d740=a157_0x49e5;if(_0x24ee74===_0x37d740(0xd3))return _0x37d740(0xba);if(_0x24ee74===_0x37d740(0xcf))return _0x37d740(0xce);return undefined;}async function scanSqlFilesRecursively(_0xcf09d4,_0x2e450f){const _0x1a912d=a157_0x49e5,_0x387b79=[];try{const _0x533558=await readdir(_0xcf09d4,{'withFileTypes':!![]});for(const _0x29489b of _0x533558){const _0x5a7cb7=join(_0xcf09d4,_0x29489b[_0x1a912d(0xcc)]);if(_0x29489b[_0x1a912d(0xb6)]()){_0x387b79[_0x1a912d(0xc8)](...await scanSqlFilesRecursively(_0x5a7cb7,_0x2e450f));continue;}if(!_0x29489b[_0x1a912d(0xc5)]())continue;const _0x145a3e=extname(_0x29489b[_0x1a912d(0xcc)])[_0x1a912d(0xbc)](),_0x250dcf=extensionToMode(_0x145a3e);if(!_0x250dcf)continue;const _0x4a9b42=relative(_0x2e450f,_0x5a7cb7)[_0x1a912d(0xd0)](/\\/g,'/'),_0x3fa08e=_0x4a9b42[_0x1a912d(0xd2)]('/')[_0x1a912d(0xc6)](Boolean),_0x7c1a06=parseSqlPath(_0x3fa08e,_0x29489b[_0x1a912d(0xcc)],_0x145a3e);if(!_0x7c1a06)continue;_0x387b79[_0x1a912d(0xc8)]({'sqlCode':_0x7c1a06[_0x1a912d(0xc3)],'sqlName':_0x7c1a06[_0x1a912d(0xd1)],'dbDirectory':_0x3fa08e[0x0],'filePath':_0x5a7cb7,'relativePath':_0x4a9b42,'lockKey':_0x7c1a06[_0x1a912d(0xc3)],'mode':_0x250dcf});}}catch(_0xa06e08){if(_0xa06e08['code']!=='ENOENT')throw _0xa06e08;}return _0x387b79;}export async function scanLocalSqlQueries(_0x3a09cb){return scanSqlFilesRecursively(_0x3a09cb['sqlRootDir'],_0x3a09cb['sqlRootDir']);}export function resolveLocalSqlFilePath(_0x372f9e,_0x29a86b,_0x3bad3d){const _0x574b4a=a157_0x49e5,_0x2a8ce4=_0x3bad3d?.['path']||(_0x3bad3d?.['sqlName']||_0x3bad3d?.[_0x574b4a(0xbe)]?buildSqlRelativePath(_0x29a86b,_0x3bad3d?.[_0x574b4a(0xd1)],_0x3bad3d?.['dbName'],_0x3bad3d?.[_0x574b4a(0xca)]||_0x574b4a(0xba),_0x3bad3d?.[_0x574b4a(0xc0)]):buildDefaultSqlFileName(_0x29a86b,_0x3bad3d?.['mode']||'sql'));return join(_0x372f9e[_0x574b4a(0xb9)],_0x2a8ce4);}export async function directoryExists(_0x124c3d){try{const _0x481dbc=await stat(_0x124c3d);return _0x481dbc['isDirectory']();}catch{return![];}}function parseSqlPath(_0x1bc33a,_0x4bda22,_0x480b3f){const _0x30ae74=a157_0x49e5,_0x1e17dd=_0x4bda22['slice'](0x0,-_0x480b3f[_0x30ae74(0xc4)]);if(_0x1bc33a[_0x30ae74(0xc4)]<0x2)return null;const _0x21884b=_0x1e17dd['indexOf']('_');if(_0x21884b<=0x0||_0x21884b>=_0x1e17dd[_0x30ae74(0xc4)]-0x1)return null;const _0x2a6da5=_0x1e17dd[_0x30ae74(0xbf)](0x0,_0x21884b);if(!isLikelySqlCode(_0x2a6da5))return null;return{'sqlCode':_0x2a6da5,'sqlName':_0x1e17dd[_0x30ae74(0xbf)](_0x21884b+0x1)};}function isLikelySqlCode(_0x582097){const _0x245121=a157_0x49e5;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x245121(0xb8)](_0x582097);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x34e847,_0x272f3f){const _0x13f7d3=a158_0x30c5,_0x351678=_0x34e847();while(!![]){try{const _0x5b467d=-parseInt(_0x13f7d3(0x111))/0x1*(-parseInt(_0x13f7d3(0x103))/0x2)+-parseInt(_0x13f7d3(0x10f))/0x3*(-parseInt(_0x13f7d3(0x107))/0x4)+parseInt(_0x13f7d3(0x10c))/0x5*(parseInt(_0x13f7d3(0x106))/0x6)+parseInt(_0x13f7d3(0x10a))/0x7*(parseInt(_0x13f7d3(0x101))/0x8)+-parseInt(_0x13f7d3(0x10b))/0x9+parseInt(_0x13f7d3(0x108))/0xa*(-parseInt(_0x13f7d3(0x110))/0xb)+-parseInt(_0x13f7d3(0x10e))/0xc;if(_0x5b467d===_0x272f3f)break;else _0x351678['push'](_0x351678['shift']());}catch(_0x1ec25c){_0x351678['push'](_0x351678['shift']());}}}(a158_0x2a0a,0x20326));import{readFile}from'node:fs/promises';import a158_0x52a1fa from'node:crypto';function a158_0x2a0a(){const _0x5c0c9c=['149374SPXFqs','update','md5','1312764VCCiRl','4QYfZXL','10LwdUjf','hex','7jdStyJ','28683TmokEf','5SgSCdn','utf8','2947152zqHKCs','600045rWVCDq','2450723DveSeJ','1PidOgt','digest','879664kjbUpc','createHash'];a158_0x2a0a=function(){return _0x5c0c9c;};return a158_0x2a0a();}export function computeSqlContentHash(_0x247db3){const _0x11b200=a158_0x30c5;return a158_0x52a1fa[_0x11b200(0x102)](_0x11b200(0x105))[_0x11b200(0x104)](_0x247db3)[_0x11b200(0x112)](_0x11b200(0x109));}function a158_0x30c5(_0x38ac79,_0x4a6ee2){_0x38ac79=_0x38ac79-0x101;const _0x2a0ab3=a158_0x2a0a();let _0x30c522=_0x2a0ab3[_0x38ac79];return _0x30c522;}export async function computeSqlFileHash(_0x28e3e4){const _0x5f535f=a158_0x30c5,_0x2190d4=await readFile(_0x28e3e4,_0x5f535f(0x10d));return computeSqlContentHash(_0x2190d4);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x17e704,_0xf7fe3b){const _0x2e3046=a159_0x3d82,_0x1e6497=_0x17e704();while(!![]){try{const _0x274859=-parseInt(_0x2e3046(0x19f))/0x1+parseInt(_0x2e3046(0x1ae))/0x2*(parseInt(_0x2e3046(0x19d))/0x3)+parseInt(_0x2e3046(0x1a9))/0x4+parseInt(_0x2e3046(0x19e))/0x5+-parseInt(_0x2e3046(0x1a1))/0x6*(parseInt(_0x2e3046(0x1a7))/0x7)+-parseInt(_0x2e3046(0x1ab))/0x8*(parseInt(_0x2e3046(0x1ad))/0x9)+parseInt(_0x2e3046(0x1a5))/0xa*(parseInt(_0x2e3046(0x1a8))/0xb);if(_0x274859===_0xf7fe3b)break;else _0x1e6497['push'](_0x1e6497['shift']());}catch(_0x401539){_0x1e6497['push'](_0x1e6497['shift']());}}}(a159_0x2b70,0x42563));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}function a159_0x2b70(){const _0xaf3df=['Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','parse','17610QRcKnS','lastSync','81970HfHaFR','2596zlhgXl','345568CVdQvD','stringify','17928wVJUox','apps','657MkCizM','280954zAJbyt','\x22.\x20','utf8','sqlRoot','6vJcvEC','1644565DPaQkz','477477WwmmsH','sqls','102bBpQAG',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22'];a159_0x2b70=function(){return _0xaf3df;};return a159_0x2b70();}export function ensureSqlLockScope(_0x8ed11f,_0x510c17,_0x46b64a,_0x16eea8){const _0x24ed65=a159_0x3d82,_0x22f145=_0x8ed11f??createEmptySqlLock();let _0x1a3bb0=_0x22f145[_0x24ed65(0x1ac)][_0x510c17];if(!_0x1a3bb0)return _0x1a3bb0={'sqlRoot':_0x46b64a,'lastSync':'','sqls':{}},_0x22f145[_0x24ed65(0x1ac)][_0x510c17]=_0x1a3bb0,{'lockData':_0x22f145,'appLock':_0x1a3bb0};if(!_0x1a3bb0[_0x24ed65(0x19c)])_0x1a3bb0[_0x24ed65(0x19c)]=_0x46b64a;else{if(_0x1a3bb0['sqlRoot']!==_0x46b64a)throw new Error(_0x16eea8+_0x24ed65(0x1a2)+_0x46b64a+'\x22\x20vs\x20lock\x20\x22'+_0x1a3bb0[_0x24ed65(0x19c)]+_0x24ed65(0x1af)+_0x24ed65(0x1a3));}return!_0x1a3bb0[_0x24ed65(0x1a0)]&&(_0x1a3bb0[_0x24ed65(0x1a0)]={}),!_0x1a3bb0[_0x24ed65(0x1a6)]&&(_0x1a3bb0[_0x24ed65(0x1a6)]=''),{'lockData':_0x22f145,'appLock':_0x1a3bb0};}function a159_0x3d82(_0x3a6e26,_0x37e7c0){_0x3a6e26=_0x3a6e26-0x19b;const _0x2b7029=a159_0x2b70();let _0x3d820e=_0x2b7029[_0x3a6e26];return _0x3d820e;}export async function readSqlLockFile(_0x30f92b){const _0x3b1e6b=a159_0x3d82;try{const _0x5c4a17=await readFile(_0x30f92b,'utf8');return JSON[_0x3b1e6b(0x1a4)](_0x5c4a17);}catch(_0x4cd0a7){if(_0x4cd0a7['code']==='ENOENT')return null;throw new Error('Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20'+String(_0x4cd0a7));}}export async function writeSqlLockFile(_0x5d5f43,_0x1cfbab){const _0x275cfb=a159_0x3d82;await mkdir(dirname(_0x5d5f43),{'recursive':!![]}),await writeFile(_0x5d5f43,JSON[_0x275cfb(0x1aa)](_0x1cfbab,null,0x2),_0x275cfb(0x19b));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a161_0x5a67(_0x4d6287,_0x278e0e){_0x4d6287=_0x4d6287-0x10f;const _0x43396f=a161_0x4339();let _0x5a6733=_0x43396f[_0x4d6287];return _0x5a6733;}(function(_0x7ea224,_0x492763){const _0x27485e=a161_0x5a67,_0x372955=_0x7ea224();while(!![]){try{const _0x46a9d4=-parseInt(_0x27485e(0x11a))/0x1+parseInt(_0x27485e(0x11c))/0x2+parseInt(_0x27485e(0x119))/0x3*(parseInt(_0x27485e(0x10f))/0x4)+-parseInt(_0x27485e(0x110))/0x5+parseInt(_0x27485e(0x113))/0x6+parseInt(_0x27485e(0x116))/0x7+-parseInt(_0x27485e(0x114))/0x8*(-parseInt(_0x27485e(0x11d))/0x9);if(_0x46a9d4===_0x492763)break;else _0x372955['push'](_0x372955['shift']());}catch(_0x33f7ac){_0x372955['push'](_0x372955['shift']());}}}(a161_0x4339,0x5526b));export function detectSqlMode(_0x4566dd){const _0x2ecf21=a161_0x5a67,_0x4101e3=_0x4566dd[_0x2ecf21(0x11b)]();if(/^<(select|insert|update|delete)\b/i['test'](_0x4101e3))return'mybatisXml';return _0x2ecf21(0x111);}export function getSqlFileExtension(_0x2e8fb5){const _0x15134b=a161_0x5a67;return _0x2e8fb5==='mybatisXml'?_0x15134b(0x118):_0x15134b(0x112);}export function buildDefaultSqlFileName(_0x3f5976,_0x45adb3){return''+_0x3f5976+getSqlFileExtension(_0x45adb3);}export function sanitizeSqlPathSegment(_0x4f30c6,_0xa7eeef){const _0x5bf209=a161_0x5a67,_0xe46f81=String(_0x4f30c6??'')[_0x5bf209(0x117)](),_0xf5d910=_0xe46f81[_0x5bf209(0x115)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x5bf209(0x115)](/\s+/g,'-')['replace'](/-+/g,'-')['replace'](/^\.+/,'')['replace'](/\.+$/,'')[_0x5bf209(0x115)](/^-+/,'')[_0x5bf209(0x115)](/-+$/,'');return _0xf5d910||_0xa7eeef;}function a161_0x4339(){const _0x32ad29=['2442625yNdvFA','sql','.sql','1400304McWutU','411904faGKHD','replace','755643sUMbdq','trim','.xml','3dvXOxC','29749vJXQyt','trimStart','257400VGVqzY','36rtCkWL','unknown-sql','764272HKFlOk'];a161_0x4339=function(){return _0x32ad29;};return a161_0x4339();}export function buildDbDirectoryName(_0x4099f8,_0x1609bc){return sanitizeSqlPathSegment(_0x4099f8,_0x1609bc!=null?'db-'+_0x1609bc:'unknown-db');}export function buildSqlRelativePath(_0x21e02e,_0x4a29eb,_0x41dbec,_0x3e62b1,_0x153d1b){const _0x179d64=a161_0x5a67,_0xae86c0=buildDbDirectoryName(_0x41dbec,_0x153d1b),_0x39dfd3=sanitizeSqlPathSegment(_0x21e02e,_0x179d64(0x11e)),_0xb07cd8=sanitizeSqlPathSegment(_0x4a29eb,_0x39dfd3);return _0xae86c0+'/'+_0x39dfd3+'_'+_0xb07cd8+getSqlFileExtension(_0x3e62b1);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x387d5e,_0x3be06c){const _0x840d20=a162_0x1d25,_0x228323=_0x387d5e();while(!![]){try{const _0x33c712=parseInt(_0x840d20(0x1be))/0x1+-parseInt(_0x840d20(0x1c1))/0x2*(parseInt(_0x840d20(0x1c7))/0x3)+parseInt(_0x840d20(0x1db))/0x4+-parseInt(_0x840d20(0x1dd))/0x5*(parseInt(_0x840d20(0x1cc))/0x6)+-parseInt(_0x840d20(0x1d7))/0x7+-parseInt(_0x840d20(0x1d1))/0x8+parseInt(_0x840d20(0x1dc))/0x9;if(_0x33c712===_0x3be06c)break;else _0x228323['push'](_0x228323['shift']());}catch(_0x78c3d){_0x228323['push'](_0x228323['shift']());}}}(a162_0xc50d,0x38fd9));export function detectSqlType(_0x436d81){const _0x31941f=a162_0x1d25;if(!_0x436d81?.[_0x31941f(0x1ba)]())return{'type':_0x31941f(0x1ce),'isSelectOnly':![],'isDangerous':![],'reason':'SQL\x20content\x20is\x20empty'};const _0x56f689=_0x436d81['replace'](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x31941f(0x1d8)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x31941f(0x1d8)](/\/\*[\s\S]*?\*\//g,'')[_0x31941f(0x1ba)](),_0xa96eb6=_0x56f689[_0x31941f(0x1c9)]('\x0a');let _0x258efb='';for(const _0x528f61 of _0xa96eb6){const _0x278d43=_0x528f61['trim']();if(!_0x278d43||_0x278d43['startsWith']('--')||_0x278d43[_0x31941f(0x1b8)]('/*'))continue;_0x258efb=_0x278d43;break;}const _0x1b322c=_0x258efb[_0x31941f(0x1c4)]();if(_0x1b322c[_0x31941f(0x1b8)](_0x31941f(0x1d2))||_0x1b322c[_0x31941f(0x1b8)](_0x31941f(0x1ca))){const _0x4eb3a1=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x31941f(0x1d4)](_0x56f689);return{'type':_0x31941f(0x1d2),'isSelectOnly':!_0x4eb3a1,'isDangerous':_0x4eb3a1,'reason':_0x4eb3a1?_0x31941f(0x1c3):undefined};}if(_0x1b322c[_0x31941f(0x1b8)](_0x31941f(0x1d9)))return{'type':_0x31941f(0x1d9),'isSelectOnly':![],'isDangerous':![]};if(_0x1b322c[_0x31941f(0x1b8)](_0x31941f(0x1d6)))return{'type':_0x31941f(0x1d6),'isSelectOnly':![],'isDangerous':![]};if(_0x1b322c[_0x31941f(0x1b8)](_0x31941f(0x1bd)))return{'type':'DELETE','isSelectOnly':![],'isDangerous':!![],'reason':_0x31941f(0x1bb)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x31941f(0x1d4)](_0x1b322c))return{'type':_0x31941f(0x1cb),'isSelectOnly':![],'isDangerous':!![],'reason':_0x31941f(0x1c2)};return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x404698){const _0x394c5e=a162_0x1d25,_0x4792be=_0x404698[_0x394c5e(0x1d8)](/#\{[^}]*\}/g,'?')[_0x394c5e(0x1d8)](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')['replace'](/--.*$/gm,'')[_0x394c5e(0x1d8)](/\/\*[\s\S]*?\*\//g,''),_0x16b82d=[],_0x2bc285=_0x4792be['match'](/FROM\s+([^\s,)(]+)/i);if(_0x2bc285?.[0x1])_0x16b82d[_0x394c5e(0x1d3)](_0x2bc285[0x1][_0x394c5e(0x1d8)](/[`"]/g,''));for(const _0x171532 of _0x4792be[_0x394c5e(0x1c8)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x27744f=_0x171532[0x1]?.['replace'](/[`"]/g,'');if(_0x27744f&&!_0x16b82d[_0x394c5e(0x1de)](_0x27744f))_0x16b82d['push'](_0x27744f);}const _0x32d74b=_0x4792be['match'](/INTO\s+([^\s(]+)/i);if(_0x32d74b?.[0x1]){const _0xcf7300=_0x32d74b[0x1][_0x394c5e(0x1d8)](/[`"]/g,'');if(!_0x16b82d[_0x394c5e(0x1de)](_0xcf7300))_0x16b82d[_0x394c5e(0x1d3)](_0xcf7300);}const _0x590222=_0x4792be[_0x394c5e(0x1d5)](/UPDATE\s+([^\s,)(]+)/i);if(_0x590222?.[0x1]){const _0x15ef96=_0x590222[0x1]['replace'](/[`"]/g,'');if(!_0x16b82d[_0x394c5e(0x1de)](_0x15ef96))_0x16b82d['push'](_0x15ef96);}return _0x16b82d;}function extractParameters(_0x354fb0){const _0x7a23e3=a162_0x1d25,_0x5cc1e6=new Set();for(const _0x1d8ec4 of _0x354fb0[_0x7a23e3(0x1c8)](/#\{(\w+)\}/g))if(_0x1d8ec4[0x1])_0x5cc1e6[_0x7a23e3(0x1c5)](_0x1d8ec4[0x1]);for(const _0x40fcef of _0x354fb0[_0x7a23e3(0x1c8)](/\$\{(\w+)\}/g))if(_0x40fcef[0x1])_0x5cc1e6['add'](_0x40fcef[0x1]);return Array[_0x7a23e3(0x1cf)](_0x5cc1e6);}function a162_0xc50d(){const _0x778881=['from','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','1256888VcPRZf','SELECT','push','test','match','UPDATE','619234kyHlCv','replace','INSERT','length','1140588FeCczt','6057306nyjkWT','85wyLhMv','includes','startsWith','\x20query\x20targeting\x20','trim','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','isDangerous','DELETE','146211SvFtwZ','type','reason','2KZKGyh','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','toUpperCase','add','join','1025376aEUSeO','matchAll','split','WITH','DDL','100092RQMXJx','\x20with\x20parameters:\x20','UNKNOWN'];a162_0xc50d=function(){return _0x778881;};return a162_0xc50d();}function a162_0x1d25(_0xcdae35,_0x265758){_0xcdae35=_0xcdae35-0x1b8;const _0xc50dc3=a162_0xc50d();let _0x1d2526=_0xc50dc3[_0xcdae35];return _0x1d2526;}export function validateSql(_0x30b4cd){const _0x1973bf=a162_0x1d25,_0x579ec8=detectSqlType(_0x30b4cd),_0x46bb79=extractTables(_0x30b4cd),_0x246881=extractParameters(_0x30b4cd);if(_0x579ec8[_0x1973bf(0x1bc)])return{'valid':![],'sqlType':_0x579ec8,'tables':_0x46bb79,'parameters':_0x246881,'message':_0x579ec8[_0x1973bf(0x1c0)]||_0x579ec8[_0x1973bf(0x1bf)]+'\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'};if(_0x579ec8[_0x1973bf(0x1bf)]===_0x1973bf(0x1ce))return{'valid':![],'sqlType':_0x579ec8,'tables':_0x46bb79,'parameters':_0x246881,'message':_0x1973bf(0x1d0)};return{'valid':!![],'sqlType':_0x579ec8,'tables':_0x46bb79,'parameters':_0x246881,'message':_0x579ec8[_0x1973bf(0x1bf)]+_0x1973bf(0x1b9)+(_0x46bb79[_0x1973bf(0x1da)]?_0x46bb79[_0x1973bf(0x1c6)](',\x20'):'unknown\x20table(s)')+(_0x246881[_0x1973bf(0x1da)]?_0x1973bf(0x1cd)+_0x246881[_0x1973bf(0x1c6)](',\x20'):'')};}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a163_0x5dd2(_0x305521,_0x362003){_0x305521=_0x305521-0x88;const _0xa04e10=a163_0xa04e();let _0x5dd244=_0xa04e10[_0x305521];return _0x5dd244;}const a163_0x33c194=a163_0x5dd2;(function(_0x2726c3,_0x13f24e){const _0x38dd3b=a163_0x5dd2,_0x511770=_0x2726c3();while(!![]){try{const _0x4825d7=parseInt(_0x38dd3b(0x99))/0x1+-parseInt(_0x38dd3b(0x8b))/0x2*(parseInt(_0x38dd3b(0x9a))/0x3)+parseInt(_0x38dd3b(0x93))/0x4*(parseInt(_0x38dd3b(0x98))/0x5)+-parseInt(_0x38dd3b(0x90))/0x6*(-parseInt(_0x38dd3b(0x8c))/0x7)+-parseInt(_0x38dd3b(0x8f))/0x8*(parseInt(_0x38dd3b(0x8a))/0x9)+parseInt(_0x38dd3b(0x9b))/0xa+parseInt(_0x38dd3b(0x8d))/0xb*(-parseInt(_0x38dd3b(0x8e))/0xc);if(_0x4825d7===_0x13f24e)break;else _0x511770['push'](_0x511770['shift']());}catch(_0x4de50d){_0x511770['push'](_0x511770['shift']());}}}(a163_0xa04e,0xf21ba));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a163_0xa04e(){const _0x3ec1de=['16433910ZBcFkB','\x0a\x20\x20\x20\x20\x20\x20\x20','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','27756oyNuLi','54554LaYtHW','1211ATkJXd','11KAVITM','33200724icMQQZ','4064FbuihS','28068sxADZc','Run\x20`','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','108VvdiGJ','join','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','Tip:\x20`','\x20auth`\x20to\x20login\x20first.','338515CxqIqK','1180792OwAazz','15PbXhet'];a163_0xa04e=function(){return _0x3ec1de;};return a163_0xa04e();}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a163_0x33c194(0x91)+CLI_BIN_NAME+a163_0x33c194(0x97),'configMissingHint':['Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+a163_0x33c194(0x92),a163_0x33c194(0x96)+CLI_BIN_NAME+a163_0x33c194(0x89)][a163_0x33c194(0x94)](a163_0x33c194(0x88)),'notInProjectHint':a163_0x33c194(0x95)});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a164_0x3ca8(){var _0x433b7d=['310116uePgLX','941eqmLlz','379505XlptMf','705441YcMLRH','858NibSHH','1771070gmaTDy','42PbFhBh','32cJtYTw','84JHKSzU','6DMeWYB','946917RExiMN','4615565snPQLk'];a164_0x3ca8=function(){return _0x433b7d;};return a164_0x3ca8();}(function(_0x6a96de,_0x381703){var _0x363fff=a164_0x5ef2,_0x57e63a=_0x6a96de();while(!![]){try{var _0x53c6df=-parseInt(_0x363fff(0x9a))/0x1*(-parseInt(_0x363fff(0x9d))/0x2)+-parseInt(_0x363fff(0x9f))/0x3*(-parseInt(_0x363fff(0x99))/0x4)+-parseInt(_0x363fff(0x98))/0x5*(parseInt(_0x363fff(0x96))/0x6)+-parseInt(_0x363fff(0x9b))/0x7+parseInt(_0x363fff(0xa0))/0x8*(parseInt(_0x363fff(0x97))/0x9)+parseInt(_0x363fff(0x9e))/0xa+parseInt(_0x363fff(0x9c))/0xb*(-parseInt(_0x363fff(0x95))/0xc);if(_0x53c6df===_0x381703)break;else _0x57e63a['push'](_0x57e63a['shift']());}catch(_0x5717fc){_0x57e63a['push'](_0x57e63a['shift']());}}}(a164_0x3ca8,0xa1549));function a164_0x5ef2(_0x2d6be1,_0xa72627){_0x2d6be1=_0x2d6be1-0x95;var _0x3ca8f4=a164_0x3ca8();var _0x5ef2c9=_0x3ca8f4[_0x2d6be1];return _0x5ef2c9;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a164_0x485f8d}from'@lovrabet/cli-framework';export function buildAllFlags(_0x3d5dfa){return a164_0x485f8d(_0x3d5dfa,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a165_0xb2b160=a165_0x761d;(function(_0x2f5b64,_0x1d00df){const _0xdfe65a=a165_0x761d,_0xa40714=_0x2f5b64();while(!![]){try{const _0x41705c=-parseInt(_0xdfe65a(0x73))/0x1*(parseInt(_0xdfe65a(0x77))/0x2)+-parseInt(_0xdfe65a(0x7a))/0x3*(-parseInt(_0xdfe65a(0x78))/0x4)+-parseInt(_0xdfe65a(0x6f))/0x5*(-parseInt(_0xdfe65a(0x71))/0x6)+parseInt(_0xdfe65a(0x72))/0x7+-parseInt(_0xdfe65a(0x76))/0x8*(-parseInt(_0xdfe65a(0x79))/0x9)+-parseInt(_0xdfe65a(0x74))/0xa+parseInt(_0xdfe65a(0x75))/0xb*(parseInt(_0xdfe65a(0x70))/0xc);if(_0x41705c===_0x1d00df)break;else _0xa40714['push'](_0xa40714['shift']());}catch(_0x1021da){_0xa40714['push'](_0xa40714['shift']());}}}(a165_0x535b,0xcc7bf));function a165_0x535b(){const _0x2cc26c=['65956SZHqgC','441zEPnhC','177yZtSPL','validateFlags','383905mMOrJp','420aDecnd','30lRpzMa','155659vHzpdN','34giVckV','13784820eXvefO','370425JgwHPo','168456lIlZtm','80786AjjeKg'];a165_0x535b=function(){return _0x2cc26c;};return a165_0x535b();}import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];function a165_0x761d(_0x2167d1,_0x3f9a01){_0x2167d1=_0x2167d1-0x6f;const _0x535bd0=a165_0x535b();let _0x761df1=_0x535bd0[_0x2167d1];return _0x761df1;}export const validateFlags=helpers[a165_0xb2b160(0x7b)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a166_0x14ed50=a166_0x336f;(function(_0x472e2b,_0x58e92b){const _0x589e65=a166_0x336f,_0x30882e=_0x472e2b();while(!![]){try{const _0x551a67=parseInt(_0x589e65(0xb2))/0x1*(parseInt(_0x589e65(0xa6))/0x2)+-parseInt(_0x589e65(0xa4))/0x3*(-parseInt(_0x589e65(0xb0))/0x4)+parseInt(_0x589e65(0xaa))/0x5+-parseInt(_0x589e65(0xa3))/0x6*(-parseInt(_0x589e65(0xb1))/0x7)+parseInt(_0x589e65(0xab))/0x8*(parseInt(_0x589e65(0xb3))/0x9)+parseInt(_0x589e65(0xa5))/0xa+-parseInt(_0x589e65(0xa8))/0xb;if(_0x551a67===_0x58e92b)break;else _0x30882e['push'](_0x30882e['shift']());}catch(_0x50b2c0){_0x30882e['push'](_0x30882e['shift']());}}}(a166_0x3d5c,0x61cca));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';function a166_0x336f(_0x5c10b0,_0x5a409e){_0x5c10b0=_0x5c10b0-0xa3;const _0x3d5cad=a166_0x3d5c();let _0x336f8b=_0x3d5cad[_0x5c10b0];return _0x336f8b;}const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x4b4dbc=>serviceGroups[a166_0x14ed50(0xa7)](_0x4b4dbc),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+a166_0x14ed50(0xac),'serviceUsageSuffix':a166_0x14ed50(0xad),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x319f49){const _0x47ad9e=a166_0x14ed50;return generators[_0x47ad9e(0xae)](_0x319f49);}export const generateServiceHelp=generators[a166_0x14ed50(0xa9)];function a166_0x3d5c(){const _0x5091cc=['6202430ifFpXX','653192ZWPLng','get','31576017NKNLtD','generateServiceHelp','1832950mjNyDw','19528vYbQRx','\x20project\x20init`\x20or\x20--appcode).','\x20[args]\x20[flags]','generateCommandHelp','generateFullHelp','445316eisFOa','4797233INkPsI','1SFYemk','1818yxycVC','6rTqhzX','21CRposJ'];a166_0x3d5c=function(){return _0x5091cc;};return a166_0x3d5c();}export const generateFullHelp=generators[a166_0x14ed50(0xaf)];
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a167_0x187a(_0x38c9d9,_0x4a20b4){_0x38c9d9=_0x38c9d9-0xb3;var _0x22d11a=a167_0x22d1();var _0x187a54=_0x22d11a[_0x38c9d9];return _0x187a54;}(function(_0xfc2f10,_0x3f81d3){var _0x5a6273=a167_0x187a,_0x7d9668=_0xfc2f10();while(!![]){try{var _0x33d239=-parseInt(_0x5a6273(0xb7))/0x1*(-parseInt(_0x5a6273(0xb5))/0x2)+-parseInt(_0x5a6273(0xb9))/0x3+parseInt(_0x5a6273(0xbc))/0x4*(parseInt(_0x5a6273(0xb3))/0x5)+parseInt(_0x5a6273(0xb8))/0x6+parseInt(_0x5a6273(0xba))/0x7*(-parseInt(_0x5a6273(0xb6))/0x8)+-parseInt(_0x5a6273(0xbb))/0x9+-parseInt(_0x5a6273(0xbd))/0xa*(parseInt(_0x5a6273(0xb4))/0xb);if(_0x33d239===_0x3f81d3)break;else _0x7d9668['push'](_0x7d9668['shift']());}catch(_0x52e670){_0x7d9668['push'](_0x7d9668['shift']());}}}(a167_0x22d1,0x3b457));function a167_0x22d1(){var _0x4e0e3b=['92905TMWzCU','269797fZtpGQ','140254UinFQy','968KOLtmX','3XmclAe','2347860wDUmKH','600795FjmSrG','4711aOTWOD','1651509oEPxzF','44ZoOiAU','40MMRwwx'];a167_0x22d1=function(){return _0x4e0e3b;};return a167_0x22d1();}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(_0x2d63e5,_0x1a8491){const _0x277797=a168_0x3ed4,_0x1ba215=_0x2d63e5();while(!![]){try{const _0x5e2eb9=-parseInt(_0x277797(0x17d))/0x1*(-parseInt(_0x277797(0x178))/0x2)+-parseInt(_0x277797(0x176))/0x3+-parseInt(_0x277797(0x175))/0x4*(-parseInt(_0x277797(0x17b))/0x5)+parseInt(_0x277797(0x173))/0x6*(-parseInt(_0x277797(0x17a))/0x7)+-parseInt(_0x277797(0x174))/0x8*(parseInt(_0x277797(0x172))/0x9)+-parseInt(_0x277797(0x17c))/0xa+parseInt(_0x277797(0x179))/0xb;if(_0x5e2eb9===_0x1a8491)break;else _0x1ba215['push'](_0x1ba215['shift']());}catch(_0x33492a){_0x1ba215['push'](_0x1ba215['shift']());}}}(a168_0x1e36,0xcbbff));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a168_0x1e36(){const _0xeaaf48=['1796tzjEQq','3309165cJnJNt','pretty','596nWbpQt','37199976qaRUxR','476EsciCp','5345bMOVFt','13540380WygMMU','5371zriwoY','url','error','_notice','update','16407vIYmqr','51108XNWFse','6984wMTmHz'];a168_0x1e36=function(){return _0xeaaf48;};return a168_0x1e36();}function a168_0x3ed4(_0x53b24a,_0x3f7402){_0x53b24a=_0x53b24a-0x16f;const _0x1e3638=a168_0x1e36();let _0x3ed471=_0x1e3638[_0x53b24a];return _0x3ed471;}import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x4cd5b8,_0xa8eaf4){const _0xe92167=a168_0x3ed4,_0x21b132=_0x4cd5b8[_0xe92167(0x170)],{_notice:_0x29b38d,..._0x503a66}=_0x4cd5b8;void _0x29b38d,baseFormatOutput(_0x503a66,_0xa8eaf4),_0xa8eaf4['format']===_0xe92167(0x177)&&printPrettyNotice(_0x21b132);}function printPrettyNotice(_0xc0d41e){const _0x464a3d=a168_0x3ed4;if(!_0xc0d41e?.['update'])return;console[_0x464a3d(0x16f)](_0xc0d41e[_0x464a3d(0x171)]['message']+'\x20('+_0xc0d41e[_0x464a3d(0x171)][_0x464a3d(0x17e)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3b7083,_0x4d2aea){var _0x12c730=a169_0x25b9,_0xca349c=_0x3b7083();while(!![]){try{var _0x40c1f7=-parseInt(_0x12c730(0x1d1))/0x1*(parseInt(_0x12c730(0x1d0))/0x2)+parseInt(_0x12c730(0x1d4))/0x3*(parseInt(_0x12c730(0x1d2))/0x4)+-parseInt(_0x12c730(0x1ce))/0x5+parseInt(_0x12c730(0x1cd))/0x6*(parseInt(_0x12c730(0x1d7))/0x7)+-parseInt(_0x12c730(0x1cf))/0x8*(-parseInt(_0x12c730(0x1cc))/0x9)+-parseInt(_0x12c730(0x1d3))/0xa+parseInt(_0x12c730(0x1d5))/0xb*(-parseInt(_0x12c730(0x1d6))/0xc);if(_0x40c1f7===_0x4d2aea)break;else _0xca349c['push'](_0xca349c['shift']());}catch(_0x1eafb0){_0xca349c['push'](_0xca349c['shift']());}}}(a169_0x4bfe,0xb6426));function a169_0x25b9(_0x35e590,_0x198180){_0x35e590=_0x35e590-0x1cc;var _0x4bfe87=a169_0x4bfe();var _0x25b9bf=_0x4bfe87[_0x35e590];return _0x25b9bf;}function a169_0x4bfe(){var _0x25be9e=['2079ohnyNR','42zTKJuL','1739310LveiCY','39264xkYVwA','2yQtyNS','335695vItwDy','1172SClthi','5694450pdMNSx','14961tSzqNj','66jilrcR','2688120kdcNLB','748657ByPOyY'];a169_0x4bfe=function(){return _0x25be9e;};return a169_0x4bfe();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1872f7,_0x1c6e8b){const _0x29f8bb=a170_0x3093,_0x540500=_0x1872f7();while(!![]){try{const _0x4ffbf7=-parseInt(_0x29f8bb(0x191))/0x1*(-parseInt(_0x29f8bb(0x188))/0x2)+parseInt(_0x29f8bb(0x185))/0x3+-parseInt(_0x29f8bb(0x193))/0x4*(-parseInt(_0x29f8bb(0x18b))/0x5)+parseInt(_0x29f8bb(0x192))/0x6*(-parseInt(_0x29f8bb(0x183))/0x7)+-parseInt(_0x29f8bb(0x181))/0x8*(parseInt(_0x29f8bb(0x18d))/0x9)+-parseInt(_0x29f8bb(0x195))/0xa+-parseInt(_0x29f8bb(0x199))/0xb*(-parseInt(_0x29f8bb(0x186))/0xc);if(_0x4ffbf7===_0x1c6e8b)break;else _0x540500['push'](_0x540500['shift']());}catch(_0x265a94){_0x540500['push'](_0x540500['shift']());}}}(a170_0x521c,0xf172b));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a170_0x521c(){const _0x48c4b6=['alias','\x20api\x20pull`\x20first.','50104bpMEsi','type','1778nUwseC','string','440361kKPvBg','1388688ubuddN','flags','30eeOxeK','Available\x20aliases:\x20','validation','5ZkzNIw','Unknown\x20alias\x20\x22','2736HdFXgp','some','length','name','10655PXdanS','34128YIdTqu','7733216XaejDr','map','12582370pdBgby','code','join','`\x20requires\x20either\x20--code\x20or\x20--alias.','319tLKWVT'];a170_0x521c=function(){return _0x48c4b6;};return a170_0x521c();}function a170_0x3093(_0x524e09,_0x220fcd){_0x524e09=_0x524e09-0x17f;const _0x521ccc=a170_0x521c();let _0x3093a4=_0x521ccc[_0x524e09];return _0x3093a4;}export function resolveAliasToCode(_0x2c9745,_0x356daf,_0x4ce2fb,_0x5eed68){const _0x69544d=a170_0x3093,_0x91d428=_0x2c9745['flags'][_0x69544d(0x18e)](_0x3a93bb=>_0x3a93bb[_0x69544d(0x190)]===_0x69544d(0x196)&&_0x3a93bb[_0x69544d(0x182)]==='string'),_0x203c48=_0x2c9745[_0x69544d(0x187)][_0x69544d(0x18e)](_0x41d1bf=>_0x41d1bf[_0x69544d(0x190)]===_0x69544d(0x17f)&&_0x41d1bf[_0x69544d(0x182)]===_0x69544d(0x184));if(!_0x91d428||!_0x203c48)return;const _0x508575=_0x356daf[_0x69544d(0x196)]?String(_0x356daf[_0x69544d(0x196)]):'',_0x20d557=_0x356daf[_0x69544d(0x17f)]?String(_0x356daf[_0x69544d(0x17f)]):'';if(!_0x508575&&!_0x20d557)throw CliErrors[_0x69544d(0x18a)]('`'+_0x5eed68+_0x69544d(0x198));if(_0x20d557&&!_0x508575){const _0x5af77b=resolveAlias(_0x4ce2fb,_0x20d557);if(!_0x5af77b){const _0x508ce2=listAliases(_0x4ce2fb)[_0x69544d(0x194)](_0x50861b=>_0x50861b['alias']),_0x4b5f12=_0x508ce2[_0x69544d(0x18f)]?_0x69544d(0x189)+_0x508ce2[_0x69544d(0x197)](',\x20'):'No\x20api.ts\x20found\x20in\x20'+_0x4ce2fb+'.\x20Run\x20`'+CLI_BIN_NAME+_0x69544d(0x180);throw CliErrors[_0x69544d(0x18a)](_0x69544d(0x18c)+_0x20d557+'\x22.\x20'+_0x4b5f12);}_0x356daf[_0x69544d(0x196)]=_0x5af77b;}}
|