@lovrabet/rabetbase-cli 2.5.8 → 2.5.9-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- 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.d.ts +8 -5
- 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.d.ts +5 -3
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +14 -11
- 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 +2 -2
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-search-client.d.ts +3 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-design/checkpoint.js +1 -1
- package/lib/services/dataset-design/commands.js +1 -1
- package/lib/services/dataset-design/contract.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/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 +1 -1
- package/skills/rabetbase/references/rabetbase-kb.md +17 -15
- package/skills/rabetbase/references/rabetbase-rule.md +8 -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/commands/bff/push.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a44_0x9d3de8=a44_0x50dd;(function(_0x3b3645,_0x22fd88){const _0x328fe2=a44_0x50dd,_0x508563=_0x3b3645();while(!![]){try{const _0x900b42=parseInt(_0x328fe2(0x1c4))/0x1+-parseInt(_0x328fe2(0x1df))/0x2*(parseInt(_0x328fe2(0x215))/0x3)+parseInt(_0x328fe2(0x1f5))/0x4*(-parseInt(_0x328fe2(0x202))/0x5)+parseInt(_0x328fe2(0x1e1))/0x6+parseInt(_0x328fe2(0x1f9))/0x7+-parseInt(_0x328fe2(0x1f3))/0x8*(parseInt(_0x328fe2(0x21b))/0x9)+parseInt(_0x328fe2(0x1c5))/0xa;if(_0x900b42===_0x22fd88)break;else _0x508563['push'](_0x508563['shift']());}catch(_0x543a0c){_0x508563['push'](_0x508563['shift']());}}}(a44_0x4215,0x2fb4d));import{readFile}from'node:fs/promises';import{saveBffScript,getBffScriptInfo,getBffScriptStatistics,getPlatformErrorCode,listDatasets,clearBffScriptCache}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiModelSource}from'../../api/model-source.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{normalizeBffType,scanLocalBffFunctions}from'../../core/bff/file-system.js';import{buildHookDirectoryIndexes,assertUnambiguousHookAliases,assertUnambiguousHookDirectoryMappings,preflightPushHookDirectories,trackedHookDirectoryMappings}from'../../core/bff/hook-directory.js';function a44_0x50dd(_0x278446,_0x426e51){_0x278446=_0x278446-0x1b0;const _0x421517=a44_0x4215();let _0x50dd9f=_0x421517[_0x278446];return _0x50dd9f;}import{computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile,writeBffLockFile}from'../../core/bff/lock.js';import{extractScriptDescription,snakeToCamel}from'../../core/bff/utils.js';import{sleep}from'../../utils/sleep.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';const CACHE_CLEAR_ATTEMPTS=0x2,CACHE_CLEAR_INTERVAL_MS=0x12c;export const bffPush={'service':a44_0x9d3de8(0x1e3),'command':a44_0x9d3de8(0x1d9),'description':a44_0x9d3de8(0x1e0),'risk':a44_0x9d3de8(0x1c9),'structuredErrors':!![],'flags':[{'name':'type','type':a44_0x9d3de8(0x213),'description':a44_0x9d3de8(0x1f4),'enum':[a44_0x9d3de8(0x20f),'ENDPOINT',a44_0x9d3de8(0x1cb)]},{'name':a44_0x9d3de8(0x1e4),'type':a44_0x9d3de8(0x213),'description':a44_0x9d3de8(0x1f1)},{'name':a44_0x9d3de8(0x1b9),'type':a44_0x9d3de8(0x20a),'description':a44_0x9d3de8(0x21a)}],async 'dryRun'(_0x2e3b31){const _0x376013=a44_0x9d3de8,_0x12dc48=loadBffProjectConfig(_0x2e3b31[_0x376013(0x20b)]),_0x2da6a2=await readBffLockFile(_0x12dc48[_0x376013(0x1c3)]),{appLock:_0x204a97}=ensureLockScope(_0x2da6a2??createEmptyBffLock(),_0x2e3b31['appCode'],_0x12dc48[_0x376013(0x1f8)],'push'),_0xcc96ed=await getTargetFunctions(_0x12dc48,_0x2e3b31),_0x569660=_0xcc96ed['some'](_0x2d20d6=>_0x2d20d6[_0x376013(0x1d0)]===_0x376013(0x1cb))?await scanLocalBffFunctions(_0x12dc48,_0x376013(0x1cb)):_0xcc96ed,_0x22616e=await buildHookMaps(_0x2e3b31['appCode'],_0x2e3b31[_0x376013(0x212)],_0x569660,_0x204a97,_0x2e3b31[_0x376013(0x206)]||_0x2e3b31[_0x376013(0x1b2)]?.[_0x376013(0x204)]||_0x2e3b31[_0x376013(0x1b2)]?.[_0x376013(0x1d6)]),_0x849c7e=_0x2e3b31[_0x376013(0x214)]('force'),_0x51db2b=[];for(const _0x3c2722 of _0xcc96ed){const _0x5ed86d=await computeFileHash(_0x3c2722['filePath']),_0x103baf=_0x204a97[_0x376013(0x1b1)][_0x3c2722[_0x376013(0x1fd)]],_0x5486e3=!!_0x103baf&&_0x103baf[_0x376013(0x1eb)]===_0x5ed86d,_0x5d8061=_0x22616e[_0x376013(0x1e8)][_0x376013(0x1dc)](_0x3c2722[_0x376013(0x1fd)]),_0x52e06a=!!_0x103baf?.[_0x376013(0x1ff)]&&_0x103baf[_0x376013(0x217)]==null&&(_0x849c7e||!_0x5486e3),_0x1321ea=_0x52e06a?missingRemoteVersionConflict(_0x3c2722,_0x103baf):undefined,_0x45259a=_0x22616e[_0x376013(0x1ed)][_0x376013(0x1b7)](_0x3c2722[_0x376013(0x1fd)])?_0x376013(0x1bd):!_0x849c7e&&_0x5486e3?_0x376013(0x1d5):_0x1321ea?_0x376013(0x1c6):'would_push';_0x51db2b[_0x376013(0x1d9)]({'lockKey':_0x3c2722['lockKey'],'filePath':_0x3c2722[_0x376013(0x211)],'remoteId':_0x103baf?.['remoteId']??null,'mode':_0x103baf?.[_0x376013(0x1ff)]?_0x376013(0x1c2):'create','status':_0x45259a,..._0x22616e[_0x376013(0x1ed)][_0x376013(0x1b7)](_0x3c2722['lockKey'])?{'error':_0x22616e[_0x376013(0x1ed)]['get'](_0x3c2722[_0x376013(0x1fd)])}:{},..._0x1321ea?{'conflict':_0x1321ea}:{},..._0x22616e['existingHooks'][_0x376013(0x1b7)](_0x3c2722[_0x376013(0x1fd)])?{'datasetCode':_0x103baf?.[_0x376013(0x1ca)],'bindingPreserved':!![],'warnings':[existingHookWarning(_0x3c2722[_0x376013(0x1fd)])]}:{},..._0x5d8061?{'alias':_0x5d8061[_0x376013(0x200)]??null,'datasetCode':_0x5d8061[_0x376013(0x1ca)],'operationType':_0x3c2722[_0x376013(0x1c0)],'functionNode':_0x3c2722['functionNode'],'warnings':_0x5d8061[_0x376013(0x1b3)]}:{}});}return{'method':_0x376013(0x20d),'url':_0x376013(0x1ea),'body':{'appCode':_0x2e3b31[_0x376013(0x20b)],'force':_0x849c7e,'files':_0x51db2b,'cacheClearAtRuntime':_0x51db2b[_0x376013(0x1e7)](_0x38279d=>_0x38279d[_0x376013(0x1da)]==='would_push'),'cacheClearAtRuntimeTimes':_0x51db2b['some'](_0x47cfa3=>_0x47cfa3[_0x376013(0x1da)]===_0x376013(0x1e9))?CACHE_CLEAR_ATTEMPTS:0x0},'description':'Would\x20inspect\x20'+_0x51db2b[_0x376013(0x1e6)]+_0x376013(0x1fa)};},async 'execute'(_0x2f911c){const _0x3de8eb=a44_0x9d3de8,_0xd7284d=loadBffProjectConfig(_0x2f911c[_0x3de8eb(0x20b)]),_0x3ca284=await readBffLockFile(_0xd7284d[_0x3de8eb(0x1c3)]),{lockData:_0xac475c,appLock:_0x144499}=ensureLockScope(_0x3ca284??createEmptyBffLock(),_0x2f911c['appCode'],_0xd7284d[_0x3de8eb(0x1f8)],_0x3de8eb(0x1d9)),_0x1f024e=await getTargetFunctions(_0xd7284d,_0x2f911c);if(_0x1f024e[_0x3de8eb(0x1e6)]===0x0)return{'ok':!![],'data':{'uploaded':[],'skipped':[],'conflicts':[],'failed':[]},'message':'No\x20local\x20Backend\x20Function\x20scripts\x20found.'};const _0x874a2d=_0x2f911c[_0x3de8eb(0x214)](_0x3de8eb(0x1b9)),_0x719902=JSON[_0x3de8eb(0x208)](JSON[_0x3de8eb(0x1db)](_0xac475c)),_0x51a389=_0x719902[_0x3de8eb(0x21c)][_0x2f911c[_0x3de8eb(0x20b)]];if(!_0x51a389)throw new Error(_0x3de8eb(0x1c1)+_0x2f911c[_0x3de8eb(0x20b)]+_0x3de8eb(0x1d8));const _0x3105c8=_0x1f024e[_0x3de8eb(0x1e7)](_0x5a2151=>_0x5a2151[_0x3de8eb(0x1d0)]===_0x3de8eb(0x1cb))?await scanLocalBffFunctions(_0xd7284d,_0x3de8eb(0x1cb)):_0x1f024e,_0x1e323b=await buildHookMaps(_0x2f911c[_0x3de8eb(0x20b)],_0x2f911c['apiDir'],_0x3105c8,_0x51a389,_0x2f911c[_0x3de8eb(0x206)]||_0x2f911c['mergedCli']?.[_0x3de8eb(0x204)]||_0x2f911c['mergedCli']?.[_0x3de8eb(0x1d6)]),_0x2108f1=[],_0x76b515=[],_0x36f252=[],_0x1a5843=[];for(const _0x5bab16 of _0x1f024e){const _0x35f0bf=_0x1e323b[_0x3de8eb(0x1ed)][_0x3de8eb(0x1dc)](_0x5bab16[_0x3de8eb(0x1fd)]);if(_0x35f0bf){_0x1a5843[_0x3de8eb(0x1d9)]({'lockKey':_0x5bab16[_0x3de8eb(0x1fd)],'error':_0x35f0bf});continue;}const _0x3bb467=await computeFileHash(_0x5bab16['filePath']),_0x5c7507=_0x51a389[_0x3de8eb(0x1b1)][_0x5bab16['lockKey']];if(!_0x874a2d&&_0x5c7507&&_0x5c7507[_0x3de8eb(0x1eb)]===_0x3bb467){_0x76b515[_0x3de8eb(0x1d9)]({'lockKey':_0x5bab16['lockKey'],'reason':'unchanged'});continue;}if(_0x5c7507?.[_0x3de8eb(0x1ff)]&&_0x5c7507['version']==null){_0x36f252[_0x3de8eb(0x1d9)](missingRemoteVersionConflict(_0x5bab16,_0x5c7507));continue;}try{await uploadSingleFunction(_0x2f911c[_0x3de8eb(0x20b)],_0x5bab16,_0x51a389,_0x1e323b);const _0x3a823f=_0x51a389[_0x3de8eb(0x1b1)][_0x5bab16[_0x3de8eb(0x1fd)]];_0x2108f1[_0x3de8eb(0x1d9)]({'lockKey':_0x5bab16[_0x3de8eb(0x1fd)],'remoteId':_0x3a823f?.[_0x3de8eb(0x1ff)]??0x0});}catch(_0x3ca497){const _0x3b8686=remoteVersionChangedConflict(_0x5bab16,_0x5c7507,_0x3ca497);if(_0x3b8686){_0x36f252['push'](_0x3b8686);continue;}_0x1a5843[_0x3de8eb(0x1d9)]({'lockKey':_0x5bab16[_0x3de8eb(0x1fd)],'error':_0x3ca497 instanceof Error?_0x3ca497[_0x3de8eb(0x1b4)]:String(_0x3ca497)});}}_0x51a389[_0x3de8eb(0x1ef)]=new Date()[_0x3de8eb(0x1d2)](),await writeBffLockFile(_0xd7284d[_0x3de8eb(0x1c3)],_0x719902),await waitForUploadedLockEntries(_0xd7284d['lockFilePath'],_0x2f911c[_0x3de8eb(0x20b)],_0x2108f1['map'](_0x2ac7eb=>_0x2ac7eb[_0x3de8eb(0x1fd)]));let _0x3bd25c={'attempted':![],'cleared':![]};if(_0x2108f1[_0x3de8eb(0x1e6)]>0x0)try{let _0x312fa1='';for(let _0x36e5af=0x0;_0x36e5af<CACHE_CLEAR_ATTEMPTS;_0x36e5af+=0x1){_0x312fa1=await clearBffScriptCache(),_0x36e5af<CACHE_CLEAR_ATTEMPTS-0x1&&await sleep(CACHE_CLEAR_INTERVAL_MS);}_0x3bd25c={'attempted':!![],'cleared':!![],'message':_0x312fa1||_0x3de8eb(0x205)};}catch(_0x2d9069){_0x3bd25c={'attempted':!![],'cleared':![],'error':_0x2d9069 instanceof Error?_0x2d9069[_0x3de8eb(0x1b4)]:String(_0x2d9069)};}const _0xad36aa=_0x1a5843[_0x3de8eb(0x1e6)]===0x0&&(_0x3bd25c[_0x3de8eb(0x1bb)]?_0x3bd25c[_0x3de8eb(0x1d1)]:!![]),_0x280d93=_0xad36aa,_0x1d9a8e=_0x3bd25c[_0x3de8eb(0x1bb)]?_0x3bd25c[_0x3de8eb(0x1d1)]?_0x3de8eb(0x1b8):_0x3de8eb(0x1c8):_0x3de8eb(0x1cf);return{'ok':_0x280d93,'data':{'uploaded':_0x2108f1,'skipped':_0x76b515,'conflicts':_0x36f252,'failed':_0x1a5843,'cacheClear':_0x3bd25c,'warnings':[...[..._0x1e323b[_0x3de8eb(0x1e8)][_0x3de8eb(0x1c7)]()]['flatMap'](_0x5a6066=>_0x5a6066[_0x3de8eb(0x1b3)]),...[..._0x1e323b[_0x3de8eb(0x1ba)]][_0x3de8eb(0x1ce)](existingHookWarning)]},'message':formatPushMessage(_0x2108f1[_0x3de8eb(0x1e6)],_0x76b515[_0x3de8eb(0x1e6)],_0x36f252[_0x3de8eb(0x1e6)],_0x1a5843['length'],_0x1d9a8e)};}};function missingRemoteVersionConflict(_0xc1ff47,_0x23b302){const _0x264f31=a44_0x9d3de8;return remoteVersionConflict(_0xc1ff47,_0x23b302,'BFF_REMOTE_VERSION_MISSING',_0x264f31(0x1f6));}function remoteVersionChangedConflict(_0x388925,_0x4be11f,_0x253818){const _0x20f731=a44_0x9d3de8;if(!_0x4be11f?.[_0x20f731(0x1ff)]||_0x4be11f['version']==null||!isRemoteVersionConflict(_0x253818))return undefined;return remoteVersionConflict(_0x388925,_0x4be11f,_0x20f731(0x1e2),_0x20f731(0x1bf));}function remoteVersionConflict(_0x314f81,_0x28e05f,_0xffd6a9,_0x5dea5d){const _0x54f78b=a44_0x9d3de8;return{'code':_0xffd6a9,'lockKey':_0x314f81['lockKey'],'filePath':_0x314f81[_0x54f78b(0x211)],'remoteId':_0x28e05f[_0x54f78b(0x1ff)],..._0x28e05f[_0x54f78b(0x217)]!=null?{'expectedVersion':_0x28e05f[_0x54f78b(0x217)]}:{},'message':_0x5dea5d,'nextAction':{'action':'review_remote_and_merge','command':CLI_BIN_NAME+'\x20bff\x20detail\x20--id\x20'+_0x28e05f[_0x54f78b(0x1ff)]+_0x54f78b(0x1bc),'requiresReview':!![],'message':_0x54f78b(0x1cd)}};}function isRemoteVersionConflict(_0x38a8df){const _0x1bf366=a44_0x9d3de8,_0x5c23fc=_0x38a8df instanceof Error?_0x38a8df[_0x1bf366(0x1b4)]:String(_0x38a8df),_0x2a95b6=getPlatformErrorCode(_0x38a8df)??'';return[_0x5c23fc,_0x2a95b6][_0x1bf366(0x1e7)](_0x1956fb=>/(?:version|optimistic)[\s_-]*(?:conflict|mismatch|changed|stale|out[\s_-]*of[\s_-]*date)|(?:conflict|mismatch|changed|stale|out[\s_-]*of[\s_-]*date)[\s_-]*(?:version|optimistic)/i[_0x1bf366(0x1be)](_0x1956fb));}function formatPushMessage(_0x3945ce,_0x232b52,_0x5a81a6,_0x23e460,_0x1496d6){const _0x3ef54e=a44_0x9d3de8,_0x502ecb=[_0x3ef54e(0x201)+_0x3945ce+_0x3ef54e(0x1fb),_0x232b52+'\x20skipped'];_0x5a81a6>0x0&&_0x502ecb['push'](_0x5a81a6+_0x3ef54e(0x1de)+(_0x5a81a6===0x1?'':'s')+'\x20'+(_0x5a81a6===0x1?_0x3ef54e(0x1d7):'require')+'\x20resolution');if(_0x23e460>0x0)_0x502ecb['push'](_0x23e460+'\x20failed');return _0x502ecb[_0x3ef54e(0x1d9)](_0x1496d6),_0x502ecb[_0x3ef54e(0x209)](',\x20');}async function getTargetFunctions(_0x39aa3e,_0x3085a3){const _0x55c5d4=a44_0x9d3de8,_0x43b93b=_0x3085a3['str'](_0x55c5d4(0x1d0)),_0x47af86=_0x3085a3[_0x55c5d4(0x218)](_0x55c5d4(0x1e4)),_0x19190a=normalizeBffType(_0x43b93b)??undefined;if(_0x47af86&&!_0x19190a)throw CliErrors[_0x55c5d4(0x203)](_0x55c5d4(0x1cc));const _0x2ba75f=await scanLocalBffFunctions(_0x39aa3e,_0x19190a);if(_0x47af86){const _0x3356a1=_0x2ba75f[_0x55c5d4(0x216)](_0x54f860=>_0x54f860['name']===_0x47af86);if(_0x3356a1[_0x55c5d4(0x1e6)]===0x0)throw CliErrors[_0x55c5d4(0x203)](_0x55c5d4(0x1e5)+_0x19190a+'/'+_0x47af86);return _0x3356a1;}return _0x2ba75f;}function existingHookWarning(_0x5c9875){return{'code':'EXISTING_HOOK_BINDING_PRESERVED','lockKey':_0x5c9875,'message':'Dataset\x20metadata\x20is\x20unavailable;\x20the\x20existing\x20script\x20and\x20binding\x20were\x20verified.\x20Update\x20by\x20script\x20ID\x20without\x20rebinding.'};}async function buildHookMaps(_0x4f8cbd,_0x2049d9,_0xf4a648,_0x4cc4a7,_0x4a8bbd){const _0x2a8d84=a44_0x9d3de8,_0x5127e4=_0xf4a648[_0x2a8d84(0x1e7)](_0x3211e6=>_0x3211e6[_0x2a8d84(0x1d0)]===_0x2a8d84(0x1cb));if(!_0x5127e4)return{'resolutions':new Map(),'failures':new Map(),'existingHooks':new Set()};const _0x1cad08=resolveApiModelSource(_0x2049d9,_0x4f8cbd,_0x4a8bbd),_0x2113ac=loadAliasMap(_0x2049d9,undefined,_0x1cad08[_0x2a8d84(0x211)],_0x1cad08[_0x2a8d84(0x1dd)]);assertUnambiguousHookAliases(_0x2113ac);const _0x599f13=[..._0x2113ac[_0x2a8d84(0x1ce)](_0x2e08bf=>[_0x2e08bf[_0x2a8d84(0x200)],_0x2e08bf[_0x2a8d84(0x1ca)]]),...trackedHookDirectoryMappings(_0x4cc4a7)[_0x2a8d84(0x1ce)](_0x537139=>[_0x537139[_0x2a8d84(0x200)],_0x537139[_0x2a8d84(0x1ca)]])],_0x269cf1=await listDatasets(_0x4f8cbd);assertUnambiguousHookDirectoryMappings(_0x599f13['map'](([_0xba94ee,_0x5eb07d])=>({'alias':_0xba94ee,'datasetCode':_0x5eb07d})));const _0x1a84b4=buildHookDirectoryIndexes(_0x269cf1,_0x599f13),_0x4fc506=new Map(),_0x10595c=preflightPushHookDirectories(_0xf4a648,_0x4cc4a7,_0x1a84b4,_0x4fc506),_0xd15951=new Set(),_0x1f8b0b=_0xf4a648[_0x2a8d84(0x216)](_0x29fe18=>_0x4fc506[_0x2a8d84(0x1dc)](_0x29fe18['lockKey'])?.[_0x2a8d84(0x1b0)]('HOOK_DATASET_NOT_FOUND:')&&_0x4cc4a7[_0x2a8d84(0x1b1)][_0x29fe18[_0x2a8d84(0x1fd)]]?.[_0x2a8d84(0x1ff)]&&_0x4cc4a7[_0x2a8d84(0x1b1)][_0x29fe18['lockKey']]?.[_0x2a8d84(0x1ca)]);if(_0x1f8b0b['length']>0x0){let _0x28cc51;try{_0x28cc51=await getBffScriptStatistics(_0x4f8cbd);}catch(_0x3836ae){for(const _0xf6295b of _0x1f8b0b)_0x4fc506[_0x2a8d84(0x1ee)](_0xf6295b[_0x2a8d84(0x1fd)],_0x2a8d84(0x20e)+(_0x3836ae instanceof Error?_0x3836ae[_0x2a8d84(0x1b4)]:String(_0x3836ae)));return{'resolutions':_0x10595c,'failures':_0x4fc506,'existingHooks':_0xd15951};}for(const _0x2e4543 of _0x1f8b0b){const _0x57818d=_0x4cc4a7[_0x2a8d84(0x1b1)][_0x2e4543[_0x2a8d84(0x1fd)]];try{const _0x4127da=new Set(_0xf4a648[_0x2a8d84(0x216)](_0x1d232f=>_0x1d232f['type']==='HOOK'&&_0x4cc4a7['functions'][_0x1d232f['lockKey']]?.['datasetCode']===_0x57818d[_0x2a8d84(0x1ca)])[_0x2a8d84(0x1ce)](_0xb11da6=>_0xb11da6[_0x2a8d84(0x200)]));if(_0x4127da['size']>0x1)throw CliErrors[_0x2a8d84(0x203)](_0x2a8d84(0x1b5));const _0x52bc05=_0x28cc51['flatMap'](_0x371984=>[{'datasetCode':_0x371984[_0x2a8d84(0x1ca)],'operationType':snakeToCamel(_0x371984['operationType']),'functionNode':_0x2a8d84(0x1fe),'id':_0x371984['beforeScriptId']},{'datasetCode':_0x371984['datasetCode'],'operationType':snakeToCamel(_0x371984[_0x2a8d84(0x1c0)]),'functionNode':'after','id':_0x371984[_0x2a8d84(0x1fc)]}])[_0x2a8d84(0x216)](_0x585003=>_0x585003['id']===_0x57818d[_0x2a8d84(0x1ff)]),_0x502e60=await getBffScriptInfo(_0x57818d['remoteId']);if(_0x502e60['id']!==_0x57818d['remoteId']||_0x502e60[_0x2a8d84(0x20b)]!==_0x4f8cbd||_0x502e60[_0x2a8d84(0x1f7)]!==_0x2a8d84(0x1cb)||_0x502e60[_0x2a8d84(0x1b6)]!==_0x2e4543[_0x2a8d84(0x1e4)]||_0x57818d['version']==null||_0x502e60[_0x2a8d84(0x217)]!==_0x57818d[_0x2a8d84(0x217)]||_0x52bc05[_0x2a8d84(0x1e6)]!==0x1||_0x52bc05[0x0]['datasetCode']!==_0x57818d[_0x2a8d84(0x1ca)]||_0x52bc05[0x0][_0x2a8d84(0x1c0)]!==_0x2e4543[_0x2a8d84(0x1c0)]||_0x52bc05[0x0][_0x2a8d84(0x1f2)]!==_0x2e4543['functionNode']||_0x57818d['operationType']!==_0x2e4543[_0x2a8d84(0x1c0)]||_0x57818d[_0x2a8d84(0x1f2)]!==_0x2e4543[_0x2a8d84(0x1f2)])throw CliErrors[_0x2a8d84(0x203)]('Existing\x20HOOK\x20identity,\x20version\x20or\x20binding\x20does\x20not\x20match\x20the\x20local\x20lock.\x20Pull\x20and\x20review\x20before\x20pushing.');_0xd15951[_0x2a8d84(0x1f0)](_0x2e4543['lockKey']),_0x4fc506[_0x2a8d84(0x20c)](_0x2e4543['lockKey']);}catch(_0x47df78){_0x4fc506[_0x2a8d84(0x1ee)](_0x2e4543[_0x2a8d84(0x1fd)],_0x47df78 instanceof Error?_0x47df78[_0x2a8d84(0x1b4)]:String(_0x47df78));}}}return{'resolutions':_0x10595c,'failures':_0x4fc506,'existingHooks':_0xd15951};}async function uploadSingleFunction(_0x187e6f,_0x354035,_0x1e9908,_0x12d4b9){const _0x2cad3d=a44_0x9d3de8,_0x357375=await readFile(_0x354035[_0x2cad3d(0x211)],'utf8'),_0x5aca52=await computeFileHash(_0x354035[_0x2cad3d(0x211)]),_0x32ab09=_0x1e9908[_0x2cad3d(0x1b1)][_0x354035[_0x2cad3d(0x1fd)]];if(_0x32ab09?.[_0x2cad3d(0x1ff)]&&_0x32ab09[_0x2cad3d(0x217)]==null)throw CliErrors['validation'](_0x354035['lockKey']+_0x2cad3d(0x210));let _0x531332=extractScriptDescription(_0x357375);if(!_0x531332&&_0x32ab09?.[_0x2cad3d(0x1ff)]){const _0x3c8efe=await getBffScriptInfo(_0x32ab09[_0x2cad3d(0x1ff)]);_0x531332=_0x3c8efe['description']||undefined;}const _0x248b49={'appCode':_0x187e6f,'functionName':_0x354035[_0x2cad3d(0x1e4)],'scriptType':_0x354035[_0x2cad3d(0x1d0)],'scriptContent':_0x357375};if(_0x32ab09?.[_0x2cad3d(0x1ff)])_0x248b49['id']=_0x32ab09[_0x2cad3d(0x1ff)];if(_0x32ab09?.[_0x2cad3d(0x217)]!=null)_0x248b49[_0x2cad3d(0x217)]=_0x32ab09[_0x2cad3d(0x217)];if(_0x531332)_0x248b49[_0x2cad3d(0x207)]=_0x531332;if(_0x354035[_0x2cad3d(0x1d0)]==='HOOK'){const _0x55e7ba=_0x12d4b9[_0x2cad3d(0x1e8)][_0x2cad3d(0x1dc)](_0x354035[_0x2cad3d(0x1fd)]);if(!_0x55e7ba&&!_0x12d4b9['existingHooks'][_0x2cad3d(0x1b7)](_0x354035[_0x2cad3d(0x1fd)])||!_0x354035[_0x2cad3d(0x1c0)]||!_0x354035[_0x2cad3d(0x1f2)])throw CliErrors[_0x2cad3d(0x203)](_0x2cad3d(0x219)+_0x354035[_0x2cad3d(0x1fd)]);_0x55e7ba&&(_0x248b49[_0x2cad3d(0x1d3)]=_0x55e7ba[_0x2cad3d(0x1d4)]['id'],_0x248b49['operationType']=_0x354035[_0x2cad3d(0x1c0)]),_0x248b49[_0x2cad3d(0x1f2)]=_0x354035['functionNode'];}const _0x336ca6=await saveBffScript(_0x248b49),_0x1ba1b6=_0x336ca6['id'],_0x62fc85=_0x336ca6['script']??await getBffScriptInfo(_0x1ba1b6),_0x10cd44={'hash':_0x5aca52,'remoteId':_0x1ba1b6,'version':_0x62fc85[_0x2cad3d(0x217)]};if(_0x354035[_0x2cad3d(0x1d0)]===_0x2cad3d(0x1cb)){const _0x28db9c=_0x12d4b9[_0x2cad3d(0x1e8)][_0x2cad3d(0x1dc)](_0x354035['lockKey']);if(!_0x28db9c){_0x1e9908['functions'][_0x354035[_0x2cad3d(0x1fd)]]={..._0x32ab09,..._0x10cd44};return;}_0x10cd44[_0x2cad3d(0x200)]=_0x28db9c[_0x2cad3d(0x200)]??_0x32ab09?.[_0x2cad3d(0x200)],_0x10cd44['datasetCode']=_0x28db9c[_0x2cad3d(0x1ca)],_0x10cd44[_0x2cad3d(0x1c0)]=_0x354035[_0x2cad3d(0x1c0)],_0x10cd44['functionNode']=_0x354035[_0x2cad3d(0x1f2)];}_0x1e9908[_0x2cad3d(0x1b1)][_0x354035[_0x2cad3d(0x1fd)]]=_0x10cd44;}const LOCK_SETTLE_RETRY_COUNT=0x14,LOCK_SETTLE_DELAY_MS=0x64;async function waitForUploadedLockEntries(_0x106cac,_0xd0485a,_0x15a09e){const _0x42ebf8=a44_0x9d3de8;if(_0x15a09e[_0x42ebf8(0x1e6)]===0x0)return;for(let _0x3e7240=0x0;_0x3e7240<LOCK_SETTLE_RETRY_COUNT;_0x3e7240+=0x1){const _0x386035=await readBffLockFile(_0x106cac),_0x2b6627=_0x386035?.[_0x42ebf8(0x21c)]?.[_0xd0485a]?.[_0x42ebf8(0x1b1)]??{},_0x17652b=_0x15a09e['every'](_0x46d5d1=>!!_0x2b6627[_0x46d5d1]?.[_0x42ebf8(0x1ff)]);if(_0x17652b)return;await sleep(LOCK_SETTLE_DELAY_MS);}throw new Error(_0x42ebf8(0x1ec)+_0x15a09e[_0x42ebf8(0x209)](',\x20')+'.');}function a44_0x4215(){const _0x1cde65=['filePath','apiDir','string','bool','165uPmlXR','filter','version','str','Incomplete\x20HOOK\x20path:\x20','Force\x20push\x20ignoring\x20hash\x20protection','9GwMXkx','apps','startsWith','functions','mergedCli','warnings','message','Multiple\x20HOOK\x20directories\x20reference\x20the\x20same\x20missing\x20Dataset.\x20Resolve\x20duplicate\x20directories\x20before\x20pushing.','functionName','has','runtime\x20cache\x20cleared','force','existingHooks','attempted','\x20--format\x20compress','failed','test','Remote\x20script\x20version\x20changed\x20since\x20the\x20last\x20pull.','operationType','Lock\x20scope\x20for\x20app\x20\x22','update','lockFilePath','287364SFugEz','3010390xFUrWl','conflict','values','runtime\x20cache\x20clear\x20failed','write','datasetCode','HOOK','--name\x20requires\x20--type\x20to\x20identify\x20the\x20function.','Review\x20the\x20current\x20remote\x20source,\x20merge\x20it\x20into\x20the\x20local\x20script,\x20then\x20retry\x20push.\x20Do\x20not\x20use\x20--force\x20unless\x20you\x20intentionally\x20discard\x20local\x20changes.','map','runtime\x20cache\x20not\x20needed','type','cleared','toISOString','datasetId','dataset','unchanged','defaultApp','requires','\x22\x20not\x20found\x20after\x20ensureLockScope.','push','status','stringify','get','profileName','\x20conflict','342yWbWAJ','Push\x20local\x20Backend\x20Function\x20scripts\x20to\x20remote','1149492uWMwBu','BFF_REMOTE_VERSION_CHANGED','bff','name','Local\x20function\x20not\x20found:\x20','length','some','resolutions','would_push','/api/management/library/scripts/save','hash','Lock\x20file\x20not\x20settled\x20after\x20push\x20for\x20','failures','set','lastSync','add','Push\x20only\x20the\x20named\x20function\x20(requires\x20--type)','functionNode','2611832DyQPlm','Push\x20only\x20this\x20script\x20type','8maIxqG','The\x20local\x20sync\x20lock\x20has\x20no\x20remote\x20version\x20for\x20this\x20script.','scriptType','scriptsRoot','196182deDLXk','\x20local\x20Backend\x20Function\x20script(s)\x20for\x20push\x20and\x20clear\x20runtime\x20cache\x20if\x20files\x20are\x20uploaded','\x20uploaded','afterScriptId','lockKey','before','remoteId','alias','Push\x20complete:\x20','691805FwgNCo','validation','currentApp','Runtime\x20script\x20cache\x20cleared.','selectedAppName','description','parse','join','boolean','appCode','delete','POST','Cannot\x20verify\x20existing\x20HOOK\x20binding:\x20','COMMON',':\x20missing\x20remote\x20version.\x20Run\x20`push`\x20after\x20`pull`\x20to\x20sync\x20version\x20info.'];a44_0x4215=function(){return _0x1cde65;};return a44_0x4215();}
|
|
1
|
+
const a44_0x56f74b=a44_0x5f1d;(function(_0x4f077b,_0x3f6f96){const _0x2979f9=a44_0x5f1d,_0x55af67=_0x4f077b();while(!![]){try{const _0x591a66=parseInt(_0x2979f9(0x1bb))/0x1+-parseInt(_0x2979f9(0x1bc))/0x2*(parseInt(_0x2979f9(0x1f8))/0x3)+-parseInt(_0x2979f9(0x1b8))/0x4*(parseInt(_0x2979f9(0x1c2))/0x5)+-parseInt(_0x2979f9(0x1f3))/0x6*(-parseInt(_0x2979f9(0x1a7))/0x7)+parseInt(_0x2979f9(0x1f1))/0x8*(-parseInt(_0x2979f9(0x1cb))/0x9)+parseInt(_0x2979f9(0x193))/0xa+parseInt(_0x2979f9(0x1d7))/0xb*(parseInt(_0x2979f9(0x198))/0xc);if(_0x591a66===_0x3f6f96)break;else _0x55af67['push'](_0x55af67['shift']());}catch(_0x17a4b8){_0x55af67['push'](_0x55af67['shift']());}}}(a44_0x2f6b,0x74df3));import{readFile}from'node:fs/promises';import{saveBffScript,getBffScriptInfo,getBffScriptStatistics,getPlatformErrorCode,listDatasets,clearBffScriptCache}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiModelSource}from'../../api/model-source.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{normalizeBffType,scanLocalBffFunctions}from'../../core/bff/file-system.js';import{buildHookDirectoryIndexes,assertUnambiguousHookAliases,assertUnambiguousHookDirectoryMappings,preflightPushHookDirectories,trackedHookDirectoryMappings}from'../../core/bff/hook-directory.js';function a44_0x2f6b(){const _0x1e0030=['Would\x20inspect\x20','existingHooks','\x20resolution','BFF_REMOTE_VERSION_CHANGED','6849hkmuDF','bool','Incomplete\x20HOOK\x20path:\x20','\x20local\x20Backend\x20Function\x20script(s)\x20for\x20push\x20and\x20clear\x20runtime\x20cache\x20if\x20files\x20are\x20uploaded','startsWith','flatMap','description','Push\x20only\x20the\x20named\x20function\x20(requires\x20--type)','appCode','apps','push','after','55uXjvZB','No\x20local\x20Backend\x20Function\x20scripts\x20found.','selectedAppName','apiDir','warnings','failures','datasetId','force','EXISTING_HOOK_BINDING_PRESERVED','parse','Force\x20push\x20ignoring\x20hash\x20protection','HOOK','name','scriptsRoot','Lock\x20file\x20not\x20settled\x20after\x20push\x20for\x20','update','\x22\x20not\x20found\x20after\x20ensureLockScope.','create','filter','\x20uploaded','runtime\x20cache\x20cleared','get','The\x20local\x20sync\x20lock\x20has\x20no\x20remote\x20version\x20for\x20this\x20script.','lastSync','attempted','--name\x20requires\x20--type\x20to\x20identify\x20the\x20function.','8040ukltDq','str','29760hYSvhA','Existing\x20HOOK\x20identity,\x20version\x20or\x20binding\x20does\x20not\x20match\x20the\x20local\x20lock.\x20Pull\x20and\x20review\x20before\x20pushing.','lockFilePath','version','datasetCode','17175nJRwEN','delete','map','remoteId','\x20failed','Push\x20local\x20Backend\x20Function\x20scripts\x20to\x20remote','runtime\x20cache\x20not\x20needed','resolutions','6352390KMIQOH','unchanged','has','before','would_push','1129272SllYEw','filePath','Push\x20complete:\x20','type','utf8','values','BFF_REMOTE_VERSION_MISSING','test','\x20skipped','boolean','Push\x20only\x20this\x20script\x20type','add','string','operationType','dataset','224lZBVCd','HOOK_DATASET_NOT_FOUND:','functions',':\x20missing\x20remote\x20version.\x20Run\x20`push`\x20after\x20`pull`\x20to\x20sync\x20version\x20info.','\x20bff\x20detail\x20--id\x20','defaultApp','lockKey','alias','require','size','functionName','Cannot\x20verify\x20existing\x20HOOK\x20binding:\x20','validation','Lock\x20scope\x20for\x20app\x20\x22','every','COMMON','runtime\x20cache\x20clear\x20failed','4660WzxWRS','mergedCli','status','783793uBCApJ','168aMYCfM','length','functionNode','Multiple\x20HOOK\x20directories\x20reference\x20the\x20same\x20missing\x20Dataset.\x20Resolve\x20duplicate\x20directories\x20before\x20pushing.','message','join','1390WNMPtI','some','Remote\x20script\x20version\x20changed\x20since\x20the\x20last\x20pull.','set','hash'];a44_0x2f6b=function(){return _0x1e0030;};return a44_0x2f6b();}import{computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile,writeBffLockFile}from'../../core/bff/lock.js';import{extractScriptDescription,snakeToCamel}from'../../core/bff/utils.js';import{sleep}from'../../utils/sleep.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';function a44_0x5f1d(_0x133b78,_0x52c12b){_0x133b78=_0x133b78-0x18d;const _0x2f6bd2=a44_0x2f6b();let _0x5f1d9e=_0x2f6bd2[_0x133b78];return _0x5f1d9e;}const CACHE_CLEAR_ATTEMPTS=0x2,CACHE_CLEAR_INTERVAL_MS=0x12c;export const bffPush={'service':'bff','command':a44_0x56f74b(0x1d5),'description':a44_0x56f74b(0x190),'risk':'write','structuredErrors':!![],'flags':[{'name':'type','type':a44_0x56f74b(0x1a4),'description':a44_0x56f74b(0x1a2),'enum':[a44_0x56f74b(0x1b6),'ENDPOINT','HOOK']},{'name':a44_0x56f74b(0x1e3),'type':a44_0x56f74b(0x1a4),'description':a44_0x56f74b(0x1d2)},{'name':a44_0x56f74b(0x1de),'type':a44_0x56f74b(0x1a1),'description':a44_0x56f74b(0x1e1)}],async 'dryRun'(_0x72dd35){const _0x368cea=a44_0x56f74b,_0x461edf=loadBffProjectConfig(_0x72dd35[_0x368cea(0x1d3)]),_0x267ff4=await readBffLockFile(_0x461edf[_0x368cea(0x1f5)]),{appLock:_0x5e8e94}=ensureLockScope(_0x267ff4??createEmptyBffLock(),_0x72dd35[_0x368cea(0x1d3)],_0x461edf[_0x368cea(0x1e4)],_0x368cea(0x1d5)),_0x254b54=await getTargetFunctions(_0x461edf,_0x72dd35),_0x53dbb4=_0x254b54[_0x368cea(0x1c3)](_0x422547=>_0x422547[_0x368cea(0x19b)]===_0x368cea(0x1e2))?await scanLocalBffFunctions(_0x461edf,_0x368cea(0x1e2)):_0x254b54,_0x5ad9b6=await buildHookMaps(_0x72dd35[_0x368cea(0x1d3)],_0x72dd35['apiDir'],_0x53dbb4,_0x5e8e94,_0x72dd35[_0x368cea(0x1d9)]||_0x72dd35[_0x368cea(0x1b9)]?.['currentApp']||_0x72dd35[_0x368cea(0x1b9)]?.[_0x368cea(0x1ac)]),_0x2f77a4=_0x72dd35['bool'](_0x368cea(0x1de)),_0x582861=[];for(const _0x5f5af6 of _0x254b54){const _0xbafa79=await computeFileHash(_0x5f5af6[_0x368cea(0x199)]),_0x580db5=_0x5e8e94[_0x368cea(0x1a9)][_0x5f5af6[_0x368cea(0x1ad)]],_0x5ca10a=!!_0x580db5&&_0x580db5[_0x368cea(0x1c6)]===_0xbafa79,_0x52486a=_0x5ad9b6[_0x368cea(0x192)][_0x368cea(0x1ec)](_0x5f5af6[_0x368cea(0x1ad)]),_0x19be78=!!_0x580db5?.[_0x368cea(0x18e)]&&_0x580db5['version']==null&&(_0x2f77a4||!_0x5ca10a),_0x18f9f3=_0x19be78?missingRemoteVersionConflict(_0x5f5af6,_0x580db5):undefined,_0x2da105=_0x5ad9b6[_0x368cea(0x1dc)]['has'](_0x5f5af6[_0x368cea(0x1ad)])?'failed':!_0x2f77a4&&_0x5ca10a?_0x368cea(0x194):_0x18f9f3?'conflict':'would_push';_0x582861[_0x368cea(0x1d5)]({'lockKey':_0x5f5af6[_0x368cea(0x1ad)],'filePath':_0x5f5af6[_0x368cea(0x199)],'remoteId':_0x580db5?.['remoteId']??null,'mode':_0x580db5?.['remoteId']?_0x368cea(0x1e6):_0x368cea(0x1e8),'status':_0x2da105,..._0x5ad9b6['failures'][_0x368cea(0x195)](_0x5f5af6[_0x368cea(0x1ad)])?{'error':_0x5ad9b6[_0x368cea(0x1dc)][_0x368cea(0x1ec)](_0x5f5af6['lockKey'])}:{},..._0x18f9f3?{'conflict':_0x18f9f3}:{},..._0x5ad9b6['existingHooks'][_0x368cea(0x195)](_0x5f5af6[_0x368cea(0x1ad)])?{'datasetCode':_0x580db5?.[_0x368cea(0x1f7)],'bindingPreserved':!![],'warnings':[existingHookWarning(_0x5f5af6[_0x368cea(0x1ad)])]}:{},..._0x52486a?{'alias':_0x52486a[_0x368cea(0x1ae)]??null,'datasetCode':_0x52486a[_0x368cea(0x1f7)],'operationType':_0x5f5af6[_0x368cea(0x1a5)],'functionNode':_0x5f5af6[_0x368cea(0x1be)],'warnings':_0x52486a[_0x368cea(0x1db)]}:{}});}return{'method':'POST','url':'/api/management/library/scripts/save','body':{'appCode':_0x72dd35['appCode'],'force':_0x2f77a4,'files':_0x582861,'cacheClearAtRuntime':_0x582861[_0x368cea(0x1c3)](_0x1dcddb=>_0x1dcddb[_0x368cea(0x1ba)]==='would_push'),'cacheClearAtRuntimeTimes':_0x582861['some'](_0x2b1dc3=>_0x2b1dc3[_0x368cea(0x1ba)]===_0x368cea(0x197))?CACHE_CLEAR_ATTEMPTS:0x0},'description':_0x368cea(0x1c7)+_0x582861['length']+_0x368cea(0x1ce)};},async 'execute'(_0x5e7d52){const _0x5c6760=a44_0x56f74b,_0x9b7e14=loadBffProjectConfig(_0x5e7d52[_0x5c6760(0x1d3)]),_0x489a5d=await readBffLockFile(_0x9b7e14['lockFilePath']),{lockData:_0x196268,appLock:_0x46de7f}=ensureLockScope(_0x489a5d??createEmptyBffLock(),_0x5e7d52[_0x5c6760(0x1d3)],_0x9b7e14[_0x5c6760(0x1e4)],_0x5c6760(0x1d5)),_0x84a6c=await getTargetFunctions(_0x9b7e14,_0x5e7d52);if(_0x84a6c[_0x5c6760(0x1bd)]===0x0)return{'ok':!![],'data':{'uploaded':[],'skipped':[],'conflicts':[],'failed':[]},'message':_0x5c6760(0x1d8)};const _0x5019f9=_0x5e7d52[_0x5c6760(0x1cc)]('force'),_0x4fd62f=JSON[_0x5c6760(0x1e0)](JSON['stringify'](_0x196268)),_0x37067c=_0x4fd62f[_0x5c6760(0x1d4)][_0x5e7d52[_0x5c6760(0x1d3)]];if(!_0x37067c)throw new Error(_0x5c6760(0x1b4)+_0x5e7d52[_0x5c6760(0x1d3)]+_0x5c6760(0x1e7));const _0xcbd774=_0x84a6c[_0x5c6760(0x1c3)](_0x4a4d51=>_0x4a4d51['type']===_0x5c6760(0x1e2))?await scanLocalBffFunctions(_0x9b7e14,_0x5c6760(0x1e2)):_0x84a6c,_0x751df4=await buildHookMaps(_0x5e7d52[_0x5c6760(0x1d3)],_0x5e7d52[_0x5c6760(0x1da)],_0xcbd774,_0x37067c,_0x5e7d52[_0x5c6760(0x1d9)]||_0x5e7d52[_0x5c6760(0x1b9)]?.['currentApp']||_0x5e7d52[_0x5c6760(0x1b9)]?.[_0x5c6760(0x1ac)]),_0x2735e3=[],_0x4548c3=[],_0x27fb88=[],_0x21ed05=[];for(const _0x38856c of _0x84a6c){const _0x188f22=_0x751df4[_0x5c6760(0x1dc)]['get'](_0x38856c[_0x5c6760(0x1ad)]);if(_0x188f22){_0x21ed05[_0x5c6760(0x1d5)]({'lockKey':_0x38856c[_0x5c6760(0x1ad)],'error':_0x188f22});continue;}const _0x1a0e4c=await computeFileHash(_0x38856c['filePath']),_0x49b3b1=_0x37067c[_0x5c6760(0x1a9)][_0x38856c['lockKey']];if(!_0x5019f9&&_0x49b3b1&&_0x49b3b1[_0x5c6760(0x1c6)]===_0x1a0e4c){_0x4548c3[_0x5c6760(0x1d5)]({'lockKey':_0x38856c[_0x5c6760(0x1ad)],'reason':'unchanged'});continue;}if(_0x49b3b1?.['remoteId']&&_0x49b3b1[_0x5c6760(0x1f6)]==null){_0x27fb88[_0x5c6760(0x1d5)](missingRemoteVersionConflict(_0x38856c,_0x49b3b1));continue;}try{await uploadSingleFunction(_0x5e7d52['appCode'],_0x38856c,_0x37067c,_0x751df4);const _0x981b66=_0x37067c[_0x5c6760(0x1a9)][_0x38856c[_0x5c6760(0x1ad)]];_0x2735e3[_0x5c6760(0x1d5)]({'lockKey':_0x38856c[_0x5c6760(0x1ad)],'remoteId':_0x981b66?.['remoteId']??0x0});}catch(_0x3a68df){const _0x4a8bf9=remoteVersionChangedConflict(_0x38856c,_0x49b3b1,_0x3a68df);if(_0x4a8bf9){_0x27fb88[_0x5c6760(0x1d5)](_0x4a8bf9);continue;}_0x21ed05[_0x5c6760(0x1d5)]({'lockKey':_0x38856c['lockKey'],'error':_0x3a68df instanceof Error?_0x3a68df['message']:String(_0x3a68df)});}}_0x37067c[_0x5c6760(0x1ee)]=new Date()['toISOString'](),await writeBffLockFile(_0x9b7e14['lockFilePath'],_0x4fd62f),await waitForUploadedLockEntries(_0x9b7e14[_0x5c6760(0x1f5)],_0x5e7d52[_0x5c6760(0x1d3)],_0x2735e3['map'](_0x457b09=>_0x457b09[_0x5c6760(0x1ad)]));let _0x4b15d4={'attempted':![],'cleared':![]};if(_0x2735e3['length']>0x0)try{let _0xbd7496='';for(let _0x4ac2b9=0x0;_0x4ac2b9<CACHE_CLEAR_ATTEMPTS;_0x4ac2b9+=0x1){_0xbd7496=await clearBffScriptCache(),_0x4ac2b9<CACHE_CLEAR_ATTEMPTS-0x1&&await sleep(CACHE_CLEAR_INTERVAL_MS);}_0x4b15d4={'attempted':!![],'cleared':!![],'message':_0xbd7496||'Runtime\x20script\x20cache\x20cleared.'};}catch(_0x44a9d2){_0x4b15d4={'attempted':!![],'cleared':![],'error':_0x44a9d2 instanceof Error?_0x44a9d2[_0x5c6760(0x1c0)]:String(_0x44a9d2)};}const _0x3e81c9=_0x21ed05[_0x5c6760(0x1bd)]===0x0&&(_0x4b15d4['attempted']?_0x4b15d4['cleared']:!![]),_0x538e2f=_0x3e81c9,_0x44e21d=_0x4b15d4[_0x5c6760(0x1ef)]?_0x4b15d4['cleared']?_0x5c6760(0x1eb):_0x5c6760(0x1b7):_0x5c6760(0x191);return{'ok':_0x538e2f,'data':{'uploaded':_0x2735e3,'skipped':_0x4548c3,'conflicts':_0x27fb88,'failed':_0x21ed05,'cacheClear':_0x4b15d4,'warnings':[...[..._0x751df4[_0x5c6760(0x192)][_0x5c6760(0x19d)]()][_0x5c6760(0x1d0)](_0x4c5519=>_0x4c5519[_0x5c6760(0x1db)]),...[..._0x751df4[_0x5c6760(0x1c8)]]['map'](existingHookWarning)]},'message':formatPushMessage(_0x2735e3[_0x5c6760(0x1bd)],_0x4548c3[_0x5c6760(0x1bd)],_0x27fb88[_0x5c6760(0x1bd)],_0x21ed05[_0x5c6760(0x1bd)],_0x44e21d)};}};function missingRemoteVersionConflict(_0x496eae,_0x332325){const _0x2ffe97=a44_0x56f74b;return remoteVersionConflict(_0x496eae,_0x332325,_0x2ffe97(0x19e),_0x2ffe97(0x1ed));}function remoteVersionChangedConflict(_0x17b4a3,_0x34f34d,_0xd03b76){const _0x528795=a44_0x56f74b;if(!_0x34f34d?.['remoteId']||_0x34f34d[_0x528795(0x1f6)]==null||!isRemoteVersionConflict(_0xd03b76))return undefined;return remoteVersionConflict(_0x17b4a3,_0x34f34d,_0x528795(0x1ca),_0x528795(0x1c4));}function remoteVersionConflict(_0x1383b9,_0x303ab7,_0x5e4f0a,_0x4dffa0){const _0x210c3f=a44_0x56f74b;return{'code':_0x5e4f0a,'lockKey':_0x1383b9[_0x210c3f(0x1ad)],'filePath':_0x1383b9[_0x210c3f(0x199)],'remoteId':_0x303ab7['remoteId'],..._0x303ab7[_0x210c3f(0x1f6)]!=null?{'expectedVersion':_0x303ab7[_0x210c3f(0x1f6)]}:{},'message':_0x4dffa0,'nextAction':{'action':'review_remote_and_merge','command':CLI_BIN_NAME+_0x210c3f(0x1ab)+_0x303ab7[_0x210c3f(0x18e)]+'\x20--format\x20compress','requiresReview':!![],'message':'Review\x20the\x20current\x20remote\x20source,\x20merge\x20it\x20into\x20the\x20local\x20script,\x20then\x20retry\x20push.\x20Do\x20not\x20use\x20--force\x20unless\x20you\x20intentionally\x20discard\x20local\x20changes.'}};}function isRemoteVersionConflict(_0x12d6b5){const _0x506984=a44_0x56f74b,_0x144a50=_0x12d6b5 instanceof Error?_0x12d6b5['message']:String(_0x12d6b5),_0x3cbe9f=getPlatformErrorCode(_0x12d6b5)??'';return[_0x144a50,_0x3cbe9f][_0x506984(0x1c3)](_0x1e8c5e=>/(?:version|optimistic)[\s_-]*(?:conflict|mismatch|changed|stale|out[\s_-]*of[\s_-]*date)|(?:conflict|mismatch|changed|stale|out[\s_-]*of[\s_-]*date)[\s_-]*(?:version|optimistic)/i[_0x506984(0x19f)](_0x1e8c5e));}function formatPushMessage(_0x2e55fc,_0x23114b,_0x238fa9,_0x279b0b,_0x1061c4){const _0x54efca=a44_0x56f74b,_0x5cf752=[_0x54efca(0x19a)+_0x2e55fc+_0x54efca(0x1ea),_0x23114b+_0x54efca(0x1a0)];_0x238fa9>0x0&&_0x5cf752['push'](_0x238fa9+'\x20conflict'+(_0x238fa9===0x1?'':'s')+'\x20'+(_0x238fa9===0x1?'requires':_0x54efca(0x1af))+_0x54efca(0x1c9));if(_0x279b0b>0x0)_0x5cf752[_0x54efca(0x1d5)](_0x279b0b+_0x54efca(0x18f));return _0x5cf752['push'](_0x1061c4),_0x5cf752['join'](',\x20');}async function getTargetFunctions(_0x2f971c,_0x324000){const _0x5f0cf8=a44_0x56f74b,_0x3bdb49=_0x324000[_0x5f0cf8(0x1f2)](_0x5f0cf8(0x19b)),_0x4d0a51=_0x324000[_0x5f0cf8(0x1f2)](_0x5f0cf8(0x1e3)),_0x16be92=normalizeBffType(_0x3bdb49)??undefined;if(_0x4d0a51&&!_0x16be92)throw CliErrors[_0x5f0cf8(0x1b3)](_0x5f0cf8(0x1f0));const _0x5790c4=await scanLocalBffFunctions(_0x2f971c,_0x16be92);if(_0x4d0a51){const _0x4f6bec=_0x5790c4[_0x5f0cf8(0x1e9)](_0x524669=>_0x524669[_0x5f0cf8(0x1e3)]===_0x4d0a51);if(_0x4f6bec[_0x5f0cf8(0x1bd)]===0x0)throw CliErrors[_0x5f0cf8(0x1b3)]('Local\x20function\x20not\x20found:\x20'+_0x16be92+'/'+_0x4d0a51);return _0x4f6bec;}return _0x5790c4;}function existingHookWarning(_0x1f26a8){const _0x22bcbe=a44_0x56f74b;return{'code':_0x22bcbe(0x1df),'lockKey':_0x1f26a8,'message':'Dataset\x20metadata\x20is\x20unavailable;\x20the\x20existing\x20script\x20and\x20binding\x20were\x20verified.\x20Update\x20by\x20script\x20ID\x20without\x20rebinding.'};}async function buildHookMaps(_0x4d4372,_0x6047e5,_0x2e5fe2,_0x335c22,_0x19f7a0){const _0x56c95d=a44_0x56f74b,_0x3153a9=_0x2e5fe2[_0x56c95d(0x1c3)](_0x3ffb7a=>_0x3ffb7a['type']===_0x56c95d(0x1e2));if(!_0x3153a9)return{'resolutions':new Map(),'failures':new Map(),'existingHooks':new Set()};const _0x3a7b9e=resolveApiModelSource(_0x6047e5,_0x4d4372,_0x19f7a0),_0x214571=loadAliasMap(_0x6047e5,undefined,_0x3a7b9e[_0x56c95d(0x199)],_0x3a7b9e['profileName']);assertUnambiguousHookAliases(_0x214571);const _0x1e6d11=[..._0x214571[_0x56c95d(0x18d)](_0x1e68d6=>[_0x1e68d6[_0x56c95d(0x1ae)],_0x1e68d6[_0x56c95d(0x1f7)]]),...trackedHookDirectoryMappings(_0x335c22)['map'](_0x2f90ac=>[_0x2f90ac[_0x56c95d(0x1ae)],_0x2f90ac[_0x56c95d(0x1f7)]])],_0x18409a=await listDatasets(_0x4d4372);assertUnambiguousHookDirectoryMappings(_0x1e6d11['map'](([_0xc419f8,_0x302c9b])=>({'alias':_0xc419f8,'datasetCode':_0x302c9b})));const _0x2e535a=buildHookDirectoryIndexes(_0x18409a,_0x1e6d11),_0x501415=new Map(),_0x67e93a=preflightPushHookDirectories(_0x2e5fe2,_0x335c22,_0x2e535a,_0x501415),_0x580b98=new Set(),_0x45be4c=_0x2e5fe2[_0x56c95d(0x1e9)](_0x35dabb=>_0x501415[_0x56c95d(0x1ec)](_0x35dabb['lockKey'])?.[_0x56c95d(0x1cf)](_0x56c95d(0x1a8))&&_0x335c22[_0x56c95d(0x1a9)][_0x35dabb[_0x56c95d(0x1ad)]]?.['remoteId']&&_0x335c22[_0x56c95d(0x1a9)][_0x35dabb[_0x56c95d(0x1ad)]]?.[_0x56c95d(0x1f7)]);if(_0x45be4c[_0x56c95d(0x1bd)]>0x0){let _0x422dad;try{_0x422dad=await getBffScriptStatistics(_0x4d4372);}catch(_0x404edc){for(const _0x1f1e41 of _0x45be4c)_0x501415[_0x56c95d(0x1c5)](_0x1f1e41[_0x56c95d(0x1ad)],_0x56c95d(0x1b2)+(_0x404edc instanceof Error?_0x404edc[_0x56c95d(0x1c0)]:String(_0x404edc)));return{'resolutions':_0x67e93a,'failures':_0x501415,'existingHooks':_0x580b98};}for(const _0xf621ba of _0x45be4c){const _0x1bd367=_0x335c22[_0x56c95d(0x1a9)][_0xf621ba[_0x56c95d(0x1ad)]];try{const _0x586ac4=new Set(_0x2e5fe2[_0x56c95d(0x1e9)](_0x54b3d6=>_0x54b3d6[_0x56c95d(0x19b)]===_0x56c95d(0x1e2)&&_0x335c22[_0x56c95d(0x1a9)][_0x54b3d6['lockKey']]?.['datasetCode']===_0x1bd367[_0x56c95d(0x1f7)])[_0x56c95d(0x18d)](_0x283ced=>_0x283ced[_0x56c95d(0x1ae)]));if(_0x586ac4[_0x56c95d(0x1b0)]>0x1)throw CliErrors['validation'](_0x56c95d(0x1bf));const _0x4ead70=_0x422dad[_0x56c95d(0x1d0)](_0x403d2e=>[{'datasetCode':_0x403d2e['datasetCode'],'operationType':snakeToCamel(_0x403d2e[_0x56c95d(0x1a5)]),'functionNode':_0x56c95d(0x196),'id':_0x403d2e['beforeScriptId']},{'datasetCode':_0x403d2e[_0x56c95d(0x1f7)],'operationType':snakeToCamel(_0x403d2e[_0x56c95d(0x1a5)]),'functionNode':_0x56c95d(0x1d6),'id':_0x403d2e['afterScriptId']}])[_0x56c95d(0x1e9)](_0x58ef4c=>_0x58ef4c['id']===_0x1bd367[_0x56c95d(0x18e)]),_0x1832c=await getBffScriptInfo(_0x1bd367[_0x56c95d(0x18e)]);if(_0x1832c['id']!==_0x1bd367[_0x56c95d(0x18e)]||_0x1832c[_0x56c95d(0x1d3)]!==_0x4d4372||_0x1832c['scriptType']!==_0x56c95d(0x1e2)||_0x1832c[_0x56c95d(0x1b1)]!==_0xf621ba[_0x56c95d(0x1e3)]||_0x1bd367[_0x56c95d(0x1f6)]==null||_0x1832c[_0x56c95d(0x1f6)]!==_0x1bd367[_0x56c95d(0x1f6)]||_0x4ead70[_0x56c95d(0x1bd)]!==0x1||_0x4ead70[0x0][_0x56c95d(0x1f7)]!==_0x1bd367['datasetCode']||_0x4ead70[0x0][_0x56c95d(0x1a5)]!==_0xf621ba[_0x56c95d(0x1a5)]||_0x4ead70[0x0][_0x56c95d(0x1be)]!==_0xf621ba[_0x56c95d(0x1be)]||_0x1bd367[_0x56c95d(0x1a5)]!==_0xf621ba['operationType']||_0x1bd367[_0x56c95d(0x1be)]!==_0xf621ba[_0x56c95d(0x1be)])throw CliErrors['validation'](_0x56c95d(0x1f4));_0x580b98[_0x56c95d(0x1a3)](_0xf621ba[_0x56c95d(0x1ad)]),_0x501415[_0x56c95d(0x1f9)](_0xf621ba[_0x56c95d(0x1ad)]);}catch(_0x4f2df9){_0x501415[_0x56c95d(0x1c5)](_0xf621ba[_0x56c95d(0x1ad)],_0x4f2df9 instanceof Error?_0x4f2df9[_0x56c95d(0x1c0)]:String(_0x4f2df9));}}}return{'resolutions':_0x67e93a,'failures':_0x501415,'existingHooks':_0x580b98};}async function uploadSingleFunction(_0x56331f,_0x1a7766,_0x28fc81,_0x4e8359){const _0x2f7ea7=a44_0x56f74b,_0x5e7f37=await readFile(_0x1a7766['filePath'],_0x2f7ea7(0x19c)),_0x14fe23=await computeFileHash(_0x1a7766['filePath']),_0x119d17=_0x28fc81['functions'][_0x1a7766[_0x2f7ea7(0x1ad)]];if(_0x119d17?.[_0x2f7ea7(0x18e)]&&_0x119d17[_0x2f7ea7(0x1f6)]==null)throw CliErrors[_0x2f7ea7(0x1b3)](_0x1a7766[_0x2f7ea7(0x1ad)]+_0x2f7ea7(0x1aa));let _0x328f8f=extractScriptDescription(_0x5e7f37);if(!_0x328f8f&&_0x119d17?.[_0x2f7ea7(0x18e)]){const _0x3fc0b2=await getBffScriptInfo(_0x119d17[_0x2f7ea7(0x18e)]);_0x328f8f=_0x3fc0b2[_0x2f7ea7(0x1d1)]||undefined;}const _0x4ac952={'appCode':_0x56331f,'functionName':_0x1a7766[_0x2f7ea7(0x1e3)],'scriptType':_0x1a7766[_0x2f7ea7(0x19b)],'scriptContent':_0x5e7f37};if(_0x119d17?.[_0x2f7ea7(0x18e)])_0x4ac952['id']=_0x119d17[_0x2f7ea7(0x18e)];if(_0x119d17?.[_0x2f7ea7(0x1f6)]!=null)_0x4ac952[_0x2f7ea7(0x1f6)]=_0x119d17[_0x2f7ea7(0x1f6)];if(_0x328f8f)_0x4ac952[_0x2f7ea7(0x1d1)]=_0x328f8f;if(_0x1a7766[_0x2f7ea7(0x19b)]==='HOOK'){const _0x2aacaa=_0x4e8359[_0x2f7ea7(0x192)][_0x2f7ea7(0x1ec)](_0x1a7766[_0x2f7ea7(0x1ad)]);if(!_0x2aacaa&&!_0x4e8359[_0x2f7ea7(0x1c8)][_0x2f7ea7(0x195)](_0x1a7766[_0x2f7ea7(0x1ad)])||!_0x1a7766[_0x2f7ea7(0x1a5)]||!_0x1a7766['functionNode'])throw CliErrors[_0x2f7ea7(0x1b3)](_0x2f7ea7(0x1cd)+_0x1a7766['lockKey']);_0x2aacaa&&(_0x4ac952[_0x2f7ea7(0x1dd)]=_0x2aacaa[_0x2f7ea7(0x1a6)]['id'],_0x4ac952['operationType']=_0x1a7766[_0x2f7ea7(0x1a5)]),_0x4ac952[_0x2f7ea7(0x1be)]=_0x1a7766[_0x2f7ea7(0x1be)];}const _0x3162b4=await saveBffScript(_0x4ac952),_0x5f161d=_0x3162b4['id'],_0x25f818=_0x3162b4['script']??await getBffScriptInfo(_0x5f161d),_0x2e4eba={'hash':_0x14fe23,'remoteId':_0x5f161d,'version':_0x25f818[_0x2f7ea7(0x1f6)]};if(_0x1a7766[_0x2f7ea7(0x19b)]===_0x2f7ea7(0x1e2)){const _0x310518=_0x4e8359[_0x2f7ea7(0x192)]['get'](_0x1a7766[_0x2f7ea7(0x1ad)]);if(!_0x310518){_0x28fc81[_0x2f7ea7(0x1a9)][_0x1a7766[_0x2f7ea7(0x1ad)]]={..._0x119d17,..._0x2e4eba};return;}_0x2e4eba[_0x2f7ea7(0x1ae)]=_0x310518[_0x2f7ea7(0x1ae)]??_0x119d17?.[_0x2f7ea7(0x1ae)],_0x2e4eba[_0x2f7ea7(0x1f7)]=_0x310518[_0x2f7ea7(0x1f7)],_0x2e4eba[_0x2f7ea7(0x1a5)]=_0x1a7766[_0x2f7ea7(0x1a5)],_0x2e4eba['functionNode']=_0x1a7766[_0x2f7ea7(0x1be)];}_0x28fc81[_0x2f7ea7(0x1a9)][_0x1a7766['lockKey']]=_0x2e4eba;}const LOCK_SETTLE_RETRY_COUNT=0x14,LOCK_SETTLE_DELAY_MS=0x64;async function waitForUploadedLockEntries(_0x593c41,_0x3578ed,_0x289dc5){const _0x99cf6f=a44_0x56f74b;if(_0x289dc5[_0x99cf6f(0x1bd)]===0x0)return;for(let _0x3fb712=0x0;_0x3fb712<LOCK_SETTLE_RETRY_COUNT;_0x3fb712+=0x1){const _0x4d5a83=await readBffLockFile(_0x593c41),_0x8c6601=_0x4d5a83?.[_0x99cf6f(0x1d4)]?.[_0x3578ed]?.[_0x99cf6f(0x1a9)]??{},_0x28a1b0=_0x289dc5[_0x99cf6f(0x1b5)](_0xfe1501=>!!_0x8c6601[_0xfe1501]?.[_0x99cf6f(0x18e)]);if(_0x28a1b0)return;await sleep(LOCK_SETTLE_DELAY_MS);}throw new Error(_0x99cf6f(0x1e5)+_0x289dc5[_0x99cf6f(0x1c1)](',\x20')+'.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a45_0xe1d913=a45_0x4257;(function(_0x2ec79c,_0x52b56e){const _0xa08f18=a45_0x4257,_0x2029d0=_0x2ec79c();while(!![]){try{const _0x3f49bc=-parseInt(_0xa08f18(0x86))/0x1+-parseInt(_0xa08f18(0x7f))/0x2*(-parseInt(_0xa08f18(0x85))/0x3)+-parseInt(_0xa08f18(0x80))/0x4+parseInt(_0xa08f18(0x8b))/0x5*(parseInt(_0xa08f18(0x84))/0x6)+-parseInt(_0xa08f18(0x7b))/0x7*(parseInt(_0xa08f18(0x7d))/0x8)+parseInt(_0xa08f18(0x87))/0x9*(-parseInt(_0xa08f18(0x69))/0xa)+parseInt(_0xa08f18(0x67))/0xb;if(_0x3f49bc===_0x52b56e)break;else _0x2029d0['push'](_0x2029d0['shift']());}catch(_0x21bd7b){_0x2029d0['push'](_0x2029d0['shift']());}}}(a45_0x3055,0xf0ad9));import{listBffScripts,getBffScriptStatistics}from'../../core/api-client.js';function a45_0x4257(_0x3f25f5,_0x34b9e7){_0x3f25f5=_0x3f25f5-0x66;const _0x3055d5=a45_0x3055();let _0x425758=_0x3055d5[_0x3f25f5];return _0x425758;}import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiModelSource}from'../../api/model-source.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{createHookLocationMap,resolveRemoteScriptTarget,scanLocalBffFunctions}from'../../core/bff/file-system.js';import{computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile}from'../../core/bff/lock.js';function a45_0x3055(){const _0x31ff42=['lockKey','all','903UzdigM','All\x20Backend\x20Function\x20scripts\x20are\x20in\x20sync.','60056ELxTkd','defaultApp','1945030ailaph','1595800gfSCxy','has','map','\x20remote-only','6691686jZVSFR','6IsthoC','560012HrvhPX','27UhnIec','scriptsRoot','appCode','push','5ECDTIE','functions','7422624ltIAse','selectedAppName','2739710OrnWgd','length','status','boolean','\x20modified,\x20','profileName','filePath','remote','\x20unchanged','\x20added,\x20','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','mergedCli','bool','apiDir','datasetCode','bff'];a45_0x3055=function(){return _0x31ff42;};return a45_0x3055();}export const bffStatus={'service':a45_0xe1d913(0x78),'command':a45_0xe1d913(0x6b),'description':'Check\x20local\x20Backend\x20Function\x20sync\x20status\x20against\x20lock\x20file','risk':'read','flags':[{'name':a45_0xe1d913(0x70),'type':a45_0xe1d913(0x6c),'description':a45_0xe1d913(0x73)}],async 'execute'(_0x10e8e4){const _0x431a56=a45_0xe1d913,_0x110229=loadBffProjectConfig(_0x10e8e4[_0x431a56(0x89)]),_0x4cea2c=await readBffLockFile(_0x110229['lockFilePath']),{appLock:_0x244d16}=ensureLockScope(_0x4cea2c??createEmptyBffLock(),_0x10e8e4['appCode'],_0x110229[_0x431a56(0x88)],_0x431a56(0x6b)),_0x2c374a=await scanLocalBffFunctions(_0x110229),_0x833636=[],_0x5ade97=[],_0x4dd65=[];for(const _0x5e5172 of _0x2c374a){const _0x61bd14=await computeFileHash(_0x5e5172[_0x431a56(0x6f)]),_0x2bde00=_0x244d16[_0x431a56(0x66)][_0x5e5172[_0x431a56(0x79)]];if(!_0x2bde00)_0x833636[_0x431a56(0x8a)](_0x5e5172[_0x431a56(0x79)]);else _0x2bde00['hash']!==_0x61bd14?_0x5ade97['push'](_0x5e5172['lockKey']):_0x4dd65['push'](_0x5e5172[_0x431a56(0x79)]);}const _0x17583b=[];if(_0x10e8e4[_0x431a56(0x75)](_0x431a56(0x70))){const _0x8e2645=resolveApiModelSource(_0x10e8e4[_0x431a56(0x76)],_0x10e8e4[_0x431a56(0x89)],_0x10e8e4[_0x431a56(0x68)]||_0x10e8e4[_0x431a56(0x74)]?.['currentApp']||_0x10e8e4[_0x431a56(0x74)]?.[_0x431a56(0x7e)]),_0x3021d7=loadAliasMap(_0x10e8e4['apiDir'],undefined,_0x8e2645[_0x431a56(0x6f)],_0x8e2645[_0x431a56(0x6e)]),_0x7299d6=new Map(_0x3021d7[_0x431a56(0x82)](_0x27f26f=>[_0x27f26f[_0x431a56(0x77)],_0x27f26f['alias']])),[_0xc81303,_0x262890]=await Promise[_0x431a56(0x7a)]([listBffScripts(_0x10e8e4[_0x431a56(0x89)]),getBffScriptStatistics(_0x10e8e4['appCode'])]),_0x39e19b=createHookLocationMap(_0x262890),_0xc0609d=new Set(_0x2c374a[_0x431a56(0x82)](_0x25670c=>_0x25670c[_0x431a56(0x79)]));for(const _0x22d184 of _0xc81303){const _0x54188a=resolveRemoteScriptTarget(_0x110229,_0x22d184,_0x39e19b,_0x244d16[_0x431a56(0x66)],_0x7299d6);_0x54188a&&!_0xc0609d[_0x431a56(0x81)](_0x54188a['lockKey'])&&_0x17583b[_0x431a56(0x8a)](_0x54188a[_0x431a56(0x79)]);}}const _0x583717=_0x833636[_0x431a56(0x6a)]===0x0&&_0x5ade97[_0x431a56(0x6a)]===0x0&&_0x17583b['length']===0x0;return{'ok':!![],'data':{'added':_0x833636,'modified':_0x5ade97,'unchanged':_0x4dd65,'remoteOnly':_0x17583b},'message':_0x583717?_0x431a56(0x7c):_0x833636['length']+_0x431a56(0x72)+_0x5ade97[_0x431a56(0x6a)]+_0x431a56(0x6d)+_0x4dd65[_0x431a56(0x6a)]+_0x431a56(0x71)+(_0x17583b['length']>0x0?',\x20'+_0x17583b[_0x431a56(0x6a)]+_0x431a56(0x83):'')};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a46_0x4c2284=a46_0xe183;(function(_0x7167a6,_0x2fe5a6){const _0x2831e7=a46_0xe183,_0x23f702=_0x7167a6();while(!![]){try{const _0x1cacfd=-parseInt(_0x2831e7(0x1f6))/0x1*(parseInt(_0x2831e7(0x207))/0x2)+parseInt(_0x2831e7(0x209))/0x3*(parseInt(_0x2831e7(0x1f8))/0x4)+-parseInt(_0x2831e7(0x205))/0x5+-parseInt(_0x2831e7(0x1f5))/0x6+-parseInt(_0x2831e7(0x20c))/0x7+parseInt(_0x2831e7(0x201))/0x8+parseInt(_0x2831e7(0x202))/0x9*(parseInt(_0x2831e7(0x1f7))/0xa);if(_0x1cacfd===_0x2fe5a6)break;else _0x23f702['push'](_0x23f702['shift']());}catch(_0x14ad0a){_0x23f702['push'](_0x23f702['shift']());}}}(a46_0x1401,0xa2a03));function a46_0xe183(_0x1f618f,_0x179ae8){_0x1f618f=_0x1f618f-0x1f4;const _0x1401d3=a46_0x1401();let _0xe1832c=_0x1401d3[_0x1f618f];return _0xe1832c;}function a46_0x1401(){const _0x55a252=['1rvNyEc','100LxOtAN','1293436cwHxQZ','install','apiError','cwd','info','changed','\x20at\x20','nonInteractive','cli-skill-install','6318840jvAkiG','1843497aKCGwk','unknown','\x20installed','117095cSZVIa','cli-skill','1654194xEqhVd','CLI\x20Built-in\x20Skill\x20','3zavYRo','inherit','code','8775536KnIaQs',']:\x20','installedPath','Resolve\x20the\x20Skills\x20CLI\x20installation\x20issue\x20and\x20run:\x20','skillVersion','\x20is\x20already\x20current','2347590iGwwYn'];a46_0x1401=function(){return _0x55a252;};return a46_0x1401();}import{CliErrors}from'../../errors.js';import{installBuiltinSkill}from'../../skills/builtin-skill.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a46_0x4c2284(0x206),'command':a46_0x4c2284(0x1f9),'description':'Install\x20or\x20refresh\x20the\x20Rabetbase\x20CLI\x20Built-in\x20Skill','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x34171e){const _0x3f9184=a46_0x4c2284;logger['setLogPath'](process[_0x3f9184(0x1fb)]()),logger[_0x3f9184(0x1fc)](_0x3f9184(0x200),'Installing\x20CLI\x20Built-in\x20Skill\x20from\x20the\x20current\x20package.');const _0x1a71b0=installBuiltinSkill({'stdio':_0x34171e[_0x3f9184(0x1ff)]?'pipe':_0x3f9184(0x20a)});if(!_0x1a71b0['ok'])throw CliErrors[_0x3f9184(0x1fa)]('Built-in\x20Skill\x20install\x20failed\x20['+_0x1a71b0[_0x3f9184(0x20b)]+_0x3f9184(0x20d)+(_0x1a71b0['error']||_0x3f9184(0x203)),_0x3f9184(0x20f)+_0x1a71b0['repairCommand']);return console['log'](_0x1a71b0[_0x3f9184(0x1fd)]?'CLI\x20Built-in\x20Skill\x20'+_0x1a71b0[_0x3f9184(0x210)]+_0x3f9184(0x204)+(_0x1a71b0[_0x3f9184(0x20e)]?_0x3f9184(0x1fe)+_0x1a71b0['installedPath']:'\x20via\x20skills@latest'):_0x3f9184(0x208)+_0x1a71b0[_0x3f9184(0x210)]+_0x3f9184(0x1f4)+(_0x1a71b0[_0x3f9184(0x20e)]?'\x20at\x20'+_0x1a71b0[_0x3f9184(0x20e)]:'')),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a47_0x4b9ea=a47_0x15c5;(function(_0x3a4b21,_0x12e70c){const _0x4859e6=a47_0x15c5,_0x3253fe=_0x3a4b21();while(!![]){try{const _0x3a5108=-parseInt(_0x4859e6(0x9a))/0x1*(parseInt(_0x4859e6(0xc9))/0x2)+-parseInt(_0x4859e6(0x8c))/0x3*(parseInt(_0x4859e6(0xc0))/0x4)+parseInt(_0x4859e6(0x9f))/0x5+parseInt(_0x4859e6(0xc3))/0x6+parseInt(_0x4859e6(0xaa))/0x7*(-parseInt(_0x4859e6(0xd5))/0x8)+parseInt(_0x4859e6(0xbe))/0x9*(-parseInt(_0x4859e6(0x8e))/0xa)+parseInt(_0x4859e6(0xbb))/0xb;if(_0x3a5108===_0x12e70c)break;else _0x3253fe['push'](_0x3253fe['shift']());}catch(_0x485d32){_0x3253fe['push'](_0x3253fe['shift']());}}}(a47_0x912e,0x85a3e));import a47_0x25d7f6 from'chalk';import a47_0x4dcf0f from'ora';import a47_0xb8e08b from'semver';import{execa}from'execa';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{CliErrors}from'../errors.js';import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';import{resolveNpmBin}from'../utils/platform.js';function getCurrentVersion(){const _0x32c05b=a47_0x15c5;return GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x32c05b(0xae)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x3ee937=a47_0x15c5,_0xd73d31=process[_0x3ee937(0x9e)][_0x3ee937(0xaf)]();if(_0xd73d31['includes']('bun'))return _0x3ee937(0x94);return _0x3ee937(0xb3);}function a47_0x15c5(_0xb1c3ff,_0x5548e3){_0xb1c3ff=_0xb1c3ff-0x86;const _0x912ebc=a47_0x912e();let _0x15c514=_0x912ebc[_0xb1c3ff];return _0x15c514;}const updateFlags=[{'name':a47_0x4b9ea(0xca),'type':a47_0x4b9ea(0x86),'description':'Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','default':![]},{'name':'version','type':'string','description':a47_0x4b9ea(0xa9)}];function getRequestedVersion(_0x1e1635){const _0x4776fa=a47_0x4b9ea;return _0x1e1635[_0x4776fa(0xc8)](_0x4776fa(0x90))[_0x4776fa(0xd3)]();}async function validateUpdateFlags(_0x5e3866){const _0x360ac5=a47_0x4b9ea,_0x1ea945=_0x5e3866['bool'](_0x360ac5(0xca)),_0x339a5f=getRequestedVersion(_0x5e3866);if(_0x1ea945&&_0x339a5f)throw CliErrors[_0x360ac5(0xac)](_0x360ac5(0x8f),_0x360ac5(0xba));if(_0x339a5f&&!a47_0xb8e08b[_0x360ac5(0xd4)](_0x339a5f))throw CliErrors[_0x360ac5(0xac)](_0x360ac5(0x97)+_0x339a5f,_0x360ac5(0xcd));}async function fetchNpmDistTags(){const _0x5e9abf=a47_0x4b9ea;try{const _0x377400=await fetch(_0x5e9abf(0xbf)+encodeURIComponent(NPM_PACKAGE_NAME)+_0x5e9abf(0x8d),{'signal':AbortSignal[_0x5e9abf(0xc5)](0x2710)});if(!_0x377400['ok'])return null;const _0x4fb283=await _0x377400[_0x5e9abf(0xcb)]();if(!_0x4fb283||typeof _0x4fb283!==_0x5e9abf(0xb8))return null;return Object[_0x5e9abf(0xbc)](Object['entries'](_0x4fb283)['filter'](([,_0xdfc451])=>typeof _0xdfc451==='string'&&_0xdfc451['trim']()[_0x5e9abf(0xb6)]>0x0)[_0x5e9abf(0x9b)](([_0x1af231,_0x35e4ad])=>[_0x1af231,String(_0x35e4ad)[_0x5e9abf(0xd3)]()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x4b9949){const _0x2879fd=await fetchNpmDistTags();return _0x2879fd?.[_0x4b9949]??null;}async function fetchLatestVersion(){const _0x57b244=a47_0x4b9ea;return fetchNpmDistTagVersion(_0x57b244(0xb1));}async function resolveTargetVersion(_0x50c0d1){const _0x2803b2=a47_0x4b9ea,_0x530181=getRequestedVersion(_0x50c0d1);if(_0x530181)return{'version':_0x530181,'source':_0x2803b2(0x90)};if(_0x50c0d1['bool'](_0x2803b2(0xca))){const _0x2ce2f1=await fetchNpmDistTagVersion(_0x2803b2(0xca));if(!_0x2ce2f1)return null;return{'version':_0x2ce2f1,'source':_0x2803b2(0xca)};}const _0x4b5c4f=await fetchLatestVersion();if(!_0x4b5c4f)return null;return{'version':_0x4b5c4f,'source':'latest'};}function shouldInstallTarget(_0xa517dd,_0x28375e){const _0x6618cb=a47_0x4b9ea;if(_0x28375e['source']===_0x6618cb(0x90)||_0x28375e[_0x6618cb(0xb0)]===_0x6618cb(0xca))return!a47_0xb8e08b['eq'](_0xa517dd,_0x28375e[_0x6618cb(0x90)]);return a47_0xb8e08b['lt'](_0xa517dd,_0x28375e['version']);}function getInstallPlanLabel(_0x1afdc1,_0x28d7e5){const _0x280e93=a47_0x4b9ea;switch(_0x28d7e5[_0x280e93(0xb0)]){case _0x280e93(0xca):return _0x280e93(0x98)+a47_0x25d7f6[_0x280e93(0xc6)](_0x1afdc1)+_0x280e93(0xa3)+a47_0x25d7f6['green'](_0x28d7e5['version']);case _0x280e93(0x90):return _0x280e93(0x88)+a47_0x25d7f6[_0x280e93(0xc6)](_0x1afdc1)+_0x280e93(0xa3)+a47_0x25d7f6[_0x280e93(0xb2)](_0x28d7e5[_0x280e93(0x90)]);case'latest':default:return _0x280e93(0x92)+a47_0x25d7f6[_0x280e93(0xc6)](_0x1afdc1)+_0x280e93(0xa3)+a47_0x25d7f6[_0x280e93(0xb2)](_0x28d7e5[_0x280e93(0x90)]);}}function repairCurrentBuiltinSkill(){const _0x8de235=a47_0x4b9ea;console[_0x8de235(0xd1)](a47_0x25d7f6[_0x8de235(0xb7)]('Checking\x20CLI\x20Built-in\x20Skill...'));const _0xc5631b=installBuiltinSkill();if(_0xc5631b['ok']){console[_0x8de235(0xd1)](a47_0x25d7f6[_0x8de235(0xb7)](_0x8de235(0xa4)+_0xc5631b[_0x8de235(0xb9)]+'\x20is\x20up\x20to\x20date.'));return;}throw CliErrors[_0x8de235(0xa6)]('CLI\x20Built-in\x20Skill\x20repair\x20failed\x20['+_0xc5631b[_0x8de235(0x91)]+_0x8de235(0xa5)+(_0xc5631b[_0x8de235(0x93)]||_0x8de235(0x9c)),_0x8de235(0xd6)+_0xc5631b['repairCommand']+_0x8de235(0xa7)+CLI_BIN_NAME+_0x8de235(0x89));}function verifyUpdatedBuiltinSkill(_0x3e8233){const _0x7e30f4=a47_0x4b9ea,_0x40d9c9=inspectInstalledBuiltinSkillVersion(_0x3e8233);if(_0x40d9c9[_0x7e30f4(0xc2)]===_0x7e30f4(0xa2)){console[_0x7e30f4(0xd1)](a47_0x25d7f6[_0x7e30f4(0xb7)](_0x7e30f4(0xa4)+_0x3e8233+_0x7e30f4(0x96)));return;}const _0x1d3f7f=_0x40d9c9[_0x7e30f4(0xb9)]?_0x7e30f4(0xab)+_0x3e8233+_0x7e30f4(0xb5)+_0x40d9c9[_0x7e30f4(0xb9)]:_0x7e30f4(0xab)+_0x3e8233+',\x20state\x20'+_0x40d9c9[_0x7e30f4(0xc2)];throw CliErrors[_0x7e30f4(0xa6)]('CLI\x20updated\x20to\x20v'+_0x3e8233+',\x20but\x20Built-in\x20Skill\x20verification\x20failed:\x20'+_0x1d3f7f,'Run:\x20'+_0x40d9c9[_0x7e30f4(0xd2)]+_0x7e30f4(0xa7)+CLI_BIN_NAME+'\x20doctor');}async function execute(_0x34fe6a){const _0xa916ca=a47_0x4b9ea;await validateUpdateFlags(_0x34fe6a);const _0x44c58d=getCurrentVersion();console[_0xa916ca(0xd1)]('Current\x20version:\x20'+_0x44c58d);const _0x37eba4=a47_0x4dcf0f('Checking\x20for\x20updates...')[_0xa916ca(0xb4)](),_0xdf6096=await resolveTargetVersion(_0x34fe6a);if(!_0xdf6096){const _0x6239dd=_0x34fe6a[_0xa916ca(0xad)](_0xa916ca(0xca))?'Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm':'Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)';return _0x37eba4['fail'](_0x6239dd),console['log'](a47_0x25d7f6[_0xa916ca(0xb7)]('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+_0xa916ca(0xce))),{'ok':![],'message':_0x6239dd};}const _0x59097b=a47_0xb8e08b['valid'](VERSION),_0x52482c=a47_0xb8e08b[_0xa916ca(0xd4)](_0xdf6096[_0xa916ca(0x90)]);if(!_0x59097b||!_0x52482c)return _0x37eba4['fail'](_0xa916ca(0x95)),{'ok':![],'message':_0xa916ca(0x95)};if(!shouldInstallTarget(_0x59097b,_0xdf6096)){const _0x15d64e=_0xdf6096[_0xa916ca(0xb0)]===_0xa916ca(0x90)?_0xa916ca(0xcf)+_0xdf6096['version']+')':a47_0xb8e08b['gt'](_0x59097b,_0x52482c)?_0xa916ca(0xc4)+_0x44c58d+'\x20is\x20newer\x20than\x20npm\x20latest\x20v'+_0xdf6096[_0xa916ca(0x90)]:'Already\x20up\x20to\x20date\x20(v'+_0xdf6096[_0xa916ca(0x90)]+')';return _0x37eba4[_0xa916ca(0x8b)](_0x15d64e),repairCurrentBuiltinSkill(),{'ok':!![]};}_0x37eba4[_0xa916ca(0xa0)](getInstallPlanLabel(_0x44c58d,_0xdf6096));const _0x258886=detectPackageManager(),_0x39d78c=_0x258886===_0xa916ca(0xb3)?resolveNpmBin('npm'):_0x258886,_0x3c904f=a47_0x4dcf0f('Updating\x20via\x20'+_0x258886+_0xa916ca(0xbd))[_0xa916ca(0xb4)]();try{await execa(_0x39d78c,[_0xa916ca(0x99),'-g',NPM_PACKAGE_NAME+'@'+_0xdf6096[_0xa916ca(0x90)]],{'stdio':_0xa916ca(0x8a)}),_0x3c904f[_0xa916ca(0x8b)]('Updated\x20to\x20v'+_0xdf6096[_0xa916ca(0x90)]),console['log'](a47_0x25d7f6[_0xa916ca(0xb7)](_0xa916ca(0xc1)));}catch(_0x190b1e){return _0x3c904f[_0xa916ca(0xa1)]('Update\x20failed'),console['error'](a47_0x25d7f6[_0xa916ca(0xa8)]('\x20\x20'+_0x190b1e[_0xa916ca(0xc7)])),console['log'](a47_0x25d7f6['gray']('\x20\x20Try\x20manually:\x20'+_0x258886+_0xa916ca(0xcc)+NPM_PACKAGE_NAME+'@'+_0xdf6096[_0xa916ca(0x90)])),{'ok':![],'message':_0x190b1e[_0xa916ca(0xc7)]};}return verifyUpdatedBuiltinSkill(_0xdf6096[_0xa916ca(0x90)]),{'ok':!![]};}export const updateDefinition={'service':a47_0x4b9ea(0xd0),'command':a47_0x4b9ea(0x87),'description':a47_0x4b9ea(0x9d),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};function a47_0x912e(){const _0x4197df=['install','1PTAGNR','map','unknown','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','execPath','1639255HZNqfJ','info','fail','current','\x20→\x20','\x20\x20CLI\x20Built-in\x20Skill\x20',']:\x20','apiError',',\x20then\x20verify\x20with:\x20','red','Install\x20a\x20specific\x20CLI\x20version','427532GYfBsV','expected\x20','validation','bool','slice','toLowerCase','source','latest','green','npm','start',',\x20found\x20','length','gray','object','skillVersion','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.','22466862gbkEpZ','fromEntries','...','5319oufrBh','https://registry.npmjs.org/-/package/','3282904peWutU','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','state','4202646AZVUwY','Current\x20version\x20v','timeout','yellow','message','str','1550498jQDPOf','beta','json','\x20install\x20-g\x20','Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.','@latest','Already\x20on\x20requested\x20version\x20(v','update','log','repairCommand','trim','valid','120qqdXhx','Run:\x20','boolean','run','Requested\x20version:\x20','\x20doctor','pipe','succeed','3JqxqyU','/dist-tags','190kqGcWz','--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.','version','code','Update\x20available:\x20','error','bun','Version\x20comparison\x20failed','\x20is\x20up\x20to\x20date.','Invalid\x20version:\x20','Beta\x20version:\x20'];a47_0x912e=function(){return _0x4197df;};return a47_0x912e();}
|
|
1
|
+
const a47_0x1f60a3=a47_0x2008;(function(_0x231407,_0x533231){const _0x2aa1bb=a47_0x2008,_0x38a39f=_0x231407();while(!![]){try{const _0x2d5b0e=-parseInt(_0x2aa1bb(0x15f))/0x1*(parseInt(_0x2aa1bb(0x157))/0x2)+parseInt(_0x2aa1bb(0x16c))/0x3*(parseInt(_0x2aa1bb(0x13c))/0x4)+parseInt(_0x2aa1bb(0x186))/0x5*(-parseInt(_0x2aa1bb(0x152))/0x6)+parseInt(_0x2aa1bb(0x14e))/0x7+parseInt(_0x2aa1bb(0x15a))/0x8*(-parseInt(_0x2aa1bb(0x15b))/0x9)+parseInt(_0x2aa1bb(0x16e))/0xa+parseInt(_0x2aa1bb(0x148))/0xb*(parseInt(_0x2aa1bb(0x177))/0xc);if(_0x2d5b0e===_0x533231)break;else _0x38a39f['push'](_0x38a39f['shift']());}catch(_0x5224d5){_0x38a39f['push'](_0x38a39f['shift']());}}}(a47_0x2b7b,0x262be));import a47_0x503bfe from'chalk';function a47_0x2008(_0x2f8b49,_0x4d0852){_0x2f8b49=_0x2f8b49-0x13a;const _0x2b7b64=a47_0x2b7b();let _0x20080a=_0x2b7b64[_0x2f8b49];return _0x20080a;}import a47_0x38be19 from'ora';import a47_0x241aba from'semver';import{execa}from'execa';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{CliErrors}from'../errors.js';import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';import{resolveNpmBin}from'../utils/platform.js';function getCurrentVersion(){const _0x23a4d4=a47_0x2008;return GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x23a4d4(0x17c)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x571151=a47_0x2008,_0x397ceb=process[_0x571151(0x18c)]['toLowerCase']();if(_0x397ceb[_0x571151(0x166)]('bun'))return _0x571151(0x18e);return _0x571151(0x182);}const updateFlags=[{'name':'beta','type':a47_0x1f60a3(0x17d),'description':a47_0x1f60a3(0x13b),'default':![]},{'name':a47_0x1f60a3(0x156),'type':a47_0x1f60a3(0x158),'description':a47_0x1f60a3(0x151)}];function getRequestedVersion(_0x13a50f){const _0x57bb89=a47_0x1f60a3;return _0x13a50f[_0x57bb89(0x149)](_0x57bb89(0x156))[_0x57bb89(0x164)]();}async function validateUpdateFlags(_0x5437db){const _0x5e1fe6=a47_0x1f60a3,_0x4e5cd0=_0x5437db[_0x5e1fe6(0x173)](_0x5e1fe6(0x140)),_0x5a41d7=getRequestedVersion(_0x5437db);if(_0x4e5cd0&&_0x5a41d7)throw CliErrors['validation']('--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.',_0x5e1fe6(0x14a));if(_0x5a41d7&&!a47_0x241aba['valid'](_0x5a41d7))throw CliErrors[_0x5e1fe6(0x174)](_0x5e1fe6(0x150)+_0x5a41d7,_0x5e1fe6(0x176));}async function fetchNpmDistTags(){const _0x52bf4d=a47_0x1f60a3;try{const _0x22bf94=await fetch(_0x52bf4d(0x13a)+encodeURIComponent(NPM_PACKAGE_NAME)+_0x52bf4d(0x144),{'signal':AbortSignal[_0x52bf4d(0x178)](0x2710)});if(!_0x22bf94['ok'])return null;const _0xd92217=await _0x22bf94[_0x52bf4d(0x160)]();if(!_0xd92217||typeof _0xd92217!=='object')return null;return Object[_0x52bf4d(0x17a)](Object[_0x52bf4d(0x162)](_0xd92217)[_0x52bf4d(0x168)](([,_0xeb908c])=>typeof _0xeb908c==='string'&&_0xeb908c['trim']()[_0x52bf4d(0x13e)]>0x0)[_0x52bf4d(0x175)](([_0x2f1727,_0x161d8a])=>[_0x2f1727,String(_0x161d8a)[_0x52bf4d(0x164)]()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x3c403e){const _0x3b912f=await fetchNpmDistTags();return _0x3b912f?.[_0x3c403e]??null;}async function fetchLatestVersion(){return fetchNpmDistTagVersion('latest');}async function resolveTargetVersion(_0x49bf12){const _0x56588c=a47_0x1f60a3,_0x510174=getRequestedVersion(_0x49bf12);if(_0x510174)return{'version':_0x510174,'source':_0x56588c(0x156)};if(_0x49bf12['bool'](_0x56588c(0x140))){const _0x4f775c=await fetchNpmDistTagVersion(_0x56588c(0x140));if(!_0x4f775c)return null;return{'version':_0x4f775c,'source':_0x56588c(0x140)};}const _0x19c9bf=await fetchLatestVersion();if(!_0x19c9bf)return null;return{'version':_0x19c9bf,'source':_0x56588c(0x13f)};}function shouldInstallTarget(_0xe41120,_0x259865){const _0x2024bd=a47_0x1f60a3;if(_0x259865[_0x2024bd(0x15d)]==='version'||_0x259865[_0x2024bd(0x15d)]==='beta')return!a47_0x241aba['eq'](_0xe41120,_0x259865[_0x2024bd(0x156)]);return a47_0x241aba['lt'](_0xe41120,_0x259865['version']);}function getInstallPlanLabel(_0x3ddc91,_0x41cab9){const _0x3495a3=a47_0x1f60a3;switch(_0x41cab9[_0x3495a3(0x15d)]){case _0x3495a3(0x140):return _0x3495a3(0x18a)+a47_0x503bfe['yellow'](_0x3ddc91)+_0x3495a3(0x16b)+a47_0x503bfe['green'](_0x41cab9[_0x3495a3(0x156)]);case'version':return _0x3495a3(0x15c)+a47_0x503bfe['yellow'](_0x3ddc91)+_0x3495a3(0x16b)+a47_0x503bfe['green'](_0x41cab9[_0x3495a3(0x156)]);case _0x3495a3(0x13f):default:return _0x3495a3(0x179)+a47_0x503bfe[_0x3495a3(0x14d)](_0x3ddc91)+_0x3495a3(0x16b)+a47_0x503bfe[_0x3495a3(0x194)](_0x41cab9[_0x3495a3(0x156)]);}}function repairCurrentBuiltinSkill(){const _0x36c049=a47_0x1f60a3;console[_0x36c049(0x181)](a47_0x503bfe['gray'](_0x36c049(0x142)));const _0x10a970=installBuiltinSkill();if(_0x10a970['ok']){console[_0x36c049(0x181)](a47_0x503bfe['gray'](_0x36c049(0x17f)+_0x10a970[_0x36c049(0x145)]+_0x36c049(0x154)));return;}throw CliErrors[_0x36c049(0x171)](_0x36c049(0x170)+_0x10a970[_0x36c049(0x14b)]+_0x36c049(0x184)+(_0x10a970[_0x36c049(0x187)]||_0x36c049(0x14f)),_0x36c049(0x18d)+_0x10a970[_0x36c049(0x159)]+_0x36c049(0x189)+CLI_BIN_NAME+_0x36c049(0x16f));}function verifyUpdatedBuiltinSkill(_0x4cb920){const _0x1ccb7e=a47_0x1f60a3,_0x471ff8=inspectInstalledBuiltinSkillVersion(_0x4cb920);if(_0x471ff8['state']===_0x1ccb7e(0x15e)){console['log'](a47_0x503bfe['gray'](_0x1ccb7e(0x17f)+_0x4cb920+'\x20is\x20up\x20to\x20date.'));return;}const _0x4e8b86=_0x471ff8[_0x1ccb7e(0x145)]?_0x1ccb7e(0x155)+_0x4cb920+_0x1ccb7e(0x188)+_0x471ff8[_0x1ccb7e(0x145)]:_0x1ccb7e(0x155)+_0x4cb920+_0x1ccb7e(0x17e)+_0x471ff8[_0x1ccb7e(0x191)];throw CliErrors[_0x1ccb7e(0x171)]('CLI\x20updated\x20to\x20v'+_0x4cb920+',\x20but\x20Built-in\x20Skill\x20verification\x20failed:\x20'+_0x4e8b86,_0x1ccb7e(0x18d)+_0x471ff8['repairCommand']+_0x1ccb7e(0x189)+CLI_BIN_NAME+_0x1ccb7e(0x16f));}async function execute(_0x40c83e){const _0xd4e1f5=a47_0x1f60a3;await validateUpdateFlags(_0x40c83e);const _0x4afb1b=getCurrentVersion();console[_0xd4e1f5(0x181)](_0xd4e1f5(0x163)+_0x4afb1b);const _0x1d821d=a47_0x38be19(_0xd4e1f5(0x192))[_0xd4e1f5(0x165)](),_0x3a6fd5=await resolveTargetVersion(_0x40c83e);if(!_0x3a6fd5){const _0x4b52cb=_0x40c83e[_0xd4e1f5(0x173)](_0xd4e1f5(0x140))?_0xd4e1f5(0x16d):'Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)';return _0x1d821d[_0xd4e1f5(0x185)](_0x4b52cb),console[_0xd4e1f5(0x181)](a47_0x503bfe[_0xd4e1f5(0x17b)]('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@latest')),{'ok':![],'message':_0x4b52cb};}const _0x4d2dac=a47_0x241aba[_0xd4e1f5(0x193)](VERSION),_0x31d0bd=a47_0x241aba[_0xd4e1f5(0x193)](_0x3a6fd5['version']);if(!_0x4d2dac||!_0x31d0bd)return _0x1d821d['fail'](_0xd4e1f5(0x169)),{'ok':![],'message':'Version\x20comparison\x20failed'};if(!shouldInstallTarget(_0x4d2dac,_0x3a6fd5)){const _0x4cf475=_0x3a6fd5[_0xd4e1f5(0x15d)]==='version'?'Already\x20on\x20requested\x20version\x20(v'+_0x3a6fd5['version']+')':a47_0x241aba['gt'](_0x4d2dac,_0x31d0bd)?_0xd4e1f5(0x153)+_0x4afb1b+_0xd4e1f5(0x161)+_0x3a6fd5['version']:_0xd4e1f5(0x143)+_0x3a6fd5[_0xd4e1f5(0x156)]+')';return _0x1d821d[_0xd4e1f5(0x146)](_0x4cf475),repairCurrentBuiltinSkill(),{'ok':!![]};}_0x1d821d[_0xd4e1f5(0x147)](getInstallPlanLabel(_0x4afb1b,_0x3a6fd5));const _0x1cf16d=detectPackageManager(),_0x34f2c3=_0x1cf16d===_0xd4e1f5(0x182)?resolveNpmBin(_0xd4e1f5(0x182)):_0x1cf16d,_0x57e678=a47_0x38be19(_0xd4e1f5(0x16a)+_0x1cf16d+_0xd4e1f5(0x18f))['start']();try{await execa(_0x34f2c3,[_0xd4e1f5(0x180),'-g',NPM_PACKAGE_NAME+'@'+_0x3a6fd5['version']],{'stdio':_0xd4e1f5(0x18b)}),_0x57e678[_0xd4e1f5(0x146)](_0xd4e1f5(0x167)+_0x3a6fd5['version']),console[_0xd4e1f5(0x181)](a47_0x503bfe[_0xd4e1f5(0x17b)](_0xd4e1f5(0x14c)));}catch(_0x260530){return _0x57e678[_0xd4e1f5(0x185)](_0xd4e1f5(0x183)),console[_0xd4e1f5(0x187)](a47_0x503bfe[_0xd4e1f5(0x172)]('\x20\x20'+_0x260530[_0xd4e1f5(0x141)])),console[_0xd4e1f5(0x181)](a47_0x503bfe[_0xd4e1f5(0x17b)](_0xd4e1f5(0x190)+_0x1cf16d+'\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x3a6fd5[_0xd4e1f5(0x156)])),{'ok':![],'message':_0x260530[_0xd4e1f5(0x141)]};}return verifyUpdatedBuiltinSkill(_0x3a6fd5[_0xd4e1f5(0x156)]),{'ok':!![]};}export const updateDefinition={'service':'update','command':'run','description':'Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','risk':a47_0x1f60a3(0x13d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};function a47_0x2b7b(){const _0x4b82e3=['unknown','Invalid\x20version:\x20','Install\x20a\x20specific\x20CLI\x20version','1278372BzpEZp','Current\x20version\x20v','\x20is\x20up\x20to\x20date.','expected\x20','version','320898zxozBE','string','repairCommand','138616InlUlv','9CYZdNr','Requested\x20version:\x20','source','current','1EwEVVG','json','\x20is\x20newer\x20than\x20npm\x20latest\x20v','entries','Current\x20version:\x20','trim','start','includes','Updated\x20to\x20v','filter','Version\x20comparison\x20failed','Updating\x20via\x20','\x20→\x20','3xJCQpd','Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm','221050DrKhys','\x20doctor','CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','apiError','red','bool','validation','map','Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.','3500364hDBMVs','timeout','Update\x20available:\x20','fromEntries','gray','slice','boolean',',\x20state\x20','\x20\x20CLI\x20Built-in\x20Skill\x20','install','log','npm','Update\x20failed',']:\x20','fail','5XEqmDG','error',',\x20found\x20',',\x20then\x20verify\x20with:\x20','Beta\x20version:\x20','pipe','execPath','Run:\x20','bun','...','\x20\x20Try\x20manually:\x20','state','Checking\x20for\x20updates...','valid','green','https://registry.npmjs.org/-/package/','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','893492YBdRII','read','length','latest','beta','message','Checking\x20CLI\x20Built-in\x20Skill...','Already\x20up\x20to\x20date\x20(v','/dist-tags','skillVersion','succeed','info','11TtNgrx','str','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.','code','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','yellow','70091FxhPGo'];a47_0x2b7b=function(){return _0x4b82e3;};return a47_0x2b7b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5436d6,_0x41f275){const _0x100b85=a48_0x3bcf,_0x8de815=_0x5436d6();while(!![]){try{const _0x55cd97=-parseInt(_0x100b85(0x1f8))/0x1+parseInt(_0x100b85(0x1f6))/0x2*(parseInt(_0x100b85(0x1f4))/0x3)+-parseInt(_0x100b85(0x1f1))/0x4+parseInt(_0x100b85(0x1f5))/0x5+parseInt(_0x100b85(0x1f3))/0x6*(-parseInt(_0x100b85(0x1f0))/0x7)+-parseInt(_0x100b85(0x1f7))/0x8+-parseInt(_0x100b85(0x1f2))/0x9*(-parseInt(_0x100b85(0x1ef))/0xa);if(_0x55cd97===_0x41f275)break;else _0x8de815['push'](_0x8de815['shift']());}catch(_0x4630e5){_0x8de815['push'](_0x8de815['shift']());}}}(a48_0x1a76,0x206a7));function a48_0x3bcf(_0xe839e6,_0xcdf416){_0xe839e6=_0xe839e6-0x1ef;const _0x1a76de=a48_0x1a76();let _0x3bcf65=_0x1a76de[_0xe839e6];return _0x3bcf65;}import{codegenSdk}from'../../commands/codegen/sdk.js';function a48_0x1a76(){const _0x5012c2=['455448QrUdlO','9414FkJhLt','137856RJJIoA','90rLJvyN','315495aloXmB','6338tXCpox','1288040zutQJC','62343ktHlou','3640ZEnvBB','21pezuia'];a48_0x1a76=function(){return _0x5012c2;};return a48_0x1a76();}import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a49_0x3e50(){const _0x4ac29d=['str','20307640HQpYGP','read','codegen','skip-imports','450646FbOKGJ','94433EbPcwg','tableName','3116298aHOyvs','code','11809719ttRlBs','sdk','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','name','bool','alias','operation','6570048DJiWSJ','appCode','5NrwvCW','435HFQToD','4ipGius','string','boolean','28324eFmdKT'];a49_0x3e50=function(){return _0x4ac29d;};return a49_0x3e50();}function a49_0x10f3(_0x1168f3,_0x3cd9ae){_0x1168f3=_0x1168f3-0x12a;const _0x3e50d3=a49_0x3e50();let _0x10f329=_0x3e50d3[_0x1168f3];return _0x10f329;}const a49_0x1b83e4=a49_0x10f3;(function(_0x53326e,_0x4a9b81){const _0x47aa9d=a49_0x10f3,_0x2dbb39=_0x53326e();while(!![]){try{const _0x3c4ff6=parseInt(_0x47aa9d(0x13d))/0x1*(-parseInt(_0x47aa9d(0x133))/0x2)+-parseInt(_0x47aa9d(0x132))/0x3*(parseInt(_0x47aa9d(0x136))/0x4)+parseInt(_0x47aa9d(0x131))/0x5*(-parseInt(_0x47aa9d(0x13f))/0x6)+-parseInt(_0x47aa9d(0x13c))/0x7+-parseInt(_0x47aa9d(0x12f))/0x8+parseInt(_0x47aa9d(0x141))/0x9+parseInt(_0x47aa9d(0x138))/0xa;if(_0x3c4ff6===_0x4a9b81)break;else _0x2dbb39['push'](_0x2dbb39['shift']());}catch(_0x56bf9e){_0x2dbb39['push'](_0x2dbb39['shift']());}}}(a49_0x3e50,0xb0597));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':a49_0x1b83e4(0x13a),'command':a49_0x1b83e4(0x142),'description':a49_0x1b83e4(0x12a),'risk':a49_0x1b83e4(0x139),'flags':[CODE_FLAG_OPTIONAL,{'name':a49_0x1b83e4(0x12d),'type':a49_0x1b83e4(0x134),'description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)'},{'name':a49_0x1b83e4(0x12e),'type':'string','required':!![],'description':'Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)'},{'name':a49_0x1b83e4(0x13b),'type':a49_0x1b83e4(0x135),'description':'Omit\x20import\x20statements\x20from\x20generated\x20code'}],async 'execute'(_0x1b71a0){const _0x382b92=a49_0x1b83e4,{dataset:_0x2cd85d,operation:_0x480700}=await getOperationDetail(_0x1b71a0[_0x382b92(0x130)],_0x1b71a0[_0x382b92(0x137)](_0x382b92(0x140)),_0x1b71a0[_0x382b92(0x137)](_0x382b92(0x12e))),_0x791f5d=generateSdkCode(_0x2cd85d,_0x480700,{'includeImports':!_0x1b71a0[_0x382b92(0x12c)](_0x382b92(0x13b))});return{'ok':!![],'data':{'dataset':{'name':_0x2cd85d[_0x382b92(0x12b)],'code':_0x2cd85d[_0x382b92(0x140)],'tableName':_0x2cd85d[_0x382b92(0x13e)]},'operation':_0x1b71a0[_0x382b92(0x137)](_0x382b92(0x12e)),'code':_0x791f5d}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a50_0x5eb9b6=a50_0x12b9;(function(_0x301c5a,_0x5a412e){const _0x21c903=a50_0x12b9,_0x347df3=_0x301c5a();while(!![]){try{const _0x4d41f8=parseInt(_0x21c903(0x1cc))/0x1+-parseInt(_0x21c903(0x1c1))/0x2*(parseInt(_0x21c903(0x1be))/0x3)+parseInt(_0x21c903(0x1bf))/0x4*(parseInt(_0x21c903(0x1bd))/0x5)+-parseInt(_0x21c903(0x1c5))/0x6+parseInt(_0x21c903(0x1d1))/0x7+parseInt(_0x21c903(0x1d3))/0x8+parseInt(_0x21c903(0x1bc))/0x9*(-parseInt(_0x21c903(0x1c9))/0xa);if(_0x4d41f8===_0x5a412e)break;else _0x347df3['push'](_0x347df3['shift']());}catch(_0x503281){_0x347df3['push'](_0x347df3['shift']());}}}(a50_0x5777,0xe0295));function a50_0x12b9(_0x2cb847,_0x1b07ef){_0x2cb847=_0x2cb847-0x1bc;const _0x5777d6=a50_0x5777();let _0x12b92b=_0x5777d6[_0x2cb847];return _0x12b92b;}function a50_0x5777(){const _0xe43877=['66VXJbzk','sql','string','sdk','4191234MzNdNa','str','sqlName','no-imports','40PwhdTv','read','bool','1689060wlccKi','codegen','target','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','Omit\x20import\x20statements\x20from\x20generated\x20code','10423882bkburp','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','11982136aunQQV','sqlcode','3969369fUkMun','3630evtRJz','129351lOMrKl','704iUIkEV','boolean'];a50_0x5777=function(){return _0xe43877;};return a50_0x5777();}import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':a50_0x5eb9b6(0x1cd),'command':a50_0x5eb9b6(0x1c2),'description':a50_0x5eb9b6(0x1d2),'risk':a50_0x5eb9b6(0x1ca),'flags':[SQLCODE_FLAG,{'name':'target','type':a50_0x5eb9b6(0x1c3),'description':a50_0x5eb9b6(0x1cf),'default':a50_0x5eb9b6(0x1c4),'enum':['sdk','bff']},{'name':a50_0x5eb9b6(0x1c8),'type':a50_0x5eb9b6(0x1c0),'description':a50_0x5eb9b6(0x1d0)}],async 'execute'(_0x673e60){const _0x582aa6=a50_0x5eb9b6,_0x46d252=await getSqlQueryInfo(_0x673e60['appCode'],_0x673e60[_0x582aa6(0x1c6)](_0x582aa6(0x1d4))),_0xdd5911=_0x673e60['str'](_0x582aa6(0x1ce))||_0x582aa6(0x1c4),_0x563695=generateSqlCodeTemplate(_0x46d252,{'target':_0xdd5911,'includeImports':!_0x673e60[_0x582aa6(0x1cb)](_0x582aa6(0x1c8))});return{'ok':!![],'data':{'sqlCode':_0x46d252['sqlCode'],'sqlName':_0x46d252[_0x582aa6(0x1c7)],'target':_0xdd5911,'code':_0x563695}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x204398,_0x5d9e30){const _0x5dc851=a51_0x15e7,_0x3c74e8=_0x204398();while(!![]){try{const _0x18fff9=-parseInt(_0x5dc851(0x112))/0x1*(-parseInt(_0x5dc851(0x123))/0x2)+parseInt(_0x5dc851(0x13a))/0x3*(parseInt(_0x5dc851(0x132))/0x4)+parseInt(_0x5dc851(0x137))/0x5+-parseInt(_0x5dc851(0x120))/0x6+parseInt(_0x5dc851(0x131))/0x7*(-parseInt(_0x5dc851(0x11f))/0x8)+-parseInt(_0x5dc851(0x125))/0x9+parseInt(_0x5dc851(0x114))/0xa*(parseInt(_0x5dc851(0x11a))/0xb);if(_0x18fff9===_0x5d9e30)break;else _0x3c74e8['push'](_0x3c74e8['shift']());}catch(_0x28507c){_0x3c74e8['push'](_0x3c74e8['shift']());}}}(a51_0x23eb,0x8400f));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{collectAppProfileOverrides,getAppProfileFlagDefs,normalizeStoredDefaultApp}from'../../config/schema.js';function a51_0x23eb(){const _0x5a0a0a=['appcode','3888944IGWxLP','4201302akGqop','\x20Default\x20app\x20is\x20\x22','\x20Note:\x20app\x20\x22','1962962JbTaCr','Usage:\x20','5140872WwuVOf','str','defaultApp','\x20app\x20\x22','\x22\x20is\x20selected\x20automatically.','Missing\x20app\x20name.','Updated','object','length','projectConfig','\x20Default\x20app\x20changed\x20to\x20\x22','keys','14KcMkCd','1231616KKlzda','bool','\x22\x20not\x20found.','Use\x20global\x20config\x20scope','\x22\x20still\x20defined\x20in\x20','5359175XQlgpn','both','\x20<name>\x20--appcode\x20<code>','6jNcTjz','trim','validation','1DvYOzb','string','40LhbFYZ','global','project','globalConfig','\x22\x20(appcode:\x20','args','316866mVJiVS','App\x20\x22','apps','boolean'];a51_0x23eb=function(){return _0x5a0a0a;};return a51_0x23eb();}import{readRawConfigWithLayers}from'../../context.js';import{readConfig,writeConfig,scopeLabel,resolveAppScopeForWrite,appDefinedIn}from'../../commands/app/shared.js';export function buildAppAddFlags(){const _0x275c66=a51_0x15e7;return[{'name':_0x275c66(0x11e),'type':_0x275c66(0x113),'description':'App\x20code','required':!![]},{'name':_0x275c66(0x115),'type':'boolean','description':_0x275c66(0x135),'default':![]},...getAppProfileFlagDefs()];}export function buildAppRemoveFlags(){const _0x2b819d=a51_0x15e7;return[{'name':_0x2b819d(0x115),'type':_0x2b819d(0x11d),'description':_0x2b819d(0x135),'default':![]}];}function a51_0x15e7(_0x404e5d,_0x3673b3){_0x404e5d=_0x404e5d-0x111;const _0x23eb9d=a51_0x23eb();let _0x15e7c7=_0x23eb9d[_0x404e5d];return _0x15e7c7;}export async function validateAppName(_0x2871bd,_0x454dda){const _0x481a97=a51_0x15e7,_0xbf40c4=_0x2871bd[_0x481a97(0x119)][0x0]?.[_0x481a97(0x13b)]();if(!_0xbf40c4)throw CliErrors[_0x481a97(0x111)](_0x481a97(0x12a),'Usage:\x20'+CLI_BIN_NAME+'\x20'+_0x454dda+'\x20<name>');}export async function runAppAdd(_0x455772,_0x10d6d1){const _0x4edf8f=a51_0x15e7,_0x176cab=_0x455772[_0x4edf8f(0x119)][0x0]?.[_0x4edf8f(0x13b)]();if(!_0x176cab)throw CliErrors[_0x4edf8f(0x111)](_0x4edf8f(0x12a),_0x4edf8f(0x124)+CLI_BIN_NAME+'\x20'+_0x10d6d1+_0x4edf8f(0x139));const _0xdc5854=_0x455772[_0x4edf8f(0x126)](_0x4edf8f(0x11e));if(!_0xdc5854)throw CliErrors['flagMissing'](_0x4edf8f(0x11e),_0x4edf8f(0x124)+CLI_BIN_NAME+'\x20'+_0x10d6d1+'\x20<name>\x20--appcode\x20<code>');const _0x366897={'global':_0x455772['bool']('global')},_0x5b82d3=readConfig(_0x366897);if(!_0x5b82d3[_0x4edf8f(0x11c)])_0x5b82d3[_0x4edf8f(0x11c)]={};const _0x2dd296={'appcode':_0xdc5854,...collectAppProfileOverrides(_0x4743ab=>_0x455772[_0x4edf8f(0x126)](_0x4743ab))},_0x163100=_0x5b82d3[_0x4edf8f(0x11c)],_0x36df4c=Object[_0x4edf8f(0x130)](_0x163100),_0x43a79e=typeof _0x5b82d3[_0x4edf8f(0x127)]===_0x4edf8f(0x113)&&_0x163100[_0x5b82d3[_0x4edf8f(0x127)]]?_0x5b82d3['defaultApp']:_0x36df4c['length']===0x1?_0x36df4c[0x0]:undefined,_0x2d5155=!!_0x163100[_0x176cab];_0x163100[_0x176cab]=_0x2dd296;const _0x2e9a3d=normalizeStoredDefaultApp(_0x5b82d3,_0x43a79e);writeConfig(_0x5b82d3,_0x366897);const _0xb8d91c=!_0x2d5155&&_0x2e9a3d?_0x4edf8f(0x121)+_0x2e9a3d+'\x22.':'',_0x8759c7=(_0x2d5155?_0x4edf8f(0x12b):'Added')+_0x4edf8f(0x128)+_0x176cab+_0x4edf8f(0x118)+_0xdc5854+')'+scopeLabel(_0x366897)+'.'+_0xb8d91c;return{'ok':!![],'message':_0x8759c7};}export async function runAppRemove(_0x39b660,_0x5afe3d){const _0x32ad59=a51_0x15e7,_0x4d67a5=_0x39b660['args'][0x0]?.[_0x32ad59(0x13b)]();if(!_0x4d67a5)throw CliErrors[_0x32ad59(0x111)](_0x32ad59(0x12a),_0x32ad59(0x124)+CLI_BIN_NAME+'\x20'+_0x5afe3d+'\x20<name>\x20[--global]');const _0x2fc979=_0x39b660[_0x32ad59(0x133)]('global'),{config:_0x4dd8de,layers:_0x13041b}=readRawConfigWithLayers(),_0x2f992c=_0x4dd8de['apps']??{};if(!_0x2f992c[_0x4d67a5])throw CliErrors[_0x32ad59(0x111)](_0x32ad59(0x11b)+_0x4d67a5+'\x22\x20not\x20found.');const _0x3d2b2f=_0x13041b['globalConfig'][_0x32ad59(0x11c)]&&typeof _0x13041b[_0x32ad59(0x117)][_0x32ad59(0x11c)]===_0x32ad59(0x12c)?_0x13041b[_0x32ad59(0x117)][_0x32ad59(0x11c)]:{},_0x168531=_0x13041b[_0x32ad59(0x12e)][_0x32ad59(0x11c)]&&typeof _0x13041b[_0x32ad59(0x12e)][_0x32ad59(0x11c)]===_0x32ad59(0x12c)?_0x13041b[_0x32ad59(0x12e)][_0x32ad59(0x11c)]:{},_0x28682b=appDefinedIn(_0x4d67a5,_0x3d2b2f,_0x168531),_0x5bc8fe=resolveAppScopeForWrite(_0x4d67a5,_0x2fc979,_0x13041b),_0x4e1aee={'global':_0x5bc8fe===_0x32ad59(0x115)},_0x32f0c2=readConfig(_0x4e1aee),_0x4f90bd=_0x32f0c2[_0x32ad59(0x11c)];if(!_0x4f90bd||!_0x4f90bd[_0x4d67a5])throw CliErrors[_0x32ad59(0x111)](_0x32ad59(0x11b)+_0x4d67a5+_0x32ad59(0x134));delete _0x4f90bd[_0x4d67a5];let _0x4dac27='';const _0x1efe05=typeof _0x32f0c2[_0x32ad59(0x127)]===_0x32ad59(0x113)?_0x32f0c2[_0x32ad59(0x127)]:undefined,_0x41f4c7=Object[_0x32ad59(0x130)](_0x4f90bd),_0x324f64=_0x1efe05===_0x4d67a5?_0x41f4c7[0x0]:_0x1efe05,_0x588d43=normalizeStoredDefaultApp(_0x32f0c2,_0x324f64);if(_0x1efe05===_0x4d67a5&&_0x41f4c7[_0x32ad59(0x12d)]===0x1)_0x4dac27='\x20Remaining\x20app\x20\x22'+_0x41f4c7[0x0]+_0x32ad59(0x129);else _0x1efe05===_0x4d67a5&&_0x588d43&&(_0x4dac27=_0x32ad59(0x12f)+_0x588d43+'\x22.');Object[_0x32ad59(0x130)](_0x4f90bd)[_0x32ad59(0x12d)]===0x0&&(delete _0x32f0c2[_0x32ad59(0x11c)],delete _0x32f0c2[_0x32ad59(0x127)]);writeConfig(_0x32f0c2,_0x4e1aee);const _0x5db280=_0x28682b===_0x32ad59(0x138)?_0x32ad59(0x122)+_0x4d67a5+_0x32ad59(0x136)+(_0x5bc8fe===_0x32ad59(0x116)?_0x32ad59(0x115):_0x32ad59(0x116))+'\x20config.':'';return{'ok':!![],'message':'Removed\x20app\x20\x22'+_0x4d67a5+'\x22'+scopeLabel(_0x4e1aee)+'.'+_0x4dac27+_0x5db280};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xac0c72,_0x235454){const _0x4f79d6=a52_0x4f0c,_0x31a6a4=_0xac0c72();while(!![]){try{const _0x5c5011=-parseInt(_0x4f79d6(0x10e))/0x1+-parseInt(_0x4f79d6(0x105))/0x2+parseInt(_0x4f79d6(0xff))/0x3*(-parseInt(_0x4f79d6(0x114))/0x4)+parseInt(_0x4f79d6(0xfc))/0x5*(-parseInt(_0x4f79d6(0x104))/0x6)+-parseInt(_0x4f79d6(0x101))/0x7*(parseInt(_0x4f79d6(0xf9))/0x8)+parseInt(_0x4f79d6(0x113))/0x9+parseInt(_0x4f79d6(0x10f))/0xa*(parseInt(_0x4f79d6(0xf7))/0xb);if(_0x5c5011===_0x235454)break;else _0x31a6a4['push'](_0x31a6a4['shift']());}catch(_0x25ddc6){_0x31a6a4['push'](_0x31a6a4['shift']());}}}(a52_0x4b6f,0x69db0));import{input,checkbox,select}from'@inquirer/prompts';import a52_0x591f6a from'chalk';import{validateAppcode}from'../../commands/common/validate.js';function a52_0x4b6f(){const _0x503035=['10LMlzKb','gray','Invalid\x20App\x20Code','\x20apps.\x20Select\x20with\x20space,\x20a=all,\x20i=invert:','1949724hWQGyk','151780LVuZVt','(Skip;\x20configure\x20later)','message','\x0aCould\x20not\x20fetch\x20the\x20remote\x20app\x20list.\x20Enter\x20an\x20App\x20Code\x20manually.','Select\x20the\x20app\x20to\x20bind:','Fetching\x20available\x20apps...','custom','✎\x20Enter\x20appcode\x20manually','19996031UIqXvv','length','28744CvQIjO','App\x20Code:','(Skip;\x20configure\x20later\x20with\x20config\x20set\x20appcode)','3070VworAn','\x20\x20(','No\x20available\x20apps\x20found.','33xkAFXb','(No\x20login\x20session.\x20Enter\x20an\x20App\x20Code\x20manually\x20or\x20skip.)','917tUAJtv','skip','\x0aNo\x20available\x20apps\x20found.','1434wJoJYe','622266Uowmxp','yellow','appName','appCode','trim','map','valid','includes','Found\x20','254916OMqcgV'];a52_0x4b6f=function(){return _0x503035;};return a52_0x4b6f();}import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export async function promptCustomAppcode(){const _0x2ee6b9=a52_0x4f0c,_0x1ba146=await input({'message':_0x2ee6b9(0xfa),'validate':_0x899dd5=>{const _0x164ad2=_0x2ee6b9,_0x175a68=validateAppcode(_0x899dd5['trim']());return _0x175a68[_0x164ad2(0x10b)]||_0x175a68['message']||_0x164ad2(0x111);}});return _0x1ba146[_0x2ee6b9(0x109)]();}export async function promptAppSelection(_0x29936a){const _0x37040b=a52_0x4f0c,_0x3dd79f=[{'name':a52_0x591f6a[_0x37040b(0x106)](_0x37040b(0xf6)),'value':-0x1},..._0x29936a[_0x37040b(0x10a)]((_0x5b6f52,_0xf0a918)=>({'name':_0x5b6f52[_0x37040b(0x107)]+'\x20\x20'+a52_0x591f6a[_0x37040b(0x110)]('('+_0x5b6f52[_0x37040b(0x108)]+')'),'value':_0xf0a918}))],_0x3aafae=await checkbox({'message':_0x37040b(0x10d)+a52_0x591f6a['cyan'](_0x29936a[_0x37040b(0xf8)])+_0x37040b(0x112),'choices':_0x3dd79f,'loop':![]});if(_0x3aafae[_0x37040b(0x10c)](-0x1))return _0x37040b(0x11a);if(_0x3aafae['length']===0x0)return'custom';return _0x3aafae[_0x37040b(0x10a)](_0x4e3f04=>_0x29936a[_0x4e3f04]);}export async function promptSingleAppSelection(_0x30bfba){const _0x467750=a52_0x4f0c,_0x1f9744=[{'name':a52_0x591f6a[_0x467750(0x110)](_0x467750(0xfb)),'value':_0x467750(0x102)},{'name':a52_0x591f6a[_0x467750(0x106)]('✎\x20Enter\x20appcode\x20manually'),'value':_0x467750(0x11a)},..._0x30bfba['map'](_0x2c1d4f=>({'name':_0x2c1d4f[_0x467750(0x107)]+'\x20\x20'+a52_0x591f6a['gray']('('+_0x2c1d4f[_0x467750(0x108)]+')'),'value':_0x2c1d4f[_0x467750(0x108)]}))],_0x39c08a=await select({'message':_0x467750(0x118),'choices':_0x1f9744});if(_0x39c08a===_0x467750(0x102))return _0x467750(0x102);if(_0x39c08a===_0x467750(0x11a))return _0x467750(0x11a);return _0x30bfba['find'](_0x58728d=>_0x58728d['appCode']===_0x39c08a);}export async function selectSingleAppcode(_0x39f64c){const _0x3e4f6a=a52_0x4f0c;if(!_0x39f64c)return writeCliSideChannelLine(a52_0x591f6a[_0x3e4f6a(0x110)](_0x3e4f6a(0x100))),_fallbackOrSkip();writeCliSideChannelLine('Fetching\x20available\x20apps...');let _0x3dfd84;try{_0x3dfd84=await withActiveCookie(_0x39f64c,()=>listRemoteApps());}catch(_0x42516c){writeCliSideChannelLine(a52_0x591f6a[_0x3e4f6a(0x106)]('Could\x20not\x20fetch\x20the\x20remote\x20app\x20list.\x20Enter\x20an\x20App\x20Code\x20manually.'));if(_0x42516c instanceof Error)writeCliSideChannelLine(a52_0x591f6a[_0x3e4f6a(0x110)](_0x3e4f6a(0xfd)+_0x42516c[_0x3e4f6a(0x116)]+')'));return _fallbackOrSkip();}if(_0x3dfd84['length']===0x0)return writeCliSideChannelLine(a52_0x591f6a[_0x3e4f6a(0x106)](_0x3e4f6a(0xfe))),_fallbackOrSkip();const _0x4ee328=await promptSingleAppSelection(_0x3dfd84);if(_0x4ee328===_0x3e4f6a(0x102))return'';if(_0x4ee328===_0x3e4f6a(0x11a))return promptCustomAppcode();return _0x4ee328['appCode'];}function a52_0x4f0c(_0x25034f,_0x343929){_0x25034f=_0x25034f-0xf6;const _0x4b6fe0=a52_0x4b6f();let _0x4f0c62=_0x4b6fe0[_0x25034f];return _0x4f0c62;}export async function selectMultipleApps(_0x16fa83){const _0x4c1326=a52_0x4f0c;writeCliSideChannelLine(_0x4c1326(0x119));let _0x3017b3;try{_0x3017b3=await withActiveCookie(_0x16fa83,()=>listRemoteApps());}catch(_0x45ec9a){writeCliSideChannelLine(_0x4c1326(0x117));if(_0x45ec9a instanceof Error)writeCliSideChannelLine(_0x4c1326(0xfd)+_0x45ec9a['message']+')');return _0x4c1326(0x11a);}if(_0x3017b3[_0x4c1326(0xf8)]===0x0)return writeCliSideChannelLine(_0x4c1326(0x103)),_0x4c1326(0x11a);return promptAppSelection(_0x3017b3);}async function _fallbackOrSkip(){const _0x15ae40=a52_0x4f0c,_0x32ee0e=await select({'message':_0x15ae40(0xfa),'choices':[{'name':a52_0x591f6a['gray'](_0x15ae40(0x115)),'value':_0x15ae40(0x102)},{'name':a52_0x591f6a[_0x15ae40(0x106)]('✎\x20Enter\x20manually'),'value':'manual'}]});if(_0x32ee0e===_0x15ae40(0x102))return'';return promptCustomAppcode();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a53_0x507d98=a53_0x4708;(function(_0x49c07d,_0x34b3a2){const _0x2e2507=a53_0x4708,_0x3c86a8=_0x49c07d();while(!![]){try{const _0x320a3a=-parseInt(_0x2e2507(0x1ec))/0x1+parseInt(_0x2e2507(0x1f9))/0x2+parseInt(_0x2e2507(0x1f6))/0x3*(-parseInt(_0x2e2507(0x1ed))/0x4)+-parseInt(_0x2e2507(0x1fd))/0x5+-parseInt(_0x2e2507(0x1f8))/0x6*(-parseInt(_0x2e2507(0x203))/0x7)+parseInt(_0x2e2507(0x1f0))/0x8+parseInt(_0x2e2507(0x1f5))/0x9*(parseInt(_0x2e2507(0x1fa))/0xa);if(_0x320a3a===_0x34b3a2)break;else _0x3c86a8['push'](_0x3c86a8['shift']());}catch(_0x327b9f){_0x3c86a8['push'](_0x3c86a8['shift']());}}}(a53_0x1a5e,0xd9b42));import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a53_0x507d98(0x206),'FAILED']),NON_TERMINAL_STATUSES=new Set([a53_0x507d98(0x1ff),a53_0x507d98(0x201)]);export function normalizeAsyncTask(_0x966ac1){const _0x5ddf59=a53_0x507d98,_0x3baee2=typeof _0x966ac1?.[_0x5ddf59(0x208)]==='string'?_0x966ac1['taskId'][_0x5ddf59(0x200)]():'';if(!_0x3baee2)throw CliErrors[_0x5ddf59(0x1fe)](_0x5ddf59(0x204));const _0x285b8d=typeof _0x966ac1['status']===_0x5ddf59(0x205)?_0x966ac1[_0x5ddf59(0x1fc)]['trim']()['toUpperCase']():'';if(!_0x285b8d)throw CliErrors[_0x5ddf59(0x1fe)](_0x5ddf59(0x1ee)+_0x3baee2+_0x5ddf59(0x209));return{'taskId':_0x3baee2,'status':_0x285b8d,'errorMessage':typeof _0x966ac1['errorMessage']===_0x5ddf59(0x205)&&_0x966ac1[_0x5ddf59(0x202)][_0x5ddf59(0x200)]()?_0x966ac1[_0x5ddf59(0x202)][_0x5ddf59(0x200)]():null,'isTerminal':TERMINAL_STATUSES[_0x5ddf59(0x1ef)](_0x285b8d),'knownStatus':TERMINAL_STATUSES[_0x5ddf59(0x1ef)](_0x285b8d)||NON_TERMINAL_STATUSES[_0x5ddf59(0x1ef)](_0x285b8d)};}function a53_0x1a5e(){const _0x21d566=['8016588XEwKoy','397244cctHYf','1648790LbxOtw','\x20task\x20status\x20--task-id\x20','status','1656055VhvOlP','apiError','PENDING','trim','PROCESSING','errorMessage','7BrdGKx','Async\x20task\x20response\x20did\x20not\x20contain\x20a\x20taskId.','string','SUCCESS','\x20is\x20processing.','taskId','\x20response\x20did\x20not\x20contain\x20a\x20status.','353996RDuTUj','6870196kndRGG','Async\x20task\x20','has','2206712OkedXP','Task\x20','\x20--appcode\x20','\x20is\x20pending.','\x20failed:\x20','81JcACgN','3HFXMrl','\x20completed\x20successfully.'];a53_0x1a5e=function(){return _0x21d566;};return a53_0x1a5e();}export function buildAsyncTaskStatusCommand(_0x2a5f48,_0x282fd9){const _0x4f90bf=a53_0x507d98;return CLI_BIN_NAME+_0x4f90bf(0x1fb)+quoteShellArg(_0x2a5f48)+_0x4f90bf(0x1f2)+quoteShellArg(_0x282fd9)+'\x20--format\x20compress';}function a53_0x4708(_0x1a1c35,_0x536f90){_0x1a1c35=_0x1a1c35-0x1ec;const _0x1a5eab=a53_0x1a5e();let _0x4708f0=_0x1a5eab[_0x1a1c35];return _0x4708f0;}export function asyncTaskMessage(_0x5e2f80){const _0x10e445=a53_0x507d98;switch(_0x5e2f80[_0x10e445(0x1fc)]){case _0x10e445(0x1ff):return _0x10e445(0x1f1)+_0x5e2f80['taskId']+_0x10e445(0x1f3);case'PROCESSING':return _0x10e445(0x1f1)+_0x5e2f80['taskId']+_0x10e445(0x207);case _0x10e445(0x206):return _0x10e445(0x1f1)+_0x5e2f80[_0x10e445(0x208)]+_0x10e445(0x1f7);case'FAILED':return _0x5e2f80['errorMessage']?_0x10e445(0x1f1)+_0x5e2f80[_0x10e445(0x208)]+_0x10e445(0x1f4)+_0x5e2f80['errorMessage']:_0x10e445(0x1f1)+_0x5e2f80[_0x10e445(0x208)]+'\x20failed.';default:return'Task\x20'+_0x5e2f80[_0x10e445(0x208)]+'\x20returned\x20unknown\x20status\x20'+_0x5e2f80[_0x10e445(0x1fc)]+'.';}}function quoteShellArg(_0x4cea19){return'\x27'+_0x4cea19['replace'](/'/g,'\x27\x5c\x27\x27')+'\x27';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x22c073,_0x2ca176){var _0x36d220=a54_0x50de,_0x20a934=_0x22c073();while(!![]){try{var _0x1195dc=-parseInt(_0x36d220(0x1ee))/0x1+parseInt(_0x36d220(0x1f1))/0x2*(parseInt(_0x36d220(0x1ef))/0x3)+-parseInt(_0x36d220(0x1f9))/0x4*(parseInt(_0x36d220(0x1f4))/0x5)+-parseInt(_0x36d220(0x1f6))/0x6+parseInt(_0x36d220(0x1f7))/0x7*(-parseInt(_0x36d220(0x1f0))/0x8)+parseInt(_0x36d220(0x1f8))/0x9*(parseInt(_0x36d220(0x1f2))/0xa)+parseInt(_0x36d220(0x1f3))/0xb;if(_0x1195dc===_0x2ca176)break;else _0x20a934['push'](_0x20a934['shift']());}catch(_0x1e4db4){_0x20a934['push'](_0x20a934['shift']());}}}(a54_0x1bf9,0xd318b));function a54_0x50de(_0x1ef3bd,_0xdf7221){_0x1ef3bd=_0x1ef3bd-0x1eb;var _0x1bf9a9=a54_0x1bf9();var _0x50de01=_0x1bf9a9[_0x1ef3bd];return _0x50de01;}export function asDryRunResult(_0x3ec8ad,_0x4496cc){var _0x361a32=a54_0x50de;return Object[_0x361a32(0x1f5)](_0x3ec8ad,{'method':{'value':_0x4496cc[_0x361a32(0x1eb)],'enumerable':![]},'url':{'value':_0x4496cc[_0x361a32(0x1ec)],'enumerable':![]},..._0x4496cc[_0x361a32(0x1ed)]?{'description':{'value':_0x4496cc[_0x361a32(0x1ed)],'enumerable':![]}}:{}});}function a54_0x1bf9(){var _0xdcfea4=['5emUfqz','defineProperties','3554598IXDXQR','3101GnnNXq','198AgimUe','1832716wLvynx','method','url','description','113868kMHTMF','3VEcNCW','23224ZkJMiv','1170938myKwyK','111500tjXHwo','27328301nYvobM'];a54_0x1bf9=function(){return _0xdcfea4;};return a54_0x1bf9();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a55_0x3f088a=a55_0x2b04;(function(_0x12e252,_0xb35b94){const _0x14c7a0=a55_0x2b04,_0x269fd5=_0x12e252();while(!![]){try{const _0x35adcd=parseInt(_0x14c7a0(0x10f))/0x1+parseInt(_0x14c7a0(0xef))/0x2+parseInt(_0x14c7a0(0xfd))/0x3*(parseInt(_0x14c7a0(0x104))/0x4)+parseInt(_0x14c7a0(0xfa))/0x5*(-parseInt(_0x14c7a0(0x111))/0x6)+-parseInt(_0x14c7a0(0xf9))/0x7+parseInt(_0x14c7a0(0xf2))/0x8*(parseInt(_0x14c7a0(0x115))/0x9)+-parseInt(_0x14c7a0(0xf8))/0xa*(-parseInt(_0x14c7a0(0xfb))/0xb);if(_0x35adcd===_0xb35b94)break;else _0x269fd5['push'](_0x269fd5['shift']());}catch(_0x29b389){_0x269fd5['push'](_0x269fd5['shift']());}}}(a55_0x4495,0xeb362));export const CROSS_RELATION_FROM_DATASET_FLAG={'name':'from-datasetcode','type':a55_0x3f088a(0x112),'required':!![],'description':'Source\x20DB_TABLE\x20dataset\x20code'};export const CROSS_RELATION_FROM_COLUMN_FLAG={'name':a55_0x3f088a(0x10d),'type':'string','required':!![],'description':a55_0x3f088a(0xfc)};export const CROSS_RELATION_TO_DATASET_FLAG={'name':a55_0x3f088a(0xf7),'type':a55_0x3f088a(0x112),'required':!![],'description':a55_0x3f088a(0x117)};export const CROSS_RELATION_TO_COLUMN_FLAG={'name':a55_0x3f088a(0x10c),'type':a55_0x3f088a(0x112),'required':!![],'description':a55_0x3f088a(0x114)};export const CROSS_RELATION_DBLINK_FLAG={'name':a55_0x3f088a(0x10b),'type':'number','description':a55_0x3f088a(0xeb)};function a55_0x2b04(_0x1600f9,_0x2e8f44){_0x1600f9=_0x1600f9-0xeb;const _0x4495d7=a55_0x4495();let _0x2b040f=_0x4495d7[_0x1600f9];return _0x2b040f;}export const CROSS_RELATION_LABEL_FLAG={'name':a55_0x3f088a(0xf1),'type':'string','description':a55_0x3f088a(0x100)};export const CROSS_RELATION_CARDINALITY_FLAG={'name':'cardinality','type':a55_0x3f088a(0x112),'enum':[a55_0x3f088a(0xf3),a55_0x3f088a(0xec),a55_0x3f088a(0x110),'MANY_TO_MANY'],'description':a55_0x3f088a(0xee)};export const GLOBAL_SCOPE_FLAG={'name':a55_0x3f088a(0x10a),'type':a55_0x3f088a(0xed),'default':![],'description':'Write\x20to\x20the\x20global\x20configuration'};export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}(?:_[^_\s]+_[^_\s]+)?$/i,'description':a55_0x3f088a(0xf0)};export const CODE_FLAG={'name':a55_0x3f088a(0x109),'type':a55_0x3f088a(0x112),'required':!![],'description':a55_0x3f088a(0x106),'pattern':DATASET_CODE_PATTERN};function a55_0x4495(){const _0x50deb6=['8030939zoyuxe','124060eQMcDd','1521718YHjzPs','Source\x20field\x20name\x20used\x20to\x20locate\x20the\x20relation','9vYmxip','sqlcode','App\x20code\x20(e.g.\x20app-xxxxx)','Target\x20display\x20field;\x20create\x20defaults\x20to\x20the\x20target\x20field,\x20update\x20keeps\x20the\x20current\x20value','number','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','appcode','878028frIYeS','POSTGRESQL','Dataset\x20code\x20(32-char\x20hex,\x20optionally\x20with\x20_xx_xx\x20suffix)','skip-connection-test','dbtype','code','global','from-dblink-id','to-column','from-column','Skip\x20testing\x20the\x20unsaved\x20database\x20configuration\x20before\x20create/update','872929XFpvex','MANY_TO_ONE','222OVHHZG','string','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','Target\x20field\x20name','9KzeOcU','MYSQL','Target\x20DB_TABLE\x20dataset\x20code','Source\x20database\x20connection\x20ID;\x20derived\x20from\x20the\x20source\x20dataset\x20when\x20omitted','ONE_TO_MANY','boolean','Relation\x20cardinality;\x20create\x20leaves\x20it\x20unset\x20when\x20omitted,\x20update\x20keeps\x20the\x20current\x20value','1139736ampPSM','a\x2032-character\x20hex\x20code,\x20optionally\x20with\x20`_xx_xx`\x20suffix\x20(e.g.\x2099a909313f1fa7153186431e1c551588\x20or\x2099a909313f1fa7153186431e1c551588_75_3c7120aa)','to-label-column','6312728aFeQQU','ONE_TO_ONE','datasetcode','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','Database\x20product\x20type','to-datasetcode','10GNGbCg'];a55_0x4495=function(){return _0x50deb6;};return a55_0x4495();}export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':a55_0x3f088a(0xf4),'description':a55_0x3f088a(0x106)};export const SQLCODE_FLAG={'name':a55_0x3f088a(0xfe),'type':a55_0x3f088a(0x112),'required':!![],'description':'SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a55_0x3f088a(0x113)}};export const APPCODE_FLAG_OPTIONAL={'name':a55_0x3f088a(0x103),'type':'string','required':![],'description':a55_0x3f088a(0xf5)};export const APPCODE_FLAG={...APPCODE_FLAG_OPTIONAL,'required':!![],'description':a55_0x3f088a(0xff)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':a55_0x3f088a(0x101),'required':!![],'description':a55_0x3f088a(0x102)};export const DB_TYPE_FLAG={'name':a55_0x3f088a(0x108),'type':a55_0x3f088a(0x112),'required':!![],'description':a55_0x3f088a(0xf6),'enum':[a55_0x3f088a(0x116),a55_0x3f088a(0x105)]};export const SKIP_CONNECTION_TEST_FLAG={'name':a55_0x3f088a(0x107),'type':a55_0x3f088a(0xed),'description':a55_0x3f088a(0x10e)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x50ddd7,_0x183f45){const _0x278042=a56_0x1faa,_0x5aeb9f=_0x50ddd7();while(!![]){try{const _0x298057=-parseInt(_0x278042(0x1f0))/0x1*(parseInt(_0x278042(0x1f3))/0x2)+-parseInt(_0x278042(0x1e8))/0x3+parseInt(_0x278042(0x1e4))/0x4+parseInt(_0x278042(0x1e5))/0x5+parseInt(_0x278042(0x1f1))/0x6*(parseInt(_0x278042(0x1ef))/0x7)+-parseInt(_0x278042(0x1e6))/0x8*(-parseInt(_0x278042(0x1eb))/0x9)+-parseInt(_0x278042(0x1f2))/0xa;if(_0x298057===_0x183f45)break;else _0x5aeb9f['push'](_0x5aeb9f['shift']());}catch(_0x3dfdbe){_0x5aeb9f['push'](_0x5aeb9f['shift']());}}}(a56_0x5885,0x3e88c));import{existsSync,statSync}from'node:fs';function a56_0x1faa(_0x43af89,_0x2978b5){_0x43af89=_0x43af89-0x1e4;const _0x58859b=a56_0x5885();let _0x1faa74=_0x58859b[_0x43af89];return _0x1faa74;}import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const DEVELOPMENT_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0xe258ec){const _0x17cdf6=a56_0x1faa;if(_0xe258ec>=BYTES_PER_MB){const _0x2c55a9=Math[_0x17cdf6(0x1f4)](_0xe258ec/BYTES_PER_MB*0x64)/0x64;return _0x2c55a9[_0x17cdf6(0x1e9)](0x2)+_0x17cdf6(0x1e7);}return _0xe258ec+'\x20B';}export function requireDevelopmentUploadFile(_0x5799da,_0x24d08a){const _0x12a388=a56_0x1faa,_0x9311b7=_0x5799da[_0x12a388(0x1f5)]();if(!_0x9311b7)throw CliErrors['validation'](_0x24d08a+_0x12a388(0x1ea));if(!existsSync(_0x9311b7))throw CliErrors[_0x12a388(0x1ee)](_0x12a388(0x1ec)+_0x9311b7);const _0x3e7666=statSync(_0x9311b7);if(!_0x3e7666['isFile']())throw CliErrors[_0x12a388(0x1ee)]('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x9311b7);if(_0x3e7666[_0x12a388(0x1ed)]>DEVELOPMENT_UPLOAD_MAX_BYTES)throw CliErrors[_0x12a388(0x1ee)]('File\x20exceeds\x20the\x20development\x20upload\x20limit\x20of\x2050\x20MB:\x20'+_0x9311b7+'\x20('+formatBytes(_0x3e7666[_0x12a388(0x1ed)])+')');return{'path':_0x9311b7,'size':_0x3e7666['size']};}function a56_0x5885(){const _0x447c69=['6WMihJG','2362970TtZlYR','34xTbrHk','ceil','trim','1304368VpULob','2187185VgMLTg','72ANbVZJ','\x20MB','1413297UPvJBD','toFixed','\x20path\x20is\x20required.','73098TDAetf','File\x20not\x20found:\x20','size','validation','2096927vrTrHD','10156HkjJzs'];a56_0x5885=function(){return _0x447c69;};return a56_0x5885();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x82820b,_0xa8f806){const _0x4a2d0c=a57_0x4796,_0x4330df=_0x82820b();while(!![]){try{const _0x10fb93=parseInt(_0x4a2d0c(0xf8))/0x1+parseInt(_0x4a2d0c(0xf1))/0x2+-parseInt(_0x4a2d0c(0xf5))/0x3+-parseInt(_0x4a2d0c(0xf9))/0x4+parseInt(_0x4a2d0c(0xf4))/0x5+-parseInt(_0x4a2d0c(0xf3))/0x6+parseInt(_0x4a2d0c(0xf0))/0x7*(parseInt(_0x4a2d0c(0xef))/0x8);if(_0x10fb93===_0xa8f806)break;else _0x4330df['push'](_0x4330df['shift']());}catch(_0xb52ac5){_0x4330df['push'](_0x4330df['shift']());}}}(a57_0xaeff,0x7616e));function a57_0x4796(_0x2206a2,_0x504942){_0x2206a2=_0x2206a2-0xef;const _0xaeff43=a57_0xaeff();let _0x479624=_0xaeff43[_0x2206a2];return _0x479624;}export function validateAppcode(_0x46b456){const _0x5a193b=a57_0x4796,_0xeeba4c=_0x46b456[_0x5a193b(0xf7)]();if(!_0xeeba4c)return{'valid':![],'message':_0x5a193b(0xf2)};if(_0xeeba4c[_0x5a193b(0xf6)]>0x64)return{'valid':![],'message':'App\x20Code\x20cannot\x20exceed\x20100\x20characters'};if(!/^[A-Za-z0-9_-]+$/['test'](_0xeeba4c))return{'valid':![],'message':_0x5a193b(0xfa)};return{'valid':!![]};}function a57_0xaeff(){const _0x5a39f7=['2563288pNWuYn','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','912abXOcQ','20909iMNgnM','1066722jgEFdQ','App\x20Code\x20cannot\x20be\x20empty','3255528IQisZD','3958680bIxpTI','2249541YBkhly','length','trim','751336YbMqPn'];a57_0xaeff=function(){return _0x5a39f7;};return a57_0xaeff();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a58_0x56a1(_0x3bc162,_0x4f900b){_0x3bc162=_0x3bc162-0x9a;const _0x720588=a58_0x7205();let _0x56a1d6=_0x720588[_0x3bc162];return _0x56a1d6;}const a58_0x5e7d15=a58_0x56a1;(function(_0x53902c,_0x29eaed){const _0x3d07e7=a58_0x56a1,_0x4d0444=_0x53902c();while(!![]){try{const _0x1bc7d9=parseInt(_0x3d07e7(0x9c))/0x1*(parseInt(_0x3d07e7(0xb6))/0x2)+-parseInt(_0x3d07e7(0xb4))/0x3*(-parseInt(_0x3d07e7(0xad))/0x4)+parseInt(_0x3d07e7(0xa1))/0x5*(-parseInt(_0x3d07e7(0xb0))/0x6)+-parseInt(_0x3d07e7(0xb8))/0x7*(-parseInt(_0x3d07e7(0xa3))/0x8)+-parseInt(_0x3d07e7(0xa2))/0x9+-parseInt(_0x3d07e7(0xb9))/0xa+-parseInt(_0x3d07e7(0xb3))/0xb;if(_0x1bc7d9===_0x29eaed)break;else _0x4d0444['push'](_0x4d0444['shift']());}catch(_0x36e84b){_0x4d0444['push'](_0x4d0444['shift']());}}}(a58_0x7205,0x75c95));import{CliErrors}from'../../errors.js';function a58_0x7205(){const _0x2482e9=['101hIBUbg','routing','inherit','Global','Top-level\x20key\x20\x22','3650KfrFVd','2372859eYoYch','4354648GyFAOV','config','prototype','Delete\x20a\x20config\x20value\x20from\x20one\x20scope','boolean','\x20deleted','validation','riskLevel','\x20already\x20absent','\x20config\x20delete\x20<key>\x20[--global]','18524zrJbGj','call','global','3126txQUfG','defaultApp','Missing\x20key\x20argument.','247203GkBydO','564rxUdOX','Use\x20workspace\x20commands\x20to\x20modify\x20apps\x20and\x20their\x20default\x20selection.','6602CTEHAf','key','7XQsiNU','5994530WSclaN','delete','has'];a58_0x7205=function(){return _0x2482e9;};return a58_0x7205();}import{CLI_BIN_NAME,isTopLevelConfigKey,readScopedConfig,resolveWriteScope,writeScopedConfig}from'../../commands/config/shared.js';const LEGACY_DELETABLE_KEYS=new Set([a58_0x5e7d15(0x9e)]),EXTRA_DELETABLE_KEYS=new Set([a58_0x5e7d15(0xb1),a58_0x5e7d15(0x9d)]);async function execute(_0x504adc){const _0x91aed8=a58_0x5e7d15,_0x40d17e=_0x504adc['args'][0x0]?.['trim']();if(!_0x40d17e)throw CliErrors[_0x91aed8(0xa9)](_0x91aed8(0xb2),'Usage:\x20'+CLI_BIN_NAME+_0x91aed8(0xac));if(_0x40d17e===_0x91aed8(0xaa))throw CliErrors[_0x91aed8(0xa9)]('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(!isTopLevelConfigKey(_0x40d17e)&&!EXTRA_DELETABLE_KEYS[_0x91aed8(0x9b)](_0x40d17e)&&!LEGACY_DELETABLE_KEYS[_0x91aed8(0x9b)](_0x40d17e))throw CliErrors[_0x91aed8(0xa9)](_0x91aed8(0xa0)+_0x40d17e+'\x22\x20is\x20not\x20deletable.',_0x91aed8(0xb5));const _0x249303=resolveWriteScope({'global':_0x504adc['bool'](_0x91aed8(0xaf))}),_0x56f1cb=readScopedConfig(_0x249303),_0x7167cc=Object[_0x91aed8(0xa5)]['hasOwnProperty'][_0x91aed8(0xae)](_0x56f1cb,_0x40d17e);_0x7167cc&&(delete _0x56f1cb[_0x40d17e],writeScopedConfig(_0x56f1cb,_0x249303));const _0x5c18bf=_0x249303==='global'?_0x91aed8(0x9f):'Project';return{'ok':!![],'message':_0x7167cc?'✓\x20'+_0x5c18bf+'\x20'+_0x40d17e+_0x91aed8(0xa8):'✓\x20'+_0x5c18bf+'\x20'+_0x40d17e+_0x91aed8(0xab),'data':{'key':_0x40d17e,'scope':_0x249303,'changed':_0x7167cc}};}export const configDeleteDefinition={'service':a58_0x5e7d15(0xa4),'command':a58_0x5e7d15(0x9a),'description':a58_0x5e7d15(0xa6),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a58_0x5e7d15(0xb7),'description':'Top-level\x20config\x20key;\x20legacy\x20inherit\x20is\x20accepted\x20for\x20migration','required':!![]}],'flags':[{'name':a58_0x5e7d15(0xaf),'type':a58_0x5e7d15(0xa7),'description':'Delete\x20from\x20global\x20config\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
|