@lovrabet/rabetbase-cli 2.5.4-beta.2 → 2.5.4-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.d.ts +2 -0
- package/lib/commands/user-account/feishu-bind.js +1 -0
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +2 -0
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +3 -2
- package/skills/rabetbase/references/rabetbase-user-account.md +20 -2
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const a296_0x5c2e02=a296_0x2358;(function(_0x347599,_0x2a2496){const _0x46a384=a296_0x2358,_0x4e5934=_0x347599();while(!![]){try{const _0xc329e9=parseInt(_0x46a384(0x19f))/0x1*(-parseInt(_0x46a384(0x16e))/0x2)+parseInt(_0x46a384(0x192))/0x3+-parseInt(_0x46a384(0x1a6))/0x4+parseInt(_0x46a384(0x1ac))/0x5+-parseInt(_0x46a384(0x191))/0x6*(-parseInt(_0x46a384(0x17e))/0x7)+parseInt(_0x46a384(0x190))/0x8*(-parseInt(_0x46a384(0x15a))/0x9)+-parseInt(_0x46a384(0x199))/0xa;if(_0xc329e9===_0x2a2496)break;else _0x4e5934['push'](_0x4e5934['shift']());}catch(_0x1d0706){_0x4e5934['push'](_0x4e5934['shift']());}}}(a296_0x4ede,0xd697b));const MYBATIS_OUTER_TAGS=new Map([[a296_0x5c2e02(0x14b),a296_0x5c2e02(0x18d)],[a296_0x5c2e02(0x1a9),a296_0x5c2e02(0x1a2)],[a296_0x5c2e02(0x163),a296_0x5c2e02(0x172)],[a296_0x5c2e02(0x198),a296_0x5c2e02(0x1a1)]]),MYBATIS_DYNAMIC_TAGS=new Set(['if',a296_0x5c2e02(0x15b),a296_0x5c2e02(0x185),'choose','when',a296_0x5c2e02(0x18e),a296_0x5c2e02(0x1a5),a296_0x5c2e02(0x175),a296_0x5c2e02(0x1ad),a296_0x5c2e02(0x14a),a296_0x5c2e02(0x1b1)]),MYBATIS_BRANCH_TAGS=new Set(['if',a296_0x5c2e02(0x185),a296_0x5c2e02(0x164),a296_0x5c2e02(0x1ab),a296_0x5c2e02(0x18e)]);export const MYBATIS_DYNAMIC_START_MARKER=a296_0x5c2e02(0x1b0);export const MYBATIS_DYNAMIC_END_MARKER=a296_0x5c2e02(0x155);export const MYBATIS_INCLUDE_MARKER=a296_0x5c2e02(0x17c);const UNRESOLVED_SQL_FRAGMENT=a296_0x5c2e02(0x1a3),MYBATIS_OUTER_TAG_PATTERN=new RegExp(a296_0x5c2e02(0x17f)+[...MYBATIS_OUTER_TAGS[a296_0x5c2e02(0x186)]()][a296_0x5c2e02(0x181)]('|')+a296_0x5c2e02(0x161),'i');export function normalizeSqlForStaticAnalysis(_0xfcf15e){const _0xe41442=a296_0x5c2e02,_0x1e0576=typeof _0xfcf15e==='string'?_0xfcf15e:'';if(detectSqlSourceMode(_0x1e0576)===_0xe41442(0x19e))return{'sql':_0x1e0576,'mode':_0xe41442(0x19e)};let _0x25fdf8=0x0,_0x1e152f='',_0x16f27a,_0x174768=![],_0x3ef655=![];const _0x136055=[];while(_0x25fdf8<_0x1e0576[_0xe41442(0x176)]){if(_0x1e0576['startsWith'](_0xe41442(0x157),_0x25fdf8)){const _0x22bca8=_0x1e0576[_0xe41442(0x149)](_0xe41442(0x151),_0x25fdf8+0x4);if(_0x22bca8<0x0)return invalidMybatisSource(_0xe41442(0x193));_0x1e152f+='\x20',_0x25fdf8=_0x22bca8+0x3;continue;}if(_0x1e0576['startsWith'](_0xe41442(0x19b),_0x25fdf8)){if(!_0x174768||_0x3ef655)return invalidMybatisSource(_0xe41442(0x152));const _0x22a391=_0x1e0576[_0xe41442(0x149)](_0xe41442(0x154),_0x25fdf8+0x9);if(_0x22a391<0x0)return invalidMybatisSource('Unterminated\x20CDATA\x20section.');_0x1e152f+=_0x1e0576[_0xe41442(0x17b)](_0x25fdf8+0x9,_0x22a391),_0x25fdf8=_0x22a391+0x3;continue;}if(_0x1e0576['startsWith']('<?',_0x25fdf8)){if(_0x174768)return invalidMybatisSource(_0xe41442(0x196));const _0x2062ec=_0x1e0576[_0xe41442(0x149)]('?>',_0x25fdf8+0x2);if(_0x2062ec<0x0)return invalidMybatisSource('Unterminated\x20XML\x20declaration.');_0x1e152f+='\x20',_0x25fdf8=_0x2062ec+0x2;continue;}if(_0x1e0576[_0x25fdf8]!=='<'){const _0x4893af=_0x1e0576['indexOf']('<',_0x25fdf8),_0x61013e=_0x4893af<0x0?_0x1e0576['length']:_0x4893af,_0x1ae66a=_0x1e0576[_0xe41442(0x17b)](_0x25fdf8,_0x61013e);if((!_0x174768||_0x3ef655)&&_0x1ae66a['trim']())return invalidMybatisSource('SQL\x20text\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.');if(_0x174768&&!_0x3ef655){const _0x3cc5a6=decodeXmlEntities(_0x1ae66a);if(_0x3cc5a6===null)return invalidMybatisSource(_0xe41442(0x14c));_0x1e152f+=_0x3cc5a6;}else _0x1e152f+='\x20';_0x25fdf8=_0x61013e;continue;}const _0x1f5f01=findXmlTagEnd(_0x1e0576,_0x25fdf8);if(_0x1f5f01<0x0)return invalidMybatisSource('Unterminated\x20MyBatis\x20XML\x20tag.');const _0x53866d=_0x1e0576[_0xe41442(0x17b)](_0x25fdf8,_0x1f5f01+0x1),_0x21104a=/^<\s*(\/?)\s*([A-Za-z][\w:-]*)([\s\S]*?)(\/?)\s*>$/[_0xe41442(0x1b2)](_0x53866d);if(!_0x21104a)return invalidMybatisSource(_0xe41442(0x14e));const _0x230a01=_0x21104a[0x1]==='/',_0x3be770=_0x21104a[0x2]??'',_0x8ab5b=_0x3be770[_0xe41442(0x195)](),_0x237c75=_0x21104a[0x3]??'',_0x2e3f5e=_0x21104a[0x4]==='/',_0x570d7d=MYBATIS_OUTER_TAGS[_0xe41442(0x15f)](_0x8ab5b);if(!_0x570d7d&&!MYBATIS_DYNAMIC_TAGS[_0xe41442(0x167)](_0x8ab5b))return invalidMybatisSource(_0xe41442(0x178)+_0x8ab5b+'>.');if(!_0x570d7d&&_0x3be770!==_0x8ab5b)return invalidMybatisSource(_0xe41442(0x158)+_0x3be770+'>.');if(_0x230a01){if(_0x237c75['trim']()||_0x2e3f5e)return invalidMybatisSource(_0xe41442(0x177)+_0x3be770+'>.');const _0x3b050e=_0x136055['at'](-0x1);if(!_0x3b050e||(_0x3b050e[_0xe41442(0x183)]?_0x3b050e[_0xe41442(0x166)]!==_0x8ab5b:_0x3b050e[_0xe41442(0x19a)]!==_0x3be770))return invalidMybatisSource(_0xe41442(0x1af)+_0x3be770+'>.');_0x136055[_0xe41442(0x17a)]();if(_0x3b050e[_0xe41442(0x183)])_0x3ef655=!![];_0x1e152f+=MYBATIS_BRANCH_TAGS['has'](_0x8ab5b)?'\x20'+MYBATIS_DYNAMIC_END_MARKER+'\x20':'\x20';}else{if(!hasWellFormedXmlAttributes(_0x237c75))return invalidMybatisSource('Invalid\x20attributes\x20on\x20MyBatis\x20XML\x20tag:\x20<'+_0x3be770+'>.');if(_0x8ab5b===_0xe41442(0x1b1)&&(!_0x2e3f5e||_0x136055['at'](-0x1)?.['tagName']!=='include'))return invalidMybatisSource('MyBatis\x20<property>\x20must\x20be\x20a\x20self-closing\x20direct\x20child\x20of\x20<include>.');if(_0x570d7d){if(_0x174768||_0x136055[_0xe41442(0x176)]>0x0)return invalidMybatisSource(_0xe41442(0x160));_0x174768=!![],_0x3ef655=_0x2e3f5e,_0x16f27a=_0x570d7d;}else{if(!_0x174768||_0x3ef655)return invalidMybatisSource(_0xe41442(0x18b)+_0x3be770+'>.');}_0x1e152f+=_0x8ab5b===_0xe41442(0x15b)?_0xe41442(0x1a7):_0x8ab5b===_0xe41442(0x175)?_0xe41442(0x1a8):_0x8ab5b==='include'?'\x20'+MYBATIS_INCLUDE_MARKER+'\x20':MYBATIS_BRANCH_TAGS[_0xe41442(0x167)](_0x8ab5b)&&!_0x2e3f5e?'\x20'+MYBATIS_DYNAMIC_START_MARKER+'\x20':'\x20',!_0x2e3f5e&&_0x136055['push']({'rawName':_0x3be770,'tagName':_0x8ab5b,'outer':!!_0x570d7d});}_0x25fdf8=_0x1f5f01+0x1;}if(_0x136055[_0xe41442(0x176)]>0x0)return invalidMybatisSource('Unclosed\x20MyBatis\x20XML\x20tag:\x20<'+_0x136055['at'](-0x1)?.['rawName']+'>.');if(!_0x174768||!_0x3ef655)return invalidMybatisSource(_0xe41442(0x162));return{'sql':_0x1e152f[_0xe41442(0x1a5)](),'mode':_0xe41442(0x14d),..._0x16f27a?{'statementType':_0x16f27a}:{}};}function a296_0x2358(_0x3d8eae,_0x2513d3){_0x3d8eae=_0x3d8eae-0x149;const _0x4edef4=a296_0x4ede();let _0x2358c7=_0x4edef4[_0x3d8eae];return _0x2358c7;}function hasWellFormedXmlAttributes(_0x486ae1){const _0x555d34=a296_0x5c2e02;let _0x5eda80=0x0;const _0x14ac0f=new Set();while(_0x5eda80<_0x486ae1['length']){while(_0x5eda80<_0x486ae1[_0x555d34(0x176)]&&/\s/['test'](_0x486ae1[_0x5eda80]??''))_0x5eda80+=0x1;if(_0x5eda80>=_0x486ae1['length'])return!![];const _0x4d1239=/^[A-Za-z_:][\w:.-]*/['exec'](_0x486ae1[_0x555d34(0x17b)](_0x5eda80)),_0x30ed1e=_0x4d1239?.[0x0];if(!_0x30ed1e||_0x14ac0f['has'](_0x30ed1e))return![];_0x14ac0f[_0x555d34(0x153)](_0x30ed1e),_0x5eda80+=_0x30ed1e[_0x555d34(0x176)];while(_0x5eda80<_0x486ae1[_0x555d34(0x176)]&&/\s/[_0x555d34(0x187)](_0x486ae1[_0x5eda80]??''))_0x5eda80+=0x1;if(_0x486ae1[_0x5eda80]!=='=')return![];_0x5eda80+=0x1;while(_0x5eda80<_0x486ae1[_0x555d34(0x176)]&&/\s/[_0x555d34(0x187)](_0x486ae1[_0x5eda80]??''))_0x5eda80+=0x1;const _0x21c56c=_0x486ae1[_0x5eda80];if(_0x21c56c!=='\x22'&&_0x21c56c!=='\x27')return![];_0x5eda80+=0x1;const _0x6ae2f4=_0x486ae1[_0x555d34(0x149)](_0x21c56c,_0x5eda80);if(_0x6ae2f4<0x0)return![];if(decodeXmlEntities(_0x486ae1[_0x555d34(0x17b)](_0x5eda80,_0x6ae2f4))===null)return![];_0x5eda80=_0x6ae2f4+0x1;}return!![];}function a296_0x4ede(){const _0xce09b0=['UNKNOWN','DDL\x20statements\x20require\x20explicit\x20review','some','MyBatis\x20dynamic\x20tag\x20must\x20be\x20inside\x20the\x20statement\x20wrapper:\x20<','includes','SELECT','otherwise','\x20statements\x20require\x20explicit\x20review.\x20Local\x20analysis\x20does\x20not\x20authorize\x20saving\x20or\x20execution.','1972616uoNERp','611670HPPcbR','3666816lTGLup','Unterminated\x20XML\x20comment.','match','toLowerCase','XML\x20declarations\x20must\x20precede\x20the\x20MyBatis\x20statement\x20wrapper.','SHARE','delete','19246940KkPopV','rawName','<![CDATA[','LOCK\x20IN\x20SHARE\x20MODE','reason','sql','110UMbUIO','SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements','DELETE','INSERT','__RABETBASE_UNRESOLVED_SQL_FRAGMENT__','WITH','trim','1355488wQLHsn','\x20WHERE\x20','\x20SET\x20','insert','isDangerous','when','7456335EmPSXL','bind','NOT','Mismatched\x20MyBatis\x20XML\x20closing\x20tag:\x20</','__RABETBASE_MYBATIS_DYNAMIC_START__','property','exec','indexOf','include','select','Invalid\x20XML\x20entity\x20reference.','mybatisXml','Invalid\x20MyBatis\x20XML\x20tag.','replaceAll','Local\x20analysis\x20could\x20not\x20parse\x20the\x20WITH\x20prefix;\x20this\x20is\x20a\x20local\x20capability\x20limit,\x20not\x20a\x20platform\x20rejection.','-->','CDATA\x20sections\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','add',']]>','__RABETBASE_MYBATIS_DYNAMIC_END__','parseInt','<!--','MyBatis\x20dynamic\x20tag\x20names\x20must\x20be\x20lowercase:\x20<','startsWith','9bQyXab','where','Unable\x20to\x20detect\x20SQL\x20type.\x20','SET','\x20with\x20parameters:\x20','get','Multiple\x20MyBatis\x20statement\x20wrappers\x20are\x20not\x20supported.',')\x5cb','MyBatis\x20XML\x20must\x20contain\x20exactly\x20one\x20complete\x20statement\x20wrapper.','update','choose','RECURSIVE','tagName','has','filter','push','from','SQL\x20content\x20is\x20empty','replace','MATERIALIZED','15520ixrxuy','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','DELETE\x20statements\x20require\x20explicit\x20review','type','UPDATE','matchAll','DDL','set','length','Invalid\x20MyBatis\x20XML\x20closing\x20tag:\x20</','Unsupported\x20MyBatis\x20XML\x20tag:\x20<','statementType','pop','slice','__RABETBASE_MYBATIS_INCLUDE_UNRESOLVED__','error','105axuzVW','^<\x5cs*(?:','&','join','unknown\x20table(s)','outer','FOR','foreach','keys','test'];a296_0x4ede=function(){return _0xce09b0;};return a296_0x4ede();}export function detectSqlSourceMode(_0xddbae7){const _0x5f4aaf=a296_0x5c2e02;let _0x25f1af=0x0;const _0x10e9a0=()=>{const _0x39e080=a296_0x2358;while(_0x25f1af<_0xddbae7[_0x39e080(0x176)]&&/\s/[_0x39e080(0x187)](_0xddbae7[_0x25f1af]??''))_0x25f1af+=0x1;};_0x10e9a0();while(_0x25f1af<_0xddbae7['length']){if(_0xddbae7[_0x5f4aaf(0x159)](_0x5f4aaf(0x157),_0x25f1af)){const _0x215954=_0xddbae7[_0x5f4aaf(0x149)](_0x5f4aaf(0x151),_0x25f1af+0x4);if(_0x215954<0x0)return _0x5f4aaf(0x14d);_0x25f1af=_0x215954+0x3,_0x10e9a0();continue;}if(_0xddbae7[_0x5f4aaf(0x159)]('<?',_0x25f1af)){const _0x4b46b1=_0xddbae7['indexOf']('?>',_0x25f1af+0x2);if(_0x4b46b1<0x0)return'mybatisXml';_0x25f1af=_0x4b46b1+0x2,_0x10e9a0();continue;}break;}return MYBATIS_OUTER_TAG_PATTERN[_0x5f4aaf(0x187)](_0xddbae7[_0x5f4aaf(0x17b)](_0x25f1af))?_0x5f4aaf(0x14d):_0x5f4aaf(0x19e);}function invalidMybatisSource(_0x4cecab){return{'sql':'','mode':'mybatisXml','error':_0x4cecab};}function findXmlTagEnd(_0x2dd77b,_0x4a0735){const _0x14e26b=a296_0x5c2e02;let _0x582dbb;for(let _0x196bbe=_0x4a0735+0x1;_0x196bbe<_0x2dd77b[_0x14e26b(0x176)];_0x196bbe+=0x1){const _0x4c7d60=_0x2dd77b[_0x196bbe];if(_0x582dbb){if(_0x4c7d60===_0x582dbb)_0x582dbb=undefined;continue;}if(_0x4c7d60==='\x22'||_0x4c7d60==='\x27'){_0x582dbb=_0x4c7d60;continue;}if(_0x4c7d60==='>')return _0x196bbe;}return-0x1;}function decodeXmlEntities(_0x26fc24){const _0x31220a=a296_0x5c2e02;let _0x24ccc6=![];const _0x5ecd29=_0x26fc24[_0x31220a(0x16c)](/&(?:#x[0-9a-f]+;|#[0-9]+;|[A-Za-z_:][\w:.-]*;)?/g,_0x5b2ec4=>{const _0x46552e=_0x31220a;if(_0x5b2ec4==='<')return'<';if(_0x5b2ec4==='>')return'>';if(_0x5b2ec4==='"')return'\x22';if(_0x5b2ec4===''')return'\x27';if(_0x5b2ec4===_0x46552e(0x180))return'&';const _0x15b8f6=/^&#(?:x([0-9a-f]+)|([0-9]+));$/[_0x46552e(0x1b2)](_0x5b2ec4);if(_0x15b8f6){const _0x5067b3=_0x15b8f6[0x1],_0x2eeb33=_0x15b8f6[0x2],_0xe760fc=Number[_0x46552e(0x156)](_0x5067b3??_0x2eeb33??'',_0x5067b3?0x10:0xa);if(isValidXmlCharacter(_0xe760fc))return String['fromCodePoint'](_0xe760fc);}return _0x24ccc6=!![],'';});return _0x24ccc6?null:_0x5ecd29;}function isValidXmlCharacter(_0x471383){return _0x471383===0x9||_0x471383===0xa||_0x471383===0xd||_0x471383>=0x20&&_0x471383<=0xd7ff||_0x471383>=0xe000&&_0x471383<=0xfffd||_0x471383>=0x10000&&_0x471383<=0x10ffff;}export function detectSqlType(_0x544f8a){return detectNormalizedSqlType(normalizeSqlForStaticAnalysis(_0x544f8a));}function detectNormalizedSqlType(_0x30a927){const _0x3e06a3=a296_0x5c2e02;if(_0x30a927['error'])return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':_0x30a927[_0x3e06a3(0x17d)]};if(!_0x30a927['sql'][_0x3e06a3(0x1a5)]())return{'type':_0x3e06a3(0x188),'isSelectOnly':![],'isDangerous':![],'reason':_0x3e06a3(0x16b)};const _0x2156fa=tokenizeSqlForTypeAnalysis(_0x30a927[_0x3e06a3(0x19e)]),_0x458e07=_0x2156fa[_0x3e06a3(0x168)](_0x59f941=>_0x59f941!==MYBATIS_DYNAMIC_START_MARKER&&_0x59f941!==MYBATIS_DYNAMIC_END_MARKER),_0x37bd27=findMainStatementIndex(_0x458e07);if(_0x37bd27<0x0)return{'type':_0x3e06a3(0x188),'isSelectOnly':![],'isDangerous':![],'reason':_0x3e06a3(0x150)};const _0x184873=_0x458e07[_0x37bd27]??'',_0xf1fd29=_0x30a927[_0x3e06a3(0x179)]??_0x184873,_0x59437f=_0x2156fa[_0x3e06a3(0x18a)](_0x40cce4=>/^(DELETE|DROP|ALTER|CREATE|TRUNCATE)$/[_0x3e06a3(0x187)](_0x40cce4)),_0x210919=new Set();let _0x1dcc3c=![];for(let _0x1c3c9e=0x0;_0x1c3c9e<_0x2156fa[_0x3e06a3(0x176)];_0x1c3c9e+=0x1){const _0x4e4036=_0x2156fa[_0x1c3c9e];(_0x4e4036===_0x3e06a3(0x172)||_0x4e4036===_0x3e06a3(0x197))&&isLockingClauseKeyword(_0x2156fa,_0x1c3c9e)&&(_0x210919[_0x3e06a3(0x153)](_0x1c3c9e),_0x1dcc3c=!![]);if(_0x2156fa[_0x3e06a3(0x17b)](_0x1c3c9e,_0x1c3c9e+0x4)['join']('\x20')===_0x3e06a3(0x19c))_0x1dcc3c=!![];}if(_0xf1fd29===_0x3e06a3(0x18d)){const _0x1ac4fc=_0x2156fa['some']((_0xfcd751,_0x8febe)=>/^(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)$/[_0x3e06a3(0x187)](_0xfcd751)&&!_0x210919[_0x3e06a3(0x167)](_0x8febe));return{'type':_0x3e06a3(0x18d),'isSelectOnly':!_0x1ac4fc&&!_0x1dcc3c,'isLockingRead':_0x1dcc3c,'isDangerous':_0x1ac4fc,'reason':_0x1ac4fc?_0x3e06a3(0x16f):undefined};}if(_0xf1fd29===_0x3e06a3(0x1a2))return{'type':_0x3e06a3(0x1a2),'isSelectOnly':![],'isDangerous':_0x59437f,'reason':_0x59437f?_0x3e06a3(0x1a0):undefined};if(_0xf1fd29===_0x3e06a3(0x172))return{'type':_0x3e06a3(0x172),'isSelectOnly':![],'isDangerous':_0x59437f,'reason':_0x59437f?_0x3e06a3(0x1a0):undefined};if(_0xf1fd29===_0x3e06a3(0x1a1))return{'type':_0x3e06a3(0x1a1),'isSelectOnly':![],'isDangerous':!![],'reason':_0x3e06a3(0x170)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0x184873))return{'type':_0x3e06a3(0x174),'isSelectOnly':![],'isDangerous':!![],'reason':_0x3e06a3(0x189)};return{'type':_0x3e06a3(0x188),'isSelectOnly':![],'isDangerous':![]};}function isLockingClauseKeyword(_0x4d05dc,_0x1d6846){const _0x2272b6=a296_0x5c2e02,_0x55c69c=_0x4d05dc[_0x1d6846]===_0x2272b6(0x172)?[[_0x2272b6(0x184)],[_0x2272b6(0x184),'NO','KEY']]:[['FOR'],[_0x2272b6(0x184),'KEY']],_0x4dd011=_0x55c69c[_0x2272b6(0x18a)](_0x203f03=>{const _0x20e019=_0x2272b6,_0x2a12b0=_0x1d6846-_0x203f03[_0x20e019(0x176)];return _0x2a12b0>=0x0&&_0x4d05dc['slice'](_0x2a12b0,_0x1d6846)[_0x20e019(0x181)]('\x20')===_0x203f03[_0x20e019(0x181)]('\x20');});if(!_0x4dd011)return![];return!_0x4d05dc[_0x2272b6(0x17b)](_0x1d6846+0x1,_0x1d6846+0x5)[_0x2272b6(0x18c)](_0x2272b6(0x15d));}function findMainStatementIndex(_0x2eadd4){const _0x5920ea=a296_0x5c2e02;if(_0x2eadd4[0x0]!==_0x5920ea(0x1a4))return 0x0;let _0x48c374=_0x2eadd4[0x1]===_0x5920ea(0x165)?0x2:0x1;while(_0x48c374<_0x2eadd4[_0x5920ea(0x176)]){const _0x5017a6=_0x2eadd4[_0x48c374];if(!_0x5017a6||!(/^[A-Z_][\w$]*$/[_0x5920ea(0x187)](_0x5017a6)||/^[`"]/['test'](_0x5017a6)))return-0x1;_0x48c374+=0x1;if(_0x2eadd4[_0x48c374]==='('){_0x48c374=skipSqlParentheses(_0x2eadd4,_0x48c374);if(_0x48c374<0x0)return-0x1;}if(_0x2eadd4[_0x48c374]!=='AS')return-0x1;_0x48c374+=0x1;if(_0x2eadd4[_0x48c374]===_0x5920ea(0x1ae)&&_0x2eadd4[_0x48c374+0x1]===_0x5920ea(0x16d))_0x48c374+=0x2;else{if(_0x2eadd4[_0x48c374]==='MATERIALIZED')_0x48c374+=0x1;}_0x48c374=skipSqlParentheses(_0x2eadd4,_0x48c374);if(_0x48c374<0x0)return-0x1;if(_0x2eadd4[_0x48c374]!==','){const _0x58dbbc=_0x2eadd4[_0x48c374]==='('?_0x48c374+0x1:_0x48c374;return/^(SELECT|INSERT|UPDATE|DELETE)$/[_0x5920ea(0x187)](_0x2eadd4[_0x58dbbc]??'')?_0x58dbbc:-0x1;}_0x48c374+=0x1;}return-0x1;}function skipSqlParentheses(_0x3c6c96,_0xfa44cc){const _0x2d4c24=a296_0x5c2e02;if(_0x3c6c96[_0xfa44cc]!=='(')return-0x1;let _0xe520a4=0x0;for(let _0x35062d=_0xfa44cc;_0x35062d<_0x3c6c96[_0x2d4c24(0x176)];_0x35062d+=0x1){const _0x43ca11=_0x3c6c96[_0x35062d];if(_0x43ca11===';')return-0x1;if(_0x43ca11==='(')_0xe520a4+=0x1;if(_0x43ca11===')'&&--_0xe520a4===0x0)return _0x35062d+0x1;}return-0x1;}function stripStaticAnalysisMarkers(_0x10c063){const _0x5c535d=a296_0x5c2e02;return _0x10c063[_0x5c535d(0x14f)](MYBATIS_DYNAMIC_START_MARKER,'\x20')['replaceAll'](MYBATIS_DYNAMIC_END_MARKER,'\x20')[_0x5c535d(0x14f)](MYBATIS_INCLUDE_MARKER,'\x20'+UNRESOLVED_SQL_FRAGMENT+'\x20');}function tokenizeSqlForTypeAnalysis(_0x3bd4b4){const _0xaef30e=a296_0x5c2e02,_0x145bff=[],_0x157133=/\/\*[\s\S]*?\*\/|--[^\r\n]*|[#$]\{[^}]*\}|#[^\r\n]*|'(?:''|\\[\s\S]|[^'\\])*'|"(?:""|\\[\s\S]|[^"\\])*"|`(?:``|\\[\s\S]|[^`\\])*`|@[A-Za-z_]\w*|[A-Za-z_]\w*|\S/g;for(const _0x55a722 of _0x3bd4b4['matchAll'](_0x157133)){const _0x53d6ae=_0x55a722[0x0];if(_0x53d6ae[_0xaef30e(0x159)]('/*')||_0x53d6ae[_0xaef30e(0x159)]('--')||_0x53d6ae[_0xaef30e(0x159)]('#')&&!_0x53d6ae[_0xaef30e(0x159)]('#{'))continue;_0x145bff[_0xaef30e(0x169)](/^["`]/[_0xaef30e(0x187)](_0x53d6ae)?_0x53d6ae:/^[\x27@#$]/['test'](_0x53d6ae)?'?':_0x53d6ae['toUpperCase']());}return _0x145bff;}function extractTables(_0x106994,_0x51d535){const _0x2b1738=a296_0x5c2e02,_0xc3273c=_0x106994[_0x2b1738(0x16c)](/#\{[^}]*\}/g,'?')[_0x2b1738(0x16c)](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')[_0x2b1738(0x16c)](/--.*$/gm,'')['replace'](/\/\*[\s\S]*?\*\//g,''),_0x5af903=[],_0x4cb8b7=_0xc3273c[_0x2b1738(0x194)](/FROM\s+([^\s,)(]+)/i);addTable(_0x5af903,_0x4cb8b7?.[0x1]);for(const _0x5c63c0 of _0xc3273c[_0x2b1738(0x173)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){addTable(_0x5af903,_0x5c63c0[0x1]);}const _0x3ab276=_0xc3273c[_0x2b1738(0x194)](/INTO\s+([^\s(]+)/i);addTable(_0x5af903,_0x3ab276?.[0x1]);if(_0x51d535===_0x2b1738(0x172)){const _0x2db4b0=_0xc3273c[_0x2b1738(0x194)](/UPDATE\s+([^\s,)(]+)/i);addTable(_0x5af903,_0x2db4b0?.[0x1]);}return _0x5af903;}function addTable(_0xdf7daa,_0x475cf4){const _0x3f0f95=a296_0x5c2e02,_0x5cfe18=_0x475cf4?.[_0x3f0f95(0x16c)](/[`"]/g,'');_0x5cfe18&&_0x5cfe18!==UNRESOLVED_SQL_FRAGMENT&&!_0xdf7daa['includes'](_0x5cfe18)&&_0xdf7daa['push'](_0x5cfe18);}function extractParameters(_0x328bc7){const _0x2a80ad=a296_0x5c2e02,_0xb19131=new Set();for(const _0x45346f of _0x328bc7[_0x2a80ad(0x173)](/[#$]\{\s*([A-Za-z_][\w.]*)\s*(?=[,}])/g)){if(_0x45346f[0x1])_0xb19131[_0x2a80ad(0x153)](_0x45346f[0x1]);}return Array[_0x2a80ad(0x16a)](_0xb19131);}export function validateSql(_0x6d8eec){const _0x49cf11=a296_0x5c2e02,_0x464191=normalizeSqlForStaticAnalysis(_0x6d8eec),_0x513c49=detectNormalizedSqlType(_0x464191),_0x5ac7e0=stripStaticAnalysisMarkers(_0x464191[_0x49cf11(0x19e)]),_0x199fd4=_0x464191[_0x49cf11(0x17d)]?[]:extractTables(_0x5ac7e0,_0x513c49[_0x49cf11(0x171)]),_0x3e9241=_0x464191[_0x49cf11(0x17d)]?[]:extractParameters(_0x5ac7e0);if(_0x513c49[_0x49cf11(0x1aa)])return{'valid':![],'sqlType':_0x513c49,'tables':_0x199fd4,'parameters':_0x3e9241,'message':_0x513c49[_0x49cf11(0x19d)]||_0x513c49[_0x49cf11(0x171)]+_0x49cf11(0x18f)};if(_0x513c49['type']===_0x49cf11(0x188))return{'valid':![],'sqlType':_0x513c49,'tables':_0x199fd4,'parameters':_0x3e9241,'message':_0x464191['error']?'Unable\x20to\x20detect\x20SQL\x20type.\x20'+_0x464191[_0x49cf11(0x17d)]:_0x513c49[_0x49cf11(0x19d)]?_0x49cf11(0x15c)+_0x513c49[_0x49cf11(0x19d)]:'Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'};return{'valid':!![],'sqlType':_0x513c49,'tables':_0x199fd4,'parameters':_0x3e9241,'message':_0x513c49[_0x49cf11(0x171)]+'\x20query\x20targeting\x20'+(_0x199fd4['length']?_0x199fd4[_0x49cf11(0x181)](',\x20'):_0x49cf11(0x182))+(_0x3e9241['length']?_0x49cf11(0x15e)+_0x3e9241[_0x49cf11(0x181)](',\x20'):'')};}
|
|
1
|
+
const a297_0x112381=a297_0x5a06;(function(_0x2371f7,_0x10617c){const _0x30d972=a297_0x5a06,_0x4b6af1=_0x2371f7();while(!![]){try{const _0x30cc72=-parseInt(_0x30d972(0xa9))/0x1*(parseInt(_0x30d972(0x95))/0x2)+parseInt(_0x30d972(0xe4))/0x3*(parseInt(_0x30d972(0xd0))/0x4)+parseInt(_0x30d972(0xab))/0x5+parseInt(_0x30d972(0xe5))/0x6*(-parseInt(_0x30d972(0xbd))/0x7)+parseInt(_0x30d972(0xe1))/0x8+parseInt(_0x30d972(0xb6))/0x9*(-parseInt(_0x30d972(0xb4))/0xa)+parseInt(_0x30d972(0xdb))/0xb;if(_0x30cc72===_0x10617c)break;else _0x4b6af1['push'](_0x4b6af1['shift']());}catch(_0x3d54e4){_0x4b6af1['push'](_0x4b6af1['shift']());}}}(a297_0x59a5,0xbb97f));const MYBATIS_OUTER_TAGS=new Map([[a297_0x112381(0xa5),a297_0x112381(0xe9)],[a297_0x112381(0xa3),a297_0x112381(0x9a)],[a297_0x112381(0x9b),a297_0x112381(0xe6)],[a297_0x112381(0xf0),'DELETE']]),MYBATIS_DYNAMIC_TAGS=new Set(['if',a297_0x112381(0xd1),a297_0x112381(0xdd),a297_0x112381(0xda),a297_0x112381(0xf5),a297_0x112381(0x96),a297_0x112381(0xba),a297_0x112381(0xc1),'bind',a297_0x112381(0xc9),a297_0x112381(0x9f)]),MYBATIS_BRANCH_TAGS=new Set(['if',a297_0x112381(0xdd),'choose','when',a297_0x112381(0x96)]);export const MYBATIS_DYNAMIC_START_MARKER=a297_0x112381(0xea);export const MYBATIS_DYNAMIC_END_MARKER=a297_0x112381(0xe7);export const MYBATIS_INCLUDE_MARKER=a297_0x112381(0xc2);const UNRESOLVED_SQL_FRAGMENT=a297_0x112381(0xe2),MYBATIS_OUTER_TAG_PATTERN=new RegExp(a297_0x112381(0xfe)+[...MYBATIS_OUTER_TAGS[a297_0x112381(0xbf)]()][a297_0x112381(0xc3)]('|')+a297_0x112381(0xa6),'i');export function normalizeSqlForStaticAnalysis(_0x1b2cd7){const _0x355409=a297_0x112381,_0x729f7b=typeof _0x1b2cd7===_0x355409(0xf1)?_0x1b2cd7:'';if(detectSqlSourceMode(_0x729f7b)===_0x355409(0xec))return{'sql':_0x729f7b,'mode':_0x355409(0xec)};let _0x1d705a=0x0,_0x3360ee='',_0x35016a,_0x48a7a2=![],_0x2f15a7=![];const _0x521e36=[];while(_0x1d705a<_0x729f7b[_0x355409(0xbb)]){if(_0x729f7b[_0x355409(0xdf)](_0x355409(0x9d),_0x1d705a)){const _0x3ea524=_0x729f7b['indexOf']('-->',_0x1d705a+0x4);if(_0x3ea524<0x0)return invalidMybatisSource(_0x355409(0xd9));_0x3360ee+='\x20',_0x1d705a=_0x3ea524+0x3;continue;}if(_0x729f7b[_0x355409(0xdf)](_0x355409(0xeb),_0x1d705a)){if(!_0x48a7a2||_0x2f15a7)return invalidMybatisSource(_0x355409(0xcd));const _0x4c0341=_0x729f7b[_0x355409(0xf4)](_0x355409(0xaf),_0x1d705a+0x9);if(_0x4c0341<0x0)return invalidMybatisSource(_0x355409(0x98));_0x3360ee+=_0x729f7b[_0x355409(0x9e)](_0x1d705a+0x9,_0x4c0341),_0x1d705a=_0x4c0341+0x3;continue;}if(_0x729f7b['startsWith']('<?',_0x1d705a)){if(_0x48a7a2)return invalidMybatisSource(_0x355409(0xf3));const _0x4ed773=_0x729f7b[_0x355409(0xf4)]('?>',_0x1d705a+0x2);if(_0x4ed773<0x0)return invalidMybatisSource(_0x355409(0xa2));_0x3360ee+='\x20',_0x1d705a=_0x4ed773+0x2;continue;}if(_0x729f7b[_0x1d705a]!=='<'){const _0x555846=_0x729f7b[_0x355409(0xf4)]('<',_0x1d705a),_0x1b9724=_0x555846<0x0?_0x729f7b[_0x355409(0xbb)]:_0x555846,_0x16ce42=_0x729f7b[_0x355409(0x9e)](_0x1d705a,_0x1b9724);if((!_0x48a7a2||_0x2f15a7)&&_0x16ce42[_0x355409(0xba)]())return invalidMybatisSource('SQL\x20text\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.');if(_0x48a7a2&&!_0x2f15a7){const _0x11f6cc=decodeXmlEntities(_0x16ce42);if(_0x11f6cc===null)return invalidMybatisSource(_0x355409(0xf2));_0x3360ee+=_0x11f6cc;}else _0x3360ee+='\x20';_0x1d705a=_0x1b9724;continue;}const _0x5bc3f4=findXmlTagEnd(_0x729f7b,_0x1d705a);if(_0x5bc3f4<0x0)return invalidMybatisSource(_0x355409(0xc8));const _0x16bf72=_0x729f7b[_0x355409(0x9e)](_0x1d705a,_0x5bc3f4+0x1),_0x30e7f3=/^<\s*(\/?)\s*([A-Za-z][\w:-]*)([\s\S]*?)(\/?)\s*>$/[_0x355409(0xfb)](_0x16bf72);if(!_0x30e7f3)return invalidMybatisSource('Invalid\x20MyBatis\x20XML\x20tag.');const _0x4f2973=_0x30e7f3[0x1]==='/',_0x418e2d=_0x30e7f3[0x2]??'',_0x1d9076=_0x418e2d['toLowerCase'](),_0x418b29=_0x30e7f3[0x3]??'',_0x22e18e=_0x30e7f3[0x4]==='/',_0x35cb1b=MYBATIS_OUTER_TAGS[_0x355409(0xa4)](_0x1d9076);if(!_0x35cb1b&&!MYBATIS_DYNAMIC_TAGS['has'](_0x1d9076))return invalidMybatisSource('Unsupported\x20MyBatis\x20XML\x20tag:\x20<'+_0x1d9076+'>.');if(!_0x35cb1b&&_0x418e2d!==_0x1d9076)return invalidMybatisSource(_0x355409(0xd4)+_0x418e2d+'>.');if(_0x4f2973){if(_0x418b29[_0x355409(0xba)]()||_0x22e18e)return invalidMybatisSource(_0x355409(0xaa)+_0x418e2d+'>.');const _0x4117b7=_0x521e36['at'](-0x1);if(!_0x4117b7||(_0x4117b7[_0x355409(0xc6)]?_0x4117b7['tagName']!==_0x1d9076:_0x4117b7['rawName']!==_0x418e2d))return invalidMybatisSource('Mismatched\x20MyBatis\x20XML\x20closing\x20tag:\x20</'+_0x418e2d+'>.');_0x521e36['pop']();if(_0x4117b7[_0x355409(0xc6)])_0x2f15a7=!![];_0x3360ee+=MYBATIS_BRANCH_TAGS[_0x355409(0xdc)](_0x1d9076)?'\x20'+MYBATIS_DYNAMIC_END_MARKER+'\x20':'\x20';}else{if(!hasWellFormedXmlAttributes(_0x418b29))return invalidMybatisSource('Invalid\x20attributes\x20on\x20MyBatis\x20XML\x20tag:\x20<'+_0x418e2d+'>.');if(_0x1d9076===_0x355409(0x9f)&&(!_0x22e18e||_0x521e36['at'](-0x1)?.[_0x355409(0xad)]!==_0x355409(0xc9)))return invalidMybatisSource(_0x355409(0xc0));if(_0x35cb1b){if(_0x48a7a2||_0x521e36[_0x355409(0xbb)]>0x0)return invalidMybatisSource(_0x355409(0x9c));_0x48a7a2=!![],_0x2f15a7=_0x22e18e,_0x35016a=_0x35cb1b;}else{if(!_0x48a7a2||_0x2f15a7)return invalidMybatisSource('MyBatis\x20dynamic\x20tag\x20must\x20be\x20inside\x20the\x20statement\x20wrapper:\x20<'+_0x418e2d+'>.');}_0x3360ee+=_0x1d9076===_0x355409(0xd1)?_0x355409(0xca):_0x1d9076==='set'?_0x355409(0xd2):_0x1d9076===_0x355409(0xc9)?'\x20'+MYBATIS_INCLUDE_MARKER+'\x20':MYBATIS_BRANCH_TAGS[_0x355409(0xdc)](_0x1d9076)&&!_0x22e18e?'\x20'+MYBATIS_DYNAMIC_START_MARKER+'\x20':'\x20',!_0x22e18e&&_0x521e36[_0x355409(0xa0)]({'rawName':_0x418e2d,'tagName':_0x1d9076,'outer':!!_0x35cb1b});}_0x1d705a=_0x5bc3f4+0x1;}if(_0x521e36['length']>0x0)return invalidMybatisSource(_0x355409(0xb7)+_0x521e36['at'](-0x1)?.[_0x355409(0xb5)]+'>.');if(!_0x48a7a2||!_0x2f15a7)return invalidMybatisSource(_0x355409(0xf8));return{'sql':_0x3360ee[_0x355409(0xba)](),'mode':'mybatisXml',..._0x35016a?{'statementType':_0x35016a}:{}};}function hasWellFormedXmlAttributes(_0x4fecde){const _0x128517=a297_0x112381;let _0x137fd4=0x0;const _0x316bf0=new Set();while(_0x137fd4<_0x4fecde[_0x128517(0xbb)]){while(_0x137fd4<_0x4fecde[_0x128517(0xbb)]&&/\s/[_0x128517(0xe3)](_0x4fecde[_0x137fd4]??''))_0x137fd4+=0x1;if(_0x137fd4>=_0x4fecde[_0x128517(0xbb)])return!![];const _0x243b6a=/^[A-Za-z_:][\w:.-]*/[_0x128517(0xfb)](_0x4fecde[_0x128517(0x9e)](_0x137fd4)),_0x284c29=_0x243b6a?.[0x0];if(!_0x284c29||_0x316bf0[_0x128517(0xdc)](_0x284c29))return![];_0x316bf0[_0x128517(0xbc)](_0x284c29),_0x137fd4+=_0x284c29['length'];while(_0x137fd4<_0x4fecde['length']&&/\s/[_0x128517(0xe3)](_0x4fecde[_0x137fd4]??''))_0x137fd4+=0x1;if(_0x4fecde[_0x137fd4]!=='=')return![];_0x137fd4+=0x1;while(_0x137fd4<_0x4fecde['length']&&/\s/[_0x128517(0xe3)](_0x4fecde[_0x137fd4]??''))_0x137fd4+=0x1;const _0x155c95=_0x4fecde[_0x137fd4];if(_0x155c95!=='\x22'&&_0x155c95!=='\x27')return![];_0x137fd4+=0x1;const _0x36598f=_0x4fecde['indexOf'](_0x155c95,_0x137fd4);if(_0x36598f<0x0)return![];if(decodeXmlEntities(_0x4fecde[_0x128517(0x9e)](_0x137fd4,_0x36598f))===null)return![];_0x137fd4=_0x36598f+0x1;}return!![];}export function detectSqlSourceMode(_0xbe02e4){const _0x37abb3=a297_0x112381;let _0x2ed980=0x0;const _0x560390=()=>{while(_0x2ed980<_0xbe02e4['length']&&/\s/['test'](_0xbe02e4[_0x2ed980]??''))_0x2ed980+=0x1;};_0x560390();while(_0x2ed980<_0xbe02e4[_0x37abb3(0xbb)]){if(_0xbe02e4[_0x37abb3(0xdf)](_0x37abb3(0x9d),_0x2ed980)){const _0x14fc57=_0xbe02e4[_0x37abb3(0xf4)](_0x37abb3(0xcf),_0x2ed980+0x4);if(_0x14fc57<0x0)return'mybatisXml';_0x2ed980=_0x14fc57+0x3,_0x560390();continue;}if(_0xbe02e4[_0x37abb3(0xdf)]('<?',_0x2ed980)){const _0x156728=_0xbe02e4[_0x37abb3(0xf4)]('?>',_0x2ed980+0x2);if(_0x156728<0x0)return'mybatisXml';_0x2ed980=_0x156728+0x2,_0x560390();continue;}break;}return MYBATIS_OUTER_TAG_PATTERN[_0x37abb3(0xe3)](_0xbe02e4[_0x37abb3(0x9e)](_0x2ed980))?_0x37abb3(0xb0):'sql';}function invalidMybatisSource(_0x2f3f84){const _0x1f76fb=a297_0x112381;return{'sql':'','mode':_0x1f76fb(0xb0),'error':_0x2f3f84};}function findXmlTagEnd(_0x4a4ecc,_0x8727db){const _0x38541f=a297_0x112381;let _0x12d283;for(let _0x3c27c5=_0x8727db+0x1;_0x3c27c5<_0x4a4ecc[_0x38541f(0xbb)];_0x3c27c5+=0x1){const _0x2b63b8=_0x4a4ecc[_0x3c27c5];if(_0x12d283){if(_0x2b63b8===_0x12d283)_0x12d283=undefined;continue;}if(_0x2b63b8==='\x22'||_0x2b63b8==='\x27'){_0x12d283=_0x2b63b8;continue;}if(_0x2b63b8==='>')return _0x3c27c5;}return-0x1;}function decodeXmlEntities(_0x1b5959){const _0x39a623=a297_0x112381;let _0x5be4e5=![];const _0x25b5a4=_0x1b5959[_0x39a623(0x97)](/&(?:#x[0-9a-f]+;|#[0-9]+;|[A-Za-z_:][\w:.-]*;)?/g,_0x55a2a7=>{const _0x234d51=_0x39a623;if(_0x55a2a7===_0x234d51(0xd6))return'<';if(_0x55a2a7==='>')return'>';if(_0x55a2a7===_0x234d51(0xfc))return'\x22';if(_0x55a2a7===_0x234d51(0xf7))return'\x27';if(_0x55a2a7==='&')return'&';const _0x189aec=/^&#(?:x([0-9a-f]+)|([0-9]+));$/['exec'](_0x55a2a7);if(_0x189aec){const _0x537153=_0x189aec[0x1],_0x58c541=_0x189aec[0x2],_0x288cdc=Number[_0x234d51(0xce)](_0x537153??_0x58c541??'',_0x537153?0x10:0xa);if(isValidXmlCharacter(_0x288cdc))return String[_0x234d51(0xb3)](_0x288cdc);}return _0x5be4e5=!![],'';});return _0x5be4e5?null:_0x25b5a4;}function isValidXmlCharacter(_0x2e3060){return _0x2e3060===0x9||_0x2e3060===0xa||_0x2e3060===0xd||_0x2e3060>=0x20&&_0x2e3060<=0xd7ff||_0x2e3060>=0xe000&&_0x2e3060<=0xfffd||_0x2e3060>=0x10000&&_0x2e3060<=0x10ffff;}function a297_0x5a06(_0x2d02b1,_0x2b7c20){_0x2d02b1=_0x2d02b1-0x95;const _0x59a578=a297_0x59a5();let _0x5a062b=_0x59a578[_0x2d02b1];return _0x5a062b;}export function detectSqlType(_0x5bda37){return detectNormalizedSqlType(normalizeSqlForStaticAnalysis(_0x5bda37));}function detectNormalizedSqlType(_0xfd41ad){const _0x10c456=a297_0x112381;if(_0xfd41ad[_0x10c456(0xf9)])return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':_0xfd41ad[_0x10c456(0xf9)]};if(!_0xfd41ad[_0x10c456(0xec)][_0x10c456(0xba)]())return{'type':_0x10c456(0xd5),'isSelectOnly':![],'isDangerous':![],'reason':_0x10c456(0xef)};const _0x3302f0=tokenizeSqlForTypeAnalysis(_0xfd41ad[_0x10c456(0xec)]),_0x5abb0d=_0x3302f0[_0x10c456(0xc4)](_0x45dda4=>_0x45dda4!==MYBATIS_DYNAMIC_START_MARKER&&_0x45dda4!==MYBATIS_DYNAMIC_END_MARKER),_0x357efd=findMainStatementIndex(_0x5abb0d);if(_0x357efd<0x0)return{'type':_0x10c456(0xd5),'isSelectOnly':![],'isDangerous':![],'reason':_0x10c456(0xa1)};const _0x53bebf=_0x5abb0d[_0x357efd]??'',_0x74d56f=_0xfd41ad[_0x10c456(0xd8)]??_0x53bebf,_0x19c3e8=_0x3302f0[_0x10c456(0xd3)](_0x335a81=>/^(DELETE|DROP|ALTER|CREATE|TRUNCATE)$/['test'](_0x335a81)),_0x466cdb=new Set();let _0x127dc3=![];for(let _0x1049e2=0x0;_0x1049e2<_0x3302f0[_0x10c456(0xbb)];_0x1049e2+=0x1){const _0x4471a8=_0x3302f0[_0x1049e2];(_0x4471a8==='UPDATE'||_0x4471a8===_0x10c456(0xbe))&&isLockingClauseKeyword(_0x3302f0,_0x1049e2)&&(_0x466cdb['add'](_0x1049e2),_0x127dc3=!![]);if(_0x3302f0['slice'](_0x1049e2,_0x1049e2+0x4)[_0x10c456(0xc3)]('\x20')===_0x10c456(0xb8))_0x127dc3=!![];}if(_0x74d56f==='SELECT'){const _0x4df48d=_0x3302f0[_0x10c456(0xd3)]((_0x15de3c,_0x51d03e)=>/^(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)$/[_0x10c456(0xe3)](_0x15de3c)&&!_0x466cdb[_0x10c456(0xdc)](_0x51d03e));return{'type':_0x10c456(0xe9),'isSelectOnly':!_0x4df48d&&!_0x127dc3,'isLockingRead':_0x127dc3,'isDangerous':_0x4df48d,'reason':_0x4df48d?'SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT':undefined};}if(_0x74d56f===_0x10c456(0x9a))return{'type':_0x10c456(0x9a),'isSelectOnly':![],'isDangerous':_0x19c3e8,'reason':_0x19c3e8?_0x10c456(0xde):undefined};if(_0x74d56f===_0x10c456(0xe6))return{'type':'UPDATE','isSelectOnly':![],'isDangerous':_0x19c3e8,'reason':_0x19c3e8?_0x10c456(0xde):undefined};if(_0x74d56f==='DELETE')return{'type':_0x10c456(0xfd),'isSelectOnly':![],'isDangerous':!![],'reason':_0x10c456(0xcc)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x10c456(0xe3)](_0x53bebf))return{'type':'DDL','isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20require\x20explicit\x20review'};return{'type':_0x10c456(0xd5),'isSelectOnly':![],'isDangerous':![]};}function isLockingClauseKeyword(_0x12de91,_0x1e65b3){const _0x2643e8=a297_0x112381,_0x56ae39=_0x12de91[_0x1e65b3]===_0x2643e8(0xe6)?[[_0x2643e8(0xf6)],[_0x2643e8(0xf6),'NO',_0x2643e8(0xe8)]]:[[_0x2643e8(0xf6)],[_0x2643e8(0xf6),_0x2643e8(0xe8)]],_0x596e41=_0x56ae39[_0x2643e8(0xd3)](_0x102d02=>{const _0x3b8693=_0x2643e8,_0x46d71f=_0x1e65b3-_0x102d02['length'];return _0x46d71f>=0x0&&_0x12de91[_0x3b8693(0x9e)](_0x46d71f,_0x1e65b3)[_0x3b8693(0xc3)]('\x20')===_0x102d02[_0x3b8693(0xc3)]('\x20');});if(!_0x596e41)return![];return!_0x12de91[_0x2643e8(0x9e)](_0x1e65b3+0x1,_0x1e65b3+0x5)['includes'](_0x2643e8(0xb9));}function findMainStatementIndex(_0x452b4f){const _0x16d7cd=a297_0x112381;if(_0x452b4f[0x0]!=='WITH')return 0x0;let _0x2e44d8=_0x452b4f[0x1]===_0x16d7cd(0xed)?0x2:0x1;while(_0x2e44d8<_0x452b4f['length']){const _0xa6eb23=_0x452b4f[_0x2e44d8];if(!_0xa6eb23||!(/^[A-Z_][\w$]*$/[_0x16d7cd(0xe3)](_0xa6eb23)||/^[`"]/[_0x16d7cd(0xe3)](_0xa6eb23)))return-0x1;_0x2e44d8+=0x1;if(_0x452b4f[_0x2e44d8]==='('){_0x2e44d8=skipSqlParentheses(_0x452b4f,_0x2e44d8);if(_0x2e44d8<0x0)return-0x1;}if(_0x452b4f[_0x2e44d8]!=='AS')return-0x1;_0x2e44d8+=0x1;if(_0x452b4f[_0x2e44d8]===_0x16d7cd(0xd7)&&_0x452b4f[_0x2e44d8+0x1]===_0x16d7cd(0xcb))_0x2e44d8+=0x2;else{if(_0x452b4f[_0x2e44d8]==='MATERIALIZED')_0x2e44d8+=0x1;}_0x2e44d8=skipSqlParentheses(_0x452b4f,_0x2e44d8);if(_0x2e44d8<0x0)return-0x1;if(_0x452b4f[_0x2e44d8]!==','){const _0x1d0c1b=_0x452b4f[_0x2e44d8]==='('?_0x2e44d8+0x1:_0x2e44d8;return/^(SELECT|INSERT|UPDATE|DELETE)$/[_0x16d7cd(0xe3)](_0x452b4f[_0x1d0c1b]??'')?_0x1d0c1b:-0x1;}_0x2e44d8+=0x1;}return-0x1;}function skipSqlParentheses(_0x1bff44,_0x37a478){const _0x3aaaba=a297_0x112381;if(_0x1bff44[_0x37a478]!=='(')return-0x1;let _0x2e4927=0x0;for(let _0x1a3d6d=_0x37a478;_0x1a3d6d<_0x1bff44[_0x3aaaba(0xbb)];_0x1a3d6d+=0x1){const _0x389498=_0x1bff44[_0x1a3d6d];if(_0x389498===';')return-0x1;if(_0x389498==='(')_0x2e4927+=0x1;if(_0x389498===')'&&--_0x2e4927===0x0)return _0x1a3d6d+0x1;}return-0x1;}function stripStaticAnalysisMarkers(_0x4fef1e){const _0x53f370=a297_0x112381;return _0x4fef1e[_0x53f370(0xa8)](MYBATIS_DYNAMIC_START_MARKER,'\x20')[_0x53f370(0xa8)](MYBATIS_DYNAMIC_END_MARKER,'\x20')[_0x53f370(0xa8)](MYBATIS_INCLUDE_MARKER,'\x20'+UNRESOLVED_SQL_FRAGMENT+'\x20');}function tokenizeSqlForTypeAnalysis(_0x5e8b3f){const _0x28e776=a297_0x112381,_0x332286=[],_0x1b8f04=/\/\*[\s\S]*?\*\/|--[^\r\n]*|[#$]\{[^}]*\}|#[^\r\n]*|'(?:''|\\[\s\S]|[^'\\])*'|"(?:""|\\[\s\S]|[^"\\])*"|`(?:``|\\[\s\S]|[^`\\])*`|@[A-Za-z_]\w*|[A-Za-z_]\w*|\S/g;for(const _0x506b11 of _0x5e8b3f['matchAll'](_0x1b8f04)){const _0x16428b=_0x506b11[0x0];if(_0x16428b[_0x28e776(0xdf)]('/*')||_0x16428b['startsWith']('--')||_0x16428b['startsWith']('#')&&!_0x16428b[_0x28e776(0xdf)]('#{'))continue;_0x332286['push'](/^["`]/[_0x28e776(0xe3)](_0x16428b)?_0x16428b:/^[\x27@#$]/['test'](_0x16428b)?'?':_0x16428b[_0x28e776(0xfa)]());}return _0x332286;}function extractTables(_0x5e0d27,_0x146f9c){const _0x36649a=a297_0x112381,_0xfd13bb=_0x5e0d27[_0x36649a(0x97)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x36649a(0x97)](/'[^']*'/g,'\x27\x27')[_0x36649a(0x97)](/--.*$/gm,'')[_0x36649a(0x97)](/\/\*[\s\S]*?\*\//g,''),_0x560f71=[],_0x4ba1d9=_0xfd13bb[_0x36649a(0xae)](/FROM\s+([^\s,)(]+)/i);addTable(_0x560f71,_0x4ba1d9?.[0x1]);for(const _0x89d95 of _0xfd13bb[_0x36649a(0xc5)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){addTable(_0x560f71,_0x89d95[0x1]);}const _0x9ff2ed=_0xfd13bb[_0x36649a(0xae)](/INTO\s+([^\s(]+)/i);addTable(_0x560f71,_0x9ff2ed?.[0x1]);if(_0x146f9c===_0x36649a(0xe6)){const _0x8b60be=_0xfd13bb[_0x36649a(0xae)](/UPDATE\s+([^\s,)(]+)/i);addTable(_0x560f71,_0x8b60be?.[0x1]);}return _0x560f71;}function a297_0x59a5(){const _0x26fa14=['LOCK\x20IN\x20SHARE\x20MODE','SET','trim','length','add','29365sRABpc','SHARE','keys','MyBatis\x20<property>\x20must\x20be\x20a\x20self-closing\x20direct\x20child\x20of\x20<include>.','set','__RABETBASE_MYBATIS_INCLUDE_UNRESOLVED__','join','filter','matchAll','outer','Unable\x20to\x20detect\x20SQL\x20type.\x20','Unterminated\x20MyBatis\x20XML\x20tag.','include','\x20WHERE\x20','MATERIALIZED','DELETE\x20statements\x20require\x20explicit\x20review','CDATA\x20sections\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','parseInt','-->','3726452mhBWrZ','where','\x20SET\x20','some','MyBatis\x20dynamic\x20tag\x20names\x20must\x20be\x20lowercase:\x20<','UNKNOWN','<','NOT','statementType','Unterminated\x20XML\x20comment.','choose','6609724cqmkus','has','foreach','SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements','startsWith','isDangerous','5789008GyZbxH','__RABETBASE_UNRESOLVED_SQL_FRAGMENT__','test','3nkJjGG','732zxjcmu','UPDATE','__RABETBASE_MYBATIS_DYNAMIC_END__','KEY','SELECT','__RABETBASE_MYBATIS_DYNAMIC_START__','<![CDATA[','sql','RECURSIVE','\x20statements\x20require\x20explicit\x20review.\x20Local\x20analysis\x20does\x20not\x20authorize\x20saving\x20or\x20execution.','SQL\x20content\x20is\x20empty','delete','string','Invalid\x20XML\x20entity\x20reference.','XML\x20declarations\x20must\x20precede\x20the\x20MyBatis\x20statement\x20wrapper.','indexOf','when','FOR',''','MyBatis\x20XML\x20must\x20contain\x20exactly\x20one\x20complete\x20statement\x20wrapper.','error','toUpperCase','exec','"','DELETE','^<\x5cs*(?:','2752DfZDdx','otherwise','replace','Unterminated\x20CDATA\x20section.','\x20query\x20targeting\x20','INSERT','update','Multiple\x20MyBatis\x20statement\x20wrappers\x20are\x20not\x20supported.','<!--','slice','property','push','Local\x20analysis\x20could\x20not\x20parse\x20the\x20WITH\x20prefix;\x20this\x20is\x20a\x20local\x20capability\x20limit,\x20not\x20a\x20platform\x20rejection.','Unterminated\x20XML\x20declaration.','insert','get','select',')\x5cb','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','replaceAll','770dLUkFa','Invalid\x20MyBatis\x20XML\x20closing\x20tag:\x20</','5005535SRWjPm','type','tagName','match',']]>','mybatisXml','includes','reason','fromCodePoint','10UhQNDC','rawName','8257833IAmszM','Unclosed\x20MyBatis\x20XML\x20tag:\x20<'];a297_0x59a5=function(){return _0x26fa14;};return a297_0x59a5();}function addTable(_0x3df427,_0x3d10d9){const _0x2bf30e=a297_0x112381,_0xd63ef2=_0x3d10d9?.[_0x2bf30e(0x97)](/[`"]/g,'');_0xd63ef2&&_0xd63ef2!==UNRESOLVED_SQL_FRAGMENT&&!_0x3df427[_0x2bf30e(0xb1)](_0xd63ef2)&&_0x3df427['push'](_0xd63ef2);}function extractParameters(_0x43151c){const _0x2e9eeb=a297_0x112381,_0x306193=new Set();for(const _0x48e6a5 of _0x43151c[_0x2e9eeb(0xc5)](/[#$]\{\s*([A-Za-z_][\w.]*)\s*(?=[,}])/g)){if(_0x48e6a5[0x1])_0x306193[_0x2e9eeb(0xbc)](_0x48e6a5[0x1]);}return Array['from'](_0x306193);}export function validateSql(_0x384757){const _0x3e18eb=a297_0x112381,_0x5a2807=normalizeSqlForStaticAnalysis(_0x384757),_0x69f22f=detectNormalizedSqlType(_0x5a2807),_0x488f44=stripStaticAnalysisMarkers(_0x5a2807[_0x3e18eb(0xec)]),_0x1dcc2e=_0x5a2807[_0x3e18eb(0xf9)]?[]:extractTables(_0x488f44,_0x69f22f[_0x3e18eb(0xac)]),_0x4a8b64=_0x5a2807['error']?[]:extractParameters(_0x488f44);if(_0x69f22f[_0x3e18eb(0xe0)])return{'valid':![],'sqlType':_0x69f22f,'tables':_0x1dcc2e,'parameters':_0x4a8b64,'message':_0x69f22f[_0x3e18eb(0xb2)]||_0x69f22f[_0x3e18eb(0xac)]+_0x3e18eb(0xee)};if(_0x69f22f[_0x3e18eb(0xac)]===_0x3e18eb(0xd5))return{'valid':![],'sqlType':_0x69f22f,'tables':_0x1dcc2e,'parameters':_0x4a8b64,'message':_0x5a2807[_0x3e18eb(0xf9)]?_0x3e18eb(0xc7)+_0x5a2807[_0x3e18eb(0xf9)]:_0x69f22f[_0x3e18eb(0xb2)]?'Unable\x20to\x20detect\x20SQL\x20type.\x20'+_0x69f22f['reason']:_0x3e18eb(0xa7)};return{'valid':!![],'sqlType':_0x69f22f,'tables':_0x1dcc2e,'parameters':_0x4a8b64,'message':_0x69f22f[_0x3e18eb(0xac)]+_0x3e18eb(0x99)+(_0x1dcc2e[_0x3e18eb(0xbb)]?_0x1dcc2e[_0x3e18eb(0xc3)](',\x20'):'unknown\x20table(s)')+(_0x4a8b64['length']?'\x20with\x20parameters:\x20'+_0x4a8b64[_0x3e18eb(0xc3)](',\x20'):'')};}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a298_0x501434=a298_0x256d;(function(_0x1b8fdf,_0x509c64){const _0x1f6514=a298_0x256d,_0x642e4c=_0x1b8fdf();while(!![]){try{const _0x341fc9=parseInt(_0x1f6514(0x12f))/0x1+-parseInt(_0x1f6514(0x134))/0x2*(parseInt(_0x1f6514(0x124))/0x3)+parseInt(_0x1f6514(0x122))/0x4+-parseInt(_0x1f6514(0x123))/0x5+parseInt(_0x1f6514(0x12b))/0x6+parseInt(_0x1f6514(0x139))/0x7*(-parseInt(_0x1f6514(0x133))/0x8)+parseInt(_0x1f6514(0x130))/0x9;if(_0x341fc9===_0x509c64)break;else _0x642e4c['push'](_0x642e4c['shift']());}catch(_0x30f80c){_0x642e4c['push'](_0x642e4c['shift']());}}}(a298_0xc814,0xeadf8));function a298_0x256d(_0x26d5e3,_0x84bb8c){_0x26d5e3=_0x26d5e3-0x11e;const _0xc814b6=a298_0xc814();let _0x256d28=_0xc814b6[_0x26d5e3];return _0x256d28;}import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a298_0xc814(){const _0x144b73=['14VaiunN','Authentication\x20required','Unknown\x20command:\x20','Network\x20error:\x20','Run\x20`','not_in_project','5588956SDiAYV','4115190bGyZFL','3WnoFnV','config_missing','apiError','\x20auth`\x20to\x20login\x20first.','\x20project\x20directory','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.\x0a\x20\x20\x20\x20\x20\x20\x20Tip:\x20`','Check\x20your\x20internet\x20connection\x20and\x20try\x20again.','7336692xGurMT','Missing\x20required\x20flag:\x20--','Configuration\x20file\x20not\x20found','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','1588311gTmclj','1940913VDtyEI','cancelled','flag_missing','7304072UXUeaj','1625786eRDEtm','\x20--help`\x20to\x20see\x20available\x20commands.','unknown_command','\x20workspace\x20add\x20<name>\x20--appcode\x20<code>\x20--global`\x20registers\x20a\x20reusable\x20global\x20app\x20profile.','auth_required'];a298_0xc814=function(){return _0x144b73;};return a298_0xc814();}import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};const baseCliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a298_0x501434(0x120)+CLI_BIN_NAME+a298_0x501434(0x127),'configMissingHint':'Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.\x0a\x20\x20\x20\x20\x20\x20\x20Tip:\x20`'+CLI_BIN_NAME+a298_0x501434(0x137),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});export const CliErrors={'authRequired'(_0x62954b){const _0x1deb9a=a298_0x501434;return new CliError(_0x1deb9a(0x138),0x1,_0x1deb9a(0x13a),_0x62954b??_0x1deb9a(0x120)+CLI_BIN_NAME+_0x1deb9a(0x127));},'configMissing'(_0x3d27eb){const _0x3f91cc=a298_0x501434;return new CliError(_0x3f91cc(0x125),0x1,_0x3f91cc(0x12d),_0x3d27eb??'Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+_0x3f91cc(0x129)+CLI_BIN_NAME+_0x3f91cc(0x137));},'notInProject'(){const _0x1f1e2e=a298_0x501434;return new CliError(_0x1f1e2e(0x121),0x1,'Not\x20in\x20a\x20'+CLI_BIN_NAME+_0x1f1e2e(0x128),_0x1f1e2e(0x12e));},'apiError'(_0x36d2f6,_0x45c898){const _0x26b9b2=a298_0x501434;return baseCliErrors[_0x26b9b2(0x126)](_0x36d2f6,_0x45c898);},'networkError'(_0x209a3a){const _0x3423c1=a298_0x501434;return new CliError('network_error',0x2,_0x3423c1(0x11f)+_0x209a3a,_0x3423c1(0x12a));},'unknownCommand'(_0x24b90a){const _0x453b8f=a298_0x501434;return new CliError(_0x453b8f(0x136),0x1,_0x453b8f(0x11e)+_0x24b90a,_0x453b8f(0x120)+CLI_BIN_NAME+_0x453b8f(0x135));},'flagMissing'(_0xa2506b,_0x1964ad){const _0x132607=a298_0x501434;return new CliError(_0x132607(0x132),0x1,_0x132607(0x12c)+_0xa2506b,_0x1964ad);},'validation'(_0xcb19f8,_0x508a7c){return baseCliErrors['validation'](_0xcb19f8,_0x508a7c);},'cancelled'(_0x536c7e){const _0x1febdb=a298_0x501434;return new CliError(_0x1febdb(0x131),0x0,_0x536c7e??'Operation\x20cancelled.');}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x459144,_0x23d327){const _0x2ea25c=a299_0x4ef1,_0x3e9f7b=_0x459144();while(!![]){try{const _0x30e97d=-parseInt(_0x2ea25c(0x105))/0x1+-parseInt(_0x2ea25c(0x102))/0x2+parseInt(_0x2ea25c(0x108))/0x3+-parseInt(_0x2ea25c(0x107))/0x4*(parseInt(_0x2ea25c(0x109))/0x5)+-parseInt(_0x2ea25c(0x100))/0x6+-parseInt(_0x2ea25c(0x106))/0x7*(parseInt(_0x2ea25c(0x10a))/0x8)+parseInt(_0x2ea25c(0x10b))/0x9*(parseInt(_0x2ea25c(0x104))/0xa);if(_0x30e97d===_0x23d327)break;else _0x3e9f7b['push'](_0x3e9f7b['shift']());}catch(_0x2bc488){_0x3e9f7b['push'](_0x3e9f7b['shift']());}}}(a299_0x52eb,0xd0702));function a299_0x52eb(){const _0x426530=['7228980EwWPZu','name','1340848OBvgmX','map','65530TTHOTq','615062micROV','14LalYOP','4UQdfHP','2211741jDGKkF','1843580TXWfZP','2383352VCxcLe','4905dsXRqB'];a299_0x52eb=function(){return _0x426530;};return a299_0x52eb();}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a299_0x4c6353}from'@lovrabet/cli-framework';import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';function a299_0x4ef1(_0x463759,_0x22bb8e){_0x463759=_0x463759-0x100;const _0x52eb83=a299_0x52eb();let _0x4ef12c=_0x52eb83[_0x463759];return _0x4ef12c;}export function buildAllFlags(_0x419edc){const _0xeed38e=a299_0x4ef1,_0x22d27c=a299_0x4c6353(_0x419edc,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0x419edc))return _0x22d27c;return _0x22d27c[_0xeed38e(0x103)](_0x2d083b=>_0x2d083b[_0xeed38e(0x101)]==='yes'?{..._0x2d083b,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x2d083b);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a300_0x342d(_0x449226,_0x46c062){_0x449226=_0x449226-0x1a4;var _0x106d69=a300_0x106d();var _0x342d2a=_0x106d69[_0x449226];return _0x342d2a;}function a300_0x106d(){var _0x3161ae=['146396CUDeGy','33ySxkFi','def','114MYYciX','flags','2ZnvsKM','format','101528FMkUEM','9740340cYyHGr','4562412fnjRhf','1478935uSsvTM','969247nkOFeq','45tjtulu','48SzYrlN','3136naxxks','defaultFormat','compress','structuredErrors'];a300_0x106d=function(){return _0x3161ae;};return a300_0x106d();}(function(_0x2e29d5,_0x2df096){var _0x4cc68c=a300_0x342d,_0x3fbf9d=_0x2e29d5();while(!![]){try{var _0x2cbed7=parseInt(_0x4cc68c(0x1b3))/0x1*(-parseInt(_0x4cc68c(0x1ad))/0x2)+-parseInt(_0x4cc68c(0x1b5))/0x3*(parseInt(_0x4cc68c(0x1a8))/0x4)+-parseInt(_0x4cc68c(0x1b2))/0x5+-parseInt(_0x4cc68c(0x1ab))/0x6*(-parseInt(_0x4cc68c(0x1af))/0x7)+parseInt(_0x4cc68c(0x1a4))/0x8*(-parseInt(_0x4cc68c(0x1b4))/0x9)+parseInt(_0x4cc68c(0x1b0))/0xa+-parseInt(_0x4cc68c(0x1a9))/0xb*(-parseInt(_0x4cc68c(0x1b1))/0xc);if(_0x2cbed7===_0x2df096)break;else _0x3fbf9d['push'](_0x3fbf9d['shift']());}catch(_0x312e7e){_0x3fbf9d['push'](_0x3fbf9d['shift']());}}}(a300_0x106d,0x83423));import{resolveOutputConfig}from'@lovrabet/cli-framework';export function usesStructuredErrorOutput(_0x5d2c04){var _0x1ff69c=a300_0x342d;return _0x5d2c04?.[_0x1ff69c(0x1a7)]===!![];}export function resolveErrorOutputFormat(_0x4619f7){var _0x48076e=a300_0x342d;if(!_0x4619f7['def'])return _0x4619f7[_0x48076e(0x1a5)]??_0x48076e(0x1a6);return resolveOutputConfig({'flags':_0x4619f7[_0x48076e(0x1ac)]??{},'def':_0x4619f7[_0x48076e(0x1aa)],'configDefault':_0x4619f7[_0x48076e(0x1a5)]})[_0x48076e(0x1ae)];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a301_0x475c72=a301_0x1e92;(function(_0x7ca22,_0x2cd491){const _0x41cfe4=a301_0x1e92,_0xb01ae2=_0x7ca22();while(!![]){try{const _0x3c172c=parseInt(_0x41cfe4(0x10c))/0x1*(-parseInt(_0x41cfe4(0x111))/0x2)+-parseInt(_0x41cfe4(0x10b))/0x3*(parseInt(_0x41cfe4(0x10e))/0x4)+-parseInt(_0x41cfe4(0x10a))/0x5+-parseInt(_0x41cfe4(0x116))/0x6+parseInt(_0x41cfe4(0x10f))/0x7*(-parseInt(_0x41cfe4(0x110))/0x8)+parseInt(_0x41cfe4(0x118))/0x9+parseInt(_0x41cfe4(0x114))/0xa*(parseInt(_0x41cfe4(0x117))/0xb);if(_0x3c172c===_0x2cd491)break;else _0xb01ae2['push'](_0xb01ae2['shift']());}catch(_0x33e3d5){_0xb01ae2['push'](_0xb01ae2['shift']());}}}(a301_0x543e,0x6e976));const EXPLICIT_YES_COMMANDS=new Set(['menu\x20delete',a301_0x475c72(0x113),a301_0x475c72(0x115),'notification\x20config-delete']);function a301_0x1e92(_0x2af48f,_0x17cedc){_0x2af48f=_0x2af48f-0x10a;const _0x543e01=a301_0x543e();let _0x1e9267=_0x543e01[_0x2af48f];return _0x1e9267;}function a301_0x543e(){const _0x245812=['14352ibLTyC','4QFKTwW','command','kb\x20delete','6410OHgdEO','notification\x20config-update','583014uxVXPG','17281FJvRyK','8012241CdMory','has','219480zhTCMR','1179cKhNjB','425648diZMgK','service','2372HTgeyS','854whhPzH'];a301_0x543e=function(){return _0x245812;};return a301_0x543e();}export const EXPLICIT_YES_FLAG_DESCRIPTION='Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan';export function requiresExplicitYes(_0x1a39db){const _0x132aca=a301_0x475c72;return EXPLICIT_YES_COMMANDS[_0x132aca(0x119)](_0x1a39db[_0x132aca(0x10d)]+'\x20'+_0x1a39db[_0x132aca(0x112)]);}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a302_0x5692(_0x49fad4,_0x46393d){_0x49fad4=_0x49fad4-0x1dc;const _0x2530df=a302_0x2530();let _0x5692c7=_0x2530df[_0x49fad4];return _0x5692c7;}const a302_0x586dba=a302_0x5692;(function(_0x547868,_0x28a801){const _0x1e7e65=a302_0x5692,_0x40d441=_0x547868();while(!![]){try{const _0x344d4e=-parseInt(_0x1e7e65(0x1de))/0x1+parseInt(_0x1e7e65(0x1e5))/0x2+parseInt(_0x1e7e65(0x1e1))/0x3*(-parseInt(_0x1e7e65(0x1e4))/0x4)+-parseInt(_0x1e7e65(0x1dd))/0x5*(-parseInt(_0x1e7e65(0x1e2))/0x6)+-parseInt(_0x1e7e65(0x1e3))/0x7+-parseInt(_0x1e7e65(0x1e0))/0x8+parseInt(_0x1e7e65(0x1dc))/0x9;if(_0x344d4e===_0x28a801)break;else _0x40d441['push'](_0x40d441['shift']());}catch(_0x583fbd){_0x40d441['push'](_0x40d441['shift']());}}}(a302_0x2530,0x8ebba));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a302_0x586dba(0x1df)];function a302_0x2530(){const _0x4c3474=['12DthZPh','6fqsCrE','6718712aSrMre','549388DTSWLN','2107590QoIIOI','11291130rYINIq','5808025KVCvGg','1043838sCQDve','parseFlags','2658352fWjdzv'];a302_0x2530=function(){return _0x4c3474;};return a302_0x2530();}export const validateFlags=helpers['validateFlags'];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4b4d24,_0xc1dfda){const _0xd50968=a303_0x4943,_0x16f3a9=_0x4b4d24();while(!![]){try{const _0x164cba=-parseInt(_0xd50968(0x1d9))/0x1*(-parseInt(_0xd50968(0x1cc))/0x2)+parseInt(_0xd50968(0x1d0))/0x3+parseInt(_0xd50968(0x1d7))/0x4*(-parseInt(_0xd50968(0x1dc))/0x5)+parseInt(_0xd50968(0x1cf))/0x6*(parseInt(_0xd50968(0x1d8))/0x7)+-parseInt(_0xd50968(0x1d1))/0x8+-parseInt(_0xd50968(0x1d6))/0x9+parseInt(_0xd50968(0x1d5))/0xa;if(_0x164cba===_0xc1dfda)break;else _0x16f3a9['push'](_0x16f3a9['shift']());}catch(_0x5615f4){_0x16f3a9['push'](_0x16f3a9['shift']());}}}(a303_0x1bd3,0xc103a));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 a303_0x4943(_0x5b6564,_0x155fdb){_0x5b6564=_0x5b6564-0x1cc;const _0x1bd359=a303_0x1bd3();let _0x494350=_0x1bd359[_0x5b6564];return _0x494350;}function createGenerators(){const _0x25e2e5=a303_0x4943;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x5b4f9a=>serviceGroups['get'](_0x5b4f9a),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+_0x25e2e5(0x1db),'serviceUsageSuffix':_0x25e2e5(0x1d2)});}function a303_0x1bd3(){const _0x3ddf46=['1326276OiVWiA','243986xmtnSC','Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','\x20workspace\x20init`\x20or\x20--appcode).','365aqMptC','8WEzoNC','generateFullHelp','generateCommandHelp','48dtlKXA','72828ekJOCr','3653416RgoSFk','\x20[args]\x20[flags]','generateServiceHelp','Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.','8004130FtLFDw','5349969AffJgy','80804ZMQQAH'];a303_0x1bd3=function(){return _0x3ddf46;};return a303_0x1bd3();}export function generateCommandHelp(_0x4446d7){const _0x536e6e=a303_0x4943,_0x332741=createGenerators()[_0x536e6e(0x1ce)](_0x4446d7);if(!requiresExplicitYes(_0x4446d7))return _0x332741;return _0x332741['replace'](_0x536e6e(0x1da),_0x536e6e(0x1d4));}export function generateServiceHelp(_0x26de6b){const _0x5361d4=a303_0x4943;return createGenerators()[_0x5361d4(0x1d3)](_0x26de6b);}export function generateFullHelp(){const _0x19d13f=a303_0x4943;return createGenerators()[_0x19d13f(0x1cd)]();}
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4ba4c4,_0x2c5daf){var _0xcbc45b=a304_0x40f6,_0x35c3a1=_0x4ba4c4();while(!![]){try{var _0x154281=-parseInt(_0xcbc45b(0x129))/0x1*(-parseInt(_0xcbc45b(0x126))/0x2)+-parseInt(_0xcbc45b(0x130))/0x3*(-parseInt(_0xcbc45b(0x12f))/0x4)+-parseInt(_0xcbc45b(0x12e))/0x5*(parseInt(_0xcbc45b(0x127))/0x6)+parseInt(_0xcbc45b(0x12c))/0x7+-parseInt(_0xcbc45b(0x12d))/0x8*(-parseInt(_0xcbc45b(0x12a))/0x9)+parseInt(_0xcbc45b(0x128))/0xa*(-parseInt(_0xcbc45b(0x131))/0xb)+-parseInt(_0xcbc45b(0x12b))/0xc;if(_0x154281===_0x2c5daf)break;else _0x35c3a1['push'](_0x35c3a1['shift']());}catch(_0x1be373){_0x35c3a1['push'](_0x35c3a1['shift']());}}}(a304_0x9abf,0x759f1));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a304_0x9abf(){var _0x332810=['16417myGFPH','32337QGiuTW','6528768scJBZO','856513grnkeH','2104pTMwGV','515GalrIN','8UPPQYZ','860820TXKHqQ','7271HIrJmd','24KhzFUZ','27492IThMej','5150dlpXfh'];a304_0x9abf=function(){return _0x332810;};return a304_0x9abf();}export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a304_0x40f6(_0x5dde05,_0x334ab3){_0x5dde05=_0x5dde05-0x126;var _0x9abfeb=a304_0x9abf();var _0x40f693=_0x9abfeb[_0x5dde05];return _0x40f693;}export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5d9d71,_0x1af510){const _0x5393c6=a305_0x39fd,_0xddf747=_0x5d9d71();while(!![]){try{const _0x204d98=parseInt(_0x5393c6(0x83))/0x1+-parseInt(_0x5393c6(0x76))/0x2*(parseInt(_0x5393c6(0x8c))/0x3)+-parseInt(_0x5393c6(0x75))/0x4*(-parseInt(_0x5393c6(0x89))/0x5)+-parseInt(_0x5393c6(0x77))/0x6*(parseInt(_0x5393c6(0x78))/0x7)+parseInt(_0x5393c6(0x8a))/0x8+-parseInt(_0x5393c6(0x8d))/0x9*(-parseInt(_0x5393c6(0x7a))/0xa)+-parseInt(_0x5393c6(0x84))/0xb*(parseInt(_0x5393c6(0x88))/0xc);if(_0x204d98===_0x1af510)break;else _0xddf747['push'](_0xddf747['shift']());}catch(_0x5e42a1){_0xddf747['push'](_0xddf747['shift']());}}}(a305_0x48d8,0xee96b));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';function a305_0x48d8(){const _0x546e32=['1610djXSHz','message','format','hint','update','error','stringify','code','json','910356GLTSrg','5247187PBmsjl','pretty','trim','stdout','36njWBnE','99955EiwcsT','8218312SFazSh','command','531qlsHZC','83367UfmkvL','jq:\x20','url','risk','jqFilter','156IpebUN','12378ZMIjBX','24306ttcJvy','1218RuIOAV','write'];a305_0x48d8=function(){return _0x546e32;};return a305_0x48d8();}import{applyJqFilter}from'../utils/apply-jq-filter.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a305_0x39fd(_0x2aefde,_0x186909){_0x2aefde=_0x2aefde-0x75;const _0x48d810=a305_0x48d8();let _0x39fd08=_0x48d810[_0x2aefde];return _0x39fd08;}export function formatOutput(_0x1ec865,_0x775cfe){const _0x4e3869=a305_0x39fd,_0x449711=_0x1ec865['_notice'],{_notice:_0x347270,..._0x52707b}=_0x1ec865;void _0x347270,baseFormatOutput(_0x52707b,_0x775cfe),_0x775cfe[_0x4e3869(0x7c)]===_0x4e3869(0x85)&&printPrettyNotice(_0x449711);}export function formatCliError(_0x54f0cd,_0xff1837){const _0x11f2a9=a305_0x39fd;if(_0xff1837['format']===_0x11f2a9(0x85))return![];const _0x52a33c=_0x54f0cd['data'],_0x246756={'ok':![],'command':_0xff1837[_0x11f2a9(0x8b)],'risk':_0xff1837[_0x11f2a9(0x90)],'data':_0x52a33c??null,'error':{'code':_0x54f0cd[_0x11f2a9(0x81)],'message':_0x54f0cd['message'],..._0x54f0cd[_0x11f2a9(0x7d)]?{'hint':_0x54f0cd[_0x11f2a9(0x7d)]}:{}}},_0x44b7cc=_0xff1837[_0x11f2a9(0x7c)]===_0x11f2a9(0x82)?JSON[_0x11f2a9(0x80)](_0x246756,null,0x2):JSON[_0x11f2a9(0x80)](_0x246756);let _0x382fd1=_0x44b7cc;if(_0xff1837[_0x11f2a9(0x91)]?.[_0x11f2a9(0x86)]())try{_0x382fd1=applyJqFilter(_0x44b7cc,_0xff1837['jqFilter']);}catch(_0x1a5845){const _0x1fe320=_0x1a5845 instanceof CliError?_0x1a5845:CliErrors['validation'](_0x11f2a9(0x8e)+(_0x1a5845 instanceof Error?_0x1a5845[_0x11f2a9(0x7b)]:String(_0x1a5845))),_0x462e41={..._0x246756,'error':{'code':_0x1fe320['code'],'message':_0x1fe320[_0x11f2a9(0x7b)],..._0x1fe320[_0x11f2a9(0x7d)]?{'hint':_0x1fe320['hint']}:{},'cause':_0x246756['error']}};_0x382fd1=_0xff1837[_0x11f2a9(0x7c)]===_0x11f2a9(0x82)?JSON[_0x11f2a9(0x80)](_0x462e41,null,0x2):JSON[_0x11f2a9(0x80)](_0x462e41);}return process[_0x11f2a9(0x87)][_0x11f2a9(0x79)](_0x382fd1['endsWith']('\x0a')?_0x382fd1:_0x382fd1+'\x0a'),!![];}function printPrettyNotice(_0x368bf3){const _0x4fd30c=a305_0x39fd;if(!_0x368bf3?.[_0x4fd30c(0x7e)])return;console[_0x4fd30c(0x7f)](_0x368bf3[_0x4fd30c(0x7e)]['message']+'\x20('+_0x368bf3[_0x4fd30c(0x7e)][_0x4fd30c(0x8f)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1cdbc8,_0x27701e){var _0x347035=a306_0x577a,_0x4b5b7b=_0x1cdbc8();while(!![]){try{var _0xa4bd03=-parseInt(_0x347035(0x1b7))/0x1+parseInt(_0x347035(0x1b9))/0x2+-parseInt(_0x347035(0x1bc))/0x3+-parseInt(_0x347035(0x1b6))/0x4+-parseInt(_0x347035(0x1b8))/0x5*(-parseInt(_0x347035(0x1bb))/0x6)+-parseInt(_0x347035(0x1ba))/0x7+parseInt(_0x347035(0x1b5))/0x8;if(_0xa4bd03===_0x27701e)break;else _0x4b5b7b['push'](_0x4b5b7b['shift']());}catch(_0x18420c){_0x4b5b7b['push'](_0x4b5b7b['shift']());}}}(a306_0x1167,0xe5aeb));function a306_0x577a(_0xb3c2f1,_0x3ed0d8){_0xb3c2f1=_0xb3c2f1-0x1b5;var _0x1167b0=a306_0x1167();var _0x577af6=_0x1167b0[_0xb3c2f1];return _0x577af6;}export{extractList,extractPaging}from'@lovrabet/cli-framework';function a306_0x1167(){var _0x5d76f0=['7204592wcWkLq','1556157vDTqqC','8244490sHcURM','1491746EnIAjX','8909950RKOtML','6NKtzzg','2732487QXwtJQ','32695936eSmQSt'];a306_0x1167=function(){return _0x5d76f0;};return a306_0x1167();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a307_0x36fa(_0x570f81,_0x1b2826){_0x570f81=_0x570f81-0x1d5;const _0x385bf7=a307_0x385b();let _0x36facf=_0x385bf7[_0x570f81];return _0x36facf;}(function(_0x306830,_0x11d8ee){const _0x5d393d=a307_0x36fa,_0x2ef979=_0x306830();while(!![]){try{const _0x358fa7=-parseInt(_0x5d393d(0x1da))/0x1+-parseInt(_0x5d393d(0x1eb))/0x2*(-parseInt(_0x5d393d(0x1e7))/0x3)+-parseInt(_0x5d393d(0x1e3))/0x4*(parseInt(_0x5d393d(0x1e8))/0x5)+parseInt(_0x5d393d(0x1df))/0x6+-parseInt(_0x5d393d(0x1ee))/0x7+parseInt(_0x5d393d(0x1e6))/0x8+-parseInt(_0x5d393d(0x1db))/0x9;if(_0x358fa7===_0x11d8ee)break;else _0x2ef979['push'](_0x2ef979['shift']());}catch(_0x5f2344){_0x2ef979['push'](_0x2ef979['shift']());}}}(a307_0x385b,0x2f537));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{resolveApiModelSource}from'../api/model-source.js';function a307_0x385b(){const _0x2218a5=['.\x20Run\x20`','Unknown\x20alias\x20\x22','length','name','some','380606BdLQTi','1613790OWGolS','flags','Available\x20aliases:\x20','No\x20model\x20aliases\x20found\x20in\x20','2210316bzrisN','map','join','\x20api\x20pull`\x20first.','379492PzXARF','validation','alias','1795920SJkemZ','59181mzGVJf','10iXnxaC','filePath','code','38PLRZzc','type','string','169260EwYPuL','profileName'];a307_0x385b=function(){return _0x2218a5;};return a307_0x385b();}export function resolveAliasToCode(_0x50df31,_0xb9b292,_0x3c7479,_0x3ded04,_0x2159e3,_0x121478){const _0x5db6b4=a307_0x36fa,_0x1db724=_0x50df31[_0x5db6b4(0x1dc)][_0x5db6b4(0x1d9)](_0x5a8796=>_0x5a8796[_0x5db6b4(0x1d8)]===_0x5db6b4(0x1ea)&&_0x5a8796[_0x5db6b4(0x1ec)]===_0x5db6b4(0x1ed)),_0x22d735=_0x50df31['flags'][_0x5db6b4(0x1d9)](_0x49dc84=>_0x49dc84[_0x5db6b4(0x1d8)]==='alias'&&_0x49dc84[_0x5db6b4(0x1ec)]===_0x5db6b4(0x1ed));if(!_0x1db724||!_0x22d735)return;const _0xc30261=_0xb9b292[_0x5db6b4(0x1ea)]?String(_0xb9b292['code']):'',_0xe5a48d=_0xb9b292[_0x5db6b4(0x1e5)]?String(_0xb9b292['alias']):'';if(!_0xc30261&&!_0xe5a48d)throw CliErrors[_0x5db6b4(0x1e4)]('`'+_0x3ded04+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0xe5a48d&&!_0xc30261){const _0x6406b8=resolveApiModelSource(_0x3c7479,_0x2159e3,_0x121478),_0x134461=resolveAlias(_0x3c7479,_0xe5a48d,undefined,_0x6406b8[_0x5db6b4(0x1e9)],_0x6406b8[_0x5db6b4(0x1ef)]);if(!_0x134461){const _0x360acd=listAliases(_0x3c7479,undefined,_0x6406b8['filePath'],_0x6406b8['profileName'])[_0x5db6b4(0x1e0)](_0x44a135=>_0x44a135[_0x5db6b4(0x1e5)]),_0x31cbec=_0x360acd[_0x5db6b4(0x1d7)]?_0x5db6b4(0x1dd)+_0x360acd[_0x5db6b4(0x1e1)](',\x20'):_0x5db6b4(0x1de)+_0x3c7479+_0x5db6b4(0x1d5)+CLI_BIN_NAME+_0x5db6b4(0x1e2);throw CliErrors['validation'](_0x5db6b4(0x1d6)+_0xe5a48d+'\x22.\x20'+_0x31cbec);}_0xb9b292['code']=_0x134461;}}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x253519,_0x3a2e68){const _0x359562=a307_0x24bc,_0x37c8f4=_0x253519();while(!![]){try{const _0x491d11=-parseInt(_0x359562(0xb0))/0x1*(parseInt(_0x359562(0xaa))/0x2)+parseInt(_0x359562(0xd0))/0x3*(-parseInt(_0x359562(0xa7))/0x4)+parseInt(_0x359562(0xe9))/0x5+parseInt(_0x359562(0xeb))/0x6*(parseInt(_0x359562(0xb4))/0x7)+parseInt(_0x359562(0xb7))/0x8*(-parseInt(_0x359562(0xbf))/0x9)+parseInt(_0x359562(0xba))/0xa*(-parseInt(_0x359562(0xc1))/0xb)+parseInt(_0x359562(0x95))/0xc;if(_0x491d11===_0x3a2e68)break;else _0x37c8f4['push'](_0x37c8f4['shift']());}catch(_0x428c38){_0x37c8f4['push'](_0x37c8f4['shift']());}}}(a307_0x4ac0,0xf35ef));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';function a307_0x24bc(_0x128682,_0x355264){_0x128682=_0x128682-0x94;const _0x4ac03d=a307_0x4ac0();let _0x24bcb6=_0x4ac03d[_0x128682];return _0x24bcb6;}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 a307_0x577e62}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function a307_0x4ac0(){const _0x151a62=['6JQXozi','keys','service','hint','trim','\x0a\x20\x20','6646128HNACWO','App\x20\x22','object','execute','selectedAppName','some','resolveAppCode','AppCode\x20\x22','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','Current\x20resolved\x20appcode\x20is\x20\x22','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','includes','doctor','map','formatOutput','High-risk\x20operation\x20`','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','Set\x20appcode\x20via\x20`','2644PltJPG','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','../core/api-client.js','4tSXTsF','required','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','entries','validation','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','217357mAeijj','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','meowKey','format','10862061AACCcR','apps','appcode','29256wOGSRI','RABETBASE_APPCODE','replace','10369600QnJRjy','currentApp','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','requiresAppCode','mergedCli','3339wKvTAC','cancelled','11wbiLwB','\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','value','Edit\x20the\x20config\x20file\x20manually','\x20\x20\x20Continue?\x20[y/N]\x20','appCode','name','string','hasFormat','resolveCookie','confirmHighRisk','join','length','explicitAppName','771kSQDtz','rejectedFlags','_notice','rawFlags','⚠\x20\x20High-risk\x20operation:\x20','pretty','defaultVerbose','apiDir','command','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','filter','resolveApiDomain','none','all','risk','schema','../constant/domain.js','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','verbose','authRequired','configMissing','nonInteractive','find','9447890xzfqox','pageSize'];a307_0x4ac0=function(){return _0x151a62;};return a307_0x4ac0();}function stringFlag(_0xd7799b){const _0x4c4e4d=a307_0x24bc;return typeof _0xd7799b===_0x4c4e4d(0xc9)&&_0xd7799b['trim']()?_0xd7799b[_0x4c4e4d(0xef)]():undefined;}function resolveEnvAppCode(){const _0x54a347=a307_0x24bc,_0x5732c2=stringFlag(process.env.RABETBASE_APPCODE);if(_0x5732c2)return{'name':_0x54a347(0xb8),'value':_0x5732c2};const _0xd5ab2f=stringFlag(process.env.LOVRABET_APPCODE);if(_0xd5ab2f)return{'name':'LOVRABET_APPCODE','value':_0xd5ab2f};return undefined;}function hasExplicitAppCode(_0x22d32a,_0x5c72a5){const _0x1d5f32=a307_0x24bc;return!!(stringFlag(_0x22d32a[_0x1d5f32(0xb6)])||stringFlag(_0x5c72a5[_0x1d5f32(0xb6)]));}function assertEnvAppCodeNotIgnored(_0xf78adc,_0x415eb8,_0x2b660c){const _0x120bd0=a307_0x24bc;if(!_0x415eb8||_0x2b660c||_0xf78adc===_0x415eb8[_0x120bd0(0xc4)])return;const _0x256bd2=_0xf78adc?_0x120bd0(0x9e)+_0xf78adc+'\x22.':_0x120bd0(0xd9);throw CliErrors[_0x120bd0(0xae)](_0x415eb8[_0x120bd0(0xc8)]+'='+_0x415eb8[_0x120bd0(0xc4)]+_0x120bd0(0xa8)+_0x256bd2+'\x20'+(_0x120bd0(0xaf)+_0x415eb8[_0x120bd0(0xc8)]+'\x22.'));}export function createPipelineEnv(_0x4ba80a,_0x24dae6,_0x1d3a77=[]){const _0x2698b1=a307_0x24bc;return{'rawFlags':_0x24dae6,'args':_0x1d3a77,'resolveAppCode':()=>_0x4ba80a[_0x2698b1(0xc7)],'resolveCookie':()=>_0x4ba80a['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a307_0x577e62(_0x24dae6),'defaultFormat':_0x4ba80a[_0x2698b1(0xb3)],'defaultPageSize':_0x4ba80a[_0x2698b1(0xea)],'defaultVerbose':_0x4ba80a[_0x2698b1(0xe4)],'apiDir':_0x4ba80a[_0x2698b1(0xd7)],'riskLevel':_0x4ba80a['riskLevel'],'selectedAppName':_0x4ba80a[_0x2698b1(0xcf)],'mergedCli':{'defaultApp':_0x4ba80a['defaultApp'],'currentApp':_0x4ba80a['currentApp'],'appCode':_0x4ba80a[_0x2698b1(0xc7)],'apps':_0x4ba80a[_0x2698b1(0xb5)]}};}export function createRabetbaseRunnerAdapter(_0x97083={}){const _0x49d259=a307_0x24bc;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0xd9b0ea=>PIPELINE_FLAG_NAMES['has'](_0xd9b0ea['name']))[_0x49d259(0xa2)](({name:_0xf857f8,type:_0x4dcd34,description:_0x1e876d})=>({'name':_0xf857f8,'type':_0x4dcd34,'description':_0x1e876d})),'formatOutput':_0x97083[_0x49d259(0xa3)]??formatOutput,'getCommandLabel'(_0x3b460e){const _0x437da4=_0x49d259;return CLI_BIN_NAME+'\x20'+_0x3b460e[_0x437da4(0xed)]+'\x20'+_0x3b460e[_0x437da4(0xd8)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x19907a,{def:_0x24a5b6}){const _0x15cb9e=_0x49d259,_0x352948=_0x19907a['includes'](_0x15cb9e(0xc5))?_0x15cb9e(0xe1):_0x15cb9e(0xe2)+_0x24a5b6[_0x15cb9e(0xde)]+_0x15cb9e(0xac)+_0x15cb9e(0xe1);return CliErrors[_0x15cb9e(0xae)](_0x19907a+_0x15cb9e(0x94)+_0x352948);}},async 'prepare'(_0x565b08,_0x2f3bad,_0x16cad2,_0x1ed865){const _0x4894f4=_0x49d259,_0x484b06=_0x2f3bad[_0x4894f4(0xd7)]||DEFAULT_API_DIR,_0x4785d6=hasExplicitAppCode(_0x16cad2,_0x2f3bad[_0x4894f4(0xd3)]),_0x153172=stringFlag(_0x16cad2[_0x4894f4(0xb6)])||stringFlag(_0x2f3bad[_0x4894f4(0xd3)][_0x4894f4(0xb6)]),_0x32f76c=_0x2f3bad[_0x4894f4(0xbe)]?.[_0x4894f4(0xb5)]??{},_0x4759aa=_0x2f3bad[_0x4894f4(0x99)]||_0x2f3bad[_0x4894f4(0xbe)]?.[_0x4894f4(0xbb)]||_0x2f3bad[_0x4894f4(0xbe)]?.['defaultApp'],_0x37503d=_0x153172?Object[_0x4894f4(0xad)](_0x32f76c)[_0x4894f4(0xda)](([,_0x3a2058])=>_0x3a2058[_0x4894f4(0xb6)]===_0x153172)[_0x4894f4(0xa2)](([_0x104518])=>_0x104518):[];if(_0x37503d[_0x4894f4(0xce)]>0x1&&!_0x2f3bad['selectedAppName'])throw CliErrors['validation'](_0x4894f4(0x9c)+_0x153172+_0x4894f4(0xc2)+_0x37503d['join'](',\x20')+'.',_0x4894f4(0x9d));resolveAliasToCode(_0x565b08,_0x16cad2,_0x484b06,_0x1ed865,_0x2f3bad[_0x4894f4(0x9b)](),_0x4759aa);const _0x13ef39=resolveCommandAuthMode(_0x565b08);let _0x14ffc9='';if(_0x13ef39!==_0x4894f4(0xdc)){_0x14ffc9=_0x2f3bad[_0x4894f4(0xcb)]()||'';if(!_0x14ffc9){if(_0x13ef39===_0x4894f4(0xab))throw CliErrors[_0x4894f4(0xe5)]();}else{const {setActiveCookie:_0x1e4cee}=await import(_0x4894f4(0xa9));_0x1e4cee(_0x14ffc9);}}const _0x32481a=_0x2f3bad[_0x4894f4(0x9b)]()??'';if(_0x565b08[_0x4894f4(0xbd)]!==![]){if(!_0x4785d6&&_0x4759aa&&!_0x32f76c[_0x4759aa]){const _0x1523b6=Object[_0x4894f4(0xec)](_0x32f76c);throw CliErrors[_0x4894f4(0xae)](_0x4894f4(0x96)+_0x4759aa+'\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.',_0x1523b6[_0x4894f4(0xce)]>0x0?'Available:\x20'+_0x1523b6[_0x4894f4(0xcd)](',\x20')+'.\x20Use\x20--app/--appcode,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x4894f4(0xb1):_0x4894f4(0x9f)+CLI_BIN_NAME+_0x4894f4(0xb1));}assertEnvAppCodeNotIgnored(_0x32481a,resolveEnvAppCode(),_0x4785d6);if(!_0x32481a){const _0x77d526=Object[_0x4894f4(0xec)](_0x32f76c);if(!_0x4759aa&&_0x77d526[_0x4894f4(0xce)]>0x1)throw CliErrors[_0x4894f4(0xe6)](_0x4894f4(0xc3)+CLI_BIN_NAME+_0x4894f4(0xbc)+_0x77d526[_0x4894f4(0xcd)](',\x20')+'.');throw CliErrors[_0x4894f4(0xe6)](_0x4894f4(0xa6)+CLI_BIN_NAME+_0x4894f4(0xa5));}}return{'defaults':{'booleans':{'verbose':_0x2f3bad[_0x4894f4(0xd6)]},'numbers':{'pagesize':_0x2f3bad['defaultPageSize']}},'extras':{'appCode':_0x32481a,'cookie':_0x14ffc9,'apiDomain':_0x2f3bad[_0x4894f4(0xdb)](),'apiDir':_0x484b06,'selectedAppName':_0x2f3bad[_0x4894f4(0x99)],'mergedCli':_0x2f3bad[_0x4894f4(0xbe)]}};},'confirmHighRisk':_0x97083[_0x49d259(0xcc)]??(async({env:_0x480657,commandLabel:_0x3ccf96})=>{const _0x55cb05=_0x49d259;if(_0x480657['isNonInteractive'])throw CliErrors['validation'](_0x55cb05(0xa4)+_0x3ccf96+_0x55cb05(0xe3));await requireConfirmationPrompt({'lines':[_0x55cb05(0xd4)+_0x3ccf96,_0x55cb05(0xc6)],'createCancelledError':_0x4b6ba4=>CliErrors[_0x55cb05(0xc0)](_0x4b6ba4)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x240069=a307_0x24bc,{clearActiveCookie:_0x53e35f}=await import(_0x240069(0xa9));_0x53e35f();}export async function finalizeRabetbaseRuntimeState(){const _0x152345=a307_0x24bc;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x527bb1},{initEnv:_0x500d0f}]=await Promise[_0x152345(0xdd)]([import(_0x152345(0xe0)),import('../constant/env.js')]);_0x527bb1(),_0x500d0f('production');}}export async function runCommand(_0x265736,_0x11168e,_0x32776e=terminalRunnerAdapter){const _0x1fd5bf=a307_0x24bc;assertRejectedFlags(_0x265736,_0x11168e[_0x1fd5bf(0xd3)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x265736)?withUpdateNotice(_0x265736):_0x265736,_0x11168e,_0x32776e);}function assertRejectedFlags(_0x4e7ba6,_0x1183ca){const _0x3b7bcd=a307_0x24bc;for(const _0x39bb38 of _0x4e7ba6[_0x3b7bcd(0xd1)]??[]){const _0x4aff17=GLOBAL_FLAGS[_0x3b7bcd(0xe8)](_0x1d5fe6=>_0x1d5fe6[_0x3b7bcd(0xc8)]===_0x39bb38[_0x3b7bcd(0xc8)]),_0x10d6a8=new Set([_0x39bb38[_0x3b7bcd(0xc8)],toCamelCase(_0x39bb38[_0x3b7bcd(0xc8)]),_0x4aff17?.[_0x3b7bcd(0xb2)]]),_0x5ba322=[..._0x10d6a8][_0x3b7bcd(0x9a)](_0x594ae9=>{if(!_0x594ae9)return![];const _0x1d28fb=_0x1183ca[_0x594ae9];return _0x1d28fb!==undefined&&_0x1d28fb!==null&&_0x1d28fb!==![];});if(_0x5ba322)throw CliErrors['validation'](_0x39bb38['message'],_0x39bb38[_0x3b7bcd(0xee)]);}}function toCamelCase(_0x59b45b){const _0x4e74a3=a307_0x24bc;return _0x59b45b[_0x4e74a3(0xb9)](/-([a-z])/g,(_0x4bbb9f,_0x3dbeab)=>_0x3dbeab['toUpperCase']());}function shouldAttachUpdateNotice(_0x44b20d){const _0x34b545=a307_0x24bc;if(_0x44b20d[_0x34b545(0xca)]===![])return![];return!['update',_0x34b545(0xdf),_0x34b545(0xa1)][_0x34b545(0xa0)](_0x44b20d['service']);}function withUpdateNotice(_0x1bbf28){return{..._0x1bbf28,async 'execute'(_0x45d2cf){const _0xa68de5=a307_0x24bc,_0x450c25=shouldResolveUpdateNotice(_0x45d2cf)?resolveLatestUpdateNotice()['catch'](()=>null):Promise['resolve'](null),_0x363a09=await _0x1bbf28[_0xa68de5(0x98)](_0x45d2cf);return attachUpdateNotice(_0x363a09,await _0x450c25);}};}function shouldResolveUpdateNotice(_0x363f04){const _0xd0b6c=a307_0x24bc;return _0x363f04['format']===_0xd0b6c(0xd5)&&!_0x363f04[_0xd0b6c(0xe7)];}function attachUpdateNotice(_0x2c4f0e,_0x25eef0){const _0x1d2a1f=a307_0x24bc;if(!_0x25eef0||!_0x2c4f0e||typeof _0x2c4f0e!=='object')return _0x2c4f0e;const _0x485d03=_0x2c4f0e,_0x868c4a=typeof _0x485d03[_0x1d2a1f(0xd2)]===_0x1d2a1f(0x97)&&_0x485d03[_0x1d2a1f(0xd2)]!==null?_0x485d03[_0x1d2a1f(0xd2)]:{};return{..._0x485d03,'_notice':{..._0x868c4a,'update':_0x25eef0}};}
|
|
1
|
+
(function(_0x4fd1b1,_0x59a820){const _0x5902aa=a308_0x11fd,_0x6af4d9=_0x4fd1b1();while(!![]){try{const _0x1d5e5e=parseInt(_0x5902aa(0xef))/0x1+parseInt(_0x5902aa(0xfc))/0x2*(parseInt(_0x5902aa(0x125))/0x3)+-parseInt(_0x5902aa(0xf1))/0x4*(-parseInt(_0x5902aa(0x117))/0x5)+-parseInt(_0x5902aa(0x12f))/0x6+parseInt(_0x5902aa(0x140))/0x7*(parseInt(_0x5902aa(0xf4))/0x8)+parseInt(_0x5902aa(0x136))/0x9*(-parseInt(_0x5902aa(0x13f))/0xa)+-parseInt(_0x5902aa(0x139))/0xb;if(_0x1d5e5e===_0x59a820)break;else _0x6af4d9['push'](_0x6af4d9['shift']());}catch(_0x2ba85c){_0x6af4d9['push'](_0x6af4d9['shift']());}}}(a308_0x2411,0x69cbe));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';function a308_0x11fd(_0x2fe068,_0x5bc282){_0x2fe068=_0x2fe068-0xec;const _0x2411ba=a308_0x2411();let _0x11fd66=_0x2411ba[_0x2fe068];return _0x11fd66;}import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a308_0x2b811d}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x569a57){const _0x570576=a308_0x11fd;return typeof _0x569a57==='string'&&_0x569a57['trim']()?_0x569a57[_0x570576(0x143)]():undefined;}function resolveEnvAppCode(){const _0x10f4a3=a308_0x11fd,_0x4120bf=stringFlag(process.env.RABETBASE_APPCODE);if(_0x4120bf)return{'name':_0x10f4a3(0x12a),'value':_0x4120bf};const _0x26b348=stringFlag(process.env.LOVRABET_APPCODE);if(_0x26b348)return{'name':'LOVRABET_APPCODE','value':_0x26b348};return undefined;}function hasExplicitAppCode(_0x1ca2bd,_0x4dda99){const _0xee5dd5=a308_0x11fd;return!!(stringFlag(_0x1ca2bd[_0xee5dd5(0x137)])||stringFlag(_0x4dda99[_0xee5dd5(0x137)]));}function assertEnvAppCodeNotIgnored(_0x167e61,_0x77a092,_0x419b67){const _0x1a7975=a308_0x11fd;if(!_0x77a092||_0x419b67||_0x167e61===_0x77a092[_0x1a7975(0x130)])return;const _0xf13902=_0x167e61?_0x1a7975(0x109)+_0x167e61+'\x22.':_0x1a7975(0x121);throw CliErrors[_0x1a7975(0x111)](_0x77a092[_0x1a7975(0x11d)]+'='+_0x77a092[_0x1a7975(0x130)]+_0x1a7975(0x116)+_0xf13902+'\x20'+(_0x1a7975(0xf3)+_0x77a092[_0x1a7975(0x11d)]+'\x22.'));}export function createPipelineEnv(_0x3af570,_0x4d0ac4,_0x1ecbd5=[]){const _0x4c6ceb=a308_0x11fd;return{'rawFlags':_0x4d0ac4,'args':_0x1ecbd5,'resolveAppCode':()=>_0x3af570[_0x4c6ceb(0xee)],'resolveCookie':()=>_0x3af570[_0x4c6ceb(0x135)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a308_0x2b811d(_0x4d0ac4),'defaultFormat':_0x3af570[_0x4c6ceb(0xed)],'defaultPageSize':_0x3af570['pageSize'],'defaultVerbose':_0x3af570['verbose'],'apiDir':_0x3af570[_0x4c6ceb(0x141)],'riskLevel':_0x3af570[_0x4c6ceb(0x11a)],'selectedAppName':_0x3af570[_0x4c6ceb(0x104)],'mergedCli':{'defaultApp':_0x3af570[_0x4c6ceb(0x122)],'currentApp':_0x3af570['currentApp'],'appCode':_0x3af570[_0x4c6ceb(0xee)],'apps':_0x3af570[_0x4c6ceb(0xff)]}};}export function createRabetbaseRunnerAdapter(_0x4ead82={}){const _0x2eaff0=a308_0x11fd;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x2eaff0(0x127)](_0x27349d=>PIPELINE_FLAG_NAMES['has'](_0x27349d['name']))[_0x2eaff0(0x13c)](({name:_0x1290bc,type:_0x3f629f,description:_0x4f4021})=>({'name':_0x1290bc,'type':_0x3f629f,'description':_0x4f4021})),'formatOutput':_0x4ead82[_0x2eaff0(0x100)]??formatOutput,'getCommandLabel'(_0x12860c){const _0x5f09ee=_0x2eaff0;return CLI_BIN_NAME+'\x20'+_0x12860c['service']+'\x20'+_0x12860c[_0x5f09ee(0x13b)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x4cedf3,{def:_0xe35941}){const _0x42d5bf=_0x2eaff0,_0x4f891e=_0x4cedf3[_0x42d5bf(0x128)](_0x42d5bf(0x119))?_0x42d5bf(0x118):_0x42d5bf(0x12c)+_0xe35941['risk']+'\x22\x20if\x20this\x20operation\x20is\x20intended.\x20'+_0x42d5bf(0x118);return CliErrors[_0x42d5bf(0x111)](_0x4cedf3+_0x42d5bf(0x129)+_0x4f891e);}},async 'prepare'(_0x53ac5e,_0x3ffc87,_0xc4410c,_0x4769cf){const _0x4b7505=_0x2eaff0,_0x187d11=_0x3ffc87[_0x4b7505(0x141)]||DEFAULT_API_DIR,_0x2644c2=hasExplicitAppCode(_0xc4410c,_0x3ffc87[_0x4b7505(0x101)]),_0x5104b1=stringFlag(_0xc4410c[_0x4b7505(0x137)])||stringFlag(_0x3ffc87[_0x4b7505(0x101)]['appcode']),_0x2f3a04=_0x3ffc87[_0x4b7505(0xf0)]?.[_0x4b7505(0xff)]??{},_0x184252=_0x3ffc87['selectedAppName']||_0x3ffc87[_0x4b7505(0xf0)]?.[_0x4b7505(0x142)]||_0x3ffc87[_0x4b7505(0xf0)]?.[_0x4b7505(0x122)],_0x315607=_0x5104b1?Object[_0x4b7505(0x107)](_0x2f3a04)[_0x4b7505(0x127)](([,_0x52e387])=>_0x52e387['appcode']===_0x5104b1)[_0x4b7505(0x13c)](([_0x1bf364])=>_0x1bf364):[];if(_0x315607[_0x4b7505(0xf7)]>0x1&&!_0x3ffc87['selectedAppName'])throw CliErrors[_0x4b7505(0x111)](_0x4b7505(0xfe)+_0x5104b1+_0x4b7505(0x134)+_0x315607[_0x4b7505(0x113)](',\x20')+'.',_0x4b7505(0x11c));resolveAliasToCode(_0x53ac5e,_0xc4410c,_0x187d11,_0x4769cf,_0x3ffc87[_0x4b7505(0x11b)](),_0x184252);const _0x52701d=resolveCommandAuthMode(_0x53ac5e);let _0x182a24='';if(_0x52701d!==_0x4b7505(0x115)){_0x182a24=_0x3ffc87[_0x4b7505(0x13d)]()||'';if(!_0x182a24){if(_0x52701d===_0x4b7505(0x10f))throw CliErrors[_0x4b7505(0x105)]();}else{const {setActiveCookie:_0x467eb3}=await import(_0x4b7505(0x13e));_0x467eb3(_0x182a24);}}const _0x1b45dc=_0x3ffc87[_0x4b7505(0x11b)]()??'';if(_0x53ac5e[_0x4b7505(0x10b)]!==![]){if(!_0x2644c2&&_0x184252&&!_0x2f3a04[_0x184252]){const _0x29dabf=Object['keys'](_0x2f3a04);throw CliErrors[_0x4b7505(0x111)]('App\x20\x22'+_0x184252+_0x4b7505(0x132),_0x29dabf[_0x4b7505(0xf7)]>0x0?_0x4b7505(0x11e)+_0x29dabf[_0x4b7505(0x113)](',\x20')+_0x4b7505(0xf2)+CLI_BIN_NAME+_0x4b7505(0x10c):_0x4b7505(0x131)+CLI_BIN_NAME+_0x4b7505(0x10c));}assertEnvAppCodeNotIgnored(_0x1b45dc,resolveEnvAppCode(),_0x2644c2);if(!_0x1b45dc){const _0x55adc8=Object[_0x4b7505(0x12d)](_0x2f3a04);if(!_0x184252&&_0x55adc8[_0x4b7505(0xf7)]>0x1)throw CliErrors['configMissing']('Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`'+CLI_BIN_NAME+_0x4b7505(0x110)+_0x55adc8['join'](',\x20')+'.');throw CliErrors[_0x4b7505(0x10a)]('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}}return{'defaults':{'booleans':{'verbose':_0x3ffc87[_0x4b7505(0xf6)]},'numbers':{'pagesize':_0x3ffc87[_0x4b7505(0x138)]}},'extras':{'appCode':_0x1b45dc,'cookie':_0x182a24,'apiDomain':_0x3ffc87['resolveApiDomain'](),'apiDir':_0x187d11,'selectedAppName':_0x3ffc87[_0x4b7505(0xec)],'mergedCli':_0x3ffc87['mergedCli']}};},'confirmHighRisk':_0x4ead82[_0x2eaff0(0x120)]??(async({env:_0x404b73,commandLabel:_0x1bdd78})=>{const _0x51067d=_0x2eaff0;if(_0x404b73[_0x51067d(0x123)])throw CliErrors['validation'](_0x51067d(0x10e)+_0x1bdd78+_0x51067d(0x114));await requireConfirmationPrompt({'lines':[_0x51067d(0x102)+_0x1bdd78,_0x51067d(0xfa)],'createCancelledError':_0x3cf969=>CliErrors[_0x51067d(0xf9)](_0x3cf969)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x130bfb=a308_0x11fd,{clearActiveCookie:_0x289456}=await import(_0x130bfb(0x13e));_0x289456();}export async function finalizeRabetbaseRuntimeState(){try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x27e7c5},{initEnv:_0x3034c1}]=await Promise['all']([import('../constant/domain.js'),import('../constant/env.js')]);_0x27e7c5(),_0x3034c1('production');}}export async function runCommand(_0x4152e8,_0x287266,_0x3d440f=terminalRunnerAdapter){const _0x319920=a308_0x11fd;assertRejectedFlags(_0x4152e8,_0x287266[_0x319920(0x101)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x4152e8)?withUpdateNotice(_0x4152e8):_0x4152e8,_0x287266,_0x3d440f);}function assertRejectedFlags(_0x3adfb2,_0x1edddc){const _0x18e974=a308_0x11fd;for(const _0x5690ea of _0x3adfb2[_0x18e974(0x12e)]??[]){const _0x3d071a=GLOBAL_FLAGS[_0x18e974(0x11f)](_0x296932=>_0x296932[_0x18e974(0x11d)]===_0x5690ea[_0x18e974(0x11d)]),_0x1d4de5=new Set([_0x5690ea[_0x18e974(0x11d)],toCamelCase(_0x5690ea['name']),_0x3d071a?.[_0x18e974(0x10d)]]),_0x4cebae=[..._0x1d4de5][_0x18e974(0x106)](_0x1615bb=>{if(!_0x1615bb)return![];const _0x1c04c9=_0x1edddc[_0x1615bb];return _0x1c04c9!==undefined&&_0x1c04c9!==null&&_0x1c04c9!==![];});if(_0x4cebae)throw CliErrors[_0x18e974(0x111)](_0x5690ea[_0x18e974(0x133)],_0x5690ea[_0x18e974(0x103)]);}}function toCamelCase(_0x44125f){const _0x4dae91=a308_0x11fd;return _0x44125f[_0x4dae91(0xfb)](/-([a-z])/g,(_0x245c62,_0xcd8380)=>_0xcd8380[_0x4dae91(0xf8)]());}function shouldAttachUpdateNotice(_0x1d5548){const _0xc07285=a308_0x11fd;if(_0x1d5548[_0xc07285(0x108)]===![])return![];return![_0xc07285(0xf5),_0xc07285(0x112),'doctor'][_0xc07285(0x128)](_0x1d5548['service']);}function withUpdateNotice(_0x412a6c){return{..._0x412a6c,async 'execute'(_0x1f902){const _0x29a5b6=a308_0x11fd,_0x1e6712=shouldResolveUpdateNotice(_0x1f902)?resolveLatestUpdateNotice()[_0x29a5b6(0xfd)](()=>null):Promise[_0x29a5b6(0x124)](null),_0x543a6f=await _0x412a6c[_0x29a5b6(0x13a)](_0x1f902);return attachUpdateNotice(_0x543a6f,await _0x1e6712);}};}function shouldResolveUpdateNotice(_0xb68a0d){const _0x393229=a308_0x11fd;return _0xb68a0d[_0x393229(0xed)]==='pretty'&&!_0xb68a0d['nonInteractive'];}function attachUpdateNotice(_0x64020a,_0x43c455){const _0x406397=a308_0x11fd;if(!_0x43c455||!_0x64020a||typeof _0x64020a!=='object')return _0x64020a;const _0x379339=_0x64020a,_0x37a947=typeof _0x379339[_0x406397(0x126)]===_0x406397(0x12b)&&_0x379339[_0x406397(0x126)]!==null?_0x379339['_notice']:{};return{..._0x379339,'_notice':{..._0x37a947,'update':_0x43c455}};}function a308_0x2411(){const _0x16515c=['required','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','validation','schema','join','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','none','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','65tQCeQl','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','Edit\x20the\x20config\x20file\x20manually','riskLevel','resolveAppCode','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','name','Available:\x20','find','confirmHighRisk','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','defaultApp','isNonInteractive','resolve','3TjWQIo','_notice','filter','includes','\x0a\x20\x20','RABETBASE_APPCODE','object','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','keys','rejectedFlags','2343930WAmXoM','value','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','message','\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20','cookie','2990097smVXDC','appcode','defaultPageSize','19428981JaxuBa','execute','command','map','resolveCookie','../core/api-client.js','10JYCftR','101857hCXpPh','apiDir','currentApp','trim','selectedAppName','format','appCode','774358AgAhud','mergedCli','264284HtWCTW','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','472SXylTJ','update','defaultVerbose','length','toUpperCase','cancelled','\x20\x20\x20Continue?\x20[y/N]\x20','replace','861422WnWHYJ','catch','AppCode\x20\x22','apps','formatOutput','rawFlags','⚠\x20\x20High-risk\x20operation:\x20','hint','explicitAppName','authRequired','some','entries','hasFormat','Current\x20resolved\x20appcode\x20is\x20\x22','configMissing','requiresAppCode','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','meowKey','High-risk\x20operation\x20`'];a308_0x2411=function(){return _0x16515c;};return a308_0x2411();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2d1005,_0x8d950f){const _0x263dda=a309_0x5dcc,_0x49bad2=_0x2d1005();while(!![]){try{const _0xeb2b33=-parseInt(_0x263dda(0xb6))/0x1*(-parseInt(_0x263dda(0xae))/0x2)+-parseInt(_0x263dda(0xb0))/0x3*(parseInt(_0x263dda(0xb8))/0x4)+-parseInt(_0x263dda(0xaf))/0x5+-parseInt(_0x263dda(0xb4))/0x6*(-parseInt(_0x263dda(0xb1))/0x7)+-parseInt(_0x263dda(0xb5))/0x8+parseInt(_0x263dda(0xb9))/0x9*(parseInt(_0x263dda(0xb7))/0xa)+parseInt(_0x263dda(0xb2))/0xb*(parseInt(_0x263dda(0xb3))/0xc);if(_0xeb2b33===_0x8d950f)break;else _0x49bad2['push'](_0x49bad2['shift']());}catch(_0x51e4bb){_0x49bad2['push'](_0x49bad2['shift']());}}}(a309_0x1935,0xc7989));function a309_0x1935(){const _0x201098=['216yTMhcH','../commands/registry.js','2598902LMYGYy','4472795SIyBou','153NURfVB','21gaIoZe','11ZhnQNI','28126188jrbEKt','1367406UByosF','11299344jPMIuC','1yerEuh','530WGhMUH','94412DqcCco'];a309_0x1935=function(){return _0x201098;};return a309_0x1935();}import{buildSchemaPayload as a309_0x5f0ebf}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';function a309_0x5dcc(_0x26206d,_0x5d6cd3){_0x26206d=_0x26206d-0xad;const _0x19357b=a309_0x1935();let _0x5dcc7d=_0x19357b[_0x26206d];return _0x5dcc7d;}export async function buildSchemaPayload(){const _0xade2ae=a309_0x5dcc,{serviceRegistry:_0x2ce2ee,findDefinition:_0x4f89b7}=await import(_0xade2ae(0xad));return a309_0x5f0ebf({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x2ce2ee,'buildAllFlags':buildAllFlags,'findDefinition':_0x4f89b7});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2f8e1c,_0x3070cb){const _0x349ea7=a310_0x10b7,_0x3769e1=_0x2f8e1c();while(!![]){try{const _0x111927=-parseInt(_0x349ea7(0x125))/0x1*(parseInt(_0x349ea7(0x124))/0x2)+-parseInt(_0x349ea7(0x117))/0x3*(-parseInt(_0x349ea7(0x11a))/0x4)+-parseInt(_0x349ea7(0x122))/0x5+parseInt(_0x349ea7(0x10d))/0x6*(-parseInt(_0x349ea7(0x112))/0x7)+-parseInt(_0x349ea7(0x108))/0x8+parseInt(_0x349ea7(0x118))/0x9*(parseInt(_0x349ea7(0x127))/0xa)+-parseInt(_0x349ea7(0x11b))/0xb*(-parseInt(_0x349ea7(0x114))/0xc);if(_0x111927===_0x3070cb)break;else _0x3769e1['push'](_0x3769e1['shift']());}catch(_0xcdf995){_0x3769e1['push'](_0x3769e1['shift']());}}}(a310_0x4c79,0x31bc2));import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function assertSupportedCommandFlags(_0x50c215,_0x5d0efb){const _0x4b74f9=a310_0x10b7;if(!_0x50c215[_0x4b74f9(0x10e)])return;const _0x48c9d5=new Set([_0x4b74f9(0x11c),_0x4b74f9(0x120)]),_0x38fbff=GLOBAL_FLAGS[_0x4b74f9(0x109)](_0x3b7d0b=>PIPELINE_FLAG_NAMES[_0x4b74f9(0x10a)](_0x3b7d0b[_0x4b74f9(0x126)]));for(const _0x168910 of[..._0x50c215[_0x4b74f9(0x116)],..._0x38fbff]){addFlagCandidates(_0x48c9d5,_0x168910);}for(const [_0x2757ef,_0x14baff]of Object[_0x4b74f9(0x119)](_0x5d0efb)){if(!isExplicitValue(_0x14baff)||_0x48c9d5[_0x4b74f9(0x10a)](_0x2757ef))continue;const _0x3469c0=GLOBAL_FLAGS[_0x4b74f9(0x10b)](_0xb2844b=>_0xb2844b[_0x4b74f9(0x113)]===_0x2757ef)?.['name']??toKebabCase(_0x2757ef);throw CliErrors[_0x4b74f9(0x111)]('Unsupported\x20flag\x20--'+_0x3469c0+_0x4b74f9(0x121)+CLI_BIN_NAME+'\x20'+_0x50c215[_0x4b74f9(0x11f)]+'\x20'+_0x50c215[_0x4b74f9(0x115)]+'`.','Run\x20`'+CLI_BIN_NAME+'\x20'+_0x50c215['service']+'\x20'+_0x50c215[_0x4b74f9(0x115)]+_0x4b74f9(0x110));}}function a310_0x4c79(){const _0x56838e=['alias','1446840KrAhyE','filter','has','find','$1-$2','2202UvoGMv','strictFlags','add','\x20--help`\x20to\x20view\x20the\x20current\x20command\x20contract.','validation','3857JcrDWA','meowKey','198540IVBulv','command','flags','3hUVhBT','2637TSqvZr','entries','1618684XWpekh','484uZEfCM','help','isArray','replace','service','version','\x20for\x20`','1646820PklBFw','length','13324NQjGcr','46DMapoG','name','3070PyRoEJ'];a310_0x4c79=function(){return _0x56838e;};return a310_0x4c79();}function addFlagCandidates(_0x4ebaeb,_0x34ca96){const _0x49c3aa=a310_0x10b7,_0xc590b7=_0x49c3aa(0x113)in _0x34ca96?[_0x34ca96['name'],_0x34ca96[_0x49c3aa(0x113)]]:[_0x34ca96[_0x49c3aa(0x126)],_0x34ca96[_0x49c3aa(0x128)]];for(const _0x3d9a58 of _0xc590b7){if(!_0x3d9a58)continue;_0x4ebaeb[_0x49c3aa(0x10f)](_0x3d9a58),_0x4ebaeb[_0x49c3aa(0x10f)](toCamelCase(_0x3d9a58));}}function isExplicitValue(_0x23a548){const _0x1a00fc=a310_0x10b7;return _0x23a548!==undefined&&_0x23a548!==null&&_0x23a548!==![]&&(!Array[_0x1a00fc(0x11d)](_0x23a548)||_0x23a548[_0x1a00fc(0x123)]>0x0);}function toCamelCase(_0x242543){const _0x590ec9=a310_0x10b7;return _0x242543[_0x590ec9(0x11e)](/-([a-z])/g,(_0x309ad2,_0x4ee5ba)=>_0x4ee5ba['toUpperCase']());}function a310_0x10b7(_0x153f88,_0x37a64b){_0x153f88=_0x153f88-0x108;const _0x4c79ac=a310_0x4c79();let _0x10b72a=_0x4c79ac[_0x153f88];return _0x10b72a;}function toKebabCase(_0x47c9cc){const _0x33a8a7=a310_0x10b7;return _0x47c9cc['replace'](/([a-z0-9])([A-Z])/g,_0x33a8a7(0x10c))['toLowerCase']();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1a8dc4,_0x16f9cb){var _0x2f988a=a311_0x4668,_0x3e1918=_0x1a8dc4();while(!![]){try{var _0x5cbac6=parseInt(_0x2f988a(0xc8))/0x1+parseInt(_0x2f988a(0xc9))/0x2+-parseInt(_0x2f988a(0xca))/0x3+parseInt(_0x2f988a(0xcc))/0x4*(parseInt(_0x2f988a(0xc7))/0x5)+parseInt(_0x2f988a(0xc4))/0x6+parseInt(_0x2f988a(0xcb))/0x7*(parseInt(_0x2f988a(0xc3))/0x8)+-parseInt(_0x2f988a(0xc6))/0x9*(parseInt(_0x2f988a(0xc5))/0xa);if(_0x5cbac6===_0x16f9cb)break;else _0x3e1918['push'](_0x3e1918['shift']());}catch(_0x32909f){_0x3e1918['push'](_0x3e1918['shift']());}}}(a311_0x25c6,0x7fad8));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';function a311_0x4668(_0x1cca58,_0x23bea3){_0x1cca58=_0x1cca58-0xc3;var _0x25c69f=a311_0x25c6();var _0x46685f=_0x25c69f[_0x1cca58];return _0x46685f;}function a311_0x25c6(){var _0x3e66b8=['144iVCYoN','35430jKiIxa','48829XYcuSR','1695318dHFgVx','1908009vvHiuF','2681WVAGsv','24JpODfS','2264NpbnTx','4524540CjYDQE','401570VNWHrC'];a311_0x25c6=function(){return _0x3e66b8;};return a311_0x25c6();}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.5.4-beta.
|
|
2
|
-
export declare const GIT_TAG = "v2.5.4-beta.
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-09-
|
|
1
|
+
export declare const VERSION = "2.5.4-beta.4";
|
|
2
|
+
export declare const GIT_TAG = "v2.5.4-beta.4";
|
|
3
|
+
export declare const GIT_COMMIT = "18d4c36c";
|
|
4
|
+
export declare const BUILD_TIME = "2026-09-24T04:16:41.101Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a312_0x43a638=a312_0x41a6;(function(_0x39f5db,_0x4b75b0){const _0x374fa1=a312_0x41a6,_0x1134e6=_0x39f5db();while(!![]){try{const _0x3ad58b=parseInt(_0x374fa1(0x9c))/0x1*(-parseInt(_0x374fa1(0x9d))/0x2)+-parseInt(_0x374fa1(0xa3))/0x3+parseInt(_0x374fa1(0x98))/0x4*(-parseInt(_0x374fa1(0x9a))/0x5)+-parseInt(_0x374fa1(0xa0))/0x6*(parseInt(_0x374fa1(0x9b))/0x7)+parseInt(_0x374fa1(0x9e))/0x8+parseInt(_0x374fa1(0x99))/0x9+parseInt(_0x374fa1(0xa4))/0xa*(parseInt(_0x374fa1(0xa5))/0xb);if(_0x3ad58b===_0x4b75b0)break;else _0x1134e6['push'](_0x1134e6['shift']());}catch(_0xdea4b1){_0x1134e6['push'](_0x1134e6['shift']());}}}(a312_0x2cbb,0x9c080));export const VERSION='2.5.4-beta.4';export const GIT_TAG=a312_0x43a638(0xa2);function a312_0x41a6(_0x46b066,_0x5eb851){_0x46b066=_0x46b066-0x98;const _0x2cbb65=a312_0x2cbb();let _0x41a6e4=_0x2cbb65[_0x46b066];return _0x41a6e4;}export const GIT_COMMIT=a312_0x43a638(0x9f);export const BUILD_TIME=a312_0x43a638(0xa1);function a312_0x2cbb(){const _0xa8e920=['29544kCzJCu','2026-09-24T04:16:41.101Z','v2.5.4-beta.4','2378463rMyglB','17381590NOwqkH','11NXwgVW','4kZBRtZ','3539286PHTHsQ','2269885qkMtwp','14SmYOwi','867589xtLZEJ','2PTbIhz','5055408iwsFGD','18d4c36c'];a312_0x2cbb=function(){return _0xa8e920;};return a312_0x2cbb();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a313_0x2656ff=a313_0x46eb;(function(_0x46d345,_0x5b94bb){const _0x5c6dff=a313_0x46eb,_0x15b1f1=_0x46d345();while(!![]){try{const _0x1733f1=-parseInt(_0x5c6dff(0xb5))/0x1+-parseInt(_0x5c6dff(0xb7))/0x2*(parseInt(_0x5c6dff(0xb3))/0x3)+-parseInt(_0x5c6dff(0xd3))/0x4+-parseInt(_0x5c6dff(0xc0))/0x5+-parseInt(_0x5c6dff(0xc7))/0x6+parseInt(_0x5c6dff(0xc9))/0x7*(parseInt(_0x5c6dff(0xb8))/0x8)+parseInt(_0x5c6dff(0xb0))/0x9;if(_0x1733f1===_0x5b94bb)break;else _0x15b1f1['push'](_0x15b1f1['shift']());}catch(_0x4e4ef3){_0x15b1f1['push'](_0x15b1f1['shift']());}}}(a313_0x189d,0x1ffd2));export const ROUTING_CATALOG_DIGEST=a313_0x2656ff(0xbc);function a313_0x189d(){const _0x4428cd=['https://api.lovrabet.com','https://user-daily.lovrabet.com','https://daily-api.lovrabet.ai','https://api.lovrabet.id','https://daily.lovrabet.com','6940125IKLtTv','https://app.lovrabet.ai','https://skills-daily.lovrabet.com','162ABmhFN','https://daily-runtime.lovrabet.com','208614NlxTDB','https://daily-api.lovrabet.com','8682hHSslF','497784QOuAVC','Indonesia','https://skills-daily.lovrabet.ai','https://kb-service.lovrabet.id','57d346b80b12ca567af9d86dd7f8c02a0c27fe15d4944c8345add2cc6134c587','https://dev.lovrabet.ai','https://app.lovrabet.id','https://user.lovrabet.ai','487015iyrfYJ','https://api.lovrabet.ai','https://skills.lovrabet.com','https://daily.lovrabet.ai','https://daily-runtime.lovrabet.ai','indonesia','Global','1355490YQxkZa','global','21LJlMdF','https://user-daily.lovrabet.ai','https://g.lovrabet.ai','https://g.lovrabet.id','https://runtime.lovrabet.id','https://dev.lovrabet.com','https://dev.lovrabet.id','https://g.lovrabet.com','https://g.alicdn.com/code/lib','https://user.lovrabet.com','241688NfEpag','https://kb-service-daily.lovrabet.com','https://cdnjs.cloudflare.com/ajax/libs'];a313_0x189d=function(){return _0x4428cd;};return a313_0x189d();}export const DEFAULT_REGION='cn';function a313_0x46eb(_0x209f29,_0x1096c5){_0x209f29=_0x209f29-0xab;const _0x189d83=a313_0x189d();let _0x46eb8e=_0x189d83[_0x209f29];return _0x46eb8e;}export const REGION_VALUES=['cn','id',a313_0x2656ff(0xc8)];export const ENABLED_REGION_VALUES=['cn','id',a313_0x2656ff(0xc8)];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':'Mainland\x20China','aliases':['china'],'serviceDomains':{'production':{'user':a313_0x2656ff(0xd2),'api':a313_0x2656ff(0xab),'runtime':'https://runtime.lovrabet.com','skill':a313_0x2656ff(0xc2),'kb':a313_0x2656ff(0xab),'kbService':'https://kb-service.lovrabet.com','app':'https://app.lovrabet.com'},'daily':{'user':a313_0x2656ff(0xac),'api':a313_0x2656ff(0xb6),'runtime':a313_0x2656ff(0xb4),'skill':a313_0x2656ff(0xb2),'kb':a313_0x2656ff(0xb6),'kbService':a313_0x2656ff(0xd4),'app':a313_0x2656ff(0xaf)}},'cdn':{'libraries':a313_0x2656ff(0xd1),'lovrabet':a313_0x2656ff(0xd0)},'local':{'origin':a313_0x2656ff(0xce)}},'id':{'enabled':!![],'label':a313_0x2656ff(0xb9),'aliases':[a313_0x2656ff(0xc5)],'serviceDomains':{'production':{'user':'https://user.lovrabet.id','api':a313_0x2656ff(0xae),'runtime':a313_0x2656ff(0xcd),'skill':'https://skills.lovrabet.id','kb':a313_0x2656ff(0xae),'kbService':a313_0x2656ff(0xbb),'app':a313_0x2656ff(0xbe)}},'cdn':{'libraries':a313_0x2656ff(0xd5),'lovrabet':a313_0x2656ff(0xcc)},'local':{'origin':a313_0x2656ff(0xcf)}},'global':{'enabled':!![],'label':a313_0x2656ff(0xc6),'aliases':[],'serviceDomains':{'production':{'user':a313_0x2656ff(0xbf),'api':'https://api.lovrabet.ai','runtime':'https://runtime.lovrabet.ai','skill':'https://skills.lovrabet.ai','kb':a313_0x2656ff(0xc1),'app':a313_0x2656ff(0xb1)},'daily':{'user':a313_0x2656ff(0xca),'api':a313_0x2656ff(0xad),'runtime':a313_0x2656ff(0xc4),'skill':a313_0x2656ff(0xba),'kb':'https://daily-api.lovrabet.ai','app':a313_0x2656ff(0xc3)}},'cdn':{'libraries':'https://cdnjs.cloudflare.com/ajax/libs','lovrabet':a313_0x2656ff(0xcb)},'local':{'origin':a313_0x2656ff(0xbd)}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a314_0x155f77=a314_0x40e5;(function(_0x44ac1f,_0x3670e6){const _0x5e7fa6=a314_0x40e5,_0x2c9c4b=_0x44ac1f();while(!![]){try{const _0x304784=parseInt(_0x5e7fa6(0xc5))/0x1*(-parseInt(_0x5e7fa6(0xc3))/0x2)+parseInt(_0x5e7fa6(0xc4))/0x3+parseInt(_0x5e7fa6(0xcb))/0x4*(parseInt(_0x5e7fa6(0xca))/0x5)+-parseInt(_0x5e7fa6(0xb9))/0x6+-parseInt(_0x5e7fa6(0xbc))/0x7*(parseInt(_0x5e7fa6(0xc1))/0x8)+-parseInt(_0x5e7fa6(0xc8))/0x9+parseInt(_0x5e7fa6(0xc0))/0xa;if(_0x304784===_0x3670e6)break;else _0x2c9c4b['push'](_0x2c9c4b['shift']());}catch(_0x3f22bb){_0x2c9c4b['push'](_0x2c9c4b['shift']());}}}(a314_0x1acd,0x544fb));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a314_0x155f77(0xcc);export const ENTERPRISE_ROUTING_PROTOCOL='lovrabet-routing/v1';export const ENTERPRISE_ROUTING_KIND=a314_0x155f77(0xbd);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=['userDomain','apiDomain',a314_0x155f77(0xbb),a314_0x155f77(0xbf),a314_0x155f77(0xc2),'kbServiceDomain',a314_0x155f77(0xc9),a314_0x155f77(0xc6),a314_0x155f77(0xc7)];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a314_0x155f77(0xb8),a314_0x155f77(0xbe),a314_0x155f77(0xbb),a314_0x155f77(0xbf),a314_0x155f77(0xc2),a314_0x155f77(0xc9)];function a314_0x40e5(_0x417073,_0x20ecd7){_0x417073=_0x417073-0xb8;const _0x1acdb6=a314_0x1acd();let _0x40e58c=_0x1acdb6[_0x417073];return _0x40e58c;}export const ENTERPRISE_ROUTING_CDN_FIELDS=['libraries','lovrabet'];function a314_0x1acd(){const _0xa41ba0=['libraries','runtimeDomain','170863AauNtc','enterprise','apiDomain','skillDomain','9516150VIZTXC','56WfAfgA','kbDomain','113548DSFdvD','1249725eYXAmO','8jngvnb','localDomain','certificateDomain','2380149DoEFcP','appDomain','1112755MmBaiB','8TflMoP','a03fe188b2b34518efc5668666c0001d20354882cd7dd70afec902dffe1329c3','userDomain','3470622TLvcHQ'];a314_0x1acd=function(){return _0xa41ba0;};return a314_0x1acd();}export const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS=[a314_0x155f77(0xba),'lovrabet'];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5d8e37,_0xe7c5c){var _0x16de60=a315_0x1da5,_0x119c7e=_0x5d8e37();while(!![]){try{var _0x44e18b=-parseInt(_0x16de60(0x79))/0x1+parseInt(_0x16de60(0x7a))/0x2+parseInt(_0x16de60(0x6f))/0x3*(parseInt(_0x16de60(0x6d))/0x4)+parseInt(_0x16de60(0x6c))/0x5*(parseInt(_0x16de60(0x78))/0x6)+-parseInt(_0x16de60(0x75))/0x7+-parseInt(_0x16de60(0x72))/0x8+parseInt(_0x16de60(0x74))/0x9*(parseInt(_0x16de60(0x76))/0xa);if(_0x44e18b===_0xe7c5c)break;else _0x119c7e['push'](_0x119c7e['shift']());}catch(_0x5422bb){_0x119c7e['push'](_0x119c7e['shift']());}}}(a315_0x5d9d,0x3562f));function a315_0x1da5(_0x3ae458,_0x17153d){_0x3ae458=_0x3ae458-0x6b;var _0x5d9d2c=a315_0x5d9d();var _0x1da54a=_0x5d9d2c[_0x3ae458];return _0x1da54a;}import a315_0x97c6ea from'chalk';function a315_0x5d9d(){var _0x48969a=['log','9GhfveX','1429211uljyHw','6991790NBOcDo','\x20--help','90366gxTMxp','362836XMiuWx','139004qsJjee','\x20to\x20view\x20available\x20commands.','10lJnwFI','223140Iomvtt','bold','6ffxxOR','\x20\x20Use\x20','green','997544VwAKUl'];a315_0x5d9d=function(){return _0x48969a;};return a315_0x5d9d();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x459203=a315_0x1da5;console['log'](),console[_0x459203(0x73)](a315_0x97c6ea[_0x459203(0x71)][_0x459203(0x6e)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x459203(0x73)](),console[_0x459203(0x73)](_0x459203(0x70)+a315_0x97c6ea['green'][_0x459203(0x6e)](CLI_BIN_NAME+_0x459203(0x77))+_0x459203(0x6b)),console[_0x459203(0x73)]();}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a316_0x3960(){const _0x48c0b2=['installed','133542rhrmxT','6516HCLfzi','FAILED','Installation\x20failed','log','358810mzLfhy','installedPath','Repair\x20with:\x20','490SKjlpf','skillVersion','343264CbUnvc','already\x20current','code','SOURCE_INVALID','140536vtAwOM','Rabetbase\x20Built-in\x20Skill\x20','[BUILTIN_SKILL_INSTALL_','warn','repairCommand','413397ziJyMt','\x20at\x20','701960XYiEja'];a316_0x3960=function(){return _0x48c0b2;};return a316_0x3960();}(function(_0xe96429,_0x3e3a85){const _0x39d3e1=a316_0x2634,_0x224747=_0xe96429();while(!![]){try{const _0x300ad6=-parseInt(_0x39d3e1(0x1e5))/0x1+parseInt(_0x39d3e1(0x1ea))/0x2+parseInt(_0x39d3e1(0x1e1))/0x3+-parseInt(_0x39d3e1(0x1d8))/0x4+parseInt(_0x39d3e1(0x1e3))/0x5+parseInt(_0x39d3e1(0x1e6))/0x6*(-parseInt(_0x39d3e1(0x1ed))/0x7)+-parseInt(_0x39d3e1(0x1dc))/0x8;if(_0x300ad6===_0x3e3a85)break;else _0x224747['push'](_0x224747['shift']());}catch(_0xbaa9e9){_0x224747['push'](_0x224747['shift']());}}}(a316_0x3960,0x2350b));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a316_0x2634(_0x2c5fac,_0x5f1c73){_0x2c5fac=_0x2c5fac-0x1d8;const _0x39609d=a316_0x3960();let _0x263469=_0x39609d[_0x2c5fac];return _0x263469;}export async function runPostinstall(_0x125d0a={}){const _0x56bb18=a316_0x2634,_0x18a631=installBuiltinSkill(_0x125d0a);if(_0x18a631['ok']){const _0x23fd35=_0x18a631['changed']?_0x56bb18(0x1e4):_0x56bb18(0x1d9),_0x5c07f2=_0x18a631[_0x56bb18(0x1eb)]?_0x56bb18(0x1e2)+_0x18a631[_0x56bb18(0x1eb)]:'\x20via\x20skills@latest';return console[_0x56bb18(0x1e9)](_0x56bb18(0x1dd)+_0x18a631[_0x56bb18(0x1ee)]+'\x20'+_0x23fd35+_0x5c07f2),_0x18a631;}const _0xe7c68f=_0x56bb18(0x1de)+(_0x18a631['code']??_0x56bb18(0x1e7))+']\x20'+(_0x18a631['error']??_0x56bb18(0x1e8))+'.\x20'+(_0x56bb18(0x1ec)+_0x18a631[_0x56bb18(0x1e0)]);if(_0x18a631[_0x56bb18(0x1da)]===_0x56bb18(0x1db))throw new Error(_0xe7c68f);return console[_0x56bb18(0x1df)](_0xe7c68f),_0x18a631;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a317_0x52e4(){const _0x27c1e5=['replace','420DIybcw','confirmationDescription','38700axsQLm','10VjCNKw','6077892iLMSkh','.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.','5368528mexbRz','7175Tqnffs','write','This\x20will\x20run\x20the\x20high-risk\x20write\x20','high-risk-write','1738359hYGFQD','2YMPyPF','string','35301QkDVqb','.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.','risk','148gnoVdX','slice','This\x20will\x20run\x20the\x20write\x20','5144KZBZQL','trim','245957nTRnyC'];a317_0x52e4=function(){return _0x27c1e5;};return a317_0x52e4();}function a317_0x1ea9(_0x249574,_0x1f5624){_0x249574=_0x249574-0xed;const _0x52e408=a317_0x52e4();let _0x1ea946=_0x52e408[_0x249574];return _0x1ea946;}(function(_0x28558e,_0x304eef){const _0x586833=a317_0x1ea9,_0xf2dfdc=_0x28558e();while(!![]){try{const _0x35377f=-parseInt(_0x586833(0x102))/0x1*(-parseInt(_0x586833(0xf8))/0x2)+-parseInt(_0x586833(0xfa))/0x3*(-parseInt(_0x586833(0xfd))/0x4)+parseInt(_0x586833(0xee))/0x5*(parseInt(_0x586833(0x104))/0x6)+-parseInt(_0x586833(0xf3))/0x7*(parseInt(_0x586833(0x100))/0x8)+-parseInt(_0x586833(0xf7))/0x9*(parseInt(_0x586833(0xef))/0xa)+parseInt(_0x586833(0xf2))/0xb+-parseInt(_0x586833(0xf0))/0xc;if(_0x35377f===_0x304eef)break;else _0xf2dfdc['push'](_0xf2dfdc['shift']());}catch(_0xb235b7){_0xf2dfdc['push'](_0xf2dfdc['shift']());}}}(a317_0x52e4,0x560d3));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x4576fc,_0x4cc462,_0x273744){const _0x5b874c=a317_0x1ea9,_0x463edb=normalizeText(_0x4576fc[_0x5b874c(0xed)],DESCRIPTION_MAX_LENGTH),_0x1eec07=_0x463edb||normalizeText(defaultDescription(requireWriteRisk(_0x4576fc),_0x4cc462),DESCRIPTION_MAX_LENGTH);return{'operation':_0x4cc462,'risk':requireWriteRisk(_0x4576fc),'description':_0x1eec07,..._0x273744?{'signal':_0x273744}:{}};}function requireWriteRisk(_0x158ad9){const _0x5d6626=a317_0x1ea9;if(_0x158ad9[_0x5d6626(0xfc)]===_0x5d6626(0xf4)||_0x158ad9[_0x5d6626(0xfc)]===_0x5d6626(0xf6))return _0x158ad9[_0x5d6626(0xfc)];throw new Error('Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.');}function defaultDescription(_0x7c6044,_0x48c840){const _0x386bae=a317_0x1ea9;if(_0x7c6044===_0x386bae(0xf6))return _0x386bae(0xf5)+_0x48c840+_0x386bae(0xf1);return _0x386bae(0xff)+_0x48c840+_0x386bae(0xfb);}function normalizeText(_0x279c45,_0xfad09d){const _0xddd9ac=a317_0x1ea9;if(typeof _0x279c45!==_0xddd9ac(0xf9))return'';return _0x279c45[_0xddd9ac(0x103)](/[\u0000-\u001f\u007f]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0xddd9ac(0x101)]()[_0xddd9ac(0xfe)](0x0,_0xfad09d);}
|