@lovrabet/rabetbase-cli 2.5.11 → 2.5.12-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.d.ts +1 -0
- 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.d.ts +2 -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/references/rabetbase-kb.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(_0x425adb,_0x3407b3){const _0x3c6604=a324_0x576c,_0x16d046=_0x425adb();while(!![]){try{const _0x3821c1=-parseInt(_0x3c6604(0x1e1))/0x1*(parseInt(_0x3c6604(0x1ce))/0x2)+-parseInt(_0x3c6604(0x1d1))/0x3*(-parseInt(_0x3c6604(0x1e6))/0x4)+parseInt(_0x3c6604(0x1d9))/0x5*(parseInt(_0x3c6604(0x1d8))/0x6)+-parseInt(_0x3c6604(0x1d5))/0x7*(parseInt(_0x3c6604(0x1eb))/0x8)+parseInt(_0x3c6604(0x1db))/0x9*(-parseInt(_0x3c6604(0x1d3))/0xa)+parseInt(_0x3c6604(0x1df))/0xb+parseInt(_0x3c6604(0x1e0))/0xc;if(_0x3821c1===_0x3407b3)break;else _0x16d046['push'](_0x16d046['shift']());}catch(_0x50cacc){_0x16d046['push'](_0x16d046['shift']());}}}(a324_0x32d5,0x8112b));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';function a324_0x576c(_0x2515e9,_0x3e63f3){_0x2515e9=_0x2515e9-0x1ce;const _0x32d5f7=a324_0x32d5();let _0x576c28=_0x32d5f7[_0x2515e9];return _0x576c28;}import{applyJqFilter}from'../utils/apply-jq-filter.js';function a324_0x32d5(){const _0x2c4803=['command','update','1232440GYSRtP','endsWith','write','json','hint','10592xFtBNt','jqFilter','jq:\x20','38pMVifF','validation','format','6aPuaXn','url','10AYYsBN','message','2646nfhwHF','stdout','stringify','14358rBXDWg','145loakKZ','_notice','4612797cManGM','trim','error','code','7320346HzaQFU','8515524ClKxqt','27318YBMEFn','data','pretty'];a324_0x32d5=function(){return _0x2c4803;};return a324_0x32d5();}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x27517e,_0xdcbe05){const _0x4cae98=a324_0x576c,_0xb88959=_0x27517e[_0x4cae98(0x1da)],{_notice:_0x3b2c5a,..._0x2172f7}=_0x27517e;void _0x3b2c5a,baseFormatOutput(_0x2172f7,_0xdcbe05),_0xdcbe05[_0x4cae98(0x1d0)]===_0x4cae98(0x1e3)&&printPrettyNotice(_0xb88959);}export function formatCliError(_0x3865b3,_0x5a297c){const _0x507c28=a324_0x576c;if(_0x5a297c['format']===_0x507c28(0x1e3))return![];const _0x29cd17=_0x3865b3[_0x507c28(0x1e2)],_0x1f7660={'ok':![],'command':_0x5a297c[_0x507c28(0x1e4)],'risk':_0x5a297c['risk'],'data':_0x29cd17??null,'error':{'code':_0x3865b3[_0x507c28(0x1de)],'message':_0x3865b3['message'],..._0x3865b3[_0x507c28(0x1ea)]?{'hint':_0x3865b3['hint']}:{}}},_0x33ee6f=_0x5a297c[_0x507c28(0x1d0)]===_0x507c28(0x1e9)?JSON['stringify'](_0x1f7660,null,0x2):JSON[_0x507c28(0x1d7)](_0x1f7660);let _0x207217=_0x33ee6f;if(_0x5a297c[_0x507c28(0x1ec)]?.[_0x507c28(0x1dc)]())try{_0x207217=applyJqFilter(_0x33ee6f,_0x5a297c[_0x507c28(0x1ec)]);}catch(_0x4e52e8){const _0x4f9388=_0x4e52e8 instanceof CliError?_0x4e52e8:CliErrors[_0x507c28(0x1cf)](_0x507c28(0x1ed)+(_0x4e52e8 instanceof Error?_0x4e52e8['message']:String(_0x4e52e8))),_0x3bde47={..._0x1f7660,'error':{'code':_0x4f9388['code'],'message':_0x4f9388['message'],..._0x4f9388[_0x507c28(0x1ea)]?{'hint':_0x4f9388['hint']}:{},'cause':_0x1f7660['error']}};_0x207217=_0x5a297c[_0x507c28(0x1d0)]===_0x507c28(0x1e9)?JSON[_0x507c28(0x1d7)](_0x3bde47,null,0x2):JSON[_0x507c28(0x1d7)](_0x3bde47);}return process[_0x507c28(0x1d6)][_0x507c28(0x1e8)](_0x207217[_0x507c28(0x1e7)]('\x0a')?_0x207217:_0x207217+'\x0a'),!![];}function printPrettyNotice(_0x367ccd){const _0x4eb431=a324_0x576c;if(!_0x367ccd?.[_0x4eb431(0x1e5)])return;console[_0x4eb431(0x1dd)](_0x367ccd[_0x4eb431(0x1e5)][_0x4eb431(0x1d4)]+'\x20('+_0x367ccd[_0x4eb431(0x1e5)][_0x4eb431(0x1d2)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a325_0x3385(){var _0x2ba815=['1978272xwqVcB','33549vvzNhW','766608bCeKtR','1694nzDdjJ','7388ZDvlQc','3492741KQLBcr','192835SplqZH','45HawLEV','13370QYRsTD','30FdomWj','272EBFfOC'];a325_0x3385=function(){return _0x2ba815;};return a325_0x3385();}function a325_0x6f4f(_0xf0af84,_0xd2cf23){_0xf0af84=_0xf0af84-0xf4;var _0x3385fe=a325_0x3385();var _0x6f4f30=_0x3385fe[_0xf0af84];return _0x6f4f30;}(function(_0x45d2b8,_0x14f6a3){var _0xeb7fdd=a325_0x6f4f,_0x1fad1a=_0x45d2b8();while(!![]){try{var _0xaae02c=-parseInt(_0xeb7fdd(0xfc))/0x1*(-parseInt(_0xeb7fdd(0xf7))/0x2)+-parseInt(_0xeb7fdd(0xf4))/0x3*(parseInt(_0xeb7fdd(0xfd))/0x4)+-parseInt(_0xeb7fdd(0xf9))/0x5+parseInt(_0xeb7fdd(0xfe))/0x6+parseInt(_0xeb7fdd(0xf8))/0x7+-parseInt(_0xeb7fdd(0xf5))/0x8*(-parseInt(_0xeb7fdd(0xfa))/0x9)+-parseInt(_0xeb7fdd(0xfb))/0xa*(parseInt(_0xeb7fdd(0xf6))/0xb);if(_0xaae02c===_0x14f6a3)break;else _0x1fad1a['push'](_0x1fad1a['shift']());}catch(_0x1f76c8){_0x1fad1a['push'](_0x1fad1a['shift']());}}}(a325_0x3385,0x65014));export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x30b91f,_0x441506){const _0x37a068=a326_0x556e,_0x1b7ef9=_0x30b91f();while(!![]){try{const _0x1d900a=parseInt(_0x37a068(0x180))/0x1*(-parseInt(_0x37a068(0x183))/0x2)+-parseInt(_0x37a068(0x17a))/0x3+parseInt(_0x37a068(0x177))/0x4*(-parseInt(_0x37a068(0x178))/0x5)+parseInt(_0x37a068(0x16a))/0x6*(-parseInt(_0x37a068(0x182))/0x7)+parseInt(_0x37a068(0x16c))/0x8+-parseInt(_0x37a068(0x172))/0x9*(-parseInt(_0x37a068(0x17c))/0xa)+parseInt(_0x37a068(0x171))/0xb*(parseInt(_0x37a068(0x181))/0xc);if(_0x1d900a===_0x441506)break;else _0x1b7ef9['push'](_0x1b7ef9['shift']());}catch(_0xe95b27){_0x1b7ef9['push'](_0x1b7ef9['shift']());}}}(a326_0x2cab,0x40cb2));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{resolveApiModelSource}from'../api/model-source.js';export function resolveAliasToCode(_0xae443,_0x2343fe,_0x1b7ea0,_0xf333a4,_0x3a844a,_0x46cb96){const _0x8a2b71=a326_0x556e,_0x46e7cc=_0xae443[_0x8a2b71(0x16d)][_0x8a2b71(0x176)](_0x22cc4d=>_0x22cc4d['name']===_0x8a2b71(0x184)&&_0x22cc4d['type']===_0x8a2b71(0x168)),_0x52e810=_0xae443[_0x8a2b71(0x16d)]['some'](_0x2420cb=>_0x2420cb[_0x8a2b71(0x175)]==='alias'&&_0x2420cb[_0x8a2b71(0x179)]===_0x8a2b71(0x168));if(!_0x46e7cc||!_0x52e810)return;const _0x2117a2=_0x2343fe['code']?String(_0x2343fe['code']):'',_0x25ece0=_0x2343fe[_0x8a2b71(0x16f)]?String(_0x2343fe[_0x8a2b71(0x16f)]):'';if(!_0x2117a2&&!_0x25ece0)throw CliErrors['validation']('`'+_0xf333a4+_0x8a2b71(0x17b));if(_0x25ece0&&!_0x2117a2){const _0x43d930=resolveApiModelSource(_0x1b7ea0,_0x3a844a,_0x46cb96),_0x337a09=resolveAlias(_0x1b7ea0,_0x25ece0,undefined,_0x43d930[_0x8a2b71(0x17e)],_0x43d930[_0x8a2b71(0x17f)]);if(!_0x337a09){const _0xc9443b=listAliases(_0x1b7ea0,undefined,_0x43d930[_0x8a2b71(0x17e)],_0x43d930['profileName'])[_0x8a2b71(0x170)](_0x5e0604=>_0x5e0604[_0x8a2b71(0x16f)]),_0xd23883=_0xc9443b[_0x8a2b71(0x17d)]?'Available\x20aliases:\x20'+_0xc9443b[_0x8a2b71(0x16b)](',\x20'):_0x8a2b71(0x173)+_0x1b7ea0+_0x8a2b71(0x169)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors[_0x8a2b71(0x16e)]('Unknown\x20alias\x20\x22'+_0x25ece0+_0x8a2b71(0x174)+_0xd23883);}_0x2343fe[_0x8a2b71(0x184)]=_0x337a09;}}function a326_0x556e(_0x173831,_0x235ac4){_0x173831=_0x173831-0x168;const _0x2cab40=a326_0x2cab();let _0x556ee4=_0x2cab40[_0x173831];return _0x556ee4;}function a326_0x2cab(){const _0xce4137=['9343609jAXnae','20070GFKuKK','No\x20model\x20aliases\x20found\x20in\x20','\x22.\x20','name','some','272MAEByb','18625sirVzt','type','307992EmAVck','`\x20requires\x20either\x20--code\x20or\x20--alias.','40gYvNkI','length','filePath','profileName','2DsAugC','12bStokV','7jdrllw','49524VyITUg','code','string','.\x20Run\x20`','2859996cKrwjV','join','2313672QXPKHT','flags','validation','alias','map'];a326_0x2cab=function(){return _0xce4137;};return a326_0x2cab();}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x212a74,_0x283e0){const _0x153603=a327_0x563d,_0x5df94c=_0x212a74();while(!![]){try{const _0x574efd=-parseInt(_0x153603(0x1b5))/0x1*(-parseInt(_0x153603(0x19c))/0x2)+parseInt(_0x153603(0x19b))/0x3*(-parseInt(_0x153603(0x1a3))/0x4)+-parseInt(_0x153603(0x1c9))/0x5*(parseInt(_0x153603(0x1e5))/0x6)+parseInt(_0x153603(0x1ca))/0x7+parseInt(_0x153603(0x196))/0x8*(parseInt(_0x153603(0x1e8))/0x9)+-parseInt(_0x153603(0x190))/0xa*(parseInt(_0x153603(0x195))/0xb)+-parseInt(_0x153603(0x1aa))/0xc;if(_0x574efd===_0x283e0)break;else _0x5df94c['push'](_0x5df94c['shift']());}catch(_0x26707e){_0x5df94c['push'](_0x5df94c['shift']());}}}(a327_0x3539,0x5c3aa));function a327_0x3539(){const _0x1f42ae=['126psccuM','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','resolveCookie','explicitAppName','Current\x20resolved\x20appcode\x20is\x20\x22','authRequired','712DKetYz','required','Set\x20appcode\x20via\x20`','defaultVerbose','apps','resolveAppCode','production','6654288LVnBff','isNonInteractive','service','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','entries','apiDir','RABETBASE_APPCODE','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','AppCode\x20\x22','resolveApiDomain','cancelled','3559KAlbnk','⚠\x20\x20High-risk\x20operation:\x20','schema','replace','validation','map','filter','cookie','name','doctor','toUpperCase','risk','formatOutput','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','configMissing','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','trim','keys','../constant/domain.js','\x0a\x20\x20','1070sviQcJ','4341267EiJHll','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','resolve','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','mergedCli','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','command','value','object','hint','\x20\x20\x20Continue?\x20[y/N]\x20','join','length','appcode','requiresAppCode','appCode','rawFlags','includes','currentApp','none','../constant/env.js','nonInteractive','message','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','format','catch','defaultApp','282TGRcih','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\x20if\x20this\x20operation\x20is\x20intended.\x20','9YsdBrj','verbose','Edit\x20the\x20config\x20file\x20manually','../core/api-client.js','execute','confirmHighRisk','meowKey','pretty','80qOzbwR','selectedAppName','rejectedFlags','all','has','529078mYYGMn','4146704FOSFct','_notice','riskLevel','find','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','600AHlfgt'];a327_0x3539=function(){return _0x1f42ae;};return a327_0x3539();}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_0x288169}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x178cfc){const _0x41bc33=a327_0x563d;return typeof _0x178cfc==='string'&&_0x178cfc[_0x41bc33(0x1c5)]()?_0x178cfc[_0x41bc33(0x1c5)]():undefined;}function resolveEnvAppCode(){const _0x33111c=a327_0x563d,_0x421bd6=stringFlag(process.env.RABETBASE_APPCODE);if(_0x421bd6)return{'name':_0x33111c(0x1b0),'value':_0x421bd6};const _0x324a81=stringFlag(process.env.LOVRABET_APPCODE);if(_0x324a81)return{'name':'LOVRABET_APPCODE','value':_0x324a81};return undefined;}function hasExplicitAppCode(_0x47813e,_0x36d835){const _0x1a30e3=a327_0x563d;return!!(stringFlag(_0x47813e['appcode'])||stringFlag(_0x36d835[_0x1a30e3(0x1d7)]));}function assertEnvAppCodeNotIgnored(_0x4eaa4d,_0x54f80e,_0x38a37c){const _0x3e4f3e=a327_0x563d;if(!_0x54f80e||_0x38a37c||_0x4eaa4d===_0x54f80e['value'])return;const _0xfbb401=_0x4eaa4d?_0x3e4f3e(0x1a1)+_0x4eaa4d+'\x22.':'No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.';throw CliErrors[_0x3e4f3e(0x1b9)](_0x54f80e[_0x3e4f3e(0x1bd)]+'='+_0x54f80e[_0x3e4f3e(0x1d1)]+_0x3e4f3e(0x1c2)+_0xfbb401+'\x20'+(_0x3e4f3e(0x1c4)+_0x54f80e['name']+'\x22.'));}export function createPipelineEnv(_0x37e785,_0x2df874,_0x3ce0a1=[]){const _0x1196b9=a327_0x563d;return{'rawFlags':_0x2df874,'args':_0x3ce0a1,'resolveAppCode':()=>_0x37e785[_0x1196b9(0x1d9)],'resolveCookie':()=>_0x37e785[_0x1196b9(0x1bc)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a327_0x288169(_0x2df874),'defaultFormat':_0x37e785[_0x1196b9(0x1e2)],'defaultPageSize':_0x37e785['pageSize'],'defaultVerbose':_0x37e785[_0x1196b9(0x1e9)],'apiDir':_0x37e785[_0x1196b9(0x1af)],'riskLevel':_0x37e785[_0x1196b9(0x198)],'selectedAppName':_0x37e785[_0x1196b9(0x1a0)],'mergedCli':{'defaultApp':_0x37e785[_0x1196b9(0x1e4)],'currentApp':_0x37e785[_0x1196b9(0x1dc)],'appCode':_0x37e785[_0x1196b9(0x1d9)],'apps':_0x37e785[_0x1196b9(0x1a7)]}};}export function createRabetbaseRunnerAdapter(_0x3f6634={}){const _0x568c47=a327_0x563d;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x568c47(0x1bb)](_0x21d7a2=>PIPELINE_FLAG_NAMES[_0x568c47(0x194)](_0x21d7a2[_0x568c47(0x1bd)]))[_0x568c47(0x1ba)](({name:_0x26c28d,type:_0x4565df,description:_0x34c67b})=>({'name':_0x26c28d,'type':_0x4565df,'description':_0x34c67b})),'formatOutput':_0x3f6634[_0x568c47(0x1c1)]??formatOutput,'getCommandLabel'(_0x56da25){const _0x113d56=_0x568c47;return CLI_BIN_NAME+'\x20'+_0x56da25['service']+'\x20'+_0x56da25[_0x113d56(0x1d0)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x46e8af,{def:_0x2e68e0}){const _0x51db59=_0x568c47,_0x41e385=_0x46e8af[_0x51db59(0x1db)](_0x51db59(0x1ea))?_0x51db59(0x1e1):_0x51db59(0x1e6)+_0x2e68e0[_0x51db59(0x1c0)]+_0x51db59(0x1e7)+_0x51db59(0x1e1);return CliErrors['validation'](_0x46e8af+_0x51db59(0x1c8)+_0x41e385);}},async 'prepare'(_0x5627f9,_0x5d4db4,_0x35b786,_0x2857c6){const _0x198cd6=_0x568c47,_0x1e43e3=_0x5d4db4[_0x198cd6(0x1af)]||DEFAULT_API_DIR,_0x3264a2=hasExplicitAppCode(_0x35b786,_0x5d4db4[_0x198cd6(0x1da)]),_0x324a12=stringFlag(_0x35b786[_0x198cd6(0x1d7)])||stringFlag(_0x5d4db4[_0x198cd6(0x1da)][_0x198cd6(0x1d7)]),_0x252c5e=_0x5d4db4[_0x198cd6(0x1ce)]?.['apps']??{},_0x3c732f=_0x5d4db4[_0x198cd6(0x191)]||_0x5d4db4['mergedCli']?.[_0x198cd6(0x1dc)]||_0x5d4db4[_0x198cd6(0x1ce)]?.[_0x198cd6(0x1e4)],_0xbb8ae7=_0x324a12?Object[_0x198cd6(0x1ae)](_0x252c5e)[_0x198cd6(0x1bb)](([,_0x556136])=>_0x556136[_0x198cd6(0x1d7)]===_0x324a12)[_0x198cd6(0x1ba)](([_0x44f688])=>_0x44f688):[];if(_0xbb8ae7[_0x198cd6(0x1d6)]>0x1&&!_0x5d4db4[_0x198cd6(0x191)])throw CliErrors[_0x198cd6(0x1b9)](_0x198cd6(0x1b2)+_0x324a12+'\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20'+_0xbb8ae7[_0x198cd6(0x1d5)](',\x20')+'.',_0x198cd6(0x1ad));resolveAliasToCode(_0x5627f9,_0x35b786,_0x1e43e3,_0x2857c6,_0x5d4db4[_0x198cd6(0x1a8)](),_0x3c732f);const _0x26de07=resolveCommandAuthMode(_0x5627f9);let _0x2d67d2='';if(_0x26de07!==_0x198cd6(0x1dd)){_0x2d67d2=_0x5d4db4[_0x198cd6(0x19f)]()||'';if(!_0x2d67d2){if(_0x26de07===_0x198cd6(0x1a4))throw CliErrors[_0x198cd6(0x1a2)]();}else{const {setActiveCookie:_0x20e570}=await import(_0x198cd6(0x1eb));_0x20e570(_0x2d67d2);}}const _0x4a2db1=_0x5d4db4[_0x198cd6(0x1a8)]()??'';if(_0x5627f9[_0x198cd6(0x1d8)]!==![]){if(!_0x3264a2&&_0x3c732f&&!_0x252c5e[_0x3c732f]){const _0x835c41=Object[_0x198cd6(0x1c6)](_0x252c5e);throw CliErrors[_0x198cd6(0x1b9)]('App\x20\x22'+_0x3c732f+_0x198cd6(0x19a),_0x835c41[_0x198cd6(0x1d6)]>0x0?'Available:\x20'+_0x835c41[_0x198cd6(0x1d5)](',\x20')+_0x198cd6(0x1cf)+CLI_BIN_NAME+_0x198cd6(0x1b1):'Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x198cd6(0x1b1));}assertEnvAppCodeNotIgnored(_0x4a2db1,resolveEnvAppCode(),_0x3264a2);if(!_0x4a2db1){const _0x161ea9=Object[_0x198cd6(0x1c6)](_0x252c5e);if(!_0x3c732f&&_0x161ea9[_0x198cd6(0x1d6)]>0x1)throw CliErrors[_0x198cd6(0x1c3)](_0x198cd6(0x1cd)+CLI_BIN_NAME+_0x198cd6(0x1cb)+_0x161ea9[_0x198cd6(0x1d5)](',\x20')+'.');throw CliErrors[_0x198cd6(0x1c3)](_0x198cd6(0x1a5)+CLI_BIN_NAME+_0x198cd6(0x19e));}}return{'defaults':{'booleans':{'verbose':_0x5d4db4[_0x198cd6(0x1a6)]},'numbers':{'pagesize':_0x5d4db4['defaultPageSize']}},'extras':{'appCode':_0x4a2db1,'cookie':_0x2d67d2,'apiDomain':_0x5d4db4[_0x198cd6(0x1b3)](),'apiDir':_0x1e43e3,'selectedAppName':_0x5d4db4[_0x198cd6(0x191)],'mergedCli':_0x5d4db4[_0x198cd6(0x1ce)]}};},'confirmHighRisk':_0x3f6634[_0x568c47(0x1ed)]??(async({env:_0xecbd48,commandLabel:_0x553274})=>{const _0x1c4ac7=_0x568c47;if(_0xecbd48[_0x1c4ac7(0x1ab)])throw CliErrors[_0x1c4ac7(0x1b9)]('High-risk\x20operation\x20`'+_0x553274+_0x1c4ac7(0x19d));await requireConfirmationPrompt({'lines':[_0x1c4ac7(0x1b6)+_0x553274,_0x1c4ac7(0x1d4)],'createCancelledError':_0x2db394=>CliErrors[_0x1c4ac7(0x1b4)](_0x2db394)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x44463d=a327_0x563d,{clearActiveCookie:_0x548c36}=await import(_0x44463d(0x1eb));_0x548c36();}export async function finalizeRabetbaseRuntimeState(){const _0x328a09=a327_0x563d;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x4f715c},{initEnv:_0x4d0ec2}]=await Promise[_0x328a09(0x193)]([import(_0x328a09(0x1c7)),import(_0x328a09(0x1de))]);_0x4f715c(),_0x4d0ec2(_0x328a09(0x1a9));}}export async function runCommand(_0x715208,_0x4f4cb5,_0x1c88ee=terminalRunnerAdapter){assertRejectedFlags(_0x715208,_0x4f4cb5['rawFlags']),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x715208)?withUpdateNotice(_0x715208):_0x715208,_0x4f4cb5,_0x1c88ee);}function assertRejectedFlags(_0x1a046c,_0x1675c3){const _0x5cf434=a327_0x563d;for(const _0x4554e1 of _0x1a046c[_0x5cf434(0x192)]??[]){const _0x5e54a5=GLOBAL_FLAGS[_0x5cf434(0x199)](_0x5632b2=>_0x5632b2[_0x5cf434(0x1bd)]===_0x4554e1[_0x5cf434(0x1bd)]),_0x49d907=new Set([_0x4554e1[_0x5cf434(0x1bd)],toCamelCase(_0x4554e1[_0x5cf434(0x1bd)]),_0x5e54a5?.[_0x5cf434(0x1ee)]]),_0x2ab752=[..._0x49d907]['some'](_0x4f74ee=>{if(!_0x4f74ee)return![];const _0x19918d=_0x1675c3[_0x4f74ee];return _0x19918d!==undefined&&_0x19918d!==null&&_0x19918d!==![];});if(_0x2ab752)throw CliErrors[_0x5cf434(0x1b9)](_0x4554e1[_0x5cf434(0x1e0)],_0x4554e1[_0x5cf434(0x1d3)]);}}function toCamelCase(_0x13a628){const _0x352124=a327_0x563d;return _0x13a628[_0x352124(0x1b8)](/-([a-z])/g,(_0x110dd1,_0x2e3da0)=>_0x2e3da0[_0x352124(0x1bf)]());}function a327_0x563d(_0x5ac002,_0x2b16ca){_0x5ac002=_0x5ac002-0x18f;const _0x35394e=a327_0x3539();let _0x563d2a=_0x35394e[_0x5ac002];return _0x563d2a;}function shouldAttachUpdateNotice(_0x1c76ac){const _0x57aa71=a327_0x563d;if(_0x1c76ac['hasFormat']===![])return![];return!['update',_0x57aa71(0x1b7),_0x57aa71(0x1be)]['includes'](_0x1c76ac[_0x57aa71(0x1ac)]);}function withUpdateNotice(_0x15d4d2){return{..._0x15d4d2,async 'execute'(_0x1d5286){const _0x28fa6f=a327_0x563d,_0x2137eb=shouldResolveUpdateNotice(_0x1d5286)?resolveLatestUpdateNotice()[_0x28fa6f(0x1e3)](()=>null):Promise[_0x28fa6f(0x1cc)](null),_0x2538e3=await _0x15d4d2[_0x28fa6f(0x1ec)](_0x1d5286);return attachUpdateNotice(_0x2538e3,await _0x2137eb);}};}function shouldResolveUpdateNotice(_0x4191a6){const _0x15e127=a327_0x563d;return _0x4191a6[_0x15e127(0x1e2)]===_0x15e127(0x18f)&&!_0x4191a6[_0x15e127(0x1df)];}function attachUpdateNotice(_0x3bb186,_0x444210){const _0x489263=a327_0x563d;if(!_0x444210||!_0x3bb186||typeof _0x3bb186!==_0x489263(0x1d2))return _0x3bb186;const _0x153f2e=_0x3bb186,_0x38f1df=typeof _0x153f2e[_0x489263(0x197)]===_0x489263(0x1d2)&&_0x153f2e[_0x489263(0x197)]!==null?_0x153f2e['_notice']:{};return{..._0x153f2e,'_notice':{..._0x38f1df,'update':_0x444210}};}
|
|
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 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x54f324,_0x28c72f){const _0x44baa2=a328_0x5d26,_0x525983=_0x54f324();while(!![]){try{const _0x45abf3=-parseInt(_0x44baa2(0x1eb))/0x1+-parseInt(_0x44baa2(0x1e3))/0x2+parseInt(_0x44baa2(0x1e6))/0x3*(-parseInt(_0x44baa2(0x1e9))/0x4)+parseInt(_0x44baa2(0x1ec))/0x5+parseInt(_0x44baa2(0x1e7))/0x6+parseInt(_0x44baa2(0x1e8))/0x7*(parseInt(_0x44baa2(0x1e4))/0x8)+parseInt(_0x44baa2(0x1ea))/0x9;if(_0x45abf3===_0x28c72f)break;else _0x525983['push'](_0x525983['shift']());}catch(_0x1fb5bb){_0x525983['push'](_0x525983['shift']());}}}(a328_0x4371,0xaa6fe));import{buildSchemaPayload as a328_0x4e14f1}from'@lovrabet/cli-framework';function a328_0x5d26(_0x30e51a,_0x37d7ae){_0x30e51a=_0x30e51a-0x1e3;const _0x437181=a328_0x4371();let _0x5d2677=_0x437181[_0x30e51a];return _0x5d2677;}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_0x4371(){const _0x10ba21=['3692136AGLaLC','367178bponjy','4UmehkB','4738806PzuFEe','533041LFStcW','2713605zTQgna','2456338bEAQCN','152eRiRvL','../commands/registry.js','665751AEKAiW'];a328_0x4371=function(){return _0x10ba21;};return a328_0x4371();}export async function buildSchemaPayload(){const _0x55ae75=a328_0x5d26,{serviceRegistry:_0x5da784,findDefinition:_0x54a896}=await import(_0x55ae75(0x1e5));return a328_0x4e14f1({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x5da784,'buildAllFlags':buildAllFlags,'findDefinition':_0x54a896});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a329_0x205e(){const _0x517e49=['has','replace','7lVLYAe','meowKey','$1-$2','find','798854fGiMAW','Unsupported\x20flag\x20--','filter','service','toUpperCase','1SadiPF','1985848tSqPjC','\x20--help`\x20to\x20view\x20the\x20current\x20command\x20contract.','strictFlags','11490yznxET','version','flags','add','name','2245101MpBsAM','length','3019685faDOHr','help','724470JQRKLh','2083784grQHMi','alias','81XoermS','\x20for\x20`','command'];a329_0x205e=function(){return _0x517e49;};return a329_0x205e();}(function(_0x20d9d1,_0x18f740){const _0x1ea724=a329_0x36df,_0x251a03=_0x20d9d1();while(!![]){try{const _0x1348ea=parseInt(_0x1ea724(0xdf))/0x1*(parseInt(_0x1ea724(0xda))/0x2)+-parseInt(_0x1ea724(0xca))/0x3+parseInt(_0x1ea724(0xcf))/0x4+-parseInt(_0x1ea724(0xcc))/0x5+-parseInt(_0x1ea724(0xe3))/0x6+-parseInt(_0x1ea724(0xd6))/0x7*(-parseInt(_0x1ea724(0xe0))/0x8)+-parseInt(_0x1ea724(0xd1))/0x9*(-parseInt(_0x1ea724(0xce))/0xa);if(_0x1348ea===_0x18f740)break;else _0x251a03['push'](_0x251a03['shift']());}catch(_0x52bc26){_0x251a03['push'](_0x251a03['shift']());}}}(a329_0x205e,0x71de8));function a329_0x36df(_0x20f031,_0x3ffa16){_0x20f031=_0x20f031-0xc9;const _0x205e9e=a329_0x205e();let _0x36df1d=_0x205e9e[_0x20f031];return _0x36df1d;}import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function assertSupportedCommandFlags(_0xbb91e1,_0x4e523a){const _0x9e2a8d=a329_0x36df;if(!_0xbb91e1[_0x9e2a8d(0xe2)])return;const _0x5aa70d=new Set([_0x9e2a8d(0xcd),_0x9e2a8d(0xe4)]),_0x3f031d=GLOBAL_FLAGS[_0x9e2a8d(0xdc)](_0x5be925=>PIPELINE_FLAG_NAMES[_0x9e2a8d(0xd4)](_0x5be925[_0x9e2a8d(0xc9)]));for(const _0x20c8ed of[..._0xbb91e1[_0x9e2a8d(0xe5)],..._0x3f031d]){addFlagCandidates(_0x5aa70d,_0x20c8ed);}for(const [_0x51f271,_0x111800]of Object['entries'](_0x4e523a)){if(!isExplicitValue(_0x111800)||_0x5aa70d[_0x9e2a8d(0xd4)](_0x51f271))continue;const _0x1d4664=GLOBAL_FLAGS[_0x9e2a8d(0xd9)](_0x2e21ac=>_0x2e21ac[_0x9e2a8d(0xd7)]===_0x51f271)?.[_0x9e2a8d(0xc9)]??toKebabCase(_0x51f271);throw CliErrors['validation'](_0x9e2a8d(0xdb)+_0x1d4664+_0x9e2a8d(0xd2)+CLI_BIN_NAME+'\x20'+_0xbb91e1[_0x9e2a8d(0xdd)]+'\x20'+_0xbb91e1[_0x9e2a8d(0xd3)]+'`.','Run\x20`'+CLI_BIN_NAME+'\x20'+_0xbb91e1['service']+'\x20'+_0xbb91e1[_0x9e2a8d(0xd3)]+_0x9e2a8d(0xe1));}}function addFlagCandidates(_0x32460f,_0x772224){const _0x23fca0=a329_0x36df,_0x5e3f5b=_0x23fca0(0xd7)in _0x772224?[_0x772224[_0x23fca0(0xc9)],_0x772224['meowKey']]:[_0x772224[_0x23fca0(0xc9)],_0x772224[_0x23fca0(0xd0)]];for(const _0x4e55c1 of _0x5e3f5b){if(!_0x4e55c1)continue;_0x32460f[_0x23fca0(0xe6)](_0x4e55c1),_0x32460f[_0x23fca0(0xe6)](toCamelCase(_0x4e55c1));}}function isExplicitValue(_0x9ac6c5){const _0x1da71d=a329_0x36df;return _0x9ac6c5!==undefined&&_0x9ac6c5!==null&&_0x9ac6c5!==![]&&(!Array['isArray'](_0x9ac6c5)||_0x9ac6c5[_0x1da71d(0xcb)]>0x0);}function toCamelCase(_0x3d20e1){const _0x3f7ac3=a329_0x36df;return _0x3d20e1[_0x3f7ac3(0xd5)](/-([a-z])/g,(_0x55aae4,_0x3c63df)=>_0x3c63df[_0x3f7ac3(0xde)]());}function toKebabCase(_0x4e98c0){const _0x5eddd9=a329_0x36df;return _0x4e98c0[_0x5eddd9(0xd5)](/([a-z0-9])([A-Z])/g,_0x5eddd9(0xd8))['toLowerCase']();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a330_0x258c(){var _0x35babe=['8ZdgLSp','364327UdBBky','4vSsRID','3816127wffMNN','5946543leCzva','35320ByBmnF','545430OlhSSx','1245054tFBkPM','1655151ZHmals'];a330_0x258c=function(){return _0x35babe;};return a330_0x258c();}(function(_0x4f295f,_0x2ef8be){var _0x3fe8cd=a330_0x1d7d,_0xca66c9=_0x4f295f();while(!![]){try{var _0xe05552=-parseInt(_0x3fe8cd(0xa2))/0x1+parseInt(_0x3fe8cd(0x9e))/0x2+parseInt(_0x3fe8cd(0xa0))/0x3*(parseInt(_0x3fe8cd(0xa3))/0x4)+-parseInt(_0x3fe8cd(0x9d))/0x5+-parseInt(_0x3fe8cd(0x9f))/0x6+-parseInt(_0x3fe8cd(0x9b))/0x7*(parseInt(_0x3fe8cd(0xa1))/0x8)+parseInt(_0x3fe8cd(0x9c))/0x9;if(_0xe05552===_0x2ef8be)break;else _0xca66c9['push'](_0xca66c9['shift']());}catch(_0x1d0983){_0xca66c9['push'](_0xca66c9['shift']());}}}(a330_0x258c,0x5828a));function a330_0x1d7d(_0x5a9274,_0x1acbc7){_0x5a9274=_0x5a9274-0x9b;var _0x258c6b=a330_0x258c();var _0x1d7dbd=_0x258c6b[_0x5a9274];return _0x1d7dbd;}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.12-beta.1";
|
|
2
|
+
export declare const GIT_TAG = "v2.5.12-beta.1";
|
|
3
|
+
export declare const GIT_COMMIT = "55261b3d";
|
|
4
|
+
export declare const BUILD_TIME = "2026-11-05T08:59:10.261Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a331_0x1ec121=a331_0xc848;(function(_0x110f40,_0x54c6e7){const _0x42d2e3=a331_0xc848,_0x1d0737=_0x110f40();while(!![]){try{const _0x584df1=parseInt(_0x42d2e3(0xfb))/0x1+-parseInt(_0x42d2e3(0xf7))/0x2+-parseInt(_0x42d2e3(0xf2))/0x3*(parseInt(_0x42d2e3(0xf9))/0x4)+-parseInt(_0x42d2e3(0xf4))/0x5+parseInt(_0x42d2e3(0xf6))/0x6+parseInt(_0x42d2e3(0xf3))/0x7*(-parseInt(_0x42d2e3(0xef))/0x8)+parseInt(_0x42d2e3(0xf0))/0x9;if(_0x584df1===_0x54c6e7)break;else _0x1d0737['push'](_0x1d0737['shift']());}catch(_0xf8cd35){_0x1d0737['push'](_0x1d0737['shift']());}}}(a331_0xc785,0x53595));function a331_0xc848(_0x5e194d,_0x1ca0df){_0x5e194d=_0x5e194d-0xef;const _0xc785fa=a331_0xc785();let _0xc848a4=_0xc785fa[_0x5e194d];return _0xc848a4;}export const VERSION=a331_0x1ec121(0xfa);export const GIT_TAG=a331_0x1ec121(0xf8);export const GIT_COMMIT=a331_0x1ec121(0xf1);function a331_0xc785(){const _0x468f7a=['55261b3d','3ZTquNN','147RgaSfJ','3308625VaOBmy','2026-11-05T08:59:10.261Z','414336UTZvVs','827648bYWwWK','v2.5.12-beta.1','2543024EJbjbG','2.5.12-beta.1','510655JthLPA','20248oiBvpE','13735278SUPFys'];a331_0xc785=function(){return _0x468f7a;};return a331_0xc785();}export const BUILD_TIME=a331_0x1ec121(0xf5);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const ROUTING_CATALOG_DIGEST: "
|
|
1
|
+
export declare const ROUTING_CATALOG_DIGEST: "5a3c4ca34546427528221911a6be02953b976d9968c1863c4fdec2d1e7319397";
|
|
2
2
|
export declare const DEFAULT_REGION: "cn";
|
|
3
3
|
export declare const REGION_VALUES: readonly ["cn", "id", "global"];
|
|
4
4
|
export declare const ENABLED_REGION_VALUES: readonly ["cn", "id", "global"];
|
|
@@ -69,6 +69,7 @@ export declare const OFFICIAL_ROUTING_PROFILES: {
|
|
|
69
69
|
readonly runtime: "https://runtime.lovrabet.ai";
|
|
70
70
|
readonly skill: "https://skills.lovrabet.ai";
|
|
71
71
|
readonly kb: "https://api.lovrabet.ai";
|
|
72
|
+
readonly kbService: "https://kb-service.lovrabet.ai";
|
|
72
73
|
readonly app: "https://app.lovrabet.ai";
|
|
73
74
|
};
|
|
74
75
|
readonly daily: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a332_0x565100=a332_0x20ca;function a332_0x5c03(){const _0x3dd0c0=['https://daily-runtime.lovrabet.ai','90JSJeWl','indonesia','127212vrjhJo','https://api.lovrabet.com','https://skills-daily.lovrabet.ai','4771KwQvSz','428540sDvHdJ','https://cdnjs.cloudflare.com/ajax/libs','3524OwPTLK','https://dev.lovrabet.id','8zbNDoP','5a3c4ca34546427528221911a6be02953b976d9968c1863c4fdec2d1e7319397','https://g.lovrabet.ai','https://app.lovrabet.com','https://kb-service-daily.lovrabet.com','Indonesia','Mainland\x20China','11DqtmEe','https://skills.lovrabet.ai','https://runtime.lovrabet.ai','https://daily-api.lovrabet.ai','https://daily-runtime.lovrabet.com','11426510dLzcdh','210602dGxNYK','https://skills-daily.lovrabet.com','https://kb-service.lovrabet.id','40XTorHy','https://daily-api.lovrabet.com','7484553ewfTua','https://api.lovrabet.id','https://user-daily.lovrabet.ai','https://daily.lovrabet.ai','https://kb-service.lovrabet.com','https://g.alicdn.com/code/lib','global','https://app.lovrabet.ai','https://user.lovrabet.ai','https://runtime.lovrabet.com','https://api.lovrabet.ai','251414ybNXoN','https://daily.lovrabet.com','https://kb-service.lovrabet.ai','https://user.lovrabet.id','https://g.lovrabet.com','https://g.lovrabet.id','china','https://runtime.lovrabet.id','9xYsSCL'];a332_0x5c03=function(){return _0x3dd0c0;};return a332_0x5c03();}(function(_0x2a1af4,_0x2bfa06){const _0x190456=a332_0x20ca,_0x1ca5e0=_0x2a1af4();while(!![]){try{const _0x11ab52=parseInt(_0x190456(0xdc))/0x1+parseInt(_0x190456(0xfb))/0x2*(parseInt(_0x190456(0x103))/0x3)+parseInt(_0x190456(0xda))/0x4*(-parseInt(_0x190456(0xee))/0x5)+-parseInt(_0x190456(0xd4))/0x6*(parseInt(_0x190456(0xeb))/0x7)+-parseInt(_0x190456(0xde))/0x8*(parseInt(_0x190456(0xf0))/0x9)+parseInt(_0x190456(0xea))/0xa*(-parseInt(_0x190456(0xe5))/0xb)+-parseInt(_0x190456(0xd6))/0xc*(-parseInt(_0x190456(0xd9))/0xd);if(_0x11ab52===_0x2bfa06)break;else _0x1ca5e0['push'](_0x1ca5e0['shift']());}catch(_0x5424d6){_0x1ca5e0['push'](_0x1ca5e0['shift']());}}}(a332_0x5c03,0xf159e));export const ROUTING_CATALOG_DIGEST=a332_0x565100(0xdf);function a332_0x20ca(_0xf738f2,_0x580ca7){_0xf738f2=_0xf738f2-0xd3;const _0x5c030f=a332_0x5c03();let _0x20caa2=_0x5c030f[_0xf738f2];return _0x20caa2;}export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id',a332_0x565100(0xf6)];export const ENABLED_REGION_VALUES=['cn','id','global'];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a332_0x565100(0xe4),'aliases':[a332_0x565100(0x101)],'serviceDomains':{'production':{'user':'https://user.lovrabet.com','api':a332_0x565100(0xd7),'runtime':a332_0x565100(0xf9),'skill':'https://skills.lovrabet.com','kb':a332_0x565100(0xd7),'kbService':a332_0x565100(0xf4),'app':a332_0x565100(0xe1)},'daily':{'user':'https://user-daily.lovrabet.com','api':a332_0x565100(0xef),'runtime':a332_0x565100(0xe9),'skill':a332_0x565100(0xec),'kb':a332_0x565100(0xef),'kbService':a332_0x565100(0xe2),'app':a332_0x565100(0xfc)}},'cdn':{'libraries':a332_0x565100(0xf5),'lovrabet':a332_0x565100(0xff)},'local':{'origin':'https://dev.lovrabet.com'}},'id':{'enabled':!![],'label':a332_0x565100(0xe3),'aliases':[a332_0x565100(0xd5)],'serviceDomains':{'production':{'user':a332_0x565100(0xfe),'api':a332_0x565100(0xf1),'runtime':a332_0x565100(0x102),'skill':'https://skills.lovrabet.id','kb':a332_0x565100(0xf1),'kbService':a332_0x565100(0xed),'app':'https://app.lovrabet.id'}},'cdn':{'libraries':a332_0x565100(0xdb),'lovrabet':a332_0x565100(0x100)},'local':{'origin':a332_0x565100(0xdd)}},'global':{'enabled':!![],'label':'Global','aliases':[],'serviceDomains':{'production':{'user':a332_0x565100(0xf8),'api':a332_0x565100(0xfa),'runtime':a332_0x565100(0xe7),'skill':a332_0x565100(0xe6),'kb':a332_0x565100(0xfa),'kbService':a332_0x565100(0xfd),'app':a332_0x565100(0xf7)},'daily':{'user':a332_0x565100(0xf2),'api':a332_0x565100(0xe8),'runtime':a332_0x565100(0xd3),'skill':a332_0x565100(0xd8),'kb':a332_0x565100(0xe8),'app':a332_0x565100(0xf3)}},'cdn':{'libraries':a332_0x565100(0xdb),'lovrabet':a332_0x565100(0xe0)},'local':{'origin':'https://dev.lovrabet.ai'}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a333_0x1cef30=a333_0x94d8;(function(_0x2a377c,_0x129eb7){const _0x3a913c=a333_0x94d8,_0x59a587=_0x2a377c();while(!![]){try{const _0x242f95=parseInt(_0x3a913c(0x1b8))/0x1+-parseInt(_0x3a913c(0x1ba))/0x2*(parseInt(_0x3a913c(0x1c1))/0x3)+-parseInt(_0x3a913c(0x1b7))/0x4+-parseInt(_0x3a913c(0x1bf))/0x5+-parseInt(_0x3a913c(0x1c0))/0x6*(parseInt(_0x3a913c(0x1af))/0x7)+-parseInt(_0x3a913c(0x1bb))/0x8*(parseInt(_0x3a913c(0x1b0))/0x9)+parseInt(_0x3a913c(0x1b5))/0xa*(parseInt(_0x3a913c(0x1c4))/0xb);if(_0x242f95===_0x129eb7)break;else _0x59a587['push'](_0x59a587['shift']());}catch(_0x2767b2){_0x59a587['push'](_0x59a587['shift']());}}}(a333_0x51a6,0xf2513));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a333_0x1cef30(0x1b2);export const ENTERPRISE_ROUTING_PROTOCOL='lovrabet-routing/v1';export const ENTERPRISE_ROUTING_KIND=a333_0x1cef30(0x1c3);function a333_0x94d8(_0x515f10,_0xa865b1){_0x515f10=_0x515f10-0x1af;const _0x51a6c7=a333_0x51a6();let _0x94d8a=_0x51a6c7[_0x515f10];return _0x94d8a;}export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a333_0x1cef30(0x1b4),a333_0x1cef30(0x1b3),a333_0x1cef30(0x1c5),'skillDomain',a333_0x1cef30(0x1bc),a333_0x1cef30(0x1b1),a333_0x1cef30(0x1c2),a333_0x1cef30(0x1bd),'certificateDomain'];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a333_0x1cef30(0x1b4),a333_0x1cef30(0x1b3),a333_0x1cef30(0x1c5),a333_0x1cef30(0x1b6),a333_0x1cef30(0x1bc),a333_0x1cef30(0x1c2)];function a333_0x51a6(){const _0x4ea560=['790784TZiIhn','1551488hvhBuo','lovrabet','2408048HSqqkB','56VfSUGu','kbDomain','localDomain','libraries','6424340sSVXCn','296442cYdXbK','3xmIKdq','appDomain','enterprise','42537xIoKaS','runtimeDomain','217TaZfRn','918423afYDIa','kbServiceDomain','a03fe188b2b34518efc5668666c0001d20354882cd7dd70afec902dffe1329c3','apiDomain','userDomain','11310vVioYy','skillDomain'];a333_0x51a6=function(){return _0x4ea560;};return a333_0x51a6();}export const ENTERPRISE_ROUTING_CDN_FIELDS=[a333_0x1cef30(0x1be),a333_0x1cef30(0x1b9)];export const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS=[a333_0x1cef30(0x1be),'lovrabet'];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a334_0x17c2(_0x3c0b9b,_0x458042){_0x3c0b9b=_0x3c0b9b-0x8a;var _0x2f289c=a334_0x2f28();var _0x17c245=_0x2f289c[_0x3c0b9b];return _0x17c245;}function a334_0x2f28(){var _0x3058ea=['12qhoHZT','3819717GfOEkB','152PgTVmU','log','3864573puzouI','35836nwFyMY','10EdqYJr','483765jrGFhR','bold','17GMVbFq','\x20--help','5011575KaNZng','420434oQvnhw','\x20\x20Use\x20','green','4444194UEsnWx'];a334_0x2f28=function(){return _0x3058ea;};return a334_0x2f28();}(function(_0xd6eb83,_0x5c4db9){var _0x297d32=a334_0x17c2,_0x308b2d=_0xd6eb83();while(!![]){try{var _0x312fc1=parseInt(_0x297d32(0x91))/0x1*(-parseInt(_0x297d32(0x8d))/0x2)+parseInt(_0x297d32(0x8f))/0x3*(parseInt(_0x297d32(0x98))/0x4)+parseInt(_0x297d32(0x93))/0x5+parseInt(_0x297d32(0x97))/0x6+-parseInt(_0x297d32(0x94))/0x7*(parseInt(_0x297d32(0x8a))/0x8)+-parseInt(_0x297d32(0x8c))/0x9*(parseInt(_0x297d32(0x8e))/0xa)+parseInt(_0x297d32(0x99))/0xb;if(_0x312fc1===_0x5c4db9)break;else _0x308b2d['push'](_0x308b2d['shift']());}catch(_0x190501){_0x308b2d['push'](_0x308b2d['shift']());}}}(a334_0x2f28,0xaa9dd));import a334_0x217238 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x2e191f=a334_0x17c2;console['log'](),console[_0x2e191f(0x8b)](a334_0x217238[_0x2e191f(0x96)][_0x2e191f(0x90)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x2e191f(0x8b)](),console[_0x2e191f(0x8b)](_0x2e191f(0x95)+a334_0x217238[_0x2e191f(0x96)][_0x2e191f(0x90)](CLI_BIN_NAME+_0x2e191f(0x92))+'\x20to\x20view\x20available\x20commands.'),console[_0x2e191f(0x8b)]();}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x59ec08,_0x2b8d3a){const _0x380e77=a335_0x21a1,_0x2f3508=_0x59ec08();while(!![]){try{const _0x2db3aa=parseInt(_0x380e77(0x1de))/0x1*(parseInt(_0x380e77(0x1eb))/0x2)+-parseInt(_0x380e77(0x1ef))/0x3+-parseInt(_0x380e77(0x1e6))/0x4+parseInt(_0x380e77(0x1e3))/0x5*(-parseInt(_0x380e77(0x1dc))/0x6)+parseInt(_0x380e77(0x1e0))/0x7+-parseInt(_0x380e77(0x1df))/0x8*(-parseInt(_0x380e77(0x1e2))/0x9)+parseInt(_0x380e77(0x1d9))/0xa*(parseInt(_0x380e77(0x1ec))/0xb);if(_0x2db3aa===_0x2b8d3a)break;else _0x2f3508['push'](_0x2f3508['shift']());}catch(_0x38970f){_0x2f3508['push'](_0x2f3508['shift']());}}}(a335_0x138c,0x9b8d0));function a335_0x21a1(_0x517137,_0x318c85){_0x517137=_0x517137-0x1d8;const _0x138cfa=a335_0x138c();let _0x21a135=_0x138cfa[_0x517137];return _0x21a135;}import{installBuiltinSkill}from'./skills/builtin-skill.js';function a335_0x138c(){const _0x988f1f=['FAILED','warn','Installation\x20failed','repairCommand','974pMKzpn','41767wzzYfP','code','installedPath','1793133blHbll','SOURCE_INVALID','Repair\x20with:\x20','1960QwkXyD','skillVersion','\x20at\x20','7217244CEKBaq','installed','2553KfIZFO','4976nyscQD','1984374EyinHE','log','14409AvRHKx','5XhIDUK','changed','\x20via\x20skills@latest','3316424WatVcj'];a335_0x138c=function(){return _0x988f1f;};return a335_0x138c();}export async function runPostinstall(_0x241a00={}){const _0x179347=a335_0x21a1,_0x38cef7=installBuiltinSkill(_0x241a00);if(_0x38cef7['ok']){const _0x33402e=_0x38cef7[_0x179347(0x1e4)]?_0x179347(0x1dd):'already\x20current',_0x4e6cae=_0x38cef7[_0x179347(0x1ee)]?_0x179347(0x1db)+_0x38cef7['installedPath']:_0x179347(0x1e5);return console[_0x179347(0x1e1)]('Rabetbase\x20Built-in\x20Skill\x20'+_0x38cef7[_0x179347(0x1da)]+'\x20'+_0x33402e+_0x4e6cae),_0x38cef7;}const _0x52a6c6='[BUILTIN_SKILL_INSTALL_'+(_0x38cef7[_0x179347(0x1ed)]??_0x179347(0x1e7))+']\x20'+(_0x38cef7['error']??_0x179347(0x1e9))+'.\x20'+(_0x179347(0x1d8)+_0x38cef7[_0x179347(0x1ea)]);if(_0x38cef7[_0x179347(0x1ed)]===_0x179347(0x1f0))throw new Error(_0x52a6c6);return console[_0x179347(0x1e8)](_0x52a6c6),_0x38cef7;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4d4111,_0x9cad94){const _0x37fe02=a336_0x3fd2,_0x3b7d22=_0x4d4111();while(!![]){try{const _0x7883a1=parseInt(_0x37fe02(0xab))/0x1+-parseInt(_0x37fe02(0xb3))/0x2+parseInt(_0x37fe02(0xb4))/0x3*(parseInt(_0x37fe02(0xa2))/0x4)+parseInt(_0x37fe02(0xb5))/0x5+parseInt(_0x37fe02(0xb1))/0x6*(-parseInt(_0x37fe02(0xb0))/0x7)+parseInt(_0x37fe02(0xa7))/0x8*(parseInt(_0x37fe02(0xb6))/0x9)+-parseInt(_0x37fe02(0xa4))/0xa;if(_0x7883a1===_0x9cad94)break;else _0x3b7d22['push'](_0x3b7d22['shift']());}catch(_0x381b75){_0x3b7d22['push'](_0x3b7d22['shift']());}}}(a336_0x4755,0x83cec));function a336_0x3fd2(_0x2f69a5,_0x5d76ba){_0x2f69a5=_0x2f69a5-0xa1;const _0x47558c=a336_0x4755();let _0x3fd245=_0x47558c[_0x2f69a5];return _0x3fd245;}const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x29580c,_0x3b6e58,_0x320119){const _0x3be4aa=a336_0x3fd2,_0x33d5e4=normalizeText(_0x29580c[_0x3be4aa(0xae)],DESCRIPTION_MAX_LENGTH),_0x42a658=_0x33d5e4||normalizeText(defaultDescription(requireWriteRisk(_0x29580c),_0x3b6e58),DESCRIPTION_MAX_LENGTH);return{'operation':_0x3b6e58,'risk':requireWriteRisk(_0x29580c),'description':_0x42a658,..._0x320119?{'signal':_0x320119}:{}};}function a336_0x4755(){const _0x593dd2=['.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.','256CLZaPN','replace','10950380qZquSc','This\x20will\x20run\x20the\x20write\x20','slice','56184CkxlAS','write','risk','high-risk-write','389127BnclAK','This\x20will\x20run\x20the\x20high-risk\x20write\x20','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','confirmationDescription','trim','294XEbzZu','151866IiLBPN','.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.','608178QNVAVr','41376KzFKNQ','4226800nGRfio','1134mleANl','string'];a336_0x4755=function(){return _0x593dd2;};return a336_0x4755();}function requireWriteRisk(_0x20abe8){const _0x4d9dd8=a336_0x3fd2;if(_0x20abe8[_0x4d9dd8(0xa9)]===_0x4d9dd8(0xa8)||_0x20abe8['risk']===_0x4d9dd8(0xaa))return _0x20abe8[_0x4d9dd8(0xa9)];throw new Error(_0x4d9dd8(0xad));}function defaultDescription(_0x4c9c23,_0x39a55f){const _0x2756d9=a336_0x3fd2;if(_0x4c9c23===_0x2756d9(0xaa))return _0x2756d9(0xac)+_0x39a55f+_0x2756d9(0xb2);return _0x2756d9(0xa5)+_0x39a55f+_0x2756d9(0xa1);}function normalizeText(_0x38c551,_0x539f60){const _0x3aac92=a336_0x3fd2;if(typeof _0x38c551!==_0x3aac92(0xb7))return'';return _0x38c551[_0x3aac92(0xa3)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x3aac92(0xa3)](/\s+/g,'\x20')[_0x3aac92(0xaf)]()[_0x3aac92(0xa6)](0x0,_0x539f60);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x7a9ed0,_0x23f45f){const _0x469e5f=a337_0x5747,_0x422170=_0x7a9ed0();while(!![]){try{const _0x33261b=parseInt(_0x469e5f(0xcb))/0x1*(parseInt(_0x469e5f(0xcc))/0x2)+-parseInt(_0x469e5f(0xc8))/0x3+-parseInt(_0x469e5f(0xcf))/0x4+parseInt(_0x469e5f(0xc4))/0x5*(parseInt(_0x469e5f(0xc2))/0x6)+parseInt(_0x469e5f(0xcd))/0x7+-parseInt(_0x469e5f(0xca))/0x8+parseInt(_0x469e5f(0xc7))/0x9;if(_0x33261b===_0x23f45f)break;else _0x422170['push'](_0x422170['shift']());}catch(_0x2d4a78){_0x422170['push'](_0x422170['shift']());}}}(a337_0x3555,0xf2b20));export function canonicalRabetbaseOperation(_0x4c34c3){const _0x734e61=a337_0x5747;return[_0x4c34c3['service'],..._0x4c34c3[_0x734e61(0xd3)][_0x734e61(0xd2)]()[_0x734e61(0xd1)](/\s+/)]['filter'](Boolean)['join']('.');}export function createRabetbaseWriteMetadata(_0x5c863f,_0x753595,_0x125054,_0x29990e){const _0x2fb39b=a337_0x5747;if(_0x29990e||_0x125054['ok']!==!![]||hasUnresolvedConflicts(_0x125054)||_0x5c863f[_0x2fb39b(0xc6)]!==_0x2fb39b(0xc5)&&_0x5c863f[_0x2fb39b(0xc6)]!=='high-risk-write')return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':'rabetbase.write.completed','operation':_0x753595,'risk':_0x5c863f[_0x2fb39b(0xc6)]}}};}function a337_0x5747(_0x35d381,_0x7bc04){_0x35d381=_0x35d381-0xc2;const _0x3555de=a337_0x3555();let _0x57473f=_0x3555de[_0x35d381];return _0x57473f;}function a337_0x3555(){const _0x11c6d9=['17099091AFIDQF','5633643KPRNbs','data','4984856MWMNGB','417OEGQvi','70aXqFwJ','12066369lUCxgd','conflicts','3978484rPzhkr','isArray','split','trim','command','1277142GvitlX','length','20pnArNo','write','risk'];a337_0x3555=function(){return _0x11c6d9;};return a337_0x3555();}function hasUnresolvedConflicts(_0x430e8a){const _0x40735f=a337_0x5747,_0x5815a8=_0x430e8a[_0x40735f(0xc9)];return Boolean(_0x5815a8&&typeof _0x5815a8==='object'&&!Array[_0x40735f(0xd0)](_0x5815a8)&&Array[_0x40735f(0xd0)](_0x5815a8[_0x40735f(0xce)])&&_0x5815a8['conflicts'][_0x40735f(0xc3)]>0x0);}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1c6df2,_0x53a85c){const _0x455074=a338_0x5108,_0x536251=_0x1c6df2();while(!![]){try{const _0x2d9006=parseInt(_0x455074(0x1f2))/0x1+-parseInt(_0x455074(0x1e8))/0x2*(parseInt(_0x455074(0x1fc))/0x3)+parseInt(_0x455074(0x202))/0x4*(parseInt(_0x455074(0x1e2))/0x5)+-parseInt(_0x455074(0x1f3))/0x6*(parseInt(_0x455074(0x1de))/0x7)+-parseInt(_0x455074(0x1dc))/0x8*(parseInt(_0x455074(0x1e7))/0x9)+-parseInt(_0x455074(0x1e3))/0xa+-parseInt(_0x455074(0x1f4))/0xb*(-parseInt(_0x455074(0x1fa))/0xc);if(_0x2d9006===_0x53a85c)break;else _0x536251['push'](_0x536251['shift']());}catch(_0x2aa899){_0x536251['push'](_0x536251['shift']());}}}(a338_0xfde2,0xc09c8));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';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x37fc1e,command:_0x54a3e2,risk:_0x406a92,dryRun:_0x45fc27}){const _0x545538=a338_0x5108;return JSON[_0x545538(0x1e0)]({'ok':_0x37fc1e['ok'],'command':_0x54a3e2,'risk':_0x406a92,..._0x45fc27?{'dryRun':!![]}:{},..._0x37fc1e[_0x545538(0x1e6)]!==undefined?{'data':_0x37fc1e[_0x545538(0x1e6)]}:{},..._0x37fc1e[_0x545538(0x1f0)]?{'message':_0x37fc1e[_0x545538(0x1f0)]}:{}});}};export async function invokeRabetbase(_0x313571,_0x2f2ff5){const _0x635c08=a338_0x5108;throwIfAborted(_0x2f2ff5[_0x635c08(0x1ef)]);const _0x8106dc=await resolveRabetbaseInvocation(_0x313571),_0x109997=canonicalRabetbaseOperation(_0x8106dc[_0x635c08(0x1f5)]);return await confirmWriteBeforeQueue(_0x8106dc['definition'],_0x8106dc[_0x635c08(0x1f8)],_0x109997,_0x2f2ff5),runSerialized(async()=>{const _0x28d2cd=_0x635c08,_0xcba4e5={};try{throwIfAborted(_0x2f2ff5['signal']);const _0x4692db=buildConfigFromFlags(_0x8106dc[_0x28d2cd(0x1f8)]);!isRoutingRecoveryService(_0x8106dc[_0x28d2cd(0x1f5)][_0x28d2cd(0x1fe)])&&await initGlobalEnvironment(_0x4692db);const _0x4de6f8=createPipelineEnv(_0x4692db,{..._0x8106dc['rawFlags'],'yes':_0x8106dc[_0x28d2cd(0x1f5)][_0x28d2cd(0x1eb)]===_0x28d2cd(0x1e5)?!![]:_0x8106dc[_0x28d2cd(0x1f8)]['yes'],'nonInteractive':!![]},_0x8106dc[_0x28d2cd(0x1e4)]);_0x4de6f8[_0x28d2cd(0x1ec)]=!![],_0x4de6f8[_0x28d2cd(0x1f9)]='high-risk-write';const _0x19ec10=withAbortSignal(_0x8106dc['definition'],_0x2f2ff5[_0x28d2cd(0x1ef)]),_0x27ee88=createRabetbaseRunnerAdapter({'formatOutput'(_0x4c2b37,_0x2ae397){const _0x25769e=_0x28d2cd;_0xcba4e5[_0x25769e(0x1ee)]=_0x4c2b37,_0xcba4e5[_0x25769e(0x1f6)]=_0x2ae397[_0x25769e(0x1f6)],_0xcba4e5[_0x25769e(0x1eb)]=_0x2ae397[_0x25769e(0x1eb)],_0xcba4e5[_0x25769e(0x1fd)]=_0x2ae397[_0x25769e(0x1fd)],_0xcba4e5[_0x25769e(0x1ff)]=_0x2ae397[_0x25769e(0x1ff)]===!![];},async 'confirmHighRisk'(){const _0x46eb39=_0x28d2cd;throw new Error(_0x46eb39(0x1fb));}});await runCommand(_0x19ec10,_0x4de6f8,_0x27ee88);if(!_0xcba4e5['result']||!_0xcba4e5[_0x28d2cd(0x1f6)]||!_0xcba4e5[_0x28d2cd(0x1eb)]||!_0xcba4e5[_0x28d2cd(0x1fd)])throw new Error(_0x28d2cd(0x1f7));const _0x18e67e=_0xcba4e5[_0x28d2cd(0x1ff)]===!![],_0x5cf5d0=_0x2f2ff5[_0x28d2cd(0x201)]??defaultPresentation,_0x28874c={'result':_0xcba4e5[_0x28d2cd(0x1ee)],'command':_0xcba4e5['command'],'operation':_0x109997,'risk':_0xcba4e5['risk'],'format':_0xcba4e5[_0x28d2cd(0x1fd)],'dryRun':_0x18e67e},_0x26bf4c=createRabetbaseWriteMetadata(_0x8106dc[_0x28d2cd(0x1f5)],_0x109997,_0xcba4e5[_0x28d2cd(0x1ee)],_0x18e67e);let _0x3ed485;try{_0x3ed485=await _0x5cf5d0[_0x28d2cd(0x1e9)](_0x28874c);}catch(_0x2c979b){if(!_0x26bf4c||_0x5cf5d0===defaultPresentation)throw _0x2c979b;_0x3ed485=await defaultPresentation[_0x28d2cd(0x1e9)](_0x28874c);}return{'operation':_0x109997,'risk':_0xcba4e5[_0x28d2cd(0x1eb)],'mode':_0x18e67e?_0x28d2cd(0x1dd):'execute','result':_0xcba4e5['result'],'output':_0x3ed485,..._0x26bf4c?{'metadata':_0x26bf4c}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x677b11,_0x498731,_0x3b2d79,_0x48eb0c){const _0x5309c2=a338_0x5108;if(_0x498731[_0x5309c2(0x1ff)]===!![]||_0x677b11[_0x5309c2(0x1eb)]!==_0x5309c2(0x1ed)&&_0x677b11['risk']!==_0x5309c2(0x1e5))return;await _0x48eb0c[_0x5309c2(0x1e1)][_0x5309c2(0x1df)](buildRabetbaseConfirmationRequest(_0x677b11,_0x3b2d79,_0x48eb0c[_0x5309c2(0x1ef)]));}function withAbortSignal(_0x7916df,_0x3bc218){return{..._0x7916df,async 'execute'(_0x558a77){return throwIfAborted(_0x3bc218),_0x7916df['execute']({..._0x558a77,'signal':_0x3bc218});}};}function throwIfAborted(_0xfa5453){const _0x2f792f=a338_0x5108;if(_0xfa5453?.['aborted'])throw _0xfa5453['reason']instanceof Error?_0xfa5453[_0x2f792f(0x200)]:new DOMException(_0x2f792f(0x1f1),_0x2f792f(0x1ea));}function a338_0x5108(_0x1b65b3,_0x41b197){_0x1b65b3=_0x1b65b3-0x1dc;const _0xfde273=a338_0xfde2();let _0x510810=_0xfde273[_0x1b65b3];return _0x510810;}function a338_0xfde2(){const _0x1b98c0=['riskLevel','264QSsuOI','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','18924gUgTDQ','format','service','dryRun','reason','presentation','20moMpml','5815976lQlSwr','dry-run','4080559EOgXNr','confirm','stringify','confirmation','1497355sAnrac','13105430aafeiZ','args','high-risk-write','data','18UhOITB','164OMkdAB','present','AbortError','risk','isNonInteractive','write','result','signal','message','Rabetbase\x20invocation\x20aborted.','365438PZFdRN','12dNGHhE','1686905FBUAoa','definition','command','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','rawFlags'];a338_0xfde2=function(){return _0x1b98c0;};return a338_0xfde2();}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a339_0x46e7ab=a339_0x3454;(function(_0x17b47a,_0x2dd1f7){const _0x53e140=a339_0x3454,_0x40eb2b=_0x17b47a();while(!![]){try{const _0x47feb9=-parseInt(_0x53e140(0x10b))/0x1+-parseInt(_0x53e140(0x107))/0x2+parseInt(_0x53e140(0x10c))/0x3*(parseInt(_0x53e140(0x103))/0x4)+-parseInt(_0x53e140(0x108))/0x5*(parseInt(_0x53e140(0x101))/0x6)+-parseInt(_0x53e140(0x102))/0x7*(-parseInt(_0x53e140(0x10a))/0x8)+parseInt(_0x53e140(0x104))/0x9+parseInt(_0x53e140(0x100))/0xa*(parseInt(_0x53e140(0x109))/0xb);if(_0x47feb9===_0x2dd1f7)break;else _0x40eb2b['push'](_0x40eb2b['shift']());}catch(_0x1483d7){_0x40eb2b['push'](_0x40eb2b['shift']());}}}(a339_0x21d6,0xacafc));let tail=Promise[a339_0x46e7ab(0x105)]();function a339_0x21d6(){const _0x3880f1=['42975HPWbUI','resolve','catch','2727634TvIEvU','5YClFzW','77IzkZAJ','8208FDCxqd','1265453GwRgBM','3hOjJim','3131090RrjKQY','3610902eolEEb','2485JFHEhW','5510572AODkmA'];a339_0x21d6=function(){return _0x3880f1;};return a339_0x21d6();}function a339_0x3454(_0x4182bd,_0x3ec441){_0x4182bd=_0x4182bd-0x100;const _0x21d6a0=a339_0x21d6();let _0x3454fe=_0x21d6a0[_0x4182bd];return _0x3454fe;}export async function runSerialized(_0x25c9e2){const _0x39dd9c=a339_0x46e7ab,_0x10e3cd=tail;let _0x12eb99;tail=new Promise(_0x283f54=>{_0x12eb99=_0x283f54;}),await _0x10e3cd[_0x39dd9c(0x106)](()=>undefined);try{return await _0x25c9e2();}finally{_0x12eb99();}}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x54f0ae,_0x300c7a){const _0x201b22=a340_0x1702,_0x184d46=_0x54f0ae();while(!![]){try{const _0x3a1647=parseInt(_0x201b22(0x19d))/0x1+parseInt(_0x201b22(0x194))/0x2*(parseInt(_0x201b22(0x19c))/0x3)+parseInt(_0x201b22(0x195))/0x4*(-parseInt(_0x201b22(0x187))/0x5)+-parseInt(_0x201b22(0x18c))/0x6+-parseInt(_0x201b22(0x19a))/0x7*(parseInt(_0x201b22(0x18d))/0x8)+parseInt(_0x201b22(0x199))/0x9*(parseInt(_0x201b22(0x18e))/0xa)+parseInt(_0x201b22(0x193))/0xb*(parseInt(_0x201b22(0x191))/0xc);if(_0x3a1647===_0x300c7a)break;else _0x184d46['push'](_0x184d46['shift']());}catch(_0x69cc46){_0x184d46['push'](_0x184d46['shift']());}}}(a340_0x5d26,0x23468));function a340_0x5d26(){const _0x243d81=['16faCosT','10xyQarI','defaultCommand','unknownCommand','12eWpasD','run','1357796UeYqzT','44EnZlqx','73052JadQSF','wildcardDef','validation','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','144378nWNXuy','341663IDnZZy','flags','6291XhpJQa','275268wXOVwT','15KEhEic','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','hint','slice','join','983910xeWYbB'];a340_0x5d26=function(){return _0x243d81;};return a340_0x5d26();}import a340_0x1cdd96 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';function a340_0x1702(_0x71d115,_0x294ab0){_0x71d115=_0x71d115-0x187;const _0x5d26be=a340_0x5d26();let _0x170233=_0x5d26be[_0x71d115];return _0x170233;}import{CliErrors}from'../errors.js';import{assertSupportedCommandFlags}from'../framework/supported-flags.js';export async function resolveRabetbaseInvocation(_0x335e15){const _0x3abd92=a340_0x1702,_0x3c4854=a340_0x1cdd96('',{'importMeta':import.meta,'argv':[..._0x335e15],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x2a8abc=[..._0x3c4854['input']],_0x57de9e=_0x3c4854[_0x3abd92(0x19b)],_0x3b61b5=_0x2a8abc[0x0];if(!_0x3b61b5)throw CliErrors[_0x3abd92(0x197)](_0x3abd92(0x188));const _0x2e0d24=resolveRemovedCommand(_0x3b61b5,_0x2a8abc[0x1]);if(_0x2e0d24)throw CliErrors[_0x3abd92(0x197)](_0x2e0d24['message'],_0x2e0d24[_0x3abd92(0x189)]);if(_0x3b61b5===_0x3abd92(0x192))throw CliErrors[_0x3abd92(0x197)]('`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.',_0x3abd92(0x198));if(!isKnownService(_0x3b61b5))throw CliErrors[_0x3abd92(0x190)](_0x2a8abc[_0x3abd92(0x18b)]('\x20'));const _0x3eb74c=getServiceEntry(_0x3b61b5),_0x2d7c38=_0x2a8abc[0x1],_0x2b2460=_0x2d7c38||_0x3eb74c[_0x3abd92(0x18f)];if(!_0x2b2460){if(_0x3eb74c[_0x3abd92(0x196)])return{'definition':_0x3eb74c[_0x3abd92(0x196)],'rawFlags':_0x57de9e,'args':[]};throw CliErrors[_0x3abd92(0x197)]('Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22'+_0x3b61b5+'\x22.');}const _0x1b9116=findDefinition(_0x3b61b5,_0x2b2460);if(_0x1b9116)return assertSupportedCommandFlags(_0x1b9116,_0x57de9e),{'definition':_0x1b9116,'rawFlags':_0x57de9e,'args':_0x2a8abc[_0x3abd92(0x18a)](0x2)};if(_0x3eb74c[_0x3abd92(0x196)])return{'definition':_0x3eb74c['wildcardDef'],'rawFlags':_0x57de9e,'args':[_0x2b2460,..._0x2a8abc[_0x3abd92(0x18a)](0x2)]};throw CliErrors[_0x3abd92(0x190)](_0x3b61b5+'\x20'+_0x2b2460);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4a10b6,_0x254029){const _0x23cbb5=a342_0x2d21,_0x21333d=_0x4a10b6();while(!![]){try{const _0x41dbd8=-parseInt(_0x23cbb5(0xea))/0x1*(parseInt(_0x23cbb5(0xdc))/0x2)+-parseInt(_0x23cbb5(0xef))/0x3+parseInt(_0x23cbb5(0xee))/0x4+parseInt(_0x23cbb5(0xdf))/0x5*(-parseInt(_0x23cbb5(0xf1))/0x6)+-parseInt(_0x23cbb5(0xe2))/0x7+parseInt(_0x23cbb5(0xed))/0x8*(parseInt(_0x23cbb5(0xdd))/0x9)+parseInt(_0x23cbb5(0xf2))/0xa;if(_0x41dbd8===_0x254029)break;else _0x21333d['push'](_0x21333d['shift']());}catch(_0xfc6247){_0x21333d['push'](_0x21333d['shift']());}}}(a342_0x3211,0x54181));import{randomUUID}from'node:crypto';function a342_0x3211(){const _0x591bfe=['ENOENT','26023WkxZMJ','length','catch','491336dxFbPA','2025344bbhKcg','1502301VlQYMZ','sync','4392QCqIWs','10331920qfHJDg','isSymbolicLink','size','code','schemaVersion','clientOperationId','kind','test','16HlbOhv','45JzAIPy','close','4520YSpAoX','inputHash','parse','920395YcdKOc','Checkpoint\x20must\x20be\x20a\x20regular\x20JSON\x20file.','identityKey','.tmp','string','manifest','dataset-design-operation'];a342_0x3211=function(){return _0x591bfe;};return a342_0x3211();}import{dirname}from'node:path';import{mkdir,open,link,unlink,rename,lstat,readFile}from'node:fs/promises';import{isObject,requireValue}from'./contract.js';function a342_0x2d21(_0x28a90a,_0x13985c){_0x28a90a=_0x28a90a-0xd8;const _0x32111e=a342_0x3211();let _0x2d21d8=_0x32111e[_0x28a90a];return _0x2d21d8;}export async function readCheckpoint(_0x3dc2b5){const _0x5700bc=a342_0x2d21;try{const _0x3c1e54=await lstat(_0x3dc2b5);requireValue(_0x3c1e54['isFile']()&&!_0x3c1e54[_0x5700bc(0xf3)]()&&_0x3c1e54[_0x5700bc(0xf4)]<=0x3d0900,_0x5700bc(0xe3));const _0x19fe6a=JSON[_0x5700bc(0xe1)](await readFile(_0x3dc2b5,'utf8'));return requireValue(isObject(_0x19fe6a)&&_0x19fe6a[_0x5700bc(0xda)]===_0x5700bc(0xe8)&&_0x19fe6a[_0x5700bc(0xd8)]===0x1&&typeof _0x19fe6a[_0x5700bc(0xd9)]===_0x5700bc(0xe6)&&/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/['test'](_0x19fe6a[_0x5700bc(0xd9)])&&typeof _0x19fe6a[_0x5700bc(0xe0)]===_0x5700bc(0xe6)&&/^[a-f0-9]{64}$/[_0x5700bc(0xdb)](_0x19fe6a[_0x5700bc(0xe0)])&&typeof _0x19fe6a[_0x5700bc(0xe4)]===_0x5700bc(0xe6)&&_0x19fe6a[_0x5700bc(0xe4)][_0x5700bc(0xeb)]>0x0&&isObject(_0x19fe6a[_0x5700bc(0xe7)]),'Invalid\x20checkpoint;\x20reconcile\x20its\x20original\x20operation\x20before\x20submitting\x20again.'),_0x19fe6a;}catch(_0x7c60dd){if(_0x7c60dd[_0x5700bc(0xf5)]===_0x5700bc(0xe9))return undefined;throw _0x7c60dd;}}export async function saveCheckpoint(_0x5d45ad,_0x52726e,_0x19e641=![]){const _0x5e1ce8=a342_0x2d21;await mkdir(dirname(_0x5d45ad),{'recursive':!![]});const _0x203e48=_0x5d45ad+'.'+randomUUID()+_0x5e1ce8(0xe5),_0x4c1888=await open(_0x203e48,'wx',0x180);try{await _0x4c1888['writeFile'](JSON['stringify'](_0x52726e,null,0x2)+'\x0a'),await _0x4c1888[_0x5e1ce8(0xf0)]();}finally{await _0x4c1888[_0x5e1ce8(0xde)]();}try{if(_0x19e641)await link(_0x203e48,_0x5d45ad);else await rename(_0x203e48,_0x5d45ad);return!![];}catch(_0x415155){if(_0x19e641&&_0x415155[_0x5e1ce8(0xf5)]==='EEXIST')return![];throw _0x415155;}finally{await unlink(_0x203e48)[_0x5e1ce8(0xec)](_0x47c686=>{const _0x393b29=_0x5e1ce8;if(_0x47c686[_0x393b29(0xf5)]!==_0x393b29(0xe9))throw _0x47c686;});}}
|