@lovrabet/rabetbase-cli 2.1.12-beta.4 → 2.1.13
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/field-update.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/link-create.js +1 -1
- package/lib/commands/dataset/link-delete.js +1 -1
- package/lib/commands/dataset/link-shared.js +1 -1
- package/lib/commands/dataset/link-update.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/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/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/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
package/lib/core/bff/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x404bb3,_0x313d89){const _0x169d1f=a147_0x41fa,_0x5b4478=_0x404bb3();while(!![]){try{const _0x43802e=-parseInt(_0x169d1f(0x141))/0x1+parseInt(_0x169d1f(0x151))/0x2+-parseInt(_0x169d1f(0x14d))/0x3*(-parseInt(_0x169d1f(0x154))/0x4)+parseInt(_0x169d1f(0x149))/0x5+parseInt(_0x169d1f(0x14b))/0x6+-parseInt(_0x169d1f(0x14c))/0x7+-parseInt(_0x169d1f(0x146))/0x8;if(_0x43802e===_0x313d89)break;else _0x5b4478['push'](_0x5b4478['shift']());}catch(_0x87c1b6){_0x5b4478['push'](_0x5b4478['shift']());}}}(a147_0x29c0,0xd7992));export function snakeToCamel(_0x48d792){const _0x2d4d05=a147_0x41fa;return _0x48d792[_0x2d4d05(0x144)]()[_0x2d4d05(0x145)](/_([a-z])/g,(_0x4721fa,_0x336e89)=>_0x336e89[_0x2d4d05(0x150)]());}export function findHookLocationByRemoteId(_0x13db6b,_0x2708df){const _0x3f98a5=a147_0x41fa;if(!_0x2708df)return undefined;for(const _0x306389 of Object[_0x3f98a5(0x14e)](_0x13db6b)){if(_0x306389[_0x3f98a5(0x14f)]===_0x2708df&&_0x306389[_0x3f98a5(0x147)]&&_0x306389[_0x3f98a5(0x152)]&&_0x306389[_0x3f98a5(0x148)])return{'datasetCode':_0x306389[_0x3f98a5(0x147)],'operationType':_0x306389[_0x3f98a5(0x152)],'functionNode':_0x306389[_0x3f98a5(0x148)]};}return undefined;}function a147_0x29c0(){const _0x47b60c=['match','4dYvRMJ','trim','535408OljvDO','test','after','toLowerCase','replace','18660512GdfJyV','datasetCode','functionNode','4622270KRMalA','before','9500412LdzRXD','2265340CJYJZK','1415235jwGmYz','values','remoteId','toUpperCase','2190162gYUQoW','operationType'];a147_0x29c0=function(){return _0x47b60c;};return a147_0x29c0();}export function extractScriptDescription(_0x23dd45){const _0x201c66=a147_0x41fa,_0x1196a4=_0x23dd45[_0x201c66(0x153)](/\[\s*脚本描述\s*]\s*(.+)/);return _0x1196a4?.[0x1]?.['trim']()||undefined;}function a147_0x41fa(_0x3d1952,_0x267594){_0x3d1952=_0x3d1952-0x141;const _0x29c023=a147_0x29c0();let _0x41fa5d=_0x29c023[_0x3d1952];return _0x41fa5d;}export function isValidBffFunctionName(_0x35a083){const _0x94a6da=a147_0x41fa;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x94a6da(0x142)](_0x35a083);}export function normalizeHookFunctionNode(_0x50b59e){const _0x555502=a147_0x41fa;if(!_0x50b59e)return undefined;const _0x2c759b=_0x50b59e[_0x555502(0x155)]()[_0x555502(0x144)]();if(_0x2c759b===_0x555502(0x14a)||_0x2c759b===_0x555502(0x143))return _0x2c759b;return undefined;}
|
package/lib/core/db-resolver.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3ba020,_0x573fa7){const _0x33fc8a=a148_0x44c0,_0x2e3c22=_0x3ba020();while(!![]){try{const _0x416e38=-parseInt(_0x33fc8a(0x109))/0x1*(parseInt(_0x33fc8a(0xf3))/0x2)+parseInt(_0x33fc8a(0x10e))/0x3+-parseInt(_0x33fc8a(0x10c))/0x4+parseInt(_0x33fc8a(0xff))/0x5+-parseInt(_0x33fc8a(0xfd))/0x6+-parseInt(_0x33fc8a(0x10b))/0x7*(parseInt(_0x33fc8a(0xfe))/0x8)+parseInt(_0x33fc8a(0xf5))/0x9;if(_0x416e38===_0x573fa7)break;else _0x2e3c22['push'](_0x2e3c22['shift']());}catch(_0x1efdc0){_0x2e3c22['push'](_0x2e3c22['shift']());}}}(a148_0x848c,0x6ef95));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x468f15){const _0x20666d=a148_0x44c0;if(cache['has'](_0x468f15))return cache['get'](_0x468f15);const _0x3366e5=await listDatasets(_0x468f15),_0x454429=new Map();for(const _0x6c992a of _0x3366e5){const _0x2a4b12=_0x6c992a[_0x20666d(0x105)];_0x2a4b12?.[_0x20666d(0x103)]!=null&&_0x454429[_0x20666d(0xf8)](_0x2a4b12['dbId'],_0x2a4b12[_0x20666d(0xf7)]??_0x20666d(0xf4)+_0x2a4b12[_0x20666d(0x103)]);}const _0x1083c9=[..._0x454429[_0x20666d(0xf1)]()][_0x20666d(0x107)](([_0x587617,_0x556dc4])=>({'dbId':_0x587617,'dbName':_0x556dc4}));return cache['set'](_0x468f15,_0x1083c9),_0x1083c9;}function a148_0x848c(){const _0x37aadc=['join','isNaN','dbId','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','dbtableConfig','\x22.\x20Available:\x20','map','find','9foqIFh','No\x20database\x20matching\x20\x22','7CXDDVE','688460OtZHxD','filter','1077063vucBZe','\x22\x20matches\x20multiple\x20databases:\x20','entries','\x22\x20under\x20app\x20\x22','8018AjWnMw','db-','6188661DsALps','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','dbName','set','toLowerCase','includes','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','length','707898tRMkXs','5590776nFcdhN','2164625mppNKm','.\x20Be\x20more\x20specific.'];a148_0x848c=function(){return _0x37aadc;};return a148_0x848c();}export async function resolveDb(_0x47a41b,_0x5c9eec){const _0x32e753=a148_0x44c0,_0x1e55be=await listDatabases(_0x47a41b);if(_0x1e55be[_0x32e753(0xfc)]===0x0)return{'resolved':[],'error':'No\x20linked\x20databases\x20found\x20under\x20app\x20\x22'+_0x47a41b+_0x32e753(0x104)};if(!_0x5c9eec)return{'resolved':_0x1e55be};const _0x38b00e=Number(_0x5c9eec);if(!Number[_0x32e753(0x102)](_0x38b00e)){const _0x258d83=_0x1e55be[_0x32e753(0x108)](_0x32e85b=>_0x32e85b['dbId']===_0x38b00e);if(_0x258d83)return{'resolved':[_0x258d83]};}const _0x400601=_0x5c9eec[_0x32e753(0xf9)](),_0x4093c7=_0x1e55be[_0x32e753(0x10d)](_0x217872=>_0x217872[_0x32e753(0xf7)][_0x32e753(0xf9)]()[_0x32e753(0xfa)](_0x400601));if(_0x4093c7['length']>0x0)return{'resolved':_0x4093c7};const _0x29b46f=_0x1e55be[_0x32e753(0x107)](_0x48b263=>_0x48b263[_0x32e753(0xf7)]+'\x20('+_0x48b263[_0x32e753(0x103)]+')')[_0x32e753(0x101)](',\x20');return{'resolved':[],'error':_0x32e753(0x10a)+_0x5c9eec+_0x32e753(0xf2)+_0x47a41b+_0x32e753(0x106)+_0x29b46f+_0x32e753(0xf6)};}export async function resolveOneDb(_0x2f97f2,_0x384a52){const _0x1ac431=a148_0x44c0,{resolved:_0x110238,error:_0x258765}=await resolveDb(_0x2f97f2,_0x384a52);if(_0x258765)return{'db':null,'error':_0x258765};if(_0x110238[_0x1ac431(0xfc)]===0x1)return{'db':_0x110238[0x0]};if(!_0x384a52){const _0x594535=_0x110238[_0x1ac431(0x107)](_0x27a8c5=>_0x27a8c5[_0x1ac431(0xf7)]+'\x20('+_0x27a8c5[_0x1ac431(0x103)]+')')[_0x1ac431(0x101)](',\x20');return{'db':null,'error':_0x1ac431(0xfb)+_0x594535};}const _0x3b19a7=_0x110238[_0x1ac431(0x107)](_0x47f659=>_0x47f659[_0x1ac431(0xf7)]+'\x20('+_0x47f659[_0x1ac431(0x103)]+')')['join'](',\x20');return{'db':null,'error':'\x22'+_0x384a52+_0x1ac431(0xf0)+_0x3b19a7+_0x1ac431(0x100)};}function a148_0x44c0(_0x32909d,_0x5ed610){_0x32909d=_0x32909d-0xf0;const _0x848c7e=a148_0x848c();let _0x44c0e0=_0x848c7e[_0x32909d];return _0x44c0e0;}export async function getDbName(_0x878c5f,_0x45e87c){const _0x3f3cc5=a148_0x44c0,_0x38f2a6=await listDatabases(_0x878c5f);return _0x38f2a6[_0x3f3cc5(0x108)](_0x3d5e89=>_0x3d5e89[_0x3f3cc5(0x103)]===_0x45e87c)?.[_0x3f3cc5(0xf7)];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a149_0x1df7(){const _0x232d18=['.json','159601oMVdns','8brGqux','.rabetbase','608600Ghcxwf','8620045GkeHcq','toUpperCase','2442212soVrUm','3784326ibDPRl','appPagesDir','3619980oQFrOe','page.lock.json','390620OwTuso','page','cwd','297ALjRWo'];a149_0x1df7=function(){return _0x232d18;};return a149_0x1df7();}const a149_0x1233ca=a149_0x3fe9;(function(_0x45e250,_0xc0cd8){const _0x6f2da0=a149_0x3fe9,_0x7ea8d9=_0x45e250();while(!![]){try{const _0x2f5a8d=parseInt(_0x6f2da0(0x125))/0x1+parseInt(_0x6f2da0(0x12b))/0x2+-parseInt(_0x6f2da0(0x11e))/0x3+-parseInt(_0x6f2da0(0x126))/0x4*(parseInt(_0x6f2da0(0x120))/0x5)+-parseInt(_0x6f2da0(0x12c))/0x6+-parseInt(_0x6f2da0(0x129))/0x7+parseInt(_0x6f2da0(0x128))/0x8*(parseInt(_0x6f2da0(0x123))/0x9);if(_0x2f5a8d===_0xc0cd8)break;else _0x7ea8d9['push'](_0x7ea8d9['shift']());}catch(_0x2654d2){_0x7ea8d9['push'](_0x7ea8d9['shift']());}}}(a149_0x1df7,0xa2a06));import{constants}from'node:fs';import{access,mkdir}from'node:fs/promises';import{dirname,join,resolve}from'node:path';export function loadPageProjectConfig(_0x2d43a9,_0x2d668c=process[a149_0x1233ca(0x122)]()){const _0x3171aa=a149_0x1233ca,_0x15f256=resolve(_0x2d668c),_0x53ba2a=join(_0x15f256,'.rabetbase',_0x3171aa(0x121));return{'projectRoot':_0x15f256,'pagesBaseDir':_0x53ba2a,'appPagesDir':join(_0x53ba2a,_0x2d43a9),'lockFilePath':join(_0x15f256,_0x3171aa(0x127),_0x3171aa(0x11f))};}export function buildPageFileName(_0x3db4a8,_0x10820b){const _0x1b8da3=a149_0x1233ca;return _0x3db4a8+'-'+String(_0x10820b)[_0x1b8da3(0x12a)]()+_0x1b8da3(0x124);}function a149_0x3fe9(_0xf9cbd6,_0x78d415){_0xf9cbd6=_0xf9cbd6-0x11e;const _0x1df7ae=a149_0x1df7();let _0x3fe903=_0x1df7ae[_0xf9cbd6];return _0x3fe903;}export function resolvePageFilePath(_0x129f61,_0x31882e,_0x213979){const _0x5192c9=a149_0x1233ca;return join(_0x129f61[_0x5192c9(0x12d)],buildPageFileName(_0x31882e,_0x213979));}export async function ensureParentDirectory(_0xebbc){await mkdir(dirname(_0xebbc),{'recursive':!![]});}export async function fileExists(_0x221d0b){try{return await access(_0x221d0b,constants['F_OK']),!![];}catch{return![];}}
|
package/lib/core/page/hash.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x375898,_0x1b103f){const _0x104277=a150_0x96db,_0x466b17=_0x375898();while(!![]){try{const _0x53c2be=parseInt(_0x104277(0x7a))/0x1+-parseInt(_0x104277(0x79))/0x2+parseInt(_0x104277(0x7b))/0x3+parseInt(_0x104277(0x7c))/0x4+parseInt(_0x104277(0x77))/0x5+-parseInt(_0x104277(0x74))/0x6*(-parseInt(_0x104277(0x76))/0x7)+-parseInt(_0x104277(0x73))/0x8*(parseInt(_0x104277(0x72))/0x9);if(_0x53c2be===_0x1b103f)break;else _0x466b17['push'](_0x466b17['shift']());}catch(_0x40eacb){_0x466b17['push'](_0x466b17['shift']());}}}(a150_0x3a71,0x8179f));function a150_0x96db(_0x478852,_0x8ec012){_0x478852=_0x478852-0x72;const _0x3a7123=a150_0x3a71();let _0x96dbd6=_0x3a7123[_0x478852];return _0x96dbd6;}import a150_0x92cac1 from'node:crypto';function a150_0x3a71(){const _0x5808a0=['utf8','287iKYvAb','258030qeJMtq','digest','1185782ASufEs','135003TBuJit','1061859mYyCIR','3746556cOqjIX','createHash','hex','md5','289989Zkukpf','96MSURNe','4782rdjfRt'];a150_0x3a71=function(){return _0x5808a0;};return a150_0x3a71();}import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0x50ba34){return JSON['stringify'](JSON['parse'](_0x50ba34),null,0x2)+'\x0a';}export function computePageContentHash(_0x3ce5cb){const _0x5b57f6=a150_0x96db;return a150_0x92cac1[_0x5b57f6(0x7d)](_0x5b57f6(0x7f))['update'](_0x3ce5cb)[_0x5b57f6(0x78)](_0x5b57f6(0x7e));}export function computeSerializedSchemaHash(_0xb50699){return computePageContentHash(serializePageSchemaForFile(_0xb50699));}export async function computePageFileHash(_0x1aa884){const _0x342469=a150_0x96db,_0x4a6c3f=await readFile(_0x1aa884,_0x342469(0x75));return computePageContentHash(_0x4a6c3f);}
|
package/lib/core/page/lock.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x111017,_0x516d93){const _0x2135da=a151_0x2b82,_0x3eb362=_0x111017();while(!![]){try{const _0x18665f=parseInt(_0x2135da(0x1fd))/0x1+parseInt(_0x2135da(0x1fb))/0x2+-parseInt(_0x2135da(0x1f8))/0x3+-parseInt(_0x2135da(0x1f7))/0x4*(-parseInt(_0x2135da(0x1f4))/0x5)+-parseInt(_0x2135da(0x1f9))/0x6*(parseInt(_0x2135da(0x207))/0x7)+parseInt(_0x2135da(0x202))/0x8*(parseInt(_0x2135da(0x200))/0x9)+-parseInt(_0x2135da(0x1f6))/0xa*(parseInt(_0x2135da(0x1fe))/0xb);if(_0x18665f===_0x516d93)break;else _0x3eb362['push'](_0x3eb362['shift']());}catch(_0x6d777){_0x3eb362['push'](_0x3eb362['shift']());}}}(a151_0x2d8b,0x56f07));function a151_0x2b82(_0x46db81,_0x557b93){_0x46db81=_0x46db81-0x1f4;const _0x2d8b08=a151_0x2d8b();let _0x2b82ea=_0x2d8b08[_0x46db81];return _0x2b82ea;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyPageLock(){return{'apps':{}};}export function ensurePageLockScope(_0x222526,_0x4d5b3b){const _0x42dd14=a151_0x2b82,_0x56b1da={'apps':_0x222526['apps']&&typeof _0x222526[_0x42dd14(0x201)]===_0x42dd14(0x1fc)?_0x222526[_0x42dd14(0x201)]:{}};let _0x1a9c36=_0x56b1da[_0x42dd14(0x201)][_0x4d5b3b];if(!_0x1a9c36)return _0x1a9c36={'lastSync':'','pages':{}},_0x56b1da[_0x42dd14(0x201)][_0x4d5b3b]=_0x1a9c36,{'lockData':_0x56b1da,'appLock':_0x1a9c36};return!_0x1a9c36[_0x42dd14(0x1f5)]&&(_0x1a9c36['lastSync']=''),(!_0x1a9c36[_0x42dd14(0x206)]||typeof _0x1a9c36[_0x42dd14(0x206)]!==_0x42dd14(0x1fc))&&(_0x1a9c36[_0x42dd14(0x206)]={}),{'lockData':_0x56b1da,'appLock':_0x1a9c36};}function a151_0x2d8b(){const _0x7ca271=['stringify','parse','utf8','pages','1729SwNPIP','1229105JaSSFz','lastSync','265010ASkzWQ','4xekmXW','134934JgMJOw','7722TMkaQk','code','1394006axAnHZ','object','41620zupTmg','242qKvcpA','Failed\x20to\x20read\x20page\x20lock\x20file:\x20','259812bVUIin','apps','88RAzIeh'];a151_0x2d8b=function(){return _0x7ca271;};return a151_0x2d8b();}export async function readPageLockFile(_0x49801f){const _0x2fc2e2=a151_0x2b82;try{const _0x230378=await readFile(_0x49801f,_0x2fc2e2(0x205)),_0x115c14=JSON[_0x2fc2e2(0x204)](_0x230378);return{'apps':_0x115c14[_0x2fc2e2(0x201)]&&typeof _0x115c14[_0x2fc2e2(0x201)]===_0x2fc2e2(0x1fc)?_0x115c14['apps']:{}};}catch(_0x4e20f8){if(_0x4e20f8[_0x2fc2e2(0x1fa)]==='ENOENT')return null;throw new Error(_0x2fc2e2(0x1ff)+String(_0x4e20f8));}}export async function writePageLockFile(_0x5a7518,_0x313448){const _0x3d6984=a151_0x2b82;await mkdir(dirname(_0x5a7518),{'recursive':!![]}),await writeFile(_0x5a7518,JSON[_0x3d6984(0x203)](_0x313448,null,0x2),_0x3d6984(0x205));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a153_0x157c(_0x33c48a,_0x47a6fe){_0x33c48a=_0x33c48a-0x199;const _0x2183ce=a153_0x2183();let _0x157c89=_0x2183ce[_0x33c48a];return _0x157c89;}const a153_0x4f5825=a153_0x157c;(function(_0x2dc9f8,_0x5d7ab9){const _0x2a3932=a153_0x157c,_0x4a5687=_0x2dc9f8();while(!![]){try{const _0x3fb91d=parseInt(_0x2a3932(0x19e))/0x1*(-parseInt(_0x2a3932(0x1a0))/0x2)+-parseInt(_0x2a3932(0x1a2))/0x3*(-parseInt(_0x2a3932(0x1a1))/0x4)+parseInt(_0x2a3932(0x1a5))/0x5+parseInt(_0x2a3932(0x1a6))/0x6+parseInt(_0x2a3932(0x1a7))/0x7+-parseInt(_0x2a3932(0x19f))/0x8*(-parseInt(_0x2a3932(0x19c))/0x9)+-parseInt(_0x2a3932(0x19d))/0xa*(parseInt(_0x2a3932(0x199))/0xb);if(_0x3fb91d===_0x5d7ab9)break;else _0x4a5687['push'](_0x4a5687['shift']());}catch(_0x1407fa){_0x4a5687['push'](_0x4a5687['shift']());}}}(a153_0x2183,0xc29c7));import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';function a153_0x2183(){const _0x2083b6=['sql-trash','6718527tKfZjl','2026090HOnXsR','1XMOCvK','16bCqBLd','2509930YeyGOj','4diSotm','3688548hZOncj','/sql','.rabetbase','2918120uzjyWp','3622182OevvDg','6851425NkNbdL','154uEktNw','sql'];a153_0x2183=function(){return _0x2083b6;};return a153_0x2183();}const DOT_DIR=a153_0x4f5825(0x1a4),LOCK_FILE_NAME='sql.lock.json',TRASH_DIR_NAME=a153_0x4f5825(0x19b);export function loadSqlProjectConfig(_0x10dbe7,_0x197870){const _0x169f27=a153_0x4f5825,_0x1e233c=resolve(_0x197870??findProjectRootDirectory()),_0x8b98e8=DOT_DIR+_0x169f27(0x1a3),_0x4e745b=_0x8b98e8+'/'+_0x10dbe7;return{'projectRoot':_0x1e233c,'appCode':_0x10dbe7,'sqlWorkspaceRoot':_0x8b98e8,'sqlRoot':_0x4e745b,'sqlRootDir':resolve(_0x1e233c,DOT_DIR,_0x169f27(0x19a),_0x10dbe7),'lockFilePath':resolve(_0x1e233c,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x1e233c,DOT_DIR,TRASH_DIR_NAME)};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a154_0x817c(){const _0x14d3a8=['path','push','135607IgrokN','sql','code','slice','14gXqfow','name','13003056XjSukT','length','isFile','toLowerCase','4txPnGM','11295YmfHCC','.xml','133179khNGya','2454kAwtVe','sqlName','mybatisXml','55ZHiPis','6810170Bufxsw','indexOf','59412HPkFqp','ENOENT','sqlCode','761089fXFRAk','isDirectory','dbId','dbName','mode','sqlRootDir','filter','24rgZSNb','.sql'];a154_0x817c=function(){return _0x14d3a8;};return a154_0x817c();}(function(_0x11d396,_0x1b800f){const _0x2999e0=a154_0x244f,_0x227c34=_0x11d396();while(!![]){try{const _0x4a3d72=parseInt(_0x2999e0(0x117))/0x1*(parseInt(_0x2999e0(0x11b))/0x2)+-parseInt(_0x2999e0(0x124))/0x3*(-parseInt(_0x2999e0(0x121))/0x4)+-parseInt(_0x2999e0(0x122))/0x5*(-parseInt(_0x2999e0(0x125))/0x6)+parseInt(_0x2999e0(0x10c))/0x7*(-parseInt(_0x2999e0(0x113))/0x8)+-parseInt(_0x2999e0(0x11d))/0x9+parseInt(_0x2999e0(0x129))/0xa+-parseInt(_0x2999e0(0x128))/0xb*(-parseInt(_0x2999e0(0x109))/0xc);if(_0x4a3d72===_0x1b800f)break;else _0x227c34['push'](_0x227c34['shift']());}catch(_0x3df9da){_0x227c34['push'](_0x227c34['shift']());}}}(a154_0x817c,0xd019c));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x47a1f5){const _0x225094=a154_0x244f;if(_0x47a1f5===_0x225094(0x114))return'sql';if(_0x47a1f5===_0x225094(0x123))return _0x225094(0x127);return undefined;}async function scanSqlFilesRecursively(_0x54ca46,_0x3b6a96){const _0x5745d0=a154_0x244f,_0x15cdb0=[];try{const _0x4296d2=await readdir(_0x54ca46,{'withFileTypes':!![]});for(const _0x213d15 of _0x4296d2){const _0xea416b=join(_0x54ca46,_0x213d15[_0x5745d0(0x11c)]);if(_0x213d15[_0x5745d0(0x10d)]()){_0x15cdb0[_0x5745d0(0x116)](...await scanSqlFilesRecursively(_0xea416b,_0x3b6a96));continue;}if(!_0x213d15[_0x5745d0(0x11f)]())continue;const _0x2285fd=extname(_0x213d15[_0x5745d0(0x11c)])[_0x5745d0(0x120)](),_0x5da19c=extensionToMode(_0x2285fd);if(!_0x5da19c)continue;const _0x26262e=relative(_0x3b6a96,_0xea416b)['replace'](/\\/g,'/'),_0x4b666c=_0x26262e['split']('/')[_0x5745d0(0x112)](Boolean),_0x58bc36=parseSqlPath(_0x4b666c,_0x213d15[_0x5745d0(0x11c)],_0x2285fd);if(!_0x58bc36)continue;_0x15cdb0[_0x5745d0(0x116)]({'sqlCode':_0x58bc36['sqlCode'],'sqlName':_0x58bc36[_0x5745d0(0x126)],'dbDirectory':_0x4b666c[0x0],'filePath':_0xea416b,'relativePath':_0x26262e,'lockKey':_0x58bc36[_0x5745d0(0x10b)],'mode':_0x5da19c});}}catch(_0x5e331a){if(_0x5e331a[_0x5745d0(0x119)]!==_0x5745d0(0x10a))throw _0x5e331a;}return _0x15cdb0;}function a154_0x244f(_0x3de4b7,_0x25476a){_0x3de4b7=_0x3de4b7-0x108;const _0x817ca6=a154_0x817c();let _0x244f85=_0x817ca6[_0x3de4b7];return _0x244f85;}export async function scanLocalSqlQueries(_0x2219c3){const _0x25e7a5=a154_0x244f;return scanSqlFilesRecursively(_0x2219c3[_0x25e7a5(0x111)],_0x2219c3['sqlRootDir']);}export function resolveLocalSqlFilePath(_0xfb4ee0,_0x7e3a1,_0x313811){const _0x2bc8e7=a154_0x244f,_0x485748=_0x313811?.[_0x2bc8e7(0x115)]||(_0x313811?.[_0x2bc8e7(0x126)]||_0x313811?.[_0x2bc8e7(0x10f)]?buildSqlRelativePath(_0x7e3a1,_0x313811?.[_0x2bc8e7(0x126)],_0x313811?.[_0x2bc8e7(0x10f)],_0x313811?.[_0x2bc8e7(0x110)]||'sql',_0x313811?.[_0x2bc8e7(0x10e)]):buildDefaultSqlFileName(_0x7e3a1,_0x313811?.['mode']||_0x2bc8e7(0x118)));return join(_0xfb4ee0[_0x2bc8e7(0x111)],_0x485748);}export async function directoryExists(_0x591fd3){const _0x192ca2=a154_0x244f;try{const _0x22012b=await stat(_0x591fd3);return _0x22012b[_0x192ca2(0x10d)]();}catch{return![];}}function parseSqlPath(_0x34e107,_0x2d7524,_0x10e1fd){const _0x47b788=a154_0x244f,_0x267e51=_0x2d7524['slice'](0x0,-_0x10e1fd[_0x47b788(0x11e)]);if(_0x34e107[_0x47b788(0x11e)]<0x2)return null;const _0x31d9e3=_0x267e51[_0x47b788(0x108)]('_');if(_0x31d9e3<=0x0||_0x31d9e3>=_0x267e51[_0x47b788(0x11e)]-0x1)return null;const _0x911db6=_0x267e51[_0x47b788(0x11a)](0x0,_0x31d9e3);if(!isLikelySqlCode(_0x911db6))return null;return{'sqlCode':_0x911db6,'sqlName':_0x267e51['slice'](_0x31d9e3+0x1)};}function isLikelySqlCode(_0x338348){return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/['test'](_0x338348);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x43efee,_0x57a8cb){const _0x88a1ef=a155_0x2c64,_0x93aa87=_0x43efee();while(!![]){try{const _0x5a4e4f=-parseInt(_0x88a1ef(0x138))/0x1+-parseInt(_0x88a1ef(0x132))/0x2*(-parseInt(_0x88a1ef(0x133))/0x3)+-parseInt(_0x88a1ef(0x134))/0x4*(parseInt(_0x88a1ef(0x12e))/0x5)+-parseInt(_0x88a1ef(0x137))/0x6+-parseInt(_0x88a1ef(0x139))/0x7+parseInt(_0x88a1ef(0x130))/0x8+-parseInt(_0x88a1ef(0x12c))/0x9*(-parseInt(_0x88a1ef(0x136))/0xa);if(_0x5a4e4f===_0x57a8cb)break;else _0x93aa87['push'](_0x93aa87['shift']());}catch(_0x571f2b){_0x93aa87['push'](_0x93aa87['shift']());}}}(a155_0x144c,0x8ddac));import{readFile}from'node:fs/promises';function a155_0x2c64(_0x4107fd,_0x2f86df){_0x4107fd=_0x4107fd-0x12c;const _0x144c5b=a155_0x144c();let _0x2c64d8=_0x144c5b[_0x4107fd];return _0x2c64d8;}import a155_0x30a0e5 from'node:crypto';function a155_0x144c(){const _0x28fe5c=['update','767673oZWJPq','utf8','4445xLJJsb','hex','8034560YxbJTC','digest','6MCMgzQ','694515HoNgOy','3704hJYWQx','md5','60HTbmqN','1124844XtwcRD','424941uCrfIE','1357664PNLBlH'];a155_0x144c=function(){return _0x28fe5c;};return a155_0x144c();}export function computeSqlContentHash(_0x2c0002){const _0x297692=a155_0x2c64;return a155_0x30a0e5['createHash'](_0x297692(0x135))[_0x297692(0x13a)](_0x2c0002)[_0x297692(0x131)](_0x297692(0x12f));}export async function computeSqlFileHash(_0x5d453c){const _0x10e611=a155_0x2c64,_0x4b5ba4=await readFile(_0x5d453c,_0x10e611(0x12d));return computeSqlContentHash(_0x4b5ba4);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x537411,_0x495f2b){const _0x37c474=a156_0x1e69,_0x55d4ae=_0x537411();while(!![]){try{const _0x50e309=-parseInt(_0x37c474(0x202))/0x1*(-parseInt(_0x37c474(0x201))/0x2)+-parseInt(_0x37c474(0x1fc))/0x3+-parseInt(_0x37c474(0x1fa))/0x4+parseInt(_0x37c474(0x206))/0x5*(-parseInt(_0x37c474(0x1ff))/0x6)+parseInt(_0x37c474(0x204))/0x7+parseInt(_0x37c474(0x1fb))/0x8+parseInt(_0x37c474(0x200))/0x9;if(_0x50e309===_0x495f2b)break;else _0x55d4ae['push'](_0x55d4ae['shift']());}catch(_0x45fcef){_0x55d4ae['push'](_0x55d4ae['shift']());}}}(a156_0x5cd6,0xbd828));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a156_0x1e69(_0x129ac2,_0x417f34){_0x129ac2=_0x129ac2-0x1f3;const _0x5cd62a=a156_0x5cd6();let _0x1e6932=_0x5cd62a[_0x129ac2];return _0x1e6932;}export function createEmptySqlLock(){return{'apps':{}};}function a156_0x5cd6(){const _0x31edad=['8464477qTyzOd','stringify','625fKDuDf','\x22\x20vs\x20lock\x20\x22','lastSync','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','ENOENT',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','\x22.\x20','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','sqls','apps','parse','3455028CQxveH','8341704PyBSCT','911598ZhZwzo','code','sqlRoot','48228IJfxKK','4177521IoMVZG','14iIIKNv','33216hsHeHI','utf8'];a156_0x5cd6=function(){return _0x31edad;};return a156_0x5cd6();}export function ensureSqlLockScope(_0xc2b199,_0x486612,_0x371436,_0x2a3f00){const _0x1bedf1=a156_0x1e69,_0x1eaa7a=_0xc2b199??createEmptySqlLock();let _0x5660d1=_0x1eaa7a['apps'][_0x486612];if(!_0x5660d1)return _0x5660d1={'sqlRoot':_0x371436,'lastSync':'','sqls':{}},_0x1eaa7a[_0x1bedf1(0x1f8)][_0x486612]=_0x5660d1,{'lockData':_0x1eaa7a,'appLock':_0x5660d1};if(!_0x5660d1[_0x1bedf1(0x1fe)])_0x5660d1[_0x1bedf1(0x1fe)]=_0x371436;else{if(_0x5660d1['sqlRoot']!==_0x371436)throw new Error(_0x2a3f00+_0x1bedf1(0x1f4)+_0x371436+_0x1bedf1(0x207)+_0x5660d1[_0x1bedf1(0x1fe)]+_0x1bedf1(0x1f5)+_0x1bedf1(0x1f6));}return!_0x5660d1[_0x1bedf1(0x1f7)]&&(_0x5660d1[_0x1bedf1(0x1f7)]={}),!_0x5660d1[_0x1bedf1(0x208)]&&(_0x5660d1[_0x1bedf1(0x208)]=''),{'lockData':_0x1eaa7a,'appLock':_0x5660d1};}export async function readSqlLockFile(_0x4c413a){const _0x27be93=a156_0x1e69;try{const _0x4d953d=await readFile(_0x4c413a,_0x27be93(0x203));return JSON[_0x27be93(0x1f9)](_0x4d953d);}catch(_0x3bc728){if(_0x3bc728[_0x27be93(0x1fd)]===_0x27be93(0x1f3))return null;throw new Error(_0x27be93(0x209)+String(_0x3bc728));}}export async function writeSqlLockFile(_0x387aca,_0x2a7e43){const _0x139ee2=a156_0x1e69;await mkdir(dirname(_0x387aca),{'recursive':!![]}),await writeFile(_0x387aca,JSON[_0x139ee2(0x205)](_0x2a7e43,null,0x2),'utf8');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a158_0x5954(){const _0x530728=['3940139iWjZEF','unknown-sql','784630iyojWu','sql','.xml','12HoAbxw','test','trim','unknown-db','replace','2553740xJwcRI','18706390UVhNsC','22JWffde','448nZhySD','52264fEJUQJ','87zuxply','159948YGGuNd','mybatisXml','1796878FeHgWn','db-'];a158_0x5954=function(){return _0x530728;};return a158_0x5954();}function a158_0x3317(_0x3dd946,_0x3c6778){_0x3dd946=_0x3dd946-0x116;const _0x595467=a158_0x5954();let _0x3317c3=_0x595467[_0x3dd946];return _0x3317c3;}(function(_0x4fcbbd,_0x12f077){const _0x5cf78e=a158_0x3317,_0x1e4f6b=_0x4fcbbd();while(!![]){try{const _0x5c760b=parseInt(_0x5cf78e(0x129))/0x1+-parseInt(_0x5cf78e(0x125))/0x2+-parseInt(_0x5cf78e(0x122))/0x3*(parseInt(_0x5cf78e(0x121))/0x4)+-parseInt(_0x5cf78e(0x11d))/0x5+parseInt(_0x5cf78e(0x118))/0x6*(-parseInt(_0x5cf78e(0x127))/0x7)+parseInt(_0x5cf78e(0x120))/0x8*(-parseInt(_0x5cf78e(0x123))/0x9)+parseInt(_0x5cf78e(0x11e))/0xa*(parseInt(_0x5cf78e(0x11f))/0xb);if(_0x5c760b===_0x12f077)break;else _0x1e4f6b['push'](_0x1e4f6b['shift']());}catch(_0x303c92){_0x1e4f6b['push'](_0x1e4f6b['shift']());}}}(a158_0x5954,0x96975));export function detectSqlMode(_0x47ace3){const _0x45538a=a158_0x3317,_0x58a783=_0x47ace3['trimStart']();if(/^<(select|insert|update|delete)\b/i[_0x45538a(0x119)](_0x58a783))return _0x45538a(0x124);return _0x45538a(0x116);}export function getSqlFileExtension(_0x2ccb6b){const _0x453b40=a158_0x3317;return _0x2ccb6b===_0x453b40(0x124)?_0x453b40(0x117):'.sql';}export function buildDefaultSqlFileName(_0x36b84e,_0x587162){return''+_0x36b84e+getSqlFileExtension(_0x587162);}export function sanitizeSqlPathSegment(_0x5bc8b0,_0x19d8ce){const _0x33b24c=a158_0x3317,_0x156409=String(_0x5bc8b0??'')[_0x33b24c(0x11a)](),_0x229087=_0x156409[_0x33b24c(0x11c)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x33b24c(0x11c)](/\s+/g,'-')[_0x33b24c(0x11c)](/-+/g,'-')[_0x33b24c(0x11c)](/^\.+/,'')[_0x33b24c(0x11c)](/\.+$/,'')[_0x33b24c(0x11c)](/^-+/,'')['replace'](/-+$/,'');return _0x229087||_0x19d8ce;}export function buildDbDirectoryName(_0xd5389,_0x5b1d6e){const _0x9a2e00=a158_0x3317;return sanitizeSqlPathSegment(_0xd5389,_0x5b1d6e!=null?_0x9a2e00(0x126)+_0x5b1d6e:_0x9a2e00(0x11b));}export function buildSqlRelativePath(_0x38d307,_0x1c07d9,_0x266ef4,_0x3d704b,_0xc741e6){const _0x15cb7c=a158_0x3317,_0x44d817=buildDbDirectoryName(_0x266ef4,_0xc741e6),_0x326e2d=sanitizeSqlPathSegment(_0x38d307,_0x15cb7c(0x128)),_0x37b2de=sanitizeSqlPathSegment(_0x1c07d9,_0x326e2d);return _0x44d817+'/'+_0x326e2d+'_'+_0x37b2de+getSqlFileExtension(_0x3d704b);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xe043c2,_0xda8844){const _0x3b5caf=a159_0x588d,_0x3f6a2d=_0xe043c2();while(!![]){try{const _0x5846d3=parseInt(_0x3b5caf(0xbc))/0x1*(parseInt(_0x3b5caf(0xc8))/0x2)+parseInt(_0x3b5caf(0xbd))/0x3*(-parseInt(_0x3b5caf(0xc2))/0x4)+-parseInt(_0x3b5caf(0xc7))/0x5*(parseInt(_0x3b5caf(0xdb))/0x6)+parseInt(_0x3b5caf(0xdf))/0x7+parseInt(_0x3b5caf(0xbf))/0x8*(parseInt(_0x3b5caf(0xd5))/0x9)+-parseInt(_0x3b5caf(0xd6))/0xa*(parseInt(_0x3b5caf(0xbb))/0xb)+-parseInt(_0x3b5caf(0xce))/0xc*(-parseInt(_0x3b5caf(0xd9))/0xd);if(_0x5846d3===_0xda8844)break;else _0x3f6a2d['push'](_0x3f6a2d['shift']());}catch(_0x54b069){_0x3f6a2d['push'](_0x3f6a2d['shift']());}}}(a159_0x4872,0xcacc5));export function detectSqlType(_0x2df61e){const _0x447dbb=a159_0x588d;if(!_0x2df61e?.['trim']())return{'type':_0x447dbb(0xd7),'isSelectOnly':![],'isDangerous':![],'reason':'SQL\x20content\x20is\x20empty'};const _0x5b9107=_0x2df61e['replace'](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x447dbb(0xc1)](/@[^(\s]+(\([^)]*\))?/g,'')['replace'](/\/\*[\s\S]*?\*\//g,'')['trim'](),_0xb17885=_0x5b9107['split']('\x0a');let _0x3d5907='';for(const _0x4d303b of _0xb17885){const _0x2d3463=_0x4d303b[_0x447dbb(0xbe)]();if(!_0x2d3463||_0x2d3463['startsWith']('--')||_0x2d3463[_0x447dbb(0xc9)]('/*'))continue;_0x3d5907=_0x2d3463;break;}const _0x41d96c=_0x3d5907[_0x447dbb(0xc6)]();if(_0x41d96c[_0x447dbb(0xc9)](_0x447dbb(0xd1))||_0x41d96c[_0x447dbb(0xc9)](_0x447dbb(0xd4))){const _0x484d87=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x447dbb(0xde)](_0x5b9107);return{'type':'SELECT','isSelectOnly':!_0x484d87,'isDangerous':_0x484d87,'reason':_0x484d87?_0x447dbb(0xdc):undefined};}if(_0x41d96c[_0x447dbb(0xc9)](_0x447dbb(0xda)))return{'type':_0x447dbb(0xda),'isSelectOnly':![],'isDangerous':![]};if(_0x41d96c['startsWith']('UPDATE'))return{'type':'UPDATE','isSelectOnly':![],'isDangerous':![]};if(_0x41d96c['startsWith'](_0x447dbb(0xcd)))return{'type':_0x447dbb(0xcd),'isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x447dbb(0xde)](_0x41d96c))return{'type':_0x447dbb(0xca),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':_0x447dbb(0xd7),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x2f7ed3){const _0x59e331=a159_0x588d,_0x44d673=_0x2f7ed3[_0x59e331(0xc1)](/#\{[^}]*\}/g,'?')[_0x59e331(0xc1)](/\$\{[^}]*\}/g,'?')[_0x59e331(0xc1)](/'[^']*'/g,'\x27\x27')[_0x59e331(0xc1)](/--.*$/gm,'')['replace'](/\/\*[\s\S]*?\*\//g,''),_0x1132e2=[],_0x31382a=_0x44d673['match'](/FROM\s+([^\s,)(]+)/i);if(_0x31382a?.[0x1])_0x1132e2[_0x59e331(0xd8)](_0x31382a[0x1]['replace'](/[`"]/g,''));for(const _0x339014 of _0x44d673['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x124e98=_0x339014[0x1]?.['replace'](/[`"]/g,'');if(_0x124e98&&!_0x1132e2[_0x59e331(0xc3)](_0x124e98))_0x1132e2[_0x59e331(0xd8)](_0x124e98);}const _0x5ebcc7=_0x44d673['match'](/INTO\s+([^\s(]+)/i);if(_0x5ebcc7?.[0x1]){const _0x1ef1ef=_0x5ebcc7[0x1]['replace'](/[`"]/g,'');if(!_0x1132e2[_0x59e331(0xc3)](_0x1ef1ef))_0x1132e2[_0x59e331(0xd8)](_0x1ef1ef);}const _0x2a888f=_0x44d673[_0x59e331(0xcc)](/UPDATE\s+([^\s,)(]+)/i);if(_0x2a888f?.[0x1]){const _0x55c21d=_0x2a888f[0x1]['replace'](/[`"]/g,'');if(!_0x1132e2[_0x59e331(0xc3)](_0x55c21d))_0x1132e2[_0x59e331(0xd8)](_0x55c21d);}return _0x1132e2;}function extractParameters(_0x2cd413){const _0x19ea64=a159_0x588d,_0x384dbd=new Set();for(const _0x9b07e4 of _0x2cd413[_0x19ea64(0xcb)](/#\{(\w+)\}/g))if(_0x9b07e4[0x1])_0x384dbd[_0x19ea64(0xc4)](_0x9b07e4[0x1]);for(const _0x32f620 of _0x2cd413[_0x19ea64(0xcb)](/\$\{(\w+)\}/g))if(_0x32f620[0x1])_0x384dbd['add'](_0x32f620[0x1]);return Array[_0x19ea64(0xc5)](_0x384dbd);}export function validateSql(_0x300d2a){const _0x47146e=a159_0x588d,_0x561986=detectSqlType(_0x300d2a),_0x2a9214=extractTables(_0x300d2a),_0x66a31c=extractParameters(_0x300d2a);if(_0x561986[_0x47146e(0xd0)])return{'valid':![],'sqlType':_0x561986,'tables':_0x2a9214,'parameters':_0x66a31c,'message':_0x561986['reason']||_0x561986[_0x47146e(0xd2)]+'\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'};if(_0x561986[_0x47146e(0xd2)]===_0x47146e(0xd7))return{'valid':![],'sqlType':_0x561986,'tables':_0x2a9214,'parameters':_0x66a31c,'message':_0x47146e(0xdd)};return{'valid':!![],'sqlType':_0x561986,'tables':_0x2a9214,'parameters':_0x66a31c,'message':_0x561986[_0x47146e(0xd2)]+_0x47146e(0xc0)+(_0x2a9214['length']?_0x2a9214['join'](',\x20'):_0x47146e(0xcf))+(_0x66a31c['length']?'\x20with\x20parameters:\x20'+_0x66a31c[_0x47146e(0xd3)](',\x20'):'')};}function a159_0x588d(_0x14c859,_0x12b39a){_0x14c859=_0x14c859-0xbb;const _0x487267=a159_0x4872();let _0x588d81=_0x487267[_0x14c859];return _0x588d81;}function a159_0x4872(){const _0x411d27=['matchAll','match','DELETE','32820FbRrXr','unknown\x20table(s)','isDangerous','SELECT','type','join','WITH','1930059QLnoWH','313510DvWCOm','UNKNOWN','push','5200sCufoD','INSERT','1530924bersEG','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','test','1053521TIYWuT','484zwGxwX','454UQBSdy','26967wQzMaS','trim','56WRBHtC','\x20query\x20targeting\x20','replace','268YXAupr','includes','add','from','toUpperCase','25IGPeMV','5914KZHZnC','startsWith','DDL'];a159_0x4872=function(){return _0x411d27;};return a159_0x4872();}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a160_0x52120c=a160_0x1b3a;(function(_0x267830,_0x486c5f){const _0xe1da9=a160_0x1b3a,_0x50b16f=_0x267830();while(!![]){try{const _0x440344=-parseInt(_0xe1da9(0x175))/0x1+parseInt(_0xe1da9(0x172))/0x2*(parseInt(_0xe1da9(0x17a))/0x3)+parseInt(_0xe1da9(0x17c))/0x4*(parseInt(_0xe1da9(0x16b))/0x5)+-parseInt(_0xe1da9(0x16c))/0x6+parseInt(_0xe1da9(0x179))/0x7*(-parseInt(_0xe1da9(0x178))/0x8)+-parseInt(_0xe1da9(0x177))/0x9+parseInt(_0xe1da9(0x16f))/0xa*(parseInt(_0xe1da9(0x16d))/0xb);if(_0x440344===_0x486c5f)break;else _0x50b16f['push'](_0x50b16f['shift']());}catch(_0x5bc868){_0x50b16f['push'](_0x50b16f['shift']());}}}(a160_0x4a9b,0x36fed));function a160_0x4a9b(){const _0x43bc95=['Run\x20`','345320gzvxgO','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','1250712ipNCFV','488hgDBrd','3227qIGsfQ','3PVNvYK','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','1196fHKyNr','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','5305UtvWev','1310028DquBtR','539kjlpYI','Tip:\x20`','44780ofzGCj','Set\x20appcode\x20via\x20`','\x0a\x20\x20\x20\x20\x20\x20\x20','838694NsfiIS','\x20auth`\x20to\x20login\x20first.'];a160_0x4a9b=function(){return _0x43bc95;};return a160_0x4a9b();}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};function a160_0x1b3a(_0x250e36,_0x33ea31){_0x250e36=_0x250e36-0x16b;const _0x4a9bf9=a160_0x4a9b();let _0x1b3ab0=_0x4a9bf9[_0x250e36];return _0x1b3ab0;}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a160_0x52120c(0x174)+CLI_BIN_NAME+a160_0x52120c(0x173),'configMissingHint':[a160_0x52120c(0x170)+CLI_BIN_NAME+a160_0x52120c(0x176),a160_0x52120c(0x16e)+CLI_BIN_NAME+a160_0x52120c(0x17b)]['join'](a160_0x52120c(0x171)),'notInProjectHint':a160_0x52120c(0x17d)});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x45ef03,_0x2510ed){var _0x38267f=a161_0xd06e,_0x4d0d0c=_0x45ef03();while(!![]){try{var _0x2a891b=parseInt(_0x38267f(0x9e))/0x1*(parseInt(_0x38267f(0xa9))/0x2)+-parseInt(_0x38267f(0xa6))/0x3*(parseInt(_0x38267f(0xa2))/0x4)+parseInt(_0x38267f(0xa5))/0x5+parseInt(_0x38267f(0xa1))/0x6*(-parseInt(_0x38267f(0xa7))/0x7)+parseInt(_0x38267f(0xa4))/0x8*(-parseInt(_0x38267f(0xa0))/0x9)+parseInt(_0x38267f(0xa8))/0xa+parseInt(_0x38267f(0xa3))/0xb*(parseInt(_0x38267f(0x9f))/0xc);if(_0x2a891b===_0x2510ed)break;else _0x4d0d0c['push'](_0x4d0d0c['shift']());}catch(_0x235325){_0x4d0d0c['push'](_0x4d0d0c['shift']());}}}(a161_0x5e02,0x862c1));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a161_0xd06e(_0x19edca,_0x2f189a){_0x19edca=_0x19edca-0x9e;var _0x5e0297=a161_0x5e02();var _0xd06e9d=_0x5e0297[_0x19edca];return _0xd06e9d;}import{buildAllFlags as a161_0x376f2e}from'@lovrabet/cli-framework';function a161_0x5e02(){var _0x777cd8=['129mJyick','7161609csUbRZ','5671300GYjNIU','70ENZZIJ','22171RYkfqA','60yPUagT','5400tAOcku','6PRWEik','68028zAcQwu','2279453ICWPwJ','5464PNjbdn','1672635NqBxkb'];a161_0x5e02=function(){return _0x777cd8;};return a161_0x5e02();}export function buildAllFlags(_0x4030a6){return a161_0x376f2e(_0x4030a6,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a162_0x2241(_0x2d61d7,_0x22c650){_0x2d61d7=_0x2d61d7-0x85;const _0x5106ad=a162_0x5106();let _0x224140=_0x5106ad[_0x2d61d7];return _0x224140;}function a162_0x5106(){const _0x2324c0=['5575coAGyj','211060AzweqW','2844gvTKmC','4022166yccGzL','374DLWIZZ','validateFlags','5537178BDRHds','428136ZqIDXr','2112498FXSZmH','294ClnYcc','1214oyMgYI','147EjNLcL'];a162_0x5106=function(){return _0x2324c0;};return a162_0x5106();}const a162_0x4ebbdd=a162_0x2241;(function(_0x1f86fa,_0xfd9ca6){const _0xb15cb7=a162_0x2241,_0xb15178=_0x1f86fa();while(!![]){try{const _0x761097=parseInt(_0xb15cb7(0x86))/0x1*(parseInt(_0xb15cb7(0x87))/0x2)+-parseInt(_0xb15cb7(0x85))/0x3+-parseInt(_0xb15cb7(0x8b))/0x4*(parseInt(_0xb15cb7(0x89))/0x5)+parseInt(_0xb15cb7(0x8c))/0x6+-parseInt(_0xb15cb7(0x88))/0x7*(-parseInt(_0xb15cb7(0x90))/0x8)+-parseInt(_0xb15cb7(0x8f))/0x9+-parseInt(_0xb15cb7(0x8a))/0xa*(-parseInt(_0xb15cb7(0x8d))/0xb);if(_0x761097===_0xfd9ca6)break;else _0xb15178['push'](_0xb15178['shift']());}catch(_0xcaf539){_0xb15178['push'](_0xb15178['shift']());}}}(a162_0x5106,0x8d23b));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a162_0x4ebbdd(0x8e)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a163_0x5ca747=a163_0x20bd;(function(_0x35afee,_0x4f05c9){const _0x34da2e=a163_0x20bd,_0x5850bb=_0x35afee();while(!![]){try{const _0x412d3d=parseInt(_0x34da2e(0x18e))/0x1*(parseInt(_0x34da2e(0x18f))/0x2)+-parseInt(_0x34da2e(0x197))/0x3+-parseInt(_0x34da2e(0x195))/0x4+-parseInt(_0x34da2e(0x193))/0x5+-parseInt(_0x34da2e(0x194))/0x6*(parseInt(_0x34da2e(0x189))/0x7)+parseInt(_0x34da2e(0x196))/0x8*(parseInt(_0x34da2e(0x190))/0x9)+-parseInt(_0x34da2e(0x198))/0xa*(-parseInt(_0x34da2e(0x191))/0xb);if(_0x412d3d===_0x4f05c9)break;else _0x5850bb['push'](_0x5850bb['shift']());}catch(_0x26c75d){_0x5850bb['push'](_0x5850bb['shift']());}}}(a163_0x4c3f,0xeec78));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a163_0x20bd(_0x6884fc,_0x27a223){_0x6884fc=_0x6884fc-0x189;const _0x4c3f97=a163_0x4c3f();let _0x20bd16=_0x4c3f97[_0x6884fc];return _0x20bd16;}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':_0x4eb6a9=>serviceGroups[a163_0x5ca747(0x18a)](_0x4eb6a9),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a163_0x5ca747(0x192)+CLI_BIN_NAME+'\x20project\x20init`\x20or\x20--appcode).','serviceUsageSuffix':'\x20[args]\x20[flags]','includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x4946cb){const _0x55fc2d=a163_0x5ca747;return generators[_0x55fc2d(0x18c)](_0x4946cb);}export const generateServiceHelp=generators[a163_0x5ca747(0x18d)];function a163_0x4c3f(){const _0x160646=['1512WVLLGW','44lmnjPJ','Requires\x20appcode\x20(set\x20via\x20`','2461895KYoEHX','78GGFDau','248312HuwNTa','77464VEEpGI','4994025QmxSkX','3263020NBsSRW','747019SIXOim','get','generateFullHelp','generateCommandHelp','generateServiceHelp','150231yrCSEY','22OnPHDe'];a163_0x4c3f=function(){return _0x160646;};return a163_0x4c3f();}export const generateFullHelp=generators[a163_0x5ca747(0x18b)];
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x278965,_0x4baa03){var _0x247439=a164_0x2f78,_0x25ac63=_0x278965();while(!![]){try{var _0x243412=parseInt(_0x247439(0xae))/0x1+parseInt(_0x247439(0xac))/0x2+parseInt(_0x247439(0xa8))/0x3+-parseInt(_0x247439(0xa9))/0x4+parseInt(_0x247439(0xa7))/0x5*(parseInt(_0x247439(0xaf))/0x6)+parseInt(_0x247439(0xad))/0x7*(parseInt(_0x247439(0xaa))/0x8)+-parseInt(_0x247439(0xab))/0x9;if(_0x243412===_0x4baa03)break;else _0x25ac63['push'](_0x25ac63['shift']());}catch(_0x4f080d){_0x25ac63['push'](_0x25ac63['shift']());}}}(a164_0x35b5,0xa4620));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a164_0x2f78(_0x2b2027,_0x43120a){_0x2b2027=_0x2b2027-0xa7;var _0x35b525=a164_0x35b5();var _0x2f7806=_0x35b525[_0x2b2027];return _0x2f7806;}export{extractList,extractPaging}from'../framework/response.js';function a164_0x35b5(){var _0x5a87ed=['7fudgxh','409707lSvaNf','4490742NinjTH','5YCDBeU','2804610IvThKr','4494232gTlyQp','4624376iTijhW','10134711NOPybY','503736NcVcAV'];a164_0x35b5=function(){return _0x5a87ed;};return a164_0x35b5();}export{riskLevelOrder}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x12af75,_0x1be803){const _0x317b17=a165_0x1bf6,_0x2a614b=_0x12af75();while(!![]){try{const _0x1c0688=-parseInt(_0x317b17(0x151))/0x1+-parseInt(_0x317b17(0x14d))/0x2*(-parseInt(_0x317b17(0x152))/0x3)+parseInt(_0x317b17(0x154))/0x4+-parseInt(_0x317b17(0x14f))/0x5+-parseInt(_0x317b17(0x150))/0x6+parseInt(_0x317b17(0x155))/0x7+-parseInt(_0x317b17(0x153))/0x8*(-parseInt(_0x317b17(0x14e))/0x9);if(_0x1c0688===_0x1be803)break;else _0x2a614b['push'](_0x2a614b['shift']());}catch(_0x4570b8){_0x2a614b['push'](_0x2a614b['shift']());}}}(a165_0x8f04,0x1f17f));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a165_0x1bf6(_0x373a84,_0x2f5268){_0x373a84=_0x373a84-0x14d;const _0x8f04e8=a165_0x8f04();let _0x1bf668=_0x8f04e8[_0x373a84];return _0x1bf668;}function a165_0x8f04(){const _0x186904=['1263285TsGeUC','813072tRMhoW','48555XzdKzx','99069wZuAtB','424tvYxpU','605248sBgWMG','411719HGkGhQ','10IFFKDI','32067QRUQQk'];a165_0x8f04=function(){return _0x186904;};return a165_0x8f04();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x416f08,_0x128396){var _0xc96f73=a166_0xe800,_0x27ce7b=_0x416f08();while(!![]){try{var _0x2fa397=-parseInt(_0xc96f73(0x180))/0x1+-parseInt(_0xc96f73(0x181))/0x2*(-parseInt(_0xc96f73(0x185))/0x3)+parseInt(_0xc96f73(0x17c))/0x4*(-parseInt(_0xc96f73(0x17b))/0x5)+parseInt(_0xc96f73(0x17e))/0x6*(-parseInt(_0xc96f73(0x17f))/0x7)+parseInt(_0xc96f73(0x182))/0x8+-parseInt(_0xc96f73(0x183))/0x9*(parseInt(_0xc96f73(0x17d))/0xa)+parseInt(_0xc96f73(0x184))/0xb;if(_0x2fa397===_0x128396)break;else _0x27ce7b['push'](_0x27ce7b['shift']());}catch(_0x48f613){_0x27ce7b['push'](_0x27ce7b['shift']());}}}(a166_0xe9b1,0x9e29e));function a166_0xe800(_0x19bf64,_0x592965){_0x19bf64=_0x19bf64-0x17b;var _0xe9b19f=a166_0xe9b1();var _0xe800e6=_0xe9b19f[_0x19bf64];return _0xe800e6;}function a166_0xe9b1(){var _0x42e383=['2575581qvmkXy','2330MYMEJY','212zdOEAA','9129290qawaZu','6GbKTsR','5667053iVpYFw','443581CdgKSI','2ikeqyQ','4024736SzlITL','9GOnxqD','16247066SucSfk'];a166_0xe9b1=function(){return _0x42e383;};return a166_0xe9b1();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xb97823,_0x259479){const _0x28fec2=a167_0x1f44,_0x1b22be=_0xb97823();while(!![]){try{const _0x5e0a66=parseInt(_0x28fec2(0x182))/0x1+parseInt(_0x28fec2(0x185))/0x2+-parseInt(_0x28fec2(0x195))/0x3*(parseInt(_0x28fec2(0x17f))/0x4)+parseInt(_0x28fec2(0x188))/0x5*(parseInt(_0x28fec2(0x18c))/0x6)+parseInt(_0x28fec2(0x18e))/0x7*(-parseInt(_0x28fec2(0x18d))/0x8)+-parseInt(_0x28fec2(0x186))/0x9+parseInt(_0x28fec2(0x190))/0xa;if(_0x5e0a66===_0x259479)break;else _0x1b22be['push'](_0x1b22be['shift']());}catch(_0x5d7b0c){_0x1b22be['push'](_0x1b22be['shift']());}}}(a167_0x4f57,0xe55d6));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a167_0x4f57(){const _0x25b059=['.\x20Run\x20`','305605qTFvFp','name','Available\x20aliases:\x20','map','30AaeoGz','67344CwWGkf','161wsgvqr','length','18157030EnZsFq','Unknown\x20alias\x20\x22','some','No\x20api.ts\x20found\x20in\x20','type','3sVTbwc','join','7274764nIhWNY','alias','string','594570CVDdeM','validation','code','2974686KyMotx','11262942PIOhHF'];a167_0x4f57=function(){return _0x25b059;};return a167_0x4f57();}function a167_0x1f44(_0x4b3cbc,_0x5c01f0){_0x4b3cbc=_0x4b3cbc-0x17f;const _0x4f57ec=a167_0x4f57();let _0x1f44d2=_0x4f57ec[_0x4b3cbc];return _0x1f44d2;}export function resolveAliasToCode(_0x3979d1,_0x214058,_0x5aaeca,_0x2d5f51){const _0x33293c=a167_0x1f44,_0x217c18=_0x3979d1['flags'][_0x33293c(0x192)](_0x12f528=>_0x12f528[_0x33293c(0x189)]===_0x33293c(0x184)&&_0x12f528['type']===_0x33293c(0x181)),_0x4705a1=_0x3979d1['flags']['some'](_0x4fbbad=>_0x4fbbad['name']===_0x33293c(0x180)&&_0x4fbbad[_0x33293c(0x194)]===_0x33293c(0x181));if(!_0x217c18||!_0x4705a1)return;const _0x14241d=_0x214058[_0x33293c(0x184)]?String(_0x214058[_0x33293c(0x184)]):'',_0x22e034=_0x214058['alias']?String(_0x214058[_0x33293c(0x180)]):'';if(!_0x14241d&&!_0x22e034)throw CliErrors[_0x33293c(0x183)]('`'+_0x2d5f51+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x22e034&&!_0x14241d){const _0x960716=resolveAlias(_0x5aaeca,_0x22e034);if(!_0x960716){const _0x3a152a=listAliases(_0x5aaeca)[_0x33293c(0x18b)](_0x4055f6=>_0x4055f6[_0x33293c(0x180)]),_0x3bf18b=_0x3a152a[_0x33293c(0x18f)]?_0x33293c(0x18a)+_0x3a152a[_0x33293c(0x196)](',\x20'):_0x33293c(0x193)+_0x5aaeca+_0x33293c(0x187)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors['validation'](_0x33293c(0x191)+_0x22e034+'\x22.\x20'+_0x3bf18b);}_0x214058['code']=_0x960716;}}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a168_0x41801c=a168_0x2ec4;function a168_0x2ec4(_0x1a94df,_0x76b596){_0x1a94df=_0x1a94df-0x1f4;const _0x565149=a168_0x5651();let _0x2ec4f8=_0x565149[_0x1a94df];return _0x2ec4f8;}(function(_0x55345a,_0x40705f){const _0x5b107a=a168_0x2ec4,_0x1bc50c=_0x55345a();while(!![]){try{const _0x495f7f=parseInt(_0x5b107a(0x1ff))/0x1*(parseInt(_0x5b107a(0x20b))/0x2)+parseInt(_0x5b107a(0x207))/0x3+parseInt(_0x5b107a(0x1f8))/0x4*(-parseInt(_0x5b107a(0x202))/0x5)+parseInt(_0x5b107a(0x21d))/0x6*(parseInt(_0x5b107a(0x1f9))/0x7)+parseInt(_0x5b107a(0x212))/0x8+parseInt(_0x5b107a(0x200))/0x9*(-parseInt(_0x5b107a(0x217))/0xa)+-parseInt(_0x5b107a(0x21a))/0xb;if(_0x495f7f===_0x40705f)break;else _0x1bc50c['push'](_0x1bc50c['shift']());}catch(_0x36a725){_0x1bc50c['push'](_0x1bc50c['shift']());}}}(a168_0x5651,0x9af00));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 a168_0xad278}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x66796e,_0x46dad4,_0x7b7765=[]){const _0x43b6c4=a168_0x2ec4;return{'rawFlags':_0x46dad4,'args':_0x7b7765,'resolveAppCode':()=>_0x66796e['appCode']||_0x46dad4[_0x43b6c4(0x1fa)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x66796e['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a168_0xad278(_0x46dad4),'defaultFormat':_0x66796e[_0x43b6c4(0x201)],'defaultPageSize':_0x66796e[_0x43b6c4(0x1fd)],'defaultVerbose':_0x66796e[_0x43b6c4(0x214)],'apiDir':_0x66796e[_0x43b6c4(0x20c)],'riskLevel':_0x66796e[_0x43b6c4(0x215)],'selectedAppName':_0x66796e[_0x43b6c4(0x1fe)],'mergedCli':{'defaultApp':_0x66796e[_0x43b6c4(0x20d)],'currentApp':_0x66796e['currentApp'],'appCode':_0x66796e[_0x43b6c4(0x218)],'apps':_0x66796e['apps']}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a168_0x41801c(0x20f)](_0x5438bf=>PIPELINE_FLAG_NAMES[a168_0x41801c(0x204)](_0x5438bf[a168_0x41801c(0x1f4)]))[a168_0x41801c(0x213)](({name:_0x231863,type:_0x27676b,description:_0x52902d})=>({'name':_0x231863,'type':_0x27676b,'description':_0x52902d})),'formatOutput':formatOutput,'getCommandLabel'(_0x5a585b){const _0x4cc0d4=a168_0x41801c;return CLI_BIN_NAME+'\x20'+_0x5a585b[_0x4cc0d4(0x219)]+'\x20'+_0x5a585b[_0x4cc0d4(0x203)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x3e1806){const _0x41049f=a168_0x41801c;return CliErrors[_0x41049f(0x20a)](_0x3e1806);}},async 'prepare'(_0x39ac8f,_0x59d2af,_0x2c1822,_0x35cdd0){const _0x3074e6=a168_0x41801c,_0x27cabf=_0x59d2af['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x39ac8f,_0x2c1822,_0x27cabf,_0x35cdd0);let _0x30645b='';if(_0x39ac8f[_0x3074e6(0x206)]!==![]){_0x30645b=_0x59d2af['resolveCookie']();if(!_0x30645b)throw CliErrors[_0x3074e6(0x209)]();const {setActiveCookie:_0x2dda64}=await import(_0x3074e6(0x1fb));_0x2dda64(_0x30645b);}const _0x4d5868=_0x59d2af['resolveAppCode']()??'';if(_0x39ac8f[_0x3074e6(0x210)]!==![]){if(!_0x4d5868)throw CliErrors[_0x3074e6(0x1f6)](_0x3074e6(0x1f7)+CLI_BIN_NAME+_0x3074e6(0x21c));}return{'defaults':{'booleans':{'verbose':_0x59d2af[_0x3074e6(0x211)]},'numbers':{'pagesize':_0x59d2af['defaultPageSize']}},'extras':{'appCode':_0x4d5868,'cookie':_0x30645b,'apiDomain':_0x59d2af[_0x3074e6(0x216)](),'apiDir':_0x27cabf,'selectedAppName':_0x59d2af[_0x3074e6(0x1fc)],'mergedCli':_0x59d2af[_0x3074e6(0x21b)]}};},async 'confirmHighRisk'({env:_0x37f817,commandLabel:_0x14f0c4}){const _0x3e3639=a168_0x41801c;if(_0x37f817[_0x3e3639(0x20e)])throw CliErrors['validation'](_0x3e3639(0x208)+_0x14f0c4+_0x3e3639(0x21e));await requireConfirmationPrompt({'lines':[_0x3e3639(0x1f5)+_0x14f0c4,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x7c2b25=>CliErrors[_0x3e3639(0x205)](_0x7c2b25)});},async 'finalize'(){const _0x2b0bc6=a168_0x41801c,{clearActiveCookie:_0x2e6de7}=await import(_0x2b0bc6(0x1fb));_0x2e6de7();}};function a168_0x5651(){const _0xcd3a1e=['pageSize','explicitAppName','72158OpHEUR','45sVlTvW','format','5NIrLNr','command','has','cancelled','requiresAuth','2052969FnqhfW','High-risk\x20operation\x20`','authRequired','validation','20rAnfAv','apiDir','defaultApp','isNonInteractive','filter','requiresAppCode','defaultVerbose','7345912rUJQDz','map','verbose','riskLevel','resolveApiDomain','1161400DrFiRU','appCode','service','16992173WQmUGC','mergedCli','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','6XYVmez','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','name','⚠\x20\x20High-risk\x20operation:\x20','configMissing','Set\x20appcode\x20via\x20`','1255684DWTjYG','5248922JavMsd','appcode','../core/api-client.js','selectedAppName'];a168_0x5651=function(){return _0xcd3a1e;};return a168_0x5651();}export async function runCommand(_0xe3cc5c,_0x1940e7){await runCommandWithAdapter(_0xe3cc5c,_0x1940e7,runnerAdapter);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x47bb70,_0x506349){const _0x4af725=a169_0x70d2,_0x456f14=_0x47bb70();while(!![]){try{const _0x51ddb2=parseInt(_0x4af725(0x1cc))/0x1+-parseInt(_0x4af725(0x1cd))/0x2*(parseInt(_0x4af725(0x1cf))/0x3)+-parseInt(_0x4af725(0x1c9))/0x4*(parseInt(_0x4af725(0x1cb))/0x5)+-parseInt(_0x4af725(0x1d3))/0x6*(parseInt(_0x4af725(0x1ce))/0x7)+-parseInt(_0x4af725(0x1d1))/0x8*(-parseInt(_0x4af725(0x1ca))/0x9)+-parseInt(_0x4af725(0x1d2))/0xa+parseInt(_0x4af725(0x1d0))/0xb;if(_0x51ddb2===_0x506349)break;else _0x456f14['push'](_0x456f14['shift']());}catch(_0x129a87){_0x456f14['push'](_0x456f14['shift']());}}}(a169_0x48d4,0xd6ff4));import{buildSchemaPayload as a169_0x28217b}from'@lovrabet/cli-framework';function a169_0x70d2(_0xe466bc,_0x53ec06){_0xe466bc=_0xe466bc-0x1c9;const _0x48d4dc=a169_0x48d4();let _0x70d230=_0x48d4dc[_0xe466bc];return _0x70d230;}import{buildAllFlags}from'../framework/build-all-flags.js';function a169_0x48d4(){const _0x52f396=['189JhqMax','4763133FDRXey','52851777bDWEEt','224DGpUKj','16645130QnXjte','34548OdXLIe','824OPbSVy','244548gdUMfV','35235kBXiEQ','174477xtinNX','2AyygUs'];a169_0x48d4=function(){return _0x52f396;};return a169_0x48d4();}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:_0x5e4bbb,findDefinition:_0x156172}=await import('../commands/registry.js');return a169_0x28217b({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x5e4bbb,'buildAllFlags':buildAllFlags,'findDefinition':_0x156172});}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x343223,_0x340002){var _0x5cbbd8=a170_0x4b8d,_0x1a6d59=_0x343223();while(!![]){try{var _0x282106=parseInt(_0x5cbbd8(0x95))/0x1+parseInt(_0x5cbbd8(0x98))/0x2+parseInt(_0x5cbbd8(0x9c))/0x3+-parseInt(_0x5cbbd8(0x97))/0x4*(parseInt(_0x5cbbd8(0x9e))/0x5)+-parseInt(_0x5cbbd8(0x9b))/0x6+parseInt(_0x5cbbd8(0x96))/0x7*(-parseInt(_0x5cbbd8(0x9a))/0x8)+-parseInt(_0x5cbbd8(0x99))/0x9*(-parseInt(_0x5cbbd8(0x9d))/0xa);if(_0x282106===_0x340002)break;else _0x1a6d59['push'](_0x1a6d59['shift']());}catch(_0x2e9829){_0x1a6d59['push'](_0x1a6d59['shift']());}}}(a170_0x1408,0x98f34));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a170_0x4b8d(_0x1fb434,_0x4dfb4c){_0x1fb434=_0x1fb434-0x95;var _0x14089=a170_0x1408();var _0x4b8df8=_0x14089[_0x1fb434];return _0x4b8df8;}function a170_0x1408(){var _0x316e3b=['7301180LvzEKs','697045kTJthL','713599BPjKCf','77ecbcZQ','24xygUfl','151594mHjSKj','27gkbRDY','321576EBTqXV','6646782QBXRsD','99456nGOBjP'];a170_0x1408=function(){return _0x316e3b;};return a170_0x1408();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a171_0x4a4c65=a171_0x47cf;(function(_0x55d675,_0x969502){const _0xc6425e=a171_0x47cf,_0x257b02=_0x55d675();while(!![]){try{const _0x33ba5d=parseInt(_0xc6425e(0xea))/0x1+parseInt(_0xc6425e(0xf2))/0x2+-parseInt(_0xc6425e(0xef))/0x3*(-parseInt(_0xc6425e(0xe7))/0x4)+parseInt(_0xc6425e(0xf1))/0x5*(parseInt(_0xc6425e(0xe9))/0x6)+parseInt(_0xc6425e(0xe8))/0x7*(-parseInt(_0xc6425e(0xec))/0x8)+parseInt(_0xc6425e(0xeb))/0x9*(-parseInt(_0xc6425e(0xee))/0xa)+-parseInt(_0xc6425e(0xf0))/0xb;if(_0x33ba5d===_0x969502)break;else _0x257b02['push'](_0x257b02['shift']());}catch(_0x5075ee){_0x257b02['push'](_0x257b02['shift']());}}}(a171_0x4895,0x2e364));function a171_0x47cf(_0x5073ed,_0x35d34e){_0x5073ed=_0x5073ed-0xe6;const _0x489545=a171_0x4895();let _0x47cfb5=_0x489545[_0x5073ed];return _0x47cfb5;}export const VERSION=a171_0x4a4c65(0xe6);function a171_0x4895(){const _0x25643b=['194788VRxJZP','18NTXyXN','8ymYuGA','2026-05-21T11:10:28.563Z','1615350obQdKU','150apMcik','2604723EYwwvs','26300TXGNej','717456OYJkLW','2.1.13','13544VyKlVc','110243wdsWJe','48opJXgY'];a171_0x4895=function(){return _0x25643b;};return a171_0x4895();}export const GIT_TAG='v2.1.13';export const GIT_COMMIT='83b122a';export const BUILD_TIME=a171_0x4a4c65(0xed);
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a172_0x7345(_0xef2760,_0x36be37){_0xef2760=_0xef2760-0xc8;var _0x4ecb93=a172_0x4ecb();var _0x734529=_0x4ecb93[_0xef2760];return _0x734529;}function a172_0x4ecb(){var _0x3673c8=['log','239420rjFSsI','\x20--help','2434504KbWzcV','1127216jpfqpX','620UwBgmt','4788637CiizUQ','71005EROUxJ','bold','\x20to\x20view\x20available\x20commands.','\x20\x20Use\x20','27iydUFq','4479CpiAKo','6CKRhSt','green','30VSHxWy','1065805BYqrxB'];a172_0x4ecb=function(){return _0x3673c8;};return a172_0x4ecb();}(function(_0x58f2f6,_0x1d4fc9){var _0x9135c1=a172_0x7345,_0x5ca9f8=_0x58f2f6();while(!![]){try{var _0x2c2a67=-parseInt(_0x9135c1(0xcf))/0x1+-parseInt(_0x9135c1(0xc9))/0x2*(parseInt(_0x9135c1(0xd7))/0x3)+parseInt(_0x9135c1(0xcc))/0x4+-parseInt(_0x9135c1(0xca))/0x5+-parseInt(_0x9135c1(0xd8))/0x6*(-parseInt(_0x9135c1(0xd1))/0x7)+-parseInt(_0x9135c1(0xce))/0x8*(-parseInt(_0x9135c1(0xd6))/0x9)+parseInt(_0x9135c1(0xd0))/0xa*(parseInt(_0x9135c1(0xd2))/0xb);if(_0x2c2a67===_0x1d4fc9)break;else _0x5ca9f8['push'](_0x5ca9f8['shift']());}catch(_0x24b668){_0x5ca9f8['push'](_0x5ca9f8['shift']());}}}(a172_0x4ecb,0xa9833));import a172_0x513c14 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x2f632e=a172_0x7345;console[_0x2f632e(0xcb)](),console[_0x2f632e(0xcb)](a172_0x513c14['green'][_0x2f632e(0xd3)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x2f632e(0xcb)](),console['log'](_0x2f632e(0xd5)+a172_0x513c14[_0x2f632e(0xc8)][_0x2f632e(0xd3)](CLI_BIN_NAME+_0x2f632e(0xcd))+_0x2f632e(0xd4)),console['log']();}
|
package/lib/skills/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x17bebf,_0xf3f064){const _0x27e045=a173_0x42e0,_0x4b8089=_0x17bebf();while(!![]){try{const _0x170e59=-parseInt(_0x27e045(0xda))/0x1*(parseInt(_0x27e045(0xcb))/0x2)+parseInt(_0x27e045(0xd8))/0x3*(-parseInt(_0x27e045(0xbd))/0x4)+-parseInt(_0x27e045(0xd3))/0x5+-parseInt(_0x27e045(0xdc))/0x6+-parseInt(_0x27e045(0xc1))/0x7*(-parseInt(_0x27e045(0xc7))/0x8)+-parseInt(_0x27e045(0xbf))/0x9*(parseInt(_0x27e045(0xc0))/0xa)+-parseInt(_0x27e045(0xd7))/0xb*(-parseInt(_0x27e045(0xbb))/0xc);if(_0x170e59===_0xf3f064)break;else _0x4b8089['push'](_0x4b8089['shift']());}catch(_0x3da2cb){_0x4b8089['push'](_0x4b8089['shift']());}}}(a173_0x3713,0x1e62f));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x321646){const _0x443fd1=a173_0x42e0,_0x393795=[];for(const [_0x30c96b,_0x285a56]of Object[_0x443fd1(0xd2)](_0x321646)){if(_0x285a56===!![]){const _0x31edb8=_0x30c96b['replace'](/([A-Z])/g,_0x443fd1(0xc6))[_0x443fd1(0xcc)]();_0x393795[_0x443fd1(0xba)](_0x31edb8);}}return _0x393795;}function a173_0x3713(){const _0x3837b6=['includes','length','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','setLogPath','-$1','2056scxclL','startsWith','log','Error:\x20Unsupported\x20command:\x20','162918DwASfy','toLowerCase','has','help','(empty)','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','\x20skill\x20--help\x0a\x20\x20','entries','522785NFubXg','slice','argv','exit','12309xEDtHQ','1731QuNGpA','--help','1KuRZqu','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','1446798ADHPMi','不支持的命令:\x20','dangerously-bff-save','add','push','9228FKAEDa','from','1156xEJVOd','Equivalent\x20command:\x20','1795113wOxLDA','10Afitfj','1561fEWKDR'];a173_0x3713=function(){return _0x3837b6;};return a173_0x3713();}export function parseDynamicFlags(){const _0x9f4803=a173_0x42e0,_0x33e785=[];for(let _0x32d0da=0x3;_0x32d0da<process[_0x9f4803(0xd5)][_0x9f4803(0xc3)];_0x32d0da++){const _0x4d02a7=process['argv'][_0x32d0da];if(_0x4d02a7&&_0x4d02a7[_0x9f4803(0xc8)]('--')){const _0x44a6a9=_0x4d02a7[_0x9f4803(0xd4)](0x2);_0x44a6a9&&!_0x44a6a9[_0x9f4803(0xc2)]('=')&&_0x33e785[_0x9f4803(0xba)](_0x44a6a9);}}return _0x33e785;}function a173_0x42e0(_0x392a9f,_0xf981f8){_0x392a9f=_0x392a9f-0xb9;const _0x3713b3=a173_0x3713();let _0x42e060=_0x3713b3[_0x392a9f];return _0x42e060;}export function getAllProvidedFlags(_0x59f825){const _0x1904af=a173_0x42e0,_0x4e9c10=camelCaseFlagsToKebab(_0x59f825),_0x1ec2f6=parseDynamicFlags(),_0x2ba295=new Set([..._0x4e9c10,..._0x1ec2f6]);return Array[_0x1904af(0xbc)](_0x2ba295);}export function normalizeLegacyBffSaveFlags(_0x255d78){const _0x4b78df=a173_0x42e0,_0x41d59b=new Set(_0x255d78);return _0x41d59b[_0x4b78df(0xcd)](_0x4b78df(0xde))&&_0x41d59b[_0x4b78df(0xb9)]('enable-bff-save'),Array[_0x4b78df(0xbc)](_0x41d59b);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x5a2476,_0x1a0a83,_0x413927){const _0x828e06=a173_0x42e0;logger[_0x828e06(0xc5)](process['cwd']());if(_0x413927?.[_0x828e06(0xce)]||_0x5a2476===_0x828e06(0xd9)){showHelp();return;}console['error'](_0x828e06(0xca)+(_0x5a2476||_0x828e06(0xcf))),console['log']('\x0aAvailable\x20commands:'),console['log']('\x20\x20'+CLI_BIN_NAME+_0x828e06(0xc4)),console[_0x828e06(0xc9)]('\x20\x20'+CLI_BIN_NAME+_0x828e06(0xd0)),console[_0x828e06(0xc9)](''),console[_0x828e06(0xc9)](_0x828e06(0xbe)+SKILLS_INSTALL_COMMAND_LINE),logger['error']('skill',_0x828e06(0xdd)+_0x5a2476),process[_0x828e06(0xd6)](0x1);}function showHelp(){const _0x90d5be=a173_0x42e0;console[_0x90d5be(0xc9)]('\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+_0x90d5be(0xd1)+CLI_BIN_NAME+_0x90d5be(0xdb)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a');}
|