@lovrabet/rabetbase-cli 2.5.6 → 2.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/design-context.js +1 -1
- package/lib/commands/dataset/design-start.js +1 -1
- package/lib/commands/dataset/design-status.js +1 -1
- package/lib/commands/dataset/design-sync-retry.js +1 -1
- package/lib/commands/dataset/design-sync-status.js +1 -1
- package/lib/commands/dataset/design-validate.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/cross-db-analysis-shared.js +1 -1
- package/lib/commands/db/cross-db-analyze-latest.js +1 -1
- package/lib/commands/db/cross-db-analyze-start.js +1 -1
- package/lib/commands/db/cross-db-analyze-status.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/page-list.d.ts +2 -0
- package/lib/commands/flow/page-list.js +1 -0
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.d.ts +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.d.ts +6 -2
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.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 +26 -6
- 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.d.ts +12 -0
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-design/checkpoint.js +1 -1
- package/lib/services/dataset-design/commands.js +1 -1
- package/lib/services/dataset-design/contract.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/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 +8 -4
- package/skills/rabetbase/guides/approval-flow-development-workflow.md +52 -13
- package/skills/rabetbase/guides/backend-function.md +26 -4
- package/skills/rabetbase/guides/bff-creation-workflow.md +9 -0
- package/skills/rabetbase/guides/cross-database-bff.md +1 -0
- package/skills/rabetbase/guides/custom-page-flow-sdk.md +2 -0
- package/skills/rabetbase/guides/data-api-guidelines.md +2 -0
- package/skills/rabetbase/guides/flow-config-examples.md +75 -0
- package/skills/rabetbase/guides/form-flow-start.md +61 -0
- package/skills/rabetbase/guides/typescript-sdk.md +1 -1
- package/skills/rabetbase/knowledge/approval-flow/config-json-schema.md +18 -4
- package/skills/rabetbase/references/rabetbase-codegen-sdk.md +5 -4
- package/skills/rabetbase/references/rabetbase-flow-commands.md +21 -2
- package/skills/rabetbase/references/rabetbase-flow-resources.md +21 -3
- package/skills/rabetbase/references/rabetbase-flow-runtime-boundary.md +6 -2
- package/skills/rabetbase/references/rabetbase-kb.md +4 -1
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +5 -3
package/lib/commands/bff/push.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a44_0x2133b6=a44_0xf34f;(function(_0x5a0c10,_0x489e48){const _0x572072=a44_0xf34f,_0x679214=_0x5a0c10();while(!![]){try{const _0x7a8265=-parseInt(_0x572072(0xca))/0x1+-parseInt(_0x572072(0xfe))/0x2*(parseInt(_0x572072(0xdf))/0x3)+parseInt(_0x572072(0xa8))/0x4+-parseInt(_0x572072(0xcc))/0x5+parseInt(_0x572072(0xae))/0x6+parseInt(_0x572072(0xe9))/0x7*(-parseInt(_0x572072(0x9c))/0x8)+-parseInt(_0x572072(0xc7))/0x9*(-parseInt(_0x572072(0xa6))/0xa);if(_0x7a8265===_0x489e48)break;else _0x679214['push'](_0x679214['shift']());}catch(_0x19a51a){_0x679214['push'](_0x679214['shift']());}}}(a44_0x3b7e,0x995b9));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';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_0x2133b6(0xa5),'command':a44_0x2133b6(0xb4),'description':a44_0x2133b6(0xde),'risk':a44_0x2133b6(0xcf),'structuredErrors':!![],'flags':[{'name':'type','type':a44_0x2133b6(0xea),'description':a44_0x2133b6(0xda),'enum':['COMMON',a44_0x2133b6(0x102),a44_0x2133b6(0xf1)]},{'name':a44_0x2133b6(0xe3),'type':a44_0x2133b6(0xea),'description':'Push\x20only\x20the\x20named\x20function\x20(requires\x20--type)'},{'name':a44_0x2133b6(0xcb),'type':a44_0x2133b6(0xbb),'description':a44_0x2133b6(0xf7)}],async 'dryRun'(_0x26878e){const _0x1e38ca=a44_0x2133b6,_0x394ab8=loadBffProjectConfig(_0x26878e[_0x1e38ca(0xd6)]),_0x586678=await readBffLockFile(_0x394ab8[_0x1e38ca(0xc8)]),{appLock:_0x5da437}=ensureLockScope(_0x586678??createEmptyBffLock(),_0x26878e['appCode'],_0x394ab8['scriptsRoot'],_0x1e38ca(0xb4)),_0x3305e8=await getTargetFunctions(_0x394ab8,_0x26878e),_0x22da8d=_0x3305e8['some'](_0x297a66=>_0x297a66[_0x1e38ca(0xd1)]==='HOOK')?await scanLocalBffFunctions(_0x394ab8,'HOOK'):_0x3305e8,_0x5a9642=await buildHookMaps(_0x26878e[_0x1e38ca(0xd6)],_0x26878e['apiDir'],_0x22da8d,_0x5da437,_0x26878e[_0x1e38ca(0x97)]||_0x26878e['mergedCli']?.[_0x1e38ca(0xc9)]||_0x26878e[_0x1e38ca(0xc2)]?.['defaultApp']),_0x4aa02a=_0x26878e['bool'](_0x1e38ca(0xcb)),_0x319e52=[];for(const _0x4c0405 of _0x3305e8){const _0x7b0171=await computeFileHash(_0x4c0405[_0x1e38ca(0xe6)]),_0x2b8f90=_0x5da437['functions'][_0x4c0405['lockKey']],_0x98d3b1=!!_0x2b8f90&&_0x2b8f90[_0x1e38ca(0xd0)]===_0x7b0171,_0x5b1a80=_0x5a9642[_0x1e38ca(0xf3)][_0x1e38ca(0xe2)](_0x4c0405[_0x1e38ca(0xb8)]),_0x49645b=!!_0x2b8f90?.[_0x1e38ca(0xff)]&&_0x2b8f90[_0x1e38ca(0xf6)]==null&&(_0x4aa02a||!_0x98d3b1),_0x5cf75b=_0x49645b?missingRemoteVersionConflict(_0x4c0405,_0x2b8f90):undefined,_0x1fd7d1=_0x5a9642['failures'][_0x1e38ca(0xd4)](_0x4c0405[_0x1e38ca(0xb8)])?_0x1e38ca(0xf8):!_0x4aa02a&&_0x98d3b1?_0x1e38ca(0xdc):_0x5cf75b?'conflict':_0x1e38ca(0xd9);_0x319e52[_0x1e38ca(0xb4)]({'lockKey':_0x4c0405[_0x1e38ca(0xb8)],'filePath':_0x4c0405[_0x1e38ca(0xe6)],'remoteId':_0x2b8f90?.[_0x1e38ca(0xff)]??null,'mode':_0x2b8f90?.[_0x1e38ca(0xff)]?_0x1e38ca(0xa9):_0x1e38ca(0xee),'status':_0x1fd7d1,..._0x5a9642[_0x1e38ca(0xb5)]['has'](_0x4c0405[_0x1e38ca(0xb8)])?{'error':_0x5a9642['failures'][_0x1e38ca(0xe2)](_0x4c0405[_0x1e38ca(0xb8)])}:{},..._0x5cf75b?{'conflict':_0x5cf75b}:{},..._0x5a9642['existingHooks'][_0x1e38ca(0xd4)](_0x4c0405['lockKey'])?{'datasetCode':_0x2b8f90?.['datasetCode'],'bindingPreserved':!![],'warnings':[existingHookWarning(_0x4c0405[_0x1e38ca(0xb8)])]}:{},..._0x5b1a80?{'alias':_0x5b1a80[_0x1e38ca(0xa7)]??null,'datasetCode':_0x5b1a80[_0x1e38ca(0x98)],'operationType':_0x4c0405[_0x1e38ca(0x9b)],'functionNode':_0x4c0405['functionNode'],'warnings':_0x5b1a80[_0x1e38ca(0xcd)]}:{}});}return{'method':_0x1e38ca(0xed),'url':_0x1e38ca(0xc1),'body':{'appCode':_0x26878e[_0x1e38ca(0xd6)],'force':_0x4aa02a,'files':_0x319e52,'cacheClearAtRuntime':_0x319e52[_0x1e38ca(0xa0)](_0x496c97=>_0x496c97['status']===_0x1e38ca(0xd9)),'cacheClearAtRuntimeTimes':_0x319e52[_0x1e38ca(0xa0)](_0xe76c7b=>_0xe76c7b[_0x1e38ca(0x9e)]===_0x1e38ca(0xd9))?CACHE_CLEAR_ATTEMPTS:0x0},'description':_0x1e38ca(0xb2)+_0x319e52[_0x1e38ca(0xd3)]+_0x1e38ca(0xdd)};},async 'execute'(_0x3ff953){const _0x292862=a44_0x2133b6,_0x358265=loadBffProjectConfig(_0x3ff953[_0x292862(0xd6)]),_0x457143=await readBffLockFile(_0x358265[_0x292862(0xc8)]),{lockData:_0x292ea1,appLock:_0x3ca493}=ensureLockScope(_0x457143??createEmptyBffLock(),_0x3ff953[_0x292862(0xd6)],_0x358265[_0x292862(0xe5)],_0x292862(0xb4)),_0x1a600e=await getTargetFunctions(_0x358265,_0x3ff953);if(_0x1a600e['length']===0x0)return{'ok':!![],'data':{'uploaded':[],'skipped':[],'conflicts':[],'failed':[]},'message':_0x292862(0xd8)};const _0xddb352=_0x3ff953[_0x292862(0xa2)](_0x292862(0xcb)),_0xed75b9=JSON['parse'](JSON[_0x292862(0xfa)](_0x292ea1)),_0x2a440a=_0xed75b9[_0x292862(0xb9)][_0x3ff953[_0x292862(0xd6)]];if(!_0x2a440a)throw new Error(_0x292862(0xfb)+_0x3ff953['appCode']+'\x22\x20not\x20found\x20after\x20ensureLockScope.');const _0x1a5ea9=_0x1a600e[_0x292862(0xa0)](_0x2e292c=>_0x2e292c[_0x292862(0xd1)]===_0x292862(0xf1))?await scanLocalBffFunctions(_0x358265,_0x292862(0xf1)):_0x1a600e,_0x3a2a94=await buildHookMaps(_0x3ff953[_0x292862(0xd6)],_0x3ff953[_0x292862(0xaf)],_0x1a5ea9,_0x2a440a,_0x3ff953[_0x292862(0x97)]||_0x3ff953['mergedCli']?.[_0x292862(0xc9)]||_0x3ff953[_0x292862(0xc2)]?.['defaultApp']),_0x57c66c=[],_0x1a050d=[],_0x55589b=[],_0xdf9d3a=[];for(const _0x5cd1be of _0x1a600e){const _0x34983b=_0x3a2a94[_0x292862(0xb5)][_0x292862(0xe2)](_0x5cd1be[_0x292862(0xb8)]);if(_0x34983b){_0xdf9d3a['push']({'lockKey':_0x5cd1be[_0x292862(0xb8)],'error':_0x34983b});continue;}const _0x535eb3=await computeFileHash(_0x5cd1be['filePath']),_0x15270c=_0x2a440a[_0x292862(0xbd)][_0x5cd1be[_0x292862(0xb8)]];if(!_0xddb352&&_0x15270c&&_0x15270c[_0x292862(0xd0)]===_0x535eb3){_0x1a050d[_0x292862(0xb4)]({'lockKey':_0x5cd1be[_0x292862(0xb8)],'reason':_0x292862(0xdc)});continue;}if(_0x15270c?.[_0x292862(0xff)]&&_0x15270c[_0x292862(0xf6)]==null){_0x55589b[_0x292862(0xb4)](missingRemoteVersionConflict(_0x5cd1be,_0x15270c));continue;}try{await uploadSingleFunction(_0x3ff953[_0x292862(0xd6)],_0x5cd1be,_0x2a440a,_0x3a2a94);const _0x4c4ad1=_0x2a440a[_0x292862(0xbd)][_0x5cd1be[_0x292862(0xb8)]];_0x57c66c[_0x292862(0xb4)]({'lockKey':_0x5cd1be['lockKey'],'remoteId':_0x4c4ad1?.[_0x292862(0xff)]??0x0});}catch(_0x2299f7){const _0x3b504a=remoteVersionChangedConflict(_0x5cd1be,_0x15270c,_0x2299f7);if(_0x3b504a){_0x55589b['push'](_0x3b504a);continue;}_0xdf9d3a['push']({'lockKey':_0x5cd1be[_0x292862(0xb8)],'error':_0x2299f7 instanceof Error?_0x2299f7['message']:String(_0x2299f7)});}}_0x2a440a[_0x292862(0xf5)]=new Date()[_0x292862(0xba)](),await writeBffLockFile(_0x358265['lockFilePath'],_0xed75b9),await waitForUploadedLockEntries(_0x358265[_0x292862(0xc8)],_0x3ff953[_0x292862(0xd6)],_0x57c66c[_0x292862(0xb6)](_0x7718ae=>_0x7718ae[_0x292862(0xb8)]));let _0x2f33b4={'attempted':![],'cleared':![]};if(_0x57c66c['length']>0x0)try{let _0x332a92='';for(let _0x534861=0x0;_0x534861<CACHE_CLEAR_ATTEMPTS;_0x534861+=0x1){_0x332a92=await clearBffScriptCache(),_0x534861<CACHE_CLEAR_ATTEMPTS-0x1&&await sleep(CACHE_CLEAR_INTERVAL_MS);}_0x2f33b4={'attempted':!![],'cleared':!![],'message':_0x332a92||_0x292862(0x9d)};}catch(_0x473e8b){_0x2f33b4={'attempted':!![],'cleared':![],'error':_0x473e8b instanceof Error?_0x473e8b[_0x292862(0xe4)]:String(_0x473e8b)};}const _0x4935d4=_0xdf9d3a[_0x292862(0xd3)]===0x0&&(_0x2f33b4['attempted']?_0x2f33b4['cleared']:!![]),_0xb51414=_0x4935d4,_0x479fd0=_0x2f33b4['attempted']?_0x2f33b4[_0x292862(0x101)]?'runtime\x20cache\x20cleared':'runtime\x20cache\x20clear\x20failed':'runtime\x20cache\x20not\x20needed';return{'ok':_0xb51414,'data':{'uploaded':_0x57c66c,'skipped':_0x1a050d,'conflicts':_0x55589b,'failed':_0xdf9d3a,'cacheClear':_0x2f33b4,'warnings':[...[..._0x3a2a94[_0x292862(0xf3)][_0x292862(0xc5)]()][_0x292862(0x9f)](_0x232328=>_0x232328['warnings']),...[..._0x3a2a94[_0x292862(0xc4)]][_0x292862(0xb6)](existingHookWarning)]},'message':formatPushMessage(_0x57c66c[_0x292862(0xd3)],_0x1a050d[_0x292862(0xd3)],_0x55589b[_0x292862(0xd3)],_0xdf9d3a[_0x292862(0xd3)],_0x479fd0)};}};function missingRemoteVersionConflict(_0x514d67,_0x3f6dae){const _0x2b6186=a44_0x2133b6;return remoteVersionConflict(_0x514d67,_0x3f6dae,_0x2b6186(0xf4),_0x2b6186(0xaa));}function remoteVersionChangedConflict(_0xa0a632,_0x3a765f,_0x3f799e){const _0x41b612=a44_0x2133b6;if(!_0x3a765f?.[_0x41b612(0xff)]||_0x3a765f[_0x41b612(0xf6)]==null||!isRemoteVersionConflict(_0x3f799e))return undefined;return remoteVersionConflict(_0xa0a632,_0x3a765f,_0x41b612(0xfc),'Remote\x20script\x20version\x20changed\x20since\x20the\x20last\x20pull.');}function remoteVersionConflict(_0x4625be,_0x23f52d,_0x634bfc,_0x2e3590){const _0x5edb2a=a44_0x2133b6;return{'code':_0x634bfc,'lockKey':_0x4625be[_0x5edb2a(0xb8)],'filePath':_0x4625be[_0x5edb2a(0xe6)],'remoteId':_0x23f52d[_0x5edb2a(0xff)],..._0x23f52d['version']!=null?{'expectedVersion':_0x23f52d[_0x5edb2a(0xf6)]}:{},'message':_0x2e3590,'nextAction':{'action':_0x5edb2a(0xe0),'command':CLI_BIN_NAME+_0x5edb2a(0xb3)+_0x23f52d['remoteId']+_0x5edb2a(0xdb),'requiresReview':!![],'message':_0x5edb2a(0xe8)}};}function isRemoteVersionConflict(_0x3f134a){const _0x691668=a44_0x2133b6,_0x5d21a8=_0x3f134a instanceof Error?_0x3f134a[_0x691668(0xe4)]:String(_0x3f134a),_0x272d8a=getPlatformErrorCode(_0x3f134a)??'';return[_0x5d21a8,_0x272d8a][_0x691668(0xa0)](_0x3292d9=>/(?: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['test'](_0x3292d9));}function a44_0xf34f(_0x31d382,_0x6e355a){_0x31d382=_0x31d382-0x97;const _0x3b7e40=a44_0x3b7e();let _0xf34f17=_0x3b7e40[_0x31d382];return _0xf34f17;}function a44_0x3b7e(){const _0x6b7683=['Push\x20local\x20Backend\x20Function\x20scripts\x20to\x20remote','21MzSbtF','review_remote_and_merge','script','get','name','message','scriptsRoot','filePath','str','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.','4247439aiVwDY','string','\x20conflict','validation','POST','create','before','description','HOOK','Existing\x20HOOK\x20identity,\x20version\x20or\x20binding\x20does\x20not\x20match\x20the\x20local\x20lock.\x20Pull\x20and\x20review\x20before\x20pushing.','resolutions','BFF_REMOTE_VERSION_MISSING','lastSync','version','Force\x20push\x20ignoring\x20hash\x20protection','failed','Multiple\x20HOOK\x20directories\x20reference\x20the\x20same\x20missing\x20Dataset.\x20Resolve\x20duplicate\x20directories\x20before\x20pushing.','stringify','Lock\x20scope\x20for\x20app\x20\x22','BFF_REMOTE_VERSION_CHANGED','utf8','304772UzEEec','remoteId','startsWith','cleared','ENDPOINT','Lock\x20file\x20not\x20settled\x20after\x20push\x20for\x20','require','after','selectedAppName','datasetCode','\x20uploaded','--name\x20requires\x20--type\x20to\x20identify\x20the\x20function.','operationType','16AplIBV','Runtime\x20script\x20cache\x20cleared.','status','flatMap','some','beforeScriptId','bool','\x20failed','dataset','bff','14870ANMKCN','alias','4614636xTLIlG','update','The\x20local\x20sync\x20lock\x20has\x20no\x20remote\x20version\x20for\x20this\x20script.','add','functionNode','size','3667368jVfmJa','apiDir','filter','afterScriptId','Would\x20inspect\x20','\x20bff\x20detail\x20--id\x20','push','failures','map','set','lockKey','apps','toISOString','boolean','\x20resolution','functions','Incomplete\x20HOOK\x20path:\x20','functionName','datasetId','/api/management/library/scripts/save','mergedCli','delete','existingHooks','values','every','14211TOyveA','lockFilePath','currentApp','526960kHNioo','force','3387455nbZico','warnings','requires','write','hash','type','profileName','length','has','HOOK_DATASET_NOT_FOUND:','appCode','EXISTING_HOOK_BINDING_PRESERVED','No\x20local\x20Backend\x20Function\x20scripts\x20found.','would_push','Push\x20only\x20this\x20script\x20type','\x20--format\x20compress','unchanged','\x20local\x20Backend\x20Function\x20script(s)\x20for\x20push\x20and\x20clear\x20runtime\x20cache\x20if\x20files\x20are\x20uploaded'];a44_0x3b7e=function(){return _0x6b7683;};return a44_0x3b7e();}function formatPushMessage(_0xf992bf,_0x14cb9f,_0x31f88e,_0x42df51,_0x5d74b2){const _0x8bf98a=a44_0x2133b6,_0x251187=['Push\x20complete:\x20'+_0xf992bf+_0x8bf98a(0x99),_0x14cb9f+'\x20skipped'];_0x31f88e>0x0&&_0x251187[_0x8bf98a(0xb4)](_0x31f88e+_0x8bf98a(0xeb)+(_0x31f88e===0x1?'':'s')+'\x20'+(_0x31f88e===0x1?_0x8bf98a(0xce):_0x8bf98a(0x104))+_0x8bf98a(0xbc));if(_0x42df51>0x0)_0x251187[_0x8bf98a(0xb4)](_0x42df51+_0x8bf98a(0xa3));return _0x251187['push'](_0x5d74b2),_0x251187['join'](',\x20');}async function getTargetFunctions(_0x3b5ff7,_0x1bfeaf){const _0x28ed39=a44_0x2133b6,_0x406db8=_0x1bfeaf[_0x28ed39(0xe7)](_0x28ed39(0xd1)),_0x1e2830=_0x1bfeaf['str']('name'),_0x5efb45=normalizeBffType(_0x406db8)??undefined;if(_0x1e2830&&!_0x5efb45)throw CliErrors[_0x28ed39(0xec)](_0x28ed39(0x9a));const _0x180c5e=await scanLocalBffFunctions(_0x3b5ff7,_0x5efb45);if(_0x1e2830){const _0x3f96fb=_0x180c5e[_0x28ed39(0xb0)](_0x46564e=>_0x46564e[_0x28ed39(0xe3)]===_0x1e2830);if(_0x3f96fb[_0x28ed39(0xd3)]===0x0)throw CliErrors[_0x28ed39(0xec)]('Local\x20function\x20not\x20found:\x20'+_0x5efb45+'/'+_0x1e2830);return _0x3f96fb;}return _0x180c5e;}function existingHookWarning(_0x2d9fc3){const _0x413df4=a44_0x2133b6;return{'code':_0x413df4(0xd7),'lockKey':_0x2d9fc3,'message':'Dataset\x20metadata\x20is\x20unavailable;\x20the\x20existing\x20script\x20and\x20binding\x20were\x20verified.\x20Update\x20by\x20script\x20ID\x20without\x20rebinding.'};}async function buildHookMaps(_0x959fa8,_0xa68bb5,_0x4ce884,_0x7ce922,_0x2c484e){const _0x217124=a44_0x2133b6,_0x4d5a74=_0x4ce884['some'](_0xf4ab46=>_0xf4ab46['type']===_0x217124(0xf1));if(!_0x4d5a74)return{'resolutions':new Map(),'failures':new Map(),'existingHooks':new Set()};const _0x247026=resolveApiModelSource(_0xa68bb5,_0x959fa8,_0x2c484e),_0x4e6f70=loadAliasMap(_0xa68bb5,undefined,_0x247026['filePath'],_0x247026[_0x217124(0xd2)]);assertUnambiguousHookAliases(_0x4e6f70);const _0x5c1da4=[..._0x4e6f70[_0x217124(0xb6)](_0x1bcf66=>[_0x1bcf66[_0x217124(0xa7)],_0x1bcf66['datasetCode']]),...trackedHookDirectoryMappings(_0x7ce922)[_0x217124(0xb6)](_0x1f749a=>[_0x1f749a[_0x217124(0xa7)],_0x1f749a['datasetCode']])],_0x489e97=await listDatasets(_0x959fa8);assertUnambiguousHookDirectoryMappings(_0x5c1da4[_0x217124(0xb6)](([_0x7e6d79,_0x861c85])=>({'alias':_0x7e6d79,'datasetCode':_0x861c85})));const _0x5d7d6b=buildHookDirectoryIndexes(_0x489e97,_0x5c1da4),_0xcef828=new Map(),_0x47e895=preflightPushHookDirectories(_0x4ce884,_0x7ce922,_0x5d7d6b,_0xcef828),_0x50adc4=new Set(),_0x5d0f0f=_0x4ce884[_0x217124(0xb0)](_0x1ebd68=>_0xcef828[_0x217124(0xe2)](_0x1ebd68[_0x217124(0xb8)])?.[_0x217124(0x100)](_0x217124(0xd5))&&_0x7ce922[_0x217124(0xbd)][_0x1ebd68['lockKey']]?.[_0x217124(0xff)]&&_0x7ce922['functions'][_0x1ebd68[_0x217124(0xb8)]]?.[_0x217124(0x98)]);if(_0x5d0f0f[_0x217124(0xd3)]>0x0){let _0x11205d;try{_0x11205d=await getBffScriptStatistics(_0x959fa8);}catch(_0xcccd25){for(const _0x4f3391 of _0x5d0f0f)_0xcef828[_0x217124(0xb7)](_0x4f3391[_0x217124(0xb8)],'Cannot\x20verify\x20existing\x20HOOK\x20binding:\x20'+(_0xcccd25 instanceof Error?_0xcccd25['message']:String(_0xcccd25)));return{'resolutions':_0x47e895,'failures':_0xcef828,'existingHooks':_0x50adc4};}for(const _0x50398f of _0x5d0f0f){const _0x29fff5=_0x7ce922[_0x217124(0xbd)][_0x50398f[_0x217124(0xb8)]];try{const _0x1c2a0c=new Set(_0x4ce884[_0x217124(0xb0)](_0x20fa0b=>_0x20fa0b[_0x217124(0xd1)]===_0x217124(0xf1)&&_0x7ce922['functions'][_0x20fa0b[_0x217124(0xb8)]]?.[_0x217124(0x98)]===_0x29fff5[_0x217124(0x98)])[_0x217124(0xb6)](_0x21bbec=>_0x21bbec['alias']));if(_0x1c2a0c[_0x217124(0xad)]>0x1)throw CliErrors[_0x217124(0xec)](_0x217124(0xf9));const _0x358e52=_0x11205d[_0x217124(0x9f)](_0x443c22=>[{'datasetCode':_0x443c22['datasetCode'],'operationType':snakeToCamel(_0x443c22[_0x217124(0x9b)]),'functionNode':_0x217124(0xef),'id':_0x443c22[_0x217124(0xa1)]},{'datasetCode':_0x443c22[_0x217124(0x98)],'operationType':snakeToCamel(_0x443c22[_0x217124(0x9b)]),'functionNode':_0x217124(0x105),'id':_0x443c22[_0x217124(0xb1)]}])[_0x217124(0xb0)](_0x23997e=>_0x23997e['id']===_0x29fff5[_0x217124(0xff)]),_0x31764c=await getBffScriptInfo(_0x29fff5[_0x217124(0xff)]);if(_0x31764c['id']!==_0x29fff5[_0x217124(0xff)]||_0x31764c['appCode']!==_0x959fa8||_0x31764c['scriptType']!==_0x217124(0xf1)||_0x31764c[_0x217124(0xbf)]!==_0x50398f[_0x217124(0xe3)]||_0x29fff5[_0x217124(0xf6)]==null||_0x31764c[_0x217124(0xf6)]!==_0x29fff5[_0x217124(0xf6)]||_0x358e52[_0x217124(0xd3)]!==0x1||_0x358e52[0x0][_0x217124(0x98)]!==_0x29fff5[_0x217124(0x98)]||_0x358e52[0x0][_0x217124(0x9b)]!==_0x50398f[_0x217124(0x9b)]||_0x358e52[0x0][_0x217124(0xac)]!==_0x50398f['functionNode']||_0x29fff5[_0x217124(0x9b)]!==_0x50398f[_0x217124(0x9b)]||_0x29fff5[_0x217124(0xac)]!==_0x50398f['functionNode'])throw CliErrors[_0x217124(0xec)](_0x217124(0xf2));_0x50adc4[_0x217124(0xab)](_0x50398f[_0x217124(0xb8)]),_0xcef828[_0x217124(0xc3)](_0x50398f[_0x217124(0xb8)]);}catch(_0x5d2c3f){_0xcef828['set'](_0x50398f[_0x217124(0xb8)],_0x5d2c3f instanceof Error?_0x5d2c3f[_0x217124(0xe4)]:String(_0x5d2c3f));}}}return{'resolutions':_0x47e895,'failures':_0xcef828,'existingHooks':_0x50adc4};}async function uploadSingleFunction(_0x171bed,_0x1cbe30,_0x455caf,_0x4e1fb9){const _0x592eae=a44_0x2133b6,_0xa924b5=await readFile(_0x1cbe30[_0x592eae(0xe6)],_0x592eae(0xfd)),_0x41c2a4=await computeFileHash(_0x1cbe30[_0x592eae(0xe6)]),_0x53d615=_0x455caf['functions'][_0x1cbe30[_0x592eae(0xb8)]];if(_0x53d615?.['remoteId']&&_0x53d615[_0x592eae(0xf6)]==null)throw CliErrors['validation'](_0x1cbe30[_0x592eae(0xb8)]+':\x20missing\x20remote\x20version.\x20Run\x20`push`\x20after\x20`pull`\x20to\x20sync\x20version\x20info.');let _0x583fa0=extractScriptDescription(_0xa924b5);if(!_0x583fa0&&_0x53d615?.[_0x592eae(0xff)]){const _0x18ebde=await getBffScriptInfo(_0x53d615[_0x592eae(0xff)]);_0x583fa0=_0x18ebde[_0x592eae(0xf0)]||undefined;}const _0x491bd5={'appCode':_0x171bed,'functionName':_0x1cbe30[_0x592eae(0xe3)],'scriptType':_0x1cbe30['type'],'scriptContent':_0xa924b5};if(_0x53d615?.[_0x592eae(0xff)])_0x491bd5['id']=_0x53d615[_0x592eae(0xff)];if(_0x53d615?.['version']!=null)_0x491bd5[_0x592eae(0xf6)]=_0x53d615['version'];if(_0x583fa0)_0x491bd5['description']=_0x583fa0;if(_0x1cbe30[_0x592eae(0xd1)]===_0x592eae(0xf1)){const _0x57cdef=_0x4e1fb9['resolutions'][_0x592eae(0xe2)](_0x1cbe30['lockKey']);if(!_0x57cdef&&!_0x4e1fb9[_0x592eae(0xc4)][_0x592eae(0xd4)](_0x1cbe30[_0x592eae(0xb8)])||!_0x1cbe30['operationType']||!_0x1cbe30[_0x592eae(0xac)])throw CliErrors[_0x592eae(0xec)](_0x592eae(0xbe)+_0x1cbe30[_0x592eae(0xb8)]);_0x57cdef&&(_0x491bd5[_0x592eae(0xc0)]=_0x57cdef[_0x592eae(0xa4)]['id'],_0x491bd5[_0x592eae(0x9b)]=_0x1cbe30[_0x592eae(0x9b)]),_0x491bd5[_0x592eae(0xac)]=_0x1cbe30['functionNode'];}const _0x1b9e68=await saveBffScript(_0x491bd5),_0x3f3244=_0x1b9e68['id'],_0x5c7629=_0x1b9e68[_0x592eae(0xe1)]??await getBffScriptInfo(_0x3f3244),_0x1811ef={'hash':_0x41c2a4,'remoteId':_0x3f3244,'version':_0x5c7629[_0x592eae(0xf6)]};if(_0x1cbe30[_0x592eae(0xd1)]===_0x592eae(0xf1)){const _0x505d04=_0x4e1fb9[_0x592eae(0xf3)][_0x592eae(0xe2)](_0x1cbe30[_0x592eae(0xb8)]);if(!_0x505d04){_0x455caf[_0x592eae(0xbd)][_0x1cbe30['lockKey']]={..._0x53d615,..._0x1811ef};return;}_0x1811ef[_0x592eae(0xa7)]=_0x505d04['alias']??_0x53d615?.['alias'],_0x1811ef[_0x592eae(0x98)]=_0x505d04[_0x592eae(0x98)],_0x1811ef['operationType']=_0x1cbe30['operationType'],_0x1811ef[_0x592eae(0xac)]=_0x1cbe30[_0x592eae(0xac)];}_0x455caf[_0x592eae(0xbd)][_0x1cbe30['lockKey']]=_0x1811ef;}const LOCK_SETTLE_RETRY_COUNT=0x14,LOCK_SETTLE_DELAY_MS=0x64;async function waitForUploadedLockEntries(_0x5180d7,_0x59da8b,_0x269ca5){const _0xc71682=a44_0x2133b6;if(_0x269ca5['length']===0x0)return;for(let _0x56a252=0x0;_0x56a252<LOCK_SETTLE_RETRY_COUNT;_0x56a252+=0x1){const _0x51e19f=await readBffLockFile(_0x5180d7),_0x1d3b12=_0x51e19f?.[_0xc71682(0xb9)]?.[_0x59da8b]?.[_0xc71682(0xbd)]??{},_0x5bf713=_0x269ca5[_0xc71682(0xc6)](_0x1476e9=>!!_0x1d3b12[_0x1476e9]?.[_0xc71682(0xff)]);if(_0x5bf713)return;await sleep(LOCK_SETTLE_DELAY_MS);}throw new Error(_0xc71682(0x103)+_0x269ca5['join'](',\x20')+'.');}
|
|
1
|
+
const a44_0x3fa194=a44_0x5547;(function(_0x376bea,_0x143469){const _0x11b4c4=a44_0x5547,_0x57fef6=_0x376bea();while(!![]){try{const _0x1dd45a=-parseInt(_0x11b4c4(0x14c))/0x1+parseInt(_0x11b4c4(0x152))/0x2*(-parseInt(_0x11b4c4(0x107))/0x3)+parseInt(_0x11b4c4(0x12a))/0x4*(parseInt(_0x11b4c4(0x131))/0x5)+-parseInt(_0x11b4c4(0x134))/0x6*(parseInt(_0x11b4c4(0xf5))/0x7)+-parseInt(_0x11b4c4(0x139))/0x8+parseInt(_0x11b4c4(0x129))/0x9+parseInt(_0x11b4c4(0x158))/0xa;if(_0x1dd45a===_0x143469)break;else _0x57fef6['push'](_0x57fef6['shift']());}catch(_0x354d1a){_0x57fef6['push'](_0x57fef6['shift']());}}}(a44_0x9f08,0x267ce));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';function a44_0x9f08(){const _0x1fbd06=['HOOK','would_push','type','datasetId','message','91406kcrddI','flatMap','remoteId','Push\x20only\x20this\x20script\x20type','Runtime\x20script\x20cache\x20cleared.','EXISTING_HOOK_BINDING_PRESERVED','1114RsYknG','apiDir','mergedCli','alias','get','Push\x20complete:\x20','8187290KCtuTV','scriptsRoot','join','failed','conflict','Would\x20inspect\x20','scriptType','cleared','/api/management/library/scripts/save','some','review_remote_and_merge','update','\x20failed','filter','ENDPOINT','COMMON','1910013XHvKfw','appCode','create','boolean','profileName','Existing\x20HOOK\x20identity,\x20version\x20or\x20binding\x20does\x20not\x20match\x20the\x20local\x20lock.\x20Pull\x20and\x20review\x20before\x20pushing.','lastSync','Push\x20local\x20Backend\x20Function\x20scripts\x20to\x20remote','length','size','resolutions','Push\x20only\x20the\x20named\x20function\x20(requires\x20--type)','after','\x20uploaded','add','before','startsWith','write','1074aARSni','\x20bff\x20detail\x20--id\x20','Force\x20push\x20ignoring\x20hash\x20protection','Local\x20function\x20not\x20found:\x20','lockFilePath','Lock\x20file\x20not\x20settled\x20after\x20push\x20for\x20','currentApp','map','\x22\x20not\x20found\x20after\x20ensureLockScope.','description','Remote\x20script\x20version\x20changed\x20since\x20the\x20last\x20pull.','functions','warnings','The\x20local\x20sync\x20lock\x20has\x20no\x20remote\x20version\x20for\x20this\x20script.','attempted','requires','bool','defaultApp','test','Incomplete\x20HOOK\x20path:\x20','name','POST','Cannot\x20verify\x20existing\x20HOOK\x20binding:\x20','HOOK_DATASET_NOT_FOUND:','operationType','\x20resolution','\x20skipped','dataset','stringify','bff','force','apps','functionName','selectedAppName','27270SWEDcV','2736PhTeEt','toISOString','filePath','datasetCode','set','existingHooks','lockKey','640JEUOQi',':\x20missing\x20remote\x20version.\x20Run\x20`push`\x20after\x20`pull`\x20to\x20sync\x20version\x20info.','runtime\x20cache\x20not\x20needed','6sNYclb','string','Dataset\x20metadata\x20is\x20unavailable;\x20the\x20existing\x20script\x20and\x20binding\x20were\x20verified.\x20Update\x20by\x20script\x20ID\x20without\x20rebinding.','functionNode','values','1503952qxdMzY','hash','str','\x20conflict','push','version','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.','utf8','beforeScriptId','runtime\x20cache\x20clear\x20failed','validation','Multiple\x20HOOK\x20directories\x20reference\x20the\x20same\x20missing\x20Dataset.\x20Resolve\x20duplicate\x20directories\x20before\x20pushing.','failures','has'];a44_0x9f08=function(){return _0x1fbd06;};return a44_0x9f08();}import{normalizeBffType,scanLocalBffFunctions}from'../../core/bff/file-system.js';import{buildHookDirectoryIndexes,assertUnambiguousHookAliases,assertUnambiguousHookDirectoryMappings,preflightPushHookDirectories,trackedHookDirectoryMappings}from'../../core/bff/hook-directory.js';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_0x3fa194(0x124),'command':'push','description':a44_0x3fa194(0xfc),'risk':a44_0x3fa194(0x106),'structuredErrors':!![],'flags':[{'name':'type','type':a44_0x3fa194(0x135),'description':a44_0x3fa194(0x14f),'enum':[a44_0x3fa194(0xf4),a44_0x3fa194(0xf3),a44_0x3fa194(0x147)]},{'name':a44_0x3fa194(0x11b),'type':a44_0x3fa194(0x135),'description':a44_0x3fa194(0x100)},{'name':a44_0x3fa194(0x125),'type':a44_0x3fa194(0xf8),'description':a44_0x3fa194(0x109)}],async 'dryRun'(_0x1d1179){const _0xce2d5=a44_0x3fa194,_0x3c969e=loadBffProjectConfig(_0x1d1179['appCode']),_0x30b494=await readBffLockFile(_0x3c969e[_0xce2d5(0x10b)]),{appLock:_0x45743f}=ensureLockScope(_0x30b494??createEmptyBffLock(),_0x1d1179[_0xce2d5(0xf6)],_0x3c969e[_0xce2d5(0x159)],_0xce2d5(0x13d)),_0x19fcfe=await getTargetFunctions(_0x3c969e,_0x1d1179),_0x5469b9=_0x19fcfe['some'](_0x23e864=>_0x23e864[_0xce2d5(0x149)]===_0xce2d5(0x147))?await scanLocalBffFunctions(_0x3c969e,_0xce2d5(0x147)):_0x19fcfe,_0x4234e7=await buildHookMaps(_0x1d1179['appCode'],_0x1d1179[_0xce2d5(0x153)],_0x5469b9,_0x45743f,_0x1d1179[_0xce2d5(0x128)]||_0x1d1179[_0xce2d5(0x154)]?.[_0xce2d5(0x10d)]||_0x1d1179[_0xce2d5(0x154)]?.[_0xce2d5(0x118)]),_0x3ba00c=_0x1d1179[_0xce2d5(0x117)]('force'),_0x3d478b=[];for(const _0x270abb of _0x19fcfe){const _0x4ad6d5=await computeFileHash(_0x270abb[_0xce2d5(0x12c)]),_0x1fa5e2=_0x45743f[_0xce2d5(0x112)][_0x270abb[_0xce2d5(0x130)]],_0x436256=!!_0x1fa5e2&&_0x1fa5e2['hash']===_0x4ad6d5,_0x418af5=_0x4234e7[_0xce2d5(0xff)]['get'](_0x270abb['lockKey']),_0x4207d7=!!_0x1fa5e2?.[_0xce2d5(0x14e)]&&_0x1fa5e2['version']==null&&(_0x3ba00c||!_0x436256),_0x50b684=_0x4207d7?missingRemoteVersionConflict(_0x270abb,_0x1fa5e2):undefined,_0x351b28=_0x4234e7[_0xce2d5(0x145)][_0xce2d5(0x146)](_0x270abb[_0xce2d5(0x130)])?_0xce2d5(0x15b):!_0x3ba00c&&_0x436256?'unchanged':_0x50b684?_0xce2d5(0x15c):'would_push';_0x3d478b[_0xce2d5(0x13d)]({'lockKey':_0x270abb[_0xce2d5(0x130)],'filePath':_0x270abb[_0xce2d5(0x12c)],'remoteId':_0x1fa5e2?.[_0xce2d5(0x14e)]??null,'mode':_0x1fa5e2?.[_0xce2d5(0x14e)]?_0xce2d5(0x163):_0xce2d5(0xf7),'status':_0x351b28,..._0x4234e7[_0xce2d5(0x145)]['has'](_0x270abb[_0xce2d5(0x130)])?{'error':_0x4234e7[_0xce2d5(0x145)][_0xce2d5(0x156)](_0x270abb[_0xce2d5(0x130)])}:{},..._0x50b684?{'conflict':_0x50b684}:{},..._0x4234e7[_0xce2d5(0x12f)][_0xce2d5(0x146)](_0x270abb[_0xce2d5(0x130)])?{'datasetCode':_0x1fa5e2?.['datasetCode'],'bindingPreserved':!![],'warnings':[existingHookWarning(_0x270abb[_0xce2d5(0x130)])]}:{},..._0x418af5?{'alias':_0x418af5[_0xce2d5(0x155)]??null,'datasetCode':_0x418af5[_0xce2d5(0x12d)],'operationType':_0x270abb[_0xce2d5(0x11f)],'functionNode':_0x270abb[_0xce2d5(0x137)],'warnings':_0x418af5[_0xce2d5(0x113)]}:{}});}return{'method':_0xce2d5(0x11c),'url':_0xce2d5(0x160),'body':{'appCode':_0x1d1179[_0xce2d5(0xf6)],'force':_0x3ba00c,'files':_0x3d478b,'cacheClearAtRuntime':_0x3d478b['some'](_0x4f9863=>_0x4f9863['status']===_0xce2d5(0x148)),'cacheClearAtRuntimeTimes':_0x3d478b[_0xce2d5(0x161)](_0xc8fb6b=>_0xc8fb6b['status']===_0xce2d5(0x148))?CACHE_CLEAR_ATTEMPTS:0x0},'description':_0xce2d5(0x15d)+_0x3d478b['length']+'\x20local\x20Backend\x20Function\x20script(s)\x20for\x20push\x20and\x20clear\x20runtime\x20cache\x20if\x20files\x20are\x20uploaded'};},async 'execute'(_0x502476){const _0x13922b=a44_0x3fa194,_0x40a7fe=loadBffProjectConfig(_0x502476[_0x13922b(0xf6)]),_0x4dc899=await readBffLockFile(_0x40a7fe[_0x13922b(0x10b)]),{lockData:_0xa2e07d,appLock:_0x2d372e}=ensureLockScope(_0x4dc899??createEmptyBffLock(),_0x502476[_0x13922b(0xf6)],_0x40a7fe['scriptsRoot'],_0x13922b(0x13d)),_0x554fc1=await getTargetFunctions(_0x40a7fe,_0x502476);if(_0x554fc1[_0x13922b(0xfd)]===0x0)return{'ok':!![],'data':{'uploaded':[],'skipped':[],'conflicts':[],'failed':[]},'message':'No\x20local\x20Backend\x20Function\x20scripts\x20found.'};const _0x5abf0b=_0x502476[_0x13922b(0x117)](_0x13922b(0x125)),_0x154c78=JSON['parse'](JSON[_0x13922b(0x123)](_0xa2e07d)),_0x27029e=_0x154c78[_0x13922b(0x126)][_0x502476[_0x13922b(0xf6)]];if(!_0x27029e)throw new Error('Lock\x20scope\x20for\x20app\x20\x22'+_0x502476[_0x13922b(0xf6)]+_0x13922b(0x10f));const _0x5c658a=_0x554fc1['some'](_0x1ebc6a=>_0x1ebc6a[_0x13922b(0x149)]==='HOOK')?await scanLocalBffFunctions(_0x40a7fe,'HOOK'):_0x554fc1,_0x3822bd=await buildHookMaps(_0x502476['appCode'],_0x502476['apiDir'],_0x5c658a,_0x27029e,_0x502476['selectedAppName']||_0x502476[_0x13922b(0x154)]?.[_0x13922b(0x10d)]||_0x502476[_0x13922b(0x154)]?.[_0x13922b(0x118)]),_0x8da3b6=[],_0x2797d7=[],_0x4c6816=[],_0x26151f=[];for(const _0x302c06 of _0x554fc1){const _0x2a8f08=_0x3822bd[_0x13922b(0x145)][_0x13922b(0x156)](_0x302c06['lockKey']);if(_0x2a8f08){_0x26151f[_0x13922b(0x13d)]({'lockKey':_0x302c06[_0x13922b(0x130)],'error':_0x2a8f08});continue;}const _0x57908f=await computeFileHash(_0x302c06[_0x13922b(0x12c)]),_0x45488a=_0x27029e['functions'][_0x302c06[_0x13922b(0x130)]];if(!_0x5abf0b&&_0x45488a&&_0x45488a[_0x13922b(0x13a)]===_0x57908f){_0x2797d7[_0x13922b(0x13d)]({'lockKey':_0x302c06[_0x13922b(0x130)],'reason':'unchanged'});continue;}if(_0x45488a?.[_0x13922b(0x14e)]&&_0x45488a[_0x13922b(0x13e)]==null){_0x4c6816[_0x13922b(0x13d)](missingRemoteVersionConflict(_0x302c06,_0x45488a));continue;}try{await uploadSingleFunction(_0x502476['appCode'],_0x302c06,_0x27029e,_0x3822bd);const _0x446836=_0x27029e[_0x13922b(0x112)][_0x302c06[_0x13922b(0x130)]];_0x8da3b6['push']({'lockKey':_0x302c06['lockKey'],'remoteId':_0x446836?.[_0x13922b(0x14e)]??0x0});}catch(_0x16c886){const _0x52f1a8=remoteVersionChangedConflict(_0x302c06,_0x45488a,_0x16c886);if(_0x52f1a8){_0x4c6816[_0x13922b(0x13d)](_0x52f1a8);continue;}_0x26151f[_0x13922b(0x13d)]({'lockKey':_0x302c06['lockKey'],'error':_0x16c886 instanceof Error?_0x16c886[_0x13922b(0x14b)]:String(_0x16c886)});}}_0x27029e[_0x13922b(0xfb)]=new Date()[_0x13922b(0x12b)](),await writeBffLockFile(_0x40a7fe[_0x13922b(0x10b)],_0x154c78),await waitForUploadedLockEntries(_0x40a7fe[_0x13922b(0x10b)],_0x502476[_0x13922b(0xf6)],_0x8da3b6[_0x13922b(0x10e)](_0x37d4d7=>_0x37d4d7[_0x13922b(0x130)]));let _0x4bef1c={'attempted':![],'cleared':![]};if(_0x8da3b6[_0x13922b(0xfd)]>0x0)try{let _0x160b7d='';for(let _0x431dd4=0x0;_0x431dd4<CACHE_CLEAR_ATTEMPTS;_0x431dd4+=0x1){_0x160b7d=await clearBffScriptCache(),_0x431dd4<CACHE_CLEAR_ATTEMPTS-0x1&&await sleep(CACHE_CLEAR_INTERVAL_MS);}_0x4bef1c={'attempted':!![],'cleared':!![],'message':_0x160b7d||_0x13922b(0x150)};}catch(_0x13f049){_0x4bef1c={'attempted':!![],'cleared':![],'error':_0x13f049 instanceof Error?_0x13f049[_0x13922b(0x14b)]:String(_0x13f049)};}const _0x4804ab=_0x26151f[_0x13922b(0xfd)]===0x0&&(_0x4bef1c[_0x13922b(0x115)]?_0x4bef1c[_0x13922b(0x15f)]:!![]),_0xd84f67=_0x4804ab,_0x1a2793=_0x4bef1c['attempted']?_0x4bef1c['cleared']?'runtime\x20cache\x20cleared':_0x13922b(0x142):_0x13922b(0x133);return{'ok':_0xd84f67,'data':{'uploaded':_0x8da3b6,'skipped':_0x2797d7,'conflicts':_0x4c6816,'failed':_0x26151f,'cacheClear':_0x4bef1c,'warnings':[...[..._0x3822bd[_0x13922b(0xff)][_0x13922b(0x138)]()][_0x13922b(0x14d)](_0x591b72=>_0x591b72[_0x13922b(0x113)]),...[..._0x3822bd[_0x13922b(0x12f)]]['map'](existingHookWarning)]},'message':formatPushMessage(_0x8da3b6[_0x13922b(0xfd)],_0x2797d7['length'],_0x4c6816[_0x13922b(0xfd)],_0x26151f[_0x13922b(0xfd)],_0x1a2793)};}};function missingRemoteVersionConflict(_0x1d303f,_0x29df12){const _0x332a38=a44_0x3fa194;return remoteVersionConflict(_0x1d303f,_0x29df12,'BFF_REMOTE_VERSION_MISSING',_0x332a38(0x114));}function a44_0x5547(_0x3e09a5,_0x53edbb){_0x3e09a5=_0x3e09a5-0xf3;const _0x9f08a4=a44_0x9f08();let _0x554798=_0x9f08a4[_0x3e09a5];return _0x554798;}function remoteVersionChangedConflict(_0x5b3e75,_0x359234,_0x4ff55a){const _0x183f4f=a44_0x3fa194;if(!_0x359234?.[_0x183f4f(0x14e)]||_0x359234[_0x183f4f(0x13e)]==null||!isRemoteVersionConflict(_0x4ff55a))return undefined;return remoteVersionConflict(_0x5b3e75,_0x359234,'BFF_REMOTE_VERSION_CHANGED',_0x183f4f(0x111));}function remoteVersionConflict(_0x353902,_0x1d4285,_0x1ec4c5,_0x62b43a){const _0x581fb5=a44_0x3fa194;return{'code':_0x1ec4c5,'lockKey':_0x353902[_0x581fb5(0x130)],'filePath':_0x353902['filePath'],'remoteId':_0x1d4285['remoteId'],..._0x1d4285[_0x581fb5(0x13e)]!=null?{'expectedVersion':_0x1d4285['version']}:{},'message':_0x62b43a,'nextAction':{'action':_0x581fb5(0x162),'command':CLI_BIN_NAME+_0x581fb5(0x108)+_0x1d4285['remoteId']+'\x20--format\x20compress','requiresReview':!![],'message':_0x581fb5(0x13f)}};}function isRemoteVersionConflict(_0x17208d){const _0x38c76b=a44_0x3fa194,_0x1f42eb=_0x17208d instanceof Error?_0x17208d[_0x38c76b(0x14b)]:String(_0x17208d),_0x2cc548=getPlatformErrorCode(_0x17208d)??'';return[_0x1f42eb,_0x2cc548][_0x38c76b(0x161)](_0x447fec=>/(?: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[_0x38c76b(0x119)](_0x447fec));}function formatPushMessage(_0xd09b81,_0x429dbb,_0x1526c3,_0x3e2e5e,_0x1d2c8d){const _0x566c57=a44_0x3fa194,_0x16280f=[_0x566c57(0x157)+_0xd09b81+_0x566c57(0x102),_0x429dbb+_0x566c57(0x121)];_0x1526c3>0x0&&_0x16280f['push'](_0x1526c3+_0x566c57(0x13c)+(_0x1526c3===0x1?'':'s')+'\x20'+(_0x1526c3===0x1?_0x566c57(0x116):'require')+_0x566c57(0x120));if(_0x3e2e5e>0x0)_0x16280f[_0x566c57(0x13d)](_0x3e2e5e+_0x566c57(0x164));return _0x16280f[_0x566c57(0x13d)](_0x1d2c8d),_0x16280f[_0x566c57(0x15a)](',\x20');}async function getTargetFunctions(_0xa99715,_0x3269f7){const _0x223b98=a44_0x3fa194,_0x28132b=_0x3269f7[_0x223b98(0x13b)](_0x223b98(0x149)),_0x17dea9=_0x3269f7[_0x223b98(0x13b)]('name'),_0x43f5fe=normalizeBffType(_0x28132b)??undefined;if(_0x17dea9&&!_0x43f5fe)throw CliErrors[_0x223b98(0x143)]('--name\x20requires\x20--type\x20to\x20identify\x20the\x20function.');const _0x76af2c=await scanLocalBffFunctions(_0xa99715,_0x43f5fe);if(_0x17dea9){const _0x39e966=_0x76af2c[_0x223b98(0x165)](_0x3f6a9c=>_0x3f6a9c['name']===_0x17dea9);if(_0x39e966[_0x223b98(0xfd)]===0x0)throw CliErrors[_0x223b98(0x143)](_0x223b98(0x10a)+_0x43f5fe+'/'+_0x17dea9);return _0x39e966;}return _0x76af2c;}function existingHookWarning(_0x512416){const _0x13f2f8=a44_0x3fa194;return{'code':_0x13f2f8(0x151),'lockKey':_0x512416,'message':_0x13f2f8(0x136)};}async function buildHookMaps(_0x1b3d8b,_0x8e6437,_0x2bc454,_0x29f760,_0x2a5773){const _0x3918ef=a44_0x3fa194,_0xa9d6ee=_0x2bc454[_0x3918ef(0x161)](_0x4f7323=>_0x4f7323[_0x3918ef(0x149)]===_0x3918ef(0x147));if(!_0xa9d6ee)return{'resolutions':new Map(),'failures':new Map(),'existingHooks':new Set()};const _0x8e770e=resolveApiModelSource(_0x8e6437,_0x1b3d8b,_0x2a5773),_0x572904=loadAliasMap(_0x8e6437,undefined,_0x8e770e[_0x3918ef(0x12c)],_0x8e770e[_0x3918ef(0xf9)]);assertUnambiguousHookAliases(_0x572904);const _0x2c1cb8=[..._0x572904[_0x3918ef(0x10e)](_0x3b39a4=>[_0x3b39a4['alias'],_0x3b39a4[_0x3918ef(0x12d)]]),...trackedHookDirectoryMappings(_0x29f760)[_0x3918ef(0x10e)](_0x53179a=>[_0x53179a[_0x3918ef(0x155)],_0x53179a[_0x3918ef(0x12d)]])],_0x1b1a89=await listDatasets(_0x1b3d8b);assertUnambiguousHookDirectoryMappings(_0x2c1cb8[_0x3918ef(0x10e)](([_0x1b09f6,_0x48d0c3])=>({'alias':_0x1b09f6,'datasetCode':_0x48d0c3})));const _0x166dc3=buildHookDirectoryIndexes(_0x1b1a89,_0x2c1cb8),_0x22cffe=new Map(),_0x256cb7=preflightPushHookDirectories(_0x2bc454,_0x29f760,_0x166dc3,_0x22cffe),_0x1e9de6=new Set(),_0x45b62a=_0x2bc454[_0x3918ef(0x165)](_0x5a2404=>_0x22cffe[_0x3918ef(0x156)](_0x5a2404[_0x3918ef(0x130)])?.[_0x3918ef(0x105)](_0x3918ef(0x11e))&&_0x29f760['functions'][_0x5a2404[_0x3918ef(0x130)]]?.[_0x3918ef(0x14e)]&&_0x29f760[_0x3918ef(0x112)][_0x5a2404[_0x3918ef(0x130)]]?.[_0x3918ef(0x12d)]);if(_0x45b62a['length']>0x0){let _0x4e0445;try{_0x4e0445=await getBffScriptStatistics(_0x1b3d8b);}catch(_0x1ef3b2){for(const _0x4a4905 of _0x45b62a)_0x22cffe['set'](_0x4a4905[_0x3918ef(0x130)],_0x3918ef(0x11d)+(_0x1ef3b2 instanceof Error?_0x1ef3b2[_0x3918ef(0x14b)]:String(_0x1ef3b2)));return{'resolutions':_0x256cb7,'failures':_0x22cffe,'existingHooks':_0x1e9de6};}for(const _0x46f8ea of _0x45b62a){const _0x20cedc=_0x29f760[_0x3918ef(0x112)][_0x46f8ea[_0x3918ef(0x130)]];try{const _0x269cc4=new Set(_0x2bc454[_0x3918ef(0x165)](_0x377f76=>_0x377f76[_0x3918ef(0x149)]===_0x3918ef(0x147)&&_0x29f760[_0x3918ef(0x112)][_0x377f76[_0x3918ef(0x130)]]?.[_0x3918ef(0x12d)]===_0x20cedc[_0x3918ef(0x12d)])[_0x3918ef(0x10e)](_0x4824ba=>_0x4824ba[_0x3918ef(0x155)]));if(_0x269cc4[_0x3918ef(0xfe)]>0x1)throw CliErrors['validation'](_0x3918ef(0x144));const _0x19fa60=_0x4e0445[_0x3918ef(0x14d)](_0x287bc2=>[{'datasetCode':_0x287bc2[_0x3918ef(0x12d)],'operationType':snakeToCamel(_0x287bc2[_0x3918ef(0x11f)]),'functionNode':_0x3918ef(0x104),'id':_0x287bc2[_0x3918ef(0x141)]},{'datasetCode':_0x287bc2[_0x3918ef(0x12d)],'operationType':snakeToCamel(_0x287bc2['operationType']),'functionNode':_0x3918ef(0x101),'id':_0x287bc2['afterScriptId']}])[_0x3918ef(0x165)](_0x115d5c=>_0x115d5c['id']===_0x20cedc['remoteId']),_0x22a277=await getBffScriptInfo(_0x20cedc[_0x3918ef(0x14e)]);if(_0x22a277['id']!==_0x20cedc[_0x3918ef(0x14e)]||_0x22a277[_0x3918ef(0xf6)]!==_0x1b3d8b||_0x22a277[_0x3918ef(0x15e)]!=='HOOK'||_0x22a277[_0x3918ef(0x127)]!==_0x46f8ea[_0x3918ef(0x11b)]||_0x20cedc['version']==null||_0x22a277[_0x3918ef(0x13e)]!==_0x20cedc['version']||_0x19fa60[_0x3918ef(0xfd)]!==0x1||_0x19fa60[0x0][_0x3918ef(0x12d)]!==_0x20cedc['datasetCode']||_0x19fa60[0x0][_0x3918ef(0x11f)]!==_0x46f8ea['operationType']||_0x19fa60[0x0][_0x3918ef(0x137)]!==_0x46f8ea[_0x3918ef(0x137)]||_0x20cedc[_0x3918ef(0x11f)]!==_0x46f8ea[_0x3918ef(0x11f)]||_0x20cedc[_0x3918ef(0x137)]!==_0x46f8ea[_0x3918ef(0x137)])throw CliErrors[_0x3918ef(0x143)](_0x3918ef(0xfa));_0x1e9de6[_0x3918ef(0x103)](_0x46f8ea['lockKey']),_0x22cffe['delete'](_0x46f8ea[_0x3918ef(0x130)]);}catch(_0x29099d){_0x22cffe[_0x3918ef(0x12e)](_0x46f8ea[_0x3918ef(0x130)],_0x29099d instanceof Error?_0x29099d[_0x3918ef(0x14b)]:String(_0x29099d));}}}return{'resolutions':_0x256cb7,'failures':_0x22cffe,'existingHooks':_0x1e9de6};}async function uploadSingleFunction(_0x4b949f,_0x2291f9,_0x310576,_0x12ddfe){const _0x2bf5ae=a44_0x3fa194,_0x4052ee=await readFile(_0x2291f9['filePath'],_0x2bf5ae(0x140)),_0x34fdca=await computeFileHash(_0x2291f9[_0x2bf5ae(0x12c)]),_0x38fcbc=_0x310576[_0x2bf5ae(0x112)][_0x2291f9[_0x2bf5ae(0x130)]];if(_0x38fcbc?.[_0x2bf5ae(0x14e)]&&_0x38fcbc[_0x2bf5ae(0x13e)]==null)throw CliErrors['validation'](_0x2291f9[_0x2bf5ae(0x130)]+_0x2bf5ae(0x132));let _0x20a6fb=extractScriptDescription(_0x4052ee);if(!_0x20a6fb&&_0x38fcbc?.['remoteId']){const _0x3d4759=await getBffScriptInfo(_0x38fcbc['remoteId']);_0x20a6fb=_0x3d4759['description']||undefined;}const _0x4698a={'appCode':_0x4b949f,'functionName':_0x2291f9[_0x2bf5ae(0x11b)],'scriptType':_0x2291f9['type'],'scriptContent':_0x4052ee};if(_0x38fcbc?.[_0x2bf5ae(0x14e)])_0x4698a['id']=_0x38fcbc[_0x2bf5ae(0x14e)];if(_0x38fcbc?.['version']!=null)_0x4698a[_0x2bf5ae(0x13e)]=_0x38fcbc[_0x2bf5ae(0x13e)];if(_0x20a6fb)_0x4698a[_0x2bf5ae(0x110)]=_0x20a6fb;if(_0x2291f9[_0x2bf5ae(0x149)]===_0x2bf5ae(0x147)){const _0xc3a419=_0x12ddfe[_0x2bf5ae(0xff)][_0x2bf5ae(0x156)](_0x2291f9[_0x2bf5ae(0x130)]);if(!_0xc3a419&&!_0x12ddfe[_0x2bf5ae(0x12f)]['has'](_0x2291f9[_0x2bf5ae(0x130)])||!_0x2291f9[_0x2bf5ae(0x11f)]||!_0x2291f9[_0x2bf5ae(0x137)])throw CliErrors['validation'](_0x2bf5ae(0x11a)+_0x2291f9[_0x2bf5ae(0x130)]);_0xc3a419&&(_0x4698a[_0x2bf5ae(0x14a)]=_0xc3a419[_0x2bf5ae(0x122)]['id'],_0x4698a[_0x2bf5ae(0x11f)]=_0x2291f9[_0x2bf5ae(0x11f)]),_0x4698a[_0x2bf5ae(0x137)]=_0x2291f9[_0x2bf5ae(0x137)];}const _0x196c16=await saveBffScript(_0x4698a),_0x470e01=_0x196c16['id'],_0x423ae0=_0x196c16['script']??await getBffScriptInfo(_0x470e01),_0x5a3fa5={'hash':_0x34fdca,'remoteId':_0x470e01,'version':_0x423ae0[_0x2bf5ae(0x13e)]};if(_0x2291f9['type']===_0x2bf5ae(0x147)){const _0x5f414b=_0x12ddfe['resolutions'][_0x2bf5ae(0x156)](_0x2291f9[_0x2bf5ae(0x130)]);if(!_0x5f414b){_0x310576['functions'][_0x2291f9[_0x2bf5ae(0x130)]]={..._0x38fcbc,..._0x5a3fa5};return;}_0x5a3fa5[_0x2bf5ae(0x155)]=_0x5f414b[_0x2bf5ae(0x155)]??_0x38fcbc?.['alias'],_0x5a3fa5[_0x2bf5ae(0x12d)]=_0x5f414b[_0x2bf5ae(0x12d)],_0x5a3fa5[_0x2bf5ae(0x11f)]=_0x2291f9['operationType'],_0x5a3fa5[_0x2bf5ae(0x137)]=_0x2291f9['functionNode'];}_0x310576[_0x2bf5ae(0x112)][_0x2291f9[_0x2bf5ae(0x130)]]=_0x5a3fa5;}const LOCK_SETTLE_RETRY_COUNT=0x14,LOCK_SETTLE_DELAY_MS=0x64;async function waitForUploadedLockEntries(_0x469fe0,_0x53e81e,_0x549dc8){const _0x184687=a44_0x3fa194;if(_0x549dc8[_0x184687(0xfd)]===0x0)return;for(let _0xd6b9fc=0x0;_0xd6b9fc<LOCK_SETTLE_RETRY_COUNT;_0xd6b9fc+=0x1){const _0x507dd7=await readBffLockFile(_0x469fe0),_0x399f2a=_0x507dd7?.['apps']?.[_0x53e81e]?.['functions']??{},_0x514a06=_0x549dc8['every'](_0x3cab93=>!!_0x399f2a[_0x3cab93]?.['remoteId']);if(_0x514a06)return;await sleep(LOCK_SETTLE_DELAY_MS);}throw new Error(_0x184687(0x10c)+_0x549dc8[_0x184687(0x15a)](',\x20')+'.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a45_0x4824cc=a45_0x2edd;(function(_0x43c781,_0x4c5ce6){const _0x5ae3c3=a45_0x2edd,_0x78712f=_0x43c781();while(!![]){try{const _0x2b04a3=parseInt(_0x5ae3c3(0x1c4))/0x1+parseInt(_0x5ae3c3(0x1d9))/0x2*(parseInt(_0x5ae3c3(0x1ce))/0x3)+-parseInt(_0x5ae3c3(0x1ca))/0x4*(-parseInt(_0x5ae3c3(0x1c1))/0x5)+parseInt(_0x5ae3c3(0x1dd))/0x6+-parseInt(_0x5ae3c3(0x1c0))/0x7*(-parseInt(_0x5ae3c3(0x1d8))/0x8)+-parseInt(_0x5ae3c3(0x1c9))/0x9*(parseInt(_0x5ae3c3(0x1d6))/0xa)+parseInt(_0x5ae3c3(0x1da))/0xb*(-parseInt(_0x5ae3c3(0x1cc))/0xc);if(_0x2b04a3===_0x4c5ce6)break;else _0x78712f['push'](_0x78712f['shift']());}catch(_0xcd2215){_0x78712f['push'](_0x78712f['shift']());}}}(a45_0x5a12,0x9eb7b));function a45_0x5a12(){const _0xe87db9=['100923ZnlaZe','\x20modified,\x20','mergedCli','appCode','All\x20Backend\x20Function\x20scripts\x20are\x20in\x20sync.','hash','functions','Check\x20local\x20Backend\x20Function\x20sync\x20status\x20against\x20lock\x20file','10hJhapT','scriptsRoot','5549680bWRhnw','4QmWCXM','22cQzfmX','remote','lockKey','4303566mOGGLb','\x20unchanged','all','currentApp','alias','profileName','lockFilePath','map','filePath','7TYZPxK','5arDfYe','\x20added,\x20','bff','451390wEILCh','push','bool','defaultApp','read','5361273Wfplpc','206012tXVWlr','length','4412052EkSkGy','apiDir'];a45_0x5a12=function(){return _0xe87db9;};return a45_0x5a12();}function a45_0x2edd(_0x4c3850,_0x4f4015){_0x4c3850=_0x4c3850-0x1bf;const _0x5a12fb=a45_0x5a12();let _0x2edd17=_0x5a12fb[_0x4c3850];return _0x2edd17;}import{listBffScripts,getBffScriptStatistics}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{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';export const bffStatus={'service':a45_0x4824cc(0x1c3),'command':'status','description':a45_0x4824cc(0x1d5),'risk':a45_0x4824cc(0x1c8),'flags':[{'name':'remote','type':'boolean','description':'Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally'}],async 'execute'(_0x290a09){const _0x19b18d=a45_0x4824cc,_0x2236d5=loadBffProjectConfig(_0x290a09[_0x19b18d(0x1d1)]),_0x278339=await readBffLockFile(_0x2236d5[_0x19b18d(0x1e3)]),{appLock:_0x413bd7}=ensureLockScope(_0x278339??createEmptyBffLock(),_0x290a09[_0x19b18d(0x1d1)],_0x2236d5[_0x19b18d(0x1d7)],'status'),_0x184321=await scanLocalBffFunctions(_0x2236d5),_0x469bb0=[],_0x2bd8a4=[],_0x53b33a=[];for(const _0xc32052 of _0x184321){const _0x572724=await computeFileHash(_0xc32052[_0x19b18d(0x1bf)]),_0x288e84=_0x413bd7[_0x19b18d(0x1d4)][_0xc32052[_0x19b18d(0x1dc)]];if(!_0x288e84)_0x469bb0[_0x19b18d(0x1c5)](_0xc32052[_0x19b18d(0x1dc)]);else _0x288e84[_0x19b18d(0x1d3)]!==_0x572724?_0x2bd8a4[_0x19b18d(0x1c5)](_0xc32052['lockKey']):_0x53b33a['push'](_0xc32052['lockKey']);}const _0x5b6530=[];if(_0x290a09[_0x19b18d(0x1c6)](_0x19b18d(0x1db))){const _0x246aeb=resolveApiModelSource(_0x290a09[_0x19b18d(0x1cd)],_0x290a09[_0x19b18d(0x1d1)],_0x290a09['selectedAppName']||_0x290a09[_0x19b18d(0x1d0)]?.[_0x19b18d(0x1e0)]||_0x290a09['mergedCli']?.[_0x19b18d(0x1c7)]),_0xf2190d=loadAliasMap(_0x290a09[_0x19b18d(0x1cd)],undefined,_0x246aeb[_0x19b18d(0x1bf)],_0x246aeb[_0x19b18d(0x1e2)]),_0x59cf6d=new Map(_0xf2190d[_0x19b18d(0x1e4)](_0xf6a3d5=>[_0xf6a3d5['datasetCode'],_0xf6a3d5[_0x19b18d(0x1e1)]])),[_0xa4ed5c,_0x47c8ec]=await Promise[_0x19b18d(0x1df)]([listBffScripts(_0x290a09[_0x19b18d(0x1d1)]),getBffScriptStatistics(_0x290a09[_0x19b18d(0x1d1)])]),_0x1059cd=createHookLocationMap(_0x47c8ec),_0x3c1965=new Set(_0x184321['map'](_0xfb3b52=>_0xfb3b52[_0x19b18d(0x1dc)]));for(const _0x2cfcfb of _0xa4ed5c){const _0x5a2365=resolveRemoteScriptTarget(_0x2236d5,_0x2cfcfb,_0x1059cd,_0x413bd7['functions'],_0x59cf6d);_0x5a2365&&!_0x3c1965['has'](_0x5a2365[_0x19b18d(0x1dc)])&&_0x5b6530[_0x19b18d(0x1c5)](_0x5a2365['lockKey']);}}const _0x4a9978=_0x469bb0[_0x19b18d(0x1cb)]===0x0&&_0x2bd8a4[_0x19b18d(0x1cb)]===0x0&&_0x5b6530['length']===0x0;return{'ok':!![],'data':{'added':_0x469bb0,'modified':_0x2bd8a4,'unchanged':_0x53b33a,'remoteOnly':_0x5b6530},'message':_0x4a9978?_0x19b18d(0x1d2):_0x469bb0[_0x19b18d(0x1cb)]+_0x19b18d(0x1c2)+_0x2bd8a4[_0x19b18d(0x1cb)]+_0x19b18d(0x1cf)+_0x53b33a[_0x19b18d(0x1cb)]+_0x19b18d(0x1de)+(_0x5b6530['length']>0x0?',\x20'+_0x5b6530[_0x19b18d(0x1cb)]+'\x20remote-only':'')};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a46_0x1c11d2=a46_0x229b;(function(_0x265b16,_0x179859){const _0x5ecad0=a46_0x229b,_0x48f147=_0x265b16();while(!![]){try{const _0x588758=-parseInt(_0x5ecad0(0x172))/0x1+parseInt(_0x5ecad0(0x177))/0x2+-parseInt(_0x5ecad0(0x186))/0x3+parseInt(_0x5ecad0(0x17d))/0x4+-parseInt(_0x5ecad0(0x170))/0x5*(-parseInt(_0x5ecad0(0x16c))/0x6)+parseInt(_0x5ecad0(0x185))/0x7*(parseInt(_0x5ecad0(0x178))/0x8)+parseInt(_0x5ecad0(0x182))/0x9*(parseInt(_0x5ecad0(0x184))/0xa);if(_0x588758===_0x179859)break;else _0x48f147['push'](_0x48f147['shift']());}catch(_0x2bf0b4){_0x48f147['push'](_0x48f147['shift']());}}}(a46_0x3339,0xbe27e));import{CliErrors}from'../../errors.js';import{installBuiltinSkill}from'../../skills/builtin-skill.js';function a46_0x3339(){const _0x502255=['Installing\x20CLI\x20Built-in\x20Skill\x20from\x20the\x20current\x20package.','setLogPath','352815DANTFl','Built-in\x20Skill\x20install\x20failed\x20[','342339MIsGME','cwd','\x20installed','install','\x20is\x20already\x20current','2159572YxeXrQ','40XahSPR','cli-skill-install','Resolve\x20the\x20Skills\x20CLI\x20installation\x20issue\x20and\x20run:\x20','\x20at\x20','apiError','2369896bsNKLG','repairCommand','code','nonInteractive','\x20via\x20skills@latest','50769UDhvrQ','installedPath','330sRrTeR','261709gLzjzh','3407460nIfByC','cli-skill','read','skillVersion','CLI\x20Built-in\x20Skill\x20','error','info','unknown','inherit','18sVbuxj','changed'];a46_0x3339=function(){return _0x502255;};return a46_0x3339();}function a46_0x229b(_0x19b40f,_0x25311b){_0x19b40f=_0x19b40f-0x16b;const _0x333994=a46_0x3339();let _0x229b8a=_0x333994[_0x19b40f];return _0x229b8a;}import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a46_0x1c11d2(0x187),'command':a46_0x1c11d2(0x175),'description':'Install\x20or\x20refresh\x20the\x20Rabetbase\x20CLI\x20Built-in\x20Skill','risk':a46_0x1c11d2(0x188),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x3c6a7b){const _0x5257f6=a46_0x1c11d2;logger[_0x5257f6(0x16f)](process[_0x5257f6(0x173)]()),logger[_0x5257f6(0x18c)](_0x5257f6(0x179),_0x5257f6(0x16e));const _0x86c483=installBuiltinSkill({'stdio':_0x3c6a7b[_0x5257f6(0x180)]?'pipe':_0x5257f6(0x16b)});if(!_0x86c483['ok'])throw CliErrors[_0x5257f6(0x17c)](_0x5257f6(0x171)+_0x86c483[_0x5257f6(0x17f)]+']:\x20'+(_0x86c483[_0x5257f6(0x18b)]||_0x5257f6(0x18d)),_0x5257f6(0x17a)+_0x86c483[_0x5257f6(0x17e)]);return console['log'](_0x86c483[_0x5257f6(0x16d)]?_0x5257f6(0x18a)+_0x86c483[_0x5257f6(0x189)]+_0x5257f6(0x174)+(_0x86c483[_0x5257f6(0x183)]?_0x5257f6(0x17b)+_0x86c483[_0x5257f6(0x183)]:_0x5257f6(0x181)):'CLI\x20Built-in\x20Skill\x20'+_0x86c483[_0x5257f6(0x189)]+_0x5257f6(0x176)+(_0x86c483['installedPath']?_0x5257f6(0x17b)+_0x86c483[_0x5257f6(0x183)]:'')),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a47_0x5ccd04=a47_0x461a;(function(_0x440011,_0x402c0){const _0x1fbe9d=a47_0x461a,_0x530023=_0x440011();while(!![]){try{const _0x18ce4c=-parseInt(_0x1fbe9d(0x83))/0x1*(parseInt(_0x1fbe9d(0x9a))/0x2)+-parseInt(_0x1fbe9d(0xb8))/0x3*(-parseInt(_0x1fbe9d(0xb7))/0x4)+parseInt(_0x1fbe9d(0xb0))/0x5*(-parseInt(_0x1fbe9d(0xa5))/0x6)+-parseInt(_0x1fbe9d(0xac))/0x7+parseInt(_0x1fbe9d(0x8d))/0x8+parseInt(_0x1fbe9d(0x73))/0x9+parseInt(_0x1fbe9d(0x6d))/0xa*(parseInt(_0x1fbe9d(0xc7))/0xb);if(_0x18ce4c===_0x402c0)break;else _0x530023['push'](_0x530023['shift']());}catch(_0x2ddaad){_0x530023['push'](_0x530023['shift']());}}}(a47_0x4cb2,0x6d5c1));function a47_0x461a(_0x48ae85,_0x588d29){_0x48ae85=_0x48ae85-0x6c;const _0x4cb21b=a47_0x4cb2();let _0x461ae1=_0x4cb21b[_0x48ae85];return _0x461ae1;}function a47_0x4cb2(){const _0x1f967c=['Already\x20on\x20requested\x20version\x20(v','entries','current','string','repairCommand','fail','\x20\x20Try\x20manually:\x20','version','58179jQLVri','fromEntries','Current\x20version\x20v','read','filter','1890fUofkv','\x20→\x20','...','Invalid\x20version:\x20','/dist-tags','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','4600701YqWnQD','start','error','includes','bun','validation','\x20\x20CLI\x20Built-in\x20Skill\x20','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','log','map','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','@latest','https://registry.npmjs.org/-/package/','source','Checking\x20for\x20updates...','green','13wDwvBt','Checking\x20CLI\x20Built-in\x20Skill...','\x20doctor','beta','CLI\x20updated\x20to\x20v','latest',',\x20then\x20verify\x20with:\x20','Updating\x20via\x20','bool','skillVersion','3220024VWgoRB','state','Already\x20up\x20to\x20date\x20(v','info','succeed','Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.','unknown','yellow','\x20is\x20newer\x20than\x20npm\x20latest\x20v','toLowerCase','str','Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm','slice','24602OXoidj','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.',',\x20state\x20','Current\x20version:\x20','valid','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','trim','apiError','npm','Version\x20comparison\x20failed','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','6jjPupB','Install\x20a\x20specific\x20CLI\x20version','gray','Updated\x20to\x20v','Beta\x20version:\x20','Run:\x20','length','4585182ZTLPCW','\x20install\x20-g\x20','message','expected\x20','3418710MjEXMP','--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.','json','red','timeout','code','execPath','20XgrjKW','19983IbZUTM','\x20is\x20up\x20to\x20date.',']:\x20','Update\x20available:\x20','install','Requested\x20version:\x20',',\x20but\x20Built-in\x20Skill\x20verification\x20failed:\x20'];a47_0x4cb2=function(){return _0x1f967c;};return a47_0x4cb2();}import a47_0xa7421 from'chalk';import a47_0x2c3b26 from'ora';import a47_0x72323 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 _0xdc5c66=a47_0x461a;return GIT_COMMIT!==_0xdc5c66(0x93)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0xdc5c66(0x99)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x5cb33a=a47_0x461a,_0x3835c2=process[_0x5cb33a(0xb6)][_0x5cb33a(0x96)]();if(_0x3835c2[_0x5cb33a(0x76)](_0x5cb33a(0x77)))return _0x5cb33a(0x77);return'npm';}const updateFlags=[{'name':a47_0x5ccd04(0x86),'type':'boolean','description':a47_0x5ccd04(0x9f),'default':![]},{'name':a47_0x5ccd04(0xc6),'type':a47_0x5ccd04(0xc2),'description':a47_0x5ccd04(0xa6)}];function getRequestedVersion(_0x4c611d){const _0x3485ad=a47_0x5ccd04;return _0x4c611d[_0x3485ad(0x97)](_0x3485ad(0xc6))[_0x3485ad(0xa0)]();}async function validateUpdateFlags(_0x50c075){const _0x20f75d=a47_0x5ccd04,_0x33177a=_0x50c075['bool'](_0x20f75d(0x86)),_0x3c5384=getRequestedVersion(_0x50c075);if(_0x33177a&&_0x3c5384)throw CliErrors['validation'](_0x20f75d(0xb1),_0x20f75d(0x9b));if(_0x3c5384&&!a47_0x72323[_0x20f75d(0x9e)](_0x3c5384))throw CliErrors[_0x20f75d(0x78)](_0x20f75d(0x70)+_0x3c5384,_0x20f75d(0x92));}async function fetchNpmDistTags(){const _0x488790=a47_0x5ccd04;try{const _0x3579c1=await fetch(_0x488790(0x7f)+encodeURIComponent(NPM_PACKAGE_NAME)+_0x488790(0x71),{'signal':AbortSignal[_0x488790(0xb4)](0x2710)});if(!_0x3579c1['ok'])return null;const _0x18487a=await _0x3579c1[_0x488790(0xb2)]();if(!_0x18487a||typeof _0x18487a!=='object')return null;return Object[_0x488790(0xc8)](Object[_0x488790(0xc0)](_0x18487a)[_0x488790(0x6c)](([,_0x15fd79])=>typeof _0x15fd79===_0x488790(0xc2)&&_0x15fd79[_0x488790(0xa0)]()[_0x488790(0xab)]>0x0)[_0x488790(0x7c)](([_0x32146b,_0x49f24e])=>[_0x32146b,String(_0x49f24e)[_0x488790(0xa0)]()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x4e86a3){const _0x132919=await fetchNpmDistTags();return _0x132919?.[_0x4e86a3]??null;}async function fetchLatestVersion(){return fetchNpmDistTagVersion('latest');}async function resolveTargetVersion(_0x222e8a){const _0x16ffac=a47_0x5ccd04,_0xa73101=getRequestedVersion(_0x222e8a);if(_0xa73101)return{'version':_0xa73101,'source':_0x16ffac(0xc6)};if(_0x222e8a[_0x16ffac(0x8b)](_0x16ffac(0x86))){const _0x2343f4=await fetchNpmDistTagVersion(_0x16ffac(0x86));if(!_0x2343f4)return null;return{'version':_0x2343f4,'source':_0x16ffac(0x86)};}const _0x5412a2=await fetchLatestVersion();if(!_0x5412a2)return null;return{'version':_0x5412a2,'source':_0x16ffac(0x88)};}function shouldInstallTarget(_0x1ea640,_0x3310c6){const _0x34e58e=a47_0x5ccd04;if(_0x3310c6['source']===_0x34e58e(0xc6)||_0x3310c6[_0x34e58e(0x80)]==='beta')return!a47_0x72323['eq'](_0x1ea640,_0x3310c6[_0x34e58e(0xc6)]);return a47_0x72323['lt'](_0x1ea640,_0x3310c6[_0x34e58e(0xc6)]);}function getInstallPlanLabel(_0x35e838,_0x11aa37){const _0x556011=a47_0x5ccd04;switch(_0x11aa37[_0x556011(0x80)]){case _0x556011(0x86):return _0x556011(0xa9)+a47_0xa7421[_0x556011(0x94)](_0x35e838)+_0x556011(0x6e)+a47_0xa7421[_0x556011(0x82)](_0x11aa37[_0x556011(0xc6)]);case'version':return _0x556011(0xbd)+a47_0xa7421[_0x556011(0x94)](_0x35e838)+'\x20→\x20'+a47_0xa7421[_0x556011(0x82)](_0x11aa37[_0x556011(0xc6)]);case _0x556011(0x88):default:return _0x556011(0xbb)+a47_0xa7421[_0x556011(0x94)](_0x35e838)+_0x556011(0x6e)+a47_0xa7421[_0x556011(0x82)](_0x11aa37[_0x556011(0xc6)]);}}function repairCurrentBuiltinSkill(){const _0x27bce1=a47_0x5ccd04;console[_0x27bce1(0x7b)](a47_0xa7421[_0x27bce1(0xa7)](_0x27bce1(0x84)));const _0x2d44bf=installBuiltinSkill();if(_0x2d44bf['ok']){console['log'](a47_0xa7421[_0x27bce1(0xa7)](_0x27bce1(0x79)+_0x2d44bf[_0x27bce1(0x8c)]+_0x27bce1(0xb9)));return;}throw CliErrors['apiError']('CLI\x20Built-in\x20Skill\x20repair\x20failed\x20['+_0x2d44bf[_0x27bce1(0xb5)]+_0x27bce1(0xba)+(_0x2d44bf[_0x27bce1(0x75)]||_0x27bce1(0x93)),_0x27bce1(0xaa)+_0x2d44bf[_0x27bce1(0xc3)]+_0x27bce1(0x89)+CLI_BIN_NAME+_0x27bce1(0x85));}function verifyUpdatedBuiltinSkill(_0x1ffe72){const _0x5c68c5=a47_0x5ccd04,_0x43569e=inspectInstalledBuiltinSkillVersion(_0x1ffe72);if(_0x43569e[_0x5c68c5(0x8e)]===_0x5c68c5(0xc1)){console[_0x5c68c5(0x7b)](a47_0xa7421[_0x5c68c5(0xa7)]('\x20\x20CLI\x20Built-in\x20Skill\x20'+_0x1ffe72+_0x5c68c5(0xb9)));return;}const _0x7176d5=_0x43569e[_0x5c68c5(0x8c)]?_0x5c68c5(0xaf)+_0x1ffe72+',\x20found\x20'+_0x43569e[_0x5c68c5(0x8c)]:'expected\x20'+_0x1ffe72+_0x5c68c5(0x9c)+_0x43569e[_0x5c68c5(0x8e)];throw CliErrors[_0x5c68c5(0xa1)](_0x5c68c5(0x87)+_0x1ffe72+_0x5c68c5(0xbe)+_0x7176d5,'Run:\x20'+_0x43569e['repairCommand']+_0x5c68c5(0x89)+CLI_BIN_NAME+_0x5c68c5(0x85));}async function execute(_0x3af106){const _0x5b42a9=a47_0x5ccd04;await validateUpdateFlags(_0x3af106);const _0x239a4f=getCurrentVersion();console[_0x5b42a9(0x7b)](_0x5b42a9(0x9d)+_0x239a4f);const _0x353afc=a47_0x2c3b26(_0x5b42a9(0x81))[_0x5b42a9(0x74)](),_0x450c76=await resolveTargetVersion(_0x3af106);if(!_0x450c76){const _0x4b1b17=_0x3af106['bool'](_0x5b42a9(0x86))?_0x5b42a9(0x98):_0x5b42a9(0x72);return _0x353afc[_0x5b42a9(0xc4)](_0x4b1b17),console['log'](a47_0xa7421[_0x5b42a9(0xa7)](_0x5b42a9(0x7a)+NPM_PACKAGE_NAME+_0x5b42a9(0x7e))),{'ok':![],'message':_0x4b1b17};}const _0x583b8f=a47_0x72323[_0x5b42a9(0x9e)](VERSION),_0x502a13=a47_0x72323[_0x5b42a9(0x9e)](_0x450c76['version']);if(!_0x583b8f||!_0x502a13)return _0x353afc[_0x5b42a9(0xc4)](_0x5b42a9(0xa3)),{'ok':![],'message':_0x5b42a9(0xa3)};if(!shouldInstallTarget(_0x583b8f,_0x450c76)){const _0x53124e=_0x450c76['source']==='version'?_0x5b42a9(0xbf)+_0x450c76['version']+')':a47_0x72323['gt'](_0x583b8f,_0x502a13)?_0x5b42a9(0xc9)+_0x239a4f+_0x5b42a9(0x95)+_0x450c76[_0x5b42a9(0xc6)]:_0x5b42a9(0x8f)+_0x450c76[_0x5b42a9(0xc6)]+')';return _0x353afc['succeed'](_0x53124e),repairCurrentBuiltinSkill(),{'ok':!![]};}_0x353afc[_0x5b42a9(0x90)](getInstallPlanLabel(_0x239a4f,_0x450c76));const _0x3deff0=detectPackageManager(),_0xe2582b=_0x3deff0===_0x5b42a9(0xa2)?resolveNpmBin('npm'):_0x3deff0,_0x147344=a47_0x2c3b26(_0x5b42a9(0x8a)+_0x3deff0+_0x5b42a9(0x6f))[_0x5b42a9(0x74)]();try{await execa(_0xe2582b,[_0x5b42a9(0xbc),'-g',NPM_PACKAGE_NAME+'@'+_0x450c76['version']],{'stdio':'pipe'}),_0x147344[_0x5b42a9(0x91)](_0x5b42a9(0xa8)+_0x450c76['version']),console[_0x5b42a9(0x7b)](a47_0xa7421[_0x5b42a9(0xa7)](_0x5b42a9(0xa4)));}catch(_0x4d515a){return _0x147344[_0x5b42a9(0xc4)]('Update\x20failed'),console[_0x5b42a9(0x75)](a47_0xa7421[_0x5b42a9(0xb3)]('\x20\x20'+_0x4d515a[_0x5b42a9(0xae)])),console[_0x5b42a9(0x7b)](a47_0xa7421[_0x5b42a9(0xa7)](_0x5b42a9(0xc5)+_0x3deff0+_0x5b42a9(0xad)+NPM_PACKAGE_NAME+'@'+_0x450c76[_0x5b42a9(0xc6)])),{'ok':![],'message':_0x4d515a[_0x5b42a9(0xae)]};}return verifyUpdatedBuiltinSkill(_0x450c76['version']),{'ok':!![]};}export const updateDefinition={'service':'update','command':'run','description':a47_0x5ccd04(0x7d),'risk':a47_0x5ccd04(0xca),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
|
|
1
|
+
const a47_0x22ec4f=a47_0x4b72;(function(_0x282a5d,_0x936f97){const _0x413671=a47_0x4b72,_0x4997c0=_0x282a5d();while(!![]){try{const _0x359e10=-parseInt(_0x413671(0x1a1))/0x1+-parseInt(_0x413671(0x188))/0x2+parseInt(_0x413671(0x18e))/0x3+parseInt(_0x413671(0x1e2))/0x4*(parseInt(_0x413671(0x193))/0x5)+parseInt(_0x413671(0x1cb))/0x6*(-parseInt(_0x413671(0x1c8))/0x7)+parseInt(_0x413671(0x19a))/0x8*(parseInt(_0x413671(0x1a8))/0x9)+-parseInt(_0x413671(0x198))/0xa*(-parseInt(_0x413671(0x1a4))/0xb);if(_0x359e10===_0x936f97)break;else _0x4997c0['push'](_0x4997c0['shift']());}catch(_0x19074d){_0x4997c0['push'](_0x4997c0['shift']());}}}(a47_0x2f53,0x1ab3d));import a47_0x25f17b from'chalk';import a47_0x25a34f from'ora';import a47_0x182571 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 _0x5927d3=a47_0x4b72;return GIT_COMMIT!==_0x5927d3(0x1c4)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x5927d3(0x1a6)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x2c56ef=a47_0x4b72,_0x323b80=process[_0x2c56ef(0x1b0)][_0x2c56ef(0x1b6)]();if(_0x323b80[_0x2c56ef(0x1be)](_0x2c56ef(0x191)))return'bun';return'npm';}const updateFlags=[{'name':a47_0x22ec4f(0x1b1),'type':a47_0x22ec4f(0x18c),'description':a47_0x22ec4f(0x1bf),'default':![]},{'name':a47_0x22ec4f(0x19b),'type':'string','description':a47_0x22ec4f(0x1c1)}];function getRequestedVersion(_0xba5d06){const _0x5327d6=a47_0x22ec4f;return _0xba5d06['str'](_0x5327d6(0x19b))[_0x5327d6(0x1c5)]();}async function validateUpdateFlags(_0x52ef3a){const _0x5a9f9d=a47_0x22ec4f,_0x33831e=_0x52ef3a[_0x5a9f9d(0x192)](_0x5a9f9d(0x1b1)),_0x1697fe=getRequestedVersion(_0x52ef3a);if(_0x33831e&&_0x1697fe)throw CliErrors[_0x5a9f9d(0x1c9)](_0x5a9f9d(0x1c7),_0x5a9f9d(0x1ac));if(_0x1697fe&&!a47_0x182571[_0x5a9f9d(0x18d)](_0x1697fe))throw CliErrors['validation'](_0x5a9f9d(0x1d8)+_0x1697fe,'Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.');}async function fetchNpmDistTags(){const _0x1b5f67=a47_0x22ec4f;try{const _0x4d9819=await fetch(_0x1b5f67(0x19d)+encodeURIComponent(NPM_PACKAGE_NAME)+_0x1b5f67(0x1a2),{'signal':AbortSignal['timeout'](0x2710)});if(!_0x4d9819['ok'])return null;const _0x2f412e=await _0x4d9819[_0x1b5f67(0x195)]();if(!_0x2f412e||typeof _0x2f412e!==_0x1b5f67(0x1bd))return null;return Object[_0x1b5f67(0x196)](Object[_0x1b5f67(0x1c3)](_0x2f412e)['filter'](([,_0x3ad99b])=>typeof _0x3ad99b===_0x1b5f67(0x1a0)&&_0x3ad99b['trim']()[_0x1b5f67(0x1da)]>0x0)[_0x1b5f67(0x1ab)](([_0x3e83a0,_0x22f139])=>[_0x3e83a0,String(_0x22f139)['trim']()]));}catch{return null;}}function a47_0x4b72(_0x39af46,_0x313ac2){_0x39af46=_0x39af46-0x188;const _0x2f533e=a47_0x2f53();let _0x4b7284=_0x2f533e[_0x39af46];return _0x4b7284;}async function fetchNpmDistTagVersion(_0x2281de){const _0x4e5841=await fetchNpmDistTags();return _0x4e5841?.[_0x2281de]??null;}async function fetchLatestVersion(){const _0x3076ea=a47_0x22ec4f;return fetchNpmDistTagVersion(_0x3076ea(0x18a));}async function resolveTargetVersion(_0x450069){const _0x311aef=a47_0x22ec4f,_0x452aa2=getRequestedVersion(_0x450069);if(_0x452aa2)return{'version':_0x452aa2,'source':_0x311aef(0x19b)};if(_0x450069['bool'](_0x311aef(0x1b1))){const _0x23c7b9=await fetchNpmDistTagVersion(_0x311aef(0x1b1));if(!_0x23c7b9)return null;return{'version':_0x23c7b9,'source':_0x311aef(0x1b1)};}const _0x47ebb3=await fetchLatestVersion();if(!_0x47ebb3)return null;return{'version':_0x47ebb3,'source':_0x311aef(0x18a)};}function shouldInstallTarget(_0x1707aa,_0x15e3d3){const _0x48e93c=a47_0x22ec4f;if(_0x15e3d3['source']===_0x48e93c(0x19b)||_0x15e3d3[_0x48e93c(0x1cd)]===_0x48e93c(0x1b1))return!a47_0x182571['eq'](_0x1707aa,_0x15e3d3[_0x48e93c(0x19b)]);return a47_0x182571['lt'](_0x1707aa,_0x15e3d3['version']);}function getInstallPlanLabel(_0x3db238,_0x4de910){const _0x508810=a47_0x22ec4f;switch(_0x4de910[_0x508810(0x1cd)]){case _0x508810(0x1b1):return'Beta\x20version:\x20'+a47_0x25f17b[_0x508810(0x19f)](_0x3db238)+_0x508810(0x1d2)+a47_0x25f17b[_0x508810(0x189)](_0x4de910[_0x508810(0x19b)]);case _0x508810(0x19b):return _0x508810(0x18b)+a47_0x25f17b[_0x508810(0x19f)](_0x3db238)+'\x20→\x20'+a47_0x25f17b[_0x508810(0x189)](_0x4de910[_0x508810(0x19b)]);case _0x508810(0x18a):default:return _0x508810(0x1db)+a47_0x25f17b['yellow'](_0x3db238)+_0x508810(0x1d2)+a47_0x25f17b[_0x508810(0x189)](_0x4de910[_0x508810(0x19b)]);}}function repairCurrentBuiltinSkill(){const _0x546b8b=a47_0x22ec4f;console['log'](a47_0x25f17b[_0x546b8b(0x1d1)]('Checking\x20CLI\x20Built-in\x20Skill...'));const _0x1bd93a=installBuiltinSkill();if(_0x1bd93a['ok']){console[_0x546b8b(0x1d0)](a47_0x25f17b[_0x546b8b(0x1d1)](_0x546b8b(0x1aa)+_0x1bd93a[_0x546b8b(0x1ad)]+_0x546b8b(0x1ce)));return;}throw CliErrors[_0x546b8b(0x1b2)](_0x546b8b(0x1d9)+_0x1bd93a[_0x546b8b(0x1ca)]+']:\x20'+(_0x1bd93a[_0x546b8b(0x1dc)]||_0x546b8b(0x1c4)),_0x546b8b(0x1b7)+_0x1bd93a[_0x546b8b(0x1cf)]+_0x546b8b(0x1af)+CLI_BIN_NAME+_0x546b8b(0x1d6));}function a47_0x2f53(){const _0x64729e=['run','657pHuIyc','Already\x20on\x20requested\x20version\x20(v','\x20\x20CLI\x20Built-in\x20Skill\x20','map','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.','skillVersion','Version\x20comparison\x20failed',',\x20then\x20verify\x20with:\x20','execPath','beta','apiError','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','...','toLowerCase','Run:\x20','Update\x20failed','read','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm','message','object','includes','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','\x20install\x20-g\x20','Install\x20a\x20specific\x20CLI\x20version','\x20is\x20newer\x20than\x20npm\x20latest\x20v','entries','unknown','trim','red','--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.','103502zLKmFC','validation','code','12surlzJ','Already\x20up\x20to\x20date\x20(v','source','\x20is\x20up\x20to\x20date.','repairCommand','log','gray','\x20→\x20','npm','\x20\x20Try\x20manually:\x20','expected\x20','\x20doctor','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','Invalid\x20version:\x20','CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','length','Update\x20available:\x20','error','current','Updating\x20via\x20','succeed','Checking\x20for\x20updates...','info','8iCOsCC','266088LQGQpV','green','latest','Requested\x20version:\x20','boolean','valid','31962EOnAEv',',\x20but\x20Built-in\x20Skill\x20verification\x20failed:\x20',',\x20found\x20','bun','bool','19305SiTTSL','@latest','json','fromEntries','start','10mBdDtH','fail','22088MZYKTX','version','Updated\x20to\x20v','https://registry.npmjs.org/-/package/','update','yellow','string','122791wblvYB','/dist-tags','install','1923361OlEbKk','state','slice'];a47_0x2f53=function(){return _0x64729e;};return a47_0x2f53();}function verifyUpdatedBuiltinSkill(_0x56bc5e){const _0xf088be=a47_0x22ec4f,_0x49f30e=inspectInstalledBuiltinSkillVersion(_0x56bc5e);if(_0x49f30e[_0xf088be(0x1a5)]===_0xf088be(0x1dd)){console[_0xf088be(0x1d0)](a47_0x25f17b['gray'](_0xf088be(0x1aa)+_0x56bc5e+_0xf088be(0x1ce)));return;}const _0xbc71cf=_0x49f30e[_0xf088be(0x1ad)]?_0xf088be(0x1d5)+_0x56bc5e+_0xf088be(0x190)+_0x49f30e[_0xf088be(0x1ad)]:'expected\x20'+_0x56bc5e+',\x20state\x20'+_0x49f30e['state'];throw CliErrors[_0xf088be(0x1b2)]('CLI\x20updated\x20to\x20v'+_0x56bc5e+_0xf088be(0x18f)+_0xbc71cf,'Run:\x20'+_0x49f30e[_0xf088be(0x1cf)]+_0xf088be(0x1af)+CLI_BIN_NAME+_0xf088be(0x1d6));}async function execute(_0x847df9){const _0x346437=a47_0x22ec4f;await validateUpdateFlags(_0x847df9);const _0x1776f7=getCurrentVersion();console[_0x346437(0x1d0)]('Current\x20version:\x20'+_0x1776f7);const _0x1d1ce1=a47_0x25a34f(_0x346437(0x1e0))['start'](),_0x496f9a=await resolveTargetVersion(_0x847df9);if(!_0x496f9a){const _0x11670b=_0x847df9[_0x346437(0x192)](_0x346437(0x1b1))?_0x346437(0x1bb):_0x346437(0x1d7);return _0x1d1ce1[_0x346437(0x199)](_0x11670b),console[_0x346437(0x1d0)](a47_0x25f17b['gray'](_0x346437(0x1b3)+NPM_PACKAGE_NAME+_0x346437(0x194))),{'ok':![],'message':_0x11670b};}const _0x45695e=a47_0x182571[_0x346437(0x18d)](VERSION),_0x47f14e=a47_0x182571[_0x346437(0x18d)](_0x496f9a[_0x346437(0x19b)]);if(!_0x45695e||!_0x47f14e)return _0x1d1ce1['fail'](_0x346437(0x1ae)),{'ok':![],'message':'Version\x20comparison\x20failed'};if(!shouldInstallTarget(_0x45695e,_0x496f9a)){const _0x5ed671=_0x496f9a[_0x346437(0x1cd)]===_0x346437(0x19b)?_0x346437(0x1a9)+_0x496f9a[_0x346437(0x19b)]+')':a47_0x182571['gt'](_0x45695e,_0x47f14e)?'Current\x20version\x20v'+_0x1776f7+_0x346437(0x1c2)+_0x496f9a[_0x346437(0x19b)]:_0x346437(0x1cc)+_0x496f9a[_0x346437(0x19b)]+')';return _0x1d1ce1[_0x346437(0x1df)](_0x5ed671),repairCurrentBuiltinSkill(),{'ok':!![]};}_0x1d1ce1[_0x346437(0x1e1)](getInstallPlanLabel(_0x1776f7,_0x496f9a));const _0xc0dce5=detectPackageManager(),_0x117e8b=_0xc0dce5===_0x346437(0x1d3)?resolveNpmBin('npm'):_0xc0dce5,_0x36060c=a47_0x25a34f(_0x346437(0x1de)+_0xc0dce5+_0x346437(0x1b5))[_0x346437(0x197)]();try{await execa(_0x117e8b,[_0x346437(0x1a3),'-g',NPM_PACKAGE_NAME+'@'+_0x496f9a[_0x346437(0x19b)]],{'stdio':'pipe'}),_0x36060c[_0x346437(0x1df)](_0x346437(0x19c)+_0x496f9a['version']),console['log'](a47_0x25f17b['gray'](_0x346437(0x1b4)));}catch(_0x431999){return _0x36060c[_0x346437(0x199)](_0x346437(0x1b8)),console[_0x346437(0x1dc)](a47_0x25f17b[_0x346437(0x1c6)]('\x20\x20'+_0x431999[_0x346437(0x1bc)])),console[_0x346437(0x1d0)](a47_0x25f17b[_0x346437(0x1d1)](_0x346437(0x1d4)+_0xc0dce5+_0x346437(0x1c0)+NPM_PACKAGE_NAME+'@'+_0x496f9a[_0x346437(0x19b)])),{'ok':![],'message':_0x431999[_0x346437(0x1bc)]};}return verifyUpdatedBuiltinSkill(_0x496f9a[_0x346437(0x19b)]),{'ok':!![]};}export const updateDefinition={'service':a47_0x22ec4f(0x19e),'command':a47_0x22ec4f(0x1a7),'description':a47_0x22ec4f(0x1ba),'risk':a47_0x22ec4f(0x1b9),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a48_0x32e8(){const _0x2c4f63=['18pesdNV','60SwzMKo','2630fclYuZ','1408396tQoxVG','7186635xuvcmz','5360tMraLu','3047072zLSsDH','3056769qWVdVW','2155MCgxFq','398517GwkCyx','830PTgiYm'];a48_0x32e8=function(){return _0x2c4f63;};return a48_0x32e8();}(function(_0x10b9a6,_0x411878){const _0x38bd30=a48_0x4a42,_0x2ed079=_0x10b9a6();while(!![]){try{const _0x3c695a=parseInt(_0x38bd30(0x159))/0x1*(-parseInt(_0x38bd30(0x15b))/0x2)+-parseInt(_0x38bd30(0x158))/0x3+-parseInt(_0x38bd30(0x161))/0x4*(-parseInt(_0x38bd30(0x15e))/0x5)+parseInt(_0x38bd30(0x15c))/0x6*(-parseInt(_0x38bd30(0x15a))/0x7)+parseInt(_0x38bd30(0x157))/0x8+parseInt(_0x38bd30(0x160))/0x9+parseInt(_0x38bd30(0x15d))/0xa*(parseInt(_0x38bd30(0x15f))/0xb);if(_0x3c695a===_0x411878)break;else _0x2ed079['push'](_0x2ed079['shift']());}catch(_0x167202){_0x2ed079['push'](_0x2ed079['shift']());}}}(a48_0x32e8,0x8ac5e));import{codegenSdk}from'../../commands/codegen/sdk.js';function a48_0x4a42(_0x5d63b8,_0x177052){_0x5d63b8=_0x5d63b8-0x157;const _0x32e88b=a48_0x32e8();let _0x4a4267=_0x32e88b[_0x5d63b8];return _0x4a4267;}import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a49_0x5e31ef=a49_0x4132;function a49_0x2d81(){const _0x1c35da=['297830ttTPcj','490624pcBVCZ','bool','string','appCode','190396vCtdTR','codegen','24piWLMH','23zZnldI','alias','Omit\x20import\x20statements\x20from\x20generated\x20code','skip-imports','1354239QsPwBy','code','65hvhnya','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','1828442JiHRmV','tableName','name','operation','read','18204aJsjmZ','boolean','118314hDJHNi','str'];a49_0x2d81=function(){return _0x1c35da;};return a49_0x2d81();}(function(_0x434ca2,_0x1425d8){const _0x23c4a1=a49_0x4132,_0x6e23fc=_0x434ca2();while(!![]){try{const _0x14c2ef=-parseInt(_0x23c4a1(0xa1))/0x1*(-parseInt(_0x23c4a1(0x95))/0x2)+parseInt(_0x23c4a1(0xa0))/0x3*(-parseInt(_0x23c4a1(0x9e))/0x4)+-parseInt(_0x23c4a1(0x8e))/0x5*(-parseInt(_0x23c4a1(0x97))/0x6)+parseInt(_0x23c4a1(0x90))/0x7+parseInt(_0x23c4a1(0x9a))/0x8+-parseInt(_0x23c4a1(0x8c))/0x9+-parseInt(_0x23c4a1(0x99))/0xa;if(_0x14c2ef===_0x1425d8)break;else _0x6e23fc['push'](_0x6e23fc['shift']());}catch(_0x44c908){_0x6e23fc['push'](_0x6e23fc['shift']());}}}(a49_0x2d81,0x3776d));function a49_0x4132(_0x861bc3,_0x2e80de){_0x861bc3=_0x861bc3-0x8c;const _0x2d8132=a49_0x2d81();let _0x4132a1=_0x2d8132[_0x861bc3];return _0x4132a1;}import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':a49_0x5e31ef(0x9f),'command':'sdk','description':'Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','risk':a49_0x5e31ef(0x94),'flags':[CODE_FLAG_OPTIONAL,{'name':a49_0x5e31ef(0xa2),'type':a49_0x5e31ef(0x9c),'description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)'},{'name':a49_0x5e31ef(0x93),'type':a49_0x5e31ef(0x9c),'required':!![],'description':a49_0x5e31ef(0x8f)},{'name':a49_0x5e31ef(0xa4),'type':a49_0x5e31ef(0x96),'description':a49_0x5e31ef(0xa3)}],async 'execute'(_0x447e03){const _0x38f7a2=a49_0x5e31ef,{dataset:_0x4f4c38,operation:_0x57537b}=await getOperationDetail(_0x447e03[_0x38f7a2(0x9d)],_0x447e03[_0x38f7a2(0x98)](_0x38f7a2(0x8d)),_0x447e03[_0x38f7a2(0x98)](_0x38f7a2(0x93))),_0x4940d2=generateSdkCode(_0x4f4c38,_0x57537b,{'includeImports':!_0x447e03[_0x38f7a2(0x9b)]('skip-imports')});return{'ok':!![],'data':{'dataset':{'name':_0x4f4c38[_0x38f7a2(0x92)],'code':_0x4f4c38['code'],'tableName':_0x4f4c38[_0x38f7a2(0x91)]},'operation':_0x447e03[_0x38f7a2(0x98)]('operation'),'code':_0x4940d2}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a50_0x12128c=a50_0x4209;function a50_0x4209(_0x3cc931,_0x4b5217){_0x3cc931=_0x3cc931-0x89;const _0x247c21=a50_0x247c();let _0x420904=_0x247c21[_0x3cc931];return _0x420904;}function a50_0x247c(){const _0x18df39=['read','bff','sqlName','no-imports','88557bEnLmX','codegen','11RnOgAr','144kqkGnq','70938MPObwB','3793190FAjxoP','sqlcode','str','appCode','Omit\x20import\x20statements\x20from\x20generated\x20code','275544PAQZWZ','sdk','1906TCGJIn','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','boolean','498192NaFNCk','52949NyTsdo','target','771HRJZCE','135azVpXx','sqlCode','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','string'];a50_0x247c=function(){return _0x18df39;};return a50_0x247c();}(function(_0x4ba334,_0x591bb3){const _0x4b374f=a50_0x4209,_0xf133df=_0x4ba334();while(!![]){try{const _0x49c544=parseInt(_0x4b374f(0xa2))/0x1+parseInt(_0x4b374f(0x9e))/0x2*(-parseInt(_0x4b374f(0x89))/0x3)+parseInt(_0x4b374f(0xa1))/0x4+-parseInt(_0x4b374f(0x8a))/0x5*(parseInt(_0x4b374f(0x96))/0x6)+parseInt(_0x4b374f(0x92))/0x7*(parseInt(_0x4b374f(0x95))/0x8)+-parseInt(_0x4b374f(0x9c))/0x9+parseInt(_0x4b374f(0x97))/0xa*(parseInt(_0x4b374f(0x94))/0xb);if(_0x49c544===_0x591bb3)break;else _0xf133df['push'](_0xf133df['shift']());}catch(_0x45d231){_0xf133df['push'](_0xf133df['shift']());}}}(a50_0x247c,0x2e550));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':a50_0x12128c(0x93),'command':'sql','description':a50_0x12128c(0x8c),'risk':a50_0x12128c(0x8e),'flags':[SQLCODE_FLAG,{'name':a50_0x12128c(0xa3),'type':a50_0x12128c(0x8d),'description':a50_0x12128c(0x9f),'default':a50_0x12128c(0x9d),'enum':[a50_0x12128c(0x9d),a50_0x12128c(0x8f)]},{'name':a50_0x12128c(0x91),'type':a50_0x12128c(0xa0),'description':a50_0x12128c(0x9b)}],async 'execute'(_0x2f09cb){const _0x54528e=a50_0x12128c,_0x37642a=await getSqlQueryInfo(_0x2f09cb[_0x54528e(0x9a)],_0x2f09cb[_0x54528e(0x99)](_0x54528e(0x98))),_0x4160b4=_0x2f09cb[_0x54528e(0x99)](_0x54528e(0xa3))||_0x54528e(0x9d),_0x44d178=generateSqlCodeTemplate(_0x37642a,{'target':_0x4160b4,'includeImports':!_0x2f09cb['bool'](_0x54528e(0x91))});return{'ok':!![],'data':{'sqlCode':_0x37642a[_0x54528e(0x8b)],'sqlName':_0x37642a[_0x54528e(0x90)],'target':_0x4160b4,'code':_0x44d178}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1f608a,_0x4f6f10){const _0xb75072=a51_0x1ba3,_0x191e11=_0x1f608a();while(!![]){try{const _0x4001df=-parseInt(_0xb75072(0x100))/0x1+parseInt(_0xb75072(0xed))/0x2+-parseInt(_0xb75072(0xf4))/0x3*(parseInt(_0xb75072(0xf0))/0x4)+parseInt(_0xb75072(0xfb))/0x5+-parseInt(_0xb75072(0xdb))/0x6+-parseInt(_0xb75072(0xfc))/0x7+parseInt(_0xb75072(0xdd))/0x8*(parseInt(_0xb75072(0xfd))/0x9);if(_0x4001df===_0x4f6f10)break;else _0x191e11['push'](_0x191e11['shift']());}catch(_0x49f8e3){_0x191e11['push'](_0x191e11['shift']());}}}(a51_0x30be,0x6bedc));import{CliErrors}from'../../errors.js';function a51_0x30be(){const _0xe153b5=['both','2625528UZCEwA','\x20Note:\x20app\x20\x22','\x20config.','apps','\x20Default\x20app\x20is\x20\x22','trim','string','\x22\x20not\x20found.','flagMissing','keys','str','\x20<name>\x20--appcode\x20<code>','\x20<name>','\x20Remaining\x20app\x20\x22','object','projectConfig','1653510lQKmpZ','Missing\x20app\x20name.','App\x20code','824RMVEYy','globalConfig','boolean','Usage:\x20','3153axwMBW','bool','\x20<name>\x20[--global]','global','Updated','\x20app\x20\x22','length','279320XRcnDo','4924521vKynAf','45nboCVi','Use\x20global\x20config\x20scope','defaultApp','613862ilthLh','Removed\x20app\x20\x22','App\x20\x22','validation','appcode','args','project','3285762zGYxIS'];a51_0x30be=function(){return _0xe153b5;};return a51_0x30be();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{collectAppProfileOverrides,getAppProfileFlagDefs,normalizeStoredDefaultApp}from'../../config/schema.js';import{readRawConfigWithLayers}from'../../context.js';import{readConfig,writeConfig,scopeLabel,resolveAppScopeForWrite,appDefinedIn}from'../../commands/app/shared.js';export function buildAppAddFlags(){const _0x1bd32a=a51_0x1ba3;return[{'name':_0x1bd32a(0x104),'type':'string','description':_0x1bd32a(0xef),'required':!![]},{'name':_0x1bd32a(0xf7),'type':'boolean','description':'Use\x20global\x20config\x20scope','default':![]},...getAppProfileFlagDefs()];}function a51_0x1ba3(_0x40124f,_0x3ef84b){_0x40124f=_0x40124f-0xd9;const _0x30be4c=a51_0x30be();let _0x1ba388=_0x30be4c[_0x40124f];return _0x1ba388;}export function buildAppRemoveFlags(){const _0x2359f7=a51_0x1ba3;return[{'name':_0x2359f7(0xf7),'type':_0x2359f7(0xf2),'description':_0x2359f7(0xfe),'default':![]}];}export async function validateAppName(_0xf04e26,_0x55adbc){const _0x39c66d=a51_0x1ba3,_0x2cd8ad=_0xf04e26['args'][0x0]?.[_0x39c66d(0xe2)]();if(!_0x2cd8ad)throw CliErrors[_0x39c66d(0x103)](_0x39c66d(0xee),_0x39c66d(0xf3)+CLI_BIN_NAME+'\x20'+_0x55adbc+_0x39c66d(0xe9));}export async function runAppAdd(_0x1732a7,_0x4a3a85){const _0x1a5438=a51_0x1ba3,_0xca2662=_0x1732a7['args'][0x0]?.[_0x1a5438(0xe2)]();if(!_0xca2662)throw CliErrors[_0x1a5438(0x103)](_0x1a5438(0xee),'Usage:\x20'+CLI_BIN_NAME+'\x20'+_0x4a3a85+_0x1a5438(0xe8));const _0x78dba=_0x1732a7[_0x1a5438(0xe7)]('appcode');if(!_0x78dba)throw CliErrors[_0x1a5438(0xe5)](_0x1a5438(0x104),'Usage:\x20'+CLI_BIN_NAME+'\x20'+_0x4a3a85+_0x1a5438(0xe8));const _0x437d68={'global':_0x1732a7[_0x1a5438(0xf5)](_0x1a5438(0xf7))},_0x16b9e8=readConfig(_0x437d68);if(!_0x16b9e8[_0x1a5438(0xe0)])_0x16b9e8[_0x1a5438(0xe0)]={};const _0x4f6339={'appcode':_0x78dba,...collectAppProfileOverrides(_0x39356f=>_0x1732a7[_0x1a5438(0xe7)](_0x39356f))},_0x19c9f9=_0x16b9e8[_0x1a5438(0xe0)],_0x1c8fc0=Object['keys'](_0x19c9f9),_0x179770=typeof _0x16b9e8[_0x1a5438(0xff)]===_0x1a5438(0xe3)&&_0x19c9f9[_0x16b9e8['defaultApp']]?_0x16b9e8[_0x1a5438(0xff)]:_0x1c8fc0[_0x1a5438(0xfa)]===0x1?_0x1c8fc0[0x0]:undefined,_0x54d2d7=!!_0x19c9f9[_0xca2662];_0x19c9f9[_0xca2662]=_0x4f6339;const _0x3d3ebf=normalizeStoredDefaultApp(_0x16b9e8,_0x179770);writeConfig(_0x16b9e8,_0x437d68);const _0x4a007e=!_0x54d2d7&&_0x3d3ebf?_0x1a5438(0xe1)+_0x3d3ebf+'\x22.':'',_0x5cd637=(_0x54d2d7?_0x1a5438(0xf8):'Added')+_0x1a5438(0xf9)+_0xca2662+'\x22\x20(appcode:\x20'+_0x78dba+')'+scopeLabel(_0x437d68)+'.'+_0x4a007e;return{'ok':!![],'message':_0x5cd637};}export async function runAppRemove(_0x407590,_0x5072dc){const _0x35c3f4=a51_0x1ba3,_0x5e9090=_0x407590[_0x35c3f4(0xd9)][0x0]?.[_0x35c3f4(0xe2)]();if(!_0x5e9090)throw CliErrors[_0x35c3f4(0x103)](_0x35c3f4(0xee),_0x35c3f4(0xf3)+CLI_BIN_NAME+'\x20'+_0x5072dc+_0x35c3f4(0xf6));const _0x2015dd=_0x407590[_0x35c3f4(0xf5)](_0x35c3f4(0xf7)),{config:_0x157c30,layers:_0x10c744}=readRawConfigWithLayers(),_0x5d85ca=_0x157c30[_0x35c3f4(0xe0)]??{};if(!_0x5d85ca[_0x5e9090])throw CliErrors[_0x35c3f4(0x103)]('App\x20\x22'+_0x5e9090+_0x35c3f4(0xe4));const _0x263b73=_0x10c744[_0x35c3f4(0xf1)]['apps']&&typeof _0x10c744[_0x35c3f4(0xf1)]['apps']==='object'?_0x10c744['globalConfig'][_0x35c3f4(0xe0)]:{},_0x3b741d=_0x10c744[_0x35c3f4(0xec)]['apps']&&typeof _0x10c744[_0x35c3f4(0xec)]['apps']===_0x35c3f4(0xeb)?_0x10c744['projectConfig'][_0x35c3f4(0xe0)]:{},_0x2d683e=appDefinedIn(_0x5e9090,_0x263b73,_0x3b741d),_0x43613d=resolveAppScopeForWrite(_0x5e9090,_0x2015dd,_0x10c744),_0x359255={'global':_0x43613d===_0x35c3f4(0xf7)},_0x5c3c2e=readConfig(_0x359255),_0x107943=_0x5c3c2e[_0x35c3f4(0xe0)];if(!_0x107943||!_0x107943[_0x5e9090])throw CliErrors[_0x35c3f4(0x103)](_0x35c3f4(0x102)+_0x5e9090+'\x22\x20not\x20found.');delete _0x107943[_0x5e9090];let _0x4ad388='';const _0xd59968=typeof _0x5c3c2e['defaultApp']===_0x35c3f4(0xe3)?_0x5c3c2e[_0x35c3f4(0xff)]:undefined,_0x3a974b=Object[_0x35c3f4(0xe6)](_0x107943),_0x1d5d7e=_0xd59968===_0x5e9090?_0x3a974b[0x0]:_0xd59968,_0x729538=normalizeStoredDefaultApp(_0x5c3c2e,_0x1d5d7e);if(_0xd59968===_0x5e9090&&_0x3a974b[_0x35c3f4(0xfa)]===0x1)_0x4ad388=_0x35c3f4(0xea)+_0x3a974b[0x0]+'\x22\x20is\x20selected\x20automatically.';else _0xd59968===_0x5e9090&&_0x729538&&(_0x4ad388='\x20Default\x20app\x20changed\x20to\x20\x22'+_0x729538+'\x22.');Object[_0x35c3f4(0xe6)](_0x107943)[_0x35c3f4(0xfa)]===0x0&&(delete _0x5c3c2e[_0x35c3f4(0xe0)],delete _0x5c3c2e[_0x35c3f4(0xff)]);writeConfig(_0x5c3c2e,_0x359255);const _0x3ded7c=_0x2d683e===_0x35c3f4(0xdc)?_0x35c3f4(0xde)+_0x5e9090+'\x22\x20still\x20defined\x20in\x20'+(_0x43613d==='project'?'global':_0x35c3f4(0xda))+_0x35c3f4(0xdf):'';return{'ok':!![],'message':_0x35c3f4(0x101)+_0x5e9090+'\x22'+scopeLabel(_0x359255)+'.'+_0x4ad388+_0x3ded7c};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x552d6a,_0x1b101a){const _0x46e11b=a52_0x56ec,_0x28a8b8=_0x552d6a();while(!![]){try{const _0x5c83db=parseInt(_0x46e11b(0xd6))/0x1+parseInt(_0x46e11b(0xee))/0x2+parseInt(_0x46e11b(0xe6))/0x3*(-parseInt(_0x46e11b(0xe1))/0x4)+parseInt(_0x46e11b(0xe0))/0x5+parseInt(_0x46e11b(0xd1))/0x6*(parseInt(_0x46e11b(0xd9))/0x7)+parseInt(_0x46e11b(0xf0))/0x8+-parseInt(_0x46e11b(0xe4))/0x9;if(_0x5c83db===_0x1b101a)break;else _0x28a8b8['push'](_0x28a8b8['shift']());}catch(_0x4847e6){_0x28a8b8['push'](_0x28a8b8['shift']());}}}(a52_0x25ab,0xe9211));import{input,checkbox,select}from'@inquirer/prompts';import a52_0xa4a2c9 from'chalk';import{validateAppcode}from'../../commands/common/validate.js';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 _0x3cf67b=a52_0x56ec,_0x421463=await input({'message':'App\x20Code:','validate':_0x9b1c8e=>{const _0xf48a37=a52_0x56ec,_0x3e29fa=validateAppcode(_0x9b1c8e[_0xf48a37(0xd0)]());return _0x3e29fa['valid']||_0x3e29fa['message']||_0xf48a37(0xf5);}});return _0x421463[_0x3cf67b(0xd0)]();}export async function promptAppSelection(_0x2346b2){const _0x5dfc86=a52_0x56ec,_0x2f7432=[{'name':a52_0xa4a2c9['yellow'](_0x5dfc86(0xdc)),'value':-0x1},..._0x2346b2[_0x5dfc86(0xe7)]((_0x53b5f1,_0x5d2d8c)=>({'name':_0x53b5f1[_0x5dfc86(0xd4)]+'\x20\x20'+a52_0xa4a2c9[_0x5dfc86(0xd8)]('('+_0x53b5f1[_0x5dfc86(0xdb)]+')'),'value':_0x5d2d8c}))],_0x5567a1=await checkbox({'message':_0x5dfc86(0xf3)+a52_0xa4a2c9['cyan'](_0x2346b2['length'])+_0x5dfc86(0xe5),'choices':_0x2f7432,'loop':![]});if(_0x5567a1[_0x5dfc86(0xd5)](-0x1))return'custom';if(_0x5567a1[_0x5dfc86(0xf1)]===0x0)return _0x5dfc86(0xf2);return _0x5567a1[_0x5dfc86(0xe7)](_0x479816=>_0x2346b2[_0x479816]);}export async function promptSingleAppSelection(_0x134904){const _0x7ca880=a52_0x56ec,_0x2284d5=[{'name':a52_0xa4a2c9['gray'](_0x7ca880(0xe9)),'value':_0x7ca880(0xe3)},{'name':a52_0xa4a2c9[_0x7ca880(0xdd)](_0x7ca880(0xdc)),'value':_0x7ca880(0xf2)},..._0x134904[_0x7ca880(0xe7)](_0x1b4656=>({'name':_0x1b4656[_0x7ca880(0xd4)]+'\x20\x20'+a52_0xa4a2c9[_0x7ca880(0xd8)]('('+_0x1b4656[_0x7ca880(0xdb)]+')'),'value':_0x1b4656['appCode']}))],_0x3613e2=await select({'message':_0x7ca880(0xde),'choices':_0x2284d5});if(_0x3613e2===_0x7ca880(0xe3))return _0x7ca880(0xe3);if(_0x3613e2==='custom')return _0x7ca880(0xf2);return _0x134904[_0x7ca880(0xd3)](_0x4895a0=>_0x4895a0['appCode']===_0x3613e2);}export async function selectSingleAppcode(_0x3ce105){const _0xe4b2f6=a52_0x56ec;if(!_0x3ce105)return writeCliSideChannelLine(a52_0xa4a2c9['gray'](_0xe4b2f6(0xea))),_fallbackOrSkip();writeCliSideChannelLine('Fetching\x20available\x20apps...');let _0x1035ce;try{_0x1035ce=await withActiveCookie(_0x3ce105,()=>listRemoteApps());}catch(_0x32c318){writeCliSideChannelLine(a52_0xa4a2c9[_0xe4b2f6(0xdd)](_0xe4b2f6(0xda)));if(_0x32c318 instanceof Error)writeCliSideChannelLine(a52_0xa4a2c9['gray'](_0xe4b2f6(0xe2)+_0x32c318['message']+')'));return _fallbackOrSkip();}if(_0x1035ce[_0xe4b2f6(0xf1)]===0x0)return writeCliSideChannelLine(a52_0xa4a2c9[_0xe4b2f6(0xdd)](_0xe4b2f6(0xef))),_fallbackOrSkip();const _0x417f66=await promptSingleAppSelection(_0x1035ce);if(_0x417f66===_0xe4b2f6(0xe3))return'';if(_0x417f66==='custom')return promptCustomAppcode();return _0x417f66['appCode'];}export async function selectMultipleApps(_0x37c862){const _0x3ca414=a52_0x56ec;writeCliSideChannelLine(_0x3ca414(0xd2));let _0x4fbe01;try{_0x4fbe01=await withActiveCookie(_0x37c862,()=>listRemoteApps());}catch(_0x5ea4f3){writeCliSideChannelLine(_0x3ca414(0xdf));if(_0x5ea4f3 instanceof Error)writeCliSideChannelLine(_0x3ca414(0xe2)+_0x5ea4f3[_0x3ca414(0xed)]+')');return'custom';}if(_0x4fbe01[_0x3ca414(0xf1)]===0x0)return writeCliSideChannelLine(_0x3ca414(0xf4)),_0x3ca414(0xf2);return promptAppSelection(_0x4fbe01);}async function _fallbackOrSkip(){const _0x41056c=a52_0x56ec,_0xfeb5b2=await select({'message':_0x41056c(0xec),'choices':[{'name':a52_0xa4a2c9[_0x41056c(0xd8)](_0x41056c(0xeb)),'value':_0x41056c(0xe3)},{'name':a52_0xa4a2c9[_0x41056c(0xdd)](_0x41056c(0xe8)),'value':_0x41056c(0xd7)}]});if(_0xfeb5b2===_0x41056c(0xe3))return'';return promptCustomAppcode();}function a52_0x56ec(_0x46d204,_0xa6c267){_0x46d204=_0x46d204-0xd0;const _0x25ab43=a52_0x25ab();let _0x56ec80=_0x25ab43[_0x46d204];return _0x56ec80;}function a52_0x25ab(){const _0x248556=['(Skip;\x20configure\x20later)','App\x20Code:','message','3159078rruqrn','No\x20available\x20apps\x20found.','5145736PGZMQn','length','custom','Found\x20','\x0aNo\x20available\x20apps\x20found.','Invalid\x20App\x20Code','trim','6yZIRsy','Fetching\x20available\x20apps...','find','appName','includes','373889xjLMST','manual','gray','8003618WCIsXw','Could\x20not\x20fetch\x20the\x20remote\x20app\x20list.\x20Enter\x20an\x20App\x20Code\x20manually.','appCode','✎\x20Enter\x20appcode\x20manually','yellow','Select\x20the\x20app\x20to\x20bind:','\x0aCould\x20not\x20fetch\x20the\x20remote\x20app\x20list.\x20Enter\x20an\x20App\x20Code\x20manually.','6788725tmxsHl','4fQKmPq','\x20\x20(','skip','27485100HDflwl','\x20apps.\x20Select\x20with\x20space,\x20a=all,\x20i=invert:','3266901vkgKfD','map','✎\x20Enter\x20manually','(Skip;\x20configure\x20later\x20with\x20config\x20set\x20appcode)','(No\x20login\x20session.\x20Enter\x20an\x20App\x20Code\x20manually\x20or\x20skip.)'];a52_0x25ab=function(){return _0x248556;};return a52_0x25ab();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a53_0x1befa1=a53_0x390c;(function(_0xaf143f,_0x95aaa2){const _0x125c82=a53_0x390c,_0x452f22=_0xaf143f();while(!![]){try{const _0x49813f=parseInt(_0x125c82(0x1ce))/0x1+-parseInt(_0x125c82(0x1dd))/0x2+parseInt(_0x125c82(0x1c3))/0x3*(parseInt(_0x125c82(0x1df))/0x4)+-parseInt(_0x125c82(0x1c7))/0x5*(-parseInt(_0x125c82(0x1d4))/0x6)+-parseInt(_0x125c82(0x1e0))/0x7*(parseInt(_0x125c82(0x1e3))/0x8)+parseInt(_0x125c82(0x1c5))/0x9+-parseInt(_0x125c82(0x1cd))/0xa*(parseInt(_0x125c82(0x1c1))/0xb);if(_0x49813f===_0x95aaa2)break;else _0x452f22['push'](_0x452f22['shift']());}catch(_0xa7aaa9){_0x452f22['push'](_0x452f22['shift']());}}}(a53_0x47a9,0xdfa67));import{CLI_BIN_NAME}from'../../constant/cli.js';function a53_0x47a9(){const _0x1588c9=['errorMessage','FAILED','string','\x27\x5c\x27\x27','\x20returned\x20unknown\x20status\x20','SUCCESS','apiError','status','1742198KYINPa','\x20task\x20status\x20--task-id\x20','1670212vbpmmE','476sEtxWJ','\x20response\x20did\x20not\x20contain\x20a\x20status.','\x20is\x20pending.','38296wKVrVD','121xasQpg','\x20is\x20processing.','3oZRzaD','\x20failed.','11269548NVjsko','\x20failed:\x20','748270zcoTOL','Async\x20task\x20response\x20did\x20not\x20contain\x20a\x20taskId.','has','Task\x20','taskId','trim','515650CKEpDS','261906nSBScK','Async\x20task\x20','\x20completed\x20successfully.','PROCESSING','PENDING','\x20--format\x20compress','30OUCARq'];a53_0x47a9=function(){return _0x1588c9;};return a53_0x47a9();}function a53_0x390c(_0x3a9ecb,_0x3730cc){_0x3a9ecb=_0x3a9ecb-0x1c1;const _0x47a90a=a53_0x47a9();let _0x390c94=_0x47a90a[_0x3a9ecb];return _0x390c94;}import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a53_0x1befa1(0x1da),a53_0x1befa1(0x1d6)]),NON_TERMINAL_STATUSES=new Set(['PENDING',a53_0x1befa1(0x1d1)]);export function normalizeAsyncTask(_0x2e7c52){const _0x2cf4a5=a53_0x1befa1,_0x1e90f7=typeof _0x2e7c52?.[_0x2cf4a5(0x1cb)]===_0x2cf4a5(0x1d7)?_0x2e7c52[_0x2cf4a5(0x1cb)]['trim']():'';if(!_0x1e90f7)throw CliErrors[_0x2cf4a5(0x1db)](_0x2cf4a5(0x1c8));const _0x5c45ea=typeof _0x2e7c52[_0x2cf4a5(0x1dc)]===_0x2cf4a5(0x1d7)?_0x2e7c52['status'][_0x2cf4a5(0x1cc)]()['toUpperCase']():'';if(!_0x5c45ea)throw CliErrors['apiError'](_0x2cf4a5(0x1cf)+_0x1e90f7+_0x2cf4a5(0x1e1));return{'taskId':_0x1e90f7,'status':_0x5c45ea,'errorMessage':typeof _0x2e7c52[_0x2cf4a5(0x1d5)]===_0x2cf4a5(0x1d7)&&_0x2e7c52['errorMessage'][_0x2cf4a5(0x1cc)]()?_0x2e7c52['errorMessage'][_0x2cf4a5(0x1cc)]():null,'isTerminal':TERMINAL_STATUSES['has'](_0x5c45ea),'knownStatus':TERMINAL_STATUSES['has'](_0x5c45ea)||NON_TERMINAL_STATUSES[_0x2cf4a5(0x1c9)](_0x5c45ea)};}export function buildAsyncTaskStatusCommand(_0x82aef4,_0x218e74){const _0x24fd11=a53_0x1befa1;return CLI_BIN_NAME+_0x24fd11(0x1de)+quoteShellArg(_0x82aef4)+'\x20--appcode\x20'+quoteShellArg(_0x218e74)+_0x24fd11(0x1d3);}export function asyncTaskMessage(_0x4edbdd){const _0x3f0a76=a53_0x1befa1;switch(_0x4edbdd[_0x3f0a76(0x1dc)]){case _0x3f0a76(0x1d2):return _0x3f0a76(0x1ca)+_0x4edbdd[_0x3f0a76(0x1cb)]+_0x3f0a76(0x1e2);case _0x3f0a76(0x1d1):return _0x3f0a76(0x1ca)+_0x4edbdd['taskId']+_0x3f0a76(0x1c2);case _0x3f0a76(0x1da):return _0x3f0a76(0x1ca)+_0x4edbdd['taskId']+_0x3f0a76(0x1d0);case _0x3f0a76(0x1d6):return _0x4edbdd[_0x3f0a76(0x1d5)]?_0x3f0a76(0x1ca)+_0x4edbdd[_0x3f0a76(0x1cb)]+_0x3f0a76(0x1c6)+_0x4edbdd['errorMessage']:_0x3f0a76(0x1ca)+_0x4edbdd[_0x3f0a76(0x1cb)]+_0x3f0a76(0x1c4);default:return'Task\x20'+_0x4edbdd[_0x3f0a76(0x1cb)]+_0x3f0a76(0x1d9)+_0x4edbdd[_0x3f0a76(0x1dc)]+'.';}}function quoteShellArg(_0x207f48){const _0xc60314=a53_0x1befa1;return'\x27'+_0x207f48['replace'](/'/g,_0xc60314(0x1d8))+'\x27';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5b98a6,_0xe2702f){var _0x1a7a76=a54_0x898a,_0x17285d=_0x5b98a6();while(!![]){try{var _0x20f203=parseInt(_0x1a7a76(0x197))/0x1+-parseInt(_0x1a7a76(0x19b))/0x2*(-parseInt(_0x1a7a76(0x19f))/0x3)+parseInt(_0x1a7a76(0x193))/0x4*(parseInt(_0x1a7a76(0x195))/0x5)+parseInt(_0x1a7a76(0x199))/0x6*(parseInt(_0x1a7a76(0x19a))/0x7)+parseInt(_0x1a7a76(0x1a0))/0x8+-parseInt(_0x1a7a76(0x194))/0x9*(parseInt(_0x1a7a76(0x19e))/0xa)+parseInt(_0x1a7a76(0x19d))/0xb*(-parseInt(_0x1a7a76(0x198))/0xc);if(_0x20f203===_0xe2702f)break;else _0x17285d['push'](_0x17285d['shift']());}catch(_0x2ea520){_0x17285d['push'](_0x17285d['shift']());}}}(a54_0xe6da,0xe25d3));function a54_0x898a(_0x3c4be4,_0x2d5d70){_0x3c4be4=_0x3c4be4-0x192;var _0xe6da96=a54_0xe6da();var _0x898a81=_0xe6da96[_0x3c4be4];return _0x898a81;}export function asDryRunResult(_0x44597e,_0x2d3b28){var _0x379137=a54_0x898a;return Object['defineProperties'](_0x44597e,{'method':{'value':_0x2d3b28[_0x379137(0x19c)],'enumerable':![]},'url':{'value':_0x2d3b28[_0x379137(0x192)],'enumerable':![]},..._0x2d3b28[_0x379137(0x196)]?{'description':{'value':_0x2d3b28['description'],'enumerable':![]}}:{}});}function a54_0xe6da(){var _0x6792f4=['description','1608894XYciMQ','12VEPSNJ','630FcPAFN','16954JzdCHK','24abHdEL','method','35090528unjrnn','62890vooTtG','285861sfuWsJ','5929184lnqzLp','url','60dTtJgY','126VuECKN','152495KPxsJm'];a54_0xe6da=function(){return _0x6792f4;};return a54_0xe6da();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a55_0x18d911=a55_0x3df2;(function(_0x1248b3,_0x55d45e){const _0x481a60=a55_0x3df2,_0x431f66=_0x1248b3();while(!![]){try{const _0x43dfdd=-parseInt(_0x481a60(0x1a7))/0x1+parseInt(_0x481a60(0x1aa))/0x2+-parseInt(_0x481a60(0x1a6))/0x3*(-parseInt(_0x481a60(0x1c2))/0x4)+parseInt(_0x481a60(0x1a4))/0x5+-parseInt(_0x481a60(0x1be))/0x6*(parseInt(_0x481a60(0x1ac))/0x7)+parseInt(_0x481a60(0x1b4))/0x8+parseInt(_0x481a60(0x1b0))/0x9*(-parseInt(_0x481a60(0x1b2))/0xa);if(_0x43dfdd===_0x55d45e)break;else _0x431f66['push'](_0x431f66['shift']());}catch(_0xb02bdc){_0x431f66['push'](_0x431f66['shift']());}}}(a55_0x59d9,0xbaf37));export const CROSS_RELATION_FROM_DATASET_FLAG={'name':a55_0x18d911(0x1a3),'type':'string','required':!![],'description':a55_0x18d911(0x1bc)};export const CROSS_RELATION_FROM_COLUMN_FLAG={'name':a55_0x18d911(0x1c1),'type':a55_0x18d911(0x1a5),'required':!![],'description':a55_0x18d911(0x1a8)};export const CROSS_RELATION_TO_DATASET_FLAG={'name':a55_0x18d911(0x1b3),'type':a55_0x18d911(0x1a5),'required':!![],'description':a55_0x18d911(0x1b5)};export const CROSS_RELATION_TO_COLUMN_FLAG={'name':'to-column','type':a55_0x18d911(0x1a5),'required':!![],'description':a55_0x18d911(0x1bf)};export const CROSS_RELATION_DBLINK_FLAG={'name':'from-dblink-id','type':'number','description':a55_0x18d911(0x1ca)};function a55_0x3df2(_0xa30585,_0x44221b){_0xa30585=_0xa30585-0x1a2;const _0x59d996=a55_0x59d9();let _0x3df213=_0x59d996[_0xa30585];return _0x3df213;}export const CROSS_RELATION_LABEL_FLAG={'name':a55_0x18d911(0x1cc),'type':a55_0x18d911(0x1a5),'description':a55_0x18d911(0x1ab)};export const CROSS_RELATION_CARDINALITY_FLAG={'name':a55_0x18d911(0x1b8),'type':a55_0x18d911(0x1a5),'enum':[a55_0x18d911(0x1ad),a55_0x18d911(0x1c8),a55_0x18d911(0x1c7),a55_0x18d911(0x1bd)],'description':a55_0x18d911(0x1b6)};export const GLOBAL_SCOPE_FLAG={'name':a55_0x18d911(0x1ae),'type':a55_0x18d911(0x1c3),'default':![],'description':a55_0x18d911(0x1c6)};export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}(?:_[^_\s]+_[^_\s]+)?$/i,'description':a55_0x18d911(0x1bb)};export const CODE_FLAG={'name':'code','type':a55_0x18d911(0x1a5),'required':!![],'description':a55_0x18d911(0x1b7),'pattern':DATASET_CODE_PATTERN};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':a55_0x18d911(0x1c0),'description':a55_0x18d911(0x1b7)};export const SQLCODE_FLAG={'name':a55_0x18d911(0x1cb),'type':'string','required':!![],'description':a55_0x18d911(0x1ce),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a55_0x18d911(0x1c4)}};function a55_0x59d9(){const _0x1103eb=['Source\x20database\x20connection\x20ID;\x20derived\x20from\x20the\x20source\x20dataset\x20when\x20omitted','sqlcode','to-label-column','number','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','skip-connection-test','from-datasetcode','567330SZTiQk','string','6DAMdlI','1518186yvaLLy','Source\x20field\x20name\x20used\x20to\x20locate\x20the\x20relation','appcode','1719204lcZPbL','Target\x20display\x20field;\x20create\x20defaults\x20to\x20the\x20target\x20field,\x20update\x20keeps\x20the\x20current\x20value','336707FpVvgk','ONE_TO_ONE','global','POSTGRESQL','291321qDrDHh','App\x20code\x20(e.g.\x20app-xxxxx)','200QiCorV','to-datasetcode','8859904VzMTez','Target\x20DB_TABLE\x20dataset\x20code','Relation\x20cardinality;\x20create\x20leaves\x20it\x20unset\x20when\x20omitted,\x20update\x20keeps\x20the\x20current\x20value','Dataset\x20code\x20(32-char\x20hex,\x20optionally\x20with\x20_xx_xx\x20suffix)','cardinality','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','MYSQL','a\x2032-character\x20hex\x20code,\x20optionally\x20with\x20`_xx_xx`\x20suffix\x20(e.g.\x2099a909313f1fa7153186431e1c551588\x20or\x2099a909313f1fa7153186431e1c551588_75_3c7120aa)','Source\x20DB_TABLE\x20dataset\x20code','MANY_TO_MANY','78haSZnp','Target\x20field\x20name','datasetcode','from-column','2952148zBAeDw','boolean','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','Database\x20product\x20type','Write\x20to\x20the\x20global\x20configuration','MANY_TO_ONE','ONE_TO_MANY','Skip\x20testing\x20the\x20unsaved\x20database\x20configuration\x20before\x20create/update'];a55_0x59d9=function(){return _0x1103eb;};return a55_0x59d9();}export const APPCODE_FLAG_OPTIONAL={'name':a55_0x18d911(0x1a9),'type':a55_0x18d911(0x1a5),'required':![],'description':'App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)'};export const APPCODE_FLAG={...APPCODE_FLAG_OPTIONAL,'required':!![],'description':a55_0x18d911(0x1b1)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':a55_0x18d911(0x1cd),'required':!![],'description':a55_0x18d911(0x1b9)};export const DB_TYPE_FLAG={'name':'dbtype','type':a55_0x18d911(0x1a5),'required':!![],'description':a55_0x18d911(0x1c5),'enum':[a55_0x18d911(0x1ba),a55_0x18d911(0x1af)]};export const SKIP_CONNECTION_TEST_FLAG={'name':a55_0x18d911(0x1a2),'type':a55_0x18d911(0x1c3),'description':a55_0x18d911(0x1c9)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3b407e,_0x3633c4){const _0x104a24=a56_0x4081,_0x428587=_0x3b407e();while(!![]){try{const _0x1e7425=parseInt(_0x104a24(0x16b))/0x1+parseInt(_0x104a24(0x174))/0x2*(-parseInt(_0x104a24(0x173))/0x3)+parseInt(_0x104a24(0x177))/0x4+-parseInt(_0x104a24(0x170))/0x5+parseInt(_0x104a24(0x16c))/0x6*(-parseInt(_0x104a24(0x16d))/0x7)+parseInt(_0x104a24(0x169))/0x8*(parseInt(_0x104a24(0x178))/0x9)+parseInt(_0x104a24(0x179))/0xa;if(_0x1e7425===_0x3633c4)break;else _0x428587['push'](_0x428587['shift']());}catch(_0x5e85e0){_0x428587['push'](_0x428587['shift']());}}}(a56_0x5a1a,0x2ae29));import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const DEVELOPMENT_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x4ac267){const _0x5dcd3c=a56_0x4081;if(_0x4ac267>=BYTES_PER_MB){const _0x5efdea=Math[_0x5dcd3c(0x168)](_0x4ac267/BYTES_PER_MB*0x64)/0x64;return _0x5efdea[_0x5dcd3c(0x176)](0x2)+'\x20MB';}return _0x4ac267+'\x20B';}function a56_0x4081(_0x3df58c,_0x2011bd){_0x3df58c=_0x3df58c-0x168;const _0x5a1a58=a56_0x5a1a();let _0x408108=_0x5a1a58[_0x3df58c];return _0x408108;}function a56_0x5a1a(){const _0x49f7b0=['1735300UVmYRt','File\x20is\x20not\x20a\x20regular\x20file:\x20','File\x20not\x20found:\x20','16971aGPLgu','38mzSBui','size','toFixed','647204HrExmO','9cIgZVZ','2186670DkdujQ','ceil','2217496swicPD','File\x20exceeds\x20the\x20development\x20upload\x20limit\x20of\x2050\x20MB:\x20','267790SKReXW','1771470XZUmoC','7RvMGDW','validation','isFile'];a56_0x5a1a=function(){return _0x49f7b0;};return a56_0x5a1a();}export function requireDevelopmentUploadFile(_0x27bbe1,_0x457010){const _0x53a8ef=a56_0x4081,_0x3cceec=_0x27bbe1['trim']();if(!_0x3cceec)throw CliErrors[_0x53a8ef(0x16e)](_0x457010+'\x20path\x20is\x20required.');if(!existsSync(_0x3cceec))throw CliErrors[_0x53a8ef(0x16e)](_0x53a8ef(0x172)+_0x3cceec);const _0x3d92ac=statSync(_0x3cceec);if(!_0x3d92ac[_0x53a8ef(0x16f)]())throw CliErrors['validation'](_0x53a8ef(0x171)+_0x3cceec);if(_0x3d92ac[_0x53a8ef(0x175)]>DEVELOPMENT_UPLOAD_MAX_BYTES)throw CliErrors[_0x53a8ef(0x16e)](_0x53a8ef(0x16a)+_0x3cceec+'\x20('+formatBytes(_0x3d92ac[_0x53a8ef(0x175)])+')');return{'path':_0x3cceec,'size':_0x3d92ac[_0x53a8ef(0x175)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a57_0x4b09(_0x2638ef,_0x2c8d88){_0x2638ef=_0x2638ef-0x13c;const _0x369f68=a57_0x369f();let _0x4b09f8=_0x369f68[_0x2638ef];return _0x4b09f8;}(function(_0x32c7ed,_0x5fa20c){const _0x14f505=a57_0x4b09,_0x45eac7=_0x32c7ed();while(!![]){try{const _0x5bc6d7=-parseInt(_0x14f505(0x141))/0x1*(parseInt(_0x14f505(0x144))/0x2)+-parseInt(_0x14f505(0x149))/0x3*(-parseInt(_0x14f505(0x14b))/0x4)+-parseInt(_0x14f505(0x140))/0x5*(-parseInt(_0x14f505(0x13f))/0x6)+parseInt(_0x14f505(0x13e))/0x7+parseInt(_0x14f505(0x13c))/0x8*(-parseInt(_0x14f505(0x142))/0x9)+parseInt(_0x14f505(0x145))/0xa+parseInt(_0x14f505(0x148))/0xb*(-parseInt(_0x14f505(0x13d))/0xc);if(_0x5bc6d7===_0x5fa20c)break;else _0x45eac7['push'](_0x45eac7['shift']());}catch(_0x1c4802){_0x45eac7['push'](_0x45eac7['shift']());}}}(a57_0x369f,0x61c81));function a57_0x369f(){const _0x37cd66=['App\x20Code\x20cannot\x20exceed\x20100\x20characters','6796lvntYG','446968DSYJmr','3370956JtjLjm','5516672NvtnUL','30VkslhQ','116425jbtljb','345589gmoxwi','63XZvJsK','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','2CvUeIE','6580410gnxtbl','test','trim','44HfaYVA','1233uzRLNy'];a57_0x369f=function(){return _0x37cd66;};return a57_0x369f();}export function validateAppcode(_0x25bdba){const _0x1f4609=a57_0x4b09,_0xdf3871=_0x25bdba[_0x1f4609(0x147)]();if(!_0xdf3871)return{'valid':![],'message':'App\x20Code\x20cannot\x20be\x20empty'};if(_0xdf3871['length']>0x64)return{'valid':![],'message':_0x1f4609(0x14a)};if(!/^[A-Za-z0-9_-]+$/[_0x1f4609(0x146)](_0xdf3871))return{'valid':![],'message':_0x1f4609(0x143)};return{'valid':!![]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a58_0x7f59(_0xeee69e,_0x1531d5){_0xeee69e=_0xeee69e-0x139;const _0x1e15d5=a58_0x1e15();let _0x7f5901=_0x1e15d5[_0xeee69e];return _0x7f5901;}const a58_0x32a331=a58_0x7f59;(function(_0xc63909,_0x2aa396){const _0x5b926a=a58_0x7f59,_0x3bc647=_0xc63909();while(!![]){try{const _0x1f6806=parseInt(_0x5b926a(0x159))/0x1+parseInt(_0x5b926a(0x157))/0x2+-parseInt(_0x5b926a(0x154))/0x3+-parseInt(_0x5b926a(0x143))/0x4*(parseInt(_0x5b926a(0x153))/0x5)+parseInt(_0x5b926a(0x15a))/0x6*(-parseInt(_0x5b926a(0x146))/0x7)+-parseInt(_0x5b926a(0x14e))/0x8+-parseInt(_0x5b926a(0x152))/0x9*(-parseInt(_0x5b926a(0x147))/0xa);if(_0x1f6806===_0x2aa396)break;else _0x3bc647['push'](_0x3bc647['shift']());}catch(_0x5fa31b){_0x3bc647['push'](_0x3bc647['shift']());}}}(a58_0x1e15,0x4e86a));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,isTopLevelConfigKey,readScopedConfig,resolveWriteScope,writeScopedConfig}from'../../commands/config/shared.js';const LEGACY_DELETABLE_KEYS=new Set([a58_0x32a331(0x155)]),EXTRA_DELETABLE_KEYS=new Set(['defaultApp',a58_0x32a331(0x13e)]);async function execute(_0xcf2df3){const _0x5cb1e3=a58_0x32a331,_0x3ae35b=_0xcf2df3[_0x5cb1e3(0x14b)][0x0]?.[_0x5cb1e3(0x13a)]();if(!_0x3ae35b)throw CliErrors[_0x5cb1e3(0x14d)](_0x5cb1e3(0x158),_0x5cb1e3(0x144)+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');if(_0x3ae35b==='riskLevel')throw CliErrors[_0x5cb1e3(0x14d)]('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(!isTopLevelConfigKey(_0x3ae35b)&&!EXTRA_DELETABLE_KEYS[_0x5cb1e3(0x13b)](_0x3ae35b)&&!LEGACY_DELETABLE_KEYS[_0x5cb1e3(0x13b)](_0x3ae35b))throw CliErrors[_0x5cb1e3(0x14d)]('Top-level\x20key\x20\x22'+_0x3ae35b+'\x22\x20is\x20not\x20deletable.',_0x5cb1e3(0x13d));const _0xdcda86=resolveWriteScope({'global':_0xcf2df3[_0x5cb1e3(0x150)](_0x5cb1e3(0x151))}),_0x27f986=readScopedConfig(_0xdcda86),_0x4a047c=Object[_0x5cb1e3(0x14c)][_0x5cb1e3(0x14f)][_0x5cb1e3(0x148)](_0x27f986,_0x3ae35b);_0x4a047c&&(delete _0x27f986[_0x3ae35b],writeScopedConfig(_0x27f986,_0xdcda86));const _0x519716=_0xdcda86==='global'?'Global':_0x5cb1e3(0x142);return{'ok':!![],'message':_0x4a047c?'✓\x20'+_0x519716+'\x20'+_0x3ae35b+_0x5cb1e3(0x14a):'✓\x20'+_0x519716+'\x20'+_0x3ae35b+_0x5cb1e3(0x140),'data':{'key':_0x3ae35b,'scope':_0xdcda86,'changed':_0x4a047c}};}export const configDeleteDefinition={'service':a58_0x32a331(0x13c),'command':a58_0x32a331(0x141),'description':a58_0x32a331(0x13f),'risk':a58_0x32a331(0x149),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a58_0x32a331(0x139),'description':a58_0x32a331(0x15b),'required':!![]}],'flags':[{'name':a58_0x32a331(0x151),'type':a58_0x32a331(0x145),'description':a58_0x32a331(0x156),'default':![]}],'execute':execute};function a58_0x1e15(){const _0x547f88=['key','trim','has','config','Use\x20workspace\x20commands\x20to\x20modify\x20apps\x20and\x20their\x20default\x20selection.','routing','Delete\x20a\x20config\x20value\x20from\x20one\x20scope','\x20already\x20absent','delete','Project','3164lClvSF','Usage:\x20','boolean','7zfHfaE','220GbPZzO','call','write','\x20deleted','args','prototype','validation','2162968GYsNrs','hasOwnProperty','bool','global','623862ikaloz','2825oQZAEC','1876389HcWyIE','inherit','Delete\x20from\x20global\x20config\x20(~/.rabetbase.json)','1247818poLlKQ','Missing\x20key\x20argument.','55383QHfFrW','3239382PKlHYf','Top-level\x20config\x20key;\x20legacy\x20inherit\x20is\x20accepted\x20for\x20migration'];a58_0x1e15=function(){return _0x547f88;};return a58_0x1e15();}
|