@lovrabet/rabetbase-cli 2.5.4-beta.4 → 2.5.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 +8 -2
- 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.d.ts +2 -0
- package/lib/commands/app/detail.js +1 -0
- 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/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/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/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.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.d.ts +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.d.ts +3 -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.d.ts +2 -0
- package/lib/commands/menu/shared/path.js +1 -0
- package/lib/commands/menu/shared/service.d.ts +6 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.d.ts +28 -0
- package/lib/commands/menu/shared/subapp-assets.js +1 -0
- package/lib/commands/menu/shared/sync-core.d.ts +2 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/types.d.ts +14 -4
- 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.d.ts +2 -0
- package/lib/commands/menu/subapp-assets-status.js +1 -0
- package/lib/commands/menu/subapp-assets-update.d.ts +2 -0
- package/lib/commands/menu/subapp-assets-update.js +1 -0
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +15 -0
- 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-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-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/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +21 -12
- package/skills/rabetbase/guides/backend-function.md +2 -7
- package/skills/rabetbase/guides/bff-creation-workflow.md +24 -23
- package/skills/rabetbase/guides/host-frontend-integration.md +62 -0
- package/skills/rabetbase/guides/independent-deployment.md +45 -0
- package/skills/rabetbase/guides/troubleshooting.md +9 -1
- package/skills/rabetbase/references/rabetbase-app-detail.md +31 -0
- package/skills/rabetbase/references/rabetbase-bff-detail.md +1 -1
- package/skills/rabetbase/references/rabetbase-bff-push.md +2 -2
- package/skills/rabetbase/references/rabetbase-data-list-status.md +1 -0
- package/skills/rabetbase/references/rabetbase-deployment-sync-all.md +5 -1
- package/skills/rabetbase/references/rabetbase-menu-asset-update.md +9 -7
- package/skills/rabetbase/references/rabetbase-menu-list.md +2 -2
- package/skills/rabetbase/references/rabetbase-menu-subapp-assets-status.md +19 -0
- package/skills/rabetbase/references/rabetbase-menu-subapp-assets-update.md +27 -0
- package/skills/rabetbase/references/rabetbase-menu-sync.md +40 -14
- package/skills/rabetbase/references/rabetbase-page-create.md +1 -1
- package/skills/rabetbase/references/rabetbase-page-generate-start.md +5 -3
- package/skills/rabetbase/references/rabetbase-page-generate-status.md +1 -0
- package/skills/rabetbase.manifest.json +8 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a190_0x5e23(){const _0x491d16=['4OmyjXR','208995TEtRmt','2712EcCgKy','846jJgHNj','Found\x20','1358IrcPjw','type','1131528NHIzjO','15TnjTpE','1393106MPasLI','path','79993hQmCIq','menus','label','6740TSPxob','List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','\x20Custom\x20Page(s).','cookie','flatMap','pageId','128092dFEXra','appCode','custom-list','length','read','react','compress'];a190_0x5e23=function(){return _0x491d16;};return a190_0x5e23();}const a190_0x532139=a190_0x5b2c;(function(_0x2011c3,_0x2cc219){const _0x1f5ca2=a190_0x5b2c,_0x2067a3=_0x2011c3();while(!![]){try{const _0x49a1ab=-parseInt(_0x1f5ca2(0x171))/0x1+-parseInt(_0x1f5ca2(0x166))/0x2*(parseInt(_0x1f5ca2(0x167))/0x3)+parseInt(_0x1f5ca2(0x17a))/0x4*(parseInt(_0x1f5ca2(0x16e))/0x5)+parseInt(_0x1f5ca2(0x168))/0x6*(-parseInt(_0x1f5ca2(0x16b))/0x7)+parseInt(_0x1f5ca2(0x16d))/0x8+parseInt(_0x1f5ca2(0x169))/0x9*(parseInt(_0x1f5ca2(0x174))/0xa)+parseInt(_0x1f5ca2(0x16f))/0xb;if(_0x49a1ab===_0x2cc219)break;else _0x2067a3['push'](_0x2067a3['shift']());}catch(_0x29451d){_0x2067a3['push'](_0x2067a3['shift']());}}}(a190_0x5e23,0x1d6b5));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,buildCustomPageRuntimeUrl}from'./shared.js';function a190_0x5b2c(_0x3b74a0,_0x540399){_0x3b74a0=_0x3b74a0-0x163;const _0x5e23f7=a190_0x5e23();let _0x5b2cf3=_0x5e23f7[_0x3b74a0];return _0x5b2cf3;}export const pageCustomList={'service':'page','command':a190_0x532139(0x17c),'description':a190_0x532139(0x175),'risk':a190_0x532139(0x163),'defaultOutputFormat':a190_0x532139(0x165),'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0xd06a17){const _0x374dd1=a190_0x532139,_0x27f294=(await fetchMenuSnapshot(_0xd06a17[_0x374dd1(0x17b)],_0xd06a17[_0x374dd1(0x177)]))[_0x374dd1(0x172)][_0x374dd1(0x178)](_0x10d997=>{const _0x148219=_0x374dd1;if(_0x10d997[_0x148219(0x16c)]!==_0x148219(0x164)||_0x10d997[_0x148219(0x179)]==null)return[];const _0x453e1b=buildCustomPageDevelopmentUrl(_0xd06a17[_0x148219(0x17b)],_0x10d997[_0x148219(0x170)]),_0x4baee7=buildCustomPageRuntimeUrl(_0xd06a17[_0x148219(0x17b)],_0x10d997[_0x148219(0x170)]),_0x49f860=buildCustomPageEditUrl(_0xd06a17[_0x148219(0x17b)],_0x10d997[_0x148219(0x179)]);return[{'pageId':_0x10d997[_0x148219(0x179)],'label':_0x10d997[_0x148219(0x173)],'path':_0x10d997['path'],..._0x453e1b?{'pageUrl':_0x453e1b}:{},..._0x4baee7?{'runtimePageUrl':_0x4baee7}:{},..._0x49f860?{'editPageUrl':_0x49f860}:{}}];});return{'ok':!![],'data':{'pages':_0x27f294},'message':_0x27f294[_0x374dd1(0x17d)]===0x0?'No\x20Custom\x20Pages\x20found.':_0x374dd1(0x16a)+_0x27f294[_0x374dd1(0x17d)]+_0x374dd1(0x176)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a191_0x57f81d=a191_0x414a;(function(_0x48c2c4,_0x905ede){const _0x16861f=a191_0x414a,_0x42e8fd=_0x48c2c4();while(!![]){try{const _0x1e42da=parseInt(_0x16861f(0xb9))/0x1+-parseInt(_0x16861f(0xc3))/0x2*(parseInt(_0x16861f(0xcd))/0x3)+parseInt(_0x16861f(0xb4))/0x4+-parseInt(_0x16861f(0xb6))/0x5+parseInt(_0x16861f(0xbb))/0x6*(parseInt(_0x16861f(0xd1))/0x7)+parseInt(_0x16861f(0xba))/0x8*(-parseInt(_0x16861f(0xcb))/0x9)+parseInt(_0x16861f(0xd3))/0xa;if(_0x1e42da===_0x905ede)break;else _0x42e8fd['push'](_0x42e8fd['shift']());}catch(_0x201ab9){_0x42e8fd['push'](_0x42e8fd['shift']());}}}(a191_0x1a4d,0x76c8f));import{getCustomPageSource,publishCustomPage}from'../../../core/api-client.js';import{CliErrors}from'../../../errors.js';function a191_0x414a(_0x7e389,_0x50ea08){_0x7e389=_0x7e389-0xb3;const _0x1a4d69=a191_0x1a4d();let _0x414a7f=_0x1a4d69[_0x7e389];return _0x414a7f;}import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,resolveCustomPageDevelopmentUrl}from'./shared.js';function a191_0x1a4d(){const _0x459a84=['remark','pageId','FORMAL','223404ysSGqz','warnings','appCode','Published\x20Custom\x20Page\x20','Custom\x20Page\x20ID','compress','string','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.','36DZNqUm','Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.','15ZNUbig','status','number','apiError','1001ngamRV','runtimePageUrl','603290tEBsSU','page','write','2279936ygEWtl','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','2245540hUkiHR','/smartapi/webcode/file/publish','trim','619430VXFopR','309104AaOdGL','16740uVMPNm','push','pageCode','Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page'];a191_0x1a4d=function(){return _0x459a84;};return a191_0x1a4d();}export const pageCustomPublish={'service':a191_0x57f81d(0xd4),'command':'custom-publish','description':a191_0x57f81d(0xbf),'risk':a191_0x57f81d(0xb3),'defaultOutputFormat':a191_0x57f81d(0xc8),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a191_0x57f81d(0xcf),'required':!![],'description':a191_0x57f81d(0xc7)},{'name':a191_0x57f81d(0xc0),'type':a191_0x57f81d(0xc9),'description':'Optional\x20publish\x20remark'}],async 'validate'(_0x44e0dc){readCustomPageId(_0x44e0dc);},async 'dryRun'(_0x6d110c){const _0x2c85bc=a191_0x57f81d,_0xe90fb8=readInput(_0x6d110c);return{'method':'POST','url':_0x2c85bc(0xb7),'body':{'id':_0xe90fb8[_0x2c85bc(0xc1)],..._0xe90fb8['remark']?{'remark':_0xe90fb8['remark']}:{}},'description':'Would\x20publish\x20Custom\x20Page\x20'+_0xe90fb8[_0x2c85bc(0xc1)]+'.'};},async 'execute'(_0x580708){const _0x22900e=a191_0x57f81d,_0x3b3c1f=readInput(_0x580708);await getCustomPageSource(_0x3b3c1f[_0x22900e(0xc1)]);const _0x48703c=await publishCustomPage(_0x3b3c1f);if(!Number['isInteger'](_0x48703c)||_0x48703c!==_0x3b3c1f['pageId'])throw CliErrors[_0x22900e(0xd0)](_0x22900e(0xcc));const _0x31163d=await getCustomPageSource(_0x3b3c1f[_0x22900e(0xc1)]);if(_0x31163d[_0x22900e(0xce)]!==_0x22900e(0xc2))throw CliErrors['apiError'](_0x22900e(0xbe)+(_0x31163d[_0x22900e(0xce)]??'unknown')+'.');const _0x1cf451=_0x31163d['appCode']?.[_0x22900e(0xb8)](),_0x34410f=buildCustomPageEditUrl(_0x1cf451,_0x3b3c1f[_0x22900e(0xc1)]),_0x51a9f7=await resolveCustomPageDevelopmentUrl(_0x1cf451,_0x3b3c1f[_0x22900e(0xc1)],_0x580708['cookie']),_0x4ef744=buildMutationData(_0x3b3c1f,!![],_0x51a9f7,_0x34410f);_0x1cf451&&!_0x51a9f7&&_0x4ef744[_0x22900e(0xc4)][_0x22900e(0xbc)](_0x22900e(0xb5));const _0x4fbdc4=buildCustomPageRuntimeUrl(_0x31163d[_0x22900e(0xc5)],_0x31163d[_0x22900e(0xbd)]);return _0x4fbdc4?_0x4ef744[_0x22900e(0xd2)]=_0x4fbdc4:_0x4ef744[_0x22900e(0xc4)][_0x22900e(0xbc)](_0x22900e(0xca)),{'ok':!![],'data':_0x4ef744,'message':_0x22900e(0xc6)+_0x3b3c1f[_0x22900e(0xc1)]+'.'};}};function readInput(_0x493446){const _0xda1986=a191_0x57f81d,_0x10a3d4=readCustomPageId(_0x493446),_0x3af597=_0x493446['str']('remark')[_0xda1986(0xb8)]();return{'pageId':_0x10a3d4,..._0x3af597?{'remark':_0x3af597}:{}};}function buildMutationData(_0x215062,_0x3c5f3=![],_0x6b3e76,_0x580880){const _0x5c24f7=a191_0x57f81d;return{'operation':'page.custom-publish','selector':{'pageId':_0x215062[_0x5c24f7(0xc1)]},'before':null,'after':{'pageId':_0x215062[_0x5c24f7(0xc1)],'status':_0x5c24f7(0xc2)},'dryRun':!_0x3c5f3,'request':_0x215062,..._0x6b3e76?{'pageUrl':_0x6b3e76}:{},..._0x580880?{'editPageUrl':_0x580880}:{},'warnings':[]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a192_0x1af7(){const _0x5f27fb=['path','733565sGBRGR','validation','type','/ide/','1066792rpKofM','516766AmVYpA','15762HPVrag','30eUjUkx','length','message','find','--id\x20must\x20be\x20a\x20positive\x20integer.','file','6KCPjTE','join','9438708pqjKrO','Invalid\x20Custom\x20Page\x20content:\x20','menus','pageId','9bNsFKe','936465MIomVX','map','856801TqrNWG','1VCKfve','4LmHRYW'];a192_0x1af7=function(){return _0x5f27fb;};return a192_0x1af7();}(function(_0x230ca2,_0x2f1706){const _0x38d476=a192_0x27ae,_0x125626=_0x230ca2();while(!![]){try{const _0x5ba124=-parseInt(_0x38d476(0x9c))/0x1*(parseInt(_0x38d476(0xa4))/0x2)+-parseInt(_0x38d476(0xa5))/0x3*(-parseInt(_0x38d476(0x9d))/0x4)+-parseInt(_0x38d476(0x99))/0x5+-parseInt(_0x38d476(0x92))/0x6*(parseInt(_0x38d476(0x9f))/0x7)+parseInt(_0x38d476(0xa3))/0x8*(parseInt(_0x38d476(0x98))/0x9)+-parseInt(_0x38d476(0xa6))/0xa*(parseInt(_0x38d476(0x9b))/0xb)+parseInt(_0x38d476(0x94))/0xc;if(_0x5ba124===_0x2f1706)break;else _0x125626['push'](_0x125626['shift']());}catch(_0x5b1d8a){_0x125626['push'](_0x125626['shift']());}}}(a192_0x1af7,0x226da));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';function a192_0x27ae(_0x3e8b4c,_0x36a6e5){_0x3e8b4c=_0x3e8b4c-0x8d;const _0x1af78f=a192_0x1af7();let _0x27ae7d=_0x1af78f[_0x3e8b4c];return _0x27ae7d;}import{getAppBaseUrl,getPublishedAppDomain}from'../../../constant/domain.js';import{CliErrors}from'../../../errors.js';import{validateCustomPageSourceFiles}from'./syntax.js';export const CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL={...APPCODE_FLAG_OPTIONAL,'description':'Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted'};function trimOptional(_0x1d7e02){return _0x1d7e02?.['trim']()||undefined;}export function buildCustomPageRuntimeUrl(_0x50c44b,_0x50d033){const _0x619d7f=trimOptional(_0x50c44b),_0xa3f83=trimOptional(_0x50d033);if(!_0x619d7f||!_0xa3f83)return undefined;return getPublishedAppDomain(_0x619d7f)+'/'+encodeURIComponent(_0xa3f83);}export function buildCustomPageDevelopmentUrl(_0x2ed2dd,_0x1ab8ff){const _0x4ed895=trimOptional(_0x2ed2dd),_0x17fd2a=trimOptional(_0x1ab8ff);if(!_0x4ed895||!_0x17fd2a)return undefined;return getAppBaseUrl(_0x4ed895)+'/pages/'+encodeURIComponent(_0x17fd2a);}export async function resolveCustomPageDevelopmentUrl(_0x14f099,_0x34877d,_0x5db9fe){const _0x507632=a192_0x27ae,_0x427dad=trimOptional(_0x14f099);if(!_0x427dad)return undefined;try{const _0xc44261=(await fetchMenuSnapshot(_0x427dad,_0x5db9fe))[_0x507632(0x96)][_0x507632(0x8f)](_0x1c0ba5=>_0x1c0ba5[_0x507632(0xa1)]==='react'&&_0x1c0ba5[_0x507632(0x97)]===_0x34877d);return buildCustomPageDevelopmentUrl(_0x427dad,_0xc44261?.[_0x507632(0x9e)]);}catch{return undefined;}}export function buildCustomPageEditUrl(_0x2b7691,_0x1e1989){const _0x15c2c3=a192_0x27ae,_0x1ed16c=trimOptional(_0x2b7691);if(!_0x1ed16c)return;const _0x1cc753=trimOptional(String(_0x1e1989??''));if(!_0x1cc753)return;return getAppBaseUrl(_0x1ed16c)+_0x15c2c3(0xa2)+encodeURIComponent(_0x1cc753);}export async function validateCustomPageContent(_0x38d6ee){const _0x42eb5a=a192_0x27ae,_0x7500e3=await validateCustomPageSourceFiles(_0x38d6ee);if(_0x7500e3[_0x42eb5a(0x8d)]>0x0)throw CliErrors[_0x42eb5a(0xa0)](_0x42eb5a(0x95)+_0x7500e3[_0x42eb5a(0x9a)](_0x575e20=>_0x575e20[_0x42eb5a(0x91)]+':\x20'+_0x575e20[_0x42eb5a(0x8e)])[_0x42eb5a(0x93)](';\x20'));}export function readCustomPageId(_0x31c106){const _0x31c792=a192_0x27ae,_0x28d8bb=_0x31c106['num']('id');if(!Number['isInteger'](_0x28d8bb)||_0x28d8bb<=0x0)throw CliErrors['validation'](_0x31c792(0x90));return _0x28d8bb;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a193_0x3a67(_0x245434,_0x261ac7){_0x245434=_0x245434-0x185;const _0x3a8d53=a193_0x3a8d();let _0x3a6781=_0x3a8d53[_0x245434];return _0x3a6781;}const a193_0x5c9638=a193_0x3a67;function a193_0x3a8d(){const _0x423e4c=['8uzVDaF','map','9397451uvOpmE','entries','97930dYEluu','.tsx','1255952cAIvfu','5484005UrXtRl','6RKBgZC','page\x20files','all','message','6sXWhlo','filter','toLowerCase','160791BngwwR','endsWith','29153883UJnZlW','trim','babel','typescript','805668apjzEF','1089xgLllX','some'];a193_0x3a8d=function(){return _0x423e4c;};return a193_0x3a8d();}(function(_0x1ce7dd,_0x480889){const _0x1d22b4=a193_0x3a67,_0x155ab3=_0x1ce7dd();while(!![]){try{const _0x3915ae=parseInt(_0x1d22b4(0x198))/0x1+parseInt(_0x1d22b4(0x186))/0x2*(-parseInt(_0x1d22b4(0x195))/0x3)+-parseInt(_0x1d22b4(0x18f))/0x4+-parseInt(_0x1d22b4(0x190))/0x5*(parseInt(_0x1d22b4(0x191))/0x6)+parseInt(_0x1d22b4(0x18b))/0x7*(parseInt(_0x1d22b4(0x189))/0x8)+-parseInt(_0x1d22b4(0x187))/0x9*(parseInt(_0x1d22b4(0x18d))/0xa)+parseInt(_0x1d22b4(0x19a))/0xb;if(_0x3915ae===_0x480889)break;else _0x155ab3['push'](_0x155ab3['shift']());}catch(_0x4ded4b){_0x155ab3['push'](_0x155ab3['shift']());}}}(a193_0x3a8d,0xb7a63));import{format}from'prettier';const SOURCE_PARSERS={'.js':a193_0x5c9638(0x19c),'.jsx':a193_0x5c9638(0x19c),'.ts':'typescript','.tsx':a193_0x5c9638(0x185)},CUSTOM_PAGE_EXTENSIONS=['.jsx',a193_0x5c9638(0x18e)];export async function validateCustomPageSourceFiles(_0x44fb7d){const _0x2985a6=a193_0x5c9638,_0x423a7f=Object[_0x2985a6(0x18c)](_0x44fb7d)[_0x2985a6(0x196)](([_0x50734f])=>getParser(_0x50734f));if(!_0x423a7f[_0x2985a6(0x188)](([_0x3dfece])=>isReactSourceFile(_0x3dfece)))return[{'file':_0x2985a6(0x192),'message':'Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx'}];const _0x4fe90a=await Promise[_0x2985a6(0x193)](_0x423a7f[_0x2985a6(0x18a)](async([_0xb94c89,_0x540b21])=>{const _0x300642=_0x2985a6;try{return await format(_0x540b21,{'parser':getParser(_0xb94c89)}),undefined;}catch(_0x4f759e){return{'file':_0xb94c89,'message':_0x4f759e instanceof Error?_0x4f759e[_0x300642(0x194)]:String(_0x4f759e)};}}));return _0x4fe90a[_0x2985a6(0x196)](_0x5541c8=>_0x5541c8!==undefined);}function getParser(_0x4003f3){const _0x22ea39=a193_0x5c9638,_0x2b6a1d=_0x4003f3[_0x22ea39(0x19b)]()['toLowerCase']();return Object['entries'](SOURCE_PARSERS)['find'](([_0x140b8f])=>_0x2b6a1d[_0x22ea39(0x199)](_0x140b8f))?.[0x1];}function isReactSourceFile(_0x17d7af){const _0x4e6ff5=a193_0x5c9638,_0x4cb5c9=_0x17d7af['trim']()[_0x4e6ff5(0x197)]();return CUSTOM_PAGE_EXTENSIONS[_0x4e6ff5(0x188)](_0xe4b8f2=>_0x4cb5c9[_0x4e6ff5(0x199)](_0xe4b8f2));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a194_0x7af4(_0x1ef09f,_0x5ec0a2){_0x1ef09f=_0x1ef09f-0x1ce;const _0x112bf6=a194_0x112b();let _0x7af4a=_0x112bf6[_0x1ef09f];return _0x7af4a;}const a194_0x70ac56=a194_0x7af4;(function(_0xdbe073,_0x4db89a){const _0x439c07=a194_0x7af4,_0x334d5a=_0xdbe073();while(!![]){try{const _0x10c7ab=-parseInt(_0x439c07(0x1ec))/0x1+parseInt(_0x439c07(0x1e2))/0x2+parseInt(_0x439c07(0x1ee))/0x3*(parseInt(_0x439c07(0x1f1))/0x4)+-parseInt(_0x439c07(0x1df))/0x5+-parseInt(_0x439c07(0x1cf))/0x6*(-parseInt(_0x439c07(0x1d2))/0x7)+parseInt(_0x439c07(0x1d7))/0x8+-parseInt(_0x439c07(0x1dd))/0x9;if(_0x10c7ab===_0x4db89a)break;else _0x334d5a['push'](_0x334d5a['shift']());}catch(_0x4b93d0){_0x334d5a['push'](_0x334d5a['shift']());}}}(a194_0x112b,0x965f7));import{getCustomPageSource,updateCustomPageContent}from'../../../core/api-client.js';function a194_0x112b(){const _0x1b3f97=['appCode','6101905TCzcsW','Custom\x20Page\x20ID','string','1194482dUcPpC','pageContent','Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.','page-content','Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.','page-dir','write','page','Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','page.custom-update','1106234pFFGwp','/smartapi/webcode/page/update/content','3PocSUe','page\x20custom-update\x20no\x20longer\x20accepts\x20--page-content.','trim','2556712UhWPZf','Directory\x20containing\x20all\x20complete\x20page\x20files','custom-update','18jblzBo','Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20','number','2092538XeKaVT','validation','isInteger','newVersion','Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20','8121112jUAcxr','apiError','POST','appcode','str','pageId','1852362ccyrJa'];a194_0x112b=function(){return _0x1b3f97;};return a194_0x112b();}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';export const pageCustomUpdate={'service':a194_0x70ac56(0x1e9),'command':a194_0x70ac56(0x1ce),'description':'Save\x20all\x20files\x20of\x20a\x20Custom\x20Page','risk':a194_0x70ac56(0x1e8),'defaultOutputFormat':'compress','structuredErrors':!![],'requiresAppCode':![],'rejectedFlags':[{'name':a194_0x70ac56(0x1e5),'message':a194_0x70ac56(0x1ef),'hint':a194_0x70ac56(0x1e6)}],'flags':[{'name':'id','type':a194_0x70ac56(0x1d1),'required':!![],'description':a194_0x70ac56(0x1e0)},{'name':a194_0x70ac56(0x1e7),'type':a194_0x70ac56(0x1e1),'required':!![],'description':a194_0x70ac56(0x1f2)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4426f2){readCustomPageId(_0x4426f2),await readValidatedPageContent(_0x4426f2);},async 'dryRun'(_0x2e4aef){const _0x44e279=a194_0x70ac56,_0xfe1301=await readInput(_0x2e4aef);return{'method':_0x44e279(0x1d9),'url':_0x44e279(0x1ed),'body':{'id':_0xfe1301[_0x44e279(0x1dc)],'codeContent':_0xfe1301[_0x44e279(0x1e3)]},'description':_0x44e279(0x1d0)+_0xfe1301[_0x44e279(0x1dc)]+'.'};},async 'execute'(_0x19ecd5){const _0x11e2bf=a194_0x70ac56,_0x1a78cd=await readInput(_0x19ecd5),_0x47eeb2=await updateCustomPageContent({'pageId':_0x1a78cd['pageId'],'pageContent':_0x1a78cd[_0x11e2bf(0x1e3)]});if(!Number[_0x11e2bf(0x1d4)](_0x47eeb2[_0x11e2bf(0x1d5)])||_0x47eeb2[_0x11e2bf(0x1d5)]<=0x0)throw CliErrors[_0x11e2bf(0x1d8)](_0x11e2bf(0x1e4));const _0x41a3ea=buildCustomPageEditUrl(_0x1a78cd[_0x11e2bf(0x1de)],_0x1a78cd[_0x11e2bf(0x1dc)]),_0x3b145d=await resolveCustomPageDevelopmentUrl(_0x1a78cd[_0x11e2bf(0x1de)],_0x1a78cd[_0x11e2bf(0x1dc)],_0x19ecd5['cookie']);return{'ok':!![],'data':{'operation':_0x11e2bf(0x1eb),'selector':{'appCode':_0x1a78cd[_0x11e2bf(0x1de)],'pageId':_0x1a78cd[_0x11e2bf(0x1dc)]},'before':null,'after':{'pageId':_0x47eeb2[_0x11e2bf(0x1dc)],'version':_0x47eeb2[_0x11e2bf(0x1d5)],'pageContent':_0x1a78cd[_0x11e2bf(0x1e3)]},'dryRun':![],'request':_0x1a78cd,..._0x3b145d?{'pageUrl':_0x3b145d}:{},..._0x41a3ea?{'editPageUrl':_0x41a3ea}:{},'warnings':_0x3b145d?[]:[_0x11e2bf(0x1ea)]},'message':'Updated\x20Custom\x20Page\x20'+_0x1a78cd['pageId']+'.'};}};async function readInput(_0x56efff){const _0x53b505=a194_0x70ac56,_0x513cb8=readCustomPageId(_0x56efff),_0x21e16e=_0x56efff[_0x53b505(0x1db)](_0x53b505(0x1da))[_0x53b505(0x1f0)]()||(await getCustomPageSource(_0x513cb8))[_0x53b505(0x1de)]?.['trim']();if(!_0x21e16e)throw CliErrors[_0x53b505(0x1d3)](_0x53b505(0x1d6)+_0x513cb8+'.');return{'appCode':_0x21e16e,'pageId':_0x513cb8,'pageContent':await readValidatedPageContent(_0x56efff)};}async function readValidatedPageContent(_0x53d40a){const _0x43d661=a194_0x70ac56,_0x11ba32=await readCustomPageDirectory(_0x53d40a[_0x43d661(0x1db)](_0x43d661(0x1e7)));return await validateCustomPageContent(_0x11ba32),_0x11ba32;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a195_0x92175e=a195_0x3cab;function a195_0x3cab(_0x51ff05,_0x4ad430){_0x51ff05=_0x51ff05-0xde;const _0x1fb60e=a195_0x1fb6();let _0x3cabe0=_0x1fb60e[_0x51ff05];return _0x3cabe0;}(function(_0x4658c0,_0x7ff845){const _0x489e58=a195_0x3cab,_0x3ba3b3=_0x4658c0();while(!![]){try{const _0x43db98=parseInt(_0x489e58(0xe9))/0x1+parseInt(_0x489e58(0xe5))/0x2+parseInt(_0x489e58(0xeb))/0x3*(-parseInt(_0x489e58(0xde))/0x4)+parseInt(_0x489e58(0xef))/0x5+parseInt(_0x489e58(0xe8))/0x6+-parseInt(_0x489e58(0xf7))/0x7+-parseInt(_0x489e58(0xe3))/0x8*(parseInt(_0x489e58(0xf4))/0x9);if(_0x43db98===_0x7ff845)break;else _0x3ba3b3['push'](_0x3ba3b3['shift']());}catch(_0x20672e){_0x3ba3b3['push'](_0x3ba3b3['shift']());}}}(a195_0x1fb6,0xef63f));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessDataListPageState,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';export const pageDataListStatus={'service':a195_0x92175e(0xe0),'command':a195_0x92175e(0xf5),'description':a195_0x92175e(0xf0),'risk':'read','defaultOutputFormat':a195_0x92175e(0xe6),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a195_0x92175e(0xf1),'type':'string','description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'}],async 'validate'(_0x49ef3c){validateDatasetSelector(_0x49ef3c);},async 'dryRun'(_0x307c86){const _0x548936=a195_0x92175e,_0x119384=await loadDatasetDetailForPage(_0x307c86);return{'method':_0x548936(0xed),'url':_0x548936(0xea)+_0x119384['code']+_0x548936(0xf6)+encodeURIComponent(_0x307c86[_0x548936(0xf2)]),'description':serializeDryRunDescription({'dataset':{'id':_0x119384['id'],'code':_0x119384[_0x548936(0xe7)],'name':_0x119384[_0x548936(0xe1)]},'action':'query-data-list-status'})};},async 'execute'(_0x2954b1){const _0x233af9=a195_0x92175e,_0x2dceda=await loadDatasetDetailForPage(_0x2954b1),_0x261953=await loadDataListPageStatusForGenerate(_0x2954b1,_0x2dceda[_0x233af9(0xe7)]),_0x4bb99c=getUndeletedRelatedPages(_0x2dceda),_0x21e521=assessDataListPageState(_0x2dceda['code'],_0x261953,{'fallbackUndeletedPages':_0x4bb99c});return{'ok':!![],'data':{'datasetCode':_0x2dceda[_0x233af9(0xe7)],'precheckSource':_0x261953?.[_0x233af9(0xf3)]??_0x233af9(0xee),'status':_0x21e521[_0x233af9(0xf8)],'manualResolutionRequired':_0x21e521[_0x233af9(0xec)],'nextAction':_0x21e521[_0x233af9(0xe4)],'dataListPageStatus':_0x261953,'relatedPages':{'total':_0x2dceda[_0x233af9(0xe2)][_0x233af9(0xdf)],'undeletedCount':_0x4bb99c['length']}}};}};function a195_0x1fb6(){const _0xa6aecc=['18OlrofF','data-list-status','/standard-page-status?appCode=','10380097xleiNB','status','4536340XMbHBj','length','page','name','relatedPages','3798688IymrAH','nextAction','3340606rVfEJV','compress','code','2434740pwMEaO','1004447whEjNa','/smartapi/lovrabet/dataset/','3DrIERs','manualResolutionRequired','GET','related-pages-fallback','7333155DuPyUi','Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','alias','appCode','source'];a195_0x1fb6=function(){return _0xa6aecc;};return a195_0x1fb6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a196_0x4f79fc=a196_0x1a8c;(function(_0x25da12,_0x1af063){const _0x481acc=a196_0x1a8c,_0x2155c6=_0x25da12();while(!![]){try{const _0x4f2464=-parseInt(_0x481acc(0x18c))/0x1*(parseInt(_0x481acc(0x179))/0x2)+-parseInt(_0x481acc(0x186))/0x3*(-parseInt(_0x481acc(0x175))/0x4)+parseInt(_0x481acc(0x18f))/0x5*(parseInt(_0x481acc(0x170))/0x6)+parseInt(_0x481acc(0x188))/0x7*(parseInt(_0x481acc(0x177))/0x8)+parseInt(_0x481acc(0x17e))/0x9*(parseInt(_0x481acc(0x198))/0xa)+-parseInt(_0x481acc(0x169))/0xb+parseInt(_0x481acc(0x18e))/0xc*(-parseInt(_0x481acc(0x196))/0xd);if(_0x4f2464===_0x1af063)break;else _0x2155c6['push'](_0x2155c6['shift']());}catch(_0x357f28){_0x2155c6['push'](_0x2155c6['shift']());}}}(a196_0x4158,0x20683));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';function a196_0x4158(){const _0xcc8f0e=['boolean','1571778qqppij','Submitted\x20a\x20generate\x20task','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.','number','20biqMhT','allowGenerate','12280FdjrBt','clientOperationId','44662zeXSle','apply','string','nextAction','generate-start','18LomeXY','page-type','operationId','DATA_LIST','related-pages-fallback','status','currentStep','alias','88014FtHYgB','/generate-standard-pages/start','119HLQfzj','code','fieldCount','precheck','1LOAkjU','bool','516lVUJUC','5BhRqaj','page\x20generate-start\x20does\x20not\x20accept\x20--page-type.','appCode','Reusing\x20an\x20existing\x20generate\x20task','dryRun','progressRate','page\x20generate-start\x20does\x20not\x20accept\x20--page-pattern.','64298SPcaFa','POST','132740YaHHsU','/smartapi/lovrabet/dataset/','reused','taskId','source','write','manualResolutionRequired','1029028MvSzUB','dataset','dataListPageStatus','Start\x20async\x20Data\x20List\x20Page\x20generation\x20from\x20a\x20dataset','page','message'];a196_0x4158=function(){return _0xcc8f0e;};return a196_0x4158();}import{startGenerateDataListPages}from'../../core/api-client.js';export const pageGenerateStart={'service':a196_0x4f79fc(0x16d),'command':'generate-start','description':a196_0x4f79fc(0x16c),'risk':a196_0x4f79fc(0x19d),'defaultOutputFormat':'compress','rejectedFlags':[{'name':a196_0x4f79fc(0x17f),'message':a196_0x4f79fc(0x190),'hint':'This\x20command\x20always\x20generates\x20a\x20DATA_LIST\x20page\x20from\x20a\x20dataset.'},{'name':'page-pattern','message':a196_0x4f79fc(0x195),'hint':'DATA_LIST\x20currently\x20has\x20one\x20fixed\x20pattern:\x20CRUD_PAGE_SET.'}],'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a196_0x4f79fc(0x185),'type':a196_0x4f79fc(0x17b),'description':a196_0x4f79fc(0x172)},{'name':a196_0x4f79fc(0x17a),'type':a196_0x4f79fc(0x16f),'description':a196_0x4f79fc(0x173)}],async 'validate'(_0x50cfe5){validateDatasetSelector(_0x50cfe5);},async 'dryRun'(_0x21ae3c){const _0x2ffc15=a196_0x4f79fc,_0x21d9fe=await prepare(_0x21ae3c);return{'method':_0x2ffc15(0x197),'url':_0x2ffc15(0x199)+_0x21d9fe[_0x2ffc15(0x16a)][_0x2ffc15(0x189)]+_0x2ffc15(0x187),'body':{'appCode':_0x21ae3c['appCode'],'clientOperationId':_0x21d9fe['clientOperationId']},'description':serializeDryRunDescription({'dataset':{'id':_0x21d9fe[_0x2ffc15(0x16a)]['id'],'code':_0x21d9fe[_0x2ffc15(0x16a)]['code'],'name':_0x21d9fe[_0x2ffc15(0x16a)]['name'],'fieldCount':_0x21d9fe[_0x2ffc15(0x16a)][_0x2ffc15(0x18a)]},'precheckSource':_0x21d9fe[_0x2ffc15(0x16b)]?.[_0x2ffc15(0x19c)]??_0x2ffc15(0x182),'action':_0x2ffc15(0x17d),'clientOperationId':_0x21d9fe[_0x2ffc15(0x178)],'plannedStatus':_0x21d9fe['precheck']['status'],'reason':_0x21d9fe[_0x2ffc15(0x18b)][_0x2ffc15(0x16e)]})};},async 'execute'(_0x21c380){const _0x2fdea8=a196_0x4f79fc;if(!_0x21c380[_0x2fdea8(0x18d)](_0x2fdea8(0x17a))){const _0x49b0b0=await pageGenerateStart[_0x2fdea8(0x193)](_0x21c380);return{'ok':!![],'message':'Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','data':_0x49b0b0};}const _0x1d7289=await prepare(_0x21c380);if(!_0x1d7289[_0x2fdea8(0x18b)][_0x2fdea8(0x176)])return{'ok':![],'message':_0x1d7289['precheck'][_0x2fdea8(0x16e)],'data':{'datasetCode':_0x1d7289['dataset'][_0x2fdea8(0x189)],'pageType':_0x2fdea8(0x181),'pagePattern':'CRUD_PAGE_SET','clientOperationId':_0x1d7289[_0x2fdea8(0x178)],'precheckSource':_0x1d7289[_0x2fdea8(0x16b)]?.['source']??_0x2fdea8(0x182),'status':_0x1d7289[_0x2fdea8(0x18b)][_0x2fdea8(0x183)],'manualResolutionRequired':_0x1d7289[_0x2fdea8(0x18b)][_0x2fdea8(0x19e)],'nextAction':_0x1d7289['precheck'][_0x2fdea8(0x17c)],'query':{'command':buildDataListPageStatusQueryCommand(_0x1d7289[_0x2fdea8(0x16a)]['code'],_0x21c380[_0x2fdea8(0x191)])},'dataListPageStatus':_0x1d7289[_0x2fdea8(0x16b)]}};const _0x466420=await startGenerateDataListPages(_0x21c380[_0x2fdea8(0x191)],_0x1d7289['dataset'][_0x2fdea8(0x189)],{'clientOperationId':_0x1d7289[_0x2fdea8(0x178)]}),_0x4040d0=_0x466420[_0x2fdea8(0x183)]==='SUCCESS'||_0x466420[_0x2fdea8(0x183)]==='PARTIAL_SUCCESS'?await loadDataListPageStatusForGenerate(_0x21c380,_0x1d7289['dataset'][_0x2fdea8(0x189)]):null,_0xfb15c2=assessGenerateOperationState(_0x1d7289[_0x2fdea8(0x16a)][_0x2fdea8(0x189)],_0x466420[_0x2fdea8(0x183)],_0x4040d0);return{'ok':!![],'message':_0x466420[_0x2fdea8(0x19a)]?_0x2fdea8(0x192):_0x2fdea8(0x171),'data':{'datasetCode':_0x1d7289['dataset'][_0x2fdea8(0x189)],'appCode':_0x21c380[_0x2fdea8(0x191)],'pageType':'DATA_LIST','pagePattern':'CRUD_PAGE_SET','taskId':_0x466420['taskId']??null,'operationId':_0x466420[_0x2fdea8(0x180)]??null,'clientOperationId':_0x1d7289['clientOperationId'],'jobStatus':_0x466420[_0x2fdea8(0x183)]??null,'progressRate':typeof _0x466420[_0x2fdea8(0x194)]===_0x2fdea8(0x174)?_0x466420[_0x2fdea8(0x194)]:null,'currentStep':_0x466420[_0x2fdea8(0x184)]??null,'reused':_0x466420[_0x2fdea8(0x19a)]===!![],'status':_0xfb15c2[_0x2fdea8(0x183)],'manualResolutionRequired':_0xfb15c2[_0x2fdea8(0x19e)],'nextAction':_0xfb15c2[_0x2fdea8(0x17c)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x1d7289[_0x2fdea8(0x16a)][_0x2fdea8(0x189)],{'appCode':_0x21c380['appCode'],'taskId':_0x466420[_0x2fdea8(0x19b)],'operationId':_0x466420[_0x2fdea8(0x180)],'clientOperationId':_0x1d7289['clientOperationId']})},'dataListPageStatus':_0x4040d0}};}};function a196_0x1a8c(_0x173780,_0x1338c0){_0x173780=_0x173780-0x169;const _0x41582c=a196_0x4158();let _0x1a8c95=_0x41582c[_0x173780];return _0x1a8c95;}async function prepare(_0x234531){const _0x29e15e=a196_0x4f79fc,_0x2de219=await loadDatasetDetailForPage(_0x234531),_0x336aa1=await loadDataListPageStatusForGenerate(_0x234531,_0x2de219[_0x29e15e(0x189)]),_0x33f0ca=getUndeletedRelatedPages(_0x2de219);return{'dataset':_0x2de219,'dataListPageStatus':_0x336aa1,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessDataListPageState(_0x2de219[_0x29e15e(0x189)],_0x336aa1,{'fallbackUndeletedPages':_0x33f0ca})};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a197_0x4d93(_0x5e0537,_0x25acf1){_0x5e0537=_0x5e0537-0x162;const _0x5a464f=a197_0x5a46();let _0x4d93e4=_0x5a464f[_0x5e0537];return _0x4d93e4;}const a197_0x37169a=a197_0x4d93;(function(_0x46c394,_0xbd584a){const _0x6d43c6=a197_0x4d93,_0x4c4eef=_0x46c394();while(!![]){try{const _0x3f0e7a=parseInt(_0x6d43c6(0x17b))/0x1*(parseInt(_0x6d43c6(0x187))/0x2)+parseInt(_0x6d43c6(0x162))/0x3+-parseInt(_0x6d43c6(0x182))/0x4*(-parseInt(_0x6d43c6(0x178))/0x5)+-parseInt(_0x6d43c6(0x16f))/0x6*(-parseInt(_0x6d43c6(0x17d))/0x7)+-parseInt(_0x6d43c6(0x17f))/0x8*(parseInt(_0x6d43c6(0x173))/0x9)+parseInt(_0x6d43c6(0x18a))/0xa+parseInt(_0x6d43c6(0x18b))/0xb*(-parseInt(_0x6d43c6(0x184))/0xc);if(_0x3f0e7a===_0xbd584a)break;else _0x4c4eef['push'](_0x4c4eef['shift']());}catch(_0x5c5cdf){_0x4c4eef['push'](_0x4c4eef['shift']());}}}(a197_0x5a46,0xbdd5d));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 a197_0x5a46(){const _0x1bb88b=['string','progressRate','errorMsg','appCode','338855INmlkB','code','client-operation-id','608519njaxlv','page','1099JEnkFr','manualResolutionRequired','16ZQyOuP','result','generate-status','52tCGBVA','clientOperationId','41196HMhZPJ','Async\x20operation\x20id\x20returned\x20by\x20page\x20generate-start','/generate-standard-pages/status?','4WQXUzE','alias','operation-id','4865920FjexdM','12023qqOEEn','str','SUCCESS','Generic\x20task\x20id\x20returned\x20by\x20page\x20generate-start','2823900ObqAGA','query-generate-operation-status','Client\x20recovery/idempotency\x20id\x20when\x20operationId\x20is\x20unavailable\x20or\x20lost','operationId','operation_failed','status','taskId','compress','read','nextAction','/smartapi/lovrabet/dataset/','currentStep','task-id','45906EBbOYJ','number','set','GET','887967ZivQuD'];a197_0x5a46=function(){return _0x1bb88b;};return a197_0x5a46();}import{getGenerateDataListPagesStatus}from'../../core/api-client.js';export const pageGenerateStatus={'service':a197_0x37169a(0x17c),'command':a197_0x37169a(0x181),'description':'Query\x20Data\x20List\x20Page\x20generate\x20operation\x20status','risk':a197_0x37169a(0x16a),'defaultOutputFormat':a197_0x37169a(0x169),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a197_0x37169a(0x188),'type':a197_0x37169a(0x174),'description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'},{'name':a197_0x37169a(0x16e),'type':a197_0x37169a(0x174),'description':a197_0x37169a(0x18e)},{'name':a197_0x37169a(0x189),'type':'string','description':a197_0x37169a(0x185)},{'name':a197_0x37169a(0x17a),'type':'string','description':a197_0x37169a(0x164)}],async 'validate'(_0x49a13c){validateDatasetSelector(_0x49a13c),validateGenerateOperationSelector(_0x49a13c);},async 'dryRun'(_0x5a9002){const _0x4c60db=a197_0x37169a,_0x11a47b=await loadDatasetDetailForPage(_0x5a9002),_0xd99f54=_0x5a9002[_0x4c60db(0x18c)]('task-id'),_0xe5d394=_0x5a9002[_0x4c60db(0x18c)]('operation-id'),_0x40de06=_0x5a9002[_0x4c60db(0x18c)](_0x4c60db(0x17a)),_0x326a76=new URLSearchParams({'appCode':_0x5a9002[_0x4c60db(0x177)]});return _0xd99f54&&_0x326a76[_0x4c60db(0x171)](_0x4c60db(0x168),_0xd99f54),_0xe5d394&&_0x326a76['set'](_0x4c60db(0x165),_0xe5d394),_0x40de06&&_0x326a76['set'](_0x4c60db(0x183),_0x40de06),{'method':_0x4c60db(0x172),'url':_0x4c60db(0x16c)+_0x11a47b[_0x4c60db(0x179)]+_0x4c60db(0x186)+_0x326a76['toString'](),'description':serializeDryRunDescription({'dataset':{'id':_0x11a47b['id'],'code':_0x11a47b[_0x4c60db(0x179)],'name':_0x11a47b['name']},'action':_0x4c60db(0x163),'taskId':_0xd99f54||undefined,'operationId':_0xe5d394||undefined,'clientOperationId':_0x40de06||undefined})};},async 'execute'(_0xc89416){const _0x4ad7dc=a197_0x37169a,_0x6dc196=await loadDatasetDetailForPage(_0xc89416),_0x2e8afd=_0xc89416[_0x4ad7dc(0x18c)](_0x4ad7dc(0x16e)),_0x39eb7a=_0xc89416[_0x4ad7dc(0x18c)]('operation-id'),_0x5a59a3=_0xc89416[_0x4ad7dc(0x18c)](_0x4ad7dc(0x17a)),_0x52d42d=await getGenerateDataListPagesStatus(_0xc89416[_0x4ad7dc(0x177)],_0x6dc196[_0x4ad7dc(0x179)],{'taskId':_0x2e8afd||undefined,'operationId':_0x39eb7a||undefined,'clientOperationId':_0x5a59a3||undefined}),_0x143869=_0x52d42d[_0x4ad7dc(0x167)]===_0x4ad7dc(0x18d)||_0x52d42d['status']==='PARTIAL_SUCCESS',_0x3c7e89=_0x143869?await loadDataListPageStatusForGenerate(_0xc89416,_0x6dc196[_0x4ad7dc(0x179)]):null,_0x27addd=assessGenerateOperationState(_0x6dc196[_0x4ad7dc(0x179)],_0x52d42d[_0x4ad7dc(0x167)],_0x3c7e89),_0x14a617=_0x52d42d[_0x4ad7dc(0x168)]??_0x2e8afd??undefined,_0x3351fc=_0x52d42d[_0x4ad7dc(0x165)]??_0x39eb7a??undefined,_0x14f592=_0x52d42d['clientOperationId']??_0x5a59a3??undefined;return{'ok':!![],'message':_0x27addd[_0x4ad7dc(0x167)]===_0x4ad7dc(0x166)?_0x52d42d[_0x4ad7dc(0x176)]||_0x27addd['message']:_0x27addd['message'],'data':{'datasetCode':_0x6dc196[_0x4ad7dc(0x179)],'appCode':_0xc89416[_0x4ad7dc(0x177)],'taskId':_0x14a617,'operationId':_0x3351fc,'clientOperationId':_0x14f592,'jobStatus':_0x52d42d['status']??null,'progressRate':typeof _0x52d42d[_0x4ad7dc(0x175)]===_0x4ad7dc(0x170)?_0x52d42d[_0x4ad7dc(0x175)]:null,'currentStep':_0x52d42d[_0x4ad7dc(0x16d)]??null,'errorMsg':_0x52d42d[_0x4ad7dc(0x176)]??null,'status':_0x27addd[_0x4ad7dc(0x167)],'manualResolutionRequired':_0x27addd[_0x4ad7dc(0x17e)],'nextAction':_0x27addd[_0x4ad7dc(0x16b)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x6dc196[_0x4ad7dc(0x179)],{'appCode':_0xc89416[_0x4ad7dc(0x177)],'taskId':_0x14a617,'operationId':_0x3351fc,'clientOperationId':_0x14f592})},'dataListPageStatus':_0x3c7e89,'result':_0x52d42d[_0x4ad7dc(0x180)]??null}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x53609b,_0x2b61bf){const _0xc3f87f=a198_0x2e33,_0x3a2ee0=_0x53609b();while(!![]){try{const _0x55ca37=-parseInt(_0xc3f87f(0x129))/0x1*(parseInt(_0xc3f87f(0x128))/0x2)+parseInt(_0xc3f87f(0x131))/0x3*(parseInt(_0xc3f87f(0x12a))/0x4)+parseInt(_0xc3f87f(0x12c))/0x5*(-parseInt(_0xc3f87f(0x130))/0x6)+parseInt(_0xc3f87f(0x12f))/0x7+-parseInt(_0xc3f87f(0x132))/0x8+parseInt(_0xc3f87f(0x12d))/0x9+parseInt(_0xc3f87f(0x12b))/0xa*(parseInt(_0xc3f87f(0x12e))/0xb);if(_0x55ca37===_0x2b61bf)break;else _0x3a2ee0['push'](_0x3a2ee0['shift']());}catch(_0x34e1b4){_0x3a2ee0['push'](_0x3a2ee0['shift']());}}}(a198_0x3a03,0x28706));function a198_0x3a03(){const _0x5ac57f=['104867ZuCKbs','18UoyNLd','4593OyVFKA','1573232OcAhvh','1040iXPrLS','144KnwvQp','148POlvXW','344170TyJxiH','444485occlkN','114561gQcSIS','198Gjboib'];a198_0x3a03=function(){return _0x5ac57f;};return a198_0x3a03();}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';import{pageRelationAudit}from'../../commands/page/relation-audit.js';import{pageRestore}from'../../commands/page/restore.js';function a198_0x2e33(_0x415774,_0x5ee785){_0x415774=_0x415774-0x128;const _0x3a03e5=a198_0x3a03();let _0x2e3338=_0x3a03e5[_0x415774];return _0x2e3338;}import{pageCreate}from'../../commands/page/create.js';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
|
-
const
|
|
1
|
+
const a199_0x36a567=a199_0x138d;(function(_0x549dab,_0x1573ee){const _0x5b9b5e=a199_0x138d,_0x38aa0e=_0x549dab();while(!![]){try{const _0x22ba77=parseInt(_0x5b9b5e(0x1d3))/0x1*(-parseInt(_0x5b9b5e(0x1bb))/0x2)+-parseInt(_0x5b9b5e(0x1df))/0x3*(parseInt(_0x5b9b5e(0x1de))/0x4)+parseInt(_0x5b9b5e(0x1a6))/0x5+parseInt(_0x5b9b5e(0x1a3))/0x6*(-parseInt(_0x5b9b5e(0x1ae))/0x7)+parseInt(_0x5b9b5e(0x1d7))/0x8*(parseInt(_0x5b9b5e(0x1ad))/0x9)+-parseInt(_0x5b9b5e(0x1c4))/0xa*(parseInt(_0x5b9b5e(0x1cd))/0xb)+-parseInt(_0x5b9b5e(0x1a0))/0xc*(-parseInt(_0x5b9b5e(0x1c7))/0xd);if(_0x22ba77===_0x1573ee)break;else _0x38aa0e['push'](_0x38aa0e['shift']());}catch(_0x1021b2){_0x38aa0e['push'](_0x38aa0e['shift']());}}}(a199_0x4711,0xc9dcc));import{writeFile}from'node:fs/promises';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';function a199_0x4711(){const _0xcc1cda=['\x20pulled,\x20','Pull\x20page\x20schema\x20to\x20local\x20files','boolean','Dataset\x20\x22','5212JyPTBS','3663CofXUm','conflict','pull','reason','force','version-tag','validation','17558664rZBwRB','datasetCode','relatedPages','751614dpzHuI','hash','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','5802400DMvZUn','\x22\x20has\x20no\x20undeleted\x20related\x20pages.','number','versionTag','read','detail','would_pull','16839TYHODO','77MpDwHh','filter','pages','items','compress','length','str','toISOString','Use\x20--force\x20to\x20overwrite\x20local\x20changes.','\x20skipped','/smartapi/lovrabet/detail\x20(per\x20selected\x20page)','lockFilePath','all','255220eHyOZo','alias','name','pageVersion','batch','single','local\x20unsynced\x20changes','lastSync','GET','56790UngQcS','page','bool','26wUVhQQ','pageId','Page\x20group\x20version\x20tag\x20(batch\x20mode\x20only)','code','datasetIds','map','2123BkBEqg','Local\x20page\x20file\x20has\x20unsynced\x20changes:\x20','deleted','status','Overwrite\x20local\x20files\x20even\x20when\x20unsynced\x20local\x20changes\x20exist','string','4luKuDt','mode','type','appCode','5624MsnXIW','localPath','push'];a199_0x4711=function(){return _0xcc1cda;};return a199_0x4711();}function a199_0x138d(_0x1bfec9,_0x55750b){_0x1bfec9=_0x1bfec9-0x19b;const _0x471121=a199_0x4711();let _0x138dd3=_0x471121[_0x1bfec9];return _0x138dd3;}import{createEmptyPageLock,ensurePageLockScope,readPageLockFile,writePageLockFile}from'../../core/page/lock.js';import{CliErrors}from'../../errors.js';export const pagePull={'service':a199_0x36a567(0x1c5),'command':a199_0x36a567(0x19b),'description':a199_0x36a567(0x1db),'risk':a199_0x36a567(0x1aa),'defaultOutputFormat':a199_0x36a567(0x1b2),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':a199_0x36a567(0x1a8),'description':'Page\x20ID'},DATASETCODE_FLAG_OPTIONAL,{'name':a199_0x36a567(0x1bc),'type':a199_0x36a567(0x1d2),'description':a199_0x36a567(0x1a5)},{'name':a199_0x36a567(0x19e),'type':a199_0x36a567(0x1d2),'description':a199_0x36a567(0x1c9)},{'name':a199_0x36a567(0x19d),'type':a199_0x36a567(0x1dc),'description':a199_0x36a567(0x1d1)}],async 'validate'(_0xfe67d0){validatePageTargetSelector(_0xfe67d0);},async 'dryRun'(_0xae41fc){const _0xd3bd46=a199_0x36a567,_0x2c0b9c=await buildPullPlan(_0xae41fc);return{'method':_0xd3bd46(0x1c3),'url':_0x2c0b9c['mode']===_0xd3bd46(0x1c0)?'/smartapi/lovrabet/detail?pageId='+(_0x2c0b9c[_0xd3bd46(0x1b1)][0x0]?.[_0xd3bd46(0x1ab)][_0xd3bd46(0x1c8)]??''):_0xd3bd46(0x1b8),'body':{'appCode':_0xae41fc[_0xd3bd46(0x1d6)],'mode':_0x2c0b9c[_0xd3bd46(0x1d4)],'targetDatasetCode':_0x2c0b9c[_0xd3bd46(0x1a1)]??null,'pages':_0x2c0b9c[_0xd3bd46(0x1b1)][_0xd3bd46(0x1cc)](toPreviewItem)},'description':serializeDryRunDescription({'mode':_0x2c0b9c[_0xd3bd46(0x1d4)],'datasetCode':_0x2c0b9c['datasetCode']??null,'totalCandidates':_0x2c0b9c[_0xd3bd46(0x1b1)][_0xd3bd46(0x1b3)],'totalWouldPull':_0x2c0b9c[_0xd3bd46(0x1b1)][_0xd3bd46(0x1af)](_0x39993b=>_0x39993b[_0xd3bd46(0x1d0)]===_0xd3bd46(0x1ac))[_0xd3bd46(0x1b3)],'totalConflicts':_0x2c0b9c[_0xd3bd46(0x1b1)][_0xd3bd46(0x1af)](_0x4b8b07=>_0x4b8b07['status']==='conflict')[_0xd3bd46(0x1b3)]})};},async 'execute'(_0x5436cb){const _0x2c4de8=a199_0x36a567,_0x2fb5ed=loadPageProjectConfig(_0x5436cb[_0x2c4de8(0x1d6)]),_0xb39146=await readPageLockFile(_0x2fb5ed[_0x2c4de8(0x1b9)]),{lockData:_0x2b19a0,appLock:_0x3d1091}=ensurePageLockScope(_0xb39146??createEmptyPageLock(),_0x5436cb[_0x2c4de8(0x1d6)]),_0x6e0316=await buildPullPlan(_0x5436cb),_0x81b0ff=_0x5436cb[_0x2c4de8(0x1c6)](_0x2c4de8(0x19d));if(_0x6e0316['mode']===_0x2c4de8(0x1c0)&&_0x6e0316[_0x2c4de8(0x1b1)][0x0]?.[_0x2c4de8(0x1d0)]===_0x2c4de8(0x1e0)&&!_0x81b0ff)throw CliErrors[_0x2c4de8(0x19f)](_0x2c4de8(0x1ce)+_0x6e0316[_0x2c4de8(0x1b1)][0x0][_0x2c4de8(0x1d8)],_0x2c4de8(0x1b6));const _0x3590b6=[],_0x6482ac=[];for(const _0xd720ec of _0x6e0316[_0x2c4de8(0x1b1)]){if(_0xd720ec[_0x2c4de8(0x1d0)]===_0x2c4de8(0x1e0)&&!_0x81b0ff){_0x6482ac[_0x2c4de8(0x1d9)]({'pageId':_0xd720ec[_0x2c4de8(0x1ab)][_0x2c4de8(0x1c8)],'type':_0xd720ec[_0x2c4de8(0x1ab)]['type'],'title':_0xd720ec[_0x2c4de8(0x1ab)][_0x2c4de8(0x1bd)],'localPath':_0xd720ec[_0x2c4de8(0x1d8)],'reason':_0xd720ec[_0x2c4de8(0x19c)]??_0x2c4de8(0x1c1)});continue;}await ensureParentDirectory(_0xd720ec[_0x2c4de8(0x1d8)]);const _0x3f8d1b=serializePageSchemaForFile(_0xd720ec[_0x2c4de8(0x1ab)]['code']);await writeFile(_0xd720ec[_0x2c4de8(0x1d8)],_0x3f8d1b,'utf8'),_0x3d1091['pages'][String(_0xd720ec[_0x2c4de8(0x1ab)]['pageId'])]=buildLockEntry(_0xd720ec[_0x2c4de8(0x1ab)],_0x3f8d1b),_0x3590b6[_0x2c4de8(0x1d9)]({'pageId':_0xd720ec[_0x2c4de8(0x1ab)][_0x2c4de8(0x1c8)],'type':_0xd720ec[_0x2c4de8(0x1ab)][_0x2c4de8(0x1d5)],'title':_0xd720ec[_0x2c4de8(0x1ab)]['name'],'localPath':_0xd720ec[_0x2c4de8(0x1d8)]});}return _0x3d1091[_0x2c4de8(0x1c2)]=new Date()[_0x2c4de8(0x1b5)](),await writePageLockFile(_0x2fb5ed[_0x2c4de8(0x1b9)],_0x2b19a0),{'ok':!![],'message':'Pull\x20complete:\x20'+_0x3590b6[_0x2c4de8(0x1b3)]+_0x2c4de8(0x1da)+_0x6482ac[_0x2c4de8(0x1b3)]+_0x2c4de8(0x1b7),'data':{'appCode':_0x5436cb['appCode'],'pulledPages':_0x3590b6,'skippedPages':_0x6482ac,'totalPulled':_0x3590b6[_0x2c4de8(0x1b3)],'totalSkipped':_0x6482ac[_0x2c4de8(0x1b3)]}};}};async function buildPullPlan(_0x411fe4){const _0x5ba3f0=a199_0x36a567,_0xf854af=loadPageProjectConfig(_0x411fe4[_0x5ba3f0(0x1d6)]),_0xd24489=await readPageLockFile(_0xf854af[_0x5ba3f0(0x1b9)]),{appLock:_0x1b30a8}=ensurePageLockScope(_0xd24489??createEmptyPageLock(),_0x411fe4[_0x5ba3f0(0x1d6)]),_0x52a23b=getPageIdFlag(_0x411fe4);if(_0x52a23b!==undefined){const _0x1c6322=await loadPageDetailForPage(_0x411fe4,_0x52a23b);return{'mode':_0x5ba3f0(0x1c0),'items':[await inspectPullTarget(_0xf854af,_0x1b30a8[_0x5ba3f0(0x1b0)][String(_0x1c6322[_0x5ba3f0(0x1c8)])],_0x1c6322)]};}const _0x17abb0=await loadDatasetDetailForPage(_0x411fe4),_0x1a77a8=_0x17abb0[_0x5ba3f0(0x1a2)][_0x5ba3f0(0x1af)](_0xca3a33=>!_0xca3a33[_0x5ba3f0(0x1cf)]);if(_0x1a77a8[_0x5ba3f0(0x1b3)]===0x0)throw CliErrors['validation'](_0x5ba3f0(0x1dd)+_0x17abb0[_0x5ba3f0(0x1ca)]+_0x5ba3f0(0x1a7));const _0xf8ad47=await Promise[_0x5ba3f0(0x1ba)](_0x1a77a8[_0x5ba3f0(0x1cc)](_0x3b691f=>loadPageDetailForPage(_0x411fe4,_0x3b691f['id']))),_0x4bc156=selectVersionTagGroup(_0xf8ad47,_0x341a9d=>_0x341a9d[_0x5ba3f0(0x1a9)],_0x411fe4[_0x5ba3f0(0x1b4)]('version-tag'));return{'mode':_0x5ba3f0(0x1bf),'datasetCode':_0x17abb0['code'],'items':await Promise[_0x5ba3f0(0x1ba)](_0x4bc156['items'][_0x5ba3f0(0x1cc)](_0x4bfdde=>inspectPullTarget(_0xf854af,_0x1b30a8[_0x5ba3f0(0x1b0)][String(_0x4bfdde['pageId'])],_0x4bfdde)))};}async function inspectPullTarget(_0x2bddf0,_0x3c289a,_0x41452d){const _0x5a8b2f=a199_0x36a567,_0x6c5d67=resolvePageFilePath(_0x2bddf0,_0x41452d['pageId'],_0x41452d[_0x5a8b2f(0x1d5)]),_0x45f825=await fileExists(_0x6c5d67);if(!_0x45f825){const _0x3c374a=serializePageSchemaForFile(_0x41452d[_0x5a8b2f(0x1ca)]);return{'detail':_0x41452d,'localPath':_0x6c5d67,'localHash':computePageContentHash(_0x3c374a),'status':_0x5a8b2f(0x1ac)};}const _0x18be2e=await computePageFileHash(_0x6c5d67);if(!_0x3c289a||_0x18be2e!==_0x3c289a[_0x5a8b2f(0x1a4)])return{'detail':_0x41452d,'localPath':_0x6c5d67,'localHash':_0x18be2e,'status':_0x5a8b2f(0x1e0),'reason':_0x5a8b2f(0x1c1)};return{'detail':_0x41452d,'localPath':_0x6c5d67,'localHash':_0x18be2e,'status':_0x5a8b2f(0x1ac)};}function buildLockEntry(_0x4d54b0,_0x35ad5c){const _0x73176b=a199_0x36a567;return{'hash':computePageContentHash(_0x35ad5c),'pageId':_0x4d54b0[_0x73176b(0x1c8)],'pageVersion':_0x4d54b0[_0x73176b(0x1be)],'type':_0x4d54b0[_0x73176b(0x1d5)],'title':_0x4d54b0[_0x73176b(0x1bd)],'datasetIds':_0x4d54b0[_0x73176b(0x1cb)],'versionTag':_0x4d54b0[_0x73176b(0x1a9)]};}function toPreviewItem(_0x1acbe2){const _0x644380=a199_0x36a567;return{'pageId':_0x1acbe2[_0x644380(0x1ab)]['pageId'],'type':_0x1acbe2[_0x644380(0x1ab)][_0x644380(0x1d5)],'title':_0x1acbe2[_0x644380(0x1ab)][_0x644380(0x1bd)],'localPath':_0x1acbe2[_0x644380(0x1d8)],'status':_0x1acbe2[_0x644380(0x1d0)],..._0x1acbe2[_0x644380(0x19c)]?{'reason':_0x1acbe2[_0x644380(0x19c)]}:{}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a195_0x4d1ac8=a195_0x23fe;(function(_0xd6cfaa,_0x200eb2){const _0x56be62=a195_0x23fe,_0xc60052=_0xd6cfaa();while(!![]){try{const _0x1bfc14=parseInt(_0x56be62(0xca))/0x1*(-parseInt(_0x56be62(0xe7))/0x2)+parseInt(_0x56be62(0xc4))/0x3+parseInt(_0x56be62(0xe8))/0x4*(-parseInt(_0x56be62(0x116))/0x5)+parseInt(_0x56be62(0xdd))/0x6*(parseInt(_0x56be62(0xc8))/0x7)+-parseInt(_0x56be62(0xcc))/0x8+parseInt(_0x56be62(0x103))/0x9*(-parseInt(_0x56be62(0x107))/0xa)+parseInt(_0x56be62(0x101))/0xb;if(_0x1bfc14===_0x200eb2)break;else _0xc60052['push'](_0xc60052['shift']());}catch(_0x5d8b22){_0xc60052['push'](_0xc60052['shift']());}}}(a195_0xe29b,0x55e45));import{readFile,writeFile}from'node:fs/promises';import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getPageIdFlag,loadDatasetDetailForPage,loadPageDetailForPage,selectVersionTagGroup,serializeDryRunDescription,validatePageTargetSelector}from'../../commands/page/shared.js';import{transpileLrSmartJsx,updatePage}from'../../core/api-client.js';import{computePageContentHash,computeSerializedSchemaHash,serializePageSchemaForFile}from'../../core/page/hash.js';import{fileExists,loadPageProjectConfig,resolvePageFilePath}from'../../core/page/file-system.js';import{createEmptyPageLock,ensurePageLockScope,readPageLockFile,writePageLockFile}from'../../core/page/lock.js';import{prepareLrSmartJsxForPush}from'../../core/page/lr-smart-jsx.js';function a195_0x23fe(_0x383a3b,_0x36f78e){_0x383a3b=_0x383a3b-0xc2;const _0xe29b84=a195_0xe29b();let _0x23feac=_0xe29b84[_0x383a3b];return _0x23feac;}import{CliErrors}from'../../errors.js';export const pagePush={'service':'page','command':'push','description':'Push\x20local\x20page\x20schema\x20back\x20to\x20remote','risk':a195_0x4d1ac8(0x10d),'defaultOutputFormat':a195_0x4d1ac8(0xe0),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':'number','description':a195_0x4d1ac8(0xd4)},DATASETCODE_FLAG_OPTIONAL,{'name':'alias','type':a195_0x4d1ac8(0x100),'description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'},{'name':'version-tag','type':a195_0x4d1ac8(0x100),'description':'Page\x20group\x20version\x20tag\x20(batch\x20mode\x20only)'}],async 'validate'(_0x3152ac){validatePageTargetSelector(_0x3152ac);},async 'dryRun'(_0x56dc57){const _0x34baa8=a195_0x4d1ac8,_0x5493bc=await buildPushPreview(_0x56dc57);return{'method':'POST','url':_0x34baa8(0x115),'body':{'appCode':_0x56dc57[_0x34baa8(0xc9)],'mode':_0x5493bc[_0x34baa8(0xd7)],'datasetCode':_0x5493bc[_0x34baa8(0xd6)]??null,'pages':_0x5493bc[_0x34baa8(0xf5)]},'description':serializeDryRunDescription({'mode':_0x5493bc['mode'],'datasetCode':_0x5493bc[_0x34baa8(0xd6)]??null,'totalWouldPush':_0x5493bc[_0x34baa8(0xf5)][_0x34baa8(0x114)](_0x3ebcab=>_0x3ebcab[_0x34baa8(0x112)]===_0x34baa8(0xc5))[_0x34baa8(0x117)],'totalUnchanged':_0x5493bc[_0x34baa8(0xf5)][_0x34baa8(0x114)](_0x3cc8dd=>_0x3cc8dd[_0x34baa8(0x112)]==='unchanged')[_0x34baa8(0x117)],'totalConflicts':_0x5493bc['items'][_0x34baa8(0x114)](_0x4e5c9e=>_0x4e5c9e[_0x34baa8(0x112)]===_0x34baa8(0xf2)||_0x4e5c9e[_0x34baa8(0x112)]===_0x34baa8(0xfa))[_0x34baa8(0x117)]})};},async 'execute'(_0x1fbff5){const _0x5c8c8c=a195_0x4d1ac8,_0x18513a=loadPageProjectConfig(_0x1fbff5[_0x5c8c8c(0xc9)]),_0x472f3a=await readPageLockFile(_0x18513a['lockFilePath']),{lockData:_0x12682d,appLock:_0x30f4c6}=ensurePageLockScope(_0x472f3a??createEmptyPageLock(),_0x1fbff5[_0x5c8c8c(0xc9)]),_0x2fb35b=getPageIdFlag(_0x1fbff5);if(_0x2fb35b!==undefined){const _0x2d4022=await prepareSinglePush(_0x1fbff5,_0x18513a,_0x30f4c6['pages'][String(_0x2fb35b)],_0x2fb35b),_0xce5406=await pushPreparedPage(_0x1fbff5,_0x2d4022);return _0x30f4c6[_0x5c8c8c(0xf8)][String(_0xce5406[_0x5c8c8c(0x102)])]=_0xce5406[_0x5c8c8c(0xf6)],_0x30f4c6[_0x5c8c8c(0x110)]=new Date()[_0x5c8c8c(0xd3)](),await writePageLockFile(_0x18513a[_0x5c8c8c(0xf7)],_0x12682d),{'ok':!![],'message':_0xce5406[_0x5c8c8c(0x109)]?'Push\x20succeeded;\x20server\x20normalized\x20the\x20schema':_0x5c8c8c(0xe1),'data':{'appCode':_0x1fbff5['appCode'],'pushedPages':[{'pageId':_0xce5406['pageId'],'type':_0xce5406[_0x5c8c8c(0xc7)],'title':_0xce5406[_0x5c8c8c(0xcd)],'normalized':_0xce5406[_0x5c8c8c(0x109)]}],'skippedPages':[],'failedPages':[],'totalPushed':0x1,'totalSkipped':0x0,'totalFailed':0x0}};}const _0x734690=await buildBatchPushPlan(_0x1fbff5,_0x30f4c6[_0x5c8c8c(0xf8)]),_0x4de9c3=[],_0xbdf82a=[],_0x38512f=[];for(const _0x171f7d of _0x734690[_0x5c8c8c(0xd8)]){try{const _0x349ef1=await prepareSinglePush(_0x1fbff5,_0x18513a,_0x30f4c6['pages'][String(_0x171f7d[_0x5c8c8c(0x102)])],_0x171f7d[_0x5c8c8c(0x102)],_0x734690['datasetId']);if(!_0x349ef1[_0x5c8c8c(0x10e)]&&_0x349ef1[_0x5c8c8c(0xdf)]===_0x349ef1[_0x5c8c8c(0xc6)][_0x5c8c8c(0xcf)]){_0xbdf82a[_0x5c8c8c(0x10c)]({'pageId':_0x171f7d['pageId'],'type':_0x171f7d[_0x5c8c8c(0xc7)],'title':_0x171f7d['title'],'reason':'no\x20changes'});continue;}const _0xf83cb1=await pushPreparedPage(_0x1fbff5,_0x349ef1);_0x30f4c6['pages'][String(_0xf83cb1[_0x5c8c8c(0x102)])]=_0xf83cb1[_0x5c8c8c(0xf6)],_0x4de9c3[_0x5c8c8c(0x10c)]({'pageId':_0xf83cb1[_0x5c8c8c(0x102)],'type':_0xf83cb1[_0x5c8c8c(0xc7)],'title':_0xf83cb1[_0x5c8c8c(0xcd)],'normalized':_0xf83cb1[_0x5c8c8c(0x109)]});}catch(_0x289ff3){_0x38512f[_0x5c8c8c(0x10c)]({'pageId':_0x171f7d['pageId'],'type':_0x171f7d[_0x5c8c8c(0xc7)],'title':_0x171f7d['title'],'reason':_0x289ff3 instanceof Error?_0x289ff3[_0x5c8c8c(0x108)]:String(_0x289ff3)});}}return _0x30f4c6[_0x5c8c8c(0x110)]=new Date()[_0x5c8c8c(0xd3)](),await writePageLockFile(_0x18513a[_0x5c8c8c(0xf7)],_0x12682d),{'ok':_0x38512f['length']===0x0||_0x4de9c3[_0x5c8c8c(0x117)]>0x0||_0xbdf82a[_0x5c8c8c(0x117)]>0x0,'message':_0x38512f['length']>0x0&&_0x4de9c3[_0x5c8c8c(0x117)]>0x0?_0x5c8c8c(0x113):_0x4de9c3['length']>0x0?_0x5c8c8c(0xe1):_0xbdf82a[_0x5c8c8c(0x117)]>0x0&&_0x38512f['length']===0x0?_0x5c8c8c(0xfd):_0x38512f[0x0]?.[_0x5c8c8c(0x118)]||'Push\x20failed','data':{'appCode':_0x1fbff5['appCode'],'pushedPages':_0x4de9c3,'skippedPages':_0xbdf82a,'failedPages':_0x38512f,'totalPushed':_0x4de9c3[_0x5c8c8c(0x117)],'totalSkipped':_0xbdf82a['length'],'totalFailed':_0x38512f[_0x5c8c8c(0x117)]}};}};async function buildPushPreview(_0x3d890f){const _0x16d630=a195_0x4d1ac8,_0x593269=loadPageProjectConfig(_0x3d890f['appCode']),_0xe68cb6=await readPageLockFile(_0x593269[_0x16d630(0xf7)]),{appLock:_0x54f8f1}=ensurePageLockScope(_0xe68cb6??createEmptyPageLock(),_0x3d890f[_0x16d630(0xc9)]),_0x5b1cc6=getPageIdFlag(_0x3d890f);if(_0x5b1cc6!==undefined)return{'mode':_0x16d630(0xd2),'items':[await inspectPushPage(_0x3d890f,_0x593269,_0x54f8f1[_0x16d630(0xf8)][String(_0x5b1cc6)],_0x5b1cc6)]};const _0x4b9e90=await buildBatchPushPlan(_0x3d890f,_0x54f8f1['pages']);return{'mode':'batch','datasetCode':_0x4b9e90[_0x16d630(0xd6)],'items':await Promise[_0x16d630(0xda)](_0x4b9e90['candidates'][_0x16d630(0xf1)](_0x24382a=>inspectPushPage(_0x3d890f,_0x593269,_0x54f8f1[_0x16d630(0xf8)][String(_0x24382a['pageId'])],_0x24382a[_0x16d630(0x102)],_0x4b9e90[_0x16d630(0xdc)])))};}async function buildBatchPushPlan(_0x3eeec2,_0x56e8e9){const _0x3dbc05=a195_0x4d1ac8,_0x1ac9fb=await loadDatasetDetailForPage(_0x3eeec2),_0x46b85f=_0x1ac9fb['id'],_0x1a4640=new Set(_0x1ac9fb[_0x3dbc05(0x10a)][_0x3dbc05(0x114)](_0x13574b=>!_0x13574b[_0x3dbc05(0xee)])[_0x3dbc05(0xf1)](_0x112443=>_0x112443['id'])),_0x4de745=Object[_0x3dbc05(0xe2)](_0x56e8e9)[_0x3dbc05(0x114)](_0x2574cc=>_0x2574cc[_0x3dbc05(0x119)][_0x3dbc05(0xeb)](_0x46b85f)&&_0x1a4640[_0x3dbc05(0xfe)](_0x2574cc[_0x3dbc05(0x102)]));if(_0x4de745[_0x3dbc05(0x117)]===0x0)throw CliErrors[_0x3dbc05(0xde)](_0x3dbc05(0xce)+_0x1ac9fb[_0x3dbc05(0xe9)]+'\x22.',_0x3dbc05(0xd1)+CLI_BIN_NAME+_0x3dbc05(0xc3)+_0x1ac9fb[_0x3dbc05(0xe9)]+_0x3dbc05(0xe5));const _0x33f951=selectVersionTagGroup(_0x4de745,_0x56c08f=>_0x56c08f[_0x3dbc05(0x105)]??null,_0x3eeec2['str'](_0x3dbc05(0xff))),_0x45bd93=[];for(const _0x313f32 of _0x33f951[_0x3dbc05(0xf5)]){_0x45bd93[_0x3dbc05(0x10c)]({'pageId':_0x313f32[_0x3dbc05(0x102)],'type':_0x313f32[_0x3dbc05(0xc7)],'title':_0x313f32[_0x3dbc05(0xcd)]});}return{'datasetCode':_0x1ac9fb['code'],'datasetId':_0x46b85f,'candidates':_0x45bd93};}async function inspectPushPage(_0x11eedf,_0x52045e,_0x571772,_0x47c5a4,_0x3d7b67){const _0x3d7f10=a195_0x4d1ac8;if(!_0x571772)return{'pageId':_0x47c5a4,'type':_0x3d7f10(0x10b),'title':_0x3d7f10(0xd9)+_0x47c5a4,'localPath':resolvePageFilePath(_0x52045e,_0x47c5a4,'UNKNOWN'),'status':_0x3d7f10(0xfa),'reason':_0x3d7f10(0xd1)+CLI_BIN_NAME+_0x3d7f10(0x111)+_0x47c5a4+'`\x20first'};const _0x419a14=resolvePageFilePath(_0x52045e,_0x47c5a4,_0x571772['type']);if(!await fileExists(_0x419a14))return{'pageId':_0x47c5a4,'type':_0x571772['type'],'title':_0x571772[_0x3d7f10(0xcd)],'localPath':_0x419a14,'status':_0x3d7f10(0xfa),'reason':_0x3d7f10(0xea)+_0x419a14};const _0x27c157=await readFile(_0x419a14,'utf8');try{JSON['parse'](_0x27c157);}catch{return{'pageId':_0x47c5a4,'type':_0x571772[_0x3d7f10(0xc7)],'title':_0x571772[_0x3d7f10(0xcd)],'localPath':_0x419a14,'status':_0x3d7f10(0xfa),'reason':_0x3d7f10(0xc2)};}try{const _0x395f0f=await loadPageDetailForPage(_0x11eedf,_0x47c5a4);if(_0x3d7b67!=null&&!_0x395f0f[_0x3d7f10(0x119)][_0x3d7f10(0xeb)](_0x3d7b67))return{'pageId':_0x47c5a4,'type':_0x571772[_0x3d7f10(0xc7)],'title':_0x571772[_0x3d7f10(0xcd)],'localPath':_0x419a14,'status':_0x3d7f10(0xf2),'reason':'Page\x20'+_0x47c5a4+_0x3d7f10(0xdb)};const _0x57f178=_0x571772[_0x3d7f10(0xe6)]!=null&&_0x395f0f['pageVersion']!=null;if(_0x57f178&&_0x571772[_0x3d7f10(0xe6)]!==_0x395f0f[_0x3d7f10(0xe6)])return{'pageId':_0x47c5a4,'type':_0x571772[_0x3d7f10(0xc7)],'title':_0x571772['title'],'localPath':_0x419a14,'status':_0x3d7f10(0xf2),'reason':_0x3d7f10(0xed)};if(!_0x57f178&&computeSerializedSchemaHash(_0x395f0f[_0x3d7f10(0xe9)])!==_0x571772[_0x3d7f10(0xcf)])return{'pageId':_0x47c5a4,'type':_0x571772['type'],'title':_0x571772[_0x3d7f10(0xcd)],'localPath':_0x419a14,'status':_0x3d7f10(0xf2),'reason':_0x3d7f10(0xd5)};const _0x24cb6d=await prepareLrSmartJsxForPush(_0x27c157,_0x395f0f[_0x3d7f10(0xe9)],transpileLrSmartJsx);if(_0x24cb6d[_0x3d7f10(0xf4)]===0x0&&computePageContentHash(_0x24cb6d[_0x3d7f10(0xe4)])===_0x571772[_0x3d7f10(0xcf)])return{'pageId':_0x47c5a4,'type':_0x571772[_0x3d7f10(0xc7)],'title':_0x571772['title'],'localPath':_0x419a14,'status':_0x3d7f10(0xfb),'reason':'no\x20changes'};}catch(_0x5780c9){return{'pageId':_0x47c5a4,'type':_0x571772[_0x3d7f10(0xc7)],'title':_0x571772[_0x3d7f10(0xcd)],'localPath':_0x419a14,'status':_0x3d7f10(0xfa),'reason':_0x5780c9 instanceof Error?_0x5780c9[_0x3d7f10(0x108)]:String(_0x5780c9)};}return{'pageId':_0x47c5a4,'type':_0x571772[_0x3d7f10(0xc7)],'title':_0x571772[_0x3d7f10(0xcd)],'localPath':_0x419a14,'status':_0x3d7f10(0xc5)};}function a195_0xe29b(){const _0x15c473=['lockEntry','type','77826abMeJw','appCode','40731jUoVKs','name','4891672xDeonf','title','No\x20local\x20pages\x20found\x20for\x20dataset\x20\x22','hash','parse','Run\x20`','single','toISOString','Page\x20ID','remote\x20schema\x20changed','datasetCode','mode','candidates','page-','all','\x20no\x20longer\x20belongs\x20to\x20the\x20target\x20dataset','datasetId','378IsocRL','validation','localHash','compress','Push\x20succeeded','values','Page\x20update\x20failed:\x20','content','`\x20first.','pageVersion','2XZphNk','604DBFzvj','code','Local\x20file\x20not\x20found:\x20','includes','\x20has\x20changed\x20since\x20last\x20pull.','remote\x20pageVersion\x20changed','deleted','localContent','apiError','map','conflict','No\x20lock\x20record\x20found\x20for\x20page\x20','normalizedNodes','items','nextLockEntry','lockFilePath','pages','remoteDetail','blocked','unchanged','utf8','No\x20changes\x20to\x20push','has','version-tag','string','13494668CnwNfj','pageId','10305cJLyFf','Remote\x20page\x20','versionTag','Page\x20','5650sxqrNl','message','normalized','relatedPages','UNKNOWN','push','write','preparedChanges','Invalid\x20JSON\x20in\x20local\x20page\x20file:\x20','lastSync','\x20page\x20pull\x20--id\x20','status','Some\x20pages\x20failed\x20to\x20push','filter','/smartapi/lovrabet/update-page','16285OzQpBj','length','reason','datasetIds','local\x20JSON\x20is\x20invalid','\x20page\x20pull\x20--datasetcode\x20','646539JrVbdL','would_push'];a195_0xe29b=function(){return _0x15c473;};return a195_0xe29b();}async function prepareSinglePush(_0x168cb2,_0x4bc640,_0x5e757e,_0x462718,_0x5d9e74){const _0x67609f=a195_0x4d1ac8;if(!_0x5e757e)throw CliErrors['validation'](_0x67609f(0xf3)+_0x462718+'.',_0x67609f(0xd1)+CLI_BIN_NAME+_0x67609f(0x111)+_0x462718+_0x67609f(0xe5));const _0x52bd74=resolvePageFilePath(_0x4bc640,_0x462718,_0x5e757e[_0x67609f(0xc7)]);if(!await fileExists(_0x52bd74))throw CliErrors[_0x67609f(0xde)](_0x67609f(0xea)+_0x52bd74,_0x67609f(0xd1)+CLI_BIN_NAME+_0x67609f(0x111)+_0x462718+_0x67609f(0xe5));const _0x2ecd97=await readFile(_0x52bd74,_0x67609f(0xfc));try{JSON[_0x67609f(0xd0)](_0x2ecd97);}catch{throw CliErrors[_0x67609f(0xde)](_0x67609f(0x10f)+_0x52bd74);}const _0x591095=await loadPageDetailForPage(_0x168cb2,_0x462718);if(_0x5d9e74!=null&&!_0x591095[_0x67609f(0x119)][_0x67609f(0xeb)](_0x5d9e74))throw CliErrors[_0x67609f(0xde)](_0x67609f(0x106)+_0x462718+'\x20no\x20longer\x20belongs\x20to\x20the\x20selected\x20dataset.');const _0x2d6c2f=_0x5e757e[_0x67609f(0xe6)]!=null&&_0x591095[_0x67609f(0xe6)]!=null;if(_0x2d6c2f){if(_0x5e757e[_0x67609f(0xe6)]!==_0x591095[_0x67609f(0xe6)])throw CliErrors[_0x67609f(0xde)]('Remote\x20page\x20'+_0x462718+_0x67609f(0xec),_0x67609f(0xd1)+CLI_BIN_NAME+_0x67609f(0x111)+_0x462718+_0x67609f(0xe5));}else{const _0x4ecc67=computeSerializedSchemaHash(_0x591095['code']);if(_0x4ecc67!==_0x5e757e[_0x67609f(0xcf)])throw CliErrors['validation'](_0x67609f(0x104)+_0x462718+_0x67609f(0xec),_0x67609f(0xd1)+CLI_BIN_NAME+_0x67609f(0x111)+_0x462718+'`\x20first.');}const _0x1a0979=await prepareLrSmartJsxForPush(_0x2ecd97,_0x591095[_0x67609f(0xe9)],transpileLrSmartJsx);return{'lockEntry':_0x5e757e,'localPath':_0x52bd74,'localContent':_0x1a0979[_0x67609f(0xe4)],'localHash':computePageContentHash(_0x1a0979['content']),'preparedChanges':_0x1a0979[_0x67609f(0xf4)]>0x0,'remoteDetail':_0x591095};}async function pushPreparedPage(_0x3ac96c,_0x5db863){const _0x5bd330=a195_0x4d1ac8,_0x453529=await updatePage(_0x3ac96c[_0x5bd330(0xc9)],_0x5db863[_0x5bd330(0xf9)][_0x5bd330(0x102)],_0x5db863[_0x5bd330(0xef)],_0x5db863[_0x5bd330(0xf9)][_0x5bd330(0x119)]);if(!_0x453529)throw CliErrors[_0x5bd330(0xf0)](_0x5bd330(0xe3)+_0x5db863['remoteDetail'][_0x5bd330(0x102)]);const _0x58ed6b=await loadPageDetailForPage(_0x3ac96c,_0x5db863[_0x5bd330(0xf9)][_0x5bd330(0x102)]),_0x44617a=serializePageSchemaForFile(_0x58ed6b[_0x5bd330(0xe9)]);return await writeFile(_0x5db863['localPath'],_0x44617a,'utf8'),{'pageId':_0x58ed6b[_0x5bd330(0x102)],'type':_0x58ed6b[_0x5bd330(0xc7)],'title':_0x58ed6b[_0x5bd330(0xcb)],'normalized':_0x44617a!==serializePageSchemaForFile(_0x5db863[_0x5bd330(0xef)]),'nextLockEntry':{'hash':computePageContentHash(_0x44617a),'pageId':_0x58ed6b[_0x5bd330(0x102)],'pageVersion':_0x58ed6b['pageVersion'],'type':_0x58ed6b[_0x5bd330(0xc7)],'title':_0x58ed6b[_0x5bd330(0xcb)],'datasetIds':_0x58ed6b[_0x5bd330(0x119)],'versionTag':_0x58ed6b[_0x5bd330(0x105)]}};}
|
|
1
|
+
const a200_0x3da4d4=a200_0x5ce4;(function(_0x1776bd,_0x4c020a){const _0x41f11b=a200_0x5ce4,_0x62bb2b=_0x1776bd();while(!![]){try{const _0x3e44c4=parseInt(_0x41f11b(0xdc))/0x1+-parseInt(_0x41f11b(0xd3))/0x2+-parseInt(_0x41f11b(0x123))/0x3+parseInt(_0x41f11b(0x101))/0x4*(parseInt(_0x41f11b(0xfd))/0x5)+parseInt(_0x41f11b(0x119))/0x6+parseInt(_0x41f11b(0x10d))/0x7*(-parseInt(_0x41f11b(0xdb))/0x8)+-parseInt(_0x41f11b(0xda))/0x9;if(_0x3e44c4===_0x4c020a)break;else _0x62bb2b['push'](_0x62bb2b['shift']());}catch(_0x5a48f1){_0x62bb2b['push'](_0x62bb2b['shift']());}}}(a200_0x716e,0xf147a));import{readFile,writeFile}from'node:fs/promises';import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getPageIdFlag,loadDatasetDetailForPage,loadPageDetailForPage,selectVersionTagGroup,serializeDryRunDescription,validatePageTargetSelector}from'../../commands/page/shared.js';function a200_0x716e(){const _0x539482=['name','datasetId','Local\x20file\x20not\x20found:\x20','525153SEEsEY','\x20no\x20longer\x20belongs\x20to\x20the\x20target\x20dataset','POST','hash','No\x20local\x20pages\x20found\x20for\x20dataset\x20\x22','\x20no\x20longer\x20belongs\x20to\x20the\x20selected\x20dataset.','pages','No\x20lock\x20record\x20found\x20for\x20page\x20','conflict','length','2445374XHhbGo','remoteDetail','Page\x20group\x20version\x20tag\x20(batch\x20mode\x20only)','Remote\x20page\x20','code','no\x20changes','status','4617495TIgnos','62576amGxIG','1225351wPxyCW','Push\x20succeeded','would_push','version-tag','appCode','title','write','nextLockEntry','parse','datasetCode','localHash','Page\x20update\x20failed:\x20','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','normalizedNodes','local\x20JSON\x20is\x20invalid','Page\x20','`\x20first','toISOString','remote\x20pageVersion\x20changed','str','items','Invalid\x20JSON\x20in\x20local\x20page\x20file:\x20','\x20page\x20pull\x20--id\x20','UNKNOWN','versionTag','push','No\x20changes\x20to\x20push','type','blocked','normalized','includes','lastSync','pageVersion','332770lLeKQy','single','utf8','values','112BWKupS','string','Push\x20local\x20page\x20schema\x20back\x20to\x20remote','Run\x20`','deleted','message','relatedPages','pageId','remote\x20schema\x20changed','datasetIds','lockFilePath','content','1162vASIhv','number','compress','localPath','\x20has\x20changed\x20since\x20last\x20pull.','localContent','mode','Push\x20succeeded;\x20server\x20normalized\x20the\x20schema','candidates','filter','all','reason','6651984VKEQUk','page','`\x20first.','batch','apiError','map','validation'];a200_0x716e=function(){return _0x539482;};return a200_0x716e();}import{transpileLrSmartJsx,updatePage}from'../../core/api-client.js';import{computePageContentHash,computeSerializedSchemaHash,serializePageSchemaForFile}from'../../core/page/hash.js';import{fileExists,loadPageProjectConfig,resolvePageFilePath}from'../../core/page/file-system.js';import{createEmptyPageLock,ensurePageLockScope,readPageLockFile,writePageLockFile}from'../../core/page/lock.js';import{prepareLrSmartJsxForPush}from'../../core/page/lr-smart-jsx.js';import{CliErrors}from'../../errors.js';export const pagePush={'service':a200_0x3da4d4(0x11a),'command':'push','description':a200_0x3da4d4(0x103),'risk':a200_0x3da4d4(0xe2),'defaultOutputFormat':a200_0x3da4d4(0x10f),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':a200_0x3da4d4(0x10e),'description':'Page\x20ID'},DATASETCODE_FLAG_OPTIONAL,{'name':'alias','type':a200_0x3da4d4(0x102),'description':a200_0x3da4d4(0xe8)},{'name':a200_0x3da4d4(0xdf),'type':a200_0x3da4d4(0x102),'description':a200_0x3da4d4(0xd5)}],async 'validate'(_0x489277){validatePageTargetSelector(_0x489277);},async 'dryRun'(_0x410919){const _0xe82d5a=a200_0x3da4d4,_0x3bce37=await buildPushPreview(_0x410919);return{'method':_0xe82d5a(0x125),'url':'/smartapi/lovrabet/update-page','body':{'appCode':_0x410919[_0xe82d5a(0xe0)],'mode':_0x3bce37['mode'],'datasetCode':_0x3bce37[_0xe82d5a(0xe5)]??null,'pages':_0x3bce37['items']},'description':serializeDryRunDescription({'mode':_0x3bce37[_0xe82d5a(0x113)],'datasetCode':_0x3bce37[_0xe82d5a(0xe5)]??null,'totalWouldPush':_0x3bce37[_0xe82d5a(0xf0)][_0xe82d5a(0x116)](_0x5cabad=>_0x5cabad[_0xe82d5a(0xd9)]===_0xe82d5a(0xde))[_0xe82d5a(0xd2)],'totalUnchanged':_0x3bce37['items']['filter'](_0x5a5e9e=>_0x5a5e9e[_0xe82d5a(0xd9)]==='unchanged')[_0xe82d5a(0xd2)],'totalConflicts':_0x3bce37[_0xe82d5a(0xf0)][_0xe82d5a(0x116)](_0x10e9f9=>_0x10e9f9[_0xe82d5a(0xd9)]===_0xe82d5a(0xd1)||_0x10e9f9[_0xe82d5a(0xd9)]==='blocked')[_0xe82d5a(0xd2)]})};},async 'execute'(_0x3a506d){const _0x37ff14=a200_0x3da4d4,_0x566a5a=loadPageProjectConfig(_0x3a506d[_0x37ff14(0xe0)]),_0x52c764=await readPageLockFile(_0x566a5a[_0x37ff14(0x10b)]),{lockData:_0x54fd54,appLock:_0x1671c2}=ensurePageLockScope(_0x52c764??createEmptyPageLock(),_0x3a506d[_0x37ff14(0xe0)]),_0x26dc26=getPageIdFlag(_0x3a506d);if(_0x26dc26!==undefined){const _0x45cbc6=await prepareSinglePush(_0x3a506d,_0x566a5a,_0x1671c2['pages'][String(_0x26dc26)],_0x26dc26),_0x429817=await pushPreparedPage(_0x3a506d,_0x45cbc6);return _0x1671c2[_0x37ff14(0x129)][String(_0x429817['pageId'])]=_0x429817[_0x37ff14(0xe3)],_0x1671c2[_0x37ff14(0xfb)]=new Date()[_0x37ff14(0xed)](),await writePageLockFile(_0x566a5a[_0x37ff14(0x10b)],_0x54fd54),{'ok':!![],'message':_0x429817['normalized']?_0x37ff14(0x114):_0x37ff14(0xdd),'data':{'appCode':_0x3a506d[_0x37ff14(0xe0)],'pushedPages':[{'pageId':_0x429817[_0x37ff14(0x108)],'type':_0x429817['type'],'title':_0x429817[_0x37ff14(0xe1)],'normalized':_0x429817[_0x37ff14(0xf9)]}],'skippedPages':[],'failedPages':[],'totalPushed':0x1,'totalSkipped':0x0,'totalFailed':0x0}};}const _0x1125ea=await buildBatchPushPlan(_0x3a506d,_0x1671c2[_0x37ff14(0x129)]),_0x1ea338=[],_0x393ca8=[],_0x2b0921=[];for(const _0x42fa5b of _0x1125ea[_0x37ff14(0x115)]){try{const _0x363d26=await prepareSinglePush(_0x3a506d,_0x566a5a,_0x1671c2[_0x37ff14(0x129)][String(_0x42fa5b['pageId'])],_0x42fa5b['pageId'],_0x1125ea[_0x37ff14(0x121)]);if(!_0x363d26['preparedChanges']&&_0x363d26[_0x37ff14(0xe6)]===_0x363d26['lockEntry'][_0x37ff14(0x126)]){_0x393ca8[_0x37ff14(0xf5)]({'pageId':_0x42fa5b[_0x37ff14(0x108)],'type':_0x42fa5b[_0x37ff14(0xf7)],'title':_0x42fa5b['title'],'reason':_0x37ff14(0xd8)});continue;}const _0x4e2a42=await pushPreparedPage(_0x3a506d,_0x363d26);_0x1671c2[_0x37ff14(0x129)][String(_0x4e2a42[_0x37ff14(0x108)])]=_0x4e2a42['nextLockEntry'],_0x1ea338[_0x37ff14(0xf5)]({'pageId':_0x4e2a42[_0x37ff14(0x108)],'type':_0x4e2a42[_0x37ff14(0xf7)],'title':_0x4e2a42['title'],'normalized':_0x4e2a42[_0x37ff14(0xf9)]});}catch(_0x256be0){_0x2b0921[_0x37ff14(0xf5)]({'pageId':_0x42fa5b[_0x37ff14(0x108)],'type':_0x42fa5b[_0x37ff14(0xf7)],'title':_0x42fa5b[_0x37ff14(0xe1)],'reason':_0x256be0 instanceof Error?_0x256be0[_0x37ff14(0x106)]:String(_0x256be0)});}}return _0x1671c2[_0x37ff14(0xfb)]=new Date()['toISOString'](),await writePageLockFile(_0x566a5a['lockFilePath'],_0x54fd54),{'ok':_0x2b0921[_0x37ff14(0xd2)]===0x0||_0x1ea338[_0x37ff14(0xd2)]>0x0||_0x393ca8['length']>0x0,'message':_0x2b0921[_0x37ff14(0xd2)]>0x0&&_0x1ea338[_0x37ff14(0xd2)]>0x0?'Some\x20pages\x20failed\x20to\x20push':_0x1ea338[_0x37ff14(0xd2)]>0x0?_0x37ff14(0xdd):_0x393ca8[_0x37ff14(0xd2)]>0x0&&_0x2b0921['length']===0x0?_0x37ff14(0xf6):_0x2b0921[0x0]?.[_0x37ff14(0x118)]||'Push\x20failed','data':{'appCode':_0x3a506d[_0x37ff14(0xe0)],'pushedPages':_0x1ea338,'skippedPages':_0x393ca8,'failedPages':_0x2b0921,'totalPushed':_0x1ea338['length'],'totalSkipped':_0x393ca8[_0x37ff14(0xd2)],'totalFailed':_0x2b0921[_0x37ff14(0xd2)]}};}};async function buildPushPreview(_0xc850e3){const _0x3f83b9=a200_0x3da4d4,_0x578e6d=loadPageProjectConfig(_0xc850e3[_0x3f83b9(0xe0)]),_0x3aab6d=await readPageLockFile(_0x578e6d[_0x3f83b9(0x10b)]),{appLock:_0x49dea0}=ensurePageLockScope(_0x3aab6d??createEmptyPageLock(),_0xc850e3[_0x3f83b9(0xe0)]),_0x336737=getPageIdFlag(_0xc850e3);if(_0x336737!==undefined)return{'mode':_0x3f83b9(0xfe),'items':[await inspectPushPage(_0xc850e3,_0x578e6d,_0x49dea0['pages'][String(_0x336737)],_0x336737)]};const _0x539df2=await buildBatchPushPlan(_0xc850e3,_0x49dea0['pages']);return{'mode':_0x3f83b9(0x11c),'datasetCode':_0x539df2[_0x3f83b9(0xe5)],'items':await Promise[_0x3f83b9(0x117)](_0x539df2['candidates']['map'](_0x3205ba=>inspectPushPage(_0xc850e3,_0x578e6d,_0x49dea0[_0x3f83b9(0x129)][String(_0x3205ba[_0x3f83b9(0x108)])],_0x3205ba[_0x3f83b9(0x108)],_0x539df2[_0x3f83b9(0x121)])))};}async function buildBatchPushPlan(_0x285422,_0x304c82){const _0x1312d7=a200_0x3da4d4,_0x27d310=await loadDatasetDetailForPage(_0x285422),_0x2d5f39=_0x27d310['id'],_0x41e6f9=new Set(_0x27d310[_0x1312d7(0x107)]['filter'](_0xbfdba2=>!_0xbfdba2[_0x1312d7(0x105)])[_0x1312d7(0x11e)](_0x1d7e6b=>_0x1d7e6b['id'])),_0x59a91d=Object[_0x1312d7(0x100)](_0x304c82)[_0x1312d7(0x116)](_0x1e0396=>_0x1e0396[_0x1312d7(0x10a)]['includes'](_0x2d5f39)&&_0x41e6f9['has'](_0x1e0396[_0x1312d7(0x108)]));if(_0x59a91d[_0x1312d7(0xd2)]===0x0)throw CliErrors['validation'](_0x1312d7(0x127)+_0x27d310[_0x1312d7(0xd7)]+'\x22.',_0x1312d7(0x104)+CLI_BIN_NAME+'\x20page\x20pull\x20--datasetcode\x20'+_0x27d310['code']+_0x1312d7(0x11b));const _0x2fede4=selectVersionTagGroup(_0x59a91d,_0x36ab05=>_0x36ab05[_0x1312d7(0xf4)]??null,_0x285422[_0x1312d7(0xef)](_0x1312d7(0xdf))),_0x5ec9d3=[];for(const _0x1c7860 of _0x2fede4[_0x1312d7(0xf0)]){_0x5ec9d3[_0x1312d7(0xf5)]({'pageId':_0x1c7860[_0x1312d7(0x108)],'type':_0x1c7860[_0x1312d7(0xf7)],'title':_0x1c7860[_0x1312d7(0xe1)]});}return{'datasetCode':_0x27d310[_0x1312d7(0xd7)],'datasetId':_0x2d5f39,'candidates':_0x5ec9d3};}function a200_0x5ce4(_0x383cfd,_0x3130ad){_0x383cfd=_0x383cfd-0xd1;const _0x716eca=a200_0x716e();let _0x5ce499=_0x716eca[_0x383cfd];return _0x5ce499;}async function inspectPushPage(_0x5f0c4c,_0x1be279,_0x55cee9,_0x281a13,_0x3577f){const _0x1d912c=a200_0x3da4d4;if(!_0x55cee9)return{'pageId':_0x281a13,'type':'UNKNOWN','title':'page-'+_0x281a13,'localPath':resolvePageFilePath(_0x1be279,_0x281a13,_0x1d912c(0xf3)),'status':'blocked','reason':_0x1d912c(0x104)+CLI_BIN_NAME+'\x20page\x20pull\x20--id\x20'+_0x281a13+_0x1d912c(0xec)};const _0xb8faf=resolvePageFilePath(_0x1be279,_0x281a13,_0x55cee9[_0x1d912c(0xf7)]);if(!await fileExists(_0xb8faf))return{'pageId':_0x281a13,'type':_0x55cee9[_0x1d912c(0xf7)],'title':_0x55cee9[_0x1d912c(0xe1)],'localPath':_0xb8faf,'status':_0x1d912c(0xf8),'reason':_0x1d912c(0x122)+_0xb8faf};const _0x45034c=await readFile(_0xb8faf,_0x1d912c(0xff));try{JSON[_0x1d912c(0xe4)](_0x45034c);}catch{return{'pageId':_0x281a13,'type':_0x55cee9[_0x1d912c(0xf7)],'title':_0x55cee9[_0x1d912c(0xe1)],'localPath':_0xb8faf,'status':_0x1d912c(0xf8),'reason':_0x1d912c(0xea)};}try{const _0x461d11=await loadPageDetailForPage(_0x5f0c4c,_0x281a13);if(_0x3577f!=null&&!_0x461d11[_0x1d912c(0x10a)][_0x1d912c(0xfa)](_0x3577f))return{'pageId':_0x281a13,'type':_0x55cee9[_0x1d912c(0xf7)],'title':_0x55cee9['title'],'localPath':_0xb8faf,'status':'conflict','reason':_0x1d912c(0xeb)+_0x281a13+_0x1d912c(0x124)};const _0x3e204d=_0x55cee9[_0x1d912c(0xfc)]!=null&&_0x461d11['pageVersion']!=null;if(_0x3e204d&&_0x55cee9[_0x1d912c(0xfc)]!==_0x461d11[_0x1d912c(0xfc)])return{'pageId':_0x281a13,'type':_0x55cee9['type'],'title':_0x55cee9[_0x1d912c(0xe1)],'localPath':_0xb8faf,'status':_0x1d912c(0xd1),'reason':_0x1d912c(0xee)};if(!_0x3e204d&&computeSerializedSchemaHash(_0x461d11['code'])!==_0x55cee9[_0x1d912c(0x126)])return{'pageId':_0x281a13,'type':_0x55cee9[_0x1d912c(0xf7)],'title':_0x55cee9[_0x1d912c(0xe1)],'localPath':_0xb8faf,'status':_0x1d912c(0xd1),'reason':_0x1d912c(0x109)};const _0x5079aa=await prepareLrSmartJsxForPush(_0x45034c,_0x461d11[_0x1d912c(0xd7)],transpileLrSmartJsx);if(_0x5079aa[_0x1d912c(0xe9)]===0x0&&computePageContentHash(_0x5079aa[_0x1d912c(0x10c)])===_0x55cee9[_0x1d912c(0x126)])return{'pageId':_0x281a13,'type':_0x55cee9[_0x1d912c(0xf7)],'title':_0x55cee9[_0x1d912c(0xe1)],'localPath':_0xb8faf,'status':'unchanged','reason':_0x1d912c(0xd8)};}catch(_0x41d6bd){return{'pageId':_0x281a13,'type':_0x55cee9[_0x1d912c(0xf7)],'title':_0x55cee9[_0x1d912c(0xe1)],'localPath':_0xb8faf,'status':_0x1d912c(0xf8),'reason':_0x41d6bd instanceof Error?_0x41d6bd[_0x1d912c(0x106)]:String(_0x41d6bd)};}return{'pageId':_0x281a13,'type':_0x55cee9[_0x1d912c(0xf7)],'title':_0x55cee9[_0x1d912c(0xe1)],'localPath':_0xb8faf,'status':'would_push'};}async function prepareSinglePush(_0x51d82d,_0x183076,_0x2aabf1,_0x588f0a,_0x4a3abd){const _0xa5e1da=a200_0x3da4d4;if(!_0x2aabf1)throw CliErrors[_0xa5e1da(0x11f)](_0xa5e1da(0x12a)+_0x588f0a+'.','Run\x20`'+CLI_BIN_NAME+'\x20page\x20pull\x20--id\x20'+_0x588f0a+_0xa5e1da(0x11b));const _0x406296=resolvePageFilePath(_0x183076,_0x588f0a,_0x2aabf1[_0xa5e1da(0xf7)]);if(!await fileExists(_0x406296))throw CliErrors[_0xa5e1da(0x11f)](_0xa5e1da(0x122)+_0x406296,_0xa5e1da(0x104)+CLI_BIN_NAME+_0xa5e1da(0xf2)+_0x588f0a+_0xa5e1da(0x11b));const _0x1068eb=await readFile(_0x406296,_0xa5e1da(0xff));try{JSON[_0xa5e1da(0xe4)](_0x1068eb);}catch{throw CliErrors[_0xa5e1da(0x11f)](_0xa5e1da(0xf1)+_0x406296);}const _0x52c95e=await loadPageDetailForPage(_0x51d82d,_0x588f0a);if(_0x4a3abd!=null&&!_0x52c95e[_0xa5e1da(0x10a)][_0xa5e1da(0xfa)](_0x4a3abd))throw CliErrors[_0xa5e1da(0x11f)](_0xa5e1da(0xeb)+_0x588f0a+_0xa5e1da(0x128));const _0xe59d7e=_0x2aabf1['pageVersion']!=null&&_0x52c95e[_0xa5e1da(0xfc)]!=null;if(_0xe59d7e){if(_0x2aabf1[_0xa5e1da(0xfc)]!==_0x52c95e[_0xa5e1da(0xfc)])throw CliErrors[_0xa5e1da(0x11f)](_0xa5e1da(0xd6)+_0x588f0a+'\x20has\x20changed\x20since\x20last\x20pull.',_0xa5e1da(0x104)+CLI_BIN_NAME+'\x20page\x20pull\x20--id\x20'+_0x588f0a+_0xa5e1da(0x11b));}else{const _0x54e2b1=computeSerializedSchemaHash(_0x52c95e['code']);if(_0x54e2b1!==_0x2aabf1[_0xa5e1da(0x126)])throw CliErrors['validation'](_0xa5e1da(0xd6)+_0x588f0a+_0xa5e1da(0x111),_0xa5e1da(0x104)+CLI_BIN_NAME+_0xa5e1da(0xf2)+_0x588f0a+_0xa5e1da(0x11b));}const _0x30cca2=await prepareLrSmartJsxForPush(_0x1068eb,_0x52c95e[_0xa5e1da(0xd7)],transpileLrSmartJsx);return{'lockEntry':_0x2aabf1,'localPath':_0x406296,'localContent':_0x30cca2[_0xa5e1da(0x10c)],'localHash':computePageContentHash(_0x30cca2['content']),'preparedChanges':_0x30cca2[_0xa5e1da(0xe9)]>0x0,'remoteDetail':_0x52c95e};}async function pushPreparedPage(_0x22a7a1,_0x288f0f){const _0x1be572=a200_0x3da4d4,_0x5857bb=await updatePage(_0x22a7a1[_0x1be572(0xe0)],_0x288f0f[_0x1be572(0xd4)][_0x1be572(0x108)],_0x288f0f['localContent'],_0x288f0f[_0x1be572(0xd4)][_0x1be572(0x10a)]);if(!_0x5857bb)throw CliErrors[_0x1be572(0x11d)](_0x1be572(0xe7)+_0x288f0f[_0x1be572(0xd4)][_0x1be572(0x108)]);const _0x3be86e=await loadPageDetailForPage(_0x22a7a1,_0x288f0f['remoteDetail'][_0x1be572(0x108)]),_0x1fd4bf=serializePageSchemaForFile(_0x3be86e[_0x1be572(0xd7)]);return await writeFile(_0x288f0f[_0x1be572(0x110)],_0x1fd4bf,_0x1be572(0xff)),{'pageId':_0x3be86e[_0x1be572(0x108)],'type':_0x3be86e[_0x1be572(0xf7)],'title':_0x3be86e[_0x1be572(0x120)],'normalized':_0x1fd4bf!==serializePageSchemaForFile(_0x288f0f[_0x1be572(0x112)]),'nextLockEntry':{'hash':computePageContentHash(_0x1fd4bf),'pageId':_0x3be86e[_0x1be572(0x108)],'pageVersion':_0x3be86e['pageVersion'],'type':_0x3be86e[_0x1be572(0xf7)],'title':_0x3be86e[_0x1be572(0x120)],'datasetIds':_0x3be86e[_0x1be572(0x10a)],'versionTag':_0x3be86e['versionTag']}};}
|