@lovrabet/rabetbase-cli 2.5.6-beta.1 → 2.5.7-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/README.md +15 -1
- 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.d.ts +1 -0
- package/lib/commands/dataset/design-context.js +1 -0
- package/lib/commands/dataset/design-start.d.ts +1 -0
- package/lib/commands/dataset/design-start.js +1 -0
- package/lib/commands/dataset/design-status.d.ts +1 -0
- package/lib/commands/dataset/design-status.js +1 -0
- package/lib/commands/dataset/design-sync-retry.d.ts +1 -0
- package/lib/commands/dataset/design-sync-retry.js +1 -0
- package/lib/commands/dataset/design-sync-status.d.ts +1 -0
- package/lib/commands/dataset/design-sync-status.js +1 -0
- package/lib/commands/dataset/design-validate.d.ts +1 -0
- package/lib/commands/dataset/design-validate.js +1 -0
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/cross-db-analysis-shared.js +1 -1
- package/lib/commands/db/cross-db-analyze-latest.js +1 -1
- package/lib/commands/db/cross-db-analyze-start.js +1 -1
- package/lib/commands/db/cross-db-analyze-status.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/page-list.d.ts +2 -0
- package/lib/commands/flow/page-list.js +1 -0
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.d.ts +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.d.ts +6 -2
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +37 -6
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-analysis.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.d.ts +12 -0
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-design/checkpoint.d.ts +17 -0
- package/lib/services/dataset-design/checkpoint.js +1 -0
- package/lib/services/dataset-design/commands.d.ts +6 -0
- package/lib/services/dataset-design/commands.js +1 -0
- package/lib/services/dataset-design/contract.d.ts +7 -0
- package/lib/services/dataset-design/contract.js +1 -0
- 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 +3 -2
- package/skills/rabetbase/SKILL.md +11 -7
- package/skills/rabetbase/guides/approval-flow-development-workflow.md +52 -13
- package/skills/rabetbase/guides/backend-function.md +26 -4
- package/skills/rabetbase/guides/bff-creation-workflow.md +9 -0
- package/skills/rabetbase/guides/cross-database-bff.md +1 -0
- package/skills/rabetbase/guides/custom-page-flow-sdk.md +2 -0
- package/skills/rabetbase/guides/data-api-guidelines.md +2 -0
- package/skills/rabetbase/guides/flow-config-examples.md +75 -0
- package/skills/rabetbase/guides/form-flow-start.md +61 -0
- package/skills/rabetbase/guides/typescript-sdk.md +1 -1
- package/skills/rabetbase/knowledge/approval-flow/config-json-schema.md +18 -4
- package/skills/rabetbase/references/rabetbase-codegen-sdk.md +5 -4
- package/skills/rabetbase/references/rabetbase-dataset-design.md +25 -0
- package/skills/rabetbase/references/rabetbase-dataset-generate.md +2 -255
- package/skills/rabetbase/references/rabetbase-flow-commands.md +21 -2
- package/skills/rabetbase/references/rabetbase-flow-resources.md +21 -3
- package/skills/rabetbase/references/rabetbase-flow-runtime-boundary.md +6 -2
- package/skills/rabetbase/references/rabetbase-kb.md +4 -1
- package/skills/rabetbase-dataset-generation/SKILL.md +45 -0
- package/skills/rabetbase-dataset-generation/references/workflow.md +60 -0
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +6 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x37d66f,_0x501d27){var _0x4a2872=a323_0x1d2d,_0x3863a1=_0x37d66f();while(!![]){try{var _0x1146c3=parseInt(_0x4a2872(0x158))/0x1+-parseInt(_0x4a2872(0x151))/0x2+-parseInt(_0x4a2872(0x150))/0x3*(-parseInt(_0x4a2872(0x154))/0x4)+-parseInt(_0x4a2872(0x156))/0x5+-parseInt(_0x4a2872(0x152))/0x6+-parseInt(_0x4a2872(0x155))/0x7*(parseInt(_0x4a2872(0x153))/0x8)+parseInt(_0x4a2872(0x159))/0x9*(parseInt(_0x4a2872(0x157))/0xa);if(_0x1146c3===_0x501d27)break;else _0x3863a1['push'](_0x3863a1['shift']());}catch(_0xd8c0fb){_0x3863a1['push'](_0x3863a1['shift']());}}}(a323_0x20ab,0xa951b));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a323_0x1d2d(_0xce4844,_0x4472d9){_0xce4844=_0xce4844-0x150;var _0x20abe2=a323_0x20ab();var _0x1d2ddc=_0x20abe2[_0xce4844];return _0x1d2ddc;}function a323_0x20ab(){var _0x1066ed=['8256276tPVlIG','3492339upnCCO','2753102KMhlbE','4789734TPPtYI','1099592HYCTaC','4NutqAK','7uFiIxE','4472560bXDjxb','20iDedEg','901491IJUTlr'];a323_0x20ab=function(){return _0x1066ed;};return a323_0x20ab();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a324_0x3270(){const _0x1e0ef2=['flags','validation','7167006XfDKNh','1003WkKIZY','code','524ASITyd','6aJiXNW','.\x20Run\x20`','Unknown\x20alias\x20\x22','type','filePath','27765meikXJ','\x20api\x20pull`\x20first.','name','5KpeYrB','1441404RVWOJL','string','profileName','some','No\x20model\x20aliases\x20found\x20in\x20','Available\x20aliases:\x20','join','4475410sVarTZ','1224eXoVYW','alias','842331evRwqQ','map','28581pWkuUY'];a324_0x3270=function(){return _0x1e0ef2;};return a324_0x3270();}function a324_0x1577(_0x27ca9f,_0x2fecd9){_0x27ca9f=_0x27ca9f-0xe9;const _0x3270bf=a324_0x3270();let _0x15773f=_0x3270bf[_0x27ca9f];return _0x15773f;}(function(_0x59c6bf,_0x50501e){const _0x1a4933=a324_0x1577,_0x5bd2aa=_0x59c6bf();while(!![]){try{const _0x1c1cb8=-parseInt(_0x1a4933(0xfb))/0x1*(parseInt(_0x1a4933(0xfd))/0x2)+parseInt(_0x1a4933(0xf5))/0x3+parseInt(_0x1a4933(0xeb))/0x4*(-parseInt(_0x1a4933(0xea))/0x5)+parseInt(_0x1a4933(0xfe))/0x6*(-parseInt(_0x1a4933(0xf7))/0x7)+-parseInt(_0x1a4933(0xf3))/0x8*(-parseInt(_0x1a4933(0x103))/0x9)+-parseInt(_0x1a4933(0xf2))/0xa+parseInt(_0x1a4933(0xfa))/0xb;if(_0x1c1cb8===_0x50501e)break;else _0x5bd2aa['push'](_0x5bd2aa['shift']());}catch(_0x3cbaa4){_0x5bd2aa['push'](_0x5bd2aa['shift']());}}}(a324_0x3270,0x5075f));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{resolveApiModelSource}from'../api/model-source.js';export function resolveAliasToCode(_0xf57166,_0x55522a,_0xcc7b20,_0x45242b,_0x40f9b5,_0x604adf){const _0x77cc67=a324_0x1577,_0x41c939=_0xf57166[_0x77cc67(0xf8)][_0x77cc67(0xee)](_0x55d128=>_0x55d128['name']===_0x77cc67(0xfc)&&_0x55d128[_0x77cc67(0x101)]===_0x77cc67(0xec)),_0x49e9f9=_0xf57166[_0x77cc67(0xf8)][_0x77cc67(0xee)](_0x3da516=>_0x3da516[_0x77cc67(0xe9)]===_0x77cc67(0xf4)&&_0x3da516[_0x77cc67(0x101)]===_0x77cc67(0xec));if(!_0x41c939||!_0x49e9f9)return;const _0x4ebc5f=_0x55522a['code']?String(_0x55522a['code']):'',_0x19ab2c=_0x55522a[_0x77cc67(0xf4)]?String(_0x55522a[_0x77cc67(0xf4)]):'';if(!_0x4ebc5f&&!_0x19ab2c)throw CliErrors[_0x77cc67(0xf9)]('`'+_0x45242b+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x19ab2c&&!_0x4ebc5f){const _0x3e6824=resolveApiModelSource(_0xcc7b20,_0x40f9b5,_0x604adf),_0x135a33=resolveAlias(_0xcc7b20,_0x19ab2c,undefined,_0x3e6824[_0x77cc67(0x102)],_0x3e6824[_0x77cc67(0xed)]);if(!_0x135a33){const _0x2274f3=listAliases(_0xcc7b20,undefined,_0x3e6824[_0x77cc67(0x102)],_0x3e6824[_0x77cc67(0xed)])[_0x77cc67(0xf6)](_0x7425a4=>_0x7425a4[_0x77cc67(0xf4)]),_0x33779c=_0x2274f3['length']?_0x77cc67(0xf0)+_0x2274f3[_0x77cc67(0xf1)](',\x20'):_0x77cc67(0xef)+_0xcc7b20+_0x77cc67(0xff)+CLI_BIN_NAME+_0x77cc67(0x104);throw CliErrors[_0x77cc67(0xf9)](_0x77cc67(0x100)+_0x19ab2c+'\x22.\x20'+_0x33779c);}_0x55522a[_0x77cc67(0xfc)]=_0x135a33;}}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0xd05ecb,_0x11b411){const _0x19d0b2=a318_0x5db4,_0x55b7cf=_0xd05ecb();while(!![]){try{const _0x583578=-parseInt(_0x19d0b2(0x20d))/0x1*(-parseInt(_0x19d0b2(0x1da))/0x2)+-parseInt(_0x19d0b2(0x1cf))/0x3+-parseInt(_0x19d0b2(0x214))/0x4+-parseInt(_0x19d0b2(0x1d6))/0x5+parseInt(_0x19d0b2(0x1f1))/0x6*(-parseInt(_0x19d0b2(0x1f2))/0x7)+-parseInt(_0x19d0b2(0x219))/0x8*(parseInt(_0x19d0b2(0x1f4))/0x9)+parseInt(_0x19d0b2(0x1ee))/0xa;if(_0x583578===_0x11b411)break;else _0x55b7cf['push'](_0x55b7cf['shift']());}catch(_0x5a8ac3){_0x55b7cf['push'](_0x55b7cf['shift']());}}}(a318_0xa800,0x78be1));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';function a318_0x5db4(_0x131e23,_0x323bbd){_0x131e23=_0x131e23-0x1cf;const _0xa80072=a318_0xa800();let _0x5db46e=_0xa80072[_0x131e23];return _0x5db46e;}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 a318_0x1f9a4b}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x585fa0){const _0x3b5782=a318_0x5db4;return typeof _0x585fa0==='string'&&_0x585fa0[_0x3b5782(0x201)]()?_0x585fa0[_0x3b5782(0x201)]():undefined;}function resolveEnvAppCode(){const _0xe417d7=a318_0x5db4,_0x429196=stringFlag(process.env.RABETBASE_APPCODE);if(_0x429196)return{'name':'RABETBASE_APPCODE','value':_0x429196};const _0x2d198c=stringFlag(process.env.LOVRABET_APPCODE);if(_0x2d198c)return{'name':_0xe417d7(0x222),'value':_0x2d198c};return undefined;}function hasExplicitAppCode(_0x3add1e,_0x237a33){const _0x5889ac=a318_0x5db4;return!!(stringFlag(_0x3add1e[_0x5889ac(0x1eb)])||stringFlag(_0x237a33[_0x5889ac(0x1eb)]));}function assertEnvAppCodeNotIgnored(_0x203046,_0x28ee98,_0x4d51df){const _0x1eaf0b=a318_0x5db4;if(!_0x28ee98||_0x4d51df||_0x203046===_0x28ee98[_0x1eaf0b(0x210)])return;const _0x45c55c=_0x203046?_0x1eaf0b(0x1fc)+_0x203046+'\x22.':_0x1eaf0b(0x1d2);throw CliErrors['validation'](_0x28ee98[_0x1eaf0b(0x216)]+'='+_0x28ee98[_0x1eaf0b(0x210)]+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0x45c55c+'\x20'+(_0x1eaf0b(0x1e9)+_0x28ee98[_0x1eaf0b(0x216)]+'\x22.'));}export function createPipelineEnv(_0x1ba2c8,_0x223b42,_0x2ea6b1=[]){const _0x7dc409=a318_0x5db4;return{'rawFlags':_0x223b42,'args':_0x2ea6b1,'resolveAppCode':()=>_0x1ba2c8[_0x7dc409(0x224)],'resolveCookie':()=>_0x1ba2c8[_0x7dc409(0x218)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a318_0x1f9a4b(_0x223b42),'defaultFormat':_0x1ba2c8['format'],'defaultPageSize':_0x1ba2c8['pageSize'],'defaultVerbose':_0x1ba2c8[_0x7dc409(0x1df)],'apiDir':_0x1ba2c8[_0x7dc409(0x1e1)],'riskLevel':_0x1ba2c8['riskLevel'],'selectedAppName':_0x1ba2c8[_0x7dc409(0x20f)],'mergedCli':{'defaultApp':_0x1ba2c8[_0x7dc409(0x1e7)],'currentApp':_0x1ba2c8['currentApp'],'appCode':_0x1ba2c8[_0x7dc409(0x224)],'apps':_0x1ba2c8[_0x7dc409(0x1f5)]}};}export function createRabetbaseRunnerAdapter(_0x47c752={}){const _0xb573fe=a318_0x5db4;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0xb573fe(0x1fb)](_0x55633c=>PIPELINE_FLAG_NAMES[_0xb573fe(0x204)](_0x55633c['name']))[_0xb573fe(0x1f9)](({name:_0xb087d2,type:_0x543a57,description:_0x29fbdc})=>({'name':_0xb087d2,'type':_0x543a57,'description':_0x29fbdc})),'formatOutput':_0x47c752['formatOutput']??formatOutput,'getCommandLabel'(_0xce923e){const _0x2a1ed2=_0xb573fe;return CLI_BIN_NAME+'\x20'+_0xce923e[_0x2a1ed2(0x1f0)]+'\x20'+_0xce923e[_0x2a1ed2(0x21b)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x2a4fbd,{def:_0x5e8aed}){const _0x36c5ab=_0xb573fe,_0x4781c1=_0x2a4fbd[_0x36c5ab(0x1fa)](_0x36c5ab(0x1d3))?'AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.':'A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22'+_0x5e8aed[_0x36c5ab(0x211)]+_0x36c5ab(0x20b)+_0x36c5ab(0x1d4);return CliErrors['validation'](_0x2a4fbd+_0x36c5ab(0x220)+_0x4781c1);}},async 'prepare'(_0x5bc59f,_0x3b5b86,_0x53509a,_0x5eba68){const _0x4e5c81=_0xb573fe,_0x211410=_0x3b5b86['apiDir']||DEFAULT_API_DIR,_0x1a0773=hasExplicitAppCode(_0x53509a,_0x3b5b86['rawFlags']),_0x36b855=stringFlag(_0x53509a['appcode'])||stringFlag(_0x3b5b86['rawFlags'][_0x4e5c81(0x1eb)]),_0x3ab81d=_0x3b5b86[_0x4e5c81(0x207)]?.[_0x4e5c81(0x1f5)]??{},_0x3cfaef=_0x3b5b86['selectedAppName']||_0x3b5b86['mergedCli']?.[_0x4e5c81(0x209)]||_0x3b5b86[_0x4e5c81(0x207)]?.[_0x4e5c81(0x1e7)],_0x2d21fa=_0x36b855?Object[_0x4e5c81(0x1e2)](_0x3ab81d)[_0x4e5c81(0x1fb)](([,_0x561c39])=>_0x561c39[_0x4e5c81(0x1eb)]===_0x36b855)[_0x4e5c81(0x1f9)](([_0x58ff8f])=>_0x58ff8f):[];if(_0x2d21fa[_0x4e5c81(0x1f7)]>0x1&&!_0x3b5b86[_0x4e5c81(0x1e4)])throw CliErrors[_0x4e5c81(0x1f6)](_0x4e5c81(0x21e)+_0x36b855+_0x4e5c81(0x1db)+_0x2d21fa[_0x4e5c81(0x223)](',\x20')+'.',_0x4e5c81(0x208));resolveAliasToCode(_0x5bc59f,_0x53509a,_0x211410,_0x5eba68,_0x3b5b86[_0x4e5c81(0x203)](),_0x3cfaef);const _0x13b87c=resolveCommandAuthMode(_0x5bc59f);let _0x204bcb='';if(_0x13b87c!=='none'){_0x204bcb=_0x3b5b86[_0x4e5c81(0x1ea)]()||'';if(!_0x204bcb){if(_0x13b87c==='required')throw CliErrors[_0x4e5c81(0x1dd)]();}else{const {setActiveCookie:_0x2846a8}=await import(_0x4e5c81(0x202));_0x2846a8(_0x204bcb);}}const _0x4de0d0=_0x3b5b86['resolveAppCode']()??'';if(_0x5bc59f[_0x4e5c81(0x213)]!==![]){if(!_0x1a0773&&_0x3cfaef&&!_0x3ab81d[_0x3cfaef]){const _0x55c73f=Object['keys'](_0x3ab81d);throw CliErrors[_0x4e5c81(0x1f6)](_0x4e5c81(0x215)+_0x3cfaef+_0x4e5c81(0x1d8),_0x55c73f[_0x4e5c81(0x1f7)]>0x0?_0x4e5c81(0x1f3)+_0x55c73f[_0x4e5c81(0x223)](',\x20')+'.\x20Use\x20--app/--appcode,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x4e5c81(0x1e6):'Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x4e5c81(0x1e6));}assertEnvAppCodeNotIgnored(_0x4de0d0,resolveEnvAppCode(),_0x1a0773);if(!_0x4de0d0){const _0x363333=Object['keys'](_0x3ab81d);if(!_0x3cfaef&&_0x363333[_0x4e5c81(0x1f7)]>0x1)throw CliErrors['configMissing'](_0x4e5c81(0x1d5)+CLI_BIN_NAME+_0x4e5c81(0x1d7)+_0x363333['join'](',\x20')+'.');throw CliErrors[_0x4e5c81(0x1fd)](_0x4e5c81(0x217)+CLI_BIN_NAME+_0x4e5c81(0x20e));}}return{'defaults':{'booleans':{'verbose':_0x3b5b86[_0x4e5c81(0x21f)]},'numbers':{'pagesize':_0x3b5b86[_0x4e5c81(0x221)]}},'extras':{'appCode':_0x4de0d0,'cookie':_0x204bcb,'apiDomain':_0x3b5b86[_0x4e5c81(0x1fe)](),'apiDir':_0x211410,'selectedAppName':_0x3b5b86[_0x4e5c81(0x1e4)],'mergedCli':_0x3b5b86['mergedCli']}};},'confirmHighRisk':_0x47c752[_0xb573fe(0x1e3)]??(async({env:_0x394b20,commandLabel:_0xaaa7a2})=>{const _0x5c6d42=_0xb573fe;if(_0x394b20['isNonInteractive'])throw CliErrors[_0x5c6d42(0x1f6)](_0x5c6d42(0x1d9)+_0xaaa7a2+_0x5c6d42(0x1ec));await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0xaaa7a2,_0x5c6d42(0x1f8)],'createCancelledError':_0x4cbde4=>CliErrors[_0x5c6d42(0x1de)](_0x4cbde4)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const {clearActiveCookie:_0x397ad6}=await import('../core/api-client.js');_0x397ad6();}export async function finalizeRabetbaseRuntimeState(){const _0x300e6e=a318_0x5db4;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x1c70ab},{initEnv:_0x516f60}]=await Promise[_0x300e6e(0x20a)]([import('../constant/domain.js'),import(_0x300e6e(0x1d0))]);_0x1c70ab(),_0x516f60(_0x300e6e(0x1ff));}}export async function runCommand(_0x20e72a,_0x5ccd11,_0x4b89ff=terminalRunnerAdapter){const _0x4adfb8=a318_0x5db4;assertRejectedFlags(_0x20e72a,_0x5ccd11[_0x4adfb8(0x205)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x20e72a)?withUpdateNotice(_0x20e72a):_0x20e72a,_0x5ccd11,_0x4b89ff);}function assertRejectedFlags(_0x28e197,_0x48e647){const _0x4c68d0=a318_0x5db4;for(const _0x459d65 of _0x28e197[_0x4c68d0(0x1ef)]??[]){const _0x5da79b=GLOBAL_FLAGS['find'](_0x20fbab=>_0x20fbab[_0x4c68d0(0x216)]===_0x459d65[_0x4c68d0(0x216)]),_0x505f47=new Set([_0x459d65[_0x4c68d0(0x216)],toCamelCase(_0x459d65[_0x4c68d0(0x216)]),_0x5da79b?.[_0x4c68d0(0x1e0)]]),_0x4844cd=[..._0x505f47][_0x4c68d0(0x21c)](_0x513724=>{if(!_0x513724)return![];const _0x5852a7=_0x48e647[_0x513724];return _0x5852a7!==undefined&&_0x5852a7!==null&&_0x5852a7!==![];});if(_0x4844cd)throw CliErrors['validation'](_0x459d65[_0x4c68d0(0x1ed)],_0x459d65[_0x4c68d0(0x212)]);}}function toCamelCase(_0x5b98c2){const _0x5b7e64=a318_0x5db4;return _0x5b98c2[_0x5b7e64(0x1e8)](/-([a-z])/g,(_0x366d90,_0x27f5ee)=>_0x27f5ee[_0x5b7e64(0x200)]());}function shouldAttachUpdateNotice(_0x473ec9){const _0xd09fbb=a318_0x5db4;if(_0x473ec9[_0xd09fbb(0x21d)]===![])return![];return![_0xd09fbb(0x1e5),'schema','doctor'][_0xd09fbb(0x1fa)](_0x473ec9[_0xd09fbb(0x1f0)]);}function withUpdateNotice(_0xd33d86){return{..._0xd33d86,async 'execute'(_0x9739b6){const _0x1584f0=a318_0x5db4,_0x4ef803=shouldResolveUpdateNotice(_0x9739b6)?resolveLatestUpdateNotice()[_0x1584f0(0x20c)](()=>null):Promise[_0x1584f0(0x225)](null),_0x2a2dec=await _0xd33d86[_0x1584f0(0x1dc)](_0x9739b6);return attachUpdateNotice(_0x2a2dec,await _0x4ef803);}};}function a318_0xa800(){const _0x416e20=['../core/api-client.js','resolveAppCode','has','rawFlags','_notice','mergedCli','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','currentApp','all','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','catch','46174gUnwqK','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','explicitAppName','value','risk','hint','requiresAppCode','2231796uOVBSV','App\x20\x22','name','Set\x20appcode\x20via\x20`','cookie','8MsJVZW','nonInteractive','command','some','hasFormat','AppCode\x20\x22','defaultVerbose','\x0a\x20\x20','defaultPageSize','LOVRABET_APPCODE','join','appCode','resolve','2586861mDhKVE','../constant/env.js','format','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','Edit\x20the\x20config\x20file\x20manually','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','3987295pZLWix','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','High-risk\x20operation\x20`','12wqEhmd','\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20','execute','authRequired','cancelled','verbose','meowKey','apiDir','entries','confirmHighRisk','selectedAppName','update','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','defaultApp','replace','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','resolveCookie','appcode','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','message','35132400dLRfVe','rejectedFlags','service','240sJchwy','77938LZRDbY','Available:\x20','5694012Namjzc','apps','validation','length','\x20\x20\x20Continue?\x20[y/N]\x20','map','includes','filter','Current\x20resolved\x20appcode\x20is\x20\x22','configMissing','resolveApiDomain','production','toUpperCase','trim'];a318_0xa800=function(){return _0x416e20;};return a318_0xa800();}function shouldResolveUpdateNotice(_0xde9129){const _0x1f1142=a318_0x5db4;return _0xde9129[_0x1f1142(0x1d1)]==='pretty'&&!_0xde9129[_0x1f1142(0x21a)];}function attachUpdateNotice(_0x5bfb1b,_0x7488c1){const _0x5eb1b6=a318_0x5db4;if(!_0x7488c1||!_0x5bfb1b||typeof _0x5bfb1b!=='object')return _0x5bfb1b;const _0x31b507=_0x5bfb1b,_0x6b4b97=typeof _0x31b507[_0x5eb1b6(0x206)]==='object'&&_0x31b507[_0x5eb1b6(0x206)]!==null?_0x31b507[_0x5eb1b6(0x206)]:{};return{..._0x31b507,'_notice':{..._0x6b4b97,'update':_0x7488c1}};}
|
|
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 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3d5575,_0x240f2b){const _0x1e4418=a326_0x5402,_0x52ddf8=_0x3d5575();while(!![]){try{const _0x4e254c=-parseInt(_0x1e4418(0x156))/0x1*(parseInt(_0x1e4418(0x151))/0x2)+parseInt(_0x1e4418(0x158))/0x3*(parseInt(_0x1e4418(0x157))/0x4)+parseInt(_0x1e4418(0x153))/0x5+parseInt(_0x1e4418(0x14e))/0x6*(-parseInt(_0x1e4418(0x155))/0x7)+-parseInt(_0x1e4418(0x154))/0x8*(-parseInt(_0x1e4418(0x150))/0x9)+-parseInt(_0x1e4418(0x159))/0xa*(parseInt(_0x1e4418(0x15a))/0xb)+-parseInt(_0x1e4418(0x14f))/0xc;if(_0x4e254c===_0x240f2b)break;else _0x52ddf8['push'](_0x52ddf8['shift']());}catch(_0x353c4e){_0x52ddf8['push'](_0x52ddf8['shift']());}}}(a326_0x1ad5,0x54af8));import{buildSchemaPayload as a326_0xe7646b}from'@lovrabet/cli-framework';function a326_0x1ad5(){const _0x39d3e4=['2oaRKzc','../commands/registry.js','1221495miKtLU','8LJTVPC','133JwNxWn','123681OtjmfJ','244SGEtOD','32883bxPcNz','1801020JWfuhc','22flUVGp','60414MFJGgE','3470688Ehmcwv','3585348zmpKCh'];a326_0x1ad5=function(){return _0x39d3e4;};return a326_0x1ad5();}import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';function a326_0x5402(_0x2530a1,_0x802c4a){_0x2530a1=_0x2530a1-0x14e;const _0x1ad5a9=a326_0x1ad5();let _0x540260=_0x1ad5a9[_0x2530a1];return _0x540260;}export async function buildSchemaPayload(){const _0xf80781=a326_0x5402,{serviceRegistry:_0x100fe2,findDefinition:_0x25d7bc}=await import(_0xf80781(0x152));return a326_0xe7646b({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x100fe2,'buildAllFlags':buildAllFlags,'findDefinition':_0x25d7bc});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5c9910,_0x258b83){const _0x223124=a327_0x34d0,_0x430781=_0x5c9910();while(!![]){try{const _0x537989=-parseInt(_0x223124(0x17f))/0x1*(parseInt(_0x223124(0x16c))/0x2)+-parseInt(_0x223124(0x178))/0x3*(-parseInt(_0x223124(0x17d))/0x4)+parseInt(_0x223124(0x174))/0x5*(-parseInt(_0x223124(0x183))/0x6)+parseInt(_0x223124(0x171))/0x7+parseInt(_0x223124(0x173))/0x8*(-parseInt(_0x223124(0x17a))/0x9)+parseInt(_0x223124(0x175))/0xa+-parseInt(_0x223124(0x16e))/0xb;if(_0x537989===_0x258b83)break;else _0x430781['push'](_0x430781['shift']());}catch(_0x316658){_0x430781['push'](_0x430781['shift']());}}}(a327_0x510c,0x43bbe));function a327_0x510c(){const _0x2330a0=['691922nbmjgA','\x20--help`\x20to\x20view\x20the\x20current\x20command\x20contract.','service','837613IrvYtc','length','169304fHsRWy','132985xLfSiH','485180drsDri','add','isArray','975PDiCvB','replace','45cFKTEd','has','meowKey','4924lkbPJL','flags','68903HkhqvH','filter','Run\x20`','name','12xrgbZh','\x20for\x20`','version','command','toLowerCase','validation','entries','toUpperCase','alias','$1-$2','2qTVUPZ','find'];a327_0x510c=function(){return _0x2330a0;};return a327_0x510c();}import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a327_0x34d0(_0x2abeaf,_0x39001a){_0x2abeaf=_0x2abeaf-0x16a;const _0x510c8c=a327_0x510c();let _0x34d040=_0x510c8c[_0x2abeaf];return _0x34d040;}export function assertSupportedCommandFlags(_0x29f496,_0x1620b2){const _0x298a4=a327_0x34d0;if(!_0x29f496['strictFlags'])return;const _0x16ec89=new Set(['help',_0x298a4(0x185)]),_0x258714=GLOBAL_FLAGS[_0x298a4(0x180)](_0x433d16=>PIPELINE_FLAG_NAMES[_0x298a4(0x17b)](_0x433d16[_0x298a4(0x182)]));for(const _0x5b924f of[..._0x29f496[_0x298a4(0x17e)],..._0x258714]){addFlagCandidates(_0x16ec89,_0x5b924f);}for(const [_0x102340,_0x4ce3fa]of Object[_0x298a4(0x189)](_0x1620b2)){if(!isExplicitValue(_0x4ce3fa)||_0x16ec89[_0x298a4(0x17b)](_0x102340))continue;const _0xedc79b=GLOBAL_FLAGS[_0x298a4(0x16d)](_0x30b977=>_0x30b977[_0x298a4(0x17c)]===_0x102340)?.[_0x298a4(0x182)]??toKebabCase(_0x102340);throw CliErrors[_0x298a4(0x188)]('Unsupported\x20flag\x20--'+_0xedc79b+_0x298a4(0x184)+CLI_BIN_NAME+'\x20'+_0x29f496[_0x298a4(0x170)]+'\x20'+_0x29f496[_0x298a4(0x186)]+'`.',_0x298a4(0x181)+CLI_BIN_NAME+'\x20'+_0x29f496[_0x298a4(0x170)]+'\x20'+_0x29f496['command']+_0x298a4(0x16f));}}function addFlagCandidates(_0x3afbb0,_0x576f49){const _0x2ace66=a327_0x34d0,_0x4c70e4='meowKey'in _0x576f49?[_0x576f49[_0x2ace66(0x182)],_0x576f49[_0x2ace66(0x17c)]]:[_0x576f49[_0x2ace66(0x182)],_0x576f49[_0x2ace66(0x16a)]];for(const _0x21c451 of _0x4c70e4){if(!_0x21c451)continue;_0x3afbb0[_0x2ace66(0x176)](_0x21c451),_0x3afbb0[_0x2ace66(0x176)](toCamelCase(_0x21c451));}}function isExplicitValue(_0x26339d){const _0x46b12e=a327_0x34d0;return _0x26339d!==undefined&&_0x26339d!==null&&_0x26339d!==![]&&(!Array[_0x46b12e(0x177)](_0x26339d)||_0x26339d[_0x46b12e(0x172)]>0x0);}function toCamelCase(_0x30a0e0){const _0x44df01=a327_0x34d0;return _0x30a0e0[_0x44df01(0x179)](/-([a-z])/g,(_0x19f7eb,_0x4a94f4)=>_0x4a94f4[_0x44df01(0x18a)]());}function toKebabCase(_0x41b3e3){const _0xed2bc5=a327_0x34d0;return _0x41b3e3['replace'](/([a-z0-9])([A-Z])/g,_0xed2bc5(0x16b))[_0xed2bc5(0x187)]();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4cf351,_0x38b557){var _0x53cda0=a328_0x1df1,_0x1f7948=_0x4cf351();while(!![]){try{var _0x34e7dc=-parseInt(_0x53cda0(0x16d))/0x1+-parseInt(_0x53cda0(0x168))/0x2+parseInt(_0x53cda0(0x16c))/0x3*(parseInt(_0x53cda0(0x169))/0x4)+-parseInt(_0x53cda0(0x166))/0x5+parseInt(_0x53cda0(0x16b))/0x6*(-parseInt(_0x53cda0(0x16e))/0x7)+parseInt(_0x53cda0(0x167))/0x8+-parseInt(_0x53cda0(0x16f))/0x9*(-parseInt(_0x53cda0(0x16a))/0xa);if(_0x34e7dc===_0x38b557)break;else _0x1f7948['push'](_0x1f7948['shift']());}catch(_0x4255b9){_0x1f7948['push'](_0x1f7948['shift']());}}}(a328_0x3c8d,0xd3451));function a328_0x3c8d(){var _0x4c0b94=['4824050GvSBcP','5182128bfVCuS','175930LYXGZB','2371692TjOajj','160Mqesqm','72OWQcEL','3gVoAIE','144341WHLTvQ','616133SsIdzs','1056384FnTlsc'];a328_0x3c8d=function(){return _0x4c0b94;};return a328_0x3c8d();}function a328_0x1df1(_0x5e5943,_0x4ed250){_0x5e5943=_0x5e5943-0x166;var _0x3c8d17=a328_0x3c8d();var _0x1df15c=_0x3c8d17[_0x5e5943];return _0x1df15c;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.5.
|
|
2
|
-
export declare const GIT_TAG = "v2.5.
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-10-
|
|
1
|
+
export declare const VERSION = "2.5.7-beta.1";
|
|
2
|
+
export declare const GIT_TAG = "v2.5.7-beta.1";
|
|
3
|
+
export declare const GIT_COMMIT = "b0bd0f32";
|
|
4
|
+
export declare const BUILD_TIME = "2026-10-15T07:11:41.477Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a329_0xc0ca(_0x5e62cc,_0x159bd2){_0x5e62cc=_0x5e62cc-0x1e2;const _0x121794=a329_0x1217();let _0xc0ca73=_0x121794[_0x5e62cc];return _0xc0ca73;}const a329_0x3ecb20=a329_0xc0ca;function a329_0x1217(){const _0x2c259e=['36gtetbE','11196hARqYS','b0bd0f32','1670YLOkVQ','271986CFxxcV','20919ndKADu','188320EXhLyu','2768jQOKmI','11667sMfdVJ','7461OJZNMt','28lfoQGi','v2.5.7-beta.1'];a329_0x1217=function(){return _0x2c259e;};return a329_0x1217();}(function(_0x48e000,_0x3df090){const _0x3395d3=a329_0xc0ca,_0x1b99d1=_0x48e000();while(!![]){try{const _0x55dc0c=parseInt(_0x3395d3(0x1ec))/0x1+parseInt(_0x3395d3(0x1e8))/0x2+-parseInt(_0x3395d3(0x1e3))/0x3*(parseInt(_0x3395d3(0x1e7))/0x4)+parseInt(_0x3395d3(0x1ed))/0x5+-parseInt(_0x3395d3(0x1eb))/0x6+-parseInt(_0x3395d3(0x1e5))/0x7*(-parseInt(_0x3395d3(0x1e2))/0x8)+-parseInt(_0x3395d3(0x1e4))/0x9*(-parseInt(_0x3395d3(0x1ea))/0xa);if(_0x55dc0c===_0x3df090)break;else _0x1b99d1['push'](_0x1b99d1['shift']());}catch(_0xe198ed){_0x1b99d1['push'](_0x1b99d1['shift']());}}}(a329_0x1217,0x1e31c));export const VERSION='2.5.7-beta.1';export const GIT_TAG=a329_0x3ecb20(0x1e6);export const GIT_COMMIT=a329_0x3ecb20(0x1e9);export const BUILD_TIME='2026-10-15T07:11:41.477Z';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a330_0x1480c2=a330_0x553c;function a330_0x680e(){const _0x2b1e3f=['https://daily-api.lovrabet.com','https://cdnjs.cloudflare.com/ajax/libs','https://skills.lovrabet.ai','https://api.lovrabet.ai','57d346b80b12ca567af9d86dd7f8c02a0c27fe15d4944c8345add2cc6134c587','8118712olOJmS','8LUsdbY','https://daily.lovrabet.ai','https://dev.lovrabet.id','Indonesia','https://app.lovrabet.id','https://user.lovrabet.com','https://skills.lovrabet.com','indonesia','247901nWeSeh','https://user-daily.lovrabet.ai','Mainland\x20China','1136538tkSHqr','https://api.lovrabet.com','2319219ttxQND','https://user.lovrabet.ai','https://user.lovrabet.id','2544867TcMsFh','6WzgbKL','https://api.lovrabet.id','1020068QoJFoo','https://runtime.lovrabet.com','https://skills-daily.lovrabet.com','https://app.lovrabet.com','global','https://g.alicdn.com/code/lib','https://g.lovrabet.ai','https://daily.lovrabet.com','https://runtime.lovrabet.ai','29762790sNeVor','10QxOUiF','https://app.lovrabet.ai','https://daily-runtime.lovrabet.ai','https://dev.lovrabet.com','https://daily-api.lovrabet.ai','https://dev.lovrabet.ai'];a330_0x680e=function(){return _0x2b1e3f;};return a330_0x680e();}(function(_0x458073,_0x5c2fc1){const _0x826da9=a330_0x553c,_0x301c4c=_0x458073();while(!![]){try{const _0x551e5c=parseInt(_0x826da9(0x1db))/0x1*(parseInt(_0x826da9(0x1e4))/0x2)+parseInt(_0x826da9(0x1e0))/0x3+parseInt(_0x826da9(0x1e6))/0x4+parseInt(_0x826da9(0x1f0))/0x5*(parseInt(_0x826da9(0x1de))/0x6)+parseInt(_0x826da9(0x1fb))/0x7+-parseInt(_0x826da9(0x1fc))/0x8*(-parseInt(_0x826da9(0x1e3))/0x9)+-parseInt(_0x826da9(0x1ef))/0xa;if(_0x551e5c===_0x5c2fc1)break;else _0x301c4c['push'](_0x301c4c['shift']());}catch(_0x49f137){_0x301c4c['push'](_0x301c4c['shift']());}}}(a330_0x680e,0x969eb));export const ROUTING_CATALOG_DIGEST=a330_0x1480c2(0x1fa);export const DEFAULT_REGION='cn';function a330_0x553c(_0x3063da,_0x3c0553){_0x3063da=_0x3063da-0x1d5;const _0x680eef=a330_0x680e();let _0x553ca4=_0x680eef[_0x3063da];return _0x553ca4;}export const REGION_VALUES=['cn','id',a330_0x1480c2(0x1ea)];export const ENABLED_REGION_VALUES=['cn','id',a330_0x1480c2(0x1ea)];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a330_0x1480c2(0x1dd),'aliases':['china'],'serviceDomains':{'production':{'user':a330_0x1480c2(0x1d8),'api':a330_0x1480c2(0x1df),'runtime':a330_0x1480c2(0x1e7),'skill':a330_0x1480c2(0x1d9),'kb':a330_0x1480c2(0x1df),'kbService':'https://kb-service.lovrabet.com','app':a330_0x1480c2(0x1e9)},'daily':{'user':'https://user-daily.lovrabet.com','api':a330_0x1480c2(0x1f6),'runtime':'https://daily-runtime.lovrabet.com','skill':a330_0x1480c2(0x1e8),'kb':a330_0x1480c2(0x1f6),'kbService':'https://kb-service-daily.lovrabet.com','app':a330_0x1480c2(0x1ed)}},'cdn':{'libraries':a330_0x1480c2(0x1eb),'lovrabet':'https://g.lovrabet.com'},'local':{'origin':a330_0x1480c2(0x1f3)}},'id':{'enabled':!![],'label':a330_0x1480c2(0x1d6),'aliases':[a330_0x1480c2(0x1da)],'serviceDomains':{'production':{'user':a330_0x1480c2(0x1e2),'api':a330_0x1480c2(0x1e5),'runtime':'https://runtime.lovrabet.id','skill':'https://skills.lovrabet.id','kb':a330_0x1480c2(0x1e5),'kbService':'https://kb-service.lovrabet.id','app':a330_0x1480c2(0x1d7)}},'cdn':{'libraries':a330_0x1480c2(0x1f7),'lovrabet':'https://g.lovrabet.id'},'local':{'origin':a330_0x1480c2(0x1d5)}},'global':{'enabled':!![],'label':'Global','aliases':[],'serviceDomains':{'production':{'user':a330_0x1480c2(0x1e1),'api':a330_0x1480c2(0x1f9),'runtime':a330_0x1480c2(0x1ee),'skill':a330_0x1480c2(0x1f8),'kb':a330_0x1480c2(0x1f9),'app':a330_0x1480c2(0x1f1)},'daily':{'user':a330_0x1480c2(0x1dc),'api':a330_0x1480c2(0x1f4),'runtime':a330_0x1480c2(0x1f2),'skill':'https://skills-daily.lovrabet.ai','kb':a330_0x1480c2(0x1f4),'app':a330_0x1480c2(0x1fd)}},'cdn':{'libraries':a330_0x1480c2(0x1f7),'lovrabet':a330_0x1480c2(0x1ec)},'local':{'origin':a330_0x1480c2(0x1f5)}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a331_0x11e72d=a331_0x19a2;(function(_0x4ab482,_0xbe3b70){const _0x10db09=a331_0x19a2,_0x11cbe2=_0x4ab482();while(!![]){try{const _0xc95615=parseInt(_0x10db09(0xb7))/0x1+parseInt(_0x10db09(0xbc))/0x2*(parseInt(_0x10db09(0xbe))/0x3)+-parseInt(_0x10db09(0xbd))/0x4+-parseInt(_0x10db09(0xbb))/0x5*(-parseInt(_0x10db09(0xb0))/0x6)+parseInt(_0x10db09(0xb4))/0x7+parseInt(_0x10db09(0xb2))/0x8*(-parseInt(_0x10db09(0xac))/0x9)+-parseInt(_0x10db09(0xa6))/0xa*(parseInt(_0x10db09(0xad))/0xb);if(_0xc95615===_0xbe3b70)break;else _0x11cbe2['push'](_0x11cbe2['shift']());}catch(_0x1dfdf3){_0x11cbe2['push'](_0x11cbe2['shift']());}}}(a331_0x3c68,0x4f0c5));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a331_0x11e72d(0xab);export const ENTERPRISE_ROUTING_PROTOCOL=a331_0x11e72d(0xa9);export const ENTERPRISE_ROUTING_KIND=a331_0x11e72d(0xa8);function a331_0x3c68(){const _0x491ed1=['5GURckp','12ZdvcBZ','2300432HDHVst','52797bevacv','20nGgkKm','appDomain','enterprise','lovrabet-routing/v1','runtimeDomain','a03fe188b2b34518efc5668666c0001d20354882cd7dd70afec902dffe1329c3','9QGOncn','2562241AhxAMX','apiDomain','certificateDomain','1368702iqnszC','localDomain','1478008hAtAyd','kbDomain','4058614YdsAYf','kbServiceDomain','libraries','635989kSoKeJ','lovrabet','skillDomain','userDomain'];a331_0x3c68=function(){return _0x491ed1;};return a331_0x3c68();}export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a331_0x11e72d(0xba),a331_0x11e72d(0xae),a331_0x11e72d(0xaa),a331_0x11e72d(0xb9),a331_0x11e72d(0xb3),a331_0x11e72d(0xb5),a331_0x11e72d(0xa7),a331_0x11e72d(0xb1),a331_0x11e72d(0xaf)];function a331_0x19a2(_0xf37192,_0x1c6487){_0xf37192=_0xf37192-0xa6;const _0x3c6872=a331_0x3c68();let _0x19a2a8=_0x3c6872[_0xf37192];return _0x19a2a8;}export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a331_0x11e72d(0xba),a331_0x11e72d(0xae),'runtimeDomain','skillDomain',a331_0x11e72d(0xb3),'appDomain'];export const ENTERPRISE_ROUTING_CDN_FIELDS=[a331_0x11e72d(0xb6),a331_0x11e72d(0xb8)];export const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS=[a331_0x11e72d(0xb6),a331_0x11e72d(0xb8)];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x25353a,_0x11d7fd){var _0x253123=a332_0x52f8,_0x49c314=_0x25353a();while(!![]){try{var _0x44dccb=-parseInt(_0x253123(0x169))/0x1+parseInt(_0x253123(0x167))/0x2*(-parseInt(_0x253123(0x16f))/0x3)+parseInt(_0x253123(0x168))/0x4*(-parseInt(_0x253123(0x166))/0x5)+parseInt(_0x253123(0x16b))/0x6*(parseInt(_0x253123(0x16a))/0x7)+-parseInt(_0x253123(0x165))/0x8*(-parseInt(_0x253123(0x170))/0x9)+parseInt(_0x253123(0x16c))/0xa*(-parseInt(_0x253123(0x163))/0xb)+parseInt(_0x253123(0x164))/0xc*(parseInt(_0x253123(0x162))/0xd);if(_0x44dccb===_0x11d7fd)break;else _0x49c314['push'](_0x49c314['shift']());}catch(_0x5544b6){_0x49c314['push'](_0x49c314['shift']());}}}(a332_0x12e5,0xadbde));import a332_0x26ceed from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a332_0x52f8(_0x59be2e,_0x5c8522){_0x59be2e=_0x59be2e-0x162;var _0x12e560=a332_0x12e5();var _0x52f81c=_0x12e560[_0x59be2e];return _0x52f81c;}function a332_0x12e5(){var _0x21bbe3=['303074DxTLvb','1681547nYjogk','18YBJDrQ','70YWDdBE','\x20--help','green','129FbenWW','44019witGsa','log','bold','12905321YsEXXe','2006257gEAvOO','24RzARKn','2104tiKgIG','110XZFHxI','34926YfvjOw','172744wQvUyT'];a332_0x12e5=function(){return _0x21bbe3;};return a332_0x12e5();}export function showHelp(){var _0x57a08f=a332_0x52f8;console[_0x57a08f(0x171)](),console[_0x57a08f(0x171)](a332_0x26ceed[_0x57a08f(0x16e)][_0x57a08f(0x172)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x57a08f(0x171)](),console['log']('\x20\x20Use\x20'+a332_0x26ceed[_0x57a08f(0x16e)][_0x57a08f(0x172)](CLI_BIN_NAME+_0x57a08f(0x16d))+'\x20to\x20view\x20available\x20commands.'),console['log']();}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a333_0x5771(_0x3c112f,_0x1108fd){_0x3c112f=_0x3c112f-0xc7;const _0x218301=a333_0x2183();let _0x5771a3=_0x218301[_0x3c112f];return _0x5771a3;}(function(_0x277f9d,_0x3ba6f0){const _0x36be23=a333_0x5771,_0x209b82=_0x277f9d();while(!![]){try{const _0x3aaec9=-parseInt(_0x36be23(0xd3))/0x1*(-parseInt(_0x36be23(0xd5))/0x2)+parseInt(_0x36be23(0xcb))/0x3*(parseInt(_0x36be23(0xd9))/0x4)+parseInt(_0x36be23(0xc7))/0x5*(parseInt(_0x36be23(0xcc))/0x6)+parseInt(_0x36be23(0xc8))/0x7+parseInt(_0x36be23(0xcd))/0x8+parseInt(_0x36be23(0xc9))/0x9+-parseInt(_0x36be23(0xd7))/0xa;if(_0x3aaec9===_0x3ba6f0)break;else _0x209b82['push'](_0x209b82['shift']());}catch(_0x543331){_0x209b82['push'](_0x209b82['shift']());}}}(a333_0x2183,0x78308));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a333_0x2183(){const _0x1bed23=['repairCommand','log','707087oiioGD','Rabetbase\x20Built-in\x20Skill\x20','2KBsZAp','changed','19622250xRyMqP','\x20at\x20','172JmQxWh','FAILED','[BUILTIN_SKILL_INSTALL_','code','51530JCLNmS','2943934HqMWkO','6681195syfjck','installedPath','21399pJGLSy','36CBMeWP','1727696uAAUKg','already\x20current','SOURCE_INVALID','error'];a333_0x2183=function(){return _0x1bed23;};return a333_0x2183();}export async function runPostinstall(_0x71b2ee={}){const _0x2a367f=a333_0x5771,_0x5a9b49=installBuiltinSkill(_0x71b2ee);if(_0x5a9b49['ok']){const _0x492f7d=_0x5a9b49[_0x2a367f(0xd6)]?'installed':_0x2a367f(0xce),_0x163102=_0x5a9b49[_0x2a367f(0xca)]?_0x2a367f(0xd8)+_0x5a9b49[_0x2a367f(0xca)]:'\x20via\x20skills@latest';return console[_0x2a367f(0xd2)](_0x2a367f(0xd4)+_0x5a9b49['skillVersion']+'\x20'+_0x492f7d+_0x163102),_0x5a9b49;}const _0x232f2f=_0x2a367f(0xdb)+(_0x5a9b49['code']??_0x2a367f(0xda))+']\x20'+(_0x5a9b49[_0x2a367f(0xd0)]??'Installation\x20failed')+'.\x20'+('Repair\x20with:\x20'+_0x5a9b49[_0x2a367f(0xd1)]);if(_0x5a9b49[_0x2a367f(0xdc)]===_0x2a367f(0xcf))throw new Error(_0x232f2f);return console['warn'](_0x232f2f),_0x5a9b49;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a334_0x1332(){const _0xd48460=['trim','.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.','high-risk-write','slice','1222984BYAVnq','10837832xIFxOc','confirmationDescription','1464vJqXlv','write','string','1VKboAz','replace','risk','917OSAXbP','1585635XMwNzy','3062877IeotzZ','1514980PUcNVm','This\x20will\x20run\x20the\x20high-risk\x20write\x20','2165499jORXXH','.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.'];a334_0x1332=function(){return _0xd48460;};return a334_0x1332();}function a334_0x3d1b(_0x5dd14a,_0x275861){_0x5dd14a=_0x5dd14a-0x1f2;const _0x13327b=a334_0x1332();let _0x3d1b8f=_0x13327b[_0x5dd14a];return _0x3d1b8f;}(function(_0x637fd5,_0x5e168a){const _0x449937=a334_0x3d1b,_0xfc2bfa=_0x637fd5();while(!![]){try{const _0x2b5fd3=parseInt(_0x449937(0x1fe))/0x1*(-parseInt(_0x449937(0x1f8))/0x2)+parseInt(_0x449937(0x203))/0x3+-parseInt(_0x449937(0x204))/0x4+-parseInt(_0x449937(0x202))/0x5+-parseInt(_0x449937(0x1fb))/0x6*(parseInt(_0x449937(0x201))/0x7)+parseInt(_0x449937(0x1f9))/0x8+-parseInt(_0x449937(0x1f2))/0x9;if(_0x2b5fd3===_0x5e168a)break;else _0xfc2bfa['push'](_0xfc2bfa['shift']());}catch(_0x3e0dfc){_0xfc2bfa['push'](_0xfc2bfa['shift']());}}}(a334_0x1332,0xc2465));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x8fd371,_0x161bed,_0x5b1f0c){const _0x33da2c=a334_0x3d1b,_0x16e809=normalizeText(_0x8fd371[_0x33da2c(0x1fa)],DESCRIPTION_MAX_LENGTH),_0x1bb3a9=_0x16e809||normalizeText(defaultDescription(requireWriteRisk(_0x8fd371),_0x161bed),DESCRIPTION_MAX_LENGTH);return{'operation':_0x161bed,'risk':requireWriteRisk(_0x8fd371),'description':_0x1bb3a9,..._0x5b1f0c?{'signal':_0x5b1f0c}:{}};}function requireWriteRisk(_0x13907){const _0xd1dbc4=a334_0x3d1b;if(_0x13907[_0xd1dbc4(0x200)]===_0xd1dbc4(0x1fc)||_0x13907[_0xd1dbc4(0x200)]===_0xd1dbc4(0x1f6))return _0x13907['risk'];throw new Error('Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.');}function defaultDescription(_0x5c9aaf,_0x16b60b){const _0x2b9cfa=a334_0x3d1b;if(_0x5c9aaf===_0x2b9cfa(0x1f6))return _0x2b9cfa(0x205)+_0x16b60b+_0x2b9cfa(0x1f5);return'This\x20will\x20run\x20the\x20write\x20'+_0x16b60b+_0x2b9cfa(0x1f3);}function normalizeText(_0x36c380,_0x1ea04d){const _0x3533d4=a334_0x3d1b;if(typeof _0x36c380!==_0x3533d4(0x1fd))return'';return _0x36c380[_0x3533d4(0x1ff)](/[\u0000-\u001f\u007f]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0x3533d4(0x1f4)]()[_0x3533d4(0x1f7)](0x0,_0x1ea04d);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xb70171,_0x5bf54b){const _0x592610=a335_0x16c7,_0x59cd8e=_0xb70171();while(!![]){try{const _0x457895=parseInt(_0x592610(0xbe))/0x1+parseInt(_0x592610(0xce))/0x2*(-parseInt(_0x592610(0xd1))/0x3)+parseInt(_0x592610(0xc9))/0x4*(parseInt(_0x592610(0xcb))/0x5)+parseInt(_0x592610(0xc2))/0x6+parseInt(_0x592610(0xc1))/0x7*(-parseInt(_0x592610(0xc6))/0x8)+-parseInt(_0x592610(0xcd))/0x9*(-parseInt(_0x592610(0xc8))/0xa)+parseInt(_0x592610(0xc3))/0xb*(parseInt(_0x592610(0xca))/0xc);if(_0x457895===_0x5bf54b)break;else _0x59cd8e['push'](_0x59cd8e['shift']());}catch(_0x11e3a7){_0x59cd8e['push'](_0x59cd8e['shift']());}}}(a335_0x5b6d,0xd0f8e));export function canonicalRabetbaseOperation(_0x120aa2){const _0x22d4f0=a335_0x16c7;return[_0x120aa2['service'],..._0x120aa2['command'][_0x22d4f0(0xbd)]()['split'](/\s+/)][_0x22d4f0(0xcf)](Boolean)[_0x22d4f0(0xd0)]('.');}export function createRabetbaseWriteMetadata(_0x27967a,_0x342887,_0x3cf14a,_0x1a5871){const _0xeeeb99=a335_0x16c7;if(_0x1a5871||_0x3cf14a['ok']!==!![]||hasUnresolvedConflicts(_0x3cf14a)||_0x27967a[_0xeeeb99(0xc5)]!==_0xeeeb99(0xcc)&&_0x27967a[_0xeeeb99(0xc5)]!==_0xeeeb99(0xbf))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':'rabetbase.write.completed','operation':_0x342887,'risk':_0x27967a['risk']}}};}function a335_0x16c7(_0x11df2f,_0x15bc80){_0x11df2f=_0x11df2f-0xbd;const _0x5b6d73=a335_0x5b6d();let _0x16c7f1=_0x5b6d73[_0x11df2f];return _0x16c7f1;}function hasUnresolvedConflicts(_0x52795c){const _0x37aa77=a335_0x16c7,_0x89c517=_0x52795c['data'];return Boolean(_0x89c517&&typeof _0x89c517==='object'&&!Array[_0x37aa77(0xc0)](_0x89c517)&&Array[_0x37aa77(0xc0)](_0x89c517[_0x37aa77(0xc4)])&&_0x89c517[_0x37aa77(0xc4)][_0x37aa77(0xc7)]>0x0);}function a335_0x5b6d(){const _0x31b169=['join','489ZHjgoY','trim','781342CABYdA','high-risk-write','isArray','11221147LlsGOs','1923780kKhOeL','338063MnTMJZ','conflicts','risk','8IFeQpR','length','10aJqaAN','1012biygtv','588sBovBa','6975DvrTSV','write','10254546NAmRzV','20138WtcbkT','filter'];a335_0x5b6d=function(){return _0x31b169;};return a335_0x5b6d();}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3d7182,_0x5da288){const _0x952191=a336_0x340a,_0x138d85=_0x3d7182();while(!![]){try{const _0x4e4a93=-parseInt(_0x952191(0x101))/0x1+-parseInt(_0x952191(0x10d))/0x2*(-parseInt(_0x952191(0x118))/0x3)+-parseInt(_0x952191(0x115))/0x4+-parseInt(_0x952191(0x107))/0x5+parseInt(_0x952191(0x116))/0x6*(-parseInt(_0x952191(0xfc))/0x7)+-parseInt(_0x952191(0x10c))/0x8*(parseInt(_0x952191(0x11b))/0x9)+parseInt(_0x952191(0x112))/0xa;if(_0x4e4a93===_0x5da288)break;else _0x138d85['push'](_0x138d85['shift']());}catch(_0x35bcea){_0x138d85['push'](_0x138d85['shift']());}}}(a336_0x36b2,0x9cf0e));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';function a336_0x340a(_0x36afcf,_0x4acc01){_0x36afcf=_0x36afcf-0xfa;const _0x36b28f=a336_0x36b2();let _0x340a8b=_0x36b28f[_0x36afcf];return _0x340a8b;}import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x589c58,command:_0xdbc4c4,risk:_0x30aa5d,dryRun:_0x2647d2}){const _0x1eda59=a336_0x340a;return JSON[_0x1eda59(0x11d)]({'ok':_0x589c58['ok'],'command':_0xdbc4c4,'risk':_0x30aa5d,..._0x2647d2?{'dryRun':!![]}:{},..._0x589c58[_0x1eda59(0xff)]!==undefined?{'data':_0x589c58[_0x1eda59(0xff)]}:{},..._0x589c58['message']?{'message':_0x589c58[_0x1eda59(0x100)]}:{}});}};export async function invokeRabetbase(_0x3b33cc,_0xdd7f39){const _0x40d0a0=a336_0x340a;throwIfAborted(_0xdd7f39[_0x40d0a0(0xfe)]);const _0x10c4bc=await resolveRabetbaseInvocation(_0x3b33cc),_0x240d0a=canonicalRabetbaseOperation(_0x10c4bc[_0x40d0a0(0x104)]);return await confirmWriteBeforeQueue(_0x10c4bc['definition'],_0x10c4bc[_0x40d0a0(0xfd)],_0x240d0a,_0xdd7f39),runSerialized(async()=>{const _0xaf31c2=_0x40d0a0,_0xa22dbd={};try{throwIfAborted(_0xdd7f39['signal']);const _0x38cc2b=buildConfigFromFlags(_0x10c4bc[_0xaf31c2(0xfd)]);!isRoutingRecoveryService(_0x10c4bc[_0xaf31c2(0x104)]['service'])&&await initGlobalEnvironment(_0x38cc2b);const _0x542589=createPipelineEnv(_0x38cc2b,{..._0x10c4bc[_0xaf31c2(0xfd)],'yes':_0x10c4bc['definition'][_0xaf31c2(0x117)]===_0xaf31c2(0x11e)?!![]:_0x10c4bc[_0xaf31c2(0xfd)][_0xaf31c2(0x113)],'nonInteractive':!![]},_0x10c4bc[_0xaf31c2(0x106)]);_0x542589[_0xaf31c2(0x10f)]=!![],_0x542589[_0xaf31c2(0xfb)]=_0xaf31c2(0x11e);const _0x2b4872=withAbortSignal(_0x10c4bc[_0xaf31c2(0x104)],_0xdd7f39[_0xaf31c2(0xfe)]),_0x5e429c=createRabetbaseRunnerAdapter({'formatOutput'(_0x59c184,_0x310c96){const _0x5bbfa8=_0xaf31c2;_0xa22dbd[_0x5bbfa8(0x11f)]=_0x59c184,_0xa22dbd[_0x5bbfa8(0x11c)]=_0x310c96['command'],_0xa22dbd[_0x5bbfa8(0x117)]=_0x310c96[_0x5bbfa8(0x117)],_0xa22dbd[_0x5bbfa8(0xfa)]=_0x310c96[_0x5bbfa8(0xfa)],_0xa22dbd[_0x5bbfa8(0x10a)]=_0x310c96['dryRun']===!![];},async 'confirmHighRisk'(){const _0x55cc7b=_0xaf31c2;throw new Error(_0x55cc7b(0x11a));}});await runCommand(_0x2b4872,_0x542589,_0x5e429c);if(!_0xa22dbd[_0xaf31c2(0x11f)]||!_0xa22dbd[_0xaf31c2(0x11c)]||!_0xa22dbd[_0xaf31c2(0x117)]||!_0xa22dbd[_0xaf31c2(0xfa)])throw new Error(_0xaf31c2(0x114));const _0x3be661=_0xa22dbd[_0xaf31c2(0x10a)]===!![],_0x517e9f=_0xdd7f39[_0xaf31c2(0x103)]??defaultPresentation,_0x4ec663={'result':_0xa22dbd[_0xaf31c2(0x11f)],'command':_0xa22dbd[_0xaf31c2(0x11c)],'operation':_0x240d0a,'risk':_0xa22dbd[_0xaf31c2(0x117)],'format':_0xa22dbd[_0xaf31c2(0xfa)],'dryRun':_0x3be661},_0x5c8418=createRabetbaseWriteMetadata(_0x10c4bc[_0xaf31c2(0x104)],_0x240d0a,_0xa22dbd[_0xaf31c2(0x11f)],_0x3be661);let _0x31a31a;try{_0x31a31a=await _0x517e9f['present'](_0x4ec663);}catch(_0x1e0d29){if(!_0x5c8418||_0x517e9f===defaultPresentation)throw _0x1e0d29;_0x31a31a=await defaultPresentation[_0xaf31c2(0x120)](_0x4ec663);}return{'operation':_0x240d0a,'risk':_0xa22dbd[_0xaf31c2(0x117)],'mode':_0x3be661?_0xaf31c2(0x109):_0xaf31c2(0x110),'result':_0xa22dbd['result'],'output':_0x31a31a,..._0x5c8418?{'metadata':_0x5c8418}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x4e400e,_0x3661d9,_0x1541da,_0x3bff0a){const _0x49f536=a336_0x340a;if(_0x3661d9[_0x49f536(0x10a)]===!![]||_0x4e400e[_0x49f536(0x117)]!==_0x49f536(0x105)&&_0x4e400e[_0x49f536(0x117)]!==_0x49f536(0x11e))return;await _0x3bff0a[_0x49f536(0x10e)][_0x49f536(0x119)](buildRabetbaseConfirmationRequest(_0x4e400e,_0x1541da,_0x3bff0a[_0x49f536(0xfe)]));}function withAbortSignal(_0x5dff8c,_0x3ef051){return{..._0x5dff8c,async 'execute'(_0x540ff0){const _0x4024f0=a336_0x340a;return throwIfAborted(_0x3ef051),_0x5dff8c[_0x4024f0(0x110)]({..._0x540ff0,'signal':_0x3ef051});}};}function a336_0x36b2(){const _0x383aed=['3634623CkDiWJ','command','stringify','high-risk-write','result','present','format','riskLevel','541219WNRhMi','rawFlags','signal','data','message','1050005zRryIQ','Rabetbase\x20invocation\x20aborted.','presentation','definition','write','args','5332720eWdGOb','AbortError','dry-run','dryRun','aborted','8riuxBE','278SoBxxf','confirmation','isNonInteractive','execute','reason','35865640CpTObX','yes','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','1804976XUAwSI','6WwqNky','risk','2271cOnUyC','confirm','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.'];a336_0x36b2=function(){return _0x383aed;};return a336_0x36b2();}function throwIfAborted(_0x3df94f){const _0x32e520=a336_0x340a;if(_0x3df94f?.[_0x32e520(0x10b)])throw _0x3df94f[_0x32e520(0x111)]instanceof Error?_0x3df94f[_0x32e520(0x111)]:new DOMException(_0x32e520(0x102),_0x32e520(0x108));}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x37871f,_0x13c1f4){const _0x2b6443=a337_0x28e4,_0x48d468=_0x37871f();while(!![]){try{const _0x1bcc7a=parseInt(_0x2b6443(0x81))/0x1+parseInt(_0x2b6443(0x82))/0x2+-parseInt(_0x2b6443(0x87))/0x3*(-parseInt(_0x2b6443(0x84))/0x4)+-parseInt(_0x2b6443(0x80))/0x5*(-parseInt(_0x2b6443(0x85))/0x6)+-parseInt(_0x2b6443(0x83))/0x7+-parseInt(_0x2b6443(0x7f))/0x8+-parseInt(_0x2b6443(0x7e))/0x9;if(_0x1bcc7a===_0x13c1f4)break;else _0x48d468['push'](_0x48d468['shift']());}catch(_0x58598a){_0x48d468['push'](_0x48d468['shift']());}}}(a337_0x21f5,0xe16cb));let tail=Promise['resolve']();export async function runSerialized(_0x58519a){const _0x68e527=a337_0x28e4,_0x3ebd42=tail;let _0x283c00;tail=new Promise(_0x3f6920=>{_0x283c00=_0x3f6920;}),await _0x3ebd42[_0x68e527(0x86)](()=>undefined);try{return await _0x58519a();}finally{_0x283c00();}}function a337_0x28e4(_0x2e03bf,_0x492054){_0x2e03bf=_0x2e03bf-0x7e;const _0x21f5a4=a337_0x21f5();let _0x28e46e=_0x21f5a4[_0x2e03bf];return _0x28e46e;}function a337_0x21f5(){const _0x56fbd1=['2701216LGiggh','5295829cVzSBQ','31564iHETOP','1391394rNWkIb','catch','183zmwZZw','15188940DRibIw','3934944StVEJh','15zOuKst','1331758WkZJzB'];a337_0x21f5=function(){return _0x56fbd1;};return a337_0x21f5();}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4d9515,_0x27fced){const _0x59928a=a338_0x22ac,_0x488309=_0x4d9515();while(!![]){try{const _0x27daac=parseInt(_0x59928a(0x132))/0x1*(-parseInt(_0x59928a(0x137))/0x2)+parseInt(_0x59928a(0x12d))/0x3*(parseInt(_0x59928a(0x138))/0x4)+parseInt(_0x59928a(0x139))/0x5+-parseInt(_0x59928a(0x125))/0x6*(-parseInt(_0x59928a(0x12f))/0x7)+parseInt(_0x59928a(0x12b))/0x8+-parseInt(_0x59928a(0x128))/0x9+-parseInt(_0x59928a(0x13a))/0xa;if(_0x27daac===_0x27fced)break;else _0x488309['push'](_0x488309['shift']());}catch(_0x54f2e9){_0x488309['push'](_0x488309['shift']());}}}(a338_0x3615,0x49ffb));import a338_0x17b7e3 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';import{assertSupportedCommandFlags}from'../framework/supported-flags.js';function a338_0x22ac(_0x3f0045,_0x4439f4){_0x3f0045=_0x3f0045-0x125;const _0x361513=a338_0x3615();let _0x22ace3=_0x361513[_0x3f0045];return _0x22ace3;}function a338_0x3615(){const _0x2ea596=['hint','60BFGOdx','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','2544430moQOoL','wildcardDef','validation','1697CEOvie','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','message','unknownCommand','run','178WjdSlR','61212BkQQNT','495155lvAHDk','697160WAurRy','6UHlhCx','input','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','4185648jqsXve','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','slice','1762712Cacqzb'];a338_0x3615=function(){return _0x2ea596;};return a338_0x3615();}export async function resolveRabetbaseInvocation(_0x21f48e){const _0x7f34cc=a338_0x22ac,_0x445329=a338_0x17b7e3('',{'importMeta':import.meta,'argv':[..._0x21f48e],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x459784=[..._0x445329[_0x7f34cc(0x126)]],_0x580d67=_0x445329['flags'],_0x2f0569=_0x459784[0x0];if(!_0x2f0569)throw CliErrors[_0x7f34cc(0x131)](_0x7f34cc(0x129));const _0x5f3f50=resolveRemovedCommand(_0x2f0569,_0x459784[0x1]);if(_0x5f3f50)throw CliErrors[_0x7f34cc(0x131)](_0x5f3f50[_0x7f34cc(0x134)],_0x5f3f50[_0x7f34cc(0x12c)]);if(_0x2f0569===_0x7f34cc(0x136))throw CliErrors['validation'](_0x7f34cc(0x133),_0x7f34cc(0x127));if(!isKnownService(_0x2f0569))throw CliErrors['unknownCommand'](_0x459784['join']('\x20'));const _0x53ddb1=getServiceEntry(_0x2f0569),_0x34c8ff=_0x459784[0x1],_0x5891b7=_0x34c8ff||_0x53ddb1['defaultCommand'];if(!_0x5891b7){if(_0x53ddb1['wildcardDef'])return{'definition':_0x53ddb1[_0x7f34cc(0x130)],'rawFlags':_0x580d67,'args':[]};throw CliErrors['validation'](_0x7f34cc(0x12e)+_0x2f0569+'\x22.');}const _0x312c8c=findDefinition(_0x2f0569,_0x5891b7);if(_0x312c8c)return assertSupportedCommandFlags(_0x312c8c,_0x580d67),{'definition':_0x312c8c,'rawFlags':_0x580d67,'args':_0x459784['slice'](0x2)};if(_0x53ddb1[_0x7f34cc(0x130)])return{'definition':_0x53ddb1[_0x7f34cc(0x130)],'rawFlags':_0x580d67,'args':[_0x5891b7,..._0x459784[_0x7f34cc(0x12a)](0x2)]};throw CliErrors[_0x7f34cc(0x135)](_0x2f0569+'\x20'+_0x5891b7);}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type JsonObject } from "./contract.js";
|
|
2
|
+
export interface DesignCheckpoint extends JsonObject {
|
|
3
|
+
kind: "dataset-design-operation";
|
|
4
|
+
schemaVersion: 1;
|
|
5
|
+
appCode: string;
|
|
6
|
+
apiDomain: string;
|
|
7
|
+
inputHash: string;
|
|
8
|
+
clientOperationId: string;
|
|
9
|
+
identityKey: string;
|
|
10
|
+
manifest: JsonObject;
|
|
11
|
+
expectedHash: string;
|
|
12
|
+
state: string;
|
|
13
|
+
operationId?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function readCheckpoint(path: string): Promise<DesignCheckpoint | undefined>;
|
|
16
|
+
/** Hard-link publication is an atomic create-if-absent; only the winner submits. */
|
|
17
|
+
export declare function saveCheckpoint(path: string, value: DesignCheckpoint, exclusive?: boolean): Promise<boolean>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x49f5e7,_0x296cd0){const _0x33c398=a340_0x31de,_0xe5570=_0x49f5e7();while(!![]){try{const _0xdbf00e=-parseInt(_0x33c398(0x1b6))/0x1*(parseInt(_0x33c398(0x1be))/0x2)+-parseInt(_0x33c398(0x1af))/0x3+-parseInt(_0x33c398(0x1bf))/0x4*(-parseInt(_0x33c398(0x1aa))/0x5)+-parseInt(_0x33c398(0x1ac))/0x6+-parseInt(_0x33c398(0x1ab))/0x7*(parseInt(_0x33c398(0x1b1))/0x8)+-parseInt(_0x33c398(0x1ba))/0x9+-parseInt(_0x33c398(0x1b4))/0xa*(-parseInt(_0x33c398(0x1c2))/0xb);if(_0xdbf00e===_0x296cd0)break;else _0xe5570['push'](_0xe5570['shift']());}catch(_0x3802de){_0xe5570['push'](_0xe5570['shift']());}}}(a340_0x412d,0x2bb09));import{randomUUID}from'node:crypto';import{dirname}from'node:path';function a340_0x31de(_0x37bff8,_0x1720b6){_0x37bff8=_0x37bff8-0x1aa;const _0x412d66=a340_0x412d();let _0x31de1d=_0x412d66[_0x37bff8];return _0x31de1d;}import{mkdir,open,link,unlink,rename,lstat,readFile}from'node:fs/promises';import{isObject,requireValue}from'./contract.js';function a340_0x412d(){const _0x4cd306=['55643hdlyQK','653046FDkUpn','size','string','631143mACwLo','manifest','8NkzTGu','parse','close','8185330HzvOwi','Checkpoint\x20must\x20be\x20a\x20regular\x20JSON\x20file.','329978UyPCQb','kind','code','schemaVersion','1516770XppwpM','EEXIST','dataset-design-operation','isSymbolicLink','2wnbaNX','248132cXaffk','length','ENOENT','11ssbvka','isFile','sync','identityKey','15PXjhqY'];a340_0x412d=function(){return _0x4cd306;};return a340_0x412d();}export async function readCheckpoint(_0x29564f){const _0x4112f6=a340_0x31de;try{const _0x10f1bf=await lstat(_0x29564f);requireValue(_0x10f1bf[_0x4112f6(0x1c3)]()&&!_0x10f1bf[_0x4112f6(0x1bd)]()&&_0x10f1bf[_0x4112f6(0x1ad)]<=0x3d0900,_0x4112f6(0x1b5));const _0x9562ad=JSON[_0x4112f6(0x1b2)](await readFile(_0x29564f,'utf8'));return requireValue(isObject(_0x9562ad)&&_0x9562ad[_0x4112f6(0x1b7)]===_0x4112f6(0x1bc)&&_0x9562ad[_0x4112f6(0x1b9)]===0x1&&typeof _0x9562ad['clientOperationId']==='string'&&/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/['test'](_0x9562ad['clientOperationId'])&&typeof _0x9562ad['inputHash']===_0x4112f6(0x1ae)&&/^[a-f0-9]{64}$/['test'](_0x9562ad['inputHash'])&&typeof _0x9562ad['identityKey']===_0x4112f6(0x1ae)&&_0x9562ad[_0x4112f6(0x1c5)][_0x4112f6(0x1c0)]>0x0&&isObject(_0x9562ad[_0x4112f6(0x1b0)]),'Invalid\x20checkpoint;\x20reconcile\x20its\x20original\x20operation\x20before\x20submitting\x20again.'),_0x9562ad;}catch(_0x4e805a){if(_0x4e805a[_0x4112f6(0x1b8)]===_0x4112f6(0x1c1))return undefined;throw _0x4e805a;}}export async function saveCheckpoint(_0x5384cb,_0xa694fb,_0x27f2a3=![]){const _0x41c61f=a340_0x31de;await mkdir(dirname(_0x5384cb),{'recursive':!![]});const _0x4986c0=_0x5384cb+'.'+randomUUID()+'.tmp',_0x651370=await open(_0x4986c0,'wx',0x180);try{await _0x651370['writeFile'](JSON['stringify'](_0xa694fb,null,0x2)+'\x0a'),await _0x651370[_0x41c61f(0x1c4)]();}finally{await _0x651370[_0x41c61f(0x1b3)]();}try{if(_0x27f2a3)await link(_0x4986c0,_0x5384cb);else await rename(_0x4986c0,_0x5384cb);return!![];}catch(_0x191dd0){if(_0x27f2a3&&_0x191dd0[_0x41c61f(0x1b8)]===_0x41c61f(0x1bb))return![];throw _0x191dd0;}finally{await unlink(_0x4986c0)['catch'](_0x29ca75=>{const _0xa22ec9=_0x41c61f;if(_0x29ca75['code']!==_0xa22ec9(0x1c1))throw _0x29ca75;});}}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CommandDefinition } from "../../framework/types.js";
|
|
2
|
+
import { type JsonObject } from "./contract.js";
|
|
3
|
+
type Action = "context" | "validate" | "start" | "status" | "sync-status" | "sync-retry";
|
|
4
|
+
export declare function statusData(response: unknown, manifest?: JsonObject): JsonObject;
|
|
5
|
+
export declare function designCommand(action: Action): CommandDefinition;
|
|
6
|
+
export {};
|
|
@@ -0,0 +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}};}};}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type JsonObject = Record<string, any>;
|
|
2
|
+
export declare const isObject: (value: unknown) => value is JsonObject;
|
|
3
|
+
export declare function requireValue(ok: unknown, message: string): asserts ok;
|
|
4
|
+
/** Local structural checks supplement the server's authoritative validation. */
|
|
5
|
+
export declare function validateManifest(value: unknown): JsonObject;
|
|
6
|
+
export declare function readManifest(file: string): Promise<JsonObject>;
|
|
7
|
+
export declare function inputHash(value: unknown): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a342_0x242f61=a342_0x35dd;(function(_0x457ae1,_0x1ac660){const _0x1e9013=a342_0x35dd,_0x4c0ae8=_0x457ae1();while(!![]){try{const _0x40d25f=parseInt(_0x1e9013(0x1ac))/0x1*(parseInt(_0x1e9013(0x17a))/0x2)+-parseInt(_0x1e9013(0x15a))/0x3*(-parseInt(_0x1e9013(0x178))/0x4)+parseInt(_0x1e9013(0x1b8))/0x5+parseInt(_0x1e9013(0x179))/0x6+-parseInt(_0x1e9013(0x1c3))/0x7+parseInt(_0x1e9013(0x161))/0x8+-parseInt(_0x1e9013(0x165))/0x9;if(_0x40d25f===_0x1ac660)break;else _0x4c0ae8['push'](_0x4c0ae8['shift']());}catch(_0x59b38c){_0x4c0ae8['push'](_0x4c0ae8['shift']());}}}(a342_0x3314,0x5dbbb));import{createHash}from'node:crypto';import{readFile,lstat}from'node:fs/promises';import{CliErrors}from'../../errors.js';function a342_0x3314(){const _0x52f4f4=['autoIncrement','name','.options.label','189648KNjHtS','unresolvedRelations.reason','lookup','doVersion','defaultAggregation','unresolvedRelations','isArray','4561128YTesEZ','value','dbTypeLen','UPLOAD','8310681zBXcAp','dbType','fromEntries','label','datasets','keys','readonly','.toDatasetCode','\x20requires\x20exactly\x20one\x20target.','digest','disabled','INTEGER','ADDRESS','sha256','isFinite','fields','\x20must\x20be\x20a\x20string.','fromField','TINYINT','44MphqLN','1154838APTWdq','17642lSJfMV','required','ONE_TO_ONE','\x20must\x20be\x20an\x20object.','relationType','normalizedManifest','relations','localKey','\x20duplicates\x20a\x20source\x20field.','.confidence\x20is\x20invalid.','hex','test','cardinality','tableComment','size','includes','displayFormat','TEXT','stringify','BOOLEAN','sort','doType','LONGTEXT','string','\x20source\x20does\x20not\x20exist.','.localKey\x20is\x20invalid\x20or\x20duplicated.','SMALLINT','NUMERIC','MULTI_SELECT','semanticName','isSafeInteger','has','description','.cardinality\x20is\x20unsupported.','DATETIME','DECIMAL','INT','isSymbolicLink','options','schemaVersion','entries','relations[','\x20requires\x20options\x20or\x20an\x20explicit\x20relation.','Design\x20file\x20contains\x20invalid\x20JSON.','.toField','confidence','toDatasetCode','Unsupported\x20dataset\x20manifest\x20version.','fromDatasetKey','manifest','1RTGHcF','displayName','BIGINT','get','map','trim','visible','length','number','dataset-design','.dbType\x20is\x20required\x20and\x20must\x20be\x20a\x20supported\x20storage\x20type.','MANY_TO_ONE','2569455fnRPMN','toField','supportedAggregation','.dbTypeLen\x20must\x20be\x20an\x20integer\x20in\x201..65535.','\x20must\x20be\x20a\x20non-empty\x20string.','object','dataset','VARCHAR','.relationType\x20must\x20be\x20lookup.','JSON','add','4713534mPUZWX','every','SELECT','kind','DATE','some','\x20target\x20field\x20does\x20not\x20exist.','pkField','datasetName','Manifest\x20must\x20be\x20an\x20object.','.displayName','\x20must\x20be\x20a\x20boolean.','validation','.options\x20must\x20be\x20an\x20array.','.dataset','.options\x20contains\x20an\x20invalid\x20item.','Invalid\x20unresolved\x20relation.','chartRole','toDatasetKey','.options','USER'];a342_0x3314=function(){return _0x52f4f4;};return a342_0x3314();}export const isObject=_0x2b3890=>_0x2b3890!==null&&typeof _0x2b3890===a342_0x242f61(0x1bd)&&!Array[a342_0x242f61(0x160)](_0x2b3890);const types=new Set(['TEXT','NUMBER','DATETIME',a342_0x242f61(0x18d),a342_0x242f61(0x1c5),a342_0x242f61(0x196),'DATE_RANGE',a342_0x242f61(0x1d7),a342_0x242f61(0x171),a342_0x242f61(0x164)]),dbTypes=new Set([a342_0x242f61(0x1bf),'CHAR',a342_0x242f61(0x18b),a342_0x242f61(0x190),a342_0x242f61(0x177),a342_0x242f61(0x194),a342_0x242f61(0x19e),a342_0x242f61(0x170),a342_0x242f61(0x1ae),'FLOAT','DOUBLE',a342_0x242f61(0x19d),a342_0x242f61(0x195),a342_0x242f61(0x1c7),a342_0x242f61(0x19c),'TIMESTAMP',a342_0x242f61(0x18d),a342_0x242f61(0x1c1)]),identifier=/^[a-z][a-z0-9_]*$/;export function requireValue(_0x46a071,_0x335de8){const _0x3657c7=a342_0x242f61;if(!_0x46a071)throw CliErrors[_0x3657c7(0x1cf)](_0x335de8);}function keys(_0x4f00ab,_0x3e3c8a,_0x4979fa){const _0x3ed98d=a342_0x242f61;for(const _0x1745f8 of Object['keys'](_0x4f00ab))requireValue(_0x3e3c8a[_0x3ed98d(0x189)](_0x1745f8),_0x4979fa+'.'+_0x1745f8+'\x20is\x20not\x20supported.');}function a342_0x35dd(_0x2cee97,_0x4c99e9){_0x2cee97=_0x2cee97-0x158;const _0x3314be=a342_0x3314();let _0x35ddd1=_0x3314be[_0x2cee97];return _0x35ddd1;}function text(_0x49c1b8,_0x2aa7cf){const _0x9d9f95=a342_0x242f61;requireValue(typeof _0x49c1b8===_0x9d9f95(0x191)&&_0x49c1b8[_0x9d9f95(0x1b1)]()[_0x9d9f95(0x1b3)]>0x0,_0x2aa7cf+_0x9d9f95(0x1bc));}export function validateManifest(_0x5ef318){const _0x4e0829=a342_0x242f61;requireValue(isObject(_0x5ef318),_0x4e0829(0x1cc)),keys(_0x5ef318,['kind','schemaVersion',_0x4e0829(0x15d),'datasets','relations',_0x4e0829(0x15f)],_0x4e0829(0x1ab)),requireValue(_0x5ef318[_0x4e0829(0x1c6)]===_0x4e0829(0x1b5)&&_0x5ef318[_0x4e0829(0x1a1)]===0x1&&_0x5ef318[_0x4e0829(0x15d)]==='v2',_0x4e0829(0x1a9)),requireValue(Array[_0x4e0829(0x160)](_0x5ef318[_0x4e0829(0x169)])&&_0x5ef318[_0x4e0829(0x169)][_0x4e0829(0x1b3)]>=0x1&&_0x5ef318[_0x4e0829(0x169)]['length']<=0x14,'datasets\x20must\x20contain\x201..20\x20items.');const _0x2f5a6c=new Map();for(const [_0x1f0fdf,_0x3a42f7]of _0x5ef318[_0x4e0829(0x169)]['entries']()){const _0xf5e725='datasets['+_0x1f0fdf+']';requireValue(isObject(_0x3a42f7),_0xf5e725+_0x4e0829(0x17d)),keys(_0x3a42f7,[_0x4e0829(0x181),_0x4e0829(0x1be),_0x4e0829(0x174)],_0xf5e725),requireValue(typeof _0x3a42f7[_0x4e0829(0x181)]==='string'&&/^[a-z][a-z0-9_]{0,63}$/[_0x4e0829(0x185)](_0x3a42f7[_0x4e0829(0x181)])&&!_0x2f5a6c[_0x4e0829(0x199)](_0x3a42f7['localKey']),_0xf5e725+_0x4e0829(0x193)),requireValue(isObject(_0x3a42f7[_0x4e0829(0x1be)]),_0xf5e725+'.dataset\x20is\x20required.'),keys(_0x3a42f7['dataset'],[_0x4e0829(0x1cb),'tableName',_0x4e0829(0x187),'businessGroup','labelField'],_0xf5e725+_0x4e0829(0x1d1)),text(_0x3a42f7[_0x4e0829(0x1be)][_0x4e0829(0x1cb)],_0xf5e725+'.dataset.datasetName');for(const [_0x57e64a,_0x15262b]of Object['entries'](_0x3a42f7[_0x4e0829(0x1be)]))requireValue(_0x15262b==null||typeof _0x15262b===_0x4e0829(0x191),_0xf5e725+'.dataset.'+_0x57e64a+'\x20must\x20be\x20a\x20string.');requireValue(Array['isArray'](_0x3a42f7['fields'])&&_0x3a42f7[_0x4e0829(0x174)][_0x4e0829(0x1b3)]>0x0&&(_0x5ef318[_0x4e0829(0x169)]['length']===0x1||_0x3a42f7[_0x4e0829(0x174)][_0x4e0829(0x1b3)]<=0xc8),_0xf5e725+'.fields\x20is\x20empty\x20or\x20exceeds\x20the\x20batch\x20limit.');const _0x191662=new Set();_0x2f5a6c['set'](_0x3a42f7[_0x4e0829(0x181)],_0x191662);for(const [_0x28a333,_0x36ad1b]of _0x3a42f7[_0x4e0829(0x174)][_0x4e0829(0x1a2)]()){const _0x25e13c=_0xf5e725+'.fields['+_0x28a333+']';requireValue(isObject(_0x36ad1b),_0x25e13c+'\x20must\x20be\x20an\x20object.'),keys(_0x36ad1b,[_0x4e0829(0x158),_0x4e0829(0x1ad),'doType',_0x4e0829(0x166),_0x4e0829(0x163),_0x4e0829(0x19a),_0x4e0829(0x17b),_0x4e0829(0x1b2),_0x4e0829(0x16f),_0x4e0829(0x16b),_0x4e0829(0x1ca),_0x4e0829(0x1d8),_0x4e0829(0x1a0),_0x4e0829(0x197),_0x4e0829(0x1d4),_0x4e0829(0x15e),_0x4e0829(0x1ba),'isTimeDimension',_0x4e0829(0x18a)],_0x25e13c),requireValue(typeof _0x36ad1b[_0x4e0829(0x158)]===_0x4e0829(0x191)&&identifier[_0x4e0829(0x185)](_0x36ad1b[_0x4e0829(0x158)])&&!_0x191662[_0x4e0829(0x199)](_0x36ad1b['name']),_0x25e13c+'.name\x20is\x20invalid\x20or\x20duplicated.'),_0x191662[_0x4e0829(0x1c2)](_0x36ad1b[_0x4e0829(0x158)]),text(_0x36ad1b[_0x4e0829(0x1ad)],_0x25e13c+_0x4e0829(0x1cd)),requireValue(types[_0x4e0829(0x199)](_0x36ad1b['doType']),_0x25e13c+'.doType\x20is\x20unsupported.'),requireValue(dbTypes[_0x4e0829(0x199)](_0x36ad1b[_0x4e0829(0x166)]),_0x25e13c+_0x4e0829(0x1b6));for(const _0x47a365 of[_0x4e0829(0x166),_0x4e0829(0x19a),_0x4e0829(0x197),'chartRole',_0x4e0829(0x15e),_0x4e0829(0x18a)]){requireValue(_0x36ad1b[_0x47a365]==null||typeof _0x36ad1b[_0x47a365]==='string',_0x25e13c+'.'+_0x47a365+_0x4e0829(0x175));}for(const _0x23925b of['required',_0x4e0829(0x1b2),_0x4e0829(0x16f),_0x4e0829(0x16b),_0x4e0829(0x1ca),'autoIncrement','isTimeDimension']){requireValue(_0x36ad1b[_0x23925b]==null||typeof _0x36ad1b[_0x23925b]==='boolean',_0x25e13c+'.'+_0x23925b+_0x4e0829(0x1ce));}requireValue(_0x36ad1b[_0x4e0829(0x163)]==null||Number[_0x4e0829(0x198)](_0x36ad1b['dbTypeLen'])&&_0x36ad1b[_0x4e0829(0x163)]>0x0&&_0x36ad1b[_0x4e0829(0x163)]<=0xffff,_0x25e13c+_0x4e0829(0x1bb)),requireValue(_0x36ad1b[_0x4e0829(0x1ba)]==null||Array[_0x4e0829(0x160)](_0x36ad1b[_0x4e0829(0x1ba)])&&_0x36ad1b[_0x4e0829(0x1ba)][_0x4e0829(0x1c4)](_0x2ad6a9=>typeof _0x2ad6a9===_0x4e0829(0x191)),_0x25e13c+'.supportedAggregation\x20must\x20contain\x20strings.');if(_0x36ad1b[_0x4e0829(0x1a0)]!=null){requireValue(Array[_0x4e0829(0x160)](_0x36ad1b['options']),_0x25e13c+_0x4e0829(0x1d0));const _0x3e1068=new Set(),_0x29cc68=new Set();for(const _0x2c4c78 of _0x36ad1b[_0x4e0829(0x1a0)]){requireValue(isObject(_0x2c4c78),_0x25e13c+_0x4e0829(0x1d2)),keys(_0x2c4c78,['label','value'],_0x25e13c+_0x4e0829(0x1d6)),text(_0x2c4c78['label'],_0x25e13c+_0x4e0829(0x159)),requireValue(typeof _0x2c4c78[_0x4e0829(0x162)]===_0x4e0829(0x191)&&identifier[_0x4e0829(0x185)](_0x2c4c78[_0x4e0829(0x162)])&&!_0x29cc68[_0x4e0829(0x199)](_0x2c4c78[_0x4e0829(0x162)])&&!_0x3e1068[_0x4e0829(0x199)](_0x2c4c78[_0x4e0829(0x168)]),_0x25e13c+'.options\x20is\x20invalid\x20or\x20duplicated.'),_0x3e1068[_0x4e0829(0x1c2)](_0x2c4c78[_0x4e0829(0x168)]),_0x29cc68[_0x4e0829(0x1c2)](_0x2c4c78[_0x4e0829(0x162)]);}}if([_0x4e0829(0x1c5),_0x4e0829(0x196)][_0x4e0829(0x189)](_0x36ad1b[_0x4e0829(0x18f)])){const _0x5e8d5c=Array[_0x4e0829(0x160)](_0x5ef318['relations'])&&_0x5ef318[_0x4e0829(0x180)][_0x4e0829(0x1c8)](_0xc992c5=>_0xc992c5?.[_0x4e0829(0x1aa)]===_0x3a42f7[_0x4e0829(0x181)]&&_0xc992c5?.[_0x4e0829(0x176)]===_0x36ad1b['name']);requireValue(_0x5e8d5c||Array[_0x4e0829(0x160)](_0x36ad1b[_0x4e0829(0x1a0)])&&_0x36ad1b[_0x4e0829(0x1a0)][_0x4e0829(0x1b3)]>0x0,_0x25e13c+_0x4e0829(0x1a4));}}_0x191662[_0x4e0829(0x1c2)]('id');}for(const _0xd26b50 of[_0x4e0829(0x180),_0x4e0829(0x15f)])requireValue(_0x5ef318[_0xd26b50]==null||Array['isArray'](_0x5ef318[_0xd26b50])&&_0x5ef318[_0xd26b50][_0x4e0829(0x1b3)]<=0xc8,_0xd26b50+'\x20must\x20contain\x20at\x20most\x20200\x20items.');const _0x3d5283=new Set();for(const [_0x5140fe,_0x2484ab]of(_0x5ef318[_0x4e0829(0x180)]??[])[_0x4e0829(0x1a2)]()){const _0x59233c=_0x4e0829(0x1a3)+_0x5140fe+']';requireValue(isObject(_0x2484ab),_0x59233c+'\x20must\x20be\x20an\x20object.'),keys(_0x2484ab,[_0x4e0829(0x1aa),'fromField',_0x4e0829(0x1d5),_0x4e0829(0x1a8),'toField','toFieldLabel',_0x4e0829(0x17e),'cardinality','reason',_0x4e0829(0x1a7)],_0x59233c),requireValue(_0x2f5a6c['get'](_0x2484ab[_0x4e0829(0x1aa)])?.[_0x4e0829(0x199)](_0x2484ab[_0x4e0829(0x176)]),_0x59233c+_0x4e0829(0x192)),requireValue(Boolean(_0x2484ab[_0x4e0829(0x1d5)])!==Boolean(_0x2484ab[_0x4e0829(0x1a8)]),_0x59233c+_0x4e0829(0x16d));if(_0x2484ab['toDatasetKey'])requireValue(_0x2f5a6c[_0x4e0829(0x1af)](_0x2484ab[_0x4e0829(0x1d5)])?.[_0x4e0829(0x199)](_0x2484ab[_0x4e0829(0x1b9)]),_0x59233c+_0x4e0829(0x1c9));else text(_0x2484ab[_0x4e0829(0x1a8)],_0x59233c+_0x4e0829(0x16c)),text(_0x2484ab[_0x4e0829(0x1b9)],_0x59233c+_0x4e0829(0x1a6));requireValue(_0x2484ab[_0x4e0829(0x17e)]==null||_0x2484ab[_0x4e0829(0x17e)]===_0x4e0829(0x15c),_0x59233c+_0x4e0829(0x1c0)),requireValue(_0x2484ab[_0x4e0829(0x186)]==null||[_0x4e0829(0x1b7),_0x4e0829(0x17c)][_0x4e0829(0x189)](_0x2484ab[_0x4e0829(0x186)]),_0x59233c+_0x4e0829(0x19b)),text(_0x2484ab['reason'],_0x59233c+'.reason'),requireValue(_0x2484ab['confidence']==null||typeof _0x2484ab[_0x4e0829(0x1a7)]===_0x4e0829(0x1b4)&&Number[_0x4e0829(0x173)](_0x2484ab[_0x4e0829(0x1a7)])&&_0x2484ab[_0x4e0829(0x1a7)]>=0x0&&_0x2484ab[_0x4e0829(0x1a7)]<=0x1,_0x59233c+_0x4e0829(0x183));const _0x475b29=_0x2484ab[_0x4e0829(0x1aa)]+':'+_0x2484ab[_0x4e0829(0x176)];requireValue(!_0x3d5283['has'](_0x475b29),_0x59233c+_0x4e0829(0x182)),_0x3d5283['add'](_0x475b29);}for(const _0x56b0e5 of _0x5ef318[_0x4e0829(0x15f)]??[]){requireValue(isObject(_0x56b0e5),_0x4e0829(0x1d3)),text(_0x56b0e5['reason'],_0x4e0829(0x15b));}return _0x5ef318;}export async function readManifest(_0x3bffa7){const _0x2dc5c7=a342_0x242f61,_0x387fe4=await lstat(_0x3bffa7);requireValue(_0x387fe4['isFile']()&&!_0x387fe4[_0x2dc5c7(0x19f)]()&&_0x387fe4[_0x2dc5c7(0x188)]<=0x1e8480,'Design\x20file\x20must\x20be\x20a\x20regular\x20JSON\x20file\x20no\x20larger\x20than\x202\x20MB.');let _0x18968e;try{_0x18968e=JSON['parse'](await readFile(_0x3bffa7,'utf8'));}catch{throw CliErrors[_0x2dc5c7(0x1cf)](_0x2dc5c7(0x1a5));}return validateManifest(isObject(_0x18968e)&&isObject(_0x18968e['normalizedManifest'])?_0x18968e[_0x2dc5c7(0x17f)]:_0x18968e);}export function inputHash(_0x1fac29){const _0xe21caf=a342_0x242f61,_0x2d596b=_0x537d64=>Array[_0xe21caf(0x160)](_0x537d64)?_0x537d64[_0xe21caf(0x1b0)](_0x2d596b):isObject(_0x537d64)?Object[_0xe21caf(0x167)](Object[_0xe21caf(0x16a)](_0x537d64)[_0xe21caf(0x18e)]()[_0xe21caf(0x1b0)](_0x5ba19b=>[_0x5ba19b,_0x2d596b(_0x537d64[_0x5ba19b])])):_0x537d64;return createHash(_0xe21caf(0x172))['update'](JSON[_0xe21caf(0x18c)](_0x2d596b(_0x1fac29)))[_0xe21caf(0x16e)](_0xe21caf(0x184));}
|