@lovrabet/rabetbase-cli 2.5.2-beta.3 → 2.5.2-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/README.md +1 -1
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/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/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/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/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/auto-sync.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/deployment/sync.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.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.d.ts +0 -8
- 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/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.d.ts +4 -0
- 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.d.ts +5 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +0 -26
- 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/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.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.d.ts +43 -0
- 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/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +2 -1
- package/skills/rabetbase/SKILL.md +5 -5
- package/skills/rabetbase/guides/custom-page-workflow.md +35 -17
- package/skills/rabetbase/guides/page-development-workflow.md +1 -1
- package/skills/rabetbase/knowledge/components.md +292 -0
- package/skills/rabetbase/knowledge/custom-page/generation-standards.md +74 -4
- package/skills/rabetbase/knowledge/custom-page/page-templates.md +68 -0
- package/skills/rabetbase/references/rabetbase-page-create.md +21 -9
- package/skills/rabetbase/references/rabetbase-page-custom-detail.md +1 -1
- package/skills/rabetbase/references/rabetbase-page-custom-update.md +13 -9
- package/skills/rabetbase/references/rabetbase-project-create.md +5 -2
- package/skills/rabetbase/references/rabetbase-project-domain-routing-sync.md +2 -2
- package/skills/rabetbase/references/rabetbase-run.md +1 -0
- package/skills/rabetbase.manifest.json +5 -4
- package/templates/README.md +10 -4
- package/templates/custom-pages/blank.json +5 -0
- package/templates/custom-pages/dashboard.json +5 -0
- package/templates/custom-pages/onepage.json +5 -0
- package/templates/generate-api/api.ts.tpl +1 -1
- package/lib/commands/page/custom/template.d.ts +0 -8
- package/lib/commands/page/custom/template.js +0 -1
- package/skills/rabetbase/knowledge/custom-page/components.md +0 -225
|
@@ -1 +1 @@
|
|
|
1
|
-
const a269_0x17c50e=a269_0x31db;function a269_0x4392(){const _0x43b07e=['-->','split','bind','startsWith','__RABETBASE_MYBATIS_DYNAMIC_END__','select','SELECT','Invalid\x20XML\x20entity\x20reference.','Invalid\x20MyBatis\x20XML\x20tag.','keys','WITH','MyBatis\x20dynamic\x20tag\x20must\x20be\x20inside\x20the\x20statement\x20wrapper:\x20<','INSERT','slice','__RABETBASE_UNRESOLVED_SQL_FRAGMENT__','parseInt','\x20with\x20parameters:\x20','3370hKoies','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','185167quFUox',''','&','<![CDATA[','has','join','add','2540304buWoqI','UNKNOWN','>','where','insert','MyBatis\x20XML\x20must\x20contain\x20exactly\x20one\x20complete\x20statement\x20wrapper.','outer','reason','Mismatched\x20MyBatis\x20XML\x20closing\x20tag:\x20</','<!--','length','string','push','delete','SQL\x20text\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','choose','match','otherwise','94GjxXle','property','7QMozxn','35085QEnKIZ','__RABETBASE_MYBATIS_INCLUDE_UNRESOLVED__','trim','foreach','MyBatis\x20<property>\x20must\x20be\x20a\x20self-closing\x20direct\x20child\x20of\x20<include>.','9gdSxSy','update','3507112MZEHUp','4045386ktkTJV','replaceAll','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','type','Invalid\x20MyBatis\x20XML\x20closing\x20tag:\x20</','sql','Unterminated\x20XML\x20comment.','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','error','includes','52iPXrpI','toUpperCase','unknown\x20table(s)','tagName','mybatisXml','exec','test','replace','toLowerCase','224095xIlkdz','include','^<\x5cs*(?:','set','DELETE','"','Unterminated\x20XML\x20declaration.','UPDATE','MyBatis\x20dynamic\x20tag\x20names\x20must\x20be\x20lowercase:\x20<','CDATA\x20sections\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','Multiple\x20MyBatis\x20statement\x20wrappers\x20are\x20not\x20supported.','fromCodePoint','11132ODPOuy','statementType','\x20SET\x20','when','<','Unsupported\x20MyBatis\x20XML\x20tag:\x20<','\x20WHERE\x20','pop','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','matchAll','SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements','rawName','indexOf','XML\x20declarations\x20must\x20precede\x20the\x20MyBatis\x20statement\x20wrapper.'];a269_0x4392=function(){return _0x43b07e;};return a269_0x4392();}(function(_0x4faa24,_0x91c6f4){const _0x783f4e=a269_0x31db,_0x2f7251=_0x4faa24();while(!![]){try{const _0x447c82=parseInt(_0x783f4e(0xcf))/0x1+-parseInt(_0x783f4e(0xe8))/0x2*(-parseInt(_0x783f4e(0x87))/0x3)+parseInt(_0x783f4e(0x99))/0x4*(-parseInt(_0x783f4e(0xa2))/0x5)+-parseInt(_0x783f4e(0x8f))/0x6*(-parseInt(_0x783f4e(0x86))/0x7)+-parseInt(_0x783f4e(0x8e))/0x8*(-parseInt(_0x783f4e(0x8c))/0x9)+-parseInt(_0x783f4e(0xcd))/0xa*(parseInt(_0x783f4e(0xae))/0xb)+-parseInt(_0x783f4e(0xd6))/0xc;if(_0x447c82===_0x91c6f4)break;else _0x2f7251['push'](_0x2f7251['shift']());}catch(_0xc95972){_0x2f7251['push'](_0x2f7251['shift']());}}}(a269_0x4392,0xadd85));const MYBATIS_OUTER_TAGS=new Map([[a269_0x17c50e(0xc1),a269_0x17c50e(0xc2)],[a269_0x17c50e(0xda),a269_0x17c50e(0xc8)],[a269_0x17c50e(0x8d),a269_0x17c50e(0xa9)],[a269_0x17c50e(0xe3),a269_0x17c50e(0xa6)]]),MYBATIS_DYNAMIC_TAGS=new Set(['if','where',a269_0x17c50e(0x8a),a269_0x17c50e(0xe5),a269_0x17c50e(0xb1),'otherwise',a269_0x17c50e(0x89),'set',a269_0x17c50e(0xbe),a269_0x17c50e(0xa3),a269_0x17c50e(0x85)]),MYBATIS_BRANCH_TAGS=new Set(['if',a269_0x17c50e(0x8a),'choose',a269_0x17c50e(0xb1),a269_0x17c50e(0xe7)]);export const MYBATIS_DYNAMIC_START_MARKER='__RABETBASE_MYBATIS_DYNAMIC_START__';export const MYBATIS_DYNAMIC_END_MARKER=a269_0x17c50e(0xc0);function a269_0x31db(_0x422ec6,_0xd6f0ed){_0x422ec6=_0x422ec6-0x85;const _0x4392f0=a269_0x4392();let _0x31db50=_0x4392f0[_0x422ec6];return _0x31db50;}export const MYBATIS_INCLUDE_MARKER=a269_0x17c50e(0x88);const UNRESOLVED_SQL_FRAGMENT=a269_0x17c50e(0xca),MYBATIS_OUTER_TAG_PATTERN=new RegExp(a269_0x17c50e(0xa4)+[...MYBATIS_OUTER_TAGS[a269_0x17c50e(0xc5)]()][a269_0x17c50e(0xd4)]('|')+')\x5cb','i');export function normalizeSqlForStaticAnalysis(_0x3afd04){const _0x8e59db=a269_0x17c50e,_0x3d85d4=typeof _0x3afd04===_0x8e59db(0xe1)?_0x3afd04:'';if(!startsWithMybatisStatementWrapper(_0x3d85d4))return{'sql':_0x3d85d4,'mode':_0x8e59db(0x94)};let _0x30d18a=0x0,_0xb20c21='',_0x19f4ff,_0x58d4e7=![],_0x49434f=![];const _0xe55f3b=[];while(_0x30d18a<_0x3d85d4[_0x8e59db(0xe0)]){if(_0x3d85d4[_0x8e59db(0xbf)](_0x8e59db(0xdf),_0x30d18a)){const _0x362e37=_0x3d85d4[_0x8e59db(0xba)](_0x8e59db(0xbc),_0x30d18a+0x4);if(_0x362e37<0x0)return invalidMybatisSource(_0x8e59db(0x95));_0xb20c21+='\x20',_0x30d18a=_0x362e37+0x3;continue;}if(_0x3d85d4[_0x8e59db(0xbf)](_0x8e59db(0xd2),_0x30d18a)){if(!_0x58d4e7||_0x49434f)return invalidMybatisSource(_0x8e59db(0xab));const _0x3302ed=_0x3d85d4[_0x8e59db(0xba)](']]>',_0x30d18a+0x9);if(_0x3302ed<0x0)return invalidMybatisSource('Unterminated\x20CDATA\x20section.');_0xb20c21+=_0x3d85d4[_0x8e59db(0xc9)](_0x30d18a+0x9,_0x3302ed),_0x30d18a=_0x3302ed+0x3;continue;}if(_0x3d85d4[_0x8e59db(0xbf)]('<?',_0x30d18a)){if(_0x58d4e7)return invalidMybatisSource(_0x8e59db(0xbb));const _0x269168=_0x3d85d4['indexOf']('?>',_0x30d18a+0x2);if(_0x269168<0x0)return invalidMybatisSource(_0x8e59db(0xa8));_0xb20c21+='\x20',_0x30d18a=_0x269168+0x2;continue;}if(_0x3d85d4[_0x30d18a]!=='<'){const _0x4fc31f=_0x3d85d4[_0x8e59db(0xba)]('<',_0x30d18a),_0x315081=_0x4fc31f<0x0?_0x3d85d4[_0x8e59db(0xe0)]:_0x4fc31f,_0x2d8829=_0x3d85d4['slice'](_0x30d18a,_0x315081);if((!_0x58d4e7||_0x49434f)&&_0x2d8829[_0x8e59db(0x89)]())return invalidMybatisSource(_0x8e59db(0xe4));if(_0x58d4e7&&!_0x49434f){const _0x3877d2=decodeXmlEntities(_0x2d8829);if(_0x3877d2===null)return invalidMybatisSource(_0x8e59db(0xc3));_0xb20c21+=_0x3877d2;}else _0xb20c21+='\x20';_0x30d18a=_0x315081;continue;}const _0xe299ef=findXmlTagEnd(_0x3d85d4,_0x30d18a);if(_0xe299ef<0x0)return invalidMybatisSource('Unterminated\x20MyBatis\x20XML\x20tag.');const _0x260389=_0x3d85d4[_0x8e59db(0xc9)](_0x30d18a,_0xe299ef+0x1),_0x41ed3d=/^<\s*(\/?)\s*([A-Za-z][\w:-]*)([\s\S]*?)(\/?)\s*>$/[_0x8e59db(0x9e)](_0x260389);if(!_0x41ed3d)return invalidMybatisSource(_0x8e59db(0xc4));const _0x18e91c=_0x41ed3d[0x1]==='/',_0x2984a2=_0x41ed3d[0x2]??'',_0x154042=_0x2984a2[_0x8e59db(0xa1)](),_0x5b01ed=_0x41ed3d[0x3]??'',_0x446c88=_0x41ed3d[0x4]==='/',_0x1a40e2=MYBATIS_OUTER_TAGS['get'](_0x154042);if(!_0x1a40e2&&!MYBATIS_DYNAMIC_TAGS[_0x8e59db(0xd3)](_0x154042))return invalidMybatisSource(_0x8e59db(0xb3)+_0x154042+'>.');if(!_0x1a40e2&&_0x2984a2!==_0x154042)return invalidMybatisSource(_0x8e59db(0xaa)+_0x2984a2+'>.');if(_0x18e91c){if(_0x5b01ed[_0x8e59db(0x89)]()||_0x446c88)return invalidMybatisSource(_0x8e59db(0x93)+_0x2984a2+'>.');const _0x19635e=_0xe55f3b['at'](-0x1);if(!_0x19635e||(_0x19635e[_0x8e59db(0xdc)]?_0x19635e[_0x8e59db(0x9c)]!==_0x154042:_0x19635e[_0x8e59db(0xb9)]!==_0x2984a2))return invalidMybatisSource(_0x8e59db(0xde)+_0x2984a2+'>.');_0xe55f3b[_0x8e59db(0xb5)]();if(_0x19635e[_0x8e59db(0xdc)])_0x49434f=!![];_0xb20c21+=MYBATIS_BRANCH_TAGS[_0x8e59db(0xd3)](_0x154042)?'\x20'+MYBATIS_DYNAMIC_END_MARKER+'\x20':'\x20';}else{if(!hasWellFormedXmlAttributes(_0x5b01ed))return invalidMybatisSource('Invalid\x20attributes\x20on\x20MyBatis\x20XML\x20tag:\x20<'+_0x2984a2+'>.');if(_0x154042===_0x8e59db(0x85)&&(!_0x446c88||_0xe55f3b['at'](-0x1)?.['tagName']!=='include'))return invalidMybatisSource(_0x8e59db(0x8b));if(_0x1a40e2){if(_0x58d4e7||_0xe55f3b[_0x8e59db(0xe0)]>0x0)return invalidMybatisSource(_0x8e59db(0xac));_0x58d4e7=!![],_0x49434f=_0x446c88,_0x19f4ff=_0x1a40e2;}else{if(!_0x58d4e7||_0x49434f)return invalidMybatisSource(_0x8e59db(0xc7)+_0x2984a2+'>.');}_0xb20c21+=_0x154042===_0x8e59db(0xd9)?_0x8e59db(0xb4):_0x154042===_0x8e59db(0xa5)?_0x8e59db(0xb0):_0x154042===_0x8e59db(0xa3)?'\x20'+MYBATIS_INCLUDE_MARKER+'\x20':MYBATIS_BRANCH_TAGS['has'](_0x154042)&&!_0x446c88?'\x20'+MYBATIS_DYNAMIC_START_MARKER+'\x20':'\x20',!_0x446c88&&_0xe55f3b[_0x8e59db(0xe2)]({'rawName':_0x2984a2,'tagName':_0x154042,'outer':!!_0x1a40e2});}_0x30d18a=_0xe299ef+0x1;}if(_0xe55f3b[_0x8e59db(0xe0)]>0x0)return invalidMybatisSource('Unclosed\x20MyBatis\x20XML\x20tag:\x20<'+_0xe55f3b['at'](-0x1)?.['rawName']+'>.');if(!_0x58d4e7||!_0x49434f)return invalidMybatisSource(_0x8e59db(0xdb));return{'sql':_0xb20c21[_0x8e59db(0x89)](),'mode':_0x8e59db(0x9d),..._0x19f4ff?{'statementType':_0x19f4ff}:{}};}function hasWellFormedXmlAttributes(_0x533f5c){const _0x214517=a269_0x17c50e;let _0x4aeb4f=0x0;const _0x22c625=new Set();while(_0x4aeb4f<_0x533f5c['length']){while(_0x4aeb4f<_0x533f5c[_0x214517(0xe0)]&&/\s/['test'](_0x533f5c[_0x4aeb4f]??''))_0x4aeb4f+=0x1;if(_0x4aeb4f>=_0x533f5c[_0x214517(0xe0)])return!![];const _0x5ddd81=/^[A-Za-z_:][\w:.-]*/[_0x214517(0x9e)](_0x533f5c[_0x214517(0xc9)](_0x4aeb4f)),_0x41e2be=_0x5ddd81?.[0x0];if(!_0x41e2be||_0x22c625[_0x214517(0xd3)](_0x41e2be))return![];_0x22c625[_0x214517(0xd5)](_0x41e2be),_0x4aeb4f+=_0x41e2be[_0x214517(0xe0)];while(_0x4aeb4f<_0x533f5c[_0x214517(0xe0)]&&/\s/[_0x214517(0x9f)](_0x533f5c[_0x4aeb4f]??''))_0x4aeb4f+=0x1;if(_0x533f5c[_0x4aeb4f]!=='=')return![];_0x4aeb4f+=0x1;while(_0x4aeb4f<_0x533f5c[_0x214517(0xe0)]&&/\s/[_0x214517(0x9f)](_0x533f5c[_0x4aeb4f]??''))_0x4aeb4f+=0x1;const _0x38e735=_0x533f5c[_0x4aeb4f];if(_0x38e735!=='\x22'&&_0x38e735!=='\x27')return![];_0x4aeb4f+=0x1;const _0x381fd6=_0x533f5c[_0x214517(0xba)](_0x38e735,_0x4aeb4f);if(_0x381fd6<0x0)return![];if(decodeXmlEntities(_0x533f5c[_0x214517(0xc9)](_0x4aeb4f,_0x381fd6))===null)return![];_0x4aeb4f=_0x381fd6+0x1;}return!![];}function startsWithMybatisStatementWrapper(_0x506374){const _0x277b4b=a269_0x17c50e;let _0x24c68b=0x0;const _0x2230e2=()=>{const _0x292586=a269_0x31db;while(_0x24c68b<_0x506374[_0x292586(0xe0)]&&/\s/[_0x292586(0x9f)](_0x506374[_0x24c68b]??''))_0x24c68b+=0x1;};_0x2230e2();while(_0x24c68b<_0x506374['length']){if(_0x506374[_0x277b4b(0xbf)](_0x277b4b(0xdf),_0x24c68b)){const _0x2a6927=_0x506374[_0x277b4b(0xba)](_0x277b4b(0xbc),_0x24c68b+0x4);if(_0x2a6927<0x0)return!![];_0x24c68b=_0x2a6927+0x3,_0x2230e2();continue;}if(_0x506374['startsWith']('<?',_0x24c68b)){const _0x4486f8=_0x506374['indexOf']('?>',_0x24c68b+0x2);if(_0x4486f8<0x0)return!![];_0x24c68b=_0x4486f8+0x2,_0x2230e2();continue;}break;}return MYBATIS_OUTER_TAG_PATTERN[_0x277b4b(0x9f)](_0x506374[_0x277b4b(0xc9)](_0x24c68b));}function invalidMybatisSource(_0x3dfad8){const _0x23a092=a269_0x17c50e;return{'sql':'','mode':_0x23a092(0x9d),'error':_0x3dfad8};}function findXmlTagEnd(_0x1f82fa,_0x20912c){const _0x296e32=a269_0x17c50e;let _0x83df07;for(let _0x247c98=_0x20912c+0x1;_0x247c98<_0x1f82fa[_0x296e32(0xe0)];_0x247c98+=0x1){const _0x4b04bd=_0x1f82fa[_0x247c98];if(_0x83df07){if(_0x4b04bd===_0x83df07)_0x83df07=undefined;continue;}if(_0x4b04bd==='\x22'||_0x4b04bd==='\x27'){_0x83df07=_0x4b04bd;continue;}if(_0x4b04bd==='>')return _0x247c98;}return-0x1;}function decodeXmlEntities(_0x3dc64d){let _0x3da148=![];const _0x323ce5=_0x3dc64d['replace'](/&(?:#x[0-9a-f]+;|#[0-9]+;|[A-Za-z_:][\w:.-]*;)?/g,_0x5c6524=>{const _0x10f2e1=a269_0x31db;if(_0x5c6524===_0x10f2e1(0xb2))return'<';if(_0x5c6524===_0x10f2e1(0xd8))return'>';if(_0x5c6524===_0x10f2e1(0xa7))return'\x22';if(_0x5c6524===_0x10f2e1(0xd0))return'\x27';if(_0x5c6524===_0x10f2e1(0xd1))return'&';const _0x14ff41=/^&#(?:x([0-9a-f]+)|([0-9]+));$/[_0x10f2e1(0x9e)](_0x5c6524);if(_0x14ff41){const _0x11ba98=_0x14ff41[0x1],_0x1bf4d3=_0x14ff41[0x2],_0x3757fa=Number[_0x10f2e1(0xcb)](_0x11ba98??_0x1bf4d3??'',_0x11ba98?0x10:0xa);if(isValidXmlCharacter(_0x3757fa))return String[_0x10f2e1(0xad)](_0x3757fa);}return _0x3da148=!![],'';});return _0x3da148?null:_0x323ce5;}function isValidXmlCharacter(_0x135c71){return _0x135c71===0x9||_0x135c71===0xa||_0x135c71===0xd||_0x135c71>=0x20&&_0x135c71<=0xd7ff||_0x135c71>=0xe000&&_0x135c71<=0xfffd||_0x135c71>=0x10000&&_0x135c71<=0x10ffff;}export function detectSqlType(_0x3972ba){return detectNormalizedSqlType(normalizeSqlForStaticAnalysis(_0x3972ba));}function detectNormalizedSqlType(_0x5c064c){const _0x4e96da=a269_0x17c50e;if(_0x5c064c['error'])return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':_0x5c064c['error']};if(!_0x5c064c[_0x4e96da(0x94)][_0x4e96da(0x89)]())return{'type':_0x4e96da(0xd7),'isSelectOnly':![],'isDangerous':![],'reason':'SQL\x20content\x20is\x20empty'};const _0x48bb7c=stripStaticAnalysisMarkers(_0x5c064c[_0x4e96da(0x94)])[_0x4e96da(0xa0)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x4e96da(0xa0)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x4e96da(0xa0)](/\/\*[\s\S]*?\*\//g,'')[_0x4e96da(0x89)](),_0x45e24f=_0x48bb7c[_0x4e96da(0xbd)]('\x0a');let _0x5b0598='';for(const _0x4c6dcb of _0x45e24f){const _0xf80e2d=_0x4c6dcb[_0x4e96da(0x89)]();if(!_0xf80e2d||_0xf80e2d['startsWith']('--')||_0xf80e2d['startsWith']('/*'))continue;_0x5b0598=_0xf80e2d;break;}const _0x1ed93b=_0x5b0598[_0x4e96da(0x9a)](),_0x1af5bc=_0x5c064c[_0x4e96da(0xaf)],_0x54eb0e=maskSqlTextForBlockedKeywordScan(_0x48bb7c),_0x8bd1bb=/\b(DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x4e96da(0x9f)](_0x54eb0e);if(_0x1af5bc===_0x4e96da(0xc2)||!_0x1af5bc&&(_0x1ed93b[_0x4e96da(0xbf)](_0x4e96da(0xc2))||_0x1ed93b[_0x4e96da(0xbf)](_0x4e96da(0xc6)))){const _0x357a20=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x4e96da(0x9f)](_0x48bb7c);return{'type':_0x4e96da(0xc2),'isSelectOnly':!_0x357a20,'isDangerous':_0x357a20,'reason':_0x357a20?'SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT':undefined};}if(_0x1af5bc===_0x4e96da(0xc8)||!_0x1af5bc&&_0x1ed93b['startsWith']('INSERT'))return{'type':_0x4e96da(0xc8),'isSelectOnly':![],'isDangerous':_0x8bd1bb,'reason':_0x8bd1bb?_0x4e96da(0xb8):undefined};if(_0x1af5bc==='UPDATE'||!_0x1af5bc&&_0x1ed93b[_0x4e96da(0xbf)](_0x4e96da(0xa9)))return{'type':_0x4e96da(0xa9),'isSelectOnly':![],'isDangerous':_0x8bd1bb,'reason':_0x8bd1bb?_0x4e96da(0xb8):undefined};if(_0x1af5bc===_0x4e96da(0xa6)||!_0x1af5bc&&_0x1ed93b[_0x4e96da(0xbf)](_0x4e96da(0xa6)))return{'type':_0x4e96da(0xa6),'isSelectOnly':![],'isDangerous':!![],'reason':_0x4e96da(0xce)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x4e96da(0x9f)](_0x1ed93b))return{'type':'DDL','isSelectOnly':![],'isDangerous':!![],'reason':_0x4e96da(0xb6)};return{'type':_0x4e96da(0xd7),'isSelectOnly':![],'isDangerous':![]};}function stripStaticAnalysisMarkers(_0x3209ea){const _0x380ebb=a269_0x17c50e;return _0x3209ea[_0x380ebb(0x90)](MYBATIS_DYNAMIC_START_MARKER,'\x20')[_0x380ebb(0x90)](MYBATIS_DYNAMIC_END_MARKER,'\x20')['replaceAll'](MYBATIS_INCLUDE_MARKER,'\x20'+UNRESOLVED_SQL_FRAGMENT+'\x20');}function maskSqlTextForBlockedKeywordScan(_0x542987){const _0x4da611=a269_0x17c50e;return _0x542987[_0x4da611(0xa0)](/'(?:''|\\.|[^'])*'/g,'\x20')[_0x4da611(0xa0)](/"(?:""|\\.|[^"])*"/g,'\x20')[_0x4da611(0xa0)](/`(?:``|\\.|[^`])*`/g,'\x20')[_0x4da611(0xa0)](/--.*$/gm,'\x20')[_0x4da611(0xa0)](/#.*$/gm,'\x20')[_0x4da611(0xa0)](/\/\*[\s\S]*?\*\//g,'\x20');}function extractTables(_0x4c365f){const _0xcf4ffb=a269_0x17c50e,_0x3e0061=_0x4c365f[_0xcf4ffb(0xa0)](/#\{[^}]*\}/g,'?')[_0xcf4ffb(0xa0)](/\$\{[^}]*\}/g,'?')[_0xcf4ffb(0xa0)](/'[^']*'/g,'\x27\x27')[_0xcf4ffb(0xa0)](/--.*$/gm,'')[_0xcf4ffb(0xa0)](/\/\*[\s\S]*?\*\//g,''),_0x43f865=[],_0x1a16b4=_0x3e0061['match'](/FROM\s+([^\s,)(]+)/i);addTable(_0x43f865,_0x1a16b4?.[0x1]);for(const _0x605f6d of _0x3e0061[_0xcf4ffb(0xb7)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){addTable(_0x43f865,_0x605f6d[0x1]);}const _0x1ad00e=_0x3e0061['match'](/INTO\s+([^\s(]+)/i);addTable(_0x43f865,_0x1ad00e?.[0x1]);const _0x1cb08e=_0x3e0061[_0xcf4ffb(0xe6)](/UPDATE\s+([^\s,)(]+)/i);return addTable(_0x43f865,_0x1cb08e?.[0x1]),_0x43f865;}function addTable(_0x31f635,_0x2e409f){const _0x566609=a269_0x17c50e,_0x542f10=_0x2e409f?.['replace'](/[`"]/g,'');_0x542f10&&_0x542f10!==UNRESOLVED_SQL_FRAGMENT&&!_0x31f635[_0x566609(0x98)](_0x542f10)&&_0x31f635[_0x566609(0xe2)](_0x542f10);}function extractParameters(_0x30c102){const _0x517dde=a269_0x17c50e,_0x158516=new Set();for(const _0x48e316 of _0x30c102[_0x517dde(0xb7)](/[#$]\{\s*([A-Za-z_][\w.]*)\s*(?=[,}])/g)){if(_0x48e316[0x1])_0x158516[_0x517dde(0xd5)](_0x48e316[0x1]);}return Array['from'](_0x158516);}export function validateSql(_0x2b0758){const _0x16b2b1=a269_0x17c50e,_0x599bf1=normalizeSqlForStaticAnalysis(_0x2b0758),_0x45675d=detectNormalizedSqlType(_0x599bf1),_0x956abf=stripStaticAnalysisMarkers(_0x599bf1['sql']),_0x56270a=_0x599bf1[_0x16b2b1(0x97)]?[]:extractTables(_0x956abf),_0x28bb50=_0x599bf1[_0x16b2b1(0x97)]?[]:extractParameters(_0x956abf);if(_0x45675d['isDangerous'])return{'valid':![],'sqlType':_0x45675d,'tables':_0x56270a,'parameters':_0x28bb50,'message':_0x45675d[_0x16b2b1(0xdd)]||_0x45675d[_0x16b2b1(0x92)]+_0x16b2b1(0x91)};if(_0x45675d[_0x16b2b1(0x92)]===_0x16b2b1(0xd7))return{'valid':![],'sqlType':_0x45675d,'tables':_0x56270a,'parameters':_0x28bb50,'message':_0x599bf1[_0x16b2b1(0x97)]?'Unable\x20to\x20detect\x20SQL\x20type.\x20'+_0x599bf1[_0x16b2b1(0x97)]:_0x16b2b1(0x96)};return{'valid':!![],'sqlType':_0x45675d,'tables':_0x56270a,'parameters':_0x28bb50,'message':_0x45675d['type']+'\x20query\x20targeting\x20'+(_0x56270a[_0x16b2b1(0xe0)]?_0x56270a[_0x16b2b1(0xd4)](',\x20'):_0x16b2b1(0x9b))+(_0x28bb50[_0x16b2b1(0xe0)]?_0x16b2b1(0xcc)+_0x28bb50[_0x16b2b1(0xd4)](',\x20'):'')};}
|
|
1
|
+
function a268_0x3365(_0x47ece1,_0xe22fe4){_0x47ece1=_0x47ece1-0x134;const _0x9e00da=a268_0x9e00();let _0x3365d7=_0x9e00da[_0x47ece1];return _0x3365d7;}const a268_0x41b5cb=a268_0x3365;(function(_0x4a4d5c,_0x249c4b){const _0x37baa9=a268_0x3365,_0x4797ab=_0x4a4d5c();while(!![]){try{const _0x1aed81=-parseInt(_0x37baa9(0x164))/0x1+-parseInt(_0x37baa9(0x184))/0x2+-parseInt(_0x37baa9(0x195))/0x3*(-parseInt(_0x37baa9(0x192))/0x4)+-parseInt(_0x37baa9(0x190))/0x5*(-parseInt(_0x37baa9(0x18a))/0x6)+-parseInt(_0x37baa9(0x18d))/0x7+parseInt(_0x37baa9(0x17d))/0x8+-parseInt(_0x37baa9(0x13e))/0x9*(-parseInt(_0x37baa9(0x193))/0xa);if(_0x1aed81===_0x249c4b)break;else _0x4797ab['push'](_0x4797ab['shift']());}catch(_0x3acd41){_0x4797ab['push'](_0x4797ab['shift']());}}}(a268_0x9e00,0xe71ba));const MYBATIS_OUTER_TAGS=new Map([[a268_0x41b5cb(0x14b),a268_0x41b5cb(0x147)],[a268_0x41b5cb(0x135),a268_0x41b5cb(0x152)],['update','UPDATE'],[a268_0x41b5cb(0x145),a268_0x41b5cb(0x181)]]),MYBATIS_DYNAMIC_TAGS=new Set(['if',a268_0x41b5cb(0x196),a268_0x41b5cb(0x17e),'choose',a268_0x41b5cb(0x191),'otherwise','trim',a268_0x41b5cb(0x14e),'bind',a268_0x41b5cb(0x139),a268_0x41b5cb(0x157)]),MYBATIS_BRANCH_TAGS=new Set(['if',a268_0x41b5cb(0x17e),a268_0x41b5cb(0x134),a268_0x41b5cb(0x191),a268_0x41b5cb(0x14c)]);export const MYBATIS_DYNAMIC_START_MARKER='__RABETBASE_MYBATIS_DYNAMIC_START__';export const MYBATIS_DYNAMIC_END_MARKER='__RABETBASE_MYBATIS_DYNAMIC_END__';export const MYBATIS_INCLUDE_MARKER=a268_0x41b5cb(0x167);const UNRESOLVED_SQL_FRAGMENT=a268_0x41b5cb(0x166),MYBATIS_OUTER_TAG_PATTERN=new RegExp(a268_0x41b5cb(0x169)+[...MYBATIS_OUTER_TAGS[a268_0x41b5cb(0x151)]()][a268_0x41b5cb(0x16c)]('|')+')\x5cb','i');export function normalizeSqlForStaticAnalysis(_0x34f787){const _0x51a476=a268_0x41b5cb,_0x43a25c=typeof _0x34f787===_0x51a476(0x159)?_0x34f787:'';if(!startsWithMybatisStatementWrapper(_0x43a25c))return{'sql':_0x43a25c,'mode':'sql'};let _0x9cb0c1=0x0,_0x35ddc9='',_0x5840bb,_0x232ce3=![],_0x590ee3=![];const _0x6d2f80=[];while(_0x9cb0c1<_0x43a25c[_0x51a476(0x176)]){if(_0x43a25c[_0x51a476(0x13d)](_0x51a476(0x16e),_0x9cb0c1)){const _0x9d9d45=_0x43a25c[_0x51a476(0x161)]('-->',_0x9cb0c1+0x4);if(_0x9d9d45<0x0)return invalidMybatisSource('Unterminated\x20XML\x20comment.');_0x35ddc9+='\x20',_0x9cb0c1=_0x9d9d45+0x3;continue;}if(_0x43a25c['startsWith']('<,_0x9cb0c1+0x9);if(_0x317441<0x0)return invalidMybatisSource(_0x51a476(0x140));_0x35ddc9+=_0x43a25c[_0x51a476(0x13c)](_0x9cb0c1+0x9,_0x317441),_0x9cb0c1=_0x317441+0x3;continue;}if(_0x43a25c[_0x51a476(0x13d)]('<?',_0x9cb0c1)){if(_0x232ce3)return invalidMybatisSource(_0x51a476(0x174));const _0x5a4b50=_0x43a25c[_0x51a476(0x161)]('?>',_0x9cb0c1+0x2);if(_0x5a4b50<0x0)return invalidMybatisSource(_0x51a476(0x15e));_0x35ddc9+='\x20',_0x9cb0c1=_0x5a4b50+0x2;continue;}if(_0x43a25c[_0x9cb0c1]!=='<'){const _0x397662=_0x43a25c[_0x51a476(0x161)]('<',_0x9cb0c1),_0x29adf8=_0x397662<0x0?_0x43a25c[_0x51a476(0x176)]:_0x397662,_0x512bad=_0x43a25c[_0x51a476(0x13c)](_0x9cb0c1,_0x29adf8);if((!_0x232ce3||_0x590ee3)&&_0x512bad[_0x51a476(0x13f)]())return invalidMybatisSource(_0x51a476(0x17a));if(_0x232ce3&&!_0x590ee3){const _0x39a731=decodeXmlEntities(_0x512bad);if(_0x39a731===null)return invalidMybatisSource(_0x51a476(0x189));_0x35ddc9+=_0x39a731;}else _0x35ddc9+='\x20';_0x9cb0c1=_0x29adf8;continue;}const _0x4e0105=findXmlTagEnd(_0x43a25c,_0x9cb0c1);if(_0x4e0105<0x0)return invalidMybatisSource(_0x51a476(0x178));const _0x18dd16=_0x43a25c[_0x51a476(0x13c)](_0x9cb0c1,_0x4e0105+0x1),_0x2d47ee=/^<\s*(\/?)\s*([A-Za-z][\w:-]*)([\s\S]*?)(\/?)\s*>$/[_0x51a476(0x188)](_0x18dd16);if(!_0x2d47ee)return invalidMybatisSource(_0x51a476(0x154));const _0x2c395a=_0x2d47ee[0x1]==='/',_0x57223b=_0x2d47ee[0x2]??'',_0x104e0b=_0x57223b[_0x51a476(0x18c)](),_0x4be39e=_0x2d47ee[0x3]??'',_0xff8be4=_0x2d47ee[0x4]==='/',_0x381020=MYBATIS_OUTER_TAGS[_0x51a476(0x179)](_0x104e0b);if(!_0x381020&&!MYBATIS_DYNAMIC_TAGS[_0x51a476(0x15d)](_0x104e0b))return invalidMybatisSource(_0x51a476(0x16b)+_0x104e0b+'>.');if(!_0x381020&&_0x57223b!==_0x104e0b)return invalidMybatisSource(_0x51a476(0x14d)+_0x57223b+'>.');if(_0x2c395a){if(_0x4be39e[_0x51a476(0x13f)]()||_0xff8be4)return invalidMybatisSource('Invalid\x20MyBatis\x20XML\x20closing\x20tag:\x20</'+_0x57223b+'>.');const _0x526579=_0x6d2f80['at'](-0x1);if(!_0x526579||(_0x526579[_0x51a476(0x15b)]?_0x526579[_0x51a476(0x17b)]!==_0x104e0b:_0x526579['rawName']!==_0x57223b))return invalidMybatisSource(_0x51a476(0x158)+_0x57223b+'>.');_0x6d2f80[_0x51a476(0x163)]();if(_0x526579[_0x51a476(0x15b)])_0x590ee3=!![];_0x35ddc9+=MYBATIS_BRANCH_TAGS[_0x51a476(0x15d)](_0x104e0b)?'\x20'+MYBATIS_DYNAMIC_END_MARKER+'\x20':'\x20';}else{if(!hasWellFormedXmlAttributes(_0x4be39e))return invalidMybatisSource(_0x51a476(0x173)+_0x57223b+'>.');if(_0x104e0b==='property'&&(!_0xff8be4||_0x6d2f80['at'](-0x1)?.[_0x51a476(0x17b)]!=='include'))return invalidMybatisSource('MyBatis\x20<property>\x20must\x20be\x20a\x20self-closing\x20direct\x20child\x20of\x20<include>.');if(_0x381020){if(_0x232ce3||_0x6d2f80[_0x51a476(0x176)]>0x0)return invalidMybatisSource('Multiple\x20MyBatis\x20statement\x20wrappers\x20are\x20not\x20supported.');_0x232ce3=!![],_0x590ee3=_0xff8be4,_0x5840bb=_0x381020;}else{if(!_0x232ce3||_0x590ee3)return invalidMybatisSource(_0x51a476(0x18f)+_0x57223b+'>.');}_0x35ddc9+=_0x104e0b===_0x51a476(0x196)?_0x51a476(0x17c):_0x104e0b===_0x51a476(0x14e)?_0x51a476(0x148):_0x104e0b===_0x51a476(0x139)?'\x20'+MYBATIS_INCLUDE_MARKER+'\x20':MYBATIS_BRANCH_TAGS[_0x51a476(0x15d)](_0x104e0b)&&!_0xff8be4?'\x20'+MYBATIS_DYNAMIC_START_MARKER+'\x20':'\x20',!_0xff8be4&&_0x6d2f80[_0x51a476(0x149)]({'rawName':_0x57223b,'tagName':_0x104e0b,'outer':!!_0x381020});}_0x9cb0c1=_0x4e0105+0x1;}if(_0x6d2f80[_0x51a476(0x176)]>0x0)return invalidMybatisSource(_0x51a476(0x16f)+_0x6d2f80['at'](-0x1)?.[_0x51a476(0x15c)]+'>.');if(!_0x232ce3||!_0x590ee3)return invalidMybatisSource(_0x51a476(0x171));return{'sql':_0x35ddc9[_0x51a476(0x13f)](),'mode':'mybatisXml',..._0x5840bb?{'statementType':_0x5840bb}:{}};}function hasWellFormedXmlAttributes(_0x463cc4){const _0x445ca2=a268_0x41b5cb;let _0x21b359=0x0;const _0x128fef=new Set();while(_0x21b359<_0x463cc4[_0x445ca2(0x176)]){while(_0x21b359<_0x463cc4[_0x445ca2(0x176)]&&/\s/['test'](_0x463cc4[_0x21b359]??''))_0x21b359+=0x1;if(_0x21b359>=_0x463cc4[_0x445ca2(0x176)])return!![];const _0xf5e005=/^[A-Za-z_:][\w:.-]*/[_0x445ca2(0x188)](_0x463cc4['slice'](_0x21b359)),_0x5addb4=_0xf5e005?.[0x0];if(!_0x5addb4||_0x128fef[_0x445ca2(0x15d)](_0x5addb4))return![];_0x128fef[_0x445ca2(0x16a)](_0x5addb4),_0x21b359+=_0x5addb4[_0x445ca2(0x176)];while(_0x21b359<_0x463cc4[_0x445ca2(0x176)]&&/\s/[_0x445ca2(0x146)](_0x463cc4[_0x21b359]??''))_0x21b359+=0x1;if(_0x463cc4[_0x21b359]!=='=')return![];_0x21b359+=0x1;while(_0x21b359<_0x463cc4[_0x445ca2(0x176)]&&/\s/[_0x445ca2(0x146)](_0x463cc4[_0x21b359]??''))_0x21b359+=0x1;const _0x3b0c21=_0x463cc4[_0x21b359];if(_0x3b0c21!=='\x22'&&_0x3b0c21!=='\x27')return![];_0x21b359+=0x1;const _0x5f0d3c=_0x463cc4['indexOf'](_0x3b0c21,_0x21b359);if(_0x5f0d3c<0x0)return![];if(decodeXmlEntities(_0x463cc4[_0x445ca2(0x13c)](_0x21b359,_0x5f0d3c))===null)return![];_0x21b359=_0x5f0d3c+0x1;}return!![];}function startsWithMybatisStatementWrapper(_0x48f870){const _0xc93d3c=a268_0x41b5cb;let _0x59aabc=0x0;const _0x443b95=()=>{const _0x563a68=a268_0x3365;while(_0x59aabc<_0x48f870[_0x563a68(0x176)]&&/\s/[_0x563a68(0x146)](_0x48f870[_0x59aabc]??''))_0x59aabc+=0x1;};_0x443b95();while(_0x59aabc<_0x48f870[_0xc93d3c(0x176)]){if(_0x48f870[_0xc93d3c(0x13d)](_0xc93d3c(0x16e),_0x59aabc)){const _0x125636=_0x48f870[_0xc93d3c(0x161)](_0xc93d3c(0x136),_0x59aabc+0x4);if(_0x125636<0x0)return!![];_0x59aabc=_0x125636+0x3,_0x443b95();continue;}if(_0x48f870[_0xc93d3c(0x13d)]('<?',_0x59aabc)){const _0x302b5a=_0x48f870['indexOf']('?>',_0x59aabc+0x2);if(_0x302b5a<0x0)return!![];_0x59aabc=_0x302b5a+0x2,_0x443b95();continue;}break;}return MYBATIS_OUTER_TAG_PATTERN[_0xc93d3c(0x146)](_0x48f870['slice'](_0x59aabc));}function invalidMybatisSource(_0x3d45c7){const _0x5f0cb7=a268_0x41b5cb;return{'sql':'','mode':_0x5f0cb7(0x13a),'error':_0x3d45c7};}function findXmlTagEnd(_0x253bc5,_0x5927a5){const _0x244691=a268_0x41b5cb;let _0x25cc3c;for(let _0x237ba8=_0x5927a5+0x1;_0x237ba8<_0x253bc5[_0x244691(0x176)];_0x237ba8+=0x1){const _0xa048fd=_0x253bc5[_0x237ba8];if(_0x25cc3c){if(_0xa048fd===_0x25cc3c)_0x25cc3c=undefined;continue;}if(_0xa048fd==='\x22'||_0xa048fd==='\x27'){_0x25cc3c=_0xa048fd;continue;}if(_0xa048fd==='>')return _0x237ba8;}return-0x1;}function decodeXmlEntities(_0x463e83){const _0x3fea88=a268_0x41b5cb;let _0xe5df44=![];const _0x176be3=_0x463e83[_0x3fea88(0x183)](/&(?:#x[0-9a-f]+;|#[0-9]+;|[A-Za-z_:][\w:.-]*;)?/g,_0x12d650=>{const _0x22b9d4=_0x3fea88;if(_0x12d650===_0x22b9d4(0x165))return'<';if(_0x12d650===_0x22b9d4(0x175))return'>';if(_0x12d650===_0x22b9d4(0x187))return'\x22';if(_0x12d650===_0x22b9d4(0x170))return'\x27';if(_0x12d650===_0x22b9d4(0x15a))return'&';const _0x1ad635=/^&#(?:x([0-9a-f]+)|([0-9]+));$/[_0x22b9d4(0x188)](_0x12d650);if(_0x1ad635){const _0x2c636d=_0x1ad635[0x1],_0x6a3d1a=_0x1ad635[0x2],_0x1708e5=Number[_0x22b9d4(0x194)](_0x2c636d??_0x6a3d1a??'',_0x2c636d?0x10:0xa);if(isValidXmlCharacter(_0x1708e5))return String['fromCodePoint'](_0x1708e5);}return _0xe5df44=!![],'';});return _0xe5df44?null:_0x176be3;}function a268_0x9e00(){const _0x5bb78e=['9685116VazhJv','isDangerous','MyBatis\x20dynamic\x20tag\x20must\x20be\x20inside\x20the\x20statement\x20wrapper:\x20<','66235nmegLN','when','4mkdWKL','967690zoBhBg','parseInt','1947705aYEckg','where','choose','insert','-->','matchAll','unknown\x20table(s)','include','mybatisXml','Unable\x20to\x20detect\x20SQL\x20type.\x20','slice','startsWith','81ZEWAlj','trim','Unterminated\x20CDATA\x20section.',']]>','reason','toUpperCase','type','delete','test','SELECT','\x20SET\x20','push','SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements','select','otherwise','MyBatis\x20dynamic\x20tag\x20names\x20must\x20be\x20lowercase:\x20<','set','statementType','split','keys','INSERT','UPDATE','Invalid\x20MyBatis\x20XML\x20tag.','match','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','property','Mismatched\x20MyBatis\x20XML\x20closing\x20tag:\x20</','string','&','outer','rawName','has','Unterminated\x20XML\x20declaration.','\x20query\x20targeting\x20','CDATA\x20sections\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','indexOf','sql','pop','719684pQKtQb','<','__RABETBASE_UNRESOLVED_SQL_FRAGMENT__','__RABETBASE_MYBATIS_INCLUDE_UNRESOLVED__','UNKNOWN','^<\x5cs*(?:','add','Unsupported\x20MyBatis\x20XML\x20tag:\x20<','join','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','<!--','Unclosed\x20MyBatis\x20XML\x20tag:\x20<',''','MyBatis\x20XML\x20must\x20contain\x20exactly\x20one\x20complete\x20statement\x20wrapper.','error','Invalid\x20attributes\x20on\x20MyBatis\x20XML\x20tag:\x20<','XML\x20declarations\x20must\x20precede\x20the\x20MyBatis\x20statement\x20wrapper.','>','length','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','Unterminated\x20MyBatis\x20XML\x20tag.','get','SQL\x20text\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','tagName','\x20WHERE\x20','14839080AcVWmD','foreach','WITH','replaceAll','DELETE','SQL\x20content\x20is\x20empty','replace','1418628yjaWEE','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','DDL','"','exec','Invalid\x20XML\x20entity\x20reference.','174DWFgNc','includes','toLowerCase'];a268_0x9e00=function(){return _0x5bb78e;};return a268_0x9e00();}function isValidXmlCharacter(_0x35ddfc){return _0x35ddfc===0x9||_0x35ddfc===0xa||_0x35ddfc===0xd||_0x35ddfc>=0x20&&_0x35ddfc<=0xd7ff||_0x35ddfc>=0xe000&&_0x35ddfc<=0xfffd||_0x35ddfc>=0x10000&&_0x35ddfc<=0x10ffff;}export function detectSqlType(_0x102580){return detectNormalizedSqlType(normalizeSqlForStaticAnalysis(_0x102580));}function detectNormalizedSqlType(_0x580e29){const _0x73480=a268_0x41b5cb;if(_0x580e29[_0x73480(0x172)])return{'type':_0x73480(0x168),'isSelectOnly':![],'isDangerous':![],'reason':_0x580e29['error']};if(!_0x580e29[_0x73480(0x162)][_0x73480(0x13f)]())return{'type':_0x73480(0x168),'isSelectOnly':![],'isDangerous':![],'reason':_0x73480(0x182)};const _0x4a05ed=stripStaticAnalysisMarkers(_0x580e29['sql'])[_0x73480(0x183)](/#\{[^}]*\}/g,'?')[_0x73480(0x183)](/\$\{[^}]*\}/g,'?')['replace'](/@[^(\s]+(\([^)]*\))?/g,'')[_0x73480(0x183)](/\/\*[\s\S]*?\*\//g,'')[_0x73480(0x13f)](),_0x22cf3e=_0x4a05ed[_0x73480(0x150)]('\x0a');let _0x21be17='';for(const _0x3c7e7f of _0x22cf3e){const _0x454d74=_0x3c7e7f[_0x73480(0x13f)]();if(!_0x454d74||_0x454d74[_0x73480(0x13d)]('--')||_0x454d74['startsWith']('/*'))continue;_0x21be17=_0x454d74;break;}const _0x4b803f=_0x21be17[_0x73480(0x143)](),_0x5e555d=_0x580e29[_0x73480(0x14f)],_0x45f004=maskSqlTextForBlockedKeywordScan(_0x4a05ed),_0x2cbc72=/\b(DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x73480(0x146)](_0x45f004);if(_0x5e555d===_0x73480(0x147)||!_0x5e555d&&(_0x4b803f[_0x73480(0x13d)](_0x73480(0x147))||_0x4b803f[_0x73480(0x13d)](_0x73480(0x17f)))){const _0x100269=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x73480(0x146)](_0x4a05ed);return{'type':_0x73480(0x147),'isSelectOnly':!_0x100269,'isDangerous':_0x100269,'reason':_0x100269?_0x73480(0x177):undefined};}if(_0x5e555d===_0x73480(0x152)||!_0x5e555d&&_0x4b803f['startsWith'](_0x73480(0x152)))return{'type':_0x73480(0x152),'isSelectOnly':![],'isDangerous':_0x2cbc72,'reason':_0x2cbc72?_0x73480(0x14a):undefined};if(_0x5e555d===_0x73480(0x153)||!_0x5e555d&&_0x4b803f[_0x73480(0x13d)](_0x73480(0x153)))return{'type':'UPDATE','isSelectOnly':![],'isDangerous':_0x2cbc72,'reason':_0x2cbc72?'SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements':undefined};if(_0x5e555d===_0x73480(0x181)||!_0x5e555d&&_0x4b803f[_0x73480(0x13d)]('DELETE'))return{'type':_0x73480(0x181),'isSelectOnly':![],'isDangerous':!![],'reason':_0x73480(0x16d)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0x4b803f))return{'type':_0x73480(0x186),'isSelectOnly':![],'isDangerous':!![],'reason':_0x73480(0x156)};return{'type':_0x73480(0x168),'isSelectOnly':![],'isDangerous':![]};}function stripStaticAnalysisMarkers(_0xe87ae3){const _0x5ac29c=a268_0x41b5cb;return _0xe87ae3[_0x5ac29c(0x180)](MYBATIS_DYNAMIC_START_MARKER,'\x20')[_0x5ac29c(0x180)](MYBATIS_DYNAMIC_END_MARKER,'\x20')[_0x5ac29c(0x180)](MYBATIS_INCLUDE_MARKER,'\x20'+UNRESOLVED_SQL_FRAGMENT+'\x20');}function maskSqlTextForBlockedKeywordScan(_0x4d7eb5){const _0x149713=a268_0x41b5cb;return _0x4d7eb5[_0x149713(0x183)](/'(?:''|\\.|[^'])*'/g,'\x20')[_0x149713(0x183)](/"(?:""|\\.|[^"])*"/g,'\x20')[_0x149713(0x183)](/`(?:``|\\.|[^`])*`/g,'\x20')[_0x149713(0x183)](/--.*$/gm,'\x20')['replace'](/#.*$/gm,'\x20')[_0x149713(0x183)](/\/\*[\s\S]*?\*\//g,'\x20');}function extractTables(_0x2ab3a8){const _0x209ac8=a268_0x41b5cb,_0x4a4a33=_0x2ab3a8[_0x209ac8(0x183)](/#\{[^}]*\}/g,'?')[_0x209ac8(0x183)](/\$\{[^}]*\}/g,'?')[_0x209ac8(0x183)](/'[^']*'/g,'\x27\x27')[_0x209ac8(0x183)](/--.*$/gm,'')[_0x209ac8(0x183)](/\/\*[\s\S]*?\*\//g,''),_0x5d8113=[],_0x16d41f=_0x4a4a33['match'](/FROM\s+([^\s,)(]+)/i);addTable(_0x5d8113,_0x16d41f?.[0x1]);for(const _0x590a59 of _0x4a4a33[_0x209ac8(0x137)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){addTable(_0x5d8113,_0x590a59[0x1]);}const _0x3181f4=_0x4a4a33['match'](/INTO\s+([^\s(]+)/i);addTable(_0x5d8113,_0x3181f4?.[0x1]);const _0x2eb933=_0x4a4a33[_0x209ac8(0x155)](/UPDATE\s+([^\s,)(]+)/i);return addTable(_0x5d8113,_0x2eb933?.[0x1]),_0x5d8113;}function addTable(_0x5cd50f,_0x3a8d38){const _0x35af89=a268_0x41b5cb,_0x410e59=_0x3a8d38?.[_0x35af89(0x183)](/[`"]/g,'');_0x410e59&&_0x410e59!==UNRESOLVED_SQL_FRAGMENT&&!_0x5cd50f[_0x35af89(0x18b)](_0x410e59)&&_0x5cd50f['push'](_0x410e59);}function extractParameters(_0x282b38){const _0x187a70=a268_0x41b5cb,_0x4149b7=new Set();for(const _0x2f36dc of _0x282b38[_0x187a70(0x137)](/[#$]\{\s*([A-Za-z_][\w.]*)\s*(?=[,}])/g)){if(_0x2f36dc[0x1])_0x4149b7[_0x187a70(0x16a)](_0x2f36dc[0x1]);}return Array['from'](_0x4149b7);}export function validateSql(_0x5518db){const _0x457600=a268_0x41b5cb,_0x6afbdc=normalizeSqlForStaticAnalysis(_0x5518db),_0x101b75=detectNormalizedSqlType(_0x6afbdc),_0x26893f=stripStaticAnalysisMarkers(_0x6afbdc[_0x457600(0x162)]),_0x16c5b1=_0x6afbdc[_0x457600(0x172)]?[]:extractTables(_0x26893f),_0x360776=_0x6afbdc[_0x457600(0x172)]?[]:extractParameters(_0x26893f);if(_0x101b75[_0x457600(0x18e)])return{'valid':![],'sqlType':_0x101b75,'tables':_0x16c5b1,'parameters':_0x360776,'message':_0x101b75[_0x457600(0x142)]||_0x101b75[_0x457600(0x144)]+'\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'};if(_0x101b75[_0x457600(0x144)]==='UNKNOWN')return{'valid':![],'sqlType':_0x101b75,'tables':_0x16c5b1,'parameters':_0x360776,'message':_0x6afbdc['error']?_0x457600(0x13b)+_0x6afbdc[_0x457600(0x172)]:_0x457600(0x185)};return{'valid':!![],'sqlType':_0x101b75,'tables':_0x16c5b1,'parameters':_0x360776,'message':_0x101b75[_0x457600(0x144)]+_0x457600(0x15f)+(_0x16c5b1[_0x457600(0x176)]?_0x16c5b1[_0x457600(0x16c)](',\x20'):_0x457600(0x138))+(_0x360776[_0x457600(0x176)]?'\x20with\x20parameters:\x20'+_0x360776[_0x457600(0x16c)](',\x20'):'')};}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a269_0x15f23a=a269_0xca85;function a269_0xca85(_0x4a46da,_0x36ca4c){_0x4a46da=_0x4a46da-0x1f3;const _0x538b63=a269_0x538b();let _0xca8572=_0x538b63[_0x4a46da];return _0xca8572;}(function(_0x9a6fe0,_0x262443){const _0xcc1b64=a269_0xca85,_0x378a3c=_0x9a6fe0();while(!![]){try{const _0x4ec61b=parseInt(_0xcc1b64(0x1f6))/0x1+-parseInt(_0xcc1b64(0x209))/0x2*(-parseInt(_0xcc1b64(0x1fe))/0x3)+parseInt(_0xcc1b64(0x20c))/0x4+-parseInt(_0xcc1b64(0x1fc))/0x5+parseInt(_0xcc1b64(0x1ff))/0x6*(parseInt(_0xcc1b64(0x1f9))/0x7)+parseInt(_0xcc1b64(0x204))/0x8+-parseInt(_0xcc1b64(0x20d))/0x9;if(_0x4ec61b===_0x262443)break;else _0x378a3c['push'](_0x378a3c['shift']());}catch(_0xe44a6c){_0x378a3c['push'](_0x378a3c['shift']());}}}(a269_0x538b,0x75b6e));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};const baseCliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a269_0x15f23a(0x1fa)+CLI_BIN_NAME+a269_0x15f23a(0x1f5),'configMissingHint':a269_0x15f23a(0x203)+CLI_BIN_NAME+a269_0x15f23a(0x205)+CLI_BIN_NAME+a269_0x15f23a(0x208),'notInProjectHint':a269_0x15f23a(0x1fb)});export const CliErrors={'authRequired'(_0x2dfed3){const _0xfab0ab=a269_0x15f23a;return new CliError(_0xfab0ab(0x1f3),0x1,'Authentication\x20required',_0x2dfed3??_0xfab0ab(0x1fa)+CLI_BIN_NAME+_0xfab0ab(0x1f5));},'configMissing'(_0x1df9cb){const _0x5234ac=a269_0x15f23a;return new CliError(_0x5234ac(0x202),0x1,_0x5234ac(0x20a),_0x1df9cb??_0x5234ac(0x203)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.\x0a\x20\x20\x20\x20\x20\x20\x20Tip:\x20`'+CLI_BIN_NAME+_0x5234ac(0x208));},'notInProject'(){const _0x31ba97=a269_0x15f23a;return new CliError(_0x31ba97(0x207),0x1,_0x31ba97(0x1f7)+CLI_BIN_NAME+_0x31ba97(0x1f8),_0x31ba97(0x1fb));},'apiError'(_0x1d4204,_0x1a85bc){const _0x5f3eec=a269_0x15f23a;return baseCliErrors[_0x5f3eec(0x201)](_0x1d4204,_0x1a85bc);},'networkError'(_0x217824){const _0x466cf6=a269_0x15f23a;return new CliError(_0x466cf6(0x206),0x2,'Network\x20error:\x20'+_0x217824,_0x466cf6(0x20b));},'unknownCommand'(_0x59d4b3){const _0x30c8b8=a269_0x15f23a;return new CliError('unknown_command',0x1,'Unknown\x20command:\x20'+_0x59d4b3,_0x30c8b8(0x1fa)+CLI_BIN_NAME+_0x30c8b8(0x1fd));},'flagMissing'(_0x3b859a,_0x59c075){const _0xb56723=a269_0x15f23a;return new CliError(_0xb56723(0x1f4),0x1,'Missing\x20required\x20flag:\x20--'+_0x3b859a,_0x59c075);},'validation'(_0x297c07,_0x236642){const _0x581057=a269_0x15f23a;return baseCliErrors[_0x581057(0x200)](_0x297c07,_0x236642);},'cancelled'(_0x49794f){return new CliError('cancelled',0x0,_0x49794f??'Operation\x20cancelled.');}};function a269_0x538b(){const _0x6ef4c=['3747384ATkuRE','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.\x0a\x20\x20\x20\x20\x20\x20\x20Tip:\x20`','network_error','not_in_project','\x20workspace\x20add\x20<name>\x20--appcode\x20<code>\x20--global`\x20registers\x20a\x20reusable\x20global\x20app\x20profile.','698UtCGLi','Configuration\x20file\x20not\x20found','Check\x20your\x20internet\x20connection\x20and\x20try\x20again.','2106268BWOyVy','16412049gTUEst','auth_required','flag_missing','\x20auth`\x20to\x20login\x20first.','850985qvGTeQ','Not\x20in\x20a\x20','\x20project\x20directory','813323QvBIct','Run\x20`','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','4758825kCwQQw','\x20--help`\x20to\x20see\x20available\x20commands.','5142AUVFza','42MvqscT','validation','apiError','config_missing','Set\x20appcode\x20via\x20`'];a269_0x538b=function(){return _0x6ef4c;};return a269_0x538b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x11a819,_0x4629b1){const _0x562d57=a270_0x23ee,_0x9b5bc8=_0x11a819();while(!![]){try{const _0x190aeb=-parseInt(_0x562d57(0x1f5))/0x1+parseInt(_0x562d57(0x1fa))/0x2*(-parseInt(_0x562d57(0x1f2))/0x3)+-parseInt(_0x562d57(0x1f4))/0x4+-parseInt(_0x562d57(0x1ef))/0x5*(-parseInt(_0x562d57(0x1f1))/0x6)+parseInt(_0x562d57(0x1f9))/0x7*(parseInt(_0x562d57(0x1f3))/0x8)+-parseInt(_0x562d57(0x1fb))/0x9*(-parseInt(_0x562d57(0x1f7))/0xa)+-parseInt(_0x562d57(0x1ee))/0xb*(-parseInt(_0x562d57(0x1f8))/0xc);if(_0x190aeb===_0x4629b1)break;else _0x9b5bc8['push'](_0x9b5bc8['shift']());}catch(_0x2916dc){_0x9b5bc8['push'](_0x9b5bc8['shift']());}}}(a270_0x3464,0x834dc));function a270_0x23ee(_0x39789f,_0x5f4de3){_0x39789f=_0x39789f-0x1ee;const _0x346498=a270_0x3464();let _0x23ee0f=_0x346498[_0x39789f];return _0x23ee0f;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a270_0x485211}from'@lovrabet/cli-framework';import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';function a270_0x3464(){const _0x40fa9c=['324UVPhQi','21BdbWvb','4PbesxV','262143uTKcTz','map','373351Bwiwgq','75uacxOc','name','112494qBSsnK','1182084vAXBBQ','2548632TlnqNf','453864HZelZg','947053qBOGvx','yes','80lMkCOz'];a270_0x3464=function(){return _0x40fa9c;};return a270_0x3464();}export function buildAllFlags(_0x5355ef){const _0x104c18=a270_0x23ee,_0x22c5fa=a270_0x485211(_0x5355ef,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0x5355ef))return _0x22c5fa;return _0x22c5fa[_0x104c18(0x1fc)](_0x33b08b=>_0x33b08b[_0x104c18(0x1f0)]===_0x104c18(0x1f6)?{..._0x33b08b,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x33b08b);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3b0139,_0x3104ba){var _0x2a3d10=a271_0x5ebc,_0x37006b=_0x3b0139();while(!![]){try{var _0x50ea6c=-parseInt(_0x2a3d10(0x19b))/0x1*(parseInt(_0x2a3d10(0x1a0))/0x2)+parseInt(_0x2a3d10(0x1a2))/0x3*(parseInt(_0x2a3d10(0x1a5))/0x4)+parseInt(_0x2a3d10(0x198))/0x5*(-parseInt(_0x2a3d10(0x19a))/0x6)+-parseInt(_0x2a3d10(0x19d))/0x7*(parseInt(_0x2a3d10(0x1a4))/0x8)+parseInt(_0x2a3d10(0x199))/0x9+-parseInt(_0x2a3d10(0x197))/0xa+parseInt(_0x2a3d10(0x19c))/0xb;if(_0x50ea6c===_0x3104ba)break;else _0x37006b['push'](_0x37006b['shift']());}catch(_0x2e3f73){_0x37006b['push'](_0x37006b['shift']());}}}(a271_0x5335,0x6135c));function a271_0x5ebc(_0x3cfbd5,_0x186158){_0x3cfbd5=_0x3cfbd5-0x197;var _0x53352c=a271_0x5335();var _0x5ebc06=_0x53352c[_0x3cfbd5];return _0x5ebc06;}import{resolveOutputConfig}from'@lovrabet/cli-framework';export function usesStructuredErrorOutput(_0x3d3b01){var _0x4c8cdd=a271_0x5ebc;return _0x3d3b01?.[_0x4c8cdd(0x1a3)]===!![];}export function resolveErrorOutputFormat(_0xbdc12){var _0x46d060=a271_0x5ebc;if(!_0xbdc12['def'])return _0xbdc12[_0x46d060(0x19f)]??_0x46d060(0x1a1);return resolveOutputConfig({'flags':_0xbdc12[_0x46d060(0x19e)]??{},'def':_0xbdc12['def'],'configDefault':_0xbdc12[_0x46d060(0x19f)]})['format'];}function a271_0x5335(){var _0x401f03=['defaultFormat','42568YWyMQB','compress','81YhkpXc','structuredErrors','8pbVoRW','115236sIvArE','2564670mcyJUF','6705MQYnAx','2403198iaQXxi','1734rijipd','31LkGRih','13176658QEVaEB','3785257OAlsAG','flags'];a271_0x5335=function(){return _0x401f03;};return a271_0x5335();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a272_0x2a0770=a272_0x298a;(function(_0x1e42fd,_0x4aa5c6){const _0x46cf21=a272_0x298a,_0x743b5e=_0x1e42fd();while(!![]){try{const _0x2cd525=-parseInt(_0x46cf21(0x1eb))/0x1*(parseInt(_0x46cf21(0x1f7))/0x2)+-parseInt(_0x46cf21(0x1ee))/0x3+parseInt(_0x46cf21(0x1f9))/0x4*(-parseInt(_0x46cf21(0x1ed))/0x5)+parseInt(_0x46cf21(0x1f3))/0x6*(parseInt(_0x46cf21(0x1f4))/0x7)+-parseInt(_0x46cf21(0x1f1))/0x8*(parseInt(_0x46cf21(0x1fa))/0x9)+-parseInt(_0x46cf21(0x1f5))/0xa*(parseInt(_0x46cf21(0x1fc))/0xb)+parseInt(_0x46cf21(0x1fb))/0xc*(parseInt(_0x46cf21(0x1f8))/0xd);if(_0x2cd525===_0x4aa5c6)break;else _0x743b5e['push'](_0x743b5e['shift']());}catch(_0x225b9a){_0x743b5e['push'](_0x743b5e['shift']());}}}(a272_0x37fb,0x3d8d0));function a272_0x298a(_0x598944,_0x580cf6){_0x598944=_0x598944-0x1ea;const _0x37fb06=a272_0x37fb();let _0x298a18=_0x37fb06[_0x598944];return _0x298a18;}const EXPLICIT_YES_COMMANDS=new Set([a272_0x2a0770(0x1f6),a272_0x2a0770(0x1f2),a272_0x2a0770(0x1ef),a272_0x2a0770(0x1ea)]);function a272_0x37fb(){const _0x288b2e=['1836furAVH','87201DQwDpH','153648xtZBLL','3817429gbIHlO','notification\x20config-delete','151dmMAYS','service','4405Gzrfyw','66600SoSVyU','notification\x20config-update','command','104mKgYFc','kb\x20delete','750CnqmON','7847OQAUqY','10sCYQVu','menu\x20delete','3052XTDrhY','1261tJiDcc'];a272_0x37fb=function(){return _0x288b2e;};return a272_0x37fb();}export const EXPLICIT_YES_FLAG_DESCRIPTION='Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan';export function requiresExplicitYes(_0x2b2a1d){const _0x9d919c=a272_0x2a0770;return EXPLICIT_YES_COMMANDS['has'](_0x2b2a1d[_0x9d919c(0x1ec)]+'\x20'+_0x2b2a1d[_0x9d919c(0x1f0)]);}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a273_0x4081ae=a273_0x5487;(function(_0x50cccf,_0x360203){const _0x510010=a273_0x5487,_0x590439=_0x50cccf();while(!![]){try{const _0x5f1261=-parseInt(_0x510010(0x1b5))/0x1+parseInt(_0x510010(0x1b6))/0x2+parseInt(_0x510010(0x1b1))/0x3*(-parseInt(_0x510010(0x1b2))/0x4)+parseInt(_0x510010(0x1ac))/0x5*(-parseInt(_0x510010(0x1af))/0x6)+parseInt(_0x510010(0x1ad))/0x7*(-parseInt(_0x510010(0x1b4))/0x8)+parseInt(_0x510010(0x1ae))/0x9+-parseInt(_0x510010(0x1ab))/0xa*(-parseInt(_0x510010(0x1b3))/0xb);if(_0x5f1261===_0x360203)break;else _0x590439['push'](_0x590439['shift']());}catch(_0x13880e){_0x590439['push'](_0x590439['shift']());}}}(a273_0x3dad,0x7b76f));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a273_0x3dad(){const _0x2bccfb=['37289aDuRyK','3248991IWBGBd','84bgBoeZ','validateFlags','3RfsGeH','3188156xoSkhz','11FTxHuI','296bpKvzW','893218mEkZyS','734498uiasAL','20387170HdzqGY','133535ZeoIhD'];a273_0x3dad=function(){return _0x2bccfb;};return a273_0x3dad();}const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];function a273_0x5487(_0x1baf76,_0x4a6eef){_0x1baf76=_0x1baf76-0x1ab;const _0x3dadde=a273_0x3dad();let _0x548763=_0x3dadde[_0x1baf76];return _0x548763;}export const validateFlags=helpers[a273_0x4081ae(0x1b0)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3d1679,_0x2917e4){const _0x18391c=a274_0x4956,_0x38d05b=_0x3d1679();while(!![]){try{const _0x1560a6=-parseInt(_0x18391c(0x168))/0x1*(parseInt(_0x18391c(0x167))/0x2)+-parseInt(_0x18391c(0x171))/0x3+parseInt(_0x18391c(0x16f))/0x4*(parseInt(_0x18391c(0x16d))/0x5)+parseInt(_0x18391c(0x172))/0x6+parseInt(_0x18391c(0x16c))/0x7+-parseInt(_0x18391c(0x16e))/0x8*(-parseInt(_0x18391c(0x165))/0x9)+-parseInt(_0x18391c(0x170))/0xa;if(_0x1560a6===_0x2917e4)break;else _0x38d05b['push'](_0x38d05b['shift']());}catch(_0x1fe238){_0x38d05b['push'](_0x38d05b['shift']());}}}(a274_0x1b01,0x3b26d));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';function a274_0x4956(_0xdddc5,_0x7fa077){_0xdddc5=_0xdddc5-0x163;const _0x1b0155=a274_0x1b01();let _0x495632=_0x1b0155[_0xdddc5];return _0x495632;}function a274_0x1b01(){const _0x3c57a0=['2300105aaayzH','1325512JkRsIX','4IRNWoa','7360250XXlUyK','115638OyzJiX','515538adMwfl','replace','Requires\x20appcode\x20(set\x20via\x20`','18kWJjTA','\x20workspace\x20init`\x20or\x20--appcode).','106ibIsmM','5139InmtHa','Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.','Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','generateFullHelp','2883307ggjbwV'];a274_0x1b01=function(){return _0x3c57a0;};return a274_0x1b01();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{requiresExplicitYes}from'../framework/explicit-yes.js';function createGenerators(){const _0x58f6ae=a274_0x4956;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x31f0e6=>serviceGroups['get'](_0x31f0e6),'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x58f6ae(0x164)+CLI_BIN_NAME+_0x58f6ae(0x166),'serviceUsageSuffix':'\x20[args]\x20[flags]'});}export function generateCommandHelp(_0x40d147){const _0x4270d3=a274_0x4956,_0x483119=createGenerators()['generateCommandHelp'](_0x40d147);if(!requiresExplicitYes(_0x40d147))return _0x483119;return _0x483119[_0x4270d3(0x163)](_0x4270d3(0x16a),_0x4270d3(0x169));}export function generateServiceHelp(_0x3f6483){return createGenerators()['generateServiceHelp'](_0x3f6483);}export function generateFullHelp(){const _0x456a55=a274_0x4956;return createGenerators()[_0x456a55(0x16b)]();}
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a275_0x4321(){var _0x3d33f6=['4332056sVSXzM','44189760rbexQH','18DvQPvz','1419125dVYRnb','84917zPmtID','801284QRyKEL','14zHfFtU','4Kgarke','7Zlirjk','3660063XNPnJq','168306yZizYt','40FxDDDH'];a275_0x4321=function(){return _0x3d33f6;};return a275_0x4321();}function a275_0x2a18(_0x402e36,_0x96b5c6){_0x402e36=_0x402e36-0x17f;var _0x4321bf=a275_0x4321();var _0x2a18cd=_0x4321bf[_0x402e36];return _0x2a18cd;}(function(_0x5e308f,_0x40771b){var _0x23afdd=a275_0x2a18,_0x3ed76d=_0x5e308f();while(!![]){try{var _0x56b433=-parseInt(_0x23afdd(0x181))/0x1*(parseInt(_0x23afdd(0x183))/0x2)+parseInt(_0x23afdd(0x186))/0x3*(-parseInt(_0x23afdd(0x184))/0x4)+parseInt(_0x23afdd(0x180))/0x5+-parseInt(_0x23afdd(0x187))/0x6*(-parseInt(_0x23afdd(0x185))/0x7)+-parseInt(_0x23afdd(0x189))/0x8*(parseInt(_0x23afdd(0x17f))/0x9)+-parseInt(_0x23afdd(0x188))/0xa*(parseInt(_0x23afdd(0x182))/0xb)+parseInt(_0x23afdd(0x18a))/0xc;if(_0x56b433===_0x40771b)break;else _0x3ed76d['push'](_0x3ed76d['shift']());}catch(_0x362346){_0x3ed76d['push'](_0x3ed76d['shift']());}}}(a275_0x4321,0xc4a96));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x426c48,_0x1fd771){const _0xd80461=a276_0x4d4e,_0x132aef=_0x426c48();while(!![]){try{const _0x7cdca2=-parseInt(_0xd80461(0xb9))/0x1*(parseInt(_0xd80461(0xac))/0x2)+parseInt(_0xd80461(0xae))/0x3+-parseInt(_0xd80461(0xa2))/0x4+parseInt(_0xd80461(0xb5))/0x5+-parseInt(_0xd80461(0xb6))/0x6+-parseInt(_0xd80461(0xb1))/0x7+parseInt(_0xd80461(0xa0))/0x8*(parseInt(_0xd80461(0xb4))/0x9);if(_0x7cdca2===_0x1fd771)break;else _0x132aef['push'](_0x132aef['shift']());}catch(_0xd71fb2){_0x132aef['push'](_0x132aef['shift']());}}}(a276_0x5fe2,0x93484));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';function a276_0x5fe2(){const _0x5f0a71=['write','validation','1778eCMLpU','update','jq:\x20','pretty','1901104CtOrAh','stdout','2157140xnVBhz','hint','code','error','json','message','endsWith','risk','url','_notice','762jWHODw','trim','1245090mVmrjw','data','format','7427294DFGPgL','jqFilter','stringify','63yxtRSU','5277265GuhGDF','1517616MmhYTv'];a276_0x5fe2=function(){return _0x5f0a71;};return a276_0x5fe2();}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a276_0x4d4e(_0x5eddb8,_0x5748a2){_0x5eddb8=_0x5eddb8-0x9f;const _0x5fe203=a276_0x5fe2();let _0x4d4e66=_0x5fe203[_0x5eddb8];return _0x4d4e66;}export function formatOutput(_0x4a5f64,_0x251ccb){const _0x343c2d=a276_0x4d4e,_0x2b573b=_0x4a5f64[_0x343c2d(0xab)],{_notice:_0x28202a,..._0x16bdff}=_0x4a5f64;void _0x28202a,baseFormatOutput(_0x16bdff,_0x251ccb),_0x251ccb['format']===_0x343c2d(0x9f)&&printPrettyNotice(_0x2b573b);}export function formatCliError(_0xda3c8a,_0x13400b){const _0x3d5aa6=a276_0x4d4e;if(_0x13400b[_0x3d5aa6(0xb0)]==='pretty')return![];const _0x5cae42=_0xda3c8a[_0x3d5aa6(0xaf)],_0x56e1a0={'ok':![],'command':_0x13400b['command'],'risk':_0x13400b[_0x3d5aa6(0xa9)],'data':_0x5cae42??null,'error':{'code':_0xda3c8a[_0x3d5aa6(0xa4)],'message':_0xda3c8a[_0x3d5aa6(0xa7)],..._0xda3c8a[_0x3d5aa6(0xa3)]?{'hint':_0xda3c8a[_0x3d5aa6(0xa3)]}:{}}},_0x2db254=_0x13400b[_0x3d5aa6(0xb0)]==='json'?JSON[_0x3d5aa6(0xb3)](_0x56e1a0,null,0x2):JSON['stringify'](_0x56e1a0);let _0x4571bd=_0x2db254;if(_0x13400b['jqFilter']?.[_0x3d5aa6(0xad)]())try{_0x4571bd=applyJqFilter(_0x2db254,_0x13400b[_0x3d5aa6(0xb2)]);}catch(_0x131b84){const _0x469c28=_0x131b84 instanceof CliError?_0x131b84:CliErrors[_0x3d5aa6(0xb8)](_0x3d5aa6(0xbb)+(_0x131b84 instanceof Error?_0x131b84['message']:String(_0x131b84))),_0x3ffa42={..._0x56e1a0,'error':{'code':_0x469c28[_0x3d5aa6(0xa4)],'message':_0x469c28[_0x3d5aa6(0xa7)],..._0x469c28[_0x3d5aa6(0xa3)]?{'hint':_0x469c28['hint']}:{},'cause':_0x56e1a0['error']}};_0x4571bd=_0x13400b[_0x3d5aa6(0xb0)]===_0x3d5aa6(0xa6)?JSON['stringify'](_0x3ffa42,null,0x2):JSON[_0x3d5aa6(0xb3)](_0x3ffa42);}return process[_0x3d5aa6(0xa1)][_0x3d5aa6(0xb7)](_0x4571bd[_0x3d5aa6(0xa8)]('\x0a')?_0x4571bd:_0x4571bd+'\x0a'),!![];}function printPrettyNotice(_0xf529fb){const _0x39efe7=a276_0x4d4e;if(!_0xf529fb?.[_0x39efe7(0xba)])return;console[_0x39efe7(0xa5)](_0xf529fb[_0x39efe7(0xba)][_0x39efe7(0xa7)]+'\x20('+_0xf529fb[_0x39efe7(0xba)][_0x39efe7(0xaa)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a277_0xa434(){var _0x28a50d=['1109484DYmoFt','1080080KkFKYC','288VFMQBj','2241645UMjIfp','146280YdFJPH','1119992WjDPNn','3IEPxRh','40316SPVxhc','2873552vCmpZH','8ycfdQB'];a277_0xa434=function(){return _0x28a50d;};return a277_0xa434();}function a277_0x41ce(_0x420843,_0x240305){_0x420843=_0x420843-0xd0;var _0xa434dd=a277_0xa434();var _0x41cea7=_0xa434dd[_0x420843];return _0x41cea7;}(function(_0x530488,_0x846983){var _0x52b70c=a277_0x41ce,_0x3f136d=_0x530488();while(!![]){try{var _0x2fed1e=parseInt(_0x52b70c(0xd2))/0x1*(parseInt(_0x52b70c(0xd4))/0x2)+parseInt(_0x52b70c(0xd1))/0x3*(parseInt(_0x52b70c(0xd0))/0x4)+-parseInt(_0x52b70c(0xd6))/0x5+parseInt(_0x52b70c(0xd5))/0x6+-parseInt(_0x52b70c(0xd8))/0x7+-parseInt(_0x52b70c(0xd3))/0x8+parseInt(_0x52b70c(0xd7))/0x9*(parseInt(_0x52b70c(0xd9))/0xa);if(_0x2fed1e===_0x846983)break;else _0x3f136d['push'](_0x3f136d['shift']());}catch(_0x400be0){_0x3f136d['push'](_0x3f136d['shift']());}}}(a277_0xa434,0x308ab));export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x429313,_0x3bafae){const _0x2d82c6=a278_0x2be7,_0x433d36=_0x429313();while(!![]){try{const _0x39b63a=-parseInt(_0x2d82c6(0x1e1))/0x1*(-parseInt(_0x2d82c6(0x1d6))/0x2)+-parseInt(_0x2d82c6(0x1dc))/0x3+parseInt(_0x2d82c6(0x1ca))/0x4*(parseInt(_0x2d82c6(0x1d0))/0x5)+parseInt(_0x2d82c6(0x1d7))/0x6*(parseInt(_0x2d82c6(0x1dd))/0x7)+parseInt(_0x2d82c6(0x1cb))/0x8+parseInt(_0x2d82c6(0x1d4))/0x9+-parseInt(_0x2d82c6(0x1cf))/0xa;if(_0x39b63a===_0x3bafae)break;else _0x433d36['push'](_0x433d36['shift']());}catch(_0x40ebe1){_0x433d36['push'](_0x433d36['shift']());}}}(a278_0x47ee,0xf1582));import{CliErrors}from'../errors.js';function a278_0x2be7(_0x1a081b,_0x1660fb){_0x1a081b=_0x1a081b-0x1c9;const _0x47eea6=a278_0x47ee();let _0x2be76c=_0x47eea6[_0x1a081b];return _0x2be76c;}import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x15c898,_0x394e6f,_0x2574ee,_0x503774){const _0x53e569=a278_0x2be7,_0x2afbe6=_0x15c898['flags'][_0x53e569(0x1e0)](_0x435bf1=>_0x435bf1[_0x53e569(0x1d5)]==='code'&&_0x435bf1[_0x53e569(0x1ce)]===_0x53e569(0x1d1)),_0x3edf56=_0x15c898[_0x53e569(0x1d2)][_0x53e569(0x1e0)](_0x5e29f3=>_0x5e29f3[_0x53e569(0x1d5)]===_0x53e569(0x1cc)&&_0x5e29f3[_0x53e569(0x1ce)]===_0x53e569(0x1d1));if(!_0x2afbe6||!_0x3edf56)return;const _0x2df4cf=_0x394e6f['code']?String(_0x394e6f[_0x53e569(0x1c9)]):'',_0x2251c6=_0x394e6f[_0x53e569(0x1cc)]?String(_0x394e6f[_0x53e569(0x1cc)]):'';if(!_0x2df4cf&&!_0x2251c6)throw CliErrors['validation']('`'+_0x503774+_0x53e569(0x1d8));if(_0x2251c6&&!_0x2df4cf){const _0x2bef27=resolveAlias(_0x2574ee,_0x2251c6);if(!_0x2bef27){const _0x26f5ca=listAliases(_0x2574ee)[_0x53e569(0x1de)](_0x540755=>_0x540755[_0x53e569(0x1cc)]),_0x1f94bf=_0x26f5ca[_0x53e569(0x1d9)]?'Available\x20aliases:\x20'+_0x26f5ca['join'](',\x20'):'No\x20api.ts\x20found\x20in\x20'+_0x2574ee+_0x53e569(0x1df)+CLI_BIN_NAME+_0x53e569(0x1d3);throw CliErrors[_0x53e569(0x1da)](_0x53e569(0x1cd)+_0x2251c6+_0x53e569(0x1db)+_0x1f94bf);}_0x394e6f['code']=_0x2bef27;}}function a278_0x47ee(){const _0x52bd94=['53HFPUJf','code','8GHMaPK','5211616BwKDtk','alias','Unknown\x20alias\x20\x22','type','17775590pcfItt','896370kXzdQu','string','flags','\x20api\x20pull`\x20first.','1658124UlYrVv','name','72934UAADWX','3554040uSDMUI','`\x20requires\x20either\x20--code\x20or\x20--alias.','length','validation','\x22.\x20','2859666NaoQXV','7rwneJw','map','.\x20Run\x20`','some'];a278_0x47ee=function(){return _0x52bd94;};return a278_0x47ee();}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a280_0x206c(){const _0xbd672c=['216gBXQwx','177620mKSBHd','resolveCookie','catch','includes','pageSize','RABETBASE_APPCODE','pretty','Set\x20appcode\x20via\x20`','Current\x20resolved\x20appcode\x20is\x20\x22','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','meowKey','apiDir','241694ZNsvZz','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','999480MHAPzB','configMissing','riskLevel','App\x20\x22','defaultApp','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','schema','object','replace','update','High-risk\x20operation\x20`','resolveApiDomain','Edit\x20the\x20config\x20file\x20manually','apps','none','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','cancelled','hasFormat','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','join','confirmHighRisk','all','authRequired','hint','currentApp','Available:\x20','message','selectedAppName','../core/api-client.js','map','⚠\x20\x20High-risk\x20operation:\x20','\x20\x20\x20Continue?\x20[y/N]\x20','3818970EHOnWQ','service','value','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','_notice','LOVRABET_APPCODE','defaultVerbose','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','required','toUpperCase','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','production','15yUdFNr','keys','execute','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','trim','command','find','risk','length','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','resolve','3486528CuUDUR','7165971bcHBxc','defaultPageSize','validation','appcode','isNonInteractive','../constant/env.js','115745ROXcDL','filter','mergedCli','format','name','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','string','rawFlags','explicitAppName','\x0a\x20\x20','appCode','resolveAppCode','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.'];a280_0x206c=function(){return _0xbd672c;};return a280_0x206c();}(function(_0xba5943,_0x735baf){const _0x472c27=a280_0x2b80,_0x20230b=_0xba5943();while(!![]){try{const _0xc48931=-parseInt(_0x472c27(0x182))/0x1+-parseInt(_0x472c27(0x184))/0x2+-parseInt(_0x472c27(0x1b0))/0x3*(parseInt(_0x472c27(0x176))/0x4)+parseInt(_0x472c27(0x1a4))/0x5+parseInt(_0x472c27(0x175))/0x6*(-parseInt(_0x472c27(0x168))/0x7)+parseInt(_0x472c27(0x161))/0x8+parseInt(_0x472c27(0x162))/0x9;if(_0xc48931===_0x735baf)break;else _0x20230b['push'](_0x20230b['shift']());}catch(_0x593444){_0x20230b['push'](_0x20230b['shift']());}}}(a280_0x206c,0x6ab76));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 a280_0x37b68a}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x136ac3){const _0x3e618f=a280_0x2b80;return typeof _0x136ac3===_0x3e618f(0x16e)&&_0x136ac3[_0x3e618f(0x1b4)]()?_0x136ac3[_0x3e618f(0x1b4)]():undefined;}function resolveEnvAppCode(){const _0x2cf282=a280_0x2b80,_0x4ed629=stringFlag(process.env.RABETBASE_APPCODE);if(_0x4ed629)return{'name':_0x2cf282(0x17b),'value':_0x4ed629};const _0x322438=stringFlag(process.env.LOVRABET_APPCODE);if(_0x322438)return{'name':_0x2cf282(0x1a9),'value':_0x322438};return undefined;}function hasExplicitAppCode(_0x41cfbe,_0x23e2bf){const _0x1c8071=a280_0x2b80;return!!(stringFlag(_0x41cfbe['appcode'])||stringFlag(_0x23e2bf[_0x1c8071(0x165)]));}function assertEnvAppCodeNotIgnored(_0xc5b8b3,_0x53f13d,_0xeee782){const _0xbf3976=a280_0x2b80;if(!_0x53f13d||_0xeee782||_0xc5b8b3===_0x53f13d['value'])return;const _0x5d90c0=_0xc5b8b3?_0xbf3976(0x17e)+_0xc5b8b3+'\x22.':_0xbf3976(0x174);throw CliErrors[_0xbf3976(0x164)](_0x53f13d[_0xbf3976(0x16c)]+'='+_0x53f13d[_0xbf3976(0x1a6)]+_0xbf3976(0x196)+_0x5d90c0+'\x20'+(_0xbf3976(0x1ae)+_0x53f13d[_0xbf3976(0x16c)]+'\x22.'));}export function createPipelineEnv(_0x469461,_0x1ebad3,_0x3a02bf=[]){const _0xc34a1b=a280_0x2b80;return{'rawFlags':_0x1ebad3,'args':_0x3a02bf,'resolveAppCode':()=>_0x469461[_0xc34a1b(0x172)],'resolveCookie':()=>_0x469461['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a280_0x37b68a(_0x1ebad3),'defaultFormat':_0x469461[_0xc34a1b(0x16b)],'defaultPageSize':_0x469461[_0xc34a1b(0x17a)],'defaultVerbose':_0x469461['verbose'],'apiDir':_0x469461[_0xc34a1b(0x181)],'riskLevel':_0x469461[_0xc34a1b(0x186)],'selectedAppName':_0x469461[_0xc34a1b(0x170)],'mergedCli':{'defaultApp':_0x469461[_0xc34a1b(0x188)],'currentApp':_0x469461['currentApp'],'appCode':_0x469461[_0xc34a1b(0x172)],'apps':_0x469461[_0xc34a1b(0x191)]}};}export function createRabetbaseRunnerAdapter(_0x440f26={}){const _0xd82683=a280_0x2b80;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0xd82683(0x169)](_0x108bcf=>PIPELINE_FLAG_NAMES['has'](_0x108bcf[_0xd82683(0x16c)]))[_0xd82683(0x1a1)](({name:_0x23b274,type:_0x31e572,description:_0x35aa45})=>({'name':_0x23b274,'type':_0x31e572,'description':_0x35aa45})),'formatOutput':_0x440f26['formatOutput']??formatOutput,'getCommandLabel'(_0x54757f){const _0x2c82e6=_0xd82683;return CLI_BIN_NAME+'\x20'+_0x54757f['service']+'\x20'+_0x54757f[_0x2c82e6(0x1b5)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0xc661eb,{def:_0x3149ba}){const _0x5ac8fb=_0xd82683,_0x4e0eb2=_0xc661eb['includes'](_0x5ac8fb(0x190))?_0x5ac8fb(0x1a7):_0x5ac8fb(0x183)+_0x3149ba[_0x5ac8fb(0x15d)]+_0x5ac8fb(0x193)+_0x5ac8fb(0x1a7);return CliErrors[_0x5ac8fb(0x164)](_0xc661eb+_0x5ac8fb(0x171)+_0x4e0eb2);}},async 'prepare'(_0xe4d016,_0x3e70bf,_0x39ab7a,_0x5bf11a){const _0x8c4e83=_0xd82683,_0x5a3c38=_0x3e70bf['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0xe4d016,_0x39ab7a,_0x5a3c38,_0x5bf11a);const _0x5df9b0=resolveCommandAuthMode(_0xe4d016);let _0x1abb9b='';if(_0x5df9b0!==_0x8c4e83(0x192)){_0x1abb9b=_0x3e70bf[_0x8c4e83(0x177)]()||'';if(!_0x1abb9b){if(_0x5df9b0===_0x8c4e83(0x1ac))throw CliErrors[_0x8c4e83(0x19a)]();}else{const {setActiveCookie:_0x2a0bf8}=await import('../core/api-client.js');_0x2a0bf8(_0x1abb9b);}}const _0x3bed78=_0x3e70bf[_0x8c4e83(0x173)]()??'';if(_0xe4d016['requiresAppCode']!==![]){const _0x34cd98=hasExplicitAppCode(_0x39ab7a,_0x3e70bf[_0x8c4e83(0x16f)]),_0x2eb097=_0x3e70bf[_0x8c4e83(0x16a)]?.[_0x8c4e83(0x191)]??{},_0x460c7f=_0x3e70bf[_0x8c4e83(0x19f)]||_0x3e70bf['mergedCli']?.[_0x8c4e83(0x19c)]||_0x3e70bf[_0x8c4e83(0x16a)]?.[_0x8c4e83(0x188)];if(!_0x34cd98&&_0x460c7f&&!_0x2eb097[_0x460c7f]){const _0x350518=Object[_0x8c4e83(0x1b1)](_0x2eb097);throw CliErrors['validation'](_0x8c4e83(0x187)+_0x460c7f+_0x8c4e83(0x15f),_0x350518[_0x8c4e83(0x15e)]>0x0?_0x8c4e83(0x19d)+_0x350518[_0x8c4e83(0x197)](',\x20')+_0x8c4e83(0x189)+CLI_BIN_NAME+_0x8c4e83(0x16d):'Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x8c4e83(0x16d));}assertEnvAppCodeNotIgnored(_0x3bed78,resolveEnvAppCode(),_0x34cd98);if(!_0x3bed78){const _0x262392=Object[_0x8c4e83(0x1b1)](_0x2eb097);if(!_0x460c7f&&_0x262392['length']>0x1)throw CliErrors[_0x8c4e83(0x185)](_0x8c4e83(0x17f)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20'+_0x262392['join'](',\x20')+'.');throw CliErrors[_0x8c4e83(0x185)](_0x8c4e83(0x17d)+CLI_BIN_NAME+_0x8c4e83(0x1b3));}}return{'defaults':{'booleans':{'verbose':_0x3e70bf[_0x8c4e83(0x1aa)]},'numbers':{'pagesize':_0x3e70bf[_0x8c4e83(0x163)]}},'extras':{'appCode':_0x3bed78,'cookie':_0x1abb9b,'apiDomain':_0x3e70bf[_0x8c4e83(0x18f)](),'apiDir':_0x5a3c38,'selectedAppName':_0x3e70bf[_0x8c4e83(0x19f)],'mergedCli':_0x3e70bf['mergedCli']}};},'confirmHighRisk':_0x440f26[_0xd82683(0x198)]??(async({env:_0x74fc11,commandLabel:_0x69a9da})=>{const _0x386d1f=_0xd82683;if(_0x74fc11[_0x386d1f(0x166)])throw CliErrors[_0x386d1f(0x164)](_0x386d1f(0x18e)+_0x69a9da+_0x386d1f(0x1ab));await requireConfirmationPrompt({'lines':[_0x386d1f(0x1a2)+_0x69a9da,_0x386d1f(0x1a3)],'createCancelledError':_0x3668c5=>CliErrors[_0x386d1f(0x194)](_0x3668c5)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x9ff25a=a280_0x2b80,{clearActiveCookie:_0x1847c3}=await import(_0x9ff25a(0x1a0));_0x1847c3();}function a280_0x2b80(_0x9d8915,_0x4b9294){_0x9d8915=_0x9d8915-0x15d;const _0x206c59=a280_0x206c();let _0x2b80da=_0x206c59[_0x9d8915];return _0x2b80da;}export async function finalizeRabetbaseRuntimeState(){const _0x33d29b=a280_0x2b80;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x14f907},{initEnv:_0x3e4e1b}]=await Promise[_0x33d29b(0x199)]([import('../constant/domain.js'),import(_0x33d29b(0x167))]);_0x14f907(),_0x3e4e1b(_0x33d29b(0x1af));}}export async function runCommand(_0xb1547,_0x4d6f5f,_0x493a58=terminalRunnerAdapter){const _0x5cee50=a280_0x2b80;assertRejectedFlags(_0xb1547,_0x4d6f5f[_0x5cee50(0x16f)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0xb1547)?withUpdateNotice(_0xb1547):_0xb1547,_0x4d6f5f,_0x493a58);}function assertRejectedFlags(_0x32e10d,_0x4cccf4){const _0x5aec06=a280_0x2b80;for(const _0xefeacf of _0x32e10d['rejectedFlags']??[]){const _0x3e1407=GLOBAL_FLAGS[_0x5aec06(0x1b6)](_0x37e0c7=>_0x37e0c7['name']===_0xefeacf[_0x5aec06(0x16c)]),_0x24aec9=new Set([_0xefeacf[_0x5aec06(0x16c)],toCamelCase(_0xefeacf['name']),_0x3e1407?.[_0x5aec06(0x180)]]),_0xae5ab6=[..._0x24aec9]['some'](_0xfbfcc3=>{if(!_0xfbfcc3)return![];const _0x5356db=_0x4cccf4[_0xfbfcc3];return _0x5356db!==undefined&&_0x5356db!==null&&_0x5356db!==![];});if(_0xae5ab6)throw CliErrors[_0x5aec06(0x164)](_0xefeacf[_0x5aec06(0x19e)],_0xefeacf[_0x5aec06(0x19b)]);}}function toCamelCase(_0x1d15aa){const _0x184c8f=a280_0x2b80;return _0x1d15aa[_0x184c8f(0x18c)](/-([a-z])/g,(_0x9e0bf6,_0xaef580)=>_0xaef580[_0x184c8f(0x1ad)]());}function shouldAttachUpdateNotice(_0x56de63){const _0x451b6e=a280_0x2b80;if(_0x56de63[_0x451b6e(0x195)]===![])return![];return![_0x451b6e(0x18d),_0x451b6e(0x18a),'doctor'][_0x451b6e(0x179)](_0x56de63[_0x451b6e(0x1a5)]);}function withUpdateNotice(_0x3914d1){return{..._0x3914d1,async 'execute'(_0x15aa77){const _0x5b58a6=a280_0x2b80,_0x463db0=shouldResolveUpdateNotice(_0x15aa77)?resolveLatestUpdateNotice()[_0x5b58a6(0x178)](()=>null):Promise[_0x5b58a6(0x160)](null),_0x4942ea=await _0x3914d1[_0x5b58a6(0x1b2)](_0x15aa77);return attachUpdateNotice(_0x4942ea,await _0x463db0);}};}function shouldResolveUpdateNotice(_0x3b82b0){const _0x5dba36=a280_0x2b80;return _0x3b82b0[_0x5dba36(0x16b)]===_0x5dba36(0x17c)&&!_0x3b82b0['nonInteractive'];}function attachUpdateNotice(_0x2b63b5,_0x2f24f3){const _0xa8d41b=a280_0x2b80;if(!_0x2f24f3||!_0x2b63b5||typeof _0x2b63b5!==_0xa8d41b(0x18b))return _0x2b63b5;const _0x1a276b=_0x2b63b5,_0x406326=typeof _0x1a276b['_notice']===_0xa8d41b(0x18b)&&_0x1a276b['_notice']!==null?_0x1a276b[_0xa8d41b(0x1a8)]:{};return{..._0x1a276b,'_notice':{..._0x406326,'update':_0x2f24f3}};}
|
|
1
|
+
(function(_0x13abf3,_0x31c0a){const _0x3aecfa=a279_0xa719,_0x2325f8=_0x13abf3();while(!![]){try{const _0x4c317c=parseInt(_0x3aecfa(0x224))/0x1+parseInt(_0x3aecfa(0x1fe))/0x2*(parseInt(_0x3aecfa(0x21a))/0x3)+-parseInt(_0x3aecfa(0x20c))/0x4*(parseInt(_0x3aecfa(0x221))/0x5)+parseInt(_0x3aecfa(0x21e))/0x6+-parseInt(_0x3aecfa(0x207))/0x7*(parseInt(_0x3aecfa(0x1ea))/0x8)+-parseInt(_0x3aecfa(0x231))/0x9+parseInt(_0x3aecfa(0x201))/0xa;if(_0x4c317c===_0x31c0a)break;else _0x2325f8['push'](_0x2325f8['shift']());}catch(_0x2f30a2){_0x2325f8['push'](_0x2325f8['shift']());}}}(a279_0x32a6,0xe854e));function a279_0xa719(_0x18eec9,_0x13ae34){_0x18eec9=_0x18eec9-0x1e5;const _0x32a680=a279_0x32a6();let _0xa7198a=_0x32a680[_0x18eec9];return _0xa7198a;}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';function a279_0x32a6(){const _0x104156=['apps','../core/api-client.js','confirmHighRisk','hint','resolve','34494ODGCIT','currentApp','configMissing','command','7006530TlTiso','doctor','defaultVerbose','10sFLihb','pretty','Available:\x20','531904iCwtGx','string','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','message','defaultPageSize','../constant/domain.js','⚠\x20\x20High-risk\x20operation:\x20','RABETBASE_APPCODE','authRequired','find','all','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','102321brEqVv','_notice','apiDir','production','High-risk\x20operation\x20`','pageSize','validation','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','defaultApp','join','name','cancelled','1031208USpmeB','isNonInteractive','filter','riskLevel','nonInteractive','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','hasFormat','catch','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','length','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','trim','resolveAppCode','\x0a\x20\x20','appCode','selectedAppName','mergedCli','resolveApiDomain','value','cookie','106NqXsYY','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','explicitAppName','9405330URpcId','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','Set\x20appcode\x20via\x20`','appcode','resolveCookie','verbose','77teaMGv','keys','LOVRABET_APPCODE','some','rejectedFlags','1737352wrLpoX','formatOutput','format','rawFlags','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','service','toUpperCase','includes','none'];a279_0x32a6=function(){return _0x104156;};return a279_0x32a6();}import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a279_0x1412e0}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x52ec05){const _0x31d8d9=a279_0xa719;return typeof _0x52ec05===_0x31d8d9(0x225)&&_0x52ec05['trim']()?_0x52ec05[_0x31d8d9(0x1f5)]():undefined;}function resolveEnvAppCode(){const _0x12f18f=a279_0xa719,_0x4ae9a5=stringFlag(process.env.RABETBASE_APPCODE);if(_0x4ae9a5)return{'name':_0x12f18f(0x22c),'value':_0x4ae9a5};const _0x43c97e=stringFlag(process.env.LOVRABET_APPCODE);if(_0x43c97e)return{'name':_0x12f18f(0x209),'value':_0x43c97e};return undefined;}function hasExplicitAppCode(_0x294bd8,_0x3cbae8){const _0x29bba8=a279_0xa719;return!!(stringFlag(_0x294bd8[_0x29bba8(0x204)])||stringFlag(_0x3cbae8[_0x29bba8(0x204)]));}function assertEnvAppCodeNotIgnored(_0x14e5ed,_0x3ec9cf,_0x105bad){const _0x33480e=a279_0xa719;if(!_0x3ec9cf||_0x105bad||_0x14e5ed===_0x3ec9cf['value'])return;const _0x96b986=_0x14e5ed?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0x14e5ed+'\x22.':'No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.';throw CliErrors[_0x33480e(0x237)](_0x3ec9cf[_0x33480e(0x1e8)]+'='+_0x3ec9cf[_0x33480e(0x1fc)]+_0x33480e(0x1ef)+_0x96b986+'\x20'+('To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$'+_0x3ec9cf[_0x33480e(0x1e8)]+'\x22.'));}export function createPipelineEnv(_0xb6e6cf,_0x5175f8,_0x197093=[]){const _0x202096=a279_0xa719;return{'rawFlags':_0x5175f8,'args':_0x197093,'resolveAppCode':()=>_0xb6e6cf[_0x202096(0x1f8)],'resolveCookie':()=>_0xb6e6cf[_0x202096(0x1fd)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a279_0x1412e0(_0x5175f8),'defaultFormat':_0xb6e6cf[_0x202096(0x20e)],'defaultPageSize':_0xb6e6cf[_0x202096(0x236)],'defaultVerbose':_0xb6e6cf[_0x202096(0x206)],'apiDir':_0xb6e6cf[_0x202096(0x233)],'riskLevel':_0xb6e6cf[_0x202096(0x1ed)],'selectedAppName':_0xb6e6cf[_0x202096(0x200)],'mergedCli':{'defaultApp':_0xb6e6cf['defaultApp'],'currentApp':_0xb6e6cf['currentApp'],'appCode':_0xb6e6cf[_0x202096(0x1f8)],'apps':_0xb6e6cf[_0x202096(0x215)]}};}export function createRabetbaseRunnerAdapter(_0x1e3f84={}){const _0x303ff3=a279_0xa719;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x303ff3(0x1ec)](_0x103c7c=>PIPELINE_FLAG_NAMES['has'](_0x103c7c[_0x303ff3(0x1e8)]))['map'](({name:_0x189d44,type:_0x44a4cc,description:_0x46c324})=>({'name':_0x189d44,'type':_0x44a4cc,'description':_0x46c324})),'formatOutput':_0x1e3f84[_0x303ff3(0x20d)]??formatOutput,'getCommandLabel'(_0x167864){const _0x2e4662=_0x303ff3;return CLI_BIN_NAME+'\x20'+_0x167864[_0x2e4662(0x211)]+'\x20'+_0x167864[_0x2e4662(0x21d)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x105b0d,{def:_0x2e1f73}){const _0x5ba1a=_0x303ff3,_0x260ba3=_0x105b0d[_0x5ba1a(0x213)]('Edit\x20the\x20config\x20file\x20manually')?_0x5ba1a(0x1f4):'A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22'+_0x2e1f73['risk']+_0x5ba1a(0x226)+_0x5ba1a(0x1f4);return CliErrors['validation'](_0x105b0d+_0x5ba1a(0x1f7)+_0x260ba3);}},async 'prepare'(_0x290d8c,_0x5f1a52,_0x5c7d02,_0x15c7af){const _0x26a3a3=_0x303ff3,_0x2ae3f3=_0x5f1a52[_0x26a3a3(0x233)]||DEFAULT_API_DIR;resolveAliasToCode(_0x290d8c,_0x5c7d02,_0x2ae3f3,_0x15c7af);const _0x11ada8=resolveCommandAuthMode(_0x290d8c);let _0x29f733='';if(_0x11ada8!==_0x26a3a3(0x214)){_0x29f733=_0x5f1a52[_0x26a3a3(0x205)]()||'';if(!_0x29f733){if(_0x11ada8==='required')throw CliErrors[_0x26a3a3(0x22d)]();}else{const {setActiveCookie:_0x58068a}=await import(_0x26a3a3(0x216));_0x58068a(_0x29f733);}}const _0x30e835=_0x5f1a52[_0x26a3a3(0x1f6)]()??'';if(_0x290d8c['requiresAppCode']!==![]){const _0x4410c2=hasExplicitAppCode(_0x5c7d02,_0x5f1a52[_0x26a3a3(0x20f)]),_0x479e21=_0x5f1a52[_0x26a3a3(0x1fa)]?.[_0x26a3a3(0x215)]??{},_0x19c070=_0x5f1a52[_0x26a3a3(0x1f9)]||_0x5f1a52[_0x26a3a3(0x1fa)]?.[_0x26a3a3(0x21b)]||_0x5f1a52[_0x26a3a3(0x1fa)]?.[_0x26a3a3(0x1e6)];if(!_0x4410c2&&_0x19c070&&!_0x479e21[_0x19c070]){const _0x1f0f57=Object[_0x26a3a3(0x208)](_0x479e21);throw CliErrors[_0x26a3a3(0x237)]('App\x20\x22'+_0x19c070+_0x26a3a3(0x230),_0x1f0f57[_0x26a3a3(0x1f3)]>0x0?_0x26a3a3(0x223)+_0x1f0f57[_0x26a3a3(0x1e7)](',\x20')+_0x26a3a3(0x202)+CLI_BIN_NAME+'\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.':_0x26a3a3(0x1f2)+CLI_BIN_NAME+_0x26a3a3(0x227));}assertEnvAppCodeNotIgnored(_0x30e835,resolveEnvAppCode(),_0x4410c2);if(!_0x30e835){const _0x48dae4=Object[_0x26a3a3(0x208)](_0x479e21);if(!_0x19c070&&_0x48dae4['length']>0x1)throw CliErrors['configMissing'](_0x26a3a3(0x210)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20'+_0x48dae4[_0x26a3a3(0x1e7)](',\x20')+'.');throw CliErrors[_0x26a3a3(0x21c)](_0x26a3a3(0x203)+CLI_BIN_NAME+_0x26a3a3(0x1ff));}}return{'defaults':{'booleans':{'verbose':_0x5f1a52[_0x26a3a3(0x220)]},'numbers':{'pagesize':_0x5f1a52[_0x26a3a3(0x229)]}},'extras':{'appCode':_0x30e835,'cookie':_0x29f733,'apiDomain':_0x5f1a52[_0x26a3a3(0x1fb)](),'apiDir':_0x2ae3f3,'selectedAppName':_0x5f1a52['selectedAppName'],'mergedCli':_0x5f1a52[_0x26a3a3(0x1fa)]}};},'confirmHighRisk':_0x1e3f84[_0x303ff3(0x217)]??(async({env:_0x20c394,commandLabel:_0x139ced})=>{const _0x49592b=_0x303ff3;if(_0x20c394[_0x49592b(0x1eb)])throw CliErrors[_0x49592b(0x237)](_0x49592b(0x235)+_0x139ced+_0x49592b(0x1e5));await requireConfirmationPrompt({'lines':[_0x49592b(0x22b)+_0x139ced,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0xc6f5e2=>CliErrors[_0x49592b(0x1e9)](_0xc6f5e2)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const {clearActiveCookie:_0x53339d}=await import('../core/api-client.js');_0x53339d();}export async function finalizeRabetbaseRuntimeState(){const _0x46d33d=a279_0xa719;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x3e018},{initEnv:_0x1fc5e7}]=await Promise[_0x46d33d(0x22f)]([import(_0x46d33d(0x22a)),import('../constant/env.js')]);_0x3e018(),_0x1fc5e7(_0x46d33d(0x234));}}export async function runCommand(_0x32c5ef,_0x17edc8,_0x1e8309=terminalRunnerAdapter){const _0x3a4433=a279_0xa719;assertRejectedFlags(_0x32c5ef,_0x17edc8[_0x3a4433(0x20f)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x32c5ef)?withUpdateNotice(_0x32c5ef):_0x32c5ef,_0x17edc8,_0x1e8309);}function assertRejectedFlags(_0x243608,_0x2167ae){const _0x3c213d=a279_0xa719;for(const _0xa3ba71 of _0x243608[_0x3c213d(0x20b)]??[]){const _0x69225a=GLOBAL_FLAGS[_0x3c213d(0x22e)](_0x3b48c1=>_0x3b48c1[_0x3c213d(0x1e8)]===_0xa3ba71[_0x3c213d(0x1e8)]),_0x3bd4ca=new Set([_0xa3ba71['name'],toCamelCase(_0xa3ba71[_0x3c213d(0x1e8)]),_0x69225a?.['meowKey']]),_0x2a37f6=[..._0x3bd4ca][_0x3c213d(0x20a)](_0x256b82=>{if(!_0x256b82)return![];const _0x491ca2=_0x2167ae[_0x256b82];return _0x491ca2!==undefined&&_0x491ca2!==null&&_0x491ca2!==![];});if(_0x2a37f6)throw CliErrors['validation'](_0xa3ba71[_0x3c213d(0x228)],_0xa3ba71[_0x3c213d(0x218)]);}}function toCamelCase(_0x2fc00a){const _0x3bd5d6=a279_0xa719;return _0x2fc00a['replace'](/-([a-z])/g,(_0x1cf5c8,_0x7c6d89)=>_0x7c6d89[_0x3bd5d6(0x212)]());}function shouldAttachUpdateNotice(_0x37536a){const _0x583a35=a279_0xa719;if(_0x37536a[_0x583a35(0x1f0)]===![])return![];return!['update','schema',_0x583a35(0x21f)][_0x583a35(0x213)](_0x37536a['service']);}function withUpdateNotice(_0x271842){return{..._0x271842,async 'execute'(_0x4163d3){const _0x4c0edd=a279_0xa719,_0xada5e0=shouldResolveUpdateNotice(_0x4163d3)?resolveLatestUpdateNotice()[_0x4c0edd(0x1f1)](()=>null):Promise[_0x4c0edd(0x219)](null),_0x2a4281=await _0x271842['execute'](_0x4163d3);return attachUpdateNotice(_0x2a4281,await _0xada5e0);}};}function shouldResolveUpdateNotice(_0x40a1b8){const _0x421b86=a279_0xa719;return _0x40a1b8[_0x421b86(0x20e)]===_0x421b86(0x222)&&!_0x40a1b8[_0x421b86(0x1ee)];}function attachUpdateNotice(_0x126b5e,_0x4287ac){const _0x306500=a279_0xa719;if(!_0x4287ac||!_0x126b5e||typeof _0x126b5e!=='object')return _0x126b5e;const _0x188c5b=_0x126b5e,_0x166add=typeof _0x188c5b[_0x306500(0x232)]==='object'&&_0x188c5b[_0x306500(0x232)]!==null?_0x188c5b[_0x306500(0x232)]:{};return{..._0x188c5b,'_notice':{..._0x166add,'update':_0x4287ac}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x387b8e,_0x257df6){const _0x2f7f7f=a280_0x3354,_0x1c5740=_0x387b8e();while(!![]){try{const _0x55d645=-parseInt(_0x2f7f7f(0x149))/0x1*(parseInt(_0x2f7f7f(0x141))/0x2)+-parseInt(_0x2f7f7f(0x144))/0x3+-parseInt(_0x2f7f7f(0x146))/0x4+-parseInt(_0x2f7f7f(0x147))/0x5*(-parseInt(_0x2f7f7f(0x143))/0x6)+-parseInt(_0x2f7f7f(0x148))/0x7+parseInt(_0x2f7f7f(0x142))/0x8*(parseInt(_0x2f7f7f(0x145))/0x9)+-parseInt(_0x2f7f7f(0x14a))/0xa;if(_0x55d645===_0x257df6)break;else _0x1c5740['push'](_0x1c5740['shift']());}catch(_0x55f5a7){_0x1c5740['push'](_0x1c5740['shift']());}}}(a280_0xefce,0xab50c));import{buildSchemaPayload as a280_0x56513b}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a280_0xefce(){const _0x583610=['3167274eUzkKL','562749YmNHSd','783Pvuzxm','1920980HBKxNT','10jwoQKv','72653iEwNdi','2491WMbdRR','2988680vZbCFO','12IOTmET','58664yFYenZ'];a280_0xefce=function(){return _0x583610;};return a280_0xefce();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';function a280_0x3354(_0x3b1904,_0x4e7324){_0x3b1904=_0x3b1904-0x141;const _0xefce64=a280_0xefce();let _0x3354db=_0xefce64[_0x3b1904];return _0x3354db;}export async function buildSchemaPayload(){const {serviceRegistry:_0x4a0358,findDefinition:_0x92786c}=await import('../commands/registry.js');return a280_0x56513b({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x4a0358,'buildAllFlags':buildAllFlags,'findDefinition':_0x92786c});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x45e785,_0x1cb3d4){const _0x177319=a281_0x493f,_0xa936e5=_0x45e785();while(!![]){try{const _0x20aa3e=parseInt(_0x177319(0x114))/0x1*(parseInt(_0x177319(0x102))/0x2)+parseInt(_0x177319(0x109))/0x3+-parseInt(_0x177319(0x116))/0x4+parseInt(_0x177319(0x10f))/0x5+-parseInt(_0x177319(0x10d))/0x6*(parseInt(_0x177319(0x113))/0x7)+parseInt(_0x177319(0x110))/0x8*(parseInt(_0x177319(0x10c))/0x9)+-parseInt(_0x177319(0x107))/0xa;if(_0x20aa3e===_0x1cb3d4)break;else _0xa936e5['push'](_0xa936e5['shift']());}catch(_0x39500f){_0xa936e5['push'](_0xa936e5['shift']());}}}(a281_0x206b,0xd90ec));function a281_0x206b(){const _0x2d7263=['800256NbpdNU','has','filter','14RdkeXV','8plVwzU','version','154592bixbXL','validation','length','add','replace','toLowerCase','entries','251936LkfLQE','service','meowKey','help','$1-$2','7304290iIiytt','\x20--help`\x20to\x20view\x20the\x20current\x20command\x20contract.','922491GTBIEV','toUpperCase','Unsupported\x20flag\x20--','144IsDiOG','4939230aHoZwF','name','1944010OyYoue'];a281_0x206b=function(){return _0x2d7263;};return a281_0x206b();}import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function assertSupportedCommandFlags(_0x4fe96d,_0x4c3a4f){const _0x44ab84=a281_0x493f;if(!_0x4fe96d['strictFlags'])return;const _0x357731=new Set([_0x44ab84(0x105),_0x44ab84(0x115)]),_0x175ef7=GLOBAL_FLAGS[_0x44ab84(0x112)](_0x361deb=>PIPELINE_FLAG_NAMES[_0x44ab84(0x111)](_0x361deb[_0x44ab84(0x10e)]));for(const _0x407c9e of[..._0x4fe96d['flags'],..._0x175ef7]){addFlagCandidates(_0x357731,_0x407c9e);}for(const [_0x4015d3,_0x38b093]of Object[_0x44ab84(0x101)](_0x4c3a4f)){if(!isExplicitValue(_0x38b093)||_0x357731[_0x44ab84(0x111)](_0x4015d3))continue;const _0x56a507=GLOBAL_FLAGS['find'](_0x19aa0e=>_0x19aa0e[_0x44ab84(0x104)]===_0x4015d3)?.[_0x44ab84(0x10e)]??toKebabCase(_0x4015d3);throw CliErrors[_0x44ab84(0x117)](_0x44ab84(0x10b)+_0x56a507+'\x20for\x20`'+CLI_BIN_NAME+'\x20'+_0x4fe96d[_0x44ab84(0x103)]+'\x20'+_0x4fe96d['command']+'`.','Run\x20`'+CLI_BIN_NAME+'\x20'+_0x4fe96d[_0x44ab84(0x103)]+'\x20'+_0x4fe96d['command']+_0x44ab84(0x108));}}function addFlagCandidates(_0xf2034d,_0x23e637){const _0x24d7f8=a281_0x493f,_0x18481c=_0x24d7f8(0x104)in _0x23e637?[_0x23e637['name'],_0x23e637[_0x24d7f8(0x104)]]:[_0x23e637[_0x24d7f8(0x10e)],_0x23e637['alias']];for(const _0x155323 of _0x18481c){if(!_0x155323)continue;_0xf2034d[_0x24d7f8(0xfe)](_0x155323),_0xf2034d[_0x24d7f8(0xfe)](toCamelCase(_0x155323));}}function isExplicitValue(_0x2d318e){const _0x1d790e=a281_0x493f;return _0x2d318e!==undefined&&_0x2d318e!==null&&_0x2d318e!==![]&&(!Array['isArray'](_0x2d318e)||_0x2d318e[_0x1d790e(0xfd)]>0x0);}function toCamelCase(_0x67f5fe){const _0x14fcf2=a281_0x493f;return _0x67f5fe[_0x14fcf2(0xff)](/-([a-z])/g,(_0x10b739,_0x2c5517)=>_0x2c5517[_0x14fcf2(0x10a)]());}function a281_0x493f(_0x5eccff,_0x375a31){_0x5eccff=_0x5eccff-0xfd;const _0x206b95=a281_0x206b();let _0x493fdd=_0x206b95[_0x5eccff];return _0x493fdd;}function toKebabCase(_0x3ac8c3){const _0x18bde9=a281_0x493f;return _0x3ac8c3[_0x18bde9(0xff)](/([a-z0-9])([A-Z])/g,_0x18bde9(0x106))[_0x18bde9(0x100)]();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a282_0x1cb1(){var _0xa8137e=['104fanAIi','282996gohlAh','3068940BiMTAc','3212388bjrBby','955875ihNtHd','688gZzwjP','2887yjoMiv','10776474zjUJbb','10wCewNB','2007184UaKtbm'];a282_0x1cb1=function(){return _0xa8137e;};return a282_0x1cb1();}function a282_0x3110(_0x4f504d,_0x23e12e){_0x4f504d=_0x4f504d-0x199;var _0x1cb1b3=a282_0x1cb1();var _0x3110b1=_0x1cb1b3[_0x4f504d];return _0x3110b1;}(function(_0x1896ed,_0x722ea5){var _0x3c7c30=a282_0x3110,_0x516c2f=_0x1896ed();while(!![]){try{var _0x2d5d23=parseInt(_0x3c7c30(0x1a0))/0x1*(-parseInt(_0x3c7c30(0x19f))/0x2)+parseInt(_0x3c7c30(0x19e))/0x3+-parseInt(_0x3c7c30(0x199))/0x4+parseInt(_0x3c7c30(0x19c))/0x5+-parseInt(_0x3c7c30(0x19d))/0x6+parseInt(_0x3c7c30(0x19b))/0x7*(parseInt(_0x3c7c30(0x19a))/0x8)+-parseInt(_0x3c7c30(0x1a1))/0x9*(-parseInt(_0x3c7c30(0x1a2))/0xa);if(_0x2d5d23===_0x722ea5)break;else _0x516c2f['push'](_0x516c2f['shift']());}catch(_0x3b8f97){_0x516c2f['push'](_0x516c2f['shift']());}}}(a282_0x1cb1,0x98991));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.5.2-beta.
|
|
2
|
-
export declare const GIT_TAG = "v2.5.2-beta.
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-09-
|
|
1
|
+
export declare const VERSION = "2.5.2-beta.4";
|
|
2
|
+
export declare const GIT_TAG = "v2.5.2-beta.4";
|
|
3
|
+
export declare const GIT_COMMIT = "da135c5f";
|
|
4
|
+
export declare const BUILD_TIME = "2026-09-03T06:03:45.417Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a283_0x31f21f=a283_0xf7a6;(function(_0x3819ef,_0x142f95){const _0x4a2981=a283_0xf7a6,_0x7b330e=_0x3819ef();while(!![]){try{const _0x328e20=-parseInt(_0x4a2981(0x1fa))/0x1+parseInt(_0x4a2981(0x1f0))/0x2+-parseInt(_0x4a2981(0x1ef))/0x3+parseInt(_0x4a2981(0x1f2))/0x4+-parseInt(_0x4a2981(0x1f6))/0x5*(-parseInt(_0x4a2981(0x1f8))/0x6)+-parseInt(_0x4a2981(0x1f4))/0x7*(-parseInt(_0x4a2981(0x1f1))/0x8)+parseInt(_0x4a2981(0x1f9))/0x9;if(_0x328e20===_0x142f95)break;else _0x7b330e['push'](_0x7b330e['shift']());}catch(_0x37d41d){_0x7b330e['push'](_0x7b330e['shift']());}}}(a283_0x5b0d,0xd2571));function a283_0xf7a6(_0x5a9f64,_0x141c14){_0x5a9f64=_0x5a9f64-0x1ee;const _0x5b0d8b=a283_0x5b0d();let _0xf7a65c=_0x5b0d8b[_0x5a9f64];return _0xf7a65c;}export const VERSION=a283_0x31f21f(0x1f3);export const GIT_TAG=a283_0x31f21f(0x1f5);export const GIT_COMMIT=a283_0x31f21f(0x1f7);function a283_0x5b0d(){const _0x2dcdbd=['17584mjZXva','v2.5.2-beta.4','28345zjAalJ','da135c5f','552phCWmr','157896GfJNTz','412291AOcyYC','2026-09-03T06:03:45.417Z','4220091nhaOAn','2008832FEqxPn','1712GVvjXJ','2397860MbKdpt','2.5.2-beta.4'];a283_0x5b0d=function(){return _0x2dcdbd;};return a283_0x5b0d();}export const BUILD_TIME=a283_0x31f21f(0x1ee);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a284_0x18d48e=a284_0x52f6;function a284_0x52f6(_0x4e2d31,_0x1ffb7d){_0x4e2d31=_0x4e2d31-0x97;const _0x2f3e47=a284_0x2f3e();let _0x52f60d=_0x2f3e47[_0x4e2d31];return _0x52f60d;}(function(_0x465c9c,_0x19e5ff){const _0x3d74b6=a284_0x52f6,_0x540d3a=_0x465c9c();while(!![]){try{const _0x3be4ca=parseInt(_0x3d74b6(0xac))/0x1*(parseInt(_0x3d74b6(0xb0))/0x2)+parseInt(_0x3d74b6(0xa5))/0x3*(parseInt(_0x3d74b6(0xb4))/0x4)+-parseInt(_0x3d74b6(0x98))/0x5+parseInt(_0x3d74b6(0xaf))/0x6*(-parseInt(_0x3d74b6(0xb7))/0x7)+parseInt(_0x3d74b6(0xad))/0x8*(parseInt(_0x3d74b6(0x9b))/0x9)+parseInt(_0x3d74b6(0xa4))/0xa+-parseInt(_0x3d74b6(0x97))/0xb;if(_0x3be4ca===_0x19e5ff)break;else _0x540d3a['push'](_0x540d3a['shift']());}catch(_0x5c00b4){_0x540d3a['push'](_0x540d3a['shift']());}}}(a284_0x2f3e,0x67887));export const ROUTING_CATALOG_DIGEST=a284_0x18d48e(0x9a);export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id',a284_0x18d48e(0xa0)];export const ENABLED_REGION_VALUES=['cn','id'];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a284_0x18d48e(0xb3),'aliases':['china'],'serviceDomains':{'production':{'user':a284_0x18d48e(0xa7),'api':'https://api.lovrabet.com','runtime':a284_0x18d48e(0xab),'skill':a284_0x18d48e(0x9d),'kb':a284_0x18d48e(0xb5),'app':a284_0x18d48e(0xbc)},'daily':{'user':a284_0x18d48e(0xbb),'api':'https://daily-api.lovrabet.com','runtime':'https://daily-runtime.lovrabet.com','skill':a284_0x18d48e(0xb9),'kb':a284_0x18d48e(0x99),'app':a284_0x18d48e(0xb8)}},'cdn':{'libraries':a284_0x18d48e(0xa2),'lovrabet':a284_0x18d48e(0xb2)},'local':{'origin':a284_0x18d48e(0x9c)}},'id':{'enabled':!![],'label':a284_0x18d48e(0xae),'aliases':['indonesia'],'serviceDomains':{'production':{'user':a284_0x18d48e(0xa9),'api':a284_0x18d48e(0xbd),'runtime':a284_0x18d48e(0x9e),'skill':'https://skills.lovrabet.id','kb':'https://api.lovrabet.id','app':a284_0x18d48e(0xa6)}},'cdn':{'libraries':a284_0x18d48e(0xb6),'lovrabet':'https://g.lovrabet.id'},'local':{'origin':a284_0x18d48e(0xba)}},'global':{'enabled':![],'label':a284_0x18d48e(0xa8),'aliases':[],'serviceDomains':{'production':{'user':a284_0x18d48e(0xa3),'api':'https://api.lovrabet.ai','runtime':'https://runtime.lovrabet.ai','skill':a284_0x18d48e(0xb1),'kb':a284_0x18d48e(0xaa),'app':a284_0x18d48e(0xa1)}},'cdn':{'libraries':a284_0x18d48e(0xb6)},'local':{'origin':a284_0x18d48e(0x9f)}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};function a284_0x2f3e(){const _0x144bf6=['https://user.lovrabet.ai','6317320tNhIVH','60ZLBLLZ','https://app.lovrabet.id','https://user.lovrabet.com','Global','https://user.lovrabet.id','https://api.lovrabet.ai','https://runtime.lovrabet.com','1CgPwMX','344lgnyZh','Indonesia','20532TPsanT','774186sRJYpc','https://skills.lovrabet.ai','https://g.lovrabet.com','Mainland\x20China','19756HaYeXg','https://api.lovrabet.com','https://cdnjs.cloudflare.com/ajax/libs','938NTAbpP','https://daily.lovrabet.com','https://skills-daily.lovrabet.com','https://dev.lovrabet.id','https://user-daily.lovrabet.com','https://app.lovrabet.com','https://api.lovrabet.id','1456334IToepg','1070025KRfLbv','https://daily-api.lovrabet.com','3106fb4f7940b1f4446307e8a7f0c6f6e4a71affd6f8ebe7e5f23e055c08ca3f','23319HHgZHL','https://dev.lovrabet.com','https://skills.lovrabet.com','https://runtime.lovrabet.id','https://dev.lovrabet.ai','global','https://app.lovrabet.ai','https://g.alicdn.com/code/lib'];a284_0x2f3e=function(){return _0x144bf6;};return a284_0x2f3e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a285_0x5e89(){const _0x3e0e49=['apiDomain','userDomain','3249jxdFex','184884EPVpUj','1429318aqyxaf','libraries','419769UmFRVZ','1401842FwctmT','localDomain','4430SPbIEH','lovrabet','runtimeDomain','3PefvSD','12Nfcgeq','16QmEbWl','appDomain','276375dfnWCH','72958fZrDeM','5BjGsWN','lovrabet-routing/v1','6asZKiu','skillDomain','enterprise','kbDomain'];a285_0x5e89=function(){return _0x3e0e49;};return a285_0x5e89();}function a285_0x1ba8(_0x31e477,_0x467b2a){_0x31e477=_0x31e477-0x18e;const _0x5e8963=a285_0x5e89();let _0x1ba8a8=_0x5e8963[_0x31e477];return _0x1ba8a8;}const a285_0x3cbedd=a285_0x1ba8;(function(_0x5c6976,_0x49e384){const _0x24fb6e=a285_0x1ba8,_0xf6a160=_0x5c6976();while(!![]){try{const _0x2df2b9=-parseInt(_0x24fb6e(0x19e))/0x1*(-parseInt(_0x24fb6e(0x19d))/0x2)+parseInt(_0x24fb6e(0x198))/0x3*(parseInt(_0x24fb6e(0x18f))/0x4)+parseInt(_0x24fb6e(0x19c))/0x5*(-parseInt(_0x24fb6e(0x1a0))/0x6)+parseInt(_0x24fb6e(0x192))/0x7*(-parseInt(_0x24fb6e(0x19a))/0x8)+parseInt(_0x24fb6e(0x18e))/0x9*(-parseInt(_0x24fb6e(0x195))/0xa)+parseInt(_0x24fb6e(0x190))/0xb+parseInt(_0x24fb6e(0x199))/0xc*(parseInt(_0x24fb6e(0x193))/0xd);if(_0x2df2b9===_0x49e384)break;else _0xf6a160['push'](_0xf6a160['shift']());}catch(_0x2f1c35){_0xf6a160['push'](_0xf6a160['shift']());}}}(a285_0x5e89,0x200b8));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST='d83929cbced3959b68435d16131e5ff12a4bfc6095e6b7f15bada2bfd03a72cc';export const ENTERPRISE_ROUTING_PROTOCOL=a285_0x3cbedd(0x19f);export const ENTERPRISE_ROUTING_KIND=a285_0x3cbedd(0x1a2);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=['userDomain',a285_0x3cbedd(0x1a4),a285_0x3cbedd(0x197),'skillDomain',a285_0x3cbedd(0x1a3),'appDomain',a285_0x3cbedd(0x194),'certificateDomain'];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a285_0x3cbedd(0x1a5),a285_0x3cbedd(0x1a4),a285_0x3cbedd(0x197),a285_0x3cbedd(0x1a1),a285_0x3cbedd(0x1a3),a285_0x3cbedd(0x19b)];export const ENTERPRISE_ROUTING_CDN_FIELDS=[a285_0x3cbedd(0x191),a285_0x3cbedd(0x196)];export const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS=['libraries',a285_0x3cbedd(0x196)];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4305f9,_0x48ec2b){var _0x2a8a4f=a286_0x1d10,_0x4b0443=_0x4305f9();while(!![]){try{var _0x171cc7=parseInt(_0x2a8a4f(0x18c))/0x1+parseInt(_0x2a8a4f(0x190))/0x2+-parseInt(_0x2a8a4f(0x189))/0x3*(parseInt(_0x2a8a4f(0x18e))/0x4)+-parseInt(_0x2a8a4f(0x18f))/0x5+parseInt(_0x2a8a4f(0x192))/0x6+-parseInt(_0x2a8a4f(0x194))/0x7*(parseInt(_0x2a8a4f(0x195))/0x8)+-parseInt(_0x2a8a4f(0x197))/0x9*(parseInt(_0x2a8a4f(0x196))/0xa);if(_0x171cc7===_0x48ec2b)break;else _0x4b0443['push'](_0x4b0443['shift']());}catch(_0x166404){_0x4b0443['push'](_0x4b0443['shift']());}}}(a286_0x2c38,0x27911));import a286_0x4e0c98 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a286_0x2c38(){var _0x291011=['496002cgQVVI','\x20--help','1059600gbOEsj','green','42721KjzFTU','136vJSPeo','10mEkyTe','1557783kWSkua','\x20to\x20view\x20available\x20commands.','15WAwBVk','bold','log','237829NBJuLC','\x20\x20Use\x20','117444WJwBzE','383610YPytzr'];a286_0x2c38=function(){return _0x291011;};return a286_0x2c38();}function a286_0x1d10(_0x3a826f,_0xb10435){_0x3a826f=_0x3a826f-0x188;var _0x2c385d=a286_0x2c38();var _0x1d1062=_0x2c385d[_0x3a826f];return _0x1d1062;}export function showHelp(){var _0x404ca6=a286_0x1d10;console['log'](),console['log'](a286_0x4e0c98[_0x404ca6(0x193)][_0x404ca6(0x18a)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x404ca6(0x18b)](),console[_0x404ca6(0x18b)](_0x404ca6(0x18d)+a286_0x4e0c98[_0x404ca6(0x193)][_0x404ca6(0x18a)](CLI_BIN_NAME+_0x404ca6(0x191))+_0x404ca6(0x188)),console[_0x404ca6(0x18b)]();}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xb05073,_0x51307b){const _0x3db41d=a287_0x9fe3,_0x17e0fd=_0xb05073();while(!![]){try{const _0x38b489=-parseInt(_0x3db41d(0xce))/0x1*(-parseInt(_0x3db41d(0xc5))/0x2)+parseInt(_0x3db41d(0xd1))/0x3+-parseInt(_0x3db41d(0xd2))/0x4+parseInt(_0x3db41d(0xcd))/0x5+-parseInt(_0x3db41d(0xc3))/0x6*(parseInt(_0x3db41d(0xd4))/0x7)+parseInt(_0x3db41d(0xc8))/0x8*(-parseInt(_0x3db41d(0xc4))/0x9)+parseInt(_0x3db41d(0xc6))/0xa;if(_0x38b489===_0x51307b)break;else _0x17e0fd['push'](_0x17e0fd['shift']());}catch(_0x4fc761){_0x17e0fd['push'](_0x17e0fd['shift']());}}}(a287_0xb545,0x23639));import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0xf18085={}){const _0x34cb8c=a287_0x9fe3,_0x50f845=installBuiltinSkill(_0xf18085);if(_0x50f845['ok']){const _0x14ebd0=_0x50f845[_0x34cb8c(0xd0)]?_0x34cb8c(0xd3):_0x34cb8c(0xcc),_0x4fd67a=_0x50f845['installedPath']?'\x20at\x20'+_0x50f845[_0x34cb8c(0xbf)]:_0x34cb8c(0xcb);return console['log'](_0x34cb8c(0xc0)+_0x50f845[_0x34cb8c(0xc9)]+'\x20'+_0x14ebd0+_0x4fd67a),_0x50f845;}const _0x2709fd=_0x34cb8c(0xca)+(_0x50f845[_0x34cb8c(0xcf)]??_0x34cb8c(0xbc))+']\x20'+(_0x50f845[_0x34cb8c(0xc1)]??'Installation\x20failed')+'.\x20'+(_0x34cb8c(0xbd)+_0x50f845[_0x34cb8c(0xc7)]);if(_0x50f845['code']===_0x34cb8c(0xc2))throw new Error(_0x2709fd);return console[_0x34cb8c(0xbe)](_0x2709fd),_0x50f845;}function a287_0x9fe3(_0x574fa1,_0x134275){_0x574fa1=_0x574fa1-0xbc;const _0xb54517=a287_0xb545();let _0x9fe34d=_0xb54517[_0x574fa1];return _0x9fe34d;}function a287_0xb545(){const _0x3e2ea4=['error','SOURCE_INVALID','12hYzhQT','27KuNAJJ','206FZWSxB','1800520ewRFfV','repairCommand','253416TvqxVZ','skillVersion','[BUILTIN_SKILL_INSTALL_','\x20via\x20skills@latest','already\x20current','10440kbZgNP','839fYvZtV','code','changed','645849rNPxYm','934776PvrPvc','installed','35567BFrOBG','FAILED','Repair\x20with:\x20','warn','installedPath','Rabetbase\x20Built-in\x20Skill\x20'];a287_0xb545=function(){return _0x3e2ea4;};return a287_0xb545();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a288_0x5aa2(_0x2ba61a,_0x2fba3c){_0x2ba61a=_0x2ba61a-0xe2;const _0x3d1527=a288_0x3d15();let _0x5aa27f=_0x3d1527[_0x2ba61a];return _0x5aa27f;}(function(_0x4b3053,_0x58a714){const _0x5857f5=a288_0x5aa2,_0x225bad=_0x4b3053();while(!![]){try{const _0x2988c8=parseInt(_0x5857f5(0xe9))/0x1+-parseInt(_0x5857f5(0xf4))/0x2+-parseInt(_0x5857f5(0xe8))/0x3*(parseInt(_0x5857f5(0xea))/0x4)+-parseInt(_0x5857f5(0xe6))/0x5+-parseInt(_0x5857f5(0xe4))/0x6*(-parseInt(_0x5857f5(0xf2))/0x7)+-parseInt(_0x5857f5(0xf1))/0x8+parseInt(_0x5857f5(0xeb))/0x9*(parseInt(_0x5857f5(0xef))/0xa);if(_0x2988c8===_0x58a714)break;else _0x225bad['push'](_0x225bad['shift']());}catch(_0x76f4cd){_0x225bad['push'](_0x225bad['shift']());}}}(a288_0x3d15,0x93405));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x562fca,_0x79668b,_0x8e20cd){const _0x5386ad=a288_0x5aa2,_0x3644a2=normalizeText(_0x562fca[_0x5386ad(0xf0)],DESCRIPTION_MAX_LENGTH),_0x3aa7f5=_0x3644a2||normalizeText(defaultDescription(requireWriteRisk(_0x562fca),_0x79668b),DESCRIPTION_MAX_LENGTH);return{'operation':_0x79668b,'risk':requireWriteRisk(_0x562fca),'description':_0x3aa7f5,..._0x8e20cd?{'signal':_0x8e20cd}:{}};}function requireWriteRisk(_0x3c3b91){const _0x2b3f4c=a288_0x5aa2;if(_0x3c3b91['risk']==='write'||_0x3c3b91[_0x2b3f4c(0xed)]===_0x2b3f4c(0xe3))return _0x3c3b91[_0x2b3f4c(0xed)];throw new Error(_0x2b3f4c(0xec));}function defaultDescription(_0x59236d,_0x3c8275){const _0x3f6e99=a288_0x5aa2;if(_0x59236d===_0x3f6e99(0xe3))return _0x3f6e99(0xee)+_0x3c8275+_0x3f6e99(0xe5);return _0x3f6e99(0xe7)+_0x3c8275+_0x3f6e99(0xe2);}function a288_0x3d15(){const _0x307c3a=['50OGNPka','confirmationDescription','3981744ePsSWR','35nEtxlJ','string','1568634PLUeWY','.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.','high-risk-write','587256bxvnqx','.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.','5919125HSvQvx','This\x20will\x20run\x20the\x20write\x20','12qANOzR','905060tBIuio','374764MNQmJO','3688785GPPAZI','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','risk','This\x20will\x20run\x20the\x20high-risk\x20write\x20'];a288_0x3d15=function(){return _0x307c3a;};return a288_0x3d15();}function normalizeText(_0x27176b,_0x42fcff){const _0x372e18=a288_0x5aa2;if(typeof _0x27176b!==_0x372e18(0xf3))return'';return _0x27176b['replace'](/[\u0000-\u001f\u007f]+/g,'\x20')['replace'](/\s+/g,'\x20')['trim']()['slice'](0x0,_0x42fcff);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x375bdb,_0x5387a3){var _0x21576d=a289_0x5a12,_0x49df1e=_0x375bdb();while(!![]){try{var _0x4e37a4=parseInt(_0x21576d(0x144))/0x1+parseInt(_0x21576d(0x154))/0x2+-parseInt(_0x21576d(0x146))/0x3+parseInt(_0x21576d(0x149))/0x4+-parseInt(_0x21576d(0x151))/0x5+parseInt(_0x21576d(0x14d))/0x6*(parseInt(_0x21576d(0x145))/0x7)+-parseInt(_0x21576d(0x14f))/0x8;if(_0x4e37a4===_0x5387a3)break;else _0x49df1e['push'](_0x49df1e['shift']());}catch(_0x500ede){_0x49df1e['push'](_0x49df1e['shift']());}}}(a289_0x134f,0x3d8ce));function a289_0x5a12(_0x5c8e10,_0x4418ca){_0x5c8e10=_0x5c8e10-0x144;var _0x134f90=a289_0x134f();var _0x5a12f6=_0x134f90[_0x5c8e10];return _0x5a12f6;}export function canonicalRabetbaseOperation(_0x2dfa7c){var _0x566cf9=a289_0x5a12;return[_0x2dfa7c[_0x566cf9(0x147)],..._0x2dfa7c[_0x566cf9(0x153)][_0x566cf9(0x150)]()[_0x566cf9(0x148)](/\s+/)]['filter'](Boolean)[_0x566cf9(0x14e)]('.');}export function createRabetbaseWriteMetadata(_0x24834a,_0x4cfbcb,_0x275cbf,_0x2150b8){var _0x26d2c9=a289_0x5a12;if(_0x2150b8||_0x275cbf['ok']!==!![]||_0x24834a[_0x26d2c9(0x152)]!==_0x26d2c9(0x14b)&&_0x24834a['risk']!==_0x26d2c9(0x14c))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x26d2c9(0x14a),'operation':_0x4cfbcb,'risk':_0x24834a[_0x26d2c9(0x152)]}}};}function a289_0x134f(){var _0x5c11f9=['rabetbase.write.completed','write','high-risk-write','2979960YFaGiQ','join','3628480iOcmdm','trim','2124620zyKHdq','risk','command','774530ZaqKQl','328620DIJwiE','7OIvKOS','1083813YNaZWD','service','split','1117280MmCuqa'];a289_0x134f=function(){return _0x5c11f9;};return a289_0x134f();}
|