@lovrabet/rabetbase-cli 2.5.3-beta.2 → 2.5.3-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.d.ts +22 -0
- package/lib/api/api-group.js +1 -0
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.d.ts +18 -2
- 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.d.ts +11 -0
- package/lib/api/legacy-api-file.js +1 -0
- package/lib/api/model-registry-file.d.ts +36 -0
- package/lib/api/model-registry-file.js +1 -0
- package/lib/api/model-registry-scaffold.d.ts +7 -0
- package/lib/api/model-registry-scaffold.js +1 -0
- package/lib/api/model-source.d.ts +6 -0
- package/lib/api/model-source.js +1 -0
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.d.ts +7 -0
- 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.d.ts +2 -0
- package/lib/commands/dataset/cross-relation-create.js +1 -0
- package/lib/commands/dataset/cross-relation-delete.d.ts +2 -0
- package/lib/commands/dataset/cross-relation-delete.js +1 -0
- package/lib/commands/dataset/cross-relation-list.d.ts +2 -0
- package/lib/commands/dataset/cross-relation-list.js +1 -0
- package/lib/commands/dataset/cross-relation-shared.d.ts +190 -0
- package/lib/commands/dataset/cross-relation-shared.js +1 -0
- package/lib/commands/dataset/cross-relation-update.d.ts +2 -0
- package/lib/commands/dataset/cross-relation-update.js +1 -0
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.d.ts +28 -0
- package/lib/commands/project/api-architecture-upgrade.js +1 -0
- 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.d.ts +30 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.d.ts +5 -3
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.d.ts +2 -0
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.d.ts +2 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.d.ts +13 -17
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +6 -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.d.ts +41 -0
- package/lib/core/cross-db-relation.js +1 -0
- 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.d.ts +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.d.ts +0 -10
- 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/types/index.d.ts +11 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.d.ts +19 -0
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +6 -1
- package/skills/rabetbase/SKILL.md +16 -10
- package/skills/rabetbase/guides/backend-function.md +5 -1
- package/skills/rabetbase/guides/bff-creation-workflow.md +3 -1
- package/skills/rabetbase/guides/cross-database-bff.md +70 -0
- package/skills/rabetbase/guides/data-api-guidelines.md +35 -33
- package/skills/rabetbase/guides/sdk-client-generation.md +112 -61
- package/skills/rabetbase/guides/sql-creation-workflow.md +2 -0
- package/skills/rabetbase/guides/typescript-sdk.md +9 -0
- package/skills/rabetbase/references/rabetbase-api-pull.md +30 -19
- package/skills/rabetbase/references/rabetbase-app-list.md +1 -1
- package/skills/rabetbase/references/rabetbase-config.md +2 -1
- package/skills/rabetbase/references/rabetbase-dataset-cross-relations.md +64 -0
- package/skills/rabetbase/references/rabetbase-project-create.md +3 -3
- package/skills/rabetbase/references/rabetbase-project-upgrade.md +24 -13
- package/skills/rabetbase.manifest.json +5 -3
- package/templates/README.md +46 -6
- package/templates/generate-api/model-runtime.ts.tpl +101 -0
- package/templates/generate-api/profile-api.ts.tpl +21 -0
- package/templates/generate-api/profile-client.ts.tpl +14 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
const a284_0x3ab3f4=a284_0x50f1;(function(_0x3cca1c,_0x57a58f){const _0x5b1421=a284_0x50f1,_0x2f0a56=_0x3cca1c();while(!![]){try{const _0x2c9183=-parseInt(_0x5b1421(0xb1))/0x1*(parseInt(_0x5b1421(0xab))/0x2)+parseInt(_0x5b1421(0xde))/0x3*(parseInt(_0x5b1421(0x9c))/0x4)+parseInt(_0x5b1421(0xc8))/0x5*(parseInt(_0x5b1421(0xf1))/0x6)+parseInt(_0x5b1421(0xac))/0x7*(-parseInt(_0x5b1421(0xe4))/0x8)+parseInt(_0x5b1421(0xd8))/0x9+parseInt(_0x5b1421(0xa7))/0xa*(-parseInt(_0x5b1421(0xd4))/0xb)+-parseInt(_0x5b1421(0xd6))/0xc*(-parseInt(_0x5b1421(0xb4))/0xd);if(_0x2c9183===_0x57a58f)break;else _0x2f0a56['push'](_0x2f0a56['shift']());}catch(_0x257ca9){_0x2f0a56['push'](_0x2f0a56['shift']());}}}(a284_0x2b59,0x3ba48));const MYBATIS_OUTER_TAGS=new Map([[a284_0x3ab3f4(0xb2),'SELECT'],[a284_0x3ab3f4(0xae),a284_0x3ab3f4(0xb3)],[a284_0x3ab3f4(0xdf),a284_0x3ab3f4(0xc9)],[a284_0x3ab3f4(0xe5),a284_0x3ab3f4(0xe0)]]),MYBATIS_DYNAMIC_TAGS=new Set(['if',a284_0x3ab3f4(0xfb),a284_0x3ab3f4(0xad),a284_0x3ab3f4(0xe9),a284_0x3ab3f4(0xbc),'otherwise',a284_0x3ab3f4(0xb5),'set','bind','include',a284_0x3ab3f4(0xf5)]),MYBATIS_BRANCH_TAGS=new Set(['if','foreach',a284_0x3ab3f4(0xe9),a284_0x3ab3f4(0xbc),a284_0x3ab3f4(0xd1)]);export const MYBATIS_DYNAMIC_START_MARKER=a284_0x3ab3f4(0xd7);export const MYBATIS_DYNAMIC_END_MARKER='__RABETBASE_MYBATIS_DYNAMIC_END__';export const MYBATIS_INCLUDE_MARKER=a284_0x3ab3f4(0xef);const UNRESOLVED_SQL_FRAGMENT=a284_0x3ab3f4(0xb8),MYBATIS_OUTER_TAG_PATTERN=new RegExp(a284_0x3ab3f4(0xaa)+[...MYBATIS_OUTER_TAGS[a284_0x3ab3f4(0xc1)]()][a284_0x3ab3f4(0xeb)]('|')+')\x5cb','i');export function normalizeSqlForStaticAnalysis(_0x4ce25c){const _0x2bc6dd=a284_0x3ab3f4,_0x23c5a3=typeof _0x4ce25c===_0x2bc6dd(0xa2)?_0x4ce25c:'';if(!startsWithMybatisStatementWrapper(_0x23c5a3))return{'sql':_0x23c5a3,'mode':_0x2bc6dd(0xee)};let _0x16c2d5=0x0,_0x4607a0='',_0x1d357b,_0x3b2759=![],_0x4bd089=![];const _0x10d06f=[];while(_0x16c2d5<_0x23c5a3[_0x2bc6dd(0xd9)]){if(_0x23c5a3[_0x2bc6dd(0xfa)]('<!--',_0x16c2d5)){const _0x1ed66=_0x23c5a3[_0x2bc6dd(0xb9)](_0x2bc6dd(0xec),_0x16c2d5+0x4);if(_0x1ed66<0x0)return invalidMybatisSource(_0x2bc6dd(0xfd));_0x4607a0+='\x20',_0x16c2d5=_0x1ed66+0x3;continue;}if(_0x23c5a3[_0x2bc6dd(0xfa)](_0x2bc6dd(0xfc),_0x16c2d5)){if(!_0x3b2759||_0x4bd089)return invalidMybatisSource('CDATA\x20sections\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.');const _0x10e482=_0x23c5a3[_0x2bc6dd(0xb9)](_0x2bc6dd(0xea),_0x16c2d5+0x9);if(_0x10e482<0x0)return invalidMybatisSource(_0x2bc6dd(0xc0));_0x4607a0+=_0x23c5a3[_0x2bc6dd(0xb6)](_0x16c2d5+0x9,_0x10e482),_0x16c2d5=_0x10e482+0x3;continue;}if(_0x23c5a3[_0x2bc6dd(0xfa)]('<?',_0x16c2d5)){if(_0x3b2759)return invalidMybatisSource(_0x2bc6dd(0xa4));const _0x17accb=_0x23c5a3['indexOf']('?>',_0x16c2d5+0x2);if(_0x17accb<0x0)return invalidMybatisSource(_0x2bc6dd(0x9f));_0x4607a0+='\x20',_0x16c2d5=_0x17accb+0x2;continue;}if(_0x23c5a3[_0x16c2d5]!=='<'){const _0x5e08ed=_0x23c5a3['indexOf']('<',_0x16c2d5),_0x188b67=_0x5e08ed<0x0?_0x23c5a3['length']:_0x5e08ed,_0x40fd7e=_0x23c5a3['slice'](_0x16c2d5,_0x188b67);if((!_0x3b2759||_0x4bd089)&&_0x40fd7e['trim']())return invalidMybatisSource(_0x2bc6dd(0xf3));if(_0x3b2759&&!_0x4bd089){const _0x1bab4d=decodeXmlEntities(_0x40fd7e);if(_0x1bab4d===null)return invalidMybatisSource(_0x2bc6dd(0xf7));_0x4607a0+=_0x1bab4d;}else _0x4607a0+='\x20';_0x16c2d5=_0x188b67;continue;}const _0x551de8=findXmlTagEnd(_0x23c5a3,_0x16c2d5);if(_0x551de8<0x0)return invalidMybatisSource(_0x2bc6dd(0xcd));const _0x168dd6=_0x23c5a3[_0x2bc6dd(0xb6)](_0x16c2d5,_0x551de8+0x1),_0x5a0648=/^<\s*(\/?)\s*([A-Za-z][\w:-]*)([\s\S]*?)(\/?)\s*>$/[_0x2bc6dd(0xed)](_0x168dd6);if(!_0x5a0648)return invalidMybatisSource(_0x2bc6dd(0xc6));const _0x3ee21d=_0x5a0648[0x1]==='/',_0x24b68b=_0x5a0648[0x2]??'',_0x47f451=_0x24b68b['toLowerCase'](),_0x168d73=_0x5a0648[0x3]??'',_0x15907e=_0x5a0648[0x4]==='/',_0x1b1145=MYBATIS_OUTER_TAGS['get'](_0x47f451);if(!_0x1b1145&&!MYBATIS_DYNAMIC_TAGS[_0x2bc6dd(0xe6)](_0x47f451))return invalidMybatisSource(_0x2bc6dd(0xc4)+_0x47f451+'>.');if(!_0x1b1145&&_0x24b68b!==_0x47f451)return invalidMybatisSource(_0x2bc6dd(0xe8)+_0x24b68b+'>.');if(_0x3ee21d){if(_0x168d73[_0x2bc6dd(0xb5)]()||_0x15907e)return invalidMybatisSource(_0x2bc6dd(0xf6)+_0x24b68b+'>.');const _0x575236=_0x10d06f['at'](-0x1);if(!_0x575236||(_0x575236[_0x2bc6dd(0xaf)]?_0x575236['tagName']!==_0x47f451:_0x575236['rawName']!==_0x24b68b))return invalidMybatisSource(_0x2bc6dd(0xc7)+_0x24b68b+'>.');_0x10d06f[_0x2bc6dd(0xba)]();if(_0x575236[_0x2bc6dd(0xaf)])_0x4bd089=!![];_0x4607a0+=MYBATIS_BRANCH_TAGS[_0x2bc6dd(0xe6)](_0x47f451)?'\x20'+MYBATIS_DYNAMIC_END_MARKER+'\x20':'\x20';}else{if(!hasWellFormedXmlAttributes(_0x168d73))return invalidMybatisSource(_0x2bc6dd(0xf9)+_0x24b68b+'>.');if(_0x47f451===_0x2bc6dd(0xf5)&&(!_0x15907e||_0x10d06f['at'](-0x1)?.[_0x2bc6dd(0xa3)]!==_0x2bc6dd(0xa6)))return invalidMybatisSource('MyBatis\x20<property>\x20must\x20be\x20a\x20self-closing\x20direct\x20child\x20of\x20<include>.');if(_0x1b1145){if(_0x3b2759||_0x10d06f[_0x2bc6dd(0xd9)]>0x0)return invalidMybatisSource(_0x2bc6dd(0xe7));_0x3b2759=!![],_0x4bd089=_0x15907e,_0x1d357b=_0x1b1145;}else{if(!_0x3b2759||_0x4bd089)return invalidMybatisSource(_0x2bc6dd(0xc5)+_0x24b68b+'>.');}_0x4607a0+=_0x47f451===_0x2bc6dd(0xfb)?_0x2bc6dd(0xd5):_0x47f451===_0x2bc6dd(0x9a)?_0x2bc6dd(0xcb):_0x47f451===_0x2bc6dd(0xa6)?'\x20'+MYBATIS_INCLUDE_MARKER+'\x20':MYBATIS_BRANCH_TAGS[_0x2bc6dd(0xe6)](_0x47f451)&&!_0x15907e?'\x20'+MYBATIS_DYNAMIC_START_MARKER+'\x20':'\x20',!_0x15907e&&_0x10d06f['push']({'rawName':_0x24b68b,'tagName':_0x47f451,'outer':!!_0x1b1145});}_0x16c2d5=_0x551de8+0x1;}if(_0x10d06f[_0x2bc6dd(0xd9)]>0x0)return invalidMybatisSource('Unclosed\x20MyBatis\x20XML\x20tag:\x20<'+_0x10d06f['at'](-0x1)?.[_0x2bc6dd(0xa9)]+'>.');if(!_0x3b2759||!_0x4bd089)return invalidMybatisSource(_0x2bc6dd(0xd3));return{'sql':_0x4607a0[_0x2bc6dd(0xb5)](),'mode':_0x2bc6dd(0xbf),..._0x1d357b?{'statementType':_0x1d357b}:{}};}function hasWellFormedXmlAttributes(_0x5bda43){const _0x46dea2=a284_0x3ab3f4;let _0x435148=0x0;const _0x9ead10=new Set();while(_0x435148<_0x5bda43[_0x46dea2(0xd9)]){while(_0x435148<_0x5bda43['length']&&/\s/[_0x46dea2(0xdd)](_0x5bda43[_0x435148]??''))_0x435148+=0x1;if(_0x435148>=_0x5bda43[_0x46dea2(0xd9)])return!![];const _0x4a8ad9=/^[A-Za-z_:][\w:.-]*/[_0x46dea2(0xed)](_0x5bda43[_0x46dea2(0xb6)](_0x435148)),_0x3bea42=_0x4a8ad9?.[0x0];if(!_0x3bea42||_0x9ead10[_0x46dea2(0xe6)](_0x3bea42))return![];_0x9ead10['add'](_0x3bea42),_0x435148+=_0x3bea42[_0x46dea2(0xd9)];while(_0x435148<_0x5bda43[_0x46dea2(0xd9)]&&/\s/[_0x46dea2(0xdd)](_0x5bda43[_0x435148]??''))_0x435148+=0x1;if(_0x5bda43[_0x435148]!=='=')return![];_0x435148+=0x1;while(_0x435148<_0x5bda43['length']&&/\s/[_0x46dea2(0xdd)](_0x5bda43[_0x435148]??''))_0x435148+=0x1;const _0x1c9cbe=_0x5bda43[_0x435148];if(_0x1c9cbe!=='\x22'&&_0x1c9cbe!=='\x27')return![];_0x435148+=0x1;const _0x37888a=_0x5bda43[_0x46dea2(0xb9)](_0x1c9cbe,_0x435148);if(_0x37888a<0x0)return![];if(decodeXmlEntities(_0x5bda43[_0x46dea2(0xb6)](_0x435148,_0x37888a))===null)return![];_0x435148=_0x37888a+0x1;}return!![];}function a284_0x50f1(_0x5f383a,_0x34fc04){_0x5f383a=_0x5f383a-0x9a;const _0x2b597e=a284_0x2b59();let _0x50f150=_0x2b597e[_0x5f383a];return _0x50f150;}function a284_0x2b59(){const _0x450438=['from','mybatisXml','Unterminated\x20CDATA\x20section.','keys','matchAll','error','Unsupported\x20MyBatis\x20XML\x20tag:\x20<','MyBatis\x20dynamic\x20tag\x20must\x20be\x20inside\x20the\x20statement\x20wrapper:\x20<','Invalid\x20MyBatis\x20XML\x20tag.','Mismatched\x20MyBatis\x20XML\x20closing\x20tag:\x20</','5fGgrlB','UPDATE','parseInt','\x20SET\x20','Unable\x20to\x20detect\x20SQL\x20type.\x20','Unterminated\x20MyBatis\x20XML\x20tag.','"','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','<!--','otherwise','add','MyBatis\x20XML\x20must\x20contain\x20exactly\x20one\x20complete\x20statement\x20wrapper.','143CuLkMQ','\x20WHERE\x20','195732eTFxoj','__RABETBASE_MYBATIS_DYNAMIC_START__','1770210pZmmcX','length','fromCodePoint','SELECT','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','test','1351539rTVnJO','update','DELETE','split','reason','SQL\x20content\x20is\x20empty','32RILYvw','delete','has','Multiple\x20MyBatis\x20statement\x20wrappers\x20are\x20not\x20supported.','MyBatis\x20dynamic\x20tag\x20names\x20must\x20be\x20lowercase:\x20<','choose',']]>','join','-->','exec','sql','__RABETBASE_MYBATIS_INCLUDE_UNRESOLVED__','<','349158bBZgdI','WITH','SQL\x20text\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','replaceAll','property','Invalid\x20MyBatis\x20XML\x20closing\x20tag:\x20</','Invalid\x20XML\x20entity\x20reference.','toUpperCase','Invalid\x20attributes\x20on\x20MyBatis\x20XML\x20tag:\x20<','startsWith','where','<![CDATA[','Unterminated\x20XML\x20comment.','set','UNKNOWN','4YKghCs','\x20with\x20parameters:\x20','&','Unterminated\x20XML\x20declaration.','SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements','push','string','tagName','XML\x20declarations\x20must\x20precede\x20the\x20MyBatis\x20statement\x20wrapper.','type','include','83470kLEXKO','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','rawName','^<\x5cs*(?:','30468NCoLOy','538937fnhRqC','foreach','insert','outer','replace','4aRXGTS','select','INSERT','13snCNYe','trim','slice','unknown\x20table(s)','__RABETBASE_UNRESOLVED_SQL_FRAGMENT__','indexOf','pop','>','when','match'];a284_0x2b59=function(){return _0x450438;};return a284_0x2b59();}function startsWithMybatisStatementWrapper(_0xad77f){const _0x437393=a284_0x3ab3f4;let _0x2ae26a=0x0;const _0x558aab=()=>{const _0x57ac4c=a284_0x50f1;while(_0x2ae26a<_0xad77f[_0x57ac4c(0xd9)]&&/\s/[_0x57ac4c(0xdd)](_0xad77f[_0x2ae26a]??''))_0x2ae26a+=0x1;};_0x558aab();while(_0x2ae26a<_0xad77f[_0x437393(0xd9)]){if(_0xad77f['startsWith'](_0x437393(0xd0),_0x2ae26a)){const _0x22f49a=_0xad77f['indexOf'](_0x437393(0xec),_0x2ae26a+0x4);if(_0x22f49a<0x0)return!![];_0x2ae26a=_0x22f49a+0x3,_0x558aab();continue;}if(_0xad77f[_0x437393(0xfa)]('<?',_0x2ae26a)){const _0x1e47c9=_0xad77f['indexOf']('?>',_0x2ae26a+0x2);if(_0x1e47c9<0x0)return!![];_0x2ae26a=_0x1e47c9+0x2,_0x558aab();continue;}break;}return MYBATIS_OUTER_TAG_PATTERN['test'](_0xad77f[_0x437393(0xb6)](_0x2ae26a));}function invalidMybatisSource(_0x1bd5d8){const _0x4ca939=a284_0x3ab3f4;return{'sql':'','mode':_0x4ca939(0xbf),'error':_0x1bd5d8};}function findXmlTagEnd(_0x32f2c7,_0xf7a5e7){const _0x263196=a284_0x3ab3f4;let _0x5326e5;for(let _0x36f230=_0xf7a5e7+0x1;_0x36f230<_0x32f2c7[_0x263196(0xd9)];_0x36f230+=0x1){const _0x32a457=_0x32f2c7[_0x36f230];if(_0x5326e5){if(_0x32a457===_0x5326e5)_0x5326e5=undefined;continue;}if(_0x32a457==='\x22'||_0x32a457==='\x27'){_0x5326e5=_0x32a457;continue;}if(_0x32a457==='>')return _0x36f230;}return-0x1;}function decodeXmlEntities(_0x3dd5ad){const _0x4b0a48=a284_0x3ab3f4;let _0x43a2be=![];const _0x1e2683=_0x3dd5ad[_0x4b0a48(0xb0)](/&(?:#x[0-9a-f]+;|#[0-9]+;|[A-Za-z_:][\w:.-]*;)?/g,_0x580084=>{const _0x3c7195=_0x4b0a48;if(_0x580084===_0x3c7195(0xf0))return'<';if(_0x580084===_0x3c7195(0xbb))return'>';if(_0x580084===_0x3c7195(0xce))return'\x22';if(_0x580084===''')return'\x27';if(_0x580084===_0x3c7195(0x9e))return'&';const _0x214271=/^&#(?:x([0-9a-f]+)|([0-9]+));$/['exec'](_0x580084);if(_0x214271){const _0x3d15ff=_0x214271[0x1],_0x336737=_0x214271[0x2],_0xa7ef0c=Number[_0x3c7195(0xca)](_0x3d15ff??_0x336737??'',_0x3d15ff?0x10:0xa);if(isValidXmlCharacter(_0xa7ef0c))return String[_0x3c7195(0xda)](_0xa7ef0c);}return _0x43a2be=!![],'';});return _0x43a2be?null:_0x1e2683;}function isValidXmlCharacter(_0x5abe41){return _0x5abe41===0x9||_0x5abe41===0xa||_0x5abe41===0xd||_0x5abe41>=0x20&&_0x5abe41<=0xd7ff||_0x5abe41>=0xe000&&_0x5abe41<=0xfffd||_0x5abe41>=0x10000&&_0x5abe41<=0x10ffff;}export function detectSqlType(_0x364187){return detectNormalizedSqlType(normalizeSqlForStaticAnalysis(_0x364187));}function detectNormalizedSqlType(_0x4b2083){const _0x599944=a284_0x3ab3f4;if(_0x4b2083['error'])return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':_0x4b2083[_0x599944(0xc3)]};if(!_0x4b2083[_0x599944(0xee)]['trim']())return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':_0x599944(0xe3)};const _0x2584f5=stripStaticAnalysisMarkers(_0x4b2083[_0x599944(0xee)])[_0x599944(0xb0)](/#\{[^}]*\}/g,'?')[_0x599944(0xb0)](/\$\{[^}]*\}/g,'?')[_0x599944(0xb0)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x599944(0xb0)](/\/\*[\s\S]*?\*\//g,'')[_0x599944(0xb5)](),_0x1814b9=_0x2584f5[_0x599944(0xe1)]('\x0a');let _0x2f23d5='';for(const _0x112dbb of _0x1814b9){const _0x576742=_0x112dbb[_0x599944(0xb5)]();if(!_0x576742||_0x576742[_0x599944(0xfa)]('--')||_0x576742[_0x599944(0xfa)]('/*'))continue;_0x2f23d5=_0x576742;break;}const _0x844797=_0x2f23d5[_0x599944(0xf8)](),_0x152f7c=_0x4b2083['statementType'],_0x1ec8d9=maskSqlTextForBlockedKeywordScan(_0x2584f5),_0x56ab40=/\b(DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x599944(0xdd)](_0x1ec8d9);if(_0x152f7c===_0x599944(0xdb)||!_0x152f7c&&(_0x844797[_0x599944(0xfa)](_0x599944(0xdb))||_0x844797['startsWith'](_0x599944(0xf2)))){const _0x1dd64c=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x599944(0xdd)](_0x2584f5);return{'type':_0x599944(0xdb),'isSelectOnly':!_0x1dd64c,'isDangerous':_0x1dd64c,'reason':_0x1dd64c?'SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT':undefined};}if(_0x152f7c===_0x599944(0xb3)||!_0x152f7c&&_0x844797[_0x599944(0xfa)](_0x599944(0xb3)))return{'type':_0x599944(0xb3),'isSelectOnly':![],'isDangerous':_0x56ab40,'reason':_0x56ab40?_0x599944(0xa0):undefined};if(_0x152f7c==='UPDATE'||!_0x152f7c&&_0x844797[_0x599944(0xfa)](_0x599944(0xc9)))return{'type':'UPDATE','isSelectOnly':![],'isDangerous':_0x56ab40,'reason':_0x56ab40?_0x599944(0xa0):undefined};if(_0x152f7c==='DELETE'||!_0x152f7c&&_0x844797[_0x599944(0xfa)](_0x599944(0xe0)))return{'type':_0x599944(0xe0),'isSelectOnly':![],'isDangerous':!![],'reason':_0x599944(0xcf)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x599944(0xdd)](_0x844797))return{'type':'DDL','isSelectOnly':![],'isDangerous':!![],'reason':_0x599944(0xdc)};return{'type':_0x599944(0x9b),'isSelectOnly':![],'isDangerous':![]};}function stripStaticAnalysisMarkers(_0x827b22){const _0x572f3e=a284_0x3ab3f4;return _0x827b22[_0x572f3e(0xf4)](MYBATIS_DYNAMIC_START_MARKER,'\x20')[_0x572f3e(0xf4)](MYBATIS_DYNAMIC_END_MARKER,'\x20')[_0x572f3e(0xf4)](MYBATIS_INCLUDE_MARKER,'\x20'+UNRESOLVED_SQL_FRAGMENT+'\x20');}function maskSqlTextForBlockedKeywordScan(_0x5491fb){const _0x12a5f4=a284_0x3ab3f4;return _0x5491fb[_0x12a5f4(0xb0)](/'(?:''|\\.|[^'])*'/g,'\x20')['replace'](/"(?:""|\\.|[^"])*"/g,'\x20')[_0x12a5f4(0xb0)](/`(?:``|\\.|[^`])*`/g,'\x20')[_0x12a5f4(0xb0)](/--.*$/gm,'\x20')[_0x12a5f4(0xb0)](/#.*$/gm,'\x20')[_0x12a5f4(0xb0)](/\/\*[\s\S]*?\*\//g,'\x20');}function extractTables(_0x50e8d7){const _0x15c557=a284_0x3ab3f4,_0x4712b8=_0x50e8d7[_0x15c557(0xb0)](/#\{[^}]*\}/g,'?')[_0x15c557(0xb0)](/\$\{[^}]*\}/g,'?')[_0x15c557(0xb0)](/'[^']*'/g,'\x27\x27')[_0x15c557(0xb0)](/--.*$/gm,'')[_0x15c557(0xb0)](/\/\*[\s\S]*?\*\//g,''),_0x2713f0=[],_0x159152=_0x4712b8[_0x15c557(0xbd)](/FROM\s+([^\s,)(]+)/i);addTable(_0x2713f0,_0x159152?.[0x1]);for(const _0x289b4e of _0x4712b8['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){addTable(_0x2713f0,_0x289b4e[0x1]);}const _0x25d583=_0x4712b8[_0x15c557(0xbd)](/INTO\s+([^\s(]+)/i);addTable(_0x2713f0,_0x25d583?.[0x1]);const _0x45df50=_0x4712b8['match'](/UPDATE\s+([^\s,)(]+)/i);return addTable(_0x2713f0,_0x45df50?.[0x1]),_0x2713f0;}function addTable(_0x158d39,_0x52d8c6){const _0x5878a4=a284_0x3ab3f4,_0x94af64=_0x52d8c6?.['replace'](/[`"]/g,'');_0x94af64&&_0x94af64!==UNRESOLVED_SQL_FRAGMENT&&!_0x158d39['includes'](_0x94af64)&&_0x158d39[_0x5878a4(0xa1)](_0x94af64);}function extractParameters(_0x3555c2){const _0x5806d9=a284_0x3ab3f4,_0x69595e=new Set();for(const _0x138b58 of _0x3555c2[_0x5806d9(0xc2)](/[#$]\{\s*([A-Za-z_][\w.]*)\s*(?=[,}])/g)){if(_0x138b58[0x1])_0x69595e[_0x5806d9(0xd2)](_0x138b58[0x1]);}return Array[_0x5806d9(0xbe)](_0x69595e);}export function validateSql(_0x1ee76e){const _0x5c525b=a284_0x3ab3f4,_0x44f1f5=normalizeSqlForStaticAnalysis(_0x1ee76e),_0x500b46=detectNormalizedSqlType(_0x44f1f5),_0x24dd6d=stripStaticAnalysisMarkers(_0x44f1f5['sql']),_0x35f5bb=_0x44f1f5[_0x5c525b(0xc3)]?[]:extractTables(_0x24dd6d),_0x51ee4d=_0x44f1f5[_0x5c525b(0xc3)]?[]:extractParameters(_0x24dd6d);if(_0x500b46['isDangerous'])return{'valid':![],'sqlType':_0x500b46,'tables':_0x35f5bb,'parameters':_0x51ee4d,'message':_0x500b46[_0x5c525b(0xe2)]||_0x500b46['type']+'\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'};if(_0x500b46['type']===_0x5c525b(0x9b))return{'valid':![],'sqlType':_0x500b46,'tables':_0x35f5bb,'parameters':_0x51ee4d,'message':_0x44f1f5[_0x5c525b(0xc3)]?_0x5c525b(0xcc)+_0x44f1f5['error']:_0x5c525b(0xa8)};return{'valid':!![],'sqlType':_0x500b46,'tables':_0x35f5bb,'parameters':_0x51ee4d,'message':_0x500b46[_0x5c525b(0xa5)]+'\x20query\x20targeting\x20'+(_0x35f5bb[_0x5c525b(0xd9)]?_0x35f5bb[_0x5c525b(0xeb)](',\x20'):_0x5c525b(0xb7))+(_0x51ee4d[_0x5c525b(0xd9)]?_0x5c525b(0x9d)+_0x51ee4d['join'](',\x20'):'')};}
|
|
1
|
+
const a296_0xe2d21f=a296_0x2ec3;(function(_0x8ddda8,_0x112b3e){const _0x1833c8=a296_0x2ec3,_0x505990=_0x8ddda8();while(!![]){try{const _0x366195=parseInt(_0x1833c8(0x164))/0x1*(-parseInt(_0x1833c8(0x199))/0x2)+-parseInt(_0x1833c8(0x181))/0x3*(parseInt(_0x1833c8(0x17b))/0x4)+parseInt(_0x1833c8(0x154))/0x5+-parseInt(_0x1833c8(0x14a))/0x6*(-parseInt(_0x1833c8(0x15f))/0x7)+parseInt(_0x1833c8(0x17a))/0x8*(-parseInt(_0x1833c8(0x177))/0x9)+-parseInt(_0x1833c8(0x166))/0xa*(parseInt(_0x1833c8(0x159))/0xb)+parseInt(_0x1833c8(0x170))/0xc;if(_0x366195===_0x112b3e)break;else _0x505990['push'](_0x505990['shift']());}catch(_0x25f45f){_0x505990['push'](_0x505990['shift']());}}}(a296_0x5868,0xbb8ef));const MYBATIS_OUTER_TAGS=new Map([[a296_0xe2d21f(0x185),a296_0xe2d21f(0x14c)],[a296_0xe2d21f(0x15a),a296_0xe2d21f(0x1ab)],[a296_0xe2d21f(0x19c),a296_0xe2d21f(0x19b)],['delete',a296_0xe2d21f(0x1ad)]]),MYBATIS_DYNAMIC_TAGS=new Set(['if',a296_0xe2d21f(0x18d),a296_0xe2d21f(0x18a),'choose',a296_0xe2d21f(0x149),a296_0xe2d21f(0x197),a296_0xe2d21f(0x16a),a296_0xe2d21f(0x19a),a296_0xe2d21f(0x1a4),'include','property']),MYBATIS_BRANCH_TAGS=new Set(['if',a296_0xe2d21f(0x18a),a296_0xe2d21f(0x14f),a296_0xe2d21f(0x149),a296_0xe2d21f(0x197)]);export const MYBATIS_DYNAMIC_START_MARKER=a296_0xe2d21f(0x157);function a296_0x2ec3(_0x195ea1,_0xb7b919){_0x195ea1=_0x195ea1-0x149;const _0x586834=a296_0x5868();let _0x2ec347=_0x586834[_0x195ea1];return _0x2ec347;}export const MYBATIS_DYNAMIC_END_MARKER='__RABETBASE_MYBATIS_DYNAMIC_END__';export const MYBATIS_INCLUDE_MARKER=a296_0xe2d21f(0x179);const UNRESOLVED_SQL_FRAGMENT='__RABETBASE_UNRESOLVED_SQL_FRAGMENT__',MYBATIS_OUTER_TAG_PATTERN=new RegExp(a296_0xe2d21f(0x1a7)+[...MYBATIS_OUTER_TAGS[a296_0xe2d21f(0x1a3)]()][a296_0xe2d21f(0x150)]('|')+')\x5cb','i');export function normalizeSqlForStaticAnalysis(_0x856003){const _0x3cfd8b=a296_0xe2d21f,_0xbbb8ad=typeof _0x856003===_0x3cfd8b(0x19f)?_0x856003:'';if(!startsWithMybatisStatementWrapper(_0xbbb8ad))return{'sql':_0xbbb8ad,'mode':'sql'};let _0x4bf2ac=0x0,_0x192f21='',_0x11f694,_0x2744ee=![],_0x3858a=![];const _0x2db200=[];while(_0x4bf2ac<_0xbbb8ad[_0x3cfd8b(0x15d)]){if(_0xbbb8ad['startsWith'](_0x3cfd8b(0x18f),_0x4bf2ac)){const _0x2837b5=_0xbbb8ad[_0x3cfd8b(0x17f)](_0x3cfd8b(0x182),_0x4bf2ac+0x4);if(_0x2837b5<0x0)return invalidMybatisSource('Unterminated\x20XML\x20comment.');_0x192f21+='\x20',_0x4bf2ac=_0x2837b5+0x3;continue;}if(_0xbbb8ad['startsWith'](_0x3cfd8b(0x187),_0x4bf2ac)){if(!_0x2744ee||_0x3858a)return invalidMybatisSource(_0x3cfd8b(0x1b2));const _0xc20c22=_0xbbb8ad[_0x3cfd8b(0x17f)](_0x3cfd8b(0x189),_0x4bf2ac+0x9);if(_0xc20c22<0x0)return invalidMybatisSource(_0x3cfd8b(0x169));_0x192f21+=_0xbbb8ad[_0x3cfd8b(0x1ac)](_0x4bf2ac+0x9,_0xc20c22),_0x4bf2ac=_0xc20c22+0x3;continue;}if(_0xbbb8ad[_0x3cfd8b(0x190)]('<?',_0x4bf2ac)){if(_0x2744ee)return invalidMybatisSource(_0x3cfd8b(0x176));const _0x886883=_0xbbb8ad[_0x3cfd8b(0x17f)]('?>',_0x4bf2ac+0x2);if(_0x886883<0x0)return invalidMybatisSource(_0x3cfd8b(0x156));_0x192f21+='\x20',_0x4bf2ac=_0x886883+0x2;continue;}if(_0xbbb8ad[_0x4bf2ac]!=='<'){const _0xc615c8=_0xbbb8ad[_0x3cfd8b(0x17f)]('<',_0x4bf2ac),_0x91f3ab=_0xc615c8<0x0?_0xbbb8ad['length']:_0xc615c8,_0x4c1eae=_0xbbb8ad[_0x3cfd8b(0x1ac)](_0x4bf2ac,_0x91f3ab);if((!_0x2744ee||_0x3858a)&&_0x4c1eae[_0x3cfd8b(0x16a)]())return invalidMybatisSource(_0x3cfd8b(0x160));if(_0x2744ee&&!_0x3858a){const _0x18ae4c=decodeXmlEntities(_0x4c1eae);if(_0x18ae4c===null)return invalidMybatisSource(_0x3cfd8b(0x167));_0x192f21+=_0x18ae4c;}else _0x192f21+='\x20';_0x4bf2ac=_0x91f3ab;continue;}const _0x34888e=findXmlTagEnd(_0xbbb8ad,_0x4bf2ac);if(_0x34888e<0x0)return invalidMybatisSource(_0x3cfd8b(0x14b));const _0x3cff79=_0xbbb8ad[_0x3cfd8b(0x1ac)](_0x4bf2ac,_0x34888e+0x1),_0x1f2ae1=/^<\s*(\/?)\s*([A-Za-z][\w:-]*)([\s\S]*?)(\/?)\s*>$/[_0x3cfd8b(0x168)](_0x3cff79);if(!_0x1f2ae1)return invalidMybatisSource('Invalid\x20MyBatis\x20XML\x20tag.');const _0x5a5dfe=_0x1f2ae1[0x1]==='/',_0x472d44=_0x1f2ae1[0x2]??'',_0x541bd0=_0x472d44[_0x3cfd8b(0x15c)](),_0x346f03=_0x1f2ae1[0x3]??'',_0x1c2e29=_0x1f2ae1[0x4]==='/',_0x54ec71=MYBATIS_OUTER_TAGS[_0x3cfd8b(0x174)](_0x541bd0);if(!_0x54ec71&&!MYBATIS_DYNAMIC_TAGS['has'](_0x541bd0))return invalidMybatisSource(_0x3cfd8b(0x152)+_0x541bd0+'>.');if(!_0x54ec71&&_0x472d44!==_0x541bd0)return invalidMybatisSource(_0x3cfd8b(0x18b)+_0x472d44+'>.');if(_0x5a5dfe){if(_0x346f03[_0x3cfd8b(0x16a)]()||_0x1c2e29)return invalidMybatisSource(_0x3cfd8b(0x1b0)+_0x472d44+'>.');const _0x2691d2=_0x2db200['at'](-0x1);if(!_0x2691d2||(_0x2691d2[_0x3cfd8b(0x15e)]?_0x2691d2[_0x3cfd8b(0x17e)]!==_0x541bd0:_0x2691d2[_0x3cfd8b(0x196)]!==_0x472d44))return invalidMybatisSource(_0x3cfd8b(0x186)+_0x472d44+'>.');_0x2db200[_0x3cfd8b(0x172)]();if(_0x2691d2['outer'])_0x3858a=!![];_0x192f21+=MYBATIS_BRANCH_TAGS[_0x3cfd8b(0x171)](_0x541bd0)?'\x20'+MYBATIS_DYNAMIC_END_MARKER+'\x20':'\x20';}else{if(!hasWellFormedXmlAttributes(_0x346f03))return invalidMybatisSource(_0x3cfd8b(0x1a2)+_0x472d44+'>.');if(_0x541bd0===_0x3cfd8b(0x1a6)&&(!_0x1c2e29||_0x2db200['at'](-0x1)?.['tagName']!=='include'))return invalidMybatisSource(_0x3cfd8b(0x195));if(_0x54ec71){if(_0x2744ee||_0x2db200[_0x3cfd8b(0x15d)]>0x0)return invalidMybatisSource('Multiple\x20MyBatis\x20statement\x20wrappers\x20are\x20not\x20supported.');_0x2744ee=!![],_0x3858a=_0x1c2e29,_0x11f694=_0x54ec71;}else{if(!_0x2744ee||_0x3858a)return invalidMybatisSource(_0x3cfd8b(0x16d)+_0x472d44+'>.');}_0x192f21+=_0x541bd0===_0x3cfd8b(0x18d)?_0x3cfd8b(0x19e):_0x541bd0===_0x3cfd8b(0x19a)?_0x3cfd8b(0x1a0):_0x541bd0===_0x3cfd8b(0x1b1)?'\x20'+MYBATIS_INCLUDE_MARKER+'\x20':MYBATIS_BRANCH_TAGS['has'](_0x541bd0)&&!_0x1c2e29?'\x20'+MYBATIS_DYNAMIC_START_MARKER+'\x20':'\x20',!_0x1c2e29&&_0x2db200[_0x3cfd8b(0x193)]({'rawName':_0x472d44,'tagName':_0x541bd0,'outer':!!_0x54ec71});}_0x4bf2ac=_0x34888e+0x1;}if(_0x2db200[_0x3cfd8b(0x15d)]>0x0)return invalidMybatisSource('Unclosed\x20MyBatis\x20XML\x20tag:\x20<'+_0x2db200['at'](-0x1)?.['rawName']+'>.');if(!_0x2744ee||!_0x3858a)return invalidMybatisSource(_0x3cfd8b(0x16f));return{'sql':_0x192f21[_0x3cfd8b(0x16a)](),'mode':_0x3cfd8b(0x18e),..._0x11f694?{'statementType':_0x11f694}:{}};}function hasWellFormedXmlAttributes(_0x5e3b74){const _0x1402e2=a296_0xe2d21f;let _0x2f7121=0x0;const _0x1d089c=new Set();while(_0x2f7121<_0x5e3b74[_0x1402e2(0x15d)]){while(_0x2f7121<_0x5e3b74[_0x1402e2(0x15d)]&&/\s/['test'](_0x5e3b74[_0x2f7121]??''))_0x2f7121+=0x1;if(_0x2f7121>=_0x5e3b74[_0x1402e2(0x15d)])return!![];const _0x18f6fd=/^[A-Za-z_:][\w:.-]*/[_0x1402e2(0x168)](_0x5e3b74['slice'](_0x2f7121)),_0x4c6b31=_0x18f6fd?.[0x0];if(!_0x4c6b31||_0x1d089c[_0x1402e2(0x171)](_0x4c6b31))return![];_0x1d089c[_0x1402e2(0x173)](_0x4c6b31),_0x2f7121+=_0x4c6b31['length'];while(_0x2f7121<_0x5e3b74[_0x1402e2(0x15d)]&&/\s/[_0x1402e2(0x15b)](_0x5e3b74[_0x2f7121]??''))_0x2f7121+=0x1;if(_0x5e3b74[_0x2f7121]!=='=')return![];_0x2f7121+=0x1;while(_0x2f7121<_0x5e3b74[_0x1402e2(0x15d)]&&/\s/[_0x1402e2(0x15b)](_0x5e3b74[_0x2f7121]??''))_0x2f7121+=0x1;const _0x355165=_0x5e3b74[_0x2f7121];if(_0x355165!=='\x22'&&_0x355165!=='\x27')return![];_0x2f7121+=0x1;const _0x2c64cc=_0x5e3b74['indexOf'](_0x355165,_0x2f7121);if(_0x2c64cc<0x0)return![];if(decodeXmlEntities(_0x5e3b74[_0x1402e2(0x1ac)](_0x2f7121,_0x2c64cc))===null)return![];_0x2f7121=_0x2c64cc+0x1;}return!![];}function startsWithMybatisStatementWrapper(_0x53f97c){const _0xf26426=a296_0xe2d21f;let _0xd98e8f=0x0;const _0x10504a=()=>{const _0x484c6c=a296_0x2ec3;while(_0xd98e8f<_0x53f97c['length']&&/\s/[_0x484c6c(0x15b)](_0x53f97c[_0xd98e8f]??''))_0xd98e8f+=0x1;};_0x10504a();while(_0xd98e8f<_0x53f97c[_0xf26426(0x15d)]){if(_0x53f97c[_0xf26426(0x190)](_0xf26426(0x18f),_0xd98e8f)){const _0x10a420=_0x53f97c['indexOf']('-->',_0xd98e8f+0x4);if(_0x10a420<0x0)return!![];_0xd98e8f=_0x10a420+0x3,_0x10504a();continue;}if(_0x53f97c[_0xf26426(0x190)]('<?',_0xd98e8f)){const _0x51b866=_0x53f97c[_0xf26426(0x17f)]('?>',_0xd98e8f+0x2);if(_0x51b866<0x0)return!![];_0xd98e8f=_0x51b866+0x2,_0x10504a();continue;}break;}return MYBATIS_OUTER_TAG_PATTERN[_0xf26426(0x15b)](_0x53f97c[_0xf26426(0x1ac)](_0xd98e8f));}function invalidMybatisSource(_0x4de398){const _0x20c912=a296_0xe2d21f;return{'sql':'','mode':_0x20c912(0x18e),'error':_0x4de398};}function a296_0x5868(){const _0x52d053=['insert','test','toLowerCase','length','outer','15596HODdNQ','SQL\x20text\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','&','Unable\x20to\x20detect\x20SQL\x20type.\x20','\x20query\x20targeting\x20','452LYDvAe','parseInt','904170KiwaOG','Invalid\x20XML\x20entity\x20reference.','exec','Unterminated\x20CDATA\x20section.','trim','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','reason','MyBatis\x20dynamic\x20tag\x20must\x20be\x20inside\x20the\x20statement\x20wrapper:\x20<','match','MyBatis\x20XML\x20must\x20contain\x20exactly\x20one\x20complete\x20statement\x20wrapper.','8664948yGUDlY','has','pop','add','get','replace','XML\x20declarations\x20must\x20precede\x20the\x20MyBatis\x20statement\x20wrapper.','9606852IhtvuC','WITH','__RABETBASE_MYBATIS_INCLUDE_UNRESOLVED__','8QzstLr','52HguCUN','statementType','includes','tagName','indexOf','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','9777qBFsax','-->','isDangerous','SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements','select','Mismatched\x20MyBatis\x20XML\x20closing\x20tag:\x20</','<![CDATA[','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save',']]>','foreach','MyBatis\x20dynamic\x20tag\x20names\x20must\x20be\x20lowercase:\x20<','fromCodePoint','where','mybatisXml','<!--','startsWith','replaceAll','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','push','>','MyBatis\x20<property>\x20must\x20be\x20a\x20self-closing\x20direct\x20child\x20of\x20<include>.','rawName','otherwise','<','974RdxrTL','set','UPDATE','update','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','\x20WHERE\x20','string','\x20SET\x20','type','Invalid\x20attributes\x20on\x20MyBatis\x20XML\x20tag:\x20<','keys','bind','matchAll','property','^<\x5cs*(?:','from','DDL','unknown\x20table(s)','INSERT','slice','DELETE',''','SQL\x20content\x20is\x20empty','Invalid\x20MyBatis\x20XML\x20closing\x20tag:\x20</','include','CDATA\x20sections\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','when','582ueLses','Unterminated\x20MyBatis\x20XML\x20tag.','SELECT','UNKNOWN','toUpperCase','choose','join','sql','Unsupported\x20MyBatis\x20XML\x20tag:\x20<','"','7156070pnjKPi','\x20with\x20parameters:\x20','Unterminated\x20XML\x20declaration.','__RABETBASE_MYBATIS_DYNAMIC_START__','error','33DjDmCG'];a296_0x5868=function(){return _0x52d053;};return a296_0x5868();}function findXmlTagEnd(_0x5d04c5,_0x5bdbbc){const _0x4c1e54=a296_0xe2d21f;let _0x5da384;for(let _0x29d50d=_0x5bdbbc+0x1;_0x29d50d<_0x5d04c5[_0x4c1e54(0x15d)];_0x29d50d+=0x1){const _0xfdf964=_0x5d04c5[_0x29d50d];if(_0x5da384){if(_0xfdf964===_0x5da384)_0x5da384=undefined;continue;}if(_0xfdf964==='\x22'||_0xfdf964==='\x27'){_0x5da384=_0xfdf964;continue;}if(_0xfdf964==='>')return _0x29d50d;}return-0x1;}function decodeXmlEntities(_0x4133e8){let _0x523e46=![];const _0x28eb5d=_0x4133e8['replace'](/&(?:#x[0-9a-f]+;|#[0-9]+;|[A-Za-z_:][\w:.-]*;)?/g,_0x44d883=>{const _0x377011=a296_0x2ec3;if(_0x44d883===_0x377011(0x198))return'<';if(_0x44d883===_0x377011(0x194))return'>';if(_0x44d883===_0x377011(0x153))return'\x22';if(_0x44d883===_0x377011(0x1ae))return'\x27';if(_0x44d883===_0x377011(0x161))return'&';const _0x545f39=/^&#(?:x([0-9a-f]+)|([0-9]+));$/[_0x377011(0x168)](_0x44d883);if(_0x545f39){const _0x392be8=_0x545f39[0x1],_0x4a3dba=_0x545f39[0x2],_0x2de19a=Number[_0x377011(0x165)](_0x392be8??_0x4a3dba??'',_0x392be8?0x10:0xa);if(isValidXmlCharacter(_0x2de19a))return String[_0x377011(0x18c)](_0x2de19a);}return _0x523e46=!![],'';});return _0x523e46?null:_0x28eb5d;}function isValidXmlCharacter(_0x52e1ef){return _0x52e1ef===0x9||_0x52e1ef===0xa||_0x52e1ef===0xd||_0x52e1ef>=0x20&&_0x52e1ef<=0xd7ff||_0x52e1ef>=0xe000&&_0x52e1ef<=0xfffd||_0x52e1ef>=0x10000&&_0x52e1ef<=0x10ffff;}export function detectSqlType(_0xf2c179){return detectNormalizedSqlType(normalizeSqlForStaticAnalysis(_0xf2c179));}function detectNormalizedSqlType(_0x40dcb8){const _0x4c775b=a296_0xe2d21f;if(_0x40dcb8[_0x4c775b(0x158)])return{'type':_0x4c775b(0x14d),'isSelectOnly':![],'isDangerous':![],'reason':_0x40dcb8['error']};if(!_0x40dcb8[_0x4c775b(0x151)]['trim']())return{'type':_0x4c775b(0x14d),'isSelectOnly':![],'isDangerous':![],'reason':_0x4c775b(0x1af)};const _0x4756c8=stripStaticAnalysisMarkers(_0x40dcb8[_0x4c775b(0x151)])[_0x4c775b(0x175)](/#\{[^}]*\}/g,'?')[_0x4c775b(0x175)](/\$\{[^}]*\}/g,'?')['replace'](/@[^(\s]+(\([^)]*\))?/g,'')[_0x4c775b(0x175)](/\/\*[\s\S]*?\*\//g,'')[_0x4c775b(0x16a)](),_0x594e3d=_0x4756c8['split']('\x0a');let _0x4ece22='';for(const _0x4722bb of _0x594e3d){const _0x22b92d=_0x4722bb[_0x4c775b(0x16a)]();if(!_0x22b92d||_0x22b92d[_0x4c775b(0x190)]('--')||_0x22b92d[_0x4c775b(0x190)]('/*'))continue;_0x4ece22=_0x22b92d;break;}const _0x538f54=_0x4ece22[_0x4c775b(0x14e)](),_0x152122=_0x40dcb8[_0x4c775b(0x17c)],_0x39125e=maskSqlTextForBlockedKeywordScan(_0x4756c8),_0x17a027=/\b(DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x4c775b(0x15b)](_0x39125e);if(_0x152122===_0x4c775b(0x14c)||!_0x152122&&(_0x538f54[_0x4c775b(0x190)](_0x4c775b(0x14c))||_0x538f54[_0x4c775b(0x190)](_0x4c775b(0x178)))){const _0x21e423=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i['test'](_0x4756c8);return{'type':'SELECT','isSelectOnly':!_0x21e423,'isDangerous':_0x21e423,'reason':_0x21e423?_0x4c775b(0x180):undefined};}if(_0x152122===_0x4c775b(0x1ab)||!_0x152122&&_0x538f54['startsWith']('INSERT'))return{'type':_0x4c775b(0x1ab),'isSelectOnly':![],'isDangerous':_0x17a027,'reason':_0x17a027?_0x4c775b(0x184):undefined};if(_0x152122===_0x4c775b(0x19b)||!_0x152122&&_0x538f54[_0x4c775b(0x190)](_0x4c775b(0x19b)))return{'type':_0x4c775b(0x19b),'isSelectOnly':![],'isDangerous':_0x17a027,'reason':_0x17a027?'SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements':undefined};if(_0x152122===_0x4c775b(0x1ad)||!_0x152122&&_0x538f54[_0x4c775b(0x190)](_0x4c775b(0x1ad)))return{'type':_0x4c775b(0x1ad),'isSelectOnly':![],'isDangerous':!![],'reason':_0x4c775b(0x19d)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x4c775b(0x15b)](_0x538f54))return{'type':_0x4c775b(0x1a9),'isSelectOnly':![],'isDangerous':!![],'reason':_0x4c775b(0x188)};return{'type':_0x4c775b(0x14d),'isSelectOnly':![],'isDangerous':![]};}function stripStaticAnalysisMarkers(_0xc687c8){const _0x6e44f1=a296_0xe2d21f;return _0xc687c8[_0x6e44f1(0x191)](MYBATIS_DYNAMIC_START_MARKER,'\x20')[_0x6e44f1(0x191)](MYBATIS_DYNAMIC_END_MARKER,'\x20')['replaceAll'](MYBATIS_INCLUDE_MARKER,'\x20'+UNRESOLVED_SQL_FRAGMENT+'\x20');}function maskSqlTextForBlockedKeywordScan(_0x1db35e){const _0x4f4aae=a296_0xe2d21f;return _0x1db35e[_0x4f4aae(0x175)](/'(?:''|\\.|[^'])*'/g,'\x20')[_0x4f4aae(0x175)](/"(?:""|\\.|[^"])*"/g,'\x20')[_0x4f4aae(0x175)](/`(?:``|\\.|[^`])*`/g,'\x20')[_0x4f4aae(0x175)](/--.*$/gm,'\x20')[_0x4f4aae(0x175)](/#.*$/gm,'\x20')[_0x4f4aae(0x175)](/\/\*[\s\S]*?\*\//g,'\x20');}function extractTables(_0x2b2e3c){const _0x313f23=a296_0xe2d21f,_0x8e3b69=_0x2b2e3c[_0x313f23(0x175)](/#\{[^}]*\}/g,'?')[_0x313f23(0x175)](/\$\{[^}]*\}/g,'?')[_0x313f23(0x175)](/'[^']*'/g,'\x27\x27')[_0x313f23(0x175)](/--.*$/gm,'')['replace'](/\/\*[\s\S]*?\*\//g,''),_0x143fa7=[],_0x7cfa44=_0x8e3b69[_0x313f23(0x16e)](/FROM\s+([^\s,)(]+)/i);addTable(_0x143fa7,_0x7cfa44?.[0x1]);for(const _0x3a42d5 of _0x8e3b69[_0x313f23(0x1a5)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){addTable(_0x143fa7,_0x3a42d5[0x1]);}const _0x5c1fae=_0x8e3b69[_0x313f23(0x16e)](/INTO\s+([^\s(]+)/i);addTable(_0x143fa7,_0x5c1fae?.[0x1]);const _0x32626f=_0x8e3b69[_0x313f23(0x16e)](/UPDATE\s+([^\s,)(]+)/i);return addTable(_0x143fa7,_0x32626f?.[0x1]),_0x143fa7;}function addTable(_0x5d9557,_0x5d4884){const _0x2256b2=a296_0xe2d21f,_0x276345=_0x5d4884?.[_0x2256b2(0x175)](/[`"]/g,'');_0x276345&&_0x276345!==UNRESOLVED_SQL_FRAGMENT&&!_0x5d9557[_0x2256b2(0x17d)](_0x276345)&&_0x5d9557[_0x2256b2(0x193)](_0x276345);}function extractParameters(_0x5669bb){const _0x967fae=a296_0xe2d21f,_0x1977d1=new Set();for(const _0x1f736d of _0x5669bb[_0x967fae(0x1a5)](/[#$]\{\s*([A-Za-z_][\w.]*)\s*(?=[,}])/g)){if(_0x1f736d[0x1])_0x1977d1[_0x967fae(0x173)](_0x1f736d[0x1]);}return Array[_0x967fae(0x1a8)](_0x1977d1);}export function validateSql(_0x4ac5f3){const _0x267eda=a296_0xe2d21f,_0x1bb99d=normalizeSqlForStaticAnalysis(_0x4ac5f3),_0x574bcf=detectNormalizedSqlType(_0x1bb99d),_0x56fb6a=stripStaticAnalysisMarkers(_0x1bb99d[_0x267eda(0x151)]),_0x2214c2=_0x1bb99d[_0x267eda(0x158)]?[]:extractTables(_0x56fb6a),_0x2c9b7d=_0x1bb99d[_0x267eda(0x158)]?[]:extractParameters(_0x56fb6a);if(_0x574bcf[_0x267eda(0x183)])return{'valid':![],'sqlType':_0x574bcf,'tables':_0x2214c2,'parameters':_0x2c9b7d,'message':_0x574bcf[_0x267eda(0x16c)]||_0x574bcf[_0x267eda(0x1a1)]+_0x267eda(0x16b)};if(_0x574bcf['type']===_0x267eda(0x14d))return{'valid':![],'sqlType':_0x574bcf,'tables':_0x2214c2,'parameters':_0x2c9b7d,'message':_0x1bb99d[_0x267eda(0x158)]?_0x267eda(0x162)+_0x1bb99d[_0x267eda(0x158)]:_0x267eda(0x192)};return{'valid':!![],'sqlType':_0x574bcf,'tables':_0x2214c2,'parameters':_0x2c9b7d,'message':_0x574bcf['type']+_0x267eda(0x163)+(_0x2214c2[_0x267eda(0x15d)]?_0x2214c2[_0x267eda(0x150)](',\x20'):_0x267eda(0x1aa))+(_0x2c9b7d['length']?_0x267eda(0x155)+_0x2c9b7d[_0x267eda(0x150)](',\x20'):'')};}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a297_0x1eee(){const _0x3d7667=['4800840BrtIFn','auth_required','Configuration\x20file\x20not\x20found','\x20workspace\x20add\x20<name>\x20--appcode\x20<code>\x20--global`\x20registers\x20a\x20reusable\x20global\x20app\x20profile.','\x20project\x20directory','Authentication\x20required','Missing\x20required\x20flag:\x20--','\x20--help`\x20to\x20see\x20available\x20commands.','176224yRCBxq','2907474HhtrOo','683358RMbQib','config_missing','Run\x20`','\x20auth`\x20to\x20login\x20first.','apiError','cancelled','network_error','Set\x20appcode\x20via\x20`','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.\x0a\x20\x20\x20\x20\x20\x20\x20Tip:\x20`','Not\x20in\x20a\x20','not_in_project','651drJUYJ','flag_missing','4707552ztcXhj','103384HqMymf','Operation\x20cancelled.','Check\x20your\x20internet\x20connection\x20and\x20try\x20again.','843975ZNxyEQ','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'];a297_0x1eee=function(){return _0x3d7667;};return a297_0x1eee();}const a297_0x2dfe78=a297_0x5068;(function(_0x3aa0bc,_0x18528e){const _0x268f61=a297_0x5068,_0x4667c4=_0x3aa0bc();while(!![]){try{const _0x1300fc=parseInt(_0x268f61(0x1cf))/0x1+-parseInt(_0x268f61(0x1d1))/0x2+-parseInt(_0x268f61(0x1d0))/0x3+parseInt(_0x268f61(0x1e4))/0x4+parseInt(_0x268f61(0x1e2))/0x5+-parseInt(_0x268f61(0x1de))/0x6+parseInt(_0x268f61(0x1dc))/0x7*(parseInt(_0x268f61(0x1df))/0x8);if(_0x1300fc===_0x18528e)break;else _0x4667c4['push'](_0x4667c4['shift']());}catch(_0x43d1aa){_0x4667c4['push'](_0x4667c4['shift']());}}}(a297_0x1eee,0x9f177));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};function a297_0x5068(_0x120152,_0x14cb37){_0x120152=_0x120152-0x1cc;const _0x1eee3f=a297_0x1eee();let _0x5068f7=_0x1eee3f[_0x120152];return _0x5068f7;}const baseCliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a297_0x2dfe78(0x1d3)+CLI_BIN_NAME+a297_0x2dfe78(0x1d4),'configMissingHint':'Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+a297_0x2dfe78(0x1d9)+CLI_BIN_NAME+'\x20workspace\x20add\x20<name>\x20--appcode\x20<code>\x20--global`\x20registers\x20a\x20reusable\x20global\x20app\x20profile.','notInProjectHint':a297_0x2dfe78(0x1e3)});export const CliErrors={'authRequired'(_0x32dbb8){const _0x5c803e=a297_0x2dfe78;return new CliError(_0x5c803e(0x1e5),0x1,_0x5c803e(0x1cc),_0x32dbb8??'Run\x20`'+CLI_BIN_NAME+_0x5c803e(0x1d4));},'configMissing'(_0x45fd2e){const _0x498acc=a297_0x2dfe78;return new CliError(_0x498acc(0x1d2),0x1,_0x498acc(0x1e6),_0x45fd2e??_0x498acc(0x1d8)+CLI_BIN_NAME+_0x498acc(0x1d9)+CLI_BIN_NAME+_0x498acc(0x1e7));},'notInProject'(){const _0x5c8bdd=a297_0x2dfe78;return new CliError(_0x5c8bdd(0x1db),0x1,_0x5c8bdd(0x1da)+CLI_BIN_NAME+_0x5c8bdd(0x1e8),_0x5c8bdd(0x1e3));},'apiError'(_0x502d3c,_0x100a0f){const _0x5f3e98=a297_0x2dfe78;return baseCliErrors[_0x5f3e98(0x1d5)](_0x502d3c,_0x100a0f);},'networkError'(_0x34e8c8){const _0x1534af=a297_0x2dfe78;return new CliError(_0x1534af(0x1d7),0x2,'Network\x20error:\x20'+_0x34e8c8,_0x1534af(0x1e1));},'unknownCommand'(_0x2547c2){const _0x248e26=a297_0x2dfe78;return new CliError('unknown_command',0x1,'Unknown\x20command:\x20'+_0x2547c2,_0x248e26(0x1d3)+CLI_BIN_NAME+_0x248e26(0x1ce));},'flagMissing'(_0x281e02,_0xa8414d){const _0x45d045=a297_0x2dfe78;return new CliError(_0x45d045(0x1dd),0x1,_0x45d045(0x1cd)+_0x281e02,_0xa8414d);},'validation'(_0x3d7774,_0xb17acc){return baseCliErrors['validation'](_0x3d7774,_0xb17acc);},'cancelled'(_0x347f27){const _0x289848=a297_0x2dfe78;return new CliError(_0x289848(0x1d6),0x0,_0x347f27??_0x289848(0x1e0));}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a298_0x262f(){const _0x1beba5=['171651YRgEZS','map','8BVZbzi','7985CaCibZ','5301303Mbzyhn','17304939HTQbGJ','yes','549453BBpHAc','628WnZHGS','7437072fwloVL','1601722JXELhX'];a298_0x262f=function(){return _0x1beba5;};return a298_0x262f();}(function(_0x50a9e3,_0x3d9d0d){const _0x56c0b9=a298_0x3042,_0x41280b=_0x50a9e3();while(!![]){try{const _0x449e29=-parseInt(_0x56c0b9(0x102))/0x1+parseInt(_0x56c0b9(0x101))/0x2+-parseInt(_0x56c0b9(0xfe))/0x3+parseInt(_0x56c0b9(0xff))/0x4*(parseInt(_0x56c0b9(0x105))/0x5)+-parseInt(_0x56c0b9(0x100))/0x6+-parseInt(_0x56c0b9(0x106))/0x7+-parseInt(_0x56c0b9(0x104))/0x8*(-parseInt(_0x56c0b9(0x107))/0x9);if(_0x449e29===_0x3d9d0d)break;else _0x41280b['push'](_0x41280b['shift']());}catch(_0x1b5d05){_0x41280b['push'](_0x41280b['shift']());}}}(a298_0x262f,0x9807e));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a298_0x41b6bc}from'@lovrabet/cli-framework';import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';function a298_0x3042(_0x1a79f6,_0x510be5){_0x1a79f6=_0x1a79f6-0xfd;const _0x262fab=a298_0x262f();let _0x304211=_0x262fab[_0x1a79f6];return _0x304211;}export function buildAllFlags(_0xec9820){const _0x4547b2=a298_0x3042,_0x3b598f=a298_0x41b6bc(_0xec9820,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0xec9820))return _0x3b598f;return _0x3b598f[_0x4547b2(0x103)](_0x47cf6a=>_0x47cf6a['name']===_0x4547b2(0xfd)?{..._0x47cf6a,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x47cf6a);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a299_0x9742(_0x2f5a9f,_0x17a05f){_0x2f5a9f=_0x2f5a9f-0x1c3;var _0x4ae908=a299_0x4ae9();var _0x974201=_0x4ae908[_0x2f5a9f];return _0x974201;}function a299_0x4ae9(){var _0x2ee87c=['5601871VSfwbT','structuredErrors','defaultFormat','3160530EePmsJ','780507VEqfrg','7suOLRd','def','compress','flags','6439938lTYFNw','4295yyPVkT','36964TOdvRO','48CiCIdU','9UoOSeE','1129936uaKleN','format','2228REQPTs'];a299_0x4ae9=function(){return _0x2ee87c;};return a299_0x4ae9();}(function(_0x1444b9,_0x488236){var _0x23c64c=a299_0x9742,_0x454b6f=_0x1444b9();while(!![]){try{var _0x1c9fa3=-parseInt(_0x23c64c(0x1cd))/0x1*(-parseInt(_0x23c64c(0x1ce))/0x2)+-parseInt(_0x23c64c(0x1c6))/0x3+parseInt(_0x23c64c(0x1d2))/0x4*(-parseInt(_0x23c64c(0x1cc))/0x5)+parseInt(_0x23c64c(0x1cb))/0x6*(parseInt(_0x23c64c(0x1c7))/0x7)+-parseInt(_0x23c64c(0x1d0))/0x8*(-parseInt(_0x23c64c(0x1cf))/0x9)+-parseInt(_0x23c64c(0x1c5))/0xa+-parseInt(_0x23c64c(0x1d3))/0xb;if(_0x1c9fa3===_0x488236)break;else _0x454b6f['push'](_0x454b6f['shift']());}catch(_0x5deb0a){_0x454b6f['push'](_0x454b6f['shift']());}}}(a299_0x4ae9,0x8349b));import{resolveOutputConfig}from'@lovrabet/cli-framework';export function usesStructuredErrorOutput(_0x2be325){var _0x34db4b=a299_0x9742;return _0x2be325?.[_0x34db4b(0x1c3)]===!![];}export function resolveErrorOutputFormat(_0xc576b9){var _0x28641a=a299_0x9742;if(!_0xc576b9[_0x28641a(0x1c8)])return _0xc576b9[_0x28641a(0x1c4)]??_0x28641a(0x1c9);return resolveOutputConfig({'flags':_0xc576b9[_0x28641a(0x1ca)]??{},'def':_0xc576b9[_0x28641a(0x1c8)],'configDefault':_0xc576b9[_0x28641a(0x1c4)]})[_0x28641a(0x1d1)];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a300_0x3cc8(_0x14cda6,_0x5e0b6f){_0x14cda6=_0x14cda6-0x194;const _0x55407f=a300_0x5540();let _0x3cc824=_0x55407f[_0x14cda6];return _0x3cc824;}const a300_0x47bff8=a300_0x3cc8;(function(_0x270666,_0x3da663){const _0x4b2bef=a300_0x3cc8,_0x6ab338=_0x270666();while(!![]){try{const _0x211636=parseInt(_0x4b2bef(0x1a2))/0x1+-parseInt(_0x4b2bef(0x19b))/0x2*(-parseInt(_0x4b2bef(0x194))/0x3)+-parseInt(_0x4b2bef(0x19c))/0x4+parseInt(_0x4b2bef(0x1a1))/0x5*(-parseInt(_0x4b2bef(0x196))/0x6)+parseInt(_0x4b2bef(0x197))/0x7+-parseInt(_0x4b2bef(0x195))/0x8+-parseInt(_0x4b2bef(0x1a3))/0x9*(-parseInt(_0x4b2bef(0x199))/0xa);if(_0x211636===_0x3da663)break;else _0x6ab338['push'](_0x6ab338['shift']());}catch(_0x55cb34){_0x6ab338['push'](_0x6ab338['shift']());}}}(a300_0x5540,0x41787));const EXPLICIT_YES_COMMANDS=new Set([a300_0x47bff8(0x19f),a300_0x47bff8(0x19a),a300_0x47bff8(0x1a0),a300_0x47bff8(0x19e)]);function a300_0x5540(){const _0x432ac5=['12432tERWDd','29012oYhaMo','command','notification\x20config-delete','menu\x20delete','notification\x20config-update','5Yutiow','64999XIHzPj','108GRQxBQ','108eAgZzX','1611264ZIjuMz','2552658gYFaoc','901964KADtoy','has','403870ZMomyd','kb\x20delete'];a300_0x5540=function(){return _0x432ac5;};return a300_0x5540();}export const EXPLICIT_YES_FLAG_DESCRIPTION='Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan';export function requiresExplicitYes(_0x49f05a){const _0xd1d0ac=a300_0x47bff8;return EXPLICIT_YES_COMMANDS[_0xd1d0ac(0x198)](_0x49f05a['service']+'\x20'+_0x49f05a[_0xd1d0ac(0x19d)]);}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a301_0xa544df=a301_0xf221;(function(_0x180349,_0x5c9a49){const _0x4ae3c4=a301_0xf221,_0x4129fe=_0x180349();while(!![]){try{const _0x35f84a=-parseInt(_0x4ae3c4(0x15a))/0x1*(parseInt(_0x4ae3c4(0x159))/0x2)+-parseInt(_0x4ae3c4(0x15b))/0x3*(-parseInt(_0x4ae3c4(0x153))/0x4)+-parseInt(_0x4ae3c4(0x154))/0x5*(-parseInt(_0x4ae3c4(0x152))/0x6)+parseInt(_0x4ae3c4(0x158))/0x7+-parseInt(_0x4ae3c4(0x156))/0x8+parseInt(_0x4ae3c4(0x157))/0x9*(-parseInt(_0x4ae3c4(0x151))/0xa)+parseInt(_0x4ae3c4(0x15c))/0xb;if(_0x35f84a===_0x5c9a49)break;else _0x4129fe['push'](_0x4129fe['shift']());}catch(_0x3a962a){_0x4129fe['push'](_0x4129fe['shift']());}}}(a301_0x3473,0x8afa3));import{createFlagHelpers}from'@lovrabet/cli-framework';function a301_0xf221(_0x12748a,_0x30ec36){_0x12748a=_0x12748a-0x151;const _0x3473cd=a301_0x3473();let _0xf2212a=_0x3473cd[_0x12748a];return _0xf2212a;}function a301_0x3473(){const _0x408701=['4543784QlogYa','387458FxBTlS','3lcnyCh','79818BEuPuC','705969MaWYTc','parseFlags','190lhAtQP','4080DUIWZP','136xOMcIz','5935OiMzJH','validateFlags','6393592YNrXYu','225198ovlTBc'];a301_0x3473=function(){return _0x408701;};return a301_0x3473();}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a301_0xa544df(0x15d)];export const validateFlags=helpers[a301_0xa544df(0x155)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x357b65,_0x243d02){const _0x1ec732=a302_0xf68a,_0x3c7999=_0x357b65();while(!![]){try{const _0x1b538f=parseInt(_0x1ec732(0x90))/0x1*(parseInt(_0x1ec732(0x7f))/0x2)+-parseInt(_0x1ec732(0x91))/0x3*(-parseInt(_0x1ec732(0x8f))/0x4)+-parseInt(_0x1ec732(0x80))/0x5+-parseInt(_0x1ec732(0x87))/0x6*(-parseInt(_0x1ec732(0x8a))/0x7)+parseInt(_0x1ec732(0x85))/0x8*(-parseInt(_0x1ec732(0x83))/0x9)+parseInt(_0x1ec732(0x8d))/0xa+parseInt(_0x1ec732(0x89))/0xb*(-parseInt(_0x1ec732(0x82))/0xc);if(_0x1b538f===_0x243d02)break;else _0x3c7999['push'](_0x3c7999['shift']());}catch(_0xf5fce0){_0x3c7999['push'](_0x3c7999['shift']());}}}(a302_0x49f2,0x69021));function a302_0x49f2(){const _0x1d9904=['7090CgWNTr','Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.','4oOduHD','207123kvmqHl','1489257XLOtRn','get','6tCcJQv','2333175gOtTKe','replace','468oLGTGm','2537469xFkBbu','\x20workspace\x20init`\x20or\x20--appcode).','24fvMixf','Requires\x20appcode\x20(set\x20via\x20`','66VoJLJv','generateFullHelp','38841mXsQNQ','484771vEMEmZ','\x20[args]\x20[flags]','Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.'];a302_0x49f2=function(){return _0x1d9904;};return a302_0x49f2();}import{createHelpGenerators}from'@lovrabet/cli-framework';function a302_0xf68a(_0x5a482a,_0x422121){_0x5a482a=_0x5a482a-0x7f;const _0x49f264=a302_0x49f2();let _0xf68af4=_0x49f264[_0x5a482a];return _0xf68af4;}import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{requiresExplicitYes}from'../framework/explicit-yes.js';function createGenerators(){const _0x1d7ff9=a302_0xf68a;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0xed39cd=>serviceGroups[_0x1d7ff9(0x92)](_0xed39cd),'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x1d7ff9(0x86)+CLI_BIN_NAME+_0x1d7ff9(0x84),'serviceUsageSuffix':_0x1d7ff9(0x8b)});}export function generateCommandHelp(_0x1c7964){const _0x1ac8f0=a302_0xf68a,_0x1f5819=createGenerators()['generateCommandHelp'](_0x1c7964);if(!requiresExplicitYes(_0x1c7964))return _0x1f5819;return _0x1f5819[_0x1ac8f0(0x81)](_0x1ac8f0(0x8c),_0x1ac8f0(0x8e));}export function generateServiceHelp(_0x2ffcde){return createGenerators()['generateServiceHelp'](_0x2ffcde);}export function generateFullHelp(){const _0x2b4058=a302_0xf68a;return createGenerators()[_0x2b4058(0x88)]();}
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4437fe,_0x19a45d){var _0x2e0090=a303_0x3a99,_0x4c7518=_0x4437fe();while(!![]){try{var _0x52c932=-parseInt(_0x2e0090(0x1f3))/0x1+parseInt(_0x2e0090(0x1f9))/0x2*(-parseInt(_0x2e0090(0x1f4))/0x3)+parseInt(_0x2e0090(0x1f7))/0x4+parseInt(_0x2e0090(0x1f6))/0x5*(-parseInt(_0x2e0090(0x1f2))/0x6)+-parseInt(_0x2e0090(0x1f1))/0x7+parseInt(_0x2e0090(0x1f8))/0x8+parseInt(_0x2e0090(0x1f5))/0x9;if(_0x52c932===_0x19a45d)break;else _0x4c7518['push'](_0x4c7518['shift']());}catch(_0x4807d5){_0x4c7518['push'](_0x4c7518['shift']());}}}(a303_0x4cd7,0x87995));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a303_0x3a99(_0x226d46,_0x2a3d07){_0x226d46=_0x226d46-0x1f1;var _0x4cd7cb=a303_0x4cd7();var _0x3a99d1=_0x4cd7cb[_0x226d46];return _0x3a99d1;}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';function a303_0x4cd7(){var _0x54a4f5=['927192TcEqwV','1375792XjVjpn','1746074JNnfpx','6414926NSJhIm','48252VrTkoo','596992lxnLiC','3EdIGCS','30731994MhoGGD','545rZnEXF'];a303_0x4cd7=function(){return _0x54a4f5;};return a303_0x4cd7();}
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2562fc,_0x3e15b1){const _0x4211a5=a304_0x1389,_0x5181d6=_0x2562fc();while(!![]){try{const _0x16c220=-parseInt(_0x4211a5(0xf7))/0x1+parseInt(_0x4211a5(0xe8))/0x2*(-parseInt(_0x4211a5(0xff))/0x3)+parseInt(_0x4211a5(0xec))/0x4+-parseInt(_0x4211a5(0xf2))/0x5*(-parseInt(_0x4211a5(0xee))/0x6)+-parseInt(_0x4211a5(0xe7))/0x7*(-parseInt(_0x4211a5(0xfc))/0x8)+-parseInt(_0x4211a5(0xed))/0x9*(-parseInt(_0x4211a5(0x100))/0xa)+-parseInt(_0x4211a5(0xef))/0xb*(parseInt(_0x4211a5(0xf0))/0xc);if(_0x16c220===_0x3e15b1)break;else _0x5181d6['push'](_0x5181d6['shift']());}catch(_0x5faebd){_0x5181d6['push'](_0x5181d6['shift']());}}}(a304_0x1ae4,0xa8c4b));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';function a304_0x1ae4(){const _0x1e1b8e=['hint','2815312xXJYvO','1373283gignQK','383166vLHFcP','11lfirmb','15686904vIRYYm','jqFilter','15QMEvkc','update','error','format','stringify','116307Ahyjcz','endsWith','command','jq:\x20','url','9871432mqwtwV','trim','write','3QQeHjq','10MiOIkg','pretty','json','message','7iiMSao','334206HOMhQH','validation','code'];a304_0x1ae4=function(){return _0x1e1b8e;};return a304_0x1ae4();}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x51dfc9,_0x379614){const _0x471889=a304_0x1389,_0x384184=_0x51dfc9['_notice'],{_notice:_0x295cf0,..._0x321c5c}=_0x51dfc9;void _0x295cf0,baseFormatOutput(_0x321c5c,_0x379614),_0x379614['format']===_0x471889(0x101)&&printPrettyNotice(_0x384184);}export function formatCliError(_0x28fb20,_0xa57cd0){const _0x402cb7=a304_0x1389;if(_0xa57cd0[_0x402cb7(0xf5)]==='pretty')return![];const _0x18cd92=_0x28fb20['data'],_0x593c86={'ok':![],'command':_0xa57cd0[_0x402cb7(0xf9)],'risk':_0xa57cd0['risk'],'data':_0x18cd92??null,'error':{'code':_0x28fb20[_0x402cb7(0xea)],'message':_0x28fb20[_0x402cb7(0xe6)],..._0x28fb20[_0x402cb7(0xeb)]?{'hint':_0x28fb20[_0x402cb7(0xeb)]}:{}}},_0x1fe561=_0xa57cd0['format']===_0x402cb7(0xe5)?JSON[_0x402cb7(0xf6)](_0x593c86,null,0x2):JSON[_0x402cb7(0xf6)](_0x593c86);let _0x3c8c2f=_0x1fe561;if(_0xa57cd0[_0x402cb7(0xf1)]?.[_0x402cb7(0xfd)]())try{_0x3c8c2f=applyJqFilter(_0x1fe561,_0xa57cd0[_0x402cb7(0xf1)]);}catch(_0x125813){const _0xbf20b2=_0x125813 instanceof CliError?_0x125813:CliErrors[_0x402cb7(0xe9)](_0x402cb7(0xfa)+(_0x125813 instanceof Error?_0x125813[_0x402cb7(0xe6)]:String(_0x125813))),_0x154f12={..._0x593c86,'error':{'code':_0xbf20b2[_0x402cb7(0xea)],'message':_0xbf20b2[_0x402cb7(0xe6)],..._0xbf20b2['hint']?{'hint':_0xbf20b2[_0x402cb7(0xeb)]}:{},'cause':_0x593c86['error']}};_0x3c8c2f=_0xa57cd0[_0x402cb7(0xf5)]===_0x402cb7(0xe5)?JSON[_0x402cb7(0xf6)](_0x154f12,null,0x2):JSON[_0x402cb7(0xf6)](_0x154f12);}return process['stdout'][_0x402cb7(0xfe)](_0x3c8c2f[_0x402cb7(0xf8)]('\x0a')?_0x3c8c2f:_0x3c8c2f+'\x0a'),!![];}function a304_0x1389(_0x2ef5fd,_0x2d0c63){_0x2ef5fd=_0x2ef5fd-0xe5;const _0x1ae493=a304_0x1ae4();let _0x1389aa=_0x1ae493[_0x2ef5fd];return _0x1389aa;}function printPrettyNotice(_0xb809da){const _0x9817f8=a304_0x1389;if(!_0xb809da?.[_0x9817f8(0xf3)])return;console[_0x9817f8(0xf4)](_0xb809da[_0x9817f8(0xf3)][_0x9817f8(0xe6)]+'\x20('+_0xb809da['update'][_0x9817f8(0xfb)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3e2b54,_0x32e996){var _0x28d8f3=a305_0x2c6f,_0x144bec=_0x3e2b54();while(!![]){try{var _0x2fcd91=parseInt(_0x28d8f3(0xca))/0x1*(parseInt(_0x28d8f3(0xcc))/0x2)+parseInt(_0x28d8f3(0xcd))/0x3+-parseInt(_0x28d8f3(0xc8))/0x4*(parseInt(_0x28d8f3(0xcb))/0x5)+parseInt(_0x28d8f3(0xc6))/0x6+parseInt(_0x28d8f3(0xc5))/0x7+parseInt(_0x28d8f3(0xc9))/0x8+-parseInt(_0x28d8f3(0xce))/0x9*(parseInt(_0x28d8f3(0xc7))/0xa);if(_0x2fcd91===_0x32e996)break;else _0x144bec['push'](_0x144bec['shift']());}catch(_0x3debd5){_0x144bec['push'](_0x144bec['shift']());}}}(a305_0x4961,0x74ea5));function a305_0x2c6f(_0x511126,_0x448d84){_0x511126=_0x511126-0xc5;var _0x4961ca=a305_0x4961();var _0x2c6fd7=_0x4961ca[_0x511126];return _0x2c6fd7;}export{extractList,extractPaging}from'@lovrabet/cli-framework';function a305_0x4961(){var _0x1cc8d4=['4682766qDYwPc','160GBnGSR','27164ntlUlG','4425280NiTDCt','4203qdgset','310PjXfsF','158aGGNvm','1881555JZrtZi','1213326gelOlO','5348756RXKwOS'];a305_0x4961=function(){return _0x1cc8d4;};return a305_0x4961();}
|
|
@@ -11,4 +11,4 @@ import type { ParsedFlags } from "@lovrabet/cli-framework";
|
|
|
11
11
|
*
|
|
12
12
|
* 未声明 alias flag 的命令不受影响。
|
|
13
13
|
*/
|
|
14
|
-
export declare function resolveAliasToCode(def: CommandDefinition, flags: ParsedFlags, apiDir: string, commandLabel: string): void;
|
|
14
|
+
export declare function resolveAliasToCode(def: CommandDefinition, flags: ParsedFlags, apiDir: string, commandLabel: string, appCode?: string, selectedAppName?: string): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x204c82,_0x4f5998){const _0x105add=a306_0xf16e,_0x55b3ae=_0x204c82();while(!![]){try{const _0x5a3006=-parseInt(_0x105add(0x19d))/0x1+parseInt(_0x105add(0x193))/0x2*(-parseInt(_0x105add(0x191))/0x3)+parseInt(_0x105add(0x199))/0x4*(parseInt(_0x105add(0x188))/0x5)+-parseInt(_0x105add(0x18d))/0x6*(parseInt(_0x105add(0x19f))/0x7)+parseInt(_0x105add(0x19b))/0x8*(parseInt(_0x105add(0x194))/0x9)+parseInt(_0x105add(0x18e))/0xa+parseInt(_0x105add(0x198))/0xb;if(_0x5a3006===_0x4f5998)break;else _0x55b3ae['push'](_0x55b3ae['shift']());}catch(_0x142473){_0x55b3ae['push'](_0x55b3ae['shift']());}}}(a306_0xa1c8,0x44b85));import{CliErrors}from'../errors.js';function a306_0xf16e(_0x4dc48c,_0x4d817f){_0x4dc48c=_0x4dc48c-0x187;const _0xa1c89f=a306_0xa1c8();let _0xf16e74=_0xa1c89f[_0x4dc48c];return _0xf16e74;}import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{resolveApiModelSource}from'../api/model-source.js';export function resolveAliasToCode(_0x2216ec,_0xf47c5,_0x35aac5,_0x455f5c,_0x4e393c,_0x45d582){const _0x4a7204=a306_0xf16e,_0x2d486b=_0x2216ec['flags']['some'](_0x1dc106=>_0x1dc106['name']==='code'&&_0x1dc106['type']===_0x4a7204(0x1a1)),_0x4a3a2d=_0x2216ec[_0x4a7204(0x18b)]['some'](_0x28de63=>_0x28de63[_0x4a7204(0x19c)]===_0x4a7204(0x19a)&&_0x28de63[_0x4a7204(0x19e)]==='string');if(!_0x2d486b||!_0x4a3a2d)return;const _0x1eb1b1=_0xf47c5[_0x4a7204(0x192)]?String(_0xf47c5[_0x4a7204(0x192)]):'',_0x1e503a=_0xf47c5[_0x4a7204(0x19a)]?String(_0xf47c5[_0x4a7204(0x19a)]):'';if(!_0x1eb1b1&&!_0x1e503a)throw CliErrors[_0x4a7204(0x189)]('`'+_0x455f5c+_0x4a7204(0x195));if(_0x1e503a&&!_0x1eb1b1){const _0x293912=resolveApiModelSource(_0x35aac5,_0x4e393c,_0x45d582),_0x17dcf4=resolveAlias(_0x35aac5,_0x1e503a,undefined,_0x293912[_0x4a7204(0x197)],_0x293912[_0x4a7204(0x187)]);if(!_0x17dcf4){const _0x1a08ad=listAliases(_0x35aac5,undefined,_0x293912['filePath'],_0x293912[_0x4a7204(0x187)])[_0x4a7204(0x18c)](_0x3febbf=>_0x3febbf[_0x4a7204(0x19a)]),_0xa25492=_0x1a08ad[_0x4a7204(0x196)]?'Available\x20aliases:\x20'+_0x1a08ad[_0x4a7204(0x1a0)](',\x20'):_0x4a7204(0x1a2)+_0x35aac5+_0x4a7204(0x18f)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors[_0x4a7204(0x189)](_0x4a7204(0x190)+_0x1e503a+_0x4a7204(0x18a)+_0xa25492);}_0xf47c5[_0x4a7204(0x192)]=_0x17dcf4;}}function a306_0xa1c8(){const _0x2e6af9=['.\x20Run\x20`','Unknown\x20alias\x20\x22','111YeFWRR','code','4362vYRoPC','54pFzoff','`\x20requires\x20either\x20--code\x20or\x20--alias.','length','filePath','7428421wCouPG','4aLXhxb','alias','536832ZsCknZ','name','534798JyUrtg','type','7sUmcYs','join','string','No\x20model\x20aliases\x20found\x20in\x20','profileName','972825RJrkFi','validation','\x22.\x20','flags','map','2920914gIMfXa','1112910GmhFQi'];a306_0xa1c8=function(){return _0x2e6af9;};return a306_0xa1c8();}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x1e3dcf,_0x15bc76){const _0x578f98=a295_0x2475,_0x21f7d2=_0x1e3dcf();while(!![]){try{const _0x2e3013=-parseInt(_0x578f98(0x178))/0x1+parseInt(_0x578f98(0x166))/0x2*(parseInt(_0x578f98(0x147))/0x3)+-parseInt(_0x578f98(0x14d))/0x4*(parseInt(_0x578f98(0x160))/0x5)+parseInt(_0x578f98(0x156))/0x6*(-parseInt(_0x578f98(0x15b))/0x7)+parseInt(_0x578f98(0x161))/0x8+parseInt(_0x578f98(0x148))/0x9+parseInt(_0x578f98(0x19a))/0xa*(parseInt(_0x578f98(0x149))/0xb);if(_0x2e3013===_0x15bc76)break;else _0x21f7d2['push'](_0x21f7d2['shift']());}catch(_0x12298b){_0x21f7d2['push'](_0x21f7d2['shift']());}}}(a295_0x471f,0x32dd6));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 a295_0x27d548}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x54a059){const _0x5a46bf=a295_0x2475;return typeof _0x54a059===_0x5a46bf(0x146)&&_0x54a059[_0x5a46bf(0x18c)]()?_0x54a059[_0x5a46bf(0x18c)]():undefined;}function resolveEnvAppCode(){const _0x285a17=a295_0x2475,_0x1752ba=stringFlag(process.env.RABETBASE_APPCODE);if(_0x1752ba)return{'name':_0x285a17(0x153),'value':_0x1752ba};const _0x5b9889=stringFlag(process.env.LOVRABET_APPCODE);if(_0x5b9889)return{'name':_0x285a17(0x199),'value':_0x5b9889};return undefined;}function a295_0x471f(){const _0x57d9ef=['selectedAppName','LOVRABET_APPCODE','10hgWpaq','name','message','hint','requiresAppCode','string','3ymNmIF','1735929ZAUOze','1051743RGOGUp','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','nonInteractive','production','4vJGnCX','format','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','pretty','isNonInteractive','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','RABETBASE_APPCODE','Edit\x20the\x20config\x20file\x20manually','doctor','10158nscgZu','filter','_notice','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','appcode','1211lNSnMI','value','object','\x20\x20\x20Continue?\x20[y/N]\x20','has','1713890FEFtOS','1972712LNdCaO','\x0a\x20\x20','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','formatOutput','rawFlags','770402PfRxEx','defaultVerbose','join','authRequired','explicitAppName','includes','meowKey','⚠\x20\x20High-risk\x20operation:\x20','apps','../constant/env.js','defaultPageSize','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','some','configMissing','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','command','replace','76275QSzCUE','confirmHighRisk','pageSize','App\x20\x22','../core/api-client.js','find','keys','apiDir','High-risk\x20operation\x20`','cancelled','defaultApp','length','resolveAppCode','Current\x20resolved\x20appcode\x20is\x20\x22','resolveApiDomain','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','execute','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','service','update','trim','currentApp','appCode','none','schema','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','validation','Available:\x20','risk','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','all','mergedCli'];a295_0x471f=function(){return _0x57d9ef;};return a295_0x471f();}function a295_0x2475(_0x202e39,_0x4c5a83){_0x202e39=_0x202e39-0x144;const _0x471f17=a295_0x471f();let _0x2475b4=_0x471f17[_0x202e39];return _0x2475b4;}function hasExplicitAppCode(_0xc9e69f,_0x3256c5){const _0x1db3f0=a295_0x2475;return!!(stringFlag(_0xc9e69f[_0x1db3f0(0x15a)])||stringFlag(_0x3256c5[_0x1db3f0(0x15a)]));}function assertEnvAppCodeNotIgnored(_0x214fd8,_0x2d8c1b,_0x3d8d80){const _0xe1ac9d=a295_0x2475;if(!_0x2d8c1b||_0x3d8d80||_0x214fd8===_0x2d8c1b['value'])return;const _0x3aeb69=_0x214fd8?_0xe1ac9d(0x185)+_0x214fd8+'\x22.':_0xe1ac9d(0x195);throw CliErrors[_0xe1ac9d(0x192)](_0x2d8c1b[_0xe1ac9d(0x19b)]+'='+_0x2d8c1b[_0xe1ac9d(0x15c)]+_0xe1ac9d(0x171)+_0x3aeb69+'\x20'+(_0xe1ac9d(0x172)+_0x2d8c1b[_0xe1ac9d(0x19b)]+'\x22.'));}export function createPipelineEnv(_0x2a0700,_0x303ffd,_0x198a90=[]){const _0x5f34d5=a295_0x2475;return{'rawFlags':_0x303ffd,'args':_0x198a90,'resolveAppCode':()=>_0x2a0700['appCode'],'resolveCookie':()=>_0x2a0700['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a295_0x27d548(_0x303ffd),'defaultFormat':_0x2a0700[_0x5f34d5(0x14e)],'defaultPageSize':_0x2a0700[_0x5f34d5(0x17a)],'defaultVerbose':_0x2a0700['verbose'],'apiDir':_0x2a0700[_0x5f34d5(0x17f)],'riskLevel':_0x2a0700['riskLevel'],'selectedAppName':_0x2a0700[_0x5f34d5(0x16a)],'mergedCli':{'defaultApp':_0x2a0700[_0x5f34d5(0x182)],'currentApp':_0x2a0700['currentApp'],'appCode':_0x2a0700[_0x5f34d5(0x18e)],'apps':_0x2a0700[_0x5f34d5(0x16e)]}};}export function createRabetbaseRunnerAdapter(_0x2e37ef={}){const _0x766989=a295_0x2475;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x766989(0x157)](_0x126925=>PIPELINE_FLAG_NAMES[_0x766989(0x15f)](_0x126925[_0x766989(0x19b)]))['map'](({name:_0x551676,type:_0x1c7267,description:_0xe1b8d9})=>({'name':_0x551676,'type':_0x1c7267,'description':_0xe1b8d9})),'formatOutput':_0x2e37ef[_0x766989(0x164)]??formatOutput,'getCommandLabel'(_0x1a4cb7){const _0x1bb95a=_0x766989;return CLI_BIN_NAME+'\x20'+_0x1a4cb7[_0x1bb95a(0x18a)]+'\x20'+_0x1a4cb7[_0x1bb95a(0x176)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0xca2ee2,{def:_0x19bde5}){const _0x2c6ed5=_0x766989,_0x92dfc5=_0xca2ee2[_0x2c6ed5(0x16b)](_0x2c6ed5(0x154))?_0x2c6ed5(0x175):'A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22'+_0x19bde5[_0x2c6ed5(0x194)]+_0x2c6ed5(0x191)+'AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.';return CliErrors[_0x2c6ed5(0x192)](_0xca2ee2+_0x2c6ed5(0x162)+_0x92dfc5);}},async 'prepare'(_0x2f4714,_0x56fcf8,_0x522814,_0x3681c7){const _0x2e8a68=_0x766989,_0x1a2aee=_0x56fcf8[_0x2e8a68(0x17f)]||DEFAULT_API_DIR;resolveAliasToCode(_0x2f4714,_0x522814,_0x1a2aee,_0x3681c7);const _0x3393d4=resolveCommandAuthMode(_0x2f4714);let _0x2091f9='';if(_0x3393d4!==_0x2e8a68(0x18f)){_0x2091f9=_0x56fcf8['resolveCookie']()||'';if(!_0x2091f9){if(_0x3393d4==='required')throw CliErrors[_0x2e8a68(0x169)]();}else{const {setActiveCookie:_0x45a6ca}=await import('../core/api-client.js');_0x45a6ca(_0x2091f9);}}const _0x5a4fa8=_0x56fcf8[_0x2e8a68(0x184)]()??'';if(_0x2f4714[_0x2e8a68(0x145)]!==![]){const _0x19ce0f=hasExplicitAppCode(_0x522814,_0x56fcf8['rawFlags']),_0x381b1c=_0x56fcf8['mergedCli']?.[_0x2e8a68(0x16e)]??{},_0x46b597=_0x56fcf8[_0x2e8a68(0x198)]||_0x56fcf8['mergedCli']?.[_0x2e8a68(0x18d)]||_0x56fcf8[_0x2e8a68(0x197)]?.[_0x2e8a68(0x182)];if(!_0x19ce0f&&_0x46b597&&!_0x381b1c[_0x46b597]){const _0xba47dc=Object[_0x2e8a68(0x17e)](_0x381b1c);throw CliErrors[_0x2e8a68(0x192)](_0x2e8a68(0x17b)+_0x46b597+_0x2e8a68(0x14a),_0xba47dc[_0x2e8a68(0x183)]>0x0?_0x2e8a68(0x193)+_0xba47dc[_0x2e8a68(0x168)](',\x20')+_0x2e8a68(0x189)+CLI_BIN_NAME+'\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.':_0x2e8a68(0x14f)+CLI_BIN_NAME+_0x2e8a68(0x163));}assertEnvAppCodeNotIgnored(_0x5a4fa8,resolveEnvAppCode(),_0x19ce0f);if(!_0x5a4fa8){const _0x5be4bf=Object['keys'](_0x381b1c);if(!_0x46b597&&_0x5be4bf['length']>0x1)throw CliErrors[_0x2e8a68(0x174)](_0x2e8a68(0x187)+CLI_BIN_NAME+_0x2e8a68(0x159)+_0x5be4bf['join'](',\x20')+'.');throw CliErrors[_0x2e8a68(0x174)]('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}}return{'defaults':{'booleans':{'verbose':_0x56fcf8[_0x2e8a68(0x167)]},'numbers':{'pagesize':_0x56fcf8[_0x2e8a68(0x170)]}},'extras':{'appCode':_0x5a4fa8,'cookie':_0x2091f9,'apiDomain':_0x56fcf8[_0x2e8a68(0x186)](),'apiDir':_0x1a2aee,'selectedAppName':_0x56fcf8[_0x2e8a68(0x198)],'mergedCli':_0x56fcf8[_0x2e8a68(0x197)]}};},'confirmHighRisk':_0x2e37ef[_0x766989(0x179)]??(async({env:_0x482c31,commandLabel:_0x30f044})=>{const _0x235643=_0x766989;if(_0x482c31[_0x235643(0x151)])throw CliErrors['validation'](_0x235643(0x180)+_0x30f044+_0x235643(0x152));await requireConfirmationPrompt({'lines':[_0x235643(0x16d)+_0x30f044,_0x235643(0x15e)],'createCancelledError':_0x4ef0d4=>CliErrors[_0x235643(0x181)](_0x4ef0d4)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x2bcd4a=a295_0x2475,{clearActiveCookie:_0x40f8fe}=await import(_0x2bcd4a(0x17c));_0x40f8fe();}export async function finalizeRabetbaseRuntimeState(){const _0xae751a=a295_0x2475;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x320e6c},{initEnv:_0x3e4725}]=await Promise[_0xae751a(0x196)]([import('../constant/domain.js'),import(_0xae751a(0x16f))]);_0x320e6c(),_0x3e4725(_0xae751a(0x14c));}}export async function runCommand(_0x3cf2ee,_0x54e890,_0x1a274c=terminalRunnerAdapter){const _0x10ff94=a295_0x2475;assertRejectedFlags(_0x3cf2ee,_0x54e890[_0x10ff94(0x165)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x3cf2ee)?withUpdateNotice(_0x3cf2ee):_0x3cf2ee,_0x54e890,_0x1a274c);}function assertRejectedFlags(_0x8826c,_0x3d6b65){const _0x52ce86=a295_0x2475;for(const _0x196700 of _0x8826c['rejectedFlags']??[]){const _0x56b6c8=GLOBAL_FLAGS[_0x52ce86(0x17d)](_0x2b5940=>_0x2b5940['name']===_0x196700[_0x52ce86(0x19b)]),_0x5b1e27=new Set([_0x196700[_0x52ce86(0x19b)],toCamelCase(_0x196700['name']),_0x56b6c8?.[_0x52ce86(0x16c)]]),_0x4e7a19=[..._0x5b1e27][_0x52ce86(0x173)](_0x914c12=>{if(!_0x914c12)return![];const _0x505c69=_0x3d6b65[_0x914c12];return _0x505c69!==undefined&&_0x505c69!==null&&_0x505c69!==![];});if(_0x4e7a19)throw CliErrors[_0x52ce86(0x192)](_0x196700[_0x52ce86(0x19c)],_0x196700[_0x52ce86(0x144)]);}}function toCamelCase(_0x469397){const _0x495826=a295_0x2475;return _0x469397[_0x495826(0x177)](/-([a-z])/g,(_0x5a2128,_0x2ad1b2)=>_0x2ad1b2['toUpperCase']());}function shouldAttachUpdateNotice(_0x1242c8){const _0x237505=a295_0x2475;if(_0x1242c8['hasFormat']===![])return![];return![_0x237505(0x18b),_0x237505(0x190),_0x237505(0x155)][_0x237505(0x16b)](_0x1242c8[_0x237505(0x18a)]);}function withUpdateNotice(_0x961a67){return{..._0x961a67,async 'execute'(_0x2125d2){const _0x427951=a295_0x2475,_0x21f859=shouldResolveUpdateNotice(_0x2125d2)?resolveLatestUpdateNotice()['catch'](()=>null):Promise['resolve'](null),_0xb4974=await _0x961a67[_0x427951(0x188)](_0x2125d2);return attachUpdateNotice(_0xb4974,await _0x21f859);}};}function shouldResolveUpdateNotice(_0x31c928){const _0x782ba3=a295_0x2475;return _0x31c928[_0x782ba3(0x14e)]===_0x782ba3(0x150)&&!_0x31c928[_0x782ba3(0x14b)];}function attachUpdateNotice(_0x53c319,_0x3ee622){const _0x3c7a6d=a295_0x2475;if(!_0x3ee622||!_0x53c319||typeof _0x53c319!=='object')return _0x53c319;const _0x26e7a=_0x53c319,_0xe60592=typeof _0x26e7a['_notice']===_0x3c7a6d(0x15d)&&_0x26e7a[_0x3c7a6d(0x158)]!==null?_0x26e7a[_0x3c7a6d(0x158)]:{};return{..._0x26e7a,'_notice':{..._0xe60592,'update':_0x3ee622}};}
|
|
1
|
+
(function(_0x2fe19b,_0x5b7f76){const _0x2b5aa1=a307_0x6595,_0x23d5bd=_0x2fe19b();while(!![]){try{const _0x253e30=-parseInt(_0x2b5aa1(0x1f1))/0x1*(-parseInt(_0x2b5aa1(0x20f))/0x2)+parseInt(_0x2b5aa1(0x1db))/0x3*(parseInt(_0x2b5aa1(0x1d1))/0x4)+-parseInt(_0x2b5aa1(0x208))/0x5*(parseInt(_0x2b5aa1(0x1c5))/0x6)+-parseInt(_0x2b5aa1(0x1bc))/0x7+parseInt(_0x2b5aa1(0x1c3))/0x8+-parseInt(_0x2b5aa1(0x210))/0x9+parseInt(_0x2b5aa1(0x1ef))/0xa*(parseInt(_0x2b5aa1(0x1fe))/0xb);if(_0x253e30===_0x5b7f76)break;else _0x23d5bd['push'](_0x23d5bd['shift']());}catch(_0x36adcb){_0x23d5bd['push'](_0x23d5bd['shift']());}}}(a307_0x1952,0x805ba));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';function a307_0x6595(_0x56b0a2,_0x147a0e){_0x56b0a2=_0x56b0a2-0x1b7;const _0x195232=a307_0x1952();let _0x659560=_0x195232[_0x56b0a2];return _0x659560;}import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a307_0x3c3373}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x4d5ede){const _0x23a279=a307_0x6595;return typeof _0x4d5ede===_0x23a279(0x1f2)&&_0x4d5ede[_0x23a279(0x1e9)]()?_0x4d5ede['trim']():undefined;}function resolveEnvAppCode(){const _0x44c6f5=a307_0x6595,_0x2c290b=stringFlag(process.env.RABETBASE_APPCODE);if(_0x2c290b)return{'name':_0x44c6f5(0x1bf),'value':_0x2c290b};const _0x39fe69=stringFlag(process.env.LOVRABET_APPCODE);if(_0x39fe69)return{'name':_0x44c6f5(0x1bd),'value':_0x39fe69};return undefined;}function a307_0x1952(){const _0xb1b751=['\x0a\x20\x20','High-risk\x20operation\x20`','risk','entries','Set\x20appcode\x20via\x20`','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','947441WDoURd','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','object','defaultPageSize','selectedAppName','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','pageSize','keys','apps','nonInteractive','1120870KZqxfe','required','replace','toUpperCase','all','name','appcode','489170hPxZjg','3362409tGSoyu','command','../constant/env.js','hasFormat','none','riskLevel','defaultVerbose','length','includes','4869074PvkWLE','LOVRABET_APPCODE','schema','RABETBASE_APPCODE','service','appCode','isNonInteractive','5230808OhufSR','Edit\x20the\x20config\x20file\x20manually','24SDYzde','\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20','cookie','map','find','explicitAppName','rawFlags','message','confirmHighRisk','apiDir','filter','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','4gaWYyN','doctor','defaultApp','../constant/domain.js','update','value','some','join','resolveAppCode','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','128517urjVkF','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','mergedCli','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','verbose','hint','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','App\x20\x22','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','currentApp','catch','requiresAppCode','has','trim','cancelled','authRequired','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','_notice','180TfMXTZ','execute','1cWZPQA','string','validation','AppCode\x20\x22','production','formatOutput','meowKey'];a307_0x1952=function(){return _0xb1b751;};return a307_0x1952();}function hasExplicitAppCode(_0x182599,_0xf1bfe3){const _0x123c9a=a307_0x6595;return!!(stringFlag(_0x182599['appcode'])||stringFlag(_0xf1bfe3[_0x123c9a(0x20e)]));}function assertEnvAppCodeNotIgnored(_0x555ca6,_0xa23268,_0xd2099f){const _0x51af0f=a307_0x6595;if(!_0xa23268||_0xd2099f||_0x555ca6===_0xa23268[_0x51af0f(0x1d6)])return;const _0x3eb80d=_0x555ca6?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0x555ca6+'\x22.':_0x51af0f(0x1da);throw CliErrors[_0x51af0f(0x1f3)](_0xa23268['name']+'='+_0xa23268[_0x51af0f(0x1d6)]+_0x51af0f(0x1fd)+_0x3eb80d+'\x20'+(_0x51af0f(0x1ed)+_0xa23268[_0x51af0f(0x20d)]+'\x22.'));}export function createPipelineEnv(_0x5dbd27,_0x5e4508,_0x1f6c53=[]){const _0x39afd9=a307_0x6595;return{'rawFlags':_0x5e4508,'args':_0x1f6c53,'resolveAppCode':()=>_0x5dbd27[_0x39afd9(0x1c1)],'resolveCookie':()=>_0x5dbd27[_0x39afd9(0x1c7)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a307_0x3c3373(_0x5e4508),'defaultFormat':_0x5dbd27['format'],'defaultPageSize':_0x5dbd27[_0x39afd9(0x204)],'defaultVerbose':_0x5dbd27[_0x39afd9(0x1e0)],'apiDir':_0x5dbd27[_0x39afd9(0x1ce)],'riskLevel':_0x5dbd27[_0x39afd9(0x1b8)],'selectedAppName':_0x5dbd27[_0x39afd9(0x1ca)],'mergedCli':{'defaultApp':_0x5dbd27[_0x39afd9(0x1d3)],'currentApp':_0x5dbd27['currentApp'],'appCode':_0x5dbd27[_0x39afd9(0x1c1)],'apps':_0x5dbd27[_0x39afd9(0x206)]}};}export function createRabetbaseRunnerAdapter(_0x10b0b8={}){const _0x4a77ec=a307_0x6595;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x4cdb3d=>PIPELINE_FLAG_NAMES[_0x4a77ec(0x1e8)](_0x4cdb3d['name']))[_0x4a77ec(0x1c8)](({name:_0x23cf30,type:_0x32d61b,description:_0x30f3dd})=>({'name':_0x23cf30,'type':_0x32d61b,'description':_0x30f3dd})),'formatOutput':_0x10b0b8[_0x4a77ec(0x1f6)]??formatOutput,'getCommandLabel'(_0x3b1dd2){const _0x6675ff=_0x4a77ec;return CLI_BIN_NAME+'\x20'+_0x3b1dd2[_0x6675ff(0x1c0)]+'\x20'+_0x3b1dd2[_0x6675ff(0x211)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x48f377,{def:_0x3eed86}){const _0x42a23f=_0x4a77ec,_0x527369=_0x48f377[_0x42a23f(0x1bb)](_0x42a23f(0x1c4))?'AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.':_0x42a23f(0x1e2)+_0x3eed86[_0x42a23f(0x1fa)]+_0x42a23f(0x1e4)+_0x42a23f(0x1ec);return CliErrors[_0x42a23f(0x1f3)](_0x48f377+_0x42a23f(0x1f8)+_0x527369);}},async 'prepare'(_0x2f20ad,_0x38e560,_0x2eecc1,_0x246a27){const _0x3a25fa=_0x4a77ec,_0x72417a=_0x38e560[_0x3a25fa(0x1ce)]||DEFAULT_API_DIR,_0x632bc2=hasExplicitAppCode(_0x2eecc1,_0x38e560[_0x3a25fa(0x1cb)]),_0x3ac4ae=stringFlag(_0x2eecc1[_0x3a25fa(0x20e)])||stringFlag(_0x38e560[_0x3a25fa(0x1cb)]['appcode']),_0x4e5b2f=_0x38e560[_0x3a25fa(0x1de)]?.[_0x3a25fa(0x206)]??{},_0x2bd915=_0x38e560['selectedAppName']||_0x38e560[_0x3a25fa(0x1de)]?.[_0x3a25fa(0x1e5)]||_0x38e560[_0x3a25fa(0x1de)]?.[_0x3a25fa(0x1d3)],_0x46be07=_0x3ac4ae?Object[_0x3a25fa(0x1fb)](_0x4e5b2f)[_0x3a25fa(0x1cf)](([,_0x2d4727])=>_0x2d4727[_0x3a25fa(0x20e)]===_0x3ac4ae)['map'](([_0x1cf32f])=>_0x1cf32f):[];if(_0x46be07[_0x3a25fa(0x1ba)]>0x1&&!_0x38e560[_0x3a25fa(0x202)])throw CliErrors[_0x3a25fa(0x1f3)](_0x3a25fa(0x1f4)+_0x3ac4ae+_0x3a25fa(0x1c6)+_0x46be07['join'](',\x20')+'.',_0x3a25fa(0x1dc));resolveAliasToCode(_0x2f20ad,_0x2eecc1,_0x72417a,_0x246a27,_0x38e560['resolveAppCode'](),_0x2bd915);const _0x565a60=resolveCommandAuthMode(_0x2f20ad);let _0x3b4e46='';if(_0x565a60!==_0x3a25fa(0x1b7)){_0x3b4e46=_0x38e560['resolveCookie']()||'';if(!_0x3b4e46){if(_0x565a60===_0x3a25fa(0x209))throw CliErrors[_0x3a25fa(0x1eb)]();}else{const {setActiveCookie:_0x5729ed}=await import('../core/api-client.js');_0x5729ed(_0x3b4e46);}}const _0x557d28=_0x38e560[_0x3a25fa(0x1d9)]()??'';if(_0x2f20ad[_0x3a25fa(0x1e7)]!==![]){if(!_0x632bc2&&_0x2bd915&&!_0x4e5b2f[_0x2bd915]){const _0x47d811=Object['keys'](_0x4e5b2f);throw CliErrors['validation'](_0x3a25fa(0x1e3)+_0x2bd915+'\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.',_0x47d811[_0x3a25fa(0x1ba)]>0x0?'Available:\x20'+_0x47d811['join'](',\x20')+_0x3a25fa(0x1dd)+CLI_BIN_NAME+'\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.':_0x3a25fa(0x1d0)+CLI_BIN_NAME+_0x3a25fa(0x203));}assertEnvAppCodeNotIgnored(_0x557d28,resolveEnvAppCode(),_0x632bc2);if(!_0x557d28){const _0x3516e5=Object[_0x3a25fa(0x205)](_0x4e5b2f);if(!_0x2bd915&&_0x3516e5[_0x3a25fa(0x1ba)]>0x1)throw CliErrors['configMissing']('Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`'+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20'+_0x3516e5[_0x3a25fa(0x1d8)](',\x20')+'.');throw CliErrors['configMissing'](_0x3a25fa(0x1fc)+CLI_BIN_NAME+_0x3a25fa(0x1ff));}}return{'defaults':{'booleans':{'verbose':_0x38e560[_0x3a25fa(0x1b9)]},'numbers':{'pagesize':_0x38e560[_0x3a25fa(0x201)]}},'extras':{'appCode':_0x557d28,'cookie':_0x3b4e46,'apiDomain':_0x38e560['resolveApiDomain'](),'apiDir':_0x72417a,'selectedAppName':_0x38e560[_0x3a25fa(0x202)],'mergedCli':_0x38e560[_0x3a25fa(0x1de)]}};},'confirmHighRisk':_0x10b0b8[_0x4a77ec(0x1cd)]??(async({env:_0x2505fc,commandLabel:_0x22e2b6})=>{const _0x256aff=_0x4a77ec;if(_0x2505fc[_0x256aff(0x1c2)])throw CliErrors['validation'](_0x256aff(0x1f9)+_0x22e2b6+_0x256aff(0x1df));await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x22e2b6,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x554d74=>CliErrors[_0x256aff(0x1ea)](_0x554d74)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const {clearActiveCookie:_0x2f0530}=await import('../core/api-client.js');_0x2f0530();}export async function finalizeRabetbaseRuntimeState(){const _0x1bfd77=a307_0x6595;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x292efa},{initEnv:_0x37e33f}]=await Promise[_0x1bfd77(0x20c)]([import(_0x1bfd77(0x1d4)),import(_0x1bfd77(0x212))]);_0x292efa(),_0x37e33f(_0x1bfd77(0x1f5));}}export async function runCommand(_0x88b3c8,_0x4ff4d,_0x213090=terminalRunnerAdapter){const _0x24154f=a307_0x6595;assertRejectedFlags(_0x88b3c8,_0x4ff4d[_0x24154f(0x1cb)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x88b3c8)?withUpdateNotice(_0x88b3c8):_0x88b3c8,_0x4ff4d,_0x213090);}function assertRejectedFlags(_0x51988f,_0xb4b668){const _0x564983=a307_0x6595;for(const _0x475a58 of _0x51988f['rejectedFlags']??[]){const _0x30091f=GLOBAL_FLAGS[_0x564983(0x1c9)](_0x209c5f=>_0x209c5f[_0x564983(0x20d)]===_0x475a58[_0x564983(0x20d)]),_0x4afed0=new Set([_0x475a58[_0x564983(0x20d)],toCamelCase(_0x475a58[_0x564983(0x20d)]),_0x30091f?.[_0x564983(0x1f7)]]),_0x14bfae=[..._0x4afed0][_0x564983(0x1d7)](_0x5ce584=>{if(!_0x5ce584)return![];const _0x5a0a8d=_0xb4b668[_0x5ce584];return _0x5a0a8d!==undefined&&_0x5a0a8d!==null&&_0x5a0a8d!==![];});if(_0x14bfae)throw CliErrors[_0x564983(0x1f3)](_0x475a58[_0x564983(0x1cc)],_0x475a58[_0x564983(0x1e1)]);}}function toCamelCase(_0x475207){const _0x41855a=a307_0x6595;return _0x475207[_0x41855a(0x20a)](/-([a-z])/g,(_0x3749f5,_0x1fcec3)=>_0x1fcec3[_0x41855a(0x20b)]());}function shouldAttachUpdateNotice(_0x3bf941){const _0xb0eb70=a307_0x6595;if(_0x3bf941[_0xb0eb70(0x213)]===![])return![];return![_0xb0eb70(0x1d5),_0xb0eb70(0x1be),_0xb0eb70(0x1d2)][_0xb0eb70(0x1bb)](_0x3bf941[_0xb0eb70(0x1c0)]);}function withUpdateNotice(_0x16d4ba){return{..._0x16d4ba,async 'execute'(_0x274442){const _0x54bb54=a307_0x6595,_0x5b3762=shouldResolveUpdateNotice(_0x274442)?resolveLatestUpdateNotice()[_0x54bb54(0x1e6)](()=>null):Promise['resolve'](null),_0x1a2e55=await _0x16d4ba[_0x54bb54(0x1f0)](_0x274442);return attachUpdateNotice(_0x1a2e55,await _0x5b3762);}};}function shouldResolveUpdateNotice(_0x18daa0){const _0x23da2a=a307_0x6595;return _0x18daa0['format']==='pretty'&&!_0x18daa0[_0x23da2a(0x207)];}function attachUpdateNotice(_0x627e24,_0x40ed13){const _0x3a4a66=a307_0x6595;if(!_0x40ed13||!_0x627e24||typeof _0x627e24!==_0x3a4a66(0x200))return _0x627e24;const _0x7ba7cd=_0x627e24,_0x317d4e=typeof _0x7ba7cd[_0x3a4a66(0x1ee)]===_0x3a4a66(0x200)&&_0x7ba7cd['_notice']!==null?_0x7ba7cd[_0x3a4a66(0x1ee)]:{};return{..._0x7ba7cd,'_notice':{..._0x317d4e,'update':_0x40ed13}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1f1f52,_0x5c1e42){const _0x3e8688=a308_0x15d2,_0x38b763=_0x1f1f52();while(!![]){try{const _0x599587=-parseInt(_0x3e8688(0x192))/0x1*(-parseInt(_0x3e8688(0x191))/0x2)+parseInt(_0x3e8688(0x195))/0x3+-parseInt(_0x3e8688(0x193))/0x4+-parseInt(_0x3e8688(0x190))/0x5+-parseInt(_0x3e8688(0x197))/0x6+parseInt(_0x3e8688(0x198))/0x7+parseInt(_0x3e8688(0x194))/0x8;if(_0x599587===_0x5c1e42)break;else _0x38b763['push'](_0x38b763['shift']());}catch(_0x335162){_0x38b763['push'](_0x38b763['shift']());}}}(a308_0x4e8f,0xc1769));import{buildSchemaPayload as a308_0xcccc18}from'@lovrabet/cli-framework';function a308_0x4e8f(){const _0x27896f=['1094880ffDwxQ','591920RWVSHr','3321040hkVecB','1685234iRQrBH','1rDCazM','4531940nkzKBi','12795656EBlLnt','736392YSllAV','../commands/registry.js'];a308_0x4e8f=function(){return _0x27896f;};return a308_0x4e8f();}import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a308_0x15d2(_0x2b9edb,_0x25033d){_0x2b9edb=_0x2b9edb-0x190;const _0x4e8f82=a308_0x4e8f();let _0x15d250=_0x4e8f82[_0x2b9edb];return _0x15d250;}import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x4c80a7=a308_0x15d2,{serviceRegistry:_0x1cb725,findDefinition:_0x189a95}=await import(_0x4c80a7(0x196));return a308_0xcccc18({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x1cb725,'buildAllFlags':buildAllFlags,'findDefinition':_0x189a95});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x58a0aa,_0x28304f){const _0x2c8218=a309_0x41e8,_0x23b986=_0x58a0aa();while(!![]){try{const _0x37beed=-parseInt(_0x2c8218(0x77))/0x1+parseInt(_0x2c8218(0x7f))/0x2*(parseInt(_0x2c8218(0x73))/0x3)+-parseInt(_0x2c8218(0x76))/0x4+parseInt(_0x2c8218(0x7a))/0x5*(-parseInt(_0x2c8218(0x91))/0x6)+-parseInt(_0x2c8218(0x8c))/0x7*(parseInt(_0x2c8218(0x90))/0x8)+-parseInt(_0x2c8218(0x80))/0x9+parseInt(_0x2c8218(0x79))/0xa;if(_0x37beed===_0x28304f)break;else _0x23b986['push'](_0x23b986['shift']());}catch(_0x2daff1){_0x23b986['push'](_0x23b986['shift']());}}}(a309_0x47e4,0x4fac2));function a309_0x41e8(_0x437feb,_0x43b1f7){_0x437feb=_0x437feb-0x71;const _0x47e403=a309_0x47e4();let _0x41e8f5=_0x47e403[_0x437feb];return _0x41e8f5;}import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function assertSupportedCommandFlags(_0xa7f6fd,_0x1f480d){const _0x4959ff=a309_0x41e8;if(!_0xa7f6fd[_0x4959ff(0x82)])return;const _0x2d2993=new Set([_0x4959ff(0x7e),_0x4959ff(0x7c)]),_0x2e99f5=GLOBAL_FLAGS['filter'](_0x1bbd21=>PIPELINE_FLAG_NAMES[_0x4959ff(0x84)](_0x1bbd21[_0x4959ff(0x8d)]));for(const _0x92f8b8 of[..._0xa7f6fd[_0x4959ff(0x8f)],..._0x2e99f5]){addFlagCandidates(_0x2d2993,_0x92f8b8);}for(const [_0x47ceb9,_0x27eec2]of Object[_0x4959ff(0x71)](_0x1f480d)){if(!isExplicitValue(_0x27eec2)||_0x2d2993[_0x4959ff(0x84)](_0x47ceb9))continue;const _0x1b53bc=GLOBAL_FLAGS[_0x4959ff(0x86)](_0x224287=>_0x224287[_0x4959ff(0x72)]===_0x47ceb9)?.[_0x4959ff(0x8d)]??toKebabCase(_0x47ceb9);throw CliErrors[_0x4959ff(0x8b)](_0x4959ff(0x74)+_0x1b53bc+_0x4959ff(0x81)+CLI_BIN_NAME+'\x20'+_0xa7f6fd[_0x4959ff(0x89)]+'\x20'+_0xa7f6fd[_0x4959ff(0x8a)]+'`.',_0x4959ff(0x7b)+CLI_BIN_NAME+'\x20'+_0xa7f6fd['service']+'\x20'+_0xa7f6fd[_0x4959ff(0x8a)]+_0x4959ff(0x85));}}function a309_0x47e4(){const _0x4b3c26=['519832GFWttj','193193RVnkKi','alias','12115480xlnIAn','30ZUfxzA','Run\x20`','version','isArray','help','368786DeyrSQ','1706814rYegqZ','\x20for\x20`','strictFlags','toUpperCase','has','\x20--help`\x20to\x20view\x20the\x20current\x20command\x20contract.','find','replace','$1-$2','service','command','validation','318556uZXUEF','name','add','flags','72qhekxZ','147234iaCaWO','entries','meowKey','3tUVUVl','Unsupported\x20flag\x20--','length'];a309_0x47e4=function(){return _0x4b3c26;};return a309_0x47e4();}function addFlagCandidates(_0x4546d8,_0x462b0e){const _0x233224=a309_0x41e8,_0x4ba227=_0x233224(0x72)in _0x462b0e?[_0x462b0e[_0x233224(0x8d)],_0x462b0e[_0x233224(0x72)]]:[_0x462b0e['name'],_0x462b0e[_0x233224(0x78)]];for(const _0x133912 of _0x4ba227){if(!_0x133912)continue;_0x4546d8[_0x233224(0x8e)](_0x133912),_0x4546d8['add'](toCamelCase(_0x133912));}}function isExplicitValue(_0x2e0f61){const _0x4392a8=a309_0x41e8;return _0x2e0f61!==undefined&&_0x2e0f61!==null&&_0x2e0f61!==![]&&(!Array[_0x4392a8(0x7d)](_0x2e0f61)||_0x2e0f61[_0x4392a8(0x75)]>0x0);}function toCamelCase(_0x442b4b){const _0xea88de=a309_0x41e8;return _0x442b4b[_0xea88de(0x87)](/-([a-z])/g,(_0x4cd3bb,_0x276d32)=>_0x276d32[_0xea88de(0x83)]());}function toKebabCase(_0x3e66cc){const _0x2b77d1=a309_0x41e8;return _0x3e66cc['replace'](/([a-z0-9])([A-Z])/g,_0x2b77d1(0x88))['toLowerCase']();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1a00f2,_0x1dba30){var _0x404362=a310_0x51c0,_0x17cb6b=_0x1a00f2();while(!![]){try{var _0x528366=parseInt(_0x404362(0x18e))/0x1*(-parseInt(_0x404362(0x18b))/0x2)+parseInt(_0x404362(0x189))/0x3+parseInt(_0x404362(0x18d))/0x4*(-parseInt(_0x404362(0x18a))/0x5)+parseInt(_0x404362(0x18c))/0x6+parseInt(_0x404362(0x191))/0x7+-parseInt(_0x404362(0x192))/0x8+parseInt(_0x404362(0x18f))/0x9*(parseInt(_0x404362(0x190))/0xa);if(_0x528366===_0x1dba30)break;else _0x17cb6b['push'](_0x17cb6b['shift']());}catch(_0x28b014){_0x17cb6b['push'](_0x17cb6b['shift']());}}}(a310_0xc3ae,0x5a0f2));function a310_0xc3ae(){var _0x5dccd2=['1796432DJuLWC','1422942SGIbsr','5GHtawU','6HpOnAu','3435780GeQBxI','1587676BKuTIW','226531kCAbqe','9CpIRmF','211520bQKdjr','4212964fnVXiZ'];a310_0xc3ae=function(){return _0x5dccd2;};return a310_0xc3ae();}function a310_0x51c0(_0x444b5f,_0x39eb3c){_0x444b5f=_0x444b5f-0x189;var _0xc3aeef=a310_0xc3ae();var _0x51c039=_0xc3aeef[_0x444b5f];return _0x51c039;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.5.3-beta.
|
|
2
|
-
export declare const GIT_TAG = "v2.5.3-beta.
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-09-
|
|
1
|
+
export declare const VERSION = "2.5.3-beta.4";
|
|
2
|
+
export declare const GIT_TAG = "v2.5.3-beta.4";
|
|
3
|
+
export declare const GIT_COMMIT = "e78aef00";
|
|
4
|
+
export declare const BUILD_TIME = "2026-09-12T15:33:19.354Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a311_0xd0aaa9=a311_0x56bb;(function(_0x4b34d4,_0x221815){const _0x2c4c44=a311_0x56bb,_0xed8b8d=_0x4b34d4();while(!![]){try{const _0x14d577=parseInt(_0x2c4c44(0x161))/0x1*(-parseInt(_0x2c4c44(0x16a))/0x2)+-parseInt(_0x2c4c44(0x162))/0x3+-parseInt(_0x2c4c44(0x164))/0x4*(parseInt(_0x2c4c44(0x165))/0x5)+-parseInt(_0x2c4c44(0x160))/0x6*(-parseInt(_0x2c4c44(0x16b))/0x7)+-parseInt(_0x2c4c44(0x168))/0x8+-parseInt(_0x2c4c44(0x167))/0x9*(parseInt(_0x2c4c44(0x169))/0xa)+parseInt(_0x2c4c44(0x16c))/0xb*(parseInt(_0x2c4c44(0x16d))/0xc);if(_0x14d577===_0x221815)break;else _0xed8b8d['push'](_0xed8b8d['shift']());}catch(_0x407247){_0xed8b8d['push'](_0xed8b8d['shift']());}}}(a311_0x599e,0x600b5));export const VERSION='2.5.3-beta.4';function a311_0x56bb(_0x105551,_0x5b0893){_0x105551=_0x105551-0x160;const _0x599ee4=a311_0x599e();let _0x56bb66=_0x599ee4[_0x105551];return _0x56bb66;}export const GIT_TAG=a311_0xd0aaa9(0x166);export const GIT_COMMIT='e78aef00';export const BUILD_TIME=a311_0xd0aaa9(0x163);function a311_0x599e(){const _0x40d826=['v2.5.3-beta.4','4555548SvgQvM','802688nxPJNB','10SpNDMx','10NFKifn','559762xYupth','24403555nAGkaB','12EgXLfu','6kNUrXL','66931wHqepd','1624485OBBKAr','2026-09-12T15:33:19.354Z','211208RYUQSv','40SQMpMl'];a311_0x599e=function(){return _0x40d826;};return a311_0x599e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a312_0x9456df=a312_0x308c;(function(_0x8ce8e7,_0x3db769){const _0x53fbe2=a312_0x308c,_0x4b4163=_0x8ce8e7();while(!![]){try{const _0x526d25=-parseInt(_0x53fbe2(0x1d8))/0x1*(parseInt(_0x53fbe2(0x1d6))/0x2)+-parseInt(_0x53fbe2(0x1d4))/0x3*(parseInt(_0x53fbe2(0x1c3))/0x4)+parseInt(_0x53fbe2(0x1b2))/0x5*(-parseInt(_0x53fbe2(0x1c1))/0x6)+parseInt(_0x53fbe2(0x1d7))/0x7*(parseInt(_0x53fbe2(0x1c4))/0x8)+parseInt(_0x53fbe2(0x1bd))/0x9*(parseInt(_0x53fbe2(0x1da))/0xa)+-parseInt(_0x53fbe2(0x1ce))/0xb*(parseInt(_0x53fbe2(0x1c5))/0xc)+parseInt(_0x53fbe2(0x1cc))/0xd;if(_0x526d25===_0x3db769)break;else _0x4b4163['push'](_0x4b4163['shift']());}catch(_0x2ee497){_0x4b4163['push'](_0x4b4163['shift']());}}}(a312_0x3aff,0x2d082));function a312_0x3aff(){const _0x1d5f7a=['https://app.lovrabet.id','20QsJsUG','https://skills.lovrabet.ai','5dhykeN','https://g.lovrabet.id','https://dev.lovrabet.ai','Global','https://g.lovrabet.com','https://user.lovrabet.com','indonesia','https://api.lovrabet.com','https://skills-daily.lovrabet.com','https://daily-api.lovrabet.com','Mainland\x20China','145647HWGAUW','https://app.lovrabet.com','https://runtime.lovrabet.id','https://user.lovrabet.id','769962DsptUl','https://runtime.lovrabet.ai','333964ZhbBeO','8QkHcwQ','3875616poIwDS','https://skills.lovrabet.com','Indonesia','china','https://user-daily.lovrabet.com','https://g.alicdn.com/code/lib','https://api.lovrabet.id','10777715OCFVkw','https://cdnjs.cloudflare.com/ajax/libs','11bKQTVf','https://dev.lovrabet.id','https://api.lovrabet.ai','https://daily-runtime.lovrabet.com','3106fb4f7940b1f4446307e8a7f0c6f6e4a71affd6f8ebe7e5f23e055c08ca3f','https://user.lovrabet.ai','3CrjUYc','https://skills.lovrabet.id','45188DQLtpt','111811bzZTUc','7keeHGp'];a312_0x3aff=function(){return _0x1d5f7a;};return a312_0x3aff();}function a312_0x308c(_0x1a006e,_0x314906){_0x1a006e=_0x1a006e-0x1b2;const _0x3aff77=a312_0x3aff();let _0x308c9c=_0x3aff77[_0x1a006e];return _0x308c9c;}export const ROUTING_CATALOG_DIGEST=a312_0x9456df(0x1d2);export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id','global'];export const ENABLED_REGION_VALUES=['cn','id'];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a312_0x9456df(0x1bc),'aliases':[a312_0x9456df(0x1c8)],'serviceDomains':{'production':{'user':a312_0x9456df(0x1b7),'api':a312_0x9456df(0x1b9),'runtime':'https://runtime.lovrabet.com','skill':a312_0x9456df(0x1c6),'kb':a312_0x9456df(0x1b9),'app':a312_0x9456df(0x1be)},'daily':{'user':a312_0x9456df(0x1c9),'api':'https://daily-api.lovrabet.com','runtime':a312_0x9456df(0x1d1),'skill':a312_0x9456df(0x1ba),'kb':a312_0x9456df(0x1bb),'app':'https://daily.lovrabet.com'}},'cdn':{'libraries':a312_0x9456df(0x1ca),'lovrabet':a312_0x9456df(0x1b6)},'local':{'origin':'https://dev.lovrabet.com'}},'id':{'enabled':!![],'label':a312_0x9456df(0x1c7),'aliases':[a312_0x9456df(0x1b8)],'serviceDomains':{'production':{'user':a312_0x9456df(0x1c0),'api':a312_0x9456df(0x1cb),'runtime':a312_0x9456df(0x1bf),'skill':a312_0x9456df(0x1d5),'kb':a312_0x9456df(0x1cb),'app':a312_0x9456df(0x1d9)}},'cdn':{'libraries':a312_0x9456df(0x1cd),'lovrabet':a312_0x9456df(0x1b3)},'local':{'origin':a312_0x9456df(0x1cf)}},'global':{'enabled':![],'label':a312_0x9456df(0x1b5),'aliases':[],'serviceDomains':{'production':{'user':a312_0x9456df(0x1d3),'api':a312_0x9456df(0x1d0),'runtime':a312_0x9456df(0x1c2),'skill':a312_0x9456df(0x1db),'kb':a312_0x9456df(0x1d0),'app':'https://app.lovrabet.ai'}},'cdn':{'libraries':'https://cdnjs.cloudflare.com/ajax/libs'},'local':{'origin':a312_0x9456df(0x1b4)}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a313_0x45ef78=a313_0x3ec1;(function(_0x53ad6f,_0x1c95b0){const _0x3990d4=a313_0x3ec1,_0x53c3e7=_0x53ad6f();while(!![]){try{const _0x1e24a3=-parseInt(_0x3990d4(0x13d))/0x1*(parseInt(_0x3990d4(0x144))/0x2)+-parseInt(_0x3990d4(0x138))/0x3*(parseInt(_0x3990d4(0x146))/0x4)+-parseInt(_0x3990d4(0x145))/0x5+parseInt(_0x3990d4(0x13b))/0x6+-parseInt(_0x3990d4(0x135))/0x7+-parseInt(_0x3990d4(0x136))/0x8+parseInt(_0x3990d4(0x140))/0x9;if(_0x1e24a3===_0x1c95b0)break;else _0x53c3e7['push'](_0x53c3e7['shift']());}catch(_0x19a6e6){_0x53c3e7['push'](_0x53c3e7['shift']());}}}(a313_0xad0a,0xba7c1));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST='d83929cbced3959b68435d16131e5ff12a4bfc6095e6b7f15bada2bfd03a72cc';export const ENTERPRISE_ROUTING_PROTOCOL=a313_0x45ef78(0x13e);function a313_0x3ec1(_0x5134e9,_0x597840){_0x5134e9=_0x5134e9-0x132;const _0xad0ab8=a313_0xad0a();let _0x3ec1f5=_0xad0ab8[_0x5134e9];return _0x3ec1f5;}export const ENTERPRISE_ROUTING_KIND=a313_0x45ef78(0x143);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a313_0x45ef78(0x137),'apiDomain',a313_0x45ef78(0x13c),a313_0x45ef78(0x142),'kbDomain',a313_0x45ef78(0x139),a313_0x45ef78(0x141),a313_0x45ef78(0x133)];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a313_0x45ef78(0x137),a313_0x45ef78(0x134),'runtimeDomain',a313_0x45ef78(0x142),a313_0x45ef78(0x132),a313_0x45ef78(0x139)];function a313_0xad0a(){const _0x44136b=['7153510kWmhcN','8NNRFtV','kbDomain','certificateDomain','apiDomain','2338329nnEAHm','6572696XEJCLW','userDomain','152403XGHjoT','appDomain','libraries','8665740YyRnUq','runtimeDomain','41777revfnh','lovrabet-routing/v1','lovrabet','18819387sbftwU','localDomain','skillDomain','enterprise','4SZkAiU'];a313_0xad0a=function(){return _0x44136b;};return a313_0xad0a();}export const ENTERPRISE_ROUTING_CDN_FIELDS=[a313_0x45ef78(0x13a),a313_0x45ef78(0x13f)];export const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS=[a313_0x45ef78(0x13a),a313_0x45ef78(0x13f)];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a314_0x17bb(){var _0x16fbf2=['413400HwcThL','2235191meCESF','green','24366366xMUXIc','\x20to\x20view\x20available\x20commands.','bold','8mlAyCm','620008gtSAfo','\x20--help','1654491AnLECP','839910jaoaRj','25sjyRzH','log','2136172lYRaRs'];a314_0x17bb=function(){return _0x16fbf2;};return a314_0x17bb();}function a314_0x5ec8(_0x1b6a2b,_0x467fb4){_0x1b6a2b=_0x1b6a2b-0x167;var _0x17bbc7=a314_0x17bb();var _0x5ec821=_0x17bbc7[_0x1b6a2b];return _0x5ec821;}(function(_0x316b5d,_0x151abd){var _0x5326ba=a314_0x5ec8,_0x1d6fe8=_0x316b5d();while(!![]){try{var _0x46b176=-parseInt(_0x5326ba(0x16e))/0x1+parseInt(_0x5326ba(0x16b))/0x2+-parseInt(_0x5326ba(0x16d))/0x3+-parseInt(_0x5326ba(0x171))/0x4+parseInt(_0x5326ba(0x16f))/0x5*(-parseInt(_0x5326ba(0x172))/0x6)+parseInt(_0x5326ba(0x173))/0x7*(-parseInt(_0x5326ba(0x16a))/0x8)+parseInt(_0x5326ba(0x167))/0x9;if(_0x46b176===_0x151abd)break;else _0x1d6fe8['push'](_0x1d6fe8['shift']());}catch(_0x479d2e){_0x1d6fe8['push'](_0x1d6fe8['shift']());}}}(a314_0x17bb,0x68853));import a314_0x6a9467 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x58bfb9=a314_0x5ec8;console['log'](),console[_0x58bfb9(0x170)](a314_0x6a9467[_0x58bfb9(0x174)][_0x58bfb9(0x169)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x58bfb9(0x170)](),console['log']('\x20\x20Use\x20'+a314_0x6a9467['green'][_0x58bfb9(0x169)](CLI_BIN_NAME+_0x58bfb9(0x16c))+_0x58bfb9(0x168)),console[_0x58bfb9(0x170)]();}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2d570a,_0x5ab28b){const _0x3af79e=a315_0x2d10,_0x10af07=_0x2d570a();while(!![]){try{const _0x3b1ece=-parseInt(_0x3af79e(0xcc))/0x1*(-parseInt(_0x3af79e(0xd0))/0x2)+parseInt(_0x3af79e(0xc8))/0x3+-parseInt(_0x3af79e(0xd1))/0x4*(parseInt(_0x3af79e(0xd7))/0x5)+parseInt(_0x3af79e(0xd5))/0x6+parseInt(_0x3af79e(0xd2))/0x7+-parseInt(_0x3af79e(0xce))/0x8*(-parseInt(_0x3af79e(0xc3))/0x9)+-parseInt(_0x3af79e(0xc5))/0xa;if(_0x3b1ece===_0x5ab28b)break;else _0x10af07['push'](_0x10af07['shift']());}catch(_0x3066c2){_0x10af07['push'](_0x10af07['shift']());}}}(a315_0x18c1,0x5dc9a));function a315_0x2d10(_0x46473b,_0x436c67){_0x46473b=_0x46473b-0xc3;const _0x18c19e=a315_0x18c1();let _0x2d106c=_0x18c19e[_0x46473b];return _0x2d106c;}import{installBuiltinSkill}from'./skills/builtin-skill.js';function a315_0x18c1(){const _0x117015=['repairCommand','log','4165224jNPGyL','changed','5HRfGOW','640818HfvhuS','Repair\x20with:\x20','12886310gsYZVZ','Installation\x20failed','error','1888041eVGKCr','installedPath','\x20at\x20','SOURCE_INVALID','297MgUoTG','already\x20current','16mabpOx','FAILED','1306qqVOqm','2861156uJKQhd','5097246fBudwT'];a315_0x18c1=function(){return _0x117015;};return a315_0x18c1();}export async function runPostinstall(_0x248d2a={}){const _0x47ff1d=a315_0x2d10,_0x7802da=installBuiltinSkill(_0x248d2a);if(_0x7802da['ok']){const _0x574523=_0x7802da[_0x47ff1d(0xd6)]?'installed':_0x47ff1d(0xcd),_0x52a00c=_0x7802da[_0x47ff1d(0xc9)]?_0x47ff1d(0xca)+_0x7802da[_0x47ff1d(0xc9)]:'\x20via\x20skills@latest';return console[_0x47ff1d(0xd4)]('Rabetbase\x20Built-in\x20Skill\x20'+_0x7802da['skillVersion']+'\x20'+_0x574523+_0x52a00c),_0x7802da;}const _0x5386ba='[BUILTIN_SKILL_INSTALL_'+(_0x7802da['code']??_0x47ff1d(0xcf))+']\x20'+(_0x7802da[_0x47ff1d(0xc7)]??_0x47ff1d(0xc6))+'.\x20'+(_0x47ff1d(0xc4)+_0x7802da[_0x47ff1d(0xd3)]);if(_0x7802da['code']===_0x47ff1d(0xcb))throw new Error(_0x5386ba);return console['warn'](_0x5386ba),_0x7802da;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2672f4,_0x543150){const _0x198fc7=a316_0x3b31,_0x2ac571=_0x2672f4();while(!![]){try{const _0x20faae=parseInt(_0x198fc7(0x85))/0x1+parseInt(_0x198fc7(0x7e))/0x2+-parseInt(_0x198fc7(0x80))/0x3*(parseInt(_0x198fc7(0x86))/0x4)+parseInt(_0x198fc7(0x83))/0x5*(-parseInt(_0x198fc7(0x89))/0x6)+-parseInt(_0x198fc7(0x8b))/0x7+-parseInt(_0x198fc7(0x87))/0x8+parseInt(_0x198fc7(0x82))/0x9;if(_0x20faae===_0x543150)break;else _0x2ac571['push'](_0x2ac571['shift']());}catch(_0x51fdfb){_0x2ac571['push'](_0x2ac571['shift']());}}}(a316_0x5cfa,0x52924));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x31221c,_0x4319ea,_0x32585d){const _0x3e1116=a316_0x3b31,_0x1d0b0f=normalizeText(_0x31221c[_0x3e1116(0x8d)],DESCRIPTION_MAX_LENGTH),_0xc75aa8=_0x1d0b0f||normalizeText(defaultDescription(requireWriteRisk(_0x31221c),_0x4319ea),DESCRIPTION_MAX_LENGTH);return{'operation':_0x4319ea,'risk':requireWriteRisk(_0x31221c),'description':_0xc75aa8,..._0x32585d?{'signal':_0x32585d}:{}};}function a316_0x3b31(_0x475470,_0x36c99f){_0x475470=_0x475470-0x7b;const _0x5cfa87=a316_0x5cfa();let _0x3b3153=_0x5cfa87[_0x475470];return _0x3b3153;}function a316_0x5cfa(){const _0x17e4c1=['7591698uUIgXb','45PWjhUF','replace','73490ShxREX','8KkrlIe','41432HKXISS','high-risk-write','121854nakByU','.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.','846230PCROcm','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','confirmationDescription','.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.','slice','string','write','638828XXHxwj','risk','884046bYTBCf','trim'];a316_0x5cfa=function(){return _0x17e4c1;};return a316_0x5cfa();}function requireWriteRisk(_0x2d81fa){const _0x4002ac=a316_0x3b31;if(_0x2d81fa[_0x4002ac(0x7f)]===_0x4002ac(0x7d)||_0x2d81fa[_0x4002ac(0x7f)]===_0x4002ac(0x88))return _0x2d81fa[_0x4002ac(0x7f)];throw new Error(_0x4002ac(0x8c));}function defaultDescription(_0x40d678,_0x4161d1){const _0x5d3879=a316_0x3b31;if(_0x40d678==='high-risk-write')return'This\x20will\x20run\x20the\x20high-risk\x20write\x20'+_0x4161d1+_0x5d3879(0x8e);return'This\x20will\x20run\x20the\x20write\x20'+_0x4161d1+_0x5d3879(0x8a);}function normalizeText(_0x466e28,_0x9abfa0){const _0x17735d=a316_0x3b31;if(typeof _0x466e28!==_0x17735d(0x7c))return'';return _0x466e28['replace'](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x17735d(0x84)](/\s+/g,'\x20')[_0x17735d(0x81)]()[_0x17735d(0x7b)](0x0,_0x9abfa0);}
|