@lovrabet/rabetbase-cli 2.5.8-beta.1 → 2.5.8-beta.2
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 +7 -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.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/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.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.d.ts +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.d.ts +2 -2
- 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/kb-management-client.d.ts +19 -0
- package/lib/core/kb-management-client.js +1 -0
- 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/telemetry/send-platform-issue-collect-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 +2 -2
- package/skills/rabetbase/references/rabetbase-kb.md +7 -6
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x277e39,_0x12f5f8){var _0x381a35=a322_0x45ab,_0x3eaab5=_0x277e39();while(!![]){try{var _0x6bab80=parseInt(_0x381a35(0x151))/0x1*(parseInt(_0x381a35(0x14e))/0x2)+parseInt(_0x381a35(0x14d))/0x3+parseInt(_0x381a35(0x14b))/0x4*(-parseInt(_0x381a35(0x154))/0x5)+-parseInt(_0x381a35(0x150))/0x6+-parseInt(_0x381a35(0x14f))/0x7*(-parseInt(_0x381a35(0x153))/0x8)+-parseInt(_0x381a35(0x152))/0x9*(-parseInt(_0x381a35(0x155))/0xa)+-parseInt(_0x381a35(0x14c))/0xb;if(_0x6bab80===_0x12f5f8)break;else _0x3eaab5['push'](_0x3eaab5['shift']());}catch(_0x108115){_0x3eaab5['push'](_0x3eaab5['shift']());}}}(a322_0x5c42,0x56112));export{runCommand}from'../framework/runner.js';function a322_0x5c42(){var _0x17bddd=['1982376SFeGen','1CbHWJK','44613SQzpzJ','703736wUTLUr','7135sPvdwY','90kvGofZ','564DMvrQV','4530251yLVhvx','1536027UKBePQ','599034lQkcre','35oVZzaW'];a322_0x5c42=function(){return _0x17bddd;};return a322_0x5c42();}function a322_0x45ab(_0x1fd494,_0x430945){_0x1fd494=_0x1fd494-0x14b;var _0x5c42cd=a322_0x5c42();var _0x45abe3=_0x5c42cd[_0x1fd494];return _0x45abe3;}export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a323_0x751e(_0x3cbc02,_0x24d378){_0x3cbc02=_0x3cbc02-0xeb;const _0x207a45=a323_0x207a();let _0x751ec2=_0x207a45[_0x3cbc02];return _0x751ec2;}(function(_0x1b795a,_0x435d4c){const _0x5b84bf=a323_0x751e,_0x4e18e4=_0x1b795a();while(!![]){try{const _0x271313=-parseInt(_0x5b84bf(0xf0))/0x1+-parseInt(_0x5b84bf(0xef))/0x2+-parseInt(_0x5b84bf(0xfc))/0x3+parseInt(_0x5b84bf(0xf3))/0x4*(-parseInt(_0x5b84bf(0xf1))/0x5)+parseInt(_0x5b84bf(0xff))/0x6*(-parseInt(_0x5b84bf(0xf2))/0x7)+parseInt(_0x5b84bf(0xfe))/0x8+-parseInt(_0x5b84bf(0x103))/0x9*(-parseInt(_0x5b84bf(0xfa))/0xa);if(_0x271313===_0x435d4c)break;else _0x4e18e4['push'](_0x4e18e4['shift']());}catch(_0x1785d8){_0x4e18e4['push'](_0x4e18e4['shift']());}}}(a323_0x207a,0x1caa9));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a323_0x207a(){const _0x1b7a92=['1085hKUbTB','7kfzLgb','1648QYuTly','error','stdout','update','json','hint','jq:\x20','10lIHvus','data','490062CHhucJ','message','1368328RJdiVo','1059438iTFxXp','_notice','code','validation','7387677enhmgq','format','pretty','stringify','url','jqFilter','463034wvXINt','213629LZWzlr'];a323_0x207a=function(){return _0x1b7a92;};return a323_0x207a();}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(_0x3cdca4,_0xda0817){const _0x337265=a323_0x751e,_0x3f5dbc=_0x3cdca4[_0x337265(0x100)],{_notice:_0x4b0925,..._0x52b8f1}=_0x3cdca4;void _0x4b0925,baseFormatOutput(_0x52b8f1,_0xda0817),_0xda0817[_0x337265(0x104)]===_0x337265(0xeb)&&printPrettyNotice(_0x3f5dbc);}export function formatCliError(_0x978f96,_0x3f80dc){const _0x2c44ca=a323_0x751e;if(_0x3f80dc['format']===_0x2c44ca(0xeb))return![];const _0x33acaf=_0x978f96[_0x2c44ca(0xfb)],_0x45a3ed={'ok':![],'command':_0x3f80dc['command'],'risk':_0x3f80dc['risk'],'data':_0x33acaf??null,'error':{'code':_0x978f96[_0x2c44ca(0x101)],'message':_0x978f96[_0x2c44ca(0xfd)],..._0x978f96['hint']?{'hint':_0x978f96[_0x2c44ca(0xf8)]}:{}}},_0x1d700e=_0x3f80dc[_0x2c44ca(0x104)]===_0x2c44ca(0xf7)?JSON[_0x2c44ca(0xec)](_0x45a3ed,null,0x2):JSON[_0x2c44ca(0xec)](_0x45a3ed);let _0xe0cdc8=_0x1d700e;if(_0x3f80dc[_0x2c44ca(0xee)]?.['trim']())try{_0xe0cdc8=applyJqFilter(_0x1d700e,_0x3f80dc[_0x2c44ca(0xee)]);}catch(_0x2502a7){const _0x6ff7ea=_0x2502a7 instanceof CliError?_0x2502a7:CliErrors[_0x2c44ca(0x102)](_0x2c44ca(0xf9)+(_0x2502a7 instanceof Error?_0x2502a7[_0x2c44ca(0xfd)]:String(_0x2502a7))),_0x542d7b={..._0x45a3ed,'error':{'code':_0x6ff7ea[_0x2c44ca(0x101)],'message':_0x6ff7ea[_0x2c44ca(0xfd)],..._0x6ff7ea['hint']?{'hint':_0x6ff7ea[_0x2c44ca(0xf8)]}:{},'cause':_0x45a3ed[_0x2c44ca(0xf4)]}};_0xe0cdc8=_0x3f80dc[_0x2c44ca(0x104)]===_0x2c44ca(0xf7)?JSON[_0x2c44ca(0xec)](_0x542d7b,null,0x2):JSON[_0x2c44ca(0xec)](_0x542d7b);}return process[_0x2c44ca(0xf5)]['write'](_0xe0cdc8['endsWith']('\x0a')?_0xe0cdc8:_0xe0cdc8+'\x0a'),!![];}function printPrettyNotice(_0x38a05f){const _0x30668a=a323_0x751e;if(!_0x38a05f?.[_0x30668a(0xf6)])return;console[_0x30668a(0xf4)](_0x38a05f[_0x30668a(0xf6)][_0x30668a(0xfd)]+'\x20('+_0x38a05f[_0x30668a(0xf6)][_0x30668a(0xed)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a324_0x3d39(_0x353d6e,_0x318309){_0x353d6e=_0x353d6e-0x1b8;var _0xfa07ea=a324_0xfa07();var _0x3d3929=_0xfa07ea[_0x353d6e];return _0x3d3929;}(function(_0x228490,_0x26f777){var _0x5697c9=a324_0x3d39,_0x38c8eb=_0x228490();while(!![]){try{var _0x1e4717=-parseInt(_0x5697c9(0x1bb))/0x1+parseInt(_0x5697c9(0x1ba))/0x2*(-parseInt(_0x5697c9(0x1b9))/0x3)+-parseInt(_0x5697c9(0x1c0))/0x4+parseInt(_0x5697c9(0x1bf))/0x5+-parseInt(_0x5697c9(0x1bc))/0x6*(-parseInt(_0x5697c9(0x1bd))/0x7)+parseInt(_0x5697c9(0x1b8))/0x8+parseInt(_0x5697c9(0x1be))/0x9;if(_0x1e4717===_0x26f777)break;else _0x38c8eb['push'](_0x38c8eb['shift']());}catch(_0x548af3){_0x38c8eb['push'](_0x38c8eb['shift']());}}}(a324_0xfa07,0xe45fa));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a324_0xfa07(){var _0x433216=['2853738qnZRbI','7HnZcLf','10227159FpfPaU','8652465LbDeAu','3284236unAhja','5124232IttPVx','213ZQVxGk','51994NAHVMQ','380732CZBzRM'];a324_0xfa07=function(){return _0x433216;};return a324_0xfa07();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x165310,_0x52bd18){const _0x129911=a325_0x1c62,_0x33d890=_0x165310();while(!![]){try{const _0x9a35ee=-parseInt(_0x129911(0xf1))/0x1*(-parseInt(_0x129911(0xeb))/0x2)+-parseInt(_0x129911(0xe1))/0x3+parseInt(_0x129911(0xf0))/0x4*(-parseInt(_0x129911(0xea))/0x5)+parseInt(_0x129911(0xed))/0x6+-parseInt(_0x129911(0xe3))/0x7*(-parseInt(_0x129911(0xef))/0x8)+-parseInt(_0x129911(0xe5))/0x9*(parseInt(_0x129911(0xde))/0xa)+parseInt(_0x129911(0xec))/0xb;if(_0x9a35ee===_0x52bd18)break;else _0x33d890['push'](_0x33d890['shift']());}catch(_0x2a1826){_0x33d890['push'](_0x33d890['shift']());}}}(a325_0x1594,0xa0776));function a325_0x1594(){const _0x52ceae=['profileName','validation','3323601nVUGdT','type','7ntaWpH','name','18NQjHUi','string','some','map','Available\x20aliases:\x20','3920345WZHxtu','322402FDBXQy','13537062xDBtzl','2680128pEztJI','No\x20model\x20aliases\x20found\x20in\x20','8388392mSLXtY','4KpUhEV','1kooFoF','length','.\x20Run\x20`','code','alias','`\x20requires\x20either\x20--code\x20or\x20--alias.','\x22.\x20','filePath','\x20api\x20pull`\x20first.','flags','1689370FnPAPp'];a325_0x1594=function(){return _0x52ceae;};return a325_0x1594();}import{CliErrors}from'../errors.js';function a325_0x1c62(_0x4e1a9d,_0x371ebf){_0x4e1a9d=_0x4e1a9d-0xd5;const _0x159433=a325_0x1594();let _0x1c6254=_0x159433[_0x4e1a9d];return _0x1c6254;}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(_0x17787e,_0x31b9aa,_0x4a8474,_0x477a7c,_0x5d9f51,_0xd2cdd3){const _0x4d996f=a325_0x1c62,_0x278aef=_0x17787e['flags'][_0x4d996f(0xe7)](_0x398347=>_0x398347[_0x4d996f(0xe4)]===_0x4d996f(0xd7)&&_0x398347[_0x4d996f(0xe2)]===_0x4d996f(0xe6)),_0x2007a1=_0x17787e[_0x4d996f(0xdd)][_0x4d996f(0xe7)](_0x9ff985=>_0x9ff985['name']===_0x4d996f(0xd8)&&_0x9ff985['type']==='string');if(!_0x278aef||!_0x2007a1)return;const _0x3ad69b=_0x31b9aa[_0x4d996f(0xd7)]?String(_0x31b9aa[_0x4d996f(0xd7)]):'',_0x51223f=_0x31b9aa['alias']?String(_0x31b9aa[_0x4d996f(0xd8)]):'';if(!_0x3ad69b&&!_0x51223f)throw CliErrors[_0x4d996f(0xe0)]('`'+_0x477a7c+_0x4d996f(0xd9));if(_0x51223f&&!_0x3ad69b){const _0x410660=resolveApiModelSource(_0x4a8474,_0x5d9f51,_0xd2cdd3),_0x348af7=resolveAlias(_0x4a8474,_0x51223f,undefined,_0x410660['filePath'],_0x410660[_0x4d996f(0xdf)]);if(!_0x348af7){const _0x52dea0=listAliases(_0x4a8474,undefined,_0x410660[_0x4d996f(0xdb)],_0x410660[_0x4d996f(0xdf)])[_0x4d996f(0xe8)](_0x3f34e0=>_0x3f34e0['alias']),_0x3f6e4f=_0x52dea0[_0x4d996f(0xd5)]?_0x4d996f(0xe9)+_0x52dea0['join'](',\x20'):_0x4d996f(0xee)+_0x4a8474+_0x4d996f(0xd6)+CLI_BIN_NAME+_0x4d996f(0xdc);throw CliErrors[_0x4d996f(0xe0)]('Unknown\x20alias\x20\x22'+_0x51223f+_0x4d996f(0xda)+_0x3f6e4f);}_0x31b9aa[_0x4d996f(0xd7)]=_0x348af7;}}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a325_0x4240(){const _0x3fda0e=['\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','../core/api-client.js','App\x20\x22','all','../constant/domain.js','nonInteractive','name','4pNuRAy','10209392roPzcs','has','\x20\x20\x20Continue?\x20[y/N]\x20','format','52orsYLD','resolveApiDomain','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','find','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','meowKey','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','15467598VoeIxG','doctor','riskLevel','185854vrnVxM','command','⚠\x20\x20High-risk\x20operation:\x20','requiresAppCode','cancelled','string','none','currentApp','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','configMissing','resolveAppCode','entries','appCode','10529472tIbGKU','keys','Set\x20appcode\x20via\x20`','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','update','Edit\x20the\x20config\x20file\x20manually','apps','validation','232165sqLIUz','pageSize','selectedAppName','join','execute','replace','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','formatOutput','appcode','7MUcNpz','4839042vSXIeZ','map','../constant/env.js','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','toUpperCase','filter','High-risk\x20operation\x20`','object','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','rawFlags','length','isNonInteractive','trim','RABETBASE_APPCODE','some','\x0a\x20\x20','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','authRequired','hasFormat','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','defaultApp','schema','defaultVerbose','67330XYOKVi','_notice','pretty','\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20','mergedCli','risk','apiDir','3663OUopve','cookie','value','service','catch','resolve','includes','rejectedFlags'];a325_0x4240=function(){return _0x3fda0e;};return a325_0x4240();}(function(_0x591eef,_0x371ada){const _0x602687=a325_0x5738,_0x60dc82=_0x591eef();while(!![]){try{const _0xde4113=-parseInt(_0x602687(0xfa))/0x1*(parseInt(_0x602687(0x109))/0x2)+parseInt(_0x602687(0x128))/0x3+parseInt(_0x602687(0xff))/0x4*(parseInt(_0x602687(0x11e))/0x5)+-parseInt(_0x602687(0x116))/0x6*(-parseInt(_0x602687(0x127))/0x7)+parseInt(_0x602687(0xfb))/0x8+-parseInt(_0x602687(0x106))/0x9+-parseInt(_0x602687(0xe4))/0xa*(parseInt(_0x602687(0xeb))/0xb);if(_0xde4113===_0x371ada)break;else _0x60dc82['push'](_0x60dc82['shift']());}catch(_0x3e52fc){_0x60dc82['push'](_0x60dc82['shift']());}}}(a325_0x4240,0xdf76e));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';function a325_0x5738(_0x43c04b,_0x3cb781){_0x43c04b=_0x43c04b-0xdd;const _0x424030=a325_0x4240();let _0x5738fc=_0x424030[_0x43c04b];return _0x5738fc;}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 a325_0x1e9c13}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x465e20){const _0x1da984=a325_0x5738;return typeof _0x465e20===_0x1da984(0x10e)&&_0x465e20['trim']()?_0x465e20[_0x1da984(0x134)]():undefined;}function resolveEnvAppCode(){const _0x28a89=a325_0x5738,_0x3719b1=stringFlag(process.env.RABETBASE_APPCODE);if(_0x3719b1)return{'name':_0x28a89(0x135),'value':_0x3719b1};const _0x7bcfd5=stringFlag(process.env.LOVRABET_APPCODE);if(_0x7bcfd5)return{'name':'LOVRABET_APPCODE','value':_0x7bcfd5};return undefined;}function hasExplicitAppCode(_0x270a01,_0x34b0ac){return!!(stringFlag(_0x270a01['appcode'])||stringFlag(_0x34b0ac['appcode']));}function assertEnvAppCodeNotIgnored(_0xa2868d,_0x24c1f2,_0x1ef259){const _0x4bdcfe=a325_0x5738;if(!_0x24c1f2||_0x1ef259||_0xa2868d===_0x24c1f2[_0x4bdcfe(0xed)])return;const _0x2e3ba5=_0xa2868d?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0xa2868d+'\x22.':_0x4bdcfe(0x12b);throw CliErrors[_0x4bdcfe(0x11d)](_0x24c1f2[_0x4bdcfe(0xf9)]+'='+_0x24c1f2[_0x4bdcfe(0xed)]+_0x4bdcfe(0x111)+_0x2e3ba5+'\x20'+(_0x4bdcfe(0xdd)+_0x24c1f2[_0x4bdcfe(0xf9)]+'\x22.'));}export function createPipelineEnv(_0x563578,_0x3cfa94,_0x5aa10b=[]){const _0x221c4e=a325_0x5738;return{'rawFlags':_0x3cfa94,'args':_0x5aa10b,'resolveAppCode':()=>_0x563578['appCode'],'resolveCookie':()=>_0x563578[_0x221c4e(0xec)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a325_0x1e9c13(_0x3cfa94),'defaultFormat':_0x563578[_0x221c4e(0xfe)],'defaultPageSize':_0x563578[_0x221c4e(0x11f)],'defaultVerbose':_0x563578['verbose'],'apiDir':_0x563578[_0x221c4e(0xea)],'riskLevel':_0x563578[_0x221c4e(0x108)],'selectedAppName':_0x563578['explicitAppName'],'mergedCli':{'defaultApp':_0x563578[_0x221c4e(0xe1)],'currentApp':_0x563578[_0x221c4e(0x110)],'appCode':_0x563578[_0x221c4e(0x115)],'apps':_0x563578[_0x221c4e(0x11c)]}};}export function createRabetbaseRunnerAdapter(_0x43655c={}){const _0x36ea76=a325_0x5738;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x36ea76(0x12d)](_0x3ceea8=>PIPELINE_FLAG_NAMES[_0x36ea76(0xfc)](_0x3ceea8[_0x36ea76(0xf9)]))['map'](({name:_0x5e0084,type:_0x1d49e9,description:_0x131b0a})=>({'name':_0x5e0084,'type':_0x1d49e9,'description':_0x131b0a})),'formatOutput':_0x43655c[_0x36ea76(0x125)]??formatOutput,'getCommandLabel'(_0x3bd9ff){const _0x145816=_0x36ea76;return CLI_BIN_NAME+'\x20'+_0x3bd9ff[_0x145816(0xee)]+'\x20'+_0x3bd9ff[_0x145816(0x10a)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0xb926a,{def:_0x3d1004}){const _0x9442bd=_0x36ea76,_0x204dae=_0xb926a[_0x9442bd(0xf1)](_0x9442bd(0x11b))?_0x9442bd(0x124):_0x9442bd(0x105)+_0x3d1004[_0x9442bd(0xe9)]+'\x22\x20if\x20this\x20operation\x20is\x20intended.\x20'+_0x9442bd(0x124);return CliErrors[_0x9442bd(0x11d)](_0xb926a+_0x9442bd(0x137)+_0x204dae);}},async 'prepare'(_0x5cd28a,_0x4b479d,_0x3cf473,_0x187ba5){const _0x40af1b=_0x36ea76,_0x525825=_0x4b479d['apiDir']||DEFAULT_API_DIR,_0x56b00a=hasExplicitAppCode(_0x3cf473,_0x4b479d[_0x40af1b(0x131)]),_0xd1dcca=stringFlag(_0x3cf473[_0x40af1b(0x126)])||stringFlag(_0x4b479d[_0x40af1b(0x131)][_0x40af1b(0x126)]),_0x235b4d=_0x4b479d[_0x40af1b(0xe8)]?.[_0x40af1b(0x11c)]??{},_0x5a5c9a=_0x4b479d[_0x40af1b(0x120)]||_0x4b479d[_0x40af1b(0xe8)]?.[_0x40af1b(0x110)]||_0x4b479d[_0x40af1b(0xe8)]?.[_0x40af1b(0xe1)],_0x25d49a=_0xd1dcca?Object[_0x40af1b(0x114)](_0x235b4d)[_0x40af1b(0x12d)](([,_0x5b15bb])=>_0x5b15bb[_0x40af1b(0x126)]===_0xd1dcca)[_0x40af1b(0x129)](([_0x1ae441])=>_0x1ae441):[];if(_0x25d49a[_0x40af1b(0x132)]>0x1&&!_0x4b479d[_0x40af1b(0x120)])throw CliErrors[_0x40af1b(0x11d)]('AppCode\x20\x22'+_0xd1dcca+_0x40af1b(0xe7)+_0x25d49a[_0x40af1b(0x121)](',\x20')+'.','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.');resolveAliasToCode(_0x5cd28a,_0x3cf473,_0x525825,_0x187ba5,_0x4b479d[_0x40af1b(0x113)](),_0x5a5c9a);const _0x5aec44=resolveCommandAuthMode(_0x5cd28a);let _0x487683='';if(_0x5aec44!==_0x40af1b(0x10f)){_0x487683=_0x4b479d['resolveCookie']()||'';if(!_0x487683){if(_0x5aec44==='required')throw CliErrors[_0x40af1b(0xde)]();}else{const {setActiveCookie:_0x36df87}=await import('../core/api-client.js');_0x36df87(_0x487683);}}const _0x1305fb=_0x4b479d['resolveAppCode']()??'';if(_0x5cd28a[_0x40af1b(0x10c)]!==![]){if(!_0x56b00a&&_0x5a5c9a&&!_0x235b4d[_0x5a5c9a]){const _0x588240=Object[_0x40af1b(0x117)](_0x235b4d);throw CliErrors[_0x40af1b(0x11d)](_0x40af1b(0xf5)+_0x5a5c9a+'\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.',_0x588240[_0x40af1b(0x132)]>0x0?'Available:\x20'+_0x588240[_0x40af1b(0x121)](',\x20')+_0x40af1b(0x101)+CLI_BIN_NAME+_0x40af1b(0xf3):_0x40af1b(0x130)+CLI_BIN_NAME+'\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.');}assertEnvAppCodeNotIgnored(_0x1305fb,resolveEnvAppCode(),_0x56b00a);if(!_0x1305fb){const _0x159fe5=Object[_0x40af1b(0x117)](_0x235b4d);if(!_0x5a5c9a&&_0x159fe5[_0x40af1b(0x132)]>0x1)throw CliErrors['configMissing']('Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`'+CLI_BIN_NAME+_0x40af1b(0x119)+_0x159fe5[_0x40af1b(0x121)](',\x20')+'.');throw CliErrors[_0x40af1b(0x112)](_0x40af1b(0x118)+CLI_BIN_NAME+_0x40af1b(0x103));}}return{'defaults':{'booleans':{'verbose':_0x4b479d[_0x40af1b(0xe3)]},'numbers':{'pagesize':_0x4b479d['defaultPageSize']}},'extras':{'appCode':_0x1305fb,'cookie':_0x487683,'apiDomain':_0x4b479d[_0x40af1b(0x100)](),'apiDir':_0x525825,'selectedAppName':_0x4b479d[_0x40af1b(0x120)],'mergedCli':_0x4b479d['mergedCli']}};},'confirmHighRisk':_0x43655c['confirmHighRisk']??(async({env:_0x38dd6f,commandLabel:_0x1c0d23})=>{const _0x43e8db=_0x36ea76;if(_0x38dd6f[_0x43e8db(0x133)])throw CliErrors[_0x43e8db(0x11d)](_0x43e8db(0x12e)+_0x1c0d23+_0x43e8db(0xe0));await requireConfirmationPrompt({'lines':[_0x43e8db(0x10b)+_0x1c0d23,_0x43e8db(0xfd)],'createCancelledError':_0x282814=>CliErrors[_0x43e8db(0x10d)](_0x282814)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x333d17=a325_0x5738,{clearActiveCookie:_0x35863d}=await import(_0x333d17(0xf4));_0x35863d();}export async function finalizeRabetbaseRuntimeState(){const _0x278678=a325_0x5738;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x1f4ce5},{initEnv:_0x2bbafd}]=await Promise[_0x278678(0xf6)]([import(_0x278678(0xf7)),import(_0x278678(0x12a))]);_0x1f4ce5(),_0x2bbafd('production');}}export async function runCommand(_0x44e5a0,_0x506e3c,_0x440234=terminalRunnerAdapter){const _0x27f691=a325_0x5738;assertRejectedFlags(_0x44e5a0,_0x506e3c[_0x27f691(0x131)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x44e5a0)?withUpdateNotice(_0x44e5a0):_0x44e5a0,_0x506e3c,_0x440234);}function assertRejectedFlags(_0x57268c,_0x453b5c){const _0x595e4f=a325_0x5738;for(const _0x10e0f3 of _0x57268c[_0x595e4f(0xf2)]??[]){const _0x53d08b=GLOBAL_FLAGS[_0x595e4f(0x102)](_0xc9c93a=>_0xc9c93a[_0x595e4f(0xf9)]===_0x10e0f3[_0x595e4f(0xf9)]),_0x5554a8=new Set([_0x10e0f3[_0x595e4f(0xf9)],toCamelCase(_0x10e0f3[_0x595e4f(0xf9)]),_0x53d08b?.[_0x595e4f(0x104)]]),_0x388de=[..._0x5554a8][_0x595e4f(0x136)](_0x1edeea=>{if(!_0x1edeea)return![];const _0x2510b7=_0x453b5c[_0x1edeea];return _0x2510b7!==undefined&&_0x2510b7!==null&&_0x2510b7!==![];});if(_0x388de)throw CliErrors[_0x595e4f(0x11d)](_0x10e0f3['message'],_0x10e0f3['hint']);}}function toCamelCase(_0x31c899){const _0x33b513=a325_0x5738;return _0x31c899[_0x33b513(0x123)](/-([a-z])/g,(_0x2f5be1,_0x1b17d8)=>_0x1b17d8[_0x33b513(0x12c)]());}function shouldAttachUpdateNotice(_0x5e9bfd){const _0x15cc4b=a325_0x5738;if(_0x5e9bfd[_0x15cc4b(0xdf)]===![])return![];return![_0x15cc4b(0x11a),_0x15cc4b(0xe2),_0x15cc4b(0x107)]['includes'](_0x5e9bfd[_0x15cc4b(0xee)]);}function withUpdateNotice(_0x42f5e4){return{..._0x42f5e4,async 'execute'(_0x47b10f){const _0x4c7a77=a325_0x5738,_0x568561=shouldResolveUpdateNotice(_0x47b10f)?resolveLatestUpdateNotice()[_0x4c7a77(0xef)](()=>null):Promise[_0x4c7a77(0xf0)](null),_0x463291=await _0x42f5e4[_0x4c7a77(0x122)](_0x47b10f);return attachUpdateNotice(_0x463291,await _0x568561);}};}function shouldResolveUpdateNotice(_0x2403b8){const _0x17722c=a325_0x5738;return _0x2403b8['format']===_0x17722c(0xe6)&&!_0x2403b8[_0x17722c(0xf8)];}function attachUpdateNotice(_0x93c665,_0x4fbb18){const _0x34255d=a325_0x5738;if(!_0x4fbb18||!_0x93c665||typeof _0x93c665!==_0x34255d(0x12f))return _0x93c665;const _0x4d1848=_0x93c665,_0x1d4921=typeof _0x4d1848[_0x34255d(0xe5)]===_0x34255d(0x12f)&&_0x4d1848[_0x34255d(0xe5)]!==null?_0x4d1848[_0x34255d(0xe5)]:{};return{..._0x4d1848,'_notice':{..._0x1d4921,'update':_0x4fbb18}};}
|
|
1
|
+
(function(_0x14a652,_0x2a39f2){const _0x273452=a326_0x32a2,_0x1dedab=_0x14a652();while(!![]){try{const _0x735cd6=parseInt(_0x273452(0xe4))/0x1+parseInt(_0x273452(0xbc))/0x2+-parseInt(_0x273452(0xff))/0x3+parseInt(_0x273452(0xe6))/0x4+-parseInt(_0x273452(0xc2))/0x5+parseInt(_0x273452(0xc0))/0x6*(-parseInt(_0x273452(0xc1))/0x7)+-parseInt(_0x273452(0xd7))/0x8*(-parseInt(_0x273452(0xe7))/0x9);if(_0x735cd6===_0x2a39f2)break;else _0x1dedab['push'](_0x1dedab['shift']());}catch(_0x3759ce){_0x1dedab['push'](_0x1dedab['shift']());}}}(a326_0x3d5b,0x57f02));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 a326_0x2612a8}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x3b985e){const _0x43ed24=a326_0x32a2;return typeof _0x3b985e==='string'&&_0x3b985e[_0x43ed24(0xdb)]()?_0x3b985e[_0x43ed24(0xdb)]():undefined;}function resolveEnvAppCode(){const _0x4e3729=a326_0x32a2,_0x471b27=stringFlag(process.env.RABETBASE_APPCODE);if(_0x471b27)return{'name':'RABETBASE_APPCODE','value':_0x471b27};const _0x438b6b=stringFlag(process.env.LOVRABET_APPCODE);if(_0x438b6b)return{'name':_0x4e3729(0x109),'value':_0x438b6b};return undefined;}function hasExplicitAppCode(_0x25c7d3,_0xa3b884){const _0x18c951=a326_0x32a2;return!!(stringFlag(_0x25c7d3[_0x18c951(0xbd)])||stringFlag(_0xa3b884[_0x18c951(0xbd)]));}function a326_0x32a2(_0x53131b,_0x47e0ae){_0x53131b=_0x53131b-0xbc;const _0x3d5b59=a326_0x3d5b();let _0x32a272=_0x3d5b59[_0x53131b];return _0x32a272;}function assertEnvAppCodeNotIgnored(_0x246e05,_0x105958,_0x58b16e){const _0x2e6dac=a326_0x32a2;if(!_0x105958||_0x58b16e||_0x246e05===_0x105958[_0x2e6dac(0xf2)])return;const _0x375613=_0x246e05?_0x2e6dac(0x10b)+_0x246e05+'\x22.':_0x2e6dac(0xed);throw CliErrors[_0x2e6dac(0xbe)](_0x105958[_0x2e6dac(0xd5)]+'='+_0x105958[_0x2e6dac(0xf2)]+_0x2e6dac(0xd8)+_0x375613+'\x20'+(_0x2e6dac(0xd3)+_0x105958['name']+'\x22.'));}export function createPipelineEnv(_0x1655cb,_0x74194,_0x1c6c2c=[]){const _0x286ab6=a326_0x32a2;return{'rawFlags':_0x74194,'args':_0x1c6c2c,'resolveAppCode':()=>_0x1655cb[_0x286ab6(0xc6)],'resolveCookie':()=>_0x1655cb[_0x286ab6(0x10f)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a326_0x2612a8(_0x74194),'defaultFormat':_0x1655cb[_0x286ab6(0xc5)],'defaultPageSize':_0x1655cb[_0x286ab6(0xf3)],'defaultVerbose':_0x1655cb[_0x286ab6(0xe1)],'apiDir':_0x1655cb[_0x286ab6(0xcf)],'riskLevel':_0x1655cb['riskLevel'],'selectedAppName':_0x1655cb[_0x286ab6(0xe5)],'mergedCli':{'defaultApp':_0x1655cb['defaultApp'],'currentApp':_0x1655cb[_0x286ab6(0x10e)],'appCode':_0x1655cb[_0x286ab6(0xc6)],'apps':_0x1655cb[_0x286ab6(0xdd)]}};}export function createRabetbaseRunnerAdapter(_0x27f6c8={}){const _0x5e23e6=a326_0x32a2;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x5e23e6(0xc9)](_0x2952f8=>PIPELINE_FLAG_NAMES[_0x5e23e6(0xd6)](_0x2952f8[_0x5e23e6(0xd5)]))[_0x5e23e6(0xe2)](({name:_0x230325,type:_0xa79b8a,description:_0x4c83e8})=>({'name':_0x230325,'type':_0xa79b8a,'description':_0x4c83e8})),'formatOutput':_0x27f6c8['formatOutput']??formatOutput,'getCommandLabel'(_0x15b50c){const _0x55a15f=_0x5e23e6;return CLI_BIN_NAME+'\x20'+_0x15b50c[_0x55a15f(0xc4)]+'\x20'+_0x15b50c[_0x55a15f(0x10a)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x3effd3,{def:_0x6f1d57}){const _0x44fd7f=_0x5e23e6,_0x52e01a=_0x3effd3['includes'](_0x44fd7f(0xf1))?_0x44fd7f(0xf6):_0x44fd7f(0x103)+_0x6f1d57[_0x44fd7f(0xe0)]+_0x44fd7f(0xfd)+_0x44fd7f(0xf6);return CliErrors[_0x44fd7f(0xbe)](_0x3effd3+'\x0a\x20\x20'+_0x52e01a);}},async 'prepare'(_0x32abd0,_0x5b10f2,_0x544881,_0x45a58e){const _0x2362d1=_0x5e23e6,_0x36dbc5=_0x5b10f2['apiDir']||DEFAULT_API_DIR,_0x3f335b=hasExplicitAppCode(_0x544881,_0x5b10f2[_0x2362d1(0xf7)]),_0x4cb026=stringFlag(_0x544881['appcode'])||stringFlag(_0x5b10f2['rawFlags'][_0x2362d1(0xbd)]),_0x4df873=_0x5b10f2[_0x2362d1(0xfc)]?.[_0x2362d1(0xdd)]??{},_0x2655f5=_0x5b10f2['selectedAppName']||_0x5b10f2[_0x2362d1(0xfc)]?.[_0x2362d1(0x10e)]||_0x5b10f2[_0x2362d1(0xfc)]?.[_0x2362d1(0x10c)],_0x4e6ccd=_0x4cb026?Object[_0x2362d1(0xe3)](_0x4df873)['filter'](([,_0x4d7a3c])=>_0x4d7a3c[_0x2362d1(0xbd)]===_0x4cb026)[_0x2362d1(0xe2)](([_0x4a6664])=>_0x4a6664):[];if(_0x4e6ccd['length']>0x1&&!_0x5b10f2['selectedAppName'])throw CliErrors[_0x2362d1(0xbe)](_0x2362d1(0xec)+_0x4cb026+_0x2362d1(0xbf)+_0x4e6ccd['join'](',\x20')+'.',_0x2362d1(0xdc));resolveAliasToCode(_0x32abd0,_0x544881,_0x36dbc5,_0x45a58e,_0x5b10f2[_0x2362d1(0x108)](),_0x2655f5);const _0x2d792f=resolveCommandAuthMode(_0x32abd0);let _0x314fa6='';if(_0x2d792f!==_0x2362d1(0xe8)){_0x314fa6=_0x5b10f2['resolveCookie']()||'';if(!_0x314fa6){if(_0x2d792f===_0x2362d1(0xfb))throw CliErrors[_0x2362d1(0xe9)]();}else{const {setActiveCookie:_0x50bea8}=await import(_0x2362d1(0xd2));_0x50bea8(_0x314fa6);}}const _0x5b2da0=_0x5b10f2[_0x2362d1(0x108)]()??'';if(_0x32abd0[_0x2362d1(0x107)]!==![]){if(!_0x3f335b&&_0x2655f5&&!_0x4df873[_0x2655f5]){const _0x44aa31=Object['keys'](_0x4df873);throw CliErrors['validation'](_0x2362d1(0x104)+_0x2655f5+'\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.',_0x44aa31['length']>0x0?_0x2362d1(0xee)+_0x44aa31[_0x2362d1(0xc3)](',\x20')+'.\x20Use\x20--app/--appcode,\x20or\x20run\x20`'+CLI_BIN_NAME+'\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.':'Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x2362d1(0xda));}assertEnvAppCodeNotIgnored(_0x5b2da0,resolveEnvAppCode(),_0x3f335b);if(!_0x5b2da0){const _0x5d7698=Object['keys'](_0x4df873);if(!_0x2655f5&&_0x5d7698['length']>0x1)throw CliErrors[_0x2362d1(0xef)]('Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`'+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20'+_0x5d7698[_0x2362d1(0xc3)](',\x20')+'.');throw CliErrors['configMissing'](_0x2362d1(0xde)+CLI_BIN_NAME+_0x2362d1(0xfa));}}return{'defaults':{'booleans':{'verbose':_0x5b10f2[_0x2362d1(0xd4)]},'numbers':{'pagesize':_0x5b10f2[_0x2362d1(0x10d)]}},'extras':{'appCode':_0x5b2da0,'cookie':_0x314fa6,'apiDomain':_0x5b10f2['resolveApiDomain'](),'apiDir':_0x36dbc5,'selectedAppName':_0x5b10f2[_0x2362d1(0x105)],'mergedCli':_0x5b10f2[_0x2362d1(0xfc)]}};},'confirmHighRisk':_0x27f6c8[_0x5e23e6(0x102)]??(async({env:_0x2fcb10,commandLabel:_0x2571aa})=>{const _0x2329b8=_0x5e23e6;if(_0x2fcb10[_0x2329b8(0xea)])throw CliErrors['validation'](_0x2329b8(0xf9)+_0x2571aa+_0x2329b8(0xdf));await requireConfirmationPrompt({'lines':[_0x2329b8(0xf8)+_0x2571aa,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x3e0ac3=>CliErrors['cancelled'](_0x3e0ac3)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x45074f=a326_0x32a2,{clearActiveCookie:_0x7b45c6}=await import(_0x45074f(0xd2));_0x7b45c6();}export async function finalizeRabetbaseRuntimeState(){const _0xa484eb=a326_0x32a2;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x3a30dd},{initEnv:_0x472462}]=await Promise['all']([import(_0xa484eb(0xf5)),import(_0xa484eb(0x110))]);_0x3a30dd(),_0x472462(_0xa484eb(0xfe));}}export async function runCommand(_0x1d8565,_0x2d0a3e,_0xd77c9e=terminalRunnerAdapter){assertRejectedFlags(_0x1d8565,_0x2d0a3e['rawFlags']),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x1d8565)?withUpdateNotice(_0x1d8565):_0x1d8565,_0x2d0a3e,_0xd77c9e);}function assertRejectedFlags(_0x5d255d,_0x1cd862){const _0xbec3c3=a326_0x32a2;for(const _0x114be6 of _0x5d255d['rejectedFlags']??[]){const _0x4fc9a1=GLOBAL_FLAGS['find'](_0x33422a=>_0x33422a[_0xbec3c3(0xd5)]===_0x114be6[_0xbec3c3(0xd5)]),_0x47e5f4=new Set([_0x114be6[_0xbec3c3(0xd5)],toCamelCase(_0x114be6[_0xbec3c3(0xd5)]),_0x4fc9a1?.[_0xbec3c3(0xca)]]),_0x517bbe=[..._0x47e5f4][_0xbec3c3(0xc7)](_0x1afc91=>{if(!_0x1afc91)return![];const _0x107474=_0x1cd862[_0x1afc91];return _0x107474!==undefined&&_0x107474!==null&&_0x107474!==![];});if(_0x517bbe)throw CliErrors[_0xbec3c3(0xbe)](_0x114be6[_0xbec3c3(0xc8)],_0x114be6[_0xbec3c3(0xf0)]);}}function toCamelCase(_0x216b8b){const _0x11ae33=a326_0x32a2;return _0x216b8b[_0x11ae33(0xf4)](/-([a-z])/g,(_0x2df4b5,_0x353a87)=>_0x353a87[_0x11ae33(0xd0)]());}function shouldAttachUpdateNotice(_0x48abb1){const _0x1bfd46=a326_0x32a2;if(_0x48abb1[_0x1bfd46(0xeb)]===![])return![];return![_0x1bfd46(0xcc),_0x1bfd46(0xd9),_0x1bfd46(0xcb)][_0x1bfd46(0xd1)](_0x48abb1[_0x1bfd46(0xc4)]);}function withUpdateNotice(_0x12ebe9){return{..._0x12ebe9,async 'execute'(_0x2051ff){const _0x23b24d=a326_0x32a2,_0x1c65b8=shouldResolveUpdateNotice(_0x2051ff)?resolveLatestUpdateNotice()[_0x23b24d(0x101)](()=>null):Promise['resolve'](null),_0x505998=await _0x12ebe9[_0x23b24d(0x100)](_0x2051ff);return attachUpdateNotice(_0x505998,await _0x1c65b8);}};}function shouldResolveUpdateNotice(_0x38db70){const _0x3e5d24=a326_0x32a2;return _0x38db70[_0x3e5d24(0xc5)]===_0x3e5d24(0xce)&&!_0x38db70['nonInteractive'];}function attachUpdateNotice(_0x5ceeb7,_0xea8d62){const _0x5ab136=a326_0x32a2;if(!_0xea8d62||!_0x5ceeb7||typeof _0x5ceeb7!==_0x5ab136(0x106))return _0x5ceeb7;const _0x1d979c=_0x5ceeb7,_0x1e1d3d=typeof _0x1d979c['_notice']===_0x5ab136(0x106)&&_0x1d979c[_0x5ab136(0xcd)]!==null?_0x1d979c[_0x5ab136(0xcd)]:{};return{..._0x1d979c,'_notice':{..._0x1e1d3d,'update':_0xea8d62}};}function a326_0x3d5b(){const _0x24b13a=['\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','schema','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','trim','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','apps','Set\x20appcode\x20via\x20`','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','risk','verbose','map','entries','531750WxoUjk','explicitAppName','652880kNFCnN','21339hbPfGM','none','authRequired','isNonInteractive','hasFormat','AppCode\x20\x22','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','Available:\x20','configMissing','hint','Edit\x20the\x20config\x20file\x20manually','value','pageSize','replace','../constant/domain.js','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','rawFlags','⚠\x20\x20High-risk\x20operation:\x20','High-risk\x20operation\x20`','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','required','mergedCli','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','production','624885BrEsWw','execute','catch','confirmHighRisk','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','App\x20\x22','selectedAppName','object','requiresAppCode','resolveAppCode','LOVRABET_APPCODE','command','Current\x20resolved\x20appcode\x20is\x20\x22','defaultApp','defaultPageSize','currentApp','cookie','../constant/env.js','1265974ydkZPq','appcode','validation','\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20','66822nycwDz','329KUJSUp','2970250VUryER','join','service','format','appCode','some','message','filter','meowKey','doctor','update','_notice','pretty','apiDir','toUpperCase','includes','../core/api-client.js','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','defaultVerbose','name','has','1208KxYEtZ'];a326_0x3d5b=function(){return _0x24b13a;};return a326_0x3d5b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2ffcbb,_0x2026a3){const _0x2be1a7=a327_0x4afe,_0x283966=_0x2ffcbb();while(!![]){try{const _0x4955ba=parseInt(_0x2be1a7(0x1cc))/0x1+parseInt(_0x2be1a7(0x1ca))/0x2*(-parseInt(_0x2be1a7(0x1d3))/0x3)+parseInt(_0x2be1a7(0x1d2))/0x4+parseInt(_0x2be1a7(0x1cb))/0x5+-parseInt(_0x2be1a7(0x1d0))/0x6*(parseInt(_0x2be1a7(0x1cd))/0x7)+-parseInt(_0x2be1a7(0x1cf))/0x8+parseInt(_0x2be1a7(0x1d1))/0x9;if(_0x4955ba===_0x2026a3)break;else _0x283966['push'](_0x283966['shift']());}catch(_0x443874){_0x283966['push'](_0x283966['shift']());}}}(a327_0xda98,0x86fa1));import{buildSchemaPayload as a327_0x3902cb}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a327_0xda98(){const _0x23edb1=['69ewJVWn','45618qxYAQx','940100aLvloF','268106KvxvDZ','28LuSjwb','../commands/registry.js','6412152MYTIVj','638256djHQRN','8015355XaLEEH','3831096XrnvVd'];a327_0xda98=function(){return _0x23edb1;};return a327_0xda98();}import{getCliVersion}from'../utils/version.js';function a327_0x4afe(_0x1fb4e4,_0x1489c9){_0x1fb4e4=_0x1fb4e4-0x1ca;const _0xda98d3=a327_0xda98();let _0x4afe86=_0xda98d3[_0x1fb4e4];return _0x4afe86;}export async function buildSchemaPayload(){const _0x45203d=a327_0x4afe,{serviceRegistry:_0x5d4b22,findDefinition:_0x4eea7d}=await import(_0x45203d(0x1ce));return a327_0x3902cb({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x5d4b22,'buildAllFlags':buildAllFlags,'findDefinition':_0x4eea7d});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4c7fab,_0x53e570){const _0x19114e=a328_0x3e5d,_0x3e5797=_0x4c7fab();while(!![]){try{const _0x5a003e=parseInt(_0x19114e(0xa1))/0x1+-parseInt(_0x19114e(0xa4))/0x2+parseInt(_0x19114e(0xab))/0x3*(-parseInt(_0x19114e(0xa0))/0x4)+-parseInt(_0x19114e(0xb8))/0x5*(parseInt(_0x19114e(0xaf))/0x6)+-parseInt(_0x19114e(0xa8))/0x7+-parseInt(_0x19114e(0xb7))/0x8*(parseInt(_0x19114e(0xaa))/0x9)+parseInt(_0x19114e(0xb0))/0xa*(parseInt(_0x19114e(0xa3))/0xb);if(_0x5a003e===_0x53e570)break;else _0x3e5797['push'](_0x3e5797['shift']());}catch(_0x20a134){_0x3e5797['push'](_0x3e5797['shift']());}}}(a328_0x4097,0x8214f));import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function assertSupportedCommandFlags(_0x3dbcda,_0x591a26){const _0x4a8be6=a328_0x3e5d;if(!_0x3dbcda[_0x4a8be6(0xae)])return;const _0x272ca4=new Set([_0x4a8be6(0xa6),'version']),_0x4705ae=GLOBAL_FLAGS['filter'](_0x5acc8a=>PIPELINE_FLAG_NAMES[_0x4a8be6(0xad)](_0x5acc8a[_0x4a8be6(0xb2)]));for(const _0x3054c1 of[..._0x3dbcda['flags'],..._0x4705ae]){addFlagCandidates(_0x272ca4,_0x3054c1);}for(const [_0x3393fc,_0x543b58]of Object[_0x4a8be6(0xa9)](_0x591a26)){if(!isExplicitValue(_0x543b58)||_0x272ca4[_0x4a8be6(0xad)](_0x3393fc))continue;const _0x5db949=GLOBAL_FLAGS[_0x4a8be6(0xa5)](_0x4dfb6b=>_0x4dfb6b[_0x4a8be6(0xb9)]===_0x3393fc)?.['name']??toKebabCase(_0x3393fc);throw CliErrors[_0x4a8be6(0xb1)]('Unsupported\x20flag\x20--'+_0x5db949+'\x20for\x20`'+CLI_BIN_NAME+'\x20'+_0x3dbcda[_0x4a8be6(0xb5)]+'\x20'+_0x3dbcda['command']+'`.',_0x4a8be6(0xac)+CLI_BIN_NAME+'\x20'+_0x3dbcda[_0x4a8be6(0xb5)]+'\x20'+_0x3dbcda['command']+'\x20--help`\x20to\x20view\x20the\x20current\x20command\x20contract.');}}function addFlagCandidates(_0x3e9361,_0x3f456f){const _0x34deae=a328_0x3e5d,_0x32990b=_0x34deae(0xb9)in _0x3f456f?[_0x3f456f['name'],_0x3f456f[_0x34deae(0xb9)]]:[_0x3f456f[_0x34deae(0xb2)],_0x3f456f['alias']];for(const _0x329bea of _0x32990b){if(!_0x329bea)continue;_0x3e9361[_0x34deae(0xa7)](_0x329bea),_0x3e9361['add'](toCamelCase(_0x329bea));}}function a328_0x4097(){const _0x17fdd9=['find','help','add','4168381wpYNSd','entries','53478rRcTZl','393ljJwGN','Run\x20`','has','strictFlags','678uaBsud','20943810epEDRD','validation','name','length','replace','service','toUpperCase','384kaLSBn','25555gQoHVX','meowKey','16572bnDDgA','626587CDJpyb','isArray','11mAFQGl','374356AIPqDt'];a328_0x4097=function(){return _0x17fdd9;};return a328_0x4097();}function isExplicitValue(_0x591ccc){const _0x54320c=a328_0x3e5d;return _0x591ccc!==undefined&&_0x591ccc!==null&&_0x591ccc!==![]&&(!Array[_0x54320c(0xa2)](_0x591ccc)||_0x591ccc[_0x54320c(0xb3)]>0x0);}function a328_0x3e5d(_0x18bbb2,_0x3d9181){_0x18bbb2=_0x18bbb2-0xa0;const _0x4097e8=a328_0x4097();let _0x3e5de9=_0x4097e8[_0x18bbb2];return _0x3e5de9;}function toCamelCase(_0x15988f){const _0x5c5144=a328_0x3e5d;return _0x15988f[_0x5c5144(0xb4)](/-([a-z])/g,(_0x10e564,_0x1a7563)=>_0x1a7563[_0x5c5144(0xb6)]());}function toKebabCase(_0x12a778){const _0x5f08bf=a328_0x3e5d;return _0x12a778[_0x5f08bf(0xb4)](/([a-z0-9])([A-Z])/g,'$1-$2')['toLowerCase']();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a329_0x5cd2(){var _0x404a85=['38596kKlUmh','237CATSHO','2qiAbqS','5072706BUYZTw','30653810jOaieH','1125380gPklRS','763464sEIoua','639490WxfBIK','6171968nXYWoW','7hVdGpg'];a329_0x5cd2=function(){return _0x404a85;};return a329_0x5cd2();}(function(_0x232f82,_0x42ec21){var _0x3a0ce0=a329_0x30c5,_0x1eaa8c=_0x232f82();while(!![]){try{var _0x26e5ce=parseInt(_0x3a0ce0(0x1ba))/0x1*(-parseInt(_0x3a0ce0(0x1bf))/0x2)+-parseInt(_0x3a0ce0(0x1be))/0x3*(parseInt(_0x3a0ce0(0x1bd))/0x4)+parseInt(_0x3a0ce0(0x1b8))/0x5+-parseInt(_0x3a0ce0(0x1b9))/0x6*(parseInt(_0x3a0ce0(0x1bc))/0x7)+-parseInt(_0x3a0ce0(0x1bb))/0x8+-parseInt(_0x3a0ce0(0x1c0))/0x9+parseInt(_0x3a0ce0(0x1b7))/0xa;if(_0x26e5ce===_0x42ec21)break;else _0x1eaa8c['push'](_0x1eaa8c['shift']());}catch(_0x140f9c){_0x1eaa8c['push'](_0x1eaa8c['shift']());}}}(a329_0x5cd2,0x68152));function a329_0x30c5(_0x1b164f,_0x2106ee){_0x1b164f=_0x1b164f-0x1b7;var _0x5cd2ca=a329_0x5cd2();var _0x30c5c0=_0x5cd2ca[_0x1b164f];return _0x30c5c0;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.5.8-beta.
|
|
2
|
-
export declare const GIT_TAG = "v2.5.8-beta.
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-10-
|
|
1
|
+
export declare const VERSION = "2.5.8-beta.2";
|
|
2
|
+
export declare const GIT_TAG = "v2.5.8-beta.2";
|
|
3
|
+
export declare const GIT_COMMIT = "23c42b52";
|
|
4
|
+
export declare const BUILD_TIME = "2026-10-22T09:34:31.891Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a330_0x409e(_0x3808a2,_0x4953aa){_0x3808a2=_0x3808a2-0xa3;const _0x11e44b=a330_0x11e4();let _0x409e50=_0x11e44b[_0x3808a2];return _0x409e50;}const a330_0x5ed7cc=a330_0x409e;(function(_0x21165f,_0x17550e){const _0x5b27b8=a330_0x409e,_0x25d976=_0x21165f();while(!![]){try{const _0x77afc7=parseInt(_0x5b27b8(0xa7))/0x1+-parseInt(_0x5b27b8(0xaa))/0x2+parseInt(_0x5b27b8(0xac))/0x3+-parseInt(_0x5b27b8(0xa5))/0x4*(parseInt(_0x5b27b8(0xa4))/0x5)+parseInt(_0x5b27b8(0xa6))/0x6*(parseInt(_0x5b27b8(0xa9))/0x7)+-parseInt(_0x5b27b8(0xa3))/0x8*(parseInt(_0x5b27b8(0xab))/0x9)+parseInt(_0x5b27b8(0xad))/0xa;if(_0x77afc7===_0x17550e)break;else _0x25d976['push'](_0x25d976['shift']());}catch(_0x40b115){_0x25d976['push'](_0x25d976['shift']());}}}(a330_0x11e4,0xd0871));export const VERSION=a330_0x5ed7cc(0xae);export const GIT_TAG=a330_0x5ed7cc(0xa8);export const GIT_COMMIT='23c42b52';export const BUILD_TIME='2026-10-22T09:34:31.891Z';function a330_0x11e4(){const _0xc305=['24CDXeAs','15nlVaUw','1022776pTqaiV','46434kMDsyP','441835naCQrg','v2.5.8-beta.2','161uTqIGR','270478kWRJvI','3811806BrJBMa','5010672qoTjsf','7369960kMpKUE','2.5.8-beta.2'];a330_0x11e4=function(){return _0xc305;};return a330_0x11e4();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a331_0x2ea4e7=a331_0x58e6;(function(_0x522590,_0x1a2f40){const _0x420f98=a331_0x58e6,_0x3671a1=_0x522590();while(!![]){try{const _0x47ff3a=-parseInt(_0x420f98(0xf9))/0x1*(parseInt(_0x420f98(0xfe))/0x2)+-parseInt(_0x420f98(0xf5))/0x3+-parseInt(_0x420f98(0x115))/0x4*(parseInt(_0x420f98(0x10c))/0x5)+-parseInt(_0x420f98(0x109))/0x6*(-parseInt(_0x420f98(0x111))/0x7)+-parseInt(_0x420f98(0x118))/0x8*(-parseInt(_0x420f98(0x11a))/0x9)+parseInt(_0x420f98(0x104))/0xa+parseInt(_0x420f98(0x100))/0xb*(parseInt(_0x420f98(0x116))/0xc);if(_0x47ff3a===_0x1a2f40)break;else _0x3671a1['push'](_0x3671a1['shift']());}catch(_0x4f1034){_0x3671a1['push'](_0x3671a1['shift']());}}}(a331_0x2e25,0x9c0c5));function a331_0x2e25(){const _0x509342=['indonesia','Mainland\x20China','https://skills.lovrabet.id','https://daily-api.lovrabet.com','53202tSvSZh','https://dev.lovrabet.id','https://g.alicdn.com/code/lib','155qhLqxn','https://dev.lovrabet.com','https://user-daily.lovrabet.ai','https://user.lovrabet.com','https://cdnjs.cloudflare.com/ajax/libs','266izzgkf','Global','china','https://g.lovrabet.ai','3300zcjGgB','12DErgCM','https://daily-runtime.lovrabet.com','8cNSCNr','https://daily.lovrabet.com','4053303uRvKxH','https://dev.lovrabet.ai','https://api.lovrabet.id','https://g.lovrabet.id','https://kb-service-daily.lovrabet.com','https://runtime.lovrabet.com','https://skills.lovrabet.ai','https://app.lovrabet.ai','https://app.lovrabet.com','597213ELYotr','https://user-daily.lovrabet.com','https://daily-runtime.lovrabet.ai','https://kb-service.lovrabet.id','1093823RZKseK','https://user.lovrabet.id','global','https://daily.lovrabet.ai','https://runtime.lovrabet.ai','2bvEckz','57d346b80b12ca567af9d86dd7f8c02a0c27fe15d4944c8345add2cc6134c587','8011498EEFCpD','https://api.lovrabet.com','https://daily-api.lovrabet.ai','https://app.lovrabet.id','4420110oAalMC'];a331_0x2e25=function(){return _0x509342;};return a331_0x2e25();}export const ROUTING_CATALOG_DIGEST=a331_0x2ea4e7(0xff);export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id',a331_0x2ea4e7(0xfb)];export const ENABLED_REGION_VALUES=['cn','id',a331_0x2ea4e7(0xfb)];function a331_0x58e6(_0x2bc048,_0x3c6bba){_0x2bc048=_0x2bc048-0xf0;const _0x2e254e=a331_0x2e25();let _0x58e677=_0x2e254e[_0x2bc048];return _0x58e677;}export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a331_0x2ea4e7(0x106),'aliases':[a331_0x2ea4e7(0x113)],'serviceDomains':{'production':{'user':a331_0x2ea4e7(0x10f),'api':'https://api.lovrabet.com','runtime':a331_0x2ea4e7(0xf1),'skill':'https://skills.lovrabet.com','kb':a331_0x2ea4e7(0x101),'kbService':'https://kb-service.lovrabet.com','app':a331_0x2ea4e7(0xf4)},'daily':{'user':a331_0x2ea4e7(0xf6),'api':'https://daily-api.lovrabet.com','runtime':a331_0x2ea4e7(0x117),'skill':'https://skills-daily.lovrabet.com','kb':a331_0x2ea4e7(0x108),'kbService':a331_0x2ea4e7(0xf0),'app':a331_0x2ea4e7(0x119)}},'cdn':{'libraries':a331_0x2ea4e7(0x10b),'lovrabet':'https://g.lovrabet.com'},'local':{'origin':a331_0x2ea4e7(0x10d)}},'id':{'enabled':!![],'label':'Indonesia','aliases':[a331_0x2ea4e7(0x105)],'serviceDomains':{'production':{'user':a331_0x2ea4e7(0xfa),'api':a331_0x2ea4e7(0x11c),'runtime':'https://runtime.lovrabet.id','skill':a331_0x2ea4e7(0x107),'kb':a331_0x2ea4e7(0x11c),'kbService':a331_0x2ea4e7(0xf8),'app':a331_0x2ea4e7(0x103)}},'cdn':{'libraries':a331_0x2ea4e7(0x110),'lovrabet':a331_0x2ea4e7(0x11d)},'local':{'origin':a331_0x2ea4e7(0x10a)}},'global':{'enabled':!![],'label':a331_0x2ea4e7(0x112),'aliases':[],'serviceDomains':{'production':{'user':'https://user.lovrabet.ai','api':'https://api.lovrabet.ai','runtime':a331_0x2ea4e7(0xfd),'skill':a331_0x2ea4e7(0xf2),'kb':'https://api.lovrabet.ai','app':a331_0x2ea4e7(0xf3)},'daily':{'user':a331_0x2ea4e7(0x10e),'api':a331_0x2ea4e7(0x102),'runtime':a331_0x2ea4e7(0xf7),'skill':'https://skills-daily.lovrabet.ai','kb':'https://daily-api.lovrabet.ai','app':a331_0x2ea4e7(0xfc)}},'cdn':{'libraries':a331_0x2ea4e7(0x110),'lovrabet':a331_0x2ea4e7(0x114)},'local':{'origin':a331_0x2ea4e7(0x11b)}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a332_0xc6f489=a332_0x3b8f;(function(_0x3b611a,_0x1aa57b){const _0x2ef920=a332_0x3b8f,_0x3cbd28=_0x3b611a();while(!![]){try{const _0x3b207d=-parseInt(_0x2ef920(0xef))/0x1+parseInt(_0x2ef920(0xf7))/0x2*(-parseInt(_0x2ef920(0xeb))/0x3)+-parseInt(_0x2ef920(0xfc))/0x4+-parseInt(_0x2ef920(0xf3))/0x5*(-parseInt(_0x2ef920(0xf6))/0x6)+-parseInt(_0x2ef920(0xfe))/0x7+parseInt(_0x2ef920(0xf2))/0x8*(-parseInt(_0x2ef920(0xf0))/0x9)+parseInt(_0x2ef920(0xf5))/0xa;if(_0x3b207d===_0x1aa57b)break;else _0x3cbd28['push'](_0x3cbd28['shift']());}catch(_0x3f7a46){_0x3cbd28['push'](_0x3cbd28['shift']());}}}(a332_0x5852,0x8422b));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST='a03fe188b2b34518efc5668666c0001d20354882cd7dd70afec902dffe1329c3';export const ENTERPRISE_ROUTING_PROTOCOL='lovrabet-routing/v1';function a332_0x3b8f(_0x4be999,_0x5c6f4b){_0x4be999=_0x4be999-0xeb;const _0x585240=a332_0x5852();let _0x3b8feb=_0x585240[_0x4be999];return _0x3b8feb;}function a332_0x5852(){const _0x22e707=['4973435FvzQMH','runtimeDomain','16299160PnpXtH','6vVXhCl','25006rDgsbo','localDomain','certificateDomain','appDomain','enterprise','583008hgHMDx','kbDomain','329959TfHjWL','userDomain','177hPYYGQ','lovrabet','apiDomain','skillDomain','149226HhEauj','288oAnoIk','libraries','250896vQoeIR'];a332_0x5852=function(){return _0x22e707;};return a332_0x5852();}export const ENTERPRISE_ROUTING_KIND=a332_0xc6f489(0xfb);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a332_0xc6f489(0xff),a332_0xc6f489(0xed),a332_0xc6f489(0xf4),'skillDomain',a332_0xc6f489(0xfd),'kbServiceDomain',a332_0xc6f489(0xfa),a332_0xc6f489(0xf8),a332_0xc6f489(0xf9)];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=['userDomain',a332_0xc6f489(0xed),a332_0xc6f489(0xf4),a332_0xc6f489(0xee),a332_0xc6f489(0xfd),a332_0xc6f489(0xfa)];export const ENTERPRISE_ROUTING_CDN_FIELDS=['libraries','lovrabet'];export const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS=[a332_0xc6f489(0xf1),a332_0xc6f489(0xec)];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x6f542b,_0x26559f){var _0x506b5a=a333_0x23e7,_0x4500b5=_0x6f542b();while(!![]){try{var _0x172aee=-parseInt(_0x506b5a(0xe9))/0x1+-parseInt(_0x506b5a(0xed))/0x2*(-parseInt(_0x506b5a(0xe2))/0x3)+parseInt(_0x506b5a(0xe6))/0x4+-parseInt(_0x506b5a(0xee))/0x5+-parseInt(_0x506b5a(0xe4))/0x6*(-parseInt(_0x506b5a(0xec))/0x7)+-parseInt(_0x506b5a(0xe5))/0x8*(-parseInt(_0x506b5a(0xef))/0x9)+-parseInt(_0x506b5a(0xea))/0xa;if(_0x172aee===_0x26559f)break;else _0x4500b5['push'](_0x4500b5['shift']());}catch(_0x61e38c){_0x4500b5['push'](_0x4500b5['shift']());}}}(a333_0x3382,0xba7f5));function a333_0x23e7(_0x5f4b90,_0x2dea3c){_0x5f4b90=_0x5f4b90-0xe2;var _0x3382dd=a333_0x3382();var _0x23e766=_0x3382dd[_0x5f4b90];return _0x23e766;}import a333_0x7a2c84 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x3b3712=a333_0x23e7;console['log'](),console[_0x3b3712(0xe3)](a333_0x7a2c84['green'][_0x3b3712(0xf0)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x3b3712(0xe3)](),console[_0x3b3712(0xe3)](_0x3b3712(0xe7)+a333_0x7a2c84[_0x3b3712(0xeb)][_0x3b3712(0xf0)](CLI_BIN_NAME+_0x3b3712(0xf1))+_0x3b3712(0xe8)),console[_0x3b3712(0xe3)]();}function a333_0x3382(){var _0x21c34f=['484666VocmcS','4862110mMQFrV','639UlvGAg','bold','\x20--help','12QwhuUx','log','6xdUetk','83992PngSby','4418764xrYslu','\x20\x20Use\x20','\x20to\x20view\x20available\x20commands.','595366qwBQlq','8687180oUXaFh','green','2666629pVaWMX'];a333_0x3382=function(){return _0x21c34f;};return a333_0x3382();}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a334_0x34ee(){const _0x5577dc=['changed','\x20via\x20skills@latest','installed','270089MBtBwW','installedPath','1126448xDBmZV','1572TnQHqf','\x20at\x20','Rabetbase\x20Built-in\x20Skill\x20','SOURCE_INVALID','[BUILTIN_SKILL_INSTALL_','9WNLCoe','5332600JTSDXq','2590eKyBLX','code','352788pEXhEC','793784UExZVN','skillVersion','FAILED','3qXzLuF','2104592NHpnqk'];a334_0x34ee=function(){return _0x5577dc;};return a334_0x34ee();}(function(_0x4d9bd9,_0x3442b2){const _0x41fb37=a334_0x22c5,_0x503467=_0x4d9bd9();while(!![]){try{const _0x549b8c=parseInt(_0x41fb37(0x19e))/0x1+-parseInt(_0x41fb37(0x1aa))/0x2*(-parseInt(_0x41fb37(0x1ae))/0x3)+parseInt(_0x41fb37(0x1a0))/0x4+-parseInt(_0x41fb37(0x1a8))/0x5*(parseInt(_0x41fb37(0x1a1))/0x6)+parseInt(_0x41fb37(0x1af))/0x7+-parseInt(_0x41fb37(0x1ab))/0x8*(parseInt(_0x41fb37(0x1a6))/0x9)+-parseInt(_0x41fb37(0x1a7))/0xa;if(_0x549b8c===_0x3442b2)break;else _0x503467['push'](_0x503467['shift']());}catch(_0x4e0d50){_0x503467['push'](_0x503467['shift']());}}}(a334_0x34ee,0x3f9c8));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a334_0x22c5(_0x7202b0,_0x3ca0c8){_0x7202b0=_0x7202b0-0x19d;const _0x34ee7e=a334_0x34ee();let _0x22c5cb=_0x34ee7e[_0x7202b0];return _0x22c5cb;}export async function runPostinstall(_0x506526={}){const _0x2a62d4=a334_0x22c5,_0x464585=installBuiltinSkill(_0x506526);if(_0x464585['ok']){const _0x693ea8=_0x464585[_0x2a62d4(0x1b0)]?_0x2a62d4(0x19d):'already\x20current',_0x4e6a63=_0x464585[_0x2a62d4(0x19f)]?_0x2a62d4(0x1a2)+_0x464585['installedPath']:_0x2a62d4(0x1b1);return console['log'](_0x2a62d4(0x1a3)+_0x464585[_0x2a62d4(0x1ac)]+'\x20'+_0x693ea8+_0x4e6a63),_0x464585;}const _0x558ede=_0x2a62d4(0x1a5)+(_0x464585[_0x2a62d4(0x1a9)]??_0x2a62d4(0x1ad))+']\x20'+(_0x464585['error']??'Installation\x20failed')+'.\x20'+('Repair\x20with:\x20'+_0x464585['repairCommand']);if(_0x464585[_0x2a62d4(0x1a9)]===_0x2a62d4(0x1a4))throw new Error(_0x558ede);return console['warn'](_0x558ede),_0x464585;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5b41ec,_0x21eb26){const _0x419dd6=a335_0x3b4b,_0x300728=_0x5b41ec();while(!![]){try{const _0x2a42b4=-parseInt(_0x419dd6(0xaa))/0x1*(parseInt(_0x419dd6(0x97))/0x2)+parseInt(_0x419dd6(0x98))/0x3*(parseInt(_0x419dd6(0x9c))/0x4)+parseInt(_0x419dd6(0x9b))/0x5+parseInt(_0x419dd6(0xa8))/0x6*(parseInt(_0x419dd6(0x99))/0x7)+parseInt(_0x419dd6(0x96))/0x8*(parseInt(_0x419dd6(0xa9))/0x9)+-parseInt(_0x419dd6(0xa6))/0xa*(parseInt(_0x419dd6(0x9a))/0xb)+-parseInt(_0x419dd6(0xa3))/0xc;if(_0x2a42b4===_0x21eb26)break;else _0x300728['push'](_0x300728['shift']());}catch(_0x59cd6){_0x300728['push'](_0x300728['shift']());}}}(a335_0x4530,0x31c38));function a335_0x4530(){const _0x32f716=['183633enkPtZ','This\x20will\x20run\x20the\x20high-risk\x20write\x20','156312BzcyTQ','2NprrVK','3EdAHMT','87227gcqrTA','44qrgogK','936095SERWfh','242068dASOFY','replace','write','string','.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.','high-risk-write','.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.','3705288ksjQSS','This\x20will\x20run\x20the\x20write\x20','slice','47590zRuOEN','risk','84ivTYqb','135ofkfQt'];a335_0x4530=function(){return _0x32f716;};return a335_0x4530();}const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x423b26,_0x4fc302,_0x22065f){const _0x32fd98=normalizeText(_0x423b26['confirmationDescription'],DESCRIPTION_MAX_LENGTH),_0x1893a3=_0x32fd98||normalizeText(defaultDescription(requireWriteRisk(_0x423b26),_0x4fc302),DESCRIPTION_MAX_LENGTH);return{'operation':_0x4fc302,'risk':requireWriteRisk(_0x423b26),'description':_0x1893a3,..._0x22065f?{'signal':_0x22065f}:{}};}function a335_0x3b4b(_0x4fd09d,_0x3eec74){_0x4fd09d=_0x4fd09d-0x95;const _0x4530b2=a335_0x4530();let _0x3b4bc8=_0x4530b2[_0x4fd09d];return _0x3b4bc8;}function requireWriteRisk(_0x434fbf){const _0xb0f18b=a335_0x3b4b;if(_0x434fbf[_0xb0f18b(0xa7)]===_0xb0f18b(0x9e)||_0x434fbf[_0xb0f18b(0xa7)]===_0xb0f18b(0xa1))return _0x434fbf[_0xb0f18b(0xa7)];throw new Error('Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.');}function defaultDescription(_0x382a0e,_0x32dca4){const _0x5bc56e=a335_0x3b4b;if(_0x382a0e===_0x5bc56e(0xa1))return _0x5bc56e(0x95)+_0x32dca4+_0x5bc56e(0xa2);return _0x5bc56e(0xa4)+_0x32dca4+_0x5bc56e(0xa0);}function normalizeText(_0x45dda9,_0x3e6b3d){const _0x5bea73=a335_0x3b4b;if(typeof _0x45dda9!==_0x5bea73(0x9f))return'';return _0x45dda9[_0x5bea73(0x9d)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x5bea73(0x9d)](/\s+/g,'\x20')['trim']()[_0x5bea73(0xa5)](0x0,_0x3e6b3d);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a336_0x23e7(_0x43750e,_0x27a24b){_0x43750e=_0x43750e-0xe4;const _0x3829b0=a336_0x3829();let _0x23e767=_0x3829b0[_0x43750e];return _0x23e767;}(function(_0x492947,_0x5ba49a){const _0xb47f1d=a336_0x23e7,_0x4f0748=_0x492947();while(!![]){try{const _0x3bfb8e=parseInt(_0xb47f1d(0xfb))/0x1*(parseInt(_0xb47f1d(0xec))/0x2)+parseInt(_0xb47f1d(0xe8))/0x3+parseInt(_0xb47f1d(0xe6))/0x4+-parseInt(_0xb47f1d(0xf7))/0x5*(parseInt(_0xb47f1d(0xee))/0x6)+parseInt(_0xb47f1d(0xf1))/0x7*(parseInt(_0xb47f1d(0xe4))/0x8)+-parseInt(_0xb47f1d(0xeb))/0x9*(parseInt(_0xb47f1d(0xf2))/0xa)+-parseInt(_0xb47f1d(0xf3))/0xb;if(_0x3bfb8e===_0x5ba49a)break;else _0x4f0748['push'](_0x4f0748['shift']());}catch(_0x1c40a8){_0x4f0748['push'](_0x4f0748['shift']());}}}(a336_0x3829,0x9f9aa));export function canonicalRabetbaseOperation(_0x1aedb7){const _0x590a14=a336_0x23e7;return[_0x1aedb7[_0x590a14(0xef)],..._0x1aedb7[_0x590a14(0xf6)]['trim']()[_0x590a14(0xf4)](/\s+/)][_0x590a14(0xe5)](Boolean)[_0x590a14(0xfa)]('.');}export function createRabetbaseWriteMetadata(_0x38ee49,_0x5f1c63,_0x5eb8c4,_0x367ccd){const _0x4d8ffc=a336_0x23e7;if(_0x367ccd||_0x5eb8c4['ok']!==!![]||hasUnresolvedConflicts(_0x5eb8c4)||_0x38ee49[_0x4d8ffc(0xe9)]!==_0x4d8ffc(0xf0)&&_0x38ee49['risk']!==_0x4d8ffc(0xf9))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x4d8ffc(0xfc),'operation':_0x5f1c63,'risk':_0x38ee49[_0x4d8ffc(0xe9)]}}};}function a336_0x3829(){const _0x1f5ff6=['object','high-risk-write','join','16843UMJfyb','rabetbase.write.completed','8073808apJMRl','filter','2835624USOYfJ','conflicts','2557698CdhQDD','risk','isArray','27INtMxB','136lvplbx','length','133158SosfGM','service','write','7fhWCWg','447470qaUHOZ','20490569TdhfjM','split','data','command','240yckbto'];a336_0x3829=function(){return _0x1f5ff6;};return a336_0x3829();}function hasUnresolvedConflicts(_0x14edb8){const _0x1a8b48=a336_0x23e7,_0x6838e4=_0x14edb8[_0x1a8b48(0xf5)];return Boolean(_0x6838e4&&typeof _0x6838e4===_0x1a8b48(0xf8)&&!Array[_0x1a8b48(0xea)](_0x6838e4)&&Array[_0x1a8b48(0xea)](_0x6838e4['conflicts'])&&_0x6838e4[_0x1a8b48(0xe7)][_0x1a8b48(0xed)]>0x0);}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x14f2e7,_0x2b4d41){const _0x3e11a7=a337_0x40c0,_0xc4516c=_0x14f2e7();while(!![]){try{const _0x11f2ad=-parseInt(_0x3e11a7(0xa1))/0x1+parseInt(_0x3e11a7(0x8f))/0x2+parseInt(_0x3e11a7(0xa3))/0x3*(parseInt(_0x3e11a7(0x9a))/0x4)+parseInt(_0x3e11a7(0xa2))/0x5*(parseInt(_0x3e11a7(0x90))/0x6)+-parseInt(_0x3e11a7(0xa0))/0x7+-parseInt(_0x3e11a7(0x99))/0x8*(parseInt(_0x3e11a7(0x9d))/0x9)+-parseInt(_0x3e11a7(0x9e))/0xa;if(_0x11f2ad===_0x2b4d41)break;else _0xc4516c['push'](_0xc4516c['shift']());}catch(_0x44b6f8){_0xc4516c['push'](_0xc4516c['shift']());}}}(a337_0x507c,0xa96ec));function a337_0x507c(){const _0x4ed93a=['dry-run','dryRun','present','rawFlags','1023050tFQZSs','6xuBDaD','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','format','signal','definition','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','data','result','stringify','4319248EnXWuE','24XVSsOx','Rabetbase\x20invocation\x20aborted.','command','9RvofUe','3806200HYwIwk','high-risk-write','618611xdfZHc','400746XzqiDv','1936490CJXXWv','602409YhkNrb','message','execute','write','reason','risk','isNonInteractive','riskLevel','confirmation'];a337_0x507c=function(){return _0x4ed93a;};return a337_0x507c();}import{buildConfigFromFlags,initGlobalEnvironment,isRoutingRecoveryService}from'../context.js';import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';function a337_0x40c0(_0x326f23,_0x30c1cf){_0x326f23=_0x326f23-0x85;const _0x507c50=a337_0x507c();let _0x40c0da=_0x507c50[_0x326f23];return _0x40c0da;}import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x36c440,command:_0x36ac52,risk:_0x1b5f29,dryRun:_0x3caa55}){const _0x3ed4b2=a337_0x40c0;return JSON[_0x3ed4b2(0x98)]({'ok':_0x36c440['ok'],'command':_0x36ac52,'risk':_0x1b5f29,..._0x3caa55?{'dryRun':!![]}:{},..._0x36c440[_0x3ed4b2(0x96)]!==undefined?{'data':_0x36c440['data']}:{},..._0x36c440[_0x3ed4b2(0xa4)]?{'message':_0x36c440[_0x3ed4b2(0xa4)]}:{}});}};export async function invokeRabetbase(_0x170986,_0x3ff08f){const _0x3fff68=a337_0x40c0;throwIfAborted(_0x3ff08f[_0x3fff68(0x93)]);const _0xdbbc4b=await resolveRabetbaseInvocation(_0x170986),_0x227a7d=canonicalRabetbaseOperation(_0xdbbc4b[_0x3fff68(0x94)]);return await confirmWriteBeforeQueue(_0xdbbc4b[_0x3fff68(0x94)],_0xdbbc4b['rawFlags'],_0x227a7d,_0x3ff08f),runSerialized(async()=>{const _0x38f276=_0x3fff68,_0x5650de={};try{throwIfAborted(_0x3ff08f[_0x38f276(0x93)]);const _0x3e4aa0=buildConfigFromFlags(_0xdbbc4b[_0x38f276(0x8e)]);!isRoutingRecoveryService(_0xdbbc4b[_0x38f276(0x94)]['service'])&&await initGlobalEnvironment(_0x3e4aa0);const _0x59a27b=createPipelineEnv(_0x3e4aa0,{..._0xdbbc4b['rawFlags'],'yes':_0xdbbc4b['definition'][_0x38f276(0x87)]===_0x38f276(0x9f)?!![]:_0xdbbc4b[_0x38f276(0x8e)]['yes'],'nonInteractive':!![]},_0xdbbc4b['args']);_0x59a27b[_0x38f276(0x88)]=!![],_0x59a27b[_0x38f276(0x89)]=_0x38f276(0x9f);const _0x2f0a13=withAbortSignal(_0xdbbc4b[_0x38f276(0x94)],_0x3ff08f['signal']),_0x2f0559=createRabetbaseRunnerAdapter({'formatOutput'(_0x15644c,_0x1c46bb){const _0x416fc1=_0x38f276;_0x5650de[_0x416fc1(0x97)]=_0x15644c,_0x5650de[_0x416fc1(0x9c)]=_0x1c46bb[_0x416fc1(0x9c)],_0x5650de[_0x416fc1(0x87)]=_0x1c46bb[_0x416fc1(0x87)],_0x5650de[_0x416fc1(0x92)]=_0x1c46bb[_0x416fc1(0x92)],_0x5650de[_0x416fc1(0x8c)]=_0x1c46bb[_0x416fc1(0x8c)]===!![];},async 'confirmHighRisk'(){const _0xc7c155=_0x38f276;throw new Error(_0xc7c155(0x95));}});await runCommand(_0x2f0a13,_0x59a27b,_0x2f0559);if(!_0x5650de['result']||!_0x5650de[_0x38f276(0x9c)]||!_0x5650de[_0x38f276(0x87)]||!_0x5650de[_0x38f276(0x92)])throw new Error(_0x38f276(0x91));const _0x34732c=_0x5650de['dryRun']===!![],_0x3861b2=_0x3ff08f['presentation']??defaultPresentation,_0x581268={'result':_0x5650de[_0x38f276(0x97)],'command':_0x5650de[_0x38f276(0x9c)],'operation':_0x227a7d,'risk':_0x5650de['risk'],'format':_0x5650de[_0x38f276(0x92)],'dryRun':_0x34732c},_0x34e6b1=createRabetbaseWriteMetadata(_0xdbbc4b['definition'],_0x227a7d,_0x5650de[_0x38f276(0x97)],_0x34732c);let _0x573e37;try{_0x573e37=await _0x3861b2[_0x38f276(0x8d)](_0x581268);}catch(_0x52ee68){if(!_0x34e6b1||_0x3861b2===defaultPresentation)throw _0x52ee68;_0x573e37=await defaultPresentation['present'](_0x581268);}return{'operation':_0x227a7d,'risk':_0x5650de[_0x38f276(0x87)],'mode':_0x34732c?_0x38f276(0x8b):_0x38f276(0xa5),'result':_0x5650de[_0x38f276(0x97)],'output':_0x573e37,..._0x34e6b1?{'metadata':_0x34e6b1}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x1b09d3,_0x164872,_0x5ea990,_0x4c4591){const _0x5f1b3c=a337_0x40c0;if(_0x164872['dryRun']===!![]||_0x1b09d3[_0x5f1b3c(0x87)]!==_0x5f1b3c(0x85)&&_0x1b09d3[_0x5f1b3c(0x87)]!=='high-risk-write')return;await _0x4c4591[_0x5f1b3c(0x8a)]['confirm'](buildRabetbaseConfirmationRequest(_0x1b09d3,_0x5ea990,_0x4c4591[_0x5f1b3c(0x93)]));}function withAbortSignal(_0x8cca0e,_0x571be0){return{..._0x8cca0e,async 'execute'(_0x437851){return throwIfAborted(_0x571be0),_0x8cca0e['execute']({..._0x437851,'signal':_0x571be0});}};}function throwIfAborted(_0x5cbef3){const _0x19026b=a337_0x40c0;if(_0x5cbef3?.['aborted'])throw _0x5cbef3['reason']instanceof Error?_0x5cbef3[_0x19026b(0x86)]:new DOMException(_0x19026b(0x9b),'AbortError');}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a338_0x1c5d(_0x4c1f0d,_0x2cfdbf){_0x4c1f0d=_0x4c1f0d-0x1a5;const _0x470257=a338_0x4702();let _0x1c5da0=_0x470257[_0x4c1f0d];return _0x1c5da0;}const a338_0x3c3e9d=a338_0x1c5d;(function(_0x368ae2,_0x59648e){const _0x14fb3d=a338_0x1c5d,_0x54939d=_0x368ae2();while(!![]){try{const _0x341918=parseInt(_0x14fb3d(0x1a6))/0x1*(parseInt(_0x14fb3d(0x1b1))/0x2)+parseInt(_0x14fb3d(0x1a7))/0x3+-parseInt(_0x14fb3d(0x1a5))/0x4+-parseInt(_0x14fb3d(0x1ab))/0x5+parseInt(_0x14fb3d(0x1aa))/0x6*(-parseInt(_0x14fb3d(0x1b0))/0x7)+parseInt(_0x14fb3d(0x1a9))/0x8*(parseInt(_0x14fb3d(0x1a8))/0x9)+-parseInt(_0x14fb3d(0x1af))/0xa*(-parseInt(_0x14fb3d(0x1ad))/0xb);if(_0x341918===_0x59648e)break;else _0x54939d['push'](_0x54939d['shift']());}catch(_0x2f1a73){_0x54939d['push'](_0x54939d['shift']());}}}(a338_0x4702,0x4ec03));let tail=Promise[a338_0x3c3e9d(0x1ae)]();export async function runSerialized(_0x24243a){const _0x3bc7cf=a338_0x3c3e9d,_0x3a068d=tail;let _0x4adff5;tail=new Promise(_0x51aa7d=>{_0x4adff5=_0x51aa7d;}),await _0x3a068d[_0x3bc7cf(0x1ac)](()=>undefined);try{return await _0x24243a();}finally{_0x4adff5();}}function a338_0x4702(){const _0x2f1bce=['1189375mQuCmd','resolve','70yIScFZ','434EtugLF','16746LxRStt','2206412IVzouS','47JheqDE','417066fyjgnC','1062wCzOrm','17936jSDdDe','59928nXpaLO','302810SoRKli','catch'];a338_0x4702=function(){return _0x2f1bce;};return a338_0x4702();}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x58394d,_0x58ef6){const _0x20bdf7=a339_0x2349,_0x4a469b=_0x58394d();while(!![]){try{const _0xdbfd1d=parseInt(_0x20bdf7(0x1eb))/0x1*(parseInt(_0x20bdf7(0x1fc))/0x2)+-parseInt(_0x20bdf7(0x1fb))/0x3*(parseInt(_0x20bdf7(0x1f1))/0x4)+-parseInt(_0x20bdf7(0x1ec))/0x5+parseInt(_0x20bdf7(0x1e8))/0x6+-parseInt(_0x20bdf7(0x1fe))/0x7*(parseInt(_0x20bdf7(0x1fa))/0x8)+parseInt(_0x20bdf7(0x1f7))/0x9*(parseInt(_0x20bdf7(0x1fd))/0xa)+-parseInt(_0x20bdf7(0x1f6))/0xb*(-parseInt(_0x20bdf7(0x1f0))/0xc);if(_0xdbfd1d===_0x58ef6)break;else _0x4a469b['push'](_0x4a469b['shift']());}catch(_0x4511d5){_0x4a469b['push'](_0x4a469b['shift']());}}}(a339_0x4571,0x500f0));import a339_0x419608 from'meow';function a339_0x4571(){const _0xa3ad53=['2881396QVfghr','22086OhOpjl','slice','validation','304431jxsaBL','3089050srXlvt','wildcardDef','run','defaultCommand','8574480RMusTT','20nEWUBc','unknownCommand','hint','message','join','11rqMMGP','11466dkRmLx','flags','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','8RQZDOD','329637DOatFs','4faWcFl','4550rsXnHn'];a339_0x4571=function(){return _0xa3ad53;};return a339_0x4571();}import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{buildMeowFlags}from'../constant/cli.js';function a339_0x2349(_0x5a2897,_0x2ba72a){_0x5a2897=_0x5a2897-0x1e8;const _0x457104=a339_0x4571();let _0x2349e2=_0x457104[_0x5a2897];return _0x2349e2;}import{CliErrors}from'../errors.js';import{assertSupportedCommandFlags}from'../framework/supported-flags.js';export async function resolveRabetbaseInvocation(_0x21118d){const _0x4c25e1=a339_0x2349,_0xddd13a=a339_0x419608('',{'importMeta':import.meta,'argv':[..._0x21118d],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x4f5ec5=[..._0xddd13a['input']],_0x2c5007=_0xddd13a[_0x4c25e1(0x1f8)],_0x28ec1c=_0x4f5ec5[0x0];if(!_0x28ec1c)throw CliErrors[_0x4c25e1(0x1ea)](_0x4c25e1(0x1f9));const _0x531604=resolveRemovedCommand(_0x28ec1c,_0x4f5ec5[0x1]);if(_0x531604)throw CliErrors[_0x4c25e1(0x1ea)](_0x531604[_0x4c25e1(0x1f4)],_0x531604[_0x4c25e1(0x1f3)]);if(_0x28ec1c===_0x4c25e1(0x1ee))throw CliErrors[_0x4c25e1(0x1ea)]('`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.');if(!isKnownService(_0x28ec1c))throw CliErrors['unknownCommand'](_0x4f5ec5[_0x4c25e1(0x1f5)]('\x20'));const _0x5b7f62=getServiceEntry(_0x28ec1c),_0x3a32aa=_0x4f5ec5[0x1],_0x561ca2=_0x3a32aa||_0x5b7f62[_0x4c25e1(0x1ef)];if(!_0x561ca2){if(_0x5b7f62['wildcardDef'])return{'definition':_0x5b7f62['wildcardDef'],'rawFlags':_0x2c5007,'args':[]};throw CliErrors[_0x4c25e1(0x1ea)]('Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22'+_0x28ec1c+'\x22.');}const _0x225886=findDefinition(_0x28ec1c,_0x561ca2);if(_0x225886)return assertSupportedCommandFlags(_0x225886,_0x2c5007),{'definition':_0x225886,'rawFlags':_0x2c5007,'args':_0x4f5ec5[_0x4c25e1(0x1e9)](0x2)};if(_0x5b7f62[_0x4c25e1(0x1ed)])return{'definition':_0x5b7f62[_0x4c25e1(0x1ed)],'rawFlags':_0x2c5007,'args':[_0x561ca2,..._0x4f5ec5[_0x4c25e1(0x1e9)](0x2)]};throw CliErrors[_0x4c25e1(0x1f2)](_0x28ec1c+'\x20'+_0x561ca2);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a341_0x2837(){const _0x576dec=['1697450dHSWpB','sync','test','728szPCeG','isSymbolicLink','905554GtZdLq','writeFile','136FyCAPg','20699JwpFUl','1sSzZaU','catch','string','3085ucFXSG','close','ENOENT','11443044RYKDRd','size','clientOperationId','parse','inputHash','stringify','kind','manifest','code','2944791WVXvej','21222treSOy','4338nABemh','.tmp','length','schemaVersion','identityKey','11GWoRJZ','Invalid\x20checkpoint;\x20reconcile\x20its\x20original\x20operation\x20before\x20submitting\x20again.','isFile'];a341_0x2837=function(){return _0x576dec;};return a341_0x2837();}(function(_0x499051,_0x5e428e){const _0x14e74f=a341_0xa333,_0x1dde64=_0x499051();while(!![]){try{const _0x1c63c1=parseInt(_0x14e74f(0xbb))/0x1*(-parseInt(_0x14e74f(0xb7))/0x2)+parseInt(_0x14e74f(0xa9))/0x3*(-parseInt(_0x14e74f(0xb9))/0x4)+-parseInt(_0x14e74f(0xbe))/0x5*(parseInt(_0x14e74f(0xaa))/0x6)+parseInt(_0x14e74f(0xba))/0x7*(parseInt(_0x14e74f(0xb5))/0x8)+parseInt(_0x14e74f(0xa8))/0x9+-parseInt(_0x14e74f(0xb2))/0xa+parseInt(_0x14e74f(0xaf))/0xb*(parseInt(_0x14e74f(0x9f))/0xc);if(_0x1c63c1===_0x5e428e)break;else _0x1dde64['push'](_0x1dde64['shift']());}catch(_0x4d2c1b){_0x1dde64['push'](_0x1dde64['shift']());}}}(a341_0x2837,0x3ac68));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';function a341_0xa333(_0x6a12a6,_0xd1f01){_0x6a12a6=_0x6a12a6-0x9d;const _0x283763=a341_0x2837();let _0xa333ff=_0x283763[_0x6a12a6];return _0xa333ff;}export async function readCheckpoint(_0x5d1f03){const _0x4ddc6e=a341_0xa333;try{const _0x334460=await lstat(_0x5d1f03);requireValue(_0x334460[_0x4ddc6e(0xb1)]()&&!_0x334460[_0x4ddc6e(0xb6)]()&&_0x334460[_0x4ddc6e(0xa0)]<=0x3d0900,'Checkpoint\x20must\x20be\x20a\x20regular\x20JSON\x20file.');const _0x435f01=JSON[_0x4ddc6e(0xa2)](await readFile(_0x5d1f03,'utf8'));return requireValue(isObject(_0x435f01)&&_0x435f01[_0x4ddc6e(0xa5)]==='dataset-design-operation'&&_0x435f01[_0x4ddc6e(0xad)]===0x1&&typeof _0x435f01[_0x4ddc6e(0xa1)]===_0x4ddc6e(0xbd)&&/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/[_0x4ddc6e(0xb4)](_0x435f01[_0x4ddc6e(0xa1)])&&typeof _0x435f01['inputHash']===_0x4ddc6e(0xbd)&&/^[a-f0-9]{64}$/['test'](_0x435f01[_0x4ddc6e(0xa3)])&&typeof _0x435f01[_0x4ddc6e(0xae)]===_0x4ddc6e(0xbd)&&_0x435f01[_0x4ddc6e(0xae)][_0x4ddc6e(0xac)]>0x0&&isObject(_0x435f01[_0x4ddc6e(0xa6)]),_0x4ddc6e(0xb0)),_0x435f01;}catch(_0x38055c){if(_0x38055c[_0x4ddc6e(0xa7)]===_0x4ddc6e(0x9e))return undefined;throw _0x38055c;}}export async function saveCheckpoint(_0x3b2b84,_0x28954a,_0x316f5c=![]){const _0xe9874d=a341_0xa333;await mkdir(dirname(_0x3b2b84),{'recursive':!![]});const _0x9ad842=_0x3b2b84+'.'+randomUUID()+_0xe9874d(0xab),_0x19909b=await open(_0x9ad842,'wx',0x180);try{await _0x19909b[_0xe9874d(0xb8)](JSON[_0xe9874d(0xa4)](_0x28954a,null,0x2)+'\x0a'),await _0x19909b[_0xe9874d(0xb3)]();}finally{await _0x19909b[_0xe9874d(0x9d)]();}try{if(_0x316f5c)await link(_0x9ad842,_0x3b2b84);else await rename(_0x9ad842,_0x3b2b84);return!![];}catch(_0x25d417){if(_0x316f5c&&_0x25d417[_0xe9874d(0xa7)]==='EEXIST')return![];throw _0x25d417;}finally{await unlink(_0x9ad842)[_0xe9874d(0xbc)](_0x10b771=>{const _0x3513e1=_0xe9874d;if(_0x10b771['code']!==_0x3513e1(0x9e))throw _0x10b771;});}}
|