@lovrabet/rabetbase-cli 2.5.10-beta.4 → 2.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/design-context.js +1 -1
- package/lib/commands/dataset/design-start.js +1 -1
- package/lib/commands/dataset/design-status.js +1 -1
- package/lib/commands/dataset/design-sync-retry.js +1 -1
- package/lib/commands/dataset/design-sync-status.js +1 -1
- package/lib/commands/dataset/design-validate.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/cross-db-analysis-shared.js +1 -1
- package/lib/commands/db/cross-db-analyze-latest.js +1 -1
- package/lib/commands/db/cross-db-analyze-start.js +1 -1
- package/lib/commands/db/cross-db-analyze-status.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/page-list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/context.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-analysis.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/instant-api-policy/endpoints.js +1 -1
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-design/checkpoint.js +1 -1
- package/lib/services/dataset-design/commands.js +1 -1
- package/lib/services/dataset-design/contract.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +4 -4
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
package/lib/commands/bff/push.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a44_0x9ef2f9=a44_0x168c;(function(_0x2f9e3b,_0x459e85){const _0x2320c6=a44_0x168c,_0xf9de7=_0x2f9e3b();while(!![]){try{const _0x2489f5=-parseInt(_0x2320c6(0xe0))/0x1*(parseInt(_0x2320c6(0x11c))/0x2)+parseInt(_0x2320c6(0xca))/0x3+parseInt(_0x2320c6(0xfd))/0x4+-parseInt(_0x2320c6(0xff))/0x5*(parseInt(_0x2320c6(0xd5))/0x6)+-parseInt(_0x2320c6(0x112))/0x7+-parseInt(_0x2320c6(0xcd))/0x8+parseInt(_0x2320c6(0xef))/0x9;if(_0x2489f5===_0x459e85)break;else _0xf9de7['push'](_0xf9de7['shift']());}catch(_0x2ad073){_0xf9de7['push'](_0xf9de7['shift']());}}}(a44_0x5c97,0xe44e7));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_0x9ef2f9(0xe2),'command':a44_0x9ef2f9(0xd4),'description':'Push\x20local\x20Backend\x20Function\x20scripts\x20to\x20remote','risk':a44_0x9ef2f9(0x104),'structuredErrors':!![],'flags':[{'name':a44_0x9ef2f9(0xc0),'type':'string','description':a44_0x9ef2f9(0xd0),'enum':[a44_0x9ef2f9(0xd8),'ENDPOINT',a44_0x9ef2f9(0x101)]},{'name':a44_0x9ef2f9(0xc2),'type':a44_0x9ef2f9(0x103),'description':a44_0x9ef2f9(0xdf)},{'name':a44_0x9ef2f9(0xb9),'type':'boolean','description':a44_0x9ef2f9(0xe9)}],async 'dryRun'(_0x1fc4be){const _0x3ef70a=a44_0x9ef2f9,_0x2008fd=loadBffProjectConfig(_0x1fc4be['appCode']),_0x557db6=await readBffLockFile(_0x2008fd['lockFilePath']),{appLock:_0x193ce1}=ensureLockScope(_0x557db6??createEmptyBffLock(),_0x1fc4be[_0x3ef70a(0xfc)],_0x2008fd[_0x3ef70a(0xc4)],_0x3ef70a(0xd4)),_0x23911d=await getTargetFunctions(_0x2008fd,_0x1fc4be),_0x21ef72=_0x23911d[_0x3ef70a(0xe7)](_0x498432=>_0x498432['type']===_0x3ef70a(0x101))?await scanLocalBffFunctions(_0x2008fd,_0x3ef70a(0x101)):_0x23911d,_0x4aac5e=await buildHookMaps(_0x1fc4be[_0x3ef70a(0xfc)],_0x1fc4be[_0x3ef70a(0xf5)],_0x21ef72,_0x193ce1,_0x1fc4be[_0x3ef70a(0x114)]||_0x1fc4be[_0x3ef70a(0x121)]?.['currentApp']||_0x1fc4be[_0x3ef70a(0x121)]?.[_0x3ef70a(0x106)]),_0x9d6316=_0x1fc4be[_0x3ef70a(0xf4)](_0x3ef70a(0xb9)),_0x2a1cb0=[];for(const _0x4f986a of _0x23911d){const _0x11a1e1=await computeFileHash(_0x4f986a[_0x3ef70a(0xf7)]),_0x5d8146=_0x193ce1[_0x3ef70a(0x124)][_0x4f986a['lockKey']],_0x1b60e5=!!_0x5d8146&&_0x5d8146[_0x3ef70a(0xcf)]===_0x11a1e1,_0x4db636=_0x4aac5e[_0x3ef70a(0x108)][_0x3ef70a(0xc5)](_0x4f986a[_0x3ef70a(0xfe)]),_0x3b30ac=!!_0x5d8146?.['remoteId']&&_0x5d8146[_0x3ef70a(0xf2)]==null&&(_0x9d6316||!_0x1b60e5),_0x2bf0b3=_0x3b30ac?missingRemoteVersionConflict(_0x4f986a,_0x5d8146):undefined,_0xa44df3=_0x4aac5e[_0x3ef70a(0x125)][_0x3ef70a(0x119)](_0x4f986a[_0x3ef70a(0xfe)])?_0x3ef70a(0x10d):!_0x9d6316&&_0x1b60e5?'unchanged':_0x2bf0b3?_0x3ef70a(0x120):_0x3ef70a(0x107);_0x2a1cb0[_0x3ef70a(0xd4)]({'lockKey':_0x4f986a[_0x3ef70a(0xfe)],'filePath':_0x4f986a[_0x3ef70a(0xf7)],'remoteId':_0x5d8146?.['remoteId']??null,'mode':_0x5d8146?.[_0x3ef70a(0x10c)]?'update':'create','status':_0xa44df3,..._0x4aac5e['failures']['has'](_0x4f986a[_0x3ef70a(0xfe)])?{'error':_0x4aac5e['failures'][_0x3ef70a(0xc5)](_0x4f986a['lockKey'])}:{},..._0x2bf0b3?{'conflict':_0x2bf0b3}:{},..._0x4aac5e[_0x3ef70a(0xbf)][_0x3ef70a(0x119)](_0x4f986a[_0x3ef70a(0xfe)])?{'datasetCode':_0x5d8146?.[_0x3ef70a(0xd1)],'bindingPreserved':!![],'warnings':[existingHookWarning(_0x4f986a[_0x3ef70a(0xfe)])]}:{},..._0x4db636?{'alias':_0x4db636[_0x3ef70a(0xc3)]??null,'datasetCode':_0x4db636['datasetCode'],'operationType':_0x4f986a[_0x3ef70a(0x11e)],'functionNode':_0x4f986a[_0x3ef70a(0xe8)],'warnings':_0x4db636['warnings']}:{}});}return{'method':_0x3ef70a(0x111),'url':_0x3ef70a(0x10f),'body':{'appCode':_0x1fc4be[_0x3ef70a(0xfc)],'force':_0x9d6316,'files':_0x2a1cb0,'cacheClearAtRuntime':_0x2a1cb0['some'](_0x233fb1=>_0x233fb1[_0x3ef70a(0xed)]===_0x3ef70a(0x107)),'cacheClearAtRuntimeTimes':_0x2a1cb0[_0x3ef70a(0xe7)](_0x47ba98=>_0x47ba98[_0x3ef70a(0xed)]===_0x3ef70a(0x107))?CACHE_CLEAR_ATTEMPTS:0x0},'description':_0x3ef70a(0xf3)+_0x2a1cb0[_0x3ef70a(0xba)]+'\x20local\x20Backend\x20Function\x20script(s)\x20for\x20push\x20and\x20clear\x20runtime\x20cache\x20if\x20files\x20are\x20uploaded'};},async 'execute'(_0x535fed){const _0x4716d9=a44_0x9ef2f9,_0xebee8a=loadBffProjectConfig(_0x535fed[_0x4716d9(0xfc)]),_0x1c9167=await readBffLockFile(_0xebee8a[_0x4716d9(0xf6)]),{lockData:_0x462525,appLock:_0x2e8ba0}=ensureLockScope(_0x1c9167??createEmptyBffLock(),_0x535fed[_0x4716d9(0xfc)],_0xebee8a[_0x4716d9(0xc4)],_0x4716d9(0xd4)),_0x2c9177=await getTargetFunctions(_0xebee8a,_0x535fed);if(_0x2c9177[_0x4716d9(0xba)]===0x0)return{'ok':!![],'data':{'uploaded':[],'skipped':[],'conflicts':[],'failed':[]},'message':_0x4716d9(0xea)};const _0x2b7d75=_0x535fed[_0x4716d9(0xf4)](_0x4716d9(0xb9)),_0xcee7e5=JSON[_0x4716d9(0x122)](JSON[_0x4716d9(0xec)](_0x462525)),_0x6e6959=_0xcee7e5['apps'][_0x535fed['appCode']];if(!_0x6e6959)throw new Error(_0x4716d9(0xbe)+_0x535fed[_0x4716d9(0xfc)]+_0x4716d9(0x113));const _0x3c22c0=_0x2c9177[_0x4716d9(0xe7)](_0x3fcac8=>_0x3fcac8[_0x4716d9(0xc0)]===_0x4716d9(0x101))?await scanLocalBffFunctions(_0xebee8a,'HOOK'):_0x2c9177,_0x242639=await buildHookMaps(_0x535fed[_0x4716d9(0xfc)],_0x535fed[_0x4716d9(0xf5)],_0x3c22c0,_0x6e6959,_0x535fed[_0x4716d9(0x114)]||_0x535fed[_0x4716d9(0x121)]?.[_0x4716d9(0xf1)]||_0x535fed[_0x4716d9(0x121)]?.[_0x4716d9(0x106)]),_0x28d07c=[],_0x23d3e2=[],_0x36e0e0=[],_0x200cc7=[];for(const _0x44cdc2 of _0x2c9177){const _0x38b64b=_0x242639[_0x4716d9(0x125)][_0x4716d9(0xc5)](_0x44cdc2[_0x4716d9(0xfe)]);if(_0x38b64b){_0x200cc7['push']({'lockKey':_0x44cdc2['lockKey'],'error':_0x38b64b});continue;}const _0x3ef8fa=await computeFileHash(_0x44cdc2[_0x4716d9(0xf7)]),_0x510ab6=_0x6e6959['functions'][_0x44cdc2[_0x4716d9(0xfe)]];if(!_0x2b7d75&&_0x510ab6&&_0x510ab6[_0x4716d9(0xcf)]===_0x3ef8fa){_0x23d3e2[_0x4716d9(0xd4)]({'lockKey':_0x44cdc2[_0x4716d9(0xfe)],'reason':_0x4716d9(0xb7)});continue;}if(_0x510ab6?.['remoteId']&&_0x510ab6[_0x4716d9(0xf2)]==null){_0x36e0e0[_0x4716d9(0xd4)](missingRemoteVersionConflict(_0x44cdc2,_0x510ab6));continue;}try{await uploadSingleFunction(_0x535fed[_0x4716d9(0xfc)],_0x44cdc2,_0x6e6959,_0x242639);const _0x10ffaf=_0x6e6959['functions'][_0x44cdc2[_0x4716d9(0xfe)]];_0x28d07c[_0x4716d9(0xd4)]({'lockKey':_0x44cdc2['lockKey'],'remoteId':_0x10ffaf?.[_0x4716d9(0x10c)]??0x0});}catch(_0x18764a){const _0x2f3e43=remoteVersionChangedConflict(_0x44cdc2,_0x510ab6,_0x18764a);if(_0x2f3e43){_0x36e0e0[_0x4716d9(0xd4)](_0x2f3e43);continue;}_0x200cc7[_0x4716d9(0xd4)]({'lockKey':_0x44cdc2[_0x4716d9(0xfe)],'error':_0x18764a instanceof Error?_0x18764a[_0x4716d9(0xfb)]:String(_0x18764a)});}}_0x6e6959['lastSync']=new Date()[_0x4716d9(0xcb)](),await writeBffLockFile(_0xebee8a[_0x4716d9(0xf6)],_0xcee7e5),await waitForUploadedLockEntries(_0xebee8a[_0x4716d9(0xf6)],_0x535fed[_0x4716d9(0xfc)],_0x28d07c[_0x4716d9(0x11f)](_0x564340=>_0x564340[_0x4716d9(0xfe)]));let _0x189305={'attempted':![],'cleared':![]};if(_0x28d07c[_0x4716d9(0xba)]>0x0)try{let _0x2b0fea='';for(let _0x11b3a3=0x0;_0x11b3a3<CACHE_CLEAR_ATTEMPTS;_0x11b3a3+=0x1){_0x2b0fea=await clearBffScriptCache(),_0x11b3a3<CACHE_CLEAR_ATTEMPTS-0x1&&await sleep(CACHE_CLEAR_INTERVAL_MS);}_0x189305={'attempted':!![],'cleared':!![],'message':_0x2b0fea||_0x4716d9(0xf8)};}catch(_0x52802b){_0x189305={'attempted':!![],'cleared':![],'error':_0x52802b instanceof Error?_0x52802b[_0x4716d9(0xfb)]:String(_0x52802b)};}const _0x26a2ac=_0x200cc7[_0x4716d9(0xba)]===0x0&&(_0x189305['attempted']?_0x189305[_0x4716d9(0xd9)]:!![]),_0x1e8b7e=_0x26a2ac,_0x160e05=_0x189305['attempted']?_0x189305[_0x4716d9(0xd9)]?_0x4716d9(0x117):_0x4716d9(0xe5):_0x4716d9(0x11d);return{'ok':_0x1e8b7e,'data':{'uploaded':_0x28d07c,'skipped':_0x23d3e2,'conflicts':_0x36e0e0,'failed':_0x200cc7,'cacheClear':_0x189305,'warnings':[...[..._0x242639[_0x4716d9(0x108)][_0x4716d9(0x118)]()][_0x4716d9(0x102)](_0xacf0a4=>_0xacf0a4[_0x4716d9(0xf0)]),...[..._0x242639[_0x4716d9(0xbf)]][_0x4716d9(0x11f)](existingHookWarning)]},'message':formatPushMessage(_0x28d07c[_0x4716d9(0xba)],_0x23d3e2['length'],_0x36e0e0[_0x4716d9(0xba)],_0x200cc7[_0x4716d9(0xba)],_0x160e05)};}};function missingRemoteVersionConflict(_0x1beb7c,_0x3d29c2){const _0x35142c=a44_0x9ef2f9;return remoteVersionConflict(_0x1beb7c,_0x3d29c2,_0x35142c(0xc6),_0x35142c(0x110));}function remoteVersionChangedConflict(_0x567ad5,_0x5b3e90,_0x38ed28){const _0x6330c=a44_0x9ef2f9;if(!_0x5b3e90?.[_0x6330c(0x10c)]||_0x5b3e90['version']==null||!isRemoteVersionConflict(_0x38ed28))return undefined;return remoteVersionConflict(_0x567ad5,_0x5b3e90,_0x6330c(0xbc),_0x6330c(0xe4));}function remoteVersionConflict(_0x23daf3,_0xa88b6f,_0x288a66,_0x5cf315){const _0x584fa5=a44_0x9ef2f9;return{'code':_0x288a66,'lockKey':_0x23daf3[_0x584fa5(0xfe)],'filePath':_0x23daf3[_0x584fa5(0xf7)],'remoteId':_0xa88b6f[_0x584fa5(0x10c)],..._0xa88b6f[_0x584fa5(0xf2)]!=null?{'expectedVersion':_0xa88b6f[_0x584fa5(0xf2)]}:{},'message':_0x5cf315,'nextAction':{'action':_0x584fa5(0xd2),'command':CLI_BIN_NAME+'\x20bff\x20detail\x20--id\x20'+_0xa88b6f[_0x584fa5(0x10c)]+'\x20--format\x20compress','requiresReview':!![],'message':_0x584fa5(0xd7)}};}function isRemoteVersionConflict(_0x505130){const _0x3dba38=a44_0x9ef2f9,_0x18afd0=_0x505130 instanceof Error?_0x505130[_0x3dba38(0xfb)]:String(_0x505130),_0x5d9a5d=getPlatformErrorCode(_0x505130)??'';return[_0x18afd0,_0x5d9a5d][_0x3dba38(0xe7)](_0xef4140=>/(?: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[_0x3dba38(0xd3)](_0xef4140));}function a44_0x168c(_0x4f6079,_0x4f778d){_0x4f6079=_0x4f6079-0xb7;const _0x5c974e=a44_0x5c97();let _0x168c39=_0x5c974e[_0x4f6079];return _0x168c39;}function formatPushMessage(_0x1403e1,_0x383472,_0x90600d,_0x34d093,_0x5aaff1){const _0x1ee06b=a44_0x9ef2f9,_0x3302=[_0x1ee06b(0xdb)+_0x1403e1+_0x1ee06b(0xe3),_0x383472+_0x1ee06b(0xcc)];_0x90600d>0x0&&_0x3302[_0x1ee06b(0xd4)](_0x90600d+_0x1ee06b(0xc9)+(_0x90600d===0x1?'':'s')+'\x20'+(_0x90600d===0x1?_0x1ee06b(0xf9):_0x1ee06b(0xfa))+_0x1ee06b(0x11b));if(_0x34d093>0x0)_0x3302[_0x1ee06b(0xd4)](_0x34d093+_0x1ee06b(0xde));return _0x3302[_0x1ee06b(0xd4)](_0x5aaff1),_0x3302['join'](',\x20');}async function getTargetFunctions(_0x27262a,_0x3ef46a){const _0x25cd42=a44_0x9ef2f9,_0x2ca9e4=_0x3ef46a['str'](_0x25cd42(0xc0)),_0x5f0939=_0x3ef46a[_0x25cd42(0xc8)](_0x25cd42(0xc2)),_0x531485=normalizeBffType(_0x2ca9e4)??undefined;if(_0x5f0939&&!_0x531485)throw CliErrors[_0x25cd42(0x115)](_0x25cd42(0x116));const _0x418a6b=await scanLocalBffFunctions(_0x27262a,_0x531485);if(_0x5f0939){const _0x2f55fa=_0x418a6b[_0x25cd42(0xd6)](_0x571a5b=>_0x571a5b[_0x25cd42(0xc2)]===_0x5f0939);if(_0x2f55fa['length']===0x0)throw CliErrors['validation'](_0x25cd42(0xdd)+_0x531485+'/'+_0x5f0939);return _0x2f55fa;}return _0x418a6b;}function existingHookWarning(_0x1c709c){const _0x3d6670=a44_0x9ef2f9;return{'code':_0x3d6670(0xe6),'lockKey':_0x1c709c,'message':_0x3d6670(0x123)};}async function buildHookMaps(_0x303248,_0x2c7545,_0x2b8ffc,_0x269365,_0x2fb701){const _0x3ef7f6=a44_0x9ef2f9,_0x57ccb8=_0x2b8ffc['some'](_0x1d54b5=>_0x1d54b5[_0x3ef7f6(0xc0)]==='HOOK');if(!_0x57ccb8)return{'resolutions':new Map(),'failures':new Map(),'existingHooks':new Set()};const _0x49a16b=resolveApiModelSource(_0x2c7545,_0x303248,_0x2fb701),_0x13a3b4=loadAliasMap(_0x2c7545,undefined,_0x49a16b[_0x3ef7f6(0xf7)],_0x49a16b['profileName']);assertUnambiguousHookAliases(_0x13a3b4);const _0x4e259b=[..._0x13a3b4[_0x3ef7f6(0x11f)](_0x27eb7f=>[_0x27eb7f[_0x3ef7f6(0xc3)],_0x27eb7f[_0x3ef7f6(0xd1)]]),...trackedHookDirectoryMappings(_0x269365)[_0x3ef7f6(0x11f)](_0x22b786=>[_0x22b786[_0x3ef7f6(0xc3)],_0x22b786[_0x3ef7f6(0xd1)]])],_0x55fea9=await listDatasets(_0x303248);assertUnambiguousHookDirectoryMappings(_0x4e259b[_0x3ef7f6(0x11f)](([_0x2712b2,_0x2e7948])=>({'alias':_0x2712b2,'datasetCode':_0x2e7948})));const _0x1dc7ad=buildHookDirectoryIndexes(_0x55fea9,_0x4e259b),_0x37e8a1=new Map(),_0x47f401=preflightPushHookDirectories(_0x2b8ffc,_0x269365,_0x1dc7ad,_0x37e8a1),_0x468647=new Set(),_0x392784=_0x2b8ffc[_0x3ef7f6(0xd6)](_0x3056f6=>_0x37e8a1[_0x3ef7f6(0xc5)](_0x3056f6['lockKey'])?.[_0x3ef7f6(0xeb)](_0x3ef7f6(0xbd))&&_0x269365[_0x3ef7f6(0x124)][_0x3056f6[_0x3ef7f6(0xfe)]]?.[_0x3ef7f6(0x10c)]&&_0x269365['functions'][_0x3056f6[_0x3ef7f6(0xfe)]]?.['datasetCode']);if(_0x392784['length']>0x0){let _0x1b4996;try{_0x1b4996=await getBffScriptStatistics(_0x303248);}catch(_0x3b1b89){for(const _0x55e865 of _0x392784)_0x37e8a1[_0x3ef7f6(0xe1)](_0x55e865[_0x3ef7f6(0xfe)],_0x3ef7f6(0x105)+(_0x3b1b89 instanceof Error?_0x3b1b89[_0x3ef7f6(0xfb)]:String(_0x3b1b89)));return{'resolutions':_0x47f401,'failures':_0x37e8a1,'existingHooks':_0x468647};}for(const _0x4175b4 of _0x392784){const _0x5249f9=_0x269365[_0x3ef7f6(0x124)][_0x4175b4[_0x3ef7f6(0xfe)]];try{const _0x3c464e=new Set(_0x2b8ffc[_0x3ef7f6(0xd6)](_0x4fc480=>_0x4fc480[_0x3ef7f6(0xc0)]===_0x3ef7f6(0x101)&&_0x269365[_0x3ef7f6(0x124)][_0x4fc480['lockKey']]?.[_0x3ef7f6(0xd1)]===_0x5249f9['datasetCode'])[_0x3ef7f6(0x11f)](_0x190109=>_0x190109[_0x3ef7f6(0xc3)]));if(_0x3c464e[_0x3ef7f6(0xc7)]>0x1)throw CliErrors['validation'](_0x3ef7f6(0xda));const _0x52f22f=_0x1b4996[_0x3ef7f6(0x102)](_0x7de1f6=>[{'datasetCode':_0x7de1f6['datasetCode'],'operationType':snakeToCamel(_0x7de1f6[_0x3ef7f6(0x11e)]),'functionNode':'before','id':_0x7de1f6['beforeScriptId']},{'datasetCode':_0x7de1f6[_0x3ef7f6(0xd1)],'operationType':snakeToCamel(_0x7de1f6[_0x3ef7f6(0x11e)]),'functionNode':_0x3ef7f6(0xbb),'id':_0x7de1f6[_0x3ef7f6(0xb8)]}])[_0x3ef7f6(0xd6)](_0x9d6a08=>_0x9d6a08['id']===_0x5249f9[_0x3ef7f6(0x10c)]),_0x4c2e91=await getBffScriptInfo(_0x5249f9[_0x3ef7f6(0x10c)]);if(_0x4c2e91['id']!==_0x5249f9['remoteId']||_0x4c2e91[_0x3ef7f6(0xfc)]!==_0x303248||_0x4c2e91['scriptType']!==_0x3ef7f6(0x101)||_0x4c2e91['functionName']!==_0x4175b4[_0x3ef7f6(0xc2)]||_0x5249f9[_0x3ef7f6(0xf2)]==null||_0x4c2e91[_0x3ef7f6(0xf2)]!==_0x5249f9[_0x3ef7f6(0xf2)]||_0x52f22f['length']!==0x1||_0x52f22f[0x0][_0x3ef7f6(0xd1)]!==_0x5249f9[_0x3ef7f6(0xd1)]||_0x52f22f[0x0][_0x3ef7f6(0x11e)]!==_0x4175b4[_0x3ef7f6(0x11e)]||_0x52f22f[0x0]['functionNode']!==_0x4175b4['functionNode']||_0x5249f9[_0x3ef7f6(0x11e)]!==_0x4175b4[_0x3ef7f6(0x11e)]||_0x5249f9[_0x3ef7f6(0xe8)]!==_0x4175b4[_0x3ef7f6(0xe8)])throw CliErrors[_0x3ef7f6(0x115)](_0x3ef7f6(0x10b));_0x468647[_0x3ef7f6(0x100)](_0x4175b4['lockKey']),_0x37e8a1[_0x3ef7f6(0xdc)](_0x4175b4['lockKey']);}catch(_0x320205){_0x37e8a1[_0x3ef7f6(0xe1)](_0x4175b4['lockKey'],_0x320205 instanceof Error?_0x320205[_0x3ef7f6(0xfb)]:String(_0x320205));}}}return{'resolutions':_0x47f401,'failures':_0x37e8a1,'existingHooks':_0x468647};}function a44_0x5c97(){const _0x44d9ee=['review_remote_and_merge','test','push','366jlQUOg','filter','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.','COMMON','cleared','Multiple\x20HOOK\x20directories\x20reference\x20the\x20same\x20missing\x20Dataset.\x20Resolve\x20duplicate\x20directories\x20before\x20pushing.','Push\x20complete:\x20','delete','Local\x20function\x20not\x20found:\x20','\x20failed','Push\x20only\x20the\x20named\x20function\x20(requires\x20--type)','9WsRZOV','set','bff','\x20uploaded','Remote\x20script\x20version\x20changed\x20since\x20the\x20last\x20pull.','runtime\x20cache\x20clear\x20failed','EXISTING_HOOK_BINDING_PRESERVED','some','functionNode','Force\x20push\x20ignoring\x20hash\x20protection','No\x20local\x20Backend\x20Function\x20scripts\x20found.','startsWith','stringify','status','apps','41128254zhOpte','warnings','currentApp','version','Would\x20inspect\x20','bool','apiDir','lockFilePath','filePath','Runtime\x20script\x20cache\x20cleared.','requires','require','message','appCode','7151004WKJMba','lockKey','90580uNwczd','add','HOOK','flatMap','string','write','Cannot\x20verify\x20existing\x20HOOK\x20binding:\x20','defaultApp','would_push','resolutions','utf8','every','Existing\x20HOOK\x20identity,\x20version\x20or\x20binding\x20does\x20not\x20match\x20the\x20local\x20lock.\x20Pull\x20and\x20review\x20before\x20pushing.','remoteId','failed','Incomplete\x20HOOK\x20path:\x20','/api/management/library/scripts/save','The\x20local\x20sync\x20lock\x20has\x20no\x20remote\x20version\x20for\x20this\x20script.','POST','9919322IaLDRo','\x22\x20not\x20found\x20after\x20ensureLockScope.','selectedAppName','validation','--name\x20requires\x20--type\x20to\x20identify\x20the\x20function.','runtime\x20cache\x20cleared','values','has','Lock\x20file\x20not\x20settled\x20after\x20push\x20for\x20','\x20resolution','378306ZrMglA','runtime\x20cache\x20not\x20needed','operationType','map','conflict','mergedCli','parse','Dataset\x20metadata\x20is\x20unavailable;\x20the\x20existing\x20script\x20and\x20binding\x20were\x20verified.\x20Update\x20by\x20script\x20ID\x20without\x20rebinding.','functions','failures','join','unchanged','afterScriptId','force','length','after','BFF_REMOTE_VERSION_CHANGED','HOOK_DATASET_NOT_FOUND:','Lock\x20scope\x20for\x20app\x20\x22','existingHooks','type','description','name','alias','scriptsRoot','get','BFF_REMOTE_VERSION_MISSING','size','str','\x20conflict','3849bjxTWr','toISOString','\x20skipped','9593584iPbMWt','script','hash','Push\x20only\x20this\x20script\x20type','datasetCode'];a44_0x5c97=function(){return _0x44d9ee;};return a44_0x5c97();}async function uploadSingleFunction(_0x283620,_0x3f8604,_0x2bc515,_0x434adc){const _0x4d25b4=a44_0x9ef2f9,_0x54296c=await readFile(_0x3f8604[_0x4d25b4(0xf7)],_0x4d25b4(0x109)),_0x43075=await computeFileHash(_0x3f8604['filePath']),_0x15cb36=_0x2bc515[_0x4d25b4(0x124)][_0x3f8604[_0x4d25b4(0xfe)]];if(_0x15cb36?.[_0x4d25b4(0x10c)]&&_0x15cb36['version']==null)throw CliErrors[_0x4d25b4(0x115)](_0x3f8604['lockKey']+':\x20missing\x20remote\x20version.\x20Run\x20`push`\x20after\x20`pull`\x20to\x20sync\x20version\x20info.');let _0x254de2=extractScriptDescription(_0x54296c);if(!_0x254de2&&_0x15cb36?.[_0x4d25b4(0x10c)]){const _0xc90635=await getBffScriptInfo(_0x15cb36['remoteId']);_0x254de2=_0xc90635[_0x4d25b4(0xc1)]||undefined;}const _0x99475e={'appCode':_0x283620,'functionName':_0x3f8604['name'],'scriptType':_0x3f8604['type'],'scriptContent':_0x54296c};if(_0x15cb36?.[_0x4d25b4(0x10c)])_0x99475e['id']=_0x15cb36[_0x4d25b4(0x10c)];if(_0x15cb36?.['version']!=null)_0x99475e['version']=_0x15cb36[_0x4d25b4(0xf2)];if(_0x254de2)_0x99475e[_0x4d25b4(0xc1)]=_0x254de2;if(_0x3f8604['type']===_0x4d25b4(0x101)){const _0x3a997c=_0x434adc[_0x4d25b4(0x108)][_0x4d25b4(0xc5)](_0x3f8604[_0x4d25b4(0xfe)]);if(!_0x3a997c&&!_0x434adc['existingHooks'][_0x4d25b4(0x119)](_0x3f8604[_0x4d25b4(0xfe)])||!_0x3f8604[_0x4d25b4(0x11e)]||!_0x3f8604[_0x4d25b4(0xe8)])throw CliErrors[_0x4d25b4(0x115)](_0x4d25b4(0x10e)+_0x3f8604['lockKey']);_0x3a997c&&(_0x99475e['datasetId']=_0x3a997c['dataset']['id'],_0x99475e[_0x4d25b4(0x11e)]=_0x3f8604[_0x4d25b4(0x11e)]),_0x99475e[_0x4d25b4(0xe8)]=_0x3f8604[_0x4d25b4(0xe8)];}const _0x1982e0=await saveBffScript(_0x99475e),_0x3f2775=_0x1982e0['id'],_0x1032e3=_0x1982e0[_0x4d25b4(0xce)]??await getBffScriptInfo(_0x3f2775),_0x56e440={'hash':_0x43075,'remoteId':_0x3f2775,'version':_0x1032e3[_0x4d25b4(0xf2)]};if(_0x3f8604[_0x4d25b4(0xc0)]===_0x4d25b4(0x101)){const _0x3ec12f=_0x434adc[_0x4d25b4(0x108)][_0x4d25b4(0xc5)](_0x3f8604[_0x4d25b4(0xfe)]);if(!_0x3ec12f){_0x2bc515[_0x4d25b4(0x124)][_0x3f8604['lockKey']]={..._0x15cb36,..._0x56e440};return;}_0x56e440[_0x4d25b4(0xc3)]=_0x3ec12f['alias']??_0x15cb36?.[_0x4d25b4(0xc3)],_0x56e440[_0x4d25b4(0xd1)]=_0x3ec12f[_0x4d25b4(0xd1)],_0x56e440[_0x4d25b4(0x11e)]=_0x3f8604['operationType'],_0x56e440['functionNode']=_0x3f8604[_0x4d25b4(0xe8)];}_0x2bc515[_0x4d25b4(0x124)][_0x3f8604[_0x4d25b4(0xfe)]]=_0x56e440;}const LOCK_SETTLE_RETRY_COUNT=0x14,LOCK_SETTLE_DELAY_MS=0x64;async function waitForUploadedLockEntries(_0x97c2dd,_0x7cabfd,_0xded262){const _0x1f4469=a44_0x9ef2f9;if(_0xded262[_0x1f4469(0xba)]===0x0)return;for(let _0x261ef2=0x0;_0x261ef2<LOCK_SETTLE_RETRY_COUNT;_0x261ef2+=0x1){const _0xbd17e9=await readBffLockFile(_0x97c2dd),_0xf64f40=_0xbd17e9?.[_0x1f4469(0xee)]?.[_0x7cabfd]?.[_0x1f4469(0x124)]??{},_0x2863c5=_0xded262[_0x1f4469(0x10a)](_0x2c1ea2=>!!_0xf64f40[_0x2c1ea2]?.[_0x1f4469(0x10c)]);if(_0x2863c5)return;await sleep(LOCK_SETTLE_DELAY_MS);}throw new Error(_0x1f4469(0x11a)+_0xded262[_0x1f4469(0x126)](',\x20')+'.');}
|
|
1
|
+
const a44_0x2e36ad=a44_0x2cd0;(function(_0x16252b,_0x54e1d9){const _0x1ad594=a44_0x2cd0,_0x3d6e8c=_0x16252b();while(!![]){try{const _0x489490=-parseInt(_0x1ad594(0x1c7))/0x1*(parseInt(_0x1ad594(0x1f9))/0x2)+-parseInt(_0x1ad594(0x1bc))/0x3+parseInt(_0x1ad594(0x1f4))/0x4+-parseInt(_0x1ad594(0x1ad))/0x5*(-parseInt(_0x1ad594(0x1c8))/0x6)+-parseInt(_0x1ad594(0x1a0))/0x7*(-parseInt(_0x1ad594(0x19f))/0x8)+-parseInt(_0x1ad594(0x1d9))/0x9*(parseInt(_0x1ad594(0x1b7))/0xa)+parseInt(_0x1ad594(0x1c0))/0xb*(parseInt(_0x1ad594(0x1e7))/0xc);if(_0x489490===_0x54e1d9)break;else _0x3d6e8c['push'](_0x3d6e8c['shift']());}catch(_0x223b33){_0x3d6e8c['push'](_0x3d6e8c['shift']());}}}(a44_0x3f2e,0xeff1f));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';function a44_0x2cd0(_0x311232,_0x552ce4){_0x311232=_0x311232-0x194;const _0x3f2ea9=a44_0x3f2e();let _0x2cd016=_0x3f2ea9[_0x311232];return _0x2cd016;}import{createEmptyBffLock,ensureLockScope,readBffLockFile,writeBffLockFile}from'../../core/bff/lock.js';function a44_0x3f2e(){const _0x5df1c7=['before','remoteId','defaultApp','Runtime\x20script\x20cache\x20cleared.','Remote\x20script\x20version\x20changed\x20since\x20the\x20last\x20pull.','bff','\x20conflict','has','Dataset\x20metadata\x20is\x20unavailable;\x20the\x20existing\x20script\x20and\x20binding\x20were\x20verified.\x20Update\x20by\x20script\x20ID\x20without\x20rebinding.','apps','lockKey','review_remote_and_merge','/api/management/library/scripts/save','status','Lock\x20file\x20not\x20settled\x20after\x20push\x20for\x20','--name\x20requires\x20--type\x20to\x20identify\x20the\x20function.','10905472YuXbEn','7Sjsgqo','Cannot\x20verify\x20existing\x20HOOK\x20binding:\x20','bool','Existing\x20HOOK\x20identity,\x20version\x20or\x20binding\x20does\x20not\x20match\x20the\x20local\x20lock.\x20Pull\x20and\x20review\x20before\x20pushing.','scriptsRoot','flatMap','\x20skipped','Push\x20complete:\x20','runtime\x20cache\x20cleared','lastSync','set','mergedCli','datasetId','1485075TPfAoo','datasetCode','failures','functionName','description','filePath','filter','push','\x20failed','apiDir','10wjWyhi','version','POST','name','message','4804830tabqbl','unchanged','write','hash','1078ONLSbp','currentApp','length','The\x20local\x20sync\x20lock\x20has\x20no\x20remote\x20version\x20for\x20this\x20script.','resolutions','conflict','Push\x20only\x20the\x20named\x20function\x20(requires\x20--type)','610541tReVfI','24todIJX','requires','every','toISOString','join','some','cleared','get','existingHooks','update','operationType','HOOK','values','\x20local\x20Backend\x20Function\x20script(s)\x20for\x20push\x20and\x20clear\x20runtime\x20cache\x20if\x20files\x20are\x20uploaded','string','Local\x20function\x20not\x20found:\x20','parse','13329135xZMcMF','would_push','\x20resolution','add','map','functionNode','BFF_REMOTE_VERSION_CHANGED','runtime\x20cache\x20not\x20needed','stringify','str','scriptType','\x20bff\x20detail\x20--id\x20','type','functions','267420jycBsM','require','profileName','\x22\x20not\x20found\x20after\x20ensureLockScope.','after','dataset','alias','Incomplete\x20HOOK\x20path:\x20','lockFilePath','Push\x20local\x20Backend\x20Function\x20scripts\x20to\x20remote','Push\x20only\x20this\x20script\x20type','selectedAppName','force','2205392Cxxqma','BFF_REMOTE_VERSION_MISSING','EXISTING_HOOK_BINDING_PRESERVED','ENDPOINT','appCode','4FJmiRw','attempted','warnings','test','beforeScriptId','delete','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.','validation','Would\x20inspect\x20','boolean'];a44_0x3f2e=function(){return _0x5df1c7;};return a44_0x3f2e();}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_0x2e36ad(0x194),'command':a44_0x2e36ad(0x1b4),'description':a44_0x2e36ad(0x1f0),'risk':a44_0x2e36ad(0x1be),'structuredErrors':!![],'flags':[{'name':a44_0x2e36ad(0x1e5),'type':a44_0x2e36ad(0x1d6),'description':a44_0x2e36ad(0x1f1),'enum':['COMMON',a44_0x2e36ad(0x1f7),a44_0x2e36ad(0x1d3)]},{'name':a44_0x2e36ad(0x1ba),'type':'string','description':a44_0x2e36ad(0x1c6)},{'name':'force','type':a44_0x2e36ad(0x202),'description':'Force\x20push\x20ignoring\x20hash\x20protection'}],async 'dryRun'(_0x31ee57){const _0x27aff0=a44_0x2e36ad,_0xf7d8e8=loadBffProjectConfig(_0x31ee57[_0x27aff0(0x1f8)]),_0x43dcc4=await readBffLockFile(_0xf7d8e8[_0x27aff0(0x1ef)]),{appLock:_0x51ef34}=ensureLockScope(_0x43dcc4??createEmptyBffLock(),_0x31ee57[_0x27aff0(0x1f8)],_0xf7d8e8[_0x27aff0(0x1a4)],_0x27aff0(0x1b4)),_0x266599=await getTargetFunctions(_0xf7d8e8,_0x31ee57),_0x4f3a5d=_0x266599[_0x27aff0(0x1cd)](_0xd3e00e=>_0xd3e00e['type']===_0x27aff0(0x1d3))?await scanLocalBffFunctions(_0xf7d8e8,_0x27aff0(0x1d3)):_0x266599,_0x596425=await buildHookMaps(_0x31ee57[_0x27aff0(0x1f8)],_0x31ee57[_0x27aff0(0x1b6)],_0x4f3a5d,_0x51ef34,_0x31ee57[_0x27aff0(0x1f2)]||_0x31ee57[_0x27aff0(0x1ab)]?.['currentApp']||_0x31ee57[_0x27aff0(0x1ab)]?.[_0x27aff0(0x205)]),_0x4e18aa=_0x31ee57['bool'](_0x27aff0(0x1f3)),_0x276a13=[];for(const _0x17ac0a of _0x266599){const _0x23c7c3=await computeFileHash(_0x17ac0a[_0x27aff0(0x1b2)]),_0x4cbe1c=_0x51ef34[_0x27aff0(0x1e6)][_0x17ac0a['lockKey']],_0x4a2117=!!_0x4cbe1c&&_0x4cbe1c[_0x27aff0(0x1bf)]===_0x23c7c3,_0xf17e82=_0x596425['resolutions'][_0x27aff0(0x1cf)](_0x17ac0a[_0x27aff0(0x199)]),_0x4fb990=!!_0x4cbe1c?.[_0x27aff0(0x204)]&&_0x4cbe1c['version']==null&&(_0x4e18aa||!_0x4a2117),_0x508235=_0x4fb990?missingRemoteVersionConflict(_0x17ac0a,_0x4cbe1c):undefined,_0x169ae=_0x596425[_0x27aff0(0x1af)][_0x27aff0(0x196)](_0x17ac0a[_0x27aff0(0x199)])?'failed':!_0x4e18aa&&_0x4a2117?_0x27aff0(0x1bd):_0x508235?_0x27aff0(0x1c5):_0x27aff0(0x1da);_0x276a13[_0x27aff0(0x1b4)]({'lockKey':_0x17ac0a[_0x27aff0(0x199)],'filePath':_0x17ac0a[_0x27aff0(0x1b2)],'remoteId':_0x4cbe1c?.[_0x27aff0(0x204)]??null,'mode':_0x4cbe1c?.[_0x27aff0(0x204)]?_0x27aff0(0x1d1):'create','status':_0x169ae,..._0x596425[_0x27aff0(0x1af)][_0x27aff0(0x196)](_0x17ac0a[_0x27aff0(0x199)])?{'error':_0x596425[_0x27aff0(0x1af)]['get'](_0x17ac0a['lockKey'])}:{},..._0x508235?{'conflict':_0x508235}:{},..._0x596425[_0x27aff0(0x1d0)][_0x27aff0(0x196)](_0x17ac0a[_0x27aff0(0x199)])?{'datasetCode':_0x4cbe1c?.[_0x27aff0(0x1ae)],'bindingPreserved':!![],'warnings':[existingHookWarning(_0x17ac0a[_0x27aff0(0x199)])]}:{},..._0xf17e82?{'alias':_0xf17e82[_0x27aff0(0x1ed)]??null,'datasetCode':_0xf17e82['datasetCode'],'operationType':_0x17ac0a['operationType'],'functionNode':_0x17ac0a['functionNode'],'warnings':_0xf17e82[_0x27aff0(0x1fb)]}:{}});}return{'method':_0x27aff0(0x1b9),'url':_0x27aff0(0x19b),'body':{'appCode':_0x31ee57['appCode'],'force':_0x4e18aa,'files':_0x276a13,'cacheClearAtRuntime':_0x276a13[_0x27aff0(0x1cd)](_0x2040ee=>_0x2040ee[_0x27aff0(0x19c)]===_0x27aff0(0x1da)),'cacheClearAtRuntimeTimes':_0x276a13[_0x27aff0(0x1cd)](_0x279cd4=>_0x279cd4[_0x27aff0(0x19c)]===_0x27aff0(0x1da))?CACHE_CLEAR_ATTEMPTS:0x0},'description':_0x27aff0(0x201)+_0x276a13[_0x27aff0(0x1c2)]+_0x27aff0(0x1d5)};},async 'execute'(_0x58245d){const _0x20716f=a44_0x2e36ad,_0x465c86=loadBffProjectConfig(_0x58245d[_0x20716f(0x1f8)]),_0x20fa63=await readBffLockFile(_0x465c86[_0x20716f(0x1ef)]),{lockData:_0xff9c41,appLock:_0x3d0b15}=ensureLockScope(_0x20fa63??createEmptyBffLock(),_0x58245d[_0x20716f(0x1f8)],_0x465c86[_0x20716f(0x1a4)],_0x20716f(0x1b4)),_0x305436=await getTargetFunctions(_0x465c86,_0x58245d);if(_0x305436[_0x20716f(0x1c2)]===0x0)return{'ok':!![],'data':{'uploaded':[],'skipped':[],'conflicts':[],'failed':[]},'message':'No\x20local\x20Backend\x20Function\x20scripts\x20found.'};const _0x9e0a0e=_0x58245d[_0x20716f(0x1a2)](_0x20716f(0x1f3)),_0x1a2c6e=JSON[_0x20716f(0x1d8)](JSON[_0x20716f(0x1e1)](_0xff9c41)),_0x1a4220=_0x1a2c6e[_0x20716f(0x198)][_0x58245d[_0x20716f(0x1f8)]];if(!_0x1a4220)throw new Error('Lock\x20scope\x20for\x20app\x20\x22'+_0x58245d[_0x20716f(0x1f8)]+_0x20716f(0x1ea));const _0x1cd731=_0x305436['some'](_0x13c321=>_0x13c321[_0x20716f(0x1e5)]==='HOOK')?await scanLocalBffFunctions(_0x465c86,_0x20716f(0x1d3)):_0x305436,_0x5738b5=await buildHookMaps(_0x58245d[_0x20716f(0x1f8)],_0x58245d[_0x20716f(0x1b6)],_0x1cd731,_0x1a4220,_0x58245d[_0x20716f(0x1f2)]||_0x58245d['mergedCli']?.[_0x20716f(0x1c1)]||_0x58245d['mergedCli']?.[_0x20716f(0x205)]),_0x2cfb0a=[],_0x27bbca=[],_0x100660=[],_0x52ed3d=[];for(const _0x107088 of _0x305436){const _0x43ceca=_0x5738b5[_0x20716f(0x1af)][_0x20716f(0x1cf)](_0x107088[_0x20716f(0x199)]);if(_0x43ceca){_0x52ed3d[_0x20716f(0x1b4)]({'lockKey':_0x107088[_0x20716f(0x199)],'error':_0x43ceca});continue;}const _0x1a11d8=await computeFileHash(_0x107088[_0x20716f(0x1b2)]),_0x1ba84a=_0x1a4220[_0x20716f(0x1e6)][_0x107088['lockKey']];if(!_0x9e0a0e&&_0x1ba84a&&_0x1ba84a[_0x20716f(0x1bf)]===_0x1a11d8){_0x27bbca['push']({'lockKey':_0x107088[_0x20716f(0x199)],'reason':_0x20716f(0x1bd)});continue;}if(_0x1ba84a?.[_0x20716f(0x204)]&&_0x1ba84a[_0x20716f(0x1b8)]==null){_0x100660[_0x20716f(0x1b4)](missingRemoteVersionConflict(_0x107088,_0x1ba84a));continue;}try{await uploadSingleFunction(_0x58245d[_0x20716f(0x1f8)],_0x107088,_0x1a4220,_0x5738b5);const _0x4c3563=_0x1a4220[_0x20716f(0x1e6)][_0x107088[_0x20716f(0x199)]];_0x2cfb0a[_0x20716f(0x1b4)]({'lockKey':_0x107088['lockKey'],'remoteId':_0x4c3563?.[_0x20716f(0x204)]??0x0});}catch(_0x2e9076){const _0x4eeb89=remoteVersionChangedConflict(_0x107088,_0x1ba84a,_0x2e9076);if(_0x4eeb89){_0x100660[_0x20716f(0x1b4)](_0x4eeb89);continue;}_0x52ed3d[_0x20716f(0x1b4)]({'lockKey':_0x107088[_0x20716f(0x199)],'error':_0x2e9076 instanceof Error?_0x2e9076[_0x20716f(0x1bb)]:String(_0x2e9076)});}}_0x1a4220[_0x20716f(0x1a9)]=new Date()[_0x20716f(0x1cb)](),await writeBffLockFile(_0x465c86['lockFilePath'],_0x1a2c6e),await waitForUploadedLockEntries(_0x465c86['lockFilePath'],_0x58245d[_0x20716f(0x1f8)],_0x2cfb0a[_0x20716f(0x1dd)](_0x440432=>_0x440432[_0x20716f(0x199)]));let _0x479ad6={'attempted':![],'cleared':![]};if(_0x2cfb0a[_0x20716f(0x1c2)]>0x0)try{let _0xa131b='';for(let _0x38b5b8=0x0;_0x38b5b8<CACHE_CLEAR_ATTEMPTS;_0x38b5b8+=0x1){_0xa131b=await clearBffScriptCache(),_0x38b5b8<CACHE_CLEAR_ATTEMPTS-0x1&&await sleep(CACHE_CLEAR_INTERVAL_MS);}_0x479ad6={'attempted':!![],'cleared':!![],'message':_0xa131b||_0x20716f(0x206)};}catch(_0xcb4c25){_0x479ad6={'attempted':!![],'cleared':![],'error':_0xcb4c25 instanceof Error?_0xcb4c25[_0x20716f(0x1bb)]:String(_0xcb4c25)};}const _0x5cbb5d=_0x52ed3d['length']===0x0&&(_0x479ad6[_0x20716f(0x1fa)]?_0x479ad6[_0x20716f(0x1ce)]:!![]),_0x5cb9d7=_0x5cbb5d,_0x5ba097=_0x479ad6[_0x20716f(0x1fa)]?_0x479ad6['cleared']?_0x20716f(0x1a8):'runtime\x20cache\x20clear\x20failed':_0x20716f(0x1e0);return{'ok':_0x5cb9d7,'data':{'uploaded':_0x2cfb0a,'skipped':_0x27bbca,'conflicts':_0x100660,'failed':_0x52ed3d,'cacheClear':_0x479ad6,'warnings':[...[..._0x5738b5[_0x20716f(0x1c4)][_0x20716f(0x1d4)]()][_0x20716f(0x1a5)](_0x525838=>_0x525838[_0x20716f(0x1fb)]),...[..._0x5738b5[_0x20716f(0x1d0)]][_0x20716f(0x1dd)](existingHookWarning)]},'message':formatPushMessage(_0x2cfb0a[_0x20716f(0x1c2)],_0x27bbca[_0x20716f(0x1c2)],_0x100660[_0x20716f(0x1c2)],_0x52ed3d[_0x20716f(0x1c2)],_0x5ba097)};}};function missingRemoteVersionConflict(_0x160513,_0x3b9e0d){const _0x25c5bc=a44_0x2e36ad;return remoteVersionConflict(_0x160513,_0x3b9e0d,_0x25c5bc(0x1f5),_0x25c5bc(0x1c3));}function remoteVersionChangedConflict(_0x1d8073,_0x3d7d42,_0x42875b){const _0x3d0cc8=a44_0x2e36ad;if(!_0x3d7d42?.[_0x3d0cc8(0x204)]||_0x3d7d42[_0x3d0cc8(0x1b8)]==null||!isRemoteVersionConflict(_0x42875b))return undefined;return remoteVersionConflict(_0x1d8073,_0x3d7d42,_0x3d0cc8(0x1df),_0x3d0cc8(0x207));}function remoteVersionConflict(_0x2468b6,_0xd899b5,_0x227341,_0x1d8af7){const _0x3e6cf2=a44_0x2e36ad;return{'code':_0x227341,'lockKey':_0x2468b6[_0x3e6cf2(0x199)],'filePath':_0x2468b6[_0x3e6cf2(0x1b2)],'remoteId':_0xd899b5[_0x3e6cf2(0x204)],..._0xd899b5[_0x3e6cf2(0x1b8)]!=null?{'expectedVersion':_0xd899b5['version']}:{},'message':_0x1d8af7,'nextAction':{'action':_0x3e6cf2(0x19a),'command':CLI_BIN_NAME+_0x3e6cf2(0x1e4)+_0xd899b5[_0x3e6cf2(0x204)]+'\x20--format\x20compress','requiresReview':!![],'message':_0x3e6cf2(0x1ff)}};}function isRemoteVersionConflict(_0xab2c05){const _0x4f0d83=a44_0x2e36ad,_0xfea04c=_0xab2c05 instanceof Error?_0xab2c05['message']:String(_0xab2c05),_0x341b8d=getPlatformErrorCode(_0xab2c05)??'';return[_0xfea04c,_0x341b8d][_0x4f0d83(0x1cd)](_0x2ef0ed=>/(?: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[_0x4f0d83(0x1fc)](_0x2ef0ed));}function formatPushMessage(_0x8d0e6b,_0x5cef02,_0x21a5cd,_0x54492,_0x37abd2){const _0x501665=a44_0x2e36ad,_0x5573f1=[_0x501665(0x1a7)+_0x8d0e6b+'\x20uploaded',_0x5cef02+_0x501665(0x1a6)];_0x21a5cd>0x0&&_0x5573f1['push'](_0x21a5cd+_0x501665(0x195)+(_0x21a5cd===0x1?'':'s')+'\x20'+(_0x21a5cd===0x1?_0x501665(0x1c9):_0x501665(0x1e8))+_0x501665(0x1db));if(_0x54492>0x0)_0x5573f1[_0x501665(0x1b4)](_0x54492+_0x501665(0x1b5));return _0x5573f1[_0x501665(0x1b4)](_0x37abd2),_0x5573f1[_0x501665(0x1cc)](',\x20');}async function getTargetFunctions(_0x1dd75c,_0x1b12be){const _0x513b96=a44_0x2e36ad,_0x26a81b=_0x1b12be[_0x513b96(0x1e2)](_0x513b96(0x1e5)),_0x3c87f9=_0x1b12be[_0x513b96(0x1e2)](_0x513b96(0x1ba)),_0x5517a6=normalizeBffType(_0x26a81b)??undefined;if(_0x3c87f9&&!_0x5517a6)throw CliErrors[_0x513b96(0x200)](_0x513b96(0x19e));const _0x423b4d=await scanLocalBffFunctions(_0x1dd75c,_0x5517a6);if(_0x3c87f9){const _0x316fd4=_0x423b4d[_0x513b96(0x1b3)](_0x371351=>_0x371351[_0x513b96(0x1ba)]===_0x3c87f9);if(_0x316fd4[_0x513b96(0x1c2)]===0x0)throw CliErrors[_0x513b96(0x200)](_0x513b96(0x1d7)+_0x5517a6+'/'+_0x3c87f9);return _0x316fd4;}return _0x423b4d;}function existingHookWarning(_0x5320d2){const _0x39cfa8=a44_0x2e36ad;return{'code':_0x39cfa8(0x1f6),'lockKey':_0x5320d2,'message':_0x39cfa8(0x197)};}async function buildHookMaps(_0x3b2595,_0x3fb3ec,_0x515783,_0xc0025a,_0x653e44){const _0x213d45=a44_0x2e36ad,_0x503594=_0x515783[_0x213d45(0x1cd)](_0x450a32=>_0x450a32[_0x213d45(0x1e5)]==='HOOK');if(!_0x503594)return{'resolutions':new Map(),'failures':new Map(),'existingHooks':new Set()};const _0x3ac3a9=resolveApiModelSource(_0x3fb3ec,_0x3b2595,_0x653e44),_0x343d15=loadAliasMap(_0x3fb3ec,undefined,_0x3ac3a9['filePath'],_0x3ac3a9[_0x213d45(0x1e9)]);assertUnambiguousHookAliases(_0x343d15);const _0x316611=[..._0x343d15[_0x213d45(0x1dd)](_0x4f72bc=>[_0x4f72bc['alias'],_0x4f72bc['datasetCode']]),...trackedHookDirectoryMappings(_0xc0025a)[_0x213d45(0x1dd)](_0x471d80=>[_0x471d80[_0x213d45(0x1ed)],_0x471d80[_0x213d45(0x1ae)]])],_0x43d5f0=await listDatasets(_0x3b2595);assertUnambiguousHookDirectoryMappings(_0x316611[_0x213d45(0x1dd)](([_0x5596c4,_0x1e8d92])=>({'alias':_0x5596c4,'datasetCode':_0x1e8d92})));const _0x432762=buildHookDirectoryIndexes(_0x43d5f0,_0x316611),_0x3e76de=new Map(),_0x5cca6d=preflightPushHookDirectories(_0x515783,_0xc0025a,_0x432762,_0x3e76de),_0x33a8e7=new Set(),_0x9f0168=_0x515783['filter'](_0x5ac83e=>_0x3e76de['get'](_0x5ac83e[_0x213d45(0x199)])?.['startsWith']('HOOK_DATASET_NOT_FOUND:')&&_0xc0025a[_0x213d45(0x1e6)][_0x5ac83e['lockKey']]?.[_0x213d45(0x204)]&&_0xc0025a[_0x213d45(0x1e6)][_0x5ac83e[_0x213d45(0x199)]]?.[_0x213d45(0x1ae)]);if(_0x9f0168['length']>0x0){let _0x4ce351;try{_0x4ce351=await getBffScriptStatistics(_0x3b2595);}catch(_0x4469f9){for(const _0x2189ae of _0x9f0168)_0x3e76de[_0x213d45(0x1aa)](_0x2189ae['lockKey'],_0x213d45(0x1a1)+(_0x4469f9 instanceof Error?_0x4469f9[_0x213d45(0x1bb)]:String(_0x4469f9)));return{'resolutions':_0x5cca6d,'failures':_0x3e76de,'existingHooks':_0x33a8e7};}for(const _0x39aee6 of _0x9f0168){const _0x36ffa7=_0xc0025a[_0x213d45(0x1e6)][_0x39aee6[_0x213d45(0x199)]];try{const _0x5c7cc5=new Set(_0x515783[_0x213d45(0x1b3)](_0x9150a8=>_0x9150a8['type']==='HOOK'&&_0xc0025a[_0x213d45(0x1e6)][_0x9150a8[_0x213d45(0x199)]]?.[_0x213d45(0x1ae)]===_0x36ffa7['datasetCode'])[_0x213d45(0x1dd)](_0x487100=>_0x487100[_0x213d45(0x1ed)]));if(_0x5c7cc5['size']>0x1)throw CliErrors[_0x213d45(0x200)]('Multiple\x20HOOK\x20directories\x20reference\x20the\x20same\x20missing\x20Dataset.\x20Resolve\x20duplicate\x20directories\x20before\x20pushing.');const _0x5d1fdc=_0x4ce351[_0x213d45(0x1a5)](_0x4fc11d=>[{'datasetCode':_0x4fc11d[_0x213d45(0x1ae)],'operationType':snakeToCamel(_0x4fc11d[_0x213d45(0x1d2)]),'functionNode':_0x213d45(0x203),'id':_0x4fc11d[_0x213d45(0x1fd)]},{'datasetCode':_0x4fc11d['datasetCode'],'operationType':snakeToCamel(_0x4fc11d[_0x213d45(0x1d2)]),'functionNode':_0x213d45(0x1eb),'id':_0x4fc11d['afterScriptId']}])[_0x213d45(0x1b3)](_0x24b139=>_0x24b139['id']===_0x36ffa7[_0x213d45(0x204)]),_0x5e5a00=await getBffScriptInfo(_0x36ffa7[_0x213d45(0x204)]);if(_0x5e5a00['id']!==_0x36ffa7['remoteId']||_0x5e5a00[_0x213d45(0x1f8)]!==_0x3b2595||_0x5e5a00[_0x213d45(0x1e3)]!==_0x213d45(0x1d3)||_0x5e5a00[_0x213d45(0x1b0)]!==_0x39aee6[_0x213d45(0x1ba)]||_0x36ffa7[_0x213d45(0x1b8)]==null||_0x5e5a00[_0x213d45(0x1b8)]!==_0x36ffa7[_0x213d45(0x1b8)]||_0x5d1fdc[_0x213d45(0x1c2)]!==0x1||_0x5d1fdc[0x0][_0x213d45(0x1ae)]!==_0x36ffa7[_0x213d45(0x1ae)]||_0x5d1fdc[0x0]['operationType']!==_0x39aee6[_0x213d45(0x1d2)]||_0x5d1fdc[0x0][_0x213d45(0x1de)]!==_0x39aee6[_0x213d45(0x1de)]||_0x36ffa7[_0x213d45(0x1d2)]!==_0x39aee6[_0x213d45(0x1d2)]||_0x36ffa7[_0x213d45(0x1de)]!==_0x39aee6[_0x213d45(0x1de)])throw CliErrors[_0x213d45(0x200)](_0x213d45(0x1a3));_0x33a8e7[_0x213d45(0x1dc)](_0x39aee6['lockKey']),_0x3e76de[_0x213d45(0x1fe)](_0x39aee6[_0x213d45(0x199)]);}catch(_0x32816c){_0x3e76de[_0x213d45(0x1aa)](_0x39aee6[_0x213d45(0x199)],_0x32816c instanceof Error?_0x32816c['message']:String(_0x32816c));}}}return{'resolutions':_0x5cca6d,'failures':_0x3e76de,'existingHooks':_0x33a8e7};}async function uploadSingleFunction(_0x4f12eb,_0x4d4da7,_0x33d85a,_0x5d6c66){const _0x238c77=a44_0x2e36ad,_0x16cf9e=await readFile(_0x4d4da7[_0x238c77(0x1b2)],'utf8'),_0x18883d=await computeFileHash(_0x4d4da7['filePath']),_0x958e2c=_0x33d85a[_0x238c77(0x1e6)][_0x4d4da7[_0x238c77(0x199)]];if(_0x958e2c?.['remoteId']&&_0x958e2c[_0x238c77(0x1b8)]==null)throw CliErrors[_0x238c77(0x200)](_0x4d4da7[_0x238c77(0x199)]+':\x20missing\x20remote\x20version.\x20Run\x20`push`\x20after\x20`pull`\x20to\x20sync\x20version\x20info.');let _0x2f9f3a=extractScriptDescription(_0x16cf9e);if(!_0x2f9f3a&&_0x958e2c?.[_0x238c77(0x204)]){const _0x31e72e=await getBffScriptInfo(_0x958e2c['remoteId']);_0x2f9f3a=_0x31e72e[_0x238c77(0x1b1)]||undefined;}const _0x20dc97={'appCode':_0x4f12eb,'functionName':_0x4d4da7[_0x238c77(0x1ba)],'scriptType':_0x4d4da7[_0x238c77(0x1e5)],'scriptContent':_0x16cf9e};if(_0x958e2c?.['remoteId'])_0x20dc97['id']=_0x958e2c['remoteId'];if(_0x958e2c?.[_0x238c77(0x1b8)]!=null)_0x20dc97[_0x238c77(0x1b8)]=_0x958e2c[_0x238c77(0x1b8)];if(_0x2f9f3a)_0x20dc97[_0x238c77(0x1b1)]=_0x2f9f3a;if(_0x4d4da7[_0x238c77(0x1e5)]==='HOOK'){const _0x43079a=_0x5d6c66['resolutions'][_0x238c77(0x1cf)](_0x4d4da7['lockKey']);if(!_0x43079a&&!_0x5d6c66[_0x238c77(0x1d0)][_0x238c77(0x196)](_0x4d4da7['lockKey'])||!_0x4d4da7[_0x238c77(0x1d2)]||!_0x4d4da7[_0x238c77(0x1de)])throw CliErrors[_0x238c77(0x200)](_0x238c77(0x1ee)+_0x4d4da7['lockKey']);_0x43079a&&(_0x20dc97[_0x238c77(0x1ac)]=_0x43079a[_0x238c77(0x1ec)]['id'],_0x20dc97[_0x238c77(0x1d2)]=_0x4d4da7['operationType']),_0x20dc97[_0x238c77(0x1de)]=_0x4d4da7['functionNode'];}const _0x198e82=await saveBffScript(_0x20dc97),_0x4f460c=_0x198e82['id'],_0x2da482=_0x198e82['script']??await getBffScriptInfo(_0x4f460c),_0x25fa86={'hash':_0x18883d,'remoteId':_0x4f460c,'version':_0x2da482[_0x238c77(0x1b8)]};if(_0x4d4da7[_0x238c77(0x1e5)]===_0x238c77(0x1d3)){const _0x2215d8=_0x5d6c66[_0x238c77(0x1c4)][_0x238c77(0x1cf)](_0x4d4da7[_0x238c77(0x199)]);if(!_0x2215d8){_0x33d85a[_0x238c77(0x1e6)][_0x4d4da7[_0x238c77(0x199)]]={..._0x958e2c,..._0x25fa86};return;}_0x25fa86[_0x238c77(0x1ed)]=_0x2215d8[_0x238c77(0x1ed)]??_0x958e2c?.[_0x238c77(0x1ed)],_0x25fa86['datasetCode']=_0x2215d8[_0x238c77(0x1ae)],_0x25fa86['operationType']=_0x4d4da7[_0x238c77(0x1d2)],_0x25fa86['functionNode']=_0x4d4da7[_0x238c77(0x1de)];}_0x33d85a['functions'][_0x4d4da7[_0x238c77(0x199)]]=_0x25fa86;}const LOCK_SETTLE_RETRY_COUNT=0x14,LOCK_SETTLE_DELAY_MS=0x64;async function waitForUploadedLockEntries(_0x12887d,_0x30970b,_0x285a64){const _0x49282b=a44_0x2e36ad;if(_0x285a64['length']===0x0)return;for(let _0x27eb15=0x0;_0x27eb15<LOCK_SETTLE_RETRY_COUNT;_0x27eb15+=0x1){const _0x1d9686=await readBffLockFile(_0x12887d),_0x1418da=_0x1d9686?.[_0x49282b(0x198)]?.[_0x30970b]?.[_0x49282b(0x1e6)]??{},_0x28a3e2=_0x285a64[_0x49282b(0x1ca)](_0x192304=>!!_0x1418da[_0x192304]?.['remoteId']);if(_0x28a3e2)return;await sleep(LOCK_SETTLE_DELAY_MS);}throw new Error(_0x49282b(0x19d)+_0x285a64[_0x49282b(0x1cc)](',\x20')+'.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a45_0x4978de=a45_0x5778;(function(_0x26c289,_0x26c0d0){const _0xcf6f12=a45_0x5778,_0x5aa36d=_0x26c289();while(!![]){try{const _0xe738f=parseInt(_0xcf6f12(0x186))/0x1*(-parseInt(_0xcf6f12(0x174))/0x2)+parseInt(_0xcf6f12(0x170))/0x3+-parseInt(_0xcf6f12(0x173))/0x4+-parseInt(_0xcf6f12(0x168))/0x5+-parseInt(_0xcf6f12(0x16a))/0x6+parseInt(_0xcf6f12(0x17d))/0x7+parseInt(_0xcf6f12(0x167))/0x8;if(_0xe738f===_0x26c0d0)break;else _0x5aa36d['push'](_0x5aa36d['shift']());}catch(_0x574941){_0x5aa36d['push'](_0x5aa36d['shift']());}}}(a45_0x2386,0x5787e));import{listBffScripts,getBffScriptStatistics}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';function a45_0x5778(_0x4c3cb3,_0x5711a8){_0x4c3cb3=_0x4c3cb3-0x167;const _0x238617=a45_0x2386();let _0x57783e=_0x238617[_0x4c3cb3];return _0x57783e;}import{resolveApiModelSource}from'../../api/model-source.js';import{loadBffProjectConfig}from'../../core/bff/config.js';function a45_0x2386(){const _0x87a316=['scriptsRoot','1NKEtFH','boolean','\x20remote-only','datasetCode','12659800qKVPVd','3342155bGQqfG','apiDir','2806056zmQBLb','appCode','Check\x20local\x20Backend\x20Function\x20sync\x20status\x20against\x20lock\x20file','defaultApp','selectedAppName','profileName','1612698lRtbQG','lockFilePath','All\x20Backend\x20Function\x20scripts\x20are\x20in\x20sync.','2249424HcvVqA','773782WYASxr','all','\x20modified,\x20','push','read','remote','functions','length','alias','2266873sGhHvM','lockKey','currentApp','has','map','\x20added,\x20','filePath','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally'];a45_0x2386=function(){return _0x87a316;};return a45_0x2386();}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':'bff','command':'status','description':a45_0x4978de(0x16c),'risk':a45_0x4978de(0x178),'flags':[{'name':'remote','type':a45_0x4978de(0x187),'description':a45_0x4978de(0x184)}],async 'execute'(_0x3e962e){const _0x5b3ed7=a45_0x4978de,_0x1b0069=loadBffProjectConfig(_0x3e962e['appCode']),_0x11c66d=await readBffLockFile(_0x1b0069[_0x5b3ed7(0x171)]),{appLock:_0x45029c}=ensureLockScope(_0x11c66d??createEmptyBffLock(),_0x3e962e[_0x5b3ed7(0x16b)],_0x1b0069[_0x5b3ed7(0x185)],'status'),_0x3ae3a0=await scanLocalBffFunctions(_0x1b0069),_0x1d0709=[],_0x222f05=[],_0x49d624=[];for(const _0x212462 of _0x3ae3a0){const _0x50672c=await computeFileHash(_0x212462[_0x5b3ed7(0x183)]),_0x278355=_0x45029c[_0x5b3ed7(0x17a)][_0x212462['lockKey']];if(!_0x278355)_0x1d0709[_0x5b3ed7(0x177)](_0x212462['lockKey']);else _0x278355['hash']!==_0x50672c?_0x222f05['push'](_0x212462['lockKey']):_0x49d624['push'](_0x212462[_0x5b3ed7(0x17e)]);}const _0x4d618a=[];if(_0x3e962e['bool'](_0x5b3ed7(0x179))){const _0x365f17=resolveApiModelSource(_0x3e962e['apiDir'],_0x3e962e[_0x5b3ed7(0x16b)],_0x3e962e[_0x5b3ed7(0x16e)]||_0x3e962e['mergedCli']?.[_0x5b3ed7(0x17f)]||_0x3e962e['mergedCli']?.[_0x5b3ed7(0x16d)]),_0x41bc3b=loadAliasMap(_0x3e962e[_0x5b3ed7(0x169)],undefined,_0x365f17[_0x5b3ed7(0x183)],_0x365f17[_0x5b3ed7(0x16f)]),_0x113e78=new Map(_0x41bc3b['map'](_0x1e0c68=>[_0x1e0c68[_0x5b3ed7(0x189)],_0x1e0c68[_0x5b3ed7(0x17c)]])),[_0x34dcbf,_0x3835a9]=await Promise[_0x5b3ed7(0x175)]([listBffScripts(_0x3e962e['appCode']),getBffScriptStatistics(_0x3e962e[_0x5b3ed7(0x16b)])]),_0x2e2b8c=createHookLocationMap(_0x3835a9),_0x455247=new Set(_0x3ae3a0[_0x5b3ed7(0x181)](_0x1ad2da=>_0x1ad2da[_0x5b3ed7(0x17e)]));for(const _0x2b92b8 of _0x34dcbf){const _0x330e6f=resolveRemoteScriptTarget(_0x1b0069,_0x2b92b8,_0x2e2b8c,_0x45029c[_0x5b3ed7(0x17a)],_0x113e78);_0x330e6f&&!_0x455247[_0x5b3ed7(0x180)](_0x330e6f[_0x5b3ed7(0x17e)])&&_0x4d618a[_0x5b3ed7(0x177)](_0x330e6f[_0x5b3ed7(0x17e)]);}}const _0x20a727=_0x1d0709[_0x5b3ed7(0x17b)]===0x0&&_0x222f05['length']===0x0&&_0x4d618a['length']===0x0;return{'ok':!![],'data':{'added':_0x1d0709,'modified':_0x222f05,'unchanged':_0x49d624,'remoteOnly':_0x4d618a},'message':_0x20a727?_0x5b3ed7(0x172):_0x1d0709['length']+_0x5b3ed7(0x182)+_0x222f05[_0x5b3ed7(0x17b)]+_0x5b3ed7(0x176)+_0x49d624[_0x5b3ed7(0x17b)]+'\x20unchanged'+(_0x4d618a[_0x5b3ed7(0x17b)]>0x0?',\x20'+_0x4d618a[_0x5b3ed7(0x17b)]+_0x5b3ed7(0x188):'')};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a46_0x2c2872=a46_0x55aa;(function(_0x131d8e,_0xf4cfe){const _0x4a00ed=a46_0x55aa,_0x52d036=_0x131d8e();while(!![]){try{const _0x1712bf=parseInt(_0x4a00ed(0x100))/0x1*(parseInt(_0x4a00ed(0x115))/0x2)+-parseInt(_0x4a00ed(0x10a))/0x3+parseInt(_0x4a00ed(0xfe))/0x4+-parseInt(_0x4a00ed(0x102))/0x5+-parseInt(_0x4a00ed(0x105))/0x6*(-parseInt(_0x4a00ed(0x10c))/0x7)+parseInt(_0x4a00ed(0xfa))/0x8*(-parseInt(_0x4a00ed(0x116))/0x9)+parseInt(_0x4a00ed(0x106))/0xa;if(_0x1712bf===_0xf4cfe)break;else _0x52d036['push'](_0x52d036['shift']());}catch(_0x20df44){_0x52d036['push'](_0x52d036['shift']());}}}(a46_0x37ea,0xf0152));import{CliErrors}from'../../errors.js';import{installBuiltinSkill}from'../../skills/builtin-skill.js';import{logger}from'../../utils/logger.js';function a46_0x37ea(){const _0x5aa080=['1106848FAfKPL','1098DuUBUF','nonInteractive','pipe','skillVersion','123896obLDXb','cwd','setLogPath','cli-skill','2085340AovhEG','Installing\x20CLI\x20Built-in\x20Skill\x20from\x20the\x20current\x20package.','2XBkNtD','install','7203425KMsWMh','apiError','changed','869664KBRFIi','27652550YQOSFU','\x20at\x20','CLI\x20Built-in\x20Skill\x20','info','674715qumPKV','cli-skill-install','7RzsEyu','installedPath','inherit','repairCommand',']:\x20','\x20via\x20skills@latest','unknown','Built-in\x20Skill\x20install\x20failed\x20[','Resolve\x20the\x20Skills\x20CLI\x20installation\x20issue\x20and\x20run:\x20'];a46_0x37ea=function(){return _0x5aa080;};return a46_0x37ea();}function a46_0x55aa(_0x6187f3,_0x21aabb){_0x6187f3=_0x6187f3-0xfa;const _0x37eab9=a46_0x37ea();let _0x55aa9c=_0x37eab9[_0x6187f3];return _0x55aa9c;}export const cliSkillDefinitions=[{'service':a46_0x2c2872(0xfd),'command':a46_0x2c2872(0x101),'description':'Install\x20or\x20refresh\x20the\x20Rabetbase\x20CLI\x20Built-in\x20Skill','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x5ecc7f){const _0x75edc0=a46_0x2c2872;logger[_0x75edc0(0xfc)](process[_0x75edc0(0xfb)]()),logger[_0x75edc0(0x109)](_0x75edc0(0x10b),_0x75edc0(0xff));const _0x73c9bf=installBuiltinSkill({'stdio':_0x5ecc7f[_0x75edc0(0x117)]?_0x75edc0(0x118):_0x75edc0(0x10e)});if(!_0x73c9bf['ok'])throw CliErrors[_0x75edc0(0x103)](_0x75edc0(0x113)+_0x73c9bf['code']+_0x75edc0(0x110)+(_0x73c9bf['error']||_0x75edc0(0x112)),_0x75edc0(0x114)+_0x73c9bf[_0x75edc0(0x10f)]);return console['log'](_0x73c9bf[_0x75edc0(0x104)]?_0x75edc0(0x108)+_0x73c9bf[_0x75edc0(0x119)]+'\x20installed'+(_0x73c9bf[_0x75edc0(0x10d)]?_0x75edc0(0x107)+_0x73c9bf[_0x75edc0(0x10d)]:_0x75edc0(0x111)):_0x75edc0(0x108)+_0x73c9bf[_0x75edc0(0x119)]+'\x20is\x20already\x20current'+(_0x73c9bf[_0x75edc0(0x10d)]?_0x75edc0(0x107)+_0x73c9bf[_0x75edc0(0x10d)]:'')),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a47_0x307640=a47_0x3b96;(function(_0x45979a,_0x24e92e){const _0x4e6719=a47_0x3b96,_0x50ae51=_0x45979a();while(!![]){try{const _0x5e164f=-parseInt(_0x4e6719(0x11a))/0x1+parseInt(_0x4e6719(0x116))/0x2+parseInt(_0x4e6719(0x119))/0x3*(-parseInt(_0x4e6719(0x123))/0x4)+parseInt(_0x4e6719(0x117))/0x5*(-parseInt(_0x4e6719(0x108))/0x6)+parseInt(_0x4e6719(0x112))/0x7*(-parseInt(_0x4e6719(0xfd))/0x8)+parseInt(_0x4e6719(0x139))/0x9*(-parseInt(_0x4e6719(0x10a))/0xa)+-parseInt(_0x4e6719(0x12f))/0xb*(-parseInt(_0x4e6719(0x113))/0xc);if(_0x5e164f===_0x24e92e)break;else _0x50ae51['push'](_0x50ae51['shift']());}catch(_0x10b4bd){_0x50ae51['push'](_0x50ae51['shift']());}}}(a47_0x49a9,0x7b485));import a47_0x11c762 from'chalk';import a47_0x4fb3f1 from'ora';import a47_0x31f3f0 from'semver';import{execa}from'execa';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';function a47_0x3b96(_0x4e4bd9,_0x33d229){_0x4e4bd9=_0x4e4bd9-0xef;const _0x49a927=a47_0x49a9();let _0x3b9698=_0x49a927[_0x4e4bd9];return _0x3b9698;}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 _0x2a132c=a47_0x3b96;return GIT_COMMIT!==_0x2a132c(0x148)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x2a132c(0xfb)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x5bd2c0=a47_0x3b96,_0x139f1d=process['execPath'][_0x5bd2c0(0x104)]();if(_0x139f1d['includes'](_0x5bd2c0(0x127)))return _0x5bd2c0(0x127);return'npm';}const updateFlags=[{'name':'beta','type':a47_0x307640(0x122),'description':'Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','default':![]},{'name':'version','type':a47_0x307640(0x11c),'description':a47_0x307640(0x10f)}];function getRequestedVersion(_0x5e7fce){const _0x37d1cf=a47_0x307640;return _0x5e7fce[_0x37d1cf(0x130)]('version')[_0x37d1cf(0xfc)]();}function a47_0x49a9(){const _0x1a7f75=['Requested\x20version:\x20','Updating\x20via\x20','\x20doctor','timeout','\x20is\x20newer\x20than\x20npm\x20latest\x20v','CLI\x20updated\x20to\x20v','json',']:\x20','update','Try\x20manually:\x20npm\x20install\x20-g\x20',',\x20then\x20verify\x20with:\x20','unknown','code','green','expected\x20','succeed','object','...','Update\x20available:\x20','Try\x20manually:\x20','version','--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.','\x20\x20CLI\x20Built-in\x20Skill\x20','filter','\x20install\x20-g\x20','slice','trim','664mdvElr','Already\x20up\x20to\x20date\x20(v','Version\x20comparison\x20failed','Run:\x20','length','Check\x20the\x20CLI\x20and\x20npm\x20versions,\x20then\x20retry:\x20','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','toLowerCase','gray','Update\x20failed','npm','744pPxrHe','beta','10GSQlnV','read','Already\x20on\x20requested\x20version\x20(v','validation','\x20is\x20up\x20to\x20date.','Install\x20a\x20specific\x20CLI\x20version','pipe','fail','13111jtNXro','3943860evzxbQ','Checking\x20for\x20updates...','CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','1347990FoBKcM','39845ELUesX','log','5091MKQOEE','953487UJMQZY',',\x20state\x20','string','Checking\x20CLI\x20Built-in\x20Skill...','Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm','repairCommand','run','current','boolean','1420qUvswl','apiError','map','Beta\x20version:\x20','bun','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','latest','entries','/dist-tags','Current\x20version\x20v','valid','message','88GadKlK','str',',\x20found\x20','install','yellow','skillVersion','source','\x20→\x20','bool','Update\x20failed:\x20','888597jfnsUU','state','https://registry.npmjs.org/-/package/','\x20update\x20--version\x20<version>'];a47_0x49a9=function(){return _0x1a7f75;};return a47_0x49a9();}async function validateUpdateFlags(_0x9746d7){const _0x4e769c=a47_0x307640,_0x1daa76=_0x9746d7[_0x4e769c(0x137)](_0x4e769c(0x109)),_0x225dbb=getRequestedVersion(_0x9746d7);if(_0x1daa76&&_0x225dbb)throw CliErrors[_0x4e769c(0x10d)](_0x4e769c(0xf7),'Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.');if(_0x225dbb&&!a47_0x31f3f0['valid'](_0x225dbb))throw CliErrors[_0x4e769c(0x10d)]('Invalid\x20version:\x20'+_0x225dbb,'Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.');}async function fetchNpmDistTags(){const _0x2532c0=a47_0x307640;try{const _0x502774=await fetch(_0x2532c0(0x13b)+encodeURIComponent(NPM_PACKAGE_NAME)+_0x2532c0(0x12b),{'signal':AbortSignal[_0x2532c0(0x140)](0x2710)});if(!_0x502774['ok'])return null;const _0x38875b=await _0x502774[_0x2532c0(0x143)]();if(!_0x38875b||typeof _0x38875b!==_0x2532c0(0xf2))return null;return Object['fromEntries'](Object[_0x2532c0(0x12a)](_0x38875b)[_0x2532c0(0xf9)](([,_0x458840])=>typeof _0x458840===_0x2532c0(0x11c)&&_0x458840[_0x2532c0(0xfc)]()[_0x2532c0(0x101)]>0x0)[_0x2532c0(0x125)](([_0x2615a1,_0x49d268])=>[_0x2615a1,String(_0x49d268)[_0x2532c0(0xfc)]()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x2ba99b){const _0x387489=await fetchNpmDistTags();return _0x387489?.[_0x2ba99b]??null;}async function fetchLatestVersion(){const _0x843808=a47_0x307640;return fetchNpmDistTagVersion(_0x843808(0x129));}async function resolveTargetVersion(_0x4609cb){const _0x1fe0d1=a47_0x307640,_0x282a18=getRequestedVersion(_0x4609cb);if(_0x282a18)return{'version':_0x282a18,'source':_0x1fe0d1(0xf6)};if(_0x4609cb[_0x1fe0d1(0x137)](_0x1fe0d1(0x109))){const _0x4a7dd1=await fetchNpmDistTagVersion('beta');if(!_0x4a7dd1)return null;return{'version':_0x4a7dd1,'source':_0x1fe0d1(0x109)};}const _0x25d063=await fetchLatestVersion();if(!_0x25d063)return null;return{'version':_0x25d063,'source':_0x1fe0d1(0x129)};}function shouldInstallTarget(_0x4d1299,_0x529281){const _0x3935f6=a47_0x307640;if(_0x529281[_0x3935f6(0x135)]===_0x3935f6(0xf6)||_0x529281[_0x3935f6(0x135)]===_0x3935f6(0x109))return!a47_0x31f3f0['eq'](_0x4d1299,_0x529281['version']);return a47_0x31f3f0['lt'](_0x4d1299,_0x529281['version']);}function getInstallPlanLabel(_0x58133d,_0x9ea296){const _0x5a8df2=a47_0x307640;switch(_0x9ea296[_0x5a8df2(0x135)]){case'beta':return _0x5a8df2(0x126)+a47_0x11c762[_0x5a8df2(0x133)](_0x58133d)+_0x5a8df2(0x136)+a47_0x11c762[_0x5a8df2(0xef)](_0x9ea296[_0x5a8df2(0xf6)]);case'version':return _0x5a8df2(0x13d)+a47_0x11c762[_0x5a8df2(0x133)](_0x58133d)+_0x5a8df2(0x136)+a47_0x11c762['green'](_0x9ea296[_0x5a8df2(0xf6)]);case _0x5a8df2(0x129):default:return _0x5a8df2(0xf4)+a47_0x11c762[_0x5a8df2(0x133)](_0x58133d)+_0x5a8df2(0x136)+a47_0x11c762[_0x5a8df2(0xef)](_0x9ea296[_0x5a8df2(0xf6)]);}}function repairCurrentBuiltinSkill(){const _0x8ec048=a47_0x307640;console[_0x8ec048(0x118)](a47_0x11c762[_0x8ec048(0x105)](_0x8ec048(0x11d)));const _0x30611b=installBuiltinSkill();if(_0x30611b['ok']){console[_0x8ec048(0x118)](a47_0x11c762['gray'](_0x8ec048(0xf8)+_0x30611b['skillVersion']+_0x8ec048(0x10e)));return;}throw CliErrors[_0x8ec048(0x124)](_0x8ec048(0x115)+_0x30611b[_0x8ec048(0x149)]+_0x8ec048(0x144)+(_0x30611b['error']||_0x8ec048(0x148)),'Run:\x20'+_0x30611b[_0x8ec048(0x11f)]+_0x8ec048(0x147)+CLI_BIN_NAME+_0x8ec048(0x13f));}function verifyUpdatedBuiltinSkill(_0x344ab5){const _0x8e073f=a47_0x307640,_0x45e468=inspectInstalledBuiltinSkillVersion(_0x344ab5);if(_0x45e468['state']===_0x8e073f(0x121)){console[_0x8e073f(0x118)](a47_0x11c762['gray'](_0x8e073f(0xf8)+_0x344ab5+_0x8e073f(0x10e)));return;}const _0x1b8b81=_0x45e468[_0x8e073f(0x134)]?_0x8e073f(0xf0)+_0x344ab5+_0x8e073f(0x131)+_0x45e468[_0x8e073f(0x134)]:'expected\x20'+_0x344ab5+_0x8e073f(0x11b)+_0x45e468[_0x8e073f(0x13a)];throw CliErrors[_0x8e073f(0x124)](_0x8e073f(0x142)+_0x344ab5+',\x20but\x20Built-in\x20Skill\x20verification\x20failed:\x20'+_0x1b8b81,_0x8e073f(0x100)+_0x45e468[_0x8e073f(0x11f)]+',\x20then\x20verify\x20with:\x20'+CLI_BIN_NAME+_0x8e073f(0x13f));}async function execute(_0x3abd58){const _0x54204c=a47_0x307640;await validateUpdateFlags(_0x3abd58);const _0x953d05=getCurrentVersion();console['log']('Current\x20version:\x20'+_0x953d05);const _0x407153=a47_0x4fb3f1(_0x54204c(0x114))['start'](),_0x222d02=await resolveTargetVersion(_0x3abd58);if(!_0x222d02){const _0x6aea8f=_0x3abd58[_0x54204c(0x137)](_0x54204c(0x109))?_0x54204c(0x11e):_0x54204c(0x103);_0x407153[_0x54204c(0x111)](_0x6aea8f);throw CliErrors['apiError'](_0x6aea8f,_0x54204c(0x146)+NPM_PACKAGE_NAME+'@'+(_0x3abd58[_0x54204c(0x137)](_0x54204c(0x109))?_0x54204c(0x109):_0x54204c(0x129)));}const _0x4d586a=a47_0x31f3f0[_0x54204c(0x12d)](VERSION),_0x3e5ded=a47_0x31f3f0[_0x54204c(0x12d)](_0x222d02['version']);if(!_0x4d586a||!_0x3e5ded){_0x407153[_0x54204c(0x111)]('Version\x20comparison\x20failed');throw CliErrors[_0x54204c(0x124)](_0x54204c(0xff),_0x54204c(0x102)+CLI_BIN_NAME+_0x54204c(0x13c));}if(!shouldInstallTarget(_0x4d586a,_0x222d02)){const _0x5c79b9=_0x222d02['source']===_0x54204c(0xf6)?_0x54204c(0x10c)+_0x222d02[_0x54204c(0xf6)]+')':a47_0x31f3f0['gt'](_0x4d586a,_0x3e5ded)?_0x54204c(0x12c)+_0x953d05+_0x54204c(0x141)+_0x222d02[_0x54204c(0xf6)]:_0x54204c(0xfe)+_0x222d02[_0x54204c(0xf6)]+')';return _0x407153[_0x54204c(0xf1)](_0x5c79b9),repairCurrentBuiltinSkill(),{'ok':!![]};}_0x407153['info'](getInstallPlanLabel(_0x953d05,_0x222d02));const _0x271f7a=detectPackageManager(),_0x40cfa8=_0x271f7a===_0x54204c(0x107)?resolveNpmBin(_0x54204c(0x107)):_0x271f7a,_0x5c5891=a47_0x4fb3f1(_0x54204c(0x13e)+_0x271f7a+_0x54204c(0xf3))['start']();try{await execa(_0x40cfa8,[_0x54204c(0x132),'-g',NPM_PACKAGE_NAME+'@'+_0x222d02[_0x54204c(0xf6)]],{'stdio':_0x54204c(0x110)}),_0x5c5891['succeed']('Updated\x20to\x20v'+_0x222d02[_0x54204c(0xf6)]),console['log'](a47_0x11c762['gray']('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.'));}catch(_0x4a7d70){_0x5c5891['fail'](_0x54204c(0x106));throw CliErrors[_0x54204c(0x124)](_0x54204c(0x138)+(_0x4a7d70 instanceof Error?_0x4a7d70[_0x54204c(0x12e)]:String(_0x4a7d70)),_0x54204c(0xf5)+_0x271f7a+_0x54204c(0xfa)+NPM_PACKAGE_NAME+'@'+_0x222d02[_0x54204c(0xf6)]);}return verifyUpdatedBuiltinSkill(_0x222d02['version']),{'ok':!![]};}export const updateDefinition={'service':a47_0x307640(0x145),'command':a47_0x307640(0x120),'description':a47_0x307640(0x128),'risk':a47_0x307640(0x10b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
|
|
1
|
+
function a47_0x30d9(_0x3eefb9,_0x41704b){_0x3eefb9=_0x3eefb9-0x114;const _0x29f758=a47_0x29f7();let _0x30d9a0=_0x29f758[_0x3eefb9];return _0x30d9a0;}const a47_0x377e96=a47_0x30d9;(function(_0x34ebbf,_0x12359e){const _0x15bf05=a47_0x30d9,_0x4e3492=_0x34ebbf();while(!![]){try{const _0x647045=-parseInt(_0x15bf05(0x159))/0x1+-parseInt(_0x15bf05(0x150))/0x2*(parseInt(_0x15bf05(0x15d))/0x3)+parseInt(_0x15bf05(0x147))/0x4*(parseInt(_0x15bf05(0x143))/0x5)+-parseInt(_0x15bf05(0x168))/0x6+parseInt(_0x15bf05(0x133))/0x7*(-parseInt(_0x15bf05(0x145))/0x8)+-parseInt(_0x15bf05(0x124))/0x9*(-parseInt(_0x15bf05(0x15a))/0xa)+parseInt(_0x15bf05(0x14b))/0xb;if(_0x647045===_0x12359e)break;else _0x4e3492['push'](_0x4e3492['shift']());}catch(_0x5d0224){_0x4e3492['push'](_0x4e3492['shift']());}}}(a47_0x29f7,0x9bd0f));import a47_0x5b546f from'chalk';import a47_0x519d76 from'ora';import a47_0x18872e 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 _0x3beae8=a47_0x30d9;return GIT_COMMIT!==_0x3beae8(0x11e)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x3beae8(0x114)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x2cc8e8=a47_0x30d9,_0x3531f4=process[_0x2cc8e8(0x12b)][_0x2cc8e8(0x131)]();if(_0x3531f4['includes'](_0x2cc8e8(0x125)))return'bun';return _0x2cc8e8(0x13a);}const updateFlags=[{'name':a47_0x377e96(0x151),'type':a47_0x377e96(0x14c),'description':a47_0x377e96(0x121),'default':![]},{'name':a47_0x377e96(0x11f),'type':a47_0x377e96(0x12a),'description':a47_0x377e96(0x161)}];function getRequestedVersion(_0x48a88d){const _0x53b2db=a47_0x377e96;return _0x48a88d[_0x53b2db(0x140)]('version')[_0x53b2db(0x165)]();}async function validateUpdateFlags(_0x294f3b){const _0x186f07=a47_0x377e96,_0x32a9f6=_0x294f3b[_0x186f07(0x130)](_0x186f07(0x151)),_0x475e84=getRequestedVersion(_0x294f3b);if(_0x32a9f6&&_0x475e84)throw CliErrors[_0x186f07(0x156)](_0x186f07(0x167),_0x186f07(0x13c));if(_0x475e84&&!a47_0x18872e[_0x186f07(0x14e)](_0x475e84))throw CliErrors[_0x186f07(0x156)](_0x186f07(0x153)+_0x475e84,_0x186f07(0x139));}async function fetchNpmDistTags(){const _0x43dfbc=a47_0x377e96;try{const _0x2207ab=await fetch(_0x43dfbc(0x15b)+encodeURIComponent(NPM_PACKAGE_NAME)+_0x43dfbc(0x148),{'signal':AbortSignal[_0x43dfbc(0x166)](0x2710)});if(!_0x2207ab['ok'])return null;const _0x36911b=await _0x2207ab[_0x43dfbc(0x14a)]();if(!_0x36911b||typeof _0x36911b!=='object')return null;return Object[_0x43dfbc(0x12f)](Object['entries'](_0x36911b)[_0x43dfbc(0x142)](([,_0x416a47])=>typeof _0x416a47===_0x43dfbc(0x12a)&&_0x416a47[_0x43dfbc(0x165)]()[_0x43dfbc(0x11b)]>0x0)[_0x43dfbc(0x14f)](([_0x3365ac,_0x2dcf39])=>[_0x3365ac,String(_0x2dcf39)[_0x43dfbc(0x165)]()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x3aad22){const _0x1f53d1=await fetchNpmDistTags();return _0x1f53d1?.[_0x3aad22]??null;}async function fetchLatestVersion(){const _0x5882ed=a47_0x377e96;return fetchNpmDistTagVersion(_0x5882ed(0x152));}async function resolveTargetVersion(_0x13eba0){const _0x153bf7=a47_0x377e96,_0x22ac54=getRequestedVersion(_0x13eba0);if(_0x22ac54)return{'version':_0x22ac54,'source':_0x153bf7(0x11f)};if(_0x13eba0['bool'](_0x153bf7(0x151))){const _0x35c397=await fetchNpmDistTagVersion(_0x153bf7(0x151));if(!_0x35c397)return null;return{'version':_0x35c397,'source':'beta'};}const _0x3af4f6=await fetchLatestVersion();if(!_0x3af4f6)return null;return{'version':_0x3af4f6,'source':_0x153bf7(0x152)};}function shouldInstallTarget(_0x3a0c59,_0x1de2f7){const _0x4d899b=a47_0x377e96;if(_0x1de2f7[_0x4d899b(0x126)]===_0x4d899b(0x11f)||_0x1de2f7[_0x4d899b(0x126)]==='beta')return!a47_0x18872e['eq'](_0x3a0c59,_0x1de2f7[_0x4d899b(0x11f)]);return a47_0x18872e['lt'](_0x3a0c59,_0x1de2f7[_0x4d899b(0x11f)]);}function getInstallPlanLabel(_0x5a56c2,_0x47ee1a){const _0x56dc3b=a47_0x377e96;switch(_0x47ee1a[_0x56dc3b(0x126)]){case _0x56dc3b(0x151):return _0x56dc3b(0x137)+a47_0x5b546f[_0x56dc3b(0x11d)](_0x5a56c2)+_0x56dc3b(0x12e)+a47_0x5b546f['green'](_0x47ee1a[_0x56dc3b(0x11f)]);case _0x56dc3b(0x11f):return'Requested\x20version:\x20'+a47_0x5b546f[_0x56dc3b(0x11d)](_0x5a56c2)+_0x56dc3b(0x12e)+a47_0x5b546f[_0x56dc3b(0x13d)](_0x47ee1a[_0x56dc3b(0x11f)]);case _0x56dc3b(0x152):default:return _0x56dc3b(0x127)+a47_0x5b546f[_0x56dc3b(0x11d)](_0x5a56c2)+_0x56dc3b(0x12e)+a47_0x5b546f[_0x56dc3b(0x13d)](_0x47ee1a[_0x56dc3b(0x11f)]);}}function repairCurrentBuiltinSkill(){const _0xe9023=a47_0x377e96;console['log'](a47_0x5b546f[_0xe9023(0x136)](_0xe9023(0x123)));const _0x490fc4=installBuiltinSkill();if(_0x490fc4['ok']){console[_0xe9023(0x149)](a47_0x5b546f[_0xe9023(0x136)](_0xe9023(0x160)+_0x490fc4[_0xe9023(0x13f)]+'\x20is\x20up\x20to\x20date.'));return;}throw CliErrors['apiError'](_0xe9023(0x132)+_0x490fc4['code']+']:\x20'+(_0x490fc4[_0xe9023(0x11c)]||'unknown'),'Run:\x20'+_0x490fc4['repairCommand']+_0xe9023(0x119)+CLI_BIN_NAME+_0xe9023(0x11a));}function verifyUpdatedBuiltinSkill(_0x3f8ec3){const _0x160a3c=a47_0x377e96,_0x3c868a=inspectInstalledBuiltinSkillVersion(_0x3f8ec3);if(_0x3c868a[_0x160a3c(0x15f)]==='current'){console[_0x160a3c(0x149)](a47_0x5b546f[_0x160a3c(0x136)](_0x160a3c(0x160)+_0x3f8ec3+_0x160a3c(0x169)));return;}const _0x58e47c=_0x3c868a[_0x160a3c(0x13f)]?'expected\x20'+_0x3f8ec3+_0x160a3c(0x118)+_0x3c868a[_0x160a3c(0x13f)]:_0x160a3c(0x162)+_0x3f8ec3+_0x160a3c(0x12c)+_0x3c868a['state'];throw CliErrors[_0x160a3c(0x120)](_0x160a3c(0x128)+_0x3f8ec3+',\x20but\x20Built-in\x20Skill\x20verification\x20failed:\x20'+_0x58e47c,'Run:\x20'+_0x3c868a[_0x160a3c(0x122)]+_0x160a3c(0x119)+CLI_BIN_NAME+_0x160a3c(0x11a));}function a47_0x29f7(){const _0x49537e=['bun','source','Update\x20available:\x20','CLI\x20updated\x20to\x20v','start','string','execPath',',\x20state\x20','Checking\x20for\x20updates...','\x20→\x20','fromEntries','bool','toLowerCase','CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','7NDbwGT','Version\x20comparison\x20failed','Check\x20the\x20CLI\x20and\x20npm\x20versions,\x20then\x20retry:\x20','gray','Beta\x20version:\x20','\x20update\x20--version\x20<version>','Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.','npm','fail','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.','green','Try\x20manually:\x20','skillVersion','str','run','filter','5997465PPOFiM','Current\x20version\x20v','4662472YzdBci','Updated\x20to\x20v','4WtXKsp','/dist-tags','log','json','12482657KmtTzt','boolean','read','valid','map','134438yKPJxs','beta','latest','Invalid\x20version:\x20','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','Current\x20version:\x20','validation','install','\x20install\x20-g\x20','806073XaHzaf','10210reUZOd','https://registry.npmjs.org/-/package/','info','3CevZaC','update','state','\x20\x20CLI\x20Built-in\x20Skill\x20','Install\x20a\x20specific\x20CLI\x20version','expected\x20','Already\x20up\x20to\x20date\x20(v','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','trim','timeout','--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.','4018782bsDFyM','\x20is\x20up\x20to\x20date.','slice','Already\x20on\x20requested\x20version\x20(v','Updating\x20via\x20','succeed',',\x20found\x20',',\x20then\x20verify\x20with:\x20','\x20doctor','length','error','yellow','unknown','version','apiError','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','repairCommand','Checking\x20CLI\x20Built-in\x20Skill...','3789ukiHsL'];a47_0x29f7=function(){return _0x49537e;};return a47_0x29f7();}async function execute(_0x336585){const _0x1136b2=a47_0x377e96;await validateUpdateFlags(_0x336585);const _0x3f1b09=getCurrentVersion();console[_0x1136b2(0x149)](_0x1136b2(0x155)+_0x3f1b09);const _0x3d355d=a47_0x519d76(_0x1136b2(0x12d))[_0x1136b2(0x129)](),_0x35b7f8=await resolveTargetVersion(_0x336585);if(!_0x35b7f8){const _0x4c3d82=_0x336585[_0x1136b2(0x130)](_0x1136b2(0x151))?'Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm':_0x1136b2(0x164);_0x3d355d[_0x1136b2(0x13b)](_0x4c3d82);throw CliErrors[_0x1136b2(0x120)](_0x4c3d82,'Try\x20manually:\x20npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+(_0x336585[_0x1136b2(0x130)](_0x1136b2(0x151))?_0x1136b2(0x151):'latest'));}const _0x125417=a47_0x18872e['valid'](VERSION),_0x4572ae=a47_0x18872e[_0x1136b2(0x14e)](_0x35b7f8[_0x1136b2(0x11f)]);if(!_0x125417||!_0x4572ae){_0x3d355d[_0x1136b2(0x13b)](_0x1136b2(0x134));throw CliErrors[_0x1136b2(0x120)](_0x1136b2(0x134),_0x1136b2(0x135)+CLI_BIN_NAME+_0x1136b2(0x138));}if(!shouldInstallTarget(_0x125417,_0x35b7f8)){const _0x189c1c=_0x35b7f8['source']===_0x1136b2(0x11f)?_0x1136b2(0x115)+_0x35b7f8[_0x1136b2(0x11f)]+')':a47_0x18872e['gt'](_0x125417,_0x4572ae)?_0x1136b2(0x144)+_0x3f1b09+'\x20is\x20newer\x20than\x20npm\x20latest\x20v'+_0x35b7f8[_0x1136b2(0x11f)]:_0x1136b2(0x163)+_0x35b7f8[_0x1136b2(0x11f)]+')';return _0x3d355d[_0x1136b2(0x117)](_0x189c1c),repairCurrentBuiltinSkill(),{'ok':!![]};}_0x3d355d[_0x1136b2(0x15c)](getInstallPlanLabel(_0x3f1b09,_0x35b7f8));const _0x503ee0=detectPackageManager(),_0x19b033=_0x503ee0===_0x1136b2(0x13a)?resolveNpmBin('npm'):_0x503ee0,_0x2079d5=a47_0x519d76(_0x1136b2(0x116)+_0x503ee0+'...')[_0x1136b2(0x129)]();try{await execa(_0x19b033,[_0x1136b2(0x157),'-g',NPM_PACKAGE_NAME+'@'+_0x35b7f8[_0x1136b2(0x11f)]],{'stdio':'pipe'}),_0x2079d5[_0x1136b2(0x117)](_0x1136b2(0x146)+_0x35b7f8[_0x1136b2(0x11f)]),console['log'](a47_0x5b546f[_0x1136b2(0x136)]('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.'));}catch(_0x1f5188){_0x2079d5[_0x1136b2(0x13b)]('Update\x20failed');throw CliErrors[_0x1136b2(0x120)]('Update\x20failed:\x20'+(_0x1f5188 instanceof Error?_0x1f5188['message']:String(_0x1f5188)),_0x1136b2(0x13e)+_0x503ee0+_0x1136b2(0x158)+NPM_PACKAGE_NAME+'@'+_0x35b7f8['version']);}return verifyUpdatedBuiltinSkill(_0x35b7f8[_0x1136b2(0x11f)]),{'ok':!![]};}export const updateDefinition={'service':a47_0x377e96(0x15e),'command':a47_0x377e96(0x141),'description':a47_0x377e96(0x154),'risk':a47_0x377e96(0x14d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xe95cc6,_0x1d574e){const _0x8ff6d7=a48_0x3054,_0x36d359=_0xe95cc6();while(!![]){try{const _0x424e6b=-parseInt(_0x8ff6d7(0x133))/0x1+parseInt(_0x8ff6d7(0x136))/0x2+-parseInt(_0x8ff6d7(0x139))/0x3+parseInt(_0x8ff6d7(0x138))/0x4+parseInt(_0x8ff6d7(0x132))/0x5+parseInt(_0x8ff6d7(0x135))/0x6*(-parseInt(_0x8ff6d7(0x137))/0x7)+parseInt(_0x8ff6d7(0x134))/0x8;if(_0x424e6b===_0x1d574e)break;else _0x36d359['push'](_0x36d359['shift']());}catch(_0x13dbca){_0x36d359['push'](_0x36d359['shift']());}}}(a48_0x5376,0x73273));function a48_0x5376(){const _0x3f66c0=['1633959GzEDbJ','579510StlmQP','925039ovHfZZ','7807144ZQDuNG','438594WdWSTy','119046xEIyPP','7STCSJp','3452560LfskGw'];a48_0x5376=function(){return _0x3f66c0;};return a48_0x5376();}function a48_0x3054(_0xcca1e7,_0x41882e){_0xcca1e7=_0xcca1e7-0x132;const _0x53765c=a48_0x5376();let _0x305488=_0x53765c[_0xcca1e7];return _0x305488;}import{codegenSdk}from'../../commands/codegen/sdk.js';import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a49_0x2120(_0x330e76,_0x5dcc71){_0x330e76=_0x330e76-0x1db;const _0x38ed43=a49_0x38ed();let _0x2120f6=_0x38ed43[_0x330e76];return _0x2120f6;}const a49_0x1ecbd1=a49_0x2120;(function(_0x1cb434,_0x766cfa){const _0x6027e9=a49_0x2120,_0x3d143b=_0x1cb434();while(!![]){try{const _0x72b33e=-parseInt(_0x6027e9(0x1f1))/0x1*(parseInt(_0x6027e9(0x1e5))/0x2)+parseInt(_0x6027e9(0x1e1))/0x3+-parseInt(_0x6027e9(0x1f0))/0x4+parseInt(_0x6027e9(0x1e7))/0x5+-parseInt(_0x6027e9(0x1e3))/0x6+-parseInt(_0x6027e9(0x1e2))/0x7*(-parseInt(_0x6027e9(0x1ec))/0x8)+-parseInt(_0x6027e9(0x1e4))/0x9;if(_0x72b33e===_0x766cfa)break;else _0x3d143b['push'](_0x3d143b['shift']());}catch(_0x347161){_0x3d143b['push'](_0x3d143b['shift']());}}}(a49_0x38ed,0x25c6c));function a49_0x38ed(){const _0x30f414=['appCode','operation','689289nZFDcV','55447ZqcYeR','647292kQVMck','554301imZTbs','26jGFwLG','name','1039820XrTBCs','sdk','boolean','str','bool','48bHldCd','read','Omit\x20import\x20statements\x20from\x20generated\x20code','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','616536WlCQfI','532pDCaRP','codegen','code','string','skip-imports','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','tableName'];a49_0x38ed=function(){return _0x30f414;};return a49_0x38ed();}import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':a49_0x1ecbd1(0x1f2),'command':a49_0x1ecbd1(0x1e8),'description':a49_0x1ecbd1(0x1dd),'risk':a49_0x1ecbd1(0x1ed),'flags':[CODE_FLAG_OPTIONAL,{'name':'alias','type':a49_0x1ecbd1(0x1db),'description':a49_0x1ecbd1(0x1ef)},{'name':a49_0x1ecbd1(0x1e0),'type':a49_0x1ecbd1(0x1db),'required':!![],'description':'Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)'},{'name':a49_0x1ecbd1(0x1dc),'type':a49_0x1ecbd1(0x1e9),'description':a49_0x1ecbd1(0x1ee)}],async 'execute'(_0x3b90bc){const _0x74f914=a49_0x1ecbd1,{dataset:_0x5ba999,operation:_0x26d6d7}=await getOperationDetail(_0x3b90bc[_0x74f914(0x1df)],_0x3b90bc[_0x74f914(0x1ea)](_0x74f914(0x1f3)),_0x3b90bc[_0x74f914(0x1ea)](_0x74f914(0x1e0))),_0x2520a9=generateSdkCode(_0x5ba999,_0x26d6d7,{'includeImports':!_0x3b90bc[_0x74f914(0x1eb)](_0x74f914(0x1dc))});return{'ok':!![],'data':{'dataset':{'name':_0x5ba999[_0x74f914(0x1e6)],'code':_0x5ba999['code'],'tableName':_0x5ba999[_0x74f914(0x1de)]},'operation':_0x3b90bc['str'](_0x74f914(0x1e0)),'code':_0x2520a9}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a50_0xb12a13=a50_0x37fb;(function(_0x59472e,_0x3cde54){const _0x322ef1=a50_0x37fb,_0xdf32a7=_0x59472e();while(!![]){try{const _0x15f760=parseInt(_0x322ef1(0x1e4))/0x1*(parseInt(_0x322ef1(0x1da))/0x2)+-parseInt(_0x322ef1(0x1d9))/0x3*(-parseInt(_0x322ef1(0x1db))/0x4)+parseInt(_0x322ef1(0x1d1))/0x5*(parseInt(_0x322ef1(0x1df))/0x6)+parseInt(_0x322ef1(0x1e2))/0x7+-parseInt(_0x322ef1(0x1e5))/0x8+parseInt(_0x322ef1(0x1e8))/0x9+-parseInt(_0x322ef1(0x1e9))/0xa;if(_0x15f760===_0x3cde54)break;else _0xdf32a7['push'](_0xdf32a7['shift']());}catch(_0x40ec5f){_0xdf32a7['push'](_0xdf32a7['shift']());}}}(a50_0x5e2c,0xa8524));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';function a50_0x37fb(_0x2a5ed5,_0x41f072){_0x2a5ed5=_0x2a5ed5-0x1d1;const _0x5e2c70=a50_0x5e2c();let _0x37fb8a=_0x5e2c70[_0x2a5ed5];return _0x37fb8a;}import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':'codegen','command':a50_0xb12a13(0x1e0),'description':a50_0xb12a13(0x1de),'risk':a50_0xb12a13(0x1d5),'flags':[SQLCODE_FLAG,{'name':'target','type':a50_0xb12a13(0x1e6),'description':a50_0xb12a13(0x1d4),'default':'sdk','enum':[a50_0xb12a13(0x1dd),a50_0xb12a13(0x1e7)]},{'name':a50_0xb12a13(0x1d2),'type':a50_0xb12a13(0x1d8),'description':a50_0xb12a13(0x1d3)}],async 'execute'(_0x1badbb){const _0x1b1e38=a50_0xb12a13,_0x4edaea=await getSqlQueryInfo(_0x1badbb[_0x1b1e38(0x1d6)],_0x1badbb[_0x1b1e38(0x1e3)](_0x1b1e38(0x1e1))),_0x18a4f7=_0x1badbb['str'](_0x1b1e38(0x1d7))||_0x1b1e38(0x1dd),_0x23a036=generateSqlCodeTemplate(_0x4edaea,{'target':_0x18a4f7,'includeImports':!_0x1badbb['bool'](_0x1b1e38(0x1d2))});return{'ok':!![],'data':{'sqlCode':_0x4edaea[_0x1b1e38(0x1dc)],'sqlName':_0x4edaea[_0x1b1e38(0x1ea)],'target':_0x18a4f7,'code':_0x23a036}};}};function a50_0x5e2c(){const _0x49ec54=['4275866kEyXPY','str','321GiTaRM','10250512IFOgBZ','string','bff','3982599LOdaAf','1064410lRzpTB','sqlName','5VcidQV','no-imports','Omit\x20import\x20statements\x20from\x20generated\x20code','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','read','appCode','target','boolean','16152CkTHmP','1578TGxCJO','572QPTaLz','sqlCode','sdk','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','4014pXnKDW','sql','sqlcode'];a50_0x5e2c=function(){return _0x49ec54;};return a50_0x5e2c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xad95f9,_0x4ff41d){const _0x1133c2=a51_0x4aa6,_0x197dfe=_0xad95f9();while(!![]){try{const _0xa9b947=parseInt(_0x1133c2(0xea))/0x1*(parseInt(_0x1133c2(0xd9))/0x2)+parseInt(_0x1133c2(0xd6))/0x3+-parseInt(_0x1133c2(0xe4))/0x4+parseInt(_0x1133c2(0xd2))/0x5*(-parseInt(_0x1133c2(0xc5))/0x6)+parseInt(_0x1133c2(0xd1))/0x7+-parseInt(_0x1133c2(0xec))/0x8*(-parseInt(_0x1133c2(0xde))/0x9)+parseInt(_0x1133c2(0xce))/0xa*(parseInt(_0x1133c2(0xc8))/0xb);if(_0xa9b947===_0x4ff41d)break;else _0x197dfe['push'](_0x197dfe['shift']());}catch(_0x3a8aa6){_0x197dfe['push'](_0x197dfe['shift']());}}}(a51_0x10ce,0x6ee31));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a51_0x10ce(){const _0x3caac6=['project','\x20Default\x20app\x20changed\x20to\x20\x22','3560571pDoxPe','5mbQtjd','\x22\x20is\x20selected\x20automatically.','both','trim','252012Rjtgnn','args','Missing\x20app\x20name.','622HhkqbG','boolean','\x20app\x20\x22','\x20<name>\x20--appcode\x20<code>','bool','5866002Yiwiyn','string','\x20config.','\x20<name>','\x22\x20not\x20found.','length','3217404yWcMyh','App\x20code','\x20Remaining\x20app\x20\x22','projectConfig','globalConfig','Use\x20global\x20config\x20scope','841saKtLE','global','8bIAvfY','str','defaultApp','App\x20\x22','apps','Updated','1545354orqaXA','appcode','validation','111287lDjwMZ','object','keys','\x22\x20still\x20defined\x20in\x20','Usage:\x20','\x20Default\x20app\x20is\x20\x22','10OStyCD'];a51_0x10ce=function(){return _0x3caac6;};return a51_0x10ce();}import{collectAppProfileOverrides,getAppProfileFlagDefs,normalizeStoredDefaultApp}from'../../config/schema.js';function a51_0x4aa6(_0x37f1b6,_0xd46106){_0x37f1b6=_0x37f1b6-0xc5;const _0x10ce73=a51_0x10ce();let _0x4aa6aa=_0x10ce73[_0x37f1b6];return _0x4aa6aa;}import{readRawConfigWithLayers}from'../../context.js';import{readConfig,writeConfig,scopeLabel,resolveAppScopeForWrite,appDefinedIn}from'../../commands/app/shared.js';export function buildAppAddFlags(){const _0x3e3e4d=a51_0x4aa6;return[{'name':_0x3e3e4d(0xc6),'type':_0x3e3e4d(0xdf),'description':_0x3e3e4d(0xe5),'required':!![]},{'name':_0x3e3e4d(0xeb),'type':_0x3e3e4d(0xda),'description':_0x3e3e4d(0xe9),'default':![]},...getAppProfileFlagDefs()];}export function buildAppRemoveFlags(){const _0x539d9e=a51_0x4aa6;return[{'name':'global','type':'boolean','description':_0x539d9e(0xe9),'default':![]}];}export async function validateAppName(_0x1334d4,_0x13e68e){const _0x371d7c=a51_0x4aa6,_0x451a61=_0x1334d4['args'][0x0]?.[_0x371d7c(0xd5)]();if(!_0x451a61)throw CliErrors[_0x371d7c(0xc7)](_0x371d7c(0xd8),_0x371d7c(0xcc)+CLI_BIN_NAME+'\x20'+_0x13e68e+_0x371d7c(0xe1));}export async function runAppAdd(_0x24a6bd,_0x566014){const _0x30d4ad=a51_0x4aa6,_0x2c6117=_0x24a6bd[_0x30d4ad(0xd7)][0x0]?.[_0x30d4ad(0xd5)]();if(!_0x2c6117)throw CliErrors[_0x30d4ad(0xc7)](_0x30d4ad(0xd8),_0x30d4ad(0xcc)+CLI_BIN_NAME+'\x20'+_0x566014+_0x30d4ad(0xdc));const _0x641720=_0x24a6bd[_0x30d4ad(0xed)](_0x30d4ad(0xc6));if(!_0x641720)throw CliErrors['flagMissing']('appcode',_0x30d4ad(0xcc)+CLI_BIN_NAME+'\x20'+_0x566014+'\x20<name>\x20--appcode\x20<code>');const _0x150fd2={'global':_0x24a6bd[_0x30d4ad(0xdd)](_0x30d4ad(0xeb))},_0x4c3d33=readConfig(_0x150fd2);if(!_0x4c3d33['apps'])_0x4c3d33[_0x30d4ad(0xf0)]={};const _0x5290cd={'appcode':_0x641720,...collectAppProfileOverrides(_0x2efbd9=>_0x24a6bd[_0x30d4ad(0xed)](_0x2efbd9))},_0x49427d=_0x4c3d33[_0x30d4ad(0xf0)],_0x24cd64=Object[_0x30d4ad(0xca)](_0x49427d),_0xbd2923=typeof _0x4c3d33[_0x30d4ad(0xee)]==='string'&&_0x49427d[_0x4c3d33[_0x30d4ad(0xee)]]?_0x4c3d33[_0x30d4ad(0xee)]:_0x24cd64[_0x30d4ad(0xe3)]===0x1?_0x24cd64[0x0]:undefined,_0x536d4f=!!_0x49427d[_0x2c6117];_0x49427d[_0x2c6117]=_0x5290cd;const _0x486dc8=normalizeStoredDefaultApp(_0x4c3d33,_0xbd2923);writeConfig(_0x4c3d33,_0x150fd2);const _0x2c713e=!_0x536d4f&&_0x486dc8?_0x30d4ad(0xcd)+_0x486dc8+'\x22.':'',_0x3ec47e=(_0x536d4f?_0x30d4ad(0xf1):'Added')+_0x30d4ad(0xdb)+_0x2c6117+'\x22\x20(appcode:\x20'+_0x641720+')'+scopeLabel(_0x150fd2)+'.'+_0x2c713e;return{'ok':!![],'message':_0x3ec47e};}export async function runAppRemove(_0x1c1e96,_0x420fd4){const _0x296081=a51_0x4aa6,_0x4144a2=_0x1c1e96[_0x296081(0xd7)][0x0]?.[_0x296081(0xd5)]();if(!_0x4144a2)throw CliErrors['validation'](_0x296081(0xd8),_0x296081(0xcc)+CLI_BIN_NAME+'\x20'+_0x420fd4+'\x20<name>\x20[--global]');const _0x3404f8=_0x1c1e96[_0x296081(0xdd)](_0x296081(0xeb)),{config:_0x32a3d3,layers:_0x2ec200}=readRawConfigWithLayers(),_0x3b84e8=_0x32a3d3[_0x296081(0xf0)]??{};if(!_0x3b84e8[_0x4144a2])throw CliErrors[_0x296081(0xc7)](_0x296081(0xef)+_0x4144a2+_0x296081(0xe2));const _0x300cee=_0x2ec200[_0x296081(0xe8)][_0x296081(0xf0)]&&typeof _0x2ec200['globalConfig'][_0x296081(0xf0)]===_0x296081(0xc9)?_0x2ec200[_0x296081(0xe8)][_0x296081(0xf0)]:{},_0x4c54b2=_0x2ec200['projectConfig'][_0x296081(0xf0)]&&typeof _0x2ec200[_0x296081(0xe7)][_0x296081(0xf0)]===_0x296081(0xc9)?_0x2ec200[_0x296081(0xe7)][_0x296081(0xf0)]:{},_0x3335cd=appDefinedIn(_0x4144a2,_0x300cee,_0x4c54b2),_0x13d47c=resolveAppScopeForWrite(_0x4144a2,_0x3404f8,_0x2ec200),_0x5c97a6={'global':_0x13d47c===_0x296081(0xeb)},_0x2d55bf=readConfig(_0x5c97a6),_0x56533e=_0x2d55bf[_0x296081(0xf0)];if(!_0x56533e||!_0x56533e[_0x4144a2])throw CliErrors[_0x296081(0xc7)]('App\x20\x22'+_0x4144a2+'\x22\x20not\x20found.');delete _0x56533e[_0x4144a2];let _0x3d3789='';const _0x16c35e=typeof _0x2d55bf[_0x296081(0xee)]===_0x296081(0xdf)?_0x2d55bf[_0x296081(0xee)]:undefined,_0x194b74=Object[_0x296081(0xca)](_0x56533e),_0x3f75da=_0x16c35e===_0x4144a2?_0x194b74[0x0]:_0x16c35e,_0x596da4=normalizeStoredDefaultApp(_0x2d55bf,_0x3f75da);if(_0x16c35e===_0x4144a2&&_0x194b74['length']===0x1)_0x3d3789=_0x296081(0xe6)+_0x194b74[0x0]+_0x296081(0xd3);else _0x16c35e===_0x4144a2&&_0x596da4&&(_0x3d3789=_0x296081(0xd0)+_0x596da4+'\x22.');Object['keys'](_0x56533e)[_0x296081(0xe3)]===0x0&&(delete _0x2d55bf[_0x296081(0xf0)],delete _0x2d55bf[_0x296081(0xee)]);writeConfig(_0x2d55bf,_0x5c97a6);const _0x429d93=_0x3335cd===_0x296081(0xd4)?'\x20Note:\x20app\x20\x22'+_0x4144a2+_0x296081(0xcb)+(_0x13d47c===_0x296081(0xcf)?_0x296081(0xeb):_0x296081(0xcf))+_0x296081(0xe0):'';return{'ok':!![],'message':'Removed\x20app\x20\x22'+_0x4144a2+'\x22'+scopeLabel(_0x5c97a6)+'.'+_0x3d3789+_0x429d93};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x186742,_0x56d65d){const _0x2de450=a52_0x8525,_0x1f2e06=_0x186742();while(!![]){try{const _0x3a10c2=-parseInt(_0x2de450(0x195))/0x1*(-parseInt(_0x2de450(0x197))/0x2)+parseInt(_0x2de450(0x198))/0x3+parseInt(_0x2de450(0x196))/0x4*(parseInt(_0x2de450(0x191))/0x5)+parseInt(_0x2de450(0x1a7))/0x6*(parseInt(_0x2de450(0x18a))/0x7)+-parseInt(_0x2de450(0x1af))/0x8*(parseInt(_0x2de450(0x1ae))/0x9)+-parseInt(_0x2de450(0x1b1))/0xa*(-parseInt(_0x2de450(0x19a))/0xb)+parseInt(_0x2de450(0x192))/0xc*(-parseInt(_0x2de450(0x19f))/0xd);if(_0x3a10c2===_0x56d65d)break;else _0x1f2e06['push'](_0x1f2e06['shift']());}catch(_0x552e4d){_0x1f2e06['push'](_0x1f2e06['shift']());}}}(a52_0x1e07,0x21821));import{input,checkbox,select}from'@inquirer/prompts';import a52_0x580e58 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 _0x36d5fe=a52_0x8525,_0x41891a=await input({'message':_0x36d5fe(0x1aa),'validate':_0x1212f5=>{const _0x458d0b=_0x36d5fe,_0x156c6c=validateAppcode(_0x1212f5['trim']());return _0x156c6c[_0x458d0b(0x189)]||_0x156c6c['message']||_0x458d0b(0x1ad);}});return _0x41891a[_0x36d5fe(0x190)]();}function a52_0x8525(_0x51e8aa,_0x4c4327){_0x51e8aa=_0x51e8aa-0x188;const _0x1e077a=a52_0x1e07();let _0x8525bf=_0x1e077a[_0x51e8aa];return _0x8525bf;}export async function promptAppSelection(_0x523c24){const _0x4be08d=a52_0x8525,_0x3be7f2=[{'name':a52_0x580e58[_0x4be08d(0x1ab)](_0x4be08d(0x193)),'value':-0x1},..._0x523c24[_0x4be08d(0x1a9)]((_0x41d6d5,_0x4c89c1)=>({'name':_0x41d6d5[_0x4be08d(0x188)]+'\x20\x20'+a52_0x580e58['gray']('('+_0x41d6d5[_0x4be08d(0x1a0)]+')'),'value':_0x4c89c1}))],_0x4eade6=await checkbox({'message':_0x4be08d(0x1a2)+a52_0x580e58[_0x4be08d(0x1a1)](_0x523c24[_0x4be08d(0x18d)])+_0x4be08d(0x1b0),'choices':_0x3be7f2,'loop':![]});if(_0x4eade6['includes'](-0x1))return _0x4be08d(0x1a6);if(_0x4eade6[_0x4be08d(0x18d)]===0x0)return _0x4be08d(0x1a6);return _0x4eade6[_0x4be08d(0x1a9)](_0x44a3de=>_0x523c24[_0x44a3de]);}export async function promptSingleAppSelection(_0x3d2a7c){const _0x5caa6a=a52_0x8525,_0x122a32=[{'name':a52_0x580e58[_0x5caa6a(0x1a4)](_0x5caa6a(0x1a5)),'value':_0x5caa6a(0x19b)},{'name':a52_0x580e58[_0x5caa6a(0x1ab)]('✎\x20Enter\x20appcode\x20manually'),'value':_0x5caa6a(0x1a6)},..._0x3d2a7c[_0x5caa6a(0x1a9)](_0xd96d=>({'name':_0xd96d[_0x5caa6a(0x188)]+'\x20\x20'+a52_0x580e58[_0x5caa6a(0x1a4)]('('+_0xd96d['appCode']+')'),'value':_0xd96d[_0x5caa6a(0x1a0)]}))],_0x2e339e=await select({'message':_0x5caa6a(0x1a3),'choices':_0x122a32});if(_0x2e339e===_0x5caa6a(0x19b))return _0x5caa6a(0x19b);if(_0x2e339e===_0x5caa6a(0x1a6))return _0x5caa6a(0x1a6);return _0x3d2a7c[_0x5caa6a(0x18f)](_0x4e414f=>_0x4e414f[_0x5caa6a(0x1a0)]===_0x2e339e);}export async function selectSingleAppcode(_0x39124e){const _0xbbe867=a52_0x8525;if(!_0x39124e)return writeCliSideChannelLine(a52_0x580e58[_0xbbe867(0x1a4)](_0xbbe867(0x19c))),_fallbackOrSkip();writeCliSideChannelLine(_0xbbe867(0x19e));let _0x218bc0;try{_0x218bc0=await withActiveCookie(_0x39124e,()=>listRemoteApps());}catch(_0x1fb331){writeCliSideChannelLine(a52_0x580e58['yellow']('Could\x20not\x20fetch\x20the\x20remote\x20app\x20list.\x20Enter\x20an\x20App\x20Code\x20manually.'));if(_0x1fb331 instanceof Error)writeCliSideChannelLine(a52_0x580e58[_0xbbe867(0x1a4)](_0xbbe867(0x194)+_0x1fb331[_0xbbe867(0x18e)]+')'));return _fallbackOrSkip();}if(_0x218bc0[_0xbbe867(0x18d)]===0x0)return writeCliSideChannelLine(a52_0x580e58[_0xbbe867(0x1ab)](_0xbbe867(0x19d))),_fallbackOrSkip();const _0x3c98da=await promptSingleAppSelection(_0x218bc0);if(_0x3c98da===_0xbbe867(0x19b))return'';if(_0x3c98da==='custom')return promptCustomAppcode();return _0x3c98da[_0xbbe867(0x1a0)];}export async function selectMultipleApps(_0x23ab91){const _0x2434be=a52_0x8525;writeCliSideChannelLine('Fetching\x20available\x20apps...');let _0x3d3862;try{_0x3d3862=await withActiveCookie(_0x23ab91,()=>listRemoteApps());}catch(_0x142deb){writeCliSideChannelLine(_0x2434be(0x1ac));if(_0x142deb instanceof Error)writeCliSideChannelLine(_0x2434be(0x194)+_0x142deb[_0x2434be(0x18e)]+')');return'custom';}if(_0x3d3862[_0x2434be(0x18d)]===0x0)return writeCliSideChannelLine(_0x2434be(0x18b)),_0x2434be(0x1a6);return promptAppSelection(_0x3d3862);}async function _fallbackOrSkip(){const _0x4c9174=a52_0x8525,_0x2ad213=await select({'message':_0x4c9174(0x1aa),'choices':[{'name':a52_0x580e58[_0x4c9174(0x1a4)](_0x4c9174(0x1a8)),'value':_0x4c9174(0x19b)},{'name':a52_0x580e58[_0x4c9174(0x1ab)](_0x4c9174(0x199)),'value':_0x4c9174(0x18c)}]});if(_0x2ad213===_0x4c9174(0x19b))return'';return promptCustomAppcode();}function a52_0x1e07(){const _0x33f600=['65lOZeci','12TecHIN','✎\x20Enter\x20appcode\x20manually','\x20\x20(','8pKenXH','41164mzlHrv','31052HQSBfb','576198kqjvlK','✎\x20Enter\x20manually','11BHMvop','skip','(No\x20login\x20session.\x20Enter\x20an\x20App\x20Code\x20manually\x20or\x20skip.)','No\x20available\x20apps\x20found.','Fetching\x20available\x20apps...','6899191ZLXeyp','appCode','cyan','Found\x20','Select\x20the\x20app\x20to\x20bind:','gray','(Skip;\x20configure\x20later\x20with\x20config\x20set\x20appcode)','custom','538752lXsfBf','(Skip;\x20configure\x20later)','map','App\x20Code:','yellow','\x0aCould\x20not\x20fetch\x20the\x20remote\x20app\x20list.\x20Enter\x20an\x20App\x20Code\x20manually.','Invalid\x20App\x20Code','36cJkuvo','264304FTJnof','\x20apps.\x20Select\x20with\x20space,\x20a=all,\x20i=invert:','2602590SpZPTt','appName','valid','7pJwdpI','\x0aNo\x20available\x20apps\x20found.','manual','length','message','find','trim'];a52_0x1e07=function(){return _0x33f600;};return a52_0x1e07();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a53_0x114259=a53_0x3432;(function(_0x57b7db,_0x48b695){const _0x19b71e=a53_0x3432,_0x211a5f=_0x57b7db();while(!![]){try{const _0xda3c0f=parseInt(_0x19b71e(0x122))/0x1*(parseInt(_0x19b71e(0x128))/0x2)+-parseInt(_0x19b71e(0x137))/0x3+-parseInt(_0x19b71e(0x125))/0x4*(parseInt(_0x19b71e(0x126))/0x5)+-parseInt(_0x19b71e(0x12d))/0x6+-parseInt(_0x19b71e(0x13c))/0x7+parseInt(_0x19b71e(0x12e))/0x8+parseInt(_0x19b71e(0x134))/0x9*(parseInt(_0x19b71e(0x131))/0xa);if(_0xda3c0f===_0x48b695)break;else _0x211a5f['push'](_0x211a5f['shift']());}catch(_0x434d0b){_0x211a5f['push'](_0x211a5f['shift']());}}}(a53_0x3929,0xc4acf));import{CLI_BIN_NAME}from'../../constant/cli.js';function a53_0x3432(_0x16f4ab,_0x2da0fa){_0x16f4ab=_0x16f4ab-0x11e;const _0x39298e=a53_0x3929();let _0x343246=_0x39298e[_0x16f4ab];return _0x343246;}import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a53_0x114259(0x12a),a53_0x114259(0x121)]),NON_TERMINAL_STATUSES=new Set([a53_0x114259(0x129),a53_0x114259(0x13a)]);export function normalizeAsyncTask(_0x42a9bd){const _0x42bfc1=a53_0x114259,_0x236258=typeof _0x42a9bd?.[_0x42bfc1(0x130)]===_0x42bfc1(0x120)?_0x42a9bd[_0x42bfc1(0x130)][_0x42bfc1(0x133)]():'';if(!_0x236258)throw CliErrors[_0x42bfc1(0x139)](_0x42bfc1(0x12b));const _0x450ef8=typeof _0x42a9bd[_0x42bfc1(0x124)]===_0x42bfc1(0x120)?_0x42a9bd[_0x42bfc1(0x124)][_0x42bfc1(0x133)]()[_0x42bfc1(0x13b)]():'';if(!_0x450ef8)throw CliErrors[_0x42bfc1(0x139)]('Async\x20task\x20'+_0x236258+'\x20response\x20did\x20not\x20contain\x20a\x20status.');return{'taskId':_0x236258,'status':_0x450ef8,'errorMessage':typeof _0x42a9bd[_0x42bfc1(0x127)]===_0x42bfc1(0x120)&&_0x42a9bd[_0x42bfc1(0x127)]['trim']()?_0x42a9bd[_0x42bfc1(0x127)]['trim']():null,'isTerminal':TERMINAL_STATUSES['has'](_0x450ef8),'knownStatus':TERMINAL_STATUSES[_0x42bfc1(0x138)](_0x450ef8)||NON_TERMINAL_STATUSES[_0x42bfc1(0x138)](_0x450ef8)};}function a53_0x3929(){const _0x52ce3e=['\x20is\x20processing.','trim','755541rQQhJC','\x20failed.','\x20--appcode\x20','2696919InpUSb','has','apiError','PROCESSING','toUpperCase','35329manaiX','\x20task\x20status\x20--task-id\x20','Task\x20','string','FAILED','3REcgFZ','\x20completed\x20successfully.','status','358332OtsvNw','25QcYDZR','errorMessage','359810pIeFvq','PENDING','SUCCESS','Async\x20task\x20response\x20did\x20not\x20contain\x20a\x20taskId.','\x27\x5c\x27\x27','7703598CFdUCJ','10453640dIyJmG','\x20failed:\x20','taskId','190hLqWKB'];a53_0x3929=function(){return _0x52ce3e;};return a53_0x3929();}export function buildAsyncTaskStatusCommand(_0x5a0bb9,_0xb904fa){const _0x568f94=a53_0x114259;return CLI_BIN_NAME+_0x568f94(0x11e)+quoteShellArg(_0x5a0bb9)+_0x568f94(0x136)+quoteShellArg(_0xb904fa)+'\x20--format\x20compress';}export function asyncTaskMessage(_0x4212f0){const _0x3b49f2=a53_0x114259;switch(_0x4212f0['status']){case'PENDING':return'Task\x20'+_0x4212f0[_0x3b49f2(0x130)]+'\x20is\x20pending.';case'PROCESSING':return _0x3b49f2(0x11f)+_0x4212f0[_0x3b49f2(0x130)]+_0x3b49f2(0x132);case'SUCCESS':return _0x3b49f2(0x11f)+_0x4212f0[_0x3b49f2(0x130)]+_0x3b49f2(0x123);case _0x3b49f2(0x121):return _0x4212f0[_0x3b49f2(0x127)]?_0x3b49f2(0x11f)+_0x4212f0[_0x3b49f2(0x130)]+_0x3b49f2(0x12f)+_0x4212f0[_0x3b49f2(0x127)]:'Task\x20'+_0x4212f0[_0x3b49f2(0x130)]+_0x3b49f2(0x135);default:return _0x3b49f2(0x11f)+_0x4212f0[_0x3b49f2(0x130)]+'\x20returned\x20unknown\x20status\x20'+_0x4212f0[_0x3b49f2(0x124)]+'.';}}function quoteShellArg(_0x55f698){const _0x49e81d=a53_0x114259;return'\x27'+_0x55f698['replace'](/'/g,_0x49e81d(0x12c))+'\x27';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x266012,_0x22f357){var _0x21c92a=a54_0x2b7a,_0x2be223=_0x266012();while(!![]){try{var _0x392354=-parseInt(_0x21c92a(0xe8))/0x1+-parseInt(_0x21c92a(0xee))/0x2+parseInt(_0x21c92a(0xed))/0x3+-parseInt(_0x21c92a(0xea))/0x4+-parseInt(_0x21c92a(0xe7))/0x5*(-parseInt(_0x21c92a(0xeb))/0x6)+-parseInt(_0x21c92a(0xe6))/0x7+parseInt(_0x21c92a(0xf0))/0x8;if(_0x392354===_0x22f357)break;else _0x2be223['push'](_0x2be223['shift']());}catch(_0x56e17e){_0x2be223['push'](_0x2be223['shift']());}}}(a54_0x17f9,0x5d7e3));export function asDryRunResult(_0x5e9b35,_0x32743){var _0x30b32d=a54_0x2b7a;return Object[_0x30b32d(0xec)](_0x5e9b35,{'method':{'value':_0x32743[_0x30b32d(0xef)],'enumerable':![]},'url':{'value':_0x32743[_0x30b32d(0xe9)],'enumerable':![]},..._0x32743[_0x30b32d(0xf1)]?{'description':{'value':_0x32743[_0x30b32d(0xf1)],'enumerable':![]}}:{}});}function a54_0x2b7a(_0x1c8157,_0x3c9523){_0x1c8157=_0x1c8157-0xe6;var _0x17f9dd=a54_0x17f9();var _0x2b7a38=_0x17f9dd[_0x1c8157];return _0x2b7a38;}function a54_0x17f9(){var _0x1446ac=['146436pbrByr','defineProperties','863349pVfZtM','594694qsIYCN','method','6240624EySqio','description','1469867KCrovT','25KYrfFo','132788LpAJvN','url','667312lrLLLC'];a54_0x17f9=function(){return _0x1446ac;};return a54_0x17f9();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a55_0x46d675=a55_0x3537;(function(_0x129a2a,_0x242d71){const _0x585ab0=a55_0x3537,_0x168727=_0x129a2a();while(!![]){try{const _0x45980e=-parseInt(_0x585ab0(0x1b3))/0x1*(-parseInt(_0x585ab0(0x1b4))/0x2)+-parseInt(_0x585ab0(0x1c8))/0x3*(-parseInt(_0x585ab0(0x1b8))/0x4)+-parseInt(_0x585ab0(0x1c0))/0x5+-parseInt(_0x585ab0(0x1a5))/0x6+-parseInt(_0x585ab0(0x1a7))/0x7*(parseInt(_0x585ab0(0x1ac))/0x8)+parseInt(_0x585ab0(0x1c4))/0x9+parseInt(_0x585ab0(0x1bf))/0xa;if(_0x45980e===_0x242d71)break;else _0x168727['push'](_0x168727['shift']());}catch(_0x2823d9){_0x168727['push'](_0x168727['shift']());}}}(a55_0x5aef,0x748c9));export const CROSS_RELATION_FROM_DATASET_FLAG={'name':a55_0x46d675(0x1a8),'type':'string','required':!![],'description':a55_0x46d675(0x1ab)};export const CROSS_RELATION_FROM_COLUMN_FLAG={'name':'from-column','type':a55_0x46d675(0x1bc),'required':!![],'description':a55_0x46d675(0x1aa)};export const CROSS_RELATION_TO_DATASET_FLAG={'name':a55_0x46d675(0x1ba),'type':'string','required':!![],'description':'Target\x20DB_TABLE\x20dataset\x20code'};export const CROSS_RELATION_TO_COLUMN_FLAG={'name':a55_0x46d675(0x1c9),'type':a55_0x46d675(0x1bc),'required':!![],'description':a55_0x46d675(0x1b5)};export const CROSS_RELATION_DBLINK_FLAG={'name':a55_0x46d675(0x1a9),'type':a55_0x46d675(0x1c1),'description':a55_0x46d675(0x1b6)};export const CROSS_RELATION_LABEL_FLAG={'name':'to-label-column','type':'string','description':'Target\x20display\x20field;\x20create\x20defaults\x20to\x20the\x20target\x20field,\x20update\x20keeps\x20the\x20current\x20value'};export const CROSS_RELATION_CARDINALITY_FLAG={'name':'cardinality','type':a55_0x46d675(0x1bc),'enum':[a55_0x46d675(0x1a6),a55_0x46d675(0x1ae),'MANY_TO_ONE','MANY_TO_MANY'],'description':a55_0x46d675(0x1af)};export const GLOBAL_SCOPE_FLAG={'name':a55_0x46d675(0x1be),'type':a55_0x46d675(0x1b2),'default':![],'description':'Write\x20to\x20the\x20global\x20configuration'};export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}(?:_[^_\s]+_[^_\s]+)?$/i,'description':a55_0x46d675(0x1c5)};export const CODE_FLAG={'name':a55_0x46d675(0x1a4),'type':a55_0x46d675(0x1bc),'required':!![],'description':a55_0x46d675(0x1b7),'pattern':DATASET_CODE_PATTERN};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};function a55_0x3537(_0x1be17f,_0x5ed25f){_0x1be17f=_0x1be17f-0x1a4;const _0x5aef8a=a55_0x5aef();let _0x353713=_0x5aef8a[_0x1be17f];return _0x353713;}export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':a55_0x46d675(0x1bb),'description':a55_0x46d675(0x1b7)};export const SQLCODE_FLAG={'name':'sqlcode','type':a55_0x46d675(0x1bc),'required':!![],'description':a55_0x46d675(0x1c6),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a55_0x46d675(0x1c3)}};export const APPCODE_FLAG_OPTIONAL={'name':'appcode','type':a55_0x46d675(0x1bc),'required':![],'description':'App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)'};export const APPCODE_FLAG={...APPCODE_FLAG_OPTIONAL,'required':!![],'description':a55_0x46d675(0x1c2)};function a55_0x5aef(){const _0x8734bb=['from-dblink-id','Source\x20field\x20name\x20used\x20to\x20locate\x20the\x20relation','Source\x20DB_TABLE\x20dataset\x20code','24GvDEML','Skip\x20testing\x20the\x20unsaved\x20database\x20configuration\x20before\x20create/update','ONE_TO_MANY','Relation\x20cardinality;\x20create\x20leaves\x20it\x20unset\x20when\x20omitted,\x20update\x20keeps\x20the\x20current\x20value','MYSQL','Database\x20product\x20type','boolean','5NhxUgS','13684HsIfOF','Target\x20field\x20name','Source\x20database\x20connection\x20ID;\x20derived\x20from\x20the\x20source\x20dataset\x20when\x20omitted','Dataset\x20code\x20(32-char\x20hex,\x20optionally\x20with\x20_xx_xx\x20suffix)','318888bqUUYk','skip-connection-test','to-datasetcode','datasetcode','string','dbtype','global','12525760XBdXUI','1736360OzITMg','number','App\x20code\x20(e.g.\x20app-xxxxx)','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','530091gEDPgu','a\x2032-character\x20hex\x20code,\x20optionally\x20with\x20`_xx_xx`\x20suffix\x20(e.g.\x2099a909313f1fa7153186431e1c551588\x20or\x2099a909313f1fa7153186431e1c551588_75_3c7120aa)','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','POSTGRESQL','24JNZzQR','to-column','code','2526048tsLsAX','ONE_TO_ONE','1721524blUrRt','from-datasetcode'];a55_0x5aef=function(){return _0x8734bb;};return a55_0x5aef();}export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':'number','required':!![],'description':'Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)'};export const DB_TYPE_FLAG={'name':a55_0x46d675(0x1bd),'type':a55_0x46d675(0x1bc),'required':!![],'description':a55_0x46d675(0x1b1),'enum':[a55_0x46d675(0x1b0),a55_0x46d675(0x1c7)]};export const SKIP_CONNECTION_TEST_FLAG={'name':a55_0x46d675(0x1b9),'type':a55_0x46d675(0x1b2),'description':a55_0x46d675(0x1ad)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4d43aa,_0x4ce419){const _0x4e2447=a56_0x4e9b,_0x51550d=_0x4d43aa();while(!![]){try{const _0xa02304=-parseInt(_0x4e2447(0xf0))/0x1+parseInt(_0x4e2447(0xf1))/0x2+parseInt(_0x4e2447(0xe9))/0x3+parseInt(_0x4e2447(0xe6))/0x4+parseInt(_0x4e2447(0xec))/0x5*(-parseInt(_0x4e2447(0xe3))/0x6)+parseInt(_0x4e2447(0xed))/0x7+parseInt(_0x4e2447(0xeb))/0x8*(-parseInt(_0x4e2447(0xe7))/0x9);if(_0xa02304===_0x4ce419)break;else _0x51550d['push'](_0x51550d['shift']());}catch(_0x274ce3){_0x51550d['push'](_0x51550d['shift']());}}}(a56_0x1ce0,0xc147f));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 a56_0x1ce0(){const _0xe2334=['File\x20exceeds\x20the\x20development\x20upload\x20limit\x20of\x2050\x20MB:\x20','trim','4313500rsLKoj','54EPtJBD','File\x20is\x20not\x20a\x20regular\x20file:\x20','3994770WQryra','\x20MB','2094520KLADpa','312720Ydqqlz','5091247AsYMfg','validation','File\x20not\x20found:\x20','780427uVSHaL','1887740OaldYv','size','ceil','90QovlPA'];a56_0x1ce0=function(){return _0xe2334;};return a56_0x1ce0();}function formatBytes(_0x47dc30){const _0x19f516=a56_0x4e9b;if(_0x47dc30>=BYTES_PER_MB){const _0xe0d85e=Math[_0x19f516(0xf3)](_0x47dc30/BYTES_PER_MB*0x64)/0x64;return _0xe0d85e['toFixed'](0x2)+_0x19f516(0xea);}return _0x47dc30+'\x20B';}function a56_0x4e9b(_0x1abb9e,_0x24f807){_0x1abb9e=_0x1abb9e-0xe3;const _0x1ce000=a56_0x1ce0();let _0x4e9b70=_0x1ce000[_0x1abb9e];return _0x4e9b70;}export function requireDevelopmentUploadFile(_0x307d85,_0x152f13){const _0x31054d=a56_0x4e9b,_0x318159=_0x307d85[_0x31054d(0xe5)]();if(!_0x318159)throw CliErrors[_0x31054d(0xee)](_0x152f13+'\x20path\x20is\x20required.');if(!existsSync(_0x318159))throw CliErrors[_0x31054d(0xee)](_0x31054d(0xef)+_0x318159);const _0x27f74a=statSync(_0x318159);if(!_0x27f74a['isFile']())throw CliErrors[_0x31054d(0xee)](_0x31054d(0xe8)+_0x318159);if(_0x27f74a[_0x31054d(0xf2)]>DEVELOPMENT_UPLOAD_MAX_BYTES)throw CliErrors[_0x31054d(0xee)](_0x31054d(0xe4)+_0x318159+'\x20('+formatBytes(_0x27f74a[_0x31054d(0xf2)])+')');return{'path':_0x318159,'size':_0x27f74a[_0x31054d(0xf2)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a57_0x1371(){const _0x5a08bd=['13076010UiZALk','App\x20Code\x20cannot\x20exceed\x20100\x20characters','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','600280DZtShT','10xKMCFO','length','1660vkposJ','304995PPtsKT','App\x20Code\x20cannot\x20be\x20empty','2235dapIKS','1181945EFcSJX','6837756sLxyCW','trim','test','1336643quxzLk'];a57_0x1371=function(){return _0x5a08bd;};return a57_0x1371();}(function(_0x2c3fac,_0x209f52){const _0x1865e4=a57_0x3b1b,_0x705c30=_0x2c3fac();while(!![]){try{const _0x51d080=parseInt(_0x1865e4(0x15d))/0x1*(-parseInt(_0x1865e4(0x15a))/0x2)+-parseInt(_0x1865e4(0x15f))/0x3*(parseInt(_0x1865e4(0x15c))/0x4)+-parseInt(_0x1865e4(0x160))/0x5+parseInt(_0x1865e4(0x161))/0x6+parseInt(_0x1865e4(0x155))/0x7+parseInt(_0x1865e4(0x159))/0x8+parseInt(_0x1865e4(0x156))/0x9;if(_0x51d080===_0x209f52)break;else _0x705c30['push'](_0x705c30['shift']());}catch(_0x4f70ba){_0x705c30['push'](_0x705c30['shift']());}}}(a57_0x1371,0xc05f9));function a57_0x3b1b(_0x5df101,_0x1349f9){_0x5df101=_0x5df101-0x155;const _0x13718e=a57_0x1371();let _0x3b1b92=_0x13718e[_0x5df101];return _0x3b1b92;}export function validateAppcode(_0x2a37f3){const _0x2140dd=a57_0x3b1b,_0x1841d8=_0x2a37f3[_0x2140dd(0x162)]();if(!_0x1841d8)return{'valid':![],'message':_0x2140dd(0x15e)};if(_0x1841d8[_0x2140dd(0x15b)]>0x64)return{'valid':![],'message':_0x2140dd(0x157)};if(!/^[A-Za-z0-9_-]+$/[_0x2140dd(0x163)](_0x1841d8))return{'valid':![],'message':_0x2140dd(0x158)};return{'valid':!![]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a58_0x3243af=a58_0x38f8;(function(_0x481a1d,_0x35b47f){const _0x294691=a58_0x38f8,_0x4442=_0x481a1d();while(!![]){try{const _0x381ad9=-parseInt(_0x294691(0xeb))/0x1+-parseInt(_0x294691(0xd2))/0x2*(-parseInt(_0x294691(0xe6))/0x3)+parseInt(_0x294691(0xcc))/0x4+parseInt(_0x294691(0xdf))/0x5*(parseInt(_0x294691(0xd8))/0x6)+parseInt(_0x294691(0xe4))/0x7*(parseInt(_0x294691(0xe3))/0x8)+-parseInt(_0x294691(0xca))/0x9*(-parseInt(_0x294691(0xdc))/0xa)+-parseInt(_0x294691(0xc4))/0xb*(parseInt(_0x294691(0xd7))/0xc);if(_0x381ad9===_0x35b47f)break;else _0x4442['push'](_0x4442['shift']());}catch(_0x262a0b){_0x4442['push'](_0x4442['shift']());}}}(a58_0x2575,0x5d238));function a58_0x2575(){const _0x487aa5=['validation','Top-level\x20key\x20\x22','global','bool','1524xbtiGA','1074eTvLhJ','Missing\x20key\x20argument.','inherit','\x20deleted','212100FvFAgx','Delete\x20a\x20config\x20value\x20from\x20one\x20scope','Global','14975RPhRNc','prototype','config','trim','2482448ZNvRLy','7HYOLDF','Use\x20workspace\x20commands\x20to\x20modify\x20apps\x20and\x20their\x20default\x20selection.','6837etnbtO','Usage:\x20','Delete\x20from\x20global\x20config\x20(~/.rabetbase.json)','has','Top-level\x20config\x20key;\x20legacy\x20inherit\x20is\x20accepted\x20for\x20migration','45709rlOsJH','key','211563KfzlgR','call','\x20already\x20absent','\x22\x20is\x20not\x20deletable.','args','boolean','306ItbUvy','delete','2200700qgPxVM','\x20config\x20delete\x20<key>\x20[--global]','defaultApp','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','hasOwnProperty','riskLevel','660CJGeTw'];a58_0x2575=function(){return _0x487aa5;};return a58_0x2575();}function a58_0x38f8(_0x3dd318,_0x26d448){_0x3dd318=_0x3dd318-0xc4;const _0x257518=a58_0x2575();let _0x38f85b=_0x257518[_0x3dd318];return _0x38f85b;}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_0x3243af(0xda)]),EXTRA_DELETABLE_KEYS=new Set([a58_0x3243af(0xce),'routing']);async function execute(_0x5eb2e7){const _0x2eb24e=a58_0x3243af,_0x28f47d=_0x5eb2e7[_0x2eb24e(0xc8)][0x0]?.[_0x2eb24e(0xe2)]();if(!_0x28f47d)throw CliErrors[_0x2eb24e(0xd3)](_0x2eb24e(0xd9),_0x2eb24e(0xe7)+CLI_BIN_NAME+_0x2eb24e(0xcd));if(_0x28f47d===_0x2eb24e(0xd1))throw CliErrors[_0x2eb24e(0xd3)](_0x2eb24e(0xcf));if(!isTopLevelConfigKey(_0x28f47d)&&!EXTRA_DELETABLE_KEYS[_0x2eb24e(0xe9)](_0x28f47d)&&!LEGACY_DELETABLE_KEYS['has'](_0x28f47d))throw CliErrors[_0x2eb24e(0xd3)](_0x2eb24e(0xd4)+_0x28f47d+_0x2eb24e(0xc7),_0x2eb24e(0xe5));const _0x55f75f=resolveWriteScope({'global':_0x5eb2e7[_0x2eb24e(0xd6)](_0x2eb24e(0xd5))}),_0x55ac8c=readScopedConfig(_0x55f75f),_0x2c82da=Object[_0x2eb24e(0xe0)][_0x2eb24e(0xd0)][_0x2eb24e(0xc5)](_0x55ac8c,_0x28f47d);_0x2c82da&&(delete _0x55ac8c[_0x28f47d],writeScopedConfig(_0x55ac8c,_0x55f75f));const _0x53ff93=_0x55f75f===_0x2eb24e(0xd5)?_0x2eb24e(0xde):'Project';return{'ok':!![],'message':_0x2c82da?'✓\x20'+_0x53ff93+'\x20'+_0x28f47d+_0x2eb24e(0xdb):'✓\x20'+_0x53ff93+'\x20'+_0x28f47d+_0x2eb24e(0xc6),'data':{'key':_0x28f47d,'scope':_0x55f75f,'changed':_0x2c82da}};}export const configDeleteDefinition={'service':a58_0x3243af(0xe1),'command':a58_0x3243af(0xcb),'description':a58_0x3243af(0xdd),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a58_0x3243af(0xec),'description':a58_0x3243af(0xea),'required':!![]}],'flags':[{'name':a58_0x3243af(0xd5),'type':a58_0x3243af(0xc9),'description':a58_0x3243af(0xe8),'default':![]}],'execute':execute};
|