@lovrabet/rabetbase-cli 2.1.6 → 2.1.7-beta.3
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/delete.js +1 -0
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/link-create.js +1 -0
- package/lib/commands/dataset/link-delete.js +1 -0
- package/lib/commands/dataset/link-shared.js +1 -0
- package/lib/commands/dataset/link-update.js +1 -0
- 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 -0
- package/lib/commands/issue/report.js +1 -0
- 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 -0
- 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 -1
package/lib/core/bff/hash.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2b40ea,_0x1874f1){const _0x3c8816=a140_0x37d1,_0x3fb6cd=_0x2b40ea();while(!![]){try{const _0x5d1e3f=-parseInt(_0x3c8816(0x1cd))/0x1+parseInt(_0x3c8816(0x1c9))/0x2+parseInt(_0x3c8816(0x1cb))/0x3+-parseInt(_0x3c8816(0x1c3))/0x4+parseInt(_0x3c8816(0x1c8))/0x5*(-parseInt(_0x3c8816(0x1c5))/0x6)+-parseInt(_0x3c8816(0x1c7))/0x7+parseInt(_0x3c8816(0x1cc))/0x8*(parseInt(_0x3c8816(0x1c6))/0x9);if(_0x5d1e3f===_0x1874f1)break;else _0x3fb6cd['push'](_0x3fb6cd['shift']());}catch(_0x2cd1ff){_0x3fb6cd['push'](_0x3fb6cd['shift']());}}}(a140_0x3b2f,0x1e792));import{readFile}from'node:fs/promises';function a140_0x37d1(_0x477576,_0x35e086){_0x477576=_0x477576-0x1c0;const _0x3b2fae=a140_0x3b2f();let _0x37d1bb=_0x3b2fae[_0x477576];return _0x37d1bb;}import a140_0x98e354 from'node:crypto';export function computeContentHash(_0x4fb4af){const _0xf04285=a140_0x37d1;return a140_0x98e354[_0xf04285(0x1ca)](_0xf04285(0x1c4))[_0xf04285(0x1c0)](_0x4fb4af)[_0xf04285(0x1c1)]('hex');}function a140_0x3b2f(){const _0x85c3ad=['85TMutoX','482414vcmhWa','createHash','253581kScRAD','8JtHQVP','47773uddkSp','update','digest','utf8','104452pZAGES','md5','4206VvbbuG','138537Hffpqh','913542QLlzrc'];a140_0x3b2f=function(){return _0x85c3ad;};return a140_0x3b2f();}export async function computeFileHash(_0x45544b){const _0x33456b=a140_0x37d1,_0x2b8398=await readFile(_0x45544b,_0x33456b(0x1c2));return computeContentHash(_0x2b8398);}
|
package/lib/core/bff/lock.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xc82b86,_0x287313){const _0x3e3053=a141_0x2570,_0xe210e7=_0xc82b86();while(!![]){try{const _0x2e99b3=-parseInt(_0x3e3053(0xc7))/0x1*(parseInt(_0x3e3053(0xd2))/0x2)+-parseInt(_0x3e3053(0xd0))/0x3*(parseInt(_0x3e3053(0xd6))/0x4)+parseInt(_0x3e3053(0xc1))/0x5+parseInt(_0x3e3053(0xcd))/0x6+parseInt(_0x3e3053(0xc9))/0x7*(-parseInt(_0x3e3053(0xc6))/0x8)+-parseInt(_0x3e3053(0xc4))/0x9+parseInt(_0x3e3053(0xcf))/0xa;if(_0x2e99b3===_0x287313)break;else _0xe210e7['push'](_0xe210e7['shift']());}catch(_0x47942a){_0xe210e7['push'](_0xe210e7['shift']());}}}(a141_0x1640,0x24a23));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a141_0x2570(_0xcb2e25,_0x55de7f){_0xcb2e25=_0xcb2e25-0xc1;const _0x1640c5=a141_0x1640();let _0x257003=_0x1640c5[_0xcb2e25];return _0x257003;}export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x3e5011,_0x3dfbc3,_0x424be6,_0x10991a){const _0x31d1ba=a141_0x2570,_0x467a7a={'apps':_0x3e5011[_0x31d1ba(0xc5)]&&typeof _0x3e5011[_0x31d1ba(0xc5)]===_0x31d1ba(0xd5)?_0x3e5011['apps']:{}};let _0x58cf89=_0x467a7a[_0x31d1ba(0xc5)][_0x3dfbc3];if(!_0x58cf89)return _0x58cf89={'scriptsRoot':_0x424be6,'lastSync':'','functions':{}},_0x467a7a[_0x31d1ba(0xc5)][_0x3dfbc3]=_0x58cf89,{'lockData':_0x467a7a,'appLock':_0x58cf89};if(!_0x58cf89[_0x31d1ba(0xd7)])_0x58cf89[_0x31d1ba(0xd7)]=_0x424be6;else{if(_0x58cf89['scriptsRoot']!==_0x424be6)throw new Error(_0x10991a+_0x31d1ba(0xd1)+(_0x31d1ba(0xd8)+_0x424be6+_0x31d1ba(0xd3)+_0x58cf89[_0x31d1ba(0xd7)]+_0x31d1ba(0xce))+_0x31d1ba(0xc8));}return!_0x58cf89[_0x31d1ba(0xca)]&&(_0x58cf89[_0x31d1ba(0xca)]={}),!_0x58cf89[_0x31d1ba(0xc3)]&&(_0x58cf89[_0x31d1ba(0xc3)]=''),{'lockData':_0x467a7a,'appLock':_0x58cf89};}export async function readBffLockFile(_0x5934e2){const _0x2742ba=a141_0x2570;try{const _0x413a2e=await readFile(_0x5934e2,_0x2742ba(0xcc)),_0x49976b=JSON[_0x2742ba(0xd4)](_0x413a2e);return{'apps':_0x49976b[_0x2742ba(0xc5)]&&typeof _0x49976b['apps']===_0x2742ba(0xd5)?_0x49976b[_0x2742ba(0xc5)]:{}};}catch(_0x47ce5c){if(_0x47ce5c[_0x2742ba(0xc2)]==='ENOENT')return null;throw new Error(_0x2742ba(0xcb)+String(_0x47ce5c));}}function a141_0x1640(){const _0x3ba632=['6252990ZoliIB','21jJkPyX',':\x20scriptsRoot\x20mismatch\x20—\x20','114juycgO','\x22\x20vs\x20lock\x20\x22','parse','object','116804sVaJzK','scriptsRoot','current\x20\x22','388130BtjUOK','code','lastSync','172386uZgMvP','apps','16sCNwSD','1533cFGnhP','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','975037pigafe','functions','Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20','utf8','219900cAecpq','\x22.\x20'];a141_0x1640=function(){return _0x3ba632;};return a141_0x1640();}export async function writeBffLockFile(_0x153839,_0x4b7d31){const _0x17568c=a141_0x2570;await mkdir(dirname(_0x153839),{'recursive':!![]}),await writeFile(_0x153839,JSON['stringify'](_0x4b7d31,null,0x2),_0x17568c(0xcc));}
|
package/lib/core/bff/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x27a265,_0x35d9ce){const _0x2a974b=a143_0x2c1b,_0x215c2f=_0x27a265();while(!![]){try{const _0x154601=-parseInt(_0x2a974b(0x136))/0x1*(-parseInt(_0x2a974b(0x13b))/0x2)+parseInt(_0x2a974b(0x139))/0x3*(-parseInt(_0x2a974b(0x13c))/0x4)+parseInt(_0x2a974b(0x143))/0x5+parseInt(_0x2a974b(0x134))/0x6+-parseInt(_0x2a974b(0x135))/0x7+parseInt(_0x2a974b(0x13a))/0x8+-parseInt(_0x2a974b(0x137))/0x9;if(_0x154601===_0x35d9ce)break;else _0x215c2f['push'](_0x215c2f['shift']());}catch(_0x438762){_0x215c2f['push'](_0x215c2f['shift']());}}}(a143_0xcfc0,0x5312c));export function snakeToCamel(_0x51dde6){const _0x100b83=a143_0x2c1b;return _0x51dde6[_0x100b83(0x13f)]()[_0x100b83(0x142)](/_([a-z])/g,(_0x5d7dc1,_0x3ffffb)=>_0x3ffffb[_0x100b83(0x13d)]());}function a143_0x2c1b(_0x5d947c,_0x1e11e){_0x5d947c=_0x5d947c-0x133;const _0xcfc041=a143_0xcfc0();let _0x2c1b42=_0xcfc041[_0x5d947c];return _0x2c1b42;}export function findHookLocationByRemoteId(_0xbca79,_0x26f9a2){const _0x4f7243=a143_0x2c1b;if(!_0x26f9a2)return undefined;for(const _0x22efe5 of Object['values'](_0xbca79)){if(_0x22efe5[_0x4f7243(0x133)]===_0x26f9a2&&_0x22efe5['datasetCode']&&_0x22efe5[_0x4f7243(0x138)]&&_0x22efe5[_0x4f7243(0x144)])return{'datasetCode':_0x22efe5['datasetCode'],'operationType':_0x22efe5[_0x4f7243(0x138)],'functionNode':_0x22efe5[_0x4f7243(0x144)]};}return undefined;}function a143_0xcfc0(){const _0x104a68=['2026734Ghyzla','1595153Cmrngn','70216zIbpFz','8179470xUewjQ','operationType','3yRaSjh','5170616NwEYnB','10lLSdqK','1387268RmpWkl','toUpperCase','match','toLowerCase','before','after','replace','2442990psCiej','functionNode','remoteId'];a143_0xcfc0=function(){return _0x104a68;};return a143_0xcfc0();}export function extractScriptDescription(_0x20dada){const _0x5082a0=a143_0x2c1b,_0x1b47cf=_0x20dada[_0x5082a0(0x13e)](/\[\s*脚本描述\s*]\s*(.+)/);return _0x1b47cf?.[0x1]?.['trim']()||undefined;}export function isValidBffFunctionName(_0x2523e0){return/^[A-Za-z_$][A-Za-z0-9_$]*$/['test'](_0x2523e0);}export function normalizeHookFunctionNode(_0x58fb2f){const _0x2bd9ca=a143_0x2c1b;if(!_0x58fb2f)return undefined;const _0x31e7dd=_0x58fb2f['trim']()[_0x2bd9ca(0x13f)]();if(_0x31e7dd===_0x2bd9ca(0x140)||_0x31e7dd===_0x2bd9ca(0x141))return _0x31e7dd;return undefined;}
|
package/lib/core/db-resolver.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x21d48b,_0x45da51){const _0x122a42=a144_0x4427,_0x20c6b1=_0x21d48b();while(!![]){try{const _0x3dcea2=parseInt(_0x122a42(0x128))/0x1*(parseInt(_0x122a42(0x13c))/0x2)+-parseInt(_0x122a42(0x134))/0x3*(parseInt(_0x122a42(0x13e))/0x4)+-parseInt(_0x122a42(0x135))/0x5+-parseInt(_0x122a42(0x125))/0x6+-parseInt(_0x122a42(0x130))/0x7+parseInt(_0x122a42(0x137))/0x8+parseInt(_0x122a42(0x12a))/0x9;if(_0x3dcea2===_0x45da51)break;else _0x20c6b1['push'](_0x20c6b1['shift']());}catch(_0x3d964d){_0x20c6b1['push'](_0x20c6b1['shift']());}}}(a144_0x3457,0x82697));import{listDatasets}from'../core/api-client.js';function a144_0x4427(_0x10b706,_0x1d9263){_0x10b706=_0x10b706-0x125;const _0x34578b=a144_0x3457();let _0x442750=_0x34578b[_0x10b706];return _0x442750;}const cache=new Map();function a144_0x3457(){const _0xccb21b=['270124EcnQsO','3014100zfWXaO','toLowerCase','find','1303EuHXYk','join','8426214DNzgBM','.\x20Be\x20more\x20specific.','map','has','get','\x22\x20matches\x20multiple\x20databases:\x20','4371612JNXjyC','includes','length','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','12BAAbhn','173975Lvoiko','dbId','4933240aJUzdn','dbName','set','\x22.\x20Available:\x20','No\x20linked\x20databases\x20found\x20for\x20this\x20app.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','634QtiDsd','entries'];a144_0x3457=function(){return _0xccb21b;};return a144_0x3457();}export async function listDatabases(_0x16153c){const _0xcaf3f6=a144_0x4427;if(cache[_0xcaf3f6(0x12d)](_0x16153c))return cache[_0xcaf3f6(0x12e)](_0x16153c);const _0x299929=await listDatasets(_0x16153c),_0x5afcbb=new Map();for(const _0x417fb0 of _0x299929){const _0x2ddff7=_0x417fb0['dbtableConfig'];_0x2ddff7?.[_0xcaf3f6(0x136)]!=null&&_0x5afcbb[_0xcaf3f6(0x139)](_0x2ddff7['dbId'],_0x2ddff7['dbName']??'db-'+_0x2ddff7['dbId']);}const _0x44d573=[..._0x5afcbb[_0xcaf3f6(0x13d)]()][_0xcaf3f6(0x12c)](([_0x2bdd5b,_0x58cb91])=>({'dbId':_0x2bdd5b,'dbName':_0x58cb91}));return cache[_0xcaf3f6(0x139)](_0x16153c,_0x44d573),_0x44d573;}export async function resolveDb(_0x235a31,_0x346dce){const _0x31c910=a144_0x4427,_0x5aa15d=await listDatabases(_0x235a31);if(_0x5aa15d[_0x31c910(0x132)]===0x0)return{'resolved':[],'error':_0x31c910(0x13b)};if(!_0x346dce)return{'resolved':_0x5aa15d};const _0x52d7a6=Number(_0x346dce);if(!Number['isNaN'](_0x52d7a6)){const _0x5239a5=_0x5aa15d[_0x31c910(0x127)](_0x518040=>_0x518040[_0x31c910(0x136)]===_0x52d7a6);if(_0x5239a5)return{'resolved':[_0x5239a5]};}const _0x160088=_0x346dce[_0x31c910(0x126)](),_0x6349fa=_0x5aa15d['filter'](_0x263dc3=>_0x263dc3['dbName']['toLowerCase']()[_0x31c910(0x131)](_0x160088));if(_0x6349fa[_0x31c910(0x132)]>0x0)return{'resolved':_0x6349fa};const _0x66e2e2=_0x5aa15d[_0x31c910(0x12c)](_0x2e264b=>_0x2e264b[_0x31c910(0x138)]+'\x20('+_0x2e264b[_0x31c910(0x136)]+')')[_0x31c910(0x129)](',\x20');return{'resolved':[],'error':'No\x20database\x20matching\x20\x22'+_0x346dce+_0x31c910(0x13a)+_0x66e2e2};}export async function resolveOneDb(_0x1a4b58,_0x422c48){const _0xe6a3ef=a144_0x4427,{resolved:_0x3d468c,error:_0x467dfa}=await resolveDb(_0x1a4b58,_0x422c48);if(_0x467dfa)return{'db':null,'error':_0x467dfa};if(_0x3d468c[_0xe6a3ef(0x132)]===0x1)return{'db':_0x3d468c[0x0]};if(!_0x422c48){const _0x34cd42=_0x3d468c[_0xe6a3ef(0x12c)](_0x4cf9ea=>_0x4cf9ea[_0xe6a3ef(0x138)]+'\x20('+_0x4cf9ea['dbId']+')')[_0xe6a3ef(0x129)](',\x20');return{'db':null,'error':_0xe6a3ef(0x133)+_0x34cd42};}const _0x2d5646=_0x3d468c[_0xe6a3ef(0x12c)](_0x36193f=>_0x36193f[_0xe6a3ef(0x138)]+'\x20('+_0x36193f[_0xe6a3ef(0x136)]+')')[_0xe6a3ef(0x129)](',\x20');return{'db':null,'error':'\x22'+_0x422c48+_0xe6a3ef(0x12f)+_0x2d5646+_0xe6a3ef(0x12b)};}export async function getDbName(_0xee0af,_0x59bcba){const _0x38ef8a=a144_0x4427,_0x3ad849=await listDatabases(_0xee0af);return _0x3ad849[_0x38ef8a(0x127)](_0x28371a=>_0x28371a[_0x38ef8a(0x136)]===_0x59bcba)?.[_0x38ef8a(0x138)];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1189bb,_0x5e256c){const _0x112d21=a145_0xace8,_0x3efb27=_0x1189bb();while(!![]){try{const _0x389670=-parseInt(_0x112d21(0x1df))/0x1+-parseInt(_0x112d21(0x1ec))/0x2*(-parseInt(_0x112d21(0x1de))/0x3)+-parseInt(_0x112d21(0x1dd))/0x4*(parseInt(_0x112d21(0x1e3))/0x5)+-parseInt(_0x112d21(0x1e1))/0x6*(-parseInt(_0x112d21(0x1ea))/0x7)+-parseInt(_0x112d21(0x1e8))/0x8+parseInt(_0x112d21(0x1e4))/0x9*(-parseInt(_0x112d21(0x1e5))/0xa)+parseInt(_0x112d21(0x1e2))/0xb;if(_0x389670===_0x5e256c)break;else _0x3efb27['push'](_0x3efb27['shift']());}catch(_0x11e49f){_0x3efb27['push'](_0x3efb27['shift']());}}}(a145_0x45ed,0x23ca9));function a145_0xace8(_0x4fbdd6,_0x3b1291){_0x4fbdd6=_0x4fbdd6-0x1db;const _0x45ed76=a145_0x45ed();let _0xace8cf=_0x45ed76[_0x4fbdd6];return _0xace8cf;}import{constants}from'node:fs';import{access,mkdir}from'node:fs/promises';import{dirname,join,resolve}from'node:path';export function loadPageProjectConfig(_0x1ed03e,_0x1ad84b=process['cwd']()){const _0x238772=a145_0xace8,_0x4fee75=resolve(_0x1ad84b),_0x2068cc=join(_0x4fee75,'.rabetbase',_0x238772(0x1e7));return{'projectRoot':_0x4fee75,'pagesBaseDir':_0x2068cc,'appPagesDir':join(_0x2068cc,_0x1ed03e),'lockFilePath':join(_0x4fee75,_0x238772(0x1db),_0x238772(0x1e0))};}export function buildPageFileName(_0x38d63b,_0x585f40){const _0x3cc306=a145_0xace8;return _0x38d63b+'-'+String(_0x585f40)[_0x3cc306(0x1eb)]()+_0x3cc306(0x1e6);}export function resolvePageFilePath(_0x5b73dd,_0x38046a,_0x370fc6){const _0x4f2c13=a145_0xace8;return join(_0x5b73dd[_0x4f2c13(0x1dc)],buildPageFileName(_0x38046a,_0x370fc6));}export async function ensureParentDirectory(_0x211aad){await mkdir(dirname(_0x211aad),{'recursive':!![]});}export async function fileExists(_0x2f4083){const _0x11660f=a145_0xace8;try{return await access(_0x2f4083,constants[_0x11660f(0x1e9)]),!![];}catch{return![];}}function a145_0x45ed(){const _0x523497=['.rabetbase','appPagesDir','180TRrDAe','183NGYseE','24256kYqyNl','page.lock.json','6FDPcta','1082070nXTwjQ','9365NvVGhs','863883bHXhkZ','10mFwaUt','.json','page','2011224VPrHxP','F_OK','1642221CxcvgK','toUpperCase','8838yMeHFG'];a145_0x45ed=function(){return _0x523497;};return a145_0x45ed();}
|
package/lib/core/page/hash.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x18a624,_0x2a0e4e){const _0x31456a=a146_0x19d4,_0x32ce7f=_0x18a624();while(!![]){try{const _0x5891e7=parseInt(_0x31456a(0x157))/0x1*(parseInt(_0x31456a(0x14a))/0x2)+-parseInt(_0x31456a(0x156))/0x3+parseInt(_0x31456a(0x150))/0x4*(parseInt(_0x31456a(0x14d))/0x5)+parseInt(_0x31456a(0x152))/0x6*(parseInt(_0x31456a(0x14c))/0x7)+parseInt(_0x31456a(0x158))/0x8*(-parseInt(_0x31456a(0x151))/0x9)+-parseInt(_0x31456a(0x159))/0xa*(parseInt(_0x31456a(0x148))/0xb)+-parseInt(_0x31456a(0x154))/0xc;if(_0x5891e7===_0x2a0e4e)break;else _0x32ce7f['push'](_0x32ce7f['shift']());}catch(_0x43f409){_0x32ce7f['push'](_0x32ce7f['shift']());}}}(a146_0x5b09,0xe25ca));import a146_0x56a6d2 from'node:crypto';import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0xdaea02){const _0x5e3cc3=a146_0x19d4;return JSON[_0x5e3cc3(0x14f)](JSON['parse'](_0xdaea02),null,0x2)+'\x0a';}function a146_0x19d4(_0x17e8a3,_0x2ce23d){_0x17e8a3=_0x17e8a3-0x147;const _0x5b0986=a146_0x5b09();let _0x19d40c=_0x5b0986[_0x17e8a3];return _0x19d40c;}export function computePageContentHash(_0x2957d3){const _0x1f4b70=a146_0x19d4;return a146_0x56a6d2[_0x1f4b70(0x14b)](_0x1f4b70(0x153))[_0x1f4b70(0x14e)](_0x2957d3)[_0x1f4b70(0x147)](_0x1f4b70(0x149));}export function computeSerializedSchemaHash(_0x29d187){return computePageContentHash(serializePageSchemaForFile(_0x29d187));}function a146_0x5b09(){const _0x538276=['createHash','117075mnCEWG','7083515IoMfuw','update','stringify','4SMWNTF','2996415phBIfs','222qfxJKq','md5','7255488fKcnvM','utf8','4033719ACNuXE','7513dCEuuF','8vwFaCe','30JwNxpl','digest','1949453vNwDmy','hex','454JeNLQd'];a146_0x5b09=function(){return _0x538276;};return a146_0x5b09();}export async function computePageFileHash(_0x539996){const _0x17e8e4=a146_0x19d4,_0x27690e=await readFile(_0x539996,_0x17e8e4(0x155));return computePageContentHash(_0x27690e);}
|
package/lib/core/page/lock.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x52a0aa,_0x4a9b4d){const _0x671557=a147_0x2af7,_0x5e2983=_0x52a0aa();while(!![]){try{const _0x37d917=-parseInt(_0x671557(0x1b9))/0x1*(-parseInt(_0x671557(0x1c8))/0x2)+parseInt(_0x671557(0x1bd))/0x3+-parseInt(_0x671557(0x1bb))/0x4*(parseInt(_0x671557(0x1c1))/0x5)+parseInt(_0x671557(0x1c3))/0x6*(-parseInt(_0x671557(0x1c2))/0x7)+-parseInt(_0x671557(0x1bf))/0x8*(-parseInt(_0x671557(0x1c6))/0x9)+-parseInt(_0x671557(0x1c4))/0xa+parseInt(_0x671557(0x1c0))/0xb*(-parseInt(_0x671557(0x1bc))/0xc);if(_0x37d917===_0x4a9b4d)break;else _0x5e2983['push'](_0x5e2983['shift']());}catch(_0x5f22a9){_0x5e2983['push'](_0x5e2983['shift']());}}}(a147_0x11c1,0xbe09c));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyPageLock(){return{'apps':{}};}function a147_0x2af7(_0x54df47,_0x3fcf14){_0x54df47=_0x54df47-0x1b5;const _0x11c1b8=a147_0x11c1();let _0x2af757=_0x11c1b8[_0x54df47];return _0x2af757;}function a147_0x11c1(){const _0x2af755=['790776QftscZ','9061080zoeKzR','2600793ndgFBj','lastSync','12736CLcnPl','11EcTOnT','25MqbEgD','3640uUTLNV','6414ciCWGS','3611960ZzSUGL','utf8','7362xWHSkg','object','2539690IfmmrS','code','pages','apps','Failed\x20to\x20read\x20page\x20lock\x20file:\x20','1PJpTvZ','parse'];a147_0x11c1=function(){return _0x2af755;};return a147_0x11c1();}export function ensurePageLockScope(_0x3a80a4,_0x5381a4){const _0x3304d1=a147_0x2af7,_0x165adc={'apps':_0x3a80a4['apps']&&typeof _0x3a80a4[_0x3304d1(0x1b7)]===_0x3304d1(0x1c7)?_0x3a80a4['apps']:{}};let _0x35fdf3=_0x165adc[_0x3304d1(0x1b7)][_0x5381a4];if(!_0x35fdf3)return _0x35fdf3={'lastSync':'','pages':{}},_0x165adc['apps'][_0x5381a4]=_0x35fdf3,{'lockData':_0x165adc,'appLock':_0x35fdf3};return!_0x35fdf3[_0x3304d1(0x1be)]&&(_0x35fdf3['lastSync']=''),(!_0x35fdf3['pages']||typeof _0x35fdf3[_0x3304d1(0x1b6)]!==_0x3304d1(0x1c7))&&(_0x35fdf3[_0x3304d1(0x1b6)]={}),{'lockData':_0x165adc,'appLock':_0x35fdf3};}export async function readPageLockFile(_0x445b95){const _0x74fdee=a147_0x2af7;try{const _0x3ab201=await readFile(_0x445b95,_0x74fdee(0x1c5)),_0x130653=JSON[_0x74fdee(0x1ba)](_0x3ab201);return{'apps':_0x130653['apps']&&typeof _0x130653['apps']===_0x74fdee(0x1c7)?_0x130653['apps']:{}};}catch(_0x3cba12){if(_0x3cba12[_0x74fdee(0x1b5)]==='ENOENT')return null;throw new Error(_0x74fdee(0x1b8)+String(_0x3cba12));}}export async function writePageLockFile(_0x9c68d4,_0x435bd1){const _0x15e948=a147_0x2af7;await mkdir(dirname(_0x9c68d4),{'recursive':!![]}),await writeFile(_0x9c68d4,JSON['stringify'](_0x435bd1,null,0x2),_0x15e948(0x1c5));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a149_0x91466=a149_0x52e6;function a149_0x52e6(_0x50d6ab,_0x57f86b){_0x50d6ab=_0x50d6ab-0x165;const _0x174a29=a149_0x174a();let _0x52e678=_0x174a29[_0x50d6ab];return _0x52e678;}function a149_0x174a(){const _0x521f36=['3545610KsFEbM','7YoPwSs','24CuaYMZ','1156982CpoOlh','130IMTpSW','1215608ERIuWq','2693709JsydSO','.rabetbase','1497744FiJQHw','9183210hOGGJM','423365CyTlne'];a149_0x174a=function(){return _0x521f36;};return a149_0x174a();}(function(_0x5edc53,_0x442afb){const _0x99e03f=a149_0x52e6,_0x4290d6=_0x5edc53();while(!![]){try{const _0x12669c=-parseInt(_0x99e03f(0x16d))/0x1+parseInt(_0x99e03f(0x168))/0x2+-parseInt(_0x99e03f(0x165))/0x3+-parseInt(_0x99e03f(0x167))/0x4*(-parseInt(_0x99e03f(0x16f))/0x5)+-parseInt(_0x99e03f(0x16e))/0x6+-parseInt(_0x99e03f(0x166))/0x7*(-parseInt(_0x99e03f(0x16a))/0x8)+parseInt(_0x99e03f(0x16b))/0x9*(parseInt(_0x99e03f(0x169))/0xa);if(_0x12669c===_0x442afb)break;else _0x4290d6['push'](_0x4290d6['shift']());}catch(_0x370ac8){_0x4290d6['push'](_0x4290d6['shift']());}}}(a149_0x174a,0xe06cc));import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a149_0x91466(0x16c),LOCK_FILE_NAME='sql.lock.json',TRASH_DIR_NAME='sql-trash';export function loadSqlProjectConfig(_0x21d4e8,_0x360ec1){const _0x53a12c=resolve(_0x360ec1??findProjectRootDirectory()),_0x38b4b1=DOT_DIR+'/sql',_0x2a27b2=_0x38b4b1+'/'+_0x21d4e8;return{'projectRoot':_0x53a12c,'appCode':_0x21d4e8,'sqlWorkspaceRoot':_0x38b4b1,'sqlRoot':_0x2a27b2,'sqlRootDir':resolve(_0x53a12c,DOT_DIR,'sql',_0x21d4e8),'lockFilePath':resolve(_0x53a12c,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x53a12c,DOT_DIR,TRASH_DIR_NAME)};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x149a03,_0x193ae8){const _0x294038=a150_0x2d46,_0x2848c3=_0x149a03();while(!![]){try{const _0x536150=parseInt(_0x294038(0xcf))/0x1+-parseInt(_0x294038(0xe5))/0x2*(-parseInt(_0x294038(0xea))/0x3)+parseInt(_0x294038(0xe8))/0x4*(-parseInt(_0x294038(0xdb))/0x5)+parseInt(_0x294038(0xe2))/0x6*(-parseInt(_0x294038(0xec))/0x7)+parseInt(_0x294038(0xdd))/0x8+parseInt(_0x294038(0xd9))/0x9+parseInt(_0x294038(0xd0))/0xa*(-parseInt(_0x294038(0xd5))/0xb);if(_0x536150===_0x193ae8)break;else _0x2848c3['push'](_0x2848c3['shift']());}catch(_0x5e75ac){_0x2848c3['push'](_0x2848c3['shift']());}}}(a150_0x4713,0x22d44));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x37afe0){const _0x282678=a150_0x2d46;if(_0x37afe0==='.sql')return _0x282678(0xd6);if(_0x37afe0==='.xml')return _0x282678(0xe3);return undefined;}async function scanSqlFilesRecursively(_0x3c7a89,_0x2df164){const _0x213275=a150_0x2d46,_0x3c2dd1=[];try{const _0xb02c32=await readdir(_0x3c7a89,{'withFileTypes':!![]});for(const _0x90176a of _0xb02c32){const _0x4bc3f6=join(_0x3c7a89,_0x90176a[_0x213275(0xd8)]);if(_0x90176a[_0x213275(0xd4)]()){_0x3c2dd1[_0x213275(0xda)](...await scanSqlFilesRecursively(_0x4bc3f6,_0x2df164));continue;}if(!_0x90176a['isFile']())continue;const _0x2ac4c4=extname(_0x90176a['name'])[_0x213275(0xce)](),_0x5be6f=extensionToMode(_0x2ac4c4);if(!_0x5be6f)continue;const _0x54615e=relative(_0x2df164,_0x4bc3f6)[_0x213275(0xd1)](/\\/g,'/'),_0x4db36a=_0x54615e[_0x213275(0xe0)]('/')[_0x213275(0xe6)](Boolean),_0x3ccd9a=parseSqlPath(_0x4db36a,_0x90176a[_0x213275(0xd8)],_0x2ac4c4);if(!_0x3ccd9a)continue;_0x3c2dd1[_0x213275(0xda)]({'sqlCode':_0x3ccd9a[_0x213275(0xe9)],'sqlName':_0x3ccd9a[_0x213275(0xdc)],'dbDirectory':_0x4db36a[0x0],'filePath':_0x4bc3f6,'relativePath':_0x54615e,'lockKey':_0x3ccd9a['sqlCode'],'mode':_0x5be6f});}}catch(_0x7cf540){if(_0x7cf540[_0x213275(0xe7)]!=='ENOENT')throw _0x7cf540;}return _0x3c2dd1;}export async function scanLocalSqlQueries(_0x324cb0){const _0x48c479=a150_0x2d46;return scanSqlFilesRecursively(_0x324cb0['sqlRootDir'],_0x324cb0[_0x48c479(0xd3)]);}function a150_0x4713(){const _0x435edf=['4GOjjVN','sqlCode','2358OMHTIW','path','7VMfCUZ','toLowerCase','120821WqkeHb','1550AWniCb','replace','dbId','sqlRootDir','isDirectory','12441DjhQEN','sql','slice','name','1725030LlmOYM','push','1047715KpCkeG','sqlName','2152416LBNPhG','length','indexOf','split','dbName','1328718FeJZHN','mybatisXml','test','426ofGibG','filter','code'];a150_0x4713=function(){return _0x435edf;};return a150_0x4713();}export function resolveLocalSqlFilePath(_0x24f897,_0x4acc85,_0x22f923){const _0x4c55c9=a150_0x2d46,_0x41e98a=_0x22f923?.[_0x4c55c9(0xeb)]||(_0x22f923?.[_0x4c55c9(0xdc)]||_0x22f923?.[_0x4c55c9(0xe1)]?buildSqlRelativePath(_0x4acc85,_0x22f923?.[_0x4c55c9(0xdc)],_0x22f923?.['dbName'],_0x22f923?.['mode']||_0x4c55c9(0xd6),_0x22f923?.[_0x4c55c9(0xd2)]):buildDefaultSqlFileName(_0x4acc85,_0x22f923?.['mode']||'sql'));return join(_0x24f897[_0x4c55c9(0xd3)],_0x41e98a);}function a150_0x2d46(_0x5ae5f2,_0xe84793){_0x5ae5f2=_0x5ae5f2-0xce;const _0x4713e5=a150_0x4713();let _0x2d462c=_0x4713e5[_0x5ae5f2];return _0x2d462c;}export async function directoryExists(_0x2717d1){try{const _0x503b0b=await stat(_0x2717d1);return _0x503b0b['isDirectory']();}catch{return![];}}function parseSqlPath(_0x32ed30,_0x595b5b,_0x5dfd75){const _0x447eec=a150_0x2d46,_0x555f88=_0x595b5b[_0x447eec(0xd7)](0x0,-_0x5dfd75[_0x447eec(0xde)]);if(_0x32ed30[_0x447eec(0xde)]<0x2)return null;const _0xcd49b1=_0x555f88[_0x447eec(0xdf)]('_');if(_0xcd49b1<=0x0||_0xcd49b1>=_0x555f88['length']-0x1)return null;const _0x4bdd9d=_0x555f88[_0x447eec(0xd7)](0x0,_0xcd49b1);if(!isLikelySqlCode(_0x4bdd9d))return null;return{'sqlCode':_0x4bdd9d,'sqlName':_0x555f88[_0x447eec(0xd7)](_0xcd49b1+0x1)};}function isLikelySqlCode(_0x15d15d){const _0x598b6b=a150_0x2d46;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x598b6b(0xe4)](_0x15d15d);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x38855b,_0xc2db76){const _0x2666be=a151_0x59e2,_0x36b691=_0x38855b();while(!![]){try{const _0x1013c7=-parseInt(_0x2666be(0x130))/0x1*(-parseInt(_0x2666be(0x135))/0x2)+parseInt(_0x2666be(0x131))/0x3*(-parseInt(_0x2666be(0x12d))/0x4)+-parseInt(_0x2666be(0x139))/0x5+parseInt(_0x2666be(0x12b))/0x6*(-parseInt(_0x2666be(0x134))/0x7)+parseInt(_0x2666be(0x133))/0x8*(-parseInt(_0x2666be(0x132))/0x9)+parseInt(_0x2666be(0x13b))/0xa+parseInt(_0x2666be(0x137))/0xb*(parseInt(_0x2666be(0x12e))/0xc);if(_0x1013c7===_0xc2db76)break;else _0x36b691['push'](_0x36b691['shift']());}catch(_0x4d5ebd){_0x36b691['push'](_0x36b691['shift']());}}}(a151_0x5713,0x5d8cc));import{readFile}from'node:fs/promises';import a151_0x3026d8 from'node:crypto';function a151_0x5713(){const _0x323630=['md5','77hynmqR','update','3598950Nkghod','createHash','4191860GGTcCi','282sljNKV','digest','28ZcEnId','1254936pXjTqh','hex','755917ciEenY','310314uDlCwr','459rXVBdN','144AyBgWr','11795zMBBET','2NCkzef'];a151_0x5713=function(){return _0x323630;};return a151_0x5713();}function a151_0x59e2(_0xc264b6,_0x181075){_0xc264b6=_0xc264b6-0x12b;const _0x57135d=a151_0x5713();let _0x59e23b=_0x57135d[_0xc264b6];return _0x59e23b;}export function computeSqlContentHash(_0x1cc2a0){const _0x553ab6=a151_0x59e2;return a151_0x3026d8[_0x553ab6(0x13a)](_0x553ab6(0x136))[_0x553ab6(0x138)](_0x1cc2a0)[_0x553ab6(0x12c)](_0x553ab6(0x12f));}export async function computeSqlFileHash(_0x4c7237){const _0x1a09f5=await readFile(_0x4c7237,'utf8');return computeSqlContentHash(_0x1a09f5);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4ca3b6,_0x5b4ffa){const _0x34e2b5=a152_0x4c4e,_0x5e3266=_0x4ca3b6();while(!![]){try{const _0x2634f1=-parseInt(_0x34e2b5(0xbf))/0x1+-parseInt(_0x34e2b5(0xc7))/0x2*(parseInt(_0x34e2b5(0xc5))/0x3)+-parseInt(_0x34e2b5(0xb7))/0x4*(-parseInt(_0x34e2b5(0xbe))/0x5)+-parseInt(_0x34e2b5(0xc4))/0x6+-parseInt(_0x34e2b5(0xc6))/0x7+parseInt(_0x34e2b5(0xb8))/0x8*(-parseInt(_0x34e2b5(0xbc))/0x9)+-parseInt(_0x34e2b5(0xc3))/0xa*(-parseInt(_0x34e2b5(0xbb))/0xb);if(_0x2634f1===_0x5b4ffa)break;else _0x5e3266['push'](_0x5e3266['shift']());}catch(_0x1202d1){_0x5e3266['push'](_0x5e3266['shift']());}}}(a152_0x1d66,0x5e890));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}function a152_0x4c4e(_0x42be10,_0x3d2012){_0x42be10=_0x42be10-0xb7;const _0x1d6691=a152_0x1d66();let _0x4c4e81=_0x1d6691[_0x42be10];return _0x4c4e81;}export function ensureSqlLockScope(_0x248225,_0x20fa1a,_0x5adf28,_0x4f7dc8){const _0x50c9a5=a152_0x4c4e,_0x54422b=_0x248225??createEmptySqlLock();let _0xa49743=_0x54422b['apps'][_0x20fa1a];if(!_0xa49743)return _0xa49743={'sqlRoot':_0x5adf28,'lastSync':'','sqls':{}},_0x54422b['apps'][_0x20fa1a]=_0xa49743,{'lockData':_0x54422b,'appLock':_0xa49743};if(!_0xa49743[_0x50c9a5(0xc1)])_0xa49743[_0x50c9a5(0xc1)]=_0x5adf28;else{if(_0xa49743[_0x50c9a5(0xc1)]!==_0x5adf28)throw new Error(_0x4f7dc8+_0x50c9a5(0xc0)+_0x5adf28+'\x22\x20vs\x20lock\x20\x22'+_0xa49743['sqlRoot']+'\x22.\x20'+'Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.');}return!_0xa49743[_0x50c9a5(0xc2)]&&(_0xa49743[_0x50c9a5(0xc2)]={}),!_0xa49743['lastSync']&&(_0xa49743[_0x50c9a5(0xb9)]=''),{'lockData':_0x54422b,'appLock':_0xa49743};}export async function readSqlLockFile(_0x1ddd58){const _0x548fdb=a152_0x4c4e;try{const _0xbc042b=await readFile(_0x1ddd58,'utf8');return JSON[_0x548fdb(0xc8)](_0xbc042b);}catch(_0x303c3b){if(_0x303c3b[_0x548fdb(0xbd)]===_0x548fdb(0xba))return null;throw new Error('Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20'+String(_0x303c3b));}}export async function writeSqlLockFile(_0x481554,_0x315dbf){const _0x3b65ce=a152_0x4c4e;await mkdir(dirname(_0x481554),{'recursive':!![]}),await writeFile(_0x481554,JSON[_0x3b65ce(0xc9)](_0x315dbf,null,0x2),_0x3b65ce(0xca));}function a152_0x1d66(){const _0x244116=['utf8','20kvByAE','1109288drOQkU','lastSync','ENOENT','11LPFhxJ','9WaSPFO','code','212540xKAXHq','669299EHwUVq',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','sqlRoot','sqls','22615130WcrFAq','314256Eyfuij','1689kQsVGT','4786383XxefOF','1928KgbRAb','parse','stringify'];a152_0x1d66=function(){return _0x244116;};return a152_0x1d66();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x56ae09,_0x5dd8e9){const _0xd1e598=a154_0x594b,_0x47340b=_0x56ae09();while(!![]){try{const _0x547805=parseInt(_0xd1e598(0x19c))/0x1+parseInt(_0xd1e598(0x19a))/0x2+-parseInt(_0xd1e598(0x196))/0x3*(parseInt(_0xd1e598(0x19f))/0x4)+-parseInt(_0xd1e598(0x1a2))/0x5+-parseInt(_0xd1e598(0x194))/0x6+parseInt(_0xd1e598(0x19d))/0x7+-parseInt(_0xd1e598(0x1a1))/0x8;if(_0x547805===_0x5dd8e9)break;else _0x47340b['push'](_0x47340b['shift']());}catch(_0x4bdd53){_0x47340b['push'](_0x47340b['shift']());}}}(a154_0x2622,0xcde19));export function detectSqlMode(_0x21a66f){const _0x123c2c=a154_0x594b,_0x9ef429=_0x21a66f[_0x123c2c(0x1a4)]();if(/^<(select|insert|update|delete)\b/i[_0x123c2c(0x19e)](_0x9ef429))return _0x123c2c(0x198);return _0x123c2c(0x195);}function a154_0x2622(){const _0x4369d9=['mybatisXml','trim','49530yCNRQa','replace','1110000UViGZg','7349615ZlgShJ','test','83096PtLzUy','unknown-sql','1760208tmXnUP','2594940whfAld','db-','trimStart','unknown-db','3365154RPLYex','sql','6aUricf','.sql'];a154_0x2622=function(){return _0x4369d9;};return a154_0x2622();}export function getSqlFileExtension(_0x155692){const _0x6e29b1=a154_0x594b;return _0x155692===_0x6e29b1(0x198)?'.xml':_0x6e29b1(0x197);}export function buildDefaultSqlFileName(_0x29b696,_0x15bd3b){return''+_0x29b696+getSqlFileExtension(_0x15bd3b);}export function sanitizeSqlPathSegment(_0x578892,_0x59ddbf){const _0x56d0a5=a154_0x594b,_0x4ea31c=String(_0x578892??'')[_0x56d0a5(0x199)](),_0xe76a21=_0x4ea31c['replace'](/[<>:"/\\|?*\u0000-\u001F]/g,'-')['replace'](/\s+/g,'-')[_0x56d0a5(0x19b)](/-+/g,'-')[_0x56d0a5(0x19b)](/^\.+/,'')['replace'](/\.+$/,'')[_0x56d0a5(0x19b)](/^-+/,'')[_0x56d0a5(0x19b)](/-+$/,'');return _0xe76a21||_0x59ddbf;}function a154_0x594b(_0x4f6451,_0x4718a9){_0x4f6451=_0x4f6451-0x193;const _0x262226=a154_0x2622();let _0x594b08=_0x262226[_0x4f6451];return _0x594b08;}export function buildDbDirectoryName(_0x3c8465,_0x2dd221){const _0x51bb4c=a154_0x594b;return sanitizeSqlPathSegment(_0x3c8465,_0x2dd221!=null?_0x51bb4c(0x1a3)+_0x2dd221:_0x51bb4c(0x193));}export function buildSqlRelativePath(_0x4435a5,_0x3d1308,_0x3f805d,_0xba5547,_0x3fd3bc){const _0x20b67d=a154_0x594b,_0x14c810=buildDbDirectoryName(_0x3f805d,_0x3fd3bc),_0xf1d090=sanitizeSqlPathSegment(_0x4435a5,_0x20b67d(0x1a0)),_0x88265a=sanitizeSqlPathSegment(_0x3d1308,_0xf1d090);return _0x14c810+'/'+_0xf1d090+'_'+_0x88265a+getSqlFileExtension(_0xba5547);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x35032f,_0x9ba3cb){const _0xa2d5d9=a155_0x3d83,_0x3a9cf0=_0x35032f();while(!![]){try{const _0x2bc2b3=-parseInt(_0xa2d5d9(0x189))/0x1*(-parseInt(_0xa2d5d9(0x184))/0x2)+-parseInt(_0xa2d5d9(0x177))/0x3*(-parseInt(_0xa2d5d9(0x16c))/0x4)+parseInt(_0xa2d5d9(0x176))/0x5+parseInt(_0xa2d5d9(0x186))/0x6+parseInt(_0xa2d5d9(0x16f))/0x7+parseInt(_0xa2d5d9(0x188))/0x8*(-parseInt(_0xa2d5d9(0x17f))/0x9)+-parseInt(_0xa2d5d9(0x181))/0xa*(parseInt(_0xa2d5d9(0x17a))/0xb);if(_0x2bc2b3===_0x9ba3cb)break;else _0x3a9cf0['push'](_0x3a9cf0['shift']());}catch(_0x56e740){_0x3a9cf0['push'](_0x3a9cf0['shift']());}}}(a155_0x54c3,0x4972a));function a155_0x54c3(){const _0x4074bf=['reason','293026hvlGJR','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','2377350ejLLlN','test','8OiORER','3oYSudQ','isDangerous','add','UPDATE','SELECT','toUpperCase','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','length','DDL','push','4nsSxqi','SQL\x20content\x20is\x20empty','trim','4128215GRjilq','replace','WITH','includes','INSERT','match','unknown\x20table(s)','319070DdvzVH','981957ZXWbWC','startsWith','UNKNOWN','10351121wFaEQy','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','matchAll','type','from','5173101caYsbJ','DELETE','10pSZqer','join'];a155_0x54c3=function(){return _0x4074bf;};return a155_0x54c3();}export function detectSqlType(_0x19ad98){const _0x1a17b1=a155_0x3d83;if(!_0x19ad98?.[_0x1a17b1(0x16e)]())return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':_0x1a17b1(0x16d)};const _0x3a1f1f=_0x19ad98[_0x1a17b1(0x170)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x1a17b1(0x170)](/@[^(\s]+(\([^)]*\))?/g,'')['replace'](/\/\*[\s\S]*?\*\//g,'')[_0x1a17b1(0x16e)](),_0x16c666=_0x3a1f1f['split']('\x0a');let _0x4b7ee1='';for(const _0x1b0218 of _0x16c666){const _0x2d010f=_0x1b0218[_0x1a17b1(0x16e)]();if(!_0x2d010f||_0x2d010f[_0x1a17b1(0x178)]('--')||_0x2d010f[_0x1a17b1(0x178)]('/*'))continue;_0x4b7ee1=_0x2d010f;break;}const _0x543142=_0x4b7ee1[_0x1a17b1(0x167)]();if(_0x543142['startsWith']('SELECT')||_0x543142['startsWith'](_0x1a17b1(0x171))){const _0x5f3007=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x1a17b1(0x187)](_0x3a1f1f);return{'type':_0x1a17b1(0x18d),'isSelectOnly':!_0x5f3007,'isDangerous':_0x5f3007,'reason':_0x5f3007?'SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT':undefined};}if(_0x543142[_0x1a17b1(0x178)](_0x1a17b1(0x173)))return{'type':'INSERT','isSelectOnly':![],'isDangerous':![]};if(_0x543142[_0x1a17b1(0x178)](_0x1a17b1(0x18c)))return{'type':'UPDATE','isSelectOnly':![],'isDangerous':![]};if(_0x543142[_0x1a17b1(0x178)]('DELETE'))return{'type':_0x1a17b1(0x180),'isSelectOnly':![],'isDangerous':!![],'reason':_0x1a17b1(0x168)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x1a17b1(0x187)](_0x543142))return{'type':_0x1a17b1(0x16a),'isSelectOnly':![],'isDangerous':!![],'reason':_0x1a17b1(0x185)};return{'type':_0x1a17b1(0x179),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x265e2e){const _0xccb192=a155_0x3d83,_0x139e1c=_0x265e2e['replace'](/#\{[^}]*\}/g,'?')[_0xccb192(0x170)](/\$\{[^}]*\}/g,'?')[_0xccb192(0x170)](/'[^']*'/g,'\x27\x27')[_0xccb192(0x170)](/--.*$/gm,'')[_0xccb192(0x170)](/\/\*[\s\S]*?\*\//g,''),_0xa75361=[],_0x4dc687=_0x139e1c[_0xccb192(0x174)](/FROM\s+([^\s,)(]+)/i);if(_0x4dc687?.[0x1])_0xa75361['push'](_0x4dc687[0x1][_0xccb192(0x170)](/[`"]/g,''));for(const _0x4b5cf0 of _0x139e1c['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x5d2403=_0x4b5cf0[0x1]?.[_0xccb192(0x170)](/[`"]/g,'');if(_0x5d2403&&!_0xa75361['includes'](_0x5d2403))_0xa75361[_0xccb192(0x16b)](_0x5d2403);}const _0x5f1e30=_0x139e1c[_0xccb192(0x174)](/INTO\s+([^\s(]+)/i);if(_0x5f1e30?.[0x1]){const _0xdd0daa=_0x5f1e30[0x1]['replace'](/[`"]/g,'');if(!_0xa75361[_0xccb192(0x172)](_0xdd0daa))_0xa75361['push'](_0xdd0daa);}const _0x338da9=_0x139e1c['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0x338da9?.[0x1]){const _0x520f46=_0x338da9[0x1][_0xccb192(0x170)](/[`"]/g,'');if(!_0xa75361[_0xccb192(0x172)](_0x520f46))_0xa75361[_0xccb192(0x16b)](_0x520f46);}return _0xa75361;}function extractParameters(_0x14063d){const _0x3bd4be=a155_0x3d83,_0x3ad26a=new Set();for(const _0x35fe22 of _0x14063d['matchAll'](/#\{(\w+)\}/g))if(_0x35fe22[0x1])_0x3ad26a[_0x3bd4be(0x18b)](_0x35fe22[0x1]);for(const _0x1d7e59 of _0x14063d[_0x3bd4be(0x17c)](/\$\{(\w+)\}/g))if(_0x1d7e59[0x1])_0x3ad26a[_0x3bd4be(0x18b)](_0x1d7e59[0x1]);return Array[_0x3bd4be(0x17e)](_0x3ad26a);}function a155_0x3d83(_0x2b8e12,_0x27df59){_0x2b8e12=_0x2b8e12-0x167;const _0x54c38e=a155_0x54c3();let _0x3d8315=_0x54c38e[_0x2b8e12];return _0x3d8315;}export function validateSql(_0x4fd2c8){const _0x41d846=a155_0x3d83,_0x5e5dba=detectSqlType(_0x4fd2c8),_0x41ca1b=extractTables(_0x4fd2c8),_0x5d4b91=extractParameters(_0x4fd2c8);if(_0x5e5dba[_0x41d846(0x18a)])return{'valid':![],'sqlType':_0x5e5dba,'tables':_0x41ca1b,'parameters':_0x5d4b91,'message':_0x5e5dba[_0x41d846(0x183)]||_0x5e5dba[_0x41d846(0x17d)]+_0x41d846(0x17b)};if(_0x5e5dba[_0x41d846(0x17d)]==='UNKNOWN')return{'valid':![],'sqlType':_0x5e5dba,'tables':_0x41ca1b,'parameters':_0x5d4b91,'message':'Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'};return{'valid':!![],'sqlType':_0x5e5dba,'tables':_0x41ca1b,'parameters':_0x5d4b91,'message':_0x5e5dba[_0x41d846(0x17d)]+'\x20query\x20targeting\x20'+(_0x41ca1b[_0x41d846(0x169)]?_0x41ca1b[_0x41d846(0x182)](',\x20'):_0x41d846(0x175))+(_0x5d4b91[_0x41d846(0x169)]?'\x20with\x20parameters:\x20'+_0x5d4b91[_0x41d846(0x182)](',\x20'):'')};}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a156_0x1e0905=a156_0x2f1e;function a156_0x2f1e(_0x42c018,_0x4804d3){_0x42c018=_0x42c018-0x89;const _0xdb83a3=a156_0xdb83();let _0x2f1eaf=_0xdb83a3[_0x42c018];return _0x2f1eaf;}(function(_0x2cdb81,_0x350a05){const _0x3d74e2=a156_0x2f1e,_0x3b840e=_0x2cdb81();while(!![]){try{const _0x52e8b4=-parseInt(_0x3d74e2(0x93))/0x1*(parseInt(_0x3d74e2(0x8f))/0x2)+parseInt(_0x3d74e2(0x91))/0x3+parseInt(_0x3d74e2(0x97))/0x4+parseInt(_0x3d74e2(0x90))/0x5*(parseInt(_0x3d74e2(0x9b))/0x6)+-parseInt(_0x3d74e2(0x95))/0x7*(-parseInt(_0x3d74e2(0x9a))/0x8)+-parseInt(_0x3d74e2(0x8a))/0x9*(parseInt(_0x3d74e2(0x96))/0xa)+-parseInt(_0x3d74e2(0x8c))/0xb*(-parseInt(_0x3d74e2(0x99))/0xc);if(_0x52e8b4===_0x350a05)break;else _0x3b840e['push'](_0x3b840e['shift']());}catch(_0x6c5b09){_0x3b840e['push'](_0x3b840e['shift']());}}}(a156_0xdb83,0x9016c));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a156_0xdb83(){const _0x4343ba=['1686586IbEQVT','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','10EadorP','650330xPgJcA','2301WWyJLJ','join','19529EPPwNt','Tip:\x20`','63gTUnBC','10owkSnj','731368bZTETt','Set\x20appcode\x20via\x20`','24LBNinK','610664uTirhs','6JkEzPS','\x20auth`\x20to\x20login\x20first.','5575419TnXUKj','Run\x20`'];a156_0xdb83=function(){return _0x4343ba;};return a156_0xdb83();}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a156_0x1e0905(0x8b)+CLI_BIN_NAME+a156_0x1e0905(0x89),'configMissingHint':[a156_0x1e0905(0x98)+CLI_BIN_NAME+a156_0x1e0905(0x8e),a156_0x1e0905(0x94)+CLI_BIN_NAME+a156_0x1e0905(0x8d)][a156_0x1e0905(0x92)]('\x0a\x20\x20\x20\x20\x20\x20\x20'),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a157_0x3cd1(_0x327db3,_0x4027b1){_0x327db3=_0x327db3-0x1da;var _0x52bb94=a157_0x52bb();var _0x3cd1b9=_0x52bb94[_0x327db3];return _0x3cd1b9;}(function(_0x1c046b,_0x3a504d){var _0x457828=a157_0x3cd1,_0x1415ef=_0x1c046b();while(!![]){try{var _0xfbda00=parseInt(_0x457828(0x1db))/0x1*(parseInt(_0x457828(0x1da))/0x2)+parseInt(_0x457828(0x1dd))/0x3+-parseInt(_0x457828(0x1e3))/0x4+parseInt(_0x457828(0x1e0))/0x5*(-parseInt(_0x457828(0x1dc))/0x6)+parseInt(_0x457828(0x1e1))/0x7+-parseInt(_0x457828(0x1de))/0x8+-parseInt(_0x457828(0x1e2))/0x9*(parseInt(_0x457828(0x1df))/0xa);if(_0xfbda00===_0x3a504d)break;else _0x1415ef['push'](_0x1415ef['shift']());}catch(_0x96d187){_0x1415ef['push'](_0x1415ef['shift']());}}}(a157_0x52bb,0xecc49));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a157_0x5d0e33}from'@lovrabet/cli-framework';export function buildAllFlags(_0x52b8ad){return a157_0x5d0e33(_0x52b8ad,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}function a157_0x52bb(){var _0x8db6cb=['6286576BNSIxE','6VzKVDn','521389cPSJVD','330kJLhLT','4217298wUSAhr','4253800HguSeE','1310yZAXjn','50395RlUdkC','7410011LpoHut','27549OZXkEc'];a157_0x52bb=function(){return _0x8db6cb;};return a157_0x52bb();}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a158_0x338157=a158_0x31ba;(function(_0x574c5f,_0x4626e6){const _0x54c7d4=a158_0x31ba,_0x30ee98=_0x574c5f();while(!![]){try{const _0xc86fc=-parseInt(_0x54c7d4(0x1ad))/0x1+parseInt(_0x54c7d4(0x1b3))/0x2+parseInt(_0x54c7d4(0x1ae))/0x3+parseInt(_0x54c7d4(0x1ac))/0x4*(parseInt(_0x54c7d4(0x1b2))/0x5)+parseInt(_0x54c7d4(0x1a9))/0x6*(-parseInt(_0x54c7d4(0x1ab))/0x7)+-parseInt(_0x54c7d4(0x1aa))/0x8+-parseInt(_0x54c7d4(0x1b1))/0x9*(-parseInt(_0x54c7d4(0x1b4))/0xa);if(_0xc86fc===_0x4626e6)break;else _0x30ee98['push'](_0x30ee98['shift']());}catch(_0x3b4270){_0x30ee98['push'](_0x30ee98['shift']());}}}(a158_0xf579,0x6db94));function a158_0xf579(){const _0x5c19e4=['32646jzBCMr','6896424pGaQmO','413havjvD','36ZcIxkD','610608sfsxYY','905163IoxgSU','parseFlags','validateFlags','156879aZrnbq','175145btsFpM','149534dlRDMs','890lkTSMg'];a158_0xf579=function(){return _0x5c19e4;};return a158_0xf579();}import{createFlagHelpers}from'@lovrabet/cli-framework';function a158_0x31ba(_0x2d2144,_0x14d154){_0x2d2144=_0x2d2144-0x1a9;const _0xf579e2=a158_0xf579();let _0x31bac=_0xf579e2[_0x2d2144];return _0x31bac;}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a158_0x338157(0x1af)];export const validateFlags=helpers[a158_0x338157(0x1b0)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a159_0x3d393e=a159_0x9f96;(function(_0xbd2e8d,_0x5304af){const _0x992a03=a159_0x9f96,_0xeaebc=_0xbd2e8d();while(!![]){try{const _0x43802d=-parseInt(_0x992a03(0x1da))/0x1+-parseInt(_0x992a03(0x1de))/0x2*(-parseInt(_0x992a03(0x1e9))/0x3)+-parseInt(_0x992a03(0x1dc))/0x4*(parseInt(_0x992a03(0x1e3))/0x5)+parseInt(_0x992a03(0x1e1))/0x6*(parseInt(_0x992a03(0x1db))/0x7)+-parseInt(_0x992a03(0x1e8))/0x8*(parseInt(_0x992a03(0x1e2))/0x9)+-parseInt(_0x992a03(0x1e7))/0xa+parseInt(_0x992a03(0x1e6))/0xb*(parseInt(_0x992a03(0x1d7))/0xc);if(_0x43802d===_0x5304af)break;else _0xeaebc['push'](_0xeaebc['shift']());}catch(_0x2a9bd7){_0xeaebc['push'](_0xeaebc['shift']());}}}(a159_0x58e3,0xc8f02));import{createHelpGenerators}from'@lovrabet/cli-framework';function a159_0x58e3(){const _0x40a8f7=['generateServiceHelp','55xeLfbS','12922980XPkTSz','5107848bDrNRK','2351598yBGLGF','1714236snqfif','\x20project\x20init`\x20or\x20--appcode).','generateFullHelp','105117jTmKNh','500374qRkjva','5908eHNOHU','Requires\x20appcode\x20(set\x20via\x20`','2nQQbRL','\x20[args]\x20[flags]','get','126JTTdSt','9MRUGAt','475XfpmVY','generateCommandHelp'];a159_0x58e3=function(){return _0x40a8f7;};return a159_0x58e3();}import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x5bace1=>serviceGroups[a159_0x3d393e(0x1e0)](_0x5bace1),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a159_0x3d393e(0x1dd)+CLI_BIN_NAME+a159_0x3d393e(0x1d8),'serviceUsageSuffix':a159_0x3d393e(0x1df),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x5e6528){const _0x59a1c5=a159_0x3d393e;return generators[_0x59a1c5(0x1e4)](_0x5e6528);}function a159_0x9f96(_0x3a9935,_0x545c60){_0x3a9935=_0x3a9935-0x1d7;const _0x58e3f0=a159_0x58e3();let _0x9f96b2=_0x58e3f0[_0x3a9935];return _0x9f96b2;}export const generateServiceHelp=generators[a159_0x3d393e(0x1e5)];export const generateFullHelp=generators[a159_0x3d393e(0x1d9)];
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a160_0x232f(_0x159e25,_0x10089a){_0x159e25=_0x159e25-0x1d3;var _0x397b1f=a160_0x397b();var _0x232f68=_0x397b1f[_0x159e25];return _0x232f68;}(function(_0x43f4a6,_0x550050){var _0x119606=a160_0x232f,_0x54c167=_0x43f4a6();while(!![]){try{var _0x23926c=-parseInt(_0x119606(0x1d5))/0x1*(-parseInt(_0x119606(0x1d6))/0x2)+parseInt(_0x119606(0x1d4))/0x3*(parseInt(_0x119606(0x1d3))/0x4)+parseInt(_0x119606(0x1d7))/0x5+parseInt(_0x119606(0x1d9))/0x6*(-parseInt(_0x119606(0x1dc))/0x7)+parseInt(_0x119606(0x1db))/0x8*(parseInt(_0x119606(0x1d8))/0x9)+-parseInt(_0x119606(0x1da))/0xa+-parseInt(_0x119606(0x1dd))/0xb;if(_0x23926c===_0x550050)break;else _0x54c167['push'](_0x54c167['shift']());}catch(_0x2b612e){_0x54c167['push'](_0x54c167['shift']());}}}(a160_0x397b,0x730fa));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';function a160_0x397b(){var _0x3d2f08=['715746blOlCB','1813620rNdLfH','1217360qqnbPi','35Vjworr','1142889YgVuKu','1784XXmfva','324xeyOGL','51506OolybM','10ZMWjim','3714840CUZndH','18sQgTax'];a160_0x397b=function(){return _0x3d2f08;};return a160_0x397b();}export{riskLevelOrder}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x59b44f,_0x368cbe){const _0x153112=a161_0x152a,_0xbb94fb=_0x59b44f();while(!![]){try{const _0x5b1c52=-parseInt(_0x153112(0x12a))/0x1*(-parseInt(_0x153112(0x130))/0x2)+-parseInt(_0x153112(0x127))/0x3+parseInt(_0x153112(0x12c))/0x4+parseInt(_0x153112(0x12f))/0x5*(-parseInt(_0x153112(0x12e))/0x6)+-parseInt(_0x153112(0x129))/0x7*(-parseInt(_0x153112(0x126))/0x8)+parseInt(_0x153112(0x12d))/0x9+parseInt(_0x153112(0x12b))/0xa*(-parseInt(_0x153112(0x128))/0xb);if(_0x5b1c52===_0x368cbe)break;else _0xbb94fb['push'](_0xbb94fb['shift']());}catch(_0x1e1802){_0xbb94fb['push'](_0xbb94fb['shift']());}}}(a161_0x3f23,0xc6130));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a161_0x152a(_0x2f030c,_0x4f52cf){_0x2f030c=_0x2f030c-0x126;const _0x3f232d=a161_0x3f23();let _0x152a2e=_0x3f232d[_0x2f030c];return _0x152a2e;}function a161_0x3f23(){const _0x4ffaf4=['22AOFGlk','3626XLGcIY','1QEAlcw','12120930JUcCka','666920lroqUX','9531333JsHeSn','18gFbtxu','234035SLyUtp','2418986qPaWSW','23864izgNAQ','1813605UcQyOi'];a161_0x3f23=function(){return _0x4ffaf4;};return a161_0x3f23();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a162_0x2f09(_0x403d61,_0x1e641f){_0x403d61=_0x403d61-0xbe;var _0xa9528e=a162_0xa952();var _0x2f09d6=_0xa9528e[_0x403d61];return _0x2f09d6;}function a162_0xa952(){var _0x4dbfc8=['566zVDIKB','1619808UmCGkV','124452HtzGTs','1960QNjVmn','695195uydUdx','1429ZubJar','3wkCQGY','6385962yngqnA','66pelCJI','179067tqHHwR','9081IqxNTw','12IiJaXL'];a162_0xa952=function(){return _0x4dbfc8;};return a162_0xa952();}(function(_0xf71d5e,_0x329a97){var _0x4434d7=a162_0x2f09,_0x15f00c=_0xf71d5e();while(!![]){try{var _0x5f53f8=-parseInt(_0x4434d7(0xc7))/0x1*(-parseInt(_0x4434d7(0xc2))/0x2)+-parseInt(_0x4434d7(0xc8))/0x3*(parseInt(_0x4434d7(0xc4))/0x4)+parseInt(_0x4434d7(0xc6))/0x5+parseInt(_0x4434d7(0xbe))/0x6*(parseInt(_0x4434d7(0xbf))/0x7)+parseInt(_0x4434d7(0xc3))/0x8+-parseInt(_0x4434d7(0xc0))/0x9*(parseInt(_0x4434d7(0xc5))/0xa)+parseInt(_0x4434d7(0xc9))/0xb*(-parseInt(_0x4434d7(0xc1))/0xc);if(_0x5f53f8===_0x329a97)break;else _0x15f00c['push'](_0x15f00c['shift']());}catch(_0x21f34c){_0x15f00c['push'](_0x15f00c['shift']());}}}(a162_0xa952,0x35326));export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xe9fcfe,_0x38f21e){const _0x548cbe=a163_0x4438,_0x4f0ce3=_0xe9fcfe();while(!![]){try{const _0x1b8544=parseInt(_0x548cbe(0x1a5))/0x1+parseInt(_0x548cbe(0x194))/0x2+-parseInt(_0x548cbe(0x1a3))/0x3*(parseInt(_0x548cbe(0x19a))/0x4)+parseInt(_0x548cbe(0x196))/0x5+parseInt(_0x548cbe(0x195))/0x6+parseInt(_0x548cbe(0x198))/0x7*(-parseInt(_0x548cbe(0x19b))/0x8)+parseInt(_0x548cbe(0x19d))/0x9*(parseInt(_0x548cbe(0x18f))/0xa);if(_0x1b8544===_0x38f21e)break;else _0x4f0ce3['push'](_0x4f0ce3['shift']());}catch(_0x1259f4){_0x4f0ce3['push'](_0x4f0ce3['shift']());}}}(a163_0xd625,0x8127f));import{CliErrors}from'../errors.js';function a163_0x4438(_0x255b37,_0x54890c){_0x255b37=_0x255b37-0x18f;const _0xd62535=a163_0xd625();let _0x443894=_0xd62535[_0x255b37];return _0x443894;}import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a163_0xd625(){const _0x6f6576=['1074472tzKzvj','alias','9LdECxD','join','validation','length','map','Unknown\x20alias\x20\x22','3ThxBFX','\x22.\x20','391956iROWFA','`\x20requires\x20either\x20--code\x20or\x20--alias.','390890wFsaDR','some','string','\x20api\x20pull`\x20first.','code','279312RIeeJv','407886DYIrTo','1231230VKqfin','type','7nYruNM','flags','886384dcYNZd'];a163_0xd625=function(){return _0x6f6576;};return a163_0xd625();}export function resolveAliasToCode(_0x2af391,_0x531bb4,_0x28251a,_0x3dbedd){const _0x102bec=a163_0x4438,_0x11e078=_0x2af391[_0x102bec(0x199)][_0x102bec(0x190)](_0x4c6019=>_0x4c6019['name']==='code'&&_0x4c6019[_0x102bec(0x197)]==='string'),_0x4b76ad=_0x2af391[_0x102bec(0x199)]['some'](_0x47f5ec=>_0x47f5ec['name']===_0x102bec(0x19c)&&_0x47f5ec['type']===_0x102bec(0x191));if(!_0x11e078||!_0x4b76ad)return;const _0x3ce92e=_0x531bb4[_0x102bec(0x193)]?String(_0x531bb4[_0x102bec(0x193)]):'',_0xb08c01=_0x531bb4[_0x102bec(0x19c)]?String(_0x531bb4[_0x102bec(0x19c)]):'';if(!_0x3ce92e&&!_0xb08c01)throw CliErrors[_0x102bec(0x19f)]('`'+_0x3dbedd+_0x102bec(0x1a6));if(_0xb08c01&&!_0x3ce92e){const _0x5117ae=resolveAlias(_0x28251a,_0xb08c01);if(!_0x5117ae){const _0x1c9078=listAliases(_0x28251a)[_0x102bec(0x1a1)](_0x50db14=>_0x50db14[_0x102bec(0x19c)]),_0x45becd=_0x1c9078[_0x102bec(0x1a0)]?'Available\x20aliases:\x20'+_0x1c9078[_0x102bec(0x19e)](',\x20'):'No\x20api.ts\x20found\x20in\x20'+_0x28251a+'.\x20Run\x20`'+CLI_BIN_NAME+_0x102bec(0x192);throw CliErrors[_0x102bec(0x19f)](_0x102bec(0x1a2)+_0xb08c01+_0x102bec(0x1a4)+_0x45becd);}_0x531bb4[_0x102bec(0x193)]=_0x5117ae;}}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a164_0x28fd72=a164_0x3526;(function(_0x3537f6,_0x415608){const _0x19edc9=a164_0x3526,_0x2ce27f=_0x3537f6();while(!![]){try{const _0x3b6a84=-parseInt(_0x19edc9(0x16d))/0x1*(parseInt(_0x19edc9(0x185))/0x2)+parseInt(_0x19edc9(0x167))/0x3*(-parseInt(_0x19edc9(0x170))/0x4)+-parseInt(_0x19edc9(0x18b))/0x5*(parseInt(_0x19edc9(0x16f))/0x6)+-parseInt(_0x19edc9(0x184))/0x7*(parseInt(_0x19edc9(0x17e))/0x8)+-parseInt(_0x19edc9(0x183))/0x9+parseInt(_0x19edc9(0x16b))/0xa+parseInt(_0x19edc9(0x189))/0xb;if(_0x3b6a84===_0x415608)break;else _0x2ce27f['push'](_0x2ce27f['shift']());}catch(_0x12ac4b){_0x2ce27f['push'](_0x2ce27f['shift']());}}}(a164_0x1c06,0xa50f0));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';function a164_0x3526(_0xb59383,_0x46cd10){_0xb59383=_0xb59383-0x162;const _0x1c0678=a164_0x1c06();let _0x352613=_0x1c0678[_0xb59383];return _0x352613;}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 a164_0x3b86b2}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x339b2f,_0x204ecd,_0x4ec64f=[]){const _0x1f2621=a164_0x3526;return{'rawFlags':_0x204ecd,'args':_0x4ec64f,'resolveAppCode':()=>_0x339b2f[_0x1f2621(0x178)]||_0x204ecd[_0x1f2621(0x177)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x339b2f[_0x1f2621(0x179)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a164_0x3b86b2(_0x204ecd),'defaultFormat':_0x339b2f[_0x1f2621(0x172)],'defaultPageSize':_0x339b2f['pageSize'],'defaultVerbose':_0x339b2f[_0x1f2621(0x169)],'apiDir':_0x339b2f['apiDir'],'riskLevel':_0x339b2f[_0x1f2621(0x176)],'selectedAppName':_0x339b2f['explicitAppName'],'mergedCli':{'defaultApp':_0x339b2f[_0x1f2621(0x16c)],'currentApp':_0x339b2f[_0x1f2621(0x17c)],'appCode':_0x339b2f[_0x1f2621(0x178)],'apps':_0x339b2f[_0x1f2621(0x163)]}};}function a164_0x1c06(){const _0x5a8412=['apps','../core/api-client.js','mergedCli','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','12552LSXYub','resolveAppCode','verbose','High-risk\x20operation\x20`','1877450wyXqtg','defaultApp','16645SBwZOP','\x20\x20\x20Continue?\x20[y/N]\x20','426dLwFCW','1252atyZIT','Set\x20appcode\x20via\x20`','format','⚠\x20\x20High-risk\x20operation:\x20','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','service','riskLevel','appcode','appCode','cookie','resolveApiDomain','defaultPageSize','currentApp','configMissing','8ZdSUpy','authRequired','command','requiresAuth','isNonInteractive','9110862cUegcY','5026595jCbnUR','26sTuTdK','cancelled','name','validation','47846766SGdHfY','filter','42605oDrMYE','resolveCookie'];a164_0x1c06=function(){return _0x5a8412;};return a164_0x1c06();}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a164_0x28fd72(0x18a)](_0x4e567f=>PIPELINE_FLAG_NAMES['has'](_0x4e567f[a164_0x28fd72(0x187)]))['map'](({name:_0x25f7af,type:_0x5341c0,description:_0x4432b8})=>({'name':_0x25f7af,'type':_0x5341c0,'description':_0x4432b8})),'formatOutput':formatOutput,'getCommandLabel'(_0x5dce94){const _0x588c47=a164_0x28fd72;return CLI_BIN_NAME+'\x20'+_0x5dce94[_0x588c47(0x175)]+'\x20'+_0x5dce94[_0x588c47(0x180)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x39dcf6){const _0x558827=a164_0x28fd72;return CliErrors[_0x558827(0x188)](_0x39dcf6);}},async 'prepare'(_0x2b9179,_0x4e6cbc,_0x3c6b30,_0xdbcef4){const _0x9bb8d5=a164_0x28fd72,_0x2469e5=_0x4e6cbc['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x2b9179,_0x3c6b30,_0x2469e5,_0xdbcef4);let _0x376559='';if(_0x2b9179[_0x9bb8d5(0x181)]!==![]){_0x376559=_0x4e6cbc[_0x9bb8d5(0x162)]();if(!_0x376559)throw CliErrors[_0x9bb8d5(0x17f)]();const {setActiveCookie:_0x40c62c}=await import('../core/api-client.js');_0x40c62c(_0x376559);}let _0x4bfb9d='';if(_0x2b9179['requiresAppCode']!==![]){_0x4bfb9d=_0x4e6cbc[_0x9bb8d5(0x168)]()??'';if(!_0x4bfb9d)throw CliErrors[_0x9bb8d5(0x17d)](_0x9bb8d5(0x171)+CLI_BIN_NAME+_0x9bb8d5(0x174));}return{'defaults':{'booleans':{'verbose':_0x4e6cbc['defaultVerbose']},'numbers':{'pagesize':_0x4e6cbc[_0x9bb8d5(0x17b)]}},'extras':{'appCode':_0x4bfb9d,'cookie':_0x376559,'apiDomain':_0x4e6cbc[_0x9bb8d5(0x17a)](),'apiDir':_0x2469e5,'selectedAppName':_0x4e6cbc['selectedAppName'],'mergedCli':_0x4e6cbc[_0x9bb8d5(0x165)]}};},async 'confirmHighRisk'({env:_0x47049d,commandLabel:_0x3a78a5}){const _0x138fe0=a164_0x28fd72;if(_0x47049d[_0x138fe0(0x182)])throw CliErrors[_0x138fe0(0x188)](_0x138fe0(0x16a)+_0x3a78a5+_0x138fe0(0x166));await requireConfirmationPrompt({'lines':[_0x138fe0(0x173)+_0x3a78a5,_0x138fe0(0x16e)],'createCancelledError':_0x238a9c=>CliErrors[_0x138fe0(0x186)](_0x238a9c)});},async 'finalize'(){const _0xc25927=a164_0x28fd72,{clearActiveCookie:_0x5ce0fb}=await import(_0xc25927(0x164));_0x5ce0fb();}};export async function runCommand(_0x150e62,_0x316471){await runCommandWithAdapter(_0x150e62,_0x316471,runnerAdapter);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x16928b,_0x26b9ff){const _0x52c3f5=a165_0x346c,_0x10e59b=_0x16928b();while(!![]){try{const _0x286e36=-parseInt(_0x52c3f5(0x14f))/0x1+parseInt(_0x52c3f5(0x156))/0x2*(parseInt(_0x52c3f5(0x15c))/0x3)+-parseInt(_0x52c3f5(0x157))/0x4*(parseInt(_0x52c3f5(0x152))/0x5)+-parseInt(_0x52c3f5(0x158))/0x6*(-parseInt(_0x52c3f5(0x159))/0x7)+parseInt(_0x52c3f5(0x150))/0x8*(parseInt(_0x52c3f5(0x153))/0x9)+parseInt(_0x52c3f5(0x151))/0xa*(parseInt(_0x52c3f5(0x15a))/0xb)+parseInt(_0x52c3f5(0x15b))/0xc*(-parseInt(_0x52c3f5(0x155))/0xd);if(_0x286e36===_0x26b9ff)break;else _0x10e59b['push'](_0x10e59b['shift']());}catch(_0x3fe0ac){_0x10e59b['push'](_0x10e59b['shift']());}}}(a165_0x1bdb,0x77694));function a165_0x346c(_0x5dfb4b,_0x26d999){_0x5dfb4b=_0x5dfb4b-0x14f;const _0x1bdbcf=a165_0x1bdb();let _0x346c16=_0x1bdbcf[_0x5dfb4b];return _0x346c16;}import{buildSchemaPayload as a165_0x125ee3}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a165_0x1bdb(){const _0x213e5c=['501125BiKMSZ','24VjgjCG','9271910iweplH','1536010TUVSCY','2781720miwsVo','../commands/registry.js','13XvgVrY','4946IKtXyr','8KYTbwJ','1222686pwLush','7FvAmsg','11MKqebf','5561604CFvTpC','12dYvuSh'];a165_0x1bdb=function(){return _0x213e5c;};return a165_0x1bdb();}import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x1eb706=a165_0x346c,{serviceRegistry:_0x5e1037,findDefinition:_0x18bd0d}=await import(_0x1eb706(0x154));return a165_0x125ee3({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x5e1037,'buildAllFlags':buildAllFlags,'findDefinition':_0x18bd0d});}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a166_0x51ee(){var _0x409715=['15076GilNpo','432168HBEFEf','1ULDKlN','6714YWPgYT','2740150yDXdPy','246EOIQBq','1631nUlrlI','182832GXiFmT','3591797QwlpAH','9VTxOgC','10RUfCKF','17230hLqALk'];a166_0x51ee=function(){return _0x409715;};return a166_0x51ee();}function a166_0x3402(_0x38adc5,_0x20f61f){_0x38adc5=_0x38adc5-0x192;var _0x51ee14=a166_0x51ee();var _0x340260=_0x51ee14[_0x38adc5];return _0x340260;}(function(_0x2f2955,_0x24d186){var _0x3c8f45=a166_0x3402,_0x10cb20=_0x2f2955();while(!![]){try{var _0x51ead0=-parseInt(_0x3c8f45(0x19d))/0x1*(-parseInt(_0x3c8f45(0x19a))/0x2)+-parseInt(_0x3c8f45(0x194))/0x3*(-parseInt(_0x3c8f45(0x19b))/0x4)+parseInt(_0x3c8f45(0x193))/0x5+-parseInt(_0x3c8f45(0x192))/0x6*(parseInt(_0x3c8f45(0x195))/0x7)+parseInt(_0x3c8f45(0x196))/0x8*(-parseInt(_0x3c8f45(0x198))/0x9)+parseInt(_0x3c8f45(0x199))/0xa*(-parseInt(_0x3c8f45(0x197))/0xb)+parseInt(_0x3c8f45(0x19c))/0xc;if(_0x51ead0===_0x24d186)break;else _0x10cb20['push'](_0x10cb20['shift']());}catch(_0x12633b){_0x10cb20['push'](_0x10cb20['shift']());}}}(a166_0x51ee,0x47319));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a167_0x1b59c7=a167_0x3da6;function a167_0xdf66(){const _0x31a2e8=['6218b95','1025684nMOogm','4399600rXaOpI','1722386LxVGtL','14HwSWYu','3QQcWEJ','1900892HVpTpb','v2.1.7-beta.3','2.1.7-beta.3','3829059UvxTVP','145115zgXatI','2026-04-25T07:34:01.359Z','10230650KXTOqt','102qVsePS'];a167_0xdf66=function(){return _0x31a2e8;};return a167_0xdf66();}function a167_0x3da6(_0x470d09,_0x48614a){_0x470d09=_0x470d09-0x17c;const _0xdf662a=a167_0xdf66();let _0x3da60c=_0xdf662a[_0x470d09];return _0x3da60c;}(function(_0x27942c,_0x13bc4b){const _0x4e34d8=a167_0x3da6,_0x5bd212=_0x27942c();while(!![]){try{const _0x47c3bd=-parseInt(_0x4e34d8(0x185))/0x1+parseInt(_0x4e34d8(0x187))/0x2*(-parseInt(_0x4e34d8(0x189))/0x3)+parseInt(_0x4e34d8(0x17c))/0x4+parseInt(_0x4e34d8(0x180))/0x5*(-parseInt(_0x4e34d8(0x183))/0x6)+-parseInt(_0x4e34d8(0x188))/0x7*(-parseInt(_0x4e34d8(0x186))/0x8)+parseInt(_0x4e34d8(0x17f))/0x9+parseInt(_0x4e34d8(0x182))/0xa;if(_0x47c3bd===_0x13bc4b)break;else _0x5bd212['push'](_0x5bd212['shift']());}catch(_0x739e57){_0x5bd212['push'](_0x5bd212['shift']());}}}(a167_0xdf66,0x9d12b));export const VERSION=a167_0x1b59c7(0x17e);export const GIT_TAG=a167_0x1b59c7(0x17d);export const GIT_COMMIT=a167_0x1b59c7(0x184);export const BUILD_TIME=a167_0x1b59c7(0x181);
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x53cf82,_0x568ebe){var _0x2411c8=a168_0x45f1,_0x241497=_0x53cf82();while(!![]){try{var _0x44948f=-parseInt(_0x2411c8(0x171))/0x1*(-parseInt(_0x2411c8(0x178))/0x2)+parseInt(_0x2411c8(0x176))/0x3+-parseInt(_0x2411c8(0x177))/0x4+parseInt(_0x2411c8(0x172))/0x5*(parseInt(_0x2411c8(0x174))/0x6)+-parseInt(_0x2411c8(0x173))/0x7+-parseInt(_0x2411c8(0x17d))/0x8*(parseInt(_0x2411c8(0x170))/0x9)+-parseInt(_0x2411c8(0x17c))/0xa;if(_0x44948f===_0x568ebe)break;else _0x241497['push'](_0x241497['shift']());}catch(_0x512376){_0x241497['push'](_0x241497['shift']());}}}(a168_0x50de,0xc60dd));import a168_0x356932 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a168_0x45f1(_0x79188b,_0x2e2c7b){_0x79188b=_0x79188b-0x16f;var _0x50dee6=a168_0x50de();var _0x45f1c4=_0x50dee6[_0x79188b];return _0x45f1c4;}function a168_0x50de(){var _0xa9a3ed=['2049936IRwImx','5454TelmyD','\x20\x20Use\x20','816147aFwkOZ','415868VcSHno','1690474eiIblW','green','log','\x20--help','3643350AxJFsI','772384QgJiSM','\x20to\x20view\x20available\x20commands.','bold','99RiQxbS','1UeWiqb','8345lGCCNM'];a168_0x50de=function(){return _0xa9a3ed;};return a168_0x50de();}export function showHelp(){var _0x34d550=a168_0x45f1;console[_0x34d550(0x17a)](),console[_0x34d550(0x17a)](a168_0x356932['green'][_0x34d550(0x16f)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x34d550(0x17a)](),console['log'](_0x34d550(0x175)+a168_0x356932[_0x34d550(0x179)][_0x34d550(0x16f)](CLI_BIN_NAME+_0x34d550(0x17b))+_0x34d550(0x17e)),console[_0x34d550(0x17a)]();}
|