@lovrabet/rabetbase-cli 2.5.10 → 2.5.11-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/design-context.js +1 -1
- package/lib/commands/dataset/design-start.js +1 -1
- package/lib/commands/dataset/design-status.js +1 -1
- package/lib/commands/dataset/design-sync-retry.js +1 -1
- package/lib/commands/dataset/design-sync-status.js +1 -1
- package/lib/commands/dataset/design-validate.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/cross-db-analysis-shared.js +1 -1
- package/lib/commands/db/cross-db-analyze-latest.js +1 -1
- package/lib/commands/db/cross-db-analyze-start.js +1 -1
- package/lib/commands/db/cross-db-analyze-status.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/page-list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/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(_0x20add7,_0x3b4c51){const _0x401724=a324_0x380b,_0x53b201=_0x20add7();while(!![]){try{const _0x2a4be7=-parseInt(_0x401724(0x14c))/0x1*(-parseInt(_0x401724(0x147))/0x2)+parseInt(_0x401724(0x150))/0x3+parseInt(_0x401724(0x153))/0x4*(parseInt(_0x401724(0x148))/0x5)+-parseInt(_0x401724(0x13e))/0x6+-parseInt(_0x401724(0x13f))/0x7*(parseInt(_0x401724(0x13d))/0x8)+parseInt(_0x401724(0x144))/0x9*(parseInt(_0x401724(0x151))/0xa)+-parseInt(_0x401724(0x13c))/0xb;if(_0x2a4be7===_0x3b4c51)break;else _0x53b201['push'](_0x53b201['shift']());}catch(_0x146c33){_0x53b201['push'](_0x53b201['shift']());}}}(a324_0x4894,0xbc37d));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a324_0x4894(){const _0x1d257c=['message','pretty','stringify','jqFilter','hint','19165916AfsZuO','8WyqXws','2060832niIaiN','10312253dsTZnZ','command','json','stdout','trim','12231702jfNyZy','write','_notice','2jqKvxe','5RsnbSO','risk','code','jq:\x20','1156717KOLoHZ','format','data','update','4472103cvEFTU','10pDhNis','validation','1293808gSbMUc','error'];a324_0x4894=function(){return _0x1d257c;};return a324_0x4894();}export function formatOutput(_0xe3f190,_0x5a4aff){const _0x56378c=a324_0x380b,_0x2a6ee6=_0xe3f190[_0x56378c(0x146)],{_notice:_0x3f2351,..._0x4b05c6}=_0xe3f190;void _0x3f2351,baseFormatOutput(_0x4b05c6,_0x5a4aff),_0x5a4aff['format']===_0x56378c(0x156)&&printPrettyNotice(_0x2a6ee6);}export function formatCliError(_0xbe7e20,_0x5c876c){const _0x2e6cc2=a324_0x380b;if(_0x5c876c[_0x2e6cc2(0x14d)]==='pretty')return![];const _0x2dff4f=_0xbe7e20[_0x2e6cc2(0x14e)],_0x41a806={'ok':![],'command':_0x5c876c[_0x2e6cc2(0x140)],'risk':_0x5c876c[_0x2e6cc2(0x149)],'data':_0x2dff4f??null,'error':{'code':_0xbe7e20[_0x2e6cc2(0x14a)],'message':_0xbe7e20[_0x2e6cc2(0x155)],..._0xbe7e20[_0x2e6cc2(0x13b)]?{'hint':_0xbe7e20[_0x2e6cc2(0x13b)]}:{}}},_0x3ed5e9=_0x5c876c[_0x2e6cc2(0x14d)]==='json'?JSON[_0x2e6cc2(0x157)](_0x41a806,null,0x2):JSON['stringify'](_0x41a806);let _0x5e1727=_0x3ed5e9;if(_0x5c876c[_0x2e6cc2(0x158)]?.[_0x2e6cc2(0x143)]())try{_0x5e1727=applyJqFilter(_0x3ed5e9,_0x5c876c[_0x2e6cc2(0x158)]);}catch(_0x59bfb9){const _0x29842a=_0x59bfb9 instanceof CliError?_0x59bfb9:CliErrors[_0x2e6cc2(0x152)](_0x2e6cc2(0x14b)+(_0x59bfb9 instanceof Error?_0x59bfb9[_0x2e6cc2(0x155)]:String(_0x59bfb9))),_0x4ef8e5={..._0x41a806,'error':{'code':_0x29842a[_0x2e6cc2(0x14a)],'message':_0x29842a['message'],..._0x29842a[_0x2e6cc2(0x13b)]?{'hint':_0x29842a['hint']}:{},'cause':_0x41a806['error']}};_0x5e1727=_0x5c876c['format']===_0x2e6cc2(0x141)?JSON[_0x2e6cc2(0x157)](_0x4ef8e5,null,0x2):JSON[_0x2e6cc2(0x157)](_0x4ef8e5);}return process[_0x2e6cc2(0x142)][_0x2e6cc2(0x145)](_0x5e1727['endsWith']('\x0a')?_0x5e1727:_0x5e1727+'\x0a'),!![];}function a324_0x380b(_0x5b6453,_0x308057){_0x5b6453=_0x5b6453-0x13b;const _0x48947d=a324_0x4894();let _0x380b72=_0x48947d[_0x5b6453];return _0x380b72;}function printPrettyNotice(_0x6e6cf5){const _0x4279ca=a324_0x380b;if(!_0x6e6cf5?.[_0x4279ca(0x14f)])return;console[_0x4279ca(0x154)](_0x6e6cf5['update'][_0x4279ca(0x155)]+'\x20('+_0x6e6cf5['update']['url']+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4a22e3,_0x2261b3){var _0x440921=a325_0x1062,_0x435db7=_0x4a22e3();while(!![]){try{var _0x53ad0f=parseInt(_0x440921(0xe8))/0x1+-parseInt(_0x440921(0xed))/0x2+-parseInt(_0x440921(0xe6))/0x3+parseInt(_0x440921(0xe9))/0x4*(-parseInt(_0x440921(0xea))/0x5)+-parseInt(_0x440921(0xe7))/0x6+parseInt(_0x440921(0xec))/0x7*(-parseInt(_0x440921(0xeb))/0x8)+parseInt(_0x440921(0xee))/0x9;if(_0x53ad0f===_0x2261b3)break;else _0x435db7['push'](_0x435db7['shift']());}catch(_0x553f92){_0x435db7['push'](_0x435db7['shift']());}}}(a325_0x17cb,0xcce37));function a325_0x1062(_0x454aa0,_0x1c751b){_0x454aa0=_0x454aa0-0xe6;var _0x17cb2d=a325_0x17cb();var _0x10623b=_0x17cb2d[_0x454aa0];return _0x10623b;}function a325_0x17cb(){var _0x5a9313=['765230GvxRvO','4nkNZVn','1679585HfdEgI','8wcfour','9323174YjPWPR','2812888namtdb','51988077kijsfI','4541409zFVCKU','6686484RNOfaG'];a325_0x17cb=function(){return _0x5a9313;};return a325_0x17cb();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a326_0x5478(){const _0x5dd152=['1221993vINgvU','validation','16dLIuZu','alias','Available\x20aliases:\x20','135WSaYKs','Unknown\x20alias\x20\x22','length','profileName','code','join','No\x20model\x20aliases\x20found\x20in\x20','24917700SXoEpZ','117828IQcYIp','`\x20requires\x20either\x20--code\x20or\x20--alias.','some','filePath','string','\x22.\x20','1724526rJelwJ','5199831TSPhcr','name','.\x20Run\x20`','1665436wXVzRN','type','102603vAmMSM','14TOunpE'];a326_0x5478=function(){return _0x5dd152;};return a326_0x5478();}function a326_0x4dfd(_0xe60d78,_0x424b40){_0xe60d78=_0xe60d78-0xf0;const _0x5478d4=a326_0x5478();let _0x4dfdbb=_0x5478d4[_0xe60d78];return _0x4dfdbb;}(function(_0x2a477f,_0x198648){const _0x56bf22=a326_0x4dfd,_0x22d1b2=_0x2a477f();while(!![]){try{const _0x247344=-parseInt(_0x56bf22(0xf7))/0x1+-parseInt(_0x56bf22(0xf3))/0x2+parseInt(_0x56bf22(0xf5))/0x3+parseInt(_0x56bf22(0x104))/0x4*(parseInt(_0x56bf22(0xfc))/0x5)+parseInt(_0x56bf22(0x10a))/0x6*(parseInt(_0x56bf22(0xf6))/0x7)+parseInt(_0x56bf22(0xf9))/0x8*(-parseInt(_0x56bf22(0xf0))/0x9)+parseInt(_0x56bf22(0x103))/0xa;if(_0x247344===_0x198648)break;else _0x22d1b2['push'](_0x22d1b2['shift']());}catch(_0x340a0b){_0x22d1b2['push'](_0x22d1b2['shift']());}}}(a326_0x5478,0xa7763));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{resolveApiModelSource}from'../api/model-source.js';export function resolveAliasToCode(_0x51c2c2,_0x499edf,_0x2f0511,_0xe39913,_0x2794c5,_0x426dc0){const _0x2f62f7=a326_0x4dfd,_0x238b5e=_0x51c2c2['flags'][_0x2f62f7(0x106)](_0x5de171=>_0x5de171['name']===_0x2f62f7(0x100)&&_0x5de171[_0x2f62f7(0xf4)]===_0x2f62f7(0x108)),_0x387d1a=_0x51c2c2['flags']['some'](_0x3b729d=>_0x3b729d[_0x2f62f7(0xf1)]===_0x2f62f7(0xfa)&&_0x3b729d[_0x2f62f7(0xf4)]===_0x2f62f7(0x108));if(!_0x238b5e||!_0x387d1a)return;const _0x5da8af=_0x499edf['code']?String(_0x499edf[_0x2f62f7(0x100)]):'',_0x2921c8=_0x499edf[_0x2f62f7(0xfa)]?String(_0x499edf[_0x2f62f7(0xfa)]):'';if(!_0x5da8af&&!_0x2921c8)throw CliErrors[_0x2f62f7(0xf8)]('`'+_0xe39913+_0x2f62f7(0x105));if(_0x2921c8&&!_0x5da8af){const _0x3f76f2=resolveApiModelSource(_0x2f0511,_0x2794c5,_0x426dc0),_0x2285dc=resolveAlias(_0x2f0511,_0x2921c8,undefined,_0x3f76f2[_0x2f62f7(0x107)],_0x3f76f2[_0x2f62f7(0xff)]);if(!_0x2285dc){const _0x339baa=listAliases(_0x2f0511,undefined,_0x3f76f2['filePath'],_0x3f76f2['profileName'])['map'](_0x1cbec4=>_0x1cbec4[_0x2f62f7(0xfa)]),_0xc05f66=_0x339baa[_0x2f62f7(0xfe)]?_0x2f62f7(0xfb)+_0x339baa[_0x2f62f7(0x101)](',\x20'):_0x2f62f7(0x102)+_0x2f0511+_0x2f62f7(0xf2)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors[_0x2f62f7(0xf8)](_0x2f62f7(0xfd)+_0x2921c8+_0x2f62f7(0x109)+_0xc05f66);}_0x499edf['code']=_0x2285dc;}}
|
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(_0x17b0aa,_0x271c27){const _0xeb7cf8=a327_0x4387,_0x4df728=_0x17b0aa();while(!![]){try{const _0x4101e2=-parseInt(_0xeb7cf8(0x1a4))/0x1+-parseInt(_0xeb7cf8(0x16f))/0x2+parseInt(_0xeb7cf8(0x168))/0x3+parseInt(_0xeb7cf8(0x1aa))/0x4*(parseInt(_0xeb7cf8(0x161))/0x5)+parseInt(_0xeb7cf8(0x1b4))/0x6*(-parseInt(_0xeb7cf8(0x197))/0x7)+parseInt(_0xeb7cf8(0x1a0))/0x8+parseInt(_0xeb7cf8(0x1a9))/0x9;if(_0x4101e2===_0x271c27)break;else _0x4df728['push'](_0x4df728['shift']());}catch(_0x15f58c){_0x4df728['push'](_0x4df728['shift']());}}}(a327_0x511a,0x21327));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';function a327_0x511a(){const _0x5ef40e=['High-risk\x20operation\x20`','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','trim','hint','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','validation','name','rawFlags','includes','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','currentApp','authRequired','../constant/env.js','mergedCli','length','defaultApp','RABETBASE_APPCODE','formatOutput','pageSize','message','filter','join','appcode','App\x20\x22','resolveApiDomain','\x0a\x20\x20','defaultPageSize','toUpperCase','requiresAppCode','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','Available:\x20','meowKey','schema','apps','7GhALWz','Current\x20resolved\x20appcode\x20is\x20\x22','\x20\x20\x20Continue?\x20[y/N]\x20','risk','LOVRABET_APPCODE','appCode','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','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','1814040UQdoyY','production','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','riskLevel','152537ICmjZY','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','string','../constant/domain.js','required','1728936sluAjd','306604qrTPHZ','\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20','configMissing','resolve','pretty','Set\x20appcode\x20via\x20`','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','_notice','object','verbose','590706gXLYow','some','resolveAppCode','confirmHighRisk','service','isNonInteractive','execute','all','value','5iuTblL','../core/api-client.js','⚠\x20\x20High-risk\x20operation:\x20','cancelled','rejectedFlags','defaultVerbose','command','451476jzIguQ','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','map','doctor','hasFormat','keys','AppCode\x20\x22','518078lLnipb','cookie','apiDir','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','has','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.'];a327_0x511a=function(){return _0x5ef40e;};return a327_0x511a();}import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a327_0x5d5bfc}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x15c049){const _0x372d53=a327_0x4387;return typeof _0x15c049===_0x372d53(0x1a6)&&_0x15c049[_0x372d53(0x177)]()?_0x15c049[_0x372d53(0x177)]():undefined;}function resolveEnvAppCode(){const _0x381d6e=a327_0x4387,_0x1cc7e2=stringFlag(process.env.RABETBASE_APPCODE);if(_0x1cc7e2)return{'name':_0x381d6e(0x185),'value':_0x1cc7e2};const _0x3854bf=stringFlag(process.env.LOVRABET_APPCODE);if(_0x3854bf)return{'name':_0x381d6e(0x19b),'value':_0x3854bf};return undefined;}function a327_0x4387(_0x4086e5,_0x100fab){_0x4086e5=_0x4086e5-0x161;const _0x511a07=a327_0x511a();let _0x43873c=_0x511a07[_0x4086e5];return _0x43873c;}function hasExplicitAppCode(_0x2ad877,_0xd1bd9b){return!!(stringFlag(_0x2ad877['appcode'])||stringFlag(_0xd1bd9b['appcode']));}function assertEnvAppCodeNotIgnored(_0x21d095,_0x23b024,_0x930ba7){const _0x1487c9=a327_0x4387;if(!_0x23b024||_0x930ba7||_0x21d095===_0x23b024['value'])return;const _0x2b770b=_0x21d095?_0x1487c9(0x198)+_0x21d095+'\x22.':_0x1487c9(0x192);throw CliErrors[_0x1487c9(0x17a)](_0x23b024[_0x1487c9(0x17b)]+'='+_0x23b024[_0x1487c9(0x1bc)]+_0x1487c9(0x1a2)+_0x2b770b+'\x20'+(_0x1487c9(0x169)+_0x23b024[_0x1487c9(0x17b)]+'\x22.'));}export function createPipelineEnv(_0x445afe,_0x5c3e26,_0x4b6896=[]){const _0x17a378=a327_0x4387;return{'rawFlags':_0x5c3e26,'args':_0x4b6896,'resolveAppCode':()=>_0x445afe[_0x17a378(0x19c)],'resolveCookie':()=>_0x445afe[_0x17a378(0x170)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a327_0x5d5bfc(_0x5c3e26),'defaultFormat':_0x445afe['format'],'defaultPageSize':_0x445afe[_0x17a378(0x187)],'defaultVerbose':_0x445afe[_0x17a378(0x1b3)],'apiDir':_0x445afe[_0x17a378(0x171)],'riskLevel':_0x445afe[_0x17a378(0x1a3)],'selectedAppName':_0x445afe['explicitAppName'],'mergedCli':{'defaultApp':_0x445afe[_0x17a378(0x184)],'currentApp':_0x445afe[_0x17a378(0x17f)],'appCode':_0x445afe['appCode'],'apps':_0x445afe[_0x17a378(0x196)]}};}export function createRabetbaseRunnerAdapter(_0x256b18={}){const _0x7513af=a327_0x4387;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x7513af(0x189)](_0x2c44d8=>PIPELINE_FLAG_NAMES[_0x7513af(0x173)](_0x2c44d8[_0x7513af(0x17b)]))['map'](({name:_0x2ed6e0,type:_0x39c949,description:_0x54cc43})=>({'name':_0x2ed6e0,'type':_0x39c949,'description':_0x54cc43})),'formatOutput':_0x256b18[_0x7513af(0x186)]??formatOutput,'getCommandLabel'(_0xdbc1c5){const _0x1188cf=_0x7513af;return CLI_BIN_NAME+'\x20'+_0xdbc1c5[_0x1188cf(0x1b8)]+'\x20'+_0xdbc1c5[_0x1188cf(0x167)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x3eb4af,{def:_0x488b0c}){const _0x1c181e=_0x7513af,_0x4db25a=_0x3eb4af[_0x1c181e(0x17d)]('Edit\x20the\x20config\x20file\x20manually')?_0x1c181e(0x19d):_0x1c181e(0x19e)+_0x488b0c[_0x1c181e(0x19a)]+'\x22\x20if\x20this\x20operation\x20is\x20intended.\x20'+'AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.';return CliErrors[_0x1c181e(0x17a)](_0x3eb4af+_0x1c181e(0x18e)+_0x4db25a);}},async 'prepare'(_0x669c31,_0xf5f539,_0x179e52,_0x1c0607){const _0x21626e=_0x7513af,_0x35765e=_0xf5f539[_0x21626e(0x171)]||DEFAULT_API_DIR,_0xa3a455=hasExplicitAppCode(_0x179e52,_0xf5f539[_0x21626e(0x17c)]),_0x6b95f5=stringFlag(_0x179e52['appcode'])||stringFlag(_0xf5f539[_0x21626e(0x17c)]['appcode']),_0x1e8910=_0xf5f539[_0x21626e(0x182)]?.[_0x21626e(0x196)]??{},_0x293e8c=_0xf5f539['selectedAppName']||_0xf5f539[_0x21626e(0x182)]?.[_0x21626e(0x17f)]||_0xf5f539['mergedCli']?.['defaultApp'],_0xd29e72=_0x6b95f5?Object['entries'](_0x1e8910)[_0x21626e(0x189)](([,_0x3c2e43])=>_0x3c2e43[_0x21626e(0x18b)]===_0x6b95f5)[_0x21626e(0x16a)](([_0x1af2af])=>_0x1af2af):[];if(_0xd29e72['length']>0x1&&!_0xf5f539['selectedAppName'])throw CliErrors[_0x21626e(0x17a)](_0x21626e(0x16e)+_0x6b95f5+_0x21626e(0x1ab)+_0xd29e72['join'](',\x20')+'.',_0x21626e(0x1b0));resolveAliasToCode(_0x669c31,_0x179e52,_0x35765e,_0x1c0607,_0xf5f539[_0x21626e(0x1b6)](),_0x293e8c);const _0x5113ca=resolveCommandAuthMode(_0x669c31);let _0x28b897='';if(_0x5113ca!=='none'){_0x28b897=_0xf5f539['resolveCookie']()||'';if(!_0x28b897){if(_0x5113ca===_0x21626e(0x1a8))throw CliErrors[_0x21626e(0x180)]();}else{const {setActiveCookie:_0x1e6752}=await import(_0x21626e(0x162));_0x1e6752(_0x28b897);}}const _0x558377=_0xf5f539['resolveAppCode']()??'';if(_0x669c31[_0x21626e(0x191)]!==![]){if(!_0xa3a455&&_0x293e8c&&!_0x1e8910[_0x293e8c]){const _0x37bbf0=Object[_0x21626e(0x16d)](_0x1e8910);throw CliErrors['validation'](_0x21626e(0x18c)+_0x293e8c+_0x21626e(0x179),_0x37bbf0[_0x21626e(0x183)]>0x0?_0x21626e(0x193)+_0x37bbf0['join'](',\x20')+_0x21626e(0x172)+CLI_BIN_NAME+_0x21626e(0x174):_0x21626e(0x17e)+CLI_BIN_NAME+_0x21626e(0x174));}assertEnvAppCodeNotIgnored(_0x558377,resolveEnvAppCode(),_0xa3a455);if(!_0x558377){const _0x436024=Object[_0x21626e(0x16d)](_0x1e8910);if(!_0x293e8c&&_0x436024[_0x21626e(0x183)]>0x1)throw CliErrors[_0x21626e(0x1ac)](_0x21626e(0x19f)+CLI_BIN_NAME+_0x21626e(0x1a5)+_0x436024[_0x21626e(0x18a)](',\x20')+'.');throw CliErrors[_0x21626e(0x1ac)](_0x21626e(0x1af)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}}return{'defaults':{'booleans':{'verbose':_0xf5f539[_0x21626e(0x166)]},'numbers':{'pagesize':_0xf5f539[_0x21626e(0x18f)]}},'extras':{'appCode':_0x558377,'cookie':_0x28b897,'apiDomain':_0xf5f539[_0x21626e(0x18d)](),'apiDir':_0x35765e,'selectedAppName':_0xf5f539['selectedAppName'],'mergedCli':_0xf5f539[_0x21626e(0x182)]}};},'confirmHighRisk':_0x256b18[_0x7513af(0x1b7)]??(async({env:_0xcd4b54,commandLabel:_0xdd2278})=>{const _0x24c751=_0x7513af;if(_0xcd4b54[_0x24c751(0x1b9)])throw CliErrors[_0x24c751(0x17a)](_0x24c751(0x175)+_0xdd2278+_0x24c751(0x176));await requireConfirmationPrompt({'lines':[_0x24c751(0x163)+_0xdd2278,_0x24c751(0x199)],'createCancelledError':_0x2b8f51=>CliErrors[_0x24c751(0x164)](_0x2b8f51)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x5b326b=a327_0x4387,{clearActiveCookie:_0x4523ea}=await import(_0x5b326b(0x162));_0x4523ea();}export async function finalizeRabetbaseRuntimeState(){const _0x116aa7=a327_0x4387;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x14c759},{initEnv:_0x5d57c4}]=await Promise[_0x116aa7(0x1bb)]([import(_0x116aa7(0x1a7)),import(_0x116aa7(0x181))]);_0x14c759(),_0x5d57c4(_0x116aa7(0x1a1));}}export async function runCommand(_0x1be25e,_0xf8b3d,_0xb543e3=terminalRunnerAdapter){assertRejectedFlags(_0x1be25e,_0xf8b3d['rawFlags']),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x1be25e)?withUpdateNotice(_0x1be25e):_0x1be25e,_0xf8b3d,_0xb543e3);}function assertRejectedFlags(_0x513cd0,_0x36fa3f){const _0x3330b6=a327_0x4387;for(const _0xcbed80 of _0x513cd0[_0x3330b6(0x165)]??[]){const _0x5d9ded=GLOBAL_FLAGS['find'](_0x1ee030=>_0x1ee030[_0x3330b6(0x17b)]===_0xcbed80[_0x3330b6(0x17b)]),_0x5ea118=new Set([_0xcbed80[_0x3330b6(0x17b)],toCamelCase(_0xcbed80[_0x3330b6(0x17b)]),_0x5d9ded?.[_0x3330b6(0x194)]]),_0x54d8e6=[..._0x5ea118][_0x3330b6(0x1b5)](_0x34324a=>{if(!_0x34324a)return![];const _0x256727=_0x36fa3f[_0x34324a];return _0x256727!==undefined&&_0x256727!==null&&_0x256727!==![];});if(_0x54d8e6)throw CliErrors[_0x3330b6(0x17a)](_0xcbed80[_0x3330b6(0x188)],_0xcbed80[_0x3330b6(0x178)]);}}function toCamelCase(_0x55f5e8){const _0x1b802d=a327_0x4387;return _0x55f5e8['replace'](/-([a-z])/g,(_0x571ec8,_0x2ed3f8)=>_0x2ed3f8[_0x1b802d(0x190)]());}function shouldAttachUpdateNotice(_0xe101ec){const _0x12902b=a327_0x4387;if(_0xe101ec[_0x12902b(0x16c)]===![])return![];return!['update',_0x12902b(0x195),_0x12902b(0x16b)]['includes'](_0xe101ec['service']);}function withUpdateNotice(_0x111a68){return{..._0x111a68,async 'execute'(_0x102bc8){const _0x3bec34=a327_0x4387,_0x34f1b=shouldResolveUpdateNotice(_0x102bc8)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x3bec34(0x1ad)](null),_0x8958ef=await _0x111a68[_0x3bec34(0x1ba)](_0x102bc8);return attachUpdateNotice(_0x8958ef,await _0x34f1b);}};}function shouldResolveUpdateNotice(_0x318b67){const _0x5f0180=a327_0x4387;return _0x318b67['format']===_0x5f0180(0x1ae)&&!_0x318b67['nonInteractive'];}function attachUpdateNotice(_0x9588fb,_0x35263b){const _0x1da2b0=a327_0x4387;if(!_0x35263b||!_0x9588fb||typeof _0x9588fb!==_0x1da2b0(0x1b2))return _0x9588fb;const _0x5ba636=_0x9588fb,_0x1a8f54=typeof _0x5ba636[_0x1da2b0(0x1b1)]===_0x1da2b0(0x1b2)&&_0x5ba636[_0x1da2b0(0x1b1)]!==null?_0x5ba636[_0x1da2b0(0x1b1)]:{};return{..._0x5ba636,'_notice':{..._0x1a8f54,'update':_0x35263b}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a328_0x2687(_0x1469fb,_0x49b4fd){_0x1469fb=_0x1469fb-0xc2;const _0x548b9c=a328_0x548b();let _0x26870a=_0x548b9c[_0x1469fb];return _0x26870a;}function a328_0x548b(){const _0x510f10=['246410DXlxMS','1724730MJHFWH','148181qqYFtW','../commands/registry.js','490heQVHX','89582Thjauz','279568eNGLEM','170265sQUyNj','1832vwidRV','9bItCKy','2493DDuAuV','30NUborF'];a328_0x548b=function(){return _0x510f10;};return a328_0x548b();}(function(_0x3aeea6,_0x20fac7){const _0x341d37=a328_0x2687,_0x452a72=_0x3aeea6();while(!![]){try{const _0x46f671=-parseInt(_0x341d37(0xc7))/0x1+-parseInt(_0x341d37(0xc5))/0x2*(-parseInt(_0x341d37(0xc9))/0x3)+parseInt(_0x341d37(0xc6))/0x4+-parseInt(_0x341d37(0xcc))/0x5*(parseInt(_0x341d37(0xcb))/0x6)+-parseInt(_0x341d37(0xcd))/0x7+parseInt(_0x341d37(0xc8))/0x8*(-parseInt(_0x341d37(0xca))/0x9)+-parseInt(_0x341d37(0xc4))/0xa*(-parseInt(_0x341d37(0xc2))/0xb);if(_0x46f671===_0x20fac7)break;else _0x452a72['push'](_0x452a72['shift']());}catch(_0x4d201f){_0x452a72['push'](_0x452a72['shift']());}}}(a328_0x548b,0x21a76));import{buildSchemaPayload as a328_0x1800cc}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x372470=a328_0x2687,{serviceRegistry:_0x3239a3,findDefinition:_0x134740}=await import(_0x372470(0xc3));return a328_0x1800cc({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x3239a3,'buildAllFlags':buildAllFlags,'findDefinition':_0x134740});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a329_0x2602(_0x30960f,_0x175f79){_0x30960f=_0x30960f-0xf0;const _0x542518=a329_0x5425();let _0x2602c5=_0x542518[_0x30960f];return _0x2602c5;}(function(_0x2a9a78,_0x5d2b5c){const _0x4949f6=a329_0x2602,_0x5b0389=_0x2a9a78();while(!![]){try{const _0x58f6b4=-parseInt(_0x4949f6(0x108))/0x1*(parseInt(_0x4949f6(0xfc))/0x2)+-parseInt(_0x4949f6(0x102))/0x3+-parseInt(_0x4949f6(0x10a))/0x4+-parseInt(_0x4949f6(0xfa))/0x5*(parseInt(_0x4949f6(0x106))/0x6)+-parseInt(_0x4949f6(0xf6))/0x7+-parseInt(_0x4949f6(0xfd))/0x8+parseInt(_0x4949f6(0xf3))/0x9;if(_0x58f6b4===_0x5d2b5c)break;else _0x5b0389['push'](_0x5b0389['shift']());}catch(_0x21c5dd){_0x5b0389['push'](_0x5b0389['shift']());}}}(a329_0x5425,0xc5db5));import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';function a329_0x5425(){const _0x127e06=['add','923797rVBmrS','length','find','flags','2177140BMGSKZ','Unsupported\x20flag\x20--','739916RXJwNp','5640520engASA','validation','entries','has','toUpperCase','4050174eUfWrs','command','$1-$2','name','6AuDNdj','alias','1BoJOpr','strictFlags','1894904eCKFOK','service','replace','isArray','meowKey','38489643SFlUud','\x20for\x20`'];a329_0x5425=function(){return _0x127e06;};return a329_0x5425();}import{CliErrors}from'../errors.js';export function assertSupportedCommandFlags(_0xf996c4,_0x3c9c85){const _0x1bb302=a329_0x2602;if(!_0xf996c4[_0x1bb302(0x109)])return;const _0x49b69f=new Set(['help','version']),_0x39349e=GLOBAL_FLAGS['filter'](_0x2db182=>PIPELINE_FLAG_NAMES[_0x1bb302(0x100)](_0x2db182[_0x1bb302(0x105)]));for(const _0x4a017f of[..._0xf996c4[_0x1bb302(0xf9)],..._0x39349e]){addFlagCandidates(_0x49b69f,_0x4a017f);}for(const [_0x2092af,_0x45cc4a]of Object[_0x1bb302(0xff)](_0x3c9c85)){if(!isExplicitValue(_0x45cc4a)||_0x49b69f[_0x1bb302(0x100)](_0x2092af))continue;const _0x3bd970=GLOBAL_FLAGS[_0x1bb302(0xf8)](_0x3bd8da=>_0x3bd8da[_0x1bb302(0xf2)]===_0x2092af)?.[_0x1bb302(0x105)]??toKebabCase(_0x2092af);throw CliErrors[_0x1bb302(0xfe)](_0x1bb302(0xfb)+_0x3bd970+_0x1bb302(0xf4)+CLI_BIN_NAME+'\x20'+_0xf996c4[_0x1bb302(0x10b)]+'\x20'+_0xf996c4[_0x1bb302(0x103)]+'`.','Run\x20`'+CLI_BIN_NAME+'\x20'+_0xf996c4[_0x1bb302(0x10b)]+'\x20'+_0xf996c4[_0x1bb302(0x103)]+'\x20--help`\x20to\x20view\x20the\x20current\x20command\x20contract.');}}function addFlagCandidates(_0x9a4c10,_0x4fedf6){const _0x59a603=a329_0x2602,_0x41db9e=_0x59a603(0xf2)in _0x4fedf6?[_0x4fedf6[_0x59a603(0x105)],_0x4fedf6[_0x59a603(0xf2)]]:[_0x4fedf6[_0x59a603(0x105)],_0x4fedf6[_0x59a603(0x107)]];for(const _0x46d68d of _0x41db9e){if(!_0x46d68d)continue;_0x9a4c10[_0x59a603(0xf5)](_0x46d68d),_0x9a4c10[_0x59a603(0xf5)](toCamelCase(_0x46d68d));}}function isExplicitValue(_0x2a8a8a){const _0x1bf6a9=a329_0x2602;return _0x2a8a8a!==undefined&&_0x2a8a8a!==null&&_0x2a8a8a!==![]&&(!Array[_0x1bf6a9(0xf1)](_0x2a8a8a)||_0x2a8a8a[_0x1bf6a9(0xf7)]>0x0);}function toCamelCase(_0x3474a5){const _0x252790=a329_0x2602;return _0x3474a5[_0x252790(0xf0)](/-([a-z])/g,(_0x360a56,_0x21e0b8)=>_0x21e0b8[_0x252790(0x101)]());}function toKebabCase(_0x21158e){const _0x34f8b1=a329_0x2602;return _0x21158e[_0x34f8b1(0xf0)](/([a-z0-9])([A-Z])/g,_0x34f8b1(0x104))['toLowerCase']();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x43e064,_0x1ae16b){var _0x1984e7=a330_0x2e26,_0x5113b2=_0x43e064();while(!![]){try{var _0xfc33b6=-parseInt(_0x1984e7(0x90))/0x1+-parseInt(_0x1984e7(0x88))/0x2*(parseInt(_0x1984e7(0x8c))/0x3)+-parseInt(_0x1984e7(0x89))/0x4+-parseInt(_0x1984e7(0x8d))/0x5+-parseInt(_0x1984e7(0x8a))/0x6+parseInt(_0x1984e7(0x8e))/0x7*(-parseInt(_0x1984e7(0x8b))/0x8)+-parseInt(_0x1984e7(0x8f))/0x9*(-parseInt(_0x1984e7(0x91))/0xa);if(_0xfc33b6===_0x1ae16b)break;else _0x5113b2['push'](_0x5113b2['shift']());}catch(_0x1857a3){_0x5113b2['push'](_0x5113b2['shift']());}}}(a330_0x41af,0x7f634));function a330_0x41af(){var _0x14ba97=['1453925PnfweW','279587nMZxjO','18tiLYKL','894132KvsONP','21536540bbxlQS','129318apXrqQ','1816652WXAFmh','5438826nDAxVQ','80BSzJEF','39trljBm'];a330_0x41af=function(){return _0x14ba97;};return a330_0x41af();}function a330_0x2e26(_0x298b8f,_0x1cae1c){_0x298b8f=_0x298b8f-0x88;var _0x41afc7=a330_0x41af();var _0x2e2633=_0x41afc7[_0x298b8f];return _0x2e2633;}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-beta.1";
|
|
2
|
+
export declare const GIT_TAG = "v2.5.11-beta.1";
|
|
3
|
+
export declare const GIT_COMMIT = "6e80d15c";
|
|
4
|
+
export declare const BUILD_TIME = "2026-11-03T10:12:20.088Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a331_0x2b983c=a331_0x5d4b;(function(_0x1b15f1,_0x4a1769){const _0x32d6fb=a331_0x5d4b,_0x54ba3f=_0x1b15f1();while(!![]){try{const _0x2afef1=parseInt(_0x32d6fb(0xfd))/0x1*(parseInt(_0x32d6fb(0xfa))/0x2)+parseInt(_0x32d6fb(0xf8))/0x3*(parseInt(_0x32d6fb(0x102))/0x4)+parseInt(_0x32d6fb(0xf9))/0x5*(parseInt(_0x32d6fb(0xff))/0x6)+parseInt(_0x32d6fb(0xf6))/0x7*(-parseInt(_0x32d6fb(0xfc))/0x8)+-parseInt(_0x32d6fb(0x100))/0x9*(-parseInt(_0x32d6fb(0x101))/0xa)+parseInt(_0x32d6fb(0xfe))/0xb+-parseInt(_0x32d6fb(0xfb))/0xc;if(_0x2afef1===_0x4a1769)break;else _0x54ba3f['push'](_0x54ba3f['shift']());}catch(_0x192a43){_0x54ba3f['push'](_0x54ba3f['shift']());}}}(a331_0x5e3c,0xd0ea4));function a331_0x5e3c(){const _0x3097c6=['26131iXKksd','2026-11-03T10:12:20.088Z','3029703nRHwRR','201175lCHExd','62396deKxEX','27397248sWLNea','696uiioSN','24KRQytc','14189461NzAHwD','54RayGFy','36cItQcY','132180KYUMgn','4GAVmFX'];a331_0x5e3c=function(){return _0x3097c6;};return a331_0x5e3c();}export const VERSION='2.5.11-beta.1';export const GIT_TAG='v2.5.11-beta.1';function a331_0x5d4b(_0x421c2d,_0x3d37cc){_0x421c2d=_0x421c2d-0xf6;const _0x5e3c83=a331_0x5e3c();let _0x5d4bb9=_0x5e3c83[_0x421c2d];return _0x5d4bb9;}export const GIT_COMMIT='6e80d15c';export const BUILD_TIME=a331_0x2b983c(0xf7);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a332_0x4d29(){const _0x3efde5=['https://kb-service-daily.lovrabet.com','79396ArhLiA','293730WMAURh','https://g.alicdn.com/code/lib','4XvPVfA','Global','https://dev.lovrabet.id','https://runtime.lovrabet.id','https://kb-service.lovrabet.id','https://user.lovrabet.com','https://daily-api.lovrabet.ai','indonesia','2953850ayftxV','https://skills.lovrabet.id','https://runtime.lovrabet.com','china','https://cdnjs.cloudflare.com/ajax/libs','Mainland\x20China','https://api.lovrabet.id','https://kb-service.lovrabet.com','https://user.lovrabet.id','11hJtgZf','102PXvsKX','285379HgHXbH','https://daily-api.lovrabet.com','337680WptQQN','https://skills-daily.lovrabet.com','5949860aXZVKv','227547yXPFYw','56vXYjNT','https://api.lovrabet.com','https://app.lovrabet.ai','https://skills-daily.lovrabet.ai','https://daily-runtime.lovrabet.ai','Indonesia','https://user.lovrabet.ai','https://api.lovrabet.ai','https://daily.lovrabet.com','https://g.lovrabet.id','https://app.lovrabet.id','152rKbbCv','https://daily-runtime.lovrabet.com','global','https://user-daily.lovrabet.ai'];a332_0x4d29=function(){return _0x3efde5;};return a332_0x4d29();}const a332_0x3983c2=a332_0x249d;(function(_0x8f8f6a,_0x6a3b04){const _0x314289=a332_0x249d,_0x466b7f=_0x8f8f6a();while(!![]){try{const _0x1d8068=parseInt(_0x314289(0x1f9))/0x1*(parseInt(_0x314289(0x1e6))/0x2)+parseInt(_0x314289(0x1f8))/0x3*(parseInt(_0x314289(0x1e3))/0x4)+parseInt(_0x314289(0x1ee))/0x5+parseInt(_0x314289(0x1e4))/0x6*(-parseInt(_0x314289(0x1ff))/0x7)+-parseInt(_0x314289(0x20a))/0x8*(parseInt(_0x314289(0x1fe))/0x9)+parseInt(_0x314289(0x1fd))/0xa*(-parseInt(_0x314289(0x1f7))/0xb)+-parseInt(_0x314289(0x1fb))/0xc;if(_0x1d8068===_0x6a3b04)break;else _0x466b7f['push'](_0x466b7f['shift']());}catch(_0x31011f){_0x466b7f['push'](_0x466b7f['shift']());}}}(a332_0x4d29,0x53503));export const ROUTING_CATALOG_DIGEST='57d346b80b12ca567af9d86dd7f8c02a0c27fe15d4944c8345add2cc6134c587';export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id',a332_0x3983c2(0x20c)];function a332_0x249d(_0x4d3d4f,_0x44c44d){_0x4d3d4f=_0x4d3d4f-0x1e2;const _0x4d29dc=a332_0x4d29();let _0x249dfb=_0x4d29dc[_0x4d3d4f];return _0x249dfb;}export const ENABLED_REGION_VALUES=['cn','id',a332_0x3983c2(0x20c)];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a332_0x3983c2(0x1f3),'aliases':[a332_0x3983c2(0x1f1)],'serviceDomains':{'production':{'user':a332_0x3983c2(0x1eb),'api':a332_0x3983c2(0x200),'runtime':a332_0x3983c2(0x1f0),'skill':'https://skills.lovrabet.com','kb':'https://api.lovrabet.com','kbService':a332_0x3983c2(0x1f5),'app':'https://app.lovrabet.com'},'daily':{'user':'https://user-daily.lovrabet.com','api':a332_0x3983c2(0x1fa),'runtime':a332_0x3983c2(0x20b),'skill':a332_0x3983c2(0x1fc),'kb':a332_0x3983c2(0x1fa),'kbService':a332_0x3983c2(0x1e2),'app':a332_0x3983c2(0x207)}},'cdn':{'libraries':a332_0x3983c2(0x1e5),'lovrabet':'https://g.lovrabet.com'},'local':{'origin':'https://dev.lovrabet.com'}},'id':{'enabled':!![],'label':a332_0x3983c2(0x204),'aliases':[a332_0x3983c2(0x1ed)],'serviceDomains':{'production':{'user':a332_0x3983c2(0x1f6),'api':a332_0x3983c2(0x1f4),'runtime':a332_0x3983c2(0x1e9),'skill':a332_0x3983c2(0x1ef),'kb':a332_0x3983c2(0x1f4),'kbService':a332_0x3983c2(0x1ea),'app':a332_0x3983c2(0x209)}},'cdn':{'libraries':a332_0x3983c2(0x1f2),'lovrabet':a332_0x3983c2(0x208)},'local':{'origin':a332_0x3983c2(0x1e8)}},'global':{'enabled':!![],'label':a332_0x3983c2(0x1e7),'aliases':[],'serviceDomains':{'production':{'user':a332_0x3983c2(0x205),'api':a332_0x3983c2(0x206),'runtime':'https://runtime.lovrabet.ai','skill':'https://skills.lovrabet.ai','kb':'https://api.lovrabet.ai','app':a332_0x3983c2(0x201)},'daily':{'user':a332_0x3983c2(0x20d),'api':a332_0x3983c2(0x1ec),'runtime':a332_0x3983c2(0x203),'skill':a332_0x3983c2(0x202),'kb':'https://daily-api.lovrabet.ai','app':'https://daily.lovrabet.ai'}},'cdn':{'libraries':a332_0x3983c2(0x1f2),'lovrabet':'https://g.lovrabet.ai'},'local':{'origin':'https://dev.lovrabet.ai'}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a333_0x19393a=a333_0x3c9c;(function(_0x3a9d12,_0x444e4b){const _0x70759=a333_0x3c9c,_0x4538db=_0x3a9d12();while(!![]){try{const _0x555eef=parseInt(_0x70759(0xaa))/0x1+-parseInt(_0x70759(0xa9))/0x2*(-parseInt(_0x70759(0xab))/0x3)+parseInt(_0x70759(0xa8))/0x4+-parseInt(_0x70759(0xb3))/0x5*(parseInt(_0x70759(0xae))/0x6)+-parseInt(_0x70759(0xac))/0x7+parseInt(_0x70759(0xa5))/0x8*(-parseInt(_0x70759(0xb1))/0x9)+-parseInt(_0x70759(0xa3))/0xa*(parseInt(_0x70759(0xa7))/0xb);if(_0x555eef===_0x444e4b)break;else _0x4538db['push'](_0x4538db['shift']());}catch(_0x3a50ab){_0x4538db['push'](_0x4538db['shift']());}}}(a333_0x4e32,0x926df));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST='a03fe188b2b34518efc5668666c0001d20354882cd7dd70afec902dffe1329c3';export const ENTERPRISE_ROUTING_PROTOCOL=a333_0x19393a(0xb4);function a333_0x4e32(){const _0x11e8f2=['certificateDomain','userDomain','159240XdeVuo','appDomain','8cvcfci','lovrabet','440SvOuyh','3900612WNQJzD','308344AZXizH','805702AHkCam','6AvBTJA','293629fTsTZy','libraries','1543446GhTMyw','apiDomain','kbDomain','349146ZhkZZk','runtimeDomain','15ihvFpS','lovrabet-routing/v1','enterprise'];a333_0x4e32=function(){return _0x11e8f2;};return a333_0x4e32();}export const ENTERPRISE_ROUTING_KIND=a333_0x19393a(0xb5);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a333_0x19393a(0xa2),'apiDomain','runtimeDomain','skillDomain',a333_0x19393a(0xb0),'kbServiceDomain',a333_0x19393a(0xa4),'localDomain',a333_0x19393a(0xb6)];function a333_0x3c9c(_0x8ed896,_0x123899){_0x8ed896=_0x8ed896-0xa2;const _0x4e3242=a333_0x4e32();let _0x3c9c95=_0x4e3242[_0x8ed896];return _0x3c9c95;}export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a333_0x19393a(0xa2),a333_0x19393a(0xaf),a333_0x19393a(0xb2),'skillDomain',a333_0x19393a(0xb0),a333_0x19393a(0xa4)];export const ENTERPRISE_ROUTING_CDN_FIELDS=[a333_0x19393a(0xad),a333_0x19393a(0xa6)];export const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS=['libraries',a333_0x19393a(0xa6)];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4088db,_0x51e2db){var _0x12a48d=a334_0x3cef,_0x19a519=_0x4088db();while(!![]){try{var _0x32131c=parseInt(_0x12a48d(0x183))/0x1*(parseInt(_0x12a48d(0x191))/0x2)+parseInt(_0x12a48d(0x18f))/0x3+parseInt(_0x12a48d(0x190))/0x4+parseInt(_0x12a48d(0x18d))/0x5*(parseInt(_0x12a48d(0x18c))/0x6)+-parseInt(_0x12a48d(0x187))/0x7+parseInt(_0x12a48d(0x188))/0x8+-parseInt(_0x12a48d(0x18e))/0x9*(parseInt(_0x12a48d(0x185))/0xa);if(_0x32131c===_0x51e2db)break;else _0x19a519['push'](_0x19a519['shift']());}catch(_0x4205b1){_0x19a519['push'](_0x19a519['shift']());}}}(a334_0x47cc,0x70f5d));function a334_0x47cc(){var _0x40e21b=['542324ZgBQNj','\x20to\x20view\x20available\x20commands.','1IfwqeI','\x20\x20Use\x20','7550030ZqxPdn','green','3560620HgOMYD','3812272OVOwLP','log','\x20--help','bold','2941506pjqWGs','5uwbkrO','18HfJKju','2107611eCGiHU','2163468kbWSfy'];a334_0x47cc=function(){return _0x40e21b;};return a334_0x47cc();}function a334_0x3cef(_0x583780,_0x36c1ed){_0x583780=_0x583780-0x183;var _0x47cc2e=a334_0x47cc();var _0x3cefee=_0x47cc2e[_0x583780];return _0x3cefee;}import a334_0x5173af from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x4505c6=a334_0x3cef;console['log'](),console[_0x4505c6(0x189)](a334_0x5173af[_0x4505c6(0x186)]['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x4505c6(0x189)](),console[_0x4505c6(0x189)](_0x4505c6(0x184)+a334_0x5173af[_0x4505c6(0x186)][_0x4505c6(0x18b)](CLI_BIN_NAME+_0x4505c6(0x18a))+_0x4505c6(0x192)),console[_0x4505c6(0x189)]();}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a335_0x22dd(_0x3b72f9,_0x178edc){_0x3b72f9=_0x3b72f9-0x123;const _0x2b9b6c=a335_0x2b9b();let _0x22dd32=_0x2b9b6c[_0x3b72f9];return _0x22dd32;}function a335_0x2b9b(){const _0x592481=['313554uSDsWv','686499alNvke','476JLfkgM','[BUILTIN_SKILL_INSTALL_','30744HbPwHh','Rabetbase\x20Built-in\x20Skill\x20','5858610DLiUSb','code','Repair\x20with:\x20','skillVersion','Installation\x20failed','21362WFJZcw','9TffsjJ','log','FAILED','already\x20current','error','installed','SOURCE_INVALID','1307375mCWxwv','warn','430TeFBwX','8973520UsUFcE','70akjIMx'];a335_0x2b9b=function(){return _0x592481;};return a335_0x2b9b();}(function(_0x183f15,_0x13672e){const _0x2e2ae6=a335_0x22dd,_0x72f41e=_0x183f15();while(!![]){try{const _0x4ede5a=-parseInt(_0x2e2ae6(0x12c))/0x1+-parseInt(_0x2e2ae6(0x124))/0x2+-parseInt(_0x2e2ae6(0x135))/0x3*(parseInt(_0x2e2ae6(0x133))/0x4)+parseInt(_0x2e2ae6(0x137))/0x5+-parseInt(_0x2e2ae6(0x131))/0x6*(-parseInt(_0x2e2ae6(0x130))/0x7)+parseInt(_0x2e2ae6(0x12f))/0x8*(-parseInt(_0x2e2ae6(0x125))/0x9)+parseInt(_0x2e2ae6(0x12e))/0xa*(parseInt(_0x2e2ae6(0x132))/0xb);if(_0x4ede5a===_0x13672e)break;else _0x72f41e['push'](_0x72f41e['shift']());}catch(_0x551b2a){_0x72f41e['push'](_0x72f41e['shift']());}}}(a335_0x2b9b,0xaf731));import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x2faa2d={}){const _0x24e4b2=a335_0x22dd,_0x111524=installBuiltinSkill(_0x2faa2d);if(_0x111524['ok']){const _0xc07967=_0x111524['changed']?_0x24e4b2(0x12a):_0x24e4b2(0x128),_0x58b7ce=_0x111524['installedPath']?'\x20at\x20'+_0x111524['installedPath']:'\x20via\x20skills@latest';return console[_0x24e4b2(0x126)](_0x24e4b2(0x136)+_0x111524[_0x24e4b2(0x13a)]+'\x20'+_0xc07967+_0x58b7ce),_0x111524;}const _0x46ea0e=_0x24e4b2(0x134)+(_0x111524[_0x24e4b2(0x138)]??_0x24e4b2(0x127))+']\x20'+(_0x111524[_0x24e4b2(0x129)]??_0x24e4b2(0x123))+'.\x20'+(_0x24e4b2(0x139)+_0x111524['repairCommand']);if(_0x111524[_0x24e4b2(0x138)]===_0x24e4b2(0x12b))throw new Error(_0x46ea0e);return console[_0x24e4b2(0x12d)](_0x46ea0e),_0x111524;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5b2f6f,_0x1f9485){const _0x2b5c31=a336_0x10e9,_0x58a26e=_0x5b2f6f();while(!![]){try{const _0xffea68=parseInt(_0x2b5c31(0xa1))/0x1*(-parseInt(_0x2b5c31(0x97))/0x2)+parseInt(_0x2b5c31(0x9a))/0x3*(parseInt(_0x2b5c31(0xa4))/0x4)+-parseInt(_0x2b5c31(0xa0))/0x5+-parseInt(_0x2b5c31(0xa5))/0x6*(parseInt(_0x2b5c31(0xa2))/0x7)+parseInt(_0x2b5c31(0xa8))/0x8*(-parseInt(_0x2b5c31(0xaa))/0x9)+-parseInt(_0x2b5c31(0x98))/0xa+parseInt(_0x2b5c31(0x9b))/0xb;if(_0xffea68===_0x1f9485)break;else _0x58a26e['push'](_0x58a26e['shift']());}catch(_0x29610e){_0x58a26e['push'](_0x58a26e['shift']());}}}(a336_0x5c25,0xaaf61));function a336_0x10e9(_0x144ea3,_0x3e94b6){_0x144ea3=_0x144ea3-0x95;const _0x5c25c9=a336_0x5c25();let _0x10e9c7=_0x5c25c9[_0x144ea3];return _0x10e9c7;}function a336_0x5c25(){const _0x955119=['replace','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','trim','147410UNZMiN','1ixgDIA','181867cNWlhd','risk','4NDxdiv','18qCyhbu','confirmationDescription','string','8oOBCRD','This\x20will\x20run\x20the\x20write\x20','4997313WxtPHc','This\x20will\x20run\x20the\x20high-risk\x20write\x20','write','high-risk-write','1533110rUksEY','17010gEyDsq','slice','1284243zBHbnP','18734254gURJyp','.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.'];a336_0x5c25=function(){return _0x955119;};return a336_0x5c25();}const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x4a5113,_0x1fa5cf,_0x3deaf4){const _0x55fa4c=a336_0x10e9,_0x3a9554=normalizeText(_0x4a5113[_0x55fa4c(0xa6)],DESCRIPTION_MAX_LENGTH),_0x315699=_0x3a9554||normalizeText(defaultDescription(requireWriteRisk(_0x4a5113),_0x1fa5cf),DESCRIPTION_MAX_LENGTH);return{'operation':_0x1fa5cf,'risk':requireWriteRisk(_0x4a5113),'description':_0x315699,..._0x3deaf4?{'signal':_0x3deaf4}:{}};}function requireWriteRisk(_0x1cfde9){const _0x11f364=a336_0x10e9;if(_0x1cfde9[_0x11f364(0xa3)]===_0x11f364(0x95)||_0x1cfde9[_0x11f364(0xa3)]===_0x11f364(0x96))return _0x1cfde9[_0x11f364(0xa3)];throw new Error(_0x11f364(0x9e));}function defaultDescription(_0x5c3cec,_0xe6642c){const _0x7c4e5=a336_0x10e9;if(_0x5c3cec==='high-risk-write')return _0x7c4e5(0xab)+_0xe6642c+'.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.';return _0x7c4e5(0xa9)+_0xe6642c+_0x7c4e5(0x9c);}function normalizeText(_0x46a4d8,_0x5c7a51){const _0xc89785=a336_0x10e9;if(typeof _0x46a4d8!==_0xc89785(0xa7))return'';return _0x46a4d8['replace'](/[\u0000-\u001f\u007f]+/g,'\x20')[_0xc89785(0x9d)](/\s+/g,'\x20')[_0xc89785(0x9f)]()[_0xc89785(0x99)](0x0,_0x5c7a51);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x21af55,_0x4fe483){const _0x42fa36=a337_0x2220,_0x787cbe=_0x21af55();while(!![]){try{const _0x3d9721=parseInt(_0x42fa36(0x183))/0x1+parseInt(_0x42fa36(0x182))/0x2*(-parseInt(_0x42fa36(0x185))/0x3)+parseInt(_0x42fa36(0x17f))/0x4*(parseInt(_0x42fa36(0x187))/0x5)+parseInt(_0x42fa36(0x184))/0x6*(-parseInt(_0x42fa36(0x17c))/0x7)+parseInt(_0x42fa36(0x181))/0x8*(-parseInt(_0x42fa36(0x17d))/0x9)+-parseInt(_0x42fa36(0x193))/0xa*(-parseInt(_0x42fa36(0x18e))/0xb)+-parseInt(_0x42fa36(0x189))/0xc*(parseInt(_0x42fa36(0x186))/0xd);if(_0x3d9721===_0x4fe483)break;else _0x787cbe['push'](_0x787cbe['shift']());}catch(_0x3fef69){_0x787cbe['push'](_0x787cbe['shift']());}}}(a337_0x483b,0x97be1));export function canonicalRabetbaseOperation(_0x3f563b){const _0xa82d06=a337_0x2220;return[_0x3f563b[_0xa82d06(0x180)],..._0x3f563b[_0xa82d06(0x18a)][_0xa82d06(0x17e)]()[_0xa82d06(0x18d)](/\s+/)][_0xa82d06(0x188)](Boolean)['join']('.');}function a337_0x2220(_0x5e04f2,_0x1bf087){_0x5e04f2=_0x5e04f2-0x17c;const _0x483be5=a337_0x483b();let _0x222068=_0x483be5[_0x5e04f2];return _0x222068;}function a337_0x483b(){const _0x3c3391=['986269rFNIGz','6KVICHd','791733ioGPxS','13QeXZTE','5rkzGiw','filter','11653296kNMiSX','command','risk','object','split','46937exDvol','conflicts','rabetbase.write.completed','isArray','high-risk-write','2600mFaqng','4480161yerYbQ','2926998xszYyH','trim','3960092ipchaS','service','8kmQsuP','4VSYNSJ'];a337_0x483b=function(){return _0x3c3391;};return a337_0x483b();}export function createRabetbaseWriteMetadata(_0x1bbb61,_0x7fd45f,_0x7d527d,_0x54c626){const _0x1fed46=a337_0x2220;if(_0x54c626||_0x7d527d['ok']!==!![]||hasUnresolvedConflicts(_0x7d527d)||_0x1bbb61[_0x1fed46(0x18b)]!=='write'&&_0x1bbb61[_0x1fed46(0x18b)]!==_0x1fed46(0x192))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x1fed46(0x190),'operation':_0x7fd45f,'risk':_0x1bbb61[_0x1fed46(0x18b)]}}};}function hasUnresolvedConflicts(_0x4640de){const _0x4fa1b2=a337_0x2220,_0x6cf243=_0x4640de['data'];return Boolean(_0x6cf243&&typeof _0x6cf243===_0x4fa1b2(0x18c)&&!Array[_0x4fa1b2(0x191)](_0x6cf243)&&Array[_0x4fa1b2(0x191)](_0x6cf243[_0x4fa1b2(0x18f)])&&_0x6cf243[_0x4fa1b2(0x18f)]['length']>0x0);}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3f39e5,_0x15ca94){const _0x69d0b9=a338_0x106f,_0x12b510=_0x3f39e5();while(!![]){try{const _0x1c44b4=parseInt(_0x69d0b9(0x190))/0x1+parseInt(_0x69d0b9(0x17e))/0x2*(-parseInt(_0x69d0b9(0x18d))/0x3)+-parseInt(_0x69d0b9(0x198))/0x4+parseInt(_0x69d0b9(0x18b))/0x5+-parseInt(_0x69d0b9(0x185))/0x6*(parseInt(_0x69d0b9(0x186))/0x7)+parseInt(_0x69d0b9(0x187))/0x8*(parseInt(_0x69d0b9(0x197))/0x9)+-parseInt(_0x69d0b9(0x188))/0xa*(-parseInt(_0x69d0b9(0x184))/0xb);if(_0x1c44b4===_0x15ca94)break;else _0x12b510['push'](_0x12b510['shift']());}catch(_0x3d78ca){_0x12b510['push'](_0x12b510['shift']());}}}(a338_0x1e3b,0xd7fbc));import{buildConfigFromFlags,initGlobalEnvironment,isRoutingRecoveryService}from'../context.js';function a338_0x1e3b(){const _0x29ebac=['yes','command','riskLevel','signal','1585719pZdYjW','1507340yipjNF','Rabetbase\x20invocation\x20aborted.','reason','dryRun','definition','write','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','format','execute','risk','82glDope','result','rawFlags','message','stringify','confirm','403601DtJRIf','5170302guIROE','14hYPeaa','8BbtOWM','500LYOENh','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','AbortError','1328580ksEwNy','service','51339GsHzjf','data','aborted','1410113sjDPtu','high-risk-write','present'];a338_0x1e3b=function(){return _0x29ebac;};return a338_0x1e3b();}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:_0x22aaf4,command:_0x4c56cd,risk:_0x1a7fc1,dryRun:_0x56d8e1}){const _0xc2c4ba=a338_0x106f;return JSON[_0xc2c4ba(0x182)]({'ok':_0x22aaf4['ok'],'command':_0x4c56cd,'risk':_0x1a7fc1,..._0x56d8e1?{'dryRun':!![]}:{},..._0x22aaf4[_0xc2c4ba(0x18e)]!==undefined?{'data':_0x22aaf4[_0xc2c4ba(0x18e)]}:{},..._0x22aaf4[_0xc2c4ba(0x181)]?{'message':_0x22aaf4[_0xc2c4ba(0x181)]}:{}});}};export async function invokeRabetbase(_0x2657cc,_0x10490d){const _0x573f82=a338_0x106f;throwIfAborted(_0x10490d[_0x573f82(0x196)]);const _0x5231f2=await resolveRabetbaseInvocation(_0x2657cc),_0x29433b=canonicalRabetbaseOperation(_0x5231f2['definition']);return await confirmWriteBeforeQueue(_0x5231f2[_0x573f82(0x19c)],_0x5231f2['rawFlags'],_0x29433b,_0x10490d),runSerialized(async()=>{const _0x244077=_0x573f82,_0xc7a7b2={};try{throwIfAborted(_0x10490d['signal']);const _0x5a2ebc=buildConfigFromFlags(_0x5231f2[_0x244077(0x180)]);!isRoutingRecoveryService(_0x5231f2[_0x244077(0x19c)][_0x244077(0x18c)])&&await initGlobalEnvironment(_0x5a2ebc);const _0x20e8d3=createPipelineEnv(_0x5a2ebc,{..._0x5231f2['rawFlags'],'yes':_0x5231f2[_0x244077(0x19c)]['risk']===_0x244077(0x191)?!![]:_0x5231f2['rawFlags'][_0x244077(0x193)],'nonInteractive':!![]},_0x5231f2['args']);_0x20e8d3['isNonInteractive']=!![],_0x20e8d3[_0x244077(0x195)]=_0x244077(0x191);const _0x990dc6=withAbortSignal(_0x5231f2[_0x244077(0x19c)],_0x10490d['signal']),_0x5d76ef=createRabetbaseRunnerAdapter({'formatOutput'(_0x3228bc,_0x3415e6){const _0x1499ac=_0x244077;_0xc7a7b2[_0x1499ac(0x17f)]=_0x3228bc,_0xc7a7b2[_0x1499ac(0x194)]=_0x3415e6[_0x1499ac(0x194)],_0xc7a7b2['risk']=_0x3415e6[_0x1499ac(0x17d)],_0xc7a7b2[_0x1499ac(0x17b)]=_0x3415e6[_0x1499ac(0x17b)],_0xc7a7b2[_0x1499ac(0x19b)]=_0x3415e6[_0x1499ac(0x19b)]===!![];},async 'confirmHighRisk'(){const _0x8c6792=_0x244077;throw new Error(_0x8c6792(0x17a));}});await runCommand(_0x990dc6,_0x20e8d3,_0x5d76ef);if(!_0xc7a7b2[_0x244077(0x17f)]||!_0xc7a7b2['command']||!_0xc7a7b2[_0x244077(0x17d)]||!_0xc7a7b2[_0x244077(0x17b)])throw new Error(_0x244077(0x189));const _0x52b7ef=_0xc7a7b2['dryRun']===!![],_0x5d5a5a=_0x10490d['presentation']??defaultPresentation,_0x23e4bc={'result':_0xc7a7b2['result'],'command':_0xc7a7b2[_0x244077(0x194)],'operation':_0x29433b,'risk':_0xc7a7b2[_0x244077(0x17d)],'format':_0xc7a7b2['format'],'dryRun':_0x52b7ef},_0x2c37a8=createRabetbaseWriteMetadata(_0x5231f2[_0x244077(0x19c)],_0x29433b,_0xc7a7b2[_0x244077(0x17f)],_0x52b7ef);let _0x56ea8f;try{_0x56ea8f=await _0x5d5a5a[_0x244077(0x192)](_0x23e4bc);}catch(_0x1f6036){if(!_0x2c37a8||_0x5d5a5a===defaultPresentation)throw _0x1f6036;_0x56ea8f=await defaultPresentation['present'](_0x23e4bc);}return{'operation':_0x29433b,'risk':_0xc7a7b2[_0x244077(0x17d)],'mode':_0x52b7ef?'dry-run':_0x244077(0x17c),'result':_0xc7a7b2[_0x244077(0x17f)],'output':_0x56ea8f,..._0x2c37a8?{'metadata':_0x2c37a8}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x3276b9,_0x101cdd,_0x12f5eb,_0xdd8fa){const _0xf02b88=a338_0x106f;if(_0x101cdd['dryRun']===!![]||_0x3276b9[_0xf02b88(0x17d)]!==_0xf02b88(0x179)&&_0x3276b9[_0xf02b88(0x17d)]!==_0xf02b88(0x191))return;await _0xdd8fa['confirmation'][_0xf02b88(0x183)](buildRabetbaseConfirmationRequest(_0x3276b9,_0x12f5eb,_0xdd8fa[_0xf02b88(0x196)]));}function a338_0x106f(_0x3eb957,_0x5ee195){_0x3eb957=_0x3eb957-0x179;const _0x1e3bc4=a338_0x1e3b();let _0x106f83=_0x1e3bc4[_0x3eb957];return _0x106f83;}function withAbortSignal(_0x2b14ed,_0x160526){return{..._0x2b14ed,async 'execute'(_0x5c2f58){const _0x142353=a338_0x106f;return throwIfAborted(_0x160526),_0x2b14ed[_0x142353(0x17c)]({..._0x5c2f58,'signal':_0x160526});}};}function throwIfAborted(_0x2bc64b){const _0x4b5629=a338_0x106f;if(_0x2bc64b?.[_0x4b5629(0x18f)])throw _0x2bc64b[_0x4b5629(0x19a)]instanceof Error?_0x2bc64b[_0x4b5629(0x19a)]:new DOMException(_0x4b5629(0x199),_0x4b5629(0x18a));}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a339_0x413a(){const _0x59f831=['2513118rNWUgA','5884azigfc','resolve','3455smxKdP','231TPqcLk','2022726jJbOuU','30008CqiKdj','catch','30hqnYjs','2348037WGdkiW','23228IdhgRV','10AwDHRm','2908818ttVENW'];a339_0x413a=function(){return _0x59f831;};return a339_0x413a();}const a339_0x237319=a339_0xe333;(function(_0x243a8b,_0x968b8a){const _0xb07ed0=a339_0xe333,_0x1de5fa=_0x243a8b();while(!![]){try{const _0x516bb8=parseInt(_0xb07ed0(0x1f8))/0x1*(parseInt(_0xb07ed0(0x1f7))/0x2)+parseInt(_0xb07ed0(0x1f2))/0x3+parseInt(_0xb07ed0(0x1fb))/0x4*(-parseInt(_0xb07ed0(0x1fd))/0x5)+-parseInt(_0xb07ed0(0x1fa))/0x6+parseInt(_0xb07ed0(0x1f1))/0x7*(parseInt(_0xb07ed0(0x1f3))/0x8)+parseInt(_0xb07ed0(0x1f6))/0x9*(parseInt(_0xb07ed0(0x1f5))/0xa)+parseInt(_0xb07ed0(0x1f9))/0xb;if(_0x516bb8===_0x968b8a)break;else _0x1de5fa['push'](_0x1de5fa['shift']());}catch(_0x29dd22){_0x1de5fa['push'](_0x1de5fa['shift']());}}}(a339_0x413a,0x80690));let tail=Promise[a339_0x237319(0x1fc)]();function a339_0xe333(_0x16bb41,_0x304320){_0x16bb41=_0x16bb41-0x1f1;const _0x413aa4=a339_0x413a();let _0xe333f2=_0x413aa4[_0x16bb41];return _0xe333f2;}export async function runSerialized(_0x39e2fb){const _0x164375=a339_0x237319,_0x5fd9ec=tail;let _0x509d0c;tail=new Promise(_0x57eae4=>{_0x509d0c=_0x57eae4;}),await _0x5fd9ec[_0x164375(0x1f4)](()=>undefined);try{return await _0x39e2fb();}finally{_0x509d0c();}}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x559ed0,_0x34569c){const _0xed9c46=a340_0x3d8c,_0xc51cb6=_0x559ed0();while(!![]){try{const _0x1d4ea4=-parseInt(_0xed9c46(0x162))/0x1+parseInt(_0xed9c46(0x163))/0x2+-parseInt(_0xed9c46(0x155))/0x3+parseInt(_0xed9c46(0x15c))/0x4*(-parseInt(_0xed9c46(0x165))/0x5)+parseInt(_0xed9c46(0x169))/0x6+-parseInt(_0xed9c46(0x160))/0x7+-parseInt(_0xed9c46(0x15b))/0x8*(-parseInt(_0xed9c46(0x158))/0x9);if(_0x1d4ea4===_0x34569c)break;else _0xc51cb6['push'](_0xc51cb6['shift']());}catch(_0x50e835){_0xc51cb6['push'](_0xc51cb6['shift']());}}}(a340_0x5bf6,0xd3ace));import a340_0x30436a from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a340_0x3d8c(_0x23ddf4,_0x464cac){_0x23ddf4=_0x23ddf4-0x154;const _0x5bf6f1=a340_0x5bf6();let _0x3d8c30=_0x5bf6f1[_0x23ddf4];return _0x3d8c30;}import{assertSupportedCommandFlags}from'../framework/supported-flags.js';export async function resolveRabetbaseInvocation(_0xb5c2b3){const _0x4420fb=a340_0x3d8c,_0x682d41=a340_0x30436a('',{'importMeta':import.meta,'argv':[..._0xb5c2b3],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x35f5b4=[..._0x682d41[_0x4420fb(0x161)]],_0x102597=_0x682d41[_0x4420fb(0x15f)],_0x5efdaf=_0x35f5b4[0x0];if(!_0x5efdaf)throw CliErrors[_0x4420fb(0x15e)](_0x4420fb(0x167));const _0x236219=resolveRemovedCommand(_0x5efdaf,_0x35f5b4[0x1]);if(_0x236219)throw CliErrors[_0x4420fb(0x15e)](_0x236219[_0x4420fb(0x154)],_0x236219[_0x4420fb(0x156)]);if(_0x5efdaf===_0x4420fb(0x164))throw CliErrors['validation'](_0x4420fb(0x15d),_0x4420fb(0x168));if(!isKnownService(_0x5efdaf))throw CliErrors['unknownCommand'](_0x35f5b4['join']('\x20'));const _0xf949b3=getServiceEntry(_0x5efdaf),_0x2d789a=_0x35f5b4[0x1],_0x3a0ceb=_0x2d789a||_0xf949b3['defaultCommand'];if(!_0x3a0ceb){if(_0xf949b3['wildcardDef'])return{'definition':_0xf949b3[_0x4420fb(0x159)],'rawFlags':_0x102597,'args':[]};throw CliErrors['validation'](_0x4420fb(0x166)+_0x5efdaf+'\x22.');}const _0x26dbec=findDefinition(_0x5efdaf,_0x3a0ceb);if(_0x26dbec)return assertSupportedCommandFlags(_0x26dbec,_0x102597),{'definition':_0x26dbec,'rawFlags':_0x102597,'args':_0x35f5b4[_0x4420fb(0x15a)](0x2)};if(_0xf949b3[_0x4420fb(0x159)])return{'definition':_0xf949b3[_0x4420fb(0x159)],'rawFlags':_0x102597,'args':[_0x3a0ceb,..._0x35f5b4[_0x4420fb(0x15a)](0x2)]};throw CliErrors[_0x4420fb(0x157)](_0x5efdaf+'\x20'+_0x3a0ceb);}function a340_0x5bf6(){const _0x4f4cbc=['3440296zBHnod','496024mavbUY','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','validation','flags','11311503SkiVrT','input','182809iwcdfu','2121598wBUdVA','run','10HsCQLI','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','7391460kfzPCY','message','717033ihenMR','hint','unknownCommand','18DKoIBZ','wildcardDef','slice'];a340_0x5bf6=function(){return _0x4f4cbc;};return a340_0x5bf6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a342_0x5f4e(){const _0x92d29d=['manifest','isSymbolicLink','close','string','Checkpoint\x20must\x20be\x20a\x20regular\x20JSON\x20file.','sync','168bwdDxs','468768CZaBtd','122296tYOaln','2387598eiriXa','schemaVersion','4yhYmnD','stringify','size','533922vJkQic','test','inputHash','331945JDqzTt','dataset-design-operation','117704mdbaJg','.tmp','writeFile','identityKey','Invalid\x20checkpoint;\x20reconcile\x20its\x20original\x20operation\x20before\x20submitting\x20again.','8178012RwgSHO','clientOperationId','code','ENOENT','isFile','parse','EEXIST','length'];a342_0x5f4e=function(){return _0x92d29d;};return a342_0x5f4e();}(function(_0x6eaa6b,_0xc71fc){const _0x4d3c09=a342_0x4e80,_0xc1cf2a=_0x6eaa6b();while(!![]){try{const _0x5333a3=parseInt(_0x4d3c09(0x88))/0x1+-parseInt(_0x4d3c09(0x89))/0x2+parseInt(_0x4d3c09(0x8a))/0x3*(parseInt(_0x4d3c09(0x8c))/0x4)+-parseInt(_0x4d3c09(0x92))/0x5+-parseInt(_0x4d3c09(0x8f))/0x6+-parseInt(_0x4d3c09(0x87))/0x7*(-parseInt(_0x4d3c09(0x94))/0x8)+-parseInt(_0x4d3c09(0x99))/0x9;if(_0x5333a3===_0xc71fc)break;else _0xc1cf2a['push'](_0xc1cf2a['shift']());}catch(_0x31cf38){_0xc1cf2a['push'](_0xc1cf2a['shift']());}}}(a342_0x5f4e,0x7840a));function a342_0x4e80(_0x4ace0b,_0x20f06e){_0x4ace0b=_0x4ace0b-0x7d;const _0x5f4e1e=a342_0x5f4e();let _0x4e80e8=_0x5f4e1e[_0x4ace0b];return _0x4e80e8;}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(_0x3d6904){const _0x501f34=a342_0x4e80;try{const _0xd666a2=await lstat(_0x3d6904);requireValue(_0xd666a2[_0x501f34(0x7d)]()&&!_0xd666a2[_0x501f34(0x82)]()&&_0xd666a2[_0x501f34(0x8e)]<=0x3d0900,_0x501f34(0x85));const _0x5aaa73=JSON[_0x501f34(0x7e)](await readFile(_0x3d6904,'utf8'));return requireValue(isObject(_0x5aaa73)&&_0x5aaa73['kind']===_0x501f34(0x93)&&_0x5aaa73[_0x501f34(0x8b)]===0x1&&typeof _0x5aaa73['clientOperationId']===_0x501f34(0x84)&&/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/[_0x501f34(0x90)](_0x5aaa73[_0x501f34(0x9a)])&&typeof _0x5aaa73[_0x501f34(0x91)]==='string'&&/^[a-f0-9]{64}$/[_0x501f34(0x90)](_0x5aaa73[_0x501f34(0x91)])&&typeof _0x5aaa73[_0x501f34(0x97)]===_0x501f34(0x84)&&_0x5aaa73[_0x501f34(0x97)][_0x501f34(0x80)]>0x0&&isObject(_0x5aaa73[_0x501f34(0x81)]),_0x501f34(0x98)),_0x5aaa73;}catch(_0x2467ae){if(_0x2467ae[_0x501f34(0x9b)]===_0x501f34(0x9c))return undefined;throw _0x2467ae;}}export async function saveCheckpoint(_0x5ec863,_0x3a0971,_0x218ce3=![]){const _0x47b0e3=a342_0x4e80;await mkdir(dirname(_0x5ec863),{'recursive':!![]});const _0x9319ef=_0x5ec863+'.'+randomUUID()+_0x47b0e3(0x95),_0x109b2f=await open(_0x9319ef,'wx',0x180);try{await _0x109b2f[_0x47b0e3(0x96)](JSON[_0x47b0e3(0x8d)](_0x3a0971,null,0x2)+'\x0a'),await _0x109b2f[_0x47b0e3(0x86)]();}finally{await _0x109b2f[_0x47b0e3(0x83)]();}try{if(_0x218ce3)await link(_0x9319ef,_0x5ec863);else await rename(_0x9319ef,_0x5ec863);return!![];}catch(_0x582b2e){if(_0x218ce3&&_0x582b2e[_0x47b0e3(0x9b)]===_0x47b0e3(0x7f))return![];throw _0x582b2e;}finally{await unlink(_0x9319ef)['catch'](_0x53083a=>{const _0x67d27f=_0x47b0e3;if(_0x53083a[_0x67d27f(0x9b)]!=='ENOENT')throw _0x53083a;});}}
|