@lovrabet/rabetbase-cli 2.5.4-beta.4 → 2.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -2
- 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.d.ts +2 -0
- package/lib/commands/app/detail.js +1 -0
- 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.d.ts +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.d.ts +3 -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.d.ts +2 -0
- package/lib/commands/menu/shared/path.js +1 -0
- package/lib/commands/menu/shared/service.d.ts +6 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.d.ts +28 -0
- package/lib/commands/menu/shared/subapp-assets.js +1 -0
- package/lib/commands/menu/shared/sync-core.d.ts +2 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/types.d.ts +14 -4
- 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.d.ts +2 -0
- package/lib/commands/menu/subapp-assets-status.js +1 -0
- package/lib/commands/menu/subapp-assets-update.d.ts +2 -0
- package/lib/commands/menu/subapp-assets-update.js +1 -0
- 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.d.ts +15 -0
- 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 +21 -12
- package/skills/rabetbase/guides/backend-function.md +2 -7
- package/skills/rabetbase/guides/bff-creation-workflow.md +24 -23
- package/skills/rabetbase/guides/host-frontend-integration.md +62 -0
- package/skills/rabetbase/guides/independent-deployment.md +45 -0
- package/skills/rabetbase/guides/troubleshooting.md +9 -1
- package/skills/rabetbase/references/rabetbase-app-detail.md +31 -0
- package/skills/rabetbase/references/rabetbase-bff-detail.md +1 -1
- package/skills/rabetbase/references/rabetbase-bff-push.md +2 -2
- package/skills/rabetbase/references/rabetbase-data-list-status.md +1 -0
- package/skills/rabetbase/references/rabetbase-deployment-sync-all.md +5 -1
- package/skills/rabetbase/references/rabetbase-menu-asset-update.md +9 -7
- package/skills/rabetbase/references/rabetbase-menu-list.md +2 -2
- package/skills/rabetbase/references/rabetbase-menu-subapp-assets-status.md +19 -0
- package/skills/rabetbase/references/rabetbase-menu-subapp-assets-update.md +27 -0
- package/skills/rabetbase/references/rabetbase-menu-sync.md +40 -14
- package/skills/rabetbase/references/rabetbase-page-create.md +1 -1
- package/skills/rabetbase/references/rabetbase-page-generate-start.md +5 -3
- package/skills/rabetbase/references/rabetbase-page-generate-status.md +1 -0
- package/skills/rabetbase.manifest.json +8 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const a297_0x112381=a297_0x5a06;(function(_0x2371f7,_0x10617c){const _0x30d972=a297_0x5a06,_0x4b6af1=_0x2371f7();while(!![]){try{const _0x30cc72=-parseInt(_0x30d972(0xa9))/0x1*(parseInt(_0x30d972(0x95))/0x2)+parseInt(_0x30d972(0xe4))/0x3*(parseInt(_0x30d972(0xd0))/0x4)+parseInt(_0x30d972(0xab))/0x5+parseInt(_0x30d972(0xe5))/0x6*(-parseInt(_0x30d972(0xbd))/0x7)+parseInt(_0x30d972(0xe1))/0x8+parseInt(_0x30d972(0xb6))/0x9*(-parseInt(_0x30d972(0xb4))/0xa)+parseInt(_0x30d972(0xdb))/0xb;if(_0x30cc72===_0x10617c)break;else _0x4b6af1['push'](_0x4b6af1['shift']());}catch(_0x3d54e4){_0x4b6af1['push'](_0x4b6af1['shift']());}}}(a297_0x59a5,0xbb97f));const MYBATIS_OUTER_TAGS=new Map([[a297_0x112381(0xa5),a297_0x112381(0xe9)],[a297_0x112381(0xa3),a297_0x112381(0x9a)],[a297_0x112381(0x9b),a297_0x112381(0xe6)],[a297_0x112381(0xf0),'DELETE']]),MYBATIS_DYNAMIC_TAGS=new Set(['if',a297_0x112381(0xd1),a297_0x112381(0xdd),a297_0x112381(0xda),a297_0x112381(0xf5),a297_0x112381(0x96),a297_0x112381(0xba),a297_0x112381(0xc1),'bind',a297_0x112381(0xc9),a297_0x112381(0x9f)]),MYBATIS_BRANCH_TAGS=new Set(['if',a297_0x112381(0xdd),'choose','when',a297_0x112381(0x96)]);export const MYBATIS_DYNAMIC_START_MARKER=a297_0x112381(0xea);export const MYBATIS_DYNAMIC_END_MARKER=a297_0x112381(0xe7);export const MYBATIS_INCLUDE_MARKER=a297_0x112381(0xc2);const UNRESOLVED_SQL_FRAGMENT=a297_0x112381(0xe2),MYBATIS_OUTER_TAG_PATTERN=new RegExp(a297_0x112381(0xfe)+[...MYBATIS_OUTER_TAGS[a297_0x112381(0xbf)]()][a297_0x112381(0xc3)]('|')+a297_0x112381(0xa6),'i');export function normalizeSqlForStaticAnalysis(_0x1b2cd7){const _0x355409=a297_0x112381,_0x729f7b=typeof _0x1b2cd7===_0x355409(0xf1)?_0x1b2cd7:'';if(detectSqlSourceMode(_0x729f7b)===_0x355409(0xec))return{'sql':_0x729f7b,'mode':_0x355409(0xec)};let _0x1d705a=0x0,_0x3360ee='',_0x35016a,_0x48a7a2=![],_0x2f15a7=![];const _0x521e36=[];while(_0x1d705a<_0x729f7b[_0x355409(0xbb)]){if(_0x729f7b[_0x355409(0xdf)](_0x355409(0x9d),_0x1d705a)){const _0x3ea524=_0x729f7b['indexOf']('-->',_0x1d705a+0x4);if(_0x3ea524<0x0)return invalidMybatisSource(_0x355409(0xd9));_0x3360ee+='\x20',_0x1d705a=_0x3ea524+0x3;continue;}if(_0x729f7b[_0x355409(0xdf)](_0x355409(0xeb),_0x1d705a)){if(!_0x48a7a2||_0x2f15a7)return invalidMybatisSource(_0x355409(0xcd));const _0x4c0341=_0x729f7b[_0x355409(0xf4)](_0x355409(0xaf),_0x1d705a+0x9);if(_0x4c0341<0x0)return invalidMybatisSource(_0x355409(0x98));_0x3360ee+=_0x729f7b[_0x355409(0x9e)](_0x1d705a+0x9,_0x4c0341),_0x1d705a=_0x4c0341+0x3;continue;}if(_0x729f7b['startsWith']('<?',_0x1d705a)){if(_0x48a7a2)return invalidMybatisSource(_0x355409(0xf3));const _0x4ed773=_0x729f7b[_0x355409(0xf4)]('?>',_0x1d705a+0x2);if(_0x4ed773<0x0)return invalidMybatisSource(_0x355409(0xa2));_0x3360ee+='\x20',_0x1d705a=_0x4ed773+0x2;continue;}if(_0x729f7b[_0x1d705a]!=='<'){const _0x555846=_0x729f7b[_0x355409(0xf4)]('<',_0x1d705a),_0x1b9724=_0x555846<0x0?_0x729f7b[_0x355409(0xbb)]:_0x555846,_0x16ce42=_0x729f7b[_0x355409(0x9e)](_0x1d705a,_0x1b9724);if((!_0x48a7a2||_0x2f15a7)&&_0x16ce42[_0x355409(0xba)]())return invalidMybatisSource('SQL\x20text\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.');if(_0x48a7a2&&!_0x2f15a7){const _0x11f6cc=decodeXmlEntities(_0x16ce42);if(_0x11f6cc===null)return invalidMybatisSource(_0x355409(0xf2));_0x3360ee+=_0x11f6cc;}else _0x3360ee+='\x20';_0x1d705a=_0x1b9724;continue;}const _0x5bc3f4=findXmlTagEnd(_0x729f7b,_0x1d705a);if(_0x5bc3f4<0x0)return invalidMybatisSource(_0x355409(0xc8));const _0x16bf72=_0x729f7b[_0x355409(0x9e)](_0x1d705a,_0x5bc3f4+0x1),_0x30e7f3=/^<\s*(\/?)\s*([A-Za-z][\w:-]*)([\s\S]*?)(\/?)\s*>$/[_0x355409(0xfb)](_0x16bf72);if(!_0x30e7f3)return invalidMybatisSource('Invalid\x20MyBatis\x20XML\x20tag.');const _0x4f2973=_0x30e7f3[0x1]==='/',_0x418e2d=_0x30e7f3[0x2]??'',_0x1d9076=_0x418e2d['toLowerCase'](),_0x418b29=_0x30e7f3[0x3]??'',_0x22e18e=_0x30e7f3[0x4]==='/',_0x35cb1b=MYBATIS_OUTER_TAGS[_0x355409(0xa4)](_0x1d9076);if(!_0x35cb1b&&!MYBATIS_DYNAMIC_TAGS['has'](_0x1d9076))return invalidMybatisSource('Unsupported\x20MyBatis\x20XML\x20tag:\x20<'+_0x1d9076+'>.');if(!_0x35cb1b&&_0x418e2d!==_0x1d9076)return invalidMybatisSource(_0x355409(0xd4)+_0x418e2d+'>.');if(_0x4f2973){if(_0x418b29[_0x355409(0xba)]()||_0x22e18e)return invalidMybatisSource(_0x355409(0xaa)+_0x418e2d+'>.');const _0x4117b7=_0x521e36['at'](-0x1);if(!_0x4117b7||(_0x4117b7[_0x355409(0xc6)]?_0x4117b7['tagName']!==_0x1d9076:_0x4117b7['rawName']!==_0x418e2d))return invalidMybatisSource('Mismatched\x20MyBatis\x20XML\x20closing\x20tag:\x20</'+_0x418e2d+'>.');_0x521e36['pop']();if(_0x4117b7[_0x355409(0xc6)])_0x2f15a7=!![];_0x3360ee+=MYBATIS_BRANCH_TAGS[_0x355409(0xdc)](_0x1d9076)?'\x20'+MYBATIS_DYNAMIC_END_MARKER+'\x20':'\x20';}else{if(!hasWellFormedXmlAttributes(_0x418b29))return invalidMybatisSource('Invalid\x20attributes\x20on\x20MyBatis\x20XML\x20tag:\x20<'+_0x418e2d+'>.');if(_0x1d9076===_0x355409(0x9f)&&(!_0x22e18e||_0x521e36['at'](-0x1)?.[_0x355409(0xad)]!==_0x355409(0xc9)))return invalidMybatisSource(_0x355409(0xc0));if(_0x35cb1b){if(_0x48a7a2||_0x521e36[_0x355409(0xbb)]>0x0)return invalidMybatisSource(_0x355409(0x9c));_0x48a7a2=!![],_0x2f15a7=_0x22e18e,_0x35016a=_0x35cb1b;}else{if(!_0x48a7a2||_0x2f15a7)return invalidMybatisSource('MyBatis\x20dynamic\x20tag\x20must\x20be\x20inside\x20the\x20statement\x20wrapper:\x20<'+_0x418e2d+'>.');}_0x3360ee+=_0x1d9076===_0x355409(0xd1)?_0x355409(0xca):_0x1d9076==='set'?_0x355409(0xd2):_0x1d9076===_0x355409(0xc9)?'\x20'+MYBATIS_INCLUDE_MARKER+'\x20':MYBATIS_BRANCH_TAGS[_0x355409(0xdc)](_0x1d9076)&&!_0x22e18e?'\x20'+MYBATIS_DYNAMIC_START_MARKER+'\x20':'\x20',!_0x22e18e&&_0x521e36[_0x355409(0xa0)]({'rawName':_0x418e2d,'tagName':_0x1d9076,'outer':!!_0x35cb1b});}_0x1d705a=_0x5bc3f4+0x1;}if(_0x521e36['length']>0x0)return invalidMybatisSource(_0x355409(0xb7)+_0x521e36['at'](-0x1)?.[_0x355409(0xb5)]+'>.');if(!_0x48a7a2||!_0x2f15a7)return invalidMybatisSource(_0x355409(0xf8));return{'sql':_0x3360ee[_0x355409(0xba)](),'mode':'mybatisXml',..._0x35016a?{'statementType':_0x35016a}:{}};}function hasWellFormedXmlAttributes(_0x4fecde){const _0x128517=a297_0x112381;let _0x137fd4=0x0;const _0x316bf0=new Set();while(_0x137fd4<_0x4fecde[_0x128517(0xbb)]){while(_0x137fd4<_0x4fecde[_0x128517(0xbb)]&&/\s/[_0x128517(0xe3)](_0x4fecde[_0x137fd4]??''))_0x137fd4+=0x1;if(_0x137fd4>=_0x4fecde[_0x128517(0xbb)])return!![];const _0x243b6a=/^[A-Za-z_:][\w:.-]*/[_0x128517(0xfb)](_0x4fecde[_0x128517(0x9e)](_0x137fd4)),_0x284c29=_0x243b6a?.[0x0];if(!_0x284c29||_0x316bf0[_0x128517(0xdc)](_0x284c29))return![];_0x316bf0[_0x128517(0xbc)](_0x284c29),_0x137fd4+=_0x284c29['length'];while(_0x137fd4<_0x4fecde['length']&&/\s/[_0x128517(0xe3)](_0x4fecde[_0x137fd4]??''))_0x137fd4+=0x1;if(_0x4fecde[_0x137fd4]!=='=')return![];_0x137fd4+=0x1;while(_0x137fd4<_0x4fecde['length']&&/\s/[_0x128517(0xe3)](_0x4fecde[_0x137fd4]??''))_0x137fd4+=0x1;const _0x155c95=_0x4fecde[_0x137fd4];if(_0x155c95!=='\x22'&&_0x155c95!=='\x27')return![];_0x137fd4+=0x1;const _0x36598f=_0x4fecde['indexOf'](_0x155c95,_0x137fd4);if(_0x36598f<0x0)return![];if(decodeXmlEntities(_0x4fecde[_0x128517(0x9e)](_0x137fd4,_0x36598f))===null)return![];_0x137fd4=_0x36598f+0x1;}return!![];}export function detectSqlSourceMode(_0xbe02e4){const _0x37abb3=a297_0x112381;let _0x2ed980=0x0;const _0x560390=()=>{while(_0x2ed980<_0xbe02e4['length']&&/\s/['test'](_0xbe02e4[_0x2ed980]??''))_0x2ed980+=0x1;};_0x560390();while(_0x2ed980<_0xbe02e4[_0x37abb3(0xbb)]){if(_0xbe02e4[_0x37abb3(0xdf)](_0x37abb3(0x9d),_0x2ed980)){const _0x14fc57=_0xbe02e4[_0x37abb3(0xf4)](_0x37abb3(0xcf),_0x2ed980+0x4);if(_0x14fc57<0x0)return'mybatisXml';_0x2ed980=_0x14fc57+0x3,_0x560390();continue;}if(_0xbe02e4[_0x37abb3(0xdf)]('<?',_0x2ed980)){const _0x156728=_0xbe02e4[_0x37abb3(0xf4)]('?>',_0x2ed980+0x2);if(_0x156728<0x0)return'mybatisXml';_0x2ed980=_0x156728+0x2,_0x560390();continue;}break;}return MYBATIS_OUTER_TAG_PATTERN[_0x37abb3(0xe3)](_0xbe02e4[_0x37abb3(0x9e)](_0x2ed980))?_0x37abb3(0xb0):'sql';}function invalidMybatisSource(_0x2f3f84){const _0x1f76fb=a297_0x112381;return{'sql':'','mode':_0x1f76fb(0xb0),'error':_0x2f3f84};}function findXmlTagEnd(_0x4a4ecc,_0x8727db){const _0x38541f=a297_0x112381;let _0x12d283;for(let _0x3c27c5=_0x8727db+0x1;_0x3c27c5<_0x4a4ecc[_0x38541f(0xbb)];_0x3c27c5+=0x1){const _0x2b63b8=_0x4a4ecc[_0x3c27c5];if(_0x12d283){if(_0x2b63b8===_0x12d283)_0x12d283=undefined;continue;}if(_0x2b63b8==='\x22'||_0x2b63b8==='\x27'){_0x12d283=_0x2b63b8;continue;}if(_0x2b63b8==='>')return _0x3c27c5;}return-0x1;}function decodeXmlEntities(_0x1b5959){const _0x39a623=a297_0x112381;let _0x5be4e5=![];const _0x25b5a4=_0x1b5959[_0x39a623(0x97)](/&(?:#x[0-9a-f]+;|#[0-9]+;|[A-Za-z_:][\w:.-]*;)?/g,_0x55a2a7=>{const _0x234d51=_0x39a623;if(_0x55a2a7===_0x234d51(0xd6))return'<';if(_0x55a2a7==='>')return'>';if(_0x55a2a7===_0x234d51(0xfc))return'\x22';if(_0x55a2a7===_0x234d51(0xf7))return'\x27';if(_0x55a2a7==='&')return'&';const _0x189aec=/^&#(?:x([0-9a-f]+)|([0-9]+));$/['exec'](_0x55a2a7);if(_0x189aec){const _0x537153=_0x189aec[0x1],_0x58c541=_0x189aec[0x2],_0x288cdc=Number[_0x234d51(0xce)](_0x537153??_0x58c541??'',_0x537153?0x10:0xa);if(isValidXmlCharacter(_0x288cdc))return String[_0x234d51(0xb3)](_0x288cdc);}return _0x5be4e5=!![],'';});return _0x5be4e5?null:_0x25b5a4;}function isValidXmlCharacter(_0x2e3060){return _0x2e3060===0x9||_0x2e3060===0xa||_0x2e3060===0xd||_0x2e3060>=0x20&&_0x2e3060<=0xd7ff||_0x2e3060>=0xe000&&_0x2e3060<=0xfffd||_0x2e3060>=0x10000&&_0x2e3060<=0x10ffff;}function a297_0x5a06(_0x2d02b1,_0x2b7c20){_0x2d02b1=_0x2d02b1-0x95;const _0x59a578=a297_0x59a5();let _0x5a062b=_0x59a578[_0x2d02b1];return _0x5a062b;}export function detectSqlType(_0x5bda37){return detectNormalizedSqlType(normalizeSqlForStaticAnalysis(_0x5bda37));}function detectNormalizedSqlType(_0xfd41ad){const _0x10c456=a297_0x112381;if(_0xfd41ad[_0x10c456(0xf9)])return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':_0xfd41ad[_0x10c456(0xf9)]};if(!_0xfd41ad[_0x10c456(0xec)][_0x10c456(0xba)]())return{'type':_0x10c456(0xd5),'isSelectOnly':![],'isDangerous':![],'reason':_0x10c456(0xef)};const _0x3302f0=tokenizeSqlForTypeAnalysis(_0xfd41ad[_0x10c456(0xec)]),_0x5abb0d=_0x3302f0[_0x10c456(0xc4)](_0x45dda4=>_0x45dda4!==MYBATIS_DYNAMIC_START_MARKER&&_0x45dda4!==MYBATIS_DYNAMIC_END_MARKER),_0x357efd=findMainStatementIndex(_0x5abb0d);if(_0x357efd<0x0)return{'type':_0x10c456(0xd5),'isSelectOnly':![],'isDangerous':![],'reason':_0x10c456(0xa1)};const _0x53bebf=_0x5abb0d[_0x357efd]??'',_0x74d56f=_0xfd41ad[_0x10c456(0xd8)]??_0x53bebf,_0x19c3e8=_0x3302f0[_0x10c456(0xd3)](_0x335a81=>/^(DELETE|DROP|ALTER|CREATE|TRUNCATE)$/['test'](_0x335a81)),_0x466cdb=new Set();let _0x127dc3=![];for(let _0x1049e2=0x0;_0x1049e2<_0x3302f0[_0x10c456(0xbb)];_0x1049e2+=0x1){const _0x4471a8=_0x3302f0[_0x1049e2];(_0x4471a8==='UPDATE'||_0x4471a8===_0x10c456(0xbe))&&isLockingClauseKeyword(_0x3302f0,_0x1049e2)&&(_0x466cdb['add'](_0x1049e2),_0x127dc3=!![]);if(_0x3302f0['slice'](_0x1049e2,_0x1049e2+0x4)[_0x10c456(0xc3)]('\x20')===_0x10c456(0xb8))_0x127dc3=!![];}if(_0x74d56f==='SELECT'){const _0x4df48d=_0x3302f0[_0x10c456(0xd3)]((_0x15de3c,_0x51d03e)=>/^(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)$/[_0x10c456(0xe3)](_0x15de3c)&&!_0x466cdb[_0x10c456(0xdc)](_0x51d03e));return{'type':_0x10c456(0xe9),'isSelectOnly':!_0x4df48d&&!_0x127dc3,'isLockingRead':_0x127dc3,'isDangerous':_0x4df48d,'reason':_0x4df48d?'SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT':undefined};}if(_0x74d56f===_0x10c456(0x9a))return{'type':_0x10c456(0x9a),'isSelectOnly':![],'isDangerous':_0x19c3e8,'reason':_0x19c3e8?_0x10c456(0xde):undefined};if(_0x74d56f===_0x10c456(0xe6))return{'type':'UPDATE','isSelectOnly':![],'isDangerous':_0x19c3e8,'reason':_0x19c3e8?_0x10c456(0xde):undefined};if(_0x74d56f==='DELETE')return{'type':_0x10c456(0xfd),'isSelectOnly':![],'isDangerous':!![],'reason':_0x10c456(0xcc)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x10c456(0xe3)](_0x53bebf))return{'type':'DDL','isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20require\x20explicit\x20review'};return{'type':_0x10c456(0xd5),'isSelectOnly':![],'isDangerous':![]};}function isLockingClauseKeyword(_0x12de91,_0x1e65b3){const _0x2643e8=a297_0x112381,_0x56ae39=_0x12de91[_0x1e65b3]===_0x2643e8(0xe6)?[[_0x2643e8(0xf6)],[_0x2643e8(0xf6),'NO',_0x2643e8(0xe8)]]:[[_0x2643e8(0xf6)],[_0x2643e8(0xf6),_0x2643e8(0xe8)]],_0x596e41=_0x56ae39[_0x2643e8(0xd3)](_0x102d02=>{const _0x3b8693=_0x2643e8,_0x46d71f=_0x1e65b3-_0x102d02['length'];return _0x46d71f>=0x0&&_0x12de91[_0x3b8693(0x9e)](_0x46d71f,_0x1e65b3)[_0x3b8693(0xc3)]('\x20')===_0x102d02[_0x3b8693(0xc3)]('\x20');});if(!_0x596e41)return![];return!_0x12de91[_0x2643e8(0x9e)](_0x1e65b3+0x1,_0x1e65b3+0x5)['includes'](_0x2643e8(0xb9));}function findMainStatementIndex(_0x452b4f){const _0x16d7cd=a297_0x112381;if(_0x452b4f[0x0]!=='WITH')return 0x0;let _0x2e44d8=_0x452b4f[0x1]===_0x16d7cd(0xed)?0x2:0x1;while(_0x2e44d8<_0x452b4f['length']){const _0xa6eb23=_0x452b4f[_0x2e44d8];if(!_0xa6eb23||!(/^[A-Z_][\w$]*$/[_0x16d7cd(0xe3)](_0xa6eb23)||/^[`"]/[_0x16d7cd(0xe3)](_0xa6eb23)))return-0x1;_0x2e44d8+=0x1;if(_0x452b4f[_0x2e44d8]==='('){_0x2e44d8=skipSqlParentheses(_0x452b4f,_0x2e44d8);if(_0x2e44d8<0x0)return-0x1;}if(_0x452b4f[_0x2e44d8]!=='AS')return-0x1;_0x2e44d8+=0x1;if(_0x452b4f[_0x2e44d8]===_0x16d7cd(0xd7)&&_0x452b4f[_0x2e44d8+0x1]===_0x16d7cd(0xcb))_0x2e44d8+=0x2;else{if(_0x452b4f[_0x2e44d8]==='MATERIALIZED')_0x2e44d8+=0x1;}_0x2e44d8=skipSqlParentheses(_0x452b4f,_0x2e44d8);if(_0x2e44d8<0x0)return-0x1;if(_0x452b4f[_0x2e44d8]!==','){const _0x1d0c1b=_0x452b4f[_0x2e44d8]==='('?_0x2e44d8+0x1:_0x2e44d8;return/^(SELECT|INSERT|UPDATE|DELETE)$/[_0x16d7cd(0xe3)](_0x452b4f[_0x1d0c1b]??'')?_0x1d0c1b:-0x1;}_0x2e44d8+=0x1;}return-0x1;}function skipSqlParentheses(_0x1bff44,_0x37a478){const _0x3aaaba=a297_0x112381;if(_0x1bff44[_0x37a478]!=='(')return-0x1;let _0x2e4927=0x0;for(let _0x1a3d6d=_0x37a478;_0x1a3d6d<_0x1bff44[_0x3aaaba(0xbb)];_0x1a3d6d+=0x1){const _0x389498=_0x1bff44[_0x1a3d6d];if(_0x389498===';')return-0x1;if(_0x389498==='(')_0x2e4927+=0x1;if(_0x389498===')'&&--_0x2e4927===0x0)return _0x1a3d6d+0x1;}return-0x1;}function stripStaticAnalysisMarkers(_0x4fef1e){const _0x53f370=a297_0x112381;return _0x4fef1e[_0x53f370(0xa8)](MYBATIS_DYNAMIC_START_MARKER,'\x20')[_0x53f370(0xa8)](MYBATIS_DYNAMIC_END_MARKER,'\x20')[_0x53f370(0xa8)](MYBATIS_INCLUDE_MARKER,'\x20'+UNRESOLVED_SQL_FRAGMENT+'\x20');}function tokenizeSqlForTypeAnalysis(_0x5e8b3f){const _0x28e776=a297_0x112381,_0x332286=[],_0x1b8f04=/\/\*[\s\S]*?\*\/|--[^\r\n]*|[#$]\{[^}]*\}|#[^\r\n]*|'(?:''|\\[\s\S]|[^'\\])*'|"(?:""|\\[\s\S]|[^"\\])*"|`(?:``|\\[\s\S]|[^`\\])*`|@[A-Za-z_]\w*|[A-Za-z_]\w*|\S/g;for(const _0x506b11 of _0x5e8b3f['matchAll'](_0x1b8f04)){const _0x16428b=_0x506b11[0x0];if(_0x16428b[_0x28e776(0xdf)]('/*')||_0x16428b['startsWith']('--')||_0x16428b['startsWith']('#')&&!_0x16428b[_0x28e776(0xdf)]('#{'))continue;_0x332286['push'](/^["`]/[_0x28e776(0xe3)](_0x16428b)?_0x16428b:/^[\x27@#$]/['test'](_0x16428b)?'?':_0x16428b[_0x28e776(0xfa)]());}return _0x332286;}function extractTables(_0x5e0d27,_0x146f9c){const _0x36649a=a297_0x112381,_0xfd13bb=_0x5e0d27[_0x36649a(0x97)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x36649a(0x97)](/'[^']*'/g,'\x27\x27')[_0x36649a(0x97)](/--.*$/gm,'')[_0x36649a(0x97)](/\/\*[\s\S]*?\*\//g,''),_0x560f71=[],_0x4ba1d9=_0xfd13bb[_0x36649a(0xae)](/FROM\s+([^\s,)(]+)/i);addTable(_0x560f71,_0x4ba1d9?.[0x1]);for(const _0x89d95 of _0xfd13bb[_0x36649a(0xc5)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){addTable(_0x560f71,_0x89d95[0x1]);}const _0x9ff2ed=_0xfd13bb[_0x36649a(0xae)](/INTO\s+([^\s(]+)/i);addTable(_0x560f71,_0x9ff2ed?.[0x1]);if(_0x146f9c===_0x36649a(0xe6)){const _0x8b60be=_0xfd13bb[_0x36649a(0xae)](/UPDATE\s+([^\s,)(]+)/i);addTable(_0x560f71,_0x8b60be?.[0x1]);}return _0x560f71;}function a297_0x59a5(){const _0x26fa14=['LOCK\x20IN\x20SHARE\x20MODE','SET','trim','length','add','29365sRABpc','SHARE','keys','MyBatis\x20<property>\x20must\x20be\x20a\x20self-closing\x20direct\x20child\x20of\x20<include>.','set','__RABETBASE_MYBATIS_INCLUDE_UNRESOLVED__','join','filter','matchAll','outer','Unable\x20to\x20detect\x20SQL\x20type.\x20','Unterminated\x20MyBatis\x20XML\x20tag.','include','\x20WHERE\x20','MATERIALIZED','DELETE\x20statements\x20require\x20explicit\x20review','CDATA\x20sections\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','parseInt','-->','3726452mhBWrZ','where','\x20SET\x20','some','MyBatis\x20dynamic\x20tag\x20names\x20must\x20be\x20lowercase:\x20<','UNKNOWN','<','NOT','statementType','Unterminated\x20XML\x20comment.','choose','6609724cqmkus','has','foreach','SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements','startsWith','isDangerous','5789008GyZbxH','__RABETBASE_UNRESOLVED_SQL_FRAGMENT__','test','3nkJjGG','732zxjcmu','UPDATE','__RABETBASE_MYBATIS_DYNAMIC_END__','KEY','SELECT','__RABETBASE_MYBATIS_DYNAMIC_START__','<![CDATA[','sql','RECURSIVE','\x20statements\x20require\x20explicit\x20review.\x20Local\x20analysis\x20does\x20not\x20authorize\x20saving\x20or\x20execution.','SQL\x20content\x20is\x20empty','delete','string','Invalid\x20XML\x20entity\x20reference.','XML\x20declarations\x20must\x20precede\x20the\x20MyBatis\x20statement\x20wrapper.','indexOf','when','FOR',''','MyBatis\x20XML\x20must\x20contain\x20exactly\x20one\x20complete\x20statement\x20wrapper.','error','toUpperCase','exec','"','DELETE','^<\x5cs*(?:','2752DfZDdx','otherwise','replace','Unterminated\x20CDATA\x20section.','\x20query\x20targeting\x20','INSERT','update','Multiple\x20MyBatis\x20statement\x20wrappers\x20are\x20not\x20supported.','<!--','slice','property','push','Local\x20analysis\x20could\x20not\x20parse\x20the\x20WITH\x20prefix;\x20this\x20is\x20a\x20local\x20capability\x20limit,\x20not\x20a\x20platform\x20rejection.','Unterminated\x20XML\x20declaration.','insert','get','select',')\x5cb','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','replaceAll','770dLUkFa','Invalid\x20MyBatis\x20XML\x20closing\x20tag:\x20</','5005535SRWjPm','type','tagName','match',']]>','mybatisXml','includes','reason','fromCodePoint','10UhQNDC','rawName','8257833IAmszM','Unclosed\x20MyBatis\x20XML\x20tag:\x20<'];a297_0x59a5=function(){return _0x26fa14;};return a297_0x59a5();}function addTable(_0x3df427,_0x3d10d9){const _0x2bf30e=a297_0x112381,_0xd63ef2=_0x3d10d9?.[_0x2bf30e(0x97)](/[`"]/g,'');_0xd63ef2&&_0xd63ef2!==UNRESOLVED_SQL_FRAGMENT&&!_0x3df427[_0x2bf30e(0xb1)](_0xd63ef2)&&_0x3df427['push'](_0xd63ef2);}function extractParameters(_0x43151c){const _0x2e9eeb=a297_0x112381,_0x306193=new Set();for(const _0x48e6a5 of _0x43151c[_0x2e9eeb(0xc5)](/[#$]\{\s*([A-Za-z_][\w.]*)\s*(?=[,}])/g)){if(_0x48e6a5[0x1])_0x306193[_0x2e9eeb(0xbc)](_0x48e6a5[0x1]);}return Array['from'](_0x306193);}export function validateSql(_0x384757){const _0x3e18eb=a297_0x112381,_0x5a2807=normalizeSqlForStaticAnalysis(_0x384757),_0x69f22f=detectNormalizedSqlType(_0x5a2807),_0x488f44=stripStaticAnalysisMarkers(_0x5a2807[_0x3e18eb(0xec)]),_0x1dcc2e=_0x5a2807[_0x3e18eb(0xf9)]?[]:extractTables(_0x488f44,_0x69f22f[_0x3e18eb(0xac)]),_0x4a8b64=_0x5a2807['error']?[]:extractParameters(_0x488f44);if(_0x69f22f[_0x3e18eb(0xe0)])return{'valid':![],'sqlType':_0x69f22f,'tables':_0x1dcc2e,'parameters':_0x4a8b64,'message':_0x69f22f[_0x3e18eb(0xb2)]||_0x69f22f[_0x3e18eb(0xac)]+_0x3e18eb(0xee)};if(_0x69f22f[_0x3e18eb(0xac)]===_0x3e18eb(0xd5))return{'valid':![],'sqlType':_0x69f22f,'tables':_0x1dcc2e,'parameters':_0x4a8b64,'message':_0x5a2807[_0x3e18eb(0xf9)]?_0x3e18eb(0xc7)+_0x5a2807[_0x3e18eb(0xf9)]:_0x69f22f[_0x3e18eb(0xb2)]?'Unable\x20to\x20detect\x20SQL\x20type.\x20'+_0x69f22f['reason']:_0x3e18eb(0xa7)};return{'valid':!![],'sqlType':_0x69f22f,'tables':_0x1dcc2e,'parameters':_0x4a8b64,'message':_0x69f22f[_0x3e18eb(0xac)]+_0x3e18eb(0x99)+(_0x1dcc2e[_0x3e18eb(0xbb)]?_0x1dcc2e[_0x3e18eb(0xc3)](',\x20'):'unknown\x20table(s)')+(_0x4a8b64['length']?'\x20with\x20parameters:\x20'+_0x4a8b64[_0x3e18eb(0xc3)](',\x20'):'')};}
|
|
1
|
+
const a302_0x20f671=a302_0x1d8e;(function(_0x576683,_0x74ff27){const _0x102f69=a302_0x1d8e,_0xf1a3d=_0x576683();while(!![]){try{const _0x39083d=-parseInt(_0x102f69(0x19b))/0x1+-parseInt(_0x102f69(0x158))/0x2*(parseInt(_0x102f69(0x168))/0x3)+-parseInt(_0x102f69(0x189))/0x4+-parseInt(_0x102f69(0x1a7))/0x5*(-parseInt(_0x102f69(0x16c))/0x6)+-parseInt(_0x102f69(0x1ab))/0x7*(-parseInt(_0x102f69(0x177))/0x8)+-parseInt(_0x102f69(0x174))/0x9+parseInt(_0x102f69(0x17b))/0xa*(parseInt(_0x102f69(0x15e))/0xb);if(_0x39083d===_0x74ff27)break;else _0xf1a3d['push'](_0xf1a3d['shift']());}catch(_0x2ed800){_0xf1a3d['push'](_0xf1a3d['shift']());}}}(a302_0x1b6e,0x2eb40));const MYBATIS_OUTER_TAGS=new Map([[a302_0x20f671(0x16b),'SELECT'],[a302_0x20f671(0x14e),a302_0x20f671(0x15f)],['update','UPDATE'],[a302_0x20f671(0x17f),'DELETE']]),MYBATIS_DYNAMIC_TAGS=new Set(['if','where',a302_0x20f671(0x1aa),a302_0x20f671(0x18e),a302_0x20f671(0x17e),a302_0x20f671(0x1ae),a302_0x20f671(0x155),'set','bind','include',a302_0x20f671(0x1a5)]),MYBATIS_BRANCH_TAGS=new Set(['if','foreach',a302_0x20f671(0x18e),a302_0x20f671(0x17e),a302_0x20f671(0x1ae)]);export const MYBATIS_DYNAMIC_START_MARKER=a302_0x20f671(0x14b);export const MYBATIS_DYNAMIC_END_MARKER=a302_0x20f671(0x178);export const MYBATIS_INCLUDE_MARKER=a302_0x20f671(0x19c);function a302_0x1b6e(){const _0x306203=['\x20WHERE\x20','rawName','Unterminated\x20XML\x20declaration.','DDL','FOR','XML\x20declarations\x20must\x20precede\x20the\x20MyBatis\x20statement\x20wrapper.','Unterminated\x20MyBatis\x20XML\x20tag.','245248pNjKJK','__RABETBASE_MYBATIS_INCLUDE_UNRESOLVED__','LOCK\x20IN\x20SHARE\x20MODE','MyBatis\x20dynamic\x20tag\x20must\x20be\x20inside\x20the\x20statement\x20wrapper:\x20<','matchAll','"','sql','RECURSIVE','type','SELECT','property','length','753035vBKDVl','fromCodePoint','reason','foreach','70DvNmHA','Unsupported\x20MyBatis\x20XML\x20tag:\x20<','slice','otherwise','parseInt','DELETE','__RABETBASE_MYBATIS_DYNAMIC_START__','SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements','MyBatis\x20dynamic\x20tag\x20names\x20must\x20be\x20lowercase:\x20<','insert','&','SQL\x20text\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','DDL\x20statements\x20require\x20explicit\x20review','toLowerCase','Unterminated\x20XML\x20comment.','outer','trim','\x20SET\x20','mybatisXml','2oJBjrh','UPDATE','startsWith','__RABETBASE_UNRESOLVED_SQL_FRAGMENT__','UNKNOWN','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','2033691gWUqaN','INSERT','<![CDATA[','add','Multiple\x20MyBatis\x20statement\x20wrappers\x20are\x20not\x20supported.','\x20query\x20targeting\x20','\x20with\x20parameters:\x20','CDATA\x20sections\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','MyBatis\x20<property>\x20must\x20be\x20a\x20self-closing\x20direct\x20child\x20of\x20<include>.','Unable\x20to\x20detect\x20SQL\x20type.\x20','769467EykUFl','filter','keys','select','6oaMHKr','where','<!--',''','unknown\x20table(s)','push','toUpperCase','set','200772GLeMWr','include','MATERIALIZED','264936hEaPNX','__RABETBASE_MYBATIS_DYNAMIC_END__','some','Local\x20analysis\x20could\x20not\x20parse\x20the\x20WITH\x20prefix;\x20this\x20is\x20a\x20local\x20capability\x20limit,\x20not\x20a\x20platform\x20rejection.','30WeTdtu','join','from','when','delete','Unterminated\x20CDATA\x20section.','exec','tagName','Mismatched\x20MyBatis\x20XML\x20closing\x20tag:\x20</','has','SQL\x20content\x20is\x20empty','SET','replace',']]>','1284316HIgmmm','match','Invalid\x20attributes\x20on\x20MyBatis\x20XML\x20tag:\x20<','indexOf','test','choose','-->','includes','replaceAll','>','error'];a302_0x1b6e=function(){return _0x306203;};return a302_0x1b6e();}const UNRESOLVED_SQL_FRAGMENT=a302_0x20f671(0x15b),MYBATIS_OUTER_TAG_PATTERN=new RegExp('^<\x5cs*(?:'+[...MYBATIS_OUTER_TAGS[a302_0x20f671(0x16a)]()][a302_0x20f671(0x17c)]('|')+')\x5cb','i');export function normalizeSqlForStaticAnalysis(_0x37e163){const _0x2174ae=a302_0x20f671,_0x539ea0=typeof _0x37e163==='string'?_0x37e163:'';if(detectSqlSourceMode(_0x539ea0)==='sql')return{'sql':_0x539ea0,'mode':_0x2174ae(0x1a1)};let _0x3d168e=0x0,_0x5e3703='',_0x3c3691,_0x4ef8e5=![],_0x147aa1=![];const _0x3198d2=[];while(_0x3d168e<_0x539ea0[_0x2174ae(0x1a6)]){if(_0x539ea0[_0x2174ae(0x15a)](_0x2174ae(0x16e),_0x3d168e)){const _0x54a34c=_0x539ea0[_0x2174ae(0x18c)]('-->',_0x3d168e+0x4);if(_0x54a34c<0x0)return invalidMybatisSource(_0x2174ae(0x153));_0x5e3703+='\x20',_0x3d168e=_0x54a34c+0x3;continue;}if(_0x539ea0['startsWith'](_0x2174ae(0x160),_0x3d168e)){if(!_0x4ef8e5||_0x147aa1)return invalidMybatisSource(_0x2174ae(0x165));const _0x7a94d1=_0x539ea0['indexOf'](_0x2174ae(0x188),_0x3d168e+0x9);if(_0x7a94d1<0x0)return invalidMybatisSource(_0x2174ae(0x180));_0x5e3703+=_0x539ea0[_0x2174ae(0x1ad)](_0x3d168e+0x9,_0x7a94d1),_0x3d168e=_0x7a94d1+0x3;continue;}if(_0x539ea0['startsWith']('<?',_0x3d168e)){if(_0x4ef8e5)return invalidMybatisSource(_0x2174ae(0x199));const _0x1f0514=_0x539ea0[_0x2174ae(0x18c)]('?>',_0x3d168e+0x2);if(_0x1f0514<0x0)return invalidMybatisSource(_0x2174ae(0x196));_0x5e3703+='\x20',_0x3d168e=_0x1f0514+0x2;continue;}if(_0x539ea0[_0x3d168e]!=='<'){const _0x1a32e0=_0x539ea0['indexOf']('<',_0x3d168e),_0xc6831f=_0x1a32e0<0x0?_0x539ea0[_0x2174ae(0x1a6)]:_0x1a32e0,_0x1ca140=_0x539ea0[_0x2174ae(0x1ad)](_0x3d168e,_0xc6831f);if((!_0x4ef8e5||_0x147aa1)&&_0x1ca140[_0x2174ae(0x155)]())return invalidMybatisSource(_0x2174ae(0x150));if(_0x4ef8e5&&!_0x147aa1){const _0x48ac59=decodeXmlEntities(_0x1ca140);if(_0x48ac59===null)return invalidMybatisSource('Invalid\x20XML\x20entity\x20reference.');_0x5e3703+=_0x48ac59;}else _0x5e3703+='\x20';_0x3d168e=_0xc6831f;continue;}const _0xe5d098=findXmlTagEnd(_0x539ea0,_0x3d168e);if(_0xe5d098<0x0)return invalidMybatisSource(_0x2174ae(0x19a));const _0x558042=_0x539ea0['slice'](_0x3d168e,_0xe5d098+0x1),_0x280b57=/^<\s*(\/?)\s*([A-Za-z][\w:-]*)([\s\S]*?)(\/?)\s*>$/[_0x2174ae(0x181)](_0x558042);if(!_0x280b57)return invalidMybatisSource('Invalid\x20MyBatis\x20XML\x20tag.');const _0x437d59=_0x280b57[0x1]==='/',_0x246eab=_0x280b57[0x2]??'',_0x5ea682=_0x246eab[_0x2174ae(0x152)](),_0x201306=_0x280b57[0x3]??'',_0x466073=_0x280b57[0x4]==='/',_0x313e34=MYBATIS_OUTER_TAGS['get'](_0x5ea682);if(!_0x313e34&&!MYBATIS_DYNAMIC_TAGS[_0x2174ae(0x184)](_0x5ea682))return invalidMybatisSource(_0x2174ae(0x1ac)+_0x5ea682+'>.');if(!_0x313e34&&_0x246eab!==_0x5ea682)return invalidMybatisSource(_0x2174ae(0x14d)+_0x246eab+'>.');if(_0x437d59){if(_0x201306[_0x2174ae(0x155)]()||_0x466073)return invalidMybatisSource('Invalid\x20MyBatis\x20XML\x20closing\x20tag:\x20</'+_0x246eab+'>.');const _0x4c8c5b=_0x3198d2['at'](-0x1);if(!_0x4c8c5b||(_0x4c8c5b[_0x2174ae(0x154)]?_0x4c8c5b[_0x2174ae(0x182)]!==_0x5ea682:_0x4c8c5b[_0x2174ae(0x195)]!==_0x246eab))return invalidMybatisSource(_0x2174ae(0x183)+_0x246eab+'>.');_0x3198d2['pop']();if(_0x4c8c5b[_0x2174ae(0x154)])_0x147aa1=!![];_0x5e3703+=MYBATIS_BRANCH_TAGS[_0x2174ae(0x184)](_0x5ea682)?'\x20'+MYBATIS_DYNAMIC_END_MARKER+'\x20':'\x20';}else{if(!hasWellFormedXmlAttributes(_0x201306))return invalidMybatisSource(_0x2174ae(0x18b)+_0x246eab+'>.');if(_0x5ea682===_0x2174ae(0x1a5)&&(!_0x466073||_0x3198d2['at'](-0x1)?.['tagName']!==_0x2174ae(0x175)))return invalidMybatisSource(_0x2174ae(0x166));if(_0x313e34){if(_0x4ef8e5||_0x3198d2['length']>0x0)return invalidMybatisSource(_0x2174ae(0x162));_0x4ef8e5=!![],_0x147aa1=_0x466073,_0x3c3691=_0x313e34;}else{if(!_0x4ef8e5||_0x147aa1)return invalidMybatisSource(_0x2174ae(0x19e)+_0x246eab+'>.');}_0x5e3703+=_0x5ea682===_0x2174ae(0x16d)?_0x2174ae(0x194):_0x5ea682===_0x2174ae(0x173)?_0x2174ae(0x156):_0x5ea682===_0x2174ae(0x175)?'\x20'+MYBATIS_INCLUDE_MARKER+'\x20':MYBATIS_BRANCH_TAGS[_0x2174ae(0x184)](_0x5ea682)&&!_0x466073?'\x20'+MYBATIS_DYNAMIC_START_MARKER+'\x20':'\x20',!_0x466073&&_0x3198d2[_0x2174ae(0x171)]({'rawName':_0x246eab,'tagName':_0x5ea682,'outer':!!_0x313e34});}_0x3d168e=_0xe5d098+0x1;}if(_0x3198d2['length']>0x0)return invalidMybatisSource('Unclosed\x20MyBatis\x20XML\x20tag:\x20<'+_0x3198d2['at'](-0x1)?.[_0x2174ae(0x195)]+'>.');if(!_0x4ef8e5||!_0x147aa1)return invalidMybatisSource('MyBatis\x20XML\x20must\x20contain\x20exactly\x20one\x20complete\x20statement\x20wrapper.');return{'sql':_0x5e3703[_0x2174ae(0x155)](),'mode':_0x2174ae(0x157),..._0x3c3691?{'statementType':_0x3c3691}:{}};}function hasWellFormedXmlAttributes(_0xe5a33e){const _0x54b066=a302_0x20f671;let _0x34ae3f=0x0;const _0x38fa4e=new Set();while(_0x34ae3f<_0xe5a33e[_0x54b066(0x1a6)]){while(_0x34ae3f<_0xe5a33e[_0x54b066(0x1a6)]&&/\s/['test'](_0xe5a33e[_0x34ae3f]??''))_0x34ae3f+=0x1;if(_0x34ae3f>=_0xe5a33e[_0x54b066(0x1a6)])return!![];const _0xaf47f8=/^[A-Za-z_:][\w:.-]*/[_0x54b066(0x181)](_0xe5a33e[_0x54b066(0x1ad)](_0x34ae3f)),_0x13ed49=_0xaf47f8?.[0x0];if(!_0x13ed49||_0x38fa4e[_0x54b066(0x184)](_0x13ed49))return![];_0x38fa4e['add'](_0x13ed49),_0x34ae3f+=_0x13ed49['length'];while(_0x34ae3f<_0xe5a33e['length']&&/\s/[_0x54b066(0x18d)](_0xe5a33e[_0x34ae3f]??''))_0x34ae3f+=0x1;if(_0xe5a33e[_0x34ae3f]!=='=')return![];_0x34ae3f+=0x1;while(_0x34ae3f<_0xe5a33e['length']&&/\s/[_0x54b066(0x18d)](_0xe5a33e[_0x34ae3f]??''))_0x34ae3f+=0x1;const _0xde7b52=_0xe5a33e[_0x34ae3f];if(_0xde7b52!=='\x22'&&_0xde7b52!=='\x27')return![];_0x34ae3f+=0x1;const _0x17d6d1=_0xe5a33e[_0x54b066(0x18c)](_0xde7b52,_0x34ae3f);if(_0x17d6d1<0x0)return![];if(decodeXmlEntities(_0xe5a33e[_0x54b066(0x1ad)](_0x34ae3f,_0x17d6d1))===null)return![];_0x34ae3f=_0x17d6d1+0x1;}return!![];}export function detectSqlSourceMode(_0x3ea5ea){const _0x19c528=a302_0x20f671;let _0x432437=0x0;const _0x312649=()=>{const _0xc1ef41=a302_0x1d8e;while(_0x432437<_0x3ea5ea['length']&&/\s/[_0xc1ef41(0x18d)](_0x3ea5ea[_0x432437]??''))_0x432437+=0x1;};_0x312649();while(_0x432437<_0x3ea5ea[_0x19c528(0x1a6)]){if(_0x3ea5ea[_0x19c528(0x15a)]('<!--',_0x432437)){const _0x3f5cac=_0x3ea5ea['indexOf'](_0x19c528(0x18f),_0x432437+0x4);if(_0x3f5cac<0x0)return'mybatisXml';_0x432437=_0x3f5cac+0x3,_0x312649();continue;}if(_0x3ea5ea[_0x19c528(0x15a)]('<?',_0x432437)){const _0x429b58=_0x3ea5ea[_0x19c528(0x18c)]('?>',_0x432437+0x2);if(_0x429b58<0x0)return _0x19c528(0x157);_0x432437=_0x429b58+0x2,_0x312649();continue;}break;}return MYBATIS_OUTER_TAG_PATTERN[_0x19c528(0x18d)](_0x3ea5ea[_0x19c528(0x1ad)](_0x432437))?_0x19c528(0x157):_0x19c528(0x1a1);}function a302_0x1d8e(_0x2ca46b,_0x212623){_0x2ca46b=_0x2ca46b-0x14b;const _0x1b6e93=a302_0x1b6e();let _0x1d8eda=_0x1b6e93[_0x2ca46b];return _0x1d8eda;}function invalidMybatisSource(_0x3ecfbd){const _0x23174d=a302_0x20f671;return{'sql':'','mode':_0x23174d(0x157),'error':_0x3ecfbd};}function findXmlTagEnd(_0x26dffe,_0x15dbbb){const _0x3be29b=a302_0x20f671;let _0x25086a;for(let _0x35a419=_0x15dbbb+0x1;_0x35a419<_0x26dffe[_0x3be29b(0x1a6)];_0x35a419+=0x1){const _0xb6f73=_0x26dffe[_0x35a419];if(_0x25086a){if(_0xb6f73===_0x25086a)_0x25086a=undefined;continue;}if(_0xb6f73==='\x22'||_0xb6f73==='\x27'){_0x25086a=_0xb6f73;continue;}if(_0xb6f73==='>')return _0x35a419;}return-0x1;}function decodeXmlEntities(_0x4f6d18){const _0x2ad56f=a302_0x20f671;let _0x5ef3f6=![];const _0x2dba8c=_0x4f6d18[_0x2ad56f(0x187)](/&(?:#x[0-9a-f]+;|#[0-9]+;|[A-Za-z_:][\w:.-]*;)?/g,_0x224f86=>{const _0x2f0737=_0x2ad56f;if(_0x224f86==='<')return'<';if(_0x224f86===_0x2f0737(0x192))return'>';if(_0x224f86===_0x2f0737(0x1a0))return'\x22';if(_0x224f86===_0x2f0737(0x16f))return'\x27';if(_0x224f86===_0x2f0737(0x14f))return'&';const _0x5c866e=/^&#(?:x([0-9a-f]+)|([0-9]+));$/[_0x2f0737(0x181)](_0x224f86);if(_0x5c866e){const _0x5598d2=_0x5c866e[0x1],_0x265597=_0x5c866e[0x2],_0x547cf2=Number[_0x2f0737(0x1af)](_0x5598d2??_0x265597??'',_0x5598d2?0x10:0xa);if(isValidXmlCharacter(_0x547cf2))return String[_0x2f0737(0x1a8)](_0x547cf2);}return _0x5ef3f6=!![],'';});return _0x5ef3f6?null:_0x2dba8c;}function isValidXmlCharacter(_0xc68b17){return _0xc68b17===0x9||_0xc68b17===0xa||_0xc68b17===0xd||_0xc68b17>=0x20&&_0xc68b17<=0xd7ff||_0xc68b17>=0xe000&&_0xc68b17<=0xfffd||_0xc68b17>=0x10000&&_0xc68b17<=0x10ffff;}export function detectSqlType(_0x1b43cb){return detectNormalizedSqlType(normalizeSqlForStaticAnalysis(_0x1b43cb));}function detectNormalizedSqlType(_0x315082){const _0x40c1cb=a302_0x20f671;if(_0x315082[_0x40c1cb(0x193)])return{'type':_0x40c1cb(0x15c),'isSelectOnly':![],'isDangerous':![],'reason':_0x315082[_0x40c1cb(0x193)]};if(!_0x315082[_0x40c1cb(0x1a1)][_0x40c1cb(0x155)]())return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':_0x40c1cb(0x185)};const _0xe2e3ac=tokenizeSqlForTypeAnalysis(_0x315082[_0x40c1cb(0x1a1)]),_0x3edc6b=_0xe2e3ac[_0x40c1cb(0x169)](_0x187bc3=>_0x187bc3!==MYBATIS_DYNAMIC_START_MARKER&&_0x187bc3!==MYBATIS_DYNAMIC_END_MARKER),_0x49f1c4=findMainStatementIndex(_0x3edc6b);if(_0x49f1c4<0x0)return{'type':_0x40c1cb(0x15c),'isSelectOnly':![],'isDangerous':![],'reason':_0x40c1cb(0x17a)};const _0x3a009b=_0x3edc6b[_0x49f1c4]??'',_0x185710=_0x315082['statementType']??_0x3a009b,_0x4ccf9e=_0xe2e3ac[_0x40c1cb(0x179)](_0x2bd78b=>/^(DELETE|DROP|ALTER|CREATE|TRUNCATE)$/[_0x40c1cb(0x18d)](_0x2bd78b)),_0x3262a2=new Set();let _0x13b203=![];for(let _0x35aef6=0x0;_0x35aef6<_0xe2e3ac[_0x40c1cb(0x1a6)];_0x35aef6+=0x1){const _0x492810=_0xe2e3ac[_0x35aef6];(_0x492810===_0x40c1cb(0x159)||_0x492810==='SHARE')&&isLockingClauseKeyword(_0xe2e3ac,_0x35aef6)&&(_0x3262a2[_0x40c1cb(0x161)](_0x35aef6),_0x13b203=!![]);if(_0xe2e3ac['slice'](_0x35aef6,_0x35aef6+0x4)[_0x40c1cb(0x17c)]('\x20')===_0x40c1cb(0x19d))_0x13b203=!![];}if(_0x185710===_0x40c1cb(0x1a4)){const _0x14aa01=_0xe2e3ac[_0x40c1cb(0x179)]((_0x504733,_0x5819c6)=>/^(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)$/[_0x40c1cb(0x18d)](_0x504733)&&!_0x3262a2[_0x40c1cb(0x184)](_0x5819c6));return{'type':'SELECT','isSelectOnly':!_0x14aa01&&!_0x13b203,'isLockingRead':_0x13b203,'isDangerous':_0x14aa01,'reason':_0x14aa01?'SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT':undefined};}if(_0x185710==='INSERT')return{'type':'INSERT','isSelectOnly':![],'isDangerous':_0x4ccf9e,'reason':_0x4ccf9e?_0x40c1cb(0x14c):undefined};if(_0x185710==='UPDATE')return{'type':_0x40c1cb(0x159),'isSelectOnly':![],'isDangerous':_0x4ccf9e,'reason':_0x4ccf9e?_0x40c1cb(0x14c):undefined};if(_0x185710===_0x40c1cb(0x1b0))return{'type':_0x40c1cb(0x1b0),'isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20require\x20explicit\x20review'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x40c1cb(0x18d)](_0x3a009b))return{'type':_0x40c1cb(0x197),'isSelectOnly':![],'isDangerous':!![],'reason':_0x40c1cb(0x151)};return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![]};}function isLockingClauseKeyword(_0x1dd5d4,_0x497c64){const _0x43a0a3=a302_0x20f671,_0x17b628=_0x1dd5d4[_0x497c64]===_0x43a0a3(0x159)?[[_0x43a0a3(0x198)],[_0x43a0a3(0x198),'NO','KEY']]:[[_0x43a0a3(0x198)],['FOR','KEY']],_0x1ab320=_0x17b628[_0x43a0a3(0x179)](_0x1c37a1=>{const _0xc6be68=_0x43a0a3,_0x5e2c37=_0x497c64-_0x1c37a1[_0xc6be68(0x1a6)];return _0x5e2c37>=0x0&&_0x1dd5d4[_0xc6be68(0x1ad)](_0x5e2c37,_0x497c64)[_0xc6be68(0x17c)]('\x20')===_0x1c37a1['join']('\x20');});if(!_0x1ab320)return![];return!_0x1dd5d4[_0x43a0a3(0x1ad)](_0x497c64+0x1,_0x497c64+0x5)['includes'](_0x43a0a3(0x186));}function findMainStatementIndex(_0x11d38b){const _0x3a107c=a302_0x20f671;if(_0x11d38b[0x0]!=='WITH')return 0x0;let _0x17c1b7=_0x11d38b[0x1]===_0x3a107c(0x1a2)?0x2:0x1;while(_0x17c1b7<_0x11d38b['length']){const _0x4462c7=_0x11d38b[_0x17c1b7];if(!_0x4462c7||!(/^[A-Z_][\w$]*$/[_0x3a107c(0x18d)](_0x4462c7)||/^[`"]/[_0x3a107c(0x18d)](_0x4462c7)))return-0x1;_0x17c1b7+=0x1;if(_0x11d38b[_0x17c1b7]==='('){_0x17c1b7=skipSqlParentheses(_0x11d38b,_0x17c1b7);if(_0x17c1b7<0x0)return-0x1;}if(_0x11d38b[_0x17c1b7]!=='AS')return-0x1;_0x17c1b7+=0x1;if(_0x11d38b[_0x17c1b7]==='NOT'&&_0x11d38b[_0x17c1b7+0x1]==='MATERIALIZED')_0x17c1b7+=0x2;else{if(_0x11d38b[_0x17c1b7]===_0x3a107c(0x176))_0x17c1b7+=0x1;}_0x17c1b7=skipSqlParentheses(_0x11d38b,_0x17c1b7);if(_0x17c1b7<0x0)return-0x1;if(_0x11d38b[_0x17c1b7]!==','){const _0x299df3=_0x11d38b[_0x17c1b7]==='('?_0x17c1b7+0x1:_0x17c1b7;return/^(SELECT|INSERT|UPDATE|DELETE)$/[_0x3a107c(0x18d)](_0x11d38b[_0x299df3]??'')?_0x299df3:-0x1;}_0x17c1b7+=0x1;}return-0x1;}function skipSqlParentheses(_0x772025,_0x4effc4){const _0xa1e18a=a302_0x20f671;if(_0x772025[_0x4effc4]!=='(')return-0x1;let _0x32bade=0x0;for(let _0xb4dbcf=_0x4effc4;_0xb4dbcf<_0x772025[_0xa1e18a(0x1a6)];_0xb4dbcf+=0x1){const _0xee60f=_0x772025[_0xb4dbcf];if(_0xee60f===';')return-0x1;if(_0xee60f==='(')_0x32bade+=0x1;if(_0xee60f===')'&&--_0x32bade===0x0)return _0xb4dbcf+0x1;}return-0x1;}function stripStaticAnalysisMarkers(_0x28f7db){const _0x13f02e=a302_0x20f671;return _0x28f7db[_0x13f02e(0x191)](MYBATIS_DYNAMIC_START_MARKER,'\x20')[_0x13f02e(0x191)](MYBATIS_DYNAMIC_END_MARKER,'\x20')[_0x13f02e(0x191)](MYBATIS_INCLUDE_MARKER,'\x20'+UNRESOLVED_SQL_FRAGMENT+'\x20');}function tokenizeSqlForTypeAnalysis(_0x159ad3){const _0x5529bd=a302_0x20f671,_0x1582bd=[],_0x49e5cc=/\/\*[\s\S]*?\*\/|--[^\r\n]*|[#$]\{[^}]*\}|#[^\r\n]*|'(?:''|\\[\s\S]|[^'\\])*'|"(?:""|\\[\s\S]|[^"\\])*"|`(?:``|\\[\s\S]|[^`\\])*`|@[A-Za-z_]\w*|[A-Za-z_]\w*|\S/g;for(const _0x582fc7 of _0x159ad3[_0x5529bd(0x19f)](_0x49e5cc)){const _0x3c2474=_0x582fc7[0x0];if(_0x3c2474[_0x5529bd(0x15a)]('/*')||_0x3c2474[_0x5529bd(0x15a)]('--')||_0x3c2474[_0x5529bd(0x15a)]('#')&&!_0x3c2474[_0x5529bd(0x15a)]('#{'))continue;_0x1582bd['push'](/^["`]/['test'](_0x3c2474)?_0x3c2474:/^[\x27@#$]/['test'](_0x3c2474)?'?':_0x3c2474[_0x5529bd(0x172)]());}return _0x1582bd;}function extractTables(_0x3c1b54,_0x4afe49){const _0x2e5521=a302_0x20f671,_0x3d1920=_0x3c1b54[_0x2e5521(0x187)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x2e5521(0x187)](/'[^']*'/g,'\x27\x27')[_0x2e5521(0x187)](/--.*$/gm,'')[_0x2e5521(0x187)](/\/\*[\s\S]*?\*\//g,''),_0x5ef396=[],_0x318d3e=_0x3d1920[_0x2e5521(0x18a)](/FROM\s+([^\s,)(]+)/i);addTable(_0x5ef396,_0x318d3e?.[0x1]);for(const _0x5eb0ee of _0x3d1920[_0x2e5521(0x19f)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){addTable(_0x5ef396,_0x5eb0ee[0x1]);}const _0x45074e=_0x3d1920['match'](/INTO\s+([^\s(]+)/i);addTable(_0x5ef396,_0x45074e?.[0x1]);if(_0x4afe49===_0x2e5521(0x159)){const _0x55ab6d=_0x3d1920[_0x2e5521(0x18a)](/UPDATE\s+([^\s,)(]+)/i);addTable(_0x5ef396,_0x55ab6d?.[0x1]);}return _0x5ef396;}function addTable(_0x50f1ab,_0x2dad65){const _0x303a6d=a302_0x20f671,_0x26836e=_0x2dad65?.[_0x303a6d(0x187)](/[`"]/g,'');_0x26836e&&_0x26836e!==UNRESOLVED_SQL_FRAGMENT&&!_0x50f1ab[_0x303a6d(0x190)](_0x26836e)&&_0x50f1ab[_0x303a6d(0x171)](_0x26836e);}function extractParameters(_0x5cb13f){const _0x32964b=a302_0x20f671,_0x1282a1=new Set();for(const _0x457d2d of _0x5cb13f[_0x32964b(0x19f)](/[#$]\{\s*([A-Za-z_][\w.]*)\s*(?=[,}])/g)){if(_0x457d2d[0x1])_0x1282a1[_0x32964b(0x161)](_0x457d2d[0x1]);}return Array[_0x32964b(0x17d)](_0x1282a1);}export function validateSql(_0x427613){const _0x2aa580=a302_0x20f671,_0x1eb20b=normalizeSqlForStaticAnalysis(_0x427613),_0x683d46=detectNormalizedSqlType(_0x1eb20b),_0x4f01f8=stripStaticAnalysisMarkers(_0x1eb20b[_0x2aa580(0x1a1)]),_0x406509=_0x1eb20b[_0x2aa580(0x193)]?[]:extractTables(_0x4f01f8,_0x683d46[_0x2aa580(0x1a3)]),_0x2fc020=_0x1eb20b[_0x2aa580(0x193)]?[]:extractParameters(_0x4f01f8);if(_0x683d46['isDangerous'])return{'valid':![],'sqlType':_0x683d46,'tables':_0x406509,'parameters':_0x2fc020,'message':_0x683d46['reason']||_0x683d46[_0x2aa580(0x1a3)]+'\x20statements\x20require\x20explicit\x20review.\x20Local\x20analysis\x20does\x20not\x20authorize\x20saving\x20or\x20execution.'};if(_0x683d46['type']===_0x2aa580(0x15c))return{'valid':![],'sqlType':_0x683d46,'tables':_0x406509,'parameters':_0x2fc020,'message':_0x1eb20b[_0x2aa580(0x193)]?_0x2aa580(0x167)+_0x1eb20b[_0x2aa580(0x193)]:_0x683d46['reason']?_0x2aa580(0x167)+_0x683d46[_0x2aa580(0x1a9)]:_0x2aa580(0x15d)};return{'valid':!![],'sqlType':_0x683d46,'tables':_0x406509,'parameters':_0x2fc020,'message':_0x683d46[_0x2aa580(0x1a3)]+_0x2aa580(0x163)+(_0x406509[_0x2aa580(0x1a6)]?_0x406509[_0x2aa580(0x17c)](',\x20'):_0x2aa580(0x170))+(_0x2fc020['length']?_0x2aa580(0x164)+_0x2fc020[_0x2aa580(0x17c)](',\x20'):'')};}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a303_0x2d45(){const _0x547293=['\x20--help`\x20to\x20see\x20available\x20commands.','Set\x20appcode\x20via\x20`','Unknown\x20command:\x20','Run\x20`','config_missing','Network\x20error:\x20','3631260HSuanT','network_error','Missing\x20required\x20flag:\x20--','\x20project\x20directory','validation','auth_required','Not\x20in\x20a\x20','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','\x20workspace\x20add\x20<name>\x20--appcode\x20<code>\x20--global`\x20registers\x20a\x20reusable\x20global\x20app\x20profile.','Configuration\x20file\x20not\x20found','251016mUUEOJ','7048DpiACu','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.\x0a\x20\x20\x20\x20\x20\x20\x20Tip:\x20`','Check\x20your\x20internet\x20connection\x20and\x20try\x20again.','5330024AZVDEX','4454712WQzziN','238SYdPjS','8649nEOCJD','1491742iUoaJA','241790cWkGBn','unknown_command','cancelled'];a303_0x2d45=function(){return _0x547293;};return a303_0x2d45();}const a303_0xc572e4=a303_0x1481;(function(_0x2e1009,_0x1f1739){const _0xcefa4b=a303_0x1481,_0x200d0f=_0x2e1009();while(!![]){try{const _0xb1d9c1=parseInt(_0xcefa4b(0x142))/0x1+parseInt(_0xcefa4b(0x141))/0x2+parseInt(_0xcefa4b(0x13e))/0x3+parseInt(_0xcefa4b(0x13d))/0x4+-parseInt(_0xcefa4b(0x12f))/0x5+parseInt(_0xcefa4b(0x139))/0x6*(-parseInt(_0xcefa4b(0x13f))/0x7)+-parseInt(_0xcefa4b(0x13a))/0x8*(parseInt(_0xcefa4b(0x140))/0x9);if(_0xb1d9c1===_0x1f1739)break;else _0x200d0f['push'](_0x200d0f['shift']());}catch(_0x4c9298){_0x200d0f['push'](_0x200d0f['shift']());}}}(a303_0x2d45,0xc5b1a));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a303_0x1481(_0x58019c,_0x304c15){_0x58019c=_0x58019c-0x12a;const _0x2d45b2=a303_0x2d45();let _0x14814a=_0x2d45b2[_0x58019c];return _0x14814a;}export{CliError};const baseCliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a303_0xc572e4(0x12c)+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':a303_0xc572e4(0x12a)+CLI_BIN_NAME+a303_0xc572e4(0x13b)+CLI_BIN_NAME+a303_0xc572e4(0x137),'notInProjectHint':a303_0xc572e4(0x136)});export const CliErrors={'authRequired'(_0x488f8b){const _0x1761a4=a303_0xc572e4;return new CliError(_0x1761a4(0x134),0x1,'Authentication\x20required',_0x488f8b??_0x1761a4(0x12c)+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.');},'configMissing'(_0x2abde2){const _0x24ad8f=a303_0xc572e4;return new CliError(_0x24ad8f(0x12d),0x1,_0x24ad8f(0x138),_0x2abde2??_0x24ad8f(0x12a)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.\x0a\x20\x20\x20\x20\x20\x20\x20Tip:\x20`'+CLI_BIN_NAME+'\x20workspace\x20add\x20<name>\x20--appcode\x20<code>\x20--global`\x20registers\x20a\x20reusable\x20global\x20app\x20profile.');},'notInProject'(){const _0x3712b4=a303_0xc572e4;return new CliError('not_in_project',0x1,_0x3712b4(0x135)+CLI_BIN_NAME+_0x3712b4(0x132),_0x3712b4(0x136));},'apiError'(_0x6045b,_0x3045db){return baseCliErrors['apiError'](_0x6045b,_0x3045db);},'networkError'(_0x1929e2){const _0x2788f1=a303_0xc572e4;return new CliError(_0x2788f1(0x130),0x2,_0x2788f1(0x12e)+_0x1929e2,_0x2788f1(0x13c));},'unknownCommand'(_0x27ba0b){const _0x5d3023=a303_0xc572e4;return new CliError(_0x5d3023(0x143),0x1,_0x5d3023(0x12b)+_0x27ba0b,_0x5d3023(0x12c)+CLI_BIN_NAME+_0x5d3023(0x145));},'flagMissing'(_0x5a52cc,_0x3f4aa9){const _0x3238df=a303_0xc572e4;return new CliError('flag_missing',0x1,_0x3238df(0x131)+_0x5a52cc,_0x3f4aa9);},'validation'(_0x1d2fa1,_0x3e84a9){const _0x354597=a303_0xc572e4;return baseCliErrors[_0x354597(0x133)](_0x1d2fa1,_0x3e84a9);},'cancelled'(_0x5e003b){const _0x18ef2f=a303_0xc572e4;return new CliError(_0x18ef2f(0x144),0x0,_0x5e003b??'Operation\x20cancelled.');}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5ec22a,_0x310f62){const _0x56df25=a304_0x152b,_0x3f6bd7=_0x5ec22a();while(!![]){try{const _0x29c97a=-parseInt(_0x56df25(0x1d0))/0x1+-parseInt(_0x56df25(0x1ce))/0x2*(parseInt(_0x56df25(0x1db))/0x3)+-parseInt(_0x56df25(0x1d7))/0x4+parseInt(_0x56df25(0x1cf))/0x5+-parseInt(_0x56df25(0x1d3))/0x6*(-parseInt(_0x56df25(0x1da))/0x7)+-parseInt(_0x56df25(0x1d4))/0x8*(parseInt(_0x56df25(0x1d1))/0x9)+-parseInt(_0x56df25(0x1d5))/0xa*(-parseInt(_0x56df25(0x1d8))/0xb);if(_0x29c97a===_0x310f62)break;else _0x3f6bd7['push'](_0x3f6bd7['shift']());}catch(_0x181f5c){_0x3f6bd7['push'](_0x3f6bd7['shift']());}}}(a304_0x2d87,0xacdc6));function a304_0x152b(_0x15f064,_0x1025c7){_0x15f064=_0x15f064-0x1ce;const _0x2d8725=a304_0x2d87();let _0x152b65=_0x2d8725[_0x15f064];return _0x152b65;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a304_0x2d87(){const _0x457c61=['10gTUVli','yes','4871020QRkdWK','35818574uWHEUD','map','252FUcDQn','2736165dyCTZn','2VMFNsQ','3802435QOGWpz','1347637rWvqHg','43272BBXZvD','name','116274oBhHym','880YNWIqE'];a304_0x2d87=function(){return _0x457c61;};return a304_0x2d87();}import{buildAllFlags as a304_0xb2468e}from'@lovrabet/cli-framework';import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';export function buildAllFlags(_0x28cb73){const _0x550431=a304_0x152b,_0x2359b6=a304_0xb2468e(_0x28cb73,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0x28cb73))return _0x2359b6;return _0x2359b6[_0x550431(0x1d9)](_0x12843c=>_0x12843c[_0x550431(0x1d2)]===_0x550431(0x1d6)?{..._0x12843c,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x12843c);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a305_0x518f(_0x1c61c0,_0x41dac8){_0x1c61c0=_0x1c61c0-0x162;var _0x5c907c=a305_0x5c90();var _0x518f57=_0x5c907c[_0x1c61c0];return _0x518f57;}(function(_0x25c463,_0x2a1312){var _0x3640e8=a305_0x518f,_0x404f3a=_0x25c463();while(!![]){try{var _0x1d0009=-parseInt(_0x3640e8(0x164))/0x1*(parseInt(_0x3640e8(0x16a))/0x2)+parseInt(_0x3640e8(0x16e))/0x3*(parseInt(_0x3640e8(0x16d))/0x4)+parseInt(_0x3640e8(0x163))/0x5*(parseInt(_0x3640e8(0x172))/0x6)+-parseInt(_0x3640e8(0x171))/0x7+-parseInt(_0x3640e8(0x173))/0x8+parseInt(_0x3640e8(0x165))/0x9*(-parseInt(_0x3640e8(0x16c))/0xa)+-parseInt(_0x3640e8(0x169))/0xb*(-parseInt(_0x3640e8(0x168))/0xc);if(_0x1d0009===_0x2a1312)break;else _0x404f3a['push'](_0x404f3a['shift']());}catch(_0x268eaa){_0x404f3a['push'](_0x404f3a['shift']());}}}(a305_0x5c90,0x8e51a));import{resolveOutputConfig}from'@lovrabet/cli-framework';function a305_0x5c90(){var _0x28bd2f=['4869279gVguSV','format','defaultFormat','1380tliduz','143330wcQxZn','248ibjexf','structuredErrors','10XekMQN','4gOpMRl','2620563oeyWoA','def','flags','4716138McOWsl','6rNbrKo','6512200ACfFaD','compress','1895665Deddyw','1124uHnAqU'];a305_0x5c90=function(){return _0x28bd2f;};return a305_0x5c90();}export function usesStructuredErrorOutput(_0x22d6ac){var _0x42bfec=a305_0x518f;return _0x22d6ac?.[_0x42bfec(0x16b)]===!![];}export function resolveErrorOutputFormat(_0x501f75){var _0x13d3e2=a305_0x518f;if(!_0x501f75[_0x13d3e2(0x16f)])return _0x501f75[_0x13d3e2(0x167)]??_0x13d3e2(0x162);return resolveOutputConfig({'flags':_0x501f75[_0x13d3e2(0x170)]??{},'def':_0x501f75[_0x13d3e2(0x16f)],'configDefault':_0x501f75['defaultFormat']})[_0x13d3e2(0x166)];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a306_0x2b072d=a306_0x4315;(function(_0x3f2c69,_0x4e70cb){const _0x5b24fe=a306_0x4315,_0x5428e4=_0x3f2c69();while(!![]){try{const _0x53d569=-parseInt(_0x5b24fe(0x19e))/0x1+parseInt(_0x5b24fe(0x199))/0x2*(parseInt(_0x5b24fe(0x1a0))/0x3)+-parseInt(_0x5b24fe(0x19f))/0x4*(-parseInt(_0x5b24fe(0x19d))/0x5)+-parseInt(_0x5b24fe(0x1a3))/0x6+parseInt(_0x5b24fe(0x194))/0x7+parseInt(_0x5b24fe(0x19b))/0x8*(parseInt(_0x5b24fe(0x195))/0x9)+-parseInt(_0x5b24fe(0x19a))/0xa*(parseInt(_0x5b24fe(0x196))/0xb);if(_0x53d569===_0x4e70cb)break;else _0x5428e4['push'](_0x5428e4['shift']());}catch(_0x1b0c81){_0x5428e4['push'](_0x5428e4['shift']());}}}(a306_0x2b0e,0x23219));function a306_0x4315(_0x4cca02,_0x3ea469){_0x4cca02=_0x4cca02-0x194;const _0x2b0e23=a306_0x2b0e();let _0x4315d5=_0x2b0e23[_0x4cca02];return _0x4315d5;}function a306_0x2b0e(){const _0x56378a=['239071qOyEyq','459cAZljz','11HrjRXJ','command','notification\x20config-update','135706OvwIRj','587330sLZHHZ','16504cdWsER','notification\x20config-delete','190julPih','202192tqYwQK','21416sdLatt','9dVrAIs','has','Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan','849330LtFqWc'];a306_0x2b0e=function(){return _0x56378a;};return a306_0x2b0e();}const EXPLICIT_YES_COMMANDS=new Set(['menu\x20delete','kb\x20delete',a306_0x2b072d(0x198),a306_0x2b072d(0x19c)]);export const EXPLICIT_YES_FLAG_DESCRIPTION=a306_0x2b072d(0x1a2);export function requiresExplicitYes(_0x5c8a66){const _0x57f1f8=a306_0x2b072d;return EXPLICIT_YES_COMMANDS[_0x57f1f8(0x1a1)](_0x5c8a66['service']+'\x20'+_0x5c8a66[_0x57f1f8(0x197)]);}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a307_0x5f13(_0x48522d,_0x1e6f02){_0x48522d=_0x48522d-0x1c2;const _0x5ced9f=a307_0x5ced();let _0x5f1356=_0x5ced9f[_0x48522d];return _0x5f1356;}function a307_0x5ced(){const _0x2d5212=['1163IyECpT','1960vJtVRB','205299HWwCyT','478atiFQf','40GPhPhP','55VZuELS','parseFlags','1347594pZctTU','90cRWqLD','1612420MGBSaR','996688lfzbQa','validateFlags','115160uZtsJx'];a307_0x5ced=function(){return _0x2d5212;};return a307_0x5ced();}const a307_0x5dac0e=a307_0x5f13;(function(_0xae0e1a,_0x4722cd){const _0x381b04=a307_0x5f13,_0x3e4f3a=_0xae0e1a();while(!![]){try{const _0x88c1df=-parseInt(_0x381b04(0x1c2))/0x1*(parseInt(_0x381b04(0x1c5))/0x2)+parseInt(_0x381b04(0x1c9))/0x3+-parseInt(_0x381b04(0x1cc))/0x4+-parseInt(_0x381b04(0x1ce))/0x5*(parseInt(_0x381b04(0x1ca))/0x6)+-parseInt(_0x381b04(0x1c3))/0x7*(-parseInt(_0x381b04(0x1c6))/0x8)+-parseInt(_0x381b04(0x1c4))/0x9+parseInt(_0x381b04(0x1cb))/0xa*(parseInt(_0x381b04(0x1c7))/0xb);if(_0x88c1df===_0x4722cd)break;else _0x3e4f3a['push'](_0x3e4f3a['shift']());}catch(_0x269c2e){_0x3e4f3a['push'](_0x3e4f3a['shift']());}}}(a307_0x5ced,0x583ac));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a307_0x5dac0e(0x1c8)];export const validateFlags=helpers[a307_0x5dac0e(0x1cd)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a308_0x1239(_0x2c3b52,_0x4c1b88){_0x2c3b52=_0x2c3b52-0x1e3;const _0x3a3e9b=a308_0x3a3e();let _0x123935=_0x3a3e9b[_0x2c3b52];return _0x123935;}(function(_0x5ba551,_0x557fee){const _0x4a46ad=a308_0x1239,_0x23fb25=_0x5ba551();while(!![]){try{const _0x1a4145=-parseInt(_0x4a46ad(0x1f0))/0x1+-parseInt(_0x4a46ad(0x1e9))/0x2+-parseInt(_0x4a46ad(0x1ec))/0x3*(-parseInt(_0x4a46ad(0x1e8))/0x4)+-parseInt(_0x4a46ad(0x1f1))/0x5+-parseInt(_0x4a46ad(0x1eb))/0x6+parseInt(_0x4a46ad(0x1e6))/0x7+parseInt(_0x4a46ad(0x1e5))/0x8;if(_0x1a4145===_0x557fee)break;else _0x23fb25['push'](_0x23fb25['shift']());}catch(_0x22db5a){_0x23fb25['push'](_0x23fb25['shift']());}}}(a308_0x3a3e,0xabb96));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a308_0x3a3e(){const _0x150b29=['260AIVZfn','584746JNtNTd','\x20[args]\x20[flags]','7936980jxApQj','55398hxIEqA','Requires\x20appcode\x20(set\x20via\x20`','generateServiceHelp','Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','194304nAZxut','1684150HfqiBe','\x20workspace\x20init`\x20or\x20--appcode).','Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.','6894928OIAFEE','5512941rjRQDJ','get'];a308_0x3a3e=function(){return _0x150b29;};return a308_0x3a3e();}import{requiresExplicitYes}from'../framework/explicit-yes.js';function createGenerators(){const _0x20697f=a308_0x1239;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x182177=>serviceGroups[_0x20697f(0x1e7)](_0x182177),'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x20697f(0x1ed)+CLI_BIN_NAME+_0x20697f(0x1e3),'serviceUsageSuffix':_0x20697f(0x1ea)});}export function generateCommandHelp(_0xa2dde8){const _0x415bed=a308_0x1239,_0x481b16=createGenerators()['generateCommandHelp'](_0xa2dde8);if(!requiresExplicitYes(_0xa2dde8))return _0x481b16;return _0x481b16['replace'](_0x415bed(0x1ef),_0x415bed(0x1e4));}export function generateServiceHelp(_0x355960){const _0x4ba31e=a308_0x1239;return createGenerators()[_0x4ba31e(0x1ee)](_0x355960);}export function generateFullHelp(){return createGenerators()['generateFullHelp']();}
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x34479e,_0x2d36fb){var _0x51b6bf=a309_0x58e7,_0x5a29fa=_0x34479e();while(!![]){try{var _0x458b13=parseInt(_0x51b6bf(0x1b2))/0x1+-parseInt(_0x51b6bf(0x1b0))/0x2*(-parseInt(_0x51b6bf(0x1af))/0x3)+parseInt(_0x51b6bf(0x1aa))/0x4*(-parseInt(_0x51b6bf(0x1a7))/0x5)+-parseInt(_0x51b6bf(0x1ae))/0x6*(parseInt(_0x51b6bf(0x1ad))/0x7)+parseInt(_0x51b6bf(0x1a9))/0x8+parseInt(_0x51b6bf(0x1ab))/0x9*(parseInt(_0x51b6bf(0x1ac))/0xa)+parseInt(_0x51b6bf(0x1a8))/0xb*(-parseInt(_0x51b6bf(0x1b1))/0xc);if(_0x458b13===_0x2d36fb)break;else _0x5a29fa['push'](_0x5a29fa['shift']());}catch(_0x29bd5c){_0x5a29fa['push'](_0x5a29fa['shift']());}}}(a309_0x33b8,0x66940));function a309_0x33b8(){var _0x55d23d=['64010OHXmOm','7RiMOSG','4062678RPOzbL','3jdMqqL','1079290ddFqoP','98496YhvgyB','482073VzcQIE','60565fKFbYe','946foPjvO','5655184OkzhgC','24ySuPjb','207PHSHay'];a309_0x33b8=function(){return _0x55d23d;};return a309_0x33b8();}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a309_0x58e7(_0x44c64e,_0x3e6f83){_0x44c64e=_0x44c64e-0x1a7;var _0x33b876=a309_0x33b8();var _0x58e75b=_0x33b876[_0x44c64e];return _0x58e75b;}export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x27b85f,_0x10a08d){const _0x4a0e5c=a310_0x356d,_0x412a52=_0x27b85f();while(!![]){try{const _0x337113=-parseInt(_0x4a0e5c(0x107))/0x1*(-parseInt(_0x4a0e5c(0x110))/0x2)+parseInt(_0x4a0e5c(0x121))/0x3+-parseInt(_0x4a0e5c(0x117))/0x4*(parseInt(_0x4a0e5c(0x11a))/0x5)+-parseInt(_0x4a0e5c(0x119))/0x6*(parseInt(_0x4a0e5c(0x10b))/0x7)+parseInt(_0x4a0e5c(0x116))/0x8*(parseInt(_0x4a0e5c(0x115))/0x9)+-parseInt(_0x4a0e5c(0x114))/0xa+-parseInt(_0x4a0e5c(0x109))/0xb*(parseInt(_0x4a0e5c(0x122))/0xc);if(_0x337113===_0x10a08d)break;else _0x412a52['push'](_0x412a52['shift']());}catch(_0x1d59ec){_0x412a52['push'](_0x412a52['shift']());}}}(a310_0xf2e5,0x913a8));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';function a310_0x356d(_0x248827,_0x17adcf){_0x248827=_0x248827-0x106;const _0xf2e5e6=a310_0xf2e5();let _0x356d5d=_0xf2e5e6[_0x248827];return _0x356d5d;}import{applyJqFilter}from'../utils/apply-jq-filter.js';function a310_0xf2e5(){const _0x31de4e=['3102738IJbfkL','100068ZOYpHj','endsWith','16622szfOeH','command','319NyiWJG','hint','140mGHKsS','jqFilter','format','risk','trim','26JxggzT','pretty','update','json','6399180LmYTlY','6250887RRpJYO','8QSAydp','500gYXThf','message','4656MHbeNt','18110fBbhQJ','_notice','code','jq:\x20','validation','stringify','stdout'];a310_0xf2e5=function(){return _0x31de4e;};return a310_0xf2e5();}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x783534,_0x57a55c){const _0x5c1c4c=a310_0x356d,_0x10a306=_0x783534[_0x5c1c4c(0x11b)],{_notice:_0x119f6a,..._0x59151f}=_0x783534;void _0x119f6a,baseFormatOutput(_0x59151f,_0x57a55c),_0x57a55c['format']===_0x5c1c4c(0x111)&&printPrettyNotice(_0x10a306);}export function formatCliError(_0x1b79ad,_0x522586){const _0x3d118b=a310_0x356d;if(_0x522586[_0x3d118b(0x10d)]===_0x3d118b(0x111))return![];const _0x7f0e68=_0x1b79ad['data'],_0x9566a9={'ok':![],'command':_0x522586[_0x3d118b(0x108)],'risk':_0x522586[_0x3d118b(0x10e)],'data':_0x7f0e68??null,'error':{'code':_0x1b79ad[_0x3d118b(0x11c)],'message':_0x1b79ad[_0x3d118b(0x118)],..._0x1b79ad[_0x3d118b(0x10a)]?{'hint':_0x1b79ad[_0x3d118b(0x10a)]}:{}}},_0x1c3e06=_0x522586[_0x3d118b(0x10d)]===_0x3d118b(0x113)?JSON[_0x3d118b(0x11f)](_0x9566a9,null,0x2):JSON['stringify'](_0x9566a9);let _0x34b988=_0x1c3e06;if(_0x522586[_0x3d118b(0x10c)]?.[_0x3d118b(0x10f)]())try{_0x34b988=applyJqFilter(_0x1c3e06,_0x522586['jqFilter']);}catch(_0x2fc393){const _0x57c297=_0x2fc393 instanceof CliError?_0x2fc393:CliErrors[_0x3d118b(0x11e)](_0x3d118b(0x11d)+(_0x2fc393 instanceof Error?_0x2fc393[_0x3d118b(0x118)]:String(_0x2fc393))),_0x13b3a8={..._0x9566a9,'error':{'code':_0x57c297[_0x3d118b(0x11c)],'message':_0x57c297[_0x3d118b(0x118)],..._0x57c297[_0x3d118b(0x10a)]?{'hint':_0x57c297[_0x3d118b(0x10a)]}:{},'cause':_0x9566a9['error']}};_0x34b988=_0x522586[_0x3d118b(0x10d)]===_0x3d118b(0x113)?JSON['stringify'](_0x13b3a8,null,0x2):JSON[_0x3d118b(0x11f)](_0x13b3a8);}return process[_0x3d118b(0x120)]['write'](_0x34b988[_0x3d118b(0x106)]('\x0a')?_0x34b988:_0x34b988+'\x0a'),!![];}function printPrettyNotice(_0x2f592f){const _0x3fd211=a310_0x356d;if(!_0x2f592f?.[_0x3fd211(0x112)])return;console['error'](_0x2f592f[_0x3fd211(0x112)][_0x3fd211(0x118)]+'\x20('+_0x2f592f[_0x3fd211(0x112)]['url']+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a311_0x5dbb(_0x4bc1a7,_0x5d4c64){_0x4bc1a7=_0x4bc1a7-0x7f;var _0x353bc5=a311_0x353b();var _0x5dbb58=_0x353bc5[_0x4bc1a7];return _0x5dbb58;}function a311_0x353b(){var _0x58d051=['993545TZRrRg','8315307oXvvxQ','526XmPoVN','1514JvDTPu','12xpwTPZ','54651aXuulX','238401dHcBqb','536102NrKBJl','6ULXuBh','1162856TqmDkb','140aySkpp'];a311_0x353b=function(){return _0x58d051;};return a311_0x353b();}(function(_0x231310,_0xf98982){var _0x492fc2=a311_0x5dbb,_0x1cacaf=_0x231310();while(!![]){try{var _0x31edea=-parseInt(_0x492fc2(0x80))/0x1*(parseInt(_0x492fc2(0x81))/0x2)+parseInt(_0x492fc2(0x83))/0x3*(-parseInt(_0x492fc2(0x82))/0x4)+parseInt(_0x492fc2(0x89))/0x5*(parseInt(_0x492fc2(0x86))/0x6)+-parseInt(_0x492fc2(0x85))/0x7+parseInt(_0x492fc2(0x87))/0x8+parseInt(_0x492fc2(0x84))/0x9*(-parseInt(_0x492fc2(0x88))/0xa)+parseInt(_0x492fc2(0x7f))/0xb;if(_0x31edea===_0xf98982)break;else _0x1cacaf['push'](_0x1cacaf['shift']());}catch(_0x134cb4){_0x1cacaf['push'](_0x1cacaf['shift']());}}}(a311_0x353b,0x30c3a));export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2d9fe6,_0x5c003f){const _0x11bf42=a312_0x192e,_0x3c699f=_0x2d9fe6();while(!![]){try{const _0x202b95=parseInt(_0x11bf42(0x190))/0x1+parseInt(_0x11bf42(0x19b))/0x2*(parseInt(_0x11bf42(0x196))/0x3)+-parseInt(_0x11bf42(0x1a2))/0x4+parseInt(_0x11bf42(0x199))/0x5*(-parseInt(_0x11bf42(0x1a4))/0x6)+-parseInt(_0x11bf42(0x19d))/0x7+-parseInt(_0x11bf42(0x195))/0x8*(-parseInt(_0x11bf42(0x192))/0x9)+parseInt(_0x11bf42(0x1a3))/0xa*(parseInt(_0x11bf42(0x194))/0xb);if(_0x202b95===_0x5c003f)break;else _0x3c699f['push'](_0x3c699f['shift']());}catch(_0x18c9b8){_0x3c699f['push'](_0x3c699f['shift']());}}}(a312_0x4718,0x1c6c2));function a312_0x4718(){const _0x584284=['filePath','string','some','Unknown\x20alias\x20\x22','65864jJCmVm','name','20763chnByl','join','55PKJHma','16baHJoA','3hnZTkG','\x20api\x20pull`\x20first.','validation','20AjqfJk','Available\x20aliases:\x20','152498sJWbTy','length','503713cjOgfS','flags','.\x20Run\x20`','map','No\x20model\x20aliases\x20found\x20in\x20','850104XmeBpz','733240ZrVoCa','168666Ouzplb','type','`\x20requires\x20either\x20--code\x20or\x20--alias.','profileName','\x22.\x20','code','alias'];a312_0x4718=function(){return _0x584284;};return a312_0x4718();}function a312_0x192e(_0x5c1237,_0x2463c6){_0x5c1237=_0x5c1237-0x188;const _0x471833=a312_0x4718();let _0x192e6e=_0x471833[_0x5c1237];return _0x192e6e;}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{resolveApiModelSource}from'../api/model-source.js';export function resolveAliasToCode(_0x36165e,_0x4c9ea4,_0x32c480,_0x1f8e48,_0x15761e,_0x1abc99){const _0xc3d3e=a312_0x192e,_0x114c5c=_0x36165e[_0xc3d3e(0x19e)]['some'](_0x2a7988=>_0x2a7988[_0xc3d3e(0x191)]==='code'&&_0x2a7988[_0xc3d3e(0x1a5)]===_0xc3d3e(0x18d)),_0x277c01=_0x36165e[_0xc3d3e(0x19e)][_0xc3d3e(0x18e)](_0x5bc6f3=>_0x5bc6f3[_0xc3d3e(0x191)]===_0xc3d3e(0x18b)&&_0x5bc6f3[_0xc3d3e(0x1a5)]===_0xc3d3e(0x18d));if(!_0x114c5c||!_0x277c01)return;const _0x580eeb=_0x4c9ea4['code']?String(_0x4c9ea4[_0xc3d3e(0x18a)]):'',_0x38fcca=_0x4c9ea4[_0xc3d3e(0x18b)]?String(_0x4c9ea4[_0xc3d3e(0x18b)]):'';if(!_0x580eeb&&!_0x38fcca)throw CliErrors[_0xc3d3e(0x198)]('`'+_0x1f8e48+_0xc3d3e(0x1a6));if(_0x38fcca&&!_0x580eeb){const _0x4780cf=resolveApiModelSource(_0x32c480,_0x15761e,_0x1abc99),_0x5586d8=resolveAlias(_0x32c480,_0x38fcca,undefined,_0x4780cf[_0xc3d3e(0x18c)],_0x4780cf[_0xc3d3e(0x188)]);if(!_0x5586d8){const _0x112c31=listAliases(_0x32c480,undefined,_0x4780cf[_0xc3d3e(0x18c)],_0x4780cf[_0xc3d3e(0x188)])[_0xc3d3e(0x1a0)](_0xd6c480=>_0xd6c480[_0xc3d3e(0x18b)]),_0x1bdbd9=_0x112c31[_0xc3d3e(0x19c)]?_0xc3d3e(0x19a)+_0x112c31[_0xc3d3e(0x193)](',\x20'):_0xc3d3e(0x1a1)+_0x32c480+_0xc3d3e(0x19f)+CLI_BIN_NAME+_0xc3d3e(0x197);throw CliErrors[_0xc3d3e(0x198)](_0xc3d3e(0x18f)+_0x38fcca+_0xc3d3e(0x189)+_0x1bdbd9);}_0x4c9ea4[_0xc3d3e(0x18a)]=_0x5586d8;}}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x4fd1b1,_0x59a820){const _0x5902aa=a308_0x11fd,_0x6af4d9=_0x4fd1b1();while(!![]){try{const _0x1d5e5e=parseInt(_0x5902aa(0xef))/0x1+parseInt(_0x5902aa(0xfc))/0x2*(parseInt(_0x5902aa(0x125))/0x3)+-parseInt(_0x5902aa(0xf1))/0x4*(-parseInt(_0x5902aa(0x117))/0x5)+-parseInt(_0x5902aa(0x12f))/0x6+parseInt(_0x5902aa(0x140))/0x7*(parseInt(_0x5902aa(0xf4))/0x8)+parseInt(_0x5902aa(0x136))/0x9*(-parseInt(_0x5902aa(0x13f))/0xa)+-parseInt(_0x5902aa(0x139))/0xb;if(_0x1d5e5e===_0x59a820)break;else _0x6af4d9['push'](_0x6af4d9['shift']());}catch(_0x2ba85c){_0x6af4d9['push'](_0x6af4d9['shift']());}}}(a308_0x2411,0x69cbe));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';function a308_0x11fd(_0x2fe068,_0x5bc282){_0x2fe068=_0x2fe068-0xec;const _0x2411ba=a308_0x2411();let _0x11fd66=_0x2411ba[_0x2fe068];return _0x11fd66;}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 a308_0x2b811d}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x569a57){const _0x570576=a308_0x11fd;return typeof _0x569a57==='string'&&_0x569a57['trim']()?_0x569a57[_0x570576(0x143)]():undefined;}function resolveEnvAppCode(){const _0x10f4a3=a308_0x11fd,_0x4120bf=stringFlag(process.env.RABETBASE_APPCODE);if(_0x4120bf)return{'name':_0x10f4a3(0x12a),'value':_0x4120bf};const _0x26b348=stringFlag(process.env.LOVRABET_APPCODE);if(_0x26b348)return{'name':'LOVRABET_APPCODE','value':_0x26b348};return undefined;}function hasExplicitAppCode(_0x1ca2bd,_0x4dda99){const _0xee5dd5=a308_0x11fd;return!!(stringFlag(_0x1ca2bd[_0xee5dd5(0x137)])||stringFlag(_0x4dda99[_0xee5dd5(0x137)]));}function assertEnvAppCodeNotIgnored(_0x167e61,_0x77a092,_0x419b67){const _0x1a7975=a308_0x11fd;if(!_0x77a092||_0x419b67||_0x167e61===_0x77a092[_0x1a7975(0x130)])return;const _0xf13902=_0x167e61?_0x1a7975(0x109)+_0x167e61+'\x22.':_0x1a7975(0x121);throw CliErrors[_0x1a7975(0x111)](_0x77a092[_0x1a7975(0x11d)]+'='+_0x77a092[_0x1a7975(0x130)]+_0x1a7975(0x116)+_0xf13902+'\x20'+(_0x1a7975(0xf3)+_0x77a092[_0x1a7975(0x11d)]+'\x22.'));}export function createPipelineEnv(_0x3af570,_0x4d0ac4,_0x1ecbd5=[]){const _0x4c6ceb=a308_0x11fd;return{'rawFlags':_0x4d0ac4,'args':_0x1ecbd5,'resolveAppCode':()=>_0x3af570[_0x4c6ceb(0xee)],'resolveCookie':()=>_0x3af570[_0x4c6ceb(0x135)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a308_0x2b811d(_0x4d0ac4),'defaultFormat':_0x3af570[_0x4c6ceb(0xed)],'defaultPageSize':_0x3af570['pageSize'],'defaultVerbose':_0x3af570['verbose'],'apiDir':_0x3af570[_0x4c6ceb(0x141)],'riskLevel':_0x3af570[_0x4c6ceb(0x11a)],'selectedAppName':_0x3af570[_0x4c6ceb(0x104)],'mergedCli':{'defaultApp':_0x3af570[_0x4c6ceb(0x122)],'currentApp':_0x3af570['currentApp'],'appCode':_0x3af570[_0x4c6ceb(0xee)],'apps':_0x3af570[_0x4c6ceb(0xff)]}};}export function createRabetbaseRunnerAdapter(_0x4ead82={}){const _0x2eaff0=a308_0x11fd;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x2eaff0(0x127)](_0x27349d=>PIPELINE_FLAG_NAMES['has'](_0x27349d['name']))[_0x2eaff0(0x13c)](({name:_0x1290bc,type:_0x3f629f,description:_0x4f4021})=>({'name':_0x1290bc,'type':_0x3f629f,'description':_0x4f4021})),'formatOutput':_0x4ead82[_0x2eaff0(0x100)]??formatOutput,'getCommandLabel'(_0x12860c){const _0x5f09ee=_0x2eaff0;return CLI_BIN_NAME+'\x20'+_0x12860c['service']+'\x20'+_0x12860c[_0x5f09ee(0x13b)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x4cedf3,{def:_0xe35941}){const _0x42d5bf=_0x2eaff0,_0x4f891e=_0x4cedf3[_0x42d5bf(0x128)](_0x42d5bf(0x119))?_0x42d5bf(0x118):_0x42d5bf(0x12c)+_0xe35941['risk']+'\x22\x20if\x20this\x20operation\x20is\x20intended.\x20'+_0x42d5bf(0x118);return CliErrors[_0x42d5bf(0x111)](_0x4cedf3+_0x42d5bf(0x129)+_0x4f891e);}},async 'prepare'(_0x53ac5e,_0x3ffc87,_0xc4410c,_0x4769cf){const _0x4b7505=_0x2eaff0,_0x187d11=_0x3ffc87[_0x4b7505(0x141)]||DEFAULT_API_DIR,_0x2644c2=hasExplicitAppCode(_0xc4410c,_0x3ffc87[_0x4b7505(0x101)]),_0x5104b1=stringFlag(_0xc4410c[_0x4b7505(0x137)])||stringFlag(_0x3ffc87[_0x4b7505(0x101)]['appcode']),_0x2f3a04=_0x3ffc87[_0x4b7505(0xf0)]?.[_0x4b7505(0xff)]??{},_0x184252=_0x3ffc87['selectedAppName']||_0x3ffc87[_0x4b7505(0xf0)]?.[_0x4b7505(0x142)]||_0x3ffc87[_0x4b7505(0xf0)]?.[_0x4b7505(0x122)],_0x315607=_0x5104b1?Object[_0x4b7505(0x107)](_0x2f3a04)[_0x4b7505(0x127)](([,_0x52e387])=>_0x52e387['appcode']===_0x5104b1)[_0x4b7505(0x13c)](([_0x1bf364])=>_0x1bf364):[];if(_0x315607[_0x4b7505(0xf7)]>0x1&&!_0x3ffc87['selectedAppName'])throw CliErrors[_0x4b7505(0x111)](_0x4b7505(0xfe)+_0x5104b1+_0x4b7505(0x134)+_0x315607[_0x4b7505(0x113)](',\x20')+'.',_0x4b7505(0x11c));resolveAliasToCode(_0x53ac5e,_0xc4410c,_0x187d11,_0x4769cf,_0x3ffc87[_0x4b7505(0x11b)](),_0x184252);const _0x52701d=resolveCommandAuthMode(_0x53ac5e);let _0x182a24='';if(_0x52701d!==_0x4b7505(0x115)){_0x182a24=_0x3ffc87[_0x4b7505(0x13d)]()||'';if(!_0x182a24){if(_0x52701d===_0x4b7505(0x10f))throw CliErrors[_0x4b7505(0x105)]();}else{const {setActiveCookie:_0x467eb3}=await import(_0x4b7505(0x13e));_0x467eb3(_0x182a24);}}const _0x1b45dc=_0x3ffc87[_0x4b7505(0x11b)]()??'';if(_0x53ac5e[_0x4b7505(0x10b)]!==![]){if(!_0x2644c2&&_0x184252&&!_0x2f3a04[_0x184252]){const _0x29dabf=Object['keys'](_0x2f3a04);throw CliErrors[_0x4b7505(0x111)]('App\x20\x22'+_0x184252+_0x4b7505(0x132),_0x29dabf[_0x4b7505(0xf7)]>0x0?_0x4b7505(0x11e)+_0x29dabf[_0x4b7505(0x113)](',\x20')+_0x4b7505(0xf2)+CLI_BIN_NAME+_0x4b7505(0x10c):_0x4b7505(0x131)+CLI_BIN_NAME+_0x4b7505(0x10c));}assertEnvAppCodeNotIgnored(_0x1b45dc,resolveEnvAppCode(),_0x2644c2);if(!_0x1b45dc){const _0x55adc8=Object[_0x4b7505(0x12d)](_0x2f3a04);if(!_0x184252&&_0x55adc8[_0x4b7505(0xf7)]>0x1)throw CliErrors['configMissing']('Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`'+CLI_BIN_NAME+_0x4b7505(0x110)+_0x55adc8['join'](',\x20')+'.');throw CliErrors[_0x4b7505(0x10a)]('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}}return{'defaults':{'booleans':{'verbose':_0x3ffc87[_0x4b7505(0xf6)]},'numbers':{'pagesize':_0x3ffc87[_0x4b7505(0x138)]}},'extras':{'appCode':_0x1b45dc,'cookie':_0x182a24,'apiDomain':_0x3ffc87['resolveApiDomain'](),'apiDir':_0x187d11,'selectedAppName':_0x3ffc87[_0x4b7505(0xec)],'mergedCli':_0x3ffc87['mergedCli']}};},'confirmHighRisk':_0x4ead82[_0x2eaff0(0x120)]??(async({env:_0x404b73,commandLabel:_0x1bdd78})=>{const _0x51067d=_0x2eaff0;if(_0x404b73[_0x51067d(0x123)])throw CliErrors['validation'](_0x51067d(0x10e)+_0x1bdd78+_0x51067d(0x114));await requireConfirmationPrompt({'lines':[_0x51067d(0x102)+_0x1bdd78,_0x51067d(0xfa)],'createCancelledError':_0x3cf969=>CliErrors[_0x51067d(0xf9)](_0x3cf969)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x130bfb=a308_0x11fd,{clearActiveCookie:_0x289456}=await import(_0x130bfb(0x13e));_0x289456();}export async function finalizeRabetbaseRuntimeState(){try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x27e7c5},{initEnv:_0x3034c1}]=await Promise['all']([import('../constant/domain.js'),import('../constant/env.js')]);_0x27e7c5(),_0x3034c1('production');}}export async function runCommand(_0x4152e8,_0x287266,_0x3d440f=terminalRunnerAdapter){const _0x319920=a308_0x11fd;assertRejectedFlags(_0x4152e8,_0x287266[_0x319920(0x101)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x4152e8)?withUpdateNotice(_0x4152e8):_0x4152e8,_0x287266,_0x3d440f);}function assertRejectedFlags(_0x3adfb2,_0x1edddc){const _0x18e974=a308_0x11fd;for(const _0x5690ea of _0x3adfb2[_0x18e974(0x12e)]??[]){const _0x3d071a=GLOBAL_FLAGS[_0x18e974(0x11f)](_0x296932=>_0x296932[_0x18e974(0x11d)]===_0x5690ea[_0x18e974(0x11d)]),_0x1d4de5=new Set([_0x5690ea[_0x18e974(0x11d)],toCamelCase(_0x5690ea['name']),_0x3d071a?.[_0x18e974(0x10d)]]),_0x4cebae=[..._0x1d4de5][_0x18e974(0x106)](_0x1615bb=>{if(!_0x1615bb)return![];const _0x1c04c9=_0x1edddc[_0x1615bb];return _0x1c04c9!==undefined&&_0x1c04c9!==null&&_0x1c04c9!==![];});if(_0x4cebae)throw CliErrors[_0x18e974(0x111)](_0x5690ea[_0x18e974(0x133)],_0x5690ea[_0x18e974(0x103)]);}}function toCamelCase(_0x44125f){const _0x4dae91=a308_0x11fd;return _0x44125f[_0x4dae91(0xfb)](/-([a-z])/g,(_0x245c62,_0xcd8380)=>_0xcd8380[_0x4dae91(0xf8)]());}function shouldAttachUpdateNotice(_0x1d5548){const _0xc07285=a308_0x11fd;if(_0x1d5548[_0xc07285(0x108)]===![])return![];return![_0xc07285(0xf5),_0xc07285(0x112),'doctor'][_0xc07285(0x128)](_0x1d5548['service']);}function withUpdateNotice(_0x412a6c){return{..._0x412a6c,async 'execute'(_0x1f902){const _0x29a5b6=a308_0x11fd,_0x1e6712=shouldResolveUpdateNotice(_0x1f902)?resolveLatestUpdateNotice()[_0x29a5b6(0xfd)](()=>null):Promise[_0x29a5b6(0x124)](null),_0x543a6f=await _0x412a6c[_0x29a5b6(0x13a)](_0x1f902);return attachUpdateNotice(_0x543a6f,await _0x1e6712);}};}function shouldResolveUpdateNotice(_0xb68a0d){const _0x393229=a308_0x11fd;return _0xb68a0d[_0x393229(0xed)]==='pretty'&&!_0xb68a0d['nonInteractive'];}function attachUpdateNotice(_0x64020a,_0x43c455){const _0x406397=a308_0x11fd;if(!_0x43c455||!_0x64020a||typeof _0x64020a!=='object')return _0x64020a;const _0x379339=_0x64020a,_0x37a947=typeof _0x379339[_0x406397(0x126)]===_0x406397(0x12b)&&_0x379339[_0x406397(0x126)]!==null?_0x379339['_notice']:{};return{..._0x379339,'_notice':{..._0x37a947,'update':_0x43c455}};}function a308_0x2411(){const _0x16515c=['required','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','validation','schema','join','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','none','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','65tQCeQl','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','Edit\x20the\x20config\x20file\x20manually','riskLevel','resolveAppCode','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','name','Available:\x20','find','confirmHighRisk','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','defaultApp','isNonInteractive','resolve','3TjWQIo','_notice','filter','includes','\x0a\x20\x20','RABETBASE_APPCODE','object','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','keys','rejectedFlags','2343930WAmXoM','value','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','message','\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20','cookie','2990097smVXDC','appcode','defaultPageSize','19428981JaxuBa','execute','command','map','resolveCookie','../core/api-client.js','10JYCftR','101857hCXpPh','apiDir','currentApp','trim','selectedAppName','format','appCode','774358AgAhud','mergedCli','264284HtWCTW','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','472SXylTJ','update','defaultVerbose','length','toUpperCase','cancelled','\x20\x20\x20Continue?\x20[y/N]\x20','replace','861422WnWHYJ','catch','AppCode\x20\x22','apps','formatOutput','rawFlags','⚠\x20\x20High-risk\x20operation:\x20','hint','explicitAppName','authRequired','some','entries','hasFormat','Current\x20resolved\x20appcode\x20is\x20\x22','configMissing','requiresAppCode','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','meowKey','High-risk\x20operation\x20`'];a308_0x2411=function(){return _0x16515c;};return a308_0x2411();}
|
|
1
|
+
(function(_0xc5db8a,_0x376750){const _0x506dcc=a313_0x39f6,_0x7af010=_0xc5db8a();while(!![]){try{const _0x3d1aca=-parseInt(_0x506dcc(0x1ae))/0x1+-parseInt(_0x506dcc(0x1aa))/0x2*(-parseInt(_0x506dcc(0x18c))/0x3)+-parseInt(_0x506dcc(0x194))/0x4*(parseInt(_0x506dcc(0x179))/0x5)+-parseInt(_0x506dcc(0x160))/0x6+-parseInt(_0x506dcc(0x162))/0x7*(parseInt(_0x506dcc(0x19d))/0x8)+parseInt(_0x506dcc(0x18d))/0x9+parseInt(_0x506dcc(0x191))/0xa;if(_0x3d1aca===_0x376750)break;else _0x7af010['push'](_0x7af010['shift']());}catch(_0x36b716){_0x7af010['push'](_0x7af010['shift']());}}}(a313_0x4eab,0xd07aa));function a313_0x39f6(_0x2eda1e,_0x5ec47e){_0x2eda1e=_0x2eda1e-0x159;const _0x4eabd8=a313_0x4eab();let _0x39f69e=_0x4eabd8[_0x2eda1e];return _0x39f69e;}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_0x3b6657}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x5ac49d){const _0x1ff02f=a313_0x39f6;return typeof _0x5ac49d==='string'&&_0x5ac49d[_0x1ff02f(0x197)]()?_0x5ac49d[_0x1ff02f(0x197)]():undefined;}function resolveEnvAppCode(){const _0x832af6=a313_0x39f6,_0x4adb11=stringFlag(process.env.RABETBASE_APPCODE);if(_0x4adb11)return{'name':_0x832af6(0x196),'value':_0x4adb11};const _0x2dbae2=stringFlag(process.env.LOVRABET_APPCODE);if(_0x2dbae2)return{'name':_0x832af6(0x183),'value':_0x2dbae2};return undefined;}function hasExplicitAppCode(_0x5b5521,_0x541e64){const _0x23e000=a313_0x39f6;return!!(stringFlag(_0x5b5521['appcode'])||stringFlag(_0x541e64[_0x23e000(0x175)]));}function assertEnvAppCodeNotIgnored(_0x1de11a,_0xeb8007,_0x466a1c){const _0xd7740c=a313_0x39f6;if(!_0xeb8007||_0x466a1c||_0x1de11a===_0xeb8007[_0xd7740c(0x18e)])return;const _0x4d081d=_0x1de11a?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0x1de11a+'\x22.':_0xd7740c(0x15d);throw CliErrors[_0xd7740c(0x17d)](_0xeb8007[_0xd7740c(0x16a)]+'='+_0xeb8007[_0xd7740c(0x18e)]+_0xd7740c(0x1a2)+_0x4d081d+'\x20'+(_0xd7740c(0x168)+_0xeb8007[_0xd7740c(0x16a)]+'\x22.'));}export function createPipelineEnv(_0x5cf5d5,_0x555c92,_0x466b26=[]){const _0x13a586=a313_0x39f6;return{'rawFlags':_0x555c92,'args':_0x466b26,'resolveAppCode':()=>_0x5cf5d5[_0x13a586(0x199)],'resolveCookie':()=>_0x5cf5d5[_0x13a586(0x189)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a313_0x3b6657(_0x555c92),'defaultFormat':_0x5cf5d5[_0x13a586(0x185)],'defaultPageSize':_0x5cf5d5[_0x13a586(0x172)],'defaultVerbose':_0x5cf5d5[_0x13a586(0x1a9)],'apiDir':_0x5cf5d5[_0x13a586(0x1ab)],'riskLevel':_0x5cf5d5['riskLevel'],'selectedAppName':_0x5cf5d5['explicitAppName'],'mergedCli':{'defaultApp':_0x5cf5d5['defaultApp'],'currentApp':_0x5cf5d5[_0x13a586(0x16d)],'appCode':_0x5cf5d5['appCode'],'apps':_0x5cf5d5[_0x13a586(0x163)]}};}export function createRabetbaseRunnerAdapter(_0xa1e22d={}){const _0x49294b=a313_0x39f6;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x49294b(0x169)](_0x304baf=>PIPELINE_FLAG_NAMES[_0x49294b(0x19b)](_0x304baf[_0x49294b(0x16a)]))[_0x49294b(0x1ac)](({name:_0x90a390,type:_0x3a9dfc,description:_0x25dcab})=>({'name':_0x90a390,'type':_0x3a9dfc,'description':_0x25dcab})),'formatOutput':_0xa1e22d[_0x49294b(0x16c)]??formatOutput,'getCommandLabel'(_0x45111f){const _0x2c2bc8=_0x49294b;return CLI_BIN_NAME+'\x20'+_0x45111f[_0x2c2bc8(0x186)]+'\x20'+_0x45111f[_0x2c2bc8(0x1a3)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x20be43,{def:_0x4643b7}){const _0x36d558=_0x49294b,_0x511ff8=_0x20be43[_0x36d558(0x15c)](_0x36d558(0x16f))?_0x36d558(0x165):_0x36d558(0x167)+_0x4643b7[_0x36d558(0x166)]+_0x36d558(0x1a0)+_0x36d558(0x165);return CliErrors[_0x36d558(0x17d)](_0x20be43+_0x36d558(0x1a1)+_0x511ff8);}},async 'prepare'(_0x24d6b7,_0x10bb95,_0x3b50ed,_0x4134df){const _0x40d6d7=_0x49294b,_0xf3b3ae=_0x10bb95['apiDir']||DEFAULT_API_DIR,_0x416865=hasExplicitAppCode(_0x3b50ed,_0x10bb95['rawFlags']),_0x17ec71=stringFlag(_0x3b50ed[_0x40d6d7(0x175)])||stringFlag(_0x10bb95[_0x40d6d7(0x1a8)][_0x40d6d7(0x175)]),_0x3d415d=_0x10bb95[_0x40d6d7(0x19e)]?.['apps']??{},_0x31eabe=_0x10bb95[_0x40d6d7(0x1ad)]||_0x10bb95[_0x40d6d7(0x19e)]?.[_0x40d6d7(0x16d)]||_0x10bb95[_0x40d6d7(0x19e)]?.[_0x40d6d7(0x181)],_0x4a7578=_0x17ec71?Object[_0x40d6d7(0x16e)](_0x3d415d)['filter'](([,_0x1dad29])=>_0x1dad29[_0x40d6d7(0x175)]===_0x17ec71)[_0x40d6d7(0x1ac)](([_0x595a17])=>_0x595a17):[];if(_0x4a7578[_0x40d6d7(0x18b)]>0x1&&!_0x10bb95[_0x40d6d7(0x1ad)])throw CliErrors[_0x40d6d7(0x17d)](_0x40d6d7(0x178)+_0x17ec71+_0x40d6d7(0x16b)+_0x4a7578[_0x40d6d7(0x193)](',\x20')+'.',_0x40d6d7(0x17b));resolveAliasToCode(_0x24d6b7,_0x3b50ed,_0xf3b3ae,_0x4134df,_0x10bb95[_0x40d6d7(0x176)](),_0x31eabe);const _0x7362b1=resolveCommandAuthMode(_0x24d6b7);let _0x4f1b04='';if(_0x7362b1!==_0x40d6d7(0x18a)){_0x4f1b04=_0x10bb95['resolveCookie']()||'';if(!_0x4f1b04){if(_0x7362b1==='required')throw CliErrors[_0x40d6d7(0x1b0)]();}else{const {setActiveCookie:_0x5cf66e}=await import(_0x40d6d7(0x1a5));_0x5cf66e(_0x4f1b04);}}const _0x67941b=_0x10bb95[_0x40d6d7(0x176)]()??'';if(_0x24d6b7['requiresAppCode']!==![]){if(!_0x416865&&_0x31eabe&&!_0x3d415d[_0x31eabe]){const _0x444cd6=Object[_0x40d6d7(0x188)](_0x3d415d);throw CliErrors['validation'](_0x40d6d7(0x195)+_0x31eabe+_0x40d6d7(0x19f),_0x444cd6[_0x40d6d7(0x18b)]>0x0?_0x40d6d7(0x1a4)+_0x444cd6[_0x40d6d7(0x193)](',\x20')+_0x40d6d7(0x182)+CLI_BIN_NAME+_0x40d6d7(0x19a):'Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x40d6d7(0x19a));}assertEnvAppCodeNotIgnored(_0x67941b,resolveEnvAppCode(),_0x416865);if(!_0x67941b){const _0x929772=Object[_0x40d6d7(0x188)](_0x3d415d);if(!_0x31eabe&&_0x929772[_0x40d6d7(0x18b)]>0x1)throw CliErrors[_0x40d6d7(0x15a)](_0x40d6d7(0x17a)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20'+_0x929772[_0x40d6d7(0x193)](',\x20')+'.');throw CliErrors[_0x40d6d7(0x15a)](_0x40d6d7(0x17f)+CLI_BIN_NAME+_0x40d6d7(0x184));}}return{'defaults':{'booleans':{'verbose':_0x10bb95['defaultVerbose']},'numbers':{'pagesize':_0x10bb95['defaultPageSize']}},'extras':{'appCode':_0x67941b,'cookie':_0x4f1b04,'apiDomain':_0x10bb95[_0x40d6d7(0x198)](),'apiDir':_0xf3b3ae,'selectedAppName':_0x10bb95[_0x40d6d7(0x1ad)],'mergedCli':_0x10bb95['mergedCli']}};},'confirmHighRisk':_0xa1e22d[_0x49294b(0x170)]??(async({env:_0x118b48,commandLabel:_0x5bb70d})=>{const _0x2bc55c=_0x49294b;if(_0x118b48[_0x2bc55c(0x171)])throw CliErrors['validation'](_0x2bc55c(0x1af)+_0x5bb70d+_0x2bc55c(0x15b));await requireConfirmationPrompt({'lines':[_0x2bc55c(0x177)+_0x5bb70d,_0x2bc55c(0x161)],'createCancelledError':_0x489987=>CliErrors['cancelled'](_0x489987)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();function a313_0x4eab(){const _0x2a6504=['30113270GQVRDj','update','join','38356DuJwMM','App\x20\x22','RABETBASE_APPCODE','trim','resolveApiDomain','appCode','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','has','_notice','126432NnkAUb','mergedCli','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','\x0a\x20\x20','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','command','Available:\x20','../core/api-client.js','message','pretty','rawFlags','verbose','29934YOrVHX','apiDir','map','selectedAppName','1099585wOIWRM','High-risk\x20operation\x20`','authRequired','toUpperCase','configMissing','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','includes','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','schema','find','9751800zMtnNm','\x20\x20\x20Continue?\x20[y/N]\x20','329kgAJxn','apps','rejectedFlags','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','risk','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','filter','name','\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20','formatOutput','currentApp','entries','Edit\x20the\x20config\x20file\x20manually','confirmHighRisk','isNonInteractive','pageSize','replace','resolve','appcode','resolveAppCode','⚠\x20\x20High-risk\x20operation:\x20','AppCode\x20\x22','455FkAhon','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','all','validation','hasFormat','Set\x20appcode\x20via\x20`','execute','defaultApp','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','LOVRABET_APPCODE','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','format','service','../constant/env.js','keys','cookie','none','length','303WESoSb','6040872lxkgVS','value','../constant/domain.js','object'];a313_0x4eab=function(){return _0x2a6504;};return a313_0x4eab();}async function clearRabetbaseCommandState(){const _0x4a476c=a313_0x39f6,{clearActiveCookie:_0x3a3b38}=await import(_0x4a476c(0x1a5));_0x3a3b38();}export async function finalizeRabetbaseRuntimeState(){const _0xbbdd6c=a313_0x39f6;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x40c7b4},{initEnv:_0xa590f9}]=await Promise[_0xbbdd6c(0x17c)]([import(_0xbbdd6c(0x18f)),import(_0xbbdd6c(0x187))]);_0x40c7b4(),_0xa590f9('production');}}export async function runCommand(_0x1db411,_0x4da32b,_0xa40303=terminalRunnerAdapter){const _0x38225a=a313_0x39f6;assertRejectedFlags(_0x1db411,_0x4da32b[_0x38225a(0x1a8)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x1db411)?withUpdateNotice(_0x1db411):_0x1db411,_0x4da32b,_0xa40303);}function assertRejectedFlags(_0x4beb5e,_0x465f05){const _0x5424a6=a313_0x39f6;for(const _0x245033 of _0x4beb5e[_0x5424a6(0x164)]??[]){const _0x1f211a=GLOBAL_FLAGS[_0x5424a6(0x15f)](_0x1c4f5c=>_0x1c4f5c[_0x5424a6(0x16a)]===_0x245033[_0x5424a6(0x16a)]),_0x4f8055=new Set([_0x245033[_0x5424a6(0x16a)],toCamelCase(_0x245033[_0x5424a6(0x16a)]),_0x1f211a?.['meowKey']]),_0x2e9400=[..._0x4f8055]['some'](_0x31ecbf=>{if(!_0x31ecbf)return![];const _0x22268e=_0x465f05[_0x31ecbf];return _0x22268e!==undefined&&_0x22268e!==null&&_0x22268e!==![];});if(_0x2e9400)throw CliErrors[_0x5424a6(0x17d)](_0x245033[_0x5424a6(0x1a6)],_0x245033['hint']);}}function toCamelCase(_0x4574db){const _0x1fe4be=a313_0x39f6;return _0x4574db[_0x1fe4be(0x173)](/-([a-z])/g,(_0x404bcd,_0x7b3b3e)=>_0x7b3b3e[_0x1fe4be(0x159)]());}function shouldAttachUpdateNotice(_0x19f633){const _0x78ed2e=a313_0x39f6;if(_0x19f633[_0x78ed2e(0x17e)]===![])return![];return![_0x78ed2e(0x192),_0x78ed2e(0x15e),'doctor'][_0x78ed2e(0x15c)](_0x19f633[_0x78ed2e(0x186)]);}function withUpdateNotice(_0x58bbb4){return{..._0x58bbb4,async 'execute'(_0x5752ba){const _0x59f6e9=a313_0x39f6,_0x1acaeb=shouldResolveUpdateNotice(_0x5752ba)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x59f6e9(0x174)](null),_0x3c173b=await _0x58bbb4[_0x59f6e9(0x180)](_0x5752ba);return attachUpdateNotice(_0x3c173b,await _0x1acaeb);}};}function shouldResolveUpdateNotice(_0x12a7eb){const _0x25c4e5=a313_0x39f6;return _0x12a7eb['format']===_0x25c4e5(0x1a7)&&!_0x12a7eb['nonInteractive'];}function attachUpdateNotice(_0x901ce7,_0x5e2277){const _0x221cd6=a313_0x39f6;if(!_0x5e2277||!_0x901ce7||typeof _0x901ce7!==_0x221cd6(0x190))return _0x901ce7;const _0x4b3640=_0x901ce7,_0x25dcbc=typeof _0x4b3640[_0x221cd6(0x19c)]===_0x221cd6(0x190)&&_0x4b3640['_notice']!==null?_0x4b3640[_0x221cd6(0x19c)]:{};return{..._0x4b3640,'_notice':{..._0x25dcbc,'update':_0x5e2277}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4fc69b,_0x4d1804){const _0x2f9cd8=a314_0x4555,_0x5d0af0=_0x4fc69b();while(!![]){try{const _0x445161=parseInt(_0x2f9cd8(0x151))/0x1*(-parseInt(_0x2f9cd8(0x152))/0x2)+parseInt(_0x2f9cd8(0x14e))/0x3+parseInt(_0x2f9cd8(0x14c))/0x4+-parseInt(_0x2f9cd8(0x154))/0x5*(-parseInt(_0x2f9cd8(0x14a))/0x6)+parseInt(_0x2f9cd8(0x153))/0x7*(parseInt(_0x2f9cd8(0x150))/0x8)+parseInt(_0x2f9cd8(0x14f))/0x9+-parseInt(_0x2f9cd8(0x14b))/0xa;if(_0x445161===_0x4d1804)break;else _0x5d0af0['push'](_0x5d0af0['shift']());}catch(_0x1f67ad){_0x5d0af0['push'](_0x5d0af0['shift']());}}}(a314_0x2bbd,0xeae03));import{buildSchemaPayload as a314_0x143595}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a314_0x2bbd(){const _0x15f16e=['20098420yajhRb','2798800MQXiiE','../commands/registry.js','199491ATupnP','5261364tcTkHn','56uYwLNl','575828jqqwJX','2XXfilH','584759QrNafo','132145jcsbea','366XBSPdW'];a314_0x2bbd=function(){return _0x15f16e;};return a314_0x2bbd();}import{getCliVersion}from'../utils/version.js';function a314_0x4555(_0x2ede3c,_0x25264b){_0x2ede3c=_0x2ede3c-0x14a;const _0x2bbd8a=a314_0x2bbd();let _0x455573=_0x2bbd8a[_0x2ede3c];return _0x455573;}export async function buildSchemaPayload(){const _0x466a26=a314_0x4555,{serviceRegistry:_0x701a08,findDefinition:_0x46c6ac}=await import(_0x466a26(0x14d));return a314_0x143595({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x701a08,'buildAllFlags':buildAllFlags,'findDefinition':_0x46c6ac});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x56218a,_0x437abd){const _0xa8f710=a315_0x4e1e,_0x44fe5c=_0x56218a();while(!![]){try{const _0x93717c=parseInt(_0xa8f710(0x205))/0x1*(-parseInt(_0xa8f710(0x1f9))/0x2)+parseInt(_0xa8f710(0x1f2))/0x3*(-parseInt(_0xa8f710(0x1fc))/0x4)+-parseInt(_0xa8f710(0x209))/0x5*(parseInt(_0xa8f710(0x1f5))/0x6)+parseInt(_0xa8f710(0x1fa))/0x7+parseInt(_0xa8f710(0x202))/0x8+-parseInt(_0xa8f710(0x1fd))/0x9*(parseInt(_0xa8f710(0x1ff))/0xa)+parseInt(_0xa8f710(0x1f3))/0xb*(-parseInt(_0xa8f710(0x20f))/0xc);if(_0x93717c===_0x437abd)break;else _0x44fe5c['push'](_0x44fe5c['shift']());}catch(_0x2ef950){_0x44fe5c['push'](_0x44fe5c['shift']());}}}(a315_0x3f18,0x51c66));import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function assertSupportedCommandFlags(_0x4ec49f,_0x172eb4){const _0x884add=a315_0x4e1e;if(!_0x4ec49f[_0x884add(0x1fb)])return;const _0x14ebb9=new Set(['help',_0x884add(0x201)]),_0x30b3fe=GLOBAL_FLAGS[_0x884add(0x1f6)](_0x3c49bd=>PIPELINE_FLAG_NAMES['has'](_0x3c49bd[_0x884add(0x200)]));for(const _0x486295 of[..._0x4ec49f[_0x884add(0x20d)],..._0x30b3fe]){addFlagCandidates(_0x14ebb9,_0x486295);}for(const [_0x1391dc,_0x4aadfc]of Object[_0x884add(0x207)](_0x172eb4)){if(!isExplicitValue(_0x4aadfc)||_0x14ebb9['has'](_0x1391dc))continue;const _0x4811b8=GLOBAL_FLAGS[_0x884add(0x20c)](_0x1fd22a=>_0x1fd22a['meowKey']===_0x1391dc)?.[_0x884add(0x200)]??toKebabCase(_0x1391dc);throw CliErrors[_0x884add(0x20e)](_0x884add(0x1f4)+_0x4811b8+_0x884add(0x20b)+CLI_BIN_NAME+'\x20'+_0x4ec49f['service']+'\x20'+_0x4ec49f['command']+'`.','Run\x20`'+CLI_BIN_NAME+'\x20'+_0x4ec49f[_0x884add(0x20a)]+'\x20'+_0x4ec49f['command']+_0x884add(0x1fe));}}function addFlagCandidates(_0x427b0a,_0x30edf6){const _0x20318a=a315_0x4e1e,_0x154f43=_0x20318a(0x206)in _0x30edf6?[_0x30edf6[_0x20318a(0x200)],_0x30edf6[_0x20318a(0x206)]]:[_0x30edf6['name'],_0x30edf6['alias']];for(const _0x803ae of _0x154f43){if(!_0x803ae)continue;_0x427b0a[_0x20318a(0x1f8)](_0x803ae),_0x427b0a[_0x20318a(0x1f8)](toCamelCase(_0x803ae));}}function isExplicitValue(_0x4acb51){const _0x276101=a315_0x4e1e;return _0x4acb51!==undefined&&_0x4acb51!==null&&_0x4acb51!==![]&&(!Array['isArray'](_0x4acb51)||_0x4acb51[_0x276101(0x203)]>0x0);}function toCamelCase(_0x1f50b8){const _0x269676=a315_0x4e1e;return _0x1f50b8[_0x269676(0x1f7)](/-([a-z])/g,(_0x485cff,_0x411625)=>_0x411625['toUpperCase']());}function a315_0x4e1e(_0x5eb95f,_0x1514ba){_0x5eb95f=_0x5eb95f-0x1f2;const _0x3f1823=a315_0x3f18();let _0x4e1ea9=_0x3f1823[_0x5eb95f];return _0x4e1ea9;}function a315_0x3f18(){const _0x1a3999=['1356IeaBbF','filter','replace','add','2TulDOm','4410007tTnmWu','strictFlags','4BbcYou','429633wPiaBx','\x20--help`\x20to\x20view\x20the\x20current\x20command\x20contract.','10gJPmJh','name','version','4226960GtQREd','length','toLowerCase','18743OMYoSW','meowKey','entries','$1-$2','8945UxAebw','service','\x20for\x20`','find','flags','validation','19188FYafNF','1029099OaXytC','66WLPAZh','Unsupported\x20flag\x20--'];a315_0x3f18=function(){return _0x1a3999;};return a315_0x3f18();}function toKebabCase(_0x1db830){const _0x1dd2d3=a315_0x4e1e;return _0x1db830[_0x1dd2d3(0x1f7)](/([a-z0-9])([A-Z])/g,_0x1dd2d3(0x208))[_0x1dd2d3(0x204)]();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2ea28b,_0x501c85){var _0x4faf9c=a316_0x4639,_0x5a448d=_0x2ea28b();while(!![]){try{var _0x5dbe1a=parseInt(_0x4faf9c(0x1c8))/0x1+parseInt(_0x4faf9c(0x1c6))/0x2*(-parseInt(_0x4faf9c(0x1c9))/0x3)+-parseInt(_0x4faf9c(0x1ca))/0x4+parseInt(_0x4faf9c(0x1cd))/0x5*(parseInt(_0x4faf9c(0x1ce))/0x6)+parseInt(_0x4faf9c(0x1cb))/0x7+parseInt(_0x4faf9c(0x1c7))/0x8*(parseInt(_0x4faf9c(0x1cf))/0x9)+-parseInt(_0x4faf9c(0x1cc))/0xa;if(_0x5dbe1a===_0x501c85)break;else _0x5a448d['push'](_0x5a448d['shift']());}catch(_0x5792a2){_0x5a448d['push'](_0x5a448d['shift']());}}}(a316_0x4218,0xcb077));function a316_0x4218(){var _0x41b2a7=['11730WPgGNS','1014fBIGdp','8316kwTmwm','1499846nYRXqC','5288LnLeud','1540409vRojBV','3FAokmy','5628816eeicDN','10991344rMsdug','11291050erjsSB'];a316_0x4218=function(){return _0x41b2a7;};return a316_0x4218();}function a316_0x4639(_0x465607,_0x320c0f){_0x465607=_0x465607-0x1c6;var _0x421801=a316_0x4218();var _0x463908=_0x421801[_0x465607];return _0x463908;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.5.4
|
|
2
|
-
export declare const GIT_TAG = "v2.5.4
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-09-
|
|
1
|
+
export declare const VERSION = "2.5.4";
|
|
2
|
+
export declare const GIT_TAG = "v2.5.4";
|
|
3
|
+
export declare const GIT_COMMIT = "925963a5";
|
|
4
|
+
export declare const BUILD_TIME = "2026-09-29T02:44:09.044Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a317_0x3e81(_0x2b1473,_0x16614c){_0x2b1473=_0x2b1473-0x12a;const _0x152abb=a317_0x152a();let _0x3e81f4=_0x152abb[_0x2b1473];return _0x3e81f4;}const a317_0x2180aa=a317_0x3e81;(function(_0x52c60f,_0x51bd2c){const _0x28bd58=a317_0x3e81,_0x2f82da=_0x52c60f();while(!![]){try{const _0x4ecc63=-parseInt(_0x28bd58(0x12d))/0x1+-parseInt(_0x28bd58(0x134))/0x2*(parseInt(_0x28bd58(0x12f))/0x3)+parseInt(_0x28bd58(0x12e))/0x4+-parseInt(_0x28bd58(0x132))/0x5*(parseInt(_0x28bd58(0x12b))/0x6)+parseInt(_0x28bd58(0x12c))/0x7+-parseInt(_0x28bd58(0x130))/0x8*(parseInt(_0x28bd58(0x133))/0x9)+parseInt(_0x28bd58(0x137))/0xa;if(_0x4ecc63===_0x51bd2c)break;else _0x2f82da['push'](_0x2f82da['shift']());}catch(_0x1fabf0){_0x2f82da['push'](_0x2f82da['shift']());}}}(a317_0x152a,0xaa997));export const VERSION=a317_0x2180aa(0x131);export const GIT_TAG=a317_0x2180aa(0x12a);function a317_0x152a(){const _0x84ba33=['56252WcqbFu','38682vZNdbl','16tGhetn','2.5.4','1825nMPTFT','2763963aEChtI','140VWUtAE','2026-09-29T02:44:09.044Z','925963a5','20101880iyITdw','v2.5.4','9954wixkNS','9182565QXfACz','514942OXXrBm'];a317_0x152a=function(){return _0x84ba33;};return a317_0x152a();}export const GIT_COMMIT=a317_0x2180aa(0x136);export const BUILD_TIME=a317_0x2180aa(0x135);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a318_0x4b62(_0x5d84e4,_0x186d83){_0x5d84e4=_0x5d84e4-0x9c;const _0x3f6385=a318_0x3f63();let _0x4b6254=_0x3f6385[_0x5d84e4];return _0x4b6254;}const a318_0x5b4992=a318_0x4b62;(function(_0xb60e7,_0x326dcf){const _0x4baf15=a318_0x4b62,_0x9a6891=_0xb60e7();while(!![]){try{const _0x59db11=-parseInt(_0x4baf15(0xa3))/0x1+parseInt(_0x4baf15(0xca))/0x2*(parseInt(_0x4baf15(0x9e))/0x3)+parseInt(_0x4baf15(0xc9))/0x4*(-parseInt(_0x4baf15(0xbd))/0x5)+-parseInt(_0x4baf15(0xc8))/0x6+-parseInt(_0x4baf15(0xa5))/0x7+parseInt(_0x4baf15(0xa0))/0x8+parseInt(_0x4baf15(0xbc))/0x9*(parseInt(_0x4baf15(0xba))/0xa);if(_0x59db11===_0x326dcf)break;else _0x9a6891['push'](_0x9a6891['shift']());}catch(_0x152ea8){_0x9a6891['push'](_0x9a6891['shift']());}}}(a318_0x3f63,0xbe11c));export const ROUTING_CATALOG_DIGEST=a318_0x5b4992(0xa1);function a318_0x3f63(){const _0x43682a=['107005YpWzqG','https://skills.lovrabet.com','9854873GIsCZK','https://g.lovrabet.com','https://user-daily.lovrabet.ai','Mainland\x20China','https://api.lovrabet.id','https://app.lovrabet.id','Indonesia','https://skills.lovrabet.id','https://runtime.lovrabet.com','https://user-daily.lovrabet.com','china','https://skills-daily.lovrabet.com','https://daily-api.lovrabet.ai','https://app.lovrabet.ai','https://api.lovrabet.ai','https://user.lovrabet.id','https://api.lovrabet.com','https://kb-service.lovrabet.com','https://runtime.lovrabet.ai','https://g.lovrabet.ai','https://kb-service.lovrabet.id','10749170kUYwJQ','https://daily-runtime.lovrabet.ai','18YwanAt','410015MFaENu','indonesia','https://daily.lovrabet.ai','https://g.lovrabet.id','https://runtime.lovrabet.id','https://daily.lovrabet.com','https://cdnjs.cloudflare.com/ajax/libs','global','https://daily-api.lovrabet.com','https://dev.lovrabet.com','https://dev.lovrabet.id','6766104uMCmSl','8EJHCpa','2pmiDlJ','https://app.lovrabet.com','https://user.lovrabet.ai','https://skills.lovrabet.ai','1471737XbqEks','https://skills-daily.lovrabet.ai','7557160sixGTS','57d346b80b12ca567af9d86dd7f8c02a0c27fe15d4944c8345add2cc6134c587','https://g.alicdn.com/code/lib'];a318_0x3f63=function(){return _0x43682a;};return a318_0x3f63();}export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id','global'];export const ENABLED_REGION_VALUES=['cn','id',a318_0x5b4992(0xc4)];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a318_0x5b4992(0xa8),'aliases':[a318_0x5b4992(0xaf)],'serviceDomains':{'production':{'user':'https://user.lovrabet.com','api':a318_0x5b4992(0xb5),'runtime':a318_0x5b4992(0xad),'skill':a318_0x5b4992(0xa4),'kb':'https://api.lovrabet.com','kbService':a318_0x5b4992(0xb6),'app':a318_0x5b4992(0xcb)},'daily':{'user':a318_0x5b4992(0xae),'api':a318_0x5b4992(0xc5),'runtime':'https://daily-runtime.lovrabet.com','skill':a318_0x5b4992(0xb0),'kb':a318_0x5b4992(0xc5),'kbService':'https://kb-service-daily.lovrabet.com','app':a318_0x5b4992(0xc2)}},'cdn':{'libraries':a318_0x5b4992(0xa2),'lovrabet':a318_0x5b4992(0xa6)},'local':{'origin':a318_0x5b4992(0xc6)}},'id':{'enabled':!![],'label':a318_0x5b4992(0xab),'aliases':[a318_0x5b4992(0xbe)],'serviceDomains':{'production':{'user':a318_0x5b4992(0xb4),'api':a318_0x5b4992(0xa9),'runtime':a318_0x5b4992(0xc1),'skill':a318_0x5b4992(0xac),'kb':a318_0x5b4992(0xa9),'kbService':a318_0x5b4992(0xb9),'app':a318_0x5b4992(0xaa)}},'cdn':{'libraries':a318_0x5b4992(0xc3),'lovrabet':a318_0x5b4992(0xc0)},'local':{'origin':a318_0x5b4992(0xc7)}},'global':{'enabled':!![],'label':'Global','aliases':[],'serviceDomains':{'production':{'user':a318_0x5b4992(0x9c),'api':a318_0x5b4992(0xb3),'runtime':a318_0x5b4992(0xb7),'skill':a318_0x5b4992(0x9d),'kb':a318_0x5b4992(0xb3),'app':a318_0x5b4992(0xb2)},'daily':{'user':a318_0x5b4992(0xa7),'api':a318_0x5b4992(0xb1),'runtime':a318_0x5b4992(0xbb),'skill':a318_0x5b4992(0x9f),'kb':a318_0x5b4992(0xb1),'app':a318_0x5b4992(0xbf)}},'cdn':{'libraries':a318_0x5b4992(0xc3),'lovrabet':a318_0x5b4992(0xb8)},'local':{'origin':'https://dev.lovrabet.ai'}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a319_0x56c8e4=a319_0x3bd9;(function(_0x265fd7,_0x4d03be){const _0x1c590d=a319_0x3bd9,_0x5528b8=_0x265fd7();while(!![]){try{const _0x261f25=parseInt(_0x1c590d(0xf5))/0x1+parseInt(_0x1c590d(0xf1))/0x2*(parseInt(_0x1c590d(0xf2))/0x3)+-parseInt(_0x1c590d(0xe7))/0x4+parseInt(_0x1c590d(0xe6))/0x5*(-parseInt(_0x1c590d(0xec))/0x6)+-parseInt(_0x1c590d(0xf0))/0x7+parseInt(_0x1c590d(0xf4))/0x8*(parseInt(_0x1c590d(0xe9))/0x9)+-parseInt(_0x1c590d(0xe4))/0xa;if(_0x261f25===_0x4d03be)break;else _0x5528b8['push'](_0x5528b8['shift']());}catch(_0x4f4e40){_0x5528b8['push'](_0x5528b8['shift']());}}}(a319_0x1d6c,0xdc8cf));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a319_0x56c8e4(0xe5);export const ENTERPRISE_ROUTING_PROTOCOL='lovrabet-routing/v1';function a319_0x3bd9(_0x3b25db,_0x2f3571){_0x3b25db=_0x3b25db-0xe3;const _0x1d6ccc=a319_0x1d6c();let _0x3bd99f=_0x1d6ccc[_0x3b25db];return _0x3bd99f;}export const ENTERPRISE_ROUTING_KIND=a319_0x56c8e4(0xf7);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a319_0x56c8e4(0xf8),a319_0x56c8e4(0xed),'runtimeDomain',a319_0x56c8e4(0xe8),'kbDomain',a319_0x56c8e4(0xee),a319_0x56c8e4(0xe3),a319_0x56c8e4(0xf6),'certificateDomain'];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a319_0x56c8e4(0xf8),'apiDomain',a319_0x56c8e4(0xf3),'skillDomain',a319_0x56c8e4(0xeb),a319_0x56c8e4(0xe3)];function a319_0x1d6c(){const _0x266e8b=['runtimeDomain','13344TaYxyY','8492PApdPn','localDomain','enterprise','userDomain','appDomain','1187490InHlJA','a03fe188b2b34518efc5668666c0001d20354882cd7dd70afec902dffe1329c3','2971945cewlsw','1161652BuIykk','skillDomain','8298mxJySi','lovrabet','kbDomain','6KpFGTr','apiDomain','kbServiceDomain','libraries','8110725gKzZXY','2tGbVSU','4557639VGGKLj'];a319_0x1d6c=function(){return _0x266e8b;};return a319_0x1d6c();}export const ENTERPRISE_ROUTING_CDN_FIELDS=[a319_0x56c8e4(0xef),a319_0x56c8e4(0xea)];export const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS=['libraries',a319_0x56c8e4(0xea)];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3efde1,_0x6071ca){var _0x158a9e=a320_0x4339,_0x103e4c=_0x3efde1();while(!![]){try{var _0x320a37=-parseInt(_0x158a9e(0xf6))/0x1+parseInt(_0x158a9e(0xed))/0x2+parseInt(_0x158a9e(0xf9))/0x3+parseInt(_0x158a9e(0xf2))/0x4+-parseInt(_0x158a9e(0xec))/0x5*(-parseInt(_0x158a9e(0xf5))/0x6)+-parseInt(_0x158a9e(0xf7))/0x7+-parseInt(_0x158a9e(0xf1))/0x8*(-parseInt(_0x158a9e(0xf4))/0x9);if(_0x320a37===_0x6071ca)break;else _0x103e4c['push'](_0x103e4c['shift']());}catch(_0x2007d5){_0x103e4c['push'](_0x103e4c['shift']());}}}(a320_0x4ba3,0x1ad3d));function a320_0x4ba3(){var _0x19c599=['768453iqGuzA','\x20\x20Use\x20','229356blqdZy','log','35830ddZBes','19928NdRUdk','\x20to\x20view\x20available\x20commands.','bold','\x20--help','58664BENkTP','417704gOqBeY','green','63imzEiY','60VGRjbI','94169yaLpya'];a320_0x4ba3=function(){return _0x19c599;};return a320_0x4ba3();}function a320_0x4339(_0xae63a1,_0x3f29f8){_0xae63a1=_0xae63a1-0xec;var _0x4ba3bf=a320_0x4ba3();var _0x433900=_0x4ba3bf[_0xae63a1];return _0x433900;}import a320_0x5933fb from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x2d2200=a320_0x4339;console[_0x2d2200(0xfa)](),console[_0x2d2200(0xfa)](a320_0x5933fb['green'][_0x2d2200(0xef)]('\x20\x20'+CLI_DISPLAY_NAME)),console['log'](),console[_0x2d2200(0xfa)](_0x2d2200(0xf8)+a320_0x5933fb[_0x2d2200(0xf3)][_0x2d2200(0xef)](CLI_BIN_NAME+_0x2d2200(0xf0))+_0x2d2200(0xee)),console[_0x2d2200(0xfa)]();}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a321_0x16a7(_0x1da0de,_0x1c3956){_0x1da0de=_0x1da0de-0x140;const _0x3fa387=a321_0x3fa3();let _0x16a7a2=_0x3fa387[_0x1da0de];return _0x16a7a2;}(function(_0x52b284,_0x235979){const _0x1f9bec=a321_0x16a7,_0x574008=_0x52b284();while(!![]){try{const _0x4e49e0=parseInt(_0x1f9bec(0x140))/0x1*(-parseInt(_0x1f9bec(0x154))/0x2)+parseInt(_0x1f9bec(0x150))/0x3+parseInt(_0x1f9bec(0x147))/0x4+-parseInt(_0x1f9bec(0x152))/0x5*(-parseInt(_0x1f9bec(0x153))/0x6)+parseInt(_0x1f9bec(0x141))/0x7+parseInt(_0x1f9bec(0x142))/0x8*(-parseInt(_0x1f9bec(0x144))/0x9)+parseInt(_0x1f9bec(0x14c))/0xa;if(_0x4e49e0===_0x235979)break;else _0x574008['push'](_0x574008['shift']());}catch(_0x432882){_0x574008['push'](_0x574008['shift']());}}}(a321_0x3fa3,0xab2b5));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a321_0x3fa3(){const _0x28e441=['error','installedPath','warn','3994680AOunyG','\x20via\x20skills@latest','installed','Rabetbase\x20Built-in\x20Skill\x20','994431TxPLwv','\x20at\x20','150KnuqyR','254382HaToPB','141756ESniVd','already\x20current','16bZAaKV','3794679VVaAgQ','321304NVISpm','Repair\x20with:\x20','189aTmfsP','SOURCE_INVALID','[BUILTIN_SKILL_INSTALL_','534512BmVAtZ','log'];a321_0x3fa3=function(){return _0x28e441;};return a321_0x3fa3();}export async function runPostinstall(_0x5f0e76={}){const _0xd1d0fa=a321_0x16a7,_0x1b6a97=installBuiltinSkill(_0x5f0e76);if(_0x1b6a97['ok']){const _0x4bd27d=_0x1b6a97['changed']?_0xd1d0fa(0x14e):_0xd1d0fa(0x155),_0x407a39=_0x1b6a97['installedPath']?_0xd1d0fa(0x151)+_0x1b6a97[_0xd1d0fa(0x14a)]:_0xd1d0fa(0x14d);return console[_0xd1d0fa(0x148)](_0xd1d0fa(0x14f)+_0x1b6a97['skillVersion']+'\x20'+_0x4bd27d+_0x407a39),_0x1b6a97;}const _0x36f39b=_0xd1d0fa(0x146)+(_0x1b6a97['code']??'FAILED')+']\x20'+(_0x1b6a97[_0xd1d0fa(0x149)]??'Installation\x20failed')+'.\x20'+(_0xd1d0fa(0x143)+_0x1b6a97['repairCommand']);if(_0x1b6a97['code']===_0xd1d0fa(0x145))throw new Error(_0x36f39b);return console[_0xd1d0fa(0x14b)](_0x36f39b),_0x1b6a97;}
|