@lovrabet/rabetbase-cli 2.5.6 → 2.5.7
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.d.ts +2 -0
- package/lib/commands/flow/page-list.js +1 -0
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.d.ts +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.d.ts +6 -2
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/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.d.ts +26 -6
- 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.d.ts +12 -0
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/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/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +8 -4
- package/skills/rabetbase/guides/approval-flow-development-workflow.md +52 -13
- package/skills/rabetbase/guides/backend-function.md +26 -4
- package/skills/rabetbase/guides/bff-creation-workflow.md +9 -0
- package/skills/rabetbase/guides/cross-database-bff.md +1 -0
- package/skills/rabetbase/guides/custom-page-flow-sdk.md +2 -0
- package/skills/rabetbase/guides/data-api-guidelines.md +2 -0
- package/skills/rabetbase/guides/flow-config-examples.md +75 -0
- package/skills/rabetbase/guides/form-flow-start.md +61 -0
- package/skills/rabetbase/guides/typescript-sdk.md +1 -1
- package/skills/rabetbase/knowledge/approval-flow/config-json-schema.md +18 -4
- package/skills/rabetbase/references/rabetbase-codegen-sdk.md +5 -4
- package/skills/rabetbase/references/rabetbase-flow-commands.md +21 -2
- package/skills/rabetbase/references/rabetbase-flow-resources.md +21 -3
- package/skills/rabetbase/references/rabetbase-flow-runtime-boundary.md +6 -2
- package/skills/rabetbase/references/rabetbase-kb.md +4 -1
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +5 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3de34e,_0x1ca332){const _0xd6f72c=a324_0x41de,_0x253b07=_0x3de34e();while(!![]){try{const _0x668368=-parseInt(_0xd6f72c(0xba))/0x1+parseInt(_0xd6f72c(0xbc))/0x2*(-parseInt(_0xd6f72c(0xb9))/0x3)+-parseInt(_0xd6f72c(0xb3))/0x4+-parseInt(_0xd6f72c(0xbe))/0x5*(-parseInt(_0xd6f72c(0xab))/0x6)+-parseInt(_0xd6f72c(0xae))/0x7+parseInt(_0xd6f72c(0xac))/0x8+parseInt(_0xd6f72c(0xa9))/0x9*(parseInt(_0xd6f72c(0xbb))/0xa);if(_0x668368===_0x1ca332)break;else _0x253b07['push'](_0x253b07['shift']());}catch(_0x4543a7){_0x253b07['push'](_0x253b07['shift']());}}}(a324_0x4dcd,0xcc4a6));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a324_0x4dcd(){const _0x4f1bbf=['string','6298530uARBeu','name','flags','alias','some','378676CMrSDR','\x22.\x20','Available\x20aliases:\x20','filePath','map','join','1365198FDVEag','545126RUdkZF','110oGjVzf','2JfarNx','`\x20requires\x20either\x20--code\x20or\x20--alias.','5KoxKLU','profileName','Unknown\x20alias\x20\x22','453834qWTadA','code','8527776ftzUYG','6843544XXFZrJ'];a324_0x4dcd=function(){return _0x4f1bbf;};return a324_0x4dcd();}function a324_0x41de(_0x4a7b5a,_0x458eaf){_0x4a7b5a=_0x4a7b5a-0xa7;const _0x4dcdce=a324_0x4dcd();let _0x41dec4=_0x4dcdce[_0x4a7b5a];return _0x41dec4;}import{resolveApiModelSource}from'../api/model-source.js';export function resolveAliasToCode(_0x345ccd,_0x1029f6,_0x1b85f5,_0x2e15de,_0x40c6ef,_0x593918){const _0x365dc5=a324_0x41de,_0x505123=_0x345ccd[_0x365dc5(0xb0)][_0x365dc5(0xb2)](_0x4f9b37=>_0x4f9b37['name']===_0x365dc5(0xaa)&&_0x4f9b37['type']===_0x365dc5(0xad)),_0xe82af6=_0x345ccd[_0x365dc5(0xb0)][_0x365dc5(0xb2)](_0x292f12=>_0x292f12[_0x365dc5(0xaf)]===_0x365dc5(0xb1)&&_0x292f12['type']===_0x365dc5(0xad));if(!_0x505123||!_0xe82af6)return;const _0x1bb5b7=_0x1029f6[_0x365dc5(0xaa)]?String(_0x1029f6[_0x365dc5(0xaa)]):'',_0x50e09f=_0x1029f6[_0x365dc5(0xb1)]?String(_0x1029f6[_0x365dc5(0xb1)]):'';if(!_0x1bb5b7&&!_0x50e09f)throw CliErrors['validation']('`'+_0x2e15de+_0x365dc5(0xbd));if(_0x50e09f&&!_0x1bb5b7){const _0x4d5c37=resolveApiModelSource(_0x1b85f5,_0x40c6ef,_0x593918),_0xfed8b8=resolveAlias(_0x1b85f5,_0x50e09f,undefined,_0x4d5c37[_0x365dc5(0xb6)],_0x4d5c37[_0x365dc5(0xa7)]);if(!_0xfed8b8){const _0x59fef9=listAliases(_0x1b85f5,undefined,_0x4d5c37['filePath'],_0x4d5c37[_0x365dc5(0xa7)])[_0x365dc5(0xb7)](_0x5a0de6=>_0x5a0de6[_0x365dc5(0xb1)]),_0x22a319=_0x59fef9['length']?_0x365dc5(0xb5)+_0x59fef9[_0x365dc5(0xb8)](',\x20'):'No\x20model\x20aliases\x20found\x20in\x20'+_0x1b85f5+'.\x20Run\x20`'+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors['validation'](_0x365dc5(0xa8)+_0x50e09f+_0x365dc5(0xb4)+_0x22a319);}_0x1029f6[_0x365dc5(0xaa)]=_0xfed8b8;}}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x415ee7,_0x747cfe){const _0x4df7bf=a324_0x5c6a,_0x17c0cc=_0x415ee7();while(!![]){try{const _0x4585ef=parseInt(_0x4df7bf(0x1c8))/0x1*(parseInt(_0x4df7bf(0x1b5))/0x2)+-parseInt(_0x4df7bf(0x1be))/0x3*(parseInt(_0x4df7bf(0x1ae))/0x4)+parseInt(_0x4df7bf(0x1d5))/0x5*(parseInt(_0x4df7bf(0x1d0))/0x6)+parseInt(_0x4df7bf(0x1b0))/0x7+-parseInt(_0x4df7bf(0x1a2))/0x8+-parseInt(_0x4df7bf(0x1cd))/0x9+-parseInt(_0x4df7bf(0x186))/0xa*(-parseInt(_0x4df7bf(0x1da))/0xb);if(_0x4585ef===_0x747cfe)break;else _0x17c0cc['push'](_0x17c0cc['shift']());}catch(_0x3a98fa){_0x17c0cc['push'](_0x17c0cc['shift']());}}}(a324_0x29e1,0xe9eb1));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 a324_0x3cff75}from'../utils/is-non-interactive.js';function a324_0x29e1(){const _0x15b654=['currentApp','apps','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','explicitAppName','4LUJUMH','catch','1788661BITVhk','keys','resolve','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','execute','1420846mZNUGm','all','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','cancelled','Current\x20resolved\x20appcode\x20is\x20\x22','rejectedFlags','resolveCookie','name','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','4988859AGqLSr','replace','resolveAppCode','trim','authRequired','update','App\x20\x22','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','pageSize','appCode','1sJHoLa','selectedAppName','risk','validation','defaultApp','6957225jHbCht','message','command','6TaXgoh','mergedCli','string','apiDir','format','8322775rAGRij','../constant/env.js','cookie','join','confirmHighRisk','193369eUiLrI','Available:\x20','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','configMissing','verbose','requiresAppCode','../constant/domain.js','670jwegBy','required','has','\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','schema','pretty','High-risk\x20operation\x20`','rawFlags','Edit\x20the\x20config\x20file\x20manually','meowKey','resolveApiDomain','filter','\x0a\x20\x20','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','../core/api-client.js','toUpperCase','length','doctor','Set\x20appcode\x20via\x20`','service','none','includes','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','map','appcode','some','LOVRABET_APPCODE','3313496oCpDEW','_notice','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','object','formatOutput','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','RABETBASE_APPCODE','hasFormat'];a324_0x29e1=function(){return _0x15b654;};return a324_0x29e1();}import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function a324_0x5c6a(_0x565ee6,_0x103ecf){_0x565ee6=_0x565ee6-0x180;const _0x29e154=a324_0x29e1();let _0x5c6a76=_0x29e154[_0x565ee6];return _0x5c6a76;}function stringFlag(_0x1a59e8){const _0x41aa57=a324_0x5c6a;return typeof _0x1a59e8===_0x41aa57(0x1d2)&&_0x1a59e8[_0x41aa57(0x1c1)]()?_0x1a59e8[_0x41aa57(0x1c1)]():undefined;}function resolveEnvAppCode(){const _0x469c36=a324_0x5c6a,_0x4f2be9=stringFlag(process.env.RABETBASE_APPCODE);if(_0x4f2be9)return{'name':_0x469c36(0x1a8),'value':_0x4f2be9};const _0x257cb3=stringFlag(process.env.LOVRABET_APPCODE);if(_0x257cb3)return{'name':_0x469c36(0x1a1),'value':_0x257cb3};return undefined;}function hasExplicitAppCode(_0xc84b1,_0x52b2b6){const _0x20cddd=a324_0x5c6a;return!!(stringFlag(_0xc84b1['appcode'])||stringFlag(_0x52b2b6[_0x20cddd(0x19f)]));}function assertEnvAppCodeNotIgnored(_0x11698c,_0x5a7f8a,_0x304fb3){const _0x5f2bb0=a324_0x5c6a;if(!_0x5a7f8a||_0x304fb3||_0x11698c===_0x5a7f8a['value'])return;const _0x49c602=_0x11698c?_0x5f2bb0(0x1b9)+_0x11698c+'\x22.':_0x5f2bb0(0x19d);throw CliErrors[_0x5f2bb0(0x1cb)](_0x5a7f8a[_0x5f2bb0(0x1bc)]+'='+_0x5a7f8a['value']+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0x49c602+'\x20'+(_0x5f2bb0(0x18a)+_0x5a7f8a[_0x5f2bb0(0x1bc)]+'\x22.'));}export function createPipelineEnv(_0x1c1e7b,_0x2d9770,_0x282976=[]){const _0x30267c=a324_0x5c6a;return{'rawFlags':_0x2d9770,'args':_0x282976,'resolveAppCode':()=>_0x1c1e7b[_0x30267c(0x1c7)],'resolveCookie':()=>_0x1c1e7b[_0x30267c(0x1d7)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a324_0x3cff75(_0x2d9770),'defaultFormat':_0x1c1e7b['format'],'defaultPageSize':_0x1c1e7b[_0x30267c(0x1c6)],'defaultVerbose':_0x1c1e7b[_0x30267c(0x183)],'apiDir':_0x1c1e7b['apiDir'],'riskLevel':_0x1c1e7b['riskLevel'],'selectedAppName':_0x1c1e7b[_0x30267c(0x1ad)],'mergedCli':{'defaultApp':_0x1c1e7b[_0x30267c(0x1cc)],'currentApp':_0x1c1e7b[_0x30267c(0x1aa)],'appCode':_0x1c1e7b[_0x30267c(0x1c7)],'apps':_0x1c1e7b[_0x30267c(0x1ab)]}};}export function createRabetbaseRunnerAdapter(_0x248acc={}){const _0x1b0b33=a324_0x5c6a;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x1b0b33(0x192)](_0x32c391=>PIPELINE_FLAG_NAMES[_0x1b0b33(0x188)](_0x32c391[_0x1b0b33(0x1bc)]))[_0x1b0b33(0x19e)](({name:_0x46d290,type:_0x1fbb79,description:_0x5c5788})=>({'name':_0x46d290,'type':_0x1fbb79,'description':_0x5c5788})),'formatOutput':_0x248acc[_0x1b0b33(0x1a6)]??formatOutput,'getCommandLabel'(_0x11a953){const _0xa8730d=_0x1b0b33;return CLI_BIN_NAME+'\x20'+_0x11a953[_0xa8730d(0x19a)]+'\x20'+_0x11a953[_0xa8730d(0x1cf)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x2349c9,{def:_0x53af7f}){const _0x387796=_0x1b0b33,_0x24e75d=_0x2349c9[_0x387796(0x19c)](_0x387796(0x18f))?_0x387796(0x1bd):_0x387796(0x1c5)+_0x53af7f[_0x387796(0x1ca)]+_0x387796(0x1ac)+'AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.';return CliErrors[_0x387796(0x1cb)](_0x2349c9+_0x387796(0x193)+_0x24e75d);}},async 'prepare'(_0x1ede8c,_0x327203,_0x1bf83d,_0x162502){const _0x2c9912=_0x1b0b33,_0x1e5cec=_0x327203[_0x2c9912(0x1d3)]||DEFAULT_API_DIR,_0x2d18d1=hasExplicitAppCode(_0x1bf83d,_0x327203[_0x2c9912(0x18e)]),_0x405ed0=stringFlag(_0x1bf83d[_0x2c9912(0x19f)])||stringFlag(_0x327203[_0x2c9912(0x18e)][_0x2c9912(0x19f)]),_0xbb5e57=_0x327203[_0x2c9912(0x1d1)]?.[_0x2c9912(0x1ab)]??{},_0x47ba02=_0x327203[_0x2c9912(0x1c9)]||_0x327203[_0x2c9912(0x1d1)]?.[_0x2c9912(0x1aa)]||_0x327203[_0x2c9912(0x1d1)]?.[_0x2c9912(0x1cc)],_0x346651=_0x405ed0?Object['entries'](_0xbb5e57)[_0x2c9912(0x192)](([,_0x338b8c])=>_0x338b8c['appcode']===_0x405ed0)['map'](([_0x1d1a66])=>_0x1d1a66):[];if(_0x346651[_0x2c9912(0x197)]>0x1&&!_0x327203[_0x2c9912(0x1c9)])throw CliErrors['validation']('AppCode\x20\x22'+_0x405ed0+_0x2c9912(0x189)+_0x346651['join'](',\x20')+'.','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.');resolveAliasToCode(_0x1ede8c,_0x1bf83d,_0x1e5cec,_0x162502,_0x327203[_0x2c9912(0x1c0)](),_0x47ba02);const _0x16966d=resolveCommandAuthMode(_0x1ede8c);let _0xbacbe7='';if(_0x16966d!==_0x2c9912(0x19b)){_0xbacbe7=_0x327203[_0x2c9912(0x1bb)]()||'';if(!_0xbacbe7){if(_0x16966d===_0x2c9912(0x187))throw CliErrors[_0x2c9912(0x1c2)]();}else{const {setActiveCookie:_0x1f1b68}=await import(_0x2c9912(0x195));_0x1f1b68(_0xbacbe7);}}const _0x6d2cec=_0x327203[_0x2c9912(0x1c0)]()??'';if(_0x1ede8c[_0x2c9912(0x184)]!==![]){if(!_0x2d18d1&&_0x47ba02&&!_0xbb5e57[_0x47ba02]){const _0x186aa6=Object[_0x2c9912(0x1b1)](_0xbb5e57);throw CliErrors[_0x2c9912(0x1cb)](_0x2c9912(0x1c4)+_0x47ba02+_0x2c9912(0x1b7),_0x186aa6[_0x2c9912(0x197)]>0x0?_0x2c9912(0x180)+_0x186aa6[_0x2c9912(0x1d8)](',\x20')+_0x2c9912(0x194)+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(_0x6d2cec,resolveEnvAppCode(),_0x2d18d1);if(!_0x6d2cec){const _0x22d21a=Object[_0x2c9912(0x1b1)](_0xbb5e57);if(!_0x47ba02&&_0x22d21a[_0x2c9912(0x197)]>0x1)throw CliErrors[_0x2c9912(0x182)](_0x2c9912(0x1a7)+CLI_BIN_NAME+_0x2c9912(0x1a4)+_0x22d21a[_0x2c9912(0x1d8)](',\x20')+'.');throw CliErrors[_0x2c9912(0x182)](_0x2c9912(0x199)+CLI_BIN_NAME+_0x2c9912(0x1b3));}}return{'defaults':{'booleans':{'verbose':_0x327203['defaultVerbose']},'numbers':{'pagesize':_0x327203['defaultPageSize']}},'extras':{'appCode':_0x6d2cec,'cookie':_0xbacbe7,'apiDomain':_0x327203[_0x2c9912(0x191)](),'apiDir':_0x1e5cec,'selectedAppName':_0x327203[_0x2c9912(0x1c9)],'mergedCli':_0x327203[_0x2c9912(0x1d1)]}};},'confirmHighRisk':_0x248acc[_0x1b0b33(0x1d9)]??(async({env:_0x5c0d63,commandLabel:_0x335b4c})=>{const _0x253b6a=_0x1b0b33;if(_0x5c0d63['isNonInteractive'])throw CliErrors[_0x253b6a(0x1cb)](_0x253b6a(0x18d)+_0x335b4c+_0x253b6a(0x181));await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x335b4c,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x4a68f3=>CliErrors[_0x253b6a(0x1b8)](_0x4a68f3)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x5a4ce0=a324_0x5c6a,{clearActiveCookie:_0x5b4cde}=await import(_0x5a4ce0(0x195));_0x5b4cde();}export async function finalizeRabetbaseRuntimeState(){const _0x2bfd5a=a324_0x5c6a;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x914d1a},{initEnv:_0x15c3ac}]=await Promise[_0x2bfd5a(0x1b6)]([import(_0x2bfd5a(0x185)),import(_0x2bfd5a(0x1d6))]);_0x914d1a(),_0x15c3ac('production');}}export async function runCommand(_0x149e30,_0x12243a,_0x3505e9=terminalRunnerAdapter){assertRejectedFlags(_0x149e30,_0x12243a['rawFlags']),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x149e30)?withUpdateNotice(_0x149e30):_0x149e30,_0x12243a,_0x3505e9);}function assertRejectedFlags(_0x5eed87,_0x341411){const _0x1a98eb=a324_0x5c6a;for(const _0x2b0246 of _0x5eed87[_0x1a98eb(0x1ba)]??[]){const _0x217ff6=GLOBAL_FLAGS['find'](_0x58600e=>_0x58600e[_0x1a98eb(0x1bc)]===_0x2b0246['name']),_0x51597b=new Set([_0x2b0246['name'],toCamelCase(_0x2b0246[_0x1a98eb(0x1bc)]),_0x217ff6?.[_0x1a98eb(0x190)]]),_0x55248f=[..._0x51597b][_0x1a98eb(0x1a0)](_0x21e8ba=>{if(!_0x21e8ba)return![];const _0x1c8c0a=_0x341411[_0x21e8ba];return _0x1c8c0a!==undefined&&_0x1c8c0a!==null&&_0x1c8c0a!==![];});if(_0x55248f)throw CliErrors[_0x1a98eb(0x1cb)](_0x2b0246[_0x1a98eb(0x1ce)],_0x2b0246['hint']);}}function toCamelCase(_0x46bfcd){const _0x157043=a324_0x5c6a;return _0x46bfcd[_0x157043(0x1bf)](/-([a-z])/g,(_0x461325,_0x8dc4d8)=>_0x8dc4d8[_0x157043(0x196)]());}function shouldAttachUpdateNotice(_0x189ec2){const _0x3a6332=a324_0x5c6a;if(_0x189ec2[_0x3a6332(0x1a9)]===![])return![];return![_0x3a6332(0x1c3),_0x3a6332(0x18b),_0x3a6332(0x198)][_0x3a6332(0x19c)](_0x189ec2[_0x3a6332(0x19a)]);}function withUpdateNotice(_0x3574a2){return{..._0x3574a2,async 'execute'(_0x1afea4){const _0x1ee573=a324_0x5c6a,_0x3cc59e=shouldResolveUpdateNotice(_0x1afea4)?resolveLatestUpdateNotice()[_0x1ee573(0x1af)](()=>null):Promise[_0x1ee573(0x1b2)](null),_0x135a19=await _0x3574a2[_0x1ee573(0x1b4)](_0x1afea4);return attachUpdateNotice(_0x135a19,await _0x3cc59e);}};}function shouldResolveUpdateNotice(_0x4e94b3){const _0x4c87bd=a324_0x5c6a;return _0x4e94b3[_0x4c87bd(0x1d4)]===_0x4c87bd(0x18c)&&!_0x4e94b3['nonInteractive'];}function attachUpdateNotice(_0x379412,_0x621a6a){const _0x45a89d=a324_0x5c6a;if(!_0x621a6a||!_0x379412||typeof _0x379412!==_0x45a89d(0x1a5))return _0x379412;const _0x50b47e=_0x379412,_0x9a95fc=typeof _0x50b47e[_0x45a89d(0x1a3)]==='object'&&_0x50b47e[_0x45a89d(0x1a3)]!==null?_0x50b47e[_0x45a89d(0x1a3)]:{};return{..._0x50b47e,'_notice':{..._0x9a95fc,'update':_0x621a6a}};}
|
|
1
|
+
(function(_0x19c592,_0x2fd0e4){const _0x2634f4=a325_0x32e9,_0x58876d=_0x19c592();while(!![]){try{const _0x56205d=parseInt(_0x2634f4(0x126))/0x1*(parseInt(_0x2634f4(0x115))/0x2)+parseInt(_0x2634f4(0x105))/0x3*(-parseInt(_0x2634f4(0x112))/0x4)+parseInt(_0x2634f4(0xea))/0x5+parseInt(_0x2634f4(0xf5))/0x6*(parseInt(_0x2634f4(0x125))/0x7)+parseInt(_0x2634f4(0xe4))/0x8+parseInt(_0x2634f4(0xe9))/0x9*(-parseInt(_0x2634f4(0xfe))/0xa)+-parseInt(_0x2634f4(0xfc))/0xb;if(_0x56205d===_0x2fd0e4)break;else _0x58876d['push'](_0x58876d['shift']());}catch(_0xf48795){_0x58876d['push'](_0x58876d['shift']());}}}(a325_0xc5fd,0x82e5f));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 a325_0x49857b}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x2dc86d){const _0x3675f3=a325_0x32e9;return typeof _0x2dc86d==='string'&&_0x2dc86d[_0x3675f3(0x133)]()?_0x2dc86d[_0x3675f3(0x133)]():undefined;}function a325_0xc5fd(){const _0x4e76ac=['\x0a\x20\x20','explicitAppName','join','replace','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','4ZIOrcq','rejectedFlags','High-risk\x20operation\x20`','23250GExyeQ','isNonInteractive','filter','resolve','includes','appcode','risk','apiDir','App\x20\x22','riskLevel','all','hint','service','validation','LOVRABET_APPCODE','entries','5041239JRAKiG','71EEEfcD','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','rawFlags','_notice','required','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','../constant/domain.js','format','defaultPageSize','RABETBASE_APPCODE','command','name','pageSize','trim','length','some','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','toUpperCase','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','resolveAppCode','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','doctor','1729064uWvHwT','execute','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','value','catch','10926SnwdFd','4441660mGucmM','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','schema','currentApp','cancelled','map','meowKey','Available:\x20','hasFormat','../core/api-client.js','pretty','6jzYODy','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','selectedAppName','resolveApiDomain','appCode','defaultApp','Edit\x20the\x20config\x20file\x20manually','10402205wcAAmR','Set\x20appcode\x20via\x20`','5510pwcTed','object','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20','nonInteractive','apps','verbose','1497867UyXgzh','formatOutput','mergedCli','cookie','configMissing','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','message'];a325_0xc5fd=function(){return _0x4e76ac;};return a325_0xc5fd();}function resolveEnvAppCode(){const _0xdf7468=a325_0x32e9,_0x4d1679=stringFlag(process.env.RABETBASE_APPCODE);if(_0x4d1679)return{'name':_0xdf7468(0x12f),'value':_0x4d1679};const _0x348124=stringFlag(process.env.LOVRABET_APPCODE);if(_0x348124)return{'name':_0xdf7468(0x123),'value':_0x348124};return undefined;}function hasExplicitAppCode(_0x1b13b8,_0x312fa8){const _0x905eb6=a325_0x32e9;return!!(stringFlag(_0x1b13b8[_0x905eb6(0x11a)])||stringFlag(_0x312fa8[_0x905eb6(0x11a)]));}function a325_0x32e9(_0x3aa943,_0x511670){_0x3aa943=_0x3aa943-0xdc;const _0xc5fd36=a325_0xc5fd();let _0x32e9ce=_0xc5fd36[_0x3aa943];return _0x32e9ce;}function assertEnvAppCodeNotIgnored(_0x58650b,_0x2c4223,_0x387f2e){const _0x3c050b=a325_0x32e9;if(!_0x2c4223||_0x387f2e||_0x58650b===_0x2c4223[_0x3c050b(0xe7)])return;const _0xca14fb=_0x58650b?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0x58650b+'\x22.':_0x3c050b(0xe0);throw CliErrors[_0x3c050b(0x122)](_0x2c4223[_0x3c050b(0x131)]+'='+_0x2c4223[_0x3c050b(0xe7)]+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0xca14fb+'\x20'+(_0x3c050b(0xde)+_0x2c4223['name']+'\x22.'));}export function createPipelineEnv(_0x529159,_0x51ba9b,_0x4ce8ce=[]){const _0x5921ec=a325_0x32e9;return{'rawFlags':_0x51ba9b,'args':_0x4ce8ce,'resolveAppCode':()=>_0x529159[_0x5921ec(0xf9)],'resolveCookie':()=>_0x529159[_0x5921ec(0x108)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a325_0x49857b(_0x51ba9b),'defaultFormat':_0x529159[_0x5921ec(0x12d)],'defaultPageSize':_0x529159[_0x5921ec(0x132)],'defaultVerbose':_0x529159[_0x5921ec(0x104)],'apiDir':_0x529159['apiDir'],'riskLevel':_0x529159[_0x5921ec(0x11e)],'selectedAppName':_0x529159[_0x5921ec(0x10d)],'mergedCli':{'defaultApp':_0x529159[_0x5921ec(0xfa)],'currentApp':_0x529159[_0x5921ec(0xed)],'appCode':_0x529159[_0x5921ec(0xf9)],'apps':_0x529159[_0x5921ec(0x103)]}};}export function createRabetbaseRunnerAdapter(_0x1c90c6={}){const _0x3d9775=a325_0x32e9;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x27aa7b=>PIPELINE_FLAG_NAMES['has'](_0x27aa7b[_0x3d9775(0x131)]))[_0x3d9775(0xef)](({name:_0x1f7275,type:_0x189b1f,description:_0x50b96a})=>({'name':_0x1f7275,'type':_0x189b1f,'description':_0x50b96a})),'formatOutput':_0x1c90c6[_0x3d9775(0x106)]??formatOutput,'getCommandLabel'(_0x404c6c){const _0x28d719=_0x3d9775;return CLI_BIN_NAME+'\x20'+_0x404c6c[_0x28d719(0x121)]+'\x20'+_0x404c6c[_0x28d719(0x130)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x588da7,{def:_0x130e88}){const _0x2021a6=_0x3d9775,_0x1ddc45=_0x588da7[_0x2021a6(0x119)](_0x2021a6(0xfb))?_0x2021a6(0x12b):_0x2021a6(0xe6)+_0x130e88[_0x2021a6(0x11b)]+_0x2021a6(0x127)+_0x2021a6(0x12b);return CliErrors['validation'](_0x588da7+_0x2021a6(0x10c)+_0x1ddc45);}},async 'prepare'(_0x56ccdd,_0x1d994a,_0x400c9f,_0x35d60a){const _0x352206=_0x3d9775,_0x1fa58e=_0x1d994a[_0x352206(0x11c)]||DEFAULT_API_DIR,_0x47e0b4=hasExplicitAppCode(_0x400c9f,_0x1d994a['rawFlags']),_0x2e7361=stringFlag(_0x400c9f[_0x352206(0x11a)])||stringFlag(_0x1d994a[_0x352206(0x128)]['appcode']),_0x54854a=_0x1d994a[_0x352206(0x107)]?.[_0x352206(0x103)]??{},_0x150242=_0x1d994a[_0x352206(0xf7)]||_0x1d994a[_0x352206(0x107)]?.[_0x352206(0xed)]||_0x1d994a[_0x352206(0x107)]?.[_0x352206(0xfa)],_0x382978=_0x2e7361?Object[_0x352206(0x124)](_0x54854a)[_0x352206(0x117)](([,_0x553a9e])=>_0x553a9e[_0x352206(0x11a)]===_0x2e7361)[_0x352206(0xef)](([_0x423a77])=>_0x423a77):[];if(_0x382978[_0x352206(0xdc)]>0x1&&!_0x1d994a[_0x352206(0xf7)])throw CliErrors[_0x352206(0x122)]('AppCode\x20\x22'+_0x2e7361+_0x352206(0x101)+_0x382978[_0x352206(0x10e)](',\x20')+'.',_0x352206(0x10a));resolveAliasToCode(_0x56ccdd,_0x400c9f,_0x1fa58e,_0x35d60a,_0x1d994a['resolveAppCode'](),_0x150242);const _0x216021=resolveCommandAuthMode(_0x56ccdd);let _0x3bb711='';if(_0x216021!=='none'){_0x3bb711=_0x1d994a['resolveCookie']()||'';if(!_0x3bb711){if(_0x216021===_0x352206(0x12a))throw CliErrors['authRequired']();}else{const {setActiveCookie:_0x4d8a86}=await import(_0x352206(0xf3));_0x4d8a86(_0x3bb711);}}const _0x407552=_0x1d994a[_0x352206(0xe1)]()??'';if(_0x56ccdd['requiresAppCode']!==![]){if(!_0x47e0b4&&_0x150242&&!_0x54854a[_0x150242]){const _0x4f9b78=Object['keys'](_0x54854a);throw CliErrors[_0x352206(0x122)](_0x352206(0x11d)+_0x150242+'\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.',_0x4f9b78['length']>0x0?_0x352206(0xf1)+_0x4f9b78[_0x352206(0x10e)](',\x20')+_0x352206(0x111)+CLI_BIN_NAME+_0x352206(0x100):_0x352206(0x110)+CLI_BIN_NAME+'\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.');}assertEnvAppCodeNotIgnored(_0x407552,resolveEnvAppCode(),_0x47e0b4);if(!_0x407552){const _0x3aa7da=Object['keys'](_0x54854a);if(!_0x150242&&_0x3aa7da[_0x352206(0xdc)]>0x1)throw CliErrors['configMissing']('Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`'+CLI_BIN_NAME+_0x352206(0xf6)+_0x3aa7da[_0x352206(0x10e)](',\x20')+'.');throw CliErrors[_0x352206(0x109)](_0x352206(0xfd)+CLI_BIN_NAME+_0x352206(0xe2));}}return{'defaults':{'booleans':{'verbose':_0x1d994a['defaultVerbose']},'numbers':{'pagesize':_0x1d994a[_0x352206(0x12e)]}},'extras':{'appCode':_0x407552,'cookie':_0x3bb711,'apiDomain':_0x1d994a[_0x352206(0xf8)](),'apiDir':_0x1fa58e,'selectedAppName':_0x1d994a[_0x352206(0xf7)],'mergedCli':_0x1d994a['mergedCli']}};},'confirmHighRisk':_0x1c90c6['confirmHighRisk']??(async({env:_0x5525e1,commandLabel:_0x1775a9})=>{const _0x301373=_0x3d9775;if(_0x5525e1[_0x301373(0x116)])throw CliErrors['validation'](_0x301373(0x114)+_0x1775a9+_0x301373(0xeb));await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x1775a9,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x2c839f=>CliErrors[_0x301373(0xee)](_0x2c839f)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x12fd4c=a325_0x32e9,{clearActiveCookie:_0x6a13dd}=await import(_0x12fd4c(0xf3));_0x6a13dd();}export async function finalizeRabetbaseRuntimeState(){const _0x2d9ef3=a325_0x32e9;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x1b7d8d},{initEnv:_0x46fef7}]=await Promise[_0x2d9ef3(0x11f)]([import(_0x2d9ef3(0x12c)),import('../constant/env.js')]);_0x1b7d8d(),_0x46fef7('production');}}export async function runCommand(_0x3af1e5,_0x2cffc8,_0x84ddf8=terminalRunnerAdapter){assertRejectedFlags(_0x3af1e5,_0x2cffc8['rawFlags']),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x3af1e5)?withUpdateNotice(_0x3af1e5):_0x3af1e5,_0x2cffc8,_0x84ddf8);}function assertRejectedFlags(_0x184d4d,_0x20d25a){const _0x4607ee=a325_0x32e9;for(const _0x44282f of _0x184d4d[_0x4607ee(0x113)]??[]){const _0x417544=GLOBAL_FLAGS['find'](_0x3fb4cc=>_0x3fb4cc[_0x4607ee(0x131)]===_0x44282f[_0x4607ee(0x131)]),_0x52a03d=new Set([_0x44282f[_0x4607ee(0x131)],toCamelCase(_0x44282f['name']),_0x417544?.[_0x4607ee(0xf0)]]),_0x459607=[..._0x52a03d][_0x4607ee(0xdd)](_0x31789c=>{if(!_0x31789c)return![];const _0x16f50b=_0x20d25a[_0x31789c];return _0x16f50b!==undefined&&_0x16f50b!==null&&_0x16f50b!==![];});if(_0x459607)throw CliErrors['validation'](_0x44282f[_0x4607ee(0x10b)],_0x44282f[_0x4607ee(0x120)]);}}function toCamelCase(_0x118dc2){const _0x459eb0=a325_0x32e9;return _0x118dc2[_0x459eb0(0x10f)](/-([a-z])/g,(_0x48ffc6,_0x57c398)=>_0x57c398[_0x459eb0(0xdf)]());}function shouldAttachUpdateNotice(_0x178ea6){const _0x48412c=a325_0x32e9;if(_0x178ea6[_0x48412c(0xf2)]===![])return![];return!['update',_0x48412c(0xec),_0x48412c(0xe3)][_0x48412c(0x119)](_0x178ea6[_0x48412c(0x121)]);}function withUpdateNotice(_0x480767){return{..._0x480767,async 'execute'(_0x5389cf){const _0x1b69f7=a325_0x32e9,_0x15d00d=shouldResolveUpdateNotice(_0x5389cf)?resolveLatestUpdateNotice()[_0x1b69f7(0xe8)](()=>null):Promise[_0x1b69f7(0x118)](null),_0x4d11b8=await _0x480767[_0x1b69f7(0xe5)](_0x5389cf);return attachUpdateNotice(_0x4d11b8,await _0x15d00d);}};}function shouldResolveUpdateNotice(_0x5f539a){const _0x196faa=a325_0x32e9;return _0x5f539a[_0x196faa(0x12d)]===_0x196faa(0xf4)&&!_0x5f539a[_0x196faa(0x102)];}function attachUpdateNotice(_0xb5a975,_0x4ae38a){const _0x354f33=a325_0x32e9;if(!_0x4ae38a||!_0xb5a975||typeof _0xb5a975!==_0x354f33(0xff))return _0xb5a975;const _0x462395=_0xb5a975,_0x2ab9c3=typeof _0x462395['_notice']===_0x354f33(0xff)&&_0x462395['_notice']!==null?_0x462395[_0x354f33(0x129)]:{};return{..._0x462395,'_notice':{..._0x2ab9c3,'update':_0x4ae38a}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x24b57e,_0x482bf0){const _0x226d65=a326_0x3d6d,_0x3c85e3=_0x24b57e();while(!![]){try{const _0x506cce=parseInt(_0x226d65(0x147))/0x1*(parseInt(_0x226d65(0x141))/0x2)+-parseInt(_0x226d65(0x145))/0x3*(-parseInt(_0x226d65(0x142))/0x4)+parseInt(_0x226d65(0x143))/0x5*(-parseInt(_0x226d65(0x13e))/0x6)+parseInt(_0x226d65(0x140))/0x7*(-parseInt(_0x226d65(0x13d))/0x8)+-parseInt(_0x226d65(0x13f))/0x9+parseInt(_0x226d65(0x13c))/0xa+parseInt(_0x226d65(0x146))/0xb;if(_0x506cce===_0x482bf0)break;else _0x3c85e3['push'](_0x3c85e3['shift']());}catch(_0x452885){_0x3c85e3['push'](_0x3c85e3['shift']());}}}(a326_0x1701,0xc51c7));import{buildSchemaPayload as a326_0x5d58ba}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a326_0x1701(){const _0x3c33f9=['13540842kMvTws','35ihhKnj','46NNiFRD','1016dsBEDo','10MSZYNg','../commands/registry.js','2190fABkOX','17746399QhSsvP','22181yvdnRE','8572740EgQfLI','605672ettQjL','1427148aCfndk'];a326_0x1701=function(){return _0x3c33f9;};return a326_0x1701();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';function a326_0x3d6d(_0x3e24a1,_0x4a406a){_0x3e24a1=_0x3e24a1-0x13c;const _0x17019b=a326_0x1701();let _0x3d6d75=_0x17019b[_0x3e24a1];return _0x3d6d75;}export async function buildSchemaPayload(){const _0x347408=a326_0x3d6d,{serviceRegistry:_0x44b906,findDefinition:_0x20b4bd}=await import(_0x347408(0x144));return a326_0x5d58ba({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x44b906,'buildAllFlags':buildAllFlags,'findDefinition':_0x20b4bd});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x32be15,_0x110280){const _0x1d41e8=a327_0x355d,_0x38ebd8=_0x32be15();while(!![]){try{const _0x436770=-parseInt(_0x1d41e8(0xb4))/0x1*(parseInt(_0x1d41e8(0xba))/0x2)+parseInt(_0x1d41e8(0xaf))/0x3+-parseInt(_0x1d41e8(0xc9))/0x4*(-parseInt(_0x1d41e8(0xbf))/0x5)+parseInt(_0x1d41e8(0xc0))/0x6*(-parseInt(_0x1d41e8(0xb3))/0x7)+-parseInt(_0x1d41e8(0xb6))/0x8*(-parseInt(_0x1d41e8(0xb0))/0x9)+parseInt(_0x1d41e8(0xc1))/0xa+-parseInt(_0x1d41e8(0xb9))/0xb;if(_0x436770===_0x110280)break;else _0x38ebd8['push'](_0x38ebd8['shift']());}catch(_0x1682ea){_0x38ebd8['push'](_0x38ebd8['shift']());}}}(a327_0x1e59,0xac827));function a327_0x355d(_0x1ea7e4,_0x1b36b9){_0x1ea7e4=_0x1ea7e4-0xae;const _0x1e5916=a327_0x1e59();let _0x355dec=_0x1e5916[_0x1ea7e4];return _0x355dec;}import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function assertSupportedCommandFlags(_0x321684,_0x219342){const _0x2aa65d=a327_0x355d;if(!_0x321684[_0x2aa65d(0xc7)])return;const _0x5b58d0=new Set([_0x2aa65d(0xbb),_0x2aa65d(0xb7)]),_0x3b2363=GLOBAL_FLAGS['filter'](_0x4edf5b=>PIPELINE_FLAG_NAMES[_0x2aa65d(0xc2)](_0x4edf5b[_0x2aa65d(0xb2)]));for(const _0x4d1994 of[..._0x321684['flags'],..._0x3b2363]){addFlagCandidates(_0x5b58d0,_0x4d1994);}for(const [_0x544b18,_0x52e1cf]of Object['entries'](_0x219342)){if(!isExplicitValue(_0x52e1cf)||_0x5b58d0[_0x2aa65d(0xc2)](_0x544b18))continue;const _0x1c1eac=GLOBAL_FLAGS['find'](_0x40c7ec=>_0x40c7ec[_0x2aa65d(0xbd)]===_0x544b18)?.['name']??toKebabCase(_0x544b18);throw CliErrors[_0x2aa65d(0xc8)](_0x2aa65d(0xb5)+_0x1c1eac+_0x2aa65d(0xbe)+CLI_BIN_NAME+'\x20'+_0x321684[_0x2aa65d(0xb1)]+'\x20'+_0x321684['command']+'`.','Run\x20`'+CLI_BIN_NAME+'\x20'+_0x321684[_0x2aa65d(0xb1)]+'\x20'+_0x321684[_0x2aa65d(0xb8)]+'\x20--help`\x20to\x20view\x20the\x20current\x20command\x20contract.');}}function addFlagCandidates(_0x4873c1,_0x1aed4d){const _0x5dd40d=a327_0x355d,_0x52a245=_0x5dd40d(0xbd)in _0x1aed4d?[_0x1aed4d[_0x5dd40d(0xb2)],_0x1aed4d['meowKey']]:[_0x1aed4d[_0x5dd40d(0xb2)],_0x1aed4d['alias']];for(const _0x16e8a5 of _0x52a245){if(!_0x16e8a5)continue;_0x4873c1[_0x5dd40d(0xc6)](_0x16e8a5),_0x4873c1['add'](toCamelCase(_0x16e8a5));}}function isExplicitValue(_0x2ee44f){const _0x327295=a327_0x355d;return _0x2ee44f!==undefined&&_0x2ee44f!==null&&_0x2ee44f!==![]&&(!Array[_0x327295(0xae)](_0x2ee44f)||_0x2ee44f[_0x327295(0xc3)]>0x0);}function toCamelCase(_0x1fc9f9){const _0x4f31ea=a327_0x355d;return _0x1fc9f9[_0x4f31ea(0xc4)](/-([a-z])/g,(_0x28b06e,_0x53bd0e)=>_0x53bd0e[_0x4f31ea(0xbc)]());}function toKebabCase(_0x3832cd){const _0x1f130f=a327_0x355d;return _0x3832cd['replace'](/([a-z0-9])([A-Z])/g,_0x1f130f(0xc5))['toLowerCase']();}function a327_0x1e59(){const _0x1450aa=['toUpperCase','meowKey','\x20for\x20`','955iohPSu','130866JmBSmA','7849780VaJqVu','has','length','replace','$1-$2','add','strictFlags','validation','21732khvaVy','isArray','1976013ZLswRS','1503pgyyIR','service','name','84LtRBmI','18aqkJQs','Unsupported\x20flag\x20--','52776mNORkd','version','command','18250694zeHNfe','106174oQoctZ','help'];a327_0x1e59=function(){return _0x1450aa;};return a327_0x1e59();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x49c636,_0x1b2592){var _0x3604d3=a328_0xc050,_0x296b1c=_0x49c636();while(!![]){try{var _0x26d977=parseInt(_0x3604d3(0xbb))/0x1*(-parseInt(_0x3604d3(0xbc))/0x2)+parseInt(_0x3604d3(0xb8))/0x3+-parseInt(_0x3604d3(0xb6))/0x4+-parseInt(_0x3604d3(0xbd))/0x5*(-parseInt(_0x3604d3(0xb4))/0x6)+parseInt(_0x3604d3(0xba))/0x7*(parseInt(_0x3604d3(0xb3))/0x8)+-parseInt(_0x3604d3(0xb5))/0x9*(-parseInt(_0x3604d3(0xb7))/0xa)+-parseInt(_0x3604d3(0xb9))/0xb;if(_0x26d977===_0x1b2592)break;else _0x296b1c['push'](_0x296b1c['shift']());}catch(_0x471548){_0x296b1c['push'](_0x296b1c['shift']());}}}(a328_0x72ed,0x9af98));function a328_0x72ed(){var _0x56dbef=['3068456hclMnw','4608294pRbhcv','65133spLrgm','3694988TSonuC','490JHlumS','2833920lAJZUM','8736233FAWOxb','7OAEYap','3nwJggF','65422xHaVOt','5whprSq'];a328_0x72ed=function(){return _0x56dbef;};return a328_0x72ed();}function a328_0xc050(_0x16c617,_0x2f86af){_0x16c617=_0x16c617-0xb3;var _0x72edf=a328_0x72ed();var _0xc0501d=_0x72edf[_0x16c617];return _0xc0501d;}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-10-
|
|
1
|
+
export declare const VERSION = "2.5.7";
|
|
2
|
+
export declare const GIT_TAG = "v2.5.7";
|
|
3
|
+
export declare const GIT_COMMIT = "bf17f5d6";
|
|
4
|
+
export declare const BUILD_TIME = "2026-10-15T09:17:22.934Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a329_0x1b4a27=a329_0x2958;function a329_0x2958(_0x8ceb55,_0x6dc5e3){_0x8ceb55=_0x8ceb55-0xbb;const _0x57b172=a329_0x57b1();let _0x2958e0=_0x57b172[_0x8ceb55];return _0x2958e0;}(function(_0x3a9193,_0x38915e){const _0x31853f=a329_0x2958,_0x453fdb=_0x3a9193();while(!![]){try{const _0x40ebd0=parseInt(_0x31853f(0xbc))/0x1+-parseInt(_0x31853f(0xc7))/0x2+parseInt(_0x31853f(0xc8))/0x3*(-parseInt(_0x31853f(0xc5))/0x4)+-parseInt(_0x31853f(0xc4))/0x5*(parseInt(_0x31853f(0xbd))/0x6)+parseInt(_0x31853f(0xc6))/0x7*(parseInt(_0x31853f(0xbb))/0x8)+parseInt(_0x31853f(0xc1))/0x9+parseInt(_0x31853f(0xbe))/0xa;if(_0x40ebd0===_0x38915e)break;else _0x453fdb['push'](_0x453fdb['shift']());}catch(_0x5f1e88){_0x453fdb['push'](_0x453fdb['shift']());}}}(a329_0x57b1,0xea3e5));function a329_0x57b1(){const _0x864223=['6GGtOvk','3708832MYNFqV','395023tmgSOs','7158834TYkdGW','6105240dTFQYJ','v2.5.7','2026-10-15T09:17:22.934Z','375939QDLaEB','2.5.7','bf17f5d6','5zDUIzY','416164aGdrzJ','21tiqSzG','154896gVyUIf'];a329_0x57b1=function(){return _0x864223;};return a329_0x57b1();}export const VERSION=a329_0x1b4a27(0xc2);export const GIT_TAG=a329_0x1b4a27(0xbf);export const GIT_COMMIT=a329_0x1b4a27(0xc3);export const BUILD_TIME=a329_0x1b4a27(0xc0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a330_0x2243(_0x33d24c,_0x39e8fe){_0x33d24c=_0x33d24c-0x1c8;const _0x371dac=a330_0x371d();let _0x224374=_0x371dac[_0x33d24c];return _0x224374;}const a330_0x4a4586=a330_0x2243;(function(_0x4cfcb0,_0x1a6eef){const _0x4386b0=a330_0x2243,_0x570297=_0x4cfcb0();while(!![]){try{const _0x311621=parseInt(_0x4386b0(0x1e2))/0x1*(parseInt(_0x4386b0(0x1ce))/0x2)+parseInt(_0x4386b0(0x1f4))/0x3*(parseInt(_0x4386b0(0x1f8))/0x4)+parseInt(_0x4386b0(0x1ed))/0x5+-parseInt(_0x4386b0(0x1d6))/0x6*(-parseInt(_0x4386b0(0x1f5))/0x7)+parseInt(_0x4386b0(0x1e9))/0x8*(parseInt(_0x4386b0(0x1f2))/0x9)+parseInt(_0x4386b0(0x1e3))/0xa+-parseInt(_0x4386b0(0x1cb))/0xb;if(_0x311621===_0x1a6eef)break;else _0x570297['push'](_0x570297['shift']());}catch(_0x239ad1){_0x570297['push'](_0x570297['shift']());}}}(a330_0x371d,0x87bbb));function a330_0x371d(){const _0x19f1f1=['688466GKJMBZ','https://daily-runtime.lovrabet.ai','https://api.lovrabet.ai','https://daily-runtime.lovrabet.com','https://daily.lovrabet.ai','https://api.lovrabet.id','https://skills.lovrabet.ai','https://user-daily.lovrabet.com','3882ZGMifw','https://kb-service.lovrabet.com','https://user.lovrabet.id','https://runtime.lovrabet.com','https://skills-daily.lovrabet.ai','https://user-daily.lovrabet.ai','https://app.lovrabet.com','china','https://app.lovrabet.id','https://user.lovrabet.com','https://daily.lovrabet.com','https://app.lovrabet.ai','1CWTnCd','8531560zOixOX','https://kb-service.lovrabet.id','https://g.lovrabet.ai','https://daily-api.lovrabet.ai','https://runtime.lovrabet.ai','https://skills.lovrabet.id','50760rsUwzv','https://skills-daily.lovrabet.com','indonesia','57d346b80b12ca567af9d86dd7f8c02a0c27fe15d4944c8345add2cc6134c587','3632835moBqCQ','global','https://api.lovrabet.com','https://daily-api.lovrabet.com','https://skills.lovrabet.com','477yaHnNT','https://user.lovrabet.ai','2965299UWAjAS','847BUUFdK','https://cdnjs.cloudflare.com/ajax/libs','https://dev.lovrabet.ai','4ckUhWq','https://dev.lovrabet.id','https://kb-service-daily.lovrabet.com','https://g.alicdn.com/code/lib','30480978VGLoYn','https://g.lovrabet.com','https://dev.lovrabet.com'];a330_0x371d=function(){return _0x19f1f1;};return a330_0x371d();}export const ROUTING_CATALOG_DIGEST=a330_0x4a4586(0x1ec);export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id',a330_0x4a4586(0x1ee)];export const ENABLED_REGION_VALUES=['cn','id','global'];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':'Mainland\x20China','aliases':[a330_0x4a4586(0x1dd)],'serviceDomains':{'production':{'user':a330_0x4a4586(0x1df),'api':a330_0x4a4586(0x1ef),'runtime':a330_0x4a4586(0x1d9),'skill':a330_0x4a4586(0x1f1),'kb':'https://api.lovrabet.com','kbService':a330_0x4a4586(0x1d7),'app':a330_0x4a4586(0x1dc)},'daily':{'user':a330_0x4a4586(0x1d5),'api':'https://daily-api.lovrabet.com','runtime':a330_0x4a4586(0x1d1),'skill':a330_0x4a4586(0x1ea),'kb':a330_0x4a4586(0x1f0),'kbService':a330_0x4a4586(0x1c9),'app':a330_0x4a4586(0x1e0)}},'cdn':{'libraries':a330_0x4a4586(0x1ca),'lovrabet':a330_0x4a4586(0x1cc)},'local':{'origin':a330_0x4a4586(0x1cd)}},'id':{'enabled':!![],'label':'Indonesia','aliases':[a330_0x4a4586(0x1eb)],'serviceDomains':{'production':{'user':a330_0x4a4586(0x1d8),'api':a330_0x4a4586(0x1d3),'runtime':'https://runtime.lovrabet.id','skill':a330_0x4a4586(0x1e8),'kb':'https://api.lovrabet.id','kbService':a330_0x4a4586(0x1e4),'app':a330_0x4a4586(0x1de)}},'cdn':{'libraries':a330_0x4a4586(0x1f6),'lovrabet':'https://g.lovrabet.id'},'local':{'origin':a330_0x4a4586(0x1c8)}},'global':{'enabled':!![],'label':'Global','aliases':[],'serviceDomains':{'production':{'user':a330_0x4a4586(0x1f3),'api':a330_0x4a4586(0x1d0),'runtime':a330_0x4a4586(0x1e7),'skill':a330_0x4a4586(0x1d4),'kb':a330_0x4a4586(0x1d0),'app':a330_0x4a4586(0x1e1)},'daily':{'user':a330_0x4a4586(0x1db),'api':a330_0x4a4586(0x1e6),'runtime':a330_0x4a4586(0x1cf),'skill':a330_0x4a4586(0x1da),'kb':a330_0x4a4586(0x1e6),'app':a330_0x4a4586(0x1d2)}},'cdn':{'libraries':'https://cdnjs.cloudflare.com/ajax/libs','lovrabet':a330_0x4a4586(0x1e5)},'local':{'origin':a330_0x4a4586(0x1f7)}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a331_0x4e30(_0x100dff,_0x3753b8){_0x100dff=_0x100dff-0xc6;const _0x3896b1=a331_0x3896();let _0x4e30a6=_0x3896b1[_0x100dff];return _0x4e30a6;}const a331_0x231f9e=a331_0x4e30;(function(_0x51741c,_0x2060bd){const _0x17e9b7=a331_0x4e30,_0x5f4034=_0x51741c();while(!![]){try{const _0x3d2e5f=parseInt(_0x17e9b7(0xcf))/0x1*(-parseInt(_0x17e9b7(0xdb))/0x2)+-parseInt(_0x17e9b7(0xce))/0x3+-parseInt(_0x17e9b7(0xd7))/0x4+parseInt(_0x17e9b7(0xc7))/0x5+-parseInt(_0x17e9b7(0xd8))/0x6*(parseInt(_0x17e9b7(0xcd))/0x7)+-parseInt(_0x17e9b7(0xd9))/0x8+parseInt(_0x17e9b7(0xc9))/0x9;if(_0x3d2e5f===_0x2060bd)break;else _0x5f4034['push'](_0x5f4034['shift']());}catch(_0x3e0b01){_0x5f4034['push'](_0x5f4034['shift']());}}}(a331_0x3896,0x9a8a3));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a331_0x231f9e(0xd6);function a331_0x3896(){const _0x18354e=['2255790KhwSqc','1551200DiGdFf','skillDomain','84052tIzHia','localDomain','2843215JKLlxD','certificateDomain','27424863ciiZHD','lovrabet','lovrabet-routing/v1','enterprise','7rwskmX','2189823aRNCKu','23mgXsHH','userDomain','kbDomain','apiDomain','kbServiceDomain','libraries','runtimeDomain','a03fe188b2b34518efc5668666c0001d20354882cd7dd70afec902dffe1329c3','2865804PmpxHA'];a331_0x3896=function(){return _0x18354e;};return a331_0x3896();}export const ENTERPRISE_ROUTING_PROTOCOL=a331_0x231f9e(0xcb);export const ENTERPRISE_ROUTING_KIND=a331_0x231f9e(0xcc);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a331_0x231f9e(0xd0),a331_0x231f9e(0xd2),a331_0x231f9e(0xd5),'skillDomain',a331_0x231f9e(0xd1),a331_0x231f9e(0xd3),'appDomain',a331_0x231f9e(0xc6),a331_0x231f9e(0xc8)];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a331_0x231f9e(0xd0),a331_0x231f9e(0xd2),a331_0x231f9e(0xd5),a331_0x231f9e(0xda),'kbDomain','appDomain'];export const ENTERPRISE_ROUTING_CDN_FIELDS=[a331_0x231f9e(0xd4),'lovrabet'];export const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS=[a331_0x231f9e(0xd4),a331_0x231f9e(0xca)];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x461c58,_0x469b33){var _0x2ebd35=a332_0x5e9b,_0xff46f9=_0x461c58();while(!![]){try{var _0xfabc49=parseInt(_0x2ebd35(0x10a))/0x1+parseInt(_0x2ebd35(0x105))/0x2*(parseInt(_0x2ebd35(0x103))/0x3)+parseInt(_0x2ebd35(0x10d))/0x4*(parseInt(_0x2ebd35(0x109))/0x5)+-parseInt(_0x2ebd35(0x10f))/0x6+-parseInt(_0x2ebd35(0x108))/0x7*(-parseInt(_0x2ebd35(0x102))/0x8)+-parseInt(_0x2ebd35(0x111))/0x9+-parseInt(_0x2ebd35(0x107))/0xa;if(_0xfabc49===_0x469b33)break;else _0xff46f9['push'](_0xff46f9['shift']());}catch(_0xa1374d){_0xff46f9['push'](_0xff46f9['shift']());}}}(a332_0x52eb,0x71612));function a332_0x5e9b(_0x56c2d0,_0x43e010){_0x56c2d0=_0x56c2d0-0x102;var _0x52eb0b=a332_0x52eb();var _0x5e9b16=_0x52eb0b[_0x56c2d0];return _0x5e9b16;}import a332_0x444d51 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0xf30dda=a332_0x5e9b;console[_0xf30dda(0x10b)](),console[_0xf30dda(0x10b)](a332_0x444d51[_0xf30dda(0x110)]['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console[_0xf30dda(0x10b)](),console[_0xf30dda(0x10b)](_0xf30dda(0x106)+a332_0x444d51[_0xf30dda(0x110)][_0xf30dda(0x10c)](CLI_BIN_NAME+_0xf30dda(0x104))+_0xf30dda(0x10e)),console[_0xf30dda(0x10b)]();}function a332_0x52eb(){var _0x213f9f=['\x20\x20Use\x20','13220170JljxYB','3189907pbUbCB','65riqpOg','816272ymDcka','log','bold','218068zaIBsW','\x20to\x20view\x20available\x20commands.','4209798IfDHhT','green','617580FkgsZU','16LILPDQ','3zLnbjH','\x20--help','240554BZIesY'];a332_0x52eb=function(){return _0x213f9f;};return a332_0x52eb();}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x42976b,_0x262c9c){const _0x590a7f=a333_0x7c27,_0x3dfbb7=_0x42976b();while(!![]){try{const _0x5c74cd=parseInt(_0x590a7f(0x1ae))/0x1*(parseInt(_0x590a7f(0x1bc))/0x2)+-parseInt(_0x590a7f(0x1b9))/0x3+parseInt(_0x590a7f(0x1ad))/0x4+parseInt(_0x590a7f(0x1b0))/0x5*(parseInt(_0x590a7f(0x1b4))/0x6)+-parseInt(_0x590a7f(0x1af))/0x7*(-parseInt(_0x590a7f(0x1b8))/0x8)+parseInt(_0x590a7f(0x1b5))/0x9+parseInt(_0x590a7f(0x1a8))/0xa*(-parseInt(_0x590a7f(0x1a9))/0xb);if(_0x5c74cd===_0x262c9c)break;else _0x3dfbb7['push'](_0x3dfbb7['shift']());}catch(_0x86df53){_0x3dfbb7['push'](_0x3dfbb7['shift']());}}}(a333_0x46b3,0x2eb40));function a333_0x7c27(_0x363844,_0x26d556){_0x363844=_0x363844-0x1a8;const _0x46b3a2=a333_0x46b3();let _0x7c2712=_0x46b3a2[_0x363844];return _0x7c2712;}function a333_0x46b3(){const _0x202548=['log','1056828IYgcnt','1pZEBSP','14UoubnQ','40UxvvOa','\x20via\x20skills@latest','already\x20current','installedPath','38058XywfGw','241263xuQlgf','repairCommand','Repair\x20with:\x20','882216mTJSjy','472476yJOPOi','code','warn','247176EIFDQA','error','[BUILTIN_SKILL_INSTALL_','SOURCE_INVALID','3371120wIolpx','11ybFgEc','skillVersion','FAILED'];a333_0x46b3=function(){return _0x202548;};return a333_0x46b3();}import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x489fd2={}){const _0x19e02f=a333_0x7c27,_0x1a0944=installBuiltinSkill(_0x489fd2);if(_0x1a0944['ok']){const _0x10f536=_0x1a0944['changed']?'installed':_0x19e02f(0x1b2),_0x100525=_0x1a0944[_0x19e02f(0x1b3)]?'\x20at\x20'+_0x1a0944[_0x19e02f(0x1b3)]:_0x19e02f(0x1b1);return console[_0x19e02f(0x1ac)]('Rabetbase\x20Built-in\x20Skill\x20'+_0x1a0944[_0x19e02f(0x1aa)]+'\x20'+_0x10f536+_0x100525),_0x1a0944;}const _0x3a70d0=_0x19e02f(0x1be)+(_0x1a0944[_0x19e02f(0x1ba)]??_0x19e02f(0x1ab))+']\x20'+(_0x1a0944[_0x19e02f(0x1bd)]??'Installation\x20failed')+'.\x20'+(_0x19e02f(0x1b7)+_0x1a0944[_0x19e02f(0x1b6)]);if(_0x1a0944['code']===_0x19e02f(0x1bf))throw new Error(_0x3a70d0);return console[_0x19e02f(0x1bb)](_0x3a70d0),_0x1a0944;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5d5aaa,_0x177960){const _0x5dbc96=a334_0xf9be,_0x361423=_0x5d5aaa();while(!![]){try{const _0x16baf8=-parseInt(_0x5dbc96(0x6f))/0x1+-parseInt(_0x5dbc96(0x77))/0x2*(parseInt(_0x5dbc96(0x68))/0x3)+parseInt(_0x5dbc96(0x75))/0x4+parseInt(_0x5dbc96(0x6a))/0x5*(parseInt(_0x5dbc96(0x6e))/0x6)+parseInt(_0x5dbc96(0x69))/0x7*(-parseInt(_0x5dbc96(0x65))/0x8)+parseInt(_0x5dbc96(0x67))/0x9+parseInt(_0x5dbc96(0x74))/0xa;if(_0x16baf8===_0x177960)break;else _0x361423['push'](_0x361423['shift']());}catch(_0x3816d8){_0x361423['push'](_0x361423['shift']());}}}(a334_0x116e,0xcd209));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x262f22,_0x3bcc23,_0x517438){const _0x5bbafc=a334_0xf9be,_0x5efa88=normalizeText(_0x262f22[_0x5bbafc(0x6b)],DESCRIPTION_MAX_LENGTH),_0x32432f=_0x5efa88||normalizeText(defaultDescription(requireWriteRisk(_0x262f22),_0x3bcc23),DESCRIPTION_MAX_LENGTH);return{'operation':_0x3bcc23,'risk':requireWriteRisk(_0x262f22),'description':_0x32432f,..._0x517438?{'signal':_0x517438}:{}};}function requireWriteRisk(_0x35313c){const _0x360990=a334_0xf9be;if(_0x35313c['risk']==='write'||_0x35313c['risk']==='high-risk-write')return _0x35313c[_0x360990(0x6c)];throw new Error(_0x360990(0x6d));}function a334_0xf9be(_0x3d81d1,_0x5767c9){_0x3d81d1=_0x3d81d1-0x65;const _0x116e9f=a334_0x116e();let _0xf9be95=_0x116e9f[_0x3d81d1];return _0xf9be95;}function defaultDescription(_0x3483f5,_0x22dbee){const _0x289e60=a334_0xf9be;if(_0x3483f5==='high-risk-write')return _0x289e60(0x76)+_0x22dbee+_0x289e60(0x66);return'This\x20will\x20run\x20the\x20write\x20'+_0x22dbee+_0x289e60(0x71);}function a334_0x116e(){const _0x4b1530=['4538yimsAA','80dGHJbY','.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.','10539594BDFOVB','717HgvUbS','1171184fKaIEx','10dYCRhi','confirmationDescription','risk','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','2281380gNsCMm','991167MWNdMF','string','.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.','replace','trim','15624390ZwYldy','2211256bFbcOB','This\x20will\x20run\x20the\x20high-risk\x20write\x20'];a334_0x116e=function(){return _0x4b1530;};return a334_0x116e();}function normalizeText(_0xf94052,_0x3132c5){const _0x42bdad=a334_0xf9be;if(typeof _0xf94052!==_0x42bdad(0x70))return'';return _0xf94052[_0x42bdad(0x72)](/[\u0000-\u001f\u007f]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0x42bdad(0x73)]()['slice'](0x0,_0x3132c5);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x97c4c0,_0x2017e8){const _0xbbffe4=a335_0x2aab,_0x3d720c=_0x97c4c0();while(!![]){try{const _0x5bec22=parseInt(_0xbbffe4(0x1bd))/0x1*(-parseInt(_0xbbffe4(0x1c7))/0x2)+-parseInt(_0xbbffe4(0x1c1))/0x3*(-parseInt(_0xbbffe4(0x1c5))/0x4)+parseInt(_0xbbffe4(0x1ca))/0x5+-parseInt(_0xbbffe4(0x1cb))/0x6*(parseInt(_0xbbffe4(0x1cd))/0x7)+parseInt(_0xbbffe4(0x1c3))/0x8*(parseInt(_0xbbffe4(0x1ba))/0x9)+-parseInt(_0xbbffe4(0x1c2))/0xa*(-parseInt(_0xbbffe4(0x1bf))/0xb)+-parseInt(_0xbbffe4(0x1c8))/0xc;if(_0x5bec22===_0x2017e8)break;else _0x3d720c['push'](_0x3d720c['shift']());}catch(_0x237192){_0x3d720c['push'](_0x3d720c['shift']());}}}(a335_0x1e2a,0x971e6));export function canonicalRabetbaseOperation(_0x1519c6){const _0x209990=a335_0x2aab;return[_0x1519c6[_0x209990(0x1c0)],..._0x1519c6[_0x209990(0x1c6)]['trim']()['split'](/\s+/)]['filter'](Boolean)['join']('.');}function a335_0x2aab(_0x1167e2,_0xd129f5){_0x1167e2=_0x1167e2-0x1ba;const _0x1e2a43=a335_0x1e2a();let _0x2aab6b=_0x1e2a43[_0x1167e2];return _0x2aab6b;}export function createRabetbaseWriteMetadata(_0x210ba4,_0x108458,_0xec559,_0x4b1696){const _0x2f36ca=a335_0x2aab;if(_0x4b1696||_0xec559['ok']!==!![]||hasUnresolvedConflicts(_0xec559)||_0x210ba4['risk']!=='write'&&_0x210ba4['risk']!==_0x2f36ca(0x1c9))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x2f36ca(0x1bb),'operation':_0x108458,'risk':_0x210ba4[_0x2f36ca(0x1be)]}}};}function hasUnresolvedConflicts(_0x21ea2d){const _0x52b5c0=a335_0x2aab,_0x54db71=_0x21ea2d['data'];return Boolean(_0x54db71&&typeof _0x54db71===_0x52b5c0(0x1c4)&&!Array[_0x52b5c0(0x1cc)](_0x54db71)&&Array[_0x52b5c0(0x1cc)](_0x54db71['conflicts'])&&_0x54db71[_0x52b5c0(0x1bc)]['length']>0x0);}function a335_0x1e2a(){const _0x228b08=['89766ojQUPt','rabetbase.write.completed','conflicts','97DddCLG','risk','464838LMMAIJ','service','3IjFPGc','250RQxCMc','152HirKFD','object','258344aYvZbz','command','5506EEXRHb','3365556ngCaBQ','high-risk-write','5297745kPCthJ','6dXasSp','isArray','8425235WFlUPT'];a335_0x1e2a=function(){return _0x228b08;};return a335_0x1e2a();}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x422e2b,_0x2e431e){const _0xfd0829=a336_0x4f1a,_0x312544=_0x422e2b();while(!![]){try{const _0x4488fa=parseInt(_0xfd0829(0x7f))/0x1*(-parseInt(_0xfd0829(0x87))/0x2)+parseInt(_0xfd0829(0x7b))/0x3*(-parseInt(_0xfd0829(0x8b))/0x4)+parseInt(_0xfd0829(0x8a))/0x5+-parseInt(_0xfd0829(0x77))/0x6+-parseInt(_0xfd0829(0x6a))/0x7*(-parseInt(_0xfd0829(0x78))/0x8)+-parseInt(_0xfd0829(0x7a))/0x9*(-parseInt(_0xfd0829(0x84))/0xa)+parseInt(_0xfd0829(0x71))/0xb;if(_0x4488fa===_0x2e431e)break;else _0x312544['push'](_0x312544['shift']());}catch(_0x1a8017){_0x312544['push'](_0x312544['shift']());}}}(a336_0x3327,0x9ab62));import{buildConfigFromFlags,initGlobalEnvironment,isRoutingRecoveryService}from'../context.js';import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';function a336_0x4f1a(_0x126ca5,_0x1b222b){_0x126ca5=_0x126ca5-0x6a;const _0x332761=a336_0x3327();let _0x4f1a7b=_0x332761[_0x126ca5];return _0x4f1a7b;}import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';import{runSerialized}from'../runtime/queue.js';function a336_0x3327(){const _0xc9bfa5=['Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','command','message','10ZgdSKf','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','high-risk-write','52DxmSjy','confirm','presentation','51095TyacUl','358388cNeZLD','format','2954vBdxXY','args','riskLevel','data','signal','service','rawFlags','18141629AMXLQk','result','Rabetbase\x20invocation\x20aborted.','dryRun','stringify','yes','1667010HPdyrU','2888bwiOhi','risk','284913PejUZV','18CAngJZ','reason','write','AbortError','15167QhCRYr','definition'];a336_0x3327=function(){return _0xc9bfa5;};return a336_0x3327();}import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x31ca53,command:_0x1f8f0a,risk:_0x5c7262,dryRun:_0x11c99f}){const _0x2a8e38=a336_0x4f1a;return JSON[_0x2a8e38(0x75)]({'ok':_0x31ca53['ok'],'command':_0x1f8f0a,'risk':_0x5c7262,..._0x11c99f?{'dryRun':!![]}:{},..._0x31ca53[_0x2a8e38(0x6d)]!==undefined?{'data':_0x31ca53[_0x2a8e38(0x6d)]}:{},..._0x31ca53[_0x2a8e38(0x83)]?{'message':_0x31ca53['message']}:{}});}};export async function invokeRabetbase(_0x3740a0,_0x36c395){const _0x12290d=a336_0x4f1a;throwIfAborted(_0x36c395[_0x12290d(0x6e)]);const _0x4c9482=await resolveRabetbaseInvocation(_0x3740a0),_0xad5225=canonicalRabetbaseOperation(_0x4c9482['definition']);return await confirmWriteBeforeQueue(_0x4c9482[_0x12290d(0x80)],_0x4c9482[_0x12290d(0x70)],_0xad5225,_0x36c395),runSerialized(async()=>{const _0x31d804=_0x12290d,_0x3a5b59={};try{throwIfAborted(_0x36c395[_0x31d804(0x6e)]);const _0x1d4400=buildConfigFromFlags(_0x4c9482['rawFlags']);!isRoutingRecoveryService(_0x4c9482[_0x31d804(0x80)][_0x31d804(0x6f)])&&await initGlobalEnvironment(_0x1d4400);const _0x24645c=createPipelineEnv(_0x1d4400,{..._0x4c9482[_0x31d804(0x70)],'yes':_0x4c9482[_0x31d804(0x80)][_0x31d804(0x79)]===_0x31d804(0x86)?!![]:_0x4c9482[_0x31d804(0x70)][_0x31d804(0x76)],'nonInteractive':!![]},_0x4c9482[_0x31d804(0x6b)]);_0x24645c['isNonInteractive']=!![],_0x24645c[_0x31d804(0x6c)]=_0x31d804(0x86);const _0x193200=withAbortSignal(_0x4c9482[_0x31d804(0x80)],_0x36c395[_0x31d804(0x6e)]),_0x13fec7=createRabetbaseRunnerAdapter({'formatOutput'(_0x28aa5f,_0x16ba60){const _0x307193=_0x31d804;_0x3a5b59[_0x307193(0x72)]=_0x28aa5f,_0x3a5b59[_0x307193(0x82)]=_0x16ba60[_0x307193(0x82)],_0x3a5b59[_0x307193(0x79)]=_0x16ba60['risk'],_0x3a5b59['format']=_0x16ba60['format'],_0x3a5b59[_0x307193(0x74)]=_0x16ba60[_0x307193(0x74)]===!![];},async 'confirmHighRisk'(){const _0x133674=_0x31d804;throw new Error(_0x133674(0x85));}});await runCommand(_0x193200,_0x24645c,_0x13fec7);if(!_0x3a5b59[_0x31d804(0x72)]||!_0x3a5b59[_0x31d804(0x82)]||!_0x3a5b59[_0x31d804(0x79)]||!_0x3a5b59[_0x31d804(0x8c)])throw new Error(_0x31d804(0x81));const _0x53ea5b=_0x3a5b59['dryRun']===!![],_0x48fa35=_0x36c395[_0x31d804(0x89)]??defaultPresentation,_0x22e6ac={'result':_0x3a5b59[_0x31d804(0x72)],'command':_0x3a5b59[_0x31d804(0x82)],'operation':_0xad5225,'risk':_0x3a5b59[_0x31d804(0x79)],'format':_0x3a5b59[_0x31d804(0x8c)],'dryRun':_0x53ea5b},_0xddd303=createRabetbaseWriteMetadata(_0x4c9482[_0x31d804(0x80)],_0xad5225,_0x3a5b59[_0x31d804(0x72)],_0x53ea5b);let _0x5202f6;try{_0x5202f6=await _0x48fa35['present'](_0x22e6ac);}catch(_0x9366ea){if(!_0xddd303||_0x48fa35===defaultPresentation)throw _0x9366ea;_0x5202f6=await defaultPresentation['present'](_0x22e6ac);}return{'operation':_0xad5225,'risk':_0x3a5b59[_0x31d804(0x79)],'mode':_0x53ea5b?'dry-run':'execute','result':_0x3a5b59[_0x31d804(0x72)],'output':_0x5202f6,..._0xddd303?{'metadata':_0xddd303}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x237950,_0x2e8511,_0x2669bd,_0x1cf90e){const _0x233467=a336_0x4f1a;if(_0x2e8511[_0x233467(0x74)]===!![]||_0x237950[_0x233467(0x79)]!==_0x233467(0x7d)&&_0x237950[_0x233467(0x79)]!==_0x233467(0x86))return;await _0x1cf90e['confirmation'][_0x233467(0x88)](buildRabetbaseConfirmationRequest(_0x237950,_0x2669bd,_0x1cf90e[_0x233467(0x6e)]));}function withAbortSignal(_0x1c6f96,_0x163e21){return{..._0x1c6f96,async 'execute'(_0x44405c){return throwIfAborted(_0x163e21),_0x1c6f96['execute']({..._0x44405c,'signal':_0x163e21});}};}function throwIfAborted(_0x41d0f8){const _0x50fa53=a336_0x4f1a;if(_0x41d0f8?.['aborted'])throw _0x41d0f8['reason']instanceof Error?_0x41d0f8[_0x50fa53(0x7c)]:new DOMException(_0x50fa53(0x73),_0x50fa53(0x7e));}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a337_0x91a3(){const _0x28d811=['11MPFZTW','2902319EptNYq','22835690gQMjuf','2010702aWIPET','2527299IkmKaH','264456gsTARw','58pvCxIs','733878AZYfOz','10LciuUu','16359TqQgVe','8AlxezW','resolve'];a337_0x91a3=function(){return _0x28d811;};return a337_0x91a3();}const a337_0x20ff36=a337_0x51b3;(function(_0x463a80,_0x39d5b8){const _0x5e3d45=a337_0x51b3,_0x5582eb=_0x463a80();while(!![]){try{const _0x4fb1b7=-parseInt(_0x5e3d45(0xe1))/0x1+parseInt(_0x5e3d45(0xe0))/0x2*(-parseInt(_0x5e3d45(0xd7))/0x3)+-parseInt(_0x5e3d45(0xdf))/0x4*(-parseInt(_0x5e3d45(0xe2))/0x5)+-parseInt(_0x5e3d45(0xdd))/0x6+-parseInt(_0x5e3d45(0xdb))/0x7+-parseInt(_0x5e3d45(0xd8))/0x8*(parseInt(_0x5e3d45(0xde))/0x9)+parseInt(_0x5e3d45(0xdc))/0xa*(parseInt(_0x5e3d45(0xda))/0xb);if(_0x4fb1b7===_0x39d5b8)break;else _0x5582eb['push'](_0x5582eb['shift']());}catch(_0x24a3c3){_0x5582eb['push'](_0x5582eb['shift']());}}}(a337_0x91a3,0x786b5));function a337_0x51b3(_0x50f351,_0x2c35b1){_0x50f351=_0x50f351-0xd7;const _0x91a3f8=a337_0x91a3();let _0x51b3f1=_0x91a3f8[_0x50f351];return _0x51b3f1;}let tail=Promise[a337_0x20ff36(0xd9)]();export async function runSerialized(_0x27cf46){const _0x411a0a=tail;let _0x507f40;tail=new Promise(_0x22c5cd=>{_0x507f40=_0x22c5cd;}),await _0x411a0a['catch'](()=>undefined);try{return await _0x27cf46();}finally{_0x507f40();}}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x42efc4,_0x56d28e){const _0x45f469=a338_0x2d4c,_0x9bd661=_0x42efc4();while(!![]){try{const _0x2c0457=-parseInt(_0x45f469(0x193))/0x1*(parseInt(_0x45f469(0x198))/0x2)+parseInt(_0x45f469(0x18d))/0x3+-parseInt(_0x45f469(0x190))/0x4*(parseInt(_0x45f469(0x196))/0x5)+-parseInt(_0x45f469(0x19c))/0x6+parseInt(_0x45f469(0x18f))/0x7+parseInt(_0x45f469(0x195))/0x8+parseInt(_0x45f469(0x19b))/0x9*(-parseInt(_0x45f469(0x197))/0xa);if(_0x2c0457===_0x56d28e)break;else _0x9bd661['push'](_0x9bd661['shift']());}catch(_0x4c5b86){_0x9bd661['push'](_0x9bd661['shift']());}}}(a338_0x6184,0x81c31));function a338_0x2d4c(_0x5619b3,_0x5e65b0){_0x5619b3=_0x5619b3-0x189;const _0x618480=a338_0x6184();let _0x2d4ca3=_0x618480[_0x5619b3];return _0x2d4ca3;}function a338_0x6184(){const _0x50d301=['241QxRkEC','hint','4107824NejohQ','970PCsimn','10riVVuM','2374UUACrF','join','unknownCommand','8479791PvkZYu','2707896HXBjXP','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','input','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','message','validation','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','2617872hQqafY','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','6653521sBCMpG','2588mVDJVp','slice','wildcardDef'];a338_0x6184=function(){return _0x50d301;};return a338_0x6184();}import a338_0x1b2a7e from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';import{assertSupportedCommandFlags}from'../framework/supported-flags.js';export async function resolveRabetbaseInvocation(_0x58827b){const _0x275486=a338_0x2d4c,_0x1325d1=a338_0x1b2a7e('',{'importMeta':import.meta,'argv':[..._0x58827b],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x355040=[..._0x1325d1[_0x275486(0x19e)]],_0x48d795=_0x1325d1['flags'],_0x6f44f0=_0x355040[0x0];if(!_0x6f44f0)throw CliErrors[_0x275486(0x18b)](_0x275486(0x18c));const _0x301d4e=resolveRemovedCommand(_0x6f44f0,_0x355040[0x1]);if(_0x301d4e)throw CliErrors[_0x275486(0x18b)](_0x301d4e[_0x275486(0x18a)],_0x301d4e[_0x275486(0x194)]);if(_0x6f44f0==='run')throw CliErrors[_0x275486(0x18b)](_0x275486(0x189),_0x275486(0x19d));if(!isKnownService(_0x6f44f0))throw CliErrors[_0x275486(0x19a)](_0x355040[_0x275486(0x199)]('\x20'));const _0x39b9b8=getServiceEntry(_0x6f44f0),_0x309898=_0x355040[0x1],_0x51af22=_0x309898||_0x39b9b8['defaultCommand'];if(!_0x51af22){if(_0x39b9b8[_0x275486(0x192)])return{'definition':_0x39b9b8['wildcardDef'],'rawFlags':_0x48d795,'args':[]};throw CliErrors[_0x275486(0x18b)](_0x275486(0x18e)+_0x6f44f0+'\x22.');}const _0x4b011d=findDefinition(_0x6f44f0,_0x51af22);if(_0x4b011d)return assertSupportedCommandFlags(_0x4b011d,_0x48d795),{'definition':_0x4b011d,'rawFlags':_0x48d795,'args':_0x355040['slice'](0x2)};if(_0x39b9b8[_0x275486(0x192)])return{'definition':_0x39b9b8[_0x275486(0x192)],'rawFlags':_0x48d795,'args':[_0x51af22,..._0x355040[_0x275486(0x191)](0x2)]};throw CliErrors[_0x275486(0x19a)](_0x6f44f0+'\x20'+_0x51af22);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2c8e02,_0x16d70b){const _0x331217=a340_0x20d0,_0x4b2ed6=_0x2c8e02();while(!![]){try{const _0x28b5dc=-parseInt(_0x331217(0x109))/0x1*(-parseInt(_0x331217(0x113))/0x2)+parseInt(_0x331217(0x11e))/0x3*(-parseInt(_0x331217(0x108))/0x4)+parseInt(_0x331217(0x11c))/0x5+parseInt(_0x331217(0x114))/0x6+parseInt(_0x331217(0x10a))/0x7*(parseInt(_0x331217(0x11d))/0x8)+parseInt(_0x331217(0x10c))/0x9+-parseInt(_0x331217(0x116))/0xa;if(_0x28b5dc===_0x16d70b)break;else _0x4b2ed6['push'](_0x4b2ed6['shift']());}catch(_0x278340){_0x4b2ed6['push'](_0x4b2ed6['shift']());}}}(a340_0x23a5,0xcda7c));import{randomUUID}from'node:crypto';function a340_0x20d0(_0x4e4761,_0x17b209){_0x4e4761=_0x4e4761-0x103;const _0x23a517=a340_0x23a5();let _0x20d036=_0x23a517[_0x4e4761];return _0x20d036;}function a340_0x23a5(){const _0x23c8bd=['test','kind','1372KSFYCi','135367XqlEXS','7rsqfcy','dataset-design-operation','380745UULEgb','string','Checkpoint\x20must\x20be\x20a\x20regular\x20JSON\x20file.','inputHash','clientOperationId','EEXIST','isSymbolicLink','10xcCuet','215844dapckH','ENOENT','17406450toSrNo','size','Invalid\x20checkpoint;\x20reconcile\x20its\x20original\x20operation\x20before\x20submitting\x20again.','identityKey','utf8','parse','6966595bOFWEv','4955624JNObml','1617qtgOwe','close','code','writeFile'];a340_0x23a5=function(){return _0x23c8bd;};return a340_0x23a5();}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(_0xf187ab){const _0x30e90c=a340_0x20d0;try{const _0x7048f3=await lstat(_0xf187ab);requireValue(_0x7048f3['isFile']()&&!_0x7048f3[_0x30e90c(0x112)]()&&_0x7048f3[_0x30e90c(0x117)]<=0x3d0900,_0x30e90c(0x10e));const _0x7ce917=JSON[_0x30e90c(0x11b)](await readFile(_0xf187ab,_0x30e90c(0x11a)));return requireValue(isObject(_0x7ce917)&&_0x7ce917[_0x30e90c(0x107)]===_0x30e90c(0x10b)&&_0x7ce917['schemaVersion']===0x1&&typeof _0x7ce917[_0x30e90c(0x110)]===_0x30e90c(0x10d)&&/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/[_0x30e90c(0x106)](_0x7ce917[_0x30e90c(0x110)])&&typeof _0x7ce917['inputHash']===_0x30e90c(0x10d)&&/^[a-f0-9]{64}$/[_0x30e90c(0x106)](_0x7ce917[_0x30e90c(0x10f)])&&typeof _0x7ce917[_0x30e90c(0x119)]===_0x30e90c(0x10d)&&_0x7ce917[_0x30e90c(0x119)]['length']>0x0&&isObject(_0x7ce917['manifest']),_0x30e90c(0x118)),_0x7ce917;}catch(_0xb455d1){if(_0xb455d1[_0x30e90c(0x104)]===_0x30e90c(0x115))return undefined;throw _0xb455d1;}}export async function saveCheckpoint(_0x3b384a,_0x40b192,_0x46331c=![]){const _0x24561b=a340_0x20d0;await mkdir(dirname(_0x3b384a),{'recursive':!![]});const _0x28b7ae=_0x3b384a+'.'+randomUUID()+'.tmp',_0x364a54=await open(_0x28b7ae,'wx',0x180);try{await _0x364a54[_0x24561b(0x105)](JSON['stringify'](_0x40b192,null,0x2)+'\x0a'),await _0x364a54['sync']();}finally{await _0x364a54[_0x24561b(0x103)]();}try{if(_0x46331c)await link(_0x28b7ae,_0x3b384a);else await rename(_0x28b7ae,_0x3b384a);return!![];}catch(_0x5c5946){if(_0x46331c&&_0x5c5946[_0x24561b(0x104)]===_0x24561b(0x111))return![];throw _0x5c5946;}finally{await unlink(_0x28b7ae)['catch'](_0x34856a=>{const _0x2fa942=_0x24561b;if(_0x34856a[_0x2fa942(0x104)]!==_0x2fa942(0x115))throw _0x34856a;});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a340_0x3634c1=a340_0x4571;function a340_0x2cd9(){const _0x4a0a4b=['465712jYLzhP','failedStage','expectedRelations','reused','Checkpoint\x20creation\x20could\x20not\x20be\x20reconciled.','push','taskId','identityKey','submitting','Server\x20response\x20does\x20not\x20contain\x20a\x20valid\x20operation\x20state.','submission_unknown','includes','password','name','Dataset\x20detail\x20does\x20not\x20contain\x20matching\x20DOV2\x20metadata.','write','toDatasetKey','isArray','client-operation-id','map','Checkpoint\x20belongs\x20to\x20another\x20authenticated\x20principal.','normalizedManifest','manifest','username','filter','startsWith','compress','output','search','operationId','prepared','result','client','stringify','sync','Saved\x20dataset\x20code','valid','.checkpoint.json','Invalid\x20client-operation-id.','Server\x20returned\x20an\x20invalid\x20design\x20hash.','file','localKey','Save\x20the\x20server-normalized\x20design\x20JSON','relationType','validate','inputHash','dataset-design-','start','progressRate','code','values','Operation\x20submitted;\x20continue\x20querying\x20its\x20status.','errorMsg','flagMissing','node:fs/promises','Inspect\x20the\x20deterministic\x20request\x20without\x20submission\x20or\x20checkpoint\x20writes.','checkpoint','sync-retry','client-operation-id\x20differs\x20from\x20the\x20checkpoint\x20operation.','get','node:path','SUCCESS','GET','datasets','MANY_TO_ONE','operation-id','fromField','some','operation','POST','has','dataset-design-operation','Server\x20operation\x20ID','471000sTNfTZ','read','clientOperationId','Server\x20rejected\x20the\x20design;\x20run\x20design-validate\x20and\x20repair\x20the\x20reported\x20fields.','Provide\x20exactly\x20one\x20operation-id,\x20client-operation-id\x20or\x20checkpoint.','Submission\x20outcome\x20is\x20unknown;\x20query\x20the\x20original\x20operation.','relations','dataset','sync-status','Dataset\x20design\x20','appCode','entries','status','design-','set','fromDatasetCode','unknown_reconcile_failed','dataset_created','fields','fromDatasetKey','lookup','length','state','operation_pending','createdDatasets','modelCode','toDatasetCode','40DUMNEj','str','518091Zboozg','hash','819684zejJDB','\x20response\x20received','createdRelations','operation_failed','deleted','context','FAILED','unknown','Deterministic\x20dataset\x20design\x20','expectedHash','size','string','expectedLocalKeys','replace','currentStep','881814XQFDhn','design-status','1848145VshvYo','metrics','unresolvedRelations','datasets_created','331527crfNvI','normalizedHash'];a340_0x2cd9=function(){return _0x4a0a4b;};return a340_0x2cd9();}(function(_0x41ce2d,_0x4bad28){const _0x5dacd5=a340_0x4571,_0x131127=_0x41ce2d();while(!![]){try{const _0x16601a=parseInt(_0x5dacd5(0x121))/0x1+parseInt(_0x5dacd5(0x123))/0x2+-parseInt(_0x5dacd5(0x11b))/0x3+parseInt(_0x5dacd5(0xed))/0x4+-parseInt(_0x5dacd5(0x11d))/0x5+-parseInt(_0x5dacd5(0x10c))/0x6+parseInt(_0x5dacd5(0x10a))/0x7*(parseInt(_0x5dacd5(0x108))/0x8);if(_0x16601a===_0x4bad28)break;else _0x131127['push'](_0x131127['shift']());}catch(_0x20e026){_0x131127['push'](_0x131127['shift']());}}}(a340_0x2cd9,0x3d871));function a340_0x4571(_0x1f8a4e,_0x5bc622){_0x1f8a4e=_0x1f8a4e-0xad;const _0x2cd964=a340_0x2cd9();let _0x4571bf=_0x2cd964[_0x1f8a4e];return _0x4571bf;}import{randomUUID}from'node:crypto';import{resolve}from'node:path';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{getApiDomain}from'../../constant/domain.js';import{getDatasetDesignContext,validateDatasetDesign,startDatasetDesign,getDatasetDesignStatus,getDatasetDesignSyncStatus,retryDatasetDesignSync,getDatasetDetail,getPlatformHttpStatus,isPlatformTransportFailure}from'../../core/api-client.js';import{inputHash,isObject,readManifest,requireValue,validateManifest}from'./contract.js';import{readCheckpoint,saveCheckpoint}from'./checkpoint.js';const flag=(_0x98556d,_0x32d48a)=>({'name':_0x98556d,'type':a340_0x3634c1(0x117),'description':_0x32d48a}),flags={'file':flag(a340_0x3634c1(0xcc),'Agent-authored\x20JSON\x20dataset\x20manifest'),'output':flag(a340_0x3634c1(0xbf),a340_0x3634c1(0xce)),'checkpoint':flag(a340_0x3634c1(0xdc),'Durable\x20operation\x20checkpoint\x20path'),'client':flag('client-operation-id','Stable\x20recovery\x20ID\x20for\x20one\x20design\x20operation'),'operation':flag(a340_0x3634c1(0xe5),a340_0x3634c1(0xec)),'code':flag(a340_0x3634c1(0xd5),a340_0x3634c1(0xc7))};function domain(_0x3dbe6e){const _0x15206c=a340_0x3634c1,_0x5536a0=new URL(_0x3dbe6e['apiDomain']||getApiDomain());return requireValue(!_0x5536a0[_0x15206c(0xbb)]&&!_0x5536a0[_0x15206c(0xb0)]&&!_0x5536a0[_0x15206c(0xc0)]&&!_0x5536a0[_0x15206c(0x10b)],'API\x20domain\x20must\x20not\x20contain\x20credentials,\x20query\x20or\x20fragment.'),_0x5536a0['toString']()[_0x15206c(0x119)](/\/+$/,'');}function required(_0x10b2cd,_0x3cf244){const _0x86adfe=a340_0x3634c1,_0x3ad1f0=_0x10b2cd[_0x86adfe(0x109)](_0x3cf244);if(!_0x3ad1f0)throw CliErrors[_0x86adfe(0xd9)](_0x3cf244);return _0x3ad1f0;}function bind(_0x179077,_0x2f7d9a,_0x382934){const _0x40f613=a340_0x3634c1;requireValue(_0x179077[_0x40f613(0xf7)]===_0x2f7d9a[_0x40f613(0xf7)]&&_0x179077['apiDomain']===domain(_0x2f7d9a)&&(_0x382934===undefined||_0x179077[_0x40f613(0xd1)]===_0x382934),'Checkpoint\x20target\x20or\x20design\x20changed.\x20Reconcile\x20the\x20original\x20operation;\x20use\x20a\x20new\x20design\x20file\x20for\x20an\x20intentional\x20new\x20operation.');}function query(_0x32ade4,_0x3d2b92){const _0x34f481=a340_0x3634c1;return{'command':_0x34f481(0x11c),'argv':['rabetbase','dataset',_0x34f481(0x11c),'--appcode',_0x32ade4[_0x34f481(0xf7)],'--checkpoint',_0x3d2b92,'--format',_0x34f481(0xbe)]};}function unknown(_0x3b13fa,_0x3cf8ab){const _0x260e3c=a340_0x3634c1;return{'status':_0x260e3c(0xae),'clientOperationId':_0x3b13fa[_0x260e3c(0xef)],'operationId':_0x3b13fa[_0x260e3c(0xc1)]??null,'checkpoint':_0x3cf8ab,'query':query(_0x3b13fa,_0x3cf8ab),'nextAction':'query_original_operation'};}function matchesField(_0x2c5d02,_0x939022){const _0x459cf5=a340_0x3634c1;return Object[_0x459cf5(0xf8)](_0x939022)['every'](([_0x592163,_0x28cfee])=>{const _0x1c0032=_0x459cf5;if(_0x28cfee==null)return!![];const _0x25c505=_0x2c5d02[_0x592163];if(_0x592163==='options'){if(!Array[_0x1c0032(0xb5)](_0x25c505)||!Array['isArray'](_0x28cfee)||_0x25c505[_0x1c0032(0xe7)](_0x49b5f0=>!isObject(_0x49b5f0)))return![];const _0x8cd6ce=_0x4db6e1=>_0x4db6e1[_0x1c0032(0xb7)](({label:_0x1061f9,value:_0x1f31ec})=>({'label':_0x1061f9,'value':_0x1f31ec}));return inputHash(_0x8cd6ce(_0x25c505))===inputHash(_0x8cd6ce(_0x28cfee));}return _0x25c505!==undefined&&inputHash(_0x25c505)===inputHash(_0x28cfee);});}function reconcile(_0x3871a0,_0x541292){const _0x15b944=a340_0x3634c1;if(!isObject(_0x3871a0)||!Array['isArray'](_0x3871a0[_0x15b944(0x105)])||!Array[_0x15b944(0xb5)](_0x3871a0[_0x15b944(0x10e)]))return;const _0x521de2=_0x3871a0[_0x15b944(0x105)],_0x1f1238=_0x541292?.[_0x15b944(0xe3)]['map'](_0x2da31f=>_0x2da31f['localKey'])??_0x3871a0[_0x15b944(0x118)];if(!Array[_0x15b944(0xb5)](_0x1f1238)||_0x1f1238['length']!==_0x521de2[_0x15b944(0x102)]||new Set(_0x1f1238)[_0x15b944(0x116)]!==_0x1f1238[_0x15b944(0x102)])return;const _0x280571=new Map();for(const _0x408535 of _0x521de2){if(!isObject(_0x408535)||typeof _0x408535['localKey']!==_0x15b944(0x117)||typeof _0x408535[_0x15b944(0xd5)]!==_0x15b944(0x117)||!_0x408535[_0x15b944(0xd5)]||_0x280571['has'](_0x408535[_0x15b944(0xcd)]))return;_0x280571[_0x15b944(0xfb)](_0x408535[_0x15b944(0xcd)],_0x408535[_0x15b944(0xd5)]);if(_0x541292){const _0x501c39=_0x541292[_0x15b944(0xe3)]['find'](_0x3c0ddf=>_0x3c0ddf[_0x15b944(0xcd)]===_0x408535['localKey']);if(!_0x501c39||!Array[_0x15b944(0xb5)](_0x408535['fields']))return;if(_0x408535['fields'][_0x15b944(0xe7)](_0x312c0a=>!isObject(_0x312c0a)))return;const _0x703e84=new Map(_0x408535[_0x15b944(0xff)][_0x15b944(0xb7)](_0x237ac1=>[_0x237ac1[_0x15b944(0xb1)],_0x237ac1]));if(_0x703e84[_0x15b944(0x116)]!==_0x408535[_0x15b944(0xff)]['length']||_0x408535['fieldCount']!==_0x408535[_0x15b944(0xff)][_0x15b944(0x102)])return;if(_0x501c39[_0x15b944(0xff)][_0x15b944(0xe7)](_0x16c605=>!_0x703e84[_0x15b944(0xea)](_0x16c605[_0x15b944(0xb1)])||!matchesField(_0x703e84['get'](_0x16c605[_0x15b944(0xb1)]),_0x16c605)))return;const _0x4d6b02=new Set(_0x501c39[_0x15b944(0xff)][_0x15b944(0xb7)](_0x89409a=>_0x89409a[_0x15b944(0xb1)]));_0x4d6b02['add']('id');if(_0x408535[_0x15b944(0xff)][_0x15b944(0xe7)](_0x5d6505=>!_0x4d6b02[_0x15b944(0xea)](_0x5d6505[_0x15b944(0xb1)])))return;}}if(new Set(_0x280571[_0x15b944(0xd6)]())[_0x15b944(0x116)]!==_0x280571['size']||_0x1f1238['some'](_0x423990=>!_0x280571[_0x15b944(0xea)](_0x423990)))return;const _0x3cad6a=_0x541292?.[_0x15b944(0xf3)]??_0x3871a0[_0x15b944(0x125)];if(!Array[_0x15b944(0xb5)](_0x3cad6a)||_0x3cad6a[_0x15b944(0x102)]!==_0x3871a0[_0x15b944(0x10e)]['length'])return;const _0x2c8760=_0x2e90b8=>JSON[_0x15b944(0xc5)]([_0x2e90b8[_0x15b944(0x100)],_0x2e90b8[_0x15b944(0xe6)],_0x2e90b8[_0x15b944(0x107)]||_0x280571[_0x15b944(0xdf)](_0x2e90b8[_0x15b944(0xb4)]),_0x2e90b8['toField'],_0x2e90b8[_0x15b944(0xcf)]||_0x15b944(0x101),_0x2e90b8['cardinality']||_0x15b944(0xe4)]),_0x13b6bd=new Set(_0x3cad6a[_0x15b944(0xb7)](_0x2c8760)),_0x468efe=new Set(_0x3871a0[_0x15b944(0x10e)][_0x15b944(0xb7)](_0x2c8760));if(_0x468efe[_0x15b944(0x116)]!==_0x3cad6a[_0x15b944(0x102)]||_0x13b6bd[_0x15b944(0x116)]!==_0x3cad6a[_0x15b944(0x102)]||[..._0x13b6bd][_0x15b944(0xe7)](_0x3efef8=>!_0x468efe[_0x15b944(0xea)](_0x3efef8)))return;for(const _0x183bc0 of _0x3871a0[_0x15b944(0x10e)]){if(_0x183bc0[_0x15b944(0xfc)]!==_0x280571[_0x15b944(0xdf)](_0x183bc0['fromDatasetKey'])||_0x183bc0[_0x15b944(0xb4)]&&_0x183bc0[_0x15b944(0x107)]!==_0x280571[_0x15b944(0xdf)](_0x183bc0[_0x15b944(0xb4)]))return;}return{'createdDatasets':_0x521de2,'createdRelations':_0x3871a0[_0x15b944(0x10e)],'unresolvedRelations':_0x3871a0[_0x15b944(0x11f)]??[]};}export function statusData(_0x514d89,_0x4dfe0f){const _0x1c940b=a340_0x3634c1;requireValue(isObject(_0x514d89)&&typeof _0x514d89[_0x1c940b(0xf9)]===_0x1c940b(0x117),_0x1c940b(0xad));const _0x2a2eef={'jobStatus':_0x514d89[_0x1c940b(0xf9)],'operationId':_0x514d89[_0x1c940b(0xc1)]??_0x514d89[_0x1c940b(0x129)]??null,'taskId':_0x514d89['taskId']??_0x514d89[_0x1c940b(0xc1)]??null,'clientOperationId':_0x514d89['clientOperationId']??null,'progressRate':_0x514d89[_0x1c940b(0xd4)]??null,'currentStep':_0x514d89[_0x1c940b(0x11a)]??null,'failedStage':_0x514d89[_0x1c940b(0x124)]??null,'sync':_0x514d89[_0x1c940b(0xc6)]??null,'errorMsg':_0x514d89[_0x1c940b(0xd8)]??null,'metrics':_0x514d89[_0x1c940b(0x11e)]??null},_0xe89356=!_0x4dfe0f&&_0x514d89[_0x1c940b(0xf9)]===_0x1c940b(0xe1)&&isObject(_0x514d89[_0x1c940b(0xc3)]?.['dataset'])?_0x514d89['result'][_0x1c940b(0xf4)]:undefined;if(_0xe89356&&typeof _0xe89356[_0x1c940b(0xd5)]===_0x1c940b(0x117)&&_0xe89356[_0x1c940b(0xd5)]&&_0xe89356['id']!=null)return{..._0x2a2eef,'status':_0x1c940b(0xfe),'createdDataset':_0xe89356};const _0x4bfd28=_0x514d89[_0x1c940b(0xf9)]===_0x1c940b(0xe1)?reconcile(_0x514d89[_0x1c940b(0xc3)],_0x4dfe0f):undefined;return{..._0x2a2eef,'status':_0x514d89[_0x1c940b(0xf9)]===_0x1c940b(0xe1)?_0x4bfd28?_0x1c940b(0x120):_0x1c940b(0xfd):_0x514d89[_0x1c940b(0xf9)]===_0x1c940b(0x112)?_0x1c940b(0x10f):['PENDING','PROCESSING'][_0x1c940b(0xaf)](_0x514d89[_0x1c940b(0xf9)])?_0x1c940b(0x104):'unknown_reconcile_failed',..._0x4bfd28};}async function readStatus(_0x352bde,_0x5c758b){const _0x392124=a340_0x3634c1,_0x414848=statusData(_0x352bde,_0x5c758b);if(_0x352bde[_0x392124(0xf9)]!==_0x392124(0xe1)||!reconcile(_0x352bde[_0x392124(0xc3)]))return _0x414848;const _0x22bdd0=[];for(const _0x480169 of _0x352bde[_0x392124(0xc3)][_0x392124(0x105)]){const _0x38ca54=await getDatasetDetail(_0x480169[_0x392124(0xd5)]);requireValue(isObject(_0x38ca54)&&(_0x38ca54[_0x392124(0x106)]||_0x38ca54[_0x392124(0xd5)])===_0x480169[_0x392124(0xd5)]&&Array['isArray'](_0x38ca54[_0x392124(0xff)]),_0x392124(0xb2));const _0x5cec61=_0x38ca54[_0x392124(0xff)]['filter'](_0xe13f87=>_0xe13f87[_0x392124(0x110)]!==!![]);_0x22bdd0[_0x392124(0x128)]({..._0x480169,'fields':_0x5cec61,'fieldCount':_0x5cec61[_0x392124(0x102)]});}return statusData({..._0x352bde,'result':{..._0x352bde[_0x392124(0xc3)],'createdDatasets':_0x22bdd0}},_0x5c758b);}async function recover(_0x379ad4,_0x173ac6,_0x211bbd){const _0x2dc24e=a340_0x3634c1;bind(_0x379ad4,_0x211bbd);const _0x260c60=await getDatasetDesignContext(_0x211bbd[_0x2dc24e(0xf7)]);requireValue(_0x260c60?.['identityKey']===_0x379ad4[_0x2dc24e(0x12a)],_0x2dc24e(0xb8));let _0x18e819;try{_0x18e819=await getDatasetDesignStatus(_0x211bbd['appCode'],{'clientOperationId':_0x379ad4[_0x2dc24e(0xef)]});}catch(_0x50365c){const _0x53a7a7=getPlatformHttpStatus(_0x50365c);if(isPlatformTransportFailure(_0x50365c)||_0x53a7a7===0x194)return unknown(_0x379ad4,_0x173ac6);throw _0x50365c;}const _0x4c88e0=await readStatus(_0x18e819,_0x379ad4[_0x2dc24e(0xba)]);return _0x379ad4[_0x2dc24e(0x103)]=_0x4c88e0[_0x2dc24e(0xf9)],_0x379ad4[_0x2dc24e(0xc1)]=_0x18e819['operationId']||_0x379ad4['operationId'],await saveCheckpoint(_0x173ac6,_0x379ad4),{..._0x4c88e0,'checkpoint':_0x173ac6,'query':query(_0x379ad4,_0x173ac6)};}async function start(_0x4fafb8){const _0x284621=a340_0x3634c1,_0xa7d0df=resolve(required(_0x4fafb8,'file')),_0x4c8f61=await readManifest(_0xa7d0df),_0x46b998=inputHash(_0x4c8f61),_0x4e5af2=resolve(_0x4fafb8[_0x284621(0x109)](_0x284621(0xdc))||_0xa7d0df+_0x284621(0xc9)),_0x165ba9=await readCheckpoint(_0x4e5af2);if(_0x165ba9)return bind(_0x165ba9,_0x4fafb8,_0x46b998),requireValue(!_0x4fafb8[_0x284621(0x109)](_0x284621(0xb6))||_0x4fafb8[_0x284621(0x109)](_0x284621(0xb6))===_0x165ba9[_0x284621(0xef)],_0x284621(0xde)),recover(_0x165ba9,_0x4e5af2,_0x4fafb8);const _0x315029=await getDatasetDesignContext(_0x4fafb8[_0x284621(0xf7)]);requireValue(typeof _0x315029?.[_0x284621(0x12a)]===_0x284621(0x117)&&_0x315029[_0x284621(0x12a)],'Server\x20context\x20lacks\x20an\x20authenticated\x20identity.');const _0x9bedb8=await validateDatasetDesign(_0x4fafb8['appCode'],_0x4c8f61);requireValue(_0x9bedb8?.[_0x284621(0xc8)]===!![],_0x284621(0xf0));const _0x344933=validateManifest(_0x9bedb8[_0x284621(0xb9)]);requireValue(typeof _0x9bedb8[_0x284621(0x122)]==='string'&&/^[a-f0-9]{64}$/['test'](_0x9bedb8[_0x284621(0x122)]),_0x284621(0xcb));const _0x13ec24=_0x4fafb8['str']('client-operation-id')||_0x284621(0xd2)+randomUUID();requireValue(/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/['test'](_0x13ec24),_0x284621(0xca));const _0xbd00d0={'kind':_0x284621(0xeb),'schemaVersion':0x1,'appCode':_0x4fafb8[_0x284621(0xf7)],'apiDomain':domain(_0x4fafb8),'identityKey':_0x315029['identityKey'],'inputHash':_0x46b998,'clientOperationId':_0x13ec24,'manifest':_0x344933,'expectedHash':_0x9bedb8[_0x284621(0x122)],'state':_0x284621(0xc2)};if(!await saveCheckpoint(_0x4e5af2,_0xbd00d0,!![])){const _0x3f4d8b=await readCheckpoint(_0x4e5af2);return requireValue(_0x3f4d8b,_0x284621(0x127)),bind(_0x3f4d8b,_0x4fafb8,_0x46b998),recover(_0x3f4d8b,_0x4e5af2,_0x4fafb8);}_0xbd00d0[_0x284621(0x103)]=_0x284621(0x12b),await saveCheckpoint(_0x4e5af2,_0xbd00d0);let _0x1ad02c;try{_0x1ad02c=await startDatasetDesign(_0x4fafb8['appCode'],_0x344933,_0xbd00d0[_0x284621(0x115)],_0x13ec24);}catch(_0x43129b){const _0x14b8a5=isPlatformTransportFailure(_0x43129b);_0xbd00d0[_0x284621(0x103)]=_0x14b8a5?_0x284621(0x113):'rejected',await saveCheckpoint(_0x4e5af2,_0xbd00d0);if(!_0x14b8a5)throw _0x43129b;return unknown(_0xbd00d0,_0x4e5af2);}if(!isObject(_0x1ad02c)||!(_0x1ad02c[_0x284621(0xc1)]||_0x1ad02c[_0x284621(0x129)])||typeof _0x1ad02c['status']!==_0x284621(0x117))return _0xbd00d0['state']=_0x284621(0x113),await saveCheckpoint(_0x4e5af2,_0xbd00d0),unknown(_0xbd00d0,_0x4e5af2);return _0xbd00d0['operationId']=_0x1ad02c[_0x284621(0xc1)]||_0x1ad02c[_0x284621(0x129)],_0xbd00d0[_0x284621(0x103)]=_0x1ad02c[_0x284621(0xf9)],await saveCheckpoint(_0x4e5af2,_0xbd00d0),{...await readStatus(_0x1ad02c,_0x344933),'clientOperationId':_0x13ec24,'checkpoint':_0x4e5af2,'reused':_0x1ad02c[_0x284621(0x126)]??![],'query':query(_0xbd00d0,_0x4e5af2)};}export function designCommand(_0x2179a9){const _0x1ba05c=a340_0x3634c1,_0x3ff0a7=_0x1ba05c(0xfa)+_0x2179a9,_0xa363b6=_0x2179a9===_0x1ba05c(0xd0)?[flags['file'],flags[_0x1ba05c(0xbf)]]:_0x2179a9===_0x1ba05c(0xd3)?[flags[_0x1ba05c(0xcc)],flags['checkpoint'],flags[_0x1ba05c(0xc4)]]:_0x2179a9===_0x1ba05c(0xf9)?[flags[_0x1ba05c(0xe8)],flags['client'],flags[_0x1ba05c(0xdc)]]:_0x2179a9[_0x1ba05c(0xbd)]('sync')?[flags['code']]:[];return{'service':'dataset','command':_0x3ff0a7,'description':_0x1ba05c(0x114)+_0x2179a9,'risk':_0x2179a9===_0x1ba05c(0xd3)||_0x2179a9==='sync-retry'?_0x1ba05c(0xb3):_0x1ba05c(0xee),'defaultOutputFormat':_0x1ba05c(0xbe),'strictFlags':!![],'structuredErrors':!![],'flags':[..._0xa363b6,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3408ad){const _0x52fd00=_0x1ba05c;if([_0x52fd00(0xd0),_0x52fd00(0xd3)][_0x52fd00(0xaf)](_0x2179a9))required(_0x3408ad,_0x52fd00(0xcc));if(_0x2179a9[_0x52fd00(0xbd)](_0x52fd00(0xc6)))required(_0x3408ad,_0x52fd00(0xd5));if(_0x2179a9===_0x52fd00(0xf9))requireValue([_0x3408ad['str'](_0x52fd00(0xe5)),_0x3408ad[_0x52fd00(0x109)](_0x52fd00(0xb6)),_0x3408ad[_0x52fd00(0x109)]('checkpoint')][_0x52fd00(0xbc)](Boolean)[_0x52fd00(0x102)]===0x1,_0x52fd00(0xf1));},async 'dryRun'(_0x399dc2){const _0x1e0f60=_0x1ba05c,_0x320fad=['validate',_0x1e0f60(0xd3)][_0x1e0f60(0xaf)](_0x2179a9)?await readManifest(resolve(required(_0x399dc2,_0x1e0f60(0xcc)))):undefined;return{'method':[_0x1e0f60(0xd0),_0x1e0f60(0xd3),_0x1e0f60(0xdd)][_0x1e0f60(0xaf)](_0x2179a9)?_0x1e0f60(0xe9):_0x1e0f60(0xe2),'url':'/smartapi/dataset/design/'+_0x2179a9,'body':_0x320fad?{'appCode':_0x399dc2['appCode'],'manifest':_0x320fad}:undefined,'description':_0x1e0f60(0xdb)};},async 'execute'(_0x115789){const _0x57370a=_0x1ba05c;let _0x3813d8;if(_0x2179a9===_0x57370a(0x111))_0x3813d8=await getDatasetDesignContext(_0x115789[_0x57370a(0xf7)]);else{if(_0x2179a9==='validate'){_0x3813d8=await validateDatasetDesign(_0x115789[_0x57370a(0xf7)],await readManifest(resolve(required(_0x115789,_0x57370a(0xcc)))));if(_0x115789[_0x57370a(0x109)](_0x57370a(0xbf))&&_0x3813d8?.[_0x57370a(0xc8)]===!![]){const {writeFile:_0x5166a1,mkdir:_0x246f5d}=await import(_0x57370a(0xda)),{dirname:_0x19daee}=await import(_0x57370a(0xe0)),_0x299c45=resolve(_0x115789[_0x57370a(0x109)]('output'));await _0x246f5d(_0x19daee(_0x299c45),{'recursive':!![]}),await _0x5166a1(_0x299c45,JSON[_0x57370a(0xc5)](_0x3813d8,null,0x2)+'\x0a',{'mode':0x180});}}else{if(_0x2179a9===_0x57370a(0xd3))_0x3813d8=await start(_0x115789);else{if(_0x2179a9===_0x57370a(0xf9)){const _0x3a810f=_0x115789[_0x57370a(0x109)]('checkpoint');if(_0x3a810f){const _0xb80a68=await readCheckpoint(resolve(_0x3a810f));requireValue(_0xb80a68,'Checkpoint\x20not\x20found.'),_0x3813d8=await recover(_0xb80a68,resolve(_0x3a810f),_0x115789);}else _0x3813d8=statusData(await getDatasetDesignStatus(_0x115789[_0x57370a(0xf7)],{'operationId':_0x115789[_0x57370a(0x109)](_0x57370a(0xe5))||undefined,'clientOperationId':_0x115789['str'](_0x57370a(0xb6))||undefined}));}else{if(_0x2179a9===_0x57370a(0xf5))_0x3813d8=await getDatasetDesignSyncStatus(_0x115789[_0x57370a(0xf7)],required(_0x115789,_0x57370a(0xd5)));else _0x3813d8=await retryDatasetDesignSync(_0x115789[_0x57370a(0xf7)],required(_0x115789,_0x57370a(0xd5)));}}}}return{'ok':!![],'message':_0x3813d8[_0x57370a(0xf9)]===_0x57370a(0xae)?_0x57370a(0xf2):_0x3813d8[_0x57370a(0xf9)]===_0x57370a(0x104)?_0x57370a(0xd7):_0x57370a(0xf6)+_0x2179a9+_0x57370a(0x10d),'data':{'operation':'dataset.'+_0x3ff0a7,'appCode':_0x115789[_0x57370a(0xf7)],..._0x3813d8}};}};}
|
|
1
|
+
const a341_0x11b43d=a341_0x51ad;(function(_0x19d90b,_0x3b5591){const _0x3bcd25=a341_0x51ad,_0x12112f=_0x19d90b();while(!![]){try{const _0x30634b=-parseInt(_0x3bcd25(0x15f))/0x1*(-parseInt(_0x3bcd25(0x193))/0x2)+-parseInt(_0x3bcd25(0x11c))/0x3*(-parseInt(_0x3bcd25(0x144))/0x4)+parseInt(_0x3bcd25(0x194))/0x5*(parseInt(_0x3bcd25(0x14e))/0x6)+-parseInt(_0x3bcd25(0x179))/0x7*(parseInt(_0x3bcd25(0x17e))/0x8)+parseInt(_0x3bcd25(0x155))/0x9*(parseInt(_0x3bcd25(0x168))/0xa)+parseInt(_0x3bcd25(0x16f))/0xb+-parseInt(_0x3bcd25(0x12e))/0xc;if(_0x30634b===_0x3b5591)break;else _0x12112f['push'](_0x12112f['shift']());}catch(_0x3d18fd){_0x12112f['push'](_0x12112f['shift']());}}}(a341_0x142a,0xe3840));import{randomUUID}from'node:crypto';function a341_0x142a(){const _0x26e0fd=['taskId','Deterministic\x20dataset\x20design\x20','identityKey','rejected','failedStage','options','operationId','datasets_created','file','design-status','modelCode','Save\x20the\x20server-normalized\x20design\x20JSON','unresolvedRelations','code','cardinality','dataset-design-operation','state','inputHash','includes','1260826HRkWzH','5712265wmiYsk','Inspect\x20the\x20deterministic\x20request\x20without\x20submission\x20or\x20checkpoint\x20writes.','SUCCESS','entries','localKey','filter','map','isArray','Submission\x20outcome\x20is\x20unknown;\x20query\x20the\x20original\x20operation.','normalizedHash','33kyLeUc','errorMsg','string','context','GET','dataset','Saved\x20dataset\x20code','createdDatasets','size','search','push','FAILED','appCode','datasets','read','stringify','hash','lookup','34983372jQzakj','client-operation-id','Provide\x20exactly\x20one\x20operation-id,\x20client-operation-id\x20or\x20checkpoint.','Server\x20rejected\x20the\x20design;\x20run\x20design-validate\x20and\x20repair\x20the\x20reported\x20fields.','sync','client','toDatasetCode','progressRate','dataset.','validate','fromDatasetKey','result','length','toDatasetKey','Operation\x20submitted;\x20continue\x20querying\x20its\x20status.','name','checkpoint','startsWith','unknown_reconcile_failed','Checkpoint\x20creation\x20could\x20not\x20be\x20reconciled.','\x20response\x20received','Checkpoint\x20belongs\x20to\x20another\x20authenticated\x20principal.','228820AzZXZv','design-','/smartapi/dataset/design/','username','reused','fieldCount','operation','createdRelations','output','deleted','6xHNcTe','Server\x20context\x20lacks\x20an\x20authenticated\x20identity.','some','get','Server\x20operation\x20ID','submission_unknown','test','297sjqINu','expectedRelations','Checkpoint\x20not\x20found.','operation-id','.checkpoint.json','rabetbase','compress','node:path','start','fromField','2LtuZXm','Dataset\x20detail\x20does\x20not\x20contain\x20matching\x20DOV2\x20metadata.','toField','currentStep','PENDING','valid','Server\x20returned\x20an\x20invalid\x20design\x20hash.','every','fromDatasetCode','127570GyWsPS','apiDomain','prepared','status','add','operation_pending','unknown','17695007ZEaHhq','sync-retry','relations','clientOperationId','Durable\x20operation\x20checkpoint\x20path','Invalid\x20client-operation-id.','flagMissing','fields','query_original_operation','POST','8504769drNciO','str','replace','has','Checkpoint\x20target\x20or\x20design\x20changed.\x20Reconcile\x20the\x20original\x20operation;\x20use\x20a\x20new\x20design\x20file\x20for\x20an\x20intentional\x20new\x20operation.','8BmPTYs','write'];a341_0x142a=function(){return _0x26e0fd;};return a341_0x142a();}import{resolve}from'node:path';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{getApiDomain}from'../../constant/domain.js';import{getDatasetDesignContext,validateDatasetDesign,startDatasetDesign,getDatasetDesignStatus,getDatasetDesignSyncStatus,retryDatasetDesignSync,getDatasetDetail,getPlatformHttpStatus,isPlatformTransportFailure}from'../../core/api-client.js';import{inputHash,isObject,readManifest,requireValue,validateManifest}from'./contract.js';import{readCheckpoint,saveCheckpoint}from'./checkpoint.js';const flag=(_0x2a4460,_0x4f4543)=>({'name':_0x2a4460,'type':'string','description':_0x4f4543}),flags={'file':flag(a341_0x11b43d(0x188),'Agent-authored\x20JSON\x20dataset\x20manifest'),'output':flag(a341_0x11b43d(0x14c),a341_0x11b43d(0x18b)),'checkpoint':flag(a341_0x11b43d(0x13e),a341_0x11b43d(0x173)),'client':flag(a341_0x11b43d(0x12f),'Stable\x20recovery\x20ID\x20for\x20one\x20design\x20operation'),'operation':flag(a341_0x11b43d(0x158),a341_0x11b43d(0x152)),'code':flag(a341_0x11b43d(0x18d),a341_0x11b43d(0x122))};function domain(_0x179d33){const _0x4ba6ad=a341_0x11b43d,_0x52277b=new URL(_0x179d33[_0x4ba6ad(0x169)]||getApiDomain());return requireValue(!_0x52277b[_0x4ba6ad(0x147)]&&!_0x52277b['password']&&!_0x52277b[_0x4ba6ad(0x125)]&&!_0x52277b[_0x4ba6ad(0x12c)],'API\x20domain\x20must\x20not\x20contain\x20credentials,\x20query\x20or\x20fragment.'),_0x52277b['toString']()[_0x4ba6ad(0x17b)](/\/+$/,'');}function required(_0x192c3e,_0x3901e3){const _0x1acd52=a341_0x11b43d,_0x511797=_0x192c3e[_0x1acd52(0x17a)](_0x3901e3);if(!_0x511797)throw CliErrors[_0x1acd52(0x175)](_0x3901e3);return _0x511797;}function bind(_0x4bcd39,_0x3f619e,_0x3a71f8){const _0x4638e1=a341_0x11b43d;requireValue(_0x4bcd39[_0x4638e1(0x128)]===_0x3f619e['appCode']&&_0x4bcd39[_0x4638e1(0x169)]===domain(_0x3f619e)&&(_0x3a71f8===undefined||_0x4bcd39[_0x4638e1(0x191)]===_0x3a71f8),_0x4638e1(0x17d));}function query(_0x3be21b,_0x26802e){const _0x31e247=a341_0x11b43d;return{'command':_0x31e247(0x189),'argv':[_0x31e247(0x15a),'dataset',_0x31e247(0x189),'--appcode',_0x3be21b[_0x31e247(0x128)],'--checkpoint',_0x26802e,'--format','compress']};}function a341_0x51ad(_0x18f015,_0x30d50e){_0x18f015=_0x18f015-0x117;const _0x142a19=a341_0x142a();let _0x51ad5a=_0x142a19[_0x18f015];return _0x51ad5a;}function unknown(_0x59219c,_0xbf03c9){const _0x13c7e5=a341_0x11b43d;return{'status':_0x13c7e5(0x153),'clientOperationId':_0x59219c[_0x13c7e5(0x172)],'operationId':_0x59219c[_0x13c7e5(0x186)]??null,'checkpoint':_0xbf03c9,'query':query(_0x59219c,_0xbf03c9),'nextAction':_0x13c7e5(0x177)};}function matchesField(_0xfd64b8,_0x4b7529){const _0x24037f=a341_0x11b43d;return Object[_0x24037f(0x197)](_0x4b7529)[_0x24037f(0x166)](([_0x36f775,_0x179b00])=>{const _0x4c4695=_0x24037f;if(_0x179b00==null)return!![];const _0x289bf5=_0xfd64b8[_0x36f775];if(_0x36f775===_0x4c4695(0x185)){if(!Array['isArray'](_0x289bf5)||!Array[_0x4c4695(0x119)](_0x179b00)||_0x289bf5[_0x4c4695(0x150)](_0x3af8ba=>!isObject(_0x3af8ba)))return![];const _0x5a08fd=_0x25c45f=>_0x25c45f['map'](({label:_0x1ee279,value:_0x366222})=>({'label':_0x1ee279,'value':_0x366222}));return inputHash(_0x5a08fd(_0x289bf5))===inputHash(_0x5a08fd(_0x179b00));}return _0x289bf5!==undefined&&inputHash(_0x289bf5)===inputHash(_0x179b00);});}function reconcile(_0x7bdd5a,_0x38f37f){const _0x18607f=a341_0x11b43d;if(!isObject(_0x7bdd5a)||!Array[_0x18607f(0x119)](_0x7bdd5a[_0x18607f(0x123)])||!Array['isArray'](_0x7bdd5a[_0x18607f(0x14b)]))return;const _0x5da36f=_0x7bdd5a['createdDatasets'],_0x33f7c4=_0x38f37f?.[_0x18607f(0x129)][_0x18607f(0x118)](_0x268e96=>_0x268e96[_0x18607f(0x198)])??_0x7bdd5a['expectedLocalKeys'];if(!Array[_0x18607f(0x119)](_0x33f7c4)||_0x33f7c4['length']!==_0x5da36f['length']||new Set(_0x33f7c4)[_0x18607f(0x124)]!==_0x33f7c4['length'])return;const _0x304d8c=new Map();for(const _0x135810 of _0x5da36f){if(!isObject(_0x135810)||typeof _0x135810['localKey']!==_0x18607f(0x11e)||typeof _0x135810['code']!=='string'||!_0x135810[_0x18607f(0x18d)]||_0x304d8c[_0x18607f(0x17c)](_0x135810[_0x18607f(0x198)]))return;_0x304d8c['set'](_0x135810[_0x18607f(0x198)],_0x135810[_0x18607f(0x18d)]);if(_0x38f37f){const _0x472c03=_0x38f37f[_0x18607f(0x129)]['find'](_0x5e9283=>_0x5e9283[_0x18607f(0x198)]===_0x135810[_0x18607f(0x198)]);if(!_0x472c03||!Array[_0x18607f(0x119)](_0x135810[_0x18607f(0x176)]))return;if(_0x135810[_0x18607f(0x176)]['some'](_0x1a357e=>!isObject(_0x1a357e)))return;const _0x17555e=new Map(_0x135810['fields'][_0x18607f(0x118)](_0x115d07=>[_0x115d07['name'],_0x115d07]));if(_0x17555e[_0x18607f(0x124)]!==_0x135810[_0x18607f(0x176)][_0x18607f(0x13a)]||_0x135810[_0x18607f(0x149)]!==_0x135810[_0x18607f(0x176)][_0x18607f(0x13a)])return;if(_0x472c03[_0x18607f(0x176)]['some'](_0x326f8d=>!_0x17555e[_0x18607f(0x17c)](_0x326f8d[_0x18607f(0x13d)])||!matchesField(_0x17555e[_0x18607f(0x151)](_0x326f8d['name']),_0x326f8d)))return;const _0x27fa96=new Set(_0x472c03['fields'][_0x18607f(0x118)](_0x63b65d=>_0x63b65d[_0x18607f(0x13d)]));_0x27fa96[_0x18607f(0x16c)]('id');if(_0x135810[_0x18607f(0x176)][_0x18607f(0x150)](_0x178375=>!_0x27fa96['has'](_0x178375[_0x18607f(0x13d)])))return;}}if(new Set(_0x304d8c['values']())[_0x18607f(0x124)]!==_0x304d8c['size']||_0x33f7c4['some'](_0x473c55=>!_0x304d8c[_0x18607f(0x17c)](_0x473c55)))return;const _0x18c8de=_0x38f37f?.[_0x18607f(0x171)]??_0x7bdd5a[_0x18607f(0x156)];if(!Array[_0x18607f(0x119)](_0x18c8de)||_0x18c8de[_0x18607f(0x13a)]!==_0x7bdd5a['createdRelations'][_0x18607f(0x13a)])return;const _0x5d355a=_0x3c3877=>JSON[_0x18607f(0x12b)]([_0x3c3877[_0x18607f(0x138)],_0x3c3877[_0x18607f(0x15e)],_0x3c3877[_0x18607f(0x134)]||_0x304d8c[_0x18607f(0x151)](_0x3c3877[_0x18607f(0x13b)]),_0x3c3877[_0x18607f(0x161)],_0x3c3877['relationType']||_0x18607f(0x12d),_0x3c3877[_0x18607f(0x18e)]||'MANY_TO_ONE']),_0x162fe8=new Set(_0x18c8de['map'](_0x5d355a)),_0x2a0534=new Set(_0x7bdd5a[_0x18607f(0x14b)][_0x18607f(0x118)](_0x5d355a));if(_0x2a0534['size']!==_0x18c8de[_0x18607f(0x13a)]||_0x162fe8[_0x18607f(0x124)]!==_0x18c8de[_0x18607f(0x13a)]||[..._0x162fe8][_0x18607f(0x150)](_0x476cbe=>!_0x2a0534[_0x18607f(0x17c)](_0x476cbe)))return;for(const _0x7c9d5c of _0x7bdd5a['createdRelations']){if(_0x7c9d5c[_0x18607f(0x167)]!==_0x304d8c['get'](_0x7c9d5c[_0x18607f(0x138)])||_0x7c9d5c[_0x18607f(0x13b)]&&_0x7c9d5c[_0x18607f(0x134)]!==_0x304d8c[_0x18607f(0x151)](_0x7c9d5c[_0x18607f(0x13b)]))return;}return{'createdDatasets':_0x5da36f,'createdRelations':_0x7bdd5a[_0x18607f(0x14b)],'unresolvedRelations':_0x7bdd5a[_0x18607f(0x18c)]??[]};}export function statusData(_0x4e6ee3,_0x470269){const _0x9dad9=a341_0x11b43d;requireValue(isObject(_0x4e6ee3)&&typeof _0x4e6ee3[_0x9dad9(0x16b)]===_0x9dad9(0x11e),'Server\x20response\x20does\x20not\x20contain\x20a\x20valid\x20operation\x20state.');const _0x26ee1d={'jobStatus':_0x4e6ee3[_0x9dad9(0x16b)],'operationId':_0x4e6ee3[_0x9dad9(0x186)]??_0x4e6ee3[_0x9dad9(0x180)]??null,'taskId':_0x4e6ee3[_0x9dad9(0x180)]??_0x4e6ee3[_0x9dad9(0x186)]??null,'clientOperationId':_0x4e6ee3[_0x9dad9(0x172)]??null,'progressRate':_0x4e6ee3[_0x9dad9(0x135)]??null,'currentStep':_0x4e6ee3[_0x9dad9(0x162)]??null,'failedStage':_0x4e6ee3[_0x9dad9(0x184)]??null,'sync':_0x4e6ee3[_0x9dad9(0x132)]??null,'errorMsg':_0x4e6ee3[_0x9dad9(0x11d)]??null,'metrics':_0x4e6ee3['metrics']??null},_0xd662c4=!_0x470269&&_0x4e6ee3[_0x9dad9(0x16b)]==='SUCCESS'&&isObject(_0x4e6ee3['result']?.[_0x9dad9(0x121)])?_0x4e6ee3[_0x9dad9(0x139)]['dataset']:undefined;if(_0xd662c4&&typeof _0xd662c4[_0x9dad9(0x18d)]===_0x9dad9(0x11e)&&_0xd662c4[_0x9dad9(0x18d)]&&_0xd662c4['id']!=null)return{..._0x26ee1d,'status':'dataset_created','createdDataset':_0xd662c4};const _0x428fc8=_0x4e6ee3[_0x9dad9(0x16b)]==='SUCCESS'?reconcile(_0x4e6ee3['result'],_0x470269):undefined;return{..._0x26ee1d,'status':_0x4e6ee3[_0x9dad9(0x16b)]===_0x9dad9(0x196)?_0x428fc8?_0x9dad9(0x187):'unknown_reconcile_failed':_0x4e6ee3[_0x9dad9(0x16b)]===_0x9dad9(0x127)?'operation_failed':[_0x9dad9(0x163),'PROCESSING'][_0x9dad9(0x192)](_0x4e6ee3[_0x9dad9(0x16b)])?_0x9dad9(0x16d):_0x9dad9(0x140),..._0x428fc8};}async function readStatus(_0x22b633,_0x1f1afd){const _0x50ab5b=a341_0x11b43d,_0x6278fe=statusData(_0x22b633,_0x1f1afd);if(_0x22b633[_0x50ab5b(0x16b)]!==_0x50ab5b(0x196)||!reconcile(_0x22b633[_0x50ab5b(0x139)]))return _0x6278fe;const _0x3a0b53=[];for(const _0x3f49aa of _0x22b633['result'][_0x50ab5b(0x123)]){const _0x46e18a=await getDatasetDetail(_0x3f49aa[_0x50ab5b(0x18d)]);requireValue(isObject(_0x46e18a)&&(_0x46e18a[_0x50ab5b(0x18a)]||_0x46e18a[_0x50ab5b(0x18d)])===_0x3f49aa[_0x50ab5b(0x18d)]&&Array[_0x50ab5b(0x119)](_0x46e18a[_0x50ab5b(0x176)]),_0x50ab5b(0x160));const _0x57102b=_0x46e18a[_0x50ab5b(0x176)]['filter'](_0x43942d=>_0x43942d[_0x50ab5b(0x14d)]!==!![]);_0x3a0b53[_0x50ab5b(0x126)]({..._0x3f49aa,'fields':_0x57102b,'fieldCount':_0x57102b[_0x50ab5b(0x13a)]});}return statusData({..._0x22b633,'result':{..._0x22b633[_0x50ab5b(0x139)],'createdDatasets':_0x3a0b53}},_0x1f1afd);}async function recover(_0x246dce,_0x297c6d,_0x54b018){const _0x46d8eb=a341_0x11b43d;bind(_0x246dce,_0x54b018);const _0x54874c=await getDatasetDesignContext(_0x54b018[_0x46d8eb(0x128)]);requireValue(_0x54874c?.[_0x46d8eb(0x182)]===_0x246dce['identityKey'],_0x46d8eb(0x143));let _0x3f3dcb;try{_0x3f3dcb=await getDatasetDesignStatus(_0x54b018[_0x46d8eb(0x128)],{'clientOperationId':_0x246dce[_0x46d8eb(0x172)]});}catch(_0x3939e5){const _0x54e751=getPlatformHttpStatus(_0x3939e5);if(isPlatformTransportFailure(_0x3939e5)||_0x54e751===0x194)return unknown(_0x246dce,_0x297c6d);throw _0x3939e5;}const _0x1cfdff=await readStatus(_0x3f3dcb,_0x246dce['manifest']);return _0x246dce[_0x46d8eb(0x190)]=_0x1cfdff[_0x46d8eb(0x16b)],_0x246dce[_0x46d8eb(0x186)]=_0x3f3dcb[_0x46d8eb(0x186)]||_0x246dce[_0x46d8eb(0x186)],await saveCheckpoint(_0x297c6d,_0x246dce),{..._0x1cfdff,'checkpoint':_0x297c6d,'query':query(_0x246dce,_0x297c6d)};}async function start(_0x1d3f38){const _0x1f2993=a341_0x11b43d,_0x486652=resolve(required(_0x1d3f38,_0x1f2993(0x188))),_0x249d84=await readManifest(_0x486652),_0x190a05=inputHash(_0x249d84),_0xab1b09=resolve(_0x1d3f38[_0x1f2993(0x17a)](_0x1f2993(0x13e))||_0x486652+_0x1f2993(0x159)),_0x1bc951=await readCheckpoint(_0xab1b09);if(_0x1bc951)return bind(_0x1bc951,_0x1d3f38,_0x190a05),requireValue(!_0x1d3f38[_0x1f2993(0x17a)](_0x1f2993(0x12f))||_0x1d3f38[_0x1f2993(0x17a)](_0x1f2993(0x12f))===_0x1bc951[_0x1f2993(0x172)],'client-operation-id\x20differs\x20from\x20the\x20checkpoint\x20operation.'),recover(_0x1bc951,_0xab1b09,_0x1d3f38);const _0x5d6b6b=await getDatasetDesignContext(_0x1d3f38[_0x1f2993(0x128)]);requireValue(typeof _0x5d6b6b?.[_0x1f2993(0x182)]==='string'&&_0x5d6b6b['identityKey'],_0x1f2993(0x14f));const _0xe257dc=await validateDatasetDesign(_0x1d3f38[_0x1f2993(0x128)],_0x249d84);requireValue(_0xe257dc?.[_0x1f2993(0x164)]===!![],_0x1f2993(0x131));const _0x5809a6=validateManifest(_0xe257dc['normalizedManifest']);requireValue(typeof _0xe257dc[_0x1f2993(0x11b)]===_0x1f2993(0x11e)&&/^[a-f0-9]{64}$/[_0x1f2993(0x154)](_0xe257dc[_0x1f2993(0x11b)]),_0x1f2993(0x165));const _0x132b5e=_0x1d3f38[_0x1f2993(0x17a)]('client-operation-id')||'dataset-design-'+randomUUID();requireValue(/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/[_0x1f2993(0x154)](_0x132b5e),_0x1f2993(0x174));const _0x218882={'kind':_0x1f2993(0x18f),'schemaVersion':0x1,'appCode':_0x1d3f38[_0x1f2993(0x128)],'apiDomain':domain(_0x1d3f38),'identityKey':_0x5d6b6b[_0x1f2993(0x182)],'inputHash':_0x190a05,'clientOperationId':_0x132b5e,'manifest':_0x5809a6,'expectedHash':_0xe257dc[_0x1f2993(0x11b)],'state':_0x1f2993(0x16a)};if(!await saveCheckpoint(_0xab1b09,_0x218882,!![])){const _0x47b732=await readCheckpoint(_0xab1b09);return requireValue(_0x47b732,_0x1f2993(0x141)),bind(_0x47b732,_0x1d3f38,_0x190a05),recover(_0x47b732,_0xab1b09,_0x1d3f38);}_0x218882[_0x1f2993(0x190)]='submitting',await saveCheckpoint(_0xab1b09,_0x218882);let _0x460097;try{_0x460097=await startDatasetDesign(_0x1d3f38[_0x1f2993(0x128)],_0x5809a6,_0x218882['expectedHash'],_0x132b5e);}catch(_0x2603cf){const _0x2b79d6=isPlatformTransportFailure(_0x2603cf);_0x218882[_0x1f2993(0x190)]=_0x2b79d6?_0x1f2993(0x16e):_0x1f2993(0x183),await saveCheckpoint(_0xab1b09,_0x218882);if(!_0x2b79d6)throw _0x2603cf;return unknown(_0x218882,_0xab1b09);}if(!isObject(_0x460097)||!(_0x460097[_0x1f2993(0x186)]||_0x460097[_0x1f2993(0x180)])||typeof _0x460097[_0x1f2993(0x16b)]!==_0x1f2993(0x11e))return _0x218882['state']=_0x1f2993(0x16e),await saveCheckpoint(_0xab1b09,_0x218882),unknown(_0x218882,_0xab1b09);return _0x218882[_0x1f2993(0x186)]=_0x460097[_0x1f2993(0x186)]||_0x460097[_0x1f2993(0x180)],_0x218882[_0x1f2993(0x190)]=_0x460097[_0x1f2993(0x16b)],await saveCheckpoint(_0xab1b09,_0x218882),{...await readStatus(_0x460097,_0x5809a6),'clientOperationId':_0x132b5e,'checkpoint':_0xab1b09,'reused':_0x460097[_0x1f2993(0x148)]??![],'query':query(_0x218882,_0xab1b09)};}export function designCommand(_0x1045e5){const _0x2534e7=a341_0x11b43d,_0xb58ea2=_0x2534e7(0x145)+_0x1045e5,_0x1b8e34=_0x1045e5===_0x2534e7(0x137)?[flags[_0x2534e7(0x188)],flags[_0x2534e7(0x14c)]]:_0x1045e5===_0x2534e7(0x15d)?[flags[_0x2534e7(0x188)],flags[_0x2534e7(0x13e)],flags['client']]:_0x1045e5==='status'?[flags[_0x2534e7(0x14a)],flags[_0x2534e7(0x133)],flags[_0x2534e7(0x13e)]]:_0x1045e5[_0x2534e7(0x13f)](_0x2534e7(0x132))?[flags[_0x2534e7(0x18d)]]:[];return{'service':_0x2534e7(0x121),'command':_0xb58ea2,'description':_0x2534e7(0x181)+_0x1045e5,'risk':_0x1045e5===_0x2534e7(0x15d)||_0x1045e5===_0x2534e7(0x170)?_0x2534e7(0x17f):_0x2534e7(0x12a),'defaultOutputFormat':_0x2534e7(0x15b),'strictFlags':!![],'structuredErrors':!![],'flags':[..._0x1b8e34,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5ba353){const _0x5e5f17=_0x2534e7;if([_0x5e5f17(0x137),_0x5e5f17(0x15d)][_0x5e5f17(0x192)](_0x1045e5))required(_0x5ba353,'file');if(_0x1045e5[_0x5e5f17(0x13f)](_0x5e5f17(0x132)))required(_0x5ba353,'code');if(_0x1045e5===_0x5e5f17(0x16b))requireValue([_0x5ba353[_0x5e5f17(0x17a)](_0x5e5f17(0x158)),_0x5ba353['str'](_0x5e5f17(0x12f)),_0x5ba353[_0x5e5f17(0x17a)](_0x5e5f17(0x13e))][_0x5e5f17(0x117)](Boolean)[_0x5e5f17(0x13a)]===0x1,_0x5e5f17(0x130));},async 'dryRun'(_0x2234c5){const _0x306695=_0x2534e7,_0x3e4213=[_0x306695(0x137),'start'][_0x306695(0x192)](_0x1045e5)?await readManifest(resolve(required(_0x2234c5,'file'))):undefined;return{'method':[_0x306695(0x137),_0x306695(0x15d),'sync-retry'][_0x306695(0x192)](_0x1045e5)?_0x306695(0x178):_0x306695(0x120),'url':_0x306695(0x146)+_0x1045e5,'body':_0x3e4213?{'appCode':_0x2234c5[_0x306695(0x128)],'manifest':_0x3e4213}:undefined,'description':_0x306695(0x195)};},async 'execute'(_0x204429){const _0x3ebeee=_0x2534e7;let _0x3be102;if(_0x1045e5===_0x3ebeee(0x11f))_0x3be102=await getDatasetDesignContext(_0x204429['appCode']);else{if(_0x1045e5===_0x3ebeee(0x137)){_0x3be102=await validateDatasetDesign(_0x204429['appCode'],await readManifest(resolve(required(_0x204429,_0x3ebeee(0x188)))));if(_0x204429['str']('output')&&_0x3be102?.['valid']===!![]){const {writeFile:_0x56981a,mkdir:_0xe29c6}=await import('node:fs/promises'),{dirname:_0x445b45}=await import(_0x3ebeee(0x15c)),_0x3ca4f8=resolve(_0x204429[_0x3ebeee(0x17a)](_0x3ebeee(0x14c)));await _0xe29c6(_0x445b45(_0x3ca4f8),{'recursive':!![]}),await _0x56981a(_0x3ca4f8,JSON[_0x3ebeee(0x12b)](_0x3be102,null,0x2)+'\x0a',{'mode':0x180});}}else{if(_0x1045e5===_0x3ebeee(0x15d))_0x3be102=await start(_0x204429);else{if(_0x1045e5==='status'){const _0x15cdec=_0x204429[_0x3ebeee(0x17a)](_0x3ebeee(0x13e));if(_0x15cdec){const _0x395b8e=await readCheckpoint(resolve(_0x15cdec));requireValue(_0x395b8e,_0x3ebeee(0x157)),_0x3be102=await recover(_0x395b8e,resolve(_0x15cdec),_0x204429);}else _0x3be102=statusData(await getDatasetDesignStatus(_0x204429[_0x3ebeee(0x128)],{'operationId':_0x204429[_0x3ebeee(0x17a)](_0x3ebeee(0x158))||undefined,'clientOperationId':_0x204429['str'](_0x3ebeee(0x12f))||undefined}));}else{if(_0x1045e5==='sync-status')_0x3be102=await getDatasetDesignSyncStatus(_0x204429['appCode'],required(_0x204429,'code'));else _0x3be102=await retryDatasetDesignSync(_0x204429['appCode'],required(_0x204429,'code'));}}}}return{'ok':!![],'message':_0x3be102[_0x3ebeee(0x16b)]===_0x3ebeee(0x153)?_0x3ebeee(0x11a):_0x3be102[_0x3ebeee(0x16b)]===_0x3ebeee(0x16d)?_0x3ebeee(0x13c):'Dataset\x20design\x20'+_0x1045e5+_0x3ebeee(0x142),'data':{'operation':_0x3ebeee(0x136)+_0xb58ea2,'appCode':_0x204429['appCode'],..._0x3be102}};}};}
|