@lovrabet/rabetbase-cli 2.5.4-beta.1 → 2.5.4-beta.2
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/README.md +4 -3
- 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.d.ts +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.d.ts +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.d.ts +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.d.ts +4 -0
- 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.d.ts +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.d.ts +14 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.d.ts +1 -0
- 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.d.ts +15 -3
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.d.ts +2 -2
- 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.d.ts +5 -0
- 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.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 +1 -1
- package/skills/rabetbase/SKILL.md +2 -2
- package/skills/rabetbase/guides/sql-creation-workflow.md +1 -1
- package/skills/rabetbase/guides/sql-mybatis.md +12 -8
- package/skills/rabetbase/references/rabetbase-config.md +6 -4
- package/skills/rabetbase/references/rabetbase-init.md +7 -5
- package/skills/rabetbase/references/rabetbase-kb.md +8 -6
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const a296_0x3d7e9e=a296_0x4e3d;(function(_0x267326,_0x3f8fe2){const _0x3a0a6d=a296_0x4e3d,_0x4f2c72=_0x267326();while(!![]){try{const _0x4de1be=parseInt(_0x3a0a6d(0x132))/0x1*(-parseInt(_0x3a0a6d(0x120))/0x2)+parseInt(_0x3a0a6d(0x12a))/0x3*(parseInt(_0x3a0a6d(0x11e))/0x4)+-parseInt(_0x3a0a6d(0x10b))/0x5+-parseInt(_0x3a0a6d(0x122))/0x6*(-parseInt(_0x3a0a6d(0x12b))/0x7)+-parseInt(_0x3a0a6d(0x164))/0x8+parseInt(_0x3a0a6d(0x14d))/0x9+-parseInt(_0x3a0a6d(0x148))/0xa*(-parseInt(_0x3a0a6d(0x135))/0xb);if(_0x4de1be===_0x3f8fe2)break;else _0x4f2c72['push'](_0x4f2c72['shift']());}catch(_0x37025e){_0x4f2c72['push'](_0x4f2c72['shift']());}}}(a296_0x41c6,0x3e1f4));const MYBATIS_OUTER_TAGS=new Map([[a296_0x3d7e9e(0x165),a296_0x3d7e9e(0x118)],[a296_0x3d7e9e(0x15c),a296_0x3d7e9e(0x139)],[a296_0x3d7e9e(0x10e),'UPDATE'],[a296_0x3d7e9e(0x156),a296_0x3d7e9e(0x152)]]),MYBATIS_DYNAMIC_TAGS=new Set(['if',a296_0x3d7e9e(0x169),a296_0x3d7e9e(0x150),a296_0x3d7e9e(0x11a),'when',a296_0x3d7e9e(0x121),a296_0x3d7e9e(0x167),'set',a296_0x3d7e9e(0x128),a296_0x3d7e9e(0x15b),'property']),MYBATIS_BRANCH_TAGS=new Set(['if',a296_0x3d7e9e(0x150),a296_0x3d7e9e(0x11a),a296_0x3d7e9e(0x129),'otherwise']);export const MYBATIS_DYNAMIC_START_MARKER='__RABETBASE_MYBATIS_DYNAMIC_START__';export const MYBATIS_DYNAMIC_END_MARKER=a296_0x3d7e9e(0x160);export const MYBATIS_INCLUDE_MARKER=a296_0x3d7e9e(0x11b);const UNRESOLVED_SQL_FRAGMENT=a296_0x3d7e9e(0x146),MYBATIS_OUTER_TAG_PATTERN=new RegExp(a296_0x3d7e9e(0x163)+[...MYBATIS_OUTER_TAGS[a296_0x3d7e9e(0x13a)]()][a296_0x3d7e9e(0x149)]('|')+a296_0x3d7e9e(0x133),'i');export function normalizeSqlForStaticAnalysis(_0x478ab8){const _0x6fe79b=a296_0x3d7e9e,_0x529376=typeof _0x478ab8===_0x6fe79b(0x11c)?_0x478ab8:'';if(detectSqlSourceMode(_0x529376)===_0x6fe79b(0x107))return{'sql':_0x529376,'mode':'sql'};let _0x7ee6dc=0x0,_0x226044='',_0x4efa6e,_0x270ce0=![],_0x15129d=![];const _0x172f21=[];while(_0x7ee6dc<_0x529376[_0x6fe79b(0x15f)]){if(_0x529376[_0x6fe79b(0x12c)](_0x6fe79b(0x14c),_0x7ee6dc)){const _0x34f03a=_0x529376['indexOf'](_0x6fe79b(0x159),_0x7ee6dc+0x4);if(_0x34f03a<0x0)return invalidMybatisSource('Unterminated\x20XML\x20comment.');_0x226044+='\x20',_0x7ee6dc=_0x34f03a+0x3;continue;}if(_0x529376[_0x6fe79b(0x12c)](_0x6fe79b(0x13f),_0x7ee6dc)){if(!_0x270ce0||_0x15129d)return invalidMybatisSource(_0x6fe79b(0x124));const _0x2140d1=_0x529376[_0x6fe79b(0x14b)](']]>',_0x7ee6dc+0x9);if(_0x2140d1<0x0)return invalidMybatisSource('Unterminated\x20CDATA\x20section.');_0x226044+=_0x529376['slice'](_0x7ee6dc+0x9,_0x2140d1),_0x7ee6dc=_0x2140d1+0x3;continue;}if(_0x529376['startsWith']('<?',_0x7ee6dc)){if(_0x270ce0)return invalidMybatisSource(_0x6fe79b(0x11d));const _0x15a75b=_0x529376[_0x6fe79b(0x14b)]('?>',_0x7ee6dc+0x2);if(_0x15a75b<0x0)return invalidMybatisSource(_0x6fe79b(0x130));_0x226044+='\x20',_0x7ee6dc=_0x15a75b+0x2;continue;}if(_0x529376[_0x7ee6dc]!=='<'){const _0x4c9cc9=_0x529376[_0x6fe79b(0x14b)]('<',_0x7ee6dc),_0x19bfc4=_0x4c9cc9<0x0?_0x529376['length']:_0x4c9cc9,_0x9a5ab2=_0x529376[_0x6fe79b(0x14e)](_0x7ee6dc,_0x19bfc4);if((!_0x270ce0||_0x15129d)&&_0x9a5ab2[_0x6fe79b(0x167)]())return invalidMybatisSource(_0x6fe79b(0x142));if(_0x270ce0&&!_0x15129d){const _0x3e795e=decodeXmlEntities(_0x9a5ab2);if(_0x3e795e===null)return invalidMybatisSource(_0x6fe79b(0x12d));_0x226044+=_0x3e795e;}else _0x226044+='\x20';_0x7ee6dc=_0x19bfc4;continue;}const _0x3cecf0=findXmlTagEnd(_0x529376,_0x7ee6dc);if(_0x3cecf0<0x0)return invalidMybatisSource(_0x6fe79b(0x168));const _0x33dd0f=_0x529376[_0x6fe79b(0x14e)](_0x7ee6dc,_0x3cecf0+0x1),_0x70c324=/^<\s*(\/?)\s*([A-Za-z][\w:-]*)([\s\S]*?)(\/?)\s*>$/['exec'](_0x33dd0f);if(!_0x70c324)return invalidMybatisSource('Invalid\x20MyBatis\x20XML\x20tag.');const _0x1fb43c=_0x70c324[0x1]==='/',_0x98e897=_0x70c324[0x2]??'',_0x8e46ff=_0x98e897['toLowerCase'](),_0x409b84=_0x70c324[0x3]??'',_0x2a30c2=_0x70c324[0x4]==='/',_0x52b52b=MYBATIS_OUTER_TAGS['get'](_0x8e46ff);if(!_0x52b52b&&!MYBATIS_DYNAMIC_TAGS['has'](_0x8e46ff))return invalidMybatisSource(_0x6fe79b(0x11f)+_0x8e46ff+'>.');if(!_0x52b52b&&_0x98e897!==_0x8e46ff)return invalidMybatisSource('MyBatis\x20dynamic\x20tag\x20names\x20must\x20be\x20lowercase:\x20<'+_0x98e897+'>.');if(_0x1fb43c){if(_0x409b84[_0x6fe79b(0x167)]()||_0x2a30c2)return invalidMybatisSource(_0x6fe79b(0x13c)+_0x98e897+'>.');const _0xa4edcb=_0x172f21['at'](-0x1);if(!_0xa4edcb||(_0xa4edcb[_0x6fe79b(0x10d)]?_0xa4edcb[_0x6fe79b(0x12e)]!==_0x8e46ff:_0xa4edcb[_0x6fe79b(0x138)]!==_0x98e897))return invalidMybatisSource('Mismatched\x20MyBatis\x20XML\x20closing\x20tag:\x20</'+_0x98e897+'>.');_0x172f21['pop']();if(_0xa4edcb[_0x6fe79b(0x10d)])_0x15129d=!![];_0x226044+=MYBATIS_BRANCH_TAGS['has'](_0x8e46ff)?'\x20'+MYBATIS_DYNAMIC_END_MARKER+'\x20':'\x20';}else{if(!hasWellFormedXmlAttributes(_0x409b84))return invalidMybatisSource(_0x6fe79b(0x161)+_0x98e897+'>.');if(_0x8e46ff==='property'&&(!_0x2a30c2||_0x172f21['at'](-0x1)?.[_0x6fe79b(0x12e)]!=='include'))return invalidMybatisSource('MyBatis\x20<property>\x20must\x20be\x20a\x20self-closing\x20direct\x20child\x20of\x20<include>.');if(_0x52b52b){if(_0x270ce0||_0x172f21[_0x6fe79b(0x15f)]>0x0)return invalidMybatisSource(_0x6fe79b(0x155));_0x270ce0=!![],_0x15129d=_0x2a30c2,_0x4efa6e=_0x52b52b;}else{if(!_0x270ce0||_0x15129d)return invalidMybatisSource(_0x6fe79b(0x126)+_0x98e897+'>.');}_0x226044+=_0x8e46ff===_0x6fe79b(0x169)?_0x6fe79b(0x127):_0x8e46ff===_0x6fe79b(0x158)?_0x6fe79b(0x13d):_0x8e46ff===_0x6fe79b(0x15b)?'\x20'+MYBATIS_INCLUDE_MARKER+'\x20':MYBATIS_BRANCH_TAGS[_0x6fe79b(0x151)](_0x8e46ff)&&!_0x2a30c2?'\x20'+MYBATIS_DYNAMIC_START_MARKER+'\x20':'\x20',!_0x2a30c2&&_0x172f21[_0x6fe79b(0x13e)]({'rawName':_0x98e897,'tagName':_0x8e46ff,'outer':!!_0x52b52b});}_0x7ee6dc=_0x3cecf0+0x1;}if(_0x172f21[_0x6fe79b(0x15f)]>0x0)return invalidMybatisSource(_0x6fe79b(0x136)+_0x172f21['at'](-0x1)?.[_0x6fe79b(0x138)]+'>.');if(!_0x270ce0||!_0x15129d)return invalidMybatisSource(_0x6fe79b(0x10f));return{'sql':_0x226044[_0x6fe79b(0x167)](),'mode':'mybatisXml',..._0x4efa6e?{'statementType':_0x4efa6e}:{}};}function hasWellFormedXmlAttributes(_0x2f091b){const _0x275ec3=a296_0x3d7e9e;let _0x2908e2=0x0;const _0x4ea72c=new Set();while(_0x2908e2<_0x2f091b[_0x275ec3(0x15f)]){while(_0x2908e2<_0x2f091b['length']&&/\s/[_0x275ec3(0x109)](_0x2f091b[_0x2908e2]??''))_0x2908e2+=0x1;if(_0x2908e2>=_0x2f091b[_0x275ec3(0x15f)])return!![];const _0x280ff3=/^[A-Za-z_:][\w:.-]*/[_0x275ec3(0x162)](_0x2f091b[_0x275ec3(0x14e)](_0x2908e2)),_0x24f02c=_0x280ff3?.[0x0];if(!_0x24f02c||_0x4ea72c[_0x275ec3(0x151)](_0x24f02c))return![];_0x4ea72c[_0x275ec3(0x16b)](_0x24f02c),_0x2908e2+=_0x24f02c[_0x275ec3(0x15f)];while(_0x2908e2<_0x2f091b[_0x275ec3(0x15f)]&&/\s/['test'](_0x2f091b[_0x2908e2]??''))_0x2908e2+=0x1;if(_0x2f091b[_0x2908e2]!=='=')return![];_0x2908e2+=0x1;while(_0x2908e2<_0x2f091b[_0x275ec3(0x15f)]&&/\s/[_0x275ec3(0x109)](_0x2f091b[_0x2908e2]??''))_0x2908e2+=0x1;const _0x401e3f=_0x2f091b[_0x2908e2];if(_0x401e3f!=='\x22'&&_0x401e3f!=='\x27')return![];_0x2908e2+=0x1;const _0x3227b5=_0x2f091b[_0x275ec3(0x14b)](_0x401e3f,_0x2908e2);if(_0x3227b5<0x0)return![];if(decodeXmlEntities(_0x2f091b[_0x275ec3(0x14e)](_0x2908e2,_0x3227b5))===null)return![];_0x2908e2=_0x3227b5+0x1;}return!![];}export function detectSqlSourceMode(_0x500e6b){const _0x36f63f=a296_0x3d7e9e;let _0x5e3969=0x0;const _0x3bb396=()=>{const _0x5d8831=a296_0x4e3d;while(_0x5e3969<_0x500e6b['length']&&/\s/[_0x5d8831(0x109)](_0x500e6b[_0x5e3969]??''))_0x5e3969+=0x1;};_0x3bb396();while(_0x5e3969<_0x500e6b[_0x36f63f(0x15f)]){if(_0x500e6b['startsWith'](_0x36f63f(0x14c),_0x5e3969)){const _0x1754c2=_0x500e6b[_0x36f63f(0x14b)](_0x36f63f(0x159),_0x5e3969+0x4);if(_0x1754c2<0x0)return _0x36f63f(0x113);_0x5e3969=_0x1754c2+0x3,_0x3bb396();continue;}if(_0x500e6b[_0x36f63f(0x12c)]('<?',_0x5e3969)){const _0xa00a2e=_0x500e6b[_0x36f63f(0x14b)]('?>',_0x5e3969+0x2);if(_0xa00a2e<0x0)return'mybatisXml';_0x5e3969=_0xa00a2e+0x2,_0x3bb396();continue;}break;}return MYBATIS_OUTER_TAG_PATTERN[_0x36f63f(0x109)](_0x500e6b['slice'](_0x5e3969))?_0x36f63f(0x113):_0x36f63f(0x107);}function invalidMybatisSource(_0x56ee71){return{'sql':'','mode':'mybatisXml','error':_0x56ee71};}function findXmlTagEnd(_0xad8d95,_0x4247bb){let _0x17b690;for(let _0x5c97e6=_0x4247bb+0x1;_0x5c97e6<_0xad8d95['length'];_0x5c97e6+=0x1){const _0xddf6e8=_0xad8d95[_0x5c97e6];if(_0x17b690){if(_0xddf6e8===_0x17b690)_0x17b690=undefined;continue;}if(_0xddf6e8==='\x22'||_0xddf6e8==='\x27'){_0x17b690=_0xddf6e8;continue;}if(_0xddf6e8==='>')return _0x5c97e6;}return-0x1;}function decodeXmlEntities(_0x4013c6){let _0x59514e=![];const _0x4c3acc=_0x4013c6['replace'](/&(?:#x[0-9a-f]+;|#[0-9]+;|[A-Za-z_:][\w:.-]*;)?/g,_0x3292e6=>{const _0xfc79ac=a296_0x4e3d;if(_0x3292e6===_0xfc79ac(0x12f))return'<';if(_0x3292e6===_0xfc79ac(0x116))return'>';if(_0x3292e6===_0xfc79ac(0x147))return'\x22';if(_0x3292e6===_0xfc79ac(0x131))return'\x27';if(_0x3292e6==='&')return'&';const _0x1ff68a=/^&#(?:x([0-9a-f]+)|([0-9]+));$/[_0xfc79ac(0x162)](_0x3292e6);if(_0x1ff68a){const _0x449bba=_0x1ff68a[0x1],_0x3be649=_0x1ff68a[0x2],_0x1c67d3=Number[_0xfc79ac(0x143)](_0x449bba??_0x3be649??'',_0x449bba?0x10:0xa);if(isValidXmlCharacter(_0x1c67d3))return String[_0xfc79ac(0x153)](_0x1c67d3);}return _0x59514e=!![],'';});return _0x59514e?null:_0x4c3acc;}function isValidXmlCharacter(_0x3b5c67){return _0x3b5c67===0x9||_0x3b5c67===0xa||_0x3b5c67===0xd||_0x3b5c67>=0x20&&_0x3b5c67<=0xd7ff||_0x3b5c67>=0xe000&&_0x3b5c67<=0xfffd||_0x3b5c67>=0x10000&&_0x3b5c67<=0x10ffff;}export function detectSqlType(_0x115eb4){return detectNormalizedSqlType(normalizeSqlForStaticAnalysis(_0x115eb4));}function detectNormalizedSqlType(_0x1dc4b3){const _0x27c4a8=a296_0x3d7e9e;if(_0x1dc4b3['error'])return{'type':_0x27c4a8(0x14f),'isSelectOnly':![],'isDangerous':![],'reason':_0x1dc4b3['error']};if(!_0x1dc4b3[_0x27c4a8(0x107)][_0x27c4a8(0x167)]())return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':'SQL\x20content\x20is\x20empty'};const _0x316f7d=tokenizeSqlForTypeAnalysis(_0x1dc4b3[_0x27c4a8(0x107)]),_0x3984bf=_0x316f7d[_0x27c4a8(0x123)](_0x26c111=>_0x26c111!==MYBATIS_DYNAMIC_START_MARKER&&_0x26c111!==MYBATIS_DYNAMIC_END_MARKER),_0x2bc84a=findMainStatementIndex(_0x3984bf);if(_0x2bc84a<0x0)return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':_0x27c4a8(0x166)};const _0x420677=_0x3984bf[_0x2bc84a]??'',_0x14aae5=_0x1dc4b3[_0x27c4a8(0x115)]??_0x420677,_0x435430=_0x316f7d['some'](_0x5e1186=>/^(DELETE|DROP|ALTER|CREATE|TRUNCATE)$/[_0x27c4a8(0x109)](_0x5e1186)),_0x3be86a=new Set();let _0x1d0927=![];for(let _0x1f4efa=0x0;_0x1f4efa<_0x316f7d[_0x27c4a8(0x15f)];_0x1f4efa+=0x1){const _0x5d6f3f=_0x316f7d[_0x1f4efa];(_0x5d6f3f===_0x27c4a8(0x110)||_0x5d6f3f===_0x27c4a8(0x16a))&&isLockingClauseKeyword(_0x316f7d,_0x1f4efa)&&(_0x3be86a[_0x27c4a8(0x16b)](_0x1f4efa),_0x1d0927=!![]);if(_0x316f7d['slice'](_0x1f4efa,_0x1f4efa+0x4)['join']('\x20')===_0x27c4a8(0x15d))_0x1d0927=!![];}if(_0x14aae5===_0x27c4a8(0x118)){const _0x2f9b77=_0x316f7d['some']((_0x11be23,_0x9ee1fc)=>/^(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)$/[_0x27c4a8(0x109)](_0x11be23)&&!_0x3be86a[_0x27c4a8(0x151)](_0x9ee1fc));return{'type':_0x27c4a8(0x118),'isSelectOnly':!_0x2f9b77&&!_0x1d0927,'isLockingRead':_0x1d0927,'isDangerous':_0x2f9b77,'reason':_0x2f9b77?'SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT':undefined};}if(_0x14aae5==='INSERT')return{'type':_0x27c4a8(0x139),'isSelectOnly':![],'isDangerous':_0x435430,'reason':_0x435430?_0x27c4a8(0x108):undefined};if(_0x14aae5===_0x27c4a8(0x110))return{'type':_0x27c4a8(0x110),'isSelectOnly':![],'isDangerous':_0x435430,'reason':_0x435430?_0x27c4a8(0x108):undefined};if(_0x14aae5==='DELETE')return{'type':_0x27c4a8(0x152),'isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20require\x20explicit\x20review'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0x420677))return{'type':_0x27c4a8(0x145),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20require\x20explicit\x20review'};return{'type':_0x27c4a8(0x14f),'isSelectOnly':![],'isDangerous':![]};}function isLockingClauseKeyword(_0x3aba3f,_0xf36357){const _0x4fd6e5=a296_0x3d7e9e,_0x7d7576=_0x3aba3f[_0xf36357]===_0x4fd6e5(0x110)?[[_0x4fd6e5(0x15a)],[_0x4fd6e5(0x15a),'NO',_0x4fd6e5(0x112)]]:[[_0x4fd6e5(0x15a)],[_0x4fd6e5(0x15a),_0x4fd6e5(0x112)]],_0x1826a9=_0x7d7576[_0x4fd6e5(0x13b)](_0x2b89dd=>{const _0x439a72=_0x4fd6e5,_0x235ce3=_0xf36357-_0x2b89dd['length'];return _0x235ce3>=0x0&&_0x3aba3f['slice'](_0x235ce3,_0xf36357)[_0x439a72(0x149)]('\x20')===_0x2b89dd[_0x439a72(0x149)]('\x20');});if(!_0x1826a9)return![];return!_0x3aba3f['slice'](_0xf36357+0x1,_0xf36357+0x5)[_0x4fd6e5(0x15e)]('SET');}function findMainStatementIndex(_0x728b29){const _0x114c47=a296_0x3d7e9e;if(_0x728b29[0x0]!=='WITH')return 0x0;let _0x38923c=_0x728b29[0x1]===_0x114c47(0x134)?0x2:0x1;while(_0x38923c<_0x728b29[_0x114c47(0x15f)]){const _0x49fa62=_0x728b29[_0x38923c];if(!_0x49fa62||!(/^[A-Z_][\w$]*$/['test'](_0x49fa62)||/^[`"]/[_0x114c47(0x109)](_0x49fa62)))return-0x1;_0x38923c+=0x1;if(_0x728b29[_0x38923c]==='('){_0x38923c=skipSqlParentheses(_0x728b29,_0x38923c);if(_0x38923c<0x0)return-0x1;}if(_0x728b29[_0x38923c]!=='AS')return-0x1;_0x38923c+=0x1;if(_0x728b29[_0x38923c]==='NOT'&&_0x728b29[_0x38923c+0x1]===_0x114c47(0x137))_0x38923c+=0x2;else{if(_0x728b29[_0x38923c]==='MATERIALIZED')_0x38923c+=0x1;}_0x38923c=skipSqlParentheses(_0x728b29,_0x38923c);if(_0x38923c<0x0)return-0x1;if(_0x728b29[_0x38923c]!==','){const _0x2f6a6b=_0x728b29[_0x38923c]==='('?_0x38923c+0x1:_0x38923c;return/^(SELECT|INSERT|UPDATE|DELETE)$/[_0x114c47(0x109)](_0x728b29[_0x2f6a6b]??'')?_0x2f6a6b:-0x1;}_0x38923c+=0x1;}return-0x1;}function skipSqlParentheses(_0x27d992,_0x2fbcd4){const _0x5740de=a296_0x3d7e9e;if(_0x27d992[_0x2fbcd4]!=='(')return-0x1;let _0x1044b6=0x0;for(let _0x47273c=_0x2fbcd4;_0x47273c<_0x27d992[_0x5740de(0x15f)];_0x47273c+=0x1){const _0x3fc408=_0x27d992[_0x47273c];if(_0x3fc408===';')return-0x1;if(_0x3fc408==='(')_0x1044b6+=0x1;if(_0x3fc408===')'&&--_0x1044b6===0x0)return _0x47273c+0x1;}return-0x1;}function a296_0x41c6(){const _0x359623=['join','\x20with\x20parameters:\x20','indexOf','<!--','1398123PLpPKz','slice','UNKNOWN','foreach','has','DELETE','fromCodePoint','replaceAll','Multiple\x20MyBatis\x20statement\x20wrappers\x20are\x20not\x20supported.','delete','reason','set','-->','FOR','include','insert','LOCK\x20IN\x20SHARE\x20MODE','includes','length','__RABETBASE_MYBATIS_DYNAMIC_END__','Invalid\x20attributes\x20on\x20MyBatis\x20XML\x20tag:\x20<','exec','^<\x5cs*(?:','1660160lnYSvO','select','Local\x20analysis\x20could\x20not\x20parse\x20the\x20WITH\x20prefix;\x20this\x20is\x20a\x20local\x20capability\x20limit,\x20not\x20a\x20platform\x20rejection.','trim','Unterminated\x20MyBatis\x20XML\x20tag.','where','SHARE','add','isDangerous','sql','SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements','test','Unable\x20to\x20detect\x20SQL\x20type.\x20','2489215vLTRuy','error','outer','update','MyBatis\x20XML\x20must\x20contain\x20exactly\x20one\x20complete\x20statement\x20wrapper.','UPDATE','type','KEY','mybatisXml','replace','statementType','>','match','SELECT','\x20query\x20targeting\x20','choose','__RABETBASE_MYBATIS_INCLUDE_UNRESOLVED__','string','XML\x20declarations\x20must\x20precede\x20the\x20MyBatis\x20statement\x20wrapper.','316UcIBPn','Unsupported\x20MyBatis\x20XML\x20tag:\x20<','643198yCHiUs','otherwise','1244706gCzjBO','filter','CDATA\x20sections\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','unknown\x20table(s)','MyBatis\x20dynamic\x20tag\x20must\x20be\x20inside\x20the\x20statement\x20wrapper:\x20<','\x20WHERE\x20','bind','when','93EwpAbu','14FpIbLo','startsWith','Invalid\x20XML\x20entity\x20reference.','tagName','<','Unterminated\x20XML\x20declaration.',''','1YxgOHL',')\x5cb','RECURSIVE','147092ydYnNe','Unclosed\x20MyBatis\x20XML\x20tag:\x20<','MATERIALIZED','rawName','INSERT','keys','some','Invalid\x20MyBatis\x20XML\x20closing\x20tag:\x20</','\x20SET\x20','push','<![CDATA[','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','matchAll','SQL\x20text\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','parseInt','from','DDL','__RABETBASE_UNRESOLVED_SQL_FRAGMENT__','"','530uTLjyb'];a296_0x41c6=function(){return _0x359623;};return a296_0x41c6();}function stripStaticAnalysisMarkers(_0x3dc51a){const _0x226d92=a296_0x3d7e9e;return _0x3dc51a['replaceAll'](MYBATIS_DYNAMIC_START_MARKER,'\x20')[_0x226d92(0x154)](MYBATIS_DYNAMIC_END_MARKER,'\x20')[_0x226d92(0x154)](MYBATIS_INCLUDE_MARKER,'\x20'+UNRESOLVED_SQL_FRAGMENT+'\x20');}function tokenizeSqlForTypeAnalysis(_0x55d3b3){const _0x3db83b=a296_0x3d7e9e,_0x4f8032=[],_0x2e4f02=/\/\*[\s\S]*?\*\/|--[^\r\n]*|[#$]\{[^}]*\}|#[^\r\n]*|'(?:''|\\[\s\S]|[^'\\])*'|"(?:""|\\[\s\S]|[^"\\])*"|`(?:``|\\[\s\S]|[^`\\])*`|@[A-Za-z_]\w*|[A-Za-z_]\w*|\S/g;for(const _0x2a61c0 of _0x55d3b3[_0x3db83b(0x141)](_0x2e4f02)){const _0x47de61=_0x2a61c0[0x0];if(_0x47de61[_0x3db83b(0x12c)]('/*')||_0x47de61[_0x3db83b(0x12c)]('--')||_0x47de61['startsWith']('#')&&!_0x47de61[_0x3db83b(0x12c)]('#{'))continue;_0x4f8032[_0x3db83b(0x13e)](/^["`]/['test'](_0x47de61)?_0x47de61:/^[\x27@#$]/[_0x3db83b(0x109)](_0x47de61)?'?':_0x47de61['toUpperCase']());}return _0x4f8032;}function extractTables(_0x3f2649,_0x59fbfb){const _0x436b47=a296_0x3d7e9e,_0x53aeb0=_0x3f2649[_0x436b47(0x114)](/#\{[^}]*\}/g,'?')[_0x436b47(0x114)](/\$\{[^}]*\}/g,'?')[_0x436b47(0x114)](/'[^']*'/g,'\x27\x27')[_0x436b47(0x114)](/--.*$/gm,'')[_0x436b47(0x114)](/\/\*[\s\S]*?\*\//g,''),_0x670325=[],_0x16fc0e=_0x53aeb0['match'](/FROM\s+([^\s,)(]+)/i);addTable(_0x670325,_0x16fc0e?.[0x1]);for(const _0x5af72b of _0x53aeb0['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){addTable(_0x670325,_0x5af72b[0x1]);}const _0x342500=_0x53aeb0[_0x436b47(0x117)](/INTO\s+([^\s(]+)/i);addTable(_0x670325,_0x342500?.[0x1]);if(_0x59fbfb===_0x436b47(0x110)){const _0x1bdd1e=_0x53aeb0[_0x436b47(0x117)](/UPDATE\s+([^\s,)(]+)/i);addTable(_0x670325,_0x1bdd1e?.[0x1]);}return _0x670325;}function addTable(_0x3e8bfa,_0x1ced01){const _0x2a6080=a296_0x3d7e9e,_0x11a032=_0x1ced01?.['replace'](/[`"]/g,'');_0x11a032&&_0x11a032!==UNRESOLVED_SQL_FRAGMENT&&!_0x3e8bfa[_0x2a6080(0x15e)](_0x11a032)&&_0x3e8bfa[_0x2a6080(0x13e)](_0x11a032);}function a296_0x4e3d(_0xcae79f,_0x518f16){_0xcae79f=_0xcae79f-0x107;const _0x41c667=a296_0x41c6();let _0x4e3dad=_0x41c667[_0xcae79f];return _0x4e3dad;}function extractParameters(_0x2e5a31){const _0x21386e=a296_0x3d7e9e,_0x5e3cc8=new Set();for(const _0x203e85 of _0x2e5a31[_0x21386e(0x141)](/[#$]\{\s*([A-Za-z_][\w.]*)\s*(?=[,}])/g)){if(_0x203e85[0x1])_0x5e3cc8[_0x21386e(0x16b)](_0x203e85[0x1]);}return Array[_0x21386e(0x144)](_0x5e3cc8);}export function validateSql(_0x4b86c4){const _0x36c998=a296_0x3d7e9e,_0x3a5889=normalizeSqlForStaticAnalysis(_0x4b86c4),_0x229093=detectNormalizedSqlType(_0x3a5889),_0x177472=stripStaticAnalysisMarkers(_0x3a5889[_0x36c998(0x107)]),_0x53c335=_0x3a5889[_0x36c998(0x10c)]?[]:extractTables(_0x177472,_0x229093[_0x36c998(0x111)]),_0x59228e=_0x3a5889[_0x36c998(0x10c)]?[]:extractParameters(_0x177472);if(_0x229093[_0x36c998(0x16c)])return{'valid':![],'sqlType':_0x229093,'tables':_0x53c335,'parameters':_0x59228e,'message':_0x229093[_0x36c998(0x157)]||_0x229093[_0x36c998(0x111)]+'\x20statements\x20require\x20explicit\x20review.\x20Local\x20analysis\x20does\x20not\x20authorize\x20saving\x20or\x20execution.'};if(_0x229093[_0x36c998(0x111)]===_0x36c998(0x14f))return{'valid':![],'sqlType':_0x229093,'tables':_0x53c335,'parameters':_0x59228e,'message':_0x3a5889[_0x36c998(0x10c)]?_0x36c998(0x10a)+_0x3a5889['error']:_0x229093['reason']?_0x36c998(0x10a)+_0x229093[_0x36c998(0x157)]:_0x36c998(0x140)};return{'valid':!![],'sqlType':_0x229093,'tables':_0x53c335,'parameters':_0x59228e,'message':_0x229093[_0x36c998(0x111)]+_0x36c998(0x119)+(_0x53c335['length']?_0x53c335[_0x36c998(0x149)](',\x20'):_0x36c998(0x125))+(_0x59228e['length']?_0x36c998(0x14a)+_0x59228e[_0x36c998(0x149)](',\x20'):'')};}
|
|
1
|
+
const a296_0x5c2e02=a296_0x2358;(function(_0x347599,_0x2a2496){const _0x46a384=a296_0x2358,_0x4e5934=_0x347599();while(!![]){try{const _0xc329e9=parseInt(_0x46a384(0x19f))/0x1*(-parseInt(_0x46a384(0x16e))/0x2)+parseInt(_0x46a384(0x192))/0x3+-parseInt(_0x46a384(0x1a6))/0x4+parseInt(_0x46a384(0x1ac))/0x5+-parseInt(_0x46a384(0x191))/0x6*(-parseInt(_0x46a384(0x17e))/0x7)+parseInt(_0x46a384(0x190))/0x8*(-parseInt(_0x46a384(0x15a))/0x9)+-parseInt(_0x46a384(0x199))/0xa;if(_0xc329e9===_0x2a2496)break;else _0x4e5934['push'](_0x4e5934['shift']());}catch(_0x1d0706){_0x4e5934['push'](_0x4e5934['shift']());}}}(a296_0x4ede,0xd697b));const MYBATIS_OUTER_TAGS=new Map([[a296_0x5c2e02(0x14b),a296_0x5c2e02(0x18d)],[a296_0x5c2e02(0x1a9),a296_0x5c2e02(0x1a2)],[a296_0x5c2e02(0x163),a296_0x5c2e02(0x172)],[a296_0x5c2e02(0x198),a296_0x5c2e02(0x1a1)]]),MYBATIS_DYNAMIC_TAGS=new Set(['if',a296_0x5c2e02(0x15b),a296_0x5c2e02(0x185),'choose','when',a296_0x5c2e02(0x18e),a296_0x5c2e02(0x1a5),a296_0x5c2e02(0x175),a296_0x5c2e02(0x1ad),a296_0x5c2e02(0x14a),a296_0x5c2e02(0x1b1)]),MYBATIS_BRANCH_TAGS=new Set(['if',a296_0x5c2e02(0x185),a296_0x5c2e02(0x164),a296_0x5c2e02(0x1ab),a296_0x5c2e02(0x18e)]);export const MYBATIS_DYNAMIC_START_MARKER=a296_0x5c2e02(0x1b0);export const MYBATIS_DYNAMIC_END_MARKER=a296_0x5c2e02(0x155);export const MYBATIS_INCLUDE_MARKER=a296_0x5c2e02(0x17c);const UNRESOLVED_SQL_FRAGMENT=a296_0x5c2e02(0x1a3),MYBATIS_OUTER_TAG_PATTERN=new RegExp(a296_0x5c2e02(0x17f)+[...MYBATIS_OUTER_TAGS[a296_0x5c2e02(0x186)]()][a296_0x5c2e02(0x181)]('|')+a296_0x5c2e02(0x161),'i');export function normalizeSqlForStaticAnalysis(_0xfcf15e){const _0xe41442=a296_0x5c2e02,_0x1e0576=typeof _0xfcf15e==='string'?_0xfcf15e:'';if(detectSqlSourceMode(_0x1e0576)===_0xe41442(0x19e))return{'sql':_0x1e0576,'mode':_0xe41442(0x19e)};let _0x25fdf8=0x0,_0x1e152f='',_0x16f27a,_0x174768=![],_0x3ef655=![];const _0x136055=[];while(_0x25fdf8<_0x1e0576[_0xe41442(0x176)]){if(_0x1e0576['startsWith'](_0xe41442(0x157),_0x25fdf8)){const _0x22bca8=_0x1e0576[_0xe41442(0x149)](_0xe41442(0x151),_0x25fdf8+0x4);if(_0x22bca8<0x0)return invalidMybatisSource(_0xe41442(0x193));_0x1e152f+='\x20',_0x25fdf8=_0x22bca8+0x3;continue;}if(_0x1e0576['startsWith'](_0xe41442(0x19b),_0x25fdf8)){if(!_0x174768||_0x3ef655)return invalidMybatisSource(_0xe41442(0x152));const _0x22a391=_0x1e0576[_0xe41442(0x149)](_0xe41442(0x154),_0x25fdf8+0x9);if(_0x22a391<0x0)return invalidMybatisSource('Unterminated\x20CDATA\x20section.');_0x1e152f+=_0x1e0576[_0xe41442(0x17b)](_0x25fdf8+0x9,_0x22a391),_0x25fdf8=_0x22a391+0x3;continue;}if(_0x1e0576['startsWith']('<?',_0x25fdf8)){if(_0x174768)return invalidMybatisSource(_0xe41442(0x196));const _0x2062ec=_0x1e0576[_0xe41442(0x149)]('?>',_0x25fdf8+0x2);if(_0x2062ec<0x0)return invalidMybatisSource('Unterminated\x20XML\x20declaration.');_0x1e152f+='\x20',_0x25fdf8=_0x2062ec+0x2;continue;}if(_0x1e0576[_0x25fdf8]!=='<'){const _0x4893af=_0x1e0576['indexOf']('<',_0x25fdf8),_0x61013e=_0x4893af<0x0?_0x1e0576['length']:_0x4893af,_0x1ae66a=_0x1e0576[_0xe41442(0x17b)](_0x25fdf8,_0x61013e);if((!_0x174768||_0x3ef655)&&_0x1ae66a['trim']())return invalidMybatisSource('SQL\x20text\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.');if(_0x174768&&!_0x3ef655){const _0x3cc5a6=decodeXmlEntities(_0x1ae66a);if(_0x3cc5a6===null)return invalidMybatisSource(_0xe41442(0x14c));_0x1e152f+=_0x3cc5a6;}else _0x1e152f+='\x20';_0x25fdf8=_0x61013e;continue;}const _0x1f5f01=findXmlTagEnd(_0x1e0576,_0x25fdf8);if(_0x1f5f01<0x0)return invalidMybatisSource('Unterminated\x20MyBatis\x20XML\x20tag.');const _0x53866d=_0x1e0576[_0xe41442(0x17b)](_0x25fdf8,_0x1f5f01+0x1),_0x21104a=/^<\s*(\/?)\s*([A-Za-z][\w:-]*)([\s\S]*?)(\/?)\s*>$/[_0xe41442(0x1b2)](_0x53866d);if(!_0x21104a)return invalidMybatisSource(_0xe41442(0x14e));const _0x230a01=_0x21104a[0x1]==='/',_0x3be770=_0x21104a[0x2]??'',_0x8ab5b=_0x3be770[_0xe41442(0x195)](),_0x237c75=_0x21104a[0x3]??'',_0x2e3f5e=_0x21104a[0x4]==='/',_0x570d7d=MYBATIS_OUTER_TAGS[_0xe41442(0x15f)](_0x8ab5b);if(!_0x570d7d&&!MYBATIS_DYNAMIC_TAGS[_0xe41442(0x167)](_0x8ab5b))return invalidMybatisSource(_0xe41442(0x178)+_0x8ab5b+'>.');if(!_0x570d7d&&_0x3be770!==_0x8ab5b)return invalidMybatisSource(_0xe41442(0x158)+_0x3be770+'>.');if(_0x230a01){if(_0x237c75['trim']()||_0x2e3f5e)return invalidMybatisSource(_0xe41442(0x177)+_0x3be770+'>.');const _0x3b050e=_0x136055['at'](-0x1);if(!_0x3b050e||(_0x3b050e[_0xe41442(0x183)]?_0x3b050e[_0xe41442(0x166)]!==_0x8ab5b:_0x3b050e[_0xe41442(0x19a)]!==_0x3be770))return invalidMybatisSource(_0xe41442(0x1af)+_0x3be770+'>.');_0x136055[_0xe41442(0x17a)]();if(_0x3b050e[_0xe41442(0x183)])_0x3ef655=!![];_0x1e152f+=MYBATIS_BRANCH_TAGS['has'](_0x8ab5b)?'\x20'+MYBATIS_DYNAMIC_END_MARKER+'\x20':'\x20';}else{if(!hasWellFormedXmlAttributes(_0x237c75))return invalidMybatisSource('Invalid\x20attributes\x20on\x20MyBatis\x20XML\x20tag:\x20<'+_0x3be770+'>.');if(_0x8ab5b===_0xe41442(0x1b1)&&(!_0x2e3f5e||_0x136055['at'](-0x1)?.['tagName']!=='include'))return invalidMybatisSource('MyBatis\x20<property>\x20must\x20be\x20a\x20self-closing\x20direct\x20child\x20of\x20<include>.');if(_0x570d7d){if(_0x174768||_0x136055[_0xe41442(0x176)]>0x0)return invalidMybatisSource(_0xe41442(0x160));_0x174768=!![],_0x3ef655=_0x2e3f5e,_0x16f27a=_0x570d7d;}else{if(!_0x174768||_0x3ef655)return invalidMybatisSource(_0xe41442(0x18b)+_0x3be770+'>.');}_0x1e152f+=_0x8ab5b===_0xe41442(0x15b)?_0xe41442(0x1a7):_0x8ab5b===_0xe41442(0x175)?_0xe41442(0x1a8):_0x8ab5b==='include'?'\x20'+MYBATIS_INCLUDE_MARKER+'\x20':MYBATIS_BRANCH_TAGS[_0xe41442(0x167)](_0x8ab5b)&&!_0x2e3f5e?'\x20'+MYBATIS_DYNAMIC_START_MARKER+'\x20':'\x20',!_0x2e3f5e&&_0x136055['push']({'rawName':_0x3be770,'tagName':_0x8ab5b,'outer':!!_0x570d7d});}_0x25fdf8=_0x1f5f01+0x1;}if(_0x136055[_0xe41442(0x176)]>0x0)return invalidMybatisSource('Unclosed\x20MyBatis\x20XML\x20tag:\x20<'+_0x136055['at'](-0x1)?.['rawName']+'>.');if(!_0x174768||!_0x3ef655)return invalidMybatisSource(_0xe41442(0x162));return{'sql':_0x1e152f[_0xe41442(0x1a5)](),'mode':_0xe41442(0x14d),..._0x16f27a?{'statementType':_0x16f27a}:{}};}function a296_0x2358(_0x3d8eae,_0x2513d3){_0x3d8eae=_0x3d8eae-0x149;const _0x4edef4=a296_0x4ede();let _0x2358c7=_0x4edef4[_0x3d8eae];return _0x2358c7;}function hasWellFormedXmlAttributes(_0x486ae1){const _0x555d34=a296_0x5c2e02;let _0x5eda80=0x0;const _0x14ac0f=new Set();while(_0x5eda80<_0x486ae1['length']){while(_0x5eda80<_0x486ae1[_0x555d34(0x176)]&&/\s/['test'](_0x486ae1[_0x5eda80]??''))_0x5eda80+=0x1;if(_0x5eda80>=_0x486ae1['length'])return!![];const _0x4d1239=/^[A-Za-z_:][\w:.-]*/['exec'](_0x486ae1[_0x555d34(0x17b)](_0x5eda80)),_0x30ed1e=_0x4d1239?.[0x0];if(!_0x30ed1e||_0x14ac0f['has'](_0x30ed1e))return![];_0x14ac0f[_0x555d34(0x153)](_0x30ed1e),_0x5eda80+=_0x30ed1e[_0x555d34(0x176)];while(_0x5eda80<_0x486ae1[_0x555d34(0x176)]&&/\s/[_0x555d34(0x187)](_0x486ae1[_0x5eda80]??''))_0x5eda80+=0x1;if(_0x486ae1[_0x5eda80]!=='=')return![];_0x5eda80+=0x1;while(_0x5eda80<_0x486ae1[_0x555d34(0x176)]&&/\s/[_0x555d34(0x187)](_0x486ae1[_0x5eda80]??''))_0x5eda80+=0x1;const _0x21c56c=_0x486ae1[_0x5eda80];if(_0x21c56c!=='\x22'&&_0x21c56c!=='\x27')return![];_0x5eda80+=0x1;const _0x6ae2f4=_0x486ae1[_0x555d34(0x149)](_0x21c56c,_0x5eda80);if(_0x6ae2f4<0x0)return![];if(decodeXmlEntities(_0x486ae1[_0x555d34(0x17b)](_0x5eda80,_0x6ae2f4))===null)return![];_0x5eda80=_0x6ae2f4+0x1;}return!![];}function a296_0x4ede(){const _0xce09b0=['UNKNOWN','DDL\x20statements\x20require\x20explicit\x20review','some','MyBatis\x20dynamic\x20tag\x20must\x20be\x20inside\x20the\x20statement\x20wrapper:\x20<','includes','SELECT','otherwise','\x20statements\x20require\x20explicit\x20review.\x20Local\x20analysis\x20does\x20not\x20authorize\x20saving\x20or\x20execution.','1972616uoNERp','611670HPPcbR','3666816lTGLup','Unterminated\x20XML\x20comment.','match','toLowerCase','XML\x20declarations\x20must\x20precede\x20the\x20MyBatis\x20statement\x20wrapper.','SHARE','delete','19246940KkPopV','rawName','<![CDATA[','LOCK\x20IN\x20SHARE\x20MODE','reason','sql','110UMbUIO','SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements','DELETE','INSERT','__RABETBASE_UNRESOLVED_SQL_FRAGMENT__','WITH','trim','1355488wQLHsn','\x20WHERE\x20','\x20SET\x20','insert','isDangerous','when','7456335EmPSXL','bind','NOT','Mismatched\x20MyBatis\x20XML\x20closing\x20tag:\x20</','__RABETBASE_MYBATIS_DYNAMIC_START__','property','exec','indexOf','include','select','Invalid\x20XML\x20entity\x20reference.','mybatisXml','Invalid\x20MyBatis\x20XML\x20tag.','replaceAll','Local\x20analysis\x20could\x20not\x20parse\x20the\x20WITH\x20prefix;\x20this\x20is\x20a\x20local\x20capability\x20limit,\x20not\x20a\x20platform\x20rejection.','-->','CDATA\x20sections\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','add',']]>','__RABETBASE_MYBATIS_DYNAMIC_END__','parseInt','<!--','MyBatis\x20dynamic\x20tag\x20names\x20must\x20be\x20lowercase:\x20<','startsWith','9bQyXab','where','Unable\x20to\x20detect\x20SQL\x20type.\x20','SET','\x20with\x20parameters:\x20','get','Multiple\x20MyBatis\x20statement\x20wrappers\x20are\x20not\x20supported.',')\x5cb','MyBatis\x20XML\x20must\x20contain\x20exactly\x20one\x20complete\x20statement\x20wrapper.','update','choose','RECURSIVE','tagName','has','filter','push','from','SQL\x20content\x20is\x20empty','replace','MATERIALIZED','15520ixrxuy','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','DELETE\x20statements\x20require\x20explicit\x20review','type','UPDATE','matchAll','DDL','set','length','Invalid\x20MyBatis\x20XML\x20closing\x20tag:\x20</','Unsupported\x20MyBatis\x20XML\x20tag:\x20<','statementType','pop','slice','__RABETBASE_MYBATIS_INCLUDE_UNRESOLVED__','error','105axuzVW','^<\x5cs*(?:','&','join','unknown\x20table(s)','outer','FOR','foreach','keys','test'];a296_0x4ede=function(){return _0xce09b0;};return a296_0x4ede();}export function detectSqlSourceMode(_0xddbae7){const _0x5f4aaf=a296_0x5c2e02;let _0x25f1af=0x0;const _0x10e9a0=()=>{const _0x39e080=a296_0x2358;while(_0x25f1af<_0xddbae7[_0x39e080(0x176)]&&/\s/[_0x39e080(0x187)](_0xddbae7[_0x25f1af]??''))_0x25f1af+=0x1;};_0x10e9a0();while(_0x25f1af<_0xddbae7['length']){if(_0xddbae7[_0x5f4aaf(0x159)](_0x5f4aaf(0x157),_0x25f1af)){const _0x215954=_0xddbae7[_0x5f4aaf(0x149)](_0x5f4aaf(0x151),_0x25f1af+0x4);if(_0x215954<0x0)return _0x5f4aaf(0x14d);_0x25f1af=_0x215954+0x3,_0x10e9a0();continue;}if(_0xddbae7[_0x5f4aaf(0x159)]('<?',_0x25f1af)){const _0x4b46b1=_0xddbae7['indexOf']('?>',_0x25f1af+0x2);if(_0x4b46b1<0x0)return'mybatisXml';_0x25f1af=_0x4b46b1+0x2,_0x10e9a0();continue;}break;}return MYBATIS_OUTER_TAG_PATTERN[_0x5f4aaf(0x187)](_0xddbae7[_0x5f4aaf(0x17b)](_0x25f1af))?_0x5f4aaf(0x14d):_0x5f4aaf(0x19e);}function invalidMybatisSource(_0x4cecab){return{'sql':'','mode':'mybatisXml','error':_0x4cecab};}function findXmlTagEnd(_0x2dd77b,_0x4a0735){const _0x14e26b=a296_0x5c2e02;let _0x582dbb;for(let _0x196bbe=_0x4a0735+0x1;_0x196bbe<_0x2dd77b[_0x14e26b(0x176)];_0x196bbe+=0x1){const _0x4c7d60=_0x2dd77b[_0x196bbe];if(_0x582dbb){if(_0x4c7d60===_0x582dbb)_0x582dbb=undefined;continue;}if(_0x4c7d60==='\x22'||_0x4c7d60==='\x27'){_0x582dbb=_0x4c7d60;continue;}if(_0x4c7d60==='>')return _0x196bbe;}return-0x1;}function decodeXmlEntities(_0x26fc24){const _0x31220a=a296_0x5c2e02;let _0x24ccc6=![];const _0x5ecd29=_0x26fc24[_0x31220a(0x16c)](/&(?:#x[0-9a-f]+;|#[0-9]+;|[A-Za-z_:][\w:.-]*;)?/g,_0x5b2ec4=>{const _0x46552e=_0x31220a;if(_0x5b2ec4==='<')return'<';if(_0x5b2ec4==='>')return'>';if(_0x5b2ec4==='"')return'\x22';if(_0x5b2ec4===''')return'\x27';if(_0x5b2ec4===_0x46552e(0x180))return'&';const _0x15b8f6=/^&#(?:x([0-9a-f]+)|([0-9]+));$/[_0x46552e(0x1b2)](_0x5b2ec4);if(_0x15b8f6){const _0x5067b3=_0x15b8f6[0x1],_0x2eeb33=_0x15b8f6[0x2],_0xe760fc=Number[_0x46552e(0x156)](_0x5067b3??_0x2eeb33??'',_0x5067b3?0x10:0xa);if(isValidXmlCharacter(_0xe760fc))return String['fromCodePoint'](_0xe760fc);}return _0x24ccc6=!![],'';});return _0x24ccc6?null:_0x5ecd29;}function isValidXmlCharacter(_0x471383){return _0x471383===0x9||_0x471383===0xa||_0x471383===0xd||_0x471383>=0x20&&_0x471383<=0xd7ff||_0x471383>=0xe000&&_0x471383<=0xfffd||_0x471383>=0x10000&&_0x471383<=0x10ffff;}export function detectSqlType(_0x544f8a){return detectNormalizedSqlType(normalizeSqlForStaticAnalysis(_0x544f8a));}function detectNormalizedSqlType(_0x30a927){const _0x3e06a3=a296_0x5c2e02;if(_0x30a927['error'])return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':_0x30a927[_0x3e06a3(0x17d)]};if(!_0x30a927['sql'][_0x3e06a3(0x1a5)]())return{'type':_0x3e06a3(0x188),'isSelectOnly':![],'isDangerous':![],'reason':_0x3e06a3(0x16b)};const _0x2156fa=tokenizeSqlForTypeAnalysis(_0x30a927[_0x3e06a3(0x19e)]),_0x458e07=_0x2156fa[_0x3e06a3(0x168)](_0x59f941=>_0x59f941!==MYBATIS_DYNAMIC_START_MARKER&&_0x59f941!==MYBATIS_DYNAMIC_END_MARKER),_0x37bd27=findMainStatementIndex(_0x458e07);if(_0x37bd27<0x0)return{'type':_0x3e06a3(0x188),'isSelectOnly':![],'isDangerous':![],'reason':_0x3e06a3(0x150)};const _0x184873=_0x458e07[_0x37bd27]??'',_0xf1fd29=_0x30a927[_0x3e06a3(0x179)]??_0x184873,_0x59437f=_0x2156fa[_0x3e06a3(0x18a)](_0x40cce4=>/^(DELETE|DROP|ALTER|CREATE|TRUNCATE)$/[_0x3e06a3(0x187)](_0x40cce4)),_0x210919=new Set();let _0x1dcc3c=![];for(let _0x1c3c9e=0x0;_0x1c3c9e<_0x2156fa[_0x3e06a3(0x176)];_0x1c3c9e+=0x1){const _0x4e4036=_0x2156fa[_0x1c3c9e];(_0x4e4036===_0x3e06a3(0x172)||_0x4e4036===_0x3e06a3(0x197))&&isLockingClauseKeyword(_0x2156fa,_0x1c3c9e)&&(_0x210919[_0x3e06a3(0x153)](_0x1c3c9e),_0x1dcc3c=!![]);if(_0x2156fa[_0x3e06a3(0x17b)](_0x1c3c9e,_0x1c3c9e+0x4)['join']('\x20')===_0x3e06a3(0x19c))_0x1dcc3c=!![];}if(_0xf1fd29===_0x3e06a3(0x18d)){const _0x1ac4fc=_0x2156fa['some']((_0xfcd751,_0x8febe)=>/^(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)$/[_0x3e06a3(0x187)](_0xfcd751)&&!_0x210919[_0x3e06a3(0x167)](_0x8febe));return{'type':_0x3e06a3(0x18d),'isSelectOnly':!_0x1ac4fc&&!_0x1dcc3c,'isLockingRead':_0x1dcc3c,'isDangerous':_0x1ac4fc,'reason':_0x1ac4fc?_0x3e06a3(0x16f):undefined};}if(_0xf1fd29===_0x3e06a3(0x1a2))return{'type':_0x3e06a3(0x1a2),'isSelectOnly':![],'isDangerous':_0x59437f,'reason':_0x59437f?_0x3e06a3(0x1a0):undefined};if(_0xf1fd29===_0x3e06a3(0x172))return{'type':_0x3e06a3(0x172),'isSelectOnly':![],'isDangerous':_0x59437f,'reason':_0x59437f?_0x3e06a3(0x1a0):undefined};if(_0xf1fd29===_0x3e06a3(0x1a1))return{'type':_0x3e06a3(0x1a1),'isSelectOnly':![],'isDangerous':!![],'reason':_0x3e06a3(0x170)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0x184873))return{'type':_0x3e06a3(0x174),'isSelectOnly':![],'isDangerous':!![],'reason':_0x3e06a3(0x189)};return{'type':_0x3e06a3(0x188),'isSelectOnly':![],'isDangerous':![]};}function isLockingClauseKeyword(_0x4d05dc,_0x1d6846){const _0x2272b6=a296_0x5c2e02,_0x55c69c=_0x4d05dc[_0x1d6846]===_0x2272b6(0x172)?[[_0x2272b6(0x184)],[_0x2272b6(0x184),'NO','KEY']]:[['FOR'],[_0x2272b6(0x184),'KEY']],_0x4dd011=_0x55c69c[_0x2272b6(0x18a)](_0x203f03=>{const _0x20e019=_0x2272b6,_0x2a12b0=_0x1d6846-_0x203f03[_0x20e019(0x176)];return _0x2a12b0>=0x0&&_0x4d05dc['slice'](_0x2a12b0,_0x1d6846)[_0x20e019(0x181)]('\x20')===_0x203f03[_0x20e019(0x181)]('\x20');});if(!_0x4dd011)return![];return!_0x4d05dc[_0x2272b6(0x17b)](_0x1d6846+0x1,_0x1d6846+0x5)[_0x2272b6(0x18c)](_0x2272b6(0x15d));}function findMainStatementIndex(_0x2eadd4){const _0x5920ea=a296_0x5c2e02;if(_0x2eadd4[0x0]!==_0x5920ea(0x1a4))return 0x0;let _0x48c374=_0x2eadd4[0x1]===_0x5920ea(0x165)?0x2:0x1;while(_0x48c374<_0x2eadd4[_0x5920ea(0x176)]){const _0x5017a6=_0x2eadd4[_0x48c374];if(!_0x5017a6||!(/^[A-Z_][\w$]*$/[_0x5920ea(0x187)](_0x5017a6)||/^[`"]/['test'](_0x5017a6)))return-0x1;_0x48c374+=0x1;if(_0x2eadd4[_0x48c374]==='('){_0x48c374=skipSqlParentheses(_0x2eadd4,_0x48c374);if(_0x48c374<0x0)return-0x1;}if(_0x2eadd4[_0x48c374]!=='AS')return-0x1;_0x48c374+=0x1;if(_0x2eadd4[_0x48c374]===_0x5920ea(0x1ae)&&_0x2eadd4[_0x48c374+0x1]===_0x5920ea(0x16d))_0x48c374+=0x2;else{if(_0x2eadd4[_0x48c374]==='MATERIALIZED')_0x48c374+=0x1;}_0x48c374=skipSqlParentheses(_0x2eadd4,_0x48c374);if(_0x48c374<0x0)return-0x1;if(_0x2eadd4[_0x48c374]!==','){const _0x58dbbc=_0x2eadd4[_0x48c374]==='('?_0x48c374+0x1:_0x48c374;return/^(SELECT|INSERT|UPDATE|DELETE)$/[_0x5920ea(0x187)](_0x2eadd4[_0x58dbbc]??'')?_0x58dbbc:-0x1;}_0x48c374+=0x1;}return-0x1;}function skipSqlParentheses(_0x3c6c96,_0xfa44cc){const _0x2d4c24=a296_0x5c2e02;if(_0x3c6c96[_0xfa44cc]!=='(')return-0x1;let _0xe520a4=0x0;for(let _0x35062d=_0xfa44cc;_0x35062d<_0x3c6c96[_0x2d4c24(0x176)];_0x35062d+=0x1){const _0x43ca11=_0x3c6c96[_0x35062d];if(_0x43ca11===';')return-0x1;if(_0x43ca11==='(')_0xe520a4+=0x1;if(_0x43ca11===')'&&--_0xe520a4===0x0)return _0x35062d+0x1;}return-0x1;}function stripStaticAnalysisMarkers(_0x10c063){const _0x5c535d=a296_0x5c2e02;return _0x10c063[_0x5c535d(0x14f)](MYBATIS_DYNAMIC_START_MARKER,'\x20')['replaceAll'](MYBATIS_DYNAMIC_END_MARKER,'\x20')[_0x5c535d(0x14f)](MYBATIS_INCLUDE_MARKER,'\x20'+UNRESOLVED_SQL_FRAGMENT+'\x20');}function tokenizeSqlForTypeAnalysis(_0x3bd4b4){const _0xaef30e=a296_0x5c2e02,_0x145bff=[],_0x157133=/\/\*[\s\S]*?\*\/|--[^\r\n]*|[#$]\{[^}]*\}|#[^\r\n]*|'(?:''|\\[\s\S]|[^'\\])*'|"(?:""|\\[\s\S]|[^"\\])*"|`(?:``|\\[\s\S]|[^`\\])*`|@[A-Za-z_]\w*|[A-Za-z_]\w*|\S/g;for(const _0x55a722 of _0x3bd4b4['matchAll'](_0x157133)){const _0x53d6ae=_0x55a722[0x0];if(_0x53d6ae[_0xaef30e(0x159)]('/*')||_0x53d6ae[_0xaef30e(0x159)]('--')||_0x53d6ae[_0xaef30e(0x159)]('#')&&!_0x53d6ae[_0xaef30e(0x159)]('#{'))continue;_0x145bff[_0xaef30e(0x169)](/^["`]/[_0xaef30e(0x187)](_0x53d6ae)?_0x53d6ae:/^[\x27@#$]/['test'](_0x53d6ae)?'?':_0x53d6ae['toUpperCase']());}return _0x145bff;}function extractTables(_0x106994,_0x51d535){const _0x2b1738=a296_0x5c2e02,_0xc3273c=_0x106994[_0x2b1738(0x16c)](/#\{[^}]*\}/g,'?')[_0x2b1738(0x16c)](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')[_0x2b1738(0x16c)](/--.*$/gm,'')['replace'](/\/\*[\s\S]*?\*\//g,''),_0x5af903=[],_0x4cb8b7=_0xc3273c[_0x2b1738(0x194)](/FROM\s+([^\s,)(]+)/i);addTable(_0x5af903,_0x4cb8b7?.[0x1]);for(const _0x5c63c0 of _0xc3273c[_0x2b1738(0x173)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){addTable(_0x5af903,_0x5c63c0[0x1]);}const _0x3ab276=_0xc3273c[_0x2b1738(0x194)](/INTO\s+([^\s(]+)/i);addTable(_0x5af903,_0x3ab276?.[0x1]);if(_0x51d535===_0x2b1738(0x172)){const _0x2db4b0=_0xc3273c[_0x2b1738(0x194)](/UPDATE\s+([^\s,)(]+)/i);addTable(_0x5af903,_0x2db4b0?.[0x1]);}return _0x5af903;}function addTable(_0xdf7daa,_0x475cf4){const _0x3f0f95=a296_0x5c2e02,_0x5cfe18=_0x475cf4?.[_0x3f0f95(0x16c)](/[`"]/g,'');_0x5cfe18&&_0x5cfe18!==UNRESOLVED_SQL_FRAGMENT&&!_0xdf7daa['includes'](_0x5cfe18)&&_0xdf7daa['push'](_0x5cfe18);}function extractParameters(_0x328bc7){const _0x2a80ad=a296_0x5c2e02,_0xb19131=new Set();for(const _0x45346f of _0x328bc7[_0x2a80ad(0x173)](/[#$]\{\s*([A-Za-z_][\w.]*)\s*(?=[,}])/g)){if(_0x45346f[0x1])_0xb19131[_0x2a80ad(0x153)](_0x45346f[0x1]);}return Array[_0x2a80ad(0x16a)](_0xb19131);}export function validateSql(_0x6d8eec){const _0x49cf11=a296_0x5c2e02,_0x464191=normalizeSqlForStaticAnalysis(_0x6d8eec),_0x513c49=detectNormalizedSqlType(_0x464191),_0x5ac7e0=stripStaticAnalysisMarkers(_0x464191[_0x49cf11(0x19e)]),_0x199fd4=_0x464191[_0x49cf11(0x17d)]?[]:extractTables(_0x5ac7e0,_0x513c49[_0x49cf11(0x171)]),_0x3e9241=_0x464191[_0x49cf11(0x17d)]?[]:extractParameters(_0x5ac7e0);if(_0x513c49[_0x49cf11(0x1aa)])return{'valid':![],'sqlType':_0x513c49,'tables':_0x199fd4,'parameters':_0x3e9241,'message':_0x513c49[_0x49cf11(0x19d)]||_0x513c49[_0x49cf11(0x171)]+_0x49cf11(0x18f)};if(_0x513c49['type']===_0x49cf11(0x188))return{'valid':![],'sqlType':_0x513c49,'tables':_0x199fd4,'parameters':_0x3e9241,'message':_0x464191['error']?'Unable\x20to\x20detect\x20SQL\x20type.\x20'+_0x464191[_0x49cf11(0x17d)]:_0x513c49[_0x49cf11(0x19d)]?_0x49cf11(0x15c)+_0x513c49[_0x49cf11(0x19d)]:'Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'};return{'valid':!![],'sqlType':_0x513c49,'tables':_0x199fd4,'parameters':_0x3e9241,'message':_0x513c49[_0x49cf11(0x171)]+'\x20query\x20targeting\x20'+(_0x199fd4['length']?_0x199fd4[_0x49cf11(0x181)](',\x20'):_0x49cf11(0x182))+(_0x3e9241['length']?_0x49cf11(0x15e)+_0x3e9241[_0x49cf11(0x181)](',\x20'):'')};}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a297_0xd4415a=a297_0x33e8;(function(_0x5f3b91,_0x645941){const _0x5c3ee0=a297_0x33e8,_0x4cb48f=_0x5f3b91();while(!![]){try{const _0x2e1c0b=-parseInt(_0x5c3ee0(0x115))/0x1+parseInt(_0x5c3ee0(0x101))/0x2*(-parseInt(_0x5c3ee0(0xfd))/0x3)+-parseInt(_0x5c3ee0(0x118))/0x4+parseInt(_0x5c3ee0(0x112))/0x5+parseInt(_0x5c3ee0(0x114))/0x6+-parseInt(_0x5c3ee0(0x106))/0x7*(-parseInt(_0x5c3ee0(0x10d))/0x8)+parseInt(_0x5c3ee0(0x10b))/0x9;if(_0x2e1c0b===_0x645941)break;else _0x4cb48f['push'](_0x4cb48f['shift']());}catch(_0x135fb8){_0x4cb48f['push'](_0x4cb48f['shift']());}}}(a297_0x5349,0xa993b));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};function a297_0x5349(){const _0x1887d3=['config_missing','Check\x20your\x20internet\x20connection\x20and\x20try\x20again.','\x20--help`\x20to\x20see\x20available\x20commands.','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.\x0a\x20\x20\x20\x20\x20\x20\x20Tip:\x20`','2002240QWjxdC','\x20workspace\x20add\x20<name>\x20--appcode\x20<code>\x20--global`\x20registers\x20a\x20reusable\x20global\x20app\x20profile.','4149138hSpRaq','821424CNfEUS','cancelled','Authentication\x20required','4297516NXALOS','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','1683597jrUQjn','Operation\x20cancelled.','Network\x20error:\x20','not_in_project','4siFWkG','Missing\x20required\x20flag:\x20--','\x20auth`\x20to\x20login\x20first.','apiError','unknown_command','14XODbIk','Not\x20in\x20a\x20','Set\x20appcode\x20via\x20`','Run\x20`','\x20project\x20directory','18742887IgycSM','validation','2153096xCPXjj'];a297_0x5349=function(){return _0x1887d3;};return a297_0x5349();}function a297_0x33e8(_0x4be877,_0x57e12c){_0x4be877=_0x4be877-0xfd;const _0x534991=a297_0x5349();let _0x33e874=_0x534991[_0x4be877];return _0x33e874;}const baseCliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a297_0xd4415a(0x109)+CLI_BIN_NAME+a297_0xd4415a(0x103),'configMissingHint':a297_0xd4415a(0x108)+CLI_BIN_NAME+a297_0xd4415a(0x111)+CLI_BIN_NAME+a297_0xd4415a(0x113),'notInProjectHint':a297_0xd4415a(0x119)});export const CliErrors={'authRequired'(_0xa38af0){const _0x3ef45b=a297_0xd4415a;return new CliError('auth_required',0x1,_0x3ef45b(0x117),_0xa38af0??_0x3ef45b(0x109)+CLI_BIN_NAME+_0x3ef45b(0x103));},'configMissing'(_0x4bd971){const _0x1858b3=a297_0xd4415a;return new CliError(_0x1858b3(0x10e),0x1,'Configuration\x20file\x20not\x20found',_0x4bd971??_0x1858b3(0x108)+CLI_BIN_NAME+_0x1858b3(0x111)+CLI_BIN_NAME+_0x1858b3(0x113));},'notInProject'(){const _0x2e18b3=a297_0xd4415a;return new CliError(_0x2e18b3(0x100),0x1,_0x2e18b3(0x107)+CLI_BIN_NAME+_0x2e18b3(0x10a),'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.');},'apiError'(_0x3160d5,_0x4eac92){const _0x12b169=a297_0xd4415a;return baseCliErrors[_0x12b169(0x104)](_0x3160d5,_0x4eac92);},'networkError'(_0x1ee275){const _0x4aa9cf=a297_0xd4415a;return new CliError('network_error',0x2,_0x4aa9cf(0xff)+_0x1ee275,_0x4aa9cf(0x10f));},'unknownCommand'(_0x16a97d){const _0x1f63ae=a297_0xd4415a;return new CliError(_0x1f63ae(0x105),0x1,'Unknown\x20command:\x20'+_0x16a97d,_0x1f63ae(0x109)+CLI_BIN_NAME+_0x1f63ae(0x110));},'flagMissing'(_0x47942d,_0x48f4bb){const _0x15176a=a297_0xd4415a;return new CliError('flag_missing',0x1,_0x15176a(0x102)+_0x47942d,_0x48f4bb);},'validation'(_0x5180c7,_0x1115eb){const _0x8ac6fa=a297_0xd4415a;return baseCliErrors[_0x8ac6fa(0x10c)](_0x5180c7,_0x1115eb);},'cancelled'(_0x46ad0a){const _0x319bea=a297_0xd4415a;return new CliError(_0x319bea(0x116),0x0,_0x46ad0a??_0x319bea(0xfe));}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2cf05a,_0x309bbe){const _0x2da906=a298_0x1608,_0x535b72=_0x2cf05a();while(!![]){try{const _0xb2c8be=-parseInt(_0x2da906(0x74))/0x1*(parseInt(_0x2da906(0x78))/0x2)+-parseInt(_0x2da906(0x80))/0x3*(-parseInt(_0x2da906(0x7f))/0x4)+-parseInt(_0x2da906(0x7e))/0x5+-parseInt(_0x2da906(0x77))/0x6+-parseInt(_0x2da906(0x76))/0x7*(parseInt(_0x2da906(0x7d))/0x8)+-parseInt(_0x2da906(0x7c))/0x9*(parseInt(_0x2da906(0x75))/0xa)+-parseInt(_0x2da906(0x79))/0xb*(-parseInt(_0x2da906(0x81))/0xc);if(_0xb2c8be===_0x309bbe)break;else _0x535b72['push'](_0x535b72['shift']());}catch(_0x1245b9){_0x535b72['push'](_0x535b72['shift']());}}}(a298_0x2598,0xd732f));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a298_0x3548f7}from'@lovrabet/cli-framework';function a298_0x1608(_0x343b97,_0x2cae4b){_0x343b97=_0x343b97-0x74;const _0x25987c=a298_0x2598();let _0x16086c=_0x25987c[_0x343b97];return _0x16086c;}import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';function a298_0x2598(){const _0x52df9b=['1578lYSJUZ','53978716hhLOdz','yes','map','1213686VPhnsi','49768WSAxOY','2724120XCqRQJ','496egjOoa','4809PpbUKx','12kDHlcA','1565YeUkYM','60hSYlNr','1309SBMkMm','2834478jxcKZC'];a298_0x2598=function(){return _0x52df9b;};return a298_0x2598();}export function buildAllFlags(_0x693454){const _0x38339b=a298_0x1608,_0x32d882=a298_0x3548f7(_0x693454,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0x693454))return _0x32d882;return _0x32d882[_0x38339b(0x7b)](_0x516f6a=>_0x516f6a['name']===_0x38339b(0x7a)?{..._0x516f6a,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x516f6a);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x53cac1,_0x282708){var _0x3c10bb=a299_0x2181,_0xd854fc=_0x53cac1();while(!![]){try{var _0x1c9f3a=parseInt(_0x3c10bb(0x19d))/0x1*(parseInt(_0x3c10bb(0x19f))/0x2)+-parseInt(_0x3c10bb(0x1a3))/0x3+parseInt(_0x3c10bb(0x199))/0x4*(parseInt(_0x3c10bb(0x19a))/0x5)+-parseInt(_0x3c10bb(0x1a0))/0x6+parseInt(_0x3c10bb(0x1a4))/0x7+parseInt(_0x3c10bb(0x1a2))/0x8+-parseInt(_0x3c10bb(0x19b))/0x9;if(_0x1c9f3a===_0x282708)break;else _0xd854fc['push'](_0xd854fc['shift']());}catch(_0x9a046d){_0xd854fc['push'](_0xd854fc['shift']());}}}(a299_0x3a47,0x3aaa0));function a299_0x3a47(){var _0x203c39=['def','4mAHJJH','structuredErrors','47118TZWiER','65826SzvOSH','defaultFormat','3694832rtqLPi','212445OYQRMD','2944116tzhiRn','compress','4632svEBDp','530dOoyLb','6996168walttn'];a299_0x3a47=function(){return _0x203c39;};return a299_0x3a47();}import{resolveOutputConfig}from'@lovrabet/cli-framework';function a299_0x2181(_0x4f6792,_0x1b0b4d){_0x4f6792=_0x4f6792-0x199;var _0x3a47b1=a299_0x3a47();var _0x2181ba=_0x3a47b1[_0x4f6792];return _0x2181ba;}export function usesStructuredErrorOutput(_0x551a7f){var _0x4e64be=a299_0x2181;return _0x551a7f?.[_0x4e64be(0x19e)]===!![];}export function resolveErrorOutputFormat(_0x51e7a5){var _0x1d7e10=a299_0x2181;if(!_0x51e7a5[_0x1d7e10(0x19c)])return _0x51e7a5[_0x1d7e10(0x1a1)]??_0x1d7e10(0x1a5);return resolveOutputConfig({'flags':_0x51e7a5['flags']??{},'def':_0x51e7a5[_0x1d7e10(0x19c)],'configDefault':_0x51e7a5[_0x1d7e10(0x1a1)]})['format'];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a300_0x25ee76=a300_0x21a0;function a300_0x36dd(){const _0x3eb2aa=['16TRosJI','28ocAuMM','4179728vtsTmt','664557KSUiGc','notification\x20config-delete','37113270gKtDkE','17kNItUY','14595525XsrBTY','kb\x20delete','service','223658tKRHpp','7834434gnDvoW','command','has','3223115fUwJku','menu\x20delete'];a300_0x36dd=function(){return _0x3eb2aa;};return a300_0x36dd();}(function(_0x240ef5,_0x2a6d93){const _0x302add=a300_0x21a0,_0x17b790=_0x240ef5();while(!![]){try{const _0x30decf=parseInt(_0x302add(0x129))/0x1*(-parseInt(_0x302add(0x12d))/0x2)+-parseInt(_0x302add(0x126))/0x3*(-parseInt(_0x302add(0x134))/0x4)+-parseInt(_0x302add(0x131))/0x5+-parseInt(_0x302add(0x12e))/0x6+-parseInt(_0x302add(0x135))/0x7*(-parseInt(_0x302add(0x133))/0x8)+-parseInt(_0x302add(0x12a))/0x9+parseInt(_0x302add(0x128))/0xa;if(_0x30decf===_0x2a6d93)break;else _0x17b790['push'](_0x17b790['shift']());}catch(_0x2ba5d3){_0x17b790['push'](_0x17b790['shift']());}}}(a300_0x36dd,0xeffcc));const EXPLICIT_YES_COMMANDS=new Set([a300_0x25ee76(0x132),a300_0x25ee76(0x12b),'notification\x20config-update',a300_0x25ee76(0x127)]);export const EXPLICIT_YES_FLAG_DESCRIPTION='Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan';function a300_0x21a0(_0xa13157,_0x4a1772){_0xa13157=_0xa13157-0x126;const _0x36dd36=a300_0x36dd();let _0x21a00d=_0x36dd36[_0xa13157];return _0x21a00d;}export function requiresExplicitYes(_0x3062b5){const _0x4a258f=a300_0x25ee76;return EXPLICIT_YES_COMMANDS[_0x4a258f(0x130)](_0x3062b5[_0x4a258f(0x12c)]+'\x20'+_0x3062b5[_0x4a258f(0x12f)]);}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a301_0x26362c=a301_0x41aa;(function(_0x44db19,_0x44a7f4){const _0x5b1ab7=a301_0x41aa,_0x27f9b0=_0x44db19();while(!![]){try{const _0x41371a=-parseInt(_0x5b1ab7(0x88))/0x1*(-parseInt(_0x5b1ab7(0x84))/0x2)+-parseInt(_0x5b1ab7(0x8a))/0x3+parseInt(_0x5b1ab7(0x85))/0x4+parseInt(_0x5b1ab7(0x87))/0x5+parseInt(_0x5b1ab7(0x83))/0x6+parseInt(_0x5b1ab7(0x86))/0x7*(-parseInt(_0x5b1ab7(0x8c))/0x8)+-parseInt(_0x5b1ab7(0x89))/0x9;if(_0x41371a===_0x44a7f4)break;else _0x27f9b0['push'](_0x27f9b0['shift']());}catch(_0x5296a0){_0x27f9b0['push'](_0x27f9b0['shift']());}}}(a301_0x38e8,0xc7459));function a301_0x41aa(_0x3e9bae,_0x37d1c3){_0x3e9bae=_0x3e9bae-0x83;const _0x38e8a3=a301_0x38e8();let _0x41aad9=_0x38e8a3[_0x3e9bae];return _0x41aad9;}import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a301_0x26362c(0x8b)];function a301_0x38e8(){const _0x168141=['371216vUhdwy','5384220DMYefs','59128vSpSTc','3672320ZxsqcK','14zSCpXq','3028890hrWodb','25CJBnyc','12414717qhCCRH','2615682SGyrem','validateFlags'];a301_0x38e8=function(){return _0x168141;};return a301_0x38e8();}
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a302_0x16ad(){const _0x26a0dc=['get','Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.','generateServiceHelp','Requires\x20appcode\x20(set\x20via\x20`','2586612LgZzQL','48296cBQGvI','202148EfpmqI','213001MmVxje','Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','203deYqdg','generateCommandHelp','1055862wHKFVH','88920xSbcth','\x20workspace\x20init`\x20or\x20--appcode).','replace','1224170eIAgnQ'];a302_0x16ad=function(){return _0x26a0dc;};return a302_0x16ad();}(function(_0x4db6ae,_0x370a40){const _0x317b13=a302_0x543c,_0x33196e=_0x4db6ae();while(!![]){try{const _0xf5b2ce=-parseInt(_0x317b13(0xfc))/0x1+parseInt(_0x317b13(0xfb))/0x2+parseInt(_0x317b13(0x100))/0x3+parseInt(_0x317b13(0x101))/0x4+parseInt(_0x317b13(0x104))/0x5+-parseInt(_0x317b13(0xf9))/0x6+-parseInt(_0x317b13(0xfe))/0x7*(-parseInt(_0x317b13(0xfa))/0x8);if(_0xf5b2ce===_0x370a40)break;else _0x33196e['push'](_0x33196e['shift']());}catch(_0x302e00){_0x33196e['push'](_0x33196e['shift']());}}}(a302_0x16ad,0x3d4b6));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{requiresExplicitYes}from'../framework/explicit-yes.js';function createGenerators(){const _0x14c514=a302_0x543c;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x1adba0=>serviceGroups[_0x14c514(0x105)](_0x1adba0),'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x14c514(0x108)+CLI_BIN_NAME+_0x14c514(0x102),'serviceUsageSuffix':'\x20[args]\x20[flags]'});}export function generateCommandHelp(_0x4d25c4){const _0x808599=a302_0x543c,_0x249e2b=createGenerators()[_0x808599(0xff)](_0x4d25c4);if(!requiresExplicitYes(_0x4d25c4))return _0x249e2b;return _0x249e2b[_0x808599(0x103)](_0x808599(0xfd),_0x808599(0x106));}export function generateServiceHelp(_0x2b4fea){const _0x307642=a302_0x543c;return createGenerators()[_0x307642(0x107)](_0x2b4fea);}function a302_0x543c(_0x5b6a65,_0x29765b){_0x5b6a65=_0x5b6a65-0xf9;const _0x16ad6e=a302_0x16ad();let _0x543cf8=_0x16ad6e[_0x5b6a65];return _0x543cf8;}export function generateFullHelp(){return createGenerators()['generateFullHelp']();}
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x25a459,_0x4d0304){var _0x4822df=a303_0x22bf,_0xea9921=_0x25a459();while(!![]){try{var _0x39f17f=-parseInt(_0x4822df(0x114))/0x1*(parseInt(_0x4822df(0x117))/0x2)+-parseInt(_0x4822df(0x111))/0x3+-parseInt(_0x4822df(0x110))/0x4*(parseInt(_0x4822df(0x10e))/0x5)+parseInt(_0x4822df(0x113))/0x6+-parseInt(_0x4822df(0x112))/0x7*(-parseInt(_0x4822df(0x118))/0x8)+parseInt(_0x4822df(0x116))/0x9+parseInt(_0x4822df(0x10f))/0xa*(parseInt(_0x4822df(0x115))/0xb);if(_0x39f17f===_0x4d0304)break;else _0xea9921['push'](_0xea9921['shift']());}catch(_0x18e7d4){_0xea9921['push'](_0xea9921['shift']());}}}(a303_0x5f11,0x924ae));function a303_0x22bf(_0x392c78,_0x3be1ec){_0x392c78=_0x392c78-0x10e;var _0x5f11dc=a303_0x5f11();var _0x22bf2d=_0x5f11dc[_0x392c78];return _0x22bf2d;}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';function a303_0x5f11(){var _0x1d6de5=['2145972vvHKGv','3hIYBqI','5665gRCkTN','2382831hhvIko','401444RKkudz','6806648sFXzKR','7915JjJorH','2780pIierj','124ItkcfC','1097907rMytCh','7BeCLUa'];a303_0x5f11=function(){return _0x1d6de5;};return a303_0x5f11();}export{riskLevelOrder}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x39a4c8,_0x448b20){const _0xd8d975=a304_0xd349,_0x521e27=_0x39a4c8();while(!![]){try{const _0x2d1ae2=parseInt(_0xd8d975(0x1ec))/0x1*(-parseInt(_0xd8d975(0x1e2))/0x2)+-parseInt(_0xd8d975(0x1eb))/0x3+-parseInt(_0xd8d975(0x1f2))/0x4+parseInt(_0xd8d975(0x1ef))/0x5*(-parseInt(_0xd8d975(0x1e7))/0x6)+-parseInt(_0xd8d975(0x1fb))/0x7*(parseInt(_0xd8d975(0x1f0))/0x8)+parseInt(_0xd8d975(0x1e9))/0x9*(parseInt(_0xd8d975(0x1ea))/0xa)+parseInt(_0xd8d975(0x1e5))/0xb;if(_0x2d1ae2===_0x448b20)break;else _0x521e27['push'](_0x521e27['shift']());}catch(_0x2ad4f1){_0x521e27['push'](_0x521e27['shift']());}}}(a304_0x5eb5,0x8a46e));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';function a304_0xd349(_0x31ed26,_0x443735){_0x31ed26=_0x31ed26-0x1e2;const _0x5eb556=a304_0x5eb5();let _0xd349b3=_0x5eb556[_0x31ed26];return _0xd349b3;}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x91fa1a,_0x209d1a){const _0x45d033=a304_0xd349,_0x14a83e=_0x91fa1a['_notice'],{_notice:_0x114fe7,..._0x5518b0}=_0x91fa1a;void _0x114fe7,baseFormatOutput(_0x5518b0,_0x209d1a),_0x209d1a[_0x45d033(0x1f4)]==='pretty'&&printPrettyNotice(_0x14a83e);}export function formatCliError(_0x1f25c5,_0x1105d3){const _0xdba0ef=a304_0xd349;if(_0x1105d3[_0xdba0ef(0x1f4)]==='pretty')return![];const _0x38a756=_0x1f25c5[_0xdba0ef(0x1f9)],_0x32a452={'ok':![],'command':_0x1105d3[_0xdba0ef(0x1fd)],'risk':_0x1105d3[_0xdba0ef(0x1f8)],'data':_0x38a756??null,'error':{'code':_0x1f25c5[_0xdba0ef(0x1e8)],'message':_0x1f25c5[_0xdba0ef(0x1ed)],..._0x1f25c5[_0xdba0ef(0x1e6)]?{'hint':_0x1f25c5[_0xdba0ef(0x1e6)]}:{}}},_0x7ae550=_0x1105d3[_0xdba0ef(0x1f4)]==='json'?JSON[_0xdba0ef(0x1fa)](_0x32a452,null,0x2):JSON['stringify'](_0x32a452);let _0x7452cf=_0x7ae550;if(_0x1105d3[_0xdba0ef(0x1f6)]?.[_0xdba0ef(0x1f7)]())try{_0x7452cf=applyJqFilter(_0x7ae550,_0x1105d3[_0xdba0ef(0x1f6)]);}catch(_0x8dc276){const _0x76e9ff=_0x8dc276 instanceof CliError?_0x8dc276:CliErrors[_0xdba0ef(0x1e3)](_0xdba0ef(0x1f3)+(_0x8dc276 instanceof Error?_0x8dc276[_0xdba0ef(0x1ed)]:String(_0x8dc276))),_0x2c26fc={..._0x32a452,'error':{'code':_0x76e9ff[_0xdba0ef(0x1e8)],'message':_0x76e9ff[_0xdba0ef(0x1ed)],..._0x76e9ff[_0xdba0ef(0x1e6)]?{'hint':_0x76e9ff[_0xdba0ef(0x1e6)]}:{},'cause':_0x32a452[_0xdba0ef(0x1e4)]}};_0x7452cf=_0x1105d3[_0xdba0ef(0x1f4)]===_0xdba0ef(0x1fc)?JSON[_0xdba0ef(0x1fa)](_0x2c26fc,null,0x2):JSON[_0xdba0ef(0x1fa)](_0x2c26fc);}return process[_0xdba0ef(0x1f5)][_0xdba0ef(0x1ee)](_0x7452cf['endsWith']('\x0a')?_0x7452cf:_0x7452cf+'\x0a'),!![];}function a304_0x5eb5(){const _0x3e4c36=['hint','82056ltJhOT','code','46098OFwUfV','2000woFvFp','2513115ZNXqac','641FkfyAb','message','write','370tzhSse','908536iGsTtV','update','1600032yvQSXu','jq:\x20','format','stdout','jqFilter','trim','risk','data','stringify','35osuBEm','json','command','622dKdJFN','validation','error','28147955kCLlsJ'];a304_0x5eb5=function(){return _0x3e4c36;};return a304_0x5eb5();}function printPrettyNotice(_0x491bd7){const _0x4f4719=a304_0xd349;if(!_0x491bd7?.['update'])return;console[_0x4f4719(0x1e4)](_0x491bd7[_0x4f4719(0x1f1)][_0x4f4719(0x1ed)]+'\x20('+_0x491bd7[_0x4f4719(0x1f1)]['url']+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x46b12a,_0x35af45){var _0x544d11=a305_0x5da5,_0x7f791d=_0x46b12a();while(!![]){try{var _0x425e4e=-parseInt(_0x544d11(0x1ae))/0x1*(-parseInt(_0x544d11(0x1b6))/0x2)+parseInt(_0x544d11(0x1b1))/0x3+-parseInt(_0x544d11(0x1b5))/0x4*(parseInt(_0x544d11(0x1b2))/0x5)+-parseInt(_0x544d11(0x1b4))/0x6+parseInt(_0x544d11(0x1b8))/0x7*(-parseInt(_0x544d11(0x1b7))/0x8)+parseInt(_0x544d11(0x1af))/0x9+parseInt(_0x544d11(0x1b3))/0xa*(-parseInt(_0x544d11(0x1b0))/0xb);if(_0x425e4e===_0x35af45)break;else _0x7f791d['push'](_0x7f791d['shift']());}catch(_0x193637){_0x7f791d['push'](_0x7f791d['shift']());}}}(a305_0x5f37,0xc6c18));function a305_0x5f37(){var _0x559534=['6706980prLMIA','7997ImMXvu','3768039aVZArR','496040sRexcF','10210abNqXE','3507612FhllkD','16QgKbYd','324286sevRGr','16hWTeAY','1527001yvNucN','6zWIvBQ'];a305_0x5f37=function(){return _0x559534;};return a305_0x5f37();}function a305_0x5da5(_0x62efd6,_0x1d1f55){_0x62efd6=_0x62efd6-0x1ae;var _0x5f37d6=a305_0x5f37();var _0x5da525=_0x5f37d6[_0x62efd6];return _0x5da525;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a306_0x5b6b(_0x5473fc,_0x499dfa){_0x5473fc=_0x5473fc-0x1cd;const _0x444c1e=a306_0x444c();let _0x5b6bf4=_0x444c1e[_0x5473fc];return _0x5b6bf4;}function a306_0x444c(){const _0x3e8a2e=['.\x20Run\x20`','13146gqXjEP','\x22.\x20','3789457BFzgGZ','9578871wFzyMK','profileName','validation','alias','Available\x20aliases:\x20','316cakVch','7886744OPokXb','43026750eIHgaM','code','type','Unknown\x20alias\x20\x22','flags','string','\x20api\x20pull`\x20first.','name','some','No\x20model\x20aliases\x20found\x20in\x20','length','join','424iNiaWP','map','12yZlskG','filePath','971136baqcqR','47615YduSMd','`\x20requires\x20either\x20--code\x20or\x20--alias.'];a306_0x444c=function(){return _0x3e8a2e;};return a306_0x444c();}(function(_0x31866e,_0x1e3d22){const _0x5b2e57=a306_0x5b6b,_0x5e561c=_0x31866e();while(!![]){try{const _0x330556=-parseInt(_0x5b2e57(0x1e3))/0x1+parseInt(_0x5b2e57(0x1d1))/0x2*(-parseInt(_0x5b2e57(0x1e7))/0x3)+parseInt(_0x5b2e57(0x1df))/0x4*(-parseInt(_0x5b2e57(0x1e4))/0x5)+parseInt(_0x5b2e57(0x1e1))/0x6*(parseInt(_0x5b2e57(0x1e9))/0x7)+-parseInt(_0x5b2e57(0x1d2))/0x8+-parseInt(_0x5b2e57(0x1ea))/0x9+parseInt(_0x5b2e57(0x1d3))/0xa;if(_0x330556===_0x1e3d22)break;else _0x5e561c['push'](_0x5e561c['shift']());}catch(_0x53afb5){_0x5e561c['push'](_0x5e561c['shift']());}}}(a306_0x444c,0xa1b0d));import{CliErrors}from'../errors.js';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(_0x3fc727,_0x305311,_0x32259d,_0x5b7415,_0x33cb3f,_0x6b0b84){const _0x150b1d=a306_0x5b6b,_0x43d1db=_0x3fc727[_0x150b1d(0x1d7)][_0x150b1d(0x1db)](_0x197a2b=>_0x197a2b[_0x150b1d(0x1da)]===_0x150b1d(0x1d4)&&_0x197a2b['type']==='string'),_0x19180c=_0x3fc727[_0x150b1d(0x1d7)][_0x150b1d(0x1db)](_0x43579f=>_0x43579f['name']===_0x150b1d(0x1cf)&&_0x43579f[_0x150b1d(0x1d5)]===_0x150b1d(0x1d8));if(!_0x43d1db||!_0x19180c)return;const _0x364e03=_0x305311['code']?String(_0x305311[_0x150b1d(0x1d4)]):'',_0x31ad1e=_0x305311[_0x150b1d(0x1cf)]?String(_0x305311[_0x150b1d(0x1cf)]):'';if(!_0x364e03&&!_0x31ad1e)throw CliErrors[_0x150b1d(0x1ce)]('`'+_0x5b7415+_0x150b1d(0x1e5));if(_0x31ad1e&&!_0x364e03){const _0x4aa0f1=resolveApiModelSource(_0x32259d,_0x33cb3f,_0x6b0b84),_0x2cb2cf=resolveAlias(_0x32259d,_0x31ad1e,undefined,_0x4aa0f1[_0x150b1d(0x1e2)],_0x4aa0f1[_0x150b1d(0x1cd)]);if(!_0x2cb2cf){const _0x3c4ae=listAliases(_0x32259d,undefined,_0x4aa0f1[_0x150b1d(0x1e2)],_0x4aa0f1[_0x150b1d(0x1cd)])[_0x150b1d(0x1e0)](_0xf29ed3=>_0xf29ed3[_0x150b1d(0x1cf)]),_0x1c1909=_0x3c4ae[_0x150b1d(0x1dd)]?_0x150b1d(0x1d0)+_0x3c4ae[_0x150b1d(0x1de)](',\x20'):_0x150b1d(0x1dc)+_0x32259d+_0x150b1d(0x1e6)+CLI_BIN_NAME+_0x150b1d(0x1d9);throw CliErrors[_0x150b1d(0x1ce)](_0x150b1d(0x1d6)+_0x31ad1e+_0x150b1d(0x1e8)+_0x1c1909);}_0x305311[_0x150b1d(0x1d4)]=_0x2cb2cf;}}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a307_0x1ee4(){const _0x1be1d1=['AppCode\x20\x22','validation','isNonInteractive','appCode','schema','string','882937wFThoE','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','explicitAppName','apiDir','\x0a\x20\x20','cancelled','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','194598iSAPoj','Current\x20resolved\x20appcode\x20is\x20\x22','pageSize','rawFlags','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','mergedCli','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','High-risk\x20operation\x20`','authRequired','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','all','9xRvKMB','resolveApiDomain','241350EjLyei','_notice','89110YhpAfK','appcode','service','currentApp','name','configMissing','1137296dqRiNH','22676IOWwhg','hasFormat','none','../core/api-client.js','toUpperCase','Edit\x20the\x20config\x20file\x20manually','selectedAppName','resolveAppCode','1061360VYdtGj','execute','production','apps','16fiziCO','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','pretty','48lobsDu','includes','keys','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','2LSYjgq','resolve','map','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','RABETBASE_APPCODE','object','update','catch','has','doctor','filter','⚠\x20\x20High-risk\x20operation:\x20','LOVRABET_APPCODE','nonInteractive','message','7kFKEeu','Set\x20appcode\x20via\x20`','defaultPageSize','value','join','command','format','defaultApp','length','formatOutput'];a307_0x1ee4=function(){return _0x1be1d1;};return a307_0x1ee4();}(function(_0x16fec8,_0x1ec403){const _0x23f6dd=a307_0x47fc,_0x2ac146=_0x16fec8();while(!![]){try{const _0x833884=-parseInt(_0x23f6dd(0x15f))/0x1*(-parseInt(_0x23f6dd(0x172))/0x2)+parseInt(_0x23f6dd(0x19b))/0x3+-parseInt(_0x23f6dd(0x16b))/0x4*(-parseInt(_0x23f6dd(0x158))/0x5)+parseInt(_0x23f6dd(0x156))/0x6*(parseInt(_0x23f6dd(0x182))/0x7)+parseInt(_0x23f6dd(0x15e))/0x8*(parseInt(_0x23f6dd(0x154))/0x9)+parseInt(_0x23f6dd(0x167))/0xa+-parseInt(_0x23f6dd(0x192))/0xb*(parseInt(_0x23f6dd(0x16e))/0xc);if(_0x833884===_0x1ec403)break;else _0x2ac146['push'](_0x2ac146['shift']());}catch(_0x8853e1){_0x2ac146['push'](_0x2ac146['shift']());}}}(a307_0x1ee4,0x1ed4d));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a307_0x9c03b4}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x35c22e){const _0x520eda=a307_0x47fc;return typeof _0x35c22e===_0x520eda(0x191)&&_0x35c22e['trim']()?_0x35c22e['trim']():undefined;}function a307_0x47fc(_0x505485,_0xe06536){_0x505485=_0x505485-0x149;const _0x1ee482=a307_0x1ee4();let _0x47fc8e=_0x1ee482[_0x505485];return _0x47fc8e;}function resolveEnvAppCode(){const _0x2a9a67=a307_0x47fc,_0x2457ae=stringFlag(process.env.RABETBASE_APPCODE);if(_0x2457ae)return{'name':_0x2a9a67(0x177),'value':_0x2457ae};const _0x556891=stringFlag(process.env.LOVRABET_APPCODE);if(_0x556891)return{'name':_0x2a9a67(0x17f),'value':_0x556891};return undefined;}function hasExplicitAppCode(_0x1c527d,_0x4b8d04){const _0x519e38=a307_0x47fc;return!!(stringFlag(_0x1c527d[_0x519e38(0x159)])||stringFlag(_0x4b8d04['appcode']));}function assertEnvAppCodeNotIgnored(_0x574e45,_0x4e8d4e,_0x3bafe1){const _0x5b9a8a=a307_0x47fc;if(!_0x4e8d4e||_0x3bafe1||_0x574e45===_0x4e8d4e[_0x5b9a8a(0x185)])return;const _0x106e00=_0x574e45?_0x5b9a8a(0x149)+_0x574e45+'\x22.':_0x5b9a8a(0x175);throw CliErrors[_0x5b9a8a(0x18d)](_0x4e8d4e['name']+'='+_0x4e8d4e[_0x5b9a8a(0x185)]+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0x106e00+'\x20'+(_0x5b9a8a(0x193)+_0x4e8d4e['name']+'\x22.'));}export function createPipelineEnv(_0x230b02,_0x462fda,_0x3383ba=[]){const _0x1da3d4=a307_0x47fc;return{'rawFlags':_0x462fda,'args':_0x3383ba,'resolveAppCode':()=>_0x230b02[_0x1da3d4(0x18f)],'resolveCookie':()=>_0x230b02['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a307_0x9c03b4(_0x462fda),'defaultFormat':_0x230b02['format'],'defaultPageSize':_0x230b02[_0x1da3d4(0x14a)],'defaultVerbose':_0x230b02['verbose'],'apiDir':_0x230b02[_0x1da3d4(0x196)],'riskLevel':_0x230b02['riskLevel'],'selectedAppName':_0x230b02[_0x1da3d4(0x195)],'mergedCli':{'defaultApp':_0x230b02[_0x1da3d4(0x189)],'currentApp':_0x230b02['currentApp'],'appCode':_0x230b02[_0x1da3d4(0x18f)],'apps':_0x230b02[_0x1da3d4(0x16a)]}};}export function createRabetbaseRunnerAdapter(_0x3637b4={}){const _0x52e19b=a307_0x47fc;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x2bf634=>PIPELINE_FLAG_NAMES[_0x52e19b(0x17b)](_0x2bf634[_0x52e19b(0x15c)]))['map'](({name:_0x1f9d8d,type:_0x45b6b6,description:_0xd8810})=>({'name':_0x1f9d8d,'type':_0x45b6b6,'description':_0xd8810})),'formatOutput':_0x3637b4[_0x52e19b(0x18b)]??formatOutput,'getCommandLabel'(_0x47562e){const _0x17fd48=_0x52e19b;return CLI_BIN_NAME+'\x20'+_0x47562e[_0x17fd48(0x15a)]+'\x20'+_0x47562e[_0x17fd48(0x187)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x2e21fb,{def:_0x269c7c}){const _0x10411e=_0x52e19b,_0xe940e9=_0x2e21fb[_0x10411e(0x16f)](_0x10411e(0x164))?_0x10411e(0x14c):_0x10411e(0x176)+_0x269c7c['risk']+_0x10411e(0x171)+_0x10411e(0x14c);return CliErrors[_0x10411e(0x18d)](_0x2e21fb+_0x10411e(0x197)+_0xe940e9);}},async 'prepare'(_0x37fac3,_0xdaf9b7,_0x7dd777,_0x227d7e){const _0x5ca847=_0x52e19b,_0x474bcc=_0xdaf9b7[_0x5ca847(0x196)]||DEFAULT_API_DIR,_0x2ac39e=hasExplicitAppCode(_0x7dd777,_0xdaf9b7[_0x5ca847(0x14b)]),_0x4c3162=stringFlag(_0x7dd777[_0x5ca847(0x159)])||stringFlag(_0xdaf9b7[_0x5ca847(0x14b)][_0x5ca847(0x159)]),_0x597188=_0xdaf9b7[_0x5ca847(0x14d)]?.[_0x5ca847(0x16a)]??{},_0x5ab9a=_0xdaf9b7[_0x5ca847(0x165)]||_0xdaf9b7[_0x5ca847(0x14d)]?.[_0x5ca847(0x15b)]||_0xdaf9b7[_0x5ca847(0x14d)]?.[_0x5ca847(0x189)],_0x22ae0c=_0x4c3162?Object['entries'](_0x597188)[_0x5ca847(0x17d)](([,_0x5c64fe])=>_0x5c64fe[_0x5ca847(0x159)]===_0x4c3162)[_0x5ca847(0x174)](([_0x4e39ec])=>_0x4e39ec):[];if(_0x22ae0c[_0x5ca847(0x18a)]>0x1&&!_0xdaf9b7[_0x5ca847(0x165)])throw CliErrors[_0x5ca847(0x18d)](_0x5ca847(0x18c)+_0x4c3162+'\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20'+_0x22ae0c[_0x5ca847(0x186)](',\x20')+'.','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.');resolveAliasToCode(_0x37fac3,_0x7dd777,_0x474bcc,_0x227d7e,_0xdaf9b7[_0x5ca847(0x166)](),_0x5ab9a);const _0x364a6e=resolveCommandAuthMode(_0x37fac3);let _0x2ddbbb='';if(_0x364a6e!==_0x5ca847(0x161)){_0x2ddbbb=_0xdaf9b7['resolveCookie']()||'';if(!_0x2ddbbb){if(_0x364a6e==='required')throw CliErrors[_0x5ca847(0x150)]();}else{const {setActiveCookie:_0x29e3b8}=await import(_0x5ca847(0x162));_0x29e3b8(_0x2ddbbb);}}const _0x57c1b8=_0xdaf9b7[_0x5ca847(0x166)]()??'';if(_0x37fac3['requiresAppCode']!==![]){if(!_0x2ac39e&&_0x5ab9a&&!_0x597188[_0x5ab9a]){const _0x3e7737=Object[_0x5ca847(0x170)](_0x597188);throw CliErrors[_0x5ca847(0x18d)]('App\x20\x22'+_0x5ab9a+_0x5ca847(0x199),_0x3e7737[_0x5ca847(0x18a)]>0x0?'Available:\x20'+_0x3e7737[_0x5ca847(0x186)](',\x20')+_0x5ca847(0x152)+CLI_BIN_NAME+_0x5ca847(0x16c):_0x5ca847(0x151)+CLI_BIN_NAME+_0x5ca847(0x16c));}assertEnvAppCodeNotIgnored(_0x57c1b8,resolveEnvAppCode(),_0x2ac39e);if(!_0x57c1b8){const _0x56615d=Object[_0x5ca847(0x170)](_0x597188);if(!_0x5ab9a&&_0x56615d['length']>0x1)throw CliErrors[_0x5ca847(0x15d)](_0x5ca847(0x194)+CLI_BIN_NAME+_0x5ca847(0x19a)+_0x56615d['join'](',\x20')+'.');throw CliErrors[_0x5ca847(0x15d)](_0x5ca847(0x183)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}}return{'defaults':{'booleans':{'verbose':_0xdaf9b7['defaultVerbose']},'numbers':{'pagesize':_0xdaf9b7[_0x5ca847(0x184)]}},'extras':{'appCode':_0x57c1b8,'cookie':_0x2ddbbb,'apiDomain':_0xdaf9b7[_0x5ca847(0x155)](),'apiDir':_0x474bcc,'selectedAppName':_0xdaf9b7[_0x5ca847(0x165)],'mergedCli':_0xdaf9b7['mergedCli']}};},'confirmHighRisk':_0x3637b4['confirmHighRisk']??(async({env:_0x5e021c,commandLabel:_0xb96f32})=>{const _0x2c3329=_0x52e19b;if(_0x5e021c[_0x2c3329(0x18e)])throw CliErrors[_0x2c3329(0x18d)](_0x2c3329(0x14f)+_0xb96f32+_0x2c3329(0x14e));await requireConfirmationPrompt({'lines':[_0x2c3329(0x17e)+_0xb96f32,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x4c95ba=>CliErrors[_0x2c3329(0x198)](_0x4c95ba)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x5f4d51=a307_0x47fc,{clearActiveCookie:_0x1e4fd8}=await import(_0x5f4d51(0x162));_0x1e4fd8();}export async function finalizeRabetbaseRuntimeState(){const _0x102b3f=a307_0x47fc;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x53e4fe},{initEnv:_0xa7c316}]=await Promise[_0x102b3f(0x153)]([import('../constant/domain.js'),import('../constant/env.js')]);_0x53e4fe(),_0xa7c316(_0x102b3f(0x169));}}export async function runCommand(_0x1df1c8,_0x2a5fb3,_0x5d54df=terminalRunnerAdapter){const _0x495c05=a307_0x47fc;assertRejectedFlags(_0x1df1c8,_0x2a5fb3[_0x495c05(0x14b)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x1df1c8)?withUpdateNotice(_0x1df1c8):_0x1df1c8,_0x2a5fb3,_0x5d54df);}function assertRejectedFlags(_0x225e0d,_0x5ef2fb){const _0x2239c6=a307_0x47fc;for(const _0x3519f9 of _0x225e0d['rejectedFlags']??[]){const _0x31996e=GLOBAL_FLAGS['find'](_0x3ae8f2=>_0x3ae8f2[_0x2239c6(0x15c)]===_0x3519f9[_0x2239c6(0x15c)]),_0x598728=new Set([_0x3519f9[_0x2239c6(0x15c)],toCamelCase(_0x3519f9[_0x2239c6(0x15c)]),_0x31996e?.['meowKey']]),_0x5d7814=[..._0x598728]['some'](_0x95136a=>{if(!_0x95136a)return![];const _0x24d1e8=_0x5ef2fb[_0x95136a];return _0x24d1e8!==undefined&&_0x24d1e8!==null&&_0x24d1e8!==![];});if(_0x5d7814)throw CliErrors['validation'](_0x3519f9[_0x2239c6(0x181)],_0x3519f9['hint']);}}function toCamelCase(_0x3adb13){const _0x47e2b2=a307_0x47fc;return _0x3adb13['replace'](/-([a-z])/g,(_0x2ffc2a,_0x44751c)=>_0x44751c[_0x47e2b2(0x163)]());}function shouldAttachUpdateNotice(_0x3330fe){const _0x5c337b=a307_0x47fc;if(_0x3330fe[_0x5c337b(0x160)]===![])return![];return![_0x5c337b(0x179),_0x5c337b(0x190),_0x5c337b(0x17c)][_0x5c337b(0x16f)](_0x3330fe[_0x5c337b(0x15a)]);}function withUpdateNotice(_0x56a0f2){return{..._0x56a0f2,async 'execute'(_0x5f1552){const _0xcca73f=a307_0x47fc,_0x2e6af5=shouldResolveUpdateNotice(_0x5f1552)?resolveLatestUpdateNotice()[_0xcca73f(0x17a)](()=>null):Promise[_0xcca73f(0x173)](null),_0x166ce1=await _0x56a0f2[_0xcca73f(0x168)](_0x5f1552);return attachUpdateNotice(_0x166ce1,await _0x2e6af5);}};}function shouldResolveUpdateNotice(_0x3f5651){const _0x336a61=a307_0x47fc;return _0x3f5651[_0x336a61(0x188)]===_0x336a61(0x16d)&&!_0x3f5651[_0x336a61(0x180)];}function attachUpdateNotice(_0x5baf1f,_0x28bfc4){const _0x1e5f9a=a307_0x47fc;if(!_0x28bfc4||!_0x5baf1f||typeof _0x5baf1f!==_0x1e5f9a(0x178))return _0x5baf1f;const _0x42b191=_0x5baf1f,_0x3b34cc=typeof _0x42b191[_0x1e5f9a(0x157)]===_0x1e5f9a(0x178)&&_0x42b191[_0x1e5f9a(0x157)]!==null?_0x42b191[_0x1e5f9a(0x157)]:{};return{..._0x42b191,'_notice':{..._0x3b34cc,'update':_0x28bfc4}};}
|
|
1
|
+
(function(_0x253519,_0x3a2e68){const _0x359562=a307_0x24bc,_0x37c8f4=_0x253519();while(!![]){try{const _0x491d11=-parseInt(_0x359562(0xb0))/0x1*(parseInt(_0x359562(0xaa))/0x2)+parseInt(_0x359562(0xd0))/0x3*(-parseInt(_0x359562(0xa7))/0x4)+parseInt(_0x359562(0xe9))/0x5+parseInt(_0x359562(0xeb))/0x6*(parseInt(_0x359562(0xb4))/0x7)+parseInt(_0x359562(0xb7))/0x8*(-parseInt(_0x359562(0xbf))/0x9)+parseInt(_0x359562(0xba))/0xa*(-parseInt(_0x359562(0xc1))/0xb)+parseInt(_0x359562(0x95))/0xc;if(_0x491d11===_0x3a2e68)break;else _0x37c8f4['push'](_0x37c8f4['shift']());}catch(_0x428c38){_0x37c8f4['push'](_0x37c8f4['shift']());}}}(a307_0x4ac0,0xf35ef));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';function a307_0x24bc(_0x128682,_0x355264){_0x128682=_0x128682-0x94;const _0x4ac03d=a307_0x4ac0();let _0x24bcb6=_0x4ac03d[_0x128682];return _0x24bcb6;}import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a307_0x577e62}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function a307_0x4ac0(){const _0x151a62=['6JQXozi','keys','service','hint','trim','\x0a\x20\x20','6646128HNACWO','App\x20\x22','object','execute','selectedAppName','some','resolveAppCode','AppCode\x20\x22','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','Current\x20resolved\x20appcode\x20is\x20\x22','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','includes','doctor','map','formatOutput','High-risk\x20operation\x20`','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','Set\x20appcode\x20via\x20`','2644PltJPG','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','../core/api-client.js','4tSXTsF','required','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','entries','validation','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','217357mAeijj','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','meowKey','format','10862061AACCcR','apps','appcode','29256wOGSRI','RABETBASE_APPCODE','replace','10369600QnJRjy','currentApp','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','requiresAppCode','mergedCli','3339wKvTAC','cancelled','11wbiLwB','\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','value','Edit\x20the\x20config\x20file\x20manually','\x20\x20\x20Continue?\x20[y/N]\x20','appCode','name','string','hasFormat','resolveCookie','confirmHighRisk','join','length','explicitAppName','771kSQDtz','rejectedFlags','_notice','rawFlags','⚠\x20\x20High-risk\x20operation:\x20','pretty','defaultVerbose','apiDir','command','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','filter','resolveApiDomain','none','all','risk','schema','../constant/domain.js','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','verbose','authRequired','configMissing','nonInteractive','find','9447890xzfqox','pageSize'];a307_0x4ac0=function(){return _0x151a62;};return a307_0x4ac0();}function stringFlag(_0xd7799b){const _0x4c4e4d=a307_0x24bc;return typeof _0xd7799b===_0x4c4e4d(0xc9)&&_0xd7799b['trim']()?_0xd7799b[_0x4c4e4d(0xef)]():undefined;}function resolveEnvAppCode(){const _0x54a347=a307_0x24bc,_0x5732c2=stringFlag(process.env.RABETBASE_APPCODE);if(_0x5732c2)return{'name':_0x54a347(0xb8),'value':_0x5732c2};const _0xd5ab2f=stringFlag(process.env.LOVRABET_APPCODE);if(_0xd5ab2f)return{'name':'LOVRABET_APPCODE','value':_0xd5ab2f};return undefined;}function hasExplicitAppCode(_0x22d32a,_0x5c72a5){const _0x1d5f32=a307_0x24bc;return!!(stringFlag(_0x22d32a[_0x1d5f32(0xb6)])||stringFlag(_0x5c72a5[_0x1d5f32(0xb6)]));}function assertEnvAppCodeNotIgnored(_0xf78adc,_0x415eb8,_0x2b660c){const _0x120bd0=a307_0x24bc;if(!_0x415eb8||_0x2b660c||_0xf78adc===_0x415eb8[_0x120bd0(0xc4)])return;const _0x256bd2=_0xf78adc?_0x120bd0(0x9e)+_0xf78adc+'\x22.':_0x120bd0(0xd9);throw CliErrors[_0x120bd0(0xae)](_0x415eb8[_0x120bd0(0xc8)]+'='+_0x415eb8[_0x120bd0(0xc4)]+_0x120bd0(0xa8)+_0x256bd2+'\x20'+(_0x120bd0(0xaf)+_0x415eb8[_0x120bd0(0xc8)]+'\x22.'));}export function createPipelineEnv(_0x4ba80a,_0x24dae6,_0x1d3a77=[]){const _0x2698b1=a307_0x24bc;return{'rawFlags':_0x24dae6,'args':_0x1d3a77,'resolveAppCode':()=>_0x4ba80a[_0x2698b1(0xc7)],'resolveCookie':()=>_0x4ba80a['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a307_0x577e62(_0x24dae6),'defaultFormat':_0x4ba80a[_0x2698b1(0xb3)],'defaultPageSize':_0x4ba80a[_0x2698b1(0xea)],'defaultVerbose':_0x4ba80a[_0x2698b1(0xe4)],'apiDir':_0x4ba80a[_0x2698b1(0xd7)],'riskLevel':_0x4ba80a['riskLevel'],'selectedAppName':_0x4ba80a[_0x2698b1(0xcf)],'mergedCli':{'defaultApp':_0x4ba80a['defaultApp'],'currentApp':_0x4ba80a['currentApp'],'appCode':_0x4ba80a[_0x2698b1(0xc7)],'apps':_0x4ba80a[_0x2698b1(0xb5)]}};}export function createRabetbaseRunnerAdapter(_0x97083={}){const _0x49d259=a307_0x24bc;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0xd9b0ea=>PIPELINE_FLAG_NAMES['has'](_0xd9b0ea['name']))[_0x49d259(0xa2)](({name:_0xf857f8,type:_0x4dcd34,description:_0x1e876d})=>({'name':_0xf857f8,'type':_0x4dcd34,'description':_0x1e876d})),'formatOutput':_0x97083[_0x49d259(0xa3)]??formatOutput,'getCommandLabel'(_0x3b460e){const _0x437da4=_0x49d259;return CLI_BIN_NAME+'\x20'+_0x3b460e[_0x437da4(0xed)]+'\x20'+_0x3b460e[_0x437da4(0xd8)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x19907a,{def:_0x24a5b6}){const _0x15cb9e=_0x49d259,_0x352948=_0x19907a['includes'](_0x15cb9e(0xc5))?_0x15cb9e(0xe1):_0x15cb9e(0xe2)+_0x24a5b6[_0x15cb9e(0xde)]+_0x15cb9e(0xac)+_0x15cb9e(0xe1);return CliErrors[_0x15cb9e(0xae)](_0x19907a+_0x15cb9e(0x94)+_0x352948);}},async 'prepare'(_0x565b08,_0x2f3bad,_0x16cad2,_0x1ed865){const _0x4894f4=_0x49d259,_0x484b06=_0x2f3bad[_0x4894f4(0xd7)]||DEFAULT_API_DIR,_0x4785d6=hasExplicitAppCode(_0x16cad2,_0x2f3bad[_0x4894f4(0xd3)]),_0x153172=stringFlag(_0x16cad2[_0x4894f4(0xb6)])||stringFlag(_0x2f3bad[_0x4894f4(0xd3)][_0x4894f4(0xb6)]),_0x32f76c=_0x2f3bad[_0x4894f4(0xbe)]?.[_0x4894f4(0xb5)]??{},_0x4759aa=_0x2f3bad[_0x4894f4(0x99)]||_0x2f3bad[_0x4894f4(0xbe)]?.[_0x4894f4(0xbb)]||_0x2f3bad[_0x4894f4(0xbe)]?.['defaultApp'],_0x37503d=_0x153172?Object[_0x4894f4(0xad)](_0x32f76c)[_0x4894f4(0xda)](([,_0x3a2058])=>_0x3a2058[_0x4894f4(0xb6)]===_0x153172)[_0x4894f4(0xa2)](([_0x104518])=>_0x104518):[];if(_0x37503d[_0x4894f4(0xce)]>0x1&&!_0x2f3bad['selectedAppName'])throw CliErrors['validation'](_0x4894f4(0x9c)+_0x153172+_0x4894f4(0xc2)+_0x37503d['join'](',\x20')+'.',_0x4894f4(0x9d));resolveAliasToCode(_0x565b08,_0x16cad2,_0x484b06,_0x1ed865,_0x2f3bad[_0x4894f4(0x9b)](),_0x4759aa);const _0x13ef39=resolveCommandAuthMode(_0x565b08);let _0x14ffc9='';if(_0x13ef39!==_0x4894f4(0xdc)){_0x14ffc9=_0x2f3bad[_0x4894f4(0xcb)]()||'';if(!_0x14ffc9){if(_0x13ef39===_0x4894f4(0xab))throw CliErrors[_0x4894f4(0xe5)]();}else{const {setActiveCookie:_0x1e4cee}=await import(_0x4894f4(0xa9));_0x1e4cee(_0x14ffc9);}}const _0x32481a=_0x2f3bad[_0x4894f4(0x9b)]()??'';if(_0x565b08[_0x4894f4(0xbd)]!==![]){if(!_0x4785d6&&_0x4759aa&&!_0x32f76c[_0x4759aa]){const _0x1523b6=Object[_0x4894f4(0xec)](_0x32f76c);throw CliErrors[_0x4894f4(0xae)](_0x4894f4(0x96)+_0x4759aa+'\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.',_0x1523b6[_0x4894f4(0xce)]>0x0?'Available:\x20'+_0x1523b6[_0x4894f4(0xcd)](',\x20')+'.\x20Use\x20--app/--appcode,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x4894f4(0xb1):_0x4894f4(0x9f)+CLI_BIN_NAME+_0x4894f4(0xb1));}assertEnvAppCodeNotIgnored(_0x32481a,resolveEnvAppCode(),_0x4785d6);if(!_0x32481a){const _0x77d526=Object[_0x4894f4(0xec)](_0x32f76c);if(!_0x4759aa&&_0x77d526[_0x4894f4(0xce)]>0x1)throw CliErrors[_0x4894f4(0xe6)](_0x4894f4(0xc3)+CLI_BIN_NAME+_0x4894f4(0xbc)+_0x77d526[_0x4894f4(0xcd)](',\x20')+'.');throw CliErrors[_0x4894f4(0xe6)](_0x4894f4(0xa6)+CLI_BIN_NAME+_0x4894f4(0xa5));}}return{'defaults':{'booleans':{'verbose':_0x2f3bad[_0x4894f4(0xd6)]},'numbers':{'pagesize':_0x2f3bad['defaultPageSize']}},'extras':{'appCode':_0x32481a,'cookie':_0x14ffc9,'apiDomain':_0x2f3bad[_0x4894f4(0xdb)](),'apiDir':_0x484b06,'selectedAppName':_0x2f3bad[_0x4894f4(0x99)],'mergedCli':_0x2f3bad[_0x4894f4(0xbe)]}};},'confirmHighRisk':_0x97083[_0x49d259(0xcc)]??(async({env:_0x480657,commandLabel:_0x3ccf96})=>{const _0x55cb05=_0x49d259;if(_0x480657['isNonInteractive'])throw CliErrors['validation'](_0x55cb05(0xa4)+_0x3ccf96+_0x55cb05(0xe3));await requireConfirmationPrompt({'lines':[_0x55cb05(0xd4)+_0x3ccf96,_0x55cb05(0xc6)],'createCancelledError':_0x4b6ba4=>CliErrors[_0x55cb05(0xc0)](_0x4b6ba4)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x240069=a307_0x24bc,{clearActiveCookie:_0x53e35f}=await import(_0x240069(0xa9));_0x53e35f();}export async function finalizeRabetbaseRuntimeState(){const _0x152345=a307_0x24bc;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x527bb1},{initEnv:_0x500d0f}]=await Promise[_0x152345(0xdd)]([import(_0x152345(0xe0)),import('../constant/env.js')]);_0x527bb1(),_0x500d0f('production');}}export async function runCommand(_0x265736,_0x11168e,_0x32776e=terminalRunnerAdapter){const _0x1fd5bf=a307_0x24bc;assertRejectedFlags(_0x265736,_0x11168e[_0x1fd5bf(0xd3)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x265736)?withUpdateNotice(_0x265736):_0x265736,_0x11168e,_0x32776e);}function assertRejectedFlags(_0x4e7ba6,_0x1183ca){const _0x3b7bcd=a307_0x24bc;for(const _0x39bb38 of _0x4e7ba6[_0x3b7bcd(0xd1)]??[]){const _0x4aff17=GLOBAL_FLAGS[_0x3b7bcd(0xe8)](_0x1d5fe6=>_0x1d5fe6[_0x3b7bcd(0xc8)]===_0x39bb38[_0x3b7bcd(0xc8)]),_0x10d6a8=new Set([_0x39bb38[_0x3b7bcd(0xc8)],toCamelCase(_0x39bb38[_0x3b7bcd(0xc8)]),_0x4aff17?.[_0x3b7bcd(0xb2)]]),_0x5ba322=[..._0x10d6a8][_0x3b7bcd(0x9a)](_0x594ae9=>{if(!_0x594ae9)return![];const _0x1d28fb=_0x1183ca[_0x594ae9];return _0x1d28fb!==undefined&&_0x1d28fb!==null&&_0x1d28fb!==![];});if(_0x5ba322)throw CliErrors['validation'](_0x39bb38['message'],_0x39bb38[_0x3b7bcd(0xee)]);}}function toCamelCase(_0x59b45b){const _0x4e74a3=a307_0x24bc;return _0x59b45b[_0x4e74a3(0xb9)](/-([a-z])/g,(_0x4bbb9f,_0x3dbeab)=>_0x3dbeab['toUpperCase']());}function shouldAttachUpdateNotice(_0x44b20d){const _0x34b545=a307_0x24bc;if(_0x44b20d[_0x34b545(0xca)]===![])return![];return!['update',_0x34b545(0xdf),_0x34b545(0xa1)][_0x34b545(0xa0)](_0x44b20d['service']);}function withUpdateNotice(_0x1bbf28){return{..._0x1bbf28,async 'execute'(_0x45d2cf){const _0xa68de5=a307_0x24bc,_0x450c25=shouldResolveUpdateNotice(_0x45d2cf)?resolveLatestUpdateNotice()['catch'](()=>null):Promise['resolve'](null),_0x363a09=await _0x1bbf28[_0xa68de5(0x98)](_0x45d2cf);return attachUpdateNotice(_0x363a09,await _0x450c25);}};}function shouldResolveUpdateNotice(_0x363f04){const _0xd0b6c=a307_0x24bc;return _0x363f04['format']===_0xd0b6c(0xd5)&&!_0x363f04[_0xd0b6c(0xe7)];}function attachUpdateNotice(_0x2c4f0e,_0x25eef0){const _0x1d2a1f=a307_0x24bc;if(!_0x25eef0||!_0x2c4f0e||typeof _0x2c4f0e!=='object')return _0x2c4f0e;const _0x485d03=_0x2c4f0e,_0x868c4a=typeof _0x485d03[_0x1d2a1f(0xd2)]===_0x1d2a1f(0x97)&&_0x485d03[_0x1d2a1f(0xd2)]!==null?_0x485d03[_0x1d2a1f(0xd2)]:{};return{..._0x485d03,'_notice':{..._0x868c4a,'update':_0x25eef0}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x171d64,_0x4bac11){const _0xee7744=a308_0x1d41,_0x18d30c=_0x171d64();while(!![]){try{const _0x5e461f=-parseInt(_0xee7744(0x9e))/0x1+-parseInt(_0xee7744(0xa1))/0x2*(parseInt(_0xee7744(0xa2))/0x3)+-parseInt(_0xee7744(0x9c))/0x4+parseInt(_0xee7744(0x9f))/0x5*(-parseInt(_0xee7744(0x98))/0x6)+parseInt(_0xee7744(0x99))/0x7+-parseInt(_0xee7744(0x9d))/0x8+parseInt(_0xee7744(0x9b))/0x9*(parseInt(_0xee7744(0xa0))/0xa);if(_0x5e461f===_0x4bac11)break;else _0x18d30c['push'](_0x18d30c['shift']());}catch(_0x1ad768){_0x18d30c['push'](_0x18d30c['shift']());}}}(a308_0x40fb,0xa4422));import{buildSchemaPayload as a308_0x41da99}from'@lovrabet/cli-framework';function a308_0x1d41(_0xf0aa50,_0x1923a5){_0xf0aa50=_0xf0aa50-0x98;const _0x40fb2f=a308_0x40fb();let _0x1d4168=_0x40fb2f[_0xf0aa50];return _0x1d4168;}function a308_0x40fb(){const _0x3ffbef=['10175274XuKFlt','1296412PcsZCq','8451576frMRwN','837875OUUhIi','8315WPJeKJ','30EOFTAw','26Ltcqbw','209058Dzgxrj','324oIjBos','3466323zqpjMJ','../commands/registry.js'];a308_0x40fb=function(){return _0x3ffbef;};return a308_0x40fb();}import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0xbbd0dd=a308_0x1d41,{serviceRegistry:_0x2fd9a1,findDefinition:_0x39fe73}=await import(_0xbbd0dd(0x9a));return a308_0x41da99({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x2fd9a1,'buildAllFlags':buildAllFlags,'findDefinition':_0x39fe73});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x15b436,_0x5d6f46){const _0x19352f=a309_0x15fc,_0x2d3a92=_0x15b436();while(!![]){try{const _0xe5163b=parseInt(_0x19352f(0x1cf))/0x1+parseInt(_0x19352f(0x1e1))/0x2*(parseInt(_0x19352f(0x1d4))/0x3)+parseInt(_0x19352f(0x1e5))/0x4+parseInt(_0x19352f(0x1ca))/0x5*(parseInt(_0x19352f(0x1c9))/0x6)+parseInt(_0x19352f(0x1e0))/0x7*(-parseInt(_0x19352f(0x1de))/0x8)+parseInt(_0x19352f(0x1ce))/0x9*(parseInt(_0x19352f(0x1da))/0xa)+-parseInt(_0x19352f(0x1cb))/0xb;if(_0xe5163b===_0x5d6f46)break;else _0x2d3a92['push'](_0x2d3a92['shift']());}catch(_0x2580ff){_0x2d3a92['push'](_0x2d3a92['shift']());}}}(a309_0x47c4,0x92c08));import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';function a309_0x47c4(){const _0x40241a=['version','Run\x20`','839528wgoWxe','validation','3000744mbPASs','5pWtULW','10648913TlfiCF','name','find','2595987pVCCRJ','629258lwkhOO','toLowerCase','add','command','strictFlags','19308ujbSfO','flags','replace','Unsupported\x20flag\x20--','filter','$1-$2','40jpopQq','meowKey','service','entries','322408vpcGez','isArray','175nkHtHA','26AkSkOY','has'];a309_0x47c4=function(){return _0x40241a;};return a309_0x47c4();}import{CliErrors}from'../errors.js';export function assertSupportedCommandFlags(_0x197cfc,_0xc9c29f){const _0x334010=a309_0x15fc;if(!_0x197cfc[_0x334010(0x1d3)])return;const _0x274047=new Set(['help',_0x334010(0x1e3)]),_0x109846=GLOBAL_FLAGS[_0x334010(0x1d8)](_0x34155f=>PIPELINE_FLAG_NAMES[_0x334010(0x1e2)](_0x34155f[_0x334010(0x1cc)]));for(const _0x366158 of[..._0x197cfc[_0x334010(0x1d5)],..._0x109846]){addFlagCandidates(_0x274047,_0x366158);}for(const [_0xdceb05,_0x6f904]of Object[_0x334010(0x1dd)](_0xc9c29f)){if(!isExplicitValue(_0x6f904)||_0x274047['has'](_0xdceb05))continue;const _0x54d335=GLOBAL_FLAGS[_0x334010(0x1cd)](_0x33f8fc=>_0x33f8fc[_0x334010(0x1db)]===_0xdceb05)?.['name']??toKebabCase(_0xdceb05);throw CliErrors[_0x334010(0x1e6)](_0x334010(0x1d7)+_0x54d335+'\x20for\x20`'+CLI_BIN_NAME+'\x20'+_0x197cfc[_0x334010(0x1dc)]+'\x20'+_0x197cfc[_0x334010(0x1d2)]+'`.',_0x334010(0x1e4)+CLI_BIN_NAME+'\x20'+_0x197cfc[_0x334010(0x1dc)]+'\x20'+_0x197cfc['command']+'\x20--help`\x20to\x20view\x20the\x20current\x20command\x20contract.');}}function a309_0x15fc(_0x1e4065,_0x3e8455){_0x1e4065=_0x1e4065-0x1c9;const _0x47c421=a309_0x47c4();let _0x15fc96=_0x47c421[_0x1e4065];return _0x15fc96;}function addFlagCandidates(_0x42a6a4,_0x44db2d){const _0x8ef59e=a309_0x15fc,_0x101124='meowKey'in _0x44db2d?[_0x44db2d['name'],_0x44db2d['meowKey']]:[_0x44db2d[_0x8ef59e(0x1cc)],_0x44db2d['alias']];for(const _0x43411d of _0x101124){if(!_0x43411d)continue;_0x42a6a4[_0x8ef59e(0x1d1)](_0x43411d),_0x42a6a4[_0x8ef59e(0x1d1)](toCamelCase(_0x43411d));}}function isExplicitValue(_0x2c749d){const _0x42509b=a309_0x15fc;return _0x2c749d!==undefined&&_0x2c749d!==null&&_0x2c749d!==![]&&(!Array[_0x42509b(0x1df)](_0x2c749d)||_0x2c749d['length']>0x0);}function toCamelCase(_0x2e50e8){const _0xf96b82=a309_0x15fc;return _0x2e50e8[_0xf96b82(0x1d6)](/-([a-z])/g,(_0x3f78b0,_0x2a767f)=>_0x2a767f['toUpperCase']());}function toKebabCase(_0x53001c){const _0x570c46=a309_0x15fc;return _0x53001c[_0x570c46(0x1d6)](/([a-z0-9])([A-Z])/g,_0x570c46(0x1d9))[_0x570c46(0x1d0)]();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a310_0x2120(_0x27fd6f,_0x2d415a){_0x27fd6f=_0x27fd6f-0x177;var _0x3792d6=a310_0x3792();var _0x21206d=_0x3792d6[_0x27fd6f];return _0x21206d;}function a310_0x3792(){var _0x16e91b=['788641TLBWjS','18890vWiiee','551598mXDbUu','24sADZGE','3Nsivjk','29497fDsDXL','24pfKPOP','3612eklLiE','410660rbUJkQ','1485qamNHz','33832AZruBQ','288376DypiVo','4356nJQcZp'];a310_0x3792=function(){return _0x16e91b;};return a310_0x3792();}(function(_0x7be0a5,_0x26c3ce){var _0x4d250f=a310_0x2120,_0x4edff1=_0x7be0a5();while(!![]){try{var _0x4cf261=parseInt(_0x4d250f(0x177))/0x1+parseInt(_0x4d250f(0x180))/0x2*(parseInt(_0x4d250f(0x179))/0x3)+-parseInt(_0x4d250f(0x178))/0x4*(parseInt(_0x4d250f(0x17d))/0x5)+-parseInt(_0x4d250f(0x17b))/0x6*(parseInt(_0x4d250f(0x182))/0x7)+-parseInt(_0x4d250f(0x17f))/0x8*(-parseInt(_0x4d250f(0x17e))/0x9)+parseInt(_0x4d250f(0x183))/0xa*(-parseInt(_0x4d250f(0x181))/0xb)+-parseInt(_0x4d250f(0x17c))/0xc*(-parseInt(_0x4d250f(0x17a))/0xd);if(_0x4cf261===_0x26c3ce)break;else _0x4edff1['push'](_0x4edff1['shift']());}catch(_0x4952c7){_0x4edff1['push'](_0x4edff1['shift']());}}}(a310_0x3792,0x5e01c));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.5.4-beta.
|
|
2
|
-
export declare const GIT_TAG = "v2.5.4-beta.
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-09-
|
|
1
|
+
export declare const VERSION = "2.5.4-beta.2";
|
|
2
|
+
export declare const GIT_TAG = "v2.5.4-beta.2";
|
|
3
|
+
export declare const GIT_COMMIT = "5d1f188b";
|
|
4
|
+
export declare const BUILD_TIME = "2026-09-21T09:16:37.975Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a311_0x58a44f=a311_0x3c9d;(function(_0x425ac1,_0x5705aa){const _0x23ea16=a311_0x3c9d,_0x15ddc8=_0x425ac1();while(!![]){try{const _0x27dad3=parseInt(_0x23ea16(0xd6))/0x1*(parseInt(_0x23ea16(0xd7))/0x2)+-parseInt(_0x23ea16(0xd2))/0x3*(parseInt(_0x23ea16(0xe0))/0x4)+-parseInt(_0x23ea16(0xd9))/0x5+parseInt(_0x23ea16(0xdf))/0x6*(-parseInt(_0x23ea16(0xdd))/0x7)+parseInt(_0x23ea16(0xdb))/0x8+parseInt(_0x23ea16(0xdc))/0x9+-parseInt(_0x23ea16(0xd5))/0xa*(-parseInt(_0x23ea16(0xd8))/0xb);if(_0x27dad3===_0x5705aa)break;else _0x15ddc8['push'](_0x15ddc8['shift']());}catch(_0x3a0ff9){_0x15ddc8['push'](_0x15ddc8['shift']());}}}(a311_0x3662,0xad8bd));export const VERSION=a311_0x58a44f(0xda);export const GIT_TAG=a311_0x58a44f(0xd3);export const GIT_COMMIT=a311_0x58a44f(0xde);export const BUILD_TIME=a311_0x58a44f(0xd4);function a311_0x3c9d(_0x4634f1,_0x2ddfc0){_0x4634f1=_0x4634f1-0xd2;const _0x366231=a311_0x3662();let _0x3c9de5=_0x366231[_0x4634f1];return _0x3c9de5;}function a311_0x3662(){const _0x1c6446=['2.5.4-beta.2','9581408ueOHjJ','1511109GhoJGw','973jucYTk','5d1f188b','53994bjPTJj','4TXZDrv','3075441nCGaOA','v2.5.4-beta.2','2026-09-21T09:16:37.975Z','3030FloZnl','1ZlQKbH','205426QEtIpK','75515UpNdko','2807660ITFMPw'];a311_0x3662=function(){return _0x1c6446;};return a311_0x3662();}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const ROUTING_CATALOG_DIGEST: "
|
|
1
|
+
export declare const ROUTING_CATALOG_DIGEST: "57d346b80b12ca567af9d86dd7f8c02a0c27fe15d4944c8345add2cc6134c587";
|
|
2
2
|
export declare const DEFAULT_REGION: "cn";
|
|
3
3
|
export declare const REGION_VALUES: readonly ["cn", "id", "global"];
|
|
4
|
-
export declare const ENABLED_REGION_VALUES: readonly ["cn", "id"];
|
|
4
|
+
export declare const ENABLED_REGION_VALUES: readonly ["cn", "id", "global"];
|
|
5
5
|
export declare const OFFICIAL_ROUTING_PROFILES: {
|
|
6
6
|
readonly cn: {
|
|
7
7
|
readonly enabled: true;
|
|
@@ -14,6 +14,7 @@ export declare const OFFICIAL_ROUTING_PROFILES: {
|
|
|
14
14
|
readonly runtime: "https://runtime.lovrabet.com";
|
|
15
15
|
readonly skill: "https://skills.lovrabet.com";
|
|
16
16
|
readonly kb: "https://api.lovrabet.com";
|
|
17
|
+
readonly kbService: "https://kb-service.lovrabet.com";
|
|
17
18
|
readonly app: "https://app.lovrabet.com";
|
|
18
19
|
};
|
|
19
20
|
readonly daily: {
|
|
@@ -22,6 +23,7 @@ export declare const OFFICIAL_ROUTING_PROFILES: {
|
|
|
22
23
|
readonly runtime: "https://daily-runtime.lovrabet.com";
|
|
23
24
|
readonly skill: "https://skills-daily.lovrabet.com";
|
|
24
25
|
readonly kb: "https://daily-api.lovrabet.com";
|
|
26
|
+
readonly kbService: "https://kb-service-daily.lovrabet.com";
|
|
25
27
|
readonly app: "https://daily.lovrabet.com";
|
|
26
28
|
};
|
|
27
29
|
};
|
|
@@ -44,6 +46,7 @@ export declare const OFFICIAL_ROUTING_PROFILES: {
|
|
|
44
46
|
readonly runtime: "https://runtime.lovrabet.id";
|
|
45
47
|
readonly skill: "https://skills.lovrabet.id";
|
|
46
48
|
readonly kb: "https://api.lovrabet.id";
|
|
49
|
+
readonly kbService: "https://kb-service.lovrabet.id";
|
|
47
50
|
readonly app: "https://app.lovrabet.id";
|
|
48
51
|
};
|
|
49
52
|
};
|
|
@@ -56,7 +59,7 @@ export declare const OFFICIAL_ROUTING_PROFILES: {
|
|
|
56
59
|
};
|
|
57
60
|
};
|
|
58
61
|
readonly global: {
|
|
59
|
-
readonly enabled:
|
|
62
|
+
readonly enabled: true;
|
|
60
63
|
readonly label: "Global";
|
|
61
64
|
readonly aliases: readonly [];
|
|
62
65
|
readonly serviceDomains: {
|
|
@@ -68,9 +71,18 @@ export declare const OFFICIAL_ROUTING_PROFILES: {
|
|
|
68
71
|
readonly kb: "https://api.lovrabet.ai";
|
|
69
72
|
readonly app: "https://app.lovrabet.ai";
|
|
70
73
|
};
|
|
74
|
+
readonly daily: {
|
|
75
|
+
readonly user: "https://user-daily.lovrabet.ai";
|
|
76
|
+
readonly api: "https://daily-api.lovrabet.ai";
|
|
77
|
+
readonly runtime: "https://daily-runtime.lovrabet.ai";
|
|
78
|
+
readonly skill: "https://skills-daily.lovrabet.ai";
|
|
79
|
+
readonly kb: "https://daily-api.lovrabet.ai";
|
|
80
|
+
readonly app: "https://daily.lovrabet.ai";
|
|
81
|
+
};
|
|
71
82
|
};
|
|
72
83
|
readonly cdn: {
|
|
73
84
|
readonly libraries: "https://cdnjs.cloudflare.com/ajax/libs";
|
|
85
|
+
readonly lovrabet: "https://g.lovrabet.ai";
|
|
74
86
|
};
|
|
75
87
|
readonly local: {
|
|
76
88
|
readonly origin: "https://dev.lovrabet.ai";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a312_0x233e03=a312_0x8320;function a312_0x8320(_0x444bd4,_0x4cb960){_0x444bd4=_0x444bd4-0xa8;const _0x1e926e=a312_0x1e92();let _0x832016=_0x1e926e[_0x444bd4];return _0x832016;}(function(_0x588a11,_0x3ce789){const _0x37fb32=a312_0x8320,_0x2c59c1=_0x588a11();while(!![]){try{const _0x118689=-parseInt(_0x37fb32(0xba))/0x1*(parseInt(_0x37fb32(0xc7))/0x2)+parseInt(_0x37fb32(0xc3))/0x3*(parseInt(_0x37fb32(0xb2))/0x4)+parseInt(_0x37fb32(0xcf))/0x5*(-parseInt(_0x37fb32(0xab))/0x6)+parseInt(_0x37fb32(0xb1))/0x7*(parseInt(_0x37fb32(0xb7))/0x8)+parseInt(_0x37fb32(0xac))/0x9*(parseInt(_0x37fb32(0xae))/0xa)+parseInt(_0x37fb32(0xc6))/0xb*(parseInt(_0x37fb32(0xd1))/0xc)+-parseInt(_0x37fb32(0xbe))/0xd*(parseInt(_0x37fb32(0xa8))/0xe);if(_0x118689===_0x3ce789)break;else _0x2c59c1['push'](_0x2c59c1['shift']());}catch(_0x51b873){_0x2c59c1['push'](_0x2c59c1['shift']());}}}(a312_0x1e92,0xa2ef0));export const ROUTING_CATALOG_DIGEST='57d346b80b12ca567af9d86dd7f8c02a0c27fe15d4944c8345add2cc6134c587';export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id','global'];export const ENABLED_REGION_VALUES=['cn','id','global'];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a312_0x233e03(0xc0),'aliases':[a312_0x233e03(0xaa)],'serviceDomains':{'production':{'user':a312_0x233e03(0xcb),'api':'https://api.lovrabet.com','runtime':'https://runtime.lovrabet.com','skill':a312_0x233e03(0xca),'kb':'https://api.lovrabet.com','kbService':a312_0x233e03(0xbc),'app':'https://app.lovrabet.com'},'daily':{'user':a312_0x233e03(0xcd),'api':'https://daily-api.lovrabet.com','runtime':a312_0x233e03(0xaf),'skill':a312_0x233e03(0xce),'kb':a312_0x233e03(0xb5),'kbService':a312_0x233e03(0xb8),'app':'https://daily.lovrabet.com'}},'cdn':{'libraries':a312_0x233e03(0xd0),'lovrabet':a312_0x233e03(0xc8)},'local':{'origin':'https://dev.lovrabet.com'}},'id':{'enabled':!![],'label':a312_0x233e03(0xc5),'aliases':[a312_0x233e03(0xcc)],'serviceDomains':{'production':{'user':a312_0x233e03(0xb0),'api':a312_0x233e03(0xd2),'runtime':a312_0x233e03(0xb6),'skill':a312_0x233e03(0xc2),'kb':a312_0x233e03(0xd2),'kbService':a312_0x233e03(0xa9),'app':a312_0x233e03(0xb9)}},'cdn':{'libraries':a312_0x233e03(0xbf),'lovrabet':a312_0x233e03(0xb4)},'local':{'origin':a312_0x233e03(0xc9)}},'global':{'enabled':!![],'label':a312_0x233e03(0xad),'aliases':[],'serviceDomains':{'production':{'user':'https://user.lovrabet.ai','api':'https://api.lovrabet.ai','runtime':a312_0x233e03(0xc4),'skill':a312_0x233e03(0xb3),'kb':'https://api.lovrabet.ai','app':a312_0x233e03(0xd3)},'daily':{'user':a312_0x233e03(0xbd),'api':'https://daily-api.lovrabet.ai','runtime':'https://daily-runtime.lovrabet.ai','skill':'https://skills-daily.lovrabet.ai','kb':'https://daily-api.lovrabet.ai','app':'https://daily.lovrabet.ai'}},'cdn':{'libraries':a312_0x233e03(0xbf),'lovrabet':a312_0x233e03(0xbb)},'local':{'origin':a312_0x233e03(0xc1)}}};function a312_0x1e92(){const _0x346bd7=['https://g.lovrabet.ai','https://kb-service.lovrabet.com','https://user-daily.lovrabet.ai','1068951QdlHqb','https://cdnjs.cloudflare.com/ajax/libs','Mainland\x20China','https://dev.lovrabet.ai','https://skills.lovrabet.id','3153FOrVdM','https://runtime.lovrabet.ai','Indonesia','1892HxAVTr','32XRMxfq','https://g.lovrabet.com','https://dev.lovrabet.id','https://skills.lovrabet.com','https://user.lovrabet.com','indonesia','https://user-daily.lovrabet.com','https://skills-daily.lovrabet.com','5007625QESJsw','https://g.alicdn.com/code/lib','25284epNWYU','https://api.lovrabet.id','https://app.lovrabet.ai','28zjepIX','https://kb-service.lovrabet.id','china','6GlbrwC','657liyygE','Global','69570rhxuJe','https://daily-runtime.lovrabet.com','https://user.lovrabet.id','35Sbbcrh','1204yUBtye','https://skills.lovrabet.ai','https://g.lovrabet.id','https://daily-api.lovrabet.com','https://runtime.lovrabet.id','1164984flHpvQ','https://kb-service-daily.lovrabet.com','https://app.lovrabet.id','5086pAuvdy'];a312_0x1e92=function(){return _0x346bd7;};return a312_0x1e92();}export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const ENTERPRISE_ROUTING_SCHEMA_DIGEST: "
|
|
1
|
+
export declare const ENTERPRISE_ROUTING_SCHEMA_DIGEST: "a03fe188b2b34518efc5668666c0001d20354882cd7dd70afec902dffe1329c3";
|
|
2
2
|
export declare const ENTERPRISE_ROUTING_PROTOCOL: "lovrabet-routing/v1";
|
|
3
3
|
export declare const ENTERPRISE_ROUTING_KIND: "enterprise";
|
|
4
|
-
export declare const ENTERPRISE_ROUTING_DOMAIN_FIELDS: readonly ["userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbDomain", "appDomain", "localDomain", "certificateDomain"];
|
|
4
|
+
export declare const ENTERPRISE_ROUTING_DOMAIN_FIELDS: readonly ["userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbDomain", "kbServiceDomain", "appDomain", "localDomain", "certificateDomain"];
|
|
5
5
|
export declare const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS: readonly ["userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbDomain", "appDomain"];
|
|
6
6
|
export declare const ENTERPRISE_ROUTING_CDN_FIELDS: readonly ["libraries", "lovrabet"];
|
|
7
7
|
export declare const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS: readonly ["libraries", "lovrabet"];
|