@lovrabet/rabetbase-cli 2.5.13-beta.1 → 2.5.13
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 +1 -1
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2277d6,_0x9bee73){var _0xaa9f0c=a323_0x7b4d,_0x2d5e61=_0x2277d6();while(!![]){try{var _0x142ec6=-parseInt(_0xaa9f0c(0x132))/0x1*(-parseInt(_0xaa9f0c(0x135))/0x2)+parseInt(_0xaa9f0c(0x134))/0x3*(-parseInt(_0xaa9f0c(0x130))/0x4)+-parseInt(_0xaa9f0c(0x133))/0x5+-parseInt(_0xaa9f0c(0x12f))/0x6+-parseInt(_0xaa9f0c(0x137))/0x7+-parseInt(_0xaa9f0c(0x136))/0x8+parseInt(_0xaa9f0c(0x131))/0x9;if(_0x142ec6===_0x9bee73)break;else _0x2d5e61['push'](_0x2d5e61['shift']());}catch(_0x5f33a4){_0x2d5e61['push'](_0x2d5e61['shift']());}}}(a323_0x4b15,0x2b3b6));export{runCommand}from'../framework/runner.js';function a323_0x7b4d(_0x4ed1ea,_0x20629f){_0x4ed1ea=_0x4ed1ea-0x12f;var _0x4b1519=a323_0x4b15();var _0x7b4d9e=_0x4b1519[_0x4ed1ea];return _0x7b4d9e;}export{parseFlags,validateFlags}from'../framework/flags.js';function a323_0x4b15(){var _0x117f75=['4HSeZsl','8453718kcVZPF','3IcbTxf','1003570HVWlLO','1019778HCriEO','13986lkLoxr','113184JtpKba','55587eSlBpj','1322844KJhzIU'];a323_0x4b15=function(){return _0x117f75;};return a323_0x4b15();}export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';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(_0x212d43,_0x412f42){const _0xd8c00b=a324_0x4bec,_0xc98d34=_0x212d43();while(!![]){try{const _0x5be70b=parseInt(_0xd8c00b(0xc0))/0x1*(-parseInt(_0xd8c00b(0xc4))/0x2)+parseInt(_0xd8c00b(0xb7))/0x3+-parseInt(_0xd8c00b(0xd1))/0x4+-parseInt(_0xd8c00b(0xb8))/0x5*(-parseInt(_0xd8c00b(0xb9))/0x6)+-parseInt(_0xd8c00b(0xc1))/0x7+-parseInt(_0xd8c00b(0xbf))/0x8+parseInt(_0xd8c00b(0xba))/0x9;if(_0x5be70b===_0x412f42)break;else _0xc98d34['push'](_0xc98d34['shift']());}catch(_0x22b256){_0xc98d34['push'](_0xc98d34['shift']());}}}(a324_0x24d6,0x2edb9));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';function a324_0x4bec(_0x13ac57,_0x108099){_0x13ac57=_0x13ac57-0xb6;const _0x24d623=a324_0x24d6();let _0x4becee=_0x24d623[_0x13ac57];return _0x4becee;}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x464ea3,_0x289a0b){const _0x3c4b35=a324_0x4bec,_0x4ca60d=_0x464ea3[_0x3c4b35(0xbb)],{_notice:_0x17058a,..._0x349119}=_0x464ea3;void _0x17058a,baseFormatOutput(_0x349119,_0x289a0b),_0x289a0b[_0x3c4b35(0xb6)]===_0x3c4b35(0xcc)&&printPrettyNotice(_0x4ca60d);}export function formatCliError(_0x4c1b87,_0x2880f3){const _0xcce343=a324_0x4bec;if(_0x2880f3[_0xcce343(0xb6)]==='pretty')return![];const _0x5daae0=_0x4c1b87[_0xcce343(0xd0)],_0x45f24e={'ok':![],'command':_0x2880f3['command'],'risk':_0x2880f3[_0xcce343(0xc2)],'data':_0x5daae0??null,'error':{'code':_0x4c1b87[_0xcce343(0xce)],'message':_0x4c1b87['message'],..._0x4c1b87['hint']?{'hint':_0x4c1b87['hint']}:{}}},_0x2db931=_0x2880f3[_0xcce343(0xb6)]===_0xcce343(0xbc)?JSON[_0xcce343(0xc5)](_0x45f24e,null,0x2):JSON['stringify'](_0x45f24e);let _0x40dc90=_0x2db931;if(_0x2880f3[_0xcce343(0xbe)]?.[_0xcce343(0xca)]())try{_0x40dc90=applyJqFilter(_0x2db931,_0x2880f3[_0xcce343(0xbe)]);}catch(_0x5d023a){const _0x2e5cd=_0x5d023a instanceof CliError?_0x5d023a:CliErrors[_0xcce343(0xcd)](_0xcce343(0xc9)+(_0x5d023a instanceof Error?_0x5d023a[_0xcce343(0xcf)]:String(_0x5d023a))),_0x46b1c7={..._0x45f24e,'error':{'code':_0x2e5cd[_0xcce343(0xce)],'message':_0x2e5cd[_0xcce343(0xcf)],..._0x2e5cd['hint']?{'hint':_0x2e5cd[_0xcce343(0xbd)]}:{},'cause':_0x45f24e[_0xcce343(0xc8)]}};_0x40dc90=_0x2880f3[_0xcce343(0xb6)]===_0xcce343(0xbc)?JSON[_0xcce343(0xc5)](_0x46b1c7,null,0x2):JSON[_0xcce343(0xc5)](_0x46b1c7);}return process[_0xcce343(0xcb)]['write'](_0x40dc90[_0xcce343(0xc7)]('\x0a')?_0x40dc90:_0x40dc90+'\x0a'),!![];}function a324_0x24d6(){const _0x11892a=['4817PyjVDu','1250151fOxVNR','risk','url','48UWVCXW','stringify','update','endsWith','error','jq:\x20','trim','stdout','pretty','validation','code','message','data','159452mRXVel','format','1148577CtgyxK','1154705LxaALh','6rjpbHz','382437HxnGBr','_notice','json','hint','jqFilter','1042400ZCHIWq'];a324_0x24d6=function(){return _0x11892a;};return a324_0x24d6();}function printPrettyNotice(_0x49db1c){const _0x3b70de=a324_0x4bec;if(!_0x49db1c?.[_0x3b70de(0xc6)])return;console['error'](_0x49db1c[_0x3b70de(0xc6)][_0x3b70de(0xcf)]+'\x20('+_0x49db1c[_0x3b70de(0xc6)][_0x3b70de(0xc3)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a325_0x20ed(){var _0x2947f9=['1261474Mtnksi','6307UgeWDJ','2534208MqFBtr','33468VgClIV','6141416BOAjOQ','602704AAeBru','10284LaZcTf','161832VSHEYB','1090MdqQMs','6IjHeVQ','55zpDXpq','9EpnSnW'];a325_0x20ed=function(){return _0x2947f9;};return a325_0x20ed();}(function(_0x3597a3,_0x285108){var _0x4143a5=a325_0x43b7,_0x38f827=_0x3597a3();while(!![]){try{var _0x36b002=-parseInt(_0x4143a5(0x69))/0x1+-parseInt(_0x4143a5(0x70))/0x2*(parseInt(_0x4143a5(0x6d))/0x3)+parseInt(_0x4143a5(0x67))/0x4*(parseInt(_0x4143a5(0x6e))/0x5)+parseInt(_0x4143a5(0x6a))/0x6*(parseInt(_0x4143a5(0x71))/0x7)+parseInt(_0x4143a5(0x68))/0x8*(-parseInt(_0x4143a5(0x6f))/0x9)+parseInt(_0x4143a5(0x6c))/0xa*(parseInt(_0x4143a5(0x6b))/0xb)+parseInt(_0x4143a5(0x72))/0xc;if(_0x36b002===_0x285108)break;else _0x38f827['push'](_0x38f827['shift']());}catch(_0x133400){_0x38f827['push'](_0x38f827['shift']());}}}(a325_0x20ed,0xc8058));function a325_0x43b7(_0x7c016e,_0x4a453b){_0x7c016e=_0x7c016e-0x67;var _0x20ed5f=a325_0x20ed();var _0x43b73c=_0x20ed5f[_0x7c016e];return _0x43b73c;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a326_0xcfa1(){const _0x2716db=['name','filePath','103206uQZWWE','7550672noJZXF','some','.\x20Run\x20`','Unknown\x20alias\x20\x22','alias','5853504mnVSJt','`\x20requires\x20either\x20--code\x20or\x20--alias.','1623054jmiTDC','21RvNmoH','code','2786490nlDXGA','length','string','Available\x20aliases:\x20','1649554bUfmkH','5004960nhtvVG','type','flags','validation','profileName'];a326_0xcfa1=function(){return _0x2716db;};return a326_0xcfa1();}(function(_0x11e808,_0x3361b9){const _0xb3c29d=a326_0x2db7,_0x3c3ec2=_0x11e808();while(!![]){try{const _0x399e5e=-parseInt(_0xb3c29d(0x92))/0x1+parseInt(_0xb3c29d(0xa1))/0x2+parseInt(_0xb3c29d(0x9d))/0x3+-parseInt(_0xb3c29d(0x98))/0x4+-parseInt(_0xb3c29d(0xa2))/0x5+parseInt(_0xb3c29d(0x9a))/0x6*(parseInt(_0xb3c29d(0x9b))/0x7)+parseInt(_0xb3c29d(0x93))/0x8;if(_0x399e5e===_0x3361b9)break;else _0x3c3ec2['push'](_0x3c3ec2['shift']());}catch(_0x67f497){_0x3c3ec2['push'](_0x3c3ec2['shift']());}}}(a326_0xcfa1,0xe5d52));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a326_0x2db7(_0x38b0f0,_0x5acf5a){_0x38b0f0=_0x38b0f0-0x90;const _0xcfa13f=a326_0xcfa1();let _0x2db710=_0xcfa13f[_0x38b0f0];return _0x2db710;}import{resolveApiModelSource}from'../api/model-source.js';export function resolveAliasToCode(_0x232960,_0x4777c4,_0x46158e,_0x13cfa7,_0x106ea0,_0x5c57e0){const _0x3df49e=a326_0x2db7,_0x41bf30=_0x232960['flags']['some'](_0x455e19=>_0x455e19['name']===_0x3df49e(0x9c)&&_0x455e19[_0x3df49e(0xa3)]===_0x3df49e(0x9f)),_0x2a2609=_0x232960[_0x3df49e(0xa4)][_0x3df49e(0x94)](_0x3a2bb0=>_0x3a2bb0[_0x3df49e(0x90)]==='alias'&&_0x3a2bb0[_0x3df49e(0xa3)]==='string');if(!_0x41bf30||!_0x2a2609)return;const _0x9475e6=_0x4777c4[_0x3df49e(0x9c)]?String(_0x4777c4['code']):'',_0x6c6552=_0x4777c4['alias']?String(_0x4777c4[_0x3df49e(0x97)]):'';if(!_0x9475e6&&!_0x6c6552)throw CliErrors['validation']('`'+_0x13cfa7+_0x3df49e(0x99));if(_0x6c6552&&!_0x9475e6){const _0x1ce270=resolveApiModelSource(_0x46158e,_0x106ea0,_0x5c57e0),_0x4b299f=resolveAlias(_0x46158e,_0x6c6552,undefined,_0x1ce270[_0x3df49e(0x91)],_0x1ce270[_0x3df49e(0xa6)]);if(!_0x4b299f){const _0x5c76c2=listAliases(_0x46158e,undefined,_0x1ce270[_0x3df49e(0x91)],_0x1ce270['profileName'])['map'](_0x1b774e=>_0x1b774e['alias']),_0x2510d9=_0x5c76c2[_0x3df49e(0x9e)]?_0x3df49e(0xa0)+_0x5c76c2['join'](',\x20'):'No\x20model\x20aliases\x20found\x20in\x20'+_0x46158e+_0x3df49e(0x95)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors[_0x3df49e(0xa5)](_0x3df49e(0x96)+_0x6c6552+'\x22.\x20'+_0x2510d9);}_0x4777c4[_0x3df49e(0x9c)]=_0x4b299f;}}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x3d83c4,_0x389425){const _0x38f0bb=a327_0x1013,_0x2cc144=_0x3d83c4();while(!![]){try{const _0x2b4edc=-parseInt(_0x38f0bb(0xc1))/0x1*(-parseInt(_0x38f0bb(0xae))/0x2)+parseInt(_0x38f0bb(0x9d))/0x3+parseInt(_0x38f0bb(0xaa))/0x4+-parseInt(_0x38f0bb(0xf0))/0x5+-parseInt(_0x38f0bb(0xc3))/0x6+parseInt(_0x38f0bb(0xcf))/0x7*(-parseInt(_0x38f0bb(0xc4))/0x8)+parseInt(_0x38f0bb(0xa4))/0x9*(parseInt(_0x38f0bb(0xbe))/0xa);if(_0x2b4edc===_0x389425)break;else _0x2cc144['push'](_0x2cc144['shift']());}catch(_0x21dd50){_0x2cc144['push'](_0x2cc144['shift']());}}}(a327_0x5ef2,0xc96c9));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_0x5810a7}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';function a327_0x5ef2(){const _0x5ca53d=['trim','1620276iTFKce','16vESZYm','defaultPageSize','find','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','Set\x20appcode\x20via\x20`','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','RABETBASE_APPCODE','resolveAppCode','appcode','pageSize','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','2310553kyEFbJ','authRequired','cancelled','appCode','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','apiDir','isNonInteractive','resolveApiDomain','validation','defaultVerbose','filter','Available:\x20','pretty','configMissing','requiresAppCode','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','keys','confirmHighRisk','format','some','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','join','replace','object','rawFlags','selectedAppName','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','doctor','production','defaultApp','resolveCookie','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','1661605SGSssS','_notice','risk','1633584mTIOOV','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','hasFormat','entries','name','../constant/domain.js','none','349524DCCUiv','cookie','meowKey','apps','nonInteractive','rejectedFlags','1444132FAVJPy','../core/api-client.js','LOVRABET_APPCODE','verbose','2YLIqGx','hint','\x20\x20\x20Continue?\x20[y/N]\x20','mergedCli','riskLevel','Current\x20resolved\x20appcode\x20is\x20\x22','map','schema','includes','toUpperCase','explicitAppName','execute','\x0a\x20\x20','length','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','⚠\x20\x20High-risk\x20operation:\x20','290fswQcC','currentApp','all','55753PYEfvu'];a327_0x5ef2=function(){return _0x5ca53d;};return a327_0x5ef2();}import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x2bb7e6){const _0x35d49d=a327_0x1013;return typeof _0x2bb7e6==='string'&&_0x2bb7e6[_0x35d49d(0xc2)]()?_0x2bb7e6['trim']():undefined;}function resolveEnvAppCode(){const _0x111f3b=a327_0x1013,_0x19ae0b=stringFlag(process.env.RABETBASE_APPCODE);if(_0x19ae0b)return{'name':_0x111f3b(0xca),'value':_0x19ae0b};const _0x56c9f9=stringFlag(process.env.LOVRABET_APPCODE);if(_0x56c9f9)return{'name':_0x111f3b(0xac),'value':_0x56c9f9};return undefined;}function hasExplicitAppCode(_0x4b3cbf,_0x21408c){const _0xd36831=a327_0x1013;return!!(stringFlag(_0x4b3cbf[_0xd36831(0xcc)])||stringFlag(_0x21408c[_0xd36831(0xcc)]));}function assertEnvAppCodeNotIgnored(_0x50cf93,_0x2f714e,_0x435d9e){const _0x31d4b5=a327_0x1013;if(!_0x2f714e||_0x435d9e||_0x50cf93===_0x2f714e['value'])return;const _0x227377=_0x50cf93?_0x31d4b5(0xb3)+_0x50cf93+'\x22.':_0x31d4b5(0xea);throw CliErrors[_0x31d4b5(0xd8)](_0x2f714e[_0x31d4b5(0xa1)]+'='+_0x2f714e['value']+_0x31d4b5(0xe4)+_0x227377+'\x20'+('To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$'+_0x2f714e[_0x31d4b5(0xa1)]+'\x22.'));}export function createPipelineEnv(_0xbe19c8,_0x1513e7,_0x2b35ca=[]){const _0x262ac5=a327_0x1013;return{'rawFlags':_0x1513e7,'args':_0x2b35ca,'resolveAppCode':()=>_0xbe19c8[_0x262ac5(0xd2)],'resolveCookie':()=>_0xbe19c8[_0x262ac5(0xa5)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a327_0x5810a7(_0x1513e7),'defaultFormat':_0xbe19c8[_0x262ac5(0xe2)],'defaultPageSize':_0xbe19c8[_0x262ac5(0xcd)],'defaultVerbose':_0xbe19c8[_0x262ac5(0xad)],'apiDir':_0xbe19c8[_0x262ac5(0xd5)],'riskLevel':_0xbe19c8[_0x262ac5(0xb2)],'selectedAppName':_0xbe19c8[_0x262ac5(0xb8)],'mergedCli':{'defaultApp':_0xbe19c8[_0x262ac5(0xed)],'currentApp':_0xbe19c8[_0x262ac5(0xbf)],'appCode':_0xbe19c8[_0x262ac5(0xd2)],'apps':_0xbe19c8[_0x262ac5(0xa7)]}};}export function createRabetbaseRunnerAdapter(_0x176603={}){const _0x52c1dc=a327_0x1013;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x52c1dc(0xda)](_0x49f185=>PIPELINE_FLAG_NAMES['has'](_0x49f185['name']))[_0x52c1dc(0xb4)](({name:_0x854ea3,type:_0x44f1b4,description:_0x4dcb26})=>({'name':_0x854ea3,'type':_0x44f1b4,'description':_0x4dcb26})),'formatOutput':_0x176603['formatOutput']??formatOutput,'getCommandLabel'(_0x5d2bae){return CLI_BIN_NAME+'\x20'+_0x5d2bae['service']+'\x20'+_0x5d2bae['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x144060,{def:_0x57f7b7}){const _0x47ccf0=_0x52c1dc,_0x2bc258=_0x144060[_0x47ccf0(0xb6)]('Edit\x20the\x20config\x20file\x20manually')?'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'+_0x57f7b7[_0x47ccf0(0xf2)]+_0x47ccf0(0xce)+_0x47ccf0(0xd3);return CliErrors[_0x47ccf0(0xd8)](_0x144060+_0x47ccf0(0xba)+_0x2bc258);}},async 'prepare'(_0x32c444,_0x45d36a,_0x5178b4,_0x24e71e){const _0x5cd0d8=_0x52c1dc,_0x459e30=_0x45d36a['apiDir']||DEFAULT_API_DIR,_0x588770=hasExplicitAppCode(_0x5178b4,_0x45d36a['rawFlags']),_0x5aca64=stringFlag(_0x5178b4['appcode'])||stringFlag(_0x45d36a[_0x5cd0d8(0xe8)][_0x5cd0d8(0xcc)]),_0x584eb3=_0x45d36a[_0x5cd0d8(0xb1)]?.['apps']??{},_0x42cc08=_0x45d36a['selectedAppName']||_0x45d36a[_0x5cd0d8(0xb1)]?.[_0x5cd0d8(0xbf)]||_0x45d36a[_0x5cd0d8(0xb1)]?.[_0x5cd0d8(0xed)],_0x391762=_0x5aca64?Object[_0x5cd0d8(0xa0)](_0x584eb3)[_0x5cd0d8(0xda)](([,_0x5a58b0])=>_0x5a58b0['appcode']===_0x5aca64)[_0x5cd0d8(0xb4)](([_0x220a8f])=>_0x220a8f):[];if(_0x391762[_0x5cd0d8(0xbb)]>0x1&&!_0x45d36a[_0x5cd0d8(0xe9)])throw CliErrors[_0x5cd0d8(0xd8)]('AppCode\x20\x22'+_0x5aca64+'\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20'+_0x391762[_0x5cd0d8(0xe5)](',\x20')+'.',_0x5cd0d8(0xdf));resolveAliasToCode(_0x32c444,_0x5178b4,_0x459e30,_0x24e71e,_0x45d36a['resolveAppCode'](),_0x42cc08);const _0x3dd856=resolveCommandAuthMode(_0x32c444);let _0x2a23b0='';if(_0x3dd856!==_0x5cd0d8(0xa3)){_0x2a23b0=_0x45d36a[_0x5cd0d8(0xee)]()||'';if(!_0x2a23b0){if(_0x3dd856==='required')throw CliErrors[_0x5cd0d8(0xd0)]();}else{const {setActiveCookie:_0x209cc4}=await import(_0x5cd0d8(0xab));_0x209cc4(_0x2a23b0);}}const _0x97204f=_0x45d36a[_0x5cd0d8(0xcb)]()??'';if(_0x32c444[_0x5cd0d8(0xde)]!==![]){if(!_0x588770&&_0x42cc08&&!_0x584eb3[_0x42cc08]){const _0x37826d=Object[_0x5cd0d8(0xe0)](_0x584eb3);throw CliErrors['validation']('App\x20\x22'+_0x42cc08+'\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.',_0x37826d[_0x5cd0d8(0xbb)]>0x0?_0x5cd0d8(0xdb)+_0x37826d[_0x5cd0d8(0xe5)](',\x20')+_0x5cd0d8(0xbc)+CLI_BIN_NAME+_0x5cd0d8(0xd4):'Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x5cd0d8(0xd4));}assertEnvAppCodeNotIgnored(_0x97204f,resolveEnvAppCode(),_0x588770);if(!_0x97204f){const _0x4f1a11=Object[_0x5cd0d8(0xe0)](_0x584eb3);if(!_0x42cc08&&_0x4f1a11[_0x5cd0d8(0xbb)]>0x1)throw CliErrors['configMissing'](_0x5cd0d8(0xc7)+CLI_BIN_NAME+_0x5cd0d8(0x9e)+_0x4f1a11[_0x5cd0d8(0xe5)](',\x20')+'.');throw CliErrors[_0x5cd0d8(0xdd)](_0x5cd0d8(0xc8)+CLI_BIN_NAME+_0x5cd0d8(0xc9));}}return{'defaults':{'booleans':{'verbose':_0x45d36a[_0x5cd0d8(0xd9)]},'numbers':{'pagesize':_0x45d36a[_0x5cd0d8(0xc5)]}},'extras':{'appCode':_0x97204f,'cookie':_0x2a23b0,'apiDomain':_0x45d36a[_0x5cd0d8(0xd7)](),'apiDir':_0x459e30,'selectedAppName':_0x45d36a['selectedAppName'],'mergedCli':_0x45d36a[_0x5cd0d8(0xb1)]}};},'confirmHighRisk':_0x176603[_0x52c1dc(0xe1)]??(async({env:_0x175f49,commandLabel:_0x225a87})=>{const _0x129362=_0x52c1dc;if(_0x175f49[_0x129362(0xd6)])throw CliErrors[_0x129362(0xd8)]('High-risk\x20operation\x20`'+_0x225a87+_0x129362(0xef));await requireConfirmationPrompt({'lines':[_0x129362(0xbd)+_0x225a87,_0x129362(0xb0)],'createCancelledError':_0x5bde3c=>CliErrors[_0x129362(0xd1)](_0x5bde3c)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x21a14c=a327_0x1013,{clearActiveCookie:_0x7c538a}=await import(_0x21a14c(0xab));_0x7c538a();}export async function finalizeRabetbaseRuntimeState(){const _0x4c4166=a327_0x1013;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x3e61d8},{initEnv:_0x4ca3e9}]=await Promise[_0x4c4166(0xc0)]([import(_0x4c4166(0xa2)),import('../constant/env.js')]);_0x3e61d8(),_0x4ca3e9(_0x4c4166(0xec));}}export async function runCommand(_0x356c0a,_0x5614d7,_0x4a92b5=terminalRunnerAdapter){const _0x2912d2=a327_0x1013;assertRejectedFlags(_0x356c0a,_0x5614d7[_0x2912d2(0xe8)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x356c0a)?withUpdateNotice(_0x356c0a):_0x356c0a,_0x5614d7,_0x4a92b5);}function assertRejectedFlags(_0x29321e,_0x181f23){const _0x6977a3=a327_0x1013;for(const _0x12d927 of _0x29321e[_0x6977a3(0xa9)]??[]){const _0x137f5f=GLOBAL_FLAGS[_0x6977a3(0xc6)](_0x401fde=>_0x401fde[_0x6977a3(0xa1)]===_0x12d927['name']),_0x51ec1c=new Set([_0x12d927[_0x6977a3(0xa1)],toCamelCase(_0x12d927[_0x6977a3(0xa1)]),_0x137f5f?.[_0x6977a3(0xa6)]]),_0x451eb4=[..._0x51ec1c][_0x6977a3(0xe3)](_0x1d01cd=>{if(!_0x1d01cd)return![];const _0x795c0=_0x181f23[_0x1d01cd];return _0x795c0!==undefined&&_0x795c0!==null&&_0x795c0!==![];});if(_0x451eb4)throw CliErrors['validation'](_0x12d927['message'],_0x12d927[_0x6977a3(0xaf)]);}}function a327_0x1013(_0x428924,_0x8948cc){_0x428924=_0x428924-0x9d;const _0x5ef2b6=a327_0x5ef2();let _0x101307=_0x5ef2b6[_0x428924];return _0x101307;}function toCamelCase(_0x2c548c){const _0x5081d0=a327_0x1013;return _0x2c548c[_0x5081d0(0xe6)](/-([a-z])/g,(_0x25e603,_0x3e0a2e)=>_0x3e0a2e[_0x5081d0(0xb7)]());}function shouldAttachUpdateNotice(_0x58d51b){const _0x17a9e7=a327_0x1013;if(_0x58d51b[_0x17a9e7(0x9f)]===![])return![];return!['update',_0x17a9e7(0xb5),_0x17a9e7(0xeb)][_0x17a9e7(0xb6)](_0x58d51b['service']);}function withUpdateNotice(_0x5eba4a){return{..._0x5eba4a,async 'execute'(_0x43b31a){const _0x61ca35=a327_0x1013,_0x1e5bde=shouldResolveUpdateNotice(_0x43b31a)?resolveLatestUpdateNotice()['catch'](()=>null):Promise['resolve'](null),_0xe2b29e=await _0x5eba4a[_0x61ca35(0xb9)](_0x43b31a);return attachUpdateNotice(_0xe2b29e,await _0x1e5bde);}};}function shouldResolveUpdateNotice(_0x5eb733){const _0x3ce4f4=a327_0x1013;return _0x5eb733[_0x3ce4f4(0xe2)]===_0x3ce4f4(0xdc)&&!_0x5eb733[_0x3ce4f4(0xa8)];}function attachUpdateNotice(_0x447f3e,_0x4a992a){const _0x2b6425=a327_0x1013;if(!_0x4a992a||!_0x447f3e||typeof _0x447f3e!==_0x2b6425(0xe7))return _0x447f3e;const _0x1fa73b=_0x447f3e,_0x935d30=typeof _0x1fa73b[_0x2b6425(0xf1)]==='object'&&_0x1fa73b['_notice']!==null?_0x1fa73b['_notice']:{};return{..._0x1fa73b,'_notice':{..._0x935d30,'update':_0x4a992a}};}
|
|
1
|
+
(function(_0x4ba831,_0x5c3b37){const _0x30c3de=a327_0x5874,_0x156833=_0x4ba831();while(!![]){try{const _0x22d110=parseInt(_0x30c3de(0x91))/0x1*(-parseInt(_0x30c3de(0xa5))/0x2)+-parseInt(_0x30c3de(0xa1))/0x3*(parseInt(_0x30c3de(0x95))/0x4)+-parseInt(_0x30c3de(0x9c))/0x5+parseInt(_0x30c3de(0xa8))/0x6+-parseInt(_0x30c3de(0xdf))/0x7+-parseInt(_0x30c3de(0xbe))/0x8*(-parseInt(_0x30c3de(0x9e))/0x9)+-parseInt(_0x30c3de(0xce))/0xa*(-parseInt(_0x30c3de(0xb8))/0xb);if(_0x22d110===_0x5c3b37)break;else _0x156833['push'](_0x156833['shift']());}catch(_0x32e6b9){_0x156833['push'](_0x156833['shift']());}}}(a327_0x34de,0xcad1e));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_0x320964}from'../utils/is-non-interactive.js';function a327_0x34de(){const _0x5f5306=['authRequired','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','cancelled','join','defaultVerbose','defaultPageSize','doctor','hint','name','1450ZFzdXf','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','riskLevel','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','catch','configMissing','confirmHighRisk','High-risk\x20operation\x20`','execute','\x20\x20\x20Continue?\x20[y/N]\x20','appcode','App\x20\x22','formatOutput','command','\x0a\x20\x20','currentApp','3946257YwPbDu','toUpperCase','Edit\x20the\x20config\x20file\x20manually','has','includes','value','none','apps','Current\x20resolved\x20appcode\x20is\x20\x22','defaultApp','Set\x20appcode\x20via\x20`','15akuTyF','explicitAppName','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','schema','1763668WVsAaE','production','isNonInteractive','nonInteractive','entries','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','325155ekAIov','resolveAppCode','905814pAJoqk','rejectedFlags','find','3lfKPMh','string','verbose','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','36318cALCOB','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','appCode','3006678qDiFAP','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','mergedCli','rawFlags','validation','resolveCookie','object','AppCode\x20\x22','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','service','all','../core/api-client.js','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','../constant/domain.js','length','hasFormat','119185yogXpJ','meowKey','filter','trim','map','resolve','8MsXOnX','keys','RABETBASE_APPCODE','pageSize','_notice','format','selectedAppName'];a327_0x34de=function(){return _0x5f5306;};return a327_0x34de();}import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x2efea6){const _0x1a05ef=a327_0x5874;return typeof _0x2efea6===_0x1a05ef(0xa2)&&_0x2efea6[_0x1a05ef(0xbb)]()?_0x2efea6[_0x1a05ef(0xbb)]():undefined;}function resolveEnvAppCode(){const _0x4c3429=a327_0x5874,_0x517b3e=stringFlag(process.env.RABETBASE_APPCODE);if(_0x517b3e)return{'name':_0x4c3429(0xc0),'value':_0x517b3e};const _0x5b0d48=stringFlag(process.env.LOVRABET_APPCODE);if(_0x5b0d48)return{'name':'LOVRABET_APPCODE','value':_0x5b0d48};return undefined;}function hasExplicitAppCode(_0x3b33a8,_0x6306dc){const _0x2aecd1=a327_0x5874;return!!(stringFlag(_0x3b33a8[_0x2aecd1(0xd9)])||stringFlag(_0x6306dc[_0x2aecd1(0xd9)]));}function assertEnvAppCodeNotIgnored(_0x197ec8,_0x3f9c75,_0x35dba4){const _0x554b25=a327_0x5874;if(!_0x3f9c75||_0x35dba4||_0x197ec8===_0x3f9c75[_0x554b25(0x8b)])return;const _0x495cc1=_0x197ec8?_0x554b25(0x8e)+_0x197ec8+'\x22.':_0x554b25(0xd2);throw CliErrors[_0x554b25(0xac)](_0x3f9c75[_0x554b25(0xcd)]+'='+_0x3f9c75[_0x554b25(0x8b)]+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0x495cc1+'\x20'+(_0x554b25(0x93)+_0x3f9c75['name']+'\x22.'));}export function createPipelineEnv(_0x26c8f1,_0x22694f,_0x2ce237=[]){const _0x2b3598=a327_0x5874;return{'rawFlags':_0x22694f,'args':_0x2ce237,'resolveAppCode':()=>_0x26c8f1[_0x2b3598(0xa7)],'resolveCookie':()=>_0x26c8f1['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a327_0x320964(_0x22694f),'defaultFormat':_0x26c8f1['format'],'defaultPageSize':_0x26c8f1[_0x2b3598(0xc1)],'defaultVerbose':_0x26c8f1[_0x2b3598(0xa3)],'apiDir':_0x26c8f1['apiDir'],'riskLevel':_0x26c8f1[_0x2b3598(0xd0)],'selectedAppName':_0x26c8f1[_0x2b3598(0x92)],'mergedCli':{'defaultApp':_0x26c8f1['defaultApp'],'currentApp':_0x26c8f1[_0x2b3598(0xde)],'appCode':_0x26c8f1[_0x2b3598(0xa7)],'apps':_0x26c8f1[_0x2b3598(0x8d)]}};}export function createRabetbaseRunnerAdapter(_0x353ee8={}){const _0x403bac=a327_0x5874;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x7b2998=>PIPELINE_FLAG_NAMES[_0x403bac(0xe2)](_0x7b2998[_0x403bac(0xcd)]))[_0x403bac(0xbc)](({name:_0x449aca,type:_0x3ae5d1,description:_0x1c7cae})=>({'name':_0x449aca,'type':_0x3ae5d1,'description':_0x1c7cae})),'formatOutput':_0x353ee8[_0x403bac(0xdb)]??formatOutput,'getCommandLabel'(_0x4f4389){const _0x2a42b6=_0x403bac;return CLI_BIN_NAME+'\x20'+_0x4f4389[_0x2a42b6(0xb1)]+'\x20'+_0x4f4389[_0x2a42b6(0xdc)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x34eb64,{def:_0x484880}){const _0x4e3892=_0x403bac,_0x189ff6=_0x34eb64[_0x4e3892(0x8a)](_0x4e3892(0xe1))?_0x4e3892(0xcf):_0x4e3892(0xd1)+_0x484880['risk']+_0x4e3892(0xb0)+'AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.';return CliErrors['validation'](_0x34eb64+_0x4e3892(0xdd)+_0x189ff6);}},async 'prepare'(_0x16b3c0,_0x1b836f,_0x1356c7,_0x13285d){const _0x508092=_0x403bac,_0x232c3b=_0x1b836f['apiDir']||DEFAULT_API_DIR,_0x5e2dc8=hasExplicitAppCode(_0x1356c7,_0x1b836f[_0x508092(0xab)]),_0x42772a=stringFlag(_0x1356c7[_0x508092(0xd9)])||stringFlag(_0x1b836f[_0x508092(0xab)]['appcode']),_0x110d75=_0x1b836f[_0x508092(0xaa)]?.['apps']??{},_0x9a415f=_0x1b836f[_0x508092(0xc4)]||_0x1b836f[_0x508092(0xaa)]?.[_0x508092(0xde)]||_0x1b836f[_0x508092(0xaa)]?.[_0x508092(0x8f)],_0x20ad9d=_0x42772a?Object[_0x508092(0x99)](_0x110d75)[_0x508092(0xba)](([,_0x25767f])=>_0x25767f['appcode']===_0x42772a)['map'](([_0x17167b])=>_0x17167b):[];if(_0x20ad9d[_0x508092(0xb6)]>0x1&&!_0x1b836f['selectedAppName'])throw CliErrors[_0x508092(0xac)](_0x508092(0xaf)+_0x42772a+'\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20'+_0x20ad9d[_0x508092(0xc8)](',\x20')+'.',_0x508092(0xb4));resolveAliasToCode(_0x16b3c0,_0x1356c7,_0x232c3b,_0x13285d,_0x1b836f[_0x508092(0x9d)](),_0x9a415f);const _0x286d8f=resolveCommandAuthMode(_0x16b3c0);let _0x3aba7b='';if(_0x286d8f!==_0x508092(0x8c)){_0x3aba7b=_0x1b836f[_0x508092(0xad)]()||'';if(!_0x3aba7b){if(_0x286d8f==='required')throw CliErrors[_0x508092(0xc5)]();}else{const {setActiveCookie:_0x5eddb8}=await import(_0x508092(0xb3));_0x5eddb8(_0x3aba7b);}}const _0x490a0a=_0x1b836f['resolveAppCode']()??'';if(_0x16b3c0['requiresAppCode']!==![]){if(!_0x5e2dc8&&_0x9a415f&&!_0x110d75[_0x9a415f]){const _0x5ea0d3=Object[_0x508092(0xbf)](_0x110d75);throw CliErrors[_0x508092(0xac)](_0x508092(0xda)+_0x9a415f+_0x508092(0xa4),_0x5ea0d3[_0x508092(0xb6)]>0x0?'Available:\x20'+_0x5ea0d3[_0x508092(0xc8)](',\x20')+_0x508092(0x9a)+CLI_BIN_NAME+_0x508092(0xa6):_0x508092(0x9b)+CLI_BIN_NAME+_0x508092(0xa6));}assertEnvAppCodeNotIgnored(_0x490a0a,resolveEnvAppCode(),_0x5e2dc8);if(!_0x490a0a){const _0x496b68=Object[_0x508092(0xbf)](_0x110d75);if(!_0x9a415f&&_0x496b68[_0x508092(0xb6)]>0x1)throw CliErrors['configMissing']('Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`'+CLI_BIN_NAME+_0x508092(0xc6)+_0x496b68[_0x508092(0xc8)](',\x20')+'.');throw CliErrors[_0x508092(0xd4)](_0x508092(0x90)+CLI_BIN_NAME+_0x508092(0xa9));}}return{'defaults':{'booleans':{'verbose':_0x1b836f[_0x508092(0xc9)]},'numbers':{'pagesize':_0x1b836f[_0x508092(0xca)]}},'extras':{'appCode':_0x490a0a,'cookie':_0x3aba7b,'apiDomain':_0x1b836f['resolveApiDomain'](),'apiDir':_0x232c3b,'selectedAppName':_0x1b836f['selectedAppName'],'mergedCli':_0x1b836f[_0x508092(0xaa)]}};},'confirmHighRisk':_0x353ee8[_0x403bac(0xd5)]??(async({env:_0x47db0c,commandLabel:_0x1d8d84})=>{const _0x4ea8f4=_0x403bac;if(_0x47db0c[_0x4ea8f4(0x97)])throw CliErrors[_0x4ea8f4(0xac)](_0x4ea8f4(0xd6)+_0x1d8d84+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x1d8d84,_0x4ea8f4(0xd8)],'createCancelledError':_0x2206af=>CliErrors[_0x4ea8f4(0xc7)](_0x2206af)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const {clearActiveCookie:_0x576b38}=await import('../core/api-client.js');_0x576b38();}export async function finalizeRabetbaseRuntimeState(){const _0x8aa3b3=a327_0x5874;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x24b5cd},{initEnv:_0x1dc6ef}]=await Promise[_0x8aa3b3(0xb2)]([import(_0x8aa3b3(0xb5)),import('../constant/env.js')]);_0x24b5cd(),_0x1dc6ef(_0x8aa3b3(0x96));}}export async function runCommand(_0x17ad7c,_0x4d8b9c,_0x12ecef=terminalRunnerAdapter){const _0x28a42f=a327_0x5874;assertRejectedFlags(_0x17ad7c,_0x4d8b9c[_0x28a42f(0xab)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x17ad7c)?withUpdateNotice(_0x17ad7c):_0x17ad7c,_0x4d8b9c,_0x12ecef);}function assertRejectedFlags(_0x437614,_0x4ce224){const _0x384917=a327_0x5874;for(const _0x53b366 of _0x437614[_0x384917(0x9f)]??[]){const _0x18b824=GLOBAL_FLAGS[_0x384917(0xa0)](_0x3387c2=>_0x3387c2[_0x384917(0xcd)]===_0x53b366['name']),_0x44e892=new Set([_0x53b366['name'],toCamelCase(_0x53b366[_0x384917(0xcd)]),_0x18b824?.[_0x384917(0xb9)]]),_0x467747=[..._0x44e892]['some'](_0x547bbb=>{if(!_0x547bbb)return![];const _0x19ddcb=_0x4ce224[_0x547bbb];return _0x19ddcb!==undefined&&_0x19ddcb!==null&&_0x19ddcb!==![];});if(_0x467747)throw CliErrors[_0x384917(0xac)](_0x53b366['message'],_0x53b366[_0x384917(0xcc)]);}}function toCamelCase(_0xa00200){const _0x304ebe=a327_0x5874;return _0xa00200['replace'](/-([a-z])/g,(_0x553220,_0xc6f5b2)=>_0xc6f5b2[_0x304ebe(0xe0)]());}function shouldAttachUpdateNotice(_0x1309c5){const _0x4394b2=a327_0x5874;if(_0x1309c5[_0x4394b2(0xb7)]===![])return![];return!['update',_0x4394b2(0x94),_0x4394b2(0xcb)]['includes'](_0x1309c5[_0x4394b2(0xb1)]);}function withUpdateNotice(_0x2e9e32){return{..._0x2e9e32,async 'execute'(_0xf59ff1){const _0x3362c6=a327_0x5874,_0x48f0d4=shouldResolveUpdateNotice(_0xf59ff1)?resolveLatestUpdateNotice()[_0x3362c6(0xd3)](()=>null):Promise[_0x3362c6(0xbd)](null),_0xcd79dd=await _0x2e9e32[_0x3362c6(0xd7)](_0xf59ff1);return attachUpdateNotice(_0xcd79dd,await _0x48f0d4);}};}function shouldResolveUpdateNotice(_0x384af7){const _0x4d0cc8=a327_0x5874;return _0x384af7[_0x4d0cc8(0xc3)]==='pretty'&&!_0x384af7[_0x4d0cc8(0x98)];}function a327_0x5874(_0x466a9d,_0xa9c20f){_0x466a9d=_0x466a9d-0x8a;const _0x34de16=a327_0x34de();let _0x58749f=_0x34de16[_0x466a9d];return _0x58749f;}function attachUpdateNotice(_0xfc2f78,_0xddb184){const _0x439981=a327_0x5874;if(!_0xddb184||!_0xfc2f78||typeof _0xfc2f78!==_0x439981(0xae))return _0xfc2f78;const _0x1a2bbf=_0xfc2f78,_0x309509=typeof _0x1a2bbf['_notice']===_0x439981(0xae)&&_0x1a2bbf['_notice']!==null?_0x1a2bbf[_0x439981(0xc2)]:{};return{..._0x1a2bbf,'_notice':{..._0x309509,'update':_0xddb184}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x335b40,_0x10de06){const _0x584763=a328_0x5afe,_0x2c0562=_0x335b40();while(!![]){try{const _0xe6e305=-parseInt(_0x584763(0xaf))/0x1*(-parseInt(_0x584763(0xab))/0x2)+parseInt(_0x584763(0xaa))/0x3*(-parseInt(_0x584763(0xb5))/0x4)+-parseInt(_0x584763(0xad))/0x5+parseInt(_0x584763(0xb1))/0x6*(parseInt(_0x584763(0xb3))/0x7)+-parseInt(_0x584763(0xb0))/0x8*(-parseInt(_0x584763(0xae))/0x9)+parseInt(_0x584763(0xb2))/0xa*(-parseInt(_0x584763(0xac))/0xb)+-parseInt(_0x584763(0xa9))/0xc;if(_0xe6e305===_0x10de06)break;else _0x2c0562['push'](_0x2c0562['shift']());}catch(_0x5d0dcc){_0x2c0562['push'](_0x2c0562['shift']());}}}(a328_0x5d5b,0xedd2c));import{buildSchemaPayload as a328_0x11b337}from'@lovrabet/cli-framework';function a328_0x5afe(_0xd21c6f,_0x82d827){_0xd21c6f=_0xd21c6f-0xa9;const _0x5d5b7c=a328_0x5d5b();let _0x5afedd=_0x5d5b7c[_0xd21c6f];return _0x5afedd;}import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a328_0x5d5b(){const _0x18a2c2=['63KQSeWl','8563yYsRem','1018216ugTIfF','1164ClPUMe','580xXRvkL','20797SzRvBU','../commands/registry.js','4rQvFXE','767100uCuPDe','718413gLnQAh','178dhVULT','143099AKuuuJ','986890EkjNld'];a328_0x5d5b=function(){return _0x18a2c2;};return a328_0x5d5b();}import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x2243ed=a328_0x5afe,{serviceRegistry:_0x247f9b,findDefinition:_0x2bda52}=await import(_0x2243ed(0xb4));return a328_0x11b337({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x247f9b,'buildAllFlags':buildAllFlags,'findDefinition':_0x2bda52});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4e2d78,_0x32a9a5){const _0x44727d=a329_0x2ae8,_0x5e106f=_0x4e2d78();while(!![]){try{const _0x295650=-parseInt(_0x44727d(0x16c))/0x1+parseInt(_0x44727d(0x177))/0x2+-parseInt(_0x44727d(0x16b))/0x3+parseInt(_0x44727d(0x16f))/0x4+parseInt(_0x44727d(0x15e))/0x5*(-parseInt(_0x44727d(0x161))/0x6)+-parseInt(_0x44727d(0x171))/0x7+-parseInt(_0x44727d(0x174))/0x8*(-parseInt(_0x44727d(0x16e))/0x9);if(_0x295650===_0x32a9a5)break;else _0x5e106f['push'](_0x5e106f['shift']());}catch(_0xd549be){_0x5e106f['push'](_0x5e106f['shift']());}}}(a329_0x161e,0xd0961));import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function assertSupportedCommandFlags(_0x3119e2,_0x305c8a){const _0x47ca7b=a329_0x2ae8;if(!_0x3119e2[_0x47ca7b(0x172)])return;const _0x23a9bc=new Set([_0x47ca7b(0x164),_0x47ca7b(0x16d)]),_0x31268a=GLOBAL_FLAGS[_0x47ca7b(0x179)](_0x28b995=>PIPELINE_FLAG_NAMES[_0x47ca7b(0x16a)](_0x28b995[_0x47ca7b(0x169)]));for(const _0x64e33f of[..._0x3119e2[_0x47ca7b(0x170)],..._0x31268a]){addFlagCandidates(_0x23a9bc,_0x64e33f);}for(const [_0x34fc02,_0x4e0e25]of Object[_0x47ca7b(0x17b)](_0x305c8a)){if(!isExplicitValue(_0x4e0e25)||_0x23a9bc[_0x47ca7b(0x16a)](_0x34fc02))continue;const _0x206d85=GLOBAL_FLAGS['find'](_0x5c4e88=>_0x5c4e88[_0x47ca7b(0x15f)]===_0x34fc02)?.['name']??toKebabCase(_0x34fc02);throw CliErrors['validation'](_0x47ca7b(0x165)+_0x206d85+'\x20for\x20`'+CLI_BIN_NAME+'\x20'+_0x3119e2['service']+'\x20'+_0x3119e2[_0x47ca7b(0x168)]+'`.',_0x47ca7b(0x176)+CLI_BIN_NAME+'\x20'+_0x3119e2[_0x47ca7b(0x175)]+'\x20'+_0x3119e2[_0x47ca7b(0x168)]+_0x47ca7b(0x160));}}function a329_0x161e(){const _0xc8cf09=['450NXIobq','alias','$1-$2','help','Unsupported\x20flag\x20--','add','replace','command','name','has','482181WbaMFs','126246IWYTxU','version','4986MDZKGN','4434216rGuroF','flags','7850241huaWcY','strictFlags','isArray','3784lKFeTT','service','Run\x20`','3370668TLdArt','length','filter','toLowerCase','entries','52875qnwJUk','meowKey','\x20--help`\x20to\x20view\x20the\x20current\x20command\x20contract.'];a329_0x161e=function(){return _0xc8cf09;};return a329_0x161e();}function addFlagCandidates(_0x34442a,_0xd8ec90){const _0x241d3e=a329_0x2ae8,_0x3778c1=_0x241d3e(0x15f)in _0xd8ec90?[_0xd8ec90[_0x241d3e(0x169)],_0xd8ec90[_0x241d3e(0x15f)]]:[_0xd8ec90[_0x241d3e(0x169)],_0xd8ec90[_0x241d3e(0x162)]];for(const _0xd8a3f2 of _0x3778c1){if(!_0xd8a3f2)continue;_0x34442a[_0x241d3e(0x166)](_0xd8a3f2),_0x34442a[_0x241d3e(0x166)](toCamelCase(_0xd8a3f2));}}function isExplicitValue(_0x2c2910){const _0x4546ee=a329_0x2ae8;return _0x2c2910!==undefined&&_0x2c2910!==null&&_0x2c2910!==![]&&(!Array[_0x4546ee(0x173)](_0x2c2910)||_0x2c2910[_0x4546ee(0x178)]>0x0);}function a329_0x2ae8(_0x3377c0,_0x3fdc5f){_0x3377c0=_0x3377c0-0x15e;const _0x161e7b=a329_0x161e();let _0x2ae817=_0x161e7b[_0x3377c0];return _0x2ae817;}function toCamelCase(_0x2577c7){const _0x21ec91=a329_0x2ae8;return _0x2577c7[_0x21ec91(0x167)](/-([a-z])/g,(_0x34ee32,_0x4e74fb)=>_0x4e74fb['toUpperCase']());}function toKebabCase(_0x42b2f2){const _0x4694ab=a329_0x2ae8;return _0x42b2f2[_0x4694ab(0x167)](/([a-z0-9])([A-Z])/g,_0x4694ab(0x163))[_0x4694ab(0x17a)]();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2a3a23,_0x3ecadf){var _0x548782=a330_0x21e9,_0x4303dd=_0x2a3a23();while(!![]){try{var _0x1531d3=parseInt(_0x548782(0x101))/0x1+parseInt(_0x548782(0xfc))/0x2+-parseInt(_0x548782(0xfb))/0x3*(parseInt(_0x548782(0x102))/0x4)+parseInt(_0x548782(0xfa))/0x5+parseInt(_0x548782(0xff))/0x6*(parseInt(_0x548782(0xf9))/0x7)+-parseInt(_0x548782(0xfe))/0x8*(parseInt(_0x548782(0xfd))/0x9)+-parseInt(_0x548782(0x100))/0xa;if(_0x1531d3===_0x3ecadf)break;else _0x4303dd['push'](_0x4303dd['shift']());}catch(_0x3ebecf){_0x4303dd['push'](_0x4303dd['shift']());}}}(a330_0x38b3,0x87378));function a330_0x21e9(_0x598482,_0x165b78){_0x598482=_0x598482-0xf9;var _0x38b39b=a330_0x38b3();var _0x21e9f4=_0x38b39b[_0x598482];return _0x21e9f4;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';function a330_0x38b3(){var _0x3d6401=['631666CVkYJf','513270sMnjxJ','54ohkJmF','76078IxcgBH','4518wFwzbX','744GmpWTt','54MsLyRA','3647850AVGDeq','173926uviaIY','35876rEShRs'];a330_0x38b3=function(){return _0x3d6401;};return a330_0x38b3();}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.5.13
|
|
2
|
-
export declare const GIT_TAG = "v2.5.13
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-11-
|
|
1
|
+
export declare const VERSION = "2.5.13";
|
|
2
|
+
export declare const GIT_TAG = "v2.5.13";
|
|
3
|
+
export declare const GIT_COMMIT = "81b80701";
|
|
4
|
+
export declare const BUILD_TIME = "2026-11-06T06:05:38.366Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a331_0x1e3bf2=a331_0x568b;(function(_0x59397c,_0x74e2f6){const _0x4f201d=a331_0x568b,_0x91a3b3=_0x59397c();while(!![]){try{const _0x9d72df=parseInt(_0x4f201d(0x9a))/0x1*(parseInt(_0x4f201d(0x99))/0x2)+-parseInt(_0x4f201d(0xa0))/0x3*(parseInt(_0x4f201d(0xa4))/0x4)+parseInt(_0x4f201d(0xa5))/0x5*(parseInt(_0x4f201d(0xa2))/0x6)+parseInt(_0x4f201d(0x9f))/0x7*(-parseInt(_0x4f201d(0x9b))/0x8)+-parseInt(_0x4f201d(0x9e))/0x9*(-parseInt(_0x4f201d(0xa3))/0xa)+parseInt(_0x4f201d(0x97))/0xb+-parseInt(_0x4f201d(0x9d))/0xc;if(_0x9d72df===_0x74e2f6)break;else _0x91a3b3['push'](_0x91a3b3['shift']());}catch(_0x25ef1b){_0x91a3b3['push'](_0x91a3b3['shift']());}}}(a331_0x5b90,0x7ee82));export const VERSION='2.5.13';function a331_0x568b(_0x25e89d,_0x495e23){_0x25e89d=_0x25e89d-0x97;const _0x5b90ce=a331_0x5b90();let _0x568b39=_0x5b90ce[_0x25e89d];return _0x568b39;}export const GIT_TAG=a331_0x1e3bf2(0xa1);function a331_0x5b90(){const _0x220ad1=['107039slZhSo','37784NToWYZ','2026-11-06T06:05:38.366Z','9222708sBKqqg','9CUbnbb','1043tiLCoK','15aMwvKy','v2.5.13','6bHJMgu','2089330yuSLXZ','443824DmKjQe','2030825KgMtxJ','10652697QsatAK','81b80701','18XAppxq'];a331_0x5b90=function(){return _0x220ad1;};return a331_0x5b90();}export const GIT_COMMIT=a331_0x1e3bf2(0x98);export const BUILD_TIME=a331_0x1e3bf2(0x9c);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a332_0x589afd=a332_0x2342;(function(_0x3904f7,_0x30cebb){const _0x372add=a332_0x2342,_0x3bae00=_0x3904f7();while(!![]){try{const _0x2eacee=-parseInt(_0x372add(0xfc))/0x1*(parseInt(_0x372add(0xf4))/0x2)+parseInt(_0x372add(0xf0))/0x3*(parseInt(_0x372add(0xf1))/0x4)+-parseInt(_0x372add(0xed))/0x5+parseInt(_0x372add(0x105))/0x6+parseInt(_0x372add(0xef))/0x7*(-parseInt(_0x372add(0xf8))/0x8)+parseInt(_0x372add(0x106))/0x9+-parseInt(_0x372add(0x103))/0xa*(-parseInt(_0x372add(0xe4))/0xb);if(_0x2eacee===_0x30cebb)break;else _0x3bae00['push'](_0x3bae00['shift']());}catch(_0x1c3e8d){_0x3bae00['push'](_0x3bae00['shift']());}}}(a332_0x4aa8,0x5f9cb));export const ROUTING_CATALOG_DIGEST=a332_0x589afd(0x10d);function a332_0x4aa8(){const _0x402b2c=['Mainland\x20China','https://daily-api.lovrabet.ai','https://dev.lovrabet.id','7472RLritw','https://daily.lovrabet.com','https://kb-service-daily.lovrabet.com','https://skills.lovrabet.com','422818ArLbrC','https://skills-daily.lovrabet.com','Global','https://app.lovrabet.ai','https://app.lovrabet.com','china','https://skills-daily.lovrabet.ai','90mCheTL','https://daily-api.lovrabet.com','2928234ddqDmo','382014WvYpye','https://g.lovrabet.ai','Indonesia','https://api.lovrabet.com','https://runtime.lovrabet.id','indonesia','https://skills.lovrabet.id','5a3c4ca34546427528221911a6be02953b976d9968c1863c4fdec2d1e7319397','https://kb-service.lovrabet.com','https://user.lovrabet.com','https://user-daily.lovrabet.ai','https://api.lovrabet.id','658757AhGlAv','https://daily.lovrabet.ai','https://runtime.lovrabet.ai','https://user.lovrabet.id','https://cdnjs.cloudflare.com/ajax/libs','https://api.lovrabet.ai','https://kb-service.lovrabet.ai','https://daily-runtime.lovrabet.ai','https://kb-service.lovrabet.id','2059360cumcbS','https://user.lovrabet.ai','3325RgRSfJ','2031zmjRXS','3548DAXaHs','https://g.lovrabet.com','https://daily-runtime.lovrabet.com','2dJzBtm'];a332_0x4aa8=function(){return _0x402b2c;};return a332_0x4aa8();}function a332_0x2342(_0x26c9c9,_0x7f36b){_0x26c9c9=_0x26c9c9-0xe3;const _0x4aa8d2=a332_0x4aa8();let _0x23422f=_0x4aa8d2[_0x26c9c9];return _0x23422f;}export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id','global'];export const ENABLED_REGION_VALUES=['cn','id','global'];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a332_0x589afd(0xf5),'aliases':[a332_0x589afd(0x101)],'serviceDomains':{'production':{'user':a332_0x589afd(0x10f),'api':a332_0x589afd(0x109),'runtime':'https://runtime.lovrabet.com','skill':a332_0x589afd(0xfb),'kb':'https://api.lovrabet.com','kbService':a332_0x589afd(0x10e),'app':a332_0x589afd(0x100)},'daily':{'user':'https://user-daily.lovrabet.com','api':'https://daily-api.lovrabet.com','runtime':a332_0x589afd(0xf3),'skill':a332_0x589afd(0xfd),'kb':a332_0x589afd(0x104),'kbService':a332_0x589afd(0xfa),'app':a332_0x589afd(0xf9)}},'cdn':{'libraries':'https://g.alicdn.com/code/lib','lovrabet':a332_0x589afd(0xf2)},'local':{'origin':'https://dev.lovrabet.com'}},'id':{'enabled':!![],'label':a332_0x589afd(0x108),'aliases':[a332_0x589afd(0x10b)],'serviceDomains':{'production':{'user':a332_0x589afd(0xe7),'api':a332_0x589afd(0xe3),'runtime':a332_0x589afd(0x10a),'skill':a332_0x589afd(0x10c),'kb':a332_0x589afd(0xe3),'kbService':a332_0x589afd(0xec),'app':'https://app.lovrabet.id'}},'cdn':{'libraries':'https://cdnjs.cloudflare.com/ajax/libs','lovrabet':'https://g.lovrabet.id'},'local':{'origin':a332_0x589afd(0xf7)}},'global':{'enabled':!![],'label':a332_0x589afd(0xfe),'aliases':[],'serviceDomains':{'production':{'user':a332_0x589afd(0xee),'api':a332_0x589afd(0xe9),'runtime':a332_0x589afd(0xe6),'skill':'https://skills.lovrabet.ai','kb':a332_0x589afd(0xe9),'kbService':a332_0x589afd(0xea),'app':a332_0x589afd(0xff)},'daily':{'user':a332_0x589afd(0x110),'api':'https://daily-api.lovrabet.ai','runtime':a332_0x589afd(0xeb),'skill':a332_0x589afd(0x102),'kb':a332_0x589afd(0xf6),'app':a332_0x589afd(0xe5)}},'cdn':{'libraries':a332_0x589afd(0xe8),'lovrabet':a332_0x589afd(0x107)},'local':{'origin':'https://dev.lovrabet.ai'}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a333_0x58fb69=a333_0x1b62;(function(_0x3b999f,_0x474dfd){const _0x45e679=a333_0x1b62,_0x29a929=_0x3b999f();while(!![]){try{const _0x1cf4b8=parseInt(_0x45e679(0x15b))/0x1*(-parseInt(_0x45e679(0x16e))/0x2)+parseInt(_0x45e679(0x15c))/0x3+parseInt(_0x45e679(0x166))/0x4+parseInt(_0x45e679(0x15f))/0x5*(parseInt(_0x45e679(0x16f))/0x6)+-parseInt(_0x45e679(0x15e))/0x7*(-parseInt(_0x45e679(0x161))/0x8)+parseInt(_0x45e679(0x169))/0x9+-parseInt(_0x45e679(0x168))/0xa;if(_0x1cf4b8===_0x474dfd)break;else _0x29a929['push'](_0x29a929['shift']());}catch(_0x445f8a){_0x29a929['push'](_0x29a929['shift']());}}}(a333_0x33a3,0xb8a2d));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a333_0x58fb69(0x16c);export const ENTERPRISE_ROUTING_PROTOCOL='lovrabet-routing/v1';function a333_0x1b62(_0x2782c9,_0x4b9a09){_0x2782c9=_0x2782c9-0x15a;const _0x33a3d0=a333_0x33a3();let _0x1b624a=_0x33a3d0[_0x2782c9];return _0x1b624a;}export const ENTERPRISE_ROUTING_KIND=a333_0x58fb69(0x15d);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a333_0x58fb69(0x16a),a333_0x58fb69(0x163),a333_0x58fb69(0x160),a333_0x58fb69(0x16b),'kbDomain',a333_0x58fb69(0x16d),a333_0x58fb69(0x167),a333_0x58fb69(0x170),a333_0x58fb69(0x162)];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a333_0x58fb69(0x16a),a333_0x58fb69(0x163),a333_0x58fb69(0x160),a333_0x58fb69(0x16b),a333_0x58fb69(0x164),a333_0x58fb69(0x167)];function a333_0x33a3(){const _0x1a85fe=['6558282fTBbKB','userDomain','skillDomain','a03fe188b2b34518efc5668666c0001d20354882cd7dd70afec902dffe1329c3','kbServiceDomain','437030HqlVDD','18eoQqdJ','localDomain','libraries','3pBYECw','4499721BCVnap','enterprise','161ahshJp','2510140bJwXpJ','runtimeDomain','122976WsGYwB','certificateDomain','apiDomain','kbDomain','lovrabet','4256748DGvvhb','appDomain','37406180cZHYBg'];a333_0x33a3=function(){return _0x1a85fe;};return a333_0x33a3();}export const ENTERPRISE_ROUTING_CDN_FIELDS=[a333_0x58fb69(0x15a),a333_0x58fb69(0x165)];export const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS=[a333_0x58fb69(0x15a),'lovrabet'];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5c57de,_0x3ac2b9){var _0x4a6b15=a334_0x1dbc,_0x2fc36a=_0x5c57de();while(!![]){try{var _0x130839=parseInt(_0x4a6b15(0x89))/0x1*(-parseInt(_0x4a6b15(0x8a))/0x2)+parseInt(_0x4a6b15(0x83))/0x3*(parseInt(_0x4a6b15(0x87))/0x4)+parseInt(_0x4a6b15(0x85))/0x5*(parseInt(_0x4a6b15(0x80))/0x6)+-parseInt(_0x4a6b15(0x84))/0x7*(parseInt(_0x4a6b15(0x8c))/0x8)+parseInt(_0x4a6b15(0x81))/0x9*(parseInt(_0x4a6b15(0x7f))/0xa)+parseInt(_0x4a6b15(0x82))/0xb+-parseInt(_0x4a6b15(0x7d))/0xc;if(_0x130839===_0x3ac2b9)break;else _0x2fc36a['push'](_0x2fc36a['shift']());}catch(_0x5970df){_0x2fc36a['push'](_0x2fc36a['shift']());}}}(a334_0x3913,0x5d7b3));function a334_0x1dbc(_0x279a49,_0xb17f45){_0x279a49=_0x279a49-0x7c;var _0x3913b2=a334_0x3913();var _0x1dbc47=_0x3913b2[_0x279a49];return _0x1dbc47;}import a334_0xd1d2f3 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x252a09=a334_0x1dbc;console[_0x252a09(0x86)](),console[_0x252a09(0x86)](a334_0xd1d2f3[_0x252a09(0x7e)][_0x252a09(0x88)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x252a09(0x86)](),console[_0x252a09(0x86)](_0x252a09(0x8b)+a334_0xd1d2f3[_0x252a09(0x7e)][_0x252a09(0x88)](CLI_BIN_NAME+'\x20--help')+_0x252a09(0x7c)),console[_0x252a09(0x86)]();}function a334_0x3913(){var _0x4f890d=['bold','47VaeEGC','5374fUPxWz','\x20\x20Use\x20','88tbBjDa','\x20to\x20view\x20available\x20commands.','4696308rMMzXT','green','50WTszTF','99270EZozYP','110655CwzMDN','4963365pcRWRG','1805205SAlwrC','315091fkkdWg','85joXRxk','log','4UwUtyD'];a334_0x3913=function(){return _0x4f890d;};return a334_0x3913();}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3d9436,_0x36503d){const _0x47a256=a335_0x2bee,_0xd5a4c4=_0x3d9436();while(!![]){try{const _0x50bcdd=parseInt(_0x47a256(0x13f))/0x1+parseInt(_0x47a256(0x14d))/0x2+parseInt(_0x47a256(0x14b))/0x3*(-parseInt(_0x47a256(0x13b))/0x4)+parseInt(_0x47a256(0x141))/0x5+-parseInt(_0x47a256(0x143))/0x6+parseInt(_0x47a256(0x13e))/0x7+-parseInt(_0x47a256(0x146))/0x8*(-parseInt(_0x47a256(0x149))/0x9);if(_0x50bcdd===_0x36503d)break;else _0xd5a4c4['push'](_0xd5a4c4['shift']());}catch(_0x3e0ec7){_0xd5a4c4['push'](_0xd5a4c4['shift']());}}}(a335_0x1461,0x3261b));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a335_0x2bee(_0xcc20c1,_0x368fda){_0xcc20c1=_0xcc20c1-0x13a;const _0x146162=a335_0x1461();let _0x2bee77=_0x146162[_0xcc20c1];return _0x2bee77;}function a335_0x1461(){const _0x4cbd7f=['371302mDvMUO','\x20via\x20skills@latest','installed','SOURCE_INVALID','code','4KSLDwe','Rabetbase\x20Built-in\x20Skill\x20','log','446831buxeIa','318613BQOdXb','installedPath','793775IyabeA','[BUILTIN_SKILL_INSTALL_','2408328NBcbim','repairCommand','already\x20current','1148384qXlrYz','Repair\x20with:\x20','error','9AWsUGA','Installation\x20failed','787947EsSXPv','FAILED'];a335_0x1461=function(){return _0x4cbd7f;};return a335_0x1461();}export async function runPostinstall(_0x2f3fb7={}){const _0xb11ac7=a335_0x2bee,_0x9e9c46=installBuiltinSkill(_0x2f3fb7);if(_0x9e9c46['ok']){const _0x10d9ba=_0x9e9c46['changed']?_0xb11ac7(0x14f):_0xb11ac7(0x145),_0x4059a4=_0x9e9c46[_0xb11ac7(0x140)]?'\x20at\x20'+_0x9e9c46[_0xb11ac7(0x140)]:_0xb11ac7(0x14e);return console[_0xb11ac7(0x13d)](_0xb11ac7(0x13c)+_0x9e9c46['skillVersion']+'\x20'+_0x10d9ba+_0x4059a4),_0x9e9c46;}const _0x2a5a4d=_0xb11ac7(0x142)+(_0x9e9c46[_0xb11ac7(0x13a)]??_0xb11ac7(0x14c))+']\x20'+(_0x9e9c46[_0xb11ac7(0x148)]??_0xb11ac7(0x14a))+'.\x20'+(_0xb11ac7(0x147)+_0x9e9c46[_0xb11ac7(0x144)]);if(_0x9e9c46[_0xb11ac7(0x13a)]===_0xb11ac7(0x150))throw new Error(_0x2a5a4d);return console['warn'](_0x2a5a4d),_0x9e9c46;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x13c9f9,_0x10b204){const _0x524ac5=a336_0x1166,_0x48cb62=_0x13c9f9();while(!![]){try{const _0x1d8bdc=parseInt(_0x524ac5(0x18d))/0x1*(-parseInt(_0x524ac5(0x188))/0x2)+parseInt(_0x524ac5(0x190))/0x3+parseInt(_0x524ac5(0x192))/0x4*(parseInt(_0x524ac5(0x18b))/0x5)+-parseInt(_0x524ac5(0x185))/0x6*(-parseInt(_0x524ac5(0x18e))/0x7)+-parseInt(_0x524ac5(0x195))/0x8*(-parseInt(_0x524ac5(0x196))/0x9)+-parseInt(_0x524ac5(0x194))/0xa+-parseInt(_0x524ac5(0x187))/0xb;if(_0x1d8bdc===_0x10b204)break;else _0x48cb62['push'](_0x48cb62['shift']());}catch(_0x344344){_0x48cb62['push'](_0x48cb62['shift']());}}}(a336_0x1a4e,0x538f4));function a336_0x1a4e(){const _0x10ab89=['confirmationDescription','353196SchBNC','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','5049840YWdHfu','62848BMQWJy','18wEUpEe','replace','risk','high-risk-write','138rJGGum','This\x20will\x20run\x20the\x20high-risk\x20write\x20','677578eTIMcm','60kmEwTK','slice','string','35rRvmsV','write','6379mJSMtU','71778YqCTUy','trim','691695NrUyXf'];a336_0x1a4e=function(){return _0x10ab89;};return a336_0x1a4e();}const DESCRIPTION_MAX_LENGTH=0x1f4;function a336_0x1166(_0x2caf20,_0x53643a){_0x2caf20=_0x2caf20-0x184;const _0x1a4e19=a336_0x1a4e();let _0x11663f=_0x1a4e19[_0x2caf20];return _0x11663f;}export function buildRabetbaseConfirmationRequest(_0x1fe5ac,_0xf571d2,_0x5beb06){const _0x88085e=a336_0x1166,_0x37097d=normalizeText(_0x1fe5ac[_0x88085e(0x191)],DESCRIPTION_MAX_LENGTH),_0x1571f6=_0x37097d||normalizeText(defaultDescription(requireWriteRisk(_0x1fe5ac),_0xf571d2),DESCRIPTION_MAX_LENGTH);return{'operation':_0xf571d2,'risk':requireWriteRisk(_0x1fe5ac),'description':_0x1571f6,..._0x5beb06?{'signal':_0x5beb06}:{}};}function requireWriteRisk(_0x178578){const _0x1fc5fe=a336_0x1166;if(_0x178578['risk']===_0x1fc5fe(0x18c)||_0x178578[_0x1fc5fe(0x198)]===_0x1fc5fe(0x184))return _0x178578[_0x1fc5fe(0x198)];throw new Error(_0x1fc5fe(0x193));}function defaultDescription(_0x1a56c9,_0x4ccce2){const _0xa20aec=a336_0x1166;if(_0x1a56c9===_0xa20aec(0x184))return _0xa20aec(0x186)+_0x4ccce2+'.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.';return'This\x20will\x20run\x20the\x20write\x20'+_0x4ccce2+'.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.';}function normalizeText(_0x1ccbe7,_0x1522c1){const _0x2624a7=a336_0x1166;if(typeof _0x1ccbe7!==_0x2624a7(0x18a))return'';return _0x1ccbe7[_0x2624a7(0x197)](/[\u0000-\u001f\u007f]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0x2624a7(0x18f)]()[_0x2624a7(0x189)](0x0,_0x1522c1);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2f81e9,_0x397813){const _0x369376=a337_0xcc93,_0x1ae655=_0x2f81e9();while(!![]){try{const _0x221ef7=-parseInt(_0x369376(0xce))/0x1*(-parseInt(_0x369376(0xcc))/0x2)+parseInt(_0x369376(0xcd))/0x3+-parseInt(_0x369376(0xdb))/0x4+-parseInt(_0x369376(0xda))/0x5+parseInt(_0x369376(0xde))/0x6+parseInt(_0x369376(0xd9))/0x7+parseInt(_0x369376(0xdc))/0x8*(parseInt(_0x369376(0xd4))/0x9);if(_0x221ef7===_0x397813)break;else _0x1ae655['push'](_0x1ae655['shift']());}catch(_0x1cf9d7){_0x1ae655['push'](_0x1ae655['shift']());}}}(a337_0xa4dd,0x2f094));export function canonicalRabetbaseOperation(_0x5e8aaf){const _0x3fcacb=a337_0xcc93;return[_0x5e8aaf['service'],..._0x5e8aaf[_0x3fcacb(0xd7)][_0x3fcacb(0xd2)]()[_0x3fcacb(0xd0)](/\s+/)][_0x3fcacb(0xcb)](Boolean)[_0x3fcacb(0xd5)]('.');}function a337_0xcc93(_0x5b33cc,_0x44e198){_0x5b33cc=_0x5b33cc-0xcb;const _0xa4dd36=a337_0xa4dd();let _0xcc9388=_0xa4dd36[_0x5b33cc];return _0xcc9388;}export function createRabetbaseWriteMetadata(_0x4184c4,_0x26646f,_0x1458af,_0x138164){const _0x2863a8=a337_0xcc93;if(_0x138164||_0x1458af['ok']!==!![]||hasUnresolvedConflicts(_0x1458af)||_0x4184c4[_0x2863a8(0xd1)]!==_0x2863a8(0xcf)&&_0x4184c4[_0x2863a8(0xd1)]!=='high-risk-write')return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x2863a8(0xd6),'operation':_0x26646f,'risk':_0x4184c4[_0x2863a8(0xd1)]}}};}function a337_0xa4dd(){const _0x584262=['risk','trim','conflicts','9fAVAEm','join','rabetbase.write.completed','command','data','1002456EIdaTJ','1431435igCTIY','386324nSBlDE','377848UmzqjN','length','28734WUolYE','filter','508BHbMHE','1033458xqCqGA','141GIiUYa','write','split'];a337_0xa4dd=function(){return _0x584262;};return a337_0xa4dd();}function hasUnresolvedConflicts(_0x4b59d7){const _0x25c17d=a337_0xcc93,_0x455633=_0x4b59d7[_0x25c17d(0xd8)];return Boolean(_0x455633&&typeof _0x455633==='object'&&!Array['isArray'](_0x455633)&&Array['isArray'](_0x455633['conflicts'])&&_0x455633[_0x25c17d(0xd3)][_0x25c17d(0xdd)]>0x0);}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x55208d,_0x2e293b){const _0x42e815=a338_0x5811,_0x4b1892=_0x55208d();while(!![]){try{const _0x401ef4=parseInt(_0x42e815(0xa3))/0x1+parseInt(_0x42e815(0x8b))/0x2*(-parseInt(_0x42e815(0x9a))/0x3)+-parseInt(_0x42e815(0xa2))/0x4*(parseInt(_0x42e815(0xa8))/0x5)+-parseInt(_0x42e815(0x9c))/0x6+-parseInt(_0x42e815(0x9f))/0x7+parseInt(_0x42e815(0x9d))/0x8+parseInt(_0x42e815(0x89))/0x9*(parseInt(_0x42e815(0x96))/0xa);if(_0x401ef4===_0x2e293b)break;else _0x4b1892['push'](_0x4b1892['shift']());}catch(_0x51a116){_0x4b1892['push'](_0x4b1892['shift']());}}}(a338_0x2f31,0x24884));import{buildConfigFromFlags,initGlobalEnvironment,isRoutingRecoveryService}from'../context.js';function a338_0x5811(_0x31189a,_0x3a84f0){_0x31189a=_0x31189a-0x85;const _0x2f311f=a338_0x2f31();let _0x581176=_0x2f311f[_0x31189a];return _0x581176;}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:_0x30a93c,command:_0xe9550a,risk:_0x2be959,dryRun:_0x11b79e}){const _0x2ee7c3=a338_0x5811;return JSON[_0x2ee7c3(0x95)]({'ok':_0x30a93c['ok'],'command':_0xe9550a,'risk':_0x2be959,..._0x11b79e?{'dryRun':!![]}:{},..._0x30a93c[_0x2ee7c3(0x99)]!==undefined?{'data':_0x30a93c[_0x2ee7c3(0x99)]}:{},..._0x30a93c[_0x2ee7c3(0x93)]?{'message':_0x30a93c[_0x2ee7c3(0x93)]}:{}});}};export async function invokeRabetbase(_0x5328c3,_0x2bf393){const _0x2b5f71=a338_0x5811;throwIfAborted(_0x2bf393[_0x2b5f71(0xa1)]);const _0x3516c1=await resolveRabetbaseInvocation(_0x5328c3),_0x2cfcd8=canonicalRabetbaseOperation(_0x3516c1[_0x2b5f71(0x90)]);return await confirmWriteBeforeQueue(_0x3516c1[_0x2b5f71(0x90)],_0x3516c1[_0x2b5f71(0xa0)],_0x2cfcd8,_0x2bf393),runSerialized(async()=>{const _0x9d21dd=_0x2b5f71,_0x591212={};try{throwIfAborted(_0x2bf393[_0x9d21dd(0xa1)]);const _0x1e81db=buildConfigFromFlags(_0x3516c1[_0x9d21dd(0xa0)]);!isRoutingRecoveryService(_0x3516c1['definition'][_0x9d21dd(0x8d)])&&await initGlobalEnvironment(_0x1e81db);const _0x315456=createPipelineEnv(_0x1e81db,{..._0x3516c1['rawFlags'],'yes':_0x3516c1[_0x9d21dd(0x90)][_0x9d21dd(0xa7)]===_0x9d21dd(0x9b)?!![]:_0x3516c1[_0x9d21dd(0xa0)][_0x9d21dd(0x94)],'nonInteractive':!![]},_0x3516c1[_0x9d21dd(0xa4)]);_0x315456[_0x9d21dd(0x88)]=!![],_0x315456['riskLevel']=_0x9d21dd(0x9b);const _0x58bf23=withAbortSignal(_0x3516c1['definition'],_0x2bf393[_0x9d21dd(0xa1)]),_0x95e4e5=createRabetbaseRunnerAdapter({'formatOutput'(_0x33c358,_0x4fdac8){const _0x2e2422=_0x9d21dd;_0x591212[_0x2e2422(0x98)]=_0x33c358,_0x591212[_0x2e2422(0xa9)]=_0x4fdac8[_0x2e2422(0xa9)],_0x591212[_0x2e2422(0xa7)]=_0x4fdac8[_0x2e2422(0xa7)],_0x591212['format']=_0x4fdac8[_0x2e2422(0xa6)],_0x591212['dryRun']=_0x4fdac8[_0x2e2422(0x85)]===!![];},async 'confirmHighRisk'(){const _0x67a7e=_0x9d21dd;throw new Error(_0x67a7e(0x9e));}});await runCommand(_0x58bf23,_0x315456,_0x95e4e5);if(!_0x591212[_0x9d21dd(0x98)]||!_0x591212['command']||!_0x591212['risk']||!_0x591212[_0x9d21dd(0xa6)])throw new Error(_0x9d21dd(0x87));const _0x2fc852=_0x591212[_0x9d21dd(0x85)]===!![],_0x29e1cd=_0x2bf393[_0x9d21dd(0x8a)]??defaultPresentation,_0x1a9db2={'result':_0x591212['result'],'command':_0x591212[_0x9d21dd(0xa9)],'operation':_0x2cfcd8,'risk':_0x591212[_0x9d21dd(0xa7)],'format':_0x591212['format'],'dryRun':_0x2fc852},_0x282ca3=createRabetbaseWriteMetadata(_0x3516c1[_0x9d21dd(0x90)],_0x2cfcd8,_0x591212['result'],_0x2fc852);let _0x1a924f;try{_0x1a924f=await _0x29e1cd[_0x9d21dd(0x86)](_0x1a9db2);}catch(_0x52ef1c){if(!_0x282ca3||_0x29e1cd===defaultPresentation)throw _0x52ef1c;_0x1a924f=await defaultPresentation['present'](_0x1a9db2);}return{'operation':_0x2cfcd8,'risk':_0x591212['risk'],'mode':_0x2fc852?_0x9d21dd(0xa5):_0x9d21dd(0x8c),'result':_0x591212[_0x9d21dd(0x98)],'output':_0x1a924f,..._0x282ca3?{'metadata':_0x282ca3}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x3c4748,_0x49ab94,_0x5965ce,_0xc583b1){const _0x182e38=a338_0x5811;if(_0x49ab94[_0x182e38(0x85)]===!![]||_0x3c4748[_0x182e38(0xa7)]!==_0x182e38(0x97)&&_0x3c4748[_0x182e38(0xa7)]!==_0x182e38(0x9b))return;await _0xc583b1[_0x182e38(0x8f)][_0x182e38(0x92)](buildRabetbaseConfirmationRequest(_0x3c4748,_0x5965ce,_0xc583b1[_0x182e38(0xa1)]));}function a338_0x2f31(){const _0x199dbf=['4140HnJgbd','277200pTkpAF','args','dry-run','format','risk','730XNdpyK','command','dryRun','present','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','isNonInteractive','9JFAoQc','presentation','8tiwLLi','execute','service','reason','confirmation','definition','aborted','confirm','message','yes','stringify','3701770yYIpwg','write','result','data','132582xSmeHH','high-risk-write','1432968fmndFZ','1332080uKlQBb','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','682759huSeMV','rawFlags','signal'];a338_0x2f31=function(){return _0x199dbf;};return a338_0x2f31();}function withAbortSignal(_0xd1bec8,_0x29309c){return{..._0xd1bec8,async 'execute'(_0x18e2ea){const _0x35d33f=a338_0x5811;return throwIfAborted(_0x29309c),_0xd1bec8[_0x35d33f(0x8c)]({..._0x18e2ea,'signal':_0x29309c});}};}function throwIfAborted(_0x4a3aa0){const _0x1fc6a2=a338_0x5811;if(_0x4a3aa0?.[_0x1fc6a2(0x91)])throw _0x4a3aa0['reason']instanceof Error?_0x4a3aa0[_0x1fc6a2(0x8e)]:new DOMException('Rabetbase\x20invocation\x20aborted.','AbortError');}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a339_0x4e9b(){const _0x29e403=['20GmLEIm','catch','1809MkBVxk','15748rtXNmj','700eoNQLx','1501944TpxMAa','10320NjpkLT','740896pVLudJ','44BCxXsU','1200lYnbOw','1115730ahjsHa','726835pEAwqY','6PgCpRK'];a339_0x4e9b=function(){return _0x29e403;};return a339_0x4e9b();}(function(_0x30c2dd,_0x10e200){const _0x316e57=a339_0x1d21,_0x1d6a51=_0x30c2dd();while(!![]){try{const _0x369711=-parseInt(_0x316e57(0x108))/0x1*(parseInt(_0x316e57(0x105))/0x2)+-parseInt(_0x316e57(0x101))/0x3*(-parseInt(_0x316e57(0xfc))/0x4)+-parseInt(_0x316e57(0x103))/0x5*(parseInt(_0x316e57(0x104))/0x6)+parseInt(_0x316e57(0x102))/0x7+-parseInt(_0x316e57(0xff))/0x8+parseInt(_0x316e57(0x107))/0x9*(-parseInt(_0x316e57(0xfe))/0xa)+parseInt(_0x316e57(0x100))/0xb*(parseInt(_0x316e57(0xfd))/0xc);if(_0x369711===_0x10e200)break;else _0x1d6a51['push'](_0x1d6a51['shift']());}catch(_0x557d72){_0x1d6a51['push'](_0x1d6a51['shift']());}}}(a339_0x4e9b,0x1f0ab));function a339_0x1d21(_0x39287c,_0x1ba081){_0x39287c=_0x39287c-0xfc;const _0x4e9bfd=a339_0x4e9b();let _0x1d2105=_0x4e9bfd[_0x39287c];return _0x1d2105;}let tail=Promise['resolve']();export async function runSerialized(_0x121685){const _0x3832f9=a339_0x1d21,_0x4e7fd2=tail;let _0x30da93;tail=new Promise(_0x3da572=>{_0x30da93=_0x3da572;}),await _0x4e7fd2[_0x3832f9(0x106)](()=>undefined);try{return await _0x121685();}finally{_0x30da93();}}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a340_0x5a44(_0x186684,_0xe04a67){_0x186684=_0x186684-0x147;const _0x137c38=a340_0x137c();let _0x5a446f=_0x137c38[_0x186684];return _0x5a446f;}(function(_0x2cc53f,_0x35e5d4){const _0x5eeb0b=a340_0x5a44,_0xb5a55b=_0x2cc53f();while(!![]){try{const _0x10f8bc=parseInt(_0x5eeb0b(0x14e))/0x1+-parseInt(_0x5eeb0b(0x14f))/0x2*(-parseInt(_0x5eeb0b(0x151))/0x3)+parseInt(_0x5eeb0b(0x157))/0x4+-parseInt(_0x5eeb0b(0x155))/0x5*(parseInt(_0x5eeb0b(0x154))/0x6)+parseInt(_0x5eeb0b(0x156))/0x7*(parseInt(_0x5eeb0b(0x14d))/0x8)+-parseInt(_0x5eeb0b(0x147))/0x9+-parseInt(_0x5eeb0b(0x14b))/0xa*(-parseInt(_0x5eeb0b(0x148))/0xb);if(_0x10f8bc===_0x35e5d4)break;else _0xb5a55b['push'](_0xb5a55b['shift']());}catch(_0x13576e){_0xb5a55b['push'](_0xb5a55b['shift']());}}}(a340_0x137c,0xb3352));import a340_0x485110 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a340_0x137c(){const _0x143157=['370oSguhI','7RMduJR','3409072RTpYTN','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','wildcardDef','defaultCommand','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','validation','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','2759364kVNQoD','638143Zyjmgj','flags','join','80cLyfZJ','hint','8444264pejOqj','25772FqvWyS','9862ZpPnzg','slice','45EzRONn','unknownCommand','message','116028FcWQWk'];a340_0x137c=function(){return _0x143157;};return a340_0x137c();}import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';import{assertSupportedCommandFlags}from'../framework/supported-flags.js';export async function resolveRabetbaseInvocation(_0x495ee8){const _0x3a100e=a340_0x5a44,_0xa124e7=a340_0x485110('',{'importMeta':import.meta,'argv':[..._0x495ee8],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x1fa20a=[..._0xa124e7['input']],_0x3c2580=_0xa124e7[_0x3a100e(0x149)],_0x3d704d=_0x1fa20a[0x0];if(!_0x3d704d)throw CliErrors['validation']('Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.');const _0x128c6a=resolveRemovedCommand(_0x3d704d,_0x1fa20a[0x1]);if(_0x128c6a)throw CliErrors[_0x3a100e(0x15c)](_0x128c6a[_0x3a100e(0x153)],_0x128c6a[_0x3a100e(0x14c)]);if(_0x3d704d==='run')throw CliErrors[_0x3a100e(0x15c)](_0x3a100e(0x15d),_0x3a100e(0x15b));if(!isKnownService(_0x3d704d))throw CliErrors['unknownCommand'](_0x1fa20a[_0x3a100e(0x14a)]('\x20'));const _0xd81059=getServiceEntry(_0x3d704d),_0x449235=_0x1fa20a[0x1],_0x2ace95=_0x449235||_0xd81059[_0x3a100e(0x15a)];if(!_0x2ace95){if(_0xd81059['wildcardDef'])return{'definition':_0xd81059[_0x3a100e(0x159)],'rawFlags':_0x3c2580,'args':[]};throw CliErrors[_0x3a100e(0x15c)](_0x3a100e(0x158)+_0x3d704d+'\x22.');}const _0x3b1477=findDefinition(_0x3d704d,_0x2ace95);if(_0x3b1477)return assertSupportedCommandFlags(_0x3b1477,_0x3c2580),{'definition':_0x3b1477,'rawFlags':_0x3c2580,'args':_0x1fa20a[_0x3a100e(0x150)](0x2)};if(_0xd81059[_0x3a100e(0x159)])return{'definition':_0xd81059['wildcardDef'],'rawFlags':_0x3c2580,'args':[_0x2ace95,..._0x1fa20a['slice'](0x2)]};throw CliErrors[_0x3a100e(0x152)](_0x3d704d+'\x20'+_0x2ace95);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x34c9fa,_0x5cd28f){const _0x4acfac=a342_0x3e5c,_0x4efdef=_0x34c9fa();while(!![]){try{const _0x5f1cb6=parseInt(_0x4acfac(0xb8))/0x1*(-parseInt(_0x4acfac(0xc5))/0x2)+-parseInt(_0x4acfac(0xc7))/0x3*(parseInt(_0x4acfac(0xaf))/0x4)+-parseInt(_0x4acfac(0xbd))/0x5+-parseInt(_0x4acfac(0xc3))/0x6+parseInt(_0x4acfac(0xb3))/0x7*(-parseInt(_0x4acfac(0xc6))/0x8)+-parseInt(_0x4acfac(0xbe))/0x9+parseInt(_0x4acfac(0xca))/0xa;if(_0x5f1cb6===_0x5cd28f)break;else _0x4efdef['push'](_0x4efdef['shift']());}catch(_0x3bdfff){_0x4efdef['push'](_0x4efdef['shift']());}}}(a342_0x2a6e,0x870d2));function a342_0x3e5c(_0x56fd04,_0x2f76f2){_0x56fd04=_0x56fd04-0xab;const _0x2a6e15=a342_0x2a6e();let _0x3e5c3c=_0x2a6e15[_0x56fd04];return _0x3e5c3c;}import{randomUUID}from'node:crypto';import{dirname}from'node:path';function a342_0x2a6e(){const _0x3eca86=['.tmp','742038ezTXhM','test','169222jcFskt','536oZFrWh','87915XVaJjn','dataset-design-operation','clientOperationId','40968810TNHxMp','writeFile','Checkpoint\x20must\x20be\x20a\x20regular\x20JSON\x20file.','isFile','utf8','116tUARaE','size','schemaVersion','EEXIST','114065PTWrYn','manifest','length','string','Invalid\x20checkpoint;\x20reconcile\x20its\x20original\x20operation\x20before\x20submitting\x20again.','6XYjRQr','inputHash','catch','isSymbolicLink','close','476995SsnyCw','7878267QUhEmj','identityKey','code','parse'];a342_0x2a6e=function(){return _0x3eca86;};return a342_0x2a6e();}import{mkdir,open,link,unlink,rename,lstat,readFile}from'node:fs/promises';import{isObject,requireValue}from'./contract.js';export async function readCheckpoint(_0x3b0738){const _0x5c65f3=a342_0x3e5c;try{const _0x959fc7=await lstat(_0x3b0738);requireValue(_0x959fc7[_0x5c65f3(0xad)]()&&!_0x959fc7[_0x5c65f3(0xbb)]()&&_0x959fc7[_0x5c65f3(0xb0)]<=0x3d0900,_0x5c65f3(0xac));const _0x304f5b=JSON[_0x5c65f3(0xc1)](await readFile(_0x3b0738,_0x5c65f3(0xae)));return requireValue(isObject(_0x304f5b)&&_0x304f5b['kind']===_0x5c65f3(0xc8)&&_0x304f5b[_0x5c65f3(0xb1)]===0x1&&typeof _0x304f5b['clientOperationId']===_0x5c65f3(0xb6)&&/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/[_0x5c65f3(0xc4)](_0x304f5b[_0x5c65f3(0xc9)])&&typeof _0x304f5b[_0x5c65f3(0xb9)]===_0x5c65f3(0xb6)&&/^[a-f0-9]{64}$/[_0x5c65f3(0xc4)](_0x304f5b[_0x5c65f3(0xb9)])&&typeof _0x304f5b[_0x5c65f3(0xbf)]===_0x5c65f3(0xb6)&&_0x304f5b[_0x5c65f3(0xbf)][_0x5c65f3(0xb5)]>0x0&&isObject(_0x304f5b[_0x5c65f3(0xb4)]),_0x5c65f3(0xb7)),_0x304f5b;}catch(_0x30c58c){if(_0x30c58c[_0x5c65f3(0xc0)]==='ENOENT')return undefined;throw _0x30c58c;}}export async function saveCheckpoint(_0x4fdad,_0x517f8e,_0x4af257=![]){const _0x143d11=a342_0x3e5c;await mkdir(dirname(_0x4fdad),{'recursive':!![]});const _0x4a190c=_0x4fdad+'.'+randomUUID()+_0x143d11(0xc2),_0x5d6063=await open(_0x4a190c,'wx',0x180);try{await _0x5d6063[_0x143d11(0xab)](JSON['stringify'](_0x517f8e,null,0x2)+'\x0a'),await _0x5d6063['sync']();}finally{await _0x5d6063[_0x143d11(0xbc)]();}try{if(_0x4af257)await link(_0x4a190c,_0x4fdad);else await rename(_0x4a190c,_0x4fdad);return!![];}catch(_0x17925e){if(_0x4af257&&_0x17925e[_0x143d11(0xc0)]===_0x143d11(0xb2))return![];throw _0x17925e;}finally{await unlink(_0x4a190c)[_0x143d11(0xba)](_0x52a8b3=>{if(_0x52a8b3['code']!=='ENOENT')throw _0x52a8b3;});}}
|