@lovrabet/rabetbase-cli 2.5.10 → 2.5.11
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/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1605bd,_0x174906){const _0xf984c6=a324_0x1b1d,_0x208c2c=_0x1605bd();while(!![]){try{const _0xd69ccd=-parseInt(_0xf984c6(0xee))/0x1+-parseInt(_0xf984c6(0xed))/0x2+-parseInt(_0xf984c6(0xf5))/0x3*(-parseInt(_0xf984c6(0xf7))/0x4)+parseInt(_0xf984c6(0xe1))/0x5+parseInt(_0xf984c6(0xf6))/0x6*(parseInt(_0xf984c6(0xe0))/0x7)+parseInt(_0xf984c6(0xf4))/0x8*(-parseInt(_0xf984c6(0xe8))/0x9)+-parseInt(_0xf984c6(0xe7))/0xa*(-parseInt(_0xf984c6(0xe4))/0xb);if(_0xd69ccd===_0x174906)break;else _0x208c2c['push'](_0x208c2c['shift']());}catch(_0xf7424){_0x208c2c['push'](_0x208c2c['shift']());}}}(a324_0x2917,0xc370e));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a324_0x2917(){const _0x4aea06=['1640025svzGHk','json','endsWith','jqFilter','stringify','585678ICMXeH','429591QELJTC','_notice','data','jq:\x20','format','stdout','16iXpIJX','118257FulIOM','6qEoNWy','116goSgFv','error','hint','373863MrCwPa','622790sHZtNH','url','update','44jlhwPk','code','message','1415720tQHVBH'];a324_0x2917=function(){return _0x4aea06;};return a324_0x2917();}import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';function a324_0x1b1d(_0x159ee4,_0x2f03e9){_0x159ee4=_0x159ee4-0xde;const _0x291709=a324_0x2917();let _0x1b1d9e=_0x291709[_0x159ee4];return _0x1b1d9e;}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x984545,_0x6e119e){const _0x113ceb=a324_0x1b1d,_0x2fa4a5=_0x984545[_0x113ceb(0xef)],{_notice:_0x1d8d52,..._0x35dfc7}=_0x984545;void _0x1d8d52,baseFormatOutput(_0x35dfc7,_0x6e119e),_0x6e119e[_0x113ceb(0xf2)]==='pretty'&&printPrettyNotice(_0x2fa4a5);}export function formatCliError(_0x311dff,_0x9af2c6){const _0x81254a=a324_0x1b1d;if(_0x9af2c6[_0x81254a(0xf2)]==='pretty')return![];const _0x4617b0=_0x311dff[_0x81254a(0xf0)],_0x522101={'ok':![],'command':_0x9af2c6['command'],'risk':_0x9af2c6['risk'],'data':_0x4617b0??null,'error':{'code':_0x311dff[_0x81254a(0xe5)],'message':_0x311dff[_0x81254a(0xe6)],..._0x311dff['hint']?{'hint':_0x311dff['hint']}:{}}},_0x5b8a51=_0x9af2c6[_0x81254a(0xf2)]===_0x81254a(0xe9)?JSON[_0x81254a(0xec)](_0x522101,null,0x2):JSON[_0x81254a(0xec)](_0x522101);let _0x43efb6=_0x5b8a51;if(_0x9af2c6[_0x81254a(0xeb)]?.['trim']())try{_0x43efb6=applyJqFilter(_0x5b8a51,_0x9af2c6[_0x81254a(0xeb)]);}catch(_0x3cffcc){const _0x46e46c=_0x3cffcc instanceof CliError?_0x3cffcc:CliErrors['validation'](_0x81254a(0xf1)+(_0x3cffcc instanceof Error?_0x3cffcc['message']:String(_0x3cffcc))),_0x1641e4={..._0x522101,'error':{'code':_0x46e46c[_0x81254a(0xe5)],'message':_0x46e46c[_0x81254a(0xe6)],..._0x46e46c[_0x81254a(0xdf)]?{'hint':_0x46e46c[_0x81254a(0xdf)]}:{},'cause':_0x522101[_0x81254a(0xde)]}};_0x43efb6=_0x9af2c6[_0x81254a(0xf2)]==='json'?JSON[_0x81254a(0xec)](_0x1641e4,null,0x2):JSON[_0x81254a(0xec)](_0x1641e4);}return process[_0x81254a(0xf3)]['write'](_0x43efb6[_0x81254a(0xea)]('\x0a')?_0x43efb6:_0x43efb6+'\x0a'),!![];}function printPrettyNotice(_0xbe17c3){const _0x4a77a6=a324_0x1b1d;if(!_0xbe17c3?.['update'])return;console[_0x4a77a6(0xde)](_0xbe17c3['update'][_0x4a77a6(0xe6)]+'\x20('+_0xbe17c3[_0x4a77a6(0xe3)][_0x4a77a6(0xe2)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a325_0x4f51(){var _0x51e3a3=['11371290zkqHKC','350532YfLmed','10817400vnCIWv','1139009EHWRPj','23992NvnKzd','2rKGRQo','4548519HiRXgj','53143128iBvyhC','865RPYpIV'];a325_0x4f51=function(){return _0x51e3a3;};return a325_0x4f51();}(function(_0x258c9f,_0x48575f){var _0x2fcf0f=a325_0x3141,_0x4ab207=_0x258c9f();while(!![]){try{var _0x44fc8d=-parseInt(_0x2fcf0f(0x1d4))/0x1*(parseInt(_0x2fcf0f(0x1cd))/0x2)+-parseInt(_0x2fcf0f(0x1ce))/0x3+-parseInt(_0x2fcf0f(0x1cc))/0x4*(-parseInt(_0x2fcf0f(0x1d0))/0x5)+-parseInt(_0x2fcf0f(0x1d1))/0x6+-parseInt(_0x2fcf0f(0x1d2))/0x7+-parseInt(_0x2fcf0f(0x1d3))/0x8+parseInt(_0x2fcf0f(0x1cf))/0x9;if(_0x44fc8d===_0x48575f)break;else _0x4ab207['push'](_0x4ab207['shift']());}catch(_0x11a38d){_0x4ab207['push'](_0x4ab207['shift']());}}}(a325_0x4f51,0xf1a66));function a325_0x3141(_0x5444ef,_0x3b41f3){_0x5444ef=_0x5444ef-0x1cc;var _0x4f51e3=a325_0x4f51();var _0x3141d6=_0x4f51e3[_0x5444ef];return _0x3141d6;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4a5190,_0x4bfaa3){const _0x568a5f=a326_0x3ffa,_0x2158ed=_0x4a5190();while(!![]){try{const _0x2025d3=parseInt(_0x568a5f(0x10f))/0x1*(-parseInt(_0x568a5f(0x108))/0x2)+-parseInt(_0x568a5f(0x110))/0x3*(-parseInt(_0x568a5f(0x116))/0x4)+parseInt(_0x568a5f(0x11c))/0x5*(parseInt(_0x568a5f(0x11d))/0x6)+-parseInt(_0x568a5f(0x11e))/0x7*(parseInt(_0x568a5f(0x10d))/0x8)+parseInt(_0x568a5f(0x10c))/0x9+parseInt(_0x568a5f(0x11f))/0xa*(parseInt(_0x568a5f(0x10a))/0xb)+-parseInt(_0x568a5f(0x11a))/0xc*(parseInt(_0x568a5f(0x117))/0xd);if(_0x2025d3===_0x4bfaa3)break;else _0x2158ed['push'](_0x2158ed['shift']());}catch(_0x4f18e0){_0x2158ed['push'](_0x2158ed['shift']());}}}(a326_0x4e83,0x38f64));function a326_0x4e83(){const _0x2c5e9c=['`\x20requires\x20either\x20--code\x20or\x20--alias.','68650eNHDUs','54aQfZhT','8071zckoRx','10lgQnNS','some','code','type','No\x20model\x20aliases\x20found\x20in\x20','Unknown\x20alias\x20\x22','alias','26326XDxyXK','validation','3242833cQwIoT','\x20api\x20pull`\x20first.','3700332DRYFst','1016EFgbdd','flags','10lgTJJQ','3kkjJNL','profileName','Available\x20aliases:\x20','name','\x22.\x20','string','831764KUlBKd','13BogCWh','join','filePath','6313020NWLjdj'];a326_0x4e83=function(){return _0x2c5e9c;};return a326_0x4e83();}import{CliErrors}from'../errors.js';function a326_0x3ffa(_0x5df979,_0x501bc4){_0x5df979=_0x5df979-0x102;const _0x4e83c3=a326_0x4e83();let _0x3ffa9f=_0x4e83c3[_0x5df979];return _0x3ffa9f;}import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{resolveApiModelSource}from'../api/model-source.js';export function resolveAliasToCode(_0x4bb5cd,_0x16701c,_0x56f1d2,_0x1922a2,_0x51545d,_0x217391){const _0x249389=a326_0x3ffa,_0x46b34c=_0x4bb5cd[_0x249389(0x10e)]['some'](_0x11c29f=>_0x11c29f[_0x249389(0x113)]===_0x249389(0x103)&&_0x11c29f[_0x249389(0x104)]===_0x249389(0x115)),_0x5ba3b2=_0x4bb5cd[_0x249389(0x10e)][_0x249389(0x102)](_0x51d26b=>_0x51d26b[_0x249389(0x113)]===_0x249389(0x107)&&_0x51d26b['type']===_0x249389(0x115));if(!_0x46b34c||!_0x5ba3b2)return;const _0x3f3c73=_0x16701c['code']?String(_0x16701c[_0x249389(0x103)]):'',_0x37b3e2=_0x16701c[_0x249389(0x107)]?String(_0x16701c[_0x249389(0x107)]):'';if(!_0x3f3c73&&!_0x37b3e2)throw CliErrors[_0x249389(0x109)]('`'+_0x1922a2+_0x249389(0x11b));if(_0x37b3e2&&!_0x3f3c73){const _0xa8f64d=resolveApiModelSource(_0x56f1d2,_0x51545d,_0x217391),_0x5d36cd=resolveAlias(_0x56f1d2,_0x37b3e2,undefined,_0xa8f64d[_0x249389(0x119)],_0xa8f64d[_0x249389(0x111)]);if(!_0x5d36cd){const _0x312e67=listAliases(_0x56f1d2,undefined,_0xa8f64d[_0x249389(0x119)],_0xa8f64d['profileName'])['map'](_0x1bb11b=>_0x1bb11b[_0x249389(0x107)]),_0x56c74f=_0x312e67['length']?_0x249389(0x112)+_0x312e67[_0x249389(0x118)](',\x20'):_0x249389(0x105)+_0x56f1d2+'.\x20Run\x20`'+CLI_BIN_NAME+_0x249389(0x10b);throw CliErrors['validation'](_0x249389(0x106)+_0x37b3e2+_0x249389(0x114)+_0x56c74f);}_0x16701c[_0x249389(0x103)]=_0x5d36cd;}}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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
|
+
(function(_0x212a74,_0x283e0){const _0x153603=a327_0x563d,_0x5df94c=_0x212a74();while(!![]){try{const _0x574efd=-parseInt(_0x153603(0x1b5))/0x1*(-parseInt(_0x153603(0x19c))/0x2)+parseInt(_0x153603(0x19b))/0x3*(-parseInt(_0x153603(0x1a3))/0x4)+-parseInt(_0x153603(0x1c9))/0x5*(parseInt(_0x153603(0x1e5))/0x6)+parseInt(_0x153603(0x1ca))/0x7+parseInt(_0x153603(0x196))/0x8*(parseInt(_0x153603(0x1e8))/0x9)+-parseInt(_0x153603(0x190))/0xa*(parseInt(_0x153603(0x195))/0xb)+-parseInt(_0x153603(0x1aa))/0xc;if(_0x574efd===_0x283e0)break;else _0x5df94c['push'](_0x5df94c['shift']());}catch(_0x26707e){_0x5df94c['push'](_0x5df94c['shift']());}}}(a327_0x3539,0x5c3aa));function a327_0x3539(){const _0x1f42ae=['126psccuM','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','resolveCookie','explicitAppName','Current\x20resolved\x20appcode\x20is\x20\x22','authRequired','712DKetYz','required','Set\x20appcode\x20via\x20`','defaultVerbose','apps','resolveAppCode','production','6654288LVnBff','isNonInteractive','service','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','entries','apiDir','RABETBASE_APPCODE','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','AppCode\x20\x22','resolveApiDomain','cancelled','3559KAlbnk','⚠\x20\x20High-risk\x20operation:\x20','schema','replace','validation','map','filter','cookie','name','doctor','toUpperCase','risk','formatOutput','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','configMissing','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','trim','keys','../constant/domain.js','\x0a\x20\x20','1070sviQcJ','4341267EiJHll','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','resolve','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','mergedCli','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','command','value','object','hint','\x20\x20\x20Continue?\x20[y/N]\x20','join','length','appcode','requiresAppCode','appCode','rawFlags','includes','currentApp','none','../constant/env.js','nonInteractive','message','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','format','catch','defaultApp','282TGRcih','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\x20if\x20this\x20operation\x20is\x20intended.\x20','9YsdBrj','verbose','Edit\x20the\x20config\x20file\x20manually','../core/api-client.js','execute','confirmHighRisk','meowKey','pretty','80qOzbwR','selectedAppName','rejectedFlags','all','has','529078mYYGMn','4146704FOSFct','_notice','riskLevel','find','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','600AHlfgt'];a327_0x3539=function(){return _0x1f42ae;};return a327_0x3539();}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_0x288169}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x178cfc){const _0x41bc33=a327_0x563d;return typeof _0x178cfc==='string'&&_0x178cfc[_0x41bc33(0x1c5)]()?_0x178cfc[_0x41bc33(0x1c5)]():undefined;}function resolveEnvAppCode(){const _0x33111c=a327_0x563d,_0x421bd6=stringFlag(process.env.RABETBASE_APPCODE);if(_0x421bd6)return{'name':_0x33111c(0x1b0),'value':_0x421bd6};const _0x324a81=stringFlag(process.env.LOVRABET_APPCODE);if(_0x324a81)return{'name':'LOVRABET_APPCODE','value':_0x324a81};return undefined;}function hasExplicitAppCode(_0x47813e,_0x36d835){const _0x1a30e3=a327_0x563d;return!!(stringFlag(_0x47813e['appcode'])||stringFlag(_0x36d835[_0x1a30e3(0x1d7)]));}function assertEnvAppCodeNotIgnored(_0x4eaa4d,_0x54f80e,_0x38a37c){const _0x3e4f3e=a327_0x563d;if(!_0x54f80e||_0x38a37c||_0x4eaa4d===_0x54f80e['value'])return;const _0xfbb401=_0x4eaa4d?_0x3e4f3e(0x1a1)+_0x4eaa4d+'\x22.':'No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.';throw CliErrors[_0x3e4f3e(0x1b9)](_0x54f80e[_0x3e4f3e(0x1bd)]+'='+_0x54f80e[_0x3e4f3e(0x1d1)]+_0x3e4f3e(0x1c2)+_0xfbb401+'\x20'+(_0x3e4f3e(0x1c4)+_0x54f80e['name']+'\x22.'));}export function createPipelineEnv(_0x37e785,_0x2df874,_0x3ce0a1=[]){const _0x1196b9=a327_0x563d;return{'rawFlags':_0x2df874,'args':_0x3ce0a1,'resolveAppCode':()=>_0x37e785[_0x1196b9(0x1d9)],'resolveCookie':()=>_0x37e785[_0x1196b9(0x1bc)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a327_0x288169(_0x2df874),'defaultFormat':_0x37e785[_0x1196b9(0x1e2)],'defaultPageSize':_0x37e785['pageSize'],'defaultVerbose':_0x37e785[_0x1196b9(0x1e9)],'apiDir':_0x37e785[_0x1196b9(0x1af)],'riskLevel':_0x37e785[_0x1196b9(0x198)],'selectedAppName':_0x37e785[_0x1196b9(0x1a0)],'mergedCli':{'defaultApp':_0x37e785[_0x1196b9(0x1e4)],'currentApp':_0x37e785[_0x1196b9(0x1dc)],'appCode':_0x37e785[_0x1196b9(0x1d9)],'apps':_0x37e785[_0x1196b9(0x1a7)]}};}export function createRabetbaseRunnerAdapter(_0x3f6634={}){const _0x568c47=a327_0x563d;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x568c47(0x1bb)](_0x21d7a2=>PIPELINE_FLAG_NAMES[_0x568c47(0x194)](_0x21d7a2[_0x568c47(0x1bd)]))[_0x568c47(0x1ba)](({name:_0x26c28d,type:_0x4565df,description:_0x34c67b})=>({'name':_0x26c28d,'type':_0x4565df,'description':_0x34c67b})),'formatOutput':_0x3f6634[_0x568c47(0x1c1)]??formatOutput,'getCommandLabel'(_0x56da25){const _0x113d56=_0x568c47;return CLI_BIN_NAME+'\x20'+_0x56da25['service']+'\x20'+_0x56da25[_0x113d56(0x1d0)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x46e8af,{def:_0x2e68e0}){const _0x51db59=_0x568c47,_0x41e385=_0x46e8af[_0x51db59(0x1db)](_0x51db59(0x1ea))?_0x51db59(0x1e1):_0x51db59(0x1e6)+_0x2e68e0[_0x51db59(0x1c0)]+_0x51db59(0x1e7)+_0x51db59(0x1e1);return CliErrors['validation'](_0x46e8af+_0x51db59(0x1c8)+_0x41e385);}},async 'prepare'(_0x5627f9,_0x5d4db4,_0x35b786,_0x2857c6){const _0x198cd6=_0x568c47,_0x1e43e3=_0x5d4db4[_0x198cd6(0x1af)]||DEFAULT_API_DIR,_0x3264a2=hasExplicitAppCode(_0x35b786,_0x5d4db4[_0x198cd6(0x1da)]),_0x324a12=stringFlag(_0x35b786[_0x198cd6(0x1d7)])||stringFlag(_0x5d4db4[_0x198cd6(0x1da)][_0x198cd6(0x1d7)]),_0x252c5e=_0x5d4db4[_0x198cd6(0x1ce)]?.['apps']??{},_0x3c732f=_0x5d4db4[_0x198cd6(0x191)]||_0x5d4db4['mergedCli']?.[_0x198cd6(0x1dc)]||_0x5d4db4[_0x198cd6(0x1ce)]?.[_0x198cd6(0x1e4)],_0xbb8ae7=_0x324a12?Object[_0x198cd6(0x1ae)](_0x252c5e)[_0x198cd6(0x1bb)](([,_0x556136])=>_0x556136[_0x198cd6(0x1d7)]===_0x324a12)[_0x198cd6(0x1ba)](([_0x44f688])=>_0x44f688):[];if(_0xbb8ae7[_0x198cd6(0x1d6)]>0x1&&!_0x5d4db4[_0x198cd6(0x191)])throw CliErrors[_0x198cd6(0x1b9)](_0x198cd6(0x1b2)+_0x324a12+'\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20'+_0xbb8ae7[_0x198cd6(0x1d5)](',\x20')+'.',_0x198cd6(0x1ad));resolveAliasToCode(_0x5627f9,_0x35b786,_0x1e43e3,_0x2857c6,_0x5d4db4[_0x198cd6(0x1a8)](),_0x3c732f);const _0x26de07=resolveCommandAuthMode(_0x5627f9);let _0x2d67d2='';if(_0x26de07!==_0x198cd6(0x1dd)){_0x2d67d2=_0x5d4db4[_0x198cd6(0x19f)]()||'';if(!_0x2d67d2){if(_0x26de07===_0x198cd6(0x1a4))throw CliErrors[_0x198cd6(0x1a2)]();}else{const {setActiveCookie:_0x20e570}=await import(_0x198cd6(0x1eb));_0x20e570(_0x2d67d2);}}const _0x4a2db1=_0x5d4db4[_0x198cd6(0x1a8)]()??'';if(_0x5627f9[_0x198cd6(0x1d8)]!==![]){if(!_0x3264a2&&_0x3c732f&&!_0x252c5e[_0x3c732f]){const _0x835c41=Object[_0x198cd6(0x1c6)](_0x252c5e);throw CliErrors[_0x198cd6(0x1b9)]('App\x20\x22'+_0x3c732f+_0x198cd6(0x19a),_0x835c41[_0x198cd6(0x1d6)]>0x0?'Available:\x20'+_0x835c41[_0x198cd6(0x1d5)](',\x20')+_0x198cd6(0x1cf)+CLI_BIN_NAME+_0x198cd6(0x1b1):'Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x198cd6(0x1b1));}assertEnvAppCodeNotIgnored(_0x4a2db1,resolveEnvAppCode(),_0x3264a2);if(!_0x4a2db1){const _0x161ea9=Object[_0x198cd6(0x1c6)](_0x252c5e);if(!_0x3c732f&&_0x161ea9[_0x198cd6(0x1d6)]>0x1)throw CliErrors[_0x198cd6(0x1c3)](_0x198cd6(0x1cd)+CLI_BIN_NAME+_0x198cd6(0x1cb)+_0x161ea9[_0x198cd6(0x1d5)](',\x20')+'.');throw CliErrors[_0x198cd6(0x1c3)](_0x198cd6(0x1a5)+CLI_BIN_NAME+_0x198cd6(0x19e));}}return{'defaults':{'booleans':{'verbose':_0x5d4db4[_0x198cd6(0x1a6)]},'numbers':{'pagesize':_0x5d4db4['defaultPageSize']}},'extras':{'appCode':_0x4a2db1,'cookie':_0x2d67d2,'apiDomain':_0x5d4db4[_0x198cd6(0x1b3)](),'apiDir':_0x1e43e3,'selectedAppName':_0x5d4db4[_0x198cd6(0x191)],'mergedCli':_0x5d4db4[_0x198cd6(0x1ce)]}};},'confirmHighRisk':_0x3f6634[_0x568c47(0x1ed)]??(async({env:_0xecbd48,commandLabel:_0x553274})=>{const _0x1c4ac7=_0x568c47;if(_0xecbd48[_0x1c4ac7(0x1ab)])throw CliErrors[_0x1c4ac7(0x1b9)]('High-risk\x20operation\x20`'+_0x553274+_0x1c4ac7(0x19d));await requireConfirmationPrompt({'lines':[_0x1c4ac7(0x1b6)+_0x553274,_0x1c4ac7(0x1d4)],'createCancelledError':_0x2db394=>CliErrors[_0x1c4ac7(0x1b4)](_0x2db394)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x44463d=a327_0x563d,{clearActiveCookie:_0x548c36}=await import(_0x44463d(0x1eb));_0x548c36();}export async function finalizeRabetbaseRuntimeState(){const _0x328a09=a327_0x563d;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x4f715c},{initEnv:_0x4d0ec2}]=await Promise[_0x328a09(0x193)]([import(_0x328a09(0x1c7)),import(_0x328a09(0x1de))]);_0x4f715c(),_0x4d0ec2(_0x328a09(0x1a9));}}export async function runCommand(_0x715208,_0x4f4cb5,_0x1c88ee=terminalRunnerAdapter){assertRejectedFlags(_0x715208,_0x4f4cb5['rawFlags']),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x715208)?withUpdateNotice(_0x715208):_0x715208,_0x4f4cb5,_0x1c88ee);}function assertRejectedFlags(_0x1a046c,_0x1675c3){const _0x5cf434=a327_0x563d;for(const _0x4554e1 of _0x1a046c[_0x5cf434(0x192)]??[]){const _0x5e54a5=GLOBAL_FLAGS[_0x5cf434(0x199)](_0x5632b2=>_0x5632b2[_0x5cf434(0x1bd)]===_0x4554e1[_0x5cf434(0x1bd)]),_0x49d907=new Set([_0x4554e1[_0x5cf434(0x1bd)],toCamelCase(_0x4554e1[_0x5cf434(0x1bd)]),_0x5e54a5?.[_0x5cf434(0x1ee)]]),_0x2ab752=[..._0x49d907]['some'](_0x4f74ee=>{if(!_0x4f74ee)return![];const _0x19918d=_0x1675c3[_0x4f74ee];return _0x19918d!==undefined&&_0x19918d!==null&&_0x19918d!==![];});if(_0x2ab752)throw CliErrors[_0x5cf434(0x1b9)](_0x4554e1[_0x5cf434(0x1e0)],_0x4554e1[_0x5cf434(0x1d3)]);}}function toCamelCase(_0x13a628){const _0x352124=a327_0x563d;return _0x13a628[_0x352124(0x1b8)](/-([a-z])/g,(_0x110dd1,_0x2e3da0)=>_0x2e3da0[_0x352124(0x1bf)]());}function a327_0x563d(_0x5ac002,_0x2b16ca){_0x5ac002=_0x5ac002-0x18f;const _0x35394e=a327_0x3539();let _0x563d2a=_0x35394e[_0x5ac002];return _0x563d2a;}function shouldAttachUpdateNotice(_0x1c76ac){const _0x57aa71=a327_0x563d;if(_0x1c76ac['hasFormat']===![])return![];return!['update',_0x57aa71(0x1b7),_0x57aa71(0x1be)]['includes'](_0x1c76ac[_0x57aa71(0x1ac)]);}function withUpdateNotice(_0x15d4d2){return{..._0x15d4d2,async 'execute'(_0x1d5286){const _0x28fa6f=a327_0x563d,_0x2137eb=shouldResolveUpdateNotice(_0x1d5286)?resolveLatestUpdateNotice()[_0x28fa6f(0x1e3)](()=>null):Promise[_0x28fa6f(0x1cc)](null),_0x2538e3=await _0x15d4d2[_0x28fa6f(0x1ec)](_0x1d5286);return attachUpdateNotice(_0x2538e3,await _0x2137eb);}};}function shouldResolveUpdateNotice(_0x4191a6){const _0x15e127=a327_0x563d;return _0x4191a6[_0x15e127(0x1e2)]===_0x15e127(0x18f)&&!_0x4191a6[_0x15e127(0x1df)];}function attachUpdateNotice(_0x3bb186,_0x444210){const _0x489263=a327_0x563d;if(!_0x444210||!_0x3bb186||typeof _0x3bb186!==_0x489263(0x1d2))return _0x3bb186;const _0x153f2e=_0x3bb186,_0x38f1df=typeof _0x153f2e[_0x489263(0x197)]===_0x489263(0x1d2)&&_0x153f2e[_0x489263(0x197)]!==null?_0x153f2e['_notice']:{};return{..._0x153f2e,'_notice':{..._0x38f1df,'update':_0x444210}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x378fa4,_0x28fb13){const _0x4eb7c8=a328_0xfb63,_0x752a47=_0x378fa4();while(!![]){try{const _0x4b582b=-parseInt(_0x4eb7c8(0x1ae))/0x1*(parseInt(_0x4eb7c8(0x1ad))/0x2)+parseInt(_0x4eb7c8(0x1b1))/0x3+parseInt(_0x4eb7c8(0x1b0))/0x4+parseInt(_0x4eb7c8(0x1ab))/0x5+-parseInt(_0x4eb7c8(0x1ac))/0x6*(parseInt(_0x4eb7c8(0x1a9))/0x7)+parseInt(_0x4eb7c8(0x1aa))/0x8+-parseInt(_0x4eb7c8(0x1af))/0x9;if(_0x4b582b===_0x28fb13)break;else _0x752a47['push'](_0x752a47['shift']());}catch(_0x46a723){_0x752a47['push'](_0x752a47['shift']());}}}(a328_0x5373,0xe3914));import{buildSchemaPayload as a328_0x1ac738}from'@lovrabet/cli-framework';function a328_0xfb63(_0xa6727b,_0x346273){_0xa6727b=_0xa6727b-0x1a9;const _0x5373c4=a328_0x5373();let _0xfb6353=_0x5373c4[_0xa6727b];return _0xfb6353;}import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';function a328_0x5373(){const _0x3f853d=['2460552osSjZq','2936037bsdGXt','32067JEoyFK','1241808vRuypa','4853520CAdKVw','270QIqUcQ','236584DBxzAY','13QUvyww','393210YlLRGZ'];a328_0x5373=function(){return _0x3f853d;};return a328_0x5373();}export async function buildSchemaPayload(){const {serviceRegistry:_0x5bb888,findDefinition:_0x1c6704}=await import('../commands/registry.js');return a328_0x1ac738({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x5bb888,'buildAllFlags':buildAllFlags,'findDefinition':_0x1c6704});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x522513,_0x53dad9){const _0x5d9cdc=a329_0x100d,_0xccc7db=_0x522513();while(!![]){try{const _0x119518=parseInt(_0x5d9cdc(0x1fa))/0x1*(-parseInt(_0x5d9cdc(0x1e3))/0x2)+parseInt(_0x5d9cdc(0x1e7))/0x3*(-parseInt(_0x5d9cdc(0x200))/0x4)+parseInt(_0x5d9cdc(0x1fe))/0x5*(-parseInt(_0x5d9cdc(0x1e2))/0x6)+parseInt(_0x5d9cdc(0x1ee))/0x7+-parseInt(_0x5d9cdc(0x1f5))/0x8*(parseInt(_0x5d9cdc(0x1f9))/0x9)+-parseInt(_0x5d9cdc(0x1f1))/0xa*(parseInt(_0x5d9cdc(0x1eb))/0xb)+parseInt(_0x5d9cdc(0x1e9))/0xc;if(_0x119518===_0x53dad9)break;else _0xccc7db['push'](_0xccc7db['shift']());}catch(_0x13cf59){_0xccc7db['push'](_0xccc7db['shift']());}}}(a329_0xd1dc,0x77727));import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';function a329_0x100d(_0x3f58da,_0x5108ad){_0x3f58da=_0x3f58da-0x1e0;const _0xd1dcf8=a329_0xd1dc();let _0x100d98=_0xd1dcf8[_0x3f58da];return _0x100d98;}import{CliErrors}from'../errors.js';export function assertSupportedCommandFlags(_0x293822,_0x580f0f){const _0x39f650=a329_0x100d;if(!_0x293822[_0x39f650(0x1e5)])return;const _0x3422b3=new Set(['help',_0x39f650(0x1ff)]),_0x43fc8d=GLOBAL_FLAGS[_0x39f650(0x1f8)](_0x4e4c89=>PIPELINE_FLAG_NAMES[_0x39f650(0x1e8)](_0x4e4c89[_0x39f650(0x1f2)]));for(const _0x22e4ec of[..._0x293822['flags'],..._0x43fc8d]){addFlagCandidates(_0x3422b3,_0x22e4ec);}for(const [_0x12a011,_0x5a6158]of Object['entries'](_0x580f0f)){if(!isExplicitValue(_0x5a6158)||_0x3422b3['has'](_0x12a011))continue;const _0x1eb854=GLOBAL_FLAGS[_0x39f650(0x1e4)](_0x22a8d0=>_0x22a8d0[_0x39f650(0x1fb)]===_0x12a011)?.['name']??toKebabCase(_0x12a011);throw CliErrors[_0x39f650(0x1f7)](_0x39f650(0x1e6)+_0x1eb854+_0x39f650(0x1ec)+CLI_BIN_NAME+'\x20'+_0x293822[_0x39f650(0x1e0)]+'\x20'+_0x293822[_0x39f650(0x1ed)]+'`.',_0x39f650(0x1fd)+CLI_BIN_NAME+'\x20'+_0x293822[_0x39f650(0x1e0)]+'\x20'+_0x293822[_0x39f650(0x1ed)]+_0x39f650(0x1e1));}}function addFlagCandidates(_0x1844b3,_0xede1d9){const _0x198b99=a329_0x100d,_0x55217a=_0x198b99(0x1fb)in _0xede1d9?[_0xede1d9[_0x198b99(0x1f2)],_0xede1d9[_0x198b99(0x1fb)]]:[_0xede1d9[_0x198b99(0x1f2)],_0xede1d9[_0x198b99(0x1ef)]];for(const _0x5a4d05 of _0x55217a){if(!_0x5a4d05)continue;_0x1844b3[_0x198b99(0x1f3)](_0x5a4d05),_0x1844b3[_0x198b99(0x1f3)](toCamelCase(_0x5a4d05));}}function isExplicitValue(_0x3dc861){const _0xac08a3=a329_0x100d;return _0x3dc861!==undefined&&_0x3dc861!==null&&_0x3dc861!==![]&&(!Array[_0xac08a3(0x1ea)](_0x3dc861)||_0x3dc861[_0xac08a3(0x1f0)]>0x0);}function a329_0xd1dc(){const _0x25724b=['name','add','toUpperCase','8NGMcLO','replace','validation','filter','6823062hrqLeT','140QAxnvf','meowKey','$1-$2','Run\x20`','10CdxZzA','version','4NeNApM','service','\x20--help`\x20to\x20view\x20the\x20current\x20command\x20contract.','1764786mtFYqk','11502bKWFsB','find','strictFlags','Unsupported\x20flag\x20--','1374693PllNrd','has','37126920stXnWY','isArray','22rqPOlz','\x20for\x20`','command','2620716eJsGMX','alias','length','1846460LjWsHp'];a329_0xd1dc=function(){return _0x25724b;};return a329_0xd1dc();}function toCamelCase(_0xf13dd2){const _0x5a2930=a329_0x100d;return _0xf13dd2[_0x5a2930(0x1f6)](/-([a-z])/g,(_0x589466,_0x33c059)=>_0x33c059[_0x5a2930(0x1f4)]());}function toKebabCase(_0x3f8a87){const _0x27234a=a329_0x100d;return _0x3f8a87['replace'](/([a-z0-9])([A-Z])/g,_0x27234a(0x1fc))['toLowerCase']();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a330_0x214d(_0x315268,_0x217f34){_0x315268=_0x315268-0xf7;var _0x20797f=a330_0x2079();var _0x214d79=_0x20797f[_0x315268];return _0x214d79;}function a330_0x2079(){var _0x43df88=['1jbhyuF','16063960oTRGoG','2468596fCvUQu','4181517IzaIBZ','3254022siZrjM','7990590YStEfC','2203570neOIrK','1441727BMCEKH'];a330_0x2079=function(){return _0x43df88;};return a330_0x2079();}(function(_0x111253,_0x1b6a77){var _0x33da5a=a330_0x214d,_0x2b1ebf=_0x111253();while(!![]){try{var _0xfe692=parseInt(_0x33da5a(0xf9))/0x1*(-parseInt(_0x33da5a(0xf7))/0x2)+parseInt(_0x33da5a(0xfc))/0x3+-parseInt(_0x33da5a(0xfb))/0x4+-parseInt(_0x33da5a(0xfe))/0x5+parseInt(_0x33da5a(0xfd))/0x6+parseInt(_0x33da5a(0xf8))/0x7+parseInt(_0x33da5a(0xfa))/0x8;if(_0xfe692===_0x1b6a77)break;else _0x2b1ebf['push'](_0x2b1ebf['shift']());}catch(_0x34c69d){_0x2b1ebf['push'](_0x2b1ebf['shift']());}}}(a330_0x2079,0xcb638));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.5.
|
|
2
|
-
export declare const GIT_TAG = "v2.5.
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-11-
|
|
1
|
+
export declare const VERSION = "2.5.11";
|
|
2
|
+
export declare const GIT_TAG = "v2.5.11";
|
|
3
|
+
export declare const GIT_COMMIT = "0ae03c49";
|
|
4
|
+
export declare const BUILD_TIME = "2026-11-03T11:04:48.373Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a331_0x3b6b(_0x533722,_0x128ea5){_0x533722=_0x533722-0xbf;const _0x132b8f=a331_0x132b();let _0x3b6b51=_0x132b8f[_0x533722];return _0x3b6b51;}const a331_0x9d5626=a331_0x3b6b;(function(_0x2ea09d,_0x2b76d9){const _0x33ee00=a331_0x3b6b,_0x349da0=_0x2ea09d();while(!![]){try{const _0x41c766=parseInt(_0x33ee00(0xc1))/0x1+-parseInt(_0x33ee00(0xc9))/0x2+parseInt(_0x33ee00(0xc2))/0x3*(-parseInt(_0x33ee00(0xc7))/0x4)+parseInt(_0x33ee00(0xc5))/0x5*(-parseInt(_0x33ee00(0xc0))/0x6)+parseInt(_0x33ee00(0xca))/0x7*(parseInt(_0x33ee00(0xc3))/0x8)+-parseInt(_0x33ee00(0xc8))/0x9+parseInt(_0x33ee00(0xc6))/0xa;if(_0x41c766===_0x2b76d9)break;else _0x349da0['push'](_0x349da0['shift']());}catch(_0x7ff5eb){_0x349da0['push'](_0x349da0['shift']());}}}(a331_0x132b,0xbe677));export const VERSION=a331_0x9d5626(0xcb);export const GIT_TAG=a331_0x9d5626(0xbf);export const GIT_COMMIT=a331_0x9d5626(0xc4);export const BUILD_TIME='2026-11-03T11:04:48.373Z';function a331_0x132b(){const _0x1554f1=['4392508DbJJog','10696842gFPqtf','2526580NaMZtw','329NfINbi','2.5.11','v2.5.11','12GvpkXz','817229azdUtl','3RPeODx','205424zZVwKu','0ae03c49','2633560WjHVnQ','33591790DPKAnv'];a331_0x132b=function(){return _0x1554f1;};return a331_0x132b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a332_0x2ad7b1=a332_0x2bf9;(function(_0x7365db,_0x375f16){const _0x15f83d=a332_0x2bf9,_0x337aae=_0x7365db();while(!![]){try{const _0xedee3=parseInt(_0x15f83d(0x1bb))/0x1*(parseInt(_0x15f83d(0x1c2))/0x2)+-parseInt(_0x15f83d(0x1bc))/0x3*(-parseInt(_0x15f83d(0x1b7))/0x4)+-parseInt(_0x15f83d(0x1b6))/0x5*(parseInt(_0x15f83d(0x1cb))/0x6)+parseInt(_0x15f83d(0x1c0))/0x7+-parseInt(_0x15f83d(0x1c7))/0x8*(-parseInt(_0x15f83d(0x1cc))/0x9)+parseInt(_0x15f83d(0x1ba))/0xa*(-parseInt(_0x15f83d(0x1bf))/0xb)+-parseInt(_0x15f83d(0x1c1))/0xc;if(_0xedee3===_0x375f16)break;else _0x337aae['push'](_0x337aae['shift']());}catch(_0x39667c){_0x337aae['push'](_0x337aae['shift']());}}}(a332_0x2b17,0x67bf4));export const ROUTING_CATALOG_DIGEST='57d346b80b12ca567af9d86dd7f8c02a0c27fe15d4944c8345add2cc6134c587';function a332_0x2bf9(_0x1a06cb,_0x494f67){_0x1a06cb=_0x1a06cb-0x1a5;const _0x2b170f=a332_0x2b17();let _0x2bf9c5=_0x2b170f[_0x1a06cb];return _0x2bf9c5;}function a332_0x2b17(){const _0x3b9547=['https://user.lovrabet.com','https://kb-service.lovrabet.id','https://cdnjs.cloudflare.com/ajax/libs','https://app.lovrabet.ai','https://skills.lovrabet.ai','https://g.lovrabet.ai','https://skills-daily.lovrabet.ai','https://app.lovrabet.id','https://skills.lovrabet.com','https://daily-api.lovrabet.com','5MinXAo','841832juXbgt','https://api.lovrabet.com','https://runtime.lovrabet.com','10SkuOqc','274joEgDs','12LYzanq','https://skills.lovrabet.id','https://daily-api.lovrabet.ai','1987381CaiOIf','2217299mihBVC','21347940IyNyrm','2962MYYsfY','https://user.lovrabet.id','https://kb-service.lovrabet.com','https://runtime.lovrabet.id','https://dev.lovrabet.com','35152FqXlEJ','https://daily.lovrabet.ai','https://daily.lovrabet.com','https://dev.lovrabet.id','166866lVuPpp','1737YTqQea','https://g.alicdn.com/code/lib','Mainland\x20China','global','https://app.lovrabet.com','china','https://daily-runtime.lovrabet.ai','https://api.lovrabet.ai','Indonesia','Global','indonesia','https://api.lovrabet.id'];a332_0x2b17=function(){return _0x3b9547;};return a332_0x2b17();}export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id',a332_0x2ad7b1(0x1cf)];export const ENABLED_REGION_VALUES=['cn','id',a332_0x2ad7b1(0x1cf)];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a332_0x2ad7b1(0x1ce),'aliases':[a332_0x2ad7b1(0x1a5)],'serviceDomains':{'production':{'user':a332_0x2ad7b1(0x1ac),'api':a332_0x2ad7b1(0x1b8),'runtime':a332_0x2ad7b1(0x1b9),'skill':a332_0x2ad7b1(0x1b4),'kb':'https://api.lovrabet.com','kbService':a332_0x2ad7b1(0x1c4),'app':a332_0x2ad7b1(0x1d0)},'daily':{'user':'https://user-daily.lovrabet.com','api':'https://daily-api.lovrabet.com','runtime':'https://daily-runtime.lovrabet.com','skill':'https://skills-daily.lovrabet.com','kb':a332_0x2ad7b1(0x1b5),'kbService':'https://kb-service-daily.lovrabet.com','app':a332_0x2ad7b1(0x1c9)}},'cdn':{'libraries':a332_0x2ad7b1(0x1cd),'lovrabet':'https://g.lovrabet.com'},'local':{'origin':a332_0x2ad7b1(0x1c6)}},'id':{'enabled':!![],'label':a332_0x2ad7b1(0x1a8),'aliases':[a332_0x2ad7b1(0x1aa)],'serviceDomains':{'production':{'user':a332_0x2ad7b1(0x1c3),'api':a332_0x2ad7b1(0x1ab),'runtime':a332_0x2ad7b1(0x1c5),'skill':a332_0x2ad7b1(0x1bd),'kb':a332_0x2ad7b1(0x1ab),'kbService':a332_0x2ad7b1(0x1ad),'app':a332_0x2ad7b1(0x1b3)}},'cdn':{'libraries':a332_0x2ad7b1(0x1ae),'lovrabet':'https://g.lovrabet.id'},'local':{'origin':a332_0x2ad7b1(0x1ca)}},'global':{'enabled':!![],'label':a332_0x2ad7b1(0x1a9),'aliases':[],'serviceDomains':{'production':{'user':'https://user.lovrabet.ai','api':a332_0x2ad7b1(0x1a7),'runtime':'https://runtime.lovrabet.ai','skill':a332_0x2ad7b1(0x1b0),'kb':a332_0x2ad7b1(0x1a7),'app':a332_0x2ad7b1(0x1af)},'daily':{'user':'https://user-daily.lovrabet.ai','api':a332_0x2ad7b1(0x1be),'runtime':a332_0x2ad7b1(0x1a6),'skill':a332_0x2ad7b1(0x1b2),'kb':'https://daily-api.lovrabet.ai','app':a332_0x2ad7b1(0x1c8)}},'cdn':{'libraries':a332_0x2ad7b1(0x1ae),'lovrabet':a332_0x2ad7b1(0x1b1)},'local':{'origin':'https://dev.lovrabet.ai'}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a333_0x10da(){const _0x2714c1=['certificateDomain','3154110QwDaeS','2LDozny','5308803uDpNRK','libraries','localDomain','4sVgjZR','userDomain','2634288PEIdxc','kbDomain','386482PQjAOU','lovrabet','1210338nTHgmL','a03fe188b2b34518efc5668666c0001d20354882cd7dd70afec902dffe1329c3','skillDomain','appDomain','12rTZmMo','2139313BGwKhZ','kbServiceDomain','39zBNUjm','8GzxAHu','enterprise','20xYhhbF','1330231TOtPGH','lovrabet-routing/v1','apiDomain','runtimeDomain'];a333_0x10da=function(){return _0x2714c1;};return a333_0x10da();}function a333_0x2bba(_0xde1ed2,_0x47b46c){_0xde1ed2=_0xde1ed2-0x144;const _0x10daf3=a333_0x10da();let _0x2bba40=_0x10daf3[_0xde1ed2];return _0x2bba40;}const a333_0x5861a3=a333_0x2bba;(function(_0x48233f,_0x2010ae){const _0x5c4c22=a333_0x2bba,_0x3725f7=_0x48233f();while(!![]){try{const _0x1eb755=parseInt(_0x5c4c22(0x150))/0x1*(-parseInt(_0x5c4c22(0x158))/0x2)+-parseInt(_0x5c4c22(0x15a))/0x3+parseInt(_0x5c4c22(0x154))/0x4*(parseInt(_0x5c4c22(0x14f))/0x5)+parseInt(_0x5c4c22(0x15e))/0x6*(-parseInt(_0x5c4c22(0x14a))/0x7)+-parseInt(_0x5c4c22(0x147))/0x8*(-parseInt(_0x5c4c22(0x151))/0x9)+parseInt(_0x5c4c22(0x149))/0xa*(-parseInt(_0x5c4c22(0x144))/0xb)+parseInt(_0x5c4c22(0x156))/0xc*(parseInt(_0x5c4c22(0x146))/0xd);if(_0x1eb755===_0x2010ae)break;else _0x3725f7['push'](_0x3725f7['shift']());}catch(_0x484bfa){_0x3725f7['push'](_0x3725f7['shift']());}}}(a333_0x10da,0x4e32d));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a333_0x5861a3(0x15b);export const ENTERPRISE_ROUTING_PROTOCOL=a333_0x5861a3(0x14b);export const ENTERPRISE_ROUTING_KIND=a333_0x5861a3(0x148);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a333_0x5861a3(0x155),a333_0x5861a3(0x14c),a333_0x5861a3(0x14d),a333_0x5861a3(0x15c),a333_0x5861a3(0x157),a333_0x5861a3(0x145),'appDomain',a333_0x5861a3(0x153),a333_0x5861a3(0x14e)];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a333_0x5861a3(0x155),'apiDomain',a333_0x5861a3(0x14d),a333_0x5861a3(0x15c),a333_0x5861a3(0x157),a333_0x5861a3(0x15d)];export const ENTERPRISE_ROUTING_CDN_FIELDS=[a333_0x5861a3(0x152),a333_0x5861a3(0x159)];export const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS=[a333_0x5861a3(0x152),a333_0x5861a3(0x159)];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x244f91,_0xdcf205){var _0x313ed4=a334_0x1c60,_0x3c21c2=_0x244f91();while(!![]){try{var _0x55a2c9=-parseInt(_0x313ed4(0xe6))/0x1+parseInt(_0x313ed4(0xea))/0x2*(parseInt(_0x313ed4(0xe7))/0x3)+parseInt(_0x313ed4(0xe5))/0x4+parseInt(_0x313ed4(0xec))/0x5+-parseInt(_0x313ed4(0xe9))/0x6+-parseInt(_0x313ed4(0xeb))/0x7*(-parseInt(_0x313ed4(0xe4))/0x8)+parseInt(_0x313ed4(0xf2))/0x9*(-parseInt(_0x313ed4(0xf1))/0xa);if(_0x55a2c9===_0xdcf205)break;else _0x3c21c2['push'](_0x3c21c2['shift']());}catch(_0x2c84ef){_0x3c21c2['push'](_0x3c21c2['shift']());}}}(a334_0x3548,0xe4d74));function a334_0x3548(){var _0x511cc5=['green','30DUTJPz','1166598sDbcSA','56VOisty','2100460OSbzEI','1299386JKDYDJ','2967870CVhJBR','\x20--help','9220476cwXdNu','2QqHYHY','1703030zsGfeO','4724475yLqqEk','log','\x20to\x20view\x20available\x20commands.','\x20\x20Use\x20'];a334_0x3548=function(){return _0x511cc5;};return a334_0x3548();}import a334_0x331964 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a334_0x1c60(_0x243870,_0x105d30){_0x243870=_0x243870-0xe4;var _0x3548aa=a334_0x3548();var _0x1c601f=_0x3548aa[_0x243870];return _0x1c601f;}export function showHelp(){var _0x5364ac=a334_0x1c60;console[_0x5364ac(0xed)](),console[_0x5364ac(0xed)](a334_0x331964[_0x5364ac(0xf0)]['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x5364ac(0xed)](),console[_0x5364ac(0xed)](_0x5364ac(0xef)+a334_0x331964[_0x5364ac(0xf0)]['bold'](CLI_BIN_NAME+_0x5364ac(0xe8))+_0x5364ac(0xee)),console[_0x5364ac(0xed)]();}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x6eb32e,_0x109880){const _0x36c3b0=a335_0x369b,_0x26c74b=_0x6eb32e();while(!![]){try{const _0x166614=parseInt(_0x36c3b0(0x194))/0x1+parseInt(_0x36c3b0(0x19b))/0x2+parseInt(_0x36c3b0(0x18f))/0x3+-parseInt(_0x36c3b0(0x19c))/0x4+-parseInt(_0x36c3b0(0x192))/0x5*(-parseInt(_0x36c3b0(0x1a3))/0x6)+-parseInt(_0x36c3b0(0x1a2))/0x7+parseInt(_0x36c3b0(0x197))/0x8*(-parseInt(_0x36c3b0(0x199))/0x9);if(_0x166614===_0x109880)break;else _0x26c74b['push'](_0x26c74b['shift']());}catch(_0x2ba419){_0x26c74b['push'](_0x26c74b['shift']());}}}(a335_0x2115,0x437ca));function a335_0x2115(){const _0x4378eb=['302048odyquF','94716iCoEPX','Repair\x20with:\x20','log','installedPath','error','already\x20current','3866268hVWCYS','84FbeQPz','installed','code','1157676cRLfzA','SOURCE_INVALID','changed','118355FHkyaL','\x20at\x20','4766UWYlCY','FAILED','[BUILTIN_SKILL_INSTALL_','15016EvPGKI','repairCommand','99gSyMTE','Installation\x20failed'];a335_0x2115=function(){return _0x4378eb;};return a335_0x2115();}import{installBuiltinSkill}from'./skills/builtin-skill.js';function a335_0x369b(_0x52562e,_0x95be1a){_0x52562e=_0x52562e-0x18d;const _0x211535=a335_0x2115();let _0x369b51=_0x211535[_0x52562e];return _0x369b51;}export async function runPostinstall(_0x3e0224={}){const _0x3223ac=a335_0x369b,_0x194709=installBuiltinSkill(_0x3e0224);if(_0x194709['ok']){const _0x2fc222=_0x194709[_0x3223ac(0x191)]?_0x3223ac(0x18d):_0x3223ac(0x1a1),_0x44ecff=_0x194709[_0x3223ac(0x19f)]?_0x3223ac(0x193)+_0x194709[_0x3223ac(0x19f)]:'\x20via\x20skills@latest';return console[_0x3223ac(0x19e)]('Rabetbase\x20Built-in\x20Skill\x20'+_0x194709['skillVersion']+'\x20'+_0x2fc222+_0x44ecff),_0x194709;}const _0x13f07c=_0x3223ac(0x196)+(_0x194709[_0x3223ac(0x18e)]??_0x3223ac(0x195))+']\x20'+(_0x194709[_0x3223ac(0x1a0)]??_0x3223ac(0x19a))+'.\x20'+(_0x3223ac(0x19d)+_0x194709[_0x3223ac(0x198)]);if(_0x194709[_0x3223ac(0x18e)]===_0x3223ac(0x190))throw new Error(_0x13f07c);return console['warn'](_0x13f07c),_0x194709;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a336_0x3beb(){const _0xca7b75=['.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.','40EthECg','66ohYZdN','438512tTnyez','slice','trim','23388MiOGHf','341717BtuwrG','replace','confirmationDescription','This\x20will\x20run\x20the\x20write\x20','54cNUQWm','76384zzkRGM','This\x20will\x20run\x20the\x20high-risk\x20write\x20','210371BZDeYR','.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.','45cYhmvD','high-risk-write','26955gJxhhs','128120Udthrn','write','risk','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.'];a336_0x3beb=function(){return _0xca7b75;};return a336_0x3beb();}(function(_0x55f9aa,_0x3cfb7b){const _0x16fbca=a336_0x34bd,_0x1e5137=_0x55f9aa();while(!![]){try{const _0x2c0d35=parseInt(_0x16fbca(0xd2))/0x1+-parseInt(_0x16fbca(0xd6))/0x2*(parseInt(_0x16fbca(0xc6))/0x3)+parseInt(_0x16fbca(0xd1))/0x4+parseInt(_0x16fbca(0xc7))/0x5+parseInt(_0x16fbca(0xcd))/0x6*(parseInt(_0x16fbca(0xd9))/0x7)+-parseInt(_0x16fbca(0xce))/0x8*(parseInt(_0x16fbca(0xdb))/0x9)+parseInt(_0x16fbca(0xcc))/0xa*(parseInt(_0x16fbca(0xd7))/0xb);if(_0x2c0d35===_0x3cfb7b)break;else _0x1e5137['push'](_0x1e5137['shift']());}catch(_0x5c2690){_0x1e5137['push'](_0x1e5137['shift']());}}}(a336_0x3beb,0x34762));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x1fccae,_0x4b8b0c,_0x3c7738){const _0x27758a=a336_0x34bd,_0x13d04c=normalizeText(_0x1fccae[_0x27758a(0xd4)],DESCRIPTION_MAX_LENGTH),_0x97f1e7=_0x13d04c||normalizeText(defaultDescription(requireWriteRisk(_0x1fccae),_0x4b8b0c),DESCRIPTION_MAX_LENGTH);return{'operation':_0x4b8b0c,'risk':requireWriteRisk(_0x1fccae),'description':_0x97f1e7,..._0x3c7738?{'signal':_0x3c7738}:{}};}function requireWriteRisk(_0x2c3249){const _0x331ffd=a336_0x34bd;if(_0x2c3249[_0x331ffd(0xc9)]===_0x331ffd(0xc8)||_0x2c3249[_0x331ffd(0xc9)]===_0x331ffd(0xdc))return _0x2c3249['risk'];throw new Error(_0x331ffd(0xca));}function defaultDescription(_0xe29257,_0x4bbb29){const _0x40c666=a336_0x34bd;if(_0xe29257==='high-risk-write')return _0x40c666(0xd8)+_0x4bbb29+_0x40c666(0xda);return _0x40c666(0xd5)+_0x4bbb29+_0x40c666(0xcb);}function a336_0x34bd(_0x9d974a,_0x4b2c46){_0x9d974a=_0x9d974a-0xc6;const _0x3beb70=a336_0x3beb();let _0x34bd20=_0x3beb70[_0x9d974a];return _0x34bd20;}function normalizeText(_0x44d323,_0x13f0e5){const _0x572aa1=a336_0x34bd;if(typeof _0x44d323!=='string')return'';return _0x44d323[_0x572aa1(0xd3)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x572aa1(0xd3)](/\s+/g,'\x20')[_0x572aa1(0xd0)]()[_0x572aa1(0xcf)](0x0,_0x13f0e5);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4f9c59,_0x391707){const _0x136eb9=a337_0x4a31,_0x4f6aa4=_0x4f9c59();while(!![]){try{const _0x1482af=parseInt(_0x136eb9(0x1cf))/0x1+parseInt(_0x136eb9(0x1c9))/0x2*(parseInt(_0x136eb9(0x1d9))/0x3)+-parseInt(_0x136eb9(0x1ca))/0x4+-parseInt(_0x136eb9(0x1c8))/0x5*(-parseInt(_0x136eb9(0x1cd))/0x6)+-parseInt(_0x136eb9(0x1d8))/0x7*(-parseInt(_0x136eb9(0x1c7))/0x8)+-parseInt(_0x136eb9(0x1d5))/0x9+parseInt(_0x136eb9(0x1d6))/0xa*(-parseInt(_0x136eb9(0x1d1))/0xb);if(_0x1482af===_0x391707)break;else _0x4f6aa4['push'](_0x4f6aa4['shift']());}catch(_0x19abff){_0x4f6aa4['push'](_0x4f6aa4['shift']());}}}(a337_0x4f18,0xc14b4));function a337_0x4a31(_0x38ced6,_0x55d909){_0x38ced6=_0x38ced6-0x1c4;const _0x4f185c=a337_0x4f18();let _0x4a31f4=_0x4f185c[_0x38ced6];return _0x4a31f4;}export function canonicalRabetbaseOperation(_0x5510b8){const _0x395a8d=a337_0x4a31;return[_0x5510b8[_0x395a8d(0x1ce)],..._0x5510b8[_0x395a8d(0x1c6)][_0x395a8d(0x1d2)]()['split'](/\s+/)]['filter'](Boolean)[_0x395a8d(0x1d3)]('.');}export function createRabetbaseWriteMetadata(_0x542c12,_0xe22300,_0x5475ce,_0x1a763f){const _0x2eabee=a337_0x4a31;if(_0x1a763f||_0x5475ce['ok']!==!![]||hasUnresolvedConflicts(_0x5475ce)||_0x542c12[_0x2eabee(0x1c5)]!=='write'&&_0x542c12['risk']!=='high-risk-write')return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x2eabee(0x1d0),'operation':_0xe22300,'risk':_0x542c12[_0x2eabee(0x1c5)]}}};}function a337_0x4f18(){const _0x23438b=['isArray','4207005gqMgmy','19590dfqtBp','length','3045833CMpiWS','3221115XTwEeK','conflicts','risk','command','24vUOFpB','620390KCAgQP','2UsbqPV','3377128MhrxhQ','data','object','6qCaSoQ','service','189978yatlTZ','rabetbase.write.completed','3311bifpql','trim','join'];a337_0x4f18=function(){return _0x23438b;};return a337_0x4f18();}function hasUnresolvedConflicts(_0x16a933){const _0x57641c=a337_0x4a31,_0xc830bf=_0x16a933[_0x57641c(0x1cb)];return Boolean(_0xc830bf&&typeof _0xc830bf===_0x57641c(0x1cc)&&!Array[_0x57641c(0x1d4)](_0xc830bf)&&Array['isArray'](_0xc830bf[_0x57641c(0x1c4)])&&_0xc830bf['conflicts'][_0x57641c(0x1d7)]>0x0);}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3ad598,_0x3e3bd4){const _0x5705ff=a338_0x526e,_0x35e8cf=_0x3ad598();while(!![]){try{const _0x3011ac=-parseInt(_0x5705ff(0xbb))/0x1*(parseInt(_0x5705ff(0xd2))/0x2)+-parseInt(_0x5705ff(0xda))/0x3*(-parseInt(_0x5705ff(0xd6))/0x4)+-parseInt(_0x5705ff(0xd8))/0x5+-parseInt(_0x5705ff(0xcc))/0x6*(parseInt(_0x5705ff(0xd3))/0x7)+parseInt(_0x5705ff(0xc3))/0x8+parseInt(_0x5705ff(0xc9))/0x9+parseInt(_0x5705ff(0xdc))/0xa;if(_0x3011ac===_0x3e3bd4)break;else _0x35e8cf['push'](_0x35e8cf['shift']());}catch(_0x4d8621){_0x35e8cf['push'](_0x35e8cf['shift']());}}}(a338_0x539f,0x75b68));function a338_0x526e(_0xc30913,_0xdc1add){_0xc30913=_0xc30913-0xb8;const _0x539f11=a338_0x539f();let _0x526e45=_0x539f11[_0xc30913];return _0x526e45;}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:_0x29f183,command:_0x11c779,risk:_0x5c559c,dryRun:_0x5ddd97}){const _0x282a7e=a338_0x526e;return JSON['stringify']({'ok':_0x29f183['ok'],'command':_0x11c779,'risk':_0x5c559c,..._0x5ddd97?{'dryRun':!![]}:{},..._0x29f183[_0x282a7e(0xd7)]!==undefined?{'data':_0x29f183[_0x282a7e(0xd7)]}:{},..._0x29f183[_0x282a7e(0xc0)]?{'message':_0x29f183['message']}:{}});}};export async function invokeRabetbase(_0x70bc1a,_0x568b30){const _0x53e6d0=a338_0x526e;throwIfAborted(_0x568b30['signal']);const _0x5a6893=await resolveRabetbaseInvocation(_0x70bc1a),_0x1d0351=canonicalRabetbaseOperation(_0x5a6893['definition']);return await confirmWriteBeforeQueue(_0x5a6893['definition'],_0x5a6893[_0x53e6d0(0xc1)],_0x1d0351,_0x568b30),runSerialized(async()=>{const _0xab5df7=_0x53e6d0,_0x5aadda={};try{throwIfAborted(_0x568b30[_0xab5df7(0xd0)]);const _0x54bd58=buildConfigFromFlags(_0x5a6893[_0xab5df7(0xc1)]);!isRoutingRecoveryService(_0x5a6893[_0xab5df7(0xc2)][_0xab5df7(0xc4)])&&await initGlobalEnvironment(_0x54bd58);const _0x39d0fe=createPipelineEnv(_0x54bd58,{..._0x5a6893[_0xab5df7(0xc1)],'yes':_0x5a6893[_0xab5df7(0xc2)][_0xab5df7(0xd1)]==='high-risk-write'?!![]:_0x5a6893[_0xab5df7(0xc1)][_0xab5df7(0xde)],'nonInteractive':!![]},_0x5a6893[_0xab5df7(0xbd)]);_0x39d0fe[_0xab5df7(0xb8)]=!![],_0x39d0fe[_0xab5df7(0xb9)]=_0xab5df7(0xce);const _0xfe9ae4=withAbortSignal(_0x5a6893['definition'],_0x568b30[_0xab5df7(0xd0)]),_0x329363=createRabetbaseRunnerAdapter({'formatOutput'(_0xc9eace,_0x15e207){const _0x6bf2c9=_0xab5df7;_0x5aadda['result']=_0xc9eace,_0x5aadda[_0x6bf2c9(0xd4)]=_0x15e207[_0x6bf2c9(0xd4)],_0x5aadda[_0x6bf2c9(0xd1)]=_0x15e207[_0x6bf2c9(0xd1)],_0x5aadda[_0x6bf2c9(0xcf)]=_0x15e207['format'],_0x5aadda[_0x6bf2c9(0xbe)]=_0x15e207['dryRun']===!![];},async 'confirmHighRisk'(){const _0x157dea=_0xab5df7;throw new Error(_0x157dea(0xc5));}});await runCommand(_0xfe9ae4,_0x39d0fe,_0x329363);if(!_0x5aadda[_0xab5df7(0xd9)]||!_0x5aadda['command']||!_0x5aadda['risk']||!_0x5aadda[_0xab5df7(0xcf)])throw new Error(_0xab5df7(0xdd));const _0x34d055=_0x5aadda['dryRun']===!![],_0x3459d3=_0x568b30[_0xab5df7(0xba)]??defaultPresentation,_0x1676a8={'result':_0x5aadda[_0xab5df7(0xd9)],'command':_0x5aadda[_0xab5df7(0xd4)],'operation':_0x1d0351,'risk':_0x5aadda[_0xab5df7(0xd1)],'format':_0x5aadda['format'],'dryRun':_0x34d055},_0x2e8211=createRabetbaseWriteMetadata(_0x5a6893[_0xab5df7(0xc2)],_0x1d0351,_0x5aadda['result'],_0x34d055);let _0x25fb20;try{_0x25fb20=await _0x3459d3[_0xab5df7(0xd5)](_0x1676a8);}catch(_0x46eb8a){if(!_0x2e8211||_0x3459d3===defaultPresentation)throw _0x46eb8a;_0x25fb20=await defaultPresentation['present'](_0x1676a8);}return{'operation':_0x1d0351,'risk':_0x5aadda['risk'],'mode':_0x34d055?_0xab5df7(0xdb):'execute','result':_0x5aadda[_0xab5df7(0xd9)],'output':_0x25fb20,..._0x2e8211?{'metadata':_0x2e8211}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x1c726e,_0x70f426,_0xd3a333,_0x1ba4c6){const _0x18bde6=a338_0x526e;if(_0x70f426[_0x18bde6(0xbe)]===!![]||_0x1c726e['risk']!==_0x18bde6(0xcd)&&_0x1c726e[_0x18bde6(0xd1)]!=='high-risk-write')return;await _0x1ba4c6[_0x18bde6(0xbf)][_0x18bde6(0xc6)](buildRabetbaseConfirmationRequest(_0x1c726e,_0xd3a333,_0x1ba4c6[_0x18bde6(0xd0)]));}function a338_0x539f(){const _0x364c29=['AbortError','426BotkjQ','write','high-risk-write','format','signal','risk','248002EBWwdC','91042jUdKDB','command','present','84gAxzXa','data','4454325PFFArh','result','88989ZqSEQh','dry-run','10623970boTqtH','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','yes','isNonInteractive','riskLevel','presentation','5hAwUcR','execute','args','dryRun','confirmation','message','rawFlags','definition','5597384vvMPEO','service','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','confirm','aborted','reason','4783095DfFGPE','Rabetbase\x20invocation\x20aborted.'];a338_0x539f=function(){return _0x364c29;};return a338_0x539f();}function withAbortSignal(_0xb1434a,_0x42d924){return{..._0xb1434a,async 'execute'(_0x2cb54d){const _0x1165f0=a338_0x526e;return throwIfAborted(_0x42d924),_0xb1434a[_0x1165f0(0xbc)]({..._0x2cb54d,'signal':_0x42d924});}};}function throwIfAborted(_0x173bc1){const _0x2457dd=a338_0x526e;if(_0x173bc1?.[_0x2457dd(0xc7)])throw _0x173bc1[_0x2457dd(0xc8)]instanceof Error?_0x173bc1[_0x2457dd(0xc8)]:new DOMException(_0x2457dd(0xca),_0x2457dd(0xcb));}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x21eeb0,_0x56ffe4){const _0x4a3503=a339_0x8548,_0x5907f2=_0x21eeb0();while(!![]){try{const _0x397132=-parseInt(_0x4a3503(0x1d3))/0x1*(-parseInt(_0x4a3503(0x1cf))/0x2)+parseInt(_0x4a3503(0x1d0))/0x3+-parseInt(_0x4a3503(0x1d2))/0x4*(parseInt(_0x4a3503(0x1ce))/0x5)+parseInt(_0x4a3503(0x1d1))/0x6+parseInt(_0x4a3503(0x1d5))/0x7+-parseInt(_0x4a3503(0x1d4))/0x8+-parseInt(_0x4a3503(0x1cd))/0x9;if(_0x397132===_0x56ffe4)break;else _0x5907f2['push'](_0x5907f2['shift']());}catch(_0x1f87b7){_0x5907f2['push'](_0x5907f2['shift']());}}}(a339_0x1b54,0x77ad3));function a339_0x8548(_0x474e0a,_0x4e8b8c){_0x474e0a=_0x474e0a-0x1cc;const _0x1b54e1=a339_0x1b54();let _0x85482f=_0x1b54e1[_0x474e0a];return _0x85482f;}let tail=Promise['resolve']();export async function runSerialized(_0x337425){const _0x5c794c=a339_0x8548,_0x4a21c7=tail;let _0x33a1f0;tail=new Promise(_0x7cac1b=>{_0x33a1f0=_0x7cac1b;}),await _0x4a21c7[_0x5c794c(0x1cc)](()=>undefined);try{return await _0x337425();}finally{_0x33a1f0();}}function a339_0x1b54(){const _0x3e20eb=['636xnVSts','954mNtABn','1173224ZKZZkY','3528049ziSZOV','catch','4663755TItsri','25135LAAuuz','1754oasdFJ','26496aKxYNC','3629034hPzLTh'];a339_0x1b54=function(){return _0x3e20eb;};return a339_0x1b54();}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x17c2a2,_0x57dbbf){const _0x4077c9=a340_0x9c3e,_0x4cd09a=_0x17c2a2();while(!![]){try{const _0x4dc638=parseInt(_0x4077c9(0x1aa))/0x1*(-parseInt(_0x4077c9(0x1ae))/0x2)+-parseInt(_0x4077c9(0x1ac))/0x3+parseInt(_0x4077c9(0x1bd))/0x4+-parseInt(_0x4077c9(0x1b5))/0x5*(-parseInt(_0x4077c9(0x1a7))/0x6)+-parseInt(_0x4077c9(0x1b3))/0x7*(-parseInt(_0x4077c9(0x1b6))/0x8)+parseInt(_0x4077c9(0x1b1))/0x9*(-parseInt(_0x4077c9(0x1b2))/0xa)+-parseInt(_0x4077c9(0x1af))/0xb*(-parseInt(_0x4077c9(0x1b8))/0xc);if(_0x4dc638===_0x57dbbf)break;else _0x4cd09a['push'](_0x4cd09a['shift']());}catch(_0x1a65b1){_0x4cd09a['push'](_0x4cd09a['shift']());}}}(a340_0x43c1,0x6d1c3));import a340_0x14a933 from'meow';function a340_0x9c3e(_0x4acaca,_0x588d5e){_0x4acaca=_0x4acaca-0x1a6;const _0x43c138=a340_0x43c1();let _0x9c3e16=_0x43c138[_0x4acaca];return _0x9c3e16;}import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';import{assertSupportedCommandFlags}from'../framework/supported-flags.js';function a340_0x43c1(){const _0x3334d4=['4932yLFqge','wildcardDef','run','validation','defaultCommand','2387400UstfXF','hint','1844952eJGyMF','input','slice','214993cvkUeB','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','1973754ggxkIR','unknownCommand','4cpaEin','9152JPCkHM','join','18WQShVm','1042540fVAmLG','7qETRYp','message','10JRQvyn','1516328FZvEcp','flags'];a340_0x43c1=function(){return _0x3334d4;};return a340_0x43c1();}export async function resolveRabetbaseInvocation(_0x33f112){const _0x3bffff=a340_0x9c3e,_0x468f54=a340_0x14a933('',{'importMeta':import.meta,'argv':[..._0x33f112],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x43f9cf=[..._0x468f54[_0x3bffff(0x1a8)]],_0x4043ce=_0x468f54[_0x3bffff(0x1b7)],_0x4975ae=_0x43f9cf[0x0];if(!_0x4975ae)throw CliErrors[_0x3bffff(0x1bb)]('Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.');const _0x28eb64=resolveRemovedCommand(_0x4975ae,_0x43f9cf[0x1]);if(_0x28eb64)throw CliErrors[_0x3bffff(0x1bb)](_0x28eb64[_0x3bffff(0x1b4)],_0x28eb64[_0x3bffff(0x1a6)]);if(_0x4975ae===_0x3bffff(0x1ba))throw CliErrors['validation'](_0x3bffff(0x1ab),'Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.');if(!isKnownService(_0x4975ae))throw CliErrors[_0x3bffff(0x1ad)](_0x43f9cf[_0x3bffff(0x1b0)]('\x20'));const _0x924d8a=getServiceEntry(_0x4975ae),_0x3633f9=_0x43f9cf[0x1],_0x1f6664=_0x3633f9||_0x924d8a[_0x3bffff(0x1bc)];if(!_0x1f6664){if(_0x924d8a[_0x3bffff(0x1b9)])return{'definition':_0x924d8a[_0x3bffff(0x1b9)],'rawFlags':_0x4043ce,'args':[]};throw CliErrors[_0x3bffff(0x1bb)]('Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22'+_0x4975ae+'\x22.');}const _0x236b57=findDefinition(_0x4975ae,_0x1f6664);if(_0x236b57)return assertSupportedCommandFlags(_0x236b57,_0x4043ce),{'definition':_0x236b57,'rawFlags':_0x4043ce,'args':_0x43f9cf['slice'](0x2)};if(_0x924d8a['wildcardDef'])return{'definition':_0x924d8a[_0x3bffff(0x1b9)],'rawFlags':_0x4043ce,'args':[_0x1f6664,..._0x43f9cf[_0x3bffff(0x1a9)](0x2)]};throw CliErrors[_0x3bffff(0x1ad)](_0x4975ae+'\x20'+_0x1f6664);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x522364,_0xf0a243){const _0xb34806=a342_0x19a3,_0xd04e70=_0x522364();while(!![]){try{const _0x58f262=-parseInt(_0xb34806(0xc2))/0x1*(parseInt(_0xb34806(0xba))/0x2)+-parseInt(_0xb34806(0xcf))/0x3+-parseInt(_0xb34806(0xbb))/0x4*(parseInt(_0xb34806(0xc5))/0x5)+parseInt(_0xb34806(0xc3))/0x6*(parseInt(_0xb34806(0xc0))/0x7)+parseInt(_0xb34806(0xc9))/0x8*(-parseInt(_0xb34806(0xbc))/0x9)+-parseInt(_0xb34806(0xc6))/0xa+parseInt(_0xb34806(0xbe))/0xb;if(_0x58f262===_0xf0a243)break;else _0xd04e70['push'](_0xd04e70['shift']());}catch(_0x2dc93d){_0xd04e70['push'](_0xd04e70['shift']());}}}(a342_0x1282,0x9d142));import{randomUUID}from'node:crypto';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(_0x367692){const _0xda2c05=a342_0x19a3;try{const _0x1732b4=await lstat(_0x367692);requireValue(_0x1732b4['isFile']()&&!_0x1732b4[_0xda2c05(0xb7)]()&&_0x1732b4[_0xda2c05(0xbf)]<=0x3d0900,_0xda2c05(0xcd));const _0x5e1034=JSON[_0xda2c05(0xcb)](await readFile(_0x367692,_0xda2c05(0xb9)));return requireValue(isObject(_0x5e1034)&&_0x5e1034['kind']===_0xda2c05(0xb4)&&_0x5e1034['schemaVersion']===0x1&&typeof _0x5e1034[_0xda2c05(0xc8)]===_0xda2c05(0xbd)&&/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/['test'](_0x5e1034[_0xda2c05(0xc8)])&&typeof _0x5e1034['inputHash']===_0xda2c05(0xbd)&&/^[a-f0-9]{64}$/['test'](_0x5e1034[_0xda2c05(0xb6)])&&typeof _0x5e1034['identityKey']===_0xda2c05(0xbd)&&_0x5e1034[_0xda2c05(0xc1)][_0xda2c05(0xd0)]>0x0&&isObject(_0x5e1034[_0xda2c05(0xca)]),'Invalid\x20checkpoint;\x20reconcile\x20its\x20original\x20operation\x20before\x20submitting\x20again.'),_0x5e1034;}catch(_0x3c0a00){if(_0x3c0a00[_0xda2c05(0xc4)]==='ENOENT')return undefined;throw _0x3c0a00;}}function a342_0x1282(){const _0x1459c9=['20sbTHMo','9wxelJP','string','33415547TPpftr','size','3287487EFcgje','identityKey','22halvsB','6hkBGCJ','code','312535pkCiLD','8976430gGBFtQ','writeFile','clientOperationId','3580952OcREio','manifest','parse','ENOENT','Checkpoint\x20must\x20be\x20a\x20regular\x20JSON\x20file.','stringify','1125003aTzIyP','length','EEXIST','dataset-design-operation','sync','inputHash','isSymbolicLink','close','utf8','75566vnCikv'];a342_0x1282=function(){return _0x1459c9;};return a342_0x1282();}function a342_0x19a3(_0xbb72a9,_0x505d51){_0xbb72a9=_0xbb72a9-0xb4;const _0x1282f4=a342_0x1282();let _0x19a3a=_0x1282f4[_0xbb72a9];return _0x19a3a;}export async function saveCheckpoint(_0xb8523d,_0x20dc5d,_0x450d3e=![]){const _0x1d0a1a=a342_0x19a3;await mkdir(dirname(_0xb8523d),{'recursive':!![]});const _0x429ab5=_0xb8523d+'.'+randomUUID()+'.tmp',_0x3678a6=await open(_0x429ab5,'wx',0x180);try{await _0x3678a6[_0x1d0a1a(0xc7)](JSON[_0x1d0a1a(0xce)](_0x20dc5d,null,0x2)+'\x0a'),await _0x3678a6[_0x1d0a1a(0xb5)]();}finally{await _0x3678a6[_0x1d0a1a(0xb8)]();}try{if(_0x450d3e)await link(_0x429ab5,_0xb8523d);else await rename(_0x429ab5,_0xb8523d);return!![];}catch(_0x4f16a5){if(_0x450d3e&&_0x4f16a5[_0x1d0a1a(0xc4)]===_0x1d0a1a(0xd1))return![];throw _0x4f16a5;}finally{await unlink(_0x429ab5)['catch'](_0x5c8dfe=>{const _0x4fc54b=_0x1d0a1a;if(_0x5c8dfe[_0x4fc54b(0xc4)]!==_0x4fc54b(0xcc))throw _0x5c8dfe;});}}
|