@lovrabet/rabetbase-cli 2.5.7-beta.1 → 2.5.8-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/design-context.js +1 -1
- package/lib/commands/dataset/design-start.js +1 -1
- package/lib/commands/dataset/design-status.js +1 -1
- package/lib/commands/dataset/design-sync-retry.js +1 -1
- package/lib/commands/dataset/design-sync-status.js +1 -1
- package/lib/commands/dataset/design-validate.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/cross-db-analysis-shared.js +1 -1
- package/lib/commands/db/cross-db-analyze-latest.js +1 -1
- package/lib/commands/db/cross-db-analyze-start.js +1 -1
- package/lib/commands/db/cross-db-analyze-status.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/page-list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/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.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-analysis.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/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 +1 -1
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a324_0xfde2(_0x3a13a8,_0x9df7de){_0x3a13a8=_0x3a13a8-0x159;const _0x25b506=a324_0x25b5();let _0xfde2aa=_0x25b506[_0x3a13a8];return _0xfde2aa;}(function(_0x6202eb,_0x5f7e31){const _0x5a389a=a324_0xfde2,_0x309d25=_0x6202eb();while(!![]){try{const _0x20904c=parseInt(_0x5a389a(0x16b))/0x1*(parseInt(_0x5a389a(0x159))/0x2)+parseInt(_0x5a389a(0x15b))/0x3*(parseInt(_0x5a389a(0x170))/0x4)+-parseInt(_0x5a389a(0x167))/0x5+-parseInt(_0x5a389a(0x161))/0x6*(parseInt(_0x5a389a(0x15e))/0x7)+-parseInt(_0x5a389a(0x171))/0x8*(parseInt(_0x5a389a(0x15c))/0x9)+-parseInt(_0x5a389a(0x16e))/0xa+parseInt(_0x5a389a(0x173))/0xb*(parseInt(_0x5a389a(0x172))/0xc);if(_0x20904c===_0x5f7e31)break;else _0x309d25['push'](_0x309d25['shift']());}catch(_0x3129e2){_0x309d25['push'](_0x309d25['shift']());}}}(a324_0x25b5,0xacee2));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{resolveApiModelSource}from'../api/model-source.js';function a324_0x25b5(){const _0x3959ca=['31572mWwFYr','14212ZYFFFn','alias','validation','join','2nNIaiR','\x20api\x20pull`\x20first.','6RZEBAL','36suBvxw','profileName','7hSbiJi','string','code','1244292RTnsMZ','.\x20Run\x20`','map','type','name','flags','6314250aqOBlG','Available\x20aliases:\x20','`\x20requires\x20either\x20--code\x20or\x20--alias.','Unknown\x20alias\x20\x22','11841kTEGku','\x22.\x20','filePath','5979150TBHJzT','some','1417688hqGYYF','2686936PRGEsy'];a324_0x25b5=function(){return _0x3959ca;};return a324_0x25b5();}export function resolveAliasToCode(_0xb409d3,_0xc3aabe,_0x23937f,_0x1f8212,_0x2743f1,_0x48949e){const _0x316d3c=a324_0xfde2,_0x39c5c8=_0xb409d3['flags'][_0x316d3c(0x16f)](_0x28a17b=>_0x28a17b[_0x316d3c(0x165)]===_0x316d3c(0x160)&&_0x28a17b[_0x316d3c(0x164)]===_0x316d3c(0x15f)),_0x43f6ea=_0xb409d3[_0x316d3c(0x166)][_0x316d3c(0x16f)](_0x1e4248=>_0x1e4248['name']==='alias'&&_0x1e4248[_0x316d3c(0x164)]==='string');if(!_0x39c5c8||!_0x43f6ea)return;const _0x294692=_0xc3aabe[_0x316d3c(0x160)]?String(_0xc3aabe[_0x316d3c(0x160)]):'',_0x2259ed=_0xc3aabe[_0x316d3c(0x174)]?String(_0xc3aabe[_0x316d3c(0x174)]):'';if(!_0x294692&&!_0x2259ed)throw CliErrors[_0x316d3c(0x175)]('`'+_0x1f8212+_0x316d3c(0x169));if(_0x2259ed&&!_0x294692){const _0x12e76f=resolveApiModelSource(_0x23937f,_0x2743f1,_0x48949e),_0x50076d=resolveAlias(_0x23937f,_0x2259ed,undefined,_0x12e76f[_0x316d3c(0x16d)],_0x12e76f[_0x316d3c(0x15d)]);if(!_0x50076d){const _0x29fca5=listAliases(_0x23937f,undefined,_0x12e76f[_0x316d3c(0x16d)],_0x12e76f[_0x316d3c(0x15d)])[_0x316d3c(0x163)](_0x3b0ba1=>_0x3b0ba1[_0x316d3c(0x174)]),_0x3a656e=_0x29fca5['length']?_0x316d3c(0x168)+_0x29fca5[_0x316d3c(0x176)](',\x20'):'No\x20model\x20aliases\x20found\x20in\x20'+_0x23937f+_0x316d3c(0x162)+CLI_BIN_NAME+_0x316d3c(0x15a);throw CliErrors[_0x316d3c(0x175)](_0x316d3c(0x16a)+_0x2259ed+_0x316d3c(0x16c)+_0x3a656e);}_0xc3aabe[_0x316d3c(0x160)]=_0x50076d;}}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x5d97cf,_0x1e8d8a){const _0x450697=a325_0x17ea,_0x510850=_0x5d97cf();while(!![]){try{const _0x27adc6=parseInt(_0x450697(0x194))/0x1*(-parseInt(_0x450697(0x1a2))/0x2)+parseInt(_0x450697(0x17a))/0x3+parseInt(_0x450697(0x184))/0x4+parseInt(_0x450697(0x18d))/0x5+parseInt(_0x450697(0x19a))/0x6*(-parseInt(_0x450697(0x169))/0x7)+-parseInt(_0x450697(0x164))/0x8+parseInt(_0x450697(0x15d))/0x9;if(_0x27adc6===_0x1e8d8a)break;else _0x510850['push'](_0x510850['shift']());}catch(_0xee9c43){_0x510850['push'](_0x510850['shift']());}}}(a325_0x2a87,0x3f899));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_0x2bc11d}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x1527a9){const _0x594390=a325_0x17ea;return typeof _0x1527a9===_0x594390(0x16d)&&_0x1527a9[_0x594390(0x19d)]()?_0x1527a9[_0x594390(0x19d)]():undefined;}function a325_0x17ea(_0x1d8370,_0x39fb2a){_0x1d8370=_0x1d8370-0x157;const _0x2a87ea=a325_0x2a87();let _0x17ea29=_0x2a87ea[_0x1d8370];return _0x17ea29;}function resolveEnvAppCode(){const _0x141192=a325_0x17ea,_0x5e71b0=stringFlag(process.env.RABETBASE_APPCODE);if(_0x5e71b0)return{'name':_0x141192(0x163),'value':_0x5e71b0};const _0x2f7126=stringFlag(process.env.LOVRABET_APPCODE);if(_0x2f7126)return{'name':_0x141192(0x18f),'value':_0x2f7126};return undefined;}function hasExplicitAppCode(_0x30aa40,_0x319d66){const _0x1358da=a325_0x17ea;return!!(stringFlag(_0x30aa40[_0x1358da(0x15b)])||stringFlag(_0x319d66[_0x1358da(0x15b)]));}function a325_0x2a87(){const _0x54ef48=['Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','627826RZEaRF','confirmHighRisk','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','../constant/domain.js','rawFlags','_notice','apiDir','hint','nonInteractive','rejectedFlags','filter','selectedAppName','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','mergedCli','join','length','toUpperCase','object','Current\x20resolved\x20appcode\x20is\x20\x22','resolveAppCode','pretty','appcode','command','7167636oDNCub','service','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','resolveApiDomain','validation','RABETBASE_APPCODE','3570208BVXtxA','keys','includes','riskLevel','production','7ScaqSH','High-risk\x20operation\x20`','requiresAppCode','find','string','required','\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20','defaultPageSize','map','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','formatOutput','replace','has','apps','⚠\x20\x20High-risk\x20operation:\x20','name','doctor','718254aqCqNo','value','../constant/env.js','defaultVerbose','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','AppCode\x20\x22','configMissing','catch','risk','cookie','1422628oVNWWW','entries','resolveCookie','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','all','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','\x0a\x20\x20','cancelled','\x20\x20\x20Continue?\x20[y/N]\x20','553925bwrqlw','resolve','LOVRABET_APPCODE','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','update','../core/api-client.js','1DZApMk','explicitAppName','message','defaultApp','appCode','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','2890956DSBbYn','Available:\x20','format','trim','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','currentApp','Edit\x20the\x20config\x20file\x20manually'];a325_0x2a87=function(){return _0x54ef48;};return a325_0x2a87();}function assertEnvAppCodeNotIgnored(_0x4089e8,_0xe95eca,_0x57ae5e){const _0x47239b=a325_0x17ea;if(!_0xe95eca||_0x57ae5e||_0x4089e8===_0xe95eca[_0x47239b(0x17b)])return;const _0x3ba34f=_0x4089e8?_0x47239b(0x158)+_0x4089e8+'\x22.':_0x47239b(0x17e);throw CliErrors['validation'](_0xe95eca['name']+'='+_0xe95eca[_0x47239b(0x17b)]+_0x47239b(0x190)+_0x3ba34f+'\x20'+(_0x47239b(0x15f)+_0xe95eca['name']+'\x22.'));}export function createPipelineEnv(_0x1621b9,_0x5440bc,_0x222e7a=[]){const _0x586806=a325_0x17ea;return{'rawFlags':_0x5440bc,'args':_0x222e7a,'resolveAppCode':()=>_0x1621b9[_0x586806(0x198)],'resolveCookie':()=>_0x1621b9[_0x586806(0x183)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a325_0x2bc11d(_0x5440bc),'defaultFormat':_0x1621b9['format'],'defaultPageSize':_0x1621b9['pageSize'],'defaultVerbose':_0x1621b9['verbose'],'apiDir':_0x1621b9[_0x586806(0x1a8)],'riskLevel':_0x1621b9[_0x586806(0x167)],'selectedAppName':_0x1621b9[_0x586806(0x195)],'mergedCli':{'defaultApp':_0x1621b9[_0x586806(0x197)],'currentApp':_0x1621b9[_0x586806(0x19f)],'appCode':_0x1621b9[_0x586806(0x198)],'apps':_0x1621b9[_0x586806(0x176)]}};}export function createRabetbaseRunnerAdapter(_0x2b981a={}){const _0x3563c5=a325_0x17ea;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x3563c5(0x1ac)](_0x2403b0=>PIPELINE_FLAG_NAMES[_0x3563c5(0x175)](_0x2403b0['name']))['map'](({name:_0x434e29,type:_0x468b77,description:_0x24405a})=>({'name':_0x434e29,'type':_0x468b77,'description':_0x24405a})),'formatOutput':_0x2b981a[_0x3563c5(0x173)]??formatOutput,'getCommandLabel'(_0x262e10){const _0x10bc41=_0x3563c5;return CLI_BIN_NAME+'\x20'+_0x262e10[_0x10bc41(0x15e)]+'\x20'+_0x262e10[_0x10bc41(0x15c)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x32758f,{def:_0x5298fc}){const _0x5831ba=_0x3563c5,_0x35a4e0=_0x32758f['includes'](_0x5831ba(0x1a0))?_0x5831ba(0x172):_0x5831ba(0x199)+_0x5298fc[_0x5831ba(0x182)]+_0x5831ba(0x191)+_0x5831ba(0x172);return CliErrors[_0x5831ba(0x162)](_0x32758f+_0x5831ba(0x18a)+_0x35a4e0);}},async 'prepare'(_0x414ffb,_0x506691,_0x660561,_0x5598ad){const _0x135f9=_0x3563c5,_0xe1d78c=_0x506691[_0x135f9(0x1a8)]||DEFAULT_API_DIR,_0x464f98=hasExplicitAppCode(_0x660561,_0x506691[_0x135f9(0x1a6)]),_0x467516=stringFlag(_0x660561[_0x135f9(0x15b)])||stringFlag(_0x506691[_0x135f9(0x1a6)][_0x135f9(0x15b)]),_0x27dcc2=_0x506691[_0x135f9(0x1af)]?.[_0x135f9(0x176)]??{},_0x361163=_0x506691['selectedAppName']||_0x506691[_0x135f9(0x1af)]?.[_0x135f9(0x19f)]||_0x506691[_0x135f9(0x1af)]?.['defaultApp'],_0x3b6ff3=_0x467516?Object[_0x135f9(0x185)](_0x27dcc2)['filter'](([,_0x1e4712])=>_0x1e4712['appcode']===_0x467516)[_0x135f9(0x171)](([_0x32e6da])=>_0x32e6da):[];if(_0x3b6ff3[_0x135f9(0x1b1)]>0x1&&!_0x506691[_0x135f9(0x1ad)])throw CliErrors[_0x135f9(0x162)](_0x135f9(0x17f)+_0x467516+_0x135f9(0x16f)+_0x3b6ff3[_0x135f9(0x1b0)](',\x20')+'.',_0x135f9(0x1a1));resolveAliasToCode(_0x414ffb,_0x660561,_0xe1d78c,_0x5598ad,_0x506691[_0x135f9(0x159)](),_0x361163);const _0x494db9=resolveCommandAuthMode(_0x414ffb);let _0x5f134d='';if(_0x494db9!=='none'){_0x5f134d=_0x506691[_0x135f9(0x186)]()||'';if(!_0x5f134d){if(_0x494db9===_0x135f9(0x16e))throw CliErrors['authRequired']();}else{const {setActiveCookie:_0x4cce5a}=await import('../core/api-client.js');_0x4cce5a(_0x5f134d);}}const _0x456110=_0x506691['resolveAppCode']()??'';if(_0x414ffb[_0x135f9(0x16b)]!==![]){if(!_0x464f98&&_0x361163&&!_0x27dcc2[_0x361163]){const _0x3bc4c2=Object[_0x135f9(0x165)](_0x27dcc2);throw CliErrors[_0x135f9(0x162)]('App\x20\x22'+_0x361163+_0x135f9(0x19e),_0x3bc4c2[_0x135f9(0x1b1)]>0x0?_0x135f9(0x19b)+_0x3bc4c2['join'](',\x20')+_0x135f9(0x189)+CLI_BIN_NAME+_0x135f9(0x1a4):_0x135f9(0x1ae)+CLI_BIN_NAME+_0x135f9(0x1a4));}assertEnvAppCodeNotIgnored(_0x456110,resolveEnvAppCode(),_0x464f98);if(!_0x456110){const _0x4199f0=Object[_0x135f9(0x165)](_0x27dcc2);if(!_0x361163&&_0x4199f0['length']>0x1)throw CliErrors[_0x135f9(0x180)](_0x135f9(0x160)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20'+_0x4199f0[_0x135f9(0x1b0)](',\x20')+'.');throw CliErrors[_0x135f9(0x180)]('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+_0x135f9(0x187));}}return{'defaults':{'booleans':{'verbose':_0x506691[_0x135f9(0x17d)]},'numbers':{'pagesize':_0x506691[_0x135f9(0x170)]}},'extras':{'appCode':_0x456110,'cookie':_0x5f134d,'apiDomain':_0x506691[_0x135f9(0x161)](),'apiDir':_0xe1d78c,'selectedAppName':_0x506691['selectedAppName'],'mergedCli':_0x506691[_0x135f9(0x1af)]}};},'confirmHighRisk':_0x2b981a[_0x3563c5(0x1a3)]??(async({env:_0x542533,commandLabel:_0x29eda8})=>{const _0x36efb7=_0x3563c5;if(_0x542533['isNonInteractive'])throw CliErrors[_0x36efb7(0x162)](_0x36efb7(0x16a)+_0x29eda8+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmationPrompt({'lines':[_0x36efb7(0x177)+_0x29eda8,_0x36efb7(0x18c)],'createCancelledError':_0x118791=>CliErrors[_0x36efb7(0x18b)](_0x118791)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x341119=a325_0x17ea,{clearActiveCookie:_0x1140a2}=await import(_0x341119(0x193));_0x1140a2();}export async function finalizeRabetbaseRuntimeState(){const _0x14c4e4=a325_0x17ea;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x58981f},{initEnv:_0x58ad83}]=await Promise[_0x14c4e4(0x188)]([import(_0x14c4e4(0x1a5)),import(_0x14c4e4(0x17c))]);_0x58981f(),_0x58ad83(_0x14c4e4(0x168));}}export async function runCommand(_0x361a75,_0xaa46e2,_0x4d2002=terminalRunnerAdapter){const _0x5c95ff=a325_0x17ea;assertRejectedFlags(_0x361a75,_0xaa46e2[_0x5c95ff(0x1a6)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x361a75)?withUpdateNotice(_0x361a75):_0x361a75,_0xaa46e2,_0x4d2002);}function assertRejectedFlags(_0x3ddd7d,_0x2b82bf){const _0x10000b=a325_0x17ea;for(const _0x51edcc of _0x3ddd7d[_0x10000b(0x1ab)]??[]){const _0x140175=GLOBAL_FLAGS[_0x10000b(0x16c)](_0x150d15=>_0x150d15[_0x10000b(0x178)]===_0x51edcc[_0x10000b(0x178)]),_0x303317=new Set([_0x51edcc[_0x10000b(0x178)],toCamelCase(_0x51edcc['name']),_0x140175?.['meowKey']]),_0x1fe737=[..._0x303317]['some'](_0x432157=>{if(!_0x432157)return![];const _0x3172fe=_0x2b82bf[_0x432157];return _0x3172fe!==undefined&&_0x3172fe!==null&&_0x3172fe!==![];});if(_0x1fe737)throw CliErrors[_0x10000b(0x162)](_0x51edcc[_0x10000b(0x196)],_0x51edcc[_0x10000b(0x1a9)]);}}function toCamelCase(_0x3b6e24){const _0x17407e=a325_0x17ea;return _0x3b6e24[_0x17407e(0x174)](/-([a-z])/g,(_0x13d9fd,_0x1f4b91)=>_0x1f4b91[_0x17407e(0x1b2)]());}function shouldAttachUpdateNotice(_0x358b29){const _0x3c3ecc=a325_0x17ea;if(_0x358b29['hasFormat']===![])return![];return![_0x3c3ecc(0x192),'schema',_0x3c3ecc(0x179)][_0x3c3ecc(0x166)](_0x358b29[_0x3c3ecc(0x15e)]);}function withUpdateNotice(_0xd42762){return{..._0xd42762,async 'execute'(_0x5161d4){const _0x401843=a325_0x17ea,_0x37a811=shouldResolveUpdateNotice(_0x5161d4)?resolveLatestUpdateNotice()[_0x401843(0x181)](()=>null):Promise[_0x401843(0x18e)](null),_0x370435=await _0xd42762['execute'](_0x5161d4);return attachUpdateNotice(_0x370435,await _0x37a811);}};}function shouldResolveUpdateNotice(_0x2ff84f){const _0x3a0c82=a325_0x17ea;return _0x2ff84f[_0x3a0c82(0x19c)]===_0x3a0c82(0x15a)&&!_0x2ff84f[_0x3a0c82(0x1aa)];}function attachUpdateNotice(_0x5c41e4,_0x43e3a2){const _0x3c98fd=a325_0x17ea;if(!_0x43e3a2||!_0x5c41e4||typeof _0x5c41e4!==_0x3c98fd(0x157))return _0x5c41e4;const _0x5ce998=_0x5c41e4,_0xd2c3f5=typeof _0x5ce998[_0x3c98fd(0x1a7)]==='object'&&_0x5ce998[_0x3c98fd(0x1a7)]!==null?_0x5ce998['_notice']:{};return{..._0x5ce998,'_notice':{..._0xd2c3f5,'update':_0x43e3a2}};}
|
|
1
|
+
function a325_0x4240(){const _0x3fda0e=['\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','../core/api-client.js','App\x20\x22','all','../constant/domain.js','nonInteractive','name','4pNuRAy','10209392roPzcs','has','\x20\x20\x20Continue?\x20[y/N]\x20','format','52orsYLD','resolveApiDomain','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','find','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','meowKey','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','15467598VoeIxG','doctor','riskLevel','185854vrnVxM','command','⚠\x20\x20High-risk\x20operation:\x20','requiresAppCode','cancelled','string','none','currentApp','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','configMissing','resolveAppCode','entries','appCode','10529472tIbGKU','keys','Set\x20appcode\x20via\x20`','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','update','Edit\x20the\x20config\x20file\x20manually','apps','validation','232165sqLIUz','pageSize','selectedAppName','join','execute','replace','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','formatOutput','appcode','7MUcNpz','4839042vSXIeZ','map','../constant/env.js','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','toUpperCase','filter','High-risk\x20operation\x20`','object','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','rawFlags','length','isNonInteractive','trim','RABETBASE_APPCODE','some','\x0a\x20\x20','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','authRequired','hasFormat','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','defaultApp','schema','defaultVerbose','67330XYOKVi','_notice','pretty','\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20','mergedCli','risk','apiDir','3663OUopve','cookie','value','service','catch','resolve','includes','rejectedFlags'];a325_0x4240=function(){return _0x3fda0e;};return a325_0x4240();}(function(_0x591eef,_0x371ada){const _0x602687=a325_0x5738,_0x60dc82=_0x591eef();while(!![]){try{const _0xde4113=-parseInt(_0x602687(0xfa))/0x1*(parseInt(_0x602687(0x109))/0x2)+parseInt(_0x602687(0x128))/0x3+parseInt(_0x602687(0xff))/0x4*(parseInt(_0x602687(0x11e))/0x5)+-parseInt(_0x602687(0x116))/0x6*(-parseInt(_0x602687(0x127))/0x7)+parseInt(_0x602687(0xfb))/0x8+-parseInt(_0x602687(0x106))/0x9+-parseInt(_0x602687(0xe4))/0xa*(parseInt(_0x602687(0xeb))/0xb);if(_0xde4113===_0x371ada)break;else _0x60dc82['push'](_0x60dc82['shift']());}catch(_0x3e52fc){_0x60dc82['push'](_0x60dc82['shift']());}}}(a325_0x4240,0xdf76e));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';function a325_0x5738(_0x43c04b,_0x3cb781){_0x43c04b=_0x43c04b-0xdd;const _0x424030=a325_0x4240();let _0x5738fc=_0x424030[_0x43c04b];return _0x5738fc;}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_0x1e9c13}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x465e20){const _0x1da984=a325_0x5738;return typeof _0x465e20===_0x1da984(0x10e)&&_0x465e20['trim']()?_0x465e20[_0x1da984(0x134)]():undefined;}function resolveEnvAppCode(){const _0x28a89=a325_0x5738,_0x3719b1=stringFlag(process.env.RABETBASE_APPCODE);if(_0x3719b1)return{'name':_0x28a89(0x135),'value':_0x3719b1};const _0x7bcfd5=stringFlag(process.env.LOVRABET_APPCODE);if(_0x7bcfd5)return{'name':'LOVRABET_APPCODE','value':_0x7bcfd5};return undefined;}function hasExplicitAppCode(_0x270a01,_0x34b0ac){return!!(stringFlag(_0x270a01['appcode'])||stringFlag(_0x34b0ac['appcode']));}function assertEnvAppCodeNotIgnored(_0xa2868d,_0x24c1f2,_0x1ef259){const _0x4bdcfe=a325_0x5738;if(!_0x24c1f2||_0x1ef259||_0xa2868d===_0x24c1f2[_0x4bdcfe(0xed)])return;const _0x2e3ba5=_0xa2868d?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0xa2868d+'\x22.':_0x4bdcfe(0x12b);throw CliErrors[_0x4bdcfe(0x11d)](_0x24c1f2[_0x4bdcfe(0xf9)]+'='+_0x24c1f2[_0x4bdcfe(0xed)]+_0x4bdcfe(0x111)+_0x2e3ba5+'\x20'+(_0x4bdcfe(0xdd)+_0x24c1f2[_0x4bdcfe(0xf9)]+'\x22.'));}export function createPipelineEnv(_0x563578,_0x3cfa94,_0x5aa10b=[]){const _0x221c4e=a325_0x5738;return{'rawFlags':_0x3cfa94,'args':_0x5aa10b,'resolveAppCode':()=>_0x563578['appCode'],'resolveCookie':()=>_0x563578[_0x221c4e(0xec)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a325_0x1e9c13(_0x3cfa94),'defaultFormat':_0x563578[_0x221c4e(0xfe)],'defaultPageSize':_0x563578[_0x221c4e(0x11f)],'defaultVerbose':_0x563578['verbose'],'apiDir':_0x563578[_0x221c4e(0xea)],'riskLevel':_0x563578[_0x221c4e(0x108)],'selectedAppName':_0x563578['explicitAppName'],'mergedCli':{'defaultApp':_0x563578[_0x221c4e(0xe1)],'currentApp':_0x563578[_0x221c4e(0x110)],'appCode':_0x563578[_0x221c4e(0x115)],'apps':_0x563578[_0x221c4e(0x11c)]}};}export function createRabetbaseRunnerAdapter(_0x43655c={}){const _0x36ea76=a325_0x5738;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x36ea76(0x12d)](_0x3ceea8=>PIPELINE_FLAG_NAMES[_0x36ea76(0xfc)](_0x3ceea8[_0x36ea76(0xf9)]))['map'](({name:_0x5e0084,type:_0x1d49e9,description:_0x131b0a})=>({'name':_0x5e0084,'type':_0x1d49e9,'description':_0x131b0a})),'formatOutput':_0x43655c[_0x36ea76(0x125)]??formatOutput,'getCommandLabel'(_0x3bd9ff){const _0x145816=_0x36ea76;return CLI_BIN_NAME+'\x20'+_0x3bd9ff[_0x145816(0xee)]+'\x20'+_0x3bd9ff[_0x145816(0x10a)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0xb926a,{def:_0x3d1004}){const _0x9442bd=_0x36ea76,_0x204dae=_0xb926a[_0x9442bd(0xf1)](_0x9442bd(0x11b))?_0x9442bd(0x124):_0x9442bd(0x105)+_0x3d1004[_0x9442bd(0xe9)]+'\x22\x20if\x20this\x20operation\x20is\x20intended.\x20'+_0x9442bd(0x124);return CliErrors[_0x9442bd(0x11d)](_0xb926a+_0x9442bd(0x137)+_0x204dae);}},async 'prepare'(_0x5cd28a,_0x4b479d,_0x3cf473,_0x187ba5){const _0x40af1b=_0x36ea76,_0x525825=_0x4b479d['apiDir']||DEFAULT_API_DIR,_0x56b00a=hasExplicitAppCode(_0x3cf473,_0x4b479d[_0x40af1b(0x131)]),_0xd1dcca=stringFlag(_0x3cf473[_0x40af1b(0x126)])||stringFlag(_0x4b479d[_0x40af1b(0x131)][_0x40af1b(0x126)]),_0x235b4d=_0x4b479d[_0x40af1b(0xe8)]?.[_0x40af1b(0x11c)]??{},_0x5a5c9a=_0x4b479d[_0x40af1b(0x120)]||_0x4b479d[_0x40af1b(0xe8)]?.[_0x40af1b(0x110)]||_0x4b479d[_0x40af1b(0xe8)]?.[_0x40af1b(0xe1)],_0x25d49a=_0xd1dcca?Object[_0x40af1b(0x114)](_0x235b4d)[_0x40af1b(0x12d)](([,_0x5b15bb])=>_0x5b15bb[_0x40af1b(0x126)]===_0xd1dcca)[_0x40af1b(0x129)](([_0x1ae441])=>_0x1ae441):[];if(_0x25d49a[_0x40af1b(0x132)]>0x1&&!_0x4b479d[_0x40af1b(0x120)])throw CliErrors[_0x40af1b(0x11d)]('AppCode\x20\x22'+_0xd1dcca+_0x40af1b(0xe7)+_0x25d49a[_0x40af1b(0x121)](',\x20')+'.','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.');resolveAliasToCode(_0x5cd28a,_0x3cf473,_0x525825,_0x187ba5,_0x4b479d[_0x40af1b(0x113)](),_0x5a5c9a);const _0x5aec44=resolveCommandAuthMode(_0x5cd28a);let _0x487683='';if(_0x5aec44!==_0x40af1b(0x10f)){_0x487683=_0x4b479d['resolveCookie']()||'';if(!_0x487683){if(_0x5aec44==='required')throw CliErrors[_0x40af1b(0xde)]();}else{const {setActiveCookie:_0x36df87}=await import('../core/api-client.js');_0x36df87(_0x487683);}}const _0x1305fb=_0x4b479d['resolveAppCode']()??'';if(_0x5cd28a[_0x40af1b(0x10c)]!==![]){if(!_0x56b00a&&_0x5a5c9a&&!_0x235b4d[_0x5a5c9a]){const _0x588240=Object[_0x40af1b(0x117)](_0x235b4d);throw CliErrors[_0x40af1b(0x11d)](_0x40af1b(0xf5)+_0x5a5c9a+'\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.',_0x588240[_0x40af1b(0x132)]>0x0?'Available:\x20'+_0x588240[_0x40af1b(0x121)](',\x20')+_0x40af1b(0x101)+CLI_BIN_NAME+_0x40af1b(0xf3):_0x40af1b(0x130)+CLI_BIN_NAME+'\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.');}assertEnvAppCodeNotIgnored(_0x1305fb,resolveEnvAppCode(),_0x56b00a);if(!_0x1305fb){const _0x159fe5=Object[_0x40af1b(0x117)](_0x235b4d);if(!_0x5a5c9a&&_0x159fe5[_0x40af1b(0x132)]>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+_0x40af1b(0x119)+_0x159fe5[_0x40af1b(0x121)](',\x20')+'.');throw CliErrors[_0x40af1b(0x112)](_0x40af1b(0x118)+CLI_BIN_NAME+_0x40af1b(0x103));}}return{'defaults':{'booleans':{'verbose':_0x4b479d[_0x40af1b(0xe3)]},'numbers':{'pagesize':_0x4b479d['defaultPageSize']}},'extras':{'appCode':_0x1305fb,'cookie':_0x487683,'apiDomain':_0x4b479d[_0x40af1b(0x100)](),'apiDir':_0x525825,'selectedAppName':_0x4b479d[_0x40af1b(0x120)],'mergedCli':_0x4b479d['mergedCli']}};},'confirmHighRisk':_0x43655c['confirmHighRisk']??(async({env:_0x38dd6f,commandLabel:_0x1c0d23})=>{const _0x43e8db=_0x36ea76;if(_0x38dd6f[_0x43e8db(0x133)])throw CliErrors[_0x43e8db(0x11d)](_0x43e8db(0x12e)+_0x1c0d23+_0x43e8db(0xe0));await requireConfirmationPrompt({'lines':[_0x43e8db(0x10b)+_0x1c0d23,_0x43e8db(0xfd)],'createCancelledError':_0x282814=>CliErrors[_0x43e8db(0x10d)](_0x282814)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x333d17=a325_0x5738,{clearActiveCookie:_0x35863d}=await import(_0x333d17(0xf4));_0x35863d();}export async function finalizeRabetbaseRuntimeState(){const _0x278678=a325_0x5738;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x1f4ce5},{initEnv:_0x2bbafd}]=await Promise[_0x278678(0xf6)]([import(_0x278678(0xf7)),import(_0x278678(0x12a))]);_0x1f4ce5(),_0x2bbafd('production');}}export async function runCommand(_0x44e5a0,_0x506e3c,_0x440234=terminalRunnerAdapter){const _0x27f691=a325_0x5738;assertRejectedFlags(_0x44e5a0,_0x506e3c[_0x27f691(0x131)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x44e5a0)?withUpdateNotice(_0x44e5a0):_0x44e5a0,_0x506e3c,_0x440234);}function assertRejectedFlags(_0x57268c,_0x453b5c){const _0x595e4f=a325_0x5738;for(const _0x10e0f3 of _0x57268c[_0x595e4f(0xf2)]??[]){const _0x53d08b=GLOBAL_FLAGS[_0x595e4f(0x102)](_0xc9c93a=>_0xc9c93a[_0x595e4f(0xf9)]===_0x10e0f3[_0x595e4f(0xf9)]),_0x5554a8=new Set([_0x10e0f3[_0x595e4f(0xf9)],toCamelCase(_0x10e0f3[_0x595e4f(0xf9)]),_0x53d08b?.[_0x595e4f(0x104)]]),_0x388de=[..._0x5554a8][_0x595e4f(0x136)](_0x1edeea=>{if(!_0x1edeea)return![];const _0x2510b7=_0x453b5c[_0x1edeea];return _0x2510b7!==undefined&&_0x2510b7!==null&&_0x2510b7!==![];});if(_0x388de)throw CliErrors[_0x595e4f(0x11d)](_0x10e0f3['message'],_0x10e0f3['hint']);}}function toCamelCase(_0x31c899){const _0x33b513=a325_0x5738;return _0x31c899[_0x33b513(0x123)](/-([a-z])/g,(_0x2f5be1,_0x1b17d8)=>_0x1b17d8[_0x33b513(0x12c)]());}function shouldAttachUpdateNotice(_0x5e9bfd){const _0x15cc4b=a325_0x5738;if(_0x5e9bfd[_0x15cc4b(0xdf)]===![])return![];return![_0x15cc4b(0x11a),_0x15cc4b(0xe2),_0x15cc4b(0x107)]['includes'](_0x5e9bfd[_0x15cc4b(0xee)]);}function withUpdateNotice(_0x42f5e4){return{..._0x42f5e4,async 'execute'(_0x47b10f){const _0x4c7a77=a325_0x5738,_0x568561=shouldResolveUpdateNotice(_0x47b10f)?resolveLatestUpdateNotice()[_0x4c7a77(0xef)](()=>null):Promise[_0x4c7a77(0xf0)](null),_0x463291=await _0x42f5e4[_0x4c7a77(0x122)](_0x47b10f);return attachUpdateNotice(_0x463291,await _0x568561);}};}function shouldResolveUpdateNotice(_0x2403b8){const _0x17722c=a325_0x5738;return _0x2403b8['format']===_0x17722c(0xe6)&&!_0x2403b8[_0x17722c(0xf8)];}function attachUpdateNotice(_0x93c665,_0x4fbb18){const _0x34255d=a325_0x5738;if(!_0x4fbb18||!_0x93c665||typeof _0x93c665!==_0x34255d(0x12f))return _0x93c665;const _0x4d1848=_0x93c665,_0x1d4921=typeof _0x4d1848[_0x34255d(0xe5)]===_0x34255d(0x12f)&&_0x4d1848[_0x34255d(0xe5)]!==null?_0x4d1848[_0x34255d(0xe5)]:{};return{..._0x4d1848,'_notice':{..._0x1d4921,'update':_0x4fbb18}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5953ca,_0x2abf53){const _0x1b935f=a326_0x115e,_0x3f2c0a=_0x5953ca();while(!![]){try{const _0x36f342=parseInt(_0x1b935f(0x132))/0x1+parseInt(_0x1b935f(0x138))/0x2+-parseInt(_0x1b935f(0x135))/0x3*(parseInt(_0x1b935f(0x131))/0x4)+parseInt(_0x1b935f(0x139))/0x5+parseInt(_0x1b935f(0x134))/0x6*(-parseInt(_0x1b935f(0x13a))/0x7)+-parseInt(_0x1b935f(0x133))/0x8+parseInt(_0x1b935f(0x137))/0x9;if(_0x36f342===_0x2abf53)break;else _0x3f2c0a['push'](_0x3f2c0a['shift']());}catch(_0x46e2a2){_0x3f2c0a['push'](_0x3f2c0a['shift']());}}}(a326_0x2911,0x2f85f));import{buildSchemaPayload as a326_0x4a43a4}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a326_0x115e(_0x5101df,_0x36aea3){_0x5101df=_0x5101df-0x131;const _0x29115e=a326_0x2911();let _0x115e58=_0x29115e[_0x5101df];return _0x115e58;}function a326_0x2911(){const _0x3ba395=['12214UJcJSn','1400550RoPGWy','322hDvpkE','568eHKtmV','127804QqOjfu','2118824yLCcWr','41436gqMDQC','978SIGkvI','../commands/registry.js','3685095FRITfY'];a326_0x2911=function(){return _0x3ba395;};return a326_0x2911();}import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x50ec87=a326_0x115e,{serviceRegistry:_0x4dd319,findDefinition:_0x5a79b2}=await import(_0x50ec87(0x136));return a326_0x4a43a4({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x4dd319,'buildAllFlags':buildAllFlags,'findDefinition':_0x5a79b2});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3b750c,_0xcc8af2){const _0x177b68=a327_0x3c46,_0x40ef91=_0x3b750c();while(!![]){try{const _0x14de5d=parseInt(_0x177b68(0xa0))/0x1*(-parseInt(_0x177b68(0xb3))/0x2)+parseInt(_0x177b68(0xaa))/0x3+-parseInt(_0x177b68(0xbb))/0x4*(-parseInt(_0x177b68(0xb2))/0x5)+-parseInt(_0x177b68(0xa3))/0x6+-parseInt(_0x177b68(0xa8))/0x7*(parseInt(_0x177b68(0xb1))/0x8)+-parseInt(_0x177b68(0xab))/0x9*(parseInt(_0x177b68(0xac))/0xa)+parseInt(_0x177b68(0xa5))/0xb;if(_0x14de5d===_0xcc8af2)break;else _0x40ef91['push'](_0x40ef91['shift']());}catch(_0x1b9de5){_0x40ef91['push'](_0x40ef91['shift']());}}}(a327_0x3c7d,0x9b007));import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';function a327_0x3c46(_0x2fe2bd,_0x563580){_0x2fe2bd=_0x2fe2bd-0xa0;const _0x3c7db2=a327_0x3c7d();let _0x3c46e4=_0x3c7db2[_0x2fe2bd];return _0x3c46e4;}import{CliErrors}from'../errors.js';export function assertSupportedCommandFlags(_0x496cd7,_0x1d81cf){const _0x11f01e=a327_0x3c46;if(!_0x496cd7['strictFlags'])return;const _0x51832e=new Set([_0x11f01e(0xa9),_0x11f01e(0xb6)]),_0x1404c4=GLOBAL_FLAGS['filter'](_0x21ef6f=>PIPELINE_FLAG_NAMES[_0x11f01e(0xaf)](_0x21ef6f[_0x11f01e(0xa6)]));for(const _0x4aed01 of[..._0x496cd7[_0x11f01e(0xa4)],..._0x1404c4]){addFlagCandidates(_0x51832e,_0x4aed01);}for(const [_0x282595,_0x2078a1]of Object['entries'](_0x1d81cf)){if(!isExplicitValue(_0x2078a1)||_0x51832e[_0x11f01e(0xaf)](_0x282595))continue;const _0x7e570e=GLOBAL_FLAGS[_0x11f01e(0xba)](_0x4e36bd=>_0x4e36bd[_0x11f01e(0xb5)]===_0x282595)?.['name']??toKebabCase(_0x282595);throw CliErrors['validation'](_0x11f01e(0xa2)+_0x7e570e+'\x20for\x20`'+CLI_BIN_NAME+'\x20'+_0x496cd7['service']+'\x20'+_0x496cd7[_0x11f01e(0xb7)]+'`.',_0x11f01e(0xa7)+CLI_BIN_NAME+'\x20'+_0x496cd7[_0x11f01e(0xa1)]+'\x20'+_0x496cd7['command']+_0x11f01e(0xb0));}}function addFlagCandidates(_0x547782,_0x473e4e){const _0x7aad76=a327_0x3c46,_0x1497ad=_0x7aad76(0xb5)in _0x473e4e?[_0x473e4e[_0x7aad76(0xa6)],_0x473e4e['meowKey']]:[_0x473e4e[_0x7aad76(0xa6)],_0x473e4e[_0x7aad76(0xbc)]];for(const _0x5e1ecb of _0x1497ad){if(!_0x5e1ecb)continue;_0x547782[_0x7aad76(0xad)](_0x5e1ecb),_0x547782[_0x7aad76(0xad)](toCamelCase(_0x5e1ecb));}}function a327_0x3c7d(){const _0x3b4d53=['10043230PMaUSW','add','toUpperCase','has','\x20--help`\x20to\x20view\x20the\x20current\x20command\x20contract.','6727008gnHUJD','5dFdDCS','154242POxcsu','isArray','meowKey','version','command','toLowerCase','replace','find','1866388AVZSyQ','alias','9gYkObX','service','Unsupported\x20flag\x20--','690684ELpZRP','flags','18940966LpBHiJ','name','Run\x20`','7RstADv','help','3302358kHyDEE','9IbTUfa'];a327_0x3c7d=function(){return _0x3b4d53;};return a327_0x3c7d();}function isExplicitValue(_0x1bad6b){const _0x16e0f2=a327_0x3c46;return _0x1bad6b!==undefined&&_0x1bad6b!==null&&_0x1bad6b!==![]&&(!Array[_0x16e0f2(0xb4)](_0x1bad6b)||_0x1bad6b['length']>0x0);}function toCamelCase(_0x56cdbc){const _0x26b7e2=a327_0x3c46;return _0x56cdbc[_0x26b7e2(0xb9)](/-([a-z])/g,(_0x35fdea,_0x1c0039)=>_0x1c0039[_0x26b7e2(0xae)]());}function toKebabCase(_0x4a875b){const _0x1863fa=a327_0x3c46;return _0x4a875b[_0x1863fa(0xb9)](/([a-z0-9])([A-Z])/g,'$1-$2')[_0x1863fa(0xb8)]();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a328_0x5206(_0x14891f,_0x4953da){_0x14891f=_0x14891f-0xa7;var _0x1b8d84=a328_0x1b8d();var _0x5206fc=_0x1b8d84[_0x14891f];return _0x5206fc;}function a328_0x1b8d(){var _0x2fdd52=['621691VPxHTB','6208tyYSqk','692048AoeCGs','270azEdIO','30JzmgdV','1080hSLdcG','980278SOCMMf','310905ZrdELf','427675cuHSrI','747174dYxJGe'];a328_0x1b8d=function(){return _0x2fdd52;};return a328_0x1b8d();}(function(_0x2d2814,_0x1b87b1){var _0x81160d=a328_0x5206,_0x293368=_0x2d2814();while(!![]){try{var _0x14f03e=parseInt(_0x81160d(0xa7))/0x1+-parseInt(_0x81160d(0xaf))/0x2+parseInt(_0x81160d(0xa8))/0x3+parseInt(_0x81160d(0xaa))/0x4*(-parseInt(_0x81160d(0xae))/0x5)+-parseInt(_0x81160d(0xad))/0x6*(parseInt(_0x81160d(0xa9))/0x7)+-parseInt(_0x81160d(0xab))/0x8+-parseInt(_0x81160d(0xb0))/0x9*(-parseInt(_0x81160d(0xac))/0xa);if(_0x14f03e===_0x1b87b1)break;else _0x293368['push'](_0x293368['shift']());}catch(_0x56a494){_0x293368['push'](_0x293368['shift']());}}}(a328_0x1b8d,0x3de42));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.8-beta.1";
|
|
2
|
+
export declare const GIT_TAG = "v2.5.8-beta.1";
|
|
3
|
+
export declare const GIT_COMMIT = "b8a31941";
|
|
4
|
+
export declare const BUILD_TIME = "2026-10-21T02:05:12.470Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a329_0x1618da=a329_0x36f9;(function(_0x156cb3,_0x7f81cb){const _0x230499=a329_0x36f9,_0x60105d=_0x156cb3();while(!![]){try{const _0x58af83=-parseInt(_0x230499(0xd6))/0x1*(-parseInt(_0x230499(0xd1))/0x2)+-parseInt(_0x230499(0xd5))/0x3+-parseInt(_0x230499(0xd8))/0x4+-parseInt(_0x230499(0xd7))/0x5*(-parseInt(_0x230499(0xd3))/0x6)+parseInt(_0x230499(0xda))/0x7+parseInt(_0x230499(0xd2))/0x8+parseInt(_0x230499(0xd9))/0x9*(-parseInt(_0x230499(0xce))/0xa);if(_0x58af83===_0x7f81cb)break;else _0x60105d['push'](_0x60105d['shift']());}catch(_0x50510e){_0x60105d['push'](_0x60105d['shift']());}}}(a329_0xd5e6,0x664fb));export const VERSION=a329_0x1618da(0xd0);export const GIT_TAG=a329_0x1618da(0xdb);function a329_0x36f9(_0x54334c,_0x37b1e4){_0x54334c=_0x54334c-0xce;const _0xd5e6d0=a329_0xd5e6();let _0x36f9a1=_0xd5e6d0[_0x54334c];return _0x36f9a1;}function a329_0xd5e6(){const _0x30511d=['2026-10-21T02:05:12.470Z','1738407Ridtxv','2357PgBUod','9325BffuHC','270596kkJmqQ','2151eFzAdW','3810919OkONfc','v2.5.8-beta.1','4630hFGmCR','b8a31941','2.5.8-beta.1','422FoChqs','170664cIrUmj','366HcSheW'];a329_0xd5e6=function(){return _0x30511d;};return a329_0xd5e6();}export const GIT_COMMIT=a329_0x1618da(0xcf);export const BUILD_TIME=a329_0x1618da(0xd4);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a330_0x58cd58=a330_0x3270;(function(_0xc886aa,_0x52dba3){const _0x4ada6f=a330_0x3270,_0x23e01e=_0xc886aa();while(!![]){try{const _0x3d9088=parseInt(_0x4ada6f(0x157))/0x1*(-parseInt(_0x4ada6f(0x167))/0x2)+-parseInt(_0x4ada6f(0x166))/0x3*(-parseInt(_0x4ada6f(0x15c))/0x4)+-parseInt(_0x4ada6f(0x17d))/0x5*(-parseInt(_0x4ada6f(0x17c))/0x6)+parseInt(_0x4ada6f(0x15a))/0x7+parseInt(_0x4ada6f(0x16d))/0x8+-parseInt(_0x4ada6f(0x153))/0x9*(parseInt(_0x4ada6f(0x15f))/0xa)+-parseInt(_0x4ada6f(0x180))/0xb;if(_0x3d9088===_0x52dba3)break;else _0x23e01e['push'](_0x23e01e['shift']());}catch(_0x3d537a){_0x23e01e['push'](_0x23e01e['shift']());}}}(a330_0x3da5,0x5b969));export const ROUTING_CATALOG_DIGEST='57d346b80b12ca567af9d86dd7f8c02a0c27fe15d4944c8345add2cc6134c587';export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id',a330_0x58cd58(0x162)];export const ENABLED_REGION_VALUES=['cn','id','global'];function a330_0x3da5(){const _0x4ad55b=['21030FFzLiP','875TgfDoY','https://user.lovrabet.com','https://daily.lovrabet.com','11051018tLpDEh','https://kb-service-daily.lovrabet.com','https://skills.lovrabet.com','18dvsIBa','https://app.lovrabet.id','Global','https://user-daily.lovrabet.ai','2OAmPOw','Mainland\x20China','https://kb-service.lovrabet.id','2186163FLVNby','https://daily.lovrabet.ai','4CGnOYR','https://runtime.lovrabet.com','https://user-daily.lovrabet.com','2030120WoqazI','https://dev.lovrabet.ai','https://daily-runtime.lovrabet.ai','global','https://daily-api.lovrabet.com','indonesia','Indonesia','1667685tfzlJv','252038ZOWwpt','https://api.lovrabet.id','https://skills-daily.lovrabet.com','https://skills-daily.lovrabet.ai','https://skills.lovrabet.ai','https://runtime.lovrabet.ai','4450128EcWPaZ','https://dev.lovrabet.com','https://daily-runtime.lovrabet.com','https://cdnjs.cloudflare.com/ajax/libs','https://daily-api.lovrabet.ai','https://app.lovrabet.ai','https://g.lovrabet.id','china','https://api.lovrabet.com','https://skills.lovrabet.id','https://user.lovrabet.ai','https://g.lovrabet.com','https://runtime.lovrabet.id','https://g.alicdn.com/code/lib','https://user.lovrabet.id'];a330_0x3da5=function(){return _0x4ad55b;};return a330_0x3da5();}export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a330_0x58cd58(0x158),'aliases':[a330_0x58cd58(0x174)],'serviceDomains':{'production':{'user':a330_0x58cd58(0x17e),'api':'https://api.lovrabet.com','runtime':a330_0x58cd58(0x15d),'skill':a330_0x58cd58(0x152),'kb':a330_0x58cd58(0x175),'kbService':'https://kb-service.lovrabet.com','app':'https://app.lovrabet.com'},'daily':{'user':a330_0x58cd58(0x15e),'api':a330_0x58cd58(0x163),'runtime':a330_0x58cd58(0x16f),'skill':a330_0x58cd58(0x169),'kb':a330_0x58cd58(0x163),'kbService':a330_0x58cd58(0x181),'app':a330_0x58cd58(0x17f)}},'cdn':{'libraries':a330_0x58cd58(0x17a),'lovrabet':a330_0x58cd58(0x178)},'local':{'origin':a330_0x58cd58(0x16e)}},'id':{'enabled':!![],'label':a330_0x58cd58(0x165),'aliases':[a330_0x58cd58(0x164)],'serviceDomains':{'production':{'user':a330_0x58cd58(0x17b),'api':a330_0x58cd58(0x168),'runtime':a330_0x58cd58(0x179),'skill':a330_0x58cd58(0x176),'kb':a330_0x58cd58(0x168),'kbService':a330_0x58cd58(0x159),'app':a330_0x58cd58(0x154)}},'cdn':{'libraries':'https://cdnjs.cloudflare.com/ajax/libs','lovrabet':a330_0x58cd58(0x173)},'local':{'origin':'https://dev.lovrabet.id'}},'global':{'enabled':!![],'label':a330_0x58cd58(0x155),'aliases':[],'serviceDomains':{'production':{'user':a330_0x58cd58(0x177),'api':'https://api.lovrabet.ai','runtime':a330_0x58cd58(0x16c),'skill':a330_0x58cd58(0x16b),'kb':'https://api.lovrabet.ai','app':a330_0x58cd58(0x172)},'daily':{'user':a330_0x58cd58(0x156),'api':'https://daily-api.lovrabet.ai','runtime':a330_0x58cd58(0x161),'skill':a330_0x58cd58(0x16a),'kb':a330_0x58cd58(0x171),'app':a330_0x58cd58(0x15b)}},'cdn':{'libraries':a330_0x58cd58(0x170),'lovrabet':'https://g.lovrabet.ai'},'local':{'origin':a330_0x58cd58(0x160)}}};function a330_0x3270(_0x482594,_0x297547){_0x482594=_0x482594-0x152;const _0x3da520=a330_0x3da5();let _0x327077=_0x3da520[_0x482594];return _0x327077;}export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a331_0x16fd50=a331_0x553e;function a331_0x553e(_0x4d7348,_0x2491ad){_0x4d7348=_0x4d7348-0xfa;const _0x1a1ebb=a331_0x1a1e();let _0x553e32=_0x1a1ebb[_0x4d7348];return _0x553e32;}function a331_0x1a1e(){const _0x14535a=['4205120zCVaqQ','1148xASrQQ','5fEjFyc','lovrabet-routing/v1','localDomain','lovrabet','2355198qBoCjV','8wYOxvX','44gjEkAH','skillDomain','enterprise','apiDomain','1701584PXGCWp','runtimeDomain','appDomain','userDomain','884034zhQpLs','a03fe188b2b34518efc5668666c0001d20354882cd7dd70afec902dffe1329c3','583xOulqL','libraries','673971FXfAZq','3944843ybjtYc'];a331_0x1a1e=function(){return _0x14535a;};return a331_0x1a1e();}(function(_0x553f04,_0x3cce06){const _0x6ba513=a331_0x553e,_0x4f5d7a=_0x553f04();while(!![]){try{const _0x2f1fa8=parseInt(_0x6ba513(0x103))/0x1*(-parseInt(_0x6ba513(0x108))/0x2)+parseInt(_0x6ba513(0x105))/0x3*(-parseInt(_0x6ba513(0x10e))/0x4)+parseInt(_0x6ba513(0x109))/0x5*(parseInt(_0x6ba513(0x10d))/0x6)+-parseInt(_0x6ba513(0x106))/0x7+-parseInt(_0x6ba513(0xfd))/0x8+-parseInt(_0x6ba513(0x101))/0x9+parseInt(_0x6ba513(0x107))/0xa*(parseInt(_0x6ba513(0x10f))/0xb);if(_0x2f1fa8===_0x3cce06)break;else _0x4f5d7a['push'](_0x4f5d7a['shift']());}catch(_0x262909){_0x4f5d7a['push'](_0x4f5d7a['shift']());}}}(a331_0x1a1e,0x65998));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a331_0x16fd50(0x102);export const ENTERPRISE_ROUTING_PROTOCOL=a331_0x16fd50(0x10a);export const ENTERPRISE_ROUTING_KIND=a331_0x16fd50(0xfb);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a331_0x16fd50(0x100),a331_0x16fd50(0xfc),a331_0x16fd50(0xfe),a331_0x16fd50(0xfa),'kbDomain','kbServiceDomain','appDomain',a331_0x16fd50(0x10b),'certificateDomain'];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a331_0x16fd50(0x100),'apiDomain',a331_0x16fd50(0xfe),'skillDomain','kbDomain',a331_0x16fd50(0xff)];export const ENTERPRISE_ROUTING_CDN_FIELDS=[a331_0x16fd50(0x104),a331_0x16fd50(0x10c)];export const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS=[a331_0x16fd50(0x104),a331_0x16fd50(0x10c)];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a332_0x5181(_0x3a7590,_0x344a44){_0x3a7590=_0x3a7590-0x83;var _0x8884df=a332_0x8884();var _0x518146=_0x8884df[_0x3a7590];return _0x518146;}(function(_0x41f58a,_0xdbedcd){var _0xac6e37=a332_0x5181,_0x5861aa=_0x41f58a();while(!![]){try{var _0x5995be=-parseInt(_0xac6e37(0x8a))/0x1*(parseInt(_0xac6e37(0x8b))/0x2)+-parseInt(_0xac6e37(0x86))/0x3+-parseInt(_0xac6e37(0x87))/0x4*(-parseInt(_0xac6e37(0x8c))/0x5)+parseInt(_0xac6e37(0x90))/0x6*(parseInt(_0xac6e37(0x88))/0x7)+-parseInt(_0xac6e37(0x89))/0x8*(parseInt(_0xac6e37(0x83))/0x9)+parseInt(_0xac6e37(0x84))/0xa*(-parseInt(_0xac6e37(0x94))/0xb)+parseInt(_0xac6e37(0x93))/0xc*(parseInt(_0xac6e37(0x8f))/0xd);if(_0x5995be===_0xdbedcd)break;else _0x5861aa['push'](_0x5861aa['shift']());}catch(_0x43ba44){_0x5861aa['push'](_0x5861aa['shift']());}}}(a332_0x8884,0x8dccc));import a332_0x311be5 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x48b75c=a332_0x5181;console[_0x48b75c(0x8d)](),console['log'](a332_0x311be5[_0x48b75c(0x92)][_0x48b75c(0x91)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x48b75c(0x8d)](),console['log'](_0x48b75c(0x85)+a332_0x311be5[_0x48b75c(0x92)][_0x48b75c(0x91)](CLI_BIN_NAME+_0x48b75c(0x8e))+'\x20to\x20view\x20available\x20commands.'),console[_0x48b75c(0x8d)]();}function a332_0x8884(){var _0x893b24=['bold','green','36375576rAsYvV','11xoVNKz','153YvaKQd','9975430ZoSuLK','\x20\x20Use\x20','3363663lRiuCK','4nBMnSa','7rGvnKj','430280kLUyBo','2281URHiEM','252LiIoer','575885nyidiL','log','\x20--help','13luKkNB','4529112PPJEJC'];a332_0x8884=function(){return _0x893b24;};return a332_0x8884();}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x276bfb,_0x3016da){const _0x210205=a333_0x5d37,_0x327be1=_0x276bfb();while(!![]){try{const _0x3e21db=-parseInt(_0x210205(0x81))/0x1+parseInt(_0x210205(0x7f))/0x2*(-parseInt(_0x210205(0x90))/0x3)+parseInt(_0x210205(0x89))/0x4+parseInt(_0x210205(0x8b))/0x5*(parseInt(_0x210205(0x8e))/0x6)+-parseInt(_0x210205(0x86))/0x7*(-parseInt(_0x210205(0x84))/0x8)+-parseInt(_0x210205(0x8c))/0x9+-parseInt(_0x210205(0x8a))/0xa;if(_0x3e21db===_0x3016da)break;else _0x327be1['push'](_0x327be1['shift']());}catch(_0x14cc5e){_0x327be1['push'](_0x327be1['shift']());}}}(a333_0x3e3f,0x989d1));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a333_0x3e3f(){const _0x4427d0=['2986108EdDXVP','2328470CxPvOa','1385465MlKVOM','6007392bpkzZB','already\x20current','18VZFwcz','installedPath','13806Oygbyn','[BUILTIN_SKILL_INSTALL_','skillVersion','\x20at\x20','SOURCE_INVALID','116JPFudN','log','256505khWTyG','changed','code','3768440xLxnCs','error','7iYtznP','Rabetbase\x20Built-in\x20Skill\x20','Repair\x20with:\x20'];a333_0x3e3f=function(){return _0x4427d0;};return a333_0x3e3f();}function a333_0x5d37(_0x526a41,_0x5d1a41){_0x526a41=_0x526a41-0x7c;const _0x3e3fd2=a333_0x3e3f();let _0x5d37da=_0x3e3fd2[_0x526a41];return _0x5d37da;}export async function runPostinstall(_0x142655={}){const _0x10294f=a333_0x5d37,_0x21c057=installBuiltinSkill(_0x142655);if(_0x21c057['ok']){const _0x547f71=_0x21c057[_0x10294f(0x82)]?'installed':_0x10294f(0x8d),_0x46bf93=_0x21c057[_0x10294f(0x8f)]?_0x10294f(0x7d)+_0x21c057['installedPath']:'\x20via\x20skills@latest';return console[_0x10294f(0x80)](_0x10294f(0x87)+_0x21c057[_0x10294f(0x7c)]+'\x20'+_0x547f71+_0x46bf93),_0x21c057;}const _0xde2a38=_0x10294f(0x91)+(_0x21c057[_0x10294f(0x83)]??'FAILED')+']\x20'+(_0x21c057[_0x10294f(0x85)]??'Installation\x20failed')+'.\x20'+(_0x10294f(0x88)+_0x21c057['repairCommand']);if(_0x21c057[_0x10294f(0x83)]===_0x10294f(0x7e))throw new Error(_0xde2a38);return console['warn'](_0xde2a38),_0x21c057;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a334_0x1c04(){const _0x5e387d=['8AsnkAB','6ZYIdxp','high-risk-write','182238vBxlgn','146252aKIuay','replace','This\x20will\x20run\x20the\x20high-risk\x20write\x20','.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.','449437xlzdgU','This\x20will\x20run\x20the\x20write\x20','confirmationDescription','2266330jEAkEw','1942155TLbbVj','risk','73870yFbmUc','trim','3hYaaMr','93200TJvMDF','string'];a334_0x1c04=function(){return _0x5e387d;};return a334_0x1c04();}(function(_0x34f657,_0x453e94){const _0x12362f=a334_0x177b,_0x19bea7=_0x34f657();while(!![]){try{const _0x2e3719=-parseInt(_0x12362f(0x158))/0x1+parseInt(_0x12362f(0x154))/0x2+-parseInt(_0x12362f(0x14d))/0x3*(parseInt(_0x12362f(0x14e))/0x4)+parseInt(_0x12362f(0x15b))/0x5+-parseInt(_0x12362f(0x151))/0x6*(parseInt(_0x12362f(0x153))/0x7)+parseInt(_0x12362f(0x150))/0x8*(parseInt(_0x12362f(0x15c))/0x9)+-parseInt(_0x12362f(0x15e))/0xa;if(_0x2e3719===_0x453e94)break;else _0x19bea7['push'](_0x19bea7['shift']());}catch(_0x289bc1){_0x19bea7['push'](_0x19bea7['shift']());}}}(a334_0x1c04,0x399fd));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x1929e5,_0x29e3aa,_0x4e5fc9){const _0x1bcf22=a334_0x177b,_0x39902b=normalizeText(_0x1929e5[_0x1bcf22(0x15a)],DESCRIPTION_MAX_LENGTH),_0xb004e1=_0x39902b||normalizeText(defaultDescription(requireWriteRisk(_0x1929e5),_0x29e3aa),DESCRIPTION_MAX_LENGTH);return{'operation':_0x29e3aa,'risk':requireWriteRisk(_0x1929e5),'description':_0xb004e1,..._0x4e5fc9?{'signal':_0x4e5fc9}:{}};}function requireWriteRisk(_0x395247){const _0x270f34=a334_0x177b;if(_0x395247[_0x270f34(0x15d)]==='write'||_0x395247[_0x270f34(0x15d)]==='high-risk-write')return _0x395247['risk'];throw new Error('Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.');}function a334_0x177b(_0x47f8d2,_0x581a21){_0x47f8d2=_0x47f8d2-0x14c;const _0x1c04eb=a334_0x1c04();let _0x177b89=_0x1c04eb[_0x47f8d2];return _0x177b89;}function defaultDescription(_0x446ae3,_0x70d3ca){const _0x398048=a334_0x177b;if(_0x446ae3===_0x398048(0x152))return _0x398048(0x156)+_0x70d3ca+_0x398048(0x157);return _0x398048(0x159)+_0x70d3ca+'.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.';}function normalizeText(_0x3f870a,_0x2f491f){const _0x2b7bf8=a334_0x177b;if(typeof _0x3f870a!==_0x2b7bf8(0x14f))return'';return _0x3f870a['replace'](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x2b7bf8(0x155)](/\s+/g,'\x20')[_0x2b7bf8(0x14c)]()['slice'](0x0,_0x2f491f);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a335_0x185a(_0x4d1a22,_0x352b94){_0x4d1a22=_0x4d1a22-0x1c2;const _0x43756a=a335_0x4375();let _0x185a27=_0x43756a[_0x4d1a22];return _0x185a27;}(function(_0x4b71ca,_0x4a89e7){const _0x3c0b69=a335_0x185a,_0x4b6c9c=_0x4b71ca();while(!![]){try{const _0x27c5c9=-parseInt(_0x3c0b69(0x1c8))/0x1*(parseInt(_0x3c0b69(0x1cf))/0x2)+parseInt(_0x3c0b69(0x1d9))/0x3+-parseInt(_0x3c0b69(0x1d2))/0x4*(-parseInt(_0x3c0b69(0x1d3))/0x5)+parseInt(_0x3c0b69(0x1cb))/0x6*(parseInt(_0x3c0b69(0x1d4))/0x7)+parseInt(_0x3c0b69(0x1cc))/0x8*(-parseInt(_0x3c0b69(0x1ca))/0x9)+parseInt(_0x3c0b69(0x1c7))/0xa*(-parseInt(_0x3c0b69(0x1c3))/0xb)+-parseInt(_0x3c0b69(0x1d1))/0xc;if(_0x27c5c9===_0x4a89e7)break;else _0x4b6c9c['push'](_0x4b6c9c['shift']());}catch(_0x3c4617){_0x4b6c9c['push'](_0x4b6c9c['shift']());}}}(a335_0x4375,0x74832));export function canonicalRabetbaseOperation(_0x3ca659){const _0x1e8fce=a335_0x185a;return[_0x3ca659['service'],..._0x3ca659[_0x1e8fce(0x1d8)]['trim']()[_0x1e8fce(0x1ce)](/\s+/)][_0x1e8fce(0x1d0)](Boolean)[_0x1e8fce(0x1c5)]('.');}function a335_0x4375(){const _0x20e0c9=['high-risk-write','4797881wqUwDg','risk','join','write','10pDOOKy','177999dWoMCH','isArray','9wRdPWX','32274jylBqy','373544DvVqrc','length','split','6WugPTg','filter','11365608yaqDIr','2530776YpwNBZ','5FWQWXt','1141OCilwi','object','conflicts','data','command','2795274klwYvz'];a335_0x4375=function(){return _0x20e0c9;};return a335_0x4375();}export function createRabetbaseWriteMetadata(_0x20ff9b,_0x5ab976,_0x400512,_0x1fc61b){const _0x154a8d=a335_0x185a;if(_0x1fc61b||_0x400512['ok']!==!![]||hasUnresolvedConflicts(_0x400512)||_0x20ff9b[_0x154a8d(0x1c4)]!==_0x154a8d(0x1c6)&&_0x20ff9b[_0x154a8d(0x1c4)]!==_0x154a8d(0x1c2))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':'rabetbase.write.completed','operation':_0x5ab976,'risk':_0x20ff9b[_0x154a8d(0x1c4)]}}};}function hasUnresolvedConflicts(_0x4d1a43){const _0x359de4=a335_0x185a,_0x3250bd=_0x4d1a43[_0x359de4(0x1d7)];return Boolean(_0x3250bd&&typeof _0x3250bd===_0x359de4(0x1d5)&&!Array[_0x359de4(0x1c9)](_0x3250bd)&&Array[_0x359de4(0x1c9)](_0x3250bd[_0x359de4(0x1d6)])&&_0x3250bd[_0x359de4(0x1d6)][_0x359de4(0x1cd)]>0x0);}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5e81c5,_0x1f6db2){const _0x4fef5d=a336_0x204a,_0x32d128=_0x5e81c5();while(!![]){try{const _0x46c7a4=-parseInt(_0x4fef5d(0x116))/0x1+-parseInt(_0x4fef5d(0x114))/0x2*(parseInt(_0x4fef5d(0x10d))/0x3)+-parseInt(_0x4fef5d(0x10e))/0x4+-parseInt(_0x4fef5d(0x11b))/0x5+parseInt(_0x4fef5d(0x109))/0x6*(-parseInt(_0x4fef5d(0x100))/0x7)+-parseInt(_0x4fef5d(0x102))/0x8+parseInt(_0x4fef5d(0x119))/0x9*(parseInt(_0x4fef5d(0x115))/0xa);if(_0x46c7a4===_0x1f6db2)break;else _0x32d128['push'](_0x32d128['shift']());}catch(_0x28ae83){_0x32d128['push'](_0x32d128['shift']());}}}(a336_0x3cd7,0xea8f6));import{buildConfigFromFlags,initGlobalEnvironment,isRoutingRecoveryService}from'../context.js';import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x91c52c,command:_0x4e4006,risk:_0x5d3c9b,dryRun:_0x554efa}){const _0x1f9cef=a336_0x204a;return JSON[_0x1f9cef(0x101)]({'ok':_0x91c52c['ok'],'command':_0x4e4006,'risk':_0x5d3c9b,..._0x554efa?{'dryRun':!![]}:{},..._0x91c52c[_0x1f9cef(0x11d)]!==undefined?{'data':_0x91c52c[_0x1f9cef(0x11d)]}:{},..._0x91c52c[_0x1f9cef(0x122)]?{'message':_0x91c52c['message']}:{}});}};function a336_0x3cd7(){const _0x22ccd0=['message','AbortError','riskLevel','1596553AmiNHk','stringify','4679368eZuYKs','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','present','dryRun','signal','confirmation','high-risk-write','12TMpojk','isNonInteractive','args','write','684543VuAmYn','4265088sdpxmw','service','risk','aborted','confirm','result','6prZoVH','6830YEBdFe','1102138UhMUwu','command','definition','81387kSTKlL','format','6607895pHZKTT','rawFlags','data','execute','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','dry-run','presentation'];a336_0x3cd7=function(){return _0x22ccd0;};return a336_0x3cd7();}export async function invokeRabetbase(_0x111bfb,_0x154329){const _0x1c570a=a336_0x204a;throwIfAborted(_0x154329[_0x1c570a(0x106)]);const _0x104388=await resolveRabetbaseInvocation(_0x111bfb),_0x12fadb=canonicalRabetbaseOperation(_0x104388[_0x1c570a(0x118)]);return await confirmWriteBeforeQueue(_0x104388['definition'],_0x104388['rawFlags'],_0x12fadb,_0x154329),runSerialized(async()=>{const _0x5ea48d=_0x1c570a,_0x4620c2={};try{throwIfAborted(_0x154329[_0x5ea48d(0x106)]);const _0x1d7133=buildConfigFromFlags(_0x104388[_0x5ea48d(0x11c)]);!isRoutingRecoveryService(_0x104388[_0x5ea48d(0x118)][_0x5ea48d(0x10f)])&&await initGlobalEnvironment(_0x1d7133);const _0x16d7e2=createPipelineEnv(_0x1d7133,{..._0x104388[_0x5ea48d(0x11c)],'yes':_0x104388[_0x5ea48d(0x118)][_0x5ea48d(0x110)]===_0x5ea48d(0x108)?!![]:_0x104388[_0x5ea48d(0x11c)]['yes'],'nonInteractive':!![]},_0x104388[_0x5ea48d(0x10b)]);_0x16d7e2[_0x5ea48d(0x10a)]=!![],_0x16d7e2[_0x5ea48d(0x124)]=_0x5ea48d(0x108);const _0x4fd591=withAbortSignal(_0x104388[_0x5ea48d(0x118)],_0x154329[_0x5ea48d(0x106)]),_0xfcc03=createRabetbaseRunnerAdapter({'formatOutput'(_0x3f4f31,_0x26e323){const _0x56b7e8=_0x5ea48d;_0x4620c2['result']=_0x3f4f31,_0x4620c2['command']=_0x26e323[_0x56b7e8(0x117)],_0x4620c2['risk']=_0x26e323[_0x56b7e8(0x110)],_0x4620c2['format']=_0x26e323[_0x56b7e8(0x11a)],_0x4620c2['dryRun']=_0x26e323[_0x56b7e8(0x105)]===!![];},async 'confirmHighRisk'(){const _0x21d490=_0x5ea48d;throw new Error(_0x21d490(0x11f));}});await runCommand(_0x4fd591,_0x16d7e2,_0xfcc03);if(!_0x4620c2['result']||!_0x4620c2[_0x5ea48d(0x117)]||!_0x4620c2[_0x5ea48d(0x110)]||!_0x4620c2[_0x5ea48d(0x11a)])throw new Error(_0x5ea48d(0x103));const _0xe5b271=_0x4620c2[_0x5ea48d(0x105)]===!![],_0x3307a0=_0x154329[_0x5ea48d(0x121)]??defaultPresentation,_0x5aa857={'result':_0x4620c2[_0x5ea48d(0x113)],'command':_0x4620c2[_0x5ea48d(0x117)],'operation':_0x12fadb,'risk':_0x4620c2['risk'],'format':_0x4620c2[_0x5ea48d(0x11a)],'dryRun':_0xe5b271},_0x53c5b7=createRabetbaseWriteMetadata(_0x104388[_0x5ea48d(0x118)],_0x12fadb,_0x4620c2[_0x5ea48d(0x113)],_0xe5b271);let _0x2e78d2;try{_0x2e78d2=await _0x3307a0['present'](_0x5aa857);}catch(_0x42f19b){if(!_0x53c5b7||_0x3307a0===defaultPresentation)throw _0x42f19b;_0x2e78d2=await defaultPresentation[_0x5ea48d(0x104)](_0x5aa857);}return{'operation':_0x12fadb,'risk':_0x4620c2[_0x5ea48d(0x110)],'mode':_0xe5b271?_0x5ea48d(0x120):_0x5ea48d(0x11e),'result':_0x4620c2[_0x5ea48d(0x113)],'output':_0x2e78d2,..._0x53c5b7?{'metadata':_0x53c5b7}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}function a336_0x204a(_0xdcfc2d,_0x1638fc){_0xdcfc2d=_0xdcfc2d-0x100;const _0x3cd7b2=a336_0x3cd7();let _0x204acc=_0x3cd7b2[_0xdcfc2d];return _0x204acc;}async function confirmWriteBeforeQueue(_0x4edb22,_0x10ea6d,_0x43ecab,_0x5d5ec5){const _0x9b2d1f=a336_0x204a;if(_0x10ea6d['dryRun']===!![]||_0x4edb22[_0x9b2d1f(0x110)]!==_0x9b2d1f(0x10c)&&_0x4edb22[_0x9b2d1f(0x110)]!==_0x9b2d1f(0x108))return;await _0x5d5ec5[_0x9b2d1f(0x107)][_0x9b2d1f(0x112)](buildRabetbaseConfirmationRequest(_0x4edb22,_0x43ecab,_0x5d5ec5[_0x9b2d1f(0x106)]));}function withAbortSignal(_0x5752b4,_0xea236){return{..._0x5752b4,async 'execute'(_0x16e69a){const _0x4720db=a336_0x204a;return throwIfAborted(_0xea236),_0x5752b4[_0x4720db(0x11e)]({..._0x16e69a,'signal':_0xea236});}};}function throwIfAborted(_0xa2afd2){const _0x5a8794=a336_0x204a;if(_0xa2afd2?.[_0x5a8794(0x111)])throw _0xa2afd2['reason']instanceof Error?_0xa2afd2['reason']:new DOMException('Rabetbase\x20invocation\x20aborted.',_0x5a8794(0x123));}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a337_0x39d2ff=a337_0x242c;(function(_0x242e59,_0x4a4fe4){const _0x31edf1=a337_0x242c,_0x395a76=_0x242e59();while(!![]){try{const _0x2a2b3b=parseInt(_0x31edf1(0x83))/0x1+parseInt(_0x31edf1(0x8d))/0x2*(parseInt(_0x31edf1(0x84))/0x3)+-parseInt(_0x31edf1(0x8a))/0x4*(parseInt(_0x31edf1(0x87))/0x5)+parseInt(_0x31edf1(0x86))/0x6*(-parseInt(_0x31edf1(0x89))/0x7)+-parseInt(_0x31edf1(0x8c))/0x8+-parseInt(_0x31edf1(0x82))/0x9+parseInt(_0x31edf1(0x88))/0xa;if(_0x2a2b3b===_0x4a4fe4)break;else _0x395a76['push'](_0x395a76['shift']());}catch(_0x2d9a7){_0x395a76['push'](_0x395a76['shift']());}}}(a337_0x1324,0x52793));let tail=Promise[a337_0x39d2ff(0x8b)]();export async function runSerialized(_0x5732d6){const _0x25c5c6=a337_0x39d2ff,_0x27d64b=tail;let _0x172bcc;tail=new Promise(_0x3bea39=>{_0x172bcc=_0x3bea39;}),await _0x27d64b[_0x25c5c6(0x85)](()=>undefined);try{return await _0x5732d6();}finally{_0x172bcc();}}function a337_0x242c(_0x555589,_0x452932){_0x555589=_0x555589-0x82;const _0x1324a5=a337_0x1324();let _0x242c66=_0x1324a5[_0x555589];return _0x242c66;}function a337_0x1324(){const _0x49e858=['18587760LDkMGv','415772hKKqOL','4GvefqN','resolve','3659344CYHZor','14YoCFve','5295753PevmPE','76582xfKlAT','195339xEbEKN','catch','42kQTEVT','2958655tdEdHa'];a337_0x1324=function(){return _0x49e858;};return a337_0x1324();}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x511628,_0x188e99){const _0x5654bd=a338_0x4e0b,_0x41d5dd=_0x511628();while(!![]){try{const _0x38440e=parseInt(_0x5654bd(0x1f4))/0x1*(-parseInt(_0x5654bd(0x1f0))/0x2)+parseInt(_0x5654bd(0x1f3))/0x3+-parseInt(_0x5654bd(0x1e5))/0x4+-parseInt(_0x5654bd(0x1ee))/0x5*(-parseInt(_0x5654bd(0x1f7))/0x6)+-parseInt(_0x5654bd(0x1e9))/0x7*(parseInt(_0x5654bd(0x1eb))/0x8)+-parseInt(_0x5654bd(0x1ec))/0x9*(-parseInt(_0x5654bd(0x1e4))/0xa)+parseInt(_0x5654bd(0x1f1))/0xb;if(_0x38440e===_0x188e99)break;else _0x41d5dd['push'](_0x41d5dd['shift']());}catch(_0x5c0792){_0x41d5dd['push'](_0x41d5dd['shift']());}}}(a338_0x3029,0xba031));import a338_0xc447b3 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a338_0x3029(){const _0x27215c=['defaultCommand','90izBAER','4099840azySga','wildcardDef','join','run','2049859ljbkKT','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','16cBrjWq','731421JwrRhl','flags','75vKapAy','validation','2TCXnqH','22572979tkEhfV','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','518208fmsBnL','652122hREMLY','slice','input','27366LSyubf','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.'];a338_0x3029=function(){return _0x27215c;};return a338_0x3029();}import{buildMeowFlags}from'../constant/cli.js';function a338_0x4e0b(_0x1a1e91,_0x44ca4d){_0x1a1e91=_0x1a1e91-0x1e3;const _0x302915=a338_0x3029();let _0x4e0b03=_0x302915[_0x1a1e91];return _0x4e0b03;}import{CliErrors}from'../errors.js';import{assertSupportedCommandFlags}from'../framework/supported-flags.js';export async function resolveRabetbaseInvocation(_0x396ecc){const _0x528f32=a338_0x4e0b,_0x10648c=a338_0xc447b3('',{'importMeta':import.meta,'argv':[..._0x396ecc],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x2c4627=[..._0x10648c[_0x528f32(0x1f6)]],_0x2c72ca=_0x10648c[_0x528f32(0x1ed)],_0x537563=_0x2c4627[0x0];if(!_0x537563)throw CliErrors[_0x528f32(0x1ef)](_0x528f32(0x1f2));const _0x5692cc=resolveRemovedCommand(_0x537563,_0x2c4627[0x1]);if(_0x5692cc)throw CliErrors[_0x528f32(0x1ef)](_0x5692cc['message'],_0x5692cc['hint']);if(_0x537563===_0x528f32(0x1e8))throw CliErrors[_0x528f32(0x1ef)]('`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.',_0x528f32(0x1f8));if(!isKnownService(_0x537563))throw CliErrors['unknownCommand'](_0x2c4627[_0x528f32(0x1e7)]('\x20'));const _0x3b3490=getServiceEntry(_0x537563),_0x2594eb=_0x2c4627[0x1],_0x35ad81=_0x2594eb||_0x3b3490[_0x528f32(0x1e3)];if(!_0x35ad81){if(_0x3b3490['wildcardDef'])return{'definition':_0x3b3490[_0x528f32(0x1e6)],'rawFlags':_0x2c72ca,'args':[]};throw CliErrors[_0x528f32(0x1ef)](_0x528f32(0x1ea)+_0x537563+'\x22.');}const _0x4f9589=findDefinition(_0x537563,_0x35ad81);if(_0x4f9589)return assertSupportedCommandFlags(_0x4f9589,_0x2c72ca),{'definition':_0x4f9589,'rawFlags':_0x2c72ca,'args':_0x2c4627['slice'](0x2)};if(_0x3b3490[_0x528f32(0x1e6)])return{'definition':_0x3b3490['wildcardDef'],'rawFlags':_0x2c72ca,'args':[_0x35ad81,..._0x2c4627[_0x528f32(0x1f5)](0x2)]};throw CliErrors['unknownCommand'](_0x537563+'\x20'+_0x35ad81);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x54a772,_0x473d38){const _0x5f1102=a340_0x3ce6,_0x582369=_0x54a772();while(!![]){try{const _0x493d36=parseInt(_0x5f1102(0x101))/0x1+parseInt(_0x5f1102(0x107))/0x2*(-parseInt(_0x5f1102(0x108))/0x3)+parseInt(_0x5f1102(0xf8))/0x4+parseInt(_0x5f1102(0x10b))/0x5+-parseInt(_0x5f1102(0xef))/0x6*(parseInt(_0x5f1102(0xfe))/0x7)+parseInt(_0x5f1102(0xf2))/0x8*(-parseInt(_0x5f1102(0xee))/0x9)+-parseInt(_0x5f1102(0xeb))/0xa*(-parseInt(_0x5f1102(0xec))/0xb);if(_0x493d36===_0x473d38)break;else _0x582369['push'](_0x582369['shift']());}catch(_0x5a760f){_0x582369['push'](_0x582369['shift']());}}}(a340_0x6462,0xce9a1));import{randomUUID}from'node:crypto';import{dirname}from'node:path';function a340_0x3ce6(_0x284fa1,_0x3f52bb){_0x284fa1=_0x284fa1-0xeb;const _0x6462bc=a340_0x6462();let _0x3ce650=_0x6462bc[_0x284fa1];return _0x3ce650;}import{mkdir,open,link,unlink,rename,lstat,readFile}from'node:fs/promises';import{isObject,requireValue}from'./contract.js';function a340_0x6462(){const _0x37a59e=['identityKey','string','.tmp','dataset-design-operation','2KTHTUS','4984131bLsYyY','utf8','isSymbolicLink','4918390RZSUJR','81120hCJNBt','1793iOqPsC','test','8154FoLfTe','18fBZQuK','isFile','stringify','11536nMhtPZ','Checkpoint\x20must\x20be\x20a\x20regular\x20JSON\x20file.','writeFile','catch','clientOperationId','ENOENT','5895672jJshyI','code','schemaVersion','sync','Invalid\x20checkpoint;\x20reconcile\x20its\x20original\x20operation\x20before\x20submitting\x20again.','EEXIST','1587817kICwQe','size','inputHash','714711cHfKlT','kind'];a340_0x6462=function(){return _0x37a59e;};return a340_0x6462();}export async function readCheckpoint(_0x24c220){const _0x4f1658=a340_0x3ce6;try{const _0x2614de=await lstat(_0x24c220);requireValue(_0x2614de[_0x4f1658(0xf0)]()&&!_0x2614de[_0x4f1658(0x10a)]()&&_0x2614de[_0x4f1658(0xff)]<=0x3d0900,_0x4f1658(0xf3));const _0x38ada6=JSON['parse'](await readFile(_0x24c220,_0x4f1658(0x109)));return requireValue(isObject(_0x38ada6)&&_0x38ada6[_0x4f1658(0x102)]===_0x4f1658(0x106)&&_0x38ada6[_0x4f1658(0xfa)]===0x1&&typeof _0x38ada6[_0x4f1658(0xf6)]===_0x4f1658(0x104)&&/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/[_0x4f1658(0xed)](_0x38ada6[_0x4f1658(0xf6)])&&typeof _0x38ada6['inputHash']===_0x4f1658(0x104)&&/^[a-f0-9]{64}$/[_0x4f1658(0xed)](_0x38ada6[_0x4f1658(0x100)])&&typeof _0x38ada6[_0x4f1658(0x103)]==='string'&&_0x38ada6['identityKey']['length']>0x0&&isObject(_0x38ada6['manifest']),_0x4f1658(0xfc)),_0x38ada6;}catch(_0x26987a){if(_0x26987a[_0x4f1658(0xf9)]===_0x4f1658(0xf7))return undefined;throw _0x26987a;}}export async function saveCheckpoint(_0x40700e,_0x4e91af,_0x224130=![]){const _0x13eb29=a340_0x3ce6;await mkdir(dirname(_0x40700e),{'recursive':!![]});const _0x131e2f=_0x40700e+'.'+randomUUID()+_0x13eb29(0x105),_0xf9229c=await open(_0x131e2f,'wx',0x180);try{await _0xf9229c[_0x13eb29(0xf4)](JSON[_0x13eb29(0xf1)](_0x4e91af,null,0x2)+'\x0a'),await _0xf9229c[_0x13eb29(0xfb)]();}finally{await _0xf9229c['close']();}try{if(_0x224130)await link(_0x131e2f,_0x40700e);else await rename(_0x131e2f,_0x40700e);return!![];}catch(_0x5954ef){if(_0x224130&&_0x5954ef['code']===_0x13eb29(0xfd))return![];throw _0x5954ef;}finally{await unlink(_0x131e2f)[_0x13eb29(0xf5)](_0x4a8590=>{const _0x2ff8f2=_0x13eb29;if(_0x4a8590[_0x2ff8f2(0xf9)]!==_0x2ff8f2(0xf7))throw _0x4a8590;});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a341_0x3cad39=a341_0xbbc2;(function(_0x59828d,_0x4ca126){const _0x4524d9=a341_0xbbc2,_0x4aa9b3=_0x59828d();while(!![]){try{const _0x1243c8=parseInt(_0x4524d9(0x248))/0x1+-parseInt(_0x4524d9(0x21b))/0x2+parseInt(_0x4524d9(0x1fc))/0x3+-parseInt(_0x4524d9(0x211))/0x4+-parseInt(_0x4524d9(0x1e6))/0x5+parseInt(_0x4524d9(0x219))/0x6*(parseInt(_0x4524d9(0x256))/0x7)+parseInt(_0x4524d9(0x1e5))/0x8*(-parseInt(_0x4524d9(0x24f))/0x9);if(_0x1243c8===_0x4ca126)break;else _0x4aa9b3['push'](_0x4aa9b3['shift']());}catch(_0xe64ef){_0x4aa9b3['push'](_0x4aa9b3['shift']());}}}(a341_0x1adf,0x7a847));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';function a341_0x1adf(){const _0x270005=['code','output','operation_failed','toDatasetKey','read','expectedHash','normalizedManifest','GET','deleted','.checkpoint.json','995426YZBfEu','Server\x20operation\x20ID','failedStage','str','get','Checkpoint\x20creation\x20could\x20not\x20be\x20reconciled.','Checkpoint\x20not\x20found.','18ByteIb','clientOperationId','rejected','Agent-authored\x20JSON\x20dataset\x20manifest','Submission\x20outcome\x20is\x20unknown;\x20query\x20the\x20original\x20operation.','taskId','unresolvedRelations','21PZJxWg','find','node:fs/promises','result','Checkpoint\x20target\x20or\x20design\x20changed.\x20Reconcile\x20the\x20original\x20operation;\x20use\x20a\x20new\x20design\x20file\x20for\x20an\x20intentional\x20new\x20operation.','client-operation-id\x20differs\x20from\x20the\x20checkpoint\x20operation.','MANY_TO_ONE','validate','valid','Dataset\x20design\x20','--format','Server\x20returned\x20an\x20invalid\x20design\x20hash.','username','SUCCESS','4659696QDXeUU','507505yxdXkV','reused','add','datasets','currentStep','size','manifest','Durable\x20operation\x20checkpoint\x20path','client-operation-id','fromDatasetKey','Stable\x20recovery\x20ID\x20for\x20one\x20design\x20operation','Deterministic\x20dataset\x20design\x20','map','expectedRelations','Save\x20the\x20server-normalized\x20design\x20JSON','write','dataset','dataset.','test','createdDatasets','client','isArray','1515444CapFeu','operation_pending','state','status','startsWith','apiDomain','Dataset\x20detail\x20does\x20not\x20contain\x20matching\x20DOV2\x20metadata.','localKey','values','sync','inputHash','name','cardinality','start','lookup','some','metrics','stringify','design-status','password','FAILED','2106388DjcqJp','errorMsg','toField','context','unknown_reconcile_failed','string','Server\x20context\x20lacks\x20an\x20authenticated\x20identity.','length','1696728jDZkdU','checkpoint','108170dGSXUL','toString','compress','Provide\x20exactly\x20one\x20operation-id,\x20client-operation-id\x20or\x20checkpoint.','node:path','dataset-design-operation','design-','createdRelations','expectedLocalKeys','toDatasetCode','has','--appcode','normalizedHash','fields','includes','/smartapi/dataset/design/','operationId','file','query_original_operation','fromField','fromDatasetCode','operation','filter','submitting','sync-retry','Saved\x20dataset\x20code','unknown','submission_unknown','datasets_created','fieldCount','flagMissing','dataset_created','every','appCode','identityKey'];a341_0x1adf=function(){return _0x270005;};return a341_0x1adf();}function a341_0xbbc2(_0x8d3789,_0x433003){_0x8d3789=_0x8d3789-0x1e0;const _0x1adff2=a341_0x1adf();let _0xbbc22e=_0x1adff2[_0x8d3789];return _0xbbc22e;}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=(_0x265762,_0x56b400)=>({'name':_0x265762,'type':'string','description':_0x56b400}),flags={'file':flag(a341_0x3cad39(0x22c),a341_0x3cad39(0x252)),'output':flag('output',a341_0x3cad39(0x1f4)),'checkpoint':flag(a341_0x3cad39(0x21a),a341_0x3cad39(0x1ed)),'client':flag(a341_0x3cad39(0x1ee),a341_0x3cad39(0x1f0)),'operation':flag('operation-id',a341_0x3cad39(0x249)),'code':flag(a341_0x3cad39(0x23e),a341_0x3cad39(0x234))};function domain(_0x2e4d37){const _0x5809a3=a341_0x3cad39,_0x27b131=new URL(_0x2e4d37[_0x5809a3(0x201)]||getApiDomain());return requireValue(!_0x27b131[_0x5809a3(0x1e3)]&&!_0x27b131[_0x5809a3(0x20f)]&&!_0x27b131['search']&&!_0x27b131['hash'],'API\x20domain\x20must\x20not\x20contain\x20credentials,\x20query\x20or\x20fragment.'),_0x27b131[_0x5809a3(0x21c)]()['replace'](/\/+$/,'');}function required(_0x4fc696,_0x468868){const _0x5c787f=a341_0x3cad39,_0x1ac992=_0x4fc696[_0x5c787f(0x24b)](_0x468868);if(!_0x1ac992)throw CliErrors[_0x5c787f(0x239)](_0x468868);return _0x1ac992;}function bind(_0x6927f0,_0x1e88ed,_0x366c30){const _0x547627=a341_0x3cad39;requireValue(_0x6927f0[_0x547627(0x23c)]===_0x1e88ed['appCode']&&_0x6927f0[_0x547627(0x201)]===domain(_0x1e88ed)&&(_0x366c30===undefined||_0x6927f0[_0x547627(0x206)]===_0x366c30),_0x547627(0x25a));}function query(_0x5a3347,_0x5a185b){const _0x5d650a=a341_0x3cad39;return{'command':_0x5d650a(0x20e),'argv':['rabetbase',_0x5d650a(0x1f6),'design-status',_0x5d650a(0x226),_0x5a3347['appCode'],'--checkpoint',_0x5a185b,_0x5d650a(0x1e1),'compress']};}function unknown(_0x3b66ef,_0x117925){const _0x113972=a341_0x3cad39;return{'status':'submission_unknown','clientOperationId':_0x3b66ef[_0x113972(0x250)],'operationId':_0x3b66ef[_0x113972(0x22b)]??null,'checkpoint':_0x117925,'query':query(_0x3b66ef,_0x117925),'nextAction':_0x113972(0x22d)};}function matchesField(_0x328fc8,_0xeed1fb){const _0x3cc502=a341_0x3cad39;return Object['entries'](_0xeed1fb)[_0x3cc502(0x23b)](([_0x13f917,_0x354023])=>{const _0x201be2=_0x3cc502;if(_0x354023==null)return!![];const _0x5b5d80=_0x328fc8[_0x13f917];if(_0x13f917==='options'){if(!Array['isArray'](_0x5b5d80)||!Array['isArray'](_0x354023)||_0x5b5d80[_0x201be2(0x20b)](_0x18dbf2=>!isObject(_0x18dbf2)))return![];const _0x476590=_0x59fa9e=>_0x59fa9e[_0x201be2(0x1f2)](({label:_0x350790,value:_0x4f3a6b})=>({'label':_0x350790,'value':_0x4f3a6b}));return inputHash(_0x476590(_0x5b5d80))===inputHash(_0x476590(_0x354023));}return _0x5b5d80!==undefined&&inputHash(_0x5b5d80)===inputHash(_0x354023);});}function reconcile(_0x425c9d,_0x872d06){const _0xcffd39=a341_0x3cad39;if(!isObject(_0x425c9d)||!Array[_0xcffd39(0x1fb)](_0x425c9d[_0xcffd39(0x1f9)])||!Array['isArray'](_0x425c9d[_0xcffd39(0x222)]))return;const _0x3e648c=_0x425c9d['createdDatasets'],_0x2773ac=_0x872d06?.['datasets'][_0xcffd39(0x1f2)](_0x3ca248=>_0x3ca248[_0xcffd39(0x203)])??_0x425c9d[_0xcffd39(0x223)];if(!Array['isArray'](_0x2773ac)||_0x2773ac['length']!==_0x3e648c['length']||new Set(_0x2773ac)['size']!==_0x2773ac[_0xcffd39(0x218)])return;const _0x115593=new Map();for(const _0x6c705 of _0x3e648c){if(!isObject(_0x6c705)||typeof _0x6c705['localKey']!=='string'||typeof _0x6c705[_0xcffd39(0x23e)]!==_0xcffd39(0x216)||!_0x6c705['code']||_0x115593[_0xcffd39(0x225)](_0x6c705[_0xcffd39(0x203)]))return;_0x115593['set'](_0x6c705[_0xcffd39(0x203)],_0x6c705[_0xcffd39(0x23e)]);if(_0x872d06){const _0x4ac7be=_0x872d06[_0xcffd39(0x1e9)][_0xcffd39(0x257)](_0x1727c4=>_0x1727c4[_0xcffd39(0x203)]===_0x6c705[_0xcffd39(0x203)]);if(!_0x4ac7be||!Array['isArray'](_0x6c705[_0xcffd39(0x228)]))return;if(_0x6c705['fields'][_0xcffd39(0x20b)](_0x1d01f5=>!isObject(_0x1d01f5)))return;const _0x5672aa=new Map(_0x6c705[_0xcffd39(0x228)][_0xcffd39(0x1f2)](_0x2442d1=>[_0x2442d1[_0xcffd39(0x207)],_0x2442d1]));if(_0x5672aa[_0xcffd39(0x1eb)]!==_0x6c705['fields'][_0xcffd39(0x218)]||_0x6c705[_0xcffd39(0x238)]!==_0x6c705[_0xcffd39(0x228)][_0xcffd39(0x218)])return;if(_0x4ac7be[_0xcffd39(0x228)][_0xcffd39(0x20b)](_0x4ad277=>!_0x5672aa[_0xcffd39(0x225)](_0x4ad277[_0xcffd39(0x207)])||!matchesField(_0x5672aa[_0xcffd39(0x24c)](_0x4ad277[_0xcffd39(0x207)]),_0x4ad277)))return;const _0x146303=new Set(_0x4ac7be[_0xcffd39(0x228)][_0xcffd39(0x1f2)](_0x4eaed0=>_0x4eaed0[_0xcffd39(0x207)]));_0x146303[_0xcffd39(0x1e8)]('id');if(_0x6c705[_0xcffd39(0x228)][_0xcffd39(0x20b)](_0x2fefe0=>!_0x146303[_0xcffd39(0x225)](_0x2fefe0['name'])))return;}}if(new Set(_0x115593[_0xcffd39(0x204)]())[_0xcffd39(0x1eb)]!==_0x115593[_0xcffd39(0x1eb)]||_0x2773ac[_0xcffd39(0x20b)](_0x4f79f1=>!_0x115593[_0xcffd39(0x225)](_0x4f79f1)))return;const _0x5376f0=_0x872d06?.['relations']??_0x425c9d[_0xcffd39(0x1f3)];if(!Array[_0xcffd39(0x1fb)](_0x5376f0)||_0x5376f0[_0xcffd39(0x218)]!==_0x425c9d['createdRelations'][_0xcffd39(0x218)])return;const _0x32e85a=_0x203dc7=>JSON[_0xcffd39(0x20d)]([_0x203dc7[_0xcffd39(0x1ef)],_0x203dc7[_0xcffd39(0x22e)],_0x203dc7['toDatasetCode']||_0x115593['get'](_0x203dc7[_0xcffd39(0x241)]),_0x203dc7[_0xcffd39(0x213)],_0x203dc7['relationType']||_0xcffd39(0x20a),_0x203dc7[_0xcffd39(0x208)]||_0xcffd39(0x25c)]),_0x34fa64=new Set(_0x5376f0['map'](_0x32e85a)),_0x50440a=new Set(_0x425c9d[_0xcffd39(0x222)][_0xcffd39(0x1f2)](_0x32e85a));if(_0x50440a[_0xcffd39(0x1eb)]!==_0x5376f0[_0xcffd39(0x218)]||_0x34fa64[_0xcffd39(0x1eb)]!==_0x5376f0[_0xcffd39(0x218)]||[..._0x34fa64]['some'](_0x1bf54d=>!_0x50440a['has'](_0x1bf54d)))return;for(const _0xcf839a of _0x425c9d[_0xcffd39(0x222)]){if(_0xcf839a[_0xcffd39(0x22f)]!==_0x115593['get'](_0xcf839a[_0xcffd39(0x1ef)])||_0xcf839a['toDatasetKey']&&_0xcf839a[_0xcffd39(0x224)]!==_0x115593['get'](_0xcf839a[_0xcffd39(0x241)]))return;}return{'createdDatasets':_0x3e648c,'createdRelations':_0x425c9d[_0xcffd39(0x222)],'unresolvedRelations':_0x425c9d[_0xcffd39(0x255)]??[]};}export function statusData(_0x4a5982,_0x5717ed){const _0x5ff16f=a341_0x3cad39;requireValue(isObject(_0x4a5982)&&typeof _0x4a5982[_0x5ff16f(0x1ff)]===_0x5ff16f(0x216),'Server\x20response\x20does\x20not\x20contain\x20a\x20valid\x20operation\x20state.');const _0x4e6c66={'jobStatus':_0x4a5982['status'],'operationId':_0x4a5982['operationId']??_0x4a5982[_0x5ff16f(0x254)]??null,'taskId':_0x4a5982[_0x5ff16f(0x254)]??_0x4a5982['operationId']??null,'clientOperationId':_0x4a5982[_0x5ff16f(0x250)]??null,'progressRate':_0x4a5982['progressRate']??null,'currentStep':_0x4a5982[_0x5ff16f(0x1ea)]??null,'failedStage':_0x4a5982[_0x5ff16f(0x24a)]??null,'sync':_0x4a5982[_0x5ff16f(0x205)]??null,'errorMsg':_0x4a5982[_0x5ff16f(0x212)]??null,'metrics':_0x4a5982[_0x5ff16f(0x20c)]??null},_0x3f4e3c=!_0x5717ed&&_0x4a5982[_0x5ff16f(0x1ff)]===_0x5ff16f(0x1e4)&&isObject(_0x4a5982[_0x5ff16f(0x259)]?.[_0x5ff16f(0x1f6)])?_0x4a5982[_0x5ff16f(0x259)][_0x5ff16f(0x1f6)]:undefined;if(_0x3f4e3c&&typeof _0x3f4e3c['code']==='string'&&_0x3f4e3c[_0x5ff16f(0x23e)]&&_0x3f4e3c['id']!=null)return{..._0x4e6c66,'status':_0x5ff16f(0x23a),'createdDataset':_0x3f4e3c};const _0x49495c=_0x4a5982[_0x5ff16f(0x1ff)]===_0x5ff16f(0x1e4)?reconcile(_0x4a5982[_0x5ff16f(0x259)],_0x5717ed):undefined;return{..._0x4e6c66,'status':_0x4a5982[_0x5ff16f(0x1ff)]==='SUCCESS'?_0x49495c?_0x5ff16f(0x237):_0x5ff16f(0x215):_0x4a5982[_0x5ff16f(0x1ff)]===_0x5ff16f(0x210)?_0x5ff16f(0x240):['PENDING','PROCESSING'][_0x5ff16f(0x229)](_0x4a5982[_0x5ff16f(0x1ff)])?_0x5ff16f(0x1fd):_0x5ff16f(0x215),..._0x49495c};}async function readStatus(_0x31dac9,_0x180397){const _0x1737fa=a341_0x3cad39,_0x25107e=statusData(_0x31dac9,_0x180397);if(_0x31dac9[_0x1737fa(0x1ff)]!=='SUCCESS'||!reconcile(_0x31dac9['result']))return _0x25107e;const _0x29c431=[];for(const _0x406490 of _0x31dac9[_0x1737fa(0x259)]['createdDatasets']){const _0x4e12d1=await getDatasetDetail(_0x406490[_0x1737fa(0x23e)]);requireValue(isObject(_0x4e12d1)&&(_0x4e12d1['modelCode']||_0x4e12d1[_0x1737fa(0x23e)])===_0x406490['code']&&Array['isArray'](_0x4e12d1[_0x1737fa(0x228)]),_0x1737fa(0x202));const _0x5c057c=_0x4e12d1[_0x1737fa(0x228)][_0x1737fa(0x231)](_0x5edea3=>_0x5edea3[_0x1737fa(0x246)]!==!![]);_0x29c431['push']({..._0x406490,'fields':_0x5c057c,'fieldCount':_0x5c057c[_0x1737fa(0x218)]});}return statusData({..._0x31dac9,'result':{..._0x31dac9[_0x1737fa(0x259)],'createdDatasets':_0x29c431}},_0x180397);}async function recover(_0x89f42f,_0x4d95ff,_0x2e2b13){const _0x38476e=a341_0x3cad39;bind(_0x89f42f,_0x2e2b13);const _0x4ba540=await getDatasetDesignContext(_0x2e2b13[_0x38476e(0x23c)]);requireValue(_0x4ba540?.[_0x38476e(0x23d)]===_0x89f42f[_0x38476e(0x23d)],'Checkpoint\x20belongs\x20to\x20another\x20authenticated\x20principal.');let _0x3c397b;try{_0x3c397b=await getDatasetDesignStatus(_0x2e2b13[_0x38476e(0x23c)],{'clientOperationId':_0x89f42f[_0x38476e(0x250)]});}catch(_0x5c065c){const _0x193aa3=getPlatformHttpStatus(_0x5c065c);if(isPlatformTransportFailure(_0x5c065c)||_0x193aa3===0x194)return unknown(_0x89f42f,_0x4d95ff);throw _0x5c065c;}const _0x23e1aa=await readStatus(_0x3c397b,_0x89f42f[_0x38476e(0x1ec)]);return _0x89f42f[_0x38476e(0x1fe)]=_0x23e1aa[_0x38476e(0x1ff)],_0x89f42f[_0x38476e(0x22b)]=_0x3c397b['operationId']||_0x89f42f['operationId'],await saveCheckpoint(_0x4d95ff,_0x89f42f),{..._0x23e1aa,'checkpoint':_0x4d95ff,'query':query(_0x89f42f,_0x4d95ff)};}async function start(_0x3e376c){const _0x197f97=a341_0x3cad39,_0x39d5d1=resolve(required(_0x3e376c,_0x197f97(0x22c))),_0x4885ca=await readManifest(_0x39d5d1),_0x541d8b=inputHash(_0x4885ca),_0x46b477=resolve(_0x3e376c[_0x197f97(0x24b)]('checkpoint')||_0x39d5d1+_0x197f97(0x247)),_0x16aaa7=await readCheckpoint(_0x46b477);if(_0x16aaa7)return bind(_0x16aaa7,_0x3e376c,_0x541d8b),requireValue(!_0x3e376c[_0x197f97(0x24b)](_0x197f97(0x1ee))||_0x3e376c[_0x197f97(0x24b)]('client-operation-id')===_0x16aaa7[_0x197f97(0x250)],_0x197f97(0x25b)),recover(_0x16aaa7,_0x46b477,_0x3e376c);const _0x4a3b34=await getDatasetDesignContext(_0x3e376c[_0x197f97(0x23c)]);requireValue(typeof _0x4a3b34?.[_0x197f97(0x23d)]===_0x197f97(0x216)&&_0x4a3b34[_0x197f97(0x23d)],_0x197f97(0x217));const _0x287a59=await validateDatasetDesign(_0x3e376c[_0x197f97(0x23c)],_0x4885ca);requireValue(_0x287a59?.[_0x197f97(0x25e)]===!![],'Server\x20rejected\x20the\x20design;\x20run\x20design-validate\x20and\x20repair\x20the\x20reported\x20fields.');const _0x481ee0=validateManifest(_0x287a59[_0x197f97(0x244)]);requireValue(typeof _0x287a59[_0x197f97(0x227)]===_0x197f97(0x216)&&/^[a-f0-9]{64}$/[_0x197f97(0x1f8)](_0x287a59[_0x197f97(0x227)]),_0x197f97(0x1e2));const _0x49a92e=_0x3e376c['str'](_0x197f97(0x1ee))||'dataset-design-'+randomUUID();requireValue(/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/['test'](_0x49a92e),'Invalid\x20client-operation-id.');const _0x50cf15={'kind':_0x197f97(0x220),'schemaVersion':0x1,'appCode':_0x3e376c[_0x197f97(0x23c)],'apiDomain':domain(_0x3e376c),'identityKey':_0x4a3b34[_0x197f97(0x23d)],'inputHash':_0x541d8b,'clientOperationId':_0x49a92e,'manifest':_0x481ee0,'expectedHash':_0x287a59['normalizedHash'],'state':'prepared'};if(!await saveCheckpoint(_0x46b477,_0x50cf15,!![])){const _0x3108e5=await readCheckpoint(_0x46b477);return requireValue(_0x3108e5,_0x197f97(0x24d)),bind(_0x3108e5,_0x3e376c,_0x541d8b),recover(_0x3108e5,_0x46b477,_0x3e376c);}_0x50cf15[_0x197f97(0x1fe)]=_0x197f97(0x232),await saveCheckpoint(_0x46b477,_0x50cf15);let _0x1ed87b;try{_0x1ed87b=await startDatasetDesign(_0x3e376c[_0x197f97(0x23c)],_0x481ee0,_0x50cf15[_0x197f97(0x243)],_0x49a92e);}catch(_0xb67137){const _0x1cc415=isPlatformTransportFailure(_0xb67137);_0x50cf15['state']=_0x1cc415?_0x197f97(0x235):_0x197f97(0x251),await saveCheckpoint(_0x46b477,_0x50cf15);if(!_0x1cc415)throw _0xb67137;return unknown(_0x50cf15,_0x46b477);}if(!isObject(_0x1ed87b)||!(_0x1ed87b['operationId']||_0x1ed87b[_0x197f97(0x254)])||typeof _0x1ed87b['status']!==_0x197f97(0x216))return _0x50cf15[_0x197f97(0x1fe)]='unknown',await saveCheckpoint(_0x46b477,_0x50cf15),unknown(_0x50cf15,_0x46b477);return _0x50cf15[_0x197f97(0x22b)]=_0x1ed87b[_0x197f97(0x22b)]||_0x1ed87b['taskId'],_0x50cf15[_0x197f97(0x1fe)]=_0x1ed87b['status'],await saveCheckpoint(_0x46b477,_0x50cf15),{...await readStatus(_0x1ed87b,_0x481ee0),'clientOperationId':_0x49a92e,'checkpoint':_0x46b477,'reused':_0x1ed87b[_0x197f97(0x1e7)]??![],'query':query(_0x50cf15,_0x46b477)};}export function designCommand(_0x1429d5){const _0x17b96d=a341_0x3cad39,_0x4c0976=_0x17b96d(0x221)+_0x1429d5,_0xae0d46=_0x1429d5===_0x17b96d(0x25d)?[flags[_0x17b96d(0x22c)],flags['output']]:_0x1429d5===_0x17b96d(0x209)?[flags['file'],flags[_0x17b96d(0x21a)],flags['client']]:_0x1429d5==='status'?[flags[_0x17b96d(0x230)],flags[_0x17b96d(0x1fa)],flags['checkpoint']]:_0x1429d5['startsWith'](_0x17b96d(0x205))?[flags[_0x17b96d(0x23e)]]:[];return{'service':_0x17b96d(0x1f6),'command':_0x4c0976,'description':_0x17b96d(0x1f1)+_0x1429d5,'risk':_0x1429d5===_0x17b96d(0x209)||_0x1429d5===_0x17b96d(0x233)?_0x17b96d(0x1f5):_0x17b96d(0x242),'defaultOutputFormat':_0x17b96d(0x21d),'strictFlags':!![],'structuredErrors':!![],'flags':[..._0xae0d46,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x670a01){const _0x41f499=_0x17b96d;if(['validate','start'][_0x41f499(0x229)](_0x1429d5))required(_0x670a01,_0x41f499(0x22c));if(_0x1429d5[_0x41f499(0x200)](_0x41f499(0x205)))required(_0x670a01,_0x41f499(0x23e));if(_0x1429d5==='status')requireValue([_0x670a01['str']('operation-id'),_0x670a01[_0x41f499(0x24b)](_0x41f499(0x1ee)),_0x670a01[_0x41f499(0x24b)]('checkpoint')][_0x41f499(0x231)](Boolean)[_0x41f499(0x218)]===0x1,_0x41f499(0x21e));},async 'dryRun'(_0x764d46){const _0x59c6e6=_0x17b96d,_0x1e88f3=[_0x59c6e6(0x25d),_0x59c6e6(0x209)]['includes'](_0x1429d5)?await readManifest(resolve(required(_0x764d46,_0x59c6e6(0x22c)))):undefined;return{'method':[_0x59c6e6(0x25d),_0x59c6e6(0x209),_0x59c6e6(0x233)][_0x59c6e6(0x229)](_0x1429d5)?'POST':_0x59c6e6(0x245),'url':_0x59c6e6(0x22a)+_0x1429d5,'body':_0x1e88f3?{'appCode':_0x764d46[_0x59c6e6(0x23c)],'manifest':_0x1e88f3}:undefined,'description':'Inspect\x20the\x20deterministic\x20request\x20without\x20submission\x20or\x20checkpoint\x20writes.'};},async 'execute'(_0x4d9377){const _0x5822cf=_0x17b96d;let _0x378b5b;if(_0x1429d5===_0x5822cf(0x214))_0x378b5b=await getDatasetDesignContext(_0x4d9377[_0x5822cf(0x23c)]);else{if(_0x1429d5==='validate'){_0x378b5b=await validateDatasetDesign(_0x4d9377[_0x5822cf(0x23c)],await readManifest(resolve(required(_0x4d9377,_0x5822cf(0x22c)))));if(_0x4d9377[_0x5822cf(0x24b)](_0x5822cf(0x23f))&&_0x378b5b?.[_0x5822cf(0x25e)]===!![]){const {writeFile:_0x3be8b6,mkdir:_0x1e6298}=await import(_0x5822cf(0x258)),{dirname:_0x553808}=await import(_0x5822cf(0x21f)),_0x321067=resolve(_0x4d9377[_0x5822cf(0x24b)](_0x5822cf(0x23f)));await _0x1e6298(_0x553808(_0x321067),{'recursive':!![]}),await _0x3be8b6(_0x321067,JSON['stringify'](_0x378b5b,null,0x2)+'\x0a',{'mode':0x180});}}else{if(_0x1429d5===_0x5822cf(0x209))_0x378b5b=await start(_0x4d9377);else{if(_0x1429d5===_0x5822cf(0x1ff)){const _0x869dad=_0x4d9377[_0x5822cf(0x24b)](_0x5822cf(0x21a));if(_0x869dad){const _0x1b860d=await readCheckpoint(resolve(_0x869dad));requireValue(_0x1b860d,_0x5822cf(0x24e)),_0x378b5b=await recover(_0x1b860d,resolve(_0x869dad),_0x4d9377);}else _0x378b5b=statusData(await getDatasetDesignStatus(_0x4d9377[_0x5822cf(0x23c)],{'operationId':_0x4d9377[_0x5822cf(0x24b)]('operation-id')||undefined,'clientOperationId':_0x4d9377['str'](_0x5822cf(0x1ee))||undefined}));}else{if(_0x1429d5==='sync-status')_0x378b5b=await getDatasetDesignSyncStatus(_0x4d9377[_0x5822cf(0x23c)],required(_0x4d9377,_0x5822cf(0x23e)));else _0x378b5b=await retryDatasetDesignSync(_0x4d9377['appCode'],required(_0x4d9377,_0x5822cf(0x23e)));}}}}return{'ok':!![],'message':_0x378b5b[_0x5822cf(0x1ff)]===_0x5822cf(0x236)?_0x5822cf(0x253):_0x378b5b[_0x5822cf(0x1ff)]==='operation_pending'?'Operation\x20submitted;\x20continue\x20querying\x20its\x20status.':_0x5822cf(0x1e0)+_0x1429d5+'\x20response\x20received','data':{'operation':_0x5822cf(0x1f7)+_0x4c0976,'appCode':_0x4d9377['appCode'],..._0x378b5b}};}};}
|
|
1
|
+
const a341_0x3f72de=a341_0x5e62;(function(_0x596a21,_0x434363){const _0x3070b8=a341_0x5e62,_0x4761a8=_0x596a21();while(!![]){try{const _0x42d66f=-parseInt(_0x3070b8(0x152))/0x1*(-parseInt(_0x3070b8(0x1c3))/0x2)+parseInt(_0x3070b8(0x1bb))/0x3*(parseInt(_0x3070b8(0x178))/0x4)+-parseInt(_0x3070b8(0x1af))/0x5+-parseInt(_0x3070b8(0x155))/0x6+-parseInt(_0x3070b8(0x177))/0x7+-parseInt(_0x3070b8(0x159))/0x8*(-parseInt(_0x3070b8(0x1ce))/0x9)+parseInt(_0x3070b8(0x189))/0xa;if(_0x42d66f===_0x434363)break;else _0x4761a8['push'](_0x4761a8['shift']());}catch(_0x22ced5){_0x4761a8['push'](_0x4761a8['shift']());}}}(a341_0x8892,0x5b5f1));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=(_0x3ba5ae,_0x121869)=>({'name':_0x3ba5ae,'type':a341_0x3f72de(0x1b7),'description':_0x121869}),flags={'file':flag(a341_0x3f72de(0x1b0),a341_0x3f72de(0x1b6)),'output':flag(a341_0x3f72de(0x17a),a341_0x3f72de(0x1ca)),'checkpoint':flag(a341_0x3f72de(0x15e),'Durable\x20operation\x20checkpoint\x20path'),'client':flag(a341_0x3f72de(0x15b),a341_0x3f72de(0x179)),'operation':flag(a341_0x3f72de(0x17c),a341_0x3f72de(0x188)),'code':flag(a341_0x3f72de(0x168),'Saved\x20dataset\x20code')};function domain(_0x4c51e4){const _0x41aa26=a341_0x3f72de,_0xb49515=new URL(_0x4c51e4[_0x41aa26(0x16e)]||getApiDomain());return requireValue(!_0xb49515[_0x41aa26(0x17f)]&&!_0xb49515[_0x41aa26(0x197)]&&!_0xb49515[_0x41aa26(0x15d)]&&!_0xb49515['hash'],'API\x20domain\x20must\x20not\x20contain\x20credentials,\x20query\x20or\x20fragment.'),_0xb49515['toString']()[_0x41aa26(0x16b)](/\/+$/,'');}function required(_0x327f66,_0x20a196){const _0x4ca52b=a341_0x3f72de,_0x2cc764=_0x327f66[_0x4ca52b(0x1ae)](_0x20a196);if(!_0x2cc764)throw CliErrors[_0x4ca52b(0x161)](_0x20a196);return _0x2cc764;}function bind(_0x3abef8,_0x2e0a1a,_0x370dd5){const _0x528a7c=a341_0x3f72de;requireValue(_0x3abef8[_0x528a7c(0x1b1)]===_0x2e0a1a[_0x528a7c(0x1b1)]&&_0x3abef8[_0x528a7c(0x16e)]===domain(_0x2e0a1a)&&(_0x370dd5===undefined||_0x3abef8[_0x528a7c(0x1bc)]===_0x370dd5),_0x528a7c(0x167));}function query(_0x366e40,_0x2d27f8){const _0x257f0f=a341_0x3f72de;return{'command':'design-status','argv':[_0x257f0f(0x1c2),_0x257f0f(0x1b4),_0x257f0f(0x192),_0x257f0f(0x151),_0x366e40[_0x257f0f(0x1b1)],'--checkpoint',_0x2d27f8,_0x257f0f(0x19b),_0x257f0f(0x196)]};}function a341_0x5e62(_0x13438b,_0x17d9f7){_0x13438b=_0x13438b-0x150;const _0x889280=a341_0x8892();let _0x5e62b9=_0x889280[_0x13438b];return _0x5e62b9;}function unknown(_0x3c56b0,_0x45bddb){const _0x3c23e6=a341_0x3f72de;return{'status':_0x3c23e6(0x1bd),'clientOperationId':_0x3c56b0[_0x3c23e6(0x17e)],'operationId':_0x3c56b0[_0x3c23e6(0x18f)]??null,'checkpoint':_0x45bddb,'query':query(_0x3c56b0,_0x45bddb),'nextAction':'query_original_operation'};}function matchesField(_0x7bea8f,_0x3f7ebb){const _0x562e17=a341_0x3f72de;return Object['entries'](_0x3f7ebb)[_0x562e17(0x1c1)](([_0x140fef,_0x26a535])=>{const _0x4947d0=_0x562e17;if(_0x26a535==null)return!![];const _0x58fff8=_0x7bea8f[_0x140fef];if(_0x140fef===_0x4947d0(0x1cc)){if(!Array[_0x4947d0(0x173)](_0x58fff8)||!Array[_0x4947d0(0x173)](_0x26a535)||_0x58fff8[_0x4947d0(0x150)](_0x2477a8=>!isObject(_0x2477a8)))return![];const _0x11b306=_0x3aeafc=>_0x3aeafc[_0x4947d0(0x199)](({label:_0x354f69,value:_0x2a8129})=>({'label':_0x354f69,'value':_0x2a8129}));return inputHash(_0x11b306(_0x58fff8))===inputHash(_0x11b306(_0x26a535));}return _0x58fff8!==undefined&&inputHash(_0x58fff8)===inputHash(_0x26a535);});}function reconcile(_0x10ae3b,_0x23fcae){const _0x3c8536=a341_0x3f72de;if(!isObject(_0x10ae3b)||!Array[_0x3c8536(0x173)](_0x10ae3b[_0x3c8536(0x19f)])||!Array[_0x3c8536(0x173)](_0x10ae3b[_0x3c8536(0x17b)]))return;const _0x3afa92=_0x10ae3b[_0x3c8536(0x19f)],_0x15d8b5=_0x23fcae?.['datasets'][_0x3c8536(0x199)](_0x5b2228=>_0x5b2228[_0x3c8536(0x187)])??_0x10ae3b['expectedLocalKeys'];if(!Array[_0x3c8536(0x173)](_0x15d8b5)||_0x15d8b5[_0x3c8536(0x1c9)]!==_0x3afa92['length']||new Set(_0x15d8b5)[_0x3c8536(0x1a4)]!==_0x15d8b5['length'])return;const _0x3b9bf4=new Map();for(const _0x327ec9 of _0x3afa92){if(!isObject(_0x327ec9)||typeof _0x327ec9[_0x3c8536(0x187)]!=='string'||typeof _0x327ec9['code']!==_0x3c8536(0x1b7)||!_0x327ec9[_0x3c8536(0x168)]||_0x3b9bf4['has'](_0x327ec9[_0x3c8536(0x187)]))return;_0x3b9bf4[_0x3c8536(0x154)](_0x327ec9[_0x3c8536(0x187)],_0x327ec9[_0x3c8536(0x168)]);if(_0x23fcae){const _0x272865=_0x23fcae['datasets'][_0x3c8536(0x193)](_0x324652=>_0x324652['localKey']===_0x327ec9['localKey']);if(!_0x272865||!Array[_0x3c8536(0x173)](_0x327ec9[_0x3c8536(0x19a)]))return;if(_0x327ec9['fields'][_0x3c8536(0x150)](_0x55aaad=>!isObject(_0x55aaad)))return;const _0x42a1c4=new Map(_0x327ec9[_0x3c8536(0x19a)][_0x3c8536(0x199)](_0x1d2d1c=>[_0x1d2d1c[_0x3c8536(0x19c)],_0x1d2d1c]));if(_0x42a1c4[_0x3c8536(0x1a4)]!==_0x327ec9[_0x3c8536(0x19a)][_0x3c8536(0x1c9)]||_0x327ec9[_0x3c8536(0x1b9)]!==_0x327ec9[_0x3c8536(0x19a)][_0x3c8536(0x1c9)])return;if(_0x272865['fields'][_0x3c8536(0x150)](_0x374fe8=>!_0x42a1c4[_0x3c8536(0x182)](_0x374fe8[_0x3c8536(0x19c)])||!matchesField(_0x42a1c4[_0x3c8536(0x176)](_0x374fe8[_0x3c8536(0x19c)]),_0x374fe8)))return;const _0x159a14=new Set(_0x272865[_0x3c8536(0x19a)][_0x3c8536(0x199)](_0x5bc165=>_0x5bc165[_0x3c8536(0x19c)]));_0x159a14[_0x3c8536(0x1c5)]('id');if(_0x327ec9['fields']['some'](_0x20858c=>!_0x159a14[_0x3c8536(0x182)](_0x20858c['name'])))return;}}if(new Set(_0x3b9bf4[_0x3c8536(0x1a8)]())[_0x3c8536(0x1a4)]!==_0x3b9bf4[_0x3c8536(0x1a4)]||_0x15d8b5['some'](_0x3b3082=>!_0x3b9bf4[_0x3c8536(0x182)](_0x3b3082)))return;const _0x2ab09d=_0x23fcae?.['relations']??_0x10ae3b['expectedRelations'];if(!Array[_0x3c8536(0x173)](_0x2ab09d)||_0x2ab09d[_0x3c8536(0x1c9)]!==_0x10ae3b[_0x3c8536(0x17b)][_0x3c8536(0x1c9)])return;const _0x395610=_0x35d037=>JSON[_0x3c8536(0x1bf)]([_0x35d037[_0x3c8536(0x15f)],_0x35d037[_0x3c8536(0x158)],_0x35d037[_0x3c8536(0x171)]||_0x3b9bf4[_0x3c8536(0x176)](_0x35d037[_0x3c8536(0x198)]),_0x35d037[_0x3c8536(0x170)],_0x35d037[_0x3c8536(0x1c0)]||_0x3c8536(0x1ac),_0x35d037[_0x3c8536(0x175)]||'MANY_TO_ONE']),_0x5e5518=new Set(_0x2ab09d[_0x3c8536(0x199)](_0x395610)),_0x55abef=new Set(_0x10ae3b[_0x3c8536(0x17b)]['map'](_0x395610));if(_0x55abef['size']!==_0x2ab09d[_0x3c8536(0x1c9)]||_0x5e5518[_0x3c8536(0x1a4)]!==_0x2ab09d[_0x3c8536(0x1c9)]||[..._0x5e5518][_0x3c8536(0x150)](_0x16ce3d=>!_0x55abef[_0x3c8536(0x182)](_0x16ce3d)))return;for(const _0x1530fc of _0x10ae3b['createdRelations']){if(_0x1530fc['fromDatasetCode']!==_0x3b9bf4['get'](_0x1530fc['fromDatasetKey'])||_0x1530fc[_0x3c8536(0x198)]&&_0x1530fc[_0x3c8536(0x171)]!==_0x3b9bf4[_0x3c8536(0x176)](_0x1530fc[_0x3c8536(0x198)]))return;}return{'createdDatasets':_0x3afa92,'createdRelations':_0x10ae3b['createdRelations'],'unresolvedRelations':_0x10ae3b[_0x3c8536(0x1a2)]??[]};}export function statusData(_0x1c474d,_0x1e101b){const _0x4f6545=a341_0x3f72de;requireValue(isObject(_0x1c474d)&&typeof _0x1c474d[_0x4f6545(0x1b2)]==='string',_0x4f6545(0x1c4));const _0x178848={'jobStatus':_0x1c474d[_0x4f6545(0x1b2)],'operationId':_0x1c474d[_0x4f6545(0x18f)]??_0x1c474d[_0x4f6545(0x15a)]??null,'taskId':_0x1c474d[_0x4f6545(0x15a)]??_0x1c474d['operationId']??null,'clientOperationId':_0x1c474d[_0x4f6545(0x17e)]??null,'progressRate':_0x1c474d['progressRate']??null,'currentStep':_0x1c474d['currentStep']??null,'failedStage':_0x1c474d[_0x4f6545(0x1be)]??null,'sync':_0x1c474d[_0x4f6545(0x1a9)]??null,'errorMsg':_0x1c474d[_0x4f6545(0x165)]??null,'metrics':_0x1c474d[_0x4f6545(0x1a5)]??null},_0x4dbc56=!_0x1e101b&&_0x1c474d[_0x4f6545(0x1b2)]===_0x4f6545(0x180)&&isObject(_0x1c474d[_0x4f6545(0x1c8)]?.['dataset'])?_0x1c474d[_0x4f6545(0x1c8)]['dataset']:undefined;if(_0x4dbc56&&typeof _0x4dbc56[_0x4f6545(0x168)]===_0x4f6545(0x1b7)&&_0x4dbc56['code']&&_0x4dbc56['id']!=null)return{..._0x178848,'status':_0x4f6545(0x1c7),'createdDataset':_0x4dbc56};const _0x5704da=_0x1c474d[_0x4f6545(0x1b2)]==='SUCCESS'?reconcile(_0x1c474d['result'],_0x1e101b):undefined;return{..._0x178848,'status':_0x1c474d[_0x4f6545(0x1b2)]===_0x4f6545(0x180)?_0x5704da?_0x4f6545(0x163):_0x4f6545(0x18b):_0x1c474d[_0x4f6545(0x1b2)]==='FAILED'?_0x4f6545(0x1c6):[_0x4f6545(0x18c),_0x4f6545(0x1a3)]['includes'](_0x1c474d[_0x4f6545(0x1b2)])?'operation_pending':'unknown_reconcile_failed',..._0x5704da};}async function readStatus(_0x20b370,_0xcd6012){const _0x225279=a341_0x3f72de,_0x1234fd=statusData(_0x20b370,_0xcd6012);if(_0x20b370[_0x225279(0x1b2)]!==_0x225279(0x180)||!reconcile(_0x20b370[_0x225279(0x1c8)]))return _0x1234fd;const _0x54f93b=[];for(const _0x4eabbd of _0x20b370['result'][_0x225279(0x19f)]){const _0x18bd50=await getDatasetDetail(_0x4eabbd[_0x225279(0x168)]);requireValue(isObject(_0x18bd50)&&(_0x18bd50[_0x225279(0x181)]||_0x18bd50[_0x225279(0x168)])===_0x4eabbd[_0x225279(0x168)]&&Array[_0x225279(0x173)](_0x18bd50['fields']),_0x225279(0x162));const _0x453329=_0x18bd50[_0x225279(0x19a)][_0x225279(0x15c)](_0x518c93=>_0x518c93[_0x225279(0x18d)]!==!![]);_0x54f93b[_0x225279(0x164)]({..._0x4eabbd,'fields':_0x453329,'fieldCount':_0x453329[_0x225279(0x1c9)]});}return statusData({..._0x20b370,'result':{..._0x20b370[_0x225279(0x1c8)],'createdDatasets':_0x54f93b}},_0xcd6012);}async function recover(_0x22589e,_0x54c194,_0x38be3d){const _0xc0f5c=a341_0x3f72de;bind(_0x22589e,_0x38be3d);const _0xc40805=await getDatasetDesignContext(_0x38be3d[_0xc0f5c(0x1b1)]);requireValue(_0xc40805?.[_0xc0f5c(0x1b3)]===_0x22589e[_0xc0f5c(0x1b3)],_0xc0f5c(0x1a0));let _0x47acf5;try{_0x47acf5=await getDatasetDesignStatus(_0x38be3d[_0xc0f5c(0x1b1)],{'clientOperationId':_0x22589e['clientOperationId']});}catch(_0x2b3787){const _0x305c57=getPlatformHttpStatus(_0x2b3787);if(isPlatformTransportFailure(_0x2b3787)||_0x305c57===0x194)return unknown(_0x22589e,_0x54c194);throw _0x2b3787;}const _0x25ac2f=await readStatus(_0x47acf5,_0x22589e['manifest']);return _0x22589e[_0xc0f5c(0x184)]=_0x25ac2f['status'],_0x22589e[_0xc0f5c(0x18f)]=_0x47acf5[_0xc0f5c(0x18f)]||_0x22589e[_0xc0f5c(0x18f)],await saveCheckpoint(_0x54c194,_0x22589e),{..._0x25ac2f,'checkpoint':_0x54c194,'query':query(_0x22589e,_0x54c194)};}function a341_0x8892(){const _0x3aa230=['Invalid\x20client-operation-id.','\x20response\x20received','replace','includes','reused','apiDomain','design-','toField','toDatasetCode','prepared','isArray','start','cardinality','get','1830430wBWcit','303820vGWuNf','Stable\x20recovery\x20ID\x20for\x20one\x20design\x20operation','output','createdRelations','operation-id','node:path','clientOperationId','username','SUCCESS','modelCode','has','rejected','state','Server\x20rejected\x20the\x20design;\x20run\x20design-validate\x20and\x20repair\x20the\x20reported\x20fields.','Operation\x20submitted;\x20continue\x20querying\x20its\x20status.','localKey','Server\x20operation\x20ID','68000xQcPZN','GET','unknown_reconcile_failed','PENDING','deleted','submitting','operationId','sync-status','sync-retry','design-status','find','context','unknown','compress','password','toDatasetKey','map','fields','--format','name','write','client','createdDatasets','Checkpoint\x20belongs\x20to\x20another\x20authenticated\x20principal.','dataset-design-operation','unresolvedRelations','PROCESSING','size','metrics','node:fs/promises','read','values','sync','Provide\x20exactly\x20one\x20operation-id,\x20client-operation-id\x20or\x20checkpoint.','expectedHash','lookup','Deterministic\x20dataset\x20design\x20','str','3146345rQLOkK','file','appCode','status','identityKey','dataset','client-operation-id\x20differs\x20from\x20the\x20checkpoint\x20operation.','Agent-authored\x20JSON\x20dataset\x20manifest','string','normalizedHash','fieldCount','startsWith','24WLhyoy','inputHash','submission_unknown','failedStage','stringify','relationType','every','rabetbase','292ihlslq','Server\x20response\x20does\x20not\x20contain\x20a\x20valid\x20operation\x20state.','add','operation_failed','dataset_created','result','length','Save\x20the\x20server-normalized\x20design\x20JSON','valid','options','Server\x20context\x20lacks\x20an\x20authenticated\x20identity.','3431007OYFSCl','some','--appcode','4193ozBdww','dataset.','set','2056950LmUerR','validate','test','fromField','8Ejgqzy','taskId','client-operation-id','filter','search','checkpoint','fromDatasetKey','/smartapi/dataset/design/','flagMissing','Dataset\x20detail\x20does\x20not\x20contain\x20matching\x20DOV2\x20metadata.','datasets_created','push','errorMsg','POST','Checkpoint\x20target\x20or\x20design\x20changed.\x20Reconcile\x20the\x20original\x20operation;\x20use\x20a\x20new\x20design\x20file\x20for\x20an\x20intentional\x20new\x20operation.','code'];a341_0x8892=function(){return _0x3aa230;};return a341_0x8892();}async function start(_0x138122){const _0x46771b=a341_0x3f72de,_0x9501d0=resolve(required(_0x138122,_0x46771b(0x1b0))),_0x547c68=await readManifest(_0x9501d0),_0x215846=inputHash(_0x547c68),_0x57174c=resolve(_0x138122[_0x46771b(0x1ae)]('checkpoint')||_0x9501d0+'.checkpoint.json'),_0x1c7c40=await readCheckpoint(_0x57174c);if(_0x1c7c40)return bind(_0x1c7c40,_0x138122,_0x215846),requireValue(!_0x138122[_0x46771b(0x1ae)]('client-operation-id')||_0x138122['str'](_0x46771b(0x15b))===_0x1c7c40[_0x46771b(0x17e)],_0x46771b(0x1b5)),recover(_0x1c7c40,_0x57174c,_0x138122);const _0x377a04=await getDatasetDesignContext(_0x138122[_0x46771b(0x1b1)]);requireValue(typeof _0x377a04?.[_0x46771b(0x1b3)]===_0x46771b(0x1b7)&&_0x377a04[_0x46771b(0x1b3)],_0x46771b(0x1cd));const _0x42f76a=await validateDatasetDesign(_0x138122['appCode'],_0x547c68);requireValue(_0x42f76a?.['valid']===!![],_0x46771b(0x185));const _0x2a5fc2=validateManifest(_0x42f76a['normalizedManifest']);requireValue(typeof _0x42f76a['normalizedHash']==='string'&&/^[a-f0-9]{64}$/[_0x46771b(0x157)](_0x42f76a[_0x46771b(0x1b8)]),'Server\x20returned\x20an\x20invalid\x20design\x20hash.');const _0x1d1323=_0x138122[_0x46771b(0x1ae)](_0x46771b(0x15b))||'dataset-design-'+randomUUID();requireValue(/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/[_0x46771b(0x157)](_0x1d1323),_0x46771b(0x169));const _0x400319={'kind':_0x46771b(0x1a1),'schemaVersion':0x1,'appCode':_0x138122[_0x46771b(0x1b1)],'apiDomain':domain(_0x138122),'identityKey':_0x377a04[_0x46771b(0x1b3)],'inputHash':_0x215846,'clientOperationId':_0x1d1323,'manifest':_0x2a5fc2,'expectedHash':_0x42f76a[_0x46771b(0x1b8)],'state':_0x46771b(0x172)};if(!await saveCheckpoint(_0x57174c,_0x400319,!![])){const _0x2510a1=await readCheckpoint(_0x57174c);return requireValue(_0x2510a1,'Checkpoint\x20creation\x20could\x20not\x20be\x20reconciled.'),bind(_0x2510a1,_0x138122,_0x215846),recover(_0x2510a1,_0x57174c,_0x138122);}_0x400319['state']=_0x46771b(0x18e),await saveCheckpoint(_0x57174c,_0x400319);let _0x593b06;try{_0x593b06=await startDatasetDesign(_0x138122[_0x46771b(0x1b1)],_0x2a5fc2,_0x400319[_0x46771b(0x1ab)],_0x1d1323);}catch(_0x232a02){const _0x22c4a3=isPlatformTransportFailure(_0x232a02);_0x400319['state']=_0x22c4a3?_0x46771b(0x195):_0x46771b(0x183),await saveCheckpoint(_0x57174c,_0x400319);if(!_0x22c4a3)throw _0x232a02;return unknown(_0x400319,_0x57174c);}if(!isObject(_0x593b06)||!(_0x593b06[_0x46771b(0x18f)]||_0x593b06[_0x46771b(0x15a)])||typeof _0x593b06[_0x46771b(0x1b2)]!==_0x46771b(0x1b7))return _0x400319['state']=_0x46771b(0x195),await saveCheckpoint(_0x57174c,_0x400319),unknown(_0x400319,_0x57174c);_0x400319['operationId']=_0x593b06[_0x46771b(0x18f)]||_0x593b06[_0x46771b(0x15a)],_0x400319['state']=_0x593b06['status'],await saveCheckpoint(_0x57174c,_0x400319);if(_0x593b06['status']===_0x46771b(0x180))return{...await recover(_0x400319,_0x57174c,_0x138122),'clientOperationId':_0x1d1323,'reused':_0x593b06[_0x46771b(0x16d)]??![]};return{...await readStatus(_0x593b06,_0x2a5fc2),'clientOperationId':_0x1d1323,'checkpoint':_0x57174c,'reused':_0x593b06['reused']??![],'query':query(_0x400319,_0x57174c)};}export function designCommand(_0x48785b){const _0x23396b=a341_0x3f72de,_0x1c6e92=_0x23396b(0x16f)+_0x48785b,_0x5cbbbe=_0x48785b===_0x23396b(0x156)?[flags[_0x23396b(0x1b0)],flags[_0x23396b(0x17a)]]:_0x48785b===_0x23396b(0x174)?[flags[_0x23396b(0x1b0)],flags[_0x23396b(0x15e)],flags[_0x23396b(0x19e)]]:_0x48785b==='status'?[flags['operation'],flags[_0x23396b(0x19e)],flags[_0x23396b(0x15e)]]:_0x48785b[_0x23396b(0x1ba)]('sync')?[flags[_0x23396b(0x168)]]:[];return{'service':_0x23396b(0x1b4),'command':_0x1c6e92,'description':_0x23396b(0x1ad)+_0x48785b,'risk':_0x48785b==='start'||_0x48785b===_0x23396b(0x191)?_0x23396b(0x19d):_0x23396b(0x1a7),'defaultOutputFormat':_0x23396b(0x196),'strictFlags':!![],'structuredErrors':!![],'flags':[..._0x5cbbbe,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4bec32){const _0x2cdbbb=_0x23396b;if(['validate',_0x2cdbbb(0x174)][_0x2cdbbb(0x16c)](_0x48785b))required(_0x4bec32,_0x2cdbbb(0x1b0));if(_0x48785b['startsWith'](_0x2cdbbb(0x1a9)))required(_0x4bec32,_0x2cdbbb(0x168));if(_0x48785b===_0x2cdbbb(0x1b2))requireValue([_0x4bec32['str'](_0x2cdbbb(0x17c)),_0x4bec32['str']('client-operation-id'),_0x4bec32[_0x2cdbbb(0x1ae)](_0x2cdbbb(0x15e))]['filter'](Boolean)['length']===0x1,_0x2cdbbb(0x1aa));},async 'dryRun'(_0x364a70){const _0x546239=_0x23396b,_0x1a7dfe=[_0x546239(0x156),_0x546239(0x174)]['includes'](_0x48785b)?await readManifest(resolve(required(_0x364a70,_0x546239(0x1b0)))):undefined;return{'method':[_0x546239(0x156),_0x546239(0x174),_0x546239(0x191)]['includes'](_0x48785b)?_0x546239(0x166):_0x546239(0x18a),'url':_0x546239(0x160)+_0x48785b,'body':_0x1a7dfe?{'appCode':_0x364a70['appCode'],'manifest':_0x1a7dfe}:undefined,'description':'Inspect\x20the\x20deterministic\x20request\x20without\x20submission\x20or\x20checkpoint\x20writes.'};},async 'execute'(_0x5f0d91){const _0x3bc230=_0x23396b;let _0x4b73cc;if(_0x48785b===_0x3bc230(0x194))_0x4b73cc=await getDatasetDesignContext(_0x5f0d91['appCode']);else{if(_0x48785b===_0x3bc230(0x156)){_0x4b73cc=await validateDatasetDesign(_0x5f0d91[_0x3bc230(0x1b1)],await readManifest(resolve(required(_0x5f0d91,'file'))));if(_0x5f0d91[_0x3bc230(0x1ae)](_0x3bc230(0x17a))&&_0x4b73cc?.[_0x3bc230(0x1cb)]===!![]){const {writeFile:_0x29a6cb,mkdir:_0x3afaa6}=await import(_0x3bc230(0x1a6)),{dirname:_0xc2acef}=await import(_0x3bc230(0x17d)),_0x3f6cad=resolve(_0x5f0d91['str'](_0x3bc230(0x17a)));await _0x3afaa6(_0xc2acef(_0x3f6cad),{'recursive':!![]}),await _0x29a6cb(_0x3f6cad,JSON[_0x3bc230(0x1bf)](_0x4b73cc,null,0x2)+'\x0a',{'mode':0x180});}}else{if(_0x48785b==='start')_0x4b73cc=await start(_0x5f0d91);else{if(_0x48785b===_0x3bc230(0x1b2)){const _0x5f40bf=_0x5f0d91[_0x3bc230(0x1ae)]('checkpoint');if(_0x5f40bf){const _0x11fcb8=await readCheckpoint(resolve(_0x5f40bf));requireValue(_0x11fcb8,'Checkpoint\x20not\x20found.'),_0x4b73cc=await recover(_0x11fcb8,resolve(_0x5f40bf),_0x5f0d91);}else _0x4b73cc=statusData(await getDatasetDesignStatus(_0x5f0d91['appCode'],{'operationId':_0x5f0d91[_0x3bc230(0x1ae)](_0x3bc230(0x17c))||undefined,'clientOperationId':_0x5f0d91[_0x3bc230(0x1ae)](_0x3bc230(0x15b))||undefined}));}else{if(_0x48785b===_0x3bc230(0x190))_0x4b73cc=await getDatasetDesignSyncStatus(_0x5f0d91[_0x3bc230(0x1b1)],required(_0x5f0d91,_0x3bc230(0x168)));else _0x4b73cc=await retryDatasetDesignSync(_0x5f0d91[_0x3bc230(0x1b1)],required(_0x5f0d91,_0x3bc230(0x168)));}}}}return{'ok':!![],'message':_0x4b73cc[_0x3bc230(0x1b2)]===_0x3bc230(0x1bd)?'Submission\x20outcome\x20is\x20unknown;\x20query\x20the\x20original\x20operation.':_0x4b73cc['status']==='operation_pending'?_0x3bc230(0x186):'Dataset\x20design\x20'+_0x48785b+_0x3bc230(0x16a),'data':{'operation':_0x3bc230(0x153)+_0x1c6e92,'appCode':_0x5f0d91['appCode'],..._0x4b73cc}};}};}
|