@lovrabet/rabetbase-cli 2.5.9-beta.1 → 2.5.10-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/design-context.js +1 -1
- package/lib/commands/dataset/design-start.js +1 -1
- package/lib/commands/dataset/design-status.js +1 -1
- package/lib/commands/dataset/design-sync-retry.js +1 -1
- package/lib/commands/dataset/design-sync-status.js +1 -1
- package/lib/commands/dataset/design-validate.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/cross-db-analysis-shared.js +1 -1
- package/lib/commands/db/cross-db-analyze-latest.js +1 -1
- package/lib/commands/db/cross-db-analyze-start.js +1 -1
- package/lib/commands/db/cross-db-analyze-status.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/page-list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-analysis.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-design/checkpoint.js +1 -1
- package/lib/services/dataset-design/commands.js +1 -1
- package/lib/services/dataset-design/contract.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/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 +2 -2
- package/skills/rabetbase/SKILL.md +2 -2
- package/skills/rabetbase-dataset-generation/SKILL.md +2 -2
- package/skills/rabetbase-page-generation/SKILL.md +2 -2
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a199_0x469a86=a199_0x5995;(function(_0x1e5875,_0x52b856){const _0x21a9a1=a199_0x5995,_0x292948=_0x1e5875();while(!![]){try{const _0x2310dc=-parseInt(_0x21a9a1(0x14b))/0x1+parseInt(_0x21a9a1(0x13d))/0x2+parseInt(_0x21a9a1(0x15d))/0x3*(-parseInt(_0x21a9a1(0x13e))/0x4)+-parseInt(_0x21a9a1(0x14f))/0x5+-parseInt(_0x21a9a1(0x146))/0x6*(-parseInt(_0x21a9a1(0x13f))/0x7)+-parseInt(_0x21a9a1(0x135))/0x8+parseInt(_0x21a9a1(0x133))/0x9;if(_0x2310dc===_0x52b856)break;else _0x292948['push'](_0x292948['shift']());}catch(_0x2b7d60){_0x292948['push'](_0x292948['shift']());}}}(a199_0x153c,0xdbf5d));function a199_0x153c(){const _0x4133e3=['DASHBOARD','31494780GgdJhA','Invalid\x20Custom\x20Page\x20pattern:\x20','13044808HXEAlN','parentMenuId','apiError','\x20and\x20its\x20menu\x20entry.','length','parent-menu-id','files','string','606392Smccyz','24dsInXK','1012767kBvWSA','../../../templates/custom-pages','page-type','write','Created\x20Custom\x20Page\x20','Built-in\x20Custom\x20Page\x20pattern\x20(cannot\x20be\x20used\x20with\x20--page-dir)','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','24epsFfB','num','page\x20create\x20no\x20longer\x20accepts\x20--page-content.','name','page-dir','670243lVTcqU','isInteger','.json','some','2275555lfugaL','trim','values','This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir.','Provide\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir\x20<dir>.','compress','version','page.create','--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.','keys','pageName','toLowerCase','stringify','str','362214wjdPRg','Custom\x20Page\x20pattern\x20not\x20found:\x20','now','BLANK','includes','Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.','Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20local\x20directory','page\x20create\x20does\x20not\x20accept\x20--page-type.','menuPath','page-content','Directory\x20containing\x20all\x20page\x20files\x20(cannot\x20be\x20used\x20with\x20--page-pattern)','--page-pattern\x20and\x20--page-dir\x20cannot\x20be\x20used\x20together.','pageId','Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','page-pattern','Would\x20create\x20Custom\x20Page\x20','--page-pattern\x20must\x20be\x20BLANK,\x20ONEPAGE,\x20or\x20DASHBOARD.','appCode','validation','Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.'];a199_0x153c=function(){return _0x4133e3;};return a199_0x153c();}import{readFile}from'node:fs/promises';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{APPCODE_FLAG}from'../../commands/common/flags.js';function a199_0x5995(_0x5221d4,_0x46a8bd){_0x5221d4=_0x5221d4-0x128;const _0x153c02=a199_0x153c();let _0x599575=_0x153c02[_0x5221d4];return _0x599575;}import{readCustomPageDirectory}from'../../core/page/file-system.js';import{createCustomPage}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,validateCustomPageContent}from'./custom/shared.js';const CUSTOM_PAGE_PATTERNS=[a199_0x469a86(0x160),'ONEPAGE',a199_0x469a86(0x132)],CUSTOM_PAGE_TEMPLATE_DIR=resolve(dirname(fileURLToPath(import.meta.url)),a199_0x469a86(0x140));export const pageCreate={'service':'page','command':'create','description':a199_0x469a86(0x163),'risk':a199_0x469a86(0x142),'defaultOutputFormat':a199_0x469a86(0x154),'structuredErrors':!![],'rejectedFlags':[{'name':a199_0x469a86(0x141),'message':a199_0x469a86(0x164),'hint':a199_0x469a86(0x152)},{'name':a199_0x469a86(0x166),'message':a199_0x469a86(0x148),'hint':a199_0x469a86(0x162)}],'flags':[{'name':a199_0x469a86(0x149),'type':a199_0x469a86(0x13c),'description':'Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)'},{'name':a199_0x469a86(0x13a),'type':'number','description':a199_0x469a86(0x145)},{'name':'page-pattern','type':a199_0x469a86(0x13c),'description':a199_0x469a86(0x144),'enum':CUSTOM_PAGE_PATTERNS},{'name':'page-dir','type':a199_0x469a86(0x13c),'description':a199_0x469a86(0x128)},APPCODE_FLAG],async 'validate'(_0x5ad4c9){await readValidatedPageSource(_0x5ad4c9);},async 'dryRun'(_0x48079e){const _0x4c067a=a199_0x469a86,_0x4ecf29=readInput(_0x48079e,await readValidatedPageSource(_0x48079e));return{'method':'POST','url':'/smartapi/webcode/page/create','body':{'appCode':_0x4ecf29[_0x4c067a(0x12f)],'pageName':_0x4ecf29[_0x4c067a(0x159)],..._0x4ecf29[_0x4c067a(0x136)]!=null?{'parentMenuId':_0x4ecf29[_0x4c067a(0x136)]}:{},'createMenu':_0x4ecf29['createMenu'],'codeContent':_0x4ecf29[_0x4c067a(0x13b)]},'description':_0x4c067a(0x12d)+JSON[_0x4c067a(0x15b)](_0x4ecf29[_0x4c067a(0x159)])+_0x4c067a(0x138)};},async 'execute'(_0x4df733){const _0x9fd68b=a199_0x469a86,_0x35022d=readInput(_0x4df733,await readValidatedPageSource(_0x4df733)),_0x59d169=await createCustomPage(_0x35022d);if(!Number[_0x9fd68b(0x14c)](_0x59d169[_0x9fd68b(0x12a)])||_0x59d169[_0x9fd68b(0x12a)]<=0x0)throw CliErrors[_0x9fd68b(0x137)](_0x9fd68b(0x131));const _0xb0b8f9=buildCustomPageDevelopmentUrl(_0x35022d[_0x9fd68b(0x12f)],_0x59d169[_0x9fd68b(0x165)]),_0x225b34=buildCustomPageEditUrl(_0x35022d[_0x9fd68b(0x12f)],_0x59d169[_0x9fd68b(0x12a)]);return{'ok':!![],'data':{'operation':_0x9fd68b(0x156),'pageType':'CUSTOM','pagePattern':readPagePattern(_0x4df733),'selector':{'appCode':_0x35022d['appCode'],'pageName':_0x35022d[_0x9fd68b(0x159)]},'before':null,'after':{'pageId':_0x59d169[_0x9fd68b(0x12a)],'pageName':_0x59d169[_0x9fd68b(0x159)],'appCode':_0x59d169['appCode'],'version':_0x59d169[_0x9fd68b(0x155)],'menuId':_0x59d169['menuId'],'menuPath':_0x59d169[_0x9fd68b(0x165)],'files':_0x59d169[_0x9fd68b(0x13b)]??Object[_0x9fd68b(0x158)](_0x35022d['files'])},'dryRun':![],'request':_0x35022d,..._0xb0b8f9?{'pageUrl':_0xb0b8f9}:{},..._0x225b34?{'editPageUrl':_0x225b34}:{},'warnings':_0xb0b8f9?[]:[_0x9fd68b(0x12b)]},'message':_0x9fd68b(0x143)+_0x59d169['pageId']+'.'};}};function readPagePattern(_0x2957e3){const _0x473696=a199_0x469a86,_0x1efd73=_0x2957e3[_0x473696(0x15c)](_0x473696(0x12c))[_0x473696(0x150)](),_0x33f936=_0x2957e3[_0x473696(0x15c)](_0x473696(0x14a))[_0x473696(0x150)]();if(_0x1efd73&&_0x33f936)throw CliErrors['validation'](_0x473696(0x129));if(_0x33f936)return null;if(!_0x1efd73)throw CliErrors[_0x473696(0x130)](_0x473696(0x153));if(!CUSTOM_PAGE_PATTERNS[_0x473696(0x161)](_0x1efd73))throw CliErrors[_0x473696(0x130)](_0x473696(0x12e));return _0x1efd73;}async function readPageSource(_0x4b86a3){const _0x44dee3=a199_0x469a86,_0x38056f=_0x4b86a3[_0x44dee3(0x15c)](_0x44dee3(0x14a))[_0x44dee3(0x150)](),_0x173940=readPagePattern(_0x4b86a3);if(_0x173940===null){const _0x53ae5c=await readCustomPageDirectory(_0x38056f);if(Object[_0x44dee3(0x158)](_0x53ae5c)[_0x44dee3(0x139)]===0x0)throw CliErrors[_0x44dee3(0x130)]('--page-dir\x20must\x20contain\x20at\x20least\x20one\x20page\x20file.');return _0x53ae5c;}let _0x4fc3fa;try{_0x4fc3fa=await readFile(join(CUSTOM_PAGE_TEMPLATE_DIR,_0x173940[_0x44dee3(0x15a)]()+_0x44dee3(0x14d)),'utf8');}catch{throw CliErrors[_0x44dee3(0x130)](_0x44dee3(0x15e)+_0x173940+'.');}let _0x2a8d8e;try{_0x2a8d8e=JSON['parse'](_0x4fc3fa);}catch{throw CliErrors['validation'](_0x44dee3(0x134)+_0x173940+'.');}if(!_0x2a8d8e||typeof _0x2a8d8e!=='object'||Array['isArray'](_0x2a8d8e)||Object[_0x44dee3(0x151)](_0x2a8d8e)[_0x44dee3(0x14e)](_0x55fbf0=>typeof _0x55fbf0!=='string'))throw CliErrors['validation'](_0x44dee3(0x134)+_0x173940+'.');return _0x2a8d8e;}async function readValidatedPageSource(_0x14e7ae){const _0x420c34=await readPageSource(_0x14e7ae);return await validateCustomPageContent(_0x420c34),_0x420c34;}function readInput(_0x5cdd94,_0x806413){const _0x573cb2=a199_0x469a86,_0x5874f4=_0x5cdd94['str'](_0x573cb2(0x149))[_0x573cb2(0x150)]()||'Custom_page_'+Date[_0x573cb2(0x15f)]();if(_0x5874f4[_0x573cb2(0x139)]>0x64)throw CliErrors['validation']('pageName\x20cannot\x20exceed\x20100\x20characters.');const _0x33e5b0=_0x5cdd94[_0x573cb2(0x147)](_0x573cb2(0x13a),NaN),_0x4ae861=!Number['isNaN'](_0x33e5b0);if(_0x4ae861&&(!Number['isInteger'](_0x33e5b0)||_0x33e5b0<=0x0))throw CliErrors[_0x573cb2(0x130)](_0x573cb2(0x157));return{'appCode':_0x5cdd94[_0x573cb2(0x12f)],'pageName':_0x5874f4,..._0x4ae861?{'parentMenuId':_0x33e5b0}:{},'createMenu':!![],'files':_0x806413};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a200_0x52929c=a200_0x4c01;(function(_0x5586b3,_0x30c9b5){const _0x194703=a200_0x4c01,_0x407f9d=_0x5586b3();while(!![]){try{const _0x3378cb=parseInt(_0x194703(0x7c))/0x1*(parseInt(_0x194703(0x8a))/0x2)+-parseInt(_0x194703(0x82))/0x3*(-parseInt(_0x194703(0x7f))/0x4)+parseInt(_0x194703(0x79))/0x5+parseInt(_0x194703(0x83))/0x6+-parseInt(_0x194703(0x70))/0x7+-parseInt(_0x194703(0x7b))/0x8*(parseInt(_0x194703(0x71))/0x9)+-parseInt(_0x194703(0x6e))/0xa;if(_0x3378cb===_0x30c9b5)break;else _0x407f9d['push'](_0x407f9d['shift']());}catch(_0x5b4720){_0x407f9d['push'](_0x407f9d['shift']());}}}(a200_0x29b3,0x588f2));import{getCustomPageSource}from'../../../core/api-client.js';function a200_0x4c01(_0x5b1ba8,_0x46f592){_0x5b1ba8=_0x5b1ba8-0x6e;const _0x29b353=a200_0x29b3();let _0x4c0155=_0x29b353[_0x5b1ba8];return _0x4c0155;}import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':a200_0x52929c(0x7a),'command':'custom-detail','description':'Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','risk':a200_0x52929c(0x72),'defaultOutputFormat':a200_0x52929c(0x86),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a200_0x52929c(0x77),'required':!![],'description':a200_0x52929c(0x89)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0xa9e0ac){readCustomPageId(_0xa9e0ac);},async 'execute'(_0x4a92a7){const _0x345c5e=a200_0x52929c,_0x5b8b9b=readCustomPageId(_0x4a92a7),_0x146a87=await getCustomPageSource(_0x5b8b9b),{bundle:_0x45504d,createTime:_0x5b5b66,updateTime:_0x574657,..._0x291936}=_0x146a87,_0xf77974=_0x146a87['id']??_0x5b8b9b,_0x2930db=_0x146a87[_0x345c5e(0x76)]?.[_0x345c5e(0x73)]()||_0x4a92a7['str'](_0x345c5e(0x87))[_0x345c5e(0x73)](),_0x4f0aba=buildCustomPageRuntimeUrl(_0x2930db,_0x146a87[_0x345c5e(0x6f)]),_0x5c10bc=buildCustomPageEditUrl(_0x2930db,_0xf77974),_0x274aaa=await resolveCustomPageDevelopmentUrl(_0x2930db,_0xf77974,_0x4a92a7[_0x345c5e(0x7e)]);return{'ok':!![],'data':{..._0x291936,..._0x4f0aba?{'runtimePageUrl':_0x4f0aba}:{},..._0x274aaa?{'pageUrl':_0x274aaa}:{},..._0x5c10bc?{'editPageUrl':_0x5c10bc}:{},..._0x5b5b66==null?{}:{'createTime':formatTime(_0x5b5b66)},..._0x574657==null?{}:{'updateTime':formatTime(_0x574657)}},'message':_0x345c5e(0x81)+_0x5b8b9b+'.'};}};function formatTime(_0x58385c){const _0x1cb6e6=a200_0x52929c,_0xca9eed=new Date(_0x58385c);if(Number[_0x1cb6e6(0x80)](_0xca9eed[_0x1cb6e6(0x85)]()))return String(_0x58385c);const _0x388ebe=[_0xca9eed['getFullYear'](),String(_0xca9eed[_0x1cb6e6(0x84)]()+0x1)['padStart'](0x2,'0'),String(_0xca9eed[_0x1cb6e6(0x7d)]())[_0x1cb6e6(0x75)](0x2,'0')][_0x1cb6e6(0x88)]('-'),_0xdd4af8=[String(_0xca9eed[_0x1cb6e6(0x78)]())[_0x1cb6e6(0x75)](0x2,'0'),String(_0xca9eed[_0x1cb6e6(0x74)]())[_0x1cb6e6(0x75)](0x2,'0'),String(_0xca9eed['getSeconds']())[_0x1cb6e6(0x75)](0x2,'0')][_0x1cb6e6(0x88)](':');return _0x388ebe+'\x20'+_0xdd4af8;}function a200_0x29b3(){const _0x4ce8be=['getHours','967815wZsIFj','page','2168KTlIJl','5XFJIqd','getDate','cookie','2600028XCQcBh','isNaN','Retrieved\x20Custom\x20Page\x20','3lkLgWe','1394820sSMvPl','getMonth','getTime','compress','appcode','join','Custom\x20Page\x20ID','79642SzXriq','2332780DDtFxd','pageCode','2741186zNZJjK','9549XxMDBV','read','trim','getMinutes','padStart','appCode','number'];a200_0x29b3=function(){return _0x4ce8be;};return a200_0x29b3();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a201_0x572aac=a201_0x3c5f;(function(_0x65bc3c,_0x26bf0b){const _0x54a23a=a201_0x3c5f,_0x2e099f=_0x65bc3c();while(!![]){try{const _0x457985=-parseInt(_0x54a23a(0x179))/0x1*(-parseInt(_0x54a23a(0x17b))/0x2)+-parseInt(_0x54a23a(0x188))/0x3*(-parseInt(_0x54a23a(0x17d))/0x4)+-parseInt(_0x54a23a(0x177))/0x5+-parseInt(_0x54a23a(0x185))/0x6+parseInt(_0x54a23a(0x182))/0x7+parseInt(_0x54a23a(0x178))/0x8*(parseInt(_0x54a23a(0x180))/0x9)+parseInt(_0x54a23a(0x17f))/0xa*(-parseInt(_0x54a23a(0x17c))/0xb);if(_0x457985===_0x26bf0b)break;else _0x2e099f['push'](_0x2e099f['shift']());}catch(_0x54c139){_0x2e099f['push'](_0x2e099f['shift']());}}}(a201_0x3992,0xd02c7));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';function a201_0x3992(){const _0x12d9dd=['4YFYejl','Found\x20','6314440NsoRnj','25191ULmBOl','label','561092SksHjQ','path','type','3356478KFVQXW','appCode','custom-list','2674440NoRUdF','react','page','flatMap','No\x20Custom\x20Pages\x20found.','cookie','compress','List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','6341975jvGGjw','1944jEcFSy','5666BShWfO','pageId','586iWBVqG','11AuqDDd'];a201_0x3992=function(){return _0x12d9dd;};return a201_0x3992();}function a201_0x3c5f(_0x3e3b2e,_0x1aff55){_0x3e3b2e=_0x3e3b2e-0x176;const _0x399252=a201_0x3992();let _0x3c5f67=_0x399252[_0x3e3b2e];return _0x3c5f67;}import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,buildCustomPageRuntimeUrl}from'./shared.js';export const pageCustomList={'service':a201_0x572aac(0x18a),'command':a201_0x572aac(0x187),'description':a201_0x572aac(0x176),'risk':'read','defaultOutputFormat':a201_0x572aac(0x18e),'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1071df){const _0x3da875=a201_0x572aac,_0x16061f=(await fetchMenuSnapshot(_0x1071df[_0x3da875(0x186)],_0x1071df[_0x3da875(0x18d)]))['menus'][_0x3da875(0x18b)](_0x830c14=>{const _0x70bb61=_0x3da875;if(_0x830c14[_0x70bb61(0x184)]!==_0x70bb61(0x189)||_0x830c14['pageId']==null)return[];const _0x2b9c6f=buildCustomPageDevelopmentUrl(_0x1071df[_0x70bb61(0x186)],_0x830c14[_0x70bb61(0x183)]),_0x5ec4c2=buildCustomPageRuntimeUrl(_0x1071df[_0x70bb61(0x186)],_0x830c14[_0x70bb61(0x183)]),_0x3a26fe=buildCustomPageEditUrl(_0x1071df[_0x70bb61(0x186)],_0x830c14['pageId']);return[{'pageId':_0x830c14[_0x70bb61(0x17a)],'label':_0x830c14[_0x70bb61(0x181)],'path':_0x830c14[_0x70bb61(0x183)],..._0x2b9c6f?{'pageUrl':_0x2b9c6f}:{},..._0x5ec4c2?{'runtimePageUrl':_0x5ec4c2}:{},..._0x3a26fe?{'editPageUrl':_0x3a26fe}:{}}];});return{'ok':!![],'data':{'pages':_0x16061f},'message':_0x16061f['length']===0x0?_0x3da875(0x18c):_0x3da875(0x17e)+_0x16061f['length']+'\x20Custom\x20Page(s).'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a202_0x4dca26=a202_0x5c4f;(function(_0x4356bd,_0x3a5411){const _0xe4800=a202_0x5c4f,_0xa767eb=_0x4356bd();while(!![]){try{const _0x39158d=-parseInt(_0xe4800(0x89))/0x1+parseInt(_0xe4800(0x7d))/0x2+-parseInt(_0xe4800(0x83))/0x3+parseInt(_0xe4800(0x70))/0x4+-parseInt(_0xe4800(0x88))/0x5*(-parseInt(_0xe4800(0x6d))/0x6)+-parseInt(_0xe4800(0x80))/0x7+parseInt(_0xe4800(0x7a))/0x8*(parseInt(_0xe4800(0x8a))/0x9);if(_0x39158d===_0x3a5411)break;else _0xa767eb['push'](_0xa767eb['shift']());}catch(_0x58e77c){_0xa767eb['push'](_0xa767eb['shift']());}}}(a202_0x14cc,0xc919b));import{getCustomPageSource,publishCustomPage}from'../../../core/api-client.js';function a202_0x5c4f(_0x3599da,_0x41d2c3){_0x3599da=_0x3599da-0x6b;const _0x14ccb8=a202_0x14cc();let _0x5c4f4c=_0x14ccb8[_0x3599da];return _0x5c4f4c;}import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomPublish={'service':'page','command':a202_0x4dca26(0x85),'description':a202_0x4dca26(0x81),'risk':'write','defaultOutputFormat':a202_0x4dca26(0x75),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a202_0x4dca26(0x82),'required':!![],'description':a202_0x4dca26(0x7c)},{'name':a202_0x4dca26(0x74),'type':a202_0x4dca26(0x87),'description':a202_0x4dca26(0x84)}],async 'validate'(_0x42b8a4){readCustomPageId(_0x42b8a4);},async 'dryRun'(_0x5a40b6){const _0x4c4da8=a202_0x4dca26,_0x29af21=readInput(_0x5a40b6);return{'method':'POST','url':'/smartapi/webcode/file/publish','body':{'id':_0x29af21[_0x4c4da8(0x77)],..._0x29af21[_0x4c4da8(0x74)]?{'remark':_0x29af21[_0x4c4da8(0x74)]}:{}},'description':_0x4c4da8(0x6c)+_0x29af21[_0x4c4da8(0x77)]+'.'};},async 'execute'(_0x40ea05){const _0xb0b353=a202_0x4dca26,_0x43723c=readInput(_0x40ea05);await getCustomPageSource(_0x43723c['pageId']);const _0x479696=await publishCustomPage(_0x43723c);if(!Number[_0xb0b353(0x8b)](_0x479696)||_0x479696!==_0x43723c['pageId'])throw CliErrors[_0xb0b353(0x7b)](_0xb0b353(0x6f));const _0x1746ad=await getCustomPageSource(_0x43723c[_0xb0b353(0x77)]);if(_0x1746ad['status']!==_0xb0b353(0x73))throw CliErrors[_0xb0b353(0x7b)](_0xb0b353(0x6b)+(_0x1746ad[_0xb0b353(0x7e)]??'unknown')+'.');const _0x5c1ae5=_0x1746ad[_0xb0b353(0x86)]?.[_0xb0b353(0x71)](),_0x2ac679=buildCustomPageEditUrl(_0x5c1ae5,_0x43723c[_0xb0b353(0x77)]),_0x2adde3=await resolveCustomPageDevelopmentUrl(_0x5c1ae5,_0x43723c[_0xb0b353(0x77)],_0x40ea05['cookie']),_0x4d62d2=buildMutationData(_0x43723c,!![],_0x2adde3,_0x2ac679);_0x5c1ae5&&!_0x2adde3&&_0x4d62d2[_0xb0b353(0x79)][_0xb0b353(0x72)]('Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.');const _0x2d4067=buildCustomPageRuntimeUrl(_0x1746ad['appCode'],_0x1746ad[_0xb0b353(0x76)]);return _0x2d4067?_0x4d62d2[_0xb0b353(0x6e)]=_0x2d4067:_0x4d62d2['warnings']['push'](_0xb0b353(0x7f)),{'ok':!![],'data':_0x4d62d2,'message':'Published\x20Custom\x20Page\x20'+_0x43723c['pageId']+'.'};}};function a202_0x14cc(){const _0x5b9ea8=['runtimePageUrl','Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.','4807492lXsGLU','trim','push','FORMAL','remark','compress','pageCode','pageId','str','warnings','2169976UDHlNN','apiError','Custom\x20Page\x20ID','422252fjAFsm','status','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.','6833652MhMNYb','Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page','number','3589428fJmYom','Optional\x20publish\x20remark','custom-publish','appCode','string','1682885iPiHIL','240052sudrJn','27keZUnQ','isInteger','Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','Would\x20publish\x20Custom\x20Page\x20','18vVUyJQ'];a202_0x14cc=function(){return _0x5b9ea8;};return a202_0x14cc();}function readInput(_0x5a1038){const _0x194e50=a202_0x4dca26,_0x476c74=readCustomPageId(_0x5a1038),_0x1f8675=_0x5a1038[_0x194e50(0x78)](_0x194e50(0x74))['trim']();return{'pageId':_0x476c74,..._0x1f8675?{'remark':_0x1f8675}:{}};}function buildMutationData(_0xfb03be,_0x4364ea=![],_0xc17f50,_0x204912){const _0x367c26=a202_0x4dca26;return{'operation':'page.custom-publish','selector':{'pageId':_0xfb03be['pageId']},'before':null,'after':{'pageId':_0xfb03be[_0x367c26(0x77)],'status':_0x367c26(0x73)},'dryRun':!_0x4364ea,'request':_0xfb03be,..._0xc17f50?{'pageUrl':_0xc17f50}:{},..._0x204912?{'editPageUrl':_0x204912}:{},'warnings':[]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a203_0x3821(_0x1b2261,_0x15030c){_0x1b2261=_0x1b2261-0x195;const _0x17e600=a203_0x17e6();let _0x382102=_0x17e600[_0x1b2261];return _0x382102;}const a203_0x3b9810=a203_0x3821;(function(_0x35bd86,_0x5d89e8){const _0x5878fd=a203_0x3821,_0x84c293=_0x35bd86();while(!![]){try{const _0x4d1de4=parseInt(_0x5878fd(0x1a8))/0x1*(parseInt(_0x5878fd(0x196))/0x2)+parseInt(_0x5878fd(0x1a4))/0x3+-parseInt(_0x5878fd(0x19e))/0x4+-parseInt(_0x5878fd(0x1a7))/0x5*(-parseInt(_0x5878fd(0x198))/0x6)+-parseInt(_0x5878fd(0x195))/0x7+-parseInt(_0x5878fd(0x1aa))/0x8+-parseInt(_0x5878fd(0x1a6))/0x9;if(_0x4d1de4===_0x5d89e8)break;else _0x84c293['push'](_0x84c293['shift']());}catch(_0x3cf3c8){_0x84c293['push'](_0x84c293['shift']());}}}(a203_0x17e6,0xaaeac));function a203_0x17e6(){const _0x45f624=['11pQQofp','path','2824600VvDDoQ','validation','/ide/','type','3654756muJmEX','201466PmZUJS','num','15654birKaQ','/pages/','map','join','isInteger','react','138560EmEnvy','file','length','find','Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted','Invalid\x20Custom\x20Page\x20content:\x20','2674215IUmxDW','menus','9658143NEtWia','1310ZNoHkp'];a203_0x17e6=function(){return _0x45f624;};return a203_0x17e6();}import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{getAppBaseUrl,getPublishedAppDomain}from'../../../constant/domain.js';import{CliErrors}from'../../../errors.js';import{validateCustomPageSourceFiles}from'./syntax.js';export const CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL={...APPCODE_FLAG_OPTIONAL,'description':a203_0x3b9810(0x1a2)};function trimOptional(_0x15f0c0){return _0x15f0c0?.['trim']()||undefined;}export function buildCustomPageRuntimeUrl(_0x1abddd,_0x57f072){const _0x101a59=trimOptional(_0x1abddd),_0x1c251a=trimOptional(_0x57f072);if(!_0x101a59||!_0x1c251a)return undefined;return getPublishedAppDomain(_0x101a59)+'/'+encodeURIComponent(_0x1c251a);}export function buildCustomPageDevelopmentUrl(_0x497c42,_0x14d551){const _0x52f82c=a203_0x3b9810,_0x463ffd=trimOptional(_0x497c42),_0x4d36f5=trimOptional(_0x14d551);if(!_0x463ffd||!_0x4d36f5)return undefined;return getAppBaseUrl(_0x463ffd)+_0x52f82c(0x199)+encodeURIComponent(_0x4d36f5);}export async function resolveCustomPageDevelopmentUrl(_0x463aca,_0x35fcfa,_0x2f2145){const _0x5ee93e=a203_0x3b9810,_0x161ad8=trimOptional(_0x463aca);if(!_0x161ad8)return undefined;try{const _0x520684=(await fetchMenuSnapshot(_0x161ad8,_0x2f2145))[_0x5ee93e(0x1a5)][_0x5ee93e(0x1a1)](_0x45f358=>_0x45f358[_0x5ee93e(0x1ad)]===_0x5ee93e(0x19d)&&_0x45f358['pageId']===_0x35fcfa);return buildCustomPageDevelopmentUrl(_0x161ad8,_0x520684?.[_0x5ee93e(0x1a9)]);}catch{return undefined;}}export function buildCustomPageEditUrl(_0x432ed0,_0x1b7ebc){const _0x128ed1=a203_0x3b9810,_0x5abb8c=trimOptional(_0x432ed0);if(!_0x5abb8c)return;const _0x2b8dc8=trimOptional(String(_0x1b7ebc??''));if(!_0x2b8dc8)return;return getAppBaseUrl(_0x5abb8c)+_0x128ed1(0x1ac)+encodeURIComponent(_0x2b8dc8);}export async function validateCustomPageContent(_0x11f8f4){const _0x2eb97f=a203_0x3b9810,_0x15ecc1=await validateCustomPageSourceFiles(_0x11f8f4);if(_0x15ecc1[_0x2eb97f(0x1a0)]>0x0)throw CliErrors[_0x2eb97f(0x1ab)](_0x2eb97f(0x1a3)+_0x15ecc1[_0x2eb97f(0x19a)](_0x3b82f4=>_0x3b82f4[_0x2eb97f(0x19f)]+':\x20'+_0x3b82f4['message'])[_0x2eb97f(0x19b)](';\x20'));}export function readCustomPageId(_0x5725f1){const _0x28d56c=a203_0x3b9810,_0x99df3=_0x5725f1[_0x28d56c(0x197)]('id');if(!Number[_0x28d56c(0x19c)](_0x99df3)||_0x99df3<=0x0)throw CliErrors['validation']('--id\x20must\x20be\x20a\x20positive\x20integer.');return _0x99df3;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a204_0x4293(_0x175964,_0x4d648c){_0x175964=_0x175964-0x1e8;const _0x22b130=a204_0x22b1();let _0x4293dc=_0x22b130[_0x175964];return _0x4293dc;}const a204_0x59534f=a204_0x4293;(function(_0x23b4be,_0x509027){const _0x1f6929=a204_0x4293,_0x4d3ea3=_0x23b4be();while(!![]){try{const _0x22e8bd=parseInt(_0x1f6929(0x1f3))/0x1+parseInt(_0x1f6929(0x1f0))/0x2*(parseInt(_0x1f6929(0x1f5))/0x3)+parseInt(_0x1f6929(0x1fd))/0x4+-parseInt(_0x1f6929(0x1ff))/0x5+-parseInt(_0x1f6929(0x1e9))/0x6*(parseInt(_0x1f6929(0x201))/0x7)+parseInt(_0x1f6929(0x1ea))/0x8*(-parseInt(_0x1f6929(0x202))/0x9)+parseInt(_0x1f6929(0x1fe))/0xa*(parseInt(_0x1f6929(0x1ee))/0xb);if(_0x22e8bd===_0x509027)break;else _0x4d3ea3['push'](_0x4d3ea3['shift']());}catch(_0x1896bf){_0x4d3ea3['push'](_0x4d3ea3['shift']());}}}(a204_0x22b1,0xf0847));import{format}from'prettier';const SOURCE_PARSERS={'.js':a204_0x59534f(0x1e8),'.jsx':a204_0x59534f(0x1e8),'.ts':a204_0x59534f(0x1f8),'.tsx':a204_0x59534f(0x1f8)},CUSTOM_PAGE_EXTENSIONS=[a204_0x59534f(0x1f6),a204_0x59534f(0x1f1)];function a204_0x22b1(){const _0x589638=['all','entries','find','23551WUVvOb','some','62RlHGCb','.tsx','page\x20files','1830738EzjeZW','filter','158577BCGjUh','.jsx','Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx','typescript','endsWith','message','trim','toLowerCase','4977412SyCdZU','2730vXBSDw','8506230AOlqzc','map','6701800vXgcDr','702FZkAUu','babel','12iBvMTJ','71488TtNKbh'];a204_0x22b1=function(){return _0x589638;};return a204_0x22b1();}export async function validateCustomPageSourceFiles(_0x32d7f9){const _0x22ed0c=a204_0x59534f,_0x149346=Object[_0x22ed0c(0x1ec)](_0x32d7f9)[_0x22ed0c(0x1f4)](([_0x279681])=>getParser(_0x279681));if(!_0x149346[_0x22ed0c(0x1ef)](([_0x54a7d3])=>isReactSourceFile(_0x54a7d3)))return[{'file':_0x22ed0c(0x1f2),'message':_0x22ed0c(0x1f7)}];const _0x5d0c3b=await Promise[_0x22ed0c(0x1eb)](_0x149346[_0x22ed0c(0x200)](async([_0xde304a,_0x39f442])=>{const _0x2b1db3=_0x22ed0c;try{return await format(_0x39f442,{'parser':getParser(_0xde304a)}),undefined;}catch(_0x257dfb){return{'file':_0xde304a,'message':_0x257dfb instanceof Error?_0x257dfb[_0x2b1db3(0x1fa)]:String(_0x257dfb)};}}));return _0x5d0c3b['filter'](_0x3ccbfd=>_0x3ccbfd!==undefined);}function getParser(_0x5c95e5){const _0x2884e7=a204_0x59534f,_0xc9d3ce=_0x5c95e5[_0x2884e7(0x1fb)]()[_0x2884e7(0x1fc)]();return Object[_0x2884e7(0x1ec)](SOURCE_PARSERS)[_0x2884e7(0x1ed)](([_0x5f5c49])=>_0xc9d3ce[_0x2884e7(0x1f9)](_0x5f5c49))?.[0x1];}function isReactSourceFile(_0x4fd779){const _0x5784ea=a204_0x59534f,_0x1e390e=_0x4fd779['trim']()[_0x5784ea(0x1fc)]();return CUSTOM_PAGE_EXTENSIONS[_0x5784ea(0x1ef)](_0x1764a4=>_0x1e390e[_0x5784ea(0x1f9)](_0x1764a4));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a205_0x2594d2=a205_0x2562;(function(_0x322594,_0x551834){const _0x15513c=a205_0x2562,_0x2e4ad5=_0x322594();while(!![]){try{const _0xdb701d=parseInt(_0x15513c(0x1f8))/0x1*(-parseInt(_0x15513c(0x1f5))/0x2)+parseInt(_0x15513c(0x1f7))/0x3+parseInt(_0x15513c(0x208))/0x4+parseInt(_0x15513c(0x1ed))/0x5*(parseInt(_0x15513c(0x1ef))/0x6)+parseInt(_0x15513c(0x1f2))/0x7+parseInt(_0x15513c(0x207))/0x8+-parseInt(_0x15513c(0x1e6))/0x9*(parseInt(_0x15513c(0x202))/0xa);if(_0xdb701d===_0x551834)break;else _0x2e4ad5['push'](_0x2e4ad5['shift']());}catch(_0x53432d){_0x2e4ad5['push'](_0x2e4ad5['shift']());}}}(a205_0x4384,0x9ba74));import{getCustomPageSource,updateCustomPageContent}from'../../../core/api-client.js';import{readCustomPageDirectory}from'../../../core/page/file-system.js';function a205_0x2562(_0x3960de,_0x1ce486){_0x3960de=_0x3960de-0x1e6;const _0x43847a=a205_0x4384();let _0x2562e5=_0x43847a[_0x3960de];return _0x2562e5;}import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,resolveCustomPageDevelopmentUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,validateCustomPageContent}from'./shared.js';export const pageCustomUpdate={'service':a205_0x2594d2(0x204),'command':'custom-update','description':a205_0x2594d2(0x1fe),'risk':'write','defaultOutputFormat':'compress','structuredErrors':!![],'requiresAppCode':![],'rejectedFlags':[{'name':a205_0x2594d2(0x1f0),'message':a205_0x2594d2(0x1fc),'hint':a205_0x2594d2(0x1fa)}],'flags':[{'name':'id','type':a205_0x2594d2(0x200),'required':!![],'description':'Custom\x20Page\x20ID'},{'name':a205_0x2594d2(0x1eb),'type':a205_0x2594d2(0x1ee),'required':!![],'description':a205_0x2594d2(0x1f6)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x48d28a){readCustomPageId(_0x48d28a),await readValidatedPageContent(_0x48d28a);},async 'dryRun'(_0x4e4299){const _0x3a20a3=a205_0x2594d2,_0x517c37=await readInput(_0x4e4299);return{'method':_0x3a20a3(0x1ff),'url':_0x3a20a3(0x203),'body':{'id':_0x517c37[_0x3a20a3(0x1f3)],'codeContent':_0x517c37[_0x3a20a3(0x1fd)]},'description':_0x3a20a3(0x1f9)+_0x517c37[_0x3a20a3(0x1f3)]+'.'};},async 'execute'(_0x1f4a61){const _0x2b64d3=a205_0x2594d2,_0x41888c=await readInput(_0x1f4a61),_0x24d1ba=await updateCustomPageContent({'pageId':_0x41888c[_0x2b64d3(0x1f3)],'pageContent':_0x41888c[_0x2b64d3(0x1fd)]});if(!Number['isInteger'](_0x24d1ba[_0x2b64d3(0x1f4)])||_0x24d1ba[_0x2b64d3(0x1f4)]<=0x0)throw CliErrors[_0x2b64d3(0x1e7)](_0x2b64d3(0x1e8));const _0x8e064b=buildCustomPageEditUrl(_0x41888c[_0x2b64d3(0x205)],_0x41888c[_0x2b64d3(0x1f3)]),_0x25a87f=await resolveCustomPageDevelopmentUrl(_0x41888c[_0x2b64d3(0x205)],_0x41888c[_0x2b64d3(0x1f3)],_0x1f4a61['cookie']);return{'ok':!![],'data':{'operation':_0x2b64d3(0x1e9),'selector':{'appCode':_0x41888c[_0x2b64d3(0x205)],'pageId':_0x41888c[_0x2b64d3(0x1f3)]},'before':null,'after':{'pageId':_0x24d1ba[_0x2b64d3(0x1f3)],'version':_0x24d1ba[_0x2b64d3(0x1f4)],'pageContent':_0x41888c[_0x2b64d3(0x1fd)]},'dryRun':![],'request':_0x41888c,..._0x25a87f?{'pageUrl':_0x25a87f}:{},..._0x8e064b?{'editPageUrl':_0x8e064b}:{},'warnings':_0x25a87f?[]:[_0x2b64d3(0x1ec)]},'message':_0x2b64d3(0x1fb)+_0x41888c[_0x2b64d3(0x1f3)]+'.'};}};async function readInput(_0x292815){const _0x25f6f9=a205_0x2594d2,_0x2bcbe8=readCustomPageId(_0x292815),_0x3e5099=_0x292815['str'](_0x25f6f9(0x206))['trim']()||(await getCustomPageSource(_0x2bcbe8))[_0x25f6f9(0x205)]?.[_0x25f6f9(0x1ea)]();if(!_0x3e5099)throw CliErrors[_0x25f6f9(0x201)](_0x25f6f9(0x1f1)+_0x2bcbe8+'.');return{'appCode':_0x3e5099,'pageId':_0x2bcbe8,'pageContent':await readValidatedPageContent(_0x292815)};}function a205_0x4384(){const _0x1d63a2=['5932856pEsOyl','5013584YEfLjj','25024185VounTW','apiError','Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.','page.custom-update','trim','page-dir','Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','10sjoEnm','string','3327864qHllKU','page-content','Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20','7828401oHsgbr','pageId','newVersion','6898JatNvN','Directory\x20containing\x20all\x20complete\x20page\x20files','835119cUJMxI','314loFpmL','Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20','Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.','Updated\x20Custom\x20Page\x20','page\x20custom-update\x20no\x20longer\x20accepts\x20--page-content.','pageContent','Save\x20all\x20files\x20of\x20a\x20Custom\x20Page','POST','number','validation','10uvpDYT','/smartapi/webcode/page/update/content','page','appCode','appcode'];a205_0x4384=function(){return _0x1d63a2;};return a205_0x4384();}async function readValidatedPageContent(_0x5bc08f){const _0x433a0e=await readCustomPageDirectory(_0x5bc08f['str']('page-dir'));return await validateCustomPageContent(_0x433a0e),_0x433a0e;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a206_0x29f951=a206_0x1537;(function(_0x103688,_0x5111cd){const _0x3c93e5=a206_0x1537,_0x29a230=_0x103688();while(!![]){try{const _0x48ab6d=-parseInt(_0x3c93e5(0x1a5))/0x1+-parseInt(_0x3c93e5(0x19f))/0x2+parseInt(_0x3c93e5(0x19a))/0x3*(-parseInt(_0x3c93e5(0x1a3))/0x4)+parseInt(_0x3c93e5(0x1a1))/0x5*(-parseInt(_0x3c93e5(0x197))/0x6)+parseInt(_0x3c93e5(0x198))/0x7*(-parseInt(_0x3c93e5(0x1a8))/0x8)+-parseInt(_0x3c93e5(0x1ab))/0x9+parseInt(_0x3c93e5(0x1ad))/0xa;if(_0x48ab6d===_0x5111cd)break;else _0x29a230['push'](_0x29a230['shift']());}catch(_0x38cbbc){_0x29a230['push'](_0x29a230['shift']());}}}(a206_0x267f,0xd2002));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessDataListPageState,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';function a206_0x267f(){const _0x53a956=['compress','Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','27440UljuUg','name','/standard-page-status?appCode=','7103160giVRth','status','43381520pptXRL','appCode','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','GET','page','59808mdbMhD','518ahwzXP','length','8628jwPCWs','read','related-pages-fallback','data-list-status','code','1238634NUQrIS','nextAction','85kdsGaz','relatedPages','1824oiKcdV','string','334701eiIiWK'];a206_0x267f=function(){return _0x53a956;};return a206_0x267f();}function a206_0x1537(_0x28741c,_0x2c5ef4){_0x28741c=_0x28741c-0x193;const _0x267fa6=a206_0x267f();let _0x1537f5=_0x267fa6[_0x28741c];return _0x1537f5;}export const pageDataListStatus={'service':a206_0x29f951(0x196),'command':a206_0x29f951(0x19d),'description':a206_0x29f951(0x1a7),'risk':a206_0x29f951(0x19b),'defaultOutputFormat':a206_0x29f951(0x1a6),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':'alias','type':a206_0x29f951(0x1a4),'description':a206_0x29f951(0x194)}],async 'validate'(_0x3415a5){validateDatasetSelector(_0x3415a5);},async 'dryRun'(_0x3d539c){const _0x3432ff=a206_0x29f951,_0x1f0d04=await loadDatasetDetailForPage(_0x3d539c);return{'method':_0x3432ff(0x195),'url':'/smartapi/lovrabet/dataset/'+_0x1f0d04[_0x3432ff(0x19e)]+_0x3432ff(0x1aa)+encodeURIComponent(_0x3d539c[_0x3432ff(0x193)]),'description':serializeDryRunDescription({'dataset':{'id':_0x1f0d04['id'],'code':_0x1f0d04[_0x3432ff(0x19e)],'name':_0x1f0d04[_0x3432ff(0x1a9)]},'action':'query-data-list-status'})};},async 'execute'(_0x5f3140){const _0x1c83fe=a206_0x29f951,_0x115cc1=await loadDatasetDetailForPage(_0x5f3140),_0x8a2ff9=await loadDataListPageStatusForGenerate(_0x5f3140,_0x115cc1[_0x1c83fe(0x19e)]),_0x15e43f=getUndeletedRelatedPages(_0x115cc1),_0x89ec96=assessDataListPageState(_0x115cc1[_0x1c83fe(0x19e)],_0x8a2ff9,{'fallbackUndeletedPages':_0x15e43f});return{'ok':!![],'data':{'datasetCode':_0x115cc1['code'],'precheckSource':_0x8a2ff9?.['source']??_0x1c83fe(0x19c),'status':_0x89ec96[_0x1c83fe(0x1ac)],'manualResolutionRequired':_0x89ec96['manualResolutionRequired'],'nextAction':_0x89ec96[_0x1c83fe(0x1a0)],'dataListPageStatus':_0x8a2ff9,'relatedPages':{'total':_0x115cc1[_0x1c83fe(0x1a2)][_0x1c83fe(0x199)],'undeletedCount':_0x15e43f[_0x1c83fe(0x199)]}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a207_0x2a31e1=a207_0x31e3;function a207_0x31e3(_0x12ef33,_0x34b864){_0x12ef33=_0x12ef33-0xb9;const _0x29c04c=a207_0x29c0();let _0x31e3e2=_0x29c04c[_0x12ef33];return _0x31e3e2;}(function(_0x44c12a,_0x271664){const _0x197af0=a207_0x31e3,_0x41a7cc=_0x44c12a();while(!![]){try{const _0x482bb5=-parseInt(_0x197af0(0xe3))/0x1+-parseInt(_0x197af0(0xe5))/0x2*(-parseInt(_0x197af0(0xcf))/0x3)+parseInt(_0x197af0(0xc9))/0x4*(parseInt(_0x197af0(0xd3))/0x5)+-parseInt(_0x197af0(0xe7))/0x6*(-parseInt(_0x197af0(0xd7))/0x7)+-parseInt(_0x197af0(0xde))/0x8+parseInt(_0x197af0(0xbc))/0x9*(-parseInt(_0x197af0(0xbb))/0xa)+parseInt(_0x197af0(0xd0))/0xb;if(_0x482bb5===_0x271664)break;else _0x41a7cc['push'](_0x41a7cc['shift']());}catch(_0x5bd622){_0x41a7cc['push'](_0x41a7cc['shift']());}}}(a207_0x29c0,0x1cde7));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessGenerateOperationState,assessDataListPageState,buildPageGenerateOperationStatusQueryCommand,buildDataListPageStatusQueryCommand,createPageGenerateClientOperationId,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';import{startGenerateDataListPages}from'../../core/api-client.js';export const pageGenerateStart={'service':'page','command':a207_0x2a31e1(0xb9),'description':'Start\x20async\x20Data\x20List\x20Page\x20generation\x20from\x20a\x20dataset','risk':a207_0x2a31e1(0xc1),'defaultOutputFormat':a207_0x2a31e1(0xe0),'rejectedFlags':[{'name':a207_0x2a31e1(0xcb),'message':a207_0x2a31e1(0xbe),'hint':a207_0x2a31e1(0xd6)},{'name':'page-pattern','message':a207_0x2a31e1(0xce),'hint':a207_0x2a31e1(0xc5)}],'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':'alias','type':'string','description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'},{'name':a207_0x2a31e1(0xda),'type':'boolean','description':a207_0x2a31e1(0xc8)}],async 'validate'(_0x4e92be){validateDatasetSelector(_0x4e92be);},async 'dryRun'(_0xfe081f){const _0x5efc44=a207_0x2a31e1,_0x52f17d=await prepare(_0xfe081f);return{'method':'POST','url':_0x5efc44(0xdf)+_0x52f17d[_0x5efc44(0xc2)][_0x5efc44(0xd2)]+_0x5efc44(0xd1),'body':{'appCode':_0xfe081f[_0x5efc44(0xe9)],'clientOperationId':_0x52f17d[_0x5efc44(0xe2)]},'description':serializeDryRunDescription({'dataset':{'id':_0x52f17d[_0x5efc44(0xc2)]['id'],'code':_0x52f17d['dataset'][_0x5efc44(0xd2)],'name':_0x52f17d[_0x5efc44(0xc2)][_0x5efc44(0xba)],'fieldCount':_0x52f17d['dataset'][_0x5efc44(0xcc)]},'precheckSource':_0x52f17d[_0x5efc44(0xea)]?.['source']??_0x5efc44(0xca),'action':_0x5efc44(0xb9),'clientOperationId':_0x52f17d['clientOperationId'],'plannedStatus':_0x52f17d[_0x5efc44(0xbf)][_0x5efc44(0xd8)],'reason':_0x52f17d[_0x5efc44(0xbf)]['message']})};},async 'execute'(_0x1cdef7){const _0x2d9123=a207_0x2a31e1;if(!_0x1cdef7[_0x2d9123(0xe6)](_0x2d9123(0xda))){const _0x5306ac=await pageGenerateStart[_0x2d9123(0xc4)](_0x1cdef7);return{'ok':!![],'message':_0x2d9123(0xe1),'data':_0x5306ac};}const _0xa7a9cb=await prepare(_0x1cdef7);if(!_0xa7a9cb[_0x2d9123(0xbf)][_0x2d9123(0xdd)])return{'ok':![],'message':_0xa7a9cb['precheck'][_0x2d9123(0xd4)],'data':{'datasetCode':_0xa7a9cb[_0x2d9123(0xc2)][_0x2d9123(0xd2)],'pageType':'DATA_LIST','pagePattern':_0x2d9123(0xe4),'clientOperationId':_0xa7a9cb[_0x2d9123(0xe2)],'precheckSource':_0xa7a9cb['dataListPageStatus']?.['source']??_0x2d9123(0xca),'status':_0xa7a9cb[_0x2d9123(0xbf)][_0x2d9123(0xd8)],'manualResolutionRequired':_0xa7a9cb['precheck'][_0x2d9123(0xc6)],'nextAction':_0xa7a9cb[_0x2d9123(0xbf)][_0x2d9123(0xd9)],'query':{'command':buildDataListPageStatusQueryCommand(_0xa7a9cb['dataset'][_0x2d9123(0xd2)],_0x1cdef7[_0x2d9123(0xe9)])},'dataListPageStatus':_0xa7a9cb[_0x2d9123(0xea)]}};const _0x348138=await startGenerateDataListPages(_0x1cdef7[_0x2d9123(0xe9)],_0xa7a9cb[_0x2d9123(0xc2)][_0x2d9123(0xd2)],{'clientOperationId':_0xa7a9cb[_0x2d9123(0xe2)]}),_0x37fbc2=_0x348138[_0x2d9123(0xd8)]==='SUCCESS'||_0x348138['status']===_0x2d9123(0xe8)?await loadDataListPageStatusForGenerate(_0x1cdef7,_0xa7a9cb[_0x2d9123(0xc2)][_0x2d9123(0xd2)]):null,_0x403fc8=assessGenerateOperationState(_0xa7a9cb[_0x2d9123(0xc2)][_0x2d9123(0xd2)],_0x348138[_0x2d9123(0xd8)],_0x37fbc2);return{'ok':!![],'message':_0x348138[_0x2d9123(0xc3)]?_0x2d9123(0xdb):_0x2d9123(0xc0),'data':{'datasetCode':_0xa7a9cb[_0x2d9123(0xc2)]['code'],'appCode':_0x1cdef7[_0x2d9123(0xe9)],'pageType':_0x2d9123(0xd5),'pagePattern':_0x2d9123(0xe4),'taskId':_0x348138['taskId']??null,'operationId':_0x348138[_0x2d9123(0xdc)]??null,'clientOperationId':_0xa7a9cb['clientOperationId'],'jobStatus':_0x348138[_0x2d9123(0xd8)]??null,'progressRate':typeof _0x348138[_0x2d9123(0xbd)]==='number'?_0x348138['progressRate']:null,'currentStep':_0x348138[_0x2d9123(0xc7)]??null,'reused':_0x348138[_0x2d9123(0xc3)]===!![],'status':_0x403fc8[_0x2d9123(0xd8)],'manualResolutionRequired':_0x403fc8[_0x2d9123(0xc6)],'nextAction':_0x403fc8[_0x2d9123(0xd9)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0xa7a9cb[_0x2d9123(0xc2)][_0x2d9123(0xd2)],{'appCode':_0x1cdef7[_0x2d9123(0xe9)],'taskId':_0x348138[_0x2d9123(0xcd)],'operationId':_0x348138[_0x2d9123(0xdc)],'clientOperationId':_0xa7a9cb['clientOperationId']})},'dataListPageStatus':_0x37fbc2}};}};function a207_0x29c0(){const _0xe5b46f=['apply','Reusing\x20an\x20existing\x20generate\x20task','operationId','allowGenerate','581504JVUMML','/smartapi/lovrabet/dataset/','compress','Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','clientOperationId','43843DqkpAM','CRUD_PAGE_SET','205486nYpVit','bool','6BZcmyp','PARTIAL_SUCCESS','appCode','dataListPageStatus','generate-start','name','20fLURnK','1022319SoDZer','progressRate','page\x20generate-start\x20does\x20not\x20accept\x20--page-type.','precheck','Submitted\x20a\x20generate\x20task','write','dataset','reused','dryRun','DATA_LIST\x20currently\x20has\x20one\x20fixed\x20pattern:\x20CRUD_PAGE_SET.','manualResolutionRequired','currentStep','Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.','12GJLNEQ','related-pages-fallback','page-type','fieldCount','taskId','page\x20generate-start\x20does\x20not\x20accept\x20--page-pattern.','3ZStEwG','1281269YuxxSk','/generate-standard-pages/start','code','72645mCFZWu','message','DATA_LIST','This\x20command\x20always\x20generates\x20a\x20DATA_LIST\x20page\x20from\x20a\x20dataset.','1394057lCYDih','status','nextAction'];a207_0x29c0=function(){return _0xe5b46f;};return a207_0x29c0();}async function prepare(_0xc1e372){const _0x1b0ee2=a207_0x2a31e1,_0x2a8e96=await loadDatasetDetailForPage(_0xc1e372),_0x27b3a2=await loadDataListPageStatusForGenerate(_0xc1e372,_0x2a8e96['code']),_0x280753=getUndeletedRelatedPages(_0x2a8e96);return{'dataset':_0x2a8e96,'dataListPageStatus':_0x27b3a2,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessDataListPageState(_0x2a8e96[_0x1b0ee2(0xd2)],_0x27b3a2,{'fallbackUndeletedPages':_0x280753})};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a208_0x203408=a208_0x15cf;function a208_0x4985(){const _0x4dc808=['code','client-operation-id','task-id','page','errorMsg','2096166pyZKdq','appCode','taskId','GET','/generate-standard-pages/status?','11481930nZmpqv','Async\x20operation\x20id\x20returned\x20by\x20page\x20generate-start','/smartapi/lovrabet/dataset/','1358592sbNmLt','generate-status','operation-id','currentStep','toString','query-generate-operation-status','status','message','Query\x20Data\x20List\x20Page\x20generate\x20operation\x20status','PARTIAL_SUCCESS','str','SUCCESS','143944TCdADh','Client\x20recovery/idempotency\x20id\x20when\x20operationId\x20is\x20unavailable\x20or\x20lost','3rlmSzS','string','name','2480492LadxmF','set','number','4598105mjcjNN','operationId','progressRate','alias','217qfUboJ','clientOperationId','751922cWEFNW','Generic\x20task\x20id\x20returned\x20by\x20page\x20generate-start'];a208_0x4985=function(){return _0x4dc808;};return a208_0x4985();}function a208_0x15cf(_0x4fa2bf,_0x1d8e2e){_0x4fa2bf=_0x4fa2bf-0x139;const _0x498589=a208_0x4985();let _0x15cf7d=_0x498589[_0x4fa2bf];return _0x15cf7d;}(function(_0x350d5b,_0x1697fc){const _0x36c2e6=a208_0x15cf,_0x369cb6=_0x350d5b();while(!![]){try{const _0x2fcaa9=parseInt(_0x36c2e6(0x15f))/0x1*(-parseInt(_0x36c2e6(0x142))/0x2)+-parseInt(_0x36c2e6(0x149))/0x3+parseInt(_0x36c2e6(0x139))/0x4+parseInt(_0x36c2e6(0x13c))/0x5+parseInt(_0x36c2e6(0x151))/0x6+parseInt(_0x36c2e6(0x140))/0x7*(-parseInt(_0x36c2e6(0x15d))/0x8)+parseInt(_0x36c2e6(0x14e))/0x9;if(_0x2fcaa9===_0x1697fc)break;else _0x369cb6['push'](_0x369cb6['shift']());}catch(_0x4c131e){_0x369cb6['push'](_0x369cb6['shift']());}}}(a208_0x4985,0xa0896));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';import{getGenerateDataListPagesStatus}from'../../core/api-client.js';export const pageGenerateStatus={'service':a208_0x203408(0x147),'command':a208_0x203408(0x152),'description':a208_0x203408(0x159),'risk':'read','defaultOutputFormat':'compress','flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a208_0x203408(0x13f),'type':'string','description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'},{'name':a208_0x203408(0x146),'type':a208_0x203408(0x160),'description':a208_0x203408(0x143)},{'name':a208_0x203408(0x153),'type':a208_0x203408(0x160),'description':a208_0x203408(0x14f)},{'name':'client-operation-id','type':a208_0x203408(0x160),'description':a208_0x203408(0x15e)}],async 'validate'(_0x3e462a){validateDatasetSelector(_0x3e462a),validateGenerateOperationSelector(_0x3e462a);},async 'dryRun'(_0x440f8f){const _0x5ea8ea=a208_0x203408,_0x2569ca=await loadDatasetDetailForPage(_0x440f8f),_0x376605=_0x440f8f[_0x5ea8ea(0x15b)]('task-id'),_0x1bf5bb=_0x440f8f[_0x5ea8ea(0x15b)](_0x5ea8ea(0x153)),_0x4626b7=_0x440f8f[_0x5ea8ea(0x15b)](_0x5ea8ea(0x145)),_0x46c7ba=new URLSearchParams({'appCode':_0x440f8f[_0x5ea8ea(0x14a)]});return _0x376605&&_0x46c7ba[_0x5ea8ea(0x13a)]('taskId',_0x376605),_0x1bf5bb&&_0x46c7ba['set'](_0x5ea8ea(0x13d),_0x1bf5bb),_0x4626b7&&_0x46c7ba['set'](_0x5ea8ea(0x141),_0x4626b7),{'method':_0x5ea8ea(0x14c),'url':_0x5ea8ea(0x150)+_0x2569ca[_0x5ea8ea(0x144)]+_0x5ea8ea(0x14d)+_0x46c7ba[_0x5ea8ea(0x155)](),'description':serializeDryRunDescription({'dataset':{'id':_0x2569ca['id'],'code':_0x2569ca[_0x5ea8ea(0x144)],'name':_0x2569ca[_0x5ea8ea(0x161)]},'action':_0x5ea8ea(0x156),'taskId':_0x376605||undefined,'operationId':_0x1bf5bb||undefined,'clientOperationId':_0x4626b7||undefined})};},async 'execute'(_0x43061b){const _0x4b2037=a208_0x203408,_0x1cb936=await loadDatasetDetailForPage(_0x43061b),_0x4a3749=_0x43061b[_0x4b2037(0x15b)](_0x4b2037(0x146)),_0x5b5884=_0x43061b['str'](_0x4b2037(0x153)),_0x1fab90=_0x43061b[_0x4b2037(0x15b)](_0x4b2037(0x145)),_0x235cfd=await getGenerateDataListPagesStatus(_0x43061b[_0x4b2037(0x14a)],_0x1cb936[_0x4b2037(0x144)],{'taskId':_0x4a3749||undefined,'operationId':_0x5b5884||undefined,'clientOperationId':_0x1fab90||undefined}),_0xe3ad9f=_0x235cfd['status']===_0x4b2037(0x15c)||_0x235cfd['status']===_0x4b2037(0x15a),_0x594981=_0xe3ad9f?await loadDataListPageStatusForGenerate(_0x43061b,_0x1cb936[_0x4b2037(0x144)]):null,_0x4288ff=assessGenerateOperationState(_0x1cb936[_0x4b2037(0x144)],_0x235cfd['status'],_0x594981),_0x2db609=_0x235cfd[_0x4b2037(0x14b)]??_0x4a3749??undefined,_0x4910c9=_0x235cfd[_0x4b2037(0x13d)]??_0x5b5884??undefined,_0x42e8c3=_0x235cfd['clientOperationId']??_0x1fab90??undefined;return{'ok':!![],'message':_0x4288ff[_0x4b2037(0x157)]==='operation_failed'?_0x235cfd[_0x4b2037(0x148)]||_0x4288ff[_0x4b2037(0x158)]:_0x4288ff[_0x4b2037(0x158)],'data':{'datasetCode':_0x1cb936['code'],'appCode':_0x43061b[_0x4b2037(0x14a)],'taskId':_0x2db609,'operationId':_0x4910c9,'clientOperationId':_0x42e8c3,'jobStatus':_0x235cfd[_0x4b2037(0x157)]??null,'progressRate':typeof _0x235cfd[_0x4b2037(0x13e)]===_0x4b2037(0x13b)?_0x235cfd[_0x4b2037(0x13e)]:null,'currentStep':_0x235cfd[_0x4b2037(0x154)]??null,'errorMsg':_0x235cfd[_0x4b2037(0x148)]??null,'status':_0x4288ff['status'],'manualResolutionRequired':_0x4288ff['manualResolutionRequired'],'nextAction':_0x4288ff['nextAction'],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x1cb936[_0x4b2037(0x144)],{'appCode':_0x43061b[_0x4b2037(0x14a)],'taskId':_0x2db609,'operationId':_0x4910c9,'clientOperationId':_0x42e8c3})},'dataListPageStatus':_0x594981,'result':_0x235cfd['result']??null}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x34ffe9,_0x1938e0){const _0x536310=a209_0x3d3a,_0x37c46e=_0x34ffe9();while(!![]){try{const _0x3bcdca=-parseInt(_0x536310(0x1f5))/0x1*(-parseInt(_0x536310(0x1fd))/0x2)+parseInt(_0x536310(0x1f9))/0x3*(parseInt(_0x536310(0x1f7))/0x4)+parseInt(_0x536310(0x1fa))/0x5+parseInt(_0x536310(0x1fc))/0x6+parseInt(_0x536310(0x1f4))/0x7+parseInt(_0x536310(0x1f8))/0x8+-parseInt(_0x536310(0x1f6))/0x9*(parseInt(_0x536310(0x1fb))/0xa);if(_0x3bcdca===_0x1938e0)break;else _0x37c46e['push'](_0x37c46e['shift']());}catch(_0x8d3098){_0x37c46e['push'](_0x37c46e['shift']());}}}(a209_0x39e6,0x6cf21));import{pageGenerateStart}from'../../commands/page/generate-start.js';function a209_0x39e6(){const _0x104e9a=['5117070pwiGmm','1tZDEZq','38790gddIaZ','1024636xOMPHB','6359360zPiRwU','3wzJybM','837495eAMvoG','6130KQgkcy','3098166yscJEo','1244644SOsvmd'];a209_0x39e6=function(){return _0x104e9a;};return a209_0x39e6();}import{pageGenerateStatus}from'../../commands/page/generate-status.js';import{pageDataListStatus}from'../../commands/page/data-list-status.js';function a209_0x3d3a(_0x262e50,_0x3a2545){_0x262e50=_0x262e50-0x1f4;const _0x39e69a=a209_0x39e6();let _0x3d3adc=_0x39e69a[_0x262e50];return _0x3d3adc;}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';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 a210_0x186cba=a210_0x2953;(function(_0x4411af,_0x1cfccd){const _0x2d0f24=a210_0x2953,_0x13b454=_0x4411af();while(!![]){try{const _0x42790e=-parseInt(_0x2d0f24(0x11a))/0x1*(parseInt(_0x2d0f24(0x12f))/0x2)+-parseInt(_0x2d0f24(0x114))/0x3+-parseInt(_0x2d0f24(0x12a))/0x4+-parseInt(_0x2d0f24(0x116))/0x5+parseInt(_0x2d0f24(0x10a))/0x6+parseInt(_0x2d0f24(0x117))/0x7+parseInt(_0x2d0f24(0x124))/0x8;if(_0x42790e===_0x1cfccd)break;else _0x13b454['push'](_0x13b454['shift']());}catch(_0x3da4c0){_0x13b454['push'](_0x13b454['shift']());}}}(a210_0x1a3b,0xe6a46));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';function a210_0x2953(_0x3a6b8e,_0x5b5472){_0x3a6b8e=_0x3a6b8e-0xf6;const _0x1a3bd8=a210_0x1a3b();let _0x29531e=_0x1a3bd8[_0x3a6b8e];return _0x29531e;}function a210_0x1a3b(){const _0x39fda0=['hash','4400324gwTXWZ','versionTag','Page\x20group\x20version\x20tag\x20(batch\x20mode\x20only)','pages','all','1124034NWpytr','name','type','datasetIds','/smartapi/lovrabet/detail\x20(per\x20selected\x20page)','would_pull','local\x20unsynced\x20changes','GET','utf8','alias','length','map','lastSync','single','items','datasetCode','batch','string','boolean','Pull\x20complete:\x20','filter','\x22\x20has\x20no\x20undeleted\x20related\x20pages.','3758610jQfXKm','\x20pulled,\x20','str','reason','lockFilePath','deleted','localPath','appCode','page','Overwrite\x20local\x20files\x20even\x20when\x20unsynced\x20local\x20changes\x20exist','907854WfgCMN','/smartapi/lovrabet/detail?pageId=','4112235HsqwcS','1718983PycYUd','validation','conflict','3yfeUKc','detail','code','Use\x20--force\x20to\x20overwrite\x20local\x20changes.','status','pageId','compress','Pull\x20page\x20schema\x20to\x20local\x20files','version-tag','Local\x20page\x20file\x20has\x20unsynced\x20changes:\x20','31871224EZynOA','toISOString','force','mode','read'];a210_0x1a3b=function(){return _0x39fda0;};return a210_0x1a3b();}import{computePageContentHash,computePageFileHash,serializePageSchemaForFile}from'../../core/page/hash.js';import{ensureParentDirectory,fileExists,loadPageProjectConfig,resolvePageFilePath}from'../../core/page/file-system.js';import{createEmptyPageLock,ensurePageLockScope,readPageLockFile,writePageLockFile}from'../../core/page/lock.js';import{CliErrors}from'../../errors.js';export const pagePull={'service':a210_0x186cba(0x112),'command':'pull','description':a210_0x186cba(0x121),'risk':a210_0x186cba(0x128),'defaultOutputFormat':a210_0x186cba(0x120),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':'number','description':'Page\x20ID'},DATASETCODE_FLAG_OPTIONAL,{'name':a210_0x186cba(0xfd),'type':'string','description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'},{'name':'version-tag','type':a210_0x186cba(0x105),'description':a210_0x186cba(0x12c)},{'name':a210_0x186cba(0x126),'type':a210_0x186cba(0x106),'description':a210_0x186cba(0x113)}],async 'validate'(_0x54cbc8){validatePageTargetSelector(_0x54cbc8);},async 'dryRun'(_0x215dde){const _0x52487b=a210_0x186cba,_0x29e521=await buildPullPlan(_0x215dde);return{'method':_0x52487b(0xfb),'url':_0x29e521[_0x52487b(0x127)]===_0x52487b(0x101)?_0x52487b(0x115)+(_0x29e521[_0x52487b(0x102)][0x0]?.[_0x52487b(0x11b)][_0x52487b(0x11f)]??''):_0x52487b(0xf8),'body':{'appCode':_0x215dde[_0x52487b(0x111)],'mode':_0x29e521['mode'],'targetDatasetCode':_0x29e521[_0x52487b(0x103)]??null,'pages':_0x29e521[_0x52487b(0x102)][_0x52487b(0xff)](toPreviewItem)},'description':serializeDryRunDescription({'mode':_0x29e521[_0x52487b(0x127)],'datasetCode':_0x29e521['datasetCode']??null,'totalCandidates':_0x29e521[_0x52487b(0x102)][_0x52487b(0xfe)],'totalWouldPull':_0x29e521['items'][_0x52487b(0x108)](_0xd14527=>_0xd14527[_0x52487b(0x11e)]==='would_pull')[_0x52487b(0xfe)],'totalConflicts':_0x29e521[_0x52487b(0x102)][_0x52487b(0x108)](_0x287d19=>_0x287d19[_0x52487b(0x11e)]===_0x52487b(0x119))['length']})};},async 'execute'(_0x69407d){const _0x2aaca1=a210_0x186cba,_0xc4e26d=loadPageProjectConfig(_0x69407d[_0x2aaca1(0x111)]),_0x29f7b3=await readPageLockFile(_0xc4e26d[_0x2aaca1(0x10e)]),{lockData:_0xb7d086,appLock:_0x142eeb}=ensurePageLockScope(_0x29f7b3??createEmptyPageLock(),_0x69407d[_0x2aaca1(0x111)]),_0x4560b2=await buildPullPlan(_0x69407d),_0x37d212=_0x69407d['bool']('force');if(_0x4560b2[_0x2aaca1(0x127)]===_0x2aaca1(0x101)&&_0x4560b2[_0x2aaca1(0x102)][0x0]?.[_0x2aaca1(0x11e)]===_0x2aaca1(0x119)&&!_0x37d212)throw CliErrors['validation'](_0x2aaca1(0x123)+_0x4560b2[_0x2aaca1(0x102)][0x0][_0x2aaca1(0x110)],_0x2aaca1(0x11d));const _0x2419bb=[],_0x33a251=[];for(const _0x374195 of _0x4560b2[_0x2aaca1(0x102)]){if(_0x374195[_0x2aaca1(0x11e)]===_0x2aaca1(0x119)&&!_0x37d212){_0x33a251['push']({'pageId':_0x374195['detail']['pageId'],'type':_0x374195[_0x2aaca1(0x11b)][_0x2aaca1(0xf6)],'title':_0x374195[_0x2aaca1(0x11b)]['name'],'localPath':_0x374195[_0x2aaca1(0x110)],'reason':_0x374195[_0x2aaca1(0x10d)]??_0x2aaca1(0xfa)});continue;}await ensureParentDirectory(_0x374195[_0x2aaca1(0x110)]);const _0x36705b=serializePageSchemaForFile(_0x374195['detail'][_0x2aaca1(0x11c)]);await writeFile(_0x374195[_0x2aaca1(0x110)],_0x36705b,_0x2aaca1(0xfc)),_0x142eeb[_0x2aaca1(0x12d)][String(_0x374195[_0x2aaca1(0x11b)]['pageId'])]=buildLockEntry(_0x374195['detail'],_0x36705b),_0x2419bb['push']({'pageId':_0x374195['detail'][_0x2aaca1(0x11f)],'type':_0x374195[_0x2aaca1(0x11b)]['type'],'title':_0x374195[_0x2aaca1(0x11b)]['name'],'localPath':_0x374195[_0x2aaca1(0x110)]});}return _0x142eeb[_0x2aaca1(0x100)]=new Date()[_0x2aaca1(0x125)](),await writePageLockFile(_0xc4e26d[_0x2aaca1(0x10e)],_0xb7d086),{'ok':!![],'message':_0x2aaca1(0x107)+_0x2419bb[_0x2aaca1(0xfe)]+_0x2aaca1(0x10b)+_0x33a251[_0x2aaca1(0xfe)]+'\x20skipped','data':{'appCode':_0x69407d['appCode'],'pulledPages':_0x2419bb,'skippedPages':_0x33a251,'totalPulled':_0x2419bb[_0x2aaca1(0xfe)],'totalSkipped':_0x33a251['length']}};}};async function buildPullPlan(_0x540c68){const _0x3eb80=a210_0x186cba,_0x430e70=loadPageProjectConfig(_0x540c68[_0x3eb80(0x111)]),_0x3f2197=await readPageLockFile(_0x430e70['lockFilePath']),{appLock:_0x1103e8}=ensurePageLockScope(_0x3f2197??createEmptyPageLock(),_0x540c68[_0x3eb80(0x111)]),_0x2832d6=getPageIdFlag(_0x540c68);if(_0x2832d6!==undefined){const _0x5a258f=await loadPageDetailForPage(_0x540c68,_0x2832d6);return{'mode':_0x3eb80(0x101),'items':[await inspectPullTarget(_0x430e70,_0x1103e8[_0x3eb80(0x12d)][String(_0x5a258f[_0x3eb80(0x11f)])],_0x5a258f)]};}const _0xa7b7a1=await loadDatasetDetailForPage(_0x540c68),_0x5504c8=_0xa7b7a1['relatedPages'][_0x3eb80(0x108)](_0x39e650=>!_0x39e650[_0x3eb80(0x10f)]);if(_0x5504c8[_0x3eb80(0xfe)]===0x0)throw CliErrors[_0x3eb80(0x118)]('Dataset\x20\x22'+_0xa7b7a1[_0x3eb80(0x11c)]+_0x3eb80(0x109));const _0x713b29=await Promise['all'](_0x5504c8[_0x3eb80(0xff)](_0x3670ad=>loadPageDetailForPage(_0x540c68,_0x3670ad['id']))),_0xccbff0=selectVersionTagGroup(_0x713b29,_0x351ca0=>_0x351ca0[_0x3eb80(0x12b)],_0x540c68[_0x3eb80(0x10c)](_0x3eb80(0x122)));return{'mode':_0x3eb80(0x104),'datasetCode':_0xa7b7a1[_0x3eb80(0x11c)],'items':await Promise[_0x3eb80(0x12e)](_0xccbff0[_0x3eb80(0x102)][_0x3eb80(0xff)](_0x2fc4c3=>inspectPullTarget(_0x430e70,_0x1103e8['pages'][String(_0x2fc4c3[_0x3eb80(0x11f)])],_0x2fc4c3)))};}async function inspectPullTarget(_0x54a937,_0x205e93,_0x102956){const _0x1e550e=a210_0x186cba,_0x1be550=resolvePageFilePath(_0x54a937,_0x102956[_0x1e550e(0x11f)],_0x102956[_0x1e550e(0xf6)]),_0x28174a=await fileExists(_0x1be550);if(!_0x28174a){const _0x174214=serializePageSchemaForFile(_0x102956['code']);return{'detail':_0x102956,'localPath':_0x1be550,'localHash':computePageContentHash(_0x174214),'status':_0x1e550e(0xf9)};}const _0x11ce26=await computePageFileHash(_0x1be550);if(!_0x205e93||_0x11ce26!==_0x205e93[_0x1e550e(0x129)])return{'detail':_0x102956,'localPath':_0x1be550,'localHash':_0x11ce26,'status':_0x1e550e(0x119),'reason':'local\x20unsynced\x20changes'};return{'detail':_0x102956,'localPath':_0x1be550,'localHash':_0x11ce26,'status':_0x1e550e(0xf9)};}function buildLockEntry(_0x1155d7,_0x428b80){const _0x1baaa6=a210_0x186cba;return{'hash':computePageContentHash(_0x428b80),'pageId':_0x1155d7[_0x1baaa6(0x11f)],'pageVersion':_0x1155d7['pageVersion'],'type':_0x1155d7[_0x1baaa6(0xf6)],'title':_0x1155d7['name'],'datasetIds':_0x1155d7[_0x1baaa6(0xf7)],'versionTag':_0x1155d7['versionTag']};}function toPreviewItem(_0x4ed2d0){const _0x8fe12e=a210_0x186cba;return{'pageId':_0x4ed2d0['detail']['pageId'],'type':_0x4ed2d0[_0x8fe12e(0x11b)][_0x8fe12e(0xf6)],'title':_0x4ed2d0['detail'][_0x8fe12e(0x130)],'localPath':_0x4ed2d0[_0x8fe12e(0x110)],'status':_0x4ed2d0[_0x8fe12e(0x11e)],..._0x4ed2d0['reason']?{'reason':_0x4ed2d0[_0x8fe12e(0x10d)]}:{}};}
|