@lovrabet/rabetbase-cli 2.5.10-beta.2 → 2.5.10-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- 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.d.ts +2 -2
- 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.d.ts +3 -0
- package/lib/commands/issue/context.js +1 -0
- 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 +2 -2
- package/skills/rabetbase/SKILL.md +2 -2
- package/skills/rabetbase/references/rabetbase-issue-report.md +4 -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/commands/issue/shared.d.ts +0 -32
- package/lib/commands/issue/shared.js +0 -1
- package/lib/telemetry/send-platform-issue-collect-log.d.ts +0 -26
- package/lib/telemetry/send-platform-issue-collect-log.js +0 -1
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x289fdf,_0x2cbb3c){const _0x190f7e=a324_0x4c4b,_0x390620=_0x289fdf();while(!![]){try{const _0x5ea189=-parseInt(_0x190f7e(0x10f))/0x1+-parseInt(_0x190f7e(0x111))/0x2+parseInt(_0x190f7e(0x121))/0x3+-parseInt(_0x190f7e(0x11a))/0x4*(parseInt(_0x190f7e(0x127))/0x5)+parseInt(_0x190f7e(0x114))/0x6+-parseInt(_0x190f7e(0x124))/0x7*(-parseInt(_0x190f7e(0x118))/0x8)+parseInt(_0x190f7e(0x11b))/0x9;if(_0x5ea189===_0x2cbb3c)break;else _0x390620['push'](_0x390620['shift']());}catch(_0x28fa25){_0x390620['push'](_0x390620['shift']());}}}(a324_0x3e1c,0x5caa6));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x1f09f,_0x9f943f){const _0x4b0f7a=a324_0x4c4b,_0x6dd9a1=_0x1f09f[_0x4b0f7a(0x117)],{_notice:_0x371fae,..._0x22089c}=_0x1f09f;void _0x371fae,baseFormatOutput(_0x22089c,_0x9f943f),_0x9f943f[_0x4b0f7a(0x128)]==='pretty'&&printPrettyNotice(_0x6dd9a1);}function a324_0x4c4b(_0x254496,_0x4a7bc6){_0x254496=_0x254496-0x10d;const _0x3e1c1e=a324_0x3e1c();let _0x4c4b1d=_0x3e1c1e[_0x254496];return _0x4c4b1d;}function a324_0x3e1c(){const _0x3caf1f=['4104246lBwOXy','command','code','_notice','34856yWqDwi','error','1054372EzGKmS','4170141EjmMJz','endsWith','risk','url','jq:\x20','write','80109PHPlyu','trim','jqFilter','112mWMPwh','pretty','update','10ZOMXWC','format','hint','json','data','138627uNzLBx','stdout','396868KBcOjv','message','stringify'];a324_0x3e1c=function(){return _0x3caf1f;};return a324_0x3e1c();}export function formatCliError(_0x19478a,_0x2fc2a7){const _0x2bf80b=a324_0x4c4b;if(_0x2fc2a7[_0x2bf80b(0x128)]===_0x2bf80b(0x125))return![];const _0x20e599=_0x19478a[_0x2bf80b(0x10e)],_0x1eafdd={'ok':![],'command':_0x2fc2a7[_0x2bf80b(0x115)],'risk':_0x2fc2a7[_0x2bf80b(0x11d)],'data':_0x20e599??null,'error':{'code':_0x19478a['code'],'message':_0x19478a['message'],..._0x19478a['hint']?{'hint':_0x19478a[_0x2bf80b(0x129)]}:{}}},_0xa73230=_0x2fc2a7[_0x2bf80b(0x128)]==='json'?JSON[_0x2bf80b(0x113)](_0x1eafdd,null,0x2):JSON[_0x2bf80b(0x113)](_0x1eafdd);let _0x148903=_0xa73230;if(_0x2fc2a7[_0x2bf80b(0x123)]?.[_0x2bf80b(0x122)]())try{_0x148903=applyJqFilter(_0xa73230,_0x2fc2a7[_0x2bf80b(0x123)]);}catch(_0x35791b){const _0x360ba8=_0x35791b instanceof CliError?_0x35791b:CliErrors['validation'](_0x2bf80b(0x11f)+(_0x35791b instanceof Error?_0x35791b['message']:String(_0x35791b))),_0x3c0666={..._0x1eafdd,'error':{'code':_0x360ba8[_0x2bf80b(0x116)],'message':_0x360ba8[_0x2bf80b(0x112)],..._0x360ba8['hint']?{'hint':_0x360ba8['hint']}:{},'cause':_0x1eafdd[_0x2bf80b(0x119)]}};_0x148903=_0x2fc2a7[_0x2bf80b(0x128)]===_0x2bf80b(0x10d)?JSON[_0x2bf80b(0x113)](_0x3c0666,null,0x2):JSON[_0x2bf80b(0x113)](_0x3c0666);}return process[_0x2bf80b(0x110)][_0x2bf80b(0x120)](_0x148903[_0x2bf80b(0x11c)]('\x0a')?_0x148903:_0x148903+'\x0a'),!![];}function printPrettyNotice(_0x3c6a01){const _0x5bef49=a324_0x4c4b;if(!_0x3c6a01?.[_0x5bef49(0x126)])return;console[_0x5bef49(0x119)](_0x3c6a01[_0x5bef49(0x126)][_0x5bef49(0x112)]+'\x20('+_0x3c6a01['update'][_0x5bef49(0x11e)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x34b6e4,_0x466326){var _0x367e19=a325_0x231b,_0x55a9fe=_0x34b6e4();while(!![]){try{var _0xcc2a80=parseInt(_0x367e19(0x14a))/0x1*(-parseInt(_0x367e19(0x147))/0x2)+-parseInt(_0x367e19(0x146))/0x3*(parseInt(_0x367e19(0x145))/0x4)+-parseInt(_0x367e19(0x14b))/0x5*(-parseInt(_0x367e19(0x142))/0x6)+-parseInt(_0x367e19(0x148))/0x7+-parseInt(_0x367e19(0x144))/0x8+-parseInt(_0x367e19(0x149))/0x9*(-parseInt(_0x367e19(0x143))/0xa)+parseInt(_0x367e19(0x141))/0xb;if(_0xcc2a80===_0x466326)break;else _0x55a9fe['push'](_0x55a9fe['shift']());}catch(_0x4bc3bf){_0x55a9fe['push'](_0x55a9fe['shift']());}}}(a325_0x2321,0xc53e7));function a325_0x2321(){var _0x10e1f2=['2685909epSBnh','26654iUyRoy','7293783ecQjBO','8505obdlpM','90ToBPyf','50dcnNUf','50949426zmvkQZ','51636gSCexH','3930RyolPE','9156784rWKcmo','4NHDqlj'];a325_0x2321=function(){return _0x10e1f2;};return a325_0x2321();}function a325_0x231b(_0x364f7d,_0x19719d){_0x364f7d=_0x364f7d-0x141;var _0x23211a=a325_0x2321();var _0x231bd7=_0x23211a[_0x364f7d];return _0x231bd7;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a326_0x1cb1(){const _0x5862a6=['Available\x20aliases:\x20','12zYkXLO','code','string','validation','some','name','map','1559388NxnFXV','1144875xaCseL','profileName','.\x20Run\x20`','286746LIexFE','alias','No\x20model\x20aliases\x20found\x20in\x20','filePath','27SEfOAs','112ksCFiE','10531280RWGfHJ','2556148kftSsX','Unknown\x20alias\x20\x22','\x20api\x20pull`\x20first.','454055xOgbLx','join','2080200vZCjYT','flags','type','\x22.\x20'];a326_0x1cb1=function(){return _0x5862a6;};return a326_0x1cb1();}(function(_0x23be47,_0x48091e){const _0x532806=a326_0x4110,_0x2338e2=_0x23be47();while(!![]){try{const _0x19cac4=-parseInt(_0x532806(0x68))/0x1+parseInt(_0x532806(0x81))/0x2+parseInt(_0x532806(0x76))/0x3+-parseInt(_0x532806(0x6f))/0x4*(parseInt(_0x532806(0x77))/0x5)+parseInt(_0x532806(0x7a))/0x6*(parseInt(_0x532806(0x7f))/0x7)+-parseInt(_0x532806(0x80))/0x8+parseInt(_0x532806(0x7e))/0x9*(parseInt(_0x532806(0x6a))/0xa);if(_0x19cac4===_0x48091e)break;else _0x2338e2['push'](_0x2338e2['shift']());}catch(_0x4c2581){_0x2338e2['push'](_0x2338e2['shift']());}}}(a326_0x1cb1,0xb206c));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a326_0x4110(_0x19ed8e,_0x2a36c0){_0x19ed8e=_0x19ed8e-0x68;const _0x1cb140=a326_0x1cb1();let _0x4110e9=_0x1cb140[_0x19ed8e];return _0x4110e9;}import{resolveApiModelSource}from'../api/model-source.js';export function resolveAliasToCode(_0x2803cb,_0x24ec35,_0x508878,_0x375a24,_0x55e492,_0x3a2044){const _0x5c4737=a326_0x4110,_0x29d4c6=_0x2803cb[_0x5c4737(0x6b)][_0x5c4737(0x73)](_0x1363c4=>_0x1363c4[_0x5c4737(0x74)]===_0x5c4737(0x70)&&_0x1363c4[_0x5c4737(0x6c)]===_0x5c4737(0x71)),_0x1bf43d=_0x2803cb['flags'][_0x5c4737(0x73)](_0x58e75f=>_0x58e75f['name']===_0x5c4737(0x7b)&&_0x58e75f[_0x5c4737(0x6c)]===_0x5c4737(0x71));if(!_0x29d4c6||!_0x1bf43d)return;const _0x45fea6=_0x24ec35[_0x5c4737(0x70)]?String(_0x24ec35['code']):'',_0xa9ccfd=_0x24ec35[_0x5c4737(0x7b)]?String(_0x24ec35['alias']):'';if(!_0x45fea6&&!_0xa9ccfd)throw CliErrors[_0x5c4737(0x72)]('`'+_0x375a24+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0xa9ccfd&&!_0x45fea6){const _0x703a5f=resolveApiModelSource(_0x508878,_0x55e492,_0x3a2044),_0xe30824=resolveAlias(_0x508878,_0xa9ccfd,undefined,_0x703a5f[_0x5c4737(0x7d)],_0x703a5f[_0x5c4737(0x78)]);if(!_0xe30824){const _0x30339e=listAliases(_0x508878,undefined,_0x703a5f['filePath'],_0x703a5f[_0x5c4737(0x78)])[_0x5c4737(0x75)](_0x4e6bb3=>_0x4e6bb3[_0x5c4737(0x7b)]),_0x30be59=_0x30339e['length']?_0x5c4737(0x6e)+_0x30339e[_0x5c4737(0x69)](',\x20'):_0x5c4737(0x7c)+_0x508878+_0x5c4737(0x79)+CLI_BIN_NAME+_0x5c4737(0x83);throw CliErrors[_0x5c4737(0x72)](_0x5c4737(0x82)+_0xa9ccfd+_0x5c4737(0x6d)+_0x30be59);}_0x24ec35[_0x5c4737(0x70)]=_0xe30824;}}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x319ce5,_0x2fbb76){const _0x286217=a327_0xa135,_0x5eecd2=_0x319ce5();while(!![]){try{const _0xe64c9d=-parseInt(_0x286217(0x19a))/0x1+-parseInt(_0x286217(0x1c6))/0x2+-parseInt(_0x286217(0x1b5))/0x3+-parseInt(_0x286217(0x1d9))/0x4+parseInt(_0x286217(0x1d2))/0x5*(-parseInt(_0x286217(0x1ad))/0x6)+parseInt(_0x286217(0x1b1))/0x7*(-parseInt(_0x286217(0x1b8))/0x8)+parseInt(_0x286217(0x1ab))/0x9*(parseInt(_0x286217(0x1a7))/0xa);if(_0xe64c9d===_0x2fbb76)break;else _0x5eecd2['push'](_0x5eecd2['shift']());}catch(_0x349bac){_0x5eecd2['push'](_0x5eecd2['shift']());}}}(a327_0x7811,0x5e0c6));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';function a327_0x7811(){const _0x31cc3e=['join','cookie','configMissing','appCode','nonInteractive','1045oEFena','keys','execute','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','format','message','_notice','2504124WxQMPn','mergedCli','has','\x0a\x20\x20','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','defaultPageSize','service','defaultVerbose','includes','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','Edit\x20the\x20config\x20file\x20manually','../core/api-client.js','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','currentApp','apiDir','3938SfympA','name','App\x20\x22','length','meowKey','requiresAppCode','some','selectedAppName','apps','filter','value','verbose','resolve','10IvpPdV','map','rejectedFlags','string','17820018YVCUKd','rawFlags','2598kizddt','resolveCookie','risk','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','14mrsKvF','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','trim','toUpperCase','1578258wwqAUU','cancelled','validation','184192DxBXeZ','entries','\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20','doctor','LOVRABET_APPCODE','RABETBASE_APPCODE','update','High-risk\x20operation\x20`','⚠\x20\x20High-risk\x20operation:\x20','all','find','Available:\x20','\x20\x20\x20Continue?\x20[y/N]\x20','pageSize','604360kAwvHR','object','none','production','defaultApp','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','appcode'];a327_0x7811=function(){return _0x31cc3e;};return a327_0x7811();}import{getCookie}from'../auth/get-cookie.js';function a327_0xa135(_0x3b5698,_0x58ddac){_0x3b5698=_0x3b5698-0x18f;const _0x781191=a327_0x7811();let _0xa1359e=_0x781191[_0x3b5698];return _0xa1359e;}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_0x5f7e19}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x10ad0e){const _0x46cb09=a327_0xa135;return typeof _0x10ad0e===_0x46cb09(0x1aa)&&_0x10ad0e[_0x46cb09(0x1b3)]()?_0x10ad0e[_0x46cb09(0x1b3)]():undefined;}function resolveEnvAppCode(){const _0x565ed5=a327_0xa135,_0x506506=stringFlag(process.env.RABETBASE_APPCODE);if(_0x506506)return{'name':_0x565ed5(0x1bd),'value':_0x506506};const _0xfe143c=stringFlag(process.env.LOVRABET_APPCODE);if(_0xfe143c)return{'name':_0x565ed5(0x1bc),'value':_0xfe143c};return undefined;}function hasExplicitAppCode(_0x240390,_0x306d5f){return!!(stringFlag(_0x240390['appcode'])||stringFlag(_0x306d5f['appcode']));}function assertEnvAppCodeNotIgnored(_0x253084,_0x3b4e30,_0x232547){const _0x544239=a327_0xa135;if(!_0x3b4e30||_0x232547||_0x253084===_0x3b4e30['value'])return;const _0x4874d1=_0x253084?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0x253084+'\x22.':_0x544239(0x1d5);throw CliErrors[_0x544239(0x1b7)](_0x3b4e30[_0x544239(0x19b)]+'='+_0x3b4e30[_0x544239(0x1a4)]+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0x4874d1+'\x20'+(_0x544239(0x1cb)+_0x3b4e30[_0x544239(0x19b)]+'\x22.'));}export function createPipelineEnv(_0x3814c8,_0x315db0,_0x38a97a=[]){const _0x141e5b=a327_0xa135;return{'rawFlags':_0x315db0,'args':_0x38a97a,'resolveAppCode':()=>_0x3814c8[_0x141e5b(0x1d0)],'resolveCookie':()=>_0x3814c8[_0x141e5b(0x1ce)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a327_0x5f7e19(_0x315db0),'defaultFormat':_0x3814c8[_0x141e5b(0x1d6)],'defaultPageSize':_0x3814c8[_0x141e5b(0x1c5)],'defaultVerbose':_0x3814c8[_0x141e5b(0x1a5)],'apiDir':_0x3814c8[_0x141e5b(0x199)],'riskLevel':_0x3814c8['riskLevel'],'selectedAppName':_0x3814c8['explicitAppName'],'mergedCli':{'defaultApp':_0x3814c8[_0x141e5b(0x1ca)],'currentApp':_0x3814c8[_0x141e5b(0x198)],'appCode':_0x3814c8[_0x141e5b(0x1d0)],'apps':_0x3814c8[_0x141e5b(0x1a2)]}};}export function createRabetbaseRunnerAdapter(_0x363e08={}){const _0x37cc46=a327_0xa135;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x37cc46(0x1a3)](_0x22439a=>PIPELINE_FLAG_NAMES[_0x37cc46(0x1db)](_0x22439a[_0x37cc46(0x19b)]))[_0x37cc46(0x1a8)](({name:_0x31088a,type:_0x3be820,description:_0x199430})=>({'name':_0x31088a,'type':_0x3be820,'description':_0x199430})),'formatOutput':_0x363e08['formatOutput']??formatOutput,'getCommandLabel'(_0x409903){const _0x43163b=_0x37cc46;return CLI_BIN_NAME+'\x20'+_0x409903[_0x43163b(0x191)]+'\x20'+_0x409903['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x559556,{def:_0x5d0e94}){const _0x1931ca=_0x37cc46,_0x47b5de=_0x559556[_0x1931ca(0x193)](_0x1931ca(0x195))?_0x1931ca(0x1b0):'A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22'+_0x5d0e94[_0x1931ca(0x1af)]+_0x1931ca(0x1b2)+_0x1931ca(0x1b0);return CliErrors[_0x1931ca(0x1b7)](_0x559556+_0x1931ca(0x1dc)+_0x47b5de);}},async 'prepare'(_0x580d88,_0xd6d24b,_0x506655,_0x42795f){const _0x21d54c=_0x37cc46,_0x1183e7=_0xd6d24b[_0x21d54c(0x199)]||DEFAULT_API_DIR,_0x2d16c6=hasExplicitAppCode(_0x506655,_0xd6d24b[_0x21d54c(0x1ac)]),_0x1ed78c=stringFlag(_0x506655[_0x21d54c(0x1cc)])||stringFlag(_0xd6d24b[_0x21d54c(0x1ac)]['appcode']),_0x55cd8a=_0xd6d24b[_0x21d54c(0x1da)]?.[_0x21d54c(0x1a2)]??{},_0x25ee89=_0xd6d24b[_0x21d54c(0x1a1)]||_0xd6d24b[_0x21d54c(0x1da)]?.[_0x21d54c(0x198)]||_0xd6d24b[_0x21d54c(0x1da)]?.['defaultApp'],_0x47afb2=_0x1ed78c?Object[_0x21d54c(0x1b9)](_0x55cd8a)['filter'](([,_0x572fe0])=>_0x572fe0['appcode']===_0x1ed78c)[_0x21d54c(0x1a8)](([_0x335ee9])=>_0x335ee9):[];if(_0x47afb2[_0x21d54c(0x19d)]>0x1&&!_0xd6d24b[_0x21d54c(0x1a1)])throw CliErrors[_0x21d54c(0x1b7)]('AppCode\x20\x22'+_0x1ed78c+_0x21d54c(0x1ba)+_0x47afb2[_0x21d54c(0x1cd)](',\x20')+'.','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.');resolveAliasToCode(_0x580d88,_0x506655,_0x1183e7,_0x42795f,_0xd6d24b['resolveAppCode'](),_0x25ee89);const _0x5f314b=resolveCommandAuthMode(_0x580d88);let _0x35fd31='';if(_0x5f314b!==_0x21d54c(0x1c8)){_0x35fd31=_0xd6d24b[_0x21d54c(0x1ae)]()||'';if(!_0x35fd31){if(_0x5f314b==='required')throw CliErrors['authRequired']();}else{const {setActiveCookie:_0x3aa53f}=await import('../core/api-client.js');_0x3aa53f(_0x35fd31);}}const _0x532696=_0xd6d24b['resolveAppCode']()??'';if(_0x580d88[_0x21d54c(0x19f)]!==![]){if(!_0x2d16c6&&_0x25ee89&&!_0x55cd8a[_0x25ee89]){const _0x5975c9=Object[_0x21d54c(0x1d3)](_0x55cd8a);throw CliErrors['validation'](_0x21d54c(0x19c)+_0x25ee89+_0x21d54c(0x1dd),_0x5975c9[_0x21d54c(0x19d)]>0x0?_0x21d54c(0x1c3)+_0x5975c9[_0x21d54c(0x1cd)](',\x20')+'.\x20Use\x20--app/--appcode,\x20or\x20run\x20`'+CLI_BIN_NAME+'\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.':_0x21d54c(0x197)+CLI_BIN_NAME+'\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.');}assertEnvAppCodeNotIgnored(_0x532696,resolveEnvAppCode(),_0x2d16c6);if(!_0x532696){const _0x4f1542=Object[_0x21d54c(0x1d3)](_0x55cd8a);if(!_0x25ee89&&_0x4f1542[_0x21d54c(0x19d)]>0x1)throw CliErrors[_0x21d54c(0x1cf)](_0x21d54c(0x18f)+CLI_BIN_NAME+_0x21d54c(0x194)+_0x4f1542['join'](',\x20')+'.');throw CliErrors[_0x21d54c(0x1cf)]('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}}return{'defaults':{'booleans':{'verbose':_0xd6d24b[_0x21d54c(0x192)]},'numbers':{'pagesize':_0xd6d24b[_0x21d54c(0x190)]}},'extras':{'appCode':_0x532696,'cookie':_0x35fd31,'apiDomain':_0xd6d24b['resolveApiDomain'](),'apiDir':_0x1183e7,'selectedAppName':_0xd6d24b['selectedAppName'],'mergedCli':_0xd6d24b[_0x21d54c(0x1da)]}};},'confirmHighRisk':_0x363e08['confirmHighRisk']??(async({env:_0x5cdcd8,commandLabel:_0x384c8c})=>{const _0x3cf260=_0x37cc46;if(_0x5cdcd8['isNonInteractive'])throw CliErrors['validation'](_0x3cf260(0x1bf)+_0x384c8c+_0x3cf260(0x1de));await requireConfirmationPrompt({'lines':[_0x3cf260(0x1c0)+_0x384c8c,_0x3cf260(0x1c4)],'createCancelledError':_0x46d221=>CliErrors[_0x3cf260(0x1b6)](_0x46d221)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x4fbadc=a327_0xa135,{clearActiveCookie:_0x621faa}=await import(_0x4fbadc(0x196));_0x621faa();}export async function finalizeRabetbaseRuntimeState(){const _0x438bab=a327_0xa135;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x291d86},{initEnv:_0xf88bb1}]=await Promise[_0x438bab(0x1c1)]([import('../constant/domain.js'),import('../constant/env.js')]);_0x291d86(),_0xf88bb1(_0x438bab(0x1c9));}}export async function runCommand(_0x2b6feb,_0x55f8d0,_0x3332fe=terminalRunnerAdapter){assertRejectedFlags(_0x2b6feb,_0x55f8d0['rawFlags']),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x2b6feb)?withUpdateNotice(_0x2b6feb):_0x2b6feb,_0x55f8d0,_0x3332fe);}function assertRejectedFlags(_0x12aaca,_0x4b0d93){const _0x8a7510=a327_0xa135;for(const _0x21723c of _0x12aaca[_0x8a7510(0x1a9)]??[]){const _0x9623f0=GLOBAL_FLAGS[_0x8a7510(0x1c2)](_0x1d2b79=>_0x1d2b79[_0x8a7510(0x19b)]===_0x21723c['name']),_0x5d9aff=new Set([_0x21723c[_0x8a7510(0x19b)],toCamelCase(_0x21723c['name']),_0x9623f0?.[_0x8a7510(0x19e)]]),_0x4256b0=[..._0x5d9aff][_0x8a7510(0x1a0)](_0x12bc81=>{if(!_0x12bc81)return![];const _0x5da744=_0x4b0d93[_0x12bc81];return _0x5da744!==undefined&&_0x5da744!==null&&_0x5da744!==![];});if(_0x4256b0)throw CliErrors[_0x8a7510(0x1b7)](_0x21723c[_0x8a7510(0x1d7)],_0x21723c['hint']);}}function toCamelCase(_0x4ba473){const _0x43b240=a327_0xa135;return _0x4ba473['replace'](/-([a-z])/g,(_0x472081,_0x3392cb)=>_0x3392cb[_0x43b240(0x1b4)]());}function shouldAttachUpdateNotice(_0xb3656a){const _0x4c55d6=a327_0xa135;if(_0xb3656a['hasFormat']===![])return![];return![_0x4c55d6(0x1be),'schema',_0x4c55d6(0x1bb)][_0x4c55d6(0x193)](_0xb3656a[_0x4c55d6(0x191)]);}function withUpdateNotice(_0x3a23e9){return{..._0x3a23e9,async 'execute'(_0xecba30){const _0x3b98a1=a327_0xa135,_0x545083=shouldResolveUpdateNotice(_0xecba30)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x3b98a1(0x1a6)](null),_0x2bbf6d=await _0x3a23e9[_0x3b98a1(0x1d4)](_0xecba30);return attachUpdateNotice(_0x2bbf6d,await _0x545083);}};}function shouldResolveUpdateNotice(_0xf3d4da){const _0x1de8ba=a327_0xa135;return _0xf3d4da[_0x1de8ba(0x1d6)]==='pretty'&&!_0xf3d4da[_0x1de8ba(0x1d1)];}function attachUpdateNotice(_0x3783de,_0x23e30c){const _0x29eaf1=a327_0xa135;if(!_0x23e30c||!_0x3783de||typeof _0x3783de!==_0x29eaf1(0x1c7))return _0x3783de;const _0x155e07=_0x3783de,_0x27dbee=typeof _0x155e07[_0x29eaf1(0x1d8)]===_0x29eaf1(0x1c7)&&_0x155e07[_0x29eaf1(0x1d8)]!==null?_0x155e07[_0x29eaf1(0x1d8)]:{};return{..._0x155e07,'_notice':{..._0x27dbee,'update':_0x23e30c}};}
|
|
1
|
+
(function(_0x4dbe54,_0x2c0d99){const _0x1543ca=a327_0x4b86,_0x276003=_0x4dbe54();while(!![]){try{const _0x6699aa=-parseInt(_0x1543ca(0x1fa))/0x1*(-parseInt(_0x1543ca(0x1dd))/0x2)+-parseInt(_0x1543ca(0x229))/0x3+-parseInt(_0x1543ca(0x21d))/0x4+-parseInt(_0x1543ca(0x1cf))/0x5+parseInt(_0x1543ca(0x206))/0x6*(parseInt(_0x1543ca(0x1f9))/0x7)+parseInt(_0x1543ca(0x1f1))/0x8+-parseInt(_0x1543ca(0x1dc))/0x9*(parseInt(_0x1543ca(0x211))/0xa);if(_0x6699aa===_0x2c0d99)break;else _0x276003['push'](_0x276003['shift']());}catch(_0x2ea5f6){_0x276003['push'](_0x276003['shift']());}}}(a327_0x128d,0x6a9fb));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';function a327_0x128d(){const _0x225299=['Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','App\x20\x22','appCode','pageSize','defaultPageSize','required','10JDNDRN','LOVRABET_APPCODE','cookie','apps','doctor','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','keys','resolveAppCode','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','resolve','Available:\x20','AppCode\x20\x22','542288HiNVow','trim','currentApp','../constant/domain.js','pretty','validation','execute','risk','meowKey','confirmHighRisk','verbose','explicitAppName','451899NjDNwT','entries','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','configMissing','rejectedFlags','includes','742550AbyqNV','authRequired','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','cancelled','name','_notice','object','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','replace','Current\x20resolved\x20appcode\x20is\x20\x22','message','apiDir','appcode','4719564VTUUQY','1197706FYDbbz','string','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','join','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','defaultVerbose','Edit\x20the\x20config\x20file\x20manually','some','find','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','selectedAppName','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','schema','rawFlags','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','isNonInteractive','map','hasFormat','788496Mvkqtk','length','update','⚠\x20\x20High-risk\x20operation:\x20','defaultApp','requiresAppCode','../constant/env.js','formatOutput','1629663OfcilU','1EbihgG','none','value','\x0a\x20\x20','hint','has','riskLevel','toUpperCase','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','service','mergedCli','format','18wJDEbo','RABETBASE_APPCODE','resolveApiDomain','catch'];a327_0x128d=function(){return _0x225299;};return a327_0x128d();}import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a327_0x5ef9d0}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x32fbce){const _0x29f3d3=a327_0x4b86;return typeof _0x32fbce===_0x29f3d3(0x1de)&&_0x32fbce[_0x29f3d3(0x21e)]()?_0x32fbce[_0x29f3d3(0x21e)]():undefined;}function resolveEnvAppCode(){const _0x17971c=a327_0x4b86,_0x4ced9c=stringFlag(process.env.RABETBASE_APPCODE);if(_0x4ced9c)return{'name':_0x17971c(0x207),'value':_0x4ced9c};const _0x5237c4=stringFlag(process.env.LOVRABET_APPCODE);if(_0x5237c4)return{'name':_0x17971c(0x212),'value':_0x5237c4};return undefined;}function hasExplicitAppCode(_0xe0e931,_0x3c786c){const _0x52e5a5=a327_0x4b86;return!!(stringFlag(_0xe0e931[_0x52e5a5(0x1db)])||stringFlag(_0x3c786c[_0x52e5a5(0x1db)]));}function assertEnvAppCodeNotIgnored(_0x246295,_0x2aea4b,_0xb26cfe){const _0x39c4e3=a327_0x4b86;if(!_0x2aea4b||_0xb26cfe||_0x246295===_0x2aea4b[_0x39c4e3(0x1fc)])return;const _0x8ca89c=_0x246295?_0x39c4e3(0x1d8)+_0x246295+'\x22.':_0x39c4e3(0x202);throw CliErrors[_0x39c4e3(0x222)](_0x2aea4b[_0x39c4e3(0x1d3)]+'='+_0x2aea4b[_0x39c4e3(0x1fc)]+_0x39c4e3(0x1d6)+_0x8ca89c+'\x20'+(_0x39c4e3(0x1ed)+_0x2aea4b[_0x39c4e3(0x1d3)]+'\x22.'));}export function createPipelineEnv(_0x2e1cc1,_0x1c41c8,_0x590879=[]){const _0x27dbc4=a327_0x4b86;return{'rawFlags':_0x1c41c8,'args':_0x590879,'resolveAppCode':()=>_0x2e1cc1[_0x27dbc4(0x20d)],'resolveCookie':()=>_0x2e1cc1[_0x27dbc4(0x213)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a327_0x5ef9d0(_0x1c41c8),'defaultFormat':_0x2e1cc1['format'],'defaultPageSize':_0x2e1cc1[_0x27dbc4(0x20e)],'defaultVerbose':_0x2e1cc1[_0x27dbc4(0x227)],'apiDir':_0x2e1cc1[_0x27dbc4(0x1da)],'riskLevel':_0x2e1cc1[_0x27dbc4(0x200)],'selectedAppName':_0x2e1cc1[_0x27dbc4(0x228)],'mergedCli':{'defaultApp':_0x2e1cc1[_0x27dbc4(0x1f5)],'currentApp':_0x2e1cc1[_0x27dbc4(0x21f)],'appCode':_0x2e1cc1['appCode'],'apps':_0x2e1cc1['apps']}};}export function createRabetbaseRunnerAdapter(_0x545d14={}){const _0x193a1e=a327_0x4b86;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x32a83d=>PIPELINE_FLAG_NAMES[_0x193a1e(0x1ff)](_0x32a83d[_0x193a1e(0x1d3)]))['map'](({name:_0x2da48e,type:_0x1bcd93,description:_0x4fea85})=>({'name':_0x2da48e,'type':_0x1bcd93,'description':_0x4fea85})),'formatOutput':_0x545d14[_0x193a1e(0x1f8)]??formatOutput,'getCommandLabel'(_0x21e22e){const _0x2a6436=_0x193a1e;return CLI_BIN_NAME+'\x20'+_0x21e22e[_0x2a6436(0x203)]+'\x20'+_0x21e22e['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x283a1f,{def:_0x3e5dab}){const _0x55bd50=_0x193a1e,_0x43f86d=_0x283a1f[_0x55bd50(0x22e)](_0x55bd50(0x1e3))?_0x55bd50(0x20b):_0x55bd50(0x1e9)+_0x3e5dab[_0x55bd50(0x224)]+_0x55bd50(0x1e8)+_0x55bd50(0x20b);return CliErrors[_0x55bd50(0x222)](_0x283a1f+_0x55bd50(0x1fd)+_0x43f86d);}},async 'prepare'(_0xecb258,_0x2e76fe,_0x264d82,_0x339a48){const _0x42858f=_0x193a1e,_0x54fc9b=_0x2e76fe['apiDir']||DEFAULT_API_DIR,_0x3a5029=hasExplicitAppCode(_0x264d82,_0x2e76fe[_0x42858f(0x1ec)]),_0x46f458=stringFlag(_0x264d82['appcode'])||stringFlag(_0x2e76fe[_0x42858f(0x1ec)]['appcode']),_0x29712d=_0x2e76fe[_0x42858f(0x204)]?.[_0x42858f(0x214)]??{},_0xd9f3a1=_0x2e76fe[_0x42858f(0x1e7)]||_0x2e76fe['mergedCli']?.[_0x42858f(0x21f)]||_0x2e76fe[_0x42858f(0x204)]?.['defaultApp'],_0x176be4=_0x46f458?Object[_0x42858f(0x22a)](_0x29712d)['filter'](([,_0x2a844f])=>_0x2a844f[_0x42858f(0x1db)]===_0x46f458)[_0x42858f(0x1ef)](([_0x2c8adb])=>_0x2c8adb):[];if(_0x176be4[_0x42858f(0x1f2)]>0x1&&!_0x2e76fe[_0x42858f(0x1e7)])throw CliErrors[_0x42858f(0x222)](_0x42858f(0x21c)+_0x46f458+'\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20'+_0x176be4[_0x42858f(0x1e0)](',\x20')+'.',_0x42858f(0x219));resolveAliasToCode(_0xecb258,_0x264d82,_0x54fc9b,_0x339a48,_0x2e76fe[_0x42858f(0x218)](),_0xd9f3a1);const _0x35bd2a=resolveCommandAuthMode(_0xecb258);let _0x3fedc6='';if(_0x35bd2a!==_0x42858f(0x1fb)){_0x3fedc6=_0x2e76fe['resolveCookie']()||'';if(!_0x3fedc6){if(_0x35bd2a===_0x42858f(0x210))throw CliErrors[_0x42858f(0x1d0)]();}else{const {setActiveCookie:_0x48c434}=await import('../core/api-client.js');_0x48c434(_0x3fedc6);}}const _0x551667=_0x2e76fe[_0x42858f(0x218)]()??'';if(_0xecb258[_0x42858f(0x1f6)]!==![]){if(!_0x3a5029&&_0xd9f3a1&&!_0x29712d[_0xd9f3a1]){const _0x1fa0a2=Object[_0x42858f(0x217)](_0x29712d);throw CliErrors[_0x42858f(0x222)](_0x42858f(0x20c)+_0xd9f3a1+_0x42858f(0x1ea),_0x1fa0a2['length']>0x0?_0x42858f(0x21b)+_0x1fa0a2[_0x42858f(0x1e0)](',\x20')+_0x42858f(0x1df)+CLI_BIN_NAME+'\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.':_0x42858f(0x20a)+CLI_BIN_NAME+_0x42858f(0x1e1));}assertEnvAppCodeNotIgnored(_0x551667,resolveEnvAppCode(),_0x3a5029);if(!_0x551667){const _0x1e6dc1=Object[_0x42858f(0x217)](_0x29712d);if(!_0xd9f3a1&&_0x1e6dc1[_0x42858f(0x1f2)]>0x1)throw CliErrors[_0x42858f(0x22c)](_0x42858f(0x1d1)+CLI_BIN_NAME+_0x42858f(0x22b)+_0x1e6dc1[_0x42858f(0x1e0)](',\x20')+'.');throw CliErrors[_0x42858f(0x22c)]('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+_0x42858f(0x216));}}return{'defaults':{'booleans':{'verbose':_0x2e76fe[_0x42858f(0x1e2)]},'numbers':{'pagesize':_0x2e76fe[_0x42858f(0x20f)]}},'extras':{'appCode':_0x551667,'cookie':_0x3fedc6,'apiDomain':_0x2e76fe[_0x42858f(0x208)](),'apiDir':_0x54fc9b,'selectedAppName':_0x2e76fe['selectedAppName'],'mergedCli':_0x2e76fe[_0x42858f(0x204)]}};},'confirmHighRisk':_0x545d14[_0x193a1e(0x226)]??(async({env:_0x281cb5,commandLabel:_0x5657e7})=>{const _0xb7621a=_0x193a1e;if(_0x281cb5[_0xb7621a(0x1ee)])throw CliErrors['validation']('High-risk\x20operation\x20`'+_0x5657e7+_0xb7621a(0x1e6));await requireConfirmationPrompt({'lines':[_0xb7621a(0x1f4)+_0x5657e7,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x4ca238=>CliErrors[_0xb7621a(0x1d2)](_0x4ca238)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const {clearActiveCookie:_0x3901f9}=await import('../core/api-client.js');_0x3901f9();}export async function finalizeRabetbaseRuntimeState(){const _0x4adecb=a327_0x4b86;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x497a2f},{initEnv:_0x3cdd49}]=await Promise['all']([import(_0x4adecb(0x220)),import(_0x4adecb(0x1f7))]);_0x497a2f(),_0x3cdd49('production');}}export async function runCommand(_0xf89af6,_0x581887,_0x3e4e89=terminalRunnerAdapter){const _0x2bf777=a327_0x4b86;assertRejectedFlags(_0xf89af6,_0x581887[_0x2bf777(0x1ec)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0xf89af6)?withUpdateNotice(_0xf89af6):_0xf89af6,_0x581887,_0x3e4e89);}function assertRejectedFlags(_0x5f50d5,_0x10dbc0){const _0x156901=a327_0x4b86;for(const _0x422aa4 of _0x5f50d5[_0x156901(0x22d)]??[]){const _0x4d4a4f=GLOBAL_FLAGS[_0x156901(0x1e5)](_0x5b561f=>_0x5b561f[_0x156901(0x1d3)]===_0x422aa4[_0x156901(0x1d3)]),_0x524836=new Set([_0x422aa4[_0x156901(0x1d3)],toCamelCase(_0x422aa4[_0x156901(0x1d3)]),_0x4d4a4f?.[_0x156901(0x225)]]),_0x28564c=[..._0x524836][_0x156901(0x1e4)](_0x27eee4=>{if(!_0x27eee4)return![];const _0x2a1cf7=_0x10dbc0[_0x27eee4];return _0x2a1cf7!==undefined&&_0x2a1cf7!==null&&_0x2a1cf7!==![];});if(_0x28564c)throw CliErrors[_0x156901(0x222)](_0x422aa4[_0x156901(0x1d9)],_0x422aa4[_0x156901(0x1fe)]);}}function a327_0x4b86(_0x1a43b2,_0x5e499e){_0x1a43b2=_0x1a43b2-0x1cf;const _0x128dbd=a327_0x128d();let _0x4b8640=_0x128dbd[_0x1a43b2];return _0x4b8640;}function toCamelCase(_0x43ca7d){const _0x3e4569=a327_0x4b86;return _0x43ca7d[_0x3e4569(0x1d7)](/-([a-z])/g,(_0x17967c,_0x57cc10)=>_0x57cc10[_0x3e4569(0x201)]());}function shouldAttachUpdateNotice(_0x396d0f){const _0x300d4c=a327_0x4b86;if(_0x396d0f[_0x300d4c(0x1f0)]===![])return![];return![_0x300d4c(0x1f3),_0x300d4c(0x1eb),_0x300d4c(0x215)][_0x300d4c(0x22e)](_0x396d0f[_0x300d4c(0x203)]);}function withUpdateNotice(_0x11a98e){return{..._0x11a98e,async 'execute'(_0x50a683){const _0x1e3252=a327_0x4b86,_0x4a82f8=shouldResolveUpdateNotice(_0x50a683)?resolveLatestUpdateNotice()[_0x1e3252(0x209)](()=>null):Promise[_0x1e3252(0x21a)](null),_0x52d447=await _0x11a98e[_0x1e3252(0x223)](_0x50a683);return attachUpdateNotice(_0x52d447,await _0x4a82f8);}};}function shouldResolveUpdateNotice(_0x4a7c97){const _0x4ae25e=a327_0x4b86;return _0x4a7c97[_0x4ae25e(0x205)]===_0x4ae25e(0x221)&&!_0x4a7c97['nonInteractive'];}function attachUpdateNotice(_0x14b8bb,_0x2b33f6){const _0x3baa66=a327_0x4b86;if(!_0x2b33f6||!_0x14b8bb||typeof _0x14b8bb!==_0x3baa66(0x1d5))return _0x14b8bb;const _0x602bae=_0x14b8bb,_0x5abd7e=typeof _0x602bae[_0x3baa66(0x1d4)]===_0x3baa66(0x1d5)&&_0x602bae[_0x3baa66(0x1d4)]!==null?_0x602bae[_0x3baa66(0x1d4)]:{};return{..._0x602bae,'_notice':{..._0x5abd7e,'update':_0x2b33f6}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5213d9,_0x4b5417){const _0x4af6cb=a328_0x4bc3,_0x5c1795=_0x5213d9();while(!![]){try{const _0x2012c5=-parseInt(_0x4af6cb(0x1a0))/0x1*(parseInt(_0x4af6cb(0x1a2))/0x2)+-parseInt(_0x4af6cb(0x19a))/0x3*(parseInt(_0x4af6cb(0x1a4))/0x4)+-parseInt(_0x4af6cb(0x19f))/0x5+parseInt(_0x4af6cb(0x19e))/0x6+parseInt(_0x4af6cb(0x19b))/0x7+parseInt(_0x4af6cb(0x1a3))/0x8*(parseInt(_0x4af6cb(0x19c))/0x9)+parseInt(_0x4af6cb(0x19d))/0xa*(-parseInt(_0x4af6cb(0x1a1))/0xb);if(_0x2012c5===_0x4b5417)break;else _0x5c1795['push'](_0x5c1795['shift']());}catch(_0x5765a8){_0x5c1795['push'](_0x5c1795['shift']());}}}(a328_0x408e,0x7f0bf));import{buildSchemaPayload as a328_0x11219d}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a328_0x4bc3(_0x6e727c,_0x55e81d){_0x6e727c=_0x6e727c-0x199;const _0x408ee4=a328_0x408e();let _0x4bc31e=_0x408ee4[_0x6e727c];return _0x4bc31e;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x9e5e89=a328_0x4bc3,{serviceRegistry:_0x18bf2c,findDefinition:_0x3b2779}=await import(_0x9e5e89(0x199));return a328_0x11219d({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x18bf2c,'buildAllFlags':buildAllFlags,'findDefinition':_0x3b2779});}function a328_0x408e(){const _0x335836=['61ubkTnz','1157453pwPqMh','11554zYloUp','184sbhTWu','36RkKtIG','../commands/registry.js','64788QuqrXQ','3886204RNrjtQ','337689xjNmnE','30BqnwVa','3278034ksvjfT','2908405bQimJI'];a328_0x408e=function(){return _0x335836;};return a328_0x408e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x22e820,_0x1ecb16){const _0x4a4ca4=a329_0x3666,_0x550697=_0x22e820();while(!![]){try{const _0x1db15a=-parseInt(_0x4a4ca4(0x117))/0x1+-parseInt(_0x4a4ca4(0x11b))/0x2+parseInt(_0x4a4ca4(0x12a))/0x3*(-parseInt(_0x4a4ca4(0x125))/0x4)+-parseInt(_0x4a4ca4(0x122))/0x5+parseInt(_0x4a4ca4(0x120))/0x6+-parseInt(_0x4a4ca4(0x12b))/0x7+parseInt(_0x4a4ca4(0x128))/0x8*(parseInt(_0x4a4ca4(0x126))/0x9);if(_0x1db15a===_0x1ecb16)break;else _0x550697['push'](_0x550697['shift']());}catch(_0x2e906b){_0x550697['push'](_0x550697['shift']());}}}(a329_0x33f9,0x48c95));import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function assertSupportedCommandFlags(_0x43f131,_0x117606){const _0x4d7fd1=a329_0x3666;if(!_0x43f131[_0x4d7fd1(0x116)])return;const _0x14d447=new Set(['help',_0x4d7fd1(0x12f)]),_0x8c1cbe=GLOBAL_FLAGS['filter'](_0x273c76=>PIPELINE_FLAG_NAMES['has'](_0x273c76['name']));for(const _0x270695 of[..._0x43f131[_0x4d7fd1(0x12d)],..._0x8c1cbe]){addFlagCandidates(_0x14d447,_0x270695);}for(const [_0x3e27a2,_0x5402cf]of Object['entries'](_0x117606)){if(!isExplicitValue(_0x5402cf)||_0x14d447['has'](_0x3e27a2))continue;const _0x433e46=GLOBAL_FLAGS[_0x4d7fd1(0x119)](_0x5c85a8=>_0x5c85a8[_0x4d7fd1(0x124)]===_0x3e27a2)?.['name']??toKebabCase(_0x3e27a2);throw CliErrors[_0x4d7fd1(0x11f)](_0x4d7fd1(0x121)+_0x433e46+'\x20for\x20`'+CLI_BIN_NAME+'\x20'+_0x43f131['service']+'\x20'+_0x43f131[_0x4d7fd1(0x12e)]+'`.',_0x4d7fd1(0x11e)+CLI_BIN_NAME+'\x20'+_0x43f131[_0x4d7fd1(0x11c)]+'\x20'+_0x43f131[_0x4d7fd1(0x12e)]+_0x4d7fd1(0x118));}}function a329_0x3666(_0x50e64d,_0x45fb49){_0x50e64d=_0x50e64d-0x116;const _0x33f9b4=a329_0x33f9();let _0x3666c3=_0x33f9b4[_0x50e64d];return _0x3666c3;}function addFlagCandidates(_0x4b9359,_0x31ac6a){const _0x26f642=a329_0x3666,_0x444f7a=_0x26f642(0x124)in _0x31ac6a?[_0x31ac6a[_0x26f642(0x127)],_0x31ac6a[_0x26f642(0x124)]]:[_0x31ac6a[_0x26f642(0x127)],_0x31ac6a['alias']];for(const _0x1433f0 of _0x444f7a){if(!_0x1433f0)continue;_0x4b9359[_0x26f642(0x11a)](_0x1433f0),_0x4b9359[_0x26f642(0x11a)](toCamelCase(_0x1433f0));}}function isExplicitValue(_0x1f223c){const _0x57f2d9=a329_0x3666;return _0x1f223c!==undefined&&_0x1f223c!==null&&_0x1f223c!==![]&&(!Array[_0x57f2d9(0x123)](_0x1f223c)||_0x1f223c['length']>0x0);}function toCamelCase(_0x2e2d8f){const _0x45090b=a329_0x3666;return _0x2e2d8f['replace'](/-([a-z])/g,(_0x6f30d8,_0x23fda1)=>_0x23fda1[_0x45090b(0x11d)]());}function toKebabCase(_0x49e0fa){const _0x453e0a=a329_0x3666;return _0x49e0fa[_0x453e0a(0x129)](/([a-z0-9])([A-Z])/g,_0x453e0a(0x12c))['toLowerCase']();}function a329_0x33f9(){const _0x2160f8=['validation','1088520hyURzE','Unsupported\x20flag\x20--','2425535zXAxCS','isArray','meowKey','1004CmnAQm','8705943AKyvfR','name','16CLvmpm','replace','1395GxjxOl','3927917YMUTrs','$1-$2','flags','command','version','strictFlags','201358QxGqom','\x20--help`\x20to\x20view\x20the\x20current\x20command\x20contract.','find','add','907260wblyPX','service','toUpperCase','Run\x20`'];a329_0x33f9=function(){return _0x2160f8;};return a329_0x33f9();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a330_0xc6b4(){var _0x979c12=['14bRJAuJ','220674rkTsEm','1317532TDlDfz','58472DXuvYm','274050jtklqx','63bjuVZK','2JOrvQQ','210ehiGwp','463859qrTdMq','175609gYcqwj','1779230BlwwyO'];a330_0xc6b4=function(){return _0x979c12;};return a330_0xc6b4();}(function(_0x4265bd,_0x4bf7b1){var _0x4edac0=a330_0x304e,_0x34bc90=_0x4265bd();while(!![]){try{var _0x404966=parseInt(_0x4edac0(0x175))/0x1*(parseInt(_0x4edac0(0x17d))/0x2)+-parseInt(_0x4edac0(0x17b))/0x3+-parseInt(_0x4edac0(0x179))/0x4+-parseInt(_0x4edac0(0x176))/0x5+-parseInt(_0x4edac0(0x178))/0x6*(parseInt(_0x4edac0(0x177))/0x7)+-parseInt(_0x4edac0(0x17a))/0x8*(-parseInt(_0x4edac0(0x17c))/0x9)+-parseInt(_0x4edac0(0x17e))/0xa*(-parseInt(_0x4edac0(0x174))/0xb);if(_0x404966===_0x4bf7b1)break;else _0x34bc90['push'](_0x34bc90['shift']());}catch(_0x5c8aae){_0x34bc90['push'](_0x34bc90['shift']());}}}(a330_0xc6b4,0x40028));function a330_0x304e(_0x2a2a1a,_0x552869){_0x2a2a1a=_0x2a2a1a-0x174;var _0xc6b46=a330_0xc6b4();var _0x304e87=_0xc6b46[_0x2a2a1a];return _0x304e87;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.5.10-beta.
|
|
2
|
-
export declare const GIT_TAG = "v2.5.10-beta.
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-11-
|
|
1
|
+
export declare const VERSION = "2.5.10-beta.4";
|
|
2
|
+
export declare const GIT_TAG = "v2.5.10-beta.4";
|
|
3
|
+
export declare const GIT_COMMIT = "5601120b";
|
|
4
|
+
export declare const BUILD_TIME = "2026-11-02T11:13:31.055Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a331_0x3439(_0x2e72be,_0x25fd06){_0x2e72be=_0x2e72be-0x93;const _0x14d366=a331_0x14d3();let _0x3439cb=_0x14d366[_0x2e72be];return _0x3439cb;}const a331_0x9593ac=a331_0x3439;(function(_0x3ecf3d,_0x30c107){const _0x29d68d=a331_0x3439,_0x14f52a=_0x3ecf3d();while(!![]){try{const _0x57c9e4=parseInt(_0x29d68d(0x9a))/0x1*(parseInt(_0x29d68d(0x9f))/0x2)+parseInt(_0x29d68d(0x9d))/0x3*(parseInt(_0x29d68d(0x9b))/0x4)+parseInt(_0x29d68d(0x97))/0x5+-parseInt(_0x29d68d(0x96))/0x6*(parseInt(_0x29d68d(0x94))/0x7)+-parseInt(_0x29d68d(0x9e))/0x8*(-parseInt(_0x29d68d(0x93))/0x9)+-parseInt(_0x29d68d(0x95))/0xa+parseInt(_0x29d68d(0x9c))/0xb;if(_0x57c9e4===_0x30c107)break;else _0x14f52a['push'](_0x14f52a['shift']());}catch(_0x3ff33c){_0x14f52a['push'](_0x14f52a['shift']());}}}(a331_0x14d3,0x49599));export const VERSION=a331_0x9593ac(0x98);export const GIT_TAG=a331_0x9593ac(0xa0);export const GIT_COMMIT=a331_0x9593ac(0x99);export const BUILD_TIME='2026-11-02T11:13:31.055Z';function a331_0x14d3(){const _0x4514e9=['211DCScTd','4cIJozf','10604dYzfeX','895047UnhXKI','30568KDFSvu','114PEEsZz','v2.5.10-beta.4','1044ZIvyMH','868GCZgRD','3606540gNTgbD','17772AmlLnk','1369035qHXtFi','2.5.10-beta.4','5601120b'];a331_0x14d3=function(){return _0x4514e9;};return a331_0x14d3();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a332_0x2d4d4e=a332_0x42df;(function(_0x198430,_0x3dfd42){const _0x3c7175=a332_0x42df,_0x330c2e=_0x198430();while(!![]){try{const _0x26b858=parseInt(_0x3c7175(0xa5))/0x1*(-parseInt(_0x3c7175(0x99))/0x2)+-parseInt(_0x3c7175(0xaa))/0x3*(-parseInt(_0x3c7175(0xa4))/0x4)+parseInt(_0x3c7175(0xa9))/0x5+parseInt(_0x3c7175(0x8c))/0x6+-parseInt(_0x3c7175(0x85))/0x7*(-parseInt(_0x3c7175(0x95))/0x8)+-parseInt(_0x3c7175(0xa7))/0x9+-parseInt(_0x3c7175(0x88))/0xa*(parseInt(_0x3c7175(0xab))/0xb);if(_0x26b858===_0x3dfd42)break;else _0x330c2e['push'](_0x330c2e['shift']());}catch(_0x435235){_0x330c2e['push'](_0x330c2e['shift']());}}}(a332_0x18e0,0xb93a9));export const ROUTING_CATALOG_DIGEST=a332_0x2d4d4e(0x9f);export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id','global'];export const ENABLED_REGION_VALUES=['cn','id',a332_0x2d4d4e(0x92)];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a332_0x2d4d4e(0x87),'aliases':[a332_0x2d4d4e(0x91)],'serviceDomains':{'production':{'user':'https://user.lovrabet.com','api':'https://api.lovrabet.com','runtime':a332_0x2d4d4e(0x8a),'skill':a332_0x2d4d4e(0x98),'kb':'https://api.lovrabet.com','kbService':a332_0x2d4d4e(0x8b),'app':a332_0x2d4d4e(0xa1)},'daily':{'user':a332_0x2d4d4e(0x9b),'api':a332_0x2d4d4e(0x93),'runtime':a332_0x2d4d4e(0xa2),'skill':a332_0x2d4d4e(0xa8),'kb':a332_0x2d4d4e(0x93),'kbService':a332_0x2d4d4e(0x90),'app':a332_0x2d4d4e(0xae)}},'cdn':{'libraries':'https://g.alicdn.com/code/lib','lovrabet':'https://g.lovrabet.com'},'local':{'origin':'https://dev.lovrabet.com'}},'id':{'enabled':!![],'label':'Indonesia','aliases':[a332_0x2d4d4e(0x9a)],'serviceDomains':{'production':{'user':a332_0x2d4d4e(0xa0),'api':a332_0x2d4d4e(0x86),'runtime':a332_0x2d4d4e(0xac),'skill':a332_0x2d4d4e(0x89),'kb':'https://api.lovrabet.id','kbService':'https://kb-service.lovrabet.id','app':a332_0x2d4d4e(0x9e)}},'cdn':{'libraries':a332_0x2d4d4e(0xa6),'lovrabet':'https://g.lovrabet.id'},'local':{'origin':a332_0x2d4d4e(0x94)}},'global':{'enabled':!![],'label':'Global','aliases':[],'serviceDomains':{'production':{'user':a332_0x2d4d4e(0x96),'api':a332_0x2d4d4e(0xa3),'runtime':a332_0x2d4d4e(0x8f),'skill':'https://skills.lovrabet.ai','kb':a332_0x2d4d4e(0xa3),'app':'https://app.lovrabet.ai'},'daily':{'user':a332_0x2d4d4e(0x8e),'api':a332_0x2d4d4e(0x8d),'runtime':'https://daily-runtime.lovrabet.ai','skill':a332_0x2d4d4e(0x9d),'kb':a332_0x2d4d4e(0x8d),'app':a332_0x2d4d4e(0xad)}},'cdn':{'libraries':a332_0x2d4d4e(0xa6),'lovrabet':a332_0x2d4d4e(0x9c)},'local':{'origin':a332_0x2d4d4e(0x97)}}};function a332_0x42df(_0xb9da26,_0x53101c){_0xb9da26=_0xb9da26-0x85;const _0x18e02b=a332_0x18e0();let _0x42dfc3=_0x18e02b[_0xb9da26];return _0x42dfc3;}function a332_0x18e0(){const _0x3687c3=['https://runtime.lovrabet.ai','https://kb-service-daily.lovrabet.com','china','global','https://daily-api.lovrabet.com','https://dev.lovrabet.id','7732456iAuQwO','https://user.lovrabet.ai','https://dev.lovrabet.ai','https://skills.lovrabet.com','2284138nSqCUB','indonesia','https://user-daily.lovrabet.com','https://g.lovrabet.ai','https://skills-daily.lovrabet.ai','https://app.lovrabet.id','57d346b80b12ca567af9d86dd7f8c02a0c27fe15d4944c8345add2cc6134c587','https://user.lovrabet.id','https://app.lovrabet.com','https://daily-runtime.lovrabet.com','https://api.lovrabet.ai','36fUXxQd','1TwgrjS','https://cdnjs.cloudflare.com/ajax/libs','1306773iIPcez','https://skills-daily.lovrabet.com','4544915qpxgMp','6306kXKGYi','330kJvSio','https://runtime.lovrabet.id','https://daily.lovrabet.ai','https://daily.lovrabet.com','7nfkfRn','https://api.lovrabet.id','Mainland\x20China','292870heDpzF','https://skills.lovrabet.id','https://runtime.lovrabet.com','https://kb-service.lovrabet.com','6180690BiCXLI','https://daily-api.lovrabet.ai','https://user-daily.lovrabet.ai'];a332_0x18e0=function(){return _0x3687c3;};return a332_0x18e0();}export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a333_0x34a2f7=a333_0x4804;(function(_0xa87262,_0x39e475){const _0xb69a92=a333_0x4804,_0x49b87d=_0xa87262();while(!![]){try{const _0x3c8c8f=parseInt(_0xb69a92(0x154))/0x1+parseInt(_0xb69a92(0x15f))/0x2+-parseInt(_0xb69a92(0x159))/0x3+-parseInt(_0xb69a92(0x15d))/0x4*(-parseInt(_0xb69a92(0x156))/0x5)+-parseInt(_0xb69a92(0x160))/0x6*(parseInt(_0xb69a92(0x165))/0x7)+parseInt(_0xb69a92(0x153))/0x8*(parseInt(_0xb69a92(0x15e))/0x9)+parseInt(_0xb69a92(0x155))/0xa;if(_0x3c8c8f===_0x39e475)break;else _0x49b87d['push'](_0x49b87d['shift']());}catch(_0xdba29f){_0x49b87d['push'](_0x49b87d['shift']());}}}(a333_0x2382,0x73f95));function a333_0x4804(_0x5e8627,_0x4b405f){_0x5e8627=_0x5e8627-0x153;const _0x23825a=a333_0x2382();let _0x480412=_0x23825a[_0x5e8627];return _0x480412;}export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a333_0x34a2f7(0x158);export const ENTERPRISE_ROUTING_PROTOCOL=a333_0x34a2f7(0x161);export const ENTERPRISE_ROUTING_KIND=a333_0x34a2f7(0x15a);function a333_0x2382(){const _0xcf33d8=['6adKrvA','lovrabet-routing/v1','lovrabet','certificateDomain','libraries','1529570GrTqAa','skillDomain','userDomain','appDomain','kbServiceDomain','2192lVsSCb','670448vvqadk','2118900ORiyEx','10DETKUg','runtimeDomain','a03fe188b2b34518efc5668666c0001d20354882cd7dd70afec902dffe1329c3','2390253SftmbP','enterprise','kbDomain','apiDomain','999300GIRGQT','981LGKZVZ','156872ZPuqLj'];a333_0x2382=function(){return _0xcf33d8;};return a333_0x2382();}export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a333_0x34a2f7(0x167),a333_0x34a2f7(0x15c),a333_0x34a2f7(0x157),a333_0x34a2f7(0x166),'kbDomain',a333_0x34a2f7(0x169),a333_0x34a2f7(0x168),'localDomain',a333_0x34a2f7(0x163)];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=['userDomain','apiDomain',a333_0x34a2f7(0x157),a333_0x34a2f7(0x166),a333_0x34a2f7(0x15b),a333_0x34a2f7(0x168)];export const ENTERPRISE_ROUTING_CDN_FIELDS=[a333_0x34a2f7(0x164),'lovrabet'];export const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS=[a333_0x34a2f7(0x164),a333_0x34a2f7(0x162)];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xdfeafa,_0x48f319){var _0xf69016=a334_0x25b8,_0x3683ed=_0xdfeafa();while(!![]){try{var _0x25f279=parseInt(_0xf69016(0xdd))/0x1*(parseInt(_0xf69016(0xd9))/0x2)+-parseInt(_0xf69016(0xe2))/0x3+-parseInt(_0xf69016(0xd7))/0x4+-parseInt(_0xf69016(0xe6))/0x5*(-parseInt(_0xf69016(0xe5))/0x6)+-parseInt(_0xf69016(0xe3))/0x7*(parseInt(_0xf69016(0xd8))/0x8)+-parseInt(_0xf69016(0xdb))/0x9*(parseInt(_0xf69016(0xd6))/0xa)+parseInt(_0xf69016(0xe4))/0xb*(parseInt(_0xf69016(0xde))/0xc);if(_0x25f279===_0x48f319)break;else _0x3683ed['push'](_0x3683ed['shift']());}catch(_0x226ada){_0x3683ed['push'](_0x3683ed['shift']());}}}(a334_0x8c85,0x676ee));function a334_0x25b8(_0x24d54a,_0x3e8d7a){_0x24d54a=_0x24d54a-0xd5;var _0x8c8544=a334_0x8c85();var _0x25b800=_0x8c8544[_0x24d54a];return _0x25b800;}import a334_0x5e55b5 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x35dab4=a334_0x25b8;console['log'](),console[_0x35dab4(0xe1)](a334_0x5e55b5[_0x35dab4(0xd5)][_0x35dab4(0xda)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x35dab4(0xe1)](),console['log'](_0x35dab4(0xdf)+a334_0x5e55b5['green']['bold'](CLI_BIN_NAME+_0x35dab4(0xe0))+_0x35dab4(0xdc)),console['log']();}function a334_0x8c85(){var _0x2bc047=['78oPNcWj','22865xtVFVf','green','1827580zpsXgp','1874524UmBxCt','188936NZwxZw','2TjEwRh','bold','18jZsmbu','\x20to\x20view\x20available\x20commands.','755363ZDovWI','12DEQUXQ','\x20\x20Use\x20','\x20--help','log','972216tMRUWo','49EHplki','10256268cpQaos'];a334_0x8c85=function(){return _0x2bc047;};return a334_0x8c85();}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x53e9c7,_0x1c415a){const _0x59a5f6=a335_0x36ef,_0x2872d4=_0x53e9c7();while(!![]){try{const _0x39fec9=-parseInt(_0x59a5f6(0x174))/0x1*(parseInt(_0x59a5f6(0x160))/0x2)+-parseInt(_0x59a5f6(0x15e))/0x3*(-parseInt(_0x59a5f6(0x16c))/0x4)+-parseInt(_0x59a5f6(0x168))/0x5+parseInt(_0x59a5f6(0x16b))/0x6*(-parseInt(_0x59a5f6(0x172))/0x7)+parseInt(_0x59a5f6(0x161))/0x8+-parseInt(_0x59a5f6(0x15d))/0x9*(parseInt(_0x59a5f6(0x166))/0xa)+parseInt(_0x59a5f6(0x16d))/0xb;if(_0x39fec9===_0x1c415a)break;else _0x2872d4['push'](_0x2872d4['shift']());}catch(_0x1e91b5){_0x2872d4['push'](_0x2872d4['shift']());}}}(a335_0x3f34,0x23e80));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a335_0x3f34(){const _0x5f2cc2=['81FwceWy','3WdKwMl','changed','68130fRQNEX','898432XIBkfg','repairCommand','already\x20current','Repair\x20with:\x20','[BUILTIN_SKILL_INSTALL_','305290bRLLtG','installedPath','460520hSaRkJ','\x20via\x20skills@latest','Installation\x20failed','6eZcdVW','29636BeXcAr','7602452bVSSBH','log','Rabetbase\x20Built-in\x20Skill\x20','FAILED','\x20at\x20','1362991gQPRZL','code','3yvUlFe','installed','error'];a335_0x3f34=function(){return _0x5f2cc2;};return a335_0x3f34();}function a335_0x36ef(_0x5d78bc,_0x4665f0){_0x5d78bc=_0x5d78bc-0x15c;const _0x3f34e2=a335_0x3f34();let _0x36efc1=_0x3f34e2[_0x5d78bc];return _0x36efc1;}export async function runPostinstall(_0x47f1ff={}){const _0x21f2a3=a335_0x36ef,_0xe732dd=installBuiltinSkill(_0x47f1ff);if(_0xe732dd['ok']){const _0x41a0dc=_0xe732dd[_0x21f2a3(0x15f)]?_0x21f2a3(0x175):_0x21f2a3(0x163),_0x179af4=_0xe732dd[_0x21f2a3(0x167)]?_0x21f2a3(0x171)+_0xe732dd[_0x21f2a3(0x167)]:_0x21f2a3(0x169);return console[_0x21f2a3(0x16e)](_0x21f2a3(0x16f)+_0xe732dd['skillVersion']+'\x20'+_0x41a0dc+_0x179af4),_0xe732dd;}const _0x17819f=_0x21f2a3(0x165)+(_0xe732dd[_0x21f2a3(0x173)]??_0x21f2a3(0x170))+']\x20'+(_0xe732dd[_0x21f2a3(0x15c)]??_0x21f2a3(0x16a))+'.\x20'+(_0x21f2a3(0x164)+_0xe732dd[_0x21f2a3(0x162)]);if(_0xe732dd[_0x21f2a3(0x173)]==='SOURCE_INVALID')throw new Error(_0x17819f);return console['warn'](_0x17819f),_0xe732dd;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a336_0x5938(){const _0x3026c2=['1414091ZaGExL','replace','confirmationDescription','2824eALnmN','high-risk-write','1006280IZEubC','37836hdAjjp','20934uAtQot','This\x20will\x20run\x20the\x20high-risk\x20write\x20','trim','4383136wXnkTx','.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.','7174566jXmMbr','309927gkkMgl','risk','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','1510MDhiwf'];a336_0x5938=function(){return _0x3026c2;};return a336_0x5938();}function a336_0x10dd(_0x570ed4,_0x3a486c){_0x570ed4=_0x570ed4-0xdc;const _0x5938c0=a336_0x5938();let _0x10ddf4=_0x5938c0[_0x570ed4];return _0x10ddf4;}(function(_0x4f27ae,_0x6f7403){const _0x9ebdae=a336_0x10dd,_0x3be36d=_0x4f27ae();while(!![]){try{const _0x294059=-parseInt(_0x9ebdae(0xea))/0x1+parseInt(_0x9ebdae(0xde))/0x2+parseInt(_0x9ebdae(0xe6))/0x3+parseInt(_0x9ebdae(0xe3))/0x4+-parseInt(_0x9ebdae(0xe9))/0x5*(-parseInt(_0x9ebdae(0xe0))/0x6)+parseInt(_0x9ebdae(0xe5))/0x7+-parseInt(_0x9ebdae(0xdc))/0x8*(parseInt(_0x9ebdae(0xdf))/0x9);if(_0x294059===_0x6f7403)break;else _0x3be36d['push'](_0x3be36d['shift']());}catch(_0x455a3e){_0x3be36d['push'](_0x3be36d['shift']());}}}(a336_0x5938,0xd783a));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x520d17,_0x180240,_0x1d96cb){const _0x42f20b=a336_0x10dd,_0xb538db=normalizeText(_0x520d17[_0x42f20b(0xec)],DESCRIPTION_MAX_LENGTH),_0x554fab=_0xb538db||normalizeText(defaultDescription(requireWriteRisk(_0x520d17),_0x180240),DESCRIPTION_MAX_LENGTH);return{'operation':_0x180240,'risk':requireWriteRisk(_0x520d17),'description':_0x554fab,..._0x1d96cb?{'signal':_0x1d96cb}:{}};}function requireWriteRisk(_0x367cad){const _0x52154a=a336_0x10dd;if(_0x367cad[_0x52154a(0xe7)]==='write'||_0x367cad[_0x52154a(0xe7)]===_0x52154a(0xdd))return _0x367cad[_0x52154a(0xe7)];throw new Error(_0x52154a(0xe8));}function defaultDescription(_0x2e1a43,_0x4af3f4){const _0x2eb688=a336_0x10dd;if(_0x2e1a43===_0x2eb688(0xdd))return _0x2eb688(0xe1)+_0x4af3f4+'.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.';return'This\x20will\x20run\x20the\x20write\x20'+_0x4af3f4+_0x2eb688(0xe4);}function normalizeText(_0x5b5cb5,_0x35ef84){const _0xc0ccf4=a336_0x10dd;if(typeof _0x5b5cb5!=='string')return'';return _0x5b5cb5['replace'](/[\u0000-\u001f\u007f]+/g,'\x20')[_0xc0ccf4(0xeb)](/\s+/g,'\x20')[_0xc0ccf4(0xe2)]()['slice'](0x0,_0x35ef84);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a337_0x4d1a(_0x4300ab,_0x1a50b1){_0x4300ab=_0x4300ab-0x113;const _0x13eba6=a337_0x13eb();let _0x4d1a8e=_0x13eba6[_0x4300ab];return _0x4d1a8e;}function a337_0x13eb(){const _0x394155=['2LNgHOz','length','trim','rabetbase.write.completed','command','4sdDxKt','join','data','423704BEfvJL','conflicts','risk','1499393oXgtkZ','633015NPgZMh','10jjgaWD','write','630831zLErnH','8845562QioEHq','1704265LbErsT','3351054EUQxey','9TnGtqK','split','isArray','object'];a337_0x13eb=function(){return _0x394155;};return a337_0x13eb();}(function(_0xe8d297,_0x62a1f4){const _0x3466ab=a337_0x4d1a,_0x5c09d8=_0xe8d297();while(!![]){try{const _0x4f841c=parseInt(_0x3466ab(0x128))/0x1*(-parseInt(_0x3466ab(0x119))/0x2)+parseInt(_0x3466ab(0x125))/0x3*(-parseInt(_0x3466ab(0x11e))/0x4)+-parseInt(_0x3466ab(0x113))/0x5+parseInt(_0x3466ab(0x114))/0x6+parseInt(_0x3466ab(0x124))/0x7+-parseInt(_0x3466ab(0x121))/0x8*(parseInt(_0x3466ab(0x115))/0x9)+-parseInt(_0x3466ab(0x126))/0xa*(-parseInt(_0x3466ab(0x129))/0xb);if(_0x4f841c===_0x62a1f4)break;else _0x5c09d8['push'](_0x5c09d8['shift']());}catch(_0x1645b5){_0x5c09d8['push'](_0x5c09d8['shift']());}}}(a337_0x13eb,0x534ce));export function canonicalRabetbaseOperation(_0x5a0a38){const _0x209877=a337_0x4d1a;return[_0x5a0a38['service'],..._0x5a0a38[_0x209877(0x11d)][_0x209877(0x11b)]()[_0x209877(0x116)](/\s+/)]['filter'](Boolean)[_0x209877(0x11f)]('.');}export function createRabetbaseWriteMetadata(_0x490fd7,_0x5969e1,_0x17d05d,_0x5c2577){const _0x259d64=a337_0x4d1a;if(_0x5c2577||_0x17d05d['ok']!==!![]||hasUnresolvedConflicts(_0x17d05d)||_0x490fd7[_0x259d64(0x123)]!==_0x259d64(0x127)&&_0x490fd7[_0x259d64(0x123)]!=='high-risk-write')return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x259d64(0x11c),'operation':_0x5969e1,'risk':_0x490fd7['risk']}}};}function hasUnresolvedConflicts(_0x1df2b9){const _0x598070=a337_0x4d1a,_0x5d7fdc=_0x1df2b9[_0x598070(0x120)];return Boolean(_0x5d7fdc&&typeof _0x5d7fdc===_0x598070(0x118)&&!Array[_0x598070(0x117)](_0x5d7fdc)&&Array[_0x598070(0x117)](_0x5d7fdc[_0x598070(0x122)])&&_0x5d7fdc[_0x598070(0x122)][_0x598070(0x11a)]>0x0);}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x278aa3,_0x24b115){const _0x15d388=a338_0x1551,_0x7a782c=_0x278aa3();while(!![]){try{const _0x17cb8a=parseInt(_0x15d388(0x15a))/0x1*(-parseInt(_0x15d388(0x14d))/0x2)+parseInt(_0x15d388(0x154))/0x3*(parseInt(_0x15d388(0x13f))/0x4)+parseInt(_0x15d388(0x14a))/0x5*(-parseInt(_0x15d388(0x152))/0x6)+-parseInt(_0x15d388(0x153))/0x7+-parseInt(_0x15d388(0x14f))/0x8+parseInt(_0x15d388(0x13c))/0x9+parseInt(_0x15d388(0x13e))/0xa;if(_0x17cb8a===_0x24b115)break;else _0x7a782c['push'](_0x7a782c['shift']());}catch(_0x1763ec){_0x7a782c['push'](_0x7a782c['shift']());}}}(a338_0x391d,0x93e9d));import{buildConfigFromFlags,initGlobalEnvironment,isRoutingRecoveryService}from'../context.js';import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';function a338_0x1551(_0x4340ab,_0x229179){_0x4340ab=_0x4340ab-0x13a;const _0x391d57=a338_0x391d();let _0x15517c=_0x391d57[_0x4340ab];return _0x15517c;}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:_0xc6828f,command:_0x34c379,risk:_0x174ce8,dryRun:_0x495167}){const _0x23ab8c=a338_0x1551;return JSON[_0x23ab8c(0x14b)]({'ok':_0xc6828f['ok'],'command':_0x34c379,'risk':_0x174ce8,..._0x495167?{'dryRun':!![]}:{},..._0xc6828f[_0x23ab8c(0x159)]!==undefined?{'data':_0xc6828f[_0x23ab8c(0x159)]}:{},..._0xc6828f[_0x23ab8c(0x143)]?{'message':_0xc6828f[_0x23ab8c(0x143)]}:{}});}};export async function invokeRabetbase(_0x53a7b8,_0x33630b){const _0x2534a4=a338_0x1551;throwIfAborted(_0x33630b['signal']);const _0x5cfb8b=await resolveRabetbaseInvocation(_0x53a7b8),_0x2e365a=canonicalRabetbaseOperation(_0x5cfb8b[_0x2534a4(0x140)]);return await confirmWriteBeforeQueue(_0x5cfb8b['definition'],_0x5cfb8b['rawFlags'],_0x2e365a,_0x33630b),runSerialized(async()=>{const _0x4e1b30=_0x2534a4,_0x1fc1c5={};try{throwIfAborted(_0x33630b[_0x4e1b30(0x156)]);const _0x57db3f=buildConfigFromFlags(_0x5cfb8b[_0x4e1b30(0x147)]);!isRoutingRecoveryService(_0x5cfb8b[_0x4e1b30(0x140)][_0x4e1b30(0x149)])&&await initGlobalEnvironment(_0x57db3f);const _0x4a85d7=createPipelineEnv(_0x57db3f,{..._0x5cfb8b[_0x4e1b30(0x147)],'yes':_0x5cfb8b[_0x4e1b30(0x140)][_0x4e1b30(0x155)]===_0x4e1b30(0x158)?!![]:_0x5cfb8b[_0x4e1b30(0x147)][_0x4e1b30(0x14c)],'nonInteractive':!![]},_0x5cfb8b[_0x4e1b30(0x146)]);_0x4a85d7[_0x4e1b30(0x145)]=!![],_0x4a85d7[_0x4e1b30(0x13a)]=_0x4e1b30(0x158);const _0x3e2176=withAbortSignal(_0x5cfb8b[_0x4e1b30(0x140)],_0x33630b[_0x4e1b30(0x156)]),_0x1183cc=createRabetbaseRunnerAdapter({'formatOutput'(_0x4fa24c,_0x156e5b){const _0x2a0ce8=_0x4e1b30;_0x1fc1c5[_0x2a0ce8(0x150)]=_0x4fa24c,_0x1fc1c5[_0x2a0ce8(0x14e)]=_0x156e5b[_0x2a0ce8(0x14e)],_0x1fc1c5[_0x2a0ce8(0x155)]=_0x156e5b[_0x2a0ce8(0x155)],_0x1fc1c5[_0x2a0ce8(0x148)]=_0x156e5b['format'],_0x1fc1c5['dryRun']=_0x156e5b[_0x2a0ce8(0x13b)]===!![];},async 'confirmHighRisk'(){const _0x23f7f4=_0x4e1b30;throw new Error(_0x23f7f4(0x157));}});await runCommand(_0x3e2176,_0x4a85d7,_0x1183cc);if(!_0x1fc1c5['result']||!_0x1fc1c5['command']||!_0x1fc1c5[_0x4e1b30(0x155)]||!_0x1fc1c5['format'])throw new Error('Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.');const _0x3cea14=_0x1fc1c5['dryRun']===!![],_0x5528fa=_0x33630b['presentation']??defaultPresentation,_0x2a3cbf={'result':_0x1fc1c5[_0x4e1b30(0x150)],'command':_0x1fc1c5[_0x4e1b30(0x14e)],'operation':_0x2e365a,'risk':_0x1fc1c5[_0x4e1b30(0x155)],'format':_0x1fc1c5[_0x4e1b30(0x148)],'dryRun':_0x3cea14},_0x4ba8fd=createRabetbaseWriteMetadata(_0x5cfb8b[_0x4e1b30(0x140)],_0x2e365a,_0x1fc1c5[_0x4e1b30(0x150)],_0x3cea14);let _0x573270;try{_0x573270=await _0x5528fa[_0x4e1b30(0x144)](_0x2a3cbf);}catch(_0xf22b8c){if(!_0x4ba8fd||_0x5528fa===defaultPresentation)throw _0xf22b8c;_0x573270=await defaultPresentation[_0x4e1b30(0x144)](_0x2a3cbf);}return{'operation':_0x2e365a,'risk':_0x1fc1c5[_0x4e1b30(0x155)],'mode':_0x3cea14?'dry-run':_0x4e1b30(0x13d),'result':_0x1fc1c5[_0x4e1b30(0x150)],'output':_0x573270,..._0x4ba8fd?{'metadata':_0x4ba8fd}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x45edf1,_0x41f952,_0x3c9fc4,_0x1bd5f0){const _0x53a0fe=a338_0x1551;if(_0x41f952[_0x53a0fe(0x13b)]===!![]||_0x45edf1[_0x53a0fe(0x155)]!==_0x53a0fe(0x151)&&_0x45edf1[_0x53a0fe(0x155)]!=='high-risk-write')return;await _0x1bd5f0['confirmation']['confirm'](buildRabetbaseConfirmationRequest(_0x45edf1,_0x3c9fc4,_0x1bd5f0[_0x53a0fe(0x156)]));}function withAbortSignal(_0x17187f,_0xa5c3fc){return{..._0x17187f,async 'execute'(_0x26b3b8){const _0x43ba68=a338_0x1551;return throwIfAborted(_0xa5c3fc),_0x17187f[_0x43ba68(0x13d)]({..._0x26b3b8,'signal':_0xa5c3fc});}};}function a338_0x391d(){const _0x3ed2c4=['9868842viPXbg','execute','15415820vnIwiE','4FOfaMQ','definition','aborted','AbortError','message','present','isNonInteractive','args','rawFlags','format','service','5QxByae','stringify','yes','2UMQQAD','command','2425936HtyoLI','result','write','3326628wFcYkI','8247323nbfUdH','2823027SYWsfl','risk','signal','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','high-risk-write','data','937407CrjCAb','riskLevel','dryRun'];a338_0x391d=function(){return _0x3ed2c4;};return a338_0x391d();}function throwIfAborted(_0x17975d){const _0x859390=a338_0x1551;if(_0x17975d?.[_0x859390(0x141)])throw _0x17975d['reason']instanceof Error?_0x17975d['reason']:new DOMException('Rabetbase\x20invocation\x20aborted.',_0x859390(0x142));}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xc352d1,_0x3038bf){const _0x450625=a339_0x2c9c,_0x360c97=_0xc352d1();while(!![]){try{const _0x20777c=-parseInt(_0x450625(0x188))/0x1+-parseInt(_0x450625(0x190))/0x2*(parseInt(_0x450625(0x192))/0x3)+-parseInt(_0x450625(0x18a))/0x4*(parseInt(_0x450625(0x191))/0x5)+parseInt(_0x450625(0x189))/0x6*(parseInt(_0x450625(0x18d))/0x7)+parseInt(_0x450625(0x18f))/0x8+parseInt(_0x450625(0x18e))/0x9*(-parseInt(_0x450625(0x18c))/0xa)+parseInt(_0x450625(0x18b))/0xb;if(_0x20777c===_0x3038bf)break;else _0x360c97['push'](_0x360c97['shift']());}catch(_0xe8ac23){_0x360c97['push'](_0x360c97['shift']());}}}(a339_0x1e24,0x51c55));function a339_0x2c9c(_0x3d9154,_0x118607){_0x3d9154=_0x3d9154-0x188;const _0x1e244f=a339_0x1e24();let _0x2c9c43=_0x1e244f[_0x3d9154];return _0x2c9c43;}let tail=Promise['resolve']();export async function runSerialized(_0x39cf24){const _0x2571e3=tail;let _0x5db654;tail=new Promise(_0x3fb3d2=>{_0x5db654=_0x3fb3d2;}),await _0x2571e3['catch'](()=>undefined);try{return await _0x39cf24();}finally{_0x5db654();}}function a339_0x1e24(){const _0x457908=['370xEiqsN','6146BOQqgK','60849ZACelo','3496408ERRImj','88440KOpaWz','2510QWeaFt','24NEtOKc','337345jqesRL','834dIsvso','5072KwjrLm','14890018sXGSNP'];a339_0x1e24=function(){return _0x457908;};return a339_0x1e24();}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3f8045,_0x19c4db){const _0x4e3b43=a340_0x3ea0,_0x57ab2e=_0x3f8045();while(!![]){try{const _0x19edce=parseInt(_0x4e3b43(0x1ab))/0x1+-parseInt(_0x4e3b43(0x19e))/0x2+-parseInt(_0x4e3b43(0x19d))/0x3+parseInt(_0x4e3b43(0x1ad))/0x4*(-parseInt(_0x4e3b43(0x1ac))/0x5)+parseInt(_0x4e3b43(0x1a8))/0x6+parseInt(_0x4e3b43(0x1a2))/0x7+-parseInt(_0x4e3b43(0x1ae))/0x8*(-parseInt(_0x4e3b43(0x1a9))/0x9);if(_0x19edce===_0x19c4db)break;else _0x57ab2e['push'](_0x57ab2e['shift']());}catch(_0x55a113){_0x57ab2e['push'](_0x57ab2e['shift']());}}}(a340_0x1e58,0x90ad0));function a340_0x3ea0(_0x1183fc,_0x2e053b){_0x1183fc=_0x1183fc-0x19c;const _0x1e5897=a340_0x1e58();let _0x3ea06c=_0x1e5897[_0x1183fc];return _0x3ea06c;}function a340_0x1e58(){const _0x1f95b4=['validation','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','108899CuFwEd','message','wildcardDef','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','run','input','3061722rpKMgf','8847QxslKE','flags','12644kwhGdS','105EtAKqh','195284AbYbod','20600gOuGWa','slice','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','join','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','1417029Vtvwic','1959074bhvIzP','unknownCommand'];a340_0x1e58=function(){return _0x1f95b4;};return a340_0x1e58();}import a340_0x4e52f9 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';import{assertSupportedCommandFlags}from'../framework/supported-flags.js';export async function resolveRabetbaseInvocation(_0x28e6cb){const _0x323f08=a340_0x3ea0,_0x51a72c=a340_0x4e52f9('',{'importMeta':import.meta,'argv':[..._0x28e6cb],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x5d8276=[..._0x51a72c[_0x323f08(0x1a7)]],_0x343548=_0x51a72c[_0x323f08(0x1aa)],_0x4c4da0=_0x5d8276[0x0];if(!_0x4c4da0)throw CliErrors[_0x323f08(0x1a0)](_0x323f08(0x19c));const _0x4f2b61=resolveRemovedCommand(_0x4c4da0,_0x5d8276[0x1]);if(_0x4f2b61)throw CliErrors['validation'](_0x4f2b61[_0x323f08(0x1a3)],_0x4f2b61['hint']);if(_0x4c4da0===_0x323f08(0x1a6))throw CliErrors['validation'](_0x323f08(0x1a5),_0x323f08(0x1a1));if(!isKnownService(_0x4c4da0))throw CliErrors[_0x323f08(0x19f)](_0x5d8276[_0x323f08(0x1b1)]('\x20'));const _0x1e6569=getServiceEntry(_0x4c4da0),_0x3e07eb=_0x5d8276[0x1],_0x4f8095=_0x3e07eb||_0x1e6569['defaultCommand'];if(!_0x4f8095){if(_0x1e6569[_0x323f08(0x1a4)])return{'definition':_0x1e6569[_0x323f08(0x1a4)],'rawFlags':_0x343548,'args':[]};throw CliErrors[_0x323f08(0x1a0)](_0x323f08(0x1b0)+_0x4c4da0+'\x22.');}const _0x303a54=findDefinition(_0x4c4da0,_0x4f8095);if(_0x303a54)return assertSupportedCommandFlags(_0x303a54,_0x343548),{'definition':_0x303a54,'rawFlags':_0x343548,'args':_0x5d8276[_0x323f08(0x1af)](0x2)};if(_0x1e6569[_0x323f08(0x1a4)])return{'definition':_0x1e6569['wildcardDef'],'rawFlags':_0x343548,'args':[_0x4f8095,..._0x5d8276['slice'](0x2)]};throw CliErrors['unknownCommand'](_0x4c4da0+'\x20'+_0x4f8095);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x365354,_0x1d2aab){const _0x154110=a342_0x48b4,_0xadde94=_0x365354();while(!![]){try{const _0x58402e=-parseInt(_0x154110(0x1d2))/0x1+-parseInt(_0x154110(0x1cf))/0x2*(-parseInt(_0x154110(0x1b4))/0x3)+-parseInt(_0x154110(0x1b5))/0x4*(parseInt(_0x154110(0x1be))/0x5)+-parseInt(_0x154110(0x1c5))/0x6*(parseInt(_0x154110(0x1ce))/0x7)+-parseInt(_0x154110(0x1c6))/0x8+-parseInt(_0x154110(0x1c4))/0x9*(-parseInt(_0x154110(0x1bc))/0xa)+parseInt(_0x154110(0x1cd))/0xb;if(_0x58402e===_0x1d2aab)break;else _0xadde94['push'](_0xadde94['shift']());}catch(_0x13e158){_0xadde94['push'](_0xadde94['shift']());}}}(a342_0x5747,0xbbc3f));function a342_0x48b4(_0x15c7b5,_0x186656){_0x15c7b5=_0x15c7b5-0x1b3;const _0x574719=a342_0x5747();let _0x48b4ee=_0x574719[_0x15c7b5];return _0x48b4ee;}import{randomUUID}from'node:crypto';function a342_0x5747(){const _0x42e96a=['stringify','Invalid\x20checkpoint;\x20reconcile\x20its\x20original\x20operation\x20before\x20submitting\x20again.','code','22302104BoQpDB','109081grGTNh','403880jpjzDV','manifest','writeFile','641078zuVpLK','identityKey','ENOENT','close','12WSiEoW','4HEIAhD','isSymbolicLink','schemaVersion','test','catch','utf8','isFile','3875070quoHnA','dataset-design-operation','828890iWHBDS','EEXIST','clientOperationId','size','string','length','9gVUcTa','486TooIun','3076520NjOkKy','.tmp','kind','inputHash'];a342_0x5747=function(){return _0x42e96a;};return a342_0x5747();}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(_0x1e0874){const _0x185af9=a342_0x48b4;try{const _0x47298d=await lstat(_0x1e0874);requireValue(_0x47298d[_0x185af9(0x1bb)]()&&!_0x47298d[_0x185af9(0x1b6)]()&&_0x47298d[_0x185af9(0x1c1)]<=0x3d0900,'Checkpoint\x20must\x20be\x20a\x20regular\x20JSON\x20file.');const _0x3aefcc=JSON['parse'](await readFile(_0x1e0874,_0x185af9(0x1ba)));return requireValue(isObject(_0x3aefcc)&&_0x3aefcc[_0x185af9(0x1c8)]===_0x185af9(0x1bd)&&_0x3aefcc[_0x185af9(0x1b7)]===0x1&&typeof _0x3aefcc[_0x185af9(0x1c0)]===_0x185af9(0x1c2)&&/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/['test'](_0x3aefcc[_0x185af9(0x1c0)])&&typeof _0x3aefcc[_0x185af9(0x1c9)]==='string'&&/^[a-f0-9]{64}$/[_0x185af9(0x1b8)](_0x3aefcc['inputHash'])&&typeof _0x3aefcc['identityKey']===_0x185af9(0x1c2)&&_0x3aefcc[_0x185af9(0x1d3)][_0x185af9(0x1c3)]>0x0&&isObject(_0x3aefcc[_0x185af9(0x1d0)]),_0x185af9(0x1cb)),_0x3aefcc;}catch(_0x23dece){if(_0x23dece['code']===_0x185af9(0x1d4))return undefined;throw _0x23dece;}}export async function saveCheckpoint(_0x4aa40d,_0x476db6,_0x38805d=![]){const _0x33f919=a342_0x48b4;await mkdir(dirname(_0x4aa40d),{'recursive':!![]});const _0xb336e=_0x4aa40d+'.'+randomUUID()+_0x33f919(0x1c7),_0x22307e=await open(_0xb336e,'wx',0x180);try{await _0x22307e[_0x33f919(0x1d1)](JSON[_0x33f919(0x1ca)](_0x476db6,null,0x2)+'\x0a'),await _0x22307e['sync']();}finally{await _0x22307e[_0x33f919(0x1b3)]();}try{if(_0x38805d)await link(_0xb336e,_0x4aa40d);else await rename(_0xb336e,_0x4aa40d);return!![];}catch(_0x3868d0){if(_0x38805d&&_0x3868d0[_0x33f919(0x1cc)]===_0x33f919(0x1bf))return![];throw _0x3868d0;}finally{await unlink(_0xb336e)[_0x33f919(0x1b9)](_0x41755f=>{const _0x524257=_0x33f919;if(_0x41755f[_0x524257(0x1cc)]!=='ENOENT')throw _0x41755f;});}}
|