@lovrabet/rabetbase-cli 2.5.5-beta.2 → 2.5.5-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/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/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.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/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.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/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.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 +3 -3
- package/skills/rabetbase/guides/independent-deployment.md +11 -1
- package/skills/rabetbase/references/rabetbase-config.md +16 -19
- package/skills/rabetbase/references/rabetbase-menu-visibility-update.md +5 -4
- package/skills/rabetbase/references/rabetbase-workspace.md +3 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const a302_0x495b79=a302_0x586e;(function(_0x447dd7,_0x389dc1){const _0xf56c08=a302_0x586e,_0x3682d4=_0x447dd7();while(!![]){try{const _0xdf1aa4=-parseInt(_0xf56c08(0x1b1))/0x1*(-parseInt(_0xf56c08(0x196))/0x2)+parseInt(_0xf56c08(0x1d6))/0x3*(parseInt(_0xf56c08(0x1de))/0x4)+parseInt(_0xf56c08(0x1c2))/0x5+parseInt(_0xf56c08(0x1d3))/0x6*(-parseInt(_0xf56c08(0x1d4))/0x7)+parseInt(_0xf56c08(0x19f))/0x8*(-parseInt(_0xf56c08(0x1e2))/0x9)+-parseInt(_0xf56c08(0x1cc))/0xa*(parseInt(_0xf56c08(0x1ce))/0xb)+parseInt(_0xf56c08(0x1a6))/0xc*(parseInt(_0xf56c08(0x1ec))/0xd);if(_0xdf1aa4===_0x389dc1)break;else _0x3682d4['push'](_0x3682d4['shift']());}catch(_0x3353be){_0x3682d4['push'](_0x3682d4['shift']());}}}(a302_0x3ec4,0xad59a));const MYBATIS_OUTER_TAGS=new Map([['select',a302_0x495b79(0x18e)],[a302_0x495b79(0x1c3),a302_0x495b79(0x19b)],[a302_0x495b79(0x192),a302_0x495b79(0x1df)],['delete','DELETE']]),MYBATIS_DYNAMIC_TAGS=new Set(['if',a302_0x495b79(0x1a3),a302_0x495b79(0x1c7),a302_0x495b79(0x1be),a302_0x495b79(0x1a0),a302_0x495b79(0x1a9),a302_0x495b79(0x1cb),a302_0x495b79(0x19a),'bind',a302_0x495b79(0x1ab),a302_0x495b79(0x1b6)]),MYBATIS_BRANCH_TAGS=new Set(['if',a302_0x495b79(0x1c7),a302_0x495b79(0x1be),a302_0x495b79(0x1a0),a302_0x495b79(0x1a9)]);export const MYBATIS_DYNAMIC_START_MARKER=a302_0x495b79(0x193);export const MYBATIS_DYNAMIC_END_MARKER='__RABETBASE_MYBATIS_DYNAMIC_END__';export const MYBATIS_INCLUDE_MARKER=a302_0x495b79(0x1cf);const UNRESOLVED_SQL_FRAGMENT=a302_0x495b79(0x199),MYBATIS_OUTER_TAG_PATTERN=new RegExp(a302_0x495b79(0x1d5)+[...MYBATIS_OUTER_TAGS['keys']()][a302_0x495b79(0x1bf)]('|')+a302_0x495b79(0x1a1),'i');export function normalizeSqlForStaticAnalysis(_0x452d68){const _0x51cdee=a302_0x495b79,_0x285609=typeof _0x452d68===_0x51cdee(0x1c6)?_0x452d68:'';if(detectSqlSourceMode(_0x285609)===_0x51cdee(0x1a4))return{'sql':_0x285609,'mode':_0x51cdee(0x1a4)};let _0x3d5050=0x0,_0x5a4a72='',_0x5bf45c,_0x33bb4b=![],_0x4a7ff3=![];const _0x53c93c=[];while(_0x3d5050<_0x285609[_0x51cdee(0x1ef)]){if(_0x285609[_0x51cdee(0x1a8)](_0x51cdee(0x18b),_0x3d5050)){const _0x1ac9c2=_0x285609[_0x51cdee(0x1bb)](_0x51cdee(0x1a7),_0x3d5050+0x4);if(_0x1ac9c2<0x0)return invalidMybatisSource('Unterminated\x20XML\x20comment.');_0x5a4a72+='\x20',_0x3d5050=_0x1ac9c2+0x3;continue;}if(_0x285609['startsWith'](_0x51cdee(0x1b5),_0x3d5050)){if(!_0x33bb4b||_0x4a7ff3)return invalidMybatisSource(_0x51cdee(0x1e7));const _0x1b6344=_0x285609[_0x51cdee(0x1bb)](_0x51cdee(0x1b8),_0x3d5050+0x9);if(_0x1b6344<0x0)return invalidMybatisSource(_0x51cdee(0x1b2));_0x5a4a72+=_0x285609[_0x51cdee(0x190)](_0x3d5050+0x9,_0x1b6344),_0x3d5050=_0x1b6344+0x3;continue;}if(_0x285609[_0x51cdee(0x1a8)]('<?',_0x3d5050)){if(_0x33bb4b)return invalidMybatisSource('XML\x20declarations\x20must\x20precede\x20the\x20MyBatis\x20statement\x20wrapper.');const _0x3fc70e=_0x285609[_0x51cdee(0x1bb)]('?>',_0x3d5050+0x2);if(_0x3fc70e<0x0)return invalidMybatisSource(_0x51cdee(0x1d0));_0x5a4a72+='\x20',_0x3d5050=_0x3fc70e+0x2;continue;}if(_0x285609[_0x3d5050]!=='<'){const _0x1c5314=_0x285609[_0x51cdee(0x1bb)]('<',_0x3d5050),_0x584383=_0x1c5314<0x0?_0x285609[_0x51cdee(0x1ef)]:_0x1c5314,_0x24825e=_0x285609[_0x51cdee(0x190)](_0x3d5050,_0x584383);if((!_0x33bb4b||_0x4a7ff3)&&_0x24825e['trim']())return invalidMybatisSource(_0x51cdee(0x1d8));if(_0x33bb4b&&!_0x4a7ff3){const _0x55cedc=decodeXmlEntities(_0x24825e);if(_0x55cedc===null)return invalidMybatisSource('Invalid\x20XML\x20entity\x20reference.');_0x5a4a72+=_0x55cedc;}else _0x5a4a72+='\x20';_0x3d5050=_0x584383;continue;}const _0x572c38=findXmlTagEnd(_0x285609,_0x3d5050);if(_0x572c38<0x0)return invalidMybatisSource('Unterminated\x20MyBatis\x20XML\x20tag.');const _0x255688=_0x285609[_0x51cdee(0x190)](_0x3d5050,_0x572c38+0x1),_0x150578=/^<\s*(\/?)\s*([A-Za-z][\w:-]*)([\s\S]*?)(\/?)\s*>$/[_0x51cdee(0x18d)](_0x255688);if(!_0x150578)return invalidMybatisSource('Invalid\x20MyBatis\x20XML\x20tag.');const _0xe98c0a=_0x150578[0x1]==='/',_0x10192b=_0x150578[0x2]??'',_0x5250f3=_0x10192b[_0x51cdee(0x1dc)](),_0x5a2b1d=_0x150578[0x3]??'',_0x14ee49=_0x150578[0x4]==='/',_0x5612d6=MYBATIS_OUTER_TAGS['get'](_0x5250f3);if(!_0x5612d6&&!MYBATIS_DYNAMIC_TAGS[_0x51cdee(0x1ad)](_0x5250f3))return invalidMybatisSource('Unsupported\x20MyBatis\x20XML\x20tag:\x20<'+_0x5250f3+'>.');if(!_0x5612d6&&_0x10192b!==_0x5250f3)return invalidMybatisSource('MyBatis\x20dynamic\x20tag\x20names\x20must\x20be\x20lowercase:\x20<'+_0x10192b+'>.');if(_0xe98c0a){if(_0x5a2b1d[_0x51cdee(0x1cb)]()||_0x14ee49)return invalidMybatisSource(_0x51cdee(0x194)+_0x10192b+'>.');const _0x32f079=_0x53c93c['at'](-0x1);if(!_0x32f079||(_0x32f079[_0x51cdee(0x1b3)]?_0x32f079[_0x51cdee(0x1ed)]!==_0x5250f3:_0x32f079[_0x51cdee(0x1bc)]!==_0x10192b))return invalidMybatisSource('Mismatched\x20MyBatis\x20XML\x20closing\x20tag:\x20</'+_0x10192b+'>.');_0x53c93c['pop']();if(_0x32f079[_0x51cdee(0x1b3)])_0x4a7ff3=!![];_0x5a4a72+=MYBATIS_BRANCH_TAGS['has'](_0x5250f3)?'\x20'+MYBATIS_DYNAMIC_END_MARKER+'\x20':'\x20';}else{if(!hasWellFormedXmlAttributes(_0x5a2b1d))return invalidMybatisSource(_0x51cdee(0x1af)+_0x10192b+'>.');if(_0x5250f3==='property'&&(!_0x14ee49||_0x53c93c['at'](-0x1)?.[_0x51cdee(0x1ed)]!=='include'))return invalidMybatisSource(_0x51cdee(0x1d7));if(_0x5612d6){if(_0x33bb4b||_0x53c93c[_0x51cdee(0x1ef)]>0x0)return invalidMybatisSource(_0x51cdee(0x19c));_0x33bb4b=!![],_0x4a7ff3=_0x14ee49,_0x5bf45c=_0x5612d6;}else{if(!_0x33bb4b||_0x4a7ff3)return invalidMybatisSource(_0x51cdee(0x1bd)+_0x10192b+'>.');}_0x5a4a72+=_0x5250f3===_0x51cdee(0x1a3)?_0x51cdee(0x1e4):_0x5250f3==='set'?'\x20SET\x20':_0x5250f3===_0x51cdee(0x1ab)?'\x20'+MYBATIS_INCLUDE_MARKER+'\x20':MYBATIS_BRANCH_TAGS['has'](_0x5250f3)&&!_0x14ee49?'\x20'+MYBATIS_DYNAMIC_START_MARKER+'\x20':'\x20',!_0x14ee49&&_0x53c93c[_0x51cdee(0x189)]({'rawName':_0x10192b,'tagName':_0x5250f3,'outer':!!_0x5612d6});}_0x3d5050=_0x572c38+0x1;}if(_0x53c93c[_0x51cdee(0x1ef)]>0x0)return invalidMybatisSource(_0x51cdee(0x1e0)+_0x53c93c['at'](-0x1)?.['rawName']+'>.');if(!_0x33bb4b||!_0x4a7ff3)return invalidMybatisSource(_0x51cdee(0x1b7));return{'sql':_0x5a4a72[_0x51cdee(0x1cb)](),'mode':_0x51cdee(0x1e1),..._0x5bf45c?{'statementType':_0x5bf45c}:{}};}function hasWellFormedXmlAttributes(_0x5b2375){const _0x5eea9a=a302_0x495b79;let _0x26a1f3=0x0;const _0x41c3c2=new Set();while(_0x26a1f3<_0x5b2375[_0x5eea9a(0x1ef)]){while(_0x26a1f3<_0x5b2375[_0x5eea9a(0x1ef)]&&/\s/['test'](_0x5b2375[_0x26a1f3]??''))_0x26a1f3+=0x1;if(_0x26a1f3>=_0x5b2375['length'])return!![];const _0x2780c6=/^[A-Za-z_:][\w:.-]*/[_0x5eea9a(0x18d)](_0x5b2375[_0x5eea9a(0x190)](_0x26a1f3)),_0x27f9e2=_0x2780c6?.[0x0];if(!_0x27f9e2||_0x41c3c2[_0x5eea9a(0x1ad)](_0x27f9e2))return![];_0x41c3c2[_0x5eea9a(0x1db)](_0x27f9e2),_0x26a1f3+=_0x27f9e2['length'];while(_0x26a1f3<_0x5b2375[_0x5eea9a(0x1ef)]&&/\s/['test'](_0x5b2375[_0x26a1f3]??''))_0x26a1f3+=0x1;if(_0x5b2375[_0x26a1f3]!=='=')return![];_0x26a1f3+=0x1;while(_0x26a1f3<_0x5b2375[_0x5eea9a(0x1ef)]&&/\s/[_0x5eea9a(0x19e)](_0x5b2375[_0x26a1f3]??''))_0x26a1f3+=0x1;const _0x3ae0ba=_0x5b2375[_0x26a1f3];if(_0x3ae0ba!=='\x22'&&_0x3ae0ba!=='\x27')return![];_0x26a1f3+=0x1;const _0x591082=_0x5b2375[_0x5eea9a(0x1bb)](_0x3ae0ba,_0x26a1f3);if(_0x591082<0x0)return![];if(decodeXmlEntities(_0x5b2375[_0x5eea9a(0x190)](_0x26a1f3,_0x591082))===null)return![];_0x26a1f3=_0x591082+0x1;}return!![];}export function detectSqlSourceMode(_0xd947fb){const _0x513c7=a302_0x495b79;let _0x17c1db=0x0;const _0x2efae9=()=>{while(_0x17c1db<_0xd947fb['length']&&/\s/['test'](_0xd947fb[_0x17c1db]??''))_0x17c1db+=0x1;};_0x2efae9();while(_0x17c1db<_0xd947fb[_0x513c7(0x1ef)]){if(_0xd947fb[_0x513c7(0x1a8)](_0x513c7(0x18b),_0x17c1db)){const _0x4969c4=_0xd947fb[_0x513c7(0x1bb)]('-->',_0x17c1db+0x4);if(_0x4969c4<0x0)return _0x513c7(0x1e1);_0x17c1db=_0x4969c4+0x3,_0x2efae9();continue;}if(_0xd947fb[_0x513c7(0x1a8)]('<?',_0x17c1db)){const _0x37decf=_0xd947fb[_0x513c7(0x1bb)]('?>',_0x17c1db+0x2);if(_0x37decf<0x0)return _0x513c7(0x1e1);_0x17c1db=_0x37decf+0x2,_0x2efae9();continue;}break;}return MYBATIS_OUTER_TAG_PATTERN[_0x513c7(0x19e)](_0xd947fb[_0x513c7(0x190)](_0x17c1db))?_0x513c7(0x1e1):'sql';}function a302_0x586e(_0x4a2014,_0x5ca875){_0x4a2014=_0x4a2014-0x188;const _0x3ec4dc=a302_0x3ec4();let _0x586e4b=_0x3ec4dc[_0x4a2014];return _0x586e4b;}function invalidMybatisSource(_0x4dc339){const _0x214e2a=a302_0x495b79;return{'sql':'','mode':_0x214e2a(0x1e1),'error':_0x4dc339};}function findXmlTagEnd(_0x5686a5,_0x2d1f38){const _0x547ffe=a302_0x495b79;let _0x6145db;for(let _0x2573b6=_0x2d1f38+0x1;_0x2573b6<_0x5686a5[_0x547ffe(0x1ef)];_0x2573b6+=0x1){const _0x3d5e34=_0x5686a5[_0x2573b6];if(_0x6145db){if(_0x3d5e34===_0x6145db)_0x6145db=undefined;continue;}if(_0x3d5e34==='\x22'||_0x3d5e34==='\x27'){_0x6145db=_0x3d5e34;continue;}if(_0x3d5e34==='>')return _0x2573b6;}return-0x1;}function decodeXmlEntities(_0x4b0bc7){const _0x251c68=a302_0x495b79;let _0xdb829e=![];const _0x47d23c=_0x4b0bc7[_0x251c68(0x1b9)](/&(?:#x[0-9a-f]+;|#[0-9]+;|[A-Za-z_:][\w:.-]*;)?/g,_0x1078ef=>{const _0x34b37e=_0x251c68;if(_0x1078ef===_0x34b37e(0x1e6))return'<';if(_0x1078ef===_0x34b37e(0x1d1))return'>';if(_0x1078ef===_0x34b37e(0x1b0))return'\x22';if(_0x1078ef===''')return'\x27';if(_0x1078ef===_0x34b37e(0x1f1))return'&';const _0x1d13bd=/^&#(?:x([0-9a-f]+)|([0-9]+));$/['exec'](_0x1078ef);if(_0x1d13bd){const _0x494f2e=_0x1d13bd[0x1],_0x408f84=_0x1d13bd[0x2],_0x2c84cb=Number[_0x34b37e(0x188)](_0x494f2e??_0x408f84??'',_0x494f2e?0x10:0xa);if(isValidXmlCharacter(_0x2c84cb))return String[_0x34b37e(0x1e8)](_0x2c84cb);}return _0xdb829e=!![],'';});return _0xdb829e?null:_0x47d23c;}function isValidXmlCharacter(_0x3b3dc8){return _0x3b3dc8===0x9||_0x3b3dc8===0xa||_0x3b3dc8===0xd||_0x3b3dc8>=0x20&&_0x3b3dc8<=0xd7ff||_0x3b3dc8>=0xe000&&_0x3b3dc8<=0xfffd||_0x3b3dc8>=0x10000&&_0x3b3dc8<=0x10ffff;}export function detectSqlType(_0x3790ff){return detectNormalizedSqlType(normalizeSqlForStaticAnalysis(_0x3790ff));}function detectNormalizedSqlType(_0x381ea3){const _0x5c9aab=a302_0x495b79;if(_0x381ea3[_0x5c9aab(0x1c1)])return{'type':_0x5c9aab(0x1ee),'isSelectOnly':![],'isDangerous':![],'reason':_0x381ea3[_0x5c9aab(0x1c1)]};if(!_0x381ea3['sql'][_0x5c9aab(0x1cb)]())return{'type':_0x5c9aab(0x1ee),'isSelectOnly':![],'isDangerous':![],'reason':_0x5c9aab(0x1c8)};const _0x183a68=tokenizeSqlForTypeAnalysis(_0x381ea3['sql']),_0x48e90d=_0x183a68['filter'](_0x102691=>_0x102691!==MYBATIS_DYNAMIC_START_MARKER&&_0x102691!==MYBATIS_DYNAMIC_END_MARKER),_0x3fd68a=findMainStatementIndex(_0x48e90d);if(_0x3fd68a<0x0)return{'type':_0x5c9aab(0x1ee),'isSelectOnly':![],'isDangerous':![],'reason':_0x5c9aab(0x1cd)};const _0x4d01f5=_0x48e90d[_0x3fd68a]??'',_0x1ef467=_0x381ea3[_0x5c9aab(0x18a)]??_0x4d01f5,_0x28b0a1=_0x183a68[_0x5c9aab(0x1d9)](_0x2c9627=>/^(DELETE|DROP|ALTER|CREATE|TRUNCATE)$/['test'](_0x2c9627)),_0x49e9d4=new Set();let _0x428079=![];for(let _0x7b9e0=0x0;_0x7b9e0<_0x183a68[_0x5c9aab(0x1ef)];_0x7b9e0+=0x1){const _0x2dd112=_0x183a68[_0x7b9e0];(_0x2dd112===_0x5c9aab(0x1df)||_0x2dd112==='SHARE')&&isLockingClauseKeyword(_0x183a68,_0x7b9e0)&&(_0x49e9d4[_0x5c9aab(0x1db)](_0x7b9e0),_0x428079=!![]);if(_0x183a68[_0x5c9aab(0x190)](_0x7b9e0,_0x7b9e0+0x4)[_0x5c9aab(0x1bf)]('\x20')==='LOCK\x20IN\x20SHARE\x20MODE')_0x428079=!![];}if(_0x1ef467==='SELECT'){const _0x1dc89b=_0x183a68[_0x5c9aab(0x1d9)]((_0x1846b3,_0x5e6e94)=>/^(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)$/[_0x5c9aab(0x19e)](_0x1846b3)&&!_0x49e9d4[_0x5c9aab(0x1ad)](_0x5e6e94));return{'type':_0x5c9aab(0x18e),'isSelectOnly':!_0x1dc89b&&!_0x428079,'isLockingRead':_0x428079,'isDangerous':_0x1dc89b,'reason':_0x1dc89b?_0x5c9aab(0x1ea):undefined};}if(_0x1ef467==='INSERT')return{'type':_0x5c9aab(0x19b),'isSelectOnly':![],'isDangerous':_0x28b0a1,'reason':_0x28b0a1?_0x5c9aab(0x1a2):undefined};if(_0x1ef467==='UPDATE')return{'type':_0x5c9aab(0x1df),'isSelectOnly':![],'isDangerous':_0x28b0a1,'reason':_0x28b0a1?'SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements':undefined};if(_0x1ef467===_0x5c9aab(0x18c))return{'type':_0x5c9aab(0x18c),'isSelectOnly':![],'isDangerous':!![],'reason':_0x5c9aab(0x1ae)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x5c9aab(0x19e)](_0x4d01f5))return{'type':_0x5c9aab(0x1c5),'isSelectOnly':![],'isDangerous':!![],'reason':_0x5c9aab(0x195)};return{'type':_0x5c9aab(0x1ee),'isSelectOnly':![],'isDangerous':![]};}function isLockingClauseKeyword(_0x38be02,_0x39c163){const _0x37ea2b=a302_0x495b79,_0x58299b=_0x38be02[_0x39c163]==='UPDATE'?[[_0x37ea2b(0x1f0)],['FOR','NO',_0x37ea2b(0x197)]]:[['FOR'],[_0x37ea2b(0x1f0),_0x37ea2b(0x197)]],_0x55b466=_0x58299b[_0x37ea2b(0x1d9)](_0x49fd93=>{const _0x1eeb36=_0x37ea2b,_0x47c5f4=_0x39c163-_0x49fd93['length'];return _0x47c5f4>=0x0&&_0x38be02[_0x1eeb36(0x190)](_0x47c5f4,_0x39c163)[_0x1eeb36(0x1bf)]('\x20')===_0x49fd93['join']('\x20');});if(!_0x55b466)return![];return!_0x38be02['slice'](_0x39c163+0x1,_0x39c163+0x5)[_0x37ea2b(0x1c9)](_0x37ea2b(0x1e5));}function a302_0x3ec4(){const _0x39c216=['update','__RABETBASE_MYBATIS_DYNAMIC_START__','Invalid\x20MyBatis\x20XML\x20closing\x20tag:\x20</','DDL\x20statements\x20require\x20explicit\x20review','34oLhcQo','KEY','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','__RABETBASE_UNRESOLVED_SQL_FRAGMENT__','set','INSERT','Multiple\x20MyBatis\x20statement\x20wrappers\x20are\x20not\x20supported.','isDangerous','test','1874120CewdFd','when',')\x5cb','SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements','where','sql','unknown\x20table(s)','12HQjoTp','-->','startsWith','otherwise','matchAll','include','NOT','has','DELETE\x20statements\x20require\x20explicit\x20review','Invalid\x20attributes\x20on\x20MyBatis\x20XML\x20tag:\x20<','"','29866SfMXPw','Unterminated\x20CDATA\x20section.','outer','RECURSIVE','<![CDATA[','property','MyBatis\x20XML\x20must\x20contain\x20exactly\x20one\x20complete\x20statement\x20wrapper.',']]>','replace','WITH','indexOf','rawName','MyBatis\x20dynamic\x20tag\x20must\x20be\x20inside\x20the\x20statement\x20wrapper:\x20<','choose','join','type','error','947630zjrPeo','insert','Unable\x20to\x20detect\x20SQL\x20type.\x20','DDL','string','foreach','SQL\x20content\x20is\x20empty','includes','MATERIALIZED','trim','7510xaVcVe','Local\x20analysis\x20could\x20not\x20parse\x20the\x20WITH\x20prefix;\x20this\x20is\x20a\x20local\x20capability\x20limit,\x20not\x20a\x20platform\x20rejection.','19657LFyaDA','__RABETBASE_MYBATIS_INCLUDE_UNRESOLVED__','Unterminated\x20XML\x20declaration.','>','\x20query\x20targeting\x20','18vaARxj','867013oCXpOb','^<\x5cs*(?:','87sbaSwu','MyBatis\x20<property>\x20must\x20be\x20a\x20self-closing\x20direct\x20child\x20of\x20<include>.','SQL\x20text\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','some','reason','add','toLowerCase','\x20with\x20parameters:\x20','187512adeurX','UPDATE','Unclosed\x20MyBatis\x20XML\x20tag:\x20<','mybatisXml','9RIBfDN','replaceAll','\x20WHERE\x20','SET','<','CDATA\x20sections\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','fromCodePoint','\x20statements\x20require\x20explicit\x20review.\x20Local\x20analysis\x20does\x20not\x20authorize\x20saving\x20or\x20execution.','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','from','7815743RBvPsE','tagName','UNKNOWN','length','FOR','&','parseInt','push','statementType','<!--','DELETE','exec','SELECT','match','slice','toUpperCase'];a302_0x3ec4=function(){return _0x39c216;};return a302_0x3ec4();}function findMainStatementIndex(_0x2a3682){const _0x4375ce=a302_0x495b79;if(_0x2a3682[0x0]!==_0x4375ce(0x1ba))return 0x0;let _0x58a49e=_0x2a3682[0x1]===_0x4375ce(0x1b4)?0x2:0x1;while(_0x58a49e<_0x2a3682[_0x4375ce(0x1ef)]){const _0x41c7ae=_0x2a3682[_0x58a49e];if(!_0x41c7ae||!(/^[A-Z_][\w$]*$/[_0x4375ce(0x19e)](_0x41c7ae)||/^[`"]/[_0x4375ce(0x19e)](_0x41c7ae)))return-0x1;_0x58a49e+=0x1;if(_0x2a3682[_0x58a49e]==='('){_0x58a49e=skipSqlParentheses(_0x2a3682,_0x58a49e);if(_0x58a49e<0x0)return-0x1;}if(_0x2a3682[_0x58a49e]!=='AS')return-0x1;_0x58a49e+=0x1;if(_0x2a3682[_0x58a49e]===_0x4375ce(0x1ac)&&_0x2a3682[_0x58a49e+0x1]===_0x4375ce(0x1ca))_0x58a49e+=0x2;else{if(_0x2a3682[_0x58a49e]==='MATERIALIZED')_0x58a49e+=0x1;}_0x58a49e=skipSqlParentheses(_0x2a3682,_0x58a49e);if(_0x58a49e<0x0)return-0x1;if(_0x2a3682[_0x58a49e]!==','){const _0x5bb66c=_0x2a3682[_0x58a49e]==='('?_0x58a49e+0x1:_0x58a49e;return/^(SELECT|INSERT|UPDATE|DELETE)$/['test'](_0x2a3682[_0x5bb66c]??'')?_0x5bb66c:-0x1;}_0x58a49e+=0x1;}return-0x1;}function skipSqlParentheses(_0xefa98f,_0x3d8342){const _0x30863c=a302_0x495b79;if(_0xefa98f[_0x3d8342]!=='(')return-0x1;let _0x20041e=0x0;for(let _0x3c3cee=_0x3d8342;_0x3c3cee<_0xefa98f[_0x30863c(0x1ef)];_0x3c3cee+=0x1){const _0x270e3c=_0xefa98f[_0x3c3cee];if(_0x270e3c===';')return-0x1;if(_0x270e3c==='(')_0x20041e+=0x1;if(_0x270e3c===')'&&--_0x20041e===0x0)return _0x3c3cee+0x1;}return-0x1;}function stripStaticAnalysisMarkers(_0x1f2076){const _0x12dea9=a302_0x495b79;return _0x1f2076[_0x12dea9(0x1e3)](MYBATIS_DYNAMIC_START_MARKER,'\x20')[_0x12dea9(0x1e3)](MYBATIS_DYNAMIC_END_MARKER,'\x20')[_0x12dea9(0x1e3)](MYBATIS_INCLUDE_MARKER,'\x20'+UNRESOLVED_SQL_FRAGMENT+'\x20');}function tokenizeSqlForTypeAnalysis(_0x48215e){const _0x351179=a302_0x495b79,_0x400658=[],_0x23bccc=/\/\*[\s\S]*?\*\/|--[^\r\n]*|[#$]\{[^}]*\}|#[^\r\n]*|'(?:''|\\[\s\S]|[^'\\])*'|"(?:""|\\[\s\S]|[^"\\])*"|`(?:``|\\[\s\S]|[^`\\])*`|@[A-Za-z_]\w*|[A-Za-z_]\w*|\S/g;for(const _0x2d4412 of _0x48215e[_0x351179(0x1aa)](_0x23bccc)){const _0x1fbe56=_0x2d4412[0x0];if(_0x1fbe56[_0x351179(0x1a8)]('/*')||_0x1fbe56[_0x351179(0x1a8)]('--')||_0x1fbe56[_0x351179(0x1a8)]('#')&&!_0x1fbe56[_0x351179(0x1a8)]('#{'))continue;_0x400658[_0x351179(0x189)](/^["`]/[_0x351179(0x19e)](_0x1fbe56)?_0x1fbe56:/^[\x27@#$]/[_0x351179(0x19e)](_0x1fbe56)?'?':_0x1fbe56[_0x351179(0x191)]());}return _0x400658;}function extractTables(_0x3d3947,_0x1f24ae){const _0x26894f=a302_0x495b79,_0x5f7eb2=_0x3d3947[_0x26894f(0x1b9)](/#\{[^}]*\}/g,'?')[_0x26894f(0x1b9)](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')[_0x26894f(0x1b9)](/--.*$/gm,'')[_0x26894f(0x1b9)](/\/\*[\s\S]*?\*\//g,''),_0x456058=[],_0x3d6efc=_0x5f7eb2[_0x26894f(0x18f)](/FROM\s+([^\s,)(]+)/i);addTable(_0x456058,_0x3d6efc?.[0x1]);for(const _0x508713 of _0x5f7eb2[_0x26894f(0x1aa)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){addTable(_0x456058,_0x508713[0x1]);}const _0x7c081d=_0x5f7eb2[_0x26894f(0x18f)](/INTO\s+([^\s(]+)/i);addTable(_0x456058,_0x7c081d?.[0x1]);if(_0x1f24ae==='UPDATE'){const _0x3cc55c=_0x5f7eb2['match'](/UPDATE\s+([^\s,)(]+)/i);addTable(_0x456058,_0x3cc55c?.[0x1]);}return _0x456058;}function addTable(_0x32a1d5,_0xa3e164){const _0x460c69=a302_0x495b79,_0x4bb630=_0xa3e164?.[_0x460c69(0x1b9)](/[`"]/g,'');_0x4bb630&&_0x4bb630!==UNRESOLVED_SQL_FRAGMENT&&!_0x32a1d5[_0x460c69(0x1c9)](_0x4bb630)&&_0x32a1d5[_0x460c69(0x189)](_0x4bb630);}function extractParameters(_0x5843e8){const _0x32e2aa=a302_0x495b79,_0x32223a=new Set();for(const _0x245f1c of _0x5843e8[_0x32e2aa(0x1aa)](/[#$]\{\s*([A-Za-z_][\w.]*)\s*(?=[,}])/g)){if(_0x245f1c[0x1])_0x32223a[_0x32e2aa(0x1db)](_0x245f1c[0x1]);}return Array[_0x32e2aa(0x1eb)](_0x32223a);}export function validateSql(_0x49f593){const _0x351265=a302_0x495b79,_0x38f01a=normalizeSqlForStaticAnalysis(_0x49f593),_0x173127=detectNormalizedSqlType(_0x38f01a),_0x3b51b5=stripStaticAnalysisMarkers(_0x38f01a['sql']),_0x5e3534=_0x38f01a[_0x351265(0x1c1)]?[]:extractTables(_0x3b51b5,_0x173127[_0x351265(0x1c0)]),_0x529237=_0x38f01a[_0x351265(0x1c1)]?[]:extractParameters(_0x3b51b5);if(_0x173127[_0x351265(0x19d)])return{'valid':![],'sqlType':_0x173127,'tables':_0x5e3534,'parameters':_0x529237,'message':_0x173127['reason']||_0x173127[_0x351265(0x1c0)]+_0x351265(0x1e9)};if(_0x173127[_0x351265(0x1c0)]===_0x351265(0x1ee))return{'valid':![],'sqlType':_0x173127,'tables':_0x5e3534,'parameters':_0x529237,'message':_0x38f01a[_0x351265(0x1c1)]?_0x351265(0x1c4)+_0x38f01a[_0x351265(0x1c1)]:_0x173127['reason']?_0x351265(0x1c4)+_0x173127[_0x351265(0x1da)]:_0x351265(0x198)};return{'valid':!![],'sqlType':_0x173127,'tables':_0x5e3534,'parameters':_0x529237,'message':_0x173127[_0x351265(0x1c0)]+_0x351265(0x1d2)+(_0x5e3534[_0x351265(0x1ef)]?_0x5e3534[_0x351265(0x1bf)](',\x20'):_0x351265(0x1a5))+(_0x529237['length']?_0x351265(0x1dd)+_0x529237[_0x351265(0x1bf)](',\x20'):'')};}
|
|
1
|
+
const a302_0x1b3c16=a302_0x4438;(function(_0x5e6542,_0x3f0417){const _0x188a08=a302_0x4438,_0x454dad=_0x5e6542();while(!![]){try{const _0x2463b5=parseInt(_0x188a08(0xe6))/0x1+parseInt(_0x188a08(0xac))/0x2+-parseInt(_0x188a08(0xa0))/0x3+-parseInt(_0x188a08(0xf4))/0x4+-parseInt(_0x188a08(0xbf))/0x5+parseInt(_0x188a08(0xd8))/0x6*(-parseInt(_0x188a08(0xd9))/0x7)+parseInt(_0x188a08(0xc5))/0x8;if(_0x2463b5===_0x3f0417)break;else _0x454dad['push'](_0x454dad['shift']());}catch(_0x3f6635){_0x454dad['push'](_0x454dad['shift']());}}}(a302_0xd440,0xded62));const MYBATIS_OUTER_TAGS=new Map([[a302_0x1b3c16(0xd5),'SELECT'],[a302_0x1b3c16(0xc7),a302_0x1b3c16(0xb9)],[a302_0x1b3c16(0x9f),a302_0x1b3c16(0xe8)],[a302_0x1b3c16(0xeb),'DELETE']]),MYBATIS_DYNAMIC_TAGS=new Set(['if','where','foreach',a302_0x1b3c16(0xb3),a302_0x1b3c16(0xaf),a302_0x1b3c16(0xf2),a302_0x1b3c16(0xa3),a302_0x1b3c16(0x91),a302_0x1b3c16(0xdc),a302_0x1b3c16(0xa5),a302_0x1b3c16(0xc0)]),MYBATIS_BRANCH_TAGS=new Set(['if',a302_0x1b3c16(0xab),'choose',a302_0x1b3c16(0xaf),'otherwise']);export const MYBATIS_DYNAMIC_START_MARKER=a302_0x1b3c16(0x98);export const MYBATIS_DYNAMIC_END_MARKER=a302_0x1b3c16(0xf3);export const MYBATIS_INCLUDE_MARKER=a302_0x1b3c16(0xee);const UNRESOLVED_SQL_FRAGMENT=a302_0x1b3c16(0xc8),MYBATIS_OUTER_TAG_PATTERN=new RegExp(a302_0x1b3c16(0xd7)+[...MYBATIS_OUTER_TAGS[a302_0x1b3c16(0xc4)]()][a302_0x1b3c16(0xd6)]('|')+a302_0x1b3c16(0xb0),'i');export function normalizeSqlForStaticAnalysis(_0x22d246){const _0xd7a5ef=a302_0x1b3c16,_0x397e6d=typeof _0x22d246==='string'?_0x22d246:'';if(detectSqlSourceMode(_0x397e6d)===_0xd7a5ef(0xd3))return{'sql':_0x397e6d,'mode':_0xd7a5ef(0xd3)};let _0x53873e=0x0,_0x27dfdc='',_0x34cc98,_0xd336a9=![],_0x4cf653=![];const _0x61047=[];while(_0x53873e<_0x397e6d[_0xd7a5ef(0xb4)]){if(_0x397e6d['startsWith'](_0xd7a5ef(0xad),_0x53873e)){const _0x4ba687=_0x397e6d[_0xd7a5ef(0xf1)](_0xd7a5ef(0xca),_0x53873e+0x4);if(_0x4ba687<0x0)return invalidMybatisSource(_0xd7a5ef(0xbd));_0x27dfdc+='\x20',_0x53873e=_0x4ba687+0x3;continue;}if(_0x397e6d[_0xd7a5ef(0xe1)]('<;if(_0x2aed77<0x0)return invalidMybatisSource(_0xd7a5ef(0xe3));_0x27dfdc+=_0x397e6d[_0xd7a5ef(0xd2)](_0x53873e+0x9,_0x2aed77),_0x53873e=_0x2aed77+0x3;continue;}if(_0x397e6d[_0xd7a5ef(0xe1)]('<?',_0x53873e)){if(_0xd336a9)return invalidMybatisSource('XML\x20declarations\x20must\x20precede\x20the\x20MyBatis\x20statement\x20wrapper.');const _0x3680e5=_0x397e6d['indexOf']('?>',_0x53873e+0x2);if(_0x3680e5<0x0)return invalidMybatisSource(_0xd7a5ef(0xea));_0x27dfdc+='\x20',_0x53873e=_0x3680e5+0x2;continue;}if(_0x397e6d[_0x53873e]!=='<'){const _0x5800d1=_0x397e6d[_0xd7a5ef(0xf1)]('<',_0x53873e),_0x8e04b5=_0x5800d1<0x0?_0x397e6d['length']:_0x5800d1,_0x56bc5e=_0x397e6d[_0xd7a5ef(0xd2)](_0x53873e,_0x8e04b5);if((!_0xd336a9||_0x4cf653)&&_0x56bc5e['trim']())return invalidMybatisSource(_0xd7a5ef(0x94));if(_0xd336a9&&!_0x4cf653){const _0x11e45b=decodeXmlEntities(_0x56bc5e);if(_0x11e45b===null)return invalidMybatisSource(_0xd7a5ef(0xe9));_0x27dfdc+=_0x11e45b;}else _0x27dfdc+='\x20';_0x53873e=_0x8e04b5;continue;}const _0x2780e7=findXmlTagEnd(_0x397e6d,_0x53873e);if(_0x2780e7<0x0)return invalidMybatisSource(_0xd7a5ef(0xc9));const _0x3db33c=_0x397e6d[_0xd7a5ef(0xd2)](_0x53873e,_0x2780e7+0x1),_0x1812c9=/^<\s*(\/?)\s*([A-Za-z][\w:-]*)([\s\S]*?)(\/?)\s*>$/[_0xd7a5ef(0xd4)](_0x3db33c);if(!_0x1812c9)return invalidMybatisSource(_0xd7a5ef(0xf0));const _0x4cae47=_0x1812c9[0x1]==='/',_0x536a38=_0x1812c9[0x2]??'',_0x84e2ef=_0x536a38[_0xd7a5ef(0xcc)](),_0x27a3ef=_0x1812c9[0x3]??'',_0x561567=_0x1812c9[0x4]==='/',_0x2c40d6=MYBATIS_OUTER_TAGS['get'](_0x84e2ef);if(!_0x2c40d6&&!MYBATIS_DYNAMIC_TAGS[_0xd7a5ef(0xbc)](_0x84e2ef))return invalidMybatisSource(_0xd7a5ef(0xcb)+_0x84e2ef+'>.');if(!_0x2c40d6&&_0x536a38!==_0x84e2ef)return invalidMybatisSource(_0xd7a5ef(0x9c)+_0x536a38+'>.');if(_0x4cae47){if(_0x27a3ef[_0xd7a5ef(0xa3)]()||_0x561567)return invalidMybatisSource('Invalid\x20MyBatis\x20XML\x20closing\x20tag:\x20</'+_0x536a38+'>.');const _0x3b6d5c=_0x61047['at'](-0x1);if(!_0x3b6d5c||(_0x3b6d5c[_0xd7a5ef(0xef)]?_0x3b6d5c[_0xd7a5ef(0xdd)]!==_0x84e2ef:_0x3b6d5c[_0xd7a5ef(0xb8)]!==_0x536a38))return invalidMybatisSource(_0xd7a5ef(0xb2)+_0x536a38+'>.');_0x61047['pop']();if(_0x3b6d5c[_0xd7a5ef(0xef)])_0x4cf653=!![];_0x27dfdc+=MYBATIS_BRANCH_TAGS[_0xd7a5ef(0xbc)](_0x84e2ef)?'\x20'+MYBATIS_DYNAMIC_END_MARKER+'\x20':'\x20';}else{if(!hasWellFormedXmlAttributes(_0x27a3ef))return invalidMybatisSource(_0xd7a5ef(0xa6)+_0x536a38+'>.');if(_0x84e2ef===_0xd7a5ef(0xc0)&&(!_0x561567||_0x61047['at'](-0x1)?.[_0xd7a5ef(0xdd)]!=='include'))return invalidMybatisSource(_0xd7a5ef(0xd0));if(_0x2c40d6){if(_0xd336a9||_0x61047[_0xd7a5ef(0xb4)]>0x0)return invalidMybatisSource(_0xd7a5ef(0x95));_0xd336a9=!![],_0x4cf653=_0x561567,_0x34cc98=_0x2c40d6;}else{if(!_0xd336a9||_0x4cf653)return invalidMybatisSource(_0xd7a5ef(0xc2)+_0x536a38+'>.');}_0x27dfdc+=_0x84e2ef===_0xd7a5ef(0xda)?'\x20WHERE\x20':_0x84e2ef==='set'?_0xd7a5ef(0xc6):_0x84e2ef===_0xd7a5ef(0xa5)?'\x20'+MYBATIS_INCLUDE_MARKER+'\x20':MYBATIS_BRANCH_TAGS[_0xd7a5ef(0xbc)](_0x84e2ef)&&!_0x561567?'\x20'+MYBATIS_DYNAMIC_START_MARKER+'\x20':'\x20',!_0x561567&&_0x61047['push']({'rawName':_0x536a38,'tagName':_0x84e2ef,'outer':!!_0x2c40d6});}_0x53873e=_0x2780e7+0x1;}if(_0x61047['length']>0x0)return invalidMybatisSource(_0xd7a5ef(0xe4)+_0x61047['at'](-0x1)?.[_0xd7a5ef(0xb8)]+'>.');if(!_0xd336a9||!_0x4cf653)return invalidMybatisSource(_0xd7a5ef(0xb5));return{'sql':_0x27dfdc[_0xd7a5ef(0xa3)](),'mode':_0xd7a5ef(0xe2),..._0x34cc98?{'statementType':_0x34cc98}:{}};}function hasWellFormedXmlAttributes(_0x431b92){const _0x4d8db4=a302_0x1b3c16;let _0x1f761b=0x0;const _0x4d7572=new Set();while(_0x1f761b<_0x431b92['length']){while(_0x1f761b<_0x431b92[_0x4d8db4(0xb4)]&&/\s/[_0x4d8db4(0xe7)](_0x431b92[_0x1f761b]??''))_0x1f761b+=0x1;if(_0x1f761b>=_0x431b92['length'])return!![];const _0x5d5075=/^[A-Za-z_:][\w:.-]*/[_0x4d8db4(0xd4)](_0x431b92[_0x4d8db4(0xd2)](_0x1f761b)),_0x48a258=_0x5d5075?.[0x0];if(!_0x48a258||_0x4d7572[_0x4d8db4(0xbc)](_0x48a258))return![];_0x4d7572['add'](_0x48a258),_0x1f761b+=_0x48a258[_0x4d8db4(0xb4)];while(_0x1f761b<_0x431b92[_0x4d8db4(0xb4)]&&/\s/['test'](_0x431b92[_0x1f761b]??''))_0x1f761b+=0x1;if(_0x431b92[_0x1f761b]!=='=')return![];_0x1f761b+=0x1;while(_0x1f761b<_0x431b92[_0x4d8db4(0xb4)]&&/\s/['test'](_0x431b92[_0x1f761b]??''))_0x1f761b+=0x1;const _0x2186b7=_0x431b92[_0x1f761b];if(_0x2186b7!=='\x22'&&_0x2186b7!=='\x27')return![];_0x1f761b+=0x1;const _0x4be295=_0x431b92[_0x4d8db4(0xf1)](_0x2186b7,_0x1f761b);if(_0x4be295<0x0)return![];if(decodeXmlEntities(_0x431b92[_0x4d8db4(0xd2)](_0x1f761b,_0x4be295))===null)return![];_0x1f761b=_0x4be295+0x1;}return!![];}export function detectSqlSourceMode(_0x42c7e5){const _0x102764=a302_0x1b3c16;let _0x59e379=0x0;const _0x3b2bf2=()=>{const _0x51a281=a302_0x4438;while(_0x59e379<_0x42c7e5['length']&&/\s/[_0x51a281(0xe7)](_0x42c7e5[_0x59e379]??''))_0x59e379+=0x1;};_0x3b2bf2();while(_0x59e379<_0x42c7e5['length']){if(_0x42c7e5[_0x102764(0xe1)](_0x102764(0xad),_0x59e379)){const _0xbb60cb=_0x42c7e5[_0x102764(0xf1)](_0x102764(0xca),_0x59e379+0x4);if(_0xbb60cb<0x0)return _0x102764(0xe2);_0x59e379=_0xbb60cb+0x3,_0x3b2bf2();continue;}if(_0x42c7e5[_0x102764(0xe1)]('<?',_0x59e379)){const _0x443ccf=_0x42c7e5['indexOf']('?>',_0x59e379+0x2);if(_0x443ccf<0x0)return'mybatisXml';_0x59e379=_0x443ccf+0x2,_0x3b2bf2();continue;}break;}return MYBATIS_OUTER_TAG_PATTERN[_0x102764(0xe7)](_0x42c7e5[_0x102764(0xd2)](_0x59e379))?_0x102764(0xe2):'sql';}function invalidMybatisSource(_0x292ea7){const _0x572708=a302_0x1b3c16;return{'sql':'','mode':_0x572708(0xe2),'error':_0x292ea7};}function findXmlTagEnd(_0x299649,_0x5f52f1){const _0xa6402f=a302_0x1b3c16;let _0x247f81;for(let _0x4afecb=_0x5f52f1+0x1;_0x4afecb<_0x299649[_0xa6402f(0xb4)];_0x4afecb+=0x1){const _0x233233=_0x299649[_0x4afecb];if(_0x247f81){if(_0x233233===_0x247f81)_0x247f81=undefined;continue;}if(_0x233233==='\x22'||_0x233233==='\x27'){_0x247f81=_0x233233;continue;}if(_0x233233==='>')return _0x4afecb;}return-0x1;}function decodeXmlEntities(_0x2ad2cb){const _0x298b99=a302_0x1b3c16;let _0x2bfaa7=![];const _0x4db129=_0x2ad2cb[_0x298b99(0x9d)](/&(?:#x[0-9a-f]+;|#[0-9]+;|[A-Za-z_:][\w:.-]*;)?/g,_0x5abe2e=>{const _0xe40596=_0x298b99;if(_0x5abe2e==='<')return'<';if(_0x5abe2e==='>')return'>';if(_0x5abe2e===_0xe40596(0xae))return'\x22';if(_0x5abe2e===_0xe40596(0xd1))return'\x27';if(_0x5abe2e===_0xe40596(0xa4))return'&';const _0x36cfc5=/^&#(?:x([0-9a-f]+)|([0-9]+));$/[_0xe40596(0xd4)](_0x5abe2e);if(_0x36cfc5){const _0x2c7d4a=_0x36cfc5[0x1],_0x5898d2=_0x36cfc5[0x2],_0x5d0c1b=Number[_0xe40596(0xb6)](_0x2c7d4a??_0x5898d2??'',_0x2c7d4a?0x10:0xa);if(isValidXmlCharacter(_0x5d0c1b))return String[_0xe40596(0xa7)](_0x5d0c1b);}return _0x2bfaa7=!![],'';});return _0x2bfaa7?null:_0x4db129;}function isValidXmlCharacter(_0x2971e5){return _0x2971e5===0x9||_0x2971e5===0xa||_0x2971e5===0xd||_0x2971e5>=0x20&&_0x2971e5<=0xd7ff||_0x2971e5>=0xe000&&_0x2971e5<=0xfffd||_0x2971e5>=0x10000&&_0x2971e5<=0x10ffff;}export function detectSqlType(_0x5f3d06){return detectNormalizedSqlType(normalizeSqlForStaticAnalysis(_0x5f3d06));}function a302_0xd440(){const _0x218e28=['UPDATE','Invalid\x20XML\x20entity\x20reference.','Unterminated\x20XML\x20declaration.','delete','reason','matchAll','__RABETBASE_MYBATIS_INCLUDE_UNRESOLVED__','outer','Invalid\x20MyBatis\x20XML\x20tag.','indexOf','otherwise','__RABETBASE_MYBATIS_DYNAMIC_END__','4451968efVSfz','set','match','SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements','SQL\x20text\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','Multiple\x20MyBatis\x20statement\x20wrappers\x20are\x20not\x20supported.','DELETE\x20statements\x20require\x20explicit\x20review','NOT','__RABETBASE_MYBATIS_DYNAMIC_START__','filter','includes','push','MyBatis\x20dynamic\x20tag\x20names\x20must\x20be\x20lowercase:\x20<','replace','SQL\x20content\x20is\x20empty','update','917454KAlogG','UNKNOWN','FOR','trim','&','include','Invalid\x20attributes\x20on\x20MyBatis\x20XML\x20tag:\x20<','fromCodePoint','SHARE','add','CDATA\x20sections\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','foreach','2700060bqeVnz','<!--','"','when',')\x5cb','DELETE','Mismatched\x20MyBatis\x20XML\x20closing\x20tag:\x20</','choose','length','MyBatis\x20XML\x20must\x20contain\x20exactly\x20one\x20complete\x20statement\x20wrapper.','parseInt','from','rawName','INSERT','KEY','error','has','Unterminated\x20XML\x20comment.','\x20query\x20targeting\x20','850970srIHxJ','property','MATERIALIZED','MyBatis\x20dynamic\x20tag\x20must\x20be\x20inside\x20the\x20statement\x20wrapper:\x20<','type','keys','3798840sSefqy','\x20SET\x20','insert','__RABETBASE_UNRESOLVED_SQL_FRAGMENT__','Unterminated\x20MyBatis\x20XML\x20tag.','-->','Unsupported\x20MyBatis\x20XML\x20tag:\x20<','toLowerCase','isDangerous','Local\x20analysis\x20could\x20not\x20parse\x20the\x20WITH\x20prefix;\x20this\x20is\x20a\x20local\x20capability\x20limit,\x20not\x20a\x20platform\x20rejection.','Unable\x20to\x20detect\x20SQL\x20type.\x20','MyBatis\x20<property>\x20must\x20be\x20a\x20self-closing\x20direct\x20child\x20of\x20<include>.',''','slice','sql','exec','select','join','^<\x5cs*(?:','54BXwCIe','876085smMJtA','where','some','bind','tagName','replaceAll','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','WITH','startsWith','mybatisXml','Unterminated\x20CDATA\x20section.','Unclosed\x20MyBatis\x20XML\x20tag:\x20<','SELECT','1803252DXqJwV','test'];a302_0xd440=function(){return _0x218e28;};return a302_0xd440();}function detectNormalizedSqlType(_0x2722f1){const _0x4a0f1d=a302_0x1b3c16;if(_0x2722f1[_0x4a0f1d(0xbb)])return{'type':_0x4a0f1d(0xa1),'isSelectOnly':![],'isDangerous':![],'reason':_0x2722f1[_0x4a0f1d(0xbb)]};if(!_0x2722f1[_0x4a0f1d(0xd3)][_0x4a0f1d(0xa3)]())return{'type':_0x4a0f1d(0xa1),'isSelectOnly':![],'isDangerous':![],'reason':_0x4a0f1d(0x9e)};const _0x1ad2ad=tokenizeSqlForTypeAnalysis(_0x2722f1['sql']),_0x59d332=_0x1ad2ad[_0x4a0f1d(0x99)](_0x34b1f6=>_0x34b1f6!==MYBATIS_DYNAMIC_START_MARKER&&_0x34b1f6!==MYBATIS_DYNAMIC_END_MARKER),_0x46c922=findMainStatementIndex(_0x59d332);if(_0x46c922<0x0)return{'type':_0x4a0f1d(0xa1),'isSelectOnly':![],'isDangerous':![],'reason':_0x4a0f1d(0xce)};const _0x5ddb3d=_0x59d332[_0x46c922]??'',_0x20c781=_0x2722f1['statementType']??_0x5ddb3d,_0x1aebc8=_0x1ad2ad[_0x4a0f1d(0xdb)](_0x441127=>/^(DELETE|DROP|ALTER|CREATE|TRUNCATE)$/[_0x4a0f1d(0xe7)](_0x441127)),_0x18c012=new Set();let _0x403ace=![];for(let _0x15e89b=0x0;_0x15e89b<_0x1ad2ad[_0x4a0f1d(0xb4)];_0x15e89b+=0x1){const _0x22b6ef=_0x1ad2ad[_0x15e89b];(_0x22b6ef===_0x4a0f1d(0xe8)||_0x22b6ef===_0x4a0f1d(0xa8))&&isLockingClauseKeyword(_0x1ad2ad,_0x15e89b)&&(_0x18c012['add'](_0x15e89b),_0x403ace=!![]);if(_0x1ad2ad['slice'](_0x15e89b,_0x15e89b+0x4)[_0x4a0f1d(0xd6)]('\x20')==='LOCK\x20IN\x20SHARE\x20MODE')_0x403ace=!![];}if(_0x20c781===_0x4a0f1d(0xe5)){const _0x3b5407=_0x1ad2ad[_0x4a0f1d(0xdb)]((_0x50a3a4,_0xca847f)=>/^(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)$/[_0x4a0f1d(0xe7)](_0x50a3a4)&&!_0x18c012['has'](_0xca847f));return{'type':_0x4a0f1d(0xe5),'isSelectOnly':!_0x3b5407&&!_0x403ace,'isLockingRead':_0x403ace,'isDangerous':_0x3b5407,'reason':_0x3b5407?'SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT':undefined};}if(_0x20c781===_0x4a0f1d(0xb9))return{'type':_0x4a0f1d(0xb9),'isSelectOnly':![],'isDangerous':_0x1aebc8,'reason':_0x1aebc8?_0x4a0f1d(0x93):undefined};if(_0x20c781===_0x4a0f1d(0xe8))return{'type':_0x4a0f1d(0xe8),'isSelectOnly':![],'isDangerous':_0x1aebc8,'reason':_0x1aebc8?_0x4a0f1d(0x93):undefined};if(_0x20c781===_0x4a0f1d(0xb1))return{'type':_0x4a0f1d(0xb1),'isSelectOnly':![],'isDangerous':!![],'reason':_0x4a0f1d(0x96)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x4a0f1d(0xe7)](_0x5ddb3d))return{'type':'DDL','isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20require\x20explicit\x20review'};return{'type':_0x4a0f1d(0xa1),'isSelectOnly':![],'isDangerous':![]};}function isLockingClauseKeyword(_0x4d5cdc,_0x51d861){const _0x525e88=a302_0x1b3c16,_0xd19019=_0x4d5cdc[_0x51d861]==='UPDATE'?[['FOR'],[_0x525e88(0xa2),'NO','KEY']]:[[_0x525e88(0xa2)],[_0x525e88(0xa2),_0x525e88(0xba)]],_0x109932=_0xd19019[_0x525e88(0xdb)](_0x511a4c=>{const _0x3a8779=_0x525e88,_0x4cf9ac=_0x51d861-_0x511a4c[_0x3a8779(0xb4)];return _0x4cf9ac>=0x0&&_0x4d5cdc[_0x3a8779(0xd2)](_0x4cf9ac,_0x51d861)[_0x3a8779(0xd6)]('\x20')===_0x511a4c[_0x3a8779(0xd6)]('\x20');});if(!_0x109932)return![];return!_0x4d5cdc[_0x525e88(0xd2)](_0x51d861+0x1,_0x51d861+0x5)[_0x525e88(0x9a)]('SET');}function findMainStatementIndex(_0x286f04){const _0x3f5184=a302_0x1b3c16;if(_0x286f04[0x0]!==_0x3f5184(0xe0))return 0x0;let _0x2f197c=_0x286f04[0x1]==='RECURSIVE'?0x2:0x1;while(_0x2f197c<_0x286f04[_0x3f5184(0xb4)]){const _0x169e66=_0x286f04[_0x2f197c];if(!_0x169e66||!(/^[A-Z_][\w$]*$/['test'](_0x169e66)||/^[`"]/[_0x3f5184(0xe7)](_0x169e66)))return-0x1;_0x2f197c+=0x1;if(_0x286f04[_0x2f197c]==='('){_0x2f197c=skipSqlParentheses(_0x286f04,_0x2f197c);if(_0x2f197c<0x0)return-0x1;}if(_0x286f04[_0x2f197c]!=='AS')return-0x1;_0x2f197c+=0x1;if(_0x286f04[_0x2f197c]===_0x3f5184(0x97)&&_0x286f04[_0x2f197c+0x1]===_0x3f5184(0xc1))_0x2f197c+=0x2;else{if(_0x286f04[_0x2f197c]===_0x3f5184(0xc1))_0x2f197c+=0x1;}_0x2f197c=skipSqlParentheses(_0x286f04,_0x2f197c);if(_0x2f197c<0x0)return-0x1;if(_0x286f04[_0x2f197c]!==','){const _0x4059e2=_0x286f04[_0x2f197c]==='('?_0x2f197c+0x1:_0x2f197c;return/^(SELECT|INSERT|UPDATE|DELETE)$/[_0x3f5184(0xe7)](_0x286f04[_0x4059e2]??'')?_0x4059e2:-0x1;}_0x2f197c+=0x1;}return-0x1;}function skipSqlParentheses(_0x244cab,_0xe9b7c9){if(_0x244cab[_0xe9b7c9]!=='(')return-0x1;let _0x4e5b25=0x0;for(let _0x1a4757=_0xe9b7c9;_0x1a4757<_0x244cab['length'];_0x1a4757+=0x1){const _0x3bdcdd=_0x244cab[_0x1a4757];if(_0x3bdcdd===';')return-0x1;if(_0x3bdcdd==='(')_0x4e5b25+=0x1;if(_0x3bdcdd===')'&&--_0x4e5b25===0x0)return _0x1a4757+0x1;}return-0x1;}function stripStaticAnalysisMarkers(_0x1ebf8b){const _0x467769=a302_0x1b3c16;return _0x1ebf8b[_0x467769(0xde)](MYBATIS_DYNAMIC_START_MARKER,'\x20')[_0x467769(0xde)](MYBATIS_DYNAMIC_END_MARKER,'\x20')[_0x467769(0xde)](MYBATIS_INCLUDE_MARKER,'\x20'+UNRESOLVED_SQL_FRAGMENT+'\x20');}function tokenizeSqlForTypeAnalysis(_0x11961c){const _0x17d850=a302_0x1b3c16,_0x31f05c=[],_0x3f8f8b=/\/\*[\s\S]*?\*\/|--[^\r\n]*|[#$]\{[^}]*\}|#[^\r\n]*|'(?:''|\\[\s\S]|[^'\\])*'|"(?:""|\\[\s\S]|[^"\\])*"|`(?:``|\\[\s\S]|[^`\\])*`|@[A-Za-z_]\w*|[A-Za-z_]\w*|\S/g;for(const _0x651f2d of _0x11961c[_0x17d850(0xed)](_0x3f8f8b)){const _0x35b983=_0x651f2d[0x0];if(_0x35b983[_0x17d850(0xe1)]('/*')||_0x35b983[_0x17d850(0xe1)]('--')||_0x35b983['startsWith']('#')&&!_0x35b983[_0x17d850(0xe1)]('#{'))continue;_0x31f05c[_0x17d850(0x9b)](/^["`]/[_0x17d850(0xe7)](_0x35b983)?_0x35b983:/^[\x27@#$]/['test'](_0x35b983)?'?':_0x35b983['toUpperCase']());}return _0x31f05c;}function extractTables(_0x805a15,_0x35ebaf){const _0x589685=a302_0x1b3c16,_0x1142c4=_0x805a15[_0x589685(0x9d)](/#\{[^}]*\}/g,'?')[_0x589685(0x9d)](/\$\{[^}]*\}/g,'?')[_0x589685(0x9d)](/'[^']*'/g,'\x27\x27')[_0x589685(0x9d)](/--.*$/gm,'')['replace'](/\/\*[\s\S]*?\*\//g,''),_0x18b27c=[],_0x1c0c33=_0x1142c4[_0x589685(0x92)](/FROM\s+([^\s,)(]+)/i);addTable(_0x18b27c,_0x1c0c33?.[0x1]);for(const _0x4227b6 of _0x1142c4['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){addTable(_0x18b27c,_0x4227b6[0x1]);}const _0x427f7a=_0x1142c4[_0x589685(0x92)](/INTO\s+([^\s(]+)/i);addTable(_0x18b27c,_0x427f7a?.[0x1]);if(_0x35ebaf==='UPDATE'){const _0xd64c3c=_0x1142c4[_0x589685(0x92)](/UPDATE\s+([^\s,)(]+)/i);addTable(_0x18b27c,_0xd64c3c?.[0x1]);}return _0x18b27c;}function addTable(_0x5371ff,_0x3bbad3){const _0x2d74b5=a302_0x1b3c16,_0x15a9d6=_0x3bbad3?.[_0x2d74b5(0x9d)](/[`"]/g,'');_0x15a9d6&&_0x15a9d6!==UNRESOLVED_SQL_FRAGMENT&&!_0x5371ff['includes'](_0x15a9d6)&&_0x5371ff[_0x2d74b5(0x9b)](_0x15a9d6);}function extractParameters(_0x6d8155){const _0x46949a=a302_0x1b3c16,_0x26a579=new Set();for(const _0x4989ed of _0x6d8155['matchAll'](/[#$]\{\s*([A-Za-z_][\w.]*)\s*(?=[,}])/g)){if(_0x4989ed[0x1])_0x26a579[_0x46949a(0xa9)](_0x4989ed[0x1]);}return Array[_0x46949a(0xb7)](_0x26a579);}function a302_0x4438(_0x569efd,_0x385143){_0x569efd=_0x569efd-0x91;const _0xd4409d=a302_0xd440();let _0x4438a5=_0xd4409d[_0x569efd];return _0x4438a5;}export function validateSql(_0x251918){const _0x303f7e=a302_0x1b3c16,_0x21b2d7=normalizeSqlForStaticAnalysis(_0x251918),_0x131eed=detectNormalizedSqlType(_0x21b2d7),_0x3dd6f0=stripStaticAnalysisMarkers(_0x21b2d7[_0x303f7e(0xd3)]),_0x54db05=_0x21b2d7['error']?[]:extractTables(_0x3dd6f0,_0x131eed[_0x303f7e(0xc3)]),_0x584cdc=_0x21b2d7[_0x303f7e(0xbb)]?[]:extractParameters(_0x3dd6f0);if(_0x131eed[_0x303f7e(0xcd)])return{'valid':![],'sqlType':_0x131eed,'tables':_0x54db05,'parameters':_0x584cdc,'message':_0x131eed[_0x303f7e(0xec)]||_0x131eed[_0x303f7e(0xc3)]+'\x20statements\x20require\x20explicit\x20review.\x20Local\x20analysis\x20does\x20not\x20authorize\x20saving\x20or\x20execution.'};if(_0x131eed['type']===_0x303f7e(0xa1))return{'valid':![],'sqlType':_0x131eed,'tables':_0x54db05,'parameters':_0x584cdc,'message':_0x21b2d7[_0x303f7e(0xbb)]?'Unable\x20to\x20detect\x20SQL\x20type.\x20'+_0x21b2d7['error']:_0x131eed[_0x303f7e(0xec)]?_0x303f7e(0xcf)+_0x131eed['reason']:_0x303f7e(0xdf)};return{'valid':!![],'sqlType':_0x131eed,'tables':_0x54db05,'parameters':_0x584cdc,'message':_0x131eed[_0x303f7e(0xc3)]+_0x303f7e(0xbe)+(_0x54db05[_0x303f7e(0xb4)]?_0x54db05[_0x303f7e(0xd6)](',\x20'):'unknown\x20table(s)')+(_0x584cdc[_0x303f7e(0xb4)]?'\x20with\x20parameters:\x20'+_0x584cdc['join'](',\x20'):'')};}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a303_0x28e243=a303_0x4b16;(function(_0x14b5e2,_0x5e49f0){const _0xd2fcc5=a303_0x4b16,_0x90263e=_0x14b5e2();while(!![]){try{const _0x360505=parseInt(_0xd2fcc5(0x1db))/0x1*(parseInt(_0xd2fcc5(0x1d1))/0x2)+parseInt(_0xd2fcc5(0x1d2))/0x3+-parseInt(_0xd2fcc5(0x1e3))/0x4+parseInt(_0xd2fcc5(0x1dc))/0x5+parseInt(_0xd2fcc5(0x1df))/0x6*(parseInt(_0xd2fcc5(0x1d8))/0x7)+parseInt(_0xd2fcc5(0x1e2))/0x8+parseInt(_0xd2fcc5(0x1ce))/0x9*(-parseInt(_0xd2fcc5(0x1c8))/0xa);if(_0x360505===_0x5e49f0)break;else _0x90263e['push'](_0x90263e['shift']());}catch(_0x4a06c6){_0x90263e['push'](_0x90263e['shift']());}}}(a303_0x496c,0x55998));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a303_0x4b16(_0xc8b55a,_0x8423cc){_0xc8b55a=_0xc8b55a-0x1c8;const _0x496ccf=a303_0x496c();let _0x4b169c=_0x496ccf[_0xc8b55a];return _0x4b169c;}import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};const baseCliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a303_0x28e243(0x1d4)+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':a303_0x28e243(0x1dd)+CLI_BIN_NAME+a303_0x28e243(0x1e1)+CLI_BIN_NAME+a303_0x28e243(0x1da),'notInProjectHint':a303_0x28e243(0x1cf)});function a303_0x496c(){const _0x4d30e9=['1112472NRCWmn','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','Missing\x20required\x20flag:\x20--','1728wUEVWj','1412625nAEElH','\x20auth`\x20to\x20login\x20first.','Run\x20`','not_in_project','auth_required','unknown_command','4382077tBiHAC','Configuration\x20file\x20not\x20found','\x20workspace\x20add\x20<name>\x20--appcode\x20<code>\x20--global`\x20registers\x20a\x20reusable\x20global\x20app\x20profile.','12cwnDCC','2525455iVhZIr','Set\x20appcode\x20via\x20`','Check\x20your\x20internet\x20connection\x20and\x20try\x20again.','6uAkpNe','config_missing','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.\x0a\x20\x20\x20\x20\x20\x20\x20Tip:\x20`','4040536zEGZQC','639568iEmPlL','Authentication\x20required','Network\x20error:\x20','130RzhoTg','Operation\x20cancelled.','network_error','flag_missing','validation','Not\x20in\x20a\x20'];a303_0x496c=function(){return _0x4d30e9;};return a303_0x496c();}export const CliErrors={'authRequired'(_0x22602b){const _0x1a6289=a303_0x28e243;return new CliError(_0x1a6289(0x1d6),0x1,_0x1a6289(0x1e4),_0x22602b??'Run\x20`'+CLI_BIN_NAME+_0x1a6289(0x1d3));},'configMissing'(_0x1d0993){const _0xe35166=a303_0x28e243;return new CliError(_0xe35166(0x1e0),0x1,_0xe35166(0x1d9),_0x1d0993??_0xe35166(0x1dd)+CLI_BIN_NAME+_0xe35166(0x1e1)+CLI_BIN_NAME+_0xe35166(0x1da));},'notInProject'(){const _0xf88901=a303_0x28e243;return new CliError(_0xf88901(0x1d5),0x1,_0xf88901(0x1cd)+CLI_BIN_NAME+'\x20project\x20directory','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.');},'apiError'(_0x515323,_0x4a7e65){return baseCliErrors['apiError'](_0x515323,_0x4a7e65);},'networkError'(_0x95a0fe){const _0x41aebf=a303_0x28e243;return new CliError(_0x41aebf(0x1ca),0x2,_0x41aebf(0x1e5)+_0x95a0fe,_0x41aebf(0x1de));},'unknownCommand'(_0x3ec3dd){const _0x35e183=a303_0x28e243;return new CliError(_0x35e183(0x1d7),0x1,'Unknown\x20command:\x20'+_0x3ec3dd,_0x35e183(0x1d4)+CLI_BIN_NAME+'\x20--help`\x20to\x20see\x20available\x20commands.');},'flagMissing'(_0x34423d,_0x54414b){const _0x234565=a303_0x28e243;return new CliError(_0x234565(0x1cb),0x1,_0x234565(0x1d0)+_0x34423d,_0x54414b);},'validation'(_0x3ca72f,_0x309693){const _0x392eeb=a303_0x28e243;return baseCliErrors[_0x392eeb(0x1cc)](_0x3ca72f,_0x309693);},'cancelled'(_0x2f78b0){const _0x1c5894=a303_0x28e243;return new CliError('cancelled',0x0,_0x2f78b0??_0x1c5894(0x1c9));}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x51b744,_0x257128){const _0xe7e593=a304_0x18c5,_0x2e8adc=_0x51b744();while(!![]){try{const _0x2153e5=parseInt(_0xe7e593(0xb0))/0x1+parseInt(_0xe7e593(0xa8))/0x2+parseInt(_0xe7e593(0xad))/0x3+parseInt(_0xe7e593(0xab))/0x4*(parseInt(_0xe7e593(0xb3))/0x5)+-parseInt(_0xe7e593(0xb1))/0x6*(-parseInt(_0xe7e593(0xb2))/0x7)+parseInt(_0xe7e593(0xae))/0x8+-parseInt(_0xe7e593(0xac))/0x9;if(_0x2153e5===_0x257128)break;else _0x2e8adc['push'](_0x2e8adc['shift']());}catch(_0x1d6d8d){_0x2e8adc['push'](_0x2e8adc['shift']());}}}(a304_0x5079,0x97343));function a304_0x18c5(_0x3590f8,_0x4422c9){_0x3590f8=_0x3590f8-0xa8;const _0x507902=a304_0x5079();let _0x18c577=_0x507902[_0x3590f8];return _0x18c577;}function a304_0x5079(){const _0x33663e=['461375CzdLBe','24VXFBDa','1948527OGbrPM','84145skmMfx','2180188VbiWDg','yes','map','28aSAyUa','36584964ZXRcft','3530040sFkeaa','5799448rGhsWi','name'];a304_0x5079=function(){return _0x33663e;};return a304_0x5079();}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a304_0x2e0683}from'@lovrabet/cli-framework';import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';export function buildAllFlags(_0x1def78){const _0x385724=a304_0x18c5,_0x27c823=a304_0x2e0683(_0x1def78,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0x1def78))return _0x27c823;return _0x27c823[_0x385724(0xaa)](_0x5418af=>_0x5418af[_0x385724(0xaf)]===_0x385724(0xa9)?{..._0x5418af,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x5418af);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x58449d,_0x467a58){var _0x20ab1a=a305_0x3c23,_0x5984e5=_0x58449d();while(!![]){try{var _0x314037=-parseInt(_0x20ab1a(0x134))/0x1+-parseInt(_0x20ab1a(0x139))/0x2+parseInt(_0x20ab1a(0x131))/0x3*(-parseInt(_0x20ab1a(0x132))/0x4)+parseInt(_0x20ab1a(0x135))/0x5+parseInt(_0x20ab1a(0x12d))/0x6+parseInt(_0x20ab1a(0x12e))/0x7*(parseInt(_0x20ab1a(0x137))/0x8)+parseInt(_0x20ab1a(0x13a))/0x9;if(_0x314037===_0x467a58)break;else _0x5984e5['push'](_0x5984e5['shift']());}catch(_0x7798a8){_0x5984e5['push'](_0x5984e5['shift']());}}}(a305_0x4aeb,0x3687d));function a305_0x3c23(_0x591345,_0x556315){_0x591345=_0x591345-0x12d;var _0x4aebf3=a305_0x4aeb();var _0x3c232b=_0x4aebf3[_0x591345];return _0x3c232b;}function a305_0x4aeb(){var _0xb7f722=['1964436QsMbMq','5222XSqKwC','format','defaultFormat','3bFizUx','81736xxxPNM','flags','360265gnsEPk','387010HxvfRm','structuredErrors','1120JkWSGV','def','601662bVcmAB','3560751WXjYde'];a305_0x4aeb=function(){return _0xb7f722;};return a305_0x4aeb();}import{resolveOutputConfig}from'@lovrabet/cli-framework';export function usesStructuredErrorOutput(_0x21bd95){var _0x43cb46=a305_0x3c23;return _0x21bd95?.[_0x43cb46(0x136)]===!![];}export function resolveErrorOutputFormat(_0x42bcf7){var _0x5c05f2=a305_0x3c23;if(!_0x42bcf7[_0x5c05f2(0x138)])return _0x42bcf7[_0x5c05f2(0x130)]??'compress';return resolveOutputConfig({'flags':_0x42bcf7[_0x5c05f2(0x133)]??{},'def':_0x42bcf7[_0x5c05f2(0x138)],'configDefault':_0x42bcf7[_0x5c05f2(0x130)]})[_0x5c05f2(0x12f)];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a306_0x554e8c=a306_0x4219;(function(_0x196651,_0x446a59){const _0x42ac32=a306_0x4219,_0x5d13e3=_0x196651();while(!![]){try{const _0x4758b7=parseInt(_0x42ac32(0xf9))/0x1*(-parseInt(_0x42ac32(0xf5))/0x2)+-parseInt(_0x42ac32(0x102))/0x3*(-parseInt(_0x42ac32(0x100))/0x4)+-parseInt(_0x42ac32(0xf6))/0x5+-parseInt(_0x42ac32(0xf3))/0x6+-parseInt(_0x42ac32(0xf4))/0x7*(-parseInt(_0x42ac32(0xfb))/0x8)+-parseInt(_0x42ac32(0xfa))/0x9+-parseInt(_0x42ac32(0x101))/0xa*(-parseInt(_0x42ac32(0xf8))/0xb);if(_0x4758b7===_0x446a59)break;else _0x5d13e3['push'](_0x5d13e3['shift']());}catch(_0x4c6f48){_0x5d13e3['push'](_0x5d13e3['shift']());}}}(a306_0x3af2,0xb6940));function a306_0x3af2(){const _0x3125d0=['2561440IqmOku','notification\x20config-update','124201KcRLwR','1ZZfAQw','1563957AbfxbQ','3445936NbqHLl','command','Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan','menu\x20delete','kb\x20delete','191656LlcQAK','1090MYAoEI','9moqLFA','service','1738650OklZoo','7Bwigql','163054HBtGTl'];a306_0x3af2=function(){return _0x3125d0;};return a306_0x3af2();}const EXPLICIT_YES_COMMANDS=new Set([a306_0x554e8c(0xfe),a306_0x554e8c(0xff),a306_0x554e8c(0xf7),'notification\x20config-delete']);export const EXPLICIT_YES_FLAG_DESCRIPTION=a306_0x554e8c(0xfd);function a306_0x4219(_0x144a28,_0x308dc6){_0x144a28=_0x144a28-0xf2;const _0x3af27b=a306_0x3af2();let _0x4219f0=_0x3af27b[_0x144a28];return _0x4219f0;}export function requiresExplicitYes(_0x1f20dd){const _0x592ae8=a306_0x554e8c;return EXPLICIT_YES_COMMANDS['has'](_0x1f20dd[_0x592ae8(0xf2)]+'\x20'+_0x1f20dd[_0x592ae8(0xfc)]);}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a307_0xbf1325=a307_0xf7ad;(function(_0x1cabdf,_0x1da0bc){const _0x128b57=a307_0xf7ad,_0x23e262=_0x1cabdf();while(!![]){try{const _0x3e1873=parseInt(_0x128b57(0x75))/0x1*(parseInt(_0x128b57(0x73))/0x2)+parseInt(_0x128b57(0x76))/0x3+parseInt(_0x128b57(0x79))/0x4*(parseInt(_0x128b57(0x6f))/0x5)+-parseInt(_0x128b57(0x74))/0x6*(-parseInt(_0x128b57(0x70))/0x7)+-parseInt(_0x128b57(0x6e))/0x8+parseInt(_0x128b57(0x7a))/0x9*(-parseInt(_0x128b57(0x78))/0xa)+parseInt(_0x128b57(0x7b))/0xb*(-parseInt(_0x128b57(0x77))/0xc);if(_0x3e1873===_0x1da0bc)break;else _0x23e262['push'](_0x23e262['shift']());}catch(_0x201fc9){_0x23e262['push'](_0x23e262['shift']());}}}(a307_0x11cb,0xb9873));function a307_0xf7ad(_0x4c06c0,_0x4e10e3){_0x4c06c0=_0x4c06c0-0x6e;const _0x11cb80=a307_0x11cb();let _0xf7ade6=_0x11cb80[_0x4c06c0];return _0xf7ade6;}function a307_0x11cb(){const _0x48a29b=['70940ATCfKs','3627yVcbkd','11vQbkiq','5423640LArYpa','35KhzxtC','4934755PRDMPX','validateFlags','parseFlags','22dUvFnr','12drJQJe','131143ukNYwU','3779616LsyleU','32292492oMqXcW','2670szMpsR'];a307_0x11cb=function(){return _0x48a29b;};return a307_0x11cb();}import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a307_0xbf1325(0x72)];export const validateFlags=helpers[a307_0xbf1325(0x71)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xb84491,_0x130516){const _0x50b23b=a308_0xe73c,_0x563f12=_0xb84491();while(!![]){try{const _0x59075c=parseInt(_0x50b23b(0x180))/0x1*(parseInt(_0x50b23b(0x17a))/0x2)+-parseInt(_0x50b23b(0x17c))/0x3+-parseInt(_0x50b23b(0x186))/0x4*(-parseInt(_0x50b23b(0x17f))/0x5)+-parseInt(_0x50b23b(0x18d))/0x6*(parseInt(_0x50b23b(0x183))/0x7)+parseInt(_0x50b23b(0x189))/0x8+-parseInt(_0x50b23b(0x184))/0x9*(parseInt(_0x50b23b(0x17e))/0xa)+-parseInt(_0x50b23b(0x18c))/0xb*(-parseInt(_0x50b23b(0x182))/0xc);if(_0x59075c===_0x130516)break;else _0x563f12['push'](_0x563f12['shift']());}catch(_0x4bbd52){_0x563f12['push'](_0x563f12['shift']());}}}(a308_0x2e1f,0xb1901));import{createHelpGenerators}from'@lovrabet/cli-framework';function a308_0x2e1f(){const _0x38b122=['7000896BfvzzY','Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.','22FCgrPz','3378uCaVLX','9674vdzysS','\x20workspace\x20init`\x20or\x20--appcode).','1911717FnaeqT','replace','6355460tMAdZG','603005qSBKyc','137ZFEITT','Requires\x20appcode\x20(set\x20via\x20`','5582388reerKD','917tAOSVB','18kCHegn','generateServiceHelp','8jigSHF','\x20[args]\x20[flags]','generateFullHelp'];a308_0x2e1f=function(){return _0x38b122;};return a308_0x2e1f();}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 _0x4e5454=a308_0xe73c;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x593e48=>serviceGroups['get'](_0x593e48),'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x4e5454(0x181)+CLI_BIN_NAME+_0x4e5454(0x17b),'serviceUsageSuffix':_0x4e5454(0x187)});}export function generateCommandHelp(_0xb0bc8){const _0xc9011e=a308_0xe73c,_0x4a5d51=createGenerators()['generateCommandHelp'](_0xb0bc8);if(!requiresExplicitYes(_0xb0bc8))return _0x4a5d51;return _0x4a5d51[_0xc9011e(0x17d)](_0xc9011e(0x18a),_0xc9011e(0x18b));}export function generateServiceHelp(_0x19f275){const _0x53e3fb=a308_0xe73c;return createGenerators()[_0x53e3fb(0x185)](_0x19f275);}function a308_0xe73c(_0xd71b62,_0x180f01){_0xd71b62=_0xd71b62-0x17a;const _0x2e1f9d=a308_0x2e1f();let _0xe73cc5=_0x2e1f9d[_0xd71b62];return _0xe73cc5;}export function generateFullHelp(){const _0x274af2=a308_0xe73c;return createGenerators()[_0x274af2(0x188)]();}
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4433e9,_0x17f14d){var _0x3bd865=a309_0x3af1,_0x632aa3=_0x4433e9();while(!![]){try{var _0x55e286=parseInt(_0x3bd865(0x1d4))/0x1*(-parseInt(_0x3bd865(0x1d6))/0x2)+-parseInt(_0x3bd865(0x1d8))/0x3+parseInt(_0x3bd865(0x1d9))/0x4+-parseInt(_0x3bd865(0x1db))/0x5+-parseInt(_0x3bd865(0x1d5))/0x6+-parseInt(_0x3bd865(0x1dc))/0x7+parseInt(_0x3bd865(0x1d7))/0x8*(parseInt(_0x3bd865(0x1da))/0x9);if(_0x55e286===_0x17f14d)break;else _0x632aa3['push'](_0x632aa3['shift']());}catch(_0x3acde3){_0x632aa3['push'](_0x632aa3['shift']());}}}(a309_0x2025,0x34b90));export{runCommand}from'../framework/runner.js';function a309_0x3af1(_0x16f8e7,_0x3eb9e9){_0x16f8e7=_0x16f8e7-0x1d4;var _0x20256b=a309_0x2025();var _0x3af1e6=_0x20256b[_0x16f8e7];return _0x3af1e6;}export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a309_0x2025(){var _0x3a3794=['18PdxeFq','1513140XAifUU','2109947XbVXsJ','209993obEatp','2216034bTUfzG','2MaIEmG','5610632tiIirD','353286GmJXHe','457748IWrdbF'];a309_0x2025=function(){return _0x3a3794;};return a309_0x2025();}export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x582e3d,_0x1d3484){const _0x223196=a310_0x9523,_0x4e202c=_0x582e3d();while(!![]){try{const _0x3d4f3c=parseInt(_0x223196(0x138))/0x1+parseInt(_0x223196(0x13e))/0x2*(parseInt(_0x223196(0x149))/0x3)+-parseInt(_0x223196(0x141))/0x4+parseInt(_0x223196(0x137))/0x5+-parseInt(_0x223196(0x151))/0x6+parseInt(_0x223196(0x14c))/0x7*(parseInt(_0x223196(0x140))/0x8)+parseInt(_0x223196(0x14e))/0x9*(-parseInt(_0x223196(0x14f))/0xa);if(_0x3d4f3c===_0x1d3484)break;else _0x4e202c['push'](_0x4e202c['shift']());}catch(_0x4aa0aa){_0x4e202c['push'](_0x4e202c['shift']());}}}(a310_0x4272,0xb535e));function a310_0x9523(_0x3401f9,_0x4be0f3){_0x3401f9=_0x3401f9-0x136;const _0x4272fe=a310_0x4272();let _0x9523ad=_0x4272fe[_0x3401f9];return _0x9523ad;}function a310_0x4272(){const _0x1fa1fb=['pretty','message','7310615NjSvLT','59131zksapy','code','endsWith','risk','update','data','16356ugQjCk','command','104bbUOKd','304496mkQatE','stringify','format','url','hint','error','validation','json','33JpMWKR','jqFilter','stdout','641123ROKxDf','_notice','54207bCeXoh','2330FHJXuD','trim','3480888HpgTGQ','jq:\x20'];a310_0x4272=function(){return _0x1fa1fb;};return a310_0x4272();}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x344141,_0x4e66bd){const _0x23e49b=a310_0x9523,_0x5e644b=_0x344141[_0x23e49b(0x14d)],{_notice:_0x1472ac,..._0x129cf0}=_0x344141;void _0x1472ac,baseFormatOutput(_0x129cf0,_0x4e66bd),_0x4e66bd['format']===_0x23e49b(0x153)&&printPrettyNotice(_0x5e644b);}export function formatCliError(_0x3188e6,_0x2ae896){const _0x3d93f8=a310_0x9523;if(_0x2ae896[_0x3d93f8(0x143)]===_0x3d93f8(0x153))return![];const _0x31c0d6=_0x3188e6[_0x3d93f8(0x13d)],_0x411204={'ok':![],'command':_0x2ae896[_0x3d93f8(0x13f)],'risk':_0x2ae896[_0x3d93f8(0x13b)],'data':_0x31c0d6??null,'error':{'code':_0x3188e6[_0x3d93f8(0x139)],'message':_0x3188e6[_0x3d93f8(0x136)],..._0x3188e6[_0x3d93f8(0x145)]?{'hint':_0x3188e6[_0x3d93f8(0x145)]}:{}}},_0x5f01d0=_0x2ae896[_0x3d93f8(0x143)]===_0x3d93f8(0x148)?JSON[_0x3d93f8(0x142)](_0x411204,null,0x2):JSON[_0x3d93f8(0x142)](_0x411204);let _0x406a7e=_0x5f01d0;if(_0x2ae896[_0x3d93f8(0x14a)]?.[_0x3d93f8(0x150)]())try{_0x406a7e=applyJqFilter(_0x5f01d0,_0x2ae896[_0x3d93f8(0x14a)]);}catch(_0x44fd7a){const _0x29e5f9=_0x44fd7a instanceof CliError?_0x44fd7a:CliErrors[_0x3d93f8(0x147)](_0x3d93f8(0x152)+(_0x44fd7a instanceof Error?_0x44fd7a[_0x3d93f8(0x136)]:String(_0x44fd7a))),_0x4d9f0d={..._0x411204,'error':{'code':_0x29e5f9['code'],'message':_0x29e5f9[_0x3d93f8(0x136)],..._0x29e5f9['hint']?{'hint':_0x29e5f9[_0x3d93f8(0x145)]}:{},'cause':_0x411204[_0x3d93f8(0x146)]}};_0x406a7e=_0x2ae896[_0x3d93f8(0x143)]===_0x3d93f8(0x148)?JSON[_0x3d93f8(0x142)](_0x4d9f0d,null,0x2):JSON[_0x3d93f8(0x142)](_0x4d9f0d);}return process[_0x3d93f8(0x14b)]['write'](_0x406a7e[_0x3d93f8(0x13a)]('\x0a')?_0x406a7e:_0x406a7e+'\x0a'),!![];}function printPrettyNotice(_0x9a0eac){const _0x51b1d3=a310_0x9523;if(!_0x9a0eac?.[_0x51b1d3(0x13c)])return;console[_0x51b1d3(0x146)](_0x9a0eac[_0x51b1d3(0x13c)][_0x51b1d3(0x136)]+'\x20('+_0x9a0eac['update'][_0x51b1d3(0x144)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a311_0x49f0(){var _0x395515=['414024gGHvyF','691694BwsaCV','268122COgrqU','562236WkeGNj','10397216qRXRpu','1111235llcsVN','7Fexhmf','838302pfQHTc'];a311_0x49f0=function(){return _0x395515;};return a311_0x49f0();}function a311_0x1261(_0x355e20,_0x146504){_0x355e20=_0x355e20-0x136;var _0x49f0a5=a311_0x49f0();var _0x126113=_0x49f0a5[_0x355e20];return _0x126113;}(function(_0x40f3a4,_0x1fea40){var _0x2e4f5e=a311_0x1261,_0x98ca9c=_0x40f3a4();while(!![]){try{var _0x41f21a=-parseInt(_0x2e4f5e(0x139))/0x1+-parseInt(_0x2e4f5e(0x138))/0x2+-parseInt(_0x2e4f5e(0x136))/0x3+-parseInt(_0x2e4f5e(0x137))/0x4+-parseInt(_0x2e4f5e(0x13c))/0x5+parseInt(_0x2e4f5e(0x13a))/0x6+parseInt(_0x2e4f5e(0x13d))/0x7*(parseInt(_0x2e4f5e(0x13b))/0x8);if(_0x41f21a===_0x1fea40)break;else _0x98ca9c['push'](_0x98ca9c['shift']());}catch(_0x40b314){_0x98ca9c['push'](_0x98ca9c['shift']());}}}(a311_0x49f0,0x2a87a));export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2a07fe,_0x25335c){const _0x4fcdd5=a312_0x2630,_0x19c1f1=_0x2a07fe();while(!![]){try{const _0x4977e2=-parseInt(_0x4fcdd5(0x183))/0x1+-parseInt(_0x4fcdd5(0x193))/0x2*(-parseInt(_0x4fcdd5(0x198))/0x3)+parseInt(_0x4fcdd5(0x194))/0x4+-parseInt(_0x4fcdd5(0x188))/0x5*(parseInt(_0x4fcdd5(0x187))/0x6)+parseInt(_0x4fcdd5(0x18e))/0x7+parseInt(_0x4fcdd5(0x18d))/0x8+-parseInt(_0x4fcdd5(0x18f))/0x9*(parseInt(_0x4fcdd5(0x189))/0xa);if(_0x4977e2===_0x25335c)break;else _0x19c1f1['push'](_0x19c1f1['shift']());}catch(_0x1b230d){_0x19c1f1['push'](_0x19c1f1['shift']());}}}(a312_0x2c53,0x3dfa6));import{CliErrors}from'../errors.js';function a312_0x2630(_0x433a26,_0x1dedc4){_0x433a26=_0x433a26-0x17f;const _0x2c53bd=a312_0x2c53();let _0x2630c6=_0x2c53bd[_0x433a26];return _0x2630c6;}function a312_0x2c53(){const _0xebd4d0=['join','code','string','984099DYdCRv','validation','\x20api\x20pull`\x20first.','filePath','Unknown\x20alias\x20\x22','name','214308hsKELK','length','No\x20model\x20aliases\x20found\x20in\x20','.\x20Run\x20`','6nkSgzu','301925vUsJlY','381830oIqetW','alias','Available\x20aliases:\x20','map','3003352Fammwn','573300JNNIlg','135fXbnSF','flags','profileName','`\x20requires\x20either\x20--code\x20or\x20--alias.','2EQieKT','1263792hTiGcw'];a312_0x2c53=function(){return _0xebd4d0;};return a312_0x2c53();}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(_0x307264,_0x583038,_0x4f6e2c,_0x33db6a,_0x251190,_0x386016){const _0x2c7845=a312_0x2630,_0x12cb29=_0x307264['flags']['some'](_0x5f2a90=>_0x5f2a90[_0x2c7845(0x182)]==='code'&&_0x5f2a90['type']===_0x2c7845(0x197)),_0x3498a0=_0x307264[_0x2c7845(0x190)]['some'](_0x503d0d=>_0x503d0d[_0x2c7845(0x182)]==='alias'&&_0x503d0d['type']===_0x2c7845(0x197));if(!_0x12cb29||!_0x3498a0)return;const _0x54f90f=_0x583038[_0x2c7845(0x196)]?String(_0x583038[_0x2c7845(0x196)]):'',_0x379289=_0x583038[_0x2c7845(0x18a)]?String(_0x583038[_0x2c7845(0x18a)]):'';if(!_0x54f90f&&!_0x379289)throw CliErrors[_0x2c7845(0x199)]('`'+_0x33db6a+_0x2c7845(0x192));if(_0x379289&&!_0x54f90f){const _0x129695=resolveApiModelSource(_0x4f6e2c,_0x251190,_0x386016),_0x432afc=resolveAlias(_0x4f6e2c,_0x379289,undefined,_0x129695['filePath'],_0x129695[_0x2c7845(0x191)]);if(!_0x432afc){const _0xb07431=listAliases(_0x4f6e2c,undefined,_0x129695[_0x2c7845(0x180)],_0x129695[_0x2c7845(0x191)])[_0x2c7845(0x18c)](_0x320790=>_0x320790[_0x2c7845(0x18a)]),_0xf28317=_0xb07431[_0x2c7845(0x184)]?_0x2c7845(0x18b)+_0xb07431[_0x2c7845(0x195)](',\x20'):_0x2c7845(0x185)+_0x4f6e2c+_0x2c7845(0x186)+CLI_BIN_NAME+_0x2c7845(0x17f);throw CliErrors[_0x2c7845(0x199)](_0x2c7845(0x181)+_0x379289+'\x22.\x20'+_0xf28317);}_0x583038[_0x2c7845(0x196)]=_0x432afc;}}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a313_0x170f(){const _0x5077f9=['resolveApiDomain','explicitAppName','trim','string','map','catch','hint','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','length','configMissing','appcode','AppCode\x20\x22','rawFlags','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','LOVRABET_APPCODE','confirmHighRisk','High-risk\x20operation\x20`','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','appCode','risk','652626qoMalg','includes','RABETBASE_APPCODE','authRequired','1198813OpmcbA','../constant/domain.js','formatOutput','nonInteractive','entries','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','cookie','237018PzayNk','selectedAppName','../constant/env.js','production','find','2fkhJet','\x0a\x20\x20','apiDir','doctor','_notice','filter','execute','25836525RHoSaM','required','apps','\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20','currentApp','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','some','6jigHJC','object','mergedCli','cancelled','join','Current\x20resolved\x20appcode\x20is\x20\x22','validation','has','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','toUpperCase','update','value','\x20\x20\x20Continue?\x20[y/N]\x20','keys','schema','1766332gPcoHu','Edit\x20the\x20config\x20file\x20manually','message','⚠\x20\x20High-risk\x20operation:\x20','service','rejectedFlags','resolveAppCode','name','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','4815410SPmEje','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','5XuSWnB','Available:\x20','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','../core/api-client.js','defaultApp','1467832FcKxEc','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','command','9eyXOZt'];a313_0x170f=function(){return _0x5077f9;};return a313_0x170f();}(function(_0x4626ba,_0x39aefd){const _0x36491b=a313_0x3dc9,_0x4c7418=_0x4626ba();while(!![]){try{const _0x5c7b0b=-parseInt(_0x36491b(0x15d))/0x1+parseInt(_0x36491b(0x16d))/0x2*(-parseInt(_0x36491b(0x168))/0x3)+-parseInt(_0x36491b(0x18a))/0x4*(parseInt(_0x36491b(0x140))/0x5)+parseInt(_0x36491b(0x17b))/0x6*(-parseInt(_0x36491b(0x161))/0x7)+-parseInt(_0x36491b(0x145))/0x8+-parseInt(_0x36491b(0x148))/0x9*(parseInt(_0x36491b(0x13e))/0xa)+parseInt(_0x36491b(0x174))/0xb;if(_0x5c7b0b===_0x39aefd)break;else _0x4c7418['push'](_0x4c7418['shift']());}catch(_0x213b4a){_0x4c7418['push'](_0x4c7418['shift']());}}}(a313_0x170f,0x52d51));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 a313_0x7f8470}from'../utils/is-non-interactive.js';function a313_0x3dc9(_0x59f94e,_0x340a04){_0x59f94e=_0x59f94e-0x137;const _0x170fd9=a313_0x170f();let _0x3dc9dd=_0x170fd9[_0x59f94e];return _0x3dc9dd;}import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x7f37e8){const _0x5029fa=a313_0x3dc9;return typeof _0x7f37e8===_0x5029fa(0x14c)&&_0x7f37e8[_0x5029fa(0x14b)]()?_0x7f37e8[_0x5029fa(0x14b)]():undefined;}function resolveEnvAppCode(){const _0x35f2b0=a313_0x3dc9,_0x568715=stringFlag(process.env.RABETBASE_APPCODE);if(_0x568715)return{'name':_0x35f2b0(0x15f),'value':_0x568715};const _0x2b27ea=stringFlag(process.env.LOVRABET_APPCODE);if(_0x2b27ea)return{'name':_0x35f2b0(0x157),'value':_0x2b27ea};return undefined;}function hasExplicitAppCode(_0xf8d295,_0x1243ad){const _0x4bcc2d=a313_0x3dc9;return!!(stringFlag(_0xf8d295[_0x4bcc2d(0x153)])||stringFlag(_0x1243ad[_0x4bcc2d(0x153)]));}function assertEnvAppCodeNotIgnored(_0x33e283,_0x5eea94,_0x28f939){const _0x19dbf4=a313_0x3dc9;if(!_0x5eea94||_0x28f939||_0x33e283===_0x5eea94[_0x19dbf4(0x186)])return;const _0x5279c2=_0x33e283?_0x19dbf4(0x180)+_0x33e283+'\x22.':_0x19dbf4(0x150);throw CliErrors['validation'](_0x5eea94['name']+'='+_0x5eea94[_0x19dbf4(0x186)]+_0x19dbf4(0x142)+_0x5279c2+'\x20'+(_0x19dbf4(0x183)+_0x5eea94[_0x19dbf4(0x13c)]+'\x22.'));}export function createPipelineEnv(_0x5caf42,_0x3645c2,_0x58f149=[]){const _0x2a180a=a313_0x3dc9;return{'rawFlags':_0x3645c2,'args':_0x58f149,'resolveAppCode':()=>_0x5caf42[_0x2a180a(0x15b)],'resolveCookie':()=>_0x5caf42[_0x2a180a(0x167)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a313_0x7f8470(_0x3645c2),'defaultFormat':_0x5caf42['format'],'defaultPageSize':_0x5caf42['pageSize'],'defaultVerbose':_0x5caf42['verbose'],'apiDir':_0x5caf42[_0x2a180a(0x16f)],'riskLevel':_0x5caf42['riskLevel'],'selectedAppName':_0x5caf42[_0x2a180a(0x14a)],'mergedCli':{'defaultApp':_0x5caf42[_0x2a180a(0x144)],'currentApp':_0x5caf42[_0x2a180a(0x178)],'appCode':_0x5caf42[_0x2a180a(0x15b)],'apps':_0x5caf42['apps']}};}export function createRabetbaseRunnerAdapter(_0x488799={}){const _0x524153=a313_0x3dc9;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x524153(0x172)](_0x19418e=>PIPELINE_FLAG_NAMES[_0x524153(0x182)](_0x19418e[_0x524153(0x13c)]))[_0x524153(0x14d)](({name:_0x181f9a,type:_0x196d02,description:_0x37db72})=>({'name':_0x181f9a,'type':_0x196d02,'description':_0x37db72})),'formatOutput':_0x488799[_0x524153(0x163)]??formatOutput,'getCommandLabel'(_0x279ef0){const _0x1e1b52=_0x524153;return CLI_BIN_NAME+'\x20'+_0x279ef0[_0x1e1b52(0x139)]+'\x20'+_0x279ef0[_0x1e1b52(0x147)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x2e89ff,{def:_0x3756ae}){const _0x1cc06b=_0x524153,_0x1a312f=_0x2e89ff[_0x1cc06b(0x15e)](_0x1cc06b(0x18b))?_0x1cc06b(0x146):_0x1cc06b(0x166)+_0x3756ae[_0x1cc06b(0x15c)]+_0x1cc06b(0x179)+_0x1cc06b(0x146);return CliErrors[_0x1cc06b(0x181)](_0x2e89ff+_0x1cc06b(0x16e)+_0x1a312f);}},async 'prepare'(_0x40b791,_0x4a88d6,_0x1b8797,_0x26edd8){const _0x39aa02=_0x524153,_0x181469=_0x4a88d6[_0x39aa02(0x16f)]||DEFAULT_API_DIR,_0x2288a9=hasExplicitAppCode(_0x1b8797,_0x4a88d6['rawFlags']),_0xaae845=stringFlag(_0x1b8797[_0x39aa02(0x153)])||stringFlag(_0x4a88d6[_0x39aa02(0x155)][_0x39aa02(0x153)]),_0x19be4d=_0x4a88d6[_0x39aa02(0x17d)]?.[_0x39aa02(0x176)]??{},_0x55ef6b=_0x4a88d6[_0x39aa02(0x169)]||_0x4a88d6[_0x39aa02(0x17d)]?.[_0x39aa02(0x178)]||_0x4a88d6[_0x39aa02(0x17d)]?.[_0x39aa02(0x144)],_0x30a06a=_0xaae845?Object[_0x39aa02(0x165)](_0x19be4d)['filter'](([,_0x38d15d])=>_0x38d15d['appcode']===_0xaae845)[_0x39aa02(0x14d)](([_0x5e0a9a])=>_0x5e0a9a):[];if(_0x30a06a[_0x39aa02(0x151)]>0x1&&!_0x4a88d6[_0x39aa02(0x169)])throw CliErrors[_0x39aa02(0x181)](_0x39aa02(0x154)+_0xaae845+_0x39aa02(0x177)+_0x30a06a[_0x39aa02(0x17f)](',\x20')+'.','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.');resolveAliasToCode(_0x40b791,_0x1b8797,_0x181469,_0x26edd8,_0x4a88d6[_0x39aa02(0x13b)](),_0x55ef6b);const _0x13af5f=resolveCommandAuthMode(_0x40b791);let _0x388048='';if(_0x13af5f!=='none'){_0x388048=_0x4a88d6['resolveCookie']()||'';if(!_0x388048){if(_0x13af5f===_0x39aa02(0x175))throw CliErrors[_0x39aa02(0x160)]();}else{const {setActiveCookie:_0x581c4f}=await import(_0x39aa02(0x143));_0x581c4f(_0x388048);}}const _0x545999=_0x4a88d6['resolveAppCode']()??'';if(_0x40b791['requiresAppCode']!==![]){if(!_0x2288a9&&_0x55ef6b&&!_0x19be4d[_0x55ef6b]){const _0x30274a=Object[_0x39aa02(0x188)](_0x19be4d);throw CliErrors[_0x39aa02(0x181)]('App\x20\x22'+_0x55ef6b+_0x39aa02(0x156),_0x30274a['length']>0x0?_0x39aa02(0x141)+_0x30274a[_0x39aa02(0x17f)](',\x20')+'.\x20Use\x20--app/--appcode,\x20or\x20run\x20`'+CLI_BIN_NAME+'\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.':_0x39aa02(0x13d)+CLI_BIN_NAME+_0x39aa02(0x13f));}assertEnvAppCodeNotIgnored(_0x545999,resolveEnvAppCode(),_0x2288a9);if(!_0x545999){const _0x52e21f=Object[_0x39aa02(0x188)](_0x19be4d);if(!_0x55ef6b&&_0x52e21f[_0x39aa02(0x151)]>0x1)throw CliErrors[_0x39aa02(0x152)]('Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`'+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20'+_0x52e21f[_0x39aa02(0x17f)](',\x20')+'.');throw CliErrors['configMissing']('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+_0x39aa02(0x15a));}}return{'defaults':{'booleans':{'verbose':_0x4a88d6['defaultVerbose']},'numbers':{'pagesize':_0x4a88d6['defaultPageSize']}},'extras':{'appCode':_0x545999,'cookie':_0x388048,'apiDomain':_0x4a88d6[_0x39aa02(0x149)](),'apiDir':_0x181469,'selectedAppName':_0x4a88d6[_0x39aa02(0x169)],'mergedCli':_0x4a88d6[_0x39aa02(0x17d)]}};},'confirmHighRisk':_0x488799[_0x524153(0x158)]??(async({env:_0x105eaa,commandLabel:_0x49206a})=>{const _0x336607=_0x524153;if(_0x105eaa['isNonInteractive'])throw CliErrors[_0x336607(0x181)](_0x336607(0x159)+_0x49206a+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmationPrompt({'lines':[_0x336607(0x138)+_0x49206a,_0x336607(0x187)],'createCancelledError':_0x417253=>CliErrors[_0x336607(0x17e)](_0x417253)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x55263f=a313_0x3dc9,{clearActiveCookie:_0x30df43}=await import(_0x55263f(0x143));_0x30df43();}export async function finalizeRabetbaseRuntimeState(){const _0x175565=a313_0x3dc9;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x5af8e1},{initEnv:_0x4572cb}]=await Promise['all']([import(_0x175565(0x162)),import(_0x175565(0x16a))]);_0x5af8e1(),_0x4572cb(_0x175565(0x16b));}}export async function runCommand(_0x16d857,_0x55866b,_0x195694=terminalRunnerAdapter){const _0x461aff=a313_0x3dc9;assertRejectedFlags(_0x16d857,_0x55866b[_0x461aff(0x155)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x16d857)?withUpdateNotice(_0x16d857):_0x16d857,_0x55866b,_0x195694);}function assertRejectedFlags(_0x27e645,_0x3b1b5a){const _0x950265=a313_0x3dc9;for(const _0x2f3513 of _0x27e645[_0x950265(0x13a)]??[]){const _0x38bd4d=GLOBAL_FLAGS[_0x950265(0x16c)](_0x2a3e80=>_0x2a3e80[_0x950265(0x13c)]===_0x2f3513['name']),_0x30b940=new Set([_0x2f3513['name'],toCamelCase(_0x2f3513[_0x950265(0x13c)]),_0x38bd4d?.['meowKey']]),_0x1904d3=[..._0x30b940][_0x950265(0x17a)](_0x18ca6c=>{if(!_0x18ca6c)return![];const _0x4b116d=_0x3b1b5a[_0x18ca6c];return _0x4b116d!==undefined&&_0x4b116d!==null&&_0x4b116d!==![];});if(_0x1904d3)throw CliErrors[_0x950265(0x181)](_0x2f3513[_0x950265(0x137)],_0x2f3513[_0x950265(0x14f)]);}}function toCamelCase(_0xe877c3){const _0x1ee5cb=a313_0x3dc9;return _0xe877c3['replace'](/-([a-z])/g,(_0x4c8ee7,_0x3ad41a)=>_0x3ad41a[_0x1ee5cb(0x184)]());}function shouldAttachUpdateNotice(_0xdf9225){const _0x4bfce8=a313_0x3dc9;if(_0xdf9225['hasFormat']===![])return![];return![_0x4bfce8(0x185),_0x4bfce8(0x189),_0x4bfce8(0x170)][_0x4bfce8(0x15e)](_0xdf9225[_0x4bfce8(0x139)]);}function withUpdateNotice(_0x220d98){return{..._0x220d98,async 'execute'(_0x344a73){const _0x3e4724=a313_0x3dc9,_0x2e03a1=shouldResolveUpdateNotice(_0x344a73)?resolveLatestUpdateNotice()[_0x3e4724(0x14e)](()=>null):Promise['resolve'](null),_0x2907b0=await _0x220d98[_0x3e4724(0x173)](_0x344a73);return attachUpdateNotice(_0x2907b0,await _0x2e03a1);}};}function shouldResolveUpdateNotice(_0x18c613){const _0xe33828=a313_0x3dc9;return _0x18c613['format']==='pretty'&&!_0x18c613[_0xe33828(0x164)];}function attachUpdateNotice(_0xe10369,_0xac5938){const _0x404be7=a313_0x3dc9;if(!_0xac5938||!_0xe10369||typeof _0xe10369!=='object')return _0xe10369;const _0xce5caa=_0xe10369,_0x4c5c79=typeof _0xce5caa[_0x404be7(0x171)]===_0x404be7(0x17c)&&_0xce5caa['_notice']!==null?_0xce5caa[_0x404be7(0x171)]:{};return{..._0xce5caa,'_notice':{..._0x4c5c79,'update':_0xac5938}};}
|
|
1
|
+
(function(_0x3e58fc,_0x285f1f){const _0x528c77=a313_0x4fc0,_0x40c5f8=_0x3e58fc();while(!![]){try{const _0x1ef460=parseInt(_0x528c77(0xc8))/0x1+parseInt(_0x528c77(0xe0))/0x2+parseInt(_0x528c77(0xe8))/0x3+parseInt(_0x528c77(0xbe))/0x4+-parseInt(_0x528c77(0xbc))/0x5+-parseInt(_0x528c77(0xdc))/0x6*(parseInt(_0x528c77(0xdf))/0x7)+-parseInt(_0x528c77(0xb0))/0x8;if(_0x1ef460===_0x285f1f)break;else _0x40c5f8['push'](_0x40c5f8['shift']());}catch(_0x2c4263){_0x40c5f8['push'](_0x40c5f8['shift']());}}}(a313_0x26ec,0x30a5c));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';function a313_0x26ec(){const _0x389f81=['object','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','map','hasFormat','defaultPageSize','mergedCli','cookie','RABETBASE_APPCODE','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','value','required','replace','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','rawFlags','doctor','selectedAppName','\x0a\x20\x20','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','join','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','none','all','command','pretty','apiDir','defaultVerbose','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','find','appcode','resolveAppCode','hint','pageSize','2556464qGXlPB','../constant/env.js','isNonInteractive','nonInteractive','appCode','explicitAppName','verbose','resolve','Set\x20appcode\x20via\x20`','resolveCookie','_notice','toUpperCase','183755OlxBny','currentApp','723992rGvYyT','../core/api-client.js','configMissing','\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20','execute','confirmHighRisk','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','\x20\x20\x20Continue?\x20[y/N]\x20','riskLevel','length','151465AzHxzR','Available:\x20','AppCode\x20\x22','trim','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','Edit\x20the\x20config\x20file\x20manually','cancelled','entries','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','High-risk\x20operation\x20`','formatOutput','Current\x20resolved\x20appcode\x20is\x20\x22','validation','keys','defaultApp','../constant/domain.js','includes','name','has','schema','756yzgrWl','catch','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','15085cQfRBR','276966FfgnwM','service','risk','LOVRABET_APPCODE','App\x20\x22','message','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','1068459nfhPPD','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`'];a313_0x26ec=function(){return _0x389f81;};return a313_0x26ec();}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 a313_0x502632}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';function a313_0x4fc0(_0x155e13,_0x59e509){_0x155e13=_0x155e13-0x9f;const _0x26ec0f=a313_0x26ec();let _0x4fc066=_0x26ec0f[_0x155e13];return _0x4fc066;}import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x2f51e3){const _0x2b5f85=a313_0x4fc0;return typeof _0x2f51e3==='string'&&_0x2f51e3[_0x2b5f85(0xcb)]()?_0x2f51e3[_0x2b5f85(0xcb)]():undefined;}function resolveEnvAppCode(){const _0x3fed10=a313_0x4fc0,_0xbc6cfc=stringFlag(process.env.RABETBASE_APPCODE);if(_0xbc6cfc)return{'name':_0x3fed10(0xf2),'value':_0xbc6cfc};const _0x3009a1=stringFlag(process.env.LOVRABET_APPCODE);if(_0x3009a1)return{'name':_0x3fed10(0xe3),'value':_0x3009a1};return undefined;}function hasExplicitAppCode(_0x90424f,_0x124784){const _0x1569e2=a313_0x4fc0;return!!(stringFlag(_0x90424f[_0x1569e2(0xac)])||stringFlag(_0x124784[_0x1569e2(0xac)]));}function assertEnvAppCodeNotIgnored(_0x1f9861,_0xa8da35,_0x2fb81c){const _0x356fe5=a313_0x4fc0;if(!_0xa8da35||_0x2fb81c||_0x1f9861===_0xa8da35[_0x356fe5(0xf4)])return;const _0x344ac5=_0x1f9861?_0x356fe5(0xd3)+_0x1f9861+'\x22.':_0x356fe5(0xa1);throw CliErrors[_0x356fe5(0xd4)](_0xa8da35[_0x356fe5(0xd9)]+'='+_0xa8da35[_0x356fe5(0xf4)]+_0x356fe5(0xe9)+_0x344ac5+'\x20'+(_0x356fe5(0xf7)+_0xa8da35[_0x356fe5(0xd9)]+'\x22.'));}export function createPipelineEnv(_0x2704dd,_0x500694,_0x456e70=[]){const _0x32f88a=a313_0x4fc0;return{'rawFlags':_0x500694,'args':_0x456e70,'resolveAppCode':()=>_0x2704dd[_0x32f88a(0xb4)],'resolveCookie':()=>_0x2704dd[_0x32f88a(0xf1)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a313_0x502632(_0x500694),'defaultFormat':_0x2704dd['format'],'defaultPageSize':_0x2704dd[_0x32f88a(0xaf)],'defaultVerbose':_0x2704dd[_0x32f88a(0xb6)],'apiDir':_0x2704dd['apiDir'],'riskLevel':_0x2704dd[_0x32f88a(0xc6)],'selectedAppName':_0x2704dd[_0x32f88a(0xb5)],'mergedCli':{'defaultApp':_0x2704dd[_0x32f88a(0xd6)],'currentApp':_0x2704dd[_0x32f88a(0xbd)],'appCode':_0x2704dd['appCode'],'apps':_0x2704dd['apps']}};}export function createRabetbaseRunnerAdapter(_0x49ec9d={}){const _0x5502d9=a313_0x4fc0;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x109c63=>PIPELINE_FLAG_NAMES[_0x5502d9(0xda)](_0x109c63[_0x5502d9(0xd9)]))[_0x5502d9(0xed)](({name:_0x4dae1d,type:_0xd5a97f,description:_0x5d6ab9})=>({'name':_0x4dae1d,'type':_0xd5a97f,'description':_0x5d6ab9})),'formatOutput':_0x49ec9d[_0x5502d9(0xd2)]??formatOutput,'getCommandLabel'(_0x3f7f5b){const _0x4d15ed=_0x5502d9;return CLI_BIN_NAME+'\x20'+_0x3f7f5b[_0x4d15ed(0xe1)]+'\x20'+_0x3f7f5b[_0x4d15ed(0xa6)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x20061f,{def:_0x339efe}){const _0x3a5b59=_0x5502d9,_0x4c1b7e=_0x20061f[_0x3a5b59(0xd8)](_0x3a5b59(0xcd))?'AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.':_0x3a5b59(0xde)+_0x339efe[_0x3a5b59(0xe2)]+_0x3a5b59(0xf3)+_0x3a5b59(0xa0);return CliErrors[_0x3a5b59(0xd4)](_0x20061f+_0x3a5b59(0x9f)+_0x4c1b7e);}},async 'prepare'(_0x45e5cc,_0x5a775a,_0x445aa4,_0x48e406){const _0x24e070=_0x5502d9,_0x2edf2c=_0x5a775a[_0x24e070(0xa8)]||DEFAULT_API_DIR,_0x97f678=hasExplicitAppCode(_0x445aa4,_0x5a775a[_0x24e070(0xf8)]),_0x2404c7=stringFlag(_0x445aa4[_0x24e070(0xac)])||stringFlag(_0x5a775a[_0x24e070(0xf8)]['appcode']),_0x543f2b=_0x5a775a[_0x24e070(0xf0)]?.['apps']??{},_0x129919=_0x5a775a[_0x24e070(0xfa)]||_0x5a775a[_0x24e070(0xf0)]?.[_0x24e070(0xbd)]||_0x5a775a[_0x24e070(0xf0)]?.[_0x24e070(0xd6)],_0x1d4d82=_0x2404c7?Object[_0x24e070(0xcf)](_0x543f2b)['filter'](([,_0x52191f])=>_0x52191f[_0x24e070(0xac)]===_0x2404c7)[_0x24e070(0xed)](([_0x1552ce])=>_0x1552ce):[];if(_0x1d4d82['length']>0x1&&!_0x5a775a['selectedAppName'])throw CliErrors['validation'](_0x24e070(0xca)+_0x2404c7+_0x24e070(0xc1)+_0x1d4d82[_0x24e070(0xa2)](',\x20')+'.',_0x24e070(0xc4));resolveAliasToCode(_0x45e5cc,_0x445aa4,_0x2edf2c,_0x48e406,_0x5a775a[_0x24e070(0xad)](),_0x129919);const _0x56ab2b=resolveCommandAuthMode(_0x45e5cc);let _0x3ac21a='';if(_0x56ab2b!==_0x24e070(0xa4)){_0x3ac21a=_0x5a775a[_0x24e070(0xb9)]()||'';if(!_0x3ac21a){if(_0x56ab2b===_0x24e070(0xf5))throw CliErrors['authRequired']();}else{const {setActiveCookie:_0x414bcf}=await import(_0x24e070(0xbf));_0x414bcf(_0x3ac21a);}}const _0x1bb124=_0x5a775a['resolveAppCode']()??'';if(_0x45e5cc['requiresAppCode']!==![]){if(!_0x97f678&&_0x129919&&!_0x543f2b[_0x129919]){const _0x595d5b=Object[_0x24e070(0xd5)](_0x543f2b);throw CliErrors[_0x24e070(0xd4)](_0x24e070(0xe4)+_0x129919+_0x24e070(0xe6),_0x595d5b[_0x24e070(0xc7)]>0x0?_0x24e070(0xc9)+_0x595d5b[_0x24e070(0xa2)](',\x20')+_0x24e070(0xe7)+CLI_BIN_NAME+_0x24e070(0xcc):_0x24e070(0xea)+CLI_BIN_NAME+_0x24e070(0xcc));}assertEnvAppCodeNotIgnored(_0x1bb124,resolveEnvAppCode(),_0x97f678);if(!_0x1bb124){const _0x5b9a68=Object[_0x24e070(0xd5)](_0x543f2b);if(!_0x129919&&_0x5b9a68['length']>0x1)throw CliErrors[_0x24e070(0xc0)](_0x24e070(0xa3)+CLI_BIN_NAME+_0x24e070(0xec)+_0x5b9a68[_0x24e070(0xa2)](',\x20')+'.');throw CliErrors[_0x24e070(0xc0)](_0x24e070(0xb8)+CLI_BIN_NAME+_0x24e070(0xd0));}}return{'defaults':{'booleans':{'verbose':_0x5a775a[_0x24e070(0xa9)]},'numbers':{'pagesize':_0x5a775a[_0x24e070(0xef)]}},'extras':{'appCode':_0x1bb124,'cookie':_0x3ac21a,'apiDomain':_0x5a775a['resolveApiDomain'](),'apiDir':_0x2edf2c,'selectedAppName':_0x5a775a[_0x24e070(0xfa)],'mergedCli':_0x5a775a['mergedCli']}};},'confirmHighRisk':_0x49ec9d[_0x5502d9(0xc3)]??(async({env:_0x4854d2,commandLabel:_0x5ec04f})=>{const _0x110c10=_0x5502d9;if(_0x4854d2[_0x110c10(0xb2)])throw CliErrors[_0x110c10(0xd4)](_0x110c10(0xd1)+_0x5ec04f+_0x110c10(0xaa));await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x5ec04f,_0x110c10(0xc5)],'createCancelledError':_0x4cb8db=>CliErrors[_0x110c10(0xce)](_0x4cb8db)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x20fd3c=a313_0x4fc0,{clearActiveCookie:_0x110072}=await import(_0x20fd3c(0xbf));_0x110072();}export async function finalizeRabetbaseRuntimeState(){const _0x54c216=a313_0x4fc0;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x33b5cd},{initEnv:_0x1024c9}]=await Promise[_0x54c216(0xa5)]([import(_0x54c216(0xd7)),import(_0x54c216(0xb1))]);_0x33b5cd(),_0x1024c9('production');}}export async function runCommand(_0x2632b1,_0x55839a,_0x367ee7=terminalRunnerAdapter){const _0x4884fe=a313_0x4fc0;assertRejectedFlags(_0x2632b1,_0x55839a[_0x4884fe(0xf8)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x2632b1)?withUpdateNotice(_0x2632b1):_0x2632b1,_0x55839a,_0x367ee7);}function assertRejectedFlags(_0x3dee7c,_0x3f700c){const _0x64461f=a313_0x4fc0;for(const _0x1d6fb4 of _0x3dee7c['rejectedFlags']??[]){const _0x2a1268=GLOBAL_FLAGS[_0x64461f(0xab)](_0xcd83c2=>_0xcd83c2[_0x64461f(0xd9)]===_0x1d6fb4[_0x64461f(0xd9)]),_0x4b1404=new Set([_0x1d6fb4[_0x64461f(0xd9)],toCamelCase(_0x1d6fb4[_0x64461f(0xd9)]),_0x2a1268?.['meowKey']]),_0x568805=[..._0x4b1404]['some'](_0x3c2715=>{if(!_0x3c2715)return![];const _0x3677b8=_0x3f700c[_0x3c2715];return _0x3677b8!==undefined&&_0x3677b8!==null&&_0x3677b8!==![];});if(_0x568805)throw CliErrors[_0x64461f(0xd4)](_0x1d6fb4[_0x64461f(0xe5)],_0x1d6fb4[_0x64461f(0xae)]);}}function toCamelCase(_0x430294){const _0x1a821e=a313_0x4fc0;return _0x430294[_0x1a821e(0xf6)](/-([a-z])/g,(_0x45520f,_0x54e5cd)=>_0x54e5cd[_0x1a821e(0xbb)]());}function shouldAttachUpdateNotice(_0xd2b704){const _0x541883=a313_0x4fc0;if(_0xd2b704[_0x541883(0xee)]===![])return![];return!['update',_0x541883(0xdb),_0x541883(0xf9)][_0x541883(0xd8)](_0xd2b704['service']);}function withUpdateNotice(_0x33a7c4){return{..._0x33a7c4,async 'execute'(_0x4c8c4e){const _0x30eb4f=a313_0x4fc0,_0x26d9ee=shouldResolveUpdateNotice(_0x4c8c4e)?resolveLatestUpdateNotice()[_0x30eb4f(0xdd)](()=>null):Promise[_0x30eb4f(0xb7)](null),_0x1177ea=await _0x33a7c4[_0x30eb4f(0xc2)](_0x4c8c4e);return attachUpdateNotice(_0x1177ea,await _0x26d9ee);}};}function shouldResolveUpdateNotice(_0x3282ab){const _0x43ead1=a313_0x4fc0;return _0x3282ab['format']===_0x43ead1(0xa7)&&!_0x3282ab[_0x43ead1(0xb3)];}function attachUpdateNotice(_0x12fbcf,_0x288f4b){const _0x57acc7=a313_0x4fc0;if(!_0x288f4b||!_0x12fbcf||typeof _0x12fbcf!==_0x57acc7(0xeb))return _0x12fbcf;const _0x13c066=_0x12fbcf,_0x2c12cc=typeof _0x13c066[_0x57acc7(0xba)]==='object'&&_0x13c066['_notice']!==null?_0x13c066['_notice']:{};return{..._0x13c066,'_notice':{..._0x2c12cc,'update':_0x288f4b}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5c8e20,_0x1ea72e){const _0x2950db=a314_0x4bca,_0x14404c=_0x5c8e20();while(!![]){try{const _0x2c8bbb=-parseInt(_0x2950db(0x101))/0x1*(-parseInt(_0x2950db(0xfb))/0x2)+-parseInt(_0x2950db(0x103))/0x3+parseInt(_0x2950db(0x104))/0x4*(parseInt(_0x2950db(0xfc))/0x5)+parseInt(_0x2950db(0x102))/0x6+parseInt(_0x2950db(0xff))/0x7+-parseInt(_0x2950db(0xfd))/0x8+-parseInt(_0x2950db(0xfa))/0x9*(parseInt(_0x2950db(0x100))/0xa);if(_0x2c8bbb===_0x1ea72e)break;else _0x14404c['push'](_0x14404c['shift']());}catch(_0x136c50){_0x14404c['push'](_0x14404c['shift']());}}}(a314_0x4d0f,0x69ea4));import{buildSchemaPayload as a314_0x11c793}from'@lovrabet/cli-framework';function a314_0x4d0f(){const _0x5243f8=['3787698DpQFsZ','552726pVVbgX','98508HbHZId','25632CyNzZU','4388FcQWWP','55pbGXLs','2380408lgQBRj','../commands/registry.js','1797817Vpvihw','1910mSYjqM','137ORyEcx'];a314_0x4d0f=function(){return _0x5243f8;};return a314_0x4d0f();}import{buildAllFlags}from'../framework/build-all-flags.js';function a314_0x4bca(_0x529f88,_0x1bed83){_0x529f88=_0x529f88-0xfa;const _0x4d0f0c=a314_0x4d0f();let _0x4bca02=_0x4d0f0c[_0x529f88];return _0x4bca02;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x220989=a314_0x4bca,{serviceRegistry:_0x5c4716,findDefinition:_0x22ebe7}=await import(_0x220989(0xfe));return a314_0x11c793({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x5c4716,'buildAllFlags':buildAllFlags,'findDefinition':_0x22ebe7});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a315_0x2d41(){const _0x5b4107=['2467845pEgmsw','\x20for\x20`','334NiqthW','32586TOAszs','command','service','replace','help','add','flags','name','alias','48732060fMRrtp','11929653XObZEG','Unsupported\x20flag\x20--','isArray','version','strictFlags','has','434cUvqGr','validation','meowKey','length','3190488NCJbRh','7525440RjUSPt','7114qkGyQy','12CPsnFA'];a315_0x2d41=function(){return _0x5b4107;};return a315_0x2d41();}(function(_0x51f6a2,_0x1823ce){const _0x545e2b=a315_0x41ab,_0x2e62b1=_0x51f6a2();while(!![]){try{const _0x50e058=-parseInt(_0x545e2b(0x16a))/0x1*(-parseInt(_0x545e2b(0x166))/0x2)+parseInt(_0x545e2b(0x164))/0x3+parseInt(_0x545e2b(0x167))/0x4*(parseInt(_0x545e2b(0x168))/0x5)+parseInt(_0x545e2b(0x16b))/0x6*(-parseInt(_0x545e2b(0x17b))/0x7)+parseInt(_0x545e2b(0x165))/0x8+parseInt(_0x545e2b(0x175))/0x9+-parseInt(_0x545e2b(0x174))/0xa;if(_0x50e058===_0x1823ce)break;else _0x2e62b1['push'](_0x2e62b1['shift']());}catch(_0x906776){_0x2e62b1['push'](_0x2e62b1['shift']());}}}(a315_0x2d41,0xc081e));import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function assertSupportedCommandFlags(_0x1c5486,_0x1a1366){const _0x1b8f2b=a315_0x41ab;if(!_0x1c5486[_0x1b8f2b(0x179)])return;const _0x5359d9=new Set([_0x1b8f2b(0x16f),_0x1b8f2b(0x178)]),_0x1ea22b=GLOBAL_FLAGS['filter'](_0x46b7db=>PIPELINE_FLAG_NAMES[_0x1b8f2b(0x17a)](_0x46b7db['name']));for(const _0x2b38b0 of[..._0x1c5486[_0x1b8f2b(0x171)],..._0x1ea22b]){addFlagCandidates(_0x5359d9,_0x2b38b0);}for(const [_0x3b0366,_0x1e77ad]of Object['entries'](_0x1a1366)){if(!isExplicitValue(_0x1e77ad)||_0x5359d9[_0x1b8f2b(0x17a)](_0x3b0366))continue;const _0x2c2dfe=GLOBAL_FLAGS['find'](_0x5b0816=>_0x5b0816[_0x1b8f2b(0x17d)]===_0x3b0366)?.[_0x1b8f2b(0x172)]??toKebabCase(_0x3b0366);throw CliErrors[_0x1b8f2b(0x17c)](_0x1b8f2b(0x176)+_0x2c2dfe+_0x1b8f2b(0x169)+CLI_BIN_NAME+'\x20'+_0x1c5486['service']+'\x20'+_0x1c5486[_0x1b8f2b(0x16c)]+'`.','Run\x20`'+CLI_BIN_NAME+'\x20'+_0x1c5486[_0x1b8f2b(0x16d)]+'\x20'+_0x1c5486[_0x1b8f2b(0x16c)]+'\x20--help`\x20to\x20view\x20the\x20current\x20command\x20contract.');}}function a315_0x41ab(_0x32eb0c,_0x1c9b6d){_0x32eb0c=_0x32eb0c-0x163;const _0x2d414e=a315_0x2d41();let _0x41ab1e=_0x2d414e[_0x32eb0c];return _0x41ab1e;}function addFlagCandidates(_0x26d71e,_0x313ffd){const _0xfaf1bb=a315_0x41ab,_0x46dc30='meowKey'in _0x313ffd?[_0x313ffd[_0xfaf1bb(0x172)],_0x313ffd[_0xfaf1bb(0x17d)]]:[_0x313ffd['name'],_0x313ffd[_0xfaf1bb(0x173)]];for(const _0x106cd1 of _0x46dc30){if(!_0x106cd1)continue;_0x26d71e['add'](_0x106cd1),_0x26d71e[_0xfaf1bb(0x170)](toCamelCase(_0x106cd1));}}function isExplicitValue(_0x329871){const _0x569acf=a315_0x41ab;return _0x329871!==undefined&&_0x329871!==null&&_0x329871!==![]&&(!Array[_0x569acf(0x177)](_0x329871)||_0x329871[_0x569acf(0x163)]>0x0);}function toCamelCase(_0x4975c3){const _0x17bb50=a315_0x41ab;return _0x4975c3[_0x17bb50(0x16e)](/-([a-z])/g,(_0x4a4ff1,_0x8b1d20)=>_0x8b1d20['toUpperCase']());}function toKebabCase(_0x483c13){const _0x21392d=a315_0x41ab;return _0x483c13[_0x21392d(0x16e)](/([a-z0-9])([A-Z])/g,'$1-$2')['toLowerCase']();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a316_0x1775(_0x3ccf92,_0x598f82){_0x3ccf92=_0x3ccf92-0x140;var _0x47fd5d=a316_0x47fd();var _0x1775dc=_0x47fd5d[_0x3ccf92];return _0x1775dc;}(function(_0x1695c9,_0x505722){var _0x35abb5=a316_0x1775,_0x135509=_0x1695c9();while(!![]){try{var _0x30eeb4=-parseInt(_0x35abb5(0x145))/0x1+parseInt(_0x35abb5(0x141))/0x2*(parseInt(_0x35abb5(0x148))/0x3)+parseInt(_0x35abb5(0x149))/0x4*(-parseInt(_0x35abb5(0x143))/0x5)+parseInt(_0x35abb5(0x14b))/0x6*(parseInt(_0x35abb5(0x146))/0x7)+-parseInt(_0x35abb5(0x140))/0x8*(-parseInt(_0x35abb5(0x14a))/0x9)+parseInt(_0x35abb5(0x147))/0xa+-parseInt(_0x35abb5(0x144))/0xb*(parseInt(_0x35abb5(0x142))/0xc);if(_0x30eeb4===_0x505722)break;else _0x135509['push'](_0x135509['shift']());}catch(_0x21e15e){_0x135509['push'](_0x135509['shift']());}}}(a316_0x47fd,0x21bf3));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';function a316_0x47fd(){var _0x2d87c7=['23597MWcKto','35rLVkRc','1128550ytkcvV','3DOzXmk','1948VACuhJ','1062Fzroug','221982JdSwSO','1848gjEpdA','345574rcBVzY','846012pJdzjp','555wYGwvp','44jjYivp'];a316_0x47fd=function(){return _0x2d87c7;};return a316_0x47fd();}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.5.5-beta.
|
|
2
|
-
export declare const GIT_TAG = "v2.5.5-beta.
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-10-
|
|
1
|
+
export declare const VERSION = "2.5.5-beta.3";
|
|
2
|
+
export declare const GIT_TAG = "v2.5.5-beta.3";
|
|
3
|
+
export declare const GIT_COMMIT = "17281e48";
|
|
4
|
+
export declare const BUILD_TIME = "2026-10-08T11:16:55.885Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a317_0x1d15e4=a317_0x5e57;function a317_0x5e57(_0x5f2ec7,_0x5b0462){_0x5f2ec7=_0x5f2ec7-0x168;const _0x5e52ef=a317_0x5e52();let _0x5e5721=_0x5e52ef[_0x5f2ec7];return _0x5e5721;}(function(_0x17c352,_0x3b4624){const _0x3d7eae=a317_0x5e57,_0x6e8dcf=_0x17c352();while(!![]){try{const _0x5f35c3=-parseInt(_0x3d7eae(0x168))/0x1*(-parseInt(_0x3d7eae(0x173))/0x2)+parseInt(_0x3d7eae(0x16b))/0x3+-parseInt(_0x3d7eae(0x16d))/0x4+-parseInt(_0x3d7eae(0x16a))/0x5+-parseInt(_0x3d7eae(0x16f))/0x6*(-parseInt(_0x3d7eae(0x16e))/0x7)+-parseInt(_0x3d7eae(0x169))/0x8+parseInt(_0x3d7eae(0x16c))/0x9;if(_0x5f35c3===_0x3b4624)break;else _0x6e8dcf['push'](_0x6e8dcf['shift']());}catch(_0x256edb){_0x6e8dcf['push'](_0x6e8dcf['shift']());}}}(a317_0x5e52,0x62b8e));function a317_0x5e52(){const _0x4d63b8=['2026-10-08T11:16:55.885Z','17281e48','52oPjEVL','2.5.5-beta.3','4874GsKpiw','1920872EdTGHp','3742420vVLisr','785418gGMoKf','2772072ABkuqS','181432shNdXt','5192453rbEPwx','6XhDCtn','v2.5.5-beta.3'];a317_0x5e52=function(){return _0x4d63b8;};return a317_0x5e52();}export const VERSION=a317_0x1d15e4(0x174);export const GIT_TAG=a317_0x1d15e4(0x170);export const GIT_COMMIT=a317_0x1d15e4(0x172);export const BUILD_TIME=a317_0x1d15e4(0x171);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a318_0x43fb85=a318_0xf080;(function(_0x4cb6e7,_0x4d6780){const _0x269688=a318_0xf080,_0x34d9df=_0x4cb6e7();while(!![]){try{const _0x542299=-parseInt(_0x269688(0xb1))/0x1*(parseInt(_0x269688(0x96))/0x2)+parseInt(_0x269688(0x90))/0x3+parseInt(_0x269688(0xb7))/0x4+parseInt(_0x269688(0x8c))/0x5*(parseInt(_0x269688(0x9f))/0x6)+parseInt(_0x269688(0xa4))/0x7*(-parseInt(_0x269688(0x9b))/0x8)+parseInt(_0x269688(0x94))/0x9*(-parseInt(_0x269688(0xa3))/0xa)+-parseInt(_0x269688(0xaf))/0xb;if(_0x542299===_0x4d6780)break;else _0x34d9df['push'](_0x34d9df['shift']());}catch(_0x961319){_0x34d9df['push'](_0x34d9df['shift']());}}}(a318_0xb977,0xe7ffe));function a318_0xb977(){const _0x3168a5=['https://api.lovrabet.com','Indonesia','https://kb-service-daily.lovrabet.com','https://user.lovrabet.ai','https://skills-daily.lovrabet.ai','https://dev.lovrabet.com','57d346b80b12ca567af9d86dd7f8c02a0c27fe15d4944c8345add2cc6134c587','814506eByBuA','https://user-daily.lovrabet.ai','4RPXxKH','https://user-daily.lovrabet.com','https://runtime.lovrabet.com','china','https://g.lovrabet.id','https://daily.lovrabet.ai','6038864NAdsTo','https://api.lovrabet.ai','4790120EuMTHy','https://api.lovrabet.id','https://cdnjs.cloudflare.com/ajax/libs','https://app.lovrabet.ai','4031964XltZKd','Global','https://daily-runtime.lovrabet.ai','https://dev.lovrabet.ai','280269uRnzer','Mainland\x20China','643918pKGljE','https://g.alicdn.com/code/lib','indonesia','https://daily-api.lovrabet.ai','https://skills.lovrabet.com','112264EtmNdN','https://skills.lovrabet.id','global','https://skills.lovrabet.ai','6WykvRZ','https://daily-runtime.lovrabet.com','https://skills-daily.lovrabet.com','https://daily-api.lovrabet.com','450LvVuJJ','49NMIdJV','https://kb-service.lovrabet.id','https://g.lovrabet.ai','https://daily.lovrabet.com'];a318_0xb977=function(){return _0x3168a5;};return a318_0xb977();}export const ROUTING_CATALOG_DIGEST=a318_0x43fb85(0xae);export const DEFAULT_REGION='cn';function a318_0xf080(_0x42625f,_0x38e9d8){_0x42625f=_0x42625f-0x8b;const _0xb97755=a318_0xb977();let _0xf080a0=_0xb97755[_0x42625f];return _0xf080a0;}export const REGION_VALUES=['cn','id',a318_0x43fb85(0x9d)];export const ENABLED_REGION_VALUES=['cn','id',a318_0x43fb85(0x9d)];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a318_0x43fb85(0x95),'aliases':[a318_0x43fb85(0xb4)],'serviceDomains':{'production':{'user':'https://user.lovrabet.com','api':a318_0x43fb85(0xa8),'runtime':a318_0x43fb85(0xb3),'skill':a318_0x43fb85(0x9a),'kb':a318_0x43fb85(0xa8),'kbService':'https://kb-service.lovrabet.com','app':'https://app.lovrabet.com'},'daily':{'user':a318_0x43fb85(0xb2),'api':a318_0x43fb85(0xa2),'runtime':a318_0x43fb85(0xa0),'skill':a318_0x43fb85(0xa1),'kb':a318_0x43fb85(0xa2),'kbService':a318_0x43fb85(0xaa),'app':a318_0x43fb85(0xa7)}},'cdn':{'libraries':a318_0x43fb85(0x97),'lovrabet':'https://g.lovrabet.com'},'local':{'origin':a318_0x43fb85(0xad)}},'id':{'enabled':!![],'label':a318_0x43fb85(0xa9),'aliases':[a318_0x43fb85(0x98)],'serviceDomains':{'production':{'user':'https://user.lovrabet.id','api':a318_0x43fb85(0x8d),'runtime':'https://runtime.lovrabet.id','skill':a318_0x43fb85(0x9c),'kb':a318_0x43fb85(0x8d),'kbService':a318_0x43fb85(0xa5),'app':'https://app.lovrabet.id'}},'cdn':{'libraries':a318_0x43fb85(0x8e),'lovrabet':a318_0x43fb85(0xb5)},'local':{'origin':'https://dev.lovrabet.id'}},'global':{'enabled':!![],'label':a318_0x43fb85(0x91),'aliases':[],'serviceDomains':{'production':{'user':a318_0x43fb85(0xab),'api':a318_0x43fb85(0x8b),'runtime':'https://runtime.lovrabet.ai','skill':a318_0x43fb85(0x9e),'kb':a318_0x43fb85(0x8b),'app':a318_0x43fb85(0x8f)},'daily':{'user':a318_0x43fb85(0xb0),'api':a318_0x43fb85(0x99),'runtime':a318_0x43fb85(0x92),'skill':a318_0x43fb85(0xac),'kb':a318_0x43fb85(0x99),'app':a318_0x43fb85(0xb6)}},'cdn':{'libraries':'https://cdnjs.cloudflare.com/ajax/libs','lovrabet':a318_0x43fb85(0xa6)},'local':{'origin':a318_0x43fb85(0x93)}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a319_0x563580=a319_0x7de6;(function(_0x3966eb,_0x4f48d2){const _0x217412=a319_0x7de6,_0x390fa7=_0x3966eb();while(!![]){try{const _0x515588=-parseInt(_0x217412(0x96))/0x1*(parseInt(_0x217412(0x8b))/0x2)+parseInt(_0x217412(0x8d))/0x3+parseInt(_0x217412(0x9a))/0x4+parseInt(_0x217412(0x92))/0x5+parseInt(_0x217412(0x98))/0x6+parseInt(_0x217412(0x95))/0x7*(parseInt(_0x217412(0x90))/0x8)+-parseInt(_0x217412(0x99))/0x9;if(_0x515588===_0x4f48d2)break;else _0x390fa7['push'](_0x390fa7['shift']());}catch(_0x11d075){_0x390fa7['push'](_0x390fa7['shift']());}}}(a319_0x10cd,0x87e3e));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a319_0x563580(0x97);function a319_0x10cd(){const _0x9f44e7=['enterprise','289568FIfCXj','appDomain','3276030PuCsFt','kbDomain','userDomain','196fsnGSP','887gmoRKF','a03fe188b2b34518efc5668666c0001d20354882cd7dd70afec902dffe1329c3','5573238PmefOA','18581679dJCnlg','11420MhIhFu','libraries','runtimeDomain','skillDomain','apiDomain','2326ilIdFq','lovrabet-routing/v1','3157188LpXRqC','lovrabet'];a319_0x10cd=function(){return _0x9f44e7;};return a319_0x10cd();}export const ENTERPRISE_ROUTING_PROTOCOL=a319_0x563580(0x8c);export const ENTERPRISE_ROUTING_KIND=a319_0x563580(0x8f);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a319_0x563580(0x94),a319_0x563580(0x8a),a319_0x563580(0x9c),a319_0x563580(0x89),a319_0x563580(0x93),'kbServiceDomain','appDomain','localDomain','certificateDomain'];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=['userDomain',a319_0x563580(0x8a),'runtimeDomain',a319_0x563580(0x89),'kbDomain',a319_0x563580(0x91)];export const ENTERPRISE_ROUTING_CDN_FIELDS=[a319_0x563580(0x9b),a319_0x563580(0x8e)];function a319_0x7de6(_0x2da70b,_0x182f72){_0x2da70b=_0x2da70b-0x89;const _0x10cd86=a319_0x10cd();let _0x7de6cd=_0x10cd86[_0x2da70b];return _0x7de6cd;}export const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS=[a319_0x563580(0x9b),'lovrabet'];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x34efda,_0x3927da){var _0x2166db=a320_0x39f8,_0xa32f9b=_0x34efda();while(!![]){try{var _0x342087=-parseInt(_0x2166db(0xbd))/0x1+-parseInt(_0x2166db(0xc1))/0x2+-parseInt(_0x2166db(0xc3))/0x3+parseInt(_0x2166db(0xc0))/0x4+parseInt(_0x2166db(0xc5))/0x5+-parseInt(_0x2166db(0xbf))/0x6+parseInt(_0x2166db(0xc7))/0x7;if(_0x342087===_0x3927da)break;else _0xa32f9b['push'](_0xa32f9b['shift']());}catch(_0x2d415a){_0xa32f9b['push'](_0xa32f9b['shift']());}}}(a320_0x4fea,0xe804c));function a320_0x4fea(){var _0x48da88=['green','24376436dVuZXF','1671574KPhkHS','log','5140422FcIwDL','5483588gcZnnS','3458558TXaUOJ','\x20\x20Use\x20','4064640thHbTy','\x20to\x20view\x20available\x20commands.','8547865AqVmGm'];a320_0x4fea=function(){return _0x48da88;};return a320_0x4fea();}import a320_0x3bf91b from'chalk';function a320_0x39f8(_0x27b120,_0x3aa3d7){_0x27b120=_0x27b120-0xbd;var _0x4fea53=a320_0x4fea();var _0x39f862=_0x4fea53[_0x27b120];return _0x39f862;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0xbafcbf=a320_0x39f8;console[_0xbafcbf(0xbe)](),console[_0xbafcbf(0xbe)](a320_0x3bf91b['green']['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console[_0xbafcbf(0xbe)](),console[_0xbafcbf(0xbe)](_0xbafcbf(0xc2)+a320_0x3bf91b[_0xbafcbf(0xc6)]['bold'](CLI_BIN_NAME+'\x20--help')+_0xbafcbf(0xc4)),console[_0xbafcbf(0xbe)]();}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x16953d,_0x462f8b){const _0x5dd02e=a321_0x2010,_0x56e6d5=_0x16953d();while(!![]){try{const _0x26ad9c=-parseInt(_0x5dd02e(0xcb))/0x1+parseInt(_0x5dd02e(0xd0))/0x2+parseInt(_0x5dd02e(0xc9))/0x3+parseInt(_0x5dd02e(0xbb))/0x4*(-parseInt(_0x5dd02e(0xca))/0x5)+parseInt(_0x5dd02e(0xd2))/0x6*(-parseInt(_0x5dd02e(0xc3))/0x7)+-parseInt(_0x5dd02e(0xc2))/0x8*(-parseInt(_0x5dd02e(0xcf))/0x9)+parseInt(_0x5dd02e(0xce))/0xa;if(_0x26ad9c===_0x462f8b)break;else _0x56e6d5['push'](_0x56e6d5['shift']());}catch(_0x123e2c){_0x56e6d5['push'](_0x56e6d5['shift']());}}}(a321_0x579d,0x3d8d8));function a321_0x2010(_0x20dc9a,_0x42c74c){_0x20dc9a=_0x20dc9a-0xba;const _0x579dee=a321_0x579d();let _0x2010f7=_0x579dee[_0x20dc9a];return _0x2010f7;}import{installBuiltinSkill}from'./skills/builtin-skill.js';function a321_0x579d(){const _0x158cb9=['160aeIXTV','3418933iCXXUd','SOURCE_INVALID','code','warn','FAILED','changed','54723uraIXH','10YbhDAj','476689gXKMcF','\x20at\x20','Repair\x20with:\x20','13187730bwMZVw','29664ykJDId','183760TazgRw','Installation\x20failed','6ZqhxOu','Rabetbase\x20Built-in\x20Skill\x20','555172PAhtAl','log','repairCommand','installed','installedPath','already\x20current','error'];a321_0x579d=function(){return _0x158cb9;};return a321_0x579d();}export async function runPostinstall(_0x5f30e5={}){const _0x4ba033=a321_0x2010,_0x310196=installBuiltinSkill(_0x5f30e5);if(_0x310196['ok']){const _0x11892c=_0x310196[_0x4ba033(0xc8)]?_0x4ba033(0xbe):_0x4ba033(0xc0),_0x59e7f4=_0x310196[_0x4ba033(0xbf)]?_0x4ba033(0xcc)+_0x310196['installedPath']:'\x20via\x20skills@latest';return console[_0x4ba033(0xbc)](_0x4ba033(0xba)+_0x310196['skillVersion']+'\x20'+_0x11892c+_0x59e7f4),_0x310196;}const _0x38dc83='[BUILTIN_SKILL_INSTALL_'+(_0x310196[_0x4ba033(0xc5)]??_0x4ba033(0xc7))+']\x20'+(_0x310196[_0x4ba033(0xc1)]??_0x4ba033(0xd1))+'.\x20'+(_0x4ba033(0xcd)+_0x310196[_0x4ba033(0xbd)]);if(_0x310196[_0x4ba033(0xc5)]===_0x4ba033(0xc4))throw new Error(_0x38dc83);return console[_0x4ba033(0xc6)](_0x38dc83),_0x310196;}
|