@lovrabet/rabetbase-cli 2.3.9-beta.2 → 2.3.9-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/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.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-skill/index.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-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -0
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.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/business-group-update.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.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/file/index.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/delete.js +1 -0
- package/lib/commands/menu/group-create.js +1 -0
- package/lib/commands/menu/group-update.js +1 -0
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -0
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -0
- package/lib/commands/menu/shared/facts.js +1 -0
- 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/mutations.js +1 -0
- 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/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -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/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-apis-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.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/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.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/commands/task/index.js +1 -0
- package/lib/commands/task/status.js +1 -0
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.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/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.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-index-auditor.js +1 -0
- 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/error-output.js +1 -0
- package/lib/framework/explicit-yes.js +1 -0
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x17b23a,_0x551dd0){const _0x2e4cbb=a203_0x35e6,_0x10b109=_0x17b23a();while(!![]){try{const _0x3a6099=parseInt(_0x2e4cbb(0x18d))/0x1+parseInt(_0x2e4cbb(0x18c))/0x2+-parseInt(_0x2e4cbb(0x189))/0x3*(-parseInt(_0x2e4cbb(0x181))/0x4)+parseInt(_0x2e4cbb(0x180))/0x5+parseInt(_0x2e4cbb(0x18b))/0x6*(-parseInt(_0x2e4cbb(0x188))/0x7)+parseInt(_0x2e4cbb(0x185))/0x8*(parseInt(_0x2e4cbb(0x184))/0x9)+-parseInt(_0x2e4cbb(0x182))/0xa;if(_0x3a6099===_0x551dd0)break;else _0x10b109['push'](_0x10b109['shift']());}catch(_0x28fc4c){_0x10b109['push'](_0x10b109['shift']());}}}(a203_0x1476,0x58369));import{constants}from'node:fs';function a203_0x35e6(_0x4434fe,_0x4d360c){_0x4434fe=_0x4434fe-0x180;const _0x1476a9=a203_0x1476();let _0x35e62c=_0x1476a9[_0x4434fe];return _0x35e62c;}import{access,mkdir}from'node:fs/promises';import{dirname,join,resolve}from'node:path';export function loadPageProjectConfig(_0x53548b,_0x189141=process['cwd']()){const _0x1e6786=a203_0x35e6,_0x33674e=resolve(_0x189141),_0x192411=join(_0x33674e,'.rabetbase','page');return{'projectRoot':_0x33674e,'pagesBaseDir':_0x192411,'appPagesDir':join(_0x192411,_0x53548b),'lockFilePath':join(_0x33674e,_0x1e6786(0x183),_0x1e6786(0x186))};}export function buildPageFileName(_0x410e59,_0x231b79){const _0x3f90d5=a203_0x35e6;return _0x410e59+'-'+String(_0x231b79)['toUpperCase']()+_0x3f90d5(0x18a);}function a203_0x1476(){const _0xb5d390=['489181ngLjpc','3177940aqqmUA','474184gMrHJY','16384800LtxvPG','.rabetbase','460953fcMRdP','80wUMIXj','page.lock.json','appPagesDir','3474163siPmBs','9cngCnZ','.json','6fpjNPX','1007066VMGKWK'];a203_0x1476=function(){return _0xb5d390;};return a203_0x1476();}export function resolvePageFilePath(_0x1f969a,_0x5c44f7,_0x5e975e){const _0x3ea6cd=a203_0x35e6;return join(_0x1f969a[_0x3ea6cd(0x187)],buildPageFileName(_0x5c44f7,_0x5e975e));}export async function ensureParentDirectory(_0x28c556){await mkdir(dirname(_0x28c556),{'recursive':!![]});}export async function fileExists(_0x9f62f5){try{return await access(_0x9f62f5,constants['F_OK']),!![];}catch{return![];}}
|
package/lib/core/page/hash.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4f06d4,_0x5dade4){const _0x383d3c=a204_0xf2cb,_0x276f95=_0x4f06d4();while(!![]){try{const _0x37c8a8=parseInt(_0x383d3c(0x13f))/0x1+-parseInt(_0x383d3c(0x14c))/0x2*(parseInt(_0x383d3c(0x141))/0x3)+-parseInt(_0x383d3c(0x146))/0x4+parseInt(_0x383d3c(0x14d))/0x5*(-parseInt(_0x383d3c(0x13e))/0x6)+-parseInt(_0x383d3c(0x140))/0x7*(parseInt(_0x383d3c(0x147))/0x8)+parseInt(_0x383d3c(0x149))/0x9*(-parseInt(_0x383d3c(0x148))/0xa)+-parseInt(_0x383d3c(0x14b))/0xb*(-parseInt(_0x383d3c(0x145))/0xc);if(_0x37c8a8===_0x5dade4)break;else _0x276f95['push'](_0x276f95['shift']());}catch(_0x49e131){_0x276f95['push'](_0x276f95['shift']());}}}(a204_0x2bd1,0x64d21));import a204_0x2d9d9e from'node:crypto';import{readFile}from'node:fs/promises';function a204_0x2bd1(){const _0x3aca9c=['createHash','11lOyBrV','1166812bIhWWE','15btQMpF','stringify','101922DzyKbZ','325688tquuXH','2394595QvrEDt','3PRyfyL','update','parse','md5','16304304gJcNZa','296084zoShjE','8pbYDrH','100430zlPbAO','198DyqoaE'];a204_0x2bd1=function(){return _0x3aca9c;};return a204_0x2bd1();}function a204_0xf2cb(_0x573fed,_0xc850c5){_0x573fed=_0x573fed-0x13e;const _0x2bd14f=a204_0x2bd1();let _0xf2cb58=_0x2bd14f[_0x573fed];return _0xf2cb58;}export function serializePageSchemaForFile(_0x5e99dc){const _0x5a5f68=a204_0xf2cb;return JSON[_0x5a5f68(0x14e)](JSON[_0x5a5f68(0x143)](_0x5e99dc),null,0x2)+'\x0a';}export function computePageContentHash(_0x4e27c1){const _0x16d8e1=a204_0xf2cb;return a204_0x2d9d9e[_0x16d8e1(0x14a)](_0x16d8e1(0x144))[_0x16d8e1(0x142)](_0x4e27c1)['digest']('hex');}export function computeSerializedSchemaHash(_0x4cceca){return computePageContentHash(serializePageSchemaForFile(_0x4cceca));}export async function computePageFileHash(_0x24cc0a){const _0x589a4e=await readFile(_0x24cc0a,'utf8');return computePageContentHash(_0x589a4e);}
|
package/lib/core/page/lock.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a205_0x241f(){const _0x283203=['utf8','19242XMGydS','272186oaYXmE','2512FJKHzV','pages','ENOENT','parse','1976613KMVOAP','2230YmgQXH','2615768OZpczW','Failed\x20to\x20read\x20page\x20lock\x20file:\x20','4654485cJrLDX','stringify','object','apps','lastSync','2239802qDpyBF','1995VIkdJK'];a205_0x241f=function(){return _0x283203;};return a205_0x241f();}(function(_0x43e28e,_0x3cbbe9){const _0x4ad711=a205_0x2708,_0x16e02f=_0x43e28e();while(!![]){try{const _0x3b2f0c=parseInt(_0x4ad711(0x155))/0x1+parseInt(_0x4ad711(0x151))/0x2+parseInt(_0x4ad711(0x15a))/0x3+parseInt(_0x4ad711(0x156))/0x4*(parseInt(_0x4ad711(0x15b))/0x5)+-parseInt(_0x4ad711(0x154))/0x6*(parseInt(_0x4ad711(0x152))/0x7)+-parseInt(_0x4ad711(0x15c))/0x8+-parseInt(_0x4ad711(0x14c))/0x9;if(_0x3b2f0c===_0x3cbbe9)break;else _0x16e02f['push'](_0x16e02f['shift']());}catch(_0x593b05){_0x16e02f['push'](_0x16e02f['shift']());}}}(a205_0x241f,0x8bdf3));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyPageLock(){return{'apps':{}};}export function ensurePageLockScope(_0x362b20,_0x23512d){const _0x3aedfd=a205_0x2708,_0x1e522e={'apps':_0x362b20[_0x3aedfd(0x14f)]&&typeof _0x362b20['apps']===_0x3aedfd(0x14e)?_0x362b20[_0x3aedfd(0x14f)]:{}};let _0x36b1c2=_0x1e522e[_0x3aedfd(0x14f)][_0x23512d];if(!_0x36b1c2)return _0x36b1c2={'lastSync':'','pages':{}},_0x1e522e['apps'][_0x23512d]=_0x36b1c2,{'lockData':_0x1e522e,'appLock':_0x36b1c2};return!_0x36b1c2[_0x3aedfd(0x150)]&&(_0x36b1c2[_0x3aedfd(0x150)]=''),(!_0x36b1c2['pages']||typeof _0x36b1c2[_0x3aedfd(0x157)]!=='object')&&(_0x36b1c2[_0x3aedfd(0x157)]={}),{'lockData':_0x1e522e,'appLock':_0x36b1c2};}export async function readPageLockFile(_0x50b2ca){const _0x1c8d2a=a205_0x2708;try{const _0x4c7580=await readFile(_0x50b2ca,'utf8'),_0x42d2b5=JSON[_0x1c8d2a(0x159)](_0x4c7580);return{'apps':_0x42d2b5[_0x1c8d2a(0x14f)]&&typeof _0x42d2b5[_0x1c8d2a(0x14f)]==='object'?_0x42d2b5[_0x1c8d2a(0x14f)]:{}};}catch(_0x2539df){if(_0x2539df['code']===_0x1c8d2a(0x158))return null;throw new Error(_0x1c8d2a(0x14b)+String(_0x2539df));}}function a205_0x2708(_0x358aee,_0x5b6c16){_0x358aee=_0x358aee-0x14b;const _0x241fd5=a205_0x241f();let _0x27086e=_0x241fd5[_0x358aee];return _0x27086e;}export async function writePageLockFile(_0x188f0e,_0x3bdc62){const _0x477256=a205_0x2708;await mkdir(dirname(_0x188f0e),{'recursive':!![]}),await writeFile(_0x188f0e,JSON[_0x477256(0x14d)](_0x3bdc62,null,0x2),_0x477256(0x153));}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x36609c,_0x22795f){const _0x59b861=a207_0x5760,_0x440617=_0x36609c();while(!![]){try{const _0x175b68=-parseInt(_0x59b861(0x170))/0x1*(-parseInt(_0x59b861(0x179))/0x2)+parseInt(_0x59b861(0x169))/0x3+-parseInt(_0x59b861(0x192))/0x4*(-parseInt(_0x59b861(0x168))/0x5)+-parseInt(_0x59b861(0x196))/0x6+-parseInt(_0x59b861(0x19e))/0x7*(parseInt(_0x59b861(0x181))/0x8)+-parseInt(_0x59b861(0x18a))/0x9+parseInt(_0x59b861(0x171))/0xa*(parseInt(_0x59b861(0x194))/0xb);if(_0x175b68===_0x22795f)break;else _0x440617['push'](_0x440617['shift']());}catch(_0xe5345f){_0x440617['push'](_0x440617['shift']());}}}(a207_0x1940,0x2b061));export function auditSqlJoinIndexes(_0x5f305f,_0x53a160){const _0x3ec05c=a207_0x5760,_0x4e6160=[],_0x298c94=extractJoinFacts(_0x5f305f)['map'](_0x3aa9aa=>{const _0x40c341=a207_0x5760;if(_0x3aa9aa[_0x40c341(0x167)]||_0x3aa9aa[_0x40c341(0x175)]['length']===0x0)return _0x4e6160[_0x40c341(0x18e)]({'code':_0x40c341(0x18d),'table':_0x3aa9aa[_0x40c341(0x19d)],'alias':_0x3aa9aa[_0x40c341(0x177)],'columns':_0x3aa9aa['columns'],'reason':_0x3aa9aa['unsupportedReason']??_0x40c341(0x18f)}),{'table':_0x3aa9aa[_0x40c341(0x19d)],'alias':_0x3aa9aa[_0x40c341(0x177)],'columns':_0x3aa9aa[_0x40c341(0x175)],'status':'unavailable'};const _0x4646de=resolveTableMetadata(_0x53a160,_0x3aa9aa[_0x40c341(0x19d)]),_0x2e4a9b=(_0x4646de?.[_0x40c341(0x16d)]??[])[_0x40c341(0x17b)](_0x177f3b=>({'index':_0x177f3b,'matchedPrefix':findEqualityPrefix(_0x177f3b[_0x40c341(0x175)],_0x3aa9aa[_0x40c341(0x175)])}))[_0x40c341(0x17e)](_0x2d99e1=>_0x2d99e1[_0x40c341(0x16b)][_0x40c341(0x191)]>0x0),_0x5ada15=_0x2e4a9b[_0x40c341(0x190)]((_0xd264f7,_0x504b81)=>!_0xd264f7||_0x504b81[_0x40c341(0x16b)][_0x40c341(0x191)]>_0xd264f7['matchedPrefix'][_0x40c341(0x191)]?_0x504b81:_0xd264f7,_0x2e4a9b[0x0]);if(_0x5ada15)return{'table':_0x3aa9aa[_0x40c341(0x19d)],'alias':_0x3aa9aa['alias'],'columns':_0x3aa9aa[_0x40c341(0x175)],'status':_0x40c341(0x19b),'matchedIndex':{..._0x5ada15['index'],'matchedPrefix':_0x5ada15[_0x40c341(0x16b)]}};const _0x4294c0=_0x4646de?.['indexes'][_0x40c341(0x17e)](_0x25688d=>_0x25688d[_0x40c341(0x175)][_0x40c341(0x16e)](_0x504e32=>_0x3aa9aa[_0x40c341(0x175)][_0x40c341(0x16e)](_0x275ed8=>columnNamesMatch(_0x504e32,_0x275ed8))))??[];if(_0x4294c0[_0x40c341(0x191)]>0x0)return _0x4e6160[_0x40c341(0x18e)]({'code':_0x40c341(0x166),'table':_0x3aa9aa[_0x40c341(0x19d)],'alias':_0x3aa9aa['alias'],'columns':_0x3aa9aa['columns'],'reason':_0x40c341(0x18b)}),{'table':_0x3aa9aa[_0x40c341(0x19d)],'alias':_0x3aa9aa[_0x40c341(0x177)],'columns':_0x3aa9aa[_0x40c341(0x175)],'status':'warning','candidateIndexes':_0x4294c0};if(_0x4646de&&_0x4646de['metadataAvailable']!==![]&&_0x4646de[_0x40c341(0x16d)][_0x40c341(0x191)]>0x0&&_0x3aa9aa[_0x40c341(0x175)][_0x40c341(0x191)]>0x0)return _0x4e6160[_0x40c341(0x18e)]({'code':_0x40c341(0x172),'table':_0x3aa9aa[_0x40c341(0x19d)],'alias':_0x3aa9aa[_0x40c341(0x177)],'columns':_0x3aa9aa[_0x40c341(0x175)],'reason':_0x40c341(0x178)}),{'table':_0x3aa9aa[_0x40c341(0x19d)],'alias':_0x3aa9aa[_0x40c341(0x177)],'columns':_0x3aa9aa[_0x40c341(0x175)],'status':'warning'};return _0x4e6160[_0x40c341(0x18e)]({'code':_0x40c341(0x16c),'table':_0x3aa9aa[_0x40c341(0x19d)],'alias':_0x3aa9aa[_0x40c341(0x177)],'columns':_0x3aa9aa[_0x40c341(0x175)],'reason':_0x4646de?_0x40c341(0x187):_0x40c341(0x180)}),{'table':_0x3aa9aa[_0x40c341(0x19d)],'alias':_0x3aa9aa[_0x40c341(0x177)],'columns':_0x3aa9aa['columns'],'status':'unavailable'};});return{'checked':_0x298c94[_0x3ec05c(0x191)]>0x0,'joins':_0x298c94,'warnings':_0x4e6160};}function extractJoinFacts(_0x105c69){const _0x19c631=a207_0x5760,_0x9a28b4=maskNestedQueries(stripSqlNoise(_0x105c69)),_0x564028=maskQuotedIdentifiers(_0x9a28b4),_0x2c5a4f=[],_0x12bec2=new Set(),_0x5bd278=/\b(?:(INNER|LEFT|RIGHT|FULL)(?:\s+OUTER)?\s+)?JOIN\s+([`"\w$.]+)(?:\s+(?:AS\s+)?([`"\w$]+))?\s+ON\s+([\s\S]*?)(?=\s+(?:(?:(?:INNER|LEFT|RIGHT|FULL)(?:\s+OUTER)?\s+)?JOIN\b|(?:WHERE|GROUP\s+BY|ORDER\s+BY|HAVING|LIMIT|UNION)\b)|;|$)/gi;for(const _0x165b2e of _0x9a28b4['matchAll'](_0x5bd278)){const _0x461e44=_0x165b2e[_0x19c631(0x1a2)]??0x0,_0x257295=_0x165b2e[0x0]['search'](/\bJOIN\b/i),_0x336e68=_0x461e44+Math[_0x19c631(0x19f)](0x0,_0x257295);if(!/^JOIN\b/i[_0x19c631(0x195)](_0x564028[_0x19c631(0x1a1)](_0x336e68)))continue;_0x12bec2[_0x19c631(0x185)](_0x336e68);const _0x58a01f=normalizeIdentifier(_0x165b2e[0x1]||_0x19c631(0x193)),_0xb3516b=normalizeIdentifier(_0x165b2e[0x2]??''),_0x47b284=normalizeIdentifier(_0x165b2e[0x3]||_0xb3516b[_0x19c631(0x186)]('.')['at'](-0x1)||_0xb3516b),_0x39c6c7=[],_0x38610e=_0xb3516b===_0x19c631(0x16a);let _0x3e0fe1=_0x58a01f===_0x19c631(0x16f)||_0x58a01f===_0x19c631(0x176)||_0x38610e,_0x4261f9=_0x3e0fe1?_0x38610e?_0x19c631(0x188):_0x58a01f[_0x19c631(0x184)]()+_0x19c631(0x174):undefined;const _0x5bffb2=stripOuterParentheses(_0x165b2e[0x4]??'');hasTopLevelKeyword(_0x5bffb2,'OR')&&(_0x3e0fe1=!![],_0x4261f9??=_0x19c631(0x18c));for(const _0x5c6c7b of splitTopLevelAnd(_0x5bffb2)){const _0xca6f31=stripOuterParentheses(_0x5c6c7b);if(hasTopLevelKeyword(_0xca6f31,'OR')){_0x3e0fe1=!![],_0x4261f9??=_0x19c631(0x18c);continue;}const _0x395fef=splitEquality(_0xca6f31);if(!_0x395fef){containsColumnReference(_0x5c6c7b,_0x47b284)&&(_0x3e0fe1=!![]);continue;}const _0x5b0af0=parseDirectColumnReference(_0x395fef[0x0],_0x47b284),_0x840416=parseDirectColumnReference(_0x395fef[0x1],_0x47b284),_0x44cbc6=containsColumnReference(_0x395fef[0x0],_0x47b284),_0x330910=containsColumnReference(_0x395fef[0x1],_0x47b284),_0x535018=_0x5b0af0&&!_0x330910?_0x5b0af0:_0x840416&&!_0x44cbc6?_0x840416:null;if(_0x535018&&!_0x39c6c7[_0x19c631(0x19c)](_0x535018))_0x39c6c7[_0x19c631(0x18e)](_0x535018);else!_0x535018&&containsColumnReference(_0x5c6c7b,_0x47b284)&&(_0x3e0fe1=!![]);}_0x2c5a4f[_0x19c631(0x18e)]({'table':_0xb3516b,'alias':_0x47b284,'columns':_0x39c6c7,'unsupportedPredicate':_0x3e0fe1,'unsupportedReason':_0x4261f9,'position':_0x336e68});}for(const _0x5ee2c3 of _0x564028[_0x19c631(0x17f)](/\bJOIN\b/gi)){const _0x562f38=_0x5ee2c3[_0x19c631(0x1a2)]??0x0;if(_0x12bec2[_0x19c631(0x182)](_0x562f38))continue;const _0x97978b=/^\s+([`"\w$.]+)(?:\s+(?:AS\s+)?([`"\w$]+))?/['exec'](_0x9a28b4[_0x19c631(0x1a1)](_0x562f38+_0x5ee2c3[0x0]['length'])),_0x5c618e=normalizeIdentifier(_0x97978b?.[0x1]||_0x19c631(0x17d)),_0x1b9ebd=normalizeIdentifier(_0x97978b?.[0x2]||''),_0x32c35f=isSqlClauseKeyword(_0x1b9ebd)?_0x5c618e['split']('.')['at'](-0x1)||_0x5c618e:_0x1b9ebd||_0x5c618e[_0x19c631(0x186)]('.')['at'](-0x1)||_0x5c618e;_0x2c5a4f[_0x19c631(0x18e)]({'table':_0x5c618e,'alias':_0x32c35f,'columns':[],'unsupportedPredicate':!![],'unsupportedReason':'Only\x20explicit\x20table\x20JOIN\x20clauses\x20with\x20an\x20ON\x20predicate\x20are\x20supported.','position':_0x562f38});}return _0x2c5a4f['sort']((_0x1417cd,_0x507ca2)=>_0x1417cd[_0x19c631(0x1a5)]-_0x507ca2['position']);}function stripSqlNoise(_0x168d5b){const _0x33e783=a207_0x5760,_0x735940=Array['from'](_0x168d5b),_0xaf2d64=(_0x1eb731,_0x3582a8)=>{for(let _0x4516db=_0x1eb731;_0x4516db<_0x3582a8;_0x4516db+=0x1){_0x735940[_0x4516db]!=='\x0a'&&_0x735940[_0x4516db]!=='\x0d'&&(_0x735940[_0x4516db]='\x20');}};for(let _0x3ba2b5=0x0;_0x3ba2b5<_0x735940['length'];_0x3ba2b5+=0x1){const _0xdd46aa=_0x735940[_0x3ba2b5],_0x161ddf=_0x735940[_0x3ba2b5+0x1];if(_0xdd46aa==='\x27'||_0xdd46aa==='\x22'||_0xdd46aa==='`'){const _0x1b68c2=_0xdd46aa,_0x45f918=_0x3ba2b5;_0x3ba2b5+=0x1;while(_0x3ba2b5<_0x735940[_0x33e783(0x191)]){if(_0x735940[_0x3ba2b5]==='\x5c'&&_0x3ba2b5+0x1<_0x735940[_0x33e783(0x191)]){_0x3ba2b5+=0x2;continue;}if(_0x735940[_0x3ba2b5]!==_0x1b68c2){_0x3ba2b5+=0x1;continue;}if(_0x735940[_0x3ba2b5+0x1]===_0x1b68c2){_0x3ba2b5+=0x2;continue;}break;}if(_0x1b68c2==='\x27')_0xaf2d64(_0x45f918,Math['min'](_0x3ba2b5+0x1,_0x735940['length']));continue;}if(_0xdd46aa==='-'&&_0x161ddf==='-'){const _0x1b770f=_0x3ba2b5;while(_0x3ba2b5<_0x735940[_0x33e783(0x191)]&&_0x735940[_0x3ba2b5]!=='\x0a')_0x3ba2b5+=0x1;_0xaf2d64(_0x1b770f,_0x3ba2b5);continue;}if(_0xdd46aa==='/'&&_0x161ddf==='*'){const _0x5380d1=_0x3ba2b5;_0x3ba2b5+=0x2;while(_0x3ba2b5<_0x735940['length']&&!(_0x735940[_0x3ba2b5]==='*'&&_0x735940[_0x3ba2b5+0x1]==='/')){_0x3ba2b5+=0x1;}_0x3ba2b5=Math[_0x33e783(0x1a4)](_0x3ba2b5+0x1,_0x735940['length']-0x1),_0xaf2d64(_0x5380d1,_0x3ba2b5+0x1);continue;}if(_0xdd46aa==='#'&&_0x161ddf!=='{'){const _0x16d9c3=_0x3ba2b5;while(_0x3ba2b5<_0x735940[_0x33e783(0x191)]&&_0x735940[_0x3ba2b5]!=='\x0a')_0x3ba2b5+=0x1;_0xaf2d64(_0x16d9c3,_0x3ba2b5);continue;}if((_0xdd46aa==='#'||_0xdd46aa==='$')&&_0x161ddf==='{'){const _0x287577=_0x3ba2b5;_0x3ba2b5+=0x2;while(_0x3ba2b5<_0x735940[_0x33e783(0x191)]&&_0x735940[_0x3ba2b5]!=='}')_0x3ba2b5+=0x1;_0xaf2d64(_0x287577,Math[_0x33e783(0x1a4)](_0x3ba2b5+0x1,_0x735940[_0x33e783(0x191)]));}}return _0x735940['join']('');}function a207_0x5760(_0x577016,_0x52591e){_0x577016=_0x577016-0x166;const _0x194061=a207_0x1940();let _0x57609f=_0x194061[_0x577016];return _0x57609f;}function maskQuotedIdentifiers(_0x3811c0){const _0x4d251b=a207_0x5760,_0x2fbcda=Array['from'](_0x3811c0);for(let _0x9649cc=0x0;_0x9649cc<_0x2fbcda['length'];_0x9649cc+=0x1){const _0x5d4ae3=_0x2fbcda[_0x9649cc];if(_0x5d4ae3!=='\x22'&&_0x5d4ae3!=='`')continue;_0x9649cc+=0x1;while(_0x9649cc<_0x2fbcda['length']){if(_0x2fbcda[_0x9649cc]===_0x5d4ae3){if(_0x2fbcda[_0x9649cc+0x1]===_0x5d4ae3){_0x2fbcda[_0x9649cc]='\x20',_0x2fbcda[_0x9649cc+0x1]='\x20',_0x9649cc+=0x2;continue;}break;}_0x2fbcda[_0x9649cc]='\x20',_0x9649cc+=0x1;}}return _0x2fbcda[_0x4d251b(0x197)]('');}function maskNestedQueries(_0x48a425){const _0x6b0400=a207_0x5760,_0x291e2b=Array['from'](_0x48a425);for(let _0x139f83=0x0;_0x139f83<_0x291e2b[_0x6b0400(0x191)];_0x139f83+=0x1){if(_0x291e2b[_0x139f83]!=='(')continue;const _0x274d20=_0x48a425[_0x6b0400(0x1a1)](_0x139f83+0x1);if(!/^\s*(?:SELECT|WITH)\b/i['test'](_0x274d20))continue;let _0x51e739=0x1,_0x3bed7b=_0x139f83+0x1;for(;_0x3bed7b<_0x291e2b[_0x6b0400(0x191)]&&_0x51e739>0x0;_0x3bed7b+=0x1){if(_0x291e2b[_0x3bed7b]==='(')_0x51e739+=0x1;if(_0x291e2b[_0x3bed7b]===')')_0x51e739-=0x1;}if(_0x51e739!==0x0)continue;for(let _0x4870d5=_0x139f83;_0x4870d5<_0x3bed7b;_0x4870d5+=0x1){_0x291e2b[_0x4870d5]='\x20';}const _0x445fc1=_0x6b0400(0x16a);for(let _0x154125=0x0;_0x154125<_0x445fc1[_0x6b0400(0x191)]&&_0x139f83+_0x154125<_0x3bed7b;_0x154125+=0x1){_0x291e2b[_0x139f83+_0x154125]=_0x445fc1[_0x154125];}_0x139f83=_0x3bed7b-0x1;}return _0x291e2b[_0x6b0400(0x197)]('');}function splitTopLevelAnd(_0x608899){const _0x111fc0=a207_0x5760,_0x32e923=[];let _0x4ed4be=0x0,_0x508337=0x0;for(let _0x588f37=0x0;_0x588f37<_0x608899['length'];_0x588f37+=0x1){const _0x5d6f55=_0x608899[_0x588f37];if(_0x5d6f55==='(')_0x4ed4be+=0x1;if(_0x5d6f55===')')_0x4ed4be=Math[_0x111fc0(0x19f)](0x0,_0x4ed4be-0x1);_0x4ed4be===0x0&&_0x608899[_0x111fc0(0x1a1)](_0x588f37)[_0x111fc0(0x17a)](/^AND\b/i)&&(_0x588f37===0x0||/\s/[_0x111fc0(0x195)](_0x608899[_0x588f37-0x1]??''))&&(_0x32e923['push'](_0x608899[_0x111fc0(0x1a1)](_0x508337,_0x588f37)[_0x111fc0(0x19a)]()),_0x588f37+=0x2,_0x508337=_0x588f37+0x1);}const _0x1b4cbd=_0x608899[_0x111fc0(0x1a1)](_0x508337)[_0x111fc0(0x19a)]();if(_0x1b4cbd)_0x32e923[_0x111fc0(0x18e)](_0x1b4cbd);return _0x32e923;}function a207_0x1940(){const _0x4bf5c1=['JOIN_INDEX_NOT_USABLE','unsupportedPredicate','2610iDEzZy','551565TmJuvA','__sq__','matchedPrefix','INDEX_METADATA_UNAVAILABLE','indexes','some','right','36081dzJiRT','2816060KopIDr','JOIN_INDEX_MISSING','startsWith','\x20JOIN\x20direction\x20is\x20not\x20supported\x20by\x20static\x20index\x20auditing.','columns','full','alias','No\x20reported\x20index\x20contains\x20the\x20JOIN\x20access\x20columns.','2DZNMkN','match','map','tableName','unknown','filter','matchAll','No\x20dataset\x20metadata\x20matched\x20the\x20JOIN\x20table.','1061488lYgHvP','has','(?:^|[^\x5cw$])','toUpperCase','add','split','The\x20dataset\x20returned\x20no\x20distinguishable\x20index\x20metadata.','Derived-table\x20JOIN\x20targets\x20are\x20not\x20supported.','toLowerCase','773568baqxOq','Relevant\x20columns\x20do\x20not\x20form\x20a\x20complete\x20leftmost\x20index\x20prefix.','OR-connected\x20JOIN\x20predicates\x20are\x20not\x20supported.','JOIN_PREDICATE_UNSUPPORTED','push','Not\x20every\x20JOIN\x20target\x20predicate\x20could\x20be\x20audited\x20safely.','reduce','length','1544rrqQud','INNER','11AOUFVt','test','1052910flBrqM','join','inner','cross','trim','covered','includes','table','14MmCJeu','max','natural','slice','index','\x5cs*\x5c.\x5cs*[\x5cw$]+','min','position','replace'];a207_0x1940=function(){return _0x4bf5c1;};return a207_0x1940();}function hasTopLevelKeyword(_0x4ab839,_0x29ec02){const _0x12916a=a207_0x5760;let _0xef7caa=0x0;for(let _0x1362b3=0x0;_0x1362b3<_0x4ab839[_0x12916a(0x191)];_0x1362b3+=0x1){const _0x11ccde=_0x4ab839[_0x1362b3];if(_0x11ccde==='(')_0xef7caa+=0x1;if(_0x11ccde===')')_0xef7caa=Math['max'](0x0,_0xef7caa-0x1);if(_0xef7caa!==0x0)continue;const _0x2199ab=_0x4ab839[_0x12916a(0x1a1)](_0x1362b3,_0x1362b3+_0x29ec02['length']),_0x10f766=_0x4ab839[_0x1362b3-0x1]??'\x20',_0x5dd332=_0x4ab839[_0x1362b3+_0x29ec02[_0x12916a(0x191)]]??'\x20';if(_0x2199ab[_0x12916a(0x184)]()===_0x29ec02[_0x12916a(0x184)]()&&!/[\w$]/[_0x12916a(0x195)](_0x10f766)&&!/[\w$]/[_0x12916a(0x195)](_0x5dd332))return!![];}return![];}function splitEquality(_0x514eea){const _0x16e5ba=a207_0x5760,_0x214e83=stripOuterParentheses(_0x514eea);let _0x3fed52=0x0,_0x1ff967;for(let _0x5f359f=0x0;_0x5f359f<_0x214e83['length'];_0x5f359f+=0x1){const _0x121e9e=_0x214e83[_0x5f359f];if(_0x121e9e==='(')_0x3fed52+=0x1;if(_0x121e9e===')')_0x3fed52=Math['max'](0x0,_0x3fed52-0x1);const _0x2ba8e9=_0x214e83[_0x5f359f-0x1]??'',_0x27b845=_0x214e83[_0x5f359f+0x1]??'';if(_0x121e9e==='='&&_0x3fed52===0x0&&!/[!<>=:]/[_0x16e5ba(0x195)](_0x2ba8e9)&&_0x27b845!=='='){if(_0x1ff967!==undefined)return null;_0x1ff967=_0x5f359f;}}return _0x1ff967===undefined?null:[_0x214e83[_0x16e5ba(0x1a1)](0x0,_0x1ff967)[_0x16e5ba(0x19a)](),_0x214e83[_0x16e5ba(0x1a1)](_0x1ff967+0x1)['trim']()];}function parseDirectColumnReference(_0x5753a4,_0x469f44){const _0xf7a7b7=/^([`"]?[\w$]+[`"]?)\s*\.\s*([`"]?[\w$]+[`"]?)$/['exec'](stripOuterParentheses(_0x5753a4));if(!_0xf7a7b7)return null;if(normalizeIdentifier(_0xf7a7b7[0x1]??'')!==normalizeIdentifier(_0x469f44))return null;return normalizeIdentifier(_0xf7a7b7[0x2]??'');}function containsColumnReference(_0x50d4e7,_0xefb7ad){const _0xc0fd22=a207_0x5760,_0x2a4db5=_0x50d4e7[_0xc0fd22(0x1a6)](/[`"]/g,''),_0x50110f=_0xefb7ad[_0xc0fd22(0x1a6)](/[.*+?^${}()|[\]\\]/g,'\x5c$&');return new RegExp(_0xc0fd22(0x183)+_0x50110f+_0xc0fd22(0x1a3),'i')[_0xc0fd22(0x195)](_0x2a4db5);}function findEqualityPrefix(_0x2473af,_0x65798d){const _0x4f81f8=a207_0x5760,_0x47a73b=new Set(_0x65798d[_0x4f81f8(0x17b)](normalizeIdentifier)),_0x1a8d22=[];for(const _0x1e6be9 of _0x2473af){if(!_0x47a73b['has'](normalizeIdentifier(_0x1e6be9)))break;_0x1a8d22[_0x4f81f8(0x18e)](_0x1e6be9);}return _0x1a8d22;}function resolveTableMetadata(_0xfd4894,_0xfa49d){const _0x3140b8=a207_0x5760,_0x122487=normalizeIdentifier(_0xfa49d),_0x2c6d10=_0xfd4894[_0x3140b8(0x17e)](_0x3d3214=>normalizeIdentifier(_0x3d3214[_0x3140b8(0x17c)])===_0x122487);if(_0x2c6d10[_0x3140b8(0x191)]===0x1)return _0x2c6d10[0x0];const _0x83b0f4=_0x122487[_0x3140b8(0x19c)]('.'),_0x2ec545=_0x122487[_0x3140b8(0x186)]('.')['at'](-0x1),_0x3daa34=_0xfd4894[_0x3140b8(0x17e)](_0x4a6206=>{const _0x36d144=_0x3140b8,_0x5aebfd=normalizeIdentifier(_0x4a6206['tableName']);if(_0x83b0f4&&_0x5aebfd[_0x36d144(0x19c)]('.'))return![];return _0x5aebfd[_0x36d144(0x186)]('.')['at'](-0x1)===_0x2ec545;});return _0x3daa34['length']===0x1?_0x3daa34[0x0]:undefined;}function columnNamesMatch(_0x21b553,_0x502fa5){return normalizeIdentifier(_0x21b553)===normalizeIdentifier(_0x502fa5);}function normalizeIdentifier(_0x12f7bc){const _0x443bc0=a207_0x5760;return _0x12f7bc[_0x443bc0(0x1a6)](/[`"]/g,'')[_0x443bc0(0x19a)]()[_0x443bc0(0x189)]();}function isSqlClauseKeyword(_0x20b975){const _0x146c55=a207_0x5760;return new Set(['on','using','where',_0x146c55(0x197),_0x146c55(0x198),'left','right','full',_0x146c55(0x199),_0x146c55(0x1a0)])['has'](_0x20b975);}function stripOuterParentheses(_0x1430c6){const _0x29d38d=a207_0x5760;let _0x5c3a63=_0x1430c6[_0x29d38d(0x19a)]();while(_0x5c3a63[_0x29d38d(0x173)]('(')&&_0x5c3a63['endsWith'](')')){let _0xff669a=0x0,_0x5d4b4f=!![];for(let _0x59a0f4=0x0;_0x59a0f4<_0x5c3a63[_0x29d38d(0x191)];_0x59a0f4+=0x1){if(_0x5c3a63[_0x59a0f4]==='(')_0xff669a+=0x1;if(_0x5c3a63[_0x59a0f4]===')')_0xff669a-=0x1;if(_0xff669a===0x0&&_0x59a0f4<_0x5c3a63['length']-0x1){_0x5d4b4f=![];break;}}if(!_0x5d4b4f||_0xff669a!==0x0)break;_0x5c3a63=_0x5c3a63[_0x29d38d(0x1a1)](0x1,-0x1)[_0x29d38d(0x19a)]();}return _0x5c3a63;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a208_0x4301dd=a208_0x4352;function a208_0x5144(){const _0x10e8da=['5892754swEfnH','795184AqHzgU','151266xVrFRX','.rabetbase','sql','1719496FMbYVd','sql.lock.json','9743830dlJWWX','6SXpNek','165vHbpiM','3258afcDoE','12944eBIrrq','452826GfzosT'];a208_0x5144=function(){return _0x10e8da;};return a208_0x5144();}function a208_0x4352(_0x487aaf,_0x14ae12){_0x487aaf=_0x487aaf-0x12e;const _0x514412=a208_0x5144();let _0x43521f=_0x514412[_0x487aaf];return _0x43521f;}(function(_0x1827af,_0x47bc2c){const _0x556143=a208_0x4352,_0x2e5a35=_0x1827af();while(!![]){try{const _0x53d8aa=parseInt(_0x556143(0x133))/0x1+parseInt(_0x556143(0x131))/0x2+parseInt(_0x556143(0x13a))/0x3*(parseInt(_0x556143(0x137))/0x4)+-parseInt(_0x556143(0x12e))/0x5*(parseInt(_0x556143(0x134))/0x6)+-parseInt(_0x556143(0x132))/0x7+parseInt(_0x556143(0x130))/0x8*(-parseInt(_0x556143(0x12f))/0x9)+parseInt(_0x556143(0x139))/0xa;if(_0x53d8aa===_0x47bc2c)break;else _0x2e5a35['push'](_0x2e5a35['shift']());}catch(_0x147da6){_0x2e5a35['push'](_0x2e5a35['shift']());}}}(a208_0x5144,0x91903));import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a208_0x4301dd(0x135),LOCK_FILE_NAME=a208_0x4301dd(0x138),TRASH_DIR_NAME='sql-trash';export function loadSqlProjectConfig(_0x43bb4f,_0xc75412){const _0x27f4cf=a208_0x4301dd,_0x5351dd=resolve(_0xc75412??findProjectRootDirectory()),_0x441e41=DOT_DIR+'/sql',_0x506484=_0x441e41+'/'+_0x43bb4f;return{'projectRoot':_0x5351dd,'appCode':_0x43bb4f,'sqlWorkspaceRoot':_0x441e41,'sqlRoot':_0x506484,'sqlRootDir':resolve(_0x5351dd,DOT_DIR,_0x27f4cf(0x136),_0x43bb4f),'lockFilePath':resolve(_0x5351dd,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x5351dd,DOT_DIR,TRASH_DIR_NAME)};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x43371d,_0x4da355){const _0x2f8058=a209_0xa076,_0x810a75=_0x43371d();while(!![]){try{const _0x1016c5=-parseInt(_0x2f8058(0x1e4))/0x1*(parseInt(_0x2f8058(0x1d6))/0x2)+parseInt(_0x2f8058(0x1d3))/0x3+-parseInt(_0x2f8058(0x1e6))/0x4*(-parseInt(_0x2f8058(0x1e2))/0x5)+parseInt(_0x2f8058(0x1d4))/0x6+parseInt(_0x2f8058(0x1df))/0x7*(parseInt(_0x2f8058(0x1d8))/0x8)+-parseInt(_0x2f8058(0x1cc))/0x9+parseInt(_0x2f8058(0x1d1))/0xa*(-parseInt(_0x2f8058(0x1dc))/0xb);if(_0x1016c5===_0x4da355)break;else _0x810a75['push'](_0x810a75['shift']());}catch(_0x44ac77){_0x810a75['push'](_0x810a75['shift']());}}}(a209_0x13b8,0x65c28));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x129941){const _0x6aeaca=a209_0xa076;if(_0x129941==='.sql')return'sql';if(_0x129941===_0x6aeaca(0x1d0))return _0x6aeaca(0x1d5);return undefined;}async function scanSqlFilesRecursively(_0x46b170,_0x5698c3){const _0x482938=a209_0xa076,_0x1d487c=[];try{const _0x5b7c49=await readdir(_0x46b170,{'withFileTypes':!![]});for(const _0x162d7d of _0x5b7c49){const _0x47679d=join(_0x46b170,_0x162d7d[_0x482938(0x1e7)]);if(_0x162d7d[_0x482938(0x1d9)]()){_0x1d487c['push'](...await scanSqlFilesRecursively(_0x47679d,_0x5698c3));continue;}if(!_0x162d7d[_0x482938(0x1e0)]())continue;const _0x341a45=extname(_0x162d7d[_0x482938(0x1e7)])[_0x482938(0x1d2)](),_0x2bacd4=extensionToMode(_0x341a45);if(!_0x2bacd4)continue;const _0x2fa46d=relative(_0x5698c3,_0x47679d)[_0x482938(0x1e5)](/\\/g,'/'),_0x288ec8=_0x2fa46d['split']('/')['filter'](Boolean),_0x115b9c=parseSqlPath(_0x288ec8,_0x162d7d[_0x482938(0x1e7)],_0x341a45);if(!_0x115b9c)continue;_0x1d487c[_0x482938(0x1da)]({'sqlCode':_0x115b9c[_0x482938(0x1e3)],'sqlName':_0x115b9c[_0x482938(0x1cf)],'dbDirectory':_0x288ec8[0x0],'filePath':_0x47679d,'relativePath':_0x2fa46d,'lockKey':_0x115b9c[_0x482938(0x1e3)],'mode':_0x2bacd4});}}catch(_0x1f681f){if(_0x1f681f[_0x482938(0x1cd)]!==_0x482938(0x1d7))throw _0x1f681f;}return _0x1d487c;}export async function scanLocalSqlQueries(_0x221d03){const _0x17860e=a209_0xa076;return scanSqlFilesRecursively(_0x221d03[_0x17860e(0x1dd)],_0x221d03['sqlRootDir']);}function a209_0x13b8(){const _0xeefa30=['dbName','5191020pYeUTY','code','slice','sqlName','.xml','50HBMrhF','toLowerCase','2129676GcxKzE','3213420dNEFIE','mybatisXml','1568hjRWWl','ENOENT','8seQHMZ','isDirectory','push','mode','543279KHoiuo','sqlRootDir','length','4986891mjEVpl','isFile','indexOf','5QRyQVA','sqlCode','1018RGUgjn','replace','323080FophmF','name','test','dbId'];a209_0x13b8=function(){return _0xeefa30;};return a209_0x13b8();}function a209_0xa076(_0xc04261,_0x380269){_0xc04261=_0xc04261-0x1c9;const _0x13b807=a209_0x13b8();let _0xa076c0=_0x13b807[_0xc04261];return _0xa076c0;}export function resolveLocalSqlFilePath(_0x42d8aa,_0x4717a8,_0x547226){const _0x3f75c6=a209_0xa076,_0x239704=_0x547226?.['path']||(_0x547226?.[_0x3f75c6(0x1cf)]||_0x547226?.['dbName']?buildSqlRelativePath(_0x4717a8,_0x547226?.['sqlName'],_0x547226?.[_0x3f75c6(0x1cb)],_0x547226?.[_0x3f75c6(0x1db)]||'sql',_0x547226?.[_0x3f75c6(0x1ca)]):buildDefaultSqlFileName(_0x4717a8,_0x547226?.[_0x3f75c6(0x1db)]||'sql'));return join(_0x42d8aa['sqlRootDir'],_0x239704);}export async function directoryExists(_0x5062b6){const _0x2b76a2=a209_0xa076;try{const _0x528f31=await stat(_0x5062b6);return _0x528f31[_0x2b76a2(0x1d9)]();}catch{return![];}}function parseSqlPath(_0x4a4daa,_0x11f1e6,_0x38646d){const _0x30cb17=a209_0xa076,_0x415823=_0x11f1e6[_0x30cb17(0x1ce)](0x0,-_0x38646d['length']);if(_0x4a4daa[_0x30cb17(0x1de)]<0x2)return null;const _0x3b1eda=_0x415823[_0x30cb17(0x1e1)]('_');if(_0x3b1eda<=0x0||_0x3b1eda>=_0x415823[_0x30cb17(0x1de)]-0x1)return null;const _0x382078=_0x415823[_0x30cb17(0x1ce)](0x0,_0x3b1eda);if(!isLikelySqlCode(_0x382078))return null;return{'sqlCode':_0x382078,'sqlName':_0x415823[_0x30cb17(0x1ce)](_0x3b1eda+0x1)};}function isLikelySqlCode(_0x5380bf){const _0x1eeb50=a209_0xa076;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x1eeb50(0x1c9)](_0x5380bf);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x58911d,_0x27f84c){const _0x5637ce=a210_0x4894,_0x352cae=_0x58911d();while(!![]){try{const _0x5f4da6=-parseInt(_0x5637ce(0x19d))/0x1*(-parseInt(_0x5637ce(0x1a5))/0x2)+parseInt(_0x5637ce(0x19b))/0x3*(parseInt(_0x5637ce(0x1a3))/0x4)+parseInt(_0x5637ce(0x19a))/0x5+-parseInt(_0x5637ce(0x19c))/0x6+parseInt(_0x5637ce(0x1a1))/0x7*(parseInt(_0x5637ce(0x1a2))/0x8)+-parseInt(_0x5637ce(0x1a0))/0x9+-parseInt(_0x5637ce(0x1a4))/0xa;if(_0x5f4da6===_0x27f84c)break;else _0x352cae['push'](_0x352cae['shift']());}catch(_0x4e837d){_0x352cae['push'](_0x352cae['shift']());}}}(a210_0x2898,0x85b13));function a210_0x2898(){const _0x525f63=['12881270lgYbsk','406RTMUfA','2278505ySWqAp','65133GDwoRv','561432ZsmzOJ','3349VcqoHJ','md5','hex','2337174DconqS','7vJkNTj','2348440coecCR','140mLccph'];a210_0x2898=function(){return _0x525f63;};return a210_0x2898();}import{readFile}from'node:fs/promises';function a210_0x4894(_0x2568c4,_0x5e944d){_0x2568c4=_0x2568c4-0x19a;const _0x2898bf=a210_0x2898();let _0x489499=_0x2898bf[_0x2568c4];return _0x489499;}import a210_0x38acfc from'node:crypto';export function computeSqlContentHash(_0x44472c){const _0x322933=a210_0x4894;return a210_0x38acfc['createHash'](_0x322933(0x19e))['update'](_0x44472c)['digest'](_0x322933(0x19f));}export async function computeSqlFileHash(_0x5756b0){const _0x5de175=await readFile(_0x5756b0,'utf8');return computeSqlContentHash(_0x5de175);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a211_0x3424(_0x502fd2,_0x2584c8){_0x502fd2=_0x502fd2-0xab;const _0x5dedf7=a211_0x5ded();let _0x342467=_0x5dedf7[_0x502fd2];return _0x342467;}(function(_0x241c6a,_0x38177b){const _0x517f29=a211_0x3424,_0x3c4740=_0x241c6a();while(!![]){try{const _0x2409ac=-parseInt(_0x517f29(0xbe))/0x1+-parseInt(_0x517f29(0xaf))/0x2*(-parseInt(_0x517f29(0xb5))/0x3)+-parseInt(_0x517f29(0xc0))/0x4+-parseInt(_0x517f29(0xb2))/0x5+-parseInt(_0x517f29(0xb3))/0x6*(-parseInt(_0x517f29(0xab))/0x7)+parseInt(_0x517f29(0xb6))/0x8*(parseInt(_0x517f29(0xbd))/0x9)+parseInt(_0x517f29(0xb9))/0xa*(parseInt(_0x517f29(0xb0))/0xb);if(_0x2409ac===_0x38177b)break;else _0x3c4740['push'](_0x3c4740['shift']());}catch(_0x105192){_0x3c4740['push'](_0x3c4740['shift']());}}}(a211_0x5ded,0x3222e));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x1e04ca,_0x384184,_0x1cc5a4,_0x38e7f6){const _0x43dcb4=a211_0x3424,_0x5e234f=_0x1e04ca??createEmptySqlLock();let _0x286750=_0x5e234f[_0x43dcb4(0xbb)][_0x384184];if(!_0x286750)return _0x286750={'sqlRoot':_0x1cc5a4,'lastSync':'','sqls':{}},_0x5e234f[_0x43dcb4(0xbb)][_0x384184]=_0x286750,{'lockData':_0x5e234f,'appLock':_0x286750};if(!_0x286750[_0x43dcb4(0xad)])_0x286750[_0x43dcb4(0xad)]=_0x1cc5a4;else{if(_0x286750[_0x43dcb4(0xad)]!==_0x1cc5a4)throw new Error(_0x38e7f6+_0x43dcb4(0xae)+_0x1cc5a4+_0x43dcb4(0xb1)+_0x286750[_0x43dcb4(0xad)]+'\x22.\x20'+_0x43dcb4(0xba));}return!_0x286750[_0x43dcb4(0xbc)]&&(_0x286750['sqls']={}),!_0x286750[_0x43dcb4(0xb7)]&&(_0x286750['lastSync']=''),{'lockData':_0x5e234f,'appLock':_0x286750};}export async function readSqlLockFile(_0x403a7a){const _0x1d75c0=a211_0x3424;try{const _0x389b12=await readFile(_0x403a7a,_0x1d75c0(0xb8));return JSON[_0x1d75c0(0xc1)](_0x389b12);}catch(_0x3c8dc0){if(_0x3c8dc0['code']===_0x1d75c0(0xac))return null;throw new Error(_0x1d75c0(0xbf)+String(_0x3c8dc0));}}export async function writeSqlLockFile(_0x5f25da,_0x22e311){const _0x3b8057=a211_0x3424;await mkdir(dirname(_0x5f25da),{'recursive':!![]}),await writeFile(_0x5f25da,JSON[_0x3b8057(0xb4)](_0x22e311,null,0x2),_0x3b8057(0xb8));}function a211_0x5ded(){const _0x25b281=['\x22\x20vs\x20lock\x20\x22','939985nyDDuI','12gDXQBy','stringify','4881AToTjm','72bigxcP','lastSync','utf8','265570fFCuEc','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','apps','sqls','171567dDwSIZ','227321ZmxTEV','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','465144qVqtCd','parse','364574fkiUST','ENOENT','sqlRoot',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','12DtFvgU','187XDvzBz'];a211_0x5ded=function(){return _0x25b281;};return a211_0x5ded();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a213_0x36be(_0x5fc2b4,_0x3034d1){_0x5fc2b4=_0x5fc2b4-0xfb;const _0x4d530f=a213_0x4d53();let _0x36be78=_0x4d530f[_0x5fc2b4];return _0x36be78;}(function(_0x2a96c2,_0x54b0b8){const _0x322e50=a213_0x36be,_0x296c20=_0x2a96c2();while(!![]){try{const _0x39a081=parseInt(_0x322e50(0xfd))/0x1*(-parseInt(_0x322e50(0x102))/0x2)+-parseInt(_0x322e50(0xfb))/0x3+parseInt(_0x322e50(0x104))/0x4+parseInt(_0x322e50(0xfe))/0x5*(parseInt(_0x322e50(0x105))/0x6)+parseInt(_0x322e50(0x108))/0x7*(parseInt(_0x322e50(0x103))/0x8)+-parseInt(_0x322e50(0xfc))/0x9*(-parseInt(_0x322e50(0x109))/0xa)+parseInt(_0x322e50(0x10c))/0xb*(-parseInt(_0x322e50(0x107))/0xc);if(_0x39a081===_0x54b0b8)break;else _0x296c20['push'](_0x296c20['shift']());}catch(_0x5b14ee){_0x296c20['push'](_0x296c20['shift']());}}}(a213_0x4d53,0xdcf81));export function detectSqlMode(_0x1f0466){const _0x1cdac6=a213_0x36be,_0x5a176a=_0x1f0466[_0x1cdac6(0xff)]();if(/^<(select|insert|update|delete)\b/i[_0x1cdac6(0x10a)](_0x5a176a))return'mybatisXml';return'sql';}function a213_0x4d53(){const _0x4ccaf6=['1399409ehwWbk','replace','2914122PvTAqh','1719SbBupS','3ELsngf','2615wSeovQ','trimStart','unknown-db','mybatisXml','1159182PUJTJr','555848LFHVuL','4935592caamha','6852WRyHUk','db-','120bSimxh','175XjlLYC','69070kIPodu','test','.xml'];a213_0x4d53=function(){return _0x4ccaf6;};return a213_0x4d53();}export function getSqlFileExtension(_0x5eb7ed){const _0x47c15b=a213_0x36be;return _0x5eb7ed===_0x47c15b(0x101)?_0x47c15b(0x10b):'.sql';}export function buildDefaultSqlFileName(_0x1f83b7,_0x1400b7){return''+_0x1f83b7+getSqlFileExtension(_0x1400b7);}export function sanitizeSqlPathSegment(_0xf1b699,_0x46b645){const _0x2e57b4=a213_0x36be,_0x1d9d66=String(_0xf1b699??'')['trim'](),_0x4c041d=_0x1d9d66[_0x2e57b4(0x10d)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x2e57b4(0x10d)](/\s+/g,'-')['replace'](/-+/g,'-')[_0x2e57b4(0x10d)](/^\.+/,'')[_0x2e57b4(0x10d)](/\.+$/,'')['replace'](/^-+/,'')['replace'](/-+$/,'');return _0x4c041d||_0x46b645;}export function buildDbDirectoryName(_0x414d73,_0x13b649){const _0x2a8361=a213_0x36be;return sanitizeSqlPathSegment(_0x414d73,_0x13b649!=null?_0x2a8361(0x106)+_0x13b649:_0x2a8361(0x100));}export function buildSqlRelativePath(_0x842964,_0x110f5b,_0x3a6b84,_0xbf7182,_0x10abf9){const _0x32f848=buildDbDirectoryName(_0x3a6b84,_0x10abf9),_0x337593=sanitizeSqlPathSegment(_0x842964,'unknown-sql'),_0x265c72=sanitizeSqlPathSegment(_0x110f5b,_0x337593);return _0x32f848+'/'+_0x337593+'_'+_0x265c72+getSqlFileExtension(_0xbf7182);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a214_0x109b(_0x8929aa,_0x864e6){_0x8929aa=_0x8929aa-0x185;const _0x3485d5=a214_0x3485();let _0x109b74=_0x3485d5[_0x8929aa];return _0x109b74;}(function(_0x5b9c87,_0x5f15f2){const _0x5ef02e=a214_0x109b,_0x1d762f=_0x5b9c87();while(!![]){try{const _0x3156b4=-parseInt(_0x5ef02e(0x18f))/0x1+-parseInt(_0x5ef02e(0x189))/0x2+parseInt(_0x5ef02e(0x1a4))/0x3*(-parseInt(_0x5ef02e(0x193))/0x4)+parseInt(_0x5ef02e(0x18b))/0x5+parseInt(_0x5ef02e(0x1a8))/0x6*(-parseInt(_0x5ef02e(0x195))/0x7)+parseInt(_0x5ef02e(0x196))/0x8*(parseInt(_0x5ef02e(0x1ac))/0x9)+-parseInt(_0x5ef02e(0x18d))/0xa*(-parseInt(_0x5ef02e(0x18c))/0xb);if(_0x3156b4===_0x5f15f2)break;else _0x1d762f['push'](_0x1d762f['shift']());}catch(_0x1e3ad4){_0x1d762f['push'](_0x1d762f['shift']());}}}(a214_0x3485,0xcdfa4));export function detectSqlType(_0x4f820b){const _0x1cc1fa=a214_0x109b;if(!_0x4f820b?.[_0x1cc1fa(0x185)]())return{'type':_0x1cc1fa(0x192),'isSelectOnly':![],'isDangerous':![],'reason':_0x1cc1fa(0x19c)};const _0x2e5eb4=_0x4f820b[_0x1cc1fa(0x186)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x1cc1fa(0x186)](/@[^(\s]+(\([^)]*\))?/g,'')['replace'](/\/\*[\s\S]*?\*\//g,'')[_0x1cc1fa(0x185)](),_0x26a6cd=_0x2e5eb4[_0x1cc1fa(0x19b)]('\x0a');let _0x768063='';for(const _0xd00e97 of _0x26a6cd){const _0x5f0574=_0xd00e97[_0x1cc1fa(0x185)]();if(!_0x5f0574||_0x5f0574[_0x1cc1fa(0x18e)]('--')||_0x5f0574[_0x1cc1fa(0x18e)]('/*'))continue;_0x768063=_0x5f0574;break;}const _0x366312=_0x768063[_0x1cc1fa(0x1a1)]();if(_0x366312[_0x1cc1fa(0x18e)]('SELECT')||_0x366312['startsWith'](_0x1cc1fa(0x1ab))){const _0x18bf13=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x1cc1fa(0x1a3)](_0x2e5eb4);return{'type':_0x1cc1fa(0x19a),'isSelectOnly':!_0x18bf13,'isDangerous':_0x18bf13,'reason':_0x18bf13?_0x1cc1fa(0x1a9):undefined};}if(_0x366312[_0x1cc1fa(0x18e)](_0x1cc1fa(0x18a)))return{'type':_0x1cc1fa(0x18a),'isSelectOnly':![],'isDangerous':![]};if(_0x366312[_0x1cc1fa(0x18e)](_0x1cc1fa(0x1a2)))return{'type':_0x1cc1fa(0x1a2),'isSelectOnly':![],'isDangerous':![]};if(_0x366312[_0x1cc1fa(0x18e)]('DELETE'))return{'type':'DELETE','isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0x366312))return{'type':'DDL','isSelectOnly':![],'isDangerous':!![],'reason':_0x1cc1fa(0x19d)};return{'type':_0x1cc1fa(0x192),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x184d24){const _0x228658=a214_0x109b,_0x34fc94=_0x184d24[_0x228658(0x186)](/#\{[^}]*\}/g,'?')[_0x228658(0x186)](/\$\{[^}]*\}/g,'?')[_0x228658(0x186)](/'[^']*'/g,'\x27\x27')[_0x228658(0x186)](/--.*$/gm,'')[_0x228658(0x186)](/\/\*[\s\S]*?\*\//g,''),_0x3f8fdc=[],_0x31eaed=_0x34fc94[_0x228658(0x188)](/FROM\s+([^\s,)(]+)/i);if(_0x31eaed?.[0x1])_0x3f8fdc[_0x228658(0x199)](_0x31eaed[0x1][_0x228658(0x186)](/[`"]/g,''));for(const _0x58d772 of _0x34fc94['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x2e023d=_0x58d772[0x1]?.['replace'](/[`"]/g,'');if(_0x2e023d&&!_0x3f8fdc[_0x228658(0x194)](_0x2e023d))_0x3f8fdc[_0x228658(0x199)](_0x2e023d);}const _0x505b97=_0x34fc94[_0x228658(0x188)](/INTO\s+([^\s(]+)/i);if(_0x505b97?.[0x1]){const _0x157ec6=_0x505b97[0x1][_0x228658(0x186)](/[`"]/g,'');if(!_0x3f8fdc[_0x228658(0x194)](_0x157ec6))_0x3f8fdc[_0x228658(0x199)](_0x157ec6);}const _0x2c1394=_0x34fc94[_0x228658(0x188)](/UPDATE\s+([^\s,)(]+)/i);if(_0x2c1394?.[0x1]){const _0x5d7773=_0x2c1394[0x1][_0x228658(0x186)](/[`"]/g,'');if(!_0x3f8fdc[_0x228658(0x194)](_0x5d7773))_0x3f8fdc['push'](_0x5d7773);}return _0x3f8fdc;}function extractParameters(_0x189065){const _0x586084=a214_0x109b,_0x1156dc=new Set();for(const _0x5a7251 of _0x189065[_0x586084(0x191)](/#\{(\w+)\}/g))if(_0x5a7251[0x1])_0x1156dc['add'](_0x5a7251[0x1]);for(const _0x189208 of _0x189065[_0x586084(0x191)](/\$\{(\w+)\}/g))if(_0x189208[0x1])_0x1156dc[_0x586084(0x1a6)](_0x189208[0x1]);return Array[_0x586084(0x197)](_0x1156dc);}function a214_0x3485(){const _0xed68b8=['3652doUQKW','includes','3428222JxbnKY','5879624bBADMr','from','\x20with\x20parameters:\x20','push','SELECT','split','SQL\x20content\x20is\x20empty','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','type','length','join','toUpperCase','UPDATE','test','2307UjEKco','reason','add','\x20query\x20targeting\x20','6HGdpEm','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','unknown\x20table(s)','WITH','18csHGjx','trim','replace','isDangerous','match','98162NLSQKB','INSERT','3598200aNQhbZ','64229MkDUls','10sZXKql','startsWith','110777IPGuGr','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','matchAll','UNKNOWN'];a214_0x3485=function(){return _0xed68b8;};return a214_0x3485();}export function validateSql(_0xe67c97){const _0x45e70d=a214_0x109b,_0x156e25=detectSqlType(_0xe67c97),_0x481db8=extractTables(_0xe67c97),_0x3c6ada=extractParameters(_0xe67c97);if(_0x156e25[_0x45e70d(0x187)])return{'valid':![],'sqlType':_0x156e25,'tables':_0x481db8,'parameters':_0x3c6ada,'message':_0x156e25[_0x45e70d(0x1a5)]||_0x156e25[_0x45e70d(0x19e)]+_0x45e70d(0x190)};if(_0x156e25[_0x45e70d(0x19e)]===_0x45e70d(0x192))return{'valid':![],'sqlType':_0x156e25,'tables':_0x481db8,'parameters':_0x3c6ada,'message':'Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'};return{'valid':!![],'sqlType':_0x156e25,'tables':_0x481db8,'parameters':_0x3c6ada,'message':_0x156e25[_0x45e70d(0x19e)]+_0x45e70d(0x1a7)+(_0x481db8['length']?_0x481db8[_0x45e70d(0x1a0)](',\x20'):_0x45e70d(0x1aa))+(_0x3c6ada[_0x45e70d(0x19f)]?_0x45e70d(0x198)+_0x3c6ada[_0x45e70d(0x1a0)](',\x20'):'')};}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a215_0x91ee9b=a215_0x1b9d;(function(_0x51711e,_0x5d82e6){const _0x496953=a215_0x1b9d,_0x16fc8a=_0x51711e();while(!![]){try{const _0x31cc67=-parseInt(_0x496953(0x8f))/0x1+-parseInt(_0x496953(0x93))/0x2+-parseInt(_0x496953(0x9a))/0x3+-parseInt(_0x496953(0x91))/0x4+parseInt(_0x496953(0x96))/0x5*(-parseInt(_0x496953(0x97))/0x6)+-parseInt(_0x496953(0x95))/0x7+parseInt(_0x496953(0x90))/0x8;if(_0x31cc67===_0x5d82e6)break;else _0x16fc8a['push'](_0x16fc8a['shift']());}catch(_0x575a07){_0x16fc8a['push'](_0x16fc8a['shift']());}}}(a215_0x535a,0x59f0e));function a215_0x535a(){const _0x37951b=['5wSQtho','2582706qDXyXc','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','\x0a\x20\x20\x20\x20\x20\x20\x20','1535973dbCcpj','Tip:\x20`','Set\x20appcode\x20via\x20`','413780FIBjsC','21289160RnAYJk','267976FljiFP','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','857136Ystiwp','Run\x20`','3086741gYHAGk'];a215_0x535a=function(){return _0x37951b;};return a215_0x535a();}import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a215_0x1b9d(_0x560f83,_0x813bf7){_0x560f83=_0x560f83-0x8d;const _0x535ad5=a215_0x535a();let _0x1b9dbd=_0x535ad5[_0x560f83];return _0x1b9dbd;}import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a215_0x91ee9b(0x94)+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':[a215_0x91ee9b(0x8e)+CLI_BIN_NAME+a215_0x91ee9b(0x98),a215_0x91ee9b(0x8d)+CLI_BIN_NAME+a215_0x91ee9b(0x92)]['join'](a215_0x91ee9b(0x99)),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x119ba1,_0x5bd936){const _0x17e16d=a216_0x48f1,_0x306ee5=_0x119ba1();while(!![]){try{const _0x3767a6=-parseInt(_0x17e16d(0x1a4))/0x1*(parseInt(_0x17e16d(0x1a5))/0x2)+-parseInt(_0x17e16d(0x1a0))/0x3+-parseInt(_0x17e16d(0x1a2))/0x4*(-parseInt(_0x17e16d(0x19c))/0x5)+parseInt(_0x17e16d(0x19b))/0x6+parseInt(_0x17e16d(0x1a7))/0x7*(-parseInt(_0x17e16d(0x19f))/0x8)+parseInt(_0x17e16d(0x19e))/0x9+parseInt(_0x17e16d(0x19d))/0xa*(parseInt(_0x17e16d(0x1a6))/0xb);if(_0x3767a6===_0x5bd936)break;else _0x306ee5['push'](_0x306ee5['shift']());}catch(_0x5cf24c){_0x306ee5['push'](_0x306ee5['shift']());}}}(a216_0x16d8,0x6f3f4));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a216_0x16d8(){const _0x4b691b=['7073ZEDPCW','7iKlIAk','436668cemDOM','25danHoY','14540hxinNB','3728646SJuKNK','2724760tEleYY','1036197INjZRB','yes','51196ywYNZn','map','344327mzRHAK','2StFyDj'];a216_0x16d8=function(){return _0x4b691b;};return a216_0x16d8();}function a216_0x48f1(_0x3fe42a,_0x3608e1){_0x3fe42a=_0x3fe42a-0x19b;const _0x16d83a=a216_0x16d8();let _0x48f13d=_0x16d83a[_0x3fe42a];return _0x48f13d;}import{buildAllFlags as a216_0x5428d3}from'@lovrabet/cli-framework';import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';export function buildAllFlags(_0x5a6f23){const _0x1a076c=a216_0x48f1,_0x31b294=a216_0x5428d3(_0x5a6f23,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0x5a6f23))return _0x31b294;return _0x31b294[_0x1a076c(0x1a3)](_0x22c55f=>_0x22c55f['name']===_0x1a076c(0x1a1)?{..._0x22c55f,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x22c55f);}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function a217_0x94ba(){var _0x2a9056=['defaultFormat','format','11mswiXC','flags','26437548KmOUez','628270eCwQiw','7121165QrCjse','50309cTbzoZ','structuredErrors','988014ZTLySM','279hGnjSh','5IbyfvL','248672wglpuH','4DQpgWZ','246bvzcWW','def','171090zTXhzv'];a217_0x94ba=function(){return _0x2a9056;};return a217_0x94ba();}(function(_0x2d240f,_0x14c24f){var _0x58e3b8=a217_0x34d2,_0x2d5bd3=_0x2d240f();while(!![]){try{var _0x415de3=-parseInt(_0x58e3b8(0x140))/0x1*(-parseInt(_0x58e3b8(0x145))/0x2)+parseInt(_0x58e3b8(0x13e))/0x3+parseInt(_0x58e3b8(0x142))/0x4*(-parseInt(_0x58e3b8(0x13b))/0x5)+-parseInt(_0x58e3b8(0x143))/0x6*(-parseInt(_0x58e3b8(0x13c))/0x7)+parseInt(_0x58e3b8(0x141))/0x8*(-parseInt(_0x58e3b8(0x13f))/0x9)+-parseInt(_0x58e3b8(0x13a))/0xa+parseInt(_0x58e3b8(0x148))/0xb*(parseInt(_0x58e3b8(0x139))/0xc);if(_0x415de3===_0x14c24f)break;else _0x2d5bd3['push'](_0x2d5bd3['shift']());}catch(_0x2d6a1e){_0x2d5bd3['push'](_0x2d5bd3['shift']());}}}(a217_0x94ba,0xc4563));import{resolveOutputConfig}from'@lovrabet/cli-framework';export function usesStructuredErrorOutput(_0x55ac95){var _0x22485c=a217_0x34d2;return _0x55ac95?.[_0x22485c(0x13d)]===!![];}function a217_0x34d2(_0x44f5ba,_0x58d124){_0x44f5ba=_0x44f5ba-0x138;var _0x94ba1d=a217_0x94ba();var _0x34d25a=_0x94ba1d[_0x44f5ba];return _0x34d25a;}export function resolveErrorOutputFormat(_0x90cfd9){var _0x6faa5c=a217_0x34d2;if(!_0x90cfd9['def'])return _0x90cfd9[_0x6faa5c(0x146)]??'compress';return resolveOutputConfig({'flags':_0x90cfd9[_0x6faa5c(0x138)]??{},'def':_0x90cfd9[_0x6faa5c(0x144)],'configDefault':_0x90cfd9['defaultFormat']})[_0x6faa5c(0x147)];}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a218_0x41e7f6=a218_0x25e4;(function(_0x51030f,_0x5d536a){const _0x8ec2d4=a218_0x25e4,_0x1723ef=_0x51030f();while(!![]){try{const _0x30d73f=-parseInt(_0x8ec2d4(0x1b0))/0x1*(parseInt(_0x8ec2d4(0x1b7))/0x2)+parseInt(_0x8ec2d4(0x1b1))/0x3*(-parseInt(_0x8ec2d4(0x1b9))/0x4)+parseInt(_0x8ec2d4(0x1a7))/0x5*(parseInt(_0x8ec2d4(0x1ae))/0x6)+parseInt(_0x8ec2d4(0x1ba))/0x7+-parseInt(_0x8ec2d4(0x1ab))/0x8*(-parseInt(_0x8ec2d4(0x1b2))/0x9)+parseInt(_0x8ec2d4(0x1b5))/0xa+parseInt(_0x8ec2d4(0x1b6))/0xb*(-parseInt(_0x8ec2d4(0x1a8))/0xc);if(_0x30d73f===_0x5d536a)break;else _0x1723ef['push'](_0x1723ef['shift']());}catch(_0x4add02){_0x1723ef['push'](_0x1723ef['shift']());}}}(a218_0xcc21,0x49a6f));const EXPLICIT_YES_COMMANDS=new Set([a218_0x41e7f6(0x1b3),a218_0x41e7f6(0x1aa),a218_0x41e7f6(0x1a9),a218_0x41e7f6(0x1ad)]);function a218_0x25e4(_0x558eb7,_0x404ee7){_0x558eb7=_0x558eb7-0x1a7;const _0xcc2104=a218_0xcc21();let _0x25e4ce=_0xcc2104[_0x558eb7];return _0x25e4ce;}function a218_0xcc21(){const _0x593c7c=['987640kNiApY','1661UKVtKj','1006738aulKip','service','4yLDPCp','1045569bCnGjj','123470ptMyKl','5244zbDpYl','menu\x20group-update','menu\x20group-create','3096LgizBg','command','menu\x20regroup-start','96VlTXXT','has','1WzGGWa','609954IidjEA','10026ZivVTm','menu\x20delete','Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan'];a218_0xcc21=function(){return _0x593c7c;};return a218_0xcc21();}export const EXPLICIT_YES_FLAG_DESCRIPTION=a218_0x41e7f6(0x1b4);export function requiresExplicitYes(_0x558dd4){const _0x2f9a26=a218_0x41e7f6;return EXPLICIT_YES_COMMANDS[_0x2f9a26(0x1af)](_0x558dd4[_0x2f9a26(0x1b8)]+'\x20'+_0x558dd4[_0x2f9a26(0x1ac)]);}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a219_0x33b076=a219_0x57b2;function a219_0x57b2(_0x78158a,_0x4c4215){_0x78158a=_0x78158a-0x10b;const _0x3c65fe=a219_0x3c65();let _0x57b22f=_0x3c65fe[_0x78158a];return _0x57b22f;}function a219_0x3c65(){const _0x5a5a55=['30DbpbVh','1316922yjgwPE','parseFlags','2QUCSce','949874eNSGRc','1390914nPIgma','4110806dhEuYV','48TwVQDX','145196icEePu','5UgidPA','50243842OqAxpq','8768990hEphaE'];a219_0x3c65=function(){return _0x5a5a55;};return a219_0x3c65();}(function(_0x4d7eeb,_0x1ec895){const _0x2dc72f=a219_0x57b2,_0x46789b=_0x4d7eeb();while(!![]){try{const _0x597a27=-parseInt(_0x2dc72f(0x114))/0x1*(parseInt(_0x2dc72f(0x115))/0x2)+parseInt(_0x2dc72f(0x111))/0x3*(-parseInt(_0x2dc72f(0x10d))/0x4)+-parseInt(_0x2dc72f(0x10e))/0x5*(parseInt(_0x2dc72f(0x112))/0x6)+-parseInt(_0x2dc72f(0x10b))/0x7+-parseInt(_0x2dc72f(0x10c))/0x8*(parseInt(_0x2dc72f(0x116))/0x9)+-parseInt(_0x2dc72f(0x110))/0xa+parseInt(_0x2dc72f(0x10f))/0xb;if(_0x597a27===_0x1ec895)break;else _0x46789b['push'](_0x46789b['shift']());}catch(_0x1e400a){_0x46789b['push'](_0x46789b['shift']());}}}(a219_0x3c65,0x9d2fe));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a219_0x33b076(0x113)];export const validateFlags=helpers['validateFlags'];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a220_0x36619d=a220_0x5dd1;(function(_0x5aa96a,_0x2cc7e0){const _0xbb47fc=a220_0x5dd1,_0x2933e4=_0x5aa96a();while(!![]){try{const _0x48ed23=parseInt(_0xbb47fc(0x17b))/0x1*(-parseInt(_0xbb47fc(0x181))/0x2)+parseInt(_0xbb47fc(0x178))/0x3+parseInt(_0xbb47fc(0x187))/0x4*(parseInt(_0xbb47fc(0x17e))/0x5)+-parseInt(_0xbb47fc(0x17d))/0x6*(-parseInt(_0xbb47fc(0x173))/0x7)+-parseInt(_0xbb47fc(0x184))/0x8+parseInt(_0xbb47fc(0x176))/0x9*(parseInt(_0xbb47fc(0x17a))/0xa)+-parseInt(_0xbb47fc(0x183))/0xb*(parseInt(_0xbb47fc(0x172))/0xc);if(_0x48ed23===_0x2cc7e0)break;else _0x2933e4['push'](_0x2933e4['shift']());}catch(_0x309be7){_0x2933e4['push'](_0x2933e4['shift']());}}}(a220_0x4386,0xb93d8));function a220_0x4386(){const _0x3641d9=['2285880VnQtXu','Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.','Requires\x20appcode\x20(set\x20via\x20`','244wRYIPq','12COliJe','765933tklyXR','\x20[args]\x20[flags]','\x20workspace\x20init`\x20or\x20--appcode).','7911Efyyku','get','2611239hDLBlb','generateCommandHelp','8870ZCzXAR','35JlzqxB','generateServiceHelp','60jxAhIR','58495xyNBdg','Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','replace','79394yhBNHT','generateFullHelp','11264451wrkhpg'];a220_0x4386=function(){return _0x3641d9;};return a220_0x4386();}import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{requiresExplicitYes}from'../framework/explicit-yes.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x2502af=>serviceGroups[a220_0x36619d(0x177)](_0x2502af),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a220_0x36619d(0x186)+CLI_BIN_NAME+a220_0x36619d(0x175),'serviceUsageSuffix':a220_0x36619d(0x174)});function a220_0x5dd1(_0xed4324,_0x1b8bb7){_0xed4324=_0xed4324-0x172;const _0x4386cd=a220_0x4386();let _0x5dd1e8=_0x4386cd[_0xed4324];return _0x5dd1e8;}export function generateCommandHelp(_0x297cd8){const _0x2ade2f=a220_0x36619d,_0x50c2c3=generators[_0x2ade2f(0x179)](_0x297cd8);if(!requiresExplicitYes(_0x297cd8))return _0x50c2c3;return _0x50c2c3[_0x2ade2f(0x180)](_0x2ade2f(0x17f),_0x2ade2f(0x185));}export const generateServiceHelp=generators[a220_0x36619d(0x17c)];export const generateFullHelp=generators[a220_0x36619d(0x182)];
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4e329b,_0xd876c7){var _0xd6e1d5=a221_0x5a1e,_0x1cb3df=_0x4e329b();while(!![]){try{var _0x43d732=parseInt(_0xd6e1d5(0x83))/0x1+parseInt(_0xd6e1d5(0x89))/0x2+parseInt(_0xd6e1d5(0x85))/0x3+parseInt(_0xd6e1d5(0x87))/0x4*(-parseInt(_0xd6e1d5(0x84))/0x5)+-parseInt(_0xd6e1d5(0x86))/0x6+-parseInt(_0xd6e1d5(0x88))/0x7+-parseInt(_0xd6e1d5(0x81))/0x8*(-parseInt(_0xd6e1d5(0x82))/0x9);if(_0x43d732===_0xd876c7)break;else _0x1cb3df['push'](_0x1cb3df['shift']());}catch(_0x45beda){_0x1cb3df['push'](_0x1cb3df['shift']());}}}(a221_0x242c,0xb2269));function a221_0x242c(){var _0x111605=['4jceAtQ','5715346PtDMYK','739298Vhxzbr','32EQiphs','2440188kfppth','1131675RboOKX','4134265KQARnn','1926894IFqFXS','5130684ymSaPP'];a221_0x242c=function(){return _0x111605;};return a221_0x242c();}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 a221_0x5a1e(_0xc4a7cc,_0x503179){_0xc4a7cc=_0xc4a7cc-0x81;var _0x242cc1=a221_0x242c();var _0x5a1e42=_0x242cc1[_0xc4a7cc];return _0x5a1e42;}export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x15db5d,_0x58fe70){const _0x39c95f=a222_0x281b,_0x54e417=_0x15db5d();while(!![]){try{const _0x42731e=-parseInt(_0x39c95f(0x131))/0x1+-parseInt(_0x39c95f(0x142))/0x2*(-parseInt(_0x39c95f(0x134))/0x3)+parseInt(_0x39c95f(0x137))/0x4+-parseInt(_0x39c95f(0x133))/0x5*(-parseInt(_0x39c95f(0x13f))/0x6)+parseInt(_0x39c95f(0x147))/0x7+parseInt(_0x39c95f(0x132))/0x8*(-parseInt(_0x39c95f(0x149))/0x9)+parseInt(_0x39c95f(0x13c))/0xa*(parseInt(_0x39c95f(0x144))/0xb);if(_0x42731e===_0x58fe70)break;else _0x54e417['push'](_0x54e417['shift']());}catch(_0x1285b8){_0x54e417['push'](_0x54e417['shift']());}}}(a222_0x5769,0x3c508));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a222_0x5769(){const _0x23f1a3=['13572ajDfld','pretty','update','endsWith','json','423531wvKXxr','2584oOzYps','653045rTPTWg','141YoMagq','risk','_notice','657336eTYuBf','data','hint','message','code','7602370buhGvY','format','jq:\x20','6usyLlP','error','jqFilter','2700XkVsZd','stringify','11vsyTYx','url','command','273231KOhNjI','stdout'];a222_0x5769=function(){return _0x23f1a3;};return a222_0x5769();}function a222_0x281b(_0x50f1c1,_0x46a1e8){_0x50f1c1=_0x50f1c1-0x131;const _0x57691d=a222_0x5769();let _0x281b1a=_0x57691d[_0x50f1c1];return _0x281b1a;}import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x498a9d,_0x396d73){const _0x12eaf6=a222_0x281b,_0x4ac4f4=_0x498a9d[_0x12eaf6(0x136)],{_notice:_0x47c6fa,..._0x1e2803}=_0x498a9d;void _0x47c6fa,baseFormatOutput(_0x1e2803,_0x396d73),_0x396d73[_0x12eaf6(0x13d)]==='pretty'&&printPrettyNotice(_0x4ac4f4);}export function formatCliError(_0x6c441c,_0x3b2867){const _0x41daf1=a222_0x281b;if(_0x3b2867[_0x41daf1(0x13d)]===_0x41daf1(0x14a))return![];const _0x21c535=_0x6c441c[_0x41daf1(0x138)],_0x3aafc5={'ok':![],'command':_0x3b2867[_0x41daf1(0x146)],'risk':_0x3b2867[_0x41daf1(0x135)],'data':_0x21c535??null,'error':{'code':_0x6c441c['code'],'message':_0x6c441c[_0x41daf1(0x13a)],..._0x6c441c[_0x41daf1(0x139)]?{'hint':_0x6c441c['hint']}:{}}},_0x21f6d0=_0x3b2867[_0x41daf1(0x13d)]===_0x41daf1(0x14d)?JSON[_0x41daf1(0x143)](_0x3aafc5,null,0x2):JSON[_0x41daf1(0x143)](_0x3aafc5);let _0x439f8f=_0x21f6d0;if(_0x3b2867[_0x41daf1(0x141)]?.['trim']())try{_0x439f8f=applyJqFilter(_0x21f6d0,_0x3b2867['jqFilter']);}catch(_0x4af5ff){const _0x35172e=_0x4af5ff instanceof CliError?_0x4af5ff:CliErrors['validation'](_0x41daf1(0x13e)+(_0x4af5ff instanceof Error?_0x4af5ff[_0x41daf1(0x13a)]:String(_0x4af5ff))),_0x5f19d0={..._0x3aafc5,'error':{'code':_0x35172e[_0x41daf1(0x13b)],'message':_0x35172e[_0x41daf1(0x13a)],..._0x35172e[_0x41daf1(0x139)]?{'hint':_0x35172e[_0x41daf1(0x139)]}:{},'cause':_0x3aafc5[_0x41daf1(0x140)]}};_0x439f8f=_0x3b2867[_0x41daf1(0x13d)]===_0x41daf1(0x14d)?JSON[_0x41daf1(0x143)](_0x5f19d0,null,0x2):JSON[_0x41daf1(0x143)](_0x5f19d0);}return process[_0x41daf1(0x148)]['write'](_0x439f8f[_0x41daf1(0x14c)]('\x0a')?_0x439f8f:_0x439f8f+'\x0a'),!![];}function printPrettyNotice(_0x27cb16){const _0x2642c6=a222_0x281b;if(!_0x27cb16?.[_0x2642c6(0x14b)])return;console['error'](_0x27cb16['update']['message']+'\x20('+_0x27cb16['update'][_0x2642c6(0x145)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x55454f,_0x2e8ad5){var _0x1d092d=a223_0x4904,_0x1dd53c=_0x55454f();while(!![]){try{var _0x43fca0=-parseInt(_0x1d092d(0x87))/0x1*(parseInt(_0x1d092d(0x8c))/0x2)+-parseInt(_0x1d092d(0x8b))/0x3+-parseInt(_0x1d092d(0x8e))/0x4+-parseInt(_0x1d092d(0x8f))/0x5+parseInt(_0x1d092d(0x8a))/0x6+parseInt(_0x1d092d(0x89))/0x7*(-parseInt(_0x1d092d(0x88))/0x8)+parseInt(_0x1d092d(0x8d))/0x9;if(_0x43fca0===_0x2e8ad5)break;else _0x1dd53c['push'](_0x1dd53c['shift']());}catch(_0x29d255){_0x1dd53c['push'](_0x1dd53c['shift']());}}}(a223_0x1c57,0xd853f));function a223_0x4904(_0x58b668,_0x4d96f6){_0x58b668=_0x58b668-0x87;var _0x1c577a=a223_0x1c57();var _0x490448=_0x1c577a[_0x58b668];return _0x490448;}function a223_0x1c57(){var _0x5b3ec5=['8rHyPir','1747613bdaFYY','9304686TWkcUP','3726429hNGIsE','4oeQZla','22171131oCOPLz','2676616KNlnpK','2236095uOoxya','259993AnbvHp'];a223_0x1c57=function(){return _0x5b3ec5;};return a223_0x1c57();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x14be5b,_0x5dc341){const _0x52c9a0=a224_0x37cc,_0x1bd699=_0x14be5b();while(!![]){try{const _0x45a0a7=parseInt(_0x52c9a0(0x8f))/0x1+parseInt(_0x52c9a0(0x93))/0x2+parseInt(_0x52c9a0(0x8a))/0x3*(-parseInt(_0x52c9a0(0x8e))/0x4)+parseInt(_0x52c9a0(0x81))/0x5*(parseInt(_0x52c9a0(0x90))/0x6)+-parseInt(_0x52c9a0(0x7c))/0x7+-parseInt(_0x52c9a0(0x8d))/0x8*(-parseInt(_0x52c9a0(0x7d))/0x9)+-parseInt(_0x52c9a0(0x88))/0xa*(-parseInt(_0x52c9a0(0x92))/0xb);if(_0x45a0a7===_0x5dc341)break;else _0x1bd699['push'](_0x1bd699['shift']());}catch(_0x3a6f41){_0x1bd699['push'](_0x1bd699['shift']());}}}(a224_0x4810,0x65798));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a224_0x37cc(_0x4d26bb,_0x65514e){_0x4d26bb=_0x4d26bb-0x7a;const _0x4810e6=a224_0x4810();let _0x37ccb9=_0x4810e6[_0x4d26bb];return _0x37ccb9;}function a224_0x4810(){const _0x740c94=['code','No\x20api.ts\x20found\x20in\x20','25295SqOFaa','validation','name','some','type','map','Unknown\x20alias\x20\x22','487310uhxfal','alias','3JdTukx','\x22.\x20','string','310328IImSun','1992892HUnUts','460229YRsFcP','582YmCJTm','join','33XFDaaJ','607138ErUqmw','flags','.\x20Run\x20`','4494105nztjkU','36mbhvMI','length'];a224_0x4810=function(){return _0x740c94;};return a224_0x4810();}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x1fee23,_0x12e883,_0x152d02,_0x34afa7){const _0x4df740=a224_0x37cc,_0x2d5a3e=_0x1fee23['flags'][_0x4df740(0x84)](_0x465e89=>_0x465e89[_0x4df740(0x83)]===_0x4df740(0x7f)&&_0x465e89[_0x4df740(0x85)]===_0x4df740(0x8c)),_0x57de47=_0x1fee23[_0x4df740(0x7a)][_0x4df740(0x84)](_0x1c1b53=>_0x1c1b53['name']===_0x4df740(0x89)&&_0x1c1b53['type']===_0x4df740(0x8c));if(!_0x2d5a3e||!_0x57de47)return;const _0x1a0468=_0x12e883['code']?String(_0x12e883['code']):'',_0x550d86=_0x12e883[_0x4df740(0x89)]?String(_0x12e883['alias']):'';if(!_0x1a0468&&!_0x550d86)throw CliErrors[_0x4df740(0x82)]('`'+_0x34afa7+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x550d86&&!_0x1a0468){const _0x57d7e9=resolveAlias(_0x152d02,_0x550d86);if(!_0x57d7e9){const _0x41a6d3=listAliases(_0x152d02)[_0x4df740(0x86)](_0x41860b=>_0x41860b['alias']),_0x1cc426=_0x41a6d3[_0x4df740(0x7e)]?'Available\x20aliases:\x20'+_0x41a6d3[_0x4df740(0x91)](',\x20'):_0x4df740(0x80)+_0x152d02+_0x4df740(0x7b)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors[_0x4df740(0x82)](_0x4df740(0x87)+_0x550d86+_0x4df740(0x8b)+_0x1cc426);}_0x12e883[_0x4df740(0x7f)]=_0x57d7e9;}}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a225_0x1f9e(_0x39bff4,_0x4da228){_0x39bff4=_0x39bff4-0xc1;const _0x5848c8=a225_0x5848();let _0x1f9e7f=_0x5848c8[_0x39bff4];return _0x1f9e7f;}const a225_0x58486a=a225_0x1f9e;(function(_0x1003b4,_0x200c80){const _0x5883c3=a225_0x1f9e,_0x219b72=_0x1003b4();while(!![]){try{const _0x49a392=parseInt(_0x5883c3(0xfa))/0x1*(parseInt(_0x5883c3(0xd7))/0x2)+parseInt(_0x5883c3(0xfd))/0x3+parseInt(_0x5883c3(0xe8))/0x4*(-parseInt(_0x5883c3(0xf8))/0x5)+parseInt(_0x5883c3(0xc1))/0x6+-parseInt(_0x5883c3(0xc6))/0x7*(-parseInt(_0x5883c3(0xe1))/0x8)+parseInt(_0x5883c3(0x100))/0x9*(parseInt(_0x5883c3(0xd0))/0xa)+parseInt(_0x5883c3(0xe2))/0xb*(-parseInt(_0x5883c3(0xc5))/0xc);if(_0x49a392===_0x200c80)break;else _0x219b72['push'](_0x219b72['shift']());}catch(_0x2fb412){_0x219b72['push'](_0x219b72['shift']());}}}(a225_0x5848,0xb0e25));import{resolveCommandAuthMode,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 a225_0x295cbd}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x5e5fde){const _0x456e9a=a225_0x1f9e;return typeof _0x5e5fde==='string'&&_0x5e5fde['trim']()?_0x5e5fde[_0x456e9a(0xc9)]():undefined;}function resolveEnvAppCode(){const _0x284652=a225_0x1f9e,_0x3e5595=stringFlag(process.env.RABETBASE_APPCODE);if(_0x3e5595)return{'name':_0x284652(0xdc),'value':_0x3e5595};const _0x2dbf43=stringFlag(process.env.LOVRABET_APPCODE);if(_0x2dbf43)return{'name':_0x284652(0xe0),'value':_0x2dbf43};return undefined;}function hasExplicitAppCode(_0x424b92,_0x274682){const _0x2ac2e2=a225_0x1f9e;return!!(stringFlag(_0x424b92[_0x2ac2e2(0x101)])||stringFlag(_0x274682[_0x2ac2e2(0x101)]));}function assertEnvAppCodeNotIgnored(_0xc26526,_0x1711ae,_0x2ff216){const _0x78b39=a225_0x1f9e;if(!_0x1711ae||_0x2ff216||_0xc26526===_0x1711ae[_0x78b39(0xcd)])return;const _0x44d10c=_0xc26526?_0x78b39(0xe5)+_0xc26526+'\x22.':_0x78b39(0xda);throw CliErrors[_0x78b39(0xf0)](_0x1711ae[_0x78b39(0xed)]+'='+_0x1711ae[_0x78b39(0xcd)]+_0x78b39(0xd2)+_0x44d10c+'\x20'+(_0x78b39(0xfc)+_0x1711ae['name']+'\x22.'));}export function createPipelineEnv(_0x36f774,_0x425d9b,_0x1d193e=[]){const _0xa5d171=a225_0x1f9e;return{'rawFlags':_0x425d9b,'args':_0x1d193e,'resolveAppCode':()=>_0x36f774['appCode'],'resolveCookie':()=>_0x36f774[_0xa5d171(0x105)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a225_0x295cbd(_0x425d9b),'defaultFormat':_0x36f774[_0xa5d171(0xd6)],'defaultPageSize':_0x36f774[_0xa5d171(0xcb)],'defaultVerbose':_0x36f774[_0xa5d171(0xe4)],'apiDir':_0x36f774[_0xa5d171(0xd8)],'riskLevel':_0x36f774[_0xa5d171(0xff)],'selectedAppName':_0x36f774[_0xa5d171(0xcf)],'mergedCli':{'defaultApp':_0x36f774[_0xa5d171(0xd1)],'currentApp':_0x36f774[_0xa5d171(0xef)],'appCode':_0x36f774[_0xa5d171(0xdb)],'apps':_0x36f774[_0xa5d171(0x104)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a225_0x58486a(0x107)](_0x4dde24=>PIPELINE_FLAG_NAMES[a225_0x58486a(0xe6)](_0x4dde24[a225_0x58486a(0xed)]))[a225_0x58486a(0xf1)](({name:_0x27f147,type:_0x3de7d0,description:_0x21726e})=>({'name':_0x27f147,'type':_0x3de7d0,'description':_0x21726e})),'formatOutput':formatOutput,'getCommandLabel'(_0x486acc){const _0x5f47e8=a225_0x58486a;return CLI_BIN_NAME+'\x20'+_0x486acc[_0x5f47e8(0xe3)]+'\x20'+_0x486acc[_0x5f47e8(0xc2)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x1c554d){const _0x3dd70f=a225_0x58486a;return CliErrors[_0x3dd70f(0xf0)](_0x1c554d);}},async 'prepare'(_0x1ff5a8,_0x4a3ae2,_0x1a69f3,_0x3de832){const _0x11bbe3=a225_0x58486a,_0x5ebb11=_0x4a3ae2['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x1ff5a8,_0x1a69f3,_0x5ebb11,_0x3de832);const _0x4a525e=resolveCommandAuthMode(_0x1ff5a8);let _0x5baa39='';if(_0x4a525e!==_0x11bbe3(0xf5)){_0x5baa39=_0x4a3ae2['resolveCookie']()||'';if(!_0x5baa39){if(_0x4a525e==='required')throw CliErrors[_0x11bbe3(0xd5)]();}else{const {setActiveCookie:_0x101902}=await import(_0x11bbe3(0xc8));_0x101902(_0x5baa39);}}const _0xc69b77=_0x4a3ae2[_0x11bbe3(0xd4)]()??'';if(_0x1ff5a8[_0x11bbe3(0xc4)]!==![]){assertEnvAppCodeNotIgnored(_0xc69b77,resolveEnvAppCode(),hasExplicitAppCode(_0x1a69f3,_0x4a3ae2[_0x11bbe3(0xe7)]));if(!_0xc69b77)throw CliErrors[_0x11bbe3(0xec)](_0x11bbe3(0xd9)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}return{'defaults':{'booleans':{'verbose':_0x4a3ae2[_0x11bbe3(0xce)]},'numbers':{'pagesize':_0x4a3ae2[_0x11bbe3(0xea)]}},'extras':{'appCode':_0xc69b77,'cookie':_0x5baa39,'apiDomain':_0x4a3ae2[_0x11bbe3(0xeb)](),'apiDir':_0x5ebb11,'selectedAppName':_0x4a3ae2['selectedAppName'],'mergedCli':_0x4a3ae2[_0x11bbe3(0x108)]}};},async 'confirmHighRisk'({env:_0x385225,commandLabel:_0x23846f}){const _0x3a695b=a225_0x58486a;if(_0x385225[_0x3a695b(0xee)])throw CliErrors[_0x3a695b(0xf0)](_0x3a695b(0xf6)+_0x23846f+_0x3a695b(0xfe));await requireConfirmationPrompt({'lines':[_0x3a695b(0xf4)+_0x23846f,_0x3a695b(0xcc)],'createCancelledError':_0x564d69=>CliErrors[_0x3a695b(0xfb)](_0x564d69)});},async 'finalize'(){const _0xcb413b=a225_0x58486a,{clearActiveCookie:_0x9a6be1}=await import(_0xcb413b(0xc8));_0x9a6be1();}};export async function runCommand(_0x45f124,_0xb2d42e){const _0x22c279=a225_0x58486a;assertRejectedFlags(_0x45f124,_0xb2d42e[_0x22c279(0xe7)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x45f124)?withUpdateNotice(_0x45f124):_0x45f124,_0xb2d42e,runnerAdapter);}function assertRejectedFlags(_0x1ac90c,_0x2547b7){const _0x354f3e=a225_0x58486a;for(const _0x4be72c of _0x1ac90c['rejectedFlags']??[]){const _0x27fd79=GLOBAL_FLAGS[_0x354f3e(0xf3)](_0x3f4918=>_0x3f4918[_0x354f3e(0xed)]===_0x4be72c[_0x354f3e(0xed)]),_0x1e4741=new Set([_0x4be72c[_0x354f3e(0xed)],toCamelCase(_0x4be72c['name']),_0x27fd79?.[_0x354f3e(0x102)]]),_0x59bf69=[..._0x1e4741]['some'](_0x527b7c=>{if(!_0x527b7c)return![];const _0x54f64e=_0x2547b7[_0x527b7c];return _0x54f64e!==undefined&&_0x54f64e!==null&&_0x54f64e!==![];});if(_0x59bf69)throw CliErrors['validation'](_0x4be72c['message'],_0x4be72c['hint']);}}function toCamelCase(_0x3f042e){const _0x4acf5c=a225_0x58486a;return _0x3f042e[_0x4acf5c(0xc3)](/-([a-z])/g,(_0x43715d,_0x390995)=>_0x390995[_0x4acf5c(0xf9)]());}function shouldAttachUpdateNotice(_0x383035){const _0x346f67=a225_0x58486a;if(_0x383035[_0x346f67(0xf7)]===![])return![];return![_0x346f67(0xdd),_0x346f67(0xc7),_0x346f67(0x103)][_0x346f67(0xf2)](_0x383035[_0x346f67(0xe3)]);}function withUpdateNotice(_0x271474){return{..._0x271474,async 'execute'(_0x4e6e74){const _0x36da1a=a225_0x1f9e,_0x505961=shouldResolveUpdateNotice(_0x4e6e74)?resolveLatestUpdateNotice()[_0x36da1a(0xca)](()=>null):Promise[_0x36da1a(0xe9)](null),_0x5ef424=await _0x271474[_0x36da1a(0x106)](_0x4e6e74);return attachUpdateNotice(_0x5ef424,await _0x505961);}};}function a225_0x5848(){const _0xdf57b4=['resolve','defaultPageSize','resolveApiDomain','configMissing','name','isNonInteractive','currentApp','validation','map','includes','find','⚠\x20\x20High-risk\x20operation:\x20','none','High-risk\x20operation\x20`','hasFormat','104695qFrpQi','toUpperCase','1FKWOGs','cancelled','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','3112833GAelou','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','riskLevel','1023723qRlqnf','appcode','meowKey','doctor','apps','cookie','execute','filter','mergedCli','7162026rrhlVZ','command','replace','requiresAppCode','744ThUdJX','7YLycRT','schema','../core/api-client.js','trim','catch','pageSize','\x20\x20\x20Continue?\x20[y/N]\x20','value','defaultVerbose','explicitAppName','70lnfiHx','defaultApp','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','object','resolveAppCode','authRequired','format','2606494VCjHGe','apiDir','Set\x20appcode\x20via\x20`','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','appCode','RABETBASE_APPCODE','update','_notice','pretty','LOVRABET_APPCODE','920848hjhnGa','656524oILNzn','service','verbose','Current\x20resolved\x20appcode\x20is\x20\x22','has','rawFlags','4bQbHUs'];a225_0x5848=function(){return _0xdf57b4;};return a225_0x5848();}function shouldResolveUpdateNotice(_0x6a7833){const _0xf4ac30=a225_0x58486a;return _0x6a7833[_0xf4ac30(0xd6)]===_0xf4ac30(0xdf)&&!_0x6a7833['nonInteractive'];}function attachUpdateNotice(_0x22e90b,_0x4b7255){const _0xa5403f=a225_0x58486a;if(!_0x4b7255||!_0x22e90b||typeof _0x22e90b!==_0xa5403f(0xd3))return _0x22e90b;const _0x55e669=_0x22e90b,_0x21dddc=typeof _0x55e669['_notice']===_0xa5403f(0xd3)&&_0x55e669[_0xa5403f(0xde)]!==null?_0x55e669[_0xa5403f(0xde)]:{};return{..._0x55e669,'_notice':{..._0x21dddc,'update':_0x4b7255}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x57a822,_0x55d7ee){const _0x4b539b=a226_0x4c66,_0xa1da92=_0x57a822();while(!![]){try{const _0x47042d=parseInt(_0x4b539b(0x1a6))/0x1+-parseInt(_0x4b539b(0x1a9))/0x2+-parseInt(_0x4b539b(0x1ae))/0x3*(-parseInt(_0x4b539b(0x1af))/0x4)+-parseInt(_0x4b539b(0x1ac))/0x5+-parseInt(_0x4b539b(0x1ab))/0x6*(-parseInt(_0x4b539b(0x1aa))/0x7)+parseInt(_0x4b539b(0x1b0))/0x8*(parseInt(_0x4b539b(0x1a5))/0x9)+-parseInt(_0x4b539b(0x1ad))/0xa*(-parseInt(_0x4b539b(0x1a8))/0xb);if(_0x47042d===_0x55d7ee)break;else _0xa1da92['push'](_0xa1da92['shift']());}catch(_0x3cea8f){_0xa1da92['push'](_0xa1da92['shift']());}}}(a226_0x38bf,0x882e3));import{buildSchemaPayload as a226_0x22119f}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 a226_0x38bf(){const _0x5d114a=['3592tfudix','216OgkaFW','948564LPBbbj','../commands/registry.js','11qzetPA','1720426WrZjAR','301eyPPGn','15774yKmLFl','3833225NPhEAv','8398250scXINV','3309XvcOCE','988DXojTR'];a226_0x38bf=function(){return _0x5d114a;};return a226_0x38bf();}import{getCliVersion}from'../utils/version.js';function a226_0x4c66(_0x48c612,_0x2b81c8){_0x48c612=_0x48c612-0x1a5;const _0x38bf73=a226_0x38bf();let _0x4c669d=_0x38bf73[_0x48c612];return _0x4c669d;}export async function buildSchemaPayload(){const _0x1651cc=a226_0x4c66,{serviceRegistry:_0xb11549,findDefinition:_0x575404}=await import(_0x1651cc(0x1a7));return a226_0x22119f({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0xb11549,'buildAllFlags':buildAllFlags,'findDefinition':_0x575404});}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a227_0x36fe(_0x172920,_0x337aa5){_0x172920=_0x172920-0x1f3;var _0x3ea060=a227_0x3ea0();var _0x36fe5f=_0x3ea060[_0x172920];return _0x36fe5f;}(function(_0x20fd97,_0x4d514a){var _0x283310=a227_0x36fe,_0x380ac2=_0x20fd97();while(!![]){try{var _0x91ea84=-parseInt(_0x283310(0x1f3))/0x1+-parseInt(_0x283310(0x1f6))/0x2*(parseInt(_0x283310(0x1f5))/0x3)+-parseInt(_0x283310(0x1f7))/0x4+parseInt(_0x283310(0x1f4))/0x5+parseInt(_0x283310(0x1f8))/0x6+parseInt(_0x283310(0x1fb))/0x7*(-parseInt(_0x283310(0x1f9))/0x8)+parseInt(_0x283310(0x1fa))/0x9;if(_0x91ea84===_0x4d514a)break;else _0x380ac2['push'](_0x380ac2['shift']());}catch(_0x57833c){_0x380ac2['push'](_0x380ac2['shift']());}}}(a227_0x3ea0,0x882f0));function a227_0x3ea0(){var _0x42ffed=['22044033ghebpA','7LBuhWs','550105UDWJGs','320425MCopYq','3hODfGy','287366qlLqPo','2637992EuioZO','2762862dWhHEa','8502440MNEWRx'];a227_0x3ea0=function(){return _0x42ffed;};return a227_0x3ea0();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a228_0x381bb7=a228_0x2a05;(function(_0x371f51,_0x595a51){const _0xdbca2b=a228_0x2a05,_0x116fe4=_0x371f51();while(!![]){try{const _0x31040a=-parseInt(_0xdbca2b(0x88))/0x1+parseInt(_0xdbca2b(0x86))/0x2+-parseInt(_0xdbca2b(0x8c))/0x3+-parseInt(_0xdbca2b(0x89))/0x4*(parseInt(_0xdbca2b(0x87))/0x5)+parseInt(_0xdbca2b(0x8a))/0x6+-parseInt(_0xdbca2b(0x84))/0x7*(parseInt(_0xdbca2b(0x81))/0x8)+parseInt(_0xdbca2b(0x80))/0x9*(parseInt(_0xdbca2b(0x83))/0xa);if(_0x31040a===_0x595a51)break;else _0x116fe4['push'](_0x116fe4['shift']());}catch(_0x51dd6c){_0x116fe4['push'](_0x116fe4['shift']());}}}(a228_0x2311,0xaea63));export const VERSION='2.3.9-beta.3';function a228_0x2a05(_0x1328b4,_0x242ddc){_0x1328b4=_0x1328b4-0x80;const _0x231194=a228_0x2311();let _0x2a056a=_0x231194[_0x1328b4];return _0x2a056a;}export const GIT_TAG=a228_0x381bb7(0x85);export const GIT_COMMIT=a228_0x381bb7(0x82);function a228_0x2311(){const _0x190830=['2855HLuQeG','1215244BYADwB','3368CLDABk','8337228GCTNxi','2026-07-30T11:38:52.477Z','3909891FvgClk','27mxYNfD','13296QTzdQf','04c0461','7897870hAduws','2149lmyfuj','v2.3.9-beta.3','932042HbVJNy'];a228_0x2311=function(){return _0x190830;};return a228_0x2311();}export const BUILD_TIME=a228_0x381bb7(0x8b);
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a229_0xce00(){var _0x336dd0=['\x20\x20Use\x20','2HtvyYc','4051707rtXgeY','3571337xvJWxu','2565959gmdMRd','green','1450395RGqIJa','307500OJbfli','\x20to\x20view\x20available\x20commands.','18FoCLjG','70tkhzAQ','18kUcEoz','2046936McNkkE','85920vdeQdq','log','bold'];a229_0xce00=function(){return _0x336dd0;};return a229_0xce00();}(function(_0x3a3f1c,_0x3cd77f){var _0x25adbd=a229_0x5ef8,_0x578ef3=_0x3a3f1c();while(!![]){try{var _0x334c30=parseInt(_0x25adbd(0x74))/0x1+-parseInt(_0x25adbd(0x7e))/0x2*(parseInt(_0x25adbd(0x7f))/0x3)+parseInt(_0x25adbd(0x79))/0x4+parseInt(_0x25adbd(0x73))/0x5*(-parseInt(_0x25adbd(0x76))/0x6)+parseInt(_0x25adbd(0x70))/0x7+-parseInt(_0x25adbd(0x7a))/0x8*(parseInt(_0x25adbd(0x78))/0x9)+-parseInt(_0x25adbd(0x77))/0xa*(-parseInt(_0x25adbd(0x71))/0xb);if(_0x334c30===_0x3cd77f)break;else _0x578ef3['push'](_0x578ef3['shift']());}catch(_0x4534ea){_0x578ef3['push'](_0x578ef3['shift']());}}}(a229_0xce00,0xafc96));import a229_0xc657b3 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a229_0x5ef8(_0x15c2be,_0x1ef3a3){_0x15c2be=_0x15c2be-0x70;var _0xce00ac=a229_0xce00();var _0x5ef843=_0xce00ac[_0x15c2be];return _0x5ef843;}export function showHelp(){var _0x3f29dc=a229_0x5ef8;console[_0x3f29dc(0x7b)](),console['log'](a229_0xc657b3[_0x3f29dc(0x72)][_0x3f29dc(0x7c)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x3f29dc(0x7b)](),console[_0x3f29dc(0x7b)](_0x3f29dc(0x7d)+a229_0xc657b3['green'][_0x3f29dc(0x7c)](CLI_BIN_NAME+'\x20--help')+_0x3f29dc(0x75)),console['log']();}
|