@lovrabet/rabetbase-cli 2.5.3-beta.3 → 2.5.3-beta.4
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/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.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/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.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/logs.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 -1
- 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/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.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-restore.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/dataset/user-deleted-field-list.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-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.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/table-diff-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/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.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/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.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/mutations.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/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.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/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.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/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.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/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.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/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.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/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 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- 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/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.d.ts +5 -3
- 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/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.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/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.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/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.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/error-output.js +1 -1
- package/lib/framework/explicit-yes.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/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.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.d.ts +7 -0
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.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/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 +3 -1
- package/skills/rabetbase/SKILL.md +7 -5
- package/skills/rabetbase/guides/backend-function.md +5 -1
- package/skills/rabetbase/guides/bff-creation-workflow.md +3 -1
- package/skills/rabetbase/guides/cross-database-bff.md +70 -0
- package/skills/rabetbase/guides/data-api-guidelines.md +35 -33
- package/skills/rabetbase/guides/sql-creation-workflow.md +2 -0
- package/skills/rabetbase/references/rabetbase-dataset-cross-relations.md +5 -1
- package/skills/rabetbase.manifest.json +4 -3
- package/templates/README.md +41 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
const a296_0x4caa84=a296_0x5ad5;(function(_0x4d578c,_0xbe92d3){const _0x4b35af=a296_0x5ad5,_0x2ed514=_0x4d578c();while(!![]){try{const _0x25adc1=-parseInt(_0x4b35af(0x117))/0x1+-parseInt(_0x4b35af(0x109))/0x2+-parseInt(_0x4b35af(0xf6))/0x3+-parseInt(_0x4b35af(0x10e))/0x4*(-parseInt(_0x4b35af(0x10a))/0x5)+-parseInt(_0x4b35af(0xef))/0x6+parseInt(_0x4b35af(0xfc))/0x7+-parseInt(_0x4b35af(0xf9))/0x8*(-parseInt(_0x4b35af(0x130))/0x9);if(_0x25adc1===_0xbe92d3)break;else _0x2ed514['push'](_0x2ed514['shift']());}catch(_0x525745){_0x2ed514['push'](_0x2ed514['shift']());}}}(a296_0x2af3,0x6dbd1));const MYBATIS_OUTER_TAGS=new Map([['select','SELECT'],['insert',a296_0x4caa84(0x106)],[a296_0x4caa84(0x115),'UPDATE'],[a296_0x4caa84(0xea),'DELETE']]),MYBATIS_DYNAMIC_TAGS=new Set(['if','where','foreach',a296_0x4caa84(0x129),a296_0x4caa84(0xf4),a296_0x4caa84(0x126),a296_0x4caa84(0x10f),a296_0x4caa84(0x125),a296_0x4caa84(0xdc),'include',a296_0x4caa84(0x114)]),MYBATIS_BRANCH_TAGS=new Set(['if',a296_0x4caa84(0xe7),'choose',a296_0x4caa84(0xf4),a296_0x4caa84(0x126)]);export const MYBATIS_DYNAMIC_START_MARKER='__RABETBASE_MYBATIS_DYNAMIC_START__';export const MYBATIS_DYNAMIC_END_MARKER=a296_0x4caa84(0xe8);export const MYBATIS_INCLUDE_MARKER=a296_0x4caa84(0xed);const UNRESOLVED_SQL_FRAGMENT=a296_0x4caa84(0xe2),MYBATIS_OUTER_TAG_PATTERN=new RegExp(a296_0x4caa84(0x122)+[...MYBATIS_OUTER_TAGS[a296_0x4caa84(0x12a)]()][a296_0x4caa84(0xde)]('|')+a296_0x4caa84(0x116),'i');export function normalizeSqlForStaticAnalysis(_0x85a518){const _0x392382=a296_0x4caa84,_0x3baf08=typeof _0x85a518==='string'?_0x85a518:'';if(!startsWithMybatisStatementWrapper(_0x3baf08))return{'sql':_0x3baf08,'mode':_0x392382(0x108)};let _0x51e8ee=0x0,_0x23ab9e='',_0x5d99ea,_0x318a10=![],_0x2ff84e=![];const _0x5610a5=[];while(_0x51e8ee<_0x3baf08[_0x392382(0xdf)]){if(_0x3baf08['startsWith'](_0x392382(0x11a),_0x51e8ee)){const _0x1edf1d=_0x3baf08['indexOf'](_0x392382(0x119),_0x51e8ee+0x4);if(_0x1edf1d<0x0)return invalidMybatisSource(_0x392382(0x11d));_0x23ab9e+='\x20',_0x51e8ee=_0x1edf1d+0x3;continue;}if(_0x3baf08[_0x392382(0xf0)]('<,_0x51e8ee+0x9);if(_0x4781fa<0x0)return invalidMybatisSource(_0x392382(0x11c));_0x23ab9e+=_0x3baf08[_0x392382(0x12f)](_0x51e8ee+0x9,_0x4781fa),_0x51e8ee=_0x4781fa+0x3;continue;}if(_0x3baf08[_0x392382(0xf0)]('<?',_0x51e8ee)){if(_0x318a10)return invalidMybatisSource(_0x392382(0xfe));const _0x32e319=_0x3baf08[_0x392382(0x112)]('?>',_0x51e8ee+0x2);if(_0x32e319<0x0)return invalidMybatisSource('Unterminated\x20XML\x20declaration.');_0x23ab9e+='\x20',_0x51e8ee=_0x32e319+0x2;continue;}if(_0x3baf08[_0x51e8ee]!=='<'){const _0x44b5bb=_0x3baf08[_0x392382(0x112)]('<',_0x51e8ee),_0x225287=_0x44b5bb<0x0?_0x3baf08['length']:_0x44b5bb,_0x7e92a0=_0x3baf08[_0x392382(0x12f)](_0x51e8ee,_0x225287);if((!_0x318a10||_0x2ff84e)&&_0x7e92a0[_0x392382(0x10f)]())return invalidMybatisSource(_0x392382(0xfd));if(_0x318a10&&!_0x2ff84e){const _0x344a93=decodeXmlEntities(_0x7e92a0);if(_0x344a93===null)return invalidMybatisSource(_0x392382(0xf1));_0x23ab9e+=_0x344a93;}else _0x23ab9e+='\x20';_0x51e8ee=_0x225287;continue;}const _0x5afce4=findXmlTagEnd(_0x3baf08,_0x51e8ee);if(_0x5afce4<0x0)return invalidMybatisSource('Unterminated\x20MyBatis\x20XML\x20tag.');const _0x7a000f=_0x3baf08[_0x392382(0x12f)](_0x51e8ee,_0x5afce4+0x1),_0x4a2420=/^<\s*(\/?)\s*([A-Za-z][\w:-]*)([\s\S]*?)(\/?)\s*>$/['exec'](_0x7a000f);if(!_0x4a2420)return invalidMybatisSource(_0x392382(0xda));const _0x1ab07b=_0x4a2420[0x1]==='/',_0x3370ae=_0x4a2420[0x2]??'',_0x553e68=_0x3370ae['toLowerCase'](),_0x474222=_0x4a2420[0x3]??'',_0x25a216=_0x4a2420[0x4]==='/',_0xaf798c=MYBATIS_OUTER_TAGS[_0x392382(0xd8)](_0x553e68);if(!_0xaf798c&&!MYBATIS_DYNAMIC_TAGS[_0x392382(0x102)](_0x553e68))return invalidMybatisSource(_0x392382(0xfb)+_0x553e68+'>.');if(!_0xaf798c&&_0x3370ae!==_0x553e68)return invalidMybatisSource(_0x392382(0xee)+_0x3370ae+'>.');if(_0x1ab07b){if(_0x474222[_0x392382(0x10f)]()||_0x25a216)return invalidMybatisSource(_0x392382(0x118)+_0x3370ae+'>.');const _0x2305d6=_0x5610a5['at'](-0x1);if(!_0x2305d6||(_0x2305d6['outer']?_0x2305d6['tagName']!==_0x553e68:_0x2305d6[_0x392382(0xff)]!==_0x3370ae))return invalidMybatisSource(_0x392382(0x104)+_0x3370ae+'>.');_0x5610a5[_0x392382(0xf3)]();if(_0x2305d6[_0x392382(0x11f)])_0x2ff84e=!![];_0x23ab9e+=MYBATIS_BRANCH_TAGS[_0x392382(0x102)](_0x553e68)?'\x20'+MYBATIS_DYNAMIC_END_MARKER+'\x20':'\x20';}else{if(!hasWellFormedXmlAttributes(_0x474222))return invalidMybatisSource(_0x392382(0x120)+_0x3370ae+'>.');if(_0x553e68===_0x392382(0x114)&&(!_0x25a216||_0x5610a5['at'](-0x1)?.['tagName']!==_0x392382(0x107)))return invalidMybatisSource('MyBatis\x20<property>\x20must\x20be\x20a\x20self-closing\x20direct\x20child\x20of\x20<include>.');if(_0xaf798c){if(_0x318a10||_0x5610a5[_0x392382(0xdf)]>0x0)return invalidMybatisSource('Multiple\x20MyBatis\x20statement\x20wrappers\x20are\x20not\x20supported.');_0x318a10=!![],_0x2ff84e=_0x25a216,_0x5d99ea=_0xaf798c;}else{if(!_0x318a10||_0x2ff84e)return invalidMybatisSource('MyBatis\x20dynamic\x20tag\x20must\x20be\x20inside\x20the\x20statement\x20wrapper:\x20<'+_0x3370ae+'>.');}_0x23ab9e+=_0x553e68===_0x392382(0xe4)?'\x20WHERE\x20':_0x553e68===_0x392382(0x125)?_0x392382(0x12b):_0x553e68==='include'?'\x20'+MYBATIS_INCLUDE_MARKER+'\x20':MYBATIS_BRANCH_TAGS['has'](_0x553e68)&&!_0x25a216?'\x20'+MYBATIS_DYNAMIC_START_MARKER+'\x20':'\x20',!_0x25a216&&_0x5610a5[_0x392382(0xd9)]({'rawName':_0x3370ae,'tagName':_0x553e68,'outer':!!_0xaf798c});}_0x51e8ee=_0x5afce4+0x1;}if(_0x5610a5[_0x392382(0xdf)]>0x0)return invalidMybatisSource(_0x392382(0x11b)+_0x5610a5['at'](-0x1)?.['rawName']+'>.');if(!_0x318a10||!_0x2ff84e)return invalidMybatisSource(_0x392382(0x111));return{'sql':_0x23ab9e[_0x392382(0x10f)](),'mode':_0x392382(0x10d),..._0x5d99ea?{'statementType':_0x5d99ea}:{}};}function hasWellFormedXmlAttributes(_0x7428aa){const _0x1993b8=a296_0x4caa84;let _0xca4904=0x0;const _0x956d89=new Set();while(_0xca4904<_0x7428aa[_0x1993b8(0xdf)]){while(_0xca4904<_0x7428aa[_0x1993b8(0xdf)]&&/\s/[_0x1993b8(0xdb)](_0x7428aa[_0xca4904]??''))_0xca4904+=0x1;if(_0xca4904>=_0x7428aa[_0x1993b8(0xdf)])return!![];const _0x565528=/^[A-Za-z_:][\w:.-]*/[_0x1993b8(0x121)](_0x7428aa[_0x1993b8(0x12f)](_0xca4904)),_0x29a4f5=_0x565528?.[0x0];if(!_0x29a4f5||_0x956d89['has'](_0x29a4f5))return![];_0x956d89['add'](_0x29a4f5),_0xca4904+=_0x29a4f5['length'];while(_0xca4904<_0x7428aa[_0x1993b8(0xdf)]&&/\s/[_0x1993b8(0xdb)](_0x7428aa[_0xca4904]??''))_0xca4904+=0x1;if(_0x7428aa[_0xca4904]!=='=')return![];_0xca4904+=0x1;while(_0xca4904<_0x7428aa[_0x1993b8(0xdf)]&&/\s/[_0x1993b8(0xdb)](_0x7428aa[_0xca4904]??''))_0xca4904+=0x1;const _0x38cb4a=_0x7428aa[_0xca4904];if(_0x38cb4a!=='\x22'&&_0x38cb4a!=='\x27')return![];_0xca4904+=0x1;const _0x977c79=_0x7428aa[_0x1993b8(0x112)](_0x38cb4a,_0xca4904);if(_0x977c79<0x0)return![];if(decodeXmlEntities(_0x7428aa[_0x1993b8(0x12f)](_0xca4904,_0x977c79))===null)return![];_0xca4904=_0x977c79+0x1;}return!![];}function startsWithMybatisStatementWrapper(_0xd32ef4){const _0x50f029=a296_0x4caa84;let _0x412cb2=0x0;const _0x15f432=()=>{const _0x3b26f2=a296_0x5ad5;while(_0x412cb2<_0xd32ef4[_0x3b26f2(0xdf)]&&/\s/[_0x3b26f2(0xdb)](_0xd32ef4[_0x412cb2]??''))_0x412cb2+=0x1;};_0x15f432();while(_0x412cb2<_0xd32ef4[_0x50f029(0xdf)]){if(_0xd32ef4['startsWith'](_0x50f029(0x11a),_0x412cb2)){const _0x20fcdf=_0xd32ef4[_0x50f029(0x112)]('-->',_0x412cb2+0x4);if(_0x20fcdf<0x0)return!![];_0x412cb2=_0x20fcdf+0x3,_0x15f432();continue;}if(_0xd32ef4[_0x50f029(0xf0)]('<?',_0x412cb2)){const _0x173fe1=_0xd32ef4['indexOf']('?>',_0x412cb2+0x2);if(_0x173fe1<0x0)return!![];_0x412cb2=_0x173fe1+0x2,_0x15f432();continue;}break;}return MYBATIS_OUTER_TAG_PATTERN[_0x50f029(0xdb)](_0xd32ef4[_0x50f029(0x12f)](_0x412cb2));}function a296_0x2af3(){const _0x37db7d=['pop','when','CDATA\x20sections\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','406323fFxqEu','unknown\x20table(s)','WITH','9443944eLsRNh','from','Unsupported\x20MyBatis\x20XML\x20tag:\x20<','4131708QfZhIe','SQL\x20text\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','XML\x20declarations\x20must\x20precede\x20the\x20MyBatis\x20statement\x20wrapper.','rawName','UPDATE','replace','has','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','Mismatched\x20MyBatis\x20XML\x20closing\x20tag:\x20</','DDL','INSERT','include','sql','1517056xyPuAA','15gnBmxm','toUpperCase','UNKNOWN','mybatisXml','548008BvCEDf','trim','matchAll','MyBatis\x20XML\x20must\x20contain\x20exactly\x20one\x20complete\x20statement\x20wrapper.','indexOf','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','property','update',')\x5cb','492835LPffQp','Invalid\x20MyBatis\x20XML\x20closing\x20tag:\x20</','-->','<!--','Unclosed\x20MyBatis\x20XML\x20tag:\x20<','Unterminated\x20CDATA\x20section.','Unterminated\x20XML\x20comment.','<','outer','Invalid\x20attributes\x20on\x20MyBatis\x20XML\x20tag:\x20<','exec','^<\x5cs*(?:','\x20with\x20parameters:\x20','&','set','otherwise','error','SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements','choose','keys','\x20SET\x20','DELETE','fromCodePoint','match','slice','9NoBKjA','get','push','Invalid\x20MyBatis\x20XML\x20tag.','test','bind','reason','join','length','replaceAll','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','__RABETBASE_UNRESOLVED_SQL_FRAGMENT__',']]>','where','type','add','foreach','__RABETBASE_MYBATIS_DYNAMIC_END__','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','delete','>','SELECT','__RABETBASE_MYBATIS_INCLUDE_UNRESOLVED__','MyBatis\x20dynamic\x20tag\x20names\x20must\x20be\x20lowercase:\x20<','2072700KQFFfL','startsWith','Invalid\x20XML\x20entity\x20reference.','\x20query\x20targeting\x20'];a296_0x2af3=function(){return _0x37db7d;};return a296_0x2af3();}function invalidMybatisSource(_0x31e52d){return{'sql':'','mode':'mybatisXml','error':_0x31e52d};}function findXmlTagEnd(_0x9b1ee4,_0x2507e9){let _0x23de5e;for(let _0x27a78d=_0x2507e9+0x1;_0x27a78d<_0x9b1ee4['length'];_0x27a78d+=0x1){const _0x1c5345=_0x9b1ee4[_0x27a78d];if(_0x23de5e){if(_0x1c5345===_0x23de5e)_0x23de5e=undefined;continue;}if(_0x1c5345==='\x22'||_0x1c5345==='\x27'){_0x23de5e=_0x1c5345;continue;}if(_0x1c5345==='>')return _0x27a78d;}return-0x1;}function decodeXmlEntities(_0x279340){const _0xad19f7=a296_0x4caa84;let _0x3fd221=![];const _0x1bfb62=_0x279340[_0xad19f7(0x101)](/&(?:#x[0-9a-f]+;|#[0-9]+;|[A-Za-z_:][\w:.-]*;)?/g,_0x47c3d0=>{const _0x38b4ba=_0xad19f7;if(_0x47c3d0===_0x38b4ba(0x11e))return'<';if(_0x47c3d0===_0x38b4ba(0xeb))return'>';if(_0x47c3d0==='"')return'\x22';if(_0x47c3d0===''')return'\x27';if(_0x47c3d0===_0x38b4ba(0x124))return'&';const _0x4c685e=/^&#(?:x([0-9a-f]+)|([0-9]+));$/[_0x38b4ba(0x121)](_0x47c3d0);if(_0x4c685e){const _0x249c30=_0x4c685e[0x1],_0x541a4c=_0x4c685e[0x2],_0x284399=Number['parseInt'](_0x249c30??_0x541a4c??'',_0x249c30?0x10:0xa);if(isValidXmlCharacter(_0x284399))return String[_0x38b4ba(0x12d)](_0x284399);}return _0x3fd221=!![],'';});return _0x3fd221?null:_0x1bfb62;}function isValidXmlCharacter(_0x5b8d5f){return _0x5b8d5f===0x9||_0x5b8d5f===0xa||_0x5b8d5f===0xd||_0x5b8d5f>=0x20&&_0x5b8d5f<=0xd7ff||_0x5b8d5f>=0xe000&&_0x5b8d5f<=0xfffd||_0x5b8d5f>=0x10000&&_0x5b8d5f<=0x10ffff;}export function detectSqlType(_0x38d93a){return detectNormalizedSqlType(normalizeSqlForStaticAnalysis(_0x38d93a));}function detectNormalizedSqlType(_0x41d9a4){const _0x87e821=a296_0x4caa84;if(_0x41d9a4[_0x87e821(0x127)])return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':_0x41d9a4['error']};if(!_0x41d9a4[_0x87e821(0x108)][_0x87e821(0x10f)]())return{'type':_0x87e821(0x10c),'isSelectOnly':![],'isDangerous':![],'reason':'SQL\x20content\x20is\x20empty'};const _0x120167=stripStaticAnalysisMarkers(_0x41d9a4['sql'])[_0x87e821(0x101)](/#\{[^}]*\}/g,'?')[_0x87e821(0x101)](/\$\{[^}]*\}/g,'?')['replace'](/@[^(\s]+(\([^)]*\))?/g,'')[_0x87e821(0x101)](/\/\*[\s\S]*?\*\//g,'')[_0x87e821(0x10f)](),_0x4a31a0=_0x120167['split']('\x0a');let _0x7e3c39='';for(const _0x58a3e0 of _0x4a31a0){const _0xbb0ef7=_0x58a3e0[_0x87e821(0x10f)]();if(!_0xbb0ef7||_0xbb0ef7[_0x87e821(0xf0)]('--')||_0xbb0ef7[_0x87e821(0xf0)]('/*'))continue;_0x7e3c39=_0xbb0ef7;break;}const _0x5a1f30=_0x7e3c39[_0x87e821(0x10b)](),_0xcd2571=_0x41d9a4['statementType'],_0x16ec2e=maskSqlTextForBlockedKeywordScan(_0x120167),_0x3a4dab=/\b(DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x87e821(0xdb)](_0x16ec2e);if(_0xcd2571===_0x87e821(0xec)||!_0xcd2571&&(_0x5a1f30[_0x87e821(0xf0)]('SELECT')||_0x5a1f30[_0x87e821(0xf0)](_0x87e821(0xf8)))){const _0x6de971=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x87e821(0xdb)](_0x120167);return{'type':_0x87e821(0xec),'isSelectOnly':!_0x6de971,'isDangerous':_0x6de971,'reason':_0x6de971?_0x87e821(0xe1):undefined};}if(_0xcd2571===_0x87e821(0x106)||!_0xcd2571&&_0x5a1f30[_0x87e821(0xf0)](_0x87e821(0x106)))return{'type':'INSERT','isSelectOnly':![],'isDangerous':_0x3a4dab,'reason':_0x3a4dab?'SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements':undefined};if(_0xcd2571===_0x87e821(0x100)||!_0xcd2571&&_0x5a1f30[_0x87e821(0xf0)](_0x87e821(0x100)))return{'type':_0x87e821(0x100),'isSelectOnly':![],'isDangerous':_0x3a4dab,'reason':_0x3a4dab?_0x87e821(0x128):undefined};if(_0xcd2571==='DELETE'||!_0xcd2571&&_0x5a1f30['startsWith'](_0x87e821(0x12c)))return{'type':_0x87e821(0x12c),'isSelectOnly':![],'isDangerous':!![],'reason':_0x87e821(0x113)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0x5a1f30))return{'type':_0x87e821(0x105),'isSelectOnly':![],'isDangerous':!![],'reason':_0x87e821(0x103)};return{'type':_0x87e821(0x10c),'isSelectOnly':![],'isDangerous':![]};}function stripStaticAnalysisMarkers(_0x57d346){const _0x1e3737=a296_0x4caa84;return _0x57d346[_0x1e3737(0xe0)](MYBATIS_DYNAMIC_START_MARKER,'\x20')[_0x1e3737(0xe0)](MYBATIS_DYNAMIC_END_MARKER,'\x20')[_0x1e3737(0xe0)](MYBATIS_INCLUDE_MARKER,'\x20'+UNRESOLVED_SQL_FRAGMENT+'\x20');}function a296_0x5ad5(_0xd33b7d,_0xa4fa26){_0xd33b7d=_0xd33b7d-0xd8;const _0x2af3ed=a296_0x2af3();let _0x5ad5fb=_0x2af3ed[_0xd33b7d];return _0x5ad5fb;}function maskSqlTextForBlockedKeywordScan(_0x354158){const _0x2e65ae=a296_0x4caa84;return _0x354158[_0x2e65ae(0x101)](/'(?:''|\\.|[^'])*'/g,'\x20')['replace'](/"(?:""|\\.|[^"])*"/g,'\x20')[_0x2e65ae(0x101)](/`(?:``|\\.|[^`])*`/g,'\x20')[_0x2e65ae(0x101)](/--.*$/gm,'\x20')[_0x2e65ae(0x101)](/#.*$/gm,'\x20')[_0x2e65ae(0x101)](/\/\*[\s\S]*?\*\//g,'\x20');}function extractTables(_0x27cee6){const _0x44f5df=a296_0x4caa84,_0x461e9f=_0x27cee6[_0x44f5df(0x101)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')[_0x44f5df(0x101)](/--.*$/gm,'')[_0x44f5df(0x101)](/\/\*[\s\S]*?\*\//g,''),_0x228176=[],_0x1c0ee9=_0x461e9f[_0x44f5df(0x12e)](/FROM\s+([^\s,)(]+)/i);addTable(_0x228176,_0x1c0ee9?.[0x1]);for(const _0x3a61d8 of _0x461e9f[_0x44f5df(0x110)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){addTable(_0x228176,_0x3a61d8[0x1]);}const _0x99b52b=_0x461e9f[_0x44f5df(0x12e)](/INTO\s+([^\s(]+)/i);addTable(_0x228176,_0x99b52b?.[0x1]);const _0x498b09=_0x461e9f[_0x44f5df(0x12e)](/UPDATE\s+([^\s,)(]+)/i);return addTable(_0x228176,_0x498b09?.[0x1]),_0x228176;}function addTable(_0x3fc962,_0x54e5c5){const _0x1ec31d=a296_0x4caa84,_0x5c982e=_0x54e5c5?.[_0x1ec31d(0x101)](/[`"]/g,'');_0x5c982e&&_0x5c982e!==UNRESOLVED_SQL_FRAGMENT&&!_0x3fc962['includes'](_0x5c982e)&&_0x3fc962[_0x1ec31d(0xd9)](_0x5c982e);}function extractParameters(_0x122106){const _0xf595eb=a296_0x4caa84,_0x1c579b=new Set();for(const _0x4b66b8 of _0x122106[_0xf595eb(0x110)](/[#$]\{\s*([A-Za-z_][\w.]*)\s*(?=[,}])/g)){if(_0x4b66b8[0x1])_0x1c579b[_0xf595eb(0xe6)](_0x4b66b8[0x1]);}return Array[_0xf595eb(0xfa)](_0x1c579b);}export function validateSql(_0x585605){const _0x12a826=a296_0x4caa84,_0x2850e0=normalizeSqlForStaticAnalysis(_0x585605),_0xc61baa=detectNormalizedSqlType(_0x2850e0),_0x54ff2=stripStaticAnalysisMarkers(_0x2850e0[_0x12a826(0x108)]),_0x1727ee=_0x2850e0[_0x12a826(0x127)]?[]:extractTables(_0x54ff2),_0xdf60de=_0x2850e0[_0x12a826(0x127)]?[]:extractParameters(_0x54ff2);if(_0xc61baa['isDangerous'])return{'valid':![],'sqlType':_0xc61baa,'tables':_0x1727ee,'parameters':_0xdf60de,'message':_0xc61baa[_0x12a826(0xdd)]||_0xc61baa[_0x12a826(0xe5)]+'\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'};if(_0xc61baa[_0x12a826(0xe5)]===_0x12a826(0x10c))return{'valid':![],'sqlType':_0xc61baa,'tables':_0x1727ee,'parameters':_0xdf60de,'message':_0x2850e0[_0x12a826(0x127)]?'Unable\x20to\x20detect\x20SQL\x20type.\x20'+_0x2850e0[_0x12a826(0x127)]:_0x12a826(0xe9)};return{'valid':!![],'sqlType':_0xc61baa,'tables':_0x1727ee,'parameters':_0xdf60de,'message':_0xc61baa[_0x12a826(0xe5)]+_0x12a826(0xf2)+(_0x1727ee[_0x12a826(0xdf)]?_0x1727ee[_0x12a826(0xde)](',\x20'):_0x12a826(0xf7))+(_0xdf60de['length']?_0x12a826(0x123)+_0xdf60de[_0x12a826(0xde)](',\x20'):'')};}
|
|
1
|
+
const a296_0xe2d21f=a296_0x2ec3;(function(_0x8ddda8,_0x112b3e){const _0x1833c8=a296_0x2ec3,_0x505990=_0x8ddda8();while(!![]){try{const _0x366195=parseInt(_0x1833c8(0x164))/0x1*(-parseInt(_0x1833c8(0x199))/0x2)+-parseInt(_0x1833c8(0x181))/0x3*(parseInt(_0x1833c8(0x17b))/0x4)+parseInt(_0x1833c8(0x154))/0x5+-parseInt(_0x1833c8(0x14a))/0x6*(-parseInt(_0x1833c8(0x15f))/0x7)+parseInt(_0x1833c8(0x17a))/0x8*(-parseInt(_0x1833c8(0x177))/0x9)+-parseInt(_0x1833c8(0x166))/0xa*(parseInt(_0x1833c8(0x159))/0xb)+parseInt(_0x1833c8(0x170))/0xc;if(_0x366195===_0x112b3e)break;else _0x505990['push'](_0x505990['shift']());}catch(_0x25f45f){_0x505990['push'](_0x505990['shift']());}}}(a296_0x5868,0xbb8ef));const MYBATIS_OUTER_TAGS=new Map([[a296_0xe2d21f(0x185),a296_0xe2d21f(0x14c)],[a296_0xe2d21f(0x15a),a296_0xe2d21f(0x1ab)],[a296_0xe2d21f(0x19c),a296_0xe2d21f(0x19b)],['delete',a296_0xe2d21f(0x1ad)]]),MYBATIS_DYNAMIC_TAGS=new Set(['if',a296_0xe2d21f(0x18d),a296_0xe2d21f(0x18a),'choose',a296_0xe2d21f(0x149),a296_0xe2d21f(0x197),a296_0xe2d21f(0x16a),a296_0xe2d21f(0x19a),a296_0xe2d21f(0x1a4),'include','property']),MYBATIS_BRANCH_TAGS=new Set(['if',a296_0xe2d21f(0x18a),a296_0xe2d21f(0x14f),a296_0xe2d21f(0x149),a296_0xe2d21f(0x197)]);export const MYBATIS_DYNAMIC_START_MARKER=a296_0xe2d21f(0x157);function a296_0x2ec3(_0x195ea1,_0xb7b919){_0x195ea1=_0x195ea1-0x149;const _0x586834=a296_0x5868();let _0x2ec347=_0x586834[_0x195ea1];return _0x2ec347;}export const MYBATIS_DYNAMIC_END_MARKER='__RABETBASE_MYBATIS_DYNAMIC_END__';export const MYBATIS_INCLUDE_MARKER=a296_0xe2d21f(0x179);const UNRESOLVED_SQL_FRAGMENT='__RABETBASE_UNRESOLVED_SQL_FRAGMENT__',MYBATIS_OUTER_TAG_PATTERN=new RegExp(a296_0xe2d21f(0x1a7)+[...MYBATIS_OUTER_TAGS[a296_0xe2d21f(0x1a3)]()][a296_0xe2d21f(0x150)]('|')+')\x5cb','i');export function normalizeSqlForStaticAnalysis(_0x856003){const _0x3cfd8b=a296_0xe2d21f,_0xbbb8ad=typeof _0x856003===_0x3cfd8b(0x19f)?_0x856003:'';if(!startsWithMybatisStatementWrapper(_0xbbb8ad))return{'sql':_0xbbb8ad,'mode':'sql'};let _0x4bf2ac=0x0,_0x192f21='',_0x11f694,_0x2744ee=![],_0x3858a=![];const _0x2db200=[];while(_0x4bf2ac<_0xbbb8ad[_0x3cfd8b(0x15d)]){if(_0xbbb8ad['startsWith'](_0x3cfd8b(0x18f),_0x4bf2ac)){const _0x2837b5=_0xbbb8ad[_0x3cfd8b(0x17f)](_0x3cfd8b(0x182),_0x4bf2ac+0x4);if(_0x2837b5<0x0)return invalidMybatisSource('Unterminated\x20XML\x20comment.');_0x192f21+='\x20',_0x4bf2ac=_0x2837b5+0x3;continue;}if(_0xbbb8ad['startsWith'](_0x3cfd8b(0x187),_0x4bf2ac)){if(!_0x2744ee||_0x3858a)return invalidMybatisSource(_0x3cfd8b(0x1b2));const _0xc20c22=_0xbbb8ad[_0x3cfd8b(0x17f)](_0x3cfd8b(0x189),_0x4bf2ac+0x9);if(_0xc20c22<0x0)return invalidMybatisSource(_0x3cfd8b(0x169));_0x192f21+=_0xbbb8ad[_0x3cfd8b(0x1ac)](_0x4bf2ac+0x9,_0xc20c22),_0x4bf2ac=_0xc20c22+0x3;continue;}if(_0xbbb8ad[_0x3cfd8b(0x190)]('<?',_0x4bf2ac)){if(_0x2744ee)return invalidMybatisSource(_0x3cfd8b(0x176));const _0x886883=_0xbbb8ad[_0x3cfd8b(0x17f)]('?>',_0x4bf2ac+0x2);if(_0x886883<0x0)return invalidMybatisSource(_0x3cfd8b(0x156));_0x192f21+='\x20',_0x4bf2ac=_0x886883+0x2;continue;}if(_0xbbb8ad[_0x4bf2ac]!=='<'){const _0xc615c8=_0xbbb8ad[_0x3cfd8b(0x17f)]('<',_0x4bf2ac),_0x91f3ab=_0xc615c8<0x0?_0xbbb8ad['length']:_0xc615c8,_0x4c1eae=_0xbbb8ad[_0x3cfd8b(0x1ac)](_0x4bf2ac,_0x91f3ab);if((!_0x2744ee||_0x3858a)&&_0x4c1eae[_0x3cfd8b(0x16a)]())return invalidMybatisSource(_0x3cfd8b(0x160));if(_0x2744ee&&!_0x3858a){const _0x18ae4c=decodeXmlEntities(_0x4c1eae);if(_0x18ae4c===null)return invalidMybatisSource(_0x3cfd8b(0x167));_0x192f21+=_0x18ae4c;}else _0x192f21+='\x20';_0x4bf2ac=_0x91f3ab;continue;}const _0x34888e=findXmlTagEnd(_0xbbb8ad,_0x4bf2ac);if(_0x34888e<0x0)return invalidMybatisSource(_0x3cfd8b(0x14b));const _0x3cff79=_0xbbb8ad[_0x3cfd8b(0x1ac)](_0x4bf2ac,_0x34888e+0x1),_0x1f2ae1=/^<\s*(\/?)\s*([A-Za-z][\w:-]*)([\s\S]*?)(\/?)\s*>$/[_0x3cfd8b(0x168)](_0x3cff79);if(!_0x1f2ae1)return invalidMybatisSource('Invalid\x20MyBatis\x20XML\x20tag.');const _0x5a5dfe=_0x1f2ae1[0x1]==='/',_0x472d44=_0x1f2ae1[0x2]??'',_0x541bd0=_0x472d44[_0x3cfd8b(0x15c)](),_0x346f03=_0x1f2ae1[0x3]??'',_0x1c2e29=_0x1f2ae1[0x4]==='/',_0x54ec71=MYBATIS_OUTER_TAGS[_0x3cfd8b(0x174)](_0x541bd0);if(!_0x54ec71&&!MYBATIS_DYNAMIC_TAGS['has'](_0x541bd0))return invalidMybatisSource(_0x3cfd8b(0x152)+_0x541bd0+'>.');if(!_0x54ec71&&_0x472d44!==_0x541bd0)return invalidMybatisSource(_0x3cfd8b(0x18b)+_0x472d44+'>.');if(_0x5a5dfe){if(_0x346f03[_0x3cfd8b(0x16a)]()||_0x1c2e29)return invalidMybatisSource(_0x3cfd8b(0x1b0)+_0x472d44+'>.');const _0x2691d2=_0x2db200['at'](-0x1);if(!_0x2691d2||(_0x2691d2[_0x3cfd8b(0x15e)]?_0x2691d2[_0x3cfd8b(0x17e)]!==_0x541bd0:_0x2691d2[_0x3cfd8b(0x196)]!==_0x472d44))return invalidMybatisSource(_0x3cfd8b(0x186)+_0x472d44+'>.');_0x2db200[_0x3cfd8b(0x172)]();if(_0x2691d2['outer'])_0x3858a=!![];_0x192f21+=MYBATIS_BRANCH_TAGS[_0x3cfd8b(0x171)](_0x541bd0)?'\x20'+MYBATIS_DYNAMIC_END_MARKER+'\x20':'\x20';}else{if(!hasWellFormedXmlAttributes(_0x346f03))return invalidMybatisSource(_0x3cfd8b(0x1a2)+_0x472d44+'>.');if(_0x541bd0===_0x3cfd8b(0x1a6)&&(!_0x1c2e29||_0x2db200['at'](-0x1)?.['tagName']!=='include'))return invalidMybatisSource(_0x3cfd8b(0x195));if(_0x54ec71){if(_0x2744ee||_0x2db200[_0x3cfd8b(0x15d)]>0x0)return invalidMybatisSource('Multiple\x20MyBatis\x20statement\x20wrappers\x20are\x20not\x20supported.');_0x2744ee=!![],_0x3858a=_0x1c2e29,_0x11f694=_0x54ec71;}else{if(!_0x2744ee||_0x3858a)return invalidMybatisSource(_0x3cfd8b(0x16d)+_0x472d44+'>.');}_0x192f21+=_0x541bd0===_0x3cfd8b(0x18d)?_0x3cfd8b(0x19e):_0x541bd0===_0x3cfd8b(0x19a)?_0x3cfd8b(0x1a0):_0x541bd0===_0x3cfd8b(0x1b1)?'\x20'+MYBATIS_INCLUDE_MARKER+'\x20':MYBATIS_BRANCH_TAGS['has'](_0x541bd0)&&!_0x1c2e29?'\x20'+MYBATIS_DYNAMIC_START_MARKER+'\x20':'\x20',!_0x1c2e29&&_0x2db200[_0x3cfd8b(0x193)]({'rawName':_0x472d44,'tagName':_0x541bd0,'outer':!!_0x54ec71});}_0x4bf2ac=_0x34888e+0x1;}if(_0x2db200[_0x3cfd8b(0x15d)]>0x0)return invalidMybatisSource('Unclosed\x20MyBatis\x20XML\x20tag:\x20<'+_0x2db200['at'](-0x1)?.['rawName']+'>.');if(!_0x2744ee||!_0x3858a)return invalidMybatisSource(_0x3cfd8b(0x16f));return{'sql':_0x192f21[_0x3cfd8b(0x16a)](),'mode':_0x3cfd8b(0x18e),..._0x11f694?{'statementType':_0x11f694}:{}};}function hasWellFormedXmlAttributes(_0x5e3b74){const _0x1402e2=a296_0xe2d21f;let _0x2f7121=0x0;const _0x1d089c=new Set();while(_0x2f7121<_0x5e3b74[_0x1402e2(0x15d)]){while(_0x2f7121<_0x5e3b74[_0x1402e2(0x15d)]&&/\s/['test'](_0x5e3b74[_0x2f7121]??''))_0x2f7121+=0x1;if(_0x2f7121>=_0x5e3b74[_0x1402e2(0x15d)])return!![];const _0x18f6fd=/^[A-Za-z_:][\w:.-]*/[_0x1402e2(0x168)](_0x5e3b74['slice'](_0x2f7121)),_0x4c6b31=_0x18f6fd?.[0x0];if(!_0x4c6b31||_0x1d089c[_0x1402e2(0x171)](_0x4c6b31))return![];_0x1d089c[_0x1402e2(0x173)](_0x4c6b31),_0x2f7121+=_0x4c6b31['length'];while(_0x2f7121<_0x5e3b74[_0x1402e2(0x15d)]&&/\s/[_0x1402e2(0x15b)](_0x5e3b74[_0x2f7121]??''))_0x2f7121+=0x1;if(_0x5e3b74[_0x2f7121]!=='=')return![];_0x2f7121+=0x1;while(_0x2f7121<_0x5e3b74[_0x1402e2(0x15d)]&&/\s/[_0x1402e2(0x15b)](_0x5e3b74[_0x2f7121]??''))_0x2f7121+=0x1;const _0x355165=_0x5e3b74[_0x2f7121];if(_0x355165!=='\x22'&&_0x355165!=='\x27')return![];_0x2f7121+=0x1;const _0x2c64cc=_0x5e3b74['indexOf'](_0x355165,_0x2f7121);if(_0x2c64cc<0x0)return![];if(decodeXmlEntities(_0x5e3b74[_0x1402e2(0x1ac)](_0x2f7121,_0x2c64cc))===null)return![];_0x2f7121=_0x2c64cc+0x1;}return!![];}function startsWithMybatisStatementWrapper(_0x53f97c){const _0xf26426=a296_0xe2d21f;let _0xd98e8f=0x0;const _0x10504a=()=>{const _0x484c6c=a296_0x2ec3;while(_0xd98e8f<_0x53f97c['length']&&/\s/[_0x484c6c(0x15b)](_0x53f97c[_0xd98e8f]??''))_0xd98e8f+=0x1;};_0x10504a();while(_0xd98e8f<_0x53f97c[_0xf26426(0x15d)]){if(_0x53f97c[_0xf26426(0x190)](_0xf26426(0x18f),_0xd98e8f)){const _0x10a420=_0x53f97c['indexOf']('-->',_0xd98e8f+0x4);if(_0x10a420<0x0)return!![];_0xd98e8f=_0x10a420+0x3,_0x10504a();continue;}if(_0x53f97c[_0xf26426(0x190)]('<?',_0xd98e8f)){const _0x51b866=_0x53f97c[_0xf26426(0x17f)]('?>',_0xd98e8f+0x2);if(_0x51b866<0x0)return!![];_0xd98e8f=_0x51b866+0x2,_0x10504a();continue;}break;}return MYBATIS_OUTER_TAG_PATTERN[_0xf26426(0x15b)](_0x53f97c[_0xf26426(0x1ac)](_0xd98e8f));}function invalidMybatisSource(_0x4de398){const _0x20c912=a296_0xe2d21f;return{'sql':'','mode':_0x20c912(0x18e),'error':_0x4de398};}function a296_0x5868(){const _0x52d053=['insert','test','toLowerCase','length','outer','15596HODdNQ','SQL\x20text\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','&','Unable\x20to\x20detect\x20SQL\x20type.\x20','\x20query\x20targeting\x20','452LYDvAe','parseInt','904170KiwaOG','Invalid\x20XML\x20entity\x20reference.','exec','Unterminated\x20CDATA\x20section.','trim','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','reason','MyBatis\x20dynamic\x20tag\x20must\x20be\x20inside\x20the\x20statement\x20wrapper:\x20<','match','MyBatis\x20XML\x20must\x20contain\x20exactly\x20one\x20complete\x20statement\x20wrapper.','8664948yGUDlY','has','pop','add','get','replace','XML\x20declarations\x20must\x20precede\x20the\x20MyBatis\x20statement\x20wrapper.','9606852IhtvuC','WITH','__RABETBASE_MYBATIS_INCLUDE_UNRESOLVED__','8QzstLr','52HguCUN','statementType','includes','tagName','indexOf','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','9777qBFsax','-->','isDangerous','SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements','select','Mismatched\x20MyBatis\x20XML\x20closing\x20tag:\x20</','<![CDATA[','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save',']]>','foreach','MyBatis\x20dynamic\x20tag\x20names\x20must\x20be\x20lowercase:\x20<','fromCodePoint','where','mybatisXml','<!--','startsWith','replaceAll','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','push','>','MyBatis\x20<property>\x20must\x20be\x20a\x20self-closing\x20direct\x20child\x20of\x20<include>.','rawName','otherwise','<','974RdxrTL','set','UPDATE','update','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','\x20WHERE\x20','string','\x20SET\x20','type','Invalid\x20attributes\x20on\x20MyBatis\x20XML\x20tag:\x20<','keys','bind','matchAll','property','^<\x5cs*(?:','from','DDL','unknown\x20table(s)','INSERT','slice','DELETE',''','SQL\x20content\x20is\x20empty','Invalid\x20MyBatis\x20XML\x20closing\x20tag:\x20</','include','CDATA\x20sections\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','when','582ueLses','Unterminated\x20MyBatis\x20XML\x20tag.','SELECT','UNKNOWN','toUpperCase','choose','join','sql','Unsupported\x20MyBatis\x20XML\x20tag:\x20<','"','7156070pnjKPi','\x20with\x20parameters:\x20','Unterminated\x20XML\x20declaration.','__RABETBASE_MYBATIS_DYNAMIC_START__','error','33DjDmCG'];a296_0x5868=function(){return _0x52d053;};return a296_0x5868();}function findXmlTagEnd(_0x5d04c5,_0x5bdbbc){const _0x4c1e54=a296_0xe2d21f;let _0x5da384;for(let _0x29d50d=_0x5bdbbc+0x1;_0x29d50d<_0x5d04c5[_0x4c1e54(0x15d)];_0x29d50d+=0x1){const _0xfdf964=_0x5d04c5[_0x29d50d];if(_0x5da384){if(_0xfdf964===_0x5da384)_0x5da384=undefined;continue;}if(_0xfdf964==='\x22'||_0xfdf964==='\x27'){_0x5da384=_0xfdf964;continue;}if(_0xfdf964==='>')return _0x29d50d;}return-0x1;}function decodeXmlEntities(_0x4133e8){let _0x523e46=![];const _0x28eb5d=_0x4133e8['replace'](/&(?:#x[0-9a-f]+;|#[0-9]+;|[A-Za-z_:][\w:.-]*;)?/g,_0x44d883=>{const _0x377011=a296_0x2ec3;if(_0x44d883===_0x377011(0x198))return'<';if(_0x44d883===_0x377011(0x194))return'>';if(_0x44d883===_0x377011(0x153))return'\x22';if(_0x44d883===_0x377011(0x1ae))return'\x27';if(_0x44d883===_0x377011(0x161))return'&';const _0x545f39=/^&#(?:x([0-9a-f]+)|([0-9]+));$/[_0x377011(0x168)](_0x44d883);if(_0x545f39){const _0x392be8=_0x545f39[0x1],_0x4a3dba=_0x545f39[0x2],_0x2de19a=Number[_0x377011(0x165)](_0x392be8??_0x4a3dba??'',_0x392be8?0x10:0xa);if(isValidXmlCharacter(_0x2de19a))return String[_0x377011(0x18c)](_0x2de19a);}return _0x523e46=!![],'';});return _0x523e46?null:_0x28eb5d;}function isValidXmlCharacter(_0x52e1ef){return _0x52e1ef===0x9||_0x52e1ef===0xa||_0x52e1ef===0xd||_0x52e1ef>=0x20&&_0x52e1ef<=0xd7ff||_0x52e1ef>=0xe000&&_0x52e1ef<=0xfffd||_0x52e1ef>=0x10000&&_0x52e1ef<=0x10ffff;}export function detectSqlType(_0xf2c179){return detectNormalizedSqlType(normalizeSqlForStaticAnalysis(_0xf2c179));}function detectNormalizedSqlType(_0x40dcb8){const _0x4c775b=a296_0xe2d21f;if(_0x40dcb8[_0x4c775b(0x158)])return{'type':_0x4c775b(0x14d),'isSelectOnly':![],'isDangerous':![],'reason':_0x40dcb8['error']};if(!_0x40dcb8[_0x4c775b(0x151)]['trim']())return{'type':_0x4c775b(0x14d),'isSelectOnly':![],'isDangerous':![],'reason':_0x4c775b(0x1af)};const _0x4756c8=stripStaticAnalysisMarkers(_0x40dcb8[_0x4c775b(0x151)])[_0x4c775b(0x175)](/#\{[^}]*\}/g,'?')[_0x4c775b(0x175)](/\$\{[^}]*\}/g,'?')['replace'](/@[^(\s]+(\([^)]*\))?/g,'')[_0x4c775b(0x175)](/\/\*[\s\S]*?\*\//g,'')[_0x4c775b(0x16a)](),_0x594e3d=_0x4756c8['split']('\x0a');let _0x4ece22='';for(const _0x4722bb of _0x594e3d){const _0x22b92d=_0x4722bb[_0x4c775b(0x16a)]();if(!_0x22b92d||_0x22b92d[_0x4c775b(0x190)]('--')||_0x22b92d[_0x4c775b(0x190)]('/*'))continue;_0x4ece22=_0x22b92d;break;}const _0x538f54=_0x4ece22[_0x4c775b(0x14e)](),_0x152122=_0x40dcb8[_0x4c775b(0x17c)],_0x39125e=maskSqlTextForBlockedKeywordScan(_0x4756c8),_0x17a027=/\b(DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x4c775b(0x15b)](_0x39125e);if(_0x152122===_0x4c775b(0x14c)||!_0x152122&&(_0x538f54[_0x4c775b(0x190)](_0x4c775b(0x14c))||_0x538f54[_0x4c775b(0x190)](_0x4c775b(0x178)))){const _0x21e423=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i['test'](_0x4756c8);return{'type':'SELECT','isSelectOnly':!_0x21e423,'isDangerous':_0x21e423,'reason':_0x21e423?_0x4c775b(0x180):undefined};}if(_0x152122===_0x4c775b(0x1ab)||!_0x152122&&_0x538f54['startsWith']('INSERT'))return{'type':_0x4c775b(0x1ab),'isSelectOnly':![],'isDangerous':_0x17a027,'reason':_0x17a027?_0x4c775b(0x184):undefined};if(_0x152122===_0x4c775b(0x19b)||!_0x152122&&_0x538f54[_0x4c775b(0x190)](_0x4c775b(0x19b)))return{'type':_0x4c775b(0x19b),'isSelectOnly':![],'isDangerous':_0x17a027,'reason':_0x17a027?'SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements':undefined};if(_0x152122===_0x4c775b(0x1ad)||!_0x152122&&_0x538f54[_0x4c775b(0x190)](_0x4c775b(0x1ad)))return{'type':_0x4c775b(0x1ad),'isSelectOnly':![],'isDangerous':!![],'reason':_0x4c775b(0x19d)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x4c775b(0x15b)](_0x538f54))return{'type':_0x4c775b(0x1a9),'isSelectOnly':![],'isDangerous':!![],'reason':_0x4c775b(0x188)};return{'type':_0x4c775b(0x14d),'isSelectOnly':![],'isDangerous':![]};}function stripStaticAnalysisMarkers(_0xc687c8){const _0x6e44f1=a296_0xe2d21f;return _0xc687c8[_0x6e44f1(0x191)](MYBATIS_DYNAMIC_START_MARKER,'\x20')[_0x6e44f1(0x191)](MYBATIS_DYNAMIC_END_MARKER,'\x20')['replaceAll'](MYBATIS_INCLUDE_MARKER,'\x20'+UNRESOLVED_SQL_FRAGMENT+'\x20');}function maskSqlTextForBlockedKeywordScan(_0x1db35e){const _0x4f4aae=a296_0xe2d21f;return _0x1db35e[_0x4f4aae(0x175)](/'(?:''|\\.|[^'])*'/g,'\x20')[_0x4f4aae(0x175)](/"(?:""|\\.|[^"])*"/g,'\x20')[_0x4f4aae(0x175)](/`(?:``|\\.|[^`])*`/g,'\x20')[_0x4f4aae(0x175)](/--.*$/gm,'\x20')[_0x4f4aae(0x175)](/#.*$/gm,'\x20')[_0x4f4aae(0x175)](/\/\*[\s\S]*?\*\//g,'\x20');}function extractTables(_0x2b2e3c){const _0x313f23=a296_0xe2d21f,_0x8e3b69=_0x2b2e3c[_0x313f23(0x175)](/#\{[^}]*\}/g,'?')[_0x313f23(0x175)](/\$\{[^}]*\}/g,'?')[_0x313f23(0x175)](/'[^']*'/g,'\x27\x27')[_0x313f23(0x175)](/--.*$/gm,'')['replace'](/\/\*[\s\S]*?\*\//g,''),_0x143fa7=[],_0x7cfa44=_0x8e3b69[_0x313f23(0x16e)](/FROM\s+([^\s,)(]+)/i);addTable(_0x143fa7,_0x7cfa44?.[0x1]);for(const _0x3a42d5 of _0x8e3b69[_0x313f23(0x1a5)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){addTable(_0x143fa7,_0x3a42d5[0x1]);}const _0x5c1fae=_0x8e3b69[_0x313f23(0x16e)](/INTO\s+([^\s(]+)/i);addTable(_0x143fa7,_0x5c1fae?.[0x1]);const _0x32626f=_0x8e3b69[_0x313f23(0x16e)](/UPDATE\s+([^\s,)(]+)/i);return addTable(_0x143fa7,_0x32626f?.[0x1]),_0x143fa7;}function addTable(_0x5d9557,_0x5d4884){const _0x2256b2=a296_0xe2d21f,_0x276345=_0x5d4884?.[_0x2256b2(0x175)](/[`"]/g,'');_0x276345&&_0x276345!==UNRESOLVED_SQL_FRAGMENT&&!_0x5d9557[_0x2256b2(0x17d)](_0x276345)&&_0x5d9557[_0x2256b2(0x193)](_0x276345);}function extractParameters(_0x5669bb){const _0x967fae=a296_0xe2d21f,_0x1977d1=new Set();for(const _0x1f736d of _0x5669bb[_0x967fae(0x1a5)](/[#$]\{\s*([A-Za-z_][\w.]*)\s*(?=[,}])/g)){if(_0x1f736d[0x1])_0x1977d1[_0x967fae(0x173)](_0x1f736d[0x1]);}return Array[_0x967fae(0x1a8)](_0x1977d1);}export function validateSql(_0x4ac5f3){const _0x267eda=a296_0xe2d21f,_0x1bb99d=normalizeSqlForStaticAnalysis(_0x4ac5f3),_0x574bcf=detectNormalizedSqlType(_0x1bb99d),_0x56fb6a=stripStaticAnalysisMarkers(_0x1bb99d[_0x267eda(0x151)]),_0x2214c2=_0x1bb99d[_0x267eda(0x158)]?[]:extractTables(_0x56fb6a),_0x2c9b7d=_0x1bb99d[_0x267eda(0x158)]?[]:extractParameters(_0x56fb6a);if(_0x574bcf[_0x267eda(0x183)])return{'valid':![],'sqlType':_0x574bcf,'tables':_0x2214c2,'parameters':_0x2c9b7d,'message':_0x574bcf[_0x267eda(0x16c)]||_0x574bcf[_0x267eda(0x1a1)]+_0x267eda(0x16b)};if(_0x574bcf['type']===_0x267eda(0x14d))return{'valid':![],'sqlType':_0x574bcf,'tables':_0x2214c2,'parameters':_0x2c9b7d,'message':_0x1bb99d[_0x267eda(0x158)]?_0x267eda(0x162)+_0x1bb99d[_0x267eda(0x158)]:_0x267eda(0x192)};return{'valid':!![],'sqlType':_0x574bcf,'tables':_0x2214c2,'parameters':_0x2c9b7d,'message':_0x574bcf['type']+_0x267eda(0x163)+(_0x2214c2[_0x267eda(0x15d)]?_0x2214c2[_0x267eda(0x150)](',\x20'):_0x267eda(0x1aa))+(_0x2c9b7d['length']?_0x267eda(0x155)+_0x2c9b7d[_0x267eda(0x150)](',\x20'):'')};}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a297_0x1eee(){const _0x3d7667=['4800840BrtIFn','auth_required','Configuration\x20file\x20not\x20found','\x20workspace\x20add\x20<name>\x20--appcode\x20<code>\x20--global`\x20registers\x20a\x20reusable\x20global\x20app\x20profile.','\x20project\x20directory','Authentication\x20required','Missing\x20required\x20flag:\x20--','\x20--help`\x20to\x20see\x20available\x20commands.','176224yRCBxq','2907474HhtrOo','683358RMbQib','config_missing','Run\x20`','\x20auth`\x20to\x20login\x20first.','apiError','cancelled','network_error','Set\x20appcode\x20via\x20`','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.\x0a\x20\x20\x20\x20\x20\x20\x20Tip:\x20`','Not\x20in\x20a\x20','not_in_project','651drJUYJ','flag_missing','4707552ztcXhj','103384HqMymf','Operation\x20cancelled.','Check\x20your\x20internet\x20connection\x20and\x20try\x20again.','843975ZNxyEQ','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'];a297_0x1eee=function(){return _0x3d7667;};return a297_0x1eee();}const a297_0x2dfe78=a297_0x5068;(function(_0x3aa0bc,_0x18528e){const _0x268f61=a297_0x5068,_0x4667c4=_0x3aa0bc();while(!![]){try{const _0x1300fc=parseInt(_0x268f61(0x1cf))/0x1+-parseInt(_0x268f61(0x1d1))/0x2+-parseInt(_0x268f61(0x1d0))/0x3+parseInt(_0x268f61(0x1e4))/0x4+parseInt(_0x268f61(0x1e2))/0x5+-parseInt(_0x268f61(0x1de))/0x6+parseInt(_0x268f61(0x1dc))/0x7*(parseInt(_0x268f61(0x1df))/0x8);if(_0x1300fc===_0x18528e)break;else _0x4667c4['push'](_0x4667c4['shift']());}catch(_0x43d1aa){_0x4667c4['push'](_0x4667c4['shift']());}}}(a297_0x1eee,0x9f177));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};function a297_0x5068(_0x120152,_0x14cb37){_0x120152=_0x120152-0x1cc;const _0x1eee3f=a297_0x1eee();let _0x5068f7=_0x1eee3f[_0x120152];return _0x5068f7;}const baseCliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a297_0x2dfe78(0x1d3)+CLI_BIN_NAME+a297_0x2dfe78(0x1d4),'configMissingHint':'Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+a297_0x2dfe78(0x1d9)+CLI_BIN_NAME+'\x20workspace\x20add\x20<name>\x20--appcode\x20<code>\x20--global`\x20registers\x20a\x20reusable\x20global\x20app\x20profile.','notInProjectHint':a297_0x2dfe78(0x1e3)});export const CliErrors={'authRequired'(_0x32dbb8){const _0x5c803e=a297_0x2dfe78;return new CliError(_0x5c803e(0x1e5),0x1,_0x5c803e(0x1cc),_0x32dbb8??'Run\x20`'+CLI_BIN_NAME+_0x5c803e(0x1d4));},'configMissing'(_0x45fd2e){const _0x498acc=a297_0x2dfe78;return new CliError(_0x498acc(0x1d2),0x1,_0x498acc(0x1e6),_0x45fd2e??_0x498acc(0x1d8)+CLI_BIN_NAME+_0x498acc(0x1d9)+CLI_BIN_NAME+_0x498acc(0x1e7));},'notInProject'(){const _0x5c8bdd=a297_0x2dfe78;return new CliError(_0x5c8bdd(0x1db),0x1,_0x5c8bdd(0x1da)+CLI_BIN_NAME+_0x5c8bdd(0x1e8),_0x5c8bdd(0x1e3));},'apiError'(_0x502d3c,_0x100a0f){const _0x5f3e98=a297_0x2dfe78;return baseCliErrors[_0x5f3e98(0x1d5)](_0x502d3c,_0x100a0f);},'networkError'(_0x34e8c8){const _0x1534af=a297_0x2dfe78;return new CliError(_0x1534af(0x1d7),0x2,'Network\x20error:\x20'+_0x34e8c8,_0x1534af(0x1e1));},'unknownCommand'(_0x2547c2){const _0x248e26=a297_0x2dfe78;return new CliError('unknown_command',0x1,'Unknown\x20command:\x20'+_0x2547c2,_0x248e26(0x1d3)+CLI_BIN_NAME+_0x248e26(0x1ce));},'flagMissing'(_0x281e02,_0xa8414d){const _0x45d045=a297_0x2dfe78;return new CliError(_0x45d045(0x1dd),0x1,_0x45d045(0x1cd)+_0x281e02,_0xa8414d);},'validation'(_0x3d7774,_0xb17acc){return baseCliErrors['validation'](_0x3d7774,_0xb17acc);},'cancelled'(_0x347f27){const _0x289848=a297_0x2dfe78;return new CliError(_0x289848(0x1d6),0x0,_0x347f27??_0x289848(0x1e0));}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a298_0x262f(){const _0x1beba5=['171651YRgEZS','map','8BVZbzi','7985CaCibZ','5301303Mbzyhn','17304939HTQbGJ','yes','549453BBpHAc','628WnZHGS','7437072fwloVL','1601722JXELhX'];a298_0x262f=function(){return _0x1beba5;};return a298_0x262f();}(function(_0x50a9e3,_0x3d9d0d){const _0x56c0b9=a298_0x3042,_0x41280b=_0x50a9e3();while(!![]){try{const _0x449e29=-parseInt(_0x56c0b9(0x102))/0x1+parseInt(_0x56c0b9(0x101))/0x2+-parseInt(_0x56c0b9(0xfe))/0x3+parseInt(_0x56c0b9(0xff))/0x4*(parseInt(_0x56c0b9(0x105))/0x5)+-parseInt(_0x56c0b9(0x100))/0x6+-parseInt(_0x56c0b9(0x106))/0x7+-parseInt(_0x56c0b9(0x104))/0x8*(-parseInt(_0x56c0b9(0x107))/0x9);if(_0x449e29===_0x3d9d0d)break;else _0x41280b['push'](_0x41280b['shift']());}catch(_0x1b5d05){_0x41280b['push'](_0x41280b['shift']());}}}(a298_0x262f,0x9807e));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a298_0x41b6bc}from'@lovrabet/cli-framework';import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';function a298_0x3042(_0x1a79f6,_0x510be5){_0x1a79f6=_0x1a79f6-0xfd;const _0x262fab=a298_0x262f();let _0x304211=_0x262fab[_0x1a79f6];return _0x304211;}export function buildAllFlags(_0xec9820){const _0x4547b2=a298_0x3042,_0x3b598f=a298_0x41b6bc(_0xec9820,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0xec9820))return _0x3b598f;return _0x3b598f[_0x4547b2(0x103)](_0x47cf6a=>_0x47cf6a['name']===_0x4547b2(0xfd)?{..._0x47cf6a,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x47cf6a);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a299_0x9742(_0x2f5a9f,_0x17a05f){_0x2f5a9f=_0x2f5a9f-0x1c3;var _0x4ae908=a299_0x4ae9();var _0x974201=_0x4ae908[_0x2f5a9f];return _0x974201;}function a299_0x4ae9(){var _0x2ee87c=['5601871VSfwbT','structuredErrors','defaultFormat','3160530EePmsJ','780507VEqfrg','7suOLRd','def','compress','flags','6439938lTYFNw','4295yyPVkT','36964TOdvRO','48CiCIdU','9UoOSeE','1129936uaKleN','format','2228REQPTs'];a299_0x4ae9=function(){return _0x2ee87c;};return a299_0x4ae9();}(function(_0x1444b9,_0x488236){var _0x23c64c=a299_0x9742,_0x454b6f=_0x1444b9();while(!![]){try{var _0x1c9fa3=-parseInt(_0x23c64c(0x1cd))/0x1*(-parseInt(_0x23c64c(0x1ce))/0x2)+-parseInt(_0x23c64c(0x1c6))/0x3+parseInt(_0x23c64c(0x1d2))/0x4*(-parseInt(_0x23c64c(0x1cc))/0x5)+parseInt(_0x23c64c(0x1cb))/0x6*(parseInt(_0x23c64c(0x1c7))/0x7)+-parseInt(_0x23c64c(0x1d0))/0x8*(-parseInt(_0x23c64c(0x1cf))/0x9)+-parseInt(_0x23c64c(0x1c5))/0xa+-parseInt(_0x23c64c(0x1d3))/0xb;if(_0x1c9fa3===_0x488236)break;else _0x454b6f['push'](_0x454b6f['shift']());}catch(_0x5deb0a){_0x454b6f['push'](_0x454b6f['shift']());}}}(a299_0x4ae9,0x8349b));import{resolveOutputConfig}from'@lovrabet/cli-framework';export function usesStructuredErrorOutput(_0x2be325){var _0x34db4b=a299_0x9742;return _0x2be325?.[_0x34db4b(0x1c3)]===!![];}export function resolveErrorOutputFormat(_0xc576b9){var _0x28641a=a299_0x9742;if(!_0xc576b9[_0x28641a(0x1c8)])return _0xc576b9[_0x28641a(0x1c4)]??_0x28641a(0x1c9);return resolveOutputConfig({'flags':_0xc576b9[_0x28641a(0x1ca)]??{},'def':_0xc576b9[_0x28641a(0x1c8)],'configDefault':_0xc576b9[_0x28641a(0x1c4)]})[_0x28641a(0x1d1)];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a300_0x3cc8(_0x14cda6,_0x5e0b6f){_0x14cda6=_0x14cda6-0x194;const _0x55407f=a300_0x5540();let _0x3cc824=_0x55407f[_0x14cda6];return _0x3cc824;}const a300_0x47bff8=a300_0x3cc8;(function(_0x270666,_0x3da663){const _0x4b2bef=a300_0x3cc8,_0x6ab338=_0x270666();while(!![]){try{const _0x211636=parseInt(_0x4b2bef(0x1a2))/0x1+-parseInt(_0x4b2bef(0x19b))/0x2*(-parseInt(_0x4b2bef(0x194))/0x3)+-parseInt(_0x4b2bef(0x19c))/0x4+parseInt(_0x4b2bef(0x1a1))/0x5*(-parseInt(_0x4b2bef(0x196))/0x6)+parseInt(_0x4b2bef(0x197))/0x7+-parseInt(_0x4b2bef(0x195))/0x8+-parseInt(_0x4b2bef(0x1a3))/0x9*(-parseInt(_0x4b2bef(0x199))/0xa);if(_0x211636===_0x3da663)break;else _0x6ab338['push'](_0x6ab338['shift']());}catch(_0x55cb34){_0x6ab338['push'](_0x6ab338['shift']());}}}(a300_0x5540,0x41787));const EXPLICIT_YES_COMMANDS=new Set([a300_0x47bff8(0x19f),a300_0x47bff8(0x19a),a300_0x47bff8(0x1a0),a300_0x47bff8(0x19e)]);function a300_0x5540(){const _0x432ac5=['12432tERWDd','29012oYhaMo','command','notification\x20config-delete','menu\x20delete','notification\x20config-update','5Yutiow','64999XIHzPj','108GRQxBQ','108eAgZzX','1611264ZIjuMz','2552658gYFaoc','901964KADtoy','has','403870ZMomyd','kb\x20delete'];a300_0x5540=function(){return _0x432ac5;};return a300_0x5540();}export const EXPLICIT_YES_FLAG_DESCRIPTION='Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan';export function requiresExplicitYes(_0x49f05a){const _0xd1d0ac=a300_0x47bff8;return EXPLICIT_YES_COMMANDS[_0xd1d0ac(0x198)](_0x49f05a['service']+'\x20'+_0x49f05a[_0xd1d0ac(0x19d)]);}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a301_0xa544df=a301_0xf221;(function(_0x180349,_0x5c9a49){const _0x4ae3c4=a301_0xf221,_0x4129fe=_0x180349();while(!![]){try{const _0x35f84a=-parseInt(_0x4ae3c4(0x15a))/0x1*(parseInt(_0x4ae3c4(0x159))/0x2)+-parseInt(_0x4ae3c4(0x15b))/0x3*(-parseInt(_0x4ae3c4(0x153))/0x4)+-parseInt(_0x4ae3c4(0x154))/0x5*(-parseInt(_0x4ae3c4(0x152))/0x6)+parseInt(_0x4ae3c4(0x158))/0x7+-parseInt(_0x4ae3c4(0x156))/0x8+parseInt(_0x4ae3c4(0x157))/0x9*(-parseInt(_0x4ae3c4(0x151))/0xa)+parseInt(_0x4ae3c4(0x15c))/0xb;if(_0x35f84a===_0x5c9a49)break;else _0x4129fe['push'](_0x4129fe['shift']());}catch(_0x3a962a){_0x4129fe['push'](_0x4129fe['shift']());}}}(a301_0x3473,0x8afa3));import{createFlagHelpers}from'@lovrabet/cli-framework';function a301_0xf221(_0x12748a,_0x30ec36){_0x12748a=_0x12748a-0x151;const _0x3473cd=a301_0x3473();let _0xf2212a=_0x3473cd[_0x12748a];return _0xf2212a;}function a301_0x3473(){const _0x408701=['4543784QlogYa','387458FxBTlS','3lcnyCh','79818BEuPuC','705969MaWYTc','parseFlags','190lhAtQP','4080DUIWZP','136xOMcIz','5935OiMzJH','validateFlags','6393592YNrXYu','225198ovlTBc'];a301_0x3473=function(){return _0x408701;};return a301_0x3473();}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a301_0xa544df(0x15d)];export const validateFlags=helpers[a301_0xa544df(0x155)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x357b65,_0x243d02){const _0x1ec732=a302_0xf68a,_0x3c7999=_0x357b65();while(!![]){try{const _0x1b538f=parseInt(_0x1ec732(0x90))/0x1*(parseInt(_0x1ec732(0x7f))/0x2)+-parseInt(_0x1ec732(0x91))/0x3*(-parseInt(_0x1ec732(0x8f))/0x4)+-parseInt(_0x1ec732(0x80))/0x5+-parseInt(_0x1ec732(0x87))/0x6*(-parseInt(_0x1ec732(0x8a))/0x7)+parseInt(_0x1ec732(0x85))/0x8*(-parseInt(_0x1ec732(0x83))/0x9)+parseInt(_0x1ec732(0x8d))/0xa+parseInt(_0x1ec732(0x89))/0xb*(-parseInt(_0x1ec732(0x82))/0xc);if(_0x1b538f===_0x243d02)break;else _0x3c7999['push'](_0x3c7999['shift']());}catch(_0xf5fce0){_0x3c7999['push'](_0x3c7999['shift']());}}}(a302_0x49f2,0x69021));function a302_0x49f2(){const _0x1d9904=['7090CgWNTr','Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.','4oOduHD','207123kvmqHl','1489257XLOtRn','get','6tCcJQv','2333175gOtTKe','replace','468oLGTGm','2537469xFkBbu','\x20workspace\x20init`\x20or\x20--appcode).','24fvMixf','Requires\x20appcode\x20(set\x20via\x20`','66VoJLJv','generateFullHelp','38841mXsQNQ','484771vEMEmZ','\x20[args]\x20[flags]','Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.'];a302_0x49f2=function(){return _0x1d9904;};return a302_0x49f2();}import{createHelpGenerators}from'@lovrabet/cli-framework';function a302_0xf68a(_0x5a482a,_0x422121){_0x5a482a=_0x5a482a-0x7f;const _0x49f264=a302_0x49f2();let _0xf68af4=_0x49f264[_0x5a482a];return _0xf68af4;}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';function createGenerators(){const _0x1d7ff9=a302_0xf68a;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0xed39cd=>serviceGroups[_0x1d7ff9(0x92)](_0xed39cd),'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x1d7ff9(0x86)+CLI_BIN_NAME+_0x1d7ff9(0x84),'serviceUsageSuffix':_0x1d7ff9(0x8b)});}export function generateCommandHelp(_0x1c7964){const _0x1ac8f0=a302_0xf68a,_0x1f5819=createGenerators()['generateCommandHelp'](_0x1c7964);if(!requiresExplicitYes(_0x1c7964))return _0x1f5819;return _0x1f5819[_0x1ac8f0(0x81)](_0x1ac8f0(0x8c),_0x1ac8f0(0x8e));}export function generateServiceHelp(_0x2ffcde){return createGenerators()['generateServiceHelp'](_0x2ffcde);}export function generateFullHelp(){const _0x2b4058=a302_0xf68a;return createGenerators()[_0x2b4058(0x88)]();}
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4437fe,_0x19a45d){var _0x2e0090=a303_0x3a99,_0x4c7518=_0x4437fe();while(!![]){try{var _0x52c932=-parseInt(_0x2e0090(0x1f3))/0x1+parseInt(_0x2e0090(0x1f9))/0x2*(-parseInt(_0x2e0090(0x1f4))/0x3)+parseInt(_0x2e0090(0x1f7))/0x4+parseInt(_0x2e0090(0x1f6))/0x5*(-parseInt(_0x2e0090(0x1f2))/0x6)+-parseInt(_0x2e0090(0x1f1))/0x7+parseInt(_0x2e0090(0x1f8))/0x8+parseInt(_0x2e0090(0x1f5))/0x9;if(_0x52c932===_0x19a45d)break;else _0x4c7518['push'](_0x4c7518['shift']());}catch(_0x4807d5){_0x4c7518['push'](_0x4c7518['shift']());}}}(a303_0x4cd7,0x87995));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a303_0x3a99(_0x226d46,_0x2a3d07){_0x226d46=_0x226d46-0x1f1;var _0x4cd7cb=a303_0x4cd7();var _0x3a99d1=_0x4cd7cb[_0x226d46];return _0x3a99d1;}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';function a303_0x4cd7(){var _0x54a4f5=['927192TcEqwV','1375792XjVjpn','1746074JNnfpx','6414926NSJhIm','48252VrTkoo','596992lxnLiC','3EdIGCS','30731994MhoGGD','545rZnEXF'];a303_0x4cd7=function(){return _0x54a4f5;};return a303_0x4cd7();}
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2562fc,_0x3e15b1){const _0x4211a5=a304_0x1389,_0x5181d6=_0x2562fc();while(!![]){try{const _0x16c220=-parseInt(_0x4211a5(0xf7))/0x1+parseInt(_0x4211a5(0xe8))/0x2*(-parseInt(_0x4211a5(0xff))/0x3)+parseInt(_0x4211a5(0xec))/0x4+-parseInt(_0x4211a5(0xf2))/0x5*(-parseInt(_0x4211a5(0xee))/0x6)+-parseInt(_0x4211a5(0xe7))/0x7*(-parseInt(_0x4211a5(0xfc))/0x8)+-parseInt(_0x4211a5(0xed))/0x9*(-parseInt(_0x4211a5(0x100))/0xa)+-parseInt(_0x4211a5(0xef))/0xb*(parseInt(_0x4211a5(0xf0))/0xc);if(_0x16c220===_0x3e15b1)break;else _0x5181d6['push'](_0x5181d6['shift']());}catch(_0x5faebd){_0x5181d6['push'](_0x5181d6['shift']());}}}(a304_0x1ae4,0xa8c4b));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';function a304_0x1ae4(){const _0x1e1b8e=['hint','2815312xXJYvO','1373283gignQK','383166vLHFcP','11lfirmb','15686904vIRYYm','jqFilter','15QMEvkc','update','error','format','stringify','116307Ahyjcz','endsWith','command','jq:\x20','url','9871432mqwtwV','trim','write','3QQeHjq','10MiOIkg','pretty','json','message','7iiMSao','334206HOMhQH','validation','code'];a304_0x1ae4=function(){return _0x1e1b8e;};return a304_0x1ae4();}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x51dfc9,_0x379614){const _0x471889=a304_0x1389,_0x384184=_0x51dfc9['_notice'],{_notice:_0x295cf0,..._0x321c5c}=_0x51dfc9;void _0x295cf0,baseFormatOutput(_0x321c5c,_0x379614),_0x379614['format']===_0x471889(0x101)&&printPrettyNotice(_0x384184);}export function formatCliError(_0x28fb20,_0xa57cd0){const _0x402cb7=a304_0x1389;if(_0xa57cd0[_0x402cb7(0xf5)]==='pretty')return![];const _0x18cd92=_0x28fb20['data'],_0x593c86={'ok':![],'command':_0xa57cd0[_0x402cb7(0xf9)],'risk':_0xa57cd0['risk'],'data':_0x18cd92??null,'error':{'code':_0x28fb20[_0x402cb7(0xea)],'message':_0x28fb20[_0x402cb7(0xe6)],..._0x28fb20[_0x402cb7(0xeb)]?{'hint':_0x28fb20[_0x402cb7(0xeb)]}:{}}},_0x1fe561=_0xa57cd0['format']===_0x402cb7(0xe5)?JSON[_0x402cb7(0xf6)](_0x593c86,null,0x2):JSON[_0x402cb7(0xf6)](_0x593c86);let _0x3c8c2f=_0x1fe561;if(_0xa57cd0[_0x402cb7(0xf1)]?.[_0x402cb7(0xfd)]())try{_0x3c8c2f=applyJqFilter(_0x1fe561,_0xa57cd0[_0x402cb7(0xf1)]);}catch(_0x125813){const _0xbf20b2=_0x125813 instanceof CliError?_0x125813:CliErrors[_0x402cb7(0xe9)](_0x402cb7(0xfa)+(_0x125813 instanceof Error?_0x125813[_0x402cb7(0xe6)]:String(_0x125813))),_0x154f12={..._0x593c86,'error':{'code':_0xbf20b2[_0x402cb7(0xea)],'message':_0xbf20b2[_0x402cb7(0xe6)],..._0xbf20b2['hint']?{'hint':_0xbf20b2[_0x402cb7(0xeb)]}:{},'cause':_0x593c86['error']}};_0x3c8c2f=_0xa57cd0[_0x402cb7(0xf5)]===_0x402cb7(0xe5)?JSON[_0x402cb7(0xf6)](_0x154f12,null,0x2):JSON[_0x402cb7(0xf6)](_0x154f12);}return process['stdout'][_0x402cb7(0xfe)](_0x3c8c2f[_0x402cb7(0xf8)]('\x0a')?_0x3c8c2f:_0x3c8c2f+'\x0a'),!![];}function a304_0x1389(_0x2ef5fd,_0x2d0c63){_0x2ef5fd=_0x2ef5fd-0xe5;const _0x1ae493=a304_0x1ae4();let _0x1389aa=_0x1ae493[_0x2ef5fd];return _0x1389aa;}function printPrettyNotice(_0xb809da){const _0x9817f8=a304_0x1389;if(!_0xb809da?.[_0x9817f8(0xf3)])return;console[_0x9817f8(0xf4)](_0xb809da[_0x9817f8(0xf3)][_0x9817f8(0xe6)]+'\x20('+_0xb809da['update'][_0x9817f8(0xfb)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3e2b54,_0x32e996){var _0x28d8f3=a305_0x2c6f,_0x144bec=_0x3e2b54();while(!![]){try{var _0x2fcd91=parseInt(_0x28d8f3(0xca))/0x1*(parseInt(_0x28d8f3(0xcc))/0x2)+parseInt(_0x28d8f3(0xcd))/0x3+-parseInt(_0x28d8f3(0xc8))/0x4*(parseInt(_0x28d8f3(0xcb))/0x5)+parseInt(_0x28d8f3(0xc6))/0x6+parseInt(_0x28d8f3(0xc5))/0x7+parseInt(_0x28d8f3(0xc9))/0x8+-parseInt(_0x28d8f3(0xce))/0x9*(parseInt(_0x28d8f3(0xc7))/0xa);if(_0x2fcd91===_0x32e996)break;else _0x144bec['push'](_0x144bec['shift']());}catch(_0x3debd5){_0x144bec['push'](_0x144bec['shift']());}}}(a305_0x4961,0x74ea5));function a305_0x2c6f(_0x511126,_0x448d84){_0x511126=_0x511126-0xc5;var _0x4961ca=a305_0x4961();var _0x2c6fd7=_0x4961ca[_0x511126];return _0x2c6fd7;}export{extractList,extractPaging}from'@lovrabet/cli-framework';function a305_0x4961(){var _0x1cc8d4=['4682766qDYwPc','160GBnGSR','27164ntlUlG','4425280NiTDCt','4203qdgset','310PjXfsF','158aGGNvm','1881555JZrtZi','1213326gelOlO','5348756RXKwOS'];a305_0x4961=function(){return _0x1cc8d4;};return a305_0x4961();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x204c82,_0x4f5998){const _0x105add=a306_0xf16e,_0x55b3ae=_0x204c82();while(!![]){try{const _0x5a3006=-parseInt(_0x105add(0x19d))/0x1+parseInt(_0x105add(0x193))/0x2*(-parseInt(_0x105add(0x191))/0x3)+parseInt(_0x105add(0x199))/0x4*(parseInt(_0x105add(0x188))/0x5)+-parseInt(_0x105add(0x18d))/0x6*(parseInt(_0x105add(0x19f))/0x7)+parseInt(_0x105add(0x19b))/0x8*(parseInt(_0x105add(0x194))/0x9)+parseInt(_0x105add(0x18e))/0xa+parseInt(_0x105add(0x198))/0xb;if(_0x5a3006===_0x4f5998)break;else _0x55b3ae['push'](_0x55b3ae['shift']());}catch(_0x142473){_0x55b3ae['push'](_0x55b3ae['shift']());}}}(a306_0xa1c8,0x44b85));import{CliErrors}from'../errors.js';function a306_0xf16e(_0x4dc48c,_0x4d817f){_0x4dc48c=_0x4dc48c-0x187;const _0xa1c89f=a306_0xa1c8();let _0xf16e74=_0xa1c89f[_0x4dc48c];return _0xf16e74;}import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{resolveApiModelSource}from'../api/model-source.js';export function resolveAliasToCode(_0x2216ec,_0xf47c5,_0x35aac5,_0x455f5c,_0x4e393c,_0x45d582){const _0x4a7204=a306_0xf16e,_0x2d486b=_0x2216ec['flags']['some'](_0x1dc106=>_0x1dc106['name']==='code'&&_0x1dc106['type']===_0x4a7204(0x1a1)),_0x4a3a2d=_0x2216ec[_0x4a7204(0x18b)]['some'](_0x28de63=>_0x28de63[_0x4a7204(0x19c)]===_0x4a7204(0x19a)&&_0x28de63[_0x4a7204(0x19e)]==='string');if(!_0x2d486b||!_0x4a3a2d)return;const _0x1eb1b1=_0xf47c5[_0x4a7204(0x192)]?String(_0xf47c5[_0x4a7204(0x192)]):'',_0x1e503a=_0xf47c5[_0x4a7204(0x19a)]?String(_0xf47c5[_0x4a7204(0x19a)]):'';if(!_0x1eb1b1&&!_0x1e503a)throw CliErrors[_0x4a7204(0x189)]('`'+_0x455f5c+_0x4a7204(0x195));if(_0x1e503a&&!_0x1eb1b1){const _0x293912=resolveApiModelSource(_0x35aac5,_0x4e393c,_0x45d582),_0x17dcf4=resolveAlias(_0x35aac5,_0x1e503a,undefined,_0x293912[_0x4a7204(0x197)],_0x293912[_0x4a7204(0x187)]);if(!_0x17dcf4){const _0x1a08ad=listAliases(_0x35aac5,undefined,_0x293912['filePath'],_0x293912[_0x4a7204(0x187)])[_0x4a7204(0x18c)](_0x3febbf=>_0x3febbf[_0x4a7204(0x19a)]),_0xa25492=_0x1a08ad[_0x4a7204(0x196)]?'Available\x20aliases:\x20'+_0x1a08ad[_0x4a7204(0x1a0)](',\x20'):_0x4a7204(0x1a2)+_0x35aac5+_0x4a7204(0x18f)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors[_0x4a7204(0x189)](_0x4a7204(0x190)+_0x1e503a+_0x4a7204(0x18a)+_0xa25492);}_0xf47c5[_0x4a7204(0x192)]=_0x17dcf4;}}function a306_0xa1c8(){const _0x2e6af9=['.\x20Run\x20`','Unknown\x20alias\x20\x22','111YeFWRR','code','4362vYRoPC','54pFzoff','`\x20requires\x20either\x20--code\x20or\x20--alias.','length','filePath','7428421wCouPG','4aLXhxb','alias','536832ZsCknZ','name','534798JyUrtg','type','7sUmcYs','join','string','No\x20model\x20aliases\x20found\x20in\x20','profileName','972825RJrkFi','validation','\x22.\x20','flags','map','2920914gIMfXa','1112910GmhFQi'];a306_0xa1c8=function(){return _0x2e6af9;};return a306_0xa1c8();}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x48f20b,_0x35cb5e){const _0x242022=a307_0x4473,_0x4ed0a5=_0x48f20b();while(!![]){try{const _0x364ae9=-parseInt(_0x242022(0x154))/0x1*(parseInt(_0x242022(0x178))/0x2)+parseInt(_0x242022(0x140))/0x3*(parseInt(_0x242022(0x162))/0x4)+-parseInt(_0x242022(0x12c))/0x5*(parseInt(_0x242022(0x14d))/0x6)+-parseInt(_0x242022(0x166))/0x7*(-parseInt(_0x242022(0x16f))/0x8)+-parseInt(_0x242022(0x149))/0x9+parseInt(_0x242022(0x124))/0xa*(parseInt(_0x242022(0x125))/0xb)+-parseInt(_0x242022(0x177))/0xc*(-parseInt(_0x242022(0x12e))/0xd);if(_0x364ae9===_0x35cb5e)break;else _0x4ed0a5['push'](_0x4ed0a5['shift']());}catch(_0x20f355){_0x4ed0a5['push'](_0x4ed0a5['shift']());}}}(a307_0x2ee3,0x3a3e1));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';function a307_0x4473(_0x20d156,_0x267c06){_0x20d156=_0x20d156-0x124;const _0x2ee304=a307_0x2ee3();let _0x447334=_0x2ee304[_0x20d156];return _0x447334;}import{isNonInteractive as a307_0x16c093}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x2994d6){const _0x25944d=a307_0x4473;return typeof _0x2994d6===_0x25944d(0x17b)&&_0x2994d6[_0x25944d(0x163)]()?_0x2994d6[_0x25944d(0x163)]():undefined;}function resolveEnvAppCode(){const _0x292eb1=a307_0x4473,_0xd6a1ad=stringFlag(process.env.RABETBASE_APPCODE);if(_0xd6a1ad)return{'name':_0x292eb1(0x17a),'value':_0xd6a1ad};const _0x103120=stringFlag(process.env.LOVRABET_APPCODE);if(_0x103120)return{'name':_0x292eb1(0x146),'value':_0x103120};return undefined;}function hasExplicitAppCode(_0x580229,_0x301840){const _0x2f0eb7=a307_0x4473;return!!(stringFlag(_0x580229[_0x2f0eb7(0x139)])||stringFlag(_0x301840['appcode']));}function assertEnvAppCodeNotIgnored(_0x1fa75f,_0x5c091e,_0x3f32f1){const _0x3be3d7=a307_0x4473;if(!_0x5c091e||_0x3f32f1||_0x1fa75f===_0x5c091e[_0x3be3d7(0x15c)])return;const _0x39e93c=_0x1fa75f?_0x3be3d7(0x160)+_0x1fa75f+'\x22.':_0x3be3d7(0x15f);throw CliErrors[_0x3be3d7(0x153)](_0x5c091e[_0x3be3d7(0x128)]+'='+_0x5c091e['value']+_0x3be3d7(0x159)+_0x39e93c+'\x20'+('To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$'+_0x5c091e[_0x3be3d7(0x128)]+'\x22.'));}export function createPipelineEnv(_0x81c604,_0x32d53e,_0x2c785a=[]){const _0xc4443a=a307_0x4473;return{'rawFlags':_0x32d53e,'args':_0x2c785a,'resolveAppCode':()=>_0x81c604[_0xc4443a(0x145)],'resolveCookie':()=>_0x81c604[_0xc4443a(0x134)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a307_0x16c093(_0x32d53e),'defaultFormat':_0x81c604[_0xc4443a(0x155)],'defaultPageSize':_0x81c604['pageSize'],'defaultVerbose':_0x81c604[_0xc4443a(0x172)],'apiDir':_0x81c604[_0xc4443a(0x157)],'riskLevel':_0x81c604[_0xc4443a(0x16e)],'selectedAppName':_0x81c604['explicitAppName'],'mergedCli':{'defaultApp':_0x81c604[_0xc4443a(0x13d)],'currentApp':_0x81c604[_0xc4443a(0x176)],'appCode':_0x81c604[_0xc4443a(0x145)],'apps':_0x81c604['apps']}};}export function createRabetbaseRunnerAdapter(_0x448c88={}){const _0x2399b3=a307_0x4473;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x3b3e82=>PIPELINE_FLAG_NAMES['has'](_0x3b3e82[_0x2399b3(0x128)]))['map'](({name:_0x1c6109,type:_0xaec9a4,description:_0x2e8e59})=>({'name':_0x1c6109,'type':_0xaec9a4,'description':_0x2e8e59})),'formatOutput':_0x448c88[_0x2399b3(0x12b)]??formatOutput,'getCommandLabel'(_0x10ed9f){const _0x12c042=_0x2399b3;return CLI_BIN_NAME+'\x20'+_0x10ed9f[_0x12c042(0x171)]+'\x20'+_0x10ed9f['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x59c77c,{def:_0x22c52b}){const _0x3c25be=_0x2399b3,_0x309019=_0x59c77c['includes']('Edit\x20the\x20config\x20file\x20manually')?_0x3c25be(0x14a):'A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22'+_0x22c52b[_0x3c25be(0x165)]+_0x3c25be(0x175)+_0x3c25be(0x14a);return CliErrors[_0x3c25be(0x153)](_0x59c77c+'\x0a\x20\x20'+_0x309019);}},async 'prepare'(_0x3168be,_0x380108,_0x2e64bc,_0x52d341){const _0x4f84ef=_0x2399b3,_0x2581f9=_0x380108[_0x4f84ef(0x157)]||DEFAULT_API_DIR,_0x11939c=hasExplicitAppCode(_0x2e64bc,_0x380108['rawFlags']),_0x3f967c=stringFlag(_0x2e64bc[_0x4f84ef(0x139)])||stringFlag(_0x380108[_0x4f84ef(0x13b)][_0x4f84ef(0x139)]),_0x5c0d30=_0x380108[_0x4f84ef(0x150)]?.[_0x4f84ef(0x14f)]??{},_0x3402d7=_0x380108['selectedAppName']||_0x380108['mergedCli']?.[_0x4f84ef(0x176)]||_0x380108[_0x4f84ef(0x150)]?.[_0x4f84ef(0x13d)],_0x4c54e1=_0x3f967c?Object['entries'](_0x5c0d30)[_0x4f84ef(0x13a)](([,_0x1b0ad7])=>_0x1b0ad7[_0x4f84ef(0x139)]===_0x3f967c)[_0x4f84ef(0x131)](([_0x4658ed])=>_0x4658ed):[];if(_0x4c54e1[_0x4f84ef(0x129)]>0x1&&!_0x380108['selectedAppName'])throw CliErrors[_0x4f84ef(0x153)](_0x4f84ef(0x14e)+_0x3f967c+_0x4f84ef(0x141)+_0x4c54e1[_0x4f84ef(0x16d)](',\x20')+'.',_0x4f84ef(0x168));resolveAliasToCode(_0x3168be,_0x2e64bc,_0x2581f9,_0x52d341,_0x380108['resolveAppCode'](),_0x3402d7);const _0x1094b7=resolveCommandAuthMode(_0x3168be);let _0x27c7f6='';if(_0x1094b7!=='none'){_0x27c7f6=_0x380108[_0x4f84ef(0x130)]()||'';if(!_0x27c7f6){if(_0x1094b7===_0x4f84ef(0x158))throw CliErrors[_0x4f84ef(0x147)]();}else{const {setActiveCookie:_0x38a318}=await import(_0x4f84ef(0x152));_0x38a318(_0x27c7f6);}}const _0x359be4=_0x380108['resolveAppCode']()??'';if(_0x3168be[_0x4f84ef(0x16c)]!==![]){if(!_0x11939c&&_0x3402d7&&!_0x5c0d30[_0x3402d7]){const _0x21120c=Object[_0x4f84ef(0x13e)](_0x5c0d30);throw CliErrors[_0x4f84ef(0x153)]('App\x20\x22'+_0x3402d7+'\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.',_0x21120c[_0x4f84ef(0x129)]>0x0?_0x4f84ef(0x13f)+_0x21120c['join'](',\x20')+_0x4f84ef(0x127)+CLI_BIN_NAME+'\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.':'Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x4f84ef(0x15d));}assertEnvAppCodeNotIgnored(_0x359be4,resolveEnvAppCode(),_0x11939c);if(!_0x359be4){const _0x3401ee=Object[_0x4f84ef(0x13e)](_0x5c0d30);if(!_0x3402d7&&_0x3401ee['length']>0x1)throw CliErrors['configMissing']('Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`'+CLI_BIN_NAME+_0x4f84ef(0x16a)+_0x3401ee[_0x4f84ef(0x16d)](',\x20')+'.');throw CliErrors[_0x4f84ef(0x17c)](_0x4f84ef(0x136)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}}return{'defaults':{'booleans':{'verbose':_0x380108[_0x4f84ef(0x137)]},'numbers':{'pagesize':_0x380108[_0x4f84ef(0x14c)]}},'extras':{'appCode':_0x359be4,'cookie':_0x27c7f6,'apiDomain':_0x380108[_0x4f84ef(0x126)](),'apiDir':_0x2581f9,'selectedAppName':_0x380108[_0x4f84ef(0x14b)],'mergedCli':_0x380108[_0x4f84ef(0x150)]}};},'confirmHighRisk':_0x448c88[_0x2399b3(0x143)]??(async({env:_0x273f4a,commandLabel:_0x20f2f7})=>{const _0x1970c8=_0x2399b3;if(_0x273f4a[_0x1970c8(0x15a)])throw CliErrors[_0x1970c8(0x153)](_0x1970c8(0x156)+_0x20f2f7+_0x1970c8(0x169));await requireConfirmationPrompt({'lines':[_0x1970c8(0x144)+_0x20f2f7,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x3abb9d=>CliErrors[_0x1970c8(0x12a)](_0x3abb9d)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x15ac28=a307_0x4473,{clearActiveCookie:_0x24d9cc}=await import(_0x15ac28(0x152));_0x24d9cc();}export async function finalizeRabetbaseRuntimeState(){const _0x451e5f=a307_0x4473;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x2edbec},{initEnv:_0x4da25d}]=await Promise[_0x451e5f(0x133)]([import(_0x451e5f(0x173)),import(_0x451e5f(0x132))]);_0x2edbec(),_0x4da25d(_0x451e5f(0x138));}}export async function runCommand(_0x231483,_0x52985b,_0x4dad16=terminalRunnerAdapter){assertRejectedFlags(_0x231483,_0x52985b['rawFlags']),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x231483)?withUpdateNotice(_0x231483):_0x231483,_0x52985b,_0x4dad16);}function assertRejectedFlags(_0x2daf1c,_0x5a9749){const _0x42bb65=a307_0x4473;for(const _0x1d7f46 of _0x2daf1c[_0x42bb65(0x164)]??[]){const _0xda01a3=GLOBAL_FLAGS['find'](_0x5c22ed=>_0x5c22ed[_0x42bb65(0x128)]===_0x1d7f46[_0x42bb65(0x128)]),_0xebeab3=new Set([_0x1d7f46[_0x42bb65(0x128)],toCamelCase(_0x1d7f46[_0x42bb65(0x128)]),_0xda01a3?.[_0x42bb65(0x13c)]]),_0x49bc32=[..._0xebeab3][_0x42bb65(0x151)](_0x268890=>{if(!_0x268890)return![];const _0x1efa06=_0x5a9749[_0x268890];return _0x1efa06!==undefined&&_0x1efa06!==null&&_0x1efa06!==![];});if(_0x49bc32)throw CliErrors[_0x42bb65(0x153)](_0x1d7f46[_0x42bb65(0x12f)],_0x1d7f46[_0x42bb65(0x12d)]);}}function toCamelCase(_0x3e9109){const _0x5d590f=a307_0x4473;return _0x3e9109['replace'](/-([a-z])/g,(_0x4d959a,_0x1bee56)=>_0x1bee56[_0x5d590f(0x15e)]());}function shouldAttachUpdateNotice(_0xd1819d){const _0x4f12f5=a307_0x4473;if(_0xd1819d[_0x4f12f5(0x167)]===![])return![];return![_0x4f12f5(0x174),'schema',_0x4f12f5(0x148)][_0x4f12f5(0x15b)](_0xd1819d[_0x4f12f5(0x171)]);}function a307_0x2ee3(){const _0x21fda8=['130tPWuDe','object','RABETBASE_APPCODE','string','configMissing','40xeDywk','331309VYyDRH','resolveApiDomain','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','name','length','cancelled','formatOutput','1481055ATtVMs','hint','5447vrWPpi','message','resolveCookie','map','../constant/env.js','all','cookie','pretty','Set\x20appcode\x20via\x20`','defaultVerbose','production','appcode','filter','rawFlags','meowKey','defaultApp','keys','Available:\x20','12HDcBfO','\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20','nonInteractive','confirmHighRisk','⚠\x20\x20High-risk\x20operation:\x20','appCode','LOVRABET_APPCODE','authRequired','doctor','4269906mnaKxC','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','selectedAppName','defaultPageSize','6neaXed','AppCode\x20\x22','apps','mergedCli','some','../core/api-client.js','validation','3499ZgrMLI','format','High-risk\x20operation\x20`','apiDir','required','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','isNonInteractive','includes','value','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','toUpperCase','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','Current\x20resolved\x20appcode\x20is\x20\x22','resolve','148612ffAARs','trim','rejectedFlags','risk','161BReWWB','hasFormat','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','_notice','requiresAppCode','join','riskLevel','131048ijmTPS','catch','service','verbose','../constant/domain.js','update','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','currentApp','16920tPXyhJ'];a307_0x2ee3=function(){return _0x21fda8;};return a307_0x2ee3();}function withUpdateNotice(_0x479362){return{..._0x479362,async 'execute'(_0x4ae37b){const _0xc0933f=a307_0x4473,_0x28999f=shouldResolveUpdateNotice(_0x4ae37b)?resolveLatestUpdateNotice()[_0xc0933f(0x170)](()=>null):Promise[_0xc0933f(0x161)](null),_0x132b95=await _0x479362['execute'](_0x4ae37b);return attachUpdateNotice(_0x132b95,await _0x28999f);}};}function shouldResolveUpdateNotice(_0x15c1df){const _0x36c74a=a307_0x4473;return _0x15c1df[_0x36c74a(0x155)]===_0x36c74a(0x135)&&!_0x15c1df[_0x36c74a(0x142)];}function attachUpdateNotice(_0x2d0d62,_0x54392c){const _0x1347dc=a307_0x4473;if(!_0x54392c||!_0x2d0d62||typeof _0x2d0d62!==_0x1347dc(0x179))return _0x2d0d62;const _0x8e699c=_0x2d0d62,_0x4358a7=typeof _0x8e699c[_0x1347dc(0x16b)]==='object'&&_0x8e699c[_0x1347dc(0x16b)]!==null?_0x8e699c[_0x1347dc(0x16b)]:{};return{..._0x8e699c,'_notice':{..._0x4358a7,'update':_0x54392c}};}
|
|
1
|
+
(function(_0x2fe19b,_0x5b7f76){const _0x2b5aa1=a307_0x6595,_0x23d5bd=_0x2fe19b();while(!![]){try{const _0x253e30=-parseInt(_0x2b5aa1(0x1f1))/0x1*(-parseInt(_0x2b5aa1(0x20f))/0x2)+parseInt(_0x2b5aa1(0x1db))/0x3*(parseInt(_0x2b5aa1(0x1d1))/0x4)+-parseInt(_0x2b5aa1(0x208))/0x5*(parseInt(_0x2b5aa1(0x1c5))/0x6)+-parseInt(_0x2b5aa1(0x1bc))/0x7+parseInt(_0x2b5aa1(0x1c3))/0x8+-parseInt(_0x2b5aa1(0x210))/0x9+parseInt(_0x2b5aa1(0x1ef))/0xa*(parseInt(_0x2b5aa1(0x1fe))/0xb);if(_0x253e30===_0x5b7f76)break;else _0x23d5bd['push'](_0x23d5bd['shift']());}catch(_0x36adcb){_0x23d5bd['push'](_0x23d5bd['shift']());}}}(a307_0x1952,0x805ba));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';function a307_0x6595(_0x56b0a2,_0x147a0e){_0x56b0a2=_0x56b0a2-0x1b7;const _0x195232=a307_0x1952();let _0x659560=_0x195232[_0x56b0a2];return _0x659560;}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 a307_0x3c3373}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x4d5ede){const _0x23a279=a307_0x6595;return typeof _0x4d5ede===_0x23a279(0x1f2)&&_0x4d5ede[_0x23a279(0x1e9)]()?_0x4d5ede['trim']():undefined;}function resolveEnvAppCode(){const _0x44c6f5=a307_0x6595,_0x2c290b=stringFlag(process.env.RABETBASE_APPCODE);if(_0x2c290b)return{'name':_0x44c6f5(0x1bf),'value':_0x2c290b};const _0x39fe69=stringFlag(process.env.LOVRABET_APPCODE);if(_0x39fe69)return{'name':_0x44c6f5(0x1bd),'value':_0x39fe69};return undefined;}function a307_0x1952(){const _0xb1b751=['\x0a\x20\x20','High-risk\x20operation\x20`','risk','entries','Set\x20appcode\x20via\x20`','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','947441WDoURd','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','object','defaultPageSize','selectedAppName','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','pageSize','keys','apps','nonInteractive','1120870KZqxfe','required','replace','toUpperCase','all','name','appcode','489170hPxZjg','3362409tGSoyu','command','../constant/env.js','hasFormat','none','riskLevel','defaultVerbose','length','includes','4869074PvkWLE','LOVRABET_APPCODE','schema','RABETBASE_APPCODE','service','appCode','isNonInteractive','5230808OhufSR','Edit\x20the\x20config\x20file\x20manually','24SDYzde','\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20','cookie','map','find','explicitAppName','rawFlags','message','confirmHighRisk','apiDir','filter','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','4gaWYyN','doctor','defaultApp','../constant/domain.js','update','value','some','join','resolveAppCode','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','128517urjVkF','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','mergedCli','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','verbose','hint','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','App\x20\x22','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','currentApp','catch','requiresAppCode','has','trim','cancelled','authRequired','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','_notice','180TfMXTZ','execute','1cWZPQA','string','validation','AppCode\x20\x22','production','formatOutput','meowKey'];a307_0x1952=function(){return _0xb1b751;};return a307_0x1952();}function hasExplicitAppCode(_0x182599,_0xf1bfe3){const _0x123c9a=a307_0x6595;return!!(stringFlag(_0x182599['appcode'])||stringFlag(_0xf1bfe3[_0x123c9a(0x20e)]));}function assertEnvAppCodeNotIgnored(_0x555ca6,_0xa23268,_0xd2099f){const _0x51af0f=a307_0x6595;if(!_0xa23268||_0xd2099f||_0x555ca6===_0xa23268[_0x51af0f(0x1d6)])return;const _0x3eb80d=_0x555ca6?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0x555ca6+'\x22.':_0x51af0f(0x1da);throw CliErrors[_0x51af0f(0x1f3)](_0xa23268['name']+'='+_0xa23268[_0x51af0f(0x1d6)]+_0x51af0f(0x1fd)+_0x3eb80d+'\x20'+(_0x51af0f(0x1ed)+_0xa23268[_0x51af0f(0x20d)]+'\x22.'));}export function createPipelineEnv(_0x5dbd27,_0x5e4508,_0x1f6c53=[]){const _0x39afd9=a307_0x6595;return{'rawFlags':_0x5e4508,'args':_0x1f6c53,'resolveAppCode':()=>_0x5dbd27[_0x39afd9(0x1c1)],'resolveCookie':()=>_0x5dbd27[_0x39afd9(0x1c7)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a307_0x3c3373(_0x5e4508),'defaultFormat':_0x5dbd27['format'],'defaultPageSize':_0x5dbd27[_0x39afd9(0x204)],'defaultVerbose':_0x5dbd27[_0x39afd9(0x1e0)],'apiDir':_0x5dbd27[_0x39afd9(0x1ce)],'riskLevel':_0x5dbd27[_0x39afd9(0x1b8)],'selectedAppName':_0x5dbd27[_0x39afd9(0x1ca)],'mergedCli':{'defaultApp':_0x5dbd27[_0x39afd9(0x1d3)],'currentApp':_0x5dbd27['currentApp'],'appCode':_0x5dbd27[_0x39afd9(0x1c1)],'apps':_0x5dbd27[_0x39afd9(0x206)]}};}export function createRabetbaseRunnerAdapter(_0x10b0b8={}){const _0x4a77ec=a307_0x6595;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x4cdb3d=>PIPELINE_FLAG_NAMES[_0x4a77ec(0x1e8)](_0x4cdb3d['name']))[_0x4a77ec(0x1c8)](({name:_0x23cf30,type:_0x32d61b,description:_0x30f3dd})=>({'name':_0x23cf30,'type':_0x32d61b,'description':_0x30f3dd})),'formatOutput':_0x10b0b8[_0x4a77ec(0x1f6)]??formatOutput,'getCommandLabel'(_0x3b1dd2){const _0x6675ff=_0x4a77ec;return CLI_BIN_NAME+'\x20'+_0x3b1dd2[_0x6675ff(0x1c0)]+'\x20'+_0x3b1dd2[_0x6675ff(0x211)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x48f377,{def:_0x3eed86}){const _0x42a23f=_0x4a77ec,_0x527369=_0x48f377[_0x42a23f(0x1bb)](_0x42a23f(0x1c4))?'AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.':_0x42a23f(0x1e2)+_0x3eed86[_0x42a23f(0x1fa)]+_0x42a23f(0x1e4)+_0x42a23f(0x1ec);return CliErrors[_0x42a23f(0x1f3)](_0x48f377+_0x42a23f(0x1f8)+_0x527369);}},async 'prepare'(_0x2f20ad,_0x38e560,_0x2eecc1,_0x246a27){const _0x3a25fa=_0x4a77ec,_0x72417a=_0x38e560[_0x3a25fa(0x1ce)]||DEFAULT_API_DIR,_0x632bc2=hasExplicitAppCode(_0x2eecc1,_0x38e560[_0x3a25fa(0x1cb)]),_0x3ac4ae=stringFlag(_0x2eecc1[_0x3a25fa(0x20e)])||stringFlag(_0x38e560[_0x3a25fa(0x1cb)]['appcode']),_0x4e5b2f=_0x38e560[_0x3a25fa(0x1de)]?.[_0x3a25fa(0x206)]??{},_0x2bd915=_0x38e560['selectedAppName']||_0x38e560[_0x3a25fa(0x1de)]?.[_0x3a25fa(0x1e5)]||_0x38e560[_0x3a25fa(0x1de)]?.[_0x3a25fa(0x1d3)],_0x46be07=_0x3ac4ae?Object[_0x3a25fa(0x1fb)](_0x4e5b2f)[_0x3a25fa(0x1cf)](([,_0x2d4727])=>_0x2d4727[_0x3a25fa(0x20e)]===_0x3ac4ae)['map'](([_0x1cf32f])=>_0x1cf32f):[];if(_0x46be07[_0x3a25fa(0x1ba)]>0x1&&!_0x38e560[_0x3a25fa(0x202)])throw CliErrors[_0x3a25fa(0x1f3)](_0x3a25fa(0x1f4)+_0x3ac4ae+_0x3a25fa(0x1c6)+_0x46be07['join'](',\x20')+'.',_0x3a25fa(0x1dc));resolveAliasToCode(_0x2f20ad,_0x2eecc1,_0x72417a,_0x246a27,_0x38e560['resolveAppCode'](),_0x2bd915);const _0x565a60=resolveCommandAuthMode(_0x2f20ad);let _0x3b4e46='';if(_0x565a60!==_0x3a25fa(0x1b7)){_0x3b4e46=_0x38e560['resolveCookie']()||'';if(!_0x3b4e46){if(_0x565a60===_0x3a25fa(0x209))throw CliErrors[_0x3a25fa(0x1eb)]();}else{const {setActiveCookie:_0x5729ed}=await import('../core/api-client.js');_0x5729ed(_0x3b4e46);}}const _0x557d28=_0x38e560[_0x3a25fa(0x1d9)]()??'';if(_0x2f20ad[_0x3a25fa(0x1e7)]!==![]){if(!_0x632bc2&&_0x2bd915&&!_0x4e5b2f[_0x2bd915]){const _0x47d811=Object['keys'](_0x4e5b2f);throw CliErrors['validation'](_0x3a25fa(0x1e3)+_0x2bd915+'\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.',_0x47d811[_0x3a25fa(0x1ba)]>0x0?'Available:\x20'+_0x47d811['join'](',\x20')+_0x3a25fa(0x1dd)+CLI_BIN_NAME+'\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.':_0x3a25fa(0x1d0)+CLI_BIN_NAME+_0x3a25fa(0x203));}assertEnvAppCodeNotIgnored(_0x557d28,resolveEnvAppCode(),_0x632bc2);if(!_0x557d28){const _0x3516e5=Object[_0x3a25fa(0x205)](_0x4e5b2f);if(!_0x2bd915&&_0x3516e5[_0x3a25fa(0x1ba)]>0x1)throw CliErrors['configMissing']('Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`'+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20'+_0x3516e5[_0x3a25fa(0x1d8)](',\x20')+'.');throw CliErrors['configMissing'](_0x3a25fa(0x1fc)+CLI_BIN_NAME+_0x3a25fa(0x1ff));}}return{'defaults':{'booleans':{'verbose':_0x38e560[_0x3a25fa(0x1b9)]},'numbers':{'pagesize':_0x38e560[_0x3a25fa(0x201)]}},'extras':{'appCode':_0x557d28,'cookie':_0x3b4e46,'apiDomain':_0x38e560['resolveApiDomain'](),'apiDir':_0x72417a,'selectedAppName':_0x38e560[_0x3a25fa(0x202)],'mergedCli':_0x38e560[_0x3a25fa(0x1de)]}};},'confirmHighRisk':_0x10b0b8[_0x4a77ec(0x1cd)]??(async({env:_0x2505fc,commandLabel:_0x22e2b6})=>{const _0x256aff=_0x4a77ec;if(_0x2505fc[_0x256aff(0x1c2)])throw CliErrors['validation'](_0x256aff(0x1f9)+_0x22e2b6+_0x256aff(0x1df));await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x22e2b6,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x554d74=>CliErrors[_0x256aff(0x1ea)](_0x554d74)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const {clearActiveCookie:_0x2f0530}=await import('../core/api-client.js');_0x2f0530();}export async function finalizeRabetbaseRuntimeState(){const _0x1bfd77=a307_0x6595;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x292efa},{initEnv:_0x37e33f}]=await Promise[_0x1bfd77(0x20c)]([import(_0x1bfd77(0x1d4)),import(_0x1bfd77(0x212))]);_0x292efa(),_0x37e33f(_0x1bfd77(0x1f5));}}export async function runCommand(_0x88b3c8,_0x4ff4d,_0x213090=terminalRunnerAdapter){const _0x24154f=a307_0x6595;assertRejectedFlags(_0x88b3c8,_0x4ff4d[_0x24154f(0x1cb)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x88b3c8)?withUpdateNotice(_0x88b3c8):_0x88b3c8,_0x4ff4d,_0x213090);}function assertRejectedFlags(_0x51988f,_0xb4b668){const _0x564983=a307_0x6595;for(const _0x475a58 of _0x51988f['rejectedFlags']??[]){const _0x30091f=GLOBAL_FLAGS[_0x564983(0x1c9)](_0x209c5f=>_0x209c5f[_0x564983(0x20d)]===_0x475a58[_0x564983(0x20d)]),_0x4afed0=new Set([_0x475a58[_0x564983(0x20d)],toCamelCase(_0x475a58[_0x564983(0x20d)]),_0x30091f?.[_0x564983(0x1f7)]]),_0x14bfae=[..._0x4afed0][_0x564983(0x1d7)](_0x5ce584=>{if(!_0x5ce584)return![];const _0x5a0a8d=_0xb4b668[_0x5ce584];return _0x5a0a8d!==undefined&&_0x5a0a8d!==null&&_0x5a0a8d!==![];});if(_0x14bfae)throw CliErrors[_0x564983(0x1f3)](_0x475a58[_0x564983(0x1cc)],_0x475a58[_0x564983(0x1e1)]);}}function toCamelCase(_0x475207){const _0x41855a=a307_0x6595;return _0x475207[_0x41855a(0x20a)](/-([a-z])/g,(_0x3749f5,_0x1fcec3)=>_0x1fcec3[_0x41855a(0x20b)]());}function shouldAttachUpdateNotice(_0x3bf941){const _0xb0eb70=a307_0x6595;if(_0x3bf941[_0xb0eb70(0x213)]===![])return![];return![_0xb0eb70(0x1d5),_0xb0eb70(0x1be),_0xb0eb70(0x1d2)][_0xb0eb70(0x1bb)](_0x3bf941[_0xb0eb70(0x1c0)]);}function withUpdateNotice(_0x16d4ba){return{..._0x16d4ba,async 'execute'(_0x274442){const _0x54bb54=a307_0x6595,_0x5b3762=shouldResolveUpdateNotice(_0x274442)?resolveLatestUpdateNotice()[_0x54bb54(0x1e6)](()=>null):Promise['resolve'](null),_0x1a2e55=await _0x16d4ba[_0x54bb54(0x1f0)](_0x274442);return attachUpdateNotice(_0x1a2e55,await _0x5b3762);}};}function shouldResolveUpdateNotice(_0x18daa0){const _0x23da2a=a307_0x6595;return _0x18daa0['format']==='pretty'&&!_0x18daa0[_0x23da2a(0x207)];}function attachUpdateNotice(_0x627e24,_0x40ed13){const _0x3a4a66=a307_0x6595;if(!_0x40ed13||!_0x627e24||typeof _0x627e24!==_0x3a4a66(0x200))return _0x627e24;const _0x7ba7cd=_0x627e24,_0x317d4e=typeof _0x7ba7cd[_0x3a4a66(0x1ee)]===_0x3a4a66(0x200)&&_0x7ba7cd['_notice']!==null?_0x7ba7cd[_0x3a4a66(0x1ee)]:{};return{..._0x7ba7cd,'_notice':{..._0x317d4e,'update':_0x40ed13}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1f1f52,_0x5c1e42){const _0x3e8688=a308_0x15d2,_0x38b763=_0x1f1f52();while(!![]){try{const _0x599587=-parseInt(_0x3e8688(0x192))/0x1*(-parseInt(_0x3e8688(0x191))/0x2)+parseInt(_0x3e8688(0x195))/0x3+-parseInt(_0x3e8688(0x193))/0x4+-parseInt(_0x3e8688(0x190))/0x5+-parseInt(_0x3e8688(0x197))/0x6+parseInt(_0x3e8688(0x198))/0x7+parseInt(_0x3e8688(0x194))/0x8;if(_0x599587===_0x5c1e42)break;else _0x38b763['push'](_0x38b763['shift']());}catch(_0x335162){_0x38b763['push'](_0x38b763['shift']());}}}(a308_0x4e8f,0xc1769));import{buildSchemaPayload as a308_0xcccc18}from'@lovrabet/cli-framework';function a308_0x4e8f(){const _0x27896f=['1094880ffDwxQ','591920RWVSHr','3321040hkVecB','1685234iRQrBH','1rDCazM','4531940nkzKBi','12795656EBlLnt','736392YSllAV','../commands/registry.js'];a308_0x4e8f=function(){return _0x27896f;};return a308_0x4e8f();}import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a308_0x15d2(_0x2b9edb,_0x25033d){_0x2b9edb=_0x2b9edb-0x190;const _0x4e8f82=a308_0x4e8f();let _0x15d250=_0x4e8f82[_0x2b9edb];return _0x15d250;}import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x4c80a7=a308_0x15d2,{serviceRegistry:_0x1cb725,findDefinition:_0x189a95}=await import(_0x4c80a7(0x196));return a308_0xcccc18({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x1cb725,'buildAllFlags':buildAllFlags,'findDefinition':_0x189a95});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x58a0aa,_0x28304f){const _0x2c8218=a309_0x41e8,_0x23b986=_0x58a0aa();while(!![]){try{const _0x37beed=-parseInt(_0x2c8218(0x77))/0x1+parseInt(_0x2c8218(0x7f))/0x2*(parseInt(_0x2c8218(0x73))/0x3)+-parseInt(_0x2c8218(0x76))/0x4+parseInt(_0x2c8218(0x7a))/0x5*(-parseInt(_0x2c8218(0x91))/0x6)+-parseInt(_0x2c8218(0x8c))/0x7*(parseInt(_0x2c8218(0x90))/0x8)+-parseInt(_0x2c8218(0x80))/0x9+parseInt(_0x2c8218(0x79))/0xa;if(_0x37beed===_0x28304f)break;else _0x23b986['push'](_0x23b986['shift']());}catch(_0x2daff1){_0x23b986['push'](_0x23b986['shift']());}}}(a309_0x47e4,0x4fac2));function a309_0x41e8(_0x437feb,_0x43b1f7){_0x437feb=_0x437feb-0x71;const _0x47e403=a309_0x47e4();let _0x41e8f5=_0x47e403[_0x437feb];return _0x41e8f5;}import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function assertSupportedCommandFlags(_0xa7f6fd,_0x1f480d){const _0x4959ff=a309_0x41e8;if(!_0xa7f6fd[_0x4959ff(0x82)])return;const _0x2d2993=new Set([_0x4959ff(0x7e),_0x4959ff(0x7c)]),_0x2e99f5=GLOBAL_FLAGS['filter'](_0x1bbd21=>PIPELINE_FLAG_NAMES[_0x4959ff(0x84)](_0x1bbd21[_0x4959ff(0x8d)]));for(const _0x92f8b8 of[..._0xa7f6fd[_0x4959ff(0x8f)],..._0x2e99f5]){addFlagCandidates(_0x2d2993,_0x92f8b8);}for(const [_0x47ceb9,_0x27eec2]of Object[_0x4959ff(0x71)](_0x1f480d)){if(!isExplicitValue(_0x27eec2)||_0x2d2993[_0x4959ff(0x84)](_0x47ceb9))continue;const _0x1b53bc=GLOBAL_FLAGS[_0x4959ff(0x86)](_0x224287=>_0x224287[_0x4959ff(0x72)]===_0x47ceb9)?.[_0x4959ff(0x8d)]??toKebabCase(_0x47ceb9);throw CliErrors[_0x4959ff(0x8b)](_0x4959ff(0x74)+_0x1b53bc+_0x4959ff(0x81)+CLI_BIN_NAME+'\x20'+_0xa7f6fd[_0x4959ff(0x89)]+'\x20'+_0xa7f6fd[_0x4959ff(0x8a)]+'`.',_0x4959ff(0x7b)+CLI_BIN_NAME+'\x20'+_0xa7f6fd['service']+'\x20'+_0xa7f6fd[_0x4959ff(0x8a)]+_0x4959ff(0x85));}}function a309_0x47e4(){const _0x4b3c26=['519832GFWttj','193193RVnkKi','alias','12115480xlnIAn','30ZUfxzA','Run\x20`','version','isArray','help','368786DeyrSQ','1706814rYegqZ','\x20for\x20`','strictFlags','toUpperCase','has','\x20--help`\x20to\x20view\x20the\x20current\x20command\x20contract.','find','replace','$1-$2','service','command','validation','318556uZXUEF','name','add','flags','72qhekxZ','147234iaCaWO','entries','meowKey','3tUVUVl','Unsupported\x20flag\x20--','length'];a309_0x47e4=function(){return _0x4b3c26;};return a309_0x47e4();}function addFlagCandidates(_0x4546d8,_0x462b0e){const _0x233224=a309_0x41e8,_0x4ba227=_0x233224(0x72)in _0x462b0e?[_0x462b0e[_0x233224(0x8d)],_0x462b0e[_0x233224(0x72)]]:[_0x462b0e['name'],_0x462b0e[_0x233224(0x78)]];for(const _0x133912 of _0x4ba227){if(!_0x133912)continue;_0x4546d8[_0x233224(0x8e)](_0x133912),_0x4546d8['add'](toCamelCase(_0x133912));}}function isExplicitValue(_0x2e0f61){const _0x4392a8=a309_0x41e8;return _0x2e0f61!==undefined&&_0x2e0f61!==null&&_0x2e0f61!==![]&&(!Array[_0x4392a8(0x7d)](_0x2e0f61)||_0x2e0f61[_0x4392a8(0x75)]>0x0);}function toCamelCase(_0x442b4b){const _0xea88de=a309_0x41e8;return _0x442b4b[_0xea88de(0x87)](/-([a-z])/g,(_0x4cd3bb,_0x276d32)=>_0x276d32[_0xea88de(0x83)]());}function toKebabCase(_0x3e66cc){const _0x2b77d1=a309_0x41e8;return _0x3e66cc['replace'](/([a-z0-9])([A-Z])/g,_0x2b77d1(0x88))['toLowerCase']();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1a00f2,_0x1dba30){var _0x404362=a310_0x51c0,_0x17cb6b=_0x1a00f2();while(!![]){try{var _0x528366=parseInt(_0x404362(0x18e))/0x1*(-parseInt(_0x404362(0x18b))/0x2)+parseInt(_0x404362(0x189))/0x3+parseInt(_0x404362(0x18d))/0x4*(-parseInt(_0x404362(0x18a))/0x5)+parseInt(_0x404362(0x18c))/0x6+parseInt(_0x404362(0x191))/0x7+-parseInt(_0x404362(0x192))/0x8+parseInt(_0x404362(0x18f))/0x9*(parseInt(_0x404362(0x190))/0xa);if(_0x528366===_0x1dba30)break;else _0x17cb6b['push'](_0x17cb6b['shift']());}catch(_0x28b014){_0x17cb6b['push'](_0x17cb6b['shift']());}}}(a310_0xc3ae,0x5a0f2));function a310_0xc3ae(){var _0x5dccd2=['1796432DJuLWC','1422942SGIbsr','5GHtawU','6HpOnAu','3435780GeQBxI','1587676BKuTIW','226531kCAbqe','9CpIRmF','211520bQKdjr','4212964fnVXiZ'];a310_0xc3ae=function(){return _0x5dccd2;};return a310_0xc3ae();}function a310_0x51c0(_0x444b5f,_0x39eb3c){_0x444b5f=_0x444b5f-0x189;var _0xc3aeef=a310_0xc3ae();var _0x51c039=_0xc3aeef[_0x444b5f];return _0x51c039;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.5.3-beta.
|
|
2
|
-
export declare const GIT_TAG = "v2.5.3-beta.
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-09-
|
|
1
|
+
export declare const VERSION = "2.5.3-beta.4";
|
|
2
|
+
export declare const GIT_TAG = "v2.5.3-beta.4";
|
|
3
|
+
export declare const GIT_COMMIT = "e78aef00";
|
|
4
|
+
export declare const BUILD_TIME = "2026-09-12T15:33:19.354Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a311_0xd0aaa9=a311_0x56bb;(function(_0x4b34d4,_0x221815){const _0x2c4c44=a311_0x56bb,_0xed8b8d=_0x4b34d4();while(!![]){try{const _0x14d577=parseInt(_0x2c4c44(0x161))/0x1*(-parseInt(_0x2c4c44(0x16a))/0x2)+-parseInt(_0x2c4c44(0x162))/0x3+-parseInt(_0x2c4c44(0x164))/0x4*(parseInt(_0x2c4c44(0x165))/0x5)+-parseInt(_0x2c4c44(0x160))/0x6*(-parseInt(_0x2c4c44(0x16b))/0x7)+-parseInt(_0x2c4c44(0x168))/0x8+-parseInt(_0x2c4c44(0x167))/0x9*(parseInt(_0x2c4c44(0x169))/0xa)+parseInt(_0x2c4c44(0x16c))/0xb*(parseInt(_0x2c4c44(0x16d))/0xc);if(_0x14d577===_0x221815)break;else _0xed8b8d['push'](_0xed8b8d['shift']());}catch(_0x407247){_0xed8b8d['push'](_0xed8b8d['shift']());}}}(a311_0x599e,0x600b5));export const VERSION='2.5.3-beta.4';function a311_0x56bb(_0x105551,_0x5b0893){_0x105551=_0x105551-0x160;const _0x599ee4=a311_0x599e();let _0x56bb66=_0x599ee4[_0x105551];return _0x56bb66;}export const GIT_TAG=a311_0xd0aaa9(0x166);export const GIT_COMMIT='e78aef00';export const BUILD_TIME=a311_0xd0aaa9(0x163);function a311_0x599e(){const _0x40d826=['v2.5.3-beta.4','4555548SvgQvM','802688nxPJNB','10SpNDMx','10NFKifn','559762xYupth','24403555nAGkaB','12EgXLfu','6kNUrXL','66931wHqepd','1624485OBBKAr','2026-09-12T15:33:19.354Z','211208RYUQSv','40SQMpMl'];a311_0x599e=function(){return _0x40d826;};return a311_0x599e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a312_0x9456df=a312_0x308c;(function(_0x8ce8e7,_0x3db769){const _0x53fbe2=a312_0x308c,_0x4b4163=_0x8ce8e7();while(!![]){try{const _0x526d25=-parseInt(_0x53fbe2(0x1d8))/0x1*(parseInt(_0x53fbe2(0x1d6))/0x2)+-parseInt(_0x53fbe2(0x1d4))/0x3*(parseInt(_0x53fbe2(0x1c3))/0x4)+parseInt(_0x53fbe2(0x1b2))/0x5*(-parseInt(_0x53fbe2(0x1c1))/0x6)+parseInt(_0x53fbe2(0x1d7))/0x7*(parseInt(_0x53fbe2(0x1c4))/0x8)+parseInt(_0x53fbe2(0x1bd))/0x9*(parseInt(_0x53fbe2(0x1da))/0xa)+-parseInt(_0x53fbe2(0x1ce))/0xb*(parseInt(_0x53fbe2(0x1c5))/0xc)+parseInt(_0x53fbe2(0x1cc))/0xd;if(_0x526d25===_0x3db769)break;else _0x4b4163['push'](_0x4b4163['shift']());}catch(_0x2ee497){_0x4b4163['push'](_0x4b4163['shift']());}}}(a312_0x3aff,0x2d082));function a312_0x3aff(){const _0x1d5f7a=['https://app.lovrabet.id','20QsJsUG','https://skills.lovrabet.ai','5dhykeN','https://g.lovrabet.id','https://dev.lovrabet.ai','Global','https://g.lovrabet.com','https://user.lovrabet.com','indonesia','https://api.lovrabet.com','https://skills-daily.lovrabet.com','https://daily-api.lovrabet.com','Mainland\x20China','145647HWGAUW','https://app.lovrabet.com','https://runtime.lovrabet.id','https://user.lovrabet.id','769962DsptUl','https://runtime.lovrabet.ai','333964ZhbBeO','8QkHcwQ','3875616poIwDS','https://skills.lovrabet.com','Indonesia','china','https://user-daily.lovrabet.com','https://g.alicdn.com/code/lib','https://api.lovrabet.id','10777715OCFVkw','https://cdnjs.cloudflare.com/ajax/libs','11bKQTVf','https://dev.lovrabet.id','https://api.lovrabet.ai','https://daily-runtime.lovrabet.com','3106fb4f7940b1f4446307e8a7f0c6f6e4a71affd6f8ebe7e5f23e055c08ca3f','https://user.lovrabet.ai','3CrjUYc','https://skills.lovrabet.id','45188DQLtpt','111811bzZTUc','7keeHGp'];a312_0x3aff=function(){return _0x1d5f7a;};return a312_0x3aff();}function a312_0x308c(_0x1a006e,_0x314906){_0x1a006e=_0x1a006e-0x1b2;const _0x3aff77=a312_0x3aff();let _0x308c9c=_0x3aff77[_0x1a006e];return _0x308c9c;}export const ROUTING_CATALOG_DIGEST=a312_0x9456df(0x1d2);export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id','global'];export const ENABLED_REGION_VALUES=['cn','id'];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a312_0x9456df(0x1bc),'aliases':[a312_0x9456df(0x1c8)],'serviceDomains':{'production':{'user':a312_0x9456df(0x1b7),'api':a312_0x9456df(0x1b9),'runtime':'https://runtime.lovrabet.com','skill':a312_0x9456df(0x1c6),'kb':a312_0x9456df(0x1b9),'app':a312_0x9456df(0x1be)},'daily':{'user':a312_0x9456df(0x1c9),'api':'https://daily-api.lovrabet.com','runtime':a312_0x9456df(0x1d1),'skill':a312_0x9456df(0x1ba),'kb':a312_0x9456df(0x1bb),'app':'https://daily.lovrabet.com'}},'cdn':{'libraries':a312_0x9456df(0x1ca),'lovrabet':a312_0x9456df(0x1b6)},'local':{'origin':'https://dev.lovrabet.com'}},'id':{'enabled':!![],'label':a312_0x9456df(0x1c7),'aliases':[a312_0x9456df(0x1b8)],'serviceDomains':{'production':{'user':a312_0x9456df(0x1c0),'api':a312_0x9456df(0x1cb),'runtime':a312_0x9456df(0x1bf),'skill':a312_0x9456df(0x1d5),'kb':a312_0x9456df(0x1cb),'app':a312_0x9456df(0x1d9)}},'cdn':{'libraries':a312_0x9456df(0x1cd),'lovrabet':a312_0x9456df(0x1b3)},'local':{'origin':a312_0x9456df(0x1cf)}},'global':{'enabled':![],'label':a312_0x9456df(0x1b5),'aliases':[],'serviceDomains':{'production':{'user':a312_0x9456df(0x1d3),'api':a312_0x9456df(0x1d0),'runtime':a312_0x9456df(0x1c2),'skill':a312_0x9456df(0x1db),'kb':a312_0x9456df(0x1d0),'app':'https://app.lovrabet.ai'}},'cdn':{'libraries':'https://cdnjs.cloudflare.com/ajax/libs'},'local':{'origin':a312_0x9456df(0x1b4)}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a313_0x45ef78=a313_0x3ec1;(function(_0x53ad6f,_0x1c95b0){const _0x3990d4=a313_0x3ec1,_0x53c3e7=_0x53ad6f();while(!![]){try{const _0x1e24a3=-parseInt(_0x3990d4(0x13d))/0x1*(parseInt(_0x3990d4(0x144))/0x2)+-parseInt(_0x3990d4(0x138))/0x3*(parseInt(_0x3990d4(0x146))/0x4)+-parseInt(_0x3990d4(0x145))/0x5+parseInt(_0x3990d4(0x13b))/0x6+-parseInt(_0x3990d4(0x135))/0x7+-parseInt(_0x3990d4(0x136))/0x8+parseInt(_0x3990d4(0x140))/0x9;if(_0x1e24a3===_0x1c95b0)break;else _0x53c3e7['push'](_0x53c3e7['shift']());}catch(_0x19a6e6){_0x53c3e7['push'](_0x53c3e7['shift']());}}}(a313_0xad0a,0xba7c1));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST='d83929cbced3959b68435d16131e5ff12a4bfc6095e6b7f15bada2bfd03a72cc';export const ENTERPRISE_ROUTING_PROTOCOL=a313_0x45ef78(0x13e);function a313_0x3ec1(_0x5134e9,_0x597840){_0x5134e9=_0x5134e9-0x132;const _0xad0ab8=a313_0xad0a();let _0x3ec1f5=_0xad0ab8[_0x5134e9];return _0x3ec1f5;}export const ENTERPRISE_ROUTING_KIND=a313_0x45ef78(0x143);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a313_0x45ef78(0x137),'apiDomain',a313_0x45ef78(0x13c),a313_0x45ef78(0x142),'kbDomain',a313_0x45ef78(0x139),a313_0x45ef78(0x141),a313_0x45ef78(0x133)];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a313_0x45ef78(0x137),a313_0x45ef78(0x134),'runtimeDomain',a313_0x45ef78(0x142),a313_0x45ef78(0x132),a313_0x45ef78(0x139)];function a313_0xad0a(){const _0x44136b=['7153510kWmhcN','8NNRFtV','kbDomain','certificateDomain','apiDomain','2338329nnEAHm','6572696XEJCLW','userDomain','152403XGHjoT','appDomain','libraries','8665740YyRnUq','runtimeDomain','41777revfnh','lovrabet-routing/v1','lovrabet','18819387sbftwU','localDomain','skillDomain','enterprise','4SZkAiU'];a313_0xad0a=function(){return _0x44136b;};return a313_0xad0a();}export const ENTERPRISE_ROUTING_CDN_FIELDS=[a313_0x45ef78(0x13a),a313_0x45ef78(0x13f)];export const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS=[a313_0x45ef78(0x13a),a313_0x45ef78(0x13f)];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a314_0x17bb(){var _0x16fbf2=['413400HwcThL','2235191meCESF','green','24366366xMUXIc','\x20to\x20view\x20available\x20commands.','bold','8mlAyCm','620008gtSAfo','\x20--help','1654491AnLECP','839910jaoaRj','25sjyRzH','log','2136172lYRaRs'];a314_0x17bb=function(){return _0x16fbf2;};return a314_0x17bb();}function a314_0x5ec8(_0x1b6a2b,_0x467fb4){_0x1b6a2b=_0x1b6a2b-0x167;var _0x17bbc7=a314_0x17bb();var _0x5ec821=_0x17bbc7[_0x1b6a2b];return _0x5ec821;}(function(_0x316b5d,_0x151abd){var _0x5326ba=a314_0x5ec8,_0x1d6fe8=_0x316b5d();while(!![]){try{var _0x46b176=-parseInt(_0x5326ba(0x16e))/0x1+parseInt(_0x5326ba(0x16b))/0x2+-parseInt(_0x5326ba(0x16d))/0x3+-parseInt(_0x5326ba(0x171))/0x4+parseInt(_0x5326ba(0x16f))/0x5*(-parseInt(_0x5326ba(0x172))/0x6)+parseInt(_0x5326ba(0x173))/0x7*(-parseInt(_0x5326ba(0x16a))/0x8)+parseInt(_0x5326ba(0x167))/0x9;if(_0x46b176===_0x151abd)break;else _0x1d6fe8['push'](_0x1d6fe8['shift']());}catch(_0x479d2e){_0x1d6fe8['push'](_0x1d6fe8['shift']());}}}(a314_0x17bb,0x68853));import a314_0x6a9467 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x58bfb9=a314_0x5ec8;console['log'](),console[_0x58bfb9(0x170)](a314_0x6a9467[_0x58bfb9(0x174)][_0x58bfb9(0x169)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x58bfb9(0x170)](),console['log']('\x20\x20Use\x20'+a314_0x6a9467['green'][_0x58bfb9(0x169)](CLI_BIN_NAME+_0x58bfb9(0x16c))+_0x58bfb9(0x168)),console[_0x58bfb9(0x170)]();}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2d570a,_0x5ab28b){const _0x3af79e=a315_0x2d10,_0x10af07=_0x2d570a();while(!![]){try{const _0x3b1ece=-parseInt(_0x3af79e(0xcc))/0x1*(-parseInt(_0x3af79e(0xd0))/0x2)+parseInt(_0x3af79e(0xc8))/0x3+-parseInt(_0x3af79e(0xd1))/0x4*(parseInt(_0x3af79e(0xd7))/0x5)+parseInt(_0x3af79e(0xd5))/0x6+parseInt(_0x3af79e(0xd2))/0x7+-parseInt(_0x3af79e(0xce))/0x8*(-parseInt(_0x3af79e(0xc3))/0x9)+-parseInt(_0x3af79e(0xc5))/0xa;if(_0x3b1ece===_0x5ab28b)break;else _0x10af07['push'](_0x10af07['shift']());}catch(_0x3066c2){_0x10af07['push'](_0x10af07['shift']());}}}(a315_0x18c1,0x5dc9a));function a315_0x2d10(_0x46473b,_0x436c67){_0x46473b=_0x46473b-0xc3;const _0x18c19e=a315_0x18c1();let _0x2d106c=_0x18c19e[_0x46473b];return _0x2d106c;}import{installBuiltinSkill}from'./skills/builtin-skill.js';function a315_0x18c1(){const _0x117015=['repairCommand','log','4165224jNPGyL','changed','5HRfGOW','640818HfvhuS','Repair\x20with:\x20','12886310gsYZVZ','Installation\x20failed','error','1888041eVGKCr','installedPath','\x20at\x20','SOURCE_INVALID','297MgUoTG','already\x20current','16mabpOx','FAILED','1306qqVOqm','2861156uJKQhd','5097246fBudwT'];a315_0x18c1=function(){return _0x117015;};return a315_0x18c1();}export async function runPostinstall(_0x248d2a={}){const _0x47ff1d=a315_0x2d10,_0x7802da=installBuiltinSkill(_0x248d2a);if(_0x7802da['ok']){const _0x574523=_0x7802da[_0x47ff1d(0xd6)]?'installed':_0x47ff1d(0xcd),_0x52a00c=_0x7802da[_0x47ff1d(0xc9)]?_0x47ff1d(0xca)+_0x7802da[_0x47ff1d(0xc9)]:'\x20via\x20skills@latest';return console[_0x47ff1d(0xd4)]('Rabetbase\x20Built-in\x20Skill\x20'+_0x7802da['skillVersion']+'\x20'+_0x574523+_0x52a00c),_0x7802da;}const _0x5386ba='[BUILTIN_SKILL_INSTALL_'+(_0x7802da['code']??_0x47ff1d(0xcf))+']\x20'+(_0x7802da[_0x47ff1d(0xc7)]??_0x47ff1d(0xc6))+'.\x20'+(_0x47ff1d(0xc4)+_0x7802da[_0x47ff1d(0xd3)]);if(_0x7802da['code']===_0x47ff1d(0xcb))throw new Error(_0x5386ba);return console['warn'](_0x5386ba),_0x7802da;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2672f4,_0x543150){const _0x198fc7=a316_0x3b31,_0x2ac571=_0x2672f4();while(!![]){try{const _0x20faae=parseInt(_0x198fc7(0x85))/0x1+parseInt(_0x198fc7(0x7e))/0x2+-parseInt(_0x198fc7(0x80))/0x3*(parseInt(_0x198fc7(0x86))/0x4)+parseInt(_0x198fc7(0x83))/0x5*(-parseInt(_0x198fc7(0x89))/0x6)+-parseInt(_0x198fc7(0x8b))/0x7+-parseInt(_0x198fc7(0x87))/0x8+parseInt(_0x198fc7(0x82))/0x9;if(_0x20faae===_0x543150)break;else _0x2ac571['push'](_0x2ac571['shift']());}catch(_0x51fdfb){_0x2ac571['push'](_0x2ac571['shift']());}}}(a316_0x5cfa,0x52924));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x31221c,_0x4319ea,_0x32585d){const _0x3e1116=a316_0x3b31,_0x1d0b0f=normalizeText(_0x31221c[_0x3e1116(0x8d)],DESCRIPTION_MAX_LENGTH),_0xc75aa8=_0x1d0b0f||normalizeText(defaultDescription(requireWriteRisk(_0x31221c),_0x4319ea),DESCRIPTION_MAX_LENGTH);return{'operation':_0x4319ea,'risk':requireWriteRisk(_0x31221c),'description':_0xc75aa8,..._0x32585d?{'signal':_0x32585d}:{}};}function a316_0x3b31(_0x475470,_0x36c99f){_0x475470=_0x475470-0x7b;const _0x5cfa87=a316_0x5cfa();let _0x3b3153=_0x5cfa87[_0x475470];return _0x3b3153;}function a316_0x5cfa(){const _0x17e4c1=['7591698uUIgXb','45PWjhUF','replace','73490ShxREX','8KkrlIe','41432HKXISS','high-risk-write','121854nakByU','.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.','846230PCROcm','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','confirmationDescription','.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.','slice','string','write','638828XXHxwj','risk','884046bYTBCf','trim'];a316_0x5cfa=function(){return _0x17e4c1;};return a316_0x5cfa();}function requireWriteRisk(_0x2d81fa){const _0x4002ac=a316_0x3b31;if(_0x2d81fa[_0x4002ac(0x7f)]===_0x4002ac(0x7d)||_0x2d81fa[_0x4002ac(0x7f)]===_0x4002ac(0x88))return _0x2d81fa[_0x4002ac(0x7f)];throw new Error(_0x4002ac(0x8c));}function defaultDescription(_0x40d678,_0x4161d1){const _0x5d3879=a316_0x3b31;if(_0x40d678==='high-risk-write')return'This\x20will\x20run\x20the\x20high-risk\x20write\x20'+_0x4161d1+_0x5d3879(0x8e);return'This\x20will\x20run\x20the\x20write\x20'+_0x4161d1+_0x5d3879(0x8a);}function normalizeText(_0x466e28,_0x9abfa0){const _0x17735d=a316_0x3b31;if(typeof _0x466e28!==_0x17735d(0x7c))return'';return _0x466e28['replace'](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x17735d(0x84)](/\s+/g,'\x20')[_0x17735d(0x81)]()[_0x17735d(0x7b)](0x0,_0x9abfa0);}
|