@lovrabet/rabetbase-cli 2.5.12-beta.1 → 2.5.13-beta.1
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/detail.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/design-context.js +1 -1
- package/lib/commands/dataset/design-start.js +1 -1
- package/lib/commands/dataset/design-status.js +1 -1
- package/lib/commands/dataset/design-sync-retry.js +1 -1
- package/lib/commands/dataset/design-sync-status.js +1 -1
- package/lib/commands/dataset/design-validate.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/cross-db-analysis-shared.js +1 -1
- package/lib/commands/db/cross-db-analyze-latest.js +1 -1
- package/lib/commands/db/cross-db-analyze-start.js +1 -1
- package/lib/commands/db/cross-db-analyze-status.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/page-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/context.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/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/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.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/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.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.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.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.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-analysis.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/instant-api-policy/endpoints.js +1 -1
- package/lib/core/kb-management-client.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/services/dataset-design/checkpoint.js +1 -1
- package/lib/services/dataset-design/commands.js +1 -1
- package/lib/services/dataset-design/contract.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/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 +1 -1
- package/skills/rabetbase/guides/custom-page-workflow.md +32 -2
- package/skills/rabetbase/knowledge/custom-page/generation-standards.md +106 -6
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
- package/templates/custom-pages/blank.json +1 -1
- package/templates/custom-pages/dashboard.json +1 -1
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1d1a6d,_0xcb2500){const _0x3d8160=a324_0x1745,_0x1640b4=_0x1d1a6d();while(!![]){try{const _0x4c5373=-parseInt(_0x3d8160(0xac))/0x1*(-parseInt(_0x3d8160(0xc4))/0x2)+parseInt(_0x3d8160(0xb4))/0x3*(-parseInt(_0x3d8160(0xb2))/0x4)+parseInt(_0x3d8160(0xa9))/0x5+-parseInt(_0x3d8160(0xab))/0x6*(-parseInt(_0x3d8160(0xa7))/0x7)+parseInt(_0x3d8160(0xaf))/0x8+-parseInt(_0x3d8160(0xb3))/0x9+-parseInt(_0x3d8160(0xb5))/0xa*(-parseInt(_0x3d8160(0xad))/0xb);if(_0x4c5373===_0xcb2500)break;else _0x1640b4['push'](_0x1640b4['shift']());}catch(_0x1aee98){_0x1640b4['push'](_0x1640b4['shift']());}}}(a324_0x4f72,0x449fa));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';function a324_0x1745(_0x2cb39e,_0x552a6c){_0x2cb39e=_0x2cb39e-0xa7;const _0x4f7283=a324_0x4f72();let _0x1745af=_0x4f7283[_0x2cb39e];return _0x1745af;}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x123a3a,_0x40e855){const _0x2aeecb=a324_0x1745,_0x21dd75=_0x123a3a[_0x2aeecb(0xbd)],{_notice:_0x1d9b70,..._0x10671c}=_0x123a3a;void _0x1d9b70,baseFormatOutput(_0x10671c,_0x40e855),_0x40e855[_0x2aeecb(0xb7)]===_0x2aeecb(0xb6)&&printPrettyNotice(_0x21dd75);}export function formatCliError(_0x5cedec,_0xf29fc6){const _0x280151=a324_0x1745;if(_0xf29fc6['format']===_0x280151(0xb6))return![];const _0x30925a=_0x5cedec[_0x280151(0xba)],_0x45cff9={'ok':![],'command':_0xf29fc6[_0x280151(0xc3)],'risk':_0xf29fc6[_0x280151(0xbe)],'data':_0x30925a??null,'error':{'code':_0x5cedec['code'],'message':_0x5cedec[_0x280151(0xae)],..._0x5cedec[_0x280151(0xb0)]?{'hint':_0x5cedec[_0x280151(0xb0)]}:{}}},_0x426e42=_0xf29fc6['format']===_0x280151(0xc2)?JSON[_0x280151(0xc1)](_0x45cff9,null,0x2):JSON[_0x280151(0xc1)](_0x45cff9);let _0x3c6045=_0x426e42;if(_0xf29fc6[_0x280151(0xb1)]?.[_0x280151(0xc5)]())try{_0x3c6045=applyJqFilter(_0x426e42,_0xf29fc6[_0x280151(0xb1)]);}catch(_0x15f453){const _0x4512e7=_0x15f453 instanceof CliError?_0x15f453:CliErrors[_0x280151(0xc0)](_0x280151(0xbf)+(_0x15f453 instanceof Error?_0x15f453[_0x280151(0xae)]:String(_0x15f453))),_0x8c1ec9={..._0x45cff9,'error':{'code':_0x4512e7[_0x280151(0xb8)],'message':_0x4512e7[_0x280151(0xae)],..._0x4512e7[_0x280151(0xb0)]?{'hint':_0x4512e7['hint']}:{},'cause':_0x45cff9['error']}};_0x3c6045=_0xf29fc6[_0x280151(0xb7)]==='json'?JSON['stringify'](_0x8c1ec9,null,0x2):JSON[_0x280151(0xc1)](_0x8c1ec9);}return process[_0x280151(0xaa)][_0x280151(0xb9)](_0x3c6045[_0x280151(0xa8)]('\x0a')?_0x3c6045:_0x3c6045+'\x0a'),!![];}function a324_0x4f72(){const _0x17b351=['118PWlwgc','trim','973bXWuoR','endsWith','1000305OXzdlR','stdout','1266YtYMJZ','601NNOEwS','156321vfmpLx','message','1960608hJxcgJ','hint','jqFilter','1422628iXcGlN','1160856JgSXQy','3zBrxIh','180CRGtxz','pretty','format','code','write','data','url','update','_notice','risk','jq:\x20','validation','stringify','json','command'];a324_0x4f72=function(){return _0x17b351;};return a324_0x4f72();}function printPrettyNotice(_0x444652){const _0x23f6be=a324_0x1745;if(!_0x444652?.['update'])return;console['error'](_0x444652[_0x23f6be(0xbc)][_0x23f6be(0xae)]+'\x20('+_0x444652[_0x23f6be(0xbc)][_0x23f6be(0xbb)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x57fc29,_0x588a91){var _0x4ef466=a325_0x117a,_0x2f7fc3=_0x57fc29();while(!![]){try{var _0x3d78e6=parseInt(_0x4ef466(0x8e))/0x1+parseInt(_0x4ef466(0x8d))/0x2+-parseInt(_0x4ef466(0x90))/0x3*(-parseInt(_0x4ef466(0x8b))/0x4)+-parseInt(_0x4ef466(0x8f))/0x5+parseInt(_0x4ef466(0x89))/0x6*(-parseInt(_0x4ef466(0x8c))/0x7)+parseInt(_0x4ef466(0x92))/0x8*(parseInt(_0x4ef466(0x91))/0x9)+-parseInt(_0x4ef466(0x8a))/0xa;if(_0x3d78e6===_0x588a91)break;else _0x2f7fc3['push'](_0x2f7fc3['shift']());}catch(_0x4b695e){_0x2f7fc3['push'](_0x2f7fc3['shift']());}}}(a325_0x1ce4,0x5cf86));function a325_0x1ce4(){var _0x9c2ca7=['598267pHNSpc','3424545YxgNWY','421113HhKreP','14229jtxvrV','3744ACSSAV','145014SjCGWb','10063880joKysH','8kdyzXl','21dNCABq','1051386JgRrcf'];a325_0x1ce4=function(){return _0x9c2ca7;};return a325_0x1ce4();}function a325_0x117a(_0x595cee,_0xf7b15a){_0x595cee=_0x595cee-0x89;var _0x1ce4ae=a325_0x1ce4();var _0x117ad6=_0x1ce4ae[_0x595cee];return _0x117ad6;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x24f2d4,_0x3b5866){const _0x439767=a326_0x1ad8,_0x420397=_0x24f2d4();while(!![]){try{const _0x2bb86a=parseInt(_0x439767(0x132))/0x1*(parseInt(_0x439767(0x13a))/0x2)+-parseInt(_0x439767(0x143))/0x3*(-parseInt(_0x439767(0x137))/0x4)+parseInt(_0x439767(0x139))/0x5+parseInt(_0x439767(0x135))/0x6+-parseInt(_0x439767(0x12d))/0x7*(-parseInt(_0x439767(0x136))/0x8)+parseInt(_0x439767(0x138))/0x9+parseInt(_0x439767(0x13f))/0xa*(-parseInt(_0x439767(0x144))/0xb);if(_0x2bb86a===_0x3b5866)break;else _0x420397['push'](_0x420397['shift']());}catch(_0x1b951c){_0x420397['push'](_0x420397['shift']());}}}(a326_0x5034,0xe3a5b));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a326_0x1ad8(_0x3c0139,_0x524ed8){_0x3c0139=_0x3c0139-0x12c;const _0x5034c8=a326_0x5034();let _0x1ad857=_0x5034c8[_0x3c0139];return _0x1ad857;}import{CLI_BIN_NAME}from'../constant/cli.js';import{resolveApiModelSource}from'../api/model-source.js';export function resolveAliasToCode(_0x15a0a1,_0x39dd3d,_0x58b3ca,_0x49b23c,_0x4e2e7a,_0x4d5fc5){const _0x5ab756=a326_0x1ad8,_0x1e4f54=_0x15a0a1[_0x5ab756(0x131)][_0x5ab756(0x12c)](_0x59efec=>_0x59efec[_0x5ab756(0x141)]==='code'&&_0x59efec[_0x5ab756(0x13b)]===_0x5ab756(0x148)),_0x18c159=_0x15a0a1[_0x5ab756(0x131)]['some'](_0xe64a57=>_0xe64a57[_0x5ab756(0x141)]===_0x5ab756(0x130)&&_0xe64a57['type']==='string');if(!_0x1e4f54||!_0x18c159)return;const _0x216c90=_0x39dd3d[_0x5ab756(0x12f)]?String(_0x39dd3d[_0x5ab756(0x12f)]):'',_0x4d1297=_0x39dd3d[_0x5ab756(0x130)]?String(_0x39dd3d['alias']):'';if(!_0x216c90&&!_0x4d1297)throw CliErrors['validation']('`'+_0x49b23c+_0x5ab756(0x13d));if(_0x4d1297&&!_0x216c90){const _0x514e16=resolveApiModelSource(_0x58b3ca,_0x4e2e7a,_0x4d5fc5),_0x2226ed=resolveAlias(_0x58b3ca,_0x4d1297,undefined,_0x514e16[_0x5ab756(0x134)],_0x514e16[_0x5ab756(0x13e)]);if(!_0x2226ed){const _0x373e79=listAliases(_0x58b3ca,undefined,_0x514e16[_0x5ab756(0x134)],_0x514e16[_0x5ab756(0x13e)])[_0x5ab756(0x140)](_0x2260f7=>_0x2260f7[_0x5ab756(0x130)]),_0x47380d=_0x373e79[_0x5ab756(0x13c)]?_0x5ab756(0x12e)+_0x373e79[_0x5ab756(0x142)](',\x20'):_0x5ab756(0x147)+_0x58b3ca+_0x5ab756(0x133)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors['validation'](_0x5ab756(0x146)+_0x4d1297+_0x5ab756(0x145)+_0x47380d);}_0x39dd3d[_0x5ab756(0x12f)]=_0x2226ed;}}function a326_0x5034(){const _0x43ef00=['string','some','49WLhTbr','Available\x20aliases:\x20','code','alias','flags','1403xgqjSZ','.\x20Run\x20`','filePath','4880232Ejpaea','503280QlQhKU','4fqbsci','3614049oJxQSD','6870055FfcWVo','868uTlTfx','type','length','`\x20requires\x20either\x20--code\x20or\x20--alias.','profileName','70KZeqfx','map','name','join','4175430RIDghE','6439059aJwDwd','\x22.\x20','Unknown\x20alias\x20\x22','No\x20model\x20aliases\x20found\x20in\x20'];a326_0x5034=function(){return _0x43ef00;};return a326_0x5034();}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x4283d1,_0x46da0a){const _0x368f0f=a327_0x3878,_0x2bb2cc=_0x4283d1();while(!![]){try{const _0x2b9b7f=parseInt(_0x368f0f(0x15d))/0x1*(parseInt(_0x368f0f(0x147))/0x2)+parseInt(_0x368f0f(0x142))/0x3*(-parseInt(_0x368f0f(0x157))/0x4)+parseInt(_0x368f0f(0x141))/0x5+parseInt(_0x368f0f(0x117))/0x6*(parseInt(_0x368f0f(0x10e))/0x7)+-parseInt(_0x368f0f(0x10d))/0x8*(-parseInt(_0x368f0f(0x14a))/0x9)+-parseInt(_0x368f0f(0x159))/0xa*(-parseInt(_0x368f0f(0x13c))/0xb)+-parseInt(_0x368f0f(0x153))/0xc;if(_0x2b9b7f===_0x46da0a)break;else _0x2bb2cc['push'](_0x2bb2cc['shift']());}catch(_0x5f4e6a){_0x2bb2cc['push'](_0x2bb2cc['shift']());}}}(a327_0x1c6b,0x4eea4));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';function a327_0x3878(_0x37978b,_0x7c1e92){_0x37978b=_0x37978b-0x10d;const _0x1c6b3d=a327_0x1c6b();let _0x387870=_0x1c6b3d[_0x37978b];return _0x387870;}function a327_0x1c6b(){const _0x12d737=['Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','../constant/env.js','meowKey','resolve','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','defaultPageSize','nonInteractive','rawFlags','_notice','currentApp','hint','apps','1909963PEZuIX','../core/api-client.js','cancelled','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','join','1168665yuHrVF','3LcWYzZ','format','../constant/domain.js','toUpperCase','authRequired','494618yewcro','appcode','production','8595RxSlWK','some','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','includes','execute','map','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','command','configMissing','6085008tSdHGb','mergedCli','string','Edit\x20the\x20config\x20file\x20manually','1727204kiyGFE','schema','10qePUXW','replace','resolveCookie','all','1AAVjKn','name','update','filter','1312rOxLJw','3017PlgPbD','AppCode\x20\x22','isNonInteractive','defaultVerbose','risk','object','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','length','pretty','6276RDWlmt','\x0a\x20\x20','catch','defaultApp','apiDir','resolveAppCode','High-risk\x20operation\x20`','explicitAppName','LOVRABET_APPCODE','required','formatOutput','appCode','Set\x20appcode\x20via\x20`','doctor','cookie','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','service','requiresAppCode','keys','value','Current\x20resolved\x20appcode\x20is\x20\x22','validation','has','entries'];a327_0x1c6b=function(){return _0x12d737;};return a327_0x1c6b();}import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a327_0x52b056}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x1693a6){const _0x287fd8=a327_0x3878;return typeof _0x1693a6===_0x287fd8(0x155)&&_0x1693a6['trim']()?_0x1693a6['trim']():undefined;}function resolveEnvAppCode(){const _0x59798d=a327_0x3878,_0x40460a=stringFlag(process.env.RABETBASE_APPCODE);if(_0x40460a)return{'name':'RABETBASE_APPCODE','value':_0x40460a};const _0x598441=stringFlag(process.env.LOVRABET_APPCODE);if(_0x598441)return{'name':_0x59798d(0x11f),'value':_0x598441};return undefined;}function hasExplicitAppCode(_0x513baa,_0x3203d9){const _0x91c528=a327_0x3878;return!!(stringFlag(_0x513baa[_0x91c528(0x148)])||stringFlag(_0x3203d9['appcode']));}function assertEnvAppCodeNotIgnored(_0x1f2157,_0x1e2a10,_0x1ff6c6){const _0x43f984=a327_0x3878;if(!_0x1e2a10||_0x1ff6c6||_0x1f2157===_0x1e2a10[_0x43f984(0x12a)])return;const _0x77fa3e=_0x1f2157?_0x43f984(0x12b)+_0x1f2157+'\x22.':_0x43f984(0x134);throw CliErrors[_0x43f984(0x12c)](_0x1e2a10[_0x43f984(0x15e)]+'='+_0x1e2a10[_0x43f984(0x12a)]+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0x77fa3e+'\x20'+(_0x43f984(0x114)+_0x1e2a10[_0x43f984(0x15e)]+'\x22.'));}export function createPipelineEnv(_0xde0a32,_0x1b8d54,_0x2c6246=[]){const _0x3c812d=a327_0x3878;return{'rawFlags':_0x1b8d54,'args':_0x2c6246,'resolveAppCode':()=>_0xde0a32[_0x3c812d(0x122)],'resolveCookie':()=>_0xde0a32[_0x3c812d(0x125)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a327_0x52b056(_0x1b8d54),'defaultFormat':_0xde0a32[_0x3c812d(0x143)],'defaultPageSize':_0xde0a32['pageSize'],'defaultVerbose':_0xde0a32['verbose'],'apiDir':_0xde0a32[_0x3c812d(0x11b)],'riskLevel':_0xde0a32['riskLevel'],'selectedAppName':_0xde0a32[_0x3c812d(0x11e)],'mergedCli':{'defaultApp':_0xde0a32[_0x3c812d(0x11a)],'currentApp':_0xde0a32[_0x3c812d(0x139)],'appCode':_0xde0a32[_0x3c812d(0x122)],'apps':_0xde0a32[_0x3c812d(0x13b)]}};}export function createRabetbaseRunnerAdapter(_0x4c2fe4={}){const _0x4647be=a327_0x3878;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x4647be(0x160)](_0x3aaab2=>PIPELINE_FLAG_NAMES[_0x4647be(0x12d)](_0x3aaab2[_0x4647be(0x15e)]))[_0x4647be(0x14f)](({name:_0x45afe1,type:_0x56168d,description:_0x6e64db})=>({'name':_0x45afe1,'type':_0x56168d,'description':_0x6e64db})),'formatOutput':_0x4c2fe4[_0x4647be(0x121)]??formatOutput,'getCommandLabel'(_0x3bd1b9){const _0x30f703=_0x4647be;return CLI_BIN_NAME+'\x20'+_0x3bd1b9[_0x30f703(0x127)]+'\x20'+_0x3bd1b9[_0x30f703(0x151)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x1750d9,{def:_0x27190e}){const _0x2516a2=_0x4647be,_0xd6b360=_0x1750d9[_0x2516a2(0x14d)](_0x2516a2(0x156))?_0x2516a2(0x126):_0x2516a2(0x133)+_0x27190e[_0x2516a2(0x112)]+_0x2516a2(0x13f)+_0x2516a2(0x126);return CliErrors['validation'](_0x1750d9+_0x2516a2(0x118)+_0xd6b360);}},async 'prepare'(_0x3a4967,_0x2985a0,_0x1dfd17,_0x61c6be){const _0x26eb55=_0x4647be,_0x2f712=_0x2985a0[_0x26eb55(0x11b)]||DEFAULT_API_DIR,_0x3832db=hasExplicitAppCode(_0x1dfd17,_0x2985a0['rawFlags']),_0x287655=stringFlag(_0x1dfd17['appcode'])||stringFlag(_0x2985a0[_0x26eb55(0x137)][_0x26eb55(0x148)]),_0x1f9664=_0x2985a0[_0x26eb55(0x154)]?.[_0x26eb55(0x13b)]??{},_0x269e37=_0x2985a0['selectedAppName']||_0x2985a0[_0x26eb55(0x154)]?.[_0x26eb55(0x139)]||_0x2985a0[_0x26eb55(0x154)]?.[_0x26eb55(0x11a)],_0x20ed4e=_0x287655?Object[_0x26eb55(0x12e)](_0x1f9664)['filter'](([,_0x4d3bf7])=>_0x4d3bf7[_0x26eb55(0x148)]===_0x287655)[_0x26eb55(0x14f)](([_0x16c806])=>_0x16c806):[];if(_0x20ed4e['length']>0x1&&!_0x2985a0['selectedAppName'])throw CliErrors[_0x26eb55(0x12c)](_0x26eb55(0x10f)+_0x287655+'\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20'+_0x20ed4e[_0x26eb55(0x140)](',\x20')+'.',_0x26eb55(0x12f));resolveAliasToCode(_0x3a4967,_0x1dfd17,_0x2f712,_0x61c6be,_0x2985a0[_0x26eb55(0x11c)](),_0x269e37);const _0x5bf05d=resolveCommandAuthMode(_0x3a4967);let _0x3254d1='';if(_0x5bf05d!=='none'){_0x3254d1=_0x2985a0[_0x26eb55(0x15b)]()||'';if(!_0x3254d1){if(_0x5bf05d===_0x26eb55(0x120))throw CliErrors[_0x26eb55(0x146)]();}else{const {setActiveCookie:_0x3895d3}=await import(_0x26eb55(0x13d));_0x3895d3(_0x3254d1);}}const _0x5b12ca=_0x2985a0[_0x26eb55(0x11c)]()??'';if(_0x3a4967[_0x26eb55(0x128)]!==![]){if(!_0x3832db&&_0x269e37&&!_0x1f9664[_0x269e37]){const _0x3c7731=Object[_0x26eb55(0x129)](_0x1f9664);throw CliErrors[_0x26eb55(0x12c)]('App\x20\x22'+_0x269e37+_0x26eb55(0x14c),_0x3c7731[_0x26eb55(0x115)]>0x0?'Available:\x20'+_0x3c7731[_0x26eb55(0x140)](',\x20')+'.\x20Use\x20--app/--appcode,\x20or\x20run\x20`'+CLI_BIN_NAME+'\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.':'Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`'+CLI_BIN_NAME+'\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.');}assertEnvAppCodeNotIgnored(_0x5b12ca,resolveEnvAppCode(),_0x3832db);if(!_0x5b12ca){const _0x5d24eb=Object['keys'](_0x1f9664);if(!_0x269e37&&_0x5d24eb[_0x26eb55(0x115)]>0x1)throw CliErrors[_0x26eb55(0x152)]('Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`'+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20'+_0x5d24eb[_0x26eb55(0x140)](',\x20')+'.');throw CliErrors['configMissing'](_0x26eb55(0x123)+CLI_BIN_NAME+_0x26eb55(0x150));}}return{'defaults':{'booleans':{'verbose':_0x2985a0[_0x26eb55(0x111)]},'numbers':{'pagesize':_0x2985a0[_0x26eb55(0x135)]}},'extras':{'appCode':_0x5b12ca,'cookie':_0x3254d1,'apiDomain':_0x2985a0['resolveApiDomain'](),'apiDir':_0x2f712,'selectedAppName':_0x2985a0['selectedAppName'],'mergedCli':_0x2985a0[_0x26eb55(0x154)]}};},'confirmHighRisk':_0x4c2fe4['confirmHighRisk']??(async({env:_0xa0e5f0,commandLabel:_0x4fcbaa})=>{const _0x3dbc4e=_0x4647be;if(_0xa0e5f0[_0x3dbc4e(0x110)])throw CliErrors['validation'](_0x3dbc4e(0x11d)+_0x4fcbaa+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x4fcbaa,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x182d09=>CliErrors[_0x3dbc4e(0x13e)](_0x182d09)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x2b321e=a327_0x3878,{clearActiveCookie:_0x26cefa}=await import(_0x2b321e(0x13d));_0x26cefa();}export async function finalizeRabetbaseRuntimeState(){const _0x12fca4=a327_0x3878;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x1bcc13},{initEnv:_0x477f2f}]=await Promise[_0x12fca4(0x15c)]([import(_0x12fca4(0x144)),import(_0x12fca4(0x130))]);_0x1bcc13(),_0x477f2f(_0x12fca4(0x149));}}export async function runCommand(_0x28b77d,_0x14340e,_0x2d66b1=terminalRunnerAdapter){const _0x47d014=a327_0x3878;assertRejectedFlags(_0x28b77d,_0x14340e[_0x47d014(0x137)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x28b77d)?withUpdateNotice(_0x28b77d):_0x28b77d,_0x14340e,_0x2d66b1);}function assertRejectedFlags(_0x550cbb,_0xeff99b){const _0x788a23=a327_0x3878;for(const _0x1e9b50 of _0x550cbb['rejectedFlags']??[]){const _0x5c7beb=GLOBAL_FLAGS['find'](_0x446128=>_0x446128[_0x788a23(0x15e)]===_0x1e9b50[_0x788a23(0x15e)]),_0x48e806=new Set([_0x1e9b50['name'],toCamelCase(_0x1e9b50[_0x788a23(0x15e)]),_0x5c7beb?.[_0x788a23(0x131)]]),_0x72583d=[..._0x48e806][_0x788a23(0x14b)](_0xb41e30=>{if(!_0xb41e30)return![];const _0xae094=_0xeff99b[_0xb41e30];return _0xae094!==undefined&&_0xae094!==null&&_0xae094!==![];});if(_0x72583d)throw CliErrors[_0x788a23(0x12c)](_0x1e9b50['message'],_0x1e9b50[_0x788a23(0x13a)]);}}function toCamelCase(_0x452ebc){const _0x33501e=a327_0x3878;return _0x452ebc[_0x33501e(0x15a)](/-([a-z])/g,(_0x5a2466,_0x1acc8b)=>_0x1acc8b[_0x33501e(0x145)]());}function shouldAttachUpdateNotice(_0x35cee3){const _0x53cbc2=a327_0x3878;if(_0x35cee3['hasFormat']===![])return![];return![_0x53cbc2(0x15f),_0x53cbc2(0x158),_0x53cbc2(0x124)]['includes'](_0x35cee3[_0x53cbc2(0x127)]);}function withUpdateNotice(_0x3f35b8){return{..._0x3f35b8,async 'execute'(_0x1e03de){const _0x85d92=a327_0x3878,_0xd01e6e=shouldResolveUpdateNotice(_0x1e03de)?resolveLatestUpdateNotice()[_0x85d92(0x119)](()=>null):Promise[_0x85d92(0x132)](null),_0x4c911a=await _0x3f35b8[_0x85d92(0x14e)](_0x1e03de);return attachUpdateNotice(_0x4c911a,await _0xd01e6e);}};}function shouldResolveUpdateNotice(_0x188000){const _0x590a2f=a327_0x3878;return _0x188000[_0x590a2f(0x143)]===_0x590a2f(0x116)&&!_0x188000[_0x590a2f(0x136)];}function attachUpdateNotice(_0x5a2aa5,_0x2bf5d4){const _0x19dda8=a327_0x3878;if(!_0x2bf5d4||!_0x5a2aa5||typeof _0x5a2aa5!==_0x19dda8(0x113))return _0x5a2aa5;const _0x4cf13d=_0x5a2aa5,_0x22e12f=typeof _0x4cf13d[_0x19dda8(0x138)]===_0x19dda8(0x113)&&_0x4cf13d[_0x19dda8(0x138)]!==null?_0x4cf13d[_0x19dda8(0x138)]:{};return{..._0x4cf13d,'_notice':{..._0x22e12f,'update':_0x2bf5d4}};}
|
|
1
|
+
(function(_0x3d83c4,_0x389425){const _0x38f0bb=a327_0x1013,_0x2cc144=_0x3d83c4();while(!![]){try{const _0x2b4edc=-parseInt(_0x38f0bb(0xc1))/0x1*(-parseInt(_0x38f0bb(0xae))/0x2)+parseInt(_0x38f0bb(0x9d))/0x3+parseInt(_0x38f0bb(0xaa))/0x4+-parseInt(_0x38f0bb(0xf0))/0x5+-parseInt(_0x38f0bb(0xc3))/0x6+parseInt(_0x38f0bb(0xcf))/0x7*(-parseInt(_0x38f0bb(0xc4))/0x8)+parseInt(_0x38f0bb(0xa4))/0x9*(parseInt(_0x38f0bb(0xbe))/0xa);if(_0x2b4edc===_0x389425)break;else _0x2cc144['push'](_0x2cc144['shift']());}catch(_0x21dd50){_0x2cc144['push'](_0x2cc144['shift']());}}}(a327_0x5ef2,0xc96c9));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 a327_0x5810a7}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';function a327_0x5ef2(){const _0x5ca53d=['trim','1620276iTFKce','16vESZYm','defaultPageSize','find','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','Set\x20appcode\x20via\x20`','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','RABETBASE_APPCODE','resolveAppCode','appcode','pageSize','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','2310553kyEFbJ','authRequired','cancelled','appCode','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','apiDir','isNonInteractive','resolveApiDomain','validation','defaultVerbose','filter','Available:\x20','pretty','configMissing','requiresAppCode','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','keys','confirmHighRisk','format','some','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','join','replace','object','rawFlags','selectedAppName','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','doctor','production','defaultApp','resolveCookie','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','1661605SGSssS','_notice','risk','1633584mTIOOV','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','hasFormat','entries','name','../constant/domain.js','none','349524DCCUiv','cookie','meowKey','apps','nonInteractive','rejectedFlags','1444132FAVJPy','../core/api-client.js','LOVRABET_APPCODE','verbose','2YLIqGx','hint','\x20\x20\x20Continue?\x20[y/N]\x20','mergedCli','riskLevel','Current\x20resolved\x20appcode\x20is\x20\x22','map','schema','includes','toUpperCase','explicitAppName','execute','\x0a\x20\x20','length','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','⚠\x20\x20High-risk\x20operation:\x20','290fswQcC','currentApp','all','55753PYEfvu'];a327_0x5ef2=function(){return _0x5ca53d;};return a327_0x5ef2();}import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x2bb7e6){const _0x35d49d=a327_0x1013;return typeof _0x2bb7e6==='string'&&_0x2bb7e6[_0x35d49d(0xc2)]()?_0x2bb7e6['trim']():undefined;}function resolveEnvAppCode(){const _0x111f3b=a327_0x1013,_0x19ae0b=stringFlag(process.env.RABETBASE_APPCODE);if(_0x19ae0b)return{'name':_0x111f3b(0xca),'value':_0x19ae0b};const _0x56c9f9=stringFlag(process.env.LOVRABET_APPCODE);if(_0x56c9f9)return{'name':_0x111f3b(0xac),'value':_0x56c9f9};return undefined;}function hasExplicitAppCode(_0x4b3cbf,_0x21408c){const _0xd36831=a327_0x1013;return!!(stringFlag(_0x4b3cbf[_0xd36831(0xcc)])||stringFlag(_0x21408c[_0xd36831(0xcc)]));}function assertEnvAppCodeNotIgnored(_0x50cf93,_0x2f714e,_0x435d9e){const _0x31d4b5=a327_0x1013;if(!_0x2f714e||_0x435d9e||_0x50cf93===_0x2f714e['value'])return;const _0x227377=_0x50cf93?_0x31d4b5(0xb3)+_0x50cf93+'\x22.':_0x31d4b5(0xea);throw CliErrors[_0x31d4b5(0xd8)](_0x2f714e[_0x31d4b5(0xa1)]+'='+_0x2f714e['value']+_0x31d4b5(0xe4)+_0x227377+'\x20'+('To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$'+_0x2f714e[_0x31d4b5(0xa1)]+'\x22.'));}export function createPipelineEnv(_0xbe19c8,_0x1513e7,_0x2b35ca=[]){const _0x262ac5=a327_0x1013;return{'rawFlags':_0x1513e7,'args':_0x2b35ca,'resolveAppCode':()=>_0xbe19c8[_0x262ac5(0xd2)],'resolveCookie':()=>_0xbe19c8[_0x262ac5(0xa5)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a327_0x5810a7(_0x1513e7),'defaultFormat':_0xbe19c8[_0x262ac5(0xe2)],'defaultPageSize':_0xbe19c8[_0x262ac5(0xcd)],'defaultVerbose':_0xbe19c8[_0x262ac5(0xad)],'apiDir':_0xbe19c8[_0x262ac5(0xd5)],'riskLevel':_0xbe19c8[_0x262ac5(0xb2)],'selectedAppName':_0xbe19c8[_0x262ac5(0xb8)],'mergedCli':{'defaultApp':_0xbe19c8[_0x262ac5(0xed)],'currentApp':_0xbe19c8[_0x262ac5(0xbf)],'appCode':_0xbe19c8[_0x262ac5(0xd2)],'apps':_0xbe19c8[_0x262ac5(0xa7)]}};}export function createRabetbaseRunnerAdapter(_0x176603={}){const _0x52c1dc=a327_0x1013;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x52c1dc(0xda)](_0x49f185=>PIPELINE_FLAG_NAMES['has'](_0x49f185['name']))[_0x52c1dc(0xb4)](({name:_0x854ea3,type:_0x44f1b4,description:_0x4dcb26})=>({'name':_0x854ea3,'type':_0x44f1b4,'description':_0x4dcb26})),'formatOutput':_0x176603['formatOutput']??formatOutput,'getCommandLabel'(_0x5d2bae){return CLI_BIN_NAME+'\x20'+_0x5d2bae['service']+'\x20'+_0x5d2bae['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x144060,{def:_0x57f7b7}){const _0x47ccf0=_0x52c1dc,_0x2bc258=_0x144060[_0x47ccf0(0xb6)]('Edit\x20the\x20config\x20file\x20manually')?'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'+_0x57f7b7[_0x47ccf0(0xf2)]+_0x47ccf0(0xce)+_0x47ccf0(0xd3);return CliErrors[_0x47ccf0(0xd8)](_0x144060+_0x47ccf0(0xba)+_0x2bc258);}},async 'prepare'(_0x32c444,_0x45d36a,_0x5178b4,_0x24e71e){const _0x5cd0d8=_0x52c1dc,_0x459e30=_0x45d36a['apiDir']||DEFAULT_API_DIR,_0x588770=hasExplicitAppCode(_0x5178b4,_0x45d36a['rawFlags']),_0x5aca64=stringFlag(_0x5178b4['appcode'])||stringFlag(_0x45d36a[_0x5cd0d8(0xe8)][_0x5cd0d8(0xcc)]),_0x584eb3=_0x45d36a[_0x5cd0d8(0xb1)]?.['apps']??{},_0x42cc08=_0x45d36a['selectedAppName']||_0x45d36a[_0x5cd0d8(0xb1)]?.[_0x5cd0d8(0xbf)]||_0x45d36a[_0x5cd0d8(0xb1)]?.[_0x5cd0d8(0xed)],_0x391762=_0x5aca64?Object[_0x5cd0d8(0xa0)](_0x584eb3)[_0x5cd0d8(0xda)](([,_0x5a58b0])=>_0x5a58b0['appcode']===_0x5aca64)[_0x5cd0d8(0xb4)](([_0x220a8f])=>_0x220a8f):[];if(_0x391762[_0x5cd0d8(0xbb)]>0x1&&!_0x45d36a[_0x5cd0d8(0xe9)])throw CliErrors[_0x5cd0d8(0xd8)]('AppCode\x20\x22'+_0x5aca64+'\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20'+_0x391762[_0x5cd0d8(0xe5)](',\x20')+'.',_0x5cd0d8(0xdf));resolveAliasToCode(_0x32c444,_0x5178b4,_0x459e30,_0x24e71e,_0x45d36a['resolveAppCode'](),_0x42cc08);const _0x3dd856=resolveCommandAuthMode(_0x32c444);let _0x2a23b0='';if(_0x3dd856!==_0x5cd0d8(0xa3)){_0x2a23b0=_0x45d36a[_0x5cd0d8(0xee)]()||'';if(!_0x2a23b0){if(_0x3dd856==='required')throw CliErrors[_0x5cd0d8(0xd0)]();}else{const {setActiveCookie:_0x209cc4}=await import(_0x5cd0d8(0xab));_0x209cc4(_0x2a23b0);}}const _0x97204f=_0x45d36a[_0x5cd0d8(0xcb)]()??'';if(_0x32c444[_0x5cd0d8(0xde)]!==![]){if(!_0x588770&&_0x42cc08&&!_0x584eb3[_0x42cc08]){const _0x37826d=Object[_0x5cd0d8(0xe0)](_0x584eb3);throw CliErrors['validation']('App\x20\x22'+_0x42cc08+'\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.',_0x37826d[_0x5cd0d8(0xbb)]>0x0?_0x5cd0d8(0xdb)+_0x37826d[_0x5cd0d8(0xe5)](',\x20')+_0x5cd0d8(0xbc)+CLI_BIN_NAME+_0x5cd0d8(0xd4):'Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x5cd0d8(0xd4));}assertEnvAppCodeNotIgnored(_0x97204f,resolveEnvAppCode(),_0x588770);if(!_0x97204f){const _0x4f1a11=Object[_0x5cd0d8(0xe0)](_0x584eb3);if(!_0x42cc08&&_0x4f1a11[_0x5cd0d8(0xbb)]>0x1)throw CliErrors['configMissing'](_0x5cd0d8(0xc7)+CLI_BIN_NAME+_0x5cd0d8(0x9e)+_0x4f1a11[_0x5cd0d8(0xe5)](',\x20')+'.');throw CliErrors[_0x5cd0d8(0xdd)](_0x5cd0d8(0xc8)+CLI_BIN_NAME+_0x5cd0d8(0xc9));}}return{'defaults':{'booleans':{'verbose':_0x45d36a[_0x5cd0d8(0xd9)]},'numbers':{'pagesize':_0x45d36a[_0x5cd0d8(0xc5)]}},'extras':{'appCode':_0x97204f,'cookie':_0x2a23b0,'apiDomain':_0x45d36a[_0x5cd0d8(0xd7)](),'apiDir':_0x459e30,'selectedAppName':_0x45d36a['selectedAppName'],'mergedCli':_0x45d36a[_0x5cd0d8(0xb1)]}};},'confirmHighRisk':_0x176603[_0x52c1dc(0xe1)]??(async({env:_0x175f49,commandLabel:_0x225a87})=>{const _0x129362=_0x52c1dc;if(_0x175f49[_0x129362(0xd6)])throw CliErrors[_0x129362(0xd8)]('High-risk\x20operation\x20`'+_0x225a87+_0x129362(0xef));await requireConfirmationPrompt({'lines':[_0x129362(0xbd)+_0x225a87,_0x129362(0xb0)],'createCancelledError':_0x5bde3c=>CliErrors[_0x129362(0xd1)](_0x5bde3c)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x21a14c=a327_0x1013,{clearActiveCookie:_0x7c538a}=await import(_0x21a14c(0xab));_0x7c538a();}export async function finalizeRabetbaseRuntimeState(){const _0x4c4166=a327_0x1013;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x3e61d8},{initEnv:_0x4ca3e9}]=await Promise[_0x4c4166(0xc0)]([import(_0x4c4166(0xa2)),import('../constant/env.js')]);_0x3e61d8(),_0x4ca3e9(_0x4c4166(0xec));}}export async function runCommand(_0x356c0a,_0x5614d7,_0x4a92b5=terminalRunnerAdapter){const _0x2912d2=a327_0x1013;assertRejectedFlags(_0x356c0a,_0x5614d7[_0x2912d2(0xe8)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x356c0a)?withUpdateNotice(_0x356c0a):_0x356c0a,_0x5614d7,_0x4a92b5);}function assertRejectedFlags(_0x29321e,_0x181f23){const _0x6977a3=a327_0x1013;for(const _0x12d927 of _0x29321e[_0x6977a3(0xa9)]??[]){const _0x137f5f=GLOBAL_FLAGS[_0x6977a3(0xc6)](_0x401fde=>_0x401fde[_0x6977a3(0xa1)]===_0x12d927['name']),_0x51ec1c=new Set([_0x12d927[_0x6977a3(0xa1)],toCamelCase(_0x12d927[_0x6977a3(0xa1)]),_0x137f5f?.[_0x6977a3(0xa6)]]),_0x451eb4=[..._0x51ec1c][_0x6977a3(0xe3)](_0x1d01cd=>{if(!_0x1d01cd)return![];const _0x795c0=_0x181f23[_0x1d01cd];return _0x795c0!==undefined&&_0x795c0!==null&&_0x795c0!==![];});if(_0x451eb4)throw CliErrors['validation'](_0x12d927['message'],_0x12d927[_0x6977a3(0xaf)]);}}function a327_0x1013(_0x428924,_0x8948cc){_0x428924=_0x428924-0x9d;const _0x5ef2b6=a327_0x5ef2();let _0x101307=_0x5ef2b6[_0x428924];return _0x101307;}function toCamelCase(_0x2c548c){const _0x5081d0=a327_0x1013;return _0x2c548c[_0x5081d0(0xe6)](/-([a-z])/g,(_0x25e603,_0x3e0a2e)=>_0x3e0a2e[_0x5081d0(0xb7)]());}function shouldAttachUpdateNotice(_0x58d51b){const _0x17a9e7=a327_0x1013;if(_0x58d51b[_0x17a9e7(0x9f)]===![])return![];return!['update',_0x17a9e7(0xb5),_0x17a9e7(0xeb)][_0x17a9e7(0xb6)](_0x58d51b['service']);}function withUpdateNotice(_0x5eba4a){return{..._0x5eba4a,async 'execute'(_0x43b31a){const _0x61ca35=a327_0x1013,_0x1e5bde=shouldResolveUpdateNotice(_0x43b31a)?resolveLatestUpdateNotice()['catch'](()=>null):Promise['resolve'](null),_0xe2b29e=await _0x5eba4a[_0x61ca35(0xb9)](_0x43b31a);return attachUpdateNotice(_0xe2b29e,await _0x1e5bde);}};}function shouldResolveUpdateNotice(_0x5eb733){const _0x3ce4f4=a327_0x1013;return _0x5eb733[_0x3ce4f4(0xe2)]===_0x3ce4f4(0xdc)&&!_0x5eb733[_0x3ce4f4(0xa8)];}function attachUpdateNotice(_0x447f3e,_0x4a992a){const _0x2b6425=a327_0x1013;if(!_0x4a992a||!_0x447f3e||typeof _0x447f3e!==_0x2b6425(0xe7))return _0x447f3e;const _0x1fa73b=_0x447f3e,_0x935d30=typeof _0x1fa73b[_0x2b6425(0xf1)]==='object'&&_0x1fa73b['_notice']!==null?_0x1fa73b['_notice']:{};return{..._0x1fa73b,'_notice':{..._0x935d30,'update':_0x4a992a}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x517455,_0x8588b2){const _0x32fd62=a328_0x11d4,_0xb83953=_0x517455();while(!![]){try{const _0x5c6fa1=-parseInt(_0x32fd62(0x99))/0x1*(-parseInt(_0x32fd62(0x9d))/0x2)+-parseInt(_0x32fd62(0x9a))/0x3+parseInt(_0x32fd62(0x9e))/0x4+parseInt(_0x32fd62(0x9c))/0x5+-parseInt(_0x32fd62(0x9f))/0x6*(-parseInt(_0x32fd62(0x9b))/0x7)+-parseInt(_0x32fd62(0x97))/0x8+-parseInt(_0x32fd62(0x98))/0x9;if(_0x5c6fa1===_0x8588b2)break;else _0xb83953['push'](_0xb83953['shift']());}catch(_0x29eada){_0xb83953['push'](_0xb83953['shift']());}}}(a328_0x2767,0xcc072));import{buildSchemaPayload as a328_0x1c8f53}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 a328_0x11d4(_0x3a76b8,_0x5ccd41){_0x3a76b8=_0x3a76b8-0x97;const _0x276751=a328_0x2767();let _0x11d4ad=_0x276751[_0x3a76b8];return _0x11d4ad;}export async function buildSchemaPayload(){const {serviceRegistry:_0x37d4d5,findDefinition:_0x4adeed}=await import('../commands/registry.js');return a328_0x1c8f53({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x37d4d5,'buildAllFlags':buildAllFlags,'findDefinition':_0x4adeed});}function a328_0x2767(){const _0x33bd81=['1629819zwpFEx','14FbEmQl','6277955KFMrVT','2tjoPnS','661356EgUSfp','1048584ZRLuid','1377872RxrCJY','6814584xcrBRZ','537923ohyiUG'];a328_0x2767=function(){return _0x33bd81;};return a328_0x2767();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a329_0x1f1c(_0x3974d4,_0x3aa45d){_0x3974d4=_0x3974d4-0x10e;const _0x55be7d=a329_0x55be();let _0x1f1c12=_0x55be7d[_0x3974d4];return _0x1f1c12;}(function(_0x4d21fd,_0x539fa7){const _0x28e170=a329_0x1f1c,_0x23a035=_0x4d21fd();while(!![]){try{const _0x324ae2=-parseInt(_0x28e170(0x10f))/0x1*(parseInt(_0x28e170(0x11f))/0x2)+-parseInt(_0x28e170(0x128))/0x3*(-parseInt(_0x28e170(0x11a))/0x4)+parseInt(_0x28e170(0x12a))/0x5+parseInt(_0x28e170(0x125))/0x6*(parseInt(_0x28e170(0x124))/0x7)+parseInt(_0x28e170(0x11c))/0x8*(-parseInt(_0x28e170(0x110))/0x9)+parseInt(_0x28e170(0x10e))/0xa*(-parseInt(_0x28e170(0x117))/0xb)+-parseInt(_0x28e170(0x113))/0xc;if(_0x324ae2===_0x539fa7)break;else _0x23a035['push'](_0x23a035['shift']());}catch(_0x41e361){_0x23a035['push'](_0x23a035['shift']());}}}(a329_0x55be,0xc98ae));function a329_0x55be(){const _0x3a5e49=['583656prnoYU','service','alias','version','11473NNZLzc','command','Run\x20`','20wgVjoB','replace','8AWVCsW','help','Unsupported\x20flag\x20--','2722rXPAGQ','add','meowKey','find','length','14cBeFdZ','4930770KmkITO','\x20for\x20`','name','432534mVFNHY','filter','6931880OXNoBL','toLowerCase','3410BdtcUj','1165gBCvTD','8419248rEZoGL','has','isArray'];a329_0x55be=function(){return _0x3a5e49;};return a329_0x55be();}import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function assertSupportedCommandFlags(_0x44cc05,_0x46adc1){const _0x33cf8b=a329_0x1f1c;if(!_0x44cc05['strictFlags'])return;const _0x43e7a6=new Set([_0x33cf8b(0x11d),_0x33cf8b(0x116)]),_0x17f6e9=GLOBAL_FLAGS[_0x33cf8b(0x129)](_0x264003=>PIPELINE_FLAG_NAMES[_0x33cf8b(0x111)](_0x264003[_0x33cf8b(0x127)]));for(const _0x422d06 of[..._0x44cc05['flags'],..._0x17f6e9]){addFlagCandidates(_0x43e7a6,_0x422d06);}for(const [_0x1729c8,_0x2b18c9]of Object['entries'](_0x46adc1)){if(!isExplicitValue(_0x2b18c9)||_0x43e7a6['has'](_0x1729c8))continue;const _0x254746=GLOBAL_FLAGS[_0x33cf8b(0x122)](_0x355047=>_0x355047[_0x33cf8b(0x121)]===_0x1729c8)?.[_0x33cf8b(0x127)]??toKebabCase(_0x1729c8);throw CliErrors['validation'](_0x33cf8b(0x11e)+_0x254746+_0x33cf8b(0x126)+CLI_BIN_NAME+'\x20'+_0x44cc05[_0x33cf8b(0x114)]+'\x20'+_0x44cc05[_0x33cf8b(0x118)]+'`.',_0x33cf8b(0x119)+CLI_BIN_NAME+'\x20'+_0x44cc05[_0x33cf8b(0x114)]+'\x20'+_0x44cc05[_0x33cf8b(0x118)]+'\x20--help`\x20to\x20view\x20the\x20current\x20command\x20contract.');}}function addFlagCandidates(_0x2375e1,_0x36ee86){const _0x15bbf6=a329_0x1f1c,_0x4244b1=_0x15bbf6(0x121)in _0x36ee86?[_0x36ee86['name'],_0x36ee86['meowKey']]:[_0x36ee86[_0x15bbf6(0x127)],_0x36ee86[_0x15bbf6(0x115)]];for(const _0x9f820d of _0x4244b1){if(!_0x9f820d)continue;_0x2375e1[_0x15bbf6(0x120)](_0x9f820d),_0x2375e1[_0x15bbf6(0x120)](toCamelCase(_0x9f820d));}}function isExplicitValue(_0x205e9c){const _0x4c9ff2=a329_0x1f1c;return _0x205e9c!==undefined&&_0x205e9c!==null&&_0x205e9c!==![]&&(!Array[_0x4c9ff2(0x112)](_0x205e9c)||_0x205e9c[_0x4c9ff2(0x123)]>0x0);}function toCamelCase(_0x173ed0){const _0x13a0d3=a329_0x1f1c;return _0x173ed0[_0x13a0d3(0x11b)](/-([a-z])/g,(_0x2a442e,_0x2e5ed9)=>_0x2e5ed9['toUpperCase']());}function toKebabCase(_0x37487e){const _0x24eaf5=a329_0x1f1c;return _0x37487e[_0x24eaf5(0x11b)](/([a-z0-9])([A-Z])/g,'$1-$2')[_0x24eaf5(0x12b)]();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a330_0x1b8c(){var _0x3a4ab9=['1992063JIjFPb','10EnJuby','182398ERiMLy','2708188TqqoVN','1RkfutB','12tuLxij','7069149qKQDTX','1479885qQFgVj','491480nqStrt','2500687XzQpef'];a330_0x1b8c=function(){return _0x3a4ab9;};return a330_0x1b8c();}(function(_0x214acf,_0x4b73dc){var _0x18d5d3=a330_0xf5dc,_0x502617=_0x214acf();while(!![]){try{var _0x3ccbcb=parseInt(_0x18d5d3(0xb2))/0x1*(parseInt(_0x18d5d3(0xb0))/0x2)+parseInt(_0x18d5d3(0xb8))/0x3+-parseInt(_0x18d5d3(0xb1))/0x4+parseInt(_0x18d5d3(0xb5))/0x5+parseInt(_0x18d5d3(0xb3))/0x6*(-parseInt(_0x18d5d3(0xb7))/0x7)+-parseInt(_0x18d5d3(0xb6))/0x8+parseInt(_0x18d5d3(0xb4))/0x9*(parseInt(_0x18d5d3(0xb9))/0xa);if(_0x3ccbcb===_0x4b73dc)break;else _0x502617['push'](_0x502617['shift']());}catch(_0x1e9fa4){_0x502617['push'](_0x502617['shift']());}}}(a330_0x1b8c,0x5dace));function a330_0xf5dc(_0x117ece,_0x3bcaa9){_0x117ece=_0x117ece-0xb0;var _0x1b8cab=a330_0x1b8c();var _0xf5dcb3=_0x1b8cab[_0x117ece];return _0xf5dcb3;}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-11-
|
|
1
|
+
export declare const VERSION = "2.5.13-beta.1";
|
|
2
|
+
export declare const GIT_TAG = "v2.5.13-beta.1";
|
|
3
|
+
export declare const GIT_COMMIT = "b4438b1b";
|
|
4
|
+
export declare const BUILD_TIME = "2026-11-06T04:05:15.471Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a331_0x5212(){const _0x3adf9b=['1868660aILylc','4146802dfwwdP','v2.5.13-beta.1','1yjDAPQ','705800oyhLeu','895042OaQwZz','2.5.13-beta.1','2733703jzkGCA','489501NXNacO','16nXADqp','6xFZLHG','3NDRxEd','2055868smyJNe'];a331_0x5212=function(){return _0x3adf9b;};return a331_0x5212();}const a331_0x14a462=a331_0x453f;(function(_0x31344b,_0x454255){const _0x1ca472=a331_0x453f,_0x18ce52=_0x31344b();while(!![]){try{const _0x1617fa=parseInt(_0x1ca472(0xa4))/0x1*(-parseInt(_0x1ca472(0xa6))/0x2)+parseInt(_0x1ca472(0x9f))/0x3*(parseInt(_0x1ca472(0xa0))/0x4)+parseInt(_0x1ca472(0xa1))/0x5+parseInt(_0x1ca472(0x9e))/0x6*(parseInt(_0x1ca472(0x9b))/0x7)+-parseInt(_0x1ca472(0x9d))/0x8*(parseInt(_0x1ca472(0x9c))/0x9)+-parseInt(_0x1ca472(0xa5))/0xa+-parseInt(_0x1ca472(0xa2))/0xb;if(_0x1617fa===_0x454255)break;else _0x18ce52['push'](_0x18ce52['shift']());}catch(_0x1969fe){_0x18ce52['push'](_0x18ce52['shift']());}}}(a331_0x5212,0x42fbf));export const VERSION=a331_0x14a462(0xa7);export const GIT_TAG=a331_0x14a462(0xa3);function a331_0x453f(_0x28ebf0,_0x10ff39){_0x28ebf0=_0x28ebf0-0x9b;const _0x521220=a331_0x5212();let _0x453fd8=_0x521220[_0x28ebf0];return _0x453fd8;}export const GIT_COMMIT='b4438b1b';export const BUILD_TIME='2026-11-06T04:05:15.471Z';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a332_0x30eba7=a332_0x469d;(function(_0x2e5804,_0x37821b){const _0x4a5bc3=a332_0x469d,_0xb1e628=_0x2e5804();while(!![]){try{const _0x26bf0c=-parseInt(_0x4a5bc3(0x1f9))/0x1*(-parseInt(_0x4a5bc3(0x1d9))/0x2)+-parseInt(_0x4a5bc3(0x1e1))/0x3*(parseInt(_0x4a5bc3(0x1f5))/0x4)+-parseInt(_0x4a5bc3(0x1d1))/0x5*(-parseInt(_0x4a5bc3(0x1cd))/0x6)+parseInt(_0x4a5bc3(0x1fc))/0x7+parseInt(_0x4a5bc3(0x1f2))/0x8+-parseInt(_0x4a5bc3(0x1e3))/0x9*(-parseInt(_0x4a5bc3(0x1d8))/0xa)+-parseInt(_0x4a5bc3(0x1fa))/0xb*(parseInt(_0x4a5bc3(0x1d0))/0xc);if(_0x26bf0c===_0x37821b)break;else _0xb1e628['push'](_0xb1e628['shift']());}catch(_0x3b008e){_0xb1e628['push'](_0xb1e628['shift']());}}}(a332_0x447e,0xe7949));export const ROUTING_CATALOG_DIGEST=a332_0x30eba7(0x1de);export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id',a332_0x30eba7(0x1ce)];export const ENABLED_REGION_VALUES=['cn','id',a332_0x30eba7(0x1ce)];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':'Mainland\x20China','aliases':[a332_0x30eba7(0x1e9)],'serviceDomains':{'production':{'user':a332_0x30eba7(0x1e6),'api':'https://api.lovrabet.com','runtime':a332_0x30eba7(0x1e5),'skill':a332_0x30eba7(0x1d3),'kb':a332_0x30eba7(0x1cf),'kbService':a332_0x30eba7(0x1f6),'app':a332_0x30eba7(0x1e8)},'daily':{'user':a332_0x30eba7(0x1ea),'api':a332_0x30eba7(0x1ec),'runtime':a332_0x30eba7(0x1e0),'skill':a332_0x30eba7(0x1cc),'kb':a332_0x30eba7(0x1ec),'kbService':a332_0x30eba7(0x1eb),'app':a332_0x30eba7(0x1df)}},'cdn':{'libraries':'https://g.alicdn.com/code/lib','lovrabet':a332_0x30eba7(0x1e2)},'local':{'origin':a332_0x30eba7(0x1f3)}},'id':{'enabled':!![],'label':'Indonesia','aliases':['indonesia'],'serviceDomains':{'production':{'user':a332_0x30eba7(0x1dd),'api':'https://api.lovrabet.id','runtime':a332_0x30eba7(0x1e7),'skill':a332_0x30eba7(0x1e4),'kb':'https://api.lovrabet.id','kbService':a332_0x30eba7(0x1f7),'app':a332_0x30eba7(0x1f4)}},'cdn':{'libraries':a332_0x30eba7(0x1ee),'lovrabet':a332_0x30eba7(0x1fb)},'local':{'origin':a332_0x30eba7(0x1f8)}},'global':{'enabled':!![],'label':a332_0x30eba7(0x1dc),'aliases':[],'serviceDomains':{'production':{'user':'https://user.lovrabet.ai','api':a332_0x30eba7(0x1f1),'runtime':a332_0x30eba7(0x1d7),'skill':a332_0x30eba7(0x1d2),'kb':a332_0x30eba7(0x1f1),'kbService':a332_0x30eba7(0x1ed),'app':'https://app.lovrabet.ai'},'daily':{'user':a332_0x30eba7(0x1db),'api':a332_0x30eba7(0x1da),'runtime':a332_0x30eba7(0x1d6),'skill':a332_0x30eba7(0x1d5),'kb':'https://daily-api.lovrabet.ai','app':a332_0x30eba7(0x1d4)}},'cdn':{'libraries':a332_0x30eba7(0x1ee),'lovrabet':a332_0x30eba7(0x1ef)},'local':{'origin':a332_0x30eba7(0x1f0)}}};function a332_0x469d(_0x1037a2,_0x4e62c2){_0x1037a2=_0x1037a2-0x1cc;const _0x447e56=a332_0x447e();let _0x469d40=_0x447e56[_0x1037a2];return _0x469d40;}export const REGION_ALIASES={'china':'cn','indonesia':'id'};function a332_0x447e(){const _0xdd760b=['120KwhRGU','662bbppzd','https://daily-api.lovrabet.ai','https://user-daily.lovrabet.ai','Global','https://user.lovrabet.id','5a3c4ca34546427528221911a6be02953b976d9968c1863c4fdec2d1e7319397','https://daily.lovrabet.com','https://daily-runtime.lovrabet.com','33cTgexo','https://g.lovrabet.com','1054413CiDwgB','https://skills.lovrabet.id','https://runtime.lovrabet.com','https://user.lovrabet.com','https://runtime.lovrabet.id','https://app.lovrabet.com','china','https://user-daily.lovrabet.com','https://kb-service-daily.lovrabet.com','https://daily-api.lovrabet.com','https://kb-service.lovrabet.ai','https://cdnjs.cloudflare.com/ajax/libs','https://g.lovrabet.ai','https://dev.lovrabet.ai','https://api.lovrabet.ai','11569064KQhobr','https://dev.lovrabet.com','https://app.lovrabet.id','467096IXzydf','https://kb-service.lovrabet.com','https://kb-service.lovrabet.id','https://dev.lovrabet.id','4730QTDiKs','18983591eUsJGM','https://g.lovrabet.id','3872589QyytUO','https://skills-daily.lovrabet.com','210TUXket','global','https://api.lovrabet.com','24qCnnRe','101965oEPhaA','https://skills.lovrabet.ai','https://skills.lovrabet.com','https://daily.lovrabet.ai','https://skills-daily.lovrabet.ai','https://daily-runtime.lovrabet.ai','https://runtime.lovrabet.ai'];a332_0x447e=function(){return _0xdd760b;};return a332_0x447e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a333_0x2da521=a333_0x5038;(function(_0x3f98fb,_0x57a7d4){const _0x12f865=a333_0x5038,_0x5488ff=_0x3f98fb();while(!![]){try{const _0xd08865=-parseInt(_0x12f865(0x1aa))/0x1*(-parseInt(_0x12f865(0x1b6))/0x2)+-parseInt(_0x12f865(0x1b0))/0x3+-parseInt(_0x12f865(0x1b5))/0x4+-parseInt(_0x12f865(0x1ad))/0x5+parseInt(_0x12f865(0x1bc))/0x6*(parseInt(_0x12f865(0x1b2))/0x7)+parseInt(_0x12f865(0x1a9))/0x8*(parseInt(_0x12f865(0x1be))/0x9)+parseInt(_0x12f865(0x1ab))/0xa;if(_0xd08865===_0x57a7d4)break;else _0x5488ff['push'](_0x5488ff['shift']());}catch(_0x3902d7){_0x5488ff['push'](_0x5488ff['shift']());}}}(a333_0x34be,0x9c565));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a333_0x2da521(0x1b9);export const ENTERPRISE_ROUTING_PROTOCOL=a333_0x2da521(0x1ac);function a333_0x5038(_0x21dd94,_0x3c1fbc){_0x21dd94=_0x21dd94-0x1a9;const _0x34be0e=a333_0x34be();let _0x5038bf=_0x34be0e[_0x21dd94];return _0x5038bf;}export const ENTERPRISE_ROUTING_KIND=a333_0x2da521(0x1bd);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a333_0x2da521(0x1bb),a333_0x2da521(0x1ae),a333_0x2da521(0x1b7),'skillDomain',a333_0x2da521(0x1b3),'kbServiceDomain','appDomain',a333_0x2da521(0x1b8),a333_0x2da521(0x1b1)];function a333_0x34be(){const _0x8121c5=['a03fe188b2b34518efc5668666c0001d20354882cd7dd70afec902dffe1329c3','appDomain','userDomain','215778uKjCZd','enterprise','9PqMjzl','9643784SgUqAQ','10mNYHzM','1641310PCjLyJ','lovrabet-routing/v1','1040180BdBRAy','apiDomain','lovrabet','3329718LmQnTv','certificateDomain','21fvPMSQ','kbDomain','libraries','1198976pmohuI','156110amkuSo','runtimeDomain','localDomain'];a333_0x34be=function(){return _0x8121c5;};return a333_0x34be();}export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a333_0x2da521(0x1bb),'apiDomain',a333_0x2da521(0x1b7),'skillDomain',a333_0x2da521(0x1b3),a333_0x2da521(0x1ba)];export const ENTERPRISE_ROUTING_CDN_FIELDS=[a333_0x2da521(0x1b4),a333_0x2da521(0x1af)];export const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS=[a333_0x2da521(0x1b4),a333_0x2da521(0x1af)];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x335eb0,_0x3a9b04){var _0x534b57=a334_0x58f6,_0x3ccdb3=_0x335eb0();while(!![]){try{var _0x3b2fb2=-parseInt(_0x534b57(0x1c2))/0x1*(parseInt(_0x534b57(0x1be))/0x2)+-parseInt(_0x534b57(0x1bb))/0x3+-parseInt(_0x534b57(0x1b8))/0x4*(parseInt(_0x534b57(0x1b9))/0x5)+parseInt(_0x534b57(0x1c4))/0x6*(parseInt(_0x534b57(0x1c3))/0x7)+-parseInt(_0x534b57(0x1b7))/0x8*(-parseInt(_0x534b57(0x1bf))/0x9)+parseInt(_0x534b57(0x1b4))/0xa*(parseInt(_0x534b57(0x1bc))/0xb)+-parseInt(_0x534b57(0x1c0))/0xc*(-parseInt(_0x534b57(0x1ba))/0xd);if(_0x3b2fb2===_0x3a9b04)break;else _0x3ccdb3['push'](_0x3ccdb3['shift']());}catch(_0x216fec){_0x3ccdb3['push'](_0x3ccdb3['shift']());}}}(a334_0x14ad,0x5263a));function a334_0x58f6(_0x5ba0a4,_0x29b844){_0x5ba0a4=_0x5ba0a4-0x1b4;var _0x14ad8d=a334_0x14ad();var _0x58f6be=_0x14ad8d[_0x5ba0a4];return _0x58f6be;}import a334_0x385ade from'chalk';function a334_0x14ad(){var _0x1197fc=['14392DEEneu','4exLduO','2358420wyyabC','13pnnDPW','1214352jrnPlO','198jZVMpe','log','82wtSZeO','891hkZAfX','9567300DNbbJy','green','2153MZrEIW','1975841gXgxJI','6AlefvI','24760XIhbOC','bold','\x20--help'];a334_0x14ad=function(){return _0x1197fc;};return a334_0x14ad();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x26953b=a334_0x58f6;console[_0x26953b(0x1bd)](),console[_0x26953b(0x1bd)](a334_0x385ade[_0x26953b(0x1c1)][_0x26953b(0x1b5)]('\x20\x20'+CLI_DISPLAY_NAME)),console['log'](),console[_0x26953b(0x1bd)]('\x20\x20Use\x20'+a334_0x385ade[_0x26953b(0x1c1)][_0x26953b(0x1b5)](CLI_BIN_NAME+_0x26953b(0x1b6))+'\x20to\x20view\x20available\x20commands.'),console[_0x26953b(0x1bd)]();}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4e2576,_0x284166){const _0x1e32e4=a335_0xdfbe,_0x5d97ca=_0x4e2576();while(!![]){try{const _0x5f3e51=-parseInt(_0x1e32e4(0x70))/0x1+parseInt(_0x1e32e4(0x75))/0x2*(parseInt(_0x1e32e4(0x78))/0x3)+parseInt(_0x1e32e4(0x6e))/0x4*(parseInt(_0x1e32e4(0x6f))/0x5)+parseInt(_0x1e32e4(0x66))/0x6+parseInt(_0x1e32e4(0x73))/0x7*(parseInt(_0x1e32e4(0x74))/0x8)+-parseInt(_0x1e32e4(0x77))/0x9+-parseInt(_0x1e32e4(0x7b))/0xa;if(_0x5f3e51===_0x284166)break;else _0x5d97ca['push'](_0x5d97ca['shift']());}catch(_0x1a2494){_0x5d97ca['push'](_0x5d97ca['shift']());}}}(a335_0x3fc7,0x56a0f));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a335_0xdfbe(_0x56985d,_0x1b306d){_0x56985d=_0x56985d-0x66;const _0x3fc75a=a335_0x3fc7();let _0xdfbea4=_0x3fc75a[_0x56985d];return _0xdfbea4;}function a335_0x3fc7(){const _0x1409f5=['Installation\x20failed','\x20via\x20skills@latest','installedPath','skillVersion','FAILED','SOURCE_INVALID','[BUILTIN_SKILL_INSTALL_','88004dCmaBa','110iJDQwq','143870HuGnlT','code','changed','7fyBqTo','1375112AFupzf','26BpEYSp','log','4016448OErOUF','142269xabGBP','Repair\x20with:\x20','repairCommand','9747550XLAqKo','installed','warn','3883908WshNgH'];a335_0x3fc7=function(){return _0x1409f5;};return a335_0x3fc7();}export async function runPostinstall(_0x36b284={}){const _0x4e2adf=a335_0xdfbe,_0x451797=installBuiltinSkill(_0x36b284);if(_0x451797['ok']){const _0x241c60=_0x451797[_0x4e2adf(0x72)]?_0x4e2adf(0x7c):'already\x20current',_0x37cc0f=_0x451797['installedPath']?'\x20at\x20'+_0x451797[_0x4e2adf(0x69)]:_0x4e2adf(0x68);return console[_0x4e2adf(0x76)]('Rabetbase\x20Built-in\x20Skill\x20'+_0x451797[_0x4e2adf(0x6a)]+'\x20'+_0x241c60+_0x37cc0f),_0x451797;}const _0x3223bb=_0x4e2adf(0x6d)+(_0x451797[_0x4e2adf(0x71)]??_0x4e2adf(0x6b))+']\x20'+(_0x451797['error']??_0x4e2adf(0x67))+'.\x20'+(_0x4e2adf(0x79)+_0x451797[_0x4e2adf(0x7a)]);if(_0x451797[_0x4e2adf(0x71)]===_0x4e2adf(0x6c))throw new Error(_0x3223bb);return console[_0x4e2adf(0x7d)](_0x3223bb),_0x451797;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a336_0x351c(_0x46dcf7,_0x2ec012){_0x46dcf7=_0x46dcf7-0xe4;const _0x349cf4=a336_0x349c();let _0x351c27=_0x349cf4[_0x46dcf7];return _0x351c27;}(function(_0x46a38b,_0x22af30){const _0x52287c=a336_0x351c,_0x1183b6=_0x46a38b();while(!![]){try{const _0x5db257=-parseInt(_0x52287c(0xf5))/0x1*(-parseInt(_0x52287c(0xf6))/0x2)+parseInt(_0x52287c(0xf7))/0x3*(-parseInt(_0x52287c(0xe4))/0x4)+-parseInt(_0x52287c(0xe6))/0x5+-parseInt(_0x52287c(0xec))/0x6*(-parseInt(_0x52287c(0xf9))/0x7)+parseInt(_0x52287c(0xf2))/0x8+parseInt(_0x52287c(0xf8))/0x9*(-parseInt(_0x52287c(0xe9))/0xa)+-parseInt(_0x52287c(0xed))/0xb*(parseInt(_0x52287c(0xfa))/0xc);if(_0x5db257===_0x22af30)break;else _0x1183b6['push'](_0x1183b6['shift']());}catch(_0x3c3ca3){_0x1183b6['push'](_0x1183b6['shift']());}}}(a336_0x349c,0x32f88));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x519508,_0x495955,_0x48dc51){const _0x3dab30=a336_0x351c,_0x2bb4dd=normalizeText(_0x519508[_0x3dab30(0xee)],DESCRIPTION_MAX_LENGTH),_0x536f5c=_0x2bb4dd||normalizeText(defaultDescription(requireWriteRisk(_0x519508),_0x495955),DESCRIPTION_MAX_LENGTH);return{'operation':_0x495955,'risk':requireWriteRisk(_0x519508),'description':_0x536f5c,..._0x48dc51?{'signal':_0x48dc51}:{}};}function requireWriteRisk(_0x33680c){const _0x32f864=a336_0x351c;if(_0x33680c[_0x32f864(0xe7)]===_0x32f864(0xe5)||_0x33680c['risk']===_0x32f864(0xf3))return _0x33680c[_0x32f864(0xe7)];throw new Error(_0x32f864(0xf0));}function defaultDescription(_0x2789c7,_0x367f6b){const _0x28500d=a336_0x351c;if(_0x2789c7===_0x28500d(0xf3))return'This\x20will\x20run\x20the\x20high-risk\x20write\x20'+_0x367f6b+'.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.';return _0x28500d(0xf4)+_0x367f6b+_0x28500d(0xeb);}function normalizeText(_0x3e470f,_0x37741b){const _0x29bc1b=a336_0x351c;if(typeof _0x3e470f!==_0x29bc1b(0xf1))return'';return _0x3e470f[_0x29bc1b(0xea)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x29bc1b(0xea)](/\s+/g,'\x20')[_0x29bc1b(0xe8)]()[_0x29bc1b(0xef)](0x0,_0x37741b);}function a336_0x349c(){const _0x5002c8=['.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.','1772124SoFhaf','239998BqzwUm','confirmationDescription','slice','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','string','1138640nqcMqL','high-risk-write','This\x20will\x20run\x20the\x20write\x20','2qHHRXs','129486zmzizR','25689fLjIga','3780EsgNWH','7ESlBMn','132CIEOCh','36oLcVMn','write','126845vdjnzm','risk','trim','380WYKWFX','replace'];a336_0x349c=function(){return _0x5002c8;};return a336_0x349c();}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x11ef67,_0x4f93c4){const _0x8c9a6d=a337_0x2760,_0xebc1ef=_0x11ef67();while(!![]){try{const _0x2ce05c=-parseInt(_0x8c9a6d(0x1f1))/0x1*(-parseInt(_0x8c9a6d(0x1e3))/0x2)+parseInt(_0x8c9a6d(0x1ee))/0x3*(-parseInt(_0x8c9a6d(0x1e5))/0x4)+parseInt(_0x8c9a6d(0x1e9))/0x5+parseInt(_0x8c9a6d(0x1f6))/0x6*(parseInt(_0x8c9a6d(0x1e6))/0x7)+parseInt(_0x8c9a6d(0x1ec))/0x8+parseInt(_0x8c9a6d(0x1f4))/0x9+-parseInt(_0x8c9a6d(0x1ed))/0xa*(parseInt(_0x8c9a6d(0x1f5))/0xb);if(_0x2ce05c===_0x4f93c4)break;else _0xebc1ef['push'](_0xebc1ef['shift']());}catch(_0x178ab7){_0xebc1ef['push'](_0xebc1ef['shift']());}}}(a337_0x1007,0x47b1c));function a337_0x2760(_0x2dc306,_0x42a931){_0x2dc306=_0x2dc306-0x1e3;const _0x1007de=a337_0x1007();let _0x2760f4=_0x1007de[_0x2dc306];return _0x2760f4;}export function canonicalRabetbaseOperation(_0x525d3c){const _0x1ec4cc=a337_0x2760;return[_0x525d3c['service'],..._0x525d3c[_0x1ec4cc(0x1e4)]['trim']()['split'](/\s+/)][_0x1ec4cc(0x1e8)](Boolean)['join']('.');}function a337_0x1007(){const _0x595673=['660EoUBHn','6rgaIRY','command','63044GfymgO','29057SaKYFQ','risk','filter','2270170hHhYMe','isArray','high-risk-write','907824GNXEjW','1090jgFZKP','3mWXXzF','length','write','98501sIMrXC','data','conflicts','815283rcgagU','111089knlqcO'];a337_0x1007=function(){return _0x595673;};return a337_0x1007();}export function createRabetbaseWriteMetadata(_0x55ba54,_0x149cb1,_0x532e17,_0x1fece0){const _0x85cf10=a337_0x2760;if(_0x1fece0||_0x532e17['ok']!==!![]||hasUnresolvedConflicts(_0x532e17)||_0x55ba54[_0x85cf10(0x1e7)]!==_0x85cf10(0x1f0)&&_0x55ba54['risk']!==_0x85cf10(0x1eb))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':'rabetbase.write.completed','operation':_0x149cb1,'risk':_0x55ba54['risk']}}};}function hasUnresolvedConflicts(_0x611599){const _0x38cfaf=a337_0x2760,_0x316a6e=_0x611599[_0x38cfaf(0x1f2)];return Boolean(_0x316a6e&&typeof _0x316a6e==='object'&&!Array[_0x38cfaf(0x1ea)](_0x316a6e)&&Array['isArray'](_0x316a6e[_0x38cfaf(0x1f3)])&&_0x316a6e[_0x38cfaf(0x1f3)][_0x38cfaf(0x1ef)]>0x0);}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x17d49c,_0x3d85ca){const _0x53ca03=a338_0x4ff4,_0x539085=_0x17d49c();while(!![]){try{const _0x8b9788=-parseInt(_0x53ca03(0x12a))/0x1+parseInt(_0x53ca03(0x129))/0x2+-parseInt(_0x53ca03(0x11a))/0x3+-parseInt(_0x53ca03(0x11e))/0x4*(parseInt(_0x53ca03(0x12e))/0x5)+parseInt(_0x53ca03(0x12d))/0x6*(-parseInt(_0x53ca03(0x123))/0x7)+parseInt(_0x53ca03(0x12c))/0x8+-parseInt(_0x53ca03(0x10c))/0x9*(-parseInt(_0x53ca03(0x12b))/0xa);if(_0x8b9788===_0x3d85ca)break;else _0x539085['push'](_0x539085['shift']());}catch(_0xcf4736){_0x539085['push'](_0x539085['shift']());}}}(a338_0x5aff,0x98328));import{buildConfigFromFlags,initGlobalEnvironment,isRoutingRecoveryService}from'../context.js';import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';function a338_0x5aff(){const _0x39c619=['Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','high-risk-write','presentation','result','present','1622488KehtCy','336009LHjQnS','785770rPoYbk','6562552LUbSyx','4945590zqdHaI','156395FeLKan','261XXcDfg','command','dry-run','message','riskLevel','AbortError','reason','data','dryRun','rawFlags','isNonInteractive','confirm','yes','write','3377082IJbJEF','risk','format','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','128OhoqhK','definition','signal','Rabetbase\x20invocation\x20aborted.','execute','7PsJumx'];a338_0x5aff=function(){return _0x39c619;};return a338_0x5aff();}import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';function a338_0x4ff4(_0x1cffb1,_0x593128){_0x1cffb1=_0x1cffb1-0x10c;const _0x5affc5=a338_0x5aff();let _0x4ff4b8=_0x5affc5[_0x1cffb1];return _0x4ff4b8;}import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x3b8fac,command:_0x40413f,risk:_0x3186c5,dryRun:_0x34270b}){const _0x2a588e=a338_0x4ff4;return JSON['stringify']({'ok':_0x3b8fac['ok'],'command':_0x40413f,'risk':_0x3186c5,..._0x34270b?{'dryRun':!![]}:{},..._0x3b8fac[_0x2a588e(0x113)]!==undefined?{'data':_0x3b8fac[_0x2a588e(0x113)]}:{},..._0x3b8fac[_0x2a588e(0x10f)]?{'message':_0x3b8fac[_0x2a588e(0x10f)]}:{}});}};export async function invokeRabetbase(_0x1e9dbc,_0x3a9421){const _0x449780=a338_0x4ff4;throwIfAborted(_0x3a9421[_0x449780(0x120)]);const _0x3c6515=await resolveRabetbaseInvocation(_0x1e9dbc),_0x486873=canonicalRabetbaseOperation(_0x3c6515['definition']);return await confirmWriteBeforeQueue(_0x3c6515['definition'],_0x3c6515['rawFlags'],_0x486873,_0x3a9421),runSerialized(async()=>{const _0x22c3ff=_0x449780,_0x47e4d4={};try{throwIfAborted(_0x3a9421[_0x22c3ff(0x120)]);const _0xd4d44e=buildConfigFromFlags(_0x3c6515[_0x22c3ff(0x115)]);!isRoutingRecoveryService(_0x3c6515[_0x22c3ff(0x11f)]['service'])&&await initGlobalEnvironment(_0xd4d44e);const _0x4ad607=createPipelineEnv(_0xd4d44e,{..._0x3c6515['rawFlags'],'yes':_0x3c6515[_0x22c3ff(0x11f)][_0x22c3ff(0x11b)]===_0x22c3ff(0x125)?!![]:_0x3c6515[_0x22c3ff(0x115)][_0x22c3ff(0x118)],'nonInteractive':!![]},_0x3c6515['args']);_0x4ad607[_0x22c3ff(0x116)]=!![],_0x4ad607[_0x22c3ff(0x110)]=_0x22c3ff(0x125);const _0x324ce6=withAbortSignal(_0x3c6515[_0x22c3ff(0x11f)],_0x3a9421[_0x22c3ff(0x120)]),_0x153286=createRabetbaseRunnerAdapter({'formatOutput'(_0x3812f3,_0x50ef7e){const _0x59116c=_0x22c3ff;_0x47e4d4[_0x59116c(0x127)]=_0x3812f3,_0x47e4d4[_0x59116c(0x10d)]=_0x50ef7e[_0x59116c(0x10d)],_0x47e4d4[_0x59116c(0x11b)]=_0x50ef7e[_0x59116c(0x11b)],_0x47e4d4['format']=_0x50ef7e[_0x59116c(0x11c)],_0x47e4d4[_0x59116c(0x114)]=_0x50ef7e[_0x59116c(0x114)]===!![];},async 'confirmHighRisk'(){const _0x31c045=_0x22c3ff;throw new Error(_0x31c045(0x11d));}});await runCommand(_0x324ce6,_0x4ad607,_0x153286);if(!_0x47e4d4['result']||!_0x47e4d4[_0x22c3ff(0x10d)]||!_0x47e4d4[_0x22c3ff(0x11b)]||!_0x47e4d4[_0x22c3ff(0x11c)])throw new Error(_0x22c3ff(0x124));const _0x17e0c4=_0x47e4d4[_0x22c3ff(0x114)]===!![],_0x21b466=_0x3a9421[_0x22c3ff(0x126)]??defaultPresentation,_0x446776={'result':_0x47e4d4[_0x22c3ff(0x127)],'command':_0x47e4d4[_0x22c3ff(0x10d)],'operation':_0x486873,'risk':_0x47e4d4[_0x22c3ff(0x11b)],'format':_0x47e4d4[_0x22c3ff(0x11c)],'dryRun':_0x17e0c4},_0x3f0564=createRabetbaseWriteMetadata(_0x3c6515[_0x22c3ff(0x11f)],_0x486873,_0x47e4d4[_0x22c3ff(0x127)],_0x17e0c4);let _0x5bed1b;try{_0x5bed1b=await _0x21b466['present'](_0x446776);}catch(_0x3fe2d5){if(!_0x3f0564||_0x21b466===defaultPresentation)throw _0x3fe2d5;_0x5bed1b=await defaultPresentation[_0x22c3ff(0x128)](_0x446776);}return{'operation':_0x486873,'risk':_0x47e4d4[_0x22c3ff(0x11b)],'mode':_0x17e0c4?_0x22c3ff(0x10e):'execute','result':_0x47e4d4['result'],'output':_0x5bed1b,..._0x3f0564?{'metadata':_0x3f0564}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x4b0d14,_0xee702f,_0x4e8a1d,_0x22d63c){const _0x581f22=a338_0x4ff4;if(_0xee702f[_0x581f22(0x114)]===!![]||_0x4b0d14[_0x581f22(0x11b)]!==_0x581f22(0x119)&&_0x4b0d14[_0x581f22(0x11b)]!==_0x581f22(0x125))return;await _0x22d63c['confirmation'][_0x581f22(0x117)](buildRabetbaseConfirmationRequest(_0x4b0d14,_0x4e8a1d,_0x22d63c[_0x581f22(0x120)]));}function withAbortSignal(_0x5d2ad0,_0x3dda09){return{..._0x5d2ad0,async 'execute'(_0x4b1ac9){const _0x3c6fd8=a338_0x4ff4;return throwIfAborted(_0x3dda09),_0x5d2ad0[_0x3c6fd8(0x122)]({..._0x4b1ac9,'signal':_0x3dda09});}};}function throwIfAborted(_0x169f15){const _0xfe3fc2=a338_0x4ff4;if(_0x169f15?.['aborted'])throw _0x169f15[_0xfe3fc2(0x112)]instanceof Error?_0x169f15[_0xfe3fc2(0x112)]:new DOMException(_0xfe3fc2(0x121),_0xfe3fc2(0x111));}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3d74e3,_0x418950){const _0x7d574d=a339_0x1a90,_0x534a10=_0x3d74e3();while(!![]){try{const _0x1c432f=-parseInt(_0x7d574d(0xa3))/0x1*(-parseInt(_0x7d574d(0xaa))/0x2)+-parseInt(_0x7d574d(0xa5))/0x3*(-parseInt(_0x7d574d(0xad))/0x4)+parseInt(_0x7d574d(0xa4))/0x5*(-parseInt(_0x7d574d(0xa2))/0x6)+parseInt(_0x7d574d(0xae))/0x7*(-parseInt(_0x7d574d(0xa7))/0x8)+-parseInt(_0x7d574d(0xab))/0x9*(parseInt(_0x7d574d(0xa6))/0xa)+parseInt(_0x7d574d(0xac))/0xb*(parseInt(_0x7d574d(0xa8))/0xc)+parseInt(_0x7d574d(0xa9))/0xd*(parseInt(_0x7d574d(0xa1))/0xe);if(_0x1c432f===_0x418950)break;else _0x534a10['push'](_0x534a10['shift']());}catch(_0x4cca85){_0x534a10['push'](_0x534a10['shift']());}}}(a339_0x5c87,0xeab26));function a339_0x5c87(){const _0x1a8405=['12CROepE','7668167KyCHLG','2QxrHGF','909fuRYGP','12164086XxsiXY','88kboTHJ','147oeLhhE','28ENfIGL','66tzUAAJ','1272263EHiscj','477065voZpxv','13359kdCKcJ','570HZfBVB','624440RWfpuc'];a339_0x5c87=function(){return _0x1a8405;};return a339_0x5c87();}let tail=Promise['resolve']();function a339_0x1a90(_0xd7a6f1,_0x49d0b4){_0xd7a6f1=_0xd7a6f1-0xa1;const _0x5c87d5=a339_0x5c87();let _0x1a90de=_0x5c87d5[_0xd7a6f1];return _0x1a90de;}export async function runSerialized(_0x550325){const _0x4daa6a=tail;let _0x17c2d1;tail=new Promise(_0x1c8677=>{_0x17c2d1=_0x1c8677;}),await _0x4daa6a['catch'](()=>undefined);try{return await _0x550325();}finally{_0x17c2d1();}}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4d0e75,_0x133547){const _0x35c2fe=a340_0x27c2,_0x5de7ad=_0x4d0e75();while(!![]){try{const _0x830c54=parseInt(_0x35c2fe(0x6f))/0x1*(-parseInt(_0x35c2fe(0x69))/0x2)+parseInt(_0x35c2fe(0x65))/0x3*(-parseInt(_0x35c2fe(0x76))/0x4)+parseInt(_0x35c2fe(0x78))/0x5+parseInt(_0x35c2fe(0x72))/0x6*(parseInt(_0x35c2fe(0x6e))/0x7)+parseInt(_0x35c2fe(0x75))/0x8*(parseInt(_0x35c2fe(0x73))/0x9)+-parseInt(_0x35c2fe(0x68))/0xa*(parseInt(_0x35c2fe(0x79))/0xb)+-parseInt(_0x35c2fe(0x74))/0xc*(-parseInt(_0x35c2fe(0x6c))/0xd);if(_0x830c54===_0x133547)break;else _0x5de7ad['push'](_0x5de7ad['shift']());}catch(_0x5ab2c2){_0x5de7ad['push'](_0x5de7ad['shift']());}}}(a340_0x4459,0x35ec5));import a340_0x1aea8b from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a340_0x4459(){const _0x4feed9=['9400azJPEM','116378XwBTLr','validation','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','13vqHqmi','defaultCommand','3049949lURHst','2OBSJJY','unknownCommand','input','6LIhfHf','270duzoJE','791736SsMgmh','41512bFnJMG','40DnYXYY','hint','1544910lDWpBG','5071gppjrO','join','slice','run','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','58725iLxNAt','message','wildcardDef'];a340_0x4459=function(){return _0x4feed9;};return a340_0x4459();}function a340_0x27c2(_0x588d7a,_0x248f66){_0x588d7a=_0x588d7a-0x64;const _0x445982=a340_0x4459();let _0x27c2c6=_0x445982[_0x588d7a];return _0x27c2c6;}import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';import{assertSupportedCommandFlags}from'../framework/supported-flags.js';export async function resolveRabetbaseInvocation(_0x422db2){const _0x352290=a340_0x27c2,_0x41a3e2=a340_0x1aea8b('',{'importMeta':import.meta,'argv':[..._0x422db2],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x4ec695=[..._0x41a3e2[_0x352290(0x71)]],_0x4097b8=_0x41a3e2['flags'],_0x346df6=_0x4ec695[0x0];if(!_0x346df6)throw CliErrors[_0x352290(0x6a)]('Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.');const _0x11e07d=resolveRemovedCommand(_0x346df6,_0x4ec695[0x1]);if(_0x11e07d)throw CliErrors[_0x352290(0x6a)](_0x11e07d[_0x352290(0x66)],_0x11e07d[_0x352290(0x77)]);if(_0x346df6===_0x352290(0x7c))throw CliErrors[_0x352290(0x6a)]('`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.',_0x352290(0x64));if(!isKnownService(_0x346df6))throw CliErrors[_0x352290(0x70)](_0x4ec695[_0x352290(0x7a)]('\x20'));const _0xcf71=getServiceEntry(_0x346df6),_0x1c228b=_0x4ec695[0x1],_0x229637=_0x1c228b||_0xcf71[_0x352290(0x6d)];if(!_0x229637){if(_0xcf71[_0x352290(0x67)])return{'definition':_0xcf71[_0x352290(0x67)],'rawFlags':_0x4097b8,'args':[]};throw CliErrors[_0x352290(0x6a)](_0x352290(0x6b)+_0x346df6+'\x22.');}const _0xc8bde4=findDefinition(_0x346df6,_0x229637);if(_0xc8bde4)return assertSupportedCommandFlags(_0xc8bde4,_0x4097b8),{'definition':_0xc8bde4,'rawFlags':_0x4097b8,'args':_0x4ec695[_0x352290(0x7b)](0x2)};if(_0xcf71[_0x352290(0x67)])return{'definition':_0xcf71[_0x352290(0x67)],'rawFlags':_0x4097b8,'args':[_0x229637,..._0x4ec695[_0x352290(0x7b)](0x2)]};throw CliErrors[_0x352290(0x70)](_0x346df6+'\x20'+_0x229637);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x447526,_0x5ab58a){const _0x5a3cd8=a342_0x4cf7,_0x22ecf7=_0x447526();while(!![]){try{const _0x795795=parseInt(_0x5a3cd8(0x196))/0x1+parseInt(_0x5a3cd8(0x191))/0x2+-parseInt(_0x5a3cd8(0x183))/0x3+parseInt(_0x5a3cd8(0x18a))/0x4+parseInt(_0x5a3cd8(0x18e))/0x5*(-parseInt(_0x5a3cd8(0x189))/0x6)+-parseInt(_0x5a3cd8(0x181))/0x7*(parseInt(_0x5a3cd8(0x190))/0x8)+parseInt(_0x5a3cd8(0x186))/0x9;if(_0x795795===_0x5ab58a)break;else _0x22ecf7['push'](_0x22ecf7['shift']());}catch(_0x4e2fbd){_0x22ecf7['push'](_0x22ecf7['shift']());}}}(a342_0x3bb8,0xf16dc));import{randomUUID}from'node:crypto';import{dirname}from'node:path';import{mkdir,open,link,unlink,rename,lstat,readFile}from'node:fs/promises';function a342_0x3bb8(){const _0x3e1464=['.tmp','identityKey','ENOENT','inputHash','237486ZHUTUU','string','utf8','test','code','Invalid\x20checkpoint;\x20reconcile\x20its\x20original\x20operation\x20before\x20submitting\x20again.','close','EEXIST','3605259AGmJKa','isFile','1741293YWmKkj','size','Checkpoint\x20must\x20be\x20a\x20regular\x20JSON\x20file.','22526874EUKSCB','parse','kind','33078FDckSr','1594040MbRmys','clientOperationId','stringify','sync','1100GVSBaX','writeFile','16xOIdjZ','1346550NvJwqr'];a342_0x3bb8=function(){return _0x3e1464;};return a342_0x3bb8();}import{isObject,requireValue}from'./contract.js';function a342_0x4cf7(_0x378ef0,_0x3e6f0e){_0x378ef0=_0x378ef0-0x17d;const _0x3bb85e=a342_0x3bb8();let _0x4cf7d7=_0x3bb85e[_0x378ef0];return _0x4cf7d7;}export async function readCheckpoint(_0x40795d){const _0x3e4e0c=a342_0x4cf7;try{const _0x2d0e48=await lstat(_0x40795d);requireValue(_0x2d0e48[_0x3e4e0c(0x182)]()&&!_0x2d0e48['isSymbolicLink']()&&_0x2d0e48[_0x3e4e0c(0x184)]<=0x3d0900,_0x3e4e0c(0x185));const _0x3ec792=JSON[_0x3e4e0c(0x187)](await readFile(_0x40795d,_0x3e4e0c(0x198)));return requireValue(isObject(_0x3ec792)&&_0x3ec792[_0x3e4e0c(0x188)]==='dataset-design-operation'&&_0x3ec792['schemaVersion']===0x1&&typeof _0x3ec792[_0x3e4e0c(0x18b)]===_0x3e4e0c(0x197)&&/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/['test'](_0x3ec792['clientOperationId'])&&typeof _0x3ec792[_0x3e4e0c(0x195)]===_0x3e4e0c(0x197)&&/^[a-f0-9]{64}$/[_0x3e4e0c(0x199)](_0x3ec792['inputHash'])&&typeof _0x3ec792['identityKey']===_0x3e4e0c(0x197)&&_0x3ec792[_0x3e4e0c(0x193)]['length']>0x0&&isObject(_0x3ec792['manifest']),_0x3e4e0c(0x17e)),_0x3ec792;}catch(_0x5c7619){if(_0x5c7619['code']===_0x3e4e0c(0x194))return undefined;throw _0x5c7619;}}export async function saveCheckpoint(_0x15a93d,_0x502af3,_0x27f1a5=![]){const _0x1ec573=a342_0x4cf7;await mkdir(dirname(_0x15a93d),{'recursive':!![]});const _0x2dca31=_0x15a93d+'.'+randomUUID()+_0x1ec573(0x192),_0x5cabad=await open(_0x2dca31,'wx',0x180);try{await _0x5cabad[_0x1ec573(0x18f)](JSON[_0x1ec573(0x18c)](_0x502af3,null,0x2)+'\x0a'),await _0x5cabad[_0x1ec573(0x18d)]();}finally{await _0x5cabad[_0x1ec573(0x17f)]();}try{if(_0x27f1a5)await link(_0x2dca31,_0x15a93d);else await rename(_0x2dca31,_0x15a93d);return!![];}catch(_0x3c74a5){if(_0x27f1a5&&_0x3c74a5['code']===_0x1ec573(0x180))return![];throw _0x3c74a5;}finally{await unlink(_0x2dca31)['catch'](_0x5b33fc=>{const _0x203d06=_0x1ec573;if(_0x5b33fc[_0x203d06(0x17d)]!==_0x203d06(0x194))throw _0x5b33fc;});}}
|