@lovrabet/rabetbase-cli 2.5.10-beta.4 → 2.5.10-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +4 -4
- package/skills/rabetbase/SKILL.md +1 -1
- 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/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5efa5e,_0x46bcce){const _0x91b369=a324_0x4fb1,_0x357bf2=_0x5efa5e();while(!![]){try{const _0x2103cf=parseInt(_0x91b369(0x16d))/0x1*(parseInt(_0x91b369(0x16b))/0x2)+parseInt(_0x91b369(0x176))/0x3*(parseInt(_0x91b369(0x16f))/0x4)+-parseInt(_0x91b369(0x182))/0x5*(-parseInt(_0x91b369(0x17c))/0x6)+-parseInt(_0x91b369(0x181))/0x7+parseInt(_0x91b369(0x16a))/0x8+-parseInt(_0x91b369(0x172))/0x9+-parseInt(_0x91b369(0x16e))/0xa*(parseInt(_0x91b369(0x167))/0xb);if(_0x2103cf===_0x46bcce)break;else _0x357bf2['push'](_0x357bf2['shift']());}catch(_0x1aa59f){_0x357bf2['push'](_0x357bf2['shift']());}}}(a324_0x2b8f,0xed4bc));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';function a324_0x4fb1(_0x328f6b,_0x16cb71){_0x328f6b=_0x328f6b-0x166;const _0x2b8fe9=a324_0x2b8f();let _0x4fb1f2=_0x2b8fe9[_0x328f6b];return _0x4fb1f2;}import{applyJqFilter}from'../utils/apply-jq-filter.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x4f4d69,_0xc665eb){const _0xd43ded=a324_0x4fb1,_0x125c9e=_0x4f4d69[_0xd43ded(0x170)],{_notice:_0x37d24c,..._0x20cc05}=_0x4f4d69;void _0x37d24c,baseFormatOutput(_0x20cc05,_0xc665eb),_0xc665eb[_0xd43ded(0x183)]===_0xd43ded(0x17d)&&printPrettyNotice(_0x125c9e);}function a324_0x2b8f(){const _0x1aaca9=['347193fIJhAO','stdout','code','1487840UIZnWU','131102lLLCDJ','trim','22AmeHXE','260uJRhel','4jiGJFL','_notice','endsWith','7456203kQrgWm','write','url','jqFilter','2147181KMyDtc','stringify','json','risk','hint','message','2000382OGTvPV','pretty','validation','command','update','9728215wJxtRK','25FuMOqL','format','error'];a324_0x2b8f=function(){return _0x1aaca9;};return a324_0x2b8f();}export function formatCliError(_0x5de44f,_0xf820f5){const _0x4654e8=a324_0x4fb1;if(_0xf820f5['format']===_0x4654e8(0x17d))return![];const _0x2d2c5b=_0x5de44f['data'],_0x889ae9={'ok':![],'command':_0xf820f5[_0x4654e8(0x17f)],'risk':_0xf820f5[_0x4654e8(0x179)],'data':_0x2d2c5b??null,'error':{'code':_0x5de44f[_0x4654e8(0x169)],'message':_0x5de44f['message'],..._0x5de44f[_0x4654e8(0x17a)]?{'hint':_0x5de44f[_0x4654e8(0x17a)]}:{}}},_0x12a9e6=_0xf820f5[_0x4654e8(0x183)]===_0x4654e8(0x178)?JSON[_0x4654e8(0x177)](_0x889ae9,null,0x2):JSON[_0x4654e8(0x177)](_0x889ae9);let _0x31844c=_0x12a9e6;if(_0xf820f5['jqFilter']?.[_0x4654e8(0x16c)]())try{_0x31844c=applyJqFilter(_0x12a9e6,_0xf820f5[_0x4654e8(0x175)]);}catch(_0x16cd3e){const _0x277b10=_0x16cd3e instanceof CliError?_0x16cd3e:CliErrors[_0x4654e8(0x17e)]('jq:\x20'+(_0x16cd3e instanceof Error?_0x16cd3e[_0x4654e8(0x17b)]:String(_0x16cd3e))),_0x3496e0={..._0x889ae9,'error':{'code':_0x277b10[_0x4654e8(0x169)],'message':_0x277b10[_0x4654e8(0x17b)],..._0x277b10['hint']?{'hint':_0x277b10[_0x4654e8(0x17a)]}:{},'cause':_0x889ae9[_0x4654e8(0x166)]}};_0x31844c=_0xf820f5['format']===_0x4654e8(0x178)?JSON[_0x4654e8(0x177)](_0x3496e0,null,0x2):JSON[_0x4654e8(0x177)](_0x3496e0);}return process[_0x4654e8(0x168)][_0x4654e8(0x173)](_0x31844c[_0x4654e8(0x171)]('\x0a')?_0x31844c:_0x31844c+'\x0a'),!![];}function printPrettyNotice(_0x467561){const _0x470f0a=a324_0x4fb1;if(!_0x467561?.[_0x470f0a(0x180)])return;console['error'](_0x467561[_0x470f0a(0x180)][_0x470f0a(0x17b)]+'\x20('+_0x467561[_0x470f0a(0x180)][_0x470f0a(0x174)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5cc263,_0x4aab29){var _0x18c015=a325_0xedbf,_0x6ff393=_0x5cc263();while(!![]){try{var _0x3bb41a=parseInt(_0x18c015(0x1db))/0x1*(parseInt(_0x18c015(0x1e5))/0x2)+parseInt(_0x18c015(0x1dd))/0x3+parseInt(_0x18c015(0x1dc))/0x4*(parseInt(_0x18c015(0x1de))/0x5)+parseInt(_0x18c015(0x1e2))/0x6*(parseInt(_0x18c015(0x1e0))/0x7)+parseInt(_0x18c015(0x1df))/0x8+-parseInt(_0x18c015(0x1e3))/0x9+parseInt(_0x18c015(0x1e1))/0xa*(-parseInt(_0x18c015(0x1e4))/0xb);if(_0x3bb41a===_0x4aab29)break;else _0x6ff393['push'](_0x6ff393['shift']());}catch(_0x25b168){_0x6ff393['push'](_0x6ff393['shift']());}}}(a325_0x197e,0xeb93f));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a325_0xedbf(_0x44708f,_0x4f7bd0){_0x44708f=_0x44708f-0x1db;var _0x197e5e=a325_0x197e();var _0xedbfc5=_0x197e5e[_0x44708f];return _0xedbfc5;}function a325_0x197e(){var _0x2f9bfd=['62InuLrx','50366XOdffu','316wKsrwj','4298985LQLCup','49465qaLJkP','10491944JdYsAq','2597NobqbG','49068030AULMMK','20022zgbJVr','4083102YazBPZ','11kXHsxn'];a325_0x197e=function(){return _0x2f9bfd;};return a325_0x197e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2bd9d1,_0x48fe95){const _0x17c8ea=a326_0x513e,_0xbcfb54=_0x2bd9d1();while(!![]){try{const _0x3a8d39=-parseInt(_0x17c8ea(0x165))/0x1+-parseInt(_0x17c8ea(0x154))/0x2+-parseInt(_0x17c8ea(0x169))/0x3+parseInt(_0x17c8ea(0x164))/0x4*(parseInt(_0x17c8ea(0x162))/0x5)+-parseInt(_0x17c8ea(0x168))/0x6*(-parseInt(_0x17c8ea(0x15c))/0x7)+parseInt(_0x17c8ea(0x152))/0x8*(parseInt(_0x17c8ea(0x163))/0x9)+parseInt(_0x17c8ea(0x15f))/0xa*(parseInt(_0x17c8ea(0x153))/0xb);if(_0x3a8d39===_0x48fe95)break;else _0xbcfb54['push'](_0xbcfb54['shift']());}catch(_0x3052db){_0xbcfb54['push'](_0xbcfb54['shift']());}}}(a326_0x3a06,0x29b33));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{resolveApiModelSource}from'../api/model-source.js';function a326_0x513e(_0x2f2e56,_0x12038f){_0x2f2e56=_0x2f2e56-0x151;const _0x3a0670=a326_0x3a06();let _0x513ef2=_0x3a0670[_0x2f2e56];return _0x513ef2;}function a326_0x3a06(){const _0x5354af=['.\x20Run\x20`','join','string','82852wsqzhS','name','filePath','736430UNadZz','\x20api\x20pull`\x20first.','Unknown\x20alias\x20\x22','10RGabxl','585nNzcZm','379480wdBjjA','117503jkqXIT','some','profileName','102Xryhty','252957dSNtqz','code','map','validation','type','Available\x20aliases:\x20','flags','7576jzuOgN','11wrUMKU','307050AzaFyu','length','No\x20model\x20aliases\x20found\x20in\x20','`\x20requires\x20either\x20--code\x20or\x20--alias.','alias'];a326_0x3a06=function(){return _0x5354af;};return a326_0x3a06();}export function resolveAliasToCode(_0x26149b,_0x53f9c0,_0x42e491,_0x196438,_0x2bb24f,_0x30067f){const _0x2ab785=a326_0x513e,_0x7fcd7c=_0x26149b[_0x2ab785(0x151)][_0x2ab785(0x166)](_0x15b07b=>_0x15b07b[_0x2ab785(0x15d)]===_0x2ab785(0x16a)&&_0x15b07b[_0x2ab785(0x16d)]===_0x2ab785(0x15b)),_0x3ce457=_0x26149b[_0x2ab785(0x151)]['some'](_0x5c2aef=>_0x5c2aef[_0x2ab785(0x15d)]==='alias'&&_0x5c2aef['type']===_0x2ab785(0x15b));if(!_0x7fcd7c||!_0x3ce457)return;const _0x52a4b7=_0x53f9c0[_0x2ab785(0x16a)]?String(_0x53f9c0[_0x2ab785(0x16a)]):'',_0x33410e=_0x53f9c0[_0x2ab785(0x158)]?String(_0x53f9c0[_0x2ab785(0x158)]):'';if(!_0x52a4b7&&!_0x33410e)throw CliErrors['validation']('`'+_0x196438+_0x2ab785(0x157));if(_0x33410e&&!_0x52a4b7){const _0x573127=resolveApiModelSource(_0x42e491,_0x2bb24f,_0x30067f),_0x5008fc=resolveAlias(_0x42e491,_0x33410e,undefined,_0x573127[_0x2ab785(0x15e)],_0x573127['profileName']);if(!_0x5008fc){const _0xd6bd88=listAliases(_0x42e491,undefined,_0x573127['filePath'],_0x573127[_0x2ab785(0x167)])[_0x2ab785(0x16b)](_0x21206a=>_0x21206a[_0x2ab785(0x158)]),_0x54b715=_0xd6bd88[_0x2ab785(0x155)]?_0x2ab785(0x16e)+_0xd6bd88[_0x2ab785(0x15a)](',\x20'):_0x2ab785(0x156)+_0x42e491+_0x2ab785(0x159)+CLI_BIN_NAME+_0x2ab785(0x160);throw CliErrors[_0x2ab785(0x16c)](_0x2ab785(0x161)+_0x33410e+'\x22.\x20'+_0x54b715);}_0x53f9c0['code']=_0x5008fc;}}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x4dbe54,_0x2c0d99){const _0x1543ca=a327_0x4b86,_0x276003=_0x4dbe54();while(!![]){try{const _0x6699aa=-parseInt(_0x1543ca(0x1fa))/0x1*(-parseInt(_0x1543ca(0x1dd))/0x2)+-parseInt(_0x1543ca(0x229))/0x3+-parseInt(_0x1543ca(0x21d))/0x4+-parseInt(_0x1543ca(0x1cf))/0x5+parseInt(_0x1543ca(0x206))/0x6*(parseInt(_0x1543ca(0x1f9))/0x7)+parseInt(_0x1543ca(0x1f1))/0x8+-parseInt(_0x1543ca(0x1dc))/0x9*(parseInt(_0x1543ca(0x211))/0xa);if(_0x6699aa===_0x2c0d99)break;else _0x276003['push'](_0x276003['shift']());}catch(_0x2ea5f6){_0x276003['push'](_0x276003['shift']());}}}(a327_0x128d,0x6a9fb));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';function a327_0x128d(){const _0x225299=['Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','App\x20\x22','appCode','pageSize','defaultPageSize','required','10JDNDRN','LOVRABET_APPCODE','cookie','apps','doctor','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','keys','resolveAppCode','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','resolve','Available:\x20','AppCode\x20\x22','542288HiNVow','trim','currentApp','../constant/domain.js','pretty','validation','execute','risk','meowKey','confirmHighRisk','verbose','explicitAppName','451899NjDNwT','entries','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','configMissing','rejectedFlags','includes','742550AbyqNV','authRequired','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','cancelled','name','_notice','object','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','replace','Current\x20resolved\x20appcode\x20is\x20\x22','message','apiDir','appcode','4719564VTUUQY','1197706FYDbbz','string','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','join','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','defaultVerbose','Edit\x20the\x20config\x20file\x20manually','some','find','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','selectedAppName','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','schema','rawFlags','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','isNonInteractive','map','hasFormat','788496Mvkqtk','length','update','⚠\x20\x20High-risk\x20operation:\x20','defaultApp','requiresAppCode','../constant/env.js','formatOutput','1629663OfcilU','1EbihgG','none','value','\x0a\x20\x20','hint','has','riskLevel','toUpperCase','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','service','mergedCli','format','18wJDEbo','RABETBASE_APPCODE','resolveApiDomain','catch'];a327_0x128d=function(){return _0x225299;};return a327_0x128d();}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_0x5ef9d0}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x32fbce){const _0x29f3d3=a327_0x4b86;return typeof _0x32fbce===_0x29f3d3(0x1de)&&_0x32fbce[_0x29f3d3(0x21e)]()?_0x32fbce[_0x29f3d3(0x21e)]():undefined;}function resolveEnvAppCode(){const _0x17971c=a327_0x4b86,_0x4ced9c=stringFlag(process.env.RABETBASE_APPCODE);if(_0x4ced9c)return{'name':_0x17971c(0x207),'value':_0x4ced9c};const _0x5237c4=stringFlag(process.env.LOVRABET_APPCODE);if(_0x5237c4)return{'name':_0x17971c(0x212),'value':_0x5237c4};return undefined;}function hasExplicitAppCode(_0xe0e931,_0x3c786c){const _0x52e5a5=a327_0x4b86;return!!(stringFlag(_0xe0e931[_0x52e5a5(0x1db)])||stringFlag(_0x3c786c[_0x52e5a5(0x1db)]));}function assertEnvAppCodeNotIgnored(_0x246295,_0x2aea4b,_0xb26cfe){const _0x39c4e3=a327_0x4b86;if(!_0x2aea4b||_0xb26cfe||_0x246295===_0x2aea4b[_0x39c4e3(0x1fc)])return;const _0x8ca89c=_0x246295?_0x39c4e3(0x1d8)+_0x246295+'\x22.':_0x39c4e3(0x202);throw CliErrors[_0x39c4e3(0x222)](_0x2aea4b[_0x39c4e3(0x1d3)]+'='+_0x2aea4b[_0x39c4e3(0x1fc)]+_0x39c4e3(0x1d6)+_0x8ca89c+'\x20'+(_0x39c4e3(0x1ed)+_0x2aea4b[_0x39c4e3(0x1d3)]+'\x22.'));}export function createPipelineEnv(_0x2e1cc1,_0x1c41c8,_0x590879=[]){const _0x27dbc4=a327_0x4b86;return{'rawFlags':_0x1c41c8,'args':_0x590879,'resolveAppCode':()=>_0x2e1cc1[_0x27dbc4(0x20d)],'resolveCookie':()=>_0x2e1cc1[_0x27dbc4(0x213)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a327_0x5ef9d0(_0x1c41c8),'defaultFormat':_0x2e1cc1['format'],'defaultPageSize':_0x2e1cc1[_0x27dbc4(0x20e)],'defaultVerbose':_0x2e1cc1[_0x27dbc4(0x227)],'apiDir':_0x2e1cc1[_0x27dbc4(0x1da)],'riskLevel':_0x2e1cc1[_0x27dbc4(0x200)],'selectedAppName':_0x2e1cc1[_0x27dbc4(0x228)],'mergedCli':{'defaultApp':_0x2e1cc1[_0x27dbc4(0x1f5)],'currentApp':_0x2e1cc1[_0x27dbc4(0x21f)],'appCode':_0x2e1cc1['appCode'],'apps':_0x2e1cc1['apps']}};}export function createRabetbaseRunnerAdapter(_0x545d14={}){const _0x193a1e=a327_0x4b86;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x32a83d=>PIPELINE_FLAG_NAMES[_0x193a1e(0x1ff)](_0x32a83d[_0x193a1e(0x1d3)]))['map'](({name:_0x2da48e,type:_0x1bcd93,description:_0x4fea85})=>({'name':_0x2da48e,'type':_0x1bcd93,'description':_0x4fea85})),'formatOutput':_0x545d14[_0x193a1e(0x1f8)]??formatOutput,'getCommandLabel'(_0x21e22e){const _0x2a6436=_0x193a1e;return CLI_BIN_NAME+'\x20'+_0x21e22e[_0x2a6436(0x203)]+'\x20'+_0x21e22e['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x283a1f,{def:_0x3e5dab}){const _0x55bd50=_0x193a1e,_0x43f86d=_0x283a1f[_0x55bd50(0x22e)](_0x55bd50(0x1e3))?_0x55bd50(0x20b):_0x55bd50(0x1e9)+_0x3e5dab[_0x55bd50(0x224)]+_0x55bd50(0x1e8)+_0x55bd50(0x20b);return CliErrors[_0x55bd50(0x222)](_0x283a1f+_0x55bd50(0x1fd)+_0x43f86d);}},async 'prepare'(_0xecb258,_0x2e76fe,_0x264d82,_0x339a48){const _0x42858f=_0x193a1e,_0x54fc9b=_0x2e76fe['apiDir']||DEFAULT_API_DIR,_0x3a5029=hasExplicitAppCode(_0x264d82,_0x2e76fe[_0x42858f(0x1ec)]),_0x46f458=stringFlag(_0x264d82['appcode'])||stringFlag(_0x2e76fe[_0x42858f(0x1ec)]['appcode']),_0x29712d=_0x2e76fe[_0x42858f(0x204)]?.[_0x42858f(0x214)]??{},_0xd9f3a1=_0x2e76fe[_0x42858f(0x1e7)]||_0x2e76fe['mergedCli']?.[_0x42858f(0x21f)]||_0x2e76fe[_0x42858f(0x204)]?.['defaultApp'],_0x176be4=_0x46f458?Object[_0x42858f(0x22a)](_0x29712d)['filter'](([,_0x2a844f])=>_0x2a844f[_0x42858f(0x1db)]===_0x46f458)[_0x42858f(0x1ef)](([_0x2c8adb])=>_0x2c8adb):[];if(_0x176be4[_0x42858f(0x1f2)]>0x1&&!_0x2e76fe[_0x42858f(0x1e7)])throw CliErrors[_0x42858f(0x222)](_0x42858f(0x21c)+_0x46f458+'\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20'+_0x176be4[_0x42858f(0x1e0)](',\x20')+'.',_0x42858f(0x219));resolveAliasToCode(_0xecb258,_0x264d82,_0x54fc9b,_0x339a48,_0x2e76fe[_0x42858f(0x218)](),_0xd9f3a1);const _0x35bd2a=resolveCommandAuthMode(_0xecb258);let _0x3fedc6='';if(_0x35bd2a!==_0x42858f(0x1fb)){_0x3fedc6=_0x2e76fe['resolveCookie']()||'';if(!_0x3fedc6){if(_0x35bd2a===_0x42858f(0x210))throw CliErrors[_0x42858f(0x1d0)]();}else{const {setActiveCookie:_0x48c434}=await import('../core/api-client.js');_0x48c434(_0x3fedc6);}}const _0x551667=_0x2e76fe[_0x42858f(0x218)]()??'';if(_0xecb258[_0x42858f(0x1f6)]!==![]){if(!_0x3a5029&&_0xd9f3a1&&!_0x29712d[_0xd9f3a1]){const _0x1fa0a2=Object[_0x42858f(0x217)](_0x29712d);throw CliErrors[_0x42858f(0x222)](_0x42858f(0x20c)+_0xd9f3a1+_0x42858f(0x1ea),_0x1fa0a2['length']>0x0?_0x42858f(0x21b)+_0x1fa0a2[_0x42858f(0x1e0)](',\x20')+_0x42858f(0x1df)+CLI_BIN_NAME+'\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.':_0x42858f(0x20a)+CLI_BIN_NAME+_0x42858f(0x1e1));}assertEnvAppCodeNotIgnored(_0x551667,resolveEnvAppCode(),_0x3a5029);if(!_0x551667){const _0x1e6dc1=Object[_0x42858f(0x217)](_0x29712d);if(!_0xd9f3a1&&_0x1e6dc1[_0x42858f(0x1f2)]>0x1)throw CliErrors[_0x42858f(0x22c)](_0x42858f(0x1d1)+CLI_BIN_NAME+_0x42858f(0x22b)+_0x1e6dc1[_0x42858f(0x1e0)](',\x20')+'.');throw CliErrors[_0x42858f(0x22c)]('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+_0x42858f(0x216));}}return{'defaults':{'booleans':{'verbose':_0x2e76fe[_0x42858f(0x1e2)]},'numbers':{'pagesize':_0x2e76fe[_0x42858f(0x20f)]}},'extras':{'appCode':_0x551667,'cookie':_0x3fedc6,'apiDomain':_0x2e76fe[_0x42858f(0x208)](),'apiDir':_0x54fc9b,'selectedAppName':_0x2e76fe['selectedAppName'],'mergedCli':_0x2e76fe[_0x42858f(0x204)]}};},'confirmHighRisk':_0x545d14[_0x193a1e(0x226)]??(async({env:_0x281cb5,commandLabel:_0x5657e7})=>{const _0xb7621a=_0x193a1e;if(_0x281cb5[_0xb7621a(0x1ee)])throw CliErrors['validation']('High-risk\x20operation\x20`'+_0x5657e7+_0xb7621a(0x1e6));await requireConfirmationPrompt({'lines':[_0xb7621a(0x1f4)+_0x5657e7,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x4ca238=>CliErrors[_0xb7621a(0x1d2)](_0x4ca238)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const {clearActiveCookie:_0x3901f9}=await import('../core/api-client.js');_0x3901f9();}export async function finalizeRabetbaseRuntimeState(){const _0x4adecb=a327_0x4b86;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x497a2f},{initEnv:_0x3cdd49}]=await Promise['all']([import(_0x4adecb(0x220)),import(_0x4adecb(0x1f7))]);_0x497a2f(),_0x3cdd49('production');}}export async function runCommand(_0xf89af6,_0x581887,_0x3e4e89=terminalRunnerAdapter){const _0x2bf777=a327_0x4b86;assertRejectedFlags(_0xf89af6,_0x581887[_0x2bf777(0x1ec)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0xf89af6)?withUpdateNotice(_0xf89af6):_0xf89af6,_0x581887,_0x3e4e89);}function assertRejectedFlags(_0x5f50d5,_0x10dbc0){const _0x156901=a327_0x4b86;for(const _0x422aa4 of _0x5f50d5[_0x156901(0x22d)]??[]){const _0x4d4a4f=GLOBAL_FLAGS[_0x156901(0x1e5)](_0x5b561f=>_0x5b561f[_0x156901(0x1d3)]===_0x422aa4[_0x156901(0x1d3)]),_0x524836=new Set([_0x422aa4[_0x156901(0x1d3)],toCamelCase(_0x422aa4[_0x156901(0x1d3)]),_0x4d4a4f?.[_0x156901(0x225)]]),_0x28564c=[..._0x524836][_0x156901(0x1e4)](_0x27eee4=>{if(!_0x27eee4)return![];const _0x2a1cf7=_0x10dbc0[_0x27eee4];return _0x2a1cf7!==undefined&&_0x2a1cf7!==null&&_0x2a1cf7!==![];});if(_0x28564c)throw CliErrors[_0x156901(0x222)](_0x422aa4[_0x156901(0x1d9)],_0x422aa4[_0x156901(0x1fe)]);}}function a327_0x4b86(_0x1a43b2,_0x5e499e){_0x1a43b2=_0x1a43b2-0x1cf;const _0x128dbd=a327_0x128d();let _0x4b8640=_0x128dbd[_0x1a43b2];return _0x4b8640;}function toCamelCase(_0x43ca7d){const _0x3e4569=a327_0x4b86;return _0x43ca7d[_0x3e4569(0x1d7)](/-([a-z])/g,(_0x17967c,_0x57cc10)=>_0x57cc10[_0x3e4569(0x201)]());}function shouldAttachUpdateNotice(_0x396d0f){const _0x300d4c=a327_0x4b86;if(_0x396d0f[_0x300d4c(0x1f0)]===![])return![];return![_0x300d4c(0x1f3),_0x300d4c(0x1eb),_0x300d4c(0x215)][_0x300d4c(0x22e)](_0x396d0f[_0x300d4c(0x203)]);}function withUpdateNotice(_0x11a98e){return{..._0x11a98e,async 'execute'(_0x50a683){const _0x1e3252=a327_0x4b86,_0x4a82f8=shouldResolveUpdateNotice(_0x50a683)?resolveLatestUpdateNotice()[_0x1e3252(0x209)](()=>null):Promise[_0x1e3252(0x21a)](null),_0x52d447=await _0x11a98e[_0x1e3252(0x223)](_0x50a683);return attachUpdateNotice(_0x52d447,await _0x4a82f8);}};}function shouldResolveUpdateNotice(_0x4a7c97){const _0x4ae25e=a327_0x4b86;return _0x4a7c97[_0x4ae25e(0x205)]===_0x4ae25e(0x221)&&!_0x4a7c97['nonInteractive'];}function attachUpdateNotice(_0x14b8bb,_0x2b33f6){const _0x3baa66=a327_0x4b86;if(!_0x2b33f6||!_0x14b8bb||typeof _0x14b8bb!==_0x3baa66(0x1d5))return _0x14b8bb;const _0x602bae=_0x14b8bb,_0x5abd7e=typeof _0x602bae[_0x3baa66(0x1d4)]===_0x3baa66(0x1d5)&&_0x602bae[_0x3baa66(0x1d4)]!==null?_0x602bae[_0x3baa66(0x1d4)]:{};return{..._0x602bae,'_notice':{..._0x5abd7e,'update':_0x2b33f6}};}
|
|
1
|
+
(function(_0x5c8bb3,_0x487c8a){const _0x1631f3=a327_0x3049,_0x5974e9=_0x5c8bb3();while(!![]){try{const _0x1dfc01=parseInt(_0x1631f3(0x1f7))/0x1+-parseInt(_0x1631f3(0x244))/0x2*(parseInt(_0x1631f3(0x227))/0x3)+-parseInt(_0x1631f3(0x1f8))/0x4*(-parseInt(_0x1631f3(0x21a))/0x5)+parseInt(_0x1631f3(0x22c))/0x6*(parseInt(_0x1631f3(0x218))/0x7)+parseInt(_0x1631f3(0x247))/0x8+parseInt(_0x1631f3(0x239))/0x9+-parseInt(_0x1631f3(0x21b))/0xa*(parseInt(_0x1631f3(0x231))/0xb);if(_0x1dfc01===_0x487c8a)break;else _0x5974e9['push'](_0x5974e9['shift']());}catch(_0xf205ef){_0x5974e9['push'](_0x5974e9['shift']());}}}(a327_0x1b82,0x856d0));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_0x58dc29}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x34976b){const _0x29fa58=a327_0x3049;return typeof _0x34976b===_0x29fa58(0x203)&&_0x34976b['trim']()?_0x34976b[_0x29fa58(0x207)]():undefined;}function a327_0x1b82(){const _0x363591=['explicitAppName','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','replace','defaultApp','join','\x20\x20\x20Continue?\x20[y/N]\x20','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','rejectedFlags','14eRXpYE','hint','90baPevU','10mCbeZG','Edit\x20the\x20config\x20file\x20manually','entries','includes','pretty','defaultVerbose','../constant/env.js','mergedCli','all','map','meowKey','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','3PXNyhv','name','configMissing','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','\x0a\x20\x20','1894638GfQueH','appcode','filter','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','appCode','5438873HhDwha','rawFlags','cookie','validation','format','defaultPageSize','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','none','1466271hurpwt','schema','object','some','cancelled','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','_notice','resolveAppCode','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','formatOutput','currentApp','1989294RFFUVu','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','catch','1329824ySQXxM','update','message','find','execute','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','service','604785ltCUvr','104472cNEjeD','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','length','Set\x20appcode\x20via\x20`','⚠\x20\x20High-risk\x20operation:\x20','RABETBASE_APPCODE','apiDir','nonInteractive','pageSize','selectedAppName','string','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','keys','verbose','trim','risk','production','apps','requiresAppCode','App\x20\x22','../core/api-client.js','resolveCookie','LOVRABET_APPCODE'];a327_0x1b82=function(){return _0x363591;};return a327_0x1b82();}function resolveEnvAppCode(){const _0xb5c70d=a327_0x3049,_0x534d2e=stringFlag(process.env.RABETBASE_APPCODE);if(_0x534d2e)return{'name':_0xb5c70d(0x1fe),'value':_0x534d2e};const _0x3e8da3=stringFlag(process.env.LOVRABET_APPCODE);if(_0x3e8da3)return{'name':_0xb5c70d(0x20f),'value':_0x3e8da3};return undefined;}function hasExplicitAppCode(_0x1e54c4,_0x337fdd){const _0x41e40d=a327_0x3049;return!!(stringFlag(_0x1e54c4[_0x41e40d(0x22d)])||stringFlag(_0x337fdd['appcode']));}function assertEnvAppCodeNotIgnored(_0x3b360d,_0x473f4c,_0x395910){const _0x31697c=a327_0x3049;if(!_0x473f4c||_0x395910||_0x3b360d===_0x473f4c['value'])return;const _0x53f62b=_0x3b360d?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0x3b360d+'\x22.':_0x31697c(0x22a);throw CliErrors[_0x31697c(0x234)](_0x473f4c[_0x31697c(0x228)]+'='+_0x473f4c['value']+_0x31697c(0x22f)+_0x53f62b+'\x20'+(_0x31697c(0x226)+_0x473f4c[_0x31697c(0x228)]+'\x22.'));}export function createPipelineEnv(_0x2c6b39,_0x166726,_0x1a4836=[]){const _0x215eeb=a327_0x3049;return{'rawFlags':_0x166726,'args':_0x1a4836,'resolveAppCode':()=>_0x2c6b39[_0x215eeb(0x230)],'resolveCookie':()=>_0x2c6b39[_0x215eeb(0x233)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a327_0x58dc29(_0x166726),'defaultFormat':_0x2c6b39[_0x215eeb(0x235)],'defaultPageSize':_0x2c6b39[_0x215eeb(0x201)],'defaultVerbose':_0x2c6b39[_0x215eeb(0x206)],'apiDir':_0x2c6b39[_0x215eeb(0x1ff)],'riskLevel':_0x2c6b39['riskLevel'],'selectedAppName':_0x2c6b39[_0x215eeb(0x210)],'mergedCli':{'defaultApp':_0x2c6b39['defaultApp'],'currentApp':_0x2c6b39[_0x215eeb(0x243)],'appCode':_0x2c6b39[_0x215eeb(0x230)],'apps':_0x2c6b39[_0x215eeb(0x20a)]}};}export function createRabetbaseRunnerAdapter(_0x2d7749={}){const _0x45f74f=a327_0x3049;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x45f74f(0x22e)](_0x197bd1=>PIPELINE_FLAG_NAMES['has'](_0x197bd1[_0x45f74f(0x228)]))[_0x45f74f(0x224)](({name:_0x542d40,type:_0x2c9122,description:_0x5c308f})=>({'name':_0x542d40,'type':_0x2c9122,'description':_0x5c308f})),'formatOutput':_0x2d7749[_0x45f74f(0x242)]??formatOutput,'getCommandLabel'(_0x240511){const _0x2a790f=_0x45f74f;return CLI_BIN_NAME+'\x20'+_0x240511[_0x2a790f(0x1f6)]+'\x20'+_0x240511['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x2e26f6,{def:_0xa642ed}){const _0x5e520e=_0x45f74f,_0x411529=_0x2e26f6[_0x5e520e(0x21e)](_0x5e520e(0x21c))?'AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.':_0x5e520e(0x237)+_0xa642ed[_0x5e520e(0x208)]+_0x5e520e(0x1fa)+_0x5e520e(0x216);return CliErrors[_0x5e520e(0x234)](_0x2e26f6+_0x5e520e(0x22b)+_0x411529);}},async 'prepare'(_0x6bf5ae,_0x2caaa0,_0x2ff9bb,_0x5e8f51){const _0x174596=_0x45f74f,_0x4b87d3=_0x2caaa0[_0x174596(0x1ff)]||DEFAULT_API_DIR,_0x2c4c46=hasExplicitAppCode(_0x2ff9bb,_0x2caaa0[_0x174596(0x232)]),_0x4c9e7b=stringFlag(_0x2ff9bb['appcode'])||stringFlag(_0x2caaa0['rawFlags']['appcode']),_0x415151=_0x2caaa0[_0x174596(0x222)]?.[_0x174596(0x20a)]??{},_0x385f1d=_0x2caaa0[_0x174596(0x202)]||_0x2caaa0[_0x174596(0x222)]?.[_0x174596(0x243)]||_0x2caaa0[_0x174596(0x222)]?.[_0x174596(0x213)],_0x1f2ead=_0x4c9e7b?Object[_0x174596(0x21d)](_0x415151)['filter'](([,_0x456952])=>_0x456952['appcode']===_0x4c9e7b)[_0x174596(0x224)](([_0x4f2b89])=>_0x4f2b89):[];if(_0x1f2ead[_0x174596(0x1fb)]>0x1&&!_0x2caaa0['selectedAppName'])throw CliErrors[_0x174596(0x234)]('AppCode\x20\x22'+_0x4c9e7b+'\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20'+_0x1f2ead[_0x174596(0x214)](',\x20')+'.','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.');resolveAliasToCode(_0x6bf5ae,_0x2ff9bb,_0x4b87d3,_0x5e8f51,_0x2caaa0[_0x174596(0x240)](),_0x385f1d);const _0x1fe178=resolveCommandAuthMode(_0x6bf5ae);let _0x75c356='';if(_0x1fe178!==_0x174596(0x238)){_0x75c356=_0x2caaa0[_0x174596(0x20e)]()||'';if(!_0x75c356){if(_0x1fe178==='required')throw CliErrors['authRequired']();}else{const {setActiveCookie:_0x551461}=await import(_0x174596(0x20d));_0x551461(_0x75c356);}}const _0x4b9f5e=_0x2caaa0[_0x174596(0x240)]()??'';if(_0x6bf5ae[_0x174596(0x20b)]!==![]){if(!_0x2c4c46&&_0x385f1d&&!_0x415151[_0x385f1d]){const _0x27e5eb=Object[_0x174596(0x205)](_0x415151);throw CliErrors['validation'](_0x174596(0x20c)+_0x385f1d+_0x174596(0x211),_0x27e5eb[_0x174596(0x1fb)]>0x0?'Available:\x20'+_0x27e5eb[_0x174596(0x214)](',\x20')+'.\x20Use\x20--app/--appcode,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x174596(0x1f5):_0x174596(0x23e)+CLI_BIN_NAME+_0x174596(0x1f5));}assertEnvAppCodeNotIgnored(_0x4b9f5e,resolveEnvAppCode(),_0x2c4c46);if(!_0x4b9f5e){const _0x456ad1=Object[_0x174596(0x205)](_0x415151);if(!_0x385f1d&&_0x456ad1['length']>0x1)throw CliErrors['configMissing'](_0x174596(0x245)+CLI_BIN_NAME+_0x174596(0x1f9)+_0x456ad1[_0x174596(0x214)](',\x20')+'.');throw CliErrors[_0x174596(0x229)](_0x174596(0x1fc)+CLI_BIN_NAME+_0x174596(0x241));}}return{'defaults':{'booleans':{'verbose':_0x2caaa0[_0x174596(0x220)]},'numbers':{'pagesize':_0x2caaa0[_0x174596(0x236)]}},'extras':{'appCode':_0x4b9f5e,'cookie':_0x75c356,'apiDomain':_0x2caaa0['resolveApiDomain'](),'apiDir':_0x4b87d3,'selectedAppName':_0x2caaa0[_0x174596(0x202)],'mergedCli':_0x2caaa0[_0x174596(0x222)]}};},'confirmHighRisk':_0x2d7749['confirmHighRisk']??(async({env:_0x32f46d,commandLabel:_0x4800d2})=>{const _0x5471b1=_0x45f74f;if(_0x32f46d['isNonInteractive'])throw CliErrors[_0x5471b1(0x234)]('High-risk\x20operation\x20`'+_0x4800d2+_0x5471b1(0x204));await requireConfirmationPrompt({'lines':[_0x5471b1(0x1fd)+_0x4800d2,_0x5471b1(0x215)],'createCancelledError':_0xa6883e=>CliErrors[_0x5471b1(0x23d)](_0xa6883e)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const {clearActiveCookie:_0x490679}=await import('../core/api-client.js');_0x490679();}function a327_0x3049(_0x15bc81,_0x47d1fa){_0x15bc81=_0x15bc81-0x1f3;const _0x1b82b0=a327_0x1b82();let _0x30491b=_0x1b82b0[_0x15bc81];return _0x30491b;}export async function finalizeRabetbaseRuntimeState(){const _0x3f2f82=a327_0x3049;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x9dec01},{initEnv:_0x1dd8a7}]=await Promise[_0x3f2f82(0x223)]([import('../constant/domain.js'),import(_0x3f2f82(0x221))]);_0x9dec01(),_0x1dd8a7(_0x3f2f82(0x209));}}export async function runCommand(_0x1d4a26,_0x4c524c,_0x52f2b1=terminalRunnerAdapter){assertRejectedFlags(_0x1d4a26,_0x4c524c['rawFlags']),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x1d4a26)?withUpdateNotice(_0x1d4a26):_0x1d4a26,_0x4c524c,_0x52f2b1);}function assertRejectedFlags(_0x1ca801,_0x185dbf){const _0x2dec35=a327_0x3049;for(const _0x30ac5c of _0x1ca801[_0x2dec35(0x217)]??[]){const _0x29c3ed=GLOBAL_FLAGS[_0x2dec35(0x1f3)](_0x5b2dac=>_0x5b2dac[_0x2dec35(0x228)]===_0x30ac5c[_0x2dec35(0x228)]),_0x4432ae=new Set([_0x30ac5c[_0x2dec35(0x228)],toCamelCase(_0x30ac5c[_0x2dec35(0x228)]),_0x29c3ed?.[_0x2dec35(0x225)]]),_0x41bc66=[..._0x4432ae][_0x2dec35(0x23c)](_0x505537=>{if(!_0x505537)return![];const _0x106594=_0x185dbf[_0x505537];return _0x106594!==undefined&&_0x106594!==null&&_0x106594!==![];});if(_0x41bc66)throw CliErrors[_0x2dec35(0x234)](_0x30ac5c[_0x2dec35(0x249)],_0x30ac5c[_0x2dec35(0x219)]);}}function toCamelCase(_0x4484e3){const _0x39024a=a327_0x3049;return _0x4484e3[_0x39024a(0x212)](/-([a-z])/g,(_0x5e3a58,_0x5cd93d)=>_0x5cd93d['toUpperCase']());}function shouldAttachUpdateNotice(_0x27c287){const _0x23e87f=a327_0x3049;if(_0x27c287['hasFormat']===![])return![];return![_0x23e87f(0x248),_0x23e87f(0x23a),'doctor'][_0x23e87f(0x21e)](_0x27c287[_0x23e87f(0x1f6)]);}function withUpdateNotice(_0x2d4138){return{..._0x2d4138,async 'execute'(_0xacc403){const _0x5344e9=a327_0x3049,_0x3cd00b=shouldResolveUpdateNotice(_0xacc403)?resolveLatestUpdateNotice()[_0x5344e9(0x246)](()=>null):Promise['resolve'](null),_0x5745b5=await _0x2d4138[_0x5344e9(0x1f4)](_0xacc403);return attachUpdateNotice(_0x5745b5,await _0x3cd00b);}};}function shouldResolveUpdateNotice(_0x3e0790){const _0x47a683=a327_0x3049;return _0x3e0790[_0x47a683(0x235)]===_0x47a683(0x21f)&&!_0x3e0790[_0x47a683(0x200)];}function attachUpdateNotice(_0x150ee5,_0x1e3208){const _0x83ab77=a327_0x3049;if(!_0x1e3208||!_0x150ee5||typeof _0x150ee5!=='object')return _0x150ee5;const _0x35ffae=_0x150ee5,_0x36d7e5=typeof _0x35ffae['_notice']===_0x83ab77(0x23b)&&_0x35ffae[_0x83ab77(0x23f)]!==null?_0x35ffae['_notice']:{};return{..._0x35ffae,'_notice':{..._0x36d7e5,'update':_0x1e3208}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a328_0x43d5(_0x333b0d,_0x4d5380){_0x333b0d=_0x333b0d-0x110;const _0x3533c8=a328_0x3533();let _0x43d5c0=_0x3533c8[_0x333b0d];return _0x43d5c0;}(function(_0x3d22d5,_0x4d10dc){const _0x2b568c=a328_0x43d5,_0x37345c=_0x3d22d5();while(!![]){try{const _0x4c467c=parseInt(_0x2b568c(0x111))/0x1*(-parseInt(_0x2b568c(0x113))/0x2)+-parseInt(_0x2b568c(0x112))/0x3*(parseInt(_0x2b568c(0x11b))/0x4)+-parseInt(_0x2b568c(0x110))/0x5*(parseInt(_0x2b568c(0x117))/0x6)+parseInt(_0x2b568c(0x115))/0x7+-parseInt(_0x2b568c(0x114))/0x8*(-parseInt(_0x2b568c(0x116))/0x9)+parseInt(_0x2b568c(0x11a))/0xa+parseInt(_0x2b568c(0x119))/0xb;if(_0x4c467c===_0x4d10dc)break;else _0x37345c['push'](_0x37345c['shift']());}catch(_0x53c4af){_0x37345c['push'](_0x37345c['shift']());}}}(a328_0x3533,0xccbd5));import{buildSchemaPayload as a328_0x3d9357}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';export async function buildSchemaPayload(){const _0x5302e2=a328_0x43d5,{serviceRegistry:_0x437205,findDefinition:_0x29db68}=await import(_0x5302e2(0x118));return a328_0x3d9357({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x437205,'buildAllFlags':buildAllFlags,'findDefinition':_0x29db68});}function a328_0x3533(){const _0x3b67be=['6618696jdCIlr','14509116UMYacu','7369968qppaWg','../commands/registry.js','5109533IwWRMu','11052290oeXTHa','32wiNdRs','5OivVqQ','387755acmdlz','627258ICRcNM','2YPrfUa','8iIljdo'];a328_0x3533=function(){return _0x3b67be;};return a328_0x3533();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3a154f,_0x390e07){const _0x312f00=a329_0x4cf8,_0x551c42=_0x3a154f();while(!![]){try{const _0x446097=-parseInt(_0x312f00(0xb2))/0x1*(-parseInt(_0x312f00(0xc2))/0x2)+-parseInt(_0x312f00(0xa8))/0x3*(-parseInt(_0x312f00(0xb4))/0x4)+parseInt(_0x312f00(0xa6))/0x5*(parseInt(_0x312f00(0xad))/0x6)+-parseInt(_0x312f00(0xac))/0x7+-parseInt(_0x312f00(0xc1))/0x8+-parseInt(_0x312f00(0xbd))/0x9*(parseInt(_0x312f00(0xaf))/0xa)+parseInt(_0x312f00(0xa4))/0xb*(parseInt(_0x312f00(0xb0))/0xc);if(_0x446097===_0x390e07)break;else _0x551c42['push'](_0x551c42['shift']());}catch(_0x43030b){_0x551c42['push'](_0x551c42['shift']());}}}(a329_0x28b4,0x6988f));function a329_0x4cf8(_0x4962b0,_0xcb3ed5){_0x4962b0=_0x4962b0-0xa4;const _0x28b400=a329_0x28b4();let _0x4cf847=_0x28b400[_0x4962b0];return _0x4cf847;}import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';function a329_0x28b4(){const _0x400410=['filter','Run\x20`','entries','39213FHTqRg','validation','add','find','2091720nxlaLQ','275752oGrsMh','11DaWXBk','toUpperCase','10xwQefn','has','212799HDNvAb','strictFlags','\x20for\x20`','length','4902268vKKUSZ','622422kqawIt','replace','1040qdBERS','15468468SfJGuw','meowKey','1YgFzlO','name','12UGoHCg','Unsupported\x20flag\x20--','\x20--help`\x20to\x20view\x20the\x20current\x20command\x20contract.','help','toLowerCase','command'];a329_0x28b4=function(){return _0x400410;};return a329_0x28b4();}import{CliErrors}from'../errors.js';export function assertSupportedCommandFlags(_0x89ee80,_0x3c1e1a){const _0x3398fc=a329_0x4cf8;if(!_0x89ee80[_0x3398fc(0xa9)])return;const _0x3c7494=new Set([_0x3398fc(0xb7),'version']),_0x2bd1ca=GLOBAL_FLAGS[_0x3398fc(0xba)](_0x40b3cf=>PIPELINE_FLAG_NAMES[_0x3398fc(0xa7)](_0x40b3cf['name']));for(const _0x178515 of[..._0x89ee80['flags'],..._0x2bd1ca]){addFlagCandidates(_0x3c7494,_0x178515);}for(const [_0x5b97d0,_0x20146c]of Object[_0x3398fc(0xbc)](_0x3c1e1a)){if(!isExplicitValue(_0x20146c)||_0x3c7494[_0x3398fc(0xa7)](_0x5b97d0))continue;const _0x343833=GLOBAL_FLAGS[_0x3398fc(0xc0)](_0x3fdf41=>_0x3fdf41[_0x3398fc(0xb1)]===_0x5b97d0)?.[_0x3398fc(0xb3)]??toKebabCase(_0x5b97d0);throw CliErrors[_0x3398fc(0xbe)](_0x3398fc(0xb5)+_0x343833+_0x3398fc(0xaa)+CLI_BIN_NAME+'\x20'+_0x89ee80['service']+'\x20'+_0x89ee80[_0x3398fc(0xb9)]+'`.',_0x3398fc(0xbb)+CLI_BIN_NAME+'\x20'+_0x89ee80['service']+'\x20'+_0x89ee80[_0x3398fc(0xb9)]+_0x3398fc(0xb6));}}function addFlagCandidates(_0x1fe3d6,_0x1a40c6){const _0x1c5a3f=a329_0x4cf8,_0x3c14ee=_0x1c5a3f(0xb1)in _0x1a40c6?[_0x1a40c6['name'],_0x1a40c6['meowKey']]:[_0x1a40c6[_0x1c5a3f(0xb3)],_0x1a40c6['alias']];for(const _0x573f7f of _0x3c14ee){if(!_0x573f7f)continue;_0x1fe3d6[_0x1c5a3f(0xbf)](_0x573f7f),_0x1fe3d6[_0x1c5a3f(0xbf)](toCamelCase(_0x573f7f));}}function isExplicitValue(_0x147f33){const _0x57f635=a329_0x4cf8;return _0x147f33!==undefined&&_0x147f33!==null&&_0x147f33!==![]&&(!Array['isArray'](_0x147f33)||_0x147f33[_0x57f635(0xab)]>0x0);}function toCamelCase(_0x58927c){const _0x54be74=a329_0x4cf8;return _0x58927c['replace'](/-([a-z])/g,(_0x3e3289,_0x1deef4)=>_0x1deef4[_0x54be74(0xa5)]());}function toKebabCase(_0x114887){const _0x4a6efa=a329_0x4cf8;return _0x114887[_0x4a6efa(0xae)](/([a-z0-9])([A-Z])/g,'$1-$2')[_0x4a6efa(0xb8)]();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4e4efd,_0x660b57){var _0x1e86a0=a330_0x3899,_0x321dbf=_0x4e4efd();while(!![]){try{var _0x1eab5c=-parseInt(_0x1e86a0(0x110))/0x1*(parseInt(_0x1e86a0(0x111))/0x2)+-parseInt(_0x1e86a0(0x112))/0x3+-parseInt(_0x1e86a0(0x11a))/0x4*(-parseInt(_0x1e86a0(0x115))/0x5)+-parseInt(_0x1e86a0(0x114))/0x6*(-parseInt(_0x1e86a0(0x119))/0x7)+-parseInt(_0x1e86a0(0x113))/0x8*(parseInt(_0x1e86a0(0x118))/0x9)+parseInt(_0x1e86a0(0x116))/0xa*(parseInt(_0x1e86a0(0x11b))/0xb)+parseInt(_0x1e86a0(0x117))/0xc;if(_0x1eab5c===_0x660b57)break;else _0x321dbf['push'](_0x321dbf['shift']());}catch(_0x2c1b29){_0x321dbf['push'](_0x321dbf['shift']());}}}(a330_0x5efe,0xec7f7));function a330_0x3899(_0x5b987d,_0x1a608b){_0x5b987d=_0x5b987d-0x110;var _0x5efe3a=a330_0x5efe();var _0x389988=_0x5efe3a[_0x5b987d];return _0x389988;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';function a330_0x5efe(){var _0x4648f1=['12301137FGuaiQ','6790364uAIyvn','3006204WhtjbV','77RHxeMB','8263XEEUOt','246zDTJwc','5445627IIkeWQ','8MuTFuy','6xPhXbl','10qiiHVi','1556530PLpyMW','19251852rwGMxE'];a330_0x5efe=function(){return _0x4648f1;};return a330_0x5efe();}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.5.10-beta.
|
|
2
|
-
export declare const GIT_TAG = "v2.5.10-beta.
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-11-
|
|
1
|
+
export declare const VERSION = "2.5.10-beta.5";
|
|
2
|
+
export declare const GIT_TAG = "v2.5.10-beta.5";
|
|
3
|
+
export declare const GIT_COMMIT = "86ad196c";
|
|
4
|
+
export declare const BUILD_TIME = "2026-11-02T15:23:56.169Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a331_0x3b16(){const _0x487e8e=['1251540zndnty','1310643AgPERN','55kecJTQ','66fvoWXV','v2.5.10-beta.5','2026-11-02T15:23:56.169Z','4xRQOuv','86ad196c','6POxVpQ','2.5.10-beta.5','380130xZUrzI','125372IbMqjE','216377udnWPc','45267XKoDXy','536488Sgffzz'];a331_0x3b16=function(){return _0x487e8e;};return a331_0x3b16();}const a331_0x3e35d1=a331_0x6a35;(function(_0x502b33,_0x3525be){const _0x5081ca=a331_0x6a35,_0x12532b=_0x502b33();while(!![]){try{const _0x316982=-parseInt(_0x5081ca(0x196))/0x1+-parseInt(_0x5081ca(0x192))/0x2*(parseInt(_0x5081ca(0x199))/0x3)+parseInt(_0x5081ca(0x197))/0x4*(-parseInt(_0x5081ca(0x19d))/0x5)+-parseInt(_0x5081ca(0x194))/0x6*(-parseInt(_0x5081ca(0x198))/0x7)+parseInt(_0x5081ca(0x19a))/0x8+parseInt(_0x5081ca(0x19c))/0x9+parseInt(_0x5081ca(0x19b))/0xa*(parseInt(_0x5081ca(0x18f))/0xb);if(_0x316982===_0x3525be)break;else _0x12532b['push'](_0x12532b['shift']());}catch(_0x49fc83){_0x12532b['push'](_0x12532b['shift']());}}}(a331_0x3b16,0x3a752));export const VERSION=a331_0x3e35d1(0x195);function a331_0x6a35(_0x13d5a8,_0x2e8dcc){_0x13d5a8=_0x13d5a8-0x18f;const _0x3b168d=a331_0x3b16();let _0x6a355a=_0x3b168d[_0x13d5a8];return _0x6a355a;}export const GIT_TAG=a331_0x3e35d1(0x190);export const GIT_COMMIT=a331_0x3e35d1(0x193);export const BUILD_TIME=a331_0x3e35d1(0x191);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a332_0x1b2a39=a332_0x2017;(function(_0x1fc9a1,_0x47cddb){const _0x218ca0=a332_0x2017,_0x3fb28a=_0x1fc9a1();while(!![]){try{const _0x48da88=parseInt(_0x218ca0(0x1d4))/0x1+parseInt(_0x218ca0(0x1bc))/0x2*(-parseInt(_0x218ca0(0x1d8))/0x3)+parseInt(_0x218ca0(0x1d7))/0x4+parseInt(_0x218ca0(0x1c1))/0x5*(parseInt(_0x218ca0(0x1b2))/0x6)+-parseInt(_0x218ca0(0x1be))/0x7+-parseInt(_0x218ca0(0x1b7))/0x8*(parseInt(_0x218ca0(0x1cc))/0x9)+-parseInt(_0x218ca0(0x1cf))/0xa;if(_0x48da88===_0x47cddb)break;else _0x3fb28a['push'](_0x3fb28a['shift']());}catch(_0x2d89d6){_0x3fb28a['push'](_0x3fb28a['shift']());}}}(a332_0x556e,0x4199e));export const ROUTING_CATALOG_DIGEST=a332_0x1b2a39(0x1ad);export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id',a332_0x1b2a39(0x1c6)];export const ENABLED_REGION_VALUES=['cn','id',a332_0x1b2a39(0x1c6)];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a332_0x1b2a39(0x1d5),'aliases':[a332_0x1b2a39(0x1b5)],'serviceDomains':{'production':{'user':a332_0x1b2a39(0x1c0),'api':a332_0x1b2a39(0x1ae),'runtime':'https://runtime.lovrabet.com','skill':a332_0x1b2a39(0x1d3),'kb':a332_0x1b2a39(0x1ae),'kbService':a332_0x1b2a39(0x1c5),'app':a332_0x1b2a39(0x1b3)},'daily':{'user':a332_0x1b2a39(0x1c8),'api':'https://daily-api.lovrabet.com','runtime':a332_0x1b2a39(0x1bb),'skill':'https://skills-daily.lovrabet.com','kb':a332_0x1b2a39(0x1b4),'kbService':'https://kb-service-daily.lovrabet.com','app':a332_0x1b2a39(0x1d9)}},'cdn':{'libraries':'https://g.alicdn.com/code/lib','lovrabet':a332_0x1b2a39(0x1c9)},'local':{'origin':a332_0x1b2a39(0x1ba)}},'id':{'enabled':!![],'label':a332_0x1b2a39(0x1bf),'aliases':[a332_0x1b2a39(0x1cb)],'serviceDomains':{'production':{'user':a332_0x1b2a39(0x1c7),'api':a332_0x1b2a39(0x1b9),'runtime':a332_0x1b2a39(0x1c2),'skill':a332_0x1b2a39(0x1bd),'kb':a332_0x1b2a39(0x1b9),'kbService':'https://kb-service.lovrabet.id','app':a332_0x1b2a39(0x1d0)}},'cdn':{'libraries':a332_0x1b2a39(0x1ce),'lovrabet':'https://g.lovrabet.id'},'local':{'origin':a332_0x1b2a39(0x1af)}},'global':{'enabled':!![],'label':a332_0x1b2a39(0x1b6),'aliases':[],'serviceDomains':{'production':{'user':a332_0x1b2a39(0x1c3),'api':a332_0x1b2a39(0x1c4),'runtime':a332_0x1b2a39(0x1b0),'skill':a332_0x1b2a39(0x1ca),'kb':'https://api.lovrabet.ai','app':a332_0x1b2a39(0x1d6)},'daily':{'user':a332_0x1b2a39(0x1b8),'api':a332_0x1b2a39(0x1b1),'runtime':'https://daily-runtime.lovrabet.ai','skill':a332_0x1b2a39(0x1cd),'kb':'https://daily-api.lovrabet.ai','app':a332_0x1b2a39(0x1d1)}},'cdn':{'libraries':'https://cdnjs.cloudflare.com/ajax/libs','lovrabet':a332_0x1b2a39(0x1d2)},'local':{'origin':'https://dev.lovrabet.ai'}}};function a332_0x556e(){const _0x2e0f71=['https://app.lovrabet.ai','1356636KQFnRE','12hxzper','https://daily.lovrabet.com','57d346b80b12ca567af9d86dd7f8c02a0c27fe15d4944c8345add2cc6134c587','https://api.lovrabet.com','https://dev.lovrabet.id','https://runtime.lovrabet.ai','https://daily-api.lovrabet.ai','114528EUWhpm','https://app.lovrabet.com','https://daily-api.lovrabet.com','china','Global','87832SYkchu','https://user-daily.lovrabet.ai','https://api.lovrabet.id','https://dev.lovrabet.com','https://daily-runtime.lovrabet.com','157538zABUgP','https://skills.lovrabet.id','1450638bUgBJn','Indonesia','https://user.lovrabet.com','115IMyKxf','https://runtime.lovrabet.id','https://user.lovrabet.ai','https://api.lovrabet.ai','https://kb-service.lovrabet.com','global','https://user.lovrabet.id','https://user-daily.lovrabet.com','https://g.lovrabet.com','https://skills.lovrabet.ai','indonesia','243rYtfNb','https://skills-daily.lovrabet.ai','https://cdnjs.cloudflare.com/ajax/libs','1792720eLIJcK','https://app.lovrabet.id','https://daily.lovrabet.ai','https://g.lovrabet.ai','https://skills.lovrabet.com','488534kJtKDd','Mainland\x20China'];a332_0x556e=function(){return _0x2e0f71;};return a332_0x556e();}function a332_0x2017(_0x50f96e,_0x5bb26c){_0x50f96e=_0x50f96e-0x1ad;const _0x556e36=a332_0x556e();let _0x201796=_0x556e36[_0x50f96e];return _0x201796;}export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a333_0x5ebb6e=a333_0x316f;(function(_0x98d5ee,_0x16d9fa){const _0x3986b6=a333_0x316f,_0x4d021a=_0x98d5ee();while(!![]){try{const _0x59c0c1=parseInt(_0x3986b6(0x1d1))/0x1*(-parseInt(_0x3986b6(0x1d9))/0x2)+-parseInt(_0x3986b6(0x1cf))/0x3*(-parseInt(_0x3986b6(0x1da))/0x4)+parseInt(_0x3986b6(0x1cd))/0x5+parseInt(_0x3986b6(0x1dc))/0x6*(-parseInt(_0x3986b6(0x1e4))/0x7)+parseInt(_0x3986b6(0x1d6))/0x8+parseInt(_0x3986b6(0x1df))/0x9*(-parseInt(_0x3986b6(0x1d5))/0xa)+parseInt(_0x3986b6(0x1ce))/0xb;if(_0x59c0c1===_0x16d9fa)break;else _0x4d021a['push'](_0x4d021a['shift']());}catch(_0x3d02ab){_0x4d021a['push'](_0x4d021a['shift']());}}}(a333_0x12bf,0x92b07));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a333_0x5ebb6e(0x1d8);export const ENTERPRISE_ROUTING_PROTOCOL=a333_0x5ebb6e(0x1e2);function a333_0x316f(_0x3bc113,_0x2c7596){_0x3bc113=_0x3bc113-0x1cd;const _0x12bff7=a333_0x12bf();let _0x316f08=_0x12bff7[_0x3bc113];return _0x316f08;}export const ENTERPRISE_ROUTING_KIND='enterprise';export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=['userDomain',a333_0x5ebb6e(0x1e1),a333_0x5ebb6e(0x1e3),a333_0x5ebb6e(0x1e0),a333_0x5ebb6e(0x1d0),a333_0x5ebb6e(0x1d4),a333_0x5ebb6e(0x1dd),a333_0x5ebb6e(0x1db),a333_0x5ebb6e(0x1de)];function a333_0x12bf(){const _0x59686c=['99401WNpucL','lovrabet','libraries','kbServiceDomain','3482140QnZtTG','5373248PNHsfO','userDomain','a03fe188b2b34518efc5668666c0001d20354882cd7dd70afec902dffe1329c3','10iuhmyz','316hzkHGz','localDomain','6SSVDRe','appDomain','certificateDomain','9JteqWx','skillDomain','apiDomain','lovrabet-routing/v1','runtimeDomain','1614935wlBMsM','2160835dlSyiM','88121ZnmjNJ','21453uDfSrx','kbDomain'];a333_0x12bf=function(){return _0x59686c;};return a333_0x12bf();}export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a333_0x5ebb6e(0x1d7),a333_0x5ebb6e(0x1e1),'runtimeDomain',a333_0x5ebb6e(0x1e0),a333_0x5ebb6e(0x1d0),a333_0x5ebb6e(0x1dd)];export const ENTERPRISE_ROUTING_CDN_FIELDS=[a333_0x5ebb6e(0x1d3),a333_0x5ebb6e(0x1d2)];export const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS=[a333_0x5ebb6e(0x1d3),'lovrabet'];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a334_0x4b4e(_0x45f749,_0x5d8259){_0x45f749=_0x45f749-0xf0;var _0x149bb6=a334_0x149b();var _0x4b4e7f=_0x149bb6[_0x45f749];return _0x4b4e7f;}(function(_0x1bd6f7,_0x333934){var _0x292a9c=a334_0x4b4e,_0x92a96e=_0x1bd6f7();while(!![]){try{var _0x883519=-parseInt(_0x292a9c(0xf3))/0x1+parseInt(_0x292a9c(0xf2))/0x2+-parseInt(_0x292a9c(0xf5))/0x3+parseInt(_0x292a9c(0xf4))/0x4+parseInt(_0x292a9c(0xfc))/0x5+-parseInt(_0x292a9c(0xf9))/0x6+parseInt(_0x292a9c(0xf8))/0x7;if(_0x883519===_0x333934)break;else _0x92a96e['push'](_0x92a96e['shift']());}catch(_0x21ad5a){_0x92a96e['push'](_0x92a96e['shift']());}}}(a334_0x149b,0x8b592));function a334_0x149b(){var _0x1fb3d9=['100264qBztMH','1091781gslobX','4501104xwPHXB','1519752lUaLXn','log','\x20--help','6939338nyrnbV','5163582btRFIE','\x20\x20Use\x20','bold','4314950RrTvEF','green','\x20to\x20view\x20available\x20commands.'];a334_0x149b=function(){return _0x1fb3d9;};return a334_0x149b();}import a334_0x257b52 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x45c88f=a334_0x4b4e;console[_0x45c88f(0xf6)](),console[_0x45c88f(0xf6)](a334_0x257b52[_0x45c88f(0xf0)][_0x45c88f(0xfb)]('\x20\x20'+CLI_DISPLAY_NAME)),console['log'](),console[_0x45c88f(0xf6)](_0x45c88f(0xfa)+a334_0x257b52[_0x45c88f(0xf0)][_0x45c88f(0xfb)](CLI_BIN_NAME+_0x45c88f(0xf7))+_0x45c88f(0xf1)),console['log']();}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x538cf2,_0x344737){const _0x4b60fa=a335_0x124e,_0x2628cc=_0x538cf2();while(!![]){try{const _0x8979f5=-parseInt(_0x4b60fa(0x14e))/0x1*(-parseInt(_0x4b60fa(0x148))/0x2)+-parseInt(_0x4b60fa(0x146))/0x3+-parseInt(_0x4b60fa(0x15b))/0x4*(parseInt(_0x4b60fa(0x156))/0x5)+-parseInt(_0x4b60fa(0x145))/0x6+-parseInt(_0x4b60fa(0x150))/0x7*(-parseInt(_0x4b60fa(0x149))/0x8)+parseInt(_0x4b60fa(0x14c))/0x9*(-parseInt(_0x4b60fa(0x14a))/0xa)+parseInt(_0x4b60fa(0x157))/0xb;if(_0x8979f5===_0x344737)break;else _0x2628cc['push'](_0x2628cc['shift']());}catch(_0x173f6a){_0x2628cc['push'](_0x2628cc['shift']());}}}(a335_0x2d83,0x41aac));function a335_0x2d83(){const _0x3921d1=['log','11664RTFchX','SOURCE_INVALID','17AeiDgG','error','551817EuebkS','[BUILTIN_SKILL_INSTALL_','skillVersion','\x20at\x20','Rabetbase\x20Built-in\x20Skill\x20','repairCommand','345aWVOPi','9671068ALnkhl','installedPath','Repair\x20with:\x20','already\x20current','30580hAWTBg','FAILED','Installation\x20failed','\x20via\x20skills@latest','changed','3077352edIQOO','14445YsGJaI','code','45866pleHof','8NIYUHp','260NwPKAr'];a335_0x2d83=function(){return _0x3921d1;};return a335_0x2d83();}import{installBuiltinSkill}from'./skills/builtin-skill.js';function a335_0x124e(_0x2cb6ab,_0x2c7e75){_0x2cb6ab=_0x2cb6ab-0x144;const _0x2d835e=a335_0x2d83();let _0x124e81=_0x2d835e[_0x2cb6ab];return _0x124e81;}export async function runPostinstall(_0x2da6bb={}){const _0x2a8072=a335_0x124e,_0x4658ae=installBuiltinSkill(_0x2da6bb);if(_0x4658ae['ok']){const _0x1a4538=_0x4658ae[_0x2a8072(0x144)]?'installed':_0x2a8072(0x15a),_0x16b952=_0x4658ae[_0x2a8072(0x158)]?_0x2a8072(0x153)+_0x4658ae[_0x2a8072(0x158)]:_0x2a8072(0x15e);return console[_0x2a8072(0x14b)](_0x2a8072(0x154)+_0x4658ae[_0x2a8072(0x152)]+'\x20'+_0x1a4538+_0x16b952),_0x4658ae;}const _0x44a7b2=_0x2a8072(0x151)+(_0x4658ae[_0x2a8072(0x147)]??_0x2a8072(0x15c))+']\x20'+(_0x4658ae[_0x2a8072(0x14f)]??_0x2a8072(0x15d))+'.\x20'+(_0x2a8072(0x159)+_0x4658ae[_0x2a8072(0x155)]);if(_0x4658ae[_0x2a8072(0x147)]===_0x2a8072(0x14d))throw new Error(_0x44a7b2);return console['warn'](_0x44a7b2),_0x4658ae;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a336_0x25cf(){const _0x46f66f=['replace','833280SNkaad','148560kBuhpd','5944sqshQG','.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.','slice','string','18ItKuyI','risk','876MuKZKh','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','high-risk-write','10451GxqbzW','240jtIqft','1029800fMUrJq','This\x20will\x20run\x20the\x20high-risk\x20write\x20','3244770GvMdFH','trim','286167LeuDHY','This\x20will\x20run\x20the\x20write\x20'];a336_0x25cf=function(){return _0x46f66f;};return a336_0x25cf();}(function(_0x469e5b,_0x1fc322){const _0xcc46e4=a336_0x12a1,_0xd4d25e=_0x469e5b();while(!![]){try{const _0x278b3e=-parseInt(_0xcc46e4(0x99))/0x1+parseInt(_0xcc46e4(0x9e))/0x2*(-parseInt(_0xcc46e4(0x94))/0x3)+parseInt(_0xcc46e4(0x95))/0x4+-parseInt(_0xcc46e4(0x9c))/0x5+parseInt(_0xcc46e4(0x90))/0x6*(parseInt(_0xcc46e4(0x93))/0x7)+-parseInt(_0xcc46e4(0x9d))/0x8*(-parseInt(_0xcc46e4(0x8e))/0x9)+parseInt(_0xcc46e4(0x97))/0xa;if(_0x278b3e===_0x1fc322)break;else _0xd4d25e['push'](_0xd4d25e['shift']());}catch(_0x3deb15){_0xd4d25e['push'](_0xd4d25e['shift']());}}}(a336_0x25cf,0x23c1e));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x35f156,_0x38cf2f,_0x2b2f8e){const _0x8633d7=normalizeText(_0x35f156['confirmationDescription'],DESCRIPTION_MAX_LENGTH),_0xdccc45=_0x8633d7||normalizeText(defaultDescription(requireWriteRisk(_0x35f156),_0x38cf2f),DESCRIPTION_MAX_LENGTH);return{'operation':_0x38cf2f,'risk':requireWriteRisk(_0x35f156),'description':_0xdccc45,..._0x2b2f8e?{'signal':_0x2b2f8e}:{}};}function requireWriteRisk(_0x35dc0e){const _0x51f83e=a336_0x12a1;if(_0x35dc0e[_0x51f83e(0x8f)]==='write'||_0x35dc0e[_0x51f83e(0x8f)]===_0x51f83e(0x92))return _0x35dc0e[_0x51f83e(0x8f)];throw new Error(_0x51f83e(0x91));}function a336_0x12a1(_0x3d72c8,_0x597828){_0x3d72c8=_0x3d72c8-0x8d;const _0x25cf72=a336_0x25cf();let _0x12a111=_0x25cf72[_0x3d72c8];return _0x12a111;}function defaultDescription(_0x33531c,_0x141d81){const _0x446864=a336_0x12a1;if(_0x33531c===_0x446864(0x92))return _0x446864(0x96)+_0x141d81+_0x446864(0x9f);return _0x446864(0x9a)+_0x141d81+'.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.';}function normalizeText(_0x2a61a6,_0x1d9a62){const _0x279804=a336_0x12a1;if(typeof _0x2a61a6!==_0x279804(0x8d))return'';return _0x2a61a6[_0x279804(0x9b)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x279804(0x9b)](/\s+/g,'\x20')[_0x279804(0x98)]()[_0x279804(0xa0)](0x0,_0x1d9a62);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x39600c,_0x5d189d){const _0x16fd01=a337_0x3093,_0x2b4f1b=_0x39600c();while(!![]){try{const _0x1babf5=-parseInt(_0x16fd01(0x1b7))/0x1*(-parseInt(_0x16fd01(0x1a8))/0x2)+-parseInt(_0x16fd01(0x1a7))/0x3+-parseInt(_0x16fd01(0x1b3))/0x4+parseInt(_0x16fd01(0x1b5))/0x5*(parseInt(_0x16fd01(0x1ac))/0x6)+-parseInt(_0x16fd01(0x1a5))/0x7+parseInt(_0x16fd01(0x1af))/0x8+parseInt(_0x16fd01(0x1ad))/0x9*(parseInt(_0x16fd01(0x1b0))/0xa);if(_0x1babf5===_0x5d189d)break;else _0x2b4f1b['push'](_0x2b4f1b['shift']());}catch(_0x425729){_0x2b4f1b['push'](_0x2b4f1b['shift']());}}}(a337_0x5e48,0xf2526));export function canonicalRabetbaseOperation(_0x458f28){const _0x325c23=a337_0x3093;return[_0x458f28['service'],..._0x458f28[_0x325c23(0x1b8)][_0x325c23(0x1b6)]()[_0x325c23(0x1ab)](/\s+/)]['filter'](Boolean)[_0x325c23(0x1b2)]('.');}function a337_0x3093(_0x15b84a,_0x271d99){_0x15b84a=_0x15b84a-0x1a5;const _0x5e48b4=a337_0x5e48();let _0x309391=_0x5e48b4[_0x15b84a];return _0x309391;}export function createRabetbaseWriteMetadata(_0x5e7a09,_0x265d93,_0x3b8264,_0x202fe2){const _0x350496=a337_0x3093;if(_0x202fe2||_0x3b8264['ok']!==!![]||hasUnresolvedConflicts(_0x3b8264)||_0x5e7a09['risk']!==_0x350496(0x1b1)&&_0x5e7a09[_0x350496(0x1a9)]!==_0x350496(0x1b4))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':'rabetbase.write.completed','operation':_0x265d93,'risk':_0x5e7a09[_0x350496(0x1a9)]}}};}function a337_0x5e48(){const _0x5f4f7b=['length','split','243948uKQEQa','27IKkkDg','data','5451232YpQGzE','7771540eVYPcX','write','join','4104604rWVVpx','high-risk-write','25nJEUUK','trim','984dvDkZf','command','3261167WRpCza','conflicts','5846346lPWsNQ','2474QOMZHl','risk'];a337_0x5e48=function(){return _0x5f4f7b;};return a337_0x5e48();}function hasUnresolvedConflicts(_0x158ecb){const _0x1a3673=a337_0x3093,_0x6d409b=_0x158ecb[_0x1a3673(0x1ae)];return Boolean(_0x6d409b&&typeof _0x6d409b==='object'&&!Array['isArray'](_0x6d409b)&&Array['isArray'](_0x6d409b[_0x1a3673(0x1a6)])&&_0x6d409b['conflicts'][_0x1a3673(0x1aa)]>0x0);}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xd94a6b,_0x9cce09){const _0x5cc83c=a338_0x5a56,_0x109435=_0xd94a6b();while(!![]){try{const _0x2274b5=parseInt(_0x5cc83c(0x15b))/0x1+parseInt(_0x5cc83c(0x13c))/0x2*(parseInt(_0x5cc83c(0x15a))/0x3)+-parseInt(_0x5cc83c(0x157))/0x4*(parseInt(_0x5cc83c(0x159))/0x5)+parseInt(_0x5cc83c(0x14b))/0x6+parseInt(_0x5cc83c(0x150))/0x7*(-parseInt(_0x5cc83c(0x147))/0x8)+parseInt(_0x5cc83c(0x158))/0x9+-parseInt(_0x5cc83c(0x141))/0xa;if(_0x2274b5===_0x9cce09)break;else _0x109435['push'](_0x109435['shift']());}catch(_0x142e3f){_0x109435['push'](_0x109435['shift']());}}}(a338_0x54e0,0xc2bfa));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';import{runSerialized}from'../runtime/queue.js';function a338_0x5a56(_0x274f6f,_0x58648b){_0x274f6f=_0x274f6f-0x13b;const _0x54e0f1=a338_0x54e0();let _0x5a5651=_0x54e0f1[_0x274f6f];return _0x5a5651;}import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x592865,command:_0x4521ac,risk:_0x333266,dryRun:_0x5a885c}){const _0x2a1aab=a338_0x5a56;return JSON['stringify']({'ok':_0x592865['ok'],'command':_0x4521ac,'risk':_0x333266,..._0x5a885c?{'dryRun':!![]}:{},..._0x592865['data']!==undefined?{'data':_0x592865[_0x2a1aab(0x14c)]}:{},..._0x592865[_0x2a1aab(0x13d)]?{'message':_0x592865[_0x2a1aab(0x13d)]}:{}});}};export async function invokeRabetbase(_0x21e484,_0x520c11){const _0x64dec1=a338_0x5a56;throwIfAborted(_0x520c11[_0x64dec1(0x140)]);const _0x3b9188=await resolveRabetbaseInvocation(_0x21e484),_0xdaea41=canonicalRabetbaseOperation(_0x3b9188['definition']);return await confirmWriteBeforeQueue(_0x3b9188[_0x64dec1(0x13f)],_0x3b9188[_0x64dec1(0x148)],_0xdaea41,_0x520c11),runSerialized(async()=>{const _0x538c24=_0x64dec1,_0xd3d2b3={};try{throwIfAborted(_0x520c11['signal']);const _0x184f80=buildConfigFromFlags(_0x3b9188[_0x538c24(0x148)]);!isRoutingRecoveryService(_0x3b9188[_0x538c24(0x13f)]['service'])&&await initGlobalEnvironment(_0x184f80);const _0x27be14=createPipelineEnv(_0x184f80,{..._0x3b9188[_0x538c24(0x148)],'yes':_0x3b9188[_0x538c24(0x13f)]['risk']==='high-risk-write'?!![]:_0x3b9188['rawFlags'][_0x538c24(0x142)],'nonInteractive':!![]},_0x3b9188[_0x538c24(0x154)]);_0x27be14[_0x538c24(0x151)]=!![],_0x27be14[_0x538c24(0x156)]='high-risk-write';const _0x4460d2=withAbortSignal(_0x3b9188[_0x538c24(0x13f)],_0x520c11[_0x538c24(0x140)]),_0x3be331=createRabetbaseRunnerAdapter({'formatOutput'(_0x5afaec,_0x10dd8f){const _0x3444d1=_0x538c24;_0xd3d2b3[_0x3444d1(0x15c)]=_0x5afaec,_0xd3d2b3[_0x3444d1(0x14a)]=_0x10dd8f['command'],_0xd3d2b3[_0x3444d1(0x155)]=_0x10dd8f[_0x3444d1(0x155)],_0xd3d2b3[_0x3444d1(0x152)]=_0x10dd8f[_0x3444d1(0x152)],_0xd3d2b3[_0x3444d1(0x146)]=_0x10dd8f[_0x3444d1(0x146)]===!![];},async 'confirmHighRisk'(){const _0x2284f1=_0x538c24;throw new Error(_0x2284f1(0x14d));}});await runCommand(_0x4460d2,_0x27be14,_0x3be331);if(!_0xd3d2b3[_0x538c24(0x15c)]||!_0xd3d2b3[_0x538c24(0x14a)]||!_0xd3d2b3[_0x538c24(0x155)]||!_0xd3d2b3[_0x538c24(0x152)])throw new Error(_0x538c24(0x153));const _0x51e2b1=_0xd3d2b3[_0x538c24(0x146)]===!![],_0x55ced0=_0x520c11['presentation']??defaultPresentation,_0x4c6d43={'result':_0xd3d2b3[_0x538c24(0x15c)],'command':_0xd3d2b3[_0x538c24(0x14a)],'operation':_0xdaea41,'risk':_0xd3d2b3['risk'],'format':_0xd3d2b3[_0x538c24(0x152)],'dryRun':_0x51e2b1},_0x1d4611=createRabetbaseWriteMetadata(_0x3b9188[_0x538c24(0x13f)],_0xdaea41,_0xd3d2b3[_0x538c24(0x15c)],_0x51e2b1);let _0x27da62;try{_0x27da62=await _0x55ced0['present'](_0x4c6d43);}catch(_0x165c1f){if(!_0x1d4611||_0x55ced0===defaultPresentation)throw _0x165c1f;_0x27da62=await defaultPresentation['present'](_0x4c6d43);}return{'operation':_0xdaea41,'risk':_0xd3d2b3[_0x538c24(0x155)],'mode':_0x51e2b1?'dry-run':_0x538c24(0x13b),'result':_0xd3d2b3['result'],'output':_0x27da62,..._0x1d4611?{'metadata':_0x1d4611}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x56ffb8,_0x2fac0b,_0x230d36,_0x375389){const _0x32571f=a338_0x5a56;if(_0x2fac0b['dryRun']===!![]||_0x56ffb8[_0x32571f(0x155)]!==_0x32571f(0x14e)&&_0x56ffb8[_0x32571f(0x155)]!==_0x32571f(0x14f))return;await _0x375389[_0x32571f(0x149)][_0x32571f(0x13e)](buildRabetbaseConfirmationRequest(_0x56ffb8,_0x230d36,_0x375389[_0x32571f(0x140)]));}function a338_0x54e0(){const _0x37248a=['yes','AbortError','reason','aborted','dryRun','2384488eNDXbd','rawFlags','confirmation','command','3387876IJnUYN','data','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','write','high-risk-write','7TwNXPx','isNonInteractive','format','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','args','risk','riskLevel','857156jwrxnX','5648760uJOwTj','5CMzbpu','3011553rVSSKX','1430693ZRcCaM','result','execute','2WBLEsW','message','confirm','definition','signal','23167900EafbHD'];a338_0x54e0=function(){return _0x37248a;};return a338_0x54e0();}function withAbortSignal(_0x264890,_0x516813){return{..._0x264890,async 'execute'(_0x5328e1){const _0x1fdcd8=a338_0x5a56;return throwIfAborted(_0x516813),_0x264890[_0x1fdcd8(0x13b)]({..._0x5328e1,'signal':_0x516813});}};}function throwIfAborted(_0x4698ac){const _0x28ff54=a338_0x5a56;if(_0x4698ac?.[_0x28ff54(0x145)])throw _0x4698ac[_0x28ff54(0x144)]instanceof Error?_0x4698ac[_0x28ff54(0x144)]:new DOMException('Rabetbase\x20invocation\x20aborted.',_0x28ff54(0x143));}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a339_0x5883de=a339_0x9866;function a339_0x9866(_0xfa573a,_0x4e9916){_0xfa573a=_0xfa573a-0x1c9;const _0x340794=a339_0x3407();let _0x98664c=_0x340794[_0xfa573a];return _0x98664c;}(function(_0xcbd6af,_0x506ce7){const _0x3c3aa7=a339_0x9866,_0x24f9c1=_0xcbd6af();while(!![]){try{const _0x3e05b7=parseInt(_0x3c3aa7(0x1d1))/0x1*(-parseInt(_0x3c3aa7(0x1d0))/0x2)+parseInt(_0x3c3aa7(0x1d4))/0x3*(parseInt(_0x3c3aa7(0x1c9))/0x4)+-parseInt(_0x3c3aa7(0x1cc))/0x5*(parseInt(_0x3c3aa7(0x1d2))/0x6)+-parseInt(_0x3c3aa7(0x1cb))/0x7+parseInt(_0x3c3aa7(0x1ca))/0x8*(parseInt(_0x3c3aa7(0x1ce))/0x9)+parseInt(_0x3c3aa7(0x1d5))/0xa+-parseInt(_0x3c3aa7(0x1cd))/0xb;if(_0x3e05b7===_0x506ce7)break;else _0x24f9c1['push'](_0x24f9c1['shift']());}catch(_0x4a97e7){_0x24f9c1['push'](_0x24f9c1['shift']());}}}(a339_0x3407,0x95113));let tail=Promise[a339_0x5883de(0x1d3)]();export async function runSerialized(_0x4f4bd7){const _0xdc2d9e=a339_0x5883de,_0x556f45=tail;let _0x20c472;tail=new Promise(_0x50a154=>{_0x20c472=_0x50a154;}),await _0x556f45[_0xdc2d9e(0x1cf)](()=>undefined);try{return await _0x4f4bd7();}finally{_0x20c472();}}function a339_0x3407(){const _0x351385=['3498105xEsBms','6389840wTwkXd','4icUHHB','9226136dUKYxK','686231EnoLap','715420hNfRJW','7660070ZtnJYe','9HxVSTz','catch','187342qzEtjM','12zfOPlU','18rLReOL','resolve'];a339_0x3407=function(){return _0x351385;};return a339_0x3407();}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x301382,_0x50c13e){const _0x1910ae=a340_0x4773,_0x552ec3=_0x301382();while(!![]){try{const _0x50abe3=-parseInt(_0x1910ae(0x6c))/0x1+-parseInt(_0x1910ae(0x67))/0x2+-parseInt(_0x1910ae(0x65))/0x3*(parseInt(_0x1910ae(0x7b))/0x4)+parseInt(_0x1910ae(0x69))/0x5*(-parseInt(_0x1910ae(0x74))/0x6)+parseInt(_0x1910ae(0x64))/0x7+parseInt(_0x1910ae(0x6d))/0x8+parseInt(_0x1910ae(0x72))/0x9*(parseInt(_0x1910ae(0x7a))/0xa);if(_0x50abe3===_0x50c13e)break;else _0x552ec3['push'](_0x552ec3['shift']());}catch(_0x28f601){_0x552ec3['push'](_0x552ec3['shift']());}}}(a340_0x5f4b,0xa59ba));import a340_0x11ad25 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a340_0x5f4b(){const _0x4c5d55=['slice','879364HYesjS','input','1099115Upetpb','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','593953EFtezz','9521664Luczet','hint','defaultCommand','run','unknownCommand','4653585vtVvYG','wildcardDef','6SeXMON','flags','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','join','validation','message','10YinybF','4412888hYZzhV','9294159ijwJdj','3eIlMby'];a340_0x5f4b=function(){return _0x4c5d55;};return a340_0x5f4b();}import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a340_0x4773(_0x58ef41,_0x5ee26e){_0x58ef41=_0x58ef41-0x64;const _0x5f4b38=a340_0x5f4b();let _0x47738a=_0x5f4b38[_0x58ef41];return _0x47738a;}import{assertSupportedCommandFlags}from'../framework/supported-flags.js';export async function resolveRabetbaseInvocation(_0x4d7166){const _0x2f3e04=a340_0x4773,_0x2f49a2=a340_0x11ad25('',{'importMeta':import.meta,'argv':[..._0x4d7166],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x38906c=[..._0x2f49a2[_0x2f3e04(0x68)]],_0x2ef704=_0x2f49a2[_0x2f3e04(0x75)],_0x45ca85=_0x38906c[0x0];if(!_0x45ca85)throw CliErrors[_0x2f3e04(0x78)](_0x2f3e04(0x76));const _0x2305e3=resolveRemovedCommand(_0x45ca85,_0x38906c[0x1]);if(_0x2305e3)throw CliErrors[_0x2f3e04(0x78)](_0x2305e3[_0x2f3e04(0x79)],_0x2305e3[_0x2f3e04(0x6e)]);if(_0x45ca85===_0x2f3e04(0x70))throw CliErrors[_0x2f3e04(0x78)](_0x2f3e04(0x6a),_0x2f3e04(0x6b));if(!isKnownService(_0x45ca85))throw CliErrors[_0x2f3e04(0x71)](_0x38906c[_0x2f3e04(0x77)]('\x20'));const _0x340e3e=getServiceEntry(_0x45ca85),_0x5e9b6f=_0x38906c[0x1],_0x53a32f=_0x5e9b6f||_0x340e3e[_0x2f3e04(0x6f)];if(!_0x53a32f){if(_0x340e3e[_0x2f3e04(0x73)])return{'definition':_0x340e3e[_0x2f3e04(0x73)],'rawFlags':_0x2ef704,'args':[]};throw CliErrors['validation']('Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22'+_0x45ca85+'\x22.');}const _0x15c191=findDefinition(_0x45ca85,_0x53a32f);if(_0x15c191)return assertSupportedCommandFlags(_0x15c191,_0x2ef704),{'definition':_0x15c191,'rawFlags':_0x2ef704,'args':_0x38906c[_0x2f3e04(0x66)](0x2)};if(_0x340e3e[_0x2f3e04(0x73)])return{'definition':_0x340e3e['wildcardDef'],'rawFlags':_0x2ef704,'args':[_0x53a32f,..._0x38906c[_0x2f3e04(0x66)](0x2)]};throw CliErrors['unknownCommand'](_0x45ca85+'\x20'+_0x53a32f);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a342_0x4826(_0x284a5f,_0x548277){_0x284a5f=_0x284a5f-0xd8;const _0x3fc666=a342_0x3fc6();let _0x4826d6=_0x3fc666[_0x284a5f];return _0x4826d6;}(function(_0x680692,_0x4e644e){const _0x3c4308=a342_0x4826,_0x1e85d6=_0x680692();while(!![]){try{const _0x4eb41c=parseInt(_0x3c4308(0xf0))/0x1*(parseInt(_0x3c4308(0xe9))/0x2)+-parseInt(_0x3c4308(0xe0))/0x3+parseInt(_0x3c4308(0xe1))/0x4+parseInt(_0x3c4308(0xd8))/0x5*(-parseInt(_0x3c4308(0xec))/0x6)+parseInt(_0x3c4308(0xe3))/0x7+parseInt(_0x3c4308(0xeb))/0x8+-parseInt(_0x3c4308(0xd9))/0x9;if(_0x4eb41c===_0x4e644e)break;else _0x1e85d6['push'](_0x1e85d6['shift']());}catch(_0x2b0bd6){_0x1e85d6['push'](_0x1e85d6['shift']());}}}(a342_0x3fc6,0x59d39));import{randomUUID}from'node:crypto';import{dirname}from'node:path';import{mkdir,open,link,unlink,rename,lstat,readFile}from'node:fs/promises';import{isObject,requireValue}from'./contract.js';export async function readCheckpoint(_0x30c95e){const _0x548879=a342_0x4826;try{const _0x1234ff=await lstat(_0x30c95e);requireValue(_0x1234ff['isFile']()&&!_0x1234ff['isSymbolicLink']()&&_0x1234ff[_0x548879(0xef)]<=0x3d0900,_0x548879(0xdd));const _0x43ead9=JSON[_0x548879(0xdf)](await readFile(_0x30c95e,'utf8'));return requireValue(isObject(_0x43ead9)&&_0x43ead9['kind']==='dataset-design-operation'&&_0x43ead9[_0x548879(0xdc)]===0x1&&typeof _0x43ead9['clientOperationId']===_0x548879(0xe8)&&/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/[_0x548879(0xea)](_0x43ead9[_0x548879(0xe2)])&&typeof _0x43ead9[_0x548879(0xe7)]===_0x548879(0xe8)&&/^[a-f0-9]{64}$/[_0x548879(0xea)](_0x43ead9[_0x548879(0xe7)])&&typeof _0x43ead9[_0x548879(0xed)]===_0x548879(0xe8)&&_0x43ead9[_0x548879(0xed)][_0x548879(0xee)]>0x0&&isObject(_0x43ead9[_0x548879(0xe5)]),_0x548879(0xde)),_0x43ead9;}catch(_0x27a000){if(_0x27a000[_0x548879(0xf1)]==='ENOENT')return undefined;throw _0x27a000;}}function a342_0x3fc6(){const _0x3f3e2d=['test','2301656frqrxv','282svkXtd','identityKey','length','size','183hvyPtH','code','52625Fdgjlt','1645677SCTsDm','EEXIST','sync','schemaVersion','Checkpoint\x20must\x20be\x20a\x20regular\x20JSON\x20file.','Invalid\x20checkpoint;\x20reconcile\x20its\x20original\x20operation\x20before\x20submitting\x20again.','parse','1955592kPGNJR','2847744udSGiW','clientOperationId','382312cLoKhk','.tmp','manifest','ENOENT','inputHash','string','7028gmclJB'];a342_0x3fc6=function(){return _0x3f3e2d;};return a342_0x3fc6();}export async function saveCheckpoint(_0x330634,_0x435bfd,_0x3a0658=![]){const _0x5bc255=a342_0x4826;await mkdir(dirname(_0x330634),{'recursive':!![]});const _0x300774=_0x330634+'.'+randomUUID()+_0x5bc255(0xe4),_0x45ad0b=await open(_0x300774,'wx',0x180);try{await _0x45ad0b['writeFile'](JSON['stringify'](_0x435bfd,null,0x2)+'\x0a'),await _0x45ad0b[_0x5bc255(0xdb)]();}finally{await _0x45ad0b['close']();}try{if(_0x3a0658)await link(_0x300774,_0x330634);else await rename(_0x300774,_0x330634);return!![];}catch(_0x46aacf){if(_0x3a0658&&_0x46aacf[_0x5bc255(0xf1)]===_0x5bc255(0xda))return![];throw _0x46aacf;}finally{await unlink(_0x300774)['catch'](_0x8adb92=>{const _0x4c04c9=_0x5bc255;if(_0x8adb92['code']!==_0x4c04c9(0xe6))throw _0x8adb92;});}}
|