@lovrabet/rabetbase-cli 2.5.3 → 2.5.4-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -0
- 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.d.ts +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.d.ts +2 -0
- 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/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.d.ts +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.d.ts +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.d.ts +4 -0
- 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.d.ts +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.d.ts +14 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.d.ts +1 -0
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- 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.d.ts +11 -10
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.d.ts +7 -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.d.ts +5 -2
- 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.d.ts +15 -3
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.d.ts +2 -2
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.d.ts +5 -0
- 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 +31 -17
- package/skills/rabetbase/guides/approval-flow-development-workflow.md +33 -11
- package/skills/rabetbase/guides/best-practices.md +1 -1
- package/skills/rabetbase/guides/conflict-detection.md +44 -92
- package/skills/rabetbase/guides/custom-page-flow-sdk.md +642 -0
- package/skills/rabetbase/guides/custom-page-flow-timeline-display.md +289 -0
- package/skills/rabetbase/guides/custom-page-workflow.md +12 -3
- package/skills/rabetbase/guides/sql-creation-workflow.md +44 -26
- package/skills/rabetbase/guides/sql-mybatis.md +18 -49
- package/skills/rabetbase/guides/typescript-sdk.md +18 -0
- package/skills/rabetbase/knowledge/approval-flow/config-json-schema.md +22 -6
- package/skills/rabetbase/knowledge/components.md +34 -28
- package/skills/rabetbase/knowledge/custom-page/generation-standards.md +2 -0
- package/skills/rabetbase/references/rabetbase-config.md +6 -4
- package/skills/rabetbase/references/rabetbase-flow-commands.md +8 -4
- package/skills/rabetbase/references/rabetbase-flow-resources.md +3 -3
- package/skills/rabetbase/references/rabetbase-flow-runtime-boundary.md +2 -0
- package/skills/rabetbase/references/rabetbase-init.md +7 -5
- package/skills/rabetbase/references/rabetbase-kb.md +14 -4
- package/skills/rabetbase/references/rabetbase-page-custom-detail.md +3 -1
- package/skills/rabetbase/references/rabetbase-page-custom-list.md +3 -0
- package/skills/rabetbase/references/rabetbase-sql-push.md +5 -0
- package/skills/rabetbase/references/rabetbase-sql-validate.md +12 -6
- package/skills/rabetbase.manifest.json +5 -3
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x39a4c8,_0x448b20){const _0xd8d975=a304_0xd349,_0x521e27=_0x39a4c8();while(!![]){try{const _0x2d1ae2=parseInt(_0xd8d975(0x1ec))/0x1*(-parseInt(_0xd8d975(0x1e2))/0x2)+-parseInt(_0xd8d975(0x1eb))/0x3+-parseInt(_0xd8d975(0x1f2))/0x4+parseInt(_0xd8d975(0x1ef))/0x5*(-parseInt(_0xd8d975(0x1e7))/0x6)+-parseInt(_0xd8d975(0x1fb))/0x7*(parseInt(_0xd8d975(0x1f0))/0x8)+parseInt(_0xd8d975(0x1e9))/0x9*(parseInt(_0xd8d975(0x1ea))/0xa)+parseInt(_0xd8d975(0x1e5))/0xb;if(_0x2d1ae2===_0x448b20)break;else _0x521e27['push'](_0x521e27['shift']());}catch(_0x2ad4f1){_0x521e27['push'](_0x521e27['shift']());}}}(a304_0x5eb5,0x8a46e));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';function a304_0xd349(_0x31ed26,_0x443735){_0x31ed26=_0x31ed26-0x1e2;const _0x5eb556=a304_0x5eb5();let _0xd349b3=_0x5eb556[_0x31ed26];return _0xd349b3;}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x91fa1a,_0x209d1a){const _0x45d033=a304_0xd349,_0x14a83e=_0x91fa1a['_notice'],{_notice:_0x114fe7,..._0x5518b0}=_0x91fa1a;void _0x114fe7,baseFormatOutput(_0x5518b0,_0x209d1a),_0x209d1a[_0x45d033(0x1f4)]==='pretty'&&printPrettyNotice(_0x14a83e);}export function formatCliError(_0x1f25c5,_0x1105d3){const _0xdba0ef=a304_0xd349;if(_0x1105d3[_0xdba0ef(0x1f4)]==='pretty')return![];const _0x38a756=_0x1f25c5[_0xdba0ef(0x1f9)],_0x32a452={'ok':![],'command':_0x1105d3[_0xdba0ef(0x1fd)],'risk':_0x1105d3[_0xdba0ef(0x1f8)],'data':_0x38a756??null,'error':{'code':_0x1f25c5[_0xdba0ef(0x1e8)],'message':_0x1f25c5[_0xdba0ef(0x1ed)],..._0x1f25c5[_0xdba0ef(0x1e6)]?{'hint':_0x1f25c5[_0xdba0ef(0x1e6)]}:{}}},_0x7ae550=_0x1105d3[_0xdba0ef(0x1f4)]==='json'?JSON[_0xdba0ef(0x1fa)](_0x32a452,null,0x2):JSON['stringify'](_0x32a452);let _0x7452cf=_0x7ae550;if(_0x1105d3[_0xdba0ef(0x1f6)]?.[_0xdba0ef(0x1f7)]())try{_0x7452cf=applyJqFilter(_0x7ae550,_0x1105d3[_0xdba0ef(0x1f6)]);}catch(_0x8dc276){const _0x76e9ff=_0x8dc276 instanceof CliError?_0x8dc276:CliErrors[_0xdba0ef(0x1e3)](_0xdba0ef(0x1f3)+(_0x8dc276 instanceof Error?_0x8dc276[_0xdba0ef(0x1ed)]:String(_0x8dc276))),_0x2c26fc={..._0x32a452,'error':{'code':_0x76e9ff[_0xdba0ef(0x1e8)],'message':_0x76e9ff[_0xdba0ef(0x1ed)],..._0x76e9ff[_0xdba0ef(0x1e6)]?{'hint':_0x76e9ff[_0xdba0ef(0x1e6)]}:{},'cause':_0x32a452[_0xdba0ef(0x1e4)]}};_0x7452cf=_0x1105d3[_0xdba0ef(0x1f4)]===_0xdba0ef(0x1fc)?JSON[_0xdba0ef(0x1fa)](_0x2c26fc,null,0x2):JSON[_0xdba0ef(0x1fa)](_0x2c26fc);}return process[_0xdba0ef(0x1f5)][_0xdba0ef(0x1ee)](_0x7452cf['endsWith']('\x0a')?_0x7452cf:_0x7452cf+'\x0a'),!![];}function a304_0x5eb5(){const _0x3e4c36=['hint','82056ltJhOT','code','46098OFwUfV','2000woFvFp','2513115ZNXqac','641FkfyAb','message','write','370tzhSse','908536iGsTtV','update','1600032yvQSXu','jq:\x20','format','stdout','jqFilter','trim','risk','data','stringify','35osuBEm','json','command','622dKdJFN','validation','error','28147955kCLlsJ'];a304_0x5eb5=function(){return _0x3e4c36;};return a304_0x5eb5();}function printPrettyNotice(_0x491bd7){const _0x4f4719=a304_0xd349;if(!_0x491bd7?.['update'])return;console[_0x4f4719(0x1e4)](_0x491bd7[_0x4f4719(0x1f1)][_0x4f4719(0x1ed)]+'\x20('+_0x491bd7[_0x4f4719(0x1f1)]['url']+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x46b12a,_0x35af45){var _0x544d11=a305_0x5da5,_0x7f791d=_0x46b12a();while(!![]){try{var _0x425e4e=-parseInt(_0x544d11(0x1ae))/0x1*(-parseInt(_0x544d11(0x1b6))/0x2)+parseInt(_0x544d11(0x1b1))/0x3+-parseInt(_0x544d11(0x1b5))/0x4*(parseInt(_0x544d11(0x1b2))/0x5)+-parseInt(_0x544d11(0x1b4))/0x6+parseInt(_0x544d11(0x1b8))/0x7*(-parseInt(_0x544d11(0x1b7))/0x8)+parseInt(_0x544d11(0x1af))/0x9+parseInt(_0x544d11(0x1b3))/0xa*(-parseInt(_0x544d11(0x1b0))/0xb);if(_0x425e4e===_0x35af45)break;else _0x7f791d['push'](_0x7f791d['shift']());}catch(_0x193637){_0x7f791d['push'](_0x7f791d['shift']());}}}(a305_0x5f37,0xc6c18));function a305_0x5f37(){var _0x559534=['6706980prLMIA','7997ImMXvu','3768039aVZArR','496040sRexcF','10210abNqXE','3507612FhllkD','16QgKbYd','324286sevRGr','16hWTeAY','1527001yvNucN','6zWIvBQ'];a305_0x5f37=function(){return _0x559534;};return a305_0x5f37();}function a305_0x5da5(_0x62efd6,_0x1d1f55){_0x62efd6=_0x62efd6-0x1ae;var _0x5f37d6=a305_0x5f37();var _0x5da525=_0x5f37d6[_0x62efd6];return _0x5da525;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a306_0x5b6b(_0x5473fc,_0x499dfa){_0x5473fc=_0x5473fc-0x1cd;const _0x444c1e=a306_0x444c();let _0x5b6bf4=_0x444c1e[_0x5473fc];return _0x5b6bf4;}function a306_0x444c(){const _0x3e8a2e=['.\x20Run\x20`','13146gqXjEP','\x22.\x20','3789457BFzgGZ','9578871wFzyMK','profileName','validation','alias','Available\x20aliases:\x20','316cakVch','7886744OPokXb','43026750eIHgaM','code','type','Unknown\x20alias\x20\x22','flags','string','\x20api\x20pull`\x20first.','name','some','No\x20model\x20aliases\x20found\x20in\x20','length','join','424iNiaWP','map','12yZlskG','filePath','971136baqcqR','47615YduSMd','`\x20requires\x20either\x20--code\x20or\x20--alias.'];a306_0x444c=function(){return _0x3e8a2e;};return a306_0x444c();}(function(_0x31866e,_0x1e3d22){const _0x5b2e57=a306_0x5b6b,_0x5e561c=_0x31866e();while(!![]){try{const _0x330556=-parseInt(_0x5b2e57(0x1e3))/0x1+parseInt(_0x5b2e57(0x1d1))/0x2*(-parseInt(_0x5b2e57(0x1e7))/0x3)+parseInt(_0x5b2e57(0x1df))/0x4*(-parseInt(_0x5b2e57(0x1e4))/0x5)+parseInt(_0x5b2e57(0x1e1))/0x6*(parseInt(_0x5b2e57(0x1e9))/0x7)+-parseInt(_0x5b2e57(0x1d2))/0x8+-parseInt(_0x5b2e57(0x1ea))/0x9+parseInt(_0x5b2e57(0x1d3))/0xa;if(_0x330556===_0x1e3d22)break;else _0x5e561c['push'](_0x5e561c['shift']());}catch(_0x53afb5){_0x5e561c['push'](_0x5e561c['shift']());}}}(a306_0x444c,0xa1b0d));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{resolveApiModelSource}from'../api/model-source.js';export function resolveAliasToCode(_0x3fc727,_0x305311,_0x32259d,_0x5b7415,_0x33cb3f,_0x6b0b84){const _0x150b1d=a306_0x5b6b,_0x43d1db=_0x3fc727[_0x150b1d(0x1d7)][_0x150b1d(0x1db)](_0x197a2b=>_0x197a2b[_0x150b1d(0x1da)]===_0x150b1d(0x1d4)&&_0x197a2b['type']==='string'),_0x19180c=_0x3fc727[_0x150b1d(0x1d7)][_0x150b1d(0x1db)](_0x43579f=>_0x43579f['name']===_0x150b1d(0x1cf)&&_0x43579f[_0x150b1d(0x1d5)]===_0x150b1d(0x1d8));if(!_0x43d1db||!_0x19180c)return;const _0x364e03=_0x305311['code']?String(_0x305311[_0x150b1d(0x1d4)]):'',_0x31ad1e=_0x305311[_0x150b1d(0x1cf)]?String(_0x305311[_0x150b1d(0x1cf)]):'';if(!_0x364e03&&!_0x31ad1e)throw CliErrors[_0x150b1d(0x1ce)]('`'+_0x5b7415+_0x150b1d(0x1e5));if(_0x31ad1e&&!_0x364e03){const _0x4aa0f1=resolveApiModelSource(_0x32259d,_0x33cb3f,_0x6b0b84),_0x2cb2cf=resolveAlias(_0x32259d,_0x31ad1e,undefined,_0x4aa0f1[_0x150b1d(0x1e2)],_0x4aa0f1[_0x150b1d(0x1cd)]);if(!_0x2cb2cf){const _0x3c4ae=listAliases(_0x32259d,undefined,_0x4aa0f1[_0x150b1d(0x1e2)],_0x4aa0f1[_0x150b1d(0x1cd)])[_0x150b1d(0x1e0)](_0xf29ed3=>_0xf29ed3[_0x150b1d(0x1cf)]),_0x1c1909=_0x3c4ae[_0x150b1d(0x1dd)]?_0x150b1d(0x1d0)+_0x3c4ae[_0x150b1d(0x1de)](',\x20'):_0x150b1d(0x1dc)+_0x32259d+_0x150b1d(0x1e6)+CLI_BIN_NAME+_0x150b1d(0x1d9);throw CliErrors[_0x150b1d(0x1ce)](_0x150b1d(0x1d6)+_0x31ad1e+_0x150b1d(0x1e8)+_0x1c1909);}_0x305311[_0x150b1d(0x1d4)]=_0x2cb2cf;}}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x10cbec,_0x2b264a){const _0x9c211d=a307_0xeb45,_0x477983=_0x10cbec();while(!![]){try{const _0x104b75=parseInt(_0x9c211d(0xa7))/0x1+parseInt(_0x9c211d(0xa1))/0x2*(parseInt(_0x9c211d(0xb4))/0x3)+parseInt(_0x9c211d(0xc0))/0x4*(-parseInt(_0x9c211d(0x8d))/0x5)+parseInt(_0x9c211d(0x84))/0x6*(parseInt(_0x9c211d(0x7a))/0x7)+-parseInt(_0x9c211d(0xce))/0x8+parseInt(_0x9c211d(0xa2))/0x9+parseInt(_0x9c211d(0x88))/0xa;if(_0x104b75===_0x2b264a)break;else _0x477983['push'](_0x477983['shift']());}catch(_0x5d3d2a){_0x477983['push'](_0x477983['shift']());}}}(a307_0x1e18,0x96a50));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a307_0x55d4ab}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x1c21a5){const _0x3c4d82=a307_0xeb45;return typeof _0x1c21a5===_0x3c4d82(0xd3)&&_0x1c21a5[_0x3c4d82(0x7e)]()?_0x1c21a5[_0x3c4d82(0x7e)]():undefined;}function resolveEnvAppCode(){const _0x55604b=a307_0xeb45,_0x4fa576=stringFlag(process.env.RABETBASE_APPCODE);if(_0x4fa576)return{'name':_0x55604b(0x9f),'value':_0x4fa576};const _0x1fa06c=stringFlag(process.env.LOVRABET_APPCODE);if(_0x1fa06c)return{'name':_0x55604b(0x80),'value':_0x1fa06c};return undefined;}function hasExplicitAppCode(_0x2b4be6,_0x48ef9f){return!!(stringFlag(_0x2b4be6['appcode'])||stringFlag(_0x48ef9f['appcode']));}function assertEnvAppCodeNotIgnored(_0x56350e,_0x1ca2af,_0x45f765){const _0x2cb11a=a307_0xeb45;if(!_0x1ca2af||_0x45f765||_0x56350e===_0x1ca2af[_0x2cb11a(0xb3)])return;const _0x7d496f=_0x56350e?_0x2cb11a(0xb0)+_0x56350e+'\x22.':_0x2cb11a(0xd5);throw CliErrors[_0x2cb11a(0xb1)](_0x1ca2af['name']+'='+_0x1ca2af['value']+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0x7d496f+'\x20'+(_0x2cb11a(0xb2)+_0x1ca2af[_0x2cb11a(0x99)]+'\x22.'));}export function createPipelineEnv(_0x426297,_0xf44c91,_0x5464d7=[]){const _0x1dd22d=a307_0xeb45;return{'rawFlags':_0xf44c91,'args':_0x5464d7,'resolveAppCode':()=>_0x426297[_0x1dd22d(0x9e)],'resolveCookie':()=>_0x426297['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a307_0x55d4ab(_0xf44c91),'defaultFormat':_0x426297[_0x1dd22d(0x82)],'defaultPageSize':_0x426297[_0x1dd22d(0xa6)],'defaultVerbose':_0x426297[_0x1dd22d(0x81)],'apiDir':_0x426297['apiDir'],'riskLevel':_0x426297[_0x1dd22d(0xae)],'selectedAppName':_0x426297[_0x1dd22d(0xc2)],'mergedCli':{'defaultApp':_0x426297[_0x1dd22d(0x8b)],'currentApp':_0x426297['currentApp'],'appCode':_0x426297[_0x1dd22d(0x9e)],'apps':_0x426297['apps']}};}export function createRabetbaseRunnerAdapter(_0x4202a3={}){const _0x4f68c4=a307_0xeb45;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x4f68c4(0xc4)](_0x15d881=>PIPELINE_FLAG_NAMES[_0x4f68c4(0xad)](_0x15d881[_0x4f68c4(0x99)]))[_0x4f68c4(0xa5)](({name:_0x362bcf,type:_0x545800,description:_0x415f73})=>({'name':_0x362bcf,'type':_0x545800,'description':_0x415f73})),'formatOutput':_0x4202a3[_0x4f68c4(0x7f)]??formatOutput,'getCommandLabel'(_0x344cf7){const _0x4d9366=_0x4f68c4;return CLI_BIN_NAME+'\x20'+_0x344cf7['service']+'\x20'+_0x344cf7[_0x4d9366(0xac)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0xff91ff,{def:_0x17bd5b}){const _0x4ead7d=_0x4f68c4,_0x529a8b=_0xff91ff[_0x4ead7d(0x77)]('Edit\x20the\x20config\x20file\x20manually')?_0x4ead7d(0x7c):_0x4ead7d(0x85)+_0x17bd5b[_0x4ead7d(0x94)]+_0x4ead7d(0xc8)+_0x4ead7d(0x7c);return CliErrors['validation'](_0xff91ff+_0x4ead7d(0x7b)+_0x529a8b);}},async 'prepare'(_0x1fbe7f,_0x59cab6,_0x307059,_0x38eb49){const _0x105820=_0x4f68c4,_0x520a18=_0x59cab6[_0x105820(0xbf)]||DEFAULT_API_DIR,_0x20813e=hasExplicitAppCode(_0x307059,_0x59cab6[_0x105820(0xb9)]),_0x67a710=stringFlag(_0x307059[_0x105820(0xb8)])||stringFlag(_0x59cab6[_0x105820(0xb9)][_0x105820(0xb8)]),_0x276d23=_0x59cab6[_0x105820(0xbe)]?.[_0x105820(0x8c)]??{},_0xe5275f=_0x59cab6[_0x105820(0xd1)]||_0x59cab6[_0x105820(0xbe)]?.['currentApp']||_0x59cab6[_0x105820(0xbe)]?.[_0x105820(0x8b)],_0x12f603=_0x67a710?Object[_0x105820(0xa8)](_0x276d23)[_0x105820(0xc4)](([,_0x1ac382])=>_0x1ac382[_0x105820(0xb8)]===_0x67a710)[_0x105820(0xa5)](([_0xab4b])=>_0xab4b):[];if(_0x12f603[_0x105820(0xcc)]>0x1&&!_0x59cab6[_0x105820(0xd1)])throw CliErrors[_0x105820(0xb1)]('AppCode\x20\x22'+_0x67a710+'\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20'+_0x12f603[_0x105820(0xaa)](',\x20')+'.',_0x105820(0x9c));resolveAliasToCode(_0x1fbe7f,_0x307059,_0x520a18,_0x38eb49,_0x59cab6[_0x105820(0xb6)](),_0xe5275f);const _0x99f261=resolveCommandAuthMode(_0x1fbe7f);let _0x1c33a3='';if(_0x99f261!==_0x105820(0x89)){_0x1c33a3=_0x59cab6['resolveCookie']()||'';if(!_0x1c33a3){if(_0x99f261===_0x105820(0xd0))throw CliErrors[_0x105820(0x8e)]();}else{const {setActiveCookie:_0x3c667b}=await import(_0x105820(0xba));_0x3c667b(_0x1c33a3);}}const _0x1e3f42=_0x59cab6[_0x105820(0xb6)]()??'';if(_0x1fbe7f['requiresAppCode']!==![]){if(!_0x20813e&&_0xe5275f&&!_0x276d23[_0xe5275f]){const _0x36539f=Object[_0x105820(0x96)](_0x276d23);throw CliErrors[_0x105820(0xb1)](_0x105820(0xd4)+_0xe5275f+_0x105820(0xc5),_0x36539f[_0x105820(0xcc)]>0x0?_0x105820(0xcd)+_0x36539f[_0x105820(0xaa)](',\x20')+_0x105820(0x98)+CLI_BIN_NAME+_0x105820(0x78):_0x105820(0xbd)+CLI_BIN_NAME+'\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.');}assertEnvAppCodeNotIgnored(_0x1e3f42,resolveEnvAppCode(),_0x20813e);if(!_0x1e3f42){const _0x464c7b=Object['keys'](_0x276d23);if(!_0xe5275f&&_0x464c7b[_0x105820(0xcc)]>0x1)throw CliErrors[_0x105820(0xb5)](_0x105820(0xa9)+CLI_BIN_NAME+_0x105820(0xa4)+_0x464c7b[_0x105820(0xaa)](',\x20')+'.');throw CliErrors[_0x105820(0xb5)](_0x105820(0xa0)+CLI_BIN_NAME+_0x105820(0xaf));}}return{'defaults':{'booleans':{'verbose':_0x59cab6[_0x105820(0xa3)]},'numbers':{'pagesize':_0x59cab6[_0x105820(0xbc)]}},'extras':{'appCode':_0x1e3f42,'cookie':_0x1c33a3,'apiDomain':_0x59cab6[_0x105820(0xca)](),'apiDir':_0x520a18,'selectedAppName':_0x59cab6['selectedAppName'],'mergedCli':_0x59cab6['mergedCli']}};},'confirmHighRisk':_0x4202a3[_0x4f68c4(0x87)]??(async({env:_0x2e849e,commandLabel:_0x5414ed})=>{const _0x140a05=_0x4f68c4;if(_0x2e849e['isNonInteractive'])throw CliErrors[_0x140a05(0xb1)](_0x140a05(0xc7)+_0x5414ed+_0x140a05(0xc3));await requireConfirmationPrompt({'lines':[_0x140a05(0xc9)+_0x5414ed,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x3e80e0=>CliErrors[_0x140a05(0xb7)](_0x3e80e0)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0xb333bb=a307_0xeb45,{clearActiveCookie:_0x5c6cea}=await import(_0xb333bb(0xba));_0x5c6cea();}export async function finalizeRabetbaseRuntimeState(){const _0x4b4918=a307_0xeb45;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x183903},{initEnv:_0x14bf37}]=await Promise[_0x4b4918(0x9a)]([import(_0x4b4918(0x86)),import(_0x4b4918(0x79))]);_0x183903(),_0x14bf37(_0x4b4918(0x90));}}export async function runCommand(_0xe5ac5d,_0x147c3c,_0x17b158=terminalRunnerAdapter){const _0x3a6176=a307_0xeb45;assertRejectedFlags(_0xe5ac5d,_0x147c3c[_0x3a6176(0xb9)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0xe5ac5d)?withUpdateNotice(_0xe5ac5d):_0xe5ac5d,_0x147c3c,_0x17b158);}function assertRejectedFlags(_0x219c0f,_0x37fc47){const _0x47c4c1=a307_0xeb45;for(const _0x57f3a2 of _0x219c0f['rejectedFlags']??[]){const _0x364b5e=GLOBAL_FLAGS[_0x47c4c1(0xbb)](_0xae729d=>_0xae729d[_0x47c4c1(0x99)]===_0x57f3a2['name']),_0x446fc7=new Set([_0x57f3a2[_0x47c4c1(0x99)],toCamelCase(_0x57f3a2[_0x47c4c1(0x99)]),_0x364b5e?.[_0x47c4c1(0x93)]]),_0x176409=[..._0x446fc7][_0x47c4c1(0x95)](_0x5b08a3=>{if(!_0x5b08a3)return![];const _0x20c46a=_0x37fc47[_0x5b08a3];return _0x20c46a!==undefined&&_0x20c46a!==null&&_0x20c46a!==![];});if(_0x176409)throw CliErrors[_0x47c4c1(0xb1)](_0x57f3a2[_0x47c4c1(0x8f)],_0x57f3a2[_0x47c4c1(0x9b)]);}}function toCamelCase(_0x4dfc64){const _0x25be4c=a307_0xeb45;return _0x4dfc64[_0x25be4c(0x9d)](/-([a-z])/g,(_0x573228,_0x301cac)=>_0x301cac[_0x25be4c(0xcf)]());}function shouldAttachUpdateNotice(_0x66efed){const _0x17251c=a307_0xeb45;if(_0x66efed[_0x17251c(0x8a)]===![])return![];return![_0x17251c(0xcb),_0x17251c(0x91),_0x17251c(0x92)][_0x17251c(0x77)](_0x66efed[_0x17251c(0x83)]);}function withUpdateNotice(_0x2fde8f){return{..._0x2fde8f,async 'execute'(_0x5df05b){const _0x491420=a307_0xeb45,_0x31eb77=shouldResolveUpdateNotice(_0x5df05b)?resolveLatestUpdateNotice()[_0x491420(0xd2)](()=>null):Promise[_0x491420(0xab)](null),_0x13d3b4=await _0x2fde8f[_0x491420(0xc6)](_0x5df05b);return attachUpdateNotice(_0x13d3b4,await _0x31eb77);}};}function shouldResolveUpdateNotice(_0x4a306d){const _0x2f0600=a307_0xeb45;return _0x4a306d['format']==='pretty'&&!_0x4a306d[_0x2f0600(0x97)];}function a307_0xeb45(_0x92de71,_0x2c903b){_0x92de71=_0x92de71-0x77;const _0x1e18e2=a307_0x1e18();let _0xeb4533=_0x1e18e2[_0x92de71];return _0xeb4533;}function attachUpdateNotice(_0x4ee66c,_0x24a1be){const _0x253598=a307_0xeb45;if(!_0x24a1be||!_0x4ee66c||typeof _0x4ee66c!==_0x253598(0x7d))return _0x4ee66c;const _0x237d67=_0x4ee66c,_0x112b1f=typeof _0x237d67[_0x253598(0xc1)]==='object'&&_0x237d67[_0x253598(0xc1)]!==null?_0x237d67[_0x253598(0xc1)]:{};return{..._0x237d67,'_notice':{..._0x112b1f,'update':_0x24a1be}};}function a307_0x1e18(){const _0x2b02d7=['Available:\x20','9448184GFlSXw','toUpperCase','required','selectedAppName','catch','string','App\x20\x22','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','includes','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','../constant/env.js','6766648kChMpp','\x0a\x20\x20','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','object','trim','formatOutput','LOVRABET_APPCODE','verbose','format','service','6YlLOwE','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','../constant/domain.js','confirmHighRisk','1745400irzJTH','none','hasFormat','defaultApp','apps','750jtEbga','authRequired','message','production','schema','doctor','meowKey','risk','some','keys','nonInteractive','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','name','all','hint','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','replace','appCode','RABETBASE_APPCODE','Set\x20appcode\x20via\x20`','30IJaiin','3470994gyffUa','defaultVerbose','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','map','pageSize','733028IrATHM','entries','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','join','resolve','command','has','riskLevel','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','Current\x20resolved\x20appcode\x20is\x20\x22','validation','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','value','145593MQAgCs','configMissing','resolveAppCode','cancelled','appcode','rawFlags','../core/api-client.js','find','defaultPageSize','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','mergedCli','apiDir','31728aQyatc','_notice','explicitAppName','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','filter','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','execute','High-risk\x20operation\x20`','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','⚠\x20\x20High-risk\x20operation:\x20','resolveApiDomain','update','length'];a307_0x1e18=function(){return _0x2b02d7;};return a307_0x1e18();}
|
|
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 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x171d64,_0x4bac11){const _0xee7744=a308_0x1d41,_0x18d30c=_0x171d64();while(!![]){try{const _0x5e461f=-parseInt(_0xee7744(0x9e))/0x1+-parseInt(_0xee7744(0xa1))/0x2*(parseInt(_0xee7744(0xa2))/0x3)+-parseInt(_0xee7744(0x9c))/0x4+parseInt(_0xee7744(0x9f))/0x5*(-parseInt(_0xee7744(0x98))/0x6)+parseInt(_0xee7744(0x99))/0x7+-parseInt(_0xee7744(0x9d))/0x8+parseInt(_0xee7744(0x9b))/0x9*(parseInt(_0xee7744(0xa0))/0xa);if(_0x5e461f===_0x4bac11)break;else _0x18d30c['push'](_0x18d30c['shift']());}catch(_0x1ad768){_0x18d30c['push'](_0x18d30c['shift']());}}}(a308_0x40fb,0xa4422));import{buildSchemaPayload as a308_0x41da99}from'@lovrabet/cli-framework';function a308_0x1d41(_0xf0aa50,_0x1923a5){_0xf0aa50=_0xf0aa50-0x98;const _0x40fb2f=a308_0x40fb();let _0x1d4168=_0x40fb2f[_0xf0aa50];return _0x1d4168;}function a308_0x40fb(){const _0x3ffbef=['10175274XuKFlt','1296412PcsZCq','8451576frMRwN','837875OUUhIi','8315WPJeKJ','30EOFTAw','26Ltcqbw','209058Dzgxrj','324oIjBos','3466323zqpjMJ','../commands/registry.js'];a308_0x40fb=function(){return _0x3ffbef;};return a308_0x40fb();}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';export async function buildSchemaPayload(){const _0xbbd0dd=a308_0x1d41,{serviceRegistry:_0x2fd9a1,findDefinition:_0x39fe73}=await import(_0xbbd0dd(0x9a));return a308_0x41da99({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x2fd9a1,'buildAllFlags':buildAllFlags,'findDefinition':_0x39fe73});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x15b436,_0x5d6f46){const _0x19352f=a309_0x15fc,_0x2d3a92=_0x15b436();while(!![]){try{const _0xe5163b=parseInt(_0x19352f(0x1cf))/0x1+parseInt(_0x19352f(0x1e1))/0x2*(parseInt(_0x19352f(0x1d4))/0x3)+parseInt(_0x19352f(0x1e5))/0x4+parseInt(_0x19352f(0x1ca))/0x5*(parseInt(_0x19352f(0x1c9))/0x6)+parseInt(_0x19352f(0x1e0))/0x7*(-parseInt(_0x19352f(0x1de))/0x8)+parseInt(_0x19352f(0x1ce))/0x9*(parseInt(_0x19352f(0x1da))/0xa)+-parseInt(_0x19352f(0x1cb))/0xb;if(_0xe5163b===_0x5d6f46)break;else _0x2d3a92['push'](_0x2d3a92['shift']());}catch(_0x2580ff){_0x2d3a92['push'](_0x2d3a92['shift']());}}}(a309_0x47c4,0x92c08));import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';function a309_0x47c4(){const _0x40241a=['version','Run\x20`','839528wgoWxe','validation','3000744mbPASs','5pWtULW','10648913TlfiCF','name','find','2595987pVCCRJ','629258lwkhOO','toLowerCase','add','command','strictFlags','19308ujbSfO','flags','replace','Unsupported\x20flag\x20--','filter','$1-$2','40jpopQq','meowKey','service','entries','322408vpcGez','isArray','175nkHtHA','26AkSkOY','has'];a309_0x47c4=function(){return _0x40241a;};return a309_0x47c4();}import{CliErrors}from'../errors.js';export function assertSupportedCommandFlags(_0x197cfc,_0xc9c29f){const _0x334010=a309_0x15fc;if(!_0x197cfc[_0x334010(0x1d3)])return;const _0x274047=new Set(['help',_0x334010(0x1e3)]),_0x109846=GLOBAL_FLAGS[_0x334010(0x1d8)](_0x34155f=>PIPELINE_FLAG_NAMES[_0x334010(0x1e2)](_0x34155f[_0x334010(0x1cc)]));for(const _0x366158 of[..._0x197cfc[_0x334010(0x1d5)],..._0x109846]){addFlagCandidates(_0x274047,_0x366158);}for(const [_0xdceb05,_0x6f904]of Object[_0x334010(0x1dd)](_0xc9c29f)){if(!isExplicitValue(_0x6f904)||_0x274047['has'](_0xdceb05))continue;const _0x54d335=GLOBAL_FLAGS[_0x334010(0x1cd)](_0x33f8fc=>_0x33f8fc[_0x334010(0x1db)]===_0xdceb05)?.['name']??toKebabCase(_0xdceb05);throw CliErrors[_0x334010(0x1e6)](_0x334010(0x1d7)+_0x54d335+'\x20for\x20`'+CLI_BIN_NAME+'\x20'+_0x197cfc[_0x334010(0x1dc)]+'\x20'+_0x197cfc[_0x334010(0x1d2)]+'`.',_0x334010(0x1e4)+CLI_BIN_NAME+'\x20'+_0x197cfc[_0x334010(0x1dc)]+'\x20'+_0x197cfc['command']+'\x20--help`\x20to\x20view\x20the\x20current\x20command\x20contract.');}}function a309_0x15fc(_0x1e4065,_0x3e8455){_0x1e4065=_0x1e4065-0x1c9;const _0x47c421=a309_0x47c4();let _0x15fc96=_0x47c421[_0x1e4065];return _0x15fc96;}function addFlagCandidates(_0x42a6a4,_0x44db2d){const _0x8ef59e=a309_0x15fc,_0x101124='meowKey'in _0x44db2d?[_0x44db2d['name'],_0x44db2d['meowKey']]:[_0x44db2d[_0x8ef59e(0x1cc)],_0x44db2d['alias']];for(const _0x43411d of _0x101124){if(!_0x43411d)continue;_0x42a6a4[_0x8ef59e(0x1d1)](_0x43411d),_0x42a6a4[_0x8ef59e(0x1d1)](toCamelCase(_0x43411d));}}function isExplicitValue(_0x2c749d){const _0x42509b=a309_0x15fc;return _0x2c749d!==undefined&&_0x2c749d!==null&&_0x2c749d!==![]&&(!Array[_0x42509b(0x1df)](_0x2c749d)||_0x2c749d['length']>0x0);}function toCamelCase(_0x2e50e8){const _0xf96b82=a309_0x15fc;return _0x2e50e8[_0xf96b82(0x1d6)](/-([a-z])/g,(_0x3f78b0,_0x2a767f)=>_0x2a767f['toUpperCase']());}function toKebabCase(_0x53001c){const _0x570c46=a309_0x15fc;return _0x53001c[_0x570c46(0x1d6)](/([a-z0-9])([A-Z])/g,_0x570c46(0x1d9))[_0x570c46(0x1d0)]();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a310_0x2120(_0x27fd6f,_0x2d415a){_0x27fd6f=_0x27fd6f-0x177;var _0x3792d6=a310_0x3792();var _0x21206d=_0x3792d6[_0x27fd6f];return _0x21206d;}function a310_0x3792(){var _0x16e91b=['788641TLBWjS','18890vWiiee','551598mXDbUu','24sADZGE','3Nsivjk','29497fDsDXL','24pfKPOP','3612eklLiE','410660rbUJkQ','1485qamNHz','33832AZruBQ','288376DypiVo','4356nJQcZp'];a310_0x3792=function(){return _0x16e91b;};return a310_0x3792();}(function(_0x7be0a5,_0x26c3ce){var _0x4d250f=a310_0x2120,_0x4edff1=_0x7be0a5();while(!![]){try{var _0x4cf261=parseInt(_0x4d250f(0x177))/0x1+parseInt(_0x4d250f(0x180))/0x2*(parseInt(_0x4d250f(0x179))/0x3)+-parseInt(_0x4d250f(0x178))/0x4*(parseInt(_0x4d250f(0x17d))/0x5)+-parseInt(_0x4d250f(0x17b))/0x6*(parseInt(_0x4d250f(0x182))/0x7)+-parseInt(_0x4d250f(0x17f))/0x8*(-parseInt(_0x4d250f(0x17e))/0x9)+parseInt(_0x4d250f(0x183))/0xa*(-parseInt(_0x4d250f(0x181))/0xb)+-parseInt(_0x4d250f(0x17c))/0xc*(-parseInt(_0x4d250f(0x17a))/0xd);if(_0x4cf261===_0x26c3ce)break;else _0x4edff1['push'](_0x4edff1['shift']());}catch(_0x4952c7){_0x4edff1['push'](_0x4edff1['shift']());}}}(a310_0x3792,0x5e01c));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.5.
|
|
2
|
-
export declare const GIT_TAG = "v2.5.
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-09-
|
|
1
|
+
export declare const VERSION = "2.5.4-beta.2";
|
|
2
|
+
export declare const GIT_TAG = "v2.5.4-beta.2";
|
|
3
|
+
export declare const GIT_COMMIT = "5d1f188b";
|
|
4
|
+
export declare const BUILD_TIME = "2026-09-21T09:16:37.975Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a311_0x58a44f=a311_0x3c9d;(function(_0x425ac1,_0x5705aa){const _0x23ea16=a311_0x3c9d,_0x15ddc8=_0x425ac1();while(!![]){try{const _0x27dad3=parseInt(_0x23ea16(0xd6))/0x1*(parseInt(_0x23ea16(0xd7))/0x2)+-parseInt(_0x23ea16(0xd2))/0x3*(parseInt(_0x23ea16(0xe0))/0x4)+-parseInt(_0x23ea16(0xd9))/0x5+parseInt(_0x23ea16(0xdf))/0x6*(-parseInt(_0x23ea16(0xdd))/0x7)+parseInt(_0x23ea16(0xdb))/0x8+parseInt(_0x23ea16(0xdc))/0x9+-parseInt(_0x23ea16(0xd5))/0xa*(-parseInt(_0x23ea16(0xd8))/0xb);if(_0x27dad3===_0x5705aa)break;else _0x15ddc8['push'](_0x15ddc8['shift']());}catch(_0x3a0ff9){_0x15ddc8['push'](_0x15ddc8['shift']());}}}(a311_0x3662,0xad8bd));export const VERSION=a311_0x58a44f(0xda);export const GIT_TAG=a311_0x58a44f(0xd3);export const GIT_COMMIT=a311_0x58a44f(0xde);export const BUILD_TIME=a311_0x58a44f(0xd4);function a311_0x3c9d(_0x4634f1,_0x2ddfc0){_0x4634f1=_0x4634f1-0xd2;const _0x366231=a311_0x3662();let _0x3c9de5=_0x366231[_0x4634f1];return _0x3c9de5;}function a311_0x3662(){const _0x1c6446=['2.5.4-beta.2','9581408ueOHjJ','1511109GhoJGw','973jucYTk','5d1f188b','53994bjPTJj','4TXZDrv','3075441nCGaOA','v2.5.4-beta.2','2026-09-21T09:16:37.975Z','3030FloZnl','1ZlQKbH','205426QEtIpK','75515UpNdko','2807660ITFMPw'];a311_0x3662=function(){return _0x1c6446;};return a311_0x3662();}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const ROUTING_CATALOG_DIGEST: "
|
|
1
|
+
export declare const ROUTING_CATALOG_DIGEST: "57d346b80b12ca567af9d86dd7f8c02a0c27fe15d4944c8345add2cc6134c587";
|
|
2
2
|
export declare const DEFAULT_REGION: "cn";
|
|
3
3
|
export declare const REGION_VALUES: readonly ["cn", "id", "global"];
|
|
4
|
-
export declare const ENABLED_REGION_VALUES: readonly ["cn", "id"];
|
|
4
|
+
export declare const ENABLED_REGION_VALUES: readonly ["cn", "id", "global"];
|
|
5
5
|
export declare const OFFICIAL_ROUTING_PROFILES: {
|
|
6
6
|
readonly cn: {
|
|
7
7
|
readonly enabled: true;
|
|
@@ -14,6 +14,7 @@ export declare const OFFICIAL_ROUTING_PROFILES: {
|
|
|
14
14
|
readonly runtime: "https://runtime.lovrabet.com";
|
|
15
15
|
readonly skill: "https://skills.lovrabet.com";
|
|
16
16
|
readonly kb: "https://api.lovrabet.com";
|
|
17
|
+
readonly kbService: "https://kb-service.lovrabet.com";
|
|
17
18
|
readonly app: "https://app.lovrabet.com";
|
|
18
19
|
};
|
|
19
20
|
readonly daily: {
|
|
@@ -22,6 +23,7 @@ export declare const OFFICIAL_ROUTING_PROFILES: {
|
|
|
22
23
|
readonly runtime: "https://daily-runtime.lovrabet.com";
|
|
23
24
|
readonly skill: "https://skills-daily.lovrabet.com";
|
|
24
25
|
readonly kb: "https://daily-api.lovrabet.com";
|
|
26
|
+
readonly kbService: "https://kb-service-daily.lovrabet.com";
|
|
25
27
|
readonly app: "https://daily.lovrabet.com";
|
|
26
28
|
};
|
|
27
29
|
};
|
|
@@ -44,6 +46,7 @@ export declare const OFFICIAL_ROUTING_PROFILES: {
|
|
|
44
46
|
readonly runtime: "https://runtime.lovrabet.id";
|
|
45
47
|
readonly skill: "https://skills.lovrabet.id";
|
|
46
48
|
readonly kb: "https://api.lovrabet.id";
|
|
49
|
+
readonly kbService: "https://kb-service.lovrabet.id";
|
|
47
50
|
readonly app: "https://app.lovrabet.id";
|
|
48
51
|
};
|
|
49
52
|
};
|
|
@@ -56,7 +59,7 @@ export declare const OFFICIAL_ROUTING_PROFILES: {
|
|
|
56
59
|
};
|
|
57
60
|
};
|
|
58
61
|
readonly global: {
|
|
59
|
-
readonly enabled:
|
|
62
|
+
readonly enabled: true;
|
|
60
63
|
readonly label: "Global";
|
|
61
64
|
readonly aliases: readonly [];
|
|
62
65
|
readonly serviceDomains: {
|
|
@@ -68,9 +71,18 @@ export declare const OFFICIAL_ROUTING_PROFILES: {
|
|
|
68
71
|
readonly kb: "https://api.lovrabet.ai";
|
|
69
72
|
readonly app: "https://app.lovrabet.ai";
|
|
70
73
|
};
|
|
74
|
+
readonly daily: {
|
|
75
|
+
readonly user: "https://user-daily.lovrabet.ai";
|
|
76
|
+
readonly api: "https://daily-api.lovrabet.ai";
|
|
77
|
+
readonly runtime: "https://daily-runtime.lovrabet.ai";
|
|
78
|
+
readonly skill: "https://skills-daily.lovrabet.ai";
|
|
79
|
+
readonly kb: "https://daily-api.lovrabet.ai";
|
|
80
|
+
readonly app: "https://daily.lovrabet.ai";
|
|
81
|
+
};
|
|
71
82
|
};
|
|
72
83
|
readonly cdn: {
|
|
73
84
|
readonly libraries: "https://cdnjs.cloudflare.com/ajax/libs";
|
|
85
|
+
readonly lovrabet: "https://g.lovrabet.ai";
|
|
74
86
|
};
|
|
75
87
|
readonly local: {
|
|
76
88
|
readonly origin: "https://dev.lovrabet.ai";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a312_0x233e03=a312_0x8320;function a312_0x8320(_0x444bd4,_0x4cb960){_0x444bd4=_0x444bd4-0xa8;const _0x1e926e=a312_0x1e92();let _0x832016=_0x1e926e[_0x444bd4];return _0x832016;}(function(_0x588a11,_0x3ce789){const _0x37fb32=a312_0x8320,_0x2c59c1=_0x588a11();while(!![]){try{const _0x118689=-parseInt(_0x37fb32(0xba))/0x1*(parseInt(_0x37fb32(0xc7))/0x2)+parseInt(_0x37fb32(0xc3))/0x3*(parseInt(_0x37fb32(0xb2))/0x4)+parseInt(_0x37fb32(0xcf))/0x5*(-parseInt(_0x37fb32(0xab))/0x6)+parseInt(_0x37fb32(0xb1))/0x7*(parseInt(_0x37fb32(0xb7))/0x8)+parseInt(_0x37fb32(0xac))/0x9*(parseInt(_0x37fb32(0xae))/0xa)+parseInt(_0x37fb32(0xc6))/0xb*(parseInt(_0x37fb32(0xd1))/0xc)+-parseInt(_0x37fb32(0xbe))/0xd*(parseInt(_0x37fb32(0xa8))/0xe);if(_0x118689===_0x3ce789)break;else _0x2c59c1['push'](_0x2c59c1['shift']());}catch(_0x51b873){_0x2c59c1['push'](_0x2c59c1['shift']());}}}(a312_0x1e92,0xa2ef0));export const ROUTING_CATALOG_DIGEST='57d346b80b12ca567af9d86dd7f8c02a0c27fe15d4944c8345add2cc6134c587';export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id','global'];export const ENABLED_REGION_VALUES=['cn','id','global'];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a312_0x233e03(0xc0),'aliases':[a312_0x233e03(0xaa)],'serviceDomains':{'production':{'user':a312_0x233e03(0xcb),'api':'https://api.lovrabet.com','runtime':'https://runtime.lovrabet.com','skill':a312_0x233e03(0xca),'kb':'https://api.lovrabet.com','kbService':a312_0x233e03(0xbc),'app':'https://app.lovrabet.com'},'daily':{'user':a312_0x233e03(0xcd),'api':'https://daily-api.lovrabet.com','runtime':a312_0x233e03(0xaf),'skill':a312_0x233e03(0xce),'kb':a312_0x233e03(0xb5),'kbService':a312_0x233e03(0xb8),'app':'https://daily.lovrabet.com'}},'cdn':{'libraries':a312_0x233e03(0xd0),'lovrabet':a312_0x233e03(0xc8)},'local':{'origin':'https://dev.lovrabet.com'}},'id':{'enabled':!![],'label':a312_0x233e03(0xc5),'aliases':[a312_0x233e03(0xcc)],'serviceDomains':{'production':{'user':a312_0x233e03(0xb0),'api':a312_0x233e03(0xd2),'runtime':a312_0x233e03(0xb6),'skill':a312_0x233e03(0xc2),'kb':a312_0x233e03(0xd2),'kbService':a312_0x233e03(0xa9),'app':a312_0x233e03(0xb9)}},'cdn':{'libraries':a312_0x233e03(0xbf),'lovrabet':a312_0x233e03(0xb4)},'local':{'origin':a312_0x233e03(0xc9)}},'global':{'enabled':!![],'label':a312_0x233e03(0xad),'aliases':[],'serviceDomains':{'production':{'user':'https://user.lovrabet.ai','api':'https://api.lovrabet.ai','runtime':a312_0x233e03(0xc4),'skill':a312_0x233e03(0xb3),'kb':'https://api.lovrabet.ai','app':a312_0x233e03(0xd3)},'daily':{'user':a312_0x233e03(0xbd),'api':'https://daily-api.lovrabet.ai','runtime':'https://daily-runtime.lovrabet.ai','skill':'https://skills-daily.lovrabet.ai','kb':'https://daily-api.lovrabet.ai','app':'https://daily.lovrabet.ai'}},'cdn':{'libraries':a312_0x233e03(0xbf),'lovrabet':a312_0x233e03(0xbb)},'local':{'origin':a312_0x233e03(0xc1)}}};function a312_0x1e92(){const _0x346bd7=['https://g.lovrabet.ai','https://kb-service.lovrabet.com','https://user-daily.lovrabet.ai','1068951QdlHqb','https://cdnjs.cloudflare.com/ajax/libs','Mainland\x20China','https://dev.lovrabet.ai','https://skills.lovrabet.id','3153FOrVdM','https://runtime.lovrabet.ai','Indonesia','1892HxAVTr','32XRMxfq','https://g.lovrabet.com','https://dev.lovrabet.id','https://skills.lovrabet.com','https://user.lovrabet.com','indonesia','https://user-daily.lovrabet.com','https://skills-daily.lovrabet.com','5007625QESJsw','https://g.alicdn.com/code/lib','25284epNWYU','https://api.lovrabet.id','https://app.lovrabet.ai','28zjepIX','https://kb-service.lovrabet.id','china','6GlbrwC','657liyygE','Global','69570rhxuJe','https://daily-runtime.lovrabet.com','https://user.lovrabet.id','35Sbbcrh','1204yUBtye','https://skills.lovrabet.ai','https://g.lovrabet.id','https://daily-api.lovrabet.com','https://runtime.lovrabet.id','1164984flHpvQ','https://kb-service-daily.lovrabet.com','https://app.lovrabet.id','5086pAuvdy'];a312_0x1e92=function(){return _0x346bd7;};return a312_0x1e92();}export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const ENTERPRISE_ROUTING_SCHEMA_DIGEST: "
|
|
1
|
+
export declare const ENTERPRISE_ROUTING_SCHEMA_DIGEST: "a03fe188b2b34518efc5668666c0001d20354882cd7dd70afec902dffe1329c3";
|
|
2
2
|
export declare const ENTERPRISE_ROUTING_PROTOCOL: "lovrabet-routing/v1";
|
|
3
3
|
export declare const ENTERPRISE_ROUTING_KIND: "enterprise";
|
|
4
|
-
export declare const ENTERPRISE_ROUTING_DOMAIN_FIELDS: readonly ["userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbDomain", "appDomain", "localDomain", "certificateDomain"];
|
|
4
|
+
export declare const ENTERPRISE_ROUTING_DOMAIN_FIELDS: readonly ["userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbDomain", "kbServiceDomain", "appDomain", "localDomain", "certificateDomain"];
|
|
5
5
|
export declare const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS: readonly ["userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbDomain", "appDomain"];
|
|
6
6
|
export declare const ENTERPRISE_ROUTING_CDN_FIELDS: readonly ["libraries", "lovrabet"];
|
|
7
7
|
export declare const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS: readonly ["libraries", "lovrabet"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a313_0x3e5ef4=a313_0x29b3;function a313_0x29b3(_0x136adc,_0x1bf2bf){_0x136adc=_0x136adc-0x14e;const _0x233978=a313_0x2339();let _0x29b3b4=_0x233978[_0x136adc];return _0x29b3b4;}(function(_0x1a5aa1,_0xb21515){const _0x169f0c=a313_0x29b3,_0x1ed37b=_0x1a5aa1();while(!![]){try{const _0x586f6e=parseInt(_0x169f0c(0x15b))/0x1+-parseInt(_0x169f0c(0x151))/0x2+parseInt(_0x169f0c(0x152))/0x3*(parseInt(_0x169f0c(0x160))/0x4)+parseInt(_0x169f0c(0x15c))/0x5*(-parseInt(_0x169f0c(0x156))/0x6)+parseInt(_0x169f0c(0x14f))/0x7*(parseInt(_0x169f0c(0x15d))/0x8)+parseInt(_0x169f0c(0x155))/0x9*(parseInt(_0x169f0c(0x14e))/0xa)+parseInt(_0x169f0c(0x159))/0xb*(-parseInt(_0x169f0c(0x161))/0xc);if(_0x586f6e===_0xb21515)break;else _0x1ed37b['push'](_0x1ed37b['shift']());}catch(_0x5da822){_0x1ed37b['push'](_0x1ed37b['shift']());}}}(a313_0x2339,0xca695));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a313_0x3e5ef4(0x154);export const ENTERPRISE_ROUTING_PROTOCOL=a313_0x3e5ef4(0x15a);export const ENTERPRISE_ROUTING_KIND='enterprise';export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=['userDomain',a313_0x3e5ef4(0x15f),a313_0x3e5ef4(0x15e),a313_0x3e5ef4(0x150),a313_0x3e5ef4(0x153),'kbServiceDomain','appDomain','localDomain','certificateDomain'];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a313_0x3e5ef4(0x162),'apiDomain',a313_0x3e5ef4(0x15e),a313_0x3e5ef4(0x150),a313_0x3e5ef4(0x153),'appDomain'];function a313_0x2339(){const _0x486bb1=['lovrabet','3786673FAyfBF','lovrabet-routing/v1','1417064ZvYmZP','245yDZoNN','32PMaevS','runtimeDomain','apiDomain','14876OBGonO','84BRbQDF','userDomain','90VCCpRp','1234583YMvcYB','skillDomain','505842nLDgWm','822PCGaHa','kbDomain','a03fe188b2b34518efc5668666c0001d20354882cd7dd70afec902dffe1329c3','1427859nPCuKx','131964CdDUKx','libraries'];a313_0x2339=function(){return _0x486bb1;};return a313_0x2339();}export const ENTERPRISE_ROUTING_CDN_FIELDS=[a313_0x3e5ef4(0x157),a313_0x3e5ef4(0x158)];export const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS=[a313_0x3e5ef4(0x157),a313_0x3e5ef4(0x158)];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x231dda,_0x33218c){var _0x4d2792=a314_0x2e2f,_0xfbe043=_0x231dda();while(!![]){try{var _0x3d3004=-parseInt(_0x4d2792(0x9a))/0x1+parseInt(_0x4d2792(0x9c))/0x2+-parseInt(_0x4d2792(0xa0))/0x3+-parseInt(_0x4d2792(0x99))/0x4*(parseInt(_0x4d2792(0x9d))/0x5)+parseInt(_0x4d2792(0x95))/0x6+-parseInt(_0x4d2792(0x9f))/0x7+-parseInt(_0x4d2792(0x98))/0x8*(-parseInt(_0x4d2792(0x9e))/0x9);if(_0x3d3004===_0x33218c)break;else _0xfbe043['push'](_0xfbe043['shift']());}catch(_0x594b71){_0xfbe043['push'](_0xfbe043['shift']());}}}(a314_0x30fb,0xdc82c));function a314_0x2e2f(_0x438b34,_0x31829a){_0x438b34=_0x438b34-0x95;var _0x30fb59=a314_0x30fb();var _0x2e2f2b=_0x30fb59[_0x438b34];return _0x2e2f2b;}function a314_0x30fb(){var _0x5a4894=['523019rwWqAJ','28539LdaRkp','\x20--help','\x20\x20Use\x20','green','7822860sBbtjz','log','bold','8XNEstZ','8aJkfFS','700726evFWfc','\x20to\x20view\x20available\x20commands.','2283922WxBNmg','3477275IPyXCt','5699763dbBhiM'];a314_0x30fb=function(){return _0x5a4894;};return a314_0x30fb();}import a314_0x6127b5 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x186140=a314_0x2e2f;console[_0x186140(0x96)](),console[_0x186140(0x96)](a314_0x6127b5[_0x186140(0xa3)][_0x186140(0x97)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x186140(0x96)](),console[_0x186140(0x96)](_0x186140(0xa2)+a314_0x6127b5[_0x186140(0xa3)][_0x186140(0x97)](CLI_BIN_NAME+_0x186140(0xa1))+_0x186140(0x9b)),console['log']();}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a315_0xe24a(_0x138edc,_0x694323){_0x138edc=_0x138edc-0x170;const _0x591530=a315_0x5915();let _0xe24a20=_0x591530[_0x138edc];return _0xe24a20;}(function(_0x36d2b0,_0x383563){const _0x172b15=a315_0xe24a,_0x342d0d=_0x36d2b0();while(!![]){try{const _0x48215e=-parseInt(_0x172b15(0x171))/0x1+parseInt(_0x172b15(0x178))/0x2+-parseInt(_0x172b15(0x17b))/0x3*(-parseInt(_0x172b15(0x17f))/0x4)+-parseInt(_0x172b15(0x181))/0x5+parseInt(_0x172b15(0x182))/0x6+-parseInt(_0x172b15(0x17c))/0x7*(parseInt(_0x172b15(0x183))/0x8)+-parseInt(_0x172b15(0x17a))/0x9*(-parseInt(_0x172b15(0x170))/0xa);if(_0x48215e===_0x383563)break;else _0x342d0d['push'](_0x342d0d['shift']());}catch(_0x2bc4fe){_0x342d0d['push'](_0x342d0d['shift']());}}}(a315_0x5915,0x9afcd));function a315_0x5915(){const _0x1bb9db=['error','SOURCE_INVALID','already\x20current','Repair\x20with:\x20','installedPath','log','503858OGBFjL','code','666hORVOu','12QCFVtC','1393nCQAad','\x20at\x20','skillVersion','990364aNPFLR','\x20via\x20skills@latest','2698280VJialS','3174720wGOIsw','18624WkHOAw','repairCommand','135250XHemKG','1134506IIaRkG'];a315_0x5915=function(){return _0x1bb9db;};return a315_0x5915();}import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x247fa4={}){const _0x309de8=a315_0xe24a,_0xd9a3ea=installBuiltinSkill(_0x247fa4);if(_0xd9a3ea['ok']){const _0xc5d1d9=_0xd9a3ea['changed']?'installed':_0x309de8(0x174),_0x59db8a=_0xd9a3ea[_0x309de8(0x176)]?_0x309de8(0x17d)+_0xd9a3ea[_0x309de8(0x176)]:_0x309de8(0x180);return console[_0x309de8(0x177)]('Rabetbase\x20Built-in\x20Skill\x20'+_0xd9a3ea[_0x309de8(0x17e)]+'\x20'+_0xc5d1d9+_0x59db8a),_0xd9a3ea;}const _0x5b7343='[BUILTIN_SKILL_INSTALL_'+(_0xd9a3ea[_0x309de8(0x179)]??'FAILED')+']\x20'+(_0xd9a3ea[_0x309de8(0x172)]??'Installation\x20failed')+'.\x20'+(_0x309de8(0x175)+_0xd9a3ea[_0x309de8(0x184)]);if(_0xd9a3ea[_0x309de8(0x179)]===_0x309de8(0x173))throw new Error(_0x5b7343);return console['warn'](_0x5b7343),_0xd9a3ea;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xc76bfc,_0x242c6d){const _0x355c04=a316_0x1423,_0x571b68=_0xc76bfc();while(!![]){try{const _0x3b0916=-parseInt(_0x355c04(0xc9))/0x1*(-parseInt(_0x355c04(0xbe))/0x2)+-parseInt(_0x355c04(0xcc))/0x3*(parseInt(_0x355c04(0xc7))/0x4)+-parseInt(_0x355c04(0xbb))/0x5+-parseInt(_0x355c04(0xcb))/0x6*(-parseInt(_0x355c04(0xbc))/0x7)+-parseInt(_0x355c04(0xca))/0x8+parseInt(_0x355c04(0xb9))/0x9+parseInt(_0x355c04(0xc8))/0xa*(parseInt(_0x355c04(0xc2))/0xb);if(_0x3b0916===_0x242c6d)break;else _0x571b68['push'](_0x571b68['shift']());}catch(_0x526d0a){_0x571b68['push'](_0x571b68['shift']());}}}(a316_0x3a93,0x6393e));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x45bf22,_0x593d9f,_0x141d76){const _0x5502b0=a316_0x1423,_0x8ebbfb=normalizeText(_0x45bf22[_0x5502b0(0xc6)],DESCRIPTION_MAX_LENGTH),_0x9f8509=_0x8ebbfb||normalizeText(defaultDescription(requireWriteRisk(_0x45bf22),_0x593d9f),DESCRIPTION_MAX_LENGTH);return{'operation':_0x593d9f,'risk':requireWriteRisk(_0x45bf22),'description':_0x9f8509,..._0x141d76?{'signal':_0x141d76}:{}};}function requireWriteRisk(_0x5d95f0){const _0x4d107d=a316_0x1423;if(_0x5d95f0['risk']===_0x4d107d(0xb7)||_0x5d95f0[_0x4d107d(0xc5)]===_0x4d107d(0xc3))return _0x5d95f0[_0x4d107d(0xc5)];throw new Error(_0x4d107d(0xc4));}function defaultDescription(_0x4601ce,_0x50451f){const _0x1f8e46=a316_0x1423;if(_0x4601ce===_0x1f8e46(0xc3))return _0x1f8e46(0xba)+_0x50451f+_0x1f8e46(0xc1);return'This\x20will\x20run\x20the\x20write\x20'+_0x50451f+'.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.';}function a316_0x1423(_0x5810da,_0x74edce){_0x5810da=_0x5810da-0xb7;const _0x3a9382=a316_0x3a93();let _0x142331=_0x3a9382[_0x5810da];return _0x142331;}function a316_0x3a93(){const _0x9cb21e=['risk','confirmationDescription','160ZGzwgN','10fKFnFB','577867szikla','6424768UYWZbf','1596drRIDe','37209pjksTd','write','trim','5365917dmBBCH','This\x20will\x20run\x20the\x20high-risk\x20write\x20','1657375VvAJwh','7686FHYMGi','slice','2qaDRum','replace','string','.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.','6296543IzWLFn','high-risk-write','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.'];a316_0x3a93=function(){return _0x9cb21e;};return a316_0x3a93();}function normalizeText(_0x27e2c2,_0x3db308){const _0x15b908=a316_0x1423;if(typeof _0x27e2c2!==_0x15b908(0xc0))return'';return _0x27e2c2[_0x15b908(0xbf)](/[\u0000-\u001f\u007f]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0x15b908(0xb8)]()[_0x15b908(0xbd)](0x0,_0x3db308);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a317_0x9515(){const _0x4260cc=['service','4822909azDpzP','753NDqkiE','6PLHRRC','6953940ipepAL','44072LyEKGS','55egMpaH','2498utbsPS','object','177AIVJin','data','risk','1896110QNkeEm','198OrIlkF','20xKpswd','filter','rabetbase.write.completed','isArray','conflicts','split','8487984WQDdAp'];a317_0x9515=function(){return _0x4260cc;};return a317_0x9515();}(function(_0xd80a75,_0x1843b8){const _0x57bf6d=a317_0x56ca,_0x462d9d=_0xd80a75();while(!![]){try{const _0x185595=parseInt(_0x57bf6d(0x8e))/0x1*(-parseInt(_0x57bf6d(0x93))/0x2)+-parseInt(_0x57bf6d(0x95))/0x3*(parseInt(_0x57bf6d(0x91))/0x4)+-parseInt(_0x57bf6d(0x98))/0x5+parseInt(_0x57bf6d(0x8f))/0x6*(parseInt(_0x57bf6d(0x8d))/0x7)+-parseInt(_0x57bf6d(0x8b))/0x8+-parseInt(_0x57bf6d(0x99))/0x9*(parseInt(_0x57bf6d(0x9a))/0xa)+parseInt(_0x57bf6d(0x92))/0xb*(parseInt(_0x57bf6d(0x90))/0xc);if(_0x185595===_0x1843b8)break;else _0x462d9d['push'](_0x462d9d['shift']());}catch(_0x375c25){_0x462d9d['push'](_0x462d9d['shift']());}}}(a317_0x9515,0x87a77));export function canonicalRabetbaseOperation(_0x5eca07){const _0x550827=a317_0x56ca;return[_0x5eca07[_0x550827(0x8c)],..._0x5eca07['command']['trim']()[_0x550827(0x8a)](/\s+/)][_0x550827(0x9b)](Boolean)['join']('.');}export function createRabetbaseWriteMetadata(_0x417a5d,_0x320b4b,_0x416288,_0x923432){const _0x395125=a317_0x56ca;if(_0x923432||_0x416288['ok']!==!![]||hasUnresolvedConflicts(_0x416288)||_0x417a5d['risk']!=='write'&&_0x417a5d[_0x395125(0x97)]!=='high-risk-write')return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x395125(0x87),'operation':_0x320b4b,'risk':_0x417a5d[_0x395125(0x97)]}}};}function a317_0x56ca(_0x4c0495,_0x43eb9b){_0x4c0495=_0x4c0495-0x87;const _0x951592=a317_0x9515();let _0x56ca72=_0x951592[_0x4c0495];return _0x56ca72;}function hasUnresolvedConflicts(_0x176d0){const _0x24e9e2=a317_0x56ca,_0x372065=_0x176d0[_0x24e9e2(0x96)];return Boolean(_0x372065&&typeof _0x372065===_0x24e9e2(0x94)&&!Array[_0x24e9e2(0x88)](_0x372065)&&Array['isArray'](_0x372065['conflicts'])&&_0x372065[_0x24e9e2(0x89)]['length']>0x0);}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a318_0x5988(){const _0xedd559=['873027uxMOqu','result','2540732RtJYkY','88rQpJKJ','riskLevel','112434LIAOug','1983560lLSTYI','format','8vDPjfy','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','high-risk-write','483jFsAXx','confirm','args','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','definition','11908oUvTpV','signal','execute','dryRun','message','reason','stringify','6842045sjnrNB','rawFlags','present','risk','8751906oxMoED','write','data','143kecoLh','service','command'];a318_0x5988=function(){return _0xedd559;};return a318_0x5988();}(function(_0x511015,_0x5c846d){const _0x2dffb9=a318_0x44bb,_0x2fa00d=_0x511015();while(!![]){try{const _0x245daa=-parseInt(_0x2dffb9(0xd9))/0x1*(parseInt(_0x2dffb9(0xcb))/0x2)+parseInt(_0x2dffb9(0xdc))/0x3+parseInt(_0x2dffb9(0xde))/0x4+parseInt(_0x2dffb9(0xd2))/0x5+parseInt(_0x2dffb9(0xe1))/0x6*(-parseInt(_0x2dffb9(0xc6))/0x7)+parseInt(_0x2dffb9(0xe4))/0x8*(-parseInt(_0x2dffb9(0xd6))/0x9)+parseInt(_0x2dffb9(0xe2))/0xa*(parseInt(_0x2dffb9(0xdf))/0xb);if(_0x245daa===_0x5c846d)break;else _0x2fa00d['push'](_0x2fa00d['shift']());}catch(_0x531681){_0x2fa00d['push'](_0x2fa00d['shift']());}}}(a318_0x5988,0xbaaba));import{buildConfigFromFlags,initGlobalEnvironment,isRoutingRecoveryService}from'../context.js';import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';function a318_0x44bb(_0x3e0ff0,_0x12c69f){_0x3e0ff0=_0x3e0ff0-0xc6;const _0x598837=a318_0x5988();let _0x44bb25=_0x598837[_0x3e0ff0];return _0x44bb25;}import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x3fb8b7,command:_0x478aec,risk:_0x205fb1,dryRun:_0x149768}){const _0x25d75c=a318_0x44bb;return JSON[_0x25d75c(0xd1)]({'ok':_0x3fb8b7['ok'],'command':_0x478aec,'risk':_0x205fb1,..._0x149768?{'dryRun':!![]}:{},..._0x3fb8b7[_0x25d75c(0xd8)]!==undefined?{'data':_0x3fb8b7[_0x25d75c(0xd8)]}:{},..._0x3fb8b7[_0x25d75c(0xcf)]?{'message':_0x3fb8b7[_0x25d75c(0xcf)]}:{}});}};export async function invokeRabetbase(_0x56a893,_0x43c314){const _0x22dc3a=a318_0x44bb;throwIfAborted(_0x43c314[_0x22dc3a(0xcc)]);const _0x5f0d21=await resolveRabetbaseInvocation(_0x56a893),_0x1497bd=canonicalRabetbaseOperation(_0x5f0d21[_0x22dc3a(0xca)]);return await confirmWriteBeforeQueue(_0x5f0d21[_0x22dc3a(0xca)],_0x5f0d21[_0x22dc3a(0xd3)],_0x1497bd,_0x43c314),runSerialized(async()=>{const _0x2e817c=_0x22dc3a,_0x36b8fc={};try{throwIfAborted(_0x43c314['signal']);const _0x4213ce=buildConfigFromFlags(_0x5f0d21['rawFlags']);!isRoutingRecoveryService(_0x5f0d21[_0x2e817c(0xca)][_0x2e817c(0xda)])&&await initGlobalEnvironment(_0x4213ce);const _0x410ea0=createPipelineEnv(_0x4213ce,{..._0x5f0d21['rawFlags'],'yes':_0x5f0d21[_0x2e817c(0xca)][_0x2e817c(0xd5)]===_0x2e817c(0xe6)?!![]:_0x5f0d21[_0x2e817c(0xd3)]['yes'],'nonInteractive':!![]},_0x5f0d21[_0x2e817c(0xc8)]);_0x410ea0['isNonInteractive']=!![],_0x410ea0[_0x2e817c(0xe0)]=_0x2e817c(0xe6);const _0x58f53c=withAbortSignal(_0x5f0d21[_0x2e817c(0xca)],_0x43c314['signal']),_0x18600e=createRabetbaseRunnerAdapter({'formatOutput'(_0x3925d7,_0x55af70){const _0x3200df=_0x2e817c;_0x36b8fc['result']=_0x3925d7,_0x36b8fc[_0x3200df(0xdb)]=_0x55af70[_0x3200df(0xdb)],_0x36b8fc[_0x3200df(0xd5)]=_0x55af70[_0x3200df(0xd5)],_0x36b8fc[_0x3200df(0xe3)]=_0x55af70[_0x3200df(0xe3)],_0x36b8fc[_0x3200df(0xce)]=_0x55af70['dryRun']===!![];},async 'confirmHighRisk'(){const _0x225752=_0x2e817c;throw new Error(_0x225752(0xc9));}});await runCommand(_0x58f53c,_0x410ea0,_0x18600e);if(!_0x36b8fc[_0x2e817c(0xdd)]||!_0x36b8fc[_0x2e817c(0xdb)]||!_0x36b8fc[_0x2e817c(0xd5)]||!_0x36b8fc[_0x2e817c(0xe3)])throw new Error(_0x2e817c(0xe5));const _0x1ae55b=_0x36b8fc['dryRun']===!![],_0x490ca7=_0x43c314['presentation']??defaultPresentation,_0x11f6ec={'result':_0x36b8fc['result'],'command':_0x36b8fc[_0x2e817c(0xdb)],'operation':_0x1497bd,'risk':_0x36b8fc[_0x2e817c(0xd5)],'format':_0x36b8fc[_0x2e817c(0xe3)],'dryRun':_0x1ae55b},_0x12a91f=createRabetbaseWriteMetadata(_0x5f0d21['definition'],_0x1497bd,_0x36b8fc[_0x2e817c(0xdd)],_0x1ae55b);let _0x3dde95;try{_0x3dde95=await _0x490ca7[_0x2e817c(0xd4)](_0x11f6ec);}catch(_0x49c3cc){if(!_0x12a91f||_0x490ca7===defaultPresentation)throw _0x49c3cc;_0x3dde95=await defaultPresentation[_0x2e817c(0xd4)](_0x11f6ec);}return{'operation':_0x1497bd,'risk':_0x36b8fc['risk'],'mode':_0x1ae55b?'dry-run':_0x2e817c(0xcd),'result':_0x36b8fc['result'],'output':_0x3dde95,..._0x12a91f?{'metadata':_0x12a91f}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x5c0eef,_0x26ff0b,_0x20ca48,_0x4ba735){const _0x13488b=a318_0x44bb;if(_0x26ff0b[_0x13488b(0xce)]===!![]||_0x5c0eef[_0x13488b(0xd5)]!==_0x13488b(0xd7)&&_0x5c0eef['risk']!=='high-risk-write')return;await _0x4ba735['confirmation'][_0x13488b(0xc7)](buildRabetbaseConfirmationRequest(_0x5c0eef,_0x20ca48,_0x4ba735[_0x13488b(0xcc)]));}function withAbortSignal(_0x68b788,_0x42444e){return{..._0x68b788,async 'execute'(_0x50ff8b){const _0x4a9d11=a318_0x44bb;return throwIfAborted(_0x42444e),_0x68b788[_0x4a9d11(0xcd)]({..._0x50ff8b,'signal':_0x42444e});}};}function throwIfAborted(_0x5978ca){const _0x4b6095=a318_0x44bb;if(_0x5978ca?.['aborted'])throw _0x5978ca[_0x4b6095(0xd0)]instanceof Error?_0x5978ca[_0x4b6095(0xd0)]:new DOMException('Rabetbase\x20invocation\x20aborted.','AbortError');}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a319_0x3e2f8e=a319_0x5438;function a319_0x5438(_0x5277a5,_0x47a8b1){_0x5277a5=_0x5277a5-0x71;const _0x1f9ac9=a319_0x1f9a();let _0x543857=_0x1f9ac9[_0x5277a5];return _0x543857;}(function(_0xbccfc6,_0x4a77e2){const _0x277f72=a319_0x5438,_0x1a994e=_0xbccfc6();while(!![]){try{const _0x42743c=parseInt(_0x277f72(0x7b))/0x1*(parseInt(_0x277f72(0x7d))/0x2)+-parseInt(_0x277f72(0x7c))/0x3*(parseInt(_0x277f72(0x77))/0x4)+parseInt(_0x277f72(0x74))/0x5+-parseInt(_0x277f72(0x76))/0x6+parseInt(_0x277f72(0x72))/0x7*(parseInt(_0x277f72(0x73))/0x8)+parseInt(_0x277f72(0x7a))/0x9+parseInt(_0x277f72(0x79))/0xa*(-parseInt(_0x277f72(0x71))/0xb);if(_0x42743c===_0x4a77e2)break;else _0x1a994e['push'](_0x1a994e['shift']());}catch(_0x34357b){_0x1a994e['push'](_0x1a994e['shift']());}}}(a319_0x1f9a,0x58f58));let tail=Promise[a319_0x3e2f8e(0x75)]();function a319_0x1f9a(){const _0x2353b9=['catch','1695110dRvHAc','5682213LHssMo','15851ehnXCP','12eFhIEk','38zhbwOc','22jIFbXt','9961TxHUWA','968lWbpHx','1375240GzXBiF','resolve','2218002QJxsSF','306692qpbJYx'];a319_0x1f9a=function(){return _0x2353b9;};return a319_0x1f9a();}export async function runSerialized(_0x1b06db){const _0x62bb62=a319_0x3e2f8e,_0x529052=tail;let _0x20bd13;tail=new Promise(_0x1be429=>{_0x20bd13=_0x1be429;}),await _0x529052[_0x62bb62(0x78)](()=>undefined);try{return await _0x1b06db();}finally{_0x20bd13();}}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x56d6b4,_0x5a5473){const _0x113800=a320_0x3f77,_0x24e0f9=_0x56d6b4();while(!![]){try{const _0xf43521=parseInt(_0x113800(0xaa))/0x1*(parseInt(_0x113800(0xad))/0x2)+-parseInt(_0x113800(0xa0))/0x3+parseInt(_0x113800(0xa1))/0x4*(-parseInt(_0x113800(0xa6))/0x5)+-parseInt(_0x113800(0xae))/0x6*(parseInt(_0x113800(0xac))/0x7)+-parseInt(_0x113800(0xab))/0x8*(parseInt(_0x113800(0xa8))/0x9)+parseInt(_0x113800(0xa7))/0xa*(-parseInt(_0x113800(0xaf))/0xb)+parseInt(_0x113800(0xa5))/0xc;if(_0xf43521===_0x5a5473)break;else _0x24e0f9['push'](_0x24e0f9['shift']());}catch(_0x2acb6d){_0x24e0f9['push'](_0x24e0f9['shift']());}}}(a320_0x23c3,0xd2671));import a320_0x1ba1e2 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a320_0x23c3(){const _0x4a2305=['flags','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','validation','input','5162622PnsNOC','4TuvkbV','wildcardDef','run','message','41458572iKbFWP','1484750TVuovI','20NHjEWv','3321873rgMHof','slice','2293KiqOGu','16tXywPr','7793849qoQdSy','1286yMOiOG','6SQwkee','1089253mzniTU','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','unknownCommand'];a320_0x23c3=function(){return _0x4a2305;};return a320_0x23c3();}import{buildMeowFlags}from'../constant/cli.js';function a320_0x3f77(_0x1c81bd,_0x111d50){_0x1c81bd=_0x1c81bd-0x9a;const _0x23c3ed=a320_0x23c3();let _0x3f7758=_0x23c3ed[_0x1c81bd];return _0x3f7758;}import{CliErrors}from'../errors.js';import{assertSupportedCommandFlags}from'../framework/supported-flags.js';export async function resolveRabetbaseInvocation(_0x26f2e8){const _0x35b144=a320_0x3f77,_0x14380c=a320_0x1ba1e2('',{'importMeta':import.meta,'argv':[..._0x26f2e8],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x395bc2=[..._0x14380c[_0x35b144(0x9f)]],_0x4fa914=_0x14380c[_0x35b144(0x9c)],_0x55c6a9=_0x395bc2[0x0];if(!_0x55c6a9)throw CliErrors['validation']('Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.');const _0x144b72=resolveRemovedCommand(_0x55c6a9,_0x395bc2[0x1]);if(_0x144b72)throw CliErrors[_0x35b144(0x9e)](_0x144b72[_0x35b144(0xa4)],_0x144b72['hint']);if(_0x55c6a9===_0x35b144(0xa3))throw CliErrors[_0x35b144(0x9e)](_0x35b144(0xb0),_0x35b144(0x9d));if(!isKnownService(_0x55c6a9))throw CliErrors[_0x35b144(0x9b)](_0x395bc2['join']('\x20'));const _0x30e3e2=getServiceEntry(_0x55c6a9),_0x2c6644=_0x395bc2[0x1],_0x55b1f7=_0x2c6644||_0x30e3e2['defaultCommand'];if(!_0x55b1f7){if(_0x30e3e2['wildcardDef'])return{'definition':_0x30e3e2[_0x35b144(0xa2)],'rawFlags':_0x4fa914,'args':[]};throw CliErrors[_0x35b144(0x9e)](_0x35b144(0x9a)+_0x55c6a9+'\x22.');}const _0x2977a5=findDefinition(_0x55c6a9,_0x55b1f7);if(_0x2977a5)return assertSupportedCommandFlags(_0x2977a5,_0x4fa914),{'definition':_0x2977a5,'rawFlags':_0x4fa914,'args':_0x395bc2[_0x35b144(0xa9)](0x2)};if(_0x30e3e2[_0x35b144(0xa2)])return{'definition':_0x30e3e2[_0x35b144(0xa2)],'rawFlags':_0x4fa914,'args':[_0x55b1f7,..._0x395bc2['slice'](0x2)]};throw CliErrors[_0x35b144(0x9b)](_0x55c6a9+'\x20'+_0x55b1f7);}
|