@lovrabet/rabetbase-cli 2.5.10-beta.2 → 2.5.10-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.d.ts +2 -2
- 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.d.ts +3 -0
- package/lib/commands/issue/context.js +1 -0
- 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 +2 -2
- package/skills/rabetbase/SKILL.md +2 -2
- package/skills/rabetbase/references/rabetbase-issue-report.md +4 -1
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
- package/lib/commands/issue/shared.d.ts +0 -32
- package/lib/commands/issue/shared.js +0 -1
- package/lib/telemetry/send-platform-issue-collect-log.d.ts +0 -26
- package/lib/telemetry/send-platform-issue-collect-log.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a199_0x4fa88c=a199_0x34ce;function a199_0x34ce(_0x62995a,_0x41d0c4){_0x62995a=_0x62995a-0x1ed;const _0x393693=a199_0x3936();let _0x34ce04=_0x393693[_0x62995a];return _0x34ce04;}(function(_0x50aac0,_0x4d52b2){const _0x3959a7=a199_0x34ce,_0x33540d=_0x50aac0();while(!![]){try{const _0x37c44c=-parseInt(_0x3959a7(0x222))/0x1*(parseInt(_0x3959a7(0x213))/0x2)+-parseInt(_0x3959a7(0x21c))/0x3*(parseInt(_0x3959a7(0x206))/0x4)+-parseInt(_0x3959a7(0x1f6))/0x5+-parseInt(_0x3959a7(0x225))/0x6*(parseInt(_0x3959a7(0x215))/0x7)+-parseInt(_0x3959a7(0x221))/0x8+-parseInt(_0x3959a7(0x1ff))/0x9*(-parseInt(_0x3959a7(0x217))/0xa)+-parseInt(_0x3959a7(0x227))/0xb*(-parseInt(_0x3959a7(0x219))/0xc);if(_0x37c44c===_0x4d52b2)break;else _0x33540d['push'](_0x33540d['shift']());}catch(_0x497086){_0x33540d['push'](_0x33540d['shift']());}}}(a199_0x3936,0x927ec));import{readFile}from'node:fs/promises';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{APPCODE_FLAG}from'../../commands/common/flags.js';import{readCustomPageDirectory}from'../../core/page/file-system.js';import{createCustomPage}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,validateCustomPageContent}from'./custom/shared.js';const CUSTOM_PAGE_PATTERNS=[a199_0x4fa88c(0x205),a199_0x4fa88c(0x229),a199_0x4fa88c(0x216)],CUSTOM_PAGE_TEMPLATE_DIR=resolve(dirname(fileURLToPath(import.meta.url)),a199_0x4fa88c(0x209));export const pageCreate={'service':a199_0x4fa88c(0x224),'command':a199_0x4fa88c(0x20f),'description':a199_0x4fa88c(0x20b),'risk':a199_0x4fa88c(0x1f3),'defaultOutputFormat':a199_0x4fa88c(0x223),'structuredErrors':!![],'rejectedFlags':[{'name':'page-type','message':a199_0x4fa88c(0x1f0),'hint':'This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir.'},{'name':a199_0x4fa88c(0x228),'message':a199_0x4fa88c(0x20e),'hint':'Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.'}],'flags':[{'name':'name','type':a199_0x4fa88c(0x212),'description':a199_0x4fa88c(0x208)},{'name':'parent-menu-id','type':a199_0x4fa88c(0x1fa),'description':a199_0x4fa88c(0x1f5)},{'name':'page-pattern','type':a199_0x4fa88c(0x212),'description':a199_0x4fa88c(0x22a),'enum':CUSTOM_PAGE_PATTERNS},{'name':a199_0x4fa88c(0x22d),'type':a199_0x4fa88c(0x212),'description':'Directory\x20containing\x20all\x20page\x20files\x20(cannot\x20be\x20used\x20with\x20--page-pattern)'},APPCODE_FLAG],async 'validate'(_0xe9e8bd){await readValidatedPageSource(_0xe9e8bd);},async 'dryRun'(_0x3854fc){const _0x3b237f=a199_0x4fa88c,_0x518bd0=readInput(_0x3854fc,await readValidatedPageSource(_0x3854fc));return{'method':_0x3b237f(0x1ee),'url':_0x3b237f(0x21d),'body':{'appCode':_0x518bd0[_0x3b237f(0x1fe)],'pageName':_0x518bd0[_0x3b237f(0x214)],..._0x518bd0[_0x3b237f(0x202)]!=null?{'parentMenuId':_0x518bd0[_0x3b237f(0x202)]}:{},'createMenu':_0x518bd0[_0x3b237f(0x211)],'codeContent':_0x518bd0[_0x3b237f(0x200)]},'description':'Would\x20create\x20Custom\x20Page\x20'+JSON['stringify'](_0x518bd0[_0x3b237f(0x214)])+'\x20and\x20its\x20menu\x20entry.'};},async 'execute'(_0x256592){const _0x36ed42=a199_0x4fa88c,_0x943963=readInput(_0x256592,await readValidatedPageSource(_0x256592)),_0x67bfb1=await createCustomPage(_0x943963);if(!Number[_0x36ed42(0x21b)](_0x67bfb1[_0x36ed42(0x20d)])||_0x67bfb1[_0x36ed42(0x20d)]<=0x0)throw CliErrors[_0x36ed42(0x1f7)](_0x36ed42(0x1f8));const _0x5c0c8b=buildCustomPageDevelopmentUrl(_0x943963['appCode'],_0x67bfb1[_0x36ed42(0x1f1)]),_0x3e4cf4=buildCustomPageEditUrl(_0x943963[_0x36ed42(0x1fe)],_0x67bfb1[_0x36ed42(0x20d)]);return{'ok':!![],'data':{'operation':_0x36ed42(0x20c),'pageType':_0x36ed42(0x1fd),'pagePattern':readPagePattern(_0x256592),'selector':{'appCode':_0x943963[_0x36ed42(0x1fe)],'pageName':_0x943963['pageName']},'before':null,'after':{'pageId':_0x67bfb1[_0x36ed42(0x20d)],'pageName':_0x67bfb1['pageName'],'appCode':_0x67bfb1['appCode'],'version':_0x67bfb1[_0x36ed42(0x22b)],'menuId':_0x67bfb1[_0x36ed42(0x22e)],'menuPath':_0x67bfb1['menuPath'],'files':_0x67bfb1[_0x36ed42(0x200)]??Object['keys'](_0x943963['files'])},'dryRun':![],'request':_0x943963,..._0x5c0c8b?{'pageUrl':_0x5c0c8b}:{},..._0x3e4cf4?{'editPageUrl':_0x3e4cf4}:{},'warnings':_0x5c0c8b?[]:[_0x36ed42(0x203)]},'message':_0x36ed42(0x1fb)+_0x67bfb1[_0x36ed42(0x20d)]+'.'};}};function a199_0x3936(){const _0x351a85=['values','parentMenuId','Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','isNaN','BLANK','20KjuykM','pageName\x20cannot\x20exceed\x20100\x20characters.','Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)','../../../templates/custom-pages','parent-menu-id','Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20local\x20directory','page.create','pageId','page\x20create\x20no\x20longer\x20accepts\x20--page-content.','create','trim','createMenu','string','2dmrXkF','pageName','7rmFyVt','DASHBOARD','68230fskePy','Custom_page_','12daatCd','validation','isInteger','361335pQLLyh','/smartapi/webcode/page/create','Invalid\x20Custom\x20Page\x20pattern:\x20','--page-dir\x20must\x20contain\x20at\x20least\x20one\x20page\x20file.','length','2120208ZSkhMH','592907UJVAHB','compress','page','1911534adFVaO','str','23664223jmiCZM','page-content','ONEPAGE','Built-in\x20Custom\x20Page\x20pattern\x20(cannot\x20be\x20used\x20with\x20--page-dir)','version','Provide\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir\x20<dir>.','page-dir','menuId','parse','POST','name','page\x20create\x20does\x20not\x20accept\x20--page-type.','menuPath','keys','write','Custom\x20Page\x20pattern\x20not\x20found:\x20','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','4423255UGQvSq','apiError','Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.','--page-pattern\x20and\x20--page-dir\x20cannot\x20be\x20used\x20together.','number','Created\x20Custom\x20Page\x20','--page-pattern\x20must\x20be\x20BLANK,\x20ONEPAGE,\x20or\x20DASHBOARD.','CUSTOM','appCode','1467FjIGmk','files'];a199_0x3936=function(){return _0x351a85;};return a199_0x3936();}function readPagePattern(_0x34bad3){const _0x52eba4=a199_0x4fa88c,_0x5ba8b3=_0x34bad3[_0x52eba4(0x226)]('page-pattern')['trim'](),_0x5474ca=_0x34bad3['str'](_0x52eba4(0x22d))['trim']();if(_0x5ba8b3&&_0x5474ca)throw CliErrors[_0x52eba4(0x21a)](_0x52eba4(0x1f9));if(_0x5474ca)return null;if(!_0x5ba8b3)throw CliErrors[_0x52eba4(0x21a)](_0x52eba4(0x22c));if(!CUSTOM_PAGE_PATTERNS['includes'](_0x5ba8b3))throw CliErrors['validation'](_0x52eba4(0x1fc));return _0x5ba8b3;}async function readPageSource(_0x3b6f61){const _0x1b2361=a199_0x4fa88c,_0x14a668=_0x3b6f61[_0x1b2361(0x226)](_0x1b2361(0x22d))['trim'](),_0x2d1bf2=readPagePattern(_0x3b6f61);if(_0x2d1bf2===null){const _0x4efcbe=await readCustomPageDirectory(_0x14a668);if(Object[_0x1b2361(0x1f2)](_0x4efcbe)[_0x1b2361(0x220)]===0x0)throw CliErrors[_0x1b2361(0x21a)](_0x1b2361(0x21f));return _0x4efcbe;}let _0x5459e7;try{_0x5459e7=await readFile(join(CUSTOM_PAGE_TEMPLATE_DIR,_0x2d1bf2['toLowerCase']()+'.json'),'utf8');}catch{throw CliErrors[_0x1b2361(0x21a)](_0x1b2361(0x1f4)+_0x2d1bf2+'.');}let _0x2da6e4;try{_0x2da6e4=JSON[_0x1b2361(0x1ed)](_0x5459e7);}catch{throw CliErrors[_0x1b2361(0x21a)](_0x1b2361(0x21e)+_0x2d1bf2+'.');}if(!_0x2da6e4||typeof _0x2da6e4!=='object'||Array['isArray'](_0x2da6e4)||Object[_0x1b2361(0x201)](_0x2da6e4)['some'](_0x17607b=>typeof _0x17607b!=='string'))throw CliErrors[_0x1b2361(0x21a)]('Invalid\x20Custom\x20Page\x20pattern:\x20'+_0x2d1bf2+'.');return _0x2da6e4;}async function readValidatedPageSource(_0x142f54){const _0x3aba6d=await readPageSource(_0x142f54);return await validateCustomPageContent(_0x3aba6d),_0x3aba6d;}function readInput(_0x1e7fbb,_0x3bfb6d){const _0x8560bc=a199_0x4fa88c,_0x5e23f8=_0x1e7fbb['str'](_0x8560bc(0x1ef))[_0x8560bc(0x210)]()||_0x8560bc(0x218)+Date['now']();if(_0x5e23f8[_0x8560bc(0x220)]>0x64)throw CliErrors['validation'](_0x8560bc(0x207));const _0x38963d=_0x1e7fbb['num'](_0x8560bc(0x20a),NaN),_0x3fb59d=!Number[_0x8560bc(0x204)](_0x38963d);if(_0x3fb59d&&(!Number[_0x8560bc(0x21b)](_0x38963d)||_0x38963d<=0x0))throw CliErrors[_0x8560bc(0x21a)]('--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.');return{'appCode':_0x1e7fbb[_0x8560bc(0x1fe)],'pageName':_0x5e23f8,..._0x3fb59d?{'parentMenuId':_0x38963d}:{},'createMenu':!![],'files':_0x3bfb6d};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a200_0x29bb(){const _0x38301f=['number','getDate','getHours','padStart','getSeconds','Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','795cZamUB','239010kzHiGl','str','appCode','Retrieved\x20Custom\x20Page\x20','custom-detail','appcode','getFullYear','trim','compress','72uOYLak','138446RDtUph','1IfWAZr','14623477JCDTEI','1120406nGSeYJ','30330KunFJb','216wZxZYW','Custom\x20Page\x20ID','getMonth','129132ptSKCf','113103xcGEnn','pageCode','read'];a200_0x29bb=function(){return _0x38301f;};return a200_0x29bb();}const a200_0x2c9dd6=a200_0x4ebe;(function(_0x5364b5,_0x33afbc){const _0x5305c2=a200_0x4ebe,_0x188e87=_0x5364b5();while(!![]){try{const _0x51c106=parseInt(_0x5305c2(0x18c))/0x1*(parseInt(_0x5305c2(0x18e))/0x2)+parseInt(_0x5305c2(0x1a7))/0x3*(parseInt(_0x5305c2(0x193))/0x4)+-parseInt(_0x5305c2(0x19d))/0x5*(-parseInt(_0x5305c2(0x18f))/0x6)+parseInt(_0x5305c2(0x18b))/0x7+parseInt(_0x5305c2(0x190))/0x8*(-parseInt(_0x5305c2(0x194))/0x9)+-parseInt(_0x5305c2(0x19e))/0xa+-parseInt(_0x5305c2(0x18d))/0xb;if(_0x51c106===_0x33afbc)break;else _0x188e87['push'](_0x188e87['shift']());}catch(_0x3aca2a){_0x188e87['push'](_0x188e87['shift']());}}}(a200_0x29bb,0x71bed));import{getCustomPageSource}from'../../../core/api-client.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':'page','command':a200_0x2c9dd6(0x1a2),'description':a200_0x2c9dd6(0x19c),'risk':a200_0x2c9dd6(0x196),'defaultOutputFormat':a200_0x2c9dd6(0x1a6),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a200_0x2c9dd6(0x197),'required':!![],'description':a200_0x2c9dd6(0x191)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x313ebb){readCustomPageId(_0x313ebb);},async 'execute'(_0x14828f){const _0x33d330=a200_0x2c9dd6,_0x5aa8db=readCustomPageId(_0x14828f),_0x2fbb74=await getCustomPageSource(_0x5aa8db),{bundle:_0xb99bc8,createTime:_0x3cc6b1,updateTime:_0xcfa753,..._0x48c3a7}=_0x2fbb74,_0x234fe0=_0x2fbb74['id']??_0x5aa8db,_0x50e7bc=_0x2fbb74[_0x33d330(0x1a0)]?.[_0x33d330(0x1a5)]()||_0x14828f[_0x33d330(0x19f)](_0x33d330(0x1a3))[_0x33d330(0x1a5)](),_0x137b91=buildCustomPageRuntimeUrl(_0x50e7bc,_0x2fbb74[_0x33d330(0x195)]),_0x4546c5=buildCustomPageEditUrl(_0x50e7bc,_0x234fe0),_0x4e3e75=await resolveCustomPageDevelopmentUrl(_0x50e7bc,_0x234fe0,_0x14828f['cookie']);return{'ok':!![],'data':{..._0x48c3a7,..._0x137b91?{'runtimePageUrl':_0x137b91}:{},..._0x4e3e75?{'pageUrl':_0x4e3e75}:{},..._0x4546c5?{'editPageUrl':_0x4546c5}:{},..._0x3cc6b1==null?{}:{'createTime':formatTime(_0x3cc6b1)},..._0xcfa753==null?{}:{'updateTime':formatTime(_0xcfa753)}},'message':_0x33d330(0x1a1)+_0x5aa8db+'.'};}};function a200_0x4ebe(_0x1353c2,_0x15d3f9){_0x1353c2=_0x1353c2-0x18b;const _0x29bb2b=a200_0x29bb();let _0x4ebe29=_0x29bb2b[_0x1353c2];return _0x4ebe29;}function formatTime(_0x52383b){const _0x414aba=a200_0x2c9dd6,_0x100b7b=new Date(_0x52383b);if(Number['isNaN'](_0x100b7b['getTime']()))return String(_0x52383b);const _0xa8cdb6=[_0x100b7b[_0x414aba(0x1a4)](),String(_0x100b7b[_0x414aba(0x192)]()+0x1)['padStart'](0x2,'0'),String(_0x100b7b[_0x414aba(0x198)]())[_0x414aba(0x19a)](0x2,'0')]['join']('-'),_0x4fb5f0=[String(_0x100b7b[_0x414aba(0x199)]())[_0x414aba(0x19a)](0x2,'0'),String(_0x100b7b['getMinutes']())[_0x414aba(0x19a)](0x2,'0'),String(_0x100b7b[_0x414aba(0x19b)]())[_0x414aba(0x19a)](0x2,'0')]['join'](':');return _0xa8cdb6+'\x20'+_0x4fb5f0;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a201_0x248ea5=a201_0x538e;(function(_0x4e90c0,_0x30d713){const _0x4af4a2=a201_0x538e,_0x1a1302=_0x4e90c0();while(!![]){try{const _0xe9b21d=parseInt(_0x4af4a2(0xf9))/0x1*(parseInt(_0x4af4a2(0x100))/0x2)+-parseInt(_0x4af4a2(0xfe))/0x3+parseInt(_0x4af4a2(0x10e))/0x4*(parseInt(_0x4af4a2(0x107))/0x5)+-parseInt(_0x4af4a2(0xfb))/0x6+-parseInt(_0x4af4a2(0xf6))/0x7+-parseInt(_0x4af4a2(0xf8))/0x8+-parseInt(_0x4af4a2(0x10b))/0x9*(-parseInt(_0x4af4a2(0x104))/0xa);if(_0xe9b21d===_0x30d713)break;else _0x1a1302['push'](_0x1a1302['shift']());}catch(_0x263a3c){_0x1a1302['push'](_0x1a1302['shift']());}}}(a201_0x2d05,0x8cb85));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';function a201_0x538e(_0x383853,_0x243f7d){_0x383853=_0x383853-0xf6;const _0x2d0576=a201_0x2d05();let _0x538e40=_0x2d0576[_0x383853];return _0x538e40;}import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,buildCustomPageRuntimeUrl}from'./shared.js';export const pageCustomList={'service':'page','command':a201_0x248ea5(0x105),'description':a201_0x248ea5(0x10d),'risk':a201_0x248ea5(0x102),'defaultOutputFormat':a201_0x248ea5(0xff),'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x3637bd){const _0x50c564=a201_0x248ea5,_0xae7e83=(await fetchMenuSnapshot(_0x3637bd[_0x50c564(0x10f)],_0x3637bd['cookie']))[_0x50c564(0x109)][_0x50c564(0xfc)](_0x621187=>{const _0x4e076e=_0x50c564;if(_0x621187[_0x4e076e(0x103)]!==_0x4e076e(0xfa)||_0x621187[_0x4e076e(0xfd)]==null)return[];const _0x2bec5e=buildCustomPageDevelopmentUrl(_0x3637bd[_0x4e076e(0x10f)],_0x621187[_0x4e076e(0x106)]),_0x836a86=buildCustomPageRuntimeUrl(_0x3637bd[_0x4e076e(0x10f)],_0x621187['path']),_0x598dca=buildCustomPageEditUrl(_0x3637bd[_0x4e076e(0x10f)],_0x621187[_0x4e076e(0xfd)]);return[{'pageId':_0x621187[_0x4e076e(0xfd)],'label':_0x621187[_0x4e076e(0xf7)],'path':_0x621187[_0x4e076e(0x106)],..._0x2bec5e?{'pageUrl':_0x2bec5e}:{},..._0x836a86?{'runtimePageUrl':_0x836a86}:{},..._0x598dca?{'editPageUrl':_0x598dca}:{}}];});return{'ok':!![],'data':{'pages':_0xae7e83},'message':_0xae7e83[_0x50c564(0x108)]===0x0?_0x50c564(0x10a):_0x50c564(0x101)+_0xae7e83[_0x50c564(0x108)]+_0x50c564(0x10c)};}};function a201_0x2d05(){const _0x3811e0=['path','3090110gwzkjv','length','menus','No\x20Custom\x20Pages\x20found.','9htkJIO','\x20Custom\x20Page(s).','List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','4wZvdAP','appCode','1824466fEmZxw','label','8016120insiAT','13IstLSS','react','125766FTwJSz','flatMap','pageId','2079204tXlWlM','compress','89554cEZbeU','Found\x20','read','type','13529480QOuiVG','custom-list'];a201_0x2d05=function(){return _0x3811e0;};return a201_0x2d05();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a202_0x26aeb7=a202_0x7a1d;(function(_0x2e8cfb,_0x23b75b){const _0x24669e=a202_0x7a1d,_0x30fc1f=_0x2e8cfb();while(!![]){try{const _0x2d3a84=-parseInt(_0x24669e(0xf5))/0x1*(parseInt(_0x24669e(0xef))/0x2)+parseInt(_0x24669e(0xf6))/0x3*(parseInt(_0x24669e(0xf9))/0x4)+parseInt(_0x24669e(0xff))/0x5+-parseInt(_0x24669e(0xf2))/0x6+-parseInt(_0x24669e(0xec))/0x7+-parseInt(_0x24669e(0xfd))/0x8+parseInt(_0x24669e(0xf3))/0x9;if(_0x2d3a84===_0x23b75b)break;else _0x30fc1f['push'](_0x30fc1f['shift']());}catch(_0xa716e8){_0x30fc1f['push'](_0x30fc1f['shift']());}}}(a202_0xa60a,0x292b1));import{getCustomPageSource,publishCustomPage}from'../../../core/api-client.js';function a202_0xa60a(){const _0x5ed1b4=['Published\x20Custom\x20Page\x20','FORMAL','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.','push','trim','unknown','Would\x20publish\x20Custom\x20Page\x20','isInteger','Custom\x20Page\x20ID','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','remark','number','runtimePageUrl','Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','pageId','1510775rjbeOf','warnings','status','2238JgJilb','compress','apiError','1505736CQAomN','1624653srKHzk','str','7FdiAiQ','3ZSBgux','cookie','Optional\x20publish\x20remark','907428SVufis','pageCode','/smartapi/webcode/file/publish','Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page','640168azogad','appCode','1579430kCSYfT','custom-publish','page'];a202_0xa60a=function(){return _0x5ed1b4;};return a202_0xa60a();}import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomPublish={'service':a202_0x26aeb7(0xdc),'command':a202_0x26aeb7(0x100),'description':a202_0x26aeb7(0xfc),'risk':'write','defaultOutputFormat':a202_0x26aeb7(0xf0),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a202_0x26aeb7(0xe8),'required':!![],'description':a202_0x26aeb7(0xe5)},{'name':a202_0x26aeb7(0xe7),'type':'string','description':a202_0x26aeb7(0xf8)}],async 'validate'(_0x3e7b7e){readCustomPageId(_0x3e7b7e);},async 'dryRun'(_0x29335e){const _0x8fab18=a202_0x26aeb7,_0x42ce67=readInput(_0x29335e);return{'method':'POST','url':_0x8fab18(0xfb),'body':{'id':_0x42ce67[_0x8fab18(0xeb)],..._0x42ce67['remark']?{'remark':_0x42ce67[_0x8fab18(0xe7)]}:{}},'description':_0x8fab18(0xe3)+_0x42ce67[_0x8fab18(0xeb)]+'.'};},async 'execute'(_0x15aa53){const _0x1b855f=a202_0x26aeb7,_0x398412=readInput(_0x15aa53);await getCustomPageSource(_0x398412[_0x1b855f(0xeb)]);const _0x87f9f3=await publishCustomPage(_0x398412);if(!Number[_0x1b855f(0xe4)](_0x87f9f3)||_0x87f9f3!==_0x398412[_0x1b855f(0xeb)])throw CliErrors[_0x1b855f(0xf1)]('Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.');const _0x42f340=await getCustomPageSource(_0x398412[_0x1b855f(0xeb)]);if(_0x42f340[_0x1b855f(0xee)]!==_0x1b855f(0xde))throw CliErrors[_0x1b855f(0xf1)](_0x1b855f(0xea)+(_0x42f340['status']??_0x1b855f(0xe2))+'.');const _0x45d00e=_0x42f340[_0x1b855f(0xfe)]?.[_0x1b855f(0xe1)](),_0x3d0d21=buildCustomPageEditUrl(_0x45d00e,_0x398412['pageId']),_0x1b087b=await resolveCustomPageDevelopmentUrl(_0x45d00e,_0x398412[_0x1b855f(0xeb)],_0x15aa53[_0x1b855f(0xf7)]),_0xc27f29=buildMutationData(_0x398412,!![],_0x1b087b,_0x3d0d21);_0x45d00e&&!_0x1b087b&&_0xc27f29[_0x1b855f(0xed)]['push'](_0x1b855f(0xe6));const _0x3badae=buildCustomPageRuntimeUrl(_0x42f340[_0x1b855f(0xfe)],_0x42f340[_0x1b855f(0xfa)]);return _0x3badae?_0xc27f29[_0x1b855f(0xe9)]=_0x3badae:_0xc27f29['warnings'][_0x1b855f(0xe0)](_0x1b855f(0xdf)),{'ok':!![],'data':_0xc27f29,'message':_0x1b855f(0xdd)+_0x398412[_0x1b855f(0xeb)]+'.'};}};function readInput(_0x311f00){const _0x59cc49=a202_0x26aeb7,_0x3f6501=readCustomPageId(_0x311f00),_0x1e75e7=_0x311f00[_0x59cc49(0xf4)](_0x59cc49(0xe7))['trim']();return{'pageId':_0x3f6501,..._0x1e75e7?{'remark':_0x1e75e7}:{}};}function a202_0x7a1d(_0x187fc7,_0x422fd4){_0x187fc7=_0x187fc7-0xdc;const _0xa60a8d=a202_0xa60a();let _0x7a1d8d=_0xa60a8d[_0x187fc7];return _0x7a1d8d;}function buildMutationData(_0xf2a55e,_0x4ec6ad=![],_0x22b750,_0x26e12e){const _0x267fd7=a202_0x26aeb7;return{'operation':'page.custom-publish','selector':{'pageId':_0xf2a55e['pageId']},'before':null,'after':{'pageId':_0xf2a55e[_0x267fd7(0xeb)],'status':'FORMAL'},'dryRun':!_0x4ec6ad,'request':_0xf2a55e,..._0x22b750?{'pageUrl':_0x22b750}:{},..._0x26e12e?{'editPageUrl':_0x26e12e}:{},'warnings':[]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5dc7cc,_0x28efff){const _0x5081c5=a203_0x3ca0,_0x10eb40=_0x5dc7cc();while(!![]){try{const _0x113914=-parseInt(_0x5081c5(0x120))/0x1+-parseInt(_0x5081c5(0x129))/0x2*(-parseInt(_0x5081c5(0x122))/0x3)+parseInt(_0x5081c5(0x125))/0x4+parseInt(_0x5081c5(0x128))/0x5*(parseInt(_0x5081c5(0x124))/0x6)+-parseInt(_0x5081c5(0x12b))/0x7+parseInt(_0x5081c5(0x134))/0x8+-parseInt(_0x5081c5(0x12a))/0x9;if(_0x113914===_0x28efff)break;else _0x10eb40['push'](_0x10eb40['shift']());}catch(_0x471a4f){_0x10eb40['push'](_0x10eb40['shift']());}}}(a203_0x1756,0xb877e));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{getAppBaseUrl,getPublishedAppDomain}from'../../../constant/domain.js';import{CliErrors}from'../../../errors.js';import{validateCustomPageSourceFiles}from'./syntax.js';function a203_0x1756(){const _0x3acc47=['type','file','path','/pages/','validation','num','isInteger','length','2988584cbtNwO','172198HvXQKA','--id\x20must\x20be\x20a\x20positive\x20integer.','3xFHJzB','react','2310LMdHUM','4684144GqKfvj','pageId','map','2655yhUOMk','2766756YtvqAZ','13935699hWWsfg','4593617fKHMUm'];a203_0x1756=function(){return _0x3acc47;};return a203_0x1756();}export const CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL={...APPCODE_FLAG_OPTIONAL,'description':'Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted'};function trimOptional(_0x5c3a15){return _0x5c3a15?.['trim']()||undefined;}export function buildCustomPageRuntimeUrl(_0x3545e8,_0x4149e5){const _0x4adb7a=trimOptional(_0x3545e8),_0x40ecf7=trimOptional(_0x4149e5);if(!_0x4adb7a||!_0x40ecf7)return undefined;return getPublishedAppDomain(_0x4adb7a)+'/'+encodeURIComponent(_0x40ecf7);}function a203_0x3ca0(_0x50eb39,_0x488173){_0x50eb39=_0x50eb39-0x120;const _0x17561f=a203_0x1756();let _0x3ca07f=_0x17561f[_0x50eb39];return _0x3ca07f;}export function buildCustomPageDevelopmentUrl(_0x5511a8,_0x1acba2){const _0x40e697=a203_0x3ca0,_0x50526f=trimOptional(_0x5511a8),_0x148ae4=trimOptional(_0x1acba2);if(!_0x50526f||!_0x148ae4)return undefined;return getAppBaseUrl(_0x50526f)+_0x40e697(0x12f)+encodeURIComponent(_0x148ae4);}export async function resolveCustomPageDevelopmentUrl(_0x33e709,_0x3e9285,_0x5c24e9){const _0x426e58=a203_0x3ca0,_0x13f2bf=trimOptional(_0x33e709);if(!_0x13f2bf)return undefined;try{const _0x1385a3=(await fetchMenuSnapshot(_0x13f2bf,_0x5c24e9))['menus']['find'](_0x4604c7=>_0x4604c7[_0x426e58(0x12c)]===_0x426e58(0x123)&&_0x4604c7[_0x426e58(0x126)]===_0x3e9285);return buildCustomPageDevelopmentUrl(_0x13f2bf,_0x1385a3?.[_0x426e58(0x12e)]);}catch{return undefined;}}export function buildCustomPageEditUrl(_0x1066b1,_0x335cb6){const _0x2ccb26=trimOptional(_0x1066b1);if(!_0x2ccb26)return;const _0x2bb976=trimOptional(String(_0x335cb6??''));if(!_0x2bb976)return;return getAppBaseUrl(_0x2ccb26)+'/ide/'+encodeURIComponent(_0x2bb976);}export async function validateCustomPageContent(_0x37b796){const _0x15a81f=a203_0x3ca0,_0x1d238a=await validateCustomPageSourceFiles(_0x37b796);if(_0x1d238a[_0x15a81f(0x133)]>0x0)throw CliErrors[_0x15a81f(0x130)]('Invalid\x20Custom\x20Page\x20content:\x20'+_0x1d238a[_0x15a81f(0x127)](_0x52be3f=>_0x52be3f[_0x15a81f(0x12d)]+':\x20'+_0x52be3f['message'])['join'](';\x20'));}export function readCustomPageId(_0x395f98){const _0x146505=a203_0x3ca0,_0x422259=_0x395f98[_0x146505(0x131)]('id');if(!Number[_0x146505(0x132)](_0x422259)||_0x422259<=0x0)throw CliErrors[_0x146505(0x130)](_0x146505(0x121));return _0x422259;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a204_0x5eec95=a204_0x58ac;(function(_0x2998ee,_0x1971de){const _0x40039a=a204_0x58ac,_0x1c1ef5=_0x2998ee();while(!![]){try{const _0x30ed61=-parseInt(_0x40039a(0x15b))/0x1*(-parseInt(_0x40039a(0x160))/0x2)+parseInt(_0x40039a(0x15a))/0x3+-parseInt(_0x40039a(0x167))/0x4*(parseInt(_0x40039a(0x162))/0x5)+-parseInt(_0x40039a(0x15f))/0x6*(-parseInt(_0x40039a(0x161))/0x7)+-parseInt(_0x40039a(0x16b))/0x8*(parseInt(_0x40039a(0x163))/0x9)+parseInt(_0x40039a(0x16c))/0xa*(-parseInt(_0x40039a(0x165))/0xb)+-parseInt(_0x40039a(0x170))/0xc;if(_0x30ed61===_0x1971de)break;else _0x1c1ef5['push'](_0x1c1ef5['shift']());}catch(_0x11b0cf){_0x1c1ef5['push'](_0x1c1ef5['shift']());}}}(a204_0x49b5,0x53d3d));import{format}from'prettier';function a204_0x49b5(){const _0x590f7a=['entries','4eCWYEQ','map','find','message','16lfTSwr','14230EZxmBi','filter','.jsx','all','371640hioDmW','trim','.tsx','typescript','Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx','274002rrinox','1KcryEK','some','page\x20files','babel','93768clgxxy','1355366lmqSiZ','301DQagBU','406155enGaLS','2238183cPIyrI','toLowerCase','3773hABbuw'];a204_0x49b5=function(){return _0x590f7a;};return a204_0x49b5();}const SOURCE_PARSERS={'.js':a204_0x5eec95(0x15e),'.jsx':a204_0x5eec95(0x15e),'.ts':'typescript','.tsx':a204_0x5eec95(0x158)},CUSTOM_PAGE_EXTENSIONS=[a204_0x5eec95(0x16e),a204_0x5eec95(0x172)];export async function validateCustomPageSourceFiles(_0x3d8e6b){const _0x41882a=a204_0x5eec95,_0x4d2fe8=Object[_0x41882a(0x166)](_0x3d8e6b)[_0x41882a(0x16d)](([_0x1e7ced])=>getParser(_0x1e7ced));if(!_0x4d2fe8[_0x41882a(0x15c)](([_0x1c7734])=>isReactSourceFile(_0x1c7734)))return[{'file':_0x41882a(0x15d),'message':_0x41882a(0x159)}];const _0x16c0ac=await Promise[_0x41882a(0x16f)](_0x4d2fe8[_0x41882a(0x168)](async([_0x670224,_0xc0ac2])=>{const _0x56860d=_0x41882a;try{return await format(_0xc0ac2,{'parser':getParser(_0x670224)}),undefined;}catch(_0x38042f){return{'file':_0x670224,'message':_0x38042f instanceof Error?_0x38042f[_0x56860d(0x16a)]:String(_0x38042f)};}}));return _0x16c0ac[_0x41882a(0x16d)](_0x29504f=>_0x29504f!==undefined);}function a204_0x58ac(_0x2f05a9,_0x5713e2){_0x2f05a9=_0x2f05a9-0x158;const _0x49b5a3=a204_0x49b5();let _0x58ac5a=_0x49b5a3[_0x2f05a9];return _0x58ac5a;}function getParser(_0x57febc){const _0x39fedb=a204_0x5eec95,_0x425cc0=_0x57febc[_0x39fedb(0x171)]()['toLowerCase']();return Object[_0x39fedb(0x166)](SOURCE_PARSERS)[_0x39fedb(0x169)](([_0x493b57])=>_0x425cc0['endsWith'](_0x493b57))?.[0x1];}function isReactSourceFile(_0x241445){const _0xc01c4d=a204_0x5eec95,_0x249d72=_0x241445[_0xc01c4d(0x171)]()[_0xc01c4d(0x164)]();return CUSTOM_PAGE_EXTENSIONS[_0xc01c4d(0x15c)](_0x464f72=>_0x249d72['endsWith'](_0x464f72));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a205_0xdf6b(_0x5a3d72,_0x216c71){_0x5a3d72=_0x5a3d72-0x79;const _0x13df59=a205_0x13df();let _0xdf6bbf=_0x13df59[_0x5a3d72];return _0xdf6bbf;}const a205_0x89fd39=a205_0xdf6b;(function(_0xf822d8,_0x489a25){const _0x4e229c=a205_0xdf6b,_0x2b84f=_0xf822d8();while(!![]){try{const _0xcc2507=-parseInt(_0x4e229c(0x8f))/0x1*(parseInt(_0x4e229c(0x91))/0x2)+-parseInt(_0x4e229c(0x92))/0x3*(parseInt(_0x4e229c(0x82))/0x4)+-parseInt(_0x4e229c(0x9b))/0x5+parseInt(_0x4e229c(0x8b))/0x6+parseInt(_0x4e229c(0x8a))/0x7+parseInt(_0x4e229c(0x99))/0x8*(-parseInt(_0x4e229c(0x88))/0x9)+parseInt(_0x4e229c(0x84))/0xa;if(_0xcc2507===_0x489a25)break;else _0x2b84f['push'](_0x2b84f['shift']());}catch(_0x20c7a5){_0x2b84f['push'](_0x2b84f['shift']());}}}(a205_0x13df,0x2ed89));import{getCustomPageSource,updateCustomPageContent}from'../../../core/api-client.js';import{readCustomPageDirectory}from'../../../core/page/file-system.js';import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,resolveCustomPageDevelopmentUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,validateCustomPageContent}from'./shared.js';function a205_0x13df(){const _0x375dcb=['/smartapi/webcode/page/update/content','680645PLKdzQ','number','Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.','page.custom-update','appcode','string','validation','page','newVersion','Save\x20all\x20files\x20of\x20a\x20Custom\x20Page','appCode','custom-update','4VDSCow','page\x20custom-update\x20no\x20longer\x20accepts\x20--page-content.','3264350bCAlaa','Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','apiError','Updated\x20Custom\x20Page\x20','134847kltarQ','str','221956LOGLcI','1633962slQZMy','Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20','trim','page-dir','42307fFvvUG','pageId','2oVwJjO','330969fBglFZ','Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20','compress','pageContent','cookie','Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.','POST','80rPUpWK'];a205_0x13df=function(){return _0x375dcb;};return a205_0x13df();}export const pageCustomUpdate={'service':a205_0x89fd39(0x7d),'command':a205_0x89fd39(0x81),'description':a205_0x89fd39(0x7f),'risk':'write','defaultOutputFormat':a205_0x89fd39(0x94),'structuredErrors':!![],'requiresAppCode':![],'rejectedFlags':[{'name':'page-content','message':a205_0x89fd39(0x83),'hint':a205_0x89fd39(0x9d)}],'flags':[{'name':'id','type':a205_0x89fd39(0x9c),'required':!![],'description':'Custom\x20Page\x20ID'},{'name':a205_0x89fd39(0x8e),'type':a205_0x89fd39(0x7b),'required':!![],'description':'Directory\x20containing\x20all\x20complete\x20page\x20files'},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x785ae3){readCustomPageId(_0x785ae3),await readValidatedPageContent(_0x785ae3);},async 'dryRun'(_0x4527de){const _0x526213=a205_0x89fd39,_0x28ed6b=await readInput(_0x4527de);return{'method':_0x526213(0x98),'url':_0x526213(0x9a),'body':{'id':_0x28ed6b[_0x526213(0x90)],'codeContent':_0x28ed6b[_0x526213(0x95)]},'description':_0x526213(0x8c)+_0x28ed6b[_0x526213(0x90)]+'.'};},async 'execute'(_0x2c4211){const _0x2cc325=a205_0x89fd39,_0x31fb0a=await readInput(_0x2c4211),_0xb0936e=await updateCustomPageContent({'pageId':_0x31fb0a['pageId'],'pageContent':_0x31fb0a[_0x2cc325(0x95)]});if(!Number['isInteger'](_0xb0936e['newVersion'])||_0xb0936e[_0x2cc325(0x7e)]<=0x0)throw CliErrors[_0x2cc325(0x86)](_0x2cc325(0x97));const _0x3aaa2c=buildCustomPageEditUrl(_0x31fb0a[_0x2cc325(0x80)],_0x31fb0a[_0x2cc325(0x90)]),_0xe8b0cf=await resolveCustomPageDevelopmentUrl(_0x31fb0a[_0x2cc325(0x80)],_0x31fb0a[_0x2cc325(0x90)],_0x2c4211[_0x2cc325(0x96)]);return{'ok':!![],'data':{'operation':_0x2cc325(0x79),'selector':{'appCode':_0x31fb0a[_0x2cc325(0x80)],'pageId':_0x31fb0a['pageId']},'before':null,'after':{'pageId':_0xb0936e[_0x2cc325(0x90)],'version':_0xb0936e['newVersion'],'pageContent':_0x31fb0a[_0x2cc325(0x95)]},'dryRun':![],'request':_0x31fb0a,..._0xe8b0cf?{'pageUrl':_0xe8b0cf}:{},..._0x3aaa2c?{'editPageUrl':_0x3aaa2c}:{},'warnings':_0xe8b0cf?[]:[_0x2cc325(0x85)]},'message':_0x2cc325(0x87)+_0x31fb0a[_0x2cc325(0x90)]+'.'};}};async function readInput(_0x2b2fcf){const _0x14bec0=a205_0x89fd39,_0x365b74=readCustomPageId(_0x2b2fcf),_0x9fcd83=_0x2b2fcf[_0x14bec0(0x89)](_0x14bec0(0x7a))['trim']()||(await getCustomPageSource(_0x365b74))[_0x14bec0(0x80)]?.[_0x14bec0(0x8d)]();if(!_0x9fcd83)throw CliErrors[_0x14bec0(0x7c)](_0x14bec0(0x93)+_0x365b74+'.');return{'appCode':_0x9fcd83,'pageId':_0x365b74,'pageContent':await readValidatedPageContent(_0x2b2fcf)};}async function readValidatedPageContent(_0x25f6e6){const _0x2988e5=a205_0x89fd39,_0x568596=await readCustomPageDirectory(_0x25f6e6[_0x2988e5(0x89)](_0x2988e5(0x8e)));return await validateCustomPageContent(_0x568596),_0x568596;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a206_0xd96d(){const _0x4736b1=['compress','54tKIbuJ','query-data-list-status','401035RiAizf','2997863kxzISA','page','nextAction','16IjLXfn','/smartapi/lovrabet/dataset/','read','code','data-list-status','GET','relatedPages','string','35021ybeNLz','Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','alias','length','758nzxaSf','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','3489HfAzHu','125514bXEqtK','290BXFVZR','281931SSwtjw','2764120oIjgcf'];a206_0xd96d=function(){return _0x4736b1;};return a206_0xd96d();}const a206_0x2b7dc1=a206_0x56fe;(function(_0x27474c,_0x428963){const _0x1f88ec=a206_0x56fe,_0x4df015=_0x27474c();while(!![]){try{const _0xcbdbc3=-parseInt(_0x1f88ec(0xb6))/0x1+-parseInt(_0x1f88ec(0xb1))/0x2*(-parseInt(_0x1f88ec(0xb3))/0x3)+parseInt(_0x1f88ec(0xbf))/0x4*(parseInt(_0x1f88ec(0xbb))/0x5)+-parseInt(_0x1f88ec(0xb9))/0x6*(parseInt(_0x1f88ec(0xc7))/0x7)+-parseInt(_0x1f88ec(0xb7))/0x8+-parseInt(_0x1f88ec(0xb4))/0x9*(-parseInt(_0x1f88ec(0xb5))/0xa)+-parseInt(_0x1f88ec(0xbc))/0xb;if(_0xcbdbc3===_0x428963)break;else _0x4df015['push'](_0x4df015['shift']());}catch(_0x37f32b){_0x4df015['push'](_0x4df015['shift']());}}}(a206_0xd96d,0x35f69));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a206_0x56fe(_0xabdb00,_0x4f6c40){_0xabdb00=_0xabdb00-0xae;const _0xd96d3c=a206_0xd96d();let _0x56fedc=_0xd96d3c[_0xabdb00];return _0x56fedc;}import{assessDataListPageState,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';export const pageDataListStatus={'service':a206_0x2b7dc1(0xbd),'command':a206_0x2b7dc1(0xc3),'description':a206_0x2b7dc1(0xae),'risk':a206_0x2b7dc1(0xc1),'defaultOutputFormat':a206_0x2b7dc1(0xb8),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a206_0x2b7dc1(0xaf),'type':a206_0x2b7dc1(0xc6),'description':a206_0x2b7dc1(0xb2)}],async 'validate'(_0x11a55a){validateDatasetSelector(_0x11a55a);},async 'dryRun'(_0x4f48e8){const _0x4471f1=a206_0x2b7dc1,_0x9fab0a=await loadDatasetDetailForPage(_0x4f48e8);return{'method':_0x4471f1(0xc4),'url':_0x4471f1(0xc0)+_0x9fab0a[_0x4471f1(0xc2)]+'/standard-page-status?appCode='+encodeURIComponent(_0x4f48e8['appCode']),'description':serializeDryRunDescription({'dataset':{'id':_0x9fab0a['id'],'code':_0x9fab0a['code'],'name':_0x9fab0a['name']},'action':_0x4471f1(0xba)})};},async 'execute'(_0xfd5b){const _0x3d78d4=a206_0x2b7dc1,_0xdaf463=await loadDatasetDetailForPage(_0xfd5b),_0x398c5f=await loadDataListPageStatusForGenerate(_0xfd5b,_0xdaf463[_0x3d78d4(0xc2)]),_0x3c755e=getUndeletedRelatedPages(_0xdaf463),_0x31ead2=assessDataListPageState(_0xdaf463[_0x3d78d4(0xc2)],_0x398c5f,{'fallbackUndeletedPages':_0x3c755e});return{'ok':!![],'data':{'datasetCode':_0xdaf463[_0x3d78d4(0xc2)],'precheckSource':_0x398c5f?.['source']??'related-pages-fallback','status':_0x31ead2['status'],'manualResolutionRequired':_0x31ead2['manualResolutionRequired'],'nextAction':_0x31ead2[_0x3d78d4(0xbe)],'dataListPageStatus':_0x398c5f,'relatedPages':{'total':_0xdaf463[_0x3d78d4(0xc5)][_0x3d78d4(0xb0)],'undeletedCount':_0x3c755e[_0x3d78d4(0xb0)]}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a207_0x482db5=a207_0x3998;function a207_0x3998(_0x112ae7,_0x20fe55){_0x112ae7=_0x112ae7-0x1a5;const _0x370569=a207_0x3705();let _0x3998a9=_0x370569[_0x112ae7];return _0x3998a9;}(function(_0x2e3b86,_0x4bd648){const _0x1852fa=a207_0x3998,_0x5d5763=_0x2e3b86();while(!![]){try{const _0x2c7b45=-parseInt(_0x1852fa(0x1ac))/0x1*(-parseInt(_0x1852fa(0x1cc))/0x2)+parseInt(_0x1852fa(0x1cf))/0x3*(parseInt(_0x1852fa(0x1b3))/0x4)+parseInt(_0x1852fa(0x1ad))/0x5*(-parseInt(_0x1852fa(0x1b5))/0x6)+-parseInt(_0x1852fa(0x1cd))/0x7+-parseInt(_0x1852fa(0x1ce))/0x8+parseInt(_0x1852fa(0x1a9))/0x9+-parseInt(_0x1852fa(0x1d8))/0xa*(-parseInt(_0x1852fa(0x1b4))/0xb);if(_0x2c7b45===_0x4bd648)break;else _0x5d5763['push'](_0x5d5763['shift']());}catch(_0x4234d4){_0x5d5763['push'](_0x5d5763['shift']());}}}(a207_0x3705,0x7f643));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessGenerateOperationState,assessDataListPageState,buildPageGenerateOperationStatusQueryCommand,buildDataListPageStatusQueryCommand,createPageGenerateClientOperationId,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';import{startGenerateDataListPages}from'../../core/api-client.js';export const pageGenerateStart={'service':'page','command':a207_0x482db5(0x1c4),'description':'Start\x20async\x20Data\x20List\x20Page\x20generation\x20from\x20a\x20dataset','risk':a207_0x482db5(0x1c6),'defaultOutputFormat':a207_0x482db5(0x1c9),'rejectedFlags':[{'name':a207_0x482db5(0x1b6),'message':a207_0x482db5(0x1c7),'hint':'This\x20command\x20always\x20generates\x20a\x20DATA_LIST\x20page\x20from\x20a\x20dataset.'},{'name':'page-pattern','message':a207_0x482db5(0x1d6),'hint':a207_0x482db5(0x1a8)}],'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a207_0x482db5(0x1a5),'type':'string','description':a207_0x482db5(0x1b0)},{'name':a207_0x482db5(0x1d0),'type':'boolean','description':a207_0x482db5(0x1d3)}],async 'validate'(_0x302ea5){validateDatasetSelector(_0x302ea5);},async 'dryRun'(_0x4b5cc2){const _0x23dfbb=a207_0x482db5,_0x1e62b8=await prepare(_0x4b5cc2);return{'method':_0x23dfbb(0x1af),'url':_0x23dfbb(0x1d5)+_0x1e62b8[_0x23dfbb(0x1d4)][_0x23dfbb(0x1d9)]+_0x23dfbb(0x1a7),'body':{'appCode':_0x4b5cc2['appCode'],'clientOperationId':_0x1e62b8[_0x23dfbb(0x1a6)]},'description':serializeDryRunDescription({'dataset':{'id':_0x1e62b8[_0x23dfbb(0x1d4)]['id'],'code':_0x1e62b8[_0x23dfbb(0x1d4)][_0x23dfbb(0x1d9)],'name':_0x1e62b8['dataset'][_0x23dfbb(0x1bc)],'fieldCount':_0x1e62b8['dataset'][_0x23dfbb(0x1b7)]},'precheckSource':_0x1e62b8[_0x23dfbb(0x1d1)]?.[_0x23dfbb(0x1bb)]??'related-pages-fallback','action':_0x23dfbb(0x1c4),'clientOperationId':_0x1e62b8[_0x23dfbb(0x1a6)],'plannedStatus':_0x1e62b8[_0x23dfbb(0x1c1)][_0x23dfbb(0x1b1)],'reason':_0x1e62b8['precheck'][_0x23dfbb(0x1bf)]})};},async 'execute'(_0x308b05){const _0x2d63e8=a207_0x482db5;if(!_0x308b05[_0x2d63e8(0x1bd)](_0x2d63e8(0x1d0))){const _0x3eaa4a=await pageGenerateStart['dryRun'](_0x308b05);return{'ok':!![],'message':_0x2d63e8(0x1b2),'data':_0x3eaa4a};}const _0x4d680e=await prepare(_0x308b05);if(!_0x4d680e[_0x2d63e8(0x1c1)][_0x2d63e8(0x1ab)])return{'ok':![],'message':_0x4d680e[_0x2d63e8(0x1c1)][_0x2d63e8(0x1bf)],'data':{'datasetCode':_0x4d680e[_0x2d63e8(0x1d4)][_0x2d63e8(0x1d9)],'pageType':_0x2d63e8(0x1c3),'pagePattern':'CRUD_PAGE_SET','clientOperationId':_0x4d680e[_0x2d63e8(0x1a6)],'precheckSource':_0x4d680e['dataListPageStatus']?.['source']??_0x2d63e8(0x1c2),'status':_0x4d680e[_0x2d63e8(0x1c1)][_0x2d63e8(0x1b1)],'manualResolutionRequired':_0x4d680e[_0x2d63e8(0x1c1)][_0x2d63e8(0x1c8)],'nextAction':_0x4d680e['precheck']['nextAction'],'query':{'command':buildDataListPageStatusQueryCommand(_0x4d680e[_0x2d63e8(0x1d4)][_0x2d63e8(0x1d9)],_0x308b05[_0x2d63e8(0x1be)])},'dataListPageStatus':_0x4d680e[_0x2d63e8(0x1d1)]}};const _0x18b726=await startGenerateDataListPages(_0x308b05[_0x2d63e8(0x1be)],_0x4d680e['dataset']['code'],{'clientOperationId':_0x4d680e[_0x2d63e8(0x1a6)]}),_0xedc5cf=_0x18b726['status']===_0x2d63e8(0x1ae)||_0x18b726[_0x2d63e8(0x1b1)]===_0x2d63e8(0x1ca)?await loadDataListPageStatusForGenerate(_0x308b05,_0x4d680e['dataset'][_0x2d63e8(0x1d9)]):null,_0x393561=assessGenerateOperationState(_0x4d680e[_0x2d63e8(0x1d4)]['code'],_0x18b726[_0x2d63e8(0x1b1)],_0xedc5cf);return{'ok':!![],'message':_0x18b726[_0x2d63e8(0x1d2)]?_0x2d63e8(0x1b8):_0x2d63e8(0x1ba),'data':{'datasetCode':_0x4d680e[_0x2d63e8(0x1d4)][_0x2d63e8(0x1d9)],'appCode':_0x308b05[_0x2d63e8(0x1be)],'pageType':'DATA_LIST','pagePattern':_0x2d63e8(0x1d7),'taskId':_0x18b726[_0x2d63e8(0x1aa)]??null,'operationId':_0x18b726[_0x2d63e8(0x1b9)]??null,'clientOperationId':_0x4d680e[_0x2d63e8(0x1a6)],'jobStatus':_0x18b726[_0x2d63e8(0x1b1)]??null,'progressRate':typeof _0x18b726[_0x2d63e8(0x1c5)]===_0x2d63e8(0x1cb)?_0x18b726[_0x2d63e8(0x1c5)]:null,'currentStep':_0x18b726[_0x2d63e8(0x1c0)]??null,'reused':_0x18b726[_0x2d63e8(0x1d2)]===!![],'status':_0x393561['status'],'manualResolutionRequired':_0x393561[_0x2d63e8(0x1c8)],'nextAction':_0x393561['nextAction'],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x4d680e[_0x2d63e8(0x1d4)][_0x2d63e8(0x1d9)],{'appCode':_0x308b05[_0x2d63e8(0x1be)],'taskId':_0x18b726[_0x2d63e8(0x1aa)],'operationId':_0x18b726[_0x2d63e8(0x1b9)],'clientOperationId':_0x4d680e[_0x2d63e8(0x1a6)]})},'dataListPageStatus':_0xedc5cf}};}};function a207_0x3705(){const _0x5ebe15=['1766510xSJwmZ','code','alias','clientOperationId','/generate-standard-pages/start','DATA_LIST\x20currently\x20has\x20one\x20fixed\x20pattern:\x20CRUD_PAGE_SET.','2445480jIuqFi','taskId','allowGenerate','322ltghSv','926645JQbAwR','SUCCESS','POST','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','status','Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','1816TkpLcV','77nFmGJc','24DLJjEg','page-type','fieldCount','Reusing\x20an\x20existing\x20generate\x20task','operationId','Submitted\x20a\x20generate\x20task','source','name','bool','appCode','message','currentStep','precheck','related-pages-fallback','DATA_LIST','generate-start','progressRate','write','page\x20generate-start\x20does\x20not\x20accept\x20--page-type.','manualResolutionRequired','compress','PARTIAL_SUCCESS','number','738iuiKmW','5137027ICSJWJ','4156072bahOAH','5877wnZsmH','apply','dataListPageStatus','reused','Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.','dataset','/smartapi/lovrabet/dataset/','page\x20generate-start\x20does\x20not\x20accept\x20--page-pattern.','CRUD_PAGE_SET'];a207_0x3705=function(){return _0x5ebe15;};return a207_0x3705();}async function prepare(_0x55a791){const _0x21db43=a207_0x482db5,_0x53b789=await loadDatasetDetailForPage(_0x55a791),_0x5adc56=await loadDataListPageStatusForGenerate(_0x55a791,_0x53b789[_0x21db43(0x1d9)]),_0x12be6d=getUndeletedRelatedPages(_0x53b789);return{'dataset':_0x53b789,'dataListPageStatus':_0x5adc56,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessDataListPageState(_0x53b789[_0x21db43(0x1d9)],_0x5adc56,{'fallbackUndeletedPages':_0x12be6d})};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a208_0x4a2060=a208_0xfc5f;(function(_0x28bfa8,_0x38bb79){const _0x203da7=a208_0xfc5f,_0x476c09=_0x28bfa8();while(!![]){try{const _0x486b33=parseInt(_0x203da7(0xc8))/0x1+parseInt(_0x203da7(0xb4))/0x2*(parseInt(_0x203da7(0xc3))/0x3)+-parseInt(_0x203da7(0xd6))/0x4+-parseInt(_0x203da7(0xc0))/0x5+parseInt(_0x203da7(0xb8))/0x6+parseInt(_0x203da7(0xc6))/0x7+parseInt(_0x203da7(0xc7))/0x8*(-parseInt(_0x203da7(0xbe))/0x9);if(_0x486b33===_0x38bb79)break;else _0x476c09['push'](_0x476c09['shift']());}catch(_0x5733dc){_0x476c09['push'](_0x476c09['shift']());}}}(a208_0x2897,0xa6c91));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessGenerateOperationState,buildPageGenerateOperationStatusQueryCommand,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector,validateGenerateOperationSelector}from'../../commands/page/shared.js';function a208_0x2897(){const _0x3a89f6=['string','progressRate','PARTIAL_SUCCESS','currentStep','GET','clientOperationId','operation-id','appCode','set','4644304RlZigO','result','message','number','manualResolutionRequired','str','105208sRTNKz','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','operationId','page','7188012dghxNP','alias','errorMsg','code','/generate-standard-pages/status?','status','2137635EihHUo','/smartapi/lovrabet/dataset/','4867730VdlNwb','operation_failed','generate-status','6SkQeug','task-id','Query\x20Data\x20List\x20Page\x20generate\x20operation\x20status','5031908aUSUee','16xKGAhw','1270751vapgJM','taskId','query-generate-operation-status','client-operation-id','Async\x20operation\x20id\x20returned\x20by\x20page\x20generate-start'];a208_0x2897=function(){return _0x3a89f6;};return a208_0x2897();}function a208_0xfc5f(_0x19869b,_0x5534c3){_0x19869b=_0x19869b-0xb4;const _0x28972d=a208_0x2897();let _0xfc5f80=_0x28972d[_0x19869b];return _0xfc5f80;}import{getGenerateDataListPagesStatus}from'../../core/api-client.js';export const pageGenerateStatus={'service':a208_0x4a2060(0xb7),'command':a208_0x4a2060(0xc2),'description':a208_0x4a2060(0xc5),'risk':'read','defaultOutputFormat':'compress','flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a208_0x4a2060(0xb9),'type':a208_0x4a2060(0xcd),'description':a208_0x4a2060(0xb5)},{'name':a208_0x4a2060(0xc4),'type':a208_0x4a2060(0xcd),'description':'Generic\x20task\x20id\x20returned\x20by\x20page\x20generate-start'},{'name':a208_0x4a2060(0xd3),'type':a208_0x4a2060(0xcd),'description':a208_0x4a2060(0xcc)},{'name':a208_0x4a2060(0xcb),'type':a208_0x4a2060(0xcd),'description':'Client\x20recovery/idempotency\x20id\x20when\x20operationId\x20is\x20unavailable\x20or\x20lost'}],async 'validate'(_0x14dee8){validateDatasetSelector(_0x14dee8),validateGenerateOperationSelector(_0x14dee8);},async 'dryRun'(_0x2b9117){const _0x1d3bfe=a208_0x4a2060,_0x5d2544=await loadDatasetDetailForPage(_0x2b9117),_0x52b982=_0x2b9117['str'](_0x1d3bfe(0xc4)),_0x99b18c=_0x2b9117['str'](_0x1d3bfe(0xd3)),_0x16352d=_0x2b9117[_0x1d3bfe(0xdb)](_0x1d3bfe(0xcb)),_0x4dea58=new URLSearchParams({'appCode':_0x2b9117['appCode']});return _0x52b982&&_0x4dea58[_0x1d3bfe(0xd5)](_0x1d3bfe(0xc9),_0x52b982),_0x99b18c&&_0x4dea58[_0x1d3bfe(0xd5)](_0x1d3bfe(0xb6),_0x99b18c),_0x16352d&&_0x4dea58['set']('clientOperationId',_0x16352d),{'method':_0x1d3bfe(0xd1),'url':_0x1d3bfe(0xbf)+_0x5d2544[_0x1d3bfe(0xbb)]+_0x1d3bfe(0xbc)+_0x4dea58['toString'](),'description':serializeDryRunDescription({'dataset':{'id':_0x5d2544['id'],'code':_0x5d2544[_0x1d3bfe(0xbb)],'name':_0x5d2544['name']},'action':_0x1d3bfe(0xca),'taskId':_0x52b982||undefined,'operationId':_0x99b18c||undefined,'clientOperationId':_0x16352d||undefined})};},async 'execute'(_0x294447){const _0x4e69ec=a208_0x4a2060,_0x3f02cb=await loadDatasetDetailForPage(_0x294447),_0x1392ec=_0x294447[_0x4e69ec(0xdb)]('task-id'),_0x29c207=_0x294447[_0x4e69ec(0xdb)](_0x4e69ec(0xd3)),_0x252d25=_0x294447[_0x4e69ec(0xdb)](_0x4e69ec(0xcb)),_0x5a7bb4=await getGenerateDataListPagesStatus(_0x294447['appCode'],_0x3f02cb[_0x4e69ec(0xbb)],{'taskId':_0x1392ec||undefined,'operationId':_0x29c207||undefined,'clientOperationId':_0x252d25||undefined}),_0x28f5d9=_0x5a7bb4[_0x4e69ec(0xbd)]==='SUCCESS'||_0x5a7bb4[_0x4e69ec(0xbd)]===_0x4e69ec(0xcf),_0x3e0233=_0x28f5d9?await loadDataListPageStatusForGenerate(_0x294447,_0x3f02cb['code']):null,_0x2b5c65=assessGenerateOperationState(_0x3f02cb[_0x4e69ec(0xbb)],_0x5a7bb4[_0x4e69ec(0xbd)],_0x3e0233),_0x7b0d1a=_0x5a7bb4[_0x4e69ec(0xc9)]??_0x1392ec??undefined,_0x372eaa=_0x5a7bb4['operationId']??_0x29c207??undefined,_0xab46a7=_0x5a7bb4[_0x4e69ec(0xd2)]??_0x252d25??undefined;return{'ok':!![],'message':_0x2b5c65[_0x4e69ec(0xbd)]===_0x4e69ec(0xc1)?_0x5a7bb4[_0x4e69ec(0xba)]||_0x2b5c65[_0x4e69ec(0xd8)]:_0x2b5c65[_0x4e69ec(0xd8)],'data':{'datasetCode':_0x3f02cb['code'],'appCode':_0x294447[_0x4e69ec(0xd4)],'taskId':_0x7b0d1a,'operationId':_0x372eaa,'clientOperationId':_0xab46a7,'jobStatus':_0x5a7bb4['status']??null,'progressRate':typeof _0x5a7bb4[_0x4e69ec(0xce)]===_0x4e69ec(0xd9)?_0x5a7bb4[_0x4e69ec(0xce)]:null,'currentStep':_0x5a7bb4[_0x4e69ec(0xd0)]??null,'errorMsg':_0x5a7bb4['errorMsg']??null,'status':_0x2b5c65[_0x4e69ec(0xbd)],'manualResolutionRequired':_0x2b5c65[_0x4e69ec(0xda)],'nextAction':_0x2b5c65['nextAction'],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x3f02cb['code'],{'appCode':_0x294447[_0x4e69ec(0xd4)],'taskId':_0x7b0d1a,'operationId':_0x372eaa,'clientOperationId':_0xab46a7})},'dataListPageStatus':_0x3e0233,'result':_0x5a7bb4[_0x4e69ec(0xd7)]??null}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x254b38,_0x476cba){const _0x56c6ca=a209_0x3f8d,_0x2fa1e4=_0x254b38();while(!![]){try{const _0x4bb185=parseInt(_0x56c6ca(0xe2))/0x1*(-parseInt(_0x56c6ca(0xe3))/0x2)+parseInt(_0x56c6ca(0xe4))/0x3+-parseInt(_0x56c6ca(0xde))/0x4*(parseInt(_0x56c6ca(0xe0))/0x5)+-parseInt(_0x56c6ca(0xdd))/0x6*(parseInt(_0x56c6ca(0xe5))/0x7)+parseInt(_0x56c6ca(0xe1))/0x8+parseInt(_0x56c6ca(0xdf))/0x9+-parseInt(_0x56c6ca(0xdc))/0xa;if(_0x4bb185===_0x476cba)break;else _0x2fa1e4['push'](_0x2fa1e4['shift']());}catch(_0x58227a){_0x2fa1e4['push'](_0x2fa1e4['shift']());}}}(a209_0x4354,0x33af5));import{pageGenerateStart}from'../../commands/page/generate-start.js';import{pageGenerateStatus}from'../../commands/page/generate-status.js';import{pageDataListStatus}from'../../commands/page/data-list-status.js';import{pageSync}from'../../commands/page/sync.js';import{pagePull}from'../../commands/page/pull.js';import{pagePush}from'../../commands/page/push.js';function a209_0x4354(){const _0x7fe697=['188eLCVCd','2299860DErcYh','5705EFXFoM','2239552ouElxI','53349WBlfvI','2qWOzHJ','179784EUstqN','7kIgLxW','1176940HkeMZl','954246jOnpiM'];a209_0x4354=function(){return _0x7fe697;};return a209_0x4354();}import{pageRelationAudit}from'../../commands/page/relation-audit.js';import{pageRestore}from'../../commands/page/restore.js';import{pageCreate}from'../../commands/page/create.js';function a209_0x3f8d(_0x67059d,_0x33d2c5){_0x67059d=_0x67059d-0xdc;const _0x4354c5=a209_0x4354();let _0x3f8d86=_0x4354c5[_0x67059d];return _0x3f8d86;}import{pageCustomDetail}from'../../commands/page/custom/detail.js';import{pageCustomList}from'../../commands/page/custom/list.js';import{pageCustomPublish}from'../../commands/page/custom/publish.js';import{pageCustomUpdate}from'../../commands/page/custom/update.js';export const pageDefinitions=[pageGenerateStart,pageGenerateStatus,pageDataListStatus,pageRelationAudit,pageSync,pagePull,pagePush,pageRestore,pageCreate,pageCustomList,pageCustomDetail,pageCustomPublish,pageCustomUpdate];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a210_0x53013c=a210_0x1aa0;(function(_0x5dba74,_0xcdfb2a){const _0x45d354=a210_0x1aa0,_0x504918=_0x5dba74();while(!![]){try{const _0x30ae38=-parseInt(_0x45d354(0x9d))/0x1*(parseInt(_0x45d354(0x82))/0x2)+parseInt(_0x45d354(0x78))/0x3*(parseInt(_0x45d354(0xa1))/0x4)+parseInt(_0x45d354(0x92))/0x5*(parseInt(_0x45d354(0xa6))/0x6)+-parseInt(_0x45d354(0x86))/0x7*(parseInt(_0x45d354(0x93))/0x8)+parseInt(_0x45d354(0x6f))/0x9*(parseInt(_0x45d354(0x8a))/0xa)+-parseInt(_0x45d354(0x79))/0xb+parseInt(_0x45d354(0xa2))/0xc;if(_0x30ae38===_0xcdfb2a)break;else _0x504918['push'](_0x504918['shift']());}catch(_0x38152e){_0x504918['push'](_0x504918['shift']());}}}(a210_0x16c9,0x8505e));function a210_0x1aa0(_0x3250bf,_0x4b0ccc){_0x3250bf=_0x3250bf-0x68;const _0x16c9dc=a210_0x16c9();let _0x1aa06a=_0x16c9dc[_0x3250bf];return _0x1aa06a;}import{writeFile}from'node:fs/promises';function a210_0x16c9(){const _0x576a0f=['mode','/smartapi/lovrabet/detail\x20(per\x20selected\x20page)','5MEArqo','136TyaYaN','deleted','/smartapi/lovrabet/detail?pageId=','\x20skipped','compress','pages','toISOString','detail','pageVersion','type','79orRmSa','boolean','Dataset\x20\x22','Overwrite\x20local\x20files\x20even\x20when\x20unsynced\x20local\x20changes\x20exist','592060AyLkQi','5523768jxEzqZ','string','number','appCode','2713992tPqLgk','batch','would_pull','relatedPages','version-tag','GET','Local\x20page\x20file\x20has\x20unsynced\x20changes:\x20','status','Pull\x20complete:\x20','str','9nwwVNg','all','reason','versionTag','datasetIds','pull','lastSync','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','name','3pcLiti','8712473dmsfEf','local\x20unsynced\x20changes','alias','push','items','map','\x22\x20has\x20no\x20undeleted\x20related\x20pages.','validation','Page\x20group\x20version\x20tag\x20(batch\x20mode\x20only)','528TZvCcv','pageId','bool','filter','7651lOACGO','conflict','code','single','3156810QLikUI','lockFilePath','datasetCode','\x20pulled,\x20','localPath','length'];a210_0x16c9=function(){return _0x576a0f;};return a210_0x16c9();}import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getPageIdFlag,loadDatasetDetailForPage,loadPageDetailForPage,selectVersionTagGroup,serializeDryRunDescription,validatePageTargetSelector}from'../../commands/page/shared.js';import{computePageContentHash,computePageFileHash,serializePageSchemaForFile}from'../../core/page/hash.js';import{ensureParentDirectory,fileExists,loadPageProjectConfig,resolvePageFilePath}from'../../core/page/file-system.js';import{createEmptyPageLock,ensurePageLockScope,readPageLockFile,writePageLockFile}from'../../core/page/lock.js';import{CliErrors}from'../../errors.js';export const pagePull={'service':'page','command':a210_0x53013c(0x74),'description':'Pull\x20page\x20schema\x20to\x20local\x20files','risk':'read','defaultOutputFormat':a210_0x53013c(0x97),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':a210_0x53013c(0xa4),'description':'Page\x20ID'},DATASETCODE_FLAG_OPTIONAL,{'name':a210_0x53013c(0x7b),'type':a210_0x53013c(0xa3),'description':a210_0x53013c(0x76)},{'name':a210_0x53013c(0x69),'type':a210_0x53013c(0xa3),'description':a210_0x53013c(0x81)},{'name':'force','type':a210_0x53013c(0x9e),'description':a210_0x53013c(0xa0)}],async 'validate'(_0x2be6e7){validatePageTargetSelector(_0x2be6e7);},async 'dryRun'(_0x55193a){const _0x2fee33=a210_0x53013c,_0xc4e172=await buildPullPlan(_0x55193a);return{'method':_0x2fee33(0x6a),'url':_0xc4e172[_0x2fee33(0x90)]===_0x2fee33(0x89)?_0x2fee33(0x95)+(_0xc4e172['items'][0x0]?.[_0x2fee33(0x9a)]['pageId']??''):_0x2fee33(0x91),'body':{'appCode':_0x55193a['appCode'],'mode':_0xc4e172[_0x2fee33(0x90)],'targetDatasetCode':_0xc4e172[_0x2fee33(0x8c)]??null,'pages':_0xc4e172['items'][_0x2fee33(0x7e)](toPreviewItem)},'description':serializeDryRunDescription({'mode':_0xc4e172[_0x2fee33(0x90)],'datasetCode':_0xc4e172['datasetCode']??null,'totalCandidates':_0xc4e172[_0x2fee33(0x7d)]['length'],'totalWouldPull':_0xc4e172['items'][_0x2fee33(0x85)](_0xea2135=>_0xea2135[_0x2fee33(0x6c)]===_0x2fee33(0xa8))['length'],'totalConflicts':_0xc4e172['items'][_0x2fee33(0x85)](_0x2e186d=>_0x2e186d['status']==='conflict')['length']})};},async 'execute'(_0x1ff34e){const _0x1902ef=a210_0x53013c,_0x5a7af3=loadPageProjectConfig(_0x1ff34e[_0x1902ef(0xa5)]),_0x4cec96=await readPageLockFile(_0x5a7af3[_0x1902ef(0x8b)]),{lockData:_0x3a0f13,appLock:_0x559b74}=ensurePageLockScope(_0x4cec96??createEmptyPageLock(),_0x1ff34e['appCode']),_0x5adb02=await buildPullPlan(_0x1ff34e),_0x4326a7=_0x1ff34e[_0x1902ef(0x84)]('force');if(_0x5adb02[_0x1902ef(0x90)]===_0x1902ef(0x89)&&_0x5adb02[_0x1902ef(0x7d)][0x0]?.[_0x1902ef(0x6c)]===_0x1902ef(0x87)&&!_0x4326a7)throw CliErrors[_0x1902ef(0x80)](_0x1902ef(0x6b)+_0x5adb02[_0x1902ef(0x7d)][0x0]['localPath'],'Use\x20--force\x20to\x20overwrite\x20local\x20changes.');const _0x25c197=[],_0x4c7e9d=[];for(const _0x224118 of _0x5adb02[_0x1902ef(0x7d)]){if(_0x224118[_0x1902ef(0x6c)]==='conflict'&&!_0x4326a7){_0x4c7e9d[_0x1902ef(0x7c)]({'pageId':_0x224118[_0x1902ef(0x9a)][_0x1902ef(0x83)],'type':_0x224118[_0x1902ef(0x9a)][_0x1902ef(0x9c)],'title':_0x224118['detail']['name'],'localPath':_0x224118['localPath'],'reason':_0x224118[_0x1902ef(0x71)]??_0x1902ef(0x7a)});continue;}await ensureParentDirectory(_0x224118[_0x1902ef(0x8e)]);const _0x46bd00=serializePageSchemaForFile(_0x224118[_0x1902ef(0x9a)][_0x1902ef(0x88)]);await writeFile(_0x224118[_0x1902ef(0x8e)],_0x46bd00,'utf8'),_0x559b74['pages'][String(_0x224118[_0x1902ef(0x9a)][_0x1902ef(0x83)])]=buildLockEntry(_0x224118[_0x1902ef(0x9a)],_0x46bd00),_0x25c197[_0x1902ef(0x7c)]({'pageId':_0x224118[_0x1902ef(0x9a)][_0x1902ef(0x83)],'type':_0x224118[_0x1902ef(0x9a)][_0x1902ef(0x9c)],'title':_0x224118[_0x1902ef(0x9a)][_0x1902ef(0x77)],'localPath':_0x224118['localPath']});}return _0x559b74[_0x1902ef(0x75)]=new Date()[_0x1902ef(0x99)](),await writePageLockFile(_0x5a7af3['lockFilePath'],_0x3a0f13),{'ok':!![],'message':_0x1902ef(0x6d)+_0x25c197['length']+_0x1902ef(0x8d)+_0x4c7e9d[_0x1902ef(0x8f)]+_0x1902ef(0x96),'data':{'appCode':_0x1ff34e[_0x1902ef(0xa5)],'pulledPages':_0x25c197,'skippedPages':_0x4c7e9d,'totalPulled':_0x25c197[_0x1902ef(0x8f)],'totalSkipped':_0x4c7e9d['length']}};}};async function buildPullPlan(_0xb2455d){const _0x53cebc=a210_0x53013c,_0x581c73=loadPageProjectConfig(_0xb2455d[_0x53cebc(0xa5)]),_0x2a19c3=await readPageLockFile(_0x581c73[_0x53cebc(0x8b)]),{appLock:_0x591c66}=ensurePageLockScope(_0x2a19c3??createEmptyPageLock(),_0xb2455d[_0x53cebc(0xa5)]),_0x3a45f6=getPageIdFlag(_0xb2455d);if(_0x3a45f6!==undefined){const _0x52d0e3=await loadPageDetailForPage(_0xb2455d,_0x3a45f6);return{'mode':_0x53cebc(0x89),'items':[await inspectPullTarget(_0x581c73,_0x591c66[_0x53cebc(0x98)][String(_0x52d0e3[_0x53cebc(0x83)])],_0x52d0e3)]};}const _0x54aaae=await loadDatasetDetailForPage(_0xb2455d),_0x5122c9=_0x54aaae[_0x53cebc(0x68)][_0x53cebc(0x85)](_0x58fbdd=>!_0x58fbdd[_0x53cebc(0x94)]);if(_0x5122c9[_0x53cebc(0x8f)]===0x0)throw CliErrors[_0x53cebc(0x80)](_0x53cebc(0x9f)+_0x54aaae['code']+_0x53cebc(0x7f));const _0xc41d19=await Promise[_0x53cebc(0x70)](_0x5122c9[_0x53cebc(0x7e)](_0x4b1524=>loadPageDetailForPage(_0xb2455d,_0x4b1524['id']))),_0xe5fc9d=selectVersionTagGroup(_0xc41d19,_0x3fcc01=>_0x3fcc01[_0x53cebc(0x72)],_0xb2455d[_0x53cebc(0x6e)](_0x53cebc(0x69)));return{'mode':_0x53cebc(0xa7),'datasetCode':_0x54aaae[_0x53cebc(0x88)],'items':await Promise[_0x53cebc(0x70)](_0xe5fc9d[_0x53cebc(0x7d)][_0x53cebc(0x7e)](_0x436f40=>inspectPullTarget(_0x581c73,_0x591c66[_0x53cebc(0x98)][String(_0x436f40[_0x53cebc(0x83)])],_0x436f40)))};}async function inspectPullTarget(_0x2610d6,_0x39faaf,_0xf0a79c){const _0x5cd1b0=a210_0x53013c,_0x1aa285=resolvePageFilePath(_0x2610d6,_0xf0a79c['pageId'],_0xf0a79c['type']),_0x32814d=await fileExists(_0x1aa285);if(!_0x32814d){const _0x15d33a=serializePageSchemaForFile(_0xf0a79c[_0x5cd1b0(0x88)]);return{'detail':_0xf0a79c,'localPath':_0x1aa285,'localHash':computePageContentHash(_0x15d33a),'status':'would_pull'};}const _0x14aa2e=await computePageFileHash(_0x1aa285);if(!_0x39faaf||_0x14aa2e!==_0x39faaf['hash'])return{'detail':_0xf0a79c,'localPath':_0x1aa285,'localHash':_0x14aa2e,'status':_0x5cd1b0(0x87),'reason':_0x5cd1b0(0x7a)};return{'detail':_0xf0a79c,'localPath':_0x1aa285,'localHash':_0x14aa2e,'status':'would_pull'};}function buildLockEntry(_0x4571c3,_0x4fc17b){const _0x2cee12=a210_0x53013c;return{'hash':computePageContentHash(_0x4fc17b),'pageId':_0x4571c3[_0x2cee12(0x83)],'pageVersion':_0x4571c3[_0x2cee12(0x9b)],'type':_0x4571c3[_0x2cee12(0x9c)],'title':_0x4571c3[_0x2cee12(0x77)],'datasetIds':_0x4571c3[_0x2cee12(0x73)],'versionTag':_0x4571c3[_0x2cee12(0x72)]};}function toPreviewItem(_0x40a2fc){const _0x5b296d=a210_0x53013c;return{'pageId':_0x40a2fc['detail'][_0x5b296d(0x83)],'type':_0x40a2fc[_0x5b296d(0x9a)]['type'],'title':_0x40a2fc[_0x5b296d(0x9a)][_0x5b296d(0x77)],'localPath':_0x40a2fc[_0x5b296d(0x8e)],'status':_0x40a2fc['status'],..._0x40a2fc[_0x5b296d(0x71)]?{'reason':_0x40a2fc[_0x5b296d(0x71)]}:{}};}
|