@lovrabet/rabetbase-cli 2.5.2-beta.3 → 2.5.2-beta.5
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.d.ts +6 -5
- 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
|
+
const a268_0x5dfc68=a268_0x5340;(function(_0x93dede,_0x4a3ce3){const _0x7abe72=a268_0x5340,_0x1aa4c6=_0x93dede();while(!![]){try{const _0x297549=-parseInt(_0x7abe72(0x130))/0x1*(parseInt(_0x7abe72(0x141))/0x2)+parseInt(_0x7abe72(0x12a))/0x3*(-parseInt(_0x7abe72(0x126))/0x4)+parseInt(_0x7abe72(0x112))/0x5+-parseInt(_0x7abe72(0x122))/0x6*(parseInt(_0x7abe72(0x10b))/0x7)+parseInt(_0x7abe72(0x159))/0x8+-parseInt(_0x7abe72(0x109))/0x9+parseInt(_0x7abe72(0x133))/0xa;if(_0x297549===_0x4a3ce3)break;else _0x1aa4c6['push'](_0x1aa4c6['shift']());}catch(_0xfb9069){_0x1aa4c6['push'](_0x1aa4c6['shift']());}}}(a268_0x5d97,0xdb757));const MYBATIS_OUTER_TAGS=new Map([[a268_0x5dfc68(0x136),a268_0x5dfc68(0x101)],[a268_0x5dfc68(0x118),a268_0x5dfc68(0x143)],[a268_0x5dfc68(0x15a),'UPDATE'],[a268_0x5dfc68(0x12b),a268_0x5dfc68(0x13a)]]),MYBATIS_DYNAMIC_TAGS=new Set(['if',a268_0x5dfc68(0xfe),a268_0x5dfc68(0x117),'choose',a268_0x5dfc68(0x13b),a268_0x5dfc68(0x144),a268_0x5dfc68(0x140),a268_0x5dfc68(0x105),a268_0x5dfc68(0x146),a268_0x5dfc68(0x134),a268_0x5dfc68(0x153)]),MYBATIS_BRANCH_TAGS=new Set(['if',a268_0x5dfc68(0x117),a268_0x5dfc68(0x10c),a268_0x5dfc68(0x13b),a268_0x5dfc68(0x144)]);export const MYBATIS_DYNAMIC_START_MARKER='__RABETBASE_MYBATIS_DYNAMIC_START__';export const MYBATIS_DYNAMIC_END_MARKER=a268_0x5dfc68(0x12e);export const MYBATIS_INCLUDE_MARKER=a268_0x5dfc68(0x10d);const UNRESOLVED_SQL_FRAGMENT=a268_0x5dfc68(0x108),MYBATIS_OUTER_TAG_PATTERN=new RegExp(a268_0x5dfc68(0x138)+[...MYBATIS_OUTER_TAGS[a268_0x5dfc68(0x13d)]()][a268_0x5dfc68(0x11a)]('|')+a268_0x5dfc68(0x100),'i');export function normalizeSqlForStaticAnalysis(_0x4c9cb4){const _0x38988f=a268_0x5dfc68,_0x45e79c=typeof _0x4c9cb4==='string'?_0x4c9cb4:'';if(!startsWithMybatisStatementWrapper(_0x45e79c))return{'sql':_0x45e79c,'mode':_0x38988f(0x10f)};let _0x4aa367=0x0,_0x444a77='',_0x3102f9,_0x2c0dcb=![],_0x2b39fb=![];const _0xcaac8a=[];while(_0x4aa367<_0x45e79c[_0x38988f(0x142)]){if(_0x45e79c[_0x38988f(0x104)](_0x38988f(0x11e),_0x4aa367)){const _0x47597b=_0x45e79c['indexOf']('-->',_0x4aa367+0x4);if(_0x47597b<0x0)return invalidMybatisSource(_0x38988f(0x111));_0x444a77+='\x20',_0x4aa367=_0x47597b+0x3;continue;}if(_0x45e79c[_0x38988f(0x104)](_0x38988f(0x14d),_0x4aa367)){if(!_0x2c0dcb||_0x2b39fb)return invalidMybatisSource(_0x38988f(0x129));const _0x11e018=_0x45e79c[_0x38988f(0x147)](_0x38988f(0x114),_0x4aa367+0x9);if(_0x11e018<0x0)return invalidMybatisSource(_0x38988f(0x14f));_0x444a77+=_0x45e79c[_0x38988f(0x148)](_0x4aa367+0x9,_0x11e018),_0x4aa367=_0x11e018+0x3;continue;}if(_0x45e79c['startsWith']('<?',_0x4aa367)){if(_0x2c0dcb)return invalidMybatisSource(_0x38988f(0x106));const _0x263822=_0x45e79c['indexOf']('?>',_0x4aa367+0x2);if(_0x263822<0x0)return invalidMybatisSource(_0x38988f(0x152));_0x444a77+='\x20',_0x4aa367=_0x263822+0x2;continue;}if(_0x45e79c[_0x4aa367]!=='<'){const _0x3f1355=_0x45e79c[_0x38988f(0x147)]('<',_0x4aa367),_0x1b09b5=_0x3f1355<0x0?_0x45e79c[_0x38988f(0x142)]:_0x3f1355,_0xbbc1ed=_0x45e79c[_0x38988f(0x148)](_0x4aa367,_0x1b09b5);if((!_0x2c0dcb||_0x2b39fb)&&_0xbbc1ed[_0x38988f(0x140)]())return invalidMybatisSource(_0x38988f(0x151));if(_0x2c0dcb&&!_0x2b39fb){const _0x9bda5b=decodeXmlEntities(_0xbbc1ed);if(_0x9bda5b===null)return invalidMybatisSource(_0x38988f(0x125));_0x444a77+=_0x9bda5b;}else _0x444a77+='\x20';_0x4aa367=_0x1b09b5;continue;}const _0x465759=findXmlTagEnd(_0x45e79c,_0x4aa367);if(_0x465759<0x0)return invalidMybatisSource(_0x38988f(0x128));const _0x251a87=_0x45e79c[_0x38988f(0x148)](_0x4aa367,_0x465759+0x1),_0x209e53=/^<\s*(\/?)\s*([A-Za-z][\w:-]*)([\s\S]*?)(\/?)\s*>$/[_0x38988f(0x155)](_0x251a87);if(!_0x209e53)return invalidMybatisSource('Invalid\x20MyBatis\x20XML\x20tag.');const _0x1c8693=_0x209e53[0x1]==='/',_0x5bf268=_0x209e53[0x2]??'',_0x10141c=_0x5bf268['toLowerCase'](),_0x58798f=_0x209e53[0x3]??'',_0x8e235d=_0x209e53[0x4]==='/',_0x2aad9a=MYBATIS_OUTER_TAGS[_0x38988f(0x127)](_0x10141c);if(!_0x2aad9a&&!MYBATIS_DYNAMIC_TAGS[_0x38988f(0x120)](_0x10141c))return invalidMybatisSource(_0x38988f(0x10a)+_0x10141c+'>.');if(!_0x2aad9a&&_0x5bf268!==_0x10141c)return invalidMybatisSource('MyBatis\x20dynamic\x20tag\x20names\x20must\x20be\x20lowercase:\x20<'+_0x5bf268+'>.');if(_0x1c8693){if(_0x58798f[_0x38988f(0x140)]()||_0x8e235d)return invalidMybatisSource(_0x38988f(0x13e)+_0x5bf268+'>.');const _0x1d9e23=_0xcaac8a['at'](-0x1);if(!_0x1d9e23||(_0x1d9e23[_0x38988f(0x12c)]?_0x1d9e23[_0x38988f(0x145)]!==_0x10141c:_0x1d9e23[_0x38988f(0x110)]!==_0x5bf268))return invalidMybatisSource('Mismatched\x20MyBatis\x20XML\x20closing\x20tag:\x20</'+_0x5bf268+'>.');_0xcaac8a[_0x38988f(0x11f)]();if(_0x1d9e23['outer'])_0x2b39fb=!![];_0x444a77+=MYBATIS_BRANCH_TAGS[_0x38988f(0x120)](_0x10141c)?'\x20'+MYBATIS_DYNAMIC_END_MARKER+'\x20':'\x20';}else{if(!hasWellFormedXmlAttributes(_0x58798f))return invalidMybatisSource(_0x38988f(0x150)+_0x5bf268+'>.');if(_0x10141c==='property'&&(!_0x8e235d||_0xcaac8a['at'](-0x1)?.[_0x38988f(0x145)]!==_0x38988f(0x134)))return invalidMybatisSource(_0x38988f(0x121));if(_0x2aad9a){if(_0x2c0dcb||_0xcaac8a[_0x38988f(0x142)]>0x0)return invalidMybatisSource(_0x38988f(0x157));_0x2c0dcb=!![],_0x2b39fb=_0x8e235d,_0x3102f9=_0x2aad9a;}else{if(!_0x2c0dcb||_0x2b39fb)return invalidMybatisSource(_0x38988f(0x156)+_0x5bf268+'>.');}_0x444a77+=_0x10141c===_0x38988f(0xfe)?_0x38988f(0x124):_0x10141c===_0x38988f(0x105)?'\x20SET\x20':_0x10141c===_0x38988f(0x134)?'\x20'+MYBATIS_INCLUDE_MARKER+'\x20':MYBATIS_BRANCH_TAGS[_0x38988f(0x120)](_0x10141c)&&!_0x8e235d?'\x20'+MYBATIS_DYNAMIC_START_MARKER+'\x20':'\x20',!_0x8e235d&&_0xcaac8a['push']({'rawName':_0x5bf268,'tagName':_0x10141c,'outer':!!_0x2aad9a});}_0x4aa367=_0x465759+0x1;}if(_0xcaac8a['length']>0x0)return invalidMybatisSource(_0x38988f(0x14c)+_0xcaac8a['at'](-0x1)?.['rawName']+'>.');if(!_0x2c0dcb||!_0x2b39fb)return invalidMybatisSource(_0x38988f(0x132));return{'sql':_0x444a77[_0x38988f(0x140)](),'mode':_0x38988f(0x103),..._0x3102f9?{'statementType':_0x3102f9}:{}};}function hasWellFormedXmlAttributes(_0x591a31){const _0x28c84c=a268_0x5dfc68;let _0x49674f=0x0;const _0x189f6f=new Set();while(_0x49674f<_0x591a31[_0x28c84c(0x142)]){while(_0x49674f<_0x591a31[_0x28c84c(0x142)]&&/\s/[_0x28c84c(0x14b)](_0x591a31[_0x49674f]??''))_0x49674f+=0x1;if(_0x49674f>=_0x591a31[_0x28c84c(0x142)])return!![];const _0x4133ff=/^[A-Za-z_:][\w:.-]*/[_0x28c84c(0x155)](_0x591a31[_0x28c84c(0x148)](_0x49674f)),_0x1ce4af=_0x4133ff?.[0x0];if(!_0x1ce4af||_0x189f6f[_0x28c84c(0x120)](_0x1ce4af))return![];_0x189f6f[_0x28c84c(0x115)](_0x1ce4af),_0x49674f+=_0x1ce4af['length'];while(_0x49674f<_0x591a31[_0x28c84c(0x142)]&&/\s/[_0x28c84c(0x14b)](_0x591a31[_0x49674f]??''))_0x49674f+=0x1;if(_0x591a31[_0x49674f]!=='=')return![];_0x49674f+=0x1;while(_0x49674f<_0x591a31['length']&&/\s/[_0x28c84c(0x14b)](_0x591a31[_0x49674f]??''))_0x49674f+=0x1;const _0x36504d=_0x591a31[_0x49674f];if(_0x36504d!=='\x22'&&_0x36504d!=='\x27')return![];_0x49674f+=0x1;const _0xb66cfe=_0x591a31[_0x28c84c(0x147)](_0x36504d,_0x49674f);if(_0xb66cfe<0x0)return![];if(decodeXmlEntities(_0x591a31[_0x28c84c(0x148)](_0x49674f,_0xb66cfe))===null)return![];_0x49674f=_0xb66cfe+0x1;}return!![];}function startsWithMybatisStatementWrapper(_0x5a3a3f){const _0x2f8863=a268_0x5dfc68;let _0x2088d2=0x0;const _0x1ad3e3=()=>{const _0x3295e4=a268_0x5340;while(_0x2088d2<_0x5a3a3f[_0x3295e4(0x142)]&&/\s/[_0x3295e4(0x14b)](_0x5a3a3f[_0x2088d2]??''))_0x2088d2+=0x1;};_0x1ad3e3();while(_0x2088d2<_0x5a3a3f[_0x2f8863(0x142)]){if(_0x5a3a3f[_0x2f8863(0x104)](_0x2f8863(0x11e),_0x2088d2)){const _0x11a290=_0x5a3a3f['indexOf'](_0x2f8863(0x13f),_0x2088d2+0x4);if(_0x11a290<0x0)return!![];_0x2088d2=_0x11a290+0x3,_0x1ad3e3();continue;}if(_0x5a3a3f[_0x2f8863(0x104)]('<?',_0x2088d2)){const _0x1e5aaf=_0x5a3a3f[_0x2f8863(0x147)]('?>',_0x2088d2+0x2);if(_0x1e5aaf<0x0)return!![];_0x2088d2=_0x1e5aaf+0x2,_0x1ad3e3();continue;}break;}return MYBATIS_OUTER_TAG_PATTERN[_0x2f8863(0x14b)](_0x5a3a3f['slice'](_0x2088d2));}function invalidMybatisSource(_0x2b0a2d){const _0x75fce7=a268_0x5dfc68;return{'sql':'','mode':_0x75fce7(0x103),'error':_0x2b0a2d};}function findXmlTagEnd(_0x56cbcf,_0x3d2eec){let _0x1f2db6;for(let _0x49a637=_0x3d2eec+0x1;_0x49a637<_0x56cbcf['length'];_0x49a637+=0x1){const _0x10b7cd=_0x56cbcf[_0x49a637];if(_0x1f2db6){if(_0x10b7cd===_0x1f2db6)_0x1f2db6=undefined;continue;}if(_0x10b7cd==='\x22'||_0x10b7cd==='\x27'){_0x1f2db6=_0x10b7cd;continue;}if(_0x10b7cd==='>')return _0x49a637;}return-0x1;}function decodeXmlEntities(_0x2b9ecc){const _0x5c5f93=a268_0x5dfc68;let _0xc5e7fc=![];const _0x3bed07=_0x2b9ecc[_0x5c5f93(0x113)](/&(?:#x[0-9a-f]+;|#[0-9]+;|[A-Za-z_:][\w:.-]*;)?/g,_0x52885e=>{const _0x446936=_0x5c5f93;if(_0x52885e===_0x446936(0x135))return'<';if(_0x52885e===_0x446936(0x14e))return'>';if(_0x52885e==='"')return'\x22';if(_0x52885e===''')return'\x27';if(_0x52885e===_0x446936(0x107))return'&';const _0x5efb53=/^&#(?:x([0-9a-f]+)|([0-9]+));$/[_0x446936(0x155)](_0x52885e);if(_0x5efb53){const _0x3523fd=_0x5efb53[0x1],_0x6eb945=_0x5efb53[0x2],_0x4e17c5=Number['parseInt'](_0x3523fd??_0x6eb945??'',_0x3523fd?0x10:0xa);if(isValidXmlCharacter(_0x4e17c5))return String['fromCodePoint'](_0x4e17c5);}return _0xc5e7fc=!![],'';});return _0xc5e7fc?null:_0x3bed07;}function isValidXmlCharacter(_0x5e3144){return _0x5e3144===0x9||_0x5e3144===0xa||_0x5e3144===0xd||_0x5e3144>=0x20&&_0x5e3144<=0xd7ff||_0x5e3144>=0xe000&&_0x5e3144<=0xfffd||_0x5e3144>=0x10000&&_0x5e3144<=0x10ffff;}export function detectSqlType(_0x1dc2e7){return detectNormalizedSqlType(normalizeSqlForStaticAnalysis(_0x1dc2e7));}function detectNormalizedSqlType(_0x56ce25){const _0x4e884a=a268_0x5dfc68;if(_0x56ce25[_0x4e884a(0x154)])return{'type':_0x4e884a(0xff),'isSelectOnly':![],'isDangerous':![],'reason':_0x56ce25[_0x4e884a(0x154)]};if(!_0x56ce25[_0x4e884a(0x10f)]['trim']())return{'type':_0x4e884a(0xff),'isSelectOnly':![],'isDangerous':![],'reason':_0x4e884a(0x102)};const _0xa07679=stripStaticAnalysisMarkers(_0x56ce25[_0x4e884a(0x10f)])[_0x4e884a(0x113)](/#\{[^}]*\}/g,'?')[_0x4e884a(0x113)](/\$\{[^}]*\}/g,'?')[_0x4e884a(0x113)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x4e884a(0x113)](/\/\*[\s\S]*?\*\//g,'')[_0x4e884a(0x140)](),_0x1d70ee=_0xa07679['split']('\x0a');let _0x189f59='';for(const _0x4e9c80 of _0x1d70ee){const _0x2bbcf1=_0x4e9c80[_0x4e884a(0x140)]();if(!_0x2bbcf1||_0x2bbcf1['startsWith']('--')||_0x2bbcf1[_0x4e884a(0x104)]('/*'))continue;_0x189f59=_0x2bbcf1;break;}const _0x545840=_0x189f59[_0x4e884a(0x13c)](),_0x3e9ffb=_0x56ce25['statementType'],_0x4046e8=maskSqlTextForBlockedKeywordScan(_0xa07679),_0x24b3e5=/\b(DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x4e884a(0x14b)](_0x4046e8);if(_0x3e9ffb==='SELECT'||!_0x3e9ffb&&(_0x545840[_0x4e884a(0x104)]('SELECT')||_0x545840['startsWith']('WITH'))){const _0x4d3f35=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i['test'](_0xa07679);return{'type':_0x4e884a(0x101),'isSelectOnly':!_0x4d3f35,'isDangerous':_0x4d3f35,'reason':_0x4d3f35?_0x4e884a(0x149):undefined};}if(_0x3e9ffb==='INSERT'||!_0x3e9ffb&&_0x545840[_0x4e884a(0x104)]('INSERT'))return{'type':_0x4e884a(0x143),'isSelectOnly':![],'isDangerous':_0x24b3e5,'reason':_0x24b3e5?'SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements':undefined};if(_0x3e9ffb===_0x4e884a(0x12f)||!_0x3e9ffb&&_0x545840[_0x4e884a(0x104)](_0x4e884a(0x12f)))return{'type':_0x4e884a(0x12f),'isSelectOnly':![],'isDangerous':_0x24b3e5,'reason':_0x24b3e5?_0x4e884a(0x10e):undefined};if(_0x3e9ffb===_0x4e884a(0x13a)||!_0x3e9ffb&&_0x545840[_0x4e884a(0x104)]('DELETE'))return{'type':_0x4e884a(0x13a),'isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0x545840))return{'type':_0x4e884a(0x158),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':_0x4e884a(0xff),'isSelectOnly':![],'isDangerous':![]};}function a268_0x5340(_0x191b2b,_0x1f7f0f){_0x191b2b=_0x191b2b-0xfd;const _0x5d979e=a268_0x5d97();let _0x534085=_0x5d979e[_0x191b2b];return _0x534085;}function stripStaticAnalysisMarkers(_0x21eaf1){const _0x5ebd9d=a268_0x5dfc68;return _0x21eaf1[_0x5ebd9d(0x15b)](MYBATIS_DYNAMIC_START_MARKER,'\x20')[_0x5ebd9d(0x15b)](MYBATIS_DYNAMIC_END_MARKER,'\x20')[_0x5ebd9d(0x15b)](MYBATIS_INCLUDE_MARKER,'\x20'+UNRESOLVED_SQL_FRAGMENT+'\x20');}function maskSqlTextForBlockedKeywordScan(_0x1bea3a){const _0x5eb6b5=a268_0x5dfc68;return _0x1bea3a['replace'](/'(?:''|\\.|[^'])*'/g,'\x20')['replace'](/"(?:""|\\.|[^"])*"/g,'\x20')[_0x5eb6b5(0x113)](/`(?:``|\\.|[^`])*`/g,'\x20')[_0x5eb6b5(0x113)](/--.*$/gm,'\x20')[_0x5eb6b5(0x113)](/#.*$/gm,'\x20')['replace'](/\/\*[\s\S]*?\*\//g,'\x20');}function extractTables(_0x3a0585){const _0x87b74b=a268_0x5dfc68,_0x45f03c=_0x3a0585[_0x87b74b(0x113)](/#\{[^}]*\}/g,'?')[_0x87b74b(0x113)](/\$\{[^}]*\}/g,'?')[_0x87b74b(0x113)](/'[^']*'/g,'\x27\x27')['replace'](/--.*$/gm,'')[_0x87b74b(0x113)](/\/\*[\s\S]*?\*\//g,''),_0x2ee452=[],_0x14161b=_0x45f03c['match'](/FROM\s+([^\s,)(]+)/i);addTable(_0x2ee452,_0x14161b?.[0x1]);for(const _0x113ad0 of _0x45f03c[_0x87b74b(0x139)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){addTable(_0x2ee452,_0x113ad0[0x1]);}const _0x25d403=_0x45f03c['match'](/INTO\s+([^\s(]+)/i);addTable(_0x2ee452,_0x25d403?.[0x1]);const _0x166c1b=_0x45f03c[_0x87b74b(0x137)](/UPDATE\s+([^\s,)(]+)/i);return addTable(_0x2ee452,_0x166c1b?.[0x1]),_0x2ee452;}function a268_0x5d97(){const _0x3b14b5=['537276PFRgLu','push','\x20WHERE\x20','Invalid\x20XML\x20entity\x20reference.','10028hnynRe','get','Unterminated\x20MyBatis\x20XML\x20tag.','CDATA\x20sections\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','726UyscFT','delete','outer','\x20query\x20targeting\x20','__RABETBASE_MYBATIS_DYNAMIC_END__','UPDATE','3wQeXNx','\x20with\x20parameters:\x20','MyBatis\x20XML\x20must\x20contain\x20exactly\x20one\x20complete\x20statement\x20wrapper.','28202470uLBGAU','include','<','select','match','^<\x5cs*(?:','matchAll','DELETE','when','toUpperCase','keys','Invalid\x20MyBatis\x20XML\x20closing\x20tag:\x20</','-->','trim','987982EQwxqS','length','INSERT','otherwise','tagName','bind','indexOf','slice','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','unknown\x20table(s)','test','Unclosed\x20MyBatis\x20XML\x20tag:\x20<','<![CDATA[','>','Unterminated\x20CDATA\x20section.','Invalid\x20attributes\x20on\x20MyBatis\x20XML\x20tag:\x20<','SQL\x20text\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','Unterminated\x20XML\x20declaration.','property','error','exec','MyBatis\x20dynamic\x20tag\x20must\x20be\x20inside\x20the\x20statement\x20wrapper:\x20<','Multiple\x20MyBatis\x20statement\x20wrappers\x20are\x20not\x20supported.','DDL','8984400JyTmdx','update','replaceAll','from','where','UNKNOWN',')\x5cb','SELECT','SQL\x20content\x20is\x20empty','mybatisXml','startsWith','set','XML\x20declarations\x20must\x20precede\x20the\x20MyBatis\x20statement\x20wrapper.','&','__RABETBASE_UNRESOLVED_SQL_FRAGMENT__','10263762QXQXNC','Unsupported\x20MyBatis\x20XML\x20tag:\x20<','56KlTMVp','choose','__RABETBASE_MYBATIS_INCLUDE_UNRESOLVED__','SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements','sql','rawName','Unterminated\x20XML\x20comment.','4505295pAhzbm','replace',']]>','add','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','foreach','insert','reason','join','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','type','includes','<!--','pop','has','MyBatis\x20<property>\x20must\x20be\x20a\x20self-closing\x20direct\x20child\x20of\x20<include>.'];a268_0x5d97=function(){return _0x3b14b5;};return a268_0x5d97();}function addTable(_0x695ded,_0x129f99){const _0x4a8cdb=a268_0x5dfc68,_0x33e3f0=_0x129f99?.[_0x4a8cdb(0x113)](/[`"]/g,'');_0x33e3f0&&_0x33e3f0!==UNRESOLVED_SQL_FRAGMENT&&!_0x695ded[_0x4a8cdb(0x11d)](_0x33e3f0)&&_0x695ded[_0x4a8cdb(0x123)](_0x33e3f0);}function extractParameters(_0x46090d){const _0x2d7d21=a268_0x5dfc68,_0x15f9f0=new Set();for(const _0x48b84a of _0x46090d[_0x2d7d21(0x139)](/[#$]\{\s*([A-Za-z_][\w.]*)\s*(?=[,}])/g)){if(_0x48b84a[0x1])_0x15f9f0[_0x2d7d21(0x115)](_0x48b84a[0x1]);}return Array[_0x2d7d21(0xfd)](_0x15f9f0);}export function validateSql(_0x317ece){const _0x13e0a1=a268_0x5dfc68,_0x53952c=normalizeSqlForStaticAnalysis(_0x317ece),_0x44e8d5=detectNormalizedSqlType(_0x53952c),_0x10de1c=stripStaticAnalysisMarkers(_0x53952c[_0x13e0a1(0x10f)]),_0x1cfc6c=_0x53952c[_0x13e0a1(0x154)]?[]:extractTables(_0x10de1c),_0x45319f=_0x53952c['error']?[]:extractParameters(_0x10de1c);if(_0x44e8d5['isDangerous'])return{'valid':![],'sqlType':_0x44e8d5,'tables':_0x1cfc6c,'parameters':_0x45319f,'message':_0x44e8d5[_0x13e0a1(0x119)]||_0x44e8d5['type']+_0x13e0a1(0x116)};if(_0x44e8d5[_0x13e0a1(0x11c)]===_0x13e0a1(0xff))return{'valid':![],'sqlType':_0x44e8d5,'tables':_0x1cfc6c,'parameters':_0x45319f,'message':_0x53952c['error']?'Unable\x20to\x20detect\x20SQL\x20type.\x20'+_0x53952c['error']:_0x13e0a1(0x11b)};return{'valid':!![],'sqlType':_0x44e8d5,'tables':_0x1cfc6c,'parameters':_0x45319f,'message':_0x44e8d5[_0x13e0a1(0x11c)]+_0x13e0a1(0x12d)+(_0x1cfc6c['length']?_0x1cfc6c[_0x13e0a1(0x11a)](',\x20'):_0x13e0a1(0x14a))+(_0x45319f[_0x13e0a1(0x142)]?_0x13e0a1(0x131)+_0x45319f[_0x13e0a1(0x11a)](',\x20'):'')};}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a269_0x2daf(){const _0xad9b86=['Network\x20error:\x20','Missing\x20required\x20flag:\x20--','\x20workspace\x20add\x20<name>\x20--appcode\x20<code>\x20--global`\x20registers\x20a\x20reusable\x20global\x20app\x20profile.','6065600NdGlKh','network_error','11334CECSFA','Authentication\x20required','validation','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.\x0a\x20\x20\x20\x20\x20\x20\x20Tip:\x20`','73863hXUKeH','3336150QRnQKC','Unknown\x20command:\x20','Configuration\x20file\x20not\x20found','\x20project\x20directory','472HOmoBr','Set\x20appcode\x20via\x20`','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','Not\x20in\x20a\x20','not_in_project','flag_missing','auth_required','Run\x20`','6387367ciGwOt','1338156UdCTzD','1145UAzWPS','Operation\x20cancelled.','4nfcTGu','848071siLoOm','cancelled'];a269_0x2daf=function(){return _0xad9b86;};return a269_0x2daf();}function a269_0x300d(_0x52db09,_0x2aea6a){_0x52db09=_0x52db09-0x1d0;const _0x2dafc7=a269_0x2daf();let _0x300d4f=_0x2dafc7[_0x52db09];return _0x300d4f;}const a269_0x5e4356=a269_0x300d;(function(_0x173252,_0x5e83eb){const _0x163ace=a269_0x300d,_0x222771=_0x173252();while(!![]){try{const _0x922a3=-parseInt(_0x163ace(0x1e9))/0x1+parseInt(_0x163ace(0x1e5))/0x2+-parseInt(_0x163ace(0x1d8))/0x3*(-parseInt(_0x163ace(0x1e8))/0x4)+parseInt(_0x163ace(0x1e6))/0x5*(parseInt(_0x163ace(0x1d3))/0x6)+-parseInt(_0x163ace(0x1e4))/0x7+-parseInt(_0x163ace(0x1dc))/0x8*(parseInt(_0x163ace(0x1d7))/0x9)+parseInt(_0x163ace(0x1d1))/0xa;if(_0x922a3===_0x5e83eb)break;else _0x222771['push'](_0x222771['shift']());}catch(_0xa12d94){_0x222771['push'](_0x222771['shift']());}}}(a269_0x2daf,0x8c810));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_0x5e4356(0x1e3)+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':'Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+a269_0x5e4356(0x1d6)+CLI_BIN_NAME+a269_0x5e4356(0x1d0),'notInProjectHint':a269_0x5e4356(0x1de)});export const CliErrors={'authRequired'(_0x53c1de){const _0x347fde=a269_0x5e4356;return new CliError(_0x347fde(0x1e2),0x1,_0x347fde(0x1d4),_0x53c1de??'Run\x20`'+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.');},'configMissing'(_0x6886b3){const _0x396018=a269_0x5e4356;return new CliError('config_missing',0x1,_0x396018(0x1da),_0x6886b3??_0x396018(0x1dd)+CLI_BIN_NAME+_0x396018(0x1d6)+CLI_BIN_NAME+_0x396018(0x1d0));},'notInProject'(){const _0x4f9976=a269_0x5e4356;return new CliError(_0x4f9976(0x1e0),0x1,_0x4f9976(0x1df)+CLI_BIN_NAME+_0x4f9976(0x1db),'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.');},'apiError'(_0x3b2a31,_0x145fa7){return baseCliErrors['apiError'](_0x3b2a31,_0x145fa7);},'networkError'(_0x2c3e97){const _0x2958d5=a269_0x5e4356;return new CliError(_0x2958d5(0x1d2),0x2,_0x2958d5(0x1eb)+_0x2c3e97,'Check\x20your\x20internet\x20connection\x20and\x20try\x20again.');},'unknownCommand'(_0x45cbf8){const _0x1886a5=a269_0x5e4356;return new CliError('unknown_command',0x1,_0x1886a5(0x1d9)+_0x45cbf8,_0x1886a5(0x1e3)+CLI_BIN_NAME+'\x20--help`\x20to\x20see\x20available\x20commands.');},'flagMissing'(_0x27fead,_0x1cfc5c){const _0x5c66cf=a269_0x5e4356;return new CliError(_0x5c66cf(0x1e1),0x1,_0x5c66cf(0x1ec)+_0x27fead,_0x1cfc5c);},'validation'(_0x45ed50,_0x210697){const _0x6e2521=a269_0x5e4356;return baseCliErrors[_0x6e2521(0x1d5)](_0x45ed50,_0x210697);},'cancelled'(_0xfdfafa){const _0x32b4a0=a269_0x5e4356;return new CliError(_0x32b4a0(0x1ea),0x0,_0xfdfafa??_0x32b4a0(0x1e7));}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x53bb56,_0x10bbf0){const _0x66f899=a270_0x81b7,_0x189772=_0x53bb56();while(!![]){try{const _0x3bfb84=-parseInt(_0x66f899(0x19a))/0x1*(parseInt(_0x66f899(0x191))/0x2)+parseInt(_0x66f899(0x193))/0x3+parseInt(_0x66f899(0x198))/0x4*(-parseInt(_0x66f899(0x19b))/0x5)+parseInt(_0x66f899(0x197))/0x6+-parseInt(_0x66f899(0x199))/0x7*(-parseInt(_0x66f899(0x196))/0x8)+parseInt(_0x66f899(0x192))/0x9+parseInt(_0x66f899(0x194))/0xa;if(_0x3bfb84===_0x10bbf0)break;else _0x189772['push'](_0x189772['shift']());}catch(_0x3cdc68){_0x189772['push'](_0x189772['shift']());}}}(a270_0xb896,0x63e60));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a270_0x81b7(_0x6f4f89,_0x1310a9){_0x6f4f89=_0x6f4f89-0x191;const _0xb8961d=a270_0xb896();let _0x81b7f8=_0xb8961d[_0x6f4f89];return _0x81b7f8;}function a270_0xb896(){const _0x3e4b77=['151190abXDJm','map','8QZOqgM','1079814NzJdRm','1327244TocXzW','3779342dYSzEi','502rXXQtS','5wBkuKG','3118qyIebJ','4031487ssENuQ','1022028aZYlXQ'];a270_0xb896=function(){return _0x3e4b77;};return a270_0xb896();}import{buildAllFlags as a270_0xc28e85}from'@lovrabet/cli-framework';import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';export function buildAllFlags(_0x4fbcf6){const _0x4ae524=a270_0x81b7,_0x3a0963=a270_0xc28e85(_0x4fbcf6,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0x4fbcf6))return _0x3a0963;return _0x3a0963[_0x4ae524(0x195)](_0x185cb3=>_0x185cb3['name']==='yes'?{..._0x185cb3,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x185cb3);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a271_0x1c5a(){var _0x605a91=['def','6816234OGpmpZ','550PffeRC','structuredErrors','337282NDgVlB','3zaVNiq','flags','compress','391376GBLLIz','6164200EIOWkw','defaultFormat','format','860805nKReOY','3233404MHnCFV','3454017ZFhokE','112MIVJqV'];a271_0x1c5a=function(){return _0x605a91;};return a271_0x1c5a();}(function(_0x393e5a,_0x267223){var _0x22bc87=a271_0x3f77,_0x30501b=_0x393e5a();while(!![]){try{var _0x3b96b6=-parseInt(_0x22bc87(0x1c7))/0x1*(-parseInt(_0x22bc87(0x1c6))/0x2)+-parseInt(_0x22bc87(0x1c0))/0x3+-parseInt(_0x22bc87(0x1bf))/0x4+-parseInt(_0x22bc87(0x1bb))/0x5+-parseInt(_0x22bc87(0x1c3))/0x6+-parseInt(_0x22bc87(0x1c1))/0x7*(parseInt(_0x22bc87(0x1ba))/0x8)+parseInt(_0x22bc87(0x1be))/0x9*(parseInt(_0x22bc87(0x1c4))/0xa);if(_0x3b96b6===_0x267223)break;else _0x30501b['push'](_0x30501b['shift']());}catch(_0x485442){_0x30501b['push'](_0x30501b['shift']());}}}(a271_0x1c5a,0x9fee5));import{resolveOutputConfig}from'@lovrabet/cli-framework';function a271_0x3f77(_0x4e7960,_0x12e38a){_0x4e7960=_0x4e7960-0x1b9;var _0x1c5a19=a271_0x1c5a();var _0x3f77e1=_0x1c5a19[_0x4e7960];return _0x3f77e1;}export function usesStructuredErrorOutput(_0x3ac3b0){var _0x5cbf13=a271_0x3f77;return _0x3ac3b0?.[_0x5cbf13(0x1c5)]===!![];}export function resolveErrorOutputFormat(_0x49c86d){var _0xaf2482=a271_0x3f77;if(!_0x49c86d['def'])return _0x49c86d[_0xaf2482(0x1bc)]??_0xaf2482(0x1b9);return resolveOutputConfig({'flags':_0x49c86d[_0xaf2482(0x1c8)]??{},'def':_0x49c86d[_0xaf2482(0x1c2)],'configDefault':_0x49c86d['defaultFormat']})[_0xaf2482(0x1bd)];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a272_0x1d17(_0x3c7be9,_0x5312b3){_0x3c7be9=_0x3c7be9-0xf9;const _0x2951e9=a272_0x2951();let _0x1d173d=_0x2951e9[_0x3c7be9];return _0x1d173d;}function a272_0x2951(){const _0x3a2160=['243162mhjlGF','427959YAfPLl','command','1911678HuoMbZ','Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan','3033665gGjjEM','21514536YCgOPZ','has','notification\x20config-delete','16auLvnp','service','3085779IIKmhV','730830IpnOCb','8PAvfHa','notification\x20config-update','menu\x20delete'];a272_0x2951=function(){return _0x3a2160;};return a272_0x2951();}const a272_0x4c6ac9=a272_0x1d17;(function(_0x5d4d0d,_0x53e971){const _0x135c90=a272_0x1d17,_0x34d7ae=_0x5d4d0d();while(!![]){try{const _0x4b6447=-parseInt(_0x135c90(0x107))/0x1+parseInt(_0x135c90(0xfa))/0x2+-parseInt(_0x135c90(0x102))/0x3+-parseInt(_0x135c90(0x104))/0x4*(parseInt(_0x135c90(0xfc))/0x5)+-parseInt(_0x135c90(0x103))/0x6+-parseInt(_0x135c90(0x108))/0x7*(parseInt(_0x135c90(0x100))/0x8)+parseInt(_0x135c90(0xfd))/0x9;if(_0x4b6447===_0x53e971)break;else _0x34d7ae['push'](_0x34d7ae['shift']());}catch(_0x171264){_0x34d7ae['push'](_0x34d7ae['shift']());}}}(a272_0x2951,0x96a53));const EXPLICIT_YES_COMMANDS=new Set([a272_0x4c6ac9(0x106),'kb\x20delete',a272_0x4c6ac9(0x105),a272_0x4c6ac9(0xff)]);export const EXPLICIT_YES_FLAG_DESCRIPTION=a272_0x4c6ac9(0xfb);export function requiresExplicitYes(_0xc7221b){const _0x45f573=a272_0x4c6ac9;return EXPLICIT_YES_COMMANDS[_0x45f573(0xfe)](_0xc7221b[_0x45f573(0x101)]+'\x20'+_0xc7221b[_0x45f573(0xf9)]);}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a273_0x549d75=a273_0x26f7;function a273_0x26f7(_0x178001,_0x55d658){_0x178001=_0x178001-0xd0;const _0x37b029=a273_0x37b0();let _0x26f772=_0x37b029[_0x178001];return _0x26f772;}(function(_0x21d19f,_0x1f65d3){const _0x4bfaab=a273_0x26f7,_0x5468c9=_0x21d19f();while(!![]){try{const _0x45aea1=-parseInt(_0x4bfaab(0xd7))/0x1*(-parseInt(_0x4bfaab(0xd5))/0x2)+parseInt(_0x4bfaab(0xd3))/0x3*(parseInt(_0x4bfaab(0xd1))/0x4)+parseInt(_0x4bfaab(0xd8))/0x5+-parseInt(_0x4bfaab(0xd6))/0x6+parseInt(_0x4bfaab(0xd0))/0x7+parseInt(_0x4bfaab(0xd2))/0x8+parseInt(_0x4bfaab(0xd9))/0x9*(-parseInt(_0x4bfaab(0xda))/0xa);if(_0x45aea1===_0x1f65d3)break;else _0x5468c9['push'](_0x5468c9['shift']());}catch(_0x5aeffa){_0x5468c9['push'](_0x5468c9['shift']());}}}(a273_0x37b0,0x59815));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a273_0x37b0(){const _0x2c9082=['3452239UwLvNV','8XpLhLB','821040QXpgBi','976611xtkRQz','parseFlags','31102WEdKSE','416496zUItPM','27Rmovpw','1803255SxbXcM','5670oXeSda','25260koPRKQ'];a273_0x37b0=function(){return _0x2c9082;};return a273_0x37b0();}const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a273_0x549d75(0xd4)];export const validateFlags=helpers['validateFlags'];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1b5884,_0x5f1a7c){const _0x43cbb8=a274_0x5bcd,_0x2f1d09=_0x1b5884();while(!![]){try{const _0xa24bf2=parseInt(_0x43cbb8(0x11c))/0x1+-parseInt(_0x43cbb8(0x10c))/0x2*(-parseInt(_0x43cbb8(0x119))/0x3)+-parseInt(_0x43cbb8(0x11e))/0x4*(parseInt(_0x43cbb8(0x10d))/0x5)+parseInt(_0x43cbb8(0x11b))/0x6*(parseInt(_0x43cbb8(0x114))/0x7)+-parseInt(_0x43cbb8(0x10f))/0x8*(-parseInt(_0x43cbb8(0x10b))/0x9)+-parseInt(_0x43cbb8(0x110))/0xa*(-parseInt(_0x43cbb8(0x117))/0xb)+parseInt(_0x43cbb8(0x10e))/0xc*(-parseInt(_0x43cbb8(0x113))/0xd);if(_0xa24bf2===_0x5f1a7c)break;else _0x2f1d09['push'](_0x2f1d09['shift']());}catch(_0x17e7f0){_0x2f1d09['push'](_0x2f1d09['shift']());}}}(a274_0x19ae,0x6f10a));function a274_0x5bcd(_0x54edff,_0x490902){_0x54edff=_0x54edff-0x10a;const _0x19ae6c=a274_0x19ae();let _0x5bcd4c=_0x19ae6c[_0x54edff];return _0x5bcd4c;}import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{requiresExplicitYes}from'../framework/explicit-yes.js';function createGenerators(){const _0x6c7e6=a274_0x5bcd;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x2e5c72=>serviceGroups[_0x6c7e6(0x116)](_0x2e5c72),'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x6c7e6(0x10a)+CLI_BIN_NAME+_0x6c7e6(0x11d),'serviceUsageSuffix':_0x6c7e6(0x112)});}export function generateCommandHelp(_0x5a97f5){const _0x5c2812=a274_0x5bcd,_0x32670d=createGenerators()['generateCommandHelp'](_0x5a97f5);if(!requiresExplicitYes(_0x5a97f5))return _0x32670d;return _0x32670d[_0x5c2812(0x111)](_0x5c2812(0x115),'Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.');}export function generateServiceHelp(_0x230163){const _0x3d8466=a274_0x5bcd;return createGenerators()[_0x3d8466(0x11a)](_0x230163);}function a274_0x19ae(){const _0x3df4f0=['1315765NLLwdt','generateFullHelp','33zsGHlt','generateServiceHelp','6aJfgkX','454836mDwgWQ','\x20workspace\x20init`\x20or\x20--appcode).','8LRfeYq','Requires\x20appcode\x20(set\x20via\x20`','572715UBrpBZ','106426kXayel','252995bkyQom','12tDmtie','32MMtSap','10PvRUtn','replace','\x20[args]\x20[flags]','19536933aIMwyK','4512389tHNWRa','Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','get'];a274_0x19ae=function(){return _0x3df4f0;};return a274_0x19ae();}export function generateFullHelp(){const _0x2c46d8=a274_0x5bcd;return createGenerators()[_0x2c46d8(0x118)]();}
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1a88f2,_0x3c98ee){var _0x41ed58=a275_0x32b1,_0x5359d6=_0x1a88f2();while(!![]){try{var _0xb05fab=-parseInt(_0x41ed58(0x182))/0x1+parseInt(_0x41ed58(0x183))/0x2+parseInt(_0x41ed58(0x186))/0x3*(-parseInt(_0x41ed58(0x184))/0x4)+parseInt(_0x41ed58(0x17e))/0x5*(parseInt(_0x41ed58(0x17f))/0x6)+-parseInt(_0x41ed58(0x185))/0x7*(parseInt(_0x41ed58(0x180))/0x8)+-parseInt(_0x41ed58(0x181))/0x9+parseInt(_0x41ed58(0x187))/0xa;if(_0xb05fab===_0x3c98ee)break;else _0x5359d6['push'](_0x5359d6['shift']());}catch(_0x1abbdf){_0x5359d6['push'](_0x5359d6['shift']());}}}(a275_0x531e,0x982ad));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';function a275_0x531e(){var _0x147a28=['1151848tKpjXr','2200696pVjSVs','72tcTwiV','322uILzCG','25899MJDMPL','21009530SQFlbl','625AEstAm','28740okkSMO','161016qTjnxI','8493210pkwhjV'];a275_0x531e=function(){return _0x147a28;};return a275_0x531e();}function a275_0x32b1(_0x42cd06,_0x4b141e){_0x42cd06=_0x42cd06-0x17e;var _0x531e93=a275_0x531e();var _0x32b1af=_0x531e93[_0x42cd06];return _0x32b1af;}export{riskLevelOrder}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4dcdc2,_0x50803f){const _0x3bbe36=a276_0x4b49,_0x55dfda=_0x4dcdc2();while(!![]){try{const _0x9596db=parseInt(_0x3bbe36(0xda))/0x1+-parseInt(_0x3bbe36(0xc5))/0x2+parseInt(_0x3bbe36(0xdd))/0x3*(parseInt(_0x3bbe36(0xc7))/0x4)+-parseInt(_0x3bbe36(0xd5))/0x5*(-parseInt(_0x3bbe36(0xd9))/0x6)+parseInt(_0x3bbe36(0xcf))/0x7*(parseInt(_0x3bbe36(0xcc))/0x8)+parseInt(_0x3bbe36(0xd6))/0x9+-parseInt(_0x3bbe36(0xd8))/0xa;if(_0x9596db===_0x50803f)break;else _0x55dfda['push'](_0x55dfda['shift']());}catch(_0x28a9d6){_0x55dfda['push'](_0x55dfda['shift']());}}}(a276_0x3ada,0x5d0ea));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a276_0x4b49(_0x42358d,_0x2afb42){_0x42358d=_0x42358d-0xc5;const _0x3adae5=a276_0x3ada();let _0x4b49c7=_0x3adae5[_0x42358d];return _0x4b49c7;}import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x38cfd3,_0xf3a131){const _0x4547fa=a276_0x4b49,_0x4a4369=_0x38cfd3[_0x4547fa(0xd0)],{_notice:_0x47b464,..._0x2f4a81}=_0x38cfd3;void _0x47b464,baseFormatOutput(_0x2f4a81,_0xf3a131),_0xf3a131[_0x4547fa(0xc8)]==='pretty'&&printPrettyNotice(_0x4a4369);}function a276_0x3ada(){const _0x37daba=['trim','code','445hfLWFL','4305465hXLckU','update','15605870VJVGFn','42138yENMHm','545074NUImbT','message','data','192006iqRioo','write','json','stdout','254636ThHlcb','endsWith','4jXtYKt','format','pretty','jq:\x20','jqFilter','24RYBKJt','hint','stringify','831971ULpOcl','_notice','validation','error'];a276_0x3ada=function(){return _0x37daba;};return a276_0x3ada();}export function formatCliError(_0x14c182,_0x4656f6){const _0x21378d=a276_0x4b49;if(_0x4656f6[_0x21378d(0xc8)]===_0x21378d(0xc9))return![];const _0x58eb3c=_0x14c182[_0x21378d(0xdc)],_0x4eca99={'ok':![],'command':_0x4656f6['command'],'risk':_0x4656f6['risk'],'data':_0x58eb3c??null,'error':{'code':_0x14c182[_0x21378d(0xd4)],'message':_0x14c182[_0x21378d(0xdb)],..._0x14c182[_0x21378d(0xcd)]?{'hint':_0x14c182['hint']}:{}}},_0x3aa10a=_0x4656f6[_0x21378d(0xc8)]===_0x21378d(0xdf)?JSON[_0x21378d(0xce)](_0x4eca99,null,0x2):JSON[_0x21378d(0xce)](_0x4eca99);let _0x16c245=_0x3aa10a;if(_0x4656f6['jqFilter']?.[_0x21378d(0xd3)]())try{_0x16c245=applyJqFilter(_0x3aa10a,_0x4656f6[_0x21378d(0xcb)]);}catch(_0x3ff892){const _0x1da8b0=_0x3ff892 instanceof CliError?_0x3ff892:CliErrors[_0x21378d(0xd1)](_0x21378d(0xca)+(_0x3ff892 instanceof Error?_0x3ff892[_0x21378d(0xdb)]:String(_0x3ff892))),_0x550fae={..._0x4eca99,'error':{'code':_0x1da8b0[_0x21378d(0xd4)],'message':_0x1da8b0[_0x21378d(0xdb)],..._0x1da8b0['hint']?{'hint':_0x1da8b0[_0x21378d(0xcd)]}:{},'cause':_0x4eca99[_0x21378d(0xd2)]}};_0x16c245=_0x4656f6['format']==='json'?JSON[_0x21378d(0xce)](_0x550fae,null,0x2):JSON[_0x21378d(0xce)](_0x550fae);}return process[_0x21378d(0xe0)][_0x21378d(0xde)](_0x16c245[_0x21378d(0xc6)]('\x0a')?_0x16c245:_0x16c245+'\x0a'),!![];}function printPrettyNotice(_0x2dc7bf){const _0x4fe6e8=a276_0x4b49;if(!_0x2dc7bf?.[_0x4fe6e8(0xd7)])return;console[_0x4fe6e8(0xd2)](_0x2dc7bf[_0x4fe6e8(0xd7)][_0x4fe6e8(0xdb)]+'\x20('+_0x2dc7bf[_0x4fe6e8(0xd7)]['url']+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1f733a,_0x4acef6){var _0x38a791=a277_0xb0ae,_0x12ff32=_0x1f733a();while(!![]){try{var _0x4ac9ba=-parseInt(_0x38a791(0x165))/0x1+parseInt(_0x38a791(0x167))/0x2+parseInt(_0x38a791(0x16d))/0x3*(-parseInt(_0x38a791(0x16a))/0x4)+parseInt(_0x38a791(0x169))/0x5+parseInt(_0x38a791(0x166))/0x6*(-parseInt(_0x38a791(0x16e))/0x7)+-parseInt(_0x38a791(0x16c))/0x8*(parseInt(_0x38a791(0x168))/0x9)+parseInt(_0x38a791(0x16b))/0xa;if(_0x4ac9ba===_0x4acef6)break;else _0x12ff32['push'](_0x12ff32['shift']());}catch(_0x5c3b9f){_0x12ff32['push'](_0x12ff32['shift']());}}}(a277_0x5c51,0xb2240));function a277_0xb0ae(_0x1f793c,_0x4e667c){_0x1f793c=_0x1f793c-0x165;var _0x5c51a9=a277_0x5c51();var _0xb0ae4d=_0x5c51a9[_0x1f793c];return _0xb0ae4d;}function a277_0x5c51(){var _0x5c718c=['12BPanAK','1240724iNDjRd','801ddqraC','6071700dZnJhb','11944cOHTfs','11857960meyImU','74776FyqZsP','219hEPDwE','1216663cUchem','893355nGoZvM'];a277_0x5c51=function(){return _0x5c718c;};return a277_0x5c51();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x18e5c1,_0xd16c43){const _0x276001=a278_0x3895,_0x7c39cc=_0x18e5c1();while(!![]){try{const _0x245aea=-parseInt(_0x276001(0x124))/0x1+parseInt(_0x276001(0x12d))/0x2+-parseInt(_0x276001(0x11b))/0x3*(-parseInt(_0x276001(0x119))/0x4)+parseInt(_0x276001(0x11e))/0x5*(-parseInt(_0x276001(0x118))/0x6)+-parseInt(_0x276001(0x125))/0x7+-parseInt(_0x276001(0x12a))/0x8+parseInt(_0x276001(0x117))/0x9*(parseInt(_0x276001(0x128))/0xa);if(_0x245aea===_0xd16c43)break;else _0x7c39cc['push'](_0x7c39cc['shift']());}catch(_0x8bcfaf){_0x7c39cc['push'](_0x7c39cc['shift']());}}}(a278_0x3ce9,0x99f3c));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a278_0x3ce9(){const _0x425a55=['code','`\x20requires\x20either\x20--code\x20or\x20--alias.','7355bDSwBT','flags','some','Unknown\x20alias\x20\x22','alias','name','1099334uzbQmj','2032842wanOVy','length','join','21860dQgkWp','string','6435464tslHkM','\x22.\x20','map','1439360rvlnCT','Available\x20aliases:\x20','9306URrNfw','2298dCpTdn','36yxVkgK','type','136050qoHTlY'];a278_0x3ce9=function(){return _0x425a55;};return a278_0x3ce9();}function a278_0x3895(_0x40d842,_0x24726d){_0x40d842=_0x40d842-0x116;const _0x3ce947=a278_0x3ce9();let _0x389563=_0x3ce947[_0x40d842];return _0x389563;}export function resolveAliasToCode(_0x45ee70,_0x1a12c1,_0x21a87d,_0x35f8c9){const _0x49d767=a278_0x3895,_0x3bc0c0=_0x45ee70[_0x49d767(0x11f)]['some'](_0x43508c=>_0x43508c[_0x49d767(0x123)]===_0x49d767(0x11c)&&_0x43508c[_0x49d767(0x11a)]===_0x49d767(0x129)),_0x3ed3c5=_0x45ee70[_0x49d767(0x11f)][_0x49d767(0x120)](_0x52b91b=>_0x52b91b[_0x49d767(0x123)]===_0x49d767(0x122)&&_0x52b91b[_0x49d767(0x11a)]==='string');if(!_0x3bc0c0||!_0x3ed3c5)return;const _0x575889=_0x1a12c1[_0x49d767(0x11c)]?String(_0x1a12c1['code']):'',_0x523cc9=_0x1a12c1[_0x49d767(0x122)]?String(_0x1a12c1['alias']):'';if(!_0x575889&&!_0x523cc9)throw CliErrors['validation']('`'+_0x35f8c9+_0x49d767(0x11d));if(_0x523cc9&&!_0x575889){const _0x4c4452=resolveAlias(_0x21a87d,_0x523cc9);if(!_0x4c4452){const _0x2c8068=listAliases(_0x21a87d)[_0x49d767(0x12c)](_0x5dae37=>_0x5dae37[_0x49d767(0x122)]),_0x3ec6c4=_0x2c8068[_0x49d767(0x126)]?_0x49d767(0x116)+_0x2c8068[_0x49d767(0x127)](',\x20'):'No\x20api.ts\x20found\x20in\x20'+_0x21a87d+'.\x20Run\x20`'+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors['validation'](_0x49d767(0x121)+_0x523cc9+_0x49d767(0x12b)+_0x3ec6c4);}_0x1a12c1[_0x49d767(0x11c)]=_0x4c4452;}}
|
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(_0x12a4ba,_0xafeb5a){const _0x213b2e=a279_0x9cee,_0x435847=_0x12a4ba();while(!![]){try{const _0x1ff963=-parseInt(_0x213b2e(0x144))/0x1+-parseInt(_0x213b2e(0x134))/0x2*(parseInt(_0x213b2e(0x16f))/0x3)+parseInt(_0x213b2e(0x159))/0x4*(-parseInt(_0x213b2e(0x152))/0x5)+-parseInt(_0x213b2e(0x136))/0x6*(parseInt(_0x213b2e(0x16c))/0x7)+parseInt(_0x213b2e(0x166))/0x8*(parseInt(_0x213b2e(0x131))/0x9)+parseInt(_0x213b2e(0x151))/0xa+-parseInt(_0x213b2e(0x170))/0xb*(-parseInt(_0x213b2e(0x158))/0xc);if(_0x1ff963===_0xafeb5a)break;else _0x435847['push'](_0x435847['shift']());}catch(_0x4ce340){_0x435847['push'](_0x435847['shift']());}}}(a279_0x5795,0x64732));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';function a279_0x9cee(_0x4cd1a0,_0x5ebbec){_0x4cd1a0=_0x4cd1a0-0x124;const _0x5795cd=a279_0x5795();let _0x9ceedc=_0x5795cd[_0x4cd1a0];return _0x9ceedc;}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 a279_0x28630f}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x19d7b6){const _0x54d732=a279_0x9cee;return typeof _0x19d7b6===_0x54d732(0x143)&&_0x19d7b6[_0x54d732(0x148)]()?_0x19d7b6[_0x54d732(0x148)]():undefined;}function resolveEnvAppCode(){const _0x188161=a279_0x9cee,_0x33a1e2=stringFlag(process.env.RABETBASE_APPCODE);if(_0x33a1e2)return{'name':_0x188161(0x124),'value':_0x33a1e2};const _0x970651=stringFlag(process.env.LOVRABET_APPCODE);if(_0x970651)return{'name':'LOVRABET_APPCODE','value':_0x970651};return undefined;}function hasExplicitAppCode(_0x283faa,_0x57c0f3){const _0x510b61=a279_0x9cee;return!!(stringFlag(_0x283faa[_0x510b61(0x142)])||stringFlag(_0x57c0f3[_0x510b61(0x142)]));}function assertEnvAppCodeNotIgnored(_0x28f8c6,_0x5b7d30,_0x532817){const _0x5470e4=a279_0x9cee;if(!_0x5b7d30||_0x532817||_0x28f8c6===_0x5b7d30['value'])return;const _0xa37bd=_0x28f8c6?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0x28f8c6+'\x22.':_0x5470e4(0x13d);throw CliErrors[_0x5470e4(0x14e)](_0x5b7d30[_0x5470e4(0x16b)]+'='+_0x5b7d30[_0x5470e4(0x139)]+_0x5470e4(0x12c)+_0xa37bd+'\x20'+(_0x5470e4(0x165)+_0x5b7d30[_0x5470e4(0x16b)]+'\x22.'));}export function createPipelineEnv(_0x1a03e1,_0x428756,_0x27e457=[]){const _0x579113=a279_0x9cee;return{'rawFlags':_0x428756,'args':_0x27e457,'resolveAppCode':()=>_0x1a03e1['appCode'],'resolveCookie':()=>_0x1a03e1[_0x579113(0x173)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a279_0x28630f(_0x428756),'defaultFormat':_0x1a03e1['format'],'defaultPageSize':_0x1a03e1[_0x579113(0x14b)],'defaultVerbose':_0x1a03e1['verbose'],'apiDir':_0x1a03e1[_0x579113(0x16e)],'riskLevel':_0x1a03e1[_0x579113(0x125)],'selectedAppName':_0x1a03e1[_0x579113(0x154)],'mergedCli':{'defaultApp':_0x1a03e1[_0x579113(0x156)],'currentApp':_0x1a03e1[_0x579113(0x135)],'appCode':_0x1a03e1[_0x579113(0x169)],'apps':_0x1a03e1[_0x579113(0x174)]}};}export function createRabetbaseRunnerAdapter(_0x166696={}){const _0x993b38=a279_0x9cee;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x8222f8=>PIPELINE_FLAG_NAMES[_0x993b38(0x13a)](_0x8222f8[_0x993b38(0x16b)]))['map'](({name:_0x590919,type:_0x3e5a9f,description:_0x55ac44})=>({'name':_0x590919,'type':_0x3e5a9f,'description':_0x55ac44})),'formatOutput':_0x166696[_0x993b38(0x16a)]??formatOutput,'getCommandLabel'(_0x2d3a9b){const _0x23a549=_0x993b38;return CLI_BIN_NAME+'\x20'+_0x2d3a9b[_0x23a549(0x150)]+'\x20'+_0x2d3a9b['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x20870b,{def:_0x4dd2ad}){const _0x41fd08=_0x993b38,_0x33f922=_0x20870b['includes'](_0x41fd08(0x128))?_0x41fd08(0x13f):_0x41fd08(0x138)+_0x4dd2ad[_0x41fd08(0x141)]+_0x41fd08(0x126)+_0x41fd08(0x13f);return CliErrors[_0x41fd08(0x14e)](_0x20870b+_0x41fd08(0x140)+_0x33f922);}},async 'prepare'(_0x261316,_0x55fb91,_0x2f616e,_0x44f4c2){const _0x4144f4=_0x993b38,_0x45296f=_0x55fb91[_0x4144f4(0x16e)]||DEFAULT_API_DIR;resolveAliasToCode(_0x261316,_0x2f616e,_0x45296f,_0x44f4c2);const _0x1ff8f8=resolveCommandAuthMode(_0x261316);let _0x4a3584='';if(_0x1ff8f8!==_0x4144f4(0x162)){_0x4a3584=_0x55fb91['resolveCookie']()||'';if(!_0x4a3584){if(_0x1ff8f8===_0x4144f4(0x130))throw CliErrors[_0x4144f4(0x16d)]();}else{const {setActiveCookie:_0x4cfb4b}=await import(_0x4144f4(0x129));_0x4cfb4b(_0x4a3584);}}const _0x31cff2=_0x55fb91[_0x4144f4(0x168)]()??'';if(_0x261316[_0x4144f4(0x12f)]!==![]){const _0x241437=hasExplicitAppCode(_0x2f616e,_0x55fb91['rawFlags']),_0xf9a6ca=_0x55fb91['mergedCli']?.[_0x4144f4(0x174)]??{},_0xe293ce=_0x55fb91['selectedAppName']||_0x55fb91['mergedCli']?.['currentApp']||_0x55fb91[_0x4144f4(0x14c)]?.[_0x4144f4(0x156)];if(!_0x241437&&_0xe293ce&&!_0xf9a6ca[_0xe293ce]){const _0x5cb0da=Object['keys'](_0xf9a6ca);throw CliErrors['validation']('App\x20\x22'+_0xe293ce+_0x4144f4(0x157),_0x5cb0da[_0x4144f4(0x15b)]>0x0?'Available:\x20'+_0x5cb0da[_0x4144f4(0x146)](',\x20')+'.\x20Use\x20--app/--appcode,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x4144f4(0x15d):_0x4144f4(0x12b)+CLI_BIN_NAME+_0x4144f4(0x15d));}assertEnvAppCodeNotIgnored(_0x31cff2,resolveEnvAppCode(),_0x241437);if(!_0x31cff2){const _0x48b95d=Object[_0x4144f4(0x137)](_0xf9a6ca);if(!_0xe293ce&&_0x48b95d['length']>0x1)throw CliErrors[_0x4144f4(0x12e)]('Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`'+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20'+_0x48b95d['join'](',\x20')+'.');throw CliErrors[_0x4144f4(0x12e)](_0x4144f4(0x164)+CLI_BIN_NAME+_0x4144f4(0x171));}}return{'defaults':{'booleans':{'verbose':_0x55fb91[_0x4144f4(0x13b)]},'numbers':{'pagesize':_0x55fb91[_0x4144f4(0x13e)]}},'extras':{'appCode':_0x31cff2,'cookie':_0x4a3584,'apiDomain':_0x55fb91['resolveApiDomain'](),'apiDir':_0x45296f,'selectedAppName':_0x55fb91[_0x4144f4(0x160)],'mergedCli':_0x55fb91[_0x4144f4(0x14c)]}};},'confirmHighRisk':_0x166696[_0x993b38(0x149)]??(async({env:_0x33db89,commandLabel:_0x216288})=>{const _0x34c486=_0x993b38;if(_0x33db89[_0x34c486(0x127)])throw CliErrors[_0x34c486(0x14e)](_0x34c486(0x14d)+_0x216288+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x216288,_0x34c486(0x14f)],'createCancelledError':_0x51e516=>CliErrors['cancelled'](_0x51e516)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x3202ec=a279_0x9cee,{clearActiveCookie:_0x58ae23}=await import(_0x3202ec(0x129));_0x58ae23();}export async function finalizeRabetbaseRuntimeState(){const _0x15f26b=a279_0x9cee;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0xb42638},{initEnv:_0x59f01e}]=await Promise[_0x15f26b(0x14a)]([import(_0x15f26b(0x133)),import(_0x15f26b(0x145))]);_0xb42638(),_0x59f01e(_0x15f26b(0x175));}}function a279_0x5795(){const _0x44df77=['892872XzHpYs','nonInteractive','resolveAppCode','appCode','formatOutput','name','5411686iczcnl','authRequired','apiDir','12021ioAKlO','11zNzqcY','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','_notice','cookie','apps','production','object','RABETBASE_APPCODE','riskLevel','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','isNonInteractive','Edit\x20the\x20config\x20file\x20manually','../core/api-client.js','update','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','rawFlags','configMissing','requiresAppCode','required','54wRFHmC','hint','../constant/domain.js','370QTZUYG','currentApp','6YxgWtP','keys','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','value','has','defaultVerbose','meowKey','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','defaultPageSize','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','\x0a\x20\x20','risk','appcode','string','512771YZAkUb','../constant/env.js','join','resolve','trim','confirmHighRisk','all','pageSize','mergedCli','High-risk\x20operation\x20`','validation','\x20\x20\x20Continue?\x20[y/N]\x20','service','1392750zenyDj','5ACUFrW','format','explicitAppName','catch','defaultApp','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','23096508aETryc','1180128ZKLQGX','schema','length','find','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','some','pretty','selectedAppName','message','none','doctor','Set\x20appcode\x20via\x20`','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$'];a279_0x5795=function(){return _0x44df77;};return a279_0x5795();}export async function runCommand(_0x216ae8,_0x3d675d,_0x42b143=terminalRunnerAdapter){const _0x2638b0=a279_0x9cee;assertRejectedFlags(_0x216ae8,_0x3d675d[_0x2638b0(0x12d)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x216ae8)?withUpdateNotice(_0x216ae8):_0x216ae8,_0x3d675d,_0x42b143);}function assertRejectedFlags(_0x22f9c6,_0x17c800){const _0x100bdd=a279_0x9cee;for(const _0x25430c of _0x22f9c6['rejectedFlags']??[]){const _0x4e53c6=GLOBAL_FLAGS[_0x100bdd(0x15c)](_0x2e3026=>_0x2e3026[_0x100bdd(0x16b)]===_0x25430c[_0x100bdd(0x16b)]),_0x41e394=new Set([_0x25430c[_0x100bdd(0x16b)],toCamelCase(_0x25430c[_0x100bdd(0x16b)]),_0x4e53c6?.[_0x100bdd(0x13c)]]),_0x3f322f=[..._0x41e394][_0x100bdd(0x15e)](_0x1e3526=>{if(!_0x1e3526)return![];const _0x1b638e=_0x17c800[_0x1e3526];return _0x1b638e!==undefined&&_0x1b638e!==null&&_0x1b638e!==![];});if(_0x3f322f)throw CliErrors[_0x100bdd(0x14e)](_0x25430c[_0x100bdd(0x161)],_0x25430c[_0x100bdd(0x132)]);}}function toCamelCase(_0x11aeaa){return _0x11aeaa['replace'](/-([a-z])/g,(_0x429f6b,_0x2cfd85)=>_0x2cfd85['toUpperCase']());}function shouldAttachUpdateNotice(_0x1236a4){const _0x1878e6=a279_0x9cee;if(_0x1236a4['hasFormat']===![])return![];return![_0x1878e6(0x12a),_0x1878e6(0x15a),_0x1878e6(0x163)]['includes'](_0x1236a4[_0x1878e6(0x150)]);}function withUpdateNotice(_0x1fe145){return{..._0x1fe145,async 'execute'(_0x26d380){const _0x27a24e=a279_0x9cee,_0x21a6cc=shouldResolveUpdateNotice(_0x26d380)?resolveLatestUpdateNotice()[_0x27a24e(0x155)](()=>null):Promise[_0x27a24e(0x147)](null),_0x2b37ae=await _0x1fe145['execute'](_0x26d380);return attachUpdateNotice(_0x2b37ae,await _0x21a6cc);}};}function shouldResolveUpdateNotice(_0x234f8e){const _0x181fc4=a279_0x9cee;return _0x234f8e[_0x181fc4(0x153)]===_0x181fc4(0x15f)&&!_0x234f8e[_0x181fc4(0x167)];}function attachUpdateNotice(_0x576cdd,_0x278d29){const _0x4216b3=a279_0x9cee;if(!_0x278d29||!_0x576cdd||typeof _0x576cdd!==_0x4216b3(0x176))return _0x576cdd;const _0x399145=_0x576cdd,_0x397909=typeof _0x399145[_0x4216b3(0x172)]===_0x4216b3(0x176)&&_0x399145[_0x4216b3(0x172)]!==null?_0x399145[_0x4216b3(0x172)]:{};return{..._0x399145,'_notice':{..._0x397909,'update':_0x278d29}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2cc3f3,_0x202b43){const _0x453b34=a280_0x4d0c,_0x3adcc7=_0x2cc3f3();while(!![]){try{const _0xb48415=parseInt(_0x453b34(0x7c))/0x1+-parseInt(_0x453b34(0x7f))/0x2+-parseInt(_0x453b34(0x81))/0x3+-parseInt(_0x453b34(0x7d))/0x4*(parseInt(_0x453b34(0x77))/0x5)+parseInt(_0x453b34(0x78))/0x6*(-parseInt(_0x453b34(0x7e))/0x7)+-parseInt(_0x453b34(0x79))/0x8*(-parseInt(_0x453b34(0x82))/0x9)+-parseInt(_0x453b34(0x7b))/0xa*(-parseInt(_0x453b34(0x7a))/0xb);if(_0xb48415===_0x202b43)break;else _0x3adcc7['push'](_0x3adcc7['shift']());}catch(_0x159368){_0x3adcc7['push'](_0x3adcc7['shift']());}}}(a280_0x3a0e,0x400d5));import{buildSchemaPayload as a280_0x389408}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a280_0x3a0e(){const _0xf5495a=['13509zbbpLR','713245ailwsh','816846lwMtIz','2056wzogEa','1490995JAlIJh','40VjBjoe','434894NpPmdM','4lkofxl','21PtGsdQ','665828MinAmN','../commands/registry.js','649464BDsiGn'];a280_0x3a0e=function(){return _0xf5495a;};return a280_0x3a0e();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a280_0x4d0c(_0x4a1394,_0x1d2cde){_0x4a1394=_0x4a1394-0x77;const _0x3a0ede=a280_0x3a0e();let _0x4d0c45=_0x3a0ede[_0x4a1394];return _0x4d0c45;}import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x52544c=a280_0x4d0c,{serviceRegistry:_0x344f3a,findDefinition:_0x45b34d}=await import(_0x52544c(0x80));return a280_0x389408({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x344f3a,'buildAllFlags':buildAllFlags,'findDefinition':_0x45b34d});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3d74ec,_0x572ae4){const _0x3ba7e1=a281_0x5b98,_0x538e94=_0x3d74ec();while(!![]){try{const _0x3a71df=parseInt(_0x3ba7e1(0x15d))/0x1+parseInt(_0x3ba7e1(0x177))/0x2*(-parseInt(_0x3ba7e1(0x16f))/0x3)+parseInt(_0x3ba7e1(0x162))/0x4*(-parseInt(_0x3ba7e1(0x165))/0x5)+parseInt(_0x3ba7e1(0x174))/0x6*(-parseInt(_0x3ba7e1(0x170))/0x7)+parseInt(_0x3ba7e1(0x15b))/0x8*(-parseInt(_0x3ba7e1(0x168))/0x9)+parseInt(_0x3ba7e1(0x16d))/0xa+-parseInt(_0x3ba7e1(0x163))/0xb*(-parseInt(_0x3ba7e1(0x17a))/0xc);if(_0x3a71df===_0x572ae4)break;else _0x538e94['push'](_0x538e94['shift']());}catch(_0x1180b6){_0x538e94['push'](_0x538e94['shift']());}}}(a281_0x2346,0x63ff2));import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function assertSupportedCommandFlags(_0x1b3193,_0x294509){const _0x2432ba=a281_0x5b98;if(!_0x1b3193['strictFlags'])return;const _0x68f7e=new Set([_0x2432ba(0x17b),_0x2432ba(0x15f)]),_0x11353b=GLOBAL_FLAGS[_0x2432ba(0x179)](_0x2735d2=>PIPELINE_FLAG_NAMES[_0x2432ba(0x176)](_0x2735d2['name']));for(const _0x281d9b of[..._0x1b3193[_0x2432ba(0x175)],..._0x11353b]){addFlagCandidates(_0x68f7e,_0x281d9b);}for(const [_0x370cc6,_0x1587f8]of Object[_0x2432ba(0x173)](_0x294509)){if(!isExplicitValue(_0x1587f8)||_0x68f7e[_0x2432ba(0x176)](_0x370cc6))continue;const _0x1db5a3=GLOBAL_FLAGS[_0x2432ba(0x164)](_0x4f5f9d=>_0x4f5f9d[_0x2432ba(0x16e)]===_0x370cc6)?.[_0x2432ba(0x178)]??toKebabCase(_0x370cc6);throw CliErrors['validation'](_0x2432ba(0x16b)+_0x1db5a3+_0x2432ba(0x169)+CLI_BIN_NAME+'\x20'+_0x1b3193[_0x2432ba(0x167)]+'\x20'+_0x1b3193[_0x2432ba(0x16c)]+'`.',_0x2432ba(0x166)+CLI_BIN_NAME+'\x20'+_0x1b3193[_0x2432ba(0x167)]+'\x20'+_0x1b3193[_0x2432ba(0x16c)]+_0x2432ba(0x160));}}function addFlagCandidates(_0x758a64,_0x3e6aaf){const _0x45f6e0=a281_0x5b98,_0xdb5606=_0x45f6e0(0x16e)in _0x3e6aaf?[_0x3e6aaf['name'],_0x3e6aaf['meowKey']]:[_0x3e6aaf[_0x45f6e0(0x178)],_0x3e6aaf[_0x45f6e0(0x16a)]];for(const _0x1ccc84 of _0xdb5606){if(!_0x1ccc84)continue;_0x758a64[_0x45f6e0(0x15e)](_0x1ccc84),_0x758a64['add'](toCamelCase(_0x1ccc84));}}function isExplicitValue(_0x217867){const _0x3e1557=a281_0x5b98;return _0x217867!==undefined&&_0x217867!==null&&_0x217867!==![]&&(!Array['isArray'](_0x217867)||_0x217867[_0x3e1557(0x15c)]>0x0);}function a281_0x2346(){const _0x1a3d70=['version','\x20--help`\x20to\x20view\x20the\x20current\x20command\x20contract.','toLowerCase','3144txFAew','3178637OYIArl','find','3455UXEHXB','Run\x20`','service','89055PTCtuU','\x20for\x20`','alias','Unsupported\x20flag\x20--','command','4067660ybtUgl','meowKey','102ChawjO','3941JEimRc','replace','$1-$2','entries','7026QrbANa','flags','has','24056QSaxdv','name','filter','72ItBOBq','help','600ykeyhY','length','622494Ogayfl','add'];a281_0x2346=function(){return _0x1a3d70;};return a281_0x2346();}function toCamelCase(_0x5b6acf){const _0x406d4f=a281_0x5b98;return _0x5b6acf[_0x406d4f(0x171)](/-([a-z])/g,(_0x41dd38,_0x542ec4)=>_0x542ec4['toUpperCase']());}function a281_0x5b98(_0x4aed9d,_0x1ad571){_0x4aed9d=_0x4aed9d-0x15b;const _0x234604=a281_0x2346();let _0x5b985a=_0x234604[_0x4aed9d];return _0x5b985a;}function toKebabCase(_0x220d94){const _0x3302db=a281_0x5b98;return _0x220d94[_0x3302db(0x171)](/([a-z0-9])([A-Z])/g,_0x3302db(0x172))[_0x3302db(0x161)]();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a282_0x2ba2(_0x5848b6,_0x37c5e5){_0x5848b6=_0x5848b6-0x83;var _0x369923=a282_0x3699();var _0x2ba218=_0x369923[_0x5848b6];return _0x2ba218;}(function(_0x18c46e,_0x1de1b1){var _0x4e14b2=a282_0x2ba2,_0x2dfcc1=_0x18c46e();while(!![]){try{var _0x4cebb1=parseInt(_0x4e14b2(0x88))/0x1*(-parseInt(_0x4e14b2(0x8f))/0x2)+-parseInt(_0x4e14b2(0x83))/0x3*(-parseInt(_0x4e14b2(0x8a))/0x4)+parseInt(_0x4e14b2(0x86))/0x5+parseInt(_0x4e14b2(0x8b))/0x6*(-parseInt(_0x4e14b2(0x87))/0x7)+-parseInt(_0x4e14b2(0x8c))/0x8*(parseInt(_0x4e14b2(0x89))/0x9)+parseInt(_0x4e14b2(0x8d))/0xa*(-parseInt(_0x4e14b2(0x84))/0xb)+-parseInt(_0x4e14b2(0x8e))/0xc*(-parseInt(_0x4e14b2(0x85))/0xd);if(_0x4cebb1===_0x1de1b1)break;else _0x2dfcc1['push'](_0x2dfcc1['shift']());}catch(_0xd1c4a4){_0x2dfcc1['push'](_0x2dfcc1['shift']());}}}(a282_0x3699,0x767ac));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';function a282_0x3699(){var _0x5e808d=['24xrjAgG','4005630pAGDCV','404868YUxjwV','277110vKsmct','9oBrBlO','22MVaMMH','1079bhgapg','989640PQNhll','4716509oHOUuU','6GlzsNH','1296531Oliyik','300596kRfYfe','6hJqums'];a282_0x3699=function(){return _0x5e808d;};return a282_0x3699();}
|
|
@@ -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.5";
|
|
2
|
+
export declare const GIT_TAG = "v2.5.2-beta.5";
|
|
3
|
+
export declare const GIT_COMMIT = "5ddf301b";
|
|
4
|
+
export declare const BUILD_TIME = "2026-09-03T06:28:30.176Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a283_0x5783(_0x124dc6,_0x32de29){_0x124dc6=_0x124dc6-0x147;const _0x6592f3=a283_0x6592();let _0x578371=_0x6592f3[_0x124dc6];return _0x578371;}const a283_0x581065=a283_0x5783;(function(_0x31fd27,_0x5d0eaa){const _0x583229=a283_0x5783,_0xbe2073=_0x31fd27();while(!![]){try{const _0x543fab=-parseInt(_0x583229(0x154))/0x1*(-parseInt(_0x583229(0x14f))/0x2)+parseInt(_0x583229(0x155))/0x3*(parseInt(_0x583229(0x149))/0x4)+parseInt(_0x583229(0x147))/0x5*(parseInt(_0x583229(0x153))/0x6)+-parseInt(_0x583229(0x14a))/0x7*(parseInt(_0x583229(0x152))/0x8)+parseInt(_0x583229(0x14e))/0x9*(-parseInt(_0x583229(0x14d))/0xa)+-parseInt(_0x583229(0x14b))/0xb+-parseInt(_0x583229(0x151))/0xc*(-parseInt(_0x583229(0x14c))/0xd);if(_0x543fab===_0x5d0eaa)break;else _0xbe2073['push'](_0xbe2073['shift']());}catch(_0x34320d){_0xbe2073['push'](_0xbe2073['shift']());}}}(a283_0x6592,0x1e989));function a283_0x6592(){const _0x282fae=['176xEYlBm','240294KHouET','3ZHjznY','9FbVdfQ','5ddf301b','20AqksUB','2.5.2-beta.5','304452ZELZvW','60683vPPyjW','1354650ygyIWZ','9347OpYZta','289090jJVWEY','54SBNoJD','54018AyZxhd','2026-09-03T06:28:30.176Z','2388jDCnjz'];a283_0x6592=function(){return _0x282fae;};return a283_0x6592();}export const VERSION=a283_0x581065(0x148);export const GIT_TAG='v2.5.2-beta.5';export const GIT_COMMIT=a283_0x581065(0x156);export const BUILD_TIME=a283_0x581065(0x150);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a284_0x1d76(_0x4de1b9,_0x452a44){_0x4de1b9=_0x4de1b9-0x120;const _0x567a9f=a284_0x567a();let _0x1d767a=_0x567a9f[_0x4de1b9];return _0x1d767a;}const a284_0x63310d=a284_0x1d76;(function(_0x1bfab9,_0x1da68d){const _0xacb898=a284_0x1d76,_0x3b831e=_0x1bfab9();while(!![]){try{const _0x5934fc=-parseInt(_0xacb898(0x127))/0x1*(parseInt(_0xacb898(0x135))/0x2)+parseInt(_0xacb898(0x124))/0x3*(-parseInt(_0xacb898(0x128))/0x4)+parseInt(_0xacb898(0x140))/0x5*(parseInt(_0xacb898(0x145))/0x6)+parseInt(_0xacb898(0x12b))/0x7+parseInt(_0xacb898(0x131))/0x8*(-parseInt(_0xacb898(0x142))/0x9)+-parseInt(_0xacb898(0x13b))/0xa+parseInt(_0xacb898(0x134))/0xb;if(_0x5934fc===_0x1da68d)break;else _0x3b831e['push'](_0x3b831e['shift']());}catch(_0x3bbbce){_0x3b831e['push'](_0x3b831e['shift']());}}}(a284_0x567a,0x86379));export const ROUTING_CATALOG_DIGEST=a284_0x63310d(0x146);export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id',a284_0x63310d(0x121)];export const ENABLED_REGION_VALUES=['cn','id'];function a284_0x567a(){const _0x528b31=['2XVBZtg','https://user.lovrabet.id','https://skills-daily.lovrabet.com','https://g.lovrabet.com','https://daily-api.lovrabet.com','https://runtime.lovrabet.ai','5079830NfQDLm','https://api.lovrabet.ai','https://api.lovrabet.id','https://dev.lovrabet.com','https://user.lovrabet.com','30165LQteNO','https://daily-runtime.lovrabet.com','1700073CSJfxf','Indonesia','https://dev.lovrabet.id','438IojCsB','3106fb4f7940b1f4446307e8a7f0c6f6e4a71affd6f8ebe7e5f23e055c08ca3f','https://user-daily.lovrabet.com','global','https://skills.lovrabet.ai','china','114ncyyyR','https://g.lovrabet.id','https://runtime.lovrabet.com','508375MubYgO','84460YJvbgL','indonesia','https://app.lovrabet.com','5239003NRUKtd','Global','https://api.lovrabet.com','Mainland\x20China','https://runtime.lovrabet.id','https://skills.lovrabet.com','40FFNXLb','https://app.lovrabet.ai','https://cdnjs.cloudflare.com/ajax/libs','23365408BnbsGE'];a284_0x567a=function(){return _0x528b31;};return a284_0x567a();}export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a284_0x63310d(0x12e),'aliases':[a284_0x63310d(0x123)],'serviceDomains':{'production':{'user':a284_0x63310d(0x13f),'api':'https://api.lovrabet.com','runtime':a284_0x63310d(0x126),'skill':a284_0x63310d(0x130),'kb':a284_0x63310d(0x12d),'app':a284_0x63310d(0x12a)},'daily':{'user':a284_0x63310d(0x120),'api':a284_0x63310d(0x139),'runtime':a284_0x63310d(0x141),'skill':a284_0x63310d(0x137),'kb':a284_0x63310d(0x139),'app':'https://daily.lovrabet.com'}},'cdn':{'libraries':'https://g.alicdn.com/code/lib','lovrabet':a284_0x63310d(0x138)},'local':{'origin':a284_0x63310d(0x13e)}},'id':{'enabled':!![],'label':a284_0x63310d(0x143),'aliases':[a284_0x63310d(0x129)],'serviceDomains':{'production':{'user':a284_0x63310d(0x136),'api':a284_0x63310d(0x13d),'runtime':a284_0x63310d(0x12f),'skill':'https://skills.lovrabet.id','kb':a284_0x63310d(0x13d),'app':'https://app.lovrabet.id'}},'cdn':{'libraries':'https://cdnjs.cloudflare.com/ajax/libs','lovrabet':a284_0x63310d(0x125)},'local':{'origin':a284_0x63310d(0x144)}},'global':{'enabled':![],'label':a284_0x63310d(0x12c),'aliases':[],'serviceDomains':{'production':{'user':'https://user.lovrabet.ai','api':'https://api.lovrabet.ai','runtime':a284_0x63310d(0x13a),'skill':a284_0x63310d(0x122),'kb':a284_0x63310d(0x13c),'app':a284_0x63310d(0x132)}},'cdn':{'libraries':a284_0x63310d(0x133)},'local':{'origin':'https://dev.lovrabet.ai'}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a285_0x1934(_0x520ac8,_0x4154f5){_0x520ac8=_0x520ac8-0x10b;const _0x50a407=a285_0x50a4();let _0x19348d=_0x50a407[_0x520ac8];return _0x19348d;}const a285_0x5eab6c=a285_0x1934;(function(_0x5ac76d,_0x2d8c51){const _0x15c076=a285_0x1934,_0xe48e78=_0x5ac76d();while(!![]){try{const _0x13cc68=parseInt(_0x15c076(0x117))/0x1+-parseInt(_0x15c076(0x113))/0x2*(-parseInt(_0x15c076(0x11c))/0x3)+parseInt(_0x15c076(0x115))/0x4+-parseInt(_0x15c076(0x11a))/0x5*(parseInt(_0x15c076(0x119))/0x6)+-parseInt(_0x15c076(0x111))/0x7*(-parseInt(_0x15c076(0x10d))/0x8)+parseInt(_0x15c076(0x11d))/0x9*(-parseInt(_0x15c076(0x10c))/0xa)+-parseInt(_0x15c076(0x11f))/0xb;if(_0x13cc68===_0x2d8c51)break;else _0xe48e78['push'](_0xe48e78['shift']());}catch(_0x2ab3b0){_0xe48e78['push'](_0xe48e78['shift']());}}}(a285_0x50a4,0x3ce58));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a285_0x5eab6c(0x10f);export const ENTERPRISE_ROUTING_PROTOCOL=a285_0x5eab6c(0x116);export const ENTERPRISE_ROUTING_KIND=a285_0x5eab6c(0x11b);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=['userDomain',a285_0x5eab6c(0x10b),a285_0x5eab6c(0x11e),a285_0x5eab6c(0x114),'kbDomain',a285_0x5eab6c(0x118),a285_0x5eab6c(0x120),'certificateDomain'];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a285_0x5eab6c(0x112),a285_0x5eab6c(0x10b),a285_0x5eab6c(0x11e),a285_0x5eab6c(0x114),'kbDomain',a285_0x5eab6c(0x118)];function a285_0x50a4(){const _0x5b3d29=['lovrabet-routing/v1','432654weZKLH','appDomain','51918sFYphG','255DmXwUB','enterprise','51zYxjCi','3031902hxzYVm','runtimeDomain','973203UpyhGP','localDomain','apiDomain','10btjNkX','221608NneHln','libraries','d83929cbced3959b68435d16131e5ff12a4bfc6095e6b7f15bada2bfd03a72cc','lovrabet','63LJCrBR','userDomain','46186ESxKdj','skillDomain','166168mIDbkU'];a285_0x50a4=function(){return _0x5b3d29;};return a285_0x50a4();}export const ENTERPRISE_ROUTING_CDN_FIELDS=[a285_0x5eab6c(0x10e),a285_0x5eab6c(0x110)];export const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS=[a285_0x5eab6c(0x10e),a285_0x5eab6c(0x110)];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a286_0x4d88(_0x30338b,_0x3965af){_0x30338b=_0x30338b-0xac;var _0x3a4800=a286_0x3a48();var _0x4d88cd=_0x3a4800[_0x30338b];return _0x4d88cd;}(function(_0x36c8b2,_0x28111e){var _0x549044=a286_0x4d88,_0x140452=_0x36c8b2();while(!![]){try{var _0x2ebe1c=-parseInt(_0x549044(0xb3))/0x1+parseInt(_0x549044(0xb4))/0x2*(parseInt(_0x549044(0xb0))/0x3)+-parseInt(_0x549044(0xb7))/0x4*(parseInt(_0x549044(0xb9))/0x5)+-parseInt(_0x549044(0xb1))/0x6*(-parseInt(_0x549044(0xb8))/0x7)+-parseInt(_0x549044(0xad))/0x8+parseInt(_0x549044(0xbb))/0x9*(parseInt(_0x549044(0xb5))/0xa)+parseInt(_0x549044(0xba))/0xb;if(_0x2ebe1c===_0x28111e)break;else _0x140452['push'](_0x140452['shift']());}catch(_0x531ade){_0x140452['push'](_0x140452['shift']());}}}(a286_0x3a48,0x1a94d));import a286_0x14c5a8 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0xce3a22=a286_0x4d88;console[_0xce3a22(0xb6)](),console['log'](a286_0x14c5a8['green']['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console[_0xce3a22(0xb6)](),console[_0xce3a22(0xb6)](_0xce3a22(0xae)+a286_0x14c5a8[_0xce3a22(0xb2)][_0xce3a22(0xac)](CLI_BIN_NAME+'\x20--help')+_0xce3a22(0xaf)),console[_0xce3a22(0xb6)]();}function a286_0x3a48(){var _0x4578b3=['3639MdqZof','6OobWtL','green','2396ndDBjz','122NUbzfH','290CxcXqA','log','8hkioTy','1123570ojcOBy','426290deDvzX','1380368rrhDeT','25101PVanTn','bold','1272664lVTKZi','\x20\x20Use\x20','\x20to\x20view\x20available\x20commands.'];a286_0x3a48=function(){return _0x4578b3;};return a286_0x3a48();}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x217cac,_0x31c944){const _0x32ed6c=a287_0x4896,_0x2ef711=_0x217cac();while(!![]){try{const _0x4ca558=parseInt(_0x32ed6c(0x17b))/0x1*(-parseInt(_0x32ed6c(0x16f))/0x2)+-parseInt(_0x32ed6c(0x174))/0x3+-parseInt(_0x32ed6c(0x17d))/0x4+-parseInt(_0x32ed6c(0x171))/0x5*(parseInt(_0x32ed6c(0x176))/0x6)+parseInt(_0x32ed6c(0x182))/0x7*(-parseInt(_0x32ed6c(0x17a))/0x8)+-parseInt(_0x32ed6c(0x180))/0x9*(-parseInt(_0x32ed6c(0x17e))/0xa)+parseInt(_0x32ed6c(0x181))/0xb;if(_0x4ca558===_0x31c944)break;else _0x2ef711['push'](_0x2ef711['shift']());}catch(_0x5b8e04){_0x2ef711['push'](_0x2ef711['shift']());}}}(a287_0x5ab7,0x49d9c));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a287_0x4896(_0x71a8b7,_0x1fba15){_0x71a8b7=_0x71a8b7-0x16f;const _0x5ab7fa=a287_0x5ab7();let _0x489604=_0x5ab7fa[_0x71a8b7];return _0x489604;}export async function runPostinstall(_0x183aad={}){const _0x27159e=a287_0x4896,_0x27529a=installBuiltinSkill(_0x183aad);if(_0x27529a['ok']){const _0x5e4c9f=_0x27529a['changed']?_0x27159e(0x177):_0x27159e(0x183),_0x9859e2=_0x27529a['installedPath']?'\x20at\x20'+_0x27529a[_0x27159e(0x170)]:'\x20via\x20skills@latest';return console['log']('Rabetbase\x20Built-in\x20Skill\x20'+_0x27529a[_0x27159e(0x17c)]+'\x20'+_0x5e4c9f+_0x9859e2),_0x27529a;}const _0x38b127=_0x27159e(0x179)+(_0x27529a[_0x27159e(0x173)]??_0x27159e(0x17f))+']\x20'+(_0x27529a['error']??'Installation\x20failed')+'.\x20'+(_0x27159e(0x175)+_0x27529a['repairCommand']);if(_0x27529a[_0x27159e(0x173)]===_0x27159e(0x172))throw new Error(_0x38b127);return console[_0x27159e(0x178)](_0x38b127),_0x27529a;}function a287_0x5ab7(){const _0x535417=['2271835mJUEAc','SOURCE_INVALID','code','213459pPnMNX','Repair\x20with:\x20','6okbXOl','installed','warn','[BUILTIN_SKILL_INSTALL_','1136224qpUltr','8371cgCYMD','skillVersion','152532GpCWmc','350CkuTwy','FAILED','134613UjuUuv','7814576iXTcDd','14wlKWNO','already\x20current','20sDKfel','installedPath'];a287_0x5ab7=function(){return _0x535417;};return a287_0x5ab7();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x483fdf,_0x32a95d){const _0x5d66e1=a288_0x5519,_0x58afef=_0x483fdf();while(!![]){try{const _0x2fb3be=-parseInt(_0x5d66e1(0x67))/0x1+-parseInt(_0x5d66e1(0x68))/0x2*(-parseInt(_0x5d66e1(0x76))/0x3)+parseInt(_0x5d66e1(0x6c))/0x4+-parseInt(_0x5d66e1(0x69))/0x5+parseInt(_0x5d66e1(0x6d))/0x6+parseInt(_0x5d66e1(0x78))/0x7*(parseInt(_0x5d66e1(0x7a))/0x8)+-parseInt(_0x5d66e1(0x74))/0x9;if(_0x2fb3be===_0x32a95d)break;else _0x58afef['push'](_0x58afef['shift']());}catch(_0x3c0d4e){_0x58afef['push'](_0x58afef['shift']());}}}(a288_0x3e46,0xbcdbe));function a288_0x5519(_0x542d20,_0x3d1a2d){_0x542d20=_0x542d20-0x67;const _0x3e4658=a288_0x3e46();let _0x55191e=_0x3e4658[_0x542d20];return _0x55191e;}const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x1f9215,_0x3d928f,_0x33a650){const _0x4d666c=a288_0x5519,_0x56b2ef=normalizeText(_0x1f9215[_0x4d666c(0x75)],DESCRIPTION_MAX_LENGTH),_0x1e12e6=_0x56b2ef||normalizeText(defaultDescription(requireWriteRisk(_0x1f9215),_0x3d928f),DESCRIPTION_MAX_LENGTH);return{'operation':_0x3d928f,'risk':requireWriteRisk(_0x1f9215),'description':_0x1e12e6,..._0x33a650?{'signal':_0x33a650}:{}};}function requireWriteRisk(_0x1a0921){const _0xec5cd4=a288_0x5519;if(_0x1a0921[_0xec5cd4(0x71)]===_0xec5cd4(0x6f)||_0x1a0921[_0xec5cd4(0x71)]===_0xec5cd4(0x6e))return _0x1a0921[_0xec5cd4(0x71)];throw new Error('Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.');}function a288_0x3e46(){const _0x956cc3=['3964338SnJEPV','confirmationDescription','3sehzRX','.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.','1430044MNXjJZ','string','56pzutgX','911299DIoVzJ','826186btNaEQ','1610225VfctkF','replace','This\x20will\x20run\x20the\x20write\x20','1082776jXUVFT','2001366OmedCG','high-risk-write','write','.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.','risk','slice','trim'];a288_0x3e46=function(){return _0x956cc3;};return a288_0x3e46();}function defaultDescription(_0x49ddbc,_0x4b0182){const _0x369456=a288_0x5519;if(_0x49ddbc===_0x369456(0x6e))return'This\x20will\x20run\x20the\x20high-risk\x20write\x20'+_0x4b0182+_0x369456(0x70);return _0x369456(0x6b)+_0x4b0182+_0x369456(0x77);}function normalizeText(_0x45badb,_0x333f74){const _0x4e9a0c=a288_0x5519;if(typeof _0x45badb!==_0x4e9a0c(0x79))return'';return _0x45badb['replace'](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x4e9a0c(0x6a)](/\s+/g,'\x20')[_0x4e9a0c(0x73)]()[_0x4e9a0c(0x72)](0x0,_0x333f74);}
|