@lovrabet/rabetbase-cli 2.5.11 → 2.5.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/design-context.js +1 -1
- package/lib/commands/dataset/design-start.js +1 -1
- package/lib/commands/dataset/design-status.js +1 -1
- package/lib/commands/dataset/design-sync-retry.js +1 -1
- package/lib/commands/dataset/design-sync-status.js +1 -1
- package/lib/commands/dataset/design-validate.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/cross-db-analysis-shared.js +1 -1
- package/lib/commands/db/cross-db-analyze-latest.js +1 -1
- package/lib/commands/db/cross-db-analyze-start.js +1 -1
- package/lib/commands/db/cross-db-analyze-status.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/page-list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/context.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.d.ts +1 -0
- 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.d.ts +2 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-design/checkpoint.js +1 -1
- package/lib/services/dataset-design/commands.js +1 -1
- package/lib/services/dataset-design/contract.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase/references/rabetbase-kb.md +1 -1
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a323_0x2a36(){var _0x123532=['358713gMYOsP','1447453ZyQxfn','24ouWAGc','355390VavWSz','120pnEeoe','12940870BcoJCT','4716486TzlUsf','1991ObIAFx','160980WixRTa','84chwLPv','2fafeUH','360455FtWEag'];a323_0x2a36=function(){return _0x123532;};return a323_0x2a36();}(function(_0x16c3ff,_0x3f93f2){var _0x26a1e2=a323_0x4c39,_0xb93c66=_0x16c3ff();while(!![]){try{var _0xd23eda=parseInt(_0x26a1e2(0xfa))/0x1+parseInt(_0x26a1e2(0xf7))/0x2*(-parseInt(_0x26a1e2(0xf9))/0x3)+-parseInt(_0x26a1e2(0xf6))/0x4*(parseInt(_0x26a1e2(0xf8))/0x5)+-parseInt(_0x26a1e2(0xf1))/0x6*(parseInt(_0x26a1e2(0xfc))/0x7)+-parseInt(_0x26a1e2(0xfb))/0x8*(parseInt(_0x26a1e2(0xf3))/0x9)+parseInt(_0x26a1e2(0xf2))/0xa+parseInt(_0x26a1e2(0xf4))/0xb*(parseInt(_0x26a1e2(0xf5))/0xc);if(_0xd23eda===_0x3f93f2)break;else _0xb93c66['push'](_0xb93c66['shift']());}catch(_0xfde485){_0xb93c66['push'](_0xb93c66['shift']());}}}(a323_0x2a36,0xe7983));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a323_0x4c39(_0x3ccf98,_0x5a8e22){_0x3ccf98=_0x3ccf98-0xf1;var _0x2a36c6=a323_0x2a36();var _0x4c39ff=_0x2a36c6[_0x3ccf98];return _0x4c39ff;}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(_0x5e6b97,_0x373c2c){const _0x3e0b20=a324_0x1a8a,_0x29e0fc=_0x5e6b97();while(!![]){try{const _0x79e9c6=-parseInt(_0x3e0b20(0x1c1))/0x1+parseInt(_0x3e0b20(0x1c6))/0x2+-parseInt(_0x3e0b20(0x1ce))/0x3*(parseInt(_0x3e0b20(0x1b6))/0x4)+-parseInt(_0x3e0b20(0x1b5))/0x5+-parseInt(_0x3e0b20(0x1c9))/0x6*(-parseInt(_0x3e0b20(0x1bf))/0x7)+-parseInt(_0x3e0b20(0x1bc))/0x8+parseInt(_0x3e0b20(0x1be))/0x9*(parseInt(_0x3e0b20(0x1b9))/0xa);if(_0x79e9c6===_0x373c2c)break;else _0x29e0fc['push'](_0x29e0fc['shift']());}catch(_0x5aacb0){_0x29e0fc['push'](_0x29e0fc['shift']());}}}(a324_0xcf78,0x5e741));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';function a324_0x1a8a(_0x490483,_0xa6f61c){_0x490483=_0x490483-0x1b2;const _0xcf7888=a324_0xcf78();let _0x1a8aca=_0xcf7888[_0x490483];return _0x1a8aca;}import{applyJqFilter}from'../utils/apply-jq-filter.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x361af1,_0x271290){const _0x5e60d4=a324_0x1a8a,_0xc40684=_0x361af1[_0x5e60d4(0x1cb)],{_notice:_0x36e9ac,..._0x62c4fa}=_0x361af1;void _0x36e9ac,baseFormatOutput(_0x62c4fa,_0x271290),_0x271290[_0x5e60d4(0x1c8)]===_0x5e60d4(0x1cd)&&printPrettyNotice(_0xc40684);}function a324_0xcf78(){const _0x364e9d=['12fmTKNO','stdout','update','10ERDYQJ','endsWith','trim','3077656aQNNWf','json','9616419mrYkIH','707BUelgJ','jq:\x20','424070nQuygv','code','hint','stringify','error','1148440LHjWot','validation','format','44214TBbKHP','jqFilter','_notice','data','pretty','469479OwxmRR','command','risk','message','3609215dpaoqY'];a324_0xcf78=function(){return _0x364e9d;};return a324_0xcf78();}export function formatCliError(_0x1e643b,_0x552b46){const _0x3204b8=a324_0x1a8a;if(_0x552b46[_0x3204b8(0x1c8)]==='pretty')return![];const _0x1d21d5=_0x1e643b[_0x3204b8(0x1cc)],_0x446828={'ok':![],'command':_0x552b46[_0x3204b8(0x1b2)],'risk':_0x552b46[_0x3204b8(0x1b3)],'data':_0x1d21d5??null,'error':{'code':_0x1e643b['code'],'message':_0x1e643b[_0x3204b8(0x1b4)],..._0x1e643b[_0x3204b8(0x1c3)]?{'hint':_0x1e643b[_0x3204b8(0x1c3)]}:{}}},_0x2b15d2=_0x552b46[_0x3204b8(0x1c8)]==='json'?JSON[_0x3204b8(0x1c4)](_0x446828,null,0x2):JSON[_0x3204b8(0x1c4)](_0x446828);let _0x281af5=_0x2b15d2;if(_0x552b46[_0x3204b8(0x1ca)]?.[_0x3204b8(0x1bb)]())try{_0x281af5=applyJqFilter(_0x2b15d2,_0x552b46[_0x3204b8(0x1ca)]);}catch(_0x2152ba){const _0x3ff77a=_0x2152ba instanceof CliError?_0x2152ba:CliErrors[_0x3204b8(0x1c7)](_0x3204b8(0x1c0)+(_0x2152ba instanceof Error?_0x2152ba['message']:String(_0x2152ba))),_0x588b24={..._0x446828,'error':{'code':_0x3ff77a[_0x3204b8(0x1c2)],'message':_0x3ff77a[_0x3204b8(0x1b4)],..._0x3ff77a[_0x3204b8(0x1c3)]?{'hint':_0x3ff77a[_0x3204b8(0x1c3)]}:{},'cause':_0x446828[_0x3204b8(0x1c5)]}};_0x281af5=_0x552b46[_0x3204b8(0x1c8)]===_0x3204b8(0x1bd)?JSON['stringify'](_0x588b24,null,0x2):JSON['stringify'](_0x588b24);}return process[_0x3204b8(0x1b7)]['write'](_0x281af5[_0x3204b8(0x1ba)]('\x0a')?_0x281af5:_0x281af5+'\x0a'),!![];}function printPrettyNotice(_0x546462){const _0x30d371=a324_0x1a8a;if(!_0x546462?.[_0x30d371(0x1b8)])return;console[_0x30d371(0x1c5)](_0x546462[_0x30d371(0x1b8)]['message']+'\x20('+_0x546462['update']['url']+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x7d15e9,_0x4dca11){var _0x1ccc90=a325_0xac28,_0x4d072c=_0x7d15e9();while(!![]){try{var _0x88b1bf=parseInt(_0x1ccc90(0x1cc))/0x1+parseInt(_0x1ccc90(0x1c5))/0x2*(-parseInt(_0x1ccc90(0x1cd))/0x3)+-parseInt(_0x1ccc90(0x1c8))/0x4+-parseInt(_0x1ccc90(0x1c7))/0x5+parseInt(_0x1ccc90(0x1c9))/0x6+-parseInt(_0x1ccc90(0x1cb))/0x7*(parseInt(_0x1ccc90(0x1ca))/0x8)+-parseInt(_0x1ccc90(0x1c6))/0x9*(-parseInt(_0x1ccc90(0x1ce))/0xa);if(_0x88b1bf===_0x4dca11)break;else _0x4d072c['push'](_0x4d072c['shift']());}catch(_0x444b99){_0x4d072c['push'](_0x4d072c['shift']());}}}(a325_0x1b98,0x92347));function a325_0xac28(_0x40ec19,_0x36864e){_0x40ec19=_0x40ec19-0x1c5;var _0x1b9811=a325_0x1b98();var _0xac28e4=_0x1b9811[_0x40ec19];return _0xac28e4;}export{extractList,extractPaging}from'@lovrabet/cli-framework';function a325_0x1b98(){var _0x1486be=['4nuXIjy','18347544JqjcOi','2165190YUDnsj','4217072RqbutN','4254942NutuKo','25040iGjjwP','112nRurlW','336910AXvjBU','1422663eIHgrB','10XUOymO'];a325_0x1b98=function(){return _0x1486be;};return a325_0x1b98();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x52bef7,_0x2eb0d6){const _0x32f99a=a326_0x26b5,_0x463d37=_0x52bef7();while(!![]){try{const _0x3fdd55=-parseInt(_0x32f99a(0x12f))/0x1*(-parseInt(_0x32f99a(0x11b))/0x2)+-parseInt(_0x32f99a(0x12a))/0x3*(-parseInt(_0x32f99a(0x12b))/0x4)+-parseInt(_0x32f99a(0x11a))/0x5*(-parseInt(_0x32f99a(0x12e))/0x6)+-parseInt(_0x32f99a(0x124))/0x7*(-parseInt(_0x32f99a(0x125))/0x8)+parseInt(_0x32f99a(0x128))/0x9+-parseInt(_0x32f99a(0x11f))/0xa+-parseInt(_0x32f99a(0x130))/0xb;if(_0x3fdd55===_0x2eb0d6)break;else _0x463d37['push'](_0x463d37['shift']());}catch(_0x63e951){_0x463d37['push'](_0x463d37['shift']());}}}(a326_0x21f5,0x4db97));function a326_0x21f5(){const _0x57275b=['length','join','.\x20Run\x20`','filePath','581IVIDnf','4584yiNrIl','alias','\x22.\x20','721692bGJfav','some','1855911Tjfohk','4omsAcS','type','Available\x20aliases:\x20','6JJqdIm','1pMisUw','7897879qwPdSE','flags','code','No\x20model\x20aliases\x20found\x20in\x20','string','\x20api\x20pull`\x20first.','Unknown\x20alias\x20\x22','2382395Xwvjhi','500054WEcHDh','name','`\x20requires\x20either\x20--code\x20or\x20--alias.','validation','4365420cEtSdE'];a326_0x21f5=function(){return _0x57275b;};return a326_0x21f5();}import{CliErrors}from'../errors.js';function a326_0x26b5(_0x2ddfde,_0x1cf37a){_0x2ddfde=_0x2ddfde-0x119;const _0x21f5b7=a326_0x21f5();let _0x26b520=_0x21f5b7[_0x2ddfde];return _0x26b520;}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(_0x2d73ff,_0x482b7d,_0x14b6e6,_0xda1a6b,_0x1ac125,_0x495190){const _0x21d6ad=a326_0x26b5,_0x48aa63=_0x2d73ff[_0x21d6ad(0x131)][_0x21d6ad(0x129)](_0x25f28b=>_0x25f28b[_0x21d6ad(0x11c)]==='code'&&_0x25f28b[_0x21d6ad(0x12c)]===_0x21d6ad(0x134)),_0x47ab88=_0x2d73ff[_0x21d6ad(0x131)][_0x21d6ad(0x129)](_0x447f27=>_0x447f27[_0x21d6ad(0x11c)]===_0x21d6ad(0x126)&&_0x447f27[_0x21d6ad(0x12c)]===_0x21d6ad(0x134));if(!_0x48aa63||!_0x47ab88)return;const _0x387d39=_0x482b7d[_0x21d6ad(0x132)]?String(_0x482b7d[_0x21d6ad(0x132)]):'',_0x567287=_0x482b7d[_0x21d6ad(0x126)]?String(_0x482b7d['alias']):'';if(!_0x387d39&&!_0x567287)throw CliErrors[_0x21d6ad(0x11e)]('`'+_0xda1a6b+_0x21d6ad(0x11d));if(_0x567287&&!_0x387d39){const _0x48ab2d=resolveApiModelSource(_0x14b6e6,_0x1ac125,_0x495190),_0x359043=resolveAlias(_0x14b6e6,_0x567287,undefined,_0x48ab2d[_0x21d6ad(0x123)],_0x48ab2d['profileName']);if(!_0x359043){const _0x5c40e0=listAliases(_0x14b6e6,undefined,_0x48ab2d[_0x21d6ad(0x123)],_0x48ab2d['profileName'])['map'](_0x2347f6=>_0x2347f6[_0x21d6ad(0x126)]),_0x5d1ee2=_0x5c40e0[_0x21d6ad(0x120)]?_0x21d6ad(0x12d)+_0x5c40e0[_0x21d6ad(0x121)](',\x20'):_0x21d6ad(0x133)+_0x14b6e6+_0x21d6ad(0x122)+CLI_BIN_NAME+_0x21d6ad(0x135);throw CliErrors[_0x21d6ad(0x11e)](_0x21d6ad(0x119)+_0x567287+_0x21d6ad(0x127)+_0x5d1ee2);}_0x482b7d[_0x21d6ad(0x132)]=_0x359043;}}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x212a74,_0x283e0){const _0x153603=a327_0x563d,_0x5df94c=_0x212a74();while(!![]){try{const _0x574efd=-parseInt(_0x153603(0x1b5))/0x1*(-parseInt(_0x153603(0x19c))/0x2)+parseInt(_0x153603(0x19b))/0x3*(-parseInt(_0x153603(0x1a3))/0x4)+-parseInt(_0x153603(0x1c9))/0x5*(parseInt(_0x153603(0x1e5))/0x6)+parseInt(_0x153603(0x1ca))/0x7+parseInt(_0x153603(0x196))/0x8*(parseInt(_0x153603(0x1e8))/0x9)+-parseInt(_0x153603(0x190))/0xa*(parseInt(_0x153603(0x195))/0xb)+-parseInt(_0x153603(0x1aa))/0xc;if(_0x574efd===_0x283e0)break;else _0x5df94c['push'](_0x5df94c['shift']());}catch(_0x26707e){_0x5df94c['push'](_0x5df94c['shift']());}}}(a327_0x3539,0x5c3aa));function a327_0x3539(){const _0x1f42ae=['126psccuM','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','resolveCookie','explicitAppName','Current\x20resolved\x20appcode\x20is\x20\x22','authRequired','712DKetYz','required','Set\x20appcode\x20via\x20`','defaultVerbose','apps','resolveAppCode','production','6654288LVnBff','isNonInteractive','service','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','entries','apiDir','RABETBASE_APPCODE','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','AppCode\x20\x22','resolveApiDomain','cancelled','3559KAlbnk','⚠\x20\x20High-risk\x20operation:\x20','schema','replace','validation','map','filter','cookie','name','doctor','toUpperCase','risk','formatOutput','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','configMissing','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','trim','keys','../constant/domain.js','\x0a\x20\x20','1070sviQcJ','4341267EiJHll','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','resolve','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','mergedCli','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','command','value','object','hint','\x20\x20\x20Continue?\x20[y/N]\x20','join','length','appcode','requiresAppCode','appCode','rawFlags','includes','currentApp','none','../constant/env.js','nonInteractive','message','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','format','catch','defaultApp','282TGRcih','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','9YsdBrj','verbose','Edit\x20the\x20config\x20file\x20manually','../core/api-client.js','execute','confirmHighRisk','meowKey','pretty','80qOzbwR','selectedAppName','rejectedFlags','all','has','529078mYYGMn','4146704FOSFct','_notice','riskLevel','find','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','600AHlfgt'];a327_0x3539=function(){return _0x1f42ae;};return a327_0x3539();}import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a327_0x288169}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x178cfc){const _0x41bc33=a327_0x563d;return typeof _0x178cfc==='string'&&_0x178cfc[_0x41bc33(0x1c5)]()?_0x178cfc[_0x41bc33(0x1c5)]():undefined;}function resolveEnvAppCode(){const _0x33111c=a327_0x563d,_0x421bd6=stringFlag(process.env.RABETBASE_APPCODE);if(_0x421bd6)return{'name':_0x33111c(0x1b0),'value':_0x421bd6};const _0x324a81=stringFlag(process.env.LOVRABET_APPCODE);if(_0x324a81)return{'name':'LOVRABET_APPCODE','value':_0x324a81};return undefined;}function hasExplicitAppCode(_0x47813e,_0x36d835){const _0x1a30e3=a327_0x563d;return!!(stringFlag(_0x47813e['appcode'])||stringFlag(_0x36d835[_0x1a30e3(0x1d7)]));}function assertEnvAppCodeNotIgnored(_0x4eaa4d,_0x54f80e,_0x38a37c){const _0x3e4f3e=a327_0x563d;if(!_0x54f80e||_0x38a37c||_0x4eaa4d===_0x54f80e['value'])return;const _0xfbb401=_0x4eaa4d?_0x3e4f3e(0x1a1)+_0x4eaa4d+'\x22.':'No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.';throw CliErrors[_0x3e4f3e(0x1b9)](_0x54f80e[_0x3e4f3e(0x1bd)]+'='+_0x54f80e[_0x3e4f3e(0x1d1)]+_0x3e4f3e(0x1c2)+_0xfbb401+'\x20'+(_0x3e4f3e(0x1c4)+_0x54f80e['name']+'\x22.'));}export function createPipelineEnv(_0x37e785,_0x2df874,_0x3ce0a1=[]){const _0x1196b9=a327_0x563d;return{'rawFlags':_0x2df874,'args':_0x3ce0a1,'resolveAppCode':()=>_0x37e785[_0x1196b9(0x1d9)],'resolveCookie':()=>_0x37e785[_0x1196b9(0x1bc)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a327_0x288169(_0x2df874),'defaultFormat':_0x37e785[_0x1196b9(0x1e2)],'defaultPageSize':_0x37e785['pageSize'],'defaultVerbose':_0x37e785[_0x1196b9(0x1e9)],'apiDir':_0x37e785[_0x1196b9(0x1af)],'riskLevel':_0x37e785[_0x1196b9(0x198)],'selectedAppName':_0x37e785[_0x1196b9(0x1a0)],'mergedCli':{'defaultApp':_0x37e785[_0x1196b9(0x1e4)],'currentApp':_0x37e785[_0x1196b9(0x1dc)],'appCode':_0x37e785[_0x1196b9(0x1d9)],'apps':_0x37e785[_0x1196b9(0x1a7)]}};}export function createRabetbaseRunnerAdapter(_0x3f6634={}){const _0x568c47=a327_0x563d;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x568c47(0x1bb)](_0x21d7a2=>PIPELINE_FLAG_NAMES[_0x568c47(0x194)](_0x21d7a2[_0x568c47(0x1bd)]))[_0x568c47(0x1ba)](({name:_0x26c28d,type:_0x4565df,description:_0x34c67b})=>({'name':_0x26c28d,'type':_0x4565df,'description':_0x34c67b})),'formatOutput':_0x3f6634[_0x568c47(0x1c1)]??formatOutput,'getCommandLabel'(_0x56da25){const _0x113d56=_0x568c47;return CLI_BIN_NAME+'\x20'+_0x56da25['service']+'\x20'+_0x56da25[_0x113d56(0x1d0)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x46e8af,{def:_0x2e68e0}){const _0x51db59=_0x568c47,_0x41e385=_0x46e8af[_0x51db59(0x1db)](_0x51db59(0x1ea))?_0x51db59(0x1e1):_0x51db59(0x1e6)+_0x2e68e0[_0x51db59(0x1c0)]+_0x51db59(0x1e7)+_0x51db59(0x1e1);return CliErrors['validation'](_0x46e8af+_0x51db59(0x1c8)+_0x41e385);}},async 'prepare'(_0x5627f9,_0x5d4db4,_0x35b786,_0x2857c6){const _0x198cd6=_0x568c47,_0x1e43e3=_0x5d4db4[_0x198cd6(0x1af)]||DEFAULT_API_DIR,_0x3264a2=hasExplicitAppCode(_0x35b786,_0x5d4db4[_0x198cd6(0x1da)]),_0x324a12=stringFlag(_0x35b786[_0x198cd6(0x1d7)])||stringFlag(_0x5d4db4[_0x198cd6(0x1da)][_0x198cd6(0x1d7)]),_0x252c5e=_0x5d4db4[_0x198cd6(0x1ce)]?.['apps']??{},_0x3c732f=_0x5d4db4[_0x198cd6(0x191)]||_0x5d4db4['mergedCli']?.[_0x198cd6(0x1dc)]||_0x5d4db4[_0x198cd6(0x1ce)]?.[_0x198cd6(0x1e4)],_0xbb8ae7=_0x324a12?Object[_0x198cd6(0x1ae)](_0x252c5e)[_0x198cd6(0x1bb)](([,_0x556136])=>_0x556136[_0x198cd6(0x1d7)]===_0x324a12)[_0x198cd6(0x1ba)](([_0x44f688])=>_0x44f688):[];if(_0xbb8ae7[_0x198cd6(0x1d6)]>0x1&&!_0x5d4db4[_0x198cd6(0x191)])throw CliErrors[_0x198cd6(0x1b9)](_0x198cd6(0x1b2)+_0x324a12+'\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20'+_0xbb8ae7[_0x198cd6(0x1d5)](',\x20')+'.',_0x198cd6(0x1ad));resolveAliasToCode(_0x5627f9,_0x35b786,_0x1e43e3,_0x2857c6,_0x5d4db4[_0x198cd6(0x1a8)](),_0x3c732f);const _0x26de07=resolveCommandAuthMode(_0x5627f9);let _0x2d67d2='';if(_0x26de07!==_0x198cd6(0x1dd)){_0x2d67d2=_0x5d4db4[_0x198cd6(0x19f)]()||'';if(!_0x2d67d2){if(_0x26de07===_0x198cd6(0x1a4))throw CliErrors[_0x198cd6(0x1a2)]();}else{const {setActiveCookie:_0x20e570}=await import(_0x198cd6(0x1eb));_0x20e570(_0x2d67d2);}}const _0x4a2db1=_0x5d4db4[_0x198cd6(0x1a8)]()??'';if(_0x5627f9[_0x198cd6(0x1d8)]!==![]){if(!_0x3264a2&&_0x3c732f&&!_0x252c5e[_0x3c732f]){const _0x835c41=Object[_0x198cd6(0x1c6)](_0x252c5e);throw CliErrors[_0x198cd6(0x1b9)]('App\x20\x22'+_0x3c732f+_0x198cd6(0x19a),_0x835c41[_0x198cd6(0x1d6)]>0x0?'Available:\x20'+_0x835c41[_0x198cd6(0x1d5)](',\x20')+_0x198cd6(0x1cf)+CLI_BIN_NAME+_0x198cd6(0x1b1):'Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x198cd6(0x1b1));}assertEnvAppCodeNotIgnored(_0x4a2db1,resolveEnvAppCode(),_0x3264a2);if(!_0x4a2db1){const _0x161ea9=Object[_0x198cd6(0x1c6)](_0x252c5e);if(!_0x3c732f&&_0x161ea9[_0x198cd6(0x1d6)]>0x1)throw CliErrors[_0x198cd6(0x1c3)](_0x198cd6(0x1cd)+CLI_BIN_NAME+_0x198cd6(0x1cb)+_0x161ea9[_0x198cd6(0x1d5)](',\x20')+'.');throw CliErrors[_0x198cd6(0x1c3)](_0x198cd6(0x1a5)+CLI_BIN_NAME+_0x198cd6(0x19e));}}return{'defaults':{'booleans':{'verbose':_0x5d4db4[_0x198cd6(0x1a6)]},'numbers':{'pagesize':_0x5d4db4['defaultPageSize']}},'extras':{'appCode':_0x4a2db1,'cookie':_0x2d67d2,'apiDomain':_0x5d4db4[_0x198cd6(0x1b3)](),'apiDir':_0x1e43e3,'selectedAppName':_0x5d4db4[_0x198cd6(0x191)],'mergedCli':_0x5d4db4[_0x198cd6(0x1ce)]}};},'confirmHighRisk':_0x3f6634[_0x568c47(0x1ed)]??(async({env:_0xecbd48,commandLabel:_0x553274})=>{const _0x1c4ac7=_0x568c47;if(_0xecbd48[_0x1c4ac7(0x1ab)])throw CliErrors[_0x1c4ac7(0x1b9)]('High-risk\x20operation\x20`'+_0x553274+_0x1c4ac7(0x19d));await requireConfirmationPrompt({'lines':[_0x1c4ac7(0x1b6)+_0x553274,_0x1c4ac7(0x1d4)],'createCancelledError':_0x2db394=>CliErrors[_0x1c4ac7(0x1b4)](_0x2db394)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x44463d=a327_0x563d,{clearActiveCookie:_0x548c36}=await import(_0x44463d(0x1eb));_0x548c36();}export async function finalizeRabetbaseRuntimeState(){const _0x328a09=a327_0x563d;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x4f715c},{initEnv:_0x4d0ec2}]=await Promise[_0x328a09(0x193)]([import(_0x328a09(0x1c7)),import(_0x328a09(0x1de))]);_0x4f715c(),_0x4d0ec2(_0x328a09(0x1a9));}}export async function runCommand(_0x715208,_0x4f4cb5,_0x1c88ee=terminalRunnerAdapter){assertRejectedFlags(_0x715208,_0x4f4cb5['rawFlags']),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x715208)?withUpdateNotice(_0x715208):_0x715208,_0x4f4cb5,_0x1c88ee);}function assertRejectedFlags(_0x1a046c,_0x1675c3){const _0x5cf434=a327_0x563d;for(const _0x4554e1 of _0x1a046c[_0x5cf434(0x192)]??[]){const _0x5e54a5=GLOBAL_FLAGS[_0x5cf434(0x199)](_0x5632b2=>_0x5632b2[_0x5cf434(0x1bd)]===_0x4554e1[_0x5cf434(0x1bd)]),_0x49d907=new Set([_0x4554e1[_0x5cf434(0x1bd)],toCamelCase(_0x4554e1[_0x5cf434(0x1bd)]),_0x5e54a5?.[_0x5cf434(0x1ee)]]),_0x2ab752=[..._0x49d907]['some'](_0x4f74ee=>{if(!_0x4f74ee)return![];const _0x19918d=_0x1675c3[_0x4f74ee];return _0x19918d!==undefined&&_0x19918d!==null&&_0x19918d!==![];});if(_0x2ab752)throw CliErrors[_0x5cf434(0x1b9)](_0x4554e1[_0x5cf434(0x1e0)],_0x4554e1[_0x5cf434(0x1d3)]);}}function toCamelCase(_0x13a628){const _0x352124=a327_0x563d;return _0x13a628[_0x352124(0x1b8)](/-([a-z])/g,(_0x110dd1,_0x2e3da0)=>_0x2e3da0[_0x352124(0x1bf)]());}function a327_0x563d(_0x5ac002,_0x2b16ca){_0x5ac002=_0x5ac002-0x18f;const _0x35394e=a327_0x3539();let _0x563d2a=_0x35394e[_0x5ac002];return _0x563d2a;}function shouldAttachUpdateNotice(_0x1c76ac){const _0x57aa71=a327_0x563d;if(_0x1c76ac['hasFormat']===![])return![];return!['update',_0x57aa71(0x1b7),_0x57aa71(0x1be)]['includes'](_0x1c76ac[_0x57aa71(0x1ac)]);}function withUpdateNotice(_0x15d4d2){return{..._0x15d4d2,async 'execute'(_0x1d5286){const _0x28fa6f=a327_0x563d,_0x2137eb=shouldResolveUpdateNotice(_0x1d5286)?resolveLatestUpdateNotice()[_0x28fa6f(0x1e3)](()=>null):Promise[_0x28fa6f(0x1cc)](null),_0x2538e3=await _0x15d4d2[_0x28fa6f(0x1ec)](_0x1d5286);return attachUpdateNotice(_0x2538e3,await _0x2137eb);}};}function shouldResolveUpdateNotice(_0x4191a6){const _0x15e127=a327_0x563d;return _0x4191a6[_0x15e127(0x1e2)]===_0x15e127(0x18f)&&!_0x4191a6[_0x15e127(0x1df)];}function attachUpdateNotice(_0x3bb186,_0x444210){const _0x489263=a327_0x563d;if(!_0x444210||!_0x3bb186||typeof _0x3bb186!==_0x489263(0x1d2))return _0x3bb186;const _0x153f2e=_0x3bb186,_0x38f1df=typeof _0x153f2e[_0x489263(0x197)]===_0x489263(0x1d2)&&_0x153f2e[_0x489263(0x197)]!==null?_0x153f2e['_notice']:{};return{..._0x153f2e,'_notice':{..._0x38f1df,'update':_0x444210}};}
|
|
1
|
+
(function(_0x5f18e5,_0x5407ed){const _0x4e5004=a327_0x28e1,_0x59e3d4=_0x5f18e5();while(!![]){try{const _0x6d74cf=-parseInt(_0x4e5004(0xb6))/0x1*(parseInt(_0x4e5004(0xb2))/0x2)+parseInt(_0x4e5004(0xfd))/0x3+-parseInt(_0x4e5004(0xba))/0x4*(-parseInt(_0x4e5004(0xf5))/0x5)+-parseInt(_0x4e5004(0xbf))/0x6*(-parseInt(_0x4e5004(0xc5))/0x7)+-parseInt(_0x4e5004(0xec))/0x8*(-parseInt(_0x4e5004(0xfc))/0x9)+parseInt(_0x4e5004(0xf3))/0xa*(parseInt(_0x4e5004(0xdd))/0xb)+-parseInt(_0x4e5004(0xe8))/0xc*(parseInt(_0x4e5004(0xe7))/0xd);if(_0x6d74cf===_0x5407ed)break;else _0x59e3d4['push'](_0x59e3d4['shift']());}catch(_0x4411d3){_0x59e3d4['push'](_0x59e3d4['shift']());}}}(a327_0x538b,0x52213));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';function a327_0x28e1(_0x20b55d,_0x9d9253){_0x20b55d=_0x20b55d-0xa9;const _0x538b15=a327_0x538b();let _0x28e1f5=_0x538b15[_0x20b55d];return _0x28e1f5;}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_0x27c660}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x2a21ef){const _0x24bf5f=a327_0x28e1;return typeof _0x2a21ef===_0x24bf5f(0xe2)&&_0x2a21ef[_0x24bf5f(0xca)]()?_0x2a21ef[_0x24bf5f(0xca)]():undefined;}function resolveEnvAppCode(){const _0x492bca=a327_0x28e1,_0x60bd26=stringFlag(process.env.RABETBASE_APPCODE);if(_0x60bd26)return{'name':_0x492bca(0xc1),'value':_0x60bd26};const _0x2a0e7d=stringFlag(process.env.LOVRABET_APPCODE);if(_0x2a0e7d)return{'name':_0x492bca(0xd8),'value':_0x2a0e7d};return undefined;}function hasExplicitAppCode(_0xe0f25d,_0x452c70){const _0x320a2e=a327_0x28e1;return!!(stringFlag(_0xe0f25d[_0x320a2e(0xce)])||stringFlag(_0x452c70[_0x320a2e(0xce)]));}function assertEnvAppCodeNotIgnored(_0x441ed1,_0xdaa6d3,_0x4305c0){const _0x28a27e=a327_0x28e1;if(!_0xdaa6d3||_0x4305c0||_0x441ed1===_0xdaa6d3[_0x28a27e(0xea)])return;const _0x42094a=_0x441ed1?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0x441ed1+'\x22.':'No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.';throw CliErrors[_0x28a27e(0xe6)](_0xdaa6d3[_0x28a27e(0xf4)]+'='+_0xdaa6d3['value']+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0x42094a+'\x20'+(_0x28a27e(0xbb)+_0xdaa6d3[_0x28a27e(0xf4)]+'\x22.'));}export function createPipelineEnv(_0x30de7f,_0x1c0eaf,_0x56d1ef=[]){const _0x708689=a327_0x28e1;return{'rawFlags':_0x1c0eaf,'args':_0x56d1ef,'resolveAppCode':()=>_0x30de7f['appCode'],'resolveCookie':()=>_0x30de7f[_0x708689(0xcc)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a327_0x27c660(_0x1c0eaf),'defaultFormat':_0x30de7f[_0x708689(0xdb)],'defaultPageSize':_0x30de7f[_0x708689(0xc8)],'defaultVerbose':_0x30de7f[_0x708689(0xcf)],'apiDir':_0x30de7f[_0x708689(0xf2)],'riskLevel':_0x30de7f[_0x708689(0xae)],'selectedAppName':_0x30de7f[_0x708689(0xf8)],'mergedCli':{'defaultApp':_0x30de7f[_0x708689(0x102)],'currentApp':_0x30de7f[_0x708689(0xb1)],'appCode':_0x30de7f['appCode'],'apps':_0x30de7f['apps']}};}export function createRabetbaseRunnerAdapter(_0x41bdf7={}){const _0x668453=a327_0x28e1;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x668453(0xc6)](_0x407a6d=>PIPELINE_FLAG_NAMES[_0x668453(0xf1)](_0x407a6d['name']))['map'](({name:_0x42d674,type:_0x1ef9ec,description:_0x1fec67})=>({'name':_0x42d674,'type':_0x1ef9ec,'description':_0x1fec67})),'formatOutput':_0x41bdf7[_0x668453(0xcb)]??formatOutput,'getCommandLabel'(_0x48fec2){const _0x5a0324=_0x668453;return CLI_BIN_NAME+'\x20'+_0x48fec2['service']+'\x20'+_0x48fec2[_0x5a0324(0xfe)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x2e5021,{def:_0xdbe980}){const _0x33ffb4=_0x668453,_0x5a6477=_0x2e5021[_0x33ffb4(0xaa)](_0x33ffb4(0xfb))?_0x33ffb4(0xe1):_0x33ffb4(0xe3)+_0xdbe980[_0x33ffb4(0xd6)]+_0x33ffb4(0xd1)+'AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.';return CliErrors['validation'](_0x2e5021+_0x33ffb4(0xde)+_0x5a6477);}},async 'prepare'(_0x53029f,_0x19a301,_0x1cbe84,_0x52106e){const _0x11982d=_0x668453,_0x2c105d=_0x19a301[_0x11982d(0xf2)]||DEFAULT_API_DIR,_0x1129bf=hasExplicitAppCode(_0x1cbe84,_0x19a301[_0x11982d(0xb9)]),_0x355724=stringFlag(_0x1cbe84[_0x11982d(0xce)])||stringFlag(_0x19a301[_0x11982d(0xb9)][_0x11982d(0xce)]),_0x3c958=_0x19a301[_0x11982d(0xdc)]?.[_0x11982d(0xe9)]??{},_0x3ada06=_0x19a301[_0x11982d(0xf7)]||_0x19a301[_0x11982d(0xdc)]?.[_0x11982d(0xb1)]||_0x19a301[_0x11982d(0xdc)]?.[_0x11982d(0x102)],_0x13a7d7=_0x355724?Object[_0x11982d(0x101)](_0x3c958)[_0x11982d(0xc6)](([,_0x69aa25])=>_0x69aa25[_0x11982d(0xce)]===_0x355724)[_0x11982d(0x105)](([_0x1ea1fc])=>_0x1ea1fc):[];if(_0x13a7d7[_0x11982d(0xfa)]>0x1&&!_0x19a301[_0x11982d(0xf7)])throw CliErrors[_0x11982d(0xe6)](_0x11982d(0xb3)+_0x355724+'\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20'+_0x13a7d7['join'](',\x20')+'.','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.');resolveAliasToCode(_0x53029f,_0x1cbe84,_0x2c105d,_0x52106e,_0x19a301['resolveAppCode'](),_0x3ada06);const _0x494bff=resolveCommandAuthMode(_0x53029f);let _0x3f78b7='';if(_0x494bff!=='none'){_0x3f78b7=_0x19a301['resolveCookie']()||'';if(!_0x3f78b7){if(_0x494bff===_0x11982d(0xd3))throw CliErrors[_0x11982d(0xc7)]();}else{const {setActiveCookie:_0x540821}=await import(_0x11982d(0xc0));_0x540821(_0x3f78b7);}}const _0x2c9e65=_0x19a301[_0x11982d(0xb8)]()??'';if(_0x53029f[_0x11982d(0xf0)]!==![]){if(!_0x1129bf&&_0x3ada06&&!_0x3c958[_0x3ada06]){const _0x2adf1f=Object[_0x11982d(0xeb)](_0x3c958);throw CliErrors['validation'](_0x11982d(0xa9)+_0x3ada06+'\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.',_0x2adf1f[_0x11982d(0xfa)]>0x0?_0x11982d(0xc2)+_0x2adf1f['join'](',\x20')+_0x11982d(0xdf)+CLI_BIN_NAME+_0x11982d(0xc4):_0x11982d(0xe5)+CLI_BIN_NAME+_0x11982d(0xc4));}assertEnvAppCodeNotIgnored(_0x2c9e65,resolveEnvAppCode(),_0x1129bf);if(!_0x2c9e65){const _0x1ae93e=Object[_0x11982d(0xeb)](_0x3c958);if(!_0x3ada06&&_0x1ae93e['length']>0x1)throw CliErrors[_0x11982d(0xc3)](_0x11982d(0xd2)+CLI_BIN_NAME+_0x11982d(0x100)+_0x1ae93e[_0x11982d(0xbc)](',\x20')+'.');throw CliErrors[_0x11982d(0xc3)](_0x11982d(0xda)+CLI_BIN_NAME+_0x11982d(0xf9));}}return{'defaults':{'booleans':{'verbose':_0x19a301[_0x11982d(0xb0)]},'numbers':{'pagesize':_0x19a301[_0x11982d(0xaf)]}},'extras':{'appCode':_0x2c9e65,'cookie':_0x3f78b7,'apiDomain':_0x19a301['resolveApiDomain'](),'apiDir':_0x2c105d,'selectedAppName':_0x19a301[_0x11982d(0xf7)],'mergedCli':_0x19a301[_0x11982d(0xdc)]}};},'confirmHighRisk':_0x41bdf7['confirmHighRisk']??(async({env:_0x2d0e46,commandLabel:_0x1cc3a3})=>{const _0x202425=_0x668453;if(_0x2d0e46['isNonInteractive'])throw CliErrors[_0x202425(0xe6)](_0x202425(0xf6)+_0x1cc3a3+_0x202425(0xbd));await requireConfirmationPrompt({'lines':[_0x202425(0xd9)+_0x1cc3a3,_0x202425(0xab)],'createCancelledError':_0x4de5d9=>CliErrors[_0x202425(0xff)](_0x4de5d9)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const {clearActiveCookie:_0xf1cb6c}=await import('../core/api-client.js');_0xf1cb6c();}export async function finalizeRabetbaseRuntimeState(){const _0x160808=a327_0x28e1;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x1cbb0d},{initEnv:_0xd94e21}]=await Promise[_0x160808(0xb5)]([import(_0x160808(0x103)),import('../constant/env.js')]);_0x1cbb0d(),_0xd94e21(_0x160808(0xd7));}}export async function runCommand(_0x4e78c5,_0x21f55a,_0x1eabde=terminalRunnerAdapter){assertRejectedFlags(_0x4e78c5,_0x21f55a['rawFlags']),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x4e78c5)?withUpdateNotice(_0x4e78c5):_0x4e78c5,_0x21f55a,_0x1eabde);}function assertRejectedFlags(_0x30cb0,_0x218779){const _0x22568a=a327_0x28e1;for(const _0x28696a of _0x30cb0['rejectedFlags']??[]){const _0x134faa=GLOBAL_FLAGS[_0x22568a(0xac)](_0x281165=>_0x281165[_0x22568a(0xf4)]===_0x28696a[_0x22568a(0xf4)]),_0x2a13ab=new Set([_0x28696a['name'],toCamelCase(_0x28696a[_0x22568a(0xf4)]),_0x134faa?.[_0x22568a(0xee)]]),_0x4da5ec=[..._0x2a13ab]['some'](_0x539fea=>{if(!_0x539fea)return![];const _0x4bd1d0=_0x218779[_0x539fea];return _0x4bd1d0!==undefined&&_0x4bd1d0!==null&&_0x4bd1d0!==![];});if(_0x4da5ec)throw CliErrors[_0x22568a(0xe6)](_0x28696a[_0x22568a(0xe4)],_0x28696a[_0x22568a(0xb7)]);}}function toCamelCase(_0x370c23){const _0x3b5c47=a327_0x28e1;return _0x370c23[_0x3b5c47(0xad)](/-([a-z])/g,(_0x434cd4,_0x1b4f96)=>_0x1b4f96[_0x3b5c47(0xed)]());}function shouldAttachUpdateNotice(_0x4c741b){const _0x566a06=a327_0x28e1;if(_0x4c741b[_0x566a06(0xb4)]===![])return![];return![_0x566a06(0xbe),_0x566a06(0xd0),_0x566a06(0x104)]['includes'](_0x4c741b[_0x566a06(0xd4)]);}function withUpdateNotice(_0x53790f){return{..._0x53790f,async 'execute'(_0xe056d9){const _0x3b7d12=a327_0x28e1,_0xb6a529=shouldResolveUpdateNotice(_0xe056d9)?resolveLatestUpdateNotice()[_0x3b7d12(0xd5)](()=>null):Promise['resolve'](null),_0x2f7b6e=await _0x53790f[_0x3b7d12(0xc9)](_0xe056d9);return attachUpdateNotice(_0x2f7b6e,await _0xb6a529);}};}function shouldResolveUpdateNotice(_0x485fb1){const _0x4fe99d=a327_0x28e1;return _0x485fb1[_0x4fe99d(0xdb)]===_0x4fe99d(0xef)&&!_0x485fb1[_0x4fe99d(0xe0)];}function attachUpdateNotice(_0xb49e5c,_0x45309f){const _0x2f9538=a327_0x28e1;if(!_0x45309f||!_0xb49e5c||typeof _0xb49e5c!=='object')return _0xb49e5c;const _0xf83303=_0xb49e5c,_0xb00c99=typeof _0xf83303[_0x2f9538(0xcd)]==='object'&&_0xf83303[_0x2f9538(0xcd)]!==null?_0xf83303[_0x2f9538(0xcd)]:{};return{..._0xf83303,'_notice':{..._0xb00c99,'update':_0x45309f}};}function a327_0x538b(){const _0x3b574d=['pretty','requiresAppCode','has','apiDir','937220eVghWu','name','45jxCOpS','High-risk\x20operation\x20`','selectedAppName','explicitAppName','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','length','Edit\x20the\x20config\x20file\x20manually','54vDmzFn','1186932HdRmaT','command','cancelled','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','entries','defaultApp','../constant/domain.js','doctor','map','App\x20\x22','includes','\x20\x20\x20Continue?\x20[y/N]\x20','find','replace','riskLevel','defaultPageSize','defaultVerbose','currentApp','12394sLhfjw','AppCode\x20\x22','hasFormat','all','98XwCtFw','hint','resolveAppCode','rawFlags','262868cEfzBh','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','join','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','update','180NCrONh','../core/api-client.js','RABETBASE_APPCODE','Available:\x20','configMissing','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','18977VHTdNN','filter','authRequired','pageSize','execute','trim','formatOutput','cookie','_notice','appcode','verbose','schema','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','required','service','catch','risk','production','LOVRABET_APPCODE','⚠\x20\x20High-risk\x20operation:\x20','Set\x20appcode\x20via\x20`','format','mergedCli','55pPXNye','\x0a\x20\x20','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','nonInteractive','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','string','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','message','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','validation','2301CnYRdC','57456VkkKXg','apps','value','keys','338864IlRPuc','toUpperCase','meowKey'];a327_0x538b=function(){return _0x3b574d;};return a327_0x538b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x498f7c,_0x9c8d5c){const _0x5dc3b1=a328_0x588e,_0x1d696c=_0x498f7c();while(!![]){try{const _0x451b66=parseInt(_0x5dc3b1(0x9f))/0x1+-parseInt(_0x5dc3b1(0xa0))/0x2+-parseInt(_0x5dc3b1(0x9a))/0x3+-parseInt(_0x5dc3b1(0x98))/0x4+parseInt(_0x5dc3b1(0x9d))/0x5+-parseInt(_0x5dc3b1(0x9e))/0x6*(parseInt(_0x5dc3b1(0x9b))/0x7)+-parseInt(_0x5dc3b1(0x9c))/0x8*(-parseInt(_0x5dc3b1(0x99))/0x9);if(_0x451b66===_0x9c8d5c)break;else _0x1d696c['push'](_0x1d696c['shift']());}catch(_0x13b711){_0x1d696c['push'](_0x1d696c['shift']());}}}(a328_0x16e1,0x52acf));function a328_0x16e1(){const _0x19f78c=['574302yFVwef','619711MMFwwz','652162XPfvDT','1910244qjbyJP','72wszkRq','1169910lJakci','7cStQvv','403512JbpZRC','3023725bnSakg'];a328_0x16e1=function(){return _0x19f78c;};return a328_0x16e1();}import{buildSchemaPayload as a328_0x376662}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a328_0x588e(_0x288577,_0x1a1fcc){_0x288577=_0x288577-0x98;const _0x16e11d=a328_0x16e1();let _0x588e24=_0x16e11d[_0x288577];return _0x588e24;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const {serviceRegistry:_0x5859fd,findDefinition:_0x127dfd}=await import('../commands/registry.js');return a328_0x376662({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x5859fd,'buildAllFlags':buildAllFlags,'findDefinition':_0x127dfd});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x78fd28,_0x45b6b1){const _0x41dd2d=a329_0x1f43,_0x5fb3ad=_0x78fd28();while(!![]){try{const _0x44f93b=-parseInt(_0x41dd2d(0x19e))/0x1+-parseInt(_0x41dd2d(0x199))/0x2+parseInt(_0x41dd2d(0x18c))/0x3*(-parseInt(_0x41dd2d(0x192))/0x4)+-parseInt(_0x41dd2d(0x18e))/0x5+-parseInt(_0x41dd2d(0x19c))/0x6*(-parseInt(_0x41dd2d(0x18a))/0x7)+-parseInt(_0x41dd2d(0x189))/0x8+parseInt(_0x41dd2d(0x19d))/0x9;if(_0x44f93b===_0x45b6b1)break;else _0x5fb3ad['push'](_0x5fb3ad['shift']());}catch(_0xeb8590){_0x5fb3ad['push'](_0x5fb3ad['shift']());}}}(a329_0x4c12,0x1c0f4));function a329_0x1f43(_0x58c38e,_0x3db7ce){_0x58c38e=_0x58c38e-0x187;const _0x4c12fb=a329_0x4c12();let _0x1f43bc=_0x4c12fb[_0x58c38e];return _0x1f43bc;}import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function assertSupportedCommandFlags(_0x346287,_0x27340b){const _0x14bc93=a329_0x1f43;if(!_0x346287[_0x14bc93(0x197)])return;const _0xedebe6=new Set(['help',_0x14bc93(0x1a3)]),_0x438659=GLOBAL_FLAGS[_0x14bc93(0x18f)](_0x2d08df=>PIPELINE_FLAG_NAMES[_0x14bc93(0x18d)](_0x2d08df[_0x14bc93(0x19a)]));for(const _0x3a6cad of[..._0x346287[_0x14bc93(0x193)],..._0x438659]){addFlagCandidates(_0xedebe6,_0x3a6cad);}for(const [_0x23cba3,_0x2c7802]of Object[_0x14bc93(0x194)](_0x27340b)){if(!isExplicitValue(_0x2c7802)||_0xedebe6[_0x14bc93(0x18d)](_0x23cba3))continue;const _0x5e0c75=GLOBAL_FLAGS[_0x14bc93(0x1a1)](_0x197e0c=>_0x197e0c[_0x14bc93(0x187)]===_0x23cba3)?.[_0x14bc93(0x19a)]??toKebabCase(_0x23cba3);throw CliErrors['validation']('Unsupported\x20flag\x20--'+_0x5e0c75+_0x14bc93(0x190)+CLI_BIN_NAME+'\x20'+_0x346287['service']+'\x20'+_0x346287[_0x14bc93(0x188)]+'`.',_0x14bc93(0x191)+CLI_BIN_NAME+'\x20'+_0x346287[_0x14bc93(0x195)]+'\x20'+_0x346287['command']+_0x14bc93(0x1a2));}}function addFlagCandidates(_0x2ed951,_0x42dac3){const _0x21029a=a329_0x1f43,_0x5c94fa='meowKey'in _0x42dac3?[_0x42dac3['name'],_0x42dac3[_0x21029a(0x187)]]:[_0x42dac3[_0x21029a(0x19a)],_0x42dac3[_0x21029a(0x18b)]];for(const _0x3e3af0 of _0x5c94fa){if(!_0x3e3af0)continue;_0x2ed951[_0x21029a(0x196)](_0x3e3af0),_0x2ed951['add'](toCamelCase(_0x3e3af0));}}function a329_0x4c12(){const _0x2ef82b=['name','$1-$2','2898UeJyEo','6756138ePrXck','127570iKNGwD','toUpperCase','toLowerCase','find','\x20--help`\x20to\x20view\x20the\x20current\x20command\x20contract.','version','replace','meowKey','command','205544KCoFLa','161JiBLZm','alias','209130LkInBI','has','713360ffLcEh','filter','\x20for\x20`','Run\x20`','12qwNJMX','flags','entries','service','add','strictFlags','length','283588zMQRaK'];a329_0x4c12=function(){return _0x2ef82b;};return a329_0x4c12();}function isExplicitValue(_0x3fe98c){const _0x3916fd=a329_0x1f43;return _0x3fe98c!==undefined&&_0x3fe98c!==null&&_0x3fe98c!==![]&&(!Array['isArray'](_0x3fe98c)||_0x3fe98c[_0x3916fd(0x198)]>0x0);}function toCamelCase(_0x473159){const _0x1ad2e4=a329_0x1f43;return _0x473159[_0x1ad2e4(0x1a4)](/-([a-z])/g,(_0xd65e1,_0x2e090c)=>_0x2e090c[_0x1ad2e4(0x19f)]());}function toKebabCase(_0x2e84b1){const _0x4d25c6=a329_0x1f43;return _0x2e84b1[_0x4d25c6(0x1a4)](/([a-z0-9])([A-Z])/g,_0x4d25c6(0x19b))[_0x4d25c6(0x1a0)]();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a330_0x585a(_0xc803d8,_0x3d29d9){_0xc803d8=_0xc803d8-0x135;var _0x1ad12e=a330_0x1ad1();var _0x585ab1=_0x1ad12e[_0xc803d8];return _0x585ab1;}function a330_0x1ad1(){var _0x4d21b7=['45875840rIHRdz','32cFTpry','1313715QOyuAl','24JFKMEW','10055913RGcUzN','2232948CQSTYj','503uRUklT','9432dMmrJQ','1979532xtCzIj','104KeTOFj'];a330_0x1ad1=function(){return _0x4d21b7;};return a330_0x1ad1();}(function(_0x500e84,_0x332a24){var _0x534d56=a330_0x585a,_0x36a2a9=_0x500e84();while(!![]){try{var _0x4722e5=parseInt(_0x534d56(0x137))/0x1+-parseInt(_0x534d56(0x13a))/0x2*(-parseInt(_0x534d56(0x138))/0x3)+-parseInt(_0x534d56(0x136))/0x4+parseInt(_0x534d56(0x13d))/0x5*(-parseInt(_0x534d56(0x13e))/0x6)+-parseInt(_0x534d56(0x135))/0x7+-parseInt(_0x534d56(0x13c))/0x8*(parseInt(_0x534d56(0x139))/0x9)+parseInt(_0x534d56(0x13b))/0xa;if(_0x4722e5===_0x332a24)break;else _0x36a2a9['push'](_0x36a2a9['shift']());}catch(_0x1c5896){_0x36a2a9['push'](_0x36a2a9['shift']());}}}(a330_0x1ad1,0xc9a9f));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.5.
|
|
2
|
-
export declare const GIT_TAG = "v2.5.
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-11-
|
|
1
|
+
export declare const VERSION = "2.5.12";
|
|
2
|
+
export declare const GIT_TAG = "v2.5.12";
|
|
3
|
+
export declare const GIT_COMMIT = "91bdc2fa";
|
|
4
|
+
export declare const BUILD_TIME = "2026-11-05T09:33:14.021Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a331_0x5134d5=a331_0xf12b;(function(_0x28561c,_0x492db6){const _0x4b6de2=a331_0xf12b,_0x1482f4=_0x28561c();while(!![]){try{const _0x13f363=parseInt(_0x4b6de2(0x143))/0x1*(parseInt(_0x4b6de2(0x14b))/0x2)+parseInt(_0x4b6de2(0x13f))/0x3+parseInt(_0x4b6de2(0x146))/0x4*(parseInt(_0x4b6de2(0x144))/0x5)+parseInt(_0x4b6de2(0x148))/0x6*(parseInt(_0x4b6de2(0x147))/0x7)+-parseInt(_0x4b6de2(0x14d))/0x8+-parseInt(_0x4b6de2(0x14a))/0x9+parseInt(_0x4b6de2(0x149))/0xa*(parseInt(_0x4b6de2(0x141))/0xb);if(_0x13f363===_0x492db6)break;else _0x1482f4['push'](_0x1482f4['shift']());}catch(_0x548e84){_0x1482f4['push'](_0x1482f4['shift']());}}}(a331_0xa357,0x40104));export const VERSION=a331_0x5134d5(0x142);function a331_0xf12b(_0x20178b,_0x14cb7f){_0x20178b=_0x20178b-0x13f;const _0xa357e1=a331_0xa357();let _0xf12bc0=_0xa357e1[_0x20178b];return _0xf12bc0;}export const GIT_TAG=a331_0x5134d5(0x145);export const GIT_COMMIT=a331_0x5134d5(0x140);export const BUILD_TIME=a331_0x5134d5(0x14c);function a331_0xa357(){const _0x2dc2d5=['3455ByXsEw','v2.5.12','372jGyTda','3098011RiSUqf','6KdvKch','7530bDcoim','2879586KafgOk','734iBAorP','2026-11-05T09:33:14.021Z','3022184yitRDJ','241776WumTUP','91bdc2fa','1177KdUArm','2.5.12','796bcgsgU'];a331_0xa357=function(){return _0x2dc2d5;};return a331_0xa357();}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const ROUTING_CATALOG_DIGEST: "
|
|
1
|
+
export declare const ROUTING_CATALOG_DIGEST: "5a3c4ca34546427528221911a6be02953b976d9968c1863c4fdec2d1e7319397";
|
|
2
2
|
export declare const DEFAULT_REGION: "cn";
|
|
3
3
|
export declare const REGION_VALUES: readonly ["cn", "id", "global"];
|
|
4
4
|
export declare const ENABLED_REGION_VALUES: readonly ["cn", "id", "global"];
|
|
@@ -69,6 +69,7 @@ export declare const OFFICIAL_ROUTING_PROFILES: {
|
|
|
69
69
|
readonly runtime: "https://runtime.lovrabet.ai";
|
|
70
70
|
readonly skill: "https://skills.lovrabet.ai";
|
|
71
71
|
readonly kb: "https://api.lovrabet.ai";
|
|
72
|
+
readonly kbService: "https://kb-service.lovrabet.ai";
|
|
72
73
|
readonly app: "https://app.lovrabet.ai";
|
|
73
74
|
};
|
|
74
75
|
readonly daily: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a332_0x9fb881=a332_0x543e;(function(_0x22c72a,_0x5e5cfe){const _0x7cff0f=a332_0x543e,_0x28edd1=_0x22c72a();while(!![]){try{const _0x162796=-parseInt(_0x7cff0f(0xca))/0x1+parseInt(_0x7cff0f(0xc7))/0x2+parseInt(_0x7cff0f(0xe1))/0x3+-parseInt(_0x7cff0f(0xc3))/0x4+parseInt(_0x7cff0f(0xd1))/0x5*(parseInt(_0x7cff0f(0xe5))/0x6)+parseInt(_0x7cff0f(0xd9))/0x7+parseInt(_0x7cff0f(0xcb))/0x8;if(_0x162796===_0x5e5cfe)break;else _0x28edd1['push'](_0x28edd1['shift']());}catch(_0xed2a12){_0x28edd1['push'](_0x28edd1['shift']());}}}(a332_0x44c1,0x608ee));export const ROUTING_CATALOG_DIGEST='5a3c4ca34546427528221911a6be02953b976d9968c1863c4fdec2d1e7319397';export const DEFAULT_REGION='cn';function a332_0x44c1(){const _0x135b6c=['https://app.lovrabet.id','https://g.lovrabet.com','https://user-daily.lovrabet.ai','378464iKQBrs','https://daily-runtime.lovrabet.ai','https://skills.lovrabet.id','54855trbUMv','4715976UCeoRs','Global','https://app.lovrabet.com','https://api.lovrabet.ai','Indonesia','https://runtime.lovrabet.ai','5QIZlmW','https://daily-api.lovrabet.ai','https://runtime.lovrabet.id','Mainland\x20China','https://skills-daily.lovrabet.ai','https://g.lovrabet.ai','https://runtime.lovrabet.com','china','523684DfkvFS','https://dev.lovrabet.ai','https://daily.lovrabet.com','https://skills.lovrabet.ai','https://dev.lovrabet.id','global','https://kb-service.lovrabet.id','https://daily-api.lovrabet.com','409908ZlUEXc','https://user.lovrabet.ai','https://user-daily.lovrabet.com','https://daily.lovrabet.ai','228216tZvUVe','https://skills.lovrabet.com','https://user.lovrabet.id','https://api.lovrabet.id','https://skills-daily.lovrabet.com','https://kb-service-daily.lovrabet.com','https://kb-service.lovrabet.com','https://kb-service.lovrabet.ai','2311424psTjkC'];a332_0x44c1=function(){return _0x135b6c;};return a332_0x44c1();}export const REGION_VALUES=['cn','id',a332_0x9fb881(0xde)];function a332_0x543e(_0x5415e6,_0x37f034){_0x5415e6=_0x5415e6-0xc3;const _0x44c1b8=a332_0x44c1();let _0x543e32=_0x44c1b8[_0x5415e6];return _0x543e32;}export const ENABLED_REGION_VALUES=['cn','id',a332_0x9fb881(0xde)];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a332_0x9fb881(0xd4),'aliases':[a332_0x9fb881(0xd8)],'serviceDomains':{'production':{'user':'https://user.lovrabet.com','api':'https://api.lovrabet.com','runtime':a332_0x9fb881(0xd7),'skill':a332_0x9fb881(0xe6),'kb':'https://api.lovrabet.com','kbService':a332_0x9fb881(0xeb),'app':a332_0x9fb881(0xcd)},'daily':{'user':a332_0x9fb881(0xe3),'api':a332_0x9fb881(0xe0),'runtime':'https://daily-runtime.lovrabet.com','skill':a332_0x9fb881(0xe9),'kb':a332_0x9fb881(0xe0),'kbService':a332_0x9fb881(0xea),'app':a332_0x9fb881(0xdb)}},'cdn':{'libraries':'https://g.alicdn.com/code/lib','lovrabet':a332_0x9fb881(0xc5)},'local':{'origin':'https://dev.lovrabet.com'}},'id':{'enabled':!![],'label':a332_0x9fb881(0xcf),'aliases':['indonesia'],'serviceDomains':{'production':{'user':a332_0x9fb881(0xe7),'api':'https://api.lovrabet.id','runtime':a332_0x9fb881(0xd3),'skill':a332_0x9fb881(0xc9),'kb':a332_0x9fb881(0xe8),'kbService':a332_0x9fb881(0xdf),'app':a332_0x9fb881(0xc4)}},'cdn':{'libraries':'https://cdnjs.cloudflare.com/ajax/libs','lovrabet':'https://g.lovrabet.id'},'local':{'origin':a332_0x9fb881(0xdd)}},'global':{'enabled':!![],'label':a332_0x9fb881(0xcc),'aliases':[],'serviceDomains':{'production':{'user':a332_0x9fb881(0xe2),'api':'https://api.lovrabet.ai','runtime':a332_0x9fb881(0xd0),'skill':a332_0x9fb881(0xdc),'kb':a332_0x9fb881(0xce),'kbService':a332_0x9fb881(0xec),'app':'https://app.lovrabet.ai'},'daily':{'user':a332_0x9fb881(0xc6),'api':a332_0x9fb881(0xd2),'runtime':a332_0x9fb881(0xc8),'skill':a332_0x9fb881(0xd5),'kb':'https://daily-api.lovrabet.ai','app':a332_0x9fb881(0xe4)}},'cdn':{'libraries':'https://cdnjs.cloudflare.com/ajax/libs','lovrabet':a332_0x9fb881(0xd6)},'local':{'origin':a332_0x9fb881(0xda)}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a333_0x11b1(_0x2ba48c,_0x346eb5){_0x2ba48c=_0x2ba48c-0xdd;const _0x4cf86e=a333_0x4cf8();let _0x11b15c=_0x4cf86e[_0x2ba48c];return _0x11b15c;}const a333_0x2a791e=a333_0x11b1;(function(_0x3f85ed,_0x16d7fe){const _0x4715b8=a333_0x11b1,_0x11d5d0=_0x3f85ed();while(!![]){try{const _0x30cf9d=-parseInt(_0x4715b8(0xe8))/0x1+parseInt(_0x4715b8(0xf3))/0x2*(-parseInt(_0x4715b8(0xe7))/0x3)+parseInt(_0x4715b8(0xee))/0x4*(parseInt(_0x4715b8(0xe0))/0x5)+-parseInt(_0x4715b8(0xed))/0x6+-parseInt(_0x4715b8(0xe5))/0x7*(-parseInt(_0x4715b8(0xe3))/0x8)+-parseInt(_0x4715b8(0xf1))/0x9*(parseInt(_0x4715b8(0xf0))/0xa)+parseInt(_0x4715b8(0xef))/0xb;if(_0x30cf9d===_0x16d7fe)break;else _0x11d5d0['push'](_0x11d5d0['shift']());}catch(_0x5bf3d2){_0x11d5d0['push'](_0x11d5d0['shift']());}}}(a333_0x4cf8,0x43cd5));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a333_0x2a791e(0xdf);function a333_0x4cf8(){const _0x3d3de6=['87516CqNkmI','userDomain','147082aKnIRh','kbServiceDomain','libraries','skillDomain','a03fe188b2b34518efc5668666c0001d20354882cd7dd70afec902dffe1329c3','5RHeyFM','lovrabet','localDomain','416avmOlf','appDomain','23821lumysP','kbDomain','9KUDXuH','502107XwIOuz','enterprise','apiDomain','runtimeDomain','certificateDomain','2444568sThChs','699536wrZzfU','13969593ZZhtnf','220ZeIYIB'];a333_0x4cf8=function(){return _0x3d3de6;};return a333_0x4cf8();}export const ENTERPRISE_ROUTING_PROTOCOL='lovrabet-routing/v1';export const ENTERPRISE_ROUTING_KIND=a333_0x2a791e(0xe9);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a333_0x2a791e(0xf2),a333_0x2a791e(0xea),a333_0x2a791e(0xeb),a333_0x2a791e(0xde),a333_0x2a791e(0xe6),a333_0x2a791e(0xf4),a333_0x2a791e(0xe4),a333_0x2a791e(0xe2),a333_0x2a791e(0xec)];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=['userDomain','apiDomain',a333_0x2a791e(0xeb),a333_0x2a791e(0xde),a333_0x2a791e(0xe6),'appDomain'];export const ENTERPRISE_ROUTING_CDN_FIELDS=[a333_0x2a791e(0xdd),'lovrabet'];export const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS=[a333_0x2a791e(0xdd),a333_0x2a791e(0xe1)];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x36d26f,_0x1df1fd){var _0x53feac=a334_0x29be,_0x2e6965=_0x36d26f();while(!![]){try{var _0x56e7c5=parseInt(_0x53feac(0x16c))/0x1+-parseInt(_0x53feac(0x168))/0x2*(-parseInt(_0x53feac(0x16b))/0x3)+parseInt(_0x53feac(0x170))/0x4+parseInt(_0x53feac(0x171))/0x5+-parseInt(_0x53feac(0x166))/0x6*(parseInt(_0x53feac(0x172))/0x7)+-parseInt(_0x53feac(0x174))/0x8+-parseInt(_0x53feac(0x16a))/0x9;if(_0x56e7c5===_0x1df1fd)break;else _0x2e6965['push'](_0x2e6965['shift']());}catch(_0xa42b23){_0x2e6965['push'](_0x2e6965['shift']());}}}(a334_0x3a6b,0xa59b8));function a334_0x29be(_0x28fcdc,_0x3058d9){_0x28fcdc=_0x28fcdc-0x166;var _0x3a6b84=a334_0x3a6b();var _0x29be66=_0x3a6b84[_0x28fcdc];return _0x29be66;}import a334_0x5de538 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x146fc3=a334_0x29be;console[_0x146fc3(0x16f)](),console[_0x146fc3(0x16f)](a334_0x5de538['green'][_0x146fc3(0x173)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x146fc3(0x16f)](),console[_0x146fc3(0x16f)](_0x146fc3(0x169)+a334_0x5de538[_0x146fc3(0x167)][_0x146fc3(0x173)](CLI_BIN_NAME+_0x146fc3(0x16d))+_0x146fc3(0x16e)),console[_0x146fc3(0x16f)]();}function a334_0x3a6b(){var _0x358fae=['green','1461802fedZRD','\x20\x20Use\x20','4864374eqYNWz','3dEgDoj','511492GWjrjX','\x20--help','\x20to\x20view\x20available\x20commands.','log','120148LnGmRO','1430975sjsWrL','154HCkbUa','bold','779144qkHfkw','66114esbWIY'];a334_0x3a6b=function(){return _0x358fae;};return a334_0x3a6b();}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x218f82,_0x22018e){const _0x4ad66d=a335_0x452f,_0x5abbcd=_0x218f82();while(!![]){try{const _0x211002=-parseInt(_0x4ad66d(0x1fc))/0x1+parseInt(_0x4ad66d(0x1f7))/0x2+parseInt(_0x4ad66d(0x204))/0x3*(parseInt(_0x4ad66d(0x1f3))/0x4)+-parseInt(_0x4ad66d(0x207))/0x5*(parseInt(_0x4ad66d(0x1ff))/0x6)+parseInt(_0x4ad66d(0x1f8))/0x7*(-parseInt(_0x4ad66d(0x1f6))/0x8)+-parseInt(_0x4ad66d(0x1f2))/0x9+parseInt(_0x4ad66d(0x203))/0xa;if(_0x211002===_0x22018e)break;else _0x5abbcd['push'](_0x5abbcd['shift']());}catch(_0x126cd0){_0x5abbcd['push'](_0x5abbcd['shift']());}}}(a335_0x13a9,0x5ae10));function a335_0x13a9(){const _0x4a150b=['539941pphAPI','\x20via\x20skills@latest','\x20at\x20','198nWFKIG','SOURCE_INVALID','Rabetbase\x20Built-in\x20Skill\x20','code','3435060YmQmcz','3sGBuQE','Repair\x20with:\x20','error','265uUVOwU','Installation\x20failed','3580434cCOjOE','1287508iBxETt','already\x20current','installedPath','8TNuGkX','1352984VrFdVo','210833txxJEZ','FAILED','[BUILTIN_SKILL_INSTALL_','warn'];a335_0x13a9=function(){return _0x4a150b;};return a335_0x13a9();}function a335_0x452f(_0x281c0c,_0x54d713){_0x281c0c=_0x281c0c-0x1f2;const _0x13a91a=a335_0x13a9();let _0x452fa4=_0x13a91a[_0x281c0c];return _0x452fa4;}import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x38585d={}){const _0x4fe2a1=a335_0x452f,_0x9da408=installBuiltinSkill(_0x38585d);if(_0x9da408['ok']){const _0x2d5750=_0x9da408['changed']?'installed':_0x4fe2a1(0x1f4),_0x51a25f=_0x9da408[_0x4fe2a1(0x1f5)]?_0x4fe2a1(0x1fe)+_0x9da408[_0x4fe2a1(0x1f5)]:_0x4fe2a1(0x1fd);return console['log'](_0x4fe2a1(0x201)+_0x9da408['skillVersion']+'\x20'+_0x2d5750+_0x51a25f),_0x9da408;}const _0x3645dc=_0x4fe2a1(0x1fa)+(_0x9da408[_0x4fe2a1(0x202)]??_0x4fe2a1(0x1f9))+']\x20'+(_0x9da408[_0x4fe2a1(0x206)]??_0x4fe2a1(0x208))+'.\x20'+(_0x4fe2a1(0x205)+_0x9da408['repairCommand']);if(_0x9da408['code']===_0x4fe2a1(0x200))throw new Error(_0x3645dc);return console[_0x4fe2a1(0x1fb)](_0x3645dc),_0x9da408;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a336_0x5b41(){const _0x255891=['risk','115182NlutCI','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','9743382XjeMrA','This\x20will\x20run\x20the\x20write\x20','2390576znUhTC','.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.','replace','2957604SsHxIf','This\x20will\x20run\x20the\x20high-risk\x20write\x20','290LcdDwT','239378nEUsxq','23043527yIlNgN','slice','42977kSbcul','4QhlNkU','trim','28RHnHyT','3jgLMPM','.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.','string','2790wpOnYR','12tMkOTA'];a336_0x5b41=function(){return _0x255891;};return a336_0x5b41();}(function(_0xb33038,_0x48dd22){const _0x57eb80=a336_0xc229,_0x104928=_0xb33038();while(!![]){try{const _0x59a0ed=-parseInt(_0x57eb80(0x132))/0x1*(parseInt(_0x57eb80(0x136))/0x2)+parseInt(_0x57eb80(0x139))/0x3*(-parseInt(_0x57eb80(0x12f))/0x4)+parseInt(_0x57eb80(0x131))/0x5*(parseInt(_0x57eb80(0x13f))/0x6)+-parseInt(_0x57eb80(0x138))/0x7*(-parseInt(_0x57eb80(0x143))/0x8)+-parseInt(_0x57eb80(0x141))/0x9+-parseInt(_0x57eb80(0x13c))/0xa*(parseInt(_0x57eb80(0x135))/0xb)+parseInt(_0x57eb80(0x13d))/0xc*(parseInt(_0x57eb80(0x133))/0xd);if(_0x59a0ed===_0x48dd22)break;else _0x104928['push'](_0x104928['shift']());}catch(_0x5350c2){_0x104928['push'](_0x104928['shift']());}}}(a336_0x5b41,0xa8935));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x3a5509,_0x4536ba,_0x292001){const _0x5973ae=normalizeText(_0x3a5509['confirmationDescription'],DESCRIPTION_MAX_LENGTH),_0x288370=_0x5973ae||normalizeText(defaultDescription(requireWriteRisk(_0x3a5509),_0x4536ba),DESCRIPTION_MAX_LENGTH);return{'operation':_0x4536ba,'risk':requireWriteRisk(_0x3a5509),'description':_0x288370,..._0x292001?{'signal':_0x292001}:{}};}function requireWriteRisk(_0x146ade){const _0x5b46c7=a336_0xc229;if(_0x146ade['risk']==='write'||_0x146ade[_0x5b46c7(0x13e)]==='high-risk-write')return _0x146ade[_0x5b46c7(0x13e)];throw new Error(_0x5b46c7(0x140));}function defaultDescription(_0x223ea9,_0x2317af){const _0x4192d1=a336_0xc229;if(_0x223ea9==='high-risk-write')return _0x4192d1(0x130)+_0x2317af+_0x4192d1(0x144);return _0x4192d1(0x142)+_0x2317af+_0x4192d1(0x13a);}function a336_0xc229(_0x5aa3c7,_0x1769d5){_0x5aa3c7=_0x5aa3c7-0x12f;const _0x5b41ba=a336_0x5b41();let _0xc22914=_0x5b41ba[_0x5aa3c7];return _0xc22914;}function normalizeText(_0x1176cd,_0x1d3ec0){const _0x33ca87=a336_0xc229;if(typeof _0x1176cd!==_0x33ca87(0x13b))return'';return _0x1176cd['replace'](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x33ca87(0x145)](/\s+/g,'\x20')[_0x33ca87(0x137)]()[_0x33ca87(0x134)](0x0,_0x1d3ec0);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a337_0xd3fc(_0x556b31,_0x500ad9){_0x556b31=_0x556b31-0x1ce;const _0xdc467b=a337_0xdc46();let _0xd3fcb1=_0xdc467b[_0x556b31];return _0xd3fcb1;}(function(_0x56a314,_0x46f078){const _0x5c8411=a337_0xd3fc,_0x34e4d7=_0x56a314();while(!![]){try{const _0x1eded5=-parseInt(_0x5c8411(0x1d1))/0x1*(-parseInt(_0x5c8411(0x1de))/0x2)+-parseInt(_0x5c8411(0x1d8))/0x3*(-parseInt(_0x5c8411(0x1db))/0x4)+parseInt(_0x5c8411(0x1e3))/0x5*(-parseInt(_0x5c8411(0x1d9))/0x6)+-parseInt(_0x5c8411(0x1d2))/0x7+parseInt(_0x5c8411(0x1d7))/0x8*(parseInt(_0x5c8411(0x1d4))/0x9)+-parseInt(_0x5c8411(0x1df))/0xa+-parseInt(_0x5c8411(0x1e2))/0xb*(-parseInt(_0x5c8411(0x1da))/0xc);if(_0x1eded5===_0x46f078)break;else _0x34e4d7['push'](_0x34e4d7['shift']());}catch(_0x1b7abc){_0x34e4d7['push'](_0x34e4d7['shift']());}}}(a337_0xdc46,0xccc25));function a337_0xdc46(){const _0x1ba1dc=['3HNCpTQ','19428PWwFpv','4038924nqGEtG','3870036HYATPV','rabetbase.write.completed','join','565924zlqQwr','5029250TlMlhs','length','data','11jzzImg','465XdPnYj','conflicts','command','split','3MXXDRK','5632753BkXMrQ','write','80307EzkOjx','risk','isArray','264LAbxGv'];a337_0xdc46=function(){return _0x1ba1dc;};return a337_0xdc46();}export function canonicalRabetbaseOperation(_0x489046){const _0x41bfea=a337_0xd3fc;return[_0x489046['service'],..._0x489046[_0x41bfea(0x1cf)]['trim']()[_0x41bfea(0x1d0)](/\s+/)]['filter'](Boolean)[_0x41bfea(0x1dd)]('.');}export function createRabetbaseWriteMetadata(_0xb73672,_0x548a40,_0x5d7365,_0x4bc602){const _0x1de1e1=a337_0xd3fc;if(_0x4bc602||_0x5d7365['ok']!==!![]||hasUnresolvedConflicts(_0x5d7365)||_0xb73672[_0x1de1e1(0x1d5)]!==_0x1de1e1(0x1d3)&&_0xb73672[_0x1de1e1(0x1d5)]!=='high-risk-write')return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x1de1e1(0x1dc),'operation':_0x548a40,'risk':_0xb73672[_0x1de1e1(0x1d5)]}}};}function hasUnresolvedConflicts(_0x392604){const _0x24bf1a=a337_0xd3fc,_0xee055b=_0x392604[_0x24bf1a(0x1e1)];return Boolean(_0xee055b&&typeof _0xee055b==='object'&&!Array['isArray'](_0xee055b)&&Array[_0x24bf1a(0x1d6)](_0xee055b[_0x24bf1a(0x1ce)])&&_0xee055b[_0x24bf1a(0x1ce)][_0x24bf1a(0x1e0)]>0x0);}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x168029,_0x318e3c){const _0x26ccaa=a338_0x301e,_0xa5ef99=_0x168029();while(!![]){try{const _0x5ac063=parseInt(_0x26ccaa(0x1d1))/0x1*(-parseInt(_0x26ccaa(0x1e5))/0x2)+-parseInt(_0x26ccaa(0x1e2))/0x3+parseInt(_0x26ccaa(0x1de))/0x4*(parseInt(_0x26ccaa(0x1e1))/0x5)+parseInt(_0x26ccaa(0x1dd))/0x6*(-parseInt(_0x26ccaa(0x1e9))/0x7)+parseInt(_0x26ccaa(0x1d6))/0x8+parseInt(_0x26ccaa(0x1d8))/0x9+-parseInt(_0x26ccaa(0x1d0))/0xa;if(_0x5ac063===_0x318e3c)break;else _0xa5ef99['push'](_0xa5ef99['shift']());}catch(_0x561f56){_0xa5ef99['push'](_0xa5ef99['shift']());}}}(a338_0x1035,0x27693));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 a338_0x301e(_0x3a1f80,_0x227dd2){_0x3a1f80=_0x3a1f80-0x1cf;const _0x103557=a338_0x1035();let _0x301ef2=_0x103557[_0x3a1f80];return _0x301ef2;}import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x3f3609,command:_0x3831d2,risk:_0x56e1ea,dryRun:_0x14683e}){const _0x6233d8=a338_0x301e;return JSON[_0x6233d8(0x1d3)]({'ok':_0x3f3609['ok'],'command':_0x3831d2,'risk':_0x56e1ea,..._0x14683e?{'dryRun':!![]}:{},..._0x3f3609[_0x6233d8(0x1e8)]!==undefined?{'data':_0x3f3609['data']}:{},..._0x3f3609['message']?{'message':_0x3f3609['message']}:{}});}};function a338_0x1035(){const _0x44cec0=['reason','confirmation','data','1323jYWajM','execute','dryRun','high-risk-write','dry-run','result','confirm','definition','args','Rabetbase\x20invocation\x20aborted.','1839580LBFHpc','92keQwNJ','service','stringify','command','format','848392FFIzRU','Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.','2465748XhCUzb','AbortError','yes','aborted','presentation','6138wTMGBe','340300yaJiQc','rawFlags','signal','10HsfdmL','33765VreqMI','present','risk','4UdxMPO'];a338_0x1035=function(){return _0x44cec0;};return a338_0x1035();}export async function invokeRabetbase(_0x324f65,_0x109c81){const _0x3cce66=a338_0x301e;throwIfAborted(_0x109c81[_0x3cce66(0x1e0)]);const _0x3ca363=await resolveRabetbaseInvocation(_0x324f65),_0x43a458=canonicalRabetbaseOperation(_0x3ca363[_0x3cce66(0x1f0)]);return await confirmWriteBeforeQueue(_0x3ca363['definition'],_0x3ca363[_0x3cce66(0x1df)],_0x43a458,_0x109c81),runSerialized(async()=>{const _0x4f7c04=_0x3cce66,_0x4e6523={};try{throwIfAborted(_0x109c81[_0x4f7c04(0x1e0)]);const _0x4e4c3f=buildConfigFromFlags(_0x3ca363[_0x4f7c04(0x1df)]);!isRoutingRecoveryService(_0x3ca363[_0x4f7c04(0x1f0)][_0x4f7c04(0x1d2)])&&await initGlobalEnvironment(_0x4e4c3f);const _0x5a3af0=createPipelineEnv(_0x4e4c3f,{..._0x3ca363[_0x4f7c04(0x1df)],'yes':_0x3ca363[_0x4f7c04(0x1f0)]['risk']===_0x4f7c04(0x1ec)?!![]:_0x3ca363[_0x4f7c04(0x1df)][_0x4f7c04(0x1da)],'nonInteractive':!![]},_0x3ca363[_0x4f7c04(0x1f1)]);_0x5a3af0['isNonInteractive']=!![],_0x5a3af0['riskLevel']=_0x4f7c04(0x1ec);const _0x1c7658=withAbortSignal(_0x3ca363['definition'],_0x109c81['signal']),_0x6e689=createRabetbaseRunnerAdapter({'formatOutput'(_0x4de0d1,_0x109ead){const _0x5a8890=_0x4f7c04;_0x4e6523[_0x5a8890(0x1ee)]=_0x4de0d1,_0x4e6523[_0x5a8890(0x1d4)]=_0x109ead[_0x5a8890(0x1d4)],_0x4e6523[_0x5a8890(0x1e4)]=_0x109ead[_0x5a8890(0x1e4)],_0x4e6523['format']=_0x109ead[_0x5a8890(0x1d5)],_0x4e6523[_0x5a8890(0x1eb)]=_0x109ead[_0x5a8890(0x1eb)]===!![];},async 'confirmHighRisk'(){const _0x330d54=_0x4f7c04;throw new Error(_0x330d54(0x1d7));}});await runCommand(_0x1c7658,_0x5a3af0,_0x6e689);if(!_0x4e6523['result']||!_0x4e6523[_0x4f7c04(0x1d4)]||!_0x4e6523[_0x4f7c04(0x1e4)]||!_0x4e6523['format'])throw new Error('Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.');const _0x42276c=_0x4e6523[_0x4f7c04(0x1eb)]===!![],_0x5ea016=_0x109c81[_0x4f7c04(0x1dc)]??defaultPresentation,_0x211d4f={'result':_0x4e6523[_0x4f7c04(0x1ee)],'command':_0x4e6523[_0x4f7c04(0x1d4)],'operation':_0x43a458,'risk':_0x4e6523[_0x4f7c04(0x1e4)],'format':_0x4e6523['format'],'dryRun':_0x42276c},_0x4f7c81=createRabetbaseWriteMetadata(_0x3ca363['definition'],_0x43a458,_0x4e6523[_0x4f7c04(0x1ee)],_0x42276c);let _0x3292fc;try{_0x3292fc=await _0x5ea016[_0x4f7c04(0x1e3)](_0x211d4f);}catch(_0x111694){if(!_0x4f7c81||_0x5ea016===defaultPresentation)throw _0x111694;_0x3292fc=await defaultPresentation[_0x4f7c04(0x1e3)](_0x211d4f);}return{'operation':_0x43a458,'risk':_0x4e6523[_0x4f7c04(0x1e4)],'mode':_0x42276c?_0x4f7c04(0x1ed):'execute','result':_0x4e6523[_0x4f7c04(0x1ee)],'output':_0x3292fc,..._0x4f7c81?{'metadata':_0x4f7c81}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x1178f5,_0x1c06cf,_0x4fad06,_0x2bb03c){const _0x2e188c=a338_0x301e;if(_0x1c06cf[_0x2e188c(0x1eb)]===!![]||_0x1178f5['risk']!=='write'&&_0x1178f5[_0x2e188c(0x1e4)]!==_0x2e188c(0x1ec))return;await _0x2bb03c[_0x2e188c(0x1e7)][_0x2e188c(0x1ef)](buildRabetbaseConfirmationRequest(_0x1178f5,_0x4fad06,_0x2bb03c[_0x2e188c(0x1e0)]));}function withAbortSignal(_0x97d189,_0x1141f6){return{..._0x97d189,async 'execute'(_0x499c1b){const _0x9f7820=a338_0x301e;return throwIfAborted(_0x1141f6),_0x97d189[_0x9f7820(0x1ea)]({..._0x499c1b,'signal':_0x1141f6});}};}function throwIfAborted(_0x2aee2a){const _0x585aba=a338_0x301e;if(_0x2aee2a?.[_0x585aba(0x1db)])throw _0x2aee2a['reason']instanceof Error?_0x2aee2a[_0x585aba(0x1e6)]:new DOMException(_0x585aba(0x1cf),_0x585aba(0x1d9));}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a339_0x1cdef9=a339_0x301c;(function(_0x2d875b,_0x74707e){const _0x476934=a339_0x301c,_0x46f8e4=_0x2d875b();while(!![]){try{const _0x30bb6d=-parseInt(_0x476934(0x1b1))/0x1*(-parseInt(_0x476934(0x1bd))/0x2)+parseInt(_0x476934(0x1b7))/0x3+parseInt(_0x476934(0x1ba))/0x4+parseInt(_0x476934(0x1b5))/0x5*(parseInt(_0x476934(0x1b9))/0x6)+-parseInt(_0x476934(0x1b8))/0x7*(parseInt(_0x476934(0x1b6))/0x8)+parseInt(_0x476934(0x1bb))/0x9*(-parseInt(_0x476934(0x1b0))/0xa)+-parseInt(_0x476934(0x1b4))/0xb*(-parseInt(_0x476934(0x1b2))/0xc);if(_0x30bb6d===_0x74707e)break;else _0x46f8e4['push'](_0x46f8e4['shift']());}catch(_0x57375b){_0x46f8e4['push'](_0x46f8e4['shift']());}}}(a339_0x1915,0x514e3));let tail=Promise[a339_0x1cdef9(0x1b3)]();export async function runSerialized(_0x210887){const _0x3613ad=a339_0x1cdef9,_0x12edec=tail;let _0x565b50;tail=new Promise(_0xae6e3c=>{_0x565b50=_0xae6e3c;}),await _0x12edec[_0x3613ad(0x1bc)](()=>undefined);try{return await _0x210887();}finally{_0x565b50();}}function a339_0x301c(_0x132137,_0x380251){_0x132137=_0x132137-0x1b0;const _0x191505=a339_0x1915();let _0x301cd0=_0x191505[_0x132137];return _0x301cd0;}function a339_0x1915(){const _0xde52dd=['resolve','66LorrBr','75980NnbAwZ','8tCHgLi','41586WvayRA','3290308npxrIZ','96LaAzHJ','1076352bfYrvq','574614WHkIKQ','catch','773666PChdfp','50pZxSBu','1MWBIKu','418764rRJrmo'];a339_0x1915=function(){return _0xde52dd;};return a339_0x1915();}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3ac2b5,_0x1568d2){const _0x3a14b6=a340_0x5ba8,_0x498f7f=_0x3ac2b5();while(!![]){try{const _0x50a7b6=-parseInt(_0x3a14b6(0xcf))/0x1+-parseInt(_0x3a14b6(0xc9))/0x2+-parseInt(_0x3a14b6(0xc7))/0x3*(parseInt(_0x3a14b6(0xc4))/0x4)+parseInt(_0x3a14b6(0xc8))/0x5*(parseInt(_0x3a14b6(0xc1))/0x6)+parseInt(_0x3a14b6(0xcb))/0x7*(-parseInt(_0x3a14b6(0xcd))/0x8)+-parseInt(_0x3a14b6(0xc2))/0x9+parseInt(_0x3a14b6(0xce))/0xa;if(_0x50a7b6===_0x1568d2)break;else _0x498f7f['push'](_0x498f7f['shift']());}catch(_0x557d7a){_0x498f7f['push'](_0x498f7f['shift']());}}}(a340_0x5ea5,0xc280d));import a340_0x493ab2 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a340_0x5ba8(_0x4c314b,_0x285a9b){_0x4c314b=_0x4c314b-0xc0;const _0x5ea5e8=a340_0x5ea5();let _0x5ba8b8=_0x5ea5e8[_0x4c314b];return _0x5ba8b8;}import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';import{assertSupportedCommandFlags}from'../framework/supported-flags.js';export async function resolveRabetbaseInvocation(_0x335b98){const _0x243448=a340_0x5ba8,_0x4fcfd0=a340_0x493ab2('',{'importMeta':import.meta,'argv':[..._0x335b98],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x15b243=[..._0x4fcfd0[_0x243448(0xcc)]],_0x5e3eb3=_0x4fcfd0['flags'],_0x337f6d=_0x15b243[0x0];if(!_0x337f6d)throw CliErrors[_0x243448(0xc0)]('Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.');const _0x5d2a1a=resolveRemovedCommand(_0x337f6d,_0x15b243[0x1]);if(_0x5d2a1a)throw CliErrors[_0x243448(0xc0)](_0x5d2a1a['message'],_0x5d2a1a[_0x243448(0xc3)]);if(_0x337f6d===_0x243448(0xd1))throw CliErrors[_0x243448(0xc0)](_0x243448(0xc5),_0x243448(0xd3));if(!isKnownService(_0x337f6d))throw CliErrors[_0x243448(0xd0)](_0x15b243[_0x243448(0xca)]('\x20'));const _0x354439=getServiceEntry(_0x337f6d),_0x4a7bfc=_0x15b243[0x1],_0x36de9e=_0x4a7bfc||_0x354439['defaultCommand'];if(!_0x36de9e){if(_0x354439['wildcardDef'])return{'definition':_0x354439[_0x243448(0xd2)],'rawFlags':_0x5e3eb3,'args':[]};throw CliErrors[_0x243448(0xc0)]('Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22'+_0x337f6d+'\x22.');}const _0x392732=findDefinition(_0x337f6d,_0x36de9e);if(_0x392732)return assertSupportedCommandFlags(_0x392732,_0x5e3eb3),{'definition':_0x392732,'rawFlags':_0x5e3eb3,'args':_0x15b243[_0x243448(0xc6)](0x2)};if(_0x354439['wildcardDef'])return{'definition':_0x354439[_0x243448(0xd2)],'rawFlags':_0x5e3eb3,'args':[_0x36de9e,..._0x15b243[_0x243448(0xc6)](0x2)]};throw CliErrors[_0x243448(0xd0)](_0x337f6d+'\x20'+_0x36de9e);}function a340_0x5ea5(){const _0x140661=['3FMqznB','8075mxqMMQ','1568470hGdfew','join','630TpsAuC','input','72264vokSaZ','34263990OpxuwD','298273oRrTFv','unknownCommand','run','wildcardDef','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','validation','2712mzqHnV','8518095gTyFXu','hint','2071044NjkkFo','`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.','slice'];a340_0x5ea5=function(){return _0x140661;};return a340_0x5ea5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a342_0x5c19(_0x357554,_0x2dfa20){_0x357554=_0x357554-0x1ee;const _0x866675=a342_0x8666();let _0x5c19a6=_0x866675[_0x357554];return _0x5c19a6;}(function(_0x497d76,_0x376970){const _0x121e24=a342_0x5c19,_0xa1b683=_0x497d76();while(!![]){try{const _0x27f182=parseInt(_0x121e24(0x1f8))/0x1+-parseInt(_0x121e24(0x1f4))/0x2*(parseInt(_0x121e24(0x201))/0x3)+-parseInt(_0x121e24(0x20b))/0x4*(parseInt(_0x121e24(0x207))/0x5)+parseInt(_0x121e24(0x1f5))/0x6*(parseInt(_0x121e24(0x1f9))/0x7)+-parseInt(_0x121e24(0x1f6))/0x8+-parseInt(_0x121e24(0x200))/0x9*(-parseInt(_0x121e24(0x202))/0xa)+parseInt(_0x121e24(0x1f1))/0xb*(-parseInt(_0x121e24(0x1fe))/0xc);if(_0x27f182===_0x376970)break;else _0xa1b683['push'](_0xa1b683['shift']());}catch(_0x4cdf5){_0xa1b683['push'](_0xa1b683['shift']());}}}(a342_0x8666,0xac64e));import{randomUUID}from'node:crypto';import{dirname}from'node:path';import{mkdir,open,link,unlink,rename,lstat,readFile}from'node:fs/promises';function a342_0x8666(){const _0x2a3adf=['parse','12933GRQbgD','2397Kamhse','9730PUmAXk','catch','clientOperationId','dataset-design-operation','Invalid\x20checkpoint;\x20reconcile\x20its\x20original\x20operation\x20before\x20submitting\x20again.','176170EFBOAq','string','manifest','isSymbolicLink','28kflUvA','Checkpoint\x20must\x20be\x20a\x20regular\x20JSON\x20file.','utf8','identityKey','ENOENT','test','schemaVersion','writeFile','length','stringify','kind','55WnGYAe','code','isFile','62hwDrap','24fSpsak','1508808olgkUm','size','118843YriTjO','215215vSjaXX','.tmp','sync','inputHash','EEXIST','1137336kNVUOM'];a342_0x8666=function(){return _0x2a3adf;};return a342_0x8666();}import{isObject,requireValue}from'./contract.js';export async function readCheckpoint(_0x55a071){const _0x221391=a342_0x5c19;try{const _0x32a01d=await lstat(_0x55a071);requireValue(_0x32a01d[_0x221391(0x1f3)]()&&!_0x32a01d[_0x221391(0x20a)]()&&_0x32a01d[_0x221391(0x1f7)]<=0x3d0900,_0x221391(0x20c));const _0x251974=JSON[_0x221391(0x1ff)](await readFile(_0x55a071,_0x221391(0x20d)));return requireValue(isObject(_0x251974)&&_0x251974[_0x221391(0x1f0)]===_0x221391(0x205)&&_0x251974[_0x221391(0x211)]===0x1&&typeof _0x251974[_0x221391(0x204)]==='string'&&/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/[_0x221391(0x210)](_0x251974['clientOperationId'])&&typeof _0x251974[_0x221391(0x1fc)]===_0x221391(0x208)&&/^[a-f0-9]{64}$/[_0x221391(0x210)](_0x251974[_0x221391(0x1fc)])&&typeof _0x251974['identityKey']==='string'&&_0x251974[_0x221391(0x20e)][_0x221391(0x1ee)]>0x0&&isObject(_0x251974[_0x221391(0x209)]),_0x221391(0x206)),_0x251974;}catch(_0xa47eb9){if(_0xa47eb9[_0x221391(0x1f2)]===_0x221391(0x20f))return undefined;throw _0xa47eb9;}}export async function saveCheckpoint(_0x343d4e,_0x24a7ec,_0x8340a8=![]){const _0x1079c3=a342_0x5c19;await mkdir(dirname(_0x343d4e),{'recursive':!![]});const _0x3b2841=_0x343d4e+'.'+randomUUID()+_0x1079c3(0x1fa),_0x5a9c10=await open(_0x3b2841,'wx',0x180);try{await _0x5a9c10[_0x1079c3(0x212)](JSON[_0x1079c3(0x1ef)](_0x24a7ec,null,0x2)+'\x0a'),await _0x5a9c10[_0x1079c3(0x1fb)]();}finally{await _0x5a9c10['close']();}try{if(_0x8340a8)await link(_0x3b2841,_0x343d4e);else await rename(_0x3b2841,_0x343d4e);return!![];}catch(_0x196d4e){if(_0x8340a8&&_0x196d4e[_0x1079c3(0x1f2)]===_0x1079c3(0x1fd))return![];throw _0x196d4e;}finally{await unlink(_0x3b2841)[_0x1079c3(0x203)](_0x44aa8b=>{const _0x12c2ed=_0x1079c3;if(_0x44aa8b[_0x12c2ed(0x1f2)]!==_0x12c2ed(0x20f))throw _0x44aa8b;});}}
|