@lovrabet/rabetbase-cli 2.5.10-beta.4 → 2.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/design-context.js +1 -1
- package/lib/commands/dataset/design-start.js +1 -1
- package/lib/commands/dataset/design-status.js +1 -1
- package/lib/commands/dataset/design-sync-retry.js +1 -1
- package/lib/commands/dataset/design-sync-status.js +1 -1
- package/lib/commands/dataset/design-validate.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/cross-db-analysis-shared.js +1 -1
- package/lib/commands/db/cross-db-analyze-latest.js +1 -1
- package/lib/commands/db/cross-db-analyze-start.js +1 -1
- package/lib/commands/db/cross-db-analyze-status.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/page-list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/context.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-analysis.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/instant-api-policy/endpoints.js +1 -1
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-design/checkpoint.js +1 -1
- package/lib/services/dataset-design/commands.js +1 -1
- package/lib/services/dataset-design/contract.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +4 -4
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2f8eef,_0x52169a){var _0x2de786=a323_0x27ca,_0x20ddc6=_0x2f8eef();while(!![]){try{var _0x177eb5=-parseInt(_0x2de786(0x1d5))/0x1+parseInt(_0x2de786(0x1d2))/0x2*(parseInt(_0x2de786(0x1da))/0x3)+parseInt(_0x2de786(0x1db))/0x4*(-parseInt(_0x2de786(0x1d8))/0x5)+parseInt(_0x2de786(0x1d3))/0x6*(parseInt(_0x2de786(0x1d4))/0x7)+-parseInt(_0x2de786(0x1d7))/0x8*(parseInt(_0x2de786(0x1dc))/0x9)+parseInt(_0x2de786(0x1dd))/0xa*(parseInt(_0x2de786(0x1de))/0xb)+-parseInt(_0x2de786(0x1d6))/0xc*(-parseInt(_0x2de786(0x1d9))/0xd);if(_0x177eb5===_0x52169a)break;else _0x20ddc6['push'](_0x20ddc6['shift']());}catch(_0x52b7bb){_0x20ddc6['push'](_0x20ddc6['shift']());}}}(a323_0x3a5f,0xec56d));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a323_0x27ca(_0x3c015c,_0x88d86){_0x3c015c=_0x3c015c-0x1d2;var _0x3a5fc1=a323_0x3a5f();var _0x27cafc=_0x3a5fc1[_0x3c015c];return _0x27cafc;}export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a323_0x3a5f(){var _0x219f2b=['350rgsSWt','282535FQKXtX','13666uQBWWB','139638YVBBwc','161XMkXnT','489705JvKpgO','2868dltcMn','8ZAKbmN','10UWwgPH','65767FHOZwW','510oHtJLz','909124kSGaSl','17033877oTTaCC'];a323_0x3a5f=function(){return _0x219f2b;};return a323_0x3a5f();}export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4e78e7,_0x425780){const _0x39adfe=a324_0x3a9b,_0x5def98=_0x4e78e7();while(!![]){try{const _0x5dbd2f=parseInt(_0x39adfe(0x75))/0x1*(-parseInt(_0x39adfe(0x86))/0x2)+-parseInt(_0x39adfe(0x89))/0x3*(parseInt(_0x39adfe(0x8c))/0x4)+parseInt(_0x39adfe(0x72))/0x5+parseInt(_0x39adfe(0x74))/0x6*(parseInt(_0x39adfe(0x71))/0x7)+-parseInt(_0x39adfe(0x8b))/0x8*(-parseInt(_0x39adfe(0x7b))/0x9)+parseInt(_0x39adfe(0x7e))/0xa*(parseInt(_0x39adfe(0x87))/0xb)+parseInt(_0x39adfe(0x78))/0xc*(parseInt(_0x39adfe(0x81))/0xd);if(_0x5dbd2f===_0x425780)break;else _0x5def98['push'](_0x5def98['shift']());}catch(_0xc67bb8){_0x5def98['push'](_0x5def98['shift']());}}}(a324_0x1ef6,0x63015));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x3e25c9,_0x5dd066){const _0x4b262e=a324_0x3a9b,_0x515e3e=_0x3e25c9[_0x4b262e(0x8d)],{_notice:_0x5c17fc,..._0x7dd0a}=_0x3e25c9;void _0x5c17fc,baseFormatOutput(_0x7dd0a,_0x5dd066),_0x5dd066['format']===_0x4b262e(0x80)&&printPrettyNotice(_0x515e3e);}function a324_0x1ef6(){const _0x2c5997=['jqFilter','238189GEsbnL','570420yxJnfM','code','36YwcEtA','168211YmtPNC','message','format','372ardsAC','endsWith','hint','14526sKVqOR','json','write','2757020RiapFJ','error','pretty','78065YURuug','update','data','validation','stringify','4Spntzh','11jimoup','jq:\x20','146967rsKPMi','url','3696hnrRlV','64XlPWMJ','_notice','command'];a324_0x1ef6=function(){return _0x2c5997;};return a324_0x1ef6();}export function formatCliError(_0x2bd603,_0x20e015){const _0x584257=a324_0x3a9b;if(_0x20e015[_0x584257(0x77)]===_0x584257(0x80))return![];const _0x8b01f4=_0x2bd603[_0x584257(0x83)],_0x13fc91={'ok':![],'command':_0x20e015[_0x584257(0x8e)],'risk':_0x20e015['risk'],'data':_0x8b01f4??null,'error':{'code':_0x2bd603[_0x584257(0x73)],'message':_0x2bd603['message'],..._0x2bd603['hint']?{'hint':_0x2bd603[_0x584257(0x7a)]}:{}}},_0x32f83a=_0x20e015['format']===_0x584257(0x7c)?JSON[_0x584257(0x85)](_0x13fc91,null,0x2):JSON[_0x584257(0x85)](_0x13fc91);let _0xe7d146=_0x32f83a;if(_0x20e015[_0x584257(0x70)]?.['trim']())try{_0xe7d146=applyJqFilter(_0x32f83a,_0x20e015[_0x584257(0x70)]);}catch(_0x3d2291){const _0x3fd15c=_0x3d2291 instanceof CliError?_0x3d2291:CliErrors[_0x584257(0x84)](_0x584257(0x88)+(_0x3d2291 instanceof Error?_0x3d2291[_0x584257(0x76)]:String(_0x3d2291))),_0x529228={..._0x13fc91,'error':{'code':_0x3fd15c[_0x584257(0x73)],'message':_0x3fd15c[_0x584257(0x76)],..._0x3fd15c[_0x584257(0x7a)]?{'hint':_0x3fd15c['hint']}:{},'cause':_0x13fc91[_0x584257(0x7f)]}};_0xe7d146=_0x20e015['format']==='json'?JSON[_0x584257(0x85)](_0x529228,null,0x2):JSON[_0x584257(0x85)](_0x529228);}return process['stdout'][_0x584257(0x7d)](_0xe7d146[_0x584257(0x79)]('\x0a')?_0xe7d146:_0xe7d146+'\x0a'),!![];}function a324_0x3a9b(_0x47f0bd,_0x1a6c37){_0x47f0bd=_0x47f0bd-0x70;const _0x1ef6ee=a324_0x1ef6();let _0x3a9b0e=_0x1ef6ee[_0x47f0bd];return _0x3a9b0e;}function printPrettyNotice(_0x552fe1){const _0x372843=a324_0x3a9b;if(!_0x552fe1?.[_0x372843(0x82)])return;console[_0x372843(0x7f)](_0x552fe1[_0x372843(0x82)][_0x372843(0x76)]+'\x20('+_0x552fe1[_0x372843(0x82)][_0x372843(0x8a)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a325_0x5f20(){var _0x16dd96=['369855zRpLrr','6383cLUIKY','418640HWDlgq','1020710qivbuE','516659djEStb','27GrpONW','30GPYrGZ','2035564IQQokU','40lMBemR','3ktUFTz','2900366BTOAuf'];a325_0x5f20=function(){return _0x16dd96;};return a325_0x5f20();}function a325_0x3967(_0x3dded8,_0x2256ba){_0x3dded8=_0x3dded8-0x1c4;var _0x5f20d8=a325_0x5f20();var _0x39674a=_0x5f20d8[_0x3dded8];return _0x39674a;}(function(_0x74e2b3,_0x1a345f){var _0x5ee127=a325_0x3967,_0xc22814=_0x74e2b3();while(!![]){try{var _0x44e02c=parseInt(_0x5ee127(0x1c5))/0x1+parseInt(_0x5ee127(0x1c7))/0x2+parseInt(_0x5ee127(0x1cd))/0x3*(parseInt(_0x5ee127(0x1cb))/0x4)+parseInt(_0x5ee127(0x1c4))/0x5*(-parseInt(_0x5ee127(0x1ca))/0x6)+-parseInt(_0x5ee127(0x1ce))/0x7+parseInt(_0x5ee127(0x1c6))/0x8*(-parseInt(_0x5ee127(0x1c9))/0x9)+-parseInt(_0x5ee127(0x1cc))/0xa*(-parseInt(_0x5ee127(0x1c8))/0xb);if(_0x44e02c===_0x1a345f)break;else _0xc22814['push'](_0xc22814['shift']());}catch(_0x4562b7){_0xc22814['push'](_0xc22814['shift']());}}}(a325_0x5f20,0x427c2));export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3b5b0d,_0x54514b){const _0x3e258b=a326_0x526b,_0x1bb36c=_0x3b5b0d();while(!![]){try{const _0x55b988=parseInt(_0x3e258b(0x121))/0x1+parseInt(_0x3e258b(0x12a))/0x2*(parseInt(_0x3e258b(0x11d))/0x3)+-parseInt(_0x3e258b(0x129))/0x4+-parseInt(_0x3e258b(0x11c))/0x5+parseInt(_0x3e258b(0x118))/0x6+parseInt(_0x3e258b(0x128))/0x7+-parseInt(_0x3e258b(0x125))/0x8;if(_0x55b988===_0x54514b)break;else _0x1bb36c['push'](_0x1bb36c['shift']());}catch(_0xeb72ff){_0x1bb36c['push'](_0x1bb36c['shift']());}}}(a326_0x3707,0x9dd8b));function a326_0x526b(_0x3ed3af,_0x313fb9){_0x3ed3af=_0x3ed3af-0x113;const _0x370711=a326_0x3707();let _0x526b74=_0x370711[_0x3ed3af];return _0x526b74;}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{resolveApiModelSource}from'../api/model-source.js';function a326_0x3707(){const _0x13f249=['`\x20requires\x20either\x20--code\x20or\x20--alias.','\x20api\x20pull`\x20first.','4220468JFYIUT','3732460oafBOM','30120XMUbse','some','No\x20model\x20aliases\x20found\x20in\x20','map','profileName','flags','filePath','3186054peNQJg','\x22.\x20','name','Unknown\x20alias\x20\x22','2430425hmTeYa','165oWAaJV','code','join','alias','1172472owWJzI','type','validation','Available\x20aliases:\x20','8551728JkbQWm'];a326_0x3707=function(){return _0x13f249;};return a326_0x3707();}export function resolveAliasToCode(_0x2a0eff,_0x2bf476,_0x581c8b,_0x48aaa5,_0x23e872,_0x5cf3b3){const _0x402007=a326_0x526b,_0x1c2f80=_0x2a0eff['flags'][_0x402007(0x12b)](_0x4c41c4=>_0x4c41c4[_0x402007(0x11a)]===_0x402007(0x11e)&&_0x4c41c4['type']==='string'),_0x267195=_0x2a0eff[_0x402007(0x116)][_0x402007(0x12b)](_0x56f7d2=>_0x56f7d2[_0x402007(0x11a)]==='alias'&&_0x56f7d2[_0x402007(0x122)]==='string');if(!_0x1c2f80||!_0x267195)return;const _0x5d8def=_0x2bf476[_0x402007(0x11e)]?String(_0x2bf476['code']):'',_0x3098ae=_0x2bf476[_0x402007(0x120)]?String(_0x2bf476[_0x402007(0x120)]):'';if(!_0x5d8def&&!_0x3098ae)throw CliErrors[_0x402007(0x123)]('`'+_0x48aaa5+_0x402007(0x126));if(_0x3098ae&&!_0x5d8def){const _0x548879=resolveApiModelSource(_0x581c8b,_0x23e872,_0x5cf3b3),_0x26a8e6=resolveAlias(_0x581c8b,_0x3098ae,undefined,_0x548879[_0x402007(0x117)],_0x548879[_0x402007(0x115)]);if(!_0x26a8e6){const _0x26d6ce=listAliases(_0x581c8b,undefined,_0x548879[_0x402007(0x117)],_0x548879[_0x402007(0x115)])[_0x402007(0x114)](_0x1d901d=>_0x1d901d['alias']),_0x208ce1=_0x26d6ce['length']?_0x402007(0x124)+_0x26d6ce[_0x402007(0x11f)](',\x20'):_0x402007(0x113)+_0x581c8b+'.\x20Run\x20`'+CLI_BIN_NAME+_0x402007(0x127);throw CliErrors[_0x402007(0x123)](_0x402007(0x11b)+_0x3098ae+_0x402007(0x119)+_0x208ce1);}_0x2bf476['code']=_0x26a8e6;}}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x4dbe54,_0x2c0d99){const _0x1543ca=a327_0x4b86,_0x276003=_0x4dbe54();while(!![]){try{const _0x6699aa=-parseInt(_0x1543ca(0x1fa))/0x1*(-parseInt(_0x1543ca(0x1dd))/0x2)+-parseInt(_0x1543ca(0x229))/0x3+-parseInt(_0x1543ca(0x21d))/0x4+-parseInt(_0x1543ca(0x1cf))/0x5+parseInt(_0x1543ca(0x206))/0x6*(parseInt(_0x1543ca(0x1f9))/0x7)+parseInt(_0x1543ca(0x1f1))/0x8+-parseInt(_0x1543ca(0x1dc))/0x9*(parseInt(_0x1543ca(0x211))/0xa);if(_0x6699aa===_0x2c0d99)break;else _0x276003['push'](_0x276003['shift']());}catch(_0x2ea5f6){_0x276003['push'](_0x276003['shift']());}}}(a327_0x128d,0x6a9fb));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';function a327_0x128d(){const _0x225299=['Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','App\x20\x22','appCode','pageSize','defaultPageSize','required','10JDNDRN','LOVRABET_APPCODE','cookie','apps','doctor','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','keys','resolveAppCode','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','resolve','Available:\x20','AppCode\x20\x22','542288HiNVow','trim','currentApp','../constant/domain.js','pretty','validation','execute','risk','meowKey','confirmHighRisk','verbose','explicitAppName','451899NjDNwT','entries','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','configMissing','rejectedFlags','includes','742550AbyqNV','authRequired','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','cancelled','name','_notice','object','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','replace','Current\x20resolved\x20appcode\x20is\x20\x22','message','apiDir','appcode','4719564VTUUQY','1197706FYDbbz','string','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','join','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','defaultVerbose','Edit\x20the\x20config\x20file\x20manually','some','find','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','selectedAppName','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','schema','rawFlags','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','isNonInteractive','map','hasFormat','788496Mvkqtk','length','update','⚠\x20\x20High-risk\x20operation:\x20','defaultApp','requiresAppCode','../constant/env.js','formatOutput','1629663OfcilU','1EbihgG','none','value','\x0a\x20\x20','hint','has','riskLevel','toUpperCase','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','service','mergedCli','format','18wJDEbo','RABETBASE_APPCODE','resolveApiDomain','catch'];a327_0x128d=function(){return _0x225299;};return a327_0x128d();}import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a327_0x5ef9d0}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x32fbce){const _0x29f3d3=a327_0x4b86;return typeof _0x32fbce===_0x29f3d3(0x1de)&&_0x32fbce[_0x29f3d3(0x21e)]()?_0x32fbce[_0x29f3d3(0x21e)]():undefined;}function resolveEnvAppCode(){const _0x17971c=a327_0x4b86,_0x4ced9c=stringFlag(process.env.RABETBASE_APPCODE);if(_0x4ced9c)return{'name':_0x17971c(0x207),'value':_0x4ced9c};const _0x5237c4=stringFlag(process.env.LOVRABET_APPCODE);if(_0x5237c4)return{'name':_0x17971c(0x212),'value':_0x5237c4};return undefined;}function hasExplicitAppCode(_0xe0e931,_0x3c786c){const _0x52e5a5=a327_0x4b86;return!!(stringFlag(_0xe0e931[_0x52e5a5(0x1db)])||stringFlag(_0x3c786c[_0x52e5a5(0x1db)]));}function assertEnvAppCodeNotIgnored(_0x246295,_0x2aea4b,_0xb26cfe){const _0x39c4e3=a327_0x4b86;if(!_0x2aea4b||_0xb26cfe||_0x246295===_0x2aea4b[_0x39c4e3(0x1fc)])return;const _0x8ca89c=_0x246295?_0x39c4e3(0x1d8)+_0x246295+'\x22.':_0x39c4e3(0x202);throw CliErrors[_0x39c4e3(0x222)](_0x2aea4b[_0x39c4e3(0x1d3)]+'='+_0x2aea4b[_0x39c4e3(0x1fc)]+_0x39c4e3(0x1d6)+_0x8ca89c+'\x20'+(_0x39c4e3(0x1ed)+_0x2aea4b[_0x39c4e3(0x1d3)]+'\x22.'));}export function createPipelineEnv(_0x2e1cc1,_0x1c41c8,_0x590879=[]){const _0x27dbc4=a327_0x4b86;return{'rawFlags':_0x1c41c8,'args':_0x590879,'resolveAppCode':()=>_0x2e1cc1[_0x27dbc4(0x20d)],'resolveCookie':()=>_0x2e1cc1[_0x27dbc4(0x213)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a327_0x5ef9d0(_0x1c41c8),'defaultFormat':_0x2e1cc1['format'],'defaultPageSize':_0x2e1cc1[_0x27dbc4(0x20e)],'defaultVerbose':_0x2e1cc1[_0x27dbc4(0x227)],'apiDir':_0x2e1cc1[_0x27dbc4(0x1da)],'riskLevel':_0x2e1cc1[_0x27dbc4(0x200)],'selectedAppName':_0x2e1cc1[_0x27dbc4(0x228)],'mergedCli':{'defaultApp':_0x2e1cc1[_0x27dbc4(0x1f5)],'currentApp':_0x2e1cc1[_0x27dbc4(0x21f)],'appCode':_0x2e1cc1['appCode'],'apps':_0x2e1cc1['apps']}};}export function createRabetbaseRunnerAdapter(_0x545d14={}){const _0x193a1e=a327_0x4b86;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x32a83d=>PIPELINE_FLAG_NAMES[_0x193a1e(0x1ff)](_0x32a83d[_0x193a1e(0x1d3)]))['map'](({name:_0x2da48e,type:_0x1bcd93,description:_0x4fea85})=>({'name':_0x2da48e,'type':_0x1bcd93,'description':_0x4fea85})),'formatOutput':_0x545d14[_0x193a1e(0x1f8)]??formatOutput,'getCommandLabel'(_0x21e22e){const _0x2a6436=_0x193a1e;return CLI_BIN_NAME+'\x20'+_0x21e22e[_0x2a6436(0x203)]+'\x20'+_0x21e22e['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x283a1f,{def:_0x3e5dab}){const _0x55bd50=_0x193a1e,_0x43f86d=_0x283a1f[_0x55bd50(0x22e)](_0x55bd50(0x1e3))?_0x55bd50(0x20b):_0x55bd50(0x1e9)+_0x3e5dab[_0x55bd50(0x224)]+_0x55bd50(0x1e8)+_0x55bd50(0x20b);return CliErrors[_0x55bd50(0x222)](_0x283a1f+_0x55bd50(0x1fd)+_0x43f86d);}},async 'prepare'(_0xecb258,_0x2e76fe,_0x264d82,_0x339a48){const _0x42858f=_0x193a1e,_0x54fc9b=_0x2e76fe['apiDir']||DEFAULT_API_DIR,_0x3a5029=hasExplicitAppCode(_0x264d82,_0x2e76fe[_0x42858f(0x1ec)]),_0x46f458=stringFlag(_0x264d82['appcode'])||stringFlag(_0x2e76fe[_0x42858f(0x1ec)]['appcode']),_0x29712d=_0x2e76fe[_0x42858f(0x204)]?.[_0x42858f(0x214)]??{},_0xd9f3a1=_0x2e76fe[_0x42858f(0x1e7)]||_0x2e76fe['mergedCli']?.[_0x42858f(0x21f)]||_0x2e76fe[_0x42858f(0x204)]?.['defaultApp'],_0x176be4=_0x46f458?Object[_0x42858f(0x22a)](_0x29712d)['filter'](([,_0x2a844f])=>_0x2a844f[_0x42858f(0x1db)]===_0x46f458)[_0x42858f(0x1ef)](([_0x2c8adb])=>_0x2c8adb):[];if(_0x176be4[_0x42858f(0x1f2)]>0x1&&!_0x2e76fe[_0x42858f(0x1e7)])throw CliErrors[_0x42858f(0x222)](_0x42858f(0x21c)+_0x46f458+'\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20'+_0x176be4[_0x42858f(0x1e0)](',\x20')+'.',_0x42858f(0x219));resolveAliasToCode(_0xecb258,_0x264d82,_0x54fc9b,_0x339a48,_0x2e76fe[_0x42858f(0x218)](),_0xd9f3a1);const _0x35bd2a=resolveCommandAuthMode(_0xecb258);let _0x3fedc6='';if(_0x35bd2a!==_0x42858f(0x1fb)){_0x3fedc6=_0x2e76fe['resolveCookie']()||'';if(!_0x3fedc6){if(_0x35bd2a===_0x42858f(0x210))throw CliErrors[_0x42858f(0x1d0)]();}else{const {setActiveCookie:_0x48c434}=await import('../core/api-client.js');_0x48c434(_0x3fedc6);}}const _0x551667=_0x2e76fe[_0x42858f(0x218)]()??'';if(_0xecb258[_0x42858f(0x1f6)]!==![]){if(!_0x3a5029&&_0xd9f3a1&&!_0x29712d[_0xd9f3a1]){const _0x1fa0a2=Object[_0x42858f(0x217)](_0x29712d);throw CliErrors[_0x42858f(0x222)](_0x42858f(0x20c)+_0xd9f3a1+_0x42858f(0x1ea),_0x1fa0a2['length']>0x0?_0x42858f(0x21b)+_0x1fa0a2[_0x42858f(0x1e0)](',\x20')+_0x42858f(0x1df)+CLI_BIN_NAME+'\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.':_0x42858f(0x20a)+CLI_BIN_NAME+_0x42858f(0x1e1));}assertEnvAppCodeNotIgnored(_0x551667,resolveEnvAppCode(),_0x3a5029);if(!_0x551667){const _0x1e6dc1=Object[_0x42858f(0x217)](_0x29712d);if(!_0xd9f3a1&&_0x1e6dc1[_0x42858f(0x1f2)]>0x1)throw CliErrors[_0x42858f(0x22c)](_0x42858f(0x1d1)+CLI_BIN_NAME+_0x42858f(0x22b)+_0x1e6dc1[_0x42858f(0x1e0)](',\x20')+'.');throw CliErrors[_0x42858f(0x22c)]('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+_0x42858f(0x216));}}return{'defaults':{'booleans':{'verbose':_0x2e76fe[_0x42858f(0x1e2)]},'numbers':{'pagesize':_0x2e76fe[_0x42858f(0x20f)]}},'extras':{'appCode':_0x551667,'cookie':_0x3fedc6,'apiDomain':_0x2e76fe[_0x42858f(0x208)](),'apiDir':_0x54fc9b,'selectedAppName':_0x2e76fe['selectedAppName'],'mergedCli':_0x2e76fe[_0x42858f(0x204)]}};},'confirmHighRisk':_0x545d14[_0x193a1e(0x226)]??(async({env:_0x281cb5,commandLabel:_0x5657e7})=>{const _0xb7621a=_0x193a1e;if(_0x281cb5[_0xb7621a(0x1ee)])throw CliErrors['validation']('High-risk\x20operation\x20`'+_0x5657e7+_0xb7621a(0x1e6));await requireConfirmationPrompt({'lines':[_0xb7621a(0x1f4)+_0x5657e7,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x4ca238=>CliErrors[_0xb7621a(0x1d2)](_0x4ca238)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const {clearActiveCookie:_0x3901f9}=await import('../core/api-client.js');_0x3901f9();}export async function finalizeRabetbaseRuntimeState(){const _0x4adecb=a327_0x4b86;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x497a2f},{initEnv:_0x3cdd49}]=await Promise['all']([import(_0x4adecb(0x220)),import(_0x4adecb(0x1f7))]);_0x497a2f(),_0x3cdd49('production');}}export async function runCommand(_0xf89af6,_0x581887,_0x3e4e89=terminalRunnerAdapter){const _0x2bf777=a327_0x4b86;assertRejectedFlags(_0xf89af6,_0x581887[_0x2bf777(0x1ec)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0xf89af6)?withUpdateNotice(_0xf89af6):_0xf89af6,_0x581887,_0x3e4e89);}function assertRejectedFlags(_0x5f50d5,_0x10dbc0){const _0x156901=a327_0x4b86;for(const _0x422aa4 of _0x5f50d5[_0x156901(0x22d)]??[]){const _0x4d4a4f=GLOBAL_FLAGS[_0x156901(0x1e5)](_0x5b561f=>_0x5b561f[_0x156901(0x1d3)]===_0x422aa4[_0x156901(0x1d3)]),_0x524836=new Set([_0x422aa4[_0x156901(0x1d3)],toCamelCase(_0x422aa4[_0x156901(0x1d3)]),_0x4d4a4f?.[_0x156901(0x225)]]),_0x28564c=[..._0x524836][_0x156901(0x1e4)](_0x27eee4=>{if(!_0x27eee4)return![];const _0x2a1cf7=_0x10dbc0[_0x27eee4];return _0x2a1cf7!==undefined&&_0x2a1cf7!==null&&_0x2a1cf7!==![];});if(_0x28564c)throw CliErrors[_0x156901(0x222)](_0x422aa4[_0x156901(0x1d9)],_0x422aa4[_0x156901(0x1fe)]);}}function a327_0x4b86(_0x1a43b2,_0x5e499e){_0x1a43b2=_0x1a43b2-0x1cf;const _0x128dbd=a327_0x128d();let _0x4b8640=_0x128dbd[_0x1a43b2];return _0x4b8640;}function toCamelCase(_0x43ca7d){const _0x3e4569=a327_0x4b86;return _0x43ca7d[_0x3e4569(0x1d7)](/-([a-z])/g,(_0x17967c,_0x57cc10)=>_0x57cc10[_0x3e4569(0x201)]());}function shouldAttachUpdateNotice(_0x396d0f){const _0x300d4c=a327_0x4b86;if(_0x396d0f[_0x300d4c(0x1f0)]===![])return![];return![_0x300d4c(0x1f3),_0x300d4c(0x1eb),_0x300d4c(0x215)][_0x300d4c(0x22e)](_0x396d0f[_0x300d4c(0x203)]);}function withUpdateNotice(_0x11a98e){return{..._0x11a98e,async 'execute'(_0x50a683){const _0x1e3252=a327_0x4b86,_0x4a82f8=shouldResolveUpdateNotice(_0x50a683)?resolveLatestUpdateNotice()[_0x1e3252(0x209)](()=>null):Promise[_0x1e3252(0x21a)](null),_0x52d447=await _0x11a98e[_0x1e3252(0x223)](_0x50a683);return attachUpdateNotice(_0x52d447,await _0x4a82f8);}};}function shouldResolveUpdateNotice(_0x4a7c97){const _0x4ae25e=a327_0x4b86;return _0x4a7c97[_0x4ae25e(0x205)]===_0x4ae25e(0x221)&&!_0x4a7c97['nonInteractive'];}function attachUpdateNotice(_0x14b8bb,_0x2b33f6){const _0x3baa66=a327_0x4b86;if(!_0x2b33f6||!_0x14b8bb||typeof _0x14b8bb!==_0x3baa66(0x1d5))return _0x14b8bb;const _0x602bae=_0x14b8bb,_0x5abd7e=typeof _0x602bae[_0x3baa66(0x1d4)]===_0x3baa66(0x1d5)&&_0x602bae[_0x3baa66(0x1d4)]!==null?_0x602bae[_0x3baa66(0x1d4)]:{};return{..._0x602bae,'_notice':{..._0x5abd7e,'update':_0x2b33f6}};}
|
|
1
|
+
(function(_0x4eac98,_0x126d28){const _0x142d91=a327_0x41db,_0xac4736=_0x4eac98();while(!![]){try{const _0xec31cb=-parseInt(_0x142d91(0x1a7))/0x1+-parseInt(_0x142d91(0x1ac))/0x2*(-parseInt(_0x142d91(0x1e2))/0x3)+-parseInt(_0x142d91(0x1dd))/0x4+parseInt(_0x142d91(0x1ad))/0x5*(parseInt(_0x142d91(0x1ca))/0x6)+parseInt(_0x142d91(0x1d5))/0x7+parseInt(_0x142d91(0x1c8))/0x8*(parseInt(_0x142d91(0x1f2))/0x9)+-parseInt(_0x142d91(0x1fe))/0xa;if(_0xec31cb===_0x126d28)break;else _0xac4736['push'](_0xac4736['shift']());}catch(_0x1e27ca){_0xac4736['push'](_0xac4736['shift']());}}}(a327_0x1440,0x22e64));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a327_0x44eed9}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x34d9f0){const _0x29820e=a327_0x41db;return typeof _0x34d9f0===_0x29820e(0x1b4)&&_0x34d9f0[_0x29820e(0x1ae)]()?_0x34d9f0[_0x29820e(0x1ae)]():undefined;}function resolveEnvAppCode(){const _0x93bf94=a327_0x41db,_0x539f0a=stringFlag(process.env.RABETBASE_APPCODE);if(_0x539f0a)return{'name':_0x93bf94(0x1fd),'value':_0x539f0a};const _0x44bdc0=stringFlag(process.env.LOVRABET_APPCODE);if(_0x44bdc0)return{'name':_0x93bf94(0x1e7),'value':_0x44bdc0};return undefined;}function hasExplicitAppCode(_0x5e9993,_0x489b54){const _0x764f=a327_0x41db;return!!(stringFlag(_0x5e9993[_0x764f(0x1da)])||stringFlag(_0x489b54[_0x764f(0x1da)]));}function a327_0x41db(_0x21194c,_0x5b33f2){_0x21194c=_0x21194c-0x1a6;const _0x1440f0=a327_0x1440();let _0x41db31=_0x1440f0[_0x21194c];return _0x41db31;}function assertEnvAppCodeNotIgnored(_0x53cda0,_0x52c215,_0x1bbd0a){const _0x1d1d0f=a327_0x41db;if(!_0x52c215||_0x1bbd0a||_0x53cda0===_0x52c215[_0x1d1d0f(0x1f0)])return;const _0x3df9ce=_0x53cda0?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0x53cda0+'\x22.':_0x1d1d0f(0x1ea);throw CliErrors[_0x1d1d0f(0x1bc)](_0x52c215[_0x1d1d0f(0x1cb)]+'='+_0x52c215[_0x1d1d0f(0x1f0)]+_0x1d1d0f(0x1ab)+_0x3df9ce+'\x20'+(_0x1d1d0f(0x1d7)+_0x52c215[_0x1d1d0f(0x1cb)]+'\x22.'));}export function createPipelineEnv(_0x4971cc,_0x587e6e,_0x4acce9=[]){const _0x293707=a327_0x41db;return{'rawFlags':_0x587e6e,'args':_0x4acce9,'resolveAppCode':()=>_0x4971cc[_0x293707(0x1cd)],'resolveCookie':()=>_0x4971cc[_0x293707(0x1b5)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a327_0x44eed9(_0x587e6e),'defaultFormat':_0x4971cc[_0x293707(0x1e8)],'defaultPageSize':_0x4971cc[_0x293707(0x1c6)],'defaultVerbose':_0x4971cc[_0x293707(0x1dc)],'apiDir':_0x4971cc['apiDir'],'riskLevel':_0x4971cc[_0x293707(0x1ee)],'selectedAppName':_0x4971cc[_0x293707(0x1b3)],'mergedCli':{'defaultApp':_0x4971cc[_0x293707(0x1f1)],'currentApp':_0x4971cc['currentApp'],'appCode':_0x4971cc[_0x293707(0x1cd)],'apps':_0x4971cc[_0x293707(0x1c0)]}};}export function createRabetbaseRunnerAdapter(_0xf4fc2a={}){const _0x32024a=a327_0x41db;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x32024a(0x1bd)](_0x815541=>PIPELINE_FLAG_NAMES[_0x32024a(0x1ef)](_0x815541[_0x32024a(0x1cb)]))[_0x32024a(0x1b9)](({name:_0x1d74bd,type:_0x30a94a,description:_0x43830d})=>({'name':_0x1d74bd,'type':_0x30a94a,'description':_0x43830d})),'formatOutput':_0xf4fc2a['formatOutput']??formatOutput,'getCommandLabel'(_0x3bcf59){const _0x483951=_0x32024a;return CLI_BIN_NAME+'\x20'+_0x3bcf59[_0x483951(0x1de)]+'\x20'+_0x3bcf59[_0x483951(0x1db)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x361d96,{def:_0x6f9191}){const _0x4c3df2=_0x32024a,_0x4e7173=_0x361d96[_0x4c3df2(0x1d8)](_0x4c3df2(0x1c9))?_0x4c3df2(0x1cc):_0x4c3df2(0x1f7)+_0x6f9191[_0x4c3df2(0x1f9)]+'\x22\x20if\x20this\x20operation\x20is\x20intended.\x20'+'AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.';return CliErrors[_0x4c3df2(0x1bc)](_0x361d96+_0x4c3df2(0x1ec)+_0x4e7173);}},async 'prepare'(_0x1b13fd,_0x4aa6f8,_0x3c2e35,_0x31c8a1){const _0x288048=_0x32024a,_0x2d42f2=_0x4aa6f8['apiDir']||DEFAULT_API_DIR,_0x55602e=hasExplicitAppCode(_0x3c2e35,_0x4aa6f8[_0x288048(0x1f3)]),_0x5e247e=stringFlag(_0x3c2e35[_0x288048(0x1da)])||stringFlag(_0x4aa6f8[_0x288048(0x1f3)][_0x288048(0x1da)]),_0x2f5149=_0x4aa6f8['mergedCli']?.[_0x288048(0x1c0)]??{},_0x5dd3c8=_0x4aa6f8[_0x288048(0x1bb)]||_0x4aa6f8['mergedCli']?.[_0x288048(0x1b8)]||_0x4aa6f8['mergedCli']?.['defaultApp'],_0x38d63c=_0x5e247e?Object[_0x288048(0x1c4)](_0x2f5149)[_0x288048(0x1bd)](([,_0x354b20])=>_0x354b20[_0x288048(0x1da)]===_0x5e247e)[_0x288048(0x1b9)](([_0x279bbb])=>_0x279bbb):[];if(_0x38d63c[_0x288048(0x1d2)]>0x1&&!_0x4aa6f8[_0x288048(0x1bb)])throw CliErrors[_0x288048(0x1bc)](_0x288048(0x1af)+_0x5e247e+_0x288048(0x1d3)+_0x38d63c[_0x288048(0x1ff)](',\x20')+'.','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.');resolveAliasToCode(_0x1b13fd,_0x3c2e35,_0x2d42f2,_0x31c8a1,_0x4aa6f8[_0x288048(0x1b0)](),_0x5dd3c8);const _0x5489c4=resolveCommandAuthMode(_0x1b13fd);let _0x1e7e11='';if(_0x5489c4!==_0x288048(0x1d0)){_0x1e7e11=_0x4aa6f8['resolveCookie']()||'';if(!_0x1e7e11){if(_0x5489c4===_0x288048(0x1a9))throw CliErrors[_0x288048(0x1be)]();}else{const {setActiveCookie:_0x3942c2}=await import('../core/api-client.js');_0x3942c2(_0x1e7e11);}}const _0x55fdab=_0x4aa6f8[_0x288048(0x1b0)]()??'';if(_0x1b13fd[_0x288048(0x1c7)]!==![]){if(!_0x55602e&&_0x5dd3c8&&!_0x2f5149[_0x5dd3c8]){const _0x58cc21=Object[_0x288048(0x1e4)](_0x2f5149);throw CliErrors[_0x288048(0x1bc)]('App\x20\x22'+_0x5dd3c8+_0x288048(0x1e0),_0x58cc21[_0x288048(0x1d2)]>0x0?'Available:\x20'+_0x58cc21[_0x288048(0x1ff)](',\x20')+_0x288048(0x1cf)+CLI_BIN_NAME+_0x288048(0x1b6):_0x288048(0x1d1)+CLI_BIN_NAME+'\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.');}assertEnvAppCodeNotIgnored(_0x55fdab,resolveEnvAppCode(),_0x55602e);if(!_0x55fdab){const _0x5efa06=Object[_0x288048(0x1e4)](_0x2f5149);if(!_0x5dd3c8&&_0x5efa06[_0x288048(0x1d2)]>0x1)throw CliErrors[_0x288048(0x1f5)](_0x288048(0x1f8)+CLI_BIN_NAME+_0x288048(0x1e1)+_0x5efa06[_0x288048(0x1ff)](',\x20')+'.');throw CliErrors[_0x288048(0x1f5)]('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}}return{'defaults':{'booleans':{'verbose':_0x4aa6f8[_0x288048(0x1df)]},'numbers':{'pagesize':_0x4aa6f8[_0x288048(0x1d6)]}},'extras':{'appCode':_0x55fdab,'cookie':_0x1e7e11,'apiDomain':_0x4aa6f8[_0x288048(0x201)](),'apiDir':_0x2d42f2,'selectedAppName':_0x4aa6f8[_0x288048(0x1bb)],'mergedCli':_0x4aa6f8[_0x288048(0x1ed)]}};},'confirmHighRisk':_0xf4fc2a[_0x32024a(0x200)]??(async({env:_0x479470,commandLabel:_0x1d5012})=>{const _0x31707b=_0x32024a;if(_0x479470[_0x31707b(0x1aa)])throw CliErrors[_0x31707b(0x1bc)]('High-risk\x20operation\x20`'+_0x1d5012+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmationPrompt({'lines':[_0x31707b(0x1b7)+_0x1d5012,_0x31707b(0x1f6)],'createCancelledError':_0x29e413=>CliErrors[_0x31707b(0x1eb)](_0x29e413)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x484f96=a327_0x41db,{clearActiveCookie:_0x2469c1}=await import(_0x484f96(0x1f4));_0x2469c1();}export async function finalizeRabetbaseRuntimeState(){const _0x2cbcdd=a327_0x41db;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x159c9a},{initEnv:_0x1ab759}]=await Promise[_0x2cbcdd(0x1e5)]([import(_0x2cbcdd(0x1b2)),import(_0x2cbcdd(0x1e3))]);_0x159c9a(),_0x1ab759(_0x2cbcdd(0x1ce));}}export async function runCommand(_0x3c8b2a,_0x273aa3,_0x294a1f=terminalRunnerAdapter){const _0x2605b0=a327_0x41db;assertRejectedFlags(_0x3c8b2a,_0x273aa3[_0x2605b0(0x1f3)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x3c8b2a)?withUpdateNotice(_0x3c8b2a):_0x3c8b2a,_0x273aa3,_0x294a1f);}function assertRejectedFlags(_0x546acf,_0x24494d){const _0x22835c=a327_0x41db;for(const _0xba161a of _0x546acf[_0x22835c(0x1a8)]??[]){const _0x480c81=GLOBAL_FLAGS[_0x22835c(0x1fb)](_0x1387b6=>_0x1387b6[_0x22835c(0x1cb)]===_0xba161a[_0x22835c(0x1cb)]),_0x4ede6e=new Set([_0xba161a['name'],toCamelCase(_0xba161a[_0x22835c(0x1cb)]),_0x480c81?.[_0x22835c(0x1bf)]]),_0x566583=[..._0x4ede6e][_0x22835c(0x1a6)](_0x5e169b=>{if(!_0x5e169b)return![];const _0x8efe00=_0x24494d[_0x5e169b];return _0x8efe00!==undefined&&_0x8efe00!==null&&_0x8efe00!==![];});if(_0x566583)throw CliErrors[_0x22835c(0x1bc)](_0xba161a['message'],_0xba161a[_0x22835c(0x1e9)]);}}function toCamelCase(_0xb63691){const _0x3e00f5=a327_0x41db;return _0xb63691[_0x3e00f5(0x1c1)](/-([a-z])/g,(_0xa91ff2,_0x38e78f)=>_0x38e78f[_0x3e00f5(0x1b1)]());}function shouldAttachUpdateNotice(_0x1255f3){const _0x34550f=a327_0x41db;if(_0x1255f3[_0x34550f(0x1e6)]===![])return![];return!['update',_0x34550f(0x1d4),'doctor']['includes'](_0x1255f3[_0x34550f(0x1de)]);}function a327_0x1440(){const _0x4d72de=['resolve','entries','execute','pageSize','requiresAppCode','8gdoxwz','Edit\x20the\x20config\x20file\x20manually','5736ZKQBcE','name','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','appCode','production','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','none','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','length','\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20','schema','751877iBySqk','defaultPageSize','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','includes','nonInteractive','appcode','command','verbose','159056NHxFdN','service','defaultVerbose','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','459CibDrf','../constant/env.js','keys','all','hasFormat','LOVRABET_APPCODE','format','hint','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','cancelled','\x0a\x20\x20','mergedCli','riskLevel','has','value','defaultApp','2444049okwoPf','rawFlags','../core/api-client.js','configMissing','\x20\x20\x20Continue?\x20[y/N]\x20','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','risk','object','find','pretty','RABETBASE_APPCODE','2806790iVglIO','join','confirmHighRisk','resolveApiDomain','some','205338Gphbpl','rejectedFlags','required','isNonInteractive','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','626PKFXFO','1265rWtylU','trim','AppCode\x20\x22','resolveAppCode','toUpperCase','../constant/domain.js','explicitAppName','string','cookie','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','⚠\x20\x20High-risk\x20operation:\x20','currentApp','map','_notice','selectedAppName','validation','filter','authRequired','meowKey','apps','replace','catch'];a327_0x1440=function(){return _0x4d72de;};return a327_0x1440();}function withUpdateNotice(_0x629340){return{..._0x629340,async 'execute'(_0x28e34c){const _0xdb4bef=a327_0x41db,_0x2533fa=shouldResolveUpdateNotice(_0x28e34c)?resolveLatestUpdateNotice()[_0xdb4bef(0x1c2)](()=>null):Promise[_0xdb4bef(0x1c3)](null),_0x35012b=await _0x629340[_0xdb4bef(0x1c5)](_0x28e34c);return attachUpdateNotice(_0x35012b,await _0x2533fa);}};}function shouldResolveUpdateNotice(_0x30c8e6){const _0x4dab62=a327_0x41db;return _0x30c8e6['format']===_0x4dab62(0x1fc)&&!_0x30c8e6[_0x4dab62(0x1d9)];}function attachUpdateNotice(_0x4f7946,_0x23f4f1){const _0x1adba4=a327_0x41db;if(!_0x23f4f1||!_0x4f7946||typeof _0x4f7946!==_0x1adba4(0x1fa))return _0x4f7946;const _0x40f025=_0x4f7946,_0x195413=typeof _0x40f025[_0x1adba4(0x1ba)]==='object'&&_0x40f025['_notice']!==null?_0x40f025[_0x1adba4(0x1ba)]:{};return{..._0x40f025,'_notice':{..._0x195413,'update':_0x23f4f1}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x58c8bf,_0x5e7a7b){const _0x2731cf=a328_0x4557,_0xc6548c=_0x58c8bf();while(!![]){try{const _0x52b57f=-parseInt(_0x2731cf(0xfb))/0x1*(-parseInt(_0x2731cf(0xfe))/0x2)+-parseInt(_0x2731cf(0xfd))/0x3*(-parseInt(_0x2731cf(0xff))/0x4)+-parseInt(_0x2731cf(0x104))/0x5+-parseInt(_0x2731cf(0x103))/0x6+-parseInt(_0x2731cf(0x102))/0x7*(-parseInt(_0x2731cf(0x101))/0x8)+parseInt(_0x2731cf(0x100))/0x9+parseInt(_0x2731cf(0xfc))/0xa;if(_0x52b57f===_0x5e7a7b)break;else _0xc6548c['push'](_0xc6548c['shift']());}catch(_0x1e2751){_0xc6548c['push'](_0xc6548c['shift']());}}}(a328_0x12ec,0x3b1f4));import{buildSchemaPayload as a328_0x19133c}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a328_0x4557(_0x3517e3,_0x2e9dd0){_0x3517e3=_0x3517e3-0xfa;const _0x12ec38=a328_0x12ec();let _0x455778=_0x12ec38[_0x3517e3];return _0x455778;}function a328_0x12ec(){const _0x3d8520=['../commands/registry.js','1KcKLFR','746390pBmiUx','7413pxbYFL','366254CENrmF','84XzaoQz','2515491HFxuoc','8dnnQMm','458857OuCbAc','2116860yohpVG','298665izyOhh'];a328_0x12ec=function(){return _0x3d8520;};return a328_0x12ec();}import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x3bb43f=a328_0x4557,{serviceRegistry:_0x65fb02,findDefinition:_0x1aae86}=await import(_0x3bb43f(0xfa));return a328_0x19133c({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x65fb02,'buildAllFlags':buildAllFlags,'findDefinition':_0x1aae86});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x36d687,_0x45dfb8){const _0x612640=a329_0xc268,_0xf73884=_0x36d687();while(!![]){try{const _0x1ed7e1=parseInt(_0x612640(0x129))/0x1+parseInt(_0x612640(0x122))/0x2*(-parseInt(_0x612640(0x131))/0x3)+-parseInt(_0x612640(0x124))/0x4*(parseInt(_0x612640(0x12d))/0x5)+parseInt(_0x612640(0x128))/0x6+-parseInt(_0x612640(0x11d))/0x7+parseInt(_0x612640(0x12e))/0x8*(-parseInt(_0x612640(0x118))/0x9)+-parseInt(_0x612640(0x12b))/0xa*(-parseInt(_0x612640(0x11c))/0xb);if(_0x1ed7e1===_0x45dfb8)break;else _0xf73884['push'](_0xf73884['shift']());}catch(_0x321368){_0xf73884['push'](_0xf73884['shift']());}}}(a329_0x28cc,0x28d50));import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function assertSupportedCommandFlags(_0x13b680,_0x1a31fb){const _0x810bd9=a329_0xc268;if(!_0x13b680[_0x810bd9(0x123)])return;const _0x30e8d7=new Set(['help','version']),_0x352567=GLOBAL_FLAGS[_0x810bd9(0x114)](_0x405fd9=>PIPELINE_FLAG_NAMES[_0x810bd9(0x12a)](_0x405fd9[_0x810bd9(0x126)]));for(const _0x4bb3a5 of[..._0x13b680['flags'],..._0x352567]){addFlagCandidates(_0x30e8d7,_0x4bb3a5);}for(const [_0x21ea96,_0x3313cf]of Object['entries'](_0x1a31fb)){if(!isExplicitValue(_0x3313cf)||_0x30e8d7[_0x810bd9(0x12a)](_0x21ea96))continue;const _0x4c7cd3=GLOBAL_FLAGS[_0x810bd9(0x117)](_0x189680=>_0x189680[_0x810bd9(0x130)]===_0x21ea96)?.['name']??toKebabCase(_0x21ea96);throw CliErrors[_0x810bd9(0x11a)](_0x810bd9(0x12f)+_0x4c7cd3+_0x810bd9(0x11f)+CLI_BIN_NAME+'\x20'+_0x13b680[_0x810bd9(0x12c)]+'\x20'+_0x13b680[_0x810bd9(0x120)]+'`.',_0x810bd9(0x11b)+CLI_BIN_NAME+'\x20'+_0x13b680['service']+'\x20'+_0x13b680[_0x810bd9(0x120)]+'\x20--help`\x20to\x20view\x20the\x20current\x20command\x20contract.');}}function a329_0x28cc(){const _0x400915=['find','36vKyBcd','replace','validation','Run\x20`','20185ppUZYh','1494192GRwLQG','toLowerCase','\x20for\x20`','command','add','35474mjlzke','strictFlags','3804VovcPF','alias','name','isArray','265224LnoZat','119520EZPOZs','has','5030HMfbZw','service','1555ZMXTsk','394840VPdXwL','Unsupported\x20flag\x20--','meowKey','36RtkTID','filter','toUpperCase','$1-$2'];a329_0x28cc=function(){return _0x400915;};return a329_0x28cc();}function addFlagCandidates(_0x5c27b5,_0x310c0f){const _0x57feda=a329_0xc268,_0x11bc0e=_0x57feda(0x130)in _0x310c0f?[_0x310c0f[_0x57feda(0x126)],_0x310c0f['meowKey']]:[_0x310c0f[_0x57feda(0x126)],_0x310c0f[_0x57feda(0x125)]];for(const _0x12cdbe of _0x11bc0e){if(!_0x12cdbe)continue;_0x5c27b5[_0x57feda(0x121)](_0x12cdbe),_0x5c27b5[_0x57feda(0x121)](toCamelCase(_0x12cdbe));}}function isExplicitValue(_0x22b676){const _0x36f63e=a329_0xc268;return _0x22b676!==undefined&&_0x22b676!==null&&_0x22b676!==![]&&(!Array[_0x36f63e(0x127)](_0x22b676)||_0x22b676['length']>0x0);}function a329_0xc268(_0x517da2,_0x3a35a5){_0x517da2=_0x517da2-0x114;const _0x28ccb3=a329_0x28cc();let _0xc26818=_0x28ccb3[_0x517da2];return _0xc26818;}function toCamelCase(_0x5c2848){const _0x4737c5=a329_0xc268;return _0x5c2848[_0x4737c5(0x119)](/-([a-z])/g,(_0x801104,_0x4ef940)=>_0x4ef940[_0x4737c5(0x115)]());}function toKebabCase(_0xe7dbf4){const _0x40c3aa=a329_0xc268;return _0xe7dbf4[_0x40c3aa(0x119)](/([a-z0-9])([A-Z])/g,_0x40c3aa(0x116))[_0x40c3aa(0x11e)]();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x386b1f,_0x961e92){var _0x51e179=a330_0x2db3,_0x2374f4=_0x386b1f();while(!![]){try{var _0x477e08=parseInt(_0x51e179(0x13e))/0x1+-parseInt(_0x51e179(0x13c))/0x2*(parseInt(_0x51e179(0x13a))/0x3)+-parseInt(_0x51e179(0x138))/0x4*(-parseInt(_0x51e179(0x13b))/0x5)+-parseInt(_0x51e179(0x136))/0x6+-parseInt(_0x51e179(0x141))/0x7*(-parseInt(_0x51e179(0x139))/0x8)+parseInt(_0x51e179(0x140))/0x9*(-parseInt(_0x51e179(0x13f))/0xa)+parseInt(_0x51e179(0x137))/0xb*(-parseInt(_0x51e179(0x13d))/0xc);if(_0x477e08===_0x961e92)break;else _0x2374f4['push'](_0x2374f4['shift']());}catch(_0x142622){_0x2374f4['push'](_0x2374f4['shift']());}}}(a330_0x3ef0,0x18936));function a330_0x2db3(_0x4be527,_0x2f0d96){_0x4be527=_0x4be527-0x136;var _0x3ef036=a330_0x3ef0();var _0x2db36e=_0x3ef036[_0x4be527];return _0x2db36e;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';function a330_0x3ef0(){var _0x8bdae4=['10908zMiEay','810612QNciwQ','20vbxTeZ','184cpWriW','134172xugpXM','188090DVGFvO','2lqasyD','12hdVGGp','188879rRJWQR','185030tecAwd','90AqrXYj','8813JUywql'];a330_0x3ef0=function(){return _0x8bdae4;};return a330_0x3ef0();}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.5.10
|
|
2
|
-
export declare const GIT_TAG = "v2.5.10
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-11-
|
|
1
|
+
export declare const VERSION = "2.5.10";
|
|
2
|
+
export declare const GIT_TAG = "v2.5.10";
|
|
3
|
+
export declare const GIT_COMMIT = "b14b6adc";
|
|
4
|
+
export declare const BUILD_TIME = "2026-11-02T15:33:58.758Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a331_0x487e46=a331_0x4172;(function(_0x46778c,_0x3accbe){const _0x500955=a331_0x4172,_0x1832b8=_0x46778c();while(!![]){try{const _0x393585=-parseInt(_0x500955(0x1ca))/0x1*(-parseInt(_0x500955(0x1cc))/0x2)+-parseInt(_0x500955(0x1ce))/0x3*(parseInt(_0x500955(0x1c6))/0x4)+parseInt(_0x500955(0x1d1))/0x5+parseInt(_0x500955(0x1c8))/0x6*(parseInt(_0x500955(0x1c5))/0x7)+parseInt(_0x500955(0x1d0))/0x8*(parseInt(_0x500955(0x1cb))/0x9)+-parseInt(_0x500955(0x1d2))/0xa*(-parseInt(_0x500955(0x1c7))/0xb)+-parseInt(_0x500955(0x1cf))/0xc;if(_0x393585===_0x3accbe)break;else _0x1832b8['push'](_0x1832b8['shift']());}catch(_0x2543df){_0x1832b8['push'](_0x1832b8['shift']());}}}(a331_0x38c5,0x2c85d));export const VERSION='2.5.10';export const GIT_TAG='v2.5.10';function a331_0x4172(_0x5e0f17,_0x253d35){_0x5e0f17=_0x5e0f17-0x1c5;const _0x38c5de=a331_0x38c5();let _0x4172ad=_0x38c5de[_0x5e0f17];return _0x4172ad;}export const GIT_COMMIT=a331_0x487e46(0x1cd);function a331_0x38c5(){const _0x5d5191=['10697376WzxmpP','8FbmAft','15390ZbOwSB','84970DkeGob','14560TPQUlF','85948wtmjRH','429SKlBsa','516ZNCVPh','2026-11-02T15:33:58.758Z','863dkQnZC','2934639ePKMgN','842WXBqzq','b14b6adc','18xRIePo'];a331_0x38c5=function(){return _0x5d5191;};return a331_0x38c5();}export const BUILD_TIME=a331_0x487e46(0x1c9);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a332_0x1822af=a332_0x1c6a;(function(_0x43f854,_0x49932f){const _0x5f0aee=a332_0x1c6a,_0x122cde=_0x43f854();while(!![]){try{const _0x3ea311=parseInt(_0x5f0aee(0x15f))/0x1*(-parseInt(_0x5f0aee(0x150))/0x2)+parseInt(_0x5f0aee(0x170))/0x3*(-parseInt(_0x5f0aee(0x162))/0x4)+parseInt(_0x5f0aee(0x158))/0x5*(-parseInt(_0x5f0aee(0x14d))/0x6)+-parseInt(_0x5f0aee(0x15e))/0x7*(-parseInt(_0x5f0aee(0x163))/0x8)+-parseInt(_0x5f0aee(0x16c))/0x9*(-parseInt(_0x5f0aee(0x149))/0xa)+-parseInt(_0x5f0aee(0x173))/0xb+parseInt(_0x5f0aee(0x154))/0xc*(parseInt(_0x5f0aee(0x156))/0xd);if(_0x3ea311===_0x49932f)break;else _0x122cde['push'](_0x122cde['shift']());}catch(_0x523354){_0x122cde['push'](_0x122cde['shift']());}}}(a332_0x38bf,0xddd16));export const ROUTING_CATALOG_DIGEST=a332_0x1822af(0x169);export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id',a332_0x1822af(0x16d)];export const ENABLED_REGION_VALUES=['cn','id',a332_0x1822af(0x16d)];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a332_0x1822af(0x159),'aliases':[a332_0x1822af(0x15c)],'serviceDomains':{'production':{'user':a332_0x1822af(0x16a),'api':'https://api.lovrabet.com','runtime':a332_0x1822af(0x155),'skill':a332_0x1822af(0x160),'kb':a332_0x1822af(0x16f),'kbService':a332_0x1822af(0x171),'app':'https://app.lovrabet.com'},'daily':{'user':a332_0x1822af(0x14f),'api':'https://daily-api.lovrabet.com','runtime':a332_0x1822af(0x164),'skill':a332_0x1822af(0x151),'kb':'https://daily-api.lovrabet.com','kbService':'https://kb-service-daily.lovrabet.com','app':'https://daily.lovrabet.com'}},'cdn':{'libraries':a332_0x1822af(0x15d),'lovrabet':'https://g.lovrabet.com'},'local':{'origin':a332_0x1822af(0x166)}},'id':{'enabled':!![],'label':a332_0x1822af(0x174),'aliases':[a332_0x1822af(0x14c)],'serviceDomains':{'production':{'user':a332_0x1822af(0x14a),'api':a332_0x1822af(0x152),'runtime':'https://runtime.lovrabet.id','skill':'https://skills.lovrabet.id','kb':'https://api.lovrabet.id','kbService':a332_0x1822af(0x161),'app':a332_0x1822af(0x157)}},'cdn':{'libraries':a332_0x1822af(0x165),'lovrabet':a332_0x1822af(0x16b)},'local':{'origin':'https://dev.lovrabet.id'}},'global':{'enabled':!![],'label':a332_0x1822af(0x14b),'aliases':[],'serviceDomains':{'production':{'user':'https://user.lovrabet.ai','api':a332_0x1822af(0x167),'runtime':a332_0x1822af(0x15b),'skill':'https://skills.lovrabet.ai','kb':'https://api.lovrabet.ai','app':'https://app.lovrabet.ai'},'daily':{'user':a332_0x1822af(0x172),'api':a332_0x1822af(0x168),'runtime':a332_0x1822af(0x15a),'skill':a332_0x1822af(0x16e),'kb':'https://daily-api.lovrabet.ai','app':a332_0x1822af(0x14e)}},'cdn':{'libraries':a332_0x1822af(0x165),'lovrabet':a332_0x1822af(0x153)},'local':{'origin':'https://dev.lovrabet.ai'}}};function a332_0x1c6a(_0x337851,_0x5154e3){_0x337851=_0x337851-0x149;const _0x38bf59=a332_0x38bf();let _0x1c6ab4=_0x38bf59[_0x337851];return _0x1c6ab4;}function a332_0x38bf(){const _0x29b019=['https://skills-daily.lovrabet.com','https://api.lovrabet.id','https://g.lovrabet.ai','29695236APmUAY','https://runtime.lovrabet.com','13VAZxnb','https://app.lovrabet.id','85DtoRbR','Mainland\x20China','https://daily-runtime.lovrabet.ai','https://runtime.lovrabet.ai','china','https://g.alicdn.com/code/lib','55153nsxaDt','1208684quOEjI','https://skills.lovrabet.com','https://kb-service.lovrabet.id','4DwIpWm','616PLnaJP','https://daily-runtime.lovrabet.com','https://cdnjs.cloudflare.com/ajax/libs','https://dev.lovrabet.com','https://api.lovrabet.ai','https://daily-api.lovrabet.ai','57d346b80b12ca567af9d86dd7f8c02a0c27fe15d4944c8345add2cc6134c587','https://user.lovrabet.com','https://g.lovrabet.id','6907347XFetSp','global','https://skills-daily.lovrabet.ai','https://api.lovrabet.com','2297436nsmKRd','https://kb-service.lovrabet.com','https://user-daily.lovrabet.ai','8036754FeCBaO','Indonesia','10gCXeqS','https://user.lovrabet.id','Global','indonesia','82974KNfKDl','https://daily.lovrabet.ai','https://user-daily.lovrabet.com','2wXPyYZ'];a332_0x38bf=function(){return _0x29b019;};return a332_0x38bf();}export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a333_0x4b9e65=a333_0x4b19;(function(_0x3a5320,_0x1336b5){const _0x3c8835=a333_0x4b19,_0xb6dff4=_0x3a5320();while(!![]){try{const _0x3f9275=-parseInt(_0x3c8835(0x123))/0x1+parseInt(_0x3c8835(0x12b))/0x2+parseInt(_0x3c8835(0x12e))/0x3*(-parseInt(_0x3c8835(0x121))/0x4)+parseInt(_0x3c8835(0x126))/0x5*(parseInt(_0x3c8835(0x12f))/0x6)+-parseInt(_0x3c8835(0x125))/0x7+-parseInt(_0x3c8835(0x129))/0x8*(parseInt(_0x3c8835(0x12c))/0x9)+parseInt(_0x3c8835(0x124))/0xa;if(_0x3f9275===_0x1336b5)break;else _0xb6dff4['push'](_0xb6dff4['shift']());}catch(_0x307baf){_0xb6dff4['push'](_0xb6dff4['shift']());}}}(a333_0x5e24,0x67e0c));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST='a03fe188b2b34518efc5668666c0001d20354882cd7dd70afec902dffe1329c3';export const ENTERPRISE_ROUTING_PROTOCOL=a333_0x4b9e65(0x120);export const ENTERPRISE_ROUTING_KIND=a333_0x4b9e65(0x127);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a333_0x4b9e65(0x12d),a333_0x4b9e65(0x132),a333_0x4b9e65(0x12a),a333_0x4b9e65(0x134),a333_0x4b9e65(0x128),a333_0x4b9e65(0x130),a333_0x4b9e65(0x131),'localDomain','certificateDomain'];function a333_0x5e24(){const _0x38b623=['userDomain','9lkoBuO','3435426FoLHwC','kbServiceDomain','appDomain','apiDomain','lovrabet','skillDomain','lovrabet-routing/v1','972052bWEbVs','libraries','522620EHdBwH','7593580BKZWaB','601601xrIkby','5pZTsmL','enterprise','kbDomain','560EPkLHT','runtimeDomain','1166954sekkWP','19584LXiJeM'];a333_0x5e24=function(){return _0x38b623;};return a333_0x5e24();}function a333_0x4b19(_0x17fdef,_0x1ceab9){_0x17fdef=_0x17fdef-0x120;const _0x5e2425=a333_0x5e24();let _0x4b19d5=_0x5e2425[_0x17fdef];return _0x4b19d5;}export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a333_0x4b9e65(0x12d),a333_0x4b9e65(0x132),a333_0x4b9e65(0x12a),a333_0x4b9e65(0x134),a333_0x4b9e65(0x128),a333_0x4b9e65(0x131)];export const ENTERPRISE_ROUTING_CDN_FIELDS=[a333_0x4b9e65(0x122),a333_0x4b9e65(0x133)];export const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS=[a333_0x4b9e65(0x122),a333_0x4b9e65(0x133)];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4c36aa,_0x12e4c1){var _0x57bfb8=a334_0x56a1,_0xacc8f8=_0x4c36aa();while(!![]){try{var _0x31ad08=parseInt(_0x57bfb8(0xd9))/0x1*(parseInt(_0x57bfb8(0xdb))/0x2)+-parseInt(_0x57bfb8(0xce))/0x3*(parseInt(_0x57bfb8(0xca))/0x4)+parseInt(_0x57bfb8(0xcd))/0x5*(-parseInt(_0x57bfb8(0xcf))/0x6)+-parseInt(_0x57bfb8(0xd1))/0x7+parseInt(_0x57bfb8(0xd0))/0x8*(parseInt(_0x57bfb8(0xd6))/0x9)+parseInt(_0x57bfb8(0xd2))/0xa*(parseInt(_0x57bfb8(0xd3))/0xb)+parseInt(_0x57bfb8(0xd4))/0xc;if(_0x31ad08===_0x12e4c1)break;else _0xacc8f8['push'](_0xacc8f8['shift']());}catch(_0x452dc2){_0xacc8f8['push'](_0xacc8f8['shift']());}}}(a334_0x5db3,0x6ce21));import a334_0x32484a from'chalk';function a334_0x56a1(_0x290d0c,_0x50b5fe){_0x290d0c=_0x290d0c-0xca;var _0x5db356=a334_0x5db3();var _0x56a1b9=_0x5db356[_0x290d0c];return _0x56a1b9;}function a334_0x5db3(){var _0x336c33=['15TCSQEI','12aBkcQx','488dZcFyu','4688845VNdfFm','390sLUqfo','200893qlqDrm','7342596NeMnFT','log','1449CvANss','bold','green','1313fsvfVN','\x20--help','962OOSjPt','492064jflRLk','\x20to\x20view\x20available\x20commands.','\x20\x20Use\x20','586535STEUGT'];a334_0x5db3=function(){return _0x336c33;};return a334_0x5db3();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x3c64ee=a334_0x56a1;console[_0x3c64ee(0xd5)](),console[_0x3c64ee(0xd5)](a334_0x32484a['green'][_0x3c64ee(0xd7)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x3c64ee(0xd5)](),console[_0x3c64ee(0xd5)](_0x3c64ee(0xcc)+a334_0x32484a[_0x3c64ee(0xd8)][_0x3c64ee(0xd7)](CLI_BIN_NAME+_0x3c64ee(0xda))+_0x3c64ee(0xcb)),console[_0x3c64ee(0xd5)]();}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2abc5c,_0x4bc5c0){const _0x5927d5=a335_0x434a,_0x259cf2=_0x2abc5c();while(!![]){try{const _0x305dac=parseInt(_0x5927d5(0x198))/0x1*(parseInt(_0x5927d5(0x183))/0x2)+-parseInt(_0x5927d5(0x18d))/0x3+parseInt(_0x5927d5(0x182))/0x4+-parseInt(_0x5927d5(0x17f))/0x5+-parseInt(_0x5927d5(0x186))/0x6*(parseInt(_0x5927d5(0x187))/0x7)+-parseInt(_0x5927d5(0x185))/0x8*(-parseInt(_0x5927d5(0x193))/0x9)+parseInt(_0x5927d5(0x180))/0xa*(-parseInt(_0x5927d5(0x184))/0xb);if(_0x305dac===_0x4bc5c0)break;else _0x259cf2['push'](_0x259cf2['shift']());}catch(_0x32edff){_0x259cf2['push'](_0x259cf2['shift']());}}}(a335_0x3005,0xbe31e));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a335_0x3005(){const _0x3f1242=['repairCommand','SOURCE_INVALID','error','1295152ujcbtI','Repair\x20with:\x20','3250365BDYJzj','1080990ifBleT','\x20at\x20','4101188RRRTMW','2khkMOj','121bGKvPV','74248PdAyAO','8682kZEwUI','2576NGSxlf','installedPath','changed','\x20via\x20skills@latest','Installation\x20failed','installed','906105qACzvC','Rabetbase\x20Built-in\x20Skill\x20','already\x20current','skillVersion','log','FAILED','1098WJBHYU','[BUILTIN_SKILL_INSTALL_'];a335_0x3005=function(){return _0x3f1242;};return a335_0x3005();}function a335_0x434a(_0x1f4873,_0x47b3c5){_0x1f4873=_0x1f4873-0x17f;const _0x3005a6=a335_0x3005();let _0x434a9b=_0x3005a6[_0x1f4873];return _0x434a9b;}export async function runPostinstall(_0x5dbafe={}){const _0x38674c=a335_0x434a,_0x217658=installBuiltinSkill(_0x5dbafe);if(_0x217658['ok']){const _0x3b2e2e=_0x217658[_0x38674c(0x189)]?_0x38674c(0x18c):_0x38674c(0x18f),_0x1b090f=_0x217658[_0x38674c(0x188)]?_0x38674c(0x181)+_0x217658[_0x38674c(0x188)]:_0x38674c(0x18a);return console[_0x38674c(0x191)](_0x38674c(0x18e)+_0x217658[_0x38674c(0x190)]+'\x20'+_0x3b2e2e+_0x1b090f),_0x217658;}const _0x5b2d5a=_0x38674c(0x194)+(_0x217658['code']??_0x38674c(0x192))+']\x20'+(_0x217658[_0x38674c(0x197)]??_0x38674c(0x18b))+'.\x20'+(_0x38674c(0x199)+_0x217658[_0x38674c(0x195)]);if(_0x217658['code']===_0x38674c(0x196))throw new Error(_0x5b2d5a);return console['warn'](_0x5b2d5a),_0x217658;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2ed234,_0x1aa2da){const _0x2afbf5=a336_0x2469,_0x2f4f98=_0x2ed234();while(!![]){try{const _0x2d9d41=-parseInt(_0x2afbf5(0x89))/0x1+-parseInt(_0x2afbf5(0x8e))/0x2+parseInt(_0x2afbf5(0x87))/0x3+-parseInt(_0x2afbf5(0x93))/0x4+parseInt(_0x2afbf5(0x8f))/0x5+-parseInt(_0x2afbf5(0x88))/0x6*(parseInt(_0x2afbf5(0x91))/0x7)+parseInt(_0x2afbf5(0x8b))/0x8*(parseInt(_0x2afbf5(0x98))/0x9);if(_0x2d9d41===_0x1aa2da)break;else _0x2f4f98['push'](_0x2f4f98['shift']());}catch(_0x260ee9){_0x2f4f98['push'](_0x2f4f98['shift']());}}}(a336_0x1ae3,0x40eb0));const DESCRIPTION_MAX_LENGTH=0x1f4;function a336_0x2469(_0x5127f9,_0x299e8f){_0x5127f9=_0x5127f9-0x87;const _0x1ae3ea=a336_0x1ae3();let _0x2469da=_0x1ae3ea[_0x5127f9];return _0x2469da;}export function buildRabetbaseConfirmationRequest(_0x5da0e2,_0x24d925,_0x481b51){const _0x7e1ac8=normalizeText(_0x5da0e2['confirmationDescription'],DESCRIPTION_MAX_LENGTH),_0x35435f=_0x7e1ac8||normalizeText(defaultDescription(requireWriteRisk(_0x5da0e2),_0x24d925),DESCRIPTION_MAX_LENGTH);return{'operation':_0x24d925,'risk':requireWriteRisk(_0x5da0e2),'description':_0x35435f,..._0x481b51?{'signal':_0x481b51}:{}};}function requireWriteRisk(_0x30d60d){const _0x46bc7a=a336_0x2469;if(_0x30d60d['risk']==='write'||_0x30d60d['risk']===_0x46bc7a(0x96))return _0x30d60d[_0x46bc7a(0x99)];throw new Error(_0x46bc7a(0x8a));}function defaultDescription(_0x573d51,_0x4543af){const _0x2af741=a336_0x2469;if(_0x573d51==='high-risk-write')return'This\x20will\x20run\x20the\x20high-risk\x20write\x20'+_0x4543af+_0x2af741(0x90);return _0x2af741(0x95)+_0x4543af+_0x2af741(0x8d);}function normalizeText(_0x52dc01,_0x42fe76){const _0x39068c=a336_0x2469;if(typeof _0x52dc01!==_0x39068c(0x97))return'';return _0x52dc01[_0x39068c(0x8c)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x39068c(0x8c)](/\s+/g,'\x20')[_0x39068c(0x92)]()[_0x39068c(0x94)](0x0,_0x42fe76);}function a336_0x1ae3(){const _0x15a40a=['.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.','21zUkLxU','trim','589692BkvQHB','slice','This\x20will\x20run\x20the\x20write\x20','high-risk-write','string','2517084ZZrmHh','risk','1031736zigBPI','880632UgZvsp','385431EKaVxq','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','16jTuBjS','replace','.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.','378246nNWYUz','2624665MKOLWA'];a336_0x1ae3=function(){return _0x15a40a;};return a336_0x1ae3();}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x366995,_0x1799a1){const _0x3445dc=a337_0x6a48,_0x5c67dd=_0x366995();while(!![]){try{const _0x20fc25=-parseInt(_0x3445dc(0x1f3))/0x1+-parseInt(_0x3445dc(0x1e6))/0x2*(-parseInt(_0x3445dc(0x1f7))/0x3)+parseInt(_0x3445dc(0x1eb))/0x4+-parseInt(_0x3445dc(0x1f8))/0x5+-parseInt(_0x3445dc(0x1f0))/0x6*(parseInt(_0x3445dc(0x1ee))/0x7)+parseInt(_0x3445dc(0x1e7))/0x8+parseInt(_0x3445dc(0x1f5))/0x9*(parseInt(_0x3445dc(0x1f1))/0xa);if(_0x20fc25===_0x1799a1)break;else _0x5c67dd['push'](_0x5c67dd['shift']());}catch(_0x1648ac){_0x5c67dd['push'](_0x5c67dd['shift']());}}}(a337_0x1e04,0xbcd0f));export function canonicalRabetbaseOperation(_0x4ecf51){const _0x432374=a337_0x6a48;return[_0x4ecf51[_0x432374(0x1ec)],..._0x4ecf51['command']['trim']()[_0x432374(0x1f2)](/\s+/)]['filter'](Boolean)[_0x432374(0x1e8)]('.');}function a337_0x1e04(){const _0x26dac2=['3939018mJZCpk','40rAuqNp','split','171979wZQiSM','write','1764279htqtfH','data','3ueWnrm','3391350XtHaJw','risk','conflicts','995158uWudxL','5113320yXzcjw','join','isArray','length','1437100PiFqUf','service','high-risk-write','7DoCpGB','object'];a337_0x1e04=function(){return _0x26dac2;};return a337_0x1e04();}export function createRabetbaseWriteMetadata(_0x2128a1,_0x1ab4de,_0x1ee143,_0x4ec583){const _0x1660c2=a337_0x6a48;if(_0x4ec583||_0x1ee143['ok']!==!![]||hasUnresolvedConflicts(_0x1ee143)||_0x2128a1[_0x1660c2(0x1f9)]!==_0x1660c2(0x1f4)&&_0x2128a1['risk']!==_0x1660c2(0x1ed))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':'rabetbase.write.completed','operation':_0x1ab4de,'risk':_0x2128a1[_0x1660c2(0x1f9)]}}};}function a337_0x6a48(_0x40a4b8,_0x24e5e4){_0x40a4b8=_0x40a4b8-0x1e6;const _0x1e04fb=a337_0x1e04();let _0x6a485f=_0x1e04fb[_0x40a4b8];return _0x6a485f;}function hasUnresolvedConflicts(_0x2ecbbb){const _0x55d552=a337_0x6a48,_0x443f50=_0x2ecbbb[_0x55d552(0x1f6)];return Boolean(_0x443f50&&typeof _0x443f50===_0x55d552(0x1ef)&&!Array['isArray'](_0x443f50)&&Array[_0x55d552(0x1e9)](_0x443f50['conflicts'])&&_0x443f50[_0x55d552(0x1fa)][_0x55d552(0x1ea)]>0x0);}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x367fbb,_0x329bb8){const _0x12a7f9=a338_0x3403,_0x55cecc=_0x367fbb();while(!![]){try{const _0x59fe88=parseInt(_0x12a7f9(0x103))/0x1*(-parseInt(_0x12a7f9(0x108))/0x2)+-parseInt(_0x12a7f9(0x10c))/0x3*(parseInt(_0x12a7f9(0xfd))/0x4)+-parseInt(_0x12a7f9(0x10d))/0x5*(-parseInt(_0x12a7f9(0x119))/0x6)+parseInt(_0x12a7f9(0x111))/0x7*(parseInt(_0x12a7f9(0x100))/0x8)+-parseInt(_0x12a7f9(0xf9))/0x9*(parseInt(_0x12a7f9(0x110))/0xa)+-parseInt(_0x12a7f9(0xfc))/0xb+parseInt(_0x12a7f9(0x10a))/0xc;if(_0x59fe88===_0x329bb8)break;else _0x55cecc['push'](_0x55cecc['shift']());}catch(_0x506b30){_0x55cecc['push'](_0x55cecc['shift']());}}}(a338_0x639f,0x90f89));import{buildConfigFromFlags,initGlobalEnvironment,isRoutingRecoveryService}from'../context.js';import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x791e8b,command:_0x51cfc9,risk:_0xd365df,dryRun:_0x50cab3}){const _0x521bab=a338_0x3403;return JSON[_0x521bab(0x109)]({'ok':_0x791e8b['ok'],'command':_0x51cfc9,'risk':_0xd365df,..._0x50cab3?{'dryRun':!![]}:{},..._0x791e8b[_0x521bab(0x104)]!==undefined?{'data':_0x791e8b[_0x521bab(0x104)]}:{},..._0x791e8b[_0x521bab(0x101)]?{'message':_0x791e8b[_0x521bab(0x101)]}:{}});}};export async function invokeRabetbase(_0x92c2b2,_0x45cb39){const _0x302cc0=a338_0x3403;throwIfAborted(_0x45cb39['signal']);const _0x3e6af4=await resolveRabetbaseInvocation(_0x92c2b2),_0x4e737c=canonicalRabetbaseOperation(_0x3e6af4[_0x302cc0(0xfb)]);return await confirmWriteBeforeQueue(_0x3e6af4['definition'],_0x3e6af4[_0x302cc0(0x105)],_0x4e737c,_0x45cb39),runSerialized(async()=>{const _0x464760=_0x302cc0,_0x93d330={};try{throwIfAborted(_0x45cb39[_0x464760(0xff)]);const _0x3118ef=buildConfigFromFlags(_0x3e6af4['rawFlags']);!isRoutingRecoveryService(_0x3e6af4[_0x464760(0xfb)]['service'])&&await initGlobalEnvironment(_0x3118ef);const _0x476691=createPipelineEnv(_0x3118ef,{..._0x3e6af4[_0x464760(0x105)],'yes':_0x3e6af4[_0x464760(0xfb)][_0x464760(0xf8)]==='high-risk-write'?!![]:_0x3e6af4[_0x464760(0x105)][_0x464760(0x115)],'nonInteractive':!![]},_0x3e6af4[_0x464760(0x112)]);_0x476691['isNonInteractive']=!![],_0x476691[_0x464760(0xfe)]=_0x464760(0x118);const _0x28b653=withAbortSignal(_0x3e6af4[_0x464760(0xfb)],_0x45cb39[_0x464760(0xff)]),_0xb9ba94=createRabetbaseRunnerAdapter({'formatOutput'(_0xcd5920,_0x19b084){const _0x175bbb=_0x464760;_0x93d330[_0x175bbb(0x10b)]=_0xcd5920,_0x93d330[_0x175bbb(0xfa)]=_0x19b084[_0x175bbb(0xfa)],_0x93d330[_0x175bbb(0xf8)]=_0x19b084[_0x175bbb(0xf8)],_0x93d330[_0x175bbb(0x11c)]=_0x19b084[_0x175bbb(0x11c)],_0x93d330[_0x175bbb(0x113)]=_0x19b084[_0x175bbb(0x113)]===!![];},async 'confirmHighRisk'(){throw new Error('Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.');}});await runCommand(_0x28b653,_0x476691,_0xb9ba94);if(!_0x93d330[_0x464760(0x10b)]||!_0x93d330[_0x464760(0xfa)]||!_0x93d330[_0x464760(0xf8)]||!_0x93d330[_0x464760(0x11c)])throw new Error(_0x464760(0x106));const _0x40b4c0=_0x93d330[_0x464760(0x113)]===!![],_0x30150c=_0x45cb39[_0x464760(0x107)]??defaultPresentation,_0x2a2469={'result':_0x93d330[_0x464760(0x10b)],'command':_0x93d330[_0x464760(0xfa)],'operation':_0x4e737c,'risk':_0x93d330[_0x464760(0xf8)],'format':_0x93d330['format'],'dryRun':_0x40b4c0},_0x5d97cb=createRabetbaseWriteMetadata(_0x3e6af4[_0x464760(0xfb)],_0x4e737c,_0x93d330[_0x464760(0x10b)],_0x40b4c0);let _0x206d97;try{_0x206d97=await _0x30150c[_0x464760(0x116)](_0x2a2469);}catch(_0x24d0ce){if(!_0x5d97cb||_0x30150c===defaultPresentation)throw _0x24d0ce;_0x206d97=await defaultPresentation[_0x464760(0x116)](_0x2a2469);}return{'operation':_0x4e737c,'risk':_0x93d330[_0x464760(0xf8)],'mode':_0x40b4c0?_0x464760(0x11a):'execute','result':_0x93d330[_0x464760(0x10b)],'output':_0x206d97,..._0x5d97cb?{'metadata':_0x5d97cb}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x57fd1d,_0x39f108,_0x9a2ad3,_0x461c25){const _0x1e597d=a338_0x3403;if(_0x39f108[_0x1e597d(0x113)]===!![]||_0x57fd1d[_0x1e597d(0xf8)]!==_0x1e597d(0x117)&&_0x57fd1d['risk']!=='high-risk-write')return;await _0x461c25[_0x1e597d(0x114)][_0x1e597d(0x11b)](buildRabetbaseConfirmationRequest(_0x57fd1d,_0x9a2ad3,_0x461c25[_0x1e597d(0xff)]));}function a338_0x3403(_0x33aee0,_0x133296){_0x33aee0=_0x33aee0-0xf8;const _0x639f47=a338_0x639f();let _0x3403d8=_0x639f47[_0x33aee0];return _0x3403d8;}function withAbortSignal(_0x48ea75,_0x2f9fe1){return{..._0x48ea75,async 'execute'(_0xada5b6){return throwIfAborted(_0x2f9fe1),_0x48ea75['execute']({..._0xada5b6,'signal':_0x2f9fe1});}};}function a338_0x639f(){const _0x43618f=['message','aborted','86IePaln','data','rawFlags','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','presentation','11396wrnUNs','stringify','23603916navksY','result','76107gSaNHV','20XwGgrC','Rabetbase\x20invocation\x20aborted.','reason','7190fiyQik','2282VDpAvi','args','dryRun','confirmation','yes','present','write','high-risk-write','1370490vGAdKd','dry-run','confirm','format','risk','6309MiInNe','command','definition','10338724vQUaxM','164aSTQat','riskLevel','signal','16864WokuEk'];a338_0x639f=function(){return _0x43618f;};return a338_0x639f();}function throwIfAborted(_0x5ceea3){const _0x564576=a338_0x3403;if(_0x5ceea3?.[_0x564576(0x102)])throw _0x5ceea3[_0x564576(0x10f)]instanceof Error?_0x5ceea3[_0x564576(0x10f)]:new DOMException(_0x564576(0x10e),'AbortError');}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x6e26ca,_0x4a9bea){const _0x1e797=a339_0x5a95,_0x42e43a=_0x6e26ca();while(!![]){try{const _0x5bab90=parseInt(_0x1e797(0x169))/0x1+parseInt(_0x1e797(0x167))/0x2*(parseInt(_0x1e797(0x16c))/0x3)+-parseInt(_0x1e797(0x16b))/0x4+parseInt(_0x1e797(0x165))/0x5+-parseInt(_0x1e797(0x168))/0x6+parseInt(_0x1e797(0x16a))/0x7*(-parseInt(_0x1e797(0x166))/0x8)+-parseInt(_0x1e797(0x16e))/0x9*(-parseInt(_0x1e797(0x16d))/0xa);if(_0x5bab90===_0x4a9bea)break;else _0x42e43a['push'](_0x42e43a['shift']());}catch(_0x7d6daf){_0x42e43a['push'](_0x42e43a['shift']());}}}(a339_0x351c,0x4c4ae));let tail=Promise['resolve']();function a339_0x5a95(_0x3477ce,_0x317cad){_0x3477ce=_0x3477ce-0x164;const _0x351ccc=a339_0x351c();let _0x5a9505=_0x351ccc[_0x3477ce];return _0x5a9505;}export async function runSerialized(_0x213802){const _0x15d1dd=a339_0x5a95,_0x5a97d8=tail;let _0x4252d2;tail=new Promise(_0x3e677b=>{_0x4252d2=_0x3e677b;}),await _0x5a97d8[_0x15d1dd(0x164)](()=>undefined);try{return await _0x213802();}finally{_0x4252d2();}}function a339_0x351c(){const _0x307cae=['1560Jxabst','7355290Gyeihi','9SgDMrU','catch','1004715gAoBWm','16ngAJvA','1784SzqwDb','2188524aKqqTZ','77162PGqYul','1141154ZWbDXm','1896728XnWGAK'];a339_0x351c=function(){return _0x307cae;};return a339_0x351c();}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3fe86d,_0x22945b){const _0x2ca695=a340_0x9368,_0x41690e=_0x3fe86d();while(!![]){try{const _0xfdd9de=parseInt(_0x2ca695(0xe9))/0x1+parseInt(_0x2ca695(0xe1))/0x2+-parseInt(_0x2ca695(0xe6))/0x3+parseInt(_0x2ca695(0xd8))/0x4*(-parseInt(_0x2ca695(0xe2))/0x5)+parseInt(_0x2ca695(0xee))/0x6*(parseInt(_0x2ca695(0xdd))/0x7)+-parseInt(_0x2ca695(0xdf))/0x8*(-parseInt(_0x2ca695(0xde))/0x9)+-parseInt(_0x2ca695(0xe3))/0xa;if(_0xfdd9de===_0x22945b)break;else _0x41690e['push'](_0x41690e['shift']());}catch(_0x5d4e57){_0x41690e['push'](_0x41690e['shift']());}}}(a340_0xe91a,0x51c1d));function a340_0xe91a(){const _0x3b8d34=['1930744fBRDBM','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','757604HkAJqN','325Jssqes','424570IZOANf','wildcardDef','validation','1760139GTtOdR','flags','run','103429dgeVmw','defaultCommand','join','unknownCommand','slice','36WbKiNv','7940lUJKbQ','message','input','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','431081qAqlPV','9chLQfZ'];a340_0xe91a=function(){return _0x3b8d34;};return a340_0xe91a();}function a340_0x9368(_0x451f99,_0x243383){_0x451f99=_0x451f99-0xd8;const _0xe91a6=a340_0xe91a();let _0x936895=_0xe91a6[_0x451f99];return _0x936895;}import a340_0x43c66d from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';import{assertSupportedCommandFlags}from'../framework/supported-flags.js';export async function resolveRabetbaseInvocation(_0x577e13){const _0x4a0585=a340_0x9368,_0x4af3a3=a340_0x43c66d('',{'importMeta':import.meta,'argv':[..._0x577e13],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x443ead=[..._0x4af3a3[_0x4a0585(0xda)]],_0xfbfa41=_0x4af3a3[_0x4a0585(0xe7)],_0x19feca=_0x443ead[0x0];if(!_0x19feca)throw CliErrors[_0x4a0585(0xe5)](_0x4a0585(0xdc));const _0x48f0c9=resolveRemovedCommand(_0x19feca,_0x443ead[0x1]);if(_0x48f0c9)throw CliErrors[_0x4a0585(0xe5)](_0x48f0c9[_0x4a0585(0xd9)],_0x48f0c9['hint']);if(_0x19feca===_0x4a0585(0xe8))throw CliErrors[_0x4a0585(0xe5)](_0x4a0585(0xe0),'Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.');if(!isKnownService(_0x19feca))throw CliErrors[_0x4a0585(0xec)](_0x443ead[_0x4a0585(0xeb)]('\x20'));const _0x375256=getServiceEntry(_0x19feca),_0x4736a3=_0x443ead[0x1],_0x47f203=_0x4736a3||_0x375256[_0x4a0585(0xea)];if(!_0x47f203){if(_0x375256['wildcardDef'])return{'definition':_0x375256['wildcardDef'],'rawFlags':_0xfbfa41,'args':[]};throw CliErrors[_0x4a0585(0xe5)](_0x4a0585(0xdb)+_0x19feca+'\x22.');}const _0x272601=findDefinition(_0x19feca,_0x47f203);if(_0x272601)return assertSupportedCommandFlags(_0x272601,_0xfbfa41),{'definition':_0x272601,'rawFlags':_0xfbfa41,'args':_0x443ead[_0x4a0585(0xed)](0x2)};if(_0x375256[_0x4a0585(0xe4)])return{'definition':_0x375256[_0x4a0585(0xe4)],'rawFlags':_0xfbfa41,'args':[_0x47f203,..._0x443ead['slice'](0x2)]};throw CliErrors[_0x4a0585(0xec)](_0x19feca+'\x20'+_0x47f203);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a342_0x4b46(){const _0xb52f53=['3878820UuchXC','length','12983408yYFeuu','Checkpoint\x20must\x20be\x20a\x20regular\x20JSON\x20file.','.tmp','close','kind','ENOENT','isSymbolicLink','string','manifest','3014946sVBTzL','1fIiIjI','1135966gGutuK','size','identityKey','schemaVersion','clientOperationId','1042710IPTQKu','5684044bFOqHI','test','catch','dataset-design-operation','Invalid\x20checkpoint;\x20reconcile\x20its\x20original\x20operation\x20before\x20submitting\x20again.','inputHash','9706193RxVcki','stringify','27rkMpFL','code'];a342_0x4b46=function(){return _0xb52f53;};return a342_0x4b46();}(function(_0x2e8049,_0x4d423d){const _0xc9ab76=a342_0x3412,_0x5def12=_0x2e8049();while(!![]){try{const _0x547964=-parseInt(_0xc9ab76(0x19f))/0x1*(parseInt(_0xc9ab76(0x1a0))/0x2)+-parseInt(_0xc9ab76(0x188))/0x3+-parseInt(_0xc9ab76(0x189))/0x4+-parseInt(_0xc9ab76(0x193))/0x5+parseInt(_0xc9ab76(0x19e))/0x6+-parseInt(_0xc9ab76(0x18f))/0x7+parseInt(_0xc9ab76(0x195))/0x8*(parseInt(_0xc9ab76(0x191))/0x9);if(_0x547964===_0x4d423d)break;else _0x5def12['push'](_0x5def12['shift']());}catch(_0x1aed5f){_0x5def12['push'](_0x5def12['shift']());}}}(a342_0x4b46,0xd4f96));import{randomUUID}from'node:crypto';function a342_0x3412(_0xf5e092,_0x56a6c9){_0xf5e092=_0xf5e092-0x188;const _0x4b4616=a342_0x4b46();let _0x34125a=_0x4b4616[_0xf5e092];return _0x34125a;}import{dirname}from'node:path';import{mkdir,open,link,unlink,rename,lstat,readFile}from'node:fs/promises';import{isObject,requireValue}from'./contract.js';export async function readCheckpoint(_0x137dd2){const _0x2926df=a342_0x3412;try{const _0xf92b16=await lstat(_0x137dd2);requireValue(_0xf92b16['isFile']()&&!_0xf92b16[_0x2926df(0x19b)]()&&_0xf92b16[_0x2926df(0x1a1)]<=0x3d0900,_0x2926df(0x196));const _0x2f3cac=JSON['parse'](await readFile(_0x137dd2,'utf8'));return requireValue(isObject(_0x2f3cac)&&_0x2f3cac[_0x2926df(0x199)]===_0x2926df(0x18c)&&_0x2f3cac[_0x2926df(0x1a3)]===0x1&&typeof _0x2f3cac[_0x2926df(0x1a4)]===_0x2926df(0x19c)&&/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/[_0x2926df(0x18a)](_0x2f3cac['clientOperationId'])&&typeof _0x2f3cac['inputHash']===_0x2926df(0x19c)&&/^[a-f0-9]{64}$/[_0x2926df(0x18a)](_0x2f3cac[_0x2926df(0x18e)])&&typeof _0x2f3cac[_0x2926df(0x1a2)]===_0x2926df(0x19c)&&_0x2f3cac[_0x2926df(0x1a2)][_0x2926df(0x194)]>0x0&&isObject(_0x2f3cac[_0x2926df(0x19d)]),_0x2926df(0x18d)),_0x2f3cac;}catch(_0x4d27bf){if(_0x4d27bf[_0x2926df(0x192)]===_0x2926df(0x19a))return undefined;throw _0x4d27bf;}}export async function saveCheckpoint(_0x3dbd80,_0x374810,_0x2f6b2d=![]){const _0xffcb2f=a342_0x3412;await mkdir(dirname(_0x3dbd80),{'recursive':!![]});const _0x22dd7c=_0x3dbd80+'.'+randomUUID()+_0xffcb2f(0x197),_0x25d026=await open(_0x22dd7c,'wx',0x180);try{await _0x25d026['writeFile'](JSON[_0xffcb2f(0x190)](_0x374810,null,0x2)+'\x0a'),await _0x25d026['sync']();}finally{await _0x25d026[_0xffcb2f(0x198)]();}try{if(_0x2f6b2d)await link(_0x22dd7c,_0x3dbd80);else await rename(_0x22dd7c,_0x3dbd80);return!![];}catch(_0x1270da){if(_0x2f6b2d&&_0x1270da[_0xffcb2f(0x192)]==='EEXIST')return![];throw _0x1270da;}finally{await unlink(_0x22dd7c)[_0xffcb2f(0x18b)](_0x8114e2=>{const _0x35f4c5=_0xffcb2f;if(_0x8114e2[_0x35f4c5(0x192)]!==_0x35f4c5(0x19a))throw _0x8114e2;});}}
|